@a4ui/core 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { c as p } from "./cn-B6yFEsav.js";
2
- import { createSignal as z, onCleanup as q, onMount as W, For as F, createMemo as Q, Show as M, createEffect as re, createUniqueId as xr, useContext as $r, createContext as yr, splitProps as ie, Index as Re, on as Ut, Switch as wr, Match as Je, ErrorBoundary as pr, Suspense as _r } from "solid-js";
3
- import { a as se, c as kr, C as Kt, d as qt, e as Gt, m as H, B as Cr, f as Sr, g as Er, s as qe, h as Mr, u as Tr } from "./Checkbox-DIzLQltI.js";
4
- import { b as Ug, R as Kg, i as qg, S as Gg, T as Wg, j as Jg, k as Zg, l as Qg, p as ef, r as tf, n as rf, o as nf } from "./Checkbox-DIzLQltI.js";
5
- import { createComponent as i, memo as K, insert as s, template as x, effect as k, setAttribute as T, className as E, delegateEvents as Y, Portal as fe, setStyleProperty as R, use as O, classList as Wt, spread as ce, mergeProps as de, Dynamic as Jt, addEventListener as Ke, style as ue } from "solid-js/web";
2
+ import { createSignal as z, onCleanup as K, onMount as q, For as F, createMemo as Q, Show as M, createEffect as re, createUniqueId as xr, useContext as $r, createContext as yr, splitProps as ie, Index as Re, on as Ut, Switch as wr, Match as Je, ErrorBoundary as pr, Suspense as _r } from "solid-js";
3
+ import { a as se, c as kr, C as Gt, d as Kt, e as qt, m as X, B as Cr, f as Sr, g as Er, s as qe, h as Mr, u as Tr } from "./Checkbox-DIzLQltI.js";
4
+ import { b as Ug, R as Gg, i as Kg, S as qg, T as Wg, j as Jg, k as Zg, l as Qg, p as ef, r as tf, n as rf, o as nf } from "./Checkbox-DIzLQltI.js";
5
+ import { createComponent as i, memo as G, insert as s, template as x, effect as k, setAttribute as T, className as E, delegateEvents as Y, Portal as fe, setStyleProperty as O, use as R, classList as Wt, spread as ce, mergeProps as de, Dynamic as Jt, addEventListener as Ke, style as ue } from "solid-js/web";
6
6
  import { Accordion as _e } from "@kobalte/core/accordion";
7
7
  import { ChevronsLeft as Lr, ChevronLeft as Oe, ChevronRight as ge, ChevronsRight as Dr, CalendarDays as Zt, Clock as Ir, File as ht, Check as we, X as me, ChevronDown as je, UploadCloud as Ar, CircleX as Qt, TriangleAlert as er, CircleCheck as tr, Info as rr, ChevronsUpDown as nr, ChevronsLeftRight as Fr, Inbox as zr, ServerCrash as Pr, Compass as Rr, ArrowUp as Or, Plus as Br, ChevronUp as jr, Bell as Nr, GripVertical as vt, Loader2 as Yr, Satellite as Xr, Moon as Hr, Sun as Vr, Sparkles as Ur } from "lucide-solid";
8
8
  import { Progress as ke } from "@kobalte/core/progress";
9
9
  import { Dialog as Z } from "@kobalte/core/dialog";
10
10
  import { DropdownMenu as Ce } from "@kobalte/core/dropdown-menu";
11
- import { createVirtualizer as Kr } from "@tanstack/solid-virtual";
11
+ import { createVirtualizer as Gr } from "@tanstack/solid-virtual";
12
12
  import { Tabs as Se } from "@kobalte/core/tabs";
13
- import { Toast as ye, toaster as qr } from "@kobalte/core/toast";
13
+ import { Toast as ye, toaster as Kr } from "@kobalte/core/toast";
14
14
  import { Switch as Ee } from "@kobalte/core/switch";
15
15
  import { RadioGroup as he } from "@kobalte/core/radio-group";
16
16
  import { Tooltip as Me } from "@kobalte/core/tooltip";
17
17
  import { Popover as Te } from "@kobalte/core/popover";
18
18
  import { HoverCard as Le } from "@kobalte/core/hover-card";
19
- import { Alert as Gr } from "@kobalte/core/alert";
19
+ import { Alert as qr } from "@kobalte/core/alert";
20
20
  import { Image as Ze } from "@kobalte/core/image";
21
21
  import { Separator as Wr } from "@kobalte/core/separator";
22
22
  import { Meter as De } from "@kobalte/core/meter";
23
23
  import { Slider as ve } from "@kobalte/core/slider";
24
- import { NumberField as Ne } from "@kobalte/core/number-field";
24
+ import { NumberField as Ye } from "@kobalte/core/number-field";
25
25
  import { ToggleButton as Jr } from "@kobalte/core/toggle-button";
26
26
  import { ToggleGroup as bt } from "@kobalte/core/toggle-group";
27
27
  import { SegmentedControl as Ie } from "@kobalte/core/segmented-control";
@@ -29,7 +29,7 @@ import { Breadcrumbs as Qe } from "@kobalte/core/breadcrumbs";
29
29
  import { AlertDialog as xe } from "@kobalte/core/alert-dialog";
30
30
  import { ContextMenu as Ae } from "@kobalte/core/context-menu";
31
31
  import { Combobox as ae } from "@kobalte/core/combobox";
32
- import { animate as G, stagger as Ve, inView as Zr, scroll as lr } from "motion";
32
+ import { animate as W, stagger as Ue, inView as Zr, scroll as lr } from "motion";
33
33
  import { animate as of, inView as af, scroll as sf, spring as cf, stagger as df } from "motion";
34
34
  const ir = "a4ui-theme";
35
35
  function Qr(e) {
@@ -73,12 +73,12 @@ function Nd(e) {
73
73
  const t = typeof window < "u" ? window.matchMedia(e) : null, [r, n] = z(t ? t.matches : !1);
74
74
  if (t) {
75
75
  const l = (a) => n(a.matches);
76
- t.addEventListener("change", l), q(() => t.removeEventListener("change", l));
76
+ t.addEventListener("change", l), K(() => t.removeEventListener("change", l));
77
77
  }
78
78
  return r;
79
79
  }
80
80
  function on(e, t) {
81
- W(() => {
81
+ q(() => {
82
82
  requestAnimationFrame(() => {
83
83
  const r = e();
84
84
  r && (t(void 0), t(r));
@@ -110,7 +110,7 @@ function Yd(e) {
110
110
  return i(_e.Trigger, {
111
111
  class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
112
112
  get children() {
113
- return [K(() => t.title), an()];
113
+ return [G(() => t.title), an()];
114
114
  }
115
115
  });
116
116
  }
@@ -129,7 +129,7 @@ function Yd(e) {
129
129
  }
130
130
  var cn = /* @__PURE__ */ x('<div class="mb-2 flex items-center justify-between gap-1"><div class="flex items-center"><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label="Previous year"></button><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label="Previous month"></button></div><div class="flex items-center gap-0.5"><button type=button class="rounded-md px-2 py-1 text-sm font-medium capitalize text-foreground transition-colors hover:bg-muted"></button><button type=button class="rounded-md px-2 py-1 text-sm font-medium capitalize text-foreground transition-colors hover:bg-muted"></button></div><div class="flex items-center"><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label="Next month"></button><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label="Next year">'), dn = /* @__PURE__ */ x('<div class="mb-1 grid grid-cols-7 gap-0.5 text-center text-[11px] font-medium text-muted-foreground">'), un = /* @__PURE__ */ x('<div class="grid grid-cols-7 gap-0.5">'), xt = /* @__PURE__ */ x('<div class="grid grid-cols-3 gap-1">'), gn = /* @__PURE__ */ x("<div>"), fn = /* @__PURE__ */ x('<div class="mb-2 flex items-center justify-between"><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label=Previous></button><button type=button class="rounded-md px-2 py-1 text-sm font-medium capitalize text-foreground transition-colors hover:bg-muted"></button><button type=button class="grid h-7 w-7 place-items-center rounded-md text-foreground transition-colors hover:bg-muted"aria-label=Next>'), mn = /* @__PURE__ */ x("<span>"), et = /* @__PURE__ */ x("<button type=button>");
131
131
  const hn = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], vn = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], $e = 12;
132
- function Ye(e, t) {
132
+ function Xe(e, t) {
133
133
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
134
134
  }
135
135
  function gt(e) {
@@ -214,12 +214,12 @@ function gt(e) {
214
214
  return m();
215
215
  },
216
216
  children: (L) => {
217
- const S = L.getMonth() === o(), D = () => (e.rangeStart ? Ye(e.rangeStart, L) : !1) || (e.rangeEnd ? Ye(e.rangeEnd, L) : !1), I = () => !!e.rangeStart && !!e.rangeEnd && L > e.rangeStart && L < e.rangeEnd && !D(), P = () => (e.selected ? Ye(e.selected, L) : !1) || D(), j = Ye($, L);
217
+ const S = L.getMonth() === o(), D = () => (e.rangeStart ? Xe(e.rangeStart, L) : !1) || (e.rangeEnd ? Xe(e.rangeEnd, L) : !1), I = () => !!e.rangeStart && !!e.rangeEnd && L > e.rangeStart && L < e.rangeEnd && !D(), P = () => (e.selected ? Xe(e.selected, L) : !1) || D(), j = Xe($, L);
218
218
  return (() => {
219
219
  var A = et();
220
220
  return A.$$click = () => e.onPick(L), s(A, () => L.getDate()), k((B) => {
221
- var N = P(), X = p("flex h-8 items-center justify-center rounded-md text-sm transition-colors", P() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !P() && I() && "bg-primary/20 text-foreground", !P() && !I() && !S && "text-muted-foreground/50", !P() && !I() && S && "text-foreground", !P() && j && "ring-1 ring-inset ring-primary");
222
- return N !== B.e && T(A, "aria-pressed", B.e = N), X !== B.t && E(A, B.t = X), B;
221
+ var N = P(), H = p("flex h-8 items-center justify-center rounded-md text-sm transition-colors", P() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !P() && I() && "bg-primary/20 text-foreground", !P() && !I() && !S && "text-muted-foreground/50", !P() && !I() && S && "text-foreground", !P() && j && "ring-1 ring-inset ring-primary");
222
+ return N !== B.e && T(A, "aria-pressed", B.e = N), H !== B.t && E(A, B.t = H), B;
223
223
  }, {
224
224
  e: void 0,
225
225
  t: void 0
@@ -312,15 +312,15 @@ function wn(e) {
312
312
  }, y = ($) => {
313
313
  $ ? (document.addEventListener("mousedown", h), document.addEventListener("keydown", v), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d)) : (document.removeEventListener("mousedown", h), document.removeEventListener("keydown", v), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d));
314
314
  };
315
- re(() => y(t())), q(() => y(!1));
315
+ re(() => y(t())), K(() => y(!1));
316
316
  const m = Q(() => ur(e.value)), b = ($) => {
317
317
  e.onChange(yn($)), d();
318
318
  };
319
319
  return (() => {
320
320
  var $ = xn(), w = $.firstChild, _ = w.firstChild, C = n;
321
- typeof C == "function" ? O(C, $) : n = $, w.$$click = () => t() ? d() : u();
321
+ typeof C == "function" ? R(C, $) : n = $, w.$$click = () => t() ? d() : u();
322
322
  var L = l;
323
- return typeof L == "function" ? O(L, w) : l = w, s(_, () => yt(e.value, e.months ?? $t) ?? e.label ?? "Select date"), s(w, i(Zt, {
323
+ return typeof L == "function" ? R(L, w) : l = w, s(_, () => yt(e.value, e.months ?? $t) ?? e.label ?? "Select date"), s(w, i(Zt, {
324
324
  class: "h-4 w-4 shrink-0 text-muted-foreground"
325
325
  }), null), s($, i(M, {
326
326
  get when() {
@@ -330,7 +330,7 @@ function wn(e) {
330
330
  return i(fe, {
331
331
  get children() {
332
332
  var S = bn(), D = a;
333
- return typeof D == "function" ? O(D, S) : a = S, s(S, i(gt, {
333
+ return typeof D == "function" ? R(D, S) : a = S, s(S, i(gt, {
334
334
  get selected() {
335
335
  return m() ?? void 0;
336
336
  },
@@ -347,7 +347,7 @@ function wn(e) {
347
347
  }
348
348
  })), k((I) => {
349
349
  var P = `${c().top}px`, j = `${c().left}px`;
350
- return P !== I.e && R(S, "top", I.e = P), j !== I.t && R(S, "left", I.t = j), I;
350
+ return P !== I.e && O(S, "top", I.e = P), j !== I.t && O(S, "left", I.t = j), I;
351
351
  }, {
352
352
  e: void 0,
353
353
  t: void 0
@@ -382,7 +382,7 @@ function gr(e) {
382
382
  m: n
383
383
  };
384
384
  }
385
- function Ue(e, t) {
385
+ function Ge(e, t) {
386
386
  return `${Be(e)}:${Be(t)}`;
387
387
  }
388
388
  function ze(e) {
@@ -406,7 +406,7 @@ function pt(e, t) {
406
406
  } = ze(r.h);
407
407
  return `${n}:${Be(r.m)} ${l}`;
408
408
  }
409
- return Ue(r.h, r.m);
409
+ return Ge(r.h, r.m);
410
410
  }
411
411
  function En(e) {
412
412
  const [t, r] = z(!1), [n, l] = z(0), [a, c] = z(0);
@@ -440,25 +440,25 @@ function En(e) {
440
440
  }, w = (I) => {
441
441
  I ? (document.addEventListener("mousedown", b), document.addEventListener("keydown", $), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m)) : (document.removeEventListener("mousedown", b), document.removeEventListener("keydown", $), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m));
442
442
  };
443
- re(() => w(t())), q(() => w(!1));
443
+ re(() => w(t())), K(() => w(!1));
444
444
  const _ = Q(() => {
445
445
  const I = e.minuteStep ?? 5, P = [];
446
446
  for (let j = 0; j < 60; j += I) P.push(j);
447
447
  return P;
448
448
  }), C = (I) => {
449
449
  const P = e.hour12 ? wt(I, ze(n()).ampm) : I;
450
- l(P), e.onChange(Ue(P, a()));
450
+ l(P), e.onChange(Ge(P, a()));
451
451
  }, L = (I) => {
452
- c(I), e.onChange(Ue(n(), I));
452
+ c(I), e.onChange(Ge(n(), I));
453
453
  }, S = (I) => {
454
454
  const P = wt(ze(n()).h12, I);
455
- l(P), e.onChange(Ue(P, a()));
455
+ l(P), e.onChange(Ge(P, a()));
456
456
  }, D = (I) => p("rounded-md px-2 py-1 text-left text-sm transition-colors", I ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted");
457
457
  return (() => {
458
458
  var I = kn(), P = I.firstChild, j = P.firstChild, A = o;
459
- typeof A == "function" ? O(A, I) : o = I, P.$$click = () => t() ? m() : y();
459
+ typeof A == "function" ? R(A, I) : o = I, P.$$click = () => t() ? m() : y();
460
460
  var B = f;
461
- return typeof B == "function" ? O(B, P) : f = P, s(j, () => pt(e.value, e.hour12 ?? !1) ?? e.label ?? "Select time"), s(P, i(Ir, {
461
+ return typeof B == "function" ? R(B, P) : f = P, s(j, () => pt(e.value, e.hour12 ?? !1) ?? e.label ?? "Select time"), s(P, i(Ir, {
462
462
  class: "h-4 w-4 shrink-0 text-muted-foreground"
463
463
  }), null), s(I, i(M, {
464
464
  get when() {
@@ -467,8 +467,8 @@ function En(e) {
467
467
  get children() {
468
468
  return i(fe, {
469
469
  get children() {
470
- var N = _n(), X = N.firstChild, J = X.nextSibling, ne = g;
471
- return typeof ne == "function" ? O(ne, N) : g = N, s(X, i(F, {
470
+ var N = _n(), H = N.firstChild, J = H.nextSibling, ne = g;
471
+ return typeof ne == "function" ? R(ne, N) : g = N, s(H, i(F, {
472
472
  get each() {
473
473
  return e.hour12 ? Sn : Cn;
474
474
  },
@@ -477,7 +477,7 @@ function En(e) {
477
477
  return (() => {
478
478
  var te = tt();
479
479
  return te.$$click = () => C(V), s(te, (() => {
480
- var U = K(() => !!e.hour12);
480
+ var U = G(() => !!e.hour12);
481
481
  return () => U() ? V : Be(V);
482
482
  })()), k((U) => {
483
483
  var le = ee(), oe = D(ee());
@@ -530,7 +530,7 @@ function En(e) {
530
530
  }
531
531
  }), null), k((V) => {
532
532
  var ee = `${u().top}px`, te = `${u().left}px`, U = p("z-50 flex gap-1 divide-x divide-border rounded-lg border border-border bg-card p-2 text-card-foreground shadow-lg", e.hour12 ? "w-56" : "w-44");
533
- return ee !== V.e && R(N, "top", V.e = ee), te !== V.t && R(N, "left", V.t = te), U !== V.a && E(N, V.a = U), V;
533
+ return ee !== V.e && O(N, "top", V.e = ee), te !== V.t && O(N, "left", V.t = te), U !== V.a && E(N, V.a = U), V;
534
534
  }, {
535
535
  e: void 0,
536
536
  t: void 0,
@@ -540,8 +540,8 @@ function En(e) {
540
540
  });
541
541
  }
542
542
  }), null), k((N) => {
543
- var X = p("relative", e.class), J = e.disabled, ne = pt(e.value, e.hour12 ?? !1) ? "" : "text-muted-foreground";
544
- return X !== N.e && E(I, N.e = X), J !== N.t && (P.disabled = N.t = J), ne !== N.a && E(j, N.a = ne), N;
543
+ var H = p("relative", e.class), J = e.disabled, ne = pt(e.value, e.hour12 ?? !1) ? "" : "text-muted-foreground";
544
+ return H !== N.e && E(I, N.e = H), J !== N.t && (P.disabled = N.t = J), ne !== N.a && E(j, N.a = ne), N;
545
545
  }, {
546
546
  e: void 0,
547
547
  t: void 0,
@@ -631,7 +631,7 @@ function Hd(e) {
631
631
  }, y = (_) => {
632
632
  _ ? (document.addEventListener("mousedown", h), document.addEventListener("keydown", v), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d)) : (document.removeEventListener("mousedown", h), document.removeEventListener("keydown", v), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d));
633
633
  };
634
- re(() => y(t())), q(() => y(!1));
634
+ re(() => y(t())), K(() => y(!1));
635
635
  const m = Q(() => nt(e.value.start)), b = Q(() => nt(e.value.end)), $ = Q(() => {
636
636
  const _ = e.months ?? Fn, C = m(), L = b();
637
637
  return C && L ? `${lt(C, _)} – ${lt(L, _)}` : C ? `${lt(C, _)} – …` : null;
@@ -657,9 +657,9 @@ function Hd(e) {
657
657
  };
658
658
  return (() => {
659
659
  var _ = In(), C = _.firstChild, L = C.firstChild, S = n;
660
- typeof S == "function" ? O(S, _) : n = _, C.$$click = () => t() ? d() : u();
660
+ typeof S == "function" ? R(S, _) : n = _, C.$$click = () => t() ? d() : u();
661
661
  var D = l;
662
- return typeof D == "function" ? O(D, C) : l = C, s(L, () => $() ?? e.label ?? "Select range"), s(C, i(Zt, {
662
+ return typeof D == "function" ? R(D, C) : l = C, s(L, () => $() ?? e.label ?? "Select range"), s(C, i(Zt, {
663
663
  class: "h-4 w-4 shrink-0 text-muted-foreground"
664
664
  }), null), s(_, i(M, {
665
665
  get when() {
@@ -669,7 +669,7 @@ function Hd(e) {
669
669
  return i(fe, {
670
670
  get children() {
671
671
  var I = Dn(), P = a;
672
- return typeof P == "function" ? O(P, I) : a = I, s(I, i(gt, {
672
+ return typeof P == "function" ? R(P, I) : a = I, s(I, i(gt, {
673
673
  get rangeStart() {
674
674
  return m() ?? void 0;
675
675
  },
@@ -689,7 +689,7 @@ function Hd(e) {
689
689
  }
690
690
  })), k((j) => {
691
691
  var A = `${c().top}px`, B = `${c().left}px`;
692
- return A !== j.e && R(I, "top", j.e = A), B !== j.t && R(I, "left", j.t = B), j;
692
+ return A !== j.e && O(I, "top", j.e = A), B !== j.t && O(I, "left", j.t = B), j;
693
693
  }, {
694
694
  e: void 0,
695
695
  t: void 0
@@ -710,7 +710,7 @@ function Hd(e) {
710
710
  Y(["click"]);
711
711
  var zn = /* @__PURE__ */ x("<div>"), Pn = /* @__PURE__ */ x("<label>"), Rn = /* @__PURE__ */ x("<p>"), On = /* @__PURE__ */ x("<p role=alert>");
712
712
  const fr = yr();
713
- function Ge() {
713
+ function We() {
714
714
  return $r(fr) ?? {
715
715
  id: "",
716
716
  describedBy: ""
@@ -730,7 +730,7 @@ function Vd(e) {
730
730
  });
731
731
  }
732
732
  function Ud(e) {
733
- const t = Ge();
733
+ const t = We();
734
734
  return (() => {
735
735
  var r = Pn();
736
736
  return s(r, () => e.children), k((n) => {
@@ -742,15 +742,15 @@ function Ud(e) {
742
742
  }), r;
743
743
  })();
744
744
  }
745
- function Kd(e) {
746
- const t = Ge();
747
- return K(() => e.children({
745
+ function Gd(e) {
746
+ const t = We();
747
+ return G(() => e.children({
748
748
  id: t.id,
749
749
  "aria-describedby": t.describedBy
750
750
  }));
751
751
  }
752
- function qd(e) {
753
- const t = Ge();
752
+ function Kd(e) {
753
+ const t = We();
754
754
  return (() => {
755
755
  var r = Rn();
756
756
  return s(r, () => e.children), k((n) => {
@@ -762,8 +762,8 @@ function qd(e) {
762
762
  }), r;
763
763
  })();
764
764
  }
765
- function Gd(e) {
766
- const t = Ge();
765
+ function qd(e) {
766
+ const t = We();
767
767
  return i(M, {
768
768
  get when() {
769
769
  return e.children;
@@ -828,8 +828,8 @@ function jn(e) {
828
828
  }
829
829
  });
830
830
  }
831
- var Nn = /* @__PURE__ */ x('<ul class="flex flex-col gap-2">'), Yn = /* @__PURE__ */ x('<div><button type=button class="flex w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-input p-6 text-center transition-colors"><p class="text-sm font-medium text-foreground"></p><input type=file class=hidden>'), Xn = /* @__PURE__ */ x('<img alt class="h-10 w-10 shrink-0 rounded object-cover">'), Hn = /* @__PURE__ */ x('<div class="flex items-center gap-2"><span class="text-xs text-destructive">'), Vn = /* @__PURE__ */ x('<button type=button aria-label="Remove file"class="shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring">'), Un = /* @__PURE__ */ x('<li class="flex items-center gap-3 rounded-lg border border-border bg-glass p-3"><div class="flex min-w-0 flex-1 flex-col gap-1"><div class="flex items-baseline gap-2"><span class="truncate text-sm font-medium text-foreground"></span><span class="shrink-0 text-xs text-muted-foreground">'), Kn = /* @__PURE__ */ x('<div class="flex h-10 w-10 shrink-0 items-center justify-center rounded bg-muted">');
832
- function qn(e) {
831
+ var Nn = /* @__PURE__ */ x('<ul class="flex flex-col gap-2">'), Yn = /* @__PURE__ */ x('<div><button type=button class="flex w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-input p-6 text-center transition-colors"><p class="text-sm font-medium text-foreground"></p><input type=file class=hidden>'), Xn = /* @__PURE__ */ x('<img alt class="h-10 w-10 shrink-0 rounded object-cover">'), Hn = /* @__PURE__ */ x('<div class="flex items-center gap-2"><span class="text-xs text-destructive">'), Vn = /* @__PURE__ */ x('<button type=button aria-label="Remove file"class="shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring">'), Un = /* @__PURE__ */ x('<li class="flex items-center gap-3 rounded-lg border border-border bg-glass p-3"><div class="flex min-w-0 flex-1 flex-col gap-1"><div class="flex items-baseline gap-2"><span class="truncate text-sm font-medium text-foreground"></span><span class="shrink-0 text-xs text-muted-foreground">'), Gn = /* @__PURE__ */ x('<div class="flex h-10 w-10 shrink-0 items-center justify-center rounded bg-muted">');
832
+ function Kn(e) {
833
833
  if (!Number.isFinite(e) || e < 0) return "0 B";
834
834
  if (e < 1024) return `${e} B`;
835
835
  const t = ["KB", "MB", "GB", "TB"];
@@ -861,7 +861,7 @@ function Wd(e) {
861
861
  l(u.currentTarget.files), u.currentTarget.value = "";
862
862
  });
863
863
  var g = n;
864
- return typeof g == "function" ? O(g, f) : n = f, s(a, i(M, {
864
+ return typeof g == "function" ? R(g, f) : n = f, s(a, i(M, {
865
865
  get when() {
866
866
  return e.files.length > 0;
867
867
  },
@@ -879,7 +879,7 @@ function Wd(e) {
879
879
  },
880
880
  get fallback() {
881
881
  return (() => {
882
- var $ = Kn();
882
+ var $ = Gn();
883
883
  return s($, i(ht, {
884
884
  class: "h-5 w-5 text-muted-foreground"
885
885
  })), $;
@@ -889,7 +889,7 @@ function Wd(e) {
889
889
  var $ = Xn();
890
890
  return k(() => T($, "src", d.url)), $;
891
891
  }
892
- }), v), s(m, () => d.name), s(b, () => qn(d.size)), s(v, i(M, {
892
+ }), v), s(m, () => d.name), s(b, () => Kn(d.size)), s(v, i(M, {
893
893
  get when() {
894
894
  return d.status === "uploading";
895
895
  },
@@ -968,7 +968,7 @@ function Wd(e) {
968
968
  })();
969
969
  }
970
970
  Y(["click"]);
971
- var Gn = /* @__PURE__ */ x('<input type=text placeholder=Search… class="mb-1 w-full rounded-md border border-input bg-background px-2 py-1.5 text-sm text-foreground outline-none a4-field">'), Wn = /* @__PURE__ */ x('<div class="z-50 min-w-56 rounded-lg border border-border bg-card p-1 text-card-foreground shadow-lg"style=position:fixed><ul role=listbox aria-multiselectable=true class="max-h-60 overflow-y-auto">'), Jn = /* @__PURE__ */ x('<div><button type=button aria-haspopup=listbox class="flex min-h-9 h-auto w-full flex-wrap 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 a4-field disabled:cursor-not-allowed disabled:opacity-50"><span class="flex flex-1 flex-wrap items-center gap-1">'), Zn = /* @__PURE__ */ x("<span class=text-muted-foreground>"), Qn = /* @__PURE__ */ x('<span class="inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs text-foreground"><button type=button class="rounded-sm text-muted-foreground outline-none transition-colors hover:text-foreground focus:ring-2 focus:ring-ring/30">'), el = /* @__PURE__ */ x('<li class="px-2 py-1.5 text-sm text-muted-foreground">No options'), tl = /* @__PURE__ */ x("<li role=none><button type=button role=option><span></span><span class=truncate>");
971
+ var qn = /* @__PURE__ */ x('<input type=text placeholder=Search… class="mb-1 w-full rounded-md border border-input bg-background px-2 py-1.5 text-sm text-foreground outline-none a4-field">'), Wn = /* @__PURE__ */ x('<div class="z-50 min-w-56 rounded-lg border border-border bg-card p-1 text-card-foreground shadow-lg"style=position:fixed><ul role=listbox aria-multiselectable=true class="max-h-60 overflow-y-auto">'), Jn = /* @__PURE__ */ x('<div><button type=button aria-haspopup=listbox class="flex min-h-9 h-auto w-full flex-wrap 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 a4-field disabled:cursor-not-allowed disabled:opacity-50"><span class="flex flex-1 flex-wrap items-center gap-1">'), Zn = /* @__PURE__ */ x("<span class=text-muted-foreground>"), Qn = /* @__PURE__ */ x('<span class="inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs text-foreground"><button type=button class="rounded-sm text-muted-foreground outline-none transition-colors hover:text-foreground focus:ring-2 focus:ring-ring/30">'), el = /* @__PURE__ */ x('<li class="px-2 py-1.5 text-sm text-muted-foreground">No options'), tl = /* @__PURE__ */ x("<li role=none><button type=button role=option><span></span><span class=truncate>");
972
972
  function Jd(e) {
973
973
  const [t, r] = z(!1), [n, l] = z("");
974
974
  let a, c, o, f;
@@ -994,7 +994,7 @@ function Jd(e) {
994
994
  }, $ = (S) => {
995
995
  S ? (document.addEventListener("mousedown", m), document.addEventListener("keydown", b), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)) : (document.removeEventListener("mousedown", m), document.removeEventListener("keydown", b), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y));
996
996
  };
997
- re(() => $(t())), q(() => $(!1)), re(() => {
997
+ re(() => $(t())), K(() => $(!1)), re(() => {
998
998
  t() && (e.searchable ?? !0) && (f == null || f.focus());
999
999
  });
1000
1000
  const w = Q(() => e.options.filter((S) => e.value.includes(S.value))), _ = Q(() => {
@@ -1008,9 +1008,9 @@ function Jd(e) {
1008
1008
  };
1009
1009
  return (() => {
1010
1010
  var S = Jn(), D = S.firstChild, I = D.firstChild, P = a;
1011
- typeof P == "function" ? O(P, S) : a = S, D.$$click = () => t() ? y() : v();
1011
+ typeof P == "function" ? R(P, S) : a = S, D.$$click = () => t() ? y() : v();
1012
1012
  var j = c;
1013
- return typeof j == "function" ? O(j, D) : c = D, s(I, i(M, {
1013
+ return typeof j == "function" ? R(j, D) : c = D, s(I, i(M, {
1014
1014
  get when() {
1015
1015
  return w().length > 0;
1016
1016
  },
@@ -1027,7 +1027,7 @@ function Jd(e) {
1027
1027
  },
1028
1028
  children: (A) => (() => {
1029
1029
  var B = Qn(), N = B.firstChild;
1030
- return s(B, () => A.label, N), N.$$click = (X) => L(X, A.value), s(N, i(me, {
1030
+ return s(B, () => A.label, N), N.$$click = (H) => L(H, A.value), s(N, i(me, {
1031
1031
  class: "h-3 w-3"
1032
1032
  })), k(() => T(N, "aria-label", `Remove ${A.label}`)), B;
1033
1033
  })()
@@ -1043,15 +1043,15 @@ function Jd(e) {
1043
1043
  return i(fe, {
1044
1044
  get children() {
1045
1045
  var A = Wn(), B = A.firstChild, N = o;
1046
- return typeof N == "function" ? O(N, A) : o = A, s(A, i(M, {
1046
+ return typeof N == "function" ? R(N, A) : o = A, s(A, i(M, {
1047
1047
  get when() {
1048
1048
  return e.searchable ?? !0;
1049
1049
  },
1050
1050
  get children() {
1051
- var X = Gn();
1052
- X.$$input = (ne) => l(ne.currentTarget.value);
1051
+ var H = qn();
1052
+ H.$$input = (ne) => l(ne.currentTarget.value);
1053
1053
  var J = f;
1054
- return typeof J == "function" ? O(J, X) : f = X, k(() => X.value = n()), X;
1054
+ return typeof J == "function" ? R(J, H) : f = H, k(() => H.value = n()), H;
1055
1055
  }
1056
1056
  }), B), s(B, i(F, {
1057
1057
  get each() {
@@ -1060,11 +1060,11 @@ function Jd(e) {
1060
1060
  get fallback() {
1061
1061
  return el();
1062
1062
  },
1063
- children: (X) => {
1064
- const J = () => e.value.includes(X.value);
1063
+ children: (H) => {
1064
+ const J = () => e.value.includes(H.value);
1065
1065
  return (() => {
1066
1066
  var ne = tl(), V = ne.firstChild, ee = V.firstChild, te = ee.nextSibling;
1067
- return V.$$click = () => C(X.value), s(ee, i(M, {
1067
+ return V.$$click = () => C(H.value), s(ee, i(M, {
1068
1068
  get when() {
1069
1069
  return J();
1070
1070
  },
@@ -1073,7 +1073,7 @@ function Jd(e) {
1073
1073
  class: "h-3 w-3"
1074
1074
  });
1075
1075
  }
1076
- })), s(te, () => X.label), k((U) => {
1076
+ })), s(te, () => H.label), k((U) => {
1077
1077
  var le = J(), oe = J(), pe = p("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none transition-colors hover:bg-muted focus:bg-muted", J() && "bg-primary/10"), mt = p("flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border border-input", J() && "border-primary bg-primary text-primary-foreground");
1078
1078
  return le !== U.e && T(V, "aria-selected", U.e = le), oe !== U.t && T(V, "aria-pressed", U.t = oe), pe !== U.a && E(V, U.a = pe), mt !== U.o && E(ee, U.o = mt), U;
1079
1079
  }, {
@@ -1084,9 +1084,9 @@ function Jd(e) {
1084
1084
  }), ne;
1085
1085
  })();
1086
1086
  }
1087
- })), k((X) => {
1087
+ })), k((H) => {
1088
1088
  var J = `${g().top}px`, ne = `${g().left}px`, V = `${g().width}px`;
1089
- return J !== X.e && R(A, "top", X.e = J), ne !== X.t && R(A, "left", X.t = ne), V !== X.a && R(A, "width", X.a = V), X;
1089
+ return J !== H.e && O(A, "top", H.e = J), ne !== H.t && O(A, "left", H.t = ne), V !== H.a && O(A, "width", H.a = V), H;
1090
1090
  }, {
1091
1091
  e: void 0,
1092
1092
  t: void 0,
@@ -1096,8 +1096,8 @@ function Jd(e) {
1096
1096
  });
1097
1097
  }
1098
1098
  }), null), k((A) => {
1099
- var B = p("relative", e.class), N = e.disabled, X = t();
1100
- return B !== A.e && E(S, A.e = B), N !== A.t && (D.disabled = A.t = N), X !== A.a && T(D, "aria-expanded", A.a = X), A;
1099
+ var B = p("relative", e.class), N = e.disabled, H = t();
1100
+ return B !== A.e && E(S, A.e = B), N !== A.t && (D.disabled = A.t = N), H !== A.a && T(D, "aria-expanded", A.a = H), A;
1101
1101
  }, {
1102
1102
  e: void 0,
1103
1103
  t: void 0,
@@ -1158,7 +1158,7 @@ function Zd(e) {
1158
1158
  }
1159
1159
  }), null), r;
1160
1160
  }
1161
- }), K(() => e.children)];
1161
+ }), G(() => e.children)];
1162
1162
  }
1163
1163
  })), t;
1164
1164
  })()];
@@ -1250,7 +1250,7 @@ function eu(e) {
1250
1250
  l(g.currentTarget.files), g.currentTarget.value = "";
1251
1251
  });
1252
1252
  var f = n;
1253
- return typeof f == "function" ? O(f, o) : n = o, k((g) => {
1253
+ return typeof f == "function" ? R(f, o) : n = o, k((g) => {
1254
1254
  var u = e.disabled ? -1 : 0, d = e.disabled, h = {
1255
1255
  "border-ring bg-primary/5": t(),
1256
1256
  "border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
@@ -1468,7 +1468,7 @@ function nu(e) {
1468
1468
  var l = pl();
1469
1469
  l.addEventListener("change", (c) => t.onChange(c.currentTarget.value));
1470
1470
  var a = n;
1471
- return typeof a == "function" ? O(a, l) : n = l, ce(l, de({
1471
+ return typeof a == "function" ? R(a, l) : n = l, ce(l, de({
1472
1472
  get class() {
1473
1473
  return p(_l, t.class);
1474
1474
  },
@@ -1501,20 +1501,20 @@ const El = {
1501
1501
  function lu(e) {
1502
1502
  const t = kr(() => e.value), r = () => (e.format ?? ((l) => String(Math.round(l))))(t());
1503
1503
  let n;
1504
- return W(() => {
1505
- n && Gt(n, {
1504
+ return q(() => {
1505
+ n && qt(n, {
1506
1506
  delay: e.delay ?? 0
1507
1507
  });
1508
1508
  }), (() => {
1509
1509
  var l = Ct(), a = n;
1510
- return typeof a == "function" ? O(a, l) : n = l, s(l, i(Kt, {
1510
+ return typeof a == "function" ? R(a, l) : n = l, s(l, i(Gt, {
1511
1511
  glass: !0,
1512
1512
  glow: !0,
1513
1513
  get class() {
1514
1514
  return e.class;
1515
1515
  },
1516
1516
  get children() {
1517
- return i(qt, {
1517
+ return i(Kt, {
1518
1518
  class: "flex items-center gap-4 p-5",
1519
1519
  get children() {
1520
1520
  return [i(M, {
@@ -1604,7 +1604,7 @@ function Ol(e) {
1604
1604
  }
1605
1605
  var Bl = /* @__PURE__ */ x("<div><div style=position:relative;width:100%>"), jl = /* @__PURE__ */ x("<div style=position:absolute;top:0;left:0;width:100%>");
1606
1606
  function iu(e) {
1607
- const [t, r] = z(), n = Kr({
1607
+ const [t, r] = z(), n = Gr({
1608
1608
  get count() {
1609
1609
  return e.each.length;
1610
1610
  },
@@ -1616,7 +1616,7 @@ function iu(e) {
1616
1616
  });
1617
1617
  return on(t, r), (() => {
1618
1618
  var l = Bl(), a = l.firstChild;
1619
- return O(r, l), s(a, i(F, {
1619
+ return R(r, l), s(a, i(F, {
1620
1620
  get each() {
1621
1621
  return n.getVirtualItems();
1622
1622
  },
@@ -1624,7 +1624,7 @@ function iu(e) {
1624
1624
  var o = jl();
1625
1625
  return s(o, () => e.children(e.each[c.index], () => c.index)), k((f) => {
1626
1626
  var g = `${c.size}px`, u = `translateY(${c.start}px)`;
1627
- return g !== f.e && R(o, "height", f.e = g), u !== f.t && R(o, "transform", f.t = u), f;
1627
+ return g !== f.e && O(o, "height", f.e = g), u !== f.t && O(o, "transform", f.t = u), f;
1628
1628
  }, {
1629
1629
  e: void 0,
1630
1630
  t: void 0
@@ -1632,7 +1632,7 @@ function iu(e) {
1632
1632
  })()
1633
1633
  })), k((c) => {
1634
1634
  var o = p("overflow-auto", e.class), f = `${n.getTotalSize()}px`;
1635
- return o !== c.e && E(l, c.e = o), f !== c.t && R(a, "height", c.t = f), c;
1635
+ return o !== c.e && E(l, c.e = o), f !== c.t && O(a, "height", c.t = f), c;
1636
1636
  }, {
1637
1637
  e: void 0,
1638
1638
  t: void 0
@@ -1697,7 +1697,7 @@ const Yl = {
1697
1697
  info: "border-sky-500/30 bg-sky-500/10"
1698
1698
  };
1699
1699
  function it(e, t, r) {
1700
- qr.show((n) => i(ye, {
1700
+ Kr.show((n) => i(ye, {
1701
1701
  get toastId() {
1702
1702
  return n.toastId;
1703
1703
  },
@@ -1874,7 +1874,7 @@ function gu(e) {
1874
1874
  return p("z-50 rounded-md border border-border bg-card px-2.5 py-1.5 text-xs text-card-foreground shadow-md", e.class);
1875
1875
  },
1876
1876
  get children() {
1877
- return [i(Me.Arrow, {}), K(() => e.content)];
1877
+ return [i(Me.Arrow, {}), G(() => e.content)];
1878
1878
  }
1879
1879
  });
1880
1880
  }
@@ -1897,7 +1897,7 @@ function Vl(e) {
1897
1897
  return p("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1898
1898
  },
1899
1899
  get children() {
1900
- return [i(Te.Arrow, {}), K(() => e.children)];
1900
+ return [i(Te.Arrow, {}), G(() => e.children)];
1901
1901
  }
1902
1902
  });
1903
1903
  }
@@ -1920,7 +1920,7 @@ function fu(e) {
1920
1920
  return p("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1921
1921
  },
1922
1922
  get children() {
1923
- return [i(Le.Arrow, {}), K(() => e.children)];
1923
+ return [i(Le.Arrow, {}), G(() => e.children)];
1924
1924
  }
1925
1925
  });
1926
1926
  }
@@ -1928,8 +1928,8 @@ function fu(e) {
1928
1928
  }
1929
1929
  });
1930
1930
  }
1931
- var Ul = /* @__PURE__ */ x("<p class=font-semibold>"), Kl = /* @__PURE__ */ x("<div class=flex-1><div class=text-muted-foreground>");
1932
- const ql = {
1931
+ var Ul = /* @__PURE__ */ x("<p class=font-semibold>"), Gl = /* @__PURE__ */ x("<div class=flex-1><div class=text-muted-foreground>");
1932
+ const Kl = {
1933
1933
  info: {
1934
1934
  wrap: "border-sky-500/30 bg-sky-500/10",
1935
1935
  icon: "text-sky-500",
@@ -1952,8 +1952,8 @@ const ql = {
1952
1952
  }
1953
1953
  };
1954
1954
  function mu(e) {
1955
- const t = () => ql[e.tone ?? "info"];
1956
- return i(Gr, {
1955
+ const t = () => Kl[e.tone ?? "info"];
1956
+ return i(qr, {
1957
1957
  get class() {
1958
1958
  return p("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
1959
1959
  },
@@ -1966,7 +1966,7 @@ function mu(e) {
1966
1966
  return p("mt-0.5 h-4 w-4 shrink-0", t().icon);
1967
1967
  }
1968
1968
  }), (() => {
1969
- var r = Kl(), n = r.firstChild;
1969
+ var r = Gl(), n = r.firstChild;
1970
1970
  return s(r, i(M, {
1971
1971
  get when() {
1972
1972
  return e.title;
@@ -2003,10 +2003,10 @@ function mr(e) {
2003
2003
  }
2004
2004
  });
2005
2005
  }
2006
- var Gl = /* @__PURE__ */ x("<div>");
2006
+ var ql = /* @__PURE__ */ x("<div>");
2007
2007
  function hu(e) {
2008
2008
  return (() => {
2009
- var t = Gl();
2009
+ var t = ql();
2010
2010
  return k(() => E(t, p("rounded-md bg-muted", e.shimmer ? "skeleton-shimmer" : "animate-pulse", e.class))), t;
2011
2011
  })();
2012
2012
  }
@@ -2121,7 +2121,7 @@ function xu(e) {
2121
2121
  }
2122
2122
  const Et = "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";
2123
2123
  function $u(e) {
2124
- return i(Ne, {
2124
+ return i(Ye, {
2125
2125
  get rawValue() {
2126
2126
  return e.value;
2127
2127
  },
@@ -2136,15 +2136,15 @@ function $u(e) {
2136
2136
  return p("inline-flex items-stretch", e.class);
2137
2137
  },
2138
2138
  get children() {
2139
- return [i(Ne.DecrementTrigger, {
2139
+ return [i(Ye.DecrementTrigger, {
2140
2140
  get class() {
2141
2141
  return p(Et, "rounded-l-md");
2142
2142
  },
2143
2143
  "aria-label": "Decrement",
2144
2144
  children: "−"
2145
- }), i(Ne.Input, {
2145
+ }), i(Ye.Input, {
2146
2146
  class: "w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors a4-field"
2147
- }), i(Ne.IncrementTrigger, {
2147
+ }), i(Ye.IncrementTrigger, {
2148
2148
  get class() {
2149
2149
  return p(Et, "rounded-r-md");
2150
2150
  },
@@ -2258,7 +2258,7 @@ function _u(e) {
2258
2258
  var a = Ql();
2259
2259
  return s(a, i(M, {
2260
2260
  get when() {
2261
- return K(() => !!r.href)() && !l();
2261
+ return G(() => !!r.href)() && !l();
2262
2262
  },
2263
2263
  get fallback() {
2264
2264
  return (() => {
@@ -2470,17 +2470,17 @@ function Eu(e) {
2470
2470
  const C = (g == null ? void 0 : g.clientWidth) ?? 1, L = h(), S = Math.max(48, C * 0.2);
2471
2471
  L <= -S ? c() : L >= S && a(), v(0), d(!1);
2472
2472
  }, [w, _] = z(!1);
2473
- return W(() => {
2474
- if (e.autoplayMs === void 0 || H()) return;
2473
+ return q(() => {
2474
+ if (e.autoplayMs === void 0 || X()) return;
2475
2475
  const C = setInterval(() => {
2476
2476
  w() || c();
2477
2477
  }, e.autoplayMs);
2478
- q(() => clearInterval(C));
2478
+ K(() => clearInterval(C));
2479
2479
  }), (() => {
2480
2480
  var C = ni(), L = C.firstChild, S = L.firstChild, D = S.nextSibling, I = D.nextSibling, P = L.nextSibling;
2481
2481
  C.addEventListener("pointerleave", () => _(!1)), C.addEventListener("pointerenter", () => _(!0)), C.$$keydown = o;
2482
2482
  var j = g;
2483
- return typeof j == "function" ? O(j, L) : g = L, S.addEventListener("pointercancel", $), S.$$pointerup = $, S.$$pointermove = b, S.$$pointerdown = m, s(S, i(F, {
2483
+ return typeof j == "function" ? R(j, L) : g = L, S.addEventListener("pointercancel", $), S.$$pointerup = $, S.$$pointermove = b, S.$$pointerdown = m, s(S, i(F, {
2484
2484
  get each() {
2485
2485
  return e.slides;
2486
2486
  },
@@ -2499,10 +2499,10 @@ function Eu(e) {
2499
2499
  children: (A, B) => (
2500
2500
  // 24×24 hit target (a11y target-size) around a small visual dot.
2501
2501
  (() => {
2502
- var N = ii(), X = N.firstChild;
2502
+ var N = ii(), H = N.firstChild;
2503
2503
  return N.$$click = () => l(B()), k((J) => {
2504
2504
  var ne = `Go to slide ${B() + 1}`, V = t() === B() ? "true" : void 0, ee = p("h-2 w-2 rounded-full transition-colors", t() === B() ? "bg-primary" : "bg-muted");
2505
- return ne !== J.e && T(N, "aria-label", J.e = ne), V !== J.t && T(N, "aria-current", J.t = V), ee !== J.a && E(X, J.a = ee), J;
2505
+ return ne !== J.e && T(N, "aria-label", J.e = ne), V !== J.t && T(N, "aria-current", J.t = V), ee !== J.a && E(H, J.a = ee), J;
2506
2506
  }, {
2507
2507
  e: void 0,
2508
2508
  t: void 0,
@@ -2511,8 +2511,8 @@ function Eu(e) {
2511
2511
  })()
2512
2512
  )
2513
2513
  })), k((A) => {
2514
- var B = p("flex flex-col gap-3 outline-none focus-visible:ring-2 focus-visible:ring-primary", e.class), N = p("flex", f() && n() > 1 && "touch-pan-y cursor-grab active:cursor-grabbing", !u() && "transition-transform duration-500 ease-out"), X = `translateX(calc(-${t() * 100}% + ${h()}px))`;
2515
- return B !== A.e && E(C, A.e = B), N !== A.t && E(S, A.t = N), X !== A.a && R(S, "transform", A.a = X), A;
2514
+ var B = p("flex flex-col gap-3 outline-none focus-visible:ring-2 focus-visible:ring-primary", e.class), N = p("flex", f() && n() > 1 && "touch-pan-y cursor-grab active:cursor-grabbing", !u() && "transition-transform duration-500 ease-out"), H = `translateX(calc(-${t() * 100}% + ${h()}px))`;
2515
+ return B !== A.e && E(C, A.e = B), N !== A.t && E(S, A.t = N), H !== A.a && O(S, "transform", A.a = H), A;
2516
2516
  }, {
2517
2517
  e: void 0,
2518
2518
  t: void 0,
@@ -2682,7 +2682,7 @@ function Lu(e) {
2682
2682
  get each() {
2683
2683
  return t.tiers;
2684
2684
  },
2685
- children: (u) => i(Kt, {
2685
+ children: (u) => i(Gt, {
2686
2686
  get glass() {
2687
2687
  return u.highlighted;
2688
2688
  },
@@ -2720,7 +2720,7 @@ function Lu(e) {
2720
2720
  return s(d, () => o(u)), d;
2721
2721
  })()];
2722
2722
  }
2723
- }), i(qt, {
2723
+ }), i(Kt, {
2724
2724
  class: "flex flex-1 flex-col gap-6",
2725
2725
  get children() {
2726
2726
  return [(() => {
@@ -2783,14 +2783,14 @@ function Lu(e) {
2783
2783
  }
2784
2784
  Y(["click", "pointerdown"]);
2785
2785
  var Mi = /* @__PURE__ */ x('<div><img alt aria-hidden=true class="absolute inset-0 h-full w-full object-cover"><img><div role=slider tabindex=0 aria-orientation=horizontal aria-valuemin=0 aria-valuemax=100><span class="grid h-8 w-8 place-items-center rounded-full border border-border bg-background text-foreground shadow-md group-focus-visible:ring-2 group-focus-visible:ring-primary group-focus-visible:ring-offset-2 group-focus-visible:ring-offset-background">'), Ti = /* @__PURE__ */ x('<span class="pointer-events-none absolute bottom-3 left-3 rounded-md border border-border bg-background/70 px-2 py-1 text-xs font-medium text-foreground backdrop-blur-sm">'), Li = /* @__PURE__ */ x('<span class="pointer-events-none absolute bottom-3 right-3 rounded-md border border-border bg-background/70 px-2 py-1 text-xs font-medium text-foreground backdrop-blur-sm">');
2786
- const Xe = (e) => Math.min(100, Math.max(0, e));
2786
+ const He = (e) => Math.min(100, Math.max(0, e));
2787
2787
  function Du(e) {
2788
- const [t, r] = z(Xe(e.start ?? 50)), [n, l] = z(!1);
2788
+ const [t, r] = z(He(e.start ?? 50)), [n, l] = z(!1);
2789
2789
  let a;
2790
2790
  const c = (d) => {
2791
2791
  if (!a) return;
2792
2792
  const h = a.getBoundingClientRect();
2793
- r(Xe((d - h.left) / h.width * 100));
2793
+ r(He((d - h.left) / h.width * 100));
2794
2794
  }, o = (d) => {
2795
2795
  const h = d.currentTarget;
2796
2796
  h.setPointerCapture(d.pointerId), h.focus(), l(!0), c(d.clientX);
@@ -2802,13 +2802,13 @@ function Du(e) {
2802
2802
  c(d.clientX);
2803
2803
  }, g = (d) => {
2804
2804
  const h = d.shiftKey ? 10 : 2;
2805
- d.key === "ArrowLeft" || d.key === "ArrowDown" ? (d.preventDefault(), r((v) => Xe(v - h))) : d.key === "ArrowRight" || d.key === "ArrowUp" ? (d.preventDefault(), r((v) => Xe(v + h))) : d.key === "Home" ? (d.preventDefault(), r(0)) : d.key === "End" && (d.preventDefault(), r(100));
2806
- }, u = () => !n() && !H() ? "transition-[clip-path] duration-200 ease-out" : "";
2805
+ d.key === "ArrowLeft" || d.key === "ArrowDown" ? (d.preventDefault(), r((v) => He(v - h))) : d.key === "ArrowRight" || d.key === "ArrowUp" ? (d.preventDefault(), r((v) => He(v + h))) : d.key === "Home" ? (d.preventDefault(), r(0)) : d.key === "End" && (d.preventDefault(), r(100));
2806
+ }, u = () => !n() && !X() ? "transition-[clip-path] duration-200 ease-out" : "";
2807
2807
  return (() => {
2808
2808
  var d = Mi(), h = d.firstChild, v = h.nextSibling, y = v.nextSibling, m = y.firstChild;
2809
2809
  d.$$click = f;
2810
2810
  var b = a;
2811
- return typeof b == "function" ? O(b, d) : a = d, T(h, "draggable", !1), T(v, "draggable", !1), s(d, i(M, {
2811
+ return typeof b == "function" ? R(b, d) : a = d, T(h, "draggable", !1), T(v, "draggable", !1), s(d, i(M, {
2812
2812
  get when() {
2813
2813
  return e.labels;
2814
2814
  },
@@ -2823,7 +2823,7 @@ function Du(e) {
2823
2823
  class: "h-4 w-4"
2824
2824
  })), k(($) => {
2825
2825
  var w = p("relative aspect-video w-full select-none overflow-hidden", e.class), _ = e.before, C = e.after, L = e.alt, S = p("absolute inset-0 h-full w-full object-cover", u()), D = `inset(0 ${100 - t()}% 0 0)`, I = e.alt, P = Math.round(t()), j = p("group absolute inset-y-0 flex w-8 -translate-x-1/2 cursor-ew-resize touch-none items-center justify-center", "before:pointer-events-none before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-background before:content-['']", "focus-visible:outline-none"), A = `${t()}%`;
2826
- return w !== $.e && E(d, $.e = w), _ !== $.t && T(h, "src", $.t = _), C !== $.a && T(v, "src", $.a = C), L !== $.o && T(v, "alt", $.o = L), S !== $.i && E(v, $.i = S), D !== $.n && R(v, "clip-path", $.n = D), I !== $.s && T(y, "aria-label", $.s = I), P !== $.h && T(y, "aria-valuenow", $.h = P), j !== $.r && E(y, $.r = j), A !== $.d && R(y, "left", $.d = A), $;
2826
+ return w !== $.e && E(d, $.e = w), _ !== $.t && T(h, "src", $.t = _), C !== $.a && T(v, "src", $.a = C), L !== $.o && T(v, "alt", $.o = L), S !== $.i && E(v, $.i = S), D !== $.n && O(v, "clip-path", $.n = D), I !== $.s && T(y, "aria-label", $.s = I), P !== $.h && T(y, "aria-valuenow", $.h = P), j !== $.r && E(y, $.r = j), A !== $.d && O(y, "left", $.d = A), $;
2827
2827
  }, {
2828
2828
  e: void 0,
2829
2829
  t: void 0,
@@ -2840,14 +2840,14 @@ function Du(e) {
2840
2840
  }
2841
2841
  Y(["click", "pointerdown", "keydown"]);
2842
2842
  var Di = /* @__PURE__ */ x('<div class=space-y-6><div class="flex items-center justify-between border-t border-border pt-4"><span class="text-sm text-muted-foreground">Total</span><span class="text-lg font-semibold text-foreground tabular-nums">'), Ii = /* @__PURE__ */ x('<div><p class="mb-2 text-sm font-medium text-foreground">'), Ai = /* @__PURE__ */ x('<div class="flex flex-wrap gap-2">'), Fi = /* @__PURE__ */ x('<span class="ml-1 opacity-70">· '), zi = /* @__PURE__ */ x("<button type=button>"), Pi = /* @__PURE__ */ x("<div class=space-y-2>"), Ri = /* @__PURE__ */ x('<span class="ml-1 text-muted-foreground">· '), Oi = /* @__PURE__ */ x('<div class="flex items-center justify-between gap-3"><span class="text-sm text-foreground"></span><div class="flex items-center gap-2"><span class="w-6 text-center text-sm tabular-nums">'), Bi = /* @__PURE__ */ x('<input type=text class="w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring">'), ji = /* @__PURE__ */ x("<div class=min-w-0>"), Ni = /* @__PURE__ */ x("<div>");
2843
- const He = (e) => typeof e == "string" ? e : "", ot = (e) => e && typeof e == "object" ? e : {};
2843
+ const Ve = (e) => typeof e == "string" ? e : "", ot = (e) => e && typeof e == "object" ? e : {};
2844
2844
  function Iu(e) {
2845
2845
  const t = (o) => (e.formatTotal ?? ((f) => `$${f}`))(o), r = Q(() => {
2846
2846
  var f;
2847
2847
  let o = 0;
2848
2848
  for (const g of e.groups)
2849
2849
  if (g.type === "select") {
2850
- const u = He(e.value[g.name]);
2850
+ const u = Ve(e.value[g.name]);
2851
2851
  o += ((f = g.options.find((d) => d.value === u)) == null ? void 0 : f.price) ?? 0;
2852
2852
  } else if (g.type === "counter") {
2853
2853
  const u = ot(e.value[g.name]);
@@ -2897,7 +2897,7 @@ function Iu(e) {
2897
2897
  return w.firstChild, s(w, () => t(b.price), null), w;
2898
2898
  }
2899
2899
  }), null), k((w) => {
2900
- var _ = He(e.value[y().name]) === b.value, C = p("rounded-lg border px-3 py-1.5 text-sm transition-colors", He(e.value[y().name]) === b.value ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:text-foreground");
2900
+ var _ = Ve(e.value[y().name]) === b.value, C = p("rounded-lg border px-3 py-1.5 text-sm transition-colors", Ve(e.value[y().name]) === b.value ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:text-foreground");
2901
2901
  return _ !== w.e && T($, "aria-pressed", w.e = _), C !== w.t && E($, w.t = C), w;
2902
2902
  }, {
2903
2903
  e: void 0,
@@ -2962,7 +2962,7 @@ function Iu(e) {
2962
2962
  e: void 0,
2963
2963
  t: void 0,
2964
2964
  a: void 0
2965
- }), k(() => m.value = He(e.value[y().name])), m;
2965
+ }), k(() => m.value = Ve(e.value[y().name])), m;
2966
2966
  })()
2967
2967
  }), null), h;
2968
2968
  })()
@@ -3057,7 +3057,7 @@ function Fu(e) {
3057
3057
  })), k(() => E(t, p("w-72", e.class))), t;
3058
3058
  })();
3059
3059
  }
3060
- var Ui = /* @__PURE__ */ x("<span class=shrink-0>"), Ki = /* @__PURE__ */ x("<ul role=group>"), qi = /* @__PURE__ */ x('<li role=treeitem><div class="flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-foreground hover:bg-muted cursor-pointer"><span class=truncate>'), Gi = /* @__PURE__ */ x('<span class="h-3.5 w-3.5 shrink-0"aria-hidden=true>'), Wi = /* @__PURE__ */ x("<ul role=tree>");
3060
+ var Ui = /* @__PURE__ */ x("<span class=shrink-0>"), Gi = /* @__PURE__ */ x("<ul role=group>"), Ki = /* @__PURE__ */ x('<li role=treeitem><div class="flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-foreground hover:bg-muted cursor-pointer"><span class=truncate>'), qi = /* @__PURE__ */ x('<span class="h-3.5 w-3.5 shrink-0"aria-hidden=true>'), Wi = /* @__PURE__ */ x("<ul role=tree>");
3061
3061
  function zu(e) {
3062
3062
  const [t, r] = z(new Set(e.defaultExpanded ?? [])), n = (a) => r((c) => {
3063
3063
  const o = new Set(c);
@@ -3068,13 +3068,13 @@ function zu(e) {
3068
3068
  return (((f = a.node.children) == null ? void 0 : f.length) ?? 0) > 0;
3069
3069
  }, o = () => t().has(a.node.id);
3070
3070
  return (() => {
3071
- var f = qi(), g = f.firstChild, u = g.firstChild;
3071
+ var f = Ki(), g = f.firstChild, u = g.firstChild;
3072
3072
  return g.$$click = () => c() && n(a.node.id), s(g, i(M, {
3073
3073
  get when() {
3074
3074
  return c();
3075
3075
  },
3076
3076
  get fallback() {
3077
- return Gi();
3077
+ return qi();
3078
3078
  },
3079
3079
  get children() {
3080
3080
  return i(ge, {
@@ -3094,10 +3094,10 @@ function zu(e) {
3094
3094
  }
3095
3095
  }), u), s(u, () => a.node.label), s(f, i(M, {
3096
3096
  get when() {
3097
- return K(() => !!c())() && o();
3097
+ return G(() => !!c())() && o();
3098
3098
  },
3099
3099
  get children() {
3100
- var d = Ki();
3100
+ var d = Gi();
3101
3101
  return s(d, i(F, {
3102
3102
  get each() {
3103
3103
  return a.node.children;
@@ -3112,7 +3112,7 @@ function zu(e) {
3112
3112
  }
3113
3113
  }), null), k((d) => {
3114
3114
  var h = c() ? o() : void 0, v = `${a.depth * 1 + 0.5}rem`;
3115
- return h !== d.e && T(f, "aria-expanded", d.e = h), v !== d.t && R(g, "padding-left", d.t = v), d;
3115
+ return h !== d.e && T(f, "aria-expanded", d.e = h), v !== d.t && O(g, "padding-left", d.t = v), d;
3116
3116
  }, {
3117
3117
  e: void 0,
3118
3118
  t: void 0
@@ -3165,7 +3165,7 @@ function Ru(e) {
3165
3165
  })), k(() => E(o, p("ring-2 ring-background rounded-full", c() > 0 && "-ml-2"))), o;
3166
3166
  })()
3167
3167
  }), null), s(l, (() => {
3168
- var a = K(() => n() > 0);
3168
+ var a = G(() => n() > 0);
3169
3169
  return () => a() && (() => {
3170
3170
  var c = Qi(), o = c.firstChild;
3171
3171
  return o.firstChild, s(o, n, null), c;
@@ -3296,9 +3296,9 @@ function ju(e) {
3296
3296
  };
3297
3297
  return (() => {
3298
3298
  var d = ao(), h = d.firstChild, v = h.nextSibling, y = v.nextSibling, m = o;
3299
- return typeof m == "function" ? O(m, d) : o = d, s(h, () => e.start), v.$$keydown = u, v.$$pointerdown = g, s(y, () => e.end), k((b) => {
3299
+ return typeof m == "function" ? R(m, d) : o = d, s(h, () => e.start), v.$$keydown = u, v.$$pointerdown = g, s(y, () => e.end), k((b) => {
3300
3300
  var $ = p("flex overflow-hidden", t() === "horizontal" ? "h-64 flex-row" : "flex-col", e.class), w = `${a()}%`, _ = t(), C = Math.round(a()), L = r(), S = n(), D = p("shrink-0 bg-border transition-colors hover:bg-primary/50 focus-visible:bg-primary/50 focus-visible:outline-none", t() === "horizontal" ? "w-1 cursor-col-resize" : "h-1 cursor-row-resize"), I = `${100 - a()}%`;
3301
- return $ !== b.e && E(d, b.e = $), w !== b.t && R(h, "flex-basis", b.t = w), _ !== b.a && T(v, "aria-orientation", b.a = _), C !== b.o && T(v, "aria-valuenow", b.o = C), L !== b.i && T(v, "aria-valuemin", b.i = L), S !== b.n && T(v, "aria-valuemax", b.n = S), D !== b.s && E(v, b.s = D), I !== b.h && R(y, "flex-basis", b.h = I), b;
3301
+ return $ !== b.e && E(d, b.e = $), w !== b.t && O(h, "flex-basis", b.t = w), _ !== b.a && T(v, "aria-orientation", b.a = _), C !== b.o && T(v, "aria-valuenow", b.o = C), L !== b.i && T(v, "aria-valuemin", b.i = L), S !== b.n && T(v, "aria-valuemax", b.n = S), D !== b.s && E(v, b.s = D), I !== b.h && O(y, "flex-basis", b.h = I), b;
3302
3302
  }, {
3303
3303
  e: void 0,
3304
3304
  t: void 0,
@@ -3383,7 +3383,7 @@ function Nu(e) {
3383
3383
  return s(h, i(M, {
3384
3384
  get when() {
3385
3385
  var m;
3386
- return K(() => !!u.group)() && (d() === 0 || ((m = a()[d() - 1]) == null ? void 0 : m.group) !== u.group);
3386
+ return G(() => !!u.group)() && (d() === 0 || ((m = a()[d() - 1]) == null ? void 0 : m.group) !== u.group);
3387
3387
  },
3388
3388
  get children() {
3389
3389
  var m = mo();
@@ -3480,7 +3480,7 @@ function Hu(e) {
3480
3480
  }
3481
3481
  })), k((h) => {
3482
3482
  var v = n(), y = p("relative inline-flex items-center justify-center", e.class), m = `${t()}px`, b = `${t()}px`, $ = t(), w = t(), _ = `0 0 ${t()} ${t()}`, C = t() / 2, L = t() / 2, S = l(), D = r(), I = t() / 2, P = t() / 2, j = l(), A = r(), B = String(a()), N = String(c());
3483
- return v !== h.e && T(o, "aria-valuenow", h.e = v), y !== h.t && E(o, h.t = y), m !== h.a && R(o, "width", h.a = m), b !== h.o && R(o, "height", h.o = b), $ !== h.i && T(f, "width", h.i = $), w !== h.n && T(f, "height", h.n = w), _ !== h.s && T(f, "viewBox", h.s = _), C !== h.h && T(g, "cx", h.h = C), L !== h.r && T(g, "cy", h.r = L), S !== h.d && T(g, "r", h.d = S), D !== h.l && T(g, "stroke-width", h.l = D), I !== h.u && T(u, "cx", h.u = I), P !== h.c && T(u, "cy", h.c = P), j !== h.w && T(u, "r", h.w = j), A !== h.m && T(u, "stroke-width", h.m = A), B !== h.f && T(u, "stroke-dasharray", h.f = B), N !== h.y && T(u, "stroke-dashoffset", h.y = N), h;
3483
+ return v !== h.e && T(o, "aria-valuenow", h.e = v), y !== h.t && E(o, h.t = y), m !== h.a && O(o, "width", h.a = m), b !== h.o && O(o, "height", h.o = b), $ !== h.i && T(f, "width", h.i = $), w !== h.n && T(f, "height", h.n = w), _ !== h.s && T(f, "viewBox", h.s = _), C !== h.h && T(g, "cx", h.h = C), L !== h.r && T(g, "cy", h.r = L), S !== h.d && T(g, "r", h.d = S), D !== h.l && T(g, "stroke-width", h.l = D), I !== h.u && T(u, "cx", h.u = I), P !== h.c && T(u, "cy", h.c = P), j !== h.w && T(u, "r", h.w = j), A !== h.m && T(u, "stroke-width", h.m = A), B !== h.f && T(u, "stroke-dasharray", h.f = B), N !== h.y && T(u, "stroke-dashoffset", h.y = N), h;
3484
3484
  }, {
3485
3485
  e: void 0,
3486
3486
  t: void 0,
@@ -3505,11 +3505,11 @@ function Hu(e) {
3505
3505
  var wo = /* @__PURE__ */ x('<button type=button aria-label="Back to top">');
3506
3506
  function Vu(e) {
3507
3507
  const [t, r] = z(!1);
3508
- return W(() => {
3508
+ return q(() => {
3509
3509
  const n = () => r(window.scrollY > (e.threshold ?? 300));
3510
3510
  n(), window.addEventListener("scroll", n, {
3511
3511
  passive: !0
3512
- }), q(() => window.removeEventListener("scroll", n));
3512
+ }), K(() => window.removeEventListener("scroll", n));
3513
3513
  }), i(M, {
3514
3514
  get when() {
3515
3515
  return t();
@@ -3552,9 +3552,9 @@ function Uu(e) {
3552
3552
  }
3553
3553
  Y(["click", "pointerdown"]);
3554
3554
  var Co = /* @__PURE__ */ x("<nav>"), So = /* @__PURE__ */ x("<a>");
3555
- function Ku(e) {
3555
+ function Gu(e) {
3556
3556
  const [t, r] = z();
3557
- W(() => {
3557
+ q(() => {
3558
3558
  const l = /* @__PURE__ */ new Map(), a = new IntersectionObserver((c) => {
3559
3559
  for (const g of c) {
3560
3560
  const u = g.target.id;
@@ -3571,7 +3571,7 @@ function Ku(e) {
3571
3571
  const o = document.getElementById(c.id);
3572
3572
  o && a.observe(o);
3573
3573
  }
3574
- q(() => a.disconnect());
3574
+ K(() => a.disconnect());
3575
3575
  });
3576
3576
  const n = (l, a) => {
3577
3577
  var c;
@@ -3604,7 +3604,7 @@ var Eo = /* @__PURE__ */ x("<span>"), Mo = /* @__PURE__ */ x('<mark class="round
3604
3604
  function To(e) {
3605
3605
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3606
3606
  }
3607
- function qu(e) {
3607
+ function Ku(e) {
3608
3608
  const t = () => {
3609
3609
  if (!e.query) return [{
3610
3610
  text: e.text,
@@ -3630,7 +3630,7 @@ function qu(e) {
3630
3630
  })();
3631
3631
  }
3632
3632
  var Lo = /* @__PURE__ */ x("<ul>"), Lt = /* @__PURE__ */ x("<div class=shrink-0>"), Do = /* @__PURE__ */ x('<p class="text-xs text-muted-foreground">'), Io = /* @__PURE__ */ x('<div class="text-xs text-muted-foreground">'), Ao = /* @__PURE__ */ x('<li><div class="min-w-0 flex-1"><p class="text-sm font-medium text-foreground">');
3633
- function Gu(e) {
3633
+ function qu(e) {
3634
3634
  return (() => {
3635
3635
  var t = Lo();
3636
3636
  return s(t, i(F, {
@@ -3696,7 +3696,7 @@ function jo(e) {
3696
3696
  var a = zo();
3697
3697
  return s(a, l), a;
3698
3698
  })()
3699
- })), k((l) => R(n, "transform", `translateY(${t() * -10}%)`)), r;
3699
+ })), k((l) => O(n, "transform", `translateY(${t() * -10}%)`)), r;
3700
3700
  })();
3701
3701
  }
3702
3702
  function No(e) {
@@ -3722,12 +3722,12 @@ function Wu(e) {
3722
3722
  var v;
3723
3723
  h <= 0 && !a && (a = !0, (v = e.onComplete) == null || v.call(e));
3724
3724
  };
3725
- c(n()), W(() => {
3725
+ c(n()), q(() => {
3726
3726
  const h = setInterval(() => {
3727
3727
  const v = r();
3728
3728
  l(v), c(v);
3729
3729
  }, st);
3730
- q(() => clearInterval(h));
3730
+ K(() => clearInterval(h));
3731
3731
  });
3732
3732
  const o = () => Math.floor(n() / Dt), f = () => Math.floor(n() % Dt / dt), g = () => Math.floor(n() % dt / ct), u = () => Math.floor(n() % ct / st), d = () => [{
3733
3733
  label: "Days",
@@ -3766,7 +3766,7 @@ function Ju(e) {
3766
3766
  height: 0
3767
3767
  });
3768
3768
  let a;
3769
- return W(() => {
3769
+ return q(() => {
3770
3770
  let c = 0;
3771
3771
  const o = () => {
3772
3772
  if (!a) return;
@@ -3785,12 +3785,12 @@ function Ju(e) {
3785
3785
  passive: !0
3786
3786
  }), window.addEventListener("resize", g, {
3787
3787
  passive: !0
3788
- }), q(() => {
3788
+ }), K(() => {
3789
3789
  window.removeEventListener("scroll", g), window.removeEventListener("resize", g);
3790
3790
  });
3791
3791
  }), (() => {
3792
3792
  var c = Ho(), o = a;
3793
- return typeof o == "function" ? O(o, c) : a = c, s(c, i(M, {
3793
+ return typeof o == "function" ? R(o, c) : a = c, s(c, i(M, {
3794
3794
  get when() {
3795
3795
  return t();
3796
3796
  },
@@ -3802,7 +3802,7 @@ function Ju(e) {
3802
3802
  var f = Yo();
3803
3803
  return k((g) => {
3804
3804
  var u = `${n().width}px`, d = `${n().height}px`;
3805
- return u !== g.e && R(f, "width", g.e = u), d !== g.t && R(f, "height", g.t = d), g;
3805
+ return u !== g.e && O(f, "width", g.e = u), d !== g.t && O(f, "height", g.t = d), g;
3806
3806
  }, {
3807
3807
  e: void 0,
3808
3808
  t: void 0
@@ -3811,7 +3811,7 @@ function Ju(e) {
3811
3811
  var f = Xo();
3812
3812
  return s(f, () => e.children), k((g) => {
3813
3813
  var u = `${e.offsetTop ?? 0}px`, d = `${n().width}px`;
3814
- return u !== g.e && R(f, "top", g.e = u), d !== g.t && R(f, "width", g.t = d), g;
3814
+ return u !== g.e && O(f, "top", g.e = u), d !== g.t && O(f, "width", g.t = d), g;
3815
3815
  }, {
3816
3816
  e: void 0,
3817
3817
  t: void 0
@@ -3821,7 +3821,7 @@ function Ju(e) {
3821
3821
  })), k(() => E(c, p(e.class))), c;
3822
3822
  })();
3823
3823
  }
3824
- var Vo = /* @__PURE__ */ x('<div class="flex min-w-0 flex-1 flex-col rounded-lg border border-border"><div class="border-b border-border px-3 py-2 text-sm font-medium text-foreground"></div><ul class="max-h-64 flex-1 overflow-y-auto p-1">'), Uo = /* @__PURE__ */ x('<li><label class="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground hover:bg-muted"><input type=checkbox class="h-4 w-4 rounded border-input accent-primary"><span class="min-w-0 truncate">'), Ko = /* @__PURE__ */ x('<div><div class="flex flex-col items-center justify-center gap-2">');
3824
+ var Vo = /* @__PURE__ */ x('<div class="flex min-w-0 flex-1 flex-col rounded-lg border border-border"><div class="border-b border-border px-3 py-2 text-sm font-medium text-foreground"></div><ul class="max-h-64 flex-1 overflow-y-auto p-1">'), Uo = /* @__PURE__ */ x('<li><label class="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground hover:bg-muted"><input type=checkbox class="h-4 w-4 rounded border-input accent-primary"><span class="min-w-0 truncate">'), Go = /* @__PURE__ */ x('<div><div class="flex flex-col items-center justify-center gap-2">');
3825
3825
  function Zu(e) {
3826
3826
  const [t, r] = z(/* @__PURE__ */ new Set()), n = () => e.titles ?? ["Available", "Selected"], l = () => e.items.filter((u) => !e.selected.includes(u.value)), a = () => e.items.filter((u) => e.selected.includes(u.value)), c = (u) => {
3827
3827
  const d = new Set(t());
@@ -3845,7 +3845,7 @@ function Zu(e) {
3845
3845
  })), h;
3846
3846
  })();
3847
3847
  return (() => {
3848
- var u = Ko(), d = u.firstChild;
3848
+ var u = Go(), d = u.firstChild;
3849
3849
  return s(u, () => g(n()[0], l), d), s(d, i(se, {
3850
3850
  variant: "outline",
3851
3851
  class: "px-2",
@@ -3869,11 +3869,11 @@ function Zu(e) {
3869
3869
  }), null), s(u, () => g(n()[1], a), null), k(() => E(u, p("flex items-stretch gap-3", e.class))), u;
3870
3870
  })();
3871
3871
  }
3872
- var qo = /* @__PURE__ */ x("<img loading=lazy>", !0, !1, !1), Go = /* @__PURE__ */ x("<button type=button class=cursor-zoom-in>"), Wo = /* @__PURE__ */ x('<img class="max-h-[85vh] max-w-[90vw] rounded-lg object-contain">'), Jo = /* @__PURE__ */ x('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
3872
+ var Ko = /* @__PURE__ */ x("<img loading=lazy>", !0, !1, !1), qo = /* @__PURE__ */ x("<button type=button class=cursor-zoom-in>"), Wo = /* @__PURE__ */ x('<img class="max-h-[85vh] max-w-[90vw] rounded-lg object-contain">'), Jo = /* @__PURE__ */ x('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
3873
3873
  function Qu(e) {
3874
- const [t, r] = z(!1), n = () => e.preview !== !1, [l, a] = z(!1), c = () => e.blurUp === !0 && !H(), o = () => !c() || l(), f = (() => {
3875
- var g = qo();
3876
- return O((u) => {
3874
+ const [t, r] = z(!1), n = () => e.preview !== !1, [l, a] = z(!1), c = () => e.blurUp === !0 && !X(), o = () => !c() || l(), f = (() => {
3875
+ var g = Ko();
3876
+ return R((u) => {
3877
3877
  u.complete && a(!0);
3878
3878
  }, g), g.addEventListener("load", () => a(!0)), k((u) => {
3879
3879
  var d = e.src, h = e.alt, v = p("rounded-lg object-cover", c() && "transition-[filter,transform] duration-500 ease-out", c() && !o() && "scale-[1.03] blur-lg", e.class);
@@ -3891,7 +3891,7 @@ function Qu(e) {
3891
3891
  fallback: f,
3892
3892
  get children() {
3893
3893
  return [(() => {
3894
- var g = Go();
3894
+ var g = qo();
3895
3895
  return g.$$click = () => r(!0), s(g, f), k(() => T(g, "aria-label", e.alt)), g;
3896
3896
  })(), i(Z, {
3897
3897
  get open() {
@@ -3957,8 +3957,8 @@ function eg(e) {
3957
3957
  var g = ea();
3958
3958
  return g.$$click = () => {
3959
3959
  o.onClick(), r(!1);
3960
- }, O((u) => {
3961
- H() || G(u, {
3960
+ }, R((u) => {
3961
+ X() || W(u, {
3962
3962
  opacity: [0, 1],
3963
3963
  y: [12, 0],
3964
3964
  scale: [0.8, 1]
@@ -4025,7 +4025,7 @@ function rg(e) {
4025
4025
  return (() => {
4026
4026
  var r = na(), n = r.firstChild, l = n.nextSibling, a = l.firstChild, c = a.nextSibling;
4027
4027
  return s(a, () => e.children), s(c, () => e.children), k((o) => {
4028
- var f = p("overflow-hidden", e.class), g = p("flex w-max shrink-0", t() && "hover:[animation-play-state:paused]"), u = H() ? void 0 : {
4028
+ var f = p("overflow-hidden", e.class), g = p("flex w-max shrink-0", t() && "hover:[animation-play-state:paused]"), u = X() ? void 0 : {
4029
4029
  animation: `marquee ${e.speed ?? 20}s linear infinite`
4030
4030
  };
4031
4031
  return f !== o.e && E(r, o.e = f), g !== o.t && E(l, o.t = g), o.a = ue(l, u, o.a), o;
@@ -4072,7 +4072,7 @@ function ng(e) {
4072
4072
  const $ = n();
4073
4073
  return !$ || $.key !== b.col.key ? i(nr, {
4074
4074
  class: "h-4 w-4 opacity-60"
4075
- }) : K(() => K(() => $.dir === "asc")() ? i(jr, {
4075
+ }) : G(() => G(() => $.dir === "asc")() ? i(jr, {
4076
4076
  class: "h-4 w-4"
4077
4077
  }) : i(je, {
4078
4078
  class: "h-4 w-4"
@@ -4081,7 +4081,7 @@ function ng(e) {
4081
4081
  return (() => {
4082
4082
  var b = la();
4083
4083
  return s(b, (() => {
4084
- var $ = K(() => !!f());
4084
+ var $ = G(() => !!f());
4085
4085
  return () => $() && (() => {
4086
4086
  var w = ia();
4087
4087
  return s(w, i(cl, {
@@ -4110,7 +4110,7 @@ function ng(e) {
4110
4110
  return y($);
4111
4111
  },
4112
4112
  get children() {
4113
- return K(() => !!$.sortable)() ? (() => {
4113
+ return G(() => !!$.sortable)() ? (() => {
4114
4114
  var w = oa();
4115
4115
  return w.$$click = () => g($.key), s(w, () => $.header, null), s(w, i(m, {
4116
4116
  col: $
@@ -4183,7 +4183,7 @@ function lg(e) {
4183
4183
  }, g = (d) => {
4184
4184
  a && !a.contains(d.target) && r(!1);
4185
4185
  };
4186
- W(() => document.addEventListener("click", g)), q(() => document.removeEventListener("click", g));
4186
+ q(() => document.addEventListener("click", g)), K(() => document.removeEventListener("click", g));
4187
4187
  const u = (d) => {
4188
4188
  const h = () => {
4189
4189
  var m;
@@ -4216,7 +4216,7 @@ function lg(e) {
4216
4216
  }
4217
4217
  }), $), s($, () => d.node.label), s(m, i(M, {
4218
4218
  get when() {
4219
- return K(() => !!h())() && v();
4219
+ return G(() => !!h())() && v();
4220
4220
  },
4221
4221
  get children() {
4222
4222
  var w = ca();
@@ -4234,7 +4234,7 @@ function lg(e) {
4234
4234
  }
4235
4235
  }), null), k((w) => {
4236
4236
  var _ = h() ? v() : void 0, C = h() ? void 0 : y(), L = p("flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-foreground hover:bg-muted cursor-pointer", y() && "bg-accent text-accent-foreground"), S = `${d.depth * 1 + 0.5}rem`;
4237
- return _ !== w.e && T(m, "aria-expanded", w.e = _), C !== w.t && T(m, "aria-selected", w.t = C), L !== w.a && E(b, w.a = L), S !== w.o && R(b, "padding-left", w.o = S), w;
4237
+ return _ !== w.e && T(m, "aria-expanded", w.e = _), C !== w.t && T(m, "aria-selected", w.t = C), L !== w.a && E(b, w.a = L), S !== w.o && O(b, "padding-left", w.o = S), w;
4238
4238
  }, {
4239
4239
  e: void 0,
4240
4240
  t: void 0,
@@ -4245,7 +4245,7 @@ function lg(e) {
4245
4245
  };
4246
4246
  return (() => {
4247
4247
  var d = ma(), h = d.firstChild, v = a;
4248
- return typeof v == "function" ? O(v, d) : a = d, h.$$click = () => r((y) => !y), s(h, i(M, {
4248
+ return typeof v == "function" ? R(v, d) : a = d, h.$$click = () => r((y) => !y), s(h, i(M, {
4249
4249
  get when() {
4250
4250
  return c();
4251
4251
  },
@@ -4311,7 +4311,7 @@ function ig(e) {
4311
4311
  }), g = (v) => {
4312
4312
  a && !a.contains(v.target) && r(!1);
4313
4313
  };
4314
- W(() => document.addEventListener("mousedown", g)), q(() => document.removeEventListener("mousedown", g));
4314
+ q(() => document.addEventListener("mousedown", g)), K(() => document.removeEventListener("mousedown", g));
4315
4315
  function u() {
4316
4316
  t() || l(c()), r((v) => !v);
4317
4317
  }
@@ -4325,7 +4325,7 @@ function ig(e) {
4325
4325
  }
4326
4326
  return (() => {
4327
4327
  var v = xa(), y = v.firstChild, m = a;
4328
- return typeof m == "function" ? O(m, v) : a = v, y.$$click = u, s(y, i(M, {
4328
+ return typeof m == "function" ? R(m, v) : a = v, y.$$click = u, s(y, i(M, {
4329
4329
  get when() {
4330
4330
  return o();
4331
4331
  },
@@ -4440,9 +4440,9 @@ function og(e) {
4440
4440
  e.onChange(w.currentTarget.value), h(w.currentTarget);
4441
4441
  };
4442
4442
  var $ = t;
4443
- return typeof $ == "function" ? O($, b) : t = b, s(m, i(M, {
4443
+ return typeof $ == "function" ? R($, b) : t = b, s(m, i(M, {
4444
4444
  get when() {
4445
- return K(() => !!r())() && u().length > 0;
4445
+ return G(() => !!r())() && u().length > 0;
4446
4446
  },
4447
4447
  get children() {
4448
4448
  var w = _a();
@@ -4490,9 +4490,9 @@ function ag(e) {
4490
4490
  };
4491
4491
  re(() => {
4492
4492
  t(), e.open, f();
4493
- }), W(() => {
4493
+ }), q(() => {
4494
4494
  const v = () => f();
4495
- window.addEventListener("resize", v), window.addEventListener("scroll", v, !0), q(() => {
4495
+ window.addEventListener("resize", v), window.addEventListener("scroll", v, !0), K(() => {
4496
4496
  window.removeEventListener("resize", v), window.removeEventListener("scroll", v, !0);
4497
4497
  });
4498
4498
  });
@@ -4522,7 +4522,7 @@ function ag(e) {
4522
4522
  };
4523
4523
  return i(M, {
4524
4524
  get when() {
4525
- return K(() => !!e.open)() && a();
4525
+ return G(() => !!e.open)() && a();
4526
4526
  },
4527
4527
  get children() {
4528
4528
  return i(fe, {
@@ -4538,7 +4538,7 @@ function ag(e) {
4538
4538
  var y = La();
4539
4539
  return k((m) => {
4540
4540
  var b = `${v().top - 4}px`, $ = `${v().left - 4}px`, w = `${v().width + 8}px`, _ = `${v().height + 8}px`;
4541
- return b !== m.e && R(y, "top", m.e = b), $ !== m.t && R(y, "left", m.t = $), w !== m.a && R(y, "width", m.a = w), _ !== m.o && R(y, "height", m.o = _), m;
4541
+ return b !== m.e && O(y, "top", m.e = b), $ !== m.t && O(y, "left", m.t = $), w !== m.a && O(y, "width", m.a = w), _ !== m.o && O(y, "height", m.o = _), m;
4542
4542
  }, {
4543
4543
  e: void 0,
4544
4544
  t: void 0,
@@ -4691,19 +4691,19 @@ function cg(e) {
4691
4691
  },
4692
4692
  children: (g) => (() => {
4693
4693
  var u = Na();
4694
- return u.$$click = () => e.onChange(g), T(u, "aria-label", g), R(u, "background", g), k(() => E(u, p("h-6 w-6 rounded-md border border-border transition-transform active:scale-90 focus:outline-none focus:ring-2 focus:ring-ring", g === e.value && "ring-2 ring-ring ring-offset-1 ring-offset-background"))), u;
4694
+ return u.$$click = () => e.onChange(g), T(u, "aria-label", g), O(u, "background", g), k(() => E(u, p("h-6 w-6 rounded-md border border-border transition-transform active:scale-90 focus:outline-none focus:ring-2 focus:ring-ring", g === e.value && "ring-2 ring-ring ring-offset-1 ring-offset-background"))), u;
4695
4695
  })()
4696
4696
  })), k(() => E(a, p("flex flex-wrap items-center gap-3", e.class))), k(() => c.value = e.value), k(() => o.value = t()), a;
4697
4697
  })();
4698
4698
  }
4699
4699
  Y(["input", "click"]);
4700
- var Ha = /* @__PURE__ */ x('<span class="text-xs text-muted-foreground">'), Va = /* @__PURE__ */ x('<div class="mt-2 flex gap-3 text-xs text-muted-foreground">'), Ua = /* @__PURE__ */ x('<div class="mt-4 space-y-4 border-l border-border pl-4">'), Ka = /* @__PURE__ */ x('<div><div class="flex gap-3"><div class=flex-1><div class="flex items-baseline gap-2"><span class="text-sm font-medium text-foreground"></span></div><div class="mt-1 text-sm text-foreground">');
4701
- function qa(e) {
4700
+ var Ha = /* @__PURE__ */ x('<span class="text-xs text-muted-foreground">'), Va = /* @__PURE__ */ x('<div class="mt-2 flex gap-3 text-xs text-muted-foreground">'), Ua = /* @__PURE__ */ x('<div class="mt-4 space-y-4 border-l border-border pl-4">'), Ga = /* @__PURE__ */ x('<div><div class="flex gap-3"><div class=flex-1><div class="flex items-baseline gap-2"><span class="text-sm font-medium text-foreground"></span></div><div class="mt-1 text-sm text-foreground">');
4701
+ function Ka(e) {
4702
4702
  return e.trim().split(/\s+/).map((t) => t[0] ?? "").slice(0, 2).join("").toUpperCase();
4703
4703
  }
4704
- function Ga(e) {
4704
+ function qa(e) {
4705
4705
  return (() => {
4706
- var t = Ka(), r = t.firstChild, n = r.firstChild, l = n.firstChild, a = l.firstChild, c = l.nextSibling;
4706
+ var t = Ga(), r = t.firstChild, n = r.firstChild, l = n.firstChild, a = l.firstChild, c = l.nextSibling;
4707
4707
  return s(r, i(mr, {
4708
4708
  get src() {
4709
4709
  return e.comment.avatar;
@@ -4712,7 +4712,7 @@ function Ga(e) {
4712
4712
  return e.comment.author;
4713
4713
  },
4714
4714
  get fallback() {
4715
- return qa(e.comment.author);
4715
+ return Ka(e.comment.author);
4716
4716
  }
4717
4717
  }), n), s(a, () => e.comment.author), s(l, i(M, {
4718
4718
  get when() {
@@ -4744,7 +4744,7 @@ function Ga(e) {
4744
4744
  get each() {
4745
4745
  return e.comment.replies;
4746
4746
  },
4747
- children: (f) => i(Ga, {
4747
+ children: (f) => i(qa, {
4748
4748
  comment: f,
4749
4749
  get actions() {
4750
4750
  return e.actions;
@@ -4804,7 +4804,7 @@ function dg(e) {
4804
4804
  },
4805
4805
  children: (h) => (() => {
4806
4806
  var v = Ja();
4807
- return s(v, () => h.label), k((y) => R(v, "left", `${h.index * rs}px`)), v;
4807
+ return s(v, () => h.label), k((y) => O(v, "left", `${h.index * rs}px`)), v;
4808
4808
  })()
4809
4809
  })), s(f, i(F, {
4810
4810
  each: ls,
@@ -4909,7 +4909,7 @@ function gg(e) {
4909
4909
  };
4910
4910
  return (() => {
4911
4911
  var g = as(), u = a;
4912
- return typeof u == "function" ? O(u, g) : a = g, s(g, i(F, {
4912
+ return typeof u == "function" ? R(u, g) : a = g, s(g, i(F, {
4913
4913
  get each() {
4914
4914
  return t();
4915
4915
  },
@@ -4928,7 +4928,7 @@ function gg(e) {
4928
4928
  var y = cs();
4929
4929
  return k((m) => {
4930
4930
  var b;
4931
- return R(y, "height", `${((b = n()) == null ? void 0 : b.height) ?? 0}px`);
4931
+ return O(y, "height", `${((b = n()) == null ? void 0 : b.height) ?? 0}px`);
4932
4932
  }), y;
4933
4933
  })();
4934
4934
  },
@@ -4956,7 +4956,7 @@ function gg(e) {
4956
4956
  children: (m) => e.children(m())
4957
4957
  })), k((m) => {
4958
4958
  var b = `${d().left}px`, $ = `${d().y - d().offset}px`, w = `${d().width}px`;
4959
- return b !== m.e && R(h, "left", m.e = b), $ !== m.t && R(h, "top", m.t = $), w !== m.a && R(h, "width", m.a = w), m;
4959
+ return b !== m.e && O(h, "left", m.e = b), $ !== m.t && O(h, "top", m.t = $), w !== m.a && O(h, "width", m.a = w), m;
4960
4960
  }, {
4961
4961
  e: void 0,
4962
4962
  t: void 0,
@@ -5045,7 +5045,7 @@ function xs(e) {
5045
5045
  var m = fs();
5046
5046
  return k((b) => {
5047
5047
  var $ = g(0.75), w = `rotate(${o()}deg)`;
5048
- return $ !== b.e && T(m, "points", b.e = $), w !== b.t && R(m, "transform", b.t = w), b;
5048
+ return $ !== b.e && T(m, "points", b.e = $), w !== b.t && O(m, "transform", b.t = w), b;
5049
5049
  }, {
5050
5050
  e: void 0,
5051
5051
  t: void 0
@@ -5053,7 +5053,7 @@ function xs(e) {
5053
5053
  }
5054
5054
  }), y), k((m) => {
5055
5055
  var b = t(), $ = t(), w = `0 0 ${t()} ${t()}`, _ = p("inline-block", e.class), C = r(), L = n(), S = l() - 2, D = g(0.45), I = `rotate(${a()}deg)`, P = g(0.65), j = `rotate(${c()}deg)`, A = r(), B = n();
5056
- return b !== m.e && T(u, "width", m.e = b), $ !== m.t && T(u, "height", m.t = $), w !== m.a && T(u, "viewBox", m.a = w), _ !== m.o && T(u, "class", m.o = _), C !== m.i && T(d, "cx", m.i = C), L !== m.n && T(d, "cy", m.n = L), S !== m.s && T(d, "r", m.s = S), D !== m.h && T(h, "points", m.h = D), I !== m.r && R(h, "transform", m.r = I), P !== m.d && T(v, "points", m.d = P), j !== m.l && R(v, "transform", m.l = j), A !== m.u && T(y, "cx", m.u = A), B !== m.c && T(y, "cy", m.c = B), m;
5056
+ return b !== m.e && T(u, "width", m.e = b), $ !== m.t && T(u, "height", m.t = $), w !== m.a && T(u, "viewBox", m.a = w), _ !== m.o && T(u, "class", m.o = _), C !== m.i && T(d, "cx", m.i = C), L !== m.n && T(d, "cy", m.n = L), S !== m.s && T(d, "r", m.s = S), D !== m.h && T(h, "points", m.h = D), I !== m.r && O(h, "transform", m.r = I), P !== m.d && T(v, "points", m.d = P), j !== m.l && O(v, "transform", m.l = j), A !== m.u && T(y, "cx", m.u = A), B !== m.c && T(y, "cy", m.c = B), m;
5057
5057
  }, {
5058
5058
  e: void 0,
5059
5059
  t: void 0,
@@ -5073,9 +5073,9 @@ function xs(e) {
5073
5073
  }
5074
5074
  function fg(e) {
5075
5075
  const [t, r] = z(/* @__PURE__ */ new Date());
5076
- W(() => {
5076
+ q(() => {
5077
5077
  const f = setInterval(() => r(/* @__PURE__ */ new Date()), 1e3);
5078
- q(() => clearInterval(f));
5078
+ K(() => clearInterval(f));
5079
5079
  });
5080
5080
  const n = () => e.variant ?? "digital", l = () => e.seconds ?? !0, a = () => e.hour12 ?? !1, c = () => e.size ?? 160, o = () => vs(t(), e.timeZone);
5081
5081
  return i(M, {
@@ -5128,7 +5128,7 @@ function mg(e) {
5128
5128
  n !== void 0 && (clearInterval(n), n = void 0);
5129
5129
  }, a = () => {
5130
5130
  const o = e.text;
5131
- if (H()) {
5131
+ if (X()) {
5132
5132
  r(o);
5133
5133
  return;
5134
5134
  }
@@ -5144,9 +5144,9 @@ function mg(e) {
5144
5144
  r(o.split("").map((d, h) => d === " " || h < u ? d : ys()).join(""));
5145
5145
  }, zt);
5146
5146
  };
5147
- W(() => {
5147
+ q(() => {
5148
5148
  e.trigger !== "hover" && a();
5149
- }), q(l);
5149
+ }), K(l);
5150
5150
  const c = () => {
5151
5151
  e.trigger === "hover" && a();
5152
5152
  };
@@ -5165,17 +5165,17 @@ function hg(e) {
5165
5165
  let n;
5166
5166
  const l = () => {
5167
5167
  const a = r.filter((c) => c !== void 0);
5168
- a.length !== 0 && G(a, {
5168
+ a.length !== 0 && W(a, {
5169
5169
  opacity: [0, 1],
5170
5170
  y: [12, 0]
5171
5171
  }, {
5172
- delay: Ve(0.03),
5172
+ delay: Ue(0.03),
5173
5173
  duration: 0.4,
5174
5174
  ease: "easeOut"
5175
5175
  });
5176
5176
  };
5177
- return W(() => {
5178
- if (!H()) {
5177
+ return q(() => {
5178
+ if (!X()) {
5179
5179
  for (const a of r)
5180
5180
  a && (a.style.opacity = "0");
5181
5181
  if (e.onView) {
@@ -5189,13 +5189,13 @@ function hg(e) {
5189
5189
  }
5190
5190
  }), (() => {
5191
5191
  var a = ws(), c = n;
5192
- return typeof c == "function" ? O(c, a) : n = a, s(a, i(F, {
5192
+ return typeof c == "function" ? R(c, a) : n = a, s(a, i(F, {
5193
5193
  get each() {
5194
5194
  return t();
5195
5195
  },
5196
5196
  children: (o, f) => ks(o) ? o : (() => {
5197
5197
  var g = ps();
5198
- return O((u) => {
5198
+ return R((u) => {
5199
5199
  r[f()] = u;
5200
5200
  }, g), s(g, o), g;
5201
5201
  })()
@@ -5208,11 +5208,11 @@ function vg(e) {
5208
5208
  let n, l, a, c, o = !1;
5209
5209
  const f = () => e.holdMs ?? 1200, g = (m) => {
5210
5210
  if (l) {
5211
- if (H()) {
5211
+ if (X()) {
5212
5212
  l.style.transform = "scaleX(0)";
5213
5213
  return;
5214
5214
  }
5215
- G(l, {
5215
+ W(l, {
5216
5216
  scaleX: 0
5217
5217
  }, {
5218
5218
  duration: m,
@@ -5220,7 +5220,7 @@ function vg(e) {
5220
5220
  });
5221
5221
  }
5222
5222
  }, u = () => {
5223
- o = !1, r(!1), e.onConfirm(), !H() && n && G(n, {
5223
+ o = !1, r(!1), e.onConfirm(), !X() && n && W(n, {
5224
5224
  scale: [1, 1.04, 1]
5225
5225
  }, {
5226
5226
  duration: 0.3,
@@ -5230,13 +5230,13 @@ function vg(e) {
5230
5230
  o && (o = !1, r(!1), a == null || a.stop(), c !== void 0 && (clearTimeout(c), c = void 0), g(0.15));
5231
5231
  }, h = (m) => {
5232
5232
  if (!(e.disabled || o)) {
5233
- if (m.preventDefault(), o = !0, r(!0), H()) {
5233
+ if (m.preventDefault(), o = !0, r(!0), X()) {
5234
5234
  l && (l.style.transform = "scaleX(1)"), c = setTimeout(() => {
5235
5235
  o && u();
5236
5236
  }, f());
5237
5237
  return;
5238
5238
  }
5239
- l && (a = G(l, {
5239
+ l && (a = W(l, {
5240
5240
  scaleX: [0, 1]
5241
5241
  }, {
5242
5242
  duration: f() / 1e3,
@@ -5251,15 +5251,15 @@ function vg(e) {
5251
5251
  }, y = (m) => {
5252
5252
  m.key !== " " && m.key !== "Enter" || d();
5253
5253
  };
5254
- return q(() => {
5254
+ return K(() => {
5255
5255
  a == null || a.stop(), c !== void 0 && clearTimeout(c);
5256
5256
  }), (() => {
5257
5257
  var m = Cs(), b = m.firstChild, $ = b.nextSibling;
5258
5258
  m.$$keyup = y, m.$$keydown = v, m.addEventListener("pointerleave", d), m.$$pointerup = d, m.$$pointerdown = h;
5259
5259
  var w = n;
5260
- typeof w == "function" ? O(w, m) : n = m;
5260
+ typeof w == "function" ? R(w, m) : n = m;
5261
5261
  var _ = l;
5262
- return typeof _ == "function" ? O(_, b) : l = b, s($, () => e.label ?? "Hold to confirm"), k((C) => {
5262
+ return typeof _ == "function" ? R(_, b) : l = b, s($, () => e.label ?? "Hold to confirm"), k((C) => {
5263
5263
  var L = e.disabled, S = e.label ?? "Hold to confirm", D = t(), I = p("relative overflow-hidden rounded-lg border border-border bg-card px-4 py-2 text-sm font-medium disabled:pointer-events-none disabled:opacity-50", e.class);
5264
5264
  return L !== C.e && (m.disabled = C.e = L), S !== C.t && T(m, "aria-label", C.t = S), D !== C.a && T(m, "aria-busy", C.a = D), I !== C.o && E(m, C.o = I), C;
5265
5265
  }, {
@@ -5289,7 +5289,7 @@ function Es() {
5289
5289
  }
5290
5290
  function bg(e) {
5291
5291
  Es();
5292
- const t = () => e.size ?? 8, r = () => H() ? "a4-dot-pulse" : "a4-dot-bounce", n = (l) => ({
5292
+ const t = () => e.size ?? 8, r = () => X() ? "a4-dot-pulse" : "a4-dot-bounce", n = (l) => ({
5293
5293
  width: `${t()}px`,
5294
5294
  height: `${t()}px`,
5295
5295
  "animation-name": r(),
@@ -5359,7 +5359,7 @@ function xg(e) {
5359
5359
  const v = "easeInOut";
5360
5360
  switch (u) {
5361
5361
  case "fade":
5362
- return l ? G(l, {
5362
+ return l ? W(l, {
5363
5363
  opacity: d ? [0, 1] : [1, 0]
5364
5364
  }, {
5365
5365
  duration: h,
@@ -5367,12 +5367,12 @@ function xg(e) {
5367
5367
  }) : void 0;
5368
5368
  case "doors": {
5369
5369
  if (!l || !a) return;
5370
- const y = G(l, {
5370
+ const y = W(l, {
5371
5371
  x: d ? ["-100%", "0%"] : ["0%", "-100%"]
5372
5372
  }, {
5373
5373
  duration: h,
5374
5374
  ease: v
5375
- }), m = G(a, {
5375
+ }), m = W(a, {
5376
5376
  x: d ? ["100%", "0%"] : ["0%", "100%"]
5377
5377
  }, {
5378
5378
  duration: h,
@@ -5382,33 +5382,33 @@ function xg(e) {
5382
5382
  }
5383
5383
  case "blinds": {
5384
5384
  const y = c.slice(0, Pe).filter((m) => m !== void 0);
5385
- return y.length === 0 ? void 0 : G(y, {
5385
+ return y.length === 0 ? void 0 : W(y, {
5386
5386
  scaleY: d ? [0, 1] : [1, 0]
5387
5387
  }, {
5388
5388
  duration: h,
5389
- delay: Ve(0.05),
5389
+ delay: Ue(0.05),
5390
5390
  ease: v
5391
5391
  });
5392
5392
  }
5393
5393
  case "shutter": {
5394
5394
  const y = c.slice(0, Pe).filter((m) => m !== void 0);
5395
- return y.length === 0 ? void 0 : G(y, {
5395
+ return y.length === 0 ? void 0 : W(y, {
5396
5396
  scaleX: d ? [0, 1] : [1, 0]
5397
5397
  }, {
5398
5398
  duration: h,
5399
- delay: Ve(0.05),
5399
+ delay: Ue(0.05),
5400
5400
  ease: v
5401
5401
  });
5402
5402
  }
5403
5403
  case "iris":
5404
- return l ? G(l, {
5404
+ return l ? W(l, {
5405
5405
  clipPath: d ? ["circle(0% at 50% 50%)", "circle(150% at 50% 50%)"] : ["circle(150% at 50% 50%)", "circle(0% at 50% 50%)"]
5406
5406
  }, {
5407
5407
  duration: h,
5408
5408
  ease: v
5409
5409
  }) : void 0;
5410
5410
  case "clip":
5411
- return l ? G(l, {
5411
+ return l ? W(l, {
5412
5412
  clipPath: d ? ["inset(0 100% 0 0)", "inset(0 0 0 0)"] : ["inset(0 0 0 0)", "inset(0 100% 0 0)"]
5413
5413
  }, {
5414
5414
  duration: h,
@@ -5416,11 +5416,11 @@ function xg(e) {
5416
5416
  }) : void 0;
5417
5417
  case "pixels": {
5418
5418
  const y = c.slice(0, ut).filter((m) => m !== void 0);
5419
- return y.length === 0 ? void 0 : G(y, {
5419
+ return y.length === 0 ? void 0 : W(y, {
5420
5420
  opacity: d ? [0, 1] : [1, 0]
5421
5421
  }, {
5422
5422
  duration: h * 0.5,
5423
- delay: Ve(0.01, {
5423
+ delay: Ue(0.01, {
5424
5424
  from: "first"
5425
5425
  }),
5426
5426
  ease: v
@@ -5430,7 +5430,7 @@ function xg(e) {
5430
5430
  return;
5431
5431
  }
5432
5432
  }
5433
- return W(() => {
5433
+ return q(() => {
5434
5434
  e.show && f(e.variant ?? "fade", !0);
5435
5435
  }), re(Ut(() => e.show, (u) => {
5436
5436
  const d = e.variant ?? "fade", h = e.duration ?? 0.6;
@@ -5439,7 +5439,7 @@ function xg(e) {
5439
5439
  var m, b;
5440
5440
  r(u ? "covered" : "uncovered"), u ? (m = e.onCovered) == null || m.call(e) : (b = e.onRevealed) == null || b.call(e);
5441
5441
  };
5442
- if (H()) {
5442
+ if (X()) {
5443
5443
  f(d, u), queueMicrotask(v);
5444
5444
  return;
5445
5445
  }
@@ -5452,51 +5452,51 @@ function xg(e) {
5452
5452
  });
5453
5453
  }, {
5454
5454
  defer: !0
5455
- })), q(() => n == null ? void 0 : n.stop()), (() => {
5455
+ })), K(() => n == null ? void 0 : n.stop()), (() => {
5456
5456
  var u = Ms();
5457
5457
  return s(u, (() => {
5458
- var d = K(() => (e.variant ?? "fade") === "fade");
5458
+ var d = G(() => (e.variant ?? "fade") === "fade");
5459
5459
  return () => d() && (() => {
5460
5460
  var h = Ts();
5461
- return O((v) => {
5461
+ return R((v) => {
5462
5462
  l = v;
5463
- }, h), k((v) => R(h, "background", o())), h;
5463
+ }, h), k((v) => O(h, "background", o())), h;
5464
5464
  })();
5465
5465
  })(), null), s(u, (() => {
5466
- var d = K(() => (e.variant ?? "fade") === "doors");
5466
+ var d = G(() => (e.variant ?? "fade") === "doors");
5467
5467
  return () => d() && [(() => {
5468
5468
  var h = Ls();
5469
- return O((v) => {
5469
+ return R((v) => {
5470
5470
  l = v;
5471
- }, h), k((v) => R(h, "background", o())), h;
5471
+ }, h), k((v) => O(h, "background", o())), h;
5472
5472
  })(), (() => {
5473
5473
  var h = Ds();
5474
- return O((v) => {
5474
+ return R((v) => {
5475
5475
  a = v;
5476
- }, h), k((v) => R(h, "background", o())), h;
5476
+ }, h), k((v) => O(h, "background", o())), h;
5477
5477
  })()];
5478
5478
  })(), null), s(u, (() => {
5479
- var d = K(() => (e.variant ?? "fade") === "blinds");
5479
+ var d = G(() => (e.variant ?? "fade") === "blinds");
5480
5480
  return () => d() && i(Re, {
5481
5481
  each: Rt,
5482
5482
  children: (h, v) => (() => {
5483
5483
  var y = Is();
5484
- return O((m) => {
5484
+ return R((m) => {
5485
5485
  c[v] = m;
5486
- }, y), R(y, "top", `${v * 12.5}%`), k((m) => R(y, "background", o())), y;
5486
+ }, y), O(y, "top", `${v * 12.5}%`), k((m) => O(y, "background", o())), y;
5487
5487
  })()
5488
5488
  });
5489
5489
  })(), null), s(u, (() => {
5490
- var d = K(() => (e.variant ?? "fade") === "shutter");
5490
+ var d = G(() => (e.variant ?? "fade") === "shutter");
5491
5491
  return () => d() && i(F, {
5492
5492
  each: Rt,
5493
5493
  children: (h, v) => (() => {
5494
5494
  var y = As();
5495
- return O((m) => {
5495
+ return R((m) => {
5496
5496
  c[v()] = m;
5497
5497
  }, y), k((m) => {
5498
5498
  var b = `${v() * 12.5}%`, $ = o();
5499
- return b !== m.e && R(y, "left", m.e = b), $ !== m.t && R(y, "background", m.t = $), m;
5499
+ return b !== m.e && O(y, "left", m.e = b), $ !== m.t && O(y, "background", m.t = $), m;
5500
5500
  }, {
5501
5501
  e: void 0,
5502
5502
  t: void 0
@@ -5504,32 +5504,32 @@ function xg(e) {
5504
5504
  })()
5505
5505
  });
5506
5506
  })(), null), s(u, (() => {
5507
- var d = K(() => (e.variant ?? "fade") === "iris");
5507
+ var d = G(() => (e.variant ?? "fade") === "iris");
5508
5508
  return () => d() && (() => {
5509
5509
  var h = Fs();
5510
- return O((v) => {
5510
+ return R((v) => {
5511
5511
  l = v;
5512
- }, h), k((v) => R(h, "background", o())), h;
5512
+ }, h), k((v) => O(h, "background", o())), h;
5513
5513
  })();
5514
5514
  })(), null), s(u, (() => {
5515
- var d = K(() => (e.variant ?? "fade") === "clip");
5515
+ var d = G(() => (e.variant ?? "fade") === "clip");
5516
5516
  return () => d() && (() => {
5517
5517
  var h = zs();
5518
- return O((v) => {
5518
+ return R((v) => {
5519
5519
  l = v;
5520
- }, h), k((v) => R(h, "background", o())), h;
5520
+ }, h), k((v) => O(h, "background", o())), h;
5521
5521
  })();
5522
5522
  })(), null), s(u, (() => {
5523
- var d = K(() => (e.variant ?? "fade") === "pixels");
5523
+ var d = G(() => (e.variant ?? "fade") === "pixels");
5524
5524
  return () => d() && (() => {
5525
5525
  var h = Ps();
5526
5526
  return s(h, i(Re, {
5527
5527
  each: js,
5528
5528
  children: (v, y) => (() => {
5529
5529
  var m = Rs();
5530
- return O((b) => {
5530
+ return R((b) => {
5531
5531
  c[y] = b;
5532
- }, m), k((b) => R(m, "background", o())), m;
5532
+ }, m), k((b) => O(m, "background", o())), m;
5533
5533
  })()
5534
5534
  })), h;
5535
5535
  })();
@@ -5546,35 +5546,35 @@ function xg(e) {
5546
5546
  var Ys = /* @__PURE__ */ x("<div>");
5547
5547
  function $g(e) {
5548
5548
  let t;
5549
- return W(() => {
5550
- if (H()) return;
5549
+ return q(() => {
5550
+ if (X()) return;
5551
5551
  const r = e.amount ?? 80, n = lr((l) => {
5552
5552
  t.style.transform = `translateY(${(l - 0.5) * -2 * r}px)`;
5553
5553
  }, {
5554
5554
  target: t
5555
5555
  });
5556
- q(() => n());
5556
+ K(() => n());
5557
5557
  }), (() => {
5558
5558
  var r = Ys(), n = t;
5559
- return typeof n == "function" ? O(n, r) : t = r, s(r, () => e.children), k(() => E(r, p("will-change-transform", e.class))), r;
5559
+ return typeof n == "function" ? R(n, r) : t = r, s(r, () => e.children), k(() => E(r, p("will-change-transform", e.class))), r;
5560
5560
  })();
5561
5561
  }
5562
5562
  var Xs = /* @__PURE__ */ x('<span style="background:linear-gradient(90deg, hsl(var(--muted-foreground)) 0%, hsl(var(--muted-foreground)) 40%, hsl(var(--foreground)) 50%, hsl(var(--muted-foreground)) 60%, hsl(var(--muted-foreground)) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent">'), Hs = /* @__PURE__ */ x("<span role=status>"), Vs = /* @__PURE__ */ x("<span class=text-muted-foreground>");
5563
5563
  function yg(e) {
5564
5564
  let t, r;
5565
- return W(() => {
5566
- H() || (r = G(t, {
5565
+ return q(() => {
5566
+ X() || (r = W(t, {
5567
5567
  backgroundPosition: ["200% 0%", "-200% 0%"]
5568
5568
  }, {
5569
5569
  duration: e.duration ?? 1.6,
5570
5570
  ease: "linear",
5571
5571
  repeat: 1 / 0
5572
- }), q(() => r == null ? void 0 : r.stop()));
5572
+ }), K(() => r == null ? void 0 : r.stop()));
5573
5573
  }), (() => {
5574
5574
  var n = Hs();
5575
5575
  return s(n, i(M, {
5576
5576
  get when() {
5577
- return !H();
5577
+ return !X();
5578
5578
  },
5579
5579
  get fallback() {
5580
5580
  return (() => {
@@ -5584,16 +5584,16 @@ function yg(e) {
5584
5584
  },
5585
5585
  get children() {
5586
5586
  var l = Xs(), a = t;
5587
- return typeof a == "function" ? O(a, l) : t = l, s(l, () => e.text), l;
5587
+ return typeof a == "function" ? R(a, l) : t = l, s(l, () => e.text), l;
5588
5588
  }
5589
5589
  })), k(() => E(n, p("font-medium", e.class))), n;
5590
5590
  })();
5591
5591
  }
5592
- var Us = /* @__PURE__ */ x('<button type=button class="mt-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground">'), Ks = /* @__PURE__ */ x("<div role=log aria-live=polite><div>"), qs = /* @__PURE__ */ x('<div><div class="flex items-start gap-2.5"><div class="min-w-0 flex-1"><p></p></div><button type=button class="shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"><svg viewBox="0 0 24 24"class="h-3.5 w-3.5"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round aria-hidden=true><path d="M6 6l12 12M18 6L6 18">'), Gs = /* @__PURE__ */ x('<span class="mt-0.5 shrink-0 text-primary">'), Ws = /* @__PURE__ */ x('<p class="mt-0.5 line-clamp-2 text-sm text-muted-foreground">');
5592
+ var Us = /* @__PURE__ */ x('<button type=button class="mt-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground">'), Gs = /* @__PURE__ */ x("<div role=log aria-live=polite><div>"), Ks = /* @__PURE__ */ x('<div><div class="flex items-start gap-2.5"><div class="min-w-0 flex-1"><p></p></div><button type=button class="shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"><svg viewBox="0 0 24 24"class="h-3.5 w-3.5"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round aria-hidden=true><path d="M6 6l12 12M18 6L6 18">'), qs = /* @__PURE__ */ x('<span class="mt-0.5 shrink-0 text-primary">'), Ws = /* @__PURE__ */ x('<p class="mt-0.5 line-clamp-2 text-sm text-muted-foreground">');
5593
5593
  function wg(e) {
5594
5594
  const t = () => e.max ?? 3, [r, n] = z(!1), l = () => e.items.length > 1;
5595
5595
  return (() => {
5596
- var a = Ks(), c = a.firstChild;
5596
+ var a = Gs(), c = a.firstChild;
5597
5597
  return c.$$click = () => {
5598
5598
  !r() && l() && n(!0);
5599
5599
  }, s(c, i(F, {
@@ -5603,17 +5603,17 @@ function wg(e) {
5603
5603
  children: (o, f) => {
5604
5604
  const g = () => !r() && f() > t() - 1;
5605
5605
  return (() => {
5606
- var u = qs(), d = u.firstChild, h = d.firstChild, v = h.firstChild, y = h.nextSibling;
5607
- return O((m) => Gt(m, {
5606
+ var u = Ks(), d = u.firstChild, h = d.firstChild, v = h.firstChild, y = h.nextSibling;
5607
+ return R((m) => qt(m, {
5608
5608
  y: -8
5609
5609
  }), u), s(d, (() => {
5610
- var m = K(() => !!o.icon);
5610
+ var m = G(() => !!o.icon);
5611
5611
  return () => m() && (() => {
5612
- var b = Gs();
5612
+ var b = qs();
5613
5613
  return s(b, () => o.icon), b;
5614
5614
  })();
5615
5615
  })(), h), s(v, () => o.title), s(h, (() => {
5616
- var m = K(() => !!o.description);
5616
+ var m = G(() => !!o.description);
5617
5617
  return () => m() && (() => {
5618
5618
  var b = Ws();
5619
5619
  return s(b, () => o.description), b;
@@ -5622,7 +5622,7 @@ function wg(e) {
5622
5622
  var b;
5623
5623
  m.stopPropagation(), (b = e.onDismiss) == null || b.call(e, o.id);
5624
5624
  }, k((m) => {
5625
- var b = p("card rounded-xl border border-border bg-card p-3 shadow-lg", r() ? "relative" : "absolute inset-x-0 top-0", !H() && !r() && "transition-[transform,opacity] duration-300 ease-out"), $ = r() ? void 0 : {
5625
+ var b = p("card rounded-xl border border-border bg-card p-3 shadow-lg", r() ? "relative" : "absolute inset-x-0 top-0", !X() && !r() && "transition-[transform,opacity] duration-300 ease-out"), $ = r() ? void 0 : {
5626
5626
  transform: `translateY(${f() * 10}px) scale(${1 - f() * 0.05})`,
5627
5627
  opacity: g() ? 0 : 1 - f() * 0.15,
5628
5628
  "z-index": e.items.length - f(),
@@ -5645,7 +5645,7 @@ function wg(e) {
5645
5645
  get children() {
5646
5646
  var o = Us();
5647
5647
  return o.$$click = () => n((f) => !f), s(o, (() => {
5648
- var f = K(() => !!r());
5648
+ var f = G(() => !!r());
5649
5649
  return () => f() ? "Show less" : `Show all ${e.items.length}`;
5650
5650
  })()), k(() => T(o, "aria-expanded", r())), o;
5651
5651
  }
@@ -5684,13 +5684,13 @@ function pg(e) {
5684
5684
  return ((l = e.labels) == null ? void 0 : l[e.state]) ?? Zs[e.state];
5685
5685
  };
5686
5686
  return re(Ut(() => e.state, () => {
5687
- H() || (t && G(t, {
5687
+ X() || (t && W(t, {
5688
5688
  scale: [0.9, 1]
5689
5689
  }, {
5690
5690
  type: "spring",
5691
5691
  stiffness: 500,
5692
5692
  damping: 20
5693
- }), r && G(r, {
5693
+ }), r && W(r, {
5694
5694
  opacity: [0, 1]
5695
5695
  }, {
5696
5696
  duration: 0.2,
@@ -5700,9 +5700,9 @@ function pg(e) {
5700
5700
  defer: !0
5701
5701
  })), (() => {
5702
5702
  var l = Js(), a = l.firstChild, c = a.firstChild, o = t;
5703
- typeof o == "function" ? O(o, l) : t = l;
5703
+ typeof o == "function" ? R(o, l) : t = l;
5704
5704
  var f = r;
5705
- return typeof f == "function" ? O(f, a) : r = a, s(a, i(wr, {
5705
+ return typeof f == "function" ? R(f, a) : r = a, s(a, i(wr, {
5706
5706
  get children() {
5707
5707
  return [i(Je, {
5708
5708
  get when() {
@@ -5766,7 +5766,7 @@ const oc = [{
5766
5766
  }];
5767
5767
  function _g(e) {
5768
5768
  ic();
5769
- const t = () => (e.playing ?? !0) && !H(), r = (n, l) => t() ? {
5769
+ const t = () => (e.playing ?? !0) && !X(), r = (n, l) => t() ? {
5770
5770
  height: "100%",
5771
5771
  "transform-origin": "bottom",
5772
5772
  "animation-name": "a4-eq",
@@ -5856,11 +5856,11 @@ function kg(e) {
5856
5856
  const b = l;
5857
5857
  if (!b) return;
5858
5858
  const $ = g(b);
5859
- if (H() || !c) {
5859
+ if (X() || !c) {
5860
5860
  u(b, $), b.style.overflow = "auto", b.style.opacity = "1";
5861
5861
  return;
5862
5862
  }
5863
- u(b, c), b.style.opacity = "1", b.offsetWidth, o == null || o.stop(), o = G(b, {
5863
+ u(b, c), b.style.opacity = "1", b.offsetWidth, o == null || o.stop(), o = W(b, {
5864
5864
  top: [c.top, $.top],
5865
5865
  left: [c.left, $.left],
5866
5866
  width: [c.width, $.width],
@@ -5869,7 +5869,7 @@ function kg(e) {
5869
5869
  type: "spring",
5870
5870
  stiffness: 280,
5871
5871
  damping: 32
5872
- }), a && G(a, {
5872
+ }), a && W(a, {
5873
5873
  opacity: [0, 1]
5874
5874
  }, {
5875
5875
  duration: 0.25,
@@ -5881,11 +5881,11 @@ function kg(e) {
5881
5881
  }, v = () => {
5882
5882
  if (!t()) return;
5883
5883
  const b = l, $ = n ? f(n) : c;
5884
- if (!b || !$ || H()) {
5884
+ if (!b || !$ || X()) {
5885
5885
  y();
5886
5886
  return;
5887
5887
  }
5888
- o == null || o.stop(), b.style.overflow = "hidden", u(b, f(b)), b.offsetWidth, o = G(b, {
5888
+ o == null || o.stop(), b.style.overflow = "hidden", u(b, f(b)), b.offsetWidth, o = W(b, {
5889
5889
  top: $.top,
5890
5890
  left: $.left,
5891
5891
  width: $.width,
@@ -5894,7 +5894,7 @@ function kg(e) {
5894
5894
  }, {
5895
5895
  duration: 0.3,
5896
5896
  ease: "easeInOut"
5897
- }), a && G(a, {
5897
+ }), a && W(a, {
5898
5898
  opacity: [1, 0]
5899
5899
  }, {
5900
5900
  duration: 0.25,
@@ -5906,7 +5906,7 @@ function kg(e) {
5906
5906
  }, m = (b) => {
5907
5907
  b.key === "Escape" && v();
5908
5908
  };
5909
- return W(() => document.addEventListener("keydown", m)), q(() => {
5909
+ return q(() => document.addEventListener("keydown", m)), K(() => {
5910
5910
  document.removeEventListener("keydown", m), o == null || o.stop();
5911
5911
  }), [(() => {
5912
5912
  var b = ac();
@@ -5914,7 +5914,7 @@ function kg(e) {
5914
5914
  (w.key === "Enter" || w.key === " ") && (w.preventDefault(), d());
5915
5915
  }, b.$$click = d;
5916
5916
  var $ = n;
5917
- return typeof $ == "function" ? O($, b) : n = b, s(b, () => e.trigger), k(() => E(b, p("cursor-pointer", e.class))), b;
5917
+ return typeof $ == "function" ? R($, b) : n = b, s(b, () => e.trigger), k(() => E(b, p("cursor-pointer", e.class))), b;
5918
5918
  })(), i(M, {
5919
5919
  get when() {
5920
5920
  return t();
@@ -5926,10 +5926,10 @@ function kg(e) {
5926
5926
  var b = sc();
5927
5927
  b.$$click = v;
5928
5928
  var $ = a;
5929
- return typeof $ == "function" ? O($, b) : a = b, k((w) => R(b, "opacity", H() ? "1" : "0")), b;
5929
+ return typeof $ == "function" ? R($, b) : a = b, k((w) => O(b, "opacity", X() ? "1" : "0")), b;
5930
5930
  })(), (() => {
5931
5931
  var b = cc(), $ = b.firstChild;
5932
- return O((w) => {
5932
+ return R((w) => {
5933
5933
  l = w, requestAnimationFrame(h);
5934
5934
  }, b), $.$$click = v, s(b, () => e.children, null), k(() => E(b, p("card fixed z-[9999] overflow-hidden rounded-2xl border border-border bg-card shadow-2xl", e.panelClass))), b;
5935
5935
  })()];
@@ -5956,15 +5956,15 @@ function jt(e) {
5956
5956
  }
5957
5957
  function Cg(e) {
5958
5958
  gc();
5959
- const [t, r] = z(H() ? jt(e.text)[0] ?? "" : "");
5959
+ const [t, r] = z(X() ? jt(e.text)[0] ?? "" : "");
5960
5960
  let n;
5961
5961
  const l = () => {
5962
5962
  n !== void 0 && (clearTimeout(n), n = void 0);
5963
5963
  };
5964
- W(() => {
5964
+ q(() => {
5965
5965
  l();
5966
5966
  const o = jt(e.text), f = o[0] ?? "";
5967
- if (H() || o.length === 0) {
5967
+ if (X() || o.length === 0) {
5968
5968
  r(f);
5969
5969
  return;
5970
5970
  }
@@ -5992,12 +5992,12 @@ function Cg(e) {
5992
5992
  v -= 1, r(b.slice(0, Math.max(0, v))), v <= 0 && (h = (h + 1) % o.length, y = "typing"), n = setTimeout(m, g);
5993
5993
  };
5994
5994
  r(""), n = setTimeout(m, g);
5995
- }), q(l);
5996
- const c = () => (e.caret ?? !0) && !H();
5995
+ }), K(l);
5996
+ const c = () => (e.caret ?? !0) && !X();
5997
5997
  return (() => {
5998
5998
  var o = dc();
5999
5999
  return s(o, t, null), s(o, (() => {
6000
- var f = K(() => !!c());
6000
+ var f = G(() => !!c());
6001
6001
  return () => f() && uc();
6002
6002
  })(), null), k(() => E(o, p("font-mono", e.class))), o;
6003
6003
  })();
@@ -6005,12 +6005,12 @@ function Cg(e) {
6005
6005
  var fc = /* @__PURE__ */ x("<div>");
6006
6006
  function Sg(e) {
6007
6007
  let t;
6008
- return W(() => {
6009
- if (H()) return;
6008
+ return q(() => {
6009
+ if (X()) return;
6010
6010
  let r;
6011
6011
  const n = (a) => {
6012
6012
  const c = t.getBoundingClientRect(), o = (a.clientX - (c.left + c.width / 2)) / (c.width / 2), f = (a.clientY - (c.top + c.height / 2)) / (c.height / 2), g = e.strength ?? 12;
6013
- r == null || r.stop(), r = G(t, {
6013
+ r == null || r.stop(), r = W(t, {
6014
6014
  x: o * g,
6015
6015
  y: f * g
6016
6016
  }, {
@@ -6019,7 +6019,7 @@ function Sg(e) {
6019
6019
  damping: 20
6020
6020
  });
6021
6021
  }, l = () => {
6022
- r == null || r.stop(), r = G(t, {
6022
+ r == null || r.stop(), r = W(t, {
6023
6023
  x: 0,
6024
6024
  y: 0
6025
6025
  }, {
@@ -6028,28 +6028,28 @@ function Sg(e) {
6028
6028
  damping: 20
6029
6029
  });
6030
6030
  };
6031
- t.addEventListener("pointermove", n), t.addEventListener("pointerleave", l), q(() => {
6031
+ t.addEventListener("pointermove", n), t.addEventListener("pointerleave", l), K(() => {
6032
6032
  t.removeEventListener("pointermove", n), t.removeEventListener("pointerleave", l), r == null || r.stop();
6033
6033
  });
6034
6034
  }), (() => {
6035
6035
  var r = fc(), n = t;
6036
- return typeof n == "function" ? O(n, r) : t = r, s(r, () => e.children), k(() => E(r, p("inline-block will-change-transform", e.class))), r;
6036
+ return typeof n == "function" ? R(n, r) : t = r, s(r, () => e.children), k(() => E(r, p("inline-block will-change-transform", e.class))), r;
6037
6037
  })();
6038
6038
  }
6039
6039
  var mc = /* @__PURE__ */ x('<div aria-hidden=true><div class="origin-left will-change-transform"style=height:100%;width:100%>');
6040
6040
  function Eg(e) {
6041
6041
  let t;
6042
- return W(() => {
6043
- if (t.style.transform = "scaleX(0)", H()) return;
6042
+ return q(() => {
6043
+ if (t.style.transform = "scaleX(0)", X()) return;
6044
6044
  const r = lr((n) => {
6045
6045
  t.style.transform = `scaleX(${n})`;
6046
6046
  });
6047
- q(() => r());
6047
+ K(() => r());
6048
6048
  }), (() => {
6049
6049
  var r = mc(), n = r.firstChild, l = t;
6050
- return typeof l == "function" ? O(l, n) : t = n, k((a) => {
6050
+ return typeof l == "function" ? R(l, n) : t = n, k((a) => {
6051
6051
  var c = p("fixed top-0 left-0 z-[9999] w-full", e.class), o = `${e.height ?? 3}px`, f = e.color ?? "hsl(var(--primary))";
6052
- return c !== a.e && E(r, a.e = c), o !== a.t && R(r, "height", a.t = o), f !== a.a && R(n, "background-color", a.a = f), a;
6052
+ return c !== a.e && E(r, a.e = c), o !== a.t && O(r, "height", a.t = o), f !== a.a && O(n, "background-color", a.a = f), a;
6053
6053
  }, {
6054
6054
  e: void 0,
6055
6055
  t: void 0,
@@ -6060,19 +6060,19 @@ function Eg(e) {
6060
6060
  var hc = /* @__PURE__ */ x('<span style="background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent">');
6061
6061
  function Mg(e) {
6062
6062
  let t, r;
6063
- return W(() => {
6064
- H() || (r = G(t, {
6063
+ return q(() => {
6064
+ X() || (r = W(t, {
6065
6065
  backgroundPosition: ["0% 0%", "200% 0%"]
6066
6066
  }, {
6067
6067
  duration: e.duration ?? 4,
6068
6068
  ease: "linear",
6069
6069
  repeat: 1 / 0
6070
- }), q(() => r == null ? void 0 : r.stop()));
6070
+ }), K(() => r == null ? void 0 : r.stop()));
6071
6071
  }), (() => {
6072
6072
  var n = hc(), l = t;
6073
- return typeof l == "function" ? O(l, n) : t = n, s(n, () => e.children), k((a) => {
6073
+ return typeof l == "function" ? R(l, n) : t = n, s(n, () => e.children), k((a) => {
6074
6074
  var c = p("inline-block font-bold", e.class), o = `linear-gradient(90deg, ${e.from ?? "hsl(var(--primary))"} 0%, ${e.via ?? "hsl(var(--accent))"} 50%, ${e.to ?? "hsl(var(--primary))"} 100%)`;
6075
- return c !== a.e && E(n, a.e = c), o !== a.t && R(n, "background-image", a.t = o), a;
6075
+ return c !== a.e && E(n, a.e = c), o !== a.t && O(n, "background-image", a.t = o), a;
6076
6076
  }, {
6077
6077
  e: void 0,
6078
6078
  t: void 0
@@ -6085,7 +6085,7 @@ function Tg(e, t, r) {
6085
6085
  (n = r == null ? void 0 : r.onArrive) == null || n.call(r);
6086
6086
  return;
6087
6087
  }
6088
- if (H()) {
6088
+ if (X()) {
6089
6089
  (l = r == null ? void 0 : r.onArrive) == null || l.call(r);
6090
6090
  return;
6091
6091
  }
@@ -6093,7 +6093,7 @@ function Tg(e, t, r) {
6093
6093
  const c = e.getBoundingClientRect(), o = t.getBoundingClientRect(), f = 48, g = c.left + c.width / 2, u = c.top + c.height / 2, d = o.left + o.width / 2, h = o.top + o.height / 2, v = d - g, y = h - u, m = r != null && r.image ? document.createElement("img") : document.createElement("div");
6094
6094
  r != null && r.image && (m.src = r.image), m.style.position = "fixed", m.style.left = `${g - f / 2}px`, m.style.top = `${u - f / 2}px`, m.style.width = `${f}px`, m.style.height = `${f}px`, m.style.borderRadius = "9999px", m.style.objectFit = "cover", m.style.pointerEvents = "none", m.style.zIndex = "9999", r != null && r.image || (m.style.background = "var(--a4-primary, #6366f1)"), document.body.appendChild(m);
6095
6095
  const b = (r == null ? void 0 : r.duration) ?? 0.6;
6096
- G(
6096
+ W(
6097
6097
  m,
6098
6098
  { x: [0, v], y: [0, y], scale: [1, 0.3], opacity: [1, 0.5] },
6099
6099
  { duration: b, ease: "easeInOut" }
@@ -6102,7 +6102,7 @@ function Tg(e, t, r) {
6102
6102
  var w;
6103
6103
  m.remove(), (w = r == null ? void 0 : r.onArrive) == null || w.call(r);
6104
6104
  try {
6105
- G(t, { scale: [1, 1.25, 1] }, { duration: 0.3, ease: "easeOut" });
6105
+ W(t, { scale: [1, 1.25, 1] }, { duration: 0.3, ease: "easeOut" });
6106
6106
  } catch {
6107
6107
  }
6108
6108
  }).catch(() => {
@@ -6111,7 +6111,7 @@ function Tg(e, t, r) {
6111
6111
  (a = r == null ? void 0 : r.onArrive) == null || a.call(r);
6112
6112
  }
6113
6113
  }
6114
- function We(e) {
6114
+ function Ne(e) {
6115
6115
  const t = e.querySelector("#cursorGlow"), r = (a) => {
6116
6116
  var g, u;
6117
6117
  t && (t.style.opacity = "1", t.style.left = `${a.clientX}px`, t.style.top = `${a.clientY}px`);
@@ -6184,7 +6184,7 @@ function _c() {
6184
6184
  return re(() => {
6185
6185
  const n = r() === "light" ? xc : bc;
6186
6186
  t && (t.innerHTML = pc(n));
6187
- }), W(() => {
6187
+ }), q(() => {
6188
6188
  const n = [], l = [], a = ($, w, _, C) => {
6189
6189
  $.addEventListener(w, _, C), n.push(() => $.removeEventListener(w, _, C));
6190
6190
  };
@@ -6196,7 +6196,7 @@ function _c() {
6196
6196
  };
6197
6197
  let u = null, d = null;
6198
6198
  const h = ($) => {
6199
- if (H() || $.gamma == null || $.beta == null) return;
6199
+ if (X() || $.gamma == null || $.beta == null) return;
6200
6200
  u === null && (u = $.gamma, d = $.beta);
6201
6201
  const w = Math.max(-25, Math.min(25, $.gamma - u)), _ = Math.max(-25, Math.min(25, $.beta - (d ?? 0)));
6202
6202
  o = w / 25 * 16, f = _ / 25 * 16, c || (c = requestAnimationFrame(g));
@@ -6271,7 +6271,7 @@ function _c() {
6271
6271
  260 + Math.random() * 280,
6272
6272
  950 + Math.random() * 700
6273
6273
  ) : y(`${$.clientX}px`, `${$.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
6274
- })), !H()) {
6274
+ })), !X()) {
6275
6275
  const $ = () => {
6276
6276
  if (r() === "light") {
6277
6277
  m(`${(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);
@@ -6282,9 +6282,9 @@ function _c() {
6282
6282
  }, w = () => {
6283
6283
  $(), l.push(window.setTimeout(w, 4500 + Math.random() * 6e3));
6284
6284
  };
6285
- l.push(window.setTimeout(w, 1500)), n.push(We(e));
6285
+ l.push(window.setTimeout(w, 1500)), n.push(Ne(e));
6286
6286
  }
6287
- q(() => {
6287
+ K(() => {
6288
6288
  n.forEach(($) => $()), l.forEach(($) => clearTimeout($));
6289
6289
  });
6290
6290
  }), (() => {
@@ -6295,9 +6295,9 @@ function _c() {
6295
6295
  var d = u.nextSibling;
6296
6296
  d.firstChild;
6297
6297
  var h = d.nextSibling, v = h.nextSibling, y = e;
6298
- typeof y == "function" ? O(y, n) : e = n;
6298
+ typeof y == "function" ? R(y, n) : e = n;
6299
6299
  var m = t;
6300
- return typeof m == "function" ? O(m, c) : t = c, s(v, i(Xr, {
6300
+ return typeof m == "function" ? R(m, c) : t = c, s(v, i(Xr, {
6301
6301
  style: {
6302
6302
  width: "28px",
6303
6303
  height: "28px",
@@ -6348,10 +6348,10 @@ function Lg(e) {
6348
6348
  }
6349
6349
  });
6350
6350
  }
6351
- })), k((c) => R(a, "max-width", e.maxWidth ?? "1400px")), r;
6351
+ })), k((c) => O(a, "max-width", e.maxWidth ?? "1400px")), r;
6352
6352
  })();
6353
6353
  }
6354
- var Mc = /* @__PURE__ */ x("<div aria-hidden=true>"), Tc = /* @__PURE__ */ x("<div>");
6354
+ var Mc = /* @__PURE__ */ x('<div aria-hidden=true><div id=cursorGlow class="absolute h-[520px] w-[520px] rounded-full opacity-0 transition-opacity duration-300"style="background:radial-gradient(circle, hsl(var(--primary) / 0.1), transparent 70%);transform:translate(-50%,-50%)">'), Tc = /* @__PURE__ */ x("<div>");
6355
6355
  const Lc = [{
6356
6356
  pos: "-left-40 -top-32",
6357
6357
  size: "h-[40rem] w-[40rem]",
@@ -6370,21 +6370,26 @@ const Lc = [{
6370
6370
  }];
6371
6371
  function Dg(e) {
6372
6372
  const t = () => e.intensity ?? 0.45;
6373
- return (() => {
6374
- var r = Mc();
6375
- return s(r, i(F, {
6373
+ let r;
6374
+ return q(() => {
6375
+ if (e.pointerGlow === !1 || X() || !r) return;
6376
+ const n = Ne(r);
6377
+ K(n);
6378
+ }), (() => {
6379
+ var n = Mc(), l = n.firstChild, a = r;
6380
+ return typeof a == "function" ? R(a, n) : r = n, s(n, i(F, {
6376
6381
  each: Lc,
6377
- children: (n) => (() => {
6378
- var l = Tc();
6379
- return k((a) => {
6380
- var c = p("absolute rounded-full blur-3xl", n.pos, n.size, e.animated && "aurora-drift"), o = `radial-gradient(circle, hsl(var(${n.token}) / ${(t() * n.a).toFixed(2)}), transparent 70%)`;
6381
- return c !== a.e && E(l, a.e = c), o !== a.t && R(l, "background", a.t = o), a;
6382
+ children: (c) => (() => {
6383
+ var o = Tc();
6384
+ return k((f) => {
6385
+ var g = p("absolute rounded-full blur-3xl", c.pos, c.size, e.animated && "aurora-drift"), u = `radial-gradient(circle, hsl(var(${c.token}) / ${(t() * c.a).toFixed(2)}), transparent 70%)`;
6386
+ return g !== f.e && E(o, f.e = g), u !== f.t && O(o, "background", f.t = u), f;
6382
6387
  }, {
6383
6388
  e: void 0,
6384
6389
  t: void 0
6385
- }), l;
6390
+ }), o;
6386
6391
  })()
6387
- })), k(() => E(r, p("pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-background", e.class))), r;
6392
+ }), l), k(() => E(n, p("pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-background", e.class))), n;
6388
6393
  })();
6389
6394
  }
6390
6395
  var Dc = /* @__PURE__ */ x('<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">');
@@ -6401,8 +6406,8 @@ const Ac = 'a, button, input, select, textarea, label, [role="button"], [role="t
6401
6406
  function Ig(e) {
6402
6407
  let t, r;
6403
6408
  return re(() => {
6404
- r.innerHTML = Ic(e.motifs, e.count ?? 16, !H());
6405
- }), W(() => {
6409
+ r.innerHTML = Ic(e.motifs, e.count ?? 16, !X());
6410
+ }), q(() => {
6406
6411
  const n = [], l = [], a = (o, f, g, u, d, h) => {
6407
6412
  const v = document.createElement("span");
6408
6413
  v.textContent = e.motifs[Math.floor(Math.random() * e.motifs.length)], v.style.cssText = `position:absolute;left:${o};top:${f};font-size:${h.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 6px hsl(var(--primary) / 0.5));`, t.appendChild(v);
@@ -6430,8 +6435,8 @@ function Ig(e) {
6430
6435
  var f, g;
6431
6436
  (g = (f = o.target) == null ? void 0 : f.closest) != null && g.call(f, Ac) || a(`${o.clientX}px`, `${o.clientY}px`, -90 + (Math.random() * 80 - 40), 260 + Math.random() * 260, 950 + Math.random() * 700, 22 + Math.random() * 14);
6432
6437
  };
6433
- if (document.addEventListener("click", c), n.push(() => document.removeEventListener("click", c)), !H()) {
6434
- n.push(We(t));
6438
+ if (document.addEventListener("click", c), n.push(() => document.removeEventListener("click", c)), !X()) {
6439
+ n.push(Ne(t));
6435
6440
  const o = () => {
6436
6441
  const g = Math.random() < 0.5;
6437
6442
  a(g ? "104vw" : "-6vw", `${(8 + Math.random() * 70).toFixed(0)}vh`, (g ? 180 : 0) + (Math.random() * 16 - 8), window.innerWidth * (1.1 + Math.random() * 0.3), 6e3 + Math.random() * 4e3, 20 + Math.random() * 16);
@@ -6440,16 +6445,16 @@ function Ig(e) {
6440
6445
  };
6441
6446
  l.push(window.setTimeout(f, 1800));
6442
6447
  }
6443
- q(() => {
6448
+ K(() => {
6444
6449
  n.forEach((o) => o()), l.forEach((o) => clearTimeout(o));
6445
6450
  });
6446
6451
  }), (() => {
6447
6452
  var n = Dc(), l = n.firstChild, a = l.nextSibling;
6448
6453
  a.nextSibling;
6449
6454
  var c = t;
6450
- typeof c == "function" ? O(c, n) : t = n;
6455
+ typeof c == "function" ? R(c, n) : t = n;
6451
6456
  var o = r;
6452
- return typeof o == "function" ? O(o, a) : r = a, n;
6457
+ return typeof o == "function" ? R(o, a) : r = a, n;
6453
6458
  })();
6454
6459
  }
6455
6460
  var Fc = /* @__PURE__ */ x('<div id=snow aria-hidden=true><div class=snow-sky></div><div class="absolute inset-0"></div><div class=snow-bank></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">');
@@ -6466,20 +6471,20 @@ function Pc(e) {
6466
6471
  function Ag() {
6467
6472
  let e, t;
6468
6473
  return re(() => {
6469
- t.innerHTML = Pc(!H());
6470
- }), W(() => {
6474
+ t.innerHTML = Pc(!X());
6475
+ }), q(() => {
6471
6476
  document.documentElement.dataset.scene = "snow";
6472
6477
  const r = [];
6473
- H() || r.push(We(e)), q(() => {
6478
+ X() || r.push(Ne(e)), K(() => {
6474
6479
  document.documentElement.dataset.scene === "snow" && delete document.documentElement.dataset.scene, r.forEach((n) => n());
6475
6480
  });
6476
6481
  }), (() => {
6477
6482
  var r = Fc(), n = r.firstChild, l = n.nextSibling, a = l.nextSibling;
6478
6483
  a.nextSibling;
6479
6484
  var c = e;
6480
- typeof c == "function" ? O(c, r) : e = r;
6485
+ typeof c == "function" ? R(c, r) : e = r;
6481
6486
  var o = t;
6482
- return typeof o == "function" ? O(o, l) : t = l, r;
6487
+ return typeof o == "function" ? R(o, l) : t = l, r;
6483
6488
  })();
6484
6489
  }
6485
6490
  var Rc = /* @__PURE__ */ x('<div id=xmas aria-hidden=true><div class=xmas-sky></div><div class="absolute inset-0"></div><div style=position:absolute;top:0;left:0;right:0;height:26px></div><svg viewBox="0 0 200 270"style=position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:240px;height:auto;opacity:0.9><rect x=92 y=228 width=16 height=42 fill="hsl(25 45% 28%)"></rect><polygon points="100,64 60,150 140,150"fill=hsl(var(--accent))></polygon><polygon points="100,110 48,196 152,196"fill=hsl(var(--accent))></polygon><polygon points="100,158 38,240 162,240"fill=hsl(var(--accent))></polygon><polygon points="100,40 106,58 125,58 110,70 116,88 100,77 84,88 90,70 75,58 94,58"fill=#ffd23f></polygon><circle cx=82 cy=180 r=5 fill=#ff5a5a></circle><circle cx=120 cy=205 r=5 fill=#5aa9ff></circle><circle cx=100 cy=150 r=5 fill=#ffd23f></circle><circle cx=72 cy=225 r=5 fill=#ff8ad8></circle><circle cx=132 cy=228 r=5 fill=#ffd23f></circle></svg><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">'), Oc = /* @__PURE__ */ x("<span class=light>");
@@ -6498,8 +6503,8 @@ function jc(e) {
6498
6503
  function Fg() {
6499
6504
  let e, t;
6500
6505
  return re(() => {
6501
- t.innerHTML = jc(!H());
6502
- }), W(() => {
6506
+ t.innerHTML = jc(!X());
6507
+ }), q(() => {
6503
6508
  const r = [], n = [], l = (o) => {
6504
6509
  const f = document.createElement("span");
6505
6510
  f.textContent = "🎅🛷";
@@ -6529,29 +6534,29 @@ function Fg() {
6529
6534
  var f, g;
6530
6535
  (g = (f = o.target) == null ? void 0 : f.closest) != null && g.call(f, a) || l(Math.random() < 0.5);
6531
6536
  };
6532
- if (document.addEventListener("click", c), r.push(() => document.removeEventListener("click", c)), !H()) {
6533
- r.push(We(e));
6537
+ if (document.addEventListener("click", c), r.push(() => document.removeEventListener("click", c)), !X()) {
6538
+ r.push(Ne(e));
6534
6539
  const o = () => {
6535
6540
  l(Math.random() < 0.5), n.push(window.setTimeout(o, 9e3 + Math.random() * 9e3));
6536
6541
  };
6537
6542
  n.push(window.setTimeout(o, 3e3));
6538
6543
  }
6539
- q(() => {
6544
+ K(() => {
6540
6545
  r.forEach((o) => o()), n.forEach((o) => clearTimeout(o));
6541
6546
  });
6542
6547
  }), (() => {
6543
6548
  var r = Rc(), n = r.firstChild, l = n.nextSibling, a = l.nextSibling, c = a.nextSibling;
6544
6549
  c.nextSibling;
6545
6550
  var o = e;
6546
- typeof o == "function" ? O(o, r) : e = r;
6551
+ typeof o == "function" ? R(o, r) : e = r;
6547
6552
  var f = t;
6548
- return typeof f == "function" ? O(f, l) : t = l, s(a, i(F, {
6553
+ return typeof f == "function" ? R(f, l) : t = l, s(a, i(F, {
6549
6554
  each: Xt,
6550
6555
  children: (g) => {
6551
6556
  const u = Yt[g % Yt.length];
6552
6557
  return (() => {
6553
6558
  var d = Oc();
6554
- return R(d, "background", u), R(d, "color", u), R(d, "animation-delay", `${g % 5 * 0.3}s`), k((h) => R(d, "left", `${(g / (Xt.length - 1) * 100).toFixed(2)}%`)), d;
6559
+ return O(d, "background", u), O(d, "color", u), O(d, "animation-delay", `${g % 5 * 0.3}s`), k((h) => O(d, "left", `${(g / (Xt.length - 1) * 100).toFixed(2)}%`)), d;
6555
6560
  })();
6556
6561
  }
6557
6562
  })), r;
@@ -6639,7 +6644,7 @@ function Og(e) {
6639
6644
  }, r), !1, !0), s(n, () => t.children), n;
6640
6645
  })();
6641
6646
  }
6642
- var Kc = /* @__PURE__ */ x('<p class="hidden min-w-0 truncate text-sm sm:block sm:text-base">'), qc = /* @__PURE__ */ x('<div><div class="flex min-w-0 items-center gap-2 sm:gap-3">'), Gc = /* @__PURE__ */ x('<button type=button class="relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-accent px-4 py-2 text-sm font-semibold whitespace-nowrap text-accent-foreground transition-[background-color,transform] duration-150 hover:bg-accent/90 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring">'), Wc = /* @__PURE__ */ x('<a class="relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-accent px-4 py-2 text-sm font-semibold whitespace-nowrap text-accent-foreground transition-[background-color,transform] duration-150 hover:bg-accent/90 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring">');
6647
+ var Gc = /* @__PURE__ */ x('<p class="hidden min-w-0 truncate text-sm sm:block sm:text-base">'), Kc = /* @__PURE__ */ x('<div><div class="flex min-w-0 items-center gap-2 sm:gap-3">'), qc = /* @__PURE__ */ x('<button type=button class="relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-accent px-4 py-2 text-sm font-semibold whitespace-nowrap text-accent-foreground transition-[background-color,transform] duration-150 hover:bg-accent/90 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring">'), Wc = /* @__PURE__ */ x('<a class="relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-accent px-4 py-2 text-sm font-semibold whitespace-nowrap text-accent-foreground transition-[background-color,transform] duration-150 hover:bg-accent/90 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring">');
6643
6648
  const Jc = {
6644
6649
  top: "top-0",
6645
6650
  bottom: "bottom-0"
@@ -6651,7 +6656,7 @@ function Bg(e) {
6651
6656
  });
6652
6657
  };
6653
6658
  return (() => {
6654
- var n = qc(), l = n.firstChild;
6659
+ var n = Kc(), l = n.firstChild;
6655
6660
  return s(l, i(M, {
6656
6661
  get when() {
6657
6662
  return t.status;
@@ -6664,7 +6669,7 @@ function Bg(e) {
6664
6669
  return t.message;
6665
6670
  },
6666
6671
  get children() {
6667
- var a = Kc();
6672
+ var a = Gc();
6668
6673
  return s(a, () => t.message), a;
6669
6674
  }
6670
6675
  }), null), s(n, i(M, {
@@ -6673,7 +6678,7 @@ function Bg(e) {
6673
6678
  },
6674
6679
  get fallback() {
6675
6680
  return (() => {
6676
- var a = Gc();
6681
+ var a = qc();
6677
6682
  return Ke(a, "click", t.action.onClick, !0), a.$$pointerdown = r, s(a, () => t.action.label), a;
6678
6683
  })();
6679
6684
  },
@@ -7022,7 +7027,7 @@ function Yg() {
7022
7027
  }
7023
7028
  cd(e && br(e) || ft);
7024
7029
  }
7025
- const Xg = "0.21.0";
7030
+ const Xg = "0.22.0";
7026
7031
  export {
7027
7032
  Xg as A4UI_VERSION,
7028
7033
  Yd as Accordion,
@@ -7030,7 +7035,7 @@ export {
7030
7035
  Ju as Affix,
7031
7036
  mu as Alert,
7032
7037
  ku as AlertDialog,
7033
- Ku as Anchor,
7038
+ Gu as Anchor,
7034
7039
  Lg as AppShell,
7035
7040
  Dg as Aurora,
7036
7041
  mr as Avatar,
@@ -7043,8 +7048,8 @@ export {
7043
7048
  se as Button,
7044
7049
  Fu as Calendar,
7045
7050
  dg as CalendarHeatmap,
7046
- Kt as Card,
7047
- qt as CardContent,
7051
+ Gt as Card,
7052
+ Kt as CardContent,
7048
7053
  Sr as CardHeader,
7049
7054
  Er as CardTitle,
7050
7055
  Eu as Carousel,
@@ -7056,7 +7061,7 @@ export {
7056
7061
  cg as ColorPicker,
7057
7062
  Su as Combobox,
7058
7063
  Nu as Command,
7059
- Ga as Comment,
7064
+ qa as Comment,
7060
7065
  Iu as Configurator,
7061
7066
  Cu as ContextMenu,
7062
7067
  Wu as Countdown,
@@ -7075,19 +7080,19 @@ export {
7075
7080
  Wd as FileUpload,
7076
7081
  yg as FillText,
7077
7082
  Uu as FloatingActionButton,
7078
- Kd as FormControl,
7079
- qd as FormDescription,
7080
- Gd as FormError,
7083
+ Gd as FormControl,
7084
+ Kd as FormDescription,
7085
+ qd as FormError,
7081
7086
  Vd as FormField,
7082
7087
  Ud as FormLabel,
7083
7088
  Mg as GradientText,
7084
- qu as Highlight,
7089
+ Ku as Highlight,
7085
7090
  vg as HoldToConfirm,
7086
7091
  fu as HoverCard,
7087
7092
  Qu as Image,
7088
7093
  cl as Input,
7089
7094
  Pu as Kbd,
7090
- Gu as List,
7095
+ qu as List,
7091
7096
  bg as LoadingDots,
7092
7097
  Sg as Magnetic,
7093
7098
  rg as Marquee,
@@ -7109,10 +7114,10 @@ export {
7109
7114
  Lu as PricingTable,
7110
7115
  jn as Progress,
7111
7116
  du as RadioGroup,
7112
- Kg as Rating,
7117
+ Gg as Rating,
7113
7118
  Bu as Result,
7114
7119
  Hu as RingProgress,
7115
- qg as Ripple,
7120
+ Kg as Ripple,
7116
7121
  mg as ScrambleText,
7117
7122
  Eg as ScrollProgress,
7118
7123
  Og as Section,
@@ -7127,7 +7132,7 @@ export {
7127
7132
  eg as SpeedDial,
7128
7133
  Cl as Spinner,
7129
7134
  ju as Splitter,
7130
- Gg as Spotlight,
7135
+ qg as Spotlight,
7131
7136
  lu as Stat,
7132
7137
  Mu as Stepper,
7133
7138
  cu as Switch,
@@ -7159,7 +7164,7 @@ export {
7159
7164
  iu as VirtualList,
7160
7165
  Ng as activeTheme,
7161
7166
  of as animate,
7162
- Gt as animateIn,
7167
+ qt as animateIn,
7163
7168
  ar as applyTheme,
7164
7169
  sd as applyThemeDefinition,
7165
7170
  Jg as attachSpotlight,
@@ -7173,7 +7178,7 @@ export {
7173
7178
  af as inView,
7174
7179
  Yg as initTheme,
7175
7180
  Qg as isCalm,
7176
- H as motionReduced,
7181
+ X as motionReduced,
7177
7182
  ef as prefersReducedMotion,
7178
7183
  on as remeasureAfterLayout,
7179
7184
  tf as revealOnScroll,