@post-pioneer/ui-kit 0.1.56 → 0.1.57

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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as f, jsxs as A, Fragment as Ee } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import M, { forwardRef as P, useState as j, useRef as ce, useEffect as se, useLayoutEffect as To, useCallback as In, Children as ot, isValidElement as zt, createElement as D, cloneElement as zn, Fragment as Mo, useReducer as Io, createContext as vn, useMemo as Ot, useContext as zo } from "react";
3
+ import M, { forwardRef as P, useState as j, useRef as ce, useEffect as se, useLayoutEffect as To, useCallback as In, Children as ot, isValidElement as zt, createElement as D, cloneElement as zn, Fragment as Mo, useReducer as Io, createContext as wn, useMemo as Ot, useContext as zo } from "react";
4
4
  import * as Zt from "react-dom";
5
- import vs, { flushSync as Cs } from "react-dom";
5
+ import ws, { flushSync as Cs } from "react-dom";
6
6
  const bs = P(
7
7
  ({ width: e = "12", height: t = "14", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
8
8
  "svg",
@@ -62,7 +62,7 @@ const On = P(
62
62
  )
63
63
  );
64
64
  On.displayName = "ArrowChevronDownIcon";
65
- const xs = P(
65
+ const ys = P(
66
66
  ({ width: e = "6", height: t = "10", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
67
67
  "svg",
68
68
  {
@@ -84,8 +84,8 @@ const xs = P(
84
84
  }
85
85
  )
86
86
  );
87
- xs.displayName = "ArrowChevronLeftIcon";
88
- const ys = P(
87
+ ys.displayName = "ArrowChevronLeftIcon";
88
+ const xs = P(
89
89
  ({ width: e = "6", height: t = "10", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
90
90
  "svg",
91
91
  {
@@ -107,7 +107,7 @@ const ys = P(
107
107
  }
108
108
  )
109
109
  );
110
- ys.displayName = "ArrowChevronRightIcon";
110
+ xs.displayName = "ArrowChevronRightIcon";
111
111
  const Oo = P(
112
112
  ({ width: e = "12", height: t = "8", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
113
113
  "svg",
@@ -564,7 +564,7 @@ function I() {
564
564
  for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = Bo(e)) && (o && (o += " "), o += t);
565
565
  return o;
566
566
  }
567
- const Vs = "_accordion_1bao6_780", Hs = "_open_1bao6_789", Bs = "_disabled_1bao6_792", js = "_header_1bao6_798", Ws = "_headerLeft_1bao6_807", Fs = "_icon_1bao6_813", Us = "_title_1bao6_822", Zs = "_count_1bao6_830", Xs = "_headerRight_1bao6_846", Ys = "_chevronIconWrapper_1bao6_853", Gs = "_iconDown_1bao6_861", Ks = "_iconUp_1bao6_862", qs = "_iconVisible_1bao6_880", Qs = "_iconHidden_1bao6_885", Js = "_dividerContainer_1bao6_891", ea = "_divider_1bao6_891", ta = "_content_1bao6_901", na = "_inner_1bao6_907", J = {
567
+ const Vs = "_accordion_1bao6_780", Hs = "_open_1bao6_789", Bs = "_disabled_1bao6_792", js = "_header_1bao6_798", Ws = "_headerLeft_1bao6_807", Fs = "_icon_1bao6_813", Us = "_title_1bao6_822", Zs = "_count_1bao6_830", qs = "_headerRight_1bao6_846", Xs = "_chevronIconWrapper_1bao6_853", Ys = "_iconDown_1bao6_861", Gs = "_iconUp_1bao6_862", Ks = "_iconVisible_1bao6_880", Qs = "_iconHidden_1bao6_885", Js = "_dividerContainer_1bao6_891", ea = "_divider_1bao6_891", ta = "_content_1bao6_901", na = "_inner_1bao6_907", J = {
568
568
  accordion: Vs,
569
569
  open: Hs,
570
570
  disabled: Bs,
@@ -573,11 +573,11 @@ const Vs = "_accordion_1bao6_780", Hs = "_open_1bao6_789", Bs = "_disabled_1bao6
573
573
  icon: Fs,
574
574
  title: Us,
575
575
  count: Zs,
576
- headerRight: Xs,
577
- chevronIconWrapper: Ys,
578
- iconDown: Gs,
579
- iconUp: Ks,
580
- iconVisible: qs,
576
+ headerRight: qs,
577
+ chevronIconWrapper: Xs,
578
+ iconDown: Ys,
579
+ iconUp: Gs,
580
+ iconVisible: Ks,
581
581
  iconHidden: Qs,
582
582
  dividerContainer: Js,
583
583
  divider: ea,
@@ -722,7 +722,7 @@ const Vs = "_accordion_1bao6_780", Hs = "_open_1bao6_789", Bs = "_disabled_1bao6
722
722
  breakWord: u = !1,
723
723
  fontFamily: d = "inter",
724
724
  ...h
725
- } = e, m = ca[a], w = I(
725
+ } = e, m = ca[a], v = I(
726
726
  Ne.typography,
727
727
  Ne[m],
728
728
  Ne[`align-${s}`],
@@ -736,7 +736,7 @@ const Vs = "_accordion_1bao6_780", Hs = "_open_1bao6_789", Bs = "_disabled_1bao6
736
736
  r
737
737
  );
738
738
  return la(n, {
739
- className: w,
739
+ className: v,
740
740
  ref: t,
741
741
  ...h
742
742
  }, o);
@@ -826,7 +826,7 @@ const ua = "_focus_l2mdh_550", da = "_swap_l2mdh_632", fa = "_swap__content_l2md
826
826
  })() }),
827
827
  o && /* @__PURE__ */ f("span", { className: Qe.spinner__label, "aria-hidden": "true", children: o })
828
828
  ] });
829
- }, ma = "_focus_1samt_550", ga = "_swap_1samt_632", wa = "_swap__content_1samt_688", va = "_button_1samt_780", Ca = "_sizeL_1samt_805", ba = "_sizeM_1samt_809", xa = "_sizeS_1samt_813", ya = "_iconOnly_1samt_817", Sa = "_primary_1samt_829", Ea = "_disabled_1samt_834", La = "_count_1samt_848", $a = "_secondary_1samt_852", Pa = "_ghost_1samt_875", Ra = "_link_1samt_898", Na = "_dangerPrimary_1samt_927", ka = "_dangerSecondary_1samt_953", Aa = "_dangerGhost_1samt_979", Ta = "_dangerLink_1samt_1005", Ma = "_open_1samt_1032", Ia = "_content_1samt_1044", za = "_loader_1samt_1049", Oa = "_text_1samt_1055", Da = "_icon_1samt_817", Va = "_chevron_1samt_1082", Ha = "_loading_1samt_1110", re = {
829
+ }, ma = "_focus_1samt_550", ga = "_swap_1samt_632", va = "_swap__content_1samt_688", wa = "_button_1samt_780", Ca = "_sizeL_1samt_805", ba = "_sizeM_1samt_809", ya = "_sizeS_1samt_813", xa = "_iconOnly_1samt_817", Sa = "_primary_1samt_829", Ea = "_disabled_1samt_834", La = "_count_1samt_848", $a = "_secondary_1samt_852", Pa = "_ghost_1samt_875", Ra = "_link_1samt_898", Na = "_dangerPrimary_1samt_927", ka = "_dangerSecondary_1samt_953", Aa = "_dangerGhost_1samt_979", Ta = "_dangerLink_1samt_1005", Ma = "_open_1samt_1032", Ia = "_content_1samt_1044", za = "_loader_1samt_1049", Oa = "_text_1samt_1055", Da = "_icon_1samt_817", Va = "_chevron_1samt_1082", Ha = "_loading_1samt_1110", re = {
830
830
  focus: ma,
831
831
  "focus--default": "_focus--default_1samt_567",
832
832
  "focus--danger": "_focus--danger_1samt_571",
@@ -845,17 +845,17 @@ const ua = "_focus_l2mdh_550", da = "_swap_l2mdh_632", fa = "_swap__content_l2md
845
845
  "swap--icon-m": "_swap--icon-m_1samt_672",
846
846
  "swap--icon-l": "_swap--icon-l_1samt_677",
847
847
  "swap--icon-xl": "_swap--icon-xl_1samt_682",
848
- swap__content: wa,
848
+ swap__content: va,
849
849
  "swap--group-horizontal": "_swap--group-horizontal_1samt_697",
850
850
  "swap--group-vertical": "_swap--group-vertical_1samt_704",
851
851
  "swap--with-background": "_swap--with-background_1samt_712",
852
852
  "swap--with-border": "_swap--with-border_1samt_718",
853
853
  "swap--interactive": "_swap--interactive_1samt_726",
854
- button: va,
854
+ button: wa,
855
855
  sizeL: Ca,
856
856
  sizeM: ba,
857
- sizeS: xa,
858
- iconOnly: ya,
857
+ sizeS: ya,
858
+ iconOnly: xa,
859
859
  primary: Sa,
860
860
  disabled: Ea,
861
861
  count: La,
@@ -899,10 +899,10 @@ const ua = "_focus_l2mdh_550", da = "_swap_l2mdh_632", fa = "_swap__content_l2md
899
899
  iconPosition: d = "left",
900
900
  tooltip: h,
901
901
  count: m,
902
- withChevron: w = !1,
902
+ withChevron: v = !1,
903
903
  href: _,
904
904
  ...g
905
- } = e, v = d === "only" || !l && u, C = w && !v, b = [
905
+ } = e, w = d === "only" || !l && u, C = v && !w, b = [
906
906
  re.button,
907
907
  re[`size${n.toUpperCase()}`],
908
908
  re[o],
@@ -910,9 +910,9 @@ const ua = "_focus_l2mdh_550", da = "_swap_l2mdh_632", fa = "_swap__content_l2md
910
910
  s && re.loading,
911
911
  a && re.active,
912
912
  i && re.open,
913
- v && re.iconOnly,
913
+ w && re.iconOnly,
914
914
  c
915
- ].filter(Boolean).join(" "), x = () => /* @__PURE__ */ A(Ee, { children: [
915
+ ].filter(Boolean).join(" "), y = () => /* @__PURE__ */ A(Ee, { children: [
916
916
  /* @__PURE__ */ A("span", { className: re.content, children: [
917
917
  u && d !== "right" && /* @__PURE__ */ f("span", { className: re.icon, children: u }),
918
918
  l && /* @__PURE__ */ f("span", { className: re.text, children: l }),
@@ -924,28 +924,28 @@ const ua = "_focus_l2mdh_550", da = "_swap_l2mdh_632", fa = "_swap__content_l2md
924
924
  ] });
925
925
  if (_) {
926
926
  const S = g;
927
- return r || s ? /* @__PURE__ */ f("span", { className: b, ...S, children: x() }) : /* @__PURE__ */ f(
927
+ return r || s ? /* @__PURE__ */ f("span", { className: b, ...S, children: y() }) : /* @__PURE__ */ f(
928
928
  "a",
929
929
  {
930
930
  ref: t,
931
931
  href: _,
932
932
  className: b,
933
933
  ...S,
934
- children: x()
934
+ children: y()
935
935
  }
936
936
  );
937
937
  }
938
- const { type: y = "button", ...E } = g;
938
+ const { type: x = "button", ...E } = g;
939
939
  return /* @__PURE__ */ f(
940
940
  "button",
941
941
  {
942
942
  ref: t,
943
- type: y,
943
+ type: x,
944
944
  className: b,
945
945
  disabled: r || s,
946
- "aria-label": v && h ? h : void 0,
946
+ "aria-label": w && h ? h : void 0,
947
947
  ...E,
948
- children: x()
948
+ children: y()
949
949
  }
950
950
  );
951
951
  }
@@ -993,7 +993,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
993
993
  divider__text: Za,
994
994
  "divider--text-left": "_divider--text-left_1gu7y_855",
995
995
  "divider--text-right": "_divider--text-right_1gu7y_864"
996
- }, Xa = ({
996
+ }, qa = ({
997
997
  orientation: e = "horizontal",
998
998
  variant: t = "solid",
999
999
  size: n = "m",
@@ -1031,7 +1031,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1031
1031
  ...i
1032
1032
  }
1033
1033
  );
1034
- }, C2 = ({
1034
+ }, bf = ({
1035
1035
  title: e,
1036
1036
  count: t,
1037
1037
  icon: n,
@@ -1042,7 +1042,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1042
1042
  className: i,
1043
1043
  toggleText: c = {}
1044
1044
  }) => {
1045
- const [l, u] = j(s), [d, h] = j(s ? "auto" : 0), m = ce(null), w = () => {
1045
+ const [l, u] = j(s), [d, h] = j(s ? "auto" : 0), m = ce(null), v = () => {
1046
1046
  a || (l ? (h(m.current?.scrollHeight || 0), requestAnimationFrame(() => h(0))) : h(m.current?.scrollHeight || 0), u(!l));
1047
1047
  };
1048
1048
  se(() => {
@@ -1058,7 +1058,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1058
1058
  className: I(J.accordion, l && J.open, a && J.disabled, i),
1059
1059
  "data-state": l ? "open" : "closed",
1060
1060
  children: [
1061
- /* @__PURE__ */ A("div", { className: J.header, onClick: w, children: [
1061
+ /* @__PURE__ */ A("div", { className: J.header, onClick: v, children: [
1062
1062
  /* @__PURE__ */ A("div", { className: J.headerLeft, children: [
1063
1063
  n && /* @__PURE__ */ f("div", { className: J.icon, children: n }),
1064
1064
  /* @__PURE__ */ f(
@@ -1072,7 +1072,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1072
1072
  typeof t == "number" && /* @__PURE__ */ f(at, { as: "span", variant: "text-long-s-medium", className: J.count, children: t })
1073
1073
  ] }),
1074
1074
  /* @__PURE__ */ A("div", { className: J.headerRight, children: [
1075
- r.map((g, v) => /* @__PURE__ */ f(
1075
+ r.map((g, w) => /* @__PURE__ */ f(
1076
1076
  Cn,
1077
1077
  {
1078
1078
  variant: "link",
@@ -1086,7 +1086,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1086
1086
  },
1087
1087
  children: g.label
1088
1088
  },
1089
- v
1089
+ w
1090
1090
  )),
1091
1091
  /* @__PURE__ */ f(
1092
1092
  Cn,
@@ -1100,26 +1100,26 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1100
1100
  iconPosition: "right",
1101
1101
  tooltip: _,
1102
1102
  onClick: (g) => {
1103
- g.stopPropagation(), w();
1103
+ g.stopPropagation(), v();
1104
1104
  }
1105
1105
  }
1106
1106
  )
1107
1107
  ] })
1108
1108
  ] }),
1109
1109
  /* @__PURE__ */ A("div", { ref: m, className: J.content, style: { height: d }, children: [
1110
- /* @__PURE__ */ f("div", { className: J.dividerContainer, children: /* @__PURE__ */ f(Xa, { size: "s", className: J.divider }) }),
1110
+ /* @__PURE__ */ f("div", { className: J.dividerContainer, children: /* @__PURE__ */ f(qa, { size: "s", className: J.divider }) }),
1111
1111
  /* @__PURE__ */ f("div", { className: J.inner, children: o })
1112
1112
  ] })
1113
1113
  ]
1114
1114
  }
1115
1115
  );
1116
- }, Ya = "_card_t4r0j_780", Ga = "_header_t4r0j_800", Ka = "_title_t4r0j_805", qa = "_subtitle_t4r0j_823", Qa = "_content_t4r0j_831", pt = {
1117
- card: Ya,
1118
- header: Ga,
1119
- title: Ka,
1120
- subtitle: qa,
1116
+ }, Xa = "_card_t4r0j_780", Ya = "_header_t4r0j_800", Ga = "_title_t4r0j_805", Ka = "_subtitle_t4r0j_823", Qa = "_content_t4r0j_831", pt = {
1117
+ card: Xa,
1118
+ header: Ya,
1119
+ title: Ga,
1120
+ subtitle: Ka,
1121
1121
  content: Qa
1122
- }, b2 = ({
1122
+ }, yf = ({
1123
1123
  title: e,
1124
1124
  subtitle: t,
1125
1125
  children: n,
@@ -1187,8 +1187,8 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1187
1187
  onError: i
1188
1188
  }) => {
1189
1189
  const c = (m) => {
1190
- const w = m.trim().split(" ");
1191
- return w.length === 1 ? w[0].charAt(0).toUpperCase() : `${w[0].charAt(0)}${w[w.length - 1].charAt(0)}`.toUpperCase();
1190
+ const v = m.trim().split(" ");
1191
+ return v.length === 1 ? v[0].charAt(0).toUpperCase() : `${v[0].charAt(0)}${v[v.length - 1].charAt(0)}`.toUpperCase();
1192
1192
  }, l = () => {
1193
1193
  if (s) return s;
1194
1194
  if (t) {
@@ -1209,8 +1209,8 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1209
1209
  "var(--color-yellow-600)",
1210
1210
  "var(--color-rose-600)",
1211
1211
  "var(--color-pink-600)"
1212
- ], w = t.split("").reduce((_, g) => _ + g.charCodeAt(0), 0);
1213
- return m[w % m.length];
1212
+ ], v = t.split("").reduce((_, g) => _ + g.charCodeAt(0), 0);
1213
+ return m[v % m.length];
1214
1214
  }
1215
1215
  return "var(--color-blue-gray-300)";
1216
1216
  }, u = {
@@ -1263,7 +1263,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1263
1263
  "avatarGroup--overlap": "_avatarGroup--overlap_18gsw_784",
1264
1264
  avatarGroup__item: ui,
1265
1265
  avatarGroup__more: di
1266
- }, x2 = ({
1266
+ }, xf = ({
1267
1267
  items: e,
1268
1268
  max: t = 5,
1269
1269
  size: n = "m",
@@ -1288,7 +1288,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1288
1288
  ]
1289
1289
  }
1290
1290
  );
1291
- }, y2 = ({
1291
+ }, Sf = ({
1292
1292
  size: e = 80,
1293
1293
  borderColor: t = "#D6DDFF",
1294
1294
  borderWidth: n = 2,
@@ -1387,7 +1387,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1387
1387
  "badge__part--yellow": "_badge__part--yellow_3zn4h_1103",
1388
1388
  "badge__part--rose": "_badge__part--rose_3zn4h_1107",
1389
1389
  "badge__part--pink": "_badge__part--pink_3zn4h_1111"
1390
- }, S2 = ({
1390
+ }, Ef = ({
1391
1391
  children: e,
1392
1392
  color: t = "gray",
1393
1393
  variant: n = "primary",
@@ -1402,7 +1402,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1402
1402
  r
1403
1403
  ].filter(Boolean).join(" ");
1404
1404
  return /* @__PURE__ */ f("span", { className: s, children: e });
1405
- }, gi = "_focus_55oxc_550", wi = "_swap_55oxc_632", vi = "_swap__content_55oxc_688", Ci = "_dot_55oxc_780", Et = {
1405
+ }, gi = "_focus_55oxc_550", vi = "_swap_55oxc_632", wi = "_swap__content_55oxc_688", Ci = "_dot_55oxc_780", Et = {
1406
1406
  focus: gi,
1407
1407
  "focus--default": "_focus--default_55oxc_567",
1408
1408
  "focus--danger": "_focus--danger_55oxc_571",
@@ -1413,7 +1413,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1413
1413
  "focus--input": "_focus--input_55oxc_607",
1414
1414
  "focus--button": "_focus--button_55oxc_612",
1415
1415
  "focus--card": "_focus--card_55oxc_617",
1416
- swap: wi,
1416
+ swap: vi,
1417
1417
  "swap--text": "_swap--text_55oxc_641",
1418
1418
  "swap--icon": "_swap--icon_55oxc_652",
1419
1419
  "swap--icon-xs": "_swap--icon-xs_55oxc_662",
@@ -1421,7 +1421,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1421
1421
  "swap--icon-m": "_swap--icon-m_55oxc_672",
1422
1422
  "swap--icon-l": "_swap--icon-l_55oxc_677",
1423
1423
  "swap--icon-xl": "_swap--icon-xl_55oxc_682",
1424
- swap__content: vi,
1424
+ swap__content: wi,
1425
1425
  "swap--group-horizontal": "_swap--group-horizontal_55oxc_697",
1426
1426
  "swap--group-vertical": "_swap--group-vertical_55oxc_704",
1427
1427
  "swap--with-background": "_swap--with-background_55oxc_712",
@@ -1442,7 +1442,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1442
1442
  "color-orange": "_color-orange_55oxc_850",
1443
1443
  "color-green": "_color-green_55oxc_863",
1444
1444
  "color-yellow": "_color-yellow_55oxc_876"
1445
- }, E2 = ({
1445
+ }, Lf = ({
1446
1446
  color: e = "gray",
1447
1447
  size: t = "m",
1448
1448
  variant: n = "filled",
@@ -1458,7 +1458,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1458
1458
  o
1459
1459
  )
1460
1460
  }
1461
- ), bi = "_focus_1hrjy_550", xi = "_swap_1hrjy_632", yi = "_swap__content_1hrjy_688", Si = "_counter_1hrjy_780", Lt = {
1461
+ ), bi = "_focus_1hrjy_550", yi = "_swap_1hrjy_632", xi = "_swap__content_1hrjy_688", Si = "_counter_1hrjy_780", Lt = {
1462
1462
  focus: bi,
1463
1463
  "focus--default": "_focus--default_1hrjy_567",
1464
1464
  "focus--danger": "_focus--danger_1hrjy_571",
@@ -1469,7 +1469,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1469
1469
  "focus--input": "_focus--input_1hrjy_607",
1470
1470
  "focus--button": "_focus--button_1hrjy_612",
1471
1471
  "focus--card": "_focus--card_1hrjy_617",
1472
- swap: xi,
1472
+ swap: yi,
1473
1473
  "swap--text": "_swap--text_1hrjy_641",
1474
1474
  "swap--icon": "_swap--icon_1hrjy_652",
1475
1475
  "swap--icon-xs": "_swap--icon-xs_1hrjy_662",
@@ -1477,7 +1477,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1477
1477
  "swap--icon-m": "_swap--icon-m_1hrjy_672",
1478
1478
  "swap--icon-l": "_swap--icon-l_1hrjy_677",
1479
1479
  "swap--icon-xl": "_swap--icon-xl_1hrjy_682",
1480
- swap__content: yi,
1480
+ swap__content: xi,
1481
1481
  "swap--group-horizontal": "_swap--group-horizontal_1hrjy_697",
1482
1482
  "swap--group-vertical": "_swap--group-vertical_1hrjy_704",
1483
1483
  "swap--with-background": "_swap--with-background_1hrjy_712",
@@ -1495,7 +1495,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1495
1495
  "color-grayLight": "_color-grayLight_1hrjy_863",
1496
1496
  "color-orange": "_color-orange_1hrjy_877",
1497
1497
  "color-green": "_color-green_1hrjy_891"
1498
- }, L2 = ({
1498
+ }, $f = ({
1499
1499
  value: e,
1500
1500
  color: t = "gray",
1501
1501
  size: n = "m",
@@ -1603,7 +1603,7 @@ const ja = "_focus_1gu7y_550", Wa = "_swap_1gu7y_632", Fa = "_swap__content_1gu7
1603
1603
  }
1604
1604
  );
1605
1605
  jo.displayName = "Checkbox";
1606
- const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco8_688", Fi = "_chip_1kco8_780", Ui = "_clickable_1kco8_838", Zi = "_disabled_1kco8_841", Xi = "_active_1kco8_859", Be = {
1606
+ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco8_688", Fi = "_chip_1kco8_780", Ui = "_clickable_1kco8_838", Zi = "_disabled_1kco8_841", qi = "_active_1kco8_859", Be = {
1607
1607
  focus: Bi,
1608
1608
  "focus--default": "_focus--default_1kco8_567",
1609
1609
  "focus--danger": "_focus--danger_1kco8_571",
@@ -1639,8 +1639,8 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
1639
1639
  "variant-active": "_variant-active_1kco8_829",
1640
1640
  clickable: Ui,
1641
1641
  disabled: Zi,
1642
- active: Xi
1643
- }, $2 = ({
1642
+ active: qi
1643
+ }, Pf = ({
1644
1644
  children: e,
1645
1645
  variant: t = "default",
1646
1646
  size: n = "m",
@@ -1662,9 +1662,9 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
1662
1662
  );
1663
1663
  return /* @__PURE__ */ f("span", { className: c, onClick: s ? void 0 : i, children: e });
1664
1664
  };
1665
- var Yi = (e) => e.type === "checkbox", gt = (e) => e instanceof Date, Hn = (e) => e == null;
1665
+ var Xi = (e) => e.type === "checkbox", gt = (e) => e instanceof Date, Hn = (e) => e == null;
1666
1666
  const Wo = (e) => typeof e == "object";
1667
- var Ue = (e) => !Hn(e) && !Array.isArray(e) && Wo(e) && !gt(e), Gi = (e) => Ue(e) && e.target ? Yi(e.target) ? e.target.checked : e.target.value : e, Ki = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, qi = (e, t) => e.has(Ki(t)), Qi = (e) => {
1667
+ var Ue = (e) => !Hn(e) && !Array.isArray(e) && Wo(e) && !gt(e), Yi = (e) => Ue(e) && e.target ? Xi(e.target) ? e.target.checked : e.target.value : e, Gi = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ki = (e, t) => e.has(Gi(t)), Qi = (e) => {
1668
1668
  const t = e.constructor && e.constructor.prototype;
1669
1669
  return Ue(t) && t.hasOwnProperty("isPrototypeOf");
1670
1670
  }, Ji = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -1708,9 +1708,9 @@ const no = {
1708
1708
  CHANGE: "change"
1709
1709
  }, oo = {
1710
1710
  all: "all"
1711
- }, Xo = M.createContext(null);
1712
- Xo.displayName = "HookFormContext";
1713
- const Bn = () => M.useContext(Xo);
1711
+ }, qo = M.createContext(null);
1712
+ qo.displayName = "HookFormContext";
1713
+ const Bn = () => M.useContext(qo);
1714
1714
  var tc = (e, t, n, o = !0) => {
1715
1715
  const r = {
1716
1716
  defaultValues: t._defaultValues
@@ -1724,7 +1724,7 @@ var tc = (e, t, n, o = !0) => {
1724
1724
  });
1725
1725
  return r;
1726
1726
  };
1727
- const Yo = typeof window < "u" ? M.useLayoutEffect : M.useEffect;
1727
+ const Xo = typeof window < "u" ? M.useLayoutEffect : M.useEffect;
1728
1728
  function nc(e) {
1729
1729
  const t = Bn(), { control: n = t.control, disabled: o, name: r, exact: s } = e || {}, [a, i] = M.useState(n._formState), c = M.useRef({
1730
1730
  isDirty: !1,
@@ -1736,7 +1736,7 @@ function nc(e) {
1736
1736
  isValid: !1,
1737
1737
  errors: !1
1738
1738
  });
1739
- return Yo(() => n._subscribe({
1739
+ return Xo(() => n._subscribe({
1740
1740
  name: r,
1741
1741
  formState: c.current,
1742
1742
  exact: s,
@@ -1751,7 +1751,7 @@ function nc(e) {
1751
1751
  }, [n]), M.useMemo(() => tc(a, n, c.current, !1), [a, n]);
1752
1752
  }
1753
1753
  var oc = (e) => typeof e == "string", rc = (e, t, n, o, r) => oc(e) ? ie(n, e, r) : Array.isArray(e) ? e.map((s) => ie(n, s)) : n, ro = (e) => Hn(e) || !Wo(e);
1754
- function Go(e, t, n = /* @__PURE__ */ new WeakSet()) {
1754
+ function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
1755
1755
  if (ro(e) || ro(t))
1756
1756
  return e === t;
1757
1757
  if (gt(e) && gt(t))
@@ -1768,7 +1768,7 @@ function Go(e, t, n = /* @__PURE__ */ new WeakSet()) {
1768
1768
  return !1;
1769
1769
  if (s !== "ref") {
1770
1770
  const i = t[s];
1771
- if (gt(a) && gt(i) || Ue(a) && Ue(i) || Array.isArray(a) && Array.isArray(i) ? !Go(a, i, n) : a !== i)
1771
+ if (gt(a) && gt(i) || Ue(a) && Ue(i) || Array.isArray(a) && Array.isArray(i) ? !Yo(a, i, n) : a !== i)
1772
1772
  return !1;
1773
1773
  }
1774
1774
  }
@@ -1778,18 +1778,18 @@ function sc(e) {
1778
1778
  const t = Bn(), { control: n = t.control, name: o, defaultValue: r, disabled: s, exact: a, compute: i } = e || {}, c = M.useRef(r), l = M.useRef(i), u = M.useRef(void 0);
1779
1779
  l.current = i;
1780
1780
  const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [h, m] = M.useState(l.current ? l.current(d) : d);
1781
- return Yo(() => n._subscribe({
1781
+ return Xo(() => n._subscribe({
1782
1782
  name: o,
1783
1783
  formState: {
1784
1784
  values: !0
1785
1785
  },
1786
1786
  exact: a,
1787
- callback: (w) => {
1787
+ callback: (v) => {
1788
1788
  if (!s) {
1789
- const _ = rc(o, n._names, w.values || n._formValues, !1, c.current);
1789
+ const _ = rc(o, n._names, v.values || n._formValues, !1, c.current);
1790
1790
  if (l.current) {
1791
1791
  const g = l.current(_);
1792
- Go(g, u.current) || (m(g), u.current = g);
1792
+ Yo(g, u.current) || (m(g), u.current = g);
1793
1793
  } else
1794
1794
  m(_);
1795
1795
  }
@@ -1797,7 +1797,7 @@ function sc(e) {
1797
1797
  }), [n, s, o, a]), M.useEffect(() => n._removeUnmounted()), h;
1798
1798
  }
1799
1799
  function jn(e) {
1800
- const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: s, defaultValue: a } = e, i = qi(r._names.array, n), c = M.useMemo(() => ie(r._formValues, n, ie(r._defaultValues, n, a)), [r, n, a]), l = sc({
1800
+ const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: s, defaultValue: a } = e, i = Ki(r._names.array, n), c = M.useMemo(() => ie(r._formValues, n, ie(r._defaultValues, n, a)), [r, n, a]), l = sc({
1801
1801
  control: r,
1802
1802
  name: n,
1803
1803
  defaultValue: c,
@@ -1812,7 +1812,7 @@ function jn(e) {
1812
1812
  ...an(e.disabled) ? { disabled: e.disabled } : {}
1813
1813
  }));
1814
1814
  d.current = e;
1815
- const w = M.useMemo(() => Object.defineProperties({}, {
1815
+ const v = M.useMemo(() => Object.defineProperties({}, {
1816
1816
  invalid: {
1817
1817
  enumerable: !0,
1818
1818
  get: () => !!ie(u.errors, n)
@@ -1835,7 +1835,7 @@ function jn(e) {
1835
1835
  }
1836
1836
  }), [u, n]), _ = M.useCallback((b) => m.current.onChange({
1837
1837
  target: {
1838
- value: Gi(b),
1838
+ value: Yi(b),
1839
1839
  name: n
1840
1840
  },
1841
1841
  type: no.CHANGE
@@ -1845,12 +1845,12 @@ function jn(e) {
1845
1845
  name: n
1846
1846
  },
1847
1847
  type: no.BLUR
1848
- }), [n, r._formValues]), v = M.useCallback((b) => {
1849
- const x = ie(r._fields, n);
1850
- x && b && (x._f.ref = {
1848
+ }), [n, r._formValues]), w = M.useCallback((b) => {
1849
+ const y = ie(r._fields, n);
1850
+ y && b && (y._f.ref = {
1851
1851
  focus: () => b.focus && b.focus(),
1852
1852
  select: () => b.select && b.select(),
1853
- setCustomValidity: (y) => b.setCustomValidity(y),
1853
+ setCustomValidity: (x) => b.setCustomValidity(x),
1854
1854
  reportValidity: () => b.reportValidity()
1855
1855
  });
1856
1856
  }, [r._fields, n]), C = M.useMemo(() => ({
@@ -1859,24 +1859,24 @@ function jn(e) {
1859
1859
  ...an(o) || u.disabled ? { disabled: u.disabled || o } : {},
1860
1860
  onChange: _,
1861
1861
  onBlur: g,
1862
- ref: v
1863
- }), [n, o, u.disabled, _, g, v, l]);
1862
+ ref: w
1863
+ }), [n, o, u.disabled, _, g, w, l]);
1864
1864
  return M.useEffect(() => {
1865
- const b = r._options.shouldUnregister || s, x = h.current;
1866
- x && x !== n && !i && r.unregister(x), r.register(n, {
1865
+ const b = r._options.shouldUnregister || s, y = h.current;
1866
+ y && y !== n && !i && r.unregister(y), r.register(n, {
1867
1867
  ...d.current.rules,
1868
1868
  ...an(d.current.disabled) ? { disabled: d.current.disabled } : {}
1869
1869
  });
1870
- const y = (E, S) => {
1870
+ const x = (E, S) => {
1871
1871
  const L = ie(r._fields, E);
1872
1872
  L && L._f && (L._f.mount = S);
1873
1873
  };
1874
- if (y(n, !0), b) {
1874
+ if (x(n, !0), b) {
1875
1875
  const E = Fo(ie(r._options.defaultValues, n, d.current.defaultValue));
1876
1876
  to(r._defaultValues, n, E), bn(ie(r._formValues, n)) && to(r._formValues, n, E);
1877
1877
  }
1878
1878
  return !i && r.register(n), h.current = n, () => {
1879
- (i ? b && !r._state.action : b) ? r.unregister(n) : y(n, !1);
1879
+ (i ? b && !r._state.action : b) ? r.unregister(n) : x(n, !1);
1880
1880
  };
1881
1881
  }, [n, r, i, s]), M.useEffect(() => {
1882
1882
  r._setDisabledField({
@@ -1886,10 +1886,10 @@ function jn(e) {
1886
1886
  }, [o, n, r]), M.useMemo(() => ({
1887
1887
  field: C,
1888
1888
  formState: u,
1889
- fieldState: w
1890
- }), [C, u, w]);
1889
+ fieldState: v
1890
+ }), [C, u, v]);
1891
1891
  }
1892
- const P2 = ({
1892
+ const Rf = ({
1893
1893
  name: e,
1894
1894
  control: t,
1895
1895
  ...n
@@ -1898,7 +1898,7 @@ const P2 = ({
1898
1898
  field: { value: o, onChange: r, ref: s }
1899
1899
  } = jn({ name: e, control: t });
1900
1900
  return /* @__PURE__ */ f(jo, { ...n, ref: s, checked: !!o, onChange: (a) => r(a.target.checked) });
1901
- }, ac = "_focus_1m2fe_550", ic = "_swap_1m2fe_632", cc = "_swap__content_1m2fe_688", lc = "_root_1m2fe_780", uc = "_fullWidth_1m2fe_786", dc = "_wrapper_1m2fe_791", fc = "_single_1m2fe_808", _c = "_first_1m2fe_811", pc = "_middle_1m2fe_814", hc = "_last_1m2fe_818", mc = "_error_1m2fe_825", gc = "_outline_1m2fe_828", wc = "_fill_1m2fe_842", vc = "_small_1m2fe_858", Cc = "_input_1m2fe_861", bc = "_label_1m2fe_865", xc = "_medium_1m2fe_870", yc = "_disabled_1m2fe_911", Sc = "_clearButton_1m2fe_923", Ec = "_withPrefix_1m2fe_929", Lc = "_withSuffix_1m2fe_932", $c = "_requiredIcon_1m2fe_970", Pc = "_filled_1m2fe_980", Rc = "_innerHint_1m2fe_1034", Nc = "_affix_1m2fe_1081", kc = "_prefix_1m2fe_1092", Ac = "_suffix_1m2fe_1097", Tc = "_errorText_1m2fe_1106", q = {
1901
+ }, ac = "_focus_1m2fe_550", ic = "_swap_1m2fe_632", cc = "_swap__content_1m2fe_688", lc = "_root_1m2fe_780", uc = "_fullWidth_1m2fe_786", dc = "_wrapper_1m2fe_791", fc = "_single_1m2fe_808", _c = "_first_1m2fe_811", pc = "_middle_1m2fe_814", hc = "_last_1m2fe_818", mc = "_error_1m2fe_825", gc = "_outline_1m2fe_828", vc = "_fill_1m2fe_842", wc = "_small_1m2fe_858", Cc = "_input_1m2fe_861", bc = "_label_1m2fe_865", yc = "_medium_1m2fe_870", xc = "_disabled_1m2fe_911", Sc = "_clearButton_1m2fe_923", Ec = "_withPrefix_1m2fe_929", Lc = "_withSuffix_1m2fe_932", $c = "_requiredIcon_1m2fe_970", Pc = "_filled_1m2fe_980", Rc = "_innerHint_1m2fe_1034", Nc = "_affix_1m2fe_1081", kc = "_prefix_1m2fe_1092", Ac = "_suffix_1m2fe_1097", Tc = "_errorText_1m2fe_1106", K = {
1902
1902
  focus: ac,
1903
1903
  "focus--default": "_focus--default_1m2fe_567",
1904
1904
  "focus--danger": "_focus--danger_1m2fe_571",
@@ -1932,12 +1932,12 @@ const P2 = ({
1932
1932
  last: hc,
1933
1933
  error: mc,
1934
1934
  outline: gc,
1935
- fill: wc,
1936
- small: vc,
1935
+ fill: vc,
1936
+ small: wc,
1937
1937
  input: Cc,
1938
1938
  label: bc,
1939
- medium: xc,
1940
- disabled: yc,
1939
+ medium: yc,
1940
+ disabled: xc,
1941
1941
  clearButton: Sc,
1942
1942
  withPrefix: Ec,
1943
1943
  withSuffix: Lc,
@@ -1948,7 +1948,7 @@ const P2 = ({
1948
1948
  prefix: kc,
1949
1949
  suffix: Ac,
1950
1950
  errorText: Tc
1951
- }, Ko = P(
1951
+ }, Go = P(
1952
1952
  ({
1953
1953
  className: e,
1954
1954
  disabled: t,
@@ -1965,82 +1965,82 @@ const P2 = ({
1965
1965
  size: d = "small",
1966
1966
  variantGroupItems: h = "single",
1967
1967
  prefix: m,
1968
- suffix: w,
1968
+ suffix: v,
1969
1969
  value: _,
1970
1970
  defaultValue: g,
1971
- onChange: v,
1971
+ onChange: w,
1972
1972
  type: C = "text",
1973
1973
  fullWidth: b = !0,
1974
- ...x
1975
- }, y) => {
1974
+ ...y
1975
+ }, x) => {
1976
1976
  const E = _ !== void 0, [S, L] = j(g?.toString() ?? ""), $ = E ? _ : S, N = !!$ && $.toString().length > 0, z = (T) => {
1977
- E || L(T.target.value), v?.(T);
1977
+ E || L(T.target.value), w?.(T);
1978
1978
  }, B = () => {
1979
1979
  if (t) return;
1980
- E || L(""), v?.({
1980
+ E || L(""), w?.({
1981
1981
  target: { value: "" },
1982
1982
  currentTarget: { value: "" }
1983
1983
  });
1984
1984
  }, V = r || !!n;
1985
- return /* @__PURE__ */ A("div", { className: I(q.root, b && q.fullWidth, e), children: [
1985
+ return /* @__PURE__ */ A("div", { className: I(K.root, b && K.fullWidth, e), children: [
1986
1986
  /* @__PURE__ */ A(
1987
1987
  "div",
1988
1988
  {
1989
1989
  className: I(
1990
- q.wrapper,
1991
- q[u],
1992
- q[d],
1993
- q[h],
1990
+ K.wrapper,
1991
+ K[u],
1992
+ K[d],
1993
+ K[h],
1994
1994
  {
1995
- [q.disabled]: t,
1996
- [q.error]: V,
1995
+ [K.disabled]: t,
1996
+ [K.error]: V,
1997
1997
  // Используем hasError
1998
- [q.filled]: N,
1999
- [q.withPrefix]: !!m,
2000
- [q.withSuffix]: !!w
1998
+ [K.filled]: N,
1999
+ [K.withPrefix]: !!m,
2000
+ [K.withSuffix]: !!v
2001
2001
  }
2002
2002
  ),
2003
2003
  children: [
2004
- m && /* @__PURE__ */ f("div", { className: I(q.affix, q.prefix), children: m }),
2004
+ m && /* @__PURE__ */ f("div", { className: I(K.affix, K.prefix), children: m }),
2005
2005
  /* @__PURE__ */ f(
2006
2006
  "input",
2007
2007
  {
2008
2008
  id: c,
2009
- ref: y,
2009
+ ref: x,
2010
2010
  disabled: t,
2011
2011
  value: $,
2012
2012
  onChange: z,
2013
- className: q.input,
2013
+ className: K.input,
2014
2014
  type: C,
2015
2015
  placeholder: "",
2016
- ...x
2016
+ ...y
2017
2017
  }
2018
2018
  ),
2019
- i && /* @__PURE__ */ A("label", { htmlFor: c, className: I(q.label), children: [
2019
+ i && /* @__PURE__ */ A("label", { htmlFor: c, className: I(K.label), children: [
2020
2020
  i,
2021
- a && /* @__PURE__ */ f(Vn, { className: q.requiredIcon })
2021
+ a && /* @__PURE__ */ f(Vn, { className: K.requiredIcon })
2022
2022
  ] }),
2023
- s && !V && !N && /* @__PURE__ */ f("span", { className: q.innerHint, children: s }),
2023
+ s && !V && !N && /* @__PURE__ */ f("span", { className: K.innerHint, children: s }),
2024
2024
  l && N && !t && /* @__PURE__ */ f(
2025
2025
  "button",
2026
2026
  {
2027
2027
  type: "button",
2028
- className: q.clearButton,
2028
+ className: K.clearButton,
2029
2029
  onClick: B,
2030
2030
  "aria-label": "Очистить поле",
2031
2031
  children: /* @__PURE__ */ f(Dn, {})
2032
2032
  }
2033
2033
  ),
2034
- w && /* @__PURE__ */ f("div", { className: I(q.affix, q.suffix), children: w })
2034
+ v && /* @__PURE__ */ f("div", { className: I(K.affix, K.suffix), children: v })
2035
2035
  ]
2036
2036
  }
2037
2037
  ),
2038
- n && o && /* @__PURE__ */ f("span", { className: q.errorText, children: n })
2038
+ n && o && /* @__PURE__ */ f("span", { className: K.errorText, children: n })
2039
2039
  ] });
2040
2040
  }
2041
2041
  );
2042
- Ko.displayName = "Input";
2043
- const R2 = ({
2042
+ Go.displayName = "Input";
2043
+ const Nf = ({
2044
2044
  name: e,
2045
2045
  control: t,
2046
2046
  error: n,
@@ -2054,7 +2054,7 @@ const R2 = ({
2054
2054
  control: t
2055
2055
  });
2056
2056
  return /* @__PURE__ */ f(
2057
- Ko,
2057
+ Go,
2058
2058
  {
2059
2059
  ...r,
2060
2060
  ...o,
@@ -2095,7 +2095,7 @@ const R2 = ({
2095
2095
  inputWrapper: Bc,
2096
2096
  horizontal: jc,
2097
2097
  groupError: Wc
2098
- }, qo = P(
2098
+ }, Ko = P(
2099
2099
  ({
2100
2100
  children: e,
2101
2101
  direction: t = "vertical",
@@ -2118,8 +2118,8 @@ const R2 = ({
2118
2118
  ...a,
2119
2119
  children: [
2120
2120
  /* @__PURE__ */ f("div", { className: I(Je.container, Je[t]), children: c.map((h, m) => {
2121
- const w = m === 0 ? "first" : m === l - 1 ? "last" : "middle", _ = M.cloneElement(h, {
2122
- variantGroupItems: w,
2121
+ const v = m === 0 ? "first" : m === l - 1 ? "last" : "middle", _ = M.cloneElement(h, {
2122
+ variantGroupItems: v,
2123
2123
  key: m,
2124
2124
  // Скрываем текст ошибки под инпутом, так как он показывается под группой
2125
2125
  showErrorMessage: !1,
@@ -2141,8 +2141,8 @@ const R2 = ({
2141
2141
  );
2142
2142
  }
2143
2143
  );
2144
- qo.displayName = "InputGroupStack";
2145
- const N2 = ({
2144
+ Ko.displayName = "InputGroupStack";
2145
+ const kf = ({
2146
2146
  name: e,
2147
2147
  control: t,
2148
2148
  groupError: n,
@@ -2154,7 +2154,7 @@ const N2 = ({
2154
2154
  control: t
2155
2155
  }) : null, i = (n || s?.fieldState.error)?.message || "";
2156
2156
  return /* @__PURE__ */ f(
2157
- qo,
2157
+ Ko,
2158
2158
  {
2159
2159
  ...r,
2160
2160
  groupError: i,
@@ -2162,7 +2162,7 @@ const N2 = ({
2162
2162
  children: o
2163
2163
  }
2164
2164
  );
2165
- }, Fc = "_focus_gathj_550", Uc = "_swap_gathj_632", Zc = "_swap__content_gathj_688", Xc = "_pageContainer_gathj_780", Yc = "_white_gathj_787", Gc = "_gray_gathj_790", Kc = "_content_gathj_883", ve = {
2165
+ }, Fc = "_focus_gathj_550", Uc = "_swap_gathj_632", Zc = "_swap__content_gathj_688", qc = "_pageContainer_gathj_780", Xc = "_white_gathj_787", Yc = "_gray_gathj_790", Gc = "_content_gathj_883", we = {
2166
2166
  focus: Fc,
2167
2167
  "focus--default": "_focus--default_gathj_567",
2168
2168
  "focus--danger": "_focus--danger_gathj_571",
@@ -2187,9 +2187,9 @@ const N2 = ({
2187
2187
  "swap--with-background": "_swap--with-background_gathj_712",
2188
2188
  "swap--with-border": "_swap--with-border_gathj_718",
2189
2189
  "swap--interactive": "_swap--interactive_gathj_726",
2190
- pageContainer: Xc,
2191
- white: Yc,
2192
- gray: Gc,
2190
+ pageContainer: qc,
2191
+ white: Xc,
2192
+ gray: Yc,
2193
2193
  "maxWidth-xs": "_maxWidth-xs_gathj_801",
2194
2194
  "maxWidth-s": "_maxWidth-s_gathj_805",
2195
2195
  "maxWidth-m": "_maxWidth-m_gathj_809",
@@ -2211,7 +2211,7 @@ const N2 = ({
2211
2211
  "layout-flex": "_layout-flex_gathj_869",
2212
2212
  "layout-grid": "_layout-grid_gathj_873",
2213
2213
  "layout-centered": "_layout-centered_gathj_877",
2214
- content: Kc,
2214
+ content: Gc,
2215
2215
  "direction-row": "_direction-row_gathj_889",
2216
2216
  "direction-column": "_direction-column_gathj_892",
2217
2217
  "justify-start": "_justify-start_gathj_898",
@@ -2223,7 +2223,7 @@ const N2 = ({
2223
2223
  "align-center": "_align-center_gathj_919",
2224
2224
  "align-end": "_align-end_gathj_922",
2225
2225
  "align-stretch": "_align-stretch_gathj_925"
2226
- }, k2 = ({
2226
+ }, Af = ({
2227
2227
  children: e,
2228
2228
  variant: t = "white",
2229
2229
  layout: n = "flex",
@@ -2238,66 +2238,66 @@ const N2 = ({
2238
2238
  "div",
2239
2239
  {
2240
2240
  className: I(
2241
- ve.pageContainer,
2242
- ve[t],
2243
- ve[`layout-${n}`],
2244
- ve[`padding-${a}`],
2245
- ve[`margin-${i}`],
2246
- ve[`maxWidth-${c}`],
2241
+ we.pageContainer,
2242
+ we[t],
2243
+ we[`layout-${n}`],
2244
+ we[`padding-${a}`],
2245
+ we[`margin-${i}`],
2246
+ we[`maxWidth-${c}`],
2247
2247
  l
2248
2248
  ),
2249
2249
  children: /* @__PURE__ */ f(
2250
2250
  "div",
2251
2251
  {
2252
2252
  className: I(
2253
- ve.content,
2254
- ve[`justify-${r}`],
2255
- ve[`align-${s}`],
2253
+ we.content,
2254
+ we[`justify-${r}`],
2255
+ we[`align-${s}`],
2256
2256
  {
2257
- [ve[`direction-${o}`]]: n === "flex"
2257
+ [we[`direction-${o}`]]: n === "flex"
2258
2258
  }
2259
2259
  ),
2260
2260
  children: e
2261
2261
  }
2262
2262
  )
2263
2263
  }
2264
- ), qc = "_focus_5wxto_550", Qc = "_swap_5wxto_632", Jc = "_swap__content_5wxto_688", el = "_segmentGroup_5wxto_780", tl = "_fullWidth_5wxto_791", nl = "_segmentItem_5wxto_796", ol = "_disabled_5wxto_837", rl = "_active_5wxto_837", sl = "_hover_5wxto_841", je = {
2265
- focus: qc,
2266
- "focus--default": "_focus--default_5wxto_567",
2267
- "focus--danger": "_focus--danger_5wxto_571",
2268
- "focus--visible": "_focus--visible_5wxto_577",
2269
- "focus-danger": "_focus-danger_5wxto_592",
2270
- "focus-within--default": "_focus-within--default_5wxto_598",
2271
- "focus-within--danger": "_focus-within--danger_5wxto_602",
2272
- "focus--input": "_focus--input_5wxto_607",
2273
- "focus--button": "_focus--button_5wxto_612",
2274
- "focus--card": "_focus--card_5wxto_617",
2264
+ ), Kc = "_focus_1mqhf_550", Qc = "_swap_1mqhf_632", Jc = "_swap__content_1mqhf_688", el = "_segmentGroup_1mqhf_780", tl = "_fullWidth_1mqhf_793", nl = "_segmentItem_1mqhf_800", ol = "_disabled_1mqhf_844", rl = "_active_1mqhf_844", sl = "_hover_1mqhf_848", je = {
2265
+ focus: Kc,
2266
+ "focus--default": "_focus--default_1mqhf_567",
2267
+ "focus--danger": "_focus--danger_1mqhf_571",
2268
+ "focus--visible": "_focus--visible_1mqhf_577",
2269
+ "focus-danger": "_focus-danger_1mqhf_592",
2270
+ "focus-within--default": "_focus-within--default_1mqhf_598",
2271
+ "focus-within--danger": "_focus-within--danger_1mqhf_602",
2272
+ "focus--input": "_focus--input_1mqhf_607",
2273
+ "focus--button": "_focus--button_1mqhf_612",
2274
+ "focus--card": "_focus--card_1mqhf_617",
2275
2275
  swap: Qc,
2276
- "swap--text": "_swap--text_5wxto_641",
2277
- "swap--icon": "_swap--icon_5wxto_652",
2278
- "swap--icon-xs": "_swap--icon-xs_5wxto_662",
2279
- "swap--icon-s": "_swap--icon-s_5wxto_667",
2280
- "swap--icon-m": "_swap--icon-m_5wxto_672",
2281
- "swap--icon-l": "_swap--icon-l_5wxto_677",
2282
- "swap--icon-xl": "_swap--icon-xl_5wxto_682",
2276
+ "swap--text": "_swap--text_1mqhf_641",
2277
+ "swap--icon": "_swap--icon_1mqhf_652",
2278
+ "swap--icon-xs": "_swap--icon-xs_1mqhf_662",
2279
+ "swap--icon-s": "_swap--icon-s_1mqhf_667",
2280
+ "swap--icon-m": "_swap--icon-m_1mqhf_672",
2281
+ "swap--icon-l": "_swap--icon-l_1mqhf_677",
2282
+ "swap--icon-xl": "_swap--icon-xl_1mqhf_682",
2283
2283
  swap__content: Jc,
2284
- "swap--group-horizontal": "_swap--group-horizontal_5wxto_697",
2285
- "swap--group-vertical": "_swap--group-vertical_5wxto_704",
2286
- "swap--with-background": "_swap--with-background_5wxto_712",
2287
- "swap--with-border": "_swap--with-border_5wxto_718",
2288
- "swap--interactive": "_swap--interactive_5wxto_726",
2284
+ "swap--group-horizontal": "_swap--group-horizontal_1mqhf_697",
2285
+ "swap--group-vertical": "_swap--group-vertical_1mqhf_704",
2286
+ "swap--with-background": "_swap--with-background_1mqhf_712",
2287
+ "swap--with-border": "_swap--with-border_1mqhf_718",
2288
+ "swap--interactive": "_swap--interactive_1mqhf_726",
2289
2289
  segmentGroup: el,
2290
2290
  fullWidth: tl,
2291
2291
  segmentItem: nl,
2292
- "size-s": "_size-s_5wxto_802",
2293
- "size-m": "_size-m_5wxto_809",
2294
- "size-l": "_size-l_5wxto_816",
2292
+ "size-s": "_size-s_1mqhf_806",
2293
+ "size-m": "_size-m_1mqhf_813",
2294
+ "size-l": "_size-l_1mqhf_820",
2295
2295
  disabled: ol,
2296
2296
  active: rl,
2297
2297
  hover: sl,
2298
- "variant-filled": "_variant-filled_5wxto_866",
2299
- "variant-outlined": "_variant-outlined_5wxto_875"
2300
- }, A2 = ({
2298
+ "variant-filled": "_variant-filled_1mqhf_870",
2299
+ "variant-outlined": "_variant-outlined_1mqhf_879"
2300
+ }, Tf = ({
2301
2301
  options: e,
2302
2302
  value: t,
2303
2303
  onChange: n,
@@ -2316,7 +2316,7 @@ const N2 = ({
2316
2316
  je.segmentGroup,
2317
2317
  je[`size-${o}`],
2318
2318
  je[`variant-${r}`],
2319
- a && je.fullWidth,
2319
+ { [je.fullWidth]: a },
2320
2320
  s
2321
2321
  ),
2322
2322
  children: e.map((u) => /* @__PURE__ */ f(
@@ -2421,7 +2421,7 @@ var dl = [
2421
2421
  "span",
2422
2422
  "svg",
2423
2423
  "ul"
2424
- ], K = dl.reduce((e, t) => {
2424
+ ], G = dl.reduce((e, t) => {
2425
2425
  const n = /* @__PURE__ */ Dt(`Primitive.${t}`), o = p.forwardRef((r, s) => {
2426
2426
  const { asChild: a, ...i } = r, c = a ? n : t;
2427
2427
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...i, ref: s });
@@ -2432,7 +2432,7 @@ function fl(e, t) {
2432
2432
  e && Zt.flushSync(() => e.dispatchEvent(t));
2433
2433
  }
2434
2434
  var _l = "Label", Jo = p.forwardRef((e, t) => /* @__PURE__ */ f(
2435
- K.label,
2435
+ G.label,
2436
2436
  {
2437
2437
  ...e,
2438
2438
  ref: t,
@@ -2458,13 +2458,13 @@ function Wn(e, t = []) {
2458
2458
  const i = p.createContext(a), c = n.length;
2459
2459
  n = [...n, a];
2460
2460
  const l = (d) => {
2461
- const { scope: h, children: m, ...w } = d, _ = h?.[e]?.[c] || i, g = p.useMemo(() => w, Object.values(w));
2461
+ const { scope: h, children: m, ...v } = d, _ = h?.[e]?.[c] || i, g = p.useMemo(() => v, Object.values(v));
2462
2462
  return /* @__PURE__ */ f(_.Provider, { value: g, children: m });
2463
2463
  };
2464
2464
  l.displayName = s + "Provider";
2465
2465
  function u(d, h) {
2466
- const m = h?.[e]?.[c] || i, w = p.useContext(m);
2467
- if (w) return w;
2466
+ const m = h?.[e]?.[c] || i, v = p.useContext(m);
2467
+ if (v) return v;
2468
2468
  if (a !== void 0) return a;
2469
2469
  throw new Error(`\`${d}\` must be used within \`${s}\``);
2470
2470
  }
@@ -2505,25 +2505,25 @@ function ml(e) {
2505
2505
  t,
2506
2506
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
2507
2507
  ), a = (_) => {
2508
- const { scope: g, children: v } = _, C = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
2509
- return /* @__PURE__ */ f(r, { scope: g, itemMap: b, collectionRef: C, children: v });
2508
+ const { scope: g, children: w } = _, C = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
2509
+ return /* @__PURE__ */ f(r, { scope: g, itemMap: b, collectionRef: C, children: w });
2510
2510
  };
2511
2511
  a.displayName = t;
2512
2512
  const i = e + "CollectionSlot", c = /* @__PURE__ */ Dt(i), l = M.forwardRef(
2513
2513
  (_, g) => {
2514
- const { scope: v, children: C } = _, b = s(i, v), x = ne(g, b.collectionRef);
2515
- return /* @__PURE__ */ f(c, { ref: x, children: C });
2514
+ const { scope: w, children: C } = _, b = s(i, w), y = ne(g, b.collectionRef);
2515
+ return /* @__PURE__ */ f(c, { ref: y, children: C });
2516
2516
  }
2517
2517
  );
2518
2518
  l.displayName = i;
2519
2519
  const u = e + "CollectionItemSlot", d = "data-radix-collection-item", h = /* @__PURE__ */ Dt(u), m = M.forwardRef(
2520
2520
  (_, g) => {
2521
- const { scope: v, children: C, ...b } = _, x = M.useRef(null), y = ne(g, x), E = s(u, v);
2522
- return M.useEffect(() => (E.itemMap.set(x, { ref: x, ...b }), () => void E.itemMap.delete(x))), /* @__PURE__ */ f(h, { [d]: "", ref: y, children: C });
2521
+ const { scope: w, children: C, ...b } = _, y = M.useRef(null), x = ne(g, y), E = s(u, w);
2522
+ return M.useEffect(() => (E.itemMap.set(y, { ref: y, ...b }), () => void E.itemMap.delete(y))), /* @__PURE__ */ f(h, { [d]: "", ref: x, children: C });
2523
2523
  }
2524
2524
  );
2525
2525
  m.displayName = u;
2526
- function w(_) {
2526
+ function v(_) {
2527
2527
  const g = s(e + "CollectionConsumer", _);
2528
2528
  return M.useCallback(() => {
2529
2529
  const C = g.collectionRef.current;
@@ -2536,12 +2536,12 @@ function ml(e) {
2536
2536
  }
2537
2537
  return [
2538
2538
  { Provider: a, Slot: l, ItemSlot: m },
2539
- w,
2539
+ v,
2540
2540
  o
2541
2541
  ];
2542
2542
  }
2543
2543
  var gl = p.createContext(void 0);
2544
- function wl(e) {
2544
+ function vl(e) {
2545
2545
  const t = p.useContext(gl);
2546
2546
  return e || t || "ltr";
2547
2547
  }
@@ -2557,7 +2557,7 @@ function Ze(e) {
2557
2557
  t.current = e;
2558
2558
  }), p.useMemo(() => (...n) => t.current?.(...n), []);
2559
2559
  }
2560
- function vl(e, t = globalThis?.document) {
2560
+ function wl(e, t = globalThis?.document) {
2561
2561
  const n = Ze(e);
2562
2562
  p.useEffect(() => {
2563
2563
  const o = (r) => {
@@ -2566,7 +2566,7 @@ function vl(e, t = globalThis?.document) {
2566
2566
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
2567
2567
  }, [n, t]);
2568
2568
  }
2569
- var Cl = "DismissableLayer", xn = "dismissableLayer.update", bl = "dismissableLayer.pointerDownOutside", xl = "dismissableLayer.focusOutside", io, er = p.createContext({
2569
+ var Cl = "DismissableLayer", yn = "dismissableLayer.update", bl = "dismissableLayer.pointerDownOutside", yl = "dismissableLayer.focusOutside", io, er = p.createContext({
2570
2570
  layers: /* @__PURE__ */ new Set(),
2571
2571
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2572
2572
  branches: /* @__PURE__ */ new Set()
@@ -2580,14 +2580,14 @@ var Cl = "DismissableLayer", xn = "dismissableLayer.update", bl = "dismissableLa
2580
2580
  onInteractOutside: a,
2581
2581
  onDismiss: i,
2582
2582
  ...c
2583
- } = e, l = p.useContext(er), [u, d] = p.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, m] = p.useState({}), w = ne(t, (S) => d(S)), _ = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = _.indexOf(g), C = u ? _.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= v, y = El((S) => {
2583
+ } = e, l = p.useContext(er), [u, d] = p.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, m] = p.useState({}), v = ne(t, (S) => d(S)), _ = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = _.indexOf(g), C = u ? _.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, y = C >= w, x = El((S) => {
2584
2584
  const L = S.target, $ = [...l.branches].some((N) => N.contains(L));
2585
- !x || $ || (r?.(S), a?.(S), S.defaultPrevented || i?.());
2585
+ !y || $ || (r?.(S), a?.(S), S.defaultPrevented || i?.());
2586
2586
  }, h), E = Ll((S) => {
2587
2587
  const L = S.target;
2588
2588
  [...l.branches].some((N) => N.contains(L)) || (s?.(S), a?.(S), S.defaultPrevented || i?.());
2589
2589
  }, h);
2590
- return vl((S) => {
2590
+ return wl((S) => {
2591
2591
  C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
2592
2592
  }, h), p.useEffect(() => {
2593
2593
  if (u)
@@ -2598,28 +2598,28 @@ var Cl = "DismissableLayer", xn = "dismissableLayer.update", bl = "dismissableLa
2598
2598
  u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), co());
2599
2599
  }, [u, l]), p.useEffect(() => {
2600
2600
  const S = () => m({});
2601
- return document.addEventListener(xn, S), () => document.removeEventListener(xn, S);
2601
+ return document.addEventListener(yn, S), () => document.removeEventListener(yn, S);
2602
2602
  }, []), /* @__PURE__ */ f(
2603
- K.div,
2603
+ G.div,
2604
2604
  {
2605
2605
  ...c,
2606
- ref: w,
2606
+ ref: v,
2607
2607
  style: {
2608
- pointerEvents: b ? x ? "auto" : "none" : void 0,
2608
+ pointerEvents: b ? y ? "auto" : "none" : void 0,
2609
2609
  ...e.style
2610
2610
  },
2611
2611
  onFocusCapture: cn(e.onFocusCapture, E.onFocusCapture),
2612
2612
  onBlurCapture: cn(e.onBlurCapture, E.onBlurCapture),
2613
2613
  onPointerDownCapture: cn(
2614
2614
  e.onPointerDownCapture,
2615
- y.onPointerDownCapture
2615
+ x.onPointerDownCapture
2616
2616
  )
2617
2617
  }
2618
2618
  );
2619
2619
  }
2620
2620
  );
2621
2621
  tr.displayName = Cl;
2622
- var yl = "DismissableLayerBranch", Sl = p.forwardRef((e, t) => {
2622
+ var xl = "DismissableLayerBranch", Sl = p.forwardRef((e, t) => {
2623
2623
  const n = p.useContext(er), o = p.useRef(null), r = ne(t, o);
2624
2624
  return p.useEffect(() => {
2625
2625
  const s = o.current;
@@ -2627,9 +2627,9 @@ var yl = "DismissableLayerBranch", Sl = p.forwardRef((e, t) => {
2627
2627
  return n.branches.add(s), () => {
2628
2628
  n.branches.delete(s);
2629
2629
  };
2630
- }, [n.branches]), /* @__PURE__ */ f(K.div, { ...e, ref: r });
2630
+ }, [n.branches]), /* @__PURE__ */ f(G.div, { ...e, ref: r });
2631
2631
  });
2632
- Sl.displayName = yl;
2632
+ Sl.displayName = xl;
2633
2633
  function El(e, t = globalThis?.document) {
2634
2634
  const n = Ze(e), o = p.useRef(!1), r = p.useRef(() => {
2635
2635
  });
@@ -2664,7 +2664,7 @@ function Ll(e, t = globalThis?.document) {
2664
2664
  const n = Ze(e), o = p.useRef(!1);
2665
2665
  return p.useEffect(() => {
2666
2666
  const r = (s) => {
2667
- s.target && !o.current && nr(xl, n, { originalEvent: s }, {
2667
+ s.target && !o.current && nr(yl, n, { originalEvent: s }, {
2668
2668
  discrete: !1
2669
2669
  });
2670
2670
  };
@@ -2675,7 +2675,7 @@ function Ll(e, t = globalThis?.document) {
2675
2675
  };
2676
2676
  }
2677
2677
  function co() {
2678
- const e = new CustomEvent(xn);
2678
+ const e = new CustomEvent(yn);
2679
2679
  document.dispatchEvent(e);
2680
2680
  }
2681
2681
  function nr(e, t, n, { discrete: o }) {
@@ -2715,19 +2715,19 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
2715
2715
  if (o) {
2716
2716
  let _ = function(b) {
2717
2717
  if (m.paused || !i) return;
2718
- const x = b.target;
2719
- i.contains(x) ? d.current = x : Te(d.current, { select: !0 });
2718
+ const y = b.target;
2719
+ i.contains(y) ? d.current = y : Te(d.current, { select: !0 });
2720
2720
  }, g = function(b) {
2721
2721
  if (m.paused || !i) return;
2722
- const x = b.relatedTarget;
2723
- x !== null && (i.contains(x) || Te(d.current, { select: !0 }));
2724
- }, v = function(b) {
2722
+ const y = b.relatedTarget;
2723
+ y !== null && (i.contains(y) || Te(d.current, { select: !0 }));
2724
+ }, w = function(b) {
2725
2725
  if (document.activeElement === document.body)
2726
- for (const y of b)
2727
- y.removedNodes.length > 0 && Te(i);
2726
+ for (const x of b)
2727
+ x.removedNodes.length > 0 && Te(i);
2728
2728
  };
2729
2729
  document.addEventListener("focusin", _), document.addEventListener("focusout", g);
2730
- const C = new MutationObserver(v);
2730
+ const C = new MutationObserver(w);
2731
2731
  return i && C.observe(i, { childList: !0, subtree: !0 }), () => {
2732
2732
  document.removeEventListener("focusin", _), document.removeEventListener("focusout", g), C.disconnect();
2733
2733
  };
@@ -2737,29 +2737,29 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
2737
2737
  _o.add(m);
2738
2738
  const _ = document.activeElement;
2739
2739
  if (!i.contains(_)) {
2740
- const v = new CustomEvent(un, uo);
2741
- i.addEventListener(un, l), i.dispatchEvent(v), v.defaultPrevented || (Rl(Ml(rr(i)), { select: !0 }), document.activeElement === _ && Te(i));
2740
+ const w = new CustomEvent(un, uo);
2741
+ i.addEventListener(un, l), i.dispatchEvent(w), w.defaultPrevented || (Rl(Ml(rr(i)), { select: !0 }), document.activeElement === _ && Te(i));
2742
2742
  }
2743
2743
  return () => {
2744
2744
  i.removeEventListener(un, l), setTimeout(() => {
2745
- const v = new CustomEvent(dn, uo);
2746
- i.addEventListener(dn, u), i.dispatchEvent(v), v.defaultPrevented || Te(_ ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(m);
2745
+ const w = new CustomEvent(dn, uo);
2746
+ i.addEventListener(dn, u), i.dispatchEvent(w), w.defaultPrevented || Te(_ ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(m);
2747
2747
  }, 0);
2748
2748
  };
2749
2749
  }
2750
2750
  }, [i, l, u, m]);
2751
- const w = p.useCallback(
2751
+ const v = p.useCallback(
2752
2752
  (_) => {
2753
2753
  if (!n && !o || m.paused) return;
2754
- const g = _.key === "Tab" && !_.altKey && !_.ctrlKey && !_.metaKey, v = document.activeElement;
2755
- if (g && v) {
2756
- const C = _.currentTarget, [b, x] = Nl(C);
2757
- b && x ? !_.shiftKey && v === x ? (_.preventDefault(), n && Te(b, { select: !0 })) : _.shiftKey && v === b && (_.preventDefault(), n && Te(x, { select: !0 })) : v === C && _.preventDefault();
2754
+ const g = _.key === "Tab" && !_.altKey && !_.ctrlKey && !_.metaKey, w = document.activeElement;
2755
+ if (g && w) {
2756
+ const C = _.currentTarget, [b, y] = Nl(C);
2757
+ b && y ? !_.shiftKey && w === y ? (_.preventDefault(), n && Te(b, { select: !0 })) : _.shiftKey && w === b && (_.preventDefault(), n && Te(y, { select: !0 })) : w === C && _.preventDefault();
2758
2758
  }
2759
2759
  },
2760
2760
  [n, o, m.paused]
2761
2761
  );
2762
- return /* @__PURE__ */ f(K.div, { tabIndex: -1, ...a, ref: h, onKeyDown: w });
2762
+ return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
2763
2763
  });
2764
2764
  or.displayName = Pl;
2765
2765
  function Rl(e, { select: t = !1 } = {}) {
@@ -2832,7 +2832,7 @@ function Fn(e) {
2832
2832
  n((o) => o ?? String(zl++));
2833
2833
  }, [e]), e || (t ? `radix-${t}` : "");
2834
2834
  }
2835
- const Ol = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt = Math.round, $t = Math.floor, xe = (e) => ({
2835
+ const Ol = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt = Math.round, $t = Math.floor, ye = (e) => ({
2836
2836
  x: e,
2837
2837
  y: e
2838
2838
  }), Dl = {
@@ -2844,7 +2844,7 @@ const Ol = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt
2844
2844
  start: "end",
2845
2845
  end: "start"
2846
2846
  };
2847
- function yn(e, t, n) {
2847
+ function xn(e, t, n) {
2848
2848
  return ue(e, Me(t, n));
2849
2849
  }
2850
2850
  function Le(e, t) {
@@ -2866,12 +2866,12 @@ const Hl = /* @__PURE__ */ new Set(["top", "bottom"]);
2866
2866
  function be(e) {
2867
2867
  return Hl.has($e(e)) ? "y" : "x";
2868
2868
  }
2869
- function Xn(e) {
2869
+ function qn(e) {
2870
2870
  return Un(be(e));
2871
2871
  }
2872
2872
  function Bl(e, t, n) {
2873
2873
  n === void 0 && (n = !1);
2874
- const o = lt(e), r = Xn(e), s = Zn(r);
2874
+ const o = lt(e), r = qn(e), s = Zn(r);
2875
2875
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
2876
2876
  return t.reference[s] > t.floating[s] && (a = Ht(a)), [a, Ht(a)];
2877
2877
  }
@@ -2903,7 +2903,7 @@ function Zl(e, t, n, o) {
2903
2903
  function Ht(e) {
2904
2904
  return e.replace(/left|right|bottom|top/g, (t) => Dl[t]);
2905
2905
  }
2906
- function Xl(e) {
2906
+ function ql(e) {
2907
2907
  return {
2908
2908
  top: 0,
2909
2909
  right: 0,
@@ -2913,7 +2913,7 @@ function Xl(e) {
2913
2913
  };
2914
2914
  }
2915
2915
  function sr(e) {
2916
- return typeof e != "number" ? Xl(e) : {
2916
+ return typeof e != "number" ? ql(e) : {
2917
2917
  top: e,
2918
2918
  right: e,
2919
2919
  bottom: e,
@@ -2943,7 +2943,7 @@ function go(e, t, n) {
2943
2943
  reference: o,
2944
2944
  floating: r
2945
2945
  } = e;
2946
- const s = be(t), a = Xn(t), i = Zn(a), c = $e(t), l = s === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, h = o[i] / 2 - r[i] / 2;
2946
+ const s = be(t), a = qn(t), i = Zn(a), c = $e(t), l = s === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, h = o[i] / 2 - r[i] / 2;
2947
2947
  let m;
2948
2948
  switch (c) {
2949
2949
  case "top":
@@ -2986,7 +2986,7 @@ function go(e, t, n) {
2986
2986
  }
2987
2987
  return m;
2988
2988
  }
2989
- const Yl = async (e, t, n) => {
2989
+ const Xl = async (e, t, n) => {
2990
2990
  const {
2991
2991
  placement: o = "bottom",
2992
2992
  strategy: r = "absolute",
@@ -3000,17 +3000,17 @@ const Yl = async (e, t, n) => {
3000
3000
  }), {
3001
3001
  x: u,
3002
3002
  y: d
3003
- } = go(l, o, c), h = o, m = {}, w = 0;
3003
+ } = go(l, o, c), h = o, m = {}, v = 0;
3004
3004
  for (let _ = 0; _ < i.length; _++) {
3005
3005
  const {
3006
3006
  name: g,
3007
- fn: v
3007
+ fn: w
3008
3008
  } = i[_], {
3009
3009
  x: C,
3010
3010
  y: b,
3011
- data: x,
3012
- reset: y
3013
- } = await v({
3011
+ data: y,
3012
+ reset: x
3013
+ } = await w({
3014
3014
  x: u,
3015
3015
  y: d,
3016
3016
  initialPlacement: o,
@@ -3028,13 +3028,13 @@ const Yl = async (e, t, n) => {
3028
3028
  ...m,
3029
3029
  [g]: {
3030
3030
  ...m[g],
3031
- ...x
3031
+ ...y
3032
3032
  }
3033
- }, y && w <= 50 && (w++, typeof y == "object" && (y.placement && (h = y.placement), y.rects && (l = y.rects === !0 ? await a.getElementRects({
3033
+ }, x && v <= 50 && (v++, typeof x == "object" && (x.placement && (h = x.placement), x.rects && (l = x.rects === !0 ? await a.getElementRects({
3034
3034
  reference: e,
3035
3035
  floating: t,
3036
3036
  strategy: r
3037
- }) : y.rects), {
3037
+ }) : x.rects), {
3038
3038
  x: u,
3039
3039
  y: d
3040
3040
  } = go(l, h, c)), _ = -1);
@@ -3047,7 +3047,7 @@ const Yl = async (e, t, n) => {
3047
3047
  middlewareData: m
3048
3048
  };
3049
3049
  };
3050
- async function vt(e, t) {
3050
+ async function wt(e, t) {
3051
3051
  var n;
3052
3052
  t === void 0 && (t = {});
3053
3053
  const {
@@ -3063,7 +3063,7 @@ async function vt(e, t) {
3063
3063
  elementContext: d = "floating",
3064
3064
  altBoundary: h = !1,
3065
3065
  padding: m = 0
3066
- } = Le(t, e), w = sr(m), g = i[h ? d === "floating" ? "reference" : "floating" : d], v = Bt(await s.getClippingRect({
3066
+ } = Le(t, e), v = sr(m), g = i[h ? d === "floating" ? "reference" : "floating" : d], w = Bt(await s.getClippingRect({
3067
3067
  element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
3068
3068
  boundary: l,
3069
3069
  rootBoundary: u,
@@ -3073,26 +3073,26 @@ async function vt(e, t) {
3073
3073
  y: r,
3074
3074
  width: a.floating.width,
3075
3075
  height: a.floating.height
3076
- } : a.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), x = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
3076
+ } : a.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), y = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
3077
3077
  x: 1,
3078
3078
  y: 1
3079
3079
  } : {
3080
3080
  x: 1,
3081
3081
  y: 1
3082
- }, y = Bt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
3082
+ }, x = Bt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
3083
3083
  elements: i,
3084
3084
  rect: C,
3085
3085
  offsetParent: b,
3086
3086
  strategy: c
3087
3087
  }) : C);
3088
3088
  return {
3089
- top: (v.top - y.top + w.top) / x.y,
3090
- bottom: (y.bottom - v.bottom + w.bottom) / x.y,
3091
- left: (v.left - y.left + w.left) / x.x,
3092
- right: (y.right - v.right + w.right) / x.x
3089
+ top: (w.top - x.top + v.top) / y.y,
3090
+ bottom: (x.bottom - w.bottom + v.bottom) / y.y,
3091
+ left: (w.left - x.left + v.left) / y.x,
3092
+ right: (x.right - w.right + v.right) / y.x
3093
3093
  };
3094
3094
  }
3095
- const Gl = (e) => ({
3095
+ const Yl = (e) => ({
3096
3096
  name: "arrow",
3097
3097
  options: e,
3098
3098
  async fn(t) {
@@ -3113,10 +3113,10 @@ const Gl = (e) => ({
3113
3113
  const d = sr(u), h = {
3114
3114
  x: n,
3115
3115
  y: o
3116
- }, m = Xn(r), w = Zn(m), _ = await a.getDimensions(l), g = m === "y", v = g ? "top" : "left", C = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", x = s.reference[w] + s.reference[m] - h[m] - s.floating[w], y = h[m] - s.reference[m], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
3116
+ }, m = qn(r), v = Zn(m), _ = await a.getDimensions(l), g = m === "y", w = g ? "top" : "left", C = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[m] - h[m] - s.floating[v], x = h[m] - s.reference[m], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
3117
3117
  let S = E ? E[b] : 0;
3118
- (!S || !await (a.isElement == null ? void 0 : a.isElement(E))) && (S = i.floating[b] || s.floating[w]);
3119
- const L = x / 2 - y / 2, $ = S / 2 - _[w] / 2 - 1, N = Me(d[v], $), z = Me(d[C], $), B = N, V = S - _[w] - z, T = S / 2 - _[w] / 2 + L, Z = yn(B, T, V), O = !c.arrow && lt(r) != null && T !== Z && s.reference[w] / 2 - (T < B ? N : z) - _[w] / 2 < 0, H = O ? T < B ? T - B : T - V : 0;
3118
+ (!S || !await (a.isElement == null ? void 0 : a.isElement(E))) && (S = i.floating[b] || s.floating[v]);
3119
+ const L = y / 2 - x / 2, $ = S / 2 - _[v] / 2 - 1, N = Me(d[w], $), z = Me(d[C], $), B = N, V = S - _[v] - z, T = S / 2 - _[v] / 2 + L, Z = xn(B, T, V), O = !c.arrow && lt(r) != null && T !== Z && s.reference[v] / 2 - (T < B ? N : z) - _[v] / 2 < 0, H = O ? T < B ? T - B : T - V : 0;
3120
3120
  return {
3121
3121
  [m]: h[m] + H,
3122
3122
  data: {
@@ -3129,7 +3129,7 @@ const Gl = (e) => ({
3129
3129
  reset: O
3130
3130
  };
3131
3131
  }
3132
- }), Kl = function(e) {
3132
+ }), Gl = function(e) {
3133
3133
  return e === void 0 && (e = {}), {
3134
3134
  name: "flip",
3135
3135
  options: e,
@@ -3147,18 +3147,18 @@ const Gl = (e) => ({
3147
3147
  crossAxis: d = !0,
3148
3148
  fallbackPlacements: h,
3149
3149
  fallbackStrategy: m = "bestFit",
3150
- fallbackAxisSideDirection: w = "none",
3150
+ fallbackAxisSideDirection: v = "none",
3151
3151
  flipAlignment: _ = !0,
3152
3152
  ...g
3153
3153
  } = Le(e, t);
3154
3154
  if ((n = s.arrow) != null && n.alignmentOffset)
3155
3155
  return {};
3156
- const v = $e(r), C = be(i), b = $e(i) === i, x = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), y = h || (b || !_ ? [Ht(i)] : jl(i)), E = w !== "none";
3157
- !h && E && y.push(...Zl(i, _, w, x));
3158
- const S = [i, ...y], L = await vt(t, g), $ = [];
3156
+ const w = $e(r), C = be(i), b = $e(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = h || (b || !_ ? [Ht(i)] : jl(i)), E = v !== "none";
3157
+ !h && E && x.push(...Zl(i, _, v, y));
3158
+ const S = [i, ...x], L = await wt(t, g), $ = [];
3159
3159
  let N = ((o = s.flip) == null ? void 0 : o.overflows) || [];
3160
- if (u && $.push(L[v]), d) {
3161
- const T = Bl(r, a, x);
3160
+ if (u && $.push(L[w]), d) {
3161
+ const T = Bl(r, a, y);
3162
3162
  $.push(L[T[0]], L[T[1]]);
3163
3163
  }
3164
3164
  if (N = [...N, {
@@ -3211,7 +3211,7 @@ const Gl = (e) => ({
3211
3211
  }
3212
3212
  };
3213
3213
  };
3214
- function wo(e, t) {
3214
+ function vo(e, t) {
3215
3215
  return {
3216
3216
  top: e.top - t.height,
3217
3217
  right: e.right - t.width,
@@ -3219,10 +3219,10 @@ function wo(e, t) {
3219
3219
  left: e.left - t.width
3220
3220
  };
3221
3221
  }
3222
- function vo(e) {
3222
+ function wo(e) {
3223
3223
  return Ol.some((t) => e[t] >= 0);
3224
3224
  }
3225
- const ql = function(e) {
3225
+ const Kl = function(e) {
3226
3226
  return e === void 0 && (e = {}), {
3227
3227
  name: "hide",
3228
3228
  options: e,
@@ -3235,26 +3235,26 @@ const ql = function(e) {
3235
3235
  } = Le(e, t);
3236
3236
  switch (o) {
3237
3237
  case "referenceHidden": {
3238
- const s = await vt(t, {
3238
+ const s = await wt(t, {
3239
3239
  ...r,
3240
3240
  elementContext: "reference"
3241
- }), a = wo(s, n.reference);
3241
+ }), a = vo(s, n.reference);
3242
3242
  return {
3243
3243
  data: {
3244
3244
  referenceHiddenOffsets: a,
3245
- referenceHidden: vo(a)
3245
+ referenceHidden: wo(a)
3246
3246
  }
3247
3247
  };
3248
3248
  }
3249
3249
  case "escaped": {
3250
- const s = await vt(t, {
3250
+ const s = await wt(t, {
3251
3251
  ...r,
3252
3252
  altBoundary: !0
3253
- }), a = wo(s, n.floating);
3253
+ }), a = vo(s, n.floating);
3254
3254
  return {
3255
3255
  data: {
3256
3256
  escapedOffsets: a,
3257
- escaped: vo(a)
3257
+ escaped: wo(a)
3258
3258
  }
3259
3259
  };
3260
3260
  }
@@ -3273,7 +3273,7 @@ async function Ql(e, t) {
3273
3273
  let {
3274
3274
  mainAxis: h,
3275
3275
  crossAxis: m,
3276
- alignmentAxis: w
3276
+ alignmentAxis: v
3277
3277
  } = typeof d == "number" ? {
3278
3278
  mainAxis: d,
3279
3279
  crossAxis: 0,
@@ -3283,7 +3283,7 @@ async function Ql(e, t) {
3283
3283
  crossAxis: d.crossAxis || 0,
3284
3284
  alignmentAxis: d.alignmentAxis
3285
3285
  };
3286
- return i && typeof w == "number" && (m = i === "end" ? w * -1 : w), c ? {
3286
+ return i && typeof v == "number" && (m = i === "end" ? v * -1 : v), c ? {
3287
3287
  x: m * u,
3288
3288
  y: h * l
3289
3289
  } : {
@@ -3328,11 +3328,11 @@ const Jl = function(e) {
3328
3328
  limiter: i = {
3329
3329
  fn: (g) => {
3330
3330
  let {
3331
- x: v,
3331
+ x: w,
3332
3332
  y: C
3333
3333
  } = g;
3334
3334
  return {
3335
- x: v,
3335
+ x: w,
3336
3336
  y: C
3337
3337
  };
3338
3338
  }
@@ -3341,20 +3341,20 @@ const Jl = function(e) {
3341
3341
  } = Le(e, t), l = {
3342
3342
  x: n,
3343
3343
  y: o
3344
- }, u = await vt(t, c), d = be($e(r)), h = Un(d);
3345
- let m = l[h], w = l[d];
3344
+ }, u = await wt(t, c), d = be($e(r)), h = Un(d);
3345
+ let m = l[h], v = l[d];
3346
3346
  if (s) {
3347
- const g = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", C = m + u[g], b = m - u[v];
3348
- m = yn(C, m, b);
3347
+ const g = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", C = m + u[g], b = m - u[w];
3348
+ m = xn(C, m, b);
3349
3349
  }
3350
3350
  if (a) {
3351
- const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", C = w + u[g], b = w - u[v];
3352
- w = yn(C, w, b);
3351
+ const g = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", C = v + u[g], b = v - u[w];
3352
+ v = xn(C, v, b);
3353
3353
  }
3354
3354
  const _ = i.fn({
3355
3355
  ...t,
3356
3356
  [h]: m,
3357
- [d]: w
3357
+ [d]: v
3358
3358
  });
3359
3359
  return {
3360
3360
  ..._,
@@ -3387,7 +3387,7 @@ const Jl = function(e) {
3387
3387
  x: n,
3388
3388
  y: o
3389
3389
  }, d = be(r), h = Un(d);
3390
- let m = u[h], w = u[d];
3390
+ let m = u[h], v = u[d];
3391
3391
  const _ = Le(i, t), g = typeof _ == "number" ? {
3392
3392
  mainAxis: _,
3393
3393
  crossAxis: 0
@@ -3397,17 +3397,17 @@ const Jl = function(e) {
3397
3397
  ..._
3398
3398
  };
3399
3399
  if (c) {
3400
- const b = h === "y" ? "height" : "width", x = s.reference[h] - s.floating[b] + g.mainAxis, y = s.reference[h] + s.reference[b] - g.mainAxis;
3401
- m < x ? m = x : m > y && (m = y);
3400
+ const b = h === "y" ? "height" : "width", y = s.reference[h] - s.floating[b] + g.mainAxis, x = s.reference[h] + s.reference[b] - g.mainAxis;
3401
+ m < y ? m = y : m > x && (m = x);
3402
3402
  }
3403
3403
  if (l) {
3404
- var v, C;
3405
- const b = h === "y" ? "width" : "height", x = ar.has($e(r)), y = s.reference[d] - s.floating[b] + (x && ((v = a.offset) == null ? void 0 : v[d]) || 0) + (x ? 0 : g.crossAxis), E = s.reference[d] + s.reference[b] + (x ? 0 : ((C = a.offset) == null ? void 0 : C[d]) || 0) - (x ? g.crossAxis : 0);
3406
- w < y ? w = y : w > E && (w = E);
3404
+ var w, C;
3405
+ const b = h === "y" ? "width" : "height", y = ar.has($e(r)), x = s.reference[d] - s.floating[b] + (y && ((w = a.offset) == null ? void 0 : w[d]) || 0) + (y ? 0 : g.crossAxis), E = s.reference[d] + s.reference[b] + (y ? 0 : ((C = a.offset) == null ? void 0 : C[d]) || 0) - (y ? g.crossAxis : 0);
3406
+ v < x ? v = x : v > E && (v = E);
3407
3407
  }
3408
3408
  return {
3409
3409
  [h]: m,
3410
- [d]: w
3410
+ [d]: v
3411
3411
  };
3412
3412
  }
3413
3413
  };
@@ -3426,17 +3426,17 @@ const Jl = function(e) {
3426
3426
  apply: c = () => {
3427
3427
  },
3428
3428
  ...l
3429
- } = Le(e, t), u = await vt(t, l), d = $e(r), h = lt(r), m = be(r) === "y", {
3430
- width: w,
3429
+ } = Le(e, t), u = await wt(t, l), d = $e(r), h = lt(r), m = be(r) === "y", {
3430
+ width: v,
3431
3431
  height: _
3432
3432
  } = s.floating;
3433
- let g, v;
3434
- d === "top" || d === "bottom" ? (g = d, v = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = h === "end" ? "top" : "bottom");
3435
- const C = _ - u.top - u.bottom, b = w - u.left - u.right, x = Me(_ - u[g], C), y = Me(w - u[v], b), E = !t.middlewareData.shift;
3436
- let S = x, L = y;
3433
+ let g, w;
3434
+ d === "top" || d === "bottom" ? (g = d, w = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (w = d, g = h === "end" ? "top" : "bottom");
3435
+ const C = _ - u.top - u.bottom, b = v - u.left - u.right, y = Me(_ - u[g], C), x = Me(v - u[w], b), E = !t.middlewareData.shift;
3436
+ let S = y, L = x;
3437
3437
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = C), E && !h) {
3438
3438
  const N = ue(u.left, 0), z = ue(u.right, 0), B = ue(u.top, 0), V = ue(u.bottom, 0);
3439
- m ? L = w - 2 * (N !== 0 || z !== 0 ? N + z : ue(u.left, u.right)) : S = _ - 2 * (B !== 0 || V !== 0 ? B + V : ue(u.top, u.bottom));
3439
+ m ? L = v - 2 * (N !== 0 || z !== 0 ? N + z : ue(u.left, u.right)) : S = _ - 2 * (B !== 0 || V !== 0 ? B + V : ue(u.top, u.bottom));
3440
3440
  }
3441
3441
  await c({
3442
3442
  ...t,
@@ -3444,7 +3444,7 @@ const Jl = function(e) {
3444
3444
  availableHeight: S
3445
3445
  });
3446
3446
  const $ = await a.getDimensions(i.floating);
3447
- return w !== $.width || _ !== $.height ? {
3447
+ return v !== $.width || _ !== $.height ? {
3448
3448
  reset: {
3449
3449
  rects: !0
3450
3450
  }
@@ -3452,7 +3452,7 @@ const Jl = function(e) {
3452
3452
  }
3453
3453
  };
3454
3454
  };
3455
- function Xt() {
3455
+ function qt() {
3456
3456
  return typeof window < "u";
3457
3457
  }
3458
3458
  function ut(e) {
@@ -3467,16 +3467,16 @@ function Se(e) {
3467
3467
  return (t = (ir(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3468
3468
  }
3469
3469
  function ir(e) {
3470
- return Xt() ? e instanceof Node || e instanceof de(e).Node : !1;
3470
+ return qt() ? e instanceof Node || e instanceof de(e).Node : !1;
3471
3471
  }
3472
3472
  function ge(e) {
3473
- return Xt() ? e instanceof Element || e instanceof de(e).Element : !1;
3473
+ return qt() ? e instanceof Element || e instanceof de(e).Element : !1;
3474
3474
  }
3475
- function ye(e) {
3476
- return Xt() ? e instanceof HTMLElement || e instanceof de(e).HTMLElement : !1;
3475
+ function xe(e) {
3476
+ return qt() ? e instanceof HTMLElement || e instanceof de(e).HTMLElement : !1;
3477
3477
  }
3478
3478
  function Co(e) {
3479
- return !Xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof de(e).ShadowRoot;
3479
+ return !qt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof de(e).ShadowRoot;
3480
3480
  }
3481
3481
  const o1 = /* @__PURE__ */ new Set(["inline", "contents"]);
3482
3482
  function bt(e) {
@@ -3485,7 +3485,7 @@ function bt(e) {
3485
3485
  overflowX: n,
3486
3486
  overflowY: o,
3487
3487
  display: r
3488
- } = we(e);
3488
+ } = ve(e);
3489
3489
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !o1.has(r);
3490
3490
  }
3491
3491
  const r1 = /* @__PURE__ */ new Set(["table", "td", "th"]);
@@ -3493,7 +3493,7 @@ function s1(e) {
3493
3493
  return r1.has(ut(e));
3494
3494
  }
3495
3495
  const a1 = [":popover-open", ":modal"];
3496
- function Yt(e) {
3496
+ function Xt(e) {
3497
3497
  return a1.some((t) => {
3498
3498
  try {
3499
3499
  return e.matches(t);
@@ -3503,32 +3503,32 @@ function Yt(e) {
3503
3503
  });
3504
3504
  }
3505
3505
  const i1 = ["transform", "translate", "scale", "rotate", "perspective"], c1 = ["transform", "translate", "scale", "rotate", "perspective", "filter"], l1 = ["paint", "layout", "strict", "content"];
3506
- function Yn(e) {
3507
- const t = Gn(), n = ge(e) ? we(e) : e;
3506
+ function Xn(e) {
3507
+ const t = Yn(), n = ge(e) ? ve(e) : e;
3508
3508
  return i1.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) || c1.some((o) => (n.willChange || "").includes(o)) || l1.some((o) => (n.contain || "").includes(o));
3509
3509
  }
3510
3510
  function u1(e) {
3511
3511
  let t = Ie(e);
3512
- for (; ye(t) && !it(t); ) {
3513
- if (Yn(t))
3512
+ for (; xe(t) && !it(t); ) {
3513
+ if (Xn(t))
3514
3514
  return t;
3515
- if (Yt(t))
3515
+ if (Xt(t))
3516
3516
  return null;
3517
3517
  t = Ie(t);
3518
3518
  }
3519
3519
  return null;
3520
3520
  }
3521
- function Gn() {
3521
+ function Yn() {
3522
3522
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3523
3523
  }
3524
3524
  const d1 = /* @__PURE__ */ new Set(["html", "body", "#document"]);
3525
3525
  function it(e) {
3526
3526
  return d1.has(ut(e));
3527
3527
  }
3528
- function we(e) {
3528
+ function ve(e) {
3529
3529
  return de(e).getComputedStyle(e);
3530
3530
  }
3531
- function Gt(e) {
3531
+ function Yt(e) {
3532
3532
  return ge(e) ? {
3533
3533
  scrollLeft: e.scrollLeft,
3534
3534
  scrollTop: e.scrollTop
@@ -3551,7 +3551,7 @@ function Ie(e) {
3551
3551
  }
3552
3552
  function cr(e) {
3553
3553
  const t = Ie(e);
3554
- return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ye(t) && bt(t) ? t : cr(t);
3554
+ return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : xe(t) && bt(t) ? t : cr(t);
3555
3555
  }
3556
3556
  function Ct(e, t, n) {
3557
3557
  var o;
@@ -3567,22 +3567,22 @@ function En(e) {
3567
3567
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3568
3568
  }
3569
3569
  function lr(e) {
3570
- const t = we(e);
3570
+ const t = ve(e);
3571
3571
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
3572
- const r = ye(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = Vt(n) !== s || Vt(o) !== a;
3572
+ const r = xe(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = Vt(n) !== s || Vt(o) !== a;
3573
3573
  return i && (n = s, o = a), {
3574
3574
  width: n,
3575
3575
  height: o,
3576
3576
  $: i
3577
3577
  };
3578
3578
  }
3579
- function Kn(e) {
3579
+ function Gn(e) {
3580
3580
  return ge(e) ? e : e.contextElement;
3581
3581
  }
3582
3582
  function rt(e) {
3583
- const t = Kn(e);
3584
- if (!ye(t))
3585
- return xe(1);
3583
+ const t = Gn(e);
3584
+ if (!xe(t))
3585
+ return ye(1);
3586
3586
  const n = t.getBoundingClientRect(), {
3587
3587
  width: o,
3588
3588
  height: r,
@@ -3594,10 +3594,10 @@ function rt(e) {
3594
3594
  y: i
3595
3595
  };
3596
3596
  }
3597
- const f1 = /* @__PURE__ */ xe(0);
3597
+ const f1 = /* @__PURE__ */ ye(0);
3598
3598
  function ur(e) {
3599
3599
  const t = de(e);
3600
- return !Gn() || !t.visualViewport ? f1 : {
3600
+ return !Yn() || !t.visualViewport ? f1 : {
3601
3601
  x: t.visualViewport.offsetLeft,
3602
3602
  y: t.visualViewport.offsetTop
3603
3603
  };
@@ -3605,19 +3605,19 @@ function ur(e) {
3605
3605
  function _1(e, t, n) {
3606
3606
  return t === void 0 && (t = !1), !n || t && n !== de(e) ? !1 : t;
3607
3607
  }
3608
- function Xe(e, t, n, o) {
3608
+ function qe(e, t, n, o) {
3609
3609
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3610
- const r = e.getBoundingClientRect(), s = Kn(e);
3611
- let a = xe(1);
3610
+ const r = e.getBoundingClientRect(), s = Gn(e);
3611
+ let a = ye(1);
3612
3612
  t && (o ? ge(o) && (a = rt(o)) : a = rt(e));
3613
- const i = _1(s, n, o) ? ur(s) : xe(0);
3613
+ const i = _1(s, n, o) ? ur(s) : ye(0);
3614
3614
  let c = (r.left + i.x) / a.x, l = (r.top + i.y) / a.y, u = r.width / a.x, d = r.height / a.y;
3615
3615
  if (s) {
3616
3616
  const h = de(s), m = o && ge(o) ? de(o) : o;
3617
- let w = h, _ = En(w);
3618
- for (; _ && o && m !== w; ) {
3619
- const g = rt(_), v = _.getBoundingClientRect(), C = we(_), b = v.left + (_.clientLeft + parseFloat(C.paddingLeft)) * g.x, x = v.top + (_.clientTop + parseFloat(C.paddingTop)) * g.y;
3620
- c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += b, l += x, w = de(_), _ = En(w);
3617
+ let v = h, _ = En(v);
3618
+ for (; _ && o && m !== v; ) {
3619
+ const g = rt(_), w = _.getBoundingClientRect(), C = ve(_), b = w.left + (_.clientLeft + parseFloat(C.paddingLeft)) * g.x, y = w.top + (_.clientTop + parseFloat(C.paddingTop)) * g.y;
3620
+ c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += b, l += y, v = de(_), _ = En(v);
3621
3621
  }
3622
3622
  }
3623
3623
  return Bt({
@@ -3627,12 +3627,12 @@ function Xe(e, t, n, o) {
3627
3627
  y: l
3628
3628
  });
3629
3629
  }
3630
- function Kt(e, t) {
3631
- const n = Gt(e).scrollLeft;
3632
- return t ? t.left + n : Xe(Se(e)).left + n;
3630
+ function Gt(e, t) {
3631
+ const n = Yt(e).scrollLeft;
3632
+ return t ? t.left + n : qe(Se(e)).left + n;
3633
3633
  }
3634
3634
  function dr(e, t) {
3635
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Kt(e, n), r = n.top + t.scrollTop;
3635
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Gt(e, n), r = n.top + t.scrollTop;
3636
3636
  return {
3637
3637
  x: o,
3638
3638
  y: r
@@ -3645,19 +3645,19 @@ function p1(e) {
3645
3645
  offsetParent: o,
3646
3646
  strategy: r
3647
3647
  } = e;
3648
- const s = r === "fixed", a = Se(o), i = t ? Yt(t.floating) : !1;
3648
+ const s = r === "fixed", a = Se(o), i = t ? Xt(t.floating) : !1;
3649
3649
  if (o === a || i && s)
3650
3650
  return n;
3651
3651
  let c = {
3652
3652
  scrollLeft: 0,
3653
3653
  scrollTop: 0
3654
- }, l = xe(1);
3655
- const u = xe(0), d = ye(o);
3656
- if ((d || !d && !s) && ((ut(o) !== "body" || bt(a)) && (c = Gt(o)), ye(o))) {
3657
- const m = Xe(o);
3654
+ }, l = ye(1);
3655
+ const u = ye(0), d = xe(o);
3656
+ if ((d || !d && !s) && ((ut(o) !== "body" || bt(a)) && (c = Yt(o)), xe(o))) {
3657
+ const m = qe(o);
3658
3658
  l = rt(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
3659
3659
  }
3660
- const h = a && !d && !s ? dr(a, c) : xe(0);
3660
+ const h = a && !d && !s ? dr(a, c) : ye(0);
3661
3661
  return {
3662
3662
  width: n.width * l.x,
3663
3663
  height: n.height * l.y,
@@ -3669,10 +3669,10 @@ function h1(e) {
3669
3669
  return Array.from(e.getClientRects());
3670
3670
  }
3671
3671
  function m1(e) {
3672
- const t = Se(e), n = Gt(e), o = e.ownerDocument.body, r = ue(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = ue(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
3673
- let a = -n.scrollLeft + Kt(e);
3672
+ const t = Se(e), n = Yt(e), o = e.ownerDocument.body, r = ue(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = ue(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
3673
+ let a = -n.scrollLeft + Gt(e);
3674
3674
  const i = -n.scrollTop;
3675
- return we(o).direction === "rtl" && (a += ue(t.clientWidth, o.clientWidth) - r), {
3675
+ return ve(o).direction === "rtl" && (a += ue(t.clientWidth, o.clientWidth) - r), {
3676
3676
  width: r,
3677
3677
  height: s,
3678
3678
  x: a,
@@ -3685,13 +3685,13 @@ function g1(e, t) {
3685
3685
  let s = o.clientWidth, a = o.clientHeight, i = 0, c = 0;
3686
3686
  if (r) {
3687
3687
  s = r.width, a = r.height;
3688
- const u = Gn();
3688
+ const u = Yn();
3689
3689
  (!u || u && t === "fixed") && (i = r.offsetLeft, c = r.offsetTop);
3690
3690
  }
3691
- const l = Kt(o);
3691
+ const l = Gt(o);
3692
3692
  if (l <= 0) {
3693
- const u = o.ownerDocument, d = u.body, h = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, w = Math.abs(o.clientWidth - d.clientWidth - m);
3694
- w <= bo && (s -= w);
3693
+ const u = o.ownerDocument, d = u.body, h = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(o.clientWidth - d.clientWidth - m);
3694
+ v <= bo && (s -= v);
3695
3695
  } else l <= bo && (s += l);
3696
3696
  return {
3697
3697
  width: s,
@@ -3700,9 +3700,9 @@ function g1(e, t) {
3700
3700
  y: c
3701
3701
  };
3702
3702
  }
3703
- const w1 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3704
- function v1(e, t) {
3705
- const n = Xe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = ye(e) ? rt(e) : xe(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = r * s.x, l = o * s.y;
3703
+ const v1 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3704
+ function w1(e, t) {
3705
+ const n = qe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = xe(e) ? rt(e) : ye(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = r * s.x, l = o * s.y;
3706
3706
  return {
3707
3707
  width: a,
3708
3708
  height: i,
@@ -3710,14 +3710,14 @@ function v1(e, t) {
3710
3710
  y: l
3711
3711
  };
3712
3712
  }
3713
- function xo(e, t, n) {
3713
+ function yo(e, t, n) {
3714
3714
  let o;
3715
3715
  if (t === "viewport")
3716
3716
  o = g1(e, n);
3717
3717
  else if (t === "document")
3718
3718
  o = m1(Se(e));
3719
3719
  else if (ge(t))
3720
- o = v1(t, n);
3720
+ o = w1(t, n);
3721
3721
  else {
3722
3722
  const r = ur(e);
3723
3723
  o = {
@@ -3731,18 +3731,18 @@ function xo(e, t, n) {
3731
3731
  }
3732
3732
  function fr(e, t) {
3733
3733
  const n = Ie(e);
3734
- return n === t || !ge(n) || it(n) ? !1 : we(n).position === "fixed" || fr(n, t);
3734
+ return n === t || !ge(n) || it(n) ? !1 : ve(n).position === "fixed" || fr(n, t);
3735
3735
  }
3736
3736
  function C1(e, t) {
3737
3737
  const n = t.get(e);
3738
3738
  if (n)
3739
3739
  return n;
3740
3740
  let o = Ct(e, [], !1).filter((i) => ge(i) && ut(i) !== "body"), r = null;
3741
- const s = we(e).position === "fixed";
3741
+ const s = ve(e).position === "fixed";
3742
3742
  let a = s ? Ie(e) : e;
3743
3743
  for (; ge(a) && !it(a); ) {
3744
- const i = we(a), c = Yn(a);
3745
- !c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && w1.has(r.position) || bt(a) && !c && fr(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = Ie(a);
3744
+ const i = ve(a), c = Xn(a);
3745
+ !c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && v1.has(r.position) || bt(a) && !c && fr(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = Ie(a);
3746
3746
  }
3747
3747
  return t.set(e, o), o;
3748
3748
  }
@@ -3753,10 +3753,10 @@ function b1(e) {
3753
3753
  rootBoundary: o,
3754
3754
  strategy: r
3755
3755
  } = e;
3756
- const a = [...n === "clippingAncestors" ? Yt(t) ? [] : C1(t, this._c) : [].concat(n), o], i = a[0], c = a.reduce((l, u) => {
3757
- const d = xo(t, u, r);
3756
+ const a = [...n === "clippingAncestors" ? Xt(t) ? [] : C1(t, this._c) : [].concat(n), o], i = a[0], c = a.reduce((l, u) => {
3757
+ const d = yo(t, u, r);
3758
3758
  return l.top = ue(d.top, l.top), l.right = Me(d.right, l.right), l.bottom = Me(d.bottom, l.bottom), l.left = ue(d.left, l.left), l;
3759
- }, xo(t, i, r));
3759
+ }, yo(t, i, r));
3760
3760
  return {
3761
3761
  width: c.right - c.left,
3762
3762
  height: c.bottom - c.top,
@@ -3764,7 +3764,7 @@ function b1(e) {
3764
3764
  y: c.top
3765
3765
  };
3766
3766
  }
3767
- function x1(e) {
3767
+ function y1(e) {
3768
3768
  const {
3769
3769
  width: t,
3770
3770
  height: n
@@ -3774,23 +3774,23 @@ function x1(e) {
3774
3774
  height: n
3775
3775
  };
3776
3776
  }
3777
- function y1(e, t, n) {
3778
- const o = ye(t), r = Se(t), s = n === "fixed", a = Xe(e, !0, s, t);
3777
+ function x1(e, t, n) {
3778
+ const o = xe(t), r = Se(t), s = n === "fixed", a = qe(e, !0, s, t);
3779
3779
  let i = {
3780
3780
  scrollLeft: 0,
3781
3781
  scrollTop: 0
3782
3782
  };
3783
- const c = xe(0);
3783
+ const c = ye(0);
3784
3784
  function l() {
3785
- c.x = Kt(r);
3785
+ c.x = Gt(r);
3786
3786
  }
3787
3787
  if (o || !o && !s)
3788
- if ((ut(t) !== "body" || bt(r)) && (i = Gt(t)), o) {
3789
- const m = Xe(t, !0, s, t);
3788
+ if ((ut(t) !== "body" || bt(r)) && (i = Yt(t)), o) {
3789
+ const m = qe(t, !0, s, t);
3790
3790
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3791
3791
  } else r && l();
3792
3792
  s && !o && r && l();
3793
- const u = r && !o && !s ? dr(r, i) : xe(0), d = a.left + i.scrollLeft - c.x - u.x, h = a.top + i.scrollTop - c.y - u.y;
3793
+ const u = r && !o && !s ? dr(r, i) : ye(0), d = a.left + i.scrollLeft - c.x - u.x, h = a.top + i.scrollTop - c.y - u.y;
3794
3794
  return {
3795
3795
  x: d,
3796
3796
  y: h,
@@ -3799,10 +3799,10 @@ function y1(e, t, n) {
3799
3799
  };
3800
3800
  }
3801
3801
  function fn(e) {
3802
- return we(e).position === "static";
3802
+ return ve(e).position === "static";
3803
3803
  }
3804
- function yo(e, t) {
3805
- if (!ye(e) || we(e).position === "fixed")
3804
+ function xo(e, t) {
3805
+ if (!xe(e) || ve(e).position === "fixed")
3806
3806
  return null;
3807
3807
  if (t)
3808
3808
  return t(e);
@@ -3811,9 +3811,9 @@ function yo(e, t) {
3811
3811
  }
3812
3812
  function _r(e, t) {
3813
3813
  const n = de(e);
3814
- if (Yt(e))
3814
+ if (Xt(e))
3815
3815
  return n;
3816
- if (!ye(e)) {
3816
+ if (!xe(e)) {
3817
3817
  let r = Ie(e);
3818
3818
  for (; r && !it(r); ) {
3819
3819
  if (ge(r) && !fn(r))
@@ -3822,15 +3822,15 @@ function _r(e, t) {
3822
3822
  }
3823
3823
  return n;
3824
3824
  }
3825
- let o = yo(e, t);
3825
+ let o = xo(e, t);
3826
3826
  for (; o && s1(o) && fn(o); )
3827
- o = yo(o, t);
3828
- return o && it(o) && fn(o) && !Yn(o) ? n : o || u1(e) || n;
3827
+ o = xo(o, t);
3828
+ return o && it(o) && fn(o) && !Xn(o) ? n : o || u1(e) || n;
3829
3829
  }
3830
3830
  const S1 = async function(e) {
3831
3831
  const t = this.getOffsetParent || _r, n = this.getDimensions, o = await n(e.floating);
3832
3832
  return {
3833
- reference: y1(e.reference, await t(e.floating), e.strategy),
3833
+ reference: x1(e.reference, await t(e.floating), e.strategy),
3834
3834
  floating: {
3835
3835
  x: 0,
3836
3836
  y: 0,
@@ -3840,7 +3840,7 @@ const S1 = async function(e) {
3840
3840
  };
3841
3841
  };
3842
3842
  function E1(e) {
3843
- return we(e).direction === "rtl";
3843
+ return ve(e).direction === "rtl";
3844
3844
  }
3845
3845
  const L1 = {
3846
3846
  convertOffsetParentRelativeRectToViewportRelativeRect: p1,
@@ -3849,7 +3849,7 @@ const L1 = {
3849
3849
  getOffsetParent: _r,
3850
3850
  getElementRects: S1,
3851
3851
  getClientRects: h1,
3852
- getDimensions: x1,
3852
+ getDimensions: y1,
3853
3853
  getScale: rt,
3854
3854
  isElement: ge,
3855
3855
  isRTL: E1
@@ -3874,30 +3874,30 @@ function $1(e, t) {
3874
3874
  } = l;
3875
3875
  if (i || t(), !h || !m)
3876
3876
  return;
3877
- const w = $t(d), _ = $t(r.clientWidth - (u + h)), g = $t(r.clientHeight - (d + m)), v = $t(u), b = {
3878
- rootMargin: -w + "px " + -_ + "px " + -g + "px " + -v + "px",
3877
+ const v = $t(d), _ = $t(r.clientWidth - (u + h)), g = $t(r.clientHeight - (d + m)), w = $t(u), b = {
3878
+ rootMargin: -v + "px " + -_ + "px " + -g + "px " + -w + "px",
3879
3879
  threshold: ue(0, Me(1, c)) || 1
3880
3880
  };
3881
- let x = !0;
3882
- function y(E) {
3881
+ let y = !0;
3882
+ function x(E) {
3883
3883
  const S = E[0].intersectionRatio;
3884
3884
  if (S !== c) {
3885
- if (!x)
3885
+ if (!y)
3886
3886
  return a();
3887
3887
  S ? a(!1, S) : o = setTimeout(() => {
3888
3888
  a(!1, 1e-7);
3889
3889
  }, 1e3);
3890
3890
  }
3891
- S === 1 && !pr(l, e.getBoundingClientRect()) && a(), x = !1;
3891
+ S === 1 && !pr(l, e.getBoundingClientRect()) && a(), y = !1;
3892
3892
  }
3893
3893
  try {
3894
- n = new IntersectionObserver(y, {
3894
+ n = new IntersectionObserver(x, {
3895
3895
  ...b,
3896
3896
  // Handle <iframe>s
3897
3897
  root: r.ownerDocument
3898
3898
  });
3899
3899
  } catch {
3900
- n = new IntersectionObserver(y, b);
3900
+ n = new IntersectionObserver(x, b);
3901
3901
  }
3902
3902
  n.observe(e);
3903
3903
  }
@@ -3911,35 +3911,35 @@ function P1(e, t, n, o) {
3911
3911
  elementResize: a = typeof ResizeObserver == "function",
3912
3912
  layoutShift: i = typeof IntersectionObserver == "function",
3913
3913
  animationFrame: c = !1
3914
- } = o, l = Kn(e), u = r || s ? [...l ? Ct(l) : [], ...Ct(t)] : [];
3915
- u.forEach((v) => {
3916
- r && v.addEventListener("scroll", n, {
3914
+ } = o, l = Gn(e), u = r || s ? [...l ? Ct(l) : [], ...Ct(t)] : [];
3915
+ u.forEach((w) => {
3916
+ r && w.addEventListener("scroll", n, {
3917
3917
  passive: !0
3918
- }), s && v.addEventListener("resize", n);
3918
+ }), s && w.addEventListener("resize", n);
3919
3919
  });
3920
3920
  const d = l && i ? $1(l, n) : null;
3921
3921
  let h = -1, m = null;
3922
- a && (m = new ResizeObserver((v) => {
3923
- let [C] = v;
3922
+ a && (m = new ResizeObserver((w) => {
3923
+ let [C] = w;
3924
3924
  C && C.target === l && m && (m.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
3925
3925
  var b;
3926
3926
  (b = m) == null || b.observe(t);
3927
3927
  })), n();
3928
3928
  }), l && !c && m.observe(l), m.observe(t));
3929
- let w, _ = c ? Xe(e) : null;
3929
+ let v, _ = c ? qe(e) : null;
3930
3930
  c && g();
3931
3931
  function g() {
3932
- const v = Xe(e);
3933
- _ && !pr(_, v) && n(), _ = v, w = requestAnimationFrame(g);
3932
+ const w = qe(e);
3933
+ _ && !pr(_, w) && n(), _ = w, v = requestAnimationFrame(g);
3934
3934
  }
3935
3935
  return n(), () => {
3936
- var v;
3936
+ var w;
3937
3937
  u.forEach((C) => {
3938
3938
  r && C.removeEventListener("scroll", n), s && C.removeEventListener("resize", n);
3939
- }), d?.(), (v = m) == null || v.disconnect(), m = null, c && cancelAnimationFrame(w);
3939
+ }), d?.(), (w = m) == null || w.disconnect(), m = null, c && cancelAnimationFrame(v);
3940
3940
  };
3941
3941
  }
3942
- const R1 = Jl, N1 = e1, k1 = Kl, A1 = n1, T1 = ql, So = Gl, M1 = t1, I1 = (e, t, n) => {
3942
+ const R1 = Jl, N1 = e1, k1 = Gl, A1 = n1, T1 = Kl, So = Yl, M1 = t1, I1 = (e, t, n) => {
3943
3943
  const o = /* @__PURE__ */ new Map(), r = {
3944
3944
  platform: L1,
3945
3945
  ...n
@@ -3947,7 +3947,7 @@ const R1 = Jl, N1 = e1, k1 = Kl, A1 = n1, T1 = ql, So = Gl, M1 = t1, I1 = (e, t,
3947
3947
  ...r.platform,
3948
3948
  _c: o
3949
3949
  };
3950
- return Yl(e, t, {
3950
+ return Xl(e, t, {
3951
3951
  ...r,
3952
3952
  platform: s
3953
3953
  });
@@ -4020,11 +4020,11 @@ function D1(e) {
4020
4020
  isPositioned: !1
4021
4021
  }), [h, m] = p.useState(o);
4022
4022
  jt(h, o) || m(o);
4023
- const [w, _] = p.useState(null), [g, v] = p.useState(null), C = p.useCallback((k) => {
4023
+ const [v, _] = p.useState(null), [g, w] = p.useState(null), C = p.useCallback((k) => {
4024
4024
  k !== E.current && (E.current = k, _(k));
4025
4025
  }, []), b = p.useCallback((k) => {
4026
- k !== S.current && (S.current = k, v(k));
4027
- }, []), x = s || w, y = a || g, E = p.useRef(null), S = p.useRef(null), L = p.useRef(u), $ = c != null, N = _n(c), z = _n(r), B = _n(l), V = p.useCallback(() => {
4026
+ k !== S.current && (S.current = k, w(k));
4027
+ }, []), y = s || v, x = a || g, E = p.useRef(null), S = p.useRef(null), L = p.useRef(u), $ = c != null, N = _n(c), z = _n(r), B = _n(l), V = p.useCallback(() => {
4028
4028
  if (!E.current || !S.current)
4029
4029
  return;
4030
4030
  const k = {
@@ -4056,21 +4056,21 @@ function D1(e) {
4056
4056
  Tt(() => (T.current = !0, () => {
4057
4057
  T.current = !1;
4058
4058
  }), []), Tt(() => {
4059
- if (x && (E.current = x), y && (S.current = y), x && y) {
4059
+ if (y && (E.current = y), x && (S.current = x), y && x) {
4060
4060
  if (N.current)
4061
- return N.current(x, y, V);
4061
+ return N.current(y, x, V);
4062
4062
  V();
4063
4063
  }
4064
- }, [x, y, V, N, $]);
4064
+ }, [y, x, V, N, $]);
4065
4065
  const Z = p.useMemo(() => ({
4066
4066
  reference: E,
4067
4067
  floating: S,
4068
4068
  setReference: C,
4069
4069
  setFloating: b
4070
4070
  }), [C, b]), O = p.useMemo(() => ({
4071
- reference: x,
4072
- floating: y
4073
- }), [x, y]), H = p.useMemo(() => {
4071
+ reference: y,
4072
+ floating: x
4073
+ }), [y, x]), H = p.useMemo(() => {
4074
4074
  const k = {
4075
4075
  position: n,
4076
4076
  left: 0,
@@ -4142,10 +4142,10 @@ const V1 = (e) => {
4142
4142
  ...V1(e),
4143
4143
  options: [e, t]
4144
4144
  });
4145
- var X1 = "Arrow", mr = p.forwardRef((e, t) => {
4145
+ var q1 = "Arrow", mr = p.forwardRef((e, t) => {
4146
4146
  const { children: n, width: o = 10, height: r = 5, ...s } = e;
4147
4147
  return /* @__PURE__ */ f(
4148
- K.svg,
4148
+ G.svg,
4149
4149
  {
4150
4150
  ...s,
4151
4151
  ref: t,
@@ -4157,9 +4157,9 @@ var X1 = "Arrow", mr = p.forwardRef((e, t) => {
4157
4157
  }
4158
4158
  );
4159
4159
  });
4160
- mr.displayName = X1;
4161
- var Y1 = mr;
4162
- function G1(e) {
4160
+ mr.displayName = q1;
4161
+ var X1 = mr;
4162
+ function Y1(e) {
4163
4163
  const [t, n] = p.useState(void 0);
4164
4164
  return le(() => {
4165
4165
  if (e) {
@@ -4181,22 +4181,22 @@ function G1(e) {
4181
4181
  n(void 0);
4182
4182
  }, [e]), t;
4183
4183
  }
4184
- var qn = "Popper", [gr, wr] = Wn(qn), [K1, vr] = gr(qn), Cr = (e) => {
4184
+ var Kn = "Popper", [gr, vr] = Wn(Kn), [G1, wr] = gr(Kn), Cr = (e) => {
4185
4185
  const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
4186
- return /* @__PURE__ */ f(K1, { scope: t, anchor: o, onAnchorChange: r, children: n });
4186
+ return /* @__PURE__ */ f(G1, { scope: t, anchor: o, onAnchorChange: r, children: n });
4187
4187
  };
4188
- Cr.displayName = qn;
4189
- var br = "PopperAnchor", xr = p.forwardRef(
4188
+ Cr.displayName = Kn;
4189
+ var br = "PopperAnchor", yr = p.forwardRef(
4190
4190
  (e, t) => {
4191
- const { __scopePopper: n, virtualRef: o, ...r } = e, s = vr(br, n), a = p.useRef(null), i = ne(t, a), c = p.useRef(null);
4191
+ const { __scopePopper: n, virtualRef: o, ...r } = e, s = wr(br, n), a = p.useRef(null), i = ne(t, a), c = p.useRef(null);
4192
4192
  return p.useEffect(() => {
4193
4193
  const l = c.current;
4194
4194
  c.current = o?.current || a.current, l !== c.current && s.onAnchorChange(c.current);
4195
- }), o ? null : /* @__PURE__ */ f(K.div, { ...r, ref: i });
4195
+ }), o ? null : /* @__PURE__ */ f(G.div, { ...r, ref: i });
4196
4196
  }
4197
4197
  );
4198
- xr.displayName = br;
4199
- var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4198
+ yr.displayName = br;
4199
+ var Qn = "PopperContent", [K1, Q1] = gr(Qn), xr = p.forwardRef(
4200
4200
  (e, t) => {
4201
4201
  const {
4202
4202
  __scopePopper: n,
@@ -4211,9 +4211,9 @@ var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4211
4211
  sticky: d = "partial",
4212
4212
  hideWhenDetached: h = !1,
4213
4213
  updatePositionStrategy: m = "optimized",
4214
- onPlaced: w,
4214
+ onPlaced: v,
4215
4215
  ..._
4216
- } = e, g = vr(Qn, n), [v, C] = p.useState(null), b = ne(t, (R) => C(R)), [x, y] = p.useState(null), E = G1(x), S = E?.width ?? 0, L = E?.height ?? 0, $ = o + (s !== "center" ? "-" + s : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(l) ? l : [l], B = z.length > 0, V = {
4216
+ } = e, g = wr(Qn, n), [w, C] = p.useState(null), b = ne(t, (R) => C(R)), [y, x] = p.useState(null), E = Y1(y), S = E?.width ?? 0, L = E?.height ?? 0, $ = o + (s !== "center" ? "-" + s : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(l) ? l : [l], B = z.length > 0, V = {
4217
4217
  padding: N,
4218
4218
  boundary: z.filter(eu),
4219
4219
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -4239,23 +4239,23 @@ var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4239
4239
  c && W1({ ...V }),
4240
4240
  F1({
4241
4241
  ...V,
4242
- apply: ({ elements: R, rects: Y, availableWidth: oe, availableHeight: F }) => {
4243
- const { width: U, height: Q } = Y.reference, fe = R.floating.style;
4242
+ apply: ({ elements: R, rects: X, availableWidth: oe, availableHeight: F }) => {
4243
+ const { width: U, height: Q } = X.reference, fe = R.floating.style;
4244
4244
  fe.setProperty("--radix-popper-available-width", `${oe}px`), fe.setProperty("--radix-popper-available-height", `${F}px`), fe.setProperty("--radix-popper-anchor-width", `${U}px`), fe.setProperty("--radix-popper-anchor-height", `${Q}px`);
4245
4245
  }
4246
4246
  }),
4247
- x && Z1({ element: x, padding: i }),
4247
+ y && Z1({ element: y, padding: i }),
4248
4248
  tu({ arrowWidth: S, arrowHeight: L }),
4249
4249
  h && U1({ strategy: "referenceHidden", ...V })
4250
4250
  ]
4251
- }), [W, ae] = Lr(O), De = Ze(w);
4251
+ }), [W, ae] = Lr(O), De = Ze(v);
4252
4252
  le(() => {
4253
4253
  H && De?.();
4254
4254
  }, [H, De]);
4255
- const ft = k.arrow?.x, _t = k.arrow?.y, Re = k.arrow?.centerOffset !== 0, [qe, Ve] = p.useState();
4255
+ const ft = k.arrow?.x, _t = k.arrow?.y, Re = k.arrow?.centerOffset !== 0, [Ke, Ve] = p.useState();
4256
4256
  return le(() => {
4257
- v && Ve(window.getComputedStyle(v).zIndex);
4258
- }, [v]), /* @__PURE__ */ f(
4257
+ w && Ve(window.getComputedStyle(w).zIndex);
4258
+ }, [w]), /* @__PURE__ */ f(
4259
4259
  "div",
4260
4260
  {
4261
4261
  ref: T.setFloating,
@@ -4265,7 +4265,7 @@ var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4265
4265
  transform: H ? Z.transform : "translate(0, -200%)",
4266
4266
  // keep off the page when measuring
4267
4267
  minWidth: "max-content",
4268
- zIndex: qe,
4268
+ zIndex: Ke,
4269
4269
  "--radix-popper-transform-origin": [
4270
4270
  k.transformOrigin?.x,
4271
4271
  k.transformOrigin?.y
@@ -4280,16 +4280,16 @@ var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4280
4280
  },
4281
4281
  dir: e.dir,
4282
4282
  children: /* @__PURE__ */ f(
4283
- q1,
4283
+ K1,
4284
4284
  {
4285
4285
  scope: n,
4286
4286
  placedSide: W,
4287
- onArrowChange: y,
4287
+ onArrowChange: x,
4288
4288
  arrowX: ft,
4289
4289
  arrowY: _t,
4290
4290
  shouldHideArrow: Re,
4291
4291
  children: /* @__PURE__ */ f(
4292
- K.div,
4292
+ G.div,
4293
4293
  {
4294
4294
  "data-side": W,
4295
4295
  "data-align": ae,
@@ -4309,7 +4309,7 @@ var Qn = "PopperContent", [q1, Q1] = gr(Qn), yr = p.forwardRef(
4309
4309
  );
4310
4310
  }
4311
4311
  );
4312
- yr.displayName = Qn;
4312
+ xr.displayName = Qn;
4313
4313
  var Sr = "PopperArrow", J1 = {
4314
4314
  top: "bottom",
4315
4315
  right: "left",
@@ -4345,7 +4345,7 @@ var Sr = "PopperArrow", J1 = {
4345
4345
  visibility: s.shouldHideArrow ? "hidden" : void 0
4346
4346
  },
4347
4347
  children: /* @__PURE__ */ f(
4348
- Y1,
4348
+ X1,
4349
4349
  {
4350
4350
  ...r,
4351
4351
  ref: n,
@@ -4369,19 +4369,19 @@ var tu = (e) => ({
4369
4369
  options: e,
4370
4370
  fn(t) {
4371
4371
  const { placement: n, rects: o, middlewareData: r } = t, a = r.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], h = (r.arrow?.x ?? 0) + i / 2, m = (r.arrow?.y ?? 0) + c / 2;
4372
- let w = "", _ = "";
4373
- return l === "bottom" ? (w = a ? d : `${h}px`, _ = `${-c}px`) : l === "top" ? (w = a ? d : `${h}px`, _ = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, _ = a ? d : `${m}px`) : l === "left" && (w = `${o.floating.width + c}px`, _ = a ? d : `${m}px`), { data: { x: w, y: _ } };
4372
+ let v = "", _ = "";
4373
+ return l === "bottom" ? (v = a ? d : `${h}px`, _ = `${-c}px`) : l === "top" ? (v = a ? d : `${h}px`, _ = `${o.floating.height + c}px`) : l === "right" ? (v = `${-c}px`, _ = a ? d : `${m}px`) : l === "left" && (v = `${o.floating.width + c}px`, _ = a ? d : `${m}px`), { data: { x: v, y: _ } };
4374
4374
  }
4375
4375
  });
4376
4376
  function Lr(e) {
4377
4377
  const [t, n = "center"] = e.split("-");
4378
4378
  return [t, n];
4379
4379
  }
4380
- var nu = Cr, ou = xr, ru = yr, su = Er, au = "Portal", $r = p.forwardRef((e, t) => {
4380
+ var nu = Cr, ou = yr, ru = xr, su = Er, au = "Portal", $r = p.forwardRef((e, t) => {
4381
4381
  const { container: n, ...o } = e, [r, s] = p.useState(!1);
4382
4382
  le(() => s(!0), []);
4383
4383
  const a = n || r && globalThis?.document?.body;
4384
- return a ? vs.createPortal(/* @__PURE__ */ f(K.div, { ...o, ref: t }), a) : null;
4384
+ return a ? ws.createPortal(/* @__PURE__ */ f(G.div, { ...o, ref: t }), a) : null;
4385
4385
  });
4386
4386
  $r.displayName = au;
4387
4387
  var iu = p[" useInsertionEffect ".trim().toString()] || le;
@@ -4449,7 +4449,7 @@ var Pr = Object.freeze({
4449
4449
  wordWrap: "normal"
4450
4450
  }), du = "VisuallyHidden", fu = p.forwardRef(
4451
4451
  (e, t) => /* @__PURE__ */ f(
4452
- K.span,
4452
+ G.span,
4453
4453
  {
4454
4454
  ...e,
4455
4455
  ref: t,
@@ -4487,10 +4487,10 @@ var _u = function(e) {
4487
4487
  u(h);
4488
4488
  else
4489
4489
  try {
4490
- var m = h.getAttribute(o), w = m !== null && m !== "false", _ = (et.get(h) || 0) + 1, g = (s.get(h) || 0) + 1;
4491
- et.set(h, _), s.set(h, g), a.push(h), _ === 1 && w && Pt.set(h, !0), g === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
4492
- } catch (v) {
4493
- console.error("aria-hidden: cannot operate on ", h, v);
4490
+ var m = h.getAttribute(o), v = m !== null && m !== "false", _ = (et.get(h) || 0) + 1, g = (s.get(h) || 0) + 1;
4491
+ et.set(h, _), s.set(h, g), a.push(h), _ === 1 && v && Pt.set(h, !0), g === 1 && h.setAttribute(n, "true"), v || h.setAttribute(o, "true");
4492
+ } catch (w) {
4493
+ console.error("aria-hidden: cannot operate on ", h, w);
4494
4494
  }
4495
4495
  });
4496
4496
  };
@@ -4528,7 +4528,7 @@ function gu(e, t, n) {
4528
4528
  (s || !(o in t)) && (s || (s = Array.prototype.slice.call(t, 0, o)), s[o] = t[o]);
4529
4529
  return e.concat(s || Array.prototype.slice.call(t));
4530
4530
  }
4531
- var Mt = "right-scroll-bar-position", It = "width-before-scroll-bar", wu = "with-scroll-bars-hidden", vu = "--removed-body-scroll-bar-size";
4531
+ var Mt = "right-scroll-bar-position", It = "width-before-scroll-bar", vu = "with-scroll-bars-hidden", wu = "--removed-body-scroll-bar-size";
4532
4532
  function hn(e, t) {
4533
4533
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
4534
4534
  }
@@ -4554,7 +4554,7 @@ function Cu(e, t) {
4554
4554
  return n.callback = t, n.facade;
4555
4555
  }
4556
4556
  var bu = typeof window < "u" ? p.useLayoutEffect : p.useEffect, $o = /* @__PURE__ */ new WeakMap();
4557
- function xu(e, t) {
4557
+ function yu(e, t) {
4558
4558
  var n = Cu(null, function(o) {
4559
4559
  return e.forEach(function(r) {
4560
4560
  return hn(r, o);
@@ -4573,11 +4573,11 @@ function xu(e, t) {
4573
4573
  $o.set(n, e);
4574
4574
  }, [e]), n;
4575
4575
  }
4576
- function yu(e) {
4576
+ function xu(e) {
4577
4577
  return e;
4578
4578
  }
4579
4579
  function Su(e, t) {
4580
- t === void 0 && (t = yu);
4580
+ t === void 0 && (t = xu);
4581
4581
  var n = [], o = !1, r = {
4582
4582
  read: function() {
4583
4583
  if (o)
@@ -4650,25 +4650,25 @@ function Lu(e, t) {
4650
4650
  return e.useMedium(t), kr;
4651
4651
  }
4652
4652
  var Ar = Eu(), mn = function() {
4653
- }, qt = p.forwardRef(function(e, t) {
4653
+ }, Kt = p.forwardRef(function(e, t) {
4654
4654
  var n = p.useRef(null), o = p.useState({
4655
4655
  onScrollCapture: mn,
4656
4656
  onWheelCapture: mn,
4657
4657
  onTouchMoveCapture: mn
4658
- }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, m = e.noRelative, w = e.noIsolation, _ = e.inert, g = e.allowPinchZoom, v = e.as, C = v === void 0 ? "div" : v, b = e.gapMode, x = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), y = h, E = xu([n, t]), S = Ce(Ce({}, x), r);
4658
+ }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, m = e.noRelative, v = e.noIsolation, _ = e.inert, g = e.allowPinchZoom, w = e.as, C = w === void 0 ? "div" : w, b = e.gapMode, y = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = h, E = yu([n, t]), S = Ce(Ce({}, y), r);
4659
4659
  return p.createElement(
4660
4660
  p.Fragment,
4661
4661
  null,
4662
- u && p.createElement(y, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative: m, noIsolation: w, inert: _, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
4662
+ u && p.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative: m, noIsolation: v, inert: _, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
4663
4663
  a ? p.cloneElement(p.Children.only(i), Ce(Ce({}, S), { ref: E })) : p.createElement(C, Ce({}, S, { className: c, ref: E }), i)
4664
4664
  );
4665
4665
  });
4666
- qt.defaultProps = {
4666
+ Kt.defaultProps = {
4667
4667
  enabled: !0,
4668
4668
  removeScrollBar: !0,
4669
4669
  inert: !1
4670
4670
  };
4671
- qt.classNames = {
4671
+ Kt.classNames = {
4672
4672
  fullWidth: It,
4673
4673
  zeroRight: Mt
4674
4674
  };
@@ -4739,7 +4739,7 @@ var ku = function() {
4739
4739
  }, zu = Tr(), st = "data-scroll-locked", Ou = function(e, t, n, o) {
4740
4740
  var r = e.left, s = e.top, a = e.right, i = e.gap;
4741
4741
  return n === void 0 && (n = "margin"), `
4742
- .`.concat(wu, ` {
4742
+ .`.concat(vu, ` {
4743
4743
  overflow: hidden `).concat(o, `;
4744
4744
  padding-right: `).concat(i, "px ").concat(o, `;
4745
4745
  }
@@ -4777,7 +4777,7 @@ var ku = function() {
4777
4777
  }
4778
4778
 
4779
4779
  body[`).concat(st, `] {
4780
- `).concat(vu, ": ").concat(i, `px;
4780
+ `).concat(wu, ": ").concat(i, `px;
4781
4781
  }
4782
4782
  `);
4783
4783
  }, Po = function() {
@@ -4862,8 +4862,8 @@ var tt = Ln ? { passive: !1 } : !1, Hu = function(e) {
4862
4862
  do {
4863
4863
  if (!i)
4864
4864
  break;
4865
- var m = zr(e, i), w = m[0], _ = m[1], g = m[2], v = _ - g - s * w;
4866
- (w || v) && Ir(e, i) && (d += v, h += w);
4865
+ var m = zr(e, i), v = m[0], _ = m[1], g = m[2], w = _ - g - s * v;
4866
+ (v || w) && Ir(e, i) && (d += w, h += v);
4867
4867
  var C = i.parentNode;
4868
4868
  i = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
4869
4869
  } while (
@@ -4878,16 +4878,16 @@ var tt = Ln ? { passive: !1 } : !1, Hu = function(e) {
4878
4878
  return [e.deltaX, e.deltaY];
4879
4879
  }, ko = function(e) {
4880
4880
  return e && "current" in e ? e.current : e;
4881
- }, Xu = function(e, t) {
4881
+ }, qu = function(e, t) {
4882
4882
  return e[0] === t[0] && e[1] === t[1];
4883
- }, Yu = function(e) {
4883
+ }, Xu = function(e) {
4884
4884
  return `
4885
4885
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
4886
4886
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
4887
4887
  `);
4888
- }, Gu = 0, nt = [];
4889
- function Ku(e) {
4890
- var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(Gu++)[0], s = p.useState(Tr)[0], a = p.useRef(e);
4888
+ }, Yu = 0, nt = [];
4889
+ function Gu(e) {
4890
+ var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(Yu++)[0], s = p.useState(Tr)[0], a = p.useRef(e);
4891
4891
  p.useEffect(function() {
4892
4892
  a.current = e;
4893
4893
  }, [e]), p.useEffect(function() {
@@ -4906,40 +4906,40 @@ function Ku(e) {
4906
4906
  var i = p.useCallback(function(_, g) {
4907
4907
  if ("touches" in _ && _.touches.length === 2 || _.type === "wheel" && _.ctrlKey)
4908
4908
  return !a.current.allowPinchZoom;
4909
- var v = kt(_), C = n.current, b = "deltaX" in _ ? _.deltaX : C[0] - v[0], x = "deltaY" in _ ? _.deltaY : C[1] - v[1], y, E = _.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
4909
+ var w = kt(_), C = n.current, b = "deltaX" in _ ? _.deltaX : C[0] - w[0], y = "deltaY" in _ ? _.deltaY : C[1] - w[1], x, E = _.target, S = Math.abs(b) > Math.abs(y) ? "h" : "v";
4910
4910
  if ("touches" in _ && S === "h" && E.type === "range")
4911
4911
  return !1;
4912
4912
  var L = Ro(S, E);
4913
4913
  if (!L)
4914
4914
  return !0;
4915
- if (L ? y = S : (y = S === "v" ? "h" : "v", L = Ro(S, E)), !L)
4915
+ if (L ? x = S : (x = S === "v" ? "h" : "v", L = Ro(S, E)), !L)
4916
4916
  return !1;
4917
- if (!o.current && "changedTouches" in _ && (b || x) && (o.current = y), !y)
4917
+ if (!o.current && "changedTouches" in _ && (b || y) && (o.current = x), !x)
4918
4918
  return !0;
4919
- var $ = o.current || y;
4920
- return Zu($, g, _, $ === "h" ? b : x);
4919
+ var $ = o.current || x;
4920
+ return Zu($, g, _, $ === "h" ? b : y);
4921
4921
  }, []), c = p.useCallback(function(_) {
4922
4922
  var g = _;
4923
4923
  if (!(!nt.length || nt[nt.length - 1] !== s)) {
4924
- var v = "deltaY" in g ? No(g) : kt(g), C = t.current.filter(function(y) {
4925
- return y.name === g.type && (y.target === g.target || g.target === y.shadowParent) && Xu(y.delta, v);
4924
+ var w = "deltaY" in g ? No(g) : kt(g), C = t.current.filter(function(x) {
4925
+ return x.name === g.type && (x.target === g.target || g.target === x.shadowParent) && qu(x.delta, w);
4926
4926
  })[0];
4927
4927
  if (C && C.should) {
4928
4928
  g.cancelable && g.preventDefault();
4929
4929
  return;
4930
4930
  }
4931
4931
  if (!C) {
4932
- var b = (a.current.shards || []).map(ko).filter(Boolean).filter(function(y) {
4933
- return y.contains(g.target);
4934
- }), x = b.length > 0 ? i(g, b[0]) : !a.current.noIsolation;
4935
- x && g.cancelable && g.preventDefault();
4932
+ var b = (a.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
4933
+ return x.contains(g.target);
4934
+ }), y = b.length > 0 ? i(g, b[0]) : !a.current.noIsolation;
4935
+ y && g.cancelable && g.preventDefault();
4936
4936
  }
4937
4937
  }
4938
- }, []), l = p.useCallback(function(_, g, v, C) {
4939
- var b = { name: _, delta: g, target: v, should: C, shadowParent: qu(v) };
4938
+ }, []), l = p.useCallback(function(_, g, w, C) {
4939
+ var b = { name: _, delta: g, target: w, should: C, shadowParent: Ku(w) };
4940
4940
  t.current.push(b), setTimeout(function() {
4941
- t.current = t.current.filter(function(x) {
4942
- return x !== b;
4941
+ t.current = t.current.filter(function(y) {
4942
+ return y !== b;
4943
4943
  });
4944
4944
  }, 1);
4945
4945
  }, []), u = p.useCallback(function(_) {
@@ -4960,28 +4960,28 @@ function Ku(e) {
4960
4960
  }), document.removeEventListener("wheel", c, tt), document.removeEventListener("touchmove", c, tt), document.removeEventListener("touchstart", u, tt);
4961
4961
  };
4962
4962
  }, []);
4963
- var m = e.removeScrollBar, w = e.inert;
4963
+ var m = e.removeScrollBar, v = e.inert;
4964
4964
  return p.createElement(
4965
4965
  p.Fragment,
4966
4966
  null,
4967
- w ? p.createElement(s, { styles: Yu(r) }) : null,
4967
+ v ? p.createElement(s, { styles: Xu(r) }) : null,
4968
4968
  m ? p.createElement(Vu, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
4969
4969
  );
4970
4970
  }
4971
- function qu(e) {
4971
+ function Ku(e) {
4972
4972
  for (var t = null; e !== null; )
4973
4973
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
4974
4974
  return t;
4975
4975
  }
4976
- const Qu = Lu(Ar, Ku);
4976
+ const Qu = Lu(Ar, Gu);
4977
4977
  var Or = p.forwardRef(function(e, t) {
4978
- return p.createElement(qt, Ce({}, e, { ref: t, sideCar: Qu }));
4978
+ return p.createElement(Kt, Ce({}, e, { ref: t, sideCar: Qu }));
4979
4979
  });
4980
- Or.classNames = qt.classNames;
4981
- var Ju = [" ", "Enter", "ArrowUp", "ArrowDown"], ed = [" ", "Enter"], Ye = "Select", [Qt, Jt, td] = ml(Ye), [dt] = Wn(Ye, [
4980
+ Or.classNames = Kt.classNames;
4981
+ var Ju = [" ", "Enter", "ArrowUp", "ArrowDown"], ed = [" ", "Enter"], Xe = "Select", [Qt, Jt, td] = ml(Xe), [dt] = Wn(Xe, [
4982
4982
  td,
4983
- wr
4984
- ]), en = wr(), [nd, ze] = dt(Ye), [od, rd] = dt(Ye), Dr = (e) => {
4983
+ vr
4984
+ ]), en = vr(), [nd, ze] = dt(Xe), [od, rd] = dt(Xe), Dr = (e) => {
4985
4985
  const {
4986
4986
  __scopeSelect: t,
4987
4987
  children: n,
@@ -4996,29 +4996,29 @@ var Ju = [" ", "Enter", "ArrowUp", "ArrowDown"], ed = [" ", "Enter"], Ye = "Sele
4996
4996
  autoComplete: d,
4997
4997
  disabled: h,
4998
4998
  required: m,
4999
- form: w
5000
- } = e, _ = en(t), [g, v] = p.useState(null), [C, b] = p.useState(null), [x, y] = p.useState(!1), E = wl(l), [S, L] = Lo({
4999
+ form: v
5000
+ } = e, _ = en(t), [g, w] = p.useState(null), [C, b] = p.useState(null), [y, x] = p.useState(!1), E = vl(l), [S, L] = Lo({
5001
5001
  prop: o,
5002
5002
  defaultProp: r ?? !1,
5003
5003
  onChange: s,
5004
- caller: Ye
5004
+ caller: Xe
5005
5005
  }), [$, N] = Lo({
5006
5006
  prop: a,
5007
5007
  defaultProp: i,
5008
5008
  onChange: c,
5009
- caller: Ye
5010
- }), z = p.useRef(null), B = g ? w || !!g.closest("form") : !0, [V, T] = p.useState(/* @__PURE__ */ new Set()), Z = Array.from(V).map((O) => O.props.value).join(";");
5009
+ caller: Xe
5010
+ }), z = p.useRef(null), B = g ? v || !!g.closest("form") : !0, [V, T] = p.useState(/* @__PURE__ */ new Set()), Z = Array.from(V).map((O) => O.props.value).join(";");
5011
5011
  return /* @__PURE__ */ f(nu, { ..._, children: /* @__PURE__ */ A(
5012
5012
  nd,
5013
5013
  {
5014
5014
  required: m,
5015
5015
  scope: t,
5016
5016
  trigger: g,
5017
- onTriggerChange: v,
5017
+ onTriggerChange: w,
5018
5018
  valueNode: C,
5019
5019
  onValueNodeChange: b,
5020
- valueNodeHasChildren: x,
5021
- onValueNodeHasChildrenChange: y,
5020
+ valueNodeHasChildren: y,
5021
+ onValueNodeHasChildrenChange: x,
5022
5022
  contentId: Fn(),
5023
5023
  value: $,
5024
5024
  onValueChange: N,
@@ -5055,7 +5055,7 @@ var Ju = [" ", "Enter", "ArrowUp", "ArrowDown"], ed = [" ", "Enter"], Ye = "Sele
5055
5055
  value: $,
5056
5056
  onChange: (O) => N(O.target.value),
5057
5057
  disabled: h,
5058
- form: w,
5058
+ form: v,
5059
5059
  children: [
5060
5060
  $ === void 0 ? /* @__PURE__ */ f("option", { value: "" }) : null,
5061
5061
  Array.from(V)
@@ -5067,20 +5067,20 @@ var Ju = [" ", "Enter", "ArrowUp", "ArrowDown"], ed = [" ", "Enter"], Ye = "Sele
5067
5067
  }
5068
5068
  ) });
5069
5069
  };
5070
- Dr.displayName = Ye;
5070
+ Dr.displayName = Xe;
5071
5071
  var Vr = "SelectTrigger", Hr = p.forwardRef(
5072
5072
  (e, t) => {
5073
5073
  const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = en(n), a = ze(Vr, n), i = a.disabled || o, c = ne(t, a.onTriggerChange), l = Jt(n), u = p.useRef("touch"), [d, h, m] = ss((_) => {
5074
- const g = l().filter((b) => !b.disabled), v = g.find((b) => b.value === a.value), C = as(g, _, v);
5074
+ const g = l().filter((b) => !b.disabled), w = g.find((b) => b.value === a.value), C = as(g, _, w);
5075
5075
  C !== void 0 && a.onValueChange(C.value);
5076
- }), w = (_) => {
5076
+ }), v = (_) => {
5077
5077
  i || (a.onOpenChange(!0), m()), _ && (a.triggerPointerDownPosRef.current = {
5078
5078
  x: Math.round(_.pageX),
5079
5079
  y: Math.round(_.pageY)
5080
5080
  });
5081
5081
  };
5082
5082
  return /* @__PURE__ */ f(ou, { asChild: !0, ...s, children: /* @__PURE__ */ f(
5083
- K.button,
5083
+ G.button,
5084
5084
  {
5085
5085
  type: "button",
5086
5086
  role: "combobox",
@@ -5096,16 +5096,16 @@ var Vr = "SelectTrigger", Hr = p.forwardRef(
5096
5096
  ...r,
5097
5097
  ref: c,
5098
5098
  onClick: te(r.onClick, (_) => {
5099
- _.currentTarget.focus(), u.current !== "mouse" && w(_);
5099
+ _.currentTarget.focus(), u.current !== "mouse" && v(_);
5100
5100
  }),
5101
5101
  onPointerDown: te(r.onPointerDown, (_) => {
5102
5102
  u.current = _.pointerType;
5103
5103
  const g = _.target;
5104
- g.hasPointerCapture(_.pointerId) && g.releasePointerCapture(_.pointerId), _.button === 0 && _.ctrlKey === !1 && _.pointerType === "mouse" && (w(_), _.preventDefault());
5104
+ g.hasPointerCapture(_.pointerId) && g.releasePointerCapture(_.pointerId), _.button === 0 && _.ctrlKey === !1 && _.pointerType === "mouse" && (v(_), _.preventDefault());
5105
5105
  }),
5106
5106
  onKeyDown: te(r.onKeyDown, (_) => {
5107
5107
  const g = d.current !== "";
5108
- !(_.ctrlKey || _.altKey || _.metaKey) && _.key.length === 1 && h(_.key), !(g && _.key === " ") && Ju.includes(_.key) && (w(), _.preventDefault());
5108
+ !(_.ctrlKey || _.altKey || _.metaKey) && _.key.length === 1 && h(_.key), !(g && _.key === " ") && Ju.includes(_.key) && (v(), _.preventDefault());
5109
5109
  })
5110
5110
  }
5111
5111
  ) });
@@ -5118,7 +5118,7 @@ var Br = "SelectValue", jr = p.forwardRef(
5118
5118
  return le(() => {
5119
5119
  l(u);
5120
5120
  }, [l, u]), /* @__PURE__ */ f(
5121
- K.span,
5121
+ G.span,
5122
5122
  {
5123
5123
  ...i,
5124
5124
  ref: d,
@@ -5132,15 +5132,15 @@ jr.displayName = Br;
5132
5132
  var sd = "SelectIcon", Wr = p.forwardRef(
5133
5133
  (e, t) => {
5134
5134
  const { __scopeSelect: n, children: o, ...r } = e;
5135
- return /* @__PURE__ */ f(K.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
5135
+ return /* @__PURE__ */ f(G.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
5136
5136
  }
5137
5137
  );
5138
5138
  Wr.displayName = sd;
5139
5139
  var ad = "SelectPortal", Fr = (e) => /* @__PURE__ */ f($r, { asChild: !0, ...e });
5140
5140
  Fr.displayName = ad;
5141
- var Ge = "SelectContent", Ur = p.forwardRef(
5141
+ var Ye = "SelectContent", Ur = p.forwardRef(
5142
5142
  (e, t) => {
5143
- const n = ze(Ge, e.__scopeSelect), [o, r] = p.useState();
5143
+ const n = ze(Ye, e.__scopeSelect), [o, r] = p.useState();
5144
5144
  if (le(() => {
5145
5145
  r(new DocumentFragment());
5146
5146
  }, []), !n.open) {
@@ -5150,11 +5150,11 @@ var Ge = "SelectContent", Ur = p.forwardRef(
5150
5150
  s
5151
5151
  ) : null;
5152
5152
  }
5153
- return /* @__PURE__ */ f(Xr, { ...e, ref: t });
5153
+ return /* @__PURE__ */ f(qr, { ...e, ref: t });
5154
5154
  }
5155
5155
  );
5156
- Ur.displayName = Ge;
5157
- var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ Dt("SelectContent.RemoveScroll"), Xr = p.forwardRef(
5156
+ Ur.displayName = Ye;
5157
+ var me = 10, [Zr, Oe] = dt(Ye), id = "SelectContentImpl", cd = /* @__PURE__ */ Dt("SelectContent.RemoveScroll"), qr = p.forwardRef(
5158
5158
  (e, t) => {
5159
5159
  const {
5160
5160
  __scopeSelect: n,
@@ -5171,12 +5171,12 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5171
5171
  arrowPadding: d,
5172
5172
  collisionBoundary: h,
5173
5173
  collisionPadding: m,
5174
- sticky: w,
5174
+ sticky: v,
5175
5175
  hideWhenDetached: _,
5176
5176
  avoidCollisions: g,
5177
5177
  //
5178
- ...v
5179
- } = e, C = ze(Ge, n), [b, x] = p.useState(null), [y, E] = p.useState(null), S = ne(t, (R) => x(R)), [L, $] = p.useState(null), [N, z] = p.useState(
5178
+ ...w
5179
+ } = e, C = ze(Ye, n), [b, y] = p.useState(null), [x, E] = p.useState(null), S = ne(t, (R) => y(R)), [L, $] = p.useState(null), [N, z] = p.useState(
5180
5180
  null
5181
5181
  ), B = Jt(n), [V, T] = p.useState(!1), Z = p.useRef(!1);
5182
5182
  p.useEffect(() => {
@@ -5184,11 +5184,11 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5184
5184
  }, [b]), $l();
5185
5185
  const O = p.useCallback(
5186
5186
  (R) => {
5187
- const [Y, ...oe] = B().map((Q) => Q.ref.current), [F] = oe.slice(-1), U = document.activeElement;
5187
+ const [X, ...oe] = B().map((Q) => Q.ref.current), [F] = oe.slice(-1), U = document.activeElement;
5188
5188
  for (const Q of R)
5189
- if (Q === U || (Q?.scrollIntoView({ block: "nearest" }), Q === Y && y && (y.scrollTop = 0), Q === F && y && (y.scrollTop = y.scrollHeight), Q?.focus(), document.activeElement !== U)) return;
5189
+ if (Q === U || (Q?.scrollIntoView({ block: "nearest" }), Q === X && x && (x.scrollTop = 0), Q === F && x && (x.scrollTop = x.scrollHeight), Q?.focus(), document.activeElement !== U)) return;
5190
5190
  },
5191
- [B, y]
5191
+ [B, x]
5192
5192
  ), H = p.useCallback(
5193
5193
  () => O([L, b]),
5194
5194
  [O, L, b]
@@ -5200,16 +5200,16 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5200
5200
  p.useEffect(() => {
5201
5201
  if (b) {
5202
5202
  let R = { x: 0, y: 0 };
5203
- const Y = (F) => {
5203
+ const X = (F) => {
5204
5204
  R = {
5205
5205
  x: Math.abs(Math.round(F.pageX) - (W.current?.x ?? 0)),
5206
5206
  y: Math.abs(Math.round(F.pageY) - (W.current?.y ?? 0))
5207
5207
  };
5208
5208
  }, oe = (F) => {
5209
- R.x <= 10 && R.y <= 10 ? F.preventDefault() : b.contains(F.target) || k(!1), document.removeEventListener("pointermove", Y), W.current = null;
5209
+ R.x <= 10 && R.y <= 10 ? F.preventDefault() : b.contains(F.target) || k(!1), document.removeEventListener("pointermove", X), W.current = null;
5210
5210
  };
5211
- return W.current !== null && (document.addEventListener("pointermove", Y), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
5212
- document.removeEventListener("pointermove", Y), document.removeEventListener("pointerup", oe, { capture: !0 });
5211
+ return W.current !== null && (document.addEventListener("pointermove", X), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
5212
+ document.removeEventListener("pointermove", X), document.removeEventListener("pointerup", oe, { capture: !0 });
5213
5213
  };
5214
5214
  }
5215
5215
  }, [b, k, W]), p.useEffect(() => {
@@ -5219,21 +5219,21 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5219
5219
  };
5220
5220
  }, [k]);
5221
5221
  const [ae, De] = ss((R) => {
5222
- const Y = B().filter((U) => !U.disabled), oe = Y.find((U) => U.ref.current === document.activeElement), F = as(Y, R, oe);
5222
+ const X = B().filter((U) => !U.disabled), oe = X.find((U) => U.ref.current === document.activeElement), F = as(X, R, oe);
5223
5223
  F && setTimeout(() => F.ref.current.focus());
5224
5224
  }), ft = p.useCallback(
5225
- (R, Y, oe) => {
5225
+ (R, X, oe) => {
5226
5226
  const F = !Z.current && !oe;
5227
- (C.value !== void 0 && C.value === Y || F) && ($(R), F && (Z.current = !0));
5227
+ (C.value !== void 0 && C.value === X || F) && ($(R), F && (Z.current = !0));
5228
5228
  },
5229
5229
  [C.value]
5230
5230
  ), _t = p.useCallback(() => b?.focus(), [b]), Re = p.useCallback(
5231
- (R, Y, oe) => {
5231
+ (R, X, oe) => {
5232
5232
  const F = !Z.current && !oe;
5233
- (C.value !== void 0 && C.value === Y || F) && z(R);
5233
+ (C.value !== void 0 && C.value === X || F) && z(R);
5234
5234
  },
5235
5235
  [C.value]
5236
- ), qe = o === "popper" ? $n : Yr, Ve = qe === $n ? {
5236
+ ), Ke = o === "popper" ? $n : Xr, Ve = Ke === $n ? {
5237
5237
  side: i,
5238
5238
  sideOffset: c,
5239
5239
  align: l,
@@ -5241,7 +5241,7 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5241
5241
  arrowPadding: d,
5242
5242
  collisionBoundary: h,
5243
5243
  collisionPadding: m,
5244
- sticky: w,
5244
+ sticky: v,
5245
5245
  hideWhenDetached: _,
5246
5246
  avoidCollisions: g
5247
5247
  } : {};
@@ -5250,7 +5250,7 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5250
5250
  {
5251
5251
  scope: n,
5252
5252
  content: b,
5253
- viewport: y,
5253
+ viewport: x,
5254
5254
  onViewportChange: E,
5255
5255
  itemRefCallback: ft,
5256
5256
  selectedItem: L,
@@ -5282,14 +5282,14 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5282
5282
  onFocusOutside: (R) => R.preventDefault(),
5283
5283
  onDismiss: () => C.onOpenChange(!1),
5284
5284
  children: /* @__PURE__ */ f(
5285
- qe,
5285
+ Ke,
5286
5286
  {
5287
5287
  role: "listbox",
5288
5288
  id: C.contentId,
5289
5289
  "data-state": C.open ? "open" : "closed",
5290
5290
  dir: C.dir,
5291
5291
  onContextMenu: (R) => R.preventDefault(),
5292
- ...v,
5292
+ ...w,
5293
5293
  ...Ve,
5294
5294
  onPlaced: () => T(!0),
5295
5295
  ref: S,
@@ -5299,11 +5299,11 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5299
5299
  flexDirection: "column",
5300
5300
  // reset the outline by default as the content MAY get focused
5301
5301
  outline: "none",
5302
- ...v.style
5302
+ ...w.style
5303
5303
  },
5304
- onKeyDown: te(v.onKeyDown, (R) => {
5305
- const Y = R.ctrlKey || R.altKey || R.metaKey;
5306
- if (R.key === "Tab" && R.preventDefault(), !Y && R.key.length === 1 && De(R.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(R.key)) {
5304
+ onKeyDown: te(w.onKeyDown, (R) => {
5305
+ const X = R.ctrlKey || R.altKey || R.metaKey;
5306
+ if (R.key === "Tab" && R.preventDefault(), !X && R.key.length === 1 && De(R.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(R.key)) {
5307
5307
  let F = B().filter((U) => !U.disabled).map((U) => U.ref.current);
5308
5308
  if (["ArrowUp", "End"].includes(R.key) && (F = F.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(R.key)) {
5309
5309
  const U = R.target, Q = F.indexOf(U);
@@ -5322,11 +5322,11 @@ var me = 10, [Zr, Oe] = dt(Ge), id = "SelectContentImpl", cd = /* @__PURE__ */ D
5322
5322
  );
5323
5323
  }
5324
5324
  );
5325
- Xr.displayName = id;
5326
- var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5327
- const { __scopeSelect: n, onPlaced: o, ...r } = e, s = ze(Ge, n), a = Oe(Ge, n), [i, c] = p.useState(null), [l, u] = p.useState(null), d = ne(t, (S) => u(S)), h = Jt(n), m = p.useRef(!1), w = p.useRef(!0), { viewport: _, selectedItem: g, selectedItemText: v, focusSelectedItem: C } = a, b = p.useCallback(() => {
5328
- if (s.trigger && s.valueNode && i && l && _ && g && v) {
5329
- const S = s.trigger.getBoundingClientRect(), L = l.getBoundingClientRect(), $ = s.valueNode.getBoundingClientRect(), N = v.getBoundingClientRect();
5325
+ qr.displayName = id;
5326
+ var ld = "SelectItemAlignedPosition", Xr = p.forwardRef((e, t) => {
5327
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, s = ze(Ye, n), a = Oe(Ye, n), [i, c] = p.useState(null), [l, u] = p.useState(null), d = ne(t, (S) => u(S)), h = Jt(n), m = p.useRef(!1), v = p.useRef(!0), { viewport: _, selectedItem: g, selectedItemText: w, focusSelectedItem: C } = a, b = p.useCallback(() => {
5328
+ if (s.trigger && s.valueNode && i && l && _ && g && w) {
5329
+ const S = s.trigger.getBoundingClientRect(), L = l.getBoundingClientRect(), $ = s.valueNode.getBoundingClientRect(), N = w.getBoundingClientRect();
5330
5330
  if (s.dir !== "rtl") {
5331
5331
  const U = N.left - L.left, Q = $.left - U, fe = S.left - Q, He = S.width + fe, on = Math.max(He, L.width), rn = window.innerWidth - me, sn = ao(Q, [
5332
5332
  me,
@@ -5345,15 +5345,15 @@ var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5345
5345
  ]);
5346
5346
  i.style.minWidth = He + "px", i.style.right = sn + "px";
5347
5347
  }
5348
- const z = h(), B = window.innerHeight - me * 2, V = _.scrollHeight, T = window.getComputedStyle(l), Z = parseInt(T.borderTopWidth, 10), O = parseInt(T.paddingTop, 10), H = parseInt(T.borderBottomWidth, 10), k = parseInt(T.paddingBottom, 10), W = Z + O + V + k + H, ae = Math.min(g.offsetHeight * 5, W), De = window.getComputedStyle(_), ft = parseInt(De.paddingTop, 10), _t = parseInt(De.paddingBottom, 10), Re = S.top + S.height / 2 - me, qe = B - Re, Ve = g.offsetHeight / 2, R = g.offsetTop + Ve, Y = Z + O + R, oe = W - Y;
5349
- if (Y <= Re) {
5348
+ const z = h(), B = window.innerHeight - me * 2, V = _.scrollHeight, T = window.getComputedStyle(l), Z = parseInt(T.borderTopWidth, 10), O = parseInt(T.paddingTop, 10), H = parseInt(T.borderBottomWidth, 10), k = parseInt(T.paddingBottom, 10), W = Z + O + V + k + H, ae = Math.min(g.offsetHeight * 5, W), De = window.getComputedStyle(_), ft = parseInt(De.paddingTop, 10), _t = parseInt(De.paddingBottom, 10), Re = S.top + S.height / 2 - me, Ke = B - Re, Ve = g.offsetHeight / 2, R = g.offsetTop + Ve, X = Z + O + R, oe = W - X;
5349
+ if (X <= Re) {
5350
5350
  const U = z.length > 0 && g === z[z.length - 1].ref.current;
5351
5351
  i.style.bottom = "0px";
5352
5352
  const Q = l.clientHeight - _.offsetTop - _.offsetHeight, fe = Math.max(
5353
- qe,
5353
+ Ke,
5354
5354
  Ve + // viewport might have padding bottom, include it to avoid a scrollable viewport
5355
5355
  (U ? _t : 0) + Q + H
5356
- ), He = Y + fe;
5356
+ ), He = X + fe;
5357
5357
  i.style.height = He + "px";
5358
5358
  } else {
5359
5359
  const U = z.length > 0 && g === z[0].ref.current;
@@ -5363,7 +5363,7 @@ var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5363
5363
  Z + _.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
5364
5364
  (U ? ft : 0) + Ve
5365
5365
  ) + oe;
5366
- i.style.height = fe + "px", _.scrollTop = Y - Re + _.offsetTop;
5366
+ i.style.height = fe + "px", _.scrollTop = X - Re + _.offsetTop;
5367
5367
  }
5368
5368
  i.style.margin = `${me}px 0`, i.style.minHeight = ae + "px", i.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => m.current = !0);
5369
5369
  }
@@ -5375,18 +5375,18 @@ var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5375
5375
  l,
5376
5376
  _,
5377
5377
  g,
5378
- v,
5378
+ w,
5379
5379
  s.dir,
5380
5380
  o
5381
5381
  ]);
5382
5382
  le(() => b(), [b]);
5383
- const [x, y] = p.useState();
5383
+ const [y, x] = p.useState();
5384
5384
  le(() => {
5385
- l && y(window.getComputedStyle(l).zIndex);
5385
+ l && x(window.getComputedStyle(l).zIndex);
5386
5386
  }, [l]);
5387
5387
  const E = p.useCallback(
5388
5388
  (S) => {
5389
- S && w.current === !0 && (b(), C?.(), w.current = !1);
5389
+ S && v.current === !0 && (b(), C?.(), v.current = !1);
5390
5390
  },
5391
5391
  [b, C]
5392
5392
  );
@@ -5405,10 +5405,10 @@ var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5405
5405
  display: "flex",
5406
5406
  flexDirection: "column",
5407
5407
  position: "fixed",
5408
- zIndex: x
5408
+ zIndex: y
5409
5409
  },
5410
5410
  children: /* @__PURE__ */ f(
5411
- K.div,
5411
+ G.div,
5412
5412
  {
5413
5413
  ...r,
5414
5414
  ref: d,
@@ -5427,7 +5427,7 @@ var ld = "SelectItemAlignedPosition", Yr = p.forwardRef((e, t) => {
5427
5427
  }
5428
5428
  );
5429
5429
  });
5430
- Yr.displayName = ld;
5430
+ Xr.displayName = ld;
5431
5431
  var ud = "SelectPopperPosition", $n = p.forwardRef((e, t) => {
5432
5432
  const {
5433
5433
  __scopeSelect: n,
@@ -5457,7 +5457,7 @@ var ud = "SelectPopperPosition", $n = p.forwardRef((e, t) => {
5457
5457
  );
5458
5458
  });
5459
5459
  $n.displayName = ud;
5460
- var [dd, Jn] = dt(Ge, {}), Pn = "SelectViewport", Gr = p.forwardRef(
5460
+ var [dd, Jn] = dt(Ye, {}), Pn = "SelectViewport", Yr = p.forwardRef(
5461
5461
  (e, t) => {
5462
5462
  const { __scopeSelect: n, nonce: o, ...r } = e, s = Oe(Pn, n), a = Jn(Pn, n), i = ne(t, s.onViewportChange), c = p.useRef(0);
5463
5463
  return /* @__PURE__ */ A(Ee, { children: [
@@ -5471,7 +5471,7 @@ var [dd, Jn] = dt(Ge, {}), Pn = "SelectViewport", Gr = p.forwardRef(
5471
5471
  }
5472
5472
  ),
5473
5473
  /* @__PURE__ */ f(Qt.Slot, { scope: n, children: /* @__PURE__ */ f(
5474
- K.div,
5474
+ G.div,
5475
5475
  {
5476
5476
  "data-radix-select-viewport": "",
5477
5477
  role: "presentation",
@@ -5495,10 +5495,10 @@ var [dd, Jn] = dt(Ge, {}), Pn = "SelectViewport", Gr = p.forwardRef(
5495
5495
  if (h?.current && d) {
5496
5496
  const m = Math.abs(c.current - u.scrollTop);
5497
5497
  if (m > 0) {
5498
- const w = window.innerHeight - me * 2, _ = parseFloat(d.style.minHeight), g = parseFloat(d.style.height), v = Math.max(_, g);
5499
- if (v < w) {
5500
- const C = v + m, b = Math.min(w, C), x = C - b;
5501
- d.style.height = b + "px", d.style.bottom === "0px" && (u.scrollTop = x > 0 ? x : 0, d.style.justifyContent = "flex-end");
5498
+ const v = window.innerHeight - me * 2, _ = parseFloat(d.style.minHeight), g = parseFloat(d.style.height), w = Math.max(_, g);
5499
+ if (w < v) {
5500
+ const C = w + m, b = Math.min(v, C), y = C - b;
5501
+ d.style.height = b + "px", d.style.bottom === "0px" && (u.scrollTop = y > 0 ? y : 0, d.style.justifyContent = "flex-end");
5502
5502
  }
5503
5503
  }
5504
5504
  }
@@ -5509,21 +5509,21 @@ var [dd, Jn] = dt(Ge, {}), Pn = "SelectViewport", Gr = p.forwardRef(
5509
5509
  ] });
5510
5510
  }
5511
5511
  );
5512
- Gr.displayName = Pn;
5513
- var Kr = "SelectGroup", [fd, _d] = dt(Kr), pd = p.forwardRef(
5512
+ Yr.displayName = Pn;
5513
+ var Gr = "SelectGroup", [fd, _d] = dt(Gr), pd = p.forwardRef(
5514
5514
  (e, t) => {
5515
5515
  const { __scopeSelect: n, ...o } = e, r = Fn();
5516
- return /* @__PURE__ */ f(fd, { scope: n, id: r, children: /* @__PURE__ */ f(K.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5516
+ return /* @__PURE__ */ f(fd, { scope: n, id: r, children: /* @__PURE__ */ f(G.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5517
5517
  }
5518
5518
  );
5519
- pd.displayName = Kr;
5520
- var qr = "SelectLabel", hd = p.forwardRef(
5519
+ pd.displayName = Gr;
5520
+ var Kr = "SelectLabel", hd = p.forwardRef(
5521
5521
  (e, t) => {
5522
- const { __scopeSelect: n, ...o } = e, r = _d(qr, n);
5523
- return /* @__PURE__ */ f(K.div, { id: r.id, ...o, ref: t });
5522
+ const { __scopeSelect: n, ...o } = e, r = _d(Kr, n);
5523
+ return /* @__PURE__ */ f(G.div, { id: r.id, ...o, ref: t });
5524
5524
  }
5525
5525
  );
5526
- hd.displayName = qr;
5526
+ hd.displayName = Kr;
5527
5527
  var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5528
5528
  (e, t) => {
5529
5529
  const {
@@ -5532,10 +5532,10 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5532
5532
  disabled: r = !1,
5533
5533
  textValue: s,
5534
5534
  ...a
5535
- } = e, i = ze(Wt, n), c = Oe(Wt, n), l = i.value === o, [u, d] = p.useState(s ?? ""), [h, m] = p.useState(!1), w = ne(
5535
+ } = e, i = ze(Wt, n), c = Oe(Wt, n), l = i.value === o, [u, d] = p.useState(s ?? ""), [h, m] = p.useState(!1), v = ne(
5536
5536
  t,
5537
5537
  (C) => c.itemRefCallback?.(C, o, r)
5538
- ), _ = Fn(), g = p.useRef("touch"), v = () => {
5538
+ ), _ = Fn(), g = p.useRef("touch"), w = () => {
5539
5539
  r || (i.onValueChange(o), i.onOpenChange(!1));
5540
5540
  };
5541
5541
  if (o === "")
@@ -5561,7 +5561,7 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5561
5561
  disabled: r,
5562
5562
  textValue: u,
5563
5563
  children: /* @__PURE__ */ f(
5564
- K.div,
5564
+ G.div,
5565
5565
  {
5566
5566
  role: "option",
5567
5567
  "aria-labelledby": _,
@@ -5572,14 +5572,14 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5572
5572
  "data-disabled": r ? "" : void 0,
5573
5573
  tabIndex: r ? void 0 : -1,
5574
5574
  ...a,
5575
- ref: w,
5575
+ ref: v,
5576
5576
  onFocus: te(a.onFocus, () => m(!0)),
5577
5577
  onBlur: te(a.onBlur, () => m(!1)),
5578
5578
  onClick: te(a.onClick, () => {
5579
- g.current !== "mouse" && v();
5579
+ g.current !== "mouse" && w();
5580
5580
  }),
5581
5581
  onPointerUp: te(a.onPointerUp, () => {
5582
- g.current === "mouse" && v();
5582
+ g.current === "mouse" && w();
5583
5583
  }),
5584
5584
  onPointerDown: te(a.onPointerDown, (C) => {
5585
5585
  g.current = C.pointerType;
@@ -5591,7 +5591,7 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5591
5591
  C.currentTarget === document.activeElement && c.onItemLeave?.();
5592
5592
  }),
5593
5593
  onKeyDown: te(a.onKeyDown, (C) => {
5594
- c.searchRef?.current !== "" && C.key === " " || (ed.includes(C.key) && v(), C.key === " " && C.preventDefault());
5594
+ c.searchRef?.current !== "" && C.key === " " || (ed.includes(C.key) && w(), C.key === " " && C.preventDefault());
5595
5595
  })
5596
5596
  }
5597
5597
  )
@@ -5602,32 +5602,32 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = p.forwardRef(
5602
5602
  }
5603
5603
  );
5604
5604
  Jr.displayName = Wt;
5605
- var wt = "SelectItemText", es = p.forwardRef(
5605
+ var vt = "SelectItemText", es = p.forwardRef(
5606
5606
  (e, t) => {
5607
- const { __scopeSelect: n, className: o, style: r, ...s } = e, a = ze(wt, n), i = Oe(wt, n), c = Qr(wt, n), l = rd(wt, n), [u, d] = p.useState(null), h = ne(
5607
+ const { __scopeSelect: n, className: o, style: r, ...s } = e, a = ze(vt, n), i = Oe(vt, n), c = Qr(vt, n), l = rd(vt, n), [u, d] = p.useState(null), h = ne(
5608
5608
  t,
5609
- (v) => d(v),
5609
+ (w) => d(w),
5610
5610
  c.onItemTextChange,
5611
- (v) => i.itemTextRefCallback?.(v, c.value, c.disabled)
5612
- ), m = u?.textContent, w = p.useMemo(
5611
+ (w) => i.itemTextRefCallback?.(w, c.value, c.disabled)
5612
+ ), m = u?.textContent, v = p.useMemo(
5613
5613
  () => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
5614
5614
  [c.disabled, c.value, m]
5615
5615
  ), { onNativeOptionAdd: _, onNativeOptionRemove: g } = l;
5616
- return le(() => (_(w), () => g(w)), [_, g, w]), /* @__PURE__ */ A(Ee, { children: [
5617
- /* @__PURE__ */ f(K.span, { id: c.textId, ...s, ref: h }),
5616
+ return le(() => (_(v), () => g(v)), [_, g, v]), /* @__PURE__ */ A(Ee, { children: [
5617
+ /* @__PURE__ */ f(G.span, { id: c.textId, ...s, ref: h }),
5618
5618
  c.isSelected && a.valueNode && !a.valueNodeHasChildren ? Zt.createPortal(s.children, a.valueNode) : null
5619
5619
  ] });
5620
5620
  }
5621
5621
  );
5622
- es.displayName = wt;
5622
+ es.displayName = vt;
5623
5623
  var ts = "SelectItemIndicator", gd = p.forwardRef(
5624
5624
  (e, t) => {
5625
5625
  const { __scopeSelect: n, ...o } = e;
5626
- return Qr(ts, n).isSelected ? /* @__PURE__ */ f(K.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5626
+ return Qr(ts, n).isSelected ? /* @__PURE__ */ f(G.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5627
5627
  }
5628
5628
  );
5629
5629
  gd.displayName = ts;
5630
- var Rn = "SelectScrollUpButton", wd = p.forwardRef((e, t) => {
5630
+ var Rn = "SelectScrollUpButton", vd = p.forwardRef((e, t) => {
5631
5631
  const n = Oe(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, s] = p.useState(!1), a = ne(t, o.onScrollButtonChange);
5632
5632
  return le(() => {
5633
5633
  if (n.viewport && n.isPositioned) {
@@ -5650,8 +5650,8 @@ var Rn = "SelectScrollUpButton", wd = p.forwardRef((e, t) => {
5650
5650
  }
5651
5651
  ) : null;
5652
5652
  });
5653
- wd.displayName = Rn;
5654
- var Nn = "SelectScrollDownButton", vd = p.forwardRef((e, t) => {
5653
+ vd.displayName = Rn;
5654
+ var Nn = "SelectScrollDownButton", wd = p.forwardRef((e, t) => {
5655
5655
  const n = Oe(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, s] = p.useState(!1), a = ne(t, o.onScrollButtonChange);
5656
5656
  return le(() => {
5657
5657
  if (n.viewport && n.isPositioned) {
@@ -5674,7 +5674,7 @@ var Nn = "SelectScrollDownButton", vd = p.forwardRef((e, t) => {
5674
5674
  }
5675
5675
  ) : null;
5676
5676
  });
5677
- vd.displayName = Nn;
5677
+ wd.displayName = Nn;
5678
5678
  var ns = p.forwardRef((e, t) => {
5679
5679
  const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = Oe("SelectScrollButton", n), a = p.useRef(null), i = Jt(n), c = p.useCallback(() => {
5680
5680
  a.current !== null && (window.clearInterval(a.current), a.current = null);
@@ -5682,7 +5682,7 @@ var ns = p.forwardRef((e, t) => {
5682
5682
  return p.useEffect(() => () => c(), [c]), le(() => {
5683
5683
  i().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
5684
5684
  }, [i]), /* @__PURE__ */ f(
5685
- K.div,
5685
+ G.div,
5686
5686
  {
5687
5687
  "aria-hidden": !0,
5688
5688
  ...r,
@@ -5702,18 +5702,18 @@ var ns = p.forwardRef((e, t) => {
5702
5702
  }), Cd = "SelectSeparator", bd = p.forwardRef(
5703
5703
  (e, t) => {
5704
5704
  const { __scopeSelect: n, ...o } = e;
5705
- return /* @__PURE__ */ f(K.div, { "aria-hidden": !0, ...o, ref: t });
5705
+ return /* @__PURE__ */ f(G.div, { "aria-hidden": !0, ...o, ref: t });
5706
5706
  }
5707
5707
  );
5708
5708
  bd.displayName = Cd;
5709
- var kn = "SelectArrow", xd = p.forwardRef(
5709
+ var kn = "SelectArrow", yd = p.forwardRef(
5710
5710
  (e, t) => {
5711
5711
  const { __scopeSelect: n, ...o } = e, r = en(n), s = ze(kn, n), a = Oe(kn, n);
5712
5712
  return s.open && a.position === "popper" ? /* @__PURE__ */ f(su, { ...r, ...o, ref: t }) : null;
5713
5713
  }
5714
5714
  );
5715
- xd.displayName = kn;
5716
- var yd = "SelectBubbleInput", os = p.forwardRef(
5715
+ yd.displayName = kn;
5716
+ var xd = "SelectBubbleInput", os = p.forwardRef(
5717
5717
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5718
5718
  const r = p.useRef(null), s = ne(o, r), a = uu(t);
5719
5719
  return p.useEffect(() => {
@@ -5728,7 +5728,7 @@ var yd = "SelectBubbleInput", os = p.forwardRef(
5728
5728
  u.call(i, t), i.dispatchEvent(d);
5729
5729
  }
5730
5730
  }, [a, t]), /* @__PURE__ */ f(
5731
- K.select,
5731
+ G.select,
5732
5732
  {
5733
5733
  ...n,
5734
5734
  style: { ...Pr, ...n.style },
@@ -5738,7 +5738,7 @@ var yd = "SelectBubbleInput", os = p.forwardRef(
5738
5738
  );
5739
5739
  }
5740
5740
  );
5741
- os.displayName = yd;
5741
+ os.displayName = xd;
5742
5742
  function rs(e) {
5743
5743
  return e === "" || e === void 0;
5744
5744
  }
@@ -5768,8 +5768,8 @@ function as(e, t, n) {
5768
5768
  function Sd(e, t) {
5769
5769
  return e.map((n, o) => e[(t + o) % e.length]);
5770
5770
  }
5771
- var Ed = Dr, Ld = Hr, $d = jr, Pd = Wr, Rd = Fr, Nd = Ur, kd = Gr, Ad = Jr, Td = es;
5772
- const Md = "_focus_nhfh5_550", Id = "_swap_nhfh5_632", zd = "_swap__content_nhfh5_688", Od = "_container_nhfh5_781", Dd = "_wrapper_nhfh5_787", Vd = "_disabled_nhfh5_803", Hd = "_size32_nhfh5_807", Bd = "_size48_nhfh5_810", jd = "_prefix_nhfh5_815", Wd = "_suffix_nhfh5_816", Fd = "_trigger_nhfh5_848", Ud = "_icon_nhfh5_876", Zd = "_content_nhfh5_891", Xd = "_fadeIn_nhfh5_1", Yd = "_item_nhfh5_910", Gd = "_itemContent_nhfh5_936", Kd = "_itemLabel_nhfh5_944", qd = "_label_nhfh5_953", Qd = "_value_nhfh5_961", G = {
5771
+ var Ed = Dr, Ld = Hr, $d = jr, Pd = Wr, Rd = Fr, Nd = Ur, kd = Yr, Ad = Jr, Td = es;
5772
+ const Md = "_focus_nhfh5_550", Id = "_swap_nhfh5_632", zd = "_swap__content_nhfh5_688", Od = "_container_nhfh5_781", Dd = "_wrapper_nhfh5_787", Vd = "_disabled_nhfh5_803", Hd = "_size32_nhfh5_807", Bd = "_size48_nhfh5_810", jd = "_prefix_nhfh5_815", Wd = "_suffix_nhfh5_816", Fd = "_trigger_nhfh5_848", Ud = "_icon_nhfh5_876", Zd = "_content_nhfh5_891", qd = "_fadeIn_nhfh5_1", Xd = "_item_nhfh5_910", Yd = "_itemContent_nhfh5_936", Gd = "_itemLabel_nhfh5_944", Kd = "_label_nhfh5_953", Qd = "_value_nhfh5_961", Y = {
5773
5773
  focus: Md,
5774
5774
  "focus--default": "_focus--default_nhfh5_567",
5775
5775
  "focus--danger": "_focus--danger_nhfh5_571",
@@ -5804,21 +5804,21 @@ const Md = "_focus_nhfh5_550", Id = "_swap_nhfh5_632", zd = "_swap__content_nhfh
5804
5804
  trigger: Fd,
5805
5805
  icon: Ud,
5806
5806
  content: Zd,
5807
- fadeIn: Xd,
5808
- item: Yd,
5809
- itemContent: Gd,
5810
- itemLabel: Kd,
5811
- label: qd,
5807
+ fadeIn: qd,
5808
+ item: Xd,
5809
+ itemContent: Yd,
5810
+ itemLabel: Gd,
5811
+ label: Kd,
5812
5812
  value: Qd
5813
5813
  };
5814
- function X() {
5815
- return X = Object.assign ? Object.assign.bind() : function(e) {
5814
+ function q() {
5815
+ return q = Object.assign ? Object.assign.bind() : function(e) {
5816
5816
  for (var t = 1; t < arguments.length; t++) {
5817
5817
  var n = arguments[t];
5818
5818
  for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
5819
5819
  }
5820
5820
  return e;
5821
- }, X.apply(null, arguments);
5821
+ }, q.apply(null, arguments);
5822
5822
  }
5823
5823
  function Jd(e, t) {
5824
5824
  typeof e == "function" ? e(t) : e != null && (e.current = t);
@@ -5828,18 +5828,18 @@ function is(...e) {
5828
5828
  (n) => Jd(n, t)
5829
5829
  );
5830
5830
  }
5831
- function Ke(...e) {
5831
+ function Ge(...e) {
5832
5832
  return In(is(...e), e);
5833
5833
  }
5834
5834
  const cs = /* @__PURE__ */ P((e, t) => {
5835
5835
  const { children: n, ...o } = e, r = ot.toArray(n), s = r.find(t0);
5836
5836
  if (s) {
5837
5837
  const a = s.props.children, i = r.map((c) => c === s ? ot.count(a) > 1 ? ot.only(null) : /* @__PURE__ */ zt(a) ? a.props.children : null : c);
5838
- return /* @__PURE__ */ D(An, X({}, o, {
5838
+ return /* @__PURE__ */ D(An, q({}, o, {
5839
5839
  ref: t
5840
5840
  }), /* @__PURE__ */ zt(a) ? /* @__PURE__ */ zn(a, void 0, i) : null);
5841
5841
  }
5842
- return /* @__PURE__ */ D(An, X({}, o, {
5842
+ return /* @__PURE__ */ D(An, q({}, o, {
5843
5843
  ref: t
5844
5844
  }), n);
5845
5845
  });
@@ -5894,12 +5894,12 @@ const o0 = [
5894
5894
  "span",
5895
5895
  "svg",
5896
5896
  "ul"
5897
- ], xt = o0.reduce((e, t) => {
5897
+ ], yt = o0.reduce((e, t) => {
5898
5898
  const n = /* @__PURE__ */ P((o, r) => {
5899
5899
  const { asChild: s, ...a } = o, i = s ? cs : t;
5900
5900
  return se(() => {
5901
5901
  window[Symbol.for("radix-ui")] = !0;
5902
- }, []), /* @__PURE__ */ D(i, X({}, a, {
5902
+ }, []), /* @__PURE__ */ D(i, q({}, a, {
5903
5903
  ref: r
5904
5904
  }));
5905
5905
  });
@@ -5915,15 +5915,15 @@ function r0(e, t) {
5915
5915
  return r ?? n;
5916
5916
  }, e);
5917
5917
  }
5918
- const yt = (e) => {
5918
+ const xt = (e) => {
5919
5919
  const { present: t, children: n } = e, o = s0(t), r = typeof n == "function" ? n({
5920
5920
  present: o.isPresent
5921
- }) : ot.only(n), s = Ke(o.ref, r.ref);
5921
+ }) : ot.only(n), s = Ge(o.ref, r.ref);
5922
5922
  return typeof n == "function" || o.isPresent ? /* @__PURE__ */ zn(r, {
5923
5923
  ref: s
5924
5924
  }) : null;
5925
5925
  };
5926
- yt.displayName = "Presence";
5926
+ xt.displayName = "Presence";
5927
5927
  function s0(e) {
5928
5928
  const [t, n] = j(), o = ce({}), r = ce(e), s = ce("none"), a = e ? "mounted" : "unmounted", [i, c] = r0(a, {
5929
5929
  mounted: {
@@ -5986,23 +5986,23 @@ function At(e) {
5986
5986
  function a0(e, t = []) {
5987
5987
  let n = [];
5988
5988
  function o(s, a) {
5989
- const i = /* @__PURE__ */ vn(a), c = n.length;
5989
+ const i = /* @__PURE__ */ wn(a), c = n.length;
5990
5990
  n = [
5991
5991
  ...n,
5992
5992
  a
5993
5993
  ];
5994
5994
  function l(d) {
5995
- const { scope: h, children: m, ...w } = d, _ = h?.[e][c] || i, g = Ot(
5996
- () => w,
5997
- Object.values(w)
5995
+ const { scope: h, children: m, ...v } = d, _ = h?.[e][c] || i, g = Ot(
5996
+ () => v,
5997
+ Object.values(v)
5998
5998
  );
5999
5999
  return /* @__PURE__ */ D(_.Provider, {
6000
6000
  value: g
6001
6001
  }, m);
6002
6002
  }
6003
6003
  function u(d, h) {
6004
- const m = h?.[e][c] || i, w = zo(m);
6005
- if (w) return w;
6004
+ const m = h?.[e][c] || i, v = zo(m);
6005
+ if (v) return v;
6006
6006
  if (a !== void 0) return a;
6007
6007
  throw new Error(`\`${d}\` must be used within \`${s}\``);
6008
6008
  }
@@ -6012,7 +6012,7 @@ function a0(e, t = []) {
6012
6012
  ];
6013
6013
  }
6014
6014
  const r = () => {
6015
- const s = n.map((a) => /* @__PURE__ */ vn(a));
6015
+ const s = n.map((a) => /* @__PURE__ */ wn(a));
6016
6016
  return function(i) {
6017
6017
  const c = i?.[e] || s;
6018
6018
  return Ot(
@@ -6076,7 +6076,7 @@ function We(e) {
6076
6076
  []
6077
6077
  );
6078
6078
  }
6079
- const c0 = /* @__PURE__ */ vn(void 0);
6079
+ const c0 = /* @__PURE__ */ wn(void 0);
6080
6080
  function l0(e) {
6081
6081
  const t = zo(c0);
6082
6082
  return e || t || "ltr";
@@ -6096,7 +6096,7 @@ function d0(e, t) {
6096
6096
  }, e);
6097
6097
  }
6098
6098
  const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */ P((e, t) => {
6099
- const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: s = 600, ...a } = e, [i, c] = j(null), [l, u] = j(null), [d, h] = j(null), [m, w] = j(null), [_, g] = j(null), [v, C] = j(0), [b, x] = j(0), [y, E] = j(!1), [S, L] = j(!1), $ = Ke(
6099
+ const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: s = 600, ...a } = e, [i, c] = j(null), [l, u] = j(null), [d, h] = j(null), [m, v] = j(null), [_, g] = j(null), [w, C] = j(0), [b, y] = j(0), [x, E] = j(!1), [S, L] = j(!1), $ = Ge(
6100
6100
  t,
6101
6101
  (z) => c(z)
6102
6102
  ), N = l0(r);
@@ -6111,34 +6111,34 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6111
6111
  content: d,
6112
6112
  onContentChange: h,
6113
6113
  scrollbarX: m,
6114
- onScrollbarXChange: w,
6115
- scrollbarXEnabled: y,
6114
+ onScrollbarXChange: v,
6115
+ scrollbarXEnabled: x,
6116
6116
  onScrollbarXEnabledChange: E,
6117
6117
  scrollbarY: _,
6118
6118
  onScrollbarYChange: g,
6119
6119
  scrollbarYEnabled: S,
6120
6120
  onScrollbarYEnabledChange: L,
6121
6121
  onCornerWidthChange: C,
6122
- onCornerHeightChange: x
6123
- }, /* @__PURE__ */ D(xt.div, X({
6122
+ onCornerHeightChange: y
6123
+ }, /* @__PURE__ */ D(yt.div, q({
6124
6124
  dir: N
6125
6125
  }, a, {
6126
6126
  ref: $,
6127
6127
  style: {
6128
6128
  position: "relative",
6129
6129
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
6130
- "--radix-scroll-area-corner-width": v + "px",
6130
+ "--radix-scroll-area-corner-width": w + "px",
6131
6131
  "--radix-scroll-area-corner-height": b + "px",
6132
6132
  ...e.style
6133
6133
  }
6134
6134
  })));
6135
6135
  }), p0 = "ScrollAreaViewport", h0 = /* @__PURE__ */ P((e, t) => {
6136
- const { __scopeScrollArea: n, children: o, ...r } = e, s = he(p0, n), a = ce(null), i = Ke(t, a, s.onViewportChange);
6136
+ const { __scopeScrollArea: n, children: o, ...r } = e, s = he(p0, n), a = ce(null), i = Ge(t, a, s.onViewportChange);
6137
6137
  return /* @__PURE__ */ D(Mo, null, /* @__PURE__ */ D("style", {
6138
6138
  dangerouslySetInnerHTML: {
6139
6139
  __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
6140
6140
  }
6141
- }), /* @__PURE__ */ D(xt.div, X({
6141
+ }), /* @__PURE__ */ D(yt.div, q({
6142
6142
  "data-radix-scroll-area-viewport": ""
6143
6143
  }, r, {
6144
6144
  ref: i,
@@ -6173,16 +6173,16 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6173
6173
  i,
6174
6174
  s,
6175
6175
  a
6176
- ]), r.type === "hover" ? /* @__PURE__ */ D(g0, X({}, o, {
6176
+ ]), r.type === "hover" ? /* @__PURE__ */ D(g0, q({}, o, {
6177
6177
  ref: t,
6178
6178
  forceMount: n
6179
- })) : r.type === "scroll" ? /* @__PURE__ */ D(w0, X({}, o, {
6179
+ })) : r.type === "scroll" ? /* @__PURE__ */ D(v0, q({}, o, {
6180
6180
  ref: t,
6181
6181
  forceMount: n
6182
- })) : r.type === "auto" ? /* @__PURE__ */ D(ds, X({}, o, {
6182
+ })) : r.type === "auto" ? /* @__PURE__ */ D(ds, q({}, o, {
6183
6183
  ref: t,
6184
6184
  forceMount: n
6185
- })) : r.type === "always" ? /* @__PURE__ */ D(eo, X({}, o, {
6185
+ })) : r.type === "always" ? /* @__PURE__ */ D(eo, q({}, o, {
6186
6186
  ref: t
6187
6187
  })) : null;
6188
6188
  }), g0 = /* @__PURE__ */ P((e, t) => {
@@ -6206,14 +6206,14 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6206
6206
  }, [
6207
6207
  r.scrollArea,
6208
6208
  r.scrollHideDelay
6209
- ]), /* @__PURE__ */ D(yt, {
6209
+ ]), /* @__PURE__ */ D(xt, {
6210
6210
  present: n || s
6211
- }, /* @__PURE__ */ D(ds, X({
6211
+ }, /* @__PURE__ */ D(ds, q({
6212
6212
  "data-state": s ? "visible" : "hidden"
6213
6213
  }, o, {
6214
6214
  ref: t
6215
6215
  })));
6216
- }), w0 = /* @__PURE__ */ P((e, t) => {
6216
+ }), v0 = /* @__PURE__ */ P((e, t) => {
6217
6217
  const { forceMount: n, ...o } = e, r = he(Pe, e.__scopeScrollArea), s = e.orientation === "horizontal", a = nn(
6218
6218
  () => c("SCROLL_END"),
6219
6219
  100
@@ -6262,9 +6262,9 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6262
6262
  s,
6263
6263
  c,
6264
6264
  a
6265
- ]), /* @__PURE__ */ D(yt, {
6265
+ ]), /* @__PURE__ */ D(xt, {
6266
6266
  present: n || i !== "hidden"
6267
- }, /* @__PURE__ */ D(eo, X({
6267
+ }, /* @__PURE__ */ D(eo, q({
6268
6268
  "data-state": i === "hidden" ? "hidden" : "visible"
6269
6269
  }, o, {
6270
6270
  ref: t,
@@ -6284,9 +6284,9 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6284
6284
  a(i ? l : u);
6285
6285
  }
6286
6286
  }, 10);
6287
- return ct(n.viewport, c), ct(n.content, c), /* @__PURE__ */ D(yt, {
6287
+ return ct(n.viewport, c), ct(n.content, c), /* @__PURE__ */ D(xt, {
6288
6288
  present: o || s
6289
- }, /* @__PURE__ */ D(eo, X({
6289
+ }, /* @__PURE__ */ D(eo, q({
6290
6290
  "data-state": s ? "visible" : "hidden"
6291
6291
  }, r, {
6292
6292
  ref: t
@@ -6312,7 +6312,7 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6312
6312
  function d(h, m) {
6313
6313
  return E0(h, a.current, i, m);
6314
6314
  }
6315
- return n === "horizontal" ? /* @__PURE__ */ D(v0, X({}, u, {
6315
+ return n === "horizontal" ? /* @__PURE__ */ D(w0, q({}, u, {
6316
6316
  ref: t,
6317
6317
  onThumbPositionChange: () => {
6318
6318
  if (r.viewport && s.current) {
@@ -6326,7 +6326,7 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6326
6326
  onDragScroll: (h) => {
6327
6327
  r.viewport && (r.viewport.scrollLeft = d(h, r.dir));
6328
6328
  }
6329
- })) : n === "vertical" ? /* @__PURE__ */ D(C0, X({}, u, {
6329
+ })) : n === "vertical" ? /* @__PURE__ */ D(C0, q({}, u, {
6330
6330
  ref: t,
6331
6331
  onThumbPositionChange: () => {
6332
6332
  if (r.viewport && s.current) {
@@ -6341,13 +6341,13 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6341
6341
  r.viewport && (r.viewport.scrollTop = d(h));
6342
6342
  }
6343
6343
  })) : null;
6344
- }), v0 = /* @__PURE__ */ P((e, t) => {
6345
- const { sizes: n, onSizesChange: o, ...r } = e, s = he(Pe, e.__scopeScrollArea), [a, i] = j(), c = ce(null), l = Ke(t, c, s.onScrollbarXChange);
6344
+ }), w0 = /* @__PURE__ */ P((e, t) => {
6345
+ const { sizes: n, onSizesChange: o, ...r } = e, s = he(Pe, e.__scopeScrollArea), [a, i] = j(), c = ce(null), l = Ge(t, c, s.onScrollbarXChange);
6346
6346
  return se(() => {
6347
6347
  c.current && i(getComputedStyle(c.current));
6348
6348
  }, [
6349
6349
  c
6350
- ]), /* @__PURE__ */ D(_s, X({
6350
+ ]), /* @__PURE__ */ D(_s, q({
6351
6351
  "data-orientation": "horizontal"
6352
6352
  }, r, {
6353
6353
  ref: l,
@@ -6380,12 +6380,12 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6380
6380
  }
6381
6381
  }));
6382
6382
  }), C0 = /* @__PURE__ */ P((e, t) => {
6383
- const { sizes: n, onSizesChange: o, ...r } = e, s = he(Pe, e.__scopeScrollArea), [a, i] = j(), c = ce(null), l = Ke(t, c, s.onScrollbarYChange);
6383
+ const { sizes: n, onSizesChange: o, ...r } = e, s = he(Pe, e.__scopeScrollArea), [a, i] = j(), c = ce(null), l = Ge(t, c, s.onScrollbarYChange);
6384
6384
  return se(() => {
6385
6385
  c.current && i(getComputedStyle(c.current));
6386
6386
  }, [
6387
6387
  c
6388
- ]), /* @__PURE__ */ D(_s, X({
6388
+ ]), /* @__PURE__ */ D(_s, q({
6389
6389
  "data-orientation": "vertical"
6390
6390
  }, r, {
6391
6391
  ref: l,
@@ -6419,13 +6419,13 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6419
6419
  }
6420
6420
  }));
6421
6421
  }), [b0, fs] = us(Pe), _s = /* @__PURE__ */ P((e, t) => {
6422
- const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: s, onThumbPointerUp: a, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...h } = e, m = he(Pe, n), [w, _] = j(null), g = Ke(
6422
+ const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: s, onThumbPointerUp: a, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...h } = e, m = he(Pe, n), [v, _] = j(null), g = Ge(
6423
6423
  t,
6424
6424
  ($) => _($)
6425
- ), v = ce(null), C = ce(""), b = m.viewport, x = o.content - o.viewport, y = We(u), E = We(c), S = nn(d, 10);
6425
+ ), w = ce(null), C = ce(""), b = m.viewport, y = o.content - o.viewport, x = We(u), E = We(c), S = nn(d, 10);
6426
6426
  function L($) {
6427
- if (v.current) {
6428
- const N = $.clientX - v.current.left, z = $.clientY - v.current.top;
6427
+ if (w.current) {
6428
+ const N = $.clientX - w.current.left, z = $.clientY - w.current.top;
6429
6429
  l({
6430
6430
  x: N,
6431
6431
  y: z
@@ -6435,7 +6435,7 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6435
6435
  return se(() => {
6436
6436
  const $ = (N) => {
6437
6437
  const z = N.target;
6438
- w?.contains(z) && y(N, x);
6438
+ v?.contains(z) && x(N, y);
6439
6439
  };
6440
6440
  return document.addEventListener("wheel", $, {
6441
6441
  passive: !1
@@ -6444,44 +6444,44 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6444
6444
  });
6445
6445
  }, [
6446
6446
  b,
6447
- w,
6448
- x,
6449
- y
6447
+ v,
6448
+ y,
6449
+ x
6450
6450
  ]), se(E, [
6451
6451
  o,
6452
6452
  E
6453
- ]), ct(w, S), ct(m.content, S), /* @__PURE__ */ D(b0, {
6453
+ ]), ct(v, S), ct(m.content, S), /* @__PURE__ */ D(b0, {
6454
6454
  scope: n,
6455
- scrollbar: w,
6455
+ scrollbar: v,
6456
6456
  hasThumb: r,
6457
6457
  onThumbChange: We(s),
6458
6458
  onThumbPointerUp: We(a),
6459
6459
  onThumbPositionChange: E,
6460
6460
  onThumbPointerDown: We(i)
6461
- }, /* @__PURE__ */ D(xt.div, X({}, h, {
6461
+ }, /* @__PURE__ */ D(yt.div, q({}, h, {
6462
6462
  ref: g,
6463
6463
  style: {
6464
6464
  position: "absolute",
6465
6465
  ...h.style
6466
6466
  },
6467
6467
  onPointerDown: Fe(e.onPointerDown, ($) => {
6468
- $.button === 0 && ($.target.setPointerCapture($.pointerId), v.current = w.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), L($));
6468
+ $.button === 0 && ($.target.setPointerCapture($.pointerId), w.current = v.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), L($));
6469
6469
  }),
6470
6470
  onPointerMove: Fe(e.onPointerMove, L),
6471
6471
  onPointerUp: Fe(e.onPointerUp, ($) => {
6472
6472
  const N = $.target;
6473
- N.hasPointerCapture($.pointerId) && N.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = C.current, m.viewport && (m.viewport.style.scrollBehavior = ""), v.current = null;
6473
+ N.hasPointerCapture($.pointerId) && N.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = C.current, m.viewport && (m.viewport.style.scrollBehavior = ""), w.current = null;
6474
6474
  })
6475
6475
  })));
6476
- }), Mn = "ScrollAreaThumb", wn = /* @__PURE__ */ P((e, t) => {
6476
+ }), Mn = "ScrollAreaThumb", vn = /* @__PURE__ */ P((e, t) => {
6477
6477
  const { forceMount: n, ...o } = e, r = fs(Mn, e.__scopeScrollArea);
6478
- return /* @__PURE__ */ D(yt, {
6478
+ return /* @__PURE__ */ D(xt, {
6479
6479
  present: n || r.hasThumb
6480
- }, /* @__PURE__ */ D(x0, X({
6480
+ }, /* @__PURE__ */ D(y0, q({
6481
6481
  ref: t
6482
6482
  }, o)));
6483
- }), x0 = /* @__PURE__ */ P((e, t) => {
6484
- const { __scopeScrollArea: n, style: o, ...r } = e, s = he(Mn, n), a = fs(Mn, n), { onThumbPositionChange: i } = a, c = Ke(
6483
+ }), y0 = /* @__PURE__ */ P((e, t) => {
6484
+ const { __scopeScrollArea: n, style: o, ...r } = e, s = he(Mn, n), a = fs(Mn, n), { onThumbPositionChange: i } = a, c = Ge(
6485
6485
  t,
6486
6486
  (d) => a.onThumbChange(d)
6487
6487
  ), l = ce(), u = nn(() => {
@@ -6502,7 +6502,7 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6502
6502
  s.viewport,
6503
6503
  u,
6504
6504
  i
6505
- ]), /* @__PURE__ */ D(xt.div, X({
6505
+ ]), /* @__PURE__ */ D(yt.div, q({
6506
6506
  "data-state": a.hasThumb ? "visible" : "hidden"
6507
6507
  }, r, {
6508
6508
  ref: c,
@@ -6512,17 +6512,17 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6512
6512
  ...o
6513
6513
  },
6514
6514
  onPointerDownCapture: Fe(e.onPointerDownCapture, (d) => {
6515
- const m = d.target.getBoundingClientRect(), w = d.clientX - m.left, _ = d.clientY - m.top;
6515
+ const m = d.target.getBoundingClientRect(), v = d.clientX - m.left, _ = d.clientY - m.top;
6516
6516
  a.onThumbPointerDown({
6517
- x: w,
6517
+ x: v,
6518
6518
  y: _
6519
6519
  });
6520
6520
  }),
6521
6521
  onPointerUp: Fe(e.onPointerUp, a.onThumbPointerUp)
6522
6522
  }));
6523
- }), ps = "ScrollAreaCorner", y0 = /* @__PURE__ */ P((e, t) => {
6523
+ }), ps = "ScrollAreaCorner", x0 = /* @__PURE__ */ P((e, t) => {
6524
6524
  const n = he(ps, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
6525
- return n.type !== "scroll" && o ? /* @__PURE__ */ D(S0, X({}, e, {
6525
+ return n.type !== "scroll" && o ? /* @__PURE__ */ D(S0, q({}, e, {
6526
6526
  ref: t
6527
6527
  })) : null;
6528
6528
  }), S0 = /* @__PURE__ */ P((e, t) => {
@@ -6535,7 +6535,7 @@ const ls = "ScrollArea", [us] = a0(ls), [f0, he] = us(ls), _0 = /* @__PURE__ */
6535
6535
  var u;
6536
6536
  const d = ((u = r.scrollbarY) === null || u === void 0 ? void 0 : u.offsetWidth) || 0;
6537
6537
  r.onCornerWidthChange(d), a(d);
6538
- }), l ? /* @__PURE__ */ D(xt.div, X({}, o, {
6538
+ }), l ? /* @__PURE__ */ D(yt.div, q({}, o, {
6539
6539
  ref: t,
6540
6540
  style: {
6541
6541
  width: s,
@@ -6641,7 +6641,7 @@ function ct(e, t) {
6641
6641
  n
6642
6642
  ]);
6643
6643
  }
6644
- const $0 = _0, P0 = h0, R0 = y0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632", A0 = "_swap__content_3cfz1_688", T0 = "_root_3cfz1_780", M0 = "_viewport_3cfz1_786", I0 = "_scrollbar_3cfz1_799", z0 = "_thumb_3cfz1_812", O0 = "_corner_3cfz1_844", D0 = "_hideScrollbar_3cfz1_848", V0 = "_arrowButton_3cfz1_852", H0 = "_micro_3cfz1_882", B0 = "_tiny_3cfz1_893", j0 = "_small_3cfz1_903", W0 = "_large_3cfz1_927", F0 = "_xlarge_3cfz1_947", U0 = "_light_3cfz1_957", Z0 = "_dark_3cfz1_970", X0 = "_accent_3cfz1_986", Y0 = "_minimal_3cfz1_999", G0 = "_highContrast_3cfz1_1012", K0 = "_gap_3cfz1_1025", q0 = "_arrows_3cfz1_1040", Q0 = "_colorVariants_3cfz1_1119", ee = {
6644
+ const $0 = _0, P0 = h0, R0 = x0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632", A0 = "_swap__content_3cfz1_688", T0 = "_root_3cfz1_780", M0 = "_viewport_3cfz1_786", I0 = "_scrollbar_3cfz1_799", z0 = "_thumb_3cfz1_812", O0 = "_corner_3cfz1_844", D0 = "_hideScrollbar_3cfz1_848", V0 = "_arrowButton_3cfz1_852", H0 = "_micro_3cfz1_882", B0 = "_tiny_3cfz1_893", j0 = "_small_3cfz1_903", W0 = "_large_3cfz1_927", F0 = "_xlarge_3cfz1_947", U0 = "_light_3cfz1_957", Z0 = "_dark_3cfz1_970", q0 = "_accent_3cfz1_986", X0 = "_minimal_3cfz1_999", Y0 = "_highContrast_3cfz1_1012", G0 = "_gap_3cfz1_1025", K0 = "_arrows_3cfz1_1040", Q0 = "_colorVariants_3cfz1_1119", ee = {
6645
6645
  focus: N0,
6646
6646
  "focus--default": "_focus--default_3cfz1_567",
6647
6647
  "focus--danger": "_focus--danger_3cfz1_571",
@@ -6681,13 +6681,13 @@ const $0 = _0, P0 = h0, R0 = y0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632"
6681
6681
  xlarge: F0,
6682
6682
  light: U0,
6683
6683
  dark: Z0,
6684
- accent: X0,
6685
- minimal: Y0,
6686
- highContrast: G0,
6687
- gap: K0,
6688
- arrows: q0,
6684
+ accent: q0,
6685
+ minimal: X0,
6686
+ highContrast: Y0,
6687
+ gap: G0,
6688
+ arrows: K0,
6689
6689
  colorVariants: Q0
6690
- }, ws = P(
6690
+ }, vs = P(
6691
6691
  (e, t) => {
6692
6692
  const {
6693
6693
  children: n,
@@ -6702,7 +6702,7 @@ const $0 = _0, P0 = h0, R0 = y0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632"
6702
6702
  } = e, d = typeof r == "number" ? `${r}px` : r, h = typeof s == "number" ? `${s}px` : s, m = {
6703
6703
  maxHeight: d,
6704
6704
  maxWidth: h
6705
- }, w = I(
6705
+ }, v = I(
6706
6706
  ee.root,
6707
6707
  ee[a],
6708
6708
  ee[i],
@@ -6716,7 +6716,7 @@ const $0 = _0, P0 = h0, R0 = y0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632"
6716
6716
  {
6717
6717
  ref: t,
6718
6718
  type: l,
6719
- className: w,
6719
+ className: v,
6720
6720
  ...u,
6721
6721
  children: [
6722
6722
  /* @__PURE__ */ f(
@@ -6737,7 +6737,7 @@ const $0 = _0, P0 = h0, R0 = y0, N0 = "_focus_3cfz1_550", k0 = "_swap_3cfz1_632"
6737
6737
  );
6738
6738
  }
6739
6739
  );
6740
- ws.displayName = "ScrollArea";
6740
+ vs.displayName = "ScrollArea";
6741
6741
  const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default", theme: o = "light", ...r }, s) => {
6742
6742
  const [a, i] = j({ height: "20px", width: "20px" });
6743
6743
  se(() => {
@@ -6773,7 +6773,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
6773
6773
  t === "vertical" && /* @__PURE__ */ A(Ee, { children: [
6774
6774
  /* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "up", children: /* @__PURE__ */ f(mt, { width: 7, height: 4, color: "rgba(80, 80, 80, 1)", style: { transform: "rotate(180deg)" } }) }),
6775
6775
  /* @__PURE__ */ f(
6776
- wn,
6776
+ vn,
6777
6777
  {
6778
6778
  className: ee.thumb,
6779
6779
  style: c
@@ -6802,7 +6802,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
6802
6802
  }
6803
6803
  ) }),
6804
6804
  /* @__PURE__ */ f(
6805
- wn,
6805
+ vn,
6806
6806
  {
6807
6807
  className: ee.thumb,
6808
6808
  style: c
@@ -6819,7 +6819,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
6819
6819
  ) })
6820
6820
  ] })
6821
6821
  ] }),
6822
- !(n === "large" && o === "arrows") && /* @__PURE__ */ f(wn, { className: ee.thumb })
6822
+ !(n === "large" && o === "arrows") && /* @__PURE__ */ f(vn, { className: ee.thumb })
6823
6823
  ]
6824
6824
  }
6825
6825
  );
@@ -6839,28 +6839,28 @@ const J0 = P((e, t) => {
6839
6839
  prefix: d,
6840
6840
  suffix: h,
6841
6841
  setIsOpen: m,
6842
- value: w = "",
6842
+ value: v = "",
6843
6843
  variant: _ = "default",
6844
6844
  width: g = "100%",
6845
- size: v = "48"
6845
+ size: w = "48"
6846
6846
  // 👈 значение по умолчанию
6847
- } = e, [C, b] = j(r), x = _ === "pagination", y = () => {
6847
+ } = e, [C, b] = j(r), y = _ === "pagination", x = () => {
6848
6848
  o || (m ? m(!r) : b(!C));
6849
6849
  }, E = {
6850
- wrapper: I(G.wrapper, G[`size${v}`], G[_], n),
6851
- content: I(G.content, G[_]),
6852
- icon: I(G.icon, G[_]),
6853
- item: I(G.item, G[_]),
6854
- itemContent: I(G.itemContent),
6855
- itemLabel: I(G.itemLabel, G[_]),
6856
- label: I(G.label),
6857
- trigger: I(G.trigger, G[`size${v}`], G[_], s && G.defaultWithLabel),
6858
- value: I(G.value),
6859
- prefix: I(G.prefix, G[`size${v}`]),
6860
- suffix: I(G.suffix, G[`size${v}`])
6850
+ wrapper: I(Y.wrapper, Y[`size${w}`], Y[_], n),
6851
+ content: I(Y.content, Y[_]),
6852
+ icon: I(Y.icon, Y[_]),
6853
+ item: I(Y.item, Y[_]),
6854
+ itemContent: I(Y.itemContent),
6855
+ itemLabel: I(Y.itemLabel, Y[_]),
6856
+ label: I(Y.label),
6857
+ trigger: I(Y.trigger, Y[`size${w}`], Y[_], s && Y.defaultWithLabel),
6858
+ value: I(Y.value),
6859
+ prefix: I(Y.prefix, Y[`size${w}`]),
6860
+ suffix: I(Y.suffix, Y[`size${w}`])
6861
6861
  };
6862
6862
  return /* @__PURE__ */ A("div", { ref: t, children: [
6863
- s && /* @__PURE__ */ f(pl, { className: E.label, onClick: y, children: s }),
6863
+ s && /* @__PURE__ */ f(pl, { className: E.label, onClick: x, children: s }),
6864
6864
  /* @__PURE__ */ A("div", { className: E.wrapper, style: { width: g }, children: [
6865
6865
  d && /* @__PURE__ */ f("div", { className: E.prefix, children: d }),
6866
6866
  /* @__PURE__ */ A(
@@ -6869,9 +6869,9 @@ const J0 = P((e, t) => {
6869
6869
  disabled: o,
6870
6870
  name: i,
6871
6871
  open: C,
6872
- onOpenChange: y,
6872
+ onOpenChange: x,
6873
6873
  onValueChange: c,
6874
- value: w,
6874
+ value: v,
6875
6875
  children: [
6876
6876
  /* @__PURE__ */ A(Ld, { className: E.trigger, children: [
6877
6877
  /* @__PURE__ */ f(
@@ -6884,8 +6884,8 @@ const J0 = P((e, t) => {
6884
6884
  /* @__PURE__ */ f(Pd, { className: E.icon, children: /* @__PURE__ */ f(
6885
6885
  On,
6886
6886
  {
6887
- height: x ? 16 : 20,
6888
- width: x ? 16 : 20
6887
+ height: y ? 16 : 20,
6888
+ width: y ? 16 : 20
6889
6889
  }
6890
6890
  ) })
6891
6891
  ] }),
@@ -6895,7 +6895,7 @@ const J0 = P((e, t) => {
6895
6895
  className: E.content,
6896
6896
  position: "popper",
6897
6897
  sideOffset: -1,
6898
- children: /* @__PURE__ */ f(kd, { asChild: !0, children: /* @__PURE__ */ A(ws, { maxHeight: a, size: "micro", theme: "colorVariants", children: [
6898
+ children: /* @__PURE__ */ f(kd, { asChild: !0, children: /* @__PURE__ */ A(vs, { maxHeight: a, size: "micro", theme: "colorVariants", children: [
6899
6899
  l.map((S) => /* @__PURE__ */ f(
6900
6900
  Ad,
6901
6901
  {
@@ -6921,8 +6921,8 @@ const J0 = P((e, t) => {
6921
6921
  ] });
6922
6922
  });
6923
6923
  J0.displayName = "Select";
6924
- const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0k_688", o2 = "_root_1jn0k_780", r2 = "_wrapper_1jn0k_787", s2 = "_outline_1jn0k_794", a2 = "_fill_1jn0k_804", i2 = "_error_1jn0k_813", c2 = "_disabled_1jn0k_823", l2 = "_textarea_1jn0k_828", u2 = "_label_1jn0k_851", d2 = "_required_1jn0k_866", f2 = "_filled_1jn0k_875", _2 = "_clearButton_1jn0k_894", p2 = "_errorText_1jn0k_919", h2 = "_innerHint_1jn0k_925", pe = {
6925
- focus: e2,
6924
+ const ef = "_focus_1jn0k_550", tf = "_swap_1jn0k_632", nf = "_swap__content_1jn0k_688", of = "_root_1jn0k_780", rf = "_wrapper_1jn0k_787", sf = "_outline_1jn0k_794", af = "_fill_1jn0k_804", cf = "_error_1jn0k_813", lf = "_disabled_1jn0k_823", uf = "_textarea_1jn0k_828", df = "_label_1jn0k_851", ff = "_required_1jn0k_866", _f = "_filled_1jn0k_875", pf = "_clearButton_1jn0k_894", hf = "_errorText_1jn0k_919", mf = "_innerHint_1jn0k_925", pe = {
6925
+ focus: ef,
6926
6926
  "focus--default": "_focus--default_1jn0k_567",
6927
6927
  "focus--danger": "_focus--danger_1jn0k_571",
6928
6928
  "focus--visible": "_focus--visible_1jn0k_577",
@@ -6932,7 +6932,7 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
6932
6932
  "focus--input": "_focus--input_1jn0k_607",
6933
6933
  "focus--button": "_focus--button_1jn0k_612",
6934
6934
  "focus--card": "_focus--card_1jn0k_617",
6935
- swap: t2,
6935
+ swap: tf,
6936
6936
  "swap--text": "_swap--text_1jn0k_641",
6937
6937
  "swap--icon": "_swap--icon_1jn0k_652",
6938
6938
  "swap--icon-xs": "_swap--icon-xs_1jn0k_662",
@@ -6940,26 +6940,26 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
6940
6940
  "swap--icon-m": "_swap--icon-m_1jn0k_672",
6941
6941
  "swap--icon-l": "_swap--icon-l_1jn0k_677",
6942
6942
  "swap--icon-xl": "_swap--icon-xl_1jn0k_682",
6943
- swap__content: n2,
6943
+ swap__content: nf,
6944
6944
  "swap--group-horizontal": "_swap--group-horizontal_1jn0k_697",
6945
6945
  "swap--group-vertical": "_swap--group-vertical_1jn0k_704",
6946
6946
  "swap--with-background": "_swap--with-background_1jn0k_712",
6947
6947
  "swap--with-border": "_swap--with-border_1jn0k_718",
6948
6948
  "swap--interactive": "_swap--interactive_1jn0k_726",
6949
- root: o2,
6950
- wrapper: r2,
6951
- outline: s2,
6952
- fill: a2,
6953
- error: i2,
6954
- disabled: c2,
6955
- textarea: l2,
6956
- label: u2,
6957
- required: d2,
6958
- filled: f2,
6959
- clearButton: _2,
6960
- errorText: p2,
6961
- innerHint: h2
6962
- }, m2 = P(
6949
+ root: of,
6950
+ wrapper: rf,
6951
+ outline: sf,
6952
+ fill: af,
6953
+ error: cf,
6954
+ disabled: lf,
6955
+ textarea: uf,
6956
+ label: df,
6957
+ required: ff,
6958
+ filled: _f,
6959
+ clearButton: pf,
6960
+ errorText: hf,
6961
+ innerHint: mf
6962
+ }, gf = P(
6963
6963
  ({
6964
6964
  className: e,
6965
6965
  disabled: t,
@@ -6975,9 +6975,9 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
6975
6975
  type: d = "outline",
6976
6976
  value: h,
6977
6977
  defaultValue: m,
6978
- ...w
6978
+ ...v
6979
6979
  }, _) => {
6980
- const g = h !== void 0, [v, C] = j(m?.toString() ?? ""), b = g ? h : v, y = (b?.toString() ?? "").length > 0, E = (L) => {
6980
+ const g = h !== void 0, [w, C] = j(m?.toString() ?? ""), b = g ? h : w, x = (b?.toString() ?? "").length > 0, E = (L) => {
6981
6981
  g || C(L.target.value), c?.(L);
6982
6982
  }, S = () => {
6983
6983
  t || (g || C(""), c?.({
@@ -6992,7 +6992,7 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
6992
6992
  className: I(pe.wrapper, pe[d], {
6993
6993
  [pe.disabled]: t,
6994
6994
  [pe.error]: n,
6995
- [pe.filled]: y
6995
+ [pe.filled]: x
6996
6996
  }),
6997
6997
  children: [
6998
6998
  /* @__PURE__ */ f(
@@ -7006,15 +7006,15 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
7006
7006
  className: pe.textarea,
7007
7007
  value: b,
7008
7008
  onChange: E,
7009
- ...w
7009
+ ...v
7010
7010
  }
7011
7011
  ),
7012
7012
  s && /* @__PURE__ */ A("label", { htmlFor: a, className: pe.label, children: [
7013
7013
  s,
7014
7014
  r && /* @__PURE__ */ f(Vn, { className: pe.required })
7015
7015
  ] }),
7016
- o && !n && !y && /* @__PURE__ */ f("span", { className: pe.innerHint, children: o }),
7017
- u && y && !t && /* @__PURE__ */ f(
7016
+ o && !n && !x && /* @__PURE__ */ f("span", { className: pe.innerHint, children: o }),
7017
+ u && x && !t && /* @__PURE__ */ f(
7018
7018
  "button",
7019
7019
  {
7020
7020
  type: "button",
@@ -7031,38 +7031,38 @@ const e2 = "_focus_1jn0k_550", t2 = "_swap_1jn0k_632", n2 = "_swap__content_1jn0
7031
7031
  ] });
7032
7032
  }
7033
7033
  );
7034
- m2.displayName = "TextArea";
7034
+ gf.displayName = "TextArea";
7035
7035
  export {
7036
- C2 as Accordion,
7036
+ bf as Accordion,
7037
7037
  bs as AlertsBellIcon,
7038
7038
  On as ArrowChevronDownIcon,
7039
- xs as ArrowChevronLeftIcon,
7040
- ys as ArrowChevronRightIcon,
7039
+ ys as ArrowChevronLeftIcon,
7040
+ xs as ArrowChevronRightIcon,
7041
7041
  Oo as ArrowChevronUpIcon,
7042
7042
  mt as ArrowIcon,
7043
7043
  Ss as ArrowRefreshIcon,
7044
- b2 as AuthCard,
7044
+ yf as AuthCard,
7045
7045
  ci as Avatar,
7046
- x2 as AvatarGroup,
7047
- y2 as AvatarWithCssBorder,
7048
- S2 as Badge,
7046
+ xf as AvatarGroup,
7047
+ Sf as AvatarWithCssBorder,
7048
+ Ef as Badge,
7049
7049
  Cn as Button,
7050
7050
  Do as CheckIcon,
7051
7051
  jo as Checkbox,
7052
- $2 as Chip,
7053
- P2 as ControlledCheckbox,
7054
- R2 as ControlledInput,
7055
- N2 as ControlledInputGroupStack,
7056
- L2 as Counter,
7057
- Xa as Divider,
7058
- E2 as Dot,
7052
+ Pf as Chip,
7053
+ Rf as ControlledCheckbox,
7054
+ Nf as ControlledInput,
7055
+ kf as ControlledInputGroupStack,
7056
+ $f as Counter,
7057
+ qa as Divider,
7058
+ Lf as Dot,
7059
7059
  Ls as EyeIcon,
7060
7060
  $s as EyeSlashIcon,
7061
7061
  Es as FacebookIcon,
7062
7062
  Rs as ImagePhotoIcon,
7063
7063
  Ns as ImagePhotoOutline,
7064
- Ko as Input,
7065
- qo as InputGroupStack,
7064
+ Go as Input,
7065
+ Ko as InputGroupStack,
7066
7066
  Ps as InstagramIcon,
7067
7067
  ks as LogoutV1Outline,
7068
7068
  Dn as MathSymbolXV2Icon,
@@ -7070,17 +7070,17 @@ export {
7070
7070
  Ts as MathSymbolsXCircleContainedIcon,
7071
7071
  Vo as MinusIcon,
7072
7072
  Ms as OdnoklassnikiIcon,
7073
- k2 as PageContainer,
7073
+ Af as PageContainer,
7074
7074
  Vn as RequiredIcon,
7075
- ws as ScrollArea,
7075
+ vs as ScrollArea,
7076
7076
  Ut as ScrollBar,
7077
7077
  Is as SearchIcon,
7078
- A2 as SegmentControl,
7078
+ Tf as SegmentControl,
7079
7079
  J0 as Select,
7080
7080
  ha as Spinner,
7081
7081
  Ho as SwapIcon,
7082
7082
  zs as TelegramIcon,
7083
- m2 as TextArea,
7083
+ gf as TextArea,
7084
7084
  Os as TimeCalendarV2Icon,
7085
7085
  at as Typography,
7086
7086
  Ds as VKIcon