@als-tp/als-react-ts-ui 0.1.2 → 0.1.3

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.
@@ -29,24 +29,24 @@ function Nn({
29
29
  }, []);
30
30
  return [c, u];
31
31
  }
32
- const Ss = {};
32
+ const ws = {};
33
33
  function Qe(e, t) {
34
- const n = a.useRef(Ss);
35
- return n.current === Ss && (n.current = e(t)), n;
34
+ const n = a.useRef(ws);
35
+ return n.current === ws && (n.current = e(t)), n;
36
36
  }
37
- const ko = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], El = (
37
+ const Lo = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], El = (
38
38
  // React 17 doesn't have useInsertionEffect.
39
- ko && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
40
- ko !== a.useLayoutEffect ? ko : (e) => e()
39
+ Lo && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
40
+ Lo !== a.useLayoutEffect ? Lo : (e) => e()
41
41
  );
42
42
  function Q(e) {
43
- const t = Qe(wl).current;
43
+ const t = Qe(Sl).current;
44
44
  return t.next = e, El(t.effect), t.trampoline;
45
45
  }
46
- function wl() {
46
+ function Sl() {
47
47
  const e = {
48
48
  next: void 0,
49
- callback: Sl,
49
+ callback: wl,
50
50
  trampoline: (...t) => e.callback?.(...t),
51
51
  effect: () => {
52
52
  e.callback = e.next;
@@ -54,7 +54,7 @@ function wl() {
54
54
  };
55
55
  return e;
56
56
  }
57
- function Sl() {
57
+ function wl() {
58
58
  if (process.env.NODE_ENV !== "production")
59
59
  throw new Error("Base UI: Cannot call an event handler while rendering.");
60
60
  }
@@ -62,13 +62,13 @@ const Rl = () => {
62
62
  }, X = typeof document < "u" ? a.useLayoutEffect : Rl;
63
63
  let er;
64
64
  process.env.NODE_ENV !== "production" && (er = /* @__PURE__ */ new Set());
65
- function wr(...e) {
65
+ function Sr(...e) {
66
66
  if (process.env.NODE_ENV !== "production") {
67
67
  const t = e.join(" ");
68
68
  er.has(t) || (er.add(t), console.warn(`Base UI: ${t}`));
69
69
  }
70
70
  }
71
- const Sr = /* @__PURE__ */ a.createContext({
71
+ const wr = /* @__PURE__ */ a.createContext({
72
72
  register: () => {
73
73
  },
74
74
  unregister: () => {
@@ -82,9 +82,9 @@ const Sr = /* @__PURE__ */ a.createContext({
82
82
  current: 0
83
83
  }
84
84
  });
85
- process.env.NODE_ENV !== "production" && (Sr.displayName = "CompositeListContext");
85
+ process.env.NODE_ENV !== "production" && (wr.displayName = "CompositeListContext");
86
86
  function xl() {
87
- return a.useContext(Sr);
87
+ return a.useContext(wr);
88
88
  }
89
89
  function bi(e) {
90
90
  const {
@@ -98,9 +98,9 @@ function bi(e) {
98
98
  u.delete(v), d.current += 1, f(d.current);
99
99
  }), g = a.useMemo(() => {
100
100
  const v = /* @__PURE__ */ new Map();
101
- return Array.from(u.keys()).sort(Tl).forEach((w, b) => {
102
- const x = u.get(w) ?? {};
103
- v.set(w, {
101
+ return Array.from(u.keys()).sort(Tl).forEach((S, b) => {
102
+ const x = u.get(S) ?? {};
103
+ v.set(S, {
104
104
  ...x,
105
105
  index: b
106
106
  });
@@ -110,13 +110,13 @@ function bi(e) {
110
110
  if (typeof MutationObserver != "function" || g.size === 0)
111
111
  return;
112
112
  const v = new MutationObserver((y) => {
113
- const w = /* @__PURE__ */ new Set(), b = (x) => w.has(x) ? w.delete(x) : w.add(x);
113
+ const S = /* @__PURE__ */ new Set(), b = (x) => S.has(x) ? S.delete(x) : S.add(x);
114
114
  y.forEach((x) => {
115
115
  x.removedNodes.forEach(b), x.addedNodes.forEach(b);
116
- }), w.size === 0 && (d.current += 1, f(d.current));
116
+ }), S.size === 0 && (d.current += 1, f(d.current));
117
117
  });
118
- return g.forEach((y, w) => {
119
- w.parentElement && v.observe(w.parentElement, {
118
+ return g.forEach((y, S) => {
119
+ S.parentElement && v.observe(S.parentElement, {
120
120
  childList: !0
121
121
  });
122
122
  }), () => {
@@ -143,7 +143,7 @@ function bi(e) {
143
143
  labelsRef: o,
144
144
  nextIndexRef: i
145
145
  }), [p, m, h, n, o, i]);
146
- return /* @__PURE__ */ I(Sr.Provider, {
146
+ return /* @__PURE__ */ I(wr.Provider, {
147
147
  value: E,
148
148
  children: t
149
149
  });
@@ -176,14 +176,14 @@ function Cr() {
176
176
  return e;
177
177
  }
178
178
  function It(e, t, n, o) {
179
- const r = Qe(wi).current;
180
- return Pl(r, e, t, n, o) && Si(r, [e, t, n, o]), r.callback;
179
+ const r = Qe(Si).current;
180
+ return Pl(r, e, t, n, o) && wi(r, [e, t, n, o]), r.callback;
181
181
  }
182
182
  function Ol(e) {
183
- const t = Qe(wi).current;
184
- return Nl(t, e) && Si(t, e), t.callback;
183
+ const t = Qe(Si).current;
184
+ return Nl(t, e) && wi(t, e), t.callback;
185
185
  }
186
- function wi() {
186
+ function Si() {
187
187
  return {
188
188
  callback: null,
189
189
  cleanup: null,
@@ -196,7 +196,7 @@ function Pl(e, t, n, o, r) {
196
196
  function Nl(e, t) {
197
197
  return e.refs.length !== t.length || e.refs.some((n, o) => n !== t[o]);
198
198
  }
199
- function Si(e, t) {
199
+ function wi(e, t) {
200
200
  if (e.refs = t, t.every((n) => n == null)) {
201
201
  e.callback = null;
202
202
  return;
@@ -286,7 +286,7 @@ function _r(e, t, n, o, r) {
286
286
  };
287
287
  return t && (s = Rn(s, t)), n && (s = Rn(s, n)), o && (s = Rn(s, o)), r && (s = Rn(s, r)), s;
288
288
  }
289
- function Ll(e) {
289
+ function kl(e) {
290
290
  if (e.length === 0)
291
291
  return Cn;
292
292
  if (e.length === 1)
@@ -299,9 +299,9 @@ function Ll(e) {
299
299
  return t;
300
300
  }
301
301
  function Rn(e, t) {
302
- return xi(t) ? t(e) : kl(e, t);
302
+ return xi(t) ? t(e) : Ll(e, t);
303
303
  }
304
- function kl(e, t) {
304
+ function Ll(e, t) {
305
305
  if (!t)
306
306
  return e;
307
307
  for (const n in t) {
@@ -388,7 +388,7 @@ function jl(e, t = {}) {
388
388
  props: c,
389
389
  stateAttributesMapping: u,
390
390
  enabled: l = !0
391
- } = t, f = l ? Ml(n, s) : void 0, d = l ? Dl(o, s) : void 0, p = l ? Il(s, u) : We, m = l ? tr(p, Array.isArray(c) ? Ll(c) : c) ?? We : We;
391
+ } = t, f = l ? Ml(n, s) : void 0, d = l ? Dl(o, s) : void 0, p = l ? Il(s, u) : We, m = l ? tr(p, Array.isArray(c) ? kl(c) : c) ?? We : We;
392
392
  return typeof document < "u" && (l ? Array.isArray(i) ? m.ref = Ol([m.ref, Rs(r), ...i]) : m.ref = It(m.ref, Rs(r), i) : It(null, null)), l ? (f !== void 0 && (m.className = Ci(m.className, f)), d !== void 0 && (m.style = tr(m.style, d)), m) : We;
393
393
  }
394
394
  function ql(e, t, n, o) {
@@ -454,41 +454,41 @@ const Xl = {
454
454
  ...g
455
455
  } = t, h = Rr();
456
456
  process.env.NODE_ENV !== "production" && X(() => {
457
- i && c === !1 && wr("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.");
457
+ i && c === !1 && Sr("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.");
458
458
  }, [i, c]);
459
459
  const E = a.useMemo(() => {
460
460
  if (p === void 0)
461
461
  return m ?? [];
462
- }, [p, m]), v = Q(l), y = a.useRef([]), [w, b] = Nn({
462
+ }, [p, m]), v = Q(l), y = a.useRef([]), [S, b] = Nn({
463
463
  controlled: p,
464
464
  default: E,
465
465
  name: "Accordion",
466
466
  state: "value"
467
- }), x = Q((F, L) => {
468
- const k = me(pn);
467
+ }), x = Q((F, k) => {
468
+ const L = me(pn);
469
469
  if (f)
470
- if (L) {
471
- const P = w.slice();
472
- if (P.push(F), v(P, k), k.isCanceled)
470
+ if (k) {
471
+ const P = S.slice();
472
+ if (P.push(F), v(P, L), L.isCanceled)
473
473
  return;
474
474
  b(P);
475
475
  } else {
476
- const P = w.filter((R) => R !== F);
477
- if (v(P, k), k.isCanceled)
476
+ const P = S.filter((R) => R !== F);
477
+ if (v(P, L), L.isCanceled)
478
478
  return;
479
479
  b(P);
480
480
  }
481
481
  else {
482
- const P = w[0] === F ? [] : [F];
483
- if (v(P, k), k.isCanceled)
482
+ const P = S[0] === F ? [] : [F];
483
+ if (v(P, L), L.isCanceled)
484
484
  return;
485
485
  b(P);
486
486
  }
487
487
  }), _ = a.useMemo(() => ({
488
- value: w,
488
+ value: S,
489
489
  disabled: s,
490
490
  orientation: d
491
- }), [w, s, d]), T = a.useMemo(() => ({
491
+ }), [S, s, d]), T = a.useMemo(() => ({
492
492
  accordionItemRefs: y,
493
493
  direction: h,
494
494
  disabled: s,
@@ -498,8 +498,8 @@ const Xl = {
498
498
  loopFocus: u,
499
499
  orientation: d,
500
500
  state: _,
501
- value: w
502
- }), [h, s, x, i, c, u, d, _, w]), N = he("div", t, {
501
+ value: S
502
+ }), [h, s, x, i, c, u, d, _, S]), N = he("div", t, {
503
503
  state: _,
504
504
  ref: n,
505
505
  props: [{
@@ -687,11 +687,11 @@ function tu(e) {
687
687
  }, h] = a.useState({
688
688
  height: void 0,
689
689
  width: void 0
690
- }), E = pt(), [v, y] = a.useState(), w = v ?? E, [b, x] = a.useState(!1), [_, T] = a.useState(!1), N = a.useRef(null), F = a.useRef(null), L = a.useRef(null), k = a.useRef(null), P = mo(k, !1), R = Q((A) => {
690
+ }), E = pt(), [v, y] = a.useState(), S = v ?? E, [b, x] = a.useState(!1), [_, T] = a.useState(!1), N = a.useRef(null), F = a.useRef(null), k = a.useRef(null), L = a.useRef(null), P = mo(L, !1), R = Q((A) => {
691
691
  const C = !i, O = me(bt, A.nativeEvent);
692
692
  if (o(C, O), O.isCanceled)
693
693
  return;
694
- const D = k.current;
694
+ const D = L.current;
695
695
  F.current === "css-animation" && D != null && D.style.removeProperty("animation-name"), !b && !_ && (F.current != null && F.current !== "css-animation" && !u && C && l(!0), F.current === "css-animation" && (!d && C && p(!0), !u && C && l(!0))), c(C), F.current === "none" && u && !C && l(!1);
696
696
  });
697
697
  return X(() => {
@@ -704,8 +704,8 @@ function tu(e) {
704
704
  height: m,
705
705
  mounted: u,
706
706
  open: i,
707
- panelId: w,
708
- panelRef: k,
707
+ panelId: S,
708
+ panelRef: L,
709
709
  runOnceAnimationsFinish: P,
710
710
  setDimensions: h,
711
711
  setHiddenUntilFound: x,
@@ -714,11 +714,11 @@ function tu(e) {
714
714
  setOpen: c,
715
715
  setPanelIdState: y,
716
716
  setVisible: p,
717
- transitionDimensionRef: L,
717
+ transitionDimensionRef: k,
718
718
  transitionStatus: f,
719
719
  visible: d,
720
720
  width: g
721
- }), [N, F, r, R, m, u, i, w, k, P, h, x, T, l, c, p, L, f, d, g]);
721
+ }), [N, F, r, R, m, u, i, S, L, P, h, x, T, l, c, p, k, f, d, g]);
722
722
  }
723
723
  const Or = /* @__PURE__ */ a.createContext(void 0);
724
724
  process.env.NODE_ENV !== "production" && (Or.displayName = "CollapsibleRootContext");
@@ -791,7 +791,7 @@ const nu = {
791
791
  [cn.startingStyle]: ""
792
792
  }, ou = {
793
793
  [cn.endingStyle]: ""
794
- }, Lt = {
794
+ }, kt = {
795
795
  transitionStatus(e) {
796
796
  return e === "starting" ? nu : e === "ending" ? ou : null;
797
797
  }
@@ -824,7 +824,7 @@ const Ar = {
824
824
  index: (e) => Number.isInteger(e) ? {
825
825
  [lu.index]: String(e)
826
826
  } : null,
827
- ...Lt,
827
+ ...kt,
828
828
  value: () => null
829
829
  }, Di = /* @__PURE__ */ a.forwardRef(function(t, n) {
830
830
  const {
@@ -842,7 +842,7 @@ const Ar = {
842
842
  handleValueChange: m,
843
843
  state: g,
844
844
  value: h
845
- } = Cr(), E = pt(), v = c ?? E, y = r || p, w = a.useMemo(() => {
845
+ } = Cr(), E = pt(), v = c ?? E, y = r || p, S = a.useMemo(() => {
846
846
  if (!h)
847
847
  return !1;
848
848
  for (let R = 0; R < h.length; R += 1)
@@ -852,7 +852,7 @@ const Ar = {
852
852
  }, [h, v]), b = Q((R, A) => {
853
853
  s?.(R, A), !A.isCanceled && m(v, R);
854
854
  }), x = tu({
855
- open: w,
855
+ open: S,
856
856
  onOpenChange: b,
857
857
  disabled: y
858
858
  }), _ = a.useMemo(() => ({
@@ -868,13 +868,13 @@ const Ar = {
868
868
  ...g,
869
869
  index: f,
870
870
  disabled: y,
871
- open: w
872
- }), [y, f, w, g]), [F, L] = a.useState(pt()), k = a.useMemo(() => ({
873
- open: w,
871
+ open: S
872
+ }), [y, f, S, g]), [F, k] = a.useState(pt()), L = a.useMemo(() => ({
873
+ open: S,
874
874
  state: N,
875
- setTriggerId: L,
875
+ setTriggerId: k,
876
876
  triggerId: F
877
- }), [w, N, L, F]), P = he("div", t, {
877
+ }), [S, N, k, F]), P = he("div", t, {
878
878
  state: N,
879
879
  ref: d,
880
880
  props: u,
@@ -883,13 +883,13 @@ const Ar = {
883
883
  return /* @__PURE__ */ I(Or.Provider, {
884
884
  value: T,
885
885
  children: /* @__PURE__ */ I(Pr.Provider, {
886
- value: k,
886
+ value: L,
887
887
  children: P
888
888
  })
889
889
  });
890
890
  });
891
891
  process.env.NODE_ENV !== "production" && (Di.displayName = "AccordionItem");
892
- const Li = /* @__PURE__ */ a.forwardRef(function(t, n) {
892
+ const ki = /* @__PURE__ */ a.forwardRef(function(t, n) {
893
893
  const {
894
894
  render: o,
895
895
  className: r,
@@ -904,14 +904,14 @@ const Li = /* @__PURE__ */ a.forwardRef(function(t, n) {
904
904
  stateAttributesMapping: Ar
905
905
  });
906
906
  });
907
- process.env.NODE_ENV !== "production" && (Li.displayName = "AccordionHeader");
907
+ process.env.NODE_ENV !== "production" && (ki.displayName = "AccordionHeader");
908
908
  function Ts(e) {
909
909
  return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
910
910
  }
911
911
  function ho() {
912
912
  return typeof window < "u";
913
913
  }
914
- function kt(e) {
914
+ function Lt(e) {
915
915
  return Ir(e) ? (e.nodeName || "").toLowerCase() : "#document";
916
916
  }
917
917
  function De(e) {
@@ -946,7 +946,7 @@ function Xt(e) {
946
946
  }
947
947
  const fu = /* @__PURE__ */ new Set(["table", "td", "th"]);
948
948
  function du(e) {
949
- return fu.has(kt(e));
949
+ return fu.has(Lt(e));
950
950
  }
951
951
  const pu = [":popover-open", ":modal"];
952
952
  function yo(e) {
@@ -964,13 +964,13 @@ function Mr(e) {
964
964
  return mu.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || gu.some((o) => (n.willChange || "").includes(o)) || hu.some((o) => (n.contain || "").includes(o));
965
965
  }
966
966
  function yu(e) {
967
- let t = St(e);
967
+ let t = wt(e);
968
968
  for (; Me(t) && !Et(t); ) {
969
969
  if (Mr(t))
970
970
  return t;
971
971
  if (yo(t))
972
972
  return null;
973
- t = St(t);
973
+ t = wt(t);
974
974
  }
975
975
  return null;
976
976
  }
@@ -979,7 +979,7 @@ function vo() {
979
979
  }
980
980
  const vu = /* @__PURE__ */ new Set(["html", "body", "#document"]);
981
981
  function Et(e) {
982
- return vu.has(kt(e));
982
+ return vu.has(Lt(e));
983
983
  }
984
984
  function et(e) {
985
985
  return De(e).getComputedStyle(e);
@@ -993,8 +993,8 @@ function bo(e) {
993
993
  scrollTop: e.scrollY
994
994
  };
995
995
  }
996
- function St(e) {
997
- if (kt(e) === "html")
996
+ function wt(e) {
997
+ if (Lt(e) === "html")
998
998
  return e;
999
999
  const t = (
1000
1000
  // Step into the shadow DOM of the parent of a slotted node.
@@ -1005,14 +1005,14 @@ function St(e) {
1005
1005
  );
1006
1006
  return sr(t) ? t.host : t;
1007
1007
  }
1008
- function ki(e) {
1009
- const t = St(e);
1010
- return Et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && Xt(t) ? t : ki(t);
1008
+ function Li(e) {
1009
+ const t = wt(e);
1010
+ return Et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && Xt(t) ? t : Li(t);
1011
1011
  }
1012
1012
  function Pt(e, t, n) {
1013
1013
  var o;
1014
1014
  t === void 0 && (t = []), n === void 0 && (n = !0);
1015
- const r = ki(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = De(r);
1015
+ const r = Li(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = De(r);
1016
1016
  if (s) {
1017
1017
  const c = ir(i);
1018
1018
  return t.concat(i, i.visualViewport || [], Xt(r) ? r : [], c && n ? Pt(c) : []);
@@ -1084,7 +1084,7 @@ function Ct(e = {}) {
1084
1084
  }, [r]);
1085
1085
  const l = a.useCallback(() => {
1086
1086
  const p = s.current;
1087
- wu(p) && i && t && u.disabled === void 0 && p.disabled && (p.disabled = !1);
1087
+ Su(p) && i && t && u.disabled === void 0 && p.disabled && (p.disabled = !1);
1088
1088
  }, [t, u.disabled, i]);
1089
1089
  X(l, [l]);
1090
1090
  const f = a.useCallback((p = {}) => {
@@ -1135,10 +1135,10 @@ function Ct(e = {}) {
1135
1135
  buttonRef: d
1136
1136
  };
1137
1137
  }
1138
- function wu(e) {
1138
+ function Su(e) {
1139
1139
  return Me(e) && e.tagName === "BUTTON";
1140
1140
  }
1141
- const gn = typeof navigator < "u", $o = xu(), Vi = _u(), $i = Cu(), Bi = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), Su = (
1141
+ const gn = typeof navigator < "u", $o = xu(), Vi = _u(), $i = Cu(), Bi = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), wu = (
1142
1142
  // iPads can claim to be MacIntel
1143
1143
  $o.platform === "MacIntel" && $o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test($o.platform)
1144
1144
  ), Ru = gn && /apple/i.test(navigator.vendor), ar = gn && /android/i.test(Vi) || /android/i.test($i);
@@ -1174,7 +1174,7 @@ function _u() {
1174
1174
  const e = navigator.userAgentData;
1175
1175
  return e?.platform ? e.platform : navigator.platform ?? "";
1176
1176
  }
1177
- const lr = "data-base-ui-focusable", zi = "active", Ui = "selected", Wi = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", Nt = "ArrowLeft", At = "ArrowRight", Dr = "ArrowUp", kn = "ArrowDown";
1177
+ const lr = "data-base-ui-focusable", zi = "active", Ui = "selected", Wi = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", Nt = "ArrowLeft", At = "ArrowRight", Dr = "ArrowUp", Ln = "ArrowDown";
1178
1178
  function lt(e) {
1179
1179
  let t = e.activeElement;
1180
1180
  for (; t?.shadowRoot?.activeElement != null; )
@@ -1211,7 +1211,7 @@ function ft(e, t) {
1211
1211
  function Tu(e) {
1212
1212
  return e.matches("html,body");
1213
1213
  }
1214
- function Le(e) {
1214
+ function ke(e) {
1215
1215
  return e?.ownerDocument || document;
1216
1216
  }
1217
1217
  function ji(e) {
@@ -1284,10 +1284,10 @@ function Je(e) {
1284
1284
  function Ft(e) {
1285
1285
  return e.split("-")[1];
1286
1286
  }
1287
- function Lr(e) {
1287
+ function kr(e) {
1288
1288
  return e === "x" ? "y" : "x";
1289
1289
  }
1290
- function kr(e) {
1290
+ function Lr(e) {
1291
1291
  return e === "y" ? "height" : "width";
1292
1292
  }
1293
1293
  const Iu = /* @__PURE__ */ new Set(["top", "bottom"]);
@@ -1295,11 +1295,11 @@ function ut(e) {
1295
1295
  return Iu.has(Je(e)) ? "y" : "x";
1296
1296
  }
1297
1297
  function Fr(e) {
1298
- return Lr(ut(e));
1298
+ return kr(ut(e));
1299
1299
  }
1300
1300
  function Mu(e, t, n) {
1301
1301
  n === void 0 && (n = !1);
1302
- const o = Ft(e), r = Fr(e), s = kr(r);
1302
+ const o = Ft(e), r = Fr(e), s = Lr(r);
1303
1303
  let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1304
1304
  return t.reference[s] > t.floating[s] && (i = ro(i)), [i, ro(i)];
1305
1305
  }
@@ -1310,7 +1310,7 @@ function Du(e) {
1310
1310
  function pr(e) {
1311
1311
  return e.replace(/start|end/g, (t) => Au[t]);
1312
1312
  }
1313
- const Ns = ["left", "right"], As = ["right", "left"], Lu = ["top", "bottom"], ku = ["bottom", "top"];
1313
+ const Ns = ["left", "right"], As = ["right", "left"], ku = ["top", "bottom"], Lu = ["bottom", "top"];
1314
1314
  function Fu(e, t, n) {
1315
1315
  switch (e) {
1316
1316
  case "top":
@@ -1318,7 +1318,7 @@ function Fu(e, t, n) {
1318
1318
  return n ? t ? As : Ns : t ? Ns : As;
1319
1319
  case "left":
1320
1320
  case "right":
1321
- return t ? Lu : ku;
1321
+ return t ? ku : Lu;
1322
1322
  default:
1323
1323
  return [];
1324
1324
  }
@@ -1413,10 +1413,10 @@ function Bu(e, {
1413
1413
  let g = !1;
1414
1414
  {
1415
1415
  let v = null, y = -1;
1416
- e.current.forEach((w, b) => {
1417
- if (w == null)
1416
+ e.current.forEach((S, b) => {
1417
+ if (S == null)
1418
1418
  return;
1419
- const x = w.closest('[role="row"]');
1419
+ const x = S.closest('[role="row"]');
1420
1420
  x && (g = !0), (x !== v || y === -1) && (v = x, y += 1, p[y] = []), p[y].push(b), m[b] = y;
1421
1421
  });
1422
1422
  }
@@ -1427,7 +1427,7 @@ function Bu(e, {
1427
1427
  const y = m[l];
1428
1428
  if (y == null)
1429
1429
  return;
1430
- const w = p[y].indexOf(l);
1430
+ const S = p[y].indexOf(l);
1431
1431
  let b = v === "up" ? y - 1 : y + 1;
1432
1432
  o && (b < 0 ? b = p.length - 1 : b >= p.length && (b = 0));
1433
1433
  const x = /* @__PURE__ */ new Set();
@@ -1438,7 +1438,7 @@ function Bu(e, {
1438
1438
  b = v === "up" ? b - 1 : b + 1;
1439
1439
  continue;
1440
1440
  }
1441
- const T = Math.min(w, _.length - 1);
1441
+ const T = Math.min(S, _.length - 1);
1442
1442
  for (let N = T; N >= 0; N -= 1) {
1443
1443
  const F = _[N];
1444
1444
  if (!On(e, F, i))
@@ -1460,13 +1460,13 @@ function Bu(e, {
1460
1460
  decrement: !0,
1461
1461
  disabledIndices: i
1462
1462
  }), o && (l - s < c || d < 0)) {
1463
- const y = l % s, w = u % s, b = u - (w - y);
1464
- w === y ? d = u : d = w > y ? b : b - s;
1463
+ const y = l % s, S = u % s, b = u - (S - y);
1464
+ S === y ? d = u : d = S > y ? b : b - s;
1465
1465
  }
1466
1466
  Tn(e, d) && (d = l);
1467
1467
  }
1468
1468
  }
1469
- if (t.key === kn) {
1469
+ if (t.key === Ln) {
1470
1470
  const v = E("down");
1471
1471
  v !== void 0 ? (f && Ue(t), d = v) : (f && Ue(t), l === -1 ? d = c : (d = qe(e, {
1472
1472
  startingIndex: l,
@@ -1777,19 +1777,19 @@ function nc(e, t) {
1777
1777
  const n = Fn(e, hn()), o = n.length;
1778
1778
  if (o === 0)
1779
1779
  return;
1780
- const r = lt(Le(e)), s = n.indexOf(r), i = s === -1 ? t === 1 ? 0 : o - 1 : s + t;
1780
+ const r = lt(ke(e)), s = n.indexOf(r), i = s === -1 ? t === 1 ? 0 : o - 1 : s + t;
1781
1781
  return n[i];
1782
1782
  }
1783
1783
  function Vr(e) {
1784
- return nc(Le(e).body, 1) || e;
1784
+ return nc(ke(e).body, 1) || e;
1785
1785
  }
1786
1786
  function oc(e) {
1787
- return nc(Le(e).body, -1) || e;
1787
+ return nc(ke(e).body, -1) || e;
1788
1788
  }
1789
1789
  function rc(e, t) {
1790
1790
  if (!e)
1791
1791
  return null;
1792
- const n = Fn(Le(e).body, hn()), o = n.length;
1792
+ const n = Fn(ke(e).body, hn()), o = n.length;
1793
1793
  if (o === 0)
1794
1794
  return null;
1795
1795
  const r = n.indexOf(e);
@@ -1819,9 +1819,9 @@ function Ds(e) {
1819
1819
  delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
1820
1820
  });
1821
1821
  }
1822
- const Eo = "ArrowUp", wo = "ArrowDown", So = "ArrowLeft", Ro = "ArrowRight", $r = "Home", Br = "End", lf = /* @__PURE__ */ new Set([So, Ro]), uf = /* @__PURE__ */ new Set([Eo, wo]), ff = /* @__PURE__ */ new Set([...lf, ...uf]);
1822
+ const Eo = "ArrowUp", So = "ArrowDown", wo = "ArrowLeft", Ro = "ArrowRight", $r = "Home", Br = "End", lf = /* @__PURE__ */ new Set([wo, Ro]), uf = /* @__PURE__ */ new Set([Eo, So]), ff = /* @__PURE__ */ new Set([...lf, ...uf]);
1823
1823
  [...ff];
1824
- const Hr = /* @__PURE__ */ new Set([Eo, wo, So, Ro, $r, Br]), df = /* @__PURE__ */ new Set([wo, Eo, Ro, So, $r, Br]);
1824
+ const Hr = /* @__PURE__ */ new Set([Eo, So, wo, Ro, $r, Br]), df = /* @__PURE__ */ new Set([So, Eo, Ro, wo, $r, Br]);
1825
1825
  function pf(e) {
1826
1826
  const {
1827
1827
  current: t
@@ -1859,8 +1859,8 @@ const sc = /* @__PURE__ */ a.forwardRef(function(t, n) {
1859
1859
  accordionItemRefs: E,
1860
1860
  direction: v,
1861
1861
  loopFocus: y,
1862
- orientation: w
1863
- } = Cr(), b = v === "rtl", x = w === "horizontal", {
1862
+ orientation: S
1863
+ } = Cr(), b = v === "rtl", x = S === "horizontal", {
1864
1864
  state: _,
1865
1865
  setTriggerId: T,
1866
1866
  triggerId: N
@@ -1874,31 +1874,31 @@ const sc = /* @__PURE__ */ a.forwardRef(function(t, n) {
1874
1874
  disabled: m,
1875
1875
  id: N,
1876
1876
  onClick: d,
1877
- onKeyDown(k) {
1878
- if (!df.has(k.key))
1877
+ onKeyDown(L) {
1878
+ if (!df.has(L.key))
1879
1879
  return;
1880
- Ue(k);
1880
+ Ue(L);
1881
1881
  const P = pf(E), A = P.length - 1;
1882
1882
  let C = -1;
1883
- const O = P.indexOf(k.target);
1883
+ const O = P.indexOf(L.target);
1884
1884
  function D() {
1885
1885
  y ? C = O + 1 > A ? 0 : O + 1 : C = Math.min(O + 1, A);
1886
1886
  }
1887
- function S() {
1887
+ function w() {
1888
1888
  y ? C = O === 0 ? A : O - 1 : C = O - 1;
1889
1889
  }
1890
- switch (k.key) {
1891
- case wo:
1890
+ switch (L.key) {
1891
+ case So:
1892
1892
  x || D();
1893
1893
  break;
1894
1894
  case Eo:
1895
- x || S();
1895
+ x || w();
1896
1896
  break;
1897
1897
  case Ro:
1898
- x && (b ? S() : D());
1898
+ x && (b ? w() : D());
1899
1899
  break;
1900
- case So:
1901
- x && (b ? D() : S());
1900
+ case wo:
1901
+ x && (b ? D() : w());
1902
1902
  break;
1903
1903
  case "Home":
1904
1904
  C = 0;
@@ -1941,17 +1941,17 @@ function gf(e) {
1941
1941
  setVisible: E,
1942
1942
  transitionDimensionRef: v,
1943
1943
  visible: y,
1944
- width: w
1945
- } = e, b = a.useRef(!1), x = a.useRef(null), _ = a.useRef(f), T = a.useRef(f), N = mn(), F = a.useMemo(() => n.current === "css-animation" ? !y : !f && !u, [f, u, y, n]), L = Q((P) => {
1944
+ width: S
1945
+ } = e, b = a.useRef(!1), x = a.useRef(null), _ = a.useRef(f), T = a.useRef(f), N = mn(), F = a.useMemo(() => n.current === "css-animation" ? !y : !f && !u, [f, u, y, n]), k = Q((P) => {
1946
1946
  if (!P)
1947
1947
  return;
1948
1948
  if (n.current == null || v.current == null) {
1949
1949
  const C = getComputedStyle(P), O = C.animationName !== "none" && C.animationName !== "", D = C.transitionDuration !== "0s" && C.transitionDuration !== "";
1950
- O && D ? process.env.NODE_ENV !== "production" && wr("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : C.animationName === "none" && C.transitionDuration !== "0s" ? n.current = "css-transition" : C.animationName !== "none" && C.transitionDuration === "0s" ? n.current = "css-animation" : n.current = "none", P.getAttribute(mf.orientation) === "horizontal" || C.transitionProperty.indexOf("width") > -1 ? v.current = "width" : v.current = "height";
1950
+ O && D ? process.env.NODE_ENV !== "production" && Sr("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : C.animationName === "none" && C.transitionDuration !== "0s" ? n.current = "css-transition" : C.animationName !== "none" && C.transitionDuration === "0s" ? n.current = "css-animation" : n.current = "none", P.getAttribute(mf.orientation) === "horizontal" || C.transitionProperty.indexOf("width") > -1 ? v.current = "width" : v.current = "height";
1951
1951
  }
1952
1952
  if (n.current !== "css-transition")
1953
1953
  return;
1954
- (r === void 0 || w === void 0) && (m({
1954
+ (r === void 0 || S === void 0) && (m({
1955
1955
  height: P.scrollHeight,
1956
1956
  width: P.scrollWidth
1957
1957
  }), T.current && P.style.setProperty("transition-duration", "0s"));
@@ -1965,7 +1965,7 @@ function gf(e) {
1965
1965
  }), () => {
1966
1966
  Ie.cancel(R), Ie.cancel(A);
1967
1967
  };
1968
- }), k = It(o, d, L);
1968
+ }), L = It(o, d, k);
1969
1969
  return X(() => {
1970
1970
  if (n.current !== "css-transition")
1971
1971
  return;
@@ -2002,8 +2002,8 @@ function gf(e) {
2002
2002
  const C = A.signal;
2003
2003
  let O = null;
2004
2004
  const D = _n.endingStyle;
2005
- return O = new MutationObserver((S) => {
2006
- S.some((B) => B.type === "attributes" && B.attributeName === D) && (O?.disconnect(), O = null, p(() => {
2005
+ return O = new MutationObserver((w) => {
2006
+ w.some((B) => B.type === "attributes" && B.attributeName === D) && (O?.disconnect(), O = null, p(() => {
2007
2007
  m({
2008
2008
  height: 0,
2009
2009
  width: 0
@@ -2070,11 +2070,11 @@ function gf(e) {
2070
2070
  props: {
2071
2071
  hidden: F,
2072
2072
  id: c,
2073
- ref: k
2073
+ ref: L
2074
2074
  }
2075
- }), [F, c, k]);
2075
+ }), [F, c, L]);
2076
2076
  }
2077
- let Ls = /* @__PURE__ */ (function(e) {
2077
+ let ks = /* @__PURE__ */ (function(e) {
2078
2078
  return e.accordionPanelHeight = "--accordion-panel-height", e.accordionPanelWidth = "--accordion-panel-width", e;
2079
2079
  })({});
2080
2080
  function Ve(e) {
@@ -2124,21 +2124,21 @@ const ic = /* @__PURE__ */ a.forwardRef(function(t, n) {
2124
2124
  open: E,
2125
2125
  panelId: v,
2126
2126
  panelRef: y,
2127
- runOnceAnimationsFinish: w,
2127
+ runOnceAnimationsFinish: S,
2128
2128
  setDimensions: b,
2129
2129
  setHiddenUntilFound: x,
2130
2130
  setKeepMounted: _,
2131
2131
  setMounted: T,
2132
2132
  setOpen: N,
2133
2133
  setVisible: F,
2134
- transitionDimensionRef: L,
2135
- visible: k,
2134
+ transitionDimensionRef: k,
2135
+ visible: L,
2136
2136
  width: P,
2137
2137
  setPanelIdState: R,
2138
2138
  transitionStatus: A
2139
2139
  } = Ai(), C = r ?? l, O = s ?? f;
2140
2140
  process.env.NODE_ENV !== "production" && X(() => {
2141
- s === !1 && C && wr("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.");
2141
+ s === !1 && C && Sr("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.");
2142
2142
  }, [C, s]), X(() => {
2143
2143
  if (i)
2144
2144
  return R(i), () => {
@@ -2172,29 +2172,29 @@ const ic = /* @__PURE__ */ a.forwardRef(function(t, n) {
2172
2172
  onOpenChange: h,
2173
2173
  open: E,
2174
2174
  panelRef: y,
2175
- runOnceAnimationsFinish: w,
2175
+ runOnceAnimationsFinish: S,
2176
2176
  setDimensions: b,
2177
2177
  setMounted: T,
2178
2178
  setOpen: N,
2179
2179
  setVisible: F,
2180
- transitionDimensionRef: L,
2181
- visible: k,
2180
+ transitionDimensionRef: k,
2181
+ visible: L,
2182
2182
  width: P
2183
2183
  }), {
2184
- state: S,
2184
+ state: w,
2185
2185
  triggerId: M
2186
2186
  } = Nr(), B = a.useMemo(() => ({
2187
- ...S,
2187
+ ...w,
2188
2188
  transitionStatus: A
2189
- }), [S, A]), U = he("div", t, {
2189
+ }), [w, A]), U = he("div", t, {
2190
2190
  state: B,
2191
2191
  ref: [n, y],
2192
2192
  props: [D, {
2193
2193
  "aria-labelledby": M,
2194
2194
  role: "region",
2195
2195
  style: {
2196
- [Ls.accordionPanelHeight]: m === void 0 ? "auto" : `${m}px`,
2197
- [Ls.accordionPanelWidth]: P === void 0 ? "auto" : `${P}px`
2196
+ [ks.accordionPanelHeight]: m === void 0 ? "auto" : `${m}px`,
2197
+ [ks.accordionPanelWidth]: P === void 0 ? "auto" : `${P}px`
2198
2198
  }
2199
2199
  }, u],
2200
2200
  stateAttributesMapping: Ar
@@ -2202,7 +2202,7 @@ const ic = /* @__PURE__ */ a.forwardRef(function(t, n) {
2202
2202
  return O || C || !O && g ? U : null;
2203
2203
  });
2204
2204
  process.env.NODE_ENV !== "production" && (ic.displayName = "AccordionPanel");
2205
- const yf = "_root_l6s1z_10", vf = "_item_l6s1z_53", bf = "_header_l6s1z_100", Ef = "_trigger_l6s1z_109", wf = "_triggerContent_l6s1z_195", Sf = "_triggerIcon_l6s1z_201", Rf = "_chevronSvg_l6s1z_214", xf = "_panel_l6s1z_222", Cf = "_panelContent_l6s1z_255", $e = {
2205
+ const yf = "_root_l6s1z_10", vf = "_item_l6s1z_53", bf = "_header_l6s1z_100", Ef = "_trigger_l6s1z_109", Sf = "_triggerContent_l6s1z_195", wf = "_triggerIcon_l6s1z_201", Rf = "_chevronSvg_l6s1z_214", xf = "_panel_l6s1z_222", Cf = "_panelContent_l6s1z_255", $e = {
2206
2206
  root: yf,
2207
2207
  "root--default": "_root--default_l6s1z_17",
2208
2208
  "root--bordered": "_root--bordered_l6s1z_21",
@@ -2225,8 +2225,8 @@ const yf = "_root_l6s1z_10", vf = "_item_l6s1z_53", bf = "_header_l6s1z_100", Ef
2225
2225
  "trigger--sm": "_trigger--sm_l6s1z_179",
2226
2226
  "trigger--md": "_trigger--md_l6s1z_184",
2227
2227
  "trigger--lg": "_trigger--lg_l6s1z_189",
2228
- triggerContent: wf,
2229
- triggerIcon: Sf,
2228
+ triggerContent: Sf,
2229
+ triggerIcon: wf,
2230
2230
  chevronSvg: Rf,
2231
2231
  panel: xf,
2232
2232
  "panel--default": "_panel--default_l6s1z_238",
@@ -2305,7 +2305,7 @@ const uc = Ae(({ className: e, children: t }, n) => {
2305
2305
  $e[`header--${r}`],
2306
2306
  e
2307
2307
  ].filter(Boolean).join(" ");
2308
- return /* @__PURE__ */ I(Li, { ref: n, className: s, children: t });
2308
+ return /* @__PURE__ */ I(ki, { ref: n, className: s, children: t });
2309
2309
  });
2310
2310
  uc.displayName = "ALSAccordion.Header";
2311
2311
  const fc = Ae(({ className: e, children: t }, n) => {
@@ -2361,7 +2361,7 @@ const _f = () => /* @__PURE__ */ I(
2361
2361
  }
2362
2362
  )
2363
2363
  }
2364
- ), wy = {
2364
+ ), Sy = {
2365
2365
  Root: ac,
2366
2366
  Item: lc,
2367
2367
  Header: uc,
@@ -2370,7 +2370,7 @@ const _f = () => /* @__PURE__ */ I(
2370
2370
  }, Tf = "_root_1n1xb_1", Of = {
2371
2371
  root: Tf
2372
2372
  };
2373
- function Sy(e) {
2373
+ function wy(e) {
2374
2374
  return /* @__PURE__ */ I("div", { className: Of.root });
2375
2375
  }
2376
2376
  const Pf = "_root_1wdul_1", Nf = {
@@ -2385,7 +2385,7 @@ const Af = "_root_rauug_1", If = {
2385
2385
  function xy(e) {
2386
2386
  return /* @__PURE__ */ I("div", { className: If.root });
2387
2387
  }
2388
- const Mf = "_button_1enjc_2", Df = "_block_1enjc_34", Lf = "_disabled_1enjc_372", Qt = {
2388
+ const Mf = "_button_1enjc_2", Df = "_block_1enjc_34", kf = "_disabled_1enjc_372", Qt = {
2389
2389
  button: Mf,
2390
2390
  block: Df,
2391
2391
  "size-sm": "_size-sm_1enjc_40",
@@ -2401,8 +2401,8 @@ const Mf = "_button_1enjc_2", Df = "_block_1enjc_34", Lf = "_disabled_1enjc_372"
2401
2401
  "variant-success": "_variant-success_1enjc_189",
2402
2402
  "variant-danger": "_variant-danger_1enjc_250",
2403
2403
  "variant-warning": "_variant-warning_1enjc_311",
2404
- disabled: Lf
2405
- }, kf = Ae(
2404
+ disabled: kf
2405
+ }, Lf = Ae(
2406
2406
  ({
2407
2407
  variant: e = "primary",
2408
2408
  buttonStyle: t = "full",
@@ -2436,7 +2436,7 @@ const Mf = "_button_1enjc_2", Df = "_block_1enjc_34", Lf = "_disabled_1enjc_372"
2436
2436
  );
2437
2437
  }
2438
2438
  );
2439
- kf.displayName = "ALSButton";
2439
+ Lf.displayName = "ALSButton";
2440
2440
  const Ff = "_root_11pg6_1", Vf = {
2441
2441
  root: Ff
2442
2442
  };
@@ -2508,7 +2508,7 @@ const Kf = {
2508
2508
  }
2509
2509
  }, Jf = {
2510
2510
  ...Bt,
2511
- ...Lt
2511
+ ...kt
2512
2512
  }, mc = /* @__PURE__ */ a.forwardRef(function(t, n) {
2513
2513
  const {
2514
2514
  render: o,
@@ -2731,18 +2731,18 @@ const gt = /* @__PURE__ */ a.forwardRef(function(t, n) {
2731
2731
  });
2732
2732
  });
2733
2733
  process.env.NODE_ENV !== "production" && (gt.displayName = "FocusGuard");
2734
- let ks = 0;
2734
+ let Ls = 0;
2735
2735
  function Qn(e, t = {}) {
2736
2736
  const {
2737
2737
  preventScroll: n = !1,
2738
2738
  cancelPrevious: o = !0,
2739
2739
  sync: r = !1
2740
2740
  } = t;
2741
- o && cancelAnimationFrame(ks);
2741
+ o && cancelAnimationFrame(Ls);
2742
2742
  const s = () => e?.focus({
2743
2743
  preventScroll: n
2744
2744
  });
2745
- r ? s() : ks = requestAnimationFrame(s);
2745
+ r ? s() : Ls = requestAnimationFrame(s);
2746
2746
  }
2747
2747
  const nn = {
2748
2748
  inert: /* @__PURE__ */ new WeakMap(),
@@ -2769,12 +2769,12 @@ function rd(e, t, n, o) {
2769
2769
  }
2770
2770
  function p(m) {
2771
2771
  !m || u.has(m) || [].forEach.call(m.children, (g) => {
2772
- if (kt(g) !== "script")
2772
+ if (Lt(g) !== "script")
2773
2773
  if (c.has(g))
2774
2774
  p(g);
2775
2775
  else {
2776
- const h = s ? g.getAttribute(s) : null, E = h !== null && h !== "false", v = Fs(s), y = (v.get(g) || 0) + 1, w = (f.get(g) || 0) + 1;
2777
- v.set(g, y), f.set(g, w), l.push(g), y === 1 && E && Un.add(g), w === 1 && g.setAttribute(r, ""), !E && s && g.setAttribute(s, s === "inert" ? "" : "true");
2776
+ const h = s ? g.getAttribute(s) : null, E = h !== null && h !== "false", v = Fs(s), y = (v.get(g) || 0) + 1, S = (f.get(g) || 0) + 1;
2777
+ v.set(g, y), f.set(g, S), l.push(g), y === 1 && E && Un.add(g), S === 1 && g.setAttribute(r, ""), !E && s && g.setAttribute(s, s === "inert" ? "" : "true");
2778
2778
  }
2779
2779
  });
2780
2780
  }
@@ -2786,7 +2786,7 @@ function rd(e, t, n, o) {
2786
2786
  };
2787
2787
  }
2788
2788
  function sd(e, t = !1, n = !1) {
2789
- const o = Le(e[0]).body;
2789
+ const o = ke(e[0]).body;
2790
2790
  return rd(e.concat(Array.from(o.querySelectorAll("[aria-live]"))), o, t, n);
2791
2791
  }
2792
2792
  const qr = /* @__PURE__ */ a.createContext(null);
@@ -2843,7 +2843,7 @@ const _o = /* @__PURE__ */ a.forwardRef(function(t, n) {
2843
2843
  ref: n,
2844
2844
  componentProps: t,
2845
2845
  elementProps: u
2846
- }), d = a.useRef(null), p = a.useRef(null), m = a.useRef(null), g = a.useRef(null), [h, E] = a.useState(null), v = h?.modal, y = h?.open, w = typeof c == "boolean" ? c : !!h && !h.modal && h.open && !!l;
2846
+ }), d = a.useRef(null), p = a.useRef(null), m = a.useRef(null), g = a.useRef(null), [h, E] = a.useState(null), v = h?.modal, y = h?.open, S = typeof c == "boolean" ? c : !!h && !h.modal && h.open && !!l;
2847
2847
  a.useEffect(() => {
2848
2848
  if (!l || v)
2849
2849
  return;
@@ -2867,7 +2867,7 @@ const _o = /* @__PURE__ */ a.forwardRef(function(t, n) {
2867
2867
  return /* @__PURE__ */ Be(a.Fragment, {
2868
2868
  children: [f, /* @__PURE__ */ Be(qr.Provider, {
2869
2869
  value: b,
2870
- children: [w && l && /* @__PURE__ */ I(gt, {
2870
+ children: [S && l && /* @__PURE__ */ I(gt, {
2871
2871
  "data-type": "outside",
2872
2872
  ref: d,
2873
2873
  onFocus: (x) => {
@@ -2878,10 +2878,10 @@ const _o = /* @__PURE__ */ a.forwardRef(function(t, n) {
2878
2878
  oc(_)?.focus();
2879
2879
  }
2880
2880
  }
2881
- }), w && l && /* @__PURE__ */ I("span", {
2881
+ }), S && l && /* @__PURE__ */ I("span", {
2882
2882
  "aria-owns": l.id,
2883
2883
  style: Wl
2884
- }), l && /* @__PURE__ */ it.createPortal(o, l), w && l && /* @__PURE__ */ I(gt, {
2884
+ }), l && /* @__PURE__ */ it.createPortal(o, l), S && l && /* @__PURE__ */ I(gt, {
2885
2885
  "data-type": "outside",
2886
2886
  ref: p,
2887
2887
  onFocus: (x) => {
@@ -2907,7 +2907,7 @@ function Kr() {
2907
2907
  Ot = Ot.filter((e) => e.isConnected);
2908
2908
  }
2909
2909
  function ad(e) {
2910
- Kr(), e && kt(e) !== "body" && (Ot.push(e), Ot.length > Vs && (Ot = Ot.slice(-Vs)));
2910
+ Kr(), e && Lt(e) !== "body" && (Ot.push(e), Ot.length > Vs && (Ot = Ot.slice(-Vs)));
2911
2911
  }
2912
2912
  function Uo() {
2913
2913
  return Kr(), Ot[Ot.length - 1];
@@ -2947,37 +2947,37 @@ function Gr(e) {
2947
2947
  previousFocusableElement: m,
2948
2948
  beforeContentFocusGuardRef: g,
2949
2949
  externalTree: h
2950
- } = e, E = "rootStore" in t ? t.rootStore : t, v = E.useState("open"), y = E.useState("domReferenceElement"), w = E.useState("floatingElement"), {
2950
+ } = e, E = "rootStore" in t ? t.rootStore : t, v = E.useState("open"), y = E.useState("domReferenceElement"), S = E.useState("floatingElement"), {
2951
2951
  events: b,
2952
2952
  dataRef: x
2953
- } = E.context, _ = Q(() => x.current.floatingContext?.nodeId), T = Q(d), N = s === !1, F = ur(y) && N, L = Ve(r), k = Ve(s), P = Ve(i), R = Ve(f), A = Zt(h), C = bc(), O = a.useRef(null), D = a.useRef(null), S = a.useRef(!1), M = a.useRef(!1), B = a.useRef(-1), U = a.useRef(""), Z = a.useRef(""), Y = Ze(), te = Ze(), G = mn(), z = C != null, $ = An(w), ce = Q((W = $) => W ? Fn(W, hn()) : []), fe = Q((W) => {
2953
+ } = E.context, _ = Q(() => x.current.floatingContext?.nodeId), T = Q(d), N = s === !1, F = ur(y) && N, k = Ve(r), L = Ve(s), P = Ve(i), R = Ve(f), A = Zt(h), C = bc(), O = a.useRef(null), D = a.useRef(null), w = a.useRef(!1), M = a.useRef(!1), B = a.useRef(-1), U = a.useRef(""), Z = a.useRef(""), Y = Ze(), te = Ze(), G = mn(), z = C != null, $ = An(S), ce = Q((W = $) => W ? Fn(W, hn()) : []), fe = Q((W) => {
2954
2954
  const K = ce(W);
2955
- return L.current.map(() => K).filter(Boolean).flat();
2955
+ return k.current.map(() => K).filter(Boolean).flat();
2956
2956
  });
2957
2957
  a.useEffect(() => {
2958
2958
  if (o || !u)
2959
2959
  return;
2960
2960
  function W(j) {
2961
- j.key === "Tab" && Ee($, lt(Le($))) && ce().length === 0 && !F && Ue(j);
2961
+ j.key === "Tab" && Ee($, lt(ke($))) && ce().length === 0 && !F && Ue(j);
2962
2962
  }
2963
- const K = Le($);
2963
+ const K = ke($);
2964
2964
  return K.addEventListener("keydown", W), () => {
2965
2965
  K.removeEventListener("keydown", W);
2966
2966
  };
2967
- }, [o, y, $, u, L, F, ce, fe]), a.useEffect(() => {
2968
- if (o || !w)
2967
+ }, [o, y, $, u, k, F, ce, fe]), a.useEffect(() => {
2968
+ if (o || !S)
2969
2969
  return;
2970
2970
  function W(K) {
2971
2971
  const j = Ke(K), ae = ce().indexOf(j);
2972
2972
  ae !== -1 && (B.current = ae);
2973
2973
  }
2974
- return w.addEventListener("focusin", W), () => {
2975
- w.removeEventListener("focusin", W);
2974
+ return S.addEventListener("focusin", W), () => {
2975
+ S.removeEventListener("focusin", W);
2976
2976
  };
2977
- }, [o, w, ce]), a.useEffect(() => {
2977
+ }, [o, S, ce]), a.useEffect(() => {
2978
2978
  if (o || !v)
2979
2979
  return;
2980
- const W = Le($);
2980
+ const W = ke($);
2981
2981
  function K(de) {
2982
2982
  Z.current = de.pointerType || "keyboard";
2983
2983
  }
@@ -2987,7 +2987,7 @@ function Gr(e) {
2987
2987
  return W.addEventListener("pointerdown", K, !0), W.addEventListener("keydown", j, !0), () => {
2988
2988
  W.removeEventListener("pointerdown", K, !0), W.removeEventListener("keydown", j, !0);
2989
2989
  };
2990
- }, [o, w, y, $, v]), a.useEffect(() => {
2990
+ }, [o, S, y, $, v]), a.useEffect(() => {
2991
2991
  if (o || !l)
2992
2992
  return;
2993
2993
  function W() {
@@ -2998,16 +2998,16 @@ function Gr(e) {
2998
2998
  function K(oe) {
2999
2999
  const V = oe.relatedTarget, ie = oe.currentTarget, ee = Ke(oe);
3000
3000
  queueMicrotask(() => {
3001
- const q = _(), J = E.context.triggerElements, le = !(Ee(y, V) || Ee(w, V) || Ee(V, w) || Ee(C?.portalNode, V) || V != null && J.hasElement(V) || J.hasMatchingElement((ue) => Ee(ue, V)) || V?.hasAttribute(Mn("focus-guard")) || A && (qt(A.nodesRef.current, q).find((ue) => Ee(ue.context?.elements.floating, V) || Ee(ue.context?.elements.domReference, V)) || Ps(A.nodesRef.current, q).find((ue) => [ue.context?.elements.floating, An(ue.context?.elements.floating)].includes(V) || ue.context?.elements.domReference === V)));
3002
- if (ie === y && $ && $s($, L), c && ie !== y && !ud(ee) && lt(Le($)) === Le($).body) {
3001
+ const q = _(), J = E.context.triggerElements, le = !(Ee(y, V) || Ee(S, V) || Ee(V, S) || Ee(C?.portalNode, V) || V != null && J.hasElement(V) || J.hasMatchingElement((ue) => Ee(ue, V)) || V?.hasAttribute(Mn("focus-guard")) || A && (qt(A.nodesRef.current, q).find((ue) => Ee(ue.context?.elements.floating, V) || Ee(ue.context?.elements.domReference, V)) || Ps(A.nodesRef.current, q).find((ue) => [ue.context?.elements.floating, An(ue.context?.elements.floating)].includes(V) || ue.context?.elements.domReference === V)));
3002
+ if (ie === y && $ && $s($, k), c && ie !== y && !ud(ee) && lt(ke($)) === ke($).body) {
3003
3003
  if (Me($) && ($.focus(), c === "popup")) {
3004
3004
  G.request(() => {
3005
3005
  $.focus();
3006
3006
  });
3007
3007
  return;
3008
3008
  }
3009
- const ue = B.current, Re = ce(), Se = Re[ue] || Re[Re.length - 1] || $;
3010
- Me(Se) && Se.focus();
3009
+ const ue = B.current, Re = ce(), we = Re[ue] || Re[Re.length - 1] || $;
3010
+ Me(we) && we.focus();
3011
3011
  }
3012
3012
  if (x.current.insideReactTree) {
3013
3013
  x.current.insideReactTree = !1;
@@ -3020,7 +3020,7 @@ function Gr(e) {
3020
3020
  // focused again. Otherwise, the popup remains open on the second Tab sequence:
3021
3021
  // click input -> Tab (closes) -> click input -> Tab.
3022
3022
  // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
3023
- (F || V !== Uo()) && (S.current = !0, E.setOpen(!1, me(Kt, oe)));
3023
+ (F || V !== Uo()) && (w.current = !0, E.setOpen(!1, me(Kt, oe)));
3024
3024
  });
3025
3025
  }
3026
3026
  function j() {
@@ -3029,33 +3029,33 @@ function Gr(e) {
3029
3029
  });
3030
3030
  }
3031
3031
  const de = Me(y) ? y : null, ae = [];
3032
- if (!(!w && !de))
3032
+ if (!(!S && !de))
3033
3033
  return de && (de.addEventListener("focusout", K), de.addEventListener("pointerdown", W), ae.push(() => {
3034
3034
  de.removeEventListener("focusout", K), de.removeEventListener("pointerdown", W);
3035
- })), w && (w.addEventListener("focusout", K), C && (w.addEventListener("focusout", j, !0), ae.push(() => {
3036
- w.removeEventListener("focusout", j, !0);
3035
+ })), S && (S.addEventListener("focusout", K), C && (S.addEventListener("focusout", j, !0), ae.push(() => {
3036
+ S.removeEventListener("focusout", j, !0);
3037
3037
  })), ae.push(() => {
3038
- w.removeEventListener("focusout", K);
3038
+ S.removeEventListener("focusout", K);
3039
3039
  })), () => {
3040
3040
  ae.forEach((oe) => {
3041
3041
  oe();
3042
3042
  });
3043
3043
  };
3044
- }, [o, y, w, $, u, A, C, E, l, c, ce, F, _, L, x, Y, te, G]);
3044
+ }, [o, y, S, $, u, A, C, E, l, c, ce, F, _, k, x, Y, te, G]);
3045
3045
  const be = a.useRef(null), H = a.useRef(null), se = It(be, g, C?.beforeInsideRef), ne = It(H, C?.afterInsideRef);
3046
3046
  a.useEffect(() => {
3047
- if (o || !w || !v)
3047
+ if (o || !S || !v)
3048
3048
  return;
3049
- const W = Array.from(C?.portalNode?.querySelectorAll(`[${Mn("portal")}]`) || []), j = (A ? Ps(A.nodesRef.current, _()) : []).find((oe) => ur(oe.context?.elements.domReference || null))?.context?.elements.domReference, de = [w, j, ...W, ...T(), O.current, D.current, be.current, H.current, C?.beforeOutsideRef.current, C?.afterOutsideRef.current, Wt(m), Wt(p), F ? y : null].filter((oe) => oe != null), ae = sd(de, u || F);
3049
+ const W = Array.from(C?.portalNode?.querySelectorAll(`[${Mn("portal")}]`) || []), j = (A ? Ps(A.nodesRef.current, _()) : []).find((oe) => ur(oe.context?.elements.domReference || null))?.context?.elements.domReference, de = [S, j, ...W, ...T(), O.current, D.current, be.current, H.current, C?.beforeOutsideRef.current, C?.afterOutsideRef.current, Wt(m), Wt(p), F ? y : null].filter((oe) => oe != null), ae = sd(de, u || F);
3050
3050
  return () => {
3051
3051
  ae();
3052
3052
  };
3053
- }, [v, o, y, w, u, L, C, F, A, _, T, p, m]), X(() => {
3053
+ }, [v, o, y, S, u, k, C, F, A, _, T, p, m]), X(() => {
3054
3054
  if (!v || o || !Me($))
3055
3055
  return;
3056
- const W = Le($), K = lt(W);
3056
+ const W = ke($), K = lt(W);
3057
3057
  queueMicrotask(() => {
3058
- const j = fe($), de = k.current, ae = typeof de == "function" ? de(R.current || "") : de;
3058
+ const j = fe($), de = L.current, ae = typeof de == "function" ? de(R.current || "") : de;
3059
3059
  if (ae === void 0 || ae === !1)
3060
3060
  return;
3061
3061
  let oe;
@@ -3063,24 +3063,24 @@ function Gr(e) {
3063
3063
  preventScroll: oe === $
3064
3064
  });
3065
3065
  });
3066
- }, [o, v, $, N, fe, k, R]), X(() => {
3066
+ }, [o, v, $, N, fe, L, R]), X(() => {
3067
3067
  if (o || !$)
3068
3068
  return;
3069
- const W = Le($), K = lt(W);
3069
+ const W = ke($), K = lt(W);
3070
3070
  ad(K);
3071
3071
  function j(oe) {
3072
- if (oe.open || (U.current = cd(oe.nativeEvent, Z.current)), oe.reason === rt && oe.nativeEvent.type === "mouseleave" && (S.current = !0), oe.reason === _i)
3072
+ if (oe.open || (U.current = cd(oe.nativeEvent, Z.current)), oe.reason === rt && oe.nativeEvent.type === "mouseleave" && (w.current = !0), oe.reason === _i)
3073
3073
  if (oe.nested)
3074
- S.current = !1;
3074
+ w.current = !1;
3075
3075
  else if (qi(oe.nativeEvent) || Ki(oe.nativeEvent))
3076
- S.current = !1;
3076
+ w.current = !1;
3077
3077
  else {
3078
3078
  let V = !1;
3079
3079
  document.createElement("div").focus({
3080
3080
  get preventScroll() {
3081
3081
  return V = !0, !1;
3082
3082
  }
3083
- }), V ? S.current = !1 : S.current = !0;
3083
+ }), V ? w.current = !1 : w.current = !0;
3084
3084
  }
3085
3085
  }
3086
3086
  b.on("openchange", j);
@@ -3100,11 +3100,11 @@ function Gr(e) {
3100
3100
  }
3101
3101
  return () => {
3102
3102
  b.off("openchange", j);
3103
- const oe = lt(W), V = Ee(w, oe) || A && qt(A.nodesRef.current, _(), !1).some((ee) => Ee(ee.context?.elements.floating, oe)), ie = ae();
3103
+ const oe = lt(W), V = Ee(S, oe) || A && qt(A.nodesRef.current, _(), !1).some((ee) => Ee(ee.context?.elements.floating, oe)), ie = ae();
3104
3104
  queueMicrotask(() => {
3105
3105
  const ee = ld(ie), q = typeof P.current != "boolean";
3106
3106
  // eslint-disable-next-line react-hooks/exhaustive-deps
3107
- P.current && !S.current && Me(ee) && // If the focus moved somewhere else after mount, avoid returning focus
3107
+ P.current && !w.current && Me(ee) && // If the focus moved somewhere else after mount, avoid returning focus
3108
3108
  // since it likely entered a different element which should be
3109
3109
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
3110
3110
  (!(!q && ee !== oe && oe !== W.body) || V) && ee.focus({
@@ -3112,9 +3112,9 @@ function Gr(e) {
3112
3112
  }), de.remove();
3113
3113
  });
3114
3114
  };
3115
- }, [o, w, $, P, x, b, A, z, y, _]), a.useEffect(() => {
3115
+ }, [o, S, $, P, x, b, A, z, y, _]), a.useEffect(() => {
3116
3116
  queueMicrotask(() => {
3117
- S.current = !1;
3117
+ w.current = !1;
3118
3118
  });
3119
3119
  }, [o]), a.useEffect(() => {
3120
3120
  if (o || !v)
@@ -3122,7 +3122,7 @@ function Gr(e) {
3122
3122
  function W(j) {
3123
3123
  Ke(j)?.closest(`[${Tr}]`) && (M.current = !0);
3124
3124
  }
3125
- const K = Le($);
3125
+ const K = ke($);
3126
3126
  return K.addEventListener("pointerdown", W, !0), () => {
3127
3127
  K.removeEventListener("pointerdown", W, !0);
3128
3128
  };
@@ -3139,26 +3139,26 @@ function Gr(e) {
3139
3139
  };
3140
3140
  }, [o, C, u, v, E, l, y]), X(() => {
3141
3141
  if (!(o || !$))
3142
- return $s($, L), () => {
3142
+ return $s($, k), () => {
3143
3143
  queueMicrotask(Kr);
3144
3144
  };
3145
- }, [o, $, L]);
3146
- const we = !o && (u ? !F : !0) && (z || u);
3145
+ }, [o, $, k]);
3146
+ const Se = !o && (u ? !F : !0) && (z || u);
3147
3147
  return /* @__PURE__ */ Be(a.Fragment, {
3148
- children: [we && /* @__PURE__ */ I(gt, {
3148
+ children: [Se && /* @__PURE__ */ I(gt, {
3149
3149
  "data-type": "inside",
3150
3150
  ref: se,
3151
3151
  onFocus: (W) => {
3152
3152
  if (u) {
3153
3153
  const K = fe();
3154
3154
  Qn(K[K.length - 1]);
3155
- } else C?.portalNode && (S.current = !1, tn(W, C.portalNode) ? Vr(y)?.focus() : Wt(m ?? C.beforeOutsideRef)?.focus());
3155
+ } else C?.portalNode && (w.current = !1, tn(W, C.portalNode) ? Vr(y)?.focus() : Wt(m ?? C.beforeOutsideRef)?.focus());
3156
3156
  }
3157
- }), n, we && /* @__PURE__ */ I(gt, {
3157
+ }), n, Se && /* @__PURE__ */ I(gt, {
3158
3158
  "data-type": "inside",
3159
3159
  ref: ne,
3160
3160
  onFocus: (W) => {
3161
- u ? Qn(fe()[0]) : C?.portalNode && (l && (S.current = !0), tn(W, C.portalNode) ? oc(y)?.focus() : Wt(p ?? C.afterOutsideRef)?.focus());
3161
+ u ? Qn(fe()[0]) : C?.portalNode && (l && (w.current = !0), tn(W, C.portalNode) ? oc(y)?.focus() : Wt(p ?? C.afterOutsideRef)?.focus());
3162
3162
  }
3163
3163
  })]
3164
3164
  });
@@ -3179,7 +3179,7 @@ function Yr(e, t = {}) {
3179
3179
  const h = f.current, E = g.nativeEvent, v = n.select("open");
3180
3180
  if (g.button !== 0 || s === "click" || an(h, !0) && c)
3181
3181
  return;
3182
- const y = o.current.openEvent, w = y?.type, b = n.select("domReferenceElement") !== g.currentTarget, x = v && b || !(v && i && (!(y && u) || w === "click" || w === "mousedown"));
3182
+ const y = o.current.openEvent, S = y?.type, b = n.select("domReferenceElement") !== g.currentTarget, x = v && b || !(v && i && (!(y && u) || S === "click" || S === "mousedown"));
3183
3183
  if (ji(E.target)) {
3184
3184
  const T = me(bt, E, E.target);
3185
3185
  x && h === "touch" && l > 0 ? p.start(l, () => {
@@ -3205,7 +3205,7 @@ function Yr(e, t = {}) {
3205
3205
  }
3206
3206
  if (an(h, !0) && c)
3207
3207
  return;
3208
- const E = n.select("open"), v = o.current.openEvent, y = v?.type, w = n.select("domReferenceElement") !== g.currentTarget, b = E && w || !(E && i && (!(v && u) || y === "click" || y === "mousedown" || y === "keydown" || y === "keyup")), x = me(bt, g.nativeEvent, g.currentTarget);
3208
+ const E = n.select("open"), v = o.current.openEvent, y = v?.type, S = n.select("domReferenceElement") !== g.currentTarget, b = E && S || !(E && i && (!(v && u) || y === "click" || y === "mousedown" || y === "keydown" || y === "keyup")), x = me(bt, g.nativeEvent, g.currentTarget);
3209
3209
  b && h === "touch" && l > 0 ? p.start(l, () => {
3210
3210
  n.setOpen(!0, x);
3211
3211
  }) : n.setOpen(b, x);
@@ -3223,7 +3223,7 @@ function Bs(e, t, n) {
3223
3223
  reference: o,
3224
3224
  floating: r
3225
3225
  } = e;
3226
- const s = ut(t), i = Fr(t), c = kr(i), u = Je(t), l = s === "y", f = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
3226
+ const s = ut(t), i = Fr(t), c = Lr(i), u = Je(t), l = s === "y", f = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
3227
3227
  let m;
3228
3228
  switch (u) {
3229
3229
  case "top":
@@ -3287,7 +3287,7 @@ const fd = async (e, t, n) => {
3287
3287
  fn: v
3288
3288
  } = c[h], {
3289
3289
  x: y,
3290
- y: w,
3290
+ y: S,
3291
3291
  data: b,
3292
3292
  reset: x
3293
3293
  } = await v({
@@ -3304,7 +3304,7 @@ const fd = async (e, t, n) => {
3304
3304
  floating: t
3305
3305
  }
3306
3306
  });
3307
- f = y ?? f, d = w ?? d, m = {
3307
+ f = y ?? f, d = S ?? d, m = {
3308
3308
  ...m,
3309
3309
  [E]: {
3310
3310
  ...m[E],
@@ -3353,7 +3353,7 @@ async function Dn(e, t) {
3353
3353
  y: r,
3354
3354
  width: i.floating.width,
3355
3355
  height: i.floating.height
3356
- } : i.reference, w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(w)) ? await (s.getScale == null ? void 0 : s.getScale(w)) || {
3356
+ } : i.reference, S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(S)) ? await (s.getScale == null ? void 0 : s.getScale(S)) || {
3357
3357
  x: 1,
3358
3358
  y: 1
3359
3359
  } : {
@@ -3362,7 +3362,7 @@ async function Dn(e, t) {
3362
3362
  }, x = so(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
3363
3363
  elements: c,
3364
3364
  rect: y,
3365
- offsetParent: w,
3365
+ offsetParent: S,
3366
3366
  strategy: u
3367
3367
  }) : y);
3368
3368
  return {
@@ -3396,46 +3396,46 @@ const dd = function(e) {
3396
3396
  } = Rt(e, t);
3397
3397
  if ((n = s.arrow) != null && n.alignmentOffset)
3398
3398
  return {};
3399
- const v = Je(r), y = ut(c), w = Je(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), x = p || (w || !h ? [ro(c)] : Du(c)), _ = g !== "none";
3399
+ const v = Je(r), y = ut(c), S = Je(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), x = p || (S || !h ? [ro(c)] : Du(c)), _ = g !== "none";
3400
3400
  !p && _ && x.push(...Vu(c, h, g, b));
3401
3401
  const T = [c, ...x], N = await Dn(t, E), F = [];
3402
- let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
3402
+ let k = ((o = s.flip) == null ? void 0 : o.overflows) || [];
3403
3403
  if (f && F.push(N[v]), d) {
3404
3404
  const A = Mu(r, i, b);
3405
3405
  F.push(N[A[0]], N[A[1]]);
3406
3406
  }
3407
- if (L = [...L, {
3407
+ if (k = [...k, {
3408
3408
  placement: r,
3409
3409
  overflows: F
3410
3410
  }], !F.every((A) => A <= 0)) {
3411
- var k, P;
3412
- const A = (((k = s.flip) == null ? void 0 : k.index) || 0) + 1, C = T[A];
3411
+ var L, P;
3412
+ const A = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, C = T[A];
3413
3413
  if (C && (!(d === "alignment" ? y !== ut(C) : !1) || // We leave the current main axis only if every placement on that axis
3414
3414
  // overflows the main axis.
3415
- L.every((S) => ut(S.placement) === y ? S.overflows[0] > 0 : !0)))
3415
+ k.every((w) => ut(w.placement) === y ? w.overflows[0] > 0 : !0)))
3416
3416
  return {
3417
3417
  data: {
3418
3418
  index: A,
3419
- overflows: L
3419
+ overflows: k
3420
3420
  },
3421
3421
  reset: {
3422
3422
  placement: C
3423
3423
  }
3424
3424
  };
3425
- let O = (P = L.filter((D) => D.overflows[0] <= 0).sort((D, S) => D.overflows[1] - S.overflows[1])[0]) == null ? void 0 : P.placement;
3425
+ let O = (P = k.filter((D) => D.overflows[0] <= 0).sort((D, w) => D.overflows[1] - w.overflows[1])[0]) == null ? void 0 : P.placement;
3426
3426
  if (!O)
3427
3427
  switch (m) {
3428
3428
  case "bestFit": {
3429
3429
  var R;
3430
- const D = (R = L.filter((S) => {
3430
+ const D = (R = k.filter((w) => {
3431
3431
  if (_) {
3432
- const M = ut(S.placement);
3432
+ const M = ut(w.placement);
3433
3433
  return M === y || // Create a bias to the `y` side axis due to horizontal
3434
3434
  // reading directions favoring greater width.
3435
3435
  M === "y";
3436
3436
  }
3437
3437
  return !0;
3438
- }).map((S) => [S.placement, S.overflows.filter((M) => M > 0).reduce((M, B) => M + B, 0)]).sort((S, M) => S[1] - M[1])[0]) == null ? void 0 : R[0];
3438
+ }).map((w) => [w.placement, w.overflows.filter((M) => M > 0).reduce((M, B) => M + B, 0)]).sort((w, M) => w[1] - M[1])[0]) == null ? void 0 : R[0];
3439
3439
  D && (O = D);
3440
3440
  break;
3441
3441
  }
@@ -3506,13 +3506,13 @@ const pd = function(e) {
3506
3506
  }
3507
3507
  }
3508
3508
  };
3509
- }, wc = /* @__PURE__ */ new Set(["left", "top"]);
3509
+ }, Sc = /* @__PURE__ */ new Set(["left", "top"]);
3510
3510
  async function md(e, t) {
3511
3511
  const {
3512
3512
  placement: n,
3513
3513
  platform: o,
3514
3514
  elements: r
3515
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Je(n), c = Ft(n), u = ut(n) === "y", l = wc.has(i) ? -1 : 1, f = s && u ? -1 : 1, d = Rt(t, e);
3515
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Je(n), c = Ft(n), u = ut(n) === "y", l = Sc.has(i) ? -1 : 1, f = s && u ? -1 : 1, d = Rt(t, e);
3516
3516
  let {
3517
3517
  mainAxis: p,
3518
3518
  crossAxis: m,
@@ -3584,15 +3584,15 @@ const gd = function(e) {
3584
3584
  } = Rt(e, t), l = {
3585
3585
  x: n,
3586
3586
  y: o
3587
- }, f = await Dn(t, u), d = ut(Je(r)), p = Lr(d);
3587
+ }, f = await Dn(t, u), d = ut(Je(r)), p = kr(d);
3588
3588
  let m = l[p], g = l[d];
3589
3589
  if (s) {
3590
- const E = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = m + f[E], w = m - f[v];
3591
- m = dr(y, m, w);
3590
+ const E = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = m + f[E], S = m - f[v];
3591
+ m = dr(y, m, S);
3592
3592
  }
3593
3593
  if (i) {
3594
- const E = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = g + f[E], w = g - f[v];
3595
- g = dr(y, g, w);
3594
+ const E = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = g + f[E], S = g - f[v];
3595
+ g = dr(y, g, S);
3596
3596
  }
3597
3597
  const h = c.fn({
3598
3598
  ...t,
@@ -3629,7 +3629,7 @@ const gd = function(e) {
3629
3629
  } = Rt(e, t), f = {
3630
3630
  x: n,
3631
3631
  y: o
3632
- }, d = ut(r), p = Lr(d);
3632
+ }, d = ut(r), p = kr(d);
3633
3633
  let m = f[p], g = f[d];
3634
3634
  const h = Rt(c, t), E = typeof h == "number" ? {
3635
3635
  mainAxis: h,
@@ -3640,12 +3640,12 @@ const gd = function(e) {
3640
3640
  ...h
3641
3641
  };
3642
3642
  if (u) {
3643
- const w = p === "y" ? "height" : "width", b = s.reference[p] - s.floating[w] + E.mainAxis, x = s.reference[p] + s.reference[w] - E.mainAxis;
3643
+ const S = p === "y" ? "height" : "width", b = s.reference[p] - s.floating[S] + E.mainAxis, x = s.reference[p] + s.reference[S] - E.mainAxis;
3644
3644
  m < b ? m = b : m > x && (m = x);
3645
3645
  }
3646
3646
  if (l) {
3647
3647
  var v, y;
3648
- const w = p === "y" ? "width" : "height", b = wc.has(Je(r)), x = s.reference[d] - s.floating[w] + (b && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (b ? 0 : E.crossAxis), _ = s.reference[d] + s.reference[w] + (b ? 0 : ((y = i.offset) == null ? void 0 : y[d]) || 0) - (b ? E.crossAxis : 0);
3648
+ const S = p === "y" ? "width" : "height", b = Sc.has(Je(r)), x = s.reference[d] - s.floating[S] + (b && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (b ? 0 : E.crossAxis), _ = s.reference[d] + s.reference[S] + (b ? 0 : ((y = i.offset) == null ? void 0 : y[d]) || 0) - (b ? E.crossAxis : 0);
3649
3649
  g < x ? g = x : g > _ && (g = _);
3650
3650
  }
3651
3651
  return {
@@ -3675,11 +3675,11 @@ const gd = function(e) {
3675
3675
  } = s.floating;
3676
3676
  let E, v;
3677
3677
  d === "top" || d === "bottom" ? (E = d, v = p === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = d, E = p === "end" ? "top" : "bottom");
3678
- const y = h - f.top - f.bottom, w = g - f.left - f.right, b = ln(h - f[E], y), x = ln(g - f[v], w), _ = !t.middlewareData.shift;
3678
+ const y = h - f.top - f.bottom, S = g - f.left - f.right, b = ln(h - f[E], y), x = ln(g - f[v], S), _ = !t.middlewareData.shift;
3679
3679
  let T = b, N = x;
3680
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = w), (o = t.middlewareData.shift) != null && o.enabled.y && (T = y), _ && !p) {
3681
- const L = nt(f.left, 0), k = nt(f.right, 0), P = nt(f.top, 0), R = nt(f.bottom, 0);
3682
- m ? N = g - 2 * (L !== 0 || k !== 0 ? L + k : nt(f.left, f.right)) : T = h - 2 * (P !== 0 || R !== 0 ? P + R : nt(f.top, f.bottom));
3680
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = S), (o = t.middlewareData.shift) != null && o.enabled.y && (T = y), _ && !p) {
3681
+ const k = nt(f.left, 0), L = nt(f.right, 0), P = nt(f.top, 0), R = nt(f.bottom, 0);
3682
+ m ? N = g - 2 * (k !== 0 || L !== 0 ? k + L : nt(f.left, f.right)) : T = h - 2 * (P !== 0 || R !== 0 ? P + R : nt(f.top, f.bottom));
3683
3683
  }
3684
3684
  await u({
3685
3685
  ...t,
@@ -3695,7 +3695,7 @@ const gd = function(e) {
3695
3695
  }
3696
3696
  };
3697
3697
  };
3698
- function Sc(e) {
3698
+ function wc(e) {
3699
3699
  const t = et(e);
3700
3700
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
3701
3701
  const r = Me(e), s = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, c = un(n) !== s || un(o) !== i;
@@ -3716,7 +3716,7 @@ function on(e) {
3716
3716
  width: o,
3717
3717
  height: r,
3718
3718
  $: s
3719
- } = Sc(t);
3719
+ } = wc(t);
3720
3720
  let i = (s ? un(n.width) : n.width) / o, c = (s ? un(n.height) : n.height) / r;
3721
3721
  return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
3722
3722
  x: i,
@@ -3745,8 +3745,8 @@ function Gt(e, t, n, o) {
3745
3745
  const p = De(s), m = o && Ce(o) ? De(o) : o;
3746
3746
  let g = p, h = ir(g);
3747
3747
  for (; h && o && m !== g; ) {
3748
- const E = on(h), v = h.getBoundingClientRect(), y = et(h), w = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * E.x, b = v.top + (h.clientTop + parseFloat(y.paddingTop)) * E.y;
3749
- u *= E.x, l *= E.y, f *= E.x, d *= E.y, u += w, l += b, g = De(h), h = ir(g);
3748
+ const E = on(h), v = h.getBoundingClientRect(), y = et(h), S = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * E.x, b = v.top + (h.clientTop + parseFloat(y.paddingTop)) * E.y;
3749
+ u *= E.x, l *= E.y, f *= E.x, d *= E.y, u += S, l += b, g = De(h), h = ir(g);
3750
3750
  }
3751
3751
  }
3752
3752
  return so({
@@ -3767,7 +3767,7 @@ function xc(e, t) {
3767
3767
  y: r
3768
3768
  };
3769
3769
  }
3770
- function wd(e) {
3770
+ function Sd(e) {
3771
3771
  let {
3772
3772
  elements: t,
3773
3773
  rect: n,
@@ -3782,7 +3782,7 @@ function wd(e) {
3782
3782
  scrollTop: 0
3783
3783
  }, l = mt(1);
3784
3784
  const f = mt(0), d = Me(o);
3785
- if ((d || !d && !s) && ((kt(o) !== "body" || Xt(i)) && (u = bo(o)), Me(o))) {
3785
+ if ((d || !d && !s) && ((Lt(o) !== "body" || Xt(i)) && (u = bo(o)), Me(o))) {
3786
3786
  const m = Gt(o);
3787
3787
  l = on(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
3788
3788
  }
@@ -3794,7 +3794,7 @@ function wd(e) {
3794
3794
  y: n.y * l.y - u.scrollTop * l.y + f.y + p.y
3795
3795
  };
3796
3796
  }
3797
- function Sd(e) {
3797
+ function wd(e) {
3798
3798
  return Array.from(e.getClientRects());
3799
3799
  }
3800
3800
  function Rd(e) {
@@ -3859,19 +3859,19 @@ function Ws(e, t, n) {
3859
3859
  return so(o);
3860
3860
  }
3861
3861
  function Cc(e, t) {
3862
- const n = St(e);
3862
+ const n = wt(e);
3863
3863
  return n === t || !Ce(n) || Et(n) ? !1 : et(n).position === "fixed" || Cc(n, t);
3864
3864
  }
3865
3865
  function Td(e, t) {
3866
3866
  const n = t.get(e);
3867
3867
  if (n)
3868
3868
  return n;
3869
- let o = Pt(e, [], !1).filter((c) => Ce(c) && kt(c) !== "body"), r = null;
3869
+ let o = Pt(e, [], !1).filter((c) => Ce(c) && Lt(c) !== "body"), r = null;
3870
3870
  const s = et(e).position === "fixed";
3871
- let i = s ? St(e) : e;
3871
+ let i = s ? wt(e) : e;
3872
3872
  for (; Ce(i) && !Et(i); ) {
3873
3873
  const c = et(i), u = Mr(i);
3874
- !u && c.position === "fixed" && (r = null), (s ? !u && !r : !u && c.position === "static" && !!r && Cd.has(r.position) || Xt(i) && !u && Cc(e, i)) ? o = o.filter((f) => f !== i) : r = c, i = St(i);
3874
+ !u && c.position === "fixed" && (r = null), (s ? !u && !r : !u && c.position === "static" && !!r && Cd.has(r.position) || Xt(i) && !u && Cc(e, i)) ? o = o.filter((f) => f !== i) : r = c, i = wt(i);
3875
3875
  }
3876
3876
  return t.set(e, o), o;
3877
3877
  }
@@ -3897,7 +3897,7 @@ function Pd(e) {
3897
3897
  const {
3898
3898
  width: t,
3899
3899
  height: n
3900
- } = Sc(e);
3900
+ } = wc(e);
3901
3901
  return {
3902
3902
  width: t,
3903
3903
  height: n
@@ -3914,7 +3914,7 @@ function Nd(e, t, n) {
3914
3914
  u.x = To(r);
3915
3915
  }
3916
3916
  if (o || !o && !s)
3917
- if ((kt(t) !== "body" || Xt(r)) && (c = bo(t)), o) {
3917
+ if ((Lt(t) !== "body" || Xt(r)) && (c = bo(t)), o) {
3918
3918
  const m = Gt(t, !0, s, t);
3919
3919
  u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
3920
3920
  } else r && l();
@@ -3943,11 +3943,11 @@ function _c(e, t) {
3943
3943
  if (yo(e))
3944
3944
  return n;
3945
3945
  if (!Me(e)) {
3946
- let r = St(e);
3946
+ let r = wt(e);
3947
3947
  for (; r && !Et(r); ) {
3948
3948
  if (Ce(r) && !Wo(r))
3949
3949
  return r;
3950
- r = St(r);
3950
+ r = wt(r);
3951
3951
  }
3952
3952
  return n;
3953
3953
  }
@@ -3972,12 +3972,12 @@ function Id(e) {
3972
3972
  return et(e).direction === "rtl";
3973
3973
  }
3974
3974
  const Md = {
3975
- convertOffsetParentRelativeRectToViewportRelativeRect: wd,
3975
+ convertOffsetParentRelativeRectToViewportRelativeRect: Sd,
3976
3976
  getDocumentElement: yt,
3977
3977
  getClippingRect: Od,
3978
3978
  getOffsetParent: _c,
3979
3979
  getElementRects: Ad,
3980
- getClientRects: Sd,
3980
+ getClientRects: wd,
3981
3981
  getDimensions: Pd,
3982
3982
  getScale: on,
3983
3983
  isElement: Ce,
@@ -4003,7 +4003,7 @@ function Dd(e, t) {
4003
4003
  } = l;
4004
4004
  if (c || t(), !p || !m)
4005
4005
  return;
4006
- const g = en(d), h = en(r.clientWidth - (f + p)), E = en(r.clientHeight - (d + m)), v = en(f), w = {
4006
+ const g = en(d), h = en(r.clientWidth - (f + p)), E = en(r.clientHeight - (d + m)), v = en(f), S = {
4007
4007
  rootMargin: -g + "px " + -h + "px " + -E + "px " + -v + "px",
4008
4008
  threshold: nt(0, ln(1, u)) || 1
4009
4009
  };
@@ -4021,12 +4021,12 @@ function Dd(e, t) {
4021
4021
  }
4022
4022
  try {
4023
4023
  n = new IntersectionObserver(x, {
4024
- ...w,
4024
+ ...S,
4025
4025
  // Handle <iframe>s
4026
4026
  root: r.ownerDocument
4027
4027
  });
4028
4028
  } catch {
4029
- n = new IntersectionObserver(x, w);
4029
+ n = new IntersectionObserver(x, S);
4030
4030
  }
4031
4031
  n.observe(e);
4032
4032
  }
@@ -4051,8 +4051,8 @@ function qs(e, t, n, o) {
4051
4051
  i && (m = new ResizeObserver((v) => {
4052
4052
  let [y] = v;
4053
4053
  y && y.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
4054
- var w;
4055
- (w = m) == null || w.observe(t);
4054
+ var S;
4055
+ (S = m) == null || S.observe(t);
4056
4056
  })), n();
4057
4057
  }), l && !u && m.observe(l), m.observe(t));
4058
4058
  let g, h = u ? Gt(e) : null;
@@ -4068,7 +4068,7 @@ function qs(e, t, n, o) {
4068
4068
  }), d?.(), (v = m) == null || v.disconnect(), m = null, u && cancelAnimationFrame(g);
4069
4069
  };
4070
4070
  }
4071
- const Ld = gd, kd = hd, Fd = dd, Vd = vd, $d = pd, Bd = yd, Hd = (e, t, n) => {
4071
+ const kd = gd, Ld = hd, Fd = dd, Vd = vd, $d = pd, Bd = yd, Hd = (e, t, n) => {
4072
4072
  const o = /* @__PURE__ */ new Map(), r = {
4073
4073
  platform: Md,
4074
4074
  ...n
@@ -4149,19 +4149,19 @@ function Wd(e) {
4149
4149
  isPositioned: !1
4150
4150
  }), [p, m] = a.useState(o);
4151
4151
  lo(p, o) || m(o);
4152
- const [g, h] = a.useState(null), [E, v] = a.useState(null), y = a.useCallback((S) => {
4153
- S !== _.current && (_.current = S, h(S));
4154
- }, []), w = a.useCallback((S) => {
4155
- S !== T.current && (T.current = S, v(S));
4156
- }, []), b = s || g, x = i || E, _ = a.useRef(null), T = a.useRef(null), N = a.useRef(f), F = u != null, L = jo(u), k = jo(r), P = jo(l), R = a.useCallback(() => {
4152
+ const [g, h] = a.useState(null), [E, v] = a.useState(null), y = a.useCallback((w) => {
4153
+ w !== _.current && (_.current = w, h(w));
4154
+ }, []), S = a.useCallback((w) => {
4155
+ w !== T.current && (T.current = w, v(w));
4156
+ }, []), b = s || g, x = i || E, _ = a.useRef(null), T = a.useRef(null), N = a.useRef(f), F = u != null, k = jo(u), L = jo(r), P = jo(l), R = a.useCallback(() => {
4157
4157
  if (!_.current || !T.current)
4158
4158
  return;
4159
- const S = {
4159
+ const w = {
4160
4160
  placement: t,
4161
4161
  strategy: n,
4162
4162
  middleware: p
4163
4163
  };
4164
- k.current && (S.platform = k.current), Hd(_.current, T.current, S).then((M) => {
4164
+ L.current && (w.platform = L.current), Hd(_.current, T.current, w).then((M) => {
4165
4165
  const B = {
4166
4166
  ...M,
4167
4167
  // The floating element's position may be recomputed while it's closed
@@ -4174,10 +4174,10 @@ function Wd(e) {
4174
4174
  d(B);
4175
4175
  }));
4176
4176
  });
4177
- }, [p, t, n, k, P]);
4177
+ }, [p, t, n, L, P]);
4178
4178
  eo(() => {
4179
- l === !1 && N.current.isPositioned && (N.current.isPositioned = !1, d((S) => ({
4180
- ...S,
4179
+ l === !1 && N.current.isPositioned && (N.current.isPositioned = !1, d((w) => ({
4180
+ ...w,
4181
4181
  isPositioned: !1
4182
4182
  })));
4183
4183
  }, [l]);
@@ -4186,30 +4186,30 @@ function Wd(e) {
4186
4186
  A.current = !1;
4187
4187
  }), []), eo(() => {
4188
4188
  if (b && (_.current = b), x && (T.current = x), b && x) {
4189
- if (L.current)
4190
- return L.current(b, x, R);
4189
+ if (k.current)
4190
+ return k.current(b, x, R);
4191
4191
  R();
4192
4192
  }
4193
- }, [b, x, R, L, F]);
4193
+ }, [b, x, R, k, F]);
4194
4194
  const C = a.useMemo(() => ({
4195
4195
  reference: _,
4196
4196
  floating: T,
4197
4197
  setReference: y,
4198
- setFloating: w
4199
- }), [y, w]), O = a.useMemo(() => ({
4198
+ setFloating: S
4199
+ }), [y, S]), O = a.useMemo(() => ({
4200
4200
  reference: b,
4201
4201
  floating: x
4202
4202
  }), [b, x]), D = a.useMemo(() => {
4203
- const S = {
4203
+ const w = {
4204
4204
  position: n,
4205
4205
  left: 0,
4206
4206
  top: 0
4207
4207
  };
4208
4208
  if (!O.floating)
4209
- return S;
4209
+ return w;
4210
4210
  const M = Ks(O.floating, f.x), B = Ks(O.floating, f.y);
4211
4211
  return c ? {
4212
- ...S,
4212
+ ...w,
4213
4213
  transform: "translate(" + M + "px, " + B + "px)",
4214
4214
  ...Oc(O.floating) >= 1.5 && {
4215
4215
  willChange: "transform"
@@ -4229,10 +4229,10 @@ function Wd(e) {
4229
4229
  }), [f, R, C, O, D]);
4230
4230
  }
4231
4231
  const jd = (e, t) => ({
4232
- ...Ld(e),
4232
+ ...kd(e),
4233
4233
  options: [e, t]
4234
4234
  }), qd = (e, t) => ({
4235
- ...kd(e),
4235
+ ...Ld(e),
4236
4236
  options: [e, t]
4237
4237
  }), Kd = (e, t) => ({
4238
4238
  ...Bd(e),
@@ -4270,11 +4270,11 @@ function Zr(e, t = {}) {
4270
4270
  ancestorScroll: h = !1,
4271
4271
  bubbles: E,
4272
4272
  externalTree: v
4273
- } = t, y = Zt(v), w = Q(typeof d == "function" ? d : () => !1), b = typeof d == "function" ? w : d, x = a.useRef(!1), {
4273
+ } = t, y = Zt(v), S = Q(typeof d == "function" ? d : () => !1), b = typeof d == "function" ? S : d, x = a.useRef(!1), {
4274
4274
  escapeKey: _,
4275
4275
  outsidePress: T
4276
- } = Jd(E), N = a.useRef(null), F = Ze(), L = Ze(), k = Q(() => {
4277
- L.clear(), u.current.insideReactTree = !1;
4276
+ } = Jd(E), N = a.useRef(null), F = Ze(), k = Ze(), L = Q(() => {
4277
+ k.clear(), u.current.insideReactTree = !1;
4278
4278
  }), P = a.useRef(!1), R = a.useRef(""), A = Q((H) => {
4279
4279
  R.current = H.pointerType;
4280
4280
  }), C = Q(() => {
@@ -4291,30 +4291,30 @@ function Zr(e, t = {}) {
4291
4291
  }), !K)
4292
4292
  return;
4293
4293
  }
4294
- const we = Ou(H) ? H.nativeEvent : H, W = me(Oi, we);
4294
+ const Se = Ou(H) ? H.nativeEvent : H, W = me(Oi, Se);
4295
4295
  n.setOpen(!1, W), !_ && !W.isPropagationAllowed && H.stopPropagation();
4296
4296
  }), D = Q((H) => {
4297
4297
  const se = C();
4298
4298
  return se === "intentional" && H.type !== "click" || se === "sloppy" && H.type === "click";
4299
- }), S = Q(() => {
4300
- u.current.insideReactTree = !0, L.start(0, k);
4299
+ }), w = Q(() => {
4300
+ u.current.insideReactTree = !0, k.start(0, L);
4301
4301
  }), M = Q((H, se = !1) => {
4302
4302
  if (D(H)) {
4303
- k();
4303
+ L();
4304
4304
  return;
4305
4305
  }
4306
4306
  if (u.current.insideReactTree) {
4307
- k();
4307
+ L();
4308
4308
  return;
4309
4309
  }
4310
4310
  if (C() === "intentional" && se || typeof b == "function" && !b(H))
4311
4311
  return;
4312
- const ne = Ke(H), we = `[${Mn("inert")}]`, W = Le(n.select("floatingElement")).querySelectorAll(we), K = n.context.triggerElements;
4312
+ const ne = Ke(H), Se = `[${Mn("inert")}]`, W = ke(n.select("floatingElement")).querySelectorAll(Se), K = n.context.triggerElements;
4313
4313
  if (ne && (K.hasElement(ne) || K.hasMatchingElement((V) => Ee(V, ne))))
4314
4314
  return;
4315
4315
  let j = Ce(ne) ? ne : null;
4316
4316
  for (; j && !Et(j); ) {
4317
- const V = St(j);
4317
+ const V = wt(j);
4318
4318
  if (Et(V) || !Ce(V))
4319
4319
  break;
4320
4320
  j = V;
@@ -4325,8 +4325,8 @@ function Zr(e, t = {}) {
4325
4325
  Array.from(W).every((V) => !Ee(j, V)))
4326
4326
  return;
4327
4327
  if (Me(ne) && !("touches" in H)) {
4328
- const V = Et(ne), ie = et(ne), ee = /auto|scroll/, q = V || ee.test(ie.overflowX), J = V || ee.test(ie.overflowY), le = q && ne.clientWidth > 0 && ne.scrollWidth > ne.clientWidth, ue = J && ne.clientHeight > 0 && ne.scrollHeight > ne.clientHeight, Re = ie.direction === "rtl", Se = ue && (Re ? H.offsetX <= ne.offsetWidth - ne.clientWidth : H.offsetX > ne.clientWidth), xe = le && H.offsetY > ne.clientHeight;
4329
- if (Se || xe)
4328
+ const V = Et(ne), ie = et(ne), ee = /auto|scroll/, q = V || ee.test(ie.overflowX), J = V || ee.test(ie.overflowY), le = q && ne.clientWidth > 0 && ne.scrollWidth > ne.clientWidth, ue = J && ne.clientHeight > 0 && ne.scrollHeight > ne.clientHeight, Re = ie.direction === "rtl", we = ue && (Re ? H.offsetX <= ne.offsetWidth - ne.clientWidth : H.offsetX > ne.clientWidth), xe = le && H.offsetY > ne.clientHeight;
4329
+ if (we || xe)
4330
4330
  return;
4331
4331
  }
4332
4332
  const de = u.current.floatingContext?.nodeId, ae = y && qt(y.nodesRef.current, de).some((V) => ft(H, V.context?.elements.floating));
@@ -4340,7 +4340,7 @@ function Zr(e, t = {}) {
4340
4340
  }), !V)
4341
4341
  return;
4342
4342
  }
4343
- n.setOpen(!1, me(_i, H)), k();
4343
+ n.setOpen(!1, me(_i, H)), L();
4344
4344
  }), B = Q((H) => {
4345
4345
  C() !== "sloppy" || H.pointerType === "touch" || !n.select("open") || !l || ft(H, n.select("floatingElement")) || ft(H, n.select("domReferenceElement")) || M(H);
4346
4346
  }), U = Q((H) => {
@@ -4367,17 +4367,17 @@ function Zr(e, t = {}) {
4367
4367
  if (x.current = !1, F.clear(), H.type === "mousedown" && N.current && !N.current.dismissOnMouseDown)
4368
4368
  return;
4369
4369
  const ne = Ke(H);
4370
- function we() {
4371
- H.type === "pointerdown" ? B(H) : M(H, se), ne?.removeEventListener(H.type, we);
4370
+ function Se() {
4371
+ H.type === "pointerdown" ? B(H) : M(H, se), ne?.removeEventListener(H.type, Se);
4372
4372
  }
4373
- ne?.addEventListener(H.type, we);
4373
+ ne?.addEventListener(H.type, Se);
4374
4374
  }), te = Q((H) => {
4375
4375
  if (C() !== "sloppy" || !N.current || ft(H, n.select("floatingElement")) || ft(H, n.select("domReferenceElement")))
4376
4376
  return;
4377
4377
  const se = H.touches[0];
4378
4378
  if (!se)
4379
4379
  return;
4380
- const ne = Math.abs(se.clientX - N.current.startX), we = Math.abs(se.clientY - N.current.startY), W = Math.sqrt(ne * ne + we * we);
4380
+ const ne = Math.abs(se.clientX - N.current.startX), Se = Math.abs(se.clientY - N.current.startY), W = Math.sqrt(ne * ne + Se * Se);
4381
4381
  W > 5 && (N.current.dismissOnTouchEnd = !0), W > 10 && (M(H), F.clear(), N.current = null);
4382
4382
  }), G = Q((H) => {
4383
4383
  const se = Ke(H);
@@ -4405,7 +4405,7 @@ function Zr(e, t = {}) {
4405
4405
  function ne() {
4406
4406
  H.clear(), P.current = !0;
4407
4407
  }
4408
- function we() {
4408
+ function Se() {
4409
4409
  H.start(
4410
4410
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
4411
4411
  // Only apply to WebKit for the test to remain 0ms.
@@ -4415,19 +4415,19 @@ function Zr(e, t = {}) {
4415
4415
  }
4416
4416
  );
4417
4417
  }
4418
- const W = Le(r);
4419
- W.addEventListener("pointerdown", A, !0), f && (W.addEventListener("keydown", O), W.addEventListener("compositionstart", ne), W.addEventListener("compositionend", we)), b && (W.addEventListener("click", Y, !0), W.addEventListener("pointerdown", Y, !0), W.addEventListener("touchstart", Z, !0), W.addEventListener("touchmove", G, !0), W.addEventListener("touchend", $, !0), W.addEventListener("mousedown", Y, !0));
4418
+ const W = ke(r);
4419
+ W.addEventListener("pointerdown", A, !0), f && (W.addEventListener("keydown", O), W.addEventListener("compositionstart", ne), W.addEventListener("compositionend", Se)), b && (W.addEventListener("click", Y, !0), W.addEventListener("pointerdown", Y, !0), W.addEventListener("touchstart", Z, !0), W.addEventListener("touchmove", G, !0), W.addEventListener("touchend", $, !0), W.addEventListener("mousedown", Y, !0));
4420
4420
  let K = [];
4421
4421
  return h && (Ce(i) && (K = Pt(i)), Ce(r) && (K = K.concat(Pt(r))), !Ce(s) && s && s.contextElement && (K = K.concat(Pt(s.contextElement)))), K = K.filter((j) => j !== W.defaultView?.visualViewport), K.forEach((j) => {
4422
4422
  j.addEventListener("scroll", se, {
4423
4423
  passive: !0
4424
4424
  });
4425
4425
  }), () => {
4426
- W.removeEventListener("pointerdown", A, !0), f && (W.removeEventListener("keydown", O), W.removeEventListener("compositionstart", ne), W.removeEventListener("compositionend", we)), b && (W.removeEventListener("click", Y, !0), W.removeEventListener("pointerdown", Y, !0), W.removeEventListener("touchstart", Z, !0), W.removeEventListener("touchmove", G, !0), W.removeEventListener("touchend", $, !0), W.removeEventListener("mousedown", Y, !0)), K.forEach((j) => {
4426
+ W.removeEventListener("pointerdown", A, !0), f && (W.removeEventListener("keydown", O), W.removeEventListener("compositionstart", ne), W.removeEventListener("compositionend", Se)), b && (W.removeEventListener("click", Y, !0), W.removeEventListener("pointerdown", Y, !0), W.removeEventListener("touchstart", Z, !0), W.removeEventListener("touchmove", G, !0), W.removeEventListener("touchend", $, !0), W.removeEventListener("mousedown", Y, !0)), K.forEach((j) => {
4427
4427
  j.removeEventListener("scroll", se);
4428
4428
  }), H.clear();
4429
4429
  };
4430
- }, [u, r, s, i, f, b, o, c, h, l, _, T, O, M, Y, B, Z, G, $, A, n]), a.useEffect(k, [b, k]);
4430
+ }, [u, r, s, i, f, b, o, c, h, l, _, T, O, M, Y, B, Z, G, $, A, n]), a.useEffect(L, [b, L]);
4431
4431
  const ce = a.useMemo(() => ({
4432
4432
  onKeyDown: O,
4433
4433
  ...m && {
@@ -4447,13 +4447,13 @@ function Zr(e, t = {}) {
4447
4447
  onKeyDown: O,
4448
4448
  onMouseDown: fe,
4449
4449
  onMouseUp: fe,
4450
- onPointerDownCapture: S,
4451
- onMouseDownCapture: S,
4452
- onClickCapture: S,
4453
- onMouseUpCapture: S,
4454
- onTouchEndCapture: S,
4455
- onTouchMoveCapture: S
4456
- }), [O, fe, S]);
4450
+ onPointerDownCapture: w,
4451
+ onMouseDownCapture: w,
4452
+ onClickCapture: w,
4453
+ onMouseUpCapture: w,
4454
+ onTouchEndCapture: w,
4455
+ onTouchMoveCapture: w
4456
+ }), [O, fe, w]);
4457
4457
  return a.useMemo(() => l ? {
4458
4458
  reference: ce,
4459
4459
  floating: be,
@@ -4705,7 +4705,7 @@ function Nc(e, ...t) {
4705
4705
  argsMemoize: m = Pc,
4706
4706
  argsMemoizeOptions: g = [],
4707
4707
  devModeChecks: h = {}
4708
- } = f, E = Gs(p), v = Gs(g), y = sp(r), w = d(function() {
4708
+ } = f, E = Gs(p), v = Gs(g), y = sp(r), S = d(function() {
4709
4709
  return s++, l.apply(
4710
4710
  null,
4711
4711
  arguments
@@ -4718,19 +4718,19 @@ function Nc(e, ...t) {
4718
4718
  y,
4719
4719
  arguments
4720
4720
  );
4721
- if (c = w.apply(null, T), process.env.NODE_ENV !== "production") {
4721
+ if (c = S.apply(null, T), process.env.NODE_ENV !== "production") {
4722
4722
  const { identityFunctionCheck: N, inputStabilityCheck: F } = ip(b, h);
4723
4723
  if (N.shouldRun && N.run(
4724
4724
  l,
4725
4725
  T,
4726
4726
  c
4727
4727
  ), F.shouldRun) {
4728
- const L = Ys(
4728
+ const k = Ys(
4729
4729
  y,
4730
4730
  arguments
4731
4731
  );
4732
4732
  F.run(
4733
- { inputSelectorResults: T, inputSelectorResultsCopy: L },
4733
+ { inputSelectorResults: T, inputSelectorResultsCopy: k },
4734
4734
  { memoize: d, memoizeOptions: E },
4735
4735
  arguments
4736
4736
  );
@@ -4741,7 +4741,7 @@ function Nc(e, ...t) {
4741
4741
  }, ...v);
4742
4742
  return Object.assign(x, {
4743
4743
  resultFunc: l,
4744
- memoizedResultFunc: w,
4744
+ memoizedResultFunc: S,
4745
4745
  dependencies: y,
4746
4746
  dependencyRecomputations: () => i,
4747
4747
  resetDependencyRecomputations: () => {
@@ -4912,18 +4912,18 @@ function bp() {
4912
4912
  function() {
4913
4913
  function v(_) {
4914
4914
  if (!y) {
4915
- if (y = !0, w = _, _ = p(_), m !== void 0 && h.hasValue) {
4915
+ if (y = !0, S = _, _ = p(_), m !== void 0 && h.hasValue) {
4916
4916
  var T = h.value;
4917
4917
  if (m(T, _))
4918
4918
  return b = T;
4919
4919
  }
4920
4920
  return b = _;
4921
4921
  }
4922
- if (T = b, o(w, _)) return T;
4922
+ if (T = b, o(S, _)) return T;
4923
4923
  var N = p(_);
4924
- return m !== void 0 && m(T, N) ? (w = _, T) : (w = _, b = N);
4924
+ return m !== void 0 && m(T, N) ? (S = _, T) : (S = _, b = N);
4925
4925
  }
4926
- var y = !1, w, b, x = d === void 0 ? null : d;
4926
+ var y = !1, S, b, x = d === void 0 ? null : d;
4927
4927
  return [
4928
4928
  function() {
4929
4929
  return v(f());
@@ -4963,19 +4963,19 @@ function Ep() {
4963
4963
  function() {
4964
4964
  function v(_) {
4965
4965
  if (!y) {
4966
- if (y = !0, w = _, _ = p(_), m !== void 0 && h.hasValue) {
4966
+ if (y = !0, S = _, _ = p(_), m !== void 0 && h.hasValue) {
4967
4967
  var T = h.value;
4968
4968
  if (m(T, _))
4969
4969
  return b = T;
4970
4970
  }
4971
4971
  return b = _;
4972
4972
  }
4973
- if (T = b, o(w, _))
4973
+ if (T = b, o(S, _))
4974
4974
  return T;
4975
4975
  var N = p(_);
4976
- return m !== void 0 && m(T, N) ? (w = _, T) : (w = _, b = N);
4976
+ return m !== void 0 && m(T, N) ? (S = _, T) : (S = _, b = N);
4977
4977
  }
4978
- var y = !1, w, b, x = d === void 0 ? null : d;
4978
+ var y = !1, S, b, x = d === void 0 ? null : d;
4979
4979
  return [
4980
4980
  function() {
4981
4981
  return v(f());
@@ -4998,13 +4998,13 @@ function Ep() {
4998
4998
  })()), Yo;
4999
4999
  }
5000
5000
  var ni;
5001
- function wp() {
5001
+ function Sp() {
5002
5002
  return ni || (ni = 1, process.env.NODE_ENV === "production" ? qn.exports = bp() : qn.exports = Ep()), qn.exports;
5003
5003
  }
5004
- var Sp = wp();
5004
+ var wp = Sp();
5005
5005
  function ve(e, t, n, o, r) {
5006
5006
  const s = (i) => t(i, n, o, r);
5007
- return Sp.useSyncExternalStoreWithSelector(e.subscribe, e.getSnapshot, e.getSnapshot, s);
5007
+ return wp.useSyncExternalStoreWithSelector(e.subscribe, e.getSnapshot, e.getSnapshot, s);
5008
5008
  }
5009
5009
  class rn {
5010
5010
  /**
@@ -5459,7 +5459,7 @@ function Cp() {
5459
5459
  onOpenChange: void 0
5460
5460
  });
5461
5461
  }
5462
- function Lc() {
5462
+ function kc() {
5463
5463
  return {
5464
5464
  open: !1,
5465
5465
  mounted: !1,
@@ -5476,7 +5476,7 @@ function Lc() {
5476
5476
  popupProps: We
5477
5477
  };
5478
5478
  }
5479
- const kc = {
5479
+ const Lc = {
5480
5480
  open: re((e) => e.open),
5481
5481
  mounted: re((e) => e.mounted),
5482
5482
  transitionStatus: re((e) => e.transitionStatus),
@@ -5572,7 +5572,7 @@ function _p(e = {}) {
5572
5572
  setFloating: v,
5573
5573
  setPositionReference: d,
5574
5574
  domReference: u
5575
- }), [f.refs, E, v, d]), w = a.useMemo(() => ({
5575
+ }), [f.refs, E, v, d]), S = a.useMemo(() => ({
5576
5576
  ...f.elements,
5577
5577
  domReference: s.domReference
5578
5578
  }), [f.elements, s.domReference]), b = r.useState("open"), x = r.useState("floatingId"), _ = a.useMemo(() => ({
@@ -5583,10 +5583,10 @@ function _p(e = {}) {
5583
5583
  events: r.context.events,
5584
5584
  floatingId: x,
5585
5585
  refs: y,
5586
- elements: w,
5586
+ elements: S,
5587
5587
  nodeId: t,
5588
5588
  rootStore: r
5589
- }), [f, y, w, t, r, b, x]);
5589
+ }), [f, y, S, t, r, b, x]);
5590
5590
  return X(() => {
5591
5591
  r.context.dataRef.current.floatingContext = _;
5592
5592
  const T = l?.nodesRef.current.find((N) => N.id === t);
@@ -5595,9 +5595,9 @@ function _p(e = {}) {
5595
5595
  ...f,
5596
5596
  context: _,
5597
5597
  refs: y,
5598
- elements: w,
5598
+ elements: S,
5599
5599
  rootStore: r
5600
- }), [f, y, w, _, r]);
5600
+ }), [f, y, S, _, r]);
5601
5601
  }
5602
5602
  function Vc(e) {
5603
5603
  const {
@@ -5665,22 +5665,22 @@ function Np(e, t = {}) {
5665
5665
  restTimeoutPendingRef: h,
5666
5666
  openChangeTimeout: E,
5667
5667
  handleCloseOptionsRef: v
5668
- } = $c(n), y = Zt(l), w = Ht(), b = Q(() => d.current ? !0 : i.current.openEvent ? Pp.has(i.current.openEvent.type) : !1), x = Q(() => {
5669
- const L = i.current.openEvent?.type;
5670
- return L?.includes("mouse") && L !== "mousedown";
5671
- }), _ = a.useCallback((L, k = !0) => {
5668
+ } = $c(n), y = Zt(l), S = Ht(), b = Q(() => d.current ? !0 : i.current.openEvent ? Pp.has(i.current.openEvent.type) : !1), x = Q(() => {
5669
+ const k = i.current.openEvent?.type;
5670
+ return k?.includes("mouse") && k !== "mousedown";
5671
+ }), _ = a.useCallback((k, L = !0) => {
5672
5672
  const P = Ap(u, f.current);
5673
- P && !p.current ? E.start(P, () => n.setOpen(!1, me(rt, L))) : k && (E.clear(), n.setOpen(!1, me(rt, L)));
5673
+ P && !p.current ? E.start(P, () => n.setOpen(!1, me(rt, k))) : L && (E.clear(), n.setOpen(!1, me(rt, k)));
5674
5674
  }, [u, p, n, f, E]), T = Q(() => {
5675
5675
  g.current(), p.current = void 0;
5676
5676
  }), N = Q(() => {
5677
5677
  if (m.current) {
5678
- const L = Le(r).body;
5679
- L.style.pointerEvents = "", L.removeAttribute(yr), m.current = !1;
5678
+ const k = ke(r).body;
5679
+ k.style.pointerEvents = "", k.removeAttribute(yr), m.current = !1;
5680
5680
  }
5681
- }), F = Q((L) => {
5682
- const k = Ke(L);
5683
- if (!Op(k)) {
5681
+ }), F = Q((k) => {
5682
+ const L = Ke(k);
5683
+ if (!Op(L)) {
5684
5684
  d.current = !1;
5685
5685
  return;
5686
5686
  }
@@ -5693,31 +5693,31 @@ function Np(e, t = {}) {
5693
5693
  }, [T]), a.useEffect(() => N, [N]), X(() => {
5694
5694
  if (c && o && v.current?.blockPointerEvents && x() && Ce(s) && r) {
5695
5695
  m.current = !0;
5696
- const L = Le(r).body;
5697
- L.setAttribute(yr, "");
5698
- const k = s, P = r, R = y?.nodesRef.current.find((A) => A.id === w)?.context?.elements.floating;
5699
- return R && (R.style.pointerEvents = ""), L.style.pointerEvents = "none", k.style.pointerEvents = "auto", P.style.pointerEvents = "auto", () => {
5700
- L.style.pointerEvents = "", k.style.pointerEvents = "", P.style.pointerEvents = "";
5696
+ const k = ke(r).body;
5697
+ k.setAttribute(yr, "");
5698
+ const L = s, P = r, R = y?.nodesRef.current.find((A) => A.id === S)?.context?.elements.floating;
5699
+ return R && (R.style.pointerEvents = ""), k.style.pointerEvents = "none", L.style.pointerEvents = "auto", P.style.pointerEvents = "auto", () => {
5700
+ k.style.pointerEvents = "", L.style.pointerEvents = "", P.style.pointerEvents = "";
5701
5701
  };
5702
5702
  }
5703
- }, [c, o, s, r, v, x, y, w, m]), a.useEffect(() => {
5703
+ }, [c, o, s, r, v, x, y, S, m]), a.useEffect(() => {
5704
5704
  if (!c)
5705
5705
  return;
5706
- function L(A) {
5706
+ function k(A) {
5707
5707
  if (b() || !i.current.floatingContext)
5708
5708
  return;
5709
5709
  const C = n.context.triggerElements;
5710
5710
  A.relatedTarget && C.hasElement(A.relatedTarget) || (N(), T(), b() || _(A));
5711
5711
  }
5712
- function k(A) {
5712
+ function L(A) {
5713
5713
  E.clear(), N(), p.current?.(A), T();
5714
5714
  }
5715
5715
  function P(A) {
5716
5716
  b() || _(A, !1);
5717
5717
  }
5718
5718
  const R = r;
5719
- return R && (R.addEventListener("mouseleave", L), R.addEventListener("mouseenter", k), R.addEventListener("mouseleave", P), R.addEventListener("pointerdown", F, !0)), () => {
5720
- R && (R.removeEventListener("mouseleave", L), R.removeEventListener("mouseenter", k), R.removeEventListener("mouseleave", P), R.removeEventListener("pointerdown", F, !0));
5719
+ return R && (R.addEventListener("mouseleave", k), R.addEventListener("mouseenter", L), R.addEventListener("mouseleave", P), R.addEventListener("pointerdown", F, !0)), () => {
5720
+ R && (R.removeEventListener("mouseleave", k), R.removeEventListener("mouseenter", L), R.removeEventListener("mouseleave", P), R.removeEventListener("pointerdown", F, !0));
5721
5721
  };
5722
5722
  });
5723
5723
  }
@@ -5746,30 +5746,30 @@ function Ip(e, t = {}) {
5746
5746
  interactedInsideRef: E,
5747
5747
  handlerRef: v,
5748
5748
  blockMouseMoveRef: y,
5749
- performedPointerEventsMutationRef: w,
5749
+ performedPointerEventsMutationRef: S,
5750
5750
  unbindMouseMoveRef: b,
5751
5751
  restTimeoutPendingRef: x,
5752
5752
  openChangeTimeout: _,
5753
5753
  restTimeout: T,
5754
5754
  handleCloseOptionsRef: N
5755
- } = $c(n), F = Ve(c), L = Ve(i), k = Ve(l);
5755
+ } = $c(n), F = Ve(c), k = Ve(i), L = Ve(l);
5756
5756
  m && (N.current = F.current?.__options);
5757
- const P = Q(() => E.current ? !0 : o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1), R = a.useCallback((D, S = !0) => {
5758
- const M = Ho(L.current, "close", h.current);
5759
- M && !v.current ? _.start(M, () => n.setOpen(!1, me(rt, D))) : S && (_.clear(), n.setOpen(!1, me(rt, D)));
5760
- }, [L, v, n, h, _]), A = Q(() => {
5757
+ const P = Q(() => E.current ? !0 : o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1), R = a.useCallback((D, w = !0) => {
5758
+ const M = Ho(k.current, "close", h.current);
5759
+ M && !v.current ? _.start(M, () => n.setOpen(!1, me(rt, D))) : w && (_.clear(), n.setOpen(!1, me(rt, D)));
5760
+ }, [k, v, n, h, _]), A = Q(() => {
5761
5761
  b.current(), v.current = void 0;
5762
5762
  }), C = Q(() => {
5763
- if (w.current) {
5764
- const D = Le(n.select("domReferenceElement")).body;
5765
- D.style.pointerEvents = "", D.removeAttribute(yr), w.current = !1;
5763
+ if (S.current) {
5764
+ const D = ke(n.select("domReferenceElement")).body;
5765
+ D.style.pointerEvents = "", D.removeAttribute(yr), S.current = !1;
5766
5766
  }
5767
5767
  });
5768
5768
  a.useEffect(() => {
5769
5769
  if (!s)
5770
5770
  return;
5771
- function D(S) {
5772
- S.open || (_.clear(), T.clear(), y.current = !0, x.current = !1);
5771
+ function D(w) {
5772
+ w.open || (_.clear(), T.clear(), y.current = !0, x.current = !1);
5773
5773
  }
5774
5774
  return r.on("openchange", D), () => {
5775
5775
  r.off("openchange", D);
@@ -5778,8 +5778,8 @@ function Ip(e, t = {}) {
5778
5778
  const O = Q((D) => {
5779
5779
  if (P() || !o.current.floatingContext)
5780
5780
  return;
5781
- const S = n.context.triggerElements;
5782
- D.relatedTarget && S.hasElement(D.relatedTarget) || F.current?.({
5781
+ const w = n.context.triggerElements;
5782
+ D.relatedTarget && w.hasElement(D.relatedTarget) || F.current?.({
5783
5783
  ...o.current.floatingContext,
5784
5784
  tree: g,
5785
5785
  x: D.clientX,
@@ -5795,10 +5795,10 @@ function Ip(e, t = {}) {
5795
5795
  const D = d ?? (m ? n.select("domReferenceElement") : null);
5796
5796
  if (!Ce(D))
5797
5797
  return;
5798
- function S(U) {
5799
- if (_.clear(), y.current = !1, u && !an(h.current) || Xo(k.current) > 0 && !Ho(L.current, "open"))
5798
+ function w(U) {
5799
+ if (_.clear(), y.current = !1, u && !an(h.current) || Xo(L.current) > 0 && !Ho(k.current, "open"))
5800
5800
  return;
5801
- const Z = Ho(L.current, "open", h.current), Y = n.select("domReferenceElement"), te = n.context.triggerElements, G = (te.hasElement(U.target) || te.hasMatchingElement(($) => Ee($, U.target))) && (!Y || !Ee(Y, U.target)), z = U.currentTarget ?? null;
5801
+ const Z = Ho(k.current, "open", h.current), Y = n.select("domReferenceElement"), te = n.context.triggerElements, G = (te.hasElement(U.target) || te.hasMatchingElement(($) => Ee($, U.target))) && (!Y || !Ee(Y, U.target)), z = U.currentTarget ?? null;
5802
5802
  Z ? _.start(Z, () => {
5803
5803
  n.select("open") || n.setOpen(!0, me(rt, U, z));
5804
5804
  }) : (!n.select("open") || G) && n.setOpen(!0, me(rt, U, z));
@@ -5809,7 +5809,7 @@ function Ip(e, t = {}) {
5809
5809
  return;
5810
5810
  }
5811
5811
  b.current();
5812
- const Z = n.select("domReferenceElement"), Y = Le(Z);
5812
+ const Z = n.select("domReferenceElement"), Y = ke(Z);
5813
5813
  T.clear(), x.current = !1;
5814
5814
  const te = n.context.triggerElements;
5815
5815
  if (U.relatedTarget && te.hasElement(U.relatedTarget))
@@ -5835,23 +5835,23 @@ function Ip(e, t = {}) {
5835
5835
  function B(U) {
5836
5836
  O(U);
5837
5837
  }
5838
- return n.select("open") && D.addEventListener("mouseleave", B), f && D.addEventListener("mousemove", S, {
5838
+ return n.select("open") && D.addEventListener("mouseleave", B), f && D.addEventListener("mousemove", w, {
5839
5839
  once: !0
5840
- }), D.addEventListener("mouseenter", S), D.addEventListener("mouseleave", M), () => {
5841
- D.removeEventListener("mouseleave", B), f && D.removeEventListener("mousemove", S), D.removeEventListener("mouseenter", S), D.removeEventListener("mouseleave", M);
5840
+ }), D.addEventListener("mouseenter", w), D.addEventListener("mouseleave", M), () => {
5841
+ D.removeEventListener("mouseleave", B), f && D.removeEventListener("mousemove", w), D.removeEventListener("mouseenter", w), D.removeEventListener("mouseleave", M);
5842
5842
  };
5843
- }, [A, C, y, o, L, R, n, s, F, O, m, P, u, f, h, k, T, x, _, d, g, b, v]), a.useMemo(() => {
5844
- function D(S) {
5845
- h.current = S.pointerType;
5843
+ }, [A, C, y, o, k, R, n, s, F, O, m, P, u, f, h, L, T, x, _, d, g, b, v]), a.useMemo(() => {
5844
+ function D(w) {
5845
+ h.current = w.pointerType;
5846
5846
  }
5847
5847
  return {
5848
5848
  onPointerDown: D,
5849
5849
  onPointerEnter: D,
5850
- onMouseMove(S) {
5850
+ onMouseMove(w) {
5851
5851
  const {
5852
5852
  nativeEvent: M
5853
- } = S, B = S.currentTarget, U = n.select("domReferenceElement"), Z = n.context.triggerElements, Y = n.select("open"), te = (Z.hasElement(S.target) || Z.hasMatchingElement((z) => Ee(z, S.target))) && (!U || !Ee(U, S.target));
5854
- if (u && !an(h.current) || Y && !te || Xo(k.current) === 0 || !te && x.current && S.movementX ** 2 + S.movementY ** 2 < 2)
5853
+ } = w, B = w.currentTarget, U = n.select("domReferenceElement"), Z = n.context.triggerElements, Y = n.select("open"), te = (Z.hasElement(w.target) || Z.hasMatchingElement((z) => Ee(z, w.target))) && (!U || !Ee(U, w.target));
5854
+ if (u && !an(h.current) || Y && !te || Xo(L.current) === 0 || !te && x.current && w.movementX ** 2 + w.movementY ** 2 < 2)
5855
5855
  return;
5856
5856
  T.clear();
5857
5857
  function G() {
@@ -5859,10 +5859,10 @@ function Ip(e, t = {}) {
5859
5859
  }
5860
5860
  h.current === "touch" ? it.flushSync(() => {
5861
5861
  G();
5862
- }) : te && Y ? G() : (x.current = !0, T.start(Xo(k.current), G));
5862
+ }) : te && Y ? G() : (x.current = !0, T.start(Xo(L.current), G));
5863
5863
  }
5864
5864
  };
5865
- }, [y, u, n, h, k, T, x]);
5865
+ }, [y, u, n, h, L, T, x]);
5866
5866
  }
5867
5867
  function Vn(e = []) {
5868
5868
  const t = e.map((l) => l?.reference), n = e.map((l) => l?.floating), o = e.map((l) => l?.item), r = e.map((l) => l?.trigger), s = a.useCallback(
@@ -5919,19 +5919,19 @@ function Po(e, t, n) {
5919
5919
  }
5920
5920
  }
5921
5921
  function Yn(e, t) {
5922
- return Po(t, e === Dr || e === kn, e === Nt || e === At);
5922
+ return Po(t, e === Dr || e === Ln, e === Nt || e === At);
5923
5923
  }
5924
5924
  function Zo(e, t, n) {
5925
- return Po(t, e === kn, n ? e === Nt : e === At) || e === "Enter" || e === " " || e === "";
5925
+ return Po(t, e === Ln, n ? e === Nt : e === At) || e === "Enter" || e === " " || e === "";
5926
5926
  }
5927
5927
  function Dp(e, t, n) {
5928
- return Po(t, n ? e === Nt : e === At, e === kn);
5928
+ return Po(t, n ? e === Nt : e === At, e === Ln);
5929
5929
  }
5930
- function Lp(e, t, n, o) {
5930
+ function kp(e, t, n, o) {
5931
5931
  const r = n ? e === At : e === Nt, s = e === Dr;
5932
5932
  return t === "both" || t === "horizontal" && o && o > 1 ? e === Mp : Po(t, r, s);
5933
5933
  }
5934
- function kp(e, t) {
5934
+ function Lp(e, t) {
5935
5935
  const n = "rootStore" in e ? e.rootStore : e, o = n.useState("open"), r = n.useState("floatingElement"), s = n.useState("domReferenceElement"), i = n.context.dataRef, {
5936
5936
  listRef: c,
5937
5937
  activeIndex: u,
@@ -5946,15 +5946,15 @@ function kp(e, t) {
5946
5946
  virtual: E = !1,
5947
5947
  focusItemOnOpen: v = "auto",
5948
5948
  focusItemOnHover: y = !0,
5949
- openOnArrowKeyDown: w = !0,
5949
+ openOnArrowKeyDown: S = !0,
5950
5950
  disabledIndices: b = void 0,
5951
5951
  orientation: x = "vertical",
5952
5952
  parentOrientation: _,
5953
5953
  cols: T = 1,
5954
5954
  scrollItemIntoView: N = !0,
5955
5955
  itemSizes: F,
5956
- dense: L = !1,
5957
- id: k,
5956
+ dense: k = !1,
5957
+ id: L,
5958
5958
  externalTree: P
5959
5959
  } = t;
5960
5960
  process.env.NODE_ENV !== "production" && (p && (m || console.warn("`useListNavigation` looping must be enabled to allow escaping."), E || console.warn("`useListNavigation` must be virtual to allow escaping.")), x === "vertical" && T > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
@@ -5962,7 +5962,7 @@ function kp(e, t) {
5962
5962
  X(() => {
5963
5963
  i.current.orientation = x;
5964
5964
  }, [i, x]);
5965
- const D = ur(s), S = a.useRef(v), M = a.useRef(d ?? -1), B = a.useRef(null), U = a.useRef(!0), Z = Q((V) => {
5965
+ const D = ur(s), w = a.useRef(v), M = a.useRef(d ?? -1), B = a.useRef(null), U = a.useRef(!0), Z = Q((V) => {
5966
5966
  l(M.current === -1 ? null : M.current, V);
5967
5967
  }), Y = a.useRef(Z), te = a.useRef(!!r), G = a.useRef(o), z = a.useRef(!1), $ = a.useRef(!1), ce = Ve(b), fe = Ve(o), be = Ve(N), H = Ve(d), se = Q(() => {
5968
5968
  function V(J) {
@@ -5979,14 +5979,14 @@ function kp(e, t) {
5979
5979
  ie || V(J);
5980
5980
  const le = be.current;
5981
5981
  le && // eslint-disable-next-line @typescript-eslint/no-use-before-define
5982
- we && (ee || !U.current) && J.scrollIntoView?.(typeof le == "boolean" ? {
5982
+ Se && (ee || !U.current) && J.scrollIntoView?.(typeof le == "boolean" ? {
5983
5983
  block: "nearest",
5984
5984
  inline: "nearest"
5985
5985
  } : le);
5986
5986
  });
5987
5987
  });
5988
5988
  X(() => {
5989
- f && (o && r ? (M.current = d ?? -1, S.current && d != null && ($.current = !0, Z())) : te.current && (M.current = -1, Y.current()));
5989
+ f && (o && r ? (M.current = d ?? -1, w.current && d != null && ($.current = !0, Z())) : te.current && (M.current = -1, Y.current()));
5990
5990
  }, [f, o, r, d, Z]), X(() => {
5991
5991
  if (f) {
5992
5992
  if (!o) {
@@ -5997,7 +5997,7 @@ function kp(e, t) {
5997
5997
  if (u == null) {
5998
5998
  if (z.current = !1, H.current != null)
5999
5999
  return;
6000
- if (te.current && (M.current = -1, se()), (!G.current || !te.current) && S.current && (B.current != null || S.current === !0 && B.current == null)) {
6000
+ if (te.current && (M.current = -1, se()), (!G.current || !te.current) && w.current && (B.current != null || w.current === !0 && B.current == null)) {
6001
6001
  let V = 0;
6002
6002
  const ie = () => {
6003
6003
  c.current[0] == null ? (V < 2 && (V ? requestAnimationFrame : queueMicrotask)(ie), V += 1) : (M.current = B.current == null || Zo(B.current, x, h) || g ? Bo(c) : Is(c), B.current = null, Z());
@@ -6009,16 +6009,16 @@ function kp(e, t) {
6009
6009
  }, [f, o, r, u, H, g, c, x, h, Z, se, ce]), X(() => {
6010
6010
  if (!f || r || !O || E || !te.current)
6011
6011
  return;
6012
- const V = O.nodesRef.current, ie = V.find((J) => J.id === C)?.context?.elements.floating, ee = lt(Le(r)), q = V.some((J) => J.context && Ee(J.context.elements.floating, ee));
6012
+ const V = O.nodesRef.current, ie = V.find((J) => J.id === C)?.context?.elements.floating, ee = lt(ke(r)), q = V.some((J) => J.context && Ee(J.context.elements.floating, ee));
6013
6013
  ie && !q && U.current && ie.focus({
6014
6014
  preventScroll: !0
6015
6015
  });
6016
6016
  }, [f, r, O, C, E]), X(() => {
6017
6017
  Y.current = Z, G.current = o, te.current = !!r;
6018
6018
  }), X(() => {
6019
- o || (B.current = null, S.current = v);
6019
+ o || (B.current = null, w.current = v);
6020
6020
  }, [o, v]);
6021
- const ne = u != null, we = a.useMemo(() => {
6021
+ const ne = u != null, Se = a.useMemo(() => {
6022
6022
  function V(ee) {
6023
6023
  if (!fe.current)
6024
6024
  return;
@@ -6051,7 +6051,7 @@ function kp(e, t) {
6051
6051
  }, [fe, A, y, c, Z, E]), W = a.useCallback(() => _ ?? O?.nodesRef.current.find((V) => V.id === C)?.context?.dataRef?.current.orientation, [C, O, _]), K = Q((V) => {
6052
6052
  if (U.current = !1, z.current = !0, V.which === 229 || !fe.current && V.currentTarget === A.current)
6053
6053
  return;
6054
- if (g && Lp(V.key, x, h, T)) {
6054
+ if (g && kp(V.key, x, h, T)) {
6055
6055
  Yn(V.key, W()) || Ue(V), n.setOpen(!1, me(Vo, V.nativeEvent)), Me(s) && (E ? O?.events.emit("virtualfocus", s) : s.focus());
6056
6056
  return;
6057
6057
  }
@@ -6062,7 +6062,7 @@ function kp(e, t) {
6062
6062
  }, () => ({
6063
6063
  width: 1,
6064
6064
  height: 1
6065
- })), le = Hu(J, T, L), ue = le.findIndex((xe) => xe != null && !On(c, xe, b)), Re = le.reduce((xe, He, ct) => He != null && !On(c, He, b) ? ct : xe, -1), Se = le[Bu({
6065
+ })), le = Hu(J, T, k), ue = le.findIndex((xe) => xe != null && !On(c, xe, b)), Re = le.reduce((xe, He, ct) => He != null && !On(c, He, b) ? ct : xe, -1), we = le[Bu({
6066
6066
  current: le.map((xe) => xe != null ? c.current[xe] : null)
6067
6067
  }, {
6068
6068
  event: V,
@@ -6084,11 +6084,11 @@ function kp(e, t) {
6084
6084
  // we're moving in so we don't end up in the same item. Prefer
6085
6085
  // top/left over bottom/right.
6086
6086
  // eslint-disable-next-line no-nested-ternary
6087
- V.key === kn ? "bl" : V.key === (h ? Nt : At) ? "tr" : "tl"
6087
+ V.key === Ln ? "bl" : V.key === (h ? Nt : At) ? "tr" : "tl"
6088
6088
  ),
6089
6089
  stopEvent: !0
6090
6090
  })];
6091
- if (Se != null && (M.current = Se, Z(V)), x === "both")
6091
+ if (we != null && (M.current = we, Z(V)), x === "both")
6092
6092
  return;
6093
6093
  }
6094
6094
  if (Yn(V.key, x)) {
@@ -6113,8 +6113,8 @@ function kp(e, t) {
6113
6113
  })), Tn(c, M.current) && (M.current = -1), Z(V);
6114
6114
  }
6115
6115
  }), j = a.useMemo(() => E && o && ne && {
6116
- "aria-activedescendant": `${k}-${u}`
6117
- }, [E, o, ne, k, u]), de = a.useMemo(() => ({
6116
+ "aria-activedescendant": `${L}-${u}`
6117
+ }, [E, o, ne, L, u]), de = a.useMemo(() => ({
6118
6118
  "aria-orientation": x === "both" ? void 0 : x,
6119
6119
  ...D ? {} : j,
6120
6120
  onKeyDown(V) {
@@ -6132,10 +6132,10 @@ function kp(e, t) {
6132
6132
  }
6133
6133
  }), [j, K, A, x, D, n, o, E, s]), ae = a.useMemo(() => {
6134
6134
  function V(ee) {
6135
- v === "auto" && qi(ee.nativeEvent) && (S.current = !E);
6135
+ v === "auto" && qi(ee.nativeEvent) && (w.current = !E);
6136
6136
  }
6137
6137
  function ie(ee) {
6138
- S.current = v, v === "auto" && Ki(ee.nativeEvent) && (S.current = !0);
6138
+ w.current = v, v === "auto" && Ki(ee.nativeEvent) && (w.current = !0);
6139
6139
  }
6140
6140
  return {
6141
6141
  onKeyDown(ee) {
@@ -6144,16 +6144,16 @@ function kp(e, t) {
6144
6144
  const J = ee.key.startsWith("Arrow"), le = Dp(ee.key, W(), h), ue = Yn(ee.key, x), Re = (g ? le : ue) || ee.key === "Enter" || ee.key.trim() === "";
6145
6145
  if (E && q)
6146
6146
  return K(ee);
6147
- if (!(!q && !w && J)) {
6147
+ if (!(!q && !S && J)) {
6148
6148
  if (Re) {
6149
- const Se = Yn(ee.key, W());
6150
- B.current = g && Se ? null : ee.key;
6149
+ const we = Yn(ee.key, W());
6150
+ B.current = g && we ? null : ee.key;
6151
6151
  }
6152
6152
  if (g) {
6153
6153
  le && (Ue(ee), q ? (M.current = Bo(c, ce.current), Z(ee)) : n.setOpen(!0, me(Vo, ee.nativeEvent, ee.currentTarget)));
6154
6154
  return;
6155
6155
  }
6156
- ue && (H.current != null && (M.current = H.current), Ue(ee), !q && w ? n.setOpen(!0, me(Vo, ee.nativeEvent, ee.currentTarget)) : K(ee), q && Z(ee));
6156
+ ue && (H.current != null && (M.current = H.current), Ue(ee), !q && S ? n.setOpen(!0, me(Vo, ee.nativeEvent, ee.currentTarget)) : K(ee), q && Z(ee));
6157
6157
  }
6158
6158
  },
6159
6159
  onFocus(ee) {
@@ -6164,16 +6164,16 @@ function kp(e, t) {
6164
6164
  onMouseDown: V,
6165
6165
  onClick: V
6166
6166
  };
6167
- }, [K, ce, v, c, g, Z, n, w, x, W, h, H, E]), oe = a.useMemo(() => ({
6167
+ }, [K, ce, v, c, g, Z, n, S, x, W, h, H, E]), oe = a.useMemo(() => ({
6168
6168
  ...j,
6169
6169
  ...ae
6170
6170
  }), [j, ae]);
6171
6171
  return a.useMemo(() => f ? {
6172
6172
  reference: oe,
6173
6173
  floating: de,
6174
- item: we,
6174
+ item: Se,
6175
6175
  trigger: ae
6176
- } : {}, [f, oe, de, ae, we]);
6176
+ } : {}, [f, oe, de, ae, Se]);
6177
6177
  }
6178
6178
  const Fp = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
6179
6179
  function Bc(e, t = {}) {
@@ -6205,25 +6205,25 @@ function Bc(e, t = {}) {
6205
6205
  id: f
6206
6206
  }
6207
6207
  }, [p, d, o, f, u, h]), v = a.useMemo(() => {
6208
- const w = {
6208
+ const S = {
6209
6209
  id: d,
6210
6210
  ...p && {
6211
6211
  role: p
6212
6212
  }
6213
6213
  };
6214
- return p === "tooltip" || u === "label" ? w : {
6215
- ...w,
6214
+ return p === "tooltip" || u === "label" ? S : {
6215
+ ...S,
6216
6216
  ...p === "menu" && {
6217
6217
  "aria-labelledby": f
6218
6218
  }
6219
6219
  };
6220
6220
  }, [p, d, f, u]), y = a.useCallback(({
6221
- active: w,
6221
+ active: S,
6222
6222
  selected: b
6223
6223
  }) => {
6224
6224
  const x = {
6225
6225
  role: "option",
6226
- ...w && {
6226
+ ...S && {
6227
6227
  id: `${d}-fui-option`
6228
6228
  }
6229
6229
  };
@@ -6263,7 +6263,7 @@ function Vp(e, t) {
6263
6263
  }, [o, m, i]);
6264
6264
  const y = Q((_) => {
6265
6265
  _ ? r.current.typing || (r.current.typing = _, u?.(_)) : r.current.typing && (r.current.typing = _, u?.(_));
6266
- }), w = Q((_) => {
6266
+ }), S = Q((_) => {
6267
6267
  function T(P, R, A) {
6268
6268
  const C = f ? f(R, A) : R.find((O) => O?.toLocaleLowerCase().indexOf(A.toLocaleLowerCase()) === 0);
6269
6269
  return C ? P.indexOf(C) : -1;
@@ -6276,16 +6276,16 @@ function Vp(e, t) {
6276
6276
  o && _.key !== " " && (Ue(_), y(!0)), N.every((P) => P ? P[0]?.toLocaleLowerCase() !== P[1]?.toLocaleLowerCase() : !0) && h.current === _.key && (h.current = "", E.current = v.current), h.current += _.key, g.start(d, () => {
6277
6277
  h.current = "", E.current = v.current, y(!1);
6278
6278
  });
6279
- const L = E.current, k = T(N, [...N.slice((L || 0) + 1), ...N.slice(0, (L || 0) + 1)], h.current);
6280
- k !== -1 ? (c?.(k), v.current = k) : _.key !== " " && (h.current = "", y(!1));
6279
+ const k = E.current, L = T(N, [...N.slice((k || 0) + 1), ...N.slice(0, (k || 0) + 1)], h.current);
6280
+ L !== -1 ? (c?.(L), v.current = L) : _.key !== " " && (h.current = "", y(!1));
6281
6281
  }), b = a.useMemo(() => ({
6282
- onKeyDown: w
6283
- }), [w]), x = a.useMemo(() => ({
6284
- onKeyDown: w,
6282
+ onKeyDown: S
6283
+ }), [S]), x = a.useMemo(() => ({
6284
+ onKeyDown: S,
6285
6285
  onKeyUp(_) {
6286
6286
  _.key === " " && y(!1);
6287
6287
  }
6288
- }), [w, y]);
6288
+ }), [S, y]);
6289
6289
  return a.useMemo(() => l ? {
6290
6290
  reference: b,
6291
6291
  floating: x
@@ -6326,7 +6326,7 @@ function Bp(e = {}) {
6326
6326
  onClose: h,
6327
6327
  nodeId: E,
6328
6328
  tree: v
6329
- }) => function(w) {
6329
+ }) => function(S) {
6330
6330
  function b() {
6331
6331
  r.clear(), h();
6332
6332
  }
@@ -6335,14 +6335,14 @@ function Bp(e = {}) {
6335
6335
  const {
6336
6336
  clientX: x,
6337
6337
  clientY: _
6338
- } = w, T = [x, _], N = Ke(w), F = w.type === "mouseleave", L = Ee(g.floating, N), k = Ee(g.domReference, N), P = g.domReference.getBoundingClientRect(), R = g.floating.getBoundingClientRect(), A = m.split("-")[0], C = d > R.right - R.width / 2, O = p > R.bottom - R.height / 2, D = $p(T, P), S = R.width > P.width, M = R.height > P.height, B = (S ? P : R).left, U = (S ? P : R).right, Z = (M ? P : R).top, Y = (M ? P : R).bottom;
6339
- if (L && (s = !0, !F))
6338
+ } = S, T = [x, _], N = Ke(S), F = S.type === "mouseleave", k = Ee(g.floating, N), L = Ee(g.domReference, N), P = g.domReference.getBoundingClientRect(), R = g.floating.getBoundingClientRect(), A = m.split("-")[0], C = d > R.right - R.width / 2, O = p > R.bottom - R.height / 2, D = $p(T, P), w = R.width > P.width, M = R.height > P.height, B = (w ? P : R).left, U = (w ? P : R).right, Z = (M ? P : R).top, Y = (M ? P : R).bottom;
6339
+ if (k && (s = !0, !F))
6340
6340
  return;
6341
- if (k && (s = !1), k && !F) {
6341
+ if (L && (s = !1), L && !F) {
6342
6342
  s = !0;
6343
6343
  return;
6344
6344
  }
6345
- if (F && Ce(w.relatedTarget) && Ee(g.floating, w.relatedTarget) || v && qt(v.nodesRef.current, E).some(({
6345
+ if (F && Ce(S.relatedTarget) && Ee(g.floating, S.relatedTarget) || v && qt(v.nodesRef.current, E).some(({
6346
6346
  context: z
6347
6347
  }) => z?.open))
6348
6348
  return;
@@ -6366,11 +6366,11 @@ function Bp(e = {}) {
6366
6366
  function G([z, $]) {
6367
6367
  switch (A) {
6368
6368
  case "top": {
6369
- const ce = [S ? z + t / 2 : C ? z + t * 4 : z - t * 4, $ + t + 1], fe = [S ? z - t / 2 : C ? z + t * 4 : z - t * 4, $ + t + 1], be = [[R.left, C || S ? R.bottom - t : R.top], [R.right, C ? S ? R.bottom - t : R.top : R.bottom - t]];
6369
+ const ce = [w ? z + t / 2 : C ? z + t * 4 : z - t * 4, $ + t + 1], fe = [w ? z - t / 2 : C ? z + t * 4 : z - t * 4, $ + t + 1], be = [[R.left, C || w ? R.bottom - t : R.top], [R.right, C ? w ? R.bottom - t : R.top : R.bottom - t]];
6370
6370
  return [ce, fe, ...be];
6371
6371
  }
6372
6372
  case "bottom": {
6373
- const ce = [S ? z + t / 2 : C ? z + t * 4 : z - t * 4, $ - t], fe = [S ? z - t / 2 : C ? z + t * 4 : z - t * 4, $ - t], be = [[R.left, C || S ? R.top + t : R.bottom], [R.right, C ? S ? R.top + t : R.bottom : R.top + t]];
6373
+ const ce = [w ? z + t / 2 : C ? z + t * 4 : z - t * 4, $ - t], fe = [w ? z - t / 2 : C ? z + t * 4 : z - t * 4, $ - t], be = [[R.left, C || w ? R.top + t : R.bottom], [R.right, C ? w ? R.top + t : R.bottom : R.top + t]];
6374
6374
  return [ce, fe, ...be];
6375
6375
  }
6376
6376
  case "left": {
@@ -6389,7 +6389,7 @@ function Bp(e = {}) {
6389
6389
  if (s && !D)
6390
6390
  return b();
6391
6391
  if (!F && o) {
6392
- const z = l(w.clientX, w.clientY);
6392
+ const z = l(S.clientX, S.clientY);
6393
6393
  if (z !== null && z < 0.1)
6394
6394
  return b();
6395
6395
  }
@@ -6415,7 +6415,7 @@ function Up() {
6415
6415
  }
6416
6416
  const Wp = {
6417
6417
  ...Bt,
6418
- ...Lt,
6418
+ ...kt,
6419
6419
  nestedDialogOpen(e) {
6420
6420
  return e ? {
6421
6421
  [zp.nestedDialogOpen]: ""
@@ -6430,7 +6430,7 @@ const Wp = {
6430
6430
  ...c
6431
6431
  } = t, {
6432
6432
  store: u
6433
- } = $t(), l = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), d = u.useState("floatingRootContext"), p = u.useState("popupProps"), m = u.useState("modal"), g = u.useState("mounted"), h = u.useState("nested"), E = u.useState("nestedOpenDialogCount"), v = u.useState("open"), y = u.useState("openMethod"), w = u.useState("titleElementId"), b = u.useState("transitionStatus"), x = u.useState("role");
6433
+ } = $t(), l = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), d = u.useState("floatingRootContext"), p = u.useState("popupProps"), m = u.useState("modal"), g = u.useState("mounted"), h = u.useState("nested"), E = u.useState("nestedOpenDialogCount"), v = u.useState("open"), y = u.useState("openMethod"), S = u.useState("titleElementId"), b = u.useState("transitionStatus"), x = u.useState("role");
6434
6434
  Up(), Vt({
6435
6435
  open: v,
6436
6436
  ref: u.context.popupRef,
@@ -6438,24 +6438,24 @@ const Wp = {
6438
6438
  v && u.context.onOpenChangeComplete?.(!0);
6439
6439
  }
6440
6440
  });
6441
- function _(k) {
6442
- return k === "touch" ? u.context.popupRef.current : !0;
6441
+ function _(L) {
6442
+ return L === "touch" ? u.context.popupRef.current : !0;
6443
6443
  }
6444
6444
  const T = s === void 0 ? _ : s, N = E > 0, F = a.useMemo(() => ({
6445
6445
  open: v,
6446
6446
  nested: h,
6447
6447
  transitionStatus: b,
6448
6448
  nestedDialogOpen: N
6449
- }), [v, h, b, N]), L = he("div", t, {
6449
+ }), [v, h, b, N]), k = he("div", t, {
6450
6450
  state: F,
6451
6451
  props: [p, {
6452
- "aria-labelledby": w ?? void 0,
6452
+ "aria-labelledby": S ?? void 0,
6453
6453
  "aria-describedby": l ?? void 0,
6454
6454
  role: x,
6455
6455
  tabIndex: -1,
6456
6456
  hidden: !g,
6457
- onKeyDown(k) {
6458
- Hr.has(k.key) && k.stopPropagation();
6457
+ onKeyDown(L) {
6458
+ Hr.has(L.key) && L.stopPropagation();
6459
6459
  },
6460
6460
  style: {
6461
6461
  [Hp.nestedDialogs]: E
@@ -6473,7 +6473,7 @@ const Wp = {
6473
6473
  returnFocus: r,
6474
6474
  modal: m !== !1,
6475
6475
  restoreFocus: "popup",
6476
- children: L
6476
+ children: k
6477
6477
  });
6478
6478
  });
6479
6479
  process.env.NODE_ENV !== "production" && (Hc.displayName = "DialogPopup");
@@ -6571,7 +6571,7 @@ function Kp(e) {
6571
6571
  overflowX: o.style.overflowX,
6572
6572
  scrollBehavior: o.style.scrollBehavior
6573
6573
  };
6574
- const v = n.scrollHeight > n.clientHeight, y = n.scrollWidth > n.clientWidth, w = p.overflowY === "scroll" || m.overflowY === "scroll", b = p.overflowX === "scroll" || m.overflowX === "scroll", x = Math.max(0, r.innerWidth - n.clientWidth), _ = Math.max(0, r.innerHeight - n.clientHeight), T = parseFloat(m.marginTop) + parseFloat(m.marginBottom), N = parseFloat(m.marginLeft) + parseFloat(m.marginRight), F = Xt(n) ? n : o;
6574
+ const v = n.scrollHeight > n.clientHeight, y = n.scrollWidth > n.clientWidth, S = p.overflowY === "scroll" || m.overflowY === "scroll", b = p.overflowX === "scroll" || m.overflowX === "scroll", x = Math.max(0, r.innerWidth - n.clientWidth), _ = Math.max(0, r.innerHeight - n.clientHeight), T = parseFloat(m.marginTop) + parseFloat(m.marginBottom), N = parseFloat(m.marginLeft) + parseFloat(m.marginRight), F = Xt(n) ? n : o;
6575
6575
  if (u) {
6576
6576
  n.style.scrollbarGutter = E, F.style.overflowY = "hidden", F.style.overflowX = "hidden";
6577
6577
  return;
@@ -6580,7 +6580,7 @@ function Kp(e) {
6580
6580
  scrollbarGutter: E,
6581
6581
  overflowY: "hidden",
6582
6582
  overflowX: "hidden"
6583
- }), (v || w) && (n.style.overflowY = "scroll"), (y || b) && (n.style.overflowX = "scroll"), Object.assign(o.style, {
6583
+ }), (v || S) && (n.style.overflowY = "scroll"), (y || b) && (n.style.overflowX = "scroll"), Object.assign(o.style, {
6584
6584
  position: "relative",
6585
6585
  height: T || _ ? `calc(100dvh - ${T + _}px)` : "100dvh",
6586
6586
  width: N || x ? `calc(100vw - ${N + x}px)` : "100vw",
@@ -6621,7 +6621,7 @@ class Gp {
6621
6621
  this.restore = ot;
6622
6622
  return;
6623
6623
  }
6624
- const s = Su || !jp(t);
6624
+ const s = wu || !jp(t);
6625
6625
  this.restore = s ? qp(t) : Kp(t);
6626
6626
  }
6627
6627
  }
@@ -6680,11 +6680,11 @@ function Zp(e) {
6680
6680
  forceUnmount: d
6681
6681
  } = Dc(r, t, () => {
6682
6682
  f();
6683
- }), p = Q((L) => {
6684
- const k = me(L);
6685
- return k.preventUnmountOnClose = () => {
6683
+ }), p = Q((k) => {
6684
+ const L = me(k);
6685
+ return L.preventUnmountOnClose = () => {
6686
6686
  t.set("preventUnmountingOnClose", !0);
6687
- }, k;
6687
+ }, L;
6688
6688
  }), m = a.useCallback(() => {
6689
6689
  t.setOpen(!1, p(Pi));
6690
6690
  }, [t, p]);
@@ -6697,19 +6697,19 @@ function Zp(e) {
6697
6697
  onOpenChange: t.setOpen,
6698
6698
  treatPopupAsFloatingElement: !0,
6699
6699
  noEmit: !0
6700
- }), [h, E] = a.useState(0), v = h === 0, y = Bc(g), w = Zr(g, {
6700
+ }), [h, E] = a.useState(0), v = h === 0, y = Bc(g), S = Zr(g, {
6701
6701
  outsidePressEvent() {
6702
6702
  return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
6703
6703
  mouse: i === "trap-focus" ? "sloppy" : "intentional",
6704
6704
  touch: "sloppy"
6705
6705
  };
6706
6706
  },
6707
- outsidePress(L) {
6708
- if ("button" in L && L.button !== 0 || "touches" in L && L.touches.length !== 1)
6707
+ outsidePress(k) {
6708
+ if ("button" in k && k.button !== 0 || "touches" in k && k.touches.length !== 1)
6709
6709
  return !1;
6710
- const k = Ke(L);
6710
+ const L = Ke(k);
6711
6711
  if (v && !s) {
6712
- const P = k;
6712
+ const P = L;
6713
6713
  return i && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === P || t.context.backdropRef.current === P || Ee(P, c) && !P?.hasAttribute("data-base-ui-portal") : !0;
6714
6714
  }
6715
6715
  return !1;
@@ -6721,9 +6721,9 @@ function Zp(e) {
6721
6721
  getReferenceProps: b,
6722
6722
  getFloatingProps: x,
6723
6723
  getTriggerProps: _
6724
- } = Vn([y, w]);
6725
- t.useContextCallback("onNestedDialogOpen", (L) => {
6726
- E(L + 1);
6724
+ } = Vn([y, S]);
6725
+ t.useContextCallback("onNestedDialogOpen", (k) => {
6726
+ E(k + 1);
6727
6727
  }), t.useContextCallback("onNestedDialogClose", () => {
6728
6728
  E(0);
6729
6729
  }), a.useEffect(() => (n?.onNestedDialogOpen && r && n.onNestedDialogOpen(h), n?.onNestedDialogClose && !r && n.onNestedDialogClose(), () => {
@@ -6740,7 +6740,7 @@ function Zp(e) {
6740
6740
  });
6741
6741
  }
6742
6742
  const Jp = {
6743
- ...kc,
6743
+ ...Lc,
6744
6744
  modal: re((e) => e.modal),
6745
6745
  nested: re((e) => e.nested),
6746
6746
  nestedOpenDialogCount: re((e) => e.nestedOpenDialogCount),
@@ -6782,7 +6782,7 @@ class Qp extends Jr {
6782
6782
  }
6783
6783
  function em(e = {}) {
6784
6784
  return {
6785
- ...Lc(),
6785
+ ...kc(),
6786
6786
  modal: !0,
6787
6787
  disablePointerDismissal: !1,
6788
6788
  popupElement: null,
@@ -6869,7 +6869,7 @@ const jc = /* @__PURE__ */ a.forwardRef(function(t, n) {
6869
6869
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : Pe(79));
6870
6870
  const m = pt(c), g = p.useState("floatingRootContext"), h = p.useState("isOpenedByTrigger", m), [E, v] = a.useState(null), {
6871
6871
  registerTrigger: y,
6872
- isMountedByThisTrigger: w
6872
+ isMountedByThisTrigger: S
6873
6873
  } = Ic(m, E, p, {
6874
6874
  payload: u
6875
6875
  }), {
@@ -6883,7 +6883,7 @@ const jc = /* @__PURE__ */ a.forwardRef(function(t, n) {
6883
6883
  }), T = Vn([_]), N = a.useMemo(() => ({
6884
6884
  disabled: s,
6885
6885
  open: h
6886
- }), [s, h]), F = p.useState("triggerProps", w);
6886
+ }), [s, h]), F = p.useState("triggerProps", S);
6887
6887
  return he("button", t, {
6888
6888
  state: N,
6889
6889
  ref: [x, n, y, v],
@@ -6895,7 +6895,7 @@ const jc = /* @__PURE__ */ a.forwardRef(function(t, n) {
6895
6895
  });
6896
6896
  });
6897
6897
  process.env.NODE_ENV !== "production" && (jc.displayName = "DialogTrigger");
6898
- const nm = "_backdrop_n0fed_10", om = "_popup_n0fed_32", rm = "_title_n0fed_137", sm = "_description_n0fed_150", im = "_close_n0fed_161", cm = "_closeIcon_n0fed_194", am = "_trigger_n0fed_203", wt = {
6898
+ const nm = "_backdrop_n0fed_10", om = "_popup_n0fed_32", rm = "_title_n0fed_137", sm = "_description_n0fed_150", im = "_close_n0fed_161", cm = "_closeIcon_n0fed_194", am = "_trigger_n0fed_203", St = {
6899
6899
  backdrop: nm,
6900
6900
  popup: om,
6901
6901
  "popup--default": "_popup--default_n0fed_59",
@@ -6935,7 +6935,7 @@ const nm = "_backdrop_n0fed_10", om = "_popup_n0fed_32", rm = "_title_n0fed_137"
6935
6935
  Kc.displayName = "ALSDialog.Root";
6936
6936
  const Gc = Ae(
6937
6937
  ({ className: e, children: t }, n) => {
6938
- const o = [wt.trigger, e].filter(Boolean).join(" ");
6938
+ const o = [St.trigger, e].filter(Boolean).join(" ");
6939
6939
  return /* @__PURE__ */ I(
6940
6940
  jc,
6941
6941
  {
@@ -6950,7 +6950,7 @@ const Gc = Ae(
6950
6950
  Gc.displayName = "ALSDialog.Trigger";
6951
6951
  const Yc = Ae(
6952
6952
  ({ className: e }, t) => {
6953
- const n = [wt.backdrop, e].filter(Boolean).join(" ");
6953
+ const n = [St.backdrop, e].filter(Boolean).join(" ");
6954
6954
  return /* @__PURE__ */ I(mc, { ref: t, className: n });
6955
6955
  }
6956
6956
  );
@@ -6964,9 +6964,9 @@ Xc.displayName = "ALSDialog.Portal";
6964
6964
  const Zc = Ae(
6965
6965
  ({ className: e, children: t }, n) => {
6966
6966
  const { variant: o, size: r } = lm(), s = [
6967
- wt.popup,
6968
- wt[`popup--${o}`],
6969
- wt[`popup--${r}`],
6967
+ St.popup,
6968
+ St[`popup--${o}`],
6969
+ St[`popup--${r}`],
6970
6970
  e
6971
6971
  ].filter(Boolean).join(" ");
6972
6972
  return /* @__PURE__ */ I(Hc, { ref: n, className: s, children: t });
@@ -6975,19 +6975,19 @@ const Zc = Ae(
6975
6975
  Zc.displayName = "ALSDialog.Popup";
6976
6976
  const Jc = Ae(
6977
6977
  ({ className: e, children: t }, n) => {
6978
- const o = [wt.title, e].filter(Boolean).join(" ");
6978
+ const o = [St.title, e].filter(Boolean).join(" ");
6979
6979
  return /* @__PURE__ */ I(Wc, { ref: n, className: o, children: t });
6980
6980
  }
6981
6981
  );
6982
6982
  Jc.displayName = "ALSDialog.Title";
6983
6983
  const Qc = Ae(({ className: e, children: t }, n) => {
6984
- const o = [wt.description, e].filter(Boolean).join(" ");
6984
+ const o = [St.description, e].filter(Boolean).join(" ");
6985
6985
  return /* @__PURE__ */ I(hc, { ref: n, className: o, children: t });
6986
6986
  });
6987
6987
  Qc.displayName = "ALSDialog.Description";
6988
6988
  const ea = Ae(
6989
6989
  ({ className: e, children: t }, n) => {
6990
- const o = [wt.close, e].filter(Boolean).join(" ");
6990
+ const o = [St.close, e].filter(Boolean).join(" ");
6991
6991
  return /* @__PURE__ */ I(gc, { ref: n, className: o, children: t || /* @__PURE__ */ I(um, {}) });
6992
6992
  }
6993
6993
  );
@@ -7000,7 +7000,7 @@ const um = () => /* @__PURE__ */ I(
7000
7000
  viewBox: "0 0 20 20",
7001
7001
  fill: "none",
7002
7002
  xmlns: "http://www.w3.org/2000/svg",
7003
- className: wt.closeIcon,
7003
+ className: St.closeIcon,
7004
7004
  children: /* @__PURE__ */ I(
7005
7005
  "path",
7006
7006
  {
@@ -7108,7 +7108,7 @@ const ym = {
7108
7108
  }
7109
7109
  });
7110
7110
  process.env.NODE_ENV !== "production" && (na.displayName = "FieldRootContext");
7111
- function Ln(e = !0) {
7111
+ function kn(e = !0) {
7112
7112
  const t = a.useContext(na);
7113
7113
  if (t.setValidityData === ot && !e)
7114
7114
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : Pe(28));
@@ -7189,7 +7189,7 @@ function ca(e) {
7189
7189
  markedDirtyRef: l,
7190
7190
  validityData: f,
7191
7191
  setValidityData: d
7192
- } = Ln(), p = Q(e.getValue);
7192
+ } = kn(), p = Q(e.getValue);
7193
7193
  X(() => {
7194
7194
  if (!t)
7195
7195
  return;
@@ -7231,27 +7231,27 @@ const aa = /* @__PURE__ */ a.forwardRef(function(t, n) {
7231
7231
  state: p,
7232
7232
  name: m,
7233
7233
  disabled: g
7234
- } = Ln(), h = g || u, E = m ?? i, v = a.useMemo(() => ({
7234
+ } = kn(), h = g || u, E = m ?? i, v = a.useMemo(() => ({
7235
7235
  ...p,
7236
7236
  disabled: h
7237
7237
  }), [p, h]), {
7238
7238
  setTouched: y,
7239
- setDirty: w,
7239
+ setDirty: S,
7240
7240
  validityData: b,
7241
7241
  setFocused: x,
7242
7242
  setFilled: _,
7243
7243
  validationMode: T,
7244
7244
  validation: N
7245
- } = Ln(), {
7245
+ } = kn(), {
7246
7246
  labelId: F
7247
- } = Io(), L = ia({
7247
+ } = Io(), k = ia({
7248
7248
  id: s
7249
7249
  });
7250
7250
  X(() => {
7251
7251
  const O = c != null;
7252
7252
  N.inputRef.current?.value || O && c !== "" ? _(!0) : O && c === "" && _(!1);
7253
7253
  }, [N.inputRef, _, c]);
7254
- const [k, P] = Nn({
7254
+ const [L, P] = Nn({
7255
7255
  controlled: c,
7256
7256
  default: f,
7257
7257
  name: "FieldControl",
@@ -7260,29 +7260,29 @@ const aa = /* @__PURE__ */ a.forwardRef(function(t, n) {
7260
7260
  l?.(O, D), !D.isCanceled && P(O);
7261
7261
  });
7262
7262
  return ca({
7263
- id: L,
7263
+ id: k,
7264
7264
  name: E,
7265
7265
  commit: N.commit,
7266
- value: k,
7266
+ value: L,
7267
7267
  getValue: () => N.inputRef.current?.value,
7268
7268
  controlRef: N.inputRef
7269
7269
  }), he("input", t, {
7270
7270
  ref: n,
7271
7271
  state: v,
7272
7272
  props: [{
7273
- id: L,
7273
+ id: k,
7274
7274
  disabled: h,
7275
7275
  name: E,
7276
7276
  ref: N.inputRef,
7277
7277
  "aria-labelledby": F,
7278
7278
  ...R ? {
7279
- value: k
7279
+ value: L
7280
7280
  } : {
7281
7281
  defaultValue: f
7282
7282
  },
7283
7283
  onChange(O) {
7284
7284
  const D = O.currentTarget.value;
7285
- A(D, me(pn, O.nativeEvent)), w(D !== b.initialValue), _(D !== "");
7285
+ A(D, me(pn, O.nativeEvent)), S(D !== b.initialValue), _(D !== "");
7286
7286
  },
7287
7287
  onFocus() {
7288
7288
  x(!0);
@@ -7343,22 +7343,22 @@ const bm = "_input_1ph0q_5", Xn = {
7343
7343
  }
7344
7344
  );
7345
7345
  Em.displayName = "ALSInput";
7346
- const wm = "_root_so1gq_1", Sm = {
7347
- root: wm
7346
+ const Sm = "_root_so1gq_1", wm = {
7347
+ root: Sm
7348
7348
  };
7349
7349
  function Dy(e) {
7350
- return /* @__PURE__ */ I("div", { className: Sm.root });
7350
+ return /* @__PURE__ */ I("div", { className: wm.root });
7351
7351
  }
7352
7352
  const Rm = "_root_g8l8f_1", xm = {
7353
7353
  root: Rm
7354
7354
  };
7355
- function Ly(e) {
7355
+ function ky(e) {
7356
7356
  return /* @__PURE__ */ I("div", { className: xm.root });
7357
7357
  }
7358
7358
  const Cm = "_root_krv6e_1", _m = {
7359
7359
  root: Cm
7360
7360
  };
7361
- function ky(e) {
7361
+ function Ly(e) {
7362
7362
  return /* @__PURE__ */ I("div", { className: _m.root });
7363
7363
  }
7364
7364
  const Tm = "_root_qmqvr_1", Om = {
@@ -7383,7 +7383,7 @@ function vt(e) {
7383
7383
  }
7384
7384
  function Am() {
7385
7385
  return {
7386
- ...Lc(),
7386
+ ...kc(),
7387
7387
  disabled: !1,
7388
7388
  modal: !1,
7389
7389
  instantType: void 0,
@@ -7398,7 +7398,7 @@ function Am() {
7398
7398
  };
7399
7399
  }
7400
7400
  const Im = {
7401
- ...kc,
7401
+ ...Lc,
7402
7402
  disabled: re((e) => e.disabled),
7403
7403
  instantType: re((e) => e.instantType),
7404
7404
  openMethod: re((e) => e.openMethod),
@@ -7497,14 +7497,14 @@ function li({
7497
7497
  ts(d && i === !0 && g !== rt && h !== "touch", p), a.useEffect(() => {
7498
7498
  d || f.context.stickIfOpenTimeout.clear();
7499
7499
  }, [f, d]);
7500
- const w = a.useCallback((C) => {
7500
+ const S = a.useCallback((C) => {
7501
7501
  const O = me(C);
7502
7502
  return O.preventUnmountOnClose = () => {
7503
7503
  f.set("preventUnmountingOnClose", !0);
7504
7504
  }, O;
7505
7505
  }, [f]), b = a.useCallback(() => {
7506
- f.setOpen(!1, w(Pi));
7507
- }, [f, w]);
7506
+ f.setOpen(!1, S(Pi));
7507
+ }, [f, S]);
7508
7508
  a.useImperativeHandle(e.actionsRef, () => ({
7509
7509
  unmount: y,
7510
7510
  close: b
@@ -7522,12 +7522,12 @@ function li({
7522
7522
  }), T = Bc(x), {
7523
7523
  getReferenceProps: N,
7524
7524
  getFloatingProps: F,
7525
- getTriggerProps: L
7526
- } = Vn([_, T]), k = a.useMemo(() => N(E), [N, E]), P = a.useMemo(() => L(E), [L, E]), R = a.useMemo(() => F(), [F]);
7525
+ getTriggerProps: k
7526
+ } = Vn([_, T]), L = a.useMemo(() => N(E), [N, E]), P = a.useMemo(() => k(E), [k, E]), R = a.useMemo(() => F(), [F]);
7527
7527
  f.useSyncedValues({
7528
7528
  modal: i,
7529
7529
  openMethod: h,
7530
- activeTriggerProps: k,
7530
+ activeTriggerProps: L,
7531
7531
  inactiveTriggerProps: P,
7532
7532
  popupProps: R,
7533
7533
  floatingRootContext: x,
@@ -7568,7 +7568,7 @@ const Dm = 300, ua = /* @__PURE__ */ a.forwardRef(function(t, n) {
7568
7568
  } = t, g = vt(!0), h = c?.store ?? g?.store;
7569
7569
  if (!h)
7570
7570
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Pe(74));
7571
- const E = pt(p), v = h.useState("isTriggerActive", E), y = h.useState("floatingRootContext"), w = h.useState("isOpenedByTrigger", E), [b, x] = a.useState(null), {
7571
+ const E = pt(p), v = h.useState("isTriggerActive", E), y = h.useState("floatingRootContext"), S = h.useState("isOpenedByTrigger", E), [b, x] = a.useState(null), {
7572
7572
  registerTrigger: _,
7573
7573
  isMountedByThisTrigger: T
7574
7574
  } = Ic(E, b, h, {
@@ -7576,8 +7576,8 @@ const Dm = 300, ua = /* @__PURE__ */ a.forwardRef(function(t, n) {
7576
7576
  disabled: s,
7577
7577
  openOnHover: l,
7578
7578
  closeDelay: d
7579
- }), N = h.useState("openChangeReason"), F = h.useState("stickIfOpen"), L = h.useState("openMethod"), k = Ip(y, {
7580
- enabled: y != null && l && (L !== "touch" || N !== bt),
7579
+ }), N = h.useState("openChangeReason"), F = h.useState("stickIfOpen"), k = h.useState("openMethod"), L = Ip(y, {
7580
+ enabled: y != null && l && (k !== "touch" || N !== bt),
7581
7581
  mouseOnly: !0,
7582
7582
  move: !1,
7583
7583
  handleClose: Bp(),
@@ -7592,25 +7592,25 @@ const Dm = 300, ua = /* @__PURE__ */ a.forwardRef(function(t, n) {
7592
7592
  stickIfOpen: F
7593
7593
  }), R = Vn([P]), A = h.useState("triggerProps", T), C = a.useMemo(() => ({
7594
7594
  disabled: s,
7595
- open: w
7596
- }), [s, w]), {
7595
+ open: S
7596
+ }), [s, S]), {
7597
7597
  getButtonProps: O,
7598
7598
  buttonRef: D
7599
7599
  } = Ct({
7600
7600
  disabled: s,
7601
7601
  native: i
7602
- }), S = a.useMemo(() => ({
7602
+ }), w = a.useMemo(() => ({
7603
7603
  open(Y) {
7604
7604
  return Y && N === bt ? pc.open(Y) : Ur.open(Y);
7605
7605
  }
7606
7606
  }), [N]), M = he("button", t, {
7607
7607
  state: C,
7608
7608
  ref: [D, n, _, x],
7609
- props: [R.getReferenceProps(), k, A, {
7609
+ props: [R.getReferenceProps(), L, A, {
7610
7610
  [Tr]: "",
7611
7611
  id: E
7612
7612
  }, m, O],
7613
- stateAttributesMapping: S
7613
+ stateAttributesMapping: w
7614
7614
  }), B = a.useRef(null), U = Q((Y) => {
7615
7615
  it.flushSync(() => {
7616
7616
  h.setOpen(!1, me(Kt, Y.nativeEvent, Y.currentTarget));
@@ -7649,7 +7649,7 @@ const Dm = 300, ua = /* @__PURE__ */ a.forwardRef(function(t, n) {
7649
7649
  process.env.NODE_ENV !== "production" && (ua.displayName = "PopoverTrigger");
7650
7650
  const rs = /* @__PURE__ */ a.createContext(void 0);
7651
7651
  process.env.NODE_ENV !== "production" && (rs.displayName = "PopoverPortalContext");
7652
- function Lm() {
7652
+ function km() {
7653
7653
  const e = a.useContext(rs);
7654
7654
  if (e === void 0)
7655
7655
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : Pe(45));
@@ -7680,7 +7680,7 @@ function da() {
7680
7680
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." : Pe(46));
7681
7681
  return e;
7682
7682
  }
7683
- const km = (e) => ({
7683
+ const Lm = (e) => ({
7684
7684
  name: "arrow",
7685
7685
  options: e,
7686
7686
  async fn(t) {
@@ -7702,24 +7702,24 @@ const km = (e) => ({
7702
7702
  const p = Gi(f), m = {
7703
7703
  x: n,
7704
7704
  y: o
7705
- }, g = Fr(r), h = kr(g), E = await i.getDimensions(l), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = s.reference[h] + s.reference[g] - m[g] - s.floating[h], _ = m[g] - s.reference[g], T = d === "real" ? await i.getOffsetParent?.(l) : c.floating;
7705
+ }, g = Fr(r), h = Lr(g), E = await i.getDimensions(l), v = g === "y", y = v ? "top" : "left", S = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = s.reference[h] + s.reference[g] - m[g] - s.floating[h], _ = m[g] - s.reference[g], T = d === "real" ? await i.getOffsetParent?.(l) : c.floating;
7706
7706
  let N = c.floating[b] || s.floating[h];
7707
7707
  (!N || !await i.isElement?.(T)) && (N = c.floating[b] || s.floating[h]);
7708
- const F = x / 2 - _ / 2, L = N / 2 - E[h] / 2 - 1, k = Math.min(p[y], L), P = Math.min(p[w], L), R = k, A = N - E[h] - P, C = N / 2 - E[h] / 2 + F, O = dr(R, C, A), D = !u.arrow && Ft(r) != null && C !== O && s.reference[h] / 2 - (C < R ? k : P) - E[h] / 2 < 0, S = D ? C < R ? C - R : C - A : 0;
7708
+ const F = x / 2 - _ / 2, k = N / 2 - E[h] / 2 - 1, L = Math.min(p[y], k), P = Math.min(p[S], k), R = L, A = N - E[h] - P, C = N / 2 - E[h] / 2 + F, O = dr(R, C, A), D = !u.arrow && Ft(r) != null && C !== O && s.reference[h] / 2 - (C < R ? L : P) - E[h] / 2 < 0, w = D ? C < R ? C - R : C - A : 0;
7709
7709
  return {
7710
- [g]: m[g] + S,
7710
+ [g]: m[g] + w,
7711
7711
  data: {
7712
7712
  [g]: O,
7713
- centerOffset: C - O - S,
7713
+ centerOffset: C - O - w,
7714
7714
  ...D && {
7715
- alignmentOffset: S
7715
+ alignmentOffset: w
7716
7716
  }
7717
7717
  },
7718
7718
  reset: D
7719
7719
  };
7720
7720
  }
7721
7721
  }), Fm = (e, t) => ({
7722
- ...km(e),
7722
+ ...Lm(e),
7723
7723
  options: [e, t]
7724
7724
  }), Vm = {
7725
7725
  name: "hide",
@@ -7841,11 +7841,11 @@ function ma(e) {
7841
7841
  shiftCrossAxis: E = !1,
7842
7842
  nodeId: v,
7843
7843
  adaptiveOrigin: y,
7844
- lazyFlip: w = !1,
7844
+ lazyFlip: S = !1,
7845
7845
  externalTree: b
7846
7846
  } = e, [x, _] = a.useState(null);
7847
7847
  !g && x !== null && _(null);
7848
- const T = h.side || "flip", N = h.align || "flip", F = h.fallbackAxisSide || "end", L = typeof t == "function" ? t : void 0, k = Q(L), P = L ? k : t, R = Ve(t), C = Rr() === "rtl", O = x || {
7848
+ const T = h.side || "flip", N = h.align || "flip", F = h.fallbackAxisSide || "end", k = typeof t == "function" ? t : void 0, L = Q(k), P = k ? L : t, R = Ve(t), C = Rr() === "rtl", O = x || {
7849
7849
  top: "top",
7850
7850
  right: "right",
7851
7851
  bottom: "bottom",
@@ -7853,43 +7853,43 @@ function ma(e) {
7853
7853
  "inline-end": C ? "left" : "right",
7854
7854
  "inline-start": C ? "right" : "left"
7855
7855
  }[o], D = s === "center" ? O : `${O}-${s}`;
7856
- let S = u;
7856
+ let w = u;
7857
7857
  const M = 1, B = o === "bottom" ? M : 0, U = o === "top" ? M : 0, Z = o === "right" ? M : 0, Y = o === "left" ? M : 0;
7858
- typeof S == "number" ? S = {
7859
- top: S + B,
7860
- right: S + Y,
7861
- bottom: S + U,
7862
- left: S + Z
7863
- } : S && (S = {
7864
- top: (S.top || 0) + B,
7865
- right: (S.right || 0) + Y,
7866
- bottom: (S.bottom || 0) + U,
7867
- left: (S.left || 0) + Z
7858
+ typeof w == "number" ? w = {
7859
+ top: w + B,
7860
+ right: w + Y,
7861
+ bottom: w + U,
7862
+ left: w + Z
7863
+ } : w && (w = {
7864
+ top: (w.top || 0) + B,
7865
+ right: (w.right || 0) + Y,
7866
+ bottom: (w.bottom || 0) + U,
7867
+ left: (w.left || 0) + Z
7868
7868
  });
7869
7869
  const te = {
7870
7870
  boundary: c === "clipping-ancestors" ? "clippingAncestors" : c,
7871
- padding: S
7871
+ padding: w
7872
7872
  }, G = a.useRef(null), z = Ve(r), $ = Ve(i), be = [jd((_e) => {
7873
- const Ne = ui(_e, o, C), ze = typeof z.current == "function" ? z.current(Ne) : z.current, ke = typeof $.current == "function" ? $.current(Ne) : $.current;
7873
+ const Ne = ui(_e, o, C), ze = typeof z.current == "function" ? z.current(Ne) : z.current, Le = typeof $.current == "function" ? $.current(Ne) : $.current;
7874
7874
  return {
7875
7875
  mainAxis: ze,
7876
- crossAxis: ke,
7877
- alignmentAxis: ke
7876
+ crossAxis: Le,
7877
+ alignmentAxis: Le
7878
7878
  };
7879
7879
  }, [typeof r != "function" ? r : 0, typeof i != "function" ? i : 0, C, o])], H = N === "none" && T !== "shift", se = !H && (l || E || T === "shift"), ne = T === "none" ? null : Gd({
7880
7880
  ...te,
7881
7881
  // Ensure the popup flips if it's been limited by its --available-height and it resizes.
7882
7882
  // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
7883
7883
  padding: {
7884
- top: S.top + M,
7885
- right: S.right + M,
7886
- bottom: S.bottom + M,
7887
- left: S.left + M
7884
+ top: w.top + M,
7885
+ right: w.right + M,
7886
+ bottom: w.bottom + M,
7887
+ left: w.left + M
7888
7888
  },
7889
7889
  mainAxis: !E && T === "flip",
7890
7890
  crossAxis: N === "flip" ? "alignment" : !1,
7891
7891
  fallbackAxisSideDirection: F
7892
- }), we = H ? null : qd((_e) => {
7892
+ }), Se = H ? null : qd((_e) => {
7893
7893
  const Ne = Ge(_e.elements.floating).documentElement;
7894
7894
  return {
7895
7895
  ...te,
@@ -7907,16 +7907,16 @@ function ma(e) {
7907
7907
  if (!G.current)
7908
7908
  return {};
7909
7909
  const {
7910
- width: ke,
7910
+ width: Le,
7911
7911
  height: ye
7912
- } = G.current.getBoundingClientRect(), Oe = ut(Je(ze.placement)), Fe = Oe === "y" ? ke : ye, je = Oe === "y" ? S.left + S.right : S.top + S.bottom;
7912
+ } = G.current.getBoundingClientRect(), Oe = ut(Je(ze.placement)), Fe = Oe === "y" ? Le : ye, je = Oe === "y" ? w.left + w.right : w.top + w.bottom;
7913
7913
  return {
7914
7914
  offset: Fe / 2 + je / 2
7915
7915
  };
7916
7916
  })
7917
7917
  };
7918
- }, [te, l, E, S, N]);
7919
- T === "shift" || N === "shift" || s === "center" ? be.push(we, ne) : be.push(ne, we), be.push(Yd({
7918
+ }, [te, l, E, w, N]);
7919
+ T === "shift" || N === "shift" || s === "center" ? be.push(Se, ne) : be.push(ne, Se), be.push(Yd({
7920
7920
  ...te,
7921
7921
  apply({
7922
7922
  elements: {
@@ -7926,11 +7926,11 @@ function ma(e) {
7926
7926
  reference: Ne
7927
7927
  },
7928
7928
  availableWidth: ze,
7929
- availableHeight: ke
7929
+ availableHeight: Le
7930
7930
  }) {
7931
7931
  Object.entries({
7932
7932
  "--available-width": `${ze}px`,
7933
- "--available-height": `${ke}px`,
7933
+ "--available-height": `${Le}px`,
7934
7934
  "--anchor-width": `${Ne.width}px`,
7935
7935
  "--anchor-height": `${Ne.height}px`
7936
7936
  }).forEach(([ye, Oe]) => {
@@ -7949,15 +7949,15 @@ function ma(e) {
7949
7949
  const {
7950
7950
  elements: Ne,
7951
7951
  middlewareData: ze,
7952
- placement: ke,
7952
+ placement: Le,
7953
7953
  rects: ye,
7954
7954
  y: Oe
7955
- } = _e, Fe = Je(ke), je = ut(Fe), Xe = G.current, _t = ze.arrow?.x || 0, $n = ze.arrow?.y || 0, Do = Xe?.clientWidth || 0, dl = Xe?.clientHeight || 0, Lo = _t + Do / 2, ws = $n + dl / 2, pl = Math.abs(ze.shift?.y || 0), ml = ye.reference.height / 2, bn = typeof r == "function" ? r(ui(_e, o, C)) : r, gl = pl > bn, hl = {
7956
- top: `${Lo}px calc(100% + ${bn}px)`,
7957
- bottom: `${Lo}px ${-bn}px`,
7958
- left: `calc(100% + ${bn}px) ${ws}px`,
7959
- right: `${-bn}px ${ws}px`
7960
- }[Fe], yl = `${Lo}px ${ye.reference.y + ml - Oe}px`;
7955
+ } = _e, Fe = Je(Le), je = ut(Fe), Xe = G.current, _t = ze.arrow?.x || 0, $n = ze.arrow?.y || 0, Do = Xe?.clientWidth || 0, dl = Xe?.clientHeight || 0, ko = _t + Do / 2, Ss = $n + dl / 2, pl = Math.abs(ze.shift?.y || 0), ml = ye.reference.height / 2, bn = typeof r == "function" ? r(ui(_e, o, C)) : r, gl = pl > bn, hl = {
7956
+ top: `${ko}px calc(100% + ${bn}px)`,
7957
+ bottom: `${ko}px ${-bn}px`,
7958
+ left: `calc(100% + ${bn}px) ${Ss}px`,
7959
+ right: `${-bn}px ${Ss}px`
7960
+ }[Fe], yl = `${ko}px ${ye.reference.y + ml - Oe}px`;
7961
7961
  return Ne.floating.style.setProperty("--transform-origin", se && je === "y" && gl ? yl : hl), {};
7962
7962
  }
7963
7963
  }, Vm, y), X(() => {
@@ -7992,7 +7992,7 @@ function ma(e) {
7992
7992
  }), {
7993
7993
  sideX: le,
7994
7994
  sideY: ue
7995
- } = oe.adaptiveOrigin || to, Re = q ? n : "fixed", Se = a.useMemo(() => y ? {
7995
+ } = oe.adaptiveOrigin || to, Re = q ? n : "fixed", we = a.useMemo(() => y ? {
7996
7996
  position: Re,
7997
7997
  [le]: de,
7998
7998
  [ue]: ae
@@ -8003,8 +8003,8 @@ function ma(e) {
8003
8003
  X(() => {
8004
8004
  if (!g)
8005
8005
  return;
8006
- const _e = R.current, Ne = typeof _e == "function" ? _e() : _e, ke = (fi(Ne) ? Ne.current : Ne) || null || null;
8007
- ke !== xe.current && (K.setPositionReference(ke), xe.current = ke);
8006
+ const _e = R.current, Ne = typeof _e == "function" ? _e() : _e, Le = (fi(Ne) ? Ne.current : Ne) || null || null;
8007
+ Le !== xe.current && (K.setPositionReference(Le), xe.current = Le);
8008
8008
  }, [g, K, P, R]), a.useEffect(() => {
8009
8009
  if (!g)
8010
8010
  return;
@@ -8016,15 +8016,15 @@ function ma(e) {
8016
8016
  }, [p, g, j, V, W]);
8017
8017
  const He = Je(ie), ct = pa(o, He, C), Te = Ft(ie) || "center", tt = !!oe.hide?.referenceHidden;
8018
8018
  X(() => {
8019
- w && g && q && _(He);
8020
- }, [w, g, q, He]);
8019
+ S && g && q && _(He);
8020
+ }, [S, g, q, He]);
8021
8021
  const Ye = a.useMemo(() => ({
8022
8022
  position: "absolute",
8023
8023
  top: oe.arrow?.y,
8024
8024
  left: oe.arrow?.x
8025
8025
  }), [oe.arrow]), at = oe.arrow?.centerOffset !== 0;
8026
8026
  return a.useMemo(() => ({
8027
- positionerStyles: Se,
8027
+ positionerStyles: we,
8028
8028
  arrowStyles: Ye,
8029
8029
  arrowRef: G,
8030
8030
  arrowUncentered: at,
@@ -8036,7 +8036,7 @@ function ma(e) {
8036
8036
  context: ee,
8037
8037
  isPositioned: q,
8038
8038
  update: V
8039
- }), [Se, Ye, G, at, ct, Te, He, tt, K, ee, q, V]);
8039
+ }), [we, Ye, G, at, ct, Te, He, tt, K, ee, q, V]);
8040
8040
  }
8041
8041
  function fi(e) {
8042
8042
  return e != null && "current" in e;
@@ -8063,7 +8063,7 @@ const ga = /* @__PURE__ */ a.forwardRef(function(t, n) {
8063
8063
  ...v
8064
8064
  } = t, {
8065
8065
  store: y
8066
- } = vt(), w = Lm(), b = ed(), x = y.useState("floatingRootContext"), _ = y.useState("mounted"), T = y.useState("open"), N = y.useState("openMethod"), F = y.useState("openChangeReason"), L = y.useState("activeTriggerElement"), k = y.useState("modal"), P = y.useState("positionerElement"), R = y.useState("instantType"), A = y.useState("transitionStatus"), C = a.useRef(null), O = mo(P, !1, !1), D = ma({
8066
+ } = vt(), S = km(), b = ed(), x = y.useState("floatingRootContext"), _ = y.useState("mounted"), T = y.useState("open"), N = y.useState("openMethod"), F = y.useState("openChangeReason"), k = y.useState("activeTriggerElement"), L = y.useState("modal"), P = y.useState("positionerElement"), R = y.useState("instantType"), A = y.useState("transitionStatus"), C = a.useRef(null), O = mo(P, !1, !1), D = ma({
8067
8067
  anchor: s,
8068
8068
  floatingRootContext: x,
8069
8069
  positionMethod: i,
@@ -8077,11 +8077,11 @@ const ga = /* @__PURE__ */ a.forwardRef(function(t, n) {
8077
8077
  collisionPadding: p,
8078
8078
  sticky: g,
8079
8079
  disableAnchorTracking: h,
8080
- keepMounted: w,
8080
+ keepMounted: S,
8081
8081
  nodeId: b,
8082
8082
  collisionAvoidance: E,
8083
8083
  adaptiveOrigin: $m
8084
- }), S = a.useMemo(() => {
8084
+ }), w = a.useMemo(() => {
8085
8085
  const te = {};
8086
8086
  return T || (te.pointerEvents = "none"), {
8087
8087
  role: "presentation",
@@ -8092,9 +8092,9 @@ const ga = /* @__PURE__ */ a.forwardRef(function(t, n) {
8092
8092
  }
8093
8093
  };
8094
8094
  }, [T, _, D.positionerStyles]), M = a.useMemo(() => ({
8095
- props: S,
8095
+ props: w,
8096
8096
  ...D
8097
- }), [S, D]), B = x?.select("domReferenceElement");
8097
+ }), [w, D]), B = x?.select("domReferenceElement");
8098
8098
  X(() => {
8099
8099
  const te = B, G = C.current;
8100
8100
  if (te && (C.current = te), G && te && te !== G) {
@@ -8123,10 +8123,10 @@ const ga = /* @__PURE__ */ a.forwardRef(function(t, n) {
8123
8123
  });
8124
8124
  return /* @__PURE__ */ Be(ss.Provider, {
8125
8125
  value: M,
8126
- children: [_ && k === !0 && F !== rt && N !== "touch" && /* @__PURE__ */ I(Ao, {
8126
+ children: [_ && L === !0 && F !== rt && N !== "touch" && /* @__PURE__ */ I(Ao, {
8127
8127
  ref: y.context.internalBackdropRef,
8128
8128
  inert: No(!T),
8129
- cutout: L
8129
+ cutout: k
8130
8130
  }), /* @__PURE__ */ I(td, {
8131
8131
  id: b,
8132
8132
  children: Y
@@ -8169,17 +8169,17 @@ function zm(e) {
8169
8169
  } : (d.current.width = Math.ceil(T.borderBoxSize[0].inlineSize), d.current.height = Math.ceil(T.borderBoxSize[0].blockSize)));
8170
8170
  });
8171
8171
  g.observe(t), t.style.setProperty("--popup-width", "auto"), t.style.setProperty("--popup-height", "auto");
8172
- const h = wn(t, "position", "static"), E = wn(t, "transform", "none"), v = wn(t, "scale", "1"), y = wn(n, "--available-width", "max-content"), w = wn(n, "--available-height", "max-content");
8172
+ const h = Sn(t, "position", "static"), E = Sn(t, "transform", "none"), v = Sn(t, "scale", "1"), y = Sn(n, "--available-width", "max-content"), S = Sn(n, "--available-height", "max-content");
8173
8173
  if (p?.(), u.current || d.current === null) {
8174
8174
  n.style.setProperty("--positioner-width", "max-content"), n.style.setProperty("--positioner-height", "max-content");
8175
8175
  const _ = di(t);
8176
- return n.style.setProperty("--positioner-width", `${_.width}px`), n.style.setProperty("--positioner-height", `${_.height}px`), h(), E(), v(), y(), w(), m?.(null, _), u.current = !1, () => {
8176
+ return n.style.setProperty("--positioner-width", `${_.width}px`), n.style.setProperty("--positioner-height", `${_.height}px`), h(), E(), v(), y(), S(), m?.(null, _), u.current = !1, () => {
8177
8177
  g.disconnect();
8178
8178
  };
8179
8179
  }
8180
8180
  t.style.setProperty("--popup-width", "auto"), t.style.setProperty("--popup-height", "auto"), n.style.setProperty("--positioner-width", "max-content"), n.style.setProperty("--positioner-height", "max-content");
8181
8181
  const b = di(t);
8182
- t.style.setProperty("--popup-width", `${d.current.width}px`), t.style.setProperty("--popup-height", `${d.current.height}px`), h(), E(), y(), w(), m?.(d.current, b), n.style.setProperty("--positioner-width", `${b.width}px`), n.style.setProperty("--positioner-height", `${b.height}px`);
8182
+ t.style.setProperty("--popup-width", `${d.current.width}px`), t.style.setProperty("--popup-height", `${d.current.height}px`), h(), E(), y(), S(), m?.(d.current, b), n.style.setProperty("--positioner-width", `${b.width}px`), n.style.setProperty("--positioner-height", `${b.height}px`);
8183
8183
  const x = new AbortController();
8184
8184
  return f.request(() => {
8185
8185
  t.style.setProperty("--popup-width", `${b.width}px`), t.style.setProperty("--popup-height", `${b.height}px`), l(() => {
@@ -8190,7 +8190,7 @@ function zm(e) {
8190
8190
  };
8191
8191
  }, [o, t, n, l, f, s, r, p, m]);
8192
8192
  }
8193
- function wn(e, t, n) {
8193
+ function Sn(e, t, n) {
8194
8194
  const o = e.style.getPropertyValue(t);
8195
8195
  return e.style.setProperty(t, n), () => {
8196
8196
  e.style.setProperty(t, o);
@@ -8203,7 +8203,7 @@ function ya(e) {
8203
8203
  }
8204
8204
  const Um = {
8205
8205
  ...Bt,
8206
- ...Lt
8206
+ ...kt
8207
8207
  }, va = /* @__PURE__ */ a.forwardRef(function(t, n) {
8208
8208
  const {
8209
8209
  className: o,
@@ -8213,7 +8213,7 @@ const Um = {
8213
8213
  ...c
8214
8214
  } = t, {
8215
8215
  store: u
8216
- } = vt(), l = da(), f = ya() != null, d = Rr(), p = u.useState("open"), m = u.useState("openMethod"), g = u.useState("instantType"), h = u.useState("transitionStatus"), E = u.useState("popupProps"), v = u.useState("titleElementId"), y = u.useState("descriptionElementId"), w = u.useState("modal"), b = u.useState("mounted"), x = u.useState("openChangeReason"), _ = u.useState("popupElement"), T = u.useState("payload"), N = u.useState("positionerElement"), F = u.useState("activeTriggerElement"), L = u.useState("floatingRootContext");
8216
+ } = vt(), l = da(), f = ya() != null, d = Rr(), p = u.useState("open"), m = u.useState("openMethod"), g = u.useState("instantType"), h = u.useState("transitionStatus"), E = u.useState("popupProps"), v = u.useState("titleElementId"), y = u.useState("descriptionElementId"), S = u.useState("modal"), b = u.useState("mounted"), x = u.useState("openChangeReason"), _ = u.useState("popupElement"), T = u.useState("payload"), N = u.useState("positionerElement"), F = u.useState("activeTriggerElement"), k = u.useState("floatingRootContext");
8217
8217
  Vt({
8218
8218
  open: p,
8219
8219
  ref: u.context.popupRef,
@@ -8221,9 +8221,9 @@ const Um = {
8221
8221
  p && u.context.onOpenChangeComplete?.(!0);
8222
8222
  }
8223
8223
  });
8224
- const k = u.useState("disabled"), P = u.useState("openOnHover"), R = u.useState("closeDelay");
8225
- Np(L, {
8226
- enabled: P && !k,
8224
+ const L = u.useState("disabled"), P = u.useState("openOnHover"), R = u.useState("closeDelay");
8225
+ Np(k, {
8226
+ enabled: P && !L,
8227
8227
  closeDelay: R
8228
8228
  });
8229
8229
  function A(Y) {
@@ -8238,11 +8238,11 @@ const Um = {
8238
8238
  }), [p, l.side, l.align, g, h]), D = a.useCallback((Y) => {
8239
8239
  u.set("popupElement", Y);
8240
8240
  }, [u]);
8241
- function S() {
8242
- L.context.events.emit("measure-layout");
8241
+ function w() {
8242
+ k.context.events.emit("measure-layout");
8243
8243
  }
8244
8244
  function M(Y, te) {
8245
- L.context.events.emit("measure-layout-complete", {
8245
+ k.context.events.emit("measure-layout-complete", {
8246
8246
  previousDimensions: Y,
8247
8247
  nextDimensions: te
8248
8248
  });
@@ -8253,7 +8253,7 @@ const Um = {
8253
8253
  mounted: b,
8254
8254
  content: T,
8255
8255
  enabled: () => u.context.triggerElements.size > 1,
8256
- onMeasureLayout: S,
8256
+ onMeasureLayout: w,
8257
8257
  onMeasureLayoutComplete: M
8258
8258
  });
8259
8259
  const U = a.useMemo(() => {
@@ -8277,9 +8277,9 @@ const Um = {
8277
8277
  stateAttributesMapping: Um
8278
8278
  });
8279
8279
  return /* @__PURE__ */ I(Gr, {
8280
- context: L,
8280
+ context: k,
8281
8281
  openInteractionType: m,
8282
- modal: w === "trap-focus",
8282
+ modal: S === "trap-focus",
8283
8283
  disabled: !b || x === rt,
8284
8284
  initialFocus: C,
8285
8285
  returnFocus: i,
@@ -8323,7 +8323,7 @@ const ba = /* @__PURE__ */ a.forwardRef(function(t, n) {
8323
8323
  process.env.NODE_ENV !== "production" && (ba.displayName = "PopoverArrow");
8324
8324
  const Wm = {
8325
8325
  ...Bt,
8326
- ...Lt
8326
+ ...kt
8327
8327
  }, Ea = /* @__PURE__ */ a.forwardRef(function(t, n) {
8328
8328
  const {
8329
8329
  className: o,
@@ -8351,7 +8351,7 @@ const Wm = {
8351
8351
  });
8352
8352
  });
8353
8353
  process.env.NODE_ENV !== "production" && (Ea.displayName = "PopoverBackdrop");
8354
- const wa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8354
+ const Sa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8355
8355
  const {
8356
8356
  render: o,
8357
8357
  className: r,
@@ -8368,8 +8368,8 @@ const wa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8368
8368
  }, s]
8369
8369
  });
8370
8370
  });
8371
- process.env.NODE_ENV !== "production" && (wa.displayName = "PopoverTitle");
8372
- const Sa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8371
+ process.env.NODE_ENV !== "production" && (Sa.displayName = "PopoverTitle");
8372
+ const wa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8373
8373
  const {
8374
8374
  render: o,
8375
8375
  className: r,
@@ -8386,7 +8386,7 @@ const Sa = /* @__PURE__ */ a.forwardRef(function(t, n) {
8386
8386
  }, s]
8387
8387
  });
8388
8388
  });
8389
- process.env.NODE_ENV !== "production" && (Sa.displayName = "PopoverDescription");
8389
+ process.env.NODE_ENV !== "production" && (wa.displayName = "PopoverDescription");
8390
8390
  const Ra = /* @__PURE__ */ a.forwardRef(function(t, n) {
8391
8391
  const {
8392
8392
  render: o,
@@ -8453,7 +8453,7 @@ const jm = "_popup_1w2m7_1", qm = "_arrow_1w2m7_25", Km = "_title_1w2m7_35", Gm
8453
8453
  );
8454
8454
  }), og = a.forwardRef(function({ className: t, ...n }, o) {
8455
8455
  return /* @__PURE__ */ I(
8456
- wa,
8456
+ Sa,
8457
8457
  {
8458
8458
  ...n,
8459
8459
  className: `${yn.title} ${t || ""}`,
@@ -8462,7 +8462,7 @@ const jm = "_popup_1w2m7_1", qm = "_arrow_1w2m7_25", Km = "_title_1w2m7_35", Gm
8462
8462
  );
8463
8463
  }), rg = a.forwardRef(function({ className: t, ...n }, o) {
8464
8464
  return /* @__PURE__ */ I(
8465
- Sa,
8465
+ wa,
8466
8466
  {
8467
8467
  ...n,
8468
8468
  className: `${yn.description} ${t || ""}`,
@@ -8650,7 +8650,7 @@ const ge = {
8650
8650
  return t && Array.isArray(n) && n.length === 0 ? "" : no(n, o);
8651
8651
  })
8652
8652
  };
8653
- function wg(e, t) {
8653
+ function Sg(e, t) {
8654
8654
  const n = a.useRef(e), o = Q(t);
8655
8655
  X(() => {
8656
8656
  n.current !== e && o(n.current);
@@ -8658,7 +8658,7 @@ function wg(e, t) {
8658
8658
  n.current = e;
8659
8659
  }, [e]);
8660
8660
  }
8661
- function Sg(e) {
8661
+ function wg(e) {
8662
8662
  const {
8663
8663
  id: t,
8664
8664
  value: n,
@@ -8678,7 +8678,7 @@ function Sg(e) {
8678
8678
  items: E,
8679
8679
  multiple: v = !1,
8680
8680
  itemToStringLabel: y,
8681
- itemToStringValue: w,
8681
+ itemToStringValue: S,
8682
8682
  isItemEqualToValue: b = hg,
8683
8683
  children: x
8684
8684
  } = e, {
@@ -8687,15 +8687,15 @@ function Sg(e) {
8687
8687
  setDirty: T,
8688
8688
  shouldValidateOnChange: N,
8689
8689
  validityData: F,
8690
- setFilled: L,
8691
- name: k,
8690
+ setFilled: k,
8691
+ name: L,
8692
8692
  disabled: P,
8693
8693
  validation: R
8694
- } = Ln(), {
8694
+ } = kn(), {
8695
8695
  controlId: A
8696
8696
  } = Io(), C = ia({
8697
8697
  id: t
8698
- }), O = P || l, D = k ?? u, [S, M] = Nn({
8698
+ }), O = P || l, D = L ?? u, [w, M] = Nn({
8699
8699
  controlled: n,
8700
8700
  default: v ? o ?? rr : o,
8701
8701
  name: "Select",
@@ -8709,7 +8709,7 @@ function Sg(e) {
8709
8709
  allowSelectedMouseUp: !1,
8710
8710
  allowUnselectedMouseUp: !1
8711
8711
  }), ne = a.useRef(!1), {
8712
- mounted: we,
8712
+ mounted: Se,
8713
8713
  setMounted: W,
8714
8714
  transitionStatus: K
8715
8715
  } = go(B), j = Qe(() => new rn({
@@ -8717,11 +8717,11 @@ function Sg(e) {
8717
8717
  modal: p,
8718
8718
  multiple: v,
8719
8719
  itemToStringLabel: y,
8720
- itemToStringValue: w,
8720
+ itemToStringValue: S,
8721
8721
  isItemEqualToValue: b,
8722
- value: S,
8722
+ value: w,
8723
8723
  open: B,
8724
- mounted: we,
8724
+ mounted: Se,
8725
8725
  transitionStatus: K,
8726
8726
  items: E,
8727
8727
  forceMount: !1,
@@ -8736,26 +8736,26 @@ function Sg(e) {
8736
8736
  scrollUpArrowVisible: !1,
8737
8737
  scrollDownArrowVisible: !1,
8738
8738
  hasScrollArrows: !1
8739
- })).current, de = ve(j, ge.activeIndex), ae = ve(j, ge.selectedIndex), oe = ve(j, ge.triggerElement), V = ve(j, ge.positionerElement), ie = a.useMemo(() => v && Array.isArray(S) && S.length === 0 ? "" : no(S, w), [v, S, w]), ee = Ve(j.state.triggerElement);
8739
+ })).current, de = ve(j, ge.activeIndex), ae = ve(j, ge.selectedIndex), oe = ve(j, ge.triggerElement), V = ve(j, ge.positionerElement), ie = a.useMemo(() => v && Array.isArray(w) && w.length === 0 ? "" : no(w, S), [v, w, S]), ee = Ve(j.state.triggerElement);
8740
8740
  ca({
8741
8741
  id: C,
8742
8742
  commit: R.commit,
8743
- value: S,
8743
+ value: w,
8744
8744
  controlRef: ee,
8745
8745
  name: D,
8746
- getValue: () => S
8746
+ getValue: () => w
8747
8747
  });
8748
- const q = a.useRef(S);
8748
+ const q = a.useRef(w);
8749
8749
  X(() => {
8750
- S !== q.current && j.set("forceMount", !0);
8751
- }, [j, S]), X(() => {
8752
- L(S !== null);
8753
- }, [S, L]), X(function() {
8750
+ w !== q.current && j.set("forceMount", !0);
8751
+ }, [j, w]), X(() => {
8752
+ k(w !== null);
8753
+ }, [w, k]), X(function() {
8754
8754
  if (B)
8755
8755
  return;
8756
8756
  const Oe = ce.current;
8757
8757
  if (v) {
8758
- const je = Array.isArray(S) ? S : [];
8758
+ const je = Array.isArray(w) ? w : [];
8759
8759
  if (je.length === 0) {
8760
8760
  j.set("selectedIndex", null);
8761
8761
  return;
@@ -8764,10 +8764,10 @@ function Sg(e) {
8764
8764
  j.set("selectedIndex", _t === -1 ? null : _t);
8765
8765
  return;
8766
8766
  }
8767
- const Fe = vr(Oe, S, b);
8767
+ const Fe = vr(Oe, w, b);
8768
8768
  j.set("selectedIndex", Fe === -1 ? null : Fe);
8769
- }, [v, B, S, ce, b, j]), wg(S, () => {
8770
- _(D), T(S !== F.initialValue), N() ? R.commit(S) : R.commit(S, !0);
8769
+ }, [v, B, w, ce, b, j]), Sg(w, () => {
8770
+ _(D), T(w !== F.initialValue), N() ? R.commit(w) : R.commit(w, !0);
8771
8771
  });
8772
8772
  const J = Q((ye, Oe) => {
8773
8773
  if (c?.(ye, Oe), !Oe.isCanceled && (U(ye), !ye && j.state.activeIndex !== null)) {
@@ -8797,19 +8797,19 @@ function Sg(e) {
8797
8797
  return;
8798
8798
  const Oe = ye.scrollTop, Fe = ye.scrollTop + ye.clientHeight, je = Oe > 1, Xe = Fe < ye.scrollHeight - 1;
8799
8799
  j.state.scrollUpArrowVisible !== je && j.set("scrollUpArrowVisible", je), j.state.scrollDownArrowVisible !== Xe && j.set("scrollDownArrowVisible", Xe);
8800
- }), Se = Fc({
8800
+ }), we = Fc({
8801
8801
  open: B,
8802
8802
  onOpenChange: J,
8803
8803
  elements: {
8804
8804
  reference: oe,
8805
8805
  floating: V
8806
8806
  }
8807
- }), xe = Yr(Se, {
8807
+ }), xe = Yr(we, {
8808
8808
  enabled: !f && !O,
8809
8809
  event: "mousedown"
8810
- }), He = Zr(Se, {
8810
+ }), He = Zr(we, {
8811
8811
  bubbles: !1
8812
- }), ct = kp(Se, {
8812
+ }), ct = Lp(we, {
8813
8813
  enabled: !f && !O,
8814
8814
  listRef: Z,
8815
8815
  activeIndex: de,
@@ -8821,7 +8821,7 @@ function Sg(e) {
8821
8821
  // Implement our own listeners since `onPointerLeave` on each option fires while scrolling with
8822
8822
  // the `alignItemWithTrigger=true`, causing a performance issue on Chrome.
8823
8823
  focusItemOnHover: !1
8824
- }), Te = Vp(Se, {
8824
+ }), Te = Vp(we, {
8825
8825
  enabled: !f && !O && (B || !v),
8826
8826
  listRef: Y,
8827
8827
  activeIndex: de,
@@ -8847,18 +8847,18 @@ function Sg(e) {
8847
8847
  id: C,
8848
8848
  modal: p,
8849
8849
  multiple: v,
8850
- value: S,
8850
+ value: w,
8851
8851
  open: B,
8852
- mounted: we,
8852
+ mounted: Se,
8853
8853
  transitionStatus: K,
8854
8854
  popupProps: Ye(),
8855
8855
  triggerProps: tt(),
8856
8856
  items: E,
8857
8857
  itemToStringLabel: y,
8858
- itemToStringValue: w,
8858
+ itemToStringValue: S,
8859
8859
  isItemEqualToValue: b
8860
8860
  });
8861
- }, [j, C, p, v, S, B, we, K, Ye, tt, E, y, w, b]);
8861
+ }, [j, C, p, v, w, B, Se, K, Ye, tt, E, y, S, b]);
8862
8862
  const _e = a.useMemo(() => ({
8863
8863
  store: j,
8864
8864
  name: D,
@@ -8867,7 +8867,7 @@ function Sg(e) {
8867
8867
  readOnly: f,
8868
8868
  multiple: v,
8869
8869
  itemToStringLabel: y,
8870
- itemToStringValue: w,
8870
+ itemToStringValue: S,
8871
8871
  setValue: ue,
8872
8872
  setOpen: J,
8873
8873
  listRef: Z,
@@ -8876,7 +8876,7 @@ function Sg(e) {
8876
8876
  handleScrollArrowVisibility: Re,
8877
8877
  scrollArrowsMountedCountRef: z,
8878
8878
  getItemProps: at,
8879
- events: Se.context.events,
8879
+ events: we.context.events,
8880
8880
  valueRef: $,
8881
8881
  valuesRef: ce,
8882
8882
  labelsRef: Y,
@@ -8888,18 +8888,18 @@ function Sg(e) {
8888
8888
  keyboardActiveRef: be,
8889
8889
  alignItemWithTriggerActiveRef: ne,
8890
8890
  initialValueRef: q
8891
- }), [j, D, d, O, f, v, y, w, ue, J, at, Se.context.events, R, h, Re]), Ne = It(g, R.inputRef), ze = v && Array.isArray(S) && S.length > 0, ke = a.useMemo(() => !v || !Array.isArray(S) || !D ? null : S.map((ye) => {
8892
- const Oe = no(ye, w);
8891
+ }), [j, D, d, O, f, v, y, S, ue, J, at, we.context.events, R, h, Re]), Ne = It(g, R.inputRef), ze = v && Array.isArray(w) && w.length > 0, Le = a.useMemo(() => !v || !Array.isArray(w) || !D ? null : w.map((ye) => {
8892
+ const Oe = no(ye, S);
8893
8893
  return /* @__PURE__ */ I("input", {
8894
8894
  type: "hidden",
8895
8895
  name: D,
8896
8896
  value: Oe
8897
8897
  }, Oe);
8898
- }), [v, S, D, w]);
8898
+ }), [v, w, D, S]);
8899
8899
  return /* @__PURE__ */ I(cs.Provider, {
8900
8900
  value: _e,
8901
8901
  children: /* @__PURE__ */ Be(as.Provider, {
8902
- value: Se,
8902
+ value: we,
8903
8903
  children: [x, /* @__PURE__ */ I("input", {
8904
8904
  ...R.getInputValidationProps({
8905
8905
  onFocus() {
@@ -8913,7 +8913,7 @@ function Sg(e) {
8913
8913
  function je() {
8914
8914
  if (v)
8915
8915
  return;
8916
- const Xe = ce.current.find((_t) => no(_t, w).toLowerCase() === Oe.toLowerCase());
8916
+ const Xe = ce.current.find((_t) => no(_t, S).toLowerCase() === Oe.toLowerCase());
8917
8917
  Xe != null && (T(Xe !== F.initialValue), ue(Xe, Fe), N() && R.commit(Xe));
8918
8918
  }
8919
8919
  j.set("forceMount", !0), queueMicrotask(je);
@@ -8929,7 +8929,7 @@ function Sg(e) {
8929
8929
  style: Co,
8930
8930
  tabIndex: -1,
8931
8931
  "aria-hidden": !0
8932
- }), ke]
8932
+ }), Le]
8933
8933
  })
8934
8934
  });
8935
8935
  }
@@ -8965,7 +8965,7 @@ const Zn = 2, xg = {
8965
8965
  validationMode: f,
8966
8966
  state: d,
8967
8967
  disabled: p
8968
- } = Ln(), {
8968
+ } = kn(), {
8969
8969
  labelId: m
8970
8970
  } = Io(), {
8971
8971
  store: g,
@@ -8973,18 +8973,18 @@ const Zn = 2, xg = {
8973
8973
  selectionRef: E,
8974
8974
  validation: v,
8975
8975
  readOnly: y,
8976
- alignItemWithTriggerActiveRef: w,
8976
+ alignItemWithTriggerActiveRef: S,
8977
8977
  disabled: b,
8978
8978
  keyboardActiveRef: x
8979
- } = zt(), _ = p || b || s, T = ve(g, ge.open), N = ve(g, ge.value), F = ve(g, ge.triggerProps), L = ve(g, ge.positionerElement), k = ve(g, ge.listElement), P = ve(g, ge.serializedValue), R = Ve(L), A = a.useRef(null), C = Ze(), O = Ze(), {
8979
+ } = zt(), _ = p || b || s, T = ve(g, ge.open), N = ve(g, ge.value), F = ve(g, ge.triggerProps), k = ve(g, ge.positionerElement), L = ve(g, ge.listElement), P = ve(g, ge.serializedValue), R = Ve(k), A = a.useRef(null), C = Ze(), O = Ze(), {
8980
8980
  getButtonProps: D,
8981
- buttonRef: S
8981
+ buttonRef: w
8982
8982
  } = Ct({
8983
8983
  disabled: _,
8984
8984
  native: i
8985
8985
  }), M = Q((z) => {
8986
8986
  g.set("triggerElement", z);
8987
- }), B = It(n, A, S, M), U = Ze(), Z = Ze();
8987
+ }), B = It(n, A, w, M), U = Ze(), Z = Ze();
8988
8988
  a.useEffect(() => {
8989
8989
  if (T)
8990
8990
  return Z.start(200, () => {
@@ -8999,7 +8999,7 @@ const Zn = 2, xg = {
8999
8999
  allowUnselectedMouseUp: !1
9000
9000
  }, O.clear();
9001
9001
  }, [T, E, O, U, Z]);
9002
- const Y = a.useMemo(() => k?.id ?? An(L)?.id, [k, L]), te = _r(F, {
9002
+ const Y = a.useMemo(() => L?.id ?? An(k)?.id, [L, k]), te = _r(F, {
9003
9003
  role: "combobox",
9004
9004
  "aria-expanded": T ? "true" : "false",
9005
9005
  "aria-haspopup": "listbox",
@@ -9009,7 +9009,7 @@ const Zn = 2, xg = {
9009
9009
  tabIndex: _ ? -1 : 0,
9010
9010
  ref: B,
9011
9011
  onFocus(z) {
9012
- l(!0), T && w.current && h(!1, me(Kt, z.nativeEvent)), C.start(0, () => {
9012
+ l(!0), T && S.current && h(!1, me(Kt, z.nativeEvent)), C.start(0, () => {
9013
9013
  g.set("forceMount", !0);
9014
9014
  });
9015
9015
  },
@@ -9164,19 +9164,19 @@ const Tg = {
9164
9164
  collisionAvoidance: v = zl,
9165
9165
  ...y
9166
9166
  } = t, {
9167
- store: w,
9167
+ store: S,
9168
9168
  listRef: b,
9169
9169
  labelsRef: x,
9170
9170
  alignItemWithTriggerActiveRef: _,
9171
9171
  selectedItemTextRef: T,
9172
9172
  valuesRef: N,
9173
9173
  initialValueRef: F,
9174
- popupRef: L,
9175
- setValue: k
9176
- } = zt(), P = xa(), R = ve(w, ge.open), A = ve(w, ge.mounted), C = ve(w, ge.modal), O = ve(w, ge.value), D = ve(w, ge.touchModality), S = ve(w, ge.positionerElement), M = ve(w, ge.triggerElement), B = ve(w, ge.isItemEqualToValue), U = a.useRef(null), Z = a.useRef(null), [Y, te] = a.useState(E), G = A && Y && !D;
9174
+ popupRef: k,
9175
+ setValue: L
9176
+ } = zt(), P = xa(), R = ve(S, ge.open), A = ve(S, ge.mounted), C = ve(S, ge.modal), O = ve(S, ge.value), D = ve(S, ge.touchModality), w = ve(S, ge.positionerElement), M = ve(S, ge.triggerElement), B = ve(S, ge.isItemEqualToValue), U = a.useRef(null), Z = a.useRef(null), [Y, te] = a.useState(E), G = A && Y && !D;
9177
9177
  !A && Y !== E && te(E), X(() => {
9178
- A || (ge.scrollUpArrowVisible(w.state) && w.set("scrollUpArrowVisible", !1), ge.scrollDownArrowVisible(w.state) && w.set("scrollDownArrowVisible", !1));
9179
- }, [w, A]), a.useImperativeHandle(_, () => G), ts((G || C) && R && !D, M);
9178
+ A || (ge.scrollUpArrowVisible(S.state) && S.set("scrollUpArrowVisible", !1), ge.scrollDownArrowVisible(S.state) && S.set("scrollDownArrowVisible", !1));
9179
+ }, [S, A]), a.useImperativeHandle(_, () => G), ts((G || C) && R && !D, M);
9180
9180
  const z = ma({
9181
9181
  anchor: o,
9182
9182
  floatingRootContext: P,
@@ -9209,36 +9209,36 @@ const Tg = {
9209
9209
  align: z.align,
9210
9210
  anchorHidden: z.anchorHidden
9211
9211
  }), [R, $, z.align, z.anchorHidden]), H = Q((K) => {
9212
- w.set("positionerElement", K);
9212
+ S.set("positionerElement", K);
9213
9213
  }), se = he("div", t, {
9214
9214
  ref: [n, H],
9215
9215
  state: be,
9216
9216
  stateAttributesMapping: Bt,
9217
9217
  props: [fe, y]
9218
- }), ne = a.useRef(0), we = Q((K) => {
9218
+ }), ne = a.useRef(0), Se = Q((K) => {
9219
9219
  if (K.size === 0 && ne.current === 0 || N.current.length === 0)
9220
9220
  return;
9221
9221
  const j = ne.current;
9222
9222
  if (ne.current = K.size, K.size === j)
9223
9223
  return;
9224
9224
  const de = me(pn);
9225
- if (j !== 0 && !w.state.multiple && O !== null && vr(N.current, O, B) === -1) {
9225
+ if (j !== 0 && !S.state.multiple && O !== null && vr(N.current, O, B) === -1) {
9226
9226
  const oe = F.current, ie = oe != null && Jo(N.current, oe, B) ? oe : null;
9227
- k(ie, de), ie === null && (w.set("selectedIndex", null), T.current = null);
9227
+ L(ie, de), ie === null && (S.set("selectedIndex", null), T.current = null);
9228
9228
  }
9229
- if (j !== 0 && w.state.multiple && Array.isArray(O)) {
9229
+ if (j !== 0 && S.state.multiple && Array.isArray(O)) {
9230
9230
  const ae = O.filter((oe) => Jo(N.current, oe, B));
9231
- (ae.length !== O.length || ae.some((oe) => !Jo(O, oe, B))) && (k(ae, de), ae.length === 0 && (w.set("selectedIndex", null), T.current = null));
9231
+ (ae.length !== O.length || ae.some((oe) => !Jo(O, oe, B))) && (L(ae, de), ae.length === 0 && (S.set("selectedIndex", null), T.current = null));
9232
9232
  }
9233
9233
  if (R && G) {
9234
- w.update({
9234
+ S.update({
9235
9235
  scrollUpArrowVisible: !1,
9236
9236
  scrollDownArrowVisible: !1
9237
9237
  });
9238
9238
  const ae = {
9239
9239
  height: ""
9240
9240
  };
9241
- fo(S, ae), fo(L.current, ae);
9241
+ fo(w, ae), fo(k.current, ae);
9242
9242
  }
9243
9243
  }), W = a.useMemo(() => ({
9244
9244
  ...z,
@@ -9251,7 +9251,7 @@ const Tg = {
9251
9251
  return /* @__PURE__ */ I(bi, {
9252
9252
  elementsRef: b,
9253
9253
  labelsRef: x,
9254
- onMapChange: we,
9254
+ onMapChange: Se,
9255
9255
  children: /* @__PURE__ */ Be(ls.Provider, {
9256
9256
  value: W,
9257
9257
  children: [A && C && /* @__PURE__ */ I(Ao, {
@@ -9275,7 +9275,7 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9275
9275
  })
9276
9276
  }, Pg = {
9277
9277
  ...Bt,
9278
- ...Lt
9278
+ ...kt
9279
9279
  }, Ia = /* @__PURE__ */ a.forwardRef(function(t, n) {
9280
9280
  const {
9281
9281
  render: o,
@@ -9296,17 +9296,17 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9296
9296
  side: E,
9297
9297
  align: v,
9298
9298
  alignItemWithTriggerActive: y,
9299
- setControlledAlignItemWithTrigger: w,
9299
+ setControlledAlignItemWithTrigger: S,
9300
9300
  scrollDownArrowRef: b,
9301
9301
  scrollUpArrowRef: x
9302
- } = _g(), _ = ya() != null, T = xa(), N = Ze(), F = ve(i, ge.id), L = ve(i, ge.open), k = ve(i, ge.mounted), P = ve(i, ge.popupProps), R = ve(i, ge.transitionStatus), A = ve(i, ge.triggerElement), C = ve(i, ge.positionerElement), O = ve(i, ge.listElement), D = a.useRef(0), S = a.useRef(!1), M = a.useRef(0), B = a.useRef(!1), U = a.useRef({}), Z = mn(), Y = Q(($) => {
9302
+ } = _g(), _ = ya() != null, T = xa(), N = Ze(), F = ve(i, ge.id), k = ve(i, ge.open), L = ve(i, ge.mounted), P = ve(i, ge.popupProps), R = ve(i, ge.transitionStatus), A = ve(i, ge.triggerElement), C = ve(i, ge.positionerElement), O = ve(i, ge.listElement), D = a.useRef(0), w = a.useRef(!1), M = a.useRef(0), B = a.useRef(!1), U = a.useRef({}), Z = mn(), Y = Q(($) => {
9303
9303
  if (!C || !c.current || !B.current)
9304
9304
  return;
9305
- if (S.current || !y) {
9305
+ if (w.current || !y) {
9306
9306
  g();
9307
9307
  return;
9308
9308
  }
9309
- const ce = C.style.top === "0px", fe = C.style.bottom === "0px", be = C.getBoundingClientRect().height, H = Ge(C), se = getComputedStyle(C), ne = parseFloat(se.marginTop), we = parseFloat(se.marginBottom), W = H.documentElement.clientHeight - ne - we, K = $.scrollTop, j = $.scrollHeight, de = $.clientHeight, ae = j - de;
9309
+ const ce = C.style.top === "0px", fe = C.style.bottom === "0px", be = C.getBoundingClientRect().height, H = Ge(C), se = getComputedStyle(C), ne = parseFloat(se.marginTop), Se = parseFloat(se.marginBottom), W = H.documentElement.clientHeight - ne - Se, K = $.scrollTop, j = $.scrollHeight, de = $.clientHeight, ae = j - de;
9310
9310
  let oe = null, V = null, ie = !1;
9311
9311
  if (ce) {
9312
9312
  const ee = ae - K, q = be + ee, J = Math.min(q, W);
@@ -9315,21 +9315,21 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9315
9315
  const ee = K - 0, q = be + ee, J = Math.min(q, W), le = q - W;
9316
9316
  oe = J, J !== W ? V = 0 : (ie = !0, K < ae && (V = K - (ee - le)));
9317
9317
  }
9318
- oe != null && (C.style.height = `${oe}px`), V != null && ($.scrollTop = V), ie && (S.current = !0), g();
9318
+ oe != null && (C.style.height = `${oe}px`), V != null && ($.scrollTop = V), ie && (w.current = !0), g();
9319
9319
  });
9320
9320
  a.useImperativeHandle(h, () => Y, [Y]), Vt({
9321
- open: L,
9321
+ open: k,
9322
9322
  ref: c,
9323
9323
  onComplete() {
9324
- L && u?.(!0);
9324
+ k && u?.(!0);
9325
9325
  }
9326
9326
  });
9327
9327
  const te = a.useMemo(() => ({
9328
- open: L,
9328
+ open: k,
9329
9329
  transitionStatus: R,
9330
9330
  side: E,
9331
9331
  align: v
9332
- }), [L, R, E, v]);
9332
+ }), [k, R, E, v]);
9333
9333
  X(() => {
9334
9334
  !C || !c.current || Object.keys(U.current).length || (U.current = {
9335
9335
  top: C.style.top || "0",
@@ -9343,44 +9343,44 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9343
9343
  marginBottom: C.style.marginBottom
9344
9344
  });
9345
9345
  }, [c, C]), X(() => {
9346
- k || y || (B.current = !1, S.current = !1, D.current = 0, M.current = 0, fo(C, U.current));
9347
- }, [k, y, C, c]), X(() => {
9346
+ L || y || (B.current = !1, w.current = !1, D.current = 0, M.current = 0, fo(C, U.current));
9347
+ }, [L, y, C, c]), X(() => {
9348
9348
  const $ = c.current;
9349
- if (!(!k || !A || !C || !$)) {
9349
+ if (!(!L || !A || !C || !$)) {
9350
9350
  if (!y) {
9351
9351
  B.current = !0, Z.request(g);
9352
9352
  return;
9353
9353
  }
9354
9354
  queueMicrotask(() => {
9355
- const ce = getComputedStyle(C), fe = getComputedStyle($), be = Ge(A), H = De(C), se = A.getBoundingClientRect(), ne = C.getBoundingClientRect(), we = se.left, W = se.height, K = O || $, j = K.scrollHeight, de = parseFloat(fe.borderBottomWidth), ae = parseFloat(ce.marginTop) || 10, oe = parseFloat(ce.marginBottom) || 10, V = parseFloat(ce.minHeight) || 100, ie = 5, ee = 5, q = 20, J = be.documentElement.clientHeight - ae - oe, le = be.documentElement.clientWidth, ue = J - se.bottom + W, Re = d.current, Se = f.current;
9355
+ const ce = getComputedStyle(C), fe = getComputedStyle($), be = Ge(A), H = De(C), se = A.getBoundingClientRect(), ne = C.getBoundingClientRect(), Se = se.left, W = se.height, K = O || $, j = K.scrollHeight, de = parseFloat(fe.borderBottomWidth), ae = parseFloat(ce.marginTop) || 10, oe = parseFloat(ce.marginBottom) || 10, V = parseFloat(ce.minHeight) || 100, ie = 5, ee = 5, q = 20, J = be.documentElement.clientHeight - ae - oe, le = be.documentElement.clientWidth, ue = J - se.bottom + W, Re = d.current, we = f.current;
9356
9356
  let xe = 0, He = 0;
9357
- if (Re && Se) {
9358
- const Fe = Se.getBoundingClientRect(), je = Re.getBoundingClientRect(), Xe = Fe.left - we, _t = je.left - ne.left, $n = Fe.top - se.top + Fe.height / 2, Do = je.top - ne.top + je.height / 2;
9357
+ if (Re && we) {
9358
+ const Fe = we.getBoundingClientRect(), je = Re.getBoundingClientRect(), Xe = Fe.left - Se, _t = je.left - ne.left, $n = Fe.top - se.top + Fe.height / 2, Do = je.top - ne.top + je.height / 2;
9359
9359
  xe = Xe - _t, He = Do - $n;
9360
9360
  }
9361
9361
  const ct = ue + He + oe + de;
9362
9362
  let Te = Math.min(J, ct);
9363
- const tt = J - ae - oe, Ye = ct - Te, at = Math.max(ie, we + xe), _e = le - ee, Ne = Math.max(0, at + ne.width - _e);
9363
+ const tt = J - ae - oe, Ye = ct - Te, at = Math.max(ie, Se + xe), _e = le - ee, Ne = Math.max(0, at + ne.width - _e);
9364
9364
  C.style.left = `${at - Ne}px`, C.style.height = `${Te}px`, C.style.maxHeight = "auto", C.style.marginTop = `${ae}px`, C.style.marginBottom = `${oe}px`, $.style.height = "100%";
9365
- const ze = K.scrollHeight - K.clientHeight, ke = Ye >= ze;
9366
- ke && (Te = Math.min(J, ne.height) - (Ye - ze));
9365
+ const ze = K.scrollHeight - K.clientHeight, Le = Ye >= ze;
9366
+ Le && (Te = Math.min(J, ne.height) - (Ye - ze));
9367
9367
  const ye = se.top < q || se.bottom > J - q || Te < Math.min(j, V), Oe = (H.visualViewport?.scale ?? 1) !== 1 && Bi;
9368
9368
  if (ye || Oe) {
9369
- B.current = !0, fo(C, U.current), it.flushSync(() => w(!1));
9369
+ B.current = !0, fo(C, U.current), it.flushSync(() => S(!1));
9370
9370
  return;
9371
9371
  }
9372
- if (ke) {
9372
+ if (Le) {
9373
9373
  const Fe = Math.max(0, J - ct);
9374
9374
  C.style.top = ne.height >= tt ? "0" : `${Fe}px`, C.style.height = `${Te}px`, K.scrollTop = K.scrollHeight - K.clientHeight, D.current = Math.max(V, Te);
9375
9375
  } else
9376
9376
  C.style.bottom = "0", D.current = Math.max(V, Te), K.scrollTop = Ye;
9377
- D.current === J && (S.current = !0), g(), setTimeout(() => {
9377
+ D.current === J && (w.current = !0), g(), setTimeout(() => {
9378
9378
  B.current = !0;
9379
9379
  });
9380
9380
  });
9381
9381
  }
9382
- }, [i, k, C, A, f, d, c, g, y, w, Z, b, x, O]), a.useEffect(() => {
9383
- if (!y || !C || !k)
9382
+ }, [i, L, C, A, f, d, c, g, y, S, Z, b, x, O]), a.useEffect(() => {
9383
+ if (!y || !C || !L)
9384
9384
  return;
9385
9385
  const $ = De(C);
9386
9386
  function ce(fe) {
@@ -9389,7 +9389,7 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9389
9389
  return $.addEventListener("resize", ce), () => {
9390
9390
  $.removeEventListener("resize", ce);
9391
9391
  };
9392
- }, [l, y, C, k]);
9392
+ }, [l, y, C, L]);
9393
9393
  const G = {
9394
9394
  ...O ? {
9395
9395
  role: "presentation",
@@ -9435,7 +9435,7 @@ const Jn = "base-ui-disable-scrollbar", pi = {
9435
9435
  children: [pi.element, /* @__PURE__ */ I(Gr, {
9436
9436
  context: T,
9437
9437
  modal: !1,
9438
- disabled: !k,
9438
+ disabled: !L,
9439
9439
  restoreFocus: !0,
9440
9440
  children: z
9441
9441
  })]
@@ -9471,23 +9471,23 @@ const Ma = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9471
9471
  selectionRef: E,
9472
9472
  typingRef: v,
9473
9473
  valuesRef: y,
9474
- keyboardActiveRef: w,
9474
+ keyboardActiveRef: S,
9475
9475
  multiple: b
9476
- } = zt(), x = Ze(), _ = ve(p, ge.isActive, d.index), T = ve(p, ge.isSelected, d.index, s), N = ve(p, ge.isSelectedByFocus, d.index), F = ve(p, ge.isItemEqualToValue), L = d.index, k = L !== -1, P = a.useRef(null), R = Ve(L);
9476
+ } = zt(), x = Ze(), _ = ve(p, ge.isActive, d.index), T = ve(p, ge.isSelected, d.index, s), N = ve(p, ge.isSelectedByFocus, d.index), F = ve(p, ge.isItemEqualToValue), k = d.index, L = k !== -1, P = a.useRef(null), R = Ve(k);
9477
9477
  X(() => {
9478
- if (!k)
9478
+ if (!L)
9479
9479
  return;
9480
9480
  const G = y.current;
9481
- return G[L] = s, () => {
9482
- delete G[L];
9481
+ return G[k] = s, () => {
9482
+ delete G[k];
9483
9483
  };
9484
- }, [k, L, s, y]), X(() => {
9485
- if (!k)
9484
+ }, [L, k, s, y]), X(() => {
9485
+ if (!L)
9486
9486
  return;
9487
9487
  const G = p.state.value;
9488
9488
  let z = G;
9489
- b && Array.isArray(G) && G.length > 0 && (z = G[G.length - 1]), z !== void 0 && dn(z, s, F) && p.set("selectedIndex", L);
9490
- }, [k, L, b, F, p, s]);
9489
+ b && Array.isArray(G) && G.length > 0 && (z = G[G.length - 1]), z !== void 0 && dn(z, s, F) && p.set("selectedIndex", k);
9490
+ }, [L, k, b, F, p, s]);
9491
9491
  const A = a.useMemo(() => ({
9492
9492
  disabled: c,
9493
9493
  selected: T,
@@ -9497,7 +9497,7 @@ const Ma = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9497
9497
  selected: T
9498
9498
  });
9499
9499
  C.onFocus = void 0, C.id = void 0;
9500
- const O = a.useRef(null), D = a.useRef("mouse"), S = a.useRef(!1), {
9500
+ const O = a.useRef(null), D = a.useRef("mouse"), w = a.useRef(!1), {
9501
9501
  getButtonProps: M,
9502
9502
  buttonRef: B
9503
9503
  } = Ct({
@@ -9519,17 +9519,17 @@ const Ma = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9519
9519
  "aria-disabled": c || void 0,
9520
9520
  tabIndex: _ ? 0 : -1,
9521
9521
  onFocus() {
9522
- p.set("activeIndex", L);
9522
+ p.set("activeIndex", k);
9523
9523
  },
9524
9524
  onMouseEnter() {
9525
- !w.current && p.state.selectedIndex === null && p.set("activeIndex", L);
9525
+ !S.current && p.state.selectedIndex === null && p.set("activeIndex", k);
9526
9526
  },
9527
9527
  onMouseMove() {
9528
- p.set("activeIndex", L);
9528
+ p.set("activeIndex", k);
9529
9529
  },
9530
9530
  onMouseLeave(G) {
9531
- w.current || Aa(G) || x.start(0, () => {
9532
- p.state.activeIndex === L && p.set("activeIndex", null);
9531
+ S.current || Aa(G) || x.start(0, () => {
9532
+ p.state.activeIndex === k && p.set("activeIndex", null);
9533
9533
  });
9534
9534
  },
9535
9535
  onTouchStart() {
@@ -9539,22 +9539,22 @@ const Ma = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9539
9539
  };
9540
9540
  },
9541
9541
  onKeyDown(G) {
9542
- O.current = G.key, p.set("activeIndex", L);
9542
+ O.current = G.key, p.set("activeIndex", k);
9543
9543
  },
9544
9544
  onClick(G) {
9545
- S.current = !1, !(G.type === "keydown" && O.current === null) && (c || O.current === " " && v.current || D.current !== "touch" && !_ || (O.current = null, U(G.nativeEvent)));
9545
+ w.current = !1, !(G.type === "keydown" && O.current === null) && (c || O.current === " " && v.current || D.current !== "touch" && !_ || (O.current = null, U(G.nativeEvent)));
9546
9546
  },
9547
9547
  onPointerEnter(G) {
9548
9548
  D.current = G.pointerType;
9549
9549
  },
9550
9550
  onPointerDown(G) {
9551
- D.current = G.pointerType, S.current = !0;
9551
+ D.current = G.pointerType, w.current = !0;
9552
9552
  },
9553
9553
  onMouseUp(G) {
9554
9554
  if (c)
9555
9555
  return;
9556
- if (S.current) {
9557
- S.current = !1;
9556
+ if (w.current) {
9557
+ w.current = !1;
9558
9558
  return;
9559
9559
  }
9560
9560
  const z = !E.current.allowSelectedMouseUp && T, $ = !E.current.allowUnselectedMouseUp && !T;
@@ -9569,8 +9569,8 @@ const Ma = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9569
9569
  indexRef: R,
9570
9570
  textRef: f,
9571
9571
  selectedByFocus: N,
9572
- hasRegistered: k
9573
- }), [T, R, f, N, k]);
9572
+ hasRegistered: L
9573
+ }), [T, R, f, N, L]);
9574
9574
  return /* @__PURE__ */ I(us.Provider, {
9575
9575
  value: te,
9576
9576
  children: Y
@@ -9581,13 +9581,13 @@ const Da = /* @__PURE__ */ a.forwardRef(function(t, n) {
9581
9581
  const o = t.keepMounted ?? !1, {
9582
9582
  selected: r
9583
9583
  } = fs();
9584
- return o || r ? /* @__PURE__ */ I(La, {
9584
+ return o || r ? /* @__PURE__ */ I(ka, {
9585
9585
  ...t,
9586
9586
  ref: n
9587
9587
  }) : null;
9588
9588
  });
9589
9589
  process.env.NODE_ENV !== "production" && (Da.displayName = "SelectItemIndicator");
9590
- const La = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef((e, t) => {
9590
+ const ka = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef((e, t) => {
9591
9591
  const {
9592
9592
  render: n,
9593
9593
  className: o,
@@ -9608,7 +9608,7 @@ const La = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef((e, t) => {
9608
9608
  "aria-hidden": !0,
9609
9609
  children: "✔️"
9610
9610
  }, s],
9611
- stateAttributesMapping: Lt
9611
+ stateAttributesMapping: kt
9612
9612
  });
9613
9613
  return Vt({
9614
9614
  open: i,
@@ -9618,8 +9618,8 @@ const La = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef((e, t) => {
9618
9618
  }
9619
9619
  }), d;
9620
9620
  }));
9621
- process.env.NODE_ENV !== "production" && (La.displayName = "Inner");
9622
- const ka = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9621
+ process.env.NODE_ENV !== "production" && (ka.displayName = "Inner");
9622
+ const La = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9623
9623
  const {
9624
9624
  indexRef: o,
9625
9625
  textRef: r,
@@ -9642,7 +9642,7 @@ const ka = /* @__PURE__ */ a.memo(/* @__PURE__ */ a.forwardRef(function(t, n) {
9642
9642
  props: f
9643
9643
  });
9644
9644
  }));
9645
- process.env.NODE_ENV !== "production" && (ka.displayName = "SelectItemText");
9645
+ process.env.NODE_ENV !== "production" && (La.displayName = "SelectItemText");
9646
9646
  const ds = /* @__PURE__ */ a.createContext(void 0);
9647
9647
  process.env.NODE_ENV !== "production" && (ds.displayName = "SelectGroupContext");
9648
9648
  function Ng() {
@@ -9732,7 +9732,7 @@ var Dg = {
9732
9732
  strokeLinecap: "round",
9733
9733
  strokeLinejoin: "round"
9734
9734
  };
9735
- const Lg = Ae(
9735
+ const kg = Ae(
9736
9736
  ({
9737
9737
  color: e = "currentColor",
9738
9738
  size: t = 24,
@@ -9763,7 +9763,7 @@ const Lg = Ae(
9763
9763
  );
9764
9764
  const Ha = (e, t) => {
9765
9765
  const n = Ae(
9766
- ({ className: o, ...r }, s) => Pn(Lg, {
9766
+ ({ className: o, ...r }, s) => Pn(kg, {
9767
9767
  ref: s,
9768
9768
  iconNode: t,
9769
9769
  className: Ba(
@@ -9776,7 +9776,7 @@ const Ha = (e, t) => {
9776
9776
  );
9777
9777
  return n.displayName = mi(e), n;
9778
9778
  };
9779
- const kg = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Fg = Ha("check", kg);
9779
+ const Lg = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Fg = Ha("check", Lg);
9780
9780
  const Vg = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], $g = Ha("chevron-down", Vg);
9781
9781
  function za(e) {
9782
9782
  var t, n, o = "";
@@ -9802,7 +9802,7 @@ const Bg = "_trigger_krl6a_1", Hg = "_icon_krl6a_40", zg = "_popup_krl6a_48", Ug
9802
9802
  separator: Kg
9803
9803
  };
9804
9804
  function Gg(e) {
9805
- return /* @__PURE__ */ I(Sg, { ...e });
9805
+ return /* @__PURE__ */ I(wg, { ...e });
9806
9806
  }
9807
9807
  const Ua = a.forwardRef(({ className: e, children: t, placeholder: n, renderValue: o, ...r }, s) => {
9808
9808
  const i = (c, u) => !u.value || Array.isArray(u.value) && u.value.length === 0 ? /* @__PURE__ */ I("span", { ...c, children: n || "Select..." }) : Array.isArray(u.value) ? /* @__PURE__ */ I("span", { ...c, children: u.value.join(", ") }) : /* @__PURE__ */ I("span", { ...c, children: String(u.value) });
@@ -9852,7 +9852,7 @@ const qa = a.forwardRef(
9852
9852
  className: Jt(Mt.item, e),
9853
9853
  ...n,
9854
9854
  children: [
9855
- /* @__PURE__ */ I(ka, { children: t }),
9855
+ /* @__PURE__ */ I(La, { children: t }),
9856
9856
  /* @__PURE__ */ I(Da, { className: Mt.itemIndicator, children: /* @__PURE__ */ I(Fg, { size: 16 }) })
9857
9857
  ]
9858
9858
  }
@@ -9958,11 +9958,11 @@ const Za = function(t) {
9958
9958
  } = t, [i, c] = a.useState([]), [u, l] = a.useState(!1), [f, d] = a.useState(!1), [p, m] = a.useState(null);
9959
9959
  i.length === 0 && (u && l(!1), f && d(!1));
9960
9960
  const g = u || f, h = a.useRef(/* @__PURE__ */ new Map()), E = a.useRef(null), v = a.useRef(!0), y = a.useRef(!1);
9961
- function w(R) {
9961
+ function S(R) {
9962
9962
  const A = lt(Ge(E.current));
9963
9963
  if (!E.current || !Ee(E.current, A) || !fr(A))
9964
9964
  return;
9965
- const C = i.findIndex((S) => S.id === R);
9965
+ const C = i.findIndex((w) => w.id === R);
9966
9966
  let O = null, D = C + 1;
9967
9967
  for (; D < i.length; ) {
9968
9968
  if (i[D].transitionStatus !== "ending") {
@@ -10003,11 +10003,11 @@ const Za = function(t) {
10003
10003
  ...M,
10004
10004
  transitionStatus: "ending",
10005
10005
  height: 0
10006
- } : M), S = D.filter((M) => M.transitionStatus !== "ending");
10006
+ } : M), w = D.filter((M) => M.transitionStatus !== "ending");
10007
10007
  return D.map((M) => {
10008
10008
  if (M.transitionStatus === "ending")
10009
10009
  return M;
10010
- const B = S.indexOf(M) >= r;
10010
+ const B = w.indexOf(M) >= r;
10011
10011
  return {
10012
10012
  ...M,
10013
10013
  limited: B
@@ -10015,15 +10015,15 @@ const Za = function(t) {
10015
10015
  });
10016
10016
  });
10017
10017
  const A = h.current.get(R);
10018
- A && A.timeout && (A.timeout.clear(), h.current.delete(R)), i.find((O) => O.id === R)?.onClose?.(), w(R), i.length === 1 && (l(!1), d(!1));
10018
+ A && A.timeout && (A.timeout.clear(), h.current.delete(R)), i.find((O) => O.id === R)?.onClose?.(), S(R), i.length === 1 && (l(!1), d(!1));
10019
10019
  }), T = Q((R) => {
10020
10020
  c((C) => C.filter((O) => O.id !== R)), i.find((C) => C.id === R)?.onRemove?.();
10021
10021
  }), N = Q((R, A, C) => {
10022
- const O = Date.now(), D = v.current && !u && !f, S = D ? ht.create() : void 0;
10023
- S?.start(A, () => {
10022
+ const O = Date.now(), D = v.current && !u && !f, w = D ? ht.create() : void 0;
10023
+ w?.start(A, () => {
10024
10024
  h.current.delete(R), C();
10025
10025
  }), h.current.set(R, {
10026
- timeout: S,
10026
+ timeout: w,
10027
10027
  start: D ? O : 0,
10028
10028
  delay: A,
10029
10029
  remaining: A,
@@ -10036,10 +10036,10 @@ const Za = function(t) {
10036
10036
  transitionStatus: "starting"
10037
10037
  };
10038
10038
  c((D) => {
10039
- const S = [C, ...D], M = S.filter((B) => B.transitionStatus !== "ending");
10039
+ const w = [C, ...D], M = w.filter((B) => B.transitionStatus !== "ending");
10040
10040
  if (M.length > r) {
10041
10041
  const B = M.length - r, U = M.slice(-B);
10042
- return S.map((Z) => U.some((Y) => Y.id === Z.id) ? {
10042
+ return w.map((Z) => U.some((Y) => Y.id === Z.id) ? {
10043
10043
  ...Z,
10044
10044
  limited: !0
10045
10045
  } : {
@@ -10047,38 +10047,38 @@ const Za = function(t) {
10047
10047
  limited: !1
10048
10048
  });
10049
10049
  }
10050
- return S.map((B) => ({
10050
+ return w.map((B) => ({
10051
10051
  ...B,
10052
10052
  limited: !1
10053
10053
  }));
10054
10054
  });
10055
10055
  const O = C.timeout ?? o;
10056
10056
  return C.type !== "loading" && O > 0 && N(A, O, () => _(A)), (u || f || !v.current) && b(), A;
10057
- }), L = Q((R, A) => {
10057
+ }), k = Q((R, A) => {
10058
10058
  c((C) => C.map((O) => O.id === R ? {
10059
10059
  ...O,
10060
10060
  ...A
10061
10061
  } : O));
10062
- }), k = Q((R, A) => {
10062
+ }), L = Q((R, A) => {
10063
10063
  const C = Qo(A.loading), O = F({
10064
10064
  ...C,
10065
10065
  type: "loading"
10066
- }), D = R.then((S) => {
10067
- const M = Qo(A.success, S);
10068
- L(O, {
10066
+ }), D = R.then((w) => {
10067
+ const M = Qo(A.success, w);
10068
+ k(O, {
10069
10069
  ...M,
10070
10070
  type: "success"
10071
10071
  });
10072
10072
  const B = M.timeout ?? o;
10073
- return B > 0 && N(O, B, () => _(O)), (u || f || !v.current) && b(), S;
10074
- }).catch((S) => {
10075
- const M = Qo(A.error, S);
10076
- L(O, {
10073
+ return B > 0 && N(O, B, () => _(O)), (u || f || !v.current) && b(), w;
10074
+ }).catch((w) => {
10075
+ const M = Qo(A.error, w);
10076
+ k(O, {
10077
10077
  ...M,
10078
10078
  type: "error"
10079
10079
  });
10080
10080
  const B = M.timeout ?? o;
10081
- return B > 0 && N(O, B, () => _(O)), (u || f || !v.current) && b(), Promise.reject(S);
10081
+ return B > 0 && N(O, B, () => _(O)), (u || f || !v.current) && b(), Promise.reject(w);
10082
10082
  });
10083
10083
  return {}.hasOwnProperty.call(A, "setPromise") && A.setPromise(D), D;
10084
10084
  });
@@ -10088,9 +10088,9 @@ const Za = function(t) {
10088
10088
  options: O
10089
10089
  }) => {
10090
10090
  const D = O.id;
10091
- C === "promise" && O.promise ? k(O.promise, O) : C === "update" && D ? L(D, O) : C === "close" && D ? _(D) : F(O);
10091
+ C === "promise" && O.promise ? L(O.promise, O) : C === "update" && D ? k(D, O) : C === "close" && D ? _(D) : F(O);
10092
10092
  }) : void 0;
10093
- }, [F, L, N, o, s, k, _]);
10093
+ }, [F, k, N, o, s, L, _]);
10094
10094
  const P = a.useMemo(() => ({
10095
10095
  toasts: i,
10096
10096
  setToasts: c,
@@ -10102,8 +10102,8 @@ const Za = function(t) {
10102
10102
  add: F,
10103
10103
  close: _,
10104
10104
  remove: T,
10105
- update: L,
10106
- promise: k,
10105
+ update: k,
10106
+ promise: L,
10107
10107
  pauseTimers: b,
10108
10108
  resumeTimers: x,
10109
10109
  prevFocusElement: p,
@@ -10111,7 +10111,7 @@ const Za = function(t) {
10111
10111
  viewportRef: E,
10112
10112
  scheduleTimer: N,
10113
10113
  windowFocusedRef: v
10114
- }), [F, _, f, u, g, b, p, k, T, x, N, i, L]);
10114
+ }), [F, _, f, u, g, b, p, L, T, x, N, i, k]);
10115
10115
  return /* @__PURE__ */ I(Mo.Provider, {
10116
10116
  value: P,
10117
10117
  children: n
@@ -10141,36 +10141,36 @@ const Qa = /* @__PURE__ */ a.forwardRef(function(t, n) {
10141
10141
  setPrevFocusElement: h,
10142
10142
  expanded: E,
10143
10143
  focused: v
10144
- } = ps(), y = a.useRef(!1), w = a.useRef(!1), b = c.length, x = c[0]?.height ?? 0, _ = a.useMemo(() => c.some((S) => S.transitionStatus === "ending"), [c]);
10144
+ } = ps(), y = a.useRef(!1), S = a.useRef(!1), b = c.length, x = c[0]?.height ?? 0, _ = a.useMemo(() => c.some((w) => w.transitionStatus === "ending"), [c]);
10145
10145
  a.useEffect(() => {
10146
10146
  if (!p.current)
10147
10147
  return;
10148
- function S(B) {
10148
+ function w(B) {
10149
10149
  b !== 0 && B.key === "F6" && B.target !== p.current && (B.preventDefault(), h(lt(Ge(p.current))), p.current?.focus({
10150
10150
  preventScroll: !0
10151
10151
  }), u(), d(!0));
10152
10152
  }
10153
10153
  const M = De(p.current);
10154
- return M.addEventListener("keydown", S), () => {
10155
- M.removeEventListener("keydown", S);
10154
+ return M.addEventListener("keydown", w), () => {
10155
+ M.removeEventListener("keydown", w);
10156
10156
  };
10157
10157
  }, [u, d, h, b, p]), a.useEffect(() => {
10158
10158
  if (!p.current || !b)
10159
10159
  return;
10160
- const S = De(p.current);
10160
+ const w = De(p.current);
10161
10161
  function M(U) {
10162
- U.target === S && (m.current = !1, u());
10162
+ U.target === w && (m.current = !1, u());
10163
10163
  }
10164
10164
  function B(U) {
10165
- if (U.relatedTarget || U.target === S)
10165
+ if (U.relatedTarget || U.target === w)
10166
10166
  return;
10167
10167
  const Z = Ke(U), Y = lt(Ge(p.current));
10168
10168
  (!Ee(p.current, Z) || !fr(Y)) && l(), setTimeout(() => {
10169
10169
  m.current = !0;
10170
10170
  });
10171
10171
  }
10172
- return S.addEventListener("blur", M, !0), S.addEventListener("focus", B, !0), () => {
10173
- S.removeEventListener("blur", M, !0), S.removeEventListener("focus", B, !0);
10172
+ return w.addEventListener("blur", M, !0), w.addEventListener("focus", B, !0), () => {
10173
+ w.removeEventListener("blur", M, !0), w.removeEventListener("focus", B, !0);
10174
10174
  };
10175
10175
  }, [
10176
10176
  u,
@@ -10184,48 +10184,48 @@ const Qa = /* @__PURE__ */ a.forwardRef(function(t, n) {
10184
10184
  // are added when toasts have been created, once the ref is available.
10185
10185
  b
10186
10186
  ]), a.useEffect(() => {
10187
- const S = p.current;
10188
- if (!S || b === 0)
10187
+ const w = p.current;
10188
+ if (!w || b === 0)
10189
10189
  return;
10190
- const M = Ge(S);
10190
+ const M = Ge(w);
10191
10191
  function B(U) {
10192
10192
  if (U.pointerType !== "touch")
10193
10193
  return;
10194
10194
  const Z = Ke(U);
10195
- Ee(S, Z) || (l(), f(!1), d(!1));
10195
+ Ee(w, Z) || (l(), f(!1), d(!1));
10196
10196
  }
10197
10197
  return M.addEventListener("pointerdown", B, !0), () => {
10198
10198
  M.removeEventListener("pointerdown", B, !0);
10199
10199
  };
10200
10200
  }, [b, l, d, f, p]);
10201
- function T(S) {
10202
- p.current && (y.current = !0, S.relatedTarget === p.current ? c[0]?.ref?.current?.focus() : g?.focus({
10201
+ function T(w) {
10202
+ p.current && (y.current = !0, w.relatedTarget === p.current ? c[0]?.ref?.current?.focus() : g?.focus({
10203
10203
  preventScroll: !0
10204
10204
  }));
10205
10205
  }
10206
- function N(S) {
10207
- S.key === "Tab" && S.shiftKey && S.target === p.current && (S.preventDefault(), g?.focus({
10206
+ function N(w) {
10207
+ w.key === "Tab" && w.shiftKey && w.target === p.current && (w.preventDefault(), g?.focus({
10208
10208
  preventScroll: !0
10209
10209
  }), l());
10210
10210
  }
10211
10211
  a.useEffect(() => {
10212
- !m.current || _ || !w.current || (l(), f(!1), w.current = !1);
10212
+ !m.current || _ || !S.current || (l(), f(!1), S.current = !1);
10213
10213
  }, [_, l, f, m]);
10214
10214
  function F() {
10215
- u(), f(!0), w.current = !1;
10216
- }
10217
- function L() {
10218
- c.some((S) => S.transitionStatus === "ending") ? w.current = !0 : (l(), f(!1));
10215
+ u(), f(!0), S.current = !1;
10219
10216
  }
10220
10217
  function k() {
10218
+ c.some((w) => w.transitionStatus === "ending") ? S.current = !0 : (l(), f(!1));
10219
+ }
10220
+ function L() {
10221
10221
  if (y.current) {
10222
10222
  y.current = !1;
10223
10223
  return;
10224
10224
  }
10225
10225
  v || fr(Ge(p.current).activeElement) && (d(!0), u());
10226
10226
  }
10227
- function P(S) {
10228
- !v || Ee(p.current, S.relatedTarget) || (d(!1), l());
10227
+ function P(w) {
10228
+ !v || Ee(p.current, w.relatedTarget) || (d(!1), l());
10229
10229
  }
10230
10230
  const R = {
10231
10231
  tabIndex: -1,
@@ -10236,11 +10236,11 @@ const Qa = /* @__PURE__ */ a.forwardRef(function(t, n) {
10236
10236
  "aria-label": "Notifications",
10237
10237
  onMouseEnter: F,
10238
10238
  onMouseMove: F,
10239
- onMouseLeave: L,
10240
- onFocus: k,
10239
+ onMouseLeave: k,
10240
+ onFocus: L,
10241
10241
  onBlur: P,
10242
10242
  onKeyDown: N,
10243
- onClick: k
10243
+ onClick: L
10244
10244
  }, A = a.useMemo(() => ({
10245
10245
  expanded: E
10246
10246
  }), [E]), C = he("div", t, {
@@ -10261,22 +10261,22 @@ const Qa = /* @__PURE__ */ a.forwardRef(function(t, n) {
10261
10261
  }]
10262
10262
  }), O = a.useMemo(() => ({
10263
10263
  viewportRef: p
10264
- }), [p]), D = a.useMemo(() => c.filter((S) => S.priority === "high"), [c]);
10264
+ }), [p]), D = a.useMemo(() => c.filter((w) => w.priority === "high"), [c]);
10265
10265
  return /* @__PURE__ */ Be(Ja.Provider, {
10266
10266
  value: O,
10267
10267
  children: [b > 0 && g && /* @__PURE__ */ I(gt, {
10268
10268
  onFocus: T
10269
10269
  }), C, !v && D.length > 0 && /* @__PURE__ */ I("div", {
10270
10270
  style: Co,
10271
- children: D.map((S) => /* @__PURE__ */ Be("div", {
10271
+ children: D.map((w) => /* @__PURE__ */ Be("div", {
10272
10272
  role: "alert",
10273
10273
  "aria-atomic": !0,
10274
10274
  children: [/* @__PURE__ */ I("div", {
10275
- children: S.title
10275
+ children: w.title
10276
10276
  }), /* @__PURE__ */ I("div", {
10277
- children: S.description
10277
+ children: w.description
10278
10278
  })]
10279
- }, S.id))
10279
+ }, w.id))
10280
10280
  })]
10281
10281
  });
10282
10282
  });
@@ -10293,13 +10293,13 @@ let Ut = /* @__PURE__ */ (function(e) {
10293
10293
  return e.index = "--toast-index", e.offsetY = "--toast-offset-y", e.height = "--toast-height", e.swipeMovementX = "--toast-swipe-movement-x", e.swipeMovementY = "--toast-swipe-movement-y", e;
10294
10294
  })({});
10295
10295
  const sh = {
10296
- ...Lt,
10296
+ ...kt,
10297
10297
  swipeDirection(e) {
10298
10298
  return e ? {
10299
10299
  "data-swipe-direction": e
10300
10300
  } : null;
10301
10301
  }
10302
- }, Sn = 40, ih = 10, Tt = 0.5, ch = 1;
10302
+ }, wn = 40, ih = 10, Tt = 0.5, ch = 1;
10303
10303
  function hi(e, t, n) {
10304
10304
  switch (e) {
10305
10305
  case "up":
@@ -10349,14 +10349,14 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10349
10349
  pauseTimers: E,
10350
10350
  expanded: v,
10351
10351
  setHovering: y
10352
- } = ps(), [w, b] = a.useState(void 0), [x, _] = a.useState(!1), [T, N] = a.useState(!1), [F, L] = a.useState(!1), [k, P] = a.useState({
10352
+ } = ps(), [S, b] = a.useState(void 0), [x, _] = a.useState(!1), [T, N] = a.useState(!1), [F, k] = a.useState(!1), [L, P] = a.useState({
10353
10353
  x: 0,
10354
10354
  y: 0
10355
10355
  }), [R, A] = a.useState({
10356
10356
  x: 0,
10357
10357
  y: 0,
10358
10358
  scale: 1
10359
- }), [C, O] = a.useState(), [D, S] = a.useState(), [M, B] = a.useState(null), U = a.useRef(null), Z = a.useRef({
10359
+ }), [C, O] = a.useState(), [D, w] = a.useState(), [M, B] = a.useState(null), U = a.useRef(null), Z = a.useRef({
10360
10360
  x: 0,
10361
10361
  y: 0
10362
10362
  }), Y = a.useRef({
@@ -10396,7 +10396,7 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10396
10396
  y: ue
10397
10397
  };
10398
10398
  }
10399
- function we(q) {
10399
+ function Se(q) {
10400
10400
  if (q.button !== 0)
10401
10401
  return;
10402
10402
  q.pointerType === "touch" && E();
@@ -10435,22 +10435,22 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10435
10435
  x: le,
10436
10436
  y: $.current.y
10437
10437
  });
10438
- const Se = le - Z.current.x, xe = J - Z.current.y, He = J - $.current.y, ct = le - $.current.x;
10439
- if (!T && Math.sqrt(Se * Se + xe * xe) >= ch && (N(!0), M === null)) {
10438
+ const we = le - Z.current.x, xe = J - Z.current.y, He = J - $.current.y, ct = le - $.current.x;
10439
+ if (!T && Math.sqrt(we * we + xe * xe) >= ch && (N(!0), M === null)) {
10440
10440
  const Ne = l.includes("left") || l.includes("right"), ze = l.includes("up") || l.includes("down");
10441
10441
  if (Ne && ze) {
10442
- const ke = Math.abs(Se), ye = Math.abs(xe);
10443
- B(ke > ye ? "horizontal" : "vertical");
10442
+ const Le = Math.abs(we), ye = Math.abs(xe);
10443
+ B(Le > ye ? "horizontal" : "vertical");
10444
10444
  }
10445
10445
  }
10446
10446
  let Te;
10447
10447
  if (!te.current)
10448
- M === "vertical" ? xe > 0 ? Te = "down" : xe < 0 && (Te = "up") : M === "horizontal" ? Se > 0 ? Te = "right" : Se < 0 && (Te = "left") : Math.abs(Se) >= Math.abs(xe) ? Te = Se > 0 ? "right" : "left" : Te = xe > 0 ? "down" : "up", Te && l.includes(Te) && (te.current = Te, G.current = hi(Te, Se, xe), b(Te));
10448
+ M === "vertical" ? xe > 0 ? Te = "down" : xe < 0 && (Te = "up") : M === "horizontal" ? we > 0 ? Te = "right" : we < 0 && (Te = "left") : Math.abs(we) >= Math.abs(xe) ? Te = we > 0 ? "right" : "left" : Te = xe > 0 ? "down" : "up", Te && l.includes(Te) && (te.current = Te, G.current = hi(Te, we, xe), b(Te));
10449
10449
  else {
10450
10450
  const _e = te.current, Ne = hi(_e, ct, He);
10451
- Ne > Sn ? (z.current = !1, b(_e)) : G.current - Ne >= ih && (z.current = !0);
10451
+ Ne > wn ? (z.current = !1, b(_e)) : G.current - Ne >= ih && (z.current = !0);
10452
10452
  }
10453
- const tt = ne(Se, xe);
10453
+ const tt = ne(we, xe);
10454
10454
  let Ye = Y.current.x, at = Y.current.y;
10455
10455
  M === "horizontal" ? (l.includes("left") || l.includes("right")) && (Ye += tt.x) : (M === "vertical" || (l.includes("left") || l.includes("right")) && (Ye += tt.x), (l.includes("up") || l.includes("down")) && (at += tt.y)), P({
10456
10456
  x: Ye,
@@ -10468,27 +10468,27 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10468
10468
  return;
10469
10469
  }
10470
10470
  let J = !1;
10471
- const le = k.x - R.x, ue = k.y - R.y;
10471
+ const le = L.x - R.x, ue = L.y - R.y;
10472
10472
  let Re;
10473
- for (const Se of l) {
10474
- switch (Se) {
10473
+ for (const we of l) {
10474
+ switch (we) {
10475
10475
  case "right":
10476
- le > Sn && (J = !0, Re = "right");
10476
+ le > wn && (J = !0, Re = "right");
10477
10477
  break;
10478
10478
  case "left":
10479
- le < -Sn && (J = !0, Re = "left");
10479
+ le < -wn && (J = !0, Re = "left");
10480
10480
  break;
10481
10481
  case "down":
10482
- ue > Sn && (J = !0, Re = "down");
10482
+ ue > wn && (J = !0, Re = "down");
10483
10483
  break;
10484
10484
  case "up":
10485
- ue < -Sn && (J = !0, Re = "up");
10485
+ ue < -wn && (J = !0, Re = "up");
10486
10486
  break;
10487
10487
  }
10488
10488
  if (J)
10489
10489
  break;
10490
10490
  }
10491
- J ? (b(Re), L(!0), m(o.id)) : (P({
10491
+ J ? (b(Re), k(!0), m(o.id)) : (P({
10492
10492
  x: R.x,
10493
10493
  y: R.y
10494
10494
  }), b(void 0));
@@ -10516,17 +10516,17 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10516
10516
  };
10517
10517
  }, [f]);
10518
10518
  function de() {
10519
- if (!x && k.x === R.x && k.y === R.y && !F)
10519
+ if (!x && L.x === R.x && L.y === R.y && !F)
10520
10520
  return {
10521
10521
  [Ut.swipeMovementX]: "0px",
10522
10522
  [Ut.swipeMovementY]: "0px"
10523
10523
  };
10524
- const q = k.x - R.x, J = k.y - R.y;
10524
+ const q = L.x - R.x, J = L.y - R.y;
10525
10525
  return {
10526
10526
  transition: x ? "none" : void 0,
10527
10527
  // While swiping, freeze the element at its current visual transform so it doesn't snap to the
10528
10528
  // end position.
10529
- transform: x ? `translateX(${k.x}px) translateY(${k.y}px) scale(${R.scale})` : void 0,
10529
+ transform: x ? `translateX(${L.x}px) translateY(${L.y}px) scale(${R.scale})` : void 0,
10530
10530
  [Ut.swipeMovementX]: `${q}px`,
10531
10531
  [Ut.swipeMovementY]: `${J}px`
10532
10532
  };
@@ -10538,7 +10538,7 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10538
10538
  "aria-labelledby": C,
10539
10539
  "aria-describedby": D,
10540
10540
  "aria-hidden": ae && !p ? !0 : void 0,
10541
- onPointerDown: f ? we : void 0,
10541
+ onPointerDown: f ? Se : void 0,
10542
10542
  onPointerMove: f ? W : void 0,
10543
10543
  onPointerUp: f ? K : void 0,
10544
10544
  onKeyDown: j,
@@ -10555,14 +10555,14 @@ const el = /* @__PURE__ */ a.forwardRef(function(t, n) {
10555
10555
  titleId: C,
10556
10556
  setTitleId: O,
10557
10557
  descriptionId: D,
10558
- setDescriptionId: S,
10558
+ setDescriptionId: w,
10559
10559
  swiping: x,
10560
- swipeDirection: w,
10560
+ swipeDirection: S,
10561
10561
  recalculateHeight: se,
10562
10562
  index: fe,
10563
10563
  visibleIndex: be,
10564
10564
  expanded: v
10565
- }), [o, C, D, x, w, se, fe, be, v]), ie = a.useMemo(() => ({
10565
+ }), [o, C, D, x, S, se, fe, be, v]), ie = a.useMemo(() => ({
10566
10566
  transitionStatus: o.transitionStatus,
10567
10567
  expanded: v,
10568
10568
  limited: o.limited || !1,
@@ -11002,14 +11002,14 @@ const bh = () => /* @__PURE__ */ I(
11002
11002
  Close: Es,
11003
11003
  useToastManager: cl,
11004
11004
  createToastManager: uh
11005
- }, Eh = "_root_19t9o_1", wh = {
11005
+ }, Eh = "_root_19t9o_1", Sh = {
11006
11006
  root: Eh
11007
11007
  };
11008
11008
  function Xy(e) {
11009
- return /* @__PURE__ */ I("div", { className: wh.root });
11009
+ return /* @__PURE__ */ I("div", { className: Sh.root });
11010
11010
  }
11011
- const Sh = "_root_u2979_1", Rh = {
11012
- root: Sh
11011
+ const wh = "_root_u2979_1", Rh = {
11012
+ root: wh
11013
11013
  };
11014
11014
  function Zy(e) {
11015
11015
  return /* @__PURE__ */ I("div", { className: Rh.root });
@@ -11026,7 +11026,7 @@ const _h = "_root_z5dqm_1", Th = {
11026
11026
  function Qy(e) {
11027
11027
  return /* @__PURE__ */ I("div", { className: Th.root });
11028
11028
  }
11029
- const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hwro4_38", Ah = "_layoutAsideHidden_hwro4_48", Ih = "_layoutAsideFullHeight_hwro4_58", Mh = "_header_hwro4_77", Dh = "_headerSticky_hwro4_93", Lh = "_headerFixed_hwro4_98", kh = "_headerRelative_hwro4_106", Fh = "_headerHideOnScroll_hwro4_110", Vh = "_headerElevated_hwro4_122", $h = "_headerTransparent_hwro4_127", Bh = "_headerWithFullHeightAside_hwro4_133", Hh = "_layoutAsideCollapsed_hwro4_141", zh = "_aside_hwro4_150", Uh = "_asideFullHeight_hwro4_169", Wh = "_asideContent_hwro4_203", jh = "_asideContentCollapsed_hwro4_235", qh = "_asideRelative_hwro4_240", Kh = "_asideFixed_hwro4_244", Gh = "_asideCollapsed_hwro4_276", Yh = "_asideOverlay_hwro4_327", Xh = "_asideOverlayClosing_hwro4_370", Zh = "_asideOverlayBackdrop_hwro4_401", Jh = "_asideOverlayBackdropClosing_hwro4_421", Qh = "_asideResizeHandle_hwro4_437", ey = "_asideResizing_hwro4_470", ty = "_main_hwro4_490", ny = "_mainPaddingNone_hwro4_522", oy = "_mainPaddingSm_hwro4_526", ry = "_mainPaddingMd_hwro4_530", sy = "_mainPaddingLg_hwro4_534", iy = "_mainPaddingXl_hwro4_538", cy = "_mainFullWidth_hwro4_543", ay = "_mainWithFullHeightAside_hwro4_548", ly = "_footer_hwro4_565", uy = "_footerRelative_hwro4_577", fy = "_footerSticky_hwro4_581", dy = "_footerFixed_hwro4_588", py = "_footerWithFullHeightAside_hwro4_598", pe = {
11029
+ const Oh = "_layout_8124k_4", Ph = "_layoutLeft_8124k_27", Nh = "_layoutRight_8124k_37", Ah = "_layoutAsideHidden_8124k_47", Ih = "_layoutAsideFullHeight_8124k_57", Mh = "_header_8124k_76", Dh = "_headerSticky_8124k_92", kh = "_headerFixed_8124k_97", Lh = "_headerRelative_8124k_105", Fh = "_headerHideOnScroll_8124k_109", Vh = "_headerElevated_8124k_121", $h = "_headerTransparent_8124k_126", Bh = "_headerWithFullHeightAside_8124k_132", Hh = "_layoutAsideCollapsed_8124k_140", zh = "_aside_8124k_149", Uh = "_asideFullHeight_8124k_168", Wh = "_asideContent_8124k_202", jh = "_asideContentCollapsed_8124k_234", qh = "_asideRelative_8124k_239", Kh = "_asideFixed_8124k_243", Gh = "_asideCollapsed_8124k_275", Yh = "_asideOverlay_8124k_326", Xh = "_asideOverlayClosing_8124k_369", Zh = "_asideOverlayBackdrop_8124k_400", Jh = "_asideOverlayBackdropClosing_8124k_420", Qh = "_asideResizeHandle_8124k_436", ey = "_asideResizing_8124k_469", ty = "_main_8124k_489", ny = "_mainPaddingNone_8124k_521", oy = "_mainPaddingSm_8124k_525", ry = "_mainPaddingMd_8124k_529", sy = "_mainPaddingLg_8124k_533", iy = "_mainPaddingXl_8124k_537", cy = "_mainFullWidth_8124k_542", ay = "_mainWithFullHeightAside_8124k_547", ly = "_footer_8124k_564", uy = "_footerRelative_8124k_576", fy = "_footerSticky_8124k_580", dy = "_footerFixed_8124k_587", py = "_footerWithFullHeightAside_8124k_597", pe = {
11030
11030
  layout: Oh,
11031
11031
  layoutLeft: Ph,
11032
11032
  layoutRight: Nh,
@@ -11034,8 +11034,8 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11034
11034
  layoutAsideFullHeight: Ih,
11035
11035
  header: Mh,
11036
11036
  headerSticky: Dh,
11037
- headerFixed: Lh,
11038
- headerRelative: kh,
11037
+ headerFixed: kh,
11038
+ headerRelative: Lh,
11039
11039
  headerHideOnScroll: Fh,
11040
11040
  headerElevated: Vh,
11041
11041
  headerTransparent: $h,
@@ -11141,7 +11141,7 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11141
11141
  transitionDuration: g = 300,
11142
11142
  fullHeight: h = !1
11143
11143
  }) => {
11144
- const { registerAside: E, asidePosition: v } = st.useContext(vn), [y, w] = dt(null), [b, x] = dt(!1), [_, T] = dt(!1), N = Er(null);
11144
+ const { registerAside: E, asidePosition: v } = st.useContext(vn), [y, S] = dt(null), [b, x] = dt(!1), [_, T] = dt(!1), N = Er(null);
11145
11145
  sn(() => {
11146
11146
  E(n, o, h);
11147
11147
  }, [n, o, h, E]);
@@ -11149,7 +11149,7 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11149
11149
  p && (T(!0), setTimeout(() => {
11150
11150
  T(!1), p();
11151
11151
  }, g));
11152
- }, [p, g]), L = oo(
11152
+ }, [p, g]), k = oo(
11153
11153
  (C) => {
11154
11154
  c && (C.preventDefault(), x(!0));
11155
11155
  },
@@ -11159,14 +11159,14 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11159
11159
  if (!b) return;
11160
11160
  const C = (D) => {
11161
11161
  if (!N.current) return;
11162
- const S = N.current.getBoundingClientRect();
11162
+ const w = N.current.getBoundingClientRect();
11163
11163
  let M;
11164
- v === "right" ? M = S.right - D.clientX : M = D.clientX - S.left;
11164
+ v === "right" ? M = w.right - D.clientX : M = D.clientX - w.left;
11165
11165
  const B = Math.min(
11166
11166
  Math.max(M, u),
11167
11167
  l
11168
11168
  );
11169
- w(B), f?.(B);
11169
+ S(B), f?.(B);
11170
11170
  }, O = () => {
11171
11171
  x(!1);
11172
11172
  };
@@ -11174,9 +11174,9 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11174
11174
  document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", O);
11175
11175
  };
11176
11176
  }, [b, u, l, f, v]), o) return null;
11177
- const k = r === "fixed" ? pe.asideFixed : pe.asideRelative, P = [
11177
+ const L = r === "fixed" ? pe.asideFixed : pe.asideRelative, P = [
11178
11178
  pe.aside,
11179
- k,
11179
+ L,
11180
11180
  n && pe.asideCollapsed,
11181
11181
  d && pe.asideOverlay,
11182
11182
  d && _ && pe.asideOverlayClosing,
@@ -11213,7 +11213,7 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11213
11213
  "div",
11214
11214
  {
11215
11215
  className: pe.asideResizeHandle,
11216
- onMouseDown: L,
11216
+ onMouseDown: k,
11217
11217
  role: "separator",
11218
11218
  "aria-orientation": "vertical",
11219
11219
  "aria-label": "Resize sidebar"
@@ -11279,8 +11279,8 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11279
11279
  asidePosition: n = "left"
11280
11280
  }) => {
11281
11281
  const [o, r] = dt(!1), [s, i] = dt(!1), [c, u] = dt(!1), [l, f] = dt("sticky"), d = Er(null), { scrollY: p } = my(d), m = oo(
11282
- (y, w, b) => {
11283
- i(y), r(w), u(b);
11282
+ (y, S, b) => {
11283
+ i(y), r(S), u(b);
11284
11284
  },
11285
11285
  []
11286
11286
  ), g = oo((y) => {
@@ -11288,7 +11288,7 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11288
11288
  }, []);
11289
11289
  sn(() => {
11290
11290
  st.Children.toArray(e).some(
11291
- (w) => st.isValidElement(w) && w.type === fl && !w.props.hidden
11291
+ (S) => st.isValidElement(S) && S.type === fl && !S.props.hidden
11292
11292
  ) || r(!0);
11293
11293
  }, [e]);
11294
11294
  const h = n === "right" ? pe.layoutRight : pe.layoutLeft, E = [
@@ -11318,11 +11318,11 @@ const Oh = "_layout_hwro4_4", Ph = "_layoutLeft_hwro4_28", Nh = "_layoutRight_hw
11318
11318
  Footer: yy
11319
11319
  });
11320
11320
  export {
11321
- wy as ALSAccordion,
11322
- Sy as ALSAlertDialog,
11321
+ Sy as ALSAccordion,
11322
+ wy as ALSAlertDialog,
11323
11323
  Ry as ALSAutocomplete,
11324
11324
  xy as ALSAvatar,
11325
- kf as ALSButton,
11325
+ Lf as ALSButton,
11326
11326
  Cy as ALSCheckbox,
11327
11327
  _y as ALSCheckboxGroup,
11328
11328
  Ty as ALSCollapsible,
@@ -11334,8 +11334,8 @@ export {
11334
11334
  My as ALSForm,
11335
11335
  Em as ALSInput,
11336
11336
  Dy as ALSMenu,
11337
- Ly as ALSMenubar,
11338
- ky as ALSMeter,
11337
+ ky as ALSMenubar,
11338
+ Ly as ALSMeter,
11339
11339
  Fy as ALSNavigationMenu,
11340
11340
  Vy as ALSNumberField,
11341
11341
  $y as ALSPopover,