@tesouro/embedded-components-react 0.9.3 → 0.9.5

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.
@@ -13,10 +13,10 @@ var T = Object.defineProperty, E = (e, t) => {
13
13
  enumerable: !0
14
14
  });
15
15
  return t || T(n, Symbol.toStringTag, { value: "Module" }), n;
16
- }, D = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), O = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ee = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), k = (e) => {
17
- let t = ee(e);
16
+ }, D = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), O = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), k = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), A = (e) => {
17
+ let t = k(e);
18
18
  return t.charAt(0).toUpperCase() + t.slice(1);
19
- }, A = {
19
+ }, j = {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
21
  width: 24,
22
22
  height: 24,
@@ -26,37 +26,37 @@ var T = Object.defineProperty, E = (e, t) => {
26
26
  strokeWidth: 2,
27
27
  strokeLinecap: "round",
28
28
  strokeLinejoin: "round"
29
- }, j = (e) => {
29
+ }, M = (e) => {
30
30
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
31
31
  return !1;
32
- }, M = r({}), N = () => s(M), te = a(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: a = "", children: o, iconNode: s, ...c }, l) => {
33
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = N() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
32
+ }, N = r({}), P = () => s(N), ee = a(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: a = "", children: o, iconNode: s, ...c }, l) => {
33
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = P() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
34
34
  return i("svg", {
35
35
  ref: l,
36
- ...A,
37
- width: t ?? u ?? A.width,
38
- height: t ?? u ?? A.height,
36
+ ...j,
37
+ width: t ?? u ?? j.width,
38
+ height: t ?? u ?? j.height,
39
39
  stroke: e ?? p,
40
40
  strokeWidth: h,
41
41
  className: D("lucide", m, a),
42
- ...!o && !j(c) && { "aria-hidden": "true" },
42
+ ...!o && !M(c) && { "aria-hidden": "true" },
43
43
  ...c
44
44
  }, [...s.map(([e, t]) => i(e, t)), ...Array.isArray(o) ? o : [o]]);
45
- }), P = (e, t) => {
46
- let n = a(({ className: n, ...r }, a) => i(te, {
45
+ }), F = (e, t) => {
46
+ let n = a(({ className: n, ...r }, a) => i(ee, {
47
47
  ref: a,
48
48
  iconNode: t,
49
- className: D(`lucide-${O(k(e))}`, `lucide-${e}`, n),
49
+ className: D(`lucide-${O(A(e))}`, `lucide-${e}`, n),
50
50
  ...r
51
51
  }));
52
- return n.displayName = k(e), n;
53
- }, F = P("arrow-down", [["path", {
52
+ return n.displayName = A(e), n;
53
+ }, te = F("arrow-down", [["path", {
54
54
  d: "M12 5v14",
55
55
  key: "s699le"
56
56
  }], ["path", {
57
57
  d: "m19 12-7 7-7-7",
58
58
  key: "1idqje"
59
- }]]), ne = P("arrow-up-down", [
59
+ }]]), ne = F("arrow-up-down", [
60
60
  ["path", {
61
61
  d: "m21 16-4 4-4-4",
62
62
  key: "f6ql7i"
@@ -73,13 +73,13 @@ var T = Object.defineProperty, E = (e, t) => {
73
73
  d: "M7 4v16",
74
74
  key: "1glfcx"
75
75
  }]
76
- ]), re = P("arrow-up", [["path", {
76
+ ]), I = F("arrow-up", [["path", {
77
77
  d: "m5 12 7-7 7 7",
78
78
  key: "hav0vg"
79
79
  }], ["path", {
80
80
  d: "M12 19V5",
81
81
  key: "x0mq9r"
82
- }]]), I = P("calendar", [
82
+ }]]), re = F("calendar", [
83
83
  ["path", {
84
84
  d: "M8 2v3",
85
85
  key: "1ioesn"
@@ -100,22 +100,22 @@ var T = Object.defineProperty, E = (e, t) => {
100
100
  d: "M3 9h18",
101
101
  key: "1pudct"
102
102
  }]
103
- ]), L = P("check", [["path", {
103
+ ]), L = F("check", [["path", {
104
104
  d: "M20 6 9 17l-5-5",
105
105
  key: "1gmf2c"
106
- }]]), R = P("chevron-down", [["path", {
106
+ }]]), R = F("chevron-down", [["path", {
107
107
  d: "m6 9 6 6 6-6",
108
108
  key: "qrunsl"
109
- }]]), ie = P("chevron-left", [["path", {
109
+ }]]), ie = F("chevron-left", [["path", {
110
110
  d: "m15 18-6-6 6-6",
111
111
  key: "1wnfg3"
112
- }]]), ae = P("chevron-right", [["path", {
112
+ }]]), ae = F("chevron-right", [["path", {
113
113
  d: "m9 18 6-6-6-6",
114
114
  key: "mthhwq"
115
- }]]), z = P("chevron-up", [["path", {
115
+ }]]), z = F("chevron-up", [["path", {
116
116
  d: "m18 15-6-6-6 6",
117
117
  key: "153udz"
118
- }]]), oe = P("circle-check", [["circle", {
118
+ }]]), oe = F("circle-check", [["circle", {
119
119
  cx: "12",
120
120
  cy: "12",
121
121
  r: "10",
@@ -123,7 +123,7 @@ var T = Object.defineProperty, E = (e, t) => {
123
123
  }], ["path", {
124
124
  d: "m9 12 2 2 4-4",
125
125
  key: "dzmm74"
126
- }]]), se = P("circle-x", [
126
+ }]]), se = F("circle-x", [
127
127
  ["circle", {
128
128
  cx: "12",
129
129
  cy: "12",
@@ -138,13 +138,13 @@ var T = Object.defineProperty, E = (e, t) => {
138
138
  d: "m9 9 6 6",
139
139
  key: "z0biqf"
140
140
  }]
141
- ]), ce = P("circle", [["circle", {
141
+ ]), ce = F("circle", [["circle", {
142
142
  cx: "12",
143
143
  cy: "12",
144
144
  r: "10",
145
145
  key: "1mglay"
146
146
  }]]);
147
- P("ellipsis", [
147
+ F("ellipsis", [
148
148
  ["circle", {
149
149
  cx: "12",
150
150
  cy: "12",
@@ -164,7 +164,7 @@ P("ellipsis", [
164
164
  key: "1pcz8c"
165
165
  }]
166
166
  ]);
167
- var le = P("list-filter", [
167
+ var le = F("list-filter", [
168
168
  ["path", {
169
169
  d: "M2 5h20",
170
170
  key: "1fs1ex"
@@ -177,11 +177,11 @@ var le = P("list-filter", [
177
177
  d: "M9 19h6",
178
178
  key: "456am0"
179
179
  }]
180
- ]), ue = P("loader-circle", [["path", {
180
+ ]), ue = F("loader-circle", [["path", {
181
181
  d: "M21 12a9 9 0 1 1-6.219-8.56",
182
182
  key: "13zald"
183
183
  }]]);
184
- P("panel-left", [["rect", {
184
+ F("panel-left", [["rect", {
185
185
  width: "18",
186
186
  height: "18",
187
187
  x: "3",
@@ -192,7 +192,7 @@ P("panel-left", [["rect", {
192
192
  d: "M9 3v18",
193
193
  key: "fh3hqa"
194
194
  }]]);
195
- var de = P("search", [["path", {
195
+ var de = F("search", [["path", {
196
196
  d: "m21 21-4.34-4.34",
197
197
  key: "14j7rj"
198
198
  }], ["circle", {
@@ -200,7 +200,7 @@ var de = P("search", [["path", {
200
200
  cy: "11",
201
201
  r: "8",
202
202
  key: "4ej97u"
203
- }]]), fe = P("x", [["path", {
203
+ }]]), fe = F("x", [["path", {
204
204
  d: "M18 6 6 18",
205
205
  key: "1bl5f8"
206
206
  }], ["path", {
@@ -2939,15 +2939,15 @@ var os = 50, ss = async (e, t, n) => {
2939
2939
  y: r
2940
2940
  }, p = Wo(i), m = Ho(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
2941
2941
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
2942
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), D = Po(d[v], T), O = E, ee = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Lo(O, k, ee), j = !c.arrow && Bo(i) != null && k !== A && a.reference[m] / 2 - (k < O ? E : D) - h[m] / 2 < 0, M = j ? k < O ? k - O : k - ee : 0;
2942
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), D = Po(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Lo(O, A, k), M = !c.arrow && Bo(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
2943
2943
  return {
2944
- [p]: f[p] + M,
2944
+ [p]: f[p] + N,
2945
2945
  data: {
2946
- [p]: A,
2947
- centerOffset: k - A - M,
2948
- ...j && { alignmentOffset: M }
2946
+ [p]: j,
2947
+ centerOffset: A - j - N,
2948
+ ...M && { alignmentOffset: N }
2949
2949
  },
2950
- reset: j
2950
+ reset: M
2951
2951
  };
2952
2952
  }
2953
2953
  }), ls = function(e) {
@@ -3640,19 +3640,19 @@ function Rc(t) {
3640
3640
  e !== w.current && (w.current = e, _(e));
3641
3641
  }, []), x = e.useCallback((e) => {
3642
3642
  e !== T.current && (T.current = e, y(e));
3643
- }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Lc(l), ee = Lc(a), k = Lc(u), A = e.useCallback(() => {
3643
+ }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Lc(l), k = Lc(a), A = Lc(u), j = e.useCallback(() => {
3644
3644
  if (!w.current || !T.current) return;
3645
3645
  let e = {
3646
3646
  placement: n,
3647
3647
  strategy: r,
3648
3648
  middleware: m
3649
3649
  };
3650
- ee.current && (e.platform = ee.current), Mc(w.current, T.current, e).then((e) => {
3650
+ k.current && (e.platform = k.current), Mc(w.current, T.current, e).then((e) => {
3651
3651
  let t = {
3652
3652
  ...e,
3653
- isPositioned: k.current !== !1
3653
+ isPositioned: A.current !== !1
3654
3654
  };
3655
- j.current && !Pc(E.current, t) && (E.current = t, p.flushSync(() => {
3655
+ M.current && !Pc(E.current, t) && (E.current = t, p.flushSync(() => {
3656
3656
  f(t);
3657
3657
  }));
3658
3658
  });
@@ -3660,8 +3660,8 @@ function Rc(t) {
3660
3660
  m,
3661
3661
  n,
3662
3662
  r,
3663
- ee,
3664
- k
3663
+ k,
3664
+ A
3665
3665
  ]);
3666
3666
  Nc(() => {
3667
3667
  u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
@@ -3669,41 +3669,41 @@ function Rc(t) {
3669
3669
  isPositioned: !1
3670
3670
  })));
3671
3671
  }, [u]);
3672
- let j = e.useRef(!1);
3673
- Nc(() => (j.current = !0, () => {
3674
- j.current = !1;
3672
+ let M = e.useRef(!1);
3673
+ Nc(() => (M.current = !0, () => {
3674
+ M.current = !1;
3675
3675
  }), []), Nc(() => {
3676
3676
  if (S && (w.current = S), C && (T.current = C), S && C) {
3677
- if (O.current) return O.current(S, C, A);
3678
- A();
3677
+ if (O.current) return O.current(S, C, j);
3678
+ j();
3679
3679
  }
3680
3680
  }, [
3681
3681
  S,
3682
3682
  C,
3683
- A,
3683
+ j,
3684
3684
  O,
3685
3685
  D
3686
3686
  ]);
3687
- let M = e.useMemo(() => ({
3687
+ let N = e.useMemo(() => ({
3688
3688
  reference: w,
3689
3689
  floating: T,
3690
3690
  setReference: b,
3691
3691
  setFloating: x
3692
- }), [b, x]), N = e.useMemo(() => ({
3692
+ }), [b, x]), P = e.useMemo(() => ({
3693
3693
  reference: S,
3694
3694
  floating: C
3695
- }), [S, C]), te = e.useMemo(() => {
3695
+ }), [S, C]), ee = e.useMemo(() => {
3696
3696
  let e = {
3697
3697
  position: r,
3698
3698
  left: 0,
3699
3699
  top: 0
3700
3700
  };
3701
- if (!N.floating) return e;
3702
- let t = Ic(N.floating, d.x), n = Ic(N.floating, d.y);
3701
+ if (!P.floating) return e;
3702
+ let t = Ic(P.floating, d.x), n = Ic(P.floating, d.y);
3703
3703
  return c ? {
3704
3704
  ...e,
3705
3705
  transform: "translate(" + t + "px, " + n + "px)",
3706
- ...Fc(N.floating) >= 1.5 && { willChange: "transform" }
3706
+ ...Fc(P.floating) >= 1.5 && { willChange: "transform" }
3707
3707
  } : {
3708
3708
  position: r,
3709
3709
  left: t,
@@ -3712,22 +3712,22 @@ function Rc(t) {
3712
3712
  }, [
3713
3713
  r,
3714
3714
  c,
3715
- N.floating,
3715
+ P.floating,
3716
3716
  d.x,
3717
3717
  d.y
3718
3718
  ]);
3719
3719
  return e.useMemo(() => ({
3720
3720
  ...d,
3721
- update: A,
3722
- refs: M,
3723
- elements: N,
3724
- floatingStyles: te
3721
+ update: j,
3722
+ refs: N,
3723
+ elements: P,
3724
+ floatingStyles: ee
3725
3725
  }), [
3726
3726
  d,
3727
- A,
3728
- M,
3727
+ j,
3729
3728
  N,
3730
- te
3729
+ P,
3730
+ ee
3731
3731
  ]);
3732
3732
  }
3733
3733
  var zc = (e) => {
@@ -3843,11 +3843,11 @@ var zc = (e) => {
3843
3843
  bottom: 0,
3844
3844
  left: 0,
3845
3845
  ...d
3846
- }, ee = Array.isArray(u) ? u : [u], k = ee.length > 0, A = {
3846
+ }, k = Array.isArray(u) ? u : [u], A = k.length > 0, j = {
3847
3847
  padding: O,
3848
- boundary: ee.filter(fl),
3849
- altBoundary: k
3850
- }, { refs: j, floatingStyles: M, placement: N, isPositioned: te, middlewareData: P } = Rc({
3848
+ boundary: k.filter(fl),
3849
+ altBoundary: A
3850
+ }, { refs: M, floatingStyles: N, placement: P, isPositioned: ee, middlewareData: F } = Rc({
3851
3851
  strategy: "fixed",
3852
3852
  placement: D,
3853
3853
  whileElementsMounted: /* @__PURE__ */ Xc((...e) => wc(...e, { animationFrame: m === "always" }), "whileElementsMounted"),
@@ -3861,11 +3861,11 @@ var zc = (e) => {
3861
3861
  mainAxis: !0,
3862
3862
  crossAxis: !1,
3863
3863
  limiter: f === "partial" ? Hc() : void 0,
3864
- ...A
3864
+ ...j
3865
3865
  }),
3866
- l && Uc({ ...A }),
3866
+ l && Uc({ ...j }),
3867
3867
  Wc({
3868
- ...A,
3868
+ ...j,
3869
3869
  apply: /* @__PURE__ */ Xc(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
3870
3870
  let { width: i, height: a } = t.reference, o = e.floating.style;
3871
3871
  o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
@@ -3881,31 +3881,31 @@ var zc = (e) => {
3881
3881
  }),
3882
3882
  p && Gc({
3883
3883
  strategy: "referenceHidden",
3884
- ...A,
3885
- boundary: k ? A.boundary : void 0
3884
+ ...j,
3885
+ boundary: A ? j.boundary : void 0
3886
3886
  })
3887
3887
  ]
3888
- }), F = v.setPlacementState;
3889
- ft(() => (F(N), () => {
3890
- F(void 0);
3891
- }), [N, F]);
3892
- let [ne, re] = ml(N), I = Kn(h);
3888
+ }), te = v.setPlacementState;
3889
+ ft(() => (te(P), () => {
3890
+ te(void 0);
3891
+ }), [P, te]);
3892
+ let [ne, I] = ml(P), re = Kn(h);
3893
3893
  ft(() => {
3894
- te && I?.();
3895
- }, [te, I]);
3896
- let L = P.arrow?.x, R = P.arrow?.y, ie = P.arrow?.centerOffset !== 0, [ae, z] = e.useState();
3894
+ ee && re?.();
3895
+ }, [ee, re]);
3896
+ let L = F.arrow?.x, R = F.arrow?.y, ie = F.arrow?.centerOffset !== 0, [ae, z] = e.useState();
3897
3897
  return ft(() => {
3898
3898
  y && z(window.getComputedStyle(y).zIndex);
3899
3899
  }, [y]), /* @__PURE__ */ _("div", {
3900
- ref: j.setFloating,
3900
+ ref: M.setFloating,
3901
3901
  "data-radix-popper-content-wrapper": "",
3902
3902
  style: {
3903
- ...M,
3904
- transform: te ? M.transform : "translate(0, -200%)",
3903
+ ...N,
3904
+ transform: ee ? N.transform : "translate(0, -200%)",
3905
3905
  minWidth: "max-content",
3906
3906
  zIndex: ae,
3907
- "--radix-popper-transform-origin": [P.transformOrigin?.x, P.transformOrigin?.y].join(" "),
3908
- ...P.hide?.referenceHidden && {
3907
+ "--radix-popper-transform-origin": [F.transformOrigin?.x, F.transformOrigin?.y].join(" "),
3908
+ ...F.hide?.referenceHidden && {
3909
3909
  visibility: "hidden",
3910
3910
  pointerEvents: "none"
3911
3911
  }
@@ -3914,19 +3914,19 @@ var zc = (e) => {
3914
3914
  children: /* @__PURE__ */ _(ol, {
3915
3915
  scope: r,
3916
3916
  placedSide: ne,
3917
- placedAlign: re,
3917
+ placedAlign: I,
3918
3918
  onArrowChange: C,
3919
3919
  arrowX: L,
3920
3920
  arrowY: R,
3921
3921
  shouldHideArrow: ie,
3922
3922
  children: /* @__PURE__ */ _(V.div, {
3923
3923
  "data-side": ne,
3924
- "data-align": re,
3924
+ "data-align": I,
3925
3925
  ...g,
3926
3926
  ref: x,
3927
3927
  style: {
3928
3928
  ...g.style,
3929
- animation: te ? g.style?.animation : "none"
3929
+ animation: ee ? g.style?.animation : "none"
3930
3930
  }
3931
3931
  })
3932
3932
  })
@@ -4282,35 +4282,35 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4282
4282
  onDismiss: () => n.onOpenChange(!1)
4283
4283
  });
4284
4284
  }, "MenuRootContentNonModal")), Tu = /* @__PURE__ */ ye("MenuContent.ScrollLock"), Eu = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ U(function(t, n) {
4285
- let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = B(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), ee = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = h ? Bi : e.Fragment, N = h ? {
4285
+ let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = B(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), k = e.useRef(0), A = e.useRef(null), j = e.useRef("right"), M = e.useRef(0), N = h ? Bi : e.Fragment, P = h ? {
4286
4286
  as: Tu,
4287
4287
  allowPinchZoom: !0
4288
- } : void 0, te = /* @__PURE__ */ U((e) => {
4288
+ } : void 0, ee = /* @__PURE__ */ U((e) => {
4289
4289
  let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ju(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
4290
4290
  (/* @__PURE__ */ U((function e(t) {
4291
4291
  O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
4292
4292
  }), "updateSearch"))(t), o && setTimeout(() => o.focus());
4293
4293
  }, "handleTypeaheadSearch");
4294
4294
  e.useEffect(() => () => window.clearTimeout(D.current), []), jr();
4295
- let P = e.useCallback((e) => A.current === k.current?.side && Xu(e, k.current?.area), []);
4295
+ let F = e.useCallback((e) => j.current === A.current?.side && Xu(e, A.current?.area), []);
4296
4296
  return /* @__PURE__ */ _(bu, {
4297
4297
  scope: r,
4298
4298
  searchRef: O,
4299
4299
  onItemEnter: e.useCallback((e) => {
4300
- P(e) && e.preventDefault();
4301
- }, [P]),
4300
+ F(e) && e.preventDefault();
4301
+ }, [F]),
4302
4302
  onItemLeave: e.useCallback((e) => {
4303
- P(e) || (T.current?.focus(), w(null));
4304
- }, [P]),
4303
+ F(e) || (T.current?.focus(), w(null));
4304
+ }, [F]),
4305
4305
  onTriggerLeave: e.useCallback((e) => {
4306
- P(e) && e.preventDefault();
4307
- }, [P]),
4308
- pointerGraceTimerRef: ee,
4306
+ F(e) && e.preventDefault();
4307
+ }, [F]),
4308
+ pointerGraceTimerRef: k,
4309
4309
  onPointerGraceIntentChange: e.useCallback((e) => {
4310
- k.current = e;
4310
+ A.current = e;
4311
4311
  }, []),
4312
- children: /* @__PURE__ */ _(M, {
4313
- ...N,
4312
+ children: /* @__PURE__ */ _(N, {
4313
+ ...P,
4314
4314
  children: /* @__PURE__ */ _(fr, {
4315
4315
  asChild: !0,
4316
4316
  trapped: a,
@@ -4353,7 +4353,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4353
4353
  },
4354
4354
  onKeyDown: H(g.onKeyDown, (e) => {
4355
4355
  let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
4356
- t && (e.key === "Tab" && e.preventDefault(), !n && r && te(e.key));
4356
+ t && (e.key === "Tab" && e.preventDefault(), !n && r && ee(e.key));
4357
4357
  let i = T.current;
4358
4358
  if (e.target !== i || !eu.includes(e.key)) return;
4359
4359
  e.preventDefault();
@@ -4364,10 +4364,10 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4364
4364
  e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
4365
4365
  }),
4366
4366
  onPointerMove: H(t.onPointerMove, Zu((e) => {
4367
- let t = e.target, n = j.current !== e.clientX;
4367
+ let t = e.target, n = M.current !== e.clientX;
4368
4368
  if (e.currentTarget.contains(t) && n) {
4369
- let t = e.clientX > j.current ? "right" : "left";
4370
- A.current = t, j.current = e.clientX;
4369
+ let t = e.clientX > M.current ? "right" : "left";
4370
+ j.current = t, M.current = e.clientX;
4371
4371
  }
4372
4372
  }))
4373
4373
  })
@@ -5247,31 +5247,31 @@ function om(t) {
5247
5247
  defaultProp: a ?? !1,
5248
5248
  onChange: o,
5249
5249
  caller: Yp
5250
- }), [O, ee] = xt({
5250
+ }), [O, k] = xt({
5251
5251
  prop: s,
5252
5252
  defaultProp: c,
5253
5253
  onChange: l,
5254
5254
  caller: Yp
5255
- }), k = e.useRef(null), A = e.useRef(O);
5255
+ }), A = e.useRef(null), j = e.useRef(O);
5256
5256
  e.useEffect(() => {
5257
5257
  let e = h ? y?.ownerDocument.getElementById(h) : y?.form;
5258
5258
  if (e instanceof HTMLFormElement) {
5259
- let t = /* @__PURE__ */ W(() => ee(A.current), "reset");
5259
+ let t = /* @__PURE__ */ W(() => k(j.current), "reset");
5260
5260
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
5261
5261
  }
5262
5262
  }, [
5263
5263
  h,
5264
5264
  y,
5265
- ee
5265
+ k
5266
5266
  ]);
5267
- let j = !y || !!h || !!y.closest("form"), [M, N] = e.useState(/* @__PURE__ */ new Set()), te = zt(), P = Array.from(M).map((e) => e.props.value).join(";"), F = e.useCallback((e) => {
5268
- N((t) => new Set(t).add(e));
5267
+ let M = !y || !!h || !!y.closest("form"), [N, P] = e.useState(/* @__PURE__ */ new Set()), ee = zt(), F = Array.from(N).map((e) => e.props.value).join(";"), te = e.useCallback((e) => {
5268
+ P((t) => new Set(t).add(e));
5269
5269
  }, []), ne = e.useCallback((e) => {
5270
- N((t) => {
5270
+ P((t) => {
5271
5271
  let n = new Set(t);
5272
5272
  return n.delete(e), n;
5273
5273
  });
5274
- }, []), re = {
5274
+ }, []), I = {
5275
5275
  required: m,
5276
5276
  trigger: y,
5277
5277
  onTriggerChange: b,
@@ -5279,33 +5279,33 @@ function om(t) {
5279
5279
  onValueNodeChange: S,
5280
5280
  valueNodeHasChildren: C,
5281
5281
  onValueNodeHasChildrenChange: w,
5282
- contentId: te,
5282
+ contentId: ee,
5283
5283
  value: O,
5284
- onValueChange: ee,
5284
+ onValueChange: k,
5285
5285
  open: E,
5286
5286
  onOpenChange: D,
5287
5287
  dir: T,
5288
- triggerPointerDownPosRef: k,
5288
+ triggerPointerDownPosRef: A,
5289
5289
  disabled: p,
5290
5290
  name: d,
5291
5291
  autoComplete: f,
5292
5292
  form: h,
5293
- nativeOptions: M,
5294
- nativeSelectKey: P,
5295
- isFormControl: j
5293
+ nativeOptions: N,
5294
+ nativeSelectKey: F,
5295
+ isFormControl: M
5296
5296
  };
5297
5297
  return /* @__PURE__ */ _(hl, {
5298
5298
  ...v,
5299
5299
  children: /* @__PURE__ */ _(nm, {
5300
5300
  scope: n,
5301
- ...re,
5301
+ ...I,
5302
5302
  children: /* @__PURE__ */ _(Xp.Provider, {
5303
5303
  scope: n,
5304
5304
  children: /* @__PURE__ */ _(im, {
5305
5305
  scope: n,
5306
- onNativeOptionAdd: F,
5306
+ onNativeOptionAdd: te,
5307
5307
  onNativeOptionRemove: ne,
5308
- children: Zm(g) ? g(re) : r
5308
+ children: Zm(g) ? g(I) : r
5309
5309
  })
5310
5310
  })
5311
5311
  })
@@ -5418,22 +5418,22 @@ var sm = /* @__PURE__ */ W((e) => {
5418
5418
  })
5419
5419
  }), i) : null;
5420
5420
  }, "SelectContentFragment")), ym = 10, [bm, xm] = $p(gm), Sm = /* @__PURE__ */ ye("SelectContent.RemoveScroll"), Cm = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ W(function(t, n) {
5421
- let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: v, ...y } = t, b = rm(gm, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = B(n, S), [E, D] = e.useState(null), [O, ee] = e.useState(null), k = Zp(r), [A, j] = e.useState(!1), M = e.useRef(!1);
5421
+ let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: v, ...y } = t, b = rm(gm, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = B(n, S), [E, D] = e.useState(null), [O, k] = e.useState(null), A = Zp(r), [j, M] = e.useState(!1), N = e.useRef(!1);
5422
5422
  e.useEffect(() => {
5423
5423
  if (x) return Yi(x);
5424
5424
  }, [x]), jr();
5425
- let N = e.useCallback((e) => {
5426
- let [t, ...n] = k().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
5425
+ let P = e.useCallback((e) => {
5426
+ let [t, ...n] = A().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
5427
5427
  for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && C && (C.scrollTop = 0), n === r && C && (C.scrollTop = C.scrollHeight), n?.focus(), document.activeElement !== i)) return;
5428
- }, [k, C]), te = e.useCallback(() => N([E, x]), [
5429
- N,
5428
+ }, [A, C]), ee = e.useCallback(() => P([E, x]), [
5429
+ P,
5430
5430
  E,
5431
5431
  x
5432
5432
  ]);
5433
5433
  e.useEffect(() => {
5434
- A && te();
5435
- }, [A, te]);
5436
- let { onOpenChange: P, triggerPointerDownPosRef: F } = b;
5434
+ j && ee();
5435
+ }, [j, ee]);
5436
+ let { onOpenChange: F, triggerPointerDownPosRef: te } = b;
5437
5437
  e.useEffect(() => {
5438
5438
  if (x) {
5439
5439
  let e = {
@@ -5441,13 +5441,13 @@ var sm = /* @__PURE__ */ W((e) => {
5441
5441
  y: 0
5442
5442
  }, t = /* @__PURE__ */ W((t) => {
5443
5443
  e = {
5444
- x: Math.abs(Math.round(t.pageX) - (F.current?.x ?? 0)),
5445
- y: Math.abs(Math.round(t.pageY) - (F.current?.y ?? 0))
5444
+ x: Math.abs(Math.round(t.pageX) - (te.current?.x ?? 0)),
5445
+ y: Math.abs(Math.round(t.pageY) - (te.current?.y ?? 0))
5446
5446
  };
5447
5447
  }, "handlePointerMove"), n = /* @__PURE__ */ W((n) => {
5448
- e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(x) || P(!1), document.removeEventListener("pointermove", t), F.current = null;
5448
+ e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(x) || F(!1), document.removeEventListener("pointermove", t), te.current = null;
5449
5449
  }, "handlePointerUp");
5450
- return F.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
5450
+ return te.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
5451
5451
  capture: !0,
5452
5452
  once: !0
5453
5453
  })), () => {
@@ -5456,23 +5456,23 @@ var sm = /* @__PURE__ */ W((e) => {
5456
5456
  }
5457
5457
  }, [
5458
5458
  x,
5459
- P,
5460
- F
5459
+ F,
5460
+ te
5461
5461
  ]), e.useEffect(() => {
5462
- let e = /* @__PURE__ */ W(() => P(!1), "close");
5462
+ let e = /* @__PURE__ */ W(() => F(!1), "close");
5463
5463
  return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
5464
5464
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
5465
5465
  };
5466
- }, [P]);
5467
- let [ne, re] = $m((e) => {
5468
- let t = k().filter((e) => !e.disabled), n = eh(t, e, t.find((e) => e.ref.current === document.activeElement));
5466
+ }, [F]);
5467
+ let [ne, I] = $m((e) => {
5468
+ let t = A().filter((e) => !e.disabled), n = eh(t, e, t.find((e) => e.ref.current === document.activeElement));
5469
5469
  n && setTimeout(() => n.ref.current?.focus());
5470
- }), I = e.useCallback((e, t, n) => {
5471
- let r = !M.current && !n;
5472
- (b.value !== void 0 && b.value === t || r) && (D(e), r && (M.current = !0));
5470
+ }), re = e.useCallback((e, t, n) => {
5471
+ let r = !N.current && !n;
5472
+ (b.value !== void 0 && b.value === t || r) && (D(e), r && (N.current = !0));
5473
5473
  }, [b.value]), L = e.useCallback(() => x?.focus(), [x]), R = e.useCallback((e, t, n) => {
5474
- let r = !M.current && !n;
5475
- (b.value !== void 0 && b.value === t || r) && ee(e);
5474
+ let r = !N.current && !n;
5475
+ (b.value !== void 0 && b.value === t || r) && k(e);
5476
5476
  }, [b.value]), ie = i === "popper" ? Tm : wm, ae = ie === Tm ? {
5477
5477
  side: c,
5478
5478
  sideOffset: l,
@@ -5490,14 +5490,14 @@ var sm = /* @__PURE__ */ W((e) => {
5490
5490
  content: x,
5491
5491
  viewport: C,
5492
5492
  onViewportChange: w,
5493
- itemRefCallback: I,
5493
+ itemRefCallback: re,
5494
5494
  selectedItem: E,
5495
5495
  onItemLeave: L,
5496
5496
  itemTextRefCallback: R,
5497
- focusSelectedItem: te,
5497
+ focusSelectedItem: ee,
5498
5498
  selectedItemText: O,
5499
5499
  position: i,
5500
- isPositioned: A,
5500
+ isPositioned: j,
5501
5501
  searchRef: ne,
5502
5502
  children: /* @__PURE__ */ _(Bi, {
5503
5503
  as: Sm,
@@ -5526,7 +5526,7 @@ var sm = /* @__PURE__ */ W((e) => {
5526
5526
  onContextMenu: (e) => e.preventDefault(),
5527
5527
  ...y,
5528
5528
  ...ae,
5529
- onPlaced: () => j(!0),
5529
+ onPlaced: () => M(!0),
5530
5530
  ref: T,
5531
5531
  style: {
5532
5532
  display: "flex",
@@ -5536,18 +5536,18 @@ var sm = /* @__PURE__ */ W((e) => {
5536
5536
  },
5537
5537
  onKeyDown: H(y.onKeyDown, (e) => {
5538
5538
  let t = e.ctrlKey || e.altKey || e.metaKey;
5539
- if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && re(e.key), [
5539
+ if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && I(e.key), [
5540
5540
  "ArrowUp",
5541
5541
  "ArrowDown",
5542
5542
  "Home",
5543
5543
  "End"
5544
5544
  ].includes(e.key)) {
5545
- let t = k().filter((e) => !e.disabled).map((e) => e.ref.current);
5545
+ let t = A().filter((e) => !e.disabled).map((e) => e.ref.current);
5546
5546
  if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
5547
5547
  let n = e.target, r = t.indexOf(n);
5548
5548
  t = t.slice(r + 1);
5549
5549
  }
5550
- setTimeout(() => N(t)), e.preventDefault();
5550
+ setTimeout(() => P(t)), e.preventDefault();
5551
5551
  }
5552
5552
  })
5553
5553
  })
@@ -5566,17 +5566,17 @@ var sm = /* @__PURE__ */ W((e) => {
5566
5566
  let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - ym, d = Rf(a, [ym, Math.max(ym, u - l)]);
5567
5567
  c.style.minWidth = s + "px", c.style.right = d + "px";
5568
5568
  }
5569
- let a = p(), s = window.innerHeight - ym * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), _ = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + _, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - ym, D = s - E, O = v.offsetHeight / 2, ee = v.offsetTop + O, k = f + h + ee, A = x - k;
5570
- if (k <= E) {
5569
+ let a = p(), s = window.innerHeight - ym * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), _ = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + _, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - ym, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + h + k, j = x - A;
5570
+ if (A <= E) {
5571
5571
  let e = a.length > 0 && v === a[a.length - 1].ref.current;
5572
5572
  c.style.bottom = "0px";
5573
- let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(D, O + (e ? T : 0) + t + _);
5573
+ let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = A + Math.max(D, O + (e ? T : 0) + t + _);
5574
5574
  c.style.height = n + "px";
5575
5575
  } else {
5576
5576
  let e = a.length > 0 && v === a[0].ref.current;
5577
5577
  c.style.top = "0px";
5578
- let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + O) + A;
5579
- c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
5578
+ let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + O) + j;
5579
+ c.style.height = t + "px", g.scrollTop = A - E + g.offsetTop;
5580
5580
  }
5581
5581
  c.style.margin = `${ym}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
5582
5582
  }
@@ -6827,14 +6827,14 @@ var Pg = (e, t) => {
6827
6827
  "auto",
6828
6828
  q,
6829
6829
  K
6830
- ], ee = () => [
6830
+ ], k = () => [
6831
6831
  "auto",
6832
6832
  "min",
6833
6833
  "max",
6834
6834
  "fr",
6835
6835
  q,
6836
6836
  K
6837
- ], k = () => [
6837
+ ], A = () => [
6838
6838
  "start",
6839
6839
  "end",
6840
6840
  "center",
@@ -6845,14 +6845,14 @@ var Pg = (e, t) => {
6845
6845
  "baseline",
6846
6846
  "center-safe",
6847
6847
  "end-safe"
6848
- ], A = () => [
6848
+ ], j = () => [
6849
6849
  "start",
6850
6850
  "end",
6851
6851
  "center",
6852
6852
  "stretch",
6853
6853
  "center-safe",
6854
6854
  "end-safe"
6855
- ], j = () => ["auto", ...w()], M = () => [
6855
+ ], M = () => ["auto", ...w()], N = () => [
6856
6856
  S_,
6857
6857
  "auto",
6858
6858
  "full",
@@ -6866,7 +6866,7 @@ var Pg = (e, t) => {
6866
6866
  "max",
6867
6867
  "fit",
6868
6868
  ...w()
6869
- ], N = () => [
6869
+ ], P = () => [
6870
6870
  s,
6871
6871
  S_,
6872
6872
  "screen",
@@ -6878,7 +6878,7 @@ var Pg = (e, t) => {
6878
6878
  "max",
6879
6879
  "fit",
6880
6880
  ...w()
6881
- ], te = () => [
6881
+ ], ee = () => [
6882
6882
  S_,
6883
6883
  "screen",
6884
6884
  "full",
@@ -6890,11 +6890,11 @@ var Pg = (e, t) => {
6890
6890
  "max",
6891
6891
  "fit",
6892
6892
  ...w()
6893
- ], P = () => [
6893
+ ], F = () => [
6894
6894
  e,
6895
6895
  q,
6896
6896
  K
6897
- ], F = () => [
6897
+ ], te = () => [
6898
6898
  ...b(),
6899
6899
  U_,
6900
6900
  R_,
@@ -6905,14 +6905,14 @@ var Pg = (e, t) => {
6905
6905
  "y",
6906
6906
  "space",
6907
6907
  "round"
6908
- ] }], re = () => [
6908
+ ] }], I = () => [
6909
6909
  "auto",
6910
6910
  "cover",
6911
6911
  "contain",
6912
6912
  W_,
6913
6913
  N_,
6914
6914
  { size: [q, K] }
6915
- ], I = () => [
6915
+ ], re = () => [
6916
6916
  w_,
6917
6917
  V_,
6918
6918
  P_
@@ -7228,24 +7228,24 @@ var Pg = (e, t) => {
7228
7228
  "row-dense",
7229
7229
  "col-dense"
7230
7230
  ] }],
7231
- "auto-cols": [{ "auto-cols": ee() }],
7232
- "auto-rows": [{ "auto-rows": ee() }],
7231
+ "auto-cols": [{ "auto-cols": k() }],
7232
+ "auto-rows": [{ "auto-rows": k() }],
7233
7233
  gap: [{ gap: w() }],
7234
7234
  "gap-x": [{ "gap-x": w() }],
7235
7235
  "gap-y": [{ "gap-y": w() }],
7236
- "justify-content": [{ justify: [...k(), "normal"] }],
7237
- "justify-items": [{ "justify-items": [...A(), "normal"] }],
7238
- "justify-self": [{ "justify-self": ["auto", ...A()] }],
7239
- "align-content": [{ content: ["normal", ...k()] }],
7240
- "align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
7236
+ "justify-content": [{ justify: [...A(), "normal"] }],
7237
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
7238
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
7239
+ "align-content": [{ content: ["normal", ...A()] }],
7240
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
7241
7241
  "align-self": [{ self: [
7242
7242
  "auto",
7243
- ...A(),
7243
+ ...j(),
7244
7244
  { baseline: ["", "last"] }
7245
7245
  ] }],
7246
- "place-content": [{ "place-content": k() }],
7247
- "place-items": [{ "place-items": [...A(), "baseline"] }],
7248
- "place-self": [{ "place-self": ["auto", ...A()] }],
7246
+ "place-content": [{ "place-content": A() }],
7247
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
7248
+ "place-self": [{ "place-self": ["auto", ...j()] }],
7249
7249
  p: [{ p: w() }],
7250
7250
  px: [{ px: w() }],
7251
7251
  py: [{ py: w() }],
@@ -7257,38 +7257,38 @@ var Pg = (e, t) => {
7257
7257
  pr: [{ pr: w() }],
7258
7258
  pb: [{ pb: w() }],
7259
7259
  pl: [{ pl: w() }],
7260
- m: [{ m: j() }],
7261
- mx: [{ mx: j() }],
7262
- my: [{ my: j() }],
7263
- ms: [{ ms: j() }],
7264
- me: [{ me: j() }],
7265
- mbs: [{ mbs: j() }],
7266
- mbe: [{ mbe: j() }],
7267
- mt: [{ mt: j() }],
7268
- mr: [{ mr: j() }],
7269
- mb: [{ mb: j() }],
7270
- ml: [{ ml: j() }],
7260
+ m: [{ m: M() }],
7261
+ mx: [{ mx: M() }],
7262
+ my: [{ my: M() }],
7263
+ ms: [{ ms: M() }],
7264
+ me: [{ me: M() }],
7265
+ mbs: [{ mbs: M() }],
7266
+ mbe: [{ mbe: M() }],
7267
+ mt: [{ mt: M() }],
7268
+ mr: [{ mr: M() }],
7269
+ mb: [{ mb: M() }],
7270
+ ml: [{ ml: M() }],
7271
7271
  "space-x": [{ "space-x": w() }],
7272
7272
  "space-x-reverse": ["space-x-reverse"],
7273
7273
  "space-y": [{ "space-y": w() }],
7274
7274
  "space-y-reverse": ["space-y-reverse"],
7275
- size: [{ size: M() }],
7276
- "inline-size": [{ inline: ["auto", ...N()] }],
7277
- "min-inline-size": [{ "min-inline": ["auto", ...N()] }],
7278
- "max-inline-size": [{ "max-inline": ["none", ...N()] }],
7279
- "block-size": [{ block: ["auto", ...te()] }],
7280
- "min-block-size": [{ "min-block": ["auto", ...te()] }],
7281
- "max-block-size": [{ "max-block": ["none", ...te()] }],
7275
+ size: [{ size: N() }],
7276
+ "inline-size": [{ inline: ["auto", ...P()] }],
7277
+ "min-inline-size": [{ "min-inline": ["auto", ...P()] }],
7278
+ "max-inline-size": [{ "max-inline": ["none", ...P()] }],
7279
+ "block-size": [{ block: ["auto", ...ee()] }],
7280
+ "min-block-size": [{ "min-block": ["auto", ...ee()] }],
7281
+ "max-block-size": [{ "max-block": ["none", ...ee()] }],
7282
7282
  w: [{ w: [
7283
7283
  s,
7284
7284
  "screen",
7285
- ...M()
7285
+ ...N()
7286
7286
  ] }],
7287
7287
  "min-w": [{ "min-w": [
7288
7288
  s,
7289
7289
  "screen",
7290
7290
  "none",
7291
- ...M()
7291
+ ...N()
7292
7292
  ] }],
7293
7293
  "max-w": [{ "max-w": [
7294
7294
  s,
@@ -7296,24 +7296,24 @@ var Pg = (e, t) => {
7296
7296
  "none",
7297
7297
  "prose",
7298
7298
  { screen: [o] },
7299
- ...M()
7299
+ ...N()
7300
7300
  ] }],
7301
7301
  h: [{ h: [
7302
7302
  "screen",
7303
7303
  "lh",
7304
- ...M()
7304
+ ...N()
7305
7305
  ] }],
7306
7306
  "min-h": [{ "min-h": [
7307
7307
  "screen",
7308
7308
  "lh",
7309
7309
  "none",
7310
- ...M()
7310
+ ...N()
7311
7311
  ] }],
7312
7312
  "max-h": [{ "max-h": [
7313
7313
  "screen",
7314
7314
  "lh",
7315
7315
  "none",
7316
- ...M()
7316
+ ...N()
7317
7317
  ] }],
7318
7318
  "font-size": [{ text: [
7319
7319
  "base",
@@ -7390,8 +7390,8 @@ var Pg = (e, t) => {
7390
7390
  "start",
7391
7391
  "end"
7392
7392
  ] }],
7393
- "placeholder-color": [{ placeholder: P() }],
7394
- "text-color": [{ text: P() }],
7393
+ "placeholder-color": [{ placeholder: F() }],
7394
+ "text-color": [{ text: F() }],
7395
7395
  "text-decoration": [
7396
7396
  "underline",
7397
7397
  "overline",
@@ -7406,7 +7406,7 @@ var Pg = (e, t) => {
7406
7406
  q,
7407
7407
  P_
7408
7408
  ] }],
7409
- "text-decoration-color": [{ decoration: P() }],
7409
+ "text-decoration-color": [{ decoration: F() }],
7410
7410
  "underline-offset": [{ "underline-offset": [
7411
7411
  G,
7412
7412
  "auto",
@@ -7493,9 +7493,9 @@ var Pg = (e, t) => {
7493
7493
  "padding",
7494
7494
  "content"
7495
7495
  ] }],
7496
- "bg-position": [{ bg: F() }],
7496
+ "bg-position": [{ bg: te() }],
7497
7497
  "bg-repeat": [{ bg: ne() }],
7498
- "bg-size": [{ bg: re() }],
7498
+ "bg-size": [{ bg: I() }],
7499
7499
  "bg-image": [{ bg: [
7500
7500
  "none",
7501
7501
  {
@@ -7529,13 +7529,13 @@ var Pg = (e, t) => {
7529
7529
  G_,
7530
7530
  z_
7531
7531
  ] }],
7532
- "bg-color": [{ bg: P() }],
7533
- "gradient-from-pos": [{ from: I() }],
7534
- "gradient-via-pos": [{ via: I() }],
7535
- "gradient-to-pos": [{ to: I() }],
7536
- "gradient-from": [{ from: P() }],
7537
- "gradient-via": [{ via: P() }],
7538
- "gradient-to": [{ to: P() }],
7532
+ "bg-color": [{ bg: F() }],
7533
+ "gradient-from-pos": [{ from: re() }],
7534
+ "gradient-via-pos": [{ via: re() }],
7535
+ "gradient-to-pos": [{ to: re() }],
7536
+ "gradient-from": [{ from: F() }],
7537
+ "gradient-via": [{ via: F() }],
7538
+ "gradient-to": [{ to: F() }],
7539
7539
  rounded: [{ rounded: L() }],
7540
7540
  "rounded-s": [{ "rounded-s": L() }],
7541
7541
  "rounded-e": [{ "rounded-e": L() }],
@@ -7576,18 +7576,18 @@ var Pg = (e, t) => {
7576
7576
  "hidden",
7577
7577
  "none"
7578
7578
  ] }],
7579
- "border-color": [{ border: P() }],
7580
- "border-color-x": [{ "border-x": P() }],
7581
- "border-color-y": [{ "border-y": P() }],
7582
- "border-color-s": [{ "border-s": P() }],
7583
- "border-color-e": [{ "border-e": P() }],
7584
- "border-color-bs": [{ "border-bs": P() }],
7585
- "border-color-be": [{ "border-be": P() }],
7586
- "border-color-t": [{ "border-t": P() }],
7587
- "border-color-r": [{ "border-r": P() }],
7588
- "border-color-b": [{ "border-b": P() }],
7589
- "border-color-l": [{ "border-l": P() }],
7590
- "divide-color": [{ divide: P() }],
7579
+ "border-color": [{ border: F() }],
7580
+ "border-color-x": [{ "border-x": F() }],
7581
+ "border-color-y": [{ "border-y": F() }],
7582
+ "border-color-s": [{ "border-s": F() }],
7583
+ "border-color-e": [{ "border-e": F() }],
7584
+ "border-color-bs": [{ "border-bs": F() }],
7585
+ "border-color-be": [{ "border-be": F() }],
7586
+ "border-color-t": [{ "border-t": F() }],
7587
+ "border-color-r": [{ "border-r": F() }],
7588
+ "border-color-b": [{ "border-b": F() }],
7589
+ "border-color-l": [{ "border-l": F() }],
7590
+ "divide-color": [{ divide: F() }],
7591
7591
  "outline-style": [{ outline: [
7592
7592
  ...ie(),
7593
7593
  "none",
@@ -7604,7 +7604,7 @@ var Pg = (e, t) => {
7604
7604
  V_,
7605
7605
  P_
7606
7606
  ] }],
7607
- "outline-color": [{ outline: P() }],
7607
+ "outline-color": [{ outline: F() }],
7608
7608
  shadow: [{ shadow: [
7609
7609
  "",
7610
7610
  "inner",
@@ -7613,28 +7613,28 @@ var Pg = (e, t) => {
7613
7613
  K_,
7614
7614
  B_
7615
7615
  ] }],
7616
- "shadow-color": [{ shadow: P() }],
7616
+ "shadow-color": [{ shadow: F() }],
7617
7617
  "inset-shadow": [{ "inset-shadow": [
7618
7618
  "none",
7619
7619
  d,
7620
7620
  K_,
7621
7621
  B_
7622
7622
  ] }],
7623
- "inset-shadow-color": [{ "inset-shadow": P() }],
7623
+ "inset-shadow-color": [{ "inset-shadow": F() }],
7624
7624
  "ring-w": [{ ring: R() }],
7625
7625
  "ring-w-inset": ["ring-inset"],
7626
- "ring-color": [{ ring: P() }],
7626
+ "ring-color": [{ ring: F() }],
7627
7627
  "ring-offset-w": [{ "ring-offset": [G, P_] }],
7628
- "ring-offset-color": [{ "ring-offset": P() }],
7628
+ "ring-offset-color": [{ "ring-offset": F() }],
7629
7629
  "inset-ring-w": [{ "inset-ring": R() }],
7630
- "inset-ring-color": [{ "inset-ring": P() }],
7630
+ "inset-ring-color": [{ "inset-ring": F() }],
7631
7631
  "text-shadow": [{ "text-shadow": [
7632
7632
  "none",
7633
7633
  f,
7634
7634
  K_,
7635
7635
  B_
7636
7636
  ] }],
7637
- "text-shadow-color": [{ "text-shadow": P() }],
7637
+ "text-shadow-color": [{ "text-shadow": F() }],
7638
7638
  opacity: [{ opacity: [
7639
7639
  G,
7640
7640
  q,
@@ -7663,37 +7663,37 @@ var Pg = (e, t) => {
7663
7663
  "mask-image-linear-pos": [{ "mask-linear": [G] }],
7664
7664
  "mask-image-linear-from-pos": [{ "mask-linear-from": z() }],
7665
7665
  "mask-image-linear-to-pos": [{ "mask-linear-to": z() }],
7666
- "mask-image-linear-from-color": [{ "mask-linear-from": P() }],
7667
- "mask-image-linear-to-color": [{ "mask-linear-to": P() }],
7666
+ "mask-image-linear-from-color": [{ "mask-linear-from": F() }],
7667
+ "mask-image-linear-to-color": [{ "mask-linear-to": F() }],
7668
7668
  "mask-image-t-from-pos": [{ "mask-t-from": z() }],
7669
7669
  "mask-image-t-to-pos": [{ "mask-t-to": z() }],
7670
- "mask-image-t-from-color": [{ "mask-t-from": P() }],
7671
- "mask-image-t-to-color": [{ "mask-t-to": P() }],
7670
+ "mask-image-t-from-color": [{ "mask-t-from": F() }],
7671
+ "mask-image-t-to-color": [{ "mask-t-to": F() }],
7672
7672
  "mask-image-r-from-pos": [{ "mask-r-from": z() }],
7673
7673
  "mask-image-r-to-pos": [{ "mask-r-to": z() }],
7674
- "mask-image-r-from-color": [{ "mask-r-from": P() }],
7675
- "mask-image-r-to-color": [{ "mask-r-to": P() }],
7674
+ "mask-image-r-from-color": [{ "mask-r-from": F() }],
7675
+ "mask-image-r-to-color": [{ "mask-r-to": F() }],
7676
7676
  "mask-image-b-from-pos": [{ "mask-b-from": z() }],
7677
7677
  "mask-image-b-to-pos": [{ "mask-b-to": z() }],
7678
- "mask-image-b-from-color": [{ "mask-b-from": P() }],
7679
- "mask-image-b-to-color": [{ "mask-b-to": P() }],
7678
+ "mask-image-b-from-color": [{ "mask-b-from": F() }],
7679
+ "mask-image-b-to-color": [{ "mask-b-to": F() }],
7680
7680
  "mask-image-l-from-pos": [{ "mask-l-from": z() }],
7681
7681
  "mask-image-l-to-pos": [{ "mask-l-to": z() }],
7682
- "mask-image-l-from-color": [{ "mask-l-from": P() }],
7683
- "mask-image-l-to-color": [{ "mask-l-to": P() }],
7682
+ "mask-image-l-from-color": [{ "mask-l-from": F() }],
7683
+ "mask-image-l-to-color": [{ "mask-l-to": F() }],
7684
7684
  "mask-image-x-from-pos": [{ "mask-x-from": z() }],
7685
7685
  "mask-image-x-to-pos": [{ "mask-x-to": z() }],
7686
- "mask-image-x-from-color": [{ "mask-x-from": P() }],
7687
- "mask-image-x-to-color": [{ "mask-x-to": P() }],
7686
+ "mask-image-x-from-color": [{ "mask-x-from": F() }],
7687
+ "mask-image-x-to-color": [{ "mask-x-to": F() }],
7688
7688
  "mask-image-y-from-pos": [{ "mask-y-from": z() }],
7689
7689
  "mask-image-y-to-pos": [{ "mask-y-to": z() }],
7690
- "mask-image-y-from-color": [{ "mask-y-from": P() }],
7691
- "mask-image-y-to-color": [{ "mask-y-to": P() }],
7690
+ "mask-image-y-from-color": [{ "mask-y-from": F() }],
7691
+ "mask-image-y-to-color": [{ "mask-y-to": F() }],
7692
7692
  "mask-image-radial": [{ "mask-radial": [q, K] }],
7693
7693
  "mask-image-radial-from-pos": [{ "mask-radial-from": z() }],
7694
7694
  "mask-image-radial-to-pos": [{ "mask-radial-to": z() }],
7695
- "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
7696
- "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
7695
+ "mask-image-radial-from-color": [{ "mask-radial-from": F() }],
7696
+ "mask-image-radial-to-color": [{ "mask-radial-to": F() }],
7697
7697
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
7698
7698
  "mask-image-radial-size": [{ "mask-radial": [{
7699
7699
  closest: ["side", "corner"],
@@ -7703,8 +7703,8 @@ var Pg = (e, t) => {
7703
7703
  "mask-image-conic-pos": [{ "mask-conic": [G] }],
7704
7704
  "mask-image-conic-from-pos": [{ "mask-conic-from": z() }],
7705
7705
  "mask-image-conic-to-pos": [{ "mask-conic-to": z() }],
7706
- "mask-image-conic-from-color": [{ "mask-conic-from": P() }],
7707
- "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
7706
+ "mask-image-conic-from-color": [{ "mask-conic-from": F() }],
7707
+ "mask-image-conic-to-color": [{ "mask-conic-to": F() }],
7708
7708
  "mask-mode": [{ mask: [
7709
7709
  "alpha",
7710
7710
  "luminance",
@@ -7718,9 +7718,9 @@ var Pg = (e, t) => {
7718
7718
  "stroke",
7719
7719
  "view"
7720
7720
  ] }],
7721
- "mask-position": [{ mask: F() }],
7721
+ "mask-position": [{ mask: te() }],
7722
7722
  "mask-repeat": [{ mask: ne() }],
7723
- "mask-size": [{ mask: re() }],
7723
+ "mask-size": [{ mask: I() }],
7724
7724
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
7725
7725
  "mask-image": [{ mask: [
7726
7726
  "none",
@@ -7751,7 +7751,7 @@ var Pg = (e, t) => {
7751
7751
  K_,
7752
7752
  B_
7753
7753
  ] }],
7754
- "drop-shadow-color": [{ "drop-shadow": P() }],
7754
+ "drop-shadow-color": [{ "drop-shadow": F() }],
7755
7755
  grayscale: [{ grayscale: [
7756
7756
  "",
7757
7757
  G,
@@ -7911,9 +7911,9 @@ var Pg = (e, t) => {
7911
7911
  q,
7912
7912
  K
7913
7913
  ] }],
7914
- accent: [{ accent: P() }],
7914
+ accent: [{ accent: F() }],
7915
7915
  appearance: [{ appearance: ["none", "auto"] }],
7916
- "caret-color": [{ caret: P() }],
7916
+ "caret-color": [{ caret: F() }],
7917
7917
  "color-scheme": [{ scheme: [
7918
7918
  "normal",
7919
7919
  "dark",
@@ -7971,8 +7971,8 @@ var Pg = (e, t) => {
7971
7971
  "x"
7972
7972
  ] }],
7973
7973
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
7974
- "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
7975
- "scrollbar-track-color": [{ "scrollbar-track": P() }],
7974
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
7975
+ "scrollbar-track-color": [{ "scrollbar-track": F() }],
7976
7976
  "scrollbar-gutter": [{ "scrollbar-gutter": [
7977
7977
  "auto",
7978
7978
  "stable",
@@ -8049,14 +8049,14 @@ var Pg = (e, t) => {
8049
8049
  q,
8050
8050
  K
8051
8051
  ] }],
8052
- fill: [{ fill: ["none", ...P()] }],
8052
+ fill: [{ fill: ["none", ...F()] }],
8053
8053
  "stroke-w": [{ stroke: [
8054
8054
  G,
8055
8055
  V_,
8056
8056
  P_,
8057
8057
  F_
8058
8058
  ] }],
8059
- stroke: [{ stroke: ["none", ...P()] }],
8059
+ stroke: [{ stroke: ["none", ...F()] }],
8060
8060
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
8061
8061
  },
8062
8062
  conflictingClassGroups: {
@@ -8766,23 +8766,23 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8766
8766
  let x = {
8767
8767
  ...cy,
8768
8768
  ...g
8769
- }, S = e.useRef(null), C = e.useRef(null), w = e.useRef(null), [T, E] = e.useState(!1), [D, O] = e.useState(""), [ee, k] = e.useState(0), A = e.useRef(m);
8769
+ }, S = e.useRef(null), C = e.useRef(null), w = e.useRef(null), [T, E] = e.useState(!1), [D, O] = e.useState(""), [k, A] = e.useState(0), j = e.useId(), M = (e) => `${j}-option-${e}`, N = e.useRef(m);
8770
8770
  e.useEffect(() => {
8771
- A.current = m;
8771
+ N.current = m;
8772
8772
  });
8773
- let j = e.useCallback((e) => {
8774
- O(e), A.current?.(e);
8775
- }, []), M = e.useRef(null), N = Ov(), [te, P] = e.useState(null);
8773
+ let P = e.useCallback((e) => {
8774
+ O(e), N.current?.(e);
8775
+ }, []), ee = e.useRef(null), F = Ov(), [te, ne] = e.useState(null);
8776
8776
  e.useEffect(() => {
8777
8777
  if (!T) {
8778
- P(null);
8778
+ ne(null);
8779
8779
  return;
8780
8780
  }
8781
8781
  let e = () => {
8782
8782
  let e = S.current;
8783
8783
  if (!e) return;
8784
8784
  let t = e.getBoundingClientRect();
8785
- P({
8785
+ ne({
8786
8786
  top: t.bottom,
8787
8787
  left: t.left,
8788
8788
  width: t.width
@@ -8792,18 +8792,18 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8792
8792
  window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
8793
8793
  };
8794
8794
  }, [T]);
8795
- let F = e.useMemo(() => ly(n), [n]), ne = e.useMemo(() => {
8795
+ let I = e.useMemo(() => ly(n), [n]), re = e.useMemo(() => {
8796
8796
  let e = /* @__PURE__ */ new Map();
8797
8797
  return t.forEach((t) => {
8798
8798
  e.set(uy(t), dy(t));
8799
8799
  }), e;
8800
- }, [t]), re = !c && F[0] ? ne.get(F[0]) ?? F[0] : "", I = e.useMemo(() => {
8800
+ }, [t]), R = !c && I[0] ? re.get(I[0]) ?? I[0] : "", ie = e.useMemo(() => {
8801
8801
  let e = D.trim().toLowerCase();
8802
8802
  return e ? t.filter((t) => `${dy(t)} ${uy(t)}`.toLowerCase().includes(e)) : [...t];
8803
8803
  }, [t, D]);
8804
8804
  e.useEffect(() => {
8805
- k(I.length > 0 ? 0 : -1);
8806
- }, [I]), e.useEffect(() => {
8805
+ A(ie.length > 0 ? 0 : -1);
8806
+ }, [ie]), e.useEffect(() => {
8807
8807
  if (!T || !te) return;
8808
8808
  let e = w.current;
8809
8809
  if (!e) return;
@@ -8818,36 +8818,36 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8818
8818
  let e = (e) => {
8819
8819
  if (!S.current) return;
8820
8820
  let t = e.target;
8821
- t instanceof Node && !S.current.contains(t) && !M.current?.contains(t) && (E(!1), j(""));
8821
+ t instanceof Node && !S.current.contains(t) && !ee.current?.contains(t) && (E(!1), P(""));
8822
8822
  };
8823
8823
  return document.addEventListener("mousedown", e), () => {
8824
8824
  document.removeEventListener("mousedown", e);
8825
8825
  };
8826
8826
  }, []);
8827
- let R = (e) => {
8827
+ let ae = (e) => {
8828
8828
  if (!l) {
8829
8829
  if (c) {
8830
- F.includes(e) ? r(F.filter((t) => t !== e)) : r([...F, e]), j(""), C.current?.focus();
8830
+ I.includes(e) ? r(I.filter((t) => t !== e)) : r([...I, e]), P(""), C.current?.focus();
8831
8831
  return;
8832
8832
  }
8833
- r(e), j(""), E(!1);
8833
+ r(e), P(""), E(!1);
8834
8834
  }
8835
- }, ie = (e) => {
8835
+ }, z = (e) => {
8836
8836
  if (!l) {
8837
8837
  if (!c) {
8838
8838
  r("");
8839
8839
  return;
8840
8840
  }
8841
- r(F.filter((t) => t !== e));
8841
+ r(I.filter((t) => t !== e));
8842
8842
  }
8843
- }, ae = (e) => {
8843
+ }, oe = (e) => {
8844
8844
  if (!l) {
8845
8845
  if (e.key === "ArrowDown") {
8846
- e.preventDefault(), E(!0), I.length > 0 && k((e) => e < 0 ? 0 : Math.min(e + 1, I.length - 1));
8846
+ e.preventDefault(), E(!0), ie.length > 0 && A((e) => e < 0 ? 0 : Math.min(e + 1, ie.length - 1));
8847
8847
  return;
8848
8848
  }
8849
8849
  if (e.key === "ArrowUp") {
8850
- e.preventDefault(), E(!0), I.length > 0 && k((e) => e < 0 ? 0 : Math.max(e - 1, 0));
8850
+ e.preventDefault(), E(!0), ie.length > 0 && A((e) => e < 0 ? 0 : Math.max(e - 1, 0));
8851
8851
  return;
8852
8852
  }
8853
8853
  if (e.key === "Enter") {
@@ -8855,13 +8855,13 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8855
8855
  E(!0);
8856
8856
  return;
8857
8857
  }
8858
- let t = I[ee];
8859
- ee >= 0 && t && R(uy(t));
8858
+ let t = ie[k];
8859
+ k >= 0 && t && ae(uy(t));
8860
8860
  return;
8861
8861
  }
8862
8862
  if (e.key === "Escape") {
8863
8863
  if (!T) return;
8864
- e.stopPropagation(), E(!1), j("");
8864
+ e.stopPropagation(), E(!1), P("");
8865
8865
  }
8866
8866
  }
8867
8867
  };
@@ -8872,11 +8872,11 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8872
8872
  children: [/* @__PURE__ */ v("div", {
8873
8873
  className: J("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", l ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", o && "ttw:border-destructive ttw:focus-within:border-destructive ttw:focus-within:ring-destructive/20"),
8874
8874
  onClick: () => {
8875
- l || (T || j(""), E(!0), C.current?.focus());
8875
+ l || (T || P(""), E(!0), C.current?.focus());
8876
8876
  },
8877
8877
  children: [
8878
- c ? F.map((e) => {
8879
- let t = ne.get(e) ?? e;
8878
+ c ? I.map((e) => {
8879
+ let t = re.get(e) ?? e;
8880
8880
  return /* @__PURE__ */ v("span", {
8881
8881
  className: "ttw:flex ttw:min-h-5.5 ttw:min-w-0 ttw:max-w-full ttw:items-center ttw:gap-1 ttw:rounded-sm ttw:bg-muted ttw:pl-1.5 ttw:pr-0.5 ttw:text-xs ttw:font-medium",
8882
8882
  style: {
@@ -8892,7 +8892,7 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8892
8892
  "aria-label": sy(x.removeAriaLabel, { label: t }),
8893
8893
  className: J("ttw:inline-flex ttw:size-4 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-60", l ? "ttw:cursor-not-allowed" : "ttw:cursor-pointer ttw:hover:opacity-100"),
8894
8894
  onClick: (t) => {
8895
- l || (t.stopPropagation(), ie(e));
8895
+ l || (t.stopPropagation(), z(e));
8896
8896
  },
8897
8897
  children: /* @__PURE__ */ _(fe, { className: "ttw:size-3" })
8898
8898
  })]
@@ -8902,38 +8902,43 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8902
8902
  ref: C,
8903
8903
  id: i,
8904
8904
  type: "text",
8905
+ role: "combobox",
8906
+ "aria-expanded": T,
8907
+ "aria-controls": T ? j : void 0,
8908
+ "aria-autocomplete": "list",
8909
+ "aria-activedescendant": T && ie[k] ? M(k) : void 0,
8905
8910
  disabled: l,
8906
8911
  "aria-required": a || void 0,
8907
8912
  "aria-invalid": o || void 0,
8908
8913
  "aria-describedby": s,
8909
- value: !c && !T ? re : D,
8914
+ value: !c && !T ? R : D,
8910
8915
  placeholder: x.placeholder,
8911
8916
  className: "ttw:min-w-16 ttw:flex-1 ttw:bg-transparent ttw:outline-none",
8912
8917
  onFocus: () => {
8913
- l || (T || j(""), E(!0));
8918
+ l || (T || P(""), E(!0));
8914
8919
  },
8915
8920
  onChange: (e) => {
8916
8921
  if (!T) {
8917
8922
  let t = e.nativeEvent.data ?? "";
8918
- j(t), E(!0);
8923
+ P(t), E(!0);
8919
8924
  return;
8920
8925
  }
8921
- j(e.target.value), E(!0);
8926
+ P(e.target.value), E(!0);
8922
8927
  },
8923
- onKeyDown: ae
8928
+ onKeyDown: oe
8924
8929
  }),
8925
- !c && !l && F.length > 0 ? /* @__PURE__ */ _("button", {
8930
+ !c && !l && I.length > 0 ? /* @__PURE__ */ _("button", {
8926
8931
  type: "button",
8927
8932
  "aria-label": x.clearAriaLabel,
8928
8933
  className: "ttw:inline-flex ttw:size-4 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-60 ttw:hover:opacity-100",
8929
8934
  onClick: (e) => {
8930
- e.stopPropagation(), ie(F[0]), j("");
8935
+ e.stopPropagation(), z(I[0]), P("");
8931
8936
  },
8932
8937
  children: /* @__PURE__ */ _(fe, { className: "ttw:size-3" })
8933
8938
  }) : null
8934
8939
  ]
8935
8940
  }), T && te ? h(/* @__PURE__ */ _("div", {
8936
- ref: M,
8941
+ ref: ee,
8937
8942
  style: {
8938
8943
  position: "fixed",
8939
8944
  top: te.top + 6,
@@ -8945,31 +8950,39 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8945
8950
  onPointerDown: (e) => e.stopPropagation(),
8946
8951
  children: /* @__PURE__ */ v("ul", {
8947
8952
  ref: w,
8953
+ id: j,
8954
+ role: "listbox",
8955
+ "aria-multiselectable": c || void 0,
8948
8956
  className: "ttw:max-h-80 ttw:overflow-y-auto ttw:p-1",
8949
8957
  onScroll: () => {
8950
8958
  if (!f || !w.current) return;
8951
8959
  let { scrollTop: e, scrollHeight: t, clientHeight: n } = w.current;
8952
8960
  t - e - n < 50 && f();
8953
8961
  },
8954
- children: [I.length === 0 ? /* @__PURE__ */ _("li", {
8962
+ children: [ie.length === 0 ? /* @__PURE__ */ _("li", {
8963
+ role: "presentation",
8955
8964
  className: "ttw:px-2 ttw:py-2 ttw:text-sm ttw:text-muted-foreground",
8956
8965
  children: x.emptyMessage
8957
- }) : I.map((e, t) => {
8958
- let n = uy(e), r = F.includes(n);
8966
+ }) : ie.map((e, t) => {
8967
+ let n = uy(e), r = I.includes(n), i = k === t;
8959
8968
  return /* @__PURE__ */ v("li", {
8960
- className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm", ee === t ? "ttw:bg-accent ttw:text-accent-foreground" : "ttw:hover:bg-accent ttw:hover:text-accent-foreground"),
8961
- onMouseEnter: () => k(t),
8969
+ id: M(t),
8970
+ role: "option",
8971
+ "aria-selected": r,
8972
+ className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm", i ? "ttw:bg-accent ttw:text-accent-foreground" : "ttw:hover:bg-accent ttw:hover:text-accent-foreground"),
8973
+ onMouseEnter: () => A(t),
8962
8974
  onMouseDown: (e) => {
8963
- e.preventDefault(), R(n);
8975
+ e.preventDefault(), ae(n);
8964
8976
  },
8965
8977
  children: [dy(e), r ? /* @__PURE__ */ _(L, { className: "ttw:ml-auto ttw:size-4" }) : null]
8966
8978
  }, n);
8967
8979
  }), p ? /* @__PURE__ */ _("li", {
8980
+ role: "presentation",
8968
8981
  className: "ttw:px-2 ttw:py-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
8969
8982
  children: x.loadingMore
8970
8983
  }) : null]
8971
8984
  })
8972
- }), N ?? document.body) : null]
8985
+ }), F ?? document.body) : null]
8973
8986
  });
8974
8987
  }
8975
8988
  function py({ ...e }) {
@@ -9230,14 +9243,14 @@ function Vy({ className: e, ...t }) {
9230
9243
  });
9231
9244
  }
9232
9245
  var Hy = 52, Uy = 40, Wy = "60vh";
9233
- function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: h = !1, onRowClick: C, rowAriaLabel: w, rowClassName: T, rowGroup: E, rowContextMenu: D, children: O, className: ee, pageSizeOptions: k, showPagination: A = !0, isLoading: j = !1, getRowId: M, animatesNewRows: N = !1, rowTestId: te }) {
9234
- let P = {
9246
+ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: h = !1, onRowClick: C, rowAriaLabel: w, rowClassName: T, rowGroup: E, rowContextMenu: D, children: O, className: k, pageSizeOptions: A, showPagination: j = !0, isLoading: M = !1, getRowId: N, animatesNewRows: P = !1, rowTestId: ee }) {
9247
+ let F = {
9235
9248
  ..._y,
9236
9249
  ...d
9237
- }, [F, ne] = e.useState([]), [re, I] = e.useState({}), [L, z] = e.useState({}), [oe, se] = e.useState({}), ce = S({
9250
+ }, [te, ne] = e.useState([]), [I, re] = e.useState({}), [L, z] = e.useState({}), [oe, se] = e.useState({}), ce = S({
9238
9251
  data: n,
9239
9252
  columns: t,
9240
- getRowId: M,
9253
+ getRowId: N,
9241
9254
  getCoreRowModel: b(),
9242
9255
  getFilteredRowModel: x(),
9243
9256
  manualPagination: !0,
@@ -9246,7 +9259,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9246
9259
  defaultColumn: { enableSorting: !1 },
9247
9260
  onSortingChange: i,
9248
9261
  onColumnFiltersChange: ne,
9249
- onColumnVisibilityChange: I,
9262
+ onColumnVisibilityChange: re,
9250
9263
  onRowSelectionChange: z,
9251
9264
  state: {
9252
9265
  sorting: r,
@@ -9254,14 +9267,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9254
9267
  pageIndex: 0,
9255
9268
  pageSize: a
9256
9269
  },
9257
- columnFilters: F,
9258
- columnVisibility: re,
9270
+ columnFilters: te,
9271
+ columnVisibility: I,
9259
9272
  rowSelection: L
9260
9273
  }
9261
9274
  });
9262
9275
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
9263
9276
  "data-slot": "data-table",
9264
- className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card ttw:text-card-foreground", p && "ttw:pt-4", ee),
9277
+ className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card ttw:text-card-foreground", p && "ttw:pt-4", k),
9265
9278
  children: [
9266
9279
  p,
9267
9280
  m && /* @__PURE__ */ _("div", {
@@ -9272,7 +9285,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9272
9285
  variant: "outline",
9273
9286
  className: "ttw:ml-auto",
9274
9287
  children: [
9275
- P.columns,
9288
+ F.columns,
9276
9289
  " ",
9277
9290
  /* @__PURE__ */ _(R, {})
9278
9291
  ]
@@ -9302,7 +9315,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9302
9315
  ...e.column.columnDef.minSize !== void 0 && { minWidth: e.column.columnDef.minSize }
9303
9316
  },
9304
9317
  children: e.isPlaceholder ? null : y(e.column.columnDef.header, e.getContext())
9305
- }, e.id)) }, e.id)) }), /* @__PURE__ */ _(Ry, { children: j ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ _(zy, { children: t.map((e, t) => /* @__PURE__ */ _(Vy, {
9318
+ }, e.id)) }, e.id)) }), /* @__PURE__ */ _(Ry, { children: M ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ _(zy, { children: t.map((e, t) => /* @__PURE__ */ _(Vy, {
9306
9319
  className: "ttw:px-3 ttw:h-13 ttw:border-border ttw:border-b",
9307
9320
  children: /* @__PURE__ */ _(qv, { className: "ttw:h-4 ttw:w-full" })
9308
9321
  }, t)) }, `skeleton-${n}`)) : ce.getRowModel().rows?.length ? ce.getRowModel().rows.map((n, r, i) => {
@@ -9340,8 +9353,8 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9340
9353
  }) : null, !c || l ? (() => {
9341
9354
  let e = /* @__PURE__ */ _(zy, {
9342
9355
  "data-state": n.getIsSelected() ? "selected" : void 0,
9343
- className: J("ttw:duration-0", C && "ttw:cursor-pointer ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring", N && "ttw:animate-in ttw:fade-in-0 ttw:slide-in-from-top-1 ttw:animation-duration-300", T?.(n.original)),
9344
- "data-testid": te,
9356
+ className: J("ttw:duration-0", C && "ttw:cursor-pointer ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring", P && "ttw:animate-in ttw:fade-in-0 ttw:slide-in-from-top-1 ttw:animation-duration-300", T?.(n.original)),
9357
+ "data-testid": ee,
9345
9358
  tabIndex: C ? 0 : void 0,
9346
9359
  "aria-label": w?.(n.original),
9347
9360
  onClick: () => C?.(n.original),
@@ -9370,33 +9383,33 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9370
9383
  className: "ttw:p-0",
9371
9384
  children: /* @__PURE__ */ _("div", {
9372
9385
  className: "ttw:flex ttw:min-h-64 ttw:items-center ttw:justify-center ttw:text-center",
9373
- children: O || P.noResults
9386
+ children: O || F.noResults
9374
9387
  })
9375
9388
  }) }) })]
9376
9389
  })
9377
9390
  ]
9378
- }), A ? /* @__PURE__ */ v("div", {
9391
+ }), j ? /* @__PURE__ */ v("div", {
9379
9392
  className: "ttw:flex ttw:items-center ttw:justify-end ttw:space-x-6.5 ttw:py-3 ttw:bg-transparent",
9380
9393
  children: [
9381
9394
  h && /* @__PURE__ */ _("div", {
9382
9395
  className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-foreground",
9383
- children: sy(P.selectedRows, {
9396
+ children: sy(F.selectedRows, {
9384
9397
  selected: ce.getFilteredSelectedRowModel().rows.length,
9385
9398
  total: ce.getFilteredRowModel().rows.length
9386
9399
  })
9387
9400
  }),
9388
9401
  /* @__PURE__ */ v("span", {
9389
9402
  className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-foreground",
9390
- children: [P.rowsPerPage, /* @__PURE__ */ v(Ey, {
9403
+ children: [F.rowsPerPage, /* @__PURE__ */ v(Ey, {
9391
9404
  value: String(a),
9392
9405
  onValueChange: (e) => {
9393
9406
  o(Number(e));
9394
9407
  },
9395
9408
  children: [/* @__PURE__ */ _(ky, {
9396
9409
  size: "sm",
9397
- "aria-label": P.rowsPerPage,
9410
+ "aria-label": F.rowsPerPage,
9398
9411
  children: /* @__PURE__ */ _(Oy, {})
9399
- }), /* @__PURE__ */ _(Ay, { children: k.map((e) => /* @__PURE__ */ _(My, {
9412
+ }), /* @__PURE__ */ _(Ay, { children: A.map((e) => /* @__PURE__ */ _(My, {
9400
9413
  value: String(e),
9401
9414
  children: e
9402
9415
  }, e)) })]
@@ -9410,14 +9423,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9410
9423
  className: "ttw:flex ttw:items-center ttw:space-x-3",
9411
9424
  children: [/* @__PURE__ */ _(Tv, {
9412
9425
  variant: "ghost",
9413
- "aria-label": P.previousPage,
9426
+ "aria-label": F.previousPage,
9414
9427
  className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-border ttw:rounded-lg",
9415
9428
  onClick: u,
9416
9429
  disabled: !c,
9417
9430
  children: /* @__PURE__ */ _(ie, {})
9418
9431
  }), /* @__PURE__ */ _(Tv, {
9419
9432
  variant: "ghost",
9420
- "aria-label": P.nextPage,
9433
+ "aria-label": F.nextPage,
9421
9434
  className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-border ttw:rounded-lg",
9422
9435
  onClick: l,
9423
9436
  disabled: !s,
@@ -9428,8 +9441,8 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9428
9441
  }) : null] });
9429
9442
  }
9430
9443
  var Ky = {
9431
- ascending: re,
9432
- descending: F,
9444
+ ascending: I,
9445
+ descending: te,
9433
9446
  none: ne
9434
9447
  };
9435
9448
  function qy(e) {
@@ -10681,14 +10694,14 @@ var Cx = Sx(), wx = (e) => {
10681
10694
  "auto",
10682
10695
  Z,
10683
10696
  X
10684
- ], ee = () => [
10697
+ ], k = () => [
10685
10698
  "auto",
10686
10699
  "min",
10687
10700
  "max",
10688
10701
  "fr",
10689
10702
  Z,
10690
10703
  X
10691
- ], k = () => [
10704
+ ], A = () => [
10692
10705
  "start",
10693
10706
  "end",
10694
10707
  "center",
@@ -10699,14 +10712,14 @@ var Cx = Sx(), wx = (e) => {
10699
10712
  "baseline",
10700
10713
  "center-safe",
10701
10714
  "end-safe"
10702
- ], A = () => [
10715
+ ], j = () => [
10703
10716
  "start",
10704
10717
  "end",
10705
10718
  "center",
10706
10719
  "stretch",
10707
10720
  "center-safe",
10708
10721
  "end-safe"
10709
- ], j = () => ["auto", ...w()], M = () => [
10722
+ ], M = () => ["auto", ...w()], N = () => [
10710
10723
  JS,
10711
10724
  "auto",
10712
10725
  "full",
@@ -10720,7 +10733,7 @@ var Cx = Sx(), wx = (e) => {
10720
10733
  "max",
10721
10734
  "fit",
10722
10735
  ...w()
10723
- ], N = () => [
10736
+ ], P = () => [
10724
10737
  JS,
10725
10738
  "screen",
10726
10739
  "full",
@@ -10731,7 +10744,7 @@ var Cx = Sx(), wx = (e) => {
10731
10744
  "max",
10732
10745
  "fit",
10733
10746
  ...w()
10734
- ], te = () => [
10747
+ ], ee = () => [
10735
10748
  JS,
10736
10749
  "screen",
10737
10750
  "full",
@@ -10743,11 +10756,11 @@ var Cx = Sx(), wx = (e) => {
10743
10756
  "max",
10744
10757
  "fit",
10745
10758
  ...w()
10746
- ], P = () => [
10759
+ ], F = () => [
10747
10760
  e,
10748
10761
  Z,
10749
10762
  X
10750
- ], F = () => [
10763
+ ], te = () => [
10751
10764
  ...b(),
10752
10765
  hC,
10753
10766
  uC,
@@ -10758,14 +10771,14 @@ var Cx = Sx(), wx = (e) => {
10758
10771
  "y",
10759
10772
  "space",
10760
10773
  "round"
10761
- ] }], re = () => [
10774
+ ] }], I = () => [
10762
10775
  "auto",
10763
10776
  "cover",
10764
10777
  "contain",
10765
10778
  gC,
10766
10779
  aC,
10767
10780
  { size: [Z, X] }
10768
- ], I = () => [
10781
+ ], re = () => [
10769
10782
  XS,
10770
10783
  pC,
10771
10784
  oC
@@ -11079,24 +11092,24 @@ var Cx = Sx(), wx = (e) => {
11079
11092
  "row-dense",
11080
11093
  "col-dense"
11081
11094
  ] }],
11082
- "auto-cols": [{ "auto-cols": ee() }],
11083
- "auto-rows": [{ "auto-rows": ee() }],
11095
+ "auto-cols": [{ "auto-cols": k() }],
11096
+ "auto-rows": [{ "auto-rows": k() }],
11084
11097
  gap: [{ gap: w() }],
11085
11098
  "gap-x": [{ "gap-x": w() }],
11086
11099
  "gap-y": [{ "gap-y": w() }],
11087
- "justify-content": [{ justify: [...k(), "normal"] }],
11088
- "justify-items": [{ "justify-items": [...A(), "normal"] }],
11089
- "justify-self": [{ "justify-self": ["auto", ...A()] }],
11090
- "align-content": [{ content: ["normal", ...k()] }],
11091
- "align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
11100
+ "justify-content": [{ justify: [...A(), "normal"] }],
11101
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
11102
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
11103
+ "align-content": [{ content: ["normal", ...A()] }],
11104
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
11092
11105
  "align-self": [{ self: [
11093
11106
  "auto",
11094
- ...A(),
11107
+ ...j(),
11095
11108
  { baseline: ["", "last"] }
11096
11109
  ] }],
11097
- "place-content": [{ "place-content": k() }],
11098
- "place-items": [{ "place-items": [...A(), "baseline"] }],
11099
- "place-self": [{ "place-self": ["auto", ...A()] }],
11110
+ "place-content": [{ "place-content": A() }],
11111
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
11112
+ "place-self": [{ "place-self": ["auto", ...j()] }],
11100
11113
  p: [{ p: w() }],
11101
11114
  px: [{ px: w() }],
11102
11115
  py: [{ py: w() }],
@@ -11108,38 +11121,38 @@ var Cx = Sx(), wx = (e) => {
11108
11121
  pr: [{ pr: w() }],
11109
11122
  pb: [{ pb: w() }],
11110
11123
  pl: [{ pl: w() }],
11111
- m: [{ m: j() }],
11112
- mx: [{ mx: j() }],
11113
- my: [{ my: j() }],
11114
- ms: [{ ms: j() }],
11115
- me: [{ me: j() }],
11116
- mbs: [{ mbs: j() }],
11117
- mbe: [{ mbe: j() }],
11118
- mt: [{ mt: j() }],
11119
- mr: [{ mr: j() }],
11120
- mb: [{ mb: j() }],
11121
- ml: [{ ml: j() }],
11124
+ m: [{ m: M() }],
11125
+ mx: [{ mx: M() }],
11126
+ my: [{ my: M() }],
11127
+ ms: [{ ms: M() }],
11128
+ me: [{ me: M() }],
11129
+ mbs: [{ mbs: M() }],
11130
+ mbe: [{ mbe: M() }],
11131
+ mt: [{ mt: M() }],
11132
+ mr: [{ mr: M() }],
11133
+ mb: [{ mb: M() }],
11134
+ ml: [{ ml: M() }],
11122
11135
  "space-x": [{ "space-x": w() }],
11123
11136
  "space-x-reverse": ["space-x-reverse"],
11124
11137
  "space-y": [{ "space-y": w() }],
11125
11138
  "space-y-reverse": ["space-y-reverse"],
11126
- size: [{ size: M() }],
11127
- "inline-size": [{ inline: ["auto", ...N()] }],
11128
- "min-inline-size": [{ "min-inline": ["auto", ...N()] }],
11129
- "max-inline-size": [{ "max-inline": ["none", ...N()] }],
11130
- "block-size": [{ block: ["auto", ...te()] }],
11131
- "min-block-size": [{ "min-block": ["auto", ...te()] }],
11132
- "max-block-size": [{ "max-block": ["none", ...te()] }],
11139
+ size: [{ size: N() }],
11140
+ "inline-size": [{ inline: ["auto", ...P()] }],
11141
+ "min-inline-size": [{ "min-inline": ["auto", ...P()] }],
11142
+ "max-inline-size": [{ "max-inline": ["none", ...P()] }],
11143
+ "block-size": [{ block: ["auto", ...ee()] }],
11144
+ "min-block-size": [{ "min-block": ["auto", ...ee()] }],
11145
+ "max-block-size": [{ "max-block": ["none", ...ee()] }],
11133
11146
  w: [{ w: [
11134
11147
  s,
11135
11148
  "screen",
11136
- ...M()
11149
+ ...N()
11137
11150
  ] }],
11138
11151
  "min-w": [{ "min-w": [
11139
11152
  s,
11140
11153
  "screen",
11141
11154
  "none",
11142
- ...M()
11155
+ ...N()
11143
11156
  ] }],
11144
11157
  "max-w": [{ "max-w": [
11145
11158
  s,
@@ -11147,23 +11160,23 @@ var Cx = Sx(), wx = (e) => {
11147
11160
  "none",
11148
11161
  "prose",
11149
11162
  { screen: [o] },
11150
- ...M()
11163
+ ...N()
11151
11164
  ] }],
11152
11165
  h: [{ h: [
11153
11166
  "screen",
11154
11167
  "lh",
11155
- ...M()
11168
+ ...N()
11156
11169
  ] }],
11157
11170
  "min-h": [{ "min-h": [
11158
11171
  "screen",
11159
11172
  "lh",
11160
11173
  "none",
11161
- ...M()
11174
+ ...N()
11162
11175
  ] }],
11163
11176
  "max-h": [{ "max-h": [
11164
11177
  "screen",
11165
11178
  "lh",
11166
- ...M()
11179
+ ...N()
11167
11180
  ] }],
11168
11181
  "font-size": [{ text: [
11169
11182
  "base",
@@ -11236,8 +11249,8 @@ var Cx = Sx(), wx = (e) => {
11236
11249
  "start",
11237
11250
  "end"
11238
11251
  ] }],
11239
- "placeholder-color": [{ placeholder: P() }],
11240
- "text-color": [{ text: P() }],
11252
+ "placeholder-color": [{ placeholder: F() }],
11253
+ "text-color": [{ text: F() }],
11241
11254
  "text-decoration": [
11242
11255
  "underline",
11243
11256
  "overline",
@@ -11252,7 +11265,7 @@ var Cx = Sx(), wx = (e) => {
11252
11265
  Z,
11253
11266
  oC
11254
11267
  ] }],
11255
- "text-decoration-color": [{ decoration: P() }],
11268
+ "text-decoration-color": [{ decoration: F() }],
11256
11269
  "underline-offset": [{ "underline-offset": [
11257
11270
  Y,
11258
11271
  "auto",
@@ -11339,9 +11352,9 @@ var Cx = Sx(), wx = (e) => {
11339
11352
  "padding",
11340
11353
  "content"
11341
11354
  ] }],
11342
- "bg-position": [{ bg: F() }],
11355
+ "bg-position": [{ bg: te() }],
11343
11356
  "bg-repeat": [{ bg: ne() }],
11344
- "bg-size": [{ bg: re() }],
11357
+ "bg-size": [{ bg: I() }],
11345
11358
  "bg-image": [{ bg: [
11346
11359
  "none",
11347
11360
  {
@@ -11374,13 +11387,13 @@ var Cx = Sx(), wx = (e) => {
11374
11387
  _C,
11375
11388
  dC
11376
11389
  ] }],
11377
- "bg-color": [{ bg: P() }],
11378
- "gradient-from-pos": [{ from: I() }],
11379
- "gradient-via-pos": [{ via: I() }],
11380
- "gradient-to-pos": [{ to: I() }],
11381
- "gradient-from": [{ from: P() }],
11382
- "gradient-via": [{ via: P() }],
11383
- "gradient-to": [{ to: P() }],
11390
+ "bg-color": [{ bg: F() }],
11391
+ "gradient-from-pos": [{ from: re() }],
11392
+ "gradient-via-pos": [{ via: re() }],
11393
+ "gradient-to-pos": [{ to: re() }],
11394
+ "gradient-from": [{ from: F() }],
11395
+ "gradient-via": [{ via: F() }],
11396
+ "gradient-to": [{ to: F() }],
11384
11397
  rounded: [{ rounded: L() }],
11385
11398
  "rounded-s": [{ "rounded-s": L() }],
11386
11399
  "rounded-e": [{ "rounded-e": L() }],
@@ -11421,18 +11434,18 @@ var Cx = Sx(), wx = (e) => {
11421
11434
  "hidden",
11422
11435
  "none"
11423
11436
  ] }],
11424
- "border-color": [{ border: P() }],
11425
- "border-color-x": [{ "border-x": P() }],
11426
- "border-color-y": [{ "border-y": P() }],
11427
- "border-color-s": [{ "border-s": P() }],
11428
- "border-color-e": [{ "border-e": P() }],
11429
- "border-color-bs": [{ "border-bs": P() }],
11430
- "border-color-be": [{ "border-be": P() }],
11431
- "border-color-t": [{ "border-t": P() }],
11432
- "border-color-r": [{ "border-r": P() }],
11433
- "border-color-b": [{ "border-b": P() }],
11434
- "border-color-l": [{ "border-l": P() }],
11435
- "divide-color": [{ divide: P() }],
11437
+ "border-color": [{ border: F() }],
11438
+ "border-color-x": [{ "border-x": F() }],
11439
+ "border-color-y": [{ "border-y": F() }],
11440
+ "border-color-s": [{ "border-s": F() }],
11441
+ "border-color-e": [{ "border-e": F() }],
11442
+ "border-color-bs": [{ "border-bs": F() }],
11443
+ "border-color-be": [{ "border-be": F() }],
11444
+ "border-color-t": [{ "border-t": F() }],
11445
+ "border-color-r": [{ "border-r": F() }],
11446
+ "border-color-b": [{ "border-b": F() }],
11447
+ "border-color-l": [{ "border-l": F() }],
11448
+ "divide-color": [{ divide: F() }],
11436
11449
  "outline-style": [{ outline: [
11437
11450
  ...ie(),
11438
11451
  "none",
@@ -11449,7 +11462,7 @@ var Cx = Sx(), wx = (e) => {
11449
11462
  pC,
11450
11463
  oC
11451
11464
  ] }],
11452
- "outline-color": [{ outline: P() }],
11465
+ "outline-color": [{ outline: F() }],
11453
11466
  shadow: [{ shadow: [
11454
11467
  "",
11455
11468
  "none",
@@ -11457,28 +11470,28 @@ var Cx = Sx(), wx = (e) => {
11457
11470
  vC,
11458
11471
  fC
11459
11472
  ] }],
11460
- "shadow-color": [{ shadow: P() }],
11473
+ "shadow-color": [{ shadow: F() }],
11461
11474
  "inset-shadow": [{ "inset-shadow": [
11462
11475
  "none",
11463
11476
  d,
11464
11477
  vC,
11465
11478
  fC
11466
11479
  ] }],
11467
- "inset-shadow-color": [{ "inset-shadow": P() }],
11480
+ "inset-shadow-color": [{ "inset-shadow": F() }],
11468
11481
  "ring-w": [{ ring: R() }],
11469
11482
  "ring-w-inset": ["ring-inset"],
11470
- "ring-color": [{ ring: P() }],
11483
+ "ring-color": [{ ring: F() }],
11471
11484
  "ring-offset-w": [{ "ring-offset": [Y, oC] }],
11472
- "ring-offset-color": [{ "ring-offset": P() }],
11485
+ "ring-offset-color": [{ "ring-offset": F() }],
11473
11486
  "inset-ring-w": [{ "inset-ring": R() }],
11474
- "inset-ring-color": [{ "inset-ring": P() }],
11487
+ "inset-ring-color": [{ "inset-ring": F() }],
11475
11488
  "text-shadow": [{ "text-shadow": [
11476
11489
  "none",
11477
11490
  f,
11478
11491
  vC,
11479
11492
  fC
11480
11493
  ] }],
11481
- "text-shadow-color": [{ "text-shadow": P() }],
11494
+ "text-shadow-color": [{ "text-shadow": F() }],
11482
11495
  opacity: [{ opacity: [
11483
11496
  Y,
11484
11497
  Z,
@@ -11507,37 +11520,37 @@ var Cx = Sx(), wx = (e) => {
11507
11520
  "mask-image-linear-pos": [{ "mask-linear": [Y] }],
11508
11521
  "mask-image-linear-from-pos": [{ "mask-linear-from": z() }],
11509
11522
  "mask-image-linear-to-pos": [{ "mask-linear-to": z() }],
11510
- "mask-image-linear-from-color": [{ "mask-linear-from": P() }],
11511
- "mask-image-linear-to-color": [{ "mask-linear-to": P() }],
11523
+ "mask-image-linear-from-color": [{ "mask-linear-from": F() }],
11524
+ "mask-image-linear-to-color": [{ "mask-linear-to": F() }],
11512
11525
  "mask-image-t-from-pos": [{ "mask-t-from": z() }],
11513
11526
  "mask-image-t-to-pos": [{ "mask-t-to": z() }],
11514
- "mask-image-t-from-color": [{ "mask-t-from": P() }],
11515
- "mask-image-t-to-color": [{ "mask-t-to": P() }],
11527
+ "mask-image-t-from-color": [{ "mask-t-from": F() }],
11528
+ "mask-image-t-to-color": [{ "mask-t-to": F() }],
11516
11529
  "mask-image-r-from-pos": [{ "mask-r-from": z() }],
11517
11530
  "mask-image-r-to-pos": [{ "mask-r-to": z() }],
11518
- "mask-image-r-from-color": [{ "mask-r-from": P() }],
11519
- "mask-image-r-to-color": [{ "mask-r-to": P() }],
11531
+ "mask-image-r-from-color": [{ "mask-r-from": F() }],
11532
+ "mask-image-r-to-color": [{ "mask-r-to": F() }],
11520
11533
  "mask-image-b-from-pos": [{ "mask-b-from": z() }],
11521
11534
  "mask-image-b-to-pos": [{ "mask-b-to": z() }],
11522
- "mask-image-b-from-color": [{ "mask-b-from": P() }],
11523
- "mask-image-b-to-color": [{ "mask-b-to": P() }],
11535
+ "mask-image-b-from-color": [{ "mask-b-from": F() }],
11536
+ "mask-image-b-to-color": [{ "mask-b-to": F() }],
11524
11537
  "mask-image-l-from-pos": [{ "mask-l-from": z() }],
11525
11538
  "mask-image-l-to-pos": [{ "mask-l-to": z() }],
11526
- "mask-image-l-from-color": [{ "mask-l-from": P() }],
11527
- "mask-image-l-to-color": [{ "mask-l-to": P() }],
11539
+ "mask-image-l-from-color": [{ "mask-l-from": F() }],
11540
+ "mask-image-l-to-color": [{ "mask-l-to": F() }],
11528
11541
  "mask-image-x-from-pos": [{ "mask-x-from": z() }],
11529
11542
  "mask-image-x-to-pos": [{ "mask-x-to": z() }],
11530
- "mask-image-x-from-color": [{ "mask-x-from": P() }],
11531
- "mask-image-x-to-color": [{ "mask-x-to": P() }],
11543
+ "mask-image-x-from-color": [{ "mask-x-from": F() }],
11544
+ "mask-image-x-to-color": [{ "mask-x-to": F() }],
11532
11545
  "mask-image-y-from-pos": [{ "mask-y-from": z() }],
11533
11546
  "mask-image-y-to-pos": [{ "mask-y-to": z() }],
11534
- "mask-image-y-from-color": [{ "mask-y-from": P() }],
11535
- "mask-image-y-to-color": [{ "mask-y-to": P() }],
11547
+ "mask-image-y-from-color": [{ "mask-y-from": F() }],
11548
+ "mask-image-y-to-color": [{ "mask-y-to": F() }],
11536
11549
  "mask-image-radial": [{ "mask-radial": [Z, X] }],
11537
11550
  "mask-image-radial-from-pos": [{ "mask-radial-from": z() }],
11538
11551
  "mask-image-radial-to-pos": [{ "mask-radial-to": z() }],
11539
- "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
11540
- "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
11552
+ "mask-image-radial-from-color": [{ "mask-radial-from": F() }],
11553
+ "mask-image-radial-to-color": [{ "mask-radial-to": F() }],
11541
11554
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
11542
11555
  "mask-image-radial-size": [{ "mask-radial": [{
11543
11556
  closest: ["side", "corner"],
@@ -11547,8 +11560,8 @@ var Cx = Sx(), wx = (e) => {
11547
11560
  "mask-image-conic-pos": [{ "mask-conic": [Y] }],
11548
11561
  "mask-image-conic-from-pos": [{ "mask-conic-from": z() }],
11549
11562
  "mask-image-conic-to-pos": [{ "mask-conic-to": z() }],
11550
- "mask-image-conic-from-color": [{ "mask-conic-from": P() }],
11551
- "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
11563
+ "mask-image-conic-from-color": [{ "mask-conic-from": F() }],
11564
+ "mask-image-conic-to-color": [{ "mask-conic-to": F() }],
11552
11565
  "mask-mode": [{ mask: [
11553
11566
  "alpha",
11554
11567
  "luminance",
@@ -11562,9 +11575,9 @@ var Cx = Sx(), wx = (e) => {
11562
11575
  "stroke",
11563
11576
  "view"
11564
11577
  ] }],
11565
- "mask-position": [{ mask: F() }],
11578
+ "mask-position": [{ mask: te() }],
11566
11579
  "mask-repeat": [{ mask: ne() }],
11567
- "mask-size": [{ mask: re() }],
11580
+ "mask-size": [{ mask: I() }],
11568
11581
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
11569
11582
  "mask-image": [{ mask: [
11570
11583
  "none",
@@ -11595,7 +11608,7 @@ var Cx = Sx(), wx = (e) => {
11595
11608
  vC,
11596
11609
  fC
11597
11610
  ] }],
11598
- "drop-shadow-color": [{ "drop-shadow": P() }],
11611
+ "drop-shadow-color": [{ "drop-shadow": F() }],
11599
11612
  grayscale: [{ grayscale: [
11600
11613
  "",
11601
11614
  Y,
@@ -11755,9 +11768,9 @@ var Cx = Sx(), wx = (e) => {
11755
11768
  Z,
11756
11769
  X
11757
11770
  ] }],
11758
- accent: [{ accent: P() }],
11771
+ accent: [{ accent: F() }],
11759
11772
  appearance: [{ appearance: ["none", "auto"] }],
11760
- "caret-color": [{ caret: P() }],
11773
+ "caret-color": [{ caret: F() }],
11761
11774
  "color-scheme": [{ scheme: [
11762
11775
  "normal",
11763
11776
  "dark",
@@ -11815,8 +11828,8 @@ var Cx = Sx(), wx = (e) => {
11815
11828
  "x"
11816
11829
  ] }],
11817
11830
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
11818
- "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
11819
- "scrollbar-track-color": [{ "scrollbar-track": P() }],
11831
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
11832
+ "scrollbar-track-color": [{ "scrollbar-track": F() }],
11820
11833
  "scrollbar-gutter": [{ "scrollbar-gutter": [
11821
11834
  "auto",
11822
11835
  "stable",
@@ -11893,14 +11906,14 @@ var Cx = Sx(), wx = (e) => {
11893
11906
  Z,
11894
11907
  X
11895
11908
  ] }],
11896
- fill: [{ fill: ["none", ...P()] }],
11909
+ fill: [{ fill: ["none", ...F()] }],
11897
11910
  "stroke-w": [{ stroke: [
11898
11911
  Y,
11899
11912
  pC,
11900
11913
  oC,
11901
11914
  sC
11902
11915
  ] }],
11903
- stroke: [{ stroke: ["none", ...P()] }],
11916
+ stroke: [{ stroke: ["none", ...F()] }],
11904
11917
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
11905
11918
  },
11906
11919
  conflictingClassGroups: {
@@ -14718,22 +14731,22 @@ function mO(e) {
14718
14731
  ...n,
14719
14732
  today: c.today()
14720
14733
  });
14721
- let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: D, formatDay: O, formatMonthDropdown: ee, formatWeekNumber: k, formatWeekNumberHeader: A, formatWeekdayName: j, formatYearDropdown: M } = a, N = YD(n, c), { days: te, months: P, navStart: F, navEnd: ne, previousMonth: re, nextMonth: I, goToMonth: L } = N, R = qE(te, n, F, ne, c), { isSelected: ie, select: ae, selected: z } = lO(n, c) ?? {}, { blur: oe, focused: se, isFocusTarget: ce, moveFocus: le, setFocused: ue } = tO(n, N, R, ie ?? (() => !1), c), { labelDayButton: de, labelGridcell: fe, labelGrid: pe, labelMonthDropdown: me, labelNav: he, labelPrevious: ge, labelNext: B, labelWeekday: _e, labelWeekNumber: ve, labelWeekNumberHeader: ye, labelYearDropdown: be } = s, xe = u(() => OD(c, n.ISOWeek, n.broadcastCalendar, n.today), [
14734
+ let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: D, formatDay: O, formatMonthDropdown: k, formatWeekNumber: A, formatWeekNumberHeader: j, formatWeekdayName: M, formatYearDropdown: N } = a, P = YD(n, c), { days: ee, months: F, navStart: te, navEnd: ne, previousMonth: I, nextMonth: re, goToMonth: L } = P, R = qE(ee, n, te, ne, c), { isSelected: ie, select: ae, selected: z } = lO(n, c) ?? {}, { blur: oe, focused: se, isFocusTarget: ce, moveFocus: le, setFocused: ue } = tO(n, P, R, ie ?? (() => !1), c), { labelDayButton: de, labelGridcell: fe, labelGrid: pe, labelMonthDropdown: me, labelNav: he, labelPrevious: ge, labelNext: B, labelWeekday: _e, labelWeekNumber: ve, labelWeekNumberHeader: ye, labelYearDropdown: be } = s, xe = u(() => OD(c, n.ISOWeek, n.broadcastCalendar, n.today), [
14722
14735
  c,
14723
14736
  n.ISOWeek,
14724
14737
  n.broadcastCalendar,
14725
14738
  n.today
14726
14739
  ]), Se = m !== void 0 || v !== void 0, Ce = o(() => {
14727
- re && (L(re), w?.(re));
14740
+ I && (L(I), w?.(I));
14728
14741
  }, [
14729
- re,
14742
+ I,
14730
14743
  L,
14731
14744
  w
14732
14745
  ]), we = o(() => {
14733
- I && (L(I), C?.(I));
14746
+ re && (L(re), C?.(re));
14734
14747
  }, [
14735
14748
  L,
14736
- I,
14749
+ re,
14737
14750
  C
14738
14751
  ]), Te = o((e, t) => (n) => {
14739
14752
  n.preventDefault(), n.stopPropagation(), ue(e), !t.disabled && (ae?.(e.date, t, n), v?.(e.date, t, n));
@@ -14790,7 +14803,7 @@ function mO(e) {
14790
14803
  ]), Fe = XE(n), V = d(null);
14791
14804
  RD(V, !!n.animate, {
14792
14805
  classNames: f,
14793
- months: P,
14806
+ months: F,
14794
14807
  focused: se,
14795
14808
  dateLib: c
14796
14809
  });
@@ -14799,9 +14812,9 @@ function mO(e) {
14799
14812
  selected: z,
14800
14813
  select: ae,
14801
14814
  isSelected: ie,
14802
- months: P,
14803
- nextMonth: I,
14804
- previousMonth: re,
14815
+ months: F,
14816
+ nextMonth: re,
14817
+ previousMonth: I,
14805
14818
  goToMonth: L,
14806
14819
  getModifiers: R,
14807
14820
  components: i,
@@ -14833,9 +14846,9 @@ function mO(e) {
14833
14846
  "aria-label": he(),
14834
14847
  onPreviousClick: Ce,
14835
14848
  onNextClick: we,
14836
- previousMonth: re,
14837
- nextMonth: I
14838
- }), P.map((e, r) => t.createElement(i.Month, {
14849
+ previousMonth: I,
14850
+ nextMonth: re
14851
+ }), F.map((e, r) => t.createElement(i.Month, {
14839
14852
  "data-animated-month": n.animate ? "true" : void 0,
14840
14853
  className: f[$.Month],
14841
14854
  style: E?.[$.Month],
@@ -14845,13 +14858,13 @@ function mO(e) {
14845
14858
  }, h === "around" && !n.hideNavigation && r === 0 && t.createElement(i.PreviousMonthButton, {
14846
14859
  type: "button",
14847
14860
  className: f[$.PreviousMonthButton],
14848
- tabIndex: re ? void 0 : -1,
14849
- "aria-disabled": !re || void 0,
14850
- "aria-label": ge(re),
14861
+ tabIndex: I ? void 0 : -1,
14862
+ "aria-disabled": !I || void 0,
14863
+ "aria-label": ge(I),
14851
14864
  onClick: Ce,
14852
14865
  "data-animated-button": n.animate ? "true" : void 0
14853
14866
  }, t.createElement(i.Chevron, {
14854
- disabled: !re || void 0,
14867
+ disabled: !I || void 0,
14855
14868
  className: f[$.Chevron],
14856
14869
  orientation: n.dir === "rtl" ? "right" : "left"
14857
14870
  })), t.createElement(i.MonthCaption, {
@@ -14872,10 +14885,10 @@ function mO(e) {
14872
14885
  components: i,
14873
14886
  disabled: !!n.disableNavigation,
14874
14887
  onChange: je(e.date),
14875
- options: ED(e.date, F, ne, a, c),
14888
+ options: ED(e.date, te, ne, a, c),
14876
14889
  style: E?.[$.Dropdown],
14877
14890
  value: c.getMonth(e.date)
14878
- }) : t.createElement("span", { key: "month" }, ee(e.date, c)), o = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
14891
+ }) : t.createElement("span", { key: "month" }, k(e.date, c)), o = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
14879
14892
  key: "year",
14880
14893
  className: f[$.YearsDropdown],
14881
14894
  "aria-label": be(c.options),
@@ -14883,10 +14896,10 @@ function mO(e) {
14883
14896
  components: i,
14884
14897
  disabled: !!n.disableNavigation,
14885
14898
  onChange: Me(e.date),
14886
- options: kD(F, ne, a, c, !!n.reverseYears),
14899
+ options: kD(te, ne, a, c, !!n.reverseYears),
14887
14900
  style: E?.[$.Dropdown],
14888
14901
  value: c.getYear(e.date)
14889
- }) : t.createElement("span", { key: "year" }, M(e.date, c));
14902
+ }) : t.createElement("span", { key: "year" }, N(e.date, c));
14890
14903
  return c.getMonthYearOrder() === "year-first" ? [o, r] : [r, o];
14891
14904
  })(), t.createElement("span", {
14892
14905
  role: "status",
@@ -14910,13 +14923,13 @@ function mO(e) {
14910
14923
  }, D(e.date, c.options, c))), h === "around" && !n.hideNavigation && r === g - 1 && t.createElement(i.NextMonthButton, {
14911
14924
  type: "button",
14912
14925
  className: f[$.NextMonthButton],
14913
- tabIndex: I ? void 0 : -1,
14914
- "aria-disabled": !I || void 0,
14915
- "aria-label": B(I),
14926
+ tabIndex: re ? void 0 : -1,
14927
+ "aria-disabled": !re || void 0,
14928
+ "aria-label": B(re),
14916
14929
  onClick: we,
14917
14930
  "data-animated-button": n.animate ? "true" : void 0
14918
14931
  }, t.createElement(i.Chevron, {
14919
- disabled: !I || void 0,
14932
+ disabled: !re || void 0,
14920
14933
  className: f[$.Chevron],
14921
14934
  orientation: n.dir === "rtl" ? "left" : "right"
14922
14935
  })), r === g - 1 && h === "after" && !n.hideNavigation && t.createElement(i.Nav, {
@@ -14926,8 +14939,8 @@ function mO(e) {
14926
14939
  "aria-label": he(),
14927
14940
  onPreviousClick: Ce,
14928
14941
  onNextClick: we,
14929
- previousMonth: re,
14930
- nextMonth: I
14942
+ previousMonth: I,
14943
+ nextMonth: re
14931
14944
  }), t.createElement(i.MonthGrid, {
14932
14945
  role: "grid",
14933
14946
  "aria-multiselectable": m === "multiple" || m === "range",
@@ -14943,13 +14956,13 @@ function mO(e) {
14943
14956
  className: f[$.WeekNumberHeader],
14944
14957
  style: E?.[$.WeekNumberHeader],
14945
14958
  scope: "col"
14946
- }, A()), xe.map((e) => t.createElement(i.Weekday, {
14959
+ }, j()), xe.map((e) => t.createElement(i.Weekday, {
14947
14960
  "aria-label": _e(e, c.options, c),
14948
14961
  className: f[$.Weekday],
14949
14962
  key: String(e),
14950
14963
  style: E?.[$.Weekday],
14951
14964
  scope: "col"
14952
- }, j(e, c.options, c)))), t.createElement(i.Weeks, {
14965
+ }, M(e, c.options, c)))), t.createElement(i.Weeks, {
14953
14966
  "data-animated-weeks": n.animate ? "true" : void 0,
14954
14967
  className: f[$.Weeks],
14955
14968
  style: E?.[$.Weeks]
@@ -14965,7 +14978,7 @@ function mO(e) {
14965
14978
  className: f[$.WeekNumber],
14966
14979
  scope: "row",
14967
14980
  role: "rowheader"
14968
- }, k(e.weekNumber, c)), e.days.map((e) => {
14981
+ }, A(e.weekNumber, c)), e.days.map((e) => {
14969
14982
  let { date: r } = e, a = R(e);
14970
14983
  if (a[fE.focused] = !a.hidden && !!se?.isEqualTo(e), a[pE.selected] = ie?.(r) || a.selected, VE(z)) {
14971
14984
  let { from: e, to: t } = z;
@@ -16088,7 +16101,7 @@ var BA = [
16088
16101
  r.current.value = e, w.emit();
16089
16102
  }
16090
16103
  }, [d]), pj(() => {
16091
- C(6, k);
16104
+ C(6, A);
16092
16105
  }, []);
16093
16106
  let w = e.useMemo(() => ({
16094
16107
  subscribe: (e) => (s.current.add(e), () => s.current.delete(e)),
@@ -16096,15 +16109,15 @@ var BA = [
16096
16109
  setState: (e, t, n) => {
16097
16110
  var i, a, o;
16098
16111
  if (!Object.is(r.current[e], t)) {
16099
- if (r.current[e] = t, e === "search") ee(), D(), C(1, O);
16112
+ if (r.current[e] = t, e === "search") k(), D(), C(1, O);
16100
16113
  else if (e === "value") {
16101
16114
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
16102
16115
  let e = document.getElementById(x);
16103
16116
  e ? e.focus() : (i = document.getElementById(y)) == null || i.focus();
16104
16117
  }
16105
16118
  if (C(7, () => {
16106
- r.current.selectedItemId = A()?.id, w.emit();
16107
- }), n || C(5, k), c.current?.value !== void 0) {
16119
+ r.current.selectedItemId = j()?.id, w.emit();
16120
+ }), n || C(5, A), c.current?.value !== void 0) {
16108
16121
  let e = t ?? "";
16109
16122
  (o = (a = c.current).onValueChange) == null || o.call(a, e);
16110
16123
  return;
@@ -16126,12 +16139,12 @@ var BA = [
16126
16139
  }));
16127
16140
  },
16128
16141
  item: (e, t) => (i.current.add(e), t && (a.current.has(t) ? a.current.get(t).add(e) : a.current.set(t, /* @__PURE__ */ new Set([e]))), C(3, () => {
16129
- ee(), D(), r.current.value || O(), w.emit();
16142
+ k(), D(), r.current.value || O(), w.emit();
16130
16143
  }), () => {
16131
16144
  o.current.delete(e), i.current.delete(e), r.current.filtered.items.delete(e);
16132
- let t = A();
16145
+ let t = j();
16133
16146
  C(4, () => {
16134
- ee(), t?.getAttribute("id") === e && O(), w.emit();
16147
+ k(), t?.getAttribute("id") === e && O(), w.emit();
16135
16148
  });
16136
16149
  }),
16137
16150
  group: (e) => (a.current.has(e) || a.current.set(e, /* @__PURE__ */ new Set()), () => {
@@ -16160,7 +16173,7 @@ var BA = [
16160
16173
  }), t.push([n, i]);
16161
16174
  });
16162
16175
  let n = S.current;
16163
- j().sort((t, n) => {
16176
+ M().sort((t, n) => {
16164
16177
  let r = t.getAttribute("id"), i = n.getAttribute("id");
16165
16178
  return (e.get(i) ?? 0) - (e.get(r) ?? 0);
16166
16179
  }).forEach((e) => {
@@ -16172,10 +16185,10 @@ var BA = [
16172
16185
  });
16173
16186
  }
16174
16187
  function O() {
16175
- let e = j().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(qA);
16188
+ let e = M().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(qA);
16176
16189
  w.setState("value", e || void 0);
16177
16190
  }
16178
- function ee() {
16191
+ function k() {
16179
16192
  if (!r.current.search || c.current.shouldFilter === !1) {
16180
16193
  r.current.filtered.count = i.current.size;
16181
16194
  return;
@@ -16192,35 +16205,35 @@ var BA = [
16192
16205
  }
16193
16206
  r.current.filtered.count = e;
16194
16207
  }
16195
- function k() {
16208
+ function A() {
16196
16209
  var e;
16197
- let t = A();
16210
+ let t = j();
16198
16211
  t && (t.parentElement?.firstChild === t && ((e = t.closest(VA)?.querySelector(UA)) == null || e.scrollIntoView({ block: "nearest" })), t.scrollIntoView({ block: "nearest" }));
16199
16212
  }
16200
- function A() {
16213
+ function j() {
16201
16214
  return S.current?.querySelector(`${WA}[aria-selected="true"]`);
16202
16215
  }
16203
- function j() {
16216
+ function M() {
16204
16217
  return Array.from(S.current?.querySelectorAll(GA) || []);
16205
16218
  }
16206
- function M(e) {
16207
- let t = j()[e];
16219
+ function N(e) {
16220
+ let t = M()[e];
16208
16221
  t && w.setState("value", t.getAttribute(qA));
16209
16222
  }
16210
- function N(e) {
16223
+ function P(e) {
16211
16224
  var t;
16212
- let n = A(), r = j(), i = r.findIndex((e) => e === n), a = r[i + e];
16225
+ let n = j(), r = M(), i = r.findIndex((e) => e === n), a = r[i + e];
16213
16226
  (t = c.current) != null && t.loop && (a = i + e < 0 ? r[r.length - 1] : i + e === r.length ? r[0] : r[i + e]), a && w.setState("value", a.getAttribute(qA));
16214
16227
  }
16215
- function te(e) {
16216
- let t = A()?.closest(VA), n;
16228
+ function ee(e) {
16229
+ let t = j()?.closest(VA), n;
16217
16230
  for (; t && !n;) t = e > 0 ? uj(t, VA) : dj(t, VA), n = t?.querySelector(GA);
16218
- n ? w.setState("value", n.getAttribute(qA)) : N(e);
16231
+ n ? w.setState("value", n.getAttribute(qA)) : P(e);
16219
16232
  }
16220
- let P = () => M(j().length - 1), F = (e) => {
16221
- e.preventDefault(), e.metaKey ? P() : e.altKey ? te(1) : N(1);
16233
+ let F = () => N(M().length - 1), te = (e) => {
16234
+ e.preventDefault(), e.metaKey ? F() : e.altKey ? ee(1) : P(1);
16222
16235
  }, ne = (e) => {
16223
- e.preventDefault(), e.metaKey ? M(0) : e.altKey ? te(-1) : N(-1);
16236
+ e.preventDefault(), e.metaKey ? N(0) : e.altKey ? ee(-1) : P(-1);
16224
16237
  };
16225
16238
  return e.createElement(BA.div, {
16226
16239
  ref: n,
@@ -16234,10 +16247,10 @@ var BA = [
16234
16247
  if (!(e.defaultPrevented || n)) switch (e.key) {
16235
16248
  case "n":
16236
16249
  case "j":
16237
- _ && e.ctrlKey && F(e);
16250
+ _ && e.ctrlKey && te(e);
16238
16251
  break;
16239
16252
  case "ArrowDown":
16240
- F(e);
16253
+ te(e);
16241
16254
  break;
16242
16255
  case "p":
16243
16256
  case "k":
@@ -16247,14 +16260,14 @@ var BA = [
16247
16260
  ne(e);
16248
16261
  break;
16249
16262
  case "Home":
16250
- e.preventDefault(), M(0);
16263
+ e.preventDefault(), N(0);
16251
16264
  break;
16252
16265
  case "End":
16253
- e.preventDefault(), P();
16266
+ e.preventDefault(), F();
16254
16267
  break;
16255
16268
  case "Enter": {
16256
16269
  e.preventDefault();
16257
- let t = A();
16270
+ let t = j();
16258
16271
  if (t) {
16259
16272
  let e = new Event(KA);
16260
16273
  t.dispatchEvent(e);
@@ -16726,9 +16739,9 @@ function Kj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
16726
16739
  },
16727
16740
  className: J("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
16728
16741
  children: [
16729
- h === "start" && /* @__PURE__ */ _(I, { className: "ttw:mr-2 ttw:size-4" }),
16742
+ h === "start" && /* @__PURE__ */ _(re, { className: "ttw:mr-2 ttw:size-4" }),
16730
16743
  t ? Wj(t) : r,
16731
- h === "end" && /* @__PURE__ */ _(I, { className: "ttw:ml-auto ttw:size-4" })
16744
+ h === "end" && /* @__PURE__ */ _(re, { className: "ttw:ml-auto ttw:size-4" })
16732
16745
  ]
16733
16746
  })
16734
16747
  }), /* @__PURE__ */ _($C, {