@ah-automation.nl/component-lib 0.0.17 → 0.0.18

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,6 +1,6 @@
1
- import { jsx as h, jsxs as G, Fragment as yn } from "react/jsx-runtime";
1
+ import { jsx as h, jsxs as W, Fragment as yn } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import D, { forwardRef as qr, createElement as Cn, useState as At, useMemo as Ki, useLayoutEffect as Xi, useEffect as Yi, useRef as Zi } from "react";
3
+ import P, { forwardRef as qr, createElement as Cn, useState as At, useMemo as Ki, useLayoutEffect as Xi, useEffect as Yi, useRef as Zi } from "react";
4
4
  import { Slot as Tn, Collapsible as zn, Dialog as Ge, Select as he, Popover as Vt, Checkbox as ir } from "radix-ui";
5
5
  import * as Ji from "react-dom";
6
6
  import Qi, { flushSync as ea } from "react-dom";
@@ -268,26 +268,26 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
268
268
  l = c + (l.length > 0 ? " " + l : l);
269
269
  continue;
270
270
  }
271
- let S = !!p, b = r(S ? v.substring(0, p) : v);
272
- if (!b) {
271
+ let S = !!p, w = r(S ? v.substring(0, p) : v);
272
+ if (!w) {
273
273
  if (!S) {
274
274
  l = c + (l.length > 0 ? " " + l : l);
275
275
  continue;
276
276
  }
277
- if (b = r(v), !b) {
277
+ if (w = r(v), !w) {
278
278
  l = c + (l.length > 0 ? " " + l : l);
279
279
  continue;
280
280
  }
281
281
  S = !1;
282
282
  }
283
- const C = d.length === 0 ? "" : d.length === 1 ? d[0] : i(d).join(":"), w = f ? C + xn : C, y = w + b;
284
- if (a.indexOf(y) > -1)
283
+ const x = d.length === 0 ? "" : d.length === 1 ? d[0] : i(d).join(":"), y = f ? x + xn : x, b = y + w;
284
+ if (a.indexOf(b) > -1)
285
285
  continue;
286
- a.push(y);
287
- const _ = o(b, S);
288
- for (let F = 0; F < _.length; ++F) {
289
- const x = _[F];
290
- a.push(w + x);
286
+ a.push(b);
287
+ const _ = o(w, S);
288
+ for (let k = 0; k < _.length; ++k) {
289
+ const R = _[k];
290
+ a.push(y + R);
291
291
  }
292
292
  l = c + (l.length > 0 ? " " + l : l);
293
293
  }
@@ -325,14 +325,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
325
325
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
326
326
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
327
327
  Ea.test(e) && !_a.test(e)
328
- ), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e), Pa = (e) => !P(e) && !N(e), Na = (e) => $e(e, io, Hn), P = (e) => eo.test(e), He = (e) => $e(e, ao, ka), dr = (e) => $e(e, Ha, q), Oa = (e) => $e(e, lo, no), Aa = (e) => $e(e, so, Hn), fr = (e) => $e(e, ro, Hn), $a = (e) => $e(e, oo, Da), xt = (e) => $e(e, uo, Fa), N = (e) => to.test(e), lt = (e) => qe(e, ao), Ta = (e) => qe(e, so), gr = (e) => qe(e, ro), za = (e) => qe(e, io), Va = (e) => qe(e, oo), Rt = (e) => qe(e, uo, !0), La = (e) => qe(e, lo, !0), $e = (e, n, t) => {
328
+ ), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e), Pa = (e) => !N(e) && !O(e), Na = (e) => $e(e, io, Hn), N = (e) => eo.test(e), He = (e) => $e(e, ao, ka), dr = (e) => $e(e, Ha, q), Oa = (e) => $e(e, lo, no), Aa = (e) => $e(e, so, Hn), fr = (e) => $e(e, ro, Hn), $a = (e) => $e(e, oo, Da), xt = (e) => $e(e, uo, Fa), O = (e) => to.test(e), lt = (e) => qe(e, ao), Ta = (e) => qe(e, so), gr = (e) => qe(e, ro), za = (e) => qe(e, io), Va = (e) => qe(e, oo), Rt = (e) => qe(e, uo, !0), La = (e) => qe(e, lo, !0), $e = (e, n, t) => {
329
329
  const r = eo.exec(e);
330
330
  return r ? r[1] ? n(r[1]) : t(r[2]) : !1;
331
331
  }, qe = (e, n, t = !1) => {
332
332
  const r = to.exec(e);
333
333
  return r ? r[1] ? n(r[1]) : t : !1;
334
334
  }, ro = (e) => e === "position" || e === "percentage", oo = (e) => e === "image" || e === "url", io = (e) => e === "length" || e === "size" || e === "bg-size", ao = (e) => e === "length", Ha = (e) => e === "number", so = (e) => e === "family-name", lo = (e) => e === "number" || e === "weight", uo = (e) => e === "shadow", Ba = () => {
335
- const e = se("color"), n = se("font"), t = se("text"), r = se("font-weight"), o = se("tracking"), i = se("leading"), a = se("breakpoint"), s = se("container"), l = se("spacing"), u = se("radius"), c = se("shadow"), m = se("inset-shadow"), d = se("text-shadow"), f = se("drop-shadow"), v = se("blur"), p = se("perspective"), S = se("aspect"), b = se("ease"), C = se("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
335
+ const e = se("color"), n = se("font"), t = se("text"), r = se("font-weight"), o = se("tracking"), i = se("leading"), a = se("breakpoint"), s = se("container"), l = se("spacing"), u = se("radius"), c = se("shadow"), m = se("inset-shadow"), d = se("text-shadow"), f = se("drop-shadow"), v = se("blur"), p = se("perspective"), S = se("aspect"), w = se("ease"), x = se("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
336
336
  "center",
337
337
  "top",
338
338
  "bottom",
@@ -350,30 +350,30 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
350
350
  "bottom-left",
351
351
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
352
352
  "left-bottom"
353
- ], _ = () => [...y(), N, P], F = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], E = () => [N, P, l], R = () => [ke, "full", "auto", ...E()], $ = () => [Fe, "none", "subgrid", N, P], z = () => ["auto", {
354
- span: ["full", Fe, N, P]
355
- }, Fe, N, P], W = () => [Fe, "auto", N, P], A = () => ["auto", "min", "max", "fr", N, P], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...E()], ee = () => [ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], ce = () => [ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], fe = () => [ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], O = () => [e, N, P], ze = () => [...y(), gr, fr, {
356
- position: [N, P]
353
+ ], _ = () => [...b(), O, N], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [O, N, l], E = () => [ke, "full", "auto", ...C()], I = () => [Fe, "none", "subgrid", O, N], T = () => ["auto", {
354
+ span: ["full", Fe, O, N]
355
+ }, Fe, O, N], H = () => [Fe, "auto", O, N], $ = () => ["auto", "min", "max", "fr", O, N], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...C()], ee = () => [ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], ce = () => [ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], fe = () => [ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], A = () => [e, O, N], ze = () => [...b(), gr, fr, {
356
+ position: [O, N]
357
357
  }], M = () => ["no-repeat", {
358
358
  repeat: ["", "x", "y", "space", "round"]
359
- }], T = () => ["auto", "cover", "contain", za, Na, {
360
- size: [N, P]
361
- }], U = () => [Xt, lt, He], k = () => [
359
+ }], z = () => ["auto", "cover", "contain", za, Na, {
360
+ size: [O, N]
361
+ }], U = () => [Xt, lt, He], D = () => [
362
362
  // Deprecated since Tailwind CSS v4.0.0
363
363
  "",
364
364
  "none",
365
365
  "full",
366
366
  u,
367
- N,
368
- P
369
- ], H = () => ["", q, lt, He], X = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [q, Xt, gr, fr], ve = () => [
367
+ O,
368
+ N
369
+ ], B = () => ["", q, lt, He], X = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [q, Xt, gr, fr], ve = () => [
370
370
  // Deprecated since Tailwind CSS v4.0.0
371
371
  "",
372
372
  "none",
373
373
  v,
374
- N,
375
- P
376
- ], be = () => ["none", q, N, P], Ve = () => ["none", q, N, P], Xe = () => [q, N, P], j = () => [ke, "full", ...E()];
374
+ O,
375
+ N
376
+ ], be = () => ["none", q, O, N], Ve = () => ["none", q, O, N], Xe = () => [q, O, N], j = () => [ke, "full", ...C()];
377
377
  return {
378
378
  cacheSize: 500,
379
379
  theme: {
@@ -406,7 +406,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
406
406
  * @see https://tailwindcss.com/docs/aspect-ratio
407
407
  */
408
408
  aspect: [{
409
- aspect: ["auto", "square", ke, P, N, S]
409
+ aspect: ["auto", "square", ke, N, O, S]
410
410
  }],
411
411
  /**
412
412
  * Container
@@ -419,21 +419,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
419
419
  * @see https://tailwindcss.com/docs/columns
420
420
  */
421
421
  columns: [{
422
- columns: [q, P, N, s]
422
+ columns: [q, N, O, s]
423
423
  }],
424
424
  /**
425
425
  * Break After
426
426
  * @see https://tailwindcss.com/docs/break-after
427
427
  */
428
428
  "break-after": [{
429
- "break-after": w()
429
+ "break-after": y()
430
430
  }],
431
431
  /**
432
432
  * Break Before
433
433
  * @see https://tailwindcss.com/docs/break-before
434
434
  */
435
435
  "break-before": [{
436
- "break-before": w()
436
+ "break-before": y()
437
437
  }],
438
438
  /**
439
439
  * Break Inside
@@ -504,42 +504,42 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
504
504
  * @see https://tailwindcss.com/docs/overflow
505
505
  */
506
506
  overflow: [{
507
- overflow: F()
507
+ overflow: k()
508
508
  }],
509
509
  /**
510
510
  * Overflow X
511
511
  * @see https://tailwindcss.com/docs/overflow
512
512
  */
513
513
  "overflow-x": [{
514
- "overflow-x": F()
514
+ "overflow-x": k()
515
515
  }],
516
516
  /**
517
517
  * Overflow Y
518
518
  * @see https://tailwindcss.com/docs/overflow
519
519
  */
520
520
  "overflow-y": [{
521
- "overflow-y": F()
521
+ "overflow-y": k()
522
522
  }],
523
523
  /**
524
524
  * Overscroll Behavior
525
525
  * @see https://tailwindcss.com/docs/overscroll-behavior
526
526
  */
527
527
  overscroll: [{
528
- overscroll: x()
528
+ overscroll: R()
529
529
  }],
530
530
  /**
531
531
  * Overscroll Behavior X
532
532
  * @see https://tailwindcss.com/docs/overscroll-behavior
533
533
  */
534
534
  "overscroll-x": [{
535
- "overscroll-x": x()
535
+ "overscroll-x": R()
536
536
  }],
537
537
  /**
538
538
  * Overscroll Behavior Y
539
539
  * @see https://tailwindcss.com/docs/overscroll-behavior
540
540
  */
541
541
  "overscroll-y": [{
542
- "overscroll-y": x()
542
+ "overscroll-y": R()
543
543
  }],
544
544
  /**
545
545
  * Position
@@ -551,21 +551,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
551
551
  * @see https://tailwindcss.com/docs/top-right-bottom-left
552
552
  */
553
553
  inset: [{
554
- inset: R()
554
+ inset: E()
555
555
  }],
556
556
  /**
557
557
  * Inset Inline
558
558
  * @see https://tailwindcss.com/docs/top-right-bottom-left
559
559
  */
560
560
  "inset-x": [{
561
- "inset-x": R()
561
+ "inset-x": E()
562
562
  }],
563
563
  /**
564
564
  * Inset Block
565
565
  * @see https://tailwindcss.com/docs/top-right-bottom-left
566
566
  */
567
567
  "inset-y": [{
568
- "inset-y": R()
568
+ "inset-y": E()
569
569
  }],
570
570
  /**
571
571
  * Inset Inline Start
@@ -573,12 +573,12 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
573
573
  * @todo class group will be renamed to `inset-s` in next major release
574
574
  */
575
575
  start: [{
576
- "inset-s": R(),
576
+ "inset-s": E(),
577
577
  /**
578
578
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
579
579
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
580
580
  */
581
- start: R()
581
+ start: E()
582
582
  }],
583
583
  /**
584
584
  * Inset Inline End
@@ -586,54 +586,54 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
586
586
  * @todo class group will be renamed to `inset-e` in next major release
587
587
  */
588
588
  end: [{
589
- "inset-e": R(),
589
+ "inset-e": E(),
590
590
  /**
591
591
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
592
592
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
593
593
  */
594
- end: R()
594
+ end: E()
595
595
  }],
596
596
  /**
597
597
  * Inset Block Start
598
598
  * @see https://tailwindcss.com/docs/top-right-bottom-left
599
599
  */
600
600
  "inset-bs": [{
601
- "inset-bs": R()
601
+ "inset-bs": E()
602
602
  }],
603
603
  /**
604
604
  * Inset Block End
605
605
  * @see https://tailwindcss.com/docs/top-right-bottom-left
606
606
  */
607
607
  "inset-be": [{
608
- "inset-be": R()
608
+ "inset-be": E()
609
609
  }],
610
610
  /**
611
611
  * Top
612
612
  * @see https://tailwindcss.com/docs/top-right-bottom-left
613
613
  */
614
614
  top: [{
615
- top: R()
615
+ top: E()
616
616
  }],
617
617
  /**
618
618
  * Right
619
619
  * @see https://tailwindcss.com/docs/top-right-bottom-left
620
620
  */
621
621
  right: [{
622
- right: R()
622
+ right: E()
623
623
  }],
624
624
  /**
625
625
  * Bottom
626
626
  * @see https://tailwindcss.com/docs/top-right-bottom-left
627
627
  */
628
628
  bottom: [{
629
- bottom: R()
629
+ bottom: E()
630
630
  }],
631
631
  /**
632
632
  * Left
633
633
  * @see https://tailwindcss.com/docs/top-right-bottom-left
634
634
  */
635
635
  left: [{
636
- left: R()
636
+ left: E()
637
637
  }],
638
638
  /**
639
639
  * Visibility
@@ -645,7 +645,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
645
645
  * @see https://tailwindcss.com/docs/z-index
646
646
  */
647
647
  z: [{
648
- z: [Fe, "auto", N, P]
648
+ z: [Fe, "auto", O, N]
649
649
  }],
650
650
  // ------------------------
651
651
  // --- Flexbox and Grid ---
@@ -655,7 +655,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
655
655
  * @see https://tailwindcss.com/docs/flex-basis
656
656
  */
657
657
  basis: [{
658
- basis: [ke, "full", "auto", s, ...E()]
658
+ basis: [ke, "full", "auto", s, ...C()]
659
659
  }],
660
660
  /**
661
661
  * Flex Direction
@@ -676,84 +676,84 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
676
676
  * @see https://tailwindcss.com/docs/flex
677
677
  */
678
678
  flex: [{
679
- flex: [q, ke, "auto", "initial", "none", P]
679
+ flex: [q, ke, "auto", "initial", "none", N]
680
680
  }],
681
681
  /**
682
682
  * Flex Grow
683
683
  * @see https://tailwindcss.com/docs/flex-grow
684
684
  */
685
685
  grow: [{
686
- grow: ["", q, N, P]
686
+ grow: ["", q, O, N]
687
687
  }],
688
688
  /**
689
689
  * Flex Shrink
690
690
  * @see https://tailwindcss.com/docs/flex-shrink
691
691
  */
692
692
  shrink: [{
693
- shrink: ["", q, N, P]
693
+ shrink: ["", q, O, N]
694
694
  }],
695
695
  /**
696
696
  * Order
697
697
  * @see https://tailwindcss.com/docs/order
698
698
  */
699
699
  order: [{
700
- order: [Fe, "first", "last", "none", N, P]
700
+ order: [Fe, "first", "last", "none", O, N]
701
701
  }],
702
702
  /**
703
703
  * Grid Template Columns
704
704
  * @see https://tailwindcss.com/docs/grid-template-columns
705
705
  */
706
706
  "grid-cols": [{
707
- "grid-cols": $()
707
+ "grid-cols": I()
708
708
  }],
709
709
  /**
710
710
  * Grid Column Start / End
711
711
  * @see https://tailwindcss.com/docs/grid-column
712
712
  */
713
713
  "col-start-end": [{
714
- col: z()
714
+ col: T()
715
715
  }],
716
716
  /**
717
717
  * Grid Column Start
718
718
  * @see https://tailwindcss.com/docs/grid-column
719
719
  */
720
720
  "col-start": [{
721
- "col-start": W()
721
+ "col-start": H()
722
722
  }],
723
723
  /**
724
724
  * Grid Column End
725
725
  * @see https://tailwindcss.com/docs/grid-column
726
726
  */
727
727
  "col-end": [{
728
- "col-end": W()
728
+ "col-end": H()
729
729
  }],
730
730
  /**
731
731
  * Grid Template Rows
732
732
  * @see https://tailwindcss.com/docs/grid-template-rows
733
733
  */
734
734
  "grid-rows": [{
735
- "grid-rows": $()
735
+ "grid-rows": I()
736
736
  }],
737
737
  /**
738
738
  * Grid Row Start / End
739
739
  * @see https://tailwindcss.com/docs/grid-row
740
740
  */
741
741
  "row-start-end": [{
742
- row: z()
742
+ row: T()
743
743
  }],
744
744
  /**
745
745
  * Grid Row Start
746
746
  * @see https://tailwindcss.com/docs/grid-row
747
747
  */
748
748
  "row-start": [{
749
- "row-start": W()
749
+ "row-start": H()
750
750
  }],
751
751
  /**
752
752
  * Grid Row End
753
753
  * @see https://tailwindcss.com/docs/grid-row
754
754
  */
755
755
  "row-end": [{
756
- "row-end": W()
756
+ "row-end": H()
757
757
  }],
758
758
  /**
759
759
  * Grid Auto Flow
@@ -767,35 +767,35 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
767
767
  * @see https://tailwindcss.com/docs/grid-auto-columns
768
768
  */
769
769
  "auto-cols": [{
770
- "auto-cols": A()
770
+ "auto-cols": $()
771
771
  }],
772
772
  /**
773
773
  * Grid Auto Rows
774
774
  * @see https://tailwindcss.com/docs/grid-auto-rows
775
775
  */
776
776
  "auto-rows": [{
777
- "auto-rows": A()
777
+ "auto-rows": $()
778
778
  }],
779
779
  /**
780
780
  * Gap
781
781
  * @see https://tailwindcss.com/docs/gap
782
782
  */
783
783
  gap: [{
784
- gap: E()
784
+ gap: C()
785
785
  }],
786
786
  /**
787
787
  * Gap X
788
788
  * @see https://tailwindcss.com/docs/gap
789
789
  */
790
790
  "gap-x": [{
791
- "gap-x": E()
791
+ "gap-x": C()
792
792
  }],
793
793
  /**
794
794
  * Gap Y
795
795
  * @see https://tailwindcss.com/docs/gap
796
796
  */
797
797
  "gap-y": [{
798
- "gap-y": E()
798
+ "gap-y": C()
799
799
  }],
800
800
  /**
801
801
  * Justify Content
@@ -870,77 +870,77 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
870
870
  * @see https://tailwindcss.com/docs/padding
871
871
  */
872
872
  p: [{
873
- p: E()
873
+ p: C()
874
874
  }],
875
875
  /**
876
876
  * Padding Inline
877
877
  * @see https://tailwindcss.com/docs/padding
878
878
  */
879
879
  px: [{
880
- px: E()
880
+ px: C()
881
881
  }],
882
882
  /**
883
883
  * Padding Block
884
884
  * @see https://tailwindcss.com/docs/padding
885
885
  */
886
886
  py: [{
887
- py: E()
887
+ py: C()
888
888
  }],
889
889
  /**
890
890
  * Padding Inline Start
891
891
  * @see https://tailwindcss.com/docs/padding
892
892
  */
893
893
  ps: [{
894
- ps: E()
894
+ ps: C()
895
895
  }],
896
896
  /**
897
897
  * Padding Inline End
898
898
  * @see https://tailwindcss.com/docs/padding
899
899
  */
900
900
  pe: [{
901
- pe: E()
901
+ pe: C()
902
902
  }],
903
903
  /**
904
904
  * Padding Block Start
905
905
  * @see https://tailwindcss.com/docs/padding
906
906
  */
907
907
  pbs: [{
908
- pbs: E()
908
+ pbs: C()
909
909
  }],
910
910
  /**
911
911
  * Padding Block End
912
912
  * @see https://tailwindcss.com/docs/padding
913
913
  */
914
914
  pbe: [{
915
- pbe: E()
915
+ pbe: C()
916
916
  }],
917
917
  /**
918
918
  * Padding Top
919
919
  * @see https://tailwindcss.com/docs/padding
920
920
  */
921
921
  pt: [{
922
- pt: E()
922
+ pt: C()
923
923
  }],
924
924
  /**
925
925
  * Padding Right
926
926
  * @see https://tailwindcss.com/docs/padding
927
927
  */
928
928
  pr: [{
929
- pr: E()
929
+ pr: C()
930
930
  }],
931
931
  /**
932
932
  * Padding Bottom
933
933
  * @see https://tailwindcss.com/docs/padding
934
934
  */
935
935
  pb: [{
936
- pb: E()
936
+ pb: C()
937
937
  }],
938
938
  /**
939
939
  * Padding Left
940
940
  * @see https://tailwindcss.com/docs/padding
941
941
  */
942
942
  pl: [{
943
- pl: E()
943
+ pl: C()
944
944
  }],
945
945
  /**
946
946
  * Margin
@@ -1024,7 +1024,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1024
1024
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1025
1025
  */
1026
1026
  "space-x": [{
1027
- "space-x": E()
1027
+ "space-x": C()
1028
1028
  }],
1029
1029
  /**
1030
1030
  * Space Between X Reverse
@@ -1036,7 +1036,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1036
1036
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1037
1037
  */
1038
1038
  "space-y": [{
1039
- "space-y": E()
1039
+ "space-y": C()
1040
1040
  }],
1041
1041
  /**
1042
1042
  * Space Between Y Reverse
@@ -1186,7 +1186,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1186
1186
  * @see https://tailwindcss.com/docs/font-stretch
1187
1187
  */
1188
1188
  "font-stretch": [{
1189
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt, P]
1189
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt, N]
1190
1190
  }],
1191
1191
  /**
1192
1192
  * Font Family
@@ -1200,7 +1200,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1200
1200
  * @see https://tailwindcss.com/docs/font-feature-settings
1201
1201
  */
1202
1202
  "font-features": [{
1203
- "font-features": [P]
1203
+ "font-features": [N]
1204
1204
  }],
1205
1205
  /**
1206
1206
  * Font Variant Numeric
@@ -1237,14 +1237,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1237
1237
  * @see https://tailwindcss.com/docs/letter-spacing
1238
1238
  */
1239
1239
  tracking: [{
1240
- tracking: [o, N, P]
1240
+ tracking: [o, O, N]
1241
1241
  }],
1242
1242
  /**
1243
1243
  * Line Clamp
1244
1244
  * @see https://tailwindcss.com/docs/line-clamp
1245
1245
  */
1246
1246
  "line-clamp": [{
1247
- "line-clamp": [q, "none", N, dr]
1247
+ "line-clamp": [q, "none", O, dr]
1248
1248
  }],
1249
1249
  /**
1250
1250
  * Line Height
@@ -1254,7 +1254,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1254
1254
  leading: [
1255
1255
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1256
1256
  i,
1257
- ...E()
1257
+ ...C()
1258
1258
  ]
1259
1259
  }],
1260
1260
  /**
@@ -1262,7 +1262,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1262
1262
  * @see https://tailwindcss.com/docs/list-style-image
1263
1263
  */
1264
1264
  "list-image": [{
1265
- "list-image": ["none", N, P]
1265
+ "list-image": ["none", O, N]
1266
1266
  }],
1267
1267
  /**
1268
1268
  * List Style Position
@@ -1276,7 +1276,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1276
1276
  * @see https://tailwindcss.com/docs/list-style-type
1277
1277
  */
1278
1278
  "list-style-type": [{
1279
- list: ["disc", "decimal", "none", N, P]
1279
+ list: ["disc", "decimal", "none", O, N]
1280
1280
  }],
1281
1281
  /**
1282
1282
  * Text Alignment
@@ -1291,14 +1291,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1291
1291
  * @see https://v3.tailwindcss.com/docs/placeholder-color
1292
1292
  */
1293
1293
  "placeholder-color": [{
1294
- placeholder: O()
1294
+ placeholder: A()
1295
1295
  }],
1296
1296
  /**
1297
1297
  * Text Color
1298
1298
  * @see https://tailwindcss.com/docs/text-color
1299
1299
  */
1300
1300
  "text-color": [{
1301
- text: O()
1301
+ text: A()
1302
1302
  }],
1303
1303
  /**
1304
1304
  * Text Decoration
@@ -1317,21 +1317,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1317
1317
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1318
1318
  */
1319
1319
  "text-decoration-thickness": [{
1320
- decoration: [q, "from-font", "auto", N, He]
1320
+ decoration: [q, "from-font", "auto", O, He]
1321
1321
  }],
1322
1322
  /**
1323
1323
  * Text Decoration Color
1324
1324
  * @see https://tailwindcss.com/docs/text-decoration-color
1325
1325
  */
1326
1326
  "text-decoration-color": [{
1327
- decoration: O()
1327
+ decoration: A()
1328
1328
  }],
1329
1329
  /**
1330
1330
  * Text Underline Offset
1331
1331
  * @see https://tailwindcss.com/docs/text-underline-offset
1332
1332
  */
1333
1333
  "underline-offset": [{
1334
- "underline-offset": [q, "auto", N, P]
1334
+ "underline-offset": [q, "auto", O, N]
1335
1335
  }],
1336
1336
  /**
1337
1337
  * Text Transform
@@ -1355,14 +1355,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1355
1355
  * @see https://tailwindcss.com/docs/text-indent
1356
1356
  */
1357
1357
  indent: [{
1358
- indent: E()
1358
+ indent: C()
1359
1359
  }],
1360
1360
  /**
1361
1361
  * Vertical Alignment
1362
1362
  * @see https://tailwindcss.com/docs/vertical-align
1363
1363
  */
1364
1364
  "vertical-align": [{
1365
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N, P]
1365
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", O, N]
1366
1366
  }],
1367
1367
  /**
1368
1368
  * Whitespace
@@ -1397,7 +1397,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1397
1397
  * @see https://tailwindcss.com/docs/content
1398
1398
  */
1399
1399
  content: [{
1400
- content: ["none", N, P]
1400
+ content: ["none", O, N]
1401
1401
  }],
1402
1402
  // -------------------
1403
1403
  // --- Backgrounds ---
@@ -1442,7 +1442,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1442
1442
  * @see https://tailwindcss.com/docs/background-size
1443
1443
  */
1444
1444
  "bg-size": [{
1445
- bg: T()
1445
+ bg: z()
1446
1446
  }],
1447
1447
  /**
1448
1448
  * Background Image
@@ -1452,9 +1452,9 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1452
1452
  bg: ["none", {
1453
1453
  linear: [{
1454
1454
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1455
- }, Fe, N, P],
1456
- radial: ["", N, P],
1457
- conic: [Fe, N, P]
1455
+ }, Fe, O, N],
1456
+ radial: ["", O, N],
1457
+ conic: [Fe, O, N]
1458
1458
  }, Va, $a]
1459
1459
  }],
1460
1460
  /**
@@ -1462,7 +1462,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1462
1462
  * @see https://tailwindcss.com/docs/background-color
1463
1463
  */
1464
1464
  "bg-color": [{
1465
- bg: O()
1465
+ bg: A()
1466
1466
  }],
1467
1467
  /**
1468
1468
  * Gradient Color Stops From Position
@@ -1490,21 +1490,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1490
1490
  * @see https://tailwindcss.com/docs/gradient-color-stops
1491
1491
  */
1492
1492
  "gradient-from": [{
1493
- from: O()
1493
+ from: A()
1494
1494
  }],
1495
1495
  /**
1496
1496
  * Gradient Color Stops Via
1497
1497
  * @see https://tailwindcss.com/docs/gradient-color-stops
1498
1498
  */
1499
1499
  "gradient-via": [{
1500
- via: O()
1500
+ via: A()
1501
1501
  }],
1502
1502
  /**
1503
1503
  * Gradient Color Stops To
1504
1504
  * @see https://tailwindcss.com/docs/gradient-color-stops
1505
1505
  */
1506
1506
  "gradient-to": [{
1507
- to: O()
1507
+ to: A()
1508
1508
  }],
1509
1509
  // ---------------
1510
1510
  // --- Borders ---
@@ -1514,189 +1514,189 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1514
1514
  * @see https://tailwindcss.com/docs/border-radius
1515
1515
  */
1516
1516
  rounded: [{
1517
- rounded: k()
1517
+ rounded: D()
1518
1518
  }],
1519
1519
  /**
1520
1520
  * Border Radius Start
1521
1521
  * @see https://tailwindcss.com/docs/border-radius
1522
1522
  */
1523
1523
  "rounded-s": [{
1524
- "rounded-s": k()
1524
+ "rounded-s": D()
1525
1525
  }],
1526
1526
  /**
1527
1527
  * Border Radius End
1528
1528
  * @see https://tailwindcss.com/docs/border-radius
1529
1529
  */
1530
1530
  "rounded-e": [{
1531
- "rounded-e": k()
1531
+ "rounded-e": D()
1532
1532
  }],
1533
1533
  /**
1534
1534
  * Border Radius Top
1535
1535
  * @see https://tailwindcss.com/docs/border-radius
1536
1536
  */
1537
1537
  "rounded-t": [{
1538
- "rounded-t": k()
1538
+ "rounded-t": D()
1539
1539
  }],
1540
1540
  /**
1541
1541
  * Border Radius Right
1542
1542
  * @see https://tailwindcss.com/docs/border-radius
1543
1543
  */
1544
1544
  "rounded-r": [{
1545
- "rounded-r": k()
1545
+ "rounded-r": D()
1546
1546
  }],
1547
1547
  /**
1548
1548
  * Border Radius Bottom
1549
1549
  * @see https://tailwindcss.com/docs/border-radius
1550
1550
  */
1551
1551
  "rounded-b": [{
1552
- "rounded-b": k()
1552
+ "rounded-b": D()
1553
1553
  }],
1554
1554
  /**
1555
1555
  * Border Radius Left
1556
1556
  * @see https://tailwindcss.com/docs/border-radius
1557
1557
  */
1558
1558
  "rounded-l": [{
1559
- "rounded-l": k()
1559
+ "rounded-l": D()
1560
1560
  }],
1561
1561
  /**
1562
1562
  * Border Radius Start Start
1563
1563
  * @see https://tailwindcss.com/docs/border-radius
1564
1564
  */
1565
1565
  "rounded-ss": [{
1566
- "rounded-ss": k()
1566
+ "rounded-ss": D()
1567
1567
  }],
1568
1568
  /**
1569
1569
  * Border Radius Start End
1570
1570
  * @see https://tailwindcss.com/docs/border-radius
1571
1571
  */
1572
1572
  "rounded-se": [{
1573
- "rounded-se": k()
1573
+ "rounded-se": D()
1574
1574
  }],
1575
1575
  /**
1576
1576
  * Border Radius End End
1577
1577
  * @see https://tailwindcss.com/docs/border-radius
1578
1578
  */
1579
1579
  "rounded-ee": [{
1580
- "rounded-ee": k()
1580
+ "rounded-ee": D()
1581
1581
  }],
1582
1582
  /**
1583
1583
  * Border Radius End Start
1584
1584
  * @see https://tailwindcss.com/docs/border-radius
1585
1585
  */
1586
1586
  "rounded-es": [{
1587
- "rounded-es": k()
1587
+ "rounded-es": D()
1588
1588
  }],
1589
1589
  /**
1590
1590
  * Border Radius Top Left
1591
1591
  * @see https://tailwindcss.com/docs/border-radius
1592
1592
  */
1593
1593
  "rounded-tl": [{
1594
- "rounded-tl": k()
1594
+ "rounded-tl": D()
1595
1595
  }],
1596
1596
  /**
1597
1597
  * Border Radius Top Right
1598
1598
  * @see https://tailwindcss.com/docs/border-radius
1599
1599
  */
1600
1600
  "rounded-tr": [{
1601
- "rounded-tr": k()
1601
+ "rounded-tr": D()
1602
1602
  }],
1603
1603
  /**
1604
1604
  * Border Radius Bottom Right
1605
1605
  * @see https://tailwindcss.com/docs/border-radius
1606
1606
  */
1607
1607
  "rounded-br": [{
1608
- "rounded-br": k()
1608
+ "rounded-br": D()
1609
1609
  }],
1610
1610
  /**
1611
1611
  * Border Radius Bottom Left
1612
1612
  * @see https://tailwindcss.com/docs/border-radius
1613
1613
  */
1614
1614
  "rounded-bl": [{
1615
- "rounded-bl": k()
1615
+ "rounded-bl": D()
1616
1616
  }],
1617
1617
  /**
1618
1618
  * Border Width
1619
1619
  * @see https://tailwindcss.com/docs/border-width
1620
1620
  */
1621
1621
  "border-w": [{
1622
- border: H()
1622
+ border: B()
1623
1623
  }],
1624
1624
  /**
1625
1625
  * Border Width Inline
1626
1626
  * @see https://tailwindcss.com/docs/border-width
1627
1627
  */
1628
1628
  "border-w-x": [{
1629
- "border-x": H()
1629
+ "border-x": B()
1630
1630
  }],
1631
1631
  /**
1632
1632
  * Border Width Block
1633
1633
  * @see https://tailwindcss.com/docs/border-width
1634
1634
  */
1635
1635
  "border-w-y": [{
1636
- "border-y": H()
1636
+ "border-y": B()
1637
1637
  }],
1638
1638
  /**
1639
1639
  * Border Width Inline Start
1640
1640
  * @see https://tailwindcss.com/docs/border-width
1641
1641
  */
1642
1642
  "border-w-s": [{
1643
- "border-s": H()
1643
+ "border-s": B()
1644
1644
  }],
1645
1645
  /**
1646
1646
  * Border Width Inline End
1647
1647
  * @see https://tailwindcss.com/docs/border-width
1648
1648
  */
1649
1649
  "border-w-e": [{
1650
- "border-e": H()
1650
+ "border-e": B()
1651
1651
  }],
1652
1652
  /**
1653
1653
  * Border Width Block Start
1654
1654
  * @see https://tailwindcss.com/docs/border-width
1655
1655
  */
1656
1656
  "border-w-bs": [{
1657
- "border-bs": H()
1657
+ "border-bs": B()
1658
1658
  }],
1659
1659
  /**
1660
1660
  * Border Width Block End
1661
1661
  * @see https://tailwindcss.com/docs/border-width
1662
1662
  */
1663
1663
  "border-w-be": [{
1664
- "border-be": H()
1664
+ "border-be": B()
1665
1665
  }],
1666
1666
  /**
1667
1667
  * Border Width Top
1668
1668
  * @see https://tailwindcss.com/docs/border-width
1669
1669
  */
1670
1670
  "border-w-t": [{
1671
- "border-t": H()
1671
+ "border-t": B()
1672
1672
  }],
1673
1673
  /**
1674
1674
  * Border Width Right
1675
1675
  * @see https://tailwindcss.com/docs/border-width
1676
1676
  */
1677
1677
  "border-w-r": [{
1678
- "border-r": H()
1678
+ "border-r": B()
1679
1679
  }],
1680
1680
  /**
1681
1681
  * Border Width Bottom
1682
1682
  * @see https://tailwindcss.com/docs/border-width
1683
1683
  */
1684
1684
  "border-w-b": [{
1685
- "border-b": H()
1685
+ "border-b": B()
1686
1686
  }],
1687
1687
  /**
1688
1688
  * Border Width Left
1689
1689
  * @see https://tailwindcss.com/docs/border-width
1690
1690
  */
1691
1691
  "border-w-l": [{
1692
- "border-l": H()
1692
+ "border-l": B()
1693
1693
  }],
1694
1694
  /**
1695
1695
  * Divide Width X
1696
1696
  * @see https://tailwindcss.com/docs/border-width#between-children
1697
1697
  */
1698
1698
  "divide-x": [{
1699
- "divide-x": H()
1699
+ "divide-x": B()
1700
1700
  }],
1701
1701
  /**
1702
1702
  * Divide Width X Reverse
@@ -1708,7 +1708,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1708
1708
  * @see https://tailwindcss.com/docs/border-width#between-children
1709
1709
  */
1710
1710
  "divide-y": [{
1711
- "divide-y": H()
1711
+ "divide-y": B()
1712
1712
  }],
1713
1713
  /**
1714
1714
  * Divide Width Y Reverse
@@ -1734,84 +1734,84 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1734
1734
  * @see https://tailwindcss.com/docs/border-color
1735
1735
  */
1736
1736
  "border-color": [{
1737
- border: O()
1737
+ border: A()
1738
1738
  }],
1739
1739
  /**
1740
1740
  * Border Color Inline
1741
1741
  * @see https://tailwindcss.com/docs/border-color
1742
1742
  */
1743
1743
  "border-color-x": [{
1744
- "border-x": O()
1744
+ "border-x": A()
1745
1745
  }],
1746
1746
  /**
1747
1747
  * Border Color Block
1748
1748
  * @see https://tailwindcss.com/docs/border-color
1749
1749
  */
1750
1750
  "border-color-y": [{
1751
- "border-y": O()
1751
+ "border-y": A()
1752
1752
  }],
1753
1753
  /**
1754
1754
  * Border Color Inline Start
1755
1755
  * @see https://tailwindcss.com/docs/border-color
1756
1756
  */
1757
1757
  "border-color-s": [{
1758
- "border-s": O()
1758
+ "border-s": A()
1759
1759
  }],
1760
1760
  /**
1761
1761
  * Border Color Inline End
1762
1762
  * @see https://tailwindcss.com/docs/border-color
1763
1763
  */
1764
1764
  "border-color-e": [{
1765
- "border-e": O()
1765
+ "border-e": A()
1766
1766
  }],
1767
1767
  /**
1768
1768
  * Border Color Block Start
1769
1769
  * @see https://tailwindcss.com/docs/border-color
1770
1770
  */
1771
1771
  "border-color-bs": [{
1772
- "border-bs": O()
1772
+ "border-bs": A()
1773
1773
  }],
1774
1774
  /**
1775
1775
  * Border Color Block End
1776
1776
  * @see https://tailwindcss.com/docs/border-color
1777
1777
  */
1778
1778
  "border-color-be": [{
1779
- "border-be": O()
1779
+ "border-be": A()
1780
1780
  }],
1781
1781
  /**
1782
1782
  * Border Color Top
1783
1783
  * @see https://tailwindcss.com/docs/border-color
1784
1784
  */
1785
1785
  "border-color-t": [{
1786
- "border-t": O()
1786
+ "border-t": A()
1787
1787
  }],
1788
1788
  /**
1789
1789
  * Border Color Right
1790
1790
  * @see https://tailwindcss.com/docs/border-color
1791
1791
  */
1792
1792
  "border-color-r": [{
1793
- "border-r": O()
1793
+ "border-r": A()
1794
1794
  }],
1795
1795
  /**
1796
1796
  * Border Color Bottom
1797
1797
  * @see https://tailwindcss.com/docs/border-color
1798
1798
  */
1799
1799
  "border-color-b": [{
1800
- "border-b": O()
1800
+ "border-b": A()
1801
1801
  }],
1802
1802
  /**
1803
1803
  * Border Color Left
1804
1804
  * @see https://tailwindcss.com/docs/border-color
1805
1805
  */
1806
1806
  "border-color-l": [{
1807
- "border-l": O()
1807
+ "border-l": A()
1808
1808
  }],
1809
1809
  /**
1810
1810
  * Divide Color
1811
1811
  * @see https://tailwindcss.com/docs/divide-color
1812
1812
  */
1813
1813
  "divide-color": [{
1814
- divide: O()
1814
+ divide: A()
1815
1815
  }],
1816
1816
  /**
1817
1817
  * Outline Style
@@ -1825,7 +1825,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1825
1825
  * @see https://tailwindcss.com/docs/outline-offset
1826
1826
  */
1827
1827
  "outline-offset": [{
1828
- "outline-offset": [q, N, P]
1828
+ "outline-offset": [q, O, N]
1829
1829
  }],
1830
1830
  /**
1831
1831
  * Outline Width
@@ -1839,7 +1839,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1839
1839
  * @see https://tailwindcss.com/docs/outline-color
1840
1840
  */
1841
1841
  "outline-color": [{
1842
- outline: O()
1842
+ outline: A()
1843
1843
  }],
1844
1844
  // ---------------
1845
1845
  // --- Effects ---
@@ -1863,7 +1863,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1863
1863
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1864
1864
  */
1865
1865
  "shadow-color": [{
1866
- shadow: O()
1866
+ shadow: A()
1867
1867
  }],
1868
1868
  /**
1869
1869
  * Inset Box Shadow
@@ -1877,14 +1877,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1877
1877
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1878
1878
  */
1879
1879
  "inset-shadow-color": [{
1880
- "inset-shadow": O()
1880
+ "inset-shadow": A()
1881
1881
  }],
1882
1882
  /**
1883
1883
  * Ring Width
1884
1884
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1885
1885
  */
1886
1886
  "ring-w": [{
1887
- ring: H()
1887
+ ring: B()
1888
1888
  }],
1889
1889
  /**
1890
1890
  * Ring Width Inset
@@ -1898,7 +1898,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1898
1898
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1899
1899
  */
1900
1900
  "ring-color": [{
1901
- ring: O()
1901
+ ring: A()
1902
1902
  }],
1903
1903
  /**
1904
1904
  * Ring Offset Width
@@ -1916,21 +1916,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1916
1916
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1917
1917
  */
1918
1918
  "ring-offset-color": [{
1919
- "ring-offset": O()
1919
+ "ring-offset": A()
1920
1920
  }],
1921
1921
  /**
1922
1922
  * Inset Ring Width
1923
1923
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
1924
1924
  */
1925
1925
  "inset-ring-w": [{
1926
- "inset-ring": H()
1926
+ "inset-ring": B()
1927
1927
  }],
1928
1928
  /**
1929
1929
  * Inset Ring Color
1930
1930
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1931
1931
  */
1932
1932
  "inset-ring-color": [{
1933
- "inset-ring": O()
1933
+ "inset-ring": A()
1934
1934
  }],
1935
1935
  /**
1936
1936
  * Text Shadow
@@ -1944,14 +1944,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1944
1944
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1945
1945
  */
1946
1946
  "text-shadow-color": [{
1947
- "text-shadow": O()
1947
+ "text-shadow": A()
1948
1948
  }],
1949
1949
  /**
1950
1950
  * Opacity
1951
1951
  * @see https://tailwindcss.com/docs/opacity
1952
1952
  */
1953
1953
  opacity: [{
1954
- opacity: [q, N, P]
1954
+ opacity: [q, O, N]
1955
1955
  }],
1956
1956
  /**
1957
1957
  * Mix Blend Mode
@@ -1995,10 +1995,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
1995
1995
  "mask-linear-to": K()
1996
1996
  }],
1997
1997
  "mask-image-linear-from-color": [{
1998
- "mask-linear-from": O()
1998
+ "mask-linear-from": A()
1999
1999
  }],
2000
2000
  "mask-image-linear-to-color": [{
2001
- "mask-linear-to": O()
2001
+ "mask-linear-to": A()
2002
2002
  }],
2003
2003
  "mask-image-t-from-pos": [{
2004
2004
  "mask-t-from": K()
@@ -2007,10 +2007,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2007
2007
  "mask-t-to": K()
2008
2008
  }],
2009
2009
  "mask-image-t-from-color": [{
2010
- "mask-t-from": O()
2010
+ "mask-t-from": A()
2011
2011
  }],
2012
2012
  "mask-image-t-to-color": [{
2013
- "mask-t-to": O()
2013
+ "mask-t-to": A()
2014
2014
  }],
2015
2015
  "mask-image-r-from-pos": [{
2016
2016
  "mask-r-from": K()
@@ -2019,10 +2019,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2019
2019
  "mask-r-to": K()
2020
2020
  }],
2021
2021
  "mask-image-r-from-color": [{
2022
- "mask-r-from": O()
2022
+ "mask-r-from": A()
2023
2023
  }],
2024
2024
  "mask-image-r-to-color": [{
2025
- "mask-r-to": O()
2025
+ "mask-r-to": A()
2026
2026
  }],
2027
2027
  "mask-image-b-from-pos": [{
2028
2028
  "mask-b-from": K()
@@ -2031,10 +2031,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2031
2031
  "mask-b-to": K()
2032
2032
  }],
2033
2033
  "mask-image-b-from-color": [{
2034
- "mask-b-from": O()
2034
+ "mask-b-from": A()
2035
2035
  }],
2036
2036
  "mask-image-b-to-color": [{
2037
- "mask-b-to": O()
2037
+ "mask-b-to": A()
2038
2038
  }],
2039
2039
  "mask-image-l-from-pos": [{
2040
2040
  "mask-l-from": K()
@@ -2043,10 +2043,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2043
2043
  "mask-l-to": K()
2044
2044
  }],
2045
2045
  "mask-image-l-from-color": [{
2046
- "mask-l-from": O()
2046
+ "mask-l-from": A()
2047
2047
  }],
2048
2048
  "mask-image-l-to-color": [{
2049
- "mask-l-to": O()
2049
+ "mask-l-to": A()
2050
2050
  }],
2051
2051
  "mask-image-x-from-pos": [{
2052
2052
  "mask-x-from": K()
@@ -2055,10 +2055,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2055
2055
  "mask-x-to": K()
2056
2056
  }],
2057
2057
  "mask-image-x-from-color": [{
2058
- "mask-x-from": O()
2058
+ "mask-x-from": A()
2059
2059
  }],
2060
2060
  "mask-image-x-to-color": [{
2061
- "mask-x-to": O()
2061
+ "mask-x-to": A()
2062
2062
  }],
2063
2063
  "mask-image-y-from-pos": [{
2064
2064
  "mask-y-from": K()
@@ -2067,13 +2067,13 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2067
2067
  "mask-y-to": K()
2068
2068
  }],
2069
2069
  "mask-image-y-from-color": [{
2070
- "mask-y-from": O()
2070
+ "mask-y-from": A()
2071
2071
  }],
2072
2072
  "mask-image-y-to-color": [{
2073
- "mask-y-to": O()
2073
+ "mask-y-to": A()
2074
2074
  }],
2075
2075
  "mask-image-radial": [{
2076
- "mask-radial": [N, P]
2076
+ "mask-radial": [O, N]
2077
2077
  }],
2078
2078
  "mask-image-radial-from-pos": [{
2079
2079
  "mask-radial-from": K()
@@ -2082,10 +2082,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2082
2082
  "mask-radial-to": K()
2083
2083
  }],
2084
2084
  "mask-image-radial-from-color": [{
2085
- "mask-radial-from": O()
2085
+ "mask-radial-from": A()
2086
2086
  }],
2087
2087
  "mask-image-radial-to-color": [{
2088
- "mask-radial-to": O()
2088
+ "mask-radial-to": A()
2089
2089
  }],
2090
2090
  "mask-image-radial-shape": [{
2091
2091
  "mask-radial": ["circle", "ellipse"]
@@ -2097,7 +2097,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2097
2097
  }]
2098
2098
  }],
2099
2099
  "mask-image-radial-pos": [{
2100
- "mask-radial-at": y()
2100
+ "mask-radial-at": b()
2101
2101
  }],
2102
2102
  "mask-image-conic-pos": [{
2103
2103
  "mask-conic": [q]
@@ -2109,10 +2109,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2109
2109
  "mask-conic-to": K()
2110
2110
  }],
2111
2111
  "mask-image-conic-from-color": [{
2112
- "mask-conic-from": O()
2112
+ "mask-conic-from": A()
2113
2113
  }],
2114
2114
  "mask-image-conic-to-color": [{
2115
- "mask-conic-to": O()
2115
+ "mask-conic-to": A()
2116
2116
  }],
2117
2117
  /**
2118
2118
  * Mask Mode
@@ -2147,7 +2147,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2147
2147
  * @see https://tailwindcss.com/docs/mask-size
2148
2148
  */
2149
2149
  "mask-size": [{
2150
- mask: T()
2150
+ mask: z()
2151
2151
  }],
2152
2152
  /**
2153
2153
  * Mask Type
@@ -2161,7 +2161,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2161
2161
  * @see https://tailwindcss.com/docs/mask-image
2162
2162
  */
2163
2163
  "mask-image": [{
2164
- mask: ["none", N, P]
2164
+ mask: ["none", O, N]
2165
2165
  }],
2166
2166
  // ---------------
2167
2167
  // --- Filters ---
@@ -2175,8 +2175,8 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2175
2175
  // Deprecated since Tailwind CSS v3.0.0
2176
2176
  "",
2177
2177
  "none",
2178
- N,
2179
- P
2178
+ O,
2179
+ N
2180
2180
  ]
2181
2181
  }],
2182
2182
  /**
@@ -2191,14 +2191,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2191
2191
  * @see https://tailwindcss.com/docs/brightness
2192
2192
  */
2193
2193
  brightness: [{
2194
- brightness: [q, N, P]
2194
+ brightness: [q, O, N]
2195
2195
  }],
2196
2196
  /**
2197
2197
  * Contrast
2198
2198
  * @see https://tailwindcss.com/docs/contrast
2199
2199
  */
2200
2200
  contrast: [{
2201
- contrast: [q, N, P]
2201
+ contrast: [q, O, N]
2202
2202
  }],
2203
2203
  /**
2204
2204
  * Drop Shadow
@@ -2219,42 +2219,42 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2219
2219
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2220
2220
  */
2221
2221
  "drop-shadow-color": [{
2222
- "drop-shadow": O()
2222
+ "drop-shadow": A()
2223
2223
  }],
2224
2224
  /**
2225
2225
  * Grayscale
2226
2226
  * @see https://tailwindcss.com/docs/grayscale
2227
2227
  */
2228
2228
  grayscale: [{
2229
- grayscale: ["", q, N, P]
2229
+ grayscale: ["", q, O, N]
2230
2230
  }],
2231
2231
  /**
2232
2232
  * Hue Rotate
2233
2233
  * @see https://tailwindcss.com/docs/hue-rotate
2234
2234
  */
2235
2235
  "hue-rotate": [{
2236
- "hue-rotate": [q, N, P]
2236
+ "hue-rotate": [q, O, N]
2237
2237
  }],
2238
2238
  /**
2239
2239
  * Invert
2240
2240
  * @see https://tailwindcss.com/docs/invert
2241
2241
  */
2242
2242
  invert: [{
2243
- invert: ["", q, N, P]
2243
+ invert: ["", q, O, N]
2244
2244
  }],
2245
2245
  /**
2246
2246
  * Saturate
2247
2247
  * @see https://tailwindcss.com/docs/saturate
2248
2248
  */
2249
2249
  saturate: [{
2250
- saturate: [q, N, P]
2250
+ saturate: [q, O, N]
2251
2251
  }],
2252
2252
  /**
2253
2253
  * Sepia
2254
2254
  * @see https://tailwindcss.com/docs/sepia
2255
2255
  */
2256
2256
  sepia: [{
2257
- sepia: ["", q, N, P]
2257
+ sepia: ["", q, O, N]
2258
2258
  }],
2259
2259
  /**
2260
2260
  * Backdrop Filter
@@ -2265,8 +2265,8 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2265
2265
  // Deprecated since Tailwind CSS v3.0.0
2266
2266
  "",
2267
2267
  "none",
2268
- N,
2269
- P
2268
+ O,
2269
+ N
2270
2270
  ]
2271
2271
  }],
2272
2272
  /**
@@ -2281,56 +2281,56 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2281
2281
  * @see https://tailwindcss.com/docs/backdrop-brightness
2282
2282
  */
2283
2283
  "backdrop-brightness": [{
2284
- "backdrop-brightness": [q, N, P]
2284
+ "backdrop-brightness": [q, O, N]
2285
2285
  }],
2286
2286
  /**
2287
2287
  * Backdrop Contrast
2288
2288
  * @see https://tailwindcss.com/docs/backdrop-contrast
2289
2289
  */
2290
2290
  "backdrop-contrast": [{
2291
- "backdrop-contrast": [q, N, P]
2291
+ "backdrop-contrast": [q, O, N]
2292
2292
  }],
2293
2293
  /**
2294
2294
  * Backdrop Grayscale
2295
2295
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2296
2296
  */
2297
2297
  "backdrop-grayscale": [{
2298
- "backdrop-grayscale": ["", q, N, P]
2298
+ "backdrop-grayscale": ["", q, O, N]
2299
2299
  }],
2300
2300
  /**
2301
2301
  * Backdrop Hue Rotate
2302
2302
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2303
2303
  */
2304
2304
  "backdrop-hue-rotate": [{
2305
- "backdrop-hue-rotate": [q, N, P]
2305
+ "backdrop-hue-rotate": [q, O, N]
2306
2306
  }],
2307
2307
  /**
2308
2308
  * Backdrop Invert
2309
2309
  * @see https://tailwindcss.com/docs/backdrop-invert
2310
2310
  */
2311
2311
  "backdrop-invert": [{
2312
- "backdrop-invert": ["", q, N, P]
2312
+ "backdrop-invert": ["", q, O, N]
2313
2313
  }],
2314
2314
  /**
2315
2315
  * Backdrop Opacity
2316
2316
  * @see https://tailwindcss.com/docs/backdrop-opacity
2317
2317
  */
2318
2318
  "backdrop-opacity": [{
2319
- "backdrop-opacity": [q, N, P]
2319
+ "backdrop-opacity": [q, O, N]
2320
2320
  }],
2321
2321
  /**
2322
2322
  * Backdrop Saturate
2323
2323
  * @see https://tailwindcss.com/docs/backdrop-saturate
2324
2324
  */
2325
2325
  "backdrop-saturate": [{
2326
- "backdrop-saturate": [q, N, P]
2326
+ "backdrop-saturate": [q, O, N]
2327
2327
  }],
2328
2328
  /**
2329
2329
  * Backdrop Sepia
2330
2330
  * @see https://tailwindcss.com/docs/backdrop-sepia
2331
2331
  */
2332
2332
  "backdrop-sepia": [{
2333
- "backdrop-sepia": ["", q, N, P]
2333
+ "backdrop-sepia": ["", q, O, N]
2334
2334
  }],
2335
2335
  // --------------
2336
2336
  // --- Tables ---
@@ -2347,21 +2347,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2347
2347
  * @see https://tailwindcss.com/docs/border-spacing
2348
2348
  */
2349
2349
  "border-spacing": [{
2350
- "border-spacing": E()
2350
+ "border-spacing": C()
2351
2351
  }],
2352
2352
  /**
2353
2353
  * Border Spacing X
2354
2354
  * @see https://tailwindcss.com/docs/border-spacing
2355
2355
  */
2356
2356
  "border-spacing-x": [{
2357
- "border-spacing-x": E()
2357
+ "border-spacing-x": C()
2358
2358
  }],
2359
2359
  /**
2360
2360
  * Border Spacing Y
2361
2361
  * @see https://tailwindcss.com/docs/border-spacing
2362
2362
  */
2363
2363
  "border-spacing-y": [{
2364
- "border-spacing-y": E()
2364
+ "border-spacing-y": C()
2365
2365
  }],
2366
2366
  /**
2367
2367
  * Table Layout
@@ -2385,7 +2385,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2385
2385
  * @see https://tailwindcss.com/docs/transition-property
2386
2386
  */
2387
2387
  transition: [{
2388
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", N, P]
2388
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", O, N]
2389
2389
  }],
2390
2390
  /**
2391
2391
  * Transition Behavior
@@ -2399,28 +2399,28 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2399
2399
  * @see https://tailwindcss.com/docs/transition-duration
2400
2400
  */
2401
2401
  duration: [{
2402
- duration: [q, "initial", N, P]
2402
+ duration: [q, "initial", O, N]
2403
2403
  }],
2404
2404
  /**
2405
2405
  * Transition Timing Function
2406
2406
  * @see https://tailwindcss.com/docs/transition-timing-function
2407
2407
  */
2408
2408
  ease: [{
2409
- ease: ["linear", "initial", b, N, P]
2409
+ ease: ["linear", "initial", w, O, N]
2410
2410
  }],
2411
2411
  /**
2412
2412
  * Transition Delay
2413
2413
  * @see https://tailwindcss.com/docs/transition-delay
2414
2414
  */
2415
2415
  delay: [{
2416
- delay: [q, N, P]
2416
+ delay: [q, O, N]
2417
2417
  }],
2418
2418
  /**
2419
2419
  * Animation
2420
2420
  * @see https://tailwindcss.com/docs/animation
2421
2421
  */
2422
2422
  animate: [{
2423
- animate: ["none", C, N, P]
2423
+ animate: ["none", x, O, N]
2424
2424
  }],
2425
2425
  // ------------------
2426
2426
  // --- Transforms ---
@@ -2437,7 +2437,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2437
2437
  * @see https://tailwindcss.com/docs/perspective
2438
2438
  */
2439
2439
  perspective: [{
2440
- perspective: [p, N, P]
2440
+ perspective: [p, O, N]
2441
2441
  }],
2442
2442
  /**
2443
2443
  * Perspective Origin
@@ -2533,7 +2533,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2533
2533
  * @see https://tailwindcss.com/docs/transform
2534
2534
  */
2535
2535
  transform: [{
2536
- transform: [N, P, "", "none", "gpu", "cpu"]
2536
+ transform: [O, N, "", "none", "gpu", "cpu"]
2537
2537
  }],
2538
2538
  /**
2539
2539
  * Transform Origin
@@ -2590,7 +2590,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2590
2590
  * @see https://tailwindcss.com/docs/accent-color
2591
2591
  */
2592
2592
  accent: [{
2593
- accent: O()
2593
+ accent: A()
2594
2594
  }],
2595
2595
  /**
2596
2596
  * Appearance
@@ -2604,7 +2604,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2604
2604
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2605
2605
  */
2606
2606
  "caret-color": [{
2607
- caret: O()
2607
+ caret: A()
2608
2608
  }],
2609
2609
  /**
2610
2610
  * Color Scheme
@@ -2618,7 +2618,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2618
2618
  * @see https://tailwindcss.com/docs/cursor
2619
2619
  */
2620
2620
  cursor: [{
2621
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N, P]
2621
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", O, N]
2622
2622
  }],
2623
2623
  /**
2624
2624
  * Field Sizing
@@ -2653,154 +2653,154 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2653
2653
  * @see https://tailwindcss.com/docs/scroll-margin
2654
2654
  */
2655
2655
  "scroll-m": [{
2656
- "scroll-m": E()
2656
+ "scroll-m": C()
2657
2657
  }],
2658
2658
  /**
2659
2659
  * Scroll Margin Inline
2660
2660
  * @see https://tailwindcss.com/docs/scroll-margin
2661
2661
  */
2662
2662
  "scroll-mx": [{
2663
- "scroll-mx": E()
2663
+ "scroll-mx": C()
2664
2664
  }],
2665
2665
  /**
2666
2666
  * Scroll Margin Block
2667
2667
  * @see https://tailwindcss.com/docs/scroll-margin
2668
2668
  */
2669
2669
  "scroll-my": [{
2670
- "scroll-my": E()
2670
+ "scroll-my": C()
2671
2671
  }],
2672
2672
  /**
2673
2673
  * Scroll Margin Inline Start
2674
2674
  * @see https://tailwindcss.com/docs/scroll-margin
2675
2675
  */
2676
2676
  "scroll-ms": [{
2677
- "scroll-ms": E()
2677
+ "scroll-ms": C()
2678
2678
  }],
2679
2679
  /**
2680
2680
  * Scroll Margin Inline End
2681
2681
  * @see https://tailwindcss.com/docs/scroll-margin
2682
2682
  */
2683
2683
  "scroll-me": [{
2684
- "scroll-me": E()
2684
+ "scroll-me": C()
2685
2685
  }],
2686
2686
  /**
2687
2687
  * Scroll Margin Block Start
2688
2688
  * @see https://tailwindcss.com/docs/scroll-margin
2689
2689
  */
2690
2690
  "scroll-mbs": [{
2691
- "scroll-mbs": E()
2691
+ "scroll-mbs": C()
2692
2692
  }],
2693
2693
  /**
2694
2694
  * Scroll Margin Block End
2695
2695
  * @see https://tailwindcss.com/docs/scroll-margin
2696
2696
  */
2697
2697
  "scroll-mbe": [{
2698
- "scroll-mbe": E()
2698
+ "scroll-mbe": C()
2699
2699
  }],
2700
2700
  /**
2701
2701
  * Scroll Margin Top
2702
2702
  * @see https://tailwindcss.com/docs/scroll-margin
2703
2703
  */
2704
2704
  "scroll-mt": [{
2705
- "scroll-mt": E()
2705
+ "scroll-mt": C()
2706
2706
  }],
2707
2707
  /**
2708
2708
  * Scroll Margin Right
2709
2709
  * @see https://tailwindcss.com/docs/scroll-margin
2710
2710
  */
2711
2711
  "scroll-mr": [{
2712
- "scroll-mr": E()
2712
+ "scroll-mr": C()
2713
2713
  }],
2714
2714
  /**
2715
2715
  * Scroll Margin Bottom
2716
2716
  * @see https://tailwindcss.com/docs/scroll-margin
2717
2717
  */
2718
2718
  "scroll-mb": [{
2719
- "scroll-mb": E()
2719
+ "scroll-mb": C()
2720
2720
  }],
2721
2721
  /**
2722
2722
  * Scroll Margin Left
2723
2723
  * @see https://tailwindcss.com/docs/scroll-margin
2724
2724
  */
2725
2725
  "scroll-ml": [{
2726
- "scroll-ml": E()
2726
+ "scroll-ml": C()
2727
2727
  }],
2728
2728
  /**
2729
2729
  * Scroll Padding
2730
2730
  * @see https://tailwindcss.com/docs/scroll-padding
2731
2731
  */
2732
2732
  "scroll-p": [{
2733
- "scroll-p": E()
2733
+ "scroll-p": C()
2734
2734
  }],
2735
2735
  /**
2736
2736
  * Scroll Padding Inline
2737
2737
  * @see https://tailwindcss.com/docs/scroll-padding
2738
2738
  */
2739
2739
  "scroll-px": [{
2740
- "scroll-px": E()
2740
+ "scroll-px": C()
2741
2741
  }],
2742
2742
  /**
2743
2743
  * Scroll Padding Block
2744
2744
  * @see https://tailwindcss.com/docs/scroll-padding
2745
2745
  */
2746
2746
  "scroll-py": [{
2747
- "scroll-py": E()
2747
+ "scroll-py": C()
2748
2748
  }],
2749
2749
  /**
2750
2750
  * Scroll Padding Inline Start
2751
2751
  * @see https://tailwindcss.com/docs/scroll-padding
2752
2752
  */
2753
2753
  "scroll-ps": [{
2754
- "scroll-ps": E()
2754
+ "scroll-ps": C()
2755
2755
  }],
2756
2756
  /**
2757
2757
  * Scroll Padding Inline End
2758
2758
  * @see https://tailwindcss.com/docs/scroll-padding
2759
2759
  */
2760
2760
  "scroll-pe": [{
2761
- "scroll-pe": E()
2761
+ "scroll-pe": C()
2762
2762
  }],
2763
2763
  /**
2764
2764
  * Scroll Padding Block Start
2765
2765
  * @see https://tailwindcss.com/docs/scroll-padding
2766
2766
  */
2767
2767
  "scroll-pbs": [{
2768
- "scroll-pbs": E()
2768
+ "scroll-pbs": C()
2769
2769
  }],
2770
2770
  /**
2771
2771
  * Scroll Padding Block End
2772
2772
  * @see https://tailwindcss.com/docs/scroll-padding
2773
2773
  */
2774
2774
  "scroll-pbe": [{
2775
- "scroll-pbe": E()
2775
+ "scroll-pbe": C()
2776
2776
  }],
2777
2777
  /**
2778
2778
  * Scroll Padding Top
2779
2779
  * @see https://tailwindcss.com/docs/scroll-padding
2780
2780
  */
2781
2781
  "scroll-pt": [{
2782
- "scroll-pt": E()
2782
+ "scroll-pt": C()
2783
2783
  }],
2784
2784
  /**
2785
2785
  * Scroll Padding Right
2786
2786
  * @see https://tailwindcss.com/docs/scroll-padding
2787
2787
  */
2788
2788
  "scroll-pr": [{
2789
- "scroll-pr": E()
2789
+ "scroll-pr": C()
2790
2790
  }],
2791
2791
  /**
2792
2792
  * Scroll Padding Bottom
2793
2793
  * @see https://tailwindcss.com/docs/scroll-padding
2794
2794
  */
2795
2795
  "scroll-pb": [{
2796
- "scroll-pb": E()
2796
+ "scroll-pb": C()
2797
2797
  }],
2798
2798
  /**
2799
2799
  * Scroll Padding Left
2800
2800
  * @see https://tailwindcss.com/docs/scroll-padding
2801
2801
  */
2802
2802
  "scroll-pl": [{
2803
- "scroll-pl": E()
2803
+ "scroll-pl": C()
2804
2804
  }],
2805
2805
  /**
2806
2806
  * Scroll Snap Align
@@ -2868,7 +2868,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2868
2868
  * @see https://tailwindcss.com/docs/will-change
2869
2869
  */
2870
2870
  "will-change": [{
2871
- "will-change": ["auto", "scroll", "contents", "transform", N, P]
2871
+ "will-change": ["auto", "scroll", "contents", "transform", O, N]
2872
2872
  }],
2873
2873
  // -----------
2874
2874
  // --- SVG ---
@@ -2878,7 +2878,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2878
2878
  * @see https://tailwindcss.com/docs/fill
2879
2879
  */
2880
2880
  fill: [{
2881
- fill: ["none", ...O()]
2881
+ fill: ["none", ...A()]
2882
2882
  }],
2883
2883
  /**
2884
2884
  * Stroke Width
@@ -2892,7 +2892,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2892
2892
  * @see https://tailwindcss.com/docs/stroke
2893
2893
  */
2894
2894
  stroke: [{
2895
- stroke: ["none", ...O()]
2895
+ stroke: ["none", ...A()]
2896
2896
  }],
2897
2897
  // ---------------------
2898
2898
  // --- Accessibility ---
@@ -2961,7 +2961,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
2961
2961
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2962
2962
  };
2963
2963
  }, Ga = /* @__PURE__ */ ya(Ba);
2964
- function I(...e) {
2964
+ function F(...e) {
2965
2965
  return Ga(Xr(e));
2966
2966
  }
2967
2967
  const Wa = Vn(
@@ -3007,7 +3007,7 @@ function vt({
3007
3007
  "data-slot": "button",
3008
3008
  "data-variant": n,
3009
3009
  "data-size": t,
3010
- className: I(Wa({ variant: n, size: t, className: e })),
3010
+ className: F(Wa({ variant: n, size: t, className: e })),
3011
3011
  ...o
3012
3012
  }
3013
3013
  );
@@ -3356,15 +3356,15 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
3356
3356
  onInteractOutside: a,
3357
3357
  onDismiss: s,
3358
3358
  ...l
3359
- } = e, u = g.useContext(po), [c, m] = g.useState(null), d = c?.ownerDocument ?? globalThis?.document, [, f] = g.useState({}), v = Ke(n, (x) => m(x)), p = Array.from(u.layers), [S] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = p.indexOf(S), C = c ? p.indexOf(c) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, y = C >= b, _ = Fs((x) => {
3360
- const E = x.target, R = [...u.branches].some(($) => $.contains(E));
3361
- !y || R || (o?.(x), a?.(x), x.defaultPrevented || s?.());
3362
- }, d), F = Ds((x) => {
3363
- const E = x.target;
3364
- [...u.branches].some(($) => $.contains(E)) || (i?.(x), a?.(x), x.defaultPrevented || s?.());
3359
+ } = e, u = g.useContext(po), [c, m] = g.useState(null), d = c?.ownerDocument ?? globalThis?.document, [, f] = g.useState({}), v = Ke(n, (R) => m(R)), p = Array.from(u.layers), [S] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(S), x = c ? p.indexOf(c) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= w, _ = Fs((R) => {
3360
+ const C = R.target, E = [...u.branches].some((I) => I.contains(C));
3361
+ !b || E || (o?.(R), a?.(R), R.defaultPrevented || s?.());
3362
+ }, d), k = Ds((R) => {
3363
+ const C = R.target;
3364
+ [...u.branches].some((I) => I.contains(C)) || (i?.(R), a?.(R), R.defaultPrevented || s?.());
3365
3365
  }, d);
3366
- return Rs((x) => {
3367
- C === u.layers.size - 1 && (r?.(x), !x.defaultPrevented && s && (x.preventDefault(), s()));
3366
+ return Rs((R) => {
3367
+ x === u.layers.size - 1 && (r?.(R), !R.defaultPrevented && s && (R.preventDefault(), s()));
3368
3368
  }, d), g.useEffect(() => {
3369
3369
  if (c)
3370
3370
  return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (hr = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(c)), u.layers.add(c), vr(), () => {
@@ -3373,19 +3373,19 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
3373
3373
  }, [c, d, t, u]), g.useEffect(() => () => {
3374
3374
  c && (u.layers.delete(c), u.layersWithOutsidePointerEventsDisabled.delete(c), vr());
3375
3375
  }, [c, u]), g.useEffect(() => {
3376
- const x = () => f({});
3377
- return document.addEventListener(Rn, x), () => document.removeEventListener(Rn, x);
3376
+ const R = () => f({});
3377
+ return document.addEventListener(Rn, R), () => document.removeEventListener(Rn, R);
3378
3378
  }, []), /* @__PURE__ */ h(
3379
3379
  ue.div,
3380
3380
  {
3381
3381
  ...l,
3382
3382
  ref: v,
3383
3383
  style: {
3384
- pointerEvents: w ? y ? "auto" : "none" : void 0,
3384
+ pointerEvents: y ? b ? "auto" : "none" : void 0,
3385
3385
  ...e.style
3386
3386
  },
3387
- onFocusCapture: Ne(e.onFocusCapture, F.onFocusCapture),
3388
- onBlurCapture: Ne(e.onBlurCapture, F.onBlurCapture),
3387
+ onFocusCapture: Ne(e.onFocusCapture, k.onFocusCapture),
3388
+ onBlurCapture: Ne(e.onBlurCapture, k.onBlurCapture),
3389
3389
  onPointerDownCapture: Ne(
3390
3390
  e.onPointerDownCapture,
3391
3391
  _.onPointerDownCapture
@@ -3476,23 +3476,23 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
3476
3476
  }).current;
3477
3477
  g.useEffect(() => {
3478
3478
  if (r) {
3479
- let p = function(w) {
3479
+ let p = function(y) {
3480
3480
  if (f.paused || !s) return;
3481
- const y = w.target;
3482
- s.contains(y) ? m.current = y : De(m.current, { select: !0 });
3483
- }, S = function(w) {
3481
+ const b = y.target;
3482
+ s.contains(b) ? m.current = b : De(m.current, { select: !0 });
3483
+ }, S = function(y) {
3484
3484
  if (f.paused || !s) return;
3485
- const y = w.relatedTarget;
3486
- y !== null && (s.contains(y) || De(m.current, { select: !0 }));
3487
- }, b = function(w) {
3485
+ const b = y.relatedTarget;
3486
+ b !== null && (s.contains(b) || De(m.current, { select: !0 }));
3487
+ }, w = function(y) {
3488
3488
  if (document.activeElement === document.body)
3489
- for (const _ of w)
3489
+ for (const _ of y)
3490
3490
  _.removedNodes.length > 0 && De(s);
3491
3491
  };
3492
3492
  document.addEventListener("focusin", p), document.addEventListener("focusout", S);
3493
- const C = new MutationObserver(b);
3494
- return s && C.observe(s, { childList: !0, subtree: !0 }), () => {
3495
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", S), C.disconnect();
3493
+ const x = new MutationObserver(w);
3494
+ return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
3495
+ document.removeEventListener("focusin", p), document.removeEventListener("focusout", S), x.disconnect();
3496
3496
  };
3497
3497
  }
3498
3498
  }, [r, s, f.paused]), g.useEffect(() => {
@@ -3500,13 +3500,13 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
3500
3500
  Sr.add(f);
3501
3501
  const p = document.activeElement;
3502
3502
  if (!s.contains(p)) {
3503
- const b = new CustomEvent(Yt, br);
3504
- s.addEventListener(Yt, u), s.dispatchEvent(b), b.defaultPrevented || (Ns(zs(wo(s)), { select: !0 }), document.activeElement === p && De(s));
3503
+ const w = new CustomEvent(Yt, br);
3504
+ s.addEventListener(Yt, u), s.dispatchEvent(w), w.defaultPrevented || (Ns(zs(wo(s)), { select: !0 }), document.activeElement === p && De(s));
3505
3505
  }
3506
3506
  return () => {
3507
3507
  s.removeEventListener(Yt, u), setTimeout(() => {
3508
- const b = new CustomEvent(Zt, br);
3509
- s.addEventListener(Zt, c), s.dispatchEvent(b), b.defaultPrevented || De(p ?? document.body, { select: !0 }), s.removeEventListener(Zt, c), Sr.remove(f);
3508
+ const w = new CustomEvent(Zt, br);
3509
+ s.addEventListener(Zt, c), s.dispatchEvent(w), w.defaultPrevented || De(p ?? document.body, { select: !0 }), s.removeEventListener(Zt, c), Sr.remove(f);
3510
3510
  }, 0);
3511
3511
  };
3512
3512
  }
@@ -3514,10 +3514,10 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
3514
3514
  const v = g.useCallback(
3515
3515
  (p) => {
3516
3516
  if (!t && !r || f.paused) return;
3517
- const S = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, b = document.activeElement;
3518
- if (S && b) {
3519
- const C = p.currentTarget, [w, y] = Os(C);
3520
- w && y ? !p.shiftKey && b === y ? (p.preventDefault(), t && De(w, { select: !0 })) : p.shiftKey && b === w && (p.preventDefault(), t && De(y, { select: !0 })) : b === C && p.preventDefault();
3517
+ const S = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, w = document.activeElement;
3518
+ if (S && w) {
3519
+ const x = p.currentTarget, [y, b] = Os(x);
3520
+ y && b ? !p.shiftKey && w === b ? (p.preventDefault(), t && De(y, { select: !0 })) : p.shiftKey && w === y && (p.preventDefault(), t && De(b, { select: !0 })) : w === x && p.preventDefault();
3521
3521
  }
3522
3522
  },
3523
3523
  [t, r, f.paused]
@@ -3819,12 +3819,12 @@ var xo = Js(), en = function() {
3819
3819
  onScrollCapture: en,
3820
3820
  onWheelCapture: en,
3821
3821
  onTouchMoveCapture: en
3822
- }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, w = e.gapMode, y = yo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, F = Xs([t, n]), x = xe(xe({}, y), o);
3822
+ }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, b = yo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, k = Xs([t, n]), R = xe(xe({}, b), o);
3823
3823
  return g.createElement(
3824
3824
  g.Fragment,
3825
3825
  null,
3826
- c && g.createElement(_, { sideCar: xo, removeScrollBar: u, shards: m, noRelative: f, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!S, lockRef: t, gapMode: w }),
3827
- a ? g.cloneElement(g.Children.only(s), xe(xe({}, x), { ref: F })) : g.createElement(C, xe({}, x, { className: l, ref: F }), s)
3826
+ c && g.createElement(_, { sideCar: xo, removeScrollBar: u, shards: m, noRelative: f, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!S, lockRef: t, gapMode: y }),
3827
+ a ? g.cloneElement(g.Children.only(s), xe(xe({}, R), { ref: k })) : g.createElement(x, xe({}, R, { className: l, ref: k }), s)
3828
3828
  );
3829
3829
  });
3830
3830
  Wt.defaultProps = {
@@ -4026,10 +4026,10 @@ var Ze = En ? { passive: !1 } : !1, gl = function(e) {
4026
4026
  do {
4027
4027
  if (!s)
4028
4028
  break;
4029
- var f = Mo(e, s), v = f[0], p = f[1], S = f[2], b = p - S - i * v;
4030
- (v || b) && _o(e, s) && (m += b, d += v);
4031
- var C = s.parentNode;
4032
- s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
4029
+ var f = Mo(e, s), v = f[0], p = f[1], S = f[2], w = p - S - i * v;
4030
+ (v || w) && _o(e, s) && (m += w, d += v);
4031
+ var x = s.parentNode;
4032
+ s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
4033
4033
  } while (
4034
4034
  // portaled content
4035
4035
  !l && s !== document.body || // self content
@@ -4070,43 +4070,43 @@ function xl(e) {
4070
4070
  var s = g.useCallback(function(p, S) {
4071
4071
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
4072
4072
  return !a.current.allowPinchZoom;
4073
- var b = Mt(p), C = t.current, w = "deltaX" in p ? p.deltaX : C[0] - b[0], y = "deltaY" in p ? p.deltaY : C[1] - b[1], _, F = p.target, x = Math.abs(w) > Math.abs(y) ? "h" : "v";
4074
- if ("touches" in p && x === "h" && F.type === "range")
4073
+ var w = Mt(p), x = t.current, y = "deltaX" in p ? p.deltaX : x[0] - w[0], b = "deltaY" in p ? p.deltaY : x[1] - w[1], _, k = p.target, R = Math.abs(y) > Math.abs(b) ? "h" : "v";
4074
+ if ("touches" in p && R === "h" && k.type === "range")
4075
4075
  return !1;
4076
- var E = window.getSelection(), R = E && E.anchorNode, $ = R ? R === F || R.contains(F) : !1;
4077
- if ($)
4076
+ var C = window.getSelection(), E = C && C.anchorNode, I = E ? E === k || E.contains(k) : !1;
4077
+ if (I)
4078
4078
  return !1;
4079
- var z = Er(x, F);
4080
- if (!z)
4079
+ var T = Er(R, k);
4080
+ if (!T)
4081
4081
  return !0;
4082
- if (z ? _ = x : (_ = x === "v" ? "h" : "v", z = Er(x, F)), !z)
4082
+ if (T ? _ = R : (_ = R === "v" ? "h" : "v", T = Er(R, k)), !T)
4083
4083
  return !1;
4084
- if (!r.current && "changedTouches" in p && (w || y) && (r.current = _), !_)
4084
+ if (!r.current && "changedTouches" in p && (y || b) && (r.current = _), !_)
4085
4085
  return !0;
4086
- var W = r.current || _;
4087
- return wl(W, S, p, W === "h" ? w : y);
4086
+ var H = r.current || _;
4087
+ return wl(H, S, p, H === "h" ? y : b);
4088
4088
  }, []), l = g.useCallback(function(p) {
4089
4089
  var S = p;
4090
4090
  if (!(!Je.length || Je[Je.length - 1] !== i)) {
4091
- var b = "deltaY" in S ? _r(S) : Mt(S), C = n.current.filter(function(_) {
4092
- return _.name === S.type && (_.target === S.target || S.target === _.shadowParent) && Sl(_.delta, b);
4091
+ var w = "deltaY" in S ? _r(S) : Mt(S), x = n.current.filter(function(_) {
4092
+ return _.name === S.type && (_.target === S.target || S.target === _.shadowParent) && Sl(_.delta, w);
4093
4093
  })[0];
4094
- if (C && C.should) {
4094
+ if (x && x.should) {
4095
4095
  S.cancelable && S.preventDefault();
4096
4096
  return;
4097
4097
  }
4098
- if (!C) {
4099
- var w = (a.current.shards || []).map(Mr).filter(Boolean).filter(function(_) {
4098
+ if (!x) {
4099
+ var y = (a.current.shards || []).map(Mr).filter(Boolean).filter(function(_) {
4100
4100
  return _.contains(S.target);
4101
- }), y = w.length > 0 ? s(S, w[0]) : !a.current.noIsolation;
4102
- y && S.cancelable && S.preventDefault();
4101
+ }), b = y.length > 0 ? s(S, y[0]) : !a.current.noIsolation;
4102
+ b && S.cancelable && S.preventDefault();
4103
4103
  }
4104
4104
  }
4105
- }, []), u = g.useCallback(function(p, S, b, C) {
4106
- var w = { name: p, delta: S, target: b, should: C, shadowParent: Rl(b) };
4107
- n.current.push(w), setTimeout(function() {
4108
- n.current = n.current.filter(function(y) {
4109
- return y !== w;
4105
+ }, []), u = g.useCallback(function(p, S, w, x) {
4106
+ var y = { name: p, delta: S, target: w, should: x, shadowParent: Rl(w) };
4107
+ n.current.push(y), setTimeout(function() {
4108
+ n.current = n.current.filter(function(b) {
4109
+ return b !== y;
4110
4110
  });
4111
4111
  }, 1);
4112
4112
  }, []), c = g.useCallback(function(p) {
@@ -4176,8 +4176,8 @@ var _l = function(e) {
4176
4176
  try {
4177
4177
  var f = d.getAttribute(r), v = f !== null && f !== "false", p = (Qe.get(d) || 0) + 1, S = (i.get(d) || 0) + 1;
4178
4178
  Qe.set(d, p), i.set(d, S), a.push(d), p === 1 && v && It.set(d, !0), S === 1 && d.setAttribute(t, "true"), v || d.setAttribute(r, "true");
4179
- } catch (b) {
4180
- console.error("aria-hidden: cannot operate on ", d, b);
4179
+ } catch (w) {
4180
+ console.error("aria-hidden: cannot operate on ", d, w);
4181
4181
  }
4182
4182
  });
4183
4183
  };
@@ -4333,7 +4333,7 @@ var Al = g.forwardRef(
4333
4333
  ), To = g.forwardRef(
4334
4334
  (e, n) => {
4335
4335
  const { __scopeDialog: t, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ye(je, t), l = g.useRef(null), u = Ke(n, l);
4336
- return Gs(), /* @__PURE__ */ G(yn, { children: [
4336
+ return Gs(), /* @__PURE__ */ W(yn, { children: [
4337
4337
  /* @__PURE__ */ h(
4338
4338
  bo,
4339
4339
  {
@@ -4357,7 +4357,7 @@ var Al = g.forwardRef(
4357
4357
  )
4358
4358
  }
4359
4359
  ),
4360
- /* @__PURE__ */ G(yn, { children: [
4360
+ /* @__PURE__ */ W(yn, { children: [
4361
4361
  /* @__PURE__ */ h(zl, { titleId: s.titleId }),
4362
4362
  /* @__PURE__ */ h(Ll, { contentRef: l, descriptionId: s.descriptionId })
4363
4363
  ] })
@@ -4420,7 +4420,7 @@ function Gl(e) {
4420
4420
  let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
4421
4421
  t.type = "text/css", n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
4422
4422
  }
4423
- const Ko = D.createContext({
4423
+ const Ko = P.createContext({
4424
4424
  drawerRef: {
4425
4425
  current: null
4426
4426
  },
@@ -4468,7 +4468,7 @@ const Ko = D.createContext({
4468
4468
  container: null,
4469
4469
  autoFocus: !1
4470
4470
  }), wt = () => {
4471
- const e = D.useContext(Ko);
4471
+ const e = P.useContext(Ko);
4472
4472
  if (!e)
4473
4473
  throw new Error("useDrawerContext must be used within a Drawer.Root");
4474
4474
  return e;
@@ -4683,14 +4683,14 @@ const re = {
4683
4683
  ]
4684
4684
  }, Qo = 0.4, iu = 0.25, au = 100, ei = 8, Be = 16, Mn = 26, sn = "vaul-dragging";
4685
4685
  function ti(e) {
4686
- const n = D.useRef(e);
4687
- return D.useEffect(() => {
4686
+ const n = P.useRef(e);
4687
+ return P.useEffect(() => {
4688
4688
  n.current = e;
4689
- }), D.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
4689
+ }), P.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
4690
4690
  }
4691
4691
  function su({ defaultProp: e, onChange: n }) {
4692
- const t = D.useState(e), [r] = t, o = D.useRef(r), i = ti(n);
4693
- return D.useEffect(() => {
4692
+ const t = P.useState(e), [r] = t, o = P.useRef(r), i = ti(n);
4693
+ return P.useEffect(() => {
4694
4694
  o.current !== r && (i(r), o.current = r);
4695
4695
  }, [
4696
4696
  r,
@@ -4703,7 +4703,7 @@ function ni({ prop: e, defaultProp: n, onChange: t = () => {
4703
4703
  const [r, o] = su({
4704
4704
  defaultProp: n,
4705
4705
  onChange: t
4706
- }), i = e !== void 0, a = i ? e : r, s = ti(t), l = D.useCallback((u) => {
4706
+ }), i = e !== void 0, a = i ? e : r, s = ti(t), l = P.useCallback((u) => {
4707
4707
  if (i) {
4708
4708
  const m = typeof u == "function" ? u(e) : u;
4709
4709
  m !== e && s(m);
@@ -4725,30 +4725,30 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
4725
4725
  prop: e,
4726
4726
  defaultProp: t?.[0],
4727
4727
  onChange: n
4728
- }), [d, f] = D.useState(typeof window < "u" ? {
4728
+ }), [d, f] = P.useState(typeof window < "u" ? {
4729
4729
  innerWidth: window.innerWidth,
4730
4730
  innerHeight: window.innerHeight
4731
4731
  } : void 0);
4732
- D.useEffect(() => {
4733
- function x() {
4732
+ P.useEffect(() => {
4733
+ function R() {
4734
4734
  f({
4735
4735
  innerWidth: window.innerWidth,
4736
4736
  innerHeight: window.innerHeight
4737
4737
  });
4738
4738
  }
4739
- return window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
4739
+ return window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
4740
4740
  }, []);
4741
- const v = D.useMemo(() => c === t?.[t.length - 1] || null, [
4741
+ const v = P.useMemo(() => c === t?.[t.length - 1] || null, [
4742
4742
  t,
4743
4743
  c
4744
- ]), p = D.useMemo(() => {
4745
- var x;
4746
- return (x = t?.findIndex((E) => E === c)) != null ? x : null;
4744
+ ]), p = P.useMemo(() => {
4745
+ var R;
4746
+ return (R = t?.findIndex((C) => C === c)) != null ? R : null;
4747
4747
  }, [
4748
4748
  t,
4749
4749
  c
4750
- ]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t, b = D.useMemo(() => {
4751
- const x = l ? {
4750
+ ]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t, w = P.useMemo(() => {
4751
+ const R = l ? {
4752
4752
  width: l.getBoundingClientRect().width,
4753
4753
  height: l.getBoundingClientRect().height
4754
4754
  } : typeof window < "u" ? {
@@ -4758,121 +4758,121 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
4758
4758
  width: 0,
4759
4759
  height: 0
4760
4760
  };
4761
- var E;
4762
- return (E = t?.map((R) => {
4763
- const $ = typeof R == "string";
4764
- let z = 0;
4765
- if ($ && (z = parseInt(R, 10)), ae(s)) {
4766
- const A = $ ? z : d ? R * x.height : 0;
4767
- return d ? s === "bottom" ? x.height - A : -x.height + A : A;
4761
+ var C;
4762
+ return (C = t?.map((E) => {
4763
+ const I = typeof E == "string";
4764
+ let T = 0;
4765
+ if (I && (T = parseInt(E, 10)), ae(s)) {
4766
+ const $ = I ? T : d ? E * R.height : 0;
4767
+ return d ? s === "bottom" ? R.height - $ : -R.height + $ : $;
4768
4768
  }
4769
- const W = $ ? z : d ? R * x.width : 0;
4770
- return d ? s === "right" ? x.width - W : -x.width + W : W;
4771
- })) != null ? E : [];
4769
+ const H = I ? T : d ? E * R.width : 0;
4770
+ return d ? s === "right" ? R.width - H : -R.width + H : H;
4771
+ })) != null ? C : [];
4772
4772
  }, [
4773
4773
  t,
4774
4774
  d,
4775
4775
  l
4776
- ]), C = D.useMemo(() => p !== null ? b?.[p] : null, [
4777
- b,
4776
+ ]), x = P.useMemo(() => p !== null ? w?.[p] : null, [
4777
+ w,
4778
4778
  p
4779
- ]), w = D.useCallback((x) => {
4780
- var E;
4781
- const R = (E = b?.findIndex(($) => $ === x)) != null ? E : null;
4782
- a(R), le(r.current, {
4779
+ ]), y = P.useCallback((R) => {
4780
+ var C;
4781
+ const E = (C = w?.findIndex((I) => I === R)) != null ? C : null;
4782
+ a(E), le(r.current, {
4783
4783
  transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
4784
- transform: ae(s) ? `translate3d(0, ${x}px, 0)` : `translate3d(${x}px, 0, 0)`
4785
- }), b && R !== b.length - 1 && i !== void 0 && R !== i && R < i ? le(o.current, {
4784
+ transform: ae(s) ? `translate3d(0, ${R}px, 0)` : `translate3d(${R}px, 0, 0)`
4785
+ }), w && E !== w.length - 1 && i !== void 0 && E !== i && E < i ? le(o.current, {
4786
4786
  transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
4787
4787
  opacity: "0"
4788
4788
  }) : le(o.current, {
4789
4789
  transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
4790
4790
  opacity: "1"
4791
- }), m(t?.[Math.max(R, 0)]);
4791
+ }), m(t?.[Math.max(E, 0)]);
4792
4792
  }, [
4793
4793
  r.current,
4794
4794
  t,
4795
- b,
4795
+ w,
4796
4796
  i,
4797
4797
  o,
4798
4798
  m
4799
4799
  ]);
4800
- D.useEffect(() => {
4800
+ P.useEffect(() => {
4801
4801
  if (c || e) {
4802
- var x;
4803
- const E = (x = t?.findIndex((R) => R === e || R === c)) != null ? x : -1;
4804
- b && E !== -1 && typeof b[E] == "number" && w(b[E]);
4802
+ var R;
4803
+ const C = (R = t?.findIndex((E) => E === e || E === c)) != null ? R : -1;
4804
+ w && C !== -1 && typeof w[C] == "number" && y(w[C]);
4805
4805
  }
4806
4806
  }, [
4807
4807
  c,
4808
4808
  e,
4809
4809
  t,
4810
- b,
4811
- w
4810
+ w,
4811
+ y
4812
4812
  ]);
4813
- function y({ draggedDistance: x, closeDrawer: E, velocity: R, dismissible: $ }) {
4813
+ function b({ draggedDistance: R, closeDrawer: C, velocity: E, dismissible: I }) {
4814
4814
  if (i === void 0) return;
4815
- const z = s === "bottom" || s === "right" ? (C ?? 0) - x : (C ?? 0) + x, W = p === i - 1, A = p === 0, ne = x > 0;
4816
- if (W && le(o.current, {
4815
+ const T = s === "bottom" || s === "right" ? (x ?? 0) - R : (x ?? 0) + R, H = p === i - 1, $ = p === 0, ne = R > 0;
4816
+ if (H && le(o.current, {
4817
4817
  transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`
4818
- }), !u && R > 2 && !ne) {
4819
- $ ? E() : w(b[0]);
4818
+ }), !u && E > 2 && !ne) {
4819
+ I ? C() : y(w[0]);
4820
4820
  return;
4821
4821
  }
4822
- if (!u && R > 2 && ne && b && t) {
4823
- w(b[t.length - 1]);
4822
+ if (!u && E > 2 && ne && w && t) {
4823
+ y(w[t.length - 1]);
4824
4824
  return;
4825
4825
  }
4826
- const J = b?.reduce((ee, ce) => typeof ee != "number" || typeof ce != "number" ? ee : Math.abs(ce - z) < Math.abs(ee - z) ? ce : ee), Q = ae(s) ? window.innerHeight : window.innerWidth;
4827
- if (R > Qo && Math.abs(x) < Q * 0.4) {
4826
+ const J = w?.reduce((ee, ce) => typeof ee != "number" || typeof ce != "number" ? ee : Math.abs(ce - T) < Math.abs(ee - T) ? ce : ee), Q = ae(s) ? window.innerHeight : window.innerWidth;
4827
+ if (E > Qo && Math.abs(R) < Q * 0.4) {
4828
4828
  const ee = ne ? 1 : -1;
4829
4829
  if (ee > 0 && v && t) {
4830
- w(b[t.length - 1]);
4830
+ y(w[t.length - 1]);
4831
4831
  return;
4832
4832
  }
4833
- if (A && ee < 0 && $ && E(), p === null) return;
4834
- w(b[p + ee]);
4833
+ if ($ && ee < 0 && I && C(), p === null) return;
4834
+ y(w[p + ee]);
4835
4835
  return;
4836
4836
  }
4837
- w(J);
4837
+ y(J);
4838
4838
  }
4839
- function _({ draggedDistance: x }) {
4840
- if (C === null) return;
4841
- const E = s === "bottom" || s === "right" ? C - x : C + x;
4842
- (s === "bottom" || s === "right") && E < b[b.length - 1] || (s === "top" || s === "left") && E > b[b.length - 1] || le(r.current, {
4843
- transform: ae(s) ? `translate3d(0, ${E}px, 0)` : `translate3d(${E}px, 0, 0)`
4839
+ function _({ draggedDistance: R }) {
4840
+ if (x === null) return;
4841
+ const C = s === "bottom" || s === "right" ? x - R : x + R;
4842
+ (s === "bottom" || s === "right") && C < w[w.length - 1] || (s === "top" || s === "left") && C > w[w.length - 1] || le(r.current, {
4843
+ transform: ae(s) ? `translate3d(0, ${C}px, 0)` : `translate3d(${C}px, 0, 0)`
4844
4844
  });
4845
4845
  }
4846
- function F(x, E) {
4847
- if (!t || typeof p != "number" || !b || i === void 0) return null;
4848
- const R = p === i - 1;
4849
- if (p >= i && E)
4846
+ function k(R, C) {
4847
+ if (!t || typeof p != "number" || !w || i === void 0) return null;
4848
+ const E = p === i - 1;
4849
+ if (p >= i && C)
4850
4850
  return 0;
4851
- if (R && !E) return 1;
4852
- if (!S && !R) return null;
4853
- const z = R ? p + 1 : p - 1, W = R ? b[z] - b[z - 1] : b[z + 1] - b[z], A = x / Math.abs(W);
4854
- return R ? 1 - A : A;
4851
+ if (E && !C) return 1;
4852
+ if (!S && !E) return null;
4853
+ const T = E ? p + 1 : p - 1, H = E ? w[T] - w[T - 1] : w[T + 1] - w[T], $ = R / Math.abs(H);
4854
+ return E ? 1 - $ : $;
4855
4855
  }
4856
4856
  return {
4857
4857
  isLastSnapPoint: v,
4858
4858
  activeSnapPoint: c,
4859
4859
  shouldFade: S,
4860
- getPercentageDragged: F,
4860
+ getPercentageDragged: k,
4861
4861
  setActiveSnapPoint: m,
4862
4862
  activeSnapPointIndex: p,
4863
- onRelease: y,
4863
+ onRelease: b,
4864
4864
  onDrag: _,
4865
- snapPointsOffset: b
4865
+ snapPointsOffset: w
4866
4866
  };
4867
4867
  }
4868
4868
  const uu = () => () => {
4869
4869
  };
4870
4870
  function cu() {
4871
- const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i = D.useRef(null), a = Ki(() => document.body.style.backgroundColor, []);
4871
+ const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i = P.useRef(null), a = Ki(() => document.body.style.backgroundColor, []);
4872
4872
  function s() {
4873
4873
  return (window.innerWidth - Mn) / window.innerWidth;
4874
4874
  }
4875
- D.useEffect(() => {
4875
+ P.useEffect(() => {
4876
4876
  if (n && t) {
4877
4877
  i.current && clearTimeout(i.current);
4878
4878
  const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
@@ -4908,7 +4908,7 @@ function cu() {
4908
4908
  }
4909
4909
  let ct = null;
4910
4910
  function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: i }) {
4911
- const [a, s] = D.useState(() => typeof window < "u" ? window.location.href : ""), l = D.useRef(0), u = D.useCallback(() => {
4911
+ const [a, s] = P.useState(() => typeof window < "u" ? window.location.href : ""), l = P.useRef(0), u = P.useCallback(() => {
4912
4912
  if (Ir() && ct === null && e && !i) {
4913
4913
  ct = {
4914
4914
  position: document.body.style.position,
@@ -4930,7 +4930,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
4930
4930
  }
4931
4931
  }, [
4932
4932
  e
4933
- ]), c = D.useCallback(() => {
4933
+ ]), c = P.useCallback(() => {
4934
4934
  if (Ir() && ct !== null && !i) {
4935
4935
  const m = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
4936
4936
  Object.assign(document.body.style, ct), window.requestAnimationFrame(() => {
@@ -4944,14 +4944,14 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
4944
4944
  }, [
4945
4945
  a
4946
4946
  ]);
4947
- return D.useEffect(() => {
4947
+ return P.useEffect(() => {
4948
4948
  function m() {
4949
4949
  l.current = window.scrollY;
4950
4950
  }
4951
4951
  return m(), window.addEventListener("scroll", m), () => {
4952
4952
  window.removeEventListener("scroll", m);
4953
4953
  };
4954
- }, []), D.useEffect(() => {
4954
+ }, []), P.useEffect(() => {
4955
4955
  if (n)
4956
4956
  return () => {
4957
4957
  typeof document > "u" || document.querySelector("[data-vaul-drawer]") || c();
@@ -4959,7 +4959,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
4959
4959
  }, [
4960
4960
  n,
4961
4961
  c
4962
- ]), D.useEffect(() => {
4962
+ ]), P.useEffect(() => {
4963
4963
  t || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && u(), n || window.setTimeout(() => {
4964
4964
  c();
4965
4965
  }, 500)) : c());
@@ -4975,63 +4975,63 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
4975
4975
  restorePositionSetting: c
4976
4976
  };
4977
4977
  }
4978
- function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose: b, nested: C, noBodyStyles: w = !1, direction: y = "bottom", defaultOpen: _ = !1, disablePreventScroll: F = !0, snapToSequentialPoint: x = !1, preventScrollRestoration: E = !1, repositionInputs: R = !0, onAnimationEnd: $, container: z, autoFocus: W = !1 }) {
4979
- var A, ne;
4978
+ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose: w, nested: x, noBodyStyles: y = !1, direction: b = "bottom", defaultOpen: _ = !1, disablePreventScroll: k = !0, snapToSequentialPoint: R = !1, preventScrollRestoration: C = !1, repositionInputs: E = !0, onAnimationEnd: I, container: T, autoFocus: H = !1 }) {
4979
+ var $, ne;
4980
4980
  const [J = !1, Q] = ni({
4981
4981
  defaultProp: _,
4982
4982
  prop: e,
4983
- onChange: (B) => {
4984
- n?.(B), !B && !C && Li(), setTimeout(() => {
4985
- $?.(B);
4986
- }, re.DURATION * 1e3), B && !S && typeof window < "u" && window.requestAnimationFrame(() => {
4983
+ onChange: (G) => {
4984
+ n?.(G), !G && !x && Li(), setTimeout(() => {
4985
+ I?.(G);
4986
+ }, re.DURATION * 1e3), G && !S && typeof window < "u" && window.requestAnimationFrame(() => {
4987
4987
  document.body.style.pointerEvents = "auto";
4988
- }), B || (document.body.style.pointerEvents = "auto");
4988
+ }), G || (document.body.style.pointerEvents = "auto");
4989
4989
  }
4990
- }), [ee, ce] = D.useState(!1), [fe, O] = D.useState(!1), [ze, M] = D.useState(!1), T = D.useRef(null), U = D.useRef(null), k = D.useRef(null), H = D.useRef(null), X = D.useRef(null), oe = D.useRef(!1), K = D.useRef(null), ve = D.useRef(0), be = D.useRef(!1), Ve = D.useRef(!_), Xe = D.useRef(0), j = D.useRef(null), Jn = D.useRef(((A = j.current) == null ? void 0 : A.getBoundingClientRect().height) || 0), Qn = D.useRef(((ne = j.current) == null ? void 0 : ne.getBoundingClientRect().width) || 0), Kt = D.useRef(0), Ai = D.useCallback((B) => {
4991
- i && B === at.length - 1 && (U.current = /* @__PURE__ */ new Date());
4990
+ }), [ee, ce] = P.useState(!1), [fe, A] = P.useState(!1), [ze, M] = P.useState(!1), z = P.useRef(null), U = P.useRef(null), D = P.useRef(null), B = P.useRef(null), X = P.useRef(null), oe = P.useRef(!1), K = P.useRef(null), ve = P.useRef(0), be = P.useRef(!1), Ve = P.useRef(!_), Xe = P.useRef(0), j = P.useRef(null), Jn = P.useRef((($ = j.current) == null ? void 0 : $.getBoundingClientRect().height) || 0), Qn = P.useRef(((ne = j.current) == null ? void 0 : ne.getBoundingClientRect().width) || 0), Kt = P.useRef(0), Ai = P.useCallback((G) => {
4991
+ i && G === at.length - 1 && (U.current = /* @__PURE__ */ new Date());
4992
4992
  }, []), { activeSnapPoint: $i, activeSnapPointIndex: Ye, setActiveSnapPoint: er, onRelease: Ti, snapPointsOffset: at, onDrag: zi, shouldFade: tr, getPercentageDragged: Vi } = lu({
4993
4993
  snapPoints: i,
4994
4994
  activeSnapPointProp: f,
4995
4995
  setActiveSnapPointProp: v,
4996
4996
  drawerRef: j,
4997
4997
  fadeFromIndex: d,
4998
- overlayRef: T,
4998
+ overlayRef: z,
4999
4999
  onSnapPointChange: Ai,
5000
- direction: y,
5001
- container: z,
5002
- snapToSequentialPoint: x
5000
+ direction: b,
5001
+ container: T,
5002
+ snapToSequentialPoint: R
5003
5003
  });
5004
5004
  Zl({
5005
- isDisabled: !J || fe || !S || ze || !ee || !R || !F
5005
+ isDisabled: !J || fe || !S || ze || !ee || !E || !k
5006
5006
  });
5007
5007
  const { restorePositionSetting: Li } = du({
5008
5008
  isOpen: J,
5009
5009
  modal: S,
5010
- nested: C ?? !1,
5010
+ nested: x ?? !1,
5011
5011
  hasBeenOpened: ee,
5012
- preventScrollRestoration: E,
5013
- noBodyStyles: w
5012
+ preventScrollRestoration: C,
5013
+ noBodyStyles: y
5014
5014
  });
5015
5015
  function yt() {
5016
5016
  return (window.innerWidth - Mn) / window.innerWidth;
5017
5017
  }
5018
- function Hi(B) {
5018
+ function Hi(G) {
5019
5019
  var Z, te;
5020
- !c && !i || j.current && !j.current.contains(B.target) || (Jn.current = ((Z = j.current) == null ? void 0 : Z.getBoundingClientRect().height) || 0, Qn.current = ((te = j.current) == null ? void 0 : te.getBoundingClientRect().width) || 0, O(!0), k.current = /* @__PURE__ */ new Date(), Xo() && window.addEventListener("touchend", () => oe.current = !1, {
5020
+ !c && !i || j.current && !j.current.contains(G.target) || (Jn.current = ((Z = j.current) == null ? void 0 : Z.getBoundingClientRect().height) || 0, Qn.current = ((te = j.current) == null ? void 0 : te.getBoundingClientRect().width) || 0, A(!0), D.current = /* @__PURE__ */ new Date(), Xo() && window.addEventListener("touchend", () => oe.current = !1, {
5021
5021
  once: !0
5022
- }), B.target.setPointerCapture(B.pointerId), ve.current = ae(y) ? B.pageY : B.pageX);
5022
+ }), G.target.setPointerCapture(G.pointerId), ve.current = ae(b) ? G.pageY : G.pageX);
5023
5023
  }
5024
- function nr(B, Z) {
5024
+ function nr(G, Z) {
5025
5025
  var te;
5026
- let Y = B;
5027
- const ie = (te = window.getSelection()) == null ? void 0 : te.toString(), me = j.current ? Dt(j.current, y) : null, ge = /* @__PURE__ */ new Date();
5026
+ let Y = G;
5027
+ const ie = (te = window.getSelection()) == null ? void 0 : te.toString(), me = j.current ? Dt(j.current, b) : null, ge = /* @__PURE__ */ new Date();
5028
5028
  if (Y.tagName === "SELECT" || Y.hasAttribute("data-vaul-no-drag") || Y.closest("[data-vaul-no-drag]"))
5029
5029
  return !1;
5030
- if (y === "right" || y === "left")
5030
+ if (b === "right" || b === "left")
5031
5031
  return !0;
5032
5032
  if (U.current && ge.getTime() - U.current.getTime() < 500)
5033
5033
  return !1;
5034
- if (me !== null && (y === "bottom" ? me > 0 : me < 0))
5034
+ if (me !== null && (b === "bottom" ? me > 0 : me < 0))
5035
5035
  return !0;
5036
5036
  if (ie && ie.length > 0)
5037
5037
  return !1;
@@ -5048,55 +5048,55 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
5048
5048
  }
5049
5049
  return !0;
5050
5050
  }
5051
- function Bi(B) {
5051
+ function Bi(G) {
5052
5052
  if (j.current && fe) {
5053
- const Z = y === "bottom" || y === "right" ? 1 : -1, te = (ve.current - (ae(y) ? B.pageY : B.pageX)) * Z, Y = te > 0, ie = i && !c && !Y;
5053
+ const Z = b === "bottom" || b === "right" ? 1 : -1, te = (ve.current - (ae(b) ? G.pageY : G.pageX)) * Z, Y = te > 0, ie = i && !c && !Y;
5054
5054
  if (ie && Ye === 0) return;
5055
- const me = Math.abs(te), ge = document.querySelector("[data-vaul-drawer-wrapper]"), Me = y === "bottom" || y === "top" ? Jn.current : Qn.current;
5055
+ const me = Math.abs(te), ge = document.querySelector("[data-vaul-drawer-wrapper]"), Me = b === "bottom" || b === "top" ? Jn.current : Qn.current;
5056
5056
  let we = me / Me;
5057
5057
  const Le = Vi(me, Y);
5058
- if (Le !== null && (we = Le), ie && we >= 1 || !oe.current && !nr(B.target, Y)) return;
5058
+ if (Le !== null && (we = Le), ie && we >= 1 || !oe.current && !nr(G.target, Y)) return;
5059
5059
  if (j.current.classList.add(sn), oe.current = !0, le(j.current, {
5060
5060
  transition: "none"
5061
- }), le(T.current, {
5061
+ }), le(z.current, {
5062
5062
  transition: "none"
5063
5063
  }), i && zi({
5064
5064
  draggedDistance: te
5065
5065
  }), Y && !i) {
5066
5066
  const Ce = ru(te), Ct = Math.min(Ce * -1, 0) * Z;
5067
5067
  le(j.current, {
5068
- transform: ae(y) ? `translate3d(0, ${Ct}px, 0)` : `translate3d(${Ct}px, 0, 0)`
5068
+ transform: ae(b) ? `translate3d(0, ${Ct}px, 0)` : `translate3d(${Ct}px, 0, 0)`
5069
5069
  });
5070
5070
  return;
5071
5071
  }
5072
5072
  const Ie = 1 - we;
5073
- if ((tr || d && Ye === d - 1) && (r?.(B, we), le(T.current, {
5073
+ if ((tr || d && Ye === d - 1) && (r?.(G, we), le(z.current, {
5074
5074
  opacity: `${Ie}`,
5075
5075
  transition: "none"
5076
- }, !0)), ge && T.current && a) {
5076
+ }, !0)), ge && z.current && a) {
5077
5077
  const Ce = Math.min(yt() + we * (1 - yt()), 1), Ct = 8 - we * 8, or = Math.max(0, 14 - we * 14);
5078
5078
  le(ge, {
5079
5079
  borderRadius: `${Ct}px`,
5080
- transform: ae(y) ? `scale(${Ce}) translate3d(0, ${or}px, 0)` : `scale(${Ce}) translate3d(${or}px, 0, 0)`,
5080
+ transform: ae(b) ? `scale(${Ce}) translate3d(0, ${or}px, 0)` : `scale(${Ce}) translate3d(${or}px, 0, 0)`,
5081
5081
  transition: "none"
5082
5082
  }, !0);
5083
5083
  }
5084
5084
  if (!i) {
5085
5085
  const Ce = me * Z;
5086
5086
  le(j.current, {
5087
- transform: ae(y) ? `translate3d(0, ${Ce}px, 0)` : `translate3d(${Ce}px, 0, 0)`
5087
+ transform: ae(b) ? `translate3d(0, ${Ce}px, 0)` : `translate3d(${Ce}px, 0, 0)`
5088
5088
  });
5089
5089
  }
5090
5090
  }
5091
5091
  }
5092
- D.useEffect(() => {
5092
+ P.useEffect(() => {
5093
5093
  window.requestAnimationFrame(() => {
5094
5094
  Ve.current = !0;
5095
5095
  });
5096
- }, []), D.useEffect(() => {
5097
- var B;
5096
+ }, []), P.useEffect(() => {
5097
+ var G;
5098
5098
  function Z() {
5099
- if (!j.current || !R) return;
5099
+ if (!j.current || !E) return;
5100
5100
  const te = document.activeElement;
5101
5101
  if (_n(te) || be.current) {
5102
5102
  var Y;
@@ -5117,7 +5117,7 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
5117
5117
  i && i.length > 0 && !be.current ? j.current.style.bottom = "0px" : j.current.style.bottom = `${Math.max(ge, 0)}px`;
5118
5118
  }
5119
5119
  }
5120
- return (B = window.visualViewport) == null || B.addEventListener("resize", Z), () => {
5120
+ return (G = window.visualViewport) == null || G.addEventListener("resize", Z), () => {
5121
5121
  var te;
5122
5122
  return (te = window.visualViewport) == null ? void 0 : te.removeEventListener("resize", Z);
5123
5123
  };
@@ -5126,24 +5126,24 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
5126
5126
  i,
5127
5127
  at
5128
5128
  ]);
5129
- function st(B) {
5130
- Gi(), b?.(), B || Q(!1), setTimeout(() => {
5129
+ function st(G) {
5130
+ Gi(), w?.(), G || Q(!1), setTimeout(() => {
5131
5131
  i && er(i[0]);
5132
5132
  }, re.DURATION * 1e3);
5133
5133
  }
5134
5134
  function rr() {
5135
5135
  if (!j.current) return;
5136
- const B = document.querySelector("[data-vaul-drawer-wrapper]"), Z = Dt(j.current, y);
5136
+ const G = document.querySelector("[data-vaul-drawer-wrapper]"), Z = Dt(j.current, b);
5137
5137
  le(j.current, {
5138
5138
  transform: "translate3d(0, 0, 0)",
5139
5139
  transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`
5140
- }), le(T.current, {
5140
+ }), le(z.current, {
5141
5141
  transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
5142
5142
  opacity: "1"
5143
- }), a && Z && Z > 0 && J && le(B, {
5143
+ }), a && Z && Z > 0 && J && le(G, {
5144
5144
  borderRadius: `${ei}px`,
5145
5145
  overflow: "hidden",
5146
- ...ae(y) ? {
5146
+ ...ae(b) ? {
5147
5147
  transform: `scale(${yt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
5148
5148
  transformOrigin: "top"
5149
5149
  } : {
@@ -5156,97 +5156,97 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
5156
5156
  }, !0);
5157
5157
  }
5158
5158
  function Gi() {
5159
- !fe || !j.current || (j.current.classList.remove(sn), oe.current = !1, O(!1), H.current = /* @__PURE__ */ new Date());
5159
+ !fe || !j.current || (j.current.classList.remove(sn), oe.current = !1, A(!1), B.current = /* @__PURE__ */ new Date());
5160
5160
  }
5161
- function Wi(B) {
5161
+ function Wi(G) {
5162
5162
  if (!fe || !j.current) return;
5163
- j.current.classList.remove(sn), oe.current = !1, O(!1), H.current = /* @__PURE__ */ new Date();
5164
- const Z = Dt(j.current, y);
5165
- if (!B || !nr(B.target, !1) || !Z || Number.isNaN(Z) || k.current === null) return;
5166
- const te = H.current.getTime() - k.current.getTime(), Y = ve.current - (ae(y) ? B.pageY : B.pageX), ie = Math.abs(Y) / te;
5163
+ j.current.classList.remove(sn), oe.current = !1, A(!1), B.current = /* @__PURE__ */ new Date();
5164
+ const Z = Dt(j.current, b);
5165
+ if (!G || !nr(G.target, !1) || !Z || Number.isNaN(Z) || D.current === null) return;
5166
+ const te = B.current.getTime() - D.current.getTime(), Y = ve.current - (ae(b) ? G.pageY : G.pageX), ie = Math.abs(Y) / te;
5167
5167
  if (ie > 0.05 && (M(!0), setTimeout(() => {
5168
5168
  M(!1);
5169
5169
  }, 200)), i) {
5170
5170
  Ti({
5171
- draggedDistance: Y * (y === "bottom" || y === "right" ? 1 : -1),
5171
+ draggedDistance: Y * (b === "bottom" || b === "right" ? 1 : -1),
5172
5172
  closeDrawer: st,
5173
5173
  velocity: ie,
5174
5174
  dismissible: c
5175
- }), o?.(B, !0);
5175
+ }), o?.(G, !0);
5176
5176
  return;
5177
5177
  }
5178
- if (y === "bottom" || y === "right" ? Y > 0 : Y < 0) {
5179
- rr(), o?.(B, !0);
5178
+ if (b === "bottom" || b === "right" ? Y > 0 : Y < 0) {
5179
+ rr(), o?.(G, !0);
5180
5180
  return;
5181
5181
  }
5182
5182
  if (ie > Qo) {
5183
- st(), o?.(B, !1);
5183
+ st(), o?.(G, !1);
5184
5184
  return;
5185
5185
  }
5186
5186
  var me;
5187
5187
  const ge = Math.min((me = j.current.getBoundingClientRect().height) != null ? me : 0, window.innerHeight);
5188
5188
  var Me;
5189
- const we = Math.min((Me = j.current.getBoundingClientRect().width) != null ? Me : 0, window.innerWidth), Le = y === "left" || y === "right";
5189
+ const we = Math.min((Me = j.current.getBoundingClientRect().width) != null ? Me : 0, window.innerWidth), Le = b === "left" || b === "right";
5190
5190
  if (Math.abs(Z) >= (Le ? we : ge) * l) {
5191
- st(), o?.(B, !1);
5191
+ st(), o?.(G, !1);
5192
5192
  return;
5193
5193
  }
5194
- o?.(B, !0), rr();
5194
+ o?.(G, !0), rr();
5195
5195
  }
5196
- D.useEffect(() => (J && (le(document.documentElement, {
5196
+ P.useEffect(() => (J && (le(document.documentElement, {
5197
5197
  scrollBehavior: "auto"
5198
5198
  }), U.current = /* @__PURE__ */ new Date()), () => {
5199
5199
  nu(document.documentElement, "scrollBehavior");
5200
5200
  }), [
5201
5201
  J
5202
5202
  ]);
5203
- function ji(B) {
5204
- const Z = B ? (window.innerWidth - Be) / window.innerWidth : 1, te = B ? -Be : 0;
5203
+ function ji(G) {
5204
+ const Z = G ? (window.innerWidth - Be) / window.innerWidth : 1, te = G ? -Be : 0;
5205
5205
  K.current && window.clearTimeout(K.current), le(j.current, {
5206
5206
  transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
5207
- transform: ae(y) ? `scale(${Z}) translate3d(0, ${te}px, 0)` : `scale(${Z}) translate3d(${te}px, 0, 0)`
5208
- }), !B && j.current && (K.current = setTimeout(() => {
5209
- const Y = Dt(j.current, y);
5207
+ transform: ae(b) ? `scale(${Z}) translate3d(0, ${te}px, 0)` : `scale(${Z}) translate3d(${te}px, 0, 0)`
5208
+ }), !G && j.current && (K.current = setTimeout(() => {
5209
+ const Y = Dt(j.current, b);
5210
5210
  le(j.current, {
5211
5211
  transition: "none",
5212
- transform: ae(y) ? `translate3d(0, ${Y}px, 0)` : `translate3d(${Y}px, 0, 0)`
5212
+ transform: ae(b) ? `translate3d(0, ${Y}px, 0)` : `translate3d(${Y}px, 0, 0)`
5213
5213
  });
5214
5214
  }, 500));
5215
5215
  }
5216
- function Ui(B, Z) {
5216
+ function Ui(G, Z) {
5217
5217
  if (Z < 0) return;
5218
5218
  const te = (window.innerWidth - Be) / window.innerWidth, Y = te + Z * (1 - te), ie = -Be + Z * Be;
5219
5219
  le(j.current, {
5220
- transform: ae(y) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`,
5220
+ transform: ae(b) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`,
5221
5221
  transition: "none"
5222
5222
  });
5223
5223
  }
5224
- function qi(B, Z) {
5225
- const te = ae(y) ? window.innerHeight : window.innerWidth, Y = Z ? (te - Be) / te : 1, ie = Z ? -Be : 0;
5224
+ function qi(G, Z) {
5225
+ const te = ae(b) ? window.innerHeight : window.innerWidth, Y = Z ? (te - Be) / te : 1, ie = Z ? -Be : 0;
5226
5226
  Z && le(j.current, {
5227
5227
  transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
5228
- transform: ae(y) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`
5228
+ transform: ae(b) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`
5229
5229
  });
5230
5230
  }
5231
- return D.useEffect(() => {
5231
+ return P.useEffect(() => {
5232
5232
  S || window.requestAnimationFrame(() => {
5233
5233
  document.body.style.pointerEvents = "auto";
5234
5234
  });
5235
5235
  }, [
5236
5236
  S
5237
- ]), /* @__PURE__ */ D.createElement(Wo, {
5237
+ ]), /* @__PURE__ */ P.createElement(Wo, {
5238
5238
  defaultOpen: _,
5239
- onOpenChange: (B) => {
5240
- !c && !B || (B ? ce(!0) : st(!0), Q(B));
5239
+ onOpenChange: (G) => {
5240
+ !c && !G || (G ? ce(!0) : st(!0), Q(G));
5241
5241
  },
5242
5242
  open: J
5243
- }, /* @__PURE__ */ D.createElement(Ko.Provider, {
5243
+ }, /* @__PURE__ */ P.createElement(Ko.Provider, {
5244
5244
  value: {
5245
5245
  activeSnapPoint: $i,
5246
5246
  snapPoints: i,
5247
5247
  setActiveSnapPoint: er,
5248
5248
  drawerRef: j,
5249
- overlayRef: T,
5249
+ overlayRef: z,
5250
5250
  onOpenChange: n,
5251
5251
  onPress: Hi,
5252
5252
  onRelease: Wi,
@@ -5265,23 +5265,23 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
5265
5265
  modal: S,
5266
5266
  snapPointsOffset: at,
5267
5267
  activeSnapPointIndex: Ye,
5268
- direction: y,
5268
+ direction: b,
5269
5269
  shouldScaleBackground: a,
5270
5270
  setBackgroundColorOnScale: s,
5271
- noBodyStyles: w,
5272
- container: z,
5273
- autoFocus: W
5271
+ noBodyStyles: y,
5272
+ container: T,
5273
+ autoFocus: H
5274
5274
  }
5275
5275
  }, t));
5276
5276
  }
5277
- const ri = /* @__PURE__ */ D.forwardRef(function({ ...e }, n) {
5277
+ const ri = /* @__PURE__ */ P.forwardRef(function({ ...e }, n) {
5278
5278
  const { overlayRef: t, snapPoints: r, onRelease: o, shouldFade: i, isOpen: a, modal: s, shouldAnimate: l } = wt(), u = Zo(n, t), c = r && r.length > 0;
5279
5279
  if (!s)
5280
5280
  return null;
5281
- const m = D.useCallback((d) => o(d), [
5281
+ const m = P.useCallback((d) => o(d), [
5282
5282
  o
5283
5283
  ]);
5284
- return /* @__PURE__ */ D.createElement(Uo, {
5284
+ return /* @__PURE__ */ P.createElement(Uo, {
5285
5285
  onMouseUp: m,
5286
5286
  ref: u,
5287
5287
  "data-vaul-overlay": "",
@@ -5292,102 +5292,102 @@ const ri = /* @__PURE__ */ D.forwardRef(function({ ...e }, n) {
5292
5292
  });
5293
5293
  });
5294
5294
  ri.displayName = "Drawer.Overlay";
5295
- const oi = /* @__PURE__ */ D.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: t, ...r }, o) {
5296
- const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly: b, shouldAnimate: C, autoFocus: w } = wt(), [y, _] = D.useState(!1), F = Zo(o, i), x = D.useRef(null), E = D.useRef(null), R = D.useRef(!1), $ = p && p.length > 0;
5295
+ const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: t, ...r }, o) {
5296
+ const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly: w, shouldAnimate: x, autoFocus: y } = wt(), [b, _] = P.useState(!1), k = Zo(o, i), R = P.useRef(null), C = P.useRef(null), E = P.useRef(!1), I = p && p.length > 0;
5297
5297
  cu();
5298
- const z = (A, ne, J = 0) => {
5299
- if (R.current) return !0;
5300
- const Q = Math.abs(A.y), ee = Math.abs(A.x), ce = ee > Q, fe = [
5298
+ const T = ($, ne, J = 0) => {
5299
+ if (E.current) return !0;
5300
+ const Q = Math.abs($.y), ee = Math.abs($.x), ce = ee > Q, fe = [
5301
5301
  "bottom",
5302
5302
  "right"
5303
5303
  ].includes(ne) ? 1 : -1;
5304
5304
  if (ne === "left" || ne === "right") {
5305
- if (!(A.x * fe < 0) && ee >= 0 && ee <= J)
5305
+ if (!($.x * fe < 0) && ee >= 0 && ee <= J)
5306
5306
  return ce;
5307
- } else if (!(A.y * fe < 0) && Q >= 0 && Q <= J)
5307
+ } else if (!($.y * fe < 0) && Q >= 0 && Q <= J)
5308
5308
  return !ce;
5309
- return R.current = !0, !0;
5309
+ return E.current = !0, !0;
5310
5310
  };
5311
- D.useEffect(() => {
5312
- $ && window.requestAnimationFrame(() => {
5311
+ P.useEffect(() => {
5312
+ I && window.requestAnimationFrame(() => {
5313
5313
  _(!0);
5314
5314
  });
5315
5315
  }, []);
5316
- function W(A) {
5317
- x.current = null, R.current = !1, s(A);
5316
+ function H($) {
5317
+ R.current = null, E.current = !1, s($);
5318
5318
  }
5319
- return /* @__PURE__ */ D.createElement(qo, {
5319
+ return /* @__PURE__ */ P.createElement(qo, {
5320
5320
  "data-vaul-drawer-direction": v,
5321
5321
  "data-vaul-drawer": "",
5322
- "data-vaul-delayed-snap-points": y ? "true" : "false",
5323
- "data-vaul-snap-points": f && $ ? "true" : "false",
5322
+ "data-vaul-delayed-snap-points": b ? "true" : "false",
5323
+ "data-vaul-snap-points": f && I ? "true" : "false",
5324
5324
  "data-vaul-custom-container": S ? "true" : "false",
5325
- "data-vaul-animate": C?.current ? "true" : "false",
5325
+ "data-vaul-animate": x?.current ? "true" : "false",
5326
5326
  ...r,
5327
- ref: F,
5327
+ ref: k,
5328
5328
  style: c && c.length > 0 ? {
5329
5329
  "--snap-point-height": `${c[m ?? 0]}px`,
5330
5330
  ...n
5331
5331
  } : n,
5332
- onPointerDown: (A) => {
5333
- b || (r.onPointerDown == null || r.onPointerDown.call(r, A), x.current = {
5334
- x: A.pageX,
5335
- y: A.pageY
5336
- }, a(A));
5332
+ onPointerDown: ($) => {
5333
+ w || (r.onPointerDown == null || r.onPointerDown.call(r, $), R.current = {
5334
+ x: $.pageX,
5335
+ y: $.pageY
5336
+ }, a($));
5337
5337
  },
5338
- onOpenAutoFocus: (A) => {
5339
- t?.(A), w || A.preventDefault();
5338
+ onOpenAutoFocus: ($) => {
5339
+ t?.($), y || $.preventDefault();
5340
5340
  },
5341
- onPointerDownOutside: (A) => {
5342
- if (e?.(A), !d || A.defaultPrevented) {
5343
- A.preventDefault();
5341
+ onPointerDownOutside: ($) => {
5342
+ if (e?.($), !d || $.defaultPrevented) {
5343
+ $.preventDefault();
5344
5344
  return;
5345
5345
  }
5346
5346
  u.current && (u.current = !1);
5347
5347
  },
5348
- onFocusOutside: (A) => {
5348
+ onFocusOutside: ($) => {
5349
5349
  if (!d) {
5350
- A.preventDefault();
5350
+ $.preventDefault();
5351
5351
  return;
5352
5352
  }
5353
5353
  },
5354
- onPointerMove: (A) => {
5355
- if (E.current = A, b || (r.onPointerMove == null || r.onPointerMove.call(r, A), !x.current)) return;
5356
- const ne = A.pageY - x.current.y, J = A.pageX - x.current.x, Q = A.pointerType === "touch" ? 10 : 2;
5357
- z({
5354
+ onPointerMove: ($) => {
5355
+ if (C.current = $, w || (r.onPointerMove == null || r.onPointerMove.call(r, $), !R.current)) return;
5356
+ const ne = $.pageY - R.current.y, J = $.pageX - R.current.x, Q = $.pointerType === "touch" ? 10 : 2;
5357
+ T({
5358
5358
  x: J,
5359
5359
  y: ne
5360
- }, v, Q) ? l(A) : (Math.abs(J) > Q || Math.abs(ne) > Q) && (x.current = null);
5360
+ }, v, Q) ? l($) : (Math.abs(J) > Q || Math.abs(ne) > Q) && (R.current = null);
5361
5361
  },
5362
- onPointerUp: (A) => {
5363
- r.onPointerUp == null || r.onPointerUp.call(r, A), x.current = null, R.current = !1, s(A);
5362
+ onPointerUp: ($) => {
5363
+ r.onPointerUp == null || r.onPointerUp.call(r, $), R.current = null, E.current = !1, s($);
5364
5364
  },
5365
- onPointerOut: (A) => {
5366
- r.onPointerOut == null || r.onPointerOut.call(r, A), W(E.current);
5365
+ onPointerOut: ($) => {
5366
+ r.onPointerOut == null || r.onPointerOut.call(r, $), H(C.current);
5367
5367
  },
5368
- onContextMenu: (A) => {
5369
- r.onContextMenu == null || r.onContextMenu.call(r, A), E.current && W(E.current);
5368
+ onContextMenu: ($) => {
5369
+ r.onContextMenu == null || r.onContextMenu.call(r, $), C.current && H(C.current);
5370
5370
  }
5371
5371
  });
5372
5372
  });
5373
5373
  oi.displayName = "Drawer.Content";
5374
- const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCycle: e = !1, children: n, ...t }, r) {
5375
- const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v = D.useRef(null), p = D.useRef(!1);
5374
+ const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCycle: e = !1, children: n, ...t }, r) {
5375
+ const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v = P.useRef(null), p = P.useRef(!1);
5376
5376
  function S() {
5377
5377
  if (p.current) {
5378
- w();
5378
+ y();
5379
5379
  return;
5380
5380
  }
5381
5381
  window.setTimeout(() => {
5382
- b();
5382
+ w();
5383
5383
  }, mu);
5384
5384
  }
5385
- function b() {
5385
+ function w() {
5386
5386
  if (i || e || p.current) {
5387
- w();
5387
+ y();
5388
5388
  return;
5389
5389
  }
5390
- if (w(), !a || a.length === 0) {
5390
+ if (y(), !a || a.length === 0) {
5391
5391
  u || o();
5392
5392
  return;
5393
5393
  }
@@ -5395,27 +5395,27 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
5395
5395
  o();
5396
5396
  return;
5397
5397
  }
5398
- const _ = a.findIndex((x) => x === s);
5398
+ const _ = a.findIndex((R) => R === s);
5399
5399
  if (_ === -1) return;
5400
- const F = a[_ + 1];
5401
- l(F);
5400
+ const k = a[_ + 1];
5401
+ l(k);
5402
5402
  }
5403
- function C() {
5403
+ function x() {
5404
5404
  v.current = window.setTimeout(() => {
5405
5405
  p.current = !0;
5406
5406
  }, gu);
5407
5407
  }
5408
- function w() {
5408
+ function y() {
5409
5409
  v.current && window.clearTimeout(v.current), p.current = !1;
5410
5410
  }
5411
- return /* @__PURE__ */ D.createElement("div", {
5411
+ return /* @__PURE__ */ P.createElement("div", {
5412
5412
  onClick: S,
5413
- onPointerCancel: w,
5414
- onPointerDown: (y) => {
5415
- c && d(y), C();
5413
+ onPointerCancel: y,
5414
+ onPointerDown: (b) => {
5415
+ c && d(b), x();
5416
5416
  },
5417
- onPointerMove: (y) => {
5418
- c && f(y);
5417
+ onPointerMove: (b) => {
5418
+ c && f(b);
5419
5419
  },
5420
5420
  // onPointerUp is already handled by the content component
5421
5421
  ref: r,
@@ -5423,7 +5423,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
5423
5423
  "data-vaul-handle": "",
5424
5424
  "aria-hidden": "true",
5425
5425
  ...t
5426
- }, /* @__PURE__ */ D.createElement("span", {
5426
+ }, /* @__PURE__ */ P.createElement("span", {
5427
5427
  "data-vaul-handle-hitarea": "",
5428
5428
  "aria-hidden": "true"
5429
5429
  }, n));
@@ -5431,7 +5431,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
5431
5431
  pu.displayName = "Drawer.Handle";
5432
5432
  function hu(e) {
5433
5433
  const n = wt(), { container: t = n.container, ...r } = e;
5434
- return /* @__PURE__ */ D.createElement(jo, {
5434
+ return /* @__PURE__ */ P.createElement(jo, {
5435
5435
  container: t,
5436
5436
  ...r
5437
5437
  });
@@ -5467,7 +5467,7 @@ function Su({
5467
5467
  ot.Overlay,
5468
5468
  {
5469
5469
  "data-slot": "drawer-overlay",
5470
- className: I(
5470
+ className: F(
5471
5471
  "fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
5472
5472
  e
5473
5473
  ),
@@ -5480,14 +5480,14 @@ function yu({
5480
5480
  children: n,
5481
5481
  ...t
5482
5482
  }) {
5483
- return /* @__PURE__ */ G(bu, { "data-slot": "drawer-portal", children: [
5483
+ return /* @__PURE__ */ W(bu, { "data-slot": "drawer-portal", children: [
5484
5484
  /* @__PURE__ */ h(Su, {}),
5485
- /* @__PURE__ */ G(
5485
+ /* @__PURE__ */ W(
5486
5486
  ot.Content,
5487
5487
  {
5488
5488
  "aria-describedby": void 0,
5489
5489
  "data-slot": "drawer-content",
5490
- className: I(
5490
+ className: F(
5491
5491
  "group/drawer-content fixed z-50 flex h-auto flex-col bg-background text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",
5492
5492
  e
5493
5493
  ),
@@ -5508,7 +5508,7 @@ function Cu({
5508
5508
  ot.Title,
5509
5509
  {
5510
5510
  "data-slot": "drawer-title",
5511
- className: I("text-base font-medium text-foreground", e),
5511
+ className: F("text-base font-medium text-foreground", e),
5512
5512
  ...n
5513
5513
  }
5514
5514
  );
@@ -5534,16 +5534,16 @@ function Qd({
5534
5534
  children: /* @__PURE__ */ h(
5535
5535
  yu,
5536
5536
  {
5537
- className: I(
5537
+ className: F(
5538
5538
  "data-[vaul-drawer-direction=right]:w-[560px] data-[vaul-drawer-direction=right]:max-w-[90vw] border-l border-border bg-card text-card-foreground",
5539
5539
  s
5540
5540
  ),
5541
- children: /* @__PURE__ */ G("div", { className: I("flex h-full min-h-0 flex-col", a), children: [
5542
- /* @__PURE__ */ G("div", { className: "flex shrink-0 items-center justify-between border-b border-border p-6", children: [
5541
+ children: /* @__PURE__ */ W("div", { className: F("flex h-full min-h-0 flex-col", a), children: [
5542
+ /* @__PURE__ */ W("div", { className: "flex shrink-0 items-center justify-between border-b border-border p-6", children: [
5543
5543
  /* @__PURE__ */ h(Cu, { className: "m-0 text-xl font-semibold text-foreground", children: t }),
5544
- /* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
5544
+ /* @__PURE__ */ W("div", { className: "flex items-center gap-3", children: [
5545
5545
  i,
5546
- /* @__PURE__ */ h(wu, { asChild: !0, children: /* @__PURE__ */ G(vt, { variant: "ghost", size: "icon", className: "cursor-pointer", children: [
5546
+ /* @__PURE__ */ h(wu, { asChild: !0, children: /* @__PURE__ */ W(vt, { variant: "ghost", size: "icon", className: "cursor-pointer", children: [
5547
5547
  /* @__PURE__ */ h(go, {}),
5548
5548
  /* @__PURE__ */ h("span", { className: "sr-only", children: "Close drawer" })
5549
5549
  ] }) })
@@ -5575,7 +5575,7 @@ function Eu({
5575
5575
  zn.Content,
5576
5576
  {
5577
5577
  "data-slot": "collapsible-content",
5578
- className: I("overflow-hidden", e),
5578
+ className: F("overflow-hidden", e),
5579
5579
  ...n
5580
5580
  }
5581
5581
  );
@@ -5608,7 +5608,7 @@ function ku({
5608
5608
  Ge.Overlay,
5609
5609
  {
5610
5610
  "data-slot": "sheet-overlay",
5611
- className: I(
5611
+ className: F(
5612
5612
  "fixed inset-0 z-50 bg-primary/14 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
5613
5613
  e
5614
5614
  ),
@@ -5623,21 +5623,21 @@ function Fu({
5623
5623
  showCloseButton: r = !0,
5624
5624
  ...o
5625
5625
  }) {
5626
- return /* @__PURE__ */ G(Iu, { children: [
5626
+ return /* @__PURE__ */ W(Iu, { children: [
5627
5627
  /* @__PURE__ */ h(ku, {}),
5628
- /* @__PURE__ */ G(
5628
+ /* @__PURE__ */ W(
5629
5629
  Ge.Content,
5630
5630
  {
5631
5631
  "data-slot": "sheet-content",
5632
5632
  "data-side": t,
5633
- className: I(
5633
+ className: F(
5634
5634
  "fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",
5635
5635
  e
5636
5636
  ),
5637
5637
  ...o,
5638
5638
  children: [
5639
5639
  n,
5640
- r && /* @__PURE__ */ h(Ge.Close, { "data-slot": "sheet-close", asChild: !0, children: /* @__PURE__ */ G(
5640
+ r && /* @__PURE__ */ h(Ge.Close, { "data-slot": "sheet-close", asChild: !0, children: /* @__PURE__ */ W(
5641
5641
  vt,
5642
5642
  {
5643
5643
  variant: "ghost",
@@ -5659,7 +5659,7 @@ function Du({ className: e, ...n }) {
5659
5659
  "div",
5660
5660
  {
5661
5661
  "data-slot": "sheet-header",
5662
- className: I("flex flex-col gap-0.5 p-4", e),
5662
+ className: F("flex flex-col gap-0.5 p-4", e),
5663
5663
  ...n
5664
5664
  }
5665
5665
  );
@@ -5672,7 +5672,7 @@ function Pu({
5672
5672
  Ge.Title,
5673
5673
  {
5674
5674
  "data-slot": "sheet-title",
5675
- className: I("text-base font-medium text-foreground", e),
5675
+ className: F("text-base font-medium text-foreground", e),
5676
5676
  ...n
5677
5677
  }
5678
5678
  );
@@ -5685,7 +5685,7 @@ function Nu({
5685
5685
  Ge.Description,
5686
5686
  {
5687
5687
  "data-slot": "sheet-description",
5688
- className: I("text-sm text-muted-foreground", e),
5688
+ className: F("text-sm text-muted-foreground", e),
5689
5689
  ...n
5690
5690
  }
5691
5691
  );
@@ -5707,17 +5707,17 @@ function Lu({
5707
5707
  ...a
5708
5708
  }) {
5709
5709
  const s = _u(), [l, u] = g.useState(!1), [c, m] = g.useState(e), d = n ?? c, f = g.useCallback(
5710
- (b) => {
5711
- const C = typeof b == "function" ? b(d) : b;
5712
- t ? t(C) : m(C), document.cookie = `${Ou}=${C}; path=/; max-age=${Au}`;
5710
+ (w) => {
5711
+ const x = typeof w == "function" ? w(d) : w;
5712
+ t ? t(x) : m(x), document.cookie = `${Ou}=${x}; path=/; max-age=${Au}`;
5713
5713
  },
5714
5714
  [t, d]
5715
- ), v = g.useCallback(() => s ? u((b) => !b) : f((b) => !b), [s, f, u]);
5715
+ ), v = g.useCallback(() => s ? u((w) => !w) : f((w) => !w), [s, f, u]);
5716
5716
  g.useEffect(() => {
5717
- const b = (C) => {
5718
- C.key === Vu && (C.metaKey || C.ctrlKey) && (C.preventDefault(), v());
5717
+ const w = (x) => {
5718
+ x.key === Vu && (x.metaKey || x.ctrlKey) && (x.preventDefault(), v());
5719
5719
  };
5720
- return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
5720
+ return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
5721
5721
  }, [v]);
5722
5722
  const p = d ? "expanded" : "collapsed", S = g.useMemo(
5723
5723
  () => ({
@@ -5740,7 +5740,7 @@ function Lu({
5740
5740
  "--sidebar-width-icon": zu,
5741
5741
  ...o
5742
5742
  },
5743
- className: I(
5743
+ className: F(
5744
5744
  "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
5745
5745
  r
5746
5746
  ),
@@ -5763,14 +5763,14 @@ function Hu({
5763
5763
  "div",
5764
5764
  {
5765
5765
  "data-slot": "sidebar",
5766
- className: I(
5766
+ className: F(
5767
5767
  "flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
5768
5768
  r
5769
5769
  ),
5770
5770
  ...a,
5771
5771
  children: o
5772
5772
  }
5773
- ) : s ? /* @__PURE__ */ h(Mu, { open: u, onOpenChange: c, ...a, children: /* @__PURE__ */ G(
5773
+ ) : s ? /* @__PURE__ */ h(Mu, { open: u, onOpenChange: c, ...a, children: /* @__PURE__ */ W(
5774
5774
  Fu,
5775
5775
  {
5776
5776
  dir: i,
@@ -5783,14 +5783,14 @@ function Hu({
5783
5783
  },
5784
5784
  side: e,
5785
5785
  children: [
5786
- /* @__PURE__ */ G(Du, { className: "sr-only", children: [
5786
+ /* @__PURE__ */ W(Du, { className: "sr-only", children: [
5787
5787
  /* @__PURE__ */ h(Pu, { children: "Sidebar" }),
5788
5788
  /* @__PURE__ */ h(Nu, { children: "Displays the mobile sidebar." })
5789
5789
  ] }),
5790
5790
  /* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col", children: o })
5791
5791
  ]
5792
5792
  }
5793
- ) }) : /* @__PURE__ */ G(
5793
+ ) }) : /* @__PURE__ */ W(
5794
5794
  "div",
5795
5795
  {
5796
5796
  className: "group peer hidden text-sidebar-foreground md:block",
@@ -5804,7 +5804,7 @@ function Hu({
5804
5804
  "div",
5805
5805
  {
5806
5806
  "data-slot": "sidebar-gap",
5807
- className: I(
5807
+ className: F(
5808
5808
  "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
5809
5809
  "group-data-[collapsible=offcanvas]:w-0",
5810
5810
  "group-data-[side=right]:rotate-180",
@@ -5817,7 +5817,7 @@ function Hu({
5817
5817
  {
5818
5818
  "data-slot": "sidebar-container",
5819
5819
  "data-side": e,
5820
- className: I(
5820
+ className: F(
5821
5821
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
5822
5822
  // Adjust the padding for floating and inset variants.
5823
5823
  n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
@@ -5845,14 +5845,14 @@ function Bu({
5845
5845
  ...t
5846
5846
  }) {
5847
5847
  const { toggleSidebar: r } = ai();
5848
- return /* @__PURE__ */ G(
5848
+ return /* @__PURE__ */ W(
5849
5849
  vt,
5850
5850
  {
5851
5851
  "data-sidebar": "trigger",
5852
5852
  "data-slot": "sidebar-trigger",
5853
5853
  variant: "ghost",
5854
5854
  size: "icon-sm",
5855
- className: I(e),
5855
+ className: F(e),
5856
5856
  onClick: (o) => {
5857
5857
  n?.(o), r();
5858
5858
  },
@@ -5870,7 +5870,7 @@ function Gu({ className: e, ...n }) {
5870
5870
  {
5871
5871
  "data-slot": "sidebar-header",
5872
5872
  "data-sidebar": "header",
5873
- className: I("flex flex-col gap-2 p-2", e),
5873
+ className: F("flex flex-col gap-2 p-2", e),
5874
5874
  ...n
5875
5875
  }
5876
5876
  );
@@ -5881,7 +5881,7 @@ function Wu({ className: e, ...n }) {
5881
5881
  {
5882
5882
  "data-slot": "sidebar-footer",
5883
5883
  "data-sidebar": "footer",
5884
- className: I("flex flex-col gap-2 p-2", e),
5884
+ className: F("flex flex-col gap-2 p-2", e),
5885
5885
  ...n
5886
5886
  }
5887
5887
  );
@@ -5892,7 +5892,7 @@ function ju({ className: e, ...n }) {
5892
5892
  {
5893
5893
  "data-slot": "sidebar-content",
5894
5894
  "data-sidebar": "content",
5895
- className: I(
5895
+ className: F(
5896
5896
  "no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
5897
5897
  e
5898
5898
  ),
@@ -5906,7 +5906,7 @@ function Uu({ className: e, ...n }) {
5906
5906
  {
5907
5907
  "data-slot": "sidebar-group",
5908
5908
  "data-sidebar": "group",
5909
- className: I("relative flex w-full min-w-0 flex-col p-2", e),
5909
+ className: F("relative flex w-full min-w-0 flex-col p-2", e),
5910
5910
  ...n
5911
5911
  }
5912
5912
  );
@@ -5920,7 +5920,7 @@ function qu({
5920
5920
  {
5921
5921
  "data-slot": "sidebar-group-content",
5922
5922
  "data-sidebar": "group-content",
5923
- className: I("w-full text-sm", e),
5923
+ className: F("w-full text-sm", e),
5924
5924
  ...n
5925
5925
  }
5926
5926
  );
@@ -5931,7 +5931,7 @@ function Pr({ className: e, ...n }) {
5931
5931
  {
5932
5932
  "data-slot": "sidebar-menu",
5933
5933
  "data-sidebar": "menu",
5934
- className: I("flex w-full min-w-0 flex-col gap-0", e),
5934
+ className: F("flex w-full min-w-0 flex-col gap-0", e),
5935
5935
  ...n
5936
5936
  }
5937
5937
  );
@@ -5942,7 +5942,7 @@ function Nr({ className: e, ...n }) {
5942
5942
  {
5943
5943
  "data-slot": "sidebar-menu-item",
5944
5944
  "data-sidebar": "menu-item",
5945
- className: I("group/menu-item relative", e),
5945
+ className: F("group/menu-item relative", e),
5946
5946
  ...n
5947
5947
  }
5948
5948
  );
@@ -5983,7 +5983,7 @@ function Or({
5983
5983
  "data-sidebar": "menu-button",
5984
5984
  "data-size": r,
5985
5985
  "data-active": n,
5986
- className: I(Ku({ variant: t, size: r }), o),
5986
+ className: F(Ku({ variant: t, size: r }), o),
5987
5987
  ...i
5988
5988
  }
5989
5989
  );
@@ -5997,7 +5997,7 @@ function Xu({
5997
5997
  {
5998
5998
  "data-slot": "sidebar-menu-badge",
5999
5999
  "data-sidebar": "menu-badge",
6000
- className: I(
6000
+ className: F(
6001
6001
  "pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",
6002
6002
  e
6003
6003
  ),
@@ -6011,7 +6011,7 @@ function Yu({ className: e, ...n }) {
6011
6011
  {
6012
6012
  "data-slot": "sidebar-menu-sub",
6013
6013
  "data-sidebar": "menu-sub",
6014
- className: I(
6014
+ className: F(
6015
6015
  "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
6016
6016
  e
6017
6017
  ),
@@ -6028,7 +6028,7 @@ function Zu({
6028
6028
  {
6029
6029
  "data-slot": "sidebar-menu-sub-item",
6030
6030
  "data-sidebar": "menu-sub-item",
6031
- className: I("group/menu-sub-item relative", e),
6031
+ className: F("group/menu-sub-item relative", e),
6032
6032
  ...n
6033
6033
  }
6034
6034
  );
@@ -6048,7 +6048,7 @@ function Ju({
6048
6048
  "data-sidebar": "menu-sub-button",
6049
6049
  "data-size": n,
6050
6050
  "data-active": t,
6051
- className: I(
6051
+ className: F(
6052
6052
  "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
6053
6053
  r
6054
6054
  ),
@@ -6082,138 +6082,138 @@ function ef({
6082
6082
  footerClassName: d
6083
6083
  }) {
6084
6084
  const f = g.useMemo(() => [
6085
- ...e.map((y, _) => ({
6085
+ ...e.map((b, _) => ({
6086
6086
  kind: "item",
6087
- item: y,
6088
- order: un(y.order),
6087
+ item: b,
6088
+ order: un(b.order),
6089
6089
  originalIndex: _
6090
6090
  })),
6091
- ...n.map((y, _) => ({
6091
+ ...n.map((b, _) => ({
6092
6092
  kind: "group",
6093
- group: y,
6093
+ group: b,
6094
6094
  groupIndex: _,
6095
- order: un(y.order),
6095
+ order: un(b.order),
6096
6096
  originalIndex: e.length + _
6097
6097
  }))
6098
- ].sort((y, _) => y.order !== _.order ? y.order - _.order : y.originalIndex - _.originalIndex), [n, e]), [v, p] = g.useState(() => n.reduce(
6099
- (w, y, _) => {
6100
- const F = cn(y, _);
6101
- return w[F] = !!(y.defaultOpen || Ar(y, t)), w;
6098
+ ].sort((b, _) => b.order !== _.order ? b.order - _.order : b.originalIndex - _.originalIndex), [n, e]), [v, p] = g.useState(() => n.reduce(
6099
+ (y, b, _) => {
6100
+ const k = cn(b, _);
6101
+ return y[k] = !!(b.defaultOpen || Ar(b, t)), y;
6102
6102
  },
6103
6103
  {}
6104
6104
  ));
6105
6105
  g.useEffect(() => {
6106
- p((w) => n.reduce(
6107
- (y, _, F) => {
6108
- const x = cn(_, F), E = w[x], R = Ar(_, t);
6109
- return typeof E == "boolean" ? (y[x] = R ? !0 : E, y) : (y[x] = !!(_.defaultOpen || R), y);
6106
+ p((y) => n.reduce(
6107
+ (b, _, k) => {
6108
+ const R = cn(_, k), C = y[R], E = Ar(_, t);
6109
+ return typeof C == "boolean" ? (b[R] = E ? !0 : C, b) : (b[R] = !!(_.defaultOpen || E), b);
6110
6110
  },
6111
6111
  {}
6112
6112
  ));
6113
6113
  }, [t, n]);
6114
6114
  const S = g.useCallback(
6115
- (w, y) => {
6116
- if (w.disabled) {
6117
- y.preventDefault();
6115
+ (y, b) => {
6116
+ if (y.disabled) {
6117
+ b.preventDefault();
6118
6118
  return;
6119
6119
  }
6120
- o?.(w, y);
6120
+ o?.(y, b);
6121
6121
  },
6122
6122
  [o]
6123
- ), b = g.useCallback(
6124
- (w) => {
6125
- const y = w.icon, _ = w.route === t;
6126
- return /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ G(Nr, { className: I(m, w.className), children: [
6123
+ ), w = g.useCallback(
6124
+ (y) => {
6125
+ const b = y.icon, _ = y.route === t;
6126
+ return /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ W(Nr, { className: F(m, y.className), children: [
6127
6127
  /* @__PURE__ */ h(
6128
6128
  Or,
6129
6129
  {
6130
6130
  asChild: !0,
6131
6131
  isActive: _,
6132
6132
  className: "transition-colors hover:bg-sidebar-accent/55 data-open:hover:bg-sidebar-accent/55",
6133
- children: /* @__PURE__ */ G(
6133
+ children: /* @__PURE__ */ W(
6134
6134
  "a",
6135
6135
  {
6136
- href: w.route,
6136
+ href: y.route,
6137
6137
  "aria-current": _ ? "page" : void 0,
6138
- "aria-disabled": w.disabled,
6139
- onClick: (F) => S(w, F),
6138
+ "aria-disabled": y.disabled,
6139
+ onClick: (k) => S(y, k),
6140
6140
  children: [
6141
- y ? /* @__PURE__ */ h(y, { className: "size-4" }) : null,
6142
- /* @__PURE__ */ h("span", { className: "group-data-[collapsible=icon]:hidden", children: w.label })
6141
+ b ? /* @__PURE__ */ h(b, { className: "size-4" }) : null,
6142
+ /* @__PURE__ */ h("span", { className: "group-data-[collapsible=icon]:hidden", children: y.label })
6143
6143
  ]
6144
6144
  }
6145
6145
  )
6146
6146
  }
6147
6147
  ),
6148
- w.badge ? /* @__PURE__ */ h(Xu, { children: w.badge }) : null
6149
- ] }) }, `${w.route}-${w.label}`);
6148
+ y.badge ? /* @__PURE__ */ h(Xu, { children: y.badge }) : null
6149
+ ] }) }, `${y.route}-${y.label}`);
6150
6150
  },
6151
6151
  [t, S, m]
6152
- ), C = g.useCallback(
6153
- (w, y) => {
6154
- const _ = cn(w, y), F = v[_] ?? !1, x = w.icon, E = [...w.items].map((R, $) => ({
6155
- groupItem: R,
6156
- order: un(R.order),
6157
- index: $
6158
- })).sort((R, $) => R.order !== $.order ? R.order - $.order : R.index - $.index).map(({ groupItem: R }) => R);
6152
+ ), x = g.useCallback(
6153
+ (y, b) => {
6154
+ const _ = cn(y, b), k = v[_] ?? !1, R = y.icon, C = [...y.items].map((E, I) => ({
6155
+ groupItem: E,
6156
+ order: un(E.order),
6157
+ index: I
6158
+ })).sort((E, I) => E.order !== I.order ? E.order - I.order : E.index - I.index).map(({ groupItem: E }) => E);
6159
6159
  return /* @__PURE__ */ h(
6160
6160
  xu,
6161
6161
  {
6162
- open: F,
6163
- onOpenChange: (R) => p(($) => ({
6164
- ...$,
6165
- [_]: R
6162
+ open: k,
6163
+ onOpenChange: (E) => p((I) => ({
6164
+ ...I,
6165
+ [_]: E
6166
6166
  })),
6167
6167
  className: "group/collapsible",
6168
- children: /* @__PURE__ */ G(Uu, { className: w.className + " !p-0", children: [
6169
- /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ h(Nr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */ G(
6168
+ children: /* @__PURE__ */ W(Uu, { className: y.className + " !p-0", children: [
6169
+ /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ h(Nr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */ W(
6170
6170
  Or,
6171
6171
  {
6172
- className: I(
6172
+ className: F(
6173
6173
  "transition-colors hover:bg-sidebar-accent/55 data-open:hover:bg-sidebar-accent/55 !px-2",
6174
- w.labelClassName
6174
+ y.labelClassName
6175
6175
  ),
6176
6176
  children: [
6177
- x ? /* @__PURE__ */ h(x, { className: "size-4" }) : null,
6178
- /* @__PURE__ */ h("span", { className: "truncate group-data-[collapsible=icon]:hidden", children: w.label }),
6177
+ R ? /* @__PURE__ */ h(R, { className: "size-4" }) : null,
6178
+ /* @__PURE__ */ h("span", { className: "truncate group-data-[collapsible=icon]:hidden", children: y.label }),
6179
6179
  /* @__PURE__ */ h(bt, { className: "ml-auto size-4 transition-transform group-data-[collapsible=icon]:hidden group-data-[state=open]/collapsible:rotate-180" })
6180
6180
  ]
6181
6181
  }
6182
6182
  ) }) }) }),
6183
- /* @__PURE__ */ h(Eu, { children: /* @__PURE__ */ h(qu, { className: w.contentClassName, children: /* @__PURE__ */ h(Yu, { className: w.menuClassName + " !m-2 pr-0", children: E.map((R) => {
6184
- const $ = R.icon, z = R.route === t;
6183
+ /* @__PURE__ */ h(Eu, { children: /* @__PURE__ */ h(qu, { className: y.contentClassName, children: /* @__PURE__ */ h(Yu, { className: y.menuClassName + " !m-2 pr-0", children: C.map((E) => {
6184
+ const I = E.icon, T = E.route === t;
6185
6185
  return /* @__PURE__ */ h(
6186
6186
  Zu,
6187
6187
  {
6188
- className: I(
6188
+ className: F(
6189
6189
  m,
6190
- w.itemClassName,
6191
- R.className
6190
+ y.itemClassName,
6191
+ E.className
6192
6192
  ),
6193
6193
  children: /* @__PURE__ */ h(
6194
6194
  Ju,
6195
6195
  {
6196
6196
  asChild: !0,
6197
- isActive: z,
6197
+ isActive: T,
6198
6198
  className: "transition-colors hover:bg-sidebar-accent/55",
6199
- children: /* @__PURE__ */ G(
6199
+ children: /* @__PURE__ */ W(
6200
6200
  "a",
6201
6201
  {
6202
- href: R.route,
6203
- "aria-current": z ? "page" : void 0,
6204
- "aria-disabled": R.disabled,
6205
- onClick: (W) => S(R, W),
6202
+ href: E.route,
6203
+ "aria-current": T ? "page" : void 0,
6204
+ "aria-disabled": E.disabled,
6205
+ onClick: (H) => S(E, H),
6206
6206
  children: [
6207
- $ ? /* @__PURE__ */ h($, { className: "size-4" }) : null,
6208
- /* @__PURE__ */ h("span", { children: R.label }),
6209
- R.badge ? /* @__PURE__ */ h("span", { className: "ml-auto text-xs font-medium tabular-nums", children: R.badge }) : null
6207
+ I ? /* @__PURE__ */ h(I, { className: "size-4" }) : null,
6208
+ /* @__PURE__ */ h("span", { children: E.label }),
6209
+ E.badge ? /* @__PURE__ */ h("span", { className: "ml-auto text-xs font-medium tabular-nums", children: E.badge }) : null
6210
6210
  ]
6211
6211
  }
6212
6212
  )
6213
6213
  }
6214
6214
  )
6215
6215
  },
6216
- `${_}-${R.route}-${R.label}`
6216
+ `${_}-${E.route}-${E.label}`
6217
6217
  );
6218
6218
  }) }) }) })
6219
6219
  ] })
@@ -6228,30 +6228,30 @@ function ef({
6228
6228
  {
6229
6229
  className: "!w-auto !min-h-full shrink-0",
6230
6230
  defaultOpen: !r,
6231
- children: /* @__PURE__ */ G(
6231
+ children: /* @__PURE__ */ W(
6232
6232
  Hu,
6233
6233
  {
6234
6234
  collapsible: "icon",
6235
- className: I("h-full border-r border-sidebar-border/70", s),
6235
+ className: F("h-full border-r border-sidebar-border/70", s),
6236
6236
  children: [
6237
6237
  /* @__PURE__ */ h(
6238
6238
  Gu,
6239
6239
  {
6240
- className: I(
6240
+ className: F(
6241
6241
  "border-b border-sidebar-border/70 p-2",
6242
6242
  l
6243
6243
  ),
6244
- children: /* @__PURE__ */ G("div", { className: "flex min-h-8 items-center gap-2", children: [
6244
+ children: /* @__PURE__ */ W("div", { className: "flex min-h-8 items-center gap-2", children: [
6245
6245
  i ? /* @__PURE__ */ h("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: i }) : null,
6246
6246
  /* @__PURE__ */ h(Bu, { className: "ml-auto" })
6247
6247
  ] })
6248
6248
  }
6249
6249
  ),
6250
- /* @__PURE__ */ h(ju, { className: I("p-2", u), children: /* @__PURE__ */ h("div", { className: I("flex flex-col gap-1", c), children: f.map((w) => w.kind === "item" ? b(w.item) : C(w.group, w.groupIndex)) }) }),
6250
+ /* @__PURE__ */ h(ju, { className: F("p-2", u), children: /* @__PURE__ */ h("div", { className: F("flex flex-col gap-1", c), children: f.map((y) => y.kind === "item" ? w(y.item) : x(y.group, y.groupIndex)) }) }),
6251
6251
  a ? /* @__PURE__ */ h(
6252
6252
  Wu,
6253
6253
  {
6254
- className: I(
6254
+ className: F(
6255
6255
  "border-t border-sidebar-border/70 p-2",
6256
6256
  d
6257
6257
  ),
@@ -6281,12 +6281,12 @@ function rc({
6281
6281
  children: t,
6282
6282
  ...r
6283
6283
  }) {
6284
- return /* @__PURE__ */ G(
6284
+ return /* @__PURE__ */ W(
6285
6285
  he.Trigger,
6286
6286
  {
6287
6287
  "data-slot": "select-trigger",
6288
6288
  "data-size": n,
6289
- className: I(si, e),
6289
+ className: F(si, e),
6290
6290
  ...r,
6291
6291
  children: [
6292
6292
  t,
@@ -6304,12 +6304,12 @@ function oc({
6304
6304
  sideOffset: i = 4,
6305
6305
  ...a
6306
6306
  }) {
6307
- return /* @__PURE__ */ h(he.Portal, { children: /* @__PURE__ */ G(
6307
+ return /* @__PURE__ */ h(he.Portal, { children: /* @__PURE__ */ W(
6308
6308
  he.Content,
6309
6309
  {
6310
6310
  "data-slot": "select-content",
6311
6311
  "data-align-trigger": t === "item-aligned",
6312
- className: I(
6312
+ className: F(
6313
6313
  "min-w-36 origin-(--radix-select-content-transform-origin) duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
6314
6314
  li,
6315
6315
  t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
@@ -6340,11 +6340,11 @@ function ic({
6340
6340
  children: n,
6341
6341
  ...t
6342
6342
  }) {
6343
- return /* @__PURE__ */ G(
6343
+ return /* @__PURE__ */ W(
6344
6344
  he.Item,
6345
6345
  {
6346
6346
  "data-slot": "select-item",
6347
- className: I(ec, e),
6347
+ className: F(ec, e),
6348
6348
  ...t,
6349
6349
  children: [
6350
6350
  /* @__PURE__ */ h(he.ItemText, { className: "flex-1", children: n }),
@@ -6361,7 +6361,7 @@ function ac({
6361
6361
  he.ScrollUpButton,
6362
6362
  {
6363
6363
  "data-slot": "select-scroll-up-button",
6364
- className: I(
6364
+ className: F(
6365
6365
  "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
6366
6366
  e
6367
6367
  ),
@@ -6378,7 +6378,7 @@ function sc({
6378
6378
  he.ScrollDownButton,
6379
6379
  {
6380
6380
  "data-slot": "select-scroll-down-button",
6381
- className: I(
6381
+ className: F(
6382
6382
  "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
6383
6383
  e
6384
6384
  ),
@@ -6407,7 +6407,7 @@ function tf({
6407
6407
  () => new Set(m.map((v) => v.value)),
6408
6408
  [m]
6409
6409
  ).has(t) ? t : "";
6410
- return /* @__PURE__ */ h("div", { className: I("w-full", l), children: /* @__PURE__ */ G(
6410
+ return /* @__PURE__ */ h("div", { className: F("w-full", l), children: /* @__PURE__ */ W(
6411
6411
  tc,
6412
6412
  {
6413
6413
  value: f,
@@ -6415,7 +6415,7 @@ function tf({
6415
6415
  disabled: i,
6416
6416
  name: a,
6417
6417
  children: [
6418
- /* @__PURE__ */ h(rc, { size: s, className: I("w-full", u), children: /* @__PURE__ */ h(nc, { placeholder: o }) }),
6418
+ /* @__PURE__ */ h(rc, { size: s, className: F("w-full", u), children: /* @__PURE__ */ h(nc, { placeholder: o }) }),
6419
6419
  /* @__PURE__ */ h(oc, { className: c, children: m.map((v) => /* @__PURE__ */ h(
6420
6420
  ic,
6421
6421
  {
@@ -6445,110 +6445,110 @@ function hc(e, n, t) {
6445
6445
  }
6446
6446
  var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-heading=""]', ci = '[cmdk-item=""]', zr = `${ci}:not([aria-disabled="true"])`, kn = "cmdk-item-select", tt = "data-value", bc = (e, n, t) => hc(e, n, t), di = g.createContext(void 0), St = () => g.useContext(di), fi = g.createContext(void 0), Un = () => g.useContext(fi), gi = g.createContext(void 0), mi = g.forwardRef((e, n) => {
6447
6447
  let t = nt(() => {
6448
- var M, T;
6449
- return { search: "", value: (T = (M = e.value) != null ? M : e.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
6450
- }), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...b } = e, C = _e(), w = _e(), y = _e(), _ = g.useRef(null), F = kc();
6448
+ var M, z;
6449
+ return { search: "", value: (z = (M = e.value) != null ? M : e.defaultValue) != null ? z : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
6450
+ }), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...w } = e, x = _e(), y = _e(), b = _e(), _ = g.useRef(null), k = kc();
6451
6451
  Ue(() => {
6452
6452
  if (c !== void 0) {
6453
6453
  let M = c.trim();
6454
- t.current.value = M, x.emit();
6454
+ t.current.value = M, R.emit();
6455
6455
  }
6456
6456
  }, [c]), Ue(() => {
6457
- F(6, A);
6457
+ k(6, $);
6458
6458
  }, []);
6459
- let x = g.useMemo(() => ({ subscribe: (M) => (a.current.add(M), () => a.current.delete(M)), snapshot: () => t.current, setState: (M, T, U) => {
6460
- var k, H, X, oe;
6461
- if (!Object.is(t.current[M], T)) {
6462
- if (t.current[M] = T, M === "search") W(), $(), F(1, z);
6459
+ let R = g.useMemo(() => ({ subscribe: (M) => (a.current.add(M), () => a.current.delete(M)), snapshot: () => t.current, setState: (M, z, U) => {
6460
+ var D, B, X, oe;
6461
+ if (!Object.is(t.current[M], z)) {
6462
+ if (t.current[M] = z, M === "search") H(), I(), k(1, T);
6463
6463
  else if (M === "value") {
6464
6464
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
6465
- let K = document.getElementById(y);
6466
- K ? K.focus() : (k = document.getElementById(C)) == null || k.focus();
6465
+ let K = document.getElementById(b);
6466
+ K ? K.focus() : (D = document.getElementById(x)) == null || D.focus();
6467
6467
  }
6468
- if (F(7, () => {
6468
+ if (k(7, () => {
6469
6469
  var K;
6470
- t.current.selectedItemId = (K = ne()) == null ? void 0 : K.id, x.emit();
6471
- }), U || F(5, A), ((H = s.current) == null ? void 0 : H.value) !== void 0) {
6472
- let K = T ?? "";
6470
+ t.current.selectedItemId = (K = ne()) == null ? void 0 : K.id, R.emit();
6471
+ }), U || k(5, $), ((B = s.current) == null ? void 0 : B.value) !== void 0) {
6472
+ let K = z ?? "";
6473
6473
  (oe = (X = s.current).onValueChange) == null || oe.call(X, K);
6474
6474
  return;
6475
6475
  }
6476
6476
  }
6477
- x.emit();
6477
+ R.emit();
6478
6478
  }
6479
6479
  }, emit: () => {
6480
6480
  a.current.forEach((M) => M());
6481
- } }), []), E = g.useMemo(() => ({ value: (M, T, U) => {
6482
- var k;
6483
- T !== ((k = i.current.get(M)) == null ? void 0 : k.value) && (i.current.set(M, { value: T, keywords: U }), t.current.filtered.items.set(M, R(T, U)), F(2, () => {
6484
- $(), x.emit();
6481
+ } }), []), C = g.useMemo(() => ({ value: (M, z, U) => {
6482
+ var D;
6483
+ z !== ((D = i.current.get(M)) == null ? void 0 : D.value) && (i.current.set(M, { value: z, keywords: U }), t.current.filtered.items.set(M, E(z, U)), k(2, () => {
6484
+ I(), R.emit();
6485
6485
  }));
6486
- }, item: (M, T) => (r.current.add(M), T && (o.current.has(T) ? o.current.get(T).add(M) : o.current.set(T, /* @__PURE__ */ new Set([M]))), F(3, () => {
6487
- W(), $(), t.current.value || z(), x.emit();
6486
+ }, item: (M, z) => (r.current.add(M), z && (o.current.has(z) ? o.current.get(z).add(M) : o.current.set(z, /* @__PURE__ */ new Set([M]))), k(3, () => {
6487
+ H(), I(), t.current.value || T(), R.emit();
6488
6488
  }), () => {
6489
6489
  i.current.delete(M), r.current.delete(M), t.current.filtered.items.delete(M);
6490
6490
  let U = ne();
6491
- F(4, () => {
6492
- W(), U?.getAttribute("id") === M && z(), x.emit();
6491
+ k(4, () => {
6492
+ H(), U?.getAttribute("id") === M && T(), R.emit();
6493
6493
  });
6494
6494
  }), group: (M) => (o.current.has(M) || o.current.set(M, /* @__PURE__ */ new Set()), () => {
6495
6495
  i.current.delete(M), o.current.delete(M);
6496
- }), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: C, inputId: y, labelId: w, listInnerRef: _ }), []);
6497
- function R(M, T) {
6498
- var U, k;
6499
- let H = (k = (U = s.current) == null ? void 0 : U.filter) != null ? k : bc;
6500
- return M ? H(M, t.current.search, T) : 0;
6496
+ }), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: x, inputId: b, labelId: y, listInnerRef: _ }), []);
6497
+ function E(M, z) {
6498
+ var U, D;
6499
+ let B = (D = (U = s.current) == null ? void 0 : U.filter) != null ? D : bc;
6500
+ return M ? B(M, t.current.search, z) : 0;
6501
6501
  }
6502
- function $() {
6502
+ function I() {
6503
6503
  if (!t.current.search || s.current.shouldFilter === !1) return;
6504
- let M = t.current.filtered.items, T = [];
6505
- t.current.filtered.groups.forEach((k) => {
6506
- let H = o.current.get(k), X = 0;
6507
- H.forEach((oe) => {
6504
+ let M = t.current.filtered.items, z = [];
6505
+ t.current.filtered.groups.forEach((D) => {
6506
+ let B = o.current.get(D), X = 0;
6507
+ B.forEach((oe) => {
6508
6508
  let K = M.get(oe);
6509
6509
  X = Math.max(K, X);
6510
- }), T.push([k, X]);
6510
+ }), z.push([D, X]);
6511
6511
  });
6512
6512
  let U = _.current;
6513
- J().sort((k, H) => {
6513
+ J().sort((D, B) => {
6514
6514
  var X, oe;
6515
- let K = k.getAttribute("id"), ve = H.getAttribute("id");
6515
+ let K = D.getAttribute("id"), ve = B.getAttribute("id");
6516
6516
  return ((X = M.get(ve)) != null ? X : 0) - ((oe = M.get(K)) != null ? oe : 0);
6517
- }).forEach((k) => {
6518
- let H = k.closest(gn);
6519
- H ? H.appendChild(k.parentElement === H ? k : k.closest(`${gn} > *`)) : U.appendChild(k.parentElement === U ? k : k.closest(`${gn} > *`));
6520
- }), T.sort((k, H) => H[1] - k[1]).forEach((k) => {
6521
- var H;
6522
- let X = (H = _.current) == null ? void 0 : H.querySelector(`${dt}[${tt}="${encodeURIComponent(k[0])}"]`);
6517
+ }).forEach((D) => {
6518
+ let B = D.closest(gn);
6519
+ B ? B.appendChild(D.parentElement === B ? D : D.closest(`${gn} > *`)) : U.appendChild(D.parentElement === U ? D : D.closest(`${gn} > *`));
6520
+ }), z.sort((D, B) => B[1] - D[1]).forEach((D) => {
6521
+ var B;
6522
+ let X = (B = _.current) == null ? void 0 : B.querySelector(`${dt}[${tt}="${encodeURIComponent(D[0])}"]`);
6523
6523
  X?.parentElement.appendChild(X);
6524
6524
  });
6525
6525
  }
6526
- function z() {
6527
- let M = J().find((U) => U.getAttribute("aria-disabled") !== "true"), T = M?.getAttribute(tt);
6528
- x.setState("value", T || void 0);
6526
+ function T() {
6527
+ let M = J().find((U) => U.getAttribute("aria-disabled") !== "true"), z = M?.getAttribute(tt);
6528
+ R.setState("value", z || void 0);
6529
6529
  }
6530
- function W() {
6531
- var M, T, U, k;
6530
+ function H() {
6531
+ var M, z, U, D;
6532
6532
  if (!t.current.search || s.current.shouldFilter === !1) {
6533
6533
  t.current.filtered.count = r.current.size;
6534
6534
  return;
6535
6535
  }
6536
6536
  t.current.filtered.groups = /* @__PURE__ */ new Set();
6537
- let H = 0;
6537
+ let B = 0;
6538
6538
  for (let X of r.current) {
6539
- let oe = (T = (M = i.current.get(X)) == null ? void 0 : M.value) != null ? T : "", K = (k = (U = i.current.get(X)) == null ? void 0 : U.keywords) != null ? k : [], ve = R(oe, K);
6540
- t.current.filtered.items.set(X, ve), ve > 0 && H++;
6539
+ let oe = (z = (M = i.current.get(X)) == null ? void 0 : M.value) != null ? z : "", K = (D = (U = i.current.get(X)) == null ? void 0 : U.keywords) != null ? D : [], ve = E(oe, K);
6540
+ t.current.filtered.items.set(X, ve), ve > 0 && B++;
6541
6541
  }
6542
6542
  for (let [X, oe] of o.current) for (let K of oe) if (t.current.filtered.items.get(K) > 0) {
6543
6543
  t.current.filtered.groups.add(X);
6544
6544
  break;
6545
6545
  }
6546
- t.current.filtered.count = H;
6546
+ t.current.filtered.count = B;
6547
6547
  }
6548
- function A() {
6549
- var M, T, U;
6550
- let k = ne();
6551
- k && (((M = k.parentElement) == null ? void 0 : M.firstChild) === k && ((U = (T = k.closest(dt)) == null ? void 0 : T.querySelector(vc)) == null || U.scrollIntoView({ block: "nearest" })), k.scrollIntoView({ block: "nearest" }));
6548
+ function $() {
6549
+ var M, z, U;
6550
+ let D = ne();
6551
+ D && (((M = D.parentElement) == null ? void 0 : M.firstChild) === D && ((U = (z = D.closest(dt)) == null ? void 0 : z.querySelector(vc)) == null || U.scrollIntoView({ block: "nearest" })), D.scrollIntoView({ block: "nearest" }));
6552
6552
  }
6553
6553
  function ne() {
6554
6554
  var M;
@@ -6559,36 +6559,36 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
6559
6559
  return Array.from(((M = _.current) == null ? void 0 : M.querySelectorAll(zr)) || []);
6560
6560
  }
6561
6561
  function Q(M) {
6562
- let T = J()[M];
6563
- T && x.setState("value", T.getAttribute(tt));
6562
+ let z = J()[M];
6563
+ z && R.setState("value", z.getAttribute(tt));
6564
6564
  }
6565
6565
  function ee(M) {
6566
- var T;
6567
- let U = ne(), k = J(), H = k.findIndex((oe) => oe === U), X = k[H + M];
6568
- (T = s.current) != null && T.loop && (X = H + M < 0 ? k[k.length - 1] : H + M === k.length ? k[0] : k[H + M]), X && x.setState("value", X.getAttribute(tt));
6566
+ var z;
6567
+ let U = ne(), D = J(), B = D.findIndex((oe) => oe === U), X = D[B + M];
6568
+ (z = s.current) != null && z.loop && (X = B + M < 0 ? D[D.length - 1] : B + M === D.length ? D[0] : D[B + M]), X && R.setState("value", X.getAttribute(tt));
6569
6569
  }
6570
6570
  function ce(M) {
6571
- let T = ne(), U = T?.closest(dt), k;
6572
- for (; U && !k; ) U = M > 0 ? Mc(U, dt) : Ic(U, dt), k = U?.querySelector(zr);
6573
- k ? x.setState("value", k.getAttribute(tt)) : ee(M);
6571
+ let z = ne(), U = z?.closest(dt), D;
6572
+ for (; U && !D; ) U = M > 0 ? Mc(U, dt) : Ic(U, dt), D = U?.querySelector(zr);
6573
+ D ? R.setState("value", D.getAttribute(tt)) : ee(M);
6574
6574
  }
6575
- let fe = () => Q(J().length - 1), O = (M) => {
6575
+ let fe = () => Q(J().length - 1), A = (M) => {
6576
6576
  M.preventDefault(), M.metaKey ? fe() : M.altKey ? ce(1) : ee(1);
6577
6577
  }, ze = (M) => {
6578
6578
  M.preventDefault(), M.metaKey ? Q(0) : M.altKey ? ce(-1) : ee(-1);
6579
6579
  };
6580
- return g.createElement(ue.div, { ref: n, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (M) => {
6581
- var T;
6582
- (T = b.onKeyDown) == null || T.call(b, M);
6580
+ return g.createElement(ue.div, { ref: n, tabIndex: -1, ...w, "cmdk-root": "", onKeyDown: (M) => {
6581
+ var z;
6582
+ (z = w.onKeyDown) == null || z.call(w, M);
6583
6583
  let U = M.nativeEvent.isComposing || M.keyCode === 229;
6584
6584
  if (!(M.defaultPrevented || U)) switch (M.key) {
6585
6585
  case "n":
6586
6586
  case "j": {
6587
- S && M.ctrlKey && O(M);
6587
+ S && M.ctrlKey && A(M);
6588
6588
  break;
6589
6589
  }
6590
6590
  case "ArrowDown": {
6591
- O(M);
6591
+ A(M);
6592
6592
  break;
6593
6593
  }
6594
6594
  case "p":
@@ -6610,34 +6610,34 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
6610
6610
  }
6611
6611
  case "Enter": {
6612
6612
  M.preventDefault();
6613
- let k = ne();
6614
- if (k) {
6615
- let H = new Event(kn);
6616
- k.dispatchEvent(H);
6613
+ let D = ne();
6614
+ if (D) {
6615
+ let B = new Event(kn);
6616
+ D.dispatchEvent(B);
6617
6617
  }
6618
6618
  }
6619
6619
  }
6620
- } }, g.createElement("label", { "cmdk-label": "", htmlFor: E.inputId, id: E.labelId, style: Dc }, l), Ut(e, (M) => g.createElement(fi.Provider, { value: x }, g.createElement(di.Provider, { value: E }, M))));
6620
+ } }, g.createElement("label", { "cmdk-label": "", htmlFor: C.inputId, id: C.labelId, style: Dc }, l), Ut(e, (M) => g.createElement(fi.Provider, { value: R }, g.createElement(di.Provider, { value: C }, M))));
6621
6621
  }), wc = g.forwardRef((e, n) => {
6622
6622
  var t, r;
6623
6623
  let o = _e(), i = g.useRef(null), a = g.useContext(gi), s = St(), l = pi(e), u = (r = (t = l.current) == null ? void 0 : t.forceMount) != null ? r : a?.forceMount;
6624
6624
  Ue(() => {
6625
6625
  if (!u) return s.item(o, a?.id);
6626
6626
  }, [u]);
6627
- let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((F) => F.value && F.value === c.current), f = Oe((F) => u || s.filter() === !1 ? !0 : F.search ? F.filtered.items.get(o) > 0 : !0);
6627
+ let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((k) => k.value && k.value === c.current), f = Oe((k) => u || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
6628
6628
  g.useEffect(() => {
6629
- let F = i.current;
6630
- if (!(!F || e.disabled)) return F.addEventListener(kn, v), () => F.removeEventListener(kn, v);
6629
+ let k = i.current;
6630
+ if (!(!k || e.disabled)) return k.addEventListener(kn, v), () => k.removeEventListener(kn, v);
6631
6631
  }, [f, e.onSelect, e.disabled]);
6632
6632
  function v() {
6633
- var F, x;
6634
- p(), (x = (F = l.current).onSelect) == null || x.call(F, c.current);
6633
+ var k, R;
6634
+ p(), (R = (k = l.current).onSelect) == null || R.call(k, c.current);
6635
6635
  }
6636
6636
  function p() {
6637
6637
  m.setState("value", c.current, !0);
6638
6638
  }
6639
6639
  if (!f) return null;
6640
- let { disabled: S, value: b, onSelect: C, forceMount: w, keywords: y, ..._ } = e;
6640
+ let { disabled: S, value: w, onSelect: x, forceMount: y, keywords: b, ..._ } = e;
6641
6641
  return g.createElement(ue.div, { ref: We(i, n), ..._, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!S, "aria-selected": !!d, "data-disabled": !!S, "data-selected": !!d, onPointerMove: S || s.getDisablePointerSelection() ? void 0 : p, onClick: S ? void 0 : v }, e.children);
6642
6642
  }), Sc = g.forwardRef((e, n) => {
6643
6643
  let { heading: t, children: r, forceMount: o, ...i } = e, a = _e(), s = g.useRef(null), l = g.useRef(null), u = _e(), c = St(), m = Oe((f) => o || c.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
@@ -6741,7 +6741,7 @@ function Pc({ className: e, ...n }) {
6741
6741
  {
6742
6742
  "data-slot": "input-group",
6743
6743
  role: "group",
6744
- className: I(
6744
+ className: F(
6745
6745
  "group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
6746
6746
  e
6747
6747
  ),
@@ -6776,7 +6776,7 @@ function Oc({
6776
6776
  role: "group",
6777
6777
  "data-slot": "input-group-addon",
6778
6778
  "data-align": n,
6779
- className: I(Nc({ align: n }), e),
6779
+ className: F(Nc({ align: n }), e),
6780
6780
  onClick: (r) => {
6781
6781
  r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
6782
6782
  },
@@ -6792,7 +6792,7 @@ function vi({
6792
6792
  it,
6793
6793
  {
6794
6794
  "data-slot": "command",
6795
- className: I(
6795
+ className: F(
6796
6796
  "flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
6797
6797
  e
6798
6798
  ),
@@ -6804,12 +6804,12 @@ function bi({
6804
6804
  className: e,
6805
6805
  ...n
6806
6806
  }) {
6807
- return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ G(Pc, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
6807
+ return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ W(Pc, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
6808
6808
  /* @__PURE__ */ h(
6809
6809
  it.Input,
6810
6810
  {
6811
6811
  "data-slot": "command-input",
6812
- className: I(
6812
+ className: F(
6813
6813
  "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
6814
6814
  e
6815
6815
  ),
@@ -6827,7 +6827,7 @@ function wi({
6827
6827
  it.List,
6828
6828
  {
6829
6829
  "data-slot": "command-list",
6830
- className: I(
6830
+ className: F(
6831
6831
  "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
6832
6832
  e
6833
6833
  ),
@@ -6843,7 +6843,7 @@ function Si({
6843
6843
  it.Empty,
6844
6844
  {
6845
6845
  "data-slot": "command-empty",
6846
- className: I("py-6 text-center text-sm", e),
6846
+ className: F("py-6 text-center text-sm", e),
6847
6847
  ...n
6848
6848
  }
6849
6849
  );
@@ -6856,7 +6856,7 @@ function yi({
6856
6856
  it.Group,
6857
6857
  {
6858
6858
  "data-slot": "command-group",
6859
- className: I(
6859
+ className: F(
6860
6860
  "overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
6861
6861
  e
6862
6862
  ),
@@ -6869,11 +6869,11 @@ function Fn({
6869
6869
  children: n,
6870
6870
  ...t
6871
6871
  }) {
6872
- return /* @__PURE__ */ G(
6872
+ return /* @__PURE__ */ W(
6873
6873
  it.Item,
6874
6874
  {
6875
6875
  "data-slot": "command-item",
6876
- className: I(
6876
+ className: F(
6877
6877
  "group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
6878
6878
  e
6879
6879
  ),
@@ -6904,7 +6904,7 @@ function Ri({
6904
6904
  "data-slot": "popover-content",
6905
6905
  align: n,
6906
6906
  sideOffset: t,
6907
- className: I(
6907
+ className: F(
6908
6908
  "relative z-60 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
6909
6909
  e
6910
6910
  ),
@@ -6924,13 +6924,13 @@ function et(e, n, t) {
6924
6924
  r = m;
6925
6925
  let f;
6926
6926
  if (t.key && ((l = t.debug) != null && l.call(t)) && (f = Date.now()), o = n(...m), t.key && ((u = t.debug) != null && u.call(t))) {
6927
- const v = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - f) * 100) / 100, S = p / 16, b = (C, w) => {
6928
- for (C = String(C); C.length < w; )
6929
- C = " " + C;
6930
- return C;
6927
+ const v = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - f) * 100) / 100, S = p / 16, w = (x, y) => {
6928
+ for (x = String(x); x.length < y; )
6929
+ x = " " + x;
6930
+ return x;
6931
6931
  };
6932
6932
  console.info(
6933
- `%c⏱ ${b(p, 5)} /${b(v, 5)} ms`,
6933
+ `%c⏱ ${w(p, 5)} /${w(v, 5)} ms`,
6934
6934
  `
6935
6935
  font-size: .6rem;
6936
6936
  font-weight: bold;
@@ -7215,18 +7215,18 @@ class Gc {
7215
7215
  let p, S;
7216
7216
  if (v !== void 0 && this.options.lanes > 1) {
7217
7217
  p = v;
7218
- const y = m[p], _ = y !== void 0 ? c[y] : void 0;
7218
+ const b = m[p], _ = b !== void 0 ? c[b] : void 0;
7219
7219
  S = _ ? _.end + this.options.gap : r + o;
7220
7220
  } else {
7221
- const y = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d);
7222
- S = y ? y.end + this.options.gap : r + o, p = y ? y.lane : d % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(d, p);
7221
+ const b = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d);
7222
+ S = b ? b.end + this.options.gap : r + o, p = b ? b.lane : d % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(d, p);
7223
7223
  }
7224
- const b = l.get(f), C = typeof b == "number" ? b : this.options.estimateSize(d), w = S + C;
7224
+ const w = l.get(f), x = typeof w == "number" ? w : this.options.estimateSize(d), y = S + x;
7225
7225
  c[d] = {
7226
7226
  index: d,
7227
7227
  start: S,
7228
- size: C,
7229
- end: w,
7228
+ size: x,
7229
+ end: y,
7230
7230
  key: f,
7231
7231
  lane: p
7232
7232
  }, m[p] = d;
@@ -7546,110 +7546,111 @@ const Uc = ({
7546
7546
  selectedOption: t,
7547
7547
  onSelectOption: r,
7548
7548
  virtualizationOverscan: o = 10,
7549
- virtualizationItemHeight: i = 34
7549
+ virtualizationItemHeight: i = 34,
7550
+ showSearch: a = !0
7550
7551
  }) => {
7551
- const [a, s] = g.useState(e), [l, u] = g.useState(0), [c, m] = g.useState(!1), d = g.useRef(null), f = qn({
7552
- count: a.length,
7553
- getScrollElement: () => d.current,
7552
+ const [s, l] = g.useState(e), [u, c] = g.useState(0), [m, d] = g.useState(!1), f = g.useRef(null), v = qn({
7553
+ count: s.length,
7554
+ getScrollElement: () => f.current,
7554
7555
  estimateSize: () => i,
7555
7556
  overscan: o
7556
- }), v = f.getVirtualItems(), p = (C) => {
7557
- f.scrollToIndex(C, {
7557
+ }), p = v.getVirtualItems(), S = (y) => {
7558
+ v.scrollToIndex(y, {
7558
7559
  align: "center"
7559
7560
  });
7560
- }, S = (C) => {
7561
- m(!1), s(
7561
+ }, w = (y) => {
7562
+ d(!1), l(
7562
7563
  e.filter(
7563
- (w) => w.value.toLowerCase().includes(C.toLowerCase() ?? [])
7564
+ (b) => b.value.toLowerCase().includes(y.toLowerCase() ?? [])
7564
7565
  )
7565
7566
  );
7566
- }, b = (C) => {
7567
- switch (C.key) {
7567
+ }, x = (y) => {
7568
+ switch (y.key) {
7568
7569
  case "ArrowDown": {
7569
- C.preventDefault(), m(!0), u((w) => {
7570
- const y = w === -1 ? 0 : Math.min(w + 1, a.length - 1);
7571
- return p(y), y;
7570
+ y.preventDefault(), d(!0), c((b) => {
7571
+ const _ = b === -1 ? 0 : Math.min(b + 1, s.length - 1);
7572
+ return S(_), _;
7572
7573
  });
7573
7574
  break;
7574
7575
  }
7575
7576
  case "ArrowUp": {
7576
- C.preventDefault(), m(!0), u((w) => {
7577
- const y = w === -1 ? a.length - 1 : Math.max(w - 1, 0);
7578
- return p(y), y;
7577
+ y.preventDefault(), d(!0), c((b) => {
7578
+ const _ = b === -1 ? s.length - 1 : Math.max(b - 1, 0);
7579
+ return S(_), _;
7579
7580
  });
7580
7581
  break;
7581
7582
  }
7582
7583
  case "Enter": {
7583
- C.preventDefault(), a[l] && r?.(a[l].value);
7584
+ y.preventDefault(), s[u] && r?.(s[u].value);
7584
7585
  break;
7585
7586
  }
7586
7587
  }
7587
7588
  };
7588
7589
  return g.useEffect(() => {
7589
7590
  if (t) {
7590
- const C = a.find(
7591
- (w) => w.value === t
7591
+ const y = s.find(
7592
+ (b) => b.value === t
7592
7593
  );
7593
- if (C) {
7594
- const w = a.indexOf(C);
7595
- u(w), f.scrollToIndex(w, {
7594
+ if (y) {
7595
+ const b = s.indexOf(y);
7596
+ c(b), v.scrollToIndex(b, {
7596
7597
  align: "center"
7597
7598
  });
7598
7599
  }
7599
7600
  }
7600
- }, [t, a, f]), /* @__PURE__ */ G(vi, { shouldFilter: !1, onKeyDown: b, children: [
7601
- /* @__PURE__ */ h(bi, { onValueChange: S, placeholder: n }),
7602
- /* @__PURE__ */ G(
7601
+ }, [t, s, v]), /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: x, children: [
7602
+ a && /* @__PURE__ */ h(bi, { onValueChange: w, placeholder: n }),
7603
+ /* @__PURE__ */ W(
7603
7604
  wi,
7604
7605
  {
7605
- ref: d,
7606
+ ref: f,
7606
7607
  style: {
7607
7608
  width: "100%",
7608
7609
  overflow: "auto"
7609
7610
  },
7610
- onMouseDown: () => m(!1),
7611
- onMouseMove: () => m(!1),
7611
+ onMouseDown: () => d(!1),
7612
+ onMouseMove: () => d(!1),
7612
7613
  children: [
7613
7614
  /* @__PURE__ */ h(Si, { children: "No item found." }),
7614
7615
  /* @__PURE__ */ h(yi, { children: /* @__PURE__ */ h(
7615
7616
  "div",
7616
7617
  {
7617
7618
  style: {
7618
- height: `${f.getTotalSize()}px`,
7619
+ height: `${v.getTotalSize()}px`,
7619
7620
  width: "100%",
7620
7621
  position: "relative"
7621
7622
  },
7622
- children: v.map((C) => /* @__PURE__ */ G(
7623
+ children: p.map((y) => /* @__PURE__ */ W(
7623
7624
  Fn,
7624
7625
  {
7625
- disabled: c || a[C.index].disabled,
7626
- className: I(
7626
+ disabled: m || s[y.index].disabled,
7627
+ className: F(
7627
7628
  "absolute left-0 top-0 w-full bg-transparent cursor-pointer",
7628
- l === C.index && "bg-accent text-accent-foreground",
7629
- c && l !== C.index && "aria-selected:bg-transparent aria-selected:text-primary"
7629
+ u === y.index && "bg-accent text-accent-foreground",
7630
+ m && u !== y.index && "aria-selected:bg-transparent aria-selected:text-primary"
7630
7631
  ),
7631
7632
  style: {
7632
- height: `${C.size}px`,
7633
- transform: `translateY(${C.start}px)`
7633
+ height: `${y.size}px`,
7634
+ transform: `translateY(${y.start}px)`
7634
7635
  },
7635
- value: a[C.index].value,
7636
- onMouseEnter: () => !c && u(C.index),
7637
- onMouseLeave: () => !c && u(-1),
7636
+ value: s[y.index].value,
7637
+ onMouseEnter: () => !m && c(y.index),
7638
+ onMouseLeave: () => !m && c(-1),
7638
7639
  onSelect: r,
7639
7640
  children: [
7640
7641
  /* @__PURE__ */ h(
7641
7642
  Bt,
7642
7643
  {
7643
- className: I(
7644
+ className: F(
7644
7645
  "mr-2 h-4 w-4",
7645
- t === a[C.index].value ? "opacity-100" : "opacity-0"
7646
+ t === s[y.index].value ? "opacity-100" : "opacity-0"
7646
7647
  )
7647
7648
  }
7648
7649
  ),
7649
- a[C.index].label
7650
+ s[y.index].label
7650
7651
  ]
7651
7652
  },
7652
- a[C.index].value
7653
+ s[y.index].value
7653
7654
  ))
7654
7655
  }
7655
7656
  ) })
@@ -7671,15 +7672,15 @@ function nf(e) {
7671
7672
  () => new Set(r.map((l) => l.value)),
7672
7673
  [r]
7673
7674
  ).has(e.value) ? e.value : "", s = a.length > 0 ? o.get(a) ?? a : e.placeholder;
7674
- return /* @__PURE__ */ h("div", { className: I("w-full", e.className), children: /* @__PURE__ */ G(Ci, { open: n, onOpenChange: t, children: [
7675
- /* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ G(
7675
+ return /* @__PURE__ */ h("div", { className: F("w-full", e.className), children: /* @__PURE__ */ W(Ci, { open: n, onOpenChange: t, children: [
7676
+ /* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ W(
7676
7677
  vt,
7677
7678
  {
7678
7679
  variant: "outline",
7679
7680
  role: "combobox",
7680
7681
  "aria-expanded": n,
7681
7682
  disabled: e.disabled,
7682
- className: I(
7683
+ className: F(
7683
7684
  "w-full flex justify-between",
7684
7685
  e.triggerClassName
7685
7686
  ),
@@ -7702,6 +7703,7 @@ function nf(e) {
7702
7703
  label: l.label,
7703
7704
  disabled: l.disabled
7704
7705
  })),
7706
+ showSearch: e.showSearch,
7705
7707
  placeholder: e.placeholder ?? "Select an option",
7706
7708
  selectedOption: a,
7707
7709
  onSelectOption: (l) => {
@@ -7721,7 +7723,7 @@ function Wr({
7721
7723
  ir.Root,
7722
7724
  {
7723
7725
  "data-slot": "checkbox",
7724
- className: I(
7726
+ className: F(
7725
7727
  "peer size-4 shrink-0 rounded-[4px] border border-input bg-background shadow-xs outline-none transition-shadow focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
7726
7728
  e
7727
7729
  ),
@@ -7747,72 +7749,73 @@ function qc({
7747
7749
  allValue: a,
7748
7750
  disabled: s,
7749
7751
  virtualizationOverscan: l = 10,
7750
- virtualizationItemHeight: u = 34
7752
+ virtualizationItemHeight: u = 34,
7753
+ showSearch: c = !0
7751
7754
  }) {
7752
- const [c, m] = g.useState(""), [d, f] = g.useState(-1), [v, p] = g.useState(!1), S = g.useRef(null), b = g.useMemo(() => {
7753
- const x = c.trim().toLowerCase();
7754
- return x.length === 0 ? e : e.filter((E) => `${E.label} ${E.value}`.toLowerCase().includes(x));
7755
- }, [e, c]), C = g.useMemo(
7755
+ const [m, d] = g.useState(""), [f, v] = g.useState(-1), [p, S] = g.useState(!1), w = g.useRef(null), x = g.useMemo(() => {
7756
+ const C = m.trim().toLowerCase();
7757
+ return C.length === 0 ? e : e.filter((E) => `${E.label} ${E.value}`.toLowerCase().includes(C));
7758
+ }, [e, m]), y = g.useMemo(
7756
7759
  () => new Set(t),
7757
7760
  [t]
7758
- ), w = qn({
7759
- count: b.length,
7760
- getScrollElement: () => S.current,
7761
+ ), b = qn({
7762
+ count: x.length,
7763
+ getScrollElement: () => w.current,
7761
7764
  estimateSize: () => u,
7762
7765
  overscan: l
7763
- }), y = w.getVirtualItems(), _ = g.useCallback(
7764
- (x) => {
7765
- w.scrollToIndex(x, { align: "center" });
7766
+ }), _ = b.getVirtualItems(), k = g.useCallback(
7767
+ (C) => {
7768
+ b.scrollToIndex(C, { align: "center" });
7766
7769
  },
7767
- [w]
7770
+ [b]
7768
7771
  );
7769
- return /* @__PURE__ */ G(vi, { shouldFilter: !1, onKeyDown: (x) => {
7770
- switch (x.key) {
7772
+ return /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: (C) => {
7773
+ switch (C.key) {
7771
7774
  case "ArrowDown": {
7772
- x.preventDefault(), p(!0), f((E) => {
7773
- const R = Math.min(E + 1, b.length - 1);
7774
- return R >= 0 && _(R), R;
7775
+ C.preventDefault(), S(!0), v((E) => {
7776
+ const I = Math.min(E + 1, x.length - 1);
7777
+ return I >= 0 && k(I), I;
7775
7778
  });
7776
7779
  break;
7777
7780
  }
7778
7781
  case "ArrowUp": {
7779
- x.preventDefault(), p(!0), f((E) => {
7780
- const R = Math.max(E - 1, 0);
7781
- return R >= 0 && _(R), R;
7782
+ C.preventDefault(), S(!0), v((E) => {
7783
+ const I = Math.max(E - 1, 0);
7784
+ return I >= 0 && k(I), I;
7782
7785
  });
7783
7786
  break;
7784
7787
  }
7785
7788
  case "Enter": {
7786
- if (d < 0 || !b[d])
7789
+ if (f < 0 || !x[f])
7787
7790
  return;
7788
- const E = b[d];
7791
+ const E = x[f];
7789
7792
  if (s || E.disabled)
7790
7793
  return;
7791
- x.preventDefault(), r(E.value);
7794
+ C.preventDefault(), r(E.value);
7792
7795
  break;
7793
7796
  }
7794
7797
  }
7795
7798
  }, children: [
7796
- /* @__PURE__ */ h(
7799
+ c && /* @__PURE__ */ h(
7797
7800
  bi,
7798
7801
  {
7799
- value: c,
7800
- onValueChange: (x) => {
7801
- m(x), f(-1), p(!1);
7802
+ value: m,
7803
+ onValueChange: (C) => {
7804
+ d(C), v(-1), S(!1);
7802
7805
  },
7803
7806
  placeholder: n
7804
7807
  }
7805
7808
  ),
7806
- /* @__PURE__ */ G(
7809
+ /* @__PURE__ */ W(
7807
7810
  wi,
7808
7811
  {
7809
- ref: S,
7810
- onMouseDown: () => p(!1),
7811
- onMouseMove: () => p(!1),
7812
+ ref: w,
7813
+ onMouseDown: () => S(!1),
7814
+ onMouseMove: () => S(!1),
7812
7815
  children: [
7813
7816
  /* @__PURE__ */ h(Si, { children: "No item found." }),
7814
- /* @__PURE__ */ G(yi, { children: [
7815
- o ? /* @__PURE__ */ G(
7817
+ /* @__PURE__ */ W(yi, { children: [
7818
+ o ? /* @__PURE__ */ W(
7816
7819
  Fn,
7817
7820
  {
7818
7821
  value: a,
@@ -7823,7 +7826,7 @@ function qc({
7823
7826
  /* @__PURE__ */ h(
7824
7827
  Wr,
7825
7828
  {
7826
- checked: C.has(a),
7829
+ checked: y.has(a),
7827
7830
  className: "pointer-events-none"
7828
7831
  }
7829
7832
  ),
@@ -7836,34 +7839,34 @@ function qc({
7836
7839
  "div",
7837
7840
  {
7838
7841
  style: {
7839
- height: `${w.getTotalSize()}px`,
7842
+ height: `${b.getTotalSize()}px`,
7840
7843
  width: "100%",
7841
7844
  position: "relative"
7842
7845
  },
7843
- children: y.map((x) => {
7844
- const E = b[x.index], R = C.has(E.value);
7845
- return /* @__PURE__ */ G(
7846
+ children: _.map((C) => {
7847
+ const E = x[C.index], I = y.has(E.value);
7848
+ return /* @__PURE__ */ W(
7846
7849
  Fn,
7847
7850
  {
7848
7851
  value: E.value,
7849
- disabled: s || E.disabled || v,
7852
+ disabled: s || E.disabled || p,
7850
7853
  onSelect: () => r(E.value),
7851
- onMouseEnter: () => !v && f(x.index),
7852
- onMouseLeave: () => !v && f(-1),
7853
- className: I(
7854
+ onMouseEnter: () => !p && v(C.index),
7855
+ onMouseLeave: () => !p && v(-1),
7856
+ className: F(
7854
7857
  "absolute left-0 top-0 w-full bg-transparent cursor-pointer",
7855
- d === x.index && "bg-accent text-accent-foreground",
7856
- v && d !== x.index && "aria-selected:bg-transparent aria-selected:text-primary"
7858
+ f === C.index && "bg-accent text-accent-foreground",
7859
+ p && f !== C.index && "aria-selected:bg-transparent aria-selected:text-primary"
7857
7860
  ),
7858
7861
  style: {
7859
- height: `${x.size}px`,
7860
- transform: `translateY(${x.start}px)`
7862
+ height: `${C.size}px`,
7863
+ transform: `translateY(${C.start}px)`
7861
7864
  },
7862
7865
  children: [
7863
7866
  /* @__PURE__ */ h(
7864
7867
  Wr,
7865
7868
  {
7866
- checked: R,
7869
+ checked: I,
7867
7870
  className: "pointer-events-none"
7868
7871
  }
7869
7872
  ),
@@ -7897,78 +7900,79 @@ function rf({
7897
7900
  allValue: d = "all",
7898
7901
  selectedCountLabel: f = "geselecteerd",
7899
7902
  virtualizationOverscan: v = 10,
7900
- virtualizationItemHeight: p = 34
7903
+ virtualizationItemHeight: p = 34,
7904
+ showSearch: S = !0
7901
7905
  }) {
7902
- const S = g.useMemo(() => {
7903
- const R = /* @__PURE__ */ new Map();
7904
- return e.forEach(($) => {
7905
- R.has($.value) || R.set($.value, $);
7906
- }), Array.from(R.values());
7907
- }, [e]), b = g.useMemo(
7908
- () => S.filter((R) => R.value !== d),
7909
- [d, S]
7910
- ), C = g.useMemo(
7911
- () => /* @__PURE__ */ new Set([d, ...b.map((R) => R.value)]),
7912
- [d, b]
7913
- ), w = g.useMemo(() => {
7914
- const R = Array.from(new Set(n)).filter(
7915
- ($) => C.has($)
7906
+ const w = g.useMemo(() => {
7907
+ const I = /* @__PURE__ */ new Map();
7908
+ return e.forEach((T) => {
7909
+ I.has(T.value) || I.set(T.value, T);
7910
+ }), Array.from(I.values());
7911
+ }, [e]), x = g.useMemo(
7912
+ () => w.filter((I) => I.value !== d),
7913
+ [d, w]
7914
+ ), y = g.useMemo(
7915
+ () => /* @__PURE__ */ new Set([d, ...x.map((I) => I.value)]),
7916
+ [d, x]
7917
+ ), b = g.useMemo(() => {
7918
+ const I = Array.from(new Set(n)).filter(
7919
+ (T) => y.has(T)
7916
7920
  );
7917
- return R.includes(d) ? [d] : R.length === 0 && c ? [d] : R;
7918
- }, [d, c, C, n]), y = g.useMemo(() => {
7919
- const R = /* @__PURE__ */ new Map();
7920
- return b.forEach(($) => {
7921
- R.set($.value, $.label);
7922
- }), R.set(d, m), R;
7923
- }, [d, m, b]), _ = g.useMemo(() => w.length === 0 ? r : w.length <= 2 ? w.map(
7924
- (R) => y.get(R) ?? R
7925
- ).join(", ") : `${w.length} ${f}`, [y, w, r, f]), F = g.useCallback(
7926
- (R) => {
7927
- if (R === d) {
7921
+ return I.includes(d) ? [d] : I.length === 0 && c ? [d] : I;
7922
+ }, [d, c, y, n]), _ = g.useMemo(() => {
7923
+ const I = /* @__PURE__ */ new Map();
7924
+ return x.forEach((T) => {
7925
+ I.set(T.value, T.label);
7926
+ }), I.set(d, m), I;
7927
+ }, [d, m, x]), k = g.useMemo(() => b.length === 0 ? r : b.length <= 2 ? b.map(
7928
+ (I) => _.get(I) ?? I
7929
+ ).join(", ") : `${b.length} ${f}`, [_, b, r, f]), R = g.useCallback(
7930
+ (I) => {
7931
+ if (I === d) {
7928
7932
  t([d]);
7929
7933
  return;
7930
7934
  }
7931
- if (w.includes(R)) {
7932
- const z = w.filter(
7933
- (W) => W !== R
7935
+ if (b.includes(I)) {
7936
+ const H = b.filter(
7937
+ ($) => $ !== I
7934
7938
  );
7935
7939
  t(
7936
- z.length === 0 && c ? [d] : z
7940
+ H.length === 0 && c ? [d] : H
7937
7941
  );
7938
7942
  return;
7939
7943
  }
7940
7944
  t([
7941
- ...w.filter(
7942
- (z) => z !== d
7945
+ ...b.filter(
7946
+ (H) => H !== d
7943
7947
  ),
7944
- R
7948
+ I
7945
7949
  ]);
7946
7950
  },
7947
- [d, w, t, c]
7948
- ), [x, E] = g.useState(!1);
7949
- return /* @__PURE__ */ G("div", { className: I("w-full", a), children: [
7950
- i ? w.map((R) => /* @__PURE__ */ h(
7951
+ [d, b, t, c]
7952
+ ), [C, E] = g.useState(!1);
7953
+ return /* @__PURE__ */ W("div", { className: F("w-full", a), children: [
7954
+ i ? b.map((I) => /* @__PURE__ */ h(
7951
7955
  "input",
7952
7956
  {
7953
7957
  type: "hidden",
7954
7958
  name: i,
7955
- value: R
7959
+ value: I
7956
7960
  },
7957
- `${i}-${R}`
7961
+ `${i}-${I}`
7958
7962
  )) : null,
7959
- /* @__PURE__ */ G(Ci, { open: x, onOpenChange: E, children: [
7960
- /* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ G(
7963
+ /* @__PURE__ */ W(Ci, { open: C, onOpenChange: E, children: [
7964
+ /* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ W(
7961
7965
  "button",
7962
7966
  {
7963
7967
  type: "button",
7964
7968
  disabled: o,
7965
- className: I(
7969
+ className: F(
7966
7970
  si,
7967
- w.length === 0 && "text-muted-foreground",
7971
+ b.length === 0 && "text-muted-foreground",
7968
7972
  s
7969
7973
  ),
7970
7974
  children: [
7971
- /* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children: _ }),
7975
+ /* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children: k }),
7972
7976
  /* @__PURE__ */ h(bt, { className: "size-4 text-muted-foreground" })
7973
7977
  ]
7974
7978
  }
@@ -7978,7 +7982,7 @@ function rf({
7978
7982
  {
7979
7983
  align: "start",
7980
7984
  portalContainer: u,
7981
- className: I(
7985
+ className: F(
7982
7986
  li,
7983
7987
  "w-auto min-w-(--radix-popover-trigger-width) border-0 p-0",
7984
7988
  l
@@ -7986,10 +7990,11 @@ function rf({
7986
7990
  children: /* @__PURE__ */ h(
7987
7991
  qc,
7988
7992
  {
7989
- options: b,
7993
+ showSearch: S,
7994
+ options: x,
7990
7995
  placeholder: r,
7991
- selectedValues: w,
7992
- onToggleOption: F,
7996
+ selectedValues: b,
7997
+ onToggleOption: R,
7993
7998
  showSelectAll: c,
7994
7999
  selectAllLabel: m,
7995
8000
  allValue: d,
@@ -8204,15 +8209,15 @@ function Pt(e, n, t, r) {
8204
8209
  headers: []
8205
8210
  }, p = [];
8206
8211
  d.forEach((S) => {
8207
- const b = [...p].reverse()[0], C = S.column.depth === v.depth;
8208
- let w, y = !1;
8209
- if (C && S.column.parent ? w = S.column.parent : (w = S.column, y = !0), b && b?.column === w)
8210
- b.subHeaders.push(S);
8212
+ const w = [...p].reverse()[0], x = S.column.depth === v.depth;
8213
+ let y, b = !1;
8214
+ if (x && S.column.parent ? y = S.column.parent : (y = S.column, b = !0), w && w?.column === y)
8215
+ w.subHeaders.push(S);
8211
8216
  else {
8212
- const _ = jr(t, w, {
8213
- id: [r, f, w.id, S?.id].filter(Boolean).join("_"),
8214
- isPlaceholder: y,
8215
- placeholderId: y ? `${p.filter((F) => F.column === w).length}` : void 0,
8217
+ const _ = jr(t, y, {
8218
+ id: [r, f, y.id, S?.id].filter(Boolean).join("_"),
8219
+ isPlaceholder: b,
8220
+ placeholderId: b ? `${p.filter((k) => k.column === y).length}` : void 0,
8216
8221
  depth: f,
8217
8222
  index: p.length
8218
8223
  });
@@ -8226,16 +8231,16 @@ function Pt(e, n, t, r) {
8226
8231
  }));
8227
8232
  u(c, a - 1), l.reverse();
8228
8233
  const m = (d) => d.filter((v) => v.column.getIsVisible()).map((v) => {
8229
- let p = 0, S = 0, b = [0];
8230
- v.subHeaders && v.subHeaders.length ? (b = [], m(v.subHeaders).forEach((w) => {
8234
+ let p = 0, S = 0, w = [0];
8235
+ v.subHeaders && v.subHeaders.length ? (w = [], m(v.subHeaders).forEach((y) => {
8231
8236
  let {
8232
- colSpan: y,
8237
+ colSpan: b,
8233
8238
  rowSpan: _
8234
- } = w;
8235
- p += y, b.push(_);
8239
+ } = y;
8240
+ p += b, w.push(_);
8236
8241
  })) : p = 1;
8237
- const C = Math.min(...b);
8238
- return S = S + C, v.colSpan = p, v.rowSpan = S, {
8242
+ const x = Math.min(...w);
8243
+ return S = S + x, v.colSpan = p, v.rowSpan = S, {
8239
8244
  colSpan: p,
8240
8245
  rowSpan: S
8241
8246
  };
@@ -8742,25 +8747,25 @@ const Nt = {
8742
8747
  return (i) => {
8743
8748
  if (!r || !o || (i.persist == null || i.persist(), vn(i) && i.touches && i.touches.length > 1))
8744
8749
  return;
8745
- const a = e.getSize(), s = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[r.id, r.getSize()]], l = vn(i) ? Math.round(i.touches[0].clientX) : i.clientX, u = {}, c = (b, C) => {
8746
- typeof C == "number" && (n.setColumnSizingInfo((w) => {
8747
- var y, _;
8748
- const F = n.options.columnResizeDirection === "rtl" ? -1 : 1, x = (C - ((y = w?.startOffset) != null ? y : 0)) * F, E = Math.max(x / ((_ = w?.startSize) != null ? _ : 0), -0.999999);
8749
- return w.columnSizingStart.forEach((R) => {
8750
- let [$, z] = R;
8751
- u[$] = Math.round(Math.max(z + z * E, 0) * 100) / 100;
8750
+ const a = e.getSize(), s = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[r.id, r.getSize()]], l = vn(i) ? Math.round(i.touches[0].clientX) : i.clientX, u = {}, c = (w, x) => {
8751
+ typeof x == "number" && (n.setColumnSizingInfo((y) => {
8752
+ var b, _;
8753
+ const k = n.options.columnResizeDirection === "rtl" ? -1 : 1, R = (x - ((b = y?.startOffset) != null ? b : 0)) * k, C = Math.max(R / ((_ = y?.startSize) != null ? _ : 0), -0.999999);
8754
+ return y.columnSizingStart.forEach((E) => {
8755
+ let [I, T] = E;
8756
+ u[I] = Math.round(Math.max(T + T * C, 0) * 100) / 100;
8752
8757
  }), {
8753
- ...w,
8754
- deltaOffset: x,
8755
- deltaPercentage: E
8758
+ ...y,
8759
+ deltaOffset: R,
8760
+ deltaPercentage: C
8756
8761
  };
8757
- }), (n.options.columnResizeMode === "onChange" || b === "end") && n.setColumnSizing((w) => ({
8758
- ...w,
8762
+ }), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((y) => ({
8763
+ ...y,
8759
8764
  ...u
8760
8765
  })));
8761
- }, m = (b) => c("move", b), d = (b) => {
8762
- c("end", b), n.setColumnSizingInfo((C) => ({
8763
- ...C,
8766
+ }, m = (w) => c("move", w), d = (w) => {
8767
+ c("end", w), n.setColumnSizingInfo((x) => ({
8768
+ ...x,
8764
8769
  isResizingColumn: !1,
8765
8770
  startOffset: null,
8766
8771
  startSize: null,
@@ -8769,21 +8774,21 @@ const Nt = {
8769
8774
  columnSizingStart: []
8770
8775
  }));
8771
8776
  }, f = md(t), v = {
8772
- moveHandler: (b) => m(b.clientX),
8773
- upHandler: (b) => {
8774
- f?.removeEventListener("mousemove", v.moveHandler), f?.removeEventListener("mouseup", v.upHandler), d(b.clientX);
8777
+ moveHandler: (w) => m(w.clientX),
8778
+ upHandler: (w) => {
8779
+ f?.removeEventListener("mousemove", v.moveHandler), f?.removeEventListener("mouseup", v.upHandler), d(w.clientX);
8775
8780
  }
8776
8781
  }, p = {
8777
- moveHandler: (b) => (b.cancelable && (b.preventDefault(), b.stopPropagation()), m(b.touches[0].clientX), !1),
8778
- upHandler: (b) => {
8779
- var C;
8780
- f?.removeEventListener("touchmove", p.moveHandler), f?.removeEventListener("touchend", p.upHandler), b.cancelable && (b.preventDefault(), b.stopPropagation()), d((C = b.touches[0]) == null ? void 0 : C.clientX);
8782
+ moveHandler: (w) => (w.cancelable && (w.preventDefault(), w.stopPropagation()), m(w.touches[0].clientX), !1),
8783
+ upHandler: (w) => {
8784
+ var x;
8785
+ f?.removeEventListener("touchmove", p.moveHandler), f?.removeEventListener("touchend", p.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), d((x = w.touches[0]) == null ? void 0 : x.clientX);
8781
8786
  }
8782
8787
  }, S = hd() ? {
8783
8788
  passive: !1
8784
8789
  } : !1;
8785
- vn(i) ? (f?.addEventListener("touchmove", p.moveHandler, S), f?.addEventListener("touchend", p.upHandler, S)) : (f?.addEventListener("mousemove", v.moveHandler, S), f?.addEventListener("mouseup", v.upHandler, S)), n.setColumnSizingInfo((b) => ({
8786
- ...b,
8790
+ vn(i) ? (f?.addEventListener("touchmove", p.moveHandler, S), f?.addEventListener("touchend", p.upHandler, S)) : (f?.addEventListener("mousemove", v.moveHandler, S), f?.addEventListener("mouseup", v.upHandler, S)), n.setColumnSizingInfo((w) => ({
8791
+ ...w,
8787
8792
  startOffset: l,
8788
8793
  startSize: a,
8789
8794
  deltaOffset: 0,
@@ -9582,9 +9587,9 @@ function Pd(e) {
9582
9587
  _getColumnDefs: () => o.options.columns,
9583
9588
  getAllColumns: V(() => [o._getColumnDefs()], (d) => {
9584
9589
  const f = function(v, p, S) {
9585
- return S === void 0 && (S = 0), v.map((b) => {
9586
- const C = Zc(o, b, S, p), w = b;
9587
- return C.columns = w.columns ? f(w.columns, C, S + 1) : [], C;
9590
+ return S === void 0 && (S = 0), v.map((w) => {
9591
+ const x = Zc(o, w, S, p), y = w;
9592
+ return x.columns = y.columns ? f(y.columns, x, S + 1) : [], x;
9588
9593
  });
9589
9594
  };
9590
9595
  return f(d);
@@ -9774,18 +9779,18 @@ function zd() {
9774
9779
  return u.sort((c, m) => {
9775
9780
  for (let f = 0; f < i.length; f += 1) {
9776
9781
  var d;
9777
- const v = i[f], p = a[v.id], S = p.sortUndefined, b = (d = v?.desc) != null ? d : !1;
9778
- let C = 0;
9782
+ const v = i[f], p = a[v.id], S = p.sortUndefined, w = (d = v?.desc) != null ? d : !1;
9783
+ let x = 0;
9779
9784
  if (S) {
9780
- const w = c.getValue(v.id), y = m.getValue(v.id), _ = w === void 0, F = y === void 0;
9781
- if (_ || F) {
9785
+ const y = c.getValue(v.id), b = m.getValue(v.id), _ = y === void 0, k = b === void 0;
9786
+ if (_ || k) {
9782
9787
  if (S === "first") return _ ? -1 : 1;
9783
9788
  if (S === "last") return _ ? 1 : -1;
9784
- C = _ && F ? 0 : _ ? S : -S;
9789
+ x = _ && k ? 0 : _ ? S : -S;
9785
9790
  }
9786
9791
  }
9787
- if (C === 0 && (C = p.sortingFn(c, m, v.id)), C !== 0)
9788
- return b && (C *= -1), p.invertSorting && (C *= -1), C;
9792
+ if (x === 0 && (x = p.sortingFn(c, m, v.id)), x !== 0)
9793
+ return w && (x *= -1), p.invertSorting && (x *= -1), x;
9789
9794
  }
9790
9795
  return c.index - m.index;
9791
9796
  }), u.forEach((c) => {
@@ -9851,7 +9856,7 @@ function Gd({ className: e, ...n }) {
9851
9856
  "table",
9852
9857
  {
9853
9858
  "data-slot": "table",
9854
- className: I("w-full caption-bottom text-sm", e),
9859
+ className: F("w-full caption-bottom text-sm", e),
9855
9860
  ...n
9856
9861
  }
9857
9862
  )
@@ -9863,7 +9868,7 @@ function Wd({ className: e, ...n }) {
9863
9868
  "thead",
9864
9869
  {
9865
9870
  "data-slot": "table-header",
9866
- className: I("[&_tr]:border-b", e),
9871
+ className: F("[&_tr]:border-b", e),
9867
9872
  ...n
9868
9873
  }
9869
9874
  );
@@ -9873,7 +9878,7 @@ function jd({ className: e, ...n }) {
9873
9878
  "tbody",
9874
9879
  {
9875
9880
  "data-slot": "table-body",
9876
- className: I("[&_tr:last-child]:border-0", e),
9881
+ className: F("[&_tr:last-child]:border-0", e),
9877
9882
  ...n
9878
9883
  }
9879
9884
  );
@@ -9883,7 +9888,7 @@ function gt({ className: e, ...n }) {
9883
9888
  "tr",
9884
9889
  {
9885
9890
  "data-slot": "table-row",
9886
- className: I(
9891
+ className: F(
9887
9892
  "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted text-xs",
9888
9893
  e
9889
9894
  ),
@@ -9896,7 +9901,7 @@ function Ud({ className: e, ...n }) {
9896
9901
  "th",
9897
9902
  {
9898
9903
  "data-slot": "table-head",
9899
- className: I(
9904
+ className: F(
9900
9905
  "h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
9901
9906
  e
9902
9907
  ),
@@ -9909,7 +9914,7 @@ function zt({ className: e, ...n }) {
9909
9914
  "td",
9910
9915
  {
9911
9916
  "data-slot": "table-cell",
9912
- className: I(
9917
+ className: F(
9913
9918
  "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
9914
9919
  e
9915
9920
  ),
@@ -9932,37 +9937,37 @@ function of({
9932
9937
  virtualizationItemHeight: m = 36,
9933
9938
  className: d
9934
9939
  }) {
9935
- const [f, v] = At(l), [p, S] = At(""), [b, C] = At([]), w = Zi(null), y = Bd({
9940
+ const [f, v] = At(l), [p, S] = At(""), [w, x] = At([]), y = Zi(null), b = Bd({
9936
9941
  data: e,
9937
9942
  columns: n,
9938
9943
  getRowId: t,
9939
9944
  state: {
9940
9945
  sorting: f,
9941
9946
  globalFilter: p,
9942
- columnFilters: b
9947
+ columnFilters: w
9943
9948
  },
9944
9949
  onSortingChange: v,
9945
9950
  onGlobalFilterChange: S,
9946
- onColumnFiltersChange: C,
9951
+ onColumnFiltersChange: x,
9947
9952
  globalFilterFn: "includesString",
9948
9953
  getCoreRowModel: Nd(),
9949
9954
  getSortedRowModel: zd(),
9950
9955
  getFilteredRowModel: Td()
9951
- }), _ = y.getRowModel().rows, F = qn({
9956
+ }), _ = b.getRowModel().rows, k = qn({
9952
9957
  count: _.length,
9953
- getScrollElement: () => w.current,
9954
- getItemKey: (z) => _[z]?.id ?? z,
9958
+ getScrollElement: () => y.current,
9959
+ getItemKey: (T) => _[T]?.id ?? T,
9955
9960
  estimateSize: () => m,
9956
9961
  overscan: c
9957
- }), x = F.getVirtualItems(), E = x[0]?.start ?? 0, R = x.length > 0 ? F.getTotalSize() - (x.at(-1)?.end ?? 0) : 0, $ = u || i;
9958
- return /* @__PURE__ */ G("div", { className: I("min-h-0 space-y-3", d), children: [
9959
- $ && /* @__PURE__ */ G("div", { className: "flex flex-wrap items-center gap-2", children: [
9960
- i?.(y),
9962
+ }), R = k.getVirtualItems(), C = R[0]?.start ?? 0, E = R.length > 0 ? k.getTotalSize() - (R.at(-1)?.end ?? 0) : 0, I = u || i;
9963
+ return /* @__PURE__ */ W("div", { className: F("min-h-0 space-y-3", d), children: [
9964
+ I && /* @__PURE__ */ W("div", { className: "flex flex-wrap items-center gap-2", children: [
9965
+ i?.(b),
9961
9966
  u && /* @__PURE__ */ h(
9962
9967
  "input",
9963
9968
  {
9964
9969
  value: p,
9965
- onChange: (z) => S(z.target.value),
9970
+ onChange: (T) => S(T.target.value),
9966
9971
  placeholder: a,
9967
9972
  className: "ml-auto h-8 w-full rounded-md border border-input bg-background px-2 text-sm outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 sm:w-72"
9968
9973
  }
@@ -9971,44 +9976,44 @@ function of({
9971
9976
  /* @__PURE__ */ h(
9972
9977
  "div",
9973
9978
  {
9974
- ref: w,
9979
+ ref: y,
9975
9980
  className: "max-h-[min(68vh,42rem)] min-h-[16rem] overflow-y-auto rounded-md border border-border",
9976
- children: /* @__PURE__ */ G(Gd, { children: [
9977
- /* @__PURE__ */ h(Wd, { children: y.getHeaderGroups().map((z) => /* @__PURE__ */ h(gt, { className: "hover:bg-transparent", children: z.headers.map((W) => {
9978
- const A = W.column.columnDef.meta;
9981
+ children: /* @__PURE__ */ W(Gd, { children: [
9982
+ /* @__PURE__ */ h(Wd, { children: b.getHeaderGroups().map((T) => /* @__PURE__ */ h(gt, { className: "hover:bg-transparent", children: T.headers.map((H) => {
9983
+ const $ = H.column.columnDef.meta;
9979
9984
  return /* @__PURE__ */ h(
9980
9985
  Ud,
9981
9986
  {
9982
- className: I(
9987
+ className: F(
9983
9988
  "sticky top-0 z-20 bg-card",
9984
- A?.headerClassName
9989
+ $?.headerClassName
9985
9990
  ),
9986
- children: W.isPlaceholder ? null : W.column.getCanSort() ? /* @__PURE__ */ G(
9991
+ children: H.isPlaceholder ? null : H.column.getCanSort() ? /* @__PURE__ */ W(
9987
9992
  vt,
9988
9993
  {
9989
9994
  type: "button",
9990
9995
  variant: "ghost",
9991
9996
  size: "sm",
9992
9997
  className: "-ml-2 h-8 cursor-pointer px-2 hover:bg-muted/60",
9993
- onClick: () => W.column.toggleSorting(
9994
- W.column.getIsSorted() === "asc"
9998
+ onClick: () => H.column.toggleSorting(
9999
+ H.column.getIsSorted() === "asc"
9995
10000
  ),
9996
10001
  children: [
9997
10002
  $n(
9998
- W.column.columnDef.header,
9999
- W.getContext()
10003
+ H.column.columnDef.header,
10004
+ H.getContext()
10000
10005
  ),
10001
- W.column.getIsSorted() === "asc" ? /* @__PURE__ */ h(fo, { className: "size-4" }) : W.column.getIsSorted() === "desc" ? /* @__PURE__ */ h(bt, { className: "size-4" }) : /* @__PURE__ */ h(Za, { className: "size-4 opacity-60" })
10006
+ H.column.getIsSorted() === "asc" ? /* @__PURE__ */ h(fo, { className: "size-4" }) : H.column.getIsSorted() === "desc" ? /* @__PURE__ */ h(bt, { className: "size-4" }) : /* @__PURE__ */ h(Za, { className: "size-4 opacity-60" })
10002
10007
  ]
10003
10008
  }
10004
10009
  ) : $n(
10005
- W.column.columnDef.header,
10006
- W.getContext()
10010
+ H.column.columnDef.header,
10011
+ H.getContext()
10007
10012
  )
10008
10013
  },
10009
- W.id
10014
+ H.id
10010
10015
  );
10011
- }) }, z.id)) }),
10016
+ }) }, T.id)) }),
10012
10017
  /* @__PURE__ */ h(jd, { children: _.length === 0 ? /* @__PURE__ */ h(gt, { children: /* @__PURE__ */ h(
10013
10018
  zt,
10014
10019
  {
@@ -10016,8 +10021,8 @@ function of({
10016
10021
  className: "h-20 text-center text-muted-foreground",
10017
10022
  children: s
10018
10023
  }
10019
- ) }) : /* @__PURE__ */ G(yn, { children: [
10020
- E > 0 && /* @__PURE__ */ h(
10024
+ ) }) : /* @__PURE__ */ W(yn, { children: [
10025
+ C > 0 && /* @__PURE__ */ h(
10021
10026
  gt,
10022
10027
  {
10023
10028
  "aria-hidden": "true",
@@ -10027,24 +10032,24 @@ function of({
10027
10032
  {
10028
10033
  colSpan: n.length,
10029
10034
  className: "h-0 p-0",
10030
- style: { height: `${E}px` }
10035
+ style: { height: `${C}px` }
10031
10036
  }
10032
10037
  )
10033
10038
  }
10034
10039
  ),
10035
- x.map((z) => {
10036
- const W = _[z.index];
10037
- return W ? /* @__PURE__ */ h(
10040
+ R.map((T) => {
10041
+ const H = _[T.index];
10042
+ return H ? /* @__PURE__ */ h(
10038
10043
  qd,
10039
10044
  {
10040
- row: W,
10045
+ row: H,
10041
10046
  getRowIsSelected: r,
10042
10047
  onRowClick: o
10043
10048
  },
10044
- W.id
10049
+ H.id
10045
10050
  ) : null;
10046
10051
  }),
10047
- R > 0 && /* @__PURE__ */ h(
10052
+ E > 0 && /* @__PURE__ */ h(
10048
10053
  gt,
10049
10054
  {
10050
10055
  "aria-hidden": "true",
@@ -10054,7 +10059,7 @@ function of({
10054
10059
  {
10055
10060
  colSpan: n.length,
10056
10061
  className: "h-0 p-0",
10057
- style: { height: `${R}px` }
10062
+ style: { height: `${E}px` }
10058
10063
  }
10059
10064
  )
10060
10065
  }
@@ -10075,7 +10080,7 @@ function qd({
10075
10080
  gt,
10076
10081
  {
10077
10082
  "data-state": r ? "selected" : void 0,
10078
- className: I(t ? "cursor-pointer" : void 0),
10083
+ className: F(t ? "cursor-pointer" : void 0),
10079
10084
  onClick: t ? (o) => t(e, o) : void 0,
10080
10085
  children: e.getVisibleCells().map((o) => {
10081
10086
  const i = o.column.columnDef.meta;