@voxel51/voodo 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as T, Fragment as Ss, jsxs as Me } from "react/jsx-runtime";
1
+ import { jsx as O, Fragment as Ss, jsxs as Me } from "react/jsx-runtime";
2
2
  import * as x from "react";
3
3
  import y, { useRef as z, useCallback as Z, useEffect as oe, useState as ae, useMemo as ee, useLayoutEffect as Io, useContext as Ce, createContext as _e, forwardRef as rp, isValidElement as Es, cloneElement as Ya, createElement as O1, Fragment as Br, useId as We, useSyncExternalStore as op, useReducer as ks, createRef as Wn, Component as st, memo as ap } from "react";
4
4
  import * as ba from "react-dom";
@@ -184,7 +184,7 @@ const Ca = {
184
184
  children: n,
185
185
  className: t,
186
186
  ...o
187
- }) => /* @__PURE__ */ T(
187
+ }) => /* @__PURE__ */ O(
188
188
  "span",
189
189
  {
190
190
  className: A(we(r), Ht(e), t),
@@ -207,7 +207,7 @@ const dp = {
207
207
  children: r,
208
208
  open: n,
209
209
  ...t
210
- }) => /* @__PURE__ */ T(Ss, { children: n && /* @__PURE__ */ T("div", { className: A("fixed", "z-9999", dp[e]), ...t, children: r }) });
210
+ }) => /* @__PURE__ */ O(Ss, { children: n && /* @__PURE__ */ O("div", { className: A("fixed", "z-9999", dp[e]), ...t, children: r }) });
211
211
  Ts.displayName = "ToastContainer";
212
212
  const fp = {
213
213
  [Oe.None]: "rounded-none",
@@ -455,14 +455,14 @@ const pp = (e, r) => {
455
455
  }
456
456
  m = !1;
457
457
  }
458
- const b = p.length === 0 ? "" : p.length === 1 ? p[0] : a(p).join(":"), C = f ? b + Ki : b, D = C + g;
458
+ const C = p.length === 0 ? "" : p.length === 1 ? p[0] : a(p).join(":"), b = f ? C + Ki : C, D = b + g;
459
459
  if (i.indexOf(D) > -1)
460
460
  continue;
461
461
  i.push(D);
462
462
  const w = o(g, m);
463
463
  for (let E = 0; E < w.length; ++E) {
464
464
  const k = w[E];
465
- i.push(C + k);
465
+ i.push(b + k);
466
466
  }
467
467
  l = u + (l.length > 0 ? " " + l : l);
468
468
  }
@@ -507,7 +507,7 @@ const pp = (e, r) => {
507
507
  const t = $1.exec(e);
508
508
  return t ? t[1] ? r(t[1]) : n : !1;
509
509
  }, Y1 = (e) => e === "position" || e === "percentage", V1 = (e) => e === "image" || e === "url", B1 = (e) => e === "length" || e === "size" || e === "bg-size", W1 = (e) => e === "length", Qp = (e) => e === "number", Xp = (e) => e === "family-name", z1 = (e) => e === "shadow", Jp = () => {
510
- const e = Qe("color"), r = Qe("font"), n = Qe("text"), t = Qe("font-weight"), o = Qe("tracking"), a = Qe("leading"), i = Qe("breakpoint"), s = Qe("container"), l = Qe("spacing"), c = Qe("radius"), u = Qe("shadow"), d = Qe("inset-shadow"), p = Qe("text-shadow"), f = Qe("drop-shadow"), h = Qe("blur"), v = Qe("perspective"), m = Qe("aspect"), g = Qe("ease"), b = Qe("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
510
+ const e = Qe("color"), r = Qe("font"), n = Qe("text"), t = Qe("font-weight"), o = Qe("tracking"), a = Qe("leading"), i = Qe("breakpoint"), s = Qe("container"), l = Qe("spacing"), c = Qe("radius"), u = Qe("shadow"), d = Qe("inset-shadow"), p = Qe("text-shadow"), f = Qe("drop-shadow"), h = Qe("blur"), v = Qe("perspective"), m = Qe("aspect"), g = Qe("ease"), C = Qe("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
511
511
  "center",
512
512
  "top",
513
513
  "bottom",
@@ -525,7 +525,7 @@ const pp = (e, r) => {
525
525
  "bottom-left",
526
526
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
527
527
  "left-bottom"
528
- ], w = () => [...D(), X, Q], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], S = () => [X, Q, l], _ = () => [Mr, "full", "auto", ...S()], O = () => [Rn, "none", "subgrid", X, Q], P = () => ["auto", {
528
+ ], w = () => [...D(), X, Q], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], S = () => [X, Q, l], T = () => [Mr, "full", "auto", ...S()], _ = () => [Rn, "none", "subgrid", X, Q], P = () => ["auto", {
529
529
  span: ["full", Rn, X, Q]
530
530
  }, Rn, X, Q], M = () => [Rn, "auto", X, Q], N = () => ["auto", "min", "max", "fr", X, Q], L = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...S()], Y = () => [Mr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], R = () => [e, X, Q], q = () => [...D(), Bl, Vl, {
531
531
  position: [X, Q]
@@ -601,14 +601,14 @@ const pp = (e, r) => {
601
601
  * @see https://tailwindcss.com/docs/break-after
602
602
  */
603
603
  "break-after": [{
604
- "break-after": C()
604
+ "break-after": b()
605
605
  }],
606
606
  /**
607
607
  * Break Before
608
608
  * @see https://tailwindcss.com/docs/break-before
609
609
  */
610
610
  "break-before": [{
611
- "break-before": C()
611
+ "break-before": b()
612
612
  }],
613
613
  /**
614
614
  * Break Inside
@@ -726,63 +726,63 @@ const pp = (e, r) => {
726
726
  * @see https://tailwindcss.com/docs/top-right-bottom-left
727
727
  */
728
728
  inset: [{
729
- inset: _()
729
+ inset: T()
730
730
  }],
731
731
  /**
732
732
  * Right / Left
733
733
  * @see https://tailwindcss.com/docs/top-right-bottom-left
734
734
  */
735
735
  "inset-x": [{
736
- "inset-x": _()
736
+ "inset-x": T()
737
737
  }],
738
738
  /**
739
739
  * Top / Bottom
740
740
  * @see https://tailwindcss.com/docs/top-right-bottom-left
741
741
  */
742
742
  "inset-y": [{
743
- "inset-y": _()
743
+ "inset-y": T()
744
744
  }],
745
745
  /**
746
746
  * Start
747
747
  * @see https://tailwindcss.com/docs/top-right-bottom-left
748
748
  */
749
749
  start: [{
750
- start: _()
750
+ start: T()
751
751
  }],
752
752
  /**
753
753
  * End
754
754
  * @see https://tailwindcss.com/docs/top-right-bottom-left
755
755
  */
756
756
  end: [{
757
- end: _()
757
+ end: T()
758
758
  }],
759
759
  /**
760
760
  * Top
761
761
  * @see https://tailwindcss.com/docs/top-right-bottom-left
762
762
  */
763
763
  top: [{
764
- top: _()
764
+ top: T()
765
765
  }],
766
766
  /**
767
767
  * Right
768
768
  * @see https://tailwindcss.com/docs/top-right-bottom-left
769
769
  */
770
770
  right: [{
771
- right: _()
771
+ right: T()
772
772
  }],
773
773
  /**
774
774
  * Bottom
775
775
  * @see https://tailwindcss.com/docs/top-right-bottom-left
776
776
  */
777
777
  bottom: [{
778
- bottom: _()
778
+ bottom: T()
779
779
  }],
780
780
  /**
781
781
  * Left
782
782
  * @see https://tailwindcss.com/docs/top-right-bottom-left
783
783
  */
784
784
  left: [{
785
- left: _()
785
+ left: T()
786
786
  }],
787
787
  /**
788
788
  * Visibility
@@ -853,7 +853,7 @@ const pp = (e, r) => {
853
853
  * @see https://tailwindcss.com/docs/grid-template-columns
854
854
  */
855
855
  "grid-cols": [{
856
- "grid-cols": O()
856
+ "grid-cols": _()
857
857
  }],
858
858
  /**
859
859
  * Grid Column Start / End
@@ -881,7 +881,7 @@ const pp = (e, r) => {
881
881
  * @see https://tailwindcss.com/docs/grid-template-rows
882
882
  */
883
883
  "grid-rows": [{
884
- "grid-rows": O()
884
+ "grid-rows": _()
885
885
  }],
886
886
  /**
887
887
  * Grid Row Start / End
@@ -2464,7 +2464,7 @@ const pp = (e, r) => {
2464
2464
  * @see https://tailwindcss.com/docs/animation
2465
2465
  */
2466
2466
  animate: [{
2467
- animate: ["none", b, X, Q]
2467
+ animate: ["none", C, X, Q]
2468
2468
  }],
2469
2469
  // ------------------
2470
2470
  // --- Transforms ---
@@ -2984,7 +2984,7 @@ const pp = (e, r) => {
2984
2984
  open: o,
2985
2985
  variant: a = Ie.Primary,
2986
2986
  ...i
2987
- }) => /* @__PURE__ */ T(Ts, { open: o, anchor: e, children: /* @__PURE__ */ Me(
2987
+ }) => /* @__PURE__ */ O(Ts, { open: o, anchor: e, children: /* @__PURE__ */ Me(
2988
2988
  "div",
2989
2989
  {
2990
2990
  className: de(
@@ -3000,8 +3000,8 @@ const pp = (e, r) => {
3000
3000
  ),
3001
3001
  ...i,
3002
3002
  children: [
3003
- n && /* @__PURE__ */ T(et, { className: "size-5", color: Al(a), children: /* @__PURE__ */ T(n, {}) }),
3004
- t && /* @__PURE__ */ T(et, { color: Al(a), children: t })
3003
+ n && /* @__PURE__ */ O(et, { className: "size-5", color: Al(a), children: /* @__PURE__ */ O(n, {}) }),
3004
+ t && /* @__PURE__ */ O(et, { color: Al(a), children: t })
3005
3005
  ]
3006
3006
  }
3007
3007
  ) });
@@ -3369,8 +3369,8 @@ function jt(e) {
3369
3369
  if (s.pointerType = m, o || m === "touch" || s.isHovered || !v.currentTarget.contains(v.target)) return;
3370
3370
  s.isHovered = !0;
3371
3371
  let g = v.currentTarget;
3372
- s.target = g, l(Gn(v.target), "pointerover", (b) => {
3373
- s.isHovered && s.target && !U1(s.target, b.target) && f(b, b.pointerType);
3372
+ s.target = g, l(Gn(v.target), "pointerover", (C) => {
3373
+ s.isHovered && s.target && !U1(s.target, C.target) && f(C, C.pointerType);
3374
3374
  }, {
3375
3375
  capture: !0
3376
3376
  }), r && r({
@@ -3925,10 +3925,10 @@ function J3(e, r) {
3925
3925
  if (!(v.target !== v.currentTarget && Z3(v.target)) && (es(m) && v.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(v), es(m))) {
3926
3926
  let g = document.getElementById(m.htmlFor);
3927
3927
  if (g) {
3928
- let b = g.getAttribute("disabled");
3929
- if (b === "true" || b === "") return;
3930
- let C = g.getAttribute("aria-disabled");
3928
+ let C = g.getAttribute("disabled");
3931
3929
  if (C === "true" || C === "") return;
3930
+ let b = g.getAttribute("aria-disabled");
3931
+ if (b === "true" || b === "") return;
3932
3932
  (Da(g) && (g.type === "file" || g.type === "radio" || g.type === "checkbox") || g.role === "radio" || g.role === "checkbox" || g.role === "switch") && g.click(), g.focus({ preventScroll: !0 });
3933
3933
  }
3934
3934
  }
@@ -3937,19 +3937,19 @@ function J3(e, r) {
3937
3937
  }
3938
3938
  let e5 = De(J3), gr = Object.assign(e5, {}), t5 = "span";
3939
3939
  function n5(e, r) {
3940
- let n = We(), t = vr(), o = $t(), { id: a = t || `headlessui-checkbox-${n}`, disabled: i = o || !1, autoFocus: s = !1, checked: l, defaultChecked: c, onChange: u, name: d, value: p, form: f, indeterminate: h = !1, tabIndex: v = 0, ...m } = e, g = Wa(c), [b, C] = Ba(l, u, g ?? !1), D = kn(), w = Ur(), E = Qn(), [k, S] = ae(!1), _ = U(() => {
3941
- S(!0), C?.(!b), E.nextFrame(() => {
3940
+ let n = We(), t = vr(), o = $t(), { id: a = t || `headlessui-checkbox-${n}`, disabled: i = o || !1, autoFocus: s = !1, checked: l, defaultChecked: c, onChange: u, name: d, value: p, form: f, indeterminate: h = !1, tabIndex: v = 0, ...m } = e, g = Wa(c), [C, b] = Ba(l, u, g ?? !1), D = kn(), w = Ur(), E = Qn(), [k, S] = ae(!1), T = U(() => {
3941
+ S(!0), b?.(!C), E.nextFrame(() => {
3942
3942
  S(!1);
3943
3943
  });
3944
- }), O = U((V) => {
3944
+ }), _ = U((V) => {
3945
3945
  if (jn(V.currentTarget)) return V.preventDefault();
3946
- V.preventDefault(), _();
3946
+ V.preventDefault(), T();
3947
3947
  }), P = U((V) => {
3948
- V.key === se.Space ? (V.preventDefault(), _()) : V.key === se.Enter && As(V.currentTarget);
3949
- }), M = U((V) => V.preventDefault()), { isFocusVisible: N, focusProps: L } = Ft({ autoFocus: s }), { isHovered: $, hoverProps: H } = jt({ isDisabled: i }), { pressed: Y, pressProps: R } = jr({ disabled: i }), q = gt({ ref: r, id: a, role: "checkbox", "aria-checked": h ? "mixed" : b ? "true" : "false", "aria-labelledby": D, "aria-describedby": w, "aria-disabled": i ? !0 : void 0, indeterminate: h ? "true" : void 0, tabIndex: i ? void 0 : v, onKeyUp: i ? void 0 : P, onKeyPress: i ? void 0 : M, onClick: i ? void 0 : O }, L, H, R), K = Ne({ checked: b, disabled: i, hover: $, focus: N, active: Y, indeterminate: h, changing: k, autofocus: s }), le = Z(() => {
3950
- if (g !== void 0) return C?.(g);
3951
- }, [C, g]), F = xe();
3952
- return y.createElement(y.Fragment, null, d != null && y.createElement(za, { disabled: i, data: { [d]: p || "on" }, overrides: { type: "checkbox", checked: b }, form: f, onReset: le }), F({ ourProps: q, theirProps: m, slot: K, defaultTag: t5, name: "Checkbox" }));
3948
+ V.key === se.Space ? (V.preventDefault(), T()) : V.key === se.Enter && As(V.currentTarget);
3949
+ }), M = U((V) => V.preventDefault()), { isFocusVisible: N, focusProps: L } = Ft({ autoFocus: s }), { isHovered: $, hoverProps: H } = jt({ isDisabled: i }), { pressed: Y, pressProps: R } = jr({ disabled: i }), q = gt({ ref: r, id: a, role: "checkbox", "aria-checked": h ? "mixed" : C ? "true" : "false", "aria-labelledby": D, "aria-describedby": w, "aria-disabled": i ? !0 : void 0, indeterminate: h ? "true" : void 0, tabIndex: i ? void 0 : v, onKeyUp: i ? void 0 : P, onKeyPress: i ? void 0 : M, onClick: i ? void 0 : _ }, L, H, R), K = Ne({ checked: C, disabled: i, hover: $, focus: N, active: Y, indeterminate: h, changing: k, autofocus: s }), le = Z(() => {
3950
+ if (g !== void 0) return b?.(g);
3951
+ }, [b, g]), F = xe();
3952
+ return y.createElement(y.Fragment, null, d != null && y.createElement(za, { disabled: i, data: { [d]: p || "on" }, overrides: { type: "checkbox", checked: C }, form: f, onReset: le }), F({ ourProps: q, theirProps: m, slot: K, defaultTag: t5, name: "Checkbox" }));
3953
3953
  }
3954
3954
  let r5 = De(n5), o5 = _e(() => {
3955
3955
  });
@@ -3968,10 +3968,10 @@ function Pr(e, r, n) {
3968
3968
  t = d;
3969
3969
  let f;
3970
3970
  if (n.key && ((s = n.debug) != null && s.call(n)) && (f = Date.now()), o = r(...d), n.key && ((l = n.debug) != null && l.call(n))) {
3971
- const h = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - f) * 100) / 100, m = v / 16, g = (b, C) => {
3972
- for (b = String(b); b.length < C; )
3973
- b = " " + b;
3974
- return b;
3971
+ const h = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - f) * 100) / 100, m = v / 16, g = (C, b) => {
3972
+ for (C = String(C); C.length < b; )
3973
+ C = " " + C;
3974
+ return C;
3975
3975
  };
3976
3976
  console.info(
3977
3977
  `%c⏱ ${g(v, 5)} /${g(h, 5)} ms`,
@@ -4664,18 +4664,18 @@ function M5() {
4664
4664
  function() {
4665
4665
  function m(w) {
4666
4666
  if (!g) {
4667
- if (g = !0, b = w, w = d(w), p !== void 0 && h.hasValue) {
4667
+ if (g = !0, C = w, w = d(w), p !== void 0 && h.hasValue) {
4668
4668
  var E = h.value;
4669
4669
  if (p(E, w))
4670
- return C = E;
4670
+ return b = E;
4671
4671
  }
4672
- return C = w;
4672
+ return b = w;
4673
4673
  }
4674
- if (E = C, n(b, w)) return E;
4674
+ if (E = b, n(C, w)) return E;
4675
4675
  var k = d(w);
4676
- return p !== void 0 && p(E, k) ? (b = w, E) : (b = w, C = k);
4676
+ return p !== void 0 && p(E, k) ? (C = w, E) : (C = w, b = k);
4677
4677
  }
4678
- var g = !1, b, C, D = u === void 0 ? null : u;
4678
+ var g = !1, C, b, D = u === void 0 ? null : u;
4679
4679
  return [
4680
4680
  function() {
4681
4681
  return m(c());
@@ -4715,19 +4715,19 @@ function P5() {
4715
4715
  function() {
4716
4716
  function m(w) {
4717
4717
  if (!g) {
4718
- if (g = !0, b = w, w = d(w), p !== void 0 && h.hasValue) {
4718
+ if (g = !0, C = w, w = d(w), p !== void 0 && h.hasValue) {
4719
4719
  var E = h.value;
4720
4720
  if (p(E, w))
4721
- return C = E;
4721
+ return b = E;
4722
4722
  }
4723
- return C = w;
4723
+ return b = w;
4724
4724
  }
4725
- if (E = C, n(b, w))
4725
+ if (E = b, n(C, w))
4726
4726
  return E;
4727
4727
  var k = d(w);
4728
- return p !== void 0 && p(E, k) ? (b = w, E) : (b = w, C = k);
4728
+ return p !== void 0 && p(E, k) ? (C = w, E) : (C = w, b = k);
4729
4729
  }
4730
- var g = !1, b, C, D = u === void 0 ? null : u;
4730
+ var g = !1, C, b, D = u === void 0 ? null : u;
4731
4731
  return [
4732
4732
  function() {
4733
4733
  return m(c());
@@ -5529,8 +5529,8 @@ const S6 = async (e, r, n) => {
5529
5529
  name: m,
5530
5530
  fn: g
5531
5531
  } = s[v], {
5532
- x: b,
5533
- y: C,
5532
+ x: C,
5533
+ y: b,
5534
5534
  data: D,
5535
5535
  reset: w
5536
5536
  } = await g({
@@ -5547,7 +5547,7 @@ const S6 = async (e, r, n) => {
5547
5547
  floating: r
5548
5548
  }
5549
5549
  });
5550
- u = b ?? u, d = C ?? d, f = {
5550
+ u = C ?? u, d = b ?? d, f = {
5551
5551
  ...f,
5552
5552
  [m]: {
5553
5553
  ...f[m],
@@ -5591,12 +5591,12 @@ async function ei(e, r) {
5591
5591
  boundary: c,
5592
5592
  rootBoundary: u,
5593
5593
  strategy: l
5594
- })), b = d === "floating" ? {
5594
+ })), C = d === "floating" ? {
5595
5595
  x: t,
5596
5596
  y: o,
5597
5597
  width: i.floating.width,
5598
5598
  height: i.floating.height
5599
- } : i.reference, C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), D = await (a.isElement == null ? void 0 : a.isElement(C)) ? await (a.getScale == null ? void 0 : a.getScale(C)) || {
5599
+ } : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), D = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
5600
5600
  x: 1,
5601
5601
  y: 1
5602
5602
  } : {
@@ -5604,10 +5604,10 @@ async function ei(e, r) {
5604
5604
  y: 1
5605
5605
  }, w = ka(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
5606
5606
  elements: s,
5607
- rect: b,
5608
- offsetParent: C,
5607
+ rect: C,
5608
+ offsetParent: b,
5609
5609
  strategy: l
5610
- }) : b);
5610
+ }) : C);
5611
5611
  return {
5612
5612
  top: (g.top - w.top + h.top) / D.y,
5613
5613
  bottom: (w.bottom - g.bottom + h.bottom) / D.y,
@@ -5636,10 +5636,10 @@ const E6 = (e) => ({
5636
5636
  const d = Au(u), p = {
5637
5637
  x: n,
5638
5638
  y: t
5639
- }, f = Zs(o), h = Us(f), v = await i.getDimensions(c), m = f === "y", g = m ? "top" : "left", b = m ? "bottom" : "right", C = m ? "clientHeight" : "clientWidth", D = a.reference[h] + a.reference[f] - p[f] - a.floating[h], w = p[f] - a.reference[f], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
5640
- let k = E ? E[C] : 0;
5641
- (!k || !await (i.isElement == null ? void 0 : i.isElement(E))) && (k = s.floating[C] || a.floating[h]);
5642
- const S = D / 2 - w / 2, _ = k / 2 - v[h] / 2 - 1, O = Dn(d[g], _), P = Dn(d[b], _), M = O, N = k - v[h] - P, L = k / 2 - v[h] / 2 + S, $ = as(M, L, N), H = !l.arrow && Gr(o) != null && L !== $ && a.reference[h] / 2 - (L < M ? O : P) - v[h] / 2 < 0, Y = H ? L < M ? L - M : L - N : 0;
5639
+ }, f = Zs(o), h = Us(f), v = await i.getDimensions(c), m = f === "y", g = m ? "top" : "left", C = m ? "bottom" : "right", b = m ? "clientHeight" : "clientWidth", D = a.reference[h] + a.reference[f] - p[f] - a.floating[h], w = p[f] - a.reference[f], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
5640
+ let k = E ? E[b] : 0;
5641
+ (!k || !await (i.isElement == null ? void 0 : i.isElement(E))) && (k = s.floating[b] || a.floating[h]);
5642
+ const S = D / 2 - w / 2, T = k / 2 - v[h] / 2 - 1, _ = Dn(d[g], T), P = Dn(d[C], T), M = _, N = k - v[h] - P, L = k / 2 - v[h] / 2 + S, $ = as(M, L, N), H = !l.arrow && Gr(o) != null && L !== $ && a.reference[h] / 2 - (L < M ? _ : P) - v[h] / 2 < 0, Y = H ? L < M ? L - M : L - N : 0;
5643
5643
  return {
5644
5644
  [f]: p[f] + Y,
5645
5645
  data: {
@@ -5676,41 +5676,41 @@ const E6 = (e) => ({
5676
5676
  } = br(e, r);
5677
5677
  if ((n = a.arrow) != null && n.alignmentOffset)
5678
5678
  return {};
5679
- const g = Zn(o), b = mn(s), C = Zn(s) === s, D = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = p || (C || !v ? [Ea(s)] : b6(s)), E = h !== "none";
5679
+ const g = Zn(o), C = mn(s), b = Zn(s) === s, D = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = p || (b || !v ? [Ea(s)] : b6(s)), E = h !== "none";
5680
5680
  !p && E && w.push(...x6(s, v, h, D));
5681
- const k = [s, ...w], S = await ei(r, m), _ = [];
5682
- let O = ((t = a.flip) == null ? void 0 : t.overflows) || [];
5683
- if (u && _.push(S[g]), d) {
5681
+ const k = [s, ...w], S = await ei(r, m), T = [];
5682
+ let _ = ((t = a.flip) == null ? void 0 : t.overflows) || [];
5683
+ if (u && T.push(S[g]), d) {
5684
5684
  const L = g6(o, i, D);
5685
- _.push(S[L[0]], S[L[1]]);
5685
+ T.push(S[L[0]], S[L[1]]);
5686
5686
  }
5687
- if (O = [...O, {
5687
+ if (_ = [..._, {
5688
5688
  placement: o,
5689
- overflows: _
5690
- }], !_.every((L) => L <= 0)) {
5689
+ overflows: T
5690
+ }], !T.every((L) => L <= 0)) {
5691
5691
  var P, M;
5692
5692
  const L = (((P = a.flip) == null ? void 0 : P.index) || 0) + 1, $ = k[L];
5693
- if ($ && (!(d === "alignment" ? b !== mn($) : !1) || // We leave the current main axis only if every placement on that axis
5693
+ if ($ && (!(d === "alignment" ? C !== mn($) : !1) || // We leave the current main axis only if every placement on that axis
5694
5694
  // overflows the main axis.
5695
- O.every((R) => mn(R.placement) === b ? R.overflows[0] > 0 : !0)))
5695
+ _.every((R) => mn(R.placement) === C ? R.overflows[0] > 0 : !0)))
5696
5696
  return {
5697
5697
  data: {
5698
5698
  index: L,
5699
- overflows: O
5699
+ overflows: _
5700
5700
  },
5701
5701
  reset: {
5702
5702
  placement: $
5703
5703
  }
5704
5704
  };
5705
- let H = (M = O.filter((Y) => Y.overflows[0] <= 0).sort((Y, R) => Y.overflows[1] - R.overflows[1])[0]) == null ? void 0 : M.placement;
5705
+ let H = (M = _.filter((Y) => Y.overflows[0] <= 0).sort((Y, R) => Y.overflows[1] - R.overflows[1])[0]) == null ? void 0 : M.placement;
5706
5706
  if (!H)
5707
5707
  switch (f) {
5708
5708
  case "bestFit": {
5709
5709
  var N;
5710
- const Y = (N = O.filter((R) => {
5710
+ const Y = (N = _.filter((R) => {
5711
5711
  if (E) {
5712
5712
  const q = mn(R.placement);
5713
- return q === b || // Create a bias to the `y` side axis due to horizontal
5713
+ return q === C || // Create a bias to the `y` side axis due to horizontal
5714
5714
  // reading directions favoring greater width.
5715
5715
  q === "y";
5716
5716
  }
@@ -5799,11 +5799,11 @@ const O6 = function(e) {
5799
5799
  fn: (m) => {
5800
5800
  let {
5801
5801
  x: g,
5802
- y: b
5802
+ y: C
5803
5803
  } = m;
5804
5804
  return {
5805
5805
  x: g,
5806
- y: b
5806
+ y: C
5807
5807
  };
5808
5808
  }
5809
5809
  },
@@ -5814,12 +5814,12 @@ const O6 = function(e) {
5814
5814
  }, u = await ei(r, l), d = mn(Zn(o)), p = Fu(d);
5815
5815
  let f = c[p], h = c[d];
5816
5816
  if (a) {
5817
- const m = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", b = f + u[m], C = f - u[g];
5818
- f = as(b, f, C);
5817
+ const m = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", C = f + u[m], b = f - u[g];
5818
+ f = as(C, f, b);
5819
5819
  }
5820
5820
  if (i) {
5821
- const m = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", b = h + u[m], C = h - u[g];
5822
- h = as(b, h, C);
5821
+ const m = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", C = h + u[m], b = h - u[g];
5822
+ h = as(C, h, b);
5823
5823
  }
5824
5824
  const v = s.fn({
5825
5825
  ...r,
@@ -5860,19 +5860,19 @@ const O6 = function(e) {
5860
5860
  } = a.floating;
5861
5861
  let m, g;
5862
5862
  d === "top" || d === "bottom" ? (m = d, g = p === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (g = d, m = p === "end" ? "top" : "bottom");
5863
- const b = v - u.top - u.bottom, C = h - u.left - u.right, D = Dn(v - u[m], b), w = Dn(h - u[g], C), E = !r.middlewareData.shift;
5863
+ const C = v - u.top - u.bottom, b = h - u.left - u.right, D = Dn(v - u[m], C), w = Dn(h - u[g], b), E = !r.middlewareData.shift;
5864
5864
  let k = D, S = w;
5865
- if ((n = r.middlewareData.shift) != null && n.enabled.x && (S = C), (t = r.middlewareData.shift) != null && t.enabled.y && (k = b), E && !p) {
5866
- const O = ft(u.left, 0), P = ft(u.right, 0), M = ft(u.top, 0), N = ft(u.bottom, 0);
5867
- f ? S = h - 2 * (O !== 0 || P !== 0 ? O + P : ft(u.left, u.right)) : k = v - 2 * (M !== 0 || N !== 0 ? M + N : ft(u.top, u.bottom));
5865
+ if ((n = r.middlewareData.shift) != null && n.enabled.x && (S = b), (t = r.middlewareData.shift) != null && t.enabled.y && (k = C), E && !p) {
5866
+ const _ = ft(u.left, 0), P = ft(u.right, 0), M = ft(u.top, 0), N = ft(u.bottom, 0);
5867
+ f ? S = h - 2 * (_ !== 0 || P !== 0 ? _ + P : ft(u.left, u.right)) : k = v - 2 * (M !== 0 || N !== 0 ? M + N : ft(u.top, u.bottom));
5868
5868
  }
5869
5869
  await l({
5870
5870
  ...r,
5871
5871
  availableWidth: S,
5872
5872
  availableHeight: k
5873
5873
  });
5874
- const _ = await i.getDimensions(s.floating);
5875
- return h !== _.width || v !== _.height ? {
5874
+ const T = await i.getDimensions(s.floating);
5875
+ return h !== T.width || v !== T.height ? {
5876
5876
  reset: {
5877
5877
  rects: !0
5878
5878
  }
@@ -5930,8 +5930,8 @@ function hr(e, r, n, t) {
5930
5930
  const p = Mt(a), f = t && Ze(t) ? Mt(t) : t;
5931
5931
  let h = p, v = os(h);
5932
5932
  for (; v && t && f !== h; ) {
5933
- const m = Rr(v), g = v.getBoundingClientRect(), b = It(v), C = g.left + (v.clientLeft + parseFloat(b.paddingLeft)) * m.x, D = g.top + (v.clientTop + parseFloat(b.paddingTop)) * m.y;
5934
- l *= m.x, c *= m.y, u *= m.x, d *= m.y, l += C, c += D, h = Mt(v), v = os(h);
5933
+ const m = Rr(v), g = v.getBoundingClientRect(), C = It(v), b = g.left + (v.clientLeft + parseFloat(C.paddingLeft)) * m.x, D = g.top + (v.clientTop + parseFloat(C.paddingTop)) * m.y;
5934
+ l *= m.x, c *= m.y, u *= m.x, d *= m.y, l += b, c += D, h = Mt(v), v = os(h);
5935
5935
  }
5936
5936
  }
5937
5937
  return ka({
@@ -6188,7 +6188,7 @@ function Z6(e, r) {
6188
6188
  } = c;
6189
6189
  if (s || r(), !p || !f)
6190
6190
  return;
6191
- const h = ta(d), v = ta(o.clientWidth - (u + p)), m = ta(o.clientHeight - (d + f)), g = ta(u), C = {
6191
+ const h = ta(d), v = ta(o.clientWidth - (u + p)), m = ta(o.clientHeight - (d + f)), g = ta(u), b = {
6192
6192
  rootMargin: -h + "px " + -v + "px " + -m + "px " + -g + "px",
6193
6193
  threshold: ft(0, Dn(1, l)) || 1
6194
6194
  };
@@ -6206,12 +6206,12 @@ function Z6(e, r) {
6206
6206
  }
6207
6207
  try {
6208
6208
  n = new IntersectionObserver(w, {
6209
- ...C,
6209
+ ...b,
6210
6210
  // Handle <iframe>s
6211
6211
  root: o.ownerDocument
6212
6212
  });
6213
6213
  } catch {
6214
- n = new IntersectionObserver(w, C);
6214
+ n = new IntersectionObserver(w, b);
6215
6215
  }
6216
6216
  n.observe(e);
6217
6217
  }
@@ -6234,10 +6234,10 @@ function zu(e, r, n, t) {
6234
6234
  const d = c && s ? Z6(c, n) : null;
6235
6235
  let p = -1, f = null;
6236
6236
  i && (f = new ResizeObserver((g) => {
6237
- let [b] = g;
6238
- b && b.target === c && f && (f.unobserve(r), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
6239
- var C;
6240
- (C = f) == null || C.observe(r);
6237
+ let [C] = g;
6238
+ C && C.target === c && f && (f.unobserve(r), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
6239
+ var b;
6240
+ (b = f) == null || b.observe(r);
6241
6241
  })), n();
6242
6242
  }), c && !l && f.observe(c), f.observe(r));
6243
6243
  let h, v = l ? hr(e) : null;
@@ -6248,8 +6248,8 @@ function zu(e, r, n, t) {
6248
6248
  }
6249
6249
  return n(), () => {
6250
6250
  var g;
6251
- u.forEach((b) => {
6252
- o && b.removeEventListener("scroll", n), a && b.removeEventListener("resize", n);
6251
+ u.forEach((C) => {
6252
+ o && C.removeEventListener("scroll", n), a && C.removeEventListener("resize", n);
6253
6253
  }), d?.(), (g = f) == null || g.disconnect(), f = null, l && cancelAnimationFrame(h);
6254
6254
  };
6255
6255
  }
@@ -6334,11 +6334,11 @@ function Uu(e) {
6334
6334
  isPositioned: !1
6335
6335
  }), [p, f] = x.useState(t);
6336
6336
  Ma(p, t) || f(t);
6337
- const [h, v] = x.useState(null), [m, g] = x.useState(null), b = x.useCallback((R) => {
6337
+ const [h, v] = x.useState(null), [m, g] = x.useState(null), C = x.useCallback((R) => {
6338
6338
  R !== E.current && (E.current = R, v(R));
6339
- }, []), C = x.useCallback((R) => {
6339
+ }, []), b = x.useCallback((R) => {
6340
6340
  R !== k.current && (k.current = R, g(R));
6341
- }, []), D = a || h, w = i || m, E = x.useRef(null), k = x.useRef(null), S = x.useRef(u), _ = l != null, O = Ti(l), P = Ti(o), M = Ti(c), N = x.useCallback(() => {
6341
+ }, []), D = a || h, w = i || m, E = x.useRef(null), k = x.useRef(null), S = x.useRef(u), T = l != null, _ = Ti(l), P = Ti(o), M = Ti(c), N = x.useCallback(() => {
6342
6342
  if (!E.current || !k.current)
6343
6343
  return;
6344
6344
  const R = {
@@ -6371,17 +6371,17 @@ function Uu(e) {
6371
6371
  L.current = !1;
6372
6372
  }), []), fa(() => {
6373
6373
  if (D && (E.current = D), w && (k.current = w), D && w) {
6374
- if (O.current)
6375
- return O.current(D, w, N);
6374
+ if (_.current)
6375
+ return _.current(D, w, N);
6376
6376
  N();
6377
6377
  }
6378
- }, [D, w, N, O, _]);
6378
+ }, [D, w, N, _, T]);
6379
6379
  const $ = x.useMemo(() => ({
6380
6380
  reference: E,
6381
6381
  floating: k,
6382
- setReference: b,
6383
- setFloating: C
6384
- }), [b, C]), H = x.useMemo(() => ({
6382
+ setReference: C,
6383
+ setFloating: b
6384
+ }), [C, b]), H = x.useMemo(() => ({
6385
6385
  reference: D,
6386
6386
  floating: w
6387
6387
  }), [D, w]), Y = x.useMemo(() => {
@@ -6578,17 +6578,17 @@ function y2(e) {
6578
6578
  reference: s
6579
6579
  }
6580
6580
  }
6581
- }), h = x.useCallback((C) => {
6582
- const D = Ze(C) ? {
6583
- getBoundingClientRect: () => C.getBoundingClientRect(),
6584
- contextElement: C
6585
- } : C;
6581
+ }), h = x.useCallback((b) => {
6582
+ const D = Ze(b) ? {
6583
+ getBoundingClientRect: () => b.getBoundingClientRect(),
6584
+ contextElement: b
6585
+ } : b;
6586
6586
  l(D), f.refs.setReference(D);
6587
- }, [f.refs]), v = x.useCallback((C) => {
6588
- (Ze(C) || C === null) && (d.current = C, i(C)), (Ze(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
6587
+ }, [f.refs]), v = x.useCallback((b) => {
6588
+ (Ze(b) || b === null) && (d.current = b, i(b)), (Ze(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
6589
6589
  // `null` to support `positionReference` + an unstable `reference`
6590
6590
  // callback ref.
6591
- C !== null && !Ze(C)) && f.refs.setReference(C);
6591
+ b !== null && !Ze(b)) && f.refs.setReference(b);
6592
6592
  }, [f.refs]), m = x.useMemo(() => ({
6593
6593
  ...f.refs,
6594
6594
  setReference: v,
@@ -6597,7 +6597,7 @@ function y2(e) {
6597
6597
  }), [f.refs, v, h]), g = x.useMemo(() => ({
6598
6598
  ...f.elements,
6599
6599
  domReference: u
6600
- }), [f.elements, u]), b = x.useMemo(() => ({
6600
+ }), [f.elements, u]), C = x.useMemo(() => ({
6601
6601
  ...f,
6602
6602
  ...t,
6603
6603
  refs: m,
@@ -6605,15 +6605,15 @@ function y2(e) {
6605
6605
  nodeId: r
6606
6606
  }), [f, m, g, r, t]);
6607
6607
  return ss(() => {
6608
- t.dataRef.current.floatingContext = b;
6609
- const C = p?.nodesRef.current.find((D) => D.id === r);
6610
- C && (C.context = b);
6608
+ t.dataRef.current.floatingContext = C;
6609
+ const b = p?.nodesRef.current.find((D) => D.id === r);
6610
+ b && (b.context = C);
6611
6611
  }), x.useMemo(() => ({
6612
6612
  ...f,
6613
- context: b,
6613
+ context: C,
6614
6614
  refs: m,
6615
6615
  elements: g
6616
- }), [f, m, g, b]);
6616
+ }), [f, m, g, C]);
6617
6617
  }
6618
6618
  const Dc = "active", Sc = "selected";
6619
6619
  function _i(e, r, n) {
@@ -6705,22 +6705,22 @@ const x2 = (e) => ({
6705
6705
  elements: {
6706
6706
  floating: p
6707
6707
  }
6708
- } = r, f = n.current[i], h = c?.current || p, v = p.clientTop || h.clientTop, m = p.clientTop !== 0, g = h.clientTop !== 0, b = p === h;
6708
+ } = r, f = n.current[i], h = c?.current || p, v = p.clientTop || h.clientTop, m = p.clientTop !== 0, g = h.clientTop !== 0, C = p === h;
6709
6709
  if (process.env.NODE_ENV !== "production" && (r.placement.startsWith("bottom") || d2('`placement` side must be "bottom" when using the `inner`', "middleware.")), !f)
6710
6710
  return {};
6711
- const C = {
6711
+ const b = {
6712
6712
  ...r,
6713
6713
  ...await Gs(-f.offsetTop - p.clientTop - d.reference.height / 2 - f.offsetHeight / 2 - a).fn(r)
6714
- }, D = await Oi(Ec(C, h.scrollHeight + v + p.clientTop), u), w = await Oi(C, {
6714
+ }, D = await Oi(Ec(b, h.scrollHeight + v + p.clientTop), u), w = await Oi(b, {
6715
6715
  ...u,
6716
6716
  elementContext: "reference"
6717
- }), E = ft(0, D.top), k = C.y + E, O = (h.scrollHeight > h.clientHeight ? (P) => P : So)(ft(0, h.scrollHeight + (m && b || g ? v * 2 : 0) - E - ft(0, D.bottom)));
6718
- if (h.style.maxHeight = O + "px", h.scrollTop = E, o) {
6717
+ }), E = ft(0, D.top), k = b.y + E, _ = (h.scrollHeight > h.clientHeight ? (P) => P : So)(ft(0, h.scrollHeight + (m && C || g ? v * 2 : 0) - E - ft(0, D.bottom)));
6718
+ if (h.style.maxHeight = _ + "px", h.scrollTop = E, o) {
6719
6719
  const P = h.offsetHeight < f.offsetHeight * Dn(s, n.current.length) - 1 || w.top >= -l || w.bottom >= -l;
6720
6720
  ba.flushSync(() => o(P));
6721
6721
  }
6722
6722
  return t && (t.current = await Oi(Ec({
6723
- ...C,
6723
+ ...b,
6724
6724
  y: k
6725
6725
  }, h.offsetHeight + v + p.clientTop), u)), {
6726
6726
  y: k
@@ -6742,9 +6742,9 @@ function D2(e, r) {
6742
6742
  function f(v) {
6743
6743
  if (v.ctrlKey || !h || a.current == null)
6744
6744
  return;
6745
- const m = v.deltaY, g = a.current.top >= -0.5, b = a.current.bottom >= -0.5, C = h.scrollHeight - h.clientHeight, D = m < 0 ? -1 : 1, w = m < 0 ? "max" : "min";
6746
- h.scrollHeight <= h.clientHeight || (!g && m > 0 || !b && m < 0 ? (v.preventDefault(), ba.flushSync(() => {
6747
- l((E) => E + Math[w](m, C * D));
6745
+ const m = v.deltaY, g = a.current.top >= -0.5, C = a.current.bottom >= -0.5, b = h.scrollHeight - h.clientHeight, D = m < 0 ? -1 : 1, w = m < 0 ? "max" : "min";
6746
+ h.scrollHeight <= h.clientHeight || (!g && m > 0 || !C && m < 0 ? (v.preventDefault(), ba.flushSync(() => {
6747
+ l((E) => E + Math[w](m, b * D));
6748
6748
  })) : /firefox/i.test(p6()) && (h.scrollTop += m));
6749
6749
  }
6750
6750
  const h = i?.current || t.floating;
@@ -6820,13 +6820,13 @@ function ed({ children: e, enabled: r = !0 }) {
6820
6820
  Re(() => {
6821
6821
  c && a(0);
6822
6822
  }, [c]);
6823
- let { refs: g, floatingStyles: b, context: C } = y2({ open: c, placement: v === "selection" ? m === "center" ? "bottom" : `bottom-${m}` : m === "center" ? `${v}` : `${v}-${m}`, strategy: "absolute", transform: !1, middleware: [Gs({ mainAxis: v === "selection" ? 0 : d, crossAxis: p }), n2({ padding: f }), v !== "selection" && Zu({ padding: f }), v === "selection" && h ? x2({ ...h, padding: f, overflowRef: i, offset: o, minItemsVisible: kc, referenceOverflowThreshold: f, onFallbackChange(P) {
6823
+ let { refs: g, floatingStyles: C, context: b } = y2({ open: c, placement: v === "selection" ? m === "center" ? "bottom" : `bottom-${m}` : m === "center" ? `${v}` : `${v}-${m}`, strategy: "absolute", transform: !1, middleware: [Gs({ mainAxis: v === "selection" ? 0 : d, crossAxis: p }), n2({ padding: f }), v !== "selection" && Zu({ padding: f }), v === "selection" && h ? x2({ ...h, padding: f, overflowRef: i, offset: o, minItemsVisible: kc, referenceOverflowThreshold: f, onFallbackChange(P) {
6824
6824
  var M, N;
6825
6825
  if (!P) return;
6826
- let L = C.elements.floating;
6826
+ let L = b.elements.floating;
6827
6827
  if (!L) return;
6828
6828
  let $ = parseFloat(getComputedStyle(L).scrollPaddingBottom) || 0, H = Math.min(kc, L.childElementCount), Y = 0, R = 0;
6829
- for (let q of (N = (M = C.elements.floating) == null ? void 0 : M.childNodes) != null ? N : []) if (Nt(q)) {
6829
+ for (let q of (N = (M = b.elements.floating) == null ? void 0 : M.childNodes) != null ? N : []) if (Nt(q)) {
6830
6830
  let K = q.offsetTop, le = K + q.clientHeight + $, F = L.scrollTop, V = F + L.clientHeight;
6831
6831
  if (K >= F && le <= V) H--;
6832
6832
  else {
@@ -6840,12 +6840,12 @@ function ed({ children: e, enabled: r = !0 }) {
6840
6840
  });
6841
6841
  } }) : null, r2({ padding: f, apply({ availableWidth: P, availableHeight: M, elements: N }) {
6842
6842
  Object.assign(N.floating.style, { overflow: "auto", maxWidth: `${P}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${M}px)` });
6843
- } })].filter(Boolean), whileElementsMounted: zu }), [D = v, w = m] = C.placement.split("-");
6843
+ } })].filter(Boolean), whileElementsMounted: zu }), [D = v, w = m] = b.placement.split("-");
6844
6844
  v === "selection" && (D = "selection");
6845
- let E = ee(() => ({ anchor: [D, w].filter(Boolean).join(" ") }), [D, w]), k = D2(C, { overflowRef: i, onChange: a }), { getReferenceProps: S, getFloatingProps: _ } = w2([k]), O = U((P) => {
6845
+ let E = ee(() => ({ anchor: [D, w].filter(Boolean).join(" ") }), [D, w]), k = D2(b, { overflowRef: i, onChange: a }), { getReferenceProps: S, getFloatingProps: T } = w2([k]), _ = U((P) => {
6846
6846
  l(P), g.setFloating(P);
6847
6847
  });
6848
- return x.createElement(qs.Provider, { value: t }, x.createElement(Ho.Provider, { value: { setFloating: O, setReference: g.setReference, styles: b, getReferenceProps: S, getFloatingProps: _, slot: E } }, e));
6848
+ return x.createElement(qs.Provider, { value: t }, x.createElement(Ho.Provider, { value: { setFloating: _, setReference: g.setReference, styles: C, getReferenceProps: S, getFloatingProps: T, slot: E } }, e));
6849
6849
  }
6850
6850
  function S2(e) {
6851
6851
  Re(() => {
@@ -6880,10 +6880,10 @@ function Li(e, r, n = void 0) {
6880
6880
  t.requestAnimationFrame(function h() {
6881
6881
  t.nextFrame(h);
6882
6882
  let v = !1;
6883
- for (let [g, b] of p.entries()) {
6884
- let C = window.getComputedStyle(c).getPropertyValue(b);
6885
- if (f[g] !== C) {
6886
- f[g] = C, v = !0;
6883
+ for (let [g, C] of p.entries()) {
6884
+ let b = window.getComputedStyle(c).getPropertyValue(C);
6885
+ if (f[g] !== b) {
6886
+ f[g] = b, v = !0;
6887
6887
  break;
6888
6888
  }
6889
6889
  }
@@ -7265,7 +7265,7 @@ function j2(e) {
7265
7265
  }
7266
7266
  let U2 = Br;
7267
7267
  function Z2(e, r) {
7268
- let n = We(), t = $t(), { value: o, defaultValue: a, onChange: i, form: s, name: l, by: c, invalid: u = !1, disabled: d = t || !1, onClose: p, __demoMode: f = !1, multiple: h = !1, immediate: v = !1, virtual: m = null, nullable: g, ...b } = e, C = Wa(a), [D = h ? [] : void 0, w] = Ba(o, i, C), E = cd({ id: n, virtual: m, __demoMode: f }), k = z({ static: !1, hold: !1 }), S = Cu(c), _ = U((re) => m ? c === null ? m.options.indexOf(re) : m.options.findIndex((me) => S(me, re)) : E.state.options.findIndex((me) => S(me.dataRef.current.value, re))), O = Z((re) => ze(N.mode, { [kt.Multi]: () => D.some((me) => S(me, re)), [kt.Single]: () => S(D, re) }), [D]), P = Ye(E, (re) => re.virtual), M = U(() => p?.()), N = ee(() => ({ __demoMode: f, immediate: v, optionsPropsRef: k, value: D, defaultValue: C, disabled: d, invalid: u, mode: h ? kt.Multi : kt.Single, virtual: m ? P : null, onChange: w, isSelected: O, calculateIndex: _, compare: S, onClose: M }), [f, v, k, D, C, d, u, h, m, P, w, O, _, S, M]);
7268
+ let n = We(), t = $t(), { value: o, defaultValue: a, onChange: i, form: s, name: l, by: c, invalid: u = !1, disabled: d = t || !1, onClose: p, __demoMode: f = !1, multiple: h = !1, immediate: v = !1, virtual: m = null, nullable: g, ...C } = e, b = Wa(a), [D = h ? [] : void 0, w] = Ba(o, i, b), E = cd({ id: n, virtual: m, __demoMode: f }), k = z({ static: !1, hold: !1 }), S = Cu(c), T = U((re) => m ? c === null ? m.options.indexOf(re) : m.options.findIndex((me) => S(me, re)) : E.state.options.findIndex((me) => S(me.dataRef.current.value, re))), _ = Z((re) => ze(N.mode, { [kt.Multi]: () => D.some((me) => S(me, re)), [kt.Single]: () => S(D, re) }), [D]), P = Ye(E, (re) => re.virtual), M = U(() => p?.()), N = ee(() => ({ __demoMode: f, immediate: v, optionsPropsRef: k, value: D, defaultValue: b, disabled: d, invalid: u, mode: h ? kt.Multi : kt.Single, virtual: m ? P : null, onChange: w, isSelected: _, calculateIndex: T, compare: S, onClose: M }), [f, v, k, D, b, d, u, h, m, P, w, _, T, S, M]);
7269
7269
  Re(() => {
7270
7270
  var re;
7271
7271
  m && E.send({ type: sd.UpdateVirtualConfiguration, options: m.options, disabled: (re = m.disabled) != null ? re : null });
@@ -7275,14 +7275,14 @@ function Z2(e, r) {
7275
7275
  let [L, $, H, Y] = Ye(E, (re) => [re.comboboxState, re.buttonElement, re.inputElement, re.optionsElement]), R = Ka.get(null), q = Ye(R, Z((re) => R.selectors.isTop(re, n), [R, n]));
7276
7276
  Tu(q, [$, H, Y], () => E.actions.closeCombobox());
7277
7277
  let K = Ye(E, E.selectors.activeOptionIndex), le = Ye(E, E.selectors.activeOption), F = Ne({ open: L === fe.Open, disabled: d, invalid: u, activeIndex: K, activeOption: le, value: D }), [V, I] = Zr(), G = r === null ? {} : { ref: r }, ne = Z(() => {
7278
- if (C !== void 0) return w?.(C);
7279
- }, [w, C]), W = xe();
7280
- return y.createElement(I, { value: V, props: { htmlFor: H?.id }, slot: { open: L === fe.Open, disabled: d } }, y.createElement(ed, null, y.createElement(ko.Provider, { value: N }, y.createElement(ld.Provider, { value: E }, y.createElement(nd, { value: ze(L, { [fe.Open]: Bt.Open, [fe.Closed]: Bt.Closed }) }, l != null && y.createElement(za, { disabled: d, data: D != null ? { [l]: D } : {}, form: s, onReset: ne }), W({ ourProps: G, theirProps: b, slot: F, defaultTag: U2, name: "Combobox" }))))));
7278
+ if (b !== void 0) return w?.(b);
7279
+ }, [w, b]), W = xe();
7280
+ return y.createElement(I, { value: V, props: { htmlFor: H?.id }, slot: { open: L === fe.Open, disabled: d } }, y.createElement(ed, null, y.createElement(ko.Provider, { value: N }, y.createElement(ld.Provider, { value: E }, y.createElement(nd, { value: ze(L, { [fe.Open]: Bt.Open, [fe.Closed]: Bt.Closed }) }, l != null && y.createElement(za, { disabled: d, data: D != null ? { [l]: D } : {}, form: s, onReset: ne }), W({ ourProps: G, theirProps: C, slot: F, defaultTag: U2, name: "Combobox" }))))));
7281
7281
  }
7282
7282
  let K2 = "input";
7283
7283
  function G2(e, r) {
7284
7284
  var n, t;
7285
- let o = Yo("Combobox.Input"), a = qr("Combobox.Input"), i = We(), s = vr(), { id: l = s || `headlessui-combobox-input-${i}`, onChange: c, displayValue: u, disabled: d = a.disabled || !1, autoFocus: p = !1, type: f = "text", ...h } = e, v = z(null), m = $e(v, r, Qu(), o.actions.setInputElement), [g, b] = Ye(o, (F) => [F.comboboxState, F.isTyping]), C = Qn(), D = U(() => {
7285
+ let o = Yo("Combobox.Input"), a = qr("Combobox.Input"), i = We(), s = vr(), { id: l = s || `headlessui-combobox-input-${i}`, onChange: c, displayValue: u, disabled: d = a.disabled || !1, autoFocus: p = !1, type: f = "text", ...h } = e, v = z(null), m = $e(v, r, Qu(), o.actions.setInputElement), [g, C] = Ye(o, (F) => [F.comboboxState, F.isTyping]), b = Qn(), D = U(() => {
7286
7286
  o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: nt.Nothing });
7287
7287
  }), w = ee(() => {
7288
7288
  var F;
@@ -7296,7 +7296,7 @@ function G2(e, r) {
7296
7296
  let { selectionStart: W, selectionEnd: re } = ne;
7297
7297
  Math.abs((re ?? 0) - (W ?? 0)) === 0 && W === 0 && ne.setSelectionRange(ne.value.length, ne.value.length);
7298
7298
  }));
7299
- }, [w, g, b]), dc(([F], [V]) => {
7299
+ }, [w, g, C]), dc(([F], [V]) => {
7300
7300
  if (F === fe.Open && V === fe.Closed) {
7301
7301
  if (o.state.isTyping) return;
7302
7302
  let I = v.current;
@@ -7308,10 +7308,10 @@ function G2(e, r) {
7308
7308
  let E = z(!1), k = U(() => {
7309
7309
  E.current = !0;
7310
7310
  }), S = U(() => {
7311
- C.nextFrame(() => {
7311
+ b.nextFrame(() => {
7312
7312
  E.current = !1;
7313
7313
  });
7314
- }), _ = U((F) => {
7314
+ }), T = U((F) => {
7315
7315
  switch (o.actions.setIsTyping(!0), F.key) {
7316
7316
  case se.Enter:
7317
7317
  if (o.state.comboboxState !== fe.Open || E.current) return;
@@ -7344,7 +7344,7 @@ function G2(e, r) {
7344
7344
  a.mode === kt.Single && o.state.activationTrigger !== rn.Focus && o.actions.selectActiveOption(), o.actions.closeCombobox();
7345
7345
  break;
7346
7346
  }
7347
- }), O = U((F) => {
7347
+ }), _ = U((F) => {
7348
7348
  c?.(F), a.mode === kt.Single && F.target.value === "" && D(), o.actions.openCombobox();
7349
7349
  }), P = U((F) => {
7350
7350
  var V, I, G;
@@ -7353,10 +7353,10 @@ function G2(e, r) {
7353
7353
  }), M = U((F) => {
7354
7354
  var V, I, G;
7355
7355
  let ne = (V = F.relatedTarget) != null ? V : rr.find((W) => W !== F.currentTarget);
7356
- (I = o.state.buttonElement) != null && I.contains(ne) || (G = o.state.optionsElement) != null && G.contains(ne) || a.disabled || a.immediate && o.state.comboboxState !== fe.Open && C.microTask(() => {
7356
+ (I = o.state.buttonElement) != null && I.contains(ne) || (G = o.state.optionsElement) != null && G.contains(ne) || a.disabled || a.immediate && o.state.comboboxState !== fe.Open && b.microTask(() => {
7357
7357
  Fn(() => o.actions.openCombobox()), o.actions.setActivationTrigger(rn.Focus);
7358
7358
  });
7359
- }), N = kn(), L = Ur(), { isFocused: $, focusProps: H } = Ft({ autoFocus: p }), { isHovered: Y, hoverProps: R } = jt({ isDisabled: d }), q = Ye(o, (F) => F.optionsElement), K = Ne({ open: g === fe.Open, disabled: d, invalid: a.invalid, hover: Y, focus: $, autofocus: p }), le = gt({ ref: m, id: l, role: "combobox", type: f, "aria-controls": q?.id, "aria-expanded": g === fe.Open, "aria-activedescendant": Ye(o, o.selectors.activeDescendantId), "aria-labelledby": N, "aria-describedby": L, "aria-autocomplete": "list", defaultValue: (t = (n = e.defaultValue) != null ? n : a.defaultValue !== void 0 ? u?.(a.defaultValue) : null) != null ? t : a.defaultValue, disabled: d || void 0, autoFocus: p, onCompositionStart: k, onCompositionEnd: S, onKeyDown: _, onChange: O, onFocus: M, onBlur: P }, H, R);
7359
+ }), N = kn(), L = Ur(), { isFocused: $, focusProps: H } = Ft({ autoFocus: p }), { isHovered: Y, hoverProps: R } = jt({ isDisabled: d }), q = Ye(o, (F) => F.optionsElement), K = Ne({ open: g === fe.Open, disabled: d, invalid: a.invalid, hover: Y, focus: $, autofocus: p }), le = gt({ ref: m, id: l, role: "combobox", type: f, "aria-controls": q?.id, "aria-expanded": g === fe.Open, "aria-activedescendant": Ye(o, o.selectors.activeDescendantId), "aria-labelledby": N, "aria-describedby": L, "aria-autocomplete": "list", defaultValue: (t = (n = e.defaultValue) != null ? n : a.defaultValue !== void 0 ? u?.(a.defaultValue) : null) != null ? t : a.defaultValue, disabled: d || void 0, autoFocus: p, onCompositionStart: k, onCompositionEnd: S, onKeyDown: T, onChange: _, onFocus: M, onBlur: P }, H, R);
7360
7360
  return xe()({ ourProps: le, theirProps: h, slot: K, defaultTag: K2, name: "Combobox.Input" });
7361
7361
  }
7362
7362
  let q2 = "button";
@@ -7386,29 +7386,29 @@ function Q2(e, r) {
7386
7386
  default:
7387
7387
  return;
7388
7388
  }
7389
- }), b = b5(() => {
7389
+ }), C = b5(() => {
7390
7390
  n.state.comboboxState === fe.Open ? n.actions.closeCombobox() : n.actions.openCombobox(), v();
7391
- }), C = kn([l]), { isFocusVisible: D, focusProps: w } = Ft({ autoFocus: u }), { isHovered: E, hoverProps: k } = jt({ isDisabled: c }), { pressed: S, pressProps: _ } = jr({ disabled: c }), O = Ne({ open: p === fe.Open, active: S || p === fe.Open, disabled: c, invalid: t.invalid, value: t.value, hover: E, focus: D }), P = gt({ ref: i, id: l, type: qa(e, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": p === fe.Open, "aria-labelledby": C, disabled: c || void 0, autoFocus: u, onKeyDown: g }, b, w, k, _);
7392
- return xe()({ ourProps: P, theirProps: d, slot: O, defaultTag: q2, name: "Combobox.Button" });
7391
+ }), b = kn([l]), { isFocusVisible: D, focusProps: w } = Ft({ autoFocus: u }), { isHovered: E, hoverProps: k } = jt({ isDisabled: c }), { pressed: S, pressProps: T } = jr({ disabled: c }), _ = Ne({ open: p === fe.Open, active: S || p === fe.Open, disabled: c, invalid: t.invalid, value: t.value, hover: E, focus: D }), P = gt({ ref: i, id: l, type: qa(e, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": p === fe.Open, "aria-labelledby": b, disabled: c || void 0, autoFocus: u, onKeyDown: g }, C, w, k, T);
7392
+ return xe()({ ourProps: P, theirProps: d, slot: _, defaultTag: q2, name: "Combobox.Button" });
7393
7393
  }
7394
7394
  let X2 = "div", J2 = yn.RenderStrategy | yn.Static;
7395
7395
  function e0(e, r) {
7396
7396
  var n, t, o;
7397
7397
  let a = We(), { id: i = `headlessui-combobox-options-${a}`, hold: s = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...p } = e, f = Yo("Combobox.Options"), h = qr("Combobox.Options"), v = qu(l);
7398
7398
  v && (c = !0);
7399
- let [m, g] = Ju(v), [b, C] = ae(null), D = Xu(), w = $e(r, v ? m : null, f.actions.setOptionsElement, C), [E, k, S, _, O] = Ye(f, (Se) => [Se.comboboxState, Se.inputElement, Se.buttonElement, Se.optionsElement, Se.activationTrigger]), P = xo(k || S), M = xo(_), N = Qs(), [L, $] = Ws(d, b, N !== null ? (N & Bt.Open) === Bt.Open : E === fe.Open);
7399
+ let [m, g] = Ju(v), [C, b] = ae(null), D = Xu(), w = $e(r, v ? m : null, f.actions.setOptionsElement, b), [E, k, S, T, _] = Ye(f, (Se) => [Se.comboboxState, Se.inputElement, Se.buttonElement, Se.optionsElement, Se.activationTrigger]), P = xo(k || S), M = xo(T), N = Qs(), [L, $] = Ws(d, C, N !== null ? (N & Bt.Open) === Bt.Open : E === fe.Open);
7400
7400
  ku(L, k, f.actions.closeCombobox);
7401
7401
  let H = h.__demoMode ? !1 : u && E === fe.Open;
7402
7402
  Ru(H, M);
7403
7403
  let Y = h.__demoMode ? !1 : u && E === fe.Open;
7404
- L5(Y, { allowed: Z(() => [k, S, _], [k, S, _]) });
7404
+ L5(Y, { allowed: Z(() => [k, S, T], [k, S, T]) });
7405
7405
  let R = Ye(f, f.selectors.didInputMove) ? !1 : L;
7406
7406
  Re(() => {
7407
7407
  var Se;
7408
7408
  h.optionsPropsRef.current.static = (Se = e.static) != null ? Se : !1;
7409
7409
  }, [h.optionsPropsRef, e.static]), Re(() => {
7410
7410
  h.optionsPropsRef.current.hold = s;
7411
- }, [h.optionsPropsRef, s]), r6(E === fe.Open, { container: _, accept(Se) {
7411
+ }, [h.optionsPropsRef, s]), r6(E === fe.Open, { container: T, accept(Se) {
7412
7412
  return Se.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : Se.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
7413
7413
  }, walk(Se) {
7414
7414
  Se.setAttribute("role", "none");
@@ -7417,7 +7417,7 @@ function e0(e, r) {
7417
7417
  f.actions.setActivationTrigger(rn.Pointer);
7418
7418
  }), F = U((Se) => {
7419
7419
  Se.preventDefault(), f.actions.setActivationTrigger(rn.Pointer);
7420
- }), V = gt(v ? D() : {}, { "aria-labelledby": q, role: "listbox", "aria-multiselectable": h.mode === kt.Multi ? !0 : void 0, id: i, ref: w, style: { ...p.style, ...g, "--input-width": ts(L, k, !0).width, "--button-width": ts(L, S, !0).width }, onWheel: O === rn.Pointer ? void 0 : le, onMouseDown: F, ...Bs($) }), I = L && E === fe.Closed && !e.static, G = ls(I, (n = h.virtual) == null ? void 0 : n.options), ne = ls(I, h.value), W = Z((Se) => h.compare(ne, Se), [h.compare, ne]), re = ee(() => {
7420
+ }), V = gt(v ? D() : {}, { "aria-labelledby": q, role: "listbox", "aria-multiselectable": h.mode === kt.Multi ? !0 : void 0, id: i, ref: w, style: { ...p.style, ...g, "--input-width": ts(L, k, !0).width, "--button-width": ts(L, S, !0).width }, onWheel: _ === rn.Pointer ? void 0 : le, onMouseDown: F, ...Bs($) }), I = L && E === fe.Closed && !e.static, G = ls(I, (n = h.virtual) == null ? void 0 : n.options), ne = ls(I, h.value), W = Z((Se) => h.compare(ne, Se), [h.compare, ne]), re = ee(() => {
7421
7421
  if (!h.virtual) return h;
7422
7422
  if (G === void 0) throw new Error("Missing `options` in virtual mode");
7423
7423
  return G !== h.virtual.options ? { ...h, virtual: { ...h.virtual, options: G } } : h;
@@ -7429,10 +7429,10 @@ function e0(e, r) {
7429
7429
  let t0 = "div";
7430
7430
  function n0(e, r) {
7431
7431
  var n, t, o;
7432
- let a = qr("Combobox.Option"), i = Yo("Combobox.Option"), s = We(), { id: l = `headlessui-combobox-option-${s}`, value: c, disabled: u = (o = (t = (n = a.virtual) == null ? void 0 : n.disabled) == null ? void 0 : t.call(n, c)) != null ? o : !1, order: d = null, ...p } = e, [f] = Ye(i, ($) => [$.inputElement]), h = Lu(f), v = Ye(i, Z(($) => i.selectors.isActive($, c, l), [c, l])), m = a.isSelected(c), g = z(null), b = vt({ disabled: u, value: c, domRef: g, order: d }), C = Ce(ud), D = $e(r, g, C ? C.measureElement : null), w = U(() => {
7432
+ let a = qr("Combobox.Option"), i = Yo("Combobox.Option"), s = We(), { id: l = `headlessui-combobox-option-${s}`, value: c, disabled: u = (o = (t = (n = a.virtual) == null ? void 0 : n.disabled) == null ? void 0 : t.call(n, c)) != null ? o : !1, order: d = null, ...p } = e, [f] = Ye(i, ($) => [$.inputElement]), h = Lu(f), v = Ye(i, Z(($) => i.selectors.isActive($, c, l), [c, l])), m = a.isSelected(c), g = z(null), C = vt({ disabled: u, value: c, domRef: g, order: d }), b = Ce(ud), D = $e(r, g, b ? b.measureElement : null), w = U(() => {
7433
7433
  i.actions.setIsTyping(!1), i.actions.onChange(c);
7434
7434
  });
7435
- Re(() => i.actions.registerOption(l, b), [b, l]);
7435
+ Re(() => i.actions.registerOption(l, C), [C, l]);
7436
7436
  let E = Ye(i, Z(($) => i.selectors.shouldScrollIntoView($, c, l), [c, l]));
7437
7437
  Re(() => {
7438
7438
  if (E) return At().requestAnimationFrame(() => {
@@ -7446,13 +7446,13 @@ function n0(e, r) {
7446
7446
  if (u) return i.actions.goToOption({ focus: nt.Nothing });
7447
7447
  let $ = a.calculateIndex(c);
7448
7448
  i.actions.goToOption({ focus: nt.Specific, idx: $ });
7449
- }), _ = q5(), O = U(($) => _.update($)), P = U(($) => {
7450
- if (!_.wasMoved($) || u || v && i.state.activationTrigger === rn.Pointer) return;
7449
+ }), T = q5(), _ = U(($) => T.update($)), P = U(($) => {
7450
+ if (!T.wasMoved($) || u || v && i.state.activationTrigger === rn.Pointer) return;
7451
7451
  let H = a.calculateIndex(c);
7452
7452
  i.actions.goToOption({ focus: nt.Specific, idx: H }, rn.Pointer);
7453
7453
  }), M = U(($) => {
7454
- _.wasMoved($) && (u || v && (a.optionsPropsRef.current.hold || i.state.activationTrigger === rn.Pointer && i.actions.goToOption({ focus: nt.Nothing })));
7455
- }), N = Ne({ active: v, focus: v, selected: m, disabled: u }), L = { id: l, ref: D, role: "option", tabIndex: u === !0 ? void 0 : -1, "aria-disabled": u === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onMouseDown: k, onFocus: S, onPointerEnter: O, onMouseEnter: O, onPointerMove: P, onMouseMove: P, onPointerLeave: M, onMouseLeave: M };
7454
+ T.wasMoved($) && (u || v && (a.optionsPropsRef.current.hold || i.state.activationTrigger === rn.Pointer && i.actions.goToOption({ focus: nt.Nothing })));
7455
+ }), N = Ne({ active: v, focus: v, selected: m, disabled: u }), L = { id: l, ref: D, role: "option", tabIndex: u === !0 ? void 0 : -1, "aria-disabled": u === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onMouseDown: k, onFocus: S, onPointerEnter: _, onMouseEnter: _, onPointerMove: P, onMouseMove: P, onPointerLeave: M, onMouseLeave: M };
7456
7456
  return xe()({ ourProps: L, theirProps: p, slot: N, defaultTag: t0, name: "Combobox.Option" });
7457
7457
  }
7458
7458
  let r0 = De(Z2), o0 = De(Q2), dd = De(G2), a0 = gr, fd = De(e0), pd = De(n0), i0 = Object.assign(r0, { Input: dd, Button: o0, Label: a0, Options: fd, Option: pd });
@@ -7587,12 +7587,12 @@ function S0(e, r) {
7587
7587
  var n;
7588
7588
  let t = We(), { __demoMode: o = !1, ...a } = e, i = w0({ id: t, __demoMode: o }), s = z(null), l = $e(r, hu((L) => {
7589
7589
  s.current = L;
7590
- })), [c, u, d, p, f] = Ye(i, Z((L) => [L.popoverState, L.button, L.panel, L.buttonId, L.panelId], [])), h = Y5((n = s.current) != null ? n : u), v = vt(p), m = vt(f), g = ee(() => ({ buttonId: v, panelId: m, close: i.actions.close }), [v, m, i]), b = Cd(), C = b?.registerPopover, D = U(() => {
7590
+ })), [c, u, d, p, f] = Ye(i, Z((L) => [L.popoverState, L.button, L.panel, L.buttonId, L.panelId], [])), h = Y5((n = s.current) != null ? n : u), v = vt(p), m = vt(f), g = ee(() => ({ buttonId: v, panelId: m, close: i.actions.close }), [v, m, i]), C = Cd(), b = C?.registerPopover, D = U(() => {
7591
7591
  var L, $;
7592
7592
  let H = zn((L = s.current) != null ? L : u);
7593
- return ($ = b?.isFocusWithinPopoverGroup()) != null ? $ : H && (u?.contains(H) || d?.contains(H));
7593
+ return ($ = C?.isFocusWithinPopoverGroup()) != null ? $ : H && (u?.contains(H) || d?.contains(H));
7594
7594
  });
7595
- oe(() => C?.(g), [C, g]);
7595
+ oe(() => b?.(g), [b, g]);
7596
7596
  let [w, E] = $2(), k = vd(u), S = s0({ mainTreeNode: k, portals: w, defaultContainers: [{ get current() {
7597
7597
  return i.state.button;
7598
7598
  } }, { get current() {
@@ -7602,21 +7602,21 @@ function S0(e, r) {
7602
7602
  var $, H, Y, R, q, K;
7603
7603
  L.target !== window && An(L.target) && i.state.popoverState === qe.Open && (D() || i.state.button && i.state.panel && (S.contains(L.target) || (H = ($ = i.state.beforePanelSentinel.current) == null ? void 0 : $.contains) != null && H.call($, L.target) || (R = (Y = i.state.afterPanelSentinel.current) == null ? void 0 : Y.contains) != null && R.call(Y, L.target) || (K = (q = i.state.afterButtonSentinel.current) == null ? void 0 : q.contains) != null && K.call(q, L.target) || i.actions.close()));
7604
7604
  }, !0);
7605
- let _ = c === qe.Open;
7606
- Tu(_, S.resolveContainers, (L, $) => {
7605
+ let T = c === qe.Open;
7606
+ Tu(T, S.resolveContainers, (L, $) => {
7607
7607
  i.actions.close(), Mu($, Vs.Loose) || (L.preventDefault(), u?.focus());
7608
7608
  });
7609
- let O = Ne({ open: c === qe.Open, close: i.actions.refocusableClose }), P = Ye(i, Z((L) => ze(L.popoverState, { [qe.Open]: Bt.Open, [qe.Closed]: Bt.Closed }), [])), M = { ref: l }, N = xe();
7610
- return y.createElement(md, { node: k }, y.createElement(ed, null, y.createElement(oi.Provider, { value: null }, y.createElement(bd.Provider, { value: i }, y.createElement(gu, { value: i.actions.refocusableClose }, y.createElement(nd, { value: P }, y.createElement(E, null, N({ ourProps: M, theirProps: a, slot: O, defaultTag: D0, name: "Popover" }))))))));
7609
+ let _ = Ne({ open: c === qe.Open, close: i.actions.refocusableClose }), P = Ye(i, Z((L) => ze(L.popoverState, { [qe.Open]: Bt.Open, [qe.Closed]: Bt.Closed }), [])), M = { ref: l }, N = xe();
7610
+ return y.createElement(md, { node: k }, y.createElement(ed, null, y.createElement(oi.Provider, { value: null }, y.createElement(bd.Provider, { value: i }, y.createElement(gu, { value: i.actions.refocusableClose }, y.createElement(nd, { value: P }, y.createElement(E, null, N({ ourProps: M, theirProps: a, slot: _, defaultTag: D0, name: "Popover" }))))))));
7611
7611
  }
7612
7612
  let E0 = "button";
7613
7613
  function k0(e, r) {
7614
- let n = We(), { id: t = `headlessui-popover-button-${n}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = ri("Popover.Button"), [l, c, u, d, p, f, h] = Ye(s, Z((I) => [I.popoverState, s.selectors.isPortalled(I), I.button, I.buttonId, I.panel, I.panelId, I.afterButtonSentinel], [])), v = z(null), m = `headlessui-focus-sentinel-${We()}`, g = Cd(), b = g?.closeOthers, C = x0() !== null;
7614
+ let n = We(), { id: t = `headlessui-popover-button-${n}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = ri("Popover.Button"), [l, c, u, d, p, f, h] = Ye(s, Z((I) => [I.popoverState, s.selectors.isPortalled(I), I.button, I.buttonId, I.panel, I.panelId, I.afterButtonSentinel], [])), v = z(null), m = `headlessui-focus-sentinel-${We()}`, g = Cd(), C = g?.closeOthers, b = x0() !== null;
7615
7615
  oe(() => {
7616
- if (!C) return s.actions.setButtonId(t), () => s.actions.setButtonId(null);
7617
- }, [C, t, s]);
7616
+ if (!b) return s.actions.setButtonId(t), () => s.actions.setButtonId(null);
7617
+ }, [b, t, s]);
7618
7618
  let [D] = ae(() => Symbol()), w = $e(v, r, Qu(), U((I) => {
7619
- if (!C) {
7619
+ if (!b) {
7620
7620
  if (I) s.state.buttons.current.push(D);
7621
7621
  else {
7622
7622
  let G = s.state.buttons.current.indexOf(D);
@@ -7626,7 +7626,7 @@ function k0(e, r) {
7626
7626
  }
7627
7627
  })), E = $e(v, r), k = U((I) => {
7628
7628
  var G, ne, W;
7629
- if (C) {
7629
+ if (b) {
7630
7630
  if (s.state.popoverState === qe.Closed) return;
7631
7631
  switch (I.key) {
7632
7632
  case se.Space:
@@ -7637,10 +7637,10 @@ function k0(e, r) {
7637
7637
  } else switch (I.key) {
7638
7638
  case se.Space:
7639
7639
  case se.Enter:
7640
- I.preventDefault(), I.stopPropagation(), s.state.popoverState === qe.Closed ? (b?.(s.state.buttonId), s.actions.open()) : s.actions.close();
7640
+ I.preventDefault(), I.stopPropagation(), s.state.popoverState === qe.Closed ? (C?.(s.state.buttonId), s.actions.open()) : s.actions.close();
7641
7641
  break;
7642
7642
  case se.Escape:
7643
- if (s.state.popoverState !== qe.Open) return b?.(s.state.buttonId);
7643
+ if (s.state.popoverState !== qe.Open) return C?.(s.state.buttonId);
7644
7644
  if (!v.current) return;
7645
7645
  let re = zn(v.current);
7646
7646
  if (re && !v.current.contains(re)) return;
@@ -7648,13 +7648,13 @@ function k0(e, r) {
7648
7648
  break;
7649
7649
  }
7650
7650
  }), S = U((I) => {
7651
- C || I.key === se.Space && I.preventDefault();
7652
- }), _ = U((I) => {
7651
+ b || I.key === se.Space && I.preventDefault();
7652
+ }), T = U((I) => {
7653
7653
  var G, ne;
7654
- jn(I.currentTarget) || o || (C ? (s.actions.close(), (G = s.state.button) == null || G.focus()) : (I.preventDefault(), I.stopPropagation(), s.state.popoverState === qe.Closed ? (b?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (ne = s.state.button) == null || ne.focus()));
7655
- }), O = U((I) => {
7654
+ jn(I.currentTarget) || o || (b ? (s.actions.close(), (G = s.state.button) == null || G.focus()) : (I.preventDefault(), I.stopPropagation(), s.state.popoverState === qe.Closed ? (C?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (ne = s.state.button) == null || ne.focus()));
7655
+ }), _ = U((I) => {
7656
7656
  I.preventDefault(), I.stopPropagation();
7657
- }), { isFocusVisible: P, focusProps: M } = Ft({ autoFocus: a }), { isHovered: N, hoverProps: L } = jt({ isDisabled: o }), { pressed: $, pressProps: H } = jr({ disabled: o }), Y = l === qe.Open, R = Ne({ open: Y, active: $ || Y, disabled: o, hover: N, focus: P, autofocus: a }), q = qa(e, u), K = gt(C ? { ref: E, type: q, onKeyDown: k, onClick: _, disabled: o || void 0, autoFocus: a } : { ref: w, id: d, type: q, "aria-expanded": l === qe.Open, "aria-controls": p ? f : void 0, disabled: o || void 0, autoFocus: a, onKeyDown: k, onKeyUp: S, onClick: _, onMouseDown: O }, M, L, H), le = gd(), F = U(() => {
7657
+ }), { isFocusVisible: P, focusProps: M } = Ft({ autoFocus: a }), { isHovered: N, hoverProps: L } = jt({ isDisabled: o }), { pressed: $, pressProps: H } = jr({ disabled: o }), Y = l === qe.Open, R = Ne({ open: Y, active: $ || Y, disabled: o, hover: N, focus: P, autofocus: a }), q = qa(e, u), K = gt(b ? { ref: E, type: q, onKeyDown: k, onClick: T, disabled: o || void 0, autoFocus: a } : { ref: w, id: d, type: q, "aria-expanded": l === qe.Open, "aria-controls": p ? f : void 0, disabled: o || void 0, autoFocus: a, onKeyDown: k, onKeyUp: S, onClick: T, onMouseDown: _ }, M, L, H), le = gd(), F = U(() => {
7658
7658
  if (!Nt(s.state.panel)) return;
7659
7659
  let I = s.state.panel;
7660
7660
  function G() {
@@ -7662,7 +7662,7 @@ function k0(e, r) {
7662
7662
  }
7663
7663
  G();
7664
7664
  }), V = xe();
7665
- return y.createElement(y.Fragment, null, V({ ourProps: K, theirProps: i, slot: R, defaultTag: E0, name: "Popover.Button" }), Y && !C && c && y.createElement(xn, { id: m, ref: h, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: F }));
7665
+ return y.createElement(y.Fragment, null, V({ ourProps: K, theirProps: i, slot: R, defaultTag: E0, name: "Popover.Button" }), Y && !b && c && y.createElement(xn, { id: m, ref: h, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: F }));
7666
7666
  }
7667
7667
  let M0 = "div", P0 = yn.RenderStrategy | yn.Static;
7668
7668
  function yd(e, r) {
@@ -7674,9 +7674,9 @@ function yd(e, r) {
7674
7674
  }
7675
7675
  let O0 = "div", T0 = yn.RenderStrategy | yn.Static;
7676
7676
  function _0(e, r) {
7677
- let n = We(), { id: t = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: a, portal: i = !1, modal: s = !1, transition: l = !1, ...c } = e, u = ri("Popover.Panel"), d = Ye(u, u.selectors.isPortalled), [p, f, h, v, m] = Ye(u, Z((V) => [V.popoverState, V.button, V.__demoMode, V.beforePanelSentinel, V.afterPanelSentinel], [])), g = `headlessui-focus-sentinel-before-${n}`, b = `headlessui-focus-sentinel-after-${n}`, C = z(null), D = qu(a), [w, E] = Ju(D), k = Xu();
7677
+ let n = We(), { id: t = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: a, portal: i = !1, modal: s = !1, transition: l = !1, ...c } = e, u = ri("Popover.Panel"), d = Ye(u, u.selectors.isPortalled), [p, f, h, v, m] = Ye(u, Z((V) => [V.popoverState, V.button, V.__demoMode, V.beforePanelSentinel, V.afterPanelSentinel], [])), g = `headlessui-focus-sentinel-before-${n}`, C = `headlessui-focus-sentinel-after-${n}`, b = z(null), D = qu(a), [w, E] = Ju(D), k = Xu();
7678
7678
  D && (i = !0);
7679
- let [S, _] = ae(null), O = $e(C, r, D ? w : null, u.actions.setPanel, _), P = xo(f), M = xo(C.current);
7679
+ let [S, T] = ae(null), _ = $e(b, r, D ? w : null, u.actions.setPanel, T), P = xo(f), M = xo(b.current);
7680
7680
  Re(() => (u.actions.setPanelId(t), () => u.actions.setPanelId(null)), [t, u]);
7681
7681
  let N = Qs(), [L, $] = Ws(l, S, N !== null ? (N & Bt.Open) === Bt.Open : p === qe.Open);
7682
7682
  ku(L, f, u.actions.close), Ru(h ? !1 : s && L, M);
@@ -7684,9 +7684,9 @@ function _0(e, r) {
7684
7684
  var I;
7685
7685
  switch (V.key) {
7686
7686
  case se.Escape:
7687
- if (u.state.popoverState !== qe.Open || !C.current) return;
7688
- let G = zn(C.current);
7689
- if (G && !C.current.contains(G)) return;
7687
+ if (u.state.popoverState !== qe.Open || !b.current) return;
7688
+ let G = zn(b.current);
7689
+ if (G && !b.current.contains(G)) return;
7690
7690
  V.preventDefault(), V.stopPropagation(), u.actions.close(), (I = u.state.button) == null || I.focus();
7691
7691
  break;
7692
7692
  }
@@ -7695,16 +7695,16 @@ function _0(e, r) {
7695
7695
  var V;
7696
7696
  e.static || p === qe.Closed && ((V = e.unmount) == null || V) && u.actions.setPanel(null);
7697
7697
  }, [p, e.unmount, e.static, u]), oe(() => {
7698
- if (h || !o || p !== qe.Open || !C.current) return;
7699
- let V = zn(C.current);
7700
- C.current.contains(V) || mt(C.current, Ve.First);
7701
- }, [h, o, C.current, p]);
7702
- let Y = Ne({ open: p === qe.Open, close: u.actions.refocusableClose }), R = gt(D ? k() : {}, { ref: O, id: t, onKeyDown: H, onBlur: o && p === qe.Open ? (V) => {
7698
+ if (h || !o || p !== qe.Open || !b.current) return;
7699
+ let V = zn(b.current);
7700
+ b.current.contains(V) || mt(b.current, Ve.First);
7701
+ }, [h, o, b.current, p]);
7702
+ let Y = Ne({ open: p === qe.Open, close: u.actions.refocusableClose }), R = gt(D ? k() : {}, { ref: _, id: t, onKeyDown: H, onBlur: o && p === qe.Open ? (V) => {
7703
7703
  var I, G, ne, W, re;
7704
7704
  let me = V.relatedTarget;
7705
- me && C.current && ((I = C.current) != null && I.contains(me) || (u.actions.close(), ((ne = (G = v.current) == null ? void 0 : G.contains) != null && ne.call(G, me) || (re = (W = m.current) == null ? void 0 : W.contains) != null && re.call(W, me)) && me.focus({ preventScroll: !0 })));
7705
+ me && b.current && ((I = b.current) != null && I.contains(me) || (u.actions.close(), ((ne = (G = v.current) == null ? void 0 : G.contains) != null && ne.call(G, me) || (re = (W = m.current) == null ? void 0 : W.contains) != null && re.call(W, me)) && me.focus({ preventScroll: !0 })));
7706
7706
  } : void 0, tabIndex: -1, style: { ...c.style, ...E, "--button-width": ts(L, f, !0).width }, ...Bs($) }), q = gd(), K = U(() => {
7707
- let V = C.current;
7707
+ let V = b.current;
7708
7708
  if (!V) return;
7709
7709
  function I() {
7710
7710
  ze(q.current, { [vn.Forwards]: () => {
@@ -7717,7 +7717,7 @@ function _0(e, r) {
7717
7717
  }
7718
7718
  I();
7719
7719
  }), le = U(() => {
7720
- let V = C.current;
7720
+ let V = b.current;
7721
7721
  if (!V) return;
7722
7722
  function I() {
7723
7723
  ze(q.current, { [vn.Forwards]: () => {
@@ -7736,7 +7736,7 @@ function _0(e, r) {
7736
7736
  }
7737
7737
  I();
7738
7738
  }), F = xe();
7739
- return y.createElement(P2, null, y.createElement(oi.Provider, { value: t }, y.createElement(gu, { value: u.actions.refocusableClose }, y.createElement(ad, { enabled: i ? e.static || L : !1, ownerDocument: P }, L && d && y.createElement(xn, { id: g, ref: v, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: K }), F({ ourProps: R, theirProps: c, slot: Y, defaultTag: O0, features: T0, visible: L, name: "Popover.Panel" }), L && d && y.createElement(xn, { id: b, ref: m, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: le })))));
7739
+ return y.createElement(P2, null, y.createElement(oi.Provider, { value: t }, y.createElement(gu, { value: u.actions.refocusableClose }, y.createElement(ad, { enabled: i ? e.static || L : !1, ownerDocument: P }, L && d && y.createElement(xn, { id: g, ref: v, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: K }), F({ ourProps: R, theirProps: c, slot: Y, defaultTag: O0, features: T0, visible: L, name: "Popover.Panel" }), L && d && y.createElement(xn, { id: C, ref: m, features: wn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: le })))));
7740
7740
  }
7741
7741
  let L0 = "div";
7742
7742
  function R0(e, r) {
@@ -7744,8 +7744,8 @@ function R0(e, r) {
7744
7744
  a((m) => {
7745
7745
  let g = m.indexOf(v);
7746
7746
  if (g !== -1) {
7747
- let b = m.slice();
7748
- return b.splice(g, 1), b;
7747
+ let C = m.slice();
7748
+ return C.splice(g, 1), C;
7749
7749
  }
7750
7750
  return m;
7751
7751
  });
@@ -7754,9 +7754,9 @@ function R0(e, r) {
7754
7754
  let m = pr(n.current);
7755
7755
  if (!m) return !1;
7756
7756
  let g = zn(n.current);
7757
- return (v = n.current) != null && v.contains(g) ? !0 : o.some((b) => {
7758
- var C, D;
7759
- return ((C = m.getElementById(b.buttonId.current)) == null ? void 0 : C.contains(g)) || ((D = m.getElementById(b.panelId.current)) == null ? void 0 : D.contains(g));
7757
+ return (v = n.current) != null && v.contains(g) ? !0 : o.some((C) => {
7758
+ var b, D;
7759
+ return ((b = m.getElementById(C.buttonId.current)) == null ? void 0 : b.contains(g)) || ((D = m.getElementById(C.panelId.current)) == null ? void 0 : D.contains(g));
7760
7760
  });
7761
7761
  }), c = U((v) => {
7762
7762
  for (let m of o) m.buttonId.current !== v && m.close();
@@ -7796,11 +7796,11 @@ function V0(e, r) {
7796
7796
  }
7797
7797
  let B0 = "div";
7798
7798
  function W0(e, r) {
7799
- let n = We(), t = $t(), { id: o = `headlessui-radiogroup-${n}`, value: a, form: i, name: s, onChange: l, by: c, disabled: u = t || !1, defaultValue: d, tabIndex: p = 0, ...f } = e, h = Cu(c), [v, m] = ks(V0, { options: [] }), g = v.options, [b, C] = Zr(), [D, w] = Ua(), E = z(null), k = $e(E, r), S = Wa(d), [_, O] = Ba(a, l, S), P = ee(() => g.find((F) => !F.propsRef.current.disabled), [g]), M = ee(() => g.some((F) => h(F.propsRef.current.value, _)), [g, _]), N = U((F) => {
7799
+ let n = We(), t = $t(), { id: o = `headlessui-radiogroup-${n}`, value: a, form: i, name: s, onChange: l, by: c, disabled: u = t || !1, defaultValue: d, tabIndex: p = 0, ...f } = e, h = Cu(c), [v, m] = ks(V0, { options: [] }), g = v.options, [C, b] = Zr(), [D, w] = Ua(), E = z(null), k = $e(E, r), S = Wa(d), [T, _] = Ba(a, l, S), P = ee(() => g.find((F) => !F.propsRef.current.disabled), [g]), M = ee(() => g.some((F) => h(F.propsRef.current.value, T)), [g, T]), N = U((F) => {
7800
7800
  var V;
7801
- if (u || h(F, _)) return !1;
7801
+ if (u || h(F, T)) return !1;
7802
7802
  let I = (V = g.find((G) => h(G.propsRef.current.value, F))) == null ? void 0 : V.propsRef.current;
7803
- return I != null && I.disabled ? !1 : (O?.(F), !0);
7803
+ return I != null && I.disabled ? !1 : (_?.(F), !0);
7804
7804
  }), L = U((F) => {
7805
7805
  if (!E.current) return;
7806
7806
  let V = g.filter((I) => I.propsRef.current.disabled === !1).map((I) => I.element.current);
@@ -7830,34 +7830,34 @@ function W0(e, r) {
7830
7830
  }
7831
7831
  break;
7832
7832
  }
7833
- }), $ = U((F) => (m({ type: 0, ...F }), () => m({ type: 1, id: F.id }))), H = ee(() => ({ value: _, firstOption: P, containsCheckedOption: M, disabled: u, compare: h, tabIndex: p, ...v }), [_, P, M, u, h, p, v]), Y = ee(() => ({ registerOption: $, change: N }), [$, N]), R = { ref: k, id: o, role: "radiogroup", "aria-labelledby": b, "aria-describedby": D, onKeyDown: L }, q = Ne({ value: _ }), K = Z(() => {
7833
+ }), $ = U((F) => (m({ type: 0, ...F }), () => m({ type: 1, id: F.id }))), H = ee(() => ({ value: T, firstOption: P, containsCheckedOption: M, disabled: u, compare: h, tabIndex: p, ...v }), [T, P, M, u, h, p, v]), Y = ee(() => ({ registerOption: $, change: N }), [$, N]), R = { ref: k, id: o, role: "radiogroup", "aria-labelledby": C, "aria-describedby": D, onKeyDown: L }, q = Ne({ value: T }), K = Z(() => {
7834
7834
  if (S !== void 0) return N(S);
7835
7835
  }, [N, S]), le = xe();
7836
- return y.createElement(w, { name: "RadioGroup.Description" }, y.createElement(C, { name: "RadioGroup.Label" }, y.createElement(ol.Provider, { value: Y }, y.createElement(nl.Provider, { value: H }, s != null && y.createElement(za, { disabled: u, data: { [s]: _ || "on" }, overrides: { type: "radio", checked: _ != null }, form: i, onReset: K }), le({ ourProps: R, theirProps: f, slot: q, defaultTag: B0, name: "RadioGroup" })))));
7836
+ return y.createElement(w, { name: "RadioGroup.Description" }, y.createElement(b, { name: "RadioGroup.Label" }, y.createElement(ol.Provider, { value: Y }, y.createElement(nl.Provider, { value: H }, s != null && y.createElement(za, { disabled: u, data: { [s]: T || "on" }, overrides: { type: "radio", checked: T != null }, form: i, onReset: K }), le({ ourProps: R, theirProps: f, slot: q, defaultTag: B0, name: "RadioGroup" })))));
7837
7837
  }
7838
7838
  let z0 = "div";
7839
7839
  function j0(e, r) {
7840
7840
  var n;
7841
7841
  let t = rl("RadioGroup.Option"), o = al("RadioGroup.Option"), a = We(), { id: i = `headlessui-radiogroup-option-${a}`, value: s, disabled: l = t.disabled || !1, autoFocus: c = !1, ...u } = e, d = z(null), p = $e(d, r), [f, h] = Zr(), [v, m] = Ua(), g = vt({ value: s, disabled: l });
7842
7842
  Re(() => o.registerOption({ id: i, element: d, propsRef: g }), [i, o, d, g]);
7843
- let b = U((M) => {
7843
+ let C = U((M) => {
7844
7844
  var N;
7845
7845
  if (jn(M.currentTarget)) return M.preventDefault();
7846
7846
  o.change(s) && ((N = d.current) == null || N.focus());
7847
- }), C = ((n = t.firstOption) == null ? void 0 : n.id) === i, { isFocusVisible: D, focusProps: w } = Ft({ autoFocus: c }), { isHovered: E, hoverProps: k } = jt({ isDisabled: l }), S = t.compare(t.value, s), _ = gt({ ref: p, id: i, role: "radio", "aria-checked": S ? "true" : "false", "aria-labelledby": f, "aria-describedby": v, "aria-disabled": l ? !0 : void 0, tabIndex: l ? -1 : S || !t.containsCheckedOption && C ? t.tabIndex : -1, onClick: l ? void 0 : b, autoFocus: c }, w, k), O = Ne({ checked: S, disabled: l, active: D, hover: E, focus: D, autofocus: c }), P = xe();
7848
- return y.createElement(m, { name: "RadioGroup.Description" }, y.createElement(h, { name: "RadioGroup.Label" }, P({ ourProps: _, theirProps: u, slot: O, defaultTag: z0, name: "RadioGroup.Option" })));
7847
+ }), b = ((n = t.firstOption) == null ? void 0 : n.id) === i, { isFocusVisible: D, focusProps: w } = Ft({ autoFocus: c }), { isHovered: E, hoverProps: k } = jt({ isDisabled: l }), S = t.compare(t.value, s), T = gt({ ref: p, id: i, role: "radio", "aria-checked": S ? "true" : "false", "aria-labelledby": f, "aria-describedby": v, "aria-disabled": l ? !0 : void 0, tabIndex: l ? -1 : S || !t.containsCheckedOption && b ? t.tabIndex : -1, onClick: l ? void 0 : C, autoFocus: c }, w, k), _ = Ne({ checked: S, disabled: l, active: D, hover: E, focus: D, autofocus: c }), P = xe();
7848
+ return y.createElement(m, { name: "RadioGroup.Description" }, y.createElement(h, { name: "RadioGroup.Label" }, P({ ourProps: T, theirProps: u, slot: _, defaultTag: z0, name: "RadioGroup.Option" })));
7849
7849
  }
7850
7850
  let U0 = "span";
7851
7851
  function Z0(e, r) {
7852
7852
  var n;
7853
7853
  let t = rl("Radio"), o = al("Radio"), a = We(), i = vr(), s = $t(), { id: l = i || `headlessui-radio-${a}`, value: c, disabled: u = t.disabled || s || !1, autoFocus: d = !1, ...p } = e, f = z(null), h = $e(f, r), v = kn(), m = Ur(), g = vt({ value: c, disabled: u });
7854
7854
  Re(() => o.registerOption({ id: l, element: f, propsRef: g }), [l, o, f, g]);
7855
- let b = U((P) => {
7855
+ let C = U((P) => {
7856
7856
  var M;
7857
7857
  if (jn(P.currentTarget)) return P.preventDefault();
7858
7858
  o.change(c) && ((M = f.current) == null || M.focus());
7859
- }), { isFocusVisible: C, focusProps: D } = Ft({ autoFocus: d }), { isHovered: w, hoverProps: E } = jt({ isDisabled: u }), k = ((n = t.firstOption) == null ? void 0 : n.id) === l, S = t.compare(t.value, c), _ = gt({ ref: h, id: l, role: "radio", "aria-checked": S ? "true" : "false", "aria-labelledby": v, "aria-describedby": m, "aria-disabled": u ? !0 : void 0, tabIndex: u ? -1 : S || !t.containsCheckedOption && k ? t.tabIndex : -1, autoFocus: d, onClick: u ? void 0 : b }, D, E), O = Ne({ checked: S, disabled: u, hover: w, focus: C, autofocus: d });
7860
- return xe()({ ourProps: _, theirProps: p, slot: O, defaultTag: U0, name: "Radio" });
7859
+ }), { isFocusVisible: b, focusProps: D } = Ft({ autoFocus: d }), { isHovered: w, hoverProps: E } = jt({ isDisabled: u }), k = ((n = t.firstOption) == null ? void 0 : n.id) === l, S = t.compare(t.value, c), T = gt({ ref: h, id: l, role: "radio", "aria-checked": S ? "true" : "false", "aria-labelledby": v, "aria-describedby": m, "aria-disabled": u ? !0 : void 0, tabIndex: u ? -1 : S || !t.containsCheckedOption && k ? t.tabIndex : -1, autoFocus: d, onClick: u ? void 0 : C }, D, E), _ = Ne({ checked: S, disabled: u, hover: w, focus: b, autofocus: d });
7860
+ return xe()({ ourProps: T, theirProps: p, slot: _, defaultTag: U0, name: "Radio" });
7861
7861
  }
7862
7862
  let K0 = De(W0), G0 = De(j0), Dd = De(Z0), q0 = gr, Q0 = $s, X0 = Object.assign(K0, { Option: G0, Radio: Dd, Label: q0, Description: Q0 }), il = _e(null);
7863
7863
  il.displayName = "GroupContext";
@@ -7872,16 +7872,16 @@ function e7(e) {
7872
7872
  let t7 = "button";
7873
7873
  function n7(e, r) {
7874
7874
  var n;
7875
- let t = We(), o = vr(), a = $t(), { id: i = o || `headlessui-switch-${t}`, disabled: s = a || !1, checked: l, defaultChecked: c, onChange: u, name: d, value: p, form: f, autoFocus: h = !1, ...v } = e, m = Ce(il), [g, b] = ae(null), C = z(null), D = $e(C, r, m === null ? null : m.setSwitch, b), w = Wa(c), [E, k] = Ba(l, u, w ?? !1), S = Qn(), [_, O] = ae(!1), P = U(() => {
7876
- O(!0), k?.(!E), S.nextFrame(() => {
7877
- O(!1);
7875
+ let t = We(), o = vr(), a = $t(), { id: i = o || `headlessui-switch-${t}`, disabled: s = a || !1, checked: l, defaultChecked: c, onChange: u, name: d, value: p, form: f, autoFocus: h = !1, ...v } = e, m = Ce(il), [g, C] = ae(null), b = z(null), D = $e(b, r, m === null ? null : m.setSwitch, C), w = Wa(c), [E, k] = Ba(l, u, w ?? !1), S = Qn(), [T, _] = ae(!1), P = U(() => {
7876
+ _(!0), k?.(!E), S.nextFrame(() => {
7877
+ _(!1);
7878
7878
  });
7879
7879
  }), M = U((W) => {
7880
7880
  if (jn(W.currentTarget)) return W.preventDefault();
7881
7881
  W.preventDefault(), P();
7882
7882
  }), N = U((W) => {
7883
7883
  W.key === se.Space ? (W.preventDefault(), P()) : W.key === se.Enter && As(W.currentTarget);
7884
- }), L = U((W) => W.preventDefault()), $ = kn(), H = Ur(), { isFocusVisible: Y, focusProps: R } = Ft({ autoFocus: h }), { isHovered: q, hoverProps: K } = jt({ isDisabled: s }), { pressed: le, pressProps: F } = jr({ disabled: s }), V = Ne({ checked: E, disabled: s, hover: q, focus: Y, active: le, autofocus: h, changing: _ }), I = gt({ id: i, ref: D, role: "switch", type: qa(e, g), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": E, "aria-labelledby": $, "aria-describedby": H, disabled: s || void 0, autoFocus: h, onClick: M, onKeyUp: N, onKeyPress: L }, R, K, F), G = Z(() => {
7884
+ }), L = U((W) => W.preventDefault()), $ = kn(), H = Ur(), { isFocusVisible: Y, focusProps: R } = Ft({ autoFocus: h }), { isHovered: q, hoverProps: K } = jt({ isDisabled: s }), { pressed: le, pressProps: F } = jr({ disabled: s }), V = Ne({ checked: E, disabled: s, hover: q, focus: Y, active: le, autofocus: h, changing: T }), I = gt({ id: i, ref: D, role: "switch", type: qa(e, g), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": E, "aria-labelledby": $, "aria-describedby": H, disabled: s || void 0, autoFocus: h, onClick: M, onKeyUp: N, onKeyPress: L }, R, K, F), G = Z(() => {
7885
7885
  if (w !== void 0) return k?.(w);
7886
7886
  }, [k, w]), ne = xe();
7887
7887
  return y.createElement(y.Fragment, null, d != null && y.createElement(za, { disabled: s, data: { [d]: p || "on" }, overrides: { type: "checkbox", checked: E }, form: f, onReset: G }), ne({ ourProps: I, theirProps: v, slot: V, defaultTag: t7, name: "Switch" }));
@@ -7988,22 +7988,22 @@ function g7(e, r) {
7988
7988
  let { defaultIndex: n = 0, vertical: t = !1, manual: o = !1, onChange: a, selectedIndex: i = null, ...s } = e;
7989
7989
  const l = t ? "vertical" : "horizontal", c = o ? "manual" : "auto";
7990
7990
  let u = i !== null, d = vt({ isControlled: u }), p = $e(r), [f, h] = ks(m7, { info: d, selectedIndex: i ?? n, tabs: [], panels: [] }), v = Ne({ selectedIndex: f.selectedIndex }), m = vt(a || (() => {
7991
- })), g = vt(f.tabs), b = ee(() => ({ orientation: l, activation: c, ...f }), [l, c, f]), C = U((O) => (h({ type: 1, tab: O }), () => h({ type: 2, tab: O }))), D = U((O) => (h({ type: 3, panel: O }), () => h({ type: 4, panel: O }))), w = U((O) => {
7992
- E.current !== O && m.current(O), u || h({ type: 0, index: O });
7993
- }), E = vt(u ? e.selectedIndex : f.selectedIndex), k = ee(() => ({ registerTab: C, registerPanel: D, change: w }), []);
7991
+ })), g = vt(f.tabs), C = ee(() => ({ orientation: l, activation: c, ...f }), [l, c, f]), b = U((_) => (h({ type: 1, tab: _ }), () => h({ type: 2, tab: _ }))), D = U((_) => (h({ type: 3, panel: _ }), () => h({ type: 4, panel: _ }))), w = U((_) => {
7992
+ E.current !== _ && m.current(_), u || h({ type: 0, index: _ });
7993
+ }), E = vt(u ? e.selectedIndex : f.selectedIndex), k = ee(() => ({ registerTab: b, registerPanel: D, change: w }), []);
7994
7994
  Re(() => {
7995
7995
  h({ type: 0, index: i ?? n });
7996
7996
  }, [i]), Re(() => {
7997
7997
  if (E.current === void 0 || f.tabs.length <= 0) return;
7998
- let O = $n(f.tabs, (P) => P.current);
7999
- O.some((P, M) => f.tabs[M] !== P) && w(O.indexOf(f.tabs[E.current]));
7998
+ let _ = $n(f.tabs, (P) => P.current);
7999
+ _.some((P, M) => f.tabs[M] !== P) && w(_.indexOf(f.tabs[E.current]));
8000
8000
  });
8001
- let S = { ref: p }, _ = xe();
8002
- return y.createElement(u7, null, y.createElement(ll.Provider, { value: k }, y.createElement(sl.Provider, { value: b }, b.tabs.length <= 0 && y.createElement(l7, { onFocus: () => {
8003
- var O, P;
8004
- for (let M of g.current) if (((O = M.current) == null ? void 0 : O.tabIndex) === 0) return (P = M.current) == null || P.focus(), !0;
8001
+ let S = { ref: p }, T = xe();
8002
+ return y.createElement(u7, null, y.createElement(ll.Provider, { value: k }, y.createElement(sl.Provider, { value: C }, C.tabs.length <= 0 && y.createElement(l7, { onFocus: () => {
8003
+ var _, P;
8004
+ for (let M of g.current) if (((_ = M.current) == null ? void 0 : _.tabIndex) === 0) return (P = M.current) == null || P.focus(), !0;
8005
8005
  return !1;
8006
- } }), _({ ourProps: S, theirProps: s, slot: v, defaultTag: v7, name: "Tabs" }))));
8006
+ } }), T({ ourProps: S, theirProps: s, slot: v, defaultTag: v7, name: "Tabs" }))));
8007
8007
  }
8008
8008
  let b7 = "div";
8009
8009
  function C7(e, r) {
@@ -8013,14 +8013,14 @@ function C7(e, r) {
8013
8013
  let y7 = "button";
8014
8014
  function w7(e, r) {
8015
8015
  var n, t;
8016
- let o = We(), { id: a = `headlessui-tabs-tab-${o}`, disabled: i = !1, autoFocus: s = !1, ...l } = e, { orientation: c, activation: u, selectedIndex: d, tabs: p, panels: f } = Ar("Tab"), h = cl("Tab"), v = Ar("Tab"), [m, g] = ae(null), b = z(null), C = $e(b, r, g);
8017
- Re(() => h.registerTab(b), [h, b]);
8018
- let D = Ed("tabs"), w = p.indexOf(b);
8016
+ let o = We(), { id: a = `headlessui-tabs-tab-${o}`, disabled: i = !1, autoFocus: s = !1, ...l } = e, { orientation: c, activation: u, selectedIndex: d, tabs: p, panels: f } = Ar("Tab"), h = cl("Tab"), v = Ar("Tab"), [m, g] = ae(null), C = z(null), b = $e(C, r, g);
8017
+ Re(() => h.registerTab(C), [h, C]);
8018
+ let D = Ed("tabs"), w = p.indexOf(C);
8019
8019
  w === -1 && (w = D);
8020
8020
  let E = w === d, k = U((K) => {
8021
8021
  let le = K();
8022
8022
  if (le === Jt.Success && u === "auto") {
8023
- let F = zn(b.current), V = v.tabs.findIndex((I) => I.current === F);
8023
+ let F = zn(C.current), V = v.tabs.findIndex((I) => I.current === F);
8024
8024
  V !== -1 && h.change(V);
8025
8025
  }
8026
8026
  return le;
@@ -8043,14 +8043,14 @@ function w7(e, r) {
8043
8043
  }, horizontal() {
8044
8044
  return K.key === se.ArrowLeft ? mt(le, Ve.Previous | Ve.WrapAround) : K.key === se.ArrowRight ? mt(le, Ve.Next | Ve.WrapAround) : Jt.Error;
8045
8045
  } })) === Jt.Success) return K.preventDefault();
8046
- }), _ = z(!1), O = U(() => {
8046
+ }), T = z(!1), _ = U(() => {
8047
8047
  var K;
8048
- _.current || (_.current = !0, (K = b.current) == null || K.focus({ preventScroll: !0 }), h.change(w), Fs(() => {
8049
- _.current = !1;
8048
+ T.current || (T.current = !0, (K = C.current) == null || K.focus({ preventScroll: !0 }), h.change(w), Fs(() => {
8049
+ T.current = !1;
8050
8050
  }));
8051
8051
  }), P = U((K) => {
8052
8052
  K.preventDefault();
8053
- }), { isFocusVisible: M, focusProps: N } = Ft({ autoFocus: s }), { isHovered: L, hoverProps: $ } = jt({ isDisabled: i }), { pressed: H, pressProps: Y } = jr({ disabled: i }), R = Ne({ selected: E, hover: L, active: H, focus: M, autofocus: s, disabled: i }), q = gt({ ref: C, onKeyDown: S, onMouseDown: P, onClick: O, id: a, role: "tab", type: qa(e, m), "aria-controls": (t = (n = f[w]) == null ? void 0 : n.current) == null ? void 0 : t.id, "aria-selected": E, tabIndex: E ? 0 : -1, disabled: i || void 0, autoFocus: s }, N, $, Y);
8053
+ }), { isFocusVisible: M, focusProps: N } = Ft({ autoFocus: s }), { isHovered: L, hoverProps: $ } = jt({ isDisabled: i }), { pressed: H, pressProps: Y } = jr({ disabled: i }), R = Ne({ selected: E, hover: L, active: H, focus: M, autofocus: s, disabled: i }), q = gt({ ref: b, onKeyDown: S, onMouseDown: P, onClick: _, id: a, role: "tab", type: qa(e, m), "aria-controls": (t = (n = f[w]) == null ? void 0 : n.current) == null ? void 0 : t.id, "aria-selected": E, tabIndex: E ? 0 : -1, disabled: i || void 0, autoFocus: s }, N, $, Y);
8054
8054
  return xe()({ ourProps: q, theirProps: l, slot: R, defaultTag: y7, name: "Tabs.Tab" });
8055
8055
  }
8056
8056
  let x7 = "div";
@@ -8065,8 +8065,8 @@ function k7(e, r) {
8065
8065
  Re(() => f.registerPanel(h), [f, h]);
8066
8066
  let m = Ed("panels"), g = p.indexOf(h);
8067
8067
  g === -1 && (g = m);
8068
- let b = g === u, { isFocusVisible: C, focusProps: D } = Ft(), w = Ne({ selected: b, focus: C }), E = gt({ ref: v, id: s, role: "tabpanel", "aria-labelledby": (t = (n = d[g]) == null ? void 0 : n.current) == null ? void 0 : t.id, tabIndex: b ? l : -1 }, D), k = xe();
8069
- return !b && ((o = c.unmount) == null || o) && !((a = c.static) != null && a) ? y.createElement(xn, { "aria-hidden": "true", ...E }) : k({ ourProps: E, theirProps: c, slot: w, defaultTag: S7, features: E7, visible: b, name: "Tabs.Panel" });
8068
+ let C = g === u, { isFocusVisible: b, focusProps: D } = Ft(), w = Ne({ selected: C, focus: b }), E = gt({ ref: v, id: s, role: "tabpanel", "aria-labelledby": (t = (n = d[g]) == null ? void 0 : n.current) == null ? void 0 : t.id, tabIndex: C ? l : -1 }, D), k = xe();
8069
+ return !C && ((o = c.unmount) == null || o) && !((a = c.static) != null && a) ? y.createElement(xn, { "aria-hidden": "true", ...E }) : k({ ourProps: E, theirProps: c, slot: w, defaultTag: S7, features: E7, visible: C, name: "Tabs.Panel" });
8070
8070
  }
8071
8071
  let M7 = De(w7), kd = De(g7), Md = De(C7), Pd = De(D7), Od = De(k7), P7 = Object.assign(M7, { Group: kd, List: Md, Panels: Pd, Panel: Od }), O7 = "textarea";
8072
8072
  function T7(e, r) {
@@ -8138,7 +8138,7 @@ const L7 = {
8138
8138
  className: a,
8139
8139
  children: i,
8140
8140
  ...s
8141
- }) => /* @__PURE__ */ T(
8141
+ }) => /* @__PURE__ */ O(
8142
8142
  au,
8143
8143
  {
8144
8144
  className: de(
@@ -8157,9 +8157,9 @@ const L7 = {
8157
8157
  ),
8158
8158
  ...s,
8159
8159
  children: /* @__PURE__ */ Me("div", { className: A("flex flex-nowrap items-center justify-center gap-x-sm", R7[e]), children: [
8160
- t && /* @__PURE__ */ T("span", { className: A(Lc[r]), children: /* @__PURE__ */ T(t, {}) }),
8160
+ t && /* @__PURE__ */ O("span", { className: A(Lc[r]), children: /* @__PURE__ */ O(t, {}) }),
8161
8161
  i,
8162
- o && /* @__PURE__ */ T("span", { className: A(Lc[r]), children: /* @__PURE__ */ T(o, {}) })
8162
+ o && /* @__PURE__ */ O("span", { className: A(Lc[r]), children: /* @__PURE__ */ O(o, {}) })
8163
8163
  ] })
8164
8164
  }
8165
8165
  );
@@ -8173,7 +8173,7 @@ const Td = ({ className: e, ...r }) => /* @__PURE__ */ Me(
8173
8173
  viewBox: "0 0 24 24",
8174
8174
  ...r,
8175
8175
  children: [
8176
- /* @__PURE__ */ T(
8176
+ /* @__PURE__ */ O(
8177
8177
  "circle",
8178
8178
  {
8179
8179
  className: "opacity-25",
@@ -8184,7 +8184,7 @@ const Td = ({ className: e, ...r }) => /* @__PURE__ */ Me(
8184
8184
  strokeWidth: "4"
8185
8185
  }
8186
8186
  ),
8187
- /* @__PURE__ */ T(
8187
+ /* @__PURE__ */ O(
8188
8188
  "path",
8189
8189
  {
8190
8190
  className: "opacity-75",
@@ -8205,7 +8205,7 @@ const F7 = {
8205
8205
  className: e,
8206
8206
  size: r = B.Md,
8207
8207
  ...n
8208
- }) => /* @__PURE__ */ T(
8208
+ }) => /* @__PURE__ */ O(
8209
8209
  "div",
8210
8210
  {
8211
8211
  className: de(
@@ -8214,7 +8214,7 @@ const F7 = {
8214
8214
  e
8215
8215
  ),
8216
8216
  ...n,
8217
- children: /* @__PURE__ */ T(Td, { className: "animate-spin" })
8217
+ children: /* @__PURE__ */ O(Td, { className: "animate-spin" })
8218
8218
  }
8219
8219
  );
8220
8220
  _d.displayName = "Spinner";
@@ -8291,7 +8291,7 @@ const A7 = (e) => /* @__PURE__ */ x.createElement("svg", { width: "1em", height:
8291
8291
  ...a
8292
8292
  }) => {
8293
8293
  const i = r ? B4[r] : void 0, s = e === J.Spinner ? _d : V4[e];
8294
- return /* @__PURE__ */ T(
8294
+ return /* @__PURE__ */ O(
8295
8295
  s,
8296
8296
  {
8297
8297
  width: i,
@@ -8306,7 +8306,7 @@ const A7 = (e) => /* @__PURE__ */ x.createElement("svg", { width: "1em", height:
8306
8306
  function Ld(e) {
8307
8307
  return e == null;
8308
8308
  }
8309
- const ai = ({ value: e, hint: r, ...n }) => Ld(e) ? /* @__PURE__ */ T(et, { color: be.Muted, variant: ke.Xxs, ...n, children: r }) : null;
8309
+ const ai = ({ value: e, hint: r, ...n }) => Ld(e) ? /* @__PURE__ */ O(et, { color: be.Muted, variant: ke.Xxs, ...n, children: r }) : null;
8310
8310
  ai.displayName = "UnsetHint";
8311
8311
  const W4 = {
8312
8312
  [B.Xs]: A("w-3 h-3"),
@@ -8329,7 +8329,7 @@ const W4 = {
8329
8329
  showUnsetHint: s,
8330
8330
  ...l
8331
8331
  }) => /* @__PURE__ */ Me(Cr, { className: "group flex items-center gap-2", children: [
8332
- /* @__PURE__ */ T(
8332
+ /* @__PURE__ */ O(
8333
8333
  r5,
8334
8334
  {
8335
8335
  checked: e,
@@ -8352,7 +8352,7 @@ const W4 = {
8352
8352
  o
8353
8353
  ),
8354
8354
  ...l,
8355
- children: /* @__PURE__ */ T(
8355
+ children: /* @__PURE__ */ O(
8356
8356
  ul,
8357
8357
  {
8358
8358
  name: J.Check,
@@ -8365,7 +8365,7 @@ const W4 = {
8365
8365
  )
8366
8366
  }
8367
8367
  ),
8368
- i && /* @__PURE__ */ T(
8368
+ i && /* @__PURE__ */ O(
8369
8369
  gr,
8370
8370
  {
8371
8371
  className: de(
@@ -8377,14 +8377,14 @@ const W4 = {
8377
8377
  children: i
8378
8378
  }
8379
8379
  ),
8380
- s && /* @__PURE__ */ T(ai, { value: e, hint: "Click the checkbox to set a value" })
8380
+ s && /* @__PURE__ */ O(ai, { value: e, hint: "Click the checkbox to set a value" })
8381
8381
  ] });
8382
8382
  Rd.displayName = "Checkbox";
8383
8383
  const Nd = ({
8384
8384
  children: e,
8385
8385
  className: r,
8386
8386
  ...n
8387
- }) => /* @__PURE__ */ T("span", { className: A("cursor-pointer", r), ...n, children: e });
8387
+ }) => /* @__PURE__ */ O("span", { className: A("cursor-pointer", r), ...n, children: e });
8388
8388
  Nd.displayName = "Clickable";
8389
8389
  const Id = 6048e5, j4 = 864e5, ii = 6e4, si = 36e5, U4 = 1e3, Rc = Symbol.for("constructDateFrom");
8390
8390
  function Te(e, r) {
@@ -11252,29 +11252,29 @@ function Zh(e, r, n, t) {
11252
11252
  }, u = [new rh(t?.in, n)], d = r.match(Bh).map((m) => {
11253
11253
  const g = m[0];
11254
11254
  if (g in ds) {
11255
- const b = ds[g];
11256
- return b(m, i.formatLong);
11255
+ const C = ds[g];
11256
+ return C(m, i.formatLong);
11257
11257
  }
11258
11258
  return m;
11259
11259
  }).join("").match(Vh), p = [];
11260
11260
  for (let m of d) {
11261
- const g = m[0], b = Yh[g];
11262
- if (b) {
11263
- const { incompatibleTokens: C } = b;
11264
- if (Array.isArray(C)) {
11261
+ const g = m[0], C = Yh[g];
11262
+ if (C) {
11263
+ const { incompatibleTokens: b } = C;
11264
+ if (Array.isArray(b)) {
11265
11265
  const w = p.find(
11266
- (E) => C.includes(E.token) || E.token === g
11266
+ (E) => b.includes(E.token) || E.token === g
11267
11267
  );
11268
11268
  if (w)
11269
11269
  throw new RangeError(
11270
11270
  `The format string mustn't contain \`${w.fullToken}\` and \`${m}\` at the same time`
11271
11271
  );
11272
- } else if (b.incompatibleTokens === "*" && p.length > 0)
11272
+ } else if (C.incompatibleTokens === "*" && p.length > 0)
11273
11273
  throw new RangeError(
11274
11274
  `The format string mustn't contain \`${m}\` and any other token at the same time`
11275
11275
  );
11276
11276
  p.push({ token: g, fullToken: m });
11277
- const D = b.run(
11277
+ const D = C.run(
11278
11278
  e,
11279
11279
  m,
11280
11280
  i.match,
@@ -11296,8 +11296,8 @@ function Zh(e, r, n, t) {
11296
11296
  }
11297
11297
  if (e.length > 0 && jh.test(e))
11298
11298
  return o();
11299
- const f = u.map((m) => m.priority).sort((m, g) => g - m).filter((m, g, b) => b.indexOf(m) === g).map(
11300
- (m) => u.filter((g) => g.priority === m).sort((g, b) => b.subPriority - g.subPriority)
11299
+ const f = u.map((m) => m.priority).sort((m, g) => g - m).filter((m, g, C) => C.indexOf(m) === g).map(
11300
+ (m) => u.filter((g) => g.priority === m).sort((g, C) => C.subPriority - g.subPriority)
11301
11301
  ).map((m) => m[0]);
11302
11302
  let h = te(n, t?.in);
11303
11303
  if (isNaN(+h)) return o();
@@ -11582,19 +11582,19 @@ const Mm = /* @__PURE__ */ x.forwardRef(function(r, n) {
11582
11582
  ...m
11583
11583
  } = r;
11584
11584
  process.env.NODE_ENV !== "production" && (n || Em("The `ref` prop is required for `FloatingArrow`."));
11585
- const g = Qd(), [b, C] = x.useState(!1);
11585
+ const g = Qd(), [C, b] = x.useState(!1);
11586
11586
  if (Na(() => {
11587
11587
  if (!o) return;
11588
- It(o).direction === "rtl" && C(!0);
11588
+ It(o).direction === "rtl" && b(!0);
11589
11589
  }, [o]), !o)
11590
11590
  return null;
11591
11591
  const [D, w] = t.split("-"), E = D === "top" || D === "bottom";
11592
11592
  let k = d;
11593
11593
  (E && i != null && i.x || !E && i != null && i.y) && (k = null);
11594
- const S = u * 2, _ = S / 2, O = s / 2 * (c / -8 + 1), P = l / 2 * c / 4, M = !!f, N = k && w === "end" ? "bottom" : "top";
11594
+ const S = u * 2, T = S / 2, _ = s / 2 * (c / -8 + 1), P = l / 2 * c / 4, M = !!f, N = k && w === "end" ? "bottom" : "top";
11595
11595
  let L = k && w === "end" ? "right" : "left";
11596
- k && b && (L = w === "end" ? "left" : "right");
11597
- const $ = a?.x != null ? k || a.x : "", H = a?.y != null ? k || a.y : "", Y = f || "M0,0" + (" H" + s) + (" L" + (s - O) + "," + (l - P)) + (" Q" + s / 2 + "," + l + " " + O + "," + (l - P)) + " Z", R = {
11596
+ k && C && (L = w === "end" ? "left" : "right");
11597
+ const $ = a?.x != null ? k || a.x : "", H = a?.y != null ? k || a.y : "", Y = f || "M0,0" + (" H" + s) + (" L" + (s - _) + "," + (l - P)) + (" Q" + s / 2 + "," + l + " " + _ + "," + (l - P)) + " Z", R = {
11598
11598
  top: M ? "rotate(180deg)" : "",
11599
11599
  left: M ? "rotate(90deg)" : "rotate(-90deg)",
11600
11600
  bottom: M ? "" : "rotate(180deg)",
@@ -11616,20 +11616,20 @@ const Mm = /* @__PURE__ */ x.forwardRef(function(r, n) {
11616
11616
  transform: [R, h].filter((q) => !!q).join(" "),
11617
11617
  ...v
11618
11618
  },
11619
- children: [S > 0 && /* @__PURE__ */ T("path", {
11619
+ children: [S > 0 && /* @__PURE__ */ O("path", {
11620
11620
  clipPath: "url(#" + g + ")",
11621
11621
  fill: "none",
11622
11622
  stroke: p,
11623
11623
  strokeWidth: S + (f ? 0 : 1),
11624
11624
  d: Y
11625
- }), /* @__PURE__ */ T("path", {
11625
+ }), /* @__PURE__ */ O("path", {
11626
11626
  stroke: S && !f ? m.fill : "none",
11627
11627
  d: Y
11628
- }), /* @__PURE__ */ T("clipPath", {
11628
+ }), /* @__PURE__ */ O("clipPath", {
11629
11629
  id: g,
11630
- children: /* @__PURE__ */ T("rect", {
11631
- x: -_,
11632
- y: _ * (M ? -1 : 1),
11630
+ children: /* @__PURE__ */ O("rect", {
11631
+ x: -T,
11632
+ y: T * (M ? -1 : 1),
11633
11633
  width: s + S,
11634
11634
  height: s
11635
11635
  })
@@ -11713,18 +11713,18 @@ function Nm(e) {
11713
11713
  reference: s
11714
11714
  }
11715
11715
  }
11716
- }), h = x.useCallback((C) => {
11717
- const D = Ze(C) ? {
11718
- getBoundingClientRect: () => C.getBoundingClientRect(),
11719
- getClientRects: () => C.getClientRects(),
11720
- contextElement: C
11721
- } : C;
11716
+ }), h = x.useCallback((b) => {
11717
+ const D = Ze(b) ? {
11718
+ getBoundingClientRect: () => b.getBoundingClientRect(),
11719
+ getClientRects: () => b.getClientRects(),
11720
+ contextElement: b
11721
+ } : b;
11722
11722
  l(D), f.refs.setReference(D);
11723
- }, [f.refs]), v = x.useCallback((C) => {
11724
- (Ze(C) || C === null) && (d.current = C, i(C)), (Ze(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
11723
+ }, [f.refs]), v = x.useCallback((b) => {
11724
+ (Ze(b) || b === null) && (d.current = b, i(b)), (Ze(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
11725
11725
  // `null` to support `positionReference` + an unstable `reference`
11726
11726
  // callback ref.
11727
- C !== null && !Ze(C)) && f.refs.setReference(C);
11727
+ b !== null && !Ze(b)) && f.refs.setReference(b);
11728
11728
  }, [f.refs]), m = x.useMemo(() => ({
11729
11729
  ...f.refs,
11730
11730
  setReference: v,
@@ -11733,7 +11733,7 @@ function Nm(e) {
11733
11733
  }), [f.refs, v, h]), g = x.useMemo(() => ({
11734
11734
  ...f.elements,
11735
11735
  domReference: u
11736
- }), [f.elements, u]), b = x.useMemo(() => ({
11736
+ }), [f.elements, u]), C = x.useMemo(() => ({
11737
11737
  ...f,
11738
11738
  ...t,
11739
11739
  refs: m,
@@ -11741,15 +11741,15 @@ function Nm(e) {
11741
11741
  nodeId: r
11742
11742
  }), [f, m, g, r, t]);
11743
11743
  return Na(() => {
11744
- t.dataRef.current.floatingContext = b;
11745
- const C = p?.nodesRef.current.find((D) => D.id === r);
11746
- C && (C.context = b);
11744
+ t.dataRef.current.floatingContext = C;
11745
+ const b = p?.nodesRef.current.find((D) => D.id === r);
11746
+ b && (b.context = C);
11747
11747
  }), x.useMemo(() => ({
11748
11748
  ...f,
11749
- context: b,
11749
+ context: C,
11750
11750
  refs: m,
11751
11751
  elements: g
11752
- }), [f, m, g, b]);
11752
+ }), [f, m, g, C]);
11753
11753
  }
11754
11754
  var ps = function(r, n) {
11755
11755
  return ps = Object.setPrototypeOf || {
@@ -12758,41 +12758,41 @@ var s9 = (
12758
12758
  }, n.handleKeyboardNavigation = function(t, o, a) {
12759
12759
  var i, s = n.props, l = s.selected, c = s.preSelection, u = s.setPreSelection, d = s.minDate, p = s.maxDate, f = s.showFourColumnMonthYearPicker, h = s.showTwoColumnMonthYearPicker;
12760
12760
  if (c) {
12761
- var v = s1(f, h), m = n.getVerticalOffset(v), g = (i = $i[v]) === null || i === void 0 ? void 0 : i.grid, b = function(k, S, _) {
12762
- var O, P, M = S, N = _;
12761
+ var v = s1(f, h), m = n.getVerticalOffset(v), g = (i = $i[v]) === null || i === void 0 ? void 0 : i.grid, C = function(k, S, T) {
12762
+ var _, P, M = S, N = T;
12763
12763
  switch (k) {
12764
12764
  case j.ArrowRight:
12765
- M = Wt(S, la), N = _ === 11 ? 0 : _ + la;
12765
+ M = Wt(S, la), N = T === 11 ? 0 : T + la;
12766
12766
  break;
12767
12767
  case j.ArrowLeft:
12768
- M = cr(S, la), N = _ === 0 ? 11 : _ - la;
12768
+ M = cr(S, la), N = T === 0 ? 11 : T - la;
12769
12769
  break;
12770
12770
  case j.ArrowUp:
12771
- M = cr(S, m), N = !((O = g?.[0]) === null || O === void 0) && O.includes(_) ? _ + 12 - m : _ - m;
12771
+ M = cr(S, m), N = !((_ = g?.[0]) === null || _ === void 0) && _.includes(T) ? T + 12 - m : T - m;
12772
12772
  break;
12773
12773
  case j.ArrowDown:
12774
- M = Wt(S, m), N = !((P = g?.[g.length - 1]) === null || P === void 0) && P.includes(_) ? _ - 12 + m : _ + m;
12774
+ M = Wt(S, m), N = !((P = g?.[g.length - 1]) === null || P === void 0) && P.includes(T) ? T - 12 + m : T + m;
12775
12775
  break;
12776
12776
  }
12777
12777
  return { newCalculatedDate: M, newCalculatedMonth: N };
12778
- }, C = function(k, S, _) {
12779
- for (var O = 40, P = k, M = !1, N = 0, L = b(P, S, _), $ = L.newCalculatedDate, H = L.newCalculatedMonth; !M; ) {
12780
- if (N >= O) {
12781
- $ = S, H = _;
12778
+ }, b = function(k, S, T) {
12779
+ for (var _ = 40, P = k, M = !1, N = 0, L = C(P, S, T), $ = L.newCalculatedDate, H = L.newCalculatedMonth; !M; ) {
12780
+ if (N >= _) {
12781
+ $ = S, H = T;
12782
12782
  break;
12783
12783
  }
12784
12784
  if (d && $ < d) {
12785
12785
  P = j.ArrowRight;
12786
- var Y = b(P, $, H);
12786
+ var Y = C(P, $, H);
12787
12787
  $ = Y.newCalculatedDate, H = Y.newCalculatedMonth;
12788
12788
  }
12789
12789
  if (p && $ > p) {
12790
12790
  P = j.ArrowLeft;
12791
- var Y = b(P, $, H);
12791
+ var Y = C(P, $, H);
12792
12792
  $ = Y.newCalculatedDate, H = Y.newCalculatedMonth;
12793
12793
  }
12794
12794
  if (Km($, n.props)) {
12795
- var Y = b(P, $, H);
12795
+ var Y = C(P, $, H);
12796
12796
  $ = Y.newCalculatedDate, H = Y.newCalculatedMonth;
12797
12797
  } else
12798
12798
  M = !0;
@@ -12804,7 +12804,7 @@ var s9 = (
12804
12804
  n.isMonthDisabled(a) || (n.onMonthClick(t, a), u?.(l));
12805
12805
  return;
12806
12806
  }
12807
- var D = C(o, c, a), w = D.newCalculatedDate, E = D.newCalculatedMonth;
12807
+ var D = b(o, c, a), w = D.newCalculatedDate, E = D.newCalculatedMonth;
12808
12808
  switch (o) {
12809
12809
  case j.ArrowRight:
12810
12810
  case j.ArrowLeft:
@@ -13753,11 +13753,11 @@ var v9 = (
13753
13753
  "react-datepicker__navigation--previous"
13754
13754
  ], h = t.decreaseMonth;
13755
13755
  (t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker) && (h = t.decreaseYear), d && t.props.showDisabledMonthNavigation && (f.push("react-datepicker__navigation--previous--disabled"), h = void 0);
13756
- var v = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, m = t.props, g = m.previousMonthButtonLabel, b = g === void 0 ? r.defaultProps.previousMonthButtonLabel : g, C = m.previousYearButtonLabel, D = C === void 0 ? r.defaultProps.previousYearButtonLabel : C, w = t.props, E = w.previousMonthAriaLabel, k = E === void 0 ? typeof b == "string" ? b : "Previous Month" : E, S = w.previousYearAriaLabel, _ = S === void 0 ? typeof D == "string" ? D : "Previous Year" : S;
13756
+ var v = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, m = t.props, g = m.previousMonthButtonLabel, C = g === void 0 ? r.defaultProps.previousMonthButtonLabel : g, b = m.previousYearButtonLabel, D = b === void 0 ? r.defaultProps.previousYearButtonLabel : b, w = t.props, E = w.previousMonthAriaLabel, k = E === void 0 ? typeof C == "string" ? C : "Previous Month" : E, S = w.previousYearAriaLabel, T = S === void 0 ? typeof D == "string" ? D : "Previous Year" : S;
13757
13757
  return y.createElement(
13758
13758
  "button",
13759
- { type: "button", className: f.join(" "), onClick: h, onKeyDown: t.props.handleOnKeyDown, "aria-label": v ? _ : k },
13760
- y.createElement("span", { className: p.join(" ") }, v ? D : b)
13759
+ { type: "button", className: f.join(" "), onClick: h, onKeyDown: t.props.handleOnKeyDown, "aria-label": v ? T : k },
13760
+ y.createElement("span", { className: p.join(" ") }, v ? D : C)
13761
13761
  );
13762
13762
  }
13763
13763
  }
@@ -13802,10 +13802,10 @@ var v9 = (
13802
13802
  t.props.showTimeSelect && i.push("react-datepicker__navigation--next--with-time"), t.props.todayButton && i.push("react-datepicker__navigation--next--with-today-button");
13803
13803
  var l = t.increaseMonth;
13804
13804
  (t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker) && (l = t.increaseYear), a && t.props.showDisabledMonthNavigation && (i.push("react-datepicker__navigation--next--disabled"), l = void 0);
13805
- var c = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, u = t.props, d = u.nextMonthButtonLabel, p = d === void 0 ? r.defaultProps.nextMonthButtonLabel : d, f = u.nextYearButtonLabel, h = f === void 0 ? r.defaultProps.nextYearButtonLabel : f, v = t.props, m = v.nextMonthAriaLabel, g = m === void 0 ? typeof p == "string" ? p : "Next Month" : m, b = v.nextYearAriaLabel, C = b === void 0 ? typeof h == "string" ? h : "Next Year" : b;
13805
+ var c = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, u = t.props, d = u.nextMonthButtonLabel, p = d === void 0 ? r.defaultProps.nextMonthButtonLabel : d, f = u.nextYearButtonLabel, h = f === void 0 ? r.defaultProps.nextYearButtonLabel : f, v = t.props, m = v.nextMonthAriaLabel, g = m === void 0 ? typeof p == "string" ? p : "Next Month" : m, C = v.nextYearAriaLabel, b = C === void 0 ? typeof h == "string" ? h : "Next Year" : C;
13806
13806
  return y.createElement(
13807
13807
  "button",
13808
- { type: "button", className: i.join(" "), onClick: l, onKeyDown: t.props.handleOnKeyDown, "aria-label": c ? C : g },
13808
+ { type: "button", className: i.join(" "), onClick: l, onKeyDown: t.props.handleOnKeyDown, "aria-label": c ? b : g },
13809
13809
  y.createElement("span", { className: s.join(" ") }, c ? h : p)
13810
13810
  );
13811
13811
  }
@@ -13866,8 +13866,8 @@ var v9 = (
13866
13866
  endYear: v
13867
13867
  };
13868
13868
  }
13869
- var m = e1(t.state.date, t.props), g = t1(t.state.date, t.props), b = n1(t.state.date, t.props), C = r1(t.state.date, t.props);
13870
- return y.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: t.props.onDropdownFocus }, (i = (a = t.props).renderCustomHeader) === null || i === void 0 ? void 0 : i.call(a, ue(ue(ue({}, t.state), u && { visibleYearsRange: p }), { customHeaderCount: l, monthDate: s, changeMonth: t.changeMonth, changeYear: t.changeYear, decreaseMonth: t.decreaseMonth, increaseMonth: t.increaseMonth, decreaseYear: t.decreaseYear, increaseYear: t.increaseYear, prevMonthButtonDisabled: m, nextMonthButtonDisabled: g, prevYearButtonDisabled: b, nextYearButtonDisabled: C })));
13869
+ var m = e1(t.state.date, t.props), g = t1(t.state.date, t.props), C = n1(t.state.date, t.props), b = r1(t.state.date, t.props);
13870
+ return y.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: t.props.onDropdownFocus }, (i = (a = t.props).renderCustomHeader) === null || i === void 0 ? void 0 : i.call(a, ue(ue(ue({}, t.state), u && { visibleYearsRange: p }), { customHeaderCount: l, monthDate: s, changeMonth: t.changeMonth, changeYear: t.changeYear, decreaseMonth: t.decreaseMonth, increaseMonth: t.increaseMonth, decreaseYear: t.decreaseYear, increaseYear: t.increaseYear, prevMonthButtonDisabled: m, nextMonthButtonDisabled: g, prevYearButtonDisabled: C, nextYearButtonDisabled: b })));
13871
13871
  }, t.renderYearHeader = function(o) {
13872
13872
  var a = o.monthDate, i = t.props, s = i.showYearPicker, l = i.yearItemNumber, c = l === void 0 ? r.defaultProps.yearItemNumber : l, u = gn(a, c), d = u.startPeriod, p = u.endPeriod;
13873
13873
  return y.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, s ? "".concat(d, " - ").concat(p) : he(a));
@@ -13916,20 +13916,20 @@ var v9 = (
13916
13916
  return y.createElement(
13917
13917
  y.Fragment,
13918
13918
  null,
13919
- y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: c, timeString: d, onChange: function(b) {
13920
- var C, D;
13921
- (D = (C = t.props).onTimeChange) === null || D === void 0 || D.call(C, b, "start");
13919
+ y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: c, timeString: d, onChange: function(C) {
13920
+ var b, D;
13921
+ (D = (b = t.props).onTimeChange) === null || D === void 0 || D.call(b, C, "start");
13922
13922
  }, timeInputLabel: ((o = t.props.timeInputLabel) !== null && o !== void 0 ? o : "Time") + " (Start)" })),
13923
- y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: p, timeString: h, onChange: function(b) {
13924
- var C, D;
13925
- (D = (C = t.props).onTimeChange) === null || D === void 0 || D.call(C, b, "end");
13923
+ y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: p, timeString: h, onChange: function(C) {
13924
+ var b, D;
13925
+ (D = (b = t.props).onTimeChange) === null || D === void 0 || D.call(b, C, "end");
13926
13926
  }, timeInputLabel: ((a = t.props.timeInputLabel) !== null && a !== void 0 ? a : "Time") + " (End)" }))
13927
13927
  );
13928
13928
  }
13929
13929
  var v = t.props.selected ? new Date(t.props.selected) : void 0, m = v && Ct(v) && !!t.props.selected, g = m ? "".concat(Tr(v.getHours()), ":").concat(Tr(v.getMinutes())) : "";
13930
- return y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: v, timeString: g, onChange: function(b) {
13931
- var C, D;
13932
- (D = (C = t.props).onTimeChange) === null || D === void 0 || D.call(C, b);
13930
+ return y.createElement(Ai, ue({}, r.defaultProps, t.props, { date: v, timeString: g, onChange: function(C) {
13931
+ var b, D;
13932
+ (D = (b = t.props).onTimeChange) === null || D === void 0 || D.call(b, C);
13933
13933
  } }));
13934
13934
  }
13935
13935
  }, t.renderAriaLiveRegion = function() {
@@ -14165,10 +14165,10 @@ var Hi = "Date input not valid.", M9 = (
14165
14165
  });
14166
14166
  if (p) {
14167
14167
  if (h) {
14168
- var b = function(C) {
14169
- return bt(C, { dateFormat: m, locale: i });
14168
+ var C = function(b) {
14169
+ return bt(b, { dateFormat: m, locale: i });
14170
14170
  };
14171
- return h(d ?? [], b);
14171
+ return h(d ?? [], C);
14172
14172
  }
14173
14173
  return Hm(d ?? [], {
14174
14174
  dateFormat: m,
@@ -14255,16 +14255,16 @@ var Hi = "Date input not valid.", M9 = (
14255
14255
  inputValue: h?.target instanceof HTMLInputElement ? h.target.value : null,
14256
14256
  lastPreSelectChange: P9
14257
14257
  });
14258
- var v = t.props, m = v.selectsRange, g = v.startDate, b = v.endDate, C = (o = t.props.dateFormat) !== null && o !== void 0 ? o : r.defaultProps.dateFormat, D = (a = t.props.strictParsing) !== null && a !== void 0 ? a : r.defaultProps.strictParsing, w = h?.target instanceof HTMLInputElement ? h.target.value : "";
14258
+ var v = t.props, m = v.selectsRange, g = v.startDate, C = v.endDate, b = (o = t.props.dateFormat) !== null && o !== void 0 ? o : r.defaultProps.dateFormat, D = (a = t.props.strictParsing) !== null && a !== void 0 ? a : r.defaultProps.strictParsing, w = h?.target instanceof HTMLInputElement ? h.target.value : "";
14259
14259
  if (m) {
14260
- var E = t.props.rangeSeparator, k = E.trim(), S = w.split(C.includes(k) ? E : k, 2).map(function(Y) {
14260
+ var E = t.props.rangeSeparator, k = E.trim(), S = w.split(b.includes(k) ? E : k, 2).map(function(Y) {
14261
14261
  return Y.trim();
14262
- }), _ = S[0], O = S[1], P = Jn(_ ?? "", C, t.props.locale, D), M = P ? Jn(O ?? "", C, t.props.locale, D) : null, N = ((i = ir(g)) === null || i === void 0 ? void 0 : i.getTime()) !== P?.getTime(), L = ((s = ir(b)) === null || s === void 0 ? void 0 : s.getTime()) !== M?.getTime();
14262
+ }), T = S[0], _ = S[1], P = Jn(T ?? "", b, t.props.locale, D), M = P ? Jn(_ ?? "", b, t.props.locale, D) : null, N = ((i = ir(g)) === null || i === void 0 ? void 0 : i.getTime()) !== P?.getTime(), L = ((s = ir(C)) === null || s === void 0 ? void 0 : s.getTime()) !== M?.getTime();
14263
14263
  if (!N && !L || P && Rt(P, t.props) || M && Rt(M, t.props))
14264
14264
  return;
14265
14265
  P && t.setState({ preSelection: P }), (c = (l = t.props).onChange) === null || c === void 0 || c.call(l, [P, M], h);
14266
14266
  } else {
14267
- var $ = Jn(w, C, t.props.locale, D, (u = t.props.selected) !== null && u !== void 0 ? u : void 0);
14267
+ var $ = Jn(w, b, t.props.locale, D, (u = t.props.selected) !== null && u !== void 0 ? u : void 0);
14268
14268
  if ($ || !w)
14269
14269
  t.setSelected($, h, !0);
14270
14270
  else if (!t.props.inline) {
@@ -14296,37 +14296,37 @@ var Hi = "Date input not valid.", M9 = (
14296
14296
  return;
14297
14297
  } else if (d !== null && Rt(d, t.props))
14298
14298
  return;
14299
- var p = t.props, f = p.onChange, h = p.selectsRange, v = p.startDate, m = p.endDate, g = p.selectsMultiple, b = p.selectedDates, C = p.minTime, D = p.swapRange;
14299
+ var p = t.props, f = p.onChange, h = p.selectsRange, v = p.startDate, m = p.endDate, g = p.selectsMultiple, C = p.selectedDates, b = p.minTime, D = p.swapRange;
14300
14300
  if (!sr(t.props.selected, d) || t.props.allowSameDay || h || g)
14301
14301
  if (d !== null && (t.props.selected && (!i || !t.props.showTimeSelect && !t.props.showTimeSelectOnly && !t.props.showTimeInput) && (d = pn(d, {
14302
14302
  hour: ut(t.props.selected),
14303
14303
  minute: dt(t.props.selected),
14304
14304
  second: Vn(t.props.selected)
14305
- })), !i && (t.props.showTimeSelect || t.props.showTimeSelectOnly) && C && (d = pn(d, {
14306
- hour: C.getHours(),
14307
- minute: C.getMinutes(),
14308
- second: C.getSeconds()
14305
+ })), !i && (t.props.showTimeSelect || t.props.showTimeSelectOnly) && b && (d = pn(d, {
14306
+ hour: b.getHours(),
14307
+ minute: b.getMinutes(),
14308
+ second: b.getSeconds()
14309
14309
  })), t.props.inline || t.setState({
14310
14310
  preSelection: d
14311
14311
  }), t.props.focusSelectedMonth || t.setState({ monthSelectedIn: s })), h) {
14312
- var w = f, E = !v && !m, k = v && !m, S = !v && !!m, _ = v && m;
14313
- E ? w?.([d, null], a) : k ? d === null ? w?.([null, null], a) : Fi(d, v) ? w?.(D ? [d, v] : [d, null], a) : w?.([v, d], a) : S && (d && Fi(d, m) ? w?.([d, m], a) : w?.([d, null], a)), _ && w?.([d, null], a);
14312
+ var w = f, E = !v && !m, k = v && !m, S = !v && !!m, T = v && m;
14313
+ E ? w?.([d, null], a) : k ? d === null ? w?.([null, null], a) : Fi(d, v) ? w?.(D ? [d, v] : [d, null], a) : w?.([v, d], a) : S && (d && Fi(d, m) ? w?.([d, m], a) : w?.([d, null], a)), T && w?.([d, null], a);
14314
14314
  } else if (g) {
14315
- var O = f;
14315
+ var _ = f;
14316
14316
  if (d !== null)
14317
- if (!b?.length)
14318
- O?.([d], a);
14317
+ if (!C?.length)
14318
+ _?.([d], a);
14319
14319
  else {
14320
- var P = b.some(function(N) {
14320
+ var P = C.some(function(N) {
14321
14321
  return ve(N, d);
14322
14322
  });
14323
14323
  if (P) {
14324
- var M = b.filter(function(N) {
14324
+ var M = C.filter(function(N) {
14325
14325
  return !ve(N, d);
14326
14326
  });
14327
- O?.(M, a);
14327
+ _?.(M, a);
14328
14328
  } else
14329
- O?.(tn(tn([], b, !0), [d], !1), a);
14329
+ _?.(tn(tn([], C, !0), [d], !1), a);
14330
14330
  }
14331
14331
  } else
14332
14332
  f?.(d, a);
@@ -14406,23 +14406,23 @@ var Hi = "Date input not valid.", M9 = (
14406
14406
  m
14407
14407
  ], void 0);
14408
14408
  } else {
14409
- var b = pn(t.getPreSelection(), {
14409
+ var C = pn(t.getPreSelection(), {
14410
14410
  hour: ut(o),
14411
14411
  minute: dt(o)
14412
14412
  });
14413
14413
  t.setState({
14414
- preSelection: b
14414
+ preSelection: C
14415
14415
  });
14416
14416
  }
14417
14417
  }
14418
14418
  } else {
14419
- var C = t.props.selected ? t.props.selected : t.getPreSelection(), b = t.props.selected ? o : pn(C, {
14419
+ var b = t.props.selected ? t.props.selected : t.getPreSelection(), C = t.props.selected ? o : pn(b, {
14420
14420
  hour: ut(o),
14421
14421
  minute: dt(o)
14422
14422
  });
14423
14423
  t.setState({
14424
- preSelection: b
14425
- }), b && f && (b = fn(b, f)), (s = (i = t.props).onChange) === null || s === void 0 || s.call(i, b);
14424
+ preSelection: C
14425
+ }), C && f && (C = fn(C, f)), (s = (i = t.props).onChange) === null || s === void 0 || s.call(i, C);
14426
14426
  }
14427
14427
  t.props.shouldCloseOnSelect && !t.props.showTimeInput && (t.sendFocusBackToInput(), t.setOpen(!1)), t.props.showTimeInput && t.setOpen(!0), (t.props.showTimeSelectOnly || t.props.showTimeSelect) && t.setState({ isRenderAriaLiveMessage: !0 }), t.setState({ inputValue: null });
14428
14428
  }
@@ -14438,12 +14438,12 @@ var Hi = "Date input not valid.", M9 = (
14438
14438
  var g = Math.min(v, h + u);
14439
14439
  m = Mo(f, g);
14440
14440
  }
14441
- var b = Ae(m, p || r.defaultProps.dateFormat, t.props.locale);
14441
+ var C = Ae(m, p || r.defaultProps.dateFormat, t.props.locale);
14442
14442
  if (t.setState({
14443
14443
  preSelection: m,
14444
- inputValue: b
14444
+ inputValue: C
14445
14445
  }), !(t.props.selectsRange || t.props.selectsMultiple)) {
14446
- var C = t.props.selected ? t.props.selected : t.getPreSelection(), D = t.props.selected ? m : pn(C, {
14446
+ var b = t.props.selected ? t.props.selected : t.getPreSelection(), D = t.props.selected ? m : pn(b, {
14447
14447
  hour: ut(m),
14448
14448
  minute: dt(m)
14449
14449
  });
@@ -14460,8 +14460,8 @@ var Hi = "Date input not valid.", M9 = (
14460
14460
  if (m instanceof HTMLElement) {
14461
14461
  var g = (l = m.textContent) === null || l === void 0 ? void 0 : l.trim();
14462
14462
  if (g) {
14463
- var b = Jn(g, p, t.props.locale, !1, f);
14464
- b && Ct(b) && (v = b);
14463
+ var C = Jn(g, p, t.props.locale, !1, f);
14464
+ C && Ct(C) && (v = C);
14465
14465
  }
14466
14466
  }
14467
14467
  }
@@ -14483,8 +14483,8 @@ var Hi = "Date input not valid.", M9 = (
14483
14483
  }
14484
14484
  }
14485
14485
  }
14486
- c && (l.forEach(function(b) {
14487
- b.setAttribute("tabindex", "-1");
14486
+ c && (l.forEach(function(C) {
14487
+ C.setAttribute("tabindex", "-1");
14488
14488
  }), c.setAttribute("tabindex", "0"), c.scrollIntoView({
14489
14489
  behavior: "smooth",
14490
14490
  block: "center"
@@ -14528,7 +14528,7 @@ var Hi = "Date input not valid.", M9 = (
14528
14528
  });
14529
14529
  }));
14530
14530
  }, t.onDayKeyDown = function(o) {
14531
- var a, i, s, l, c, u, d = t.props, p = d.minDate, f = d.maxDate, h = d.disabledKeyboardNavigation, v = d.showWeekPicker, m = d.shouldCloseOnSelect, g = d.locale, b = d.calendarStartDay, C = d.adjustDateOnChange, D = d.inline;
14531
+ var a, i, s, l, c, u, d = t.props, p = d.minDate, f = d.maxDate, h = d.disabledKeyboardNavigation, v = d.showWeekPicker, m = d.shouldCloseOnSelect, g = d.locale, C = d.calendarStartDay, b = d.adjustDateOnChange, D = d.inline;
14532
14532
  if ((i = (a = t.props).onKeyDown) === null || i === void 0 || i.call(a, o), !h) {
14533
14533
  var w = o.key, E = o.shiftKey, k = ye(t.state.preSelection), S = function(P, M) {
14534
14534
  var N = M;
@@ -14552,14 +14552,14 @@ var Hi = "Date input not valid.", M9 = (
14552
14552
  N = E ? Vt(M, 1) : Wt(M, 1);
14553
14553
  break;
14554
14554
  case j.Home:
14555
- N = Bn(M, g, b);
14555
+ N = Bn(M, g, C);
14556
14556
  break;
14557
14557
  case j.End:
14558
14558
  N = Bm(M);
14559
14559
  break;
14560
14560
  }
14561
14561
  return N;
14562
- }, _ = function(P, M) {
14562
+ }, T = function(P, M) {
14563
14563
  for (var N = 40, L = P, $ = !1, H = 0, Y = S(P, M); !$; ) {
14564
14564
  if (H >= N) {
14565
14565
  Y = M;
@@ -14576,7 +14576,7 @@ var Hi = "Date input not valid.", M9 = (
14576
14576
  o.preventDefault(), t.setOpen(!1), t.inputOk() || (l = (s = t.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Hi });
14577
14577
  return;
14578
14578
  }
14579
- var O = null;
14579
+ var _ = null;
14580
14580
  switch (w) {
14581
14581
  case j.ArrowLeft:
14582
14582
  case j.ArrowRight:
@@ -14586,14 +14586,14 @@ var Hi = "Date input not valid.", M9 = (
14586
14586
  case j.PageDown:
14587
14587
  case j.Home:
14588
14588
  case j.End:
14589
- O = _(w, k);
14589
+ _ = T(w, k);
14590
14590
  break;
14591
14591
  }
14592
- if (!O) {
14592
+ if (!_) {
14593
14593
  (u = (c = t.props).onInputError) === null || u === void 0 || u.call(c, { code: 1, msg: Hi });
14594
14594
  return;
14595
14595
  }
14596
- o.preventDefault(), t.setState({ lastPreSelectChange: Yi }), C && t.setSelected(O), t.setPreSelection(O), D && t.setState({ shouldFocusDayInline: !0 });
14596
+ o.preventDefault(), t.setState({ lastPreSelectChange: Yi }), b && t.setSelected(_), t.setPreSelection(_), D && t.setState({ shouldFocusDayInline: !0 });
14597
14597
  }
14598
14598
  }, t.onPopperKeyDown = function(o) {
14599
14599
  var a = o.key;
@@ -14629,8 +14629,8 @@ var Hi = "Date input not valid.", M9 = (
14629
14629
  locale: a
14630
14630
  })), y.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, c);
14631
14631
  }, t.renderDateInput = function() {
14632
- var o, a, i, s, l, c, u, d = A(t.props.className, (o = {}, o[t.props.outsideClickIgnoreClass || r.defaultProps.outsideClickIgnoreClass] = t.state.open, o)), p = t.props.customInput || y.createElement("input", { type: "text" }), f = t.props.customInputRef || "ref", h = {}, v = (i = t.props["aria-describedby"]) !== null && i !== void 0 ? i : t.props.ariaDescribedBy, m = (s = t.props["aria-invalid"]) !== null && s !== void 0 ? s : t.props.ariaInvalid, g = (l = t.props["aria-label"]) !== null && l !== void 0 ? l : t.props.ariaLabel, b = (c = t.props["aria-labelledby"]) !== null && c !== void 0 ? c : t.props.ariaLabelledBy, C = (u = t.props["aria-required"]) !== null && u !== void 0 ? u : t.props.ariaRequired;
14633
- return v != null && (h["aria-describedby"] = v), m != null && (h["aria-invalid"] = m), g != null && (h["aria-label"] = g), b != null && (h["aria-labelledby"] = b), C != null && (h["aria-required"] = C), Ya(p, ue((a = {}, a[f] = function(D) {
14632
+ var o, a, i, s, l, c, u, d = A(t.props.className, (o = {}, o[t.props.outsideClickIgnoreClass || r.defaultProps.outsideClickIgnoreClass] = t.state.open, o)), p = t.props.customInput || y.createElement("input", { type: "text" }), f = t.props.customInputRef || "ref", h = {}, v = (i = t.props["aria-describedby"]) !== null && i !== void 0 ? i : t.props.ariaDescribedBy, m = (s = t.props["aria-invalid"]) !== null && s !== void 0 ? s : t.props.ariaInvalid, g = (l = t.props["aria-label"]) !== null && l !== void 0 ? l : t.props.ariaLabel, C = (c = t.props["aria-labelledby"]) !== null && c !== void 0 ? c : t.props.ariaLabelledBy, b = (u = t.props["aria-required"]) !== null && u !== void 0 ? u : t.props.ariaRequired;
14633
+ return v != null && (h["aria-describedby"] = v), m != null && (h["aria-invalid"] = m), g != null && (h["aria-label"] = g), C != null && (h["aria-labelledby"] = C), b != null && (h["aria-required"] = b), Ya(p, ue((a = {}, a[f] = function(D) {
14634
14634
  t.input = D;
14635
14635
  }, a.value = t.getInputValue(), a.onBlur = t.handleBlur, a.onChange = t.handleChange, a.onClick = t.onInputClick, a.onFocus = t.handleFocus, a.onKeyDown = t.onInputKeyDown, a.id = t.props.id, a.name = t.props.name, a.form = t.props.form, a.autoFocus = t.props.autoFocus, a.placeholder = t.props.placeholderText, a.disabled = t.props.disabled, a.autoComplete = t.props.autoComplete, a.className = A(p.props.className, d), a.title = t.props.title, a.readOnly = t.props.readOnly, a.required = t.props.required, a.tabIndex = t.props.tabIndex, a), h));
14636
14636
  }, t.renderClearButton = function() {
@@ -14749,7 +14749,7 @@ const df = {
14749
14749
  [B.Sm]: "pl-7.5",
14750
14750
  [B.Md]: "pl-8",
14751
14751
  [B.Lg]: "pl-8.25"
14752
- }, mf = ({ className: e, ...r }) => /* @__PURE__ */ T(
14752
+ }, mf = ({ className: e, ...r }) => /* @__PURE__ */ O(
14753
14753
  "svg",
14754
14754
  {
14755
14755
  className: A(e),
@@ -14759,7 +14759,7 @@ const df = {
14759
14759
  fill: "none",
14760
14760
  xmlns: "http://www.w3.org/2000/svg",
14761
14761
  ...r,
14762
- children: /* @__PURE__ */ T(
14762
+ children: /* @__PURE__ */ O(
14763
14763
  "path",
14764
14764
  {
14765
14765
  d: "M1.6 13C1.16 13 0.783333 12.8409 0.47 12.5227C0.156667 12.2044 0 11.8219 0 11.375C0 10.9281 0.156667 10.5456 0.47 10.2273C0.783333 9.90911 1.16 9.75 1.6 9.75C2.04 9.75 2.41667 9.90911 2.73 10.2273C3.04333 10.5456 3.2 10.9281 3.2 11.375C3.2 11.8219 3.04333 12.2044 2.73 12.5227C2.41667 12.8409 2.04 13 1.6 13ZM6.4 13C5.96 13 5.58333 12.8409 5.27 12.5227C4.95667 12.2044 4.8 11.8219 4.8 11.375C4.8 10.9281 4.95667 10.5456 5.27 10.2273C5.58333 9.90911 5.96 9.75 6.4 9.75C6.84 9.75 7.21667 9.90911 7.53 10.2273C7.84333 10.5456 8 10.9281 8 11.375C8 11.8219 7.84333 12.2044 7.53 12.5227C7.21667 12.8409 6.84 13 6.4 13ZM1.6 8.125C1.16 8.125 0.783333 7.96589 0.47 7.64766C0.156667 7.32943 0 6.94687 0 6.5C0 6.05312 0.156667 5.67057 0.47 5.35234C0.783333 5.03411 1.16 4.875 1.6 4.875C2.04 4.875 2.41667 5.03411 2.73 5.35234C3.04333 5.67057 3.2 6.05312 3.2 6.5C3.2 6.94687 3.04333 7.32943 2.73 7.64766C2.41667 7.96589 2.04 8.125 1.6 8.125ZM6.4 8.125C5.96 8.125 5.58333 7.96589 5.27 7.64766C4.95667 7.32943 4.8 6.94687 4.8 6.5C4.8 6.05312 4.95667 5.67057 5.27 5.35234C5.58333 5.03411 5.96 4.875 6.4 4.875C6.84 4.875 7.21667 5.03411 7.53 5.35234C7.84333 5.67057 8 6.05312 8 6.5C8 6.94687 7.84333 7.32943 7.53 7.64766C7.21667 7.96589 6.84 8.125 6.4 8.125ZM1.6 3.25C1.16 3.25 0.783333 3.09089 0.47 2.77266C0.156667 2.45443 0 2.07187 0 1.625C0 1.17812 0.156667 0.795573 0.47 0.477344C0.783333 0.159115 1.16 0 1.6 0C2.04 0 2.41667 0.159115 2.73 0.477344C3.04333 0.795573 3.2 1.17812 3.2 1.625C3.2 2.07187 3.04333 2.45443 2.73 2.77266C2.41667 3.09089 2.04 3.25 1.6 3.25ZM6.4 3.25C5.96 3.25 5.58333 3.09089 5.27 2.77266C4.95667 2.45443 4.8 2.07187 4.8 1.625C4.8 1.17812 4.95667 0.795573 5.27 0.477344C5.58333 0.159115 5.96 0 6.4 0C6.84 0 7.21667 0.159115 7.53 0.477344C7.84333 0.795573 8 1.17812 8 1.625C8 2.07187 7.84333 2.45443 7.53 2.77266C7.21667 3.09089 6.84 3.25 6.4 3.25Z",
@@ -14778,7 +14778,7 @@ const f1 = ({
14778
14778
  iconName: o,
14779
14779
  position: a = "leading"
14780
14780
  /* Leading */
14781
- }) => /* @__PURE__ */ T(
14781
+ }) => /* @__PURE__ */ O(
14782
14782
  au,
14783
14783
  {
14784
14784
  onClick: e,
@@ -14792,7 +14792,7 @@ const f1 = ({
14792
14792
  "z-10"
14793
14793
  ),
14794
14794
  "aria-label": t,
14795
- children: /* @__PURE__ */ T(
14795
+ children: /* @__PURE__ */ O(
14796
14796
  ul,
14797
14797
  {
14798
14798
  name: o,
@@ -14841,7 +14841,7 @@ const f1 = ({
14841
14841
  size: o
14842
14842
  });
14843
14843
  return /* @__PURE__ */ Me("div", { className: "relative flex items-center", children: [
14844
- /* @__PURE__ */ T(
14844
+ /* @__PURE__ */ O(
14845
14845
  f1,
14846
14846
  {
14847
14847
  onClick: l,
@@ -14852,7 +14852,7 @@ const f1 = ({
14852
14852
  iconName: J.DateRange
14853
14853
  }
14854
14854
  ),
14855
- /* @__PURE__ */ T(
14855
+ /* @__PURE__ */ O(
14856
14856
  "input",
14857
14857
  {
14858
14858
  ref: s,
@@ -14862,7 +14862,7 @@ const f1 = ({
14862
14862
  className: c
14863
14863
  }
14864
14864
  ),
14865
- /* @__PURE__ */ T(
14865
+ /* @__PURE__ */ O(
14866
14866
  f1,
14867
14867
  {
14868
14868
  onClick: l,
@@ -14892,7 +14892,7 @@ const f1 = ({
14892
14892
  ...h
14893
14893
  }) => {
14894
14894
  const v = !!o, m = ee(() => i || (d && p ? "HH:mm" : d ? "yyyy-MM-dd · HH:mm" : "yyyy-MM-dd"), [i, d, p]);
14895
- return /* @__PURE__ */ T(Cr, { className: de("flex flex-col gap-1", n), children: /* @__PURE__ */ T(
14895
+ return /* @__PURE__ */ O(Cr, { className: de("flex flex-col gap-1", n), children: /* @__PURE__ */ O(
14896
14896
  M9,
14897
14897
  {
14898
14898
  selected: o,
@@ -14906,7 +14906,7 @@ const f1 = ({
14906
14906
  showTimeSelectOnly: p,
14907
14907
  timeIntervals: f,
14908
14908
  popperClassName: "!z-[9999]",
14909
- customInput: /* @__PURE__ */ T(
14909
+ customInput: /* @__PURE__ */ O(
14910
14910
  T9,
14911
14911
  {
14912
14912
  disabled: t,
@@ -14934,7 +14934,7 @@ const L9 = {
14934
14934
  children: n,
14935
14935
  className: t,
14936
14936
  ...o
14937
- }) => /* @__PURE__ */ T(
14937
+ }) => /* @__PURE__ */ O(
14938
14938
  "div",
14939
14939
  {
14940
14940
  className: de(
@@ -14956,13 +14956,13 @@ const ms = ({
14956
14956
  error: o,
14957
14957
  className: a,
14958
14958
  ...i
14959
- }) => /* @__PURE__ */ T(Cr, { disabled: t, className: a, children: /* @__PURE__ */ Me(To, { orientation: dr.Column, spacing: _t.Sm, ...i, children: [
14959
+ }) => /* @__PURE__ */ O(Cr, { disabled: t, className: a, children: /* @__PURE__ */ Me(To, { orientation: dr.Column, spacing: _t.Sm, ...i, children: [
14960
14960
  r && /* @__PURE__ */ Me(To, { orientation: dr.Row, spacing: _t.Sm, children: [
14961
- /* @__PURE__ */ T(gr, { children: /* @__PURE__ */ T(et, { color: be.Primary, children: r }) }),
14962
- n && /* @__PURE__ */ T($s, { children: /* @__PURE__ */ T(et, { color: be.Secondary, children: n }) })
14961
+ /* @__PURE__ */ O(gr, { children: /* @__PURE__ */ O(et, { color: be.Primary, children: r }) }),
14962
+ n && /* @__PURE__ */ O($s, { children: /* @__PURE__ */ O(et, { color: be.Secondary, children: n }) })
14963
14963
  ] }),
14964
14964
  e,
14965
- o && /* @__PURE__ */ T(et, { color: be.Destructive, children: o })
14965
+ o && /* @__PURE__ */ O(et, { color: be.Destructive, children: o })
14966
14966
  ] }) });
14967
14967
  ms.displayName = "FormField";
14968
14968
  const R9 = ({
@@ -14971,13 +14971,13 @@ const R9 = ({
14971
14971
  disabled: n,
14972
14972
  children: t,
14973
14973
  ...o
14974
- }) => /* @__PURE__ */ T(p0, { disabled: n, ...o, children: /* @__PURE__ */ T(To, { orientation: e, spacing: r, children: t }) });
14974
+ }) => /* @__PURE__ */ O(p0, { disabled: n, ...o, children: /* @__PURE__ */ O(To, { orientation: e, spacing: r, children: t }) });
14975
14975
  R9.displayName = "FormFieldGroup";
14976
14976
  const N9 = {
14977
- h1: ({ children: e, ...r }) => /* @__PURE__ */ T("h1", { ...r, children: e }),
14978
- h2: ({ children: e, ...r }) => /* @__PURE__ */ T("h2", { ...r, children: e }),
14979
- h3: ({ children: e, ...r }) => /* @__PURE__ */ T("h3", { ...r, children: e }),
14980
- h4: ({ children: e, ...r }) => /* @__PURE__ */ T("h4", { ...r, children: e })
14977
+ h1: ({ children: e, ...r }) => /* @__PURE__ */ O("h1", { ...r, children: e }),
14978
+ h2: ({ children: e, ...r }) => /* @__PURE__ */ O("h2", { ...r, children: e }),
14979
+ h3: ({ children: e, ...r }) => /* @__PURE__ */ O("h3", { ...r, children: e }),
14980
+ h4: ({ children: e, ...r }) => /* @__PURE__ */ O("h4", { ...r, children: e })
14981
14981
  }, I9 = {
14982
14982
  h1: A(Ht(ke.Xxl), "text-bold"),
14983
14983
  h2: A(Ht(ke.Xl), "text-semibold"),
@@ -14990,7 +14990,7 @@ const N9 = {
14990
14990
  ...t
14991
14991
  }) => {
14992
14992
  const o = N9[e];
14993
- return /* @__PURE__ */ T(
14993
+ return /* @__PURE__ */ O(
14994
14994
  o,
14995
14995
  {
14996
14996
  className: A(
@@ -15004,7 +15004,7 @@ const N9 = {
15004
15004
  );
15005
15005
  };
15006
15006
  F9.displayName = "Heading";
15007
- const vf = ({ Icon: e, size: r, hasText: n }) => /* @__PURE__ */ T(
15007
+ const vf = ({ Icon: e, size: r, hasText: n }) => /* @__PURE__ */ O(
15008
15008
  "span",
15009
15009
  {
15010
15010
  className: de(
@@ -15012,7 +15012,7 @@ const vf = ({ Icon: e, size: r, hasText: n }) => /* @__PURE__ */ T(
15012
15012
  we(n ? be.Primary : be.Secondary),
15013
15013
  ff[r]
15014
15014
  ),
15015
- children: /* @__PURE__ */ T(e, { className: de(pf[r]) })
15015
+ children: /* @__PURE__ */ O(e, { className: de(pf[r]) })
15016
15016
  }
15017
15017
  );
15018
15018
  vf.displayName = "InputIcon";
@@ -15062,9 +15062,9 @@ const gf = ({
15062
15062
  }),
15063
15063
  t
15064
15064
  ), d = !!(a && String(a).trim().length > 0);
15065
- return /* @__PURE__ */ T(Cr, { className: "flex flex-col gap-1", children: /* @__PURE__ */ Me("div", { className: de("relative", l && "flex items-center"), children: [
15066
- l && /* @__PURE__ */ T(vf, { Icon: l, size: e, hasText: d }),
15067
- /* @__PURE__ */ T(
15065
+ return /* @__PURE__ */ O(Cr, { className: "flex flex-col gap-1", children: /* @__PURE__ */ Me("div", { className: de("relative", l && "flex items-center"), children: [
15066
+ l && /* @__PURE__ */ O(vf, { Icon: l, size: e, hasText: d }),
15067
+ /* @__PURE__ */ O(
15068
15068
  v0,
15069
15069
  {
15070
15070
  className: u,
@@ -15113,19 +15113,19 @@ const bf = ({
15113
15113
  ),
15114
15114
  children: [
15115
15115
  /* @__PURE__ */ Me("div", { className: A("flex flex-nowrap items-center", "gap-x-md"), children: [
15116
- e && /* @__PURE__ */ T(
15116
+ e && /* @__PURE__ */ O(
15117
15117
  Rd,
15118
15118
  {
15119
15119
  checked: r,
15120
15120
  onChange: (d) => n?.(d)
15121
15121
  }
15122
15122
  ),
15123
- t && /* @__PURE__ */ T(
15123
+ t && /* @__PURE__ */ O(
15124
15124
  "span",
15125
15125
  {
15126
15126
  className: "flex align-items cursor-grab touch-none",
15127
15127
  ...o,
15128
- children: /* @__PURE__ */ T(
15128
+ children: /* @__PURE__ */ O(
15129
15129
  mf,
15130
15130
  {
15131
15131
  className: A("size-4", we(be.Secondary))
@@ -15133,14 +15133,14 @@ const bf = ({
15133
15133
  )
15134
15134
  }
15135
15135
  ),
15136
- /* @__PURE__ */ T(et, { variant: ke.Lg, children: a }),
15137
- /* @__PURE__ */ T(et, { variant: ke.Md, color: be.Secondary, children: i })
15136
+ /* @__PURE__ */ O(et, { variant: ke.Lg, children: a }),
15137
+ /* @__PURE__ */ O(et, { variant: ke.Md, color: be.Secondary, children: i })
15138
15138
  ] }),
15139
- /* @__PURE__ */ T("span", { children: s })
15139
+ /* @__PURE__ */ O("span", { children: s })
15140
15140
  ]
15141
15141
  }
15142
15142
  ),
15143
- l && /* @__PURE__ */ T(
15143
+ l && /* @__PURE__ */ O(
15144
15144
  "div",
15145
15145
  {
15146
15146
  className: A(
@@ -15197,7 +15197,7 @@ const H9 = {
15197
15197
  ...l,
15198
15198
  children: [
15199
15199
  a && // TODO: change this to an icon
15200
- /* @__PURE__ */ T(
15200
+ /* @__PURE__ */ O(
15201
15201
  "svg",
15202
15202
  {
15203
15203
  xmlns: "http://www.w3.org/2000/svg",
@@ -15206,7 +15206,7 @@ const H9 = {
15206
15206
  viewBox: "0 0 5 5",
15207
15207
  fill: "none",
15208
15208
  className: "mr-1",
15209
- children: /* @__PURE__ */ T("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "currentColor" })
15209
+ children: /* @__PURE__ */ O("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "currentColor" })
15210
15210
  }
15211
15211
  ),
15212
15212
  s
@@ -15214,7 +15214,7 @@ const H9 = {
15214
15214
  }
15215
15215
  );
15216
15216
  Y9.displayName = "Pill";
15217
- const V9 = ({ className: e, ...r }) => /* @__PURE__ */ T(
15217
+ const V9 = ({ className: e, ...r }) => /* @__PURE__ */ O(
15218
15218
  "svg",
15219
15219
  {
15220
15220
  className: A(
@@ -15224,7 +15224,7 @@ const V9 = ({ className: e, ...r }) => /* @__PURE__ */ T(
15224
15224
  viewBox: "0 0 8 8",
15225
15225
  fill: "none",
15226
15226
  ...r,
15227
- children: /* @__PURE__ */ T("circle", { cx: "4", cy: "4", r: "1" })
15227
+ children: /* @__PURE__ */ O("circle", { cx: "4", cy: "4", r: "1" })
15228
15228
  }
15229
15229
  ), B9 = {
15230
15230
  [B.Sm]: Ht(ke.Sm),
@@ -15247,7 +15247,7 @@ const V9 = ({ className: e, ...r }) => /* @__PURE__ */ T(
15247
15247
  disabled: a,
15248
15248
  ...i
15249
15249
  }) => /* @__PURE__ */ Me(Cr, { className: "group flex items-center gap-2", children: [
15250
- /* @__PURE__ */ T(
15250
+ /* @__PURE__ */ O(
15251
15251
  Dd,
15252
15252
  {
15253
15253
  value: e,
@@ -15291,7 +15291,7 @@ const V9 = ({ className: e, ...r }) => /* @__PURE__ */ T(
15291
15291
  n
15292
15292
  ),
15293
15293
  ...i,
15294
- children: /* @__PURE__ */ T(
15294
+ children: /* @__PURE__ */ O(
15295
15295
  "div",
15296
15296
  {
15297
15297
  className: de(
@@ -15302,12 +15302,12 @@ const V9 = ({ className: e, ...r }) => /* @__PURE__ */ T(
15302
15302
  "justify-center",
15303
15303
  "pointer-events-none"
15304
15304
  ),
15305
- children: /* @__PURE__ */ T(V9, {})
15305
+ children: /* @__PURE__ */ O(V9, {})
15306
15306
  }
15307
15307
  )
15308
15308
  }
15309
15309
  ),
15310
- o && /* @__PURE__ */ T(
15310
+ o && /* @__PURE__ */ O(
15311
15311
  gr,
15312
15312
  {
15313
15313
  className: de(
@@ -15337,7 +15337,7 @@ const j9 = () => Math.random().toString(36).substring(2, 9).trim(), U9 = ({
15337
15337
  () => o || `radio-group-${j9()}`,
15338
15338
  [o]
15339
15339
  );
15340
- return /* @__PURE__ */ T(
15340
+ return /* @__PURE__ */ O(
15341
15341
  X0,
15342
15342
  {
15343
15343
  value: r,
@@ -15347,7 +15347,7 @@ const j9 = () => Math.random().toString(36).substring(2, 9).trim(), U9 = ({
15347
15347
  disabled: i,
15348
15348
  className: s,
15349
15349
  ...c,
15350
- children: e.map((d) => /* @__PURE__ */ T(
15350
+ children: e.map((d) => /* @__PURE__ */ O(
15351
15351
  Cf,
15352
15352
  {
15353
15353
  value: d.value,
@@ -15370,7 +15370,7 @@ const yf = ({
15370
15370
  onClick: o,
15371
15371
  className: a,
15372
15372
  ...i
15373
- }) => /* @__PURE__ */ T(Nd, { children: /* @__PURE__ */ T(
15373
+ }) => /* @__PURE__ */ O(Nd, { children: /* @__PURE__ */ O(
15374
15374
  "div",
15375
15375
  {
15376
15376
  className: A(
@@ -15390,19 +15390,19 @@ const yf = ({
15390
15390
  ...i,
15391
15391
  children: /* @__PURE__ */ Me("div", { className: "flex flex-col", children: [
15392
15392
  /* @__PURE__ */ Me("span", { className: "flex gap-x-md items-center", children: [
15393
- n && /* @__PURE__ */ T(
15393
+ n && /* @__PURE__ */ O(
15394
15394
  "span",
15395
15395
  {
15396
15396
  className: de(
15397
15397
  "size-5",
15398
15398
  we(e ? ur.Brand : ur.Default)
15399
15399
  ),
15400
- children: /* @__PURE__ */ T(n, {})
15400
+ children: /* @__PURE__ */ O(n, {})
15401
15401
  }
15402
15402
  ),
15403
- t && /* @__PURE__ */ T(et, { children: t })
15403
+ t && /* @__PURE__ */ O(et, { children: t })
15404
15404
  ] }),
15405
- r && /* @__PURE__ */ T(et, { color: be.Secondary, children: r })
15405
+ r && /* @__PURE__ */ O(et, { color: be.Secondary, children: r })
15406
15406
  ] })
15407
15407
  }
15408
15408
  ) });
@@ -15431,7 +15431,7 @@ const Z9 = ({
15431
15431
  },
15432
15432
  [a, t]
15433
15433
  );
15434
- return /* @__PURE__ */ T("div", { className: de("flex", "gap-x-md", r), ...o, children: e.map((c) => /* @__PURE__ */ T(
15434
+ return /* @__PURE__ */ O("div", { className: de("flex", "gap-x-md", r), ...o, children: e.map((c) => /* @__PURE__ */ O(
15435
15435
  yf,
15436
15436
  {
15437
15437
  ...c.data,
@@ -16425,16 +16425,16 @@ class Sl {
16425
16425
  for (const v of h) {
16426
16426
  const m = r.code, {
16427
16427
  isTop: g,
16428
- isRight: b,
16429
- isLeft: C,
16428
+ isRight: C,
16429
+ isLeft: b,
16430
16430
  isBottom: D,
16431
16431
  maxScroll: w,
16432
16432
  minScroll: E
16433
16433
  } = Lf(v), k = Ev(v), S = {
16434
16434
  x: Math.min(m === ge.Right ? k.right - k.width / 2 : k.right, Math.max(m === ge.Right ? k.left : k.left + k.width / 2, d.x)),
16435
16435
  y: Math.min(m === ge.Down ? k.bottom - k.height / 2 : k.bottom, Math.max(m === ge.Down ? k.top : k.top + k.height / 2, d.y))
16436
- }, _ = m === ge.Right && !b || m === ge.Left && !C, O = m === ge.Down && !D || m === ge.Up && !g;
16437
- if (_ && S.x !== d.x) {
16436
+ }, T = m === ge.Right && !C || m === ge.Left && !b, _ = m === ge.Down && !D || m === ge.Up && !g;
16437
+ if (T && S.x !== d.x) {
16438
16438
  const P = v.scrollLeft + p.x, M = m === ge.Right && P <= w.x || m === ge.Left && P >= E.x;
16439
16439
  if (M && !p.y) {
16440
16440
  v.scrollTo({
@@ -16448,7 +16448,7 @@ class Sl {
16448
16448
  behavior: s
16449
16449
  });
16450
16450
  break;
16451
- } else if (O && S.y !== d.y) {
16451
+ } else if (_ && S.y !== d.y) {
16452
16452
  const P = v.scrollTop + p.y, M = m === ge.Down && P <= w.y || m === ge.Up && P >= E.y;
16453
16453
  if (M && !p.x) {
16454
16454
  v.scrollTo({
@@ -16765,7 +16765,7 @@ function Av(e) {
16765
16765
  }), g = z({
16766
16766
  x: 0,
16767
16767
  y: 0
16768
- }), b = ee(() => {
16768
+ }), C = ee(() => {
16769
16769
  switch (n) {
16770
16770
  case yo.Pointer:
16771
16771
  return l ? {
@@ -16777,8 +16777,8 @@ function Av(e) {
16777
16777
  case yo.DraggableRect:
16778
16778
  return o;
16779
16779
  }
16780
- }, [n, o, l]), C = z(null), D = Z(() => {
16781
- const E = C.current;
16780
+ }, [n, o, l]), b = z(null), D = Z(() => {
16781
+ const E = b.current;
16782
16782
  if (!E)
16783
16783
  return;
16784
16784
  const k = m.current.x * g.current.x, S = m.current.y * g.current.y;
@@ -16786,7 +16786,7 @@ function Av(e) {
16786
16786
  }, []), w = ee(() => s === $a.TreeOrder ? [...c].reverse() : c, [s, c]);
16787
16787
  oe(
16788
16788
  () => {
16789
- if (!a || !c.length || !b) {
16789
+ if (!a || !c.length || !C) {
16790
16790
  v();
16791
16791
  return;
16792
16792
  }
@@ -16797,13 +16797,13 @@ function Av(e) {
16797
16797
  if (!S)
16798
16798
  continue;
16799
16799
  const {
16800
- direction: _,
16801
- speed: O
16802
- } = Sv(E, S, b, r, p);
16800
+ direction: T,
16801
+ speed: _
16802
+ } = Sv(E, S, C, r, p);
16803
16803
  for (const P of ["x", "y"])
16804
- f[P][_[P]] || (O[P] = 0, _[P] = 0);
16805
- if (O.x > 0 || O.y > 0) {
16806
- v(), C.current = E, h(D, i), m.current = O, g.current = _;
16804
+ f[P][T[P]] || (_[P] = 0, T[P] = 0);
16805
+ if (_.x > 0 || _.y > 0) {
16806
+ v(), b.current = E, h(D, i), m.current = _, g.current = T;
16807
16807
  return;
16808
16808
  }
16809
16809
  }
@@ -16824,7 +16824,7 @@ function Av(e) {
16824
16824
  a,
16825
16825
  i,
16826
16826
  // eslint-disable-next-line react-hooks/exhaustive-deps
16827
- JSON.stringify(b),
16827
+ JSON.stringify(C),
16828
16828
  // eslint-disable-next-line react-hooks/exhaustive-deps
16829
16829
  JSON.stringify(f),
16830
16830
  h,
@@ -16909,23 +16909,23 @@ function Bv(e, r) {
16909
16909
  measure: l,
16910
16910
  strategy: c
16911
16911
  } = o, u = z(e), d = m(), p = _o(d), f = Z(function(g) {
16912
- g === void 0 && (g = []), !p.current && i((b) => b === null ? g : b.concat(g.filter((C) => !b.includes(C))));
16912
+ g === void 0 && (g = []), !p.current && i((C) => C === null ? g : C.concat(g.filter((b) => !C.includes(b))));
16913
16913
  }, [p]), h = z(null), v = zo((g) => {
16914
16914
  if (d && !n)
16915
16915
  return w1;
16916
16916
  if (!g || g === w1 || u.current !== e || a != null) {
16917
- const b = /* @__PURE__ */ new Map();
16918
- for (let C of e) {
16919
- if (!C)
16917
+ const C = /* @__PURE__ */ new Map();
16918
+ for (let b of e) {
16919
+ if (!b)
16920
16920
  continue;
16921
- if (a && a.length > 0 && !a.includes(C.id) && C.rect.current) {
16922
- b.set(C.id, C.rect.current);
16921
+ if (a && a.length > 0 && !a.includes(b.id) && b.rect.current) {
16922
+ C.set(b.id, b.rect.current);
16923
16923
  continue;
16924
16924
  }
16925
- const D = C.node.current, w = D ? new Dl(l(D), D) : null;
16926
- C.rect.current = w, w && b.set(C.id, w);
16925
+ const D = b.node.current, w = D ? new Dl(l(D), D) : null;
16926
+ b.rect.current = w, w && C.set(b.id, w);
16927
16927
  }
16928
- return b;
16928
+ return C;
16929
16929
  }
16930
16930
  return g;
16931
16931
  }, [e, a, n, d, l]);
@@ -17508,14 +17508,14 @@ const ug = /* @__PURE__ */ ap(function(r) {
17508
17508
  modifiers: f,
17509
17509
  ...h
17510
17510
  } = r;
17511
- const v = ks(ag, void 0, og), [m, g] = v, [b, C] = ov(), [D, w] = ae(In.Uninitialized), E = D === In.Initialized, {
17511
+ const v = ks(ag, void 0, og), [m, g] = v, [C, b] = ov(), [D, w] = ae(In.Uninitialized), E = D === In.Initialized, {
17512
17512
  draggable: {
17513
17513
  active: k,
17514
17514
  nodes: S,
17515
- translate: _
17515
+ translate: T
17516
17516
  },
17517
17517
  droppable: {
17518
- containers: O
17518
+ containers: _
17519
17519
  }
17520
17520
  } = m, P = k != null ? S.get(k) : null, M = z({
17521
17521
  initial: null,
@@ -17528,13 +17528,13 @@ const ug = /* @__PURE__ */ ap(function(r) {
17528
17528
  data: (ct = P?.data) != null ? ct : tg,
17529
17529
  rect: M
17530
17530
  } : null;
17531
- }, [k, P]), L = z(null), [$, H] = ae(null), [Y, R] = ae(null), q = _o(h, Object.values(h)), K = jo("DndDescribedBy", i), le = ee(() => O.getEnabled(), [O]), F = lg(p), {
17531
+ }, [k, P]), L = z(null), [$, H] = ae(null), [Y, R] = ae(null), q = _o(h, Object.values(h)), K = jo("DndDescribedBy", i), le = ee(() => _.getEnabled(), [_]), F = lg(p), {
17532
17532
  droppableRects: V,
17533
17533
  measureDroppableContainers: I,
17534
17534
  measuringScheduled: G
17535
17535
  } = Bv(le, {
17536
17536
  dragging: E,
17537
- dependencies: [_.x, _.y],
17537
+ dependencies: [T.x, T.y],
17538
17538
  config: F.droppable
17539
17539
  }), ne = Yv(S, k), W = ee(() => Y ? bs(Y) : null, [Y]), re = np(), me = Wv(ne, F.draggable.measure);
17540
17540
  cg({
@@ -17553,16 +17553,16 @@ const ug = /* @__PURE__ */ ap(function(r) {
17553
17553
  draggableNodes: S,
17554
17554
  draggingNode: null,
17555
17555
  draggingNodeRect: null,
17556
- droppableContainers: O,
17556
+ droppableContainers: _,
17557
17557
  over: null,
17558
17558
  scrollableAncestors: [],
17559
17559
  scrollAdjustedTranslate: null
17560
- }), wr = O.getNodeFor((n = tt.current.over) == null ? void 0 : n.id), cn = Jv({
17560
+ }), wr = _.getNodeFor((n = tt.current.over) == null ? void 0 : n.id), cn = Jv({
17561
17561
  measure: F.dragOverlay.measure
17562
17562
  }), xr = (t = cn.nodeRef.current) != null ? t : ne, Dr = E ? (o = cn.rect) != null ? o : ie : null, Ol = !!(cn.nodeRef.current && cn.rect), Tl = Uv(Ol ? null : ie), mi = Ff(xr ? wt(xr) : null), Pn = Zv(E ? wr ?? ne : null), Uo = Qv(Pn), Zo = sg(f, {
17563
17563
  transform: {
17564
- x: _.x - Tl.x,
17565
- y: _.y - Tl.y,
17564
+ x: T.x - Tl.x,
17565
+ y: T.y - Tl.y,
17566
17566
  scaleX: 1,
17567
17567
  scaleY: 1
17568
17568
  },
@@ -17576,7 +17576,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17576
17576
  scrollableAncestors: Pn,
17577
17577
  scrollableAncestorRects: Uo,
17578
17578
  windowRect: mi
17579
- }), _l = W ? Ir(W, _) : null, Ll = Kv(Pn), Gf = S1(Ll), qf = S1(Ll, [ie]), Sr = Ir(Zo, Gf), Er = Dr ? vv(Dr, Zo) : null, eo = N && Er ? d({
17579
+ }), _l = W ? Ir(W, T) : null, Ll = Kv(Pn), Gf = S1(Ll), qf = S1(Ll, [ie]), Sr = Ir(Zo, Gf), Er = Dr ? vv(Dr, Zo) : null, eo = N && Er ? d({
17580
17580
  active: N,
17581
17581
  collisionRect: Er,
17582
17582
  droppableRects: V,
@@ -17609,7 +17609,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17609
17609
  } = q.current, un = {
17610
17610
  id: at
17611
17611
  };
17612
- Zt?.(un), b({
17612
+ Zt?.(un), C({
17613
17613
  type: "onDragAbort",
17614
17614
  event: un
17615
17615
  });
@@ -17625,7 +17625,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17625
17625
  initialCoordinates: Zt,
17626
17626
  offset: un
17627
17627
  };
17628
- no?.(Ln), b({
17628
+ no?.(Ln), C({
17629
17629
  type: "onDragPending",
17630
17630
  event: Ln
17631
17631
  });
@@ -17652,7 +17652,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17652
17652
  type: Je.DragStart,
17653
17653
  initialCoordinates: at,
17654
17654
  active: _n
17655
- }), b({
17655
+ }), C({
17656
17656
  type: "onDragStart",
17657
17657
  event: to
17658
17658
  }), H(vi.current), R(St);
@@ -17696,7 +17696,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17696
17696
  const ro = at === Je.DragEnd ? "onDragEnd" : "onDragCancel";
17697
17697
  if (Ln) {
17698
17698
  const gi = q.current[ro];
17699
- gi?.(Ln), b({
17699
+ gi?.(Ln), C({
17700
17700
  type: ro,
17701
17701
  event: Ln
17702
17702
  });
@@ -17748,7 +17748,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17748
17748
  over: Pt
17749
17749
  };
17750
17750
  Ko(() => {
17751
- ct?.(St), b({
17751
+ ct?.(St), C({
17752
17752
  type: "onDragMove",
17753
17753
  event: St
17754
17754
  });
@@ -17785,7 +17785,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17785
17785
  over: kr
17786
17786
  };
17787
17787
  Ko(() => {
17788
- Nl(kr), St?.(at), b({
17788
+ Nl(kr), St?.(at), C({
17789
17789
  type: "onDragOver",
17790
17790
  event: at
17791
17791
  });
@@ -17804,7 +17804,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17804
17804
  draggableNodes: S,
17805
17805
  draggingNode: xr,
17806
17806
  draggingNodeRect: Dr,
17807
- droppableContainers: O,
17807
+ droppableContainers: _,
17808
17808
  over: On,
17809
17809
  scrollableAncestors: Pn,
17810
17810
  scrollAdjustedTranslate: Sr
@@ -17812,9 +17812,9 @@ const ug = /* @__PURE__ */ ap(function(r) {
17812
17812
  initial: Dr,
17813
17813
  translated: Er
17814
17814
  };
17815
- }, [N, ne, eo, Er, S, xr, Dr, V, O, On, Pn, Sr]), Av({
17815
+ }, [N, ne, eo, Er, S, xr, Dr, V, _, On, Pn, Sr]), Av({
17816
17816
  ...re,
17817
- delta: _,
17817
+ delta: T,
17818
17818
  draggingRect: Er,
17819
17819
  pointerCoordinates: _l,
17820
17820
  scrollableAncestors: Pn,
@@ -17829,7 +17829,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17829
17829
  containerNodeRect: Se,
17830
17830
  dragOverlay: cn,
17831
17831
  draggableNodes: S,
17832
- droppableContainers: O,
17832
+ droppableContainers: _,
17833
17833
  droppableRects: V,
17834
17834
  over: On,
17835
17835
  measureDroppableContainers: I,
@@ -17838,7 +17838,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17838
17838
  measuringConfiguration: F,
17839
17839
  measuringScheduled: G,
17840
17840
  windowRect: mi
17841
- }), [N, ne, ie, Y, eo, Se, cn, S, O, V, On, I, Pn, Uo, F, G, mi]), tp = ee(() => ({
17841
+ }), [N, ne, ie, Y, eo, Se, cn, S, _, V, On, I, Pn, Uo, F, G, mi]), tp = ee(() => ({
17842
17842
  activatorEvent: Y,
17843
17843
  activators: Fl,
17844
17844
  active: N,
@@ -17852,7 +17852,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
17852
17852
  measureDroppableContainers: I
17853
17853
  }), [Y, Fl, N, ie, g, K, S, On, I]);
17854
17854
  return y.createElement(Df.Provider, {
17855
- value: C
17855
+ value: b
17856
17856
  }, y.createElement(hi.Provider, {
17857
17857
  value: tp
17858
17858
  }, y.createElement(Af.Provider, {
@@ -17894,17 +17894,17 @@ function pg(e) {
17894
17894
  role: f = k1,
17895
17895
  roleDescription: h = "draggable",
17896
17896
  tabIndex: v = 0
17897
- } = o ?? {}, m = l?.id === r, g = Ce(m ? $f : dg), [b, C] = Fa(), [D, w] = Fa(), E = qv(i, r), k = _o(n);
17897
+ } = o ?? {}, m = l?.id === r, g = Ce(m ? $f : dg), [C, b] = Fa(), [D, w] = Fa(), E = qv(i, r), k = _o(n);
17898
17898
  sn(
17899
17899
  () => (d.set(r, {
17900
17900
  id: r,
17901
17901
  key: a,
17902
- node: b,
17902
+ node: C,
17903
17903
  activatorNode: D,
17904
17904
  data: k
17905
17905
  }), () => {
17906
- const _ = d.get(r);
17907
- _ && _.key === a && d.delete(r);
17906
+ const T = d.get(r);
17907
+ T && T.key === a && d.delete(r);
17908
17908
  }),
17909
17909
  // eslint-disable-next-line react-hooks/exhaustive-deps
17910
17910
  [d, r]
@@ -17924,9 +17924,9 @@ function pg(e) {
17924
17924
  attributes: S,
17925
17925
  isDragging: m,
17926
17926
  listeners: t ? void 0 : E,
17927
- node: b,
17927
+ node: C,
17928
17928
  over: p,
17929
- setNodeRef: C,
17929
+ setNodeRef: b,
17930
17930
  setActivatorNodeRef: w,
17931
17931
  transform: g
17932
17932
  };
@@ -17958,7 +17958,7 @@ function gg(e) {
17958
17958
  } = {
17959
17959
  ...vg,
17960
17960
  ...o
17961
- }, g = _o(v ?? t), b = Z(
17961
+ }, g = _o(v ?? t), C = Z(
17962
17962
  () => {
17963
17963
  if (!d.current) {
17964
17964
  d.current = !0;
@@ -17970,15 +17970,15 @@ function gg(e) {
17970
17970
  },
17971
17971
  //eslint-disable-next-line react-hooks/exhaustive-deps
17972
17972
  [m]
17973
- ), C = pi({
17974
- callback: b,
17973
+ ), b = pi({
17974
+ callback: C,
17975
17975
  disabled: h || !i
17976
- }), D = Z((S, _) => {
17977
- C && (_ && (C.unobserve(_), d.current = !1), S && C.observe(S));
17978
- }, [C]), [w, E] = Fa(D), k = _o(r);
17976
+ }), D = Z((S, T) => {
17977
+ b && (T && (b.unobserve(T), d.current = !1), S && b.observe(S));
17978
+ }, [b]), [w, E] = Fa(D), k = _o(r);
17979
17979
  return oe(() => {
17980
- !C || !w.current || (C.disconnect(), d.current = !1, C.observe(w.current));
17981
- }, [w, C]), oe(
17980
+ !b || !w.current || (b.disconnect(), d.current = !1, b.observe(w.current));
17981
+ }, [w, b]), oe(
17982
17982
  () => (s({
17983
17983
  type: Je.RegisterDroppable,
17984
17984
  element: {
@@ -18125,10 +18125,10 @@ function Dg(e) {
18125
18125
  droppableRects: l,
18126
18126
  over: c,
18127
18127
  measureDroppableContainers: u
18128
- } = hg(), d = jo(Yf, n), p = s.rect !== null, f = ee(() => t.map((E) => typeof E == "object" && "id" in E ? E.id : E), [t]), h = i != null, v = i ? f.indexOf(i.id) : -1, m = c ? f.indexOf(c.id) : -1, g = z(f), b = !Cg(f, g.current), C = m !== -1 && v === -1 || b, D = yg(a);
18128
+ } = hg(), d = jo(Yf, n), p = s.rect !== null, f = ee(() => t.map((E) => typeof E == "object" && "id" in E ? E.id : E), [t]), h = i != null, v = i ? f.indexOf(i.id) : -1, m = c ? f.indexOf(c.id) : -1, g = z(f), C = !Cg(f, g.current), b = m !== -1 && v === -1 || C, D = yg(a);
18129
18129
  sn(() => {
18130
- b && h && u(f);
18131
- }, [b, f, h, u]), oe(() => {
18130
+ C && h && u(f);
18131
+ }, [C, f, h, u]), oe(() => {
18132
18132
  g.current = f;
18133
18133
  }, [f]);
18134
18134
  const w = ee(
@@ -18136,7 +18136,7 @@ function Dg(e) {
18136
18136
  activeIndex: v,
18137
18137
  containerId: d,
18138
18138
  disabled: D,
18139
- disableTransforms: C,
18139
+ disableTransforms: b,
18140
18140
  items: f,
18141
18141
  overIndex: m,
18142
18142
  useDragOverlay: p,
@@ -18144,7 +18144,7 @@ function Dg(e) {
18144
18144
  strategy: o
18145
18145
  }),
18146
18146
  // eslint-disable-next-line react-hooks/exhaustive-deps
18147
- [v, d, D.draggable, D.droppable, C, f, m, l, p, o]
18147
+ [v, d, D.draggable, D.droppable, b, f, m, l, p, o]
18148
18148
  );
18149
18149
  return y.createElement(Vf.Provider, {
18150
18150
  value: w
@@ -18230,8 +18230,8 @@ function Tg(e) {
18230
18230
  sortedRects: v,
18231
18231
  overIndex: m,
18232
18232
  useDragOverlay: g,
18233
- strategy: b
18234
- } = Ce(Vf), C = _g(t, f), D = u.indexOf(i), w = ee(() => ({
18233
+ strategy: C
18234
+ } = Ce(Vf), b = _g(t, f), D = u.indexOf(i), w = ee(() => ({
18235
18235
  sortable: {
18236
18236
  containerId: d,
18237
18237
  index: D,
@@ -18241,12 +18241,12 @@ function Tg(e) {
18241
18241
  }), [d, o, D, u]), E = ee(() => u.slice(u.indexOf(i)), [u, i]), {
18242
18242
  rect: k,
18243
18243
  node: S,
18244
- isOver: _,
18245
- setNodeRef: O
18244
+ isOver: T,
18245
+ setNodeRef: _
18246
18246
  } = gg({
18247
18247
  id: i,
18248
18248
  data: w,
18249
- disabled: C.droppable,
18249
+ disabled: b.droppable,
18250
18250
  resizeObserverConfig: {
18251
18251
  updateMeasurementsFor: E,
18252
18252
  ...l
@@ -18269,8 +18269,8 @@ function Tg(e) {
18269
18269
  ...Pg,
18270
18270
  ...n
18271
18271
  },
18272
- disabled: C.draggable
18273
- }), le = K9(O, $), F = !!P, V = F && !h && ca(p) && ca(m), I = !g && Y, G = I && V ? K : null, W = V ? G ?? (s ?? b)({
18272
+ disabled: b.draggable
18273
+ }), le = K9(_, $), F = !!P, V = F && !h && ca(p) && ca(m), I = !g && Y, G = I && V ? K : null, W = V ? G ?? (s ?? C)({
18274
18274
  rects: v,
18275
18275
  activeNodeRect: N,
18276
18276
  activeIndex: p,
@@ -18327,7 +18327,7 @@ function Tg(e) {
18327
18327
  index: D,
18328
18328
  newIndex: re,
18329
18329
  items: u,
18330
- isOver: _,
18330
+ isOver: T,
18331
18331
  isSorting: F,
18332
18332
  isDragging: Y,
18333
18333
  listeners: H,
@@ -18336,7 +18336,7 @@ function Tg(e) {
18336
18336
  over: R,
18337
18337
  setNodeRef: le,
18338
18338
  setActivatorNodeRef: q,
18339
- setDroppableNodeRef: O,
18339
+ setDroppableNodeRef: _,
18340
18340
  setDraggableNodeRef: $,
18341
18341
  transform: wr ?? W,
18342
18342
  transition: cn()
@@ -18416,17 +18416,17 @@ const Lg = [ge.Down, ge.Right, ge.Up, ge.Left], Rg = (e, r) => {
18416
18416
  if (u === i?.id && c.length > 1 && (u = c[1].id), u != null) {
18417
18417
  const d = a.get(n.id), p = a.get(u), f = p ? o.get(p.id) : null, h = p?.node.current;
18418
18418
  if (h && f && d && p) {
18419
- const m = fi(h).some((E, k) => s[k] !== E), g = Wf(d, p), b = Ng(d, p), C = m || !g ? {
18419
+ const m = fi(h).some((E, k) => s[k] !== E), g = Wf(d, p), C = Ng(d, p), b = m || !g ? {
18420
18420
  x: 0,
18421
18421
  y: 0
18422
18422
  } : {
18423
- x: b ? t.width - f.width : 0,
18424
- y: b ? t.height - f.height : 0
18423
+ x: C ? t.width - f.width : 0,
18424
+ y: C ? t.height - f.height : 0
18425
18425
  }, D = {
18426
18426
  x: f.left,
18427
18427
  y: f.top
18428
18428
  };
18429
- return C.x && C.y ? D : Lo(D, C);
18429
+ return b.x && b.y ? D : Lo(D, b);
18430
18430
  }
18431
18431
  }
18432
18432
  }
@@ -18455,7 +18455,7 @@ const zf = ({
18455
18455
  opacity: l ? 0.5 : 1,
18456
18456
  cursor: l ? "grabbing" : void 0
18457
18457
  };
18458
- return /* @__PURE__ */ T("div", { ref: a, style: c, ...t, children: /* @__PURE__ */ T(bf, { ...n, dragHandleListeners: o }) });
18458
+ return /* @__PURE__ */ O("div", { ref: a, style: c, ...t, children: /* @__PURE__ */ O(bf, { ...n, dragHandleListeners: o }) });
18459
18459
  };
18460
18460
  zf.displayName = "SortableListItem";
18461
18461
  const Ig = ({
@@ -18487,11 +18487,11 @@ const Ig = ({
18487
18487
  ), u = (p) => {
18488
18488
  const { active: f, over: h } = p;
18489
18489
  if (h && f.id !== h.id) {
18490
- const v = r.findIndex((b) => b.id === f.id), m = r.findIndex((b) => b.id === h.id), g = Ml(r, v, m);
18490
+ const v = r.findIndex((C) => C.id === f.id), m = r.findIndex((C) => C.id === h.id), g = Ml(r, v, m);
18491
18491
  o?.(g);
18492
18492
  }
18493
18493
  }, d = ee(
18494
- () => r.map((p) => /* @__PURE__ */ T(
18494
+ () => r.map((p) => /* @__PURE__ */ O(
18495
18495
  zf,
18496
18496
  {
18497
18497
  id: p.id,
@@ -18506,18 +18506,18 @@ const Ig = ({
18506
18506
  )),
18507
18507
  [r, n, i, c]
18508
18508
  );
18509
- return /* @__PURE__ */ T(
18509
+ return /* @__PURE__ */ O(
18510
18510
  "div",
18511
18511
  {
18512
18512
  className: A("flex flex-col", "w-full", "gap-y-md", e),
18513
18513
  ...a,
18514
- children: n ? /* @__PURE__ */ T(
18514
+ children: n ? /* @__PURE__ */ O(
18515
18515
  ug,
18516
18516
  {
18517
18517
  sensors: l,
18518
18518
  collisionDetection: uv,
18519
18519
  onDragEnd: u,
18520
- children: /* @__PURE__ */ T(
18520
+ children: /* @__PURE__ */ O(
18521
18521
  Dg,
18522
18522
  {
18523
18523
  items: r.map((p) => p.id),
@@ -18536,7 +18536,7 @@ const jf = ({
18536
18536
  selected: r,
18537
18537
  value: n,
18538
18538
  ...t
18539
- }) => /* @__PURE__ */ T(pd, { value: n, ...t, children: /* @__PURE__ */ Me(
18539
+ }) => /* @__PURE__ */ O(pd, { value: n, ...t, children: /* @__PURE__ */ Me(
18540
18540
  "div",
18541
18541
  {
18542
18542
  className: A(
@@ -18550,15 +18550,15 @@ const jf = ({
18550
18550
  Le(pt.Card2, pe.Hover)
18551
18551
  ),
18552
18552
  children: [
18553
- /* @__PURE__ */ T(et, { children: e }),
18554
- /* @__PURE__ */ T(
18553
+ /* @__PURE__ */ O(et, { children: e }),
18554
+ /* @__PURE__ */ O(
18555
18555
  "span",
18556
18556
  {
18557
18557
  className: A(
18558
18558
  "size-5 flex items-center",
18559
18559
  we(be.Secondary)
18560
18560
  ),
18561
- children: r && /* @__PURE__ */ T(ul, { name: J.Check, size: B.Sm })
18561
+ children: r && /* @__PURE__ */ O(ul, { name: J.Check, size: B.Sm })
18562
18562
  }
18563
18563
  )
18564
18564
  ]
@@ -18592,10 +18592,10 @@ const Ag = ({
18592
18592
  },
18593
18593
  [o]
18594
18594
  ), v = Z(
18595
- (m) => m && m.length > 0 ? typeof m == "string" ? a?.find((g) => g.id === m)?.data.label ?? "" : m.map((g) => a?.find((b) => b.id === g)?.data.label).filter((g) => !!g).join(", ") : "",
18595
+ (m) => m && m.length > 0 ? typeof m == "string" ? a?.find((g) => g.id === m)?.data.label ?? "" : m.map((g) => a?.find((C) => C.id === g)?.data.label).filter((g) => !!g).join(", ") : "",
18596
18596
  [a]
18597
18597
  );
18598
- return /* @__PURE__ */ T("div", { className: A(r, "w-full"), ...l, children: /* @__PURE__ */ Me(
18598
+ return /* @__PURE__ */ O("div", { className: A(r, "w-full"), ...l, children: /* @__PURE__ */ Me(
18599
18599
  i0,
18600
18600
  {
18601
18601
  disabled: n,
@@ -18605,7 +18605,7 @@ const Ag = ({
18605
18605
  immediate: !0,
18606
18606
  onClose: () => u(""),
18607
18607
  children: [
18608
- /* @__PURE__ */ T(
18608
+ /* @__PURE__ */ O(
18609
18609
  dd,
18610
18610
  {
18611
18611
  autoComplete: "off",
@@ -18614,7 +18614,7 @@ const Ag = ({
18614
18614
  className: A(gf({ disabled: n }), "w-full")
18615
18615
  }
18616
18616
  ),
18617
- /* @__PURE__ */ T(
18617
+ /* @__PURE__ */ O(
18618
18618
  fd,
18619
18619
  {
18620
18620
  anchor: e,
@@ -18627,14 +18627,14 @@ const Ag = ({
18627
18627
  ui(hn.Md)
18628
18628
  ),
18629
18629
  children: f?.map((m) => {
18630
- const g = s ?? d, b = Array.isArray(g) ? g.includes(m.id) : g === m.id;
18631
- return /* @__PURE__ */ T(
18630
+ const g = s ?? d, C = Array.isArray(g) ? g.includes(m.id) : g === m.id;
18631
+ return /* @__PURE__ */ O(
18632
18632
  jf,
18633
18633
  {
18634
18634
  value: m.id,
18635
- selected: b,
18635
+ selected: C,
18636
18636
  className: A("cursor-pointer"),
18637
- children: /* @__PURE__ */ T(et, { children: m.data.content ?? m.data.label })
18637
+ children: /* @__PURE__ */ O(et, { children: m.data.content ?? m.data.label })
18638
18638
  },
18639
18639
  m.id
18640
18640
  );
@@ -18651,7 +18651,7 @@ const xs = ({
18651
18651
  onDragStart: r,
18652
18652
  value: n,
18653
18653
  ...t
18654
- }) => /* @__PURE__ */ T(
18654
+ }) => /* @__PURE__ */ O(
18655
18655
  "div",
18656
18656
  {
18657
18657
  className: A(
@@ -18684,48 +18684,48 @@ const Ds = (e, r) => {
18684
18684
  ...i
18685
18685
  }) => {
18686
18686
  const s = z(null), l = Array.isArray(a) ? a : [r, a ?? e], c = l[0], u = l[1], d = Ld(a), p = Z(
18687
- (b) => (b - r) / (e - r),
18687
+ (C) => (C - r) / (e - r),
18688
18688
  [e, r]
18689
18689
  ), f = Z(
18690
- (b) => {
18691
- const C = r + b * (e - r), D = Math.round(C / o) * o;
18690
+ (C) => {
18691
+ const b = r + C * (e - r), D = Math.round(b / o) * o;
18692
18692
  return Math.min(Math.max(D, r), e);
18693
18693
  },
18694
18694
  [e, r, o]
18695
- ), h = Z((b) => {
18696
- const C = s.current;
18697
- if (!C)
18695
+ ), h = Z((C) => {
18696
+ const b = s.current;
18697
+ if (!b)
18698
18698
  return 0;
18699
- const D = C.getBoundingClientRect();
18699
+ const D = b.getBoundingClientRect();
18700
18700
  return Math.min(
18701
- Math.max(b - D.left, 0),
18701
+ Math.max(C - D.left, 0),
18702
18702
  D.width
18703
18703
  ) / D.width;
18704
18704
  }, []), v = Z(
18705
- (b, C) => {
18705
+ (C, b) => {
18706
18706
  if (!s.current)
18707
18707
  return;
18708
- const D = h(b), w = $g(f(D));
18709
- n ? C === "min" ? w <= u && t?.([w, u]) : w >= c && t?.([c, w]) : t?.(w);
18708
+ const D = h(C), w = $g(f(D));
18709
+ n ? b === "min" ? w <= u && t?.([w, u]) : w >= c && t?.([c, w]) : t?.(w);
18710
18710
  },
18711
18711
  [f, h, u, c, n, t]
18712
18712
  ), m = Z(
18713
- (b, C) => {
18714
- b.preventDefault();
18715
- const D = (E) => v(E.clientX, C), w = () => {
18713
+ (C, b) => {
18714
+ C.preventDefault();
18715
+ const D = (E) => v(E.clientX, b), w = () => {
18716
18716
  document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", w);
18717
18717
  };
18718
18718
  document.addEventListener("mousemove", D), document.addEventListener("mouseup", w);
18719
18719
  },
18720
18720
  [v]
18721
18721
  ), g = Z(
18722
- (b) => {
18722
+ (C) => {
18723
18723
  if (!s.current)
18724
18724
  return;
18725
- const C = h(b.clientX), D = f(C);
18725
+ const b = h(C.clientX), D = f(b);
18726
18726
  if (n) {
18727
- const w = p(c), E = p(u), k = Math.abs(C - w), S = Math.abs(C - E);
18728
- C < w || k < S ? t?.([D, u]) : t?.([c, D]);
18727
+ const w = p(c), E = p(u), k = Math.abs(b - w), S = Math.abs(b - E);
18728
+ b < w || k < S ? t?.([D, u]) : t?.([c, D]);
18729
18729
  } else
18730
18730
  t?.(D);
18731
18731
  },
@@ -18739,7 +18739,7 @@ const Ds = (e, r) => {
18739
18739
  t
18740
18740
  ]
18741
18741
  );
18742
- return /* @__PURE__ */ T(
18742
+ return /* @__PURE__ */ O(
18743
18743
  "div",
18744
18744
  {
18745
18745
  ref: s,
@@ -18752,11 +18752,11 @@ const Ds = (e, r) => {
18752
18752
  ot(Oe.Full)
18753
18753
  ),
18754
18754
  onClick: g,
18755
- onKeyDown: (b) => b.stopPropagation(),
18755
+ onKeyDown: (C) => C.stopPropagation(),
18756
18756
  role: "presentation",
18757
18757
  ...i,
18758
18758
  children: !d && /* @__PURE__ */ Me(Ss, { children: [
18759
- /* @__PURE__ */ T(
18759
+ /* @__PURE__ */ O(
18760
18760
  "div",
18761
18761
  {
18762
18762
  className: A(
@@ -18771,19 +18771,19 @@ const Ds = (e, r) => {
18771
18771
  }
18772
18772
  }
18773
18773
  ),
18774
- n && /* @__PURE__ */ T(
18774
+ n && /* @__PURE__ */ O(
18775
18775
  xs,
18776
18776
  {
18777
18777
  position: p(c),
18778
- onDragStart: (b) => m(b, "min"),
18778
+ onDragStart: (C) => m(C, "min"),
18779
18779
  value: c
18780
18780
  }
18781
18781
  ),
18782
- /* @__PURE__ */ T(
18782
+ /* @__PURE__ */ O(
18783
18783
  xs,
18784
18784
  {
18785
18785
  position: p(u),
18786
- onDragStart: (b) => m(b, "max"),
18786
+ onDragStart: (C) => m(C, "max"),
18787
18787
  value: u
18788
18788
  }
18789
18789
  )
@@ -18797,7 +18797,7 @@ const Hg = (e, r, n) => (e - r) / (n - r), ji = ({ max: e, min: r, precision: n,
18797
18797
  if (a < o || 1 - a < o)
18798
18798
  return null;
18799
18799
  const i = Ds(t, n);
18800
- return Number.isFinite(i) ? /* @__PURE__ */ T(
18800
+ return Number.isFinite(i) ? /* @__PURE__ */ O(
18801
18801
  et,
18802
18802
  {
18803
18803
  className: A("absolute", "-translate-x-1/2"),
@@ -18808,11 +18808,14 @@ const Hg = (e, r, n) => (e - r) / (n - r), ji = ({ max: e, min: r, precision: n,
18808
18808
  ) : null;
18809
18809
  }, Zf = ({
18810
18810
  className: e,
18811
- max: r,
18812
- min: n,
18813
- precision: t,
18814
- value: o,
18815
- ...a
18811
+ knobLabel: r,
18812
+ max: n,
18813
+ maxLabel: t,
18814
+ min: o,
18815
+ minLabel: a,
18816
+ precision: i,
18817
+ value: s,
18818
+ ...l
18816
18819
  }) => /* @__PURE__ */ Me(
18817
18820
  "div",
18818
18821
  {
@@ -18822,30 +18825,30 @@ const Hg = (e, r, n) => (e - r) / (n - r), ji = ({ max: e, min: r, precision: n,
18822
18825
  "w-full",
18823
18826
  e
18824
18827
  ),
18825
- ...a,
18828
+ ...l,
18826
18829
  children: [
18827
- /* @__PURE__ */ T(et, { variant: ke.Sm, children: Ds(n, t) }),
18828
- /* @__PURE__ */ T(et, { variant: ke.Sm, children: Ds(r, t) }),
18829
- o !== void 0 && (Array.isArray(o) ? /* @__PURE__ */ Me(Ss, { children: [
18830
- /* @__PURE__ */ T(
18830
+ a && /* @__PURE__ */ O(et, { variant: ke.Sm, children: Ds(o, i) }),
18831
+ t && /* @__PURE__ */ O(et, { variant: ke.Sm, children: Ds(n, i) }),
18832
+ s !== void 0 && r && (Array.isArray(s) ? /* @__PURE__ */ Me(Ss, { children: [
18833
+ /* @__PURE__ */ O(
18831
18834
  ji,
18832
18835
  {
18833
- max: r,
18834
- min: n,
18835
- precision: t,
18836
- value: o[0]
18836
+ max: n,
18837
+ min: o,
18838
+ precision: i,
18839
+ value: s[0]
18837
18840
  }
18838
18841
  ),
18839
- /* @__PURE__ */ T(
18842
+ /* @__PURE__ */ O(
18840
18843
  ji,
18841
18844
  {
18842
- max: r,
18843
- min: n,
18844
- precision: t,
18845
- value: o[1]
18845
+ max: n,
18846
+ min: o,
18847
+ precision: i,
18848
+ value: s[1]
18846
18849
  }
18847
18850
  )
18848
- ] }) : /* @__PURE__ */ T(ji, { max: r, min: n, precision: t, value: o }))
18851
+ ] }) : /* @__PURE__ */ O(ji, { max: n, min: o, precision: i, value: s }))
18849
18852
  ]
18850
18853
  }
18851
18854
  );
@@ -18858,24 +18861,24 @@ function Yg() {
18858
18861
  return u.Date.now();
18859
18862
  };
18860
18863
  function m(w, E, k) {
18861
- var S, _, O, P, M, N, L = 0, $ = !1, H = !1, Y = !0;
18864
+ var S, T, _, P, M, N, L = 0, $ = !1, H = !1, Y = !0;
18862
18865
  if (typeof w != "function")
18863
18866
  throw new TypeError(e);
18864
- E = D(E) || 0, g(k) && ($ = !!k.leading, H = "maxWait" in k, O = H ? f(D(k.maxWait) || 0, E) : O, Y = "trailing" in k ? !!k.trailing : Y);
18867
+ E = D(E) || 0, g(k) && ($ = !!k.leading, H = "maxWait" in k, _ = H ? f(D(k.maxWait) || 0, E) : _, Y = "trailing" in k ? !!k.trailing : Y);
18865
18868
  function R(W) {
18866
- var re = S, me = _;
18867
- return S = _ = void 0, L = W, P = w.apply(me, re), P;
18869
+ var re = S, me = T;
18870
+ return S = T = void 0, L = W, P = w.apply(me, re), P;
18868
18871
  }
18869
18872
  function q(W) {
18870
18873
  return L = W, M = setTimeout(F, E), $ ? R(W) : P;
18871
18874
  }
18872
18875
  function K(W) {
18873
18876
  var re = W - N, me = W - L, ie = E - re;
18874
- return H ? h(ie, O - me) : ie;
18877
+ return H ? h(ie, _ - me) : ie;
18875
18878
  }
18876
18879
  function le(W) {
18877
18880
  var re = W - N, me = W - L;
18878
- return N === void 0 || re >= E || re < 0 || H && me >= O;
18881
+ return N === void 0 || re >= E || re < 0 || H && me >= _;
18879
18882
  }
18880
18883
  function F() {
18881
18884
  var W = v();
@@ -18884,17 +18887,17 @@ function Yg() {
18884
18887
  M = setTimeout(F, K(W));
18885
18888
  }
18886
18889
  function V(W) {
18887
- return M = void 0, Y && S ? R(W) : (S = _ = void 0, P);
18890
+ return M = void 0, Y && S ? R(W) : (S = T = void 0, P);
18888
18891
  }
18889
18892
  function I() {
18890
- M !== void 0 && clearTimeout(M), L = 0, S = N = _ = M = void 0;
18893
+ M !== void 0 && clearTimeout(M), L = 0, S = N = T = M = void 0;
18891
18894
  }
18892
18895
  function G() {
18893
18896
  return M === void 0 ? P : V(v());
18894
18897
  }
18895
18898
  function ne() {
18896
18899
  var W = v(), re = le(W);
18897
- if (S = arguments, _ = this, N = W, re) {
18900
+ if (S = arguments, T = this, N = W, re) {
18898
18901
  if (M === void 0)
18899
18902
  return q(N);
18900
18903
  if (H)
@@ -18908,16 +18911,16 @@ function Yg() {
18908
18911
  var E = typeof w;
18909
18912
  return !!w && (E == "object" || E == "function");
18910
18913
  }
18911
- function b(w) {
18914
+ function C(w) {
18912
18915
  return !!w && typeof w == "object";
18913
18916
  }
18914
- function C(w) {
18915
- return typeof w == "symbol" || b(w) && p.call(w) == n;
18917
+ function b(w) {
18918
+ return typeof w == "symbol" || C(w) && p.call(w) == n;
18916
18919
  }
18917
18920
  function D(w) {
18918
18921
  if (typeof w == "number")
18919
18922
  return w;
18920
- if (C(w))
18923
+ if (b(w))
18921
18924
  return r;
18922
18925
  if (g(w)) {
18923
18926
  var E = typeof w.valueOf == "function" ? w.valueOf() : w;
@@ -18953,52 +18956,53 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
18953
18956
  className: r,
18954
18957
  debounceDelay: n = 200,
18955
18958
  labeled: t,
18956
- max: o,
18957
- maxLabel: a,
18958
- min: i,
18959
- minLabel: s,
18960
- multi: l,
18961
- onChange: c,
18962
- step: u = 1e-3,
18963
- value: d,
18964
- showUnsetHint: p,
18965
- ...f
18959
+ knobLabel: o,
18960
+ max: a,
18961
+ maxLabel: i,
18962
+ min: s,
18963
+ minLabel: l,
18964
+ multi: c,
18965
+ onChange: u,
18966
+ step: d = 1e-3,
18967
+ value: p,
18968
+ showUnsetHint: f,
18969
+ ...h
18966
18970
  }) => {
18967
- const [h, v] = ae(d), [m, g] = ae(
18968
- () => Array.isArray(d) ? d[0].toString() : i.toString()
18969
- ), [b, C] = ae(
18970
- () => Array.isArray(d) ? d[1].toString() : (d ?? o).toString()
18971
- ), D = Z(
18972
- (O, P) => P1(i, Number.parseFloat(P.toString()))(O) && P1(Number.parseFloat(O.toString()), o)(P),
18973
- [o, i]
18971
+ const [v, m] = ae(p), [g, C] = ae(
18972
+ () => Array.isArray(p) ? p[0].toString() : s.toString()
18973
+ ), [b, D] = ae(
18974
+ () => Array.isArray(p) ? p[1].toString() : (p ?? a).toString()
18975
+ ), w = Z(
18976
+ (P, M) => P1(s, Number.parseFloat(M.toString()))(P) && P1(Number.parseFloat(P.toString()), a)(M),
18977
+ [a, s]
18974
18978
  );
18975
18979
  oe(() => {
18976
- v(d);
18977
- }, [d]), oe(() => {
18978
- h != null && (Array.isArray(h) ? (g(Zi(h[0], i, o).toString()), C(Zi(h[1], i, o).toString())) : (g(i.toString()), C(Zi(h, i, o).toString())));
18979
- }, [o, i, h]);
18980
- const w = Wg(
18981
- Z((O) => c?.(O), [c]),
18980
+ m(p);
18981
+ }, [p]), oe(() => {
18982
+ v != null && (Array.isArray(v) ? (C(Zi(v[0], s, a).toString()), D(Zi(v[1], s, a).toString())) : (C(s.toString()), D(Zi(v, s, a).toString())));
18983
+ }, [a, s, v]);
18984
+ const E = Wg(
18985
+ Z((P) => u?.(P), [u]),
18982
18986
  n
18983
- ), E = Z(
18984
- (O) => {
18985
- v(O), w(O);
18986
- },
18987
- [w]
18988
18987
  ), k = Z(
18989
- (O) => {
18990
- g(O.target.value);
18991
- const P = Number.parseFloat(O.target.value);
18992
- D(P, b) && P !== Number.parseFloat(m) && E([P, Number.parseFloat(b)]);
18988
+ (P) => {
18989
+ m(P), E(P);
18993
18990
  },
18994
- [E, D, b, m]
18991
+ [E]
18995
18992
  ), S = Z(
18996
- (O) => {
18997
- C(O.target.value);
18998
- const P = Number.parseFloat(O.target.value);
18999
- D(m, P) && P !== Number.parseFloat(b) && E(l ? [Number.parseFloat(m), P] : P);
18993
+ (P) => {
18994
+ C(P.target.value);
18995
+ const M = Number.parseFloat(P.target.value);
18996
+ w(M, b) && M !== Number.parseFloat(g) && k([M, Number.parseFloat(b)]);
18997
+ },
18998
+ [k, w, b, g]
18999
+ ), T = Z(
19000
+ (P) => {
19001
+ D(P.target.value);
19002
+ const M = Number.parseFloat(P.target.value);
19003
+ w(g, M) && M !== Number.parseFloat(b) && k(c ? [Number.parseFloat(g), M] : M);
19000
19004
  },
19001
- [E, D, b, m, l]
19005
+ [k, w, b, g, c]
19002
19006
  ), _ = e ? "Click on the slider to set a value" : "Click on the slider or enter a number to set a value";
19003
19007
  return /* @__PURE__ */ Me(
19004
19008
  To,
@@ -19006,59 +19010,62 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
19006
19010
  orientation: dr.Column,
19007
19011
  spacing: _t.Md,
19008
19012
  className: r,
19009
- ...f,
19013
+ ...h,
19010
19014
  children: [
19011
- t && /* @__PURE__ */ T(
19015
+ (t || o) && /* @__PURE__ */ O(
19012
19016
  Zf,
19013
19017
  {
19014
- min: i,
19015
- max: o,
19016
- precision: u,
19017
- value: h
19018
+ knobLabel: o,
19019
+ min: s,
19020
+ minLabel: t,
19021
+ max: a,
19022
+ maxLabel: t,
19023
+ precision: d,
19024
+ value: v
19018
19025
  }
19019
19026
  ),
19020
- /* @__PURE__ */ T(
19027
+ /* @__PURE__ */ O(
19021
19028
  Uf,
19022
19029
  {
19023
- min: i,
19024
- max: o,
19025
- multi: l,
19026
- step: u,
19027
- value: h,
19028
- onChange: E
19030
+ min: s,
19031
+ max: a,
19032
+ multi: c,
19033
+ step: d,
19034
+ value: v,
19035
+ onChange: k
19029
19036
  }
19030
19037
  ),
19031
19038
  !e && /* @__PURE__ */ Me("div", { className: "flex justify-between items-center", children: [
19032
- l && /* @__PURE__ */ T(
19039
+ c && /* @__PURE__ */ O(
19033
19040
  ms,
19034
19041
  {
19035
- label: s,
19036
- control: /* @__PURE__ */ T(
19042
+ label: l,
19043
+ control: /* @__PURE__ */ O(
19037
19044
  vs,
19038
19045
  {
19039
- value: m,
19040
- onChange: k,
19041
- error: !D(m, b)
19046
+ value: g,
19047
+ onChange: S,
19048
+ error: !w(g, b)
19042
19049
  }
19043
19050
  )
19044
19051
  }
19045
19052
  ),
19046
- /* @__PURE__ */ T(
19053
+ /* @__PURE__ */ O(
19047
19054
  ms,
19048
19055
  {
19049
- label: a,
19050
- control: /* @__PURE__ */ T(
19056
+ label: i,
19057
+ control: /* @__PURE__ */ O(
19051
19058
  vs,
19052
19059
  {
19053
19060
  value: b,
19054
- onChange: S,
19055
- error: !D(m, b)
19061
+ onChange: T,
19062
+ error: !w(g, b)
19056
19063
  }
19057
19064
  )
19058
19065
  }
19059
19066
  )
19060
19067
  ] }),
19061
- p && /* @__PURE__ */ T(ai, { value: d, hint: _ })
19068
+ f && /* @__PURE__ */ O(ai, { value: p, hint: _ })
19062
19069
  ]
19063
19070
  }
19064
19071
  );
@@ -19067,7 +19074,7 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
19067
19074
  max: r,
19068
19075
  min: n,
19069
19076
  ...t
19070
- }) => /* @__PURE__ */ T(
19077
+ }) => /* @__PURE__ */ O(
19071
19078
  Pl,
19072
19079
  {
19073
19080
  min: n,
@@ -19081,7 +19088,7 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
19081
19088
  max: r,
19082
19089
  min: n,
19083
19090
  ...t
19084
- }) => /* @__PURE__ */ T(
19091
+ }) => /* @__PURE__ */ O(
19085
19092
  Pl,
19086
19093
  {
19087
19094
  min: n,
@@ -19114,7 +19121,7 @@ const Kg = {
19114
19121
  containerClassName: i,
19115
19122
  disabled: s,
19116
19123
  ...l
19117
- }) => /* @__PURE__ */ T(Cr, { className: de("flex flex-col gap-1", i), children: /* @__PURE__ */ T(
19124
+ }) => /* @__PURE__ */ O(Cr, { className: de("flex flex-col gap-1", i), children: /* @__PURE__ */ O(
19118
19125
  _7,
19119
19126
  {
19120
19127
  rows: o,
@@ -19151,7 +19158,7 @@ const Qg = ({
19151
19158
  color: e = ur.Brand,
19152
19159
  children: r,
19153
19160
  ...n
19154
- }) => /* @__PURE__ */ T(et, { color: e, variant: ke.Label, ...n, children: r });
19161
+ }) => /* @__PURE__ */ O(et, { color: e, variant: ke.Label, ...n, children: r });
19155
19162
  Qg.displayName = "TextBadge";
19156
19163
  const Xg = {
19157
19164
  [Ie.Primary]: we(be.Primary),
@@ -19169,7 +19176,7 @@ const Xg = {
19169
19176
  title: i,
19170
19177
  variant: s = Ie.Primary,
19171
19178
  ...l
19172
- }) => /* @__PURE__ */ T(Ts, { open: a, anchor: r, children: /* @__PURE__ */ Me(
19179
+ }) => /* @__PURE__ */ O(Ts, { open: a, anchor: r, children: /* @__PURE__ */ Me(
19173
19180
  "div",
19174
19181
  {
19175
19182
  className: de(
@@ -19183,13 +19190,13 @@ const Xg = {
19183
19190
  ),
19184
19191
  ...l,
19185
19192
  children: [
19186
- o && /* @__PURE__ */ T("span", { className: A("size-5", Xg[s]), children: /* @__PURE__ */ T(o, {}) }),
19193
+ o && /* @__PURE__ */ O("span", { className: A("size-5", Xg[s]), children: /* @__PURE__ */ O(o, {}) }),
19187
19194
  /* @__PURE__ */ Me("div", { className: "flex items-center gap-x-xl", children: [
19188
19195
  /* @__PURE__ */ Me("div", { className: "flex flex-col", children: [
19189
- i && /* @__PURE__ */ T(et, { className: "font-semibold", children: i }),
19190
- t && /* @__PURE__ */ T(et, { color: be.Secondary, children: t })
19196
+ i && /* @__PURE__ */ O(et, { className: "font-semibold", children: i }),
19197
+ t && /* @__PURE__ */ O(et, { color: be.Secondary, children: t })
19191
19198
  ] }),
19192
- e && /* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: e })
19199
+ e && /* @__PURE__ */ O("div", { className: "flex items-center justify-center", children: e })
19193
19200
  ] })
19194
19201
  ]
19195
19202
  }
@@ -19222,7 +19229,7 @@ const Xg = {
19222
19229
  showUnsetHint: s,
19223
19230
  ...l
19224
19231
  }) => /* @__PURE__ */ Me(Cr, { className: "flex items-center gap-2", children: [
19225
- /* @__PURE__ */ T(
19232
+ /* @__PURE__ */ O(
19226
19233
  s7,
19227
19234
  {
19228
19235
  checked: e,
@@ -19257,7 +19264,7 @@ const Xg = {
19257
19264
  o
19258
19265
  ),
19259
19266
  ...l,
19260
- children: /* @__PURE__ */ T(
19267
+ children: /* @__PURE__ */ O(
19261
19268
  "span",
19262
19269
  {
19263
19270
  className: de(
@@ -19282,7 +19289,7 @@ const Xg = {
19282
19289
  )
19283
19290
  }
19284
19291
  ),
19285
- i && /* @__PURE__ */ T(
19292
+ i && /* @__PURE__ */ O(
19286
19293
  gr,
19287
19294
  {
19288
19295
  className: de(
@@ -19294,7 +19301,7 @@ const Xg = {
19294
19301
  children: i
19295
19302
  }
19296
19303
  ),
19297
- s && /* @__PURE__ */ T(ai, { value: e, hint: "Click the toggle to set a value" })
19304
+ s && /* @__PURE__ */ O(ai, { value: e, hint: "Click the toggle to set a value" })
19298
19305
  ] });
19299
19306
  rb.displayName = "Toggle";
19300
19307
  var ob = /* @__PURE__ */ ((e) => (e.Default = "default", e.Soft = "soft", e.Full = "full", e.Borderless = "borderless", e))(ob || {});
@@ -19349,7 +19356,7 @@ const ab = {
19349
19356
  tabPanelClassName: s,
19350
19357
  ...l
19351
19358
  }) => /* @__PURE__ */ Me(kd, { defaultIndex: n, onChange: t, ...l, children: [
19352
- /* @__PURE__ */ T(
19359
+ /* @__PURE__ */ O(
19353
19360
  Md,
19354
19361
  {
19355
19362
  className: de(
@@ -19362,7 +19369,7 @@ const ab = {
19362
19369
  ),
19363
19370
  children: e.map(({ id: c, data: u }, d) => {
19364
19371
  const p = d === 0, f = d === e.length - 1;
19365
- return /* @__PURE__ */ T(
19372
+ return /* @__PURE__ */ O(
19366
19373
  P7,
19367
19374
  {
19368
19375
  className: ({ selected: h }) => de(
@@ -19386,7 +19393,7 @@ const ab = {
19386
19393
  })
19387
19394
  }
19388
19395
  ),
19389
- /* @__PURE__ */ T(Pd, { className: de(s), children: e.map(({ id: c, data: u }) => /* @__PURE__ */ T(Od, { className: de("focus:outline-none"), children: u.content }, c)) })
19396
+ /* @__PURE__ */ O(Pd, { className: de(s), children: e.map(({ id: c, data: u }) => /* @__PURE__ */ O(Od, { className: de("focus:outline-none"), children: u.content }, c)) })
19390
19397
  ] });
19391
19398
  pb.displayName = "ToggleSwitch";
19392
19399
  const hb = {
@@ -19399,7 +19406,7 @@ const hb = {
19399
19406
  [Ue.Right]: "left-0 top-1/2 -translate-x-1/2 -translate-y-1/2",
19400
19407
  [Ue.Bottom]: "top-0 left-1/2 -translate-x-1/2 -translate-y-1/2",
19401
19408
  [Ue.Left]: "right-0 top-1/2 translate-x-1/2 -translate-y-1/2"
19402
- }, vb = ({ anchor: e }) => /* @__PURE__ */ T(
19409
+ }, vb = ({ anchor: e }) => /* @__PURE__ */ O(
19403
19410
  "div",
19404
19411
  {
19405
19412
  className: A(
@@ -19421,7 +19428,7 @@ const hb = {
19421
19428
  }) => {
19422
19429
  const [s, l] = ae(!1);
19423
19430
  return /* @__PURE__ */ Me($0, { className: "relative", ...i, children: [
19424
- /* @__PURE__ */ T(
19431
+ /* @__PURE__ */ O(
19425
19432
  wd,
19426
19433
  {
19427
19434
  as: "div",
@@ -19448,8 +19455,8 @@ const hb = {
19448
19455
  t
19449
19456
  ),
19450
19457
  children: [
19451
- /* @__PURE__ */ T("div", { className: "max-w-[500px] break-words", children: r }),
19452
- /* @__PURE__ */ T(vb, { anchor: e })
19458
+ /* @__PURE__ */ O("div", { className: "max-w-[500px] break-words", children: r }),
19459
+ /* @__PURE__ */ O(vb, { anchor: e })
19453
19460
  ]
19454
19461
  }
19455
19462
  )