@sykoramaros/marosh-components 0.0.8 → 0.1.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.mjs CHANGED
@@ -1,24 +1,24 @@
1
- import { clsx as Xn } from "clsx";
2
- import { twMerge as Zn } from "tailwind-merge";
3
- import { jsx as v, Fragment as ie, jsxs as D } from "react/jsx-runtime";
4
- import { Slot as Qn, createSlot as Se } from "@radix-ui/react-slot";
5
- import { cva as Ht } from "class-variance-authority";
1
+ import { clsx as qn } from "clsx";
2
+ import { twMerge as Xn } from "tailwind-merge";
3
+ import { jsx as v, Fragment as ie, jsxs as A } from "react/jsx-runtime";
4
+ import { Slot as Zn, createSlot as Se } from "@radix-ui/react-slot";
5
+ import { cva as Gt } from "class-variance-authority";
6
6
  import * as i from "react";
7
- import K, { useRef as Jn, useState as er } from "react";
8
- import * as tr from "react-dom";
9
- import jt, { flushSync as nr } from "react-dom";
10
- import { XIcon as rr, Menu as or } from "lucide-react";
7
+ import K, { useRef as Qn, useState as Jn } from "react";
8
+ import * as er from "react-dom";
9
+ import Ht, { flushSync as tr } from "react-dom";
10
+ import { XIcon as nr, Menu as rr } from "lucide-react";
11
11
  function F(...e) {
12
- return Zn(Xn(e));
12
+ return Xn(qn(e));
13
13
  }
14
- function ar(e) {
14
+ function or(e) {
15
15
  return typeof e == "function";
16
16
  }
17
17
  function yt(e, t) {
18
- return ar(e) ? e(t) : e;
18
+ return or(e) ? e(t) : e;
19
19
  }
20
- const ir = Object.prototype.hasOwnProperty;
21
- function Yt(e, t) {
20
+ const ar = Object.prototype.hasOwnProperty;
21
+ function jt(e, t) {
22
22
  if (e === t)
23
23
  return e;
24
24
  const n = t, r = wt(e) && wt(n);
@@ -32,14 +32,14 @@ function Yt(e, t) {
32
32
  for (let l = 0; l < s; l++) {
33
33
  const d = r ? l : a[l], h = e[d], p = n[d];
34
34
  if (h === p) {
35
- m[d] = h, (r ? l < c : ir.call(e, d)) && f++;
35
+ m[d] = h, (r ? l < c : ar.call(e, d)) && f++;
36
36
  continue;
37
37
  }
38
38
  if (h === null || p === null || typeof h != "object" || typeof p != "object") {
39
39
  m[d] = p;
40
40
  continue;
41
41
  }
42
- const y = Yt(h, p);
42
+ const y = jt(h, p);
43
43
  m[d] = y, y === h && f++;
44
44
  }
45
45
  return c === s && f === c ? e : m;
@@ -108,13 +108,13 @@ function Ee(e, t, n) {
108
108
  function _e(e, t) {
109
109
  return e?.endsWith("/") && e !== "/" && e !== `${t}/` ? e.slice(0, -1) : e;
110
110
  }
111
- function sr(e, t, n) {
111
+ function ir(e, t, n) {
112
112
  return _e(e, n) === _e(t, n);
113
113
  }
114
- const cr = "Error preloading route! ☝️";
115
- var ur = process.env.NODE_ENV === "production";
116
- function lr(e, t) {
117
- if (!ur) {
114
+ const sr = "Error preloading route! ☝️";
115
+ var cr = process.env.NODE_ENV === "production";
116
+ function ur(e, t) {
117
+ if (!cr) {
118
118
  if (e)
119
119
  return;
120
120
  var n = "Warning: " + t;
@@ -127,7 +127,7 @@ function lr(e, t) {
127
127
  }
128
128
  var fe = { exports: {} }, Ie = {}, ve = { exports: {} }, De = {};
129
129
  var Ct;
130
- function dr() {
130
+ function lr() {
131
131
  if (Ct) return De;
132
132
  Ct = 1;
133
133
  var e = K;
@@ -169,7 +169,7 @@ function dr() {
169
169
  }
170
170
  var Ae = {};
171
171
  var St;
172
- function fr() {
172
+ function dr() {
173
173
  return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
174
174
  function e(p, y) {
175
175
  return p === y && (p !== 0 || 1 / p === 1 / y) || p !== p && y !== y;
@@ -222,14 +222,14 @@ function fr() {
222
222
  })()), Ae;
223
223
  }
224
224
  var Rt;
225
- function qt() {
226
- return Rt || (Rt = 1, process.env.NODE_ENV === "production" ? ve.exports = dr() : ve.exports = fr()), ve.exports;
225
+ function Yt() {
226
+ return Rt || (Rt = 1, process.env.NODE_ENV === "production" ? ve.exports = lr() : ve.exports = dr()), ve.exports;
227
227
  }
228
228
  var _t;
229
- function vr() {
229
+ function fr() {
230
230
  if (_t) return Ie;
231
231
  _t = 1;
232
- var e = K, t = qt();
232
+ var e = K, t = Yt();
233
233
  function n(f, l) {
234
234
  return f === l && (f !== 0 || 1 / f === 1 / l) || f !== f && l !== l;
235
235
  }
@@ -278,13 +278,13 @@ function vr() {
278
278
  }
279
279
  var Le = {};
280
280
  var Ot;
281
- function mr() {
281
+ function vr() {
282
282
  return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
283
283
  function e(f, l) {
284
284
  return f === l && (f !== 0 || 1 / f === 1 / l) || f !== f && l !== l;
285
285
  }
286
286
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
287
- var t = K, n = qt(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, a = t.useRef, c = t.useEffect, s = t.useMemo, m = t.useDebugValue;
287
+ var t = K, n = Yt(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, a = t.useRef, c = t.useEffect, s = t.useMemo, m = t.useDebugValue;
288
288
  Le.useSyncExternalStoreWithSelector = function(f, l, d, h, p) {
289
289
  var y = a(null);
290
290
  if (y.current === null) {
@@ -330,13 +330,13 @@ function mr() {
330
330
  })()), Le;
331
331
  }
332
332
  var Nt;
333
- function pr() {
334
- return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? fe.exports = vr() : fe.exports = mr()), fe.exports;
333
+ function mr() {
334
+ return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? fe.exports = fr() : fe.exports = vr()), fe.exports;
335
335
  }
336
- var hr = pr();
337
- function gr(e, t = (r) => r, n = {}) {
338
- const r = n.equal ?? yr;
339
- return hr.useSyncExternalStoreWithSelector(
336
+ var pr = mr();
337
+ function hr(e, t = (r) => r, n = {}) {
338
+ const r = n.equal ?? gr;
339
+ return pr.useSyncExternalStoreWithSelector(
340
340
  e.subscribe,
341
341
  () => e.state,
342
342
  () => e.state,
@@ -344,7 +344,7 @@ function gr(e, t = (r) => r, n = {}) {
344
344
  r
345
345
  );
346
346
  }
347
- function yr(e, t) {
347
+ function gr(e, t) {
348
348
  if (Object.is(e, t))
349
349
  return !0;
350
350
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -377,24 +377,24 @@ function Tt(e) {
377
377
  );
378
378
  }
379
379
  const ke = i.createContext(null);
380
- function Er() {
380
+ function yr() {
381
381
  return typeof document > "u" ? ke : window.__TSR_ROUTER_CONTEXT__ ? window.__TSR_ROUTER_CONTEXT__ : (window.__TSR_ROUTER_CONTEXT__ = ke, ke);
382
382
  }
383
- function Xt(e) {
384
- const t = i.useContext(Er());
385
- return lr(
383
+ function qt(e) {
384
+ const t = i.useContext(yr());
385
+ return ur(
386
386
  !((e?.warn ?? !0) && !t),
387
387
  "useRouter must be used inside a <RouterProvider> component!"
388
388
  ), t;
389
389
  }
390
390
  function xt(e) {
391
- const t = Xt({
391
+ const t = qt({
392
392
  warn: e?.router === void 0
393
- }), n = e?.router || t, r = Jn(void 0);
394
- return gr(n.__store, (o) => {
393
+ }), n = e?.router || t, r = Qn(void 0);
394
+ return hr(n.__store, (o) => {
395
395
  if (e?.select) {
396
396
  if (e.structuralSharing ?? n.options.defaultStructuralSharing) {
397
- const a = Yt(
397
+ const a = jt(
398
398
  r.current,
399
399
  e.select(o)
400
400
  );
@@ -405,7 +405,7 @@ function xt(e) {
405
405
  return o;
406
406
  });
407
407
  }
408
- function br(e, t, n = {}, r = {}) {
408
+ function Er(e, t, n = {}, r = {}) {
409
409
  i.useEffect(() => {
410
410
  if (!e.current || r.disabled || typeof IntersectionObserver != "function")
411
411
  return;
@@ -417,12 +417,12 @@ function br(e, t, n = {}, r = {}) {
417
417
  };
418
418
  }, [t, n, r.disabled, e]);
419
419
  }
420
- function wr(e) {
420
+ function br(e) {
421
421
  const t = i.useRef(null);
422
422
  return i.useImperativeHandle(e, () => t.current, []), t;
423
423
  }
424
- function Cr(e, t) {
425
- const n = Xt(), [r, o] = i.useState(!1), a = i.useRef(!1), c = wr(t), {
424
+ function wr(e, t) {
425
+ const n = qt(), [r, o] = i.useState(!1), a = i.useRef(!1), c = br(t), {
426
426
  // custom props
427
427
  activeProps: s,
428
428
  inactiveProps: m,
@@ -448,17 +448,17 @@ function Cr(e, t) {
448
448
  onTouchStart: L,
449
449
  ignoreBlocker: se,
450
450
  // prevent these from being returned
451
- params: Ya,
452
- search: qa,
453
- hash: Xa,
454
- state: Za,
455
- mask: Qa,
456
- reloadDocument: Ja,
457
- unsafeRelative: ei,
458
- from: ti,
459
- _fromLocation: ni,
451
+ params: ja,
452
+ search: Ya,
453
+ hash: qa,
454
+ state: Xa,
455
+ mask: Za,
456
+ reloadDocument: Qa,
457
+ unsafeRelative: Ja,
458
+ from: ei,
459
+ _fromLocation: ti,
460
460
  ...ft
461
- } = e, $n = xt({
461
+ } = e, Bn = xt({
462
462
  select: (N) => N.location.search,
463
463
  structuralSharing: !0
464
464
  }), vt = e.from, ne = i.useMemo(
@@ -466,7 +466,7 @@ function Cr(e, t) {
466
466
  // eslint-disable-next-line react-hooks/exhaustive-deps
467
467
  [
468
468
  n,
469
- $n,
469
+ Bn,
470
470
  vt,
471
471
  e._fromLocation,
472
472
  e.hash,
@@ -496,7 +496,7 @@ function Cr(e, t) {
496
496
  select: (N) => {
497
497
  if (ue) return !1;
498
498
  if (f?.exact) {
499
- if (!sr(
499
+ if (!ir(
500
500
  N.location.pathname,
501
501
  B.pathname,
502
502
  n.basepath
@@ -520,26 +520,26 @@ function Cr(e, t) {
520
520
  }
521
521
  }), j = i.useCallback(() => {
522
522
  n.preloadRoute({ ...ne }).catch((N) => {
523
- console.warn(N), console.warn(cr);
523
+ console.warn(N), console.warn(sr);
524
524
  });
525
- }, [n, ne]), Gn = i.useCallback(
525
+ }, [n, ne]), $n = i.useCallback(
526
526
  (N) => {
527
527
  N?.isIntersecting && j();
528
528
  },
529
529
  [j]
530
530
  );
531
- br(
531
+ Er(
532
532
  c,
533
- Gn,
534
- Nr,
533
+ $n,
534
+ Or,
535
535
  { disabled: !!E || X !== "viewport" }
536
536
  ), i.useEffect(() => {
537
537
  a.current || !E && X === "render" && (j(), a.current = !0);
538
538
  }, [E, j, X]);
539
- const Hn = (N) => {
539
+ const Gn = (N) => {
540
540
  const I = N.currentTarget.getAttribute("target"), W = b !== void 0 ? b : I;
541
- if (!E && !Tr(N) && !N.defaultPrevented && (!W || W === "_self") && N.button === 0) {
542
- N.preventDefault(), nr(() => {
541
+ if (!E && !Nr(N) && !N.defaultPrevented && (!W || W === "_self") && N.button === 0) {
542
+ N.preventDefault(), tr(() => {
543
543
  o(!0);
544
544
  });
545
545
  const gt = n.subscribe("onResolved", () => {
@@ -574,7 +574,7 @@ function Cr(e, t) {
574
574
  };
575
575
  const mt = (N) => {
576
576
  E || X && j();
577
- }, jn = mt, Yn = (N) => {
577
+ }, Hn = mt, jn = (N) => {
578
578
  if (!(E || !X))
579
579
  if (!Me)
580
580
  j();
@@ -587,11 +587,11 @@ function Cr(e, t) {
587
587
  }, Me);
588
588
  re.set(I, W);
589
589
  }
590
- }, qn = (N) => {
590
+ }, Yn = (N) => {
591
591
  if (E || !X || !Me) return;
592
592
  const I = N.target, W = re.get(I);
593
593
  W && (clearTimeout(W), re.delete(I));
594
- }, le = Pe ? yt(s, {}) ?? Sr : Fe, de = Pe ? Fe : yt(m, {}) ?? Fe, pt = [
594
+ }, le = Pe ? yt(s, {}) ?? Cr : Fe, de = Pe ? Fe : yt(m, {}) ?? Fe, pt = [
595
595
  C,
596
596
  le.className,
597
597
  de.className
@@ -606,21 +606,21 @@ function Cr(e, t) {
606
606
  ...de,
607
607
  href: ce?.href,
608
608
  ref: c,
609
- onClick: oe([_, Hn]),
609
+ onClick: oe([_, Gn]),
610
610
  onFocus: oe([T, mt]),
611
- onMouseEnter: oe([O, Yn]),
612
- onMouseLeave: oe([P, qn]),
613
- onTouchStart: oe([L, jn]),
611
+ onMouseEnter: oe([O, jn]),
612
+ onMouseLeave: oe([P, Yn]),
613
+ onTouchStart: oe([L, Hn]),
614
614
  disabled: !!E,
615
615
  target: b,
616
616
  ...ht && { style: ht },
617
617
  ...pt && { className: pt },
618
- ...E && Rr,
619
- ...Pe && _r,
620
- ...r && Or
618
+ ...E && Sr,
619
+ ...Pe && Rr,
620
+ ...r && _r
621
621
  };
622
622
  }
623
- const Fe = {}, Sr = { className: "active" }, Rr = { role: "link", "aria-disabled": !0 }, _r = { "data-status": "active", "aria-current": "page" }, Or = { "data-transitioning": "transitioning" }, re = /* @__PURE__ */ new WeakMap(), Nr = {
623
+ const Fe = {}, Cr = { className: "active" }, Sr = { role: "link", "aria-disabled": !0 }, Rr = { "data-status": "active", "aria-current": "page" }, _r = { "data-transitioning": "transitioning" }, re = /* @__PURE__ */ new WeakMap(), Or = {
624
624
  rootMargin: "100px"
625
625
  }, oe = (e) => (t) => {
626
626
  for (const n of e)
@@ -628,13 +628,13 @@ const Fe = {}, Sr = { className: "active" }, Rr = { role: "link", "aria-disabled
628
628
  if (t.defaultPrevented) return;
629
629
  n(t);
630
630
  }
631
- }, Mt = i.forwardRef(
631
+ }, li = i.forwardRef(
632
632
  (e, t) => {
633
633
  const { _asChild: n, ...r } = e, {
634
634
  type: o,
635
635
  ref: a,
636
636
  ...c
637
- } = Cr(r, t), s = typeof r.children == "function" ? r.children({
637
+ } = wr(r, t), s = typeof r.children == "function" ? r.children({
638
638
  isActive: c["data-status"] === "active"
639
639
  }) : r.children;
640
640
  return n === void 0 && delete c.disabled, i.createElement(
@@ -647,10 +647,10 @@ const Fe = {}, Sr = { className: "active" }, Rr = { role: "link", "aria-disabled
647
647
  );
648
648
  }
649
649
  );
650
- function Tr(e) {
650
+ function Nr(e) {
651
651
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
652
652
  }
653
- const xr = Ht(
653
+ const Tr = Gt(
654
654
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
655
655
  {
656
656
  variants: {
@@ -685,12 +685,12 @@ function Je({
685
685
  ...o
686
686
  }) {
687
687
  return /* @__PURE__ */ v(
688
- r ? Qn : "button",
688
+ r ? Zn : "button",
689
689
  {
690
690
  "data-slot": "button",
691
691
  "data-variant": t,
692
692
  "data-size": n,
693
- className: F(xr({ variant: t, size: n, className: e })),
693
+ className: F(Tr({ variant: t, size: n, className: e })),
694
694
  ...o
695
695
  }
696
696
  );
@@ -711,7 +711,7 @@ const di = ({
711
711
  children: e
712
712
  }
713
713
  ) });
714
- function Mr(e, t) {
714
+ function xr(e, t) {
715
715
  const n = i.createContext(t), r = (a) => {
716
716
  const { children: c, ...s } = a, m = i.useMemo(() => s, Object.values(s));
717
717
  return /* @__PURE__ */ v(n.Provider, { value: m, children: c });
@@ -753,9 +753,9 @@ function et(e, t = []) {
753
753
  );
754
754
  };
755
755
  };
756
- return o.scopeName = e, [r, Pr(o, ...t)];
756
+ return o.scopeName = e, [r, Mr(o, ...t)];
757
757
  }
758
- function Pr(...e) {
758
+ function Mr(...e) {
759
759
  const t = e[0];
760
760
  if (e.length === 1) return t;
761
761
  const n = () => {
@@ -779,7 +779,7 @@ function x(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
779
779
  return t?.(o);
780
780
  };
781
781
  }
782
- var Ir = [
782
+ var Pr = [
783
783
  "a",
784
784
  "button",
785
785
  "div",
@@ -797,7 +797,7 @@ var Ir = [
797
797
  "span",
798
798
  "svg",
799
799
  "ul"
800
- ], M = Ir.reduce((e, t) => {
800
+ ], M = Pr.reduce((e, t) => {
801
801
  const n = Se(`Primitive.${t}`), r = i.forwardRef((o, a) => {
802
802
  const { asChild: c, ...s } = o, m = c ? n : t;
803
803
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(m, { ...s, ref: a });
@@ -805,10 +805,10 @@ var Ir = [
805
805
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
806
806
  }, {});
807
807
  function Ge(e, t) {
808
- e && tr.flushSync(() => e.dispatchEvent(t));
808
+ e && er.flushSync(() => e.dispatchEvent(t));
809
809
  }
810
810
  var G = globalThis?.document ? i.useLayoutEffect : () => {
811
- }, Dr = i[" useInsertionEffect ".trim().toString()] || G;
811
+ }, Ir = i[" useInsertionEffect ".trim().toString()] || G;
812
812
  function tt({
813
813
  prop: e,
814
814
  defaultProp: t,
@@ -816,7 +816,7 @@ function tt({
816
816
  },
817
817
  caller: r
818
818
  }) {
819
- const [o, a, c] = Ar({
819
+ const [o, a, c] = Dr({
820
820
  defaultProp: t,
821
821
  onChange: n
822
822
  }), s = e !== void 0, m = s ? e : o;
@@ -832,7 +832,7 @@ function tt({
832
832
  const f = i.useCallback(
833
833
  (l) => {
834
834
  if (s) {
835
- const d = Lr(l) ? l(e) : l;
835
+ const d = Ar(l) ? l(e) : l;
836
836
  d !== e && c.current?.(d);
837
837
  } else
838
838
  a(l);
@@ -841,59 +841,59 @@ function tt({
841
841
  );
842
842
  return [m, f];
843
843
  }
844
- function Ar({
844
+ function Dr({
845
845
  defaultProp: e,
846
846
  onChange: t
847
847
  }) {
848
848
  const [n, r] = i.useState(e), o = i.useRef(n), a = i.useRef(t);
849
- return Dr(() => {
849
+ return Ir(() => {
850
850
  a.current = t;
851
851
  }, [t]), i.useEffect(() => {
852
852
  o.current !== n && (a.current?.(n), o.current = n);
853
853
  }, [n, o]), [n, r, a];
854
854
  }
855
- function Lr(e) {
855
+ function Ar(e) {
856
856
  return typeof e == "function";
857
857
  }
858
- function Pt(e, t) {
858
+ function Mt(e, t) {
859
859
  if (typeof e == "function")
860
860
  return e(t);
861
861
  e != null && (e.current = t);
862
862
  }
863
- function Zt(...e) {
863
+ function Xt(...e) {
864
864
  return (t) => {
865
865
  let n = !1;
866
866
  const r = e.map((o) => {
867
- const a = Pt(o, t);
867
+ const a = Mt(o, t);
868
868
  return !n && typeof a == "function" && (n = !0), a;
869
869
  });
870
870
  if (n)
871
871
  return () => {
872
872
  for (let o = 0; o < r.length; o++) {
873
873
  const a = r[o];
874
- typeof a == "function" ? a() : Pt(e[o], null);
874
+ typeof a == "function" ? a() : Mt(e[o], null);
875
875
  }
876
876
  };
877
877
  };
878
878
  }
879
- function A(...e) {
880
- return i.useCallback(Zt(...e), e);
879
+ function D(...e) {
880
+ return i.useCallback(Xt(...e), e);
881
881
  }
882
- var kr = i.createContext(void 0);
883
- function Fr(e) {
884
- const t = i.useContext(kr);
882
+ var Lr = i.createContext(void 0);
883
+ function kr(e) {
884
+ const t = i.useContext(Lr);
885
885
  return e || t || "ltr";
886
886
  }
887
- function Vr(e, t) {
887
+ function Fr(e, t) {
888
888
  return i.useReducer((n, r) => t[n][r] ?? n, e);
889
889
  }
890
890
  var H = (e) => {
891
- const { present: t, children: n } = e, r = Wr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : i.Children.only(n), a = A(r.ref, Kr(o));
891
+ const { present: t, children: n } = e, r = Vr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : i.Children.only(n), a = D(r.ref, Wr(o));
892
892
  return typeof n == "function" || r.isPresent ? i.cloneElement(o, { ref: a }) : null;
893
893
  };
894
894
  H.displayName = "Presence";
895
- function Wr(e) {
896
- const [t, n] = i.useState(), r = i.useRef(null), o = i.useRef(e), a = i.useRef("none"), c = e ? "mounted" : "unmounted", [s, m] = Vr(c, {
895
+ function Vr(e) {
896
+ const [t, n] = i.useState(), r = i.useRef(null), o = i.useRef(e), a = i.useRef("none"), c = e ? "mounted" : "unmounted", [s, m] = Fr(c, {
897
897
  mounted: {
898
898
  UNMOUNT: "unmounted",
899
899
  ANIMATION_OUT: "unmountSuspended"
@@ -944,19 +944,19 @@ function Wr(e) {
944
944
  function me(e) {
945
945
  return e?.animationName || "none";
946
946
  }
947
- function Kr(e) {
947
+ function Wr(e) {
948
948
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
949
949
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
950
950
  }
951
- var Ur = i[" useId ".trim().toString()] || (() => {
952
- }), zr = 0;
951
+ var Kr = i[" useId ".trim().toString()] || (() => {
952
+ }), Ur = 0;
953
953
  function ae(e) {
954
- const [t, n] = i.useState(Ur());
954
+ const [t, n] = i.useState(Kr());
955
955
  return G(() => {
956
- n((r) => r ?? String(zr++));
956
+ n((r) => r ?? String(Ur++));
957
957
  }, [e]), t ? `radix-${t}` : "";
958
958
  }
959
- function Qt(e) {
959
+ function Zt(e) {
960
960
  const t = e + "CollectionProvider", [n, r] = et(t), [o, a] = n(
961
961
  t,
962
962
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -967,14 +967,14 @@ function Qt(e) {
967
967
  c.displayName = t;
968
968
  const s = e + "CollectionSlot", m = Se(s), f = K.forwardRef(
969
969
  (u, g) => {
970
- const { scope: w, children: R } = u, b = a(s, w), E = A(g, b.collectionRef);
970
+ const { scope: w, children: R } = u, b = a(s, w), E = D(g, b.collectionRef);
971
971
  return /* @__PURE__ */ v(m, { ref: E, children: R });
972
972
  }
973
973
  );
974
974
  f.displayName = s;
975
975
  const l = e + "CollectionItemSlot", d = "data-radix-collection-item", h = Se(l), p = K.forwardRef(
976
976
  (u, g) => {
977
- const { scope: w, children: R, ...b } = u, E = K.useRef(null), S = A(g, E), C = a(l, w);
977
+ const { scope: w, children: R, ...b } = u, E = K.useRef(null), S = D(g, E), C = a(l, w);
978
978
  return K.useEffect(() => (C.itemMap.set(E, { ref: E, ...b }), () => {
979
979
  C.itemMap.delete(E);
980
980
  })), /* @__PURE__ */ v(h, { [d]: "", ref: S, children: R });
@@ -1004,7 +1004,7 @@ function k(e) {
1004
1004
  t.current = e;
1005
1005
  }), i.useMemo(() => (...n) => t.current?.(...n), []);
1006
1006
  }
1007
- function Br(e, t = globalThis?.document) {
1007
+ function zr(e, t = globalThis?.document) {
1008
1008
  const n = k(e);
1009
1009
  i.useEffect(() => {
1010
1010
  const r = (o) => {
@@ -1013,7 +1013,7 @@ function Br(e, t = globalThis?.document) {
1013
1013
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1014
1014
  }, [n, t]);
1015
1015
  }
1016
- var $r = "DismissableLayer", He = "dismissableLayer.update", Gr = "dismissableLayer.pointerDownOutside", Hr = "dismissableLayer.focusOutside", It, Jt = i.createContext({
1016
+ var Br = "DismissableLayer", He = "dismissableLayer.update", $r = "dismissableLayer.pointerDownOutside", Gr = "dismissableLayer.focusOutside", Pt, Qt = i.createContext({
1017
1017
  layers: /* @__PURE__ */ new Set(),
1018
1018
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1019
1019
  branches: /* @__PURE__ */ new Set()
@@ -1027,22 +1027,22 @@ var $r = "DismissableLayer", He = "dismissableLayer.update", Gr = "dismissableLa
1027
1027
  onInteractOutside: c,
1028
1028
  onDismiss: s,
1029
1029
  ...m
1030
- } = e, f = i.useContext(Jt), [l, d] = i.useState(null), h = l?.ownerDocument ?? globalThis?.document, [, p] = i.useState({}), y = A(t, (_) => d(_)), u = Array.from(f.layers), [g] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = u.indexOf(g), R = l ? u.indexOf(l) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0, E = R >= w, S = qr((_) => {
1030
+ } = e, f = i.useContext(Qt), [l, d] = i.useState(null), h = l?.ownerDocument ?? globalThis?.document, [, p] = i.useState({}), y = D(t, (_) => d(_)), u = Array.from(f.layers), [g] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = u.indexOf(g), R = l ? u.indexOf(l) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0, E = R >= w, S = Yr((_) => {
1031
1031
  const T = _.target, O = [...f.branches].some((P) => P.contains(T));
1032
1032
  !E || O || (o?.(_), c?.(_), _.defaultPrevented || s?.());
1033
- }, h), C = Xr((_) => {
1033
+ }, h), C = qr((_) => {
1034
1034
  const T = _.target;
1035
1035
  [...f.branches].some((P) => P.contains(T)) || (a?.(_), c?.(_), _.defaultPrevented || s?.());
1036
1036
  }, h);
1037
- return Br((_) => {
1037
+ return zr((_) => {
1038
1038
  R === f.layers.size - 1 && (r?.(_), !_.defaultPrevented && s && (_.preventDefault(), s()));
1039
1039
  }, h), i.useEffect(() => {
1040
1040
  if (l)
1041
- return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (It = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(l)), f.layers.add(l), Dt(), () => {
1042
- n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = It);
1041
+ return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Pt = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(l)), f.layers.add(l), It(), () => {
1042
+ n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Pt);
1043
1043
  };
1044
1044
  }, [l, h, n, f]), i.useEffect(() => () => {
1045
- l && (f.layers.delete(l), f.layersWithOutsidePointerEventsDisabled.delete(l), Dt());
1045
+ l && (f.layers.delete(l), f.layersWithOutsidePointerEventsDisabled.delete(l), It());
1046
1046
  }, [l, f]), i.useEffect(() => {
1047
1047
  const _ = () => p({});
1048
1048
  return document.addEventListener(He, _), () => document.removeEventListener(He, _);
@@ -1065,9 +1065,9 @@ var $r = "DismissableLayer", He = "dismissableLayer.update", Gr = "dismissableLa
1065
1065
  );
1066
1066
  }
1067
1067
  );
1068
- nt.displayName = $r;
1069
- var jr = "DismissableLayerBranch", Yr = i.forwardRef((e, t) => {
1070
- const n = i.useContext(Jt), r = i.useRef(null), o = A(t, r);
1068
+ nt.displayName = Br;
1069
+ var Hr = "DismissableLayerBranch", jr = i.forwardRef((e, t) => {
1070
+ const n = i.useContext(Qt), r = i.useRef(null), o = D(t, r);
1071
1071
  return i.useEffect(() => {
1072
1072
  const a = r.current;
1073
1073
  if (a)
@@ -1076,16 +1076,16 @@ var jr = "DismissableLayerBranch", Yr = i.forwardRef((e, t) => {
1076
1076
  };
1077
1077
  }, [n.branches]), /* @__PURE__ */ v(M.div, { ...e, ref: o });
1078
1078
  });
1079
- Yr.displayName = jr;
1080
- function qr(e, t = globalThis?.document) {
1079
+ jr.displayName = Hr;
1080
+ function Yr(e, t = globalThis?.document) {
1081
1081
  const n = k(e), r = i.useRef(!1), o = i.useRef(() => {
1082
1082
  });
1083
1083
  return i.useEffect(() => {
1084
1084
  const a = (s) => {
1085
1085
  if (s.target && !r.current) {
1086
1086
  let m = function() {
1087
- en(
1088
- Gr,
1087
+ Jt(
1088
+ $r,
1089
1089
  n,
1090
1090
  f,
1091
1091
  { discrete: !0 }
@@ -1107,11 +1107,11 @@ function qr(e, t = globalThis?.document) {
1107
1107
  onPointerDownCapture: () => r.current = !0
1108
1108
  };
1109
1109
  }
1110
- function Xr(e, t = globalThis?.document) {
1110
+ function qr(e, t = globalThis?.document) {
1111
1111
  const n = k(e), r = i.useRef(!1);
1112
1112
  return i.useEffect(() => {
1113
1113
  const o = (a) => {
1114
- a.target && !r.current && en(Hr, n, { originalEvent: a }, {
1114
+ a.target && !r.current && Jt(Gr, n, { originalEvent: a }, {
1115
1115
  discrete: !1
1116
1116
  });
1117
1117
  };
@@ -1121,19 +1121,19 @@ function Xr(e, t = globalThis?.document) {
1121
1121
  onBlurCapture: () => r.current = !1
1122
1122
  };
1123
1123
  }
1124
- function Dt() {
1124
+ function It() {
1125
1125
  const e = new CustomEvent(He);
1126
1126
  document.dispatchEvent(e);
1127
1127
  }
1128
- function en(e, t, n, { discrete: r }) {
1128
+ function Jt(e, t, n, { discrete: r }) {
1129
1129
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1130
1130
  t && o.addEventListener(e, t, { once: !0 }), r ? Ge(o, a) : o.dispatchEvent(a);
1131
1131
  }
1132
- function Zr(e) {
1132
+ function Xr(e) {
1133
1133
  const t = i.useRef({ value: e, previous: e });
1134
1134
  return i.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1135
1135
  }
1136
- var Qr = Object.freeze({
1136
+ var Zr = Object.freeze({
1137
1137
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
1138
1138
  position: "absolute",
1139
1139
  border: 0,
@@ -1145,21 +1145,21 @@ var Qr = Object.freeze({
1145
1145
  clip: "rect(0, 0, 0, 0)",
1146
1146
  whiteSpace: "nowrap",
1147
1147
  wordWrap: "normal"
1148
- }), Jr = "VisuallyHidden", tn = i.forwardRef(
1148
+ }), Qr = "VisuallyHidden", en = i.forwardRef(
1149
1149
  (e, t) => /* @__PURE__ */ v(
1150
1150
  M.span,
1151
1151
  {
1152
1152
  ...e,
1153
1153
  ref: t,
1154
- style: { ...Qr, ...e.style }
1154
+ style: { ...Zr, ...e.style }
1155
1155
  }
1156
1156
  )
1157
1157
  );
1158
- tn.displayName = Jr;
1159
- var eo = tn, q = "NavigationMenu", [rt, nn, to] = Qt(q), [je, no, ro] = Qt(q), [ot] = et(
1158
+ en.displayName = Qr;
1159
+ var Jr = en, q = "NavigationMenu", [rt, tn, eo] = Zt(q), [je, to, no] = Zt(q), [ot] = et(
1160
1160
  q,
1161
- [to, ro]
1162
- ), [oo, V] = ot(q), [ao, io] = ot(q), rn = i.forwardRef(
1161
+ [eo, no]
1162
+ ), [ro, V] = ot(q), [oo, ao] = ot(q), nn = i.forwardRef(
1163
1163
  (e, t) => {
1164
1164
  const {
1165
1165
  __scopeNavigationMenu: n,
@@ -1171,7 +1171,7 @@ var eo = tn, q = "NavigationMenu", [rt, nn, to] = Qt(q), [je, no, ro] = Qt(q), [
1171
1171
  orientation: m = "horizontal",
1172
1172
  dir: f,
1173
1173
  ...l
1174
- } = e, [d, h] = i.useState(null), p = A(t, (O) => h(O)), y = Fr(f), u = i.useRef(0), g = i.useRef(0), w = i.useRef(0), [R, b] = i.useState(!0), [E, S] = tt({
1174
+ } = e, [d, h] = i.useState(null), p = D(t, (O) => h(O)), y = kr(f), u = i.useRef(0), g = i.useRef(0), w = i.useRef(0), [R, b] = i.useState(!0), [E, S] = tt({
1175
1175
  prop: r,
1176
1176
  onChange: (O) => {
1177
1177
  const P = O !== "", L = s > 0;
@@ -1200,7 +1200,7 @@ var eo = tn, q = "NavigationMenu", [rt, nn, to] = Qt(q), [je, no, ro] = Qt(q), [
1200
1200
  return i.useEffect(() => () => {
1201
1201
  window.clearTimeout(u.current), window.clearTimeout(g.current), window.clearTimeout(w.current);
1202
1202
  }, []), /* @__PURE__ */ v(
1203
- on,
1203
+ rn,
1204
1204
  {
1205
1205
  scope: n,
1206
1206
  isRootMenu: !0,
@@ -1234,8 +1234,8 @@ var eo = tn, q = "NavigationMenu", [rt, nn, to] = Qt(q), [je, no, ro] = Qt(q), [
1234
1234
  );
1235
1235
  }
1236
1236
  );
1237
- rn.displayName = q;
1238
- var Ye = "NavigationMenuSub", so = i.forwardRef(
1237
+ nn.displayName = q;
1238
+ var Ye = "NavigationMenuSub", io = i.forwardRef(
1239
1239
  (e, t) => {
1240
1240
  const {
1241
1241
  __scopeNavigationMenu: n,
@@ -1251,7 +1251,7 @@ var Ye = "NavigationMenuSub", so = i.forwardRef(
1251
1251
  caller: Ye
1252
1252
  });
1253
1253
  return /* @__PURE__ */ v(
1254
- on,
1254
+ rn,
1255
1255
  {
1256
1256
  scope: n,
1257
1257
  isRootMenu: !1,
@@ -1267,8 +1267,8 @@ var Ye = "NavigationMenuSub", so = i.forwardRef(
1267
1267
  );
1268
1268
  }
1269
1269
  );
1270
- so.displayName = Ye;
1271
- var on = (e) => {
1270
+ io.displayName = Ye;
1271
+ var rn = (e) => {
1272
1272
  const {
1273
1273
  scope: t,
1274
1274
  isRootMenu: n,
@@ -1285,13 +1285,13 @@ var on = (e) => {
1285
1285
  onContentLeave: p
1286
1286
  } = e, [y, u] = i.useState(null), [g, w] = i.useState(/* @__PURE__ */ new Map()), [R, b] = i.useState(null);
1287
1287
  return /* @__PURE__ */ v(
1288
- oo,
1288
+ ro,
1289
1289
  {
1290
1290
  scope: t,
1291
1291
  isRootMenu: n,
1292
1292
  rootNavigationMenu: r,
1293
1293
  value: s,
1294
- previousValue: Zr(s),
1294
+ previousValue: Xr(s),
1295
1295
  baseId: ae(),
1296
1296
  dir: o,
1297
1297
  orientation: a,
@@ -1311,17 +1311,17 @@ var on = (e) => {
1311
1311
  onViewportContentRemove: i.useCallback((E) => {
1312
1312
  w((S) => S.has(E) ? (S.delete(E), new Map(S)) : S);
1313
1313
  }, []),
1314
- children: /* @__PURE__ */ v(rt.Provider, { scope: t, children: /* @__PURE__ */ v(ao, { scope: t, items: g, children: c }) })
1314
+ children: /* @__PURE__ */ v(rt.Provider, { scope: t, children: /* @__PURE__ */ v(oo, { scope: t, items: g, children: c }) })
1315
1315
  }
1316
1316
  );
1317
- }, an = "NavigationMenuList", sn = i.forwardRef(
1317
+ }, on = "NavigationMenuList", an = i.forwardRef(
1318
1318
  (e, t) => {
1319
- const { __scopeNavigationMenu: n, ...r } = e, o = V(an, n), a = /* @__PURE__ */ v(M.ul, { "data-orientation": o.orientation, ...r, ref: t });
1320
- return /* @__PURE__ */ v(M.div, { style: { position: "relative" }, ref: o.onIndicatorTrackChange, children: /* @__PURE__ */ v(rt.Slot, { scope: n, children: o.isRootMenu ? /* @__PURE__ */ v(mn, { asChild: !0, children: a }) : a }) });
1319
+ const { __scopeNavigationMenu: n, ...r } = e, o = V(on, n), a = /* @__PURE__ */ v(M.ul, { "data-orientation": o.orientation, ...r, ref: t });
1320
+ return /* @__PURE__ */ v(M.div, { style: { position: "relative" }, ref: o.onIndicatorTrackChange, children: /* @__PURE__ */ v(rt.Slot, { scope: n, children: o.isRootMenu ? /* @__PURE__ */ v(vn, { asChild: !0, children: a }) : a }) });
1321
1321
  }
1322
1322
  );
1323
- sn.displayName = an;
1324
- var cn = "NavigationMenuItem", [co, un] = ot(cn), ln = i.forwardRef(
1323
+ an.displayName = on;
1324
+ var sn = "NavigationMenuItem", [so, cn] = ot(sn), un = i.forwardRef(
1325
1325
  (e, t) => {
1326
1326
  const { __scopeNavigationMenu: n, value: r, ...o } = e, a = ae(), c = r || a || "LEGACY_REACT_AUTO_VALUE", s = i.useRef(null), m = i.useRef(null), f = i.useRef(null), l = i.useRef(() => {
1327
1327
  }), d = i.useRef(!1), h = i.useCallback((y = "start") => {
@@ -1333,11 +1333,11 @@ var cn = "NavigationMenuItem", [co, un] = ot(cn), ln = i.forwardRef(
1333
1333
  }, []), p = i.useCallback(() => {
1334
1334
  if (s.current) {
1335
1335
  const y = Xe(s.current);
1336
- y.length && (l.current = Eo(y));
1336
+ y.length && (l.current = yo(y));
1337
1337
  }
1338
1338
  }, []);
1339
1339
  return /* @__PURE__ */ v(
1340
- co,
1340
+ so,
1341
1341
  {
1342
1342
  scope: n,
1343
1343
  value: c,
@@ -1354,11 +1354,11 @@ var cn = "NavigationMenuItem", [co, un] = ot(cn), ln = i.forwardRef(
1354
1354
  );
1355
1355
  }
1356
1356
  );
1357
- ln.displayName = cn;
1358
- var qe = "NavigationMenuTrigger", uo = i.forwardRef((e, t) => {
1359
- const { __scopeNavigationMenu: n, disabled: r, ...o } = e, a = V(qe, e.__scopeNavigationMenu), c = un(qe, e.__scopeNavigationMenu), s = i.useRef(null), m = A(s, c.triggerRef, t), f = hn(a.baseId, c.value), l = gn(a.baseId, c.value), d = i.useRef(!1), h = i.useRef(!1), p = c.value === a.value;
1360
- return /* @__PURE__ */ D(ie, { children: [
1361
- /* @__PURE__ */ v(rt.ItemSlot, { scope: n, value: c.value, children: /* @__PURE__ */ v(pn, { asChild: !0, children: /* @__PURE__ */ v(
1357
+ un.displayName = sn;
1358
+ var qe = "NavigationMenuTrigger", co = i.forwardRef((e, t) => {
1359
+ const { __scopeNavigationMenu: n, disabled: r, ...o } = e, a = V(qe, e.__scopeNavigationMenu), c = cn(qe, e.__scopeNavigationMenu), s = i.useRef(null), m = D(s, c.triggerRef, t), f = pn(a.baseId, c.value), l = hn(a.baseId, c.value), d = i.useRef(!1), h = i.useRef(!1), p = c.value === a.value;
1360
+ return /* @__PURE__ */ A(ie, { children: [
1361
+ /* @__PURE__ */ v(rt.ItemSlot, { scope: n, value: c.value, children: /* @__PURE__ */ v(mn, { asChild: !0, children: /* @__PURE__ */ v(
1362
1362
  M.button,
1363
1363
  {
1364
1364
  id: f,
@@ -1393,9 +1393,9 @@ var qe = "NavigationMenuTrigger", uo = i.forwardRef((e, t) => {
1393
1393
  })
1394
1394
  }
1395
1395
  ) }) }),
1396
- p && /* @__PURE__ */ D(ie, { children: [
1396
+ p && /* @__PURE__ */ A(ie, { children: [
1397
1397
  /* @__PURE__ */ v(
1398
- eo,
1398
+ Jr,
1399
1399
  {
1400
1400
  "aria-hidden": !0,
1401
1401
  tabIndex: 0,
@@ -1410,11 +1410,11 @@ var qe = "NavigationMenuTrigger", uo = i.forwardRef((e, t) => {
1410
1410
  ] })
1411
1411
  ] });
1412
1412
  });
1413
- uo.displayName = qe;
1414
- var lo = "NavigationMenuLink", At = "navigationMenu.linkSelect", dn = i.forwardRef(
1413
+ co.displayName = qe;
1414
+ var uo = "NavigationMenuLink", Dt = "navigationMenu.linkSelect", ln = i.forwardRef(
1415
1415
  (e, t) => {
1416
1416
  const { __scopeNavigationMenu: n, active: r, onSelect: o, ...a } = e;
1417
- return /* @__PURE__ */ v(pn, { asChild: !0, children: /* @__PURE__ */ v(
1417
+ return /* @__PURE__ */ v(mn, { asChild: !0, children: /* @__PURE__ */ v(
1418
1418
  M.a,
1419
1419
  {
1420
1420
  "data-active": r ? "" : void 0,
@@ -1424,11 +1424,11 @@ var lo = "NavigationMenuLink", At = "navigationMenu.linkSelect", dn = i.forwardR
1424
1424
  onClick: x(
1425
1425
  e.onClick,
1426
1426
  (c) => {
1427
- const s = c.target, m = new CustomEvent(At, {
1427
+ const s = c.target, m = new CustomEvent(Dt, {
1428
1428
  bubbles: !0,
1429
1429
  cancelable: !0
1430
1430
  });
1431
- if (s.addEventListener(At, (f) => o?.(f), { once: !0 }), Ge(s, m), !m.defaultPrevented && !c.metaKey) {
1431
+ if (s.addEventListener(Dt, (f) => o?.(f), { once: !0 }), Ge(s, m), !m.defaultPrevented && !c.metaKey) {
1432
1432
  const f = new CustomEvent(be, {
1433
1433
  bubbles: !0,
1434
1434
  cancelable: !0
@@ -1442,17 +1442,17 @@ var lo = "NavigationMenuLink", At = "navigationMenu.linkSelect", dn = i.forwardR
1442
1442
  ) });
1443
1443
  }
1444
1444
  );
1445
- dn.displayName = lo;
1446
- var at = "NavigationMenuIndicator", fo = i.forwardRef((e, t) => {
1445
+ ln.displayName = uo;
1446
+ var at = "NavigationMenuIndicator", lo = i.forwardRef((e, t) => {
1447
1447
  const { forceMount: n, ...r } = e, o = V(at, e.__scopeNavigationMenu), a = !!o.value;
1448
- return o.indicatorTrack ? jt.createPortal(
1449
- /* @__PURE__ */ v(H, { present: n || a, children: /* @__PURE__ */ v(vo, { ...r, ref: t }) }),
1448
+ return o.indicatorTrack ? Ht.createPortal(
1449
+ /* @__PURE__ */ v(H, { present: n || a, children: /* @__PURE__ */ v(fo, { ...r, ref: t }) }),
1450
1450
  o.indicatorTrack
1451
1451
  ) : null;
1452
1452
  });
1453
- fo.displayName = at;
1454
- var vo = i.forwardRef((e, t) => {
1455
- const { __scopeNavigationMenu: n, ...r } = e, o = V(at, n), a = nn(n), [c, s] = i.useState(
1453
+ lo.displayName = at;
1454
+ var fo = i.forwardRef((e, t) => {
1455
+ const { __scopeNavigationMenu: n, ...r } = e, o = V(at, n), a = tn(n), [c, s] = i.useState(
1456
1456
  null
1457
1457
  ), [m, f] = i.useState(null), l = o.orientation === "horizontal", d = !!o.value;
1458
1458
  i.useEffect(() => {
@@ -1488,8 +1488,8 @@ var vo = i.forwardRef((e, t) => {
1488
1488
  }
1489
1489
  }
1490
1490
  ) : null;
1491
- }), te = "NavigationMenuContent", mo = i.forwardRef((e, t) => {
1492
- const { forceMount: n, ...r } = e, o = V(te, e.__scopeNavigationMenu), a = un(te, e.__scopeNavigationMenu), c = A(a.contentRef, t), s = a.value === o.value, m = {
1491
+ }), te = "NavigationMenuContent", vo = i.forwardRef((e, t) => {
1492
+ const { forceMount: n, ...r } = e, o = V(te, e.__scopeNavigationMenu), a = cn(te, e.__scopeNavigationMenu), c = D(a.contentRef, t), s = a.value === o.value, m = {
1493
1493
  value: a.value,
1494
1494
  triggerRef: a.triggerRef,
1495
1495
  focusProxyRef: a.focusProxyRef,
@@ -1498,8 +1498,8 @@ var vo = i.forwardRef((e, t) => {
1498
1498
  onRootContentClose: a.onRootContentClose,
1499
1499
  ...r
1500
1500
  };
1501
- return o.viewport ? /* @__PURE__ */ v(po, { forceMount: n, ...m, ref: c }) : /* @__PURE__ */ v(H, { present: n || s, children: /* @__PURE__ */ v(
1502
- fn,
1501
+ return o.viewport ? /* @__PURE__ */ v(mo, { forceMount: n, ...m, ref: c }) : /* @__PURE__ */ v(H, { present: n || s, children: /* @__PURE__ */ v(
1502
+ dn,
1503
1503
  {
1504
1504
  "data-state": ct(s),
1505
1505
  ...m,
@@ -1517,8 +1517,8 @@ var vo = i.forwardRef((e, t) => {
1517
1517
  }
1518
1518
  ) });
1519
1519
  });
1520
- mo.displayName = te;
1521
- var po = i.forwardRef((e, t) => {
1520
+ vo.displayName = te;
1521
+ var mo = i.forwardRef((e, t) => {
1522
1522
  const n = V(te, e.__scopeNavigationMenu), { onViewportContentChange: r, onViewportContentRemove: o } = n;
1523
1523
  return G(() => {
1524
1524
  r(e.value, {
@@ -1526,7 +1526,7 @@ var po = i.forwardRef((e, t) => {
1526
1526
  ...e
1527
1527
  });
1528
1528
  }, [e, t, r]), G(() => () => o(e.value), [e.value, o]), null;
1529
- }), be = "navigationMenu.rootContentDismiss", fn = i.forwardRef((e, t) => {
1529
+ }), be = "navigationMenu.rootContentDismiss", dn = i.forwardRef((e, t) => {
1530
1530
  const {
1531
1531
  __scopeNavigationMenu: n,
1532
1532
  value: r,
@@ -1536,7 +1536,7 @@ var po = i.forwardRef((e, t) => {
1536
1536
  onRootContentClose: s,
1537
1537
  onContentFocusOutside: m,
1538
1538
  ...f
1539
- } = e, l = V(te, n), d = i.useRef(null), h = A(d, t), p = hn(l.baseId, r), y = gn(l.baseId, r), u = nn(n), g = i.useRef(null), { onItemDismiss: w } = l;
1539
+ } = e, l = V(te, n), d = i.useRef(null), h = D(d, t), p = pn(l.baseId, r), y = hn(l.baseId, r), u = tn(n), g = i.useRef(null), { onItemDismiss: w } = l;
1540
1540
  i.useEffect(() => {
1541
1541
  const b = d.current;
1542
1542
  if (l.isRootMenu && b) {
@@ -1560,7 +1560,7 @@ var po = i.forwardRef((e, t) => {
1560
1560
  })();
1561
1561
  return g.current = O, O;
1562
1562
  }, [l.previousValue, l.value, l.dir, u, r]);
1563
- return /* @__PURE__ */ v(mn, { asChild: !0, children: /* @__PURE__ */ v(
1563
+ return /* @__PURE__ */ v(vn, { asChild: !0, children: /* @__PURE__ */ v(
1564
1564
  nt,
1565
1565
  {
1566
1566
  id: y,
@@ -1598,13 +1598,13 @@ var po = i.forwardRef((e, t) => {
1598
1598
  })
1599
1599
  }
1600
1600
  ) });
1601
- }), it = "NavigationMenuViewport", vn = i.forwardRef((e, t) => {
1601
+ }), it = "NavigationMenuViewport", fn = i.forwardRef((e, t) => {
1602
1602
  const { forceMount: n, ...r } = e, a = !!V(it, e.__scopeNavigationMenu).value;
1603
- return /* @__PURE__ */ v(H, { present: n || a, children: /* @__PURE__ */ v(ho, { ...r, ref: t }) });
1603
+ return /* @__PURE__ */ v(H, { present: n || a, children: /* @__PURE__ */ v(po, { ...r, ref: t }) });
1604
1604
  });
1605
- vn.displayName = it;
1606
- var ho = i.forwardRef((e, t) => {
1607
- const { __scopeNavigationMenu: n, children: r, ...o } = e, a = V(it, n), c = A(t, a.onViewportChange), s = io(
1605
+ fn.displayName = it;
1606
+ var po = i.forwardRef((e, t) => {
1607
+ const { __scopeNavigationMenu: n, children: r, ...o } = e, a = V(it, n), c = D(t, a.onViewportChange), s = ao(
1608
1608
  te,
1609
1609
  e.__scopeNavigationMenu
1610
1610
  ), [m, f] = i.useState(null), [l, d] = i.useState(null), h = m ? m?.width + "px" : void 0, p = m ? m?.height + "px" : void 0, y = !!a.value, u = y ? a.value : a.previousValue;
@@ -1629,10 +1629,10 @@ var ho = i.forwardRef((e, t) => {
1629
1629
  children: Array.from(s.items).map(([w, { ref: R, forceMount: b, ...E }]) => {
1630
1630
  const S = u === w;
1631
1631
  return /* @__PURE__ */ v(H, { present: b || S, children: /* @__PURE__ */ v(
1632
- fn,
1632
+ dn,
1633
1633
  {
1634
1634
  ...E,
1635
- ref: Zt(R, (C) => {
1635
+ ref: Xt(R, (C) => {
1636
1636
  S && C && d(C);
1637
1637
  })
1638
1638
  }
@@ -1640,23 +1640,23 @@ var ho = i.forwardRef((e, t) => {
1640
1640
  })
1641
1641
  }
1642
1642
  );
1643
- }), go = "FocusGroup", mn = i.forwardRef(
1643
+ }), ho = "FocusGroup", vn = i.forwardRef(
1644
1644
  (e, t) => {
1645
- const { __scopeNavigationMenu: n, ...r } = e, o = V(go, n);
1645
+ const { __scopeNavigationMenu: n, ...r } = e, o = V(ho, n);
1646
1646
  return /* @__PURE__ */ v(je.Provider, { scope: n, children: /* @__PURE__ */ v(je.Slot, { scope: n, children: /* @__PURE__ */ v(M.div, { dir: o.dir, ...r, ref: t }) }) });
1647
1647
  }
1648
- ), Lt = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], yo = "FocusGroupItem", pn = i.forwardRef(
1648
+ ), At = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], go = "FocusGroupItem", mn = i.forwardRef(
1649
1649
  (e, t) => {
1650
- const { __scopeNavigationMenu: n, ...r } = e, o = no(n), a = V(yo, n);
1650
+ const { __scopeNavigationMenu: n, ...r } = e, o = to(n), a = V(go, n);
1651
1651
  return /* @__PURE__ */ v(je.ItemSlot, { scope: n, children: /* @__PURE__ */ v(
1652
1652
  M.button,
1653
1653
  {
1654
1654
  ...r,
1655
1655
  ref: t,
1656
1656
  onKeyDown: x(e.onKeyDown, (c) => {
1657
- if (["Home", "End", ...Lt].includes(c.key)) {
1657
+ if (["Home", "End", ...At].includes(c.key)) {
1658
1658
  let m = o().map((d) => d.ref.current);
1659
- if ([a.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(c.key) && m.reverse(), Lt.includes(c.key)) {
1659
+ if ([a.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(c.key) && m.reverse(), At.includes(c.key)) {
1660
1660
  const d = m.indexOf(c.currentTarget);
1661
1661
  m = m.slice(d + 1);
1662
1662
  }
@@ -1681,7 +1681,7 @@ function st(e) {
1681
1681
  const t = document.activeElement;
1682
1682
  return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
1683
1683
  }
1684
- function Eo(e) {
1684
+ function yo(e) {
1685
1685
  return e.forEach((t) => {
1686
1686
  t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
1687
1687
  }), () => {
@@ -1708,24 +1708,24 @@ function Ze(e, t) {
1708
1708
  function ct(e) {
1709
1709
  return e ? "open" : "closed";
1710
1710
  }
1711
- function hn(e, t) {
1711
+ function pn(e, t) {
1712
1712
  return `${e}-trigger-${t}`;
1713
1713
  }
1714
- function gn(e, t) {
1714
+ function hn(e, t) {
1715
1715
  return `${e}-content-${t}`;
1716
1716
  }
1717
1717
  function Oe(e) {
1718
1718
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1719
1719
  }
1720
- var bo = rn, wo = sn, Co = ln, So = dn, Ro = vn;
1721
- function _o({
1720
+ var Eo = nn, bo = an, wo = un, Co = ln, So = fn;
1721
+ function Ro({
1722
1722
  className: e,
1723
1723
  children: t,
1724
1724
  viewport: n = !0,
1725
1725
  ...r
1726
1726
  }) {
1727
- return /* @__PURE__ */ D(
1728
- bo,
1727
+ return /* @__PURE__ */ A(
1728
+ Eo,
1729
1729
  {
1730
1730
  "data-slot": "navigation-menu",
1731
1731
  "data-viewport": n,
@@ -1736,17 +1736,17 @@ function _o({
1736
1736
  ...r,
1737
1737
  children: [
1738
1738
  t,
1739
- n && /* @__PURE__ */ v(xo, {})
1739
+ n && /* @__PURE__ */ v(To, {})
1740
1740
  ]
1741
1741
  }
1742
1742
  );
1743
1743
  }
1744
- function Oo({
1744
+ function _o({
1745
1745
  className: e,
1746
1746
  ...t
1747
1747
  }) {
1748
1748
  return /* @__PURE__ */ v(
1749
- wo,
1749
+ bo,
1750
1750
  {
1751
1751
  "data-slot": "navigation-menu-list",
1752
1752
  className: F(
@@ -1757,12 +1757,12 @@ function Oo({
1757
1757
  }
1758
1758
  );
1759
1759
  }
1760
- function No({
1760
+ function Oo({
1761
1761
  className: e,
1762
1762
  ...t
1763
1763
  }) {
1764
1764
  return /* @__PURE__ */ v(
1765
- Co,
1765
+ wo,
1766
1766
  {
1767
1767
  "data-slot": "navigation-menu-item",
1768
1768
  className: F("relative", e),
@@ -1770,10 +1770,10 @@ function No({
1770
1770
  }
1771
1771
  );
1772
1772
  }
1773
- const To = Ht(
1773
+ const No = Gt(
1774
1774
  "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
1775
1775
  );
1776
- function xo({
1776
+ function To({
1777
1777
  className: e,
1778
1778
  ...t
1779
1779
  }) {
@@ -1784,7 +1784,7 @@ function xo({
1784
1784
  "absolute top-full left-0 isolate z-50 flex justify-center"
1785
1785
  ),
1786
1786
  children: /* @__PURE__ */ v(
1787
- Ro,
1787
+ So,
1788
1788
  {
1789
1789
  "data-slot": "navigation-menu-viewport",
1790
1790
  className: F(
@@ -1797,12 +1797,12 @@ function xo({
1797
1797
  }
1798
1798
  );
1799
1799
  }
1800
- function Mo({
1800
+ function xo({
1801
1801
  className: e,
1802
1802
  ...t
1803
1803
  }) {
1804
1804
  return /* @__PURE__ */ v(
1805
- So,
1805
+ Co,
1806
1806
  {
1807
1807
  "data-slot": "navigation-menu-link",
1808
1808
  className: F(
@@ -1813,14 +1813,14 @@ function Mo({
1813
1813
  }
1814
1814
  );
1815
1815
  }
1816
- var Ve = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", kt = { bubbles: !1, cancelable: !0 }, Po = "FocusScope", yn = i.forwardRef((e, t) => {
1816
+ var Ve = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", Lt = { bubbles: !1, cancelable: !0 }, Mo = "FocusScope", gn = i.forwardRef((e, t) => {
1817
1817
  const {
1818
1818
  loop: n = !1,
1819
1819
  trapped: r = !1,
1820
1820
  onMountAutoFocus: o,
1821
1821
  onUnmountAutoFocus: a,
1822
1822
  ...c
1823
- } = e, [s, m] = i.useState(null), f = k(o), l = k(a), d = i.useRef(null), h = A(t, (u) => m(u)), p = i.useRef({
1823
+ } = e, [s, m] = i.useState(null), f = k(o), l = k(a), d = i.useRef(null), h = D(t, (u) => m(u)), p = i.useRef({
1824
1824
  paused: !1,
1825
1825
  pause() {
1826
1826
  this.paused = !0;
@@ -1852,16 +1852,16 @@ var Ve = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", kt
1852
1852
  }
1853
1853
  }, [r, s, p.paused]), i.useEffect(() => {
1854
1854
  if (s) {
1855
- Vt.add(p);
1855
+ Ft.add(p);
1856
1856
  const u = document.activeElement;
1857
1857
  if (!s.contains(u)) {
1858
- const w = new CustomEvent(Ve, kt);
1859
- s.addEventListener(Ve, f), s.dispatchEvent(w), w.defaultPrevented || (Io(Fo(En(s)), { select: !0 }), document.activeElement === u && $(s));
1858
+ const w = new CustomEvent(Ve, Lt);
1859
+ s.addEventListener(Ve, f), s.dispatchEvent(w), w.defaultPrevented || (Po(ko(yn(s)), { select: !0 }), document.activeElement === u && $(s));
1860
1860
  }
1861
1861
  return () => {
1862
1862
  s.removeEventListener(Ve, f), setTimeout(() => {
1863
- const w = new CustomEvent(We, kt);
1864
- s.addEventListener(We, l), s.dispatchEvent(w), w.defaultPrevented || $(u ?? document.body, { select: !0 }), s.removeEventListener(We, l), Vt.remove(p);
1863
+ const w = new CustomEvent(We, Lt);
1864
+ s.addEventListener(We, l), s.dispatchEvent(w), w.defaultPrevented || $(u ?? document.body, { select: !0 }), s.removeEventListener(We, l), Ft.remove(p);
1865
1865
  }, 0);
1866
1866
  };
1867
1867
  }
@@ -1871,7 +1871,7 @@ var Ve = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", kt
1871
1871
  if (!n && !r || p.paused) return;
1872
1872
  const g = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, w = document.activeElement;
1873
1873
  if (g && w) {
1874
- const R = u.currentTarget, [b, E] = Do(R);
1874
+ const R = u.currentTarget, [b, E] = Io(R);
1875
1875
  b && E ? !u.shiftKey && w === E ? (u.preventDefault(), n && $(b, { select: !0 })) : u.shiftKey && w === b && (u.preventDefault(), n && $(E, { select: !0 })) : w === R && u.preventDefault();
1876
1876
  }
1877
1877
  },
@@ -1879,17 +1879,17 @@ var Ve = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", kt
1879
1879
  );
1880
1880
  return /* @__PURE__ */ v(M.div, { tabIndex: -1, ...c, ref: h, onKeyDown: y });
1881
1881
  });
1882
- yn.displayName = Po;
1883
- function Io(e, { select: t = !1 } = {}) {
1882
+ gn.displayName = Mo;
1883
+ function Po(e, { select: t = !1 } = {}) {
1884
1884
  const n = document.activeElement;
1885
1885
  for (const r of e)
1886
1886
  if ($(r, { select: t }), document.activeElement !== n) return;
1887
1887
  }
1888
- function Do(e) {
1889
- const t = En(e), n = Ft(t, e), r = Ft(t.reverse(), e);
1888
+ function Io(e) {
1889
+ const t = yn(e), n = kt(t, e), r = kt(t.reverse(), e);
1890
1890
  return [n, r];
1891
1891
  }
1892
- function En(e) {
1892
+ function yn(e) {
1893
1893
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1894
1894
  acceptNode: (r) => {
1895
1895
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1899,11 +1899,11 @@ function En(e) {
1899
1899
  for (; n.nextNode(); ) t.push(n.currentNode);
1900
1900
  return t;
1901
1901
  }
1902
- function Ft(e, t) {
1902
+ function kt(e, t) {
1903
1903
  for (const n of e)
1904
- if (!Ao(n, { upTo: t })) return n;
1904
+ if (!Do(n, { upTo: t })) return n;
1905
1905
  }
1906
- function Ao(e, { upTo: t }) {
1906
+ function Do(e, { upTo: t }) {
1907
1907
  if (getComputedStyle(e).visibility === "hidden") return !0;
1908
1908
  for (; e; ) {
1909
1909
  if (t !== void 0 && e === t) return !1;
@@ -1912,52 +1912,52 @@ function Ao(e, { upTo: t }) {
1912
1912
  }
1913
1913
  return !1;
1914
1914
  }
1915
- function Lo(e) {
1915
+ function Ao(e) {
1916
1916
  return e instanceof HTMLInputElement && "select" in e;
1917
1917
  }
1918
1918
  function $(e, { select: t = !1 } = {}) {
1919
1919
  if (e && e.focus) {
1920
1920
  const n = document.activeElement;
1921
- e.focus({ preventScroll: !0 }), e !== n && Lo(e) && t && e.select();
1921
+ e.focus({ preventScroll: !0 }), e !== n && Ao(e) && t && e.select();
1922
1922
  }
1923
1923
  }
1924
- var Vt = ko();
1925
- function ko() {
1924
+ var Ft = Lo();
1925
+ function Lo() {
1926
1926
  let e = [];
1927
1927
  return {
1928
1928
  add(t) {
1929
1929
  const n = e[0];
1930
- t !== n && n?.pause(), e = Wt(e, t), e.unshift(t);
1930
+ t !== n && n?.pause(), e = Vt(e, t), e.unshift(t);
1931
1931
  },
1932
1932
  remove(t) {
1933
- e = Wt(e, t), e[0]?.resume();
1933
+ e = Vt(e, t), e[0]?.resume();
1934
1934
  }
1935
1935
  };
1936
1936
  }
1937
- function Wt(e, t) {
1937
+ function Vt(e, t) {
1938
1938
  const n = [...e], r = n.indexOf(t);
1939
1939
  return r !== -1 && n.splice(r, 1), n;
1940
1940
  }
1941
- function Fo(e) {
1941
+ function ko(e) {
1942
1942
  return e.filter((t) => t.tagName !== "A");
1943
1943
  }
1944
- var Vo = "Portal", bn = i.forwardRef((e, t) => {
1944
+ var Fo = "Portal", En = i.forwardRef((e, t) => {
1945
1945
  const { container: n, ...r } = e, [o, a] = i.useState(!1);
1946
1946
  G(() => a(!0), []);
1947
1947
  const c = n || o && globalThis?.document?.body;
1948
- return c ? jt.createPortal(/* @__PURE__ */ v(M.div, { ...r, ref: t }), c) : null;
1948
+ return c ? Ht.createPortal(/* @__PURE__ */ v(M.div, { ...r, ref: t }), c) : null;
1949
1949
  });
1950
- bn.displayName = Vo;
1950
+ En.displayName = Fo;
1951
1951
  var Ke = 0;
1952
- function Wo() {
1952
+ function Vo() {
1953
1953
  i.useEffect(() => {
1954
1954
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1955
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Kt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Kt()), Ke++, () => {
1955
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wt()), Ke++, () => {
1956
1956
  Ke === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ke--;
1957
1957
  };
1958
1958
  }, []);
1959
1959
  }
1960
- function Kt() {
1960
+ function Wt() {
1961
1961
  const e = document.createElement("span");
1962
1962
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1963
1963
  }
@@ -1970,7 +1970,7 @@ var z = function() {
1970
1970
  return t;
1971
1971
  }, z.apply(this, arguments);
1972
1972
  };
1973
- function wn(e, t) {
1973
+ function bn(e, t) {
1974
1974
  var n = {};
1975
1975
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1976
1976
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1978,17 +1978,17 @@ function wn(e, t) {
1978
1978
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
1979
1979
  return n;
1980
1980
  }
1981
- function Ko(e, t, n) {
1981
+ function Wo(e, t, n) {
1982
1982
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
1983
1983
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
1984
1984
  return e.concat(a || Array.prototype.slice.call(t));
1985
1985
  }
1986
- var we = "right-scroll-bar-position", Ce = "width-before-scroll-bar", Uo = "with-scroll-bars-hidden", zo = "--removed-body-scroll-bar-size";
1986
+ var we = "right-scroll-bar-position", Ce = "width-before-scroll-bar", Ko = "with-scroll-bars-hidden", Uo = "--removed-body-scroll-bar-size";
1987
1987
  function Ue(e, t) {
1988
1988
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
1989
1989
  }
1990
- function Bo(e, t) {
1991
- var n = er(function() {
1990
+ function zo(e, t) {
1991
+ var n = Jn(function() {
1992
1992
  return {
1993
1993
  // value
1994
1994
  value: e,
@@ -2008,15 +2008,15 @@ function Bo(e, t) {
2008
2008
  })[0];
2009
2009
  return n.callback = t, n.facade;
2010
2010
  }
2011
- var $o = typeof window < "u" ? i.useLayoutEffect : i.useEffect, Ut = /* @__PURE__ */ new WeakMap();
2012
- function Go(e, t) {
2013
- var n = Bo(null, function(r) {
2011
+ var Bo = typeof window < "u" ? i.useLayoutEffect : i.useEffect, Kt = /* @__PURE__ */ new WeakMap();
2012
+ function $o(e, t) {
2013
+ var n = zo(null, function(r) {
2014
2014
  return e.forEach(function(o) {
2015
2015
  return Ue(o, r);
2016
2016
  });
2017
2017
  });
2018
- return $o(function() {
2019
- var r = Ut.get(n);
2018
+ return Bo(function() {
2019
+ var r = Kt.get(n);
2020
2020
  if (r) {
2021
2021
  var o = new Set(r), a = new Set(e), c = n.current;
2022
2022
  o.forEach(function(s) {
@@ -2025,14 +2025,14 @@ function Go(e, t) {
2025
2025
  o.has(s) || Ue(s, c);
2026
2026
  });
2027
2027
  }
2028
- Ut.set(n, e);
2028
+ Kt.set(n, e);
2029
2029
  }, [e]), n;
2030
2030
  }
2031
- function Ho(e) {
2031
+ function Go(e) {
2032
2032
  return e;
2033
2033
  }
2034
- function jo(e, t) {
2035
- t === void 0 && (t = Ho);
2034
+ function Ho(e, t) {
2035
+ t === void 0 && (t = Go);
2036
2036
  var n = [], r = !1, o = {
2037
2037
  read: function() {
2038
2038
  if (r)
@@ -2086,13 +2086,13 @@ function jo(e, t) {
2086
2086
  };
2087
2087
  return o;
2088
2088
  }
2089
- function Yo(e) {
2089
+ function jo(e) {
2090
2090
  e === void 0 && (e = {});
2091
- var t = jo(null);
2091
+ var t = Ho(null);
2092
2092
  return t.options = z({ async: !0, ssr: !1 }, e), t;
2093
2093
  }
2094
- var Cn = function(e) {
2095
- var t = e.sideCar, n = wn(e, ["sideCar"]);
2094
+ var wn = function(e) {
2095
+ var t = e.sideCar, n = bn(e, ["sideCar"]);
2096
2096
  if (!t)
2097
2097
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2098
2098
  var r = t.read();
@@ -2100,21 +2100,21 @@ var Cn = function(e) {
2100
2100
  throw new Error("Sidecar medium not found");
2101
2101
  return i.createElement(r, z({}, n));
2102
2102
  };
2103
- Cn.isSideCarExport = !0;
2104
- function qo(e, t) {
2105
- return e.useMedium(t), Cn;
2103
+ wn.isSideCarExport = !0;
2104
+ function Yo(e, t) {
2105
+ return e.useMedium(t), wn;
2106
2106
  }
2107
- var Sn = Yo(), ze = function() {
2107
+ var Cn = jo(), ze = function() {
2108
2108
  }, Te = i.forwardRef(function(e, t) {
2109
2109
  var n = i.useRef(null), r = i.useState({
2110
2110
  onScrollCapture: ze,
2111
2111
  onWheelCapture: ze,
2112
2112
  onTouchMoveCapture: ze
2113
- }), o = r[0], a = r[1], c = e.forwardProps, s = e.children, m = e.className, f = e.removeScrollBar, l = e.enabled, d = e.shards, h = e.sideCar, p = e.noRelative, y = e.noIsolation, u = e.inert, g = e.allowPinchZoom, w = e.as, R = w === void 0 ? "div" : w, b = e.gapMode, E = wn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, C = Go([n, t]), _ = z(z({}, E), o);
2113
+ }), o = r[0], a = r[1], c = e.forwardProps, s = e.children, m = e.className, f = e.removeScrollBar, l = e.enabled, d = e.shards, h = e.sideCar, p = e.noRelative, y = e.noIsolation, u = e.inert, g = e.allowPinchZoom, w = e.as, R = w === void 0 ? "div" : w, b = e.gapMode, E = bn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, C = $o([n, t]), _ = z(z({}, E), o);
2114
2114
  return i.createElement(
2115
2115
  i.Fragment,
2116
2116
  null,
2117
- l && i.createElement(S, { sideCar: Sn, removeScrollBar: f, shards: d, noRelative: p, noIsolation: y, inert: u, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
2117
+ l && i.createElement(S, { sideCar: Cn, removeScrollBar: f, shards: d, noRelative: p, noIsolation: y, inert: u, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
2118
2118
  c ? i.cloneElement(i.Children.only(s), z(z({}, _), { ref: C })) : i.createElement(R, z({}, _, { className: m, ref: C }), s)
2119
2119
  );
2120
2120
  });
@@ -2127,37 +2127,37 @@ Te.classNames = {
2127
2127
  fullWidth: Ce,
2128
2128
  zeroRight: we
2129
2129
  };
2130
- var Xo = function() {
2130
+ var qo = function() {
2131
2131
  if (typeof __webpack_nonce__ < "u")
2132
2132
  return __webpack_nonce__;
2133
2133
  };
2134
- function Zo() {
2134
+ function Xo() {
2135
2135
  if (!document)
2136
2136
  return null;
2137
2137
  var e = document.createElement("style");
2138
2138
  e.type = "text/css";
2139
- var t = Xo();
2139
+ var t = qo();
2140
2140
  return t && e.setAttribute("nonce", t), e;
2141
2141
  }
2142
- function Qo(e, t) {
2142
+ function Zo(e, t) {
2143
2143
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2144
2144
  }
2145
- function Jo(e) {
2145
+ function Qo(e) {
2146
2146
  var t = document.head || document.getElementsByTagName("head")[0];
2147
2147
  t.appendChild(e);
2148
2148
  }
2149
- var ea = function() {
2149
+ var Jo = function() {
2150
2150
  var e = 0, t = null;
2151
2151
  return {
2152
2152
  add: function(n) {
2153
- e == 0 && (t = Zo()) && (Qo(t, n), Jo(t)), e++;
2153
+ e == 0 && (t = Xo()) && (Zo(t, n), Qo(t)), e++;
2154
2154
  },
2155
2155
  remove: function() {
2156
2156
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2157
2157
  }
2158
2158
  };
2159
- }, ta = function() {
2160
- var e = ea();
2159
+ }, ea = function() {
2160
+ var e = Jo();
2161
2161
  return function(t, n) {
2162
2162
  i.useEffect(function() {
2163
2163
  return e.add(t), function() {
@@ -2165,36 +2165,36 @@ var ea = function() {
2165
2165
  };
2166
2166
  }, [t && n]);
2167
2167
  };
2168
- }, Rn = function() {
2169
- var e = ta(), t = function(n) {
2168
+ }, Sn = function() {
2169
+ var e = ea(), t = function(n) {
2170
2170
  var r = n.styles, o = n.dynamic;
2171
2171
  return e(r, o), null;
2172
2172
  };
2173
2173
  return t;
2174
- }, na = {
2174
+ }, ta = {
2175
2175
  left: 0,
2176
2176
  top: 0,
2177
2177
  right: 0,
2178
2178
  gap: 0
2179
2179
  }, Be = function(e) {
2180
2180
  return parseInt(e || "", 10) || 0;
2181
- }, ra = function(e) {
2181
+ }, na = function(e) {
2182
2182
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2183
2183
  return [Be(n), Be(r), Be(o)];
2184
- }, oa = function(e) {
2184
+ }, ra = function(e) {
2185
2185
  if (e === void 0 && (e = "margin"), typeof window > "u")
2186
- return na;
2187
- var t = ra(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2186
+ return ta;
2187
+ var t = na(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2188
2188
  return {
2189
2189
  left: t[0],
2190
2190
  top: t[1],
2191
2191
  right: t[2],
2192
2192
  gap: Math.max(0, r - n + t[2] - t[0])
2193
2193
  };
2194
- }, aa = Rn(), ee = "data-scroll-locked", ia = function(e, t, n, r) {
2194
+ }, oa = Sn(), ee = "data-scroll-locked", aa = function(e, t, n, r) {
2195
2195
  var o = e.left, a = e.top, c = e.right, s = e.gap;
2196
2196
  return n === void 0 && (n = "margin"), `
2197
- .`.concat(Uo, ` {
2197
+ .`.concat(Ko, ` {
2198
2198
  overflow: hidden `).concat(r, `;
2199
2199
  padding-right: `).concat(s, "px ").concat(r, `;
2200
2200
  }
@@ -2232,26 +2232,26 @@ var ea = function() {
2232
2232
  }
2233
2233
 
2234
2234
  body[`).concat(ee, `] {
2235
- `).concat(zo, ": ").concat(s, `px;
2235
+ `).concat(Uo, ": ").concat(s, `px;
2236
2236
  }
2237
2237
  `);
2238
- }, zt = function() {
2238
+ }, Ut = function() {
2239
2239
  var e = parseInt(document.body.getAttribute(ee) || "0", 10);
2240
2240
  return isFinite(e) ? e : 0;
2241
- }, sa = function() {
2241
+ }, ia = function() {
2242
2242
  i.useEffect(function() {
2243
- return document.body.setAttribute(ee, (zt() + 1).toString()), function() {
2244
- var e = zt() - 1;
2243
+ return document.body.setAttribute(ee, (Ut() + 1).toString()), function() {
2244
+ var e = Ut() - 1;
2245
2245
  e <= 0 ? document.body.removeAttribute(ee) : document.body.setAttribute(ee, e.toString());
2246
2246
  };
2247
2247
  }, []);
2248
- }, ca = function(e) {
2248
+ }, sa = function(e) {
2249
2249
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2250
- sa();
2250
+ ia();
2251
2251
  var a = i.useMemo(function() {
2252
- return oa(o);
2252
+ return ra(o);
2253
2253
  }, [o]);
2254
- return i.createElement(aa, { styles: ia(a, !t, o, n ? "" : "!important") });
2254
+ return i.createElement(oa, { styles: aa(a, !t, o, n ? "" : "!important") });
2255
2255
  }, Qe = !1;
2256
2256
  if (typeof window < "u")
2257
2257
  try {
@@ -2264,61 +2264,61 @@ if (typeof window < "u")
2264
2264
  } catch {
2265
2265
  Qe = !1;
2266
2266
  }
2267
- var Z = Qe ? { passive: !1 } : !1, ua = function(e) {
2267
+ var Z = Qe ? { passive: !1 } : !1, ca = function(e) {
2268
2268
  return e.tagName === "TEXTAREA";
2269
- }, _n = function(e, t) {
2269
+ }, Rn = function(e, t) {
2270
2270
  if (!(e instanceof Element))
2271
2271
  return !1;
2272
2272
  var n = window.getComputedStyle(e);
2273
2273
  return (
2274
2274
  // not-not-scrollable
2275
2275
  n[t] !== "hidden" && // contains scroll inside self
2276
- !(n.overflowY === n.overflowX && !ua(e) && n[t] === "visible")
2276
+ !(n.overflowY === n.overflowX && !ca(e) && n[t] === "visible")
2277
2277
  );
2278
+ }, ua = function(e) {
2279
+ return Rn(e, "overflowY");
2278
2280
  }, la = function(e) {
2279
- return _n(e, "overflowY");
2280
- }, da = function(e) {
2281
- return _n(e, "overflowX");
2282
- }, Bt = function(e, t) {
2281
+ return Rn(e, "overflowX");
2282
+ }, zt = function(e, t) {
2283
2283
  var n = t.ownerDocument, r = t;
2284
2284
  do {
2285
2285
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2286
- var o = On(e, r);
2286
+ var o = _n(e, r);
2287
2287
  if (o) {
2288
- var a = Nn(e, r), c = a[1], s = a[2];
2288
+ var a = On(e, r), c = a[1], s = a[2];
2289
2289
  if (c > s)
2290
2290
  return !0;
2291
2291
  }
2292
2292
  r = r.parentNode;
2293
2293
  } while (r && r !== n.body);
2294
2294
  return !1;
2295
- }, fa = function(e) {
2295
+ }, da = function(e) {
2296
2296
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2297
2297
  return [
2298
2298
  t,
2299
2299
  n,
2300
2300
  r
2301
2301
  ];
2302
- }, va = function(e) {
2302
+ }, fa = function(e) {
2303
2303
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2304
2304
  return [
2305
2305
  t,
2306
2306
  n,
2307
2307
  r
2308
2308
  ];
2309
+ }, _n = function(e, t) {
2310
+ return e === "v" ? ua(t) : la(t);
2309
2311
  }, On = function(e, t) {
2310
- return e === "v" ? la(t) : da(t);
2311
- }, Nn = function(e, t) {
2312
- return e === "v" ? fa(t) : va(t);
2313
- }, ma = function(e, t) {
2312
+ return e === "v" ? da(t) : fa(t);
2313
+ }, va = function(e, t) {
2314
2314
  return e === "h" && t === "rtl" ? -1 : 1;
2315
- }, pa = function(e, t, n, r, o) {
2316
- var a = ma(e, window.getComputedStyle(t).direction), c = a * r, s = n.target, m = t.contains(s), f = !1, l = c > 0, d = 0, h = 0;
2315
+ }, ma = function(e, t, n, r, o) {
2316
+ var a = va(e, window.getComputedStyle(t).direction), c = a * r, s = n.target, m = t.contains(s), f = !1, l = c > 0, d = 0, h = 0;
2317
2317
  do {
2318
2318
  if (!s)
2319
2319
  break;
2320
- var p = Nn(e, s), y = p[0], u = p[1], g = p[2], w = u - g - a * y;
2321
- (y || w) && On(e, s) && (d += w, h += y);
2320
+ var p = On(e, s), y = p[0], u = p[1], g = p[2], w = u - g - a * y;
2321
+ (y || w) && _n(e, s) && (d += w, h += y);
2322
2322
  var R = s.parentNode;
2323
2323
  s = R && R.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? R.host : R;
2324
2324
  } while (
@@ -2329,26 +2329,26 @@ var Z = Qe ? { passive: !1 } : !1, ua = function(e) {
2329
2329
  return (l && Math.abs(d) < 1 || !l && Math.abs(h) < 1) && (f = !0), f;
2330
2330
  }, he = function(e) {
2331
2331
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2332
- }, $t = function(e) {
2332
+ }, Bt = function(e) {
2333
2333
  return [e.deltaX, e.deltaY];
2334
- }, Gt = function(e) {
2334
+ }, $t = function(e) {
2335
2335
  return e && "current" in e ? e.current : e;
2336
- }, ha = function(e, t) {
2336
+ }, pa = function(e, t) {
2337
2337
  return e[0] === t[0] && e[1] === t[1];
2338
- }, ga = function(e) {
2338
+ }, ha = function(e) {
2339
2339
  return `
2340
2340
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2341
2341
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2342
2342
  `);
2343
- }, ya = 0, Q = [];
2344
- function Ea(e) {
2345
- var t = i.useRef([]), n = i.useRef([0, 0]), r = i.useRef(), o = i.useState(ya++)[0], a = i.useState(Rn)[0], c = i.useRef(e);
2343
+ }, ga = 0, Q = [];
2344
+ function ya(e) {
2345
+ var t = i.useRef([]), n = i.useRef([0, 0]), r = i.useRef(), o = i.useState(ga++)[0], a = i.useState(Sn)[0], c = i.useRef(e);
2346
2346
  i.useEffect(function() {
2347
2347
  c.current = e;
2348
2348
  }, [e]), i.useEffect(function() {
2349
2349
  if (e.inert) {
2350
2350
  document.body.classList.add("block-interactivity-".concat(o));
2351
- var u = Ko([e.lockRef.current], (e.shards || []).map(Gt), !0).filter(Boolean);
2351
+ var u = Wo([e.lockRef.current], (e.shards || []).map($t), !0).filter(Boolean);
2352
2352
  return u.forEach(function(g) {
2353
2353
  return g.classList.add("allow-interactivity-".concat(o));
2354
2354
  }), function() {
@@ -2367,34 +2367,34 @@ function Ea(e) {
2367
2367
  var T = window.getSelection(), O = T && T.anchorNode, P = O ? O === C || O.contains(C) : !1;
2368
2368
  if (P)
2369
2369
  return !1;
2370
- var L = Bt(_, C);
2370
+ var L = zt(_, C);
2371
2371
  if (!L)
2372
2372
  return !0;
2373
- if (L ? S = _ : (S = _ === "v" ? "h" : "v", L = Bt(_, C)), !L)
2373
+ if (L ? S = _ : (S = _ === "v" ? "h" : "v", L = zt(_, C)), !L)
2374
2374
  return !1;
2375
2375
  if (!r.current && "changedTouches" in u && (b || E) && (r.current = S), !S)
2376
2376
  return !0;
2377
2377
  var se = r.current || S;
2378
- return pa(se, g, u, se === "h" ? b : E);
2378
+ return ma(se, g, u, se === "h" ? b : E);
2379
2379
  }, []), m = i.useCallback(function(u) {
2380
2380
  var g = u;
2381
2381
  if (!(!Q.length || Q[Q.length - 1] !== a)) {
2382
- var w = "deltaY" in g ? $t(g) : he(g), R = t.current.filter(function(S) {
2383
- return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && ha(S.delta, w);
2382
+ var w = "deltaY" in g ? Bt(g) : he(g), R = t.current.filter(function(S) {
2383
+ return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && pa(S.delta, w);
2384
2384
  })[0];
2385
2385
  if (R && R.should) {
2386
2386
  g.cancelable && g.preventDefault();
2387
2387
  return;
2388
2388
  }
2389
2389
  if (!R) {
2390
- var b = (c.current.shards || []).map(Gt).filter(Boolean).filter(function(S) {
2390
+ var b = (c.current.shards || []).map($t).filter(Boolean).filter(function(S) {
2391
2391
  return S.contains(g.target);
2392
2392
  }), E = b.length > 0 ? s(g, b[0]) : !c.current.noIsolation;
2393
2393
  E && g.cancelable && g.preventDefault();
2394
2394
  }
2395
2395
  }
2396
2396
  }, []), f = i.useCallback(function(u, g, w, R) {
2397
- var b = { name: u, delta: g, target: w, should: R, shadowParent: ba(w) };
2397
+ var b = { name: u, delta: g, target: w, should: R, shadowParent: Ea(w) };
2398
2398
  t.current.push(b), setTimeout(function() {
2399
2399
  t.current = t.current.filter(function(E) {
2400
2400
  return E !== b;
@@ -2403,7 +2403,7 @@ function Ea(e) {
2403
2403
  }, []), l = i.useCallback(function(u) {
2404
2404
  n.current = he(u), r.current = void 0;
2405
2405
  }, []), d = i.useCallback(function(u) {
2406
- f(u.type, $t(u), u.target, s(u, e.lockRef.current));
2406
+ f(u.type, Bt(u), u.target, s(u, e.lockRef.current));
2407
2407
  }, []), h = i.useCallback(function(u) {
2408
2408
  f(u.type, he(u), u.target, s(u, e.lockRef.current));
2409
2409
  }, []);
@@ -2422,38 +2422,38 @@ function Ea(e) {
2422
2422
  return i.createElement(
2423
2423
  i.Fragment,
2424
2424
  null,
2425
- y ? i.createElement(a, { styles: ga(o) }) : null,
2426
- p ? i.createElement(ca, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2425
+ y ? i.createElement(a, { styles: ha(o) }) : null,
2426
+ p ? i.createElement(sa, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2427
2427
  );
2428
2428
  }
2429
- function ba(e) {
2429
+ function Ea(e) {
2430
2430
  for (var t = null; e !== null; )
2431
2431
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2432
2432
  return t;
2433
2433
  }
2434
- const wa = qo(Sn, Ea);
2435
- var Tn = i.forwardRef(function(e, t) {
2436
- return i.createElement(Te, z({}, e, { ref: t, sideCar: wa }));
2434
+ const ba = Yo(Cn, ya);
2435
+ var Nn = i.forwardRef(function(e, t) {
2436
+ return i.createElement(Te, z({}, e, { ref: t, sideCar: ba }));
2437
2437
  });
2438
- Tn.classNames = Te.classNames;
2439
- var Ca = function(e) {
2438
+ Nn.classNames = Te.classNames;
2439
+ var wa = function(e) {
2440
2440
  if (typeof document > "u")
2441
2441
  return null;
2442
2442
  var t = Array.isArray(e) ? e[0] : e;
2443
2443
  return t.ownerDocument.body;
2444
- }, J = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), ye = {}, $e = 0, xn = function(e) {
2445
- return e && (e.host || xn(e.parentNode));
2446
- }, Sa = function(e, t) {
2444
+ }, J = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), ye = {}, $e = 0, Tn = function(e) {
2445
+ return e && (e.host || Tn(e.parentNode));
2446
+ }, Ca = function(e, t) {
2447
2447
  return t.map(function(n) {
2448
2448
  if (e.contains(n))
2449
2449
  return n;
2450
- var r = xn(n);
2450
+ var r = Tn(n);
2451
2451
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2452
2452
  }).filter(function(n) {
2453
2453
  return !!n;
2454
2454
  });
2455
- }, Ra = function(e, t, n, r) {
2456
- var o = Sa(t, Array.isArray(e) ? e : [e]);
2455
+ }, Sa = function(e, t, n, r) {
2456
+ var o = Ca(t, Array.isArray(e) ? e : [e]);
2457
2457
  ye[n] || (ye[n] = /* @__PURE__ */ new WeakMap());
2458
2458
  var a = ye[n], c = [], s = /* @__PURE__ */ new Set(), m = new Set(o), f = function(d) {
2459
2459
  !d || s.has(d) || (s.add(d), f(d.parentNode));
@@ -2478,13 +2478,13 @@ var Ca = function(e) {
2478
2478
  J.set(d, h), a.set(d, p), h || (ge.has(d) || d.removeAttribute(r), ge.delete(d)), p || d.removeAttribute(n);
2479
2479
  }), $e--, $e || (J = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), ye = {});
2480
2480
  };
2481
- }, _a = function(e, t, n) {
2481
+ }, Ra = function(e, t, n) {
2482
2482
  n === void 0 && (n = "data-aria-hidden");
2483
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Ca(e);
2484
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ra(r, o, n, "aria-hidden")) : function() {
2483
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = wa(e);
2484
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Sa(r, o, n, "aria-hidden")) : function() {
2485
2485
  return null;
2486
2486
  };
2487
- }, xe = "Dialog", [Mn] = et(xe), [Oa, U] = Mn(xe), Pn = (e) => {
2487
+ }, xe = "Dialog", [xn] = et(xe), [_a, U] = xn(xe), Mn = (e) => {
2488
2488
  const {
2489
2489
  __scopeDialog: t,
2490
2490
  children: n,
@@ -2499,7 +2499,7 @@ var Ca = function(e) {
2499
2499
  caller: xe
2500
2500
  });
2501
2501
  return /* @__PURE__ */ v(
2502
- Oa,
2502
+ _a,
2503
2503
  {
2504
2504
  scope: t,
2505
2505
  triggerRef: s,
@@ -2515,10 +2515,10 @@ var Ca = function(e) {
2515
2515
  }
2516
2516
  );
2517
2517
  };
2518
- Pn.displayName = xe;
2519
- var In = "DialogTrigger", Dn = i.forwardRef(
2518
+ Mn.displayName = xe;
2519
+ var Pn = "DialogTrigger", In = i.forwardRef(
2520
2520
  (e, t) => {
2521
- const { __scopeDialog: n, ...r } = e, o = U(In, n), a = A(t, o.triggerRef);
2521
+ const { __scopeDialog: n, ...r } = e, o = U(Pn, n), a = D(t, o.triggerRef);
2522
2522
  return /* @__PURE__ */ v(
2523
2523
  M.button,
2524
2524
  {
@@ -2534,28 +2534,28 @@ var In = "DialogTrigger", Dn = i.forwardRef(
2534
2534
  );
2535
2535
  }
2536
2536
  );
2537
- Dn.displayName = In;
2538
- var ut = "DialogPortal", [Na, An] = Mn(ut, {
2537
+ In.displayName = Pn;
2538
+ var ut = "DialogPortal", [Oa, Dn] = xn(ut, {
2539
2539
  forceMount: void 0
2540
- }), Ln = (e) => {
2540
+ }), An = (e) => {
2541
2541
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = U(ut, t);
2542
- return /* @__PURE__ */ v(Na, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ v(H, { present: n || a.open, children: /* @__PURE__ */ v(bn, { asChild: !0, container: o, children: c }) })) });
2542
+ return /* @__PURE__ */ v(Oa, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ v(H, { present: n || a.open, children: /* @__PURE__ */ v(En, { asChild: !0, container: o, children: c }) })) });
2543
2543
  };
2544
- Ln.displayName = ut;
2545
- var Ne = "DialogOverlay", kn = i.forwardRef(
2544
+ An.displayName = ut;
2545
+ var Ne = "DialogOverlay", Ln = i.forwardRef(
2546
2546
  (e, t) => {
2547
- const n = An(Ne, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = U(Ne, e.__scopeDialog);
2548
- return a.modal ? /* @__PURE__ */ v(H, { present: r || a.open, children: /* @__PURE__ */ v(xa, { ...o, ref: t }) }) : null;
2547
+ const n = Dn(Ne, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = U(Ne, e.__scopeDialog);
2548
+ return a.modal ? /* @__PURE__ */ v(H, { present: r || a.open, children: /* @__PURE__ */ v(Ta, { ...o, ref: t }) }) : null;
2549
2549
  }
2550
2550
  );
2551
- kn.displayName = Ne;
2552
- var Ta = Se("DialogOverlay.RemoveScroll"), xa = i.forwardRef(
2551
+ Ln.displayName = Ne;
2552
+ var Na = Se("DialogOverlay.RemoveScroll"), Ta = i.forwardRef(
2553
2553
  (e, t) => {
2554
2554
  const { __scopeDialog: n, ...r } = e, o = U(Ne, n);
2555
2555
  return (
2556
2556
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2557
2557
  // ie. when `Overlay` and `Content` are siblings
2558
- /* @__PURE__ */ v(Tn, { as: Ta, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
2558
+ /* @__PURE__ */ v(Nn, { as: Na, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
2559
2559
  M.div,
2560
2560
  {
2561
2561
  "data-state": dt(o.open),
@@ -2566,21 +2566,21 @@ var Ta = Se("DialogOverlay.RemoveScroll"), xa = i.forwardRef(
2566
2566
  ) })
2567
2567
  );
2568
2568
  }
2569
- ), Y = "DialogContent", Fn = i.forwardRef(
2569
+ ), Y = "DialogContent", kn = i.forwardRef(
2570
2570
  (e, t) => {
2571
- const n = An(Y, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = U(Y, e.__scopeDialog);
2572
- return /* @__PURE__ */ v(H, { present: r || a.open, children: a.modal ? /* @__PURE__ */ v(Ma, { ...o, ref: t }) : /* @__PURE__ */ v(Pa, { ...o, ref: t }) });
2571
+ const n = Dn(Y, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = U(Y, e.__scopeDialog);
2572
+ return /* @__PURE__ */ v(H, { present: r || a.open, children: a.modal ? /* @__PURE__ */ v(xa, { ...o, ref: t }) : /* @__PURE__ */ v(Ma, { ...o, ref: t }) });
2573
2573
  }
2574
2574
  );
2575
- Fn.displayName = Y;
2576
- var Ma = i.forwardRef(
2575
+ kn.displayName = Y;
2576
+ var xa = i.forwardRef(
2577
2577
  (e, t) => {
2578
- const n = U(Y, e.__scopeDialog), r = i.useRef(null), o = A(t, n.contentRef, r);
2578
+ const n = U(Y, e.__scopeDialog), r = i.useRef(null), o = D(t, n.contentRef, r);
2579
2579
  return i.useEffect(() => {
2580
2580
  const a = r.current;
2581
- if (a) return _a(a);
2581
+ if (a) return Ra(a);
2582
2582
  }, []), /* @__PURE__ */ v(
2583
- Vn,
2583
+ Fn,
2584
2584
  {
2585
2585
  ...e,
2586
2586
  ref: o,
@@ -2600,11 +2600,11 @@ var Ma = i.forwardRef(
2600
2600
  }
2601
2601
  );
2602
2602
  }
2603
- ), Pa = i.forwardRef(
2603
+ ), Ma = i.forwardRef(
2604
2604
  (e, t) => {
2605
2605
  const n = U(Y, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
2606
2606
  return /* @__PURE__ */ v(
2607
- Vn,
2607
+ Fn,
2608
2608
  {
2609
2609
  ...e,
2610
2610
  ref: t,
@@ -2621,12 +2621,12 @@ var Ma = i.forwardRef(
2621
2621
  }
2622
2622
  );
2623
2623
  }
2624
- ), Vn = i.forwardRef(
2624
+ ), Fn = i.forwardRef(
2625
2625
  (e, t) => {
2626
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, s = U(Y, n), m = i.useRef(null), f = A(t, m);
2627
- return Wo(), /* @__PURE__ */ D(ie, { children: [
2626
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, s = U(Y, n), m = i.useRef(null), f = D(t, m);
2627
+ return Vo(), /* @__PURE__ */ A(ie, { children: [
2628
2628
  /* @__PURE__ */ v(
2629
- yn,
2629
+ gn,
2630
2630
  {
2631
2631
  asChild: !0,
2632
2632
  loop: !0,
@@ -2648,29 +2648,29 @@ var Ma = i.forwardRef(
2648
2648
  )
2649
2649
  }
2650
2650
  ),
2651
- /* @__PURE__ */ D(ie, { children: [
2652
- /* @__PURE__ */ v(Aa, { titleId: s.titleId }),
2653
- /* @__PURE__ */ v(ka, { contentRef: m, descriptionId: s.descriptionId })
2651
+ /* @__PURE__ */ A(ie, { children: [
2652
+ /* @__PURE__ */ v(Da, { titleId: s.titleId }),
2653
+ /* @__PURE__ */ v(La, { contentRef: m, descriptionId: s.descriptionId })
2654
2654
  ] })
2655
2655
  ] });
2656
2656
  }
2657
- ), lt = "DialogTitle", Ia = i.forwardRef(
2657
+ ), lt = "DialogTitle", Pa = i.forwardRef(
2658
2658
  (e, t) => {
2659
2659
  const { __scopeDialog: n, ...r } = e, o = U(lt, n);
2660
2660
  return /* @__PURE__ */ v(M.h2, { id: o.titleId, ...r, ref: t });
2661
2661
  }
2662
2662
  );
2663
- Ia.displayName = lt;
2664
- var Wn = "DialogDescription", Da = i.forwardRef(
2663
+ Pa.displayName = lt;
2664
+ var Vn = "DialogDescription", Ia = i.forwardRef(
2665
2665
  (e, t) => {
2666
- const { __scopeDialog: n, ...r } = e, o = U(Wn, n);
2666
+ const { __scopeDialog: n, ...r } = e, o = U(Vn, n);
2667
2667
  return /* @__PURE__ */ v(M.p, { id: o.descriptionId, ...r, ref: t });
2668
2668
  }
2669
2669
  );
2670
- Da.displayName = Wn;
2671
- var Kn = "DialogClose", Un = i.forwardRef(
2670
+ Ia.displayName = Vn;
2671
+ var Wn = "DialogClose", Kn = i.forwardRef(
2672
2672
  (e, t) => {
2673
- const { __scopeDialog: n, ...r } = e, o = U(Kn, n);
2673
+ const { __scopeDialog: n, ...r } = e, o = U(Wn, n);
2674
2674
  return /* @__PURE__ */ v(
2675
2675
  M.button,
2676
2676
  {
@@ -2682,16 +2682,16 @@ var Kn = "DialogClose", Un = i.forwardRef(
2682
2682
  );
2683
2683
  }
2684
2684
  );
2685
- Un.displayName = Kn;
2685
+ Kn.displayName = Wn;
2686
2686
  function dt(e) {
2687
2687
  return e ? "open" : "closed";
2688
2688
  }
2689
- var zn = "DialogTitleWarning", [fi, Bn] = Mr(zn, {
2689
+ var Un = "DialogTitleWarning", [fi, zn] = xr(Un, {
2690
2690
  contentName: Y,
2691
2691
  titleName: lt,
2692
2692
  docsSlug: "dialog"
2693
- }), Aa = ({ titleId: e }) => {
2694
- const t = Bn(zn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2693
+ }), Da = ({ titleId: e }) => {
2694
+ const t = zn(Un), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2695
2695
 
2696
2696
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2697
2697
 
@@ -2699,32 +2699,32 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2699
2699
  return i.useEffect(() => {
2700
2700
  e && (document.getElementById(e) || console.error(n));
2701
2701
  }, [n, e]), null;
2702
- }, La = "DialogDescriptionWarning", ka = ({ contentRef: e, descriptionId: t }) => {
2703
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bn(La).contentName}}.`;
2702
+ }, Aa = "DialogDescriptionWarning", La = ({ contentRef: e, descriptionId: t }) => {
2703
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zn(Aa).contentName}}.`;
2704
2704
  return i.useEffect(() => {
2705
2705
  const o = e.current?.getAttribute("aria-describedby");
2706
2706
  t && o && (document.getElementById(t) || console.warn(r));
2707
2707
  }, [r, e, t]), null;
2708
- }, Fa = Pn, Va = Dn, Wa = Ln, Ka = kn, Ua = Fn, za = Un;
2709
- function Ba({ ...e }) {
2710
- return /* @__PURE__ */ v(Fa, { "data-slot": "sheet", ...e });
2708
+ }, ka = Mn, Fa = In, Va = An, Wa = Ln, Ka = kn, Ua = Kn;
2709
+ function za({ ...e }) {
2710
+ return /* @__PURE__ */ v(ka, { "data-slot": "sheet", ...e });
2711
2711
  }
2712
- function $a({
2712
+ function Ba({
2713
2713
  ...e
2714
2714
  }) {
2715
- return /* @__PURE__ */ v(Va, { "data-slot": "sheet-trigger", ...e });
2715
+ return /* @__PURE__ */ v(Fa, { "data-slot": "sheet-trigger", ...e });
2716
2716
  }
2717
- function Ga({
2717
+ function $a({
2718
2718
  ...e
2719
2719
  }) {
2720
- return /* @__PURE__ */ v(Wa, { "data-slot": "sheet-portal", ...e });
2720
+ return /* @__PURE__ */ v(Va, { "data-slot": "sheet-portal", ...e });
2721
2721
  }
2722
- function Ha({
2722
+ function Ga({
2723
2723
  className: e,
2724
2724
  ...t
2725
2725
  }) {
2726
2726
  return /* @__PURE__ */ v(
2727
- Ka,
2727
+ Wa,
2728
2728
  {
2729
2729
  "data-slot": "sheet-overlay",
2730
2730
  className: F(
@@ -2735,16 +2735,16 @@ function Ha({
2735
2735
  }
2736
2736
  );
2737
2737
  }
2738
- function ja({
2738
+ function Ha({
2739
2739
  className: e,
2740
2740
  children: t,
2741
2741
  side: n = "right",
2742
2742
  ...r
2743
2743
  }) {
2744
- return /* @__PURE__ */ D(Ga, { children: [
2745
- /* @__PURE__ */ v(Ha, {}),
2746
- /* @__PURE__ */ D(
2747
- Ua,
2744
+ return /* @__PURE__ */ A($a, { children: [
2745
+ /* @__PURE__ */ v(Ga, {}),
2746
+ /* @__PURE__ */ A(
2747
+ Ka,
2748
2748
  {
2749
2749
  "data-slot": "sheet-content",
2750
2750
  className: F(
@@ -2758,8 +2758,8 @@ function ja({
2758
2758
  ...r,
2759
2759
  children: [
2760
2760
  t,
2761
- /* @__PURE__ */ D(za, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
2762
- /* @__PURE__ */ v(rr, { className: "size-4" }),
2761
+ /* @__PURE__ */ A(Ua, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
2762
+ /* @__PURE__ */ v(nr, { className: "size-4" }),
2763
2763
  /* @__PURE__ */ v("span", { className: "sr-only", children: "Close" })
2764
2764
  ] })
2765
2765
  ]
@@ -2772,21 +2772,21 @@ const vi = ({
2772
2772
  LinkComponent: t = "a",
2773
2773
  className: n,
2774
2774
  ...r
2775
- }) => /* @__PURE__ */ D("header", { className: F(n), ...r, children: [
2776
- /* @__PURE__ */ v("nav", { className: "hidden sm:flex sticky top-0 z-10 items-center px-4 h-14", children: /* @__PURE__ */ v(_o, { children: /* @__PURE__ */ v(Oo, { children: e.map((o) => /* @__PURE__ */ v(No, { children: /* @__PURE__ */ v(
2777
- Mo,
2775
+ }) => /* @__PURE__ */ A("header", { className: F(n), ...r, children: [
2776
+ /* @__PURE__ */ v("nav", { className: "hidden sm:flex sticky top-0 z-10 items-center px-4 h-14", children: /* @__PURE__ */ v(Ro, { children: /* @__PURE__ */ v(_o, { children: e.map((o) => /* @__PURE__ */ v(Oo, { children: /* @__PURE__ */ v(
2777
+ xo,
2778
2778
  {
2779
2779
  asChild: !0,
2780
- className: To(),
2781
- children: /* @__PURE__ */ D(t, { to: o.url, className: "flex items-center", children: [
2780
+ className: No(),
2781
+ children: /* @__PURE__ */ A(t, { to: o.url, className: "flex items-center", children: [
2782
2782
  o.icon && /* @__PURE__ */ v(o.icon, {}),
2783
2783
  /* @__PURE__ */ v("span", { children: o.title })
2784
2784
  ] })
2785
2785
  }
2786
2786
  ) }, o.title)) }) }) }),
2787
- /* @__PURE__ */ v("nav", { className: "flex sm:hidden", children: /* @__PURE__ */ D(Ba, { children: [
2788
- /* @__PURE__ */ v($a, { asChild: !0, children: /* @__PURE__ */ v(Je, { variant: "ghost", size: "icon", children: /* @__PURE__ */ v(or, {}) }) }),
2789
- /* @__PURE__ */ v(ja, { side: "top", className: "p-8", children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4", children: e.map((o) => /* @__PURE__ */ D(
2787
+ /* @__PURE__ */ v("nav", { className: "flex sm:hidden", children: /* @__PURE__ */ A(za, { children: [
2788
+ /* @__PURE__ */ v(Ba, { asChild: !0, children: /* @__PURE__ */ v(Je, { variant: "ghost", size: "icon", children: /* @__PURE__ */ v(rr, {}) }) }),
2789
+ /* @__PURE__ */ v(Ha, { side: "top", className: "p-8", children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4", children: e.map((o) => /* @__PURE__ */ A(
2790
2790
  t,
2791
2791
  {
2792
2792
  to: o.url,
@@ -2805,28 +2805,27 @@ const vi = ({
2805
2805
  socialProfiles: n,
2806
2806
  className: r,
2807
2807
  ...o
2808
- }) => /* @__PURE__ */ v("footer", { className: F(r), ...o, children: /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center gap-5 bg-background py-8 border-t", children: [
2808
+ }) => /* @__PURE__ */ v("footer", { className: F(r), ...o, children: /* @__PURE__ */ A("div", { className: "flex flex-col items-center justify-center gap-5 bg-background py-8 border-t", children: [
2809
2809
  /* @__PURE__ */ v("div", { className: "flex justify-center gap-5 sm:gap-8 xl:gap-13", children: n.map((a) => /* @__PURE__ */ v(
2810
2810
  Je,
2811
2811
  {
2812
2812
  variant: "secondary",
2813
2813
  size: "icon",
2814
2814
  className: "rounded-xl",
2815
- children: /* @__PURE__ */ v(Mt, { to: a.url, children: a.icon && /* @__PURE__ */ v(a.icon, {}) })
2815
+ children: /* @__PURE__ */ v("a", { href: a.url, children: a.icon && /* @__PURE__ */ v(a.icon, {}) })
2816
2816
  },
2817
2817
  a.title
2818
2818
  )) }),
2819
- /* @__PURE__ */ v("div", { className: "flex justify-center gap-5 sm:gap-8 xl:gap-13", children: e.map((a) => /* @__PURE__ */ v(Mt, { to: a.url, children: a.title }, a.title)) }),
2820
- /* @__PURE__ */ D("div", { className: "text-muted", children: [
2821
- t,
2822
- " ",
2823
- (/* @__PURE__ */ new Date()).getFullYear()
2824
- ] })
2819
+ /* @__PURE__ */ v("div", { className: "flex justify-center gap-5 sm:gap-8 xl:gap-13", children: e.map((a) => {
2820
+ const c = a.url;
2821
+ return /* @__PURE__ */ v("a", { href: c, children: a.title }, a.title);
2822
+ }) }),
2823
+ /* @__PURE__ */ v("div", { className: "text-muted", children: t })
2825
2824
  ] }) });
2826
2825
  export {
2827
2826
  di as CustomButton,
2828
2827
  mi as Footer,
2829
- Mt as Link,
2828
+ li as Link,
2830
2829
  vi as MainNav,
2831
2830
  F as cn
2832
2831
  };