@fluid-app/fluid-cli-theme-dev 0.1.172 → 0.1.173

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.
Files changed (92) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +583 -181
  2. package/dist/dist-cli-preview/account-screens.css +1 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -1
  4. package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
  5. package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
  6. package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
  7. package/dist/dist-cli-preview/chunks/MediaScreen-1akMnH12.js +17379 -0
  8. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
  9. package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
  10. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
  13. package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
  14. package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
  16. package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
  17. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
  18. package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
  19. package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
  20. package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
  21. package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
  23. package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
  24. package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-HAt0Lt-9.js} +20 -13
  25. package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
  26. package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
  27. package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
  28. package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
  29. package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
  30. package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
  31. package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
  32. package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
  33. package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
  34. package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
  35. package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
  36. package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
  37. package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
  38. package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
  39. package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
  40. package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
  41. package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
  42. package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
  43. package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
  44. package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
  45. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
  46. package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
  47. package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
  48. package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
  49. package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
  50. package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
  51. package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
  52. package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
  53. package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
  54. package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen--gdc5WO_.js} +1869 -1884
  55. package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
  56. package/dist/dist-cli-preview/chunks/navigate-account-screen-AVNopuIP.js +38 -0
  57. package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
  58. package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
  59. package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
  60. package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
  61. package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
  62. package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
  63. package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
  64. package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
  65. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
  66. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
  67. package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
  68. package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
  69. package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
  70. package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
  71. package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
  72. package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
  73. package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
  74. package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
  75. package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
  76. package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
  77. package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
  78. package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
  79. package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
  80. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
  81. package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
  82. package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
  83. package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
  84. package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
  85. package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
  86. package/package.json +1 -1
  87. package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
  88. package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
  89. package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
  90. package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
  91. package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
  92. package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
@@ -1,24 +1,24 @@
1
- import { c as $t, l as u, j as p, H as K, _ as Mo, G as Ae, a5 as J, a8 as Po, J as Se, K as At, bh as Gt, aO as de, a6 as A, a9 as Bt, a4 as it, a3 as me, aP as Kt, bs as Ht, bi as Vt, bj as Wt, bk as Ut, bl as zt, bm as Yt, aQ as Xt, bu as Ao, aY as qt, M as ge, O as So } from "./account-screen-runtime-DYMunv0A.js";
2
- import { M as _o, C as Eo } from "./schemas-D94nZk5x.js";
1
+ import { c as $t, l as u, j as p, ab as K, a7 as Ao, aa as Ae, aj as J, aY as So, ac as Se, ad as At, bq as Gt, ba as fe, am as A, ak as Bt, aW as Ve, al as ge, bb as Kt, bp as Ht, br as Vt, bs as Wt, bt as zt, bu as Ut, bv as Yt, bc as Xt, bx as _o, be as qt, M as re, R as Eo, K as Oo } from "./account-screen-runtime-CCBl8DXt.js";
2
+ import { M as Do, C as Io } from "./schemas-BTblatUV.js";
3
3
  /**
4
4
  * @license lucide-react v0.575.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
7
7
  * See the LICENSE file in the root directory of this source tree.
8
8
  */
9
- const Oo = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Hi = $t("chevron-down", Oo);
9
+ const To = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Xi = $t("chevron-down", To);
10
10
  /**
11
11
  * @license lucide-react v0.575.0 - ISC
12
12
  *
13
13
  * This source code is licensed under the ISC license.
14
14
  * See the LICENSE file in the root directory of this source tree.
15
15
  */
16
- const Do = [
16
+ const No = [
17
17
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
18
18
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
19
19
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
20
- ], Vi = $t("ellipsis-vertical", Do);
21
- var Io = Object.freeze({
20
+ ], qi = $t("ellipsis-vertical", No);
21
+ var jo = Object.freeze({
22
22
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
23
23
  position: "absolute",
24
24
  border: 0,
@@ -30,31 +30,31 @@ var Io = Object.freeze({
30
30
  clip: "rect(0, 0, 0, 0)",
31
31
  whiteSpace: "nowrap",
32
32
  wordWrap: "normal"
33
- }), To = "VisuallyHidden", Zt = u.forwardRef(
33
+ }), Fo = "VisuallyHidden", Zt = u.forwardRef(
34
34
  (e, t) => /* @__PURE__ */ p.jsx(
35
35
  K.span,
36
36
  {
37
37
  ...e,
38
38
  ref: t,
39
- style: { ...Io, ...e.style }
39
+ style: { ...jo, ...e.style }
40
40
  }
41
41
  )
42
42
  );
43
- Zt.displayName = To;
44
- var Wi = Zt;
45
- const No = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Le = Math.round, Fe = Math.floor, q = (e) => ({
43
+ Zt.displayName = Fo;
44
+ var Zi = Zt;
45
+ const ko = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Le = Math.round, Fe = Math.floor, q = (e) => ({
46
46
  x: e,
47
47
  y: e
48
- }), jo = {
48
+ }), Lo = {
49
49
  left: "right",
50
50
  right: "left",
51
51
  bottom: "top",
52
52
  top: "bottom"
53
- }, Fo = {
53
+ }, $o = {
54
54
  start: "end",
55
55
  end: "start"
56
56
  };
57
- function tt(e, t, n) {
57
+ function nt(e, t, n) {
58
58
  return H(e, ne(t, n));
59
59
  }
60
60
  function ee(e, t) {
@@ -72,48 +72,48 @@ function at(e) {
72
72
  function ct(e) {
73
73
  return e === "y" ? "height" : "width";
74
74
  }
75
- const ko = /* @__PURE__ */ new Set(["top", "bottom"]);
75
+ const Go = /* @__PURE__ */ new Set(["top", "bottom"]);
76
76
  function X(e) {
77
- return ko.has(te(e)) ? "y" : "x";
77
+ return Go.has(te(e)) ? "y" : "x";
78
78
  }
79
79
  function lt(e) {
80
80
  return at(X(e));
81
81
  }
82
- function Lo(e, t, n) {
82
+ function Bo(e, t, n) {
83
83
  n === void 0 && (n = !1);
84
84
  const o = he(e), r = lt(e), s = ct(r);
85
85
  let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
86
86
  return t.reference[s] > t.floating[s] && (i = $e(i)), [i, $e(i)];
87
87
  }
88
- function $o(e) {
88
+ function Ko(e) {
89
89
  const t = $e(e);
90
- return [nt(e), t, nt(t)];
90
+ return [ot(e), t, ot(t)];
91
91
  }
92
- function nt(e) {
93
- return e.replace(/start|end/g, (t) => Fo[t]);
92
+ function ot(e) {
93
+ return e.replace(/start|end/g, (t) => $o[t]);
94
94
  }
95
- const St = ["left", "right"], _t = ["right", "left"], Go = ["top", "bottom"], Bo = ["bottom", "top"];
96
- function Ko(e, t, n) {
95
+ const St = ["left", "right"], _t = ["right", "left"], Ho = ["top", "bottom"], Vo = ["bottom", "top"];
96
+ function Wo(e, t, n) {
97
97
  switch (e) {
98
98
  case "top":
99
99
  case "bottom":
100
100
  return n ? t ? _t : St : t ? St : _t;
101
101
  case "left":
102
102
  case "right":
103
- return t ? Go : Bo;
103
+ return t ? Ho : Vo;
104
104
  default:
105
105
  return [];
106
106
  }
107
107
  }
108
- function Ho(e, t, n, o) {
108
+ function zo(e, t, n, o) {
109
109
  const r = he(e);
110
- let s = Ko(te(e), n === "start", o);
111
- return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(nt)))), s;
110
+ let s = Wo(te(e), n === "start", o);
111
+ return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(ot)))), s;
112
112
  }
113
113
  function $e(e) {
114
- return e.replace(/left|right|bottom|top/g, (t) => jo[t]);
114
+ return e.replace(/left|right|bottom|top/g, (t) => Lo[t]);
115
115
  }
116
- function Vo(e) {
116
+ function Uo(e) {
117
117
  return {
118
118
  top: 0,
119
119
  right: 0,
@@ -123,7 +123,7 @@ function Vo(e) {
123
123
  };
124
124
  }
125
125
  function Jt(e) {
126
- return typeof e != "number" ? Vo(e) : {
126
+ return typeof e != "number" ? Uo(e) : {
127
127
  top: e,
128
128
  right: e,
129
129
  bottom: e,
@@ -153,9 +153,9 @@ function Et(e, t, n) {
153
153
  reference: o,
154
154
  floating: r
155
155
  } = e;
156
- const s = X(t), i = lt(t), a = ct(i), f = te(t), d = s === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
156
+ const s = X(t), i = lt(t), a = ct(i), d = te(t), f = s === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
157
157
  let g;
158
- switch (f) {
158
+ switch (d) {
159
159
  case "top":
160
160
  g = {
161
161
  x: l,
@@ -188,29 +188,29 @@ function Et(e, t, n) {
188
188
  }
189
189
  switch (he(t)) {
190
190
  case "start":
191
- g[i] -= m * (n && d ? -1 : 1);
191
+ g[i] -= m * (n && f ? -1 : 1);
192
192
  break;
193
193
  case "end":
194
- g[i] += m * (n && d ? -1 : 1);
194
+ g[i] += m * (n && f ? -1 : 1);
195
195
  break;
196
196
  }
197
197
  return g;
198
198
  }
199
- const Wo = async (e, t, n) => {
199
+ const Yo = async (e, t, n) => {
200
200
  const {
201
201
  placement: o = "bottom",
202
202
  strategy: r = "absolute",
203
203
  middleware: s = [],
204
204
  platform: i
205
- } = n, a = s.filter(Boolean), f = await (i.isRTL == null ? void 0 : i.isRTL(t));
206
- let d = await i.getElementRects({
205
+ } = n, a = s.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(t));
206
+ let f = await i.getElementRects({
207
207
  reference: e,
208
208
  floating: t,
209
209
  strategy: r
210
210
  }), {
211
211
  x: l,
212
212
  y: c
213
- } = Et(d, o, f), m = o, g = {}, h = 0;
213
+ } = Et(f, o, d), m = o, g = {}, h = 0;
214
214
  for (let w = 0; w < a.length; w++) {
215
215
  const {
216
216
  name: v,
@@ -227,7 +227,7 @@ const Wo = async (e, t, n) => {
227
227
  placement: m,
228
228
  strategy: r,
229
229
  middlewareData: g,
230
- rects: d,
230
+ rects: f,
231
231
  platform: i,
232
232
  elements: {
233
233
  reference: e,
@@ -240,14 +240,14 @@ const Wo = async (e, t, n) => {
240
240
  ...g[v],
241
241
  ...C
242
242
  }
243
- }, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (d = M.rects === !0 ? await i.getElementRects({
243
+ }, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (f = M.rects === !0 ? await i.getElementRects({
244
244
  reference: e,
245
245
  floating: t,
246
246
  strategy: r
247
247
  }) : M.rects), {
248
248
  x: l,
249
249
  y: c
250
- } = Et(d, m, f)), w = -1);
250
+ } = Et(f, m, d)), w = -1);
251
251
  }
252
252
  return {
253
253
  x: l,
@@ -266,18 +266,18 @@ async function Ce(e, t) {
266
266
  platform: s,
267
267
  rects: i,
268
268
  elements: a,
269
- strategy: f
269
+ strategy: d
270
270
  } = e, {
271
- boundary: d = "clippingAncestors",
271
+ boundary: f = "clippingAncestors",
272
272
  rootBoundary: l = "viewport",
273
273
  elementContext: c = "floating",
274
274
  altBoundary: m = !1,
275
275
  padding: g = 0
276
276
  } = ee(t, e), h = Jt(g), v = a[m ? c === "floating" ? "reference" : "floating" : c], x = Ge(await s.getClippingRect({
277
277
  element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
278
- boundary: d,
278
+ boundary: f,
279
279
  rootBoundary: l,
280
- strategy: f
280
+ strategy: d
281
281
  })), R = c === "floating" ? {
282
282
  x: o,
283
283
  y: r,
@@ -293,7 +293,7 @@ async function Ce(e, t) {
293
293
  elements: a,
294
294
  rect: R,
295
295
  offsetParent: b,
296
- strategy: f
296
+ strategy: d
297
297
  }) : R);
298
298
  return {
299
299
  top: (x.top - M.top + h.top) / C.y,
@@ -302,7 +302,7 @@ async function Ce(e, t) {
302
302
  right: (M.right - x.right + h.right) / C.x
303
303
  };
304
304
  }
305
- const Uo = (e) => ({
305
+ const Xo = (e) => ({
306
306
  name: "arrow",
307
307
  options: e,
308
308
  async fn(t) {
@@ -313,20 +313,20 @@ const Uo = (e) => ({
313
313
  rects: s,
314
314
  platform: i,
315
315
  elements: a,
316
- middlewareData: f
316
+ middlewareData: d
317
317
  } = t, {
318
- element: d,
318
+ element: f,
319
319
  padding: l = 0
320
320
  } = ee(e, t) || {};
321
- if (d == null)
321
+ if (f == null)
322
322
  return {};
323
323
  const c = Jt(l), m = {
324
324
  x: n,
325
325
  y: o
326
- }, g = lt(r), h = ct(g), w = await i.getDimensions(d), v = g === "y", x = v ? "top" : "left", R = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = s.reference[h] + s.reference[g] - m[g] - s.floating[h], M = m[g] - s.reference[g], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
326
+ }, g = lt(r), h = ct(g), w = await i.getDimensions(f), v = g === "y", x = v ? "top" : "left", R = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = s.reference[h] + s.reference[g] - m[g] - s.floating[h], M = m[g] - s.reference[g], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(f));
327
327
  let S = E ? E[b] : 0;
328
328
  (!S || !await (i.isElement == null ? void 0 : i.isElement(E))) && (S = a.floating[b] || s.floating[h]);
329
- const _ = C / 2 - M / 2, N = S / 2 - w[h] / 2 - 1, D = ne(c[x], N), j = ne(c[R], N), F = D, T = S - w[h] - j, I = S / 2 - w[h] / 2 + _, $ = tt(F, I, T), O = !f.arrow && he(r) != null && I !== $ && s.reference[h] / 2 - (I < F ? D : j) - w[h] / 2 < 0, k = O ? I < F ? I - F : I - T : 0;
329
+ const _ = C / 2 - M / 2, N = S / 2 - w[h] / 2 - 1, D = ne(c[x], N), j = ne(c[R], N), F = D, T = S - w[h] - j, I = S / 2 - w[h] / 2 + _, $ = nt(F, I, T), O = !d.arrow && he(r) != null && I !== $ && s.reference[h] / 2 - (I < F ? D : j) - w[h] / 2 < 0, k = O ? I < F ? I - F : I - T : 0;
330
330
  return {
331
331
  [g]: m[g] + k,
332
332
  data: {
@@ -339,7 +339,7 @@ const Uo = (e) => ({
339
339
  reset: O
340
340
  };
341
341
  }
342
- }), zo = function(e) {
342
+ }), qo = function(e) {
343
343
  return e === void 0 && (e = {}), {
344
344
  name: "flip",
345
345
  options: e,
@@ -350,8 +350,8 @@ const Uo = (e) => ({
350
350
  middlewareData: s,
351
351
  rects: i,
352
352
  initialPlacement: a,
353
- platform: f,
354
- elements: d
353
+ platform: d,
354
+ elements: f
355
355
  } = t, {
356
356
  mainAxis: l = !0,
357
357
  crossAxis: c = !0,
@@ -363,12 +363,12 @@ const Uo = (e) => ({
363
363
  } = ee(e, t);
364
364
  if ((n = s.arrow) != null && n.alignmentOffset)
365
365
  return {};
366
- const x = te(r), R = X(a), b = te(a) === a, C = await (f.isRTL == null ? void 0 : f.isRTL(d.floating)), M = m || (b || !w ? [$e(a)] : $o(a)), E = h !== "none";
367
- !m && E && M.push(...Ho(a, w, h, C));
366
+ const x = te(r), R = X(a), b = te(a) === a, C = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), M = m || (b || !w ? [$e(a)] : Ko(a)), E = h !== "none";
367
+ !m && E && M.push(...zo(a, w, h, C));
368
368
  const S = [a, ...M], _ = await Ce(t, v), N = [];
369
369
  let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
370
370
  if (l && N.push(_[x]), c) {
371
- const I = Lo(r, i, C);
371
+ const I = Bo(r, i, C);
372
372
  N.push(_[I[0]], _[I[1]]);
373
373
  }
374
374
  if (D = [...D, {
@@ -430,9 +430,9 @@ function Ot(e, t) {
430
430
  };
431
431
  }
432
432
  function Dt(e) {
433
- return No.some((t) => e[t] >= 0);
433
+ return ko.some((t) => e[t] >= 0);
434
434
  }
435
- const Yo = function(e) {
435
+ const Zo = function(e) {
436
436
  return e === void 0 && (e = {}), {
437
437
  name: "hide",
438
438
  options: e,
@@ -474,12 +474,12 @@ const Yo = function(e) {
474
474
  }
475
475
  };
476
476
  }, Qt = /* @__PURE__ */ new Set(["left", "top"]);
477
- async function Xo(e, t) {
477
+ async function Jo(e, t) {
478
478
  const {
479
479
  placement: n,
480
480
  platform: o,
481
481
  elements: r
482
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = te(n), a = he(n), f = X(n) === "y", d = Qt.has(i) ? -1 : 1, l = s && f ? -1 : 1, c = ee(t, e);
482
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = te(n), a = he(n), d = X(n) === "y", f = Qt.has(i) ? -1 : 1, l = s && d ? -1 : 1, c = ee(t, e);
483
483
  let {
484
484
  mainAxis: m,
485
485
  crossAxis: g,
@@ -493,15 +493,15 @@ async function Xo(e, t) {
493
493
  crossAxis: c.crossAxis || 0,
494
494
  alignmentAxis: c.alignmentAxis
495
495
  };
496
- return a && typeof h == "number" && (g = a === "end" ? h * -1 : h), f ? {
496
+ return a && typeof h == "number" && (g = a === "end" ? h * -1 : h), d ? {
497
497
  x: g * l,
498
- y: m * d
498
+ y: m * f
499
499
  } : {
500
- x: m * d,
500
+ x: m * f,
501
501
  y: g * l
502
502
  };
503
503
  }
504
- const qo = function(e) {
504
+ const Qo = function(e) {
505
505
  return e === void 0 && (e = 0), {
506
506
  name: "offset",
507
507
  options: e,
@@ -512,18 +512,18 @@ const qo = function(e) {
512
512
  y: s,
513
513
  placement: i,
514
514
  middlewareData: a
515
- } = t, f = await Xo(t, e);
515
+ } = t, d = await Jo(t, e);
516
516
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
517
- x: r + f.x,
518
- y: s + f.y,
517
+ x: r + d.x,
518
+ y: s + d.y,
519
519
  data: {
520
- ...f,
520
+ ...d,
521
521
  placement: i
522
522
  }
523
523
  };
524
524
  }
525
525
  };
526
- }, Zo = function(e) {
526
+ }, er = function(e) {
527
527
  return e === void 0 && (e = {}), {
528
528
  name: "shift",
529
529
  options: e,
@@ -547,19 +547,19 @@ const qo = function(e) {
547
547
  };
548
548
  }
549
549
  },
550
- ...f
551
- } = ee(e, t), d = {
550
+ ...d
551
+ } = ee(e, t), f = {
552
552
  x: n,
553
553
  y: o
554
- }, l = await Ce(t, f), c = X(te(r)), m = at(c);
555
- let g = d[m], h = d[c];
554
+ }, l = await Ce(t, d), c = X(te(r)), m = at(c);
555
+ let g = f[m], h = f[c];
556
556
  if (s) {
557
557
  const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", R = g + l[v], b = g - l[x];
558
- g = tt(R, g, b);
558
+ g = nt(R, g, b);
559
559
  }
560
560
  if (i) {
561
561
  const v = c === "y" ? "top" : "left", x = c === "y" ? "bottom" : "right", R = h + l[v], b = h - l[x];
562
- h = tt(R, h, b);
562
+ h = nt(R, h, b);
563
563
  }
564
564
  const w = a.fn({
565
565
  ...t,
@@ -579,7 +579,7 @@ const qo = function(e) {
579
579
  };
580
580
  }
581
581
  };
582
- }, Jo = function(e) {
582
+ }, tr = function(e) {
583
583
  return e === void 0 && (e = {}), {
584
584
  options: e,
585
585
  fn(t) {
@@ -591,8 +591,8 @@ const qo = function(e) {
591
591
  middlewareData: i
592
592
  } = t, {
593
593
  offset: a = 0,
594
- mainAxis: f = !0,
595
- crossAxis: d = !0
594
+ mainAxis: d = !0,
595
+ crossAxis: f = !0
596
596
  } = ee(e, t), l = {
597
597
  x: n,
598
598
  y: o
@@ -606,11 +606,11 @@ const qo = function(e) {
606
606
  crossAxis: 0,
607
607
  ...w
608
608
  };
609
- if (f) {
609
+ if (d) {
610
610
  const b = m === "y" ? "height" : "width", C = s.reference[m] - s.floating[b] + v.mainAxis, M = s.reference[m] + s.reference[b] - v.mainAxis;
611
611
  g < C ? g = C : g > M && (g = M);
612
612
  }
613
- if (d) {
613
+ if (f) {
614
614
  var x, R;
615
615
  const b = m === "y" ? "width" : "height", C = Qt.has(te(r)), M = s.reference[c] - s.floating[b] + (C && ((x = i.offset) == null ? void 0 : x[c]) || 0) + (C ? 0 : v.crossAxis), E = s.reference[c] + s.reference[b] + (C ? 0 : ((R = i.offset) == null ? void 0 : R[c]) || 0) - (C ? v.crossAxis : 0);
616
616
  h < M ? h = M : h > E && (h = E);
@@ -621,7 +621,7 @@ const qo = function(e) {
621
621
  };
622
622
  }
623
623
  };
624
- }, Qo = function(e) {
624
+ }, nr = function(e) {
625
625
  return e === void 0 && (e = {}), {
626
626
  name: "size",
627
627
  options: e,
@@ -633,10 +633,10 @@ const qo = function(e) {
633
633
  platform: i,
634
634
  elements: a
635
635
  } = t, {
636
- apply: f = () => {
636
+ apply: d = () => {
637
637
  },
638
- ...d
639
- } = ee(e, t), l = await Ce(t, d), c = te(r), m = he(r), g = X(r) === "y", {
638
+ ...f
639
+ } = ee(e, t), l = await Ce(t, f), c = te(r), m = he(r), g = X(r) === "y", {
640
640
  width: h,
641
641
  height: w
642
642
  } = s.floating;
@@ -648,7 +648,7 @@ const qo = function(e) {
648
648
  const D = H(l.left, 0), j = H(l.right, 0), F = H(l.top, 0), T = H(l.bottom, 0);
649
649
  g ? _ = h - 2 * (D !== 0 || j !== 0 ? D + j : H(l.left, l.right)) : S = w - 2 * (F !== 0 || T !== 0 ? F + T : H(l.top, l.bottom));
650
650
  }
651
- await f({
651
+ await d({
652
652
  ...t,
653
653
  availableWidth: _,
654
654
  availableHeight: S
@@ -662,7 +662,7 @@ const qo = function(e) {
662
662
  }
663
663
  };
664
664
  };
665
- function Ve() {
665
+ function We() {
666
666
  return typeof window < "u";
667
667
  }
668
668
  function ve(e) {
@@ -677,34 +677,34 @@ function Q(e) {
677
677
  return (t = (en(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
678
678
  }
679
679
  function en(e) {
680
- return Ve() ? e instanceof Node || e instanceof V(e).Node : !1;
680
+ return We() ? e instanceof Node || e instanceof V(e).Node : !1;
681
681
  }
682
- function U(e) {
683
- return Ve() ? e instanceof Element || e instanceof V(e).Element : !1;
682
+ function z(e) {
683
+ return We() ? e instanceof Element || e instanceof V(e).Element : !1;
684
684
  }
685
685
  function Z(e) {
686
- return Ve() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
686
+ return We() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
687
687
  }
688
688
  function It(e) {
689
- return !Ve() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
689
+ return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
690
690
  }
691
- const er = /* @__PURE__ */ new Set(["inline", "contents"]);
691
+ const or = /* @__PURE__ */ new Set(["inline", "contents"]);
692
692
  function _e(e) {
693
693
  const {
694
694
  overflow: t,
695
695
  overflowX: n,
696
696
  overflowY: o,
697
697
  display: r
698
- } = z(e);
699
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !er.has(r);
698
+ } = U(e);
699
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !or.has(r);
700
700
  }
701
- const tr = /* @__PURE__ */ new Set(["table", "td", "th"]);
702
- function nr(e) {
703
- return tr.has(ve(e));
701
+ const rr = /* @__PURE__ */ new Set(["table", "td", "th"]);
702
+ function sr(e) {
703
+ return rr.has(ve(e));
704
704
  }
705
- const or = [":popover-open", ":modal"];
706
- function We(e) {
707
- return or.some((t) => {
705
+ const ir = [":popover-open", ":modal"];
706
+ function ze(e) {
707
+ return ir.some((t) => {
708
708
  try {
709
709
  return e.matches(t);
710
710
  } catch {
@@ -712,17 +712,17 @@ function We(e) {
712
712
  }
713
713
  });
714
714
  }
715
- const rr = ["transform", "translate", "scale", "rotate", "perspective"], sr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ir = ["paint", "layout", "strict", "content"];
715
+ const ar = ["transform", "translate", "scale", "rotate", "perspective"], cr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], lr = ["paint", "layout", "strict", "content"];
716
716
  function ut(e) {
717
- const t = dt(), n = U(e) ? z(e) : e;
718
- return rr.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) || sr.some((o) => (n.willChange || "").includes(o)) || ir.some((o) => (n.contain || "").includes(o));
717
+ const t = dt(), n = z(e) ? U(e) : e;
718
+ return ar.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) || cr.some((o) => (n.willChange || "").includes(o)) || lr.some((o) => (n.contain || "").includes(o));
719
719
  }
720
- function ar(e) {
720
+ function ur(e) {
721
721
  let t = oe(e);
722
- for (; Z(t) && !fe(t); ) {
722
+ for (; Z(t) && !pe(t); ) {
723
723
  if (ut(t))
724
724
  return t;
725
- if (We(t))
725
+ if (ze(t))
726
726
  return null;
727
727
  t = oe(t);
728
728
  }
@@ -731,15 +731,15 @@ function ar(e) {
731
731
  function dt() {
732
732
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
733
733
  }
734
- const cr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
735
- function fe(e) {
736
- return cr.has(ve(e));
734
+ const dr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
735
+ function pe(e) {
736
+ return dr.has(ve(e));
737
737
  }
738
- function z(e) {
738
+ function U(e) {
739
739
  return V(e).getComputedStyle(e);
740
740
  }
741
741
  function Ue(e) {
742
- return U(e) ? {
742
+ return z(e) ? {
743
743
  scrollLeft: e.scrollLeft,
744
744
  scrollTop: e.scrollTop
745
745
  } : {
@@ -761,23 +761,23 @@ function oe(e) {
761
761
  }
762
762
  function tn(e) {
763
763
  const t = oe(e);
764
- return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : tn(t);
764
+ return pe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : tn(t);
765
765
  }
766
766
  function Re(e, t, n) {
767
767
  var o;
768
768
  t === void 0 && (t = []), n === void 0 && (n = !0);
769
769
  const r = tn(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = V(r);
770
770
  if (s) {
771
- const a = ot(i);
771
+ const a = rt(i);
772
772
  return t.concat(i, i.visualViewport || [], _e(r) ? r : [], a && n ? Re(a) : []);
773
773
  }
774
774
  return t.concat(r, Re(r, [], n));
775
775
  }
776
- function ot(e) {
776
+ function rt(e) {
777
777
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
778
778
  }
779
779
  function nn(e) {
780
- const t = z(e);
780
+ const t = U(e);
781
781
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
782
782
  const r = Z(e), s = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, a = Le(n) !== s || Le(o) !== i;
783
783
  return a && (n = s, o = i), {
@@ -787,9 +787,9 @@ function nn(e) {
787
787
  };
788
788
  }
789
789
  function ft(e) {
790
- return U(e) ? e : e.contextElement;
790
+ return z(e) ? e : e.contextElement;
791
791
  }
792
- function ue(e) {
792
+ function de(e) {
793
793
  const t = ft(e);
794
794
  if (!Z(t))
795
795
  return q(1);
@@ -804,85 +804,85 @@ function ue(e) {
804
804
  y: a
805
805
  };
806
806
  }
807
- const lr = /* @__PURE__ */ q(0);
807
+ const fr = /* @__PURE__ */ q(0);
808
808
  function on(e) {
809
809
  const t = V(e);
810
- return !dt() || !t.visualViewport ? lr : {
810
+ return !dt() || !t.visualViewport ? fr : {
811
811
  x: t.visualViewport.offsetLeft,
812
812
  y: t.visualViewport.offsetTop
813
813
  };
814
814
  }
815
- function ur(e, t, n) {
815
+ function pr(e, t, n) {
816
816
  return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
817
817
  }
818
- function ce(e, t, n, o) {
818
+ function le(e, t, n, o) {
819
819
  t === void 0 && (t = !1), n === void 0 && (n = !1);
820
820
  const r = e.getBoundingClientRect(), s = ft(e);
821
821
  let i = q(1);
822
- t && (o ? U(o) && (i = ue(o)) : i = ue(e));
823
- const a = ur(s, n, o) ? on(s) : q(0);
824
- let f = (r.left + a.x) / i.x, d = (r.top + a.y) / i.y, l = r.width / i.x, c = r.height / i.y;
822
+ t && (o ? z(o) && (i = de(o)) : i = de(e));
823
+ const a = pr(s, n, o) ? on(s) : q(0);
824
+ let d = (r.left + a.x) / i.x, f = (r.top + a.y) / i.y, l = r.width / i.x, c = r.height / i.y;
825
825
  if (s) {
826
- const m = V(s), g = o && U(o) ? V(o) : o;
827
- let h = m, w = ot(h);
826
+ const m = V(s), g = o && z(o) ? V(o) : o;
827
+ let h = m, w = rt(h);
828
828
  for (; w && o && g !== h; ) {
829
- const v = ue(w), x = w.getBoundingClientRect(), R = z(w), b = x.left + (w.clientLeft + parseFloat(R.paddingLeft)) * v.x, C = x.top + (w.clientTop + parseFloat(R.paddingTop)) * v.y;
830
- f *= v.x, d *= v.y, l *= v.x, c *= v.y, f += b, d += C, h = V(w), w = ot(h);
829
+ const v = de(w), x = w.getBoundingClientRect(), R = U(w), b = x.left + (w.clientLeft + parseFloat(R.paddingLeft)) * v.x, C = x.top + (w.clientTop + parseFloat(R.paddingTop)) * v.y;
830
+ d *= v.x, f *= v.y, l *= v.x, c *= v.y, d += b, f += C, h = V(w), w = rt(h);
831
831
  }
832
832
  }
833
833
  return Ge({
834
834
  width: l,
835
835
  height: c,
836
- x: f,
837
- y: d
836
+ x: d,
837
+ y: f
838
838
  });
839
839
  }
840
- function ze(e, t) {
840
+ function Ye(e, t) {
841
841
  const n = Ue(e).scrollLeft;
842
- return t ? t.left + n : ce(Q(e)).left + n;
842
+ return t ? t.left + n : le(Q(e)).left + n;
843
843
  }
844
844
  function rn(e, t) {
845
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ze(e, n), r = n.top + t.scrollTop;
845
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ye(e, n), r = n.top + t.scrollTop;
846
846
  return {
847
847
  x: o,
848
848
  y: r
849
849
  };
850
850
  }
851
- function dr(e) {
851
+ function mr(e) {
852
852
  let {
853
853
  elements: t,
854
854
  rect: n,
855
855
  offsetParent: o,
856
856
  strategy: r
857
857
  } = e;
858
- const s = r === "fixed", i = Q(o), a = t ? We(t.floating) : !1;
858
+ const s = r === "fixed", i = Q(o), a = t ? ze(t.floating) : !1;
859
859
  if (o === i || a && s)
860
860
  return n;
861
- let f = {
861
+ let d = {
862
862
  scrollLeft: 0,
863
863
  scrollTop: 0
864
- }, d = q(1);
864
+ }, f = q(1);
865
865
  const l = q(0), c = Z(o);
866
- if ((c || !c && !s) && ((ve(o) !== "body" || _e(i)) && (f = Ue(o)), Z(o))) {
867
- const g = ce(o);
868
- d = ue(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
866
+ if ((c || !c && !s) && ((ve(o) !== "body" || _e(i)) && (d = Ue(o)), Z(o))) {
867
+ const g = le(o);
868
+ f = de(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
869
869
  }
870
- const m = i && !c && !s ? rn(i, f) : q(0);
870
+ const m = i && !c && !s ? rn(i, d) : q(0);
871
871
  return {
872
- width: n.width * d.x,
873
- height: n.height * d.y,
874
- x: n.x * d.x - f.scrollLeft * d.x + l.x + m.x,
875
- y: n.y * d.y - f.scrollTop * d.y + l.y + m.y
872
+ width: n.width * f.x,
873
+ height: n.height * f.y,
874
+ x: n.x * f.x - d.scrollLeft * f.x + l.x + m.x,
875
+ y: n.y * f.y - d.scrollTop * f.y + l.y + m.y
876
876
  };
877
877
  }
878
- function fr(e) {
878
+ function gr(e) {
879
879
  return Array.from(e.getClientRects());
880
880
  }
881
- function pr(e) {
881
+ function hr(e) {
882
882
  const t = Q(e), n = Ue(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
883
- let i = -n.scrollLeft + ze(e);
883
+ let i = -n.scrollLeft + Ye(e);
884
884
  const a = -n.scrollTop;
885
- return z(o).direction === "rtl" && (i += H(t.clientWidth, o.clientWidth) - r), {
885
+ return U(o).direction === "rtl" && (i += H(t.clientWidth, o.clientWidth) - r), {
886
886
  width: r,
887
887
  height: s,
888
888
  x: i,
@@ -890,44 +890,44 @@ function pr(e) {
890
890
  };
891
891
  }
892
892
  const Tt = 25;
893
- function mr(e, t) {
893
+ function vr(e, t) {
894
894
  const n = V(e), o = Q(e), r = n.visualViewport;
895
- let s = o.clientWidth, i = o.clientHeight, a = 0, f = 0;
895
+ let s = o.clientWidth, i = o.clientHeight, a = 0, d = 0;
896
896
  if (r) {
897
897
  s = r.width, i = r.height;
898
898
  const l = dt();
899
- (!l || l && t === "fixed") && (a = r.offsetLeft, f = r.offsetTop);
899
+ (!l || l && t === "fixed") && (a = r.offsetLeft, d = r.offsetTop);
900
900
  }
901
- const d = ze(o);
902
- if (d <= 0) {
901
+ const f = Ye(o);
902
+ if (f <= 0) {
903
903
  const l = o.ownerDocument, c = l.body, m = getComputedStyle(c), g = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - c.clientWidth - g);
904
904
  h <= Tt && (s -= h);
905
- } else d <= Tt && (s += d);
905
+ } else f <= Tt && (s += f);
906
906
  return {
907
907
  width: s,
908
908
  height: i,
909
909
  x: a,
910
- y: f
910
+ y: d
911
911
  };
912
912
  }
913
- const gr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
914
- function hr(e, t) {
915
- const n = ce(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Z(e) ? ue(e) : q(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, f = r * s.x, d = o * s.y;
913
+ const wr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
914
+ function xr(e, t) {
915
+ const n = le(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Z(e) ? de(e) : q(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, d = r * s.x, f = o * s.y;
916
916
  return {
917
917
  width: i,
918
918
  height: a,
919
- x: f,
920
- y: d
919
+ x: d,
920
+ y: f
921
921
  };
922
922
  }
923
923
  function Nt(e, t, n) {
924
924
  let o;
925
925
  if (t === "viewport")
926
- o = mr(e, n);
926
+ o = vr(e, n);
927
927
  else if (t === "document")
928
- o = pr(Q(e));
929
- else if (U(t))
930
- o = hr(t, n);
928
+ o = hr(Q(e));
929
+ else if (z(t))
930
+ o = xr(t, n);
931
931
  else {
932
932
  const r = on(e);
933
933
  o = {
@@ -941,40 +941,40 @@ function Nt(e, t, n) {
941
941
  }
942
942
  function sn(e, t) {
943
943
  const n = oe(e);
944
- return n === t || !U(n) || fe(n) ? !1 : z(n).position === "fixed" || sn(n, t);
944
+ return n === t || !z(n) || pe(n) ? !1 : U(n).position === "fixed" || sn(n, t);
945
945
  }
946
- function vr(e, t) {
946
+ function yr(e, t) {
947
947
  const n = t.get(e);
948
948
  if (n)
949
949
  return n;
950
- let o = Re(e, [], !1).filter((a) => U(a) && ve(a) !== "body"), r = null;
951
- const s = z(e).position === "fixed";
950
+ let o = Re(e, [], !1).filter((a) => z(a) && ve(a) !== "body"), r = null;
951
+ const s = U(e).position === "fixed";
952
952
  let i = s ? oe(e) : e;
953
- for (; U(i) && !fe(i); ) {
954
- const a = z(i), f = ut(i);
955
- !f && a.position === "fixed" && (r = null), (s ? !f && !r : !f && a.position === "static" && !!r && gr.has(r.position) || _e(i) && !f && sn(e, i)) ? o = o.filter((l) => l !== i) : r = a, i = oe(i);
953
+ for (; z(i) && !pe(i); ) {
954
+ const a = U(i), d = ut(i);
955
+ !d && a.position === "fixed" && (r = null), (s ? !d && !r : !d && a.position === "static" && !!r && wr.has(r.position) || _e(i) && !d && sn(e, i)) ? o = o.filter((l) => l !== i) : r = a, i = oe(i);
956
956
  }
957
957
  return t.set(e, o), o;
958
958
  }
959
- function wr(e) {
959
+ function br(e) {
960
960
  let {
961
961
  element: t,
962
962
  boundary: n,
963
963
  rootBoundary: o,
964
964
  strategy: r
965
965
  } = e;
966
- const i = [...n === "clippingAncestors" ? We(t) ? [] : vr(t, this._c) : [].concat(n), o], a = i[0], f = i.reduce((d, l) => {
966
+ const i = [...n === "clippingAncestors" ? ze(t) ? [] : yr(t, this._c) : [].concat(n), o], a = i[0], d = i.reduce((f, l) => {
967
967
  const c = Nt(t, l, r);
968
- return d.top = H(c.top, d.top), d.right = ne(c.right, d.right), d.bottom = ne(c.bottom, d.bottom), d.left = H(c.left, d.left), d;
968
+ return f.top = H(c.top, f.top), f.right = ne(c.right, f.right), f.bottom = ne(c.bottom, f.bottom), f.left = H(c.left, f.left), f;
969
969
  }, Nt(t, a, r));
970
970
  return {
971
- width: f.right - f.left,
972
- height: f.bottom - f.top,
973
- x: f.left,
974
- y: f.top
971
+ width: d.right - d.left,
972
+ height: d.bottom - d.top,
973
+ x: d.left,
974
+ y: d.top
975
975
  };
976
976
  }
977
- function xr(e) {
977
+ function Cr(e) {
978
978
  const {
979
979
  width: t,
980
980
  height: n
@@ -984,23 +984,23 @@ function xr(e) {
984
984
  height: n
985
985
  };
986
986
  }
987
- function yr(e, t, n) {
988
- const o = Z(t), r = Q(t), s = n === "fixed", i = ce(e, !0, s, t);
987
+ function Rr(e, t, n) {
988
+ const o = Z(t), r = Q(t), s = n === "fixed", i = le(e, !0, s, t);
989
989
  let a = {
990
990
  scrollLeft: 0,
991
991
  scrollTop: 0
992
992
  };
993
- const f = q(0);
994
- function d() {
995
- f.x = ze(r);
993
+ const d = q(0);
994
+ function f() {
995
+ d.x = Ye(r);
996
996
  }
997
997
  if (o || !o && !s)
998
998
  if ((ve(t) !== "body" || _e(r)) && (a = Ue(t)), o) {
999
- const g = ce(t, !0, s, t);
1000
- f.x = g.x + t.clientLeft, f.y = g.y + t.clientTop;
1001
- } else r && d();
1002
- s && !o && r && d();
1003
- const l = r && !o && !s ? rn(r, a) : q(0), c = i.left + a.scrollLeft - f.x - l.x, m = i.top + a.scrollTop - f.y - l.y;
999
+ const g = le(t, !0, s, t);
1000
+ d.x = g.x + t.clientLeft, d.y = g.y + t.clientTop;
1001
+ } else r && f();
1002
+ s && !o && r && f();
1003
+ const l = r && !o && !s ? rn(r, a) : q(0), c = i.left + a.scrollLeft - d.x - l.x, m = i.top + a.scrollTop - d.y - l.y;
1004
1004
  return {
1005
1005
  x: c,
1006
1006
  y: m,
@@ -1008,11 +1008,11 @@ function yr(e, t, n) {
1008
1008
  height: i.height
1009
1009
  };
1010
1010
  }
1011
- function Je(e) {
1012
- return z(e).position === "static";
1011
+ function Qe(e) {
1012
+ return U(e).position === "static";
1013
1013
  }
1014
1014
  function jt(e, t) {
1015
- if (!Z(e) || z(e).position === "fixed")
1015
+ if (!Z(e) || U(e).position === "fixed")
1016
1016
  return null;
1017
1017
  if (t)
1018
1018
  return t(e);
@@ -1021,26 +1021,26 @@ function jt(e, t) {
1021
1021
  }
1022
1022
  function an(e, t) {
1023
1023
  const n = V(e);
1024
- if (We(e))
1024
+ if (ze(e))
1025
1025
  return n;
1026
1026
  if (!Z(e)) {
1027
1027
  let r = oe(e);
1028
- for (; r && !fe(r); ) {
1029
- if (U(r) && !Je(r))
1028
+ for (; r && !pe(r); ) {
1029
+ if (z(r) && !Qe(r))
1030
1030
  return r;
1031
1031
  r = oe(r);
1032
1032
  }
1033
1033
  return n;
1034
1034
  }
1035
1035
  let o = jt(e, t);
1036
- for (; o && nr(o) && Je(o); )
1036
+ for (; o && sr(o) && Qe(o); )
1037
1037
  o = jt(o, t);
1038
- return o && fe(o) && Je(o) && !ut(o) ? n : o || ar(e) || n;
1038
+ return o && pe(o) && Qe(o) && !ut(o) ? n : o || ur(e) || n;
1039
1039
  }
1040
- const br = async function(e) {
1040
+ const Mr = async function(e) {
1041
1041
  const t = this.getOffsetParent || an, n = this.getDimensions, o = await n(e.floating);
1042
1042
  return {
1043
- reference: yr(e.reference, await t(e.floating), e.strategy),
1043
+ reference: Rr(e.reference, await t(e.floating), e.strategy),
1044
1044
  floating: {
1045
1045
  x: 0,
1046
1046
  y: 0,
@@ -1049,56 +1049,56 @@ const br = async function(e) {
1049
1049
  }
1050
1050
  };
1051
1051
  };
1052
- function Cr(e) {
1053
- return z(e).direction === "rtl";
1052
+ function Pr(e) {
1053
+ return U(e).direction === "rtl";
1054
1054
  }
1055
- const Rr = {
1056
- convertOffsetParentRelativeRectToViewportRelativeRect: dr,
1055
+ const Ar = {
1056
+ convertOffsetParentRelativeRectToViewportRelativeRect: mr,
1057
1057
  getDocumentElement: Q,
1058
- getClippingRect: wr,
1058
+ getClippingRect: br,
1059
1059
  getOffsetParent: an,
1060
- getElementRects: br,
1061
- getClientRects: fr,
1062
- getDimensions: xr,
1063
- getScale: ue,
1064
- isElement: U,
1065
- isRTL: Cr
1060
+ getElementRects: Mr,
1061
+ getClientRects: gr,
1062
+ getDimensions: Cr,
1063
+ getScale: de,
1064
+ isElement: z,
1065
+ isRTL: Pr
1066
1066
  };
1067
1067
  function cn(e, t) {
1068
1068
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1069
1069
  }
1070
- function Mr(e, t) {
1070
+ function Sr(e, t) {
1071
1071
  let n = null, o;
1072
1072
  const r = Q(e);
1073
1073
  function s() {
1074
1074
  var a;
1075
1075
  clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
1076
1076
  }
1077
- function i(a, f) {
1078
- a === void 0 && (a = !1), f === void 0 && (f = 1), s();
1079
- const d = e.getBoundingClientRect(), {
1077
+ function i(a, d) {
1078
+ a === void 0 && (a = !1), d === void 0 && (d = 1), s();
1079
+ const f = e.getBoundingClientRect(), {
1080
1080
  left: l,
1081
1081
  top: c,
1082
1082
  width: m,
1083
1083
  height: g
1084
- } = d;
1084
+ } = f;
1085
1085
  if (a || t(), !m || !g)
1086
1086
  return;
1087
1087
  const h = Fe(c), w = Fe(r.clientWidth - (l + m)), v = Fe(r.clientHeight - (c + g)), x = Fe(l), b = {
1088
1088
  rootMargin: -h + "px " + -w + "px " + -v + "px " + -x + "px",
1089
- threshold: H(0, ne(1, f)) || 1
1089
+ threshold: H(0, ne(1, d)) || 1
1090
1090
  };
1091
1091
  let C = !0;
1092
1092
  function M(E) {
1093
1093
  const S = E[0].intersectionRatio;
1094
- if (S !== f) {
1094
+ if (S !== d) {
1095
1095
  if (!C)
1096
1096
  return i();
1097
1097
  S ? i(!1, S) : o = setTimeout(() => {
1098
1098
  i(!1, 1e-7);
1099
1099
  }, 1e3);
1100
1100
  }
1101
- S === 1 && !cn(d, e.getBoundingClientRect()) && i(), C = !1;
1101
+ S === 1 && !cn(f, e.getBoundingClientRect()) && i(), C = !1;
1102
1102
  }
1103
1103
  try {
1104
1104
  n = new IntersectionObserver(M, {
@@ -1113,57 +1113,57 @@ function Mr(e, t) {
1113
1113
  }
1114
1114
  return i(!0), s;
1115
1115
  }
1116
- function Pr(e, t, n, o) {
1116
+ function _r(e, t, n, o) {
1117
1117
  o === void 0 && (o = {});
1118
1118
  const {
1119
1119
  ancestorScroll: r = !0,
1120
1120
  ancestorResize: s = !0,
1121
1121
  elementResize: i = typeof ResizeObserver == "function",
1122
1122
  layoutShift: a = typeof IntersectionObserver == "function",
1123
- animationFrame: f = !1
1124
- } = o, d = ft(e), l = r || s ? [...d ? Re(d) : [], ...Re(t)] : [];
1123
+ animationFrame: d = !1
1124
+ } = o, f = ft(e), l = r || s ? [...f ? Re(f) : [], ...Re(t)] : [];
1125
1125
  l.forEach((x) => {
1126
1126
  r && x.addEventListener("scroll", n, {
1127
1127
  passive: !0
1128
1128
  }), s && x.addEventListener("resize", n);
1129
1129
  });
1130
- const c = d && a ? Mr(d, n) : null;
1130
+ const c = f && a ? Sr(f, n) : null;
1131
1131
  let m = -1, g = null;
1132
1132
  i && (g = new ResizeObserver((x) => {
1133
1133
  let [R] = x;
1134
- R && R.target === d && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1134
+ R && R.target === f && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1135
1135
  var b;
1136
1136
  (b = g) == null || b.observe(t);
1137
1137
  })), n();
1138
- }), d && !f && g.observe(d), g.observe(t));
1139
- let h, w = f ? ce(e) : null;
1140
- f && v();
1138
+ }), f && !d && g.observe(f), g.observe(t));
1139
+ let h, w = d ? le(e) : null;
1140
+ d && v();
1141
1141
  function v() {
1142
- const x = ce(e);
1142
+ const x = le(e);
1143
1143
  w && !cn(w, x) && n(), w = x, h = requestAnimationFrame(v);
1144
1144
  }
1145
1145
  return n(), () => {
1146
1146
  var x;
1147
1147
  l.forEach((R) => {
1148
1148
  r && R.removeEventListener("scroll", n), s && R.removeEventListener("resize", n);
1149
- }), c?.(), (x = g) == null || x.disconnect(), g = null, f && cancelAnimationFrame(h);
1149
+ }), c?.(), (x = g) == null || x.disconnect(), g = null, d && cancelAnimationFrame(h);
1150
1150
  };
1151
1151
  }
1152
- const Ar = qo, Sr = Zo, _r = zo, Er = Qo, Or = Yo, Ft = Uo, Dr = Jo, Ir = (e, t, n) => {
1152
+ const Er = Qo, Or = er, Dr = qo, Ir = nr, Tr = Zo, Ft = Xo, Nr = tr, jr = (e, t, n) => {
1153
1153
  const o = /* @__PURE__ */ new Map(), r = {
1154
- platform: Rr,
1154
+ platform: Ar,
1155
1155
  ...n
1156
1156
  }, s = {
1157
1157
  ...r.platform,
1158
1158
  _c: o
1159
1159
  };
1160
- return Wo(e, t, {
1160
+ return Yo(e, t, {
1161
1161
  ...r,
1162
1162
  platform: s
1163
1163
  });
1164
1164
  };
1165
- var Tr = typeof document < "u", Nr = function() {
1166
- }, ke = Tr ? u.useLayoutEffect : Nr;
1165
+ var Fr = typeof document < "u", kr = function() {
1166
+ }, ke = Fr ? u.useLayoutEffect : kr;
1167
1167
  function Be(e, t) {
1168
1168
  if (e === t)
1169
1169
  return !0;
@@ -1201,13 +1201,13 @@ function kt(e, t) {
1201
1201
  const n = ln(e);
1202
1202
  return Math.round(t * n) / n;
1203
1203
  }
1204
- function Qe(e) {
1204
+ function et(e) {
1205
1205
  const t = u.useRef(e);
1206
1206
  return ke(() => {
1207
1207
  t.current = e;
1208
1208
  }), t;
1209
1209
  }
1210
- function jr(e) {
1210
+ function Lr(e) {
1211
1211
  e === void 0 && (e = {});
1212
1212
  const {
1213
1213
  placement: t = "bottom",
@@ -1219,8 +1219,8 @@ function jr(e) {
1219
1219
  floating: i
1220
1220
  } = {},
1221
1221
  transform: a = !0,
1222
- whileElementsMounted: f,
1223
- open: d
1222
+ whileElementsMounted: d,
1223
+ open: f
1224
1224
  } = e, [l, c] = u.useState({
1225
1225
  x: 0,
1226
1226
  y: 0,
@@ -1234,7 +1234,7 @@ function jr(e) {
1234
1234
  P !== E.current && (E.current = P, w(P));
1235
1235
  }, []), b = u.useCallback((P) => {
1236
1236
  P !== S.current && (S.current = P, x(P));
1237
- }, []), C = s || h, M = i || v, E = u.useRef(null), S = u.useRef(null), _ = u.useRef(l), N = f != null, D = Qe(f), j = Qe(r), F = Qe(d), T = u.useCallback(() => {
1237
+ }, []), C = s || h, M = i || v, E = u.useRef(null), S = u.useRef(null), _ = u.useRef(l), N = d != null, D = et(d), j = et(r), F = et(f), T = u.useCallback(() => {
1238
1238
  if (!E.current || !S.current)
1239
1239
  return;
1240
1240
  const P = {
@@ -1242,7 +1242,7 @@ function jr(e) {
1242
1242
  strategy: n,
1243
1243
  middleware: m
1244
1244
  };
1245
- j.current && (P.platform = j.current), Ir(E.current, S.current, P).then((y) => {
1245
+ j.current && (P.platform = j.current), jr(E.current, S.current, P).then((y) => {
1246
1246
  const G = {
1247
1247
  ...y,
1248
1248
  // The floating element's position may be recomputed while it's closed
@@ -1251,17 +1251,17 @@ function jr(e) {
1251
1251
  // setting it to `true` when `open === false` (must be specified).
1252
1252
  isPositioned: F.current !== !1
1253
1253
  };
1254
- I.current && !Be(_.current, G) && (_.current = G, Mo.flushSync(() => {
1254
+ I.current && !Be(_.current, G) && (_.current = G, Ao.flushSync(() => {
1255
1255
  c(G);
1256
1256
  }));
1257
1257
  });
1258
1258
  }, [m, t, n, j, F]);
1259
1259
  ke(() => {
1260
- d === !1 && _.current.isPositioned && (_.current.isPositioned = !1, c((P) => ({
1260
+ f === !1 && _.current.isPositioned && (_.current.isPositioned = !1, c((P) => ({
1261
1261
  ...P,
1262
1262
  isPositioned: !1
1263
1263
  })));
1264
- }, [d]);
1264
+ }, [f]);
1265
1265
  const I = u.useRef(!1);
1266
1266
  ke(() => (I.current = !0, () => {
1267
1267
  I.current = !1;
@@ -1309,7 +1309,7 @@ function jr(e) {
1309
1309
  floatingStyles: k
1310
1310
  }), [l, T, $, O, k]);
1311
1311
  }
1312
- const Fr = (e) => {
1312
+ const $r = (e) => {
1313
1313
  function t(n) {
1314
1314
  return {}.hasOwnProperty.call(n, "current");
1315
1315
  }
@@ -1330,29 +1330,29 @@ const Fr = (e) => {
1330
1330
  }).fn(n) : {};
1331
1331
  }
1332
1332
  };
1333
- }, kr = (e, t) => ({
1334
- ...Ar(e),
1335
- options: [e, t]
1336
- }), Lr = (e, t) => ({
1337
- ...Sr(e),
1338
- options: [e, t]
1339
- }), $r = (e, t) => ({
1340
- ...Dr(e),
1341
- options: [e, t]
1342
- }), Gr = (e, t) => ({
1343
- ..._r(e),
1333
+ }, Gr = (e, t) => ({
1334
+ ...Er(e),
1344
1335
  options: [e, t]
1345
1336
  }), Br = (e, t) => ({
1346
- ...Er(e),
1337
+ ...Or(e),
1347
1338
  options: [e, t]
1348
1339
  }), Kr = (e, t) => ({
1349
- ...Or(e),
1340
+ ...Nr(e),
1350
1341
  options: [e, t]
1351
1342
  }), Hr = (e, t) => ({
1352
- ...Fr(e),
1343
+ ...Dr(e),
1344
+ options: [e, t]
1345
+ }), Vr = (e, t) => ({
1346
+ ...Ir(e),
1347
+ options: [e, t]
1348
+ }), Wr = (e, t) => ({
1349
+ ...Tr(e),
1350
+ options: [e, t]
1351
+ }), zr = (e, t) => ({
1352
+ ...$r(e),
1353
1353
  options: [e, t]
1354
1354
  });
1355
- var Vr = "Arrow", un = u.forwardRef((e, t) => {
1355
+ var Ur = "Arrow", un = u.forwardRef((e, t) => {
1356
1356
  const { children: n, width: o = 10, height: r = 5, ...s } = e;
1357
1357
  return /* @__PURE__ */ p.jsx(
1358
1358
  K.svg,
@@ -1367,23 +1367,23 @@ var Vr = "Arrow", un = u.forwardRef((e, t) => {
1367
1367
  }
1368
1368
  );
1369
1369
  });
1370
- un.displayName = Vr;
1371
- var Wr = un, pt = "Popper", [dn, Ye] = Ae(pt), [Ur, fn] = dn(pt), pn = (e) => {
1370
+ un.displayName = Ur;
1371
+ var Yr = un, pt = "Popper", [dn, Xe] = Ae(pt), [Xr, fn] = dn(pt), pn = (e) => {
1372
1372
  const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
1373
- return /* @__PURE__ */ p.jsx(Ur, { scope: t, anchor: o, onAnchorChange: r, children: n });
1373
+ return /* @__PURE__ */ p.jsx(Xr, { scope: t, anchor: o, onAnchorChange: r, children: n });
1374
1374
  };
1375
1375
  pn.displayName = pt;
1376
1376
  var mn = "PopperAnchor", gn = u.forwardRef(
1377
1377
  (e, t) => {
1378
- const { __scopePopper: n, virtualRef: o, ...r } = e, s = fn(mn, n), i = u.useRef(null), a = J(t, i), f = u.useRef(null);
1378
+ const { __scopePopper: n, virtualRef: o, ...r } = e, s = fn(mn, n), i = u.useRef(null), a = J(t, i), d = u.useRef(null);
1379
1379
  return u.useEffect(() => {
1380
- const d = f.current;
1381
- f.current = o?.current || i.current, d !== f.current && s.onAnchorChange(f.current);
1380
+ const f = d.current;
1381
+ d.current = o?.current || i.current, f !== d.current && s.onAnchorChange(d.current);
1382
1382
  }), o ? null : /* @__PURE__ */ p.jsx(K.div, { ...r, ref: a });
1383
1383
  }
1384
1384
  );
1385
1385
  gn.displayName = mn;
1386
- var mt = "PopperContent", [zr, Yr] = dn(mt), hn = u.forwardRef(
1386
+ var mt = "PopperContent", [qr, Zr] = dn(mt), hn = u.forwardRef(
1387
1387
  (e, t) => {
1388
1388
  const {
1389
1389
  __scopePopper: n,
@@ -1392,56 +1392,56 @@ var mt = "PopperContent", [zr, Yr] = dn(mt), hn = u.forwardRef(
1392
1392
  align: s = "center",
1393
1393
  alignOffset: i = 0,
1394
1394
  arrowPadding: a = 0,
1395
- avoidCollisions: f = !0,
1396
- collisionBoundary: d = [],
1395
+ avoidCollisions: d = !0,
1396
+ collisionBoundary: f = [],
1397
1397
  collisionPadding: l = 0,
1398
1398
  sticky: c = "partial",
1399
1399
  hideWhenDetached: m = !1,
1400
1400
  updatePositionStrategy: g = "optimized",
1401
1401
  onPlaced: h,
1402
1402
  ...w
1403
- } = e, v = fn(mt, n), [x, R] = u.useState(null), b = J(t, (L) => R(L)), [C, M] = u.useState(null), E = Po(C), S = E?.width ?? 0, _ = E?.height ?? 0, N = o + (s !== "center" ? "-" + s : ""), D = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, j = Array.isArray(d) ? d : [d], F = j.length > 0, T = {
1403
+ } = e, v = fn(mt, n), [x, R] = u.useState(null), b = J(t, (L) => R(L)), [C, M] = u.useState(null), E = So(C), S = E?.width ?? 0, _ = E?.height ?? 0, N = o + (s !== "center" ? "-" + s : ""), D = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, j = Array.isArray(f) ? f : [f], F = j.length > 0, T = {
1404
1404
  padding: D,
1405
- boundary: j.filter(qr),
1405
+ boundary: j.filter(Qr),
1406
1406
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1407
1407
  altBoundary: F
1408
- }, { refs: I, floatingStyles: $, placement: O, isPositioned: k, middlewareData: P } = jr({
1408
+ }, { refs: I, floatingStyles: $, placement: O, isPositioned: k, middlewareData: P } = Lr({
1409
1409
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1410
1410
  strategy: "fixed",
1411
1411
  placement: N,
1412
- whileElementsMounted: (...L) => Pr(...L, {
1412
+ whileElementsMounted: (...L) => _r(...L, {
1413
1413
  animationFrame: g === "always"
1414
1414
  }),
1415
1415
  elements: {
1416
1416
  reference: v.anchor
1417
1417
  },
1418
1418
  middleware: [
1419
- kr({ mainAxis: r + _, alignmentAxis: i }),
1420
- f && Lr({
1419
+ Gr({ mainAxis: r + _, alignmentAxis: i }),
1420
+ d && Br({
1421
1421
  mainAxis: !0,
1422
1422
  crossAxis: !1,
1423
- limiter: c === "partial" ? $r() : void 0,
1423
+ limiter: c === "partial" ? Kr() : void 0,
1424
1424
  ...T
1425
1425
  }),
1426
- f && Gr({ ...T }),
1427
- Br({
1426
+ d && Hr({ ...T }),
1427
+ Vr({
1428
1428
  ...T,
1429
- apply: ({ elements: L, rects: ye, availableWidth: yo, availableHeight: bo }) => {
1430
- const { width: Co, height: Ro } = ye.reference, je = L.floating.style;
1431
- je.setProperty("--radix-popper-available-width", `${yo}px`), je.setProperty("--radix-popper-available-height", `${bo}px`), je.setProperty("--radix-popper-anchor-width", `${Co}px`), je.setProperty("--radix-popper-anchor-height", `${Ro}px`);
1429
+ apply: ({ elements: L, rects: ye, availableWidth: Co, availableHeight: Ro }) => {
1430
+ const { width: Mo, height: Po } = ye.reference, je = L.floating.style;
1431
+ je.setProperty("--radix-popper-available-width", `${Co}px`), je.setProperty("--radix-popper-available-height", `${Ro}px`), je.setProperty("--radix-popper-anchor-width", `${Mo}px`), je.setProperty("--radix-popper-anchor-height", `${Po}px`);
1432
1432
  }
1433
1433
  }),
1434
- C && Hr({ element: C, padding: a }),
1435
- Zr({ arrowWidth: S, arrowHeight: _ }),
1436
- m && Kr({ strategy: "referenceHidden", ...T })
1434
+ C && zr({ element: C, padding: a }),
1435
+ es({ arrowWidth: S, arrowHeight: _ }),
1436
+ m && Wr({ strategy: "referenceHidden", ...T })
1437
1437
  ]
1438
1438
  }), [y, G] = xn(O), Y = Se(h);
1439
1439
  At(() => {
1440
1440
  k && Y?.();
1441
1441
  }, [k, Y]);
1442
- const ie = P.arrow?.x, we = P.arrow?.y, xe = P.arrow?.centerOffset !== 0, [Ne, ae] = u.useState();
1442
+ const ae = P.arrow?.x, we = P.arrow?.y, xe = P.arrow?.centerOffset !== 0, [Ne, ce] = u.useState();
1443
1443
  return At(() => {
1444
- x && ae(window.getComputedStyle(x).zIndex);
1444
+ x && ce(window.getComputedStyle(x).zIndex);
1445
1445
  }, [x]), /* @__PURE__ */ p.jsx(
1446
1446
  "div",
1447
1447
  {
@@ -1467,12 +1467,12 @@ var mt = "PopperContent", [zr, Yr] = dn(mt), hn = u.forwardRef(
1467
1467
  },
1468
1468
  dir: e.dir,
1469
1469
  children: /* @__PURE__ */ p.jsx(
1470
- zr,
1470
+ qr,
1471
1471
  {
1472
1472
  scope: n,
1473
1473
  placedSide: y,
1474
1474
  onArrowChange: M,
1475
- arrowX: ie,
1475
+ arrowX: ae,
1476
1476
  arrowY: we,
1477
1477
  shouldHideArrow: xe,
1478
1478
  children: /* @__PURE__ */ p.jsx(
@@ -1497,13 +1497,13 @@ var mt = "PopperContent", [zr, Yr] = dn(mt), hn = u.forwardRef(
1497
1497
  }
1498
1498
  );
1499
1499
  hn.displayName = mt;
1500
- var vn = "PopperArrow", Xr = {
1500
+ var vn = "PopperArrow", Jr = {
1501
1501
  top: "bottom",
1502
1502
  right: "left",
1503
1503
  bottom: "top",
1504
1504
  left: "right"
1505
1505
  }, wn = u.forwardRef(function(t, n) {
1506
- const { __scopePopper: o, ...r } = t, s = Yr(vn, o), i = Xr[s.placedSide];
1506
+ const { __scopePopper: o, ...r } = t, s = Zr(vn, o), i = Jr[s.placedSide];
1507
1507
  return (
1508
1508
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1509
1509
  // doesn't report size as we'd expect on SVG elements.
@@ -1532,7 +1532,7 @@ var vn = "PopperArrow", Xr = {
1532
1532
  visibility: s.shouldHideArrow ? "hidden" : void 0
1533
1533
  },
1534
1534
  children: /* @__PURE__ */ p.jsx(
1535
- Wr,
1535
+ Yr,
1536
1536
  {
1537
1537
  ...r,
1538
1538
  ref: n,
@@ -1548,30 +1548,30 @@ var vn = "PopperArrow", Xr = {
1548
1548
  );
1549
1549
  });
1550
1550
  wn.displayName = vn;
1551
- function qr(e) {
1551
+ function Qr(e) {
1552
1552
  return e !== null;
1553
1553
  }
1554
- var Zr = (e) => ({
1554
+ var es = (e) => ({
1555
1555
  name: "transformOrigin",
1556
1556
  options: e,
1557
1557
  fn(t) {
1558
- const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, f = i ? 0 : e.arrowHeight, [d, l] = xn(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + a / 2, g = (r.arrow?.y ?? 0) + f / 2;
1558
+ const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, d = i ? 0 : e.arrowHeight, [f, l] = xn(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + a / 2, g = (r.arrow?.y ?? 0) + d / 2;
1559
1559
  let h = "", w = "";
1560
- return d === "bottom" ? (h = i ? c : `${m}px`, w = `${-f}px`) : d === "top" ? (h = i ? c : `${m}px`, w = `${o.floating.height + f}px`) : d === "right" ? (h = `${-f}px`, w = i ? c : `${g}px`) : d === "left" && (h = `${o.floating.width + f}px`, w = i ? c : `${g}px`), { data: { x: h, y: w } };
1560
+ return f === "bottom" ? (h = i ? c : `${m}px`, w = `${-d}px`) : f === "top" ? (h = i ? c : `${m}px`, w = `${o.floating.height + d}px`) : f === "right" ? (h = `${-d}px`, w = i ? c : `${g}px`) : f === "left" && (h = `${o.floating.width + d}px`, w = i ? c : `${g}px`), { data: { x: h, y: w } };
1561
1561
  }
1562
1562
  });
1563
1563
  function xn(e) {
1564
1564
  const [t, n = "center"] = e.split("-");
1565
1565
  return [t, n];
1566
1566
  }
1567
- var gt = pn, ht = gn, yn = hn, bn = wn, et = "rovingFocusGroup.onEntryFocus", Jr = { bubbles: !1, cancelable: !0 }, Ee = "RovingFocusGroup", [rt, Cn, Qr] = Gt(Ee), [es, Rn] = Ae(
1567
+ var gt = pn, ht = gn, yn = hn, bn = wn, tt = "rovingFocusGroup.onEntryFocus", ts = { bubbles: !1, cancelable: !0 }, Ee = "RovingFocusGroup", [st, Cn, ns] = Gt(Ee), [os, Rn] = Ae(
1568
1568
  Ee,
1569
- [Qr]
1570
- ), [ts, ns] = es(Ee), Mn = u.forwardRef(
1571
- (e, t) => /* @__PURE__ */ p.jsx(rt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(rt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(os, { ...e, ref: t }) }) })
1569
+ [ns]
1570
+ ), [rs, ss] = os(Ee), Mn = u.forwardRef(
1571
+ (e, t) => /* @__PURE__ */ p.jsx(st.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(st.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(is, { ...e, ref: t }) }) })
1572
1572
  );
1573
1573
  Mn.displayName = Ee;
1574
- var os = u.forwardRef((e, t) => {
1574
+ var is = u.forwardRef((e, t) => {
1575
1575
  const {
1576
1576
  __scopeRovingFocusGroup: n,
1577
1577
  orientation: o,
@@ -1579,22 +1579,22 @@ var os = u.forwardRef((e, t) => {
1579
1579
  dir: s,
1580
1580
  currentTabStopId: i,
1581
1581
  defaultCurrentTabStopId: a,
1582
- onCurrentTabStopIdChange: f,
1583
- onEntryFocus: d,
1582
+ onCurrentTabStopIdChange: d,
1583
+ onEntryFocus: f,
1584
1584
  preventScrollOnEntryFocus: l = !1,
1585
1585
  ...c
1586
- } = e, m = u.useRef(null), g = J(t, m), h = Bt(s), [w, v] = it({
1586
+ } = e, m = u.useRef(null), g = J(t, m), h = Bt(s), [w, v] = Ve({
1587
1587
  prop: i,
1588
1588
  defaultProp: a ?? null,
1589
- onChange: f,
1589
+ onChange: d,
1590
1590
  caller: Ee
1591
- }), [x, R] = u.useState(!1), b = Se(d), C = Cn(n), M = u.useRef(!1), [E, S] = u.useState(0);
1591
+ }), [x, R] = u.useState(!1), b = Se(f), C = Cn(n), M = u.useRef(!1), [E, S] = u.useState(0);
1592
1592
  return u.useEffect(() => {
1593
1593
  const _ = m.current;
1594
1594
  if (_)
1595
- return _.addEventListener(et, b), () => _.removeEventListener(et, b);
1595
+ return _.addEventListener(tt, b), () => _.removeEventListener(tt, b);
1596
1596
  }, [b]), /* @__PURE__ */ p.jsx(
1597
- ts,
1597
+ rs,
1598
1598
  {
1599
1599
  scope: n,
1600
1600
  orientation: o,
@@ -1628,7 +1628,7 @@ var os = u.forwardRef((e, t) => {
1628
1628
  onFocus: A(e.onFocus, (_) => {
1629
1629
  const N = !M.current;
1630
1630
  if (_.target === _.currentTarget && N && !x) {
1631
- const D = new CustomEvent(et, Jr);
1631
+ const D = new CustomEvent(tt, ts);
1632
1632
  if (_.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
1633
1633
  const j = C().filter((O) => O.focusable), F = j.find((O) => O.active), T = j.find((O) => O.id === w), $ = [F, T, ...j].filter(
1634
1634
  Boolean
@@ -1652,15 +1652,15 @@ var os = u.forwardRef((e, t) => {
1652
1652
  tabStopId: s,
1653
1653
  children: i,
1654
1654
  ...a
1655
- } = e, f = de(), d = s || f, l = ns(Pn, n), c = l.currentTabStopId === d, m = Cn(n), { onFocusableItemAdd: g, onFocusableItemRemove: h, currentTabStopId: w } = l;
1655
+ } = e, d = fe(), f = s || d, l = ss(Pn, n), c = l.currentTabStopId === f, m = Cn(n), { onFocusableItemAdd: g, onFocusableItemRemove: h, currentTabStopId: w } = l;
1656
1656
  return u.useEffect(() => {
1657
1657
  if (o)
1658
1658
  return g(), () => h();
1659
1659
  }, [o, g, h]), /* @__PURE__ */ p.jsx(
1660
- rt.ItemSlot,
1660
+ st.ItemSlot,
1661
1661
  {
1662
1662
  scope: n,
1663
- id: d,
1663
+ id: f,
1664
1664
  focusable: o,
1665
1665
  active: r,
1666
1666
  children: /* @__PURE__ */ p.jsx(
@@ -1671,16 +1671,16 @@ var os = u.forwardRef((e, t) => {
1671
1671
  ...a,
1672
1672
  ref: t,
1673
1673
  onMouseDown: A(e.onMouseDown, (v) => {
1674
- o ? l.onItemFocus(d) : v.preventDefault();
1674
+ o ? l.onItemFocus(f) : v.preventDefault();
1675
1675
  }),
1676
- onFocus: A(e.onFocus, () => l.onItemFocus(d)),
1676
+ onFocus: A(e.onFocus, () => l.onItemFocus(f)),
1677
1677
  onKeyDown: A(e.onKeyDown, (v) => {
1678
1678
  if (v.key === "Tab" && v.shiftKey) {
1679
1679
  l.onItemShiftTab();
1680
1680
  return;
1681
1681
  }
1682
1682
  if (v.target !== v.currentTarget) return;
1683
- const x = is(v, l.orientation, l.dir);
1683
+ const x = ls(v, l.orientation, l.dir);
1684
1684
  if (x !== void 0) {
1685
1685
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
1686
1686
  v.preventDefault();
@@ -1689,7 +1689,7 @@ var os = u.forwardRef((e, t) => {
1689
1689
  else if (x === "prev" || x === "next") {
1690
1690
  x === "prev" && b.reverse();
1691
1691
  const C = b.indexOf(v.currentTarget);
1692
- b = l.loop ? as(b, C + 1) : b.slice(C + 1);
1692
+ b = l.loop ? us(b, C + 1) : b.slice(C + 1);
1693
1693
  }
1694
1694
  setTimeout(() => Sn(b));
1695
1695
  }
@@ -1702,7 +1702,7 @@ var os = u.forwardRef((e, t) => {
1702
1702
  }
1703
1703
  );
1704
1704
  An.displayName = Pn;
1705
- var rs = {
1705
+ var as = {
1706
1706
  ArrowLeft: "prev",
1707
1707
  ArrowUp: "prev",
1708
1708
  ArrowRight: "next",
@@ -1712,34 +1712,34 @@ var rs = {
1712
1712
  PageDown: "last",
1713
1713
  End: "last"
1714
1714
  };
1715
- function ss(e, t) {
1715
+ function cs(e, t) {
1716
1716
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
1717
1717
  }
1718
- function is(e, t, n) {
1719
- const o = ss(e.key, n);
1718
+ function ls(e, t, n) {
1719
+ const o = cs(e.key, n);
1720
1720
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
1721
- return rs[o];
1721
+ return as[o];
1722
1722
  }
1723
1723
  function Sn(e, t = !1) {
1724
1724
  const n = document.activeElement;
1725
1725
  for (const o of e)
1726
1726
  if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
1727
1727
  }
1728
- function as(e, t) {
1728
+ function us(e, t) {
1729
1729
  return e.map((n, o) => e[(t + o) % e.length]);
1730
1730
  }
1731
- var cs = Mn, ls = An, st = ["Enter", " "], us = ["ArrowDown", "PageUp", "Home"], _n = ["ArrowUp", "PageDown", "End"], ds = [...us, ..._n], fs = {
1732
- ltr: [...st, "ArrowRight"],
1733
- rtl: [...st, "ArrowLeft"]
1734
- }, ps = {
1731
+ var ds = Mn, fs = An, it = ["Enter", " "], ps = ["ArrowDown", "PageUp", "Home"], _n = ["ArrowUp", "PageDown", "End"], ms = [...ps, ..._n], gs = {
1732
+ ltr: [...it, "ArrowRight"],
1733
+ rtl: [...it, "ArrowLeft"]
1734
+ }, hs = {
1735
1735
  ltr: ["ArrowLeft"],
1736
1736
  rtl: ["ArrowRight"]
1737
- }, Oe = "Menu", [Me, ms, gs] = Gt(Oe), [le, En] = Ae(Oe, [
1738
- gs,
1739
- Ye,
1737
+ }, Oe = "Menu", [Me, vs, ws] = Gt(Oe), [ue, En] = Ae(Oe, [
1738
+ ws,
1739
+ Xe,
1740
1740
  Rn
1741
- ]), De = Ye(), On = Rn(), [Dn, re] = le(Oe), [hs, Ie] = le(Oe), In = (e) => {
1742
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: s, modal: i = !0 } = e, a = De(t), [f, d] = u.useState(null), l = u.useRef(!1), c = Se(s), m = Bt(r);
1741
+ ]), De = Xe(), On = Rn(), [Dn, se] = ue(Oe), [xs, Ie] = ue(Oe), In = (e) => {
1742
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: s, modal: i = !0 } = e, a = De(t), [d, f] = u.useState(null), l = u.useRef(!1), c = Se(s), m = Bt(r);
1743
1743
  return u.useEffect(() => {
1744
1744
  const g = () => {
1745
1745
  l.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
@@ -1753,10 +1753,10 @@ var cs = Mn, ls = An, st = ["Enter", " "], us = ["ArrowDown", "PageUp", "Home"],
1753
1753
  scope: t,
1754
1754
  open: n,
1755
1755
  onOpenChange: c,
1756
- content: f,
1757
- onContentChange: d,
1756
+ content: d,
1757
+ onContentChange: f,
1758
1758
  children: /* @__PURE__ */ p.jsx(
1759
- hs,
1759
+ xs,
1760
1760
  {
1761
1761
  scope: t,
1762
1762
  onClose: u.useCallback(() => c(!1), [c]),
@@ -1770,28 +1770,28 @@ var cs = Mn, ls = An, st = ["Enter", " "], us = ["ArrowDown", "PageUp", "Home"],
1770
1770
  ) });
1771
1771
  };
1772
1772
  In.displayName = Oe;
1773
- var vs = "MenuAnchor", vt = u.forwardRef(
1773
+ var ys = "MenuAnchor", vt = u.forwardRef(
1774
1774
  (e, t) => {
1775
1775
  const { __scopeMenu: n, ...o } = e, r = De(n);
1776
1776
  return /* @__PURE__ */ p.jsx(ht, { ...r, ...o, ref: t });
1777
1777
  }
1778
1778
  );
1779
- vt.displayName = vs;
1780
- var wt = "MenuPortal", [ws, Tn] = le(wt, {
1779
+ vt.displayName = ys;
1780
+ var wt = "MenuPortal", [bs, Tn] = ue(wt, {
1781
1781
  forceMount: void 0
1782
1782
  }), Nn = (e) => {
1783
- const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, s = re(wt, t);
1784
- return /* @__PURE__ */ p.jsx(ws, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(me, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
1783
+ const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, s = se(wt, t);
1784
+ return /* @__PURE__ */ p.jsx(bs, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(ge, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
1785
1785
  };
1786
1786
  Nn.displayName = wt;
1787
- var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1787
+ var W = "MenuContent", [Cs, xt] = ue(W), jn = u.forwardRef(
1788
1788
  (e, t) => {
1789
- const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = re(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu);
1790
- return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ p.jsx(ys, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(bs, { ...r, ref: t }) }) }) });
1789
+ const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = se(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu);
1790
+ return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ p.jsx(Rs, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(Ms, { ...r, ref: t }) }) }) });
1791
1791
  }
1792
- ), ys = u.forwardRef(
1792
+ ), Rs = u.forwardRef(
1793
1793
  (e, t) => {
1794
- const n = re(W, e.__scopeMenu), o = u.useRef(null), r = J(t, o);
1794
+ const n = se(W, e.__scopeMenu), o = u.useRef(null), r = J(t, o);
1795
1795
  return u.useEffect(() => {
1796
1796
  const s = o.current;
1797
1797
  if (s) return Vt(s);
@@ -1812,8 +1812,8 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1812
1812
  }
1813
1813
  );
1814
1814
  }
1815
- ), bs = u.forwardRef((e, t) => {
1816
- const n = re(W, e.__scopeMenu);
1815
+ ), Ms = u.forwardRef((e, t) => {
1816
+ const n = se(W, e.__scopeMenu);
1817
1817
  return /* @__PURE__ */ p.jsx(
1818
1818
  yt,
1819
1819
  {
@@ -1825,7 +1825,7 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1825
1825
  onDismiss: () => n.onOpenChange(!1)
1826
1826
  }
1827
1827
  );
1828
- }), Cs = zt("MenuContent.ScrollLock"), yt = u.forwardRef(
1828
+ }), Ps = Ut("MenuContent.ScrollLock"), yt = u.forwardRef(
1829
1829
  (e, t) => {
1830
1830
  const {
1831
1831
  __scopeMenu: n,
@@ -1834,24 +1834,24 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1834
1834
  onOpenAutoFocus: s,
1835
1835
  onCloseAutoFocus: i,
1836
1836
  disableOutsidePointerEvents: a,
1837
- onEntryFocus: f,
1838
- onEscapeKeyDown: d,
1837
+ onEntryFocus: d,
1838
+ onEscapeKeyDown: f,
1839
1839
  onPointerDownOutside: l,
1840
1840
  onFocusOutside: c,
1841
1841
  onInteractOutside: m,
1842
1842
  onDismiss: g,
1843
1843
  disableOutsideScroll: h,
1844
1844
  ...w
1845
- } = e, v = re(W, n), x = Ie(W, n), R = De(n), b = On(n), C = ms(n), [M, E] = u.useState(null), S = u.useRef(null), _ = J(t, S, v.onContentChange), N = u.useRef(0), D = u.useRef(""), j = u.useRef(0), F = u.useRef(null), T = u.useRef("right"), I = u.useRef(0), $ = h ? Ut : u.Fragment, O = h ? { as: Cs, allowPinchZoom: !0 } : void 0, k = (y) => {
1846
- const G = D.current + y, Y = C().filter((L) => !L.disabled), ie = document.activeElement, we = Y.find((L) => L.ref.current === ie)?.textValue, xe = Y.map((L) => L.textValue), Ne = Ns(xe, G, we), ae = Y.find((L) => L.textValue === Ne)?.ref.current;
1845
+ } = e, v = se(W, n), x = Ie(W, n), R = De(n), b = On(n), C = vs(n), [M, E] = u.useState(null), S = u.useRef(null), _ = J(t, S, v.onContentChange), N = u.useRef(0), D = u.useRef(""), j = u.useRef(0), F = u.useRef(null), T = u.useRef("right"), I = u.useRef(0), $ = h ? zt : u.Fragment, O = h ? { as: Ps, allowPinchZoom: !0 } : void 0, k = (y) => {
1846
+ const G = D.current + y, Y = C().filter((L) => !L.disabled), ae = document.activeElement, we = Y.find((L) => L.ref.current === ae)?.textValue, xe = Y.map((L) => L.textValue), Ne = ks(xe, G, we), ce = Y.find((L) => L.textValue === Ne)?.ref.current;
1847
1847
  (function L(ye) {
1848
1848
  D.current = ye, window.clearTimeout(N.current), ye !== "" && (N.current = window.setTimeout(() => L(""), 1e3));
1849
- })(G), ae && setTimeout(() => ae.focus());
1849
+ })(G), ce && setTimeout(() => ce.focus());
1850
1850
  };
1851
1851
  u.useEffect(() => () => window.clearTimeout(N.current), []), Wt();
1852
- const P = u.useCallback((y) => T.current === F.current?.side && Fs(y, F.current?.area), []);
1852
+ const P = u.useCallback((y) => T.current === F.current?.side && $s(y, F.current?.area), []);
1853
1853
  return /* @__PURE__ */ p.jsx(
1854
- xs,
1854
+ Cs,
1855
1855
  {
1856
1856
  scope: n,
1857
1857
  searchRef: D,
@@ -1891,13 +1891,13 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1891
1891
  {
1892
1892
  asChild: !0,
1893
1893
  disableOutsidePointerEvents: a,
1894
- onEscapeKeyDown: d,
1894
+ onEscapeKeyDown: f,
1895
1895
  onPointerDownOutside: l,
1896
1896
  onFocusOutside: c,
1897
1897
  onInteractOutside: m,
1898
1898
  onDismiss: g,
1899
1899
  children: /* @__PURE__ */ p.jsx(
1900
- cs,
1900
+ ds,
1901
1901
  {
1902
1902
  asChild: !0,
1903
1903
  ...b,
@@ -1906,7 +1906,7 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1906
1906
  loop: o,
1907
1907
  currentTabStopId: M,
1908
1908
  onCurrentTabStopIdChange: E,
1909
- onEntryFocus: A(f, (y) => {
1909
+ onEntryFocus: A(d, (y) => {
1910
1910
  x.isUsingKeyboardRef.current || y.preventDefault();
1911
1911
  }),
1912
1912
  preventScrollOnEntryFocus: !0,
@@ -1923,13 +1923,13 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1923
1923
  ref: _,
1924
1924
  style: { outline: "none", ...w.style },
1925
1925
  onKeyDown: A(w.onKeyDown, (y) => {
1926
- const Y = y.target.closest("[data-radix-menu-content]") === y.currentTarget, ie = y.ctrlKey || y.altKey || y.metaKey, we = y.key.length === 1;
1927
- Y && (y.key === "Tab" && y.preventDefault(), !ie && we && k(y.key));
1926
+ const Y = y.target.closest("[data-radix-menu-content]") === y.currentTarget, ae = y.ctrlKey || y.altKey || y.metaKey, we = y.key.length === 1;
1927
+ Y && (y.key === "Tab" && y.preventDefault(), !ae && we && k(y.key));
1928
1928
  const xe = S.current;
1929
- if (y.target !== xe || !ds.includes(y.key)) return;
1929
+ if (y.target !== xe || !ms.includes(y.key)) return;
1930
1930
  y.preventDefault();
1931
- const ae = C().filter((L) => !L.disabled).map((L) => L.ref.current);
1932
- _n.includes(y.key) && ae.reverse(), Is(ae);
1931
+ const ce = C().filter((L) => !L.disabled).map((L) => L.ref.current);
1932
+ _n.includes(y.key) && ce.reverse(), js(ce);
1933
1933
  }),
1934
1934
  onBlur: A(e.onBlur, (y) => {
1935
1935
  y.currentTarget.contains(y.target) || (window.clearTimeout(N.current), D.current = "");
@@ -1939,8 +1939,8 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1939
1939
  Pe((y) => {
1940
1940
  const G = y.target, Y = I.current !== y.clientX;
1941
1941
  if (y.currentTarget.contains(G) && Y) {
1942
- const ie = y.clientX > I.current ? "right" : "left";
1943
- T.current = ie, I.current = y.clientX;
1942
+ const ae = y.clientX > I.current ? "right" : "left";
1943
+ T.current = ae, I.current = y.clientX;
1944
1944
  }
1945
1945
  })
1946
1946
  )
@@ -1957,56 +1957,56 @@ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1957
1957
  }
1958
1958
  );
1959
1959
  jn.displayName = W;
1960
- var Rs = "MenuGroup", bt = u.forwardRef(
1960
+ var As = "MenuGroup", bt = u.forwardRef(
1961
1961
  (e, t) => {
1962
1962
  const { __scopeMenu: n, ...o } = e;
1963
1963
  return /* @__PURE__ */ p.jsx(K.div, { role: "group", ...o, ref: t });
1964
1964
  }
1965
1965
  );
1966
- bt.displayName = Rs;
1967
- var Ms = "MenuLabel", Fn = u.forwardRef(
1966
+ bt.displayName = As;
1967
+ var Ss = "MenuLabel", Fn = u.forwardRef(
1968
1968
  (e, t) => {
1969
1969
  const { __scopeMenu: n, ...o } = e;
1970
1970
  return /* @__PURE__ */ p.jsx(K.div, { ...o, ref: t });
1971
1971
  }
1972
1972
  );
1973
- Fn.displayName = Ms;
1974
- var Ke = "MenuItem", Lt = "menu.itemSelect", Xe = u.forwardRef(
1973
+ Fn.displayName = Ss;
1974
+ var Ke = "MenuItem", Lt = "menu.itemSelect", qe = u.forwardRef(
1975
1975
  (e, t) => {
1976
- const { disabled: n = !1, onSelect: o, ...r } = e, s = u.useRef(null), i = Ie(Ke, e.__scopeMenu), a = xt(Ke, e.__scopeMenu), f = J(t, s), d = u.useRef(!1), l = () => {
1976
+ const { disabled: n = !1, onSelect: o, ...r } = e, s = u.useRef(null), i = Ie(Ke, e.__scopeMenu), a = xt(Ke, e.__scopeMenu), d = J(t, s), f = u.useRef(!1), l = () => {
1977
1977
  const c = s.current;
1978
1978
  if (!n && c) {
1979
1979
  const m = new CustomEvent(Lt, { bubbles: !0, cancelable: !0 });
1980
- c.addEventListener(Lt, (g) => o?.(g), { once: !0 }), Ao(c, m), m.defaultPrevented ? d.current = !1 : i.onClose();
1980
+ c.addEventListener(Lt, (g) => o?.(g), { once: !0 }), _o(c, m), m.defaultPrevented ? f.current = !1 : i.onClose();
1981
1981
  }
1982
1982
  };
1983
1983
  return /* @__PURE__ */ p.jsx(
1984
1984
  kn,
1985
1985
  {
1986
1986
  ...r,
1987
- ref: f,
1987
+ ref: d,
1988
1988
  disabled: n,
1989
1989
  onClick: A(e.onClick, l),
1990
1990
  onPointerDown: (c) => {
1991
- e.onPointerDown?.(c), d.current = !0;
1991
+ e.onPointerDown?.(c), f.current = !0;
1992
1992
  },
1993
1993
  onPointerUp: A(e.onPointerUp, (c) => {
1994
- d.current || c.currentTarget?.click();
1994
+ f.current || c.currentTarget?.click();
1995
1995
  }),
1996
1996
  onKeyDown: A(e.onKeyDown, (c) => {
1997
1997
  const m = a.searchRef.current !== "";
1998
- n || m && c.key === " " || st.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1998
+ n || m && c.key === " " || it.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1999
1999
  })
2000
2000
  }
2001
2001
  );
2002
2002
  }
2003
2003
  );
2004
- Xe.displayName = Ke;
2004
+ qe.displayName = Ke;
2005
2005
  var kn = u.forwardRef(
2006
2006
  (e, t) => {
2007
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...s } = e, i = xt(Ke, n), a = On(n), f = u.useRef(null), d = J(t, f), [l, c] = u.useState(!1), [m, g] = u.useState("");
2007
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...s } = e, i = xt(Ke, n), a = On(n), d = u.useRef(null), f = J(t, d), [l, c] = u.useState(!1), [m, g] = u.useState("");
2008
2008
  return u.useEffect(() => {
2009
- const h = f.current;
2009
+ const h = d.current;
2010
2010
  h && g((h.textContent ?? "").trim());
2011
2011
  }, [s.children]), /* @__PURE__ */ p.jsx(
2012
2012
  Me.ItemSlot,
@@ -2014,7 +2014,7 @@ var kn = u.forwardRef(
2014
2014
  scope: n,
2015
2015
  disabled: o,
2016
2016
  textValue: r ?? m,
2017
- children: /* @__PURE__ */ p.jsx(ls, { asChild: !0, ...a, focusable: !o, children: /* @__PURE__ */ p.jsx(
2017
+ children: /* @__PURE__ */ p.jsx(fs, { asChild: !0, ...a, focusable: !o, children: /* @__PURE__ */ p.jsx(
2018
2018
  K.div,
2019
2019
  {
2020
2020
  role: "menuitem",
@@ -2022,7 +2022,7 @@ var kn = u.forwardRef(
2022
2022
  "aria-disabled": o || void 0,
2023
2023
  "data-disabled": o ? "" : void 0,
2024
2024
  ...s,
2025
- ref: d,
2025
+ ref: f,
2026
2026
  onPointerMove: A(
2027
2027
  e.onPointerMove,
2028
2028
  Pe((h) => {
@@ -2040,11 +2040,11 @@ var kn = u.forwardRef(
2040
2040
  }
2041
2041
  );
2042
2042
  }
2043
- ), Ps = "MenuCheckboxItem", Ln = u.forwardRef(
2043
+ ), _s = "MenuCheckboxItem", Ln = u.forwardRef(
2044
2044
  (e, t) => {
2045
2045
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
2046
2046
  return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p.jsx(
2047
- Xe,
2047
+ qe,
2048
2048
  {
2049
2049
  role: "menuitemcheckbox",
2050
2050
  "aria-checked": He(n) ? "mixed" : n,
@@ -2060,23 +2060,23 @@ var kn = u.forwardRef(
2060
2060
  ) });
2061
2061
  }
2062
2062
  );
2063
- Ln.displayName = Ps;
2064
- var $n = "MenuRadioGroup", [As, Ss] = le(
2063
+ Ln.displayName = _s;
2064
+ var $n = "MenuRadioGroup", [Es, Os] = ue(
2065
2065
  $n,
2066
2066
  { value: void 0, onValueChange: () => {
2067
2067
  } }
2068
2068
  ), Gn = u.forwardRef(
2069
2069
  (e, t) => {
2070
2070
  const { value: n, onValueChange: o, ...r } = e, s = Se(o);
2071
- return /* @__PURE__ */ p.jsx(As, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ p.jsx(bt, { ...r, ref: t }) });
2071
+ return /* @__PURE__ */ p.jsx(Es, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ p.jsx(bt, { ...r, ref: t }) });
2072
2072
  }
2073
2073
  );
2074
2074
  Gn.displayName = $n;
2075
2075
  var Bn = "MenuRadioItem", Kn = u.forwardRef(
2076
2076
  (e, t) => {
2077
- const { value: n, ...o } = e, r = Ss(Bn, e.__scopeMenu), s = n === r.value;
2077
+ const { value: n, ...o } = e, r = Os(Bn, e.__scopeMenu), s = n === r.value;
2078
2078
  return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ p.jsx(
2079
- Xe,
2079
+ qe,
2080
2080
  {
2081
2081
  role: "menuitemradio",
2082
2082
  "aria-checked": s,
@@ -2093,14 +2093,14 @@ var Bn = "MenuRadioItem", Kn = u.forwardRef(
2093
2093
  }
2094
2094
  );
2095
2095
  Kn.displayName = Bn;
2096
- var Ct = "MenuItemIndicator", [Hn, _s] = le(
2096
+ var Ct = "MenuItemIndicator", [Hn, Ds] = ue(
2097
2097
  Ct,
2098
2098
  { checked: !1 }
2099
2099
  ), Vn = u.forwardRef(
2100
2100
  (e, t) => {
2101
- const { __scopeMenu: n, forceMount: o, ...r } = e, s = _s(Ct, n);
2101
+ const { __scopeMenu: n, forceMount: o, ...r } = e, s = Ds(Ct, n);
2102
2102
  return /* @__PURE__ */ p.jsx(
2103
- me,
2103
+ ge,
2104
2104
  {
2105
2105
  present: o || He(s.checked) || s.checked === !0,
2106
2106
  children: /* @__PURE__ */ p.jsx(
@@ -2116,7 +2116,7 @@ var Ct = "MenuItemIndicator", [Hn, _s] = le(
2116
2116
  }
2117
2117
  );
2118
2118
  Vn.displayName = Ct;
2119
- var Es = "MenuSeparator", Wn = u.forwardRef(
2119
+ var Is = "MenuSeparator", Wn = u.forwardRef(
2120
2120
  (e, t) => {
2121
2121
  const { __scopeMenu: n, ...o } = e;
2122
2122
  return /* @__PURE__ */ p.jsx(
@@ -2130,32 +2130,32 @@ var Es = "MenuSeparator", Wn = u.forwardRef(
2130
2130
  );
2131
2131
  }
2132
2132
  );
2133
- Wn.displayName = Es;
2134
- var Os = "MenuArrow", Un = u.forwardRef(
2133
+ Wn.displayName = Is;
2134
+ var Ts = "MenuArrow", zn = u.forwardRef(
2135
2135
  (e, t) => {
2136
2136
  const { __scopeMenu: n, ...o } = e, r = De(n);
2137
2137
  return /* @__PURE__ */ p.jsx(bn, { ...r, ...o, ref: t });
2138
2138
  }
2139
2139
  );
2140
- Un.displayName = Os;
2141
- var Rt = "MenuSub", [Ds, zn] = le(Rt), Yn = (e) => {
2142
- const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, s = re(Rt, t), i = De(t), [a, f] = u.useState(null), [d, l] = u.useState(null), c = Se(r);
2140
+ zn.displayName = Ts;
2141
+ var Rt = "MenuSub", [Ns, Un] = ue(Rt), Yn = (e) => {
2142
+ const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, s = se(Rt, t), i = De(t), [a, d] = u.useState(null), [f, l] = u.useState(null), c = Se(r);
2143
2143
  return u.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ p.jsx(gt, { ...i, children: /* @__PURE__ */ p.jsx(
2144
2144
  Dn,
2145
2145
  {
2146
2146
  scope: t,
2147
2147
  open: o,
2148
2148
  onOpenChange: c,
2149
- content: d,
2149
+ content: f,
2150
2150
  onContentChange: l,
2151
2151
  children: /* @__PURE__ */ p.jsx(
2152
- Ds,
2152
+ Ns,
2153
2153
  {
2154
2154
  scope: t,
2155
- contentId: de(),
2156
- triggerId: de(),
2155
+ contentId: fe(),
2156
+ triggerId: fe(),
2157
2157
  trigger: a,
2158
- onTriggerChange: f,
2158
+ onTriggerChange: d,
2159
2159
  children: n
2160
2160
  }
2161
2161
  )
@@ -2165,15 +2165,15 @@ var Rt = "MenuSub", [Ds, zn] = le(Rt), Yn = (e) => {
2165
2165
  Yn.displayName = Rt;
2166
2166
  var be = "MenuSubTrigger", Xn = u.forwardRef(
2167
2167
  (e, t) => {
2168
- const n = re(be, e.__scopeMenu), o = Ie(be, e.__scopeMenu), r = zn(be, e.__scopeMenu), s = xt(be, e.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: f } = s, d = { __scopeMenu: e.__scopeMenu }, l = u.useCallback(() => {
2168
+ const n = se(be, e.__scopeMenu), o = Ie(be, e.__scopeMenu), r = Un(be, e.__scopeMenu), s = xt(be, e.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: d } = s, f = { __scopeMenu: e.__scopeMenu }, l = u.useCallback(() => {
2169
2169
  i.current && window.clearTimeout(i.current), i.current = null;
2170
2170
  }, []);
2171
2171
  return u.useEffect(() => l, [l]), u.useEffect(() => {
2172
2172
  const c = a.current;
2173
2173
  return () => {
2174
- window.clearTimeout(c), f(null);
2174
+ window.clearTimeout(c), d(null);
2175
2175
  };
2176
- }, [a, f]), /* @__PURE__ */ p.jsx(vt, { asChild: !0, ...d, children: /* @__PURE__ */ p.jsx(
2176
+ }, [a, d]), /* @__PURE__ */ p.jsx(vt, { asChild: !0, ...f, children: /* @__PURE__ */ p.jsx(
2177
2177
  kn,
2178
2178
  {
2179
2179
  id: r.triggerId,
@@ -2224,7 +2224,7 @@ var be = "MenuSubTrigger", Xn = u.forwardRef(
2224
2224
  ),
2225
2225
  onKeyDown: A(e.onKeyDown, (c) => {
2226
2226
  const m = s.searchRef.current !== "";
2227
- e.disabled || m && c.key === " " || fs[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
2227
+ e.disabled || m && c.key === " " || gs[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
2228
2228
  })
2229
2229
  }
2230
2230
  ) });
@@ -2233,21 +2233,21 @@ var be = "MenuSubTrigger", Xn = u.forwardRef(
2233
2233
  Xn.displayName = be;
2234
2234
  var qn = "MenuSubContent", Zn = u.forwardRef(
2235
2235
  (e, t) => {
2236
- const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = re(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu), a = zn(qn, e.__scopeMenu), f = u.useRef(null), d = J(t, f);
2237
- return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(
2236
+ const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = se(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu), a = Un(qn, e.__scopeMenu), d = u.useRef(null), f = J(t, d);
2237
+ return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(
2238
2238
  yt,
2239
2239
  {
2240
2240
  id: a.contentId,
2241
2241
  "aria-labelledby": a.triggerId,
2242
2242
  ...r,
2243
- ref: d,
2243
+ ref: f,
2244
2244
  align: "start",
2245
2245
  side: i.dir === "rtl" ? "left" : "right",
2246
2246
  disableOutsidePointerEvents: !1,
2247
2247
  disableOutsideScroll: !1,
2248
2248
  trapFocus: !1,
2249
2249
  onOpenAutoFocus: (l) => {
2250
- i.isUsingKeyboardRef.current && f.current?.focus(), l.preventDefault();
2250
+ i.isUsingKeyboardRef.current && d.current?.focus(), l.preventDefault();
2251
2251
  },
2252
2252
  onCloseAutoFocus: (l) => l.preventDefault(),
2253
2253
  onFocusOutside: A(e.onFocusOutside, (l) => {
@@ -2257,7 +2257,7 @@ var qn = "MenuSubContent", Zn = u.forwardRef(
2257
2257
  i.onClose(), l.preventDefault();
2258
2258
  }),
2259
2259
  onKeyDown: A(e.onKeyDown, (l) => {
2260
- const c = l.currentTarget.contains(l.target), m = ps[i.dir].includes(l.key);
2260
+ const c = l.currentTarget.contains(l.target), m = hs[i.dir].includes(l.key);
2261
2261
  c && m && (s.onOpenChange(!1), a.trigger?.focus(), l.preventDefault());
2262
2262
  })
2263
2263
  }
@@ -2274,44 +2274,44 @@ function He(e) {
2274
2274
  function Mt(e) {
2275
2275
  return He(e) ? "indeterminate" : e ? "checked" : "unchecked";
2276
2276
  }
2277
- function Is(e) {
2277
+ function js(e) {
2278
2278
  const t = document.activeElement;
2279
2279
  for (const n of e)
2280
2280
  if (n === t || (n.focus(), document.activeElement !== t)) return;
2281
2281
  }
2282
- function Ts(e, t) {
2282
+ function Fs(e, t) {
2283
2283
  return e.map((n, o) => e[(t + o) % e.length]);
2284
2284
  }
2285
- function Ns(e, t, n) {
2286
- const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
2287
- let i = Ts(e, Math.max(s, 0));
2288
- r.length === 1 && (i = i.filter((d) => d !== n));
2289
- const f = i.find(
2290
- (d) => d.toLowerCase().startsWith(r.toLowerCase())
2285
+ function ks(e, t, n) {
2286
+ const r = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
2287
+ let i = Fs(e, Math.max(s, 0));
2288
+ r.length === 1 && (i = i.filter((f) => f !== n));
2289
+ const d = i.find(
2290
+ (f) => f.toLowerCase().startsWith(r.toLowerCase())
2291
2291
  );
2292
- return f !== n ? f : void 0;
2292
+ return d !== n ? d : void 0;
2293
2293
  }
2294
- function js(e, t) {
2294
+ function Ls(e, t) {
2295
2295
  const { x: n, y: o } = e;
2296
2296
  let r = !1;
2297
2297
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
2298
- const a = t[s], f = t[i], d = a.x, l = a.y, c = f.x, m = f.y;
2299
- l > o != m > o && n < (c - d) * (o - l) / (m - l) + d && (r = !r);
2298
+ const a = t[s], d = t[i], f = a.x, l = a.y, c = d.x, m = d.y;
2299
+ l > o != m > o && n < (c - f) * (o - l) / (m - l) + f && (r = !r);
2300
2300
  }
2301
2301
  return r;
2302
2302
  }
2303
- function Fs(e, t) {
2303
+ function $s(e, t) {
2304
2304
  if (!t) return !1;
2305
2305
  const n = { x: e.clientX, y: e.clientY };
2306
- return js(n, t);
2306
+ return Ls(n, t);
2307
2307
  }
2308
2308
  function Pe(e) {
2309
2309
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
2310
2310
  }
2311
- var ks = In, Ls = vt, $s = Nn, Gs = jn, Bs = bt, Ks = Fn, Hs = Xe, Vs = Ln, Ws = Gn, Us = Kn, zs = Vn, Ys = Wn, Xs = Un, Ui = Yn, qs = Xn, Zs = Zn, qe = "DropdownMenu", [Js] = Ae(
2312
- qe,
2311
+ var Gs = In, Bs = vt, Ks = Nn, Hs = jn, Vs = bt, Ws = Fn, zs = qe, Us = Ln, Ys = Gn, Xs = Kn, qs = Vn, Zs = Wn, Js = zn, Qs = Yn, ei = Xn, ti = Zn, Ze = "DropdownMenu", [ni] = Ae(
2312
+ Ze,
2313
2313
  [En]
2314
- ), B = En(), [Qs, Qn] = Js(qe), eo = (e) => {
2314
+ ), B = En(), [oi, Qn] = ni(Ze), eo = (e) => {
2315
2315
  const {
2316
2316
  __scopeDropdownMenu: t,
2317
2317
  children: n,
@@ -2320,32 +2320,32 @@ var ks = In, Ls = vt, $s = Nn, Gs = jn, Bs = bt, Ks = Fn, Hs = Xe, Vs = Ln, Ws =
2320
2320
  defaultOpen: s,
2321
2321
  onOpenChange: i,
2322
2322
  modal: a = !0
2323
- } = e, f = B(t), d = u.useRef(null), [l, c] = it({
2323
+ } = e, d = B(t), f = u.useRef(null), [l, c] = Ve({
2324
2324
  prop: r,
2325
2325
  defaultProp: s ?? !1,
2326
2326
  onChange: i,
2327
- caller: qe
2327
+ caller: Ze
2328
2328
  });
2329
2329
  return /* @__PURE__ */ p.jsx(
2330
- Qs,
2330
+ oi,
2331
2331
  {
2332
2332
  scope: t,
2333
- triggerId: de(),
2334
- triggerRef: d,
2335
- contentId: de(),
2333
+ triggerId: fe(),
2334
+ triggerRef: f,
2335
+ contentId: fe(),
2336
2336
  open: l,
2337
2337
  onOpenChange: c,
2338
2338
  onOpenToggle: u.useCallback(() => c((m) => !m), [c]),
2339
2339
  modal: a,
2340
- children: /* @__PURE__ */ p.jsx(ks, { ...f, open: l, onOpenChange: c, dir: o, modal: a, children: n })
2340
+ children: /* @__PURE__ */ p.jsx(Gs, { ...d, open: l, onOpenChange: c, dir: o, modal: a, children: n })
2341
2341
  }
2342
2342
  );
2343
2343
  };
2344
- eo.displayName = qe;
2344
+ eo.displayName = Ze;
2345
2345
  var to = "DropdownMenuTrigger", no = u.forwardRef(
2346
2346
  (e, t) => {
2347
2347
  const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, s = Qn(to, n), i = B(n);
2348
- return /* @__PURE__ */ p.jsx(Ls, { asChild: !0, ...i, children: /* @__PURE__ */ p.jsx(
2348
+ return /* @__PURE__ */ p.jsx(Bs, { asChild: !0, ...i, children: /* @__PURE__ */ p.jsx(
2349
2349
  K.button,
2350
2350
  {
2351
2351
  type: "button",
@@ -2369,16 +2369,16 @@ var to = "DropdownMenuTrigger", no = u.forwardRef(
2369
2369
  }
2370
2370
  );
2371
2371
  no.displayName = to;
2372
- var ei = "DropdownMenuPortal", oo = (e) => {
2372
+ var ri = "DropdownMenuPortal", oo = (e) => {
2373
2373
  const { __scopeDropdownMenu: t, ...n } = e, o = B(t);
2374
- return /* @__PURE__ */ p.jsx($s, { ...o, ...n });
2374
+ return /* @__PURE__ */ p.jsx(Ks, { ...o, ...n });
2375
2375
  };
2376
- oo.displayName = ei;
2376
+ oo.displayName = ri;
2377
2377
  var ro = "DropdownMenuContent", so = u.forwardRef(
2378
2378
  (e, t) => {
2379
2379
  const { __scopeDropdownMenu: n, ...o } = e, r = Qn(ro, n), s = B(n), i = u.useRef(!1);
2380
2380
  return /* @__PURE__ */ p.jsx(
2381
- Gs,
2381
+ Hs,
2382
2382
  {
2383
2383
  id: r.contentId,
2384
2384
  "aria-labelledby": r.triggerId,
@@ -2389,7 +2389,7 @@ var ro = "DropdownMenuContent", so = u.forwardRef(
2389
2389
  i.current || r.triggerRef.current?.focus(), i.current = !1, a.preventDefault();
2390
2390
  }),
2391
2391
  onInteractOutside: A(e.onInteractOutside, (a) => {
2392
- const f = a.detail.originalEvent, d = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || d;
2392
+ const d = a.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0, l = d.button === 2 || f;
2393
2393
  (!r.modal || l) && (i.current = !0);
2394
2394
  }),
2395
2395
  style: {
@@ -2405,68 +2405,76 @@ var ro = "DropdownMenuContent", so = u.forwardRef(
2405
2405
  }
2406
2406
  );
2407
2407
  so.displayName = ro;
2408
- var ti = "DropdownMenuGroup", ni = u.forwardRef(
2408
+ var si = "DropdownMenuGroup", ii = u.forwardRef(
2409
2409
  (e, t) => {
2410
2410
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2411
- return /* @__PURE__ */ p.jsx(Bs, { ...r, ...o, ref: t });
2411
+ return /* @__PURE__ */ p.jsx(Vs, { ...r, ...o, ref: t });
2412
2412
  }
2413
2413
  );
2414
- ni.displayName = ti;
2415
- var oi = "DropdownMenuLabel", io = u.forwardRef(
2414
+ ii.displayName = si;
2415
+ var ai = "DropdownMenuLabel", io = u.forwardRef(
2416
2416
  (e, t) => {
2417
2417
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2418
- return /* @__PURE__ */ p.jsx(Ks, { ...r, ...o, ref: t });
2418
+ return /* @__PURE__ */ p.jsx(Ws, { ...r, ...o, ref: t });
2419
2419
  }
2420
2420
  );
2421
- io.displayName = oi;
2422
- var ri = "DropdownMenuItem", ao = u.forwardRef(
2421
+ io.displayName = ai;
2422
+ var ci = "DropdownMenuItem", ao = u.forwardRef(
2423
2423
  (e, t) => {
2424
2424
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2425
- return /* @__PURE__ */ p.jsx(Hs, { ...r, ...o, ref: t });
2425
+ return /* @__PURE__ */ p.jsx(zs, { ...r, ...o, ref: t });
2426
2426
  }
2427
2427
  );
2428
- ao.displayName = ri;
2429
- var si = "DropdownMenuCheckboxItem", ii = u.forwardRef((e, t) => {
2428
+ ao.displayName = ci;
2429
+ var li = "DropdownMenuCheckboxItem", ui = u.forwardRef((e, t) => {
2430
2430
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2431
- return /* @__PURE__ */ p.jsx(Vs, { ...r, ...o, ref: t });
2431
+ return /* @__PURE__ */ p.jsx(Us, { ...r, ...o, ref: t });
2432
2432
  });
2433
- ii.displayName = si;
2434
- var ai = "DropdownMenuRadioGroup", ci = u.forwardRef((e, t) => {
2433
+ ui.displayName = li;
2434
+ var di = "DropdownMenuRadioGroup", fi = u.forwardRef((e, t) => {
2435
2435
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2436
- return /* @__PURE__ */ p.jsx(Ws, { ...r, ...o, ref: t });
2436
+ return /* @__PURE__ */ p.jsx(Ys, { ...r, ...o, ref: t });
2437
2437
  });
2438
- ci.displayName = ai;
2439
- var li = "DropdownMenuRadioItem", ui = u.forwardRef((e, t) => {
2438
+ fi.displayName = di;
2439
+ var pi = "DropdownMenuRadioItem", mi = u.forwardRef((e, t) => {
2440
2440
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2441
- return /* @__PURE__ */ p.jsx(Us, { ...r, ...o, ref: t });
2441
+ return /* @__PURE__ */ p.jsx(Xs, { ...r, ...o, ref: t });
2442
2442
  });
2443
- ui.displayName = li;
2444
- var di = "DropdownMenuItemIndicator", fi = u.forwardRef((e, t) => {
2443
+ mi.displayName = pi;
2444
+ var gi = "DropdownMenuItemIndicator", hi = u.forwardRef((e, t) => {
2445
2445
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2446
- return /* @__PURE__ */ p.jsx(zs, { ...r, ...o, ref: t });
2446
+ return /* @__PURE__ */ p.jsx(qs, { ...r, ...o, ref: t });
2447
2447
  });
2448
- fi.displayName = di;
2449
- var pi = "DropdownMenuSeparator", co = u.forwardRef((e, t) => {
2448
+ hi.displayName = gi;
2449
+ var vi = "DropdownMenuSeparator", co = u.forwardRef((e, t) => {
2450
2450
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2451
- return /* @__PURE__ */ p.jsx(Ys, { ...r, ...o, ref: t });
2451
+ return /* @__PURE__ */ p.jsx(Zs, { ...r, ...o, ref: t });
2452
2452
  });
2453
- co.displayName = pi;
2454
- var mi = "DropdownMenuArrow", gi = u.forwardRef(
2453
+ co.displayName = vi;
2454
+ var wi = "DropdownMenuArrow", xi = u.forwardRef(
2455
2455
  (e, t) => {
2456
2456
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2457
- return /* @__PURE__ */ p.jsx(Xs, { ...r, ...o, ref: t });
2457
+ return /* @__PURE__ */ p.jsx(Js, { ...r, ...o, ref: t });
2458
2458
  }
2459
2459
  );
2460
- gi.displayName = mi;
2461
- var hi = "DropdownMenuSubTrigger", vi = u.forwardRef((e, t) => {
2460
+ xi.displayName = wi;
2461
+ var yi = (e) => {
2462
+ const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: s } = e, i = B(t), [a, d] = Ve({
2463
+ prop: o,
2464
+ defaultProp: s ?? !1,
2465
+ onChange: r,
2466
+ caller: "DropdownMenuSub"
2467
+ });
2468
+ return /* @__PURE__ */ p.jsx(Qs, { ...i, open: a, onOpenChange: d, children: n });
2469
+ }, bi = "DropdownMenuSubTrigger", lo = u.forwardRef((e, t) => {
2462
2470
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2463
- return /* @__PURE__ */ p.jsx(qs, { ...r, ...o, ref: t });
2471
+ return /* @__PURE__ */ p.jsx(ei, { ...r, ...o, ref: t });
2464
2472
  });
2465
- vi.displayName = hi;
2466
- var wi = "DropdownMenuSubContent", xi = u.forwardRef((e, t) => {
2473
+ lo.displayName = bi;
2474
+ var Ci = "DropdownMenuSubContent", uo = u.forwardRef((e, t) => {
2467
2475
  const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2468
2476
  return /* @__PURE__ */ p.jsx(
2469
- Zs,
2477
+ ti,
2470
2478
  {
2471
2479
  ...r,
2472
2480
  ...o,
@@ -2482,10 +2490,10 @@ var wi = "DropdownMenuSubContent", xi = u.forwardRef((e, t) => {
2482
2490
  }
2483
2491
  );
2484
2492
  });
2485
- xi.displayName = wi;
2486
- var yi = eo, bi = no, Ci = oo, Ri = so, Mi = io, Pi = ao, Ai = co, Ze = "Popover", [lo] = Ae(Ze, [
2487
- Ye
2488
- ]), Te = Ye(), [Si, se] = lo(Ze), uo = (e) => {
2493
+ uo.displayName = Ci;
2494
+ var Ri = eo, Mi = no, Pi = oo, Ai = so, Si = io, _i = ao, Ei = co, Oi = yi, Di = lo, Ii = uo, Je = "Popover", [fo] = Ae(Je, [
2495
+ Xe
2496
+ ]), Te = Xe(), [Ti, ie] = fo(Je), po = (e) => {
2489
2497
  const {
2490
2498
  __scopePopover: t,
2491
2499
  children: n,
@@ -2493,22 +2501,22 @@ var yi = eo, bi = no, Ci = oo, Ri = so, Mi = io, Pi = ao, Ai = co, Ze = "Popover
2493
2501
  defaultOpen: r,
2494
2502
  onOpenChange: s,
2495
2503
  modal: i = !1
2496
- } = e, a = Te(t), f = u.useRef(null), [d, l] = u.useState(!1), [c, m] = it({
2504
+ } = e, a = Te(t), d = u.useRef(null), [f, l] = u.useState(!1), [c, m] = Ve({
2497
2505
  prop: o,
2498
2506
  defaultProp: r ?? !1,
2499
2507
  onChange: s,
2500
- caller: Ze
2508
+ caller: Je
2501
2509
  });
2502
2510
  return /* @__PURE__ */ p.jsx(gt, { ...a, children: /* @__PURE__ */ p.jsx(
2503
- Si,
2511
+ Ti,
2504
2512
  {
2505
2513
  scope: t,
2506
- contentId: de(),
2507
- triggerRef: f,
2514
+ contentId: fe(),
2515
+ triggerRef: d,
2508
2516
  open: c,
2509
2517
  onOpenChange: m,
2510
2518
  onOpenToggle: u.useCallback(() => m((g) => !g), [m]),
2511
- hasCustomAnchor: d,
2519
+ hasCustomAnchor: f,
2512
2520
  onCustomAnchorAdd: u.useCallback(() => l(!0), []),
2513
2521
  onCustomAnchorRemove: u.useCallback(() => l(!1), []),
2514
2522
  modal: i,
@@ -2516,24 +2524,24 @@ var yi = eo, bi = no, Ci = oo, Ri = so, Mi = io, Pi = ao, Ai = co, Ze = "Popover
2516
2524
  }
2517
2525
  ) });
2518
2526
  };
2519
- uo.displayName = Ze;
2520
- var fo = "PopoverAnchor", _i = u.forwardRef(
2527
+ po.displayName = Je;
2528
+ var mo = "PopoverAnchor", Ni = u.forwardRef(
2521
2529
  (e, t) => {
2522
- const { __scopePopover: n, ...o } = e, r = se(fo, n), s = Te(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
2530
+ const { __scopePopover: n, ...o } = e, r = ie(mo, n), s = Te(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
2523
2531
  return u.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ p.jsx(ht, { ...s, ...o, ref: t });
2524
2532
  }
2525
2533
  );
2526
- _i.displayName = fo;
2527
- var po = "PopoverTrigger", mo = u.forwardRef(
2534
+ Ni.displayName = mo;
2535
+ var go = "PopoverTrigger", ho = u.forwardRef(
2528
2536
  (e, t) => {
2529
- const { __scopePopover: n, ...o } = e, r = se(po, n), s = Te(n), i = J(t, r.triggerRef), a = /* @__PURE__ */ p.jsx(
2537
+ const { __scopePopover: n, ...o } = e, r = ie(go, n), s = Te(n), i = J(t, r.triggerRef), a = /* @__PURE__ */ p.jsx(
2530
2538
  K.button,
2531
2539
  {
2532
2540
  type: "button",
2533
2541
  "aria-haspopup": "dialog",
2534
2542
  "aria-expanded": r.open,
2535
2543
  "aria-controls": r.contentId,
2536
- "data-state": xo(r.open),
2544
+ "data-state": bo(r.open),
2537
2545
  ...o,
2538
2546
  ref: i,
2539
2547
  onClick: A(e.onClick, r.onOpenToggle)
@@ -2542,29 +2550,29 @@ var po = "PopoverTrigger", mo = u.forwardRef(
2542
2550
  return r.hasCustomAnchor ? a : /* @__PURE__ */ p.jsx(ht, { asChild: !0, ...s, children: a });
2543
2551
  }
2544
2552
  );
2545
- mo.displayName = po;
2546
- var Pt = "PopoverPortal", [Ei, Oi] = lo(Pt, {
2553
+ ho.displayName = go;
2554
+ var Pt = "PopoverPortal", [ji, Fi] = fo(Pt, {
2547
2555
  forceMount: void 0
2548
- }), go = (e) => {
2549
- const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = se(Pt, t);
2550
- return /* @__PURE__ */ p.jsx(Ei, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(me, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
2556
+ }), vo = (e) => {
2557
+ const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = ie(Pt, t);
2558
+ return /* @__PURE__ */ p.jsx(ji, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(ge, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
2551
2559
  };
2552
- go.displayName = Pt;
2553
- var pe = "PopoverContent", ho = u.forwardRef(
2560
+ vo.displayName = Pt;
2561
+ var me = "PopoverContent", wo = u.forwardRef(
2554
2562
  (e, t) => {
2555
- const n = Oi(pe, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = se(pe, e.__scopePopover);
2556
- return /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: s.modal ? /* @__PURE__ */ p.jsx(Ii, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(Ti, { ...r, ref: t }) });
2563
+ const n = Fi(me, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = ie(me, e.__scopePopover);
2564
+ return /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: s.modal ? /* @__PURE__ */ p.jsx(Li, { ...r, ref: t }) : /* @__PURE__ */ p.jsx($i, { ...r, ref: t }) });
2557
2565
  }
2558
2566
  );
2559
- ho.displayName = pe;
2560
- var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2567
+ wo.displayName = me;
2568
+ var ki = Ut("PopoverContent.RemoveScroll"), Li = u.forwardRef(
2561
2569
  (e, t) => {
2562
- const n = se(pe, e.__scopePopover), o = u.useRef(null), r = J(t, o), s = u.useRef(!1);
2570
+ const n = ie(me, e.__scopePopover), o = u.useRef(null), r = J(t, o), s = u.useRef(!1);
2563
2571
  return u.useEffect(() => {
2564
2572
  const i = o.current;
2565
2573
  if (i) return Vt(i);
2566
- }, []), /* @__PURE__ */ p.jsx(Ut, { as: Di, allowPinchZoom: !0, children: /* @__PURE__ */ p.jsx(
2567
- vo,
2574
+ }, []), /* @__PURE__ */ p.jsx(zt, { as: ki, allowPinchZoom: !0, children: /* @__PURE__ */ p.jsx(
2575
+ xo,
2568
2576
  {
2569
2577
  ...e,
2570
2578
  ref: r,
@@ -2576,8 +2584,8 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2576
2584
  onPointerDownOutside: A(
2577
2585
  e.onPointerDownOutside,
2578
2586
  (i) => {
2579
- const a = i.detail.originalEvent, f = a.button === 0 && a.ctrlKey === !0, d = a.button === 2 || f;
2580
- s.current = d;
2587
+ const a = i.detail.originalEvent, d = a.button === 0 && a.ctrlKey === !0, f = a.button === 2 || d;
2588
+ s.current = f;
2581
2589
  },
2582
2590
  { checkForDefaultPrevented: !1 }
2583
2591
  ),
@@ -2589,11 +2597,11 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2589
2597
  }
2590
2598
  ) });
2591
2599
  }
2592
- ), Ti = u.forwardRef(
2600
+ ), $i = u.forwardRef(
2593
2601
  (e, t) => {
2594
- const n = se(pe, e.__scopePopover), o = u.useRef(!1), r = u.useRef(!1);
2602
+ const n = ie(me, e.__scopePopover), o = u.useRef(!1), r = u.useRef(!1);
2595
2603
  return /* @__PURE__ */ p.jsx(
2596
- vo,
2604
+ xo,
2597
2605
  {
2598
2606
  ...e,
2599
2607
  ref: t,
@@ -2610,7 +2618,7 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2610
2618
  }
2611
2619
  );
2612
2620
  }
2613
- ), vo = u.forwardRef(
2621
+ ), xo = u.forwardRef(
2614
2622
  (e, t) => {
2615
2623
  const {
2616
2624
  __scopePopover: n,
@@ -2619,11 +2627,11 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2619
2627
  onCloseAutoFocus: s,
2620
2628
  disableOutsidePointerEvents: i,
2621
2629
  onEscapeKeyDown: a,
2622
- onPointerDownOutside: f,
2623
- onFocusOutside: d,
2630
+ onPointerDownOutside: d,
2631
+ onFocusOutside: f,
2624
2632
  onInteractOutside: l,
2625
2633
  ...c
2626
- } = e, m = se(pe, n), g = Te(n);
2634
+ } = e, m = ie(me, n), g = Te(n);
2627
2635
  return Wt(), /* @__PURE__ */ p.jsx(
2628
2636
  Yt,
2629
2637
  {
@@ -2639,13 +2647,13 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2639
2647
  disableOutsidePointerEvents: i,
2640
2648
  onInteractOutside: l,
2641
2649
  onEscapeKeyDown: a,
2642
- onPointerDownOutside: f,
2643
- onFocusOutside: d,
2650
+ onPointerDownOutside: d,
2651
+ onFocusOutside: f,
2644
2652
  onDismiss: () => m.onOpenChange(!1),
2645
2653
  children: /* @__PURE__ */ p.jsx(
2646
2654
  yn,
2647
2655
  {
2648
- "data-state": xo(m.open),
2656
+ "data-state": bo(m.open),
2649
2657
  role: "dialog",
2650
2658
  id: m.contentId,
2651
2659
  ...g,
@@ -2666,9 +2674,9 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2666
2674
  }
2667
2675
  );
2668
2676
  }
2669
- ), wo = "PopoverClose", Ni = u.forwardRef(
2677
+ ), yo = "PopoverClose", Gi = u.forwardRef(
2670
2678
  (e, t) => {
2671
- const { __scopePopover: n, ...o } = e, r = se(wo, n);
2679
+ const { __scopePopover: n, ...o } = e, r = ie(yo, n);
2672
2680
  return /* @__PURE__ */ p.jsx(
2673
2681
  K.button,
2674
2682
  {
@@ -2680,42 +2688,42 @@ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2680
2688
  );
2681
2689
  }
2682
2690
  );
2683
- Ni.displayName = wo;
2684
- var ji = "PopoverArrow", Fi = u.forwardRef(
2691
+ Gi.displayName = yo;
2692
+ var Bi = "PopoverArrow", Ki = u.forwardRef(
2685
2693
  (e, t) => {
2686
2694
  const { __scopePopover: n, ...o } = e, r = Te(n);
2687
2695
  return /* @__PURE__ */ p.jsx(bn, { ...r, ...o, ref: t });
2688
2696
  }
2689
2697
  );
2690
- Fi.displayName = ji;
2691
- function xo(e) {
2698
+ Ki.displayName = Bi;
2699
+ function bo(e) {
2692
2700
  return e ? "open" : "closed";
2693
2701
  }
2694
- var ki = uo, Li = mo, $i = go, Gi = ho;
2695
- function zi({
2702
+ var Hi = po, Vi = ho, Wi = vo, zi = wo;
2703
+ function Ji({
2696
2704
  ...e
2697
2705
  }) {
2698
- return /* @__PURE__ */ p.jsx(ki, { "data-slot": "popover", ...e });
2706
+ return /* @__PURE__ */ p.jsx(Hi, { "data-slot": "popover", ...e });
2699
2707
  }
2700
- function Yi({
2708
+ function Qi({
2701
2709
  ...e
2702
2710
  }) {
2703
- return /* @__PURE__ */ p.jsx(Li, { "data-slot": "popover-trigger", ...e });
2711
+ return /* @__PURE__ */ p.jsx(Vi, { "data-slot": "popover-trigger", ...e });
2704
2712
  }
2705
- function Xi({
2713
+ function ea({
2706
2714
  className: e,
2707
2715
  align: t = "center",
2708
2716
  sideOffset: n = 4,
2709
2717
  ...o
2710
2718
  }) {
2711
2719
  const r = qt();
2712
- return /* @__PURE__ */ p.jsx($i, { container: r, children: /* @__PURE__ */ p.jsx(
2713
- Gi,
2720
+ return /* @__PURE__ */ p.jsx(Wi, { container: r, children: /* @__PURE__ */ p.jsx(
2721
+ zi,
2714
2722
  {
2715
2723
  "data-slot": "popover-content",
2716
2724
  align: t,
2717
2725
  sideOffset: n,
2718
- className: ge(
2726
+ className: re(
2719
2727
  "cn-popover-content z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
2720
2728
  e
2721
2729
  ),
@@ -2723,34 +2731,34 @@ function Xi({
2723
2731
  }
2724
2732
  ) });
2725
2733
  }
2726
- function qi({
2734
+ function ta({
2727
2735
  ...e
2728
2736
  }) {
2729
- return /* @__PURE__ */ p.jsx(yi, { "data-slot": "dropdown-menu", ...e });
2737
+ return /* @__PURE__ */ p.jsx(Ri, { "data-slot": "dropdown-menu", ...e });
2730
2738
  }
2731
- function Zi({
2739
+ function na({
2732
2740
  ...e
2733
2741
  }) {
2734
2742
  return /* @__PURE__ */ p.jsx(
2735
- bi,
2743
+ Mi,
2736
2744
  {
2737
2745
  "data-slot": "dropdown-menu-trigger",
2738
2746
  ...e
2739
2747
  }
2740
2748
  );
2741
2749
  }
2742
- function Ji({
2750
+ function oa({
2743
2751
  className: e,
2744
2752
  sideOffset: t = 4,
2745
2753
  ...n
2746
2754
  }) {
2747
2755
  const o = qt();
2748
- return /* @__PURE__ */ p.jsx(Ci, { container: o, children: /* @__PURE__ */ p.jsx(
2749
- Ri,
2756
+ return /* @__PURE__ */ p.jsx(Pi, { container: o, children: /* @__PURE__ */ p.jsx(
2757
+ Ai,
2750
2758
  {
2751
2759
  "data-slot": "dropdown-menu-content",
2752
2760
  sideOffset: t,
2753
- className: ge(
2761
+ className: re(
2754
2762
  "bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
2755
2763
  e
2756
2764
  ),
@@ -2758,19 +2766,19 @@ function Ji({
2758
2766
  }
2759
2767
  ) });
2760
2768
  }
2761
- function Qi({
2769
+ function ra({
2762
2770
  className: e,
2763
2771
  inset: t,
2764
2772
  variant: n = "default",
2765
2773
  ...o
2766
2774
  }) {
2767
2775
  return /* @__PURE__ */ p.jsx(
2768
- Pi,
2776
+ _i,
2769
2777
  {
2770
2778
  "data-slot": "dropdown-menu-item",
2771
2779
  "data-inset": t,
2772
2780
  "data-variant": n,
2773
- className: ge(
2781
+ className: re(
2774
2782
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2775
2783
  e
2776
2784
  ),
@@ -2778,17 +2786,17 @@ function Qi({
2778
2786
  }
2779
2787
  );
2780
2788
  }
2781
- function ea({
2789
+ function sa({
2782
2790
  className: e,
2783
2791
  inset: t,
2784
2792
  ...n
2785
2793
  }) {
2786
2794
  return /* @__PURE__ */ p.jsx(
2787
- Mi,
2795
+ Si,
2788
2796
  {
2789
2797
  "data-slot": "dropdown-menu-label",
2790
2798
  "data-inset": t,
2791
- className: ge(
2799
+ className: re(
2792
2800
  "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2793
2801
  e
2794
2802
  ),
@@ -2796,26 +2804,70 @@ function ea({
2796
2804
  }
2797
2805
  );
2798
2806
  }
2799
- function ta({
2807
+ function ia({
2800
2808
  className: e,
2801
2809
  ...t
2802
2810
  }) {
2803
2811
  return /* @__PURE__ */ p.jsx(
2804
- Ai,
2812
+ Ei,
2805
2813
  {
2806
2814
  "data-slot": "dropdown-menu-separator",
2807
- className: ge("bg-border -mx-1 my-1 h-px", e),
2815
+ className: re("bg-border -mx-1 my-1 h-px", e),
2808
2816
  ...t
2809
2817
  }
2810
2818
  );
2811
2819
  }
2812
- function na({
2820
+ function aa({
2821
+ ...e
2822
+ }) {
2823
+ return /* @__PURE__ */ p.jsx(Oi, { "data-slot": "dropdown-menu-sub", ...e });
2824
+ }
2825
+ function ca({
2826
+ className: e,
2827
+ inset: t,
2828
+ children: n,
2829
+ ...o
2830
+ }) {
2831
+ return /* @__PURE__ */ p.jsxs(
2832
+ Di,
2833
+ {
2834
+ "data-slot": "dropdown-menu-sub-trigger",
2835
+ "data-inset": t,
2836
+ className: re(
2837
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2838
+ e
2839
+ ),
2840
+ ...o,
2841
+ children: [
2842
+ n,
2843
+ /* @__PURE__ */ p.jsx(Eo, { className: "ml-auto size-4" })
2844
+ ]
2845
+ }
2846
+ );
2847
+ }
2848
+ function la({
2849
+ className: e,
2850
+ ...t
2851
+ }) {
2852
+ return /* @__PURE__ */ p.jsx(
2853
+ Ii,
2854
+ {
2855
+ "data-slot": "dropdown-menu-sub-content",
2856
+ className: re(
2857
+ "bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2858
+ e
2859
+ ),
2860
+ ...t
2861
+ }
2862
+ );
2863
+ }
2864
+ function ua({
2813
2865
  open: e,
2814
2866
  onOpenChange: t,
2815
2867
  title: n,
2816
2868
  actions: o
2817
2869
  }) {
2818
- return /* @__PURE__ */ p.jsxs(_o, { open: e, onOpenChange: t, title: n, children: [
2870
+ return /* @__PURE__ */ p.jsxs(Do, { open: e, onOpenChange: t, title: n, children: [
2819
2871
  /* @__PURE__ */ p.jsx(
2820
2872
  "div",
2821
2873
  {
@@ -2824,13 +2876,13 @@ function na({
2824
2876
  }
2825
2877
  ),
2826
2878
  /* @__PURE__ */ p.jsx("div", { className: "divide-border/50 border-border/50 divide-y border-b", children: o.map((r) => /* @__PURE__ */ p.jsxs(
2827
- So,
2879
+ Oo,
2828
2880
  {
2829
2881
  type: "button",
2830
2882
  variant: "ghost",
2831
2883
  disabled: r.disabled,
2832
2884
  "aria-pressed": r.selected,
2833
- className: ge(
2885
+ className: re(
2834
2886
  "h-13 w-full justify-start rounded-none px-4 text-base font-medium",
2835
2887
  r.variant === "destructive" && "text-destructive hover:bg-destructive/10 hover:text-destructive focus-visible:ring-destructive/20"
2836
2888
  ),
@@ -2840,7 +2892,7 @@ function na({
2840
2892
  children: [
2841
2893
  /* @__PURE__ */ p.jsx("span", { className: "flex-1 text-left", children: r.label }),
2842
2894
  r.selected ? /* @__PURE__ */ p.jsx(
2843
- Eo,
2895
+ Io,
2844
2896
  {
2845
2897
  "aria-hidden": "true",
2846
2898
  className: "text-muted-foreground size-4"
@@ -2854,42 +2906,45 @@ function na({
2854
2906
  }
2855
2907
  export {
2856
2908
  ht as A,
2857
- ls as B,
2858
- Hi as C,
2859
- qi as D,
2860
- Vi as E,
2861
- Bs as G,
2862
- Hs as I,
2863
- Ks as L,
2864
- na as M,
2865
- zi as P,
2909
+ Js as B,
2910
+ Xi as C,
2911
+ ta as D,
2912
+ qi as E,
2913
+ Rn as F,
2914
+ Vs as G,
2915
+ ds as H,
2916
+ zs as I,
2917
+ fs as J,
2918
+ Ws as L,
2919
+ ua as M,
2920
+ Ji as P,
2866
2921
  gt as R,
2867
- Ui as S,
2868
- Io as V,
2869
- Zi as a,
2870
- Ji as b,
2871
- Qi as c,
2872
- ta as d,
2873
- Yi as e,
2874
- Xi as f,
2875
- Ye as g,
2876
- yn as h,
2877
- Wi as i,
2878
- bn as j,
2879
- ea as k,
2880
- En as l,
2881
- ks as m,
2882
- Ls as n,
2883
- $s as o,
2922
+ Qs as S,
2923
+ jo as V,
2924
+ na as a,
2925
+ oa as b,
2926
+ ra as c,
2927
+ aa as d,
2928
+ ca as e,
2929
+ la as f,
2930
+ Qi as g,
2931
+ ea as h,
2932
+ ia as i,
2933
+ sa as j,
2934
+ Xe as k,
2935
+ yn as l,
2936
+ Zi as m,
2937
+ bn as n,
2938
+ En as o,
2884
2939
  Gs as p,
2885
- qs as q,
2886
- Zs as r,
2887
- Ys as s,
2888
- Vs as t,
2889
- Ws as u,
2890
- Us as v,
2891
- zs as w,
2892
- Xs as x,
2893
- Rn as y,
2894
- cs as z
2940
+ Bs as q,
2941
+ Ks as r,
2942
+ Hs as s,
2943
+ ei as t,
2944
+ ti as u,
2945
+ Zs as v,
2946
+ Us as w,
2947
+ Ys as x,
2948
+ Xs as y,
2949
+ qs as z
2895
2950
  };