@cfx-dev/ui-components 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,54 @@
1
- import { jsx as C, Fragment as Rt, jsxs as de } from "react/jsx-runtime";
1
+ import { jsx as C, Fragment as At, jsxs as de } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- import re, { useLayoutEffect as So, useEffect as bo } from "react";
4
- import { r as At, R as Co } from "../../index-2hJuj4UN.js";
5
- import { c as Tt, u as K, S as vt, g as xe, P as U, b as z, h as Eo, f as q, e as Po, d as Ro, a as Wt } from "../../index-CjWRnNpt.js";
6
- import { f as un, _ as ye, c as Ao } from "../../tslib.es6-CBKHJX9H.js";
7
- import { a as To, u as Oo } from "../../medium-JVtzoF2c.js";
8
- import { G as dn } from "../../iconBase-C6DV9qqL.js";
9
- import { Icon as No } from "../Icon/Icon.js";
10
- import { clsx as Ht } from "../../utils/clsx.js";
11
- import '../../assets/Select.css';var fn = function(e) {
12
- var t = e.sideCar, n = un(e, ["sideCar"]);
3
+ import j, { useLayoutEffect as Po, useEffect as Ro } from "react";
4
+ import { r as Tt, R as Ao } from "../../index-2hJuj4UN.js";
5
+ import { c as Ot, u as K, S as gt, g as Se, P as U, b as z, h as To, f as Z, e as Oo, d as No, a as Ht } from "../../index-CjWRnNpt.js";
6
+ import { f as fn, _ as xe, c as Io } from "../../tslib.es6-CBKHJX9H.js";
7
+ import { a as _o, u as Mo } from "../../medium-JVtzoF2c.js";
8
+ import { Icon as Lo } from "../Icon/Icon.js";
9
+ import { clsx as Vt } from "../../utils/clsx.js";
10
+ import '../../assets/Select.css';var pn = function(e) {
11
+ var t = e.sideCar, n = fn(e, ["sideCar"]);
13
12
  if (!t)
14
13
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
15
14
  var o = t.read();
16
15
  if (!o)
17
16
  throw new Error("Sidecar medium not found");
18
- return u.createElement(o, ye({}, n));
17
+ return u.createElement(o, xe({}, n));
19
18
  };
20
- fn.isSideCarExport = !0;
21
- function Io(e, t) {
22
- return e.useMedium(t), fn;
19
+ pn.isSideCarExport = !0;
20
+ function Do(e, t) {
21
+ return e.useMedium(t), pn;
23
22
  }
24
- function Vt(e, [t, n]) {
23
+ function $t(e, [t, n]) {
25
24
  return Math.min(n, Math.max(t, e));
26
25
  }
27
- function _o(e) {
28
- const t = e + "CollectionProvider", [n, o] = Tt(t), [r, i] = n(
26
+ function ko(e) {
27
+ const t = e + "CollectionProvider", [n, o] = Ot(t), [r, i] = n(
29
28
  t,
30
29
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
31
30
  ), c = (m) => {
32
- const { scope: v, children: d } = m, g = re.useRef(null), h = re.useRef(/* @__PURE__ */ new Map()).current;
31
+ const { scope: v, children: d } = m, g = j.useRef(null), h = j.useRef(/* @__PURE__ */ new Map()).current;
33
32
  return /* @__PURE__ */ C(r, { scope: v, itemMap: h, collectionRef: g, children: d });
34
33
  };
35
34
  c.displayName = t;
36
- const s = e + "CollectionSlot", a = re.forwardRef(
35
+ const s = e + "CollectionSlot", a = j.forwardRef(
37
36
  (m, v) => {
38
37
  const { scope: d, children: g } = m, h = i(s, d), y = K(v, h.collectionRef);
39
- return /* @__PURE__ */ C(vt, { ref: y, children: g });
38
+ return /* @__PURE__ */ C(gt, { ref: y, children: g });
40
39
  }
41
40
  );
42
41
  a.displayName = s;
43
- const l = e + "CollectionItemSlot", p = "data-radix-collection-item", f = re.forwardRef(
42
+ const l = e + "CollectionItemSlot", p = "data-radix-collection-item", f = j.forwardRef(
44
43
  (m, v) => {
45
- const { scope: d, children: g, ...h } = m, y = re.useRef(null), x = K(v, y), S = i(l, d);
46
- return re.useEffect(() => (S.itemMap.set(y, { ref: y, ...h }), () => void S.itemMap.delete(y))), /* @__PURE__ */ C(vt, { [p]: "", ref: x, children: g });
44
+ const { scope: d, children: g, ...h } = m, y = j.useRef(null), x = K(v, y), S = i(l, d);
45
+ return j.useEffect(() => (S.itemMap.set(y, { ref: y, ...h }), () => void S.itemMap.delete(y))), /* @__PURE__ */ C(gt, { [p]: "", ref: x, children: g });
47
46
  }
48
47
  );
49
48
  f.displayName = l;
50
49
  function w(m) {
51
50
  const v = i(e + "CollectionConsumer", m);
52
- return re.useCallback(() => {
51
+ return j.useCallback(() => {
53
52
  const g = v.collectionRef.current;
54
53
  if (!g) return [];
55
54
  const h = Array.from(g.querySelectorAll(`[${p}]`));
@@ -64,13 +63,13 @@ function _o(e) {
64
63
  o
65
64
  ];
66
65
  }
67
- var Mo = u.createContext(void 0);
68
- function Lo(e) {
69
- const t = u.useContext(Mo);
66
+ var Bo = u.createContext(void 0);
67
+ function Fo(e) {
68
+ const t = u.useContext(Bo);
70
69
  return e || t || "ltr";
71
70
  }
72
- function Do(e, t = globalThis == null ? void 0 : globalThis.document) {
73
- const n = xe(e);
71
+ function Wo(e, t = globalThis == null ? void 0 : globalThis.document) {
72
+ const n = Se(e);
74
73
  u.useEffect(() => {
75
74
  const o = (r) => {
76
75
  r.key === "Escape" && n(r);
@@ -78,11 +77,11 @@ function Do(e, t = globalThis == null ? void 0 : globalThis.document) {
78
77
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
79
78
  }, [n, t]);
80
79
  }
81
- var ko = "DismissableLayer", gt = "dismissableLayer.update", Bo = "dismissableLayer.pointerDownOutside", Fo = "dismissableLayer.focusOutside", $t, pn = u.createContext({
80
+ var Ho = "DismissableLayer", wt = "dismissableLayer.update", Vo = "dismissableLayer.pointerDownOutside", $o = "dismissableLayer.focusOutside", Ut, mn = u.createContext({
82
81
  layers: /* @__PURE__ */ new Set(),
83
82
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
84
83
  branches: /* @__PURE__ */ new Set()
85
- }), mn = u.forwardRef(
84
+ }), hn = u.forwardRef(
86
85
  (e, t) => {
87
86
  const {
88
87
  disableOutsidePointerEvents: n = !1,
@@ -92,25 +91,25 @@ var ko = "DismissableLayer", gt = "dismissableLayer.update", Bo = "dismissableLa
92
91
  onInteractOutside: c,
93
92
  onDismiss: s,
94
93
  ...a
95
- } = e, l = u.useContext(pn), [p, f] = u.useState(null), w = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), v = K(t, (E) => f(E)), d = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), h = d.indexOf(g), y = p ? d.indexOf(p) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= h, b = Vo((E) => {
94
+ } = e, l = u.useContext(mn), [p, f] = u.useState(null), w = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), v = K(t, (E) => f(E)), d = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), h = d.indexOf(g), y = p ? d.indexOf(p) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= h, b = Ko((E) => {
96
95
  const T = E.target, I = [...l.branches].some((_) => _.contains(T));
97
96
  !S || I || (r == null || r(E), c == null || c(E), E.defaultPrevented || s == null || s());
98
- }, w), P = $o((E) => {
97
+ }, w), P = Yo((E) => {
99
98
  const T = E.target;
100
99
  [...l.branches].some((_) => _.contains(T)) || (i == null || i(E), c == null || c(E), E.defaultPrevented || s == null || s());
101
100
  }, w);
102
- return Do((E) => {
101
+ return Wo((E) => {
103
102
  y === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
104
103
  }, w), u.useEffect(() => {
105
104
  if (p)
106
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && ($t = w.body.style.pointerEvents, w.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(p)), l.layers.add(p), Ut(), () => {
107
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (w.body.style.pointerEvents = $t);
105
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ut = w.body.style.pointerEvents, w.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(p)), l.layers.add(p), zt(), () => {
106
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (w.body.style.pointerEvents = Ut);
108
107
  };
109
108
  }, [p, w, n, l]), u.useEffect(() => () => {
110
- p && (l.layers.delete(p), l.layersWithOutsidePointerEventsDisabled.delete(p), Ut());
109
+ p && (l.layers.delete(p), l.layersWithOutsidePointerEventsDisabled.delete(p), zt());
111
110
  }, [p, l]), u.useEffect(() => {
112
111
  const E = () => m({});
113
- return document.addEventListener(gt, E), () => document.removeEventListener(gt, E);
112
+ return document.addEventListener(wt, E), () => document.removeEventListener(wt, E);
114
113
  }, []), /* @__PURE__ */ C(
115
114
  U.div,
116
115
  {
@@ -130,9 +129,9 @@ var ko = "DismissableLayer", gt = "dismissableLayer.update", Bo = "dismissableLa
130
129
  );
131
130
  }
132
131
  );
133
- mn.displayName = ko;
134
- var Wo = "DismissableLayerBranch", Ho = u.forwardRef((e, t) => {
135
- const n = u.useContext(pn), o = u.useRef(null), r = K(t, o);
132
+ hn.displayName = Ho;
133
+ var Uo = "DismissableLayerBranch", zo = u.forwardRef((e, t) => {
134
+ const n = u.useContext(mn), o = u.useRef(null), r = K(t, o);
136
135
  return u.useEffect(() => {
137
136
  const i = o.current;
138
137
  if (i)
@@ -141,16 +140,16 @@ var Wo = "DismissableLayerBranch", Ho = u.forwardRef((e, t) => {
141
140
  };
142
141
  }, [n.branches]), /* @__PURE__ */ C(U.div, { ...e, ref: r });
143
142
  });
144
- Ho.displayName = Wo;
145
- function Vo(e, t = globalThis == null ? void 0 : globalThis.document) {
146
- const n = xe(e), o = u.useRef(!1), r = u.useRef(() => {
143
+ zo.displayName = Uo;
144
+ function Ko(e, t = globalThis == null ? void 0 : globalThis.document) {
145
+ const n = Se(e), o = u.useRef(!1), r = u.useRef(() => {
147
146
  });
148
147
  return u.useEffect(() => {
149
148
  const i = (s) => {
150
149
  if (s.target && !o.current) {
151
150
  let a = function() {
152
- hn(
153
- Bo,
151
+ vn(
152
+ Vo,
154
153
  n,
155
154
  l,
156
155
  { discrete: !0 }
@@ -172,11 +171,11 @@ function Vo(e, t = globalThis == null ? void 0 : globalThis.document) {
172
171
  onPointerDownCapture: () => o.current = !0
173
172
  };
174
173
  }
175
- function $o(e, t = globalThis == null ? void 0 : globalThis.document) {
176
- const n = xe(e), o = u.useRef(!1);
174
+ function Yo(e, t = globalThis == null ? void 0 : globalThis.document) {
175
+ const n = Se(e), o = u.useRef(!1);
177
176
  return u.useEffect(() => {
178
177
  const r = (i) => {
179
- i.target && !o.current && hn(Fo, n, { originalEvent: i }, {
178
+ i.target && !o.current && vn($o, n, { originalEvent: i }, {
180
179
  discrete: !1
181
180
  });
182
181
  };
@@ -186,35 +185,35 @@ function $o(e, t = globalThis == null ? void 0 : globalThis.document) {
186
185
  onBlurCapture: () => o.current = !1
187
186
  };
188
187
  }
189
- function Ut() {
190
- const e = new CustomEvent(gt);
188
+ function zt() {
189
+ const e = new CustomEvent(wt);
191
190
  document.dispatchEvent(e);
192
191
  }
193
- function hn(e, t, n, { discrete: o }) {
192
+ function vn(e, t, n, { discrete: o }) {
194
193
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
195
- t && r.addEventListener(e, t, { once: !0 }), o ? Eo(r, i) : r.dispatchEvent(i);
194
+ t && r.addEventListener(e, t, { once: !0 }), o ? To(r, i) : r.dispatchEvent(i);
196
195
  }
197
- var lt = 0;
198
- function Uo() {
196
+ var ut = 0;
197
+ function jo() {
199
198
  u.useEffect(() => {
200
199
  const e = document.querySelectorAll("[data-radix-focus-guard]");
201
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? zt()), document.body.insertAdjacentElement("beforeend", e[1] ?? zt()), lt++, () => {
202
- lt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), lt--;
200
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Kt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Kt()), ut++, () => {
201
+ ut === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ut--;
203
202
  };
204
203
  }, []);
205
204
  }
206
- function zt() {
205
+ function Kt() {
207
206
  const e = document.createElement("span");
208
207
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
209
208
  }
210
- var ut = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", Kt = { bubbles: !1, cancelable: !0 }, zo = "FocusScope", vn = u.forwardRef((e, t) => {
209
+ var dt = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", Yt = { bubbles: !1, cancelable: !0 }, Xo = "FocusScope", gn = u.forwardRef((e, t) => {
211
210
  const {
212
211
  loop: n = !1,
213
212
  trapped: o = !1,
214
213
  onMountAutoFocus: r,
215
214
  onUnmountAutoFocus: i,
216
215
  ...c
217
- } = e, [s, a] = u.useState(null), l = xe(r), p = xe(i), f = u.useRef(null), w = K(t, (d) => a(d)), m = u.useRef({
216
+ } = e, [s, a] = u.useState(null), l = Se(r), p = Se(i), f = u.useRef(null), w = K(t, (d) => a(d)), m = u.useRef({
218
217
  paused: !1,
219
218
  pause() {
220
219
  this.paused = !0;
@@ -249,13 +248,13 @@ var ut = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", Kt
249
248
  Xt.add(m);
250
249
  const d = document.activeElement;
251
250
  if (!s.contains(d)) {
252
- const h = new CustomEvent(ut, Kt);
253
- s.addEventListener(ut, l), s.dispatchEvent(h), h.defaultPrevented || (Ko(qo(gn(s)), { select: !0 }), document.activeElement === d && ue(s));
251
+ const h = new CustomEvent(dt, Yt);
252
+ s.addEventListener(dt, l), s.dispatchEvent(h), h.defaultPrevented || (Go(er(wn(s)), { select: !0 }), document.activeElement === d && ue(s));
254
253
  }
255
254
  return () => {
256
- s.removeEventListener(ut, l), setTimeout(() => {
257
- const h = new CustomEvent(dt, Kt);
258
- s.addEventListener(dt, p), s.dispatchEvent(h), h.defaultPrevented || ue(d ?? document.body, { select: !0 }), s.removeEventListener(dt, p), Xt.remove(m);
255
+ s.removeEventListener(dt, l), setTimeout(() => {
256
+ const h = new CustomEvent(ft, Yt);
257
+ s.addEventListener(ft, p), s.dispatchEvent(h), h.defaultPrevented || ue(d ?? document.body, { select: !0 }), s.removeEventListener(ft, p), Xt.remove(m);
259
258
  }, 0);
260
259
  };
261
260
  }
@@ -265,7 +264,7 @@ var ut = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", Kt
265
264
  if (!n && !o || m.paused) return;
266
265
  const g = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, h = document.activeElement;
267
266
  if (g && h) {
268
- const y = d.currentTarget, [x, S] = Yo(y);
267
+ const y = d.currentTarget, [x, S] = qo(y);
269
268
  x && S ? !d.shiftKey && h === S ? (d.preventDefault(), n && ue(x, { select: !0 })) : d.shiftKey && h === x && (d.preventDefault(), n && ue(S, { select: !0 })) : h === y && d.preventDefault();
270
269
  }
271
270
  },
@@ -273,17 +272,17 @@ var ut = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", Kt
273
272
  );
274
273
  return /* @__PURE__ */ C(U.div, { tabIndex: -1, ...c, ref: w, onKeyDown: v });
275
274
  });
276
- vn.displayName = zo;
277
- function Ko(e, { select: t = !1 } = {}) {
275
+ gn.displayName = Xo;
276
+ function Go(e, { select: t = !1 } = {}) {
278
277
  const n = document.activeElement;
279
278
  for (const o of e)
280
279
  if (ue(o, { select: t }), document.activeElement !== n) return;
281
280
  }
282
- function Yo(e) {
283
- const t = gn(e), n = Yt(t, e), o = Yt(t.reverse(), e);
281
+ function qo(e) {
282
+ const t = wn(e), n = jt(t, e), o = jt(t.reverse(), e);
284
283
  return [n, o];
285
284
  }
286
- function gn(e) {
285
+ function wn(e) {
287
286
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
288
287
  acceptNode: (o) => {
289
288
  const r = o.tagName === "INPUT" && o.type === "hidden";
@@ -293,11 +292,11 @@ function gn(e) {
293
292
  for (; n.nextNode(); ) t.push(n.currentNode);
294
293
  return t;
295
294
  }
296
- function Yt(e, t) {
295
+ function jt(e, t) {
297
296
  for (const n of e)
298
- if (!Xo(n, { upTo: t })) return n;
297
+ if (!Zo(n, { upTo: t })) return n;
299
298
  }
300
- function Xo(e, { upTo: t }) {
299
+ function Zo(e, { upTo: t }) {
301
300
  if (getComputedStyle(e).visibility === "hidden") return !0;
302
301
  for (; e; ) {
303
302
  if (t !== void 0 && e === t) return !1;
@@ -306,58 +305,58 @@ function Xo(e, { upTo: t }) {
306
305
  }
307
306
  return !1;
308
307
  }
309
- function jo(e) {
308
+ function Qo(e) {
310
309
  return e instanceof HTMLInputElement && "select" in e;
311
310
  }
312
311
  function ue(e, { select: t = !1 } = {}) {
313
312
  if (e && e.focus) {
314
313
  const n = document.activeElement;
315
- e.focus({ preventScroll: !0 }), e !== n && jo(e) && t && e.select();
314
+ e.focus({ preventScroll: !0 }), e !== n && Qo(e) && t && e.select();
316
315
  }
317
316
  }
318
- var Xt = Go();
319
- function Go() {
317
+ var Xt = Jo();
318
+ function Jo() {
320
319
  let e = [];
321
320
  return {
322
321
  add(t) {
323
322
  const n = e[0];
324
- t !== n && (n == null || n.pause()), e = jt(e, t), e.unshift(t);
323
+ t !== n && (n == null || n.pause()), e = Gt(e, t), e.unshift(t);
325
324
  },
326
325
  remove(t) {
327
326
  var n;
328
- e = jt(e, t), (n = e[0]) == null || n.resume();
327
+ e = Gt(e, t), (n = e[0]) == null || n.resume();
329
328
  }
330
329
  };
331
330
  }
332
- function jt(e, t) {
331
+ function Gt(e, t) {
333
332
  const n = [...e], o = n.indexOf(t);
334
333
  return o !== -1 && n.splice(o, 1), n;
335
334
  }
336
- function qo(e) {
335
+ function er(e) {
337
336
  return e.filter((t) => t.tagName !== "A");
338
337
  }
339
- var Zo = u.useId || (() => {
340
- }), Qo = 0;
341
- function Ot(e) {
342
- const [t, n] = u.useState(Zo());
343
- return q(() => {
344
- n((o) => o ?? String(Qo++));
338
+ var tr = u.useId || (() => {
339
+ }), nr = 0;
340
+ function Nt(e) {
341
+ const [t, n] = u.useState(tr());
342
+ return Z(() => {
343
+ n((o) => o ?? String(nr++));
345
344
  }, [e]), t ? `radix-${t}` : "";
346
345
  }
347
- const Jo = ["top", "right", "bottom", "left"], ee = Math.min, j = Math.max, Qe = Math.round, ze = Math.floor, fe = (e) => ({
346
+ const or = ["top", "right", "bottom", "left"], te = Math.min, G = Math.max, Je = Math.round, Ke = Math.floor, pe = (e) => ({
348
347
  x: e,
349
348
  y: e
350
- }), er = {
349
+ }), rr = {
351
350
  left: "right",
352
351
  right: "left",
353
352
  bottom: "top",
354
353
  top: "bottom"
355
- }, tr = {
354
+ }, ir = {
356
355
  start: "end",
357
356
  end: "start"
358
357
  };
359
- function wt(e, t, n) {
360
- return j(e, ee(t, n));
358
+ function yt(e, t, n) {
359
+ return G(e, te(t, n));
361
360
  }
362
361
  function se(e, t) {
363
362
  return typeof e == "function" ? e(t) : e;
@@ -365,35 +364,35 @@ function se(e, t) {
365
364
  function ce(e) {
366
365
  return e.split("-")[0];
367
366
  }
368
- function Ne(e) {
367
+ function Ie(e) {
369
368
  return e.split("-")[1];
370
369
  }
371
- function Nt(e) {
370
+ function It(e) {
372
371
  return e === "x" ? "y" : "x";
373
372
  }
374
- function It(e) {
373
+ function _t(e) {
375
374
  return e === "y" ? "height" : "width";
376
375
  }
377
- function pe(e) {
376
+ function me(e) {
378
377
  return ["top", "bottom"].includes(ce(e)) ? "y" : "x";
379
378
  }
380
- function _t(e) {
381
- return Nt(pe(e));
379
+ function Mt(e) {
380
+ return It(me(e));
382
381
  }
383
- function nr(e, t, n) {
382
+ function sr(e, t, n) {
384
383
  n === void 0 && (n = !1);
385
- const o = Ne(e), r = _t(e), i = It(r);
384
+ const o = Ie(e), r = Mt(e), i = _t(r);
386
385
  let c = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
387
- return t.reference[i] > t.floating[i] && (c = Je(c)), [c, Je(c)];
386
+ return t.reference[i] > t.floating[i] && (c = et(c)), [c, et(c)];
388
387
  }
389
- function or(e) {
390
- const t = Je(e);
391
- return [yt(e), t, yt(t)];
388
+ function cr(e) {
389
+ const t = et(e);
390
+ return [xt(e), t, xt(t)];
392
391
  }
393
- function yt(e) {
394
- return e.replace(/start|end/g, (t) => tr[t]);
392
+ function xt(e) {
393
+ return e.replace(/start|end/g, (t) => ir[t]);
395
394
  }
396
- function rr(e, t, n) {
395
+ function ar(e, t, n) {
397
396
  const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
398
397
  switch (e) {
399
398
  case "top":
@@ -406,15 +405,15 @@ function rr(e, t, n) {
406
405
  return [];
407
406
  }
408
407
  }
409
- function ir(e, t, n, o) {
410
- const r = Ne(e);
411
- let i = rr(ce(e), n === "start", o);
412
- return r && (i = i.map((c) => c + "-" + r), t && (i = i.concat(i.map(yt)))), i;
408
+ function lr(e, t, n, o) {
409
+ const r = Ie(e);
410
+ let i = ar(ce(e), n === "start", o);
411
+ return r && (i = i.map((c) => c + "-" + r), t && (i = i.concat(i.map(xt)))), i;
413
412
  }
414
- function Je(e) {
415
- return e.replace(/left|right|bottom|top/g, (t) => er[t]);
413
+ function et(e) {
414
+ return e.replace(/left|right|bottom|top/g, (t) => rr[t]);
416
415
  }
417
- function sr(e) {
416
+ function ur(e) {
418
417
  return {
419
418
  top: 0,
420
419
  right: 0,
@@ -423,15 +422,15 @@ function sr(e) {
423
422
  ...e
424
423
  };
425
424
  }
426
- function wn(e) {
427
- return typeof e != "number" ? sr(e) : {
425
+ function yn(e) {
426
+ return typeof e != "number" ? ur(e) : {
428
427
  top: e,
429
428
  right: e,
430
429
  bottom: e,
431
430
  left: e
432
431
  };
433
432
  }
434
- function et(e) {
433
+ function tt(e) {
435
434
  const {
436
435
  x: t,
437
436
  y: n,
@@ -449,12 +448,12 @@ function et(e) {
449
448
  y: n
450
449
  };
451
450
  }
452
- function Gt(e, t, n) {
451
+ function qt(e, t, n) {
453
452
  let {
454
453
  reference: o,
455
454
  floating: r
456
455
  } = e;
457
- const i = pe(t), c = _t(t), s = It(c), a = ce(t), l = i === "y", p = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, w = o[s] / 2 - r[s] / 2;
456
+ const i = me(t), c = Mt(t), s = _t(c), a = ce(t), l = i === "y", p = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, w = o[s] / 2 - r[s] / 2;
458
457
  let m;
459
458
  switch (a) {
460
459
  case "top":
@@ -487,7 +486,7 @@ function Gt(e, t, n) {
487
486
  y: o.y
488
487
  };
489
488
  }
490
- switch (Ne(t)) {
489
+ switch (Ie(t)) {
491
490
  case "start":
492
491
  m[c] -= w * (n && l ? -1 : 1);
493
492
  break;
@@ -497,7 +496,7 @@ function Gt(e, t, n) {
497
496
  }
498
497
  return m;
499
498
  }
500
- const cr = async (e, t, n) => {
499
+ const dr = async (e, t, n) => {
501
500
  const {
502
501
  placement: o = "bottom",
503
502
  strategy: r = "absolute",
@@ -511,7 +510,7 @@ const cr = async (e, t, n) => {
511
510
  }), {
512
511
  x: p,
513
512
  y: f
514
- } = Gt(l, o, a), w = o, m = {}, v = 0;
513
+ } = qt(l, o, a), w = o, m = {}, v = 0;
515
514
  for (let d = 0; d < s.length; d++) {
516
515
  const {
517
516
  name: g,
@@ -548,7 +547,7 @@ const cr = async (e, t, n) => {
548
547
  }) : b.rects), {
549
548
  x: p,
550
549
  y: f
551
- } = Gt(l, w, a)), d = -1);
550
+ } = qt(l, w, a)), d = -1);
552
551
  }
553
552
  return {
554
553
  x: p,
@@ -558,7 +557,7 @@ const cr = async (e, t, n) => {
558
557
  middlewareData: m
559
558
  };
560
559
  };
561
- async function We(e, t) {
560
+ async function He(e, t) {
562
561
  var n;
563
562
  t === void 0 && (t = {});
564
563
  const {
@@ -574,7 +573,7 @@ async function We(e, t) {
574
573
  elementContext: f = "floating",
575
574
  altBoundary: w = !1,
576
575
  padding: m = 0
577
- } = se(t, e), v = wn(m), g = s[w ? f === "floating" ? "reference" : "floating" : f], h = et(await i.getClippingRect({
576
+ } = se(t, e), v = yn(m), g = s[w ? f === "floating" ? "reference" : "floating" : f], h = tt(await i.getClippingRect({
578
577
  element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
579
578
  boundary: l,
580
579
  rootBoundary: p,
@@ -590,7 +589,7 @@ async function We(e, t) {
590
589
  } : {
591
590
  x: 1,
592
591
  y: 1
593
- }, b = et(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
592
+ }, b = tt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
594
593
  elements: s,
595
594
  rect: y,
596
595
  offsetParent: x,
@@ -603,7 +602,7 @@ async function We(e, t) {
603
602
  right: (b.right - h.right + v.right) / S.x
604
603
  };
605
604
  }
606
- const ar = (e) => ({
605
+ const fr = (e) => ({
607
606
  name: "arrow",
608
607
  options: e,
609
608
  async fn(t) {
@@ -621,13 +620,13 @@ const ar = (e) => ({
621
620
  } = se(e, t) || {};
622
621
  if (l == null)
623
622
  return {};
624
- const f = wn(p), w = {
623
+ const f = yn(p), w = {
625
624
  x: n,
626
625
  y: o
627
- }, m = _t(r), v = It(m), d = await c.getDimensions(l), g = m === "y", h = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", S = i.reference[v] + i.reference[m] - w[m] - i.floating[v], b = w[m] - i.reference[m], P = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l));
626
+ }, m = Mt(r), v = _t(m), d = await c.getDimensions(l), g = m === "y", h = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", S = i.reference[v] + i.reference[m] - w[m] - i.floating[v], b = w[m] - i.reference[m], P = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l));
628
627
  let E = P ? P[x] : 0;
629
628
  (!E || !await (c.isElement == null ? void 0 : c.isElement(P))) && (E = s.floating[x] || i.floating[v]);
630
- const T = S / 2 - b / 2, I = E / 2 - d[v] / 2 - 1, _ = ee(f[h], I), V = ee(f[y], I), B = _, $ = E - d[v] - V, N = E / 2 - d[v] / 2 + T, O = wt(B, N, $), W = !a.arrow && Ne(r) != null && N !== O && i.reference[v] / 2 - (N < B ? _ : V) - d[v] / 2 < 0, A = W ? N < B ? N - B : N - $ : 0;
629
+ const T = S / 2 - b / 2, I = E / 2 - d[v] / 2 - 1, _ = te(f[h], I), V = te(f[y], I), B = _, $ = E - d[v] - V, N = E / 2 - d[v] / 2 + T, O = yt(B, N, $), W = !a.arrow && Ie(r) != null && N !== O && i.reference[v] / 2 - (N < B ? _ : V) - d[v] / 2 < 0, A = W ? N < B ? N - B : N - $ : 0;
631
630
  return {
632
631
  [m]: w[m] + A,
633
632
  data: {
@@ -640,7 +639,7 @@ const ar = (e) => ({
640
639
  reset: W
641
640
  };
642
641
  }
643
- }), lr = function(e) {
642
+ }), pr = function(e) {
644
643
  return e === void 0 && (e = {}), {
645
644
  name: "flip",
646
645
  options: e,
@@ -664,12 +663,12 @@ const ar = (e) => ({
664
663
  } = se(e, t);
665
664
  if ((n = i.arrow) != null && n.alignmentOffset)
666
665
  return {};
667
- const h = ce(r), y = pe(s), x = ce(s) === s, S = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), b = w || (x || !d ? [Je(s)] : or(s)), P = v !== "none";
668
- !w && P && b.push(...ir(s, d, v, S));
669
- const E = [s, ...b], T = await We(t, g), I = [];
666
+ const h = ce(r), y = me(s), x = ce(s) === s, S = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), b = w || (x || !d ? [et(s)] : cr(s)), P = v !== "none";
667
+ !w && P && b.push(...lr(s, d, v, S));
668
+ const E = [s, ...b], T = await He(t, g), I = [];
670
669
  let _ = ((o = i.flip) == null ? void 0 : o.overflows) || [];
671
670
  if (p && I.push(T[h]), f) {
672
- const N = nr(r, c, S);
671
+ const N = sr(r, c, S);
673
672
  I.push(T[N[0]], T[N[1]]);
674
673
  }
675
674
  if (_ = [..._, {
@@ -695,13 +694,13 @@ const ar = (e) => ({
695
694
  var $;
696
695
  const A = ($ = _.filter((D) => {
697
696
  if (P) {
698
- const k = pe(D.placement);
697
+ const k = me(D.placement);
699
698
  return k === y || // Create a bias to the `y` side axis due to horizontal
700
699
  // reading directions favoring greater width.
701
700
  k === "y";
702
701
  }
703
702
  return !0;
704
- }).map((D) => [D.placement, D.overflows.filter((k) => k > 0).reduce((k, ge) => k + ge, 0)]).sort((D, k) => D[1] - k[1])[0]) == null ? void 0 : $[0];
703
+ }).map((D) => [D.placement, D.overflows.filter((k) => k > 0).reduce((k, we) => k + we, 0)]).sort((D, k) => D[1] - k[1])[0]) == null ? void 0 : $[0];
705
704
  A && (W = A);
706
705
  break;
707
706
  }
@@ -720,7 +719,7 @@ const ar = (e) => ({
720
719
  }
721
720
  };
722
721
  };
723
- function qt(e, t) {
722
+ function Zt(e, t) {
724
723
  return {
725
724
  top: e.top - t.height,
726
725
  right: e.right - t.width,
@@ -728,10 +727,10 @@ function qt(e, t) {
728
727
  left: e.left - t.width
729
728
  };
730
729
  }
731
- function Zt(e) {
732
- return Jo.some((t) => e[t] >= 0);
730
+ function Qt(e) {
731
+ return or.some((t) => e[t] >= 0);
733
732
  }
734
- const ur = function(e) {
733
+ const mr = function(e) {
735
734
  return e === void 0 && (e = {}), {
736
735
  name: "hide",
737
736
  options: e,
@@ -744,26 +743,26 @@ const ur = function(e) {
744
743
  } = se(e, t);
745
744
  switch (o) {
746
745
  case "referenceHidden": {
747
- const i = await We(t, {
746
+ const i = await He(t, {
748
747
  ...r,
749
748
  elementContext: "reference"
750
- }), c = qt(i, n.reference);
749
+ }), c = Zt(i, n.reference);
751
750
  return {
752
751
  data: {
753
752
  referenceHiddenOffsets: c,
754
- referenceHidden: Zt(c)
753
+ referenceHidden: Qt(c)
755
754
  }
756
755
  };
757
756
  }
758
757
  case "escaped": {
759
- const i = await We(t, {
758
+ const i = await He(t, {
760
759
  ...r,
761
760
  altBoundary: !0
762
- }), c = qt(i, n.floating);
761
+ }), c = Zt(i, n.floating);
763
762
  return {
764
763
  data: {
765
764
  escapedOffsets: c,
766
- escaped: Zt(c)
765
+ escaped: Qt(c)
767
766
  }
768
767
  };
769
768
  }
@@ -773,12 +772,12 @@ const ur = function(e) {
773
772
  }
774
773
  };
775
774
  };
776
- async function dr(e, t) {
775
+ async function hr(e, t) {
777
776
  const {
778
777
  placement: n,
779
778
  platform: o,
780
779
  elements: r
781
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), c = ce(n), s = Ne(n), a = pe(n) === "y", l = ["left", "top"].includes(c) ? -1 : 1, p = i && a ? -1 : 1, f = se(t, e);
780
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), c = ce(n), s = Ie(n), a = me(n) === "y", l = ["left", "top"].includes(c) ? -1 : 1, p = i && a ? -1 : 1, f = se(t, e);
782
781
  let {
783
782
  mainAxis: w,
784
783
  crossAxis: m,
@@ -801,7 +800,7 @@ async function dr(e, t) {
801
800
  y: m * p
802
801
  };
803
802
  }
804
- const fr = function(e) {
803
+ const vr = function(e) {
805
804
  return e === void 0 && (e = 0), {
806
805
  name: "offset",
807
806
  options: e,
@@ -812,7 +811,7 @@ const fr = function(e) {
812
811
  y: i,
813
812
  placement: c,
814
813
  middlewareData: s
815
- } = t, a = await dr(t, e);
814
+ } = t, a = await hr(t, e);
816
815
  return c === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
817
816
  x: r + a.x,
818
817
  y: i + a.y,
@@ -823,7 +822,7 @@ const fr = function(e) {
823
822
  };
824
823
  }
825
824
  };
826
- }, pr = function(e) {
825
+ }, gr = function(e) {
827
826
  return e === void 0 && (e = {}), {
828
827
  name: "shift",
829
828
  options: e,
@@ -851,15 +850,15 @@ const fr = function(e) {
851
850
  } = se(e, t), l = {
852
851
  x: n,
853
852
  y: o
854
- }, p = await We(t, a), f = pe(ce(r)), w = Nt(f);
853
+ }, p = await He(t, a), f = me(ce(r)), w = It(f);
855
854
  let m = l[w], v = l[f];
856
855
  if (i) {
857
856
  const g = w === "y" ? "top" : "left", h = w === "y" ? "bottom" : "right", y = m + p[g], x = m - p[h];
858
- m = wt(y, m, x);
857
+ m = yt(y, m, x);
859
858
  }
860
859
  if (c) {
861
860
  const g = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", y = v + p[g], x = v - p[h];
862
- v = wt(y, v, x);
861
+ v = yt(y, v, x);
863
862
  }
864
863
  const d = s.fn({
865
864
  ...t,
@@ -875,7 +874,7 @@ const fr = function(e) {
875
874
  };
876
875
  }
877
876
  };
878
- }, mr = function(e) {
877
+ }, wr = function(e) {
879
878
  return e === void 0 && (e = {}), {
880
879
  options: e,
881
880
  fn(t) {
@@ -892,7 +891,7 @@ const fr = function(e) {
892
891
  } = se(e, t), p = {
893
892
  x: n,
894
893
  y: o
895
- }, f = pe(r), w = Nt(f);
894
+ }, f = me(r), w = It(f);
896
895
  let m = p[w], v = p[f];
897
896
  const d = se(s, t), g = typeof d == "number" ? {
898
897
  mainAxis: d,
@@ -917,7 +916,7 @@ const fr = function(e) {
917
916
  };
918
917
  }
919
918
  };
920
- }, hr = function(e) {
919
+ }, yr = function(e) {
921
920
  return e === void 0 && (e = {}), {
922
921
  name: "size",
923
922
  options: e,
@@ -931,17 +930,17 @@ const fr = function(e) {
931
930
  apply: c = () => {
932
931
  },
933
932
  ...s
934
- } = se(e, t), a = await We(t, s), l = ce(n), p = Ne(n), f = pe(n) === "y", {
933
+ } = se(e, t), a = await He(t, s), l = ce(n), p = Ie(n), f = me(n) === "y", {
935
934
  width: w,
936
935
  height: m
937
936
  } = o.floating;
938
937
  let v, d;
939
938
  l === "top" || l === "bottom" ? (v = l, d = p === (await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (d = l, v = p === "end" ? "top" : "bottom");
940
- const g = m - a.top - a.bottom, h = w - a.left - a.right, y = ee(m - a[v], g), x = ee(w - a[d], h), S = !t.middlewareData.shift;
939
+ const g = m - a.top - a.bottom, h = w - a.left - a.right, y = te(m - a[v], g), x = te(w - a[d], h), S = !t.middlewareData.shift;
941
940
  let b = y, P = x;
942
- if (f ? P = p || S ? ee(x, h) : h : b = p || S ? ee(y, g) : g, S && !p) {
943
- const T = j(a.left, 0), I = j(a.right, 0), _ = j(a.top, 0), V = j(a.bottom, 0);
944
- f ? P = w - 2 * (T !== 0 || I !== 0 ? T + I : j(a.left, a.right)) : b = m - 2 * (_ !== 0 || V !== 0 ? _ + V : j(a.top, a.bottom));
941
+ if (f ? P = p || S ? te(x, h) : h : b = p || S ? te(y, g) : g, S && !p) {
942
+ const T = G(a.left, 0), I = G(a.right, 0), _ = G(a.top, 0), V = G(a.bottom, 0);
943
+ f ? P = w - 2 * (T !== 0 || I !== 0 ? T + I : G(a.left, a.right)) : b = m - 2 * (_ !== 0 || V !== 0 ? _ + V : G(a.top, a.bottom));
945
944
  }
946
945
  await c({
947
946
  ...t,
@@ -957,42 +956,42 @@ const fr = function(e) {
957
956
  }
958
957
  };
959
958
  };
960
- function Ie(e) {
961
- return yn(e) ? (e.nodeName || "").toLowerCase() : "#document";
959
+ function _e(e) {
960
+ return xn(e) ? (e.nodeName || "").toLowerCase() : "#document";
962
961
  }
963
- function G(e) {
962
+ function q(e) {
964
963
  var t;
965
964
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
966
965
  }
967
966
  function ae(e) {
968
967
  var t;
969
- return (t = (yn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
970
- }
971
- function yn(e) {
972
- return e instanceof Node || e instanceof G(e).Node;
968
+ return (t = (xn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
973
969
  }
974
- function te(e) {
975
- return e instanceof Element || e instanceof G(e).Element;
970
+ function xn(e) {
971
+ return e instanceof Node || e instanceof q(e).Node;
976
972
  }
977
973
  function ne(e) {
978
- return e instanceof HTMLElement || e instanceof G(e).HTMLElement;
974
+ return e instanceof Element || e instanceof q(e).Element;
979
975
  }
980
- function Qt(e) {
981
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
976
+ function oe(e) {
977
+ return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
982
978
  }
983
- function Ve(e) {
979
+ function Jt(e) {
980
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
981
+ }
982
+ function $e(e) {
984
983
  const {
985
984
  overflow: t,
986
985
  overflowX: n,
987
986
  overflowY: o,
988
987
  display: r
989
- } = Q(e);
988
+ } = J(e);
990
989
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
991
990
  }
992
- function vr(e) {
993
- return ["table", "td", "th"].includes(Ie(e));
991
+ function xr(e) {
992
+ return ["table", "td", "th"].includes(_e(e));
994
993
  }
995
- function ot(e) {
994
+ function rt(e) {
996
995
  return [":popover-open", ":modal"].some((t) => {
997
996
  try {
998
997
  return e.matches(t);
@@ -1001,32 +1000,32 @@ function ot(e) {
1001
1000
  }
1002
1001
  });
1003
1002
  }
1004
- function Mt(e) {
1005
- const t = Lt(), n = Q(e);
1003
+ function Lt(e) {
1004
+ const t = Dt(), n = J(e);
1006
1005
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1007
1006
  }
1008
- function gr(e) {
1009
- let t = me(e);
1010
- for (; ne(t) && !Oe(t); ) {
1011
- if (ot(t))
1007
+ function Sr(e) {
1008
+ let t = he(e);
1009
+ for (; oe(t) && !Ne(t); ) {
1010
+ if (rt(t))
1012
1011
  return null;
1013
- if (Mt(t))
1012
+ if (Lt(t))
1014
1013
  return t;
1015
- t = me(t);
1014
+ t = he(t);
1016
1015
  }
1017
1016
  return null;
1018
1017
  }
1019
- function Lt() {
1018
+ function Dt() {
1020
1019
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1021
1020
  }
1022
- function Oe(e) {
1023
- return ["html", "body", "#document"].includes(Ie(e));
1021
+ function Ne(e) {
1022
+ return ["html", "body", "#document"].includes(_e(e));
1024
1023
  }
1025
- function Q(e) {
1026
- return G(e).getComputedStyle(e);
1024
+ function J(e) {
1025
+ return q(e).getComputedStyle(e);
1027
1026
  }
1028
- function rt(e) {
1029
- return te(e) ? {
1027
+ function it(e) {
1028
+ return ne(e) ? {
1030
1029
  scrollLeft: e.scrollLeft,
1031
1030
  scrollTop: e.scrollTop
1032
1031
  } : {
@@ -1034,107 +1033,107 @@ function rt(e) {
1034
1033
  scrollTop: e.scrollY
1035
1034
  };
1036
1035
  }
1037
- function me(e) {
1038
- if (Ie(e) === "html")
1036
+ function he(e) {
1037
+ if (_e(e) === "html")
1039
1038
  return e;
1040
1039
  const t = (
1041
1040
  // Step into the shadow DOM of the parent of a slotted node.
1042
1041
  e.assignedSlot || // DOM Element detected.
1043
1042
  e.parentNode || // ShadowRoot detected.
1044
- Qt(e) && e.host || // Fallback.
1043
+ Jt(e) && e.host || // Fallback.
1045
1044
  ae(e)
1046
1045
  );
1047
- return Qt(t) ? t.host : t;
1046
+ return Jt(t) ? t.host : t;
1048
1047
  }
1049
- function xn(e) {
1050
- const t = me(e);
1051
- return Oe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && Ve(t) ? t : xn(t);
1048
+ function Sn(e) {
1049
+ const t = he(e);
1050
+ return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && $e(t) ? t : Sn(t);
1052
1051
  }
1053
- function He(e, t, n) {
1052
+ function Ve(e, t, n) {
1054
1053
  var o;
1055
1054
  t === void 0 && (t = []), n === void 0 && (n = !0);
1056
- const r = xn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), c = G(r);
1057
- return i ? t.concat(c, c.visualViewport || [], Ve(r) ? r : [], c.frameElement && n ? He(c.frameElement) : []) : t.concat(r, He(r, [], n));
1055
+ const r = Sn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), c = q(r);
1056
+ return i ? t.concat(c, c.visualViewport || [], $e(r) ? r : [], c.frameElement && n ? Ve(c.frameElement) : []) : t.concat(r, Ve(r, [], n));
1058
1057
  }
1059
- function Sn(e) {
1060
- const t = Q(e);
1058
+ function bn(e) {
1059
+ const t = J(e);
1061
1060
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1062
- const r = ne(e), i = r ? e.offsetWidth : n, c = r ? e.offsetHeight : o, s = Qe(n) !== i || Qe(o) !== c;
1061
+ const r = oe(e), i = r ? e.offsetWidth : n, c = r ? e.offsetHeight : o, s = Je(n) !== i || Je(o) !== c;
1063
1062
  return s && (n = i, o = c), {
1064
1063
  width: n,
1065
1064
  height: o,
1066
1065
  $: s
1067
1066
  };
1068
1067
  }
1069
- function Dt(e) {
1070
- return te(e) ? e : e.contextElement;
1068
+ function kt(e) {
1069
+ return ne(e) ? e : e.contextElement;
1071
1070
  }
1072
- function Ae(e) {
1073
- const t = Dt(e);
1074
- if (!ne(t))
1075
- return fe(1);
1071
+ function Te(e) {
1072
+ const t = kt(e);
1073
+ if (!oe(t))
1074
+ return pe(1);
1076
1075
  const n = t.getBoundingClientRect(), {
1077
1076
  width: o,
1078
1077
  height: r,
1079
1078
  $: i
1080
- } = Sn(t);
1081
- let c = (i ? Qe(n.width) : n.width) / o, s = (i ? Qe(n.height) : n.height) / r;
1079
+ } = bn(t);
1080
+ let c = (i ? Je(n.width) : n.width) / o, s = (i ? Je(n.height) : n.height) / r;
1082
1081
  return (!c || !Number.isFinite(c)) && (c = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1083
1082
  x: c,
1084
1083
  y: s
1085
1084
  };
1086
1085
  }
1087
- const wr = /* @__PURE__ */ fe(0);
1088
- function bn(e) {
1089
- const t = G(e);
1090
- return !Lt() || !t.visualViewport ? wr : {
1086
+ const br = /* @__PURE__ */ pe(0);
1087
+ function Cn(e) {
1088
+ const t = q(e);
1089
+ return !Dt() || !t.visualViewport ? br : {
1091
1090
  x: t.visualViewport.offsetLeft,
1092
1091
  y: t.visualViewport.offsetTop
1093
1092
  };
1094
1093
  }
1095
- function yr(e, t, n) {
1096
- return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
1094
+ function Cr(e, t, n) {
1095
+ return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
1097
1096
  }
1098
- function Se(e, t, n, o) {
1097
+ function be(e, t, n, o) {
1099
1098
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1100
- const r = e.getBoundingClientRect(), i = Dt(e);
1101
- let c = fe(1);
1102
- t && (o ? te(o) && (c = Ae(o)) : c = Ae(e));
1103
- const s = yr(i, n, o) ? bn(i) : fe(0);
1099
+ const r = e.getBoundingClientRect(), i = kt(e);
1100
+ let c = pe(1);
1101
+ t && (o ? ne(o) && (c = Te(o)) : c = Te(e));
1102
+ const s = Cr(i, n, o) ? Cn(i) : pe(0);
1104
1103
  let a = (r.left + s.x) / c.x, l = (r.top + s.y) / c.y, p = r.width / c.x, f = r.height / c.y;
1105
1104
  if (i) {
1106
- const w = G(i), m = o && te(o) ? G(o) : o;
1105
+ const w = q(i), m = o && ne(o) ? q(o) : o;
1107
1106
  let v = w, d = v.frameElement;
1108
1107
  for (; d && o && m !== v; ) {
1109
- const g = Ae(d), h = d.getBoundingClientRect(), y = Q(d), x = h.left + (d.clientLeft + parseFloat(y.paddingLeft)) * g.x, S = h.top + (d.clientTop + parseFloat(y.paddingTop)) * g.y;
1110
- a *= g.x, l *= g.y, p *= g.x, f *= g.y, a += x, l += S, v = G(d), d = v.frameElement;
1108
+ const g = Te(d), h = d.getBoundingClientRect(), y = J(d), x = h.left + (d.clientLeft + parseFloat(y.paddingLeft)) * g.x, S = h.top + (d.clientTop + parseFloat(y.paddingTop)) * g.y;
1109
+ a *= g.x, l *= g.y, p *= g.x, f *= g.y, a += x, l += S, v = q(d), d = v.frameElement;
1111
1110
  }
1112
1111
  }
1113
- return et({
1112
+ return tt({
1114
1113
  width: p,
1115
1114
  height: f,
1116
1115
  x: a,
1117
1116
  y: l
1118
1117
  });
1119
1118
  }
1120
- function xr(e) {
1119
+ function Er(e) {
1121
1120
  let {
1122
1121
  elements: t,
1123
1122
  rect: n,
1124
1123
  offsetParent: o,
1125
1124
  strategy: r
1126
1125
  } = e;
1127
- const i = r === "fixed", c = ae(o), s = t ? ot(t.floating) : !1;
1126
+ const i = r === "fixed", c = ae(o), s = t ? rt(t.floating) : !1;
1128
1127
  if (o === c || s && i)
1129
1128
  return n;
1130
1129
  let a = {
1131
1130
  scrollLeft: 0,
1132
1131
  scrollTop: 0
1133
- }, l = fe(1);
1134
- const p = fe(0), f = ne(o);
1135
- if ((f || !f && !i) && ((Ie(o) !== "body" || Ve(c)) && (a = rt(o)), ne(o))) {
1136
- const w = Se(o);
1137
- l = Ae(o), p.x = w.x + o.clientLeft, p.y = w.y + o.clientTop;
1132
+ }, l = pe(1);
1133
+ const p = pe(0), f = oe(o);
1134
+ if ((f || !f && !i) && ((_e(o) !== "body" || $e(c)) && (a = it(o)), oe(o))) {
1135
+ const w = be(o);
1136
+ l = Te(o), p.x = w.x + o.clientLeft, p.y = w.y + o.clientTop;
1138
1137
  }
1139
1138
  return {
1140
1139
  width: n.width * l.x,
@@ -1143,29 +1142,29 @@ function xr(e) {
1143
1142
  y: n.y * l.y - a.scrollTop * l.y + p.y
1144
1143
  };
1145
1144
  }
1146
- function Sr(e) {
1145
+ function Pr(e) {
1147
1146
  return Array.from(e.getClientRects());
1148
1147
  }
1149
- function Cn(e) {
1150
- return Se(ae(e)).left + rt(e).scrollLeft;
1148
+ function En(e) {
1149
+ return be(ae(e)).left + it(e).scrollLeft;
1151
1150
  }
1152
- function br(e) {
1153
- const t = ae(e), n = rt(e), o = e.ownerDocument.body, r = j(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = j(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1154
- let c = -n.scrollLeft + Cn(e);
1151
+ function Rr(e) {
1152
+ const t = ae(e), n = it(e), o = e.ownerDocument.body, r = G(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = G(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1153
+ let c = -n.scrollLeft + En(e);
1155
1154
  const s = -n.scrollTop;
1156
- return Q(o).direction === "rtl" && (c += j(t.clientWidth, o.clientWidth) - r), {
1155
+ return J(o).direction === "rtl" && (c += G(t.clientWidth, o.clientWidth) - r), {
1157
1156
  width: r,
1158
1157
  height: i,
1159
1158
  x: c,
1160
1159
  y: s
1161
1160
  };
1162
1161
  }
1163
- function Cr(e, t) {
1164
- const n = G(e), o = ae(e), r = n.visualViewport;
1162
+ function Ar(e, t) {
1163
+ const n = q(e), o = ae(e), r = n.visualViewport;
1165
1164
  let i = o.clientWidth, c = o.clientHeight, s = 0, a = 0;
1166
1165
  if (r) {
1167
1166
  i = r.width, c = r.height;
1168
- const l = Lt();
1167
+ const l = Dt();
1169
1168
  (!l || l && t === "fixed") && (s = r.offsetLeft, a = r.offsetTop);
1170
1169
  }
1171
1170
  return {
@@ -1175,8 +1174,8 @@ function Cr(e, t) {
1175
1174
  y: a
1176
1175
  };
1177
1176
  }
1178
- function Er(e, t) {
1179
- const n = Se(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = ne(e) ? Ae(e) : fe(1), c = e.clientWidth * i.x, s = e.clientHeight * i.y, a = r * i.x, l = o * i.y;
1177
+ function Tr(e, t) {
1178
+ const n = be(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = oe(e) ? Te(e) : pe(1), c = e.clientWidth * i.x, s = e.clientHeight * i.y, a = r * i.x, l = o * i.y;
1180
1179
  return {
1181
1180
  width: c,
1182
1181
  height: s,
@@ -1184,52 +1183,52 @@ function Er(e, t) {
1184
1183
  y: l
1185
1184
  };
1186
1185
  }
1187
- function Jt(e, t, n) {
1186
+ function en(e, t, n) {
1188
1187
  let o;
1189
1188
  if (t === "viewport")
1190
- o = Cr(e, n);
1189
+ o = Ar(e, n);
1191
1190
  else if (t === "document")
1192
- o = br(ae(e));
1193
- else if (te(t))
1194
- o = Er(t, n);
1191
+ o = Rr(ae(e));
1192
+ else if (ne(t))
1193
+ o = Tr(t, n);
1195
1194
  else {
1196
- const r = bn(e);
1195
+ const r = Cn(e);
1197
1196
  o = {
1198
1197
  ...t,
1199
1198
  x: t.x - r.x,
1200
1199
  y: t.y - r.y
1201
1200
  };
1202
1201
  }
1203
- return et(o);
1202
+ return tt(o);
1204
1203
  }
1205
- function En(e, t) {
1206
- const n = me(e);
1207
- return n === t || !te(n) || Oe(n) ? !1 : Q(n).position === "fixed" || En(n, t);
1204
+ function Pn(e, t) {
1205
+ const n = he(e);
1206
+ return n === t || !ne(n) || Ne(n) ? !1 : J(n).position === "fixed" || Pn(n, t);
1208
1207
  }
1209
- function Pr(e, t) {
1208
+ function Or(e, t) {
1210
1209
  const n = t.get(e);
1211
1210
  if (n)
1212
1211
  return n;
1213
- let o = He(e, [], !1).filter((s) => te(s) && Ie(s) !== "body"), r = null;
1214
- const i = Q(e).position === "fixed";
1215
- let c = i ? me(e) : e;
1216
- for (; te(c) && !Oe(c); ) {
1217
- const s = Q(c), a = Mt(c);
1218
- !a && s.position === "fixed" && (r = null), (i ? !a && !r : !a && s.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ve(c) && !a && En(e, c)) ? o = o.filter((p) => p !== c) : r = s, c = me(c);
1212
+ let o = Ve(e, [], !1).filter((s) => ne(s) && _e(s) !== "body"), r = null;
1213
+ const i = J(e).position === "fixed";
1214
+ let c = i ? he(e) : e;
1215
+ for (; ne(c) && !Ne(c); ) {
1216
+ const s = J(c), a = Lt(c);
1217
+ !a && s.position === "fixed" && (r = null), (i ? !a && !r : !a && s.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || $e(c) && !a && Pn(e, c)) ? o = o.filter((p) => p !== c) : r = s, c = he(c);
1219
1218
  }
1220
1219
  return t.set(e, o), o;
1221
1220
  }
1222
- function Rr(e) {
1221
+ function Nr(e) {
1223
1222
  let {
1224
1223
  element: t,
1225
1224
  boundary: n,
1226
1225
  rootBoundary: o,
1227
1226
  strategy: r
1228
1227
  } = e;
1229
- const c = [...n === "clippingAncestors" ? ot(t) ? [] : Pr(t, this._c) : [].concat(n), o], s = c[0], a = c.reduce((l, p) => {
1230
- const f = Jt(t, p, r);
1231
- return l.top = j(f.top, l.top), l.right = ee(f.right, l.right), l.bottom = ee(f.bottom, l.bottom), l.left = j(f.left, l.left), l;
1232
- }, Jt(t, s, r));
1228
+ const c = [...n === "clippingAncestors" ? rt(t) ? [] : Or(t, this._c) : [].concat(n), o], s = c[0], a = c.reduce((l, p) => {
1229
+ const f = en(t, p, r);
1230
+ return l.top = G(f.top, l.top), l.right = te(f.right, l.right), l.bottom = te(f.bottom, l.bottom), l.left = G(f.left, l.left), l;
1231
+ }, en(t, s, r));
1233
1232
  return {
1234
1233
  width: a.right - a.left,
1235
1234
  height: a.bottom - a.top,
@@ -1237,28 +1236,28 @@ function Rr(e) {
1237
1236
  y: a.top
1238
1237
  };
1239
1238
  }
1240
- function Ar(e) {
1239
+ function Ir(e) {
1241
1240
  const {
1242
1241
  width: t,
1243
1242
  height: n
1244
- } = Sn(e);
1243
+ } = bn(e);
1245
1244
  return {
1246
1245
  width: t,
1247
1246
  height: n
1248
1247
  };
1249
1248
  }
1250
- function Tr(e, t, n) {
1251
- const o = ne(t), r = ae(t), i = n === "fixed", c = Se(e, !0, i, t);
1249
+ function _r(e, t, n) {
1250
+ const o = oe(t), r = ae(t), i = n === "fixed", c = be(e, !0, i, t);
1252
1251
  let s = {
1253
1252
  scrollLeft: 0,
1254
1253
  scrollTop: 0
1255
1254
  };
1256
- const a = fe(0);
1255
+ const a = pe(0);
1257
1256
  if (o || !o && !i)
1258
- if ((Ie(t) !== "body" || Ve(r)) && (s = rt(t)), o) {
1259
- const f = Se(t, !0, i, t);
1257
+ if ((_e(t) !== "body" || $e(r)) && (s = it(t)), o) {
1258
+ const f = be(t, !0, i, t);
1260
1259
  a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
1261
- } else r && (a.x = Cn(r));
1260
+ } else r && (a.x = En(r));
1262
1261
  const l = c.left + s.scrollLeft - a.x, p = c.top + s.scrollTop - a.y;
1263
1262
  return {
1264
1263
  x: l,
@@ -1267,34 +1266,34 @@ function Tr(e, t, n) {
1267
1266
  height: c.height
1268
1267
  };
1269
1268
  }
1270
- function ft(e) {
1271
- return Q(e).position === "static";
1269
+ function pt(e) {
1270
+ return J(e).position === "static";
1272
1271
  }
1273
- function en(e, t) {
1274
- return !ne(e) || Q(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1272
+ function tn(e, t) {
1273
+ return !oe(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1275
1274
  }
1276
- function Pn(e, t) {
1277
- const n = G(e);
1278
- if (ot(e))
1275
+ function Rn(e, t) {
1276
+ const n = q(e);
1277
+ if (rt(e))
1279
1278
  return n;
1280
- if (!ne(e)) {
1281
- let r = me(e);
1282
- for (; r && !Oe(r); ) {
1283
- if (te(r) && !ft(r))
1279
+ if (!oe(e)) {
1280
+ let r = he(e);
1281
+ for (; r && !Ne(r); ) {
1282
+ if (ne(r) && !pt(r))
1284
1283
  return r;
1285
- r = me(r);
1284
+ r = he(r);
1286
1285
  }
1287
1286
  return n;
1288
1287
  }
1289
- let o = en(e, t);
1290
- for (; o && vr(o) && ft(o); )
1291
- o = en(o, t);
1292
- return o && Oe(o) && ft(o) && !Mt(o) ? n : o || gr(e) || n;
1288
+ let o = tn(e, t);
1289
+ for (; o && xr(o) && pt(o); )
1290
+ o = tn(o, t);
1291
+ return o && Ne(o) && pt(o) && !Lt(o) ? n : o || Sr(e) || n;
1293
1292
  }
1294
- const Or = async function(e) {
1295
- const t = this.getOffsetParent || Pn, n = this.getDimensions, o = await n(e.floating);
1293
+ const Mr = async function(e) {
1294
+ const t = this.getOffsetParent || Rn, n = this.getDimensions, o = await n(e.floating);
1296
1295
  return {
1297
- reference: Tr(e.reference, await t(e.floating), e.strategy),
1296
+ reference: _r(e.reference, await t(e.floating), e.strategy),
1298
1297
  floating: {
1299
1298
  x: 0,
1300
1299
  y: 0,
@@ -1303,22 +1302,22 @@ const Or = async function(e) {
1303
1302
  }
1304
1303
  };
1305
1304
  };
1306
- function Nr(e) {
1307
- return Q(e).direction === "rtl";
1305
+ function Lr(e) {
1306
+ return J(e).direction === "rtl";
1308
1307
  }
1309
- const Ir = {
1310
- convertOffsetParentRelativeRectToViewportRelativeRect: xr,
1308
+ const Dr = {
1309
+ convertOffsetParentRelativeRectToViewportRelativeRect: Er,
1311
1310
  getDocumentElement: ae,
1312
- getClippingRect: Rr,
1313
- getOffsetParent: Pn,
1314
- getElementRects: Or,
1315
- getClientRects: Sr,
1316
- getDimensions: Ar,
1317
- getScale: Ae,
1318
- isElement: te,
1319
- isRTL: Nr
1311
+ getClippingRect: Nr,
1312
+ getOffsetParent: Rn,
1313
+ getElementRects: Mr,
1314
+ getClientRects: Pr,
1315
+ getDimensions: Ir,
1316
+ getScale: Te,
1317
+ isElement: ne,
1318
+ isRTL: Lr
1320
1319
  };
1321
- function _r(e, t) {
1320
+ function kr(e, t) {
1322
1321
  let n = null, o;
1323
1322
  const r = ae(e);
1324
1323
  function i() {
@@ -1335,9 +1334,9 @@ function _r(e, t) {
1335
1334
  } = e.getBoundingClientRect();
1336
1335
  if (s || t(), !f || !w)
1337
1336
  return;
1338
- const m = ze(p), v = ze(r.clientWidth - (l + f)), d = ze(r.clientHeight - (p + w)), g = ze(l), y = {
1337
+ const m = Ke(p), v = Ke(r.clientWidth - (l + f)), d = Ke(r.clientHeight - (p + w)), g = Ke(l), y = {
1339
1338
  rootMargin: -m + "px " + -v + "px " + -d + "px " + -g + "px",
1340
- threshold: j(0, ee(1, a)) || 1
1339
+ threshold: G(0, te(1, a)) || 1
1341
1340
  };
1342
1341
  let x = !0;
1343
1342
  function S(b) {
@@ -1364,7 +1363,7 @@ function _r(e, t) {
1364
1363
  }
1365
1364
  return c(!0), i;
1366
1365
  }
1367
- function Mr(e, t, n, o) {
1366
+ function Br(e, t, n, o) {
1368
1367
  o === void 0 && (o = {});
1369
1368
  const {
1370
1369
  ancestorScroll: r = !0,
@@ -1372,13 +1371,13 @@ function Mr(e, t, n, o) {
1372
1371
  elementResize: c = typeof ResizeObserver == "function",
1373
1372
  layoutShift: s = typeof IntersectionObserver == "function",
1374
1373
  animationFrame: a = !1
1375
- } = o, l = Dt(e), p = r || i ? [...l ? He(l) : [], ...He(t)] : [];
1374
+ } = o, l = kt(e), p = r || i ? [...l ? Ve(l) : [], ...Ve(t)] : [];
1376
1375
  p.forEach((h) => {
1377
1376
  r && h.addEventListener("scroll", n, {
1378
1377
  passive: !0
1379
1378
  }), i && h.addEventListener("resize", n);
1380
1379
  });
1381
- const f = l && s ? _r(l, n) : null;
1380
+ const f = l && s ? kr(l, n) : null;
1382
1381
  let w = -1, m = null;
1383
1382
  c && (m = new ResizeObserver((h) => {
1384
1383
  let [y] = h;
@@ -1387,10 +1386,10 @@ function Mr(e, t, n, o) {
1387
1386
  (x = m) == null || x.observe(t);
1388
1387
  })), n();
1389
1388
  }), l && !a && m.observe(l), m.observe(t));
1390
- let v, d = a ? Se(e) : null;
1389
+ let v, d = a ? be(e) : null;
1391
1390
  a && g();
1392
1391
  function g() {
1393
- const h = Se(e);
1392
+ const h = be(e);
1394
1393
  d && (h.x !== d.x || h.y !== d.y || h.width !== d.width || h.height !== d.height) && n(), d = h, v = requestAnimationFrame(g);
1395
1394
  }
1396
1395
  return n(), () => {
@@ -1400,21 +1399,21 @@ function Mr(e, t, n, o) {
1400
1399
  }), f == null || f(), (h = m) == null || h.disconnect(), m = null, a && cancelAnimationFrame(v);
1401
1400
  };
1402
1401
  }
1403
- const Lr = fr, Dr = pr, kr = lr, Br = hr, Fr = ur, tn = ar, Wr = mr, Hr = (e, t, n) => {
1402
+ const Fr = vr, Wr = gr, Hr = pr, Vr = yr, $r = mr, nn = fr, Ur = wr, zr = (e, t, n) => {
1404
1403
  const o = /* @__PURE__ */ new Map(), r = {
1405
- platform: Ir,
1404
+ platform: Dr,
1406
1405
  ...n
1407
1406
  }, i = {
1408
1407
  ...r.platform,
1409
1408
  _c: o
1410
1409
  };
1411
- return cr(e, t, {
1410
+ return dr(e, t, {
1412
1411
  ...r,
1413
1412
  platform: i
1414
1413
  });
1415
1414
  };
1416
- var Ge = typeof document < "u" ? So : bo;
1417
- function tt(e, t) {
1415
+ var qe = typeof document < "u" ? Po : Ro;
1416
+ function nt(e, t) {
1418
1417
  if (e === t)
1419
1418
  return !0;
1420
1419
  if (typeof e != typeof t)
@@ -1426,7 +1425,7 @@ function tt(e, t) {
1426
1425
  if (Array.isArray(e)) {
1427
1426
  if (n = e.length, n !== t.length) return !1;
1428
1427
  for (o = n; o-- !== 0; )
1429
- if (!tt(e[o], t[o]))
1428
+ if (!nt(e[o], t[o]))
1430
1429
  return !1;
1431
1430
  return !0;
1432
1431
  }
@@ -1437,27 +1436,27 @@ function tt(e, t) {
1437
1436
  return !1;
1438
1437
  for (o = n; o-- !== 0; ) {
1439
1438
  const i = r[o];
1440
- if (!(i === "_owner" && e.$$typeof) && !tt(e[i], t[i]))
1439
+ if (!(i === "_owner" && e.$$typeof) && !nt(e[i], t[i]))
1441
1440
  return !1;
1442
1441
  }
1443
1442
  return !0;
1444
1443
  }
1445
1444
  return e !== e && t !== t;
1446
1445
  }
1447
- function Rn(e) {
1446
+ function An(e) {
1448
1447
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1449
1448
  }
1450
- function nn(e, t) {
1451
- const n = Rn(e);
1449
+ function on(e, t) {
1450
+ const n = An(e);
1452
1451
  return Math.round(t * n) / n;
1453
1452
  }
1454
- function on(e) {
1453
+ function rn(e) {
1455
1454
  const t = u.useRef(e);
1456
- return Ge(() => {
1455
+ return qe(() => {
1457
1456
  t.current = e;
1458
1457
  }), t;
1459
1458
  }
1460
- function Vr(e) {
1459
+ function Kr(e) {
1461
1460
  e === void 0 && (e = {});
1462
1461
  const {
1463
1462
  placement: t = "bottom",
@@ -1479,12 +1478,12 @@ function Vr(e) {
1479
1478
  middlewareData: {},
1480
1479
  isPositioned: !1
1481
1480
  }), [w, m] = u.useState(o);
1482
- tt(w, o) || m(o);
1481
+ nt(w, o) || m(o);
1483
1482
  const [v, d] = u.useState(null), [g, h] = u.useState(null), y = u.useCallback((A) => {
1484
1483
  A !== P.current && (P.current = A, d(A));
1485
1484
  }, []), x = u.useCallback((A) => {
1486
1485
  A !== E.current && (E.current = A, h(A));
1487
- }, []), S = i || v, b = c || g, P = u.useRef(null), E = u.useRef(null), T = u.useRef(p), I = a != null, _ = on(a), V = on(r), B = u.useCallback(() => {
1486
+ }, []), S = i || v, b = c || g, P = u.useRef(null), E = u.useRef(null), T = u.useRef(p), I = a != null, _ = rn(a), V = rn(r), B = u.useCallback(() => {
1488
1487
  if (!P.current || !E.current)
1489
1488
  return;
1490
1489
  const A = {
@@ -1492,26 +1491,26 @@ function Vr(e) {
1492
1491
  strategy: n,
1493
1492
  middleware: w
1494
1493
  };
1495
- V.current && (A.platform = V.current), Hr(P.current, E.current, A).then((D) => {
1494
+ V.current && (A.platform = V.current), zr(P.current, E.current, A).then((D) => {
1496
1495
  const k = {
1497
1496
  ...D,
1498
1497
  isPositioned: !0
1499
1498
  };
1500
- $.current && !tt(T.current, k) && (T.current = k, At.flushSync(() => {
1499
+ $.current && !nt(T.current, k) && (T.current = k, Tt.flushSync(() => {
1501
1500
  f(k);
1502
1501
  }));
1503
1502
  });
1504
1503
  }, [w, t, n, V]);
1505
- Ge(() => {
1504
+ qe(() => {
1506
1505
  l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, f((A) => ({
1507
1506
  ...A,
1508
1507
  isPositioned: !1
1509
1508
  })));
1510
1509
  }, [l]);
1511
1510
  const $ = u.useRef(!1);
1512
- Ge(() => ($.current = !0, () => {
1511
+ qe(() => ($.current = !0, () => {
1513
1512
  $.current = !1;
1514
- }), []), Ge(() => {
1513
+ }), []), qe(() => {
1515
1514
  if (S && (P.current = S), b && (E.current = b), S && b) {
1516
1515
  if (_.current)
1517
1516
  return _.current(S, b, B);
@@ -1534,11 +1533,11 @@ function Vr(e) {
1534
1533
  };
1535
1534
  if (!O.floating)
1536
1535
  return A;
1537
- const D = nn(O.floating, p.x), k = nn(O.floating, p.y);
1536
+ const D = on(O.floating, p.x), k = on(O.floating, p.y);
1538
1537
  return s ? {
1539
1538
  ...A,
1540
1539
  transform: "translate(" + D + "px, " + k + "px)",
1541
- ...Rn(O.floating) >= 1.5 && {
1540
+ ...An(O.floating) >= 1.5 && {
1542
1541
  willChange: "transform"
1543
1542
  }
1544
1543
  } : {
@@ -1555,7 +1554,7 @@ function Vr(e) {
1555
1554
  floatingStyles: W
1556
1555
  }), [p, B, N, O, W]);
1557
1556
  }
1558
- const $r = (e) => {
1557
+ const Yr = (e) => {
1559
1558
  function t(n) {
1560
1559
  return {}.hasOwnProperty.call(n, "current");
1561
1560
  }
@@ -1567,38 +1566,38 @@ const $r = (e) => {
1567
1566
  element: o,
1568
1567
  padding: r
1569
1568
  } = typeof e == "function" ? e(n) : e;
1570
- return o && t(o) ? o.current != null ? tn({
1569
+ return o && t(o) ? o.current != null ? nn({
1571
1570
  element: o.current,
1572
1571
  padding: r
1573
- }).fn(n) : {} : o ? tn({
1572
+ }).fn(n) : {} : o ? nn({
1574
1573
  element: o,
1575
1574
  padding: r
1576
1575
  }).fn(n) : {};
1577
1576
  }
1578
1577
  };
1579
- }, Ur = (e, t) => ({
1580
- ...Lr(e),
1581
- options: [e, t]
1582
- }), zr = (e, t) => ({
1583
- ...Dr(e),
1578
+ }, jr = (e, t) => ({
1579
+ ...Fr(e),
1584
1580
  options: [e, t]
1585
- }), Kr = (e, t) => ({
1581
+ }), Xr = (e, t) => ({
1586
1582
  ...Wr(e),
1587
1583
  options: [e, t]
1588
- }), Yr = (e, t) => ({
1589
- ...kr(e),
1584
+ }), Gr = (e, t) => ({
1585
+ ...Ur(e),
1590
1586
  options: [e, t]
1591
- }), Xr = (e, t) => ({
1592
- ...Br(e),
1587
+ }), qr = (e, t) => ({
1588
+ ...Hr(e),
1593
1589
  options: [e, t]
1594
- }), jr = (e, t) => ({
1595
- ...Fr(e),
1590
+ }), Zr = (e, t) => ({
1591
+ ...Vr(e),
1596
1592
  options: [e, t]
1597
- }), Gr = (e, t) => ({
1593
+ }), Qr = (e, t) => ({
1598
1594
  ...$r(e),
1599
1595
  options: [e, t]
1596
+ }), Jr = (e, t) => ({
1597
+ ...Yr(e),
1598
+ options: [e, t]
1600
1599
  });
1601
- var qr = "Arrow", An = u.forwardRef((e, t) => {
1600
+ var ei = "Arrow", Tn = u.forwardRef((e, t) => {
1602
1601
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
1603
1602
  return /* @__PURE__ */ C(
1604
1603
  U.svg,
@@ -1613,22 +1612,22 @@ var qr = "Arrow", An = u.forwardRef((e, t) => {
1613
1612
  }
1614
1613
  );
1615
1614
  });
1616
- An.displayName = qr;
1617
- var Zr = An, kt = "Popper", [Tn, On] = Tt(kt), [Qr, Nn] = Tn(kt), In = (e) => {
1615
+ Tn.displayName = ei;
1616
+ var ti = Tn, Bt = "Popper", [On, Nn] = Ot(Bt), [ni, In] = On(Bt), _n = (e) => {
1618
1617
  const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
1619
- return /* @__PURE__ */ C(Qr, { scope: t, anchor: o, onAnchorChange: r, children: n });
1618
+ return /* @__PURE__ */ C(ni, { scope: t, anchor: o, onAnchorChange: r, children: n });
1620
1619
  };
1621
- In.displayName = kt;
1622
- var _n = "PopperAnchor", Mn = u.forwardRef(
1620
+ _n.displayName = Bt;
1621
+ var Mn = "PopperAnchor", Ln = u.forwardRef(
1623
1622
  (e, t) => {
1624
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = Nn(_n, n), c = u.useRef(null), s = K(t, c);
1623
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = In(Mn, n), c = u.useRef(null), s = K(t, c);
1625
1624
  return u.useEffect(() => {
1626
1625
  i.onAnchorChange((o == null ? void 0 : o.current) || c.current);
1627
1626
  }), o ? null : /* @__PURE__ */ C(U.div, { ...r, ref: s });
1628
1627
  }
1629
1628
  );
1630
- Mn.displayName = _n;
1631
- var Bt = "PopperContent", [Jr, ei] = Tn(Bt), Ln = u.forwardRef(
1629
+ Ln.displayName = Mn;
1630
+ var Ft = "PopperContent", [oi, ri] = On(Ft), Dn = u.forwardRef(
1632
1631
  (e, t) => {
1633
1632
  var R, H, Y, F, M, L;
1634
1633
  const {
@@ -1646,48 +1645,48 @@ var Bt = "PopperContent", [Jr, ei] = Tn(Bt), Ln = u.forwardRef(
1646
1645
  updatePositionStrategy: m = "optimized",
1647
1646
  onPlaced: v,
1648
1647
  ...d
1649
- } = e, g = Nn(Bt, n), [h, y] = u.useState(null), x = K(t, (X) => y(X)), [S, b] = u.useState(null), P = Po(S), E = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), _ = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, V = Array.isArray(l) ? l : [l], B = V.length > 0, $ = {
1648
+ } = e, g = In(Ft, n), [h, y] = u.useState(null), x = K(t, (X) => y(X)), [S, b] = u.useState(null), P = Oo(S), E = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), _ = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, V = Array.isArray(l) ? l : [l], B = V.length > 0, $ = {
1650
1649
  padding: _,
1651
- boundary: V.filter(ni),
1650
+ boundary: V.filter(si),
1652
1651
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1653
1652
  altBoundary: B
1654
- }, { refs: N, floatingStyles: O, placement: W, isPositioned: A, middlewareData: D } = Vr({
1653
+ }, { refs: N, floatingStyles: O, placement: W, isPositioned: A, middlewareData: D } = Kr({
1655
1654
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1656
1655
  strategy: "fixed",
1657
1656
  placement: I,
1658
- whileElementsMounted: (...X) => Mr(...X, {
1657
+ whileElementsMounted: (...X) => Br(...X, {
1659
1658
  animationFrame: m === "always"
1660
1659
  }),
1661
1660
  elements: {
1662
1661
  reference: g.anchor
1663
1662
  },
1664
1663
  middleware: [
1665
- Ur({ mainAxis: r + T, alignmentAxis: c }),
1666
- a && zr({
1664
+ jr({ mainAxis: r + T, alignmentAxis: c }),
1665
+ a && Xr({
1667
1666
  mainAxis: !0,
1668
1667
  crossAxis: !1,
1669
- limiter: f === "partial" ? Kr() : void 0,
1668
+ limiter: f === "partial" ? Gr() : void 0,
1670
1669
  ...$
1671
1670
  }),
1672
- a && Yr({ ...$ }),
1673
- Xr({
1671
+ a && qr({ ...$ }),
1672
+ Zr({
1674
1673
  ...$,
1675
- apply: ({ elements: X, rects: J, availableWidth: De, availableHeight: ke }) => {
1676
- const { width: Be, height: xo } = J.reference, Ue = X.floating.style;
1677
- Ue.setProperty("--radix-popper-available-width", `${De}px`), Ue.setProperty("--radix-popper-available-height", `${ke}px`), Ue.setProperty("--radix-popper-anchor-width", `${Be}px`), Ue.setProperty("--radix-popper-anchor-height", `${xo}px`);
1674
+ apply: ({ elements: X, rects: ee, availableWidth: ke, availableHeight: Be }) => {
1675
+ const { width: Fe, height: Eo } = ee.reference, ze = X.floating.style;
1676
+ ze.setProperty("--radix-popper-available-width", `${ke}px`), ze.setProperty("--radix-popper-available-height", `${Be}px`), ze.setProperty("--radix-popper-anchor-width", `${Fe}px`), ze.setProperty("--radix-popper-anchor-height", `${Eo}px`);
1678
1677
  }
1679
1678
  }),
1680
- S && Gr({ element: S, padding: s }),
1681
- oi({ arrowWidth: E, arrowHeight: T }),
1682
- w && jr({ strategy: "referenceHidden", ...$ })
1679
+ S && Jr({ element: S, padding: s }),
1680
+ ci({ arrowWidth: E, arrowHeight: T }),
1681
+ w && Qr({ strategy: "referenceHidden", ...$ })
1683
1682
  ]
1684
- }), [k, ge] = Bn(W), oe = xe(v);
1685
- q(() => {
1686
- A && (oe == null || oe());
1687
- }, [A, oe]);
1688
- const Me = (R = D.arrow) == null ? void 0 : R.x, Le = (H = D.arrow) == null ? void 0 : H.y, le = ((Y = D.arrow) == null ? void 0 : Y.centerOffset) !== 0, [Ce, we] = u.useState();
1689
- return q(() => {
1690
- h && we(window.getComputedStyle(h).zIndex);
1683
+ }), [k, we] = Fn(W), re = Se(v);
1684
+ Z(() => {
1685
+ A && (re == null || re());
1686
+ }, [A, re]);
1687
+ const Le = (R = D.arrow) == null ? void 0 : R.x, De = (H = D.arrow) == null ? void 0 : H.y, le = ((Y = D.arrow) == null ? void 0 : Y.centerOffset) !== 0, [Ee, ye] = u.useState();
1688
+ return Z(() => {
1689
+ h && ye(window.getComputedStyle(h).zIndex);
1691
1690
  }, [h]), /* @__PURE__ */ C(
1692
1691
  "div",
1693
1692
  {
@@ -1698,7 +1697,7 @@ var Bt = "PopperContent", [Jr, ei] = Tn(Bt), Ln = u.forwardRef(
1698
1697
  transform: A ? O.transform : "translate(0, -200%)",
1699
1698
  // keep off the page when measuring
1700
1699
  minWidth: "max-content",
1701
- zIndex: Ce,
1700
+ zIndex: Ee,
1702
1701
  "--radix-popper-transform-origin": [
1703
1702
  (F = D.transformOrigin) == null ? void 0 : F.x,
1704
1703
  (M = D.transformOrigin) == null ? void 0 : M.y
@@ -1713,19 +1712,19 @@ var Bt = "PopperContent", [Jr, ei] = Tn(Bt), Ln = u.forwardRef(
1713
1712
  },
1714
1713
  dir: e.dir,
1715
1714
  children: /* @__PURE__ */ C(
1716
- Jr,
1715
+ oi,
1717
1716
  {
1718
1717
  scope: n,
1719
1718
  placedSide: k,
1720
1719
  onArrowChange: b,
1721
- arrowX: Me,
1722
- arrowY: Le,
1720
+ arrowX: Le,
1721
+ arrowY: De,
1723
1722
  shouldHideArrow: le,
1724
1723
  children: /* @__PURE__ */ C(
1725
1724
  U.div,
1726
1725
  {
1727
1726
  "data-side": k,
1728
- "data-align": ge,
1727
+ "data-align": we,
1729
1728
  ...d,
1730
1729
  ref: x,
1731
1730
  style: {
@@ -1742,14 +1741,14 @@ var Bt = "PopperContent", [Jr, ei] = Tn(Bt), Ln = u.forwardRef(
1742
1741
  );
1743
1742
  }
1744
1743
  );
1745
- Ln.displayName = Bt;
1746
- var Dn = "PopperArrow", ti = {
1744
+ Dn.displayName = Ft;
1745
+ var kn = "PopperArrow", ii = {
1747
1746
  top: "bottom",
1748
1747
  right: "left",
1749
1748
  bottom: "top",
1750
1749
  left: "right"
1751
- }, kn = u.forwardRef(function(t, n) {
1752
- const { __scopePopper: o, ...r } = t, i = ei(Dn, o), c = ti[i.placedSide];
1750
+ }, Bn = u.forwardRef(function(t, n) {
1751
+ const { __scopePopper: o, ...r } = t, i = ri(kn, o), c = ii[i.placedSide];
1753
1752
  return (
1754
1753
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1755
1754
  // doesn't report size as we'd expect on SVG elements.
@@ -1778,7 +1777,7 @@ var Dn = "PopperArrow", ti = {
1778
1777
  visibility: i.shouldHideArrow ? "hidden" : void 0
1779
1778
  },
1780
1779
  children: /* @__PURE__ */ C(
1781
- Zr,
1780
+ ti,
1782
1781
  {
1783
1782
  ...r,
1784
1783
  ref: n,
@@ -1793,33 +1792,33 @@ var Dn = "PopperArrow", ti = {
1793
1792
  )
1794
1793
  );
1795
1794
  });
1796
- kn.displayName = Dn;
1797
- function ni(e) {
1795
+ Bn.displayName = kn;
1796
+ function si(e) {
1798
1797
  return e !== null;
1799
1798
  }
1800
- var oi = (e) => ({
1799
+ var ci = (e) => ({
1801
1800
  name: "transformOrigin",
1802
1801
  options: e,
1803
1802
  fn(t) {
1804
1803
  var g, h, y;
1805
- const { placement: n, rects: o, middlewareData: r } = t, c = ((g = r.arrow) == null ? void 0 : g.centerOffset) !== 0, s = c ? 0 : e.arrowWidth, a = c ? 0 : e.arrowHeight, [l, p] = Bn(n), f = { start: "0%", center: "50%", end: "100%" }[p], w = (((h = r.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, m = (((y = r.arrow) == null ? void 0 : y.y) ?? 0) + a / 2;
1804
+ const { placement: n, rects: o, middlewareData: r } = t, c = ((g = r.arrow) == null ? void 0 : g.centerOffset) !== 0, s = c ? 0 : e.arrowWidth, a = c ? 0 : e.arrowHeight, [l, p] = Fn(n), f = { start: "0%", center: "50%", end: "100%" }[p], w = (((h = r.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, m = (((y = r.arrow) == null ? void 0 : y.y) ?? 0) + a / 2;
1806
1805
  let v = "", d = "";
1807
1806
  return l === "bottom" ? (v = c ? f : `${w}px`, d = `${-a}px`) : l === "top" ? (v = c ? f : `${w}px`, d = `${o.floating.height + a}px`) : l === "right" ? (v = `${-a}px`, d = c ? f : `${m}px`) : l === "left" && (v = `${o.floating.width + a}px`, d = c ? f : `${m}px`), { data: { x: v, y: d } };
1808
1807
  }
1809
1808
  });
1810
- function Bn(e) {
1809
+ function Fn(e) {
1811
1810
  const [t, n = "center"] = e.split("-");
1812
1811
  return [t, n];
1813
1812
  }
1814
- var ri = In, ii = Mn, si = Ln, ci = kn, ai = "Portal", Fn = u.forwardRef((e, t) => {
1813
+ var ai = _n, li = Ln, ui = Dn, di = Bn, fi = "Portal", Wn = u.forwardRef((e, t) => {
1815
1814
  var s;
1816
1815
  const { container: n, ...o } = e, [r, i] = u.useState(!1);
1817
- q(() => i(!0), []);
1816
+ Z(() => i(!0), []);
1818
1817
  const c = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
1819
- return c ? Co.createPortal(/* @__PURE__ */ C(U.div, { ...o, ref: t }), c) : null;
1818
+ return c ? Ao.createPortal(/* @__PURE__ */ C(U.div, { ...o, ref: t }), c) : null;
1820
1819
  });
1821
- Fn.displayName = ai;
1822
- var li = "VisuallyHidden", Wn = u.forwardRef(
1820
+ Wn.displayName = fi;
1821
+ var pi = "VisuallyHidden", Hn = u.forwardRef(
1823
1822
  (e, t) => /* @__PURE__ */ C(
1824
1823
  U.span,
1825
1824
  {
@@ -1842,27 +1841,27 @@ var li = "VisuallyHidden", Wn = u.forwardRef(
1842
1841
  }
1843
1842
  )
1844
1843
  );
1845
- Wn.displayName = li;
1846
- var ui = function(e) {
1844
+ Hn.displayName = pi;
1845
+ var mi = function(e) {
1847
1846
  if (typeof document > "u")
1848
1847
  return null;
1849
1848
  var t = Array.isArray(e) ? e[0] : e;
1850
1849
  return t.ownerDocument.body;
1851
- }, Ee = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Ye = {}, pt = 0, Hn = function(e) {
1852
- return e && (e.host || Hn(e.parentNode));
1853
- }, di = function(e, t) {
1850
+ }, Pe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), je = {}, mt = 0, Vn = function(e) {
1851
+ return e && (e.host || Vn(e.parentNode));
1852
+ }, hi = function(e, t) {
1854
1853
  return t.map(function(n) {
1855
1854
  if (e.contains(n))
1856
1855
  return n;
1857
- var o = Hn(n);
1856
+ var o = Vn(n);
1858
1857
  return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1859
1858
  }).filter(function(n) {
1860
1859
  return !!n;
1861
1860
  });
1862
- }, fi = function(e, t, n, o) {
1863
- var r = di(t, Array.isArray(e) ? e : [e]);
1864
- Ye[n] || (Ye[n] = /* @__PURE__ */ new WeakMap());
1865
- var i = Ye[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(r), l = function(f) {
1861
+ }, vi = function(e, t, n, o) {
1862
+ var r = hi(t, Array.isArray(e) ? e : [e]);
1863
+ je[n] || (je[n] = /* @__PURE__ */ new WeakMap());
1864
+ var i = je[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(r), l = function(f) {
1866
1865
  !f || s.has(f) || (s.add(f), l(f.parentNode));
1867
1866
  };
1868
1867
  r.forEach(l);
@@ -1872,79 +1871,79 @@ var ui = function(e) {
1872
1871
  p(w);
1873
1872
  else
1874
1873
  try {
1875
- var m = w.getAttribute(o), v = m !== null && m !== "false", d = (Ee.get(w) || 0) + 1, g = (i.get(w) || 0) + 1;
1876
- Ee.set(w, d), i.set(w, g), c.push(w), d === 1 && v && Ke.set(w, !0), g === 1 && w.setAttribute(n, "true"), v || w.setAttribute(o, "true");
1874
+ var m = w.getAttribute(o), v = m !== null && m !== "false", d = (Pe.get(w) || 0) + 1, g = (i.get(w) || 0) + 1;
1875
+ Pe.set(w, d), i.set(w, g), c.push(w), d === 1 && v && Ye.set(w, !0), g === 1 && w.setAttribute(n, "true"), v || w.setAttribute(o, "true");
1877
1876
  } catch (h) {
1878
1877
  console.error("aria-hidden: cannot operate on ", w, h);
1879
1878
  }
1880
1879
  });
1881
1880
  };
1882
- return p(t), s.clear(), pt++, function() {
1881
+ return p(t), s.clear(), mt++, function() {
1883
1882
  c.forEach(function(f) {
1884
- var w = Ee.get(f) - 1, m = i.get(f) - 1;
1885
- Ee.set(f, w), i.set(f, m), w || (Ke.has(f) || f.removeAttribute(o), Ke.delete(f)), m || f.removeAttribute(n);
1886
- }), pt--, pt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Ye = {});
1883
+ var w = Pe.get(f) - 1, m = i.get(f) - 1;
1884
+ Pe.set(f, w), i.set(f, m), w || (Ye.has(f) || f.removeAttribute(o), Ye.delete(f)), m || f.removeAttribute(n);
1885
+ }), mt--, mt || (Pe = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), je = {});
1887
1886
  };
1888
- }, pi = function(e, t, n) {
1887
+ }, gi = function(e, t, n) {
1889
1888
  n === void 0 && (n = "data-aria-hidden");
1890
- var o = Array.from(Array.isArray(e) ? e : [e]), r = ui(e);
1891
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), fi(o, r, n, "aria-hidden")) : function() {
1889
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = mi(e);
1890
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), vi(o, r, n, "aria-hidden")) : function() {
1892
1891
  return null;
1893
1892
  };
1894
- }, qe = "right-scroll-bar-position", Ze = "width-before-scroll-bar", mi = "with-scroll-bars-hidden", hi = "--removed-body-scroll-bar-size", Vn = To(), mt = function() {
1895
- }, it = u.forwardRef(function(e, t) {
1893
+ }, Ze = "right-scroll-bar-position", Qe = "width-before-scroll-bar", wi = "with-scroll-bars-hidden", yi = "--removed-body-scroll-bar-size", $n = _o(), ht = function() {
1894
+ }, st = u.forwardRef(function(e, t) {
1896
1895
  var n = u.useRef(null), o = u.useState({
1897
- onScrollCapture: mt,
1898
- onWheelCapture: mt,
1899
- onTouchMoveCapture: mt
1900
- }), r = o[0], i = o[1], c = e.forwardProps, s = e.children, a = e.className, l = e.removeScrollBar, p = e.enabled, f = e.shards, w = e.sideCar, m = e.noIsolation, v = e.inert, d = e.allowPinchZoom, g = e.as, h = g === void 0 ? "div" : g, y = e.gapMode, x = un(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = w, b = Oo([n, t]), P = ye(ye({}, x), r);
1896
+ onScrollCapture: ht,
1897
+ onWheelCapture: ht,
1898
+ onTouchMoveCapture: ht
1899
+ }), r = o[0], i = o[1], c = e.forwardProps, s = e.children, a = e.className, l = e.removeScrollBar, p = e.enabled, f = e.shards, w = e.sideCar, m = e.noIsolation, v = e.inert, d = e.allowPinchZoom, g = e.as, h = g === void 0 ? "div" : g, y = e.gapMode, x = fn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = w, b = Mo([n, t]), P = xe(xe({}, x), r);
1901
1900
  return u.createElement(
1902
1901
  u.Fragment,
1903
1902
  null,
1904
- p && u.createElement(S, { sideCar: Vn, removeScrollBar: l, shards: f, noIsolation: m, inert: v, setCallbacks: i, allowPinchZoom: !!d, lockRef: n, gapMode: y }),
1905
- c ? u.cloneElement(u.Children.only(s), ye(ye({}, P), { ref: b })) : u.createElement(h, ye({}, P, { className: a, ref: b }), s)
1903
+ p && u.createElement(S, { sideCar: $n, removeScrollBar: l, shards: f, noIsolation: m, inert: v, setCallbacks: i, allowPinchZoom: !!d, lockRef: n, gapMode: y }),
1904
+ c ? u.cloneElement(u.Children.only(s), xe(xe({}, P), { ref: b })) : u.createElement(h, xe({}, P, { className: a, ref: b }), s)
1906
1905
  );
1907
1906
  });
1908
- it.defaultProps = {
1907
+ st.defaultProps = {
1909
1908
  enabled: !0,
1910
1909
  removeScrollBar: !0,
1911
1910
  inert: !1
1912
1911
  };
1913
- it.classNames = {
1914
- fullWidth: Ze,
1915
- zeroRight: qe
1912
+ st.classNames = {
1913
+ fullWidth: Qe,
1914
+ zeroRight: Ze
1916
1915
  };
1917
- var vi = function() {
1916
+ var xi = function() {
1918
1917
  if (typeof __webpack_nonce__ < "u")
1919
1918
  return __webpack_nonce__;
1920
1919
  };
1921
- function gi() {
1920
+ function Si() {
1922
1921
  if (!document)
1923
1922
  return null;
1924
1923
  var e = document.createElement("style");
1925
1924
  e.type = "text/css";
1926
- var t = vi();
1925
+ var t = xi();
1927
1926
  return t && e.setAttribute("nonce", t), e;
1928
1927
  }
1929
- function wi(e, t) {
1928
+ function bi(e, t) {
1930
1929
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
1931
1930
  }
1932
- function yi(e) {
1931
+ function Ci(e) {
1933
1932
  var t = document.head || document.getElementsByTagName("head")[0];
1934
1933
  t.appendChild(e);
1935
1934
  }
1936
- var xi = function() {
1935
+ var Ei = function() {
1937
1936
  var e = 0, t = null;
1938
1937
  return {
1939
1938
  add: function(n) {
1940
- e == 0 && (t = gi()) && (wi(t, n), yi(t)), e++;
1939
+ e == 0 && (t = Si()) && (bi(t, n), Ci(t)), e++;
1941
1940
  },
1942
1941
  remove: function() {
1943
1942
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
1944
1943
  }
1945
1944
  };
1946
- }, Si = function() {
1947
- var e = xi();
1945
+ }, Pi = function() {
1946
+ var e = Ei();
1948
1947
  return function(t, n) {
1949
1948
  u.useEffect(function() {
1950
1949
  return e.add(t), function() {
@@ -1952,40 +1951,40 @@ var xi = function() {
1952
1951
  };
1953
1952
  }, [t && n]);
1954
1953
  };
1955
- }, $n = function() {
1956
- var e = Si(), t = function(n) {
1954
+ }, Un = function() {
1955
+ var e = Pi(), t = function(n) {
1957
1956
  var o = n.styles, r = n.dynamic;
1958
1957
  return e(o, r), null;
1959
1958
  };
1960
1959
  return t;
1961
- }, bi = {
1960
+ }, Ri = {
1962
1961
  left: 0,
1963
1962
  top: 0,
1964
1963
  right: 0,
1965
1964
  gap: 0
1966
- }, ht = function(e) {
1965
+ }, vt = function(e) {
1967
1966
  return parseInt(e || "", 10) || 0;
1968
- }, Ci = function(e) {
1967
+ }, Ai = function(e) {
1969
1968
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
1970
- return [ht(n), ht(o), ht(r)];
1971
- }, Ei = function(e) {
1969
+ return [vt(n), vt(o), vt(r)];
1970
+ }, Ti = function(e) {
1972
1971
  if (e === void 0 && (e = "margin"), typeof window > "u")
1973
- return bi;
1974
- var t = Ci(e), n = document.documentElement.clientWidth, o = window.innerWidth;
1972
+ return Ri;
1973
+ var t = Ai(e), n = document.documentElement.clientWidth, o = window.innerWidth;
1975
1974
  return {
1976
1975
  left: t[0],
1977
1976
  top: t[1],
1978
1977
  right: t[2],
1979
1978
  gap: Math.max(0, o - n + t[2] - t[0])
1980
1979
  };
1981
- }, Pi = $n(), Te = "data-scroll-locked", Ri = function(e, t, n, o) {
1980
+ }, Oi = Un(), Oe = "data-scroll-locked", Ni = function(e, t, n, o) {
1982
1981
  var r = e.left, i = e.top, c = e.right, s = e.gap;
1983
1982
  return n === void 0 && (n = "margin"), `
1984
- .`.concat(mi, ` {
1983
+ .`.concat(wi, ` {
1985
1984
  overflow: hidden `).concat(o, `;
1986
1985
  padding-right: `).concat(s, "px ").concat(o, `;
1987
1986
  }
1988
- body[`).concat(Te, `] {
1987
+ body[`).concat(Oe, `] {
1989
1988
  overflow: hidden `).concat(o, `;
1990
1989
  overscroll-behavior: contain;
1991
1990
  `).concat([
@@ -2002,134 +2001,134 @@ var xi = function() {
2002
2001
  ].filter(Boolean).join(""), `
2003
2002
  }
2004
2003
 
2005
- .`).concat(qe, ` {
2004
+ .`).concat(Ze, ` {
2006
2005
  right: `).concat(s, "px ").concat(o, `;
2007
2006
  }
2008
2007
 
2009
- .`).concat(Ze, ` {
2008
+ .`).concat(Qe, ` {
2010
2009
  margin-right: `).concat(s, "px ").concat(o, `;
2011
2010
  }
2012
2011
 
2013
- .`).concat(qe, " .").concat(qe, ` {
2012
+ .`).concat(Ze, " .").concat(Ze, ` {
2014
2013
  right: 0 `).concat(o, `;
2015
2014
  }
2016
2015
 
2017
- .`).concat(Ze, " .").concat(Ze, ` {
2016
+ .`).concat(Qe, " .").concat(Qe, ` {
2018
2017
  margin-right: 0 `).concat(o, `;
2019
2018
  }
2020
2019
 
2021
- body[`).concat(Te, `] {
2022
- `).concat(hi, ": ").concat(s, `px;
2020
+ body[`).concat(Oe, `] {
2021
+ `).concat(yi, ": ").concat(s, `px;
2023
2022
  }
2024
2023
  `);
2025
- }, rn = function() {
2026
- var e = parseInt(document.body.getAttribute(Te) || "0", 10);
2024
+ }, sn = function() {
2025
+ var e = parseInt(document.body.getAttribute(Oe) || "0", 10);
2027
2026
  return isFinite(e) ? e : 0;
2028
- }, Ai = function() {
2027
+ }, Ii = function() {
2029
2028
  u.useEffect(function() {
2030
- return document.body.setAttribute(Te, (rn() + 1).toString()), function() {
2031
- var e = rn() - 1;
2032
- e <= 0 ? document.body.removeAttribute(Te) : document.body.setAttribute(Te, e.toString());
2029
+ return document.body.setAttribute(Oe, (sn() + 1).toString()), function() {
2030
+ var e = sn() - 1;
2031
+ e <= 0 ? document.body.removeAttribute(Oe) : document.body.setAttribute(Oe, e.toString());
2033
2032
  };
2034
2033
  }, []);
2035
- }, Ti = function(e) {
2034
+ }, _i = function(e) {
2036
2035
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
2037
- Ai();
2036
+ Ii();
2038
2037
  var i = u.useMemo(function() {
2039
- return Ei(r);
2038
+ return Ti(r);
2040
2039
  }, [r]);
2041
- return u.createElement(Pi, { styles: Ri(i, !t, r, n ? "" : "!important") });
2042
- }, xt = !1;
2040
+ return u.createElement(Oi, { styles: Ni(i, !t, r, n ? "" : "!important") });
2041
+ }, St = !1;
2043
2042
  if (typeof window < "u")
2044
2043
  try {
2045
2044
  var Xe = Object.defineProperty({}, "passive", {
2046
2045
  get: function() {
2047
- return xt = !0, !0;
2046
+ return St = !0, !0;
2048
2047
  }
2049
2048
  });
2050
2049
  window.addEventListener("test", Xe, Xe), window.removeEventListener("test", Xe, Xe);
2051
2050
  } catch {
2052
- xt = !1;
2051
+ St = !1;
2053
2052
  }
2054
- var Pe = xt ? { passive: !1 } : !1, Oi = function(e) {
2053
+ var Re = St ? { passive: !1 } : !1, Mi = function(e) {
2055
2054
  return e.tagName === "TEXTAREA";
2056
- }, Un = function(e, t) {
2055
+ }, zn = function(e, t) {
2057
2056
  var n = window.getComputedStyle(e);
2058
2057
  return (
2059
2058
  // not-not-scrollable
2060
2059
  n[t] !== "hidden" && // contains scroll inside self
2061
- !(n.overflowY === n.overflowX && !Oi(e) && n[t] === "visible")
2060
+ !(n.overflowY === n.overflowX && !Mi(e) && n[t] === "visible")
2062
2061
  );
2063
- }, Ni = function(e) {
2064
- return Un(e, "overflowY");
2065
- }, Ii = function(e) {
2066
- return Un(e, "overflowX");
2067
- }, sn = function(e, t) {
2062
+ }, Li = function(e) {
2063
+ return zn(e, "overflowY");
2064
+ }, Di = function(e) {
2065
+ return zn(e, "overflowX");
2066
+ }, cn = function(e, t) {
2068
2067
  var n = t.ownerDocument, o = t;
2069
2068
  do {
2070
2069
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
2071
- var r = zn(e, o);
2070
+ var r = Kn(e, o);
2072
2071
  if (r) {
2073
- var i = Kn(e, o), c = i[1], s = i[2];
2072
+ var i = Yn(e, o), c = i[1], s = i[2];
2074
2073
  if (c > s)
2075
2074
  return !0;
2076
2075
  }
2077
2076
  o = o.parentNode;
2078
2077
  } while (o && o !== n.body);
2079
2078
  return !1;
2080
- }, _i = function(e) {
2079
+ }, ki = function(e) {
2081
2080
  var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
2082
2081
  return [
2083
2082
  t,
2084
2083
  n,
2085
2084
  o
2086
2085
  ];
2087
- }, Mi = function(e) {
2086
+ }, Bi = function(e) {
2088
2087
  var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
2089
2088
  return [
2090
2089
  t,
2091
2090
  n,
2092
2091
  o
2093
2092
  ];
2094
- }, zn = function(e, t) {
2095
- return e === "v" ? Ni(t) : Ii(t);
2096
2093
  }, Kn = function(e, t) {
2097
- return e === "v" ? _i(t) : Mi(t);
2098
- }, Li = function(e, t) {
2094
+ return e === "v" ? Li(t) : Di(t);
2095
+ }, Yn = function(e, t) {
2096
+ return e === "v" ? ki(t) : Bi(t);
2097
+ }, Fi = function(e, t) {
2099
2098
  return e === "h" && t === "rtl" ? -1 : 1;
2100
- }, Di = function(e, t, n, o, r) {
2101
- var i = Li(e, window.getComputedStyle(t).direction), c = i * o, s = n.target, a = t.contains(s), l = !1, p = c > 0, f = 0, w = 0;
2099
+ }, Wi = function(e, t, n, o, r) {
2100
+ var i = Fi(e, window.getComputedStyle(t).direction), c = i * o, s = n.target, a = t.contains(s), l = !1, p = c > 0, f = 0, w = 0;
2102
2101
  do {
2103
- var m = Kn(e, s), v = m[0], d = m[1], g = m[2], h = d - g - i * v;
2104
- (v || h) && zn(e, s) && (f += h, w += v), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
2102
+ var m = Yn(e, s), v = m[0], d = m[1], g = m[2], h = d - g - i * v;
2103
+ (v || h) && Kn(e, s) && (f += h, w += v), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
2105
2104
  } while (
2106
2105
  // portaled content
2107
2106
  !a && s !== document.body || // self content
2108
2107
  a && (t.contains(s) || t === s)
2109
2108
  );
2110
2109
  return (p && (Math.abs(f) < 1 || !r) || !p && (Math.abs(w) < 1 || !r)) && (l = !0), l;
2111
- }, je = function(e) {
2110
+ }, Ge = function(e) {
2112
2111
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2113
- }, cn = function(e) {
2114
- return [e.deltaX, e.deltaY];
2115
2112
  }, an = function(e) {
2113
+ return [e.deltaX, e.deltaY];
2114
+ }, ln = function(e) {
2116
2115
  return e && "current" in e ? e.current : e;
2117
- }, ki = function(e, t) {
2116
+ }, Hi = function(e, t) {
2118
2117
  return e[0] === t[0] && e[1] === t[1];
2119
- }, Bi = function(e) {
2118
+ }, Vi = function(e) {
2120
2119
  return `
2121
2120
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2122
2121
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2123
2122
  `);
2124
- }, Fi = 0, Re = [];
2125
- function Wi(e) {
2126
- var t = u.useRef([]), n = u.useRef([0, 0]), o = u.useRef(), r = u.useState(Fi++)[0], i = u.useState($n)[0], c = u.useRef(e);
2123
+ }, $i = 0, Ae = [];
2124
+ function Ui(e) {
2125
+ var t = u.useRef([]), n = u.useRef([0, 0]), o = u.useRef(), r = u.useState($i++)[0], i = u.useState(Un)[0], c = u.useRef(e);
2127
2126
  u.useEffect(function() {
2128
2127
  c.current = e;
2129
2128
  }, [e]), u.useEffect(function() {
2130
2129
  if (e.inert) {
2131
2130
  document.body.classList.add("block-interactivity-".concat(r));
2132
- var d = Ao([e.lockRef.current], (e.shards || []).map(an), !0).filter(Boolean);
2131
+ var d = Io([e.lockRef.current], (e.shards || []).map(ln), !0).filter(Boolean);
2133
2132
  return d.forEach(function(g) {
2134
2133
  return g.classList.add("allow-interactivity-".concat(r));
2135
2134
  }), function() {
@@ -2142,82 +2141,82 @@ function Wi(e) {
2142
2141
  var s = u.useCallback(function(d, g) {
2143
2142
  if ("touches" in d && d.touches.length === 2)
2144
2143
  return !c.current.allowPinchZoom;
2145
- var h = je(d), y = n.current, x = "deltaX" in d ? d.deltaX : y[0] - h[0], S = "deltaY" in d ? d.deltaY : y[1] - h[1], b, P = d.target, E = Math.abs(x) > Math.abs(S) ? "h" : "v";
2144
+ var h = Ge(d), y = n.current, x = "deltaX" in d ? d.deltaX : y[0] - h[0], S = "deltaY" in d ? d.deltaY : y[1] - h[1], b, P = d.target, E = Math.abs(x) > Math.abs(S) ? "h" : "v";
2146
2145
  if ("touches" in d && E === "h" && P.type === "range")
2147
2146
  return !1;
2148
- var T = sn(E, P);
2147
+ var T = cn(E, P);
2149
2148
  if (!T)
2150
2149
  return !0;
2151
- if (T ? b = E : (b = E === "v" ? "h" : "v", T = sn(E, P)), !T)
2150
+ if (T ? b = E : (b = E === "v" ? "h" : "v", T = cn(E, P)), !T)
2152
2151
  return !1;
2153
2152
  if (!o.current && "changedTouches" in d && (x || S) && (o.current = b), !b)
2154
2153
  return !0;
2155
2154
  var I = o.current || b;
2156
- return Di(I, g, d, I === "h" ? x : S, !0);
2155
+ return Wi(I, g, d, I === "h" ? x : S, !0);
2157
2156
  }, []), a = u.useCallback(function(d) {
2158
2157
  var g = d;
2159
- if (!(!Re.length || Re[Re.length - 1] !== i)) {
2160
- var h = "deltaY" in g ? cn(g) : je(g), y = t.current.filter(function(b) {
2161
- return b.name === g.type && (b.target === g.target || g.target === b.shadowParent) && ki(b.delta, h);
2158
+ if (!(!Ae.length || Ae[Ae.length - 1] !== i)) {
2159
+ var h = "deltaY" in g ? an(g) : Ge(g), y = t.current.filter(function(b) {
2160
+ return b.name === g.type && (b.target === g.target || g.target === b.shadowParent) && Hi(b.delta, h);
2162
2161
  })[0];
2163
2162
  if (y && y.should) {
2164
2163
  g.cancelable && g.preventDefault();
2165
2164
  return;
2166
2165
  }
2167
2166
  if (!y) {
2168
- var x = (c.current.shards || []).map(an).filter(Boolean).filter(function(b) {
2167
+ var x = (c.current.shards || []).map(ln).filter(Boolean).filter(function(b) {
2169
2168
  return b.contains(g.target);
2170
2169
  }), S = x.length > 0 ? s(g, x[0]) : !c.current.noIsolation;
2171
2170
  S && g.cancelable && g.preventDefault();
2172
2171
  }
2173
2172
  }
2174
2173
  }, []), l = u.useCallback(function(d, g, h, y) {
2175
- var x = { name: d, delta: g, target: h, should: y, shadowParent: Hi(h) };
2174
+ var x = { name: d, delta: g, target: h, should: y, shadowParent: zi(h) };
2176
2175
  t.current.push(x), setTimeout(function() {
2177
2176
  t.current = t.current.filter(function(S) {
2178
2177
  return S !== x;
2179
2178
  });
2180
2179
  }, 1);
2181
2180
  }, []), p = u.useCallback(function(d) {
2182
- n.current = je(d), o.current = void 0;
2181
+ n.current = Ge(d), o.current = void 0;
2183
2182
  }, []), f = u.useCallback(function(d) {
2184
- l(d.type, cn(d), d.target, s(d, e.lockRef.current));
2183
+ l(d.type, an(d), d.target, s(d, e.lockRef.current));
2185
2184
  }, []), w = u.useCallback(function(d) {
2186
- l(d.type, je(d), d.target, s(d, e.lockRef.current));
2185
+ l(d.type, Ge(d), d.target, s(d, e.lockRef.current));
2187
2186
  }, []);
2188
2187
  u.useEffect(function() {
2189
- return Re.push(i), e.setCallbacks({
2188
+ return Ae.push(i), e.setCallbacks({
2190
2189
  onScrollCapture: f,
2191
2190
  onWheelCapture: f,
2192
2191
  onTouchMoveCapture: w
2193
- }), document.addEventListener("wheel", a, Pe), document.addEventListener("touchmove", a, Pe), document.addEventListener("touchstart", p, Pe), function() {
2194
- Re = Re.filter(function(d) {
2192
+ }), document.addEventListener("wheel", a, Re), document.addEventListener("touchmove", a, Re), document.addEventListener("touchstart", p, Re), function() {
2193
+ Ae = Ae.filter(function(d) {
2195
2194
  return d !== i;
2196
- }), document.removeEventListener("wheel", a, Pe), document.removeEventListener("touchmove", a, Pe), document.removeEventListener("touchstart", p, Pe);
2195
+ }), document.removeEventListener("wheel", a, Re), document.removeEventListener("touchmove", a, Re), document.removeEventListener("touchstart", p, Re);
2197
2196
  };
2198
2197
  }, []);
2199
2198
  var m = e.removeScrollBar, v = e.inert;
2200
2199
  return u.createElement(
2201
2200
  u.Fragment,
2202
2201
  null,
2203
- v ? u.createElement(i, { styles: Bi(r) }) : null,
2204
- m ? u.createElement(Ti, { gapMode: e.gapMode }) : null
2202
+ v ? u.createElement(i, { styles: Vi(r) }) : null,
2203
+ m ? u.createElement(_i, { gapMode: e.gapMode }) : null
2205
2204
  );
2206
2205
  }
2207
- function Hi(e) {
2206
+ function zi(e) {
2208
2207
  for (var t = null; e !== null; )
2209
2208
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2210
2209
  return t;
2211
2210
  }
2212
- const Vi = Io(Vn, Wi);
2213
- var Yn = u.forwardRef(function(e, t) {
2214
- return u.createElement(it, ye({}, e, { ref: t, sideCar: Vi }));
2211
+ const Ki = Do($n, Ui);
2212
+ var jn = u.forwardRef(function(e, t) {
2213
+ return u.createElement(st, xe({}, e, { ref: t, sideCar: Ki }));
2215
2214
  });
2216
- Yn.classNames = it.classNames;
2217
- var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Select", [st, ct, zi] = _o($e), [_e, Vs] = Tt($e, [
2218
- zi,
2219
- On
2220
- ]), at = On(), [Ki, he] = _e($e), [Yi, Xi] = _e($e), Xn = (e) => {
2215
+ jn.classNames = st.classNames;
2216
+ var Yi = [" ", "Enter", "ArrowUp", "ArrowDown"], ji = [" ", "Enter"], Ue = "Select", [ct, at, Xi] = ko(Ue), [Me, Ys] = Ot(Ue, [
2217
+ Xi,
2218
+ Nn
2219
+ ]), lt = Nn(), [Gi, ve] = Me(Ue), [qi, Zi] = Me(Ue), Xn = (e) => {
2221
2220
  const {
2222
2221
  __scopeSelect: t,
2223
2222
  children: n,
@@ -2232,17 +2231,17 @@ var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Sele
2232
2231
  autoComplete: f,
2233
2232
  disabled: w,
2234
2233
  required: m
2235
- } = e, v = at(t), [d, g] = u.useState(null), [h, y] = u.useState(null), [x, S] = u.useState(!1), b = Lo(l), [P = !1, E] = Wt({
2234
+ } = e, v = lt(t), [d, g] = u.useState(null), [h, y] = u.useState(null), [x, S] = u.useState(!1), b = Fo(l), [P = !1, E] = Ht({
2236
2235
  prop: o,
2237
2236
  defaultProp: r,
2238
2237
  onChange: i
2239
- }), [T, I] = Wt({
2238
+ }), [T, I] = Ht({
2240
2239
  prop: c,
2241
2240
  defaultProp: s,
2242
2241
  onChange: a
2243
2242
  }), _ = u.useRef(null), V = d ? !!d.closest("form") : !0, [B, $] = u.useState(/* @__PURE__ */ new Set()), N = Array.from(B).map((O) => O.props.value).join(";");
2244
- return /* @__PURE__ */ C(ri, { ...v, children: /* @__PURE__ */ de(
2245
- Ki,
2243
+ return /* @__PURE__ */ C(ai, { ...v, children: /* @__PURE__ */ de(
2244
+ Gi,
2246
2245
  {
2247
2246
  required: m,
2248
2247
  scope: t,
@@ -2252,7 +2251,7 @@ var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Sele
2252
2251
  onValueNodeChange: y,
2253
2252
  valueNodeHasChildren: x,
2254
2253
  onValueNodeHasChildrenChange: S,
2255
- contentId: Ot(),
2254
+ contentId: Nt(),
2256
2255
  value: T,
2257
2256
  onValueChange: I,
2258
2257
  open: P,
@@ -2261,8 +2260,8 @@ var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Sele
2261
2260
  triggerPointerDownPosRef: _,
2262
2261
  disabled: w,
2263
2262
  children: [
2264
- /* @__PURE__ */ C(st.Provider, { scope: t, children: /* @__PURE__ */ C(
2265
- Yi,
2263
+ /* @__PURE__ */ C(ct.Provider, { scope: t, children: /* @__PURE__ */ C(
2264
+ qi,
2266
2265
  {
2267
2266
  scope: e.__scopeSelect,
2268
2267
  onNativeOptionAdd: u.useCallback((O) => {
@@ -2278,7 +2277,7 @@ var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Sele
2278
2277
  }
2279
2278
  ) }),
2280
2279
  V ? /* @__PURE__ */ de(
2281
- go,
2280
+ wo,
2282
2281
  {
2283
2282
  "aria-hidden": !0,
2284
2283
  required: m,
@@ -2299,16 +2298,16 @@ var $i = [" ", "Enter", "ArrowUp", "ArrowDown"], Ui = [" ", "Enter"], $e = "Sele
2299
2298
  }
2300
2299
  ) });
2301
2300
  };
2302
- Xn.displayName = $e;
2303
- var jn = "SelectTrigger", Gn = u.forwardRef(
2301
+ Xn.displayName = Ue;
2302
+ var Gn = "SelectTrigger", qn = u.forwardRef(
2304
2303
  (e, t) => {
2305
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = at(n), c = he(jn, n), s = c.disabled || o, a = K(t, c.onTriggerChange), l = ct(n), [p, f, w] = wo((v) => {
2306
- const d = l().filter((y) => !y.disabled), g = d.find((y) => y.value === c.value), h = yo(d, v, g);
2304
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = lt(n), c = ve(Gn, n), s = c.disabled || o, a = K(t, c.onTriggerChange), l = at(n), [p, f, w] = yo((v) => {
2305
+ const d = l().filter((y) => !y.disabled), g = d.find((y) => y.value === c.value), h = xo(d, v, g);
2307
2306
  h !== void 0 && c.onValueChange(h.value);
2308
2307
  }), m = () => {
2309
2308
  s || (c.onOpenChange(!0), w());
2310
2309
  };
2311
- return /* @__PURE__ */ C(ii, { asChild: !0, ...i, children: /* @__PURE__ */ C(
2310
+ return /* @__PURE__ */ C(li, { asChild: !0, ...i, children: /* @__PURE__ */ C(
2312
2311
  U.button,
2313
2312
  {
2314
2313
  type: "button",
@@ -2321,7 +2320,7 @@ var jn = "SelectTrigger", Gn = u.forwardRef(
2321
2320
  "data-state": c.open ? "open" : "closed",
2322
2321
  disabled: s,
2323
2322
  "data-disabled": s ? "" : void 0,
2324
- "data-placeholder": vo(c.value) ? "" : void 0,
2323
+ "data-placeholder": go(c.value) ? "" : void 0,
2325
2324
  ...r,
2326
2325
  ref: a,
2327
2326
  onClick: z(r.onClick, (v) => {
@@ -2336,17 +2335,17 @@ var jn = "SelectTrigger", Gn = u.forwardRef(
2336
2335
  }),
2337
2336
  onKeyDown: z(r.onKeyDown, (v) => {
2338
2337
  const d = p.current !== "";
2339
- !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && f(v.key), !(d && v.key === " ") && $i.includes(v.key) && (m(), v.preventDefault());
2338
+ !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && f(v.key), !(d && v.key === " ") && Yi.includes(v.key) && (m(), v.preventDefault());
2340
2339
  })
2341
2340
  }
2342
2341
  ) });
2343
2342
  }
2344
2343
  );
2345
- Gn.displayName = jn;
2346
- var qn = "SelectValue", Zn = u.forwardRef(
2344
+ qn.displayName = Gn;
2345
+ var Zn = "SelectValue", Qn = u.forwardRef(
2347
2346
  (e, t) => {
2348
- const { __scopeSelect: n, className: o, style: r, children: i, placeholder: c = "", ...s } = e, a = he(qn, n), { onValueNodeHasChildrenChange: l } = a, p = i !== void 0, f = K(t, a.onValueNodeChange);
2349
- return q(() => {
2347
+ const { __scopeSelect: n, className: o, style: r, children: i, placeholder: c = "", ...s } = e, a = ve(Zn, n), { onValueNodeHasChildrenChange: l } = a, p = i !== void 0, f = K(t, a.onValueNodeChange);
2348
+ return Z(() => {
2350
2349
  l(p);
2351
2350
  }, [l, p]), /* @__PURE__ */ C(
2352
2351
  U.span,
@@ -2354,38 +2353,38 @@ var qn = "SelectValue", Zn = u.forwardRef(
2354
2353
  ...s,
2355
2354
  ref: f,
2356
2355
  style: { pointerEvents: "none" },
2357
- children: vo(a.value) ? /* @__PURE__ */ C(Rt, { children: c }) : i
2356
+ children: go(a.value) ? /* @__PURE__ */ C(At, { children: c }) : i
2358
2357
  }
2359
2358
  );
2360
2359
  }
2361
2360
  );
2362
- Zn.displayName = qn;
2363
- var ji = "SelectIcon", Qn = u.forwardRef(
2361
+ Qn.displayName = Zn;
2362
+ var Qi = "SelectIcon", Jn = u.forwardRef(
2364
2363
  (e, t) => {
2365
2364
  const { __scopeSelect: n, children: o, ...r } = e;
2366
2365
  return /* @__PURE__ */ C(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
2367
2366
  }
2368
2367
  );
2369
- Qn.displayName = ji;
2370
- var Gi = "SelectPortal", Jn = (e) => /* @__PURE__ */ C(Fn, { asChild: !0, ...e });
2371
- Jn.displayName = Gi;
2372
- var be = "SelectContent", eo = u.forwardRef(
2368
+ Jn.displayName = Qi;
2369
+ var Ji = "SelectPortal", eo = (e) => /* @__PURE__ */ C(Wn, { asChild: !0, ...e });
2370
+ eo.displayName = Ji;
2371
+ var Ce = "SelectContent", to = u.forwardRef(
2373
2372
  (e, t) => {
2374
- const n = he(be, e.__scopeSelect), [o, r] = u.useState();
2375
- if (q(() => {
2373
+ const n = ve(Ce, e.__scopeSelect), [o, r] = u.useState();
2374
+ if (Z(() => {
2376
2375
  r(new DocumentFragment());
2377
2376
  }, []), !n.open) {
2378
2377
  const i = o;
2379
- return i ? At.createPortal(
2380
- /* @__PURE__ */ C(to, { scope: e.__scopeSelect, children: /* @__PURE__ */ C(st.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ C("div", { children: e.children }) }) }),
2378
+ return i ? Tt.createPortal(
2379
+ /* @__PURE__ */ C(no, { scope: e.__scopeSelect, children: /* @__PURE__ */ C(ct.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ C("div", { children: e.children }) }) }),
2381
2380
  i
2382
2381
  ) : null;
2383
2382
  }
2384
- return /* @__PURE__ */ C(no, { ...e, ref: t });
2383
+ return /* @__PURE__ */ C(oo, { ...e, ref: t });
2385
2384
  }
2386
2385
  );
2387
- eo.displayName = be;
2388
- var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2386
+ to.displayName = Ce;
2387
+ var ie = 10, [no, ge] = Me(Ce), es = "SelectContentImpl", oo = u.forwardRef(
2389
2388
  (e, t) => {
2390
2389
  const {
2391
2390
  __scopeSelect: n,
@@ -2407,12 +2406,12 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2407
2406
  avoidCollisions: g,
2408
2407
  //
2409
2408
  ...h
2410
- } = e, y = he(be, n), [x, S] = u.useState(null), [b, P] = u.useState(null), E = K(t, (R) => S(R)), [T, I] = u.useState(null), [_, V] = u.useState(
2409
+ } = e, y = ve(Ce, n), [x, S] = u.useState(null), [b, P] = u.useState(null), E = K(t, (R) => S(R)), [T, I] = u.useState(null), [_, V] = u.useState(
2411
2410
  null
2412
- ), B = ct(n), [$, N] = u.useState(!1), O = u.useRef(!1);
2411
+ ), B = at(n), [$, N] = u.useState(!1), O = u.useRef(!1);
2413
2412
  u.useEffect(() => {
2414
- if (x) return pi(x);
2415
- }, [x]), Uo();
2413
+ if (x) return gi(x);
2414
+ }, [x]), jo();
2416
2415
  const W = u.useCallback(
2417
2416
  (R) => {
2418
2417
  const [H, ...Y] = B().map((L) => L.ref.current), [F] = Y.slice(-1), M = document.activeElement;
@@ -2450,22 +2449,22 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2450
2449
  window.removeEventListener("blur", R), window.removeEventListener("resize", R);
2451
2450
  };
2452
2451
  }, [D]);
2453
- const [ge, oe] = wo((R) => {
2454
- const H = B().filter((M) => !M.disabled), Y = H.find((M) => M.ref.current === document.activeElement), F = yo(H, R, Y);
2452
+ const [we, re] = yo((R) => {
2453
+ const H = B().filter((M) => !M.disabled), Y = H.find((M) => M.ref.current === document.activeElement), F = xo(H, R, Y);
2455
2454
  F && setTimeout(() => F.ref.current.focus());
2456
- }), Me = u.useCallback(
2455
+ }), Le = u.useCallback(
2457
2456
  (R, H, Y) => {
2458
2457
  const F = !O.current && !Y;
2459
2458
  (y.value !== void 0 && y.value === H || F) && (I(R), F && (O.current = !0));
2460
2459
  },
2461
2460
  [y.value]
2462
- ), Le = u.useCallback(() => x == null ? void 0 : x.focus(), [x]), le = u.useCallback(
2461
+ ), De = u.useCallback(() => x == null ? void 0 : x.focus(), [x]), le = u.useCallback(
2463
2462
  (R, H, Y) => {
2464
2463
  const F = !O.current && !Y;
2465
2464
  (y.value !== void 0 && y.value === H || F) && V(R);
2466
2465
  },
2467
2466
  [y.value]
2468
- ), Ce = o === "popper" ? St : oo, we = Ce === St ? {
2467
+ ), Ee = o === "popper" ? bt : ro, ye = Ee === bt ? {
2469
2468
  side: s,
2470
2469
  sideOffset: a,
2471
2470
  align: l,
@@ -2478,23 +2477,23 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2478
2477
  avoidCollisions: g
2479
2478
  } : {};
2480
2479
  return /* @__PURE__ */ C(
2481
- to,
2480
+ no,
2482
2481
  {
2483
2482
  scope: n,
2484
2483
  content: x,
2485
2484
  viewport: b,
2486
2485
  onViewportChange: P,
2487
- itemRefCallback: Me,
2486
+ itemRefCallback: Le,
2488
2487
  selectedItem: T,
2489
- onItemLeave: Le,
2488
+ onItemLeave: De,
2490
2489
  itemTextRefCallback: le,
2491
2490
  focusSelectedItem: A,
2492
2491
  selectedItemText: _,
2493
2492
  position: o,
2494
2493
  isPositioned: $,
2495
- searchRef: ge,
2496
- children: /* @__PURE__ */ C(Yn, { as: vt, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2497
- vn,
2494
+ searchRef: we,
2495
+ children: /* @__PURE__ */ C(jn, { as: gt, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2496
+ gn,
2498
2497
  {
2499
2498
  asChild: !0,
2500
2499
  trapped: y.open,
@@ -2506,7 +2505,7 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2506
2505
  (H = y.trigger) == null || H.focus({ preventScroll: !0 }), R.preventDefault();
2507
2506
  }),
2508
2507
  children: /* @__PURE__ */ C(
2509
- mn,
2508
+ hn,
2510
2509
  {
2511
2510
  asChild: !0,
2512
2511
  disableOutsidePointerEvents: !0,
@@ -2515,7 +2514,7 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2515
2514
  onFocusOutside: (R) => R.preventDefault(),
2516
2515
  onDismiss: () => y.onOpenChange(!1),
2517
2516
  children: /* @__PURE__ */ C(
2518
- Ce,
2517
+ Ee,
2519
2518
  {
2520
2519
  role: "listbox",
2521
2520
  id: y.contentId,
@@ -2523,7 +2522,7 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2523
2522
  dir: y.dir,
2524
2523
  onContextMenu: (R) => R.preventDefault(),
2525
2524
  ...h,
2526
- ...we,
2525
+ ...ye,
2527
2526
  onPlaced: () => N(!0),
2528
2527
  ref: E,
2529
2528
  style: {
@@ -2536,7 +2535,7 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2536
2535
  },
2537
2536
  onKeyDown: z(h.onKeyDown, (R) => {
2538
2537
  const H = R.ctrlKey || R.altKey || R.metaKey;
2539
- if (R.key === "Tab" && R.preventDefault(), !H && R.key.length === 1 && oe(R.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(R.key)) {
2538
+ if (R.key === "Tab" && R.preventDefault(), !H && R.key.length === 1 && re(R.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(R.key)) {
2540
2539
  let F = B().filter((M) => !M.disabled).map((M) => M.ref.current);
2541
2540
  if (["ArrowUp", "End"].includes(R.key) && (F = F.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(R.key)) {
2542
2541
  const M = R.target, L = F.indexOf(M);
@@ -2555,39 +2554,39 @@ var ie = 10, [to, ve] = _e(be), qi = "SelectContentImpl", no = u.forwardRef(
2555
2554
  );
2556
2555
  }
2557
2556
  );
2558
- no.displayName = qi;
2559
- var Zi = "SelectItemAlignedPosition", oo = u.forwardRef((e, t) => {
2560
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = he(be, n), c = ve(be, n), [s, a] = u.useState(null), [l, p] = u.useState(null), f = K(t, (E) => p(E)), w = ct(n), m = u.useRef(!1), v = u.useRef(!0), { viewport: d, selectedItem: g, selectedItemText: h, focusSelectedItem: y } = c, x = u.useCallback(() => {
2557
+ oo.displayName = es;
2558
+ var ts = "SelectItemAlignedPosition", ro = u.forwardRef((e, t) => {
2559
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = ve(Ce, n), c = ge(Ce, n), [s, a] = u.useState(null), [l, p] = u.useState(null), f = K(t, (E) => p(E)), w = at(n), m = u.useRef(!1), v = u.useRef(!0), { viewport: d, selectedItem: g, selectedItemText: h, focusSelectedItem: y } = c, x = u.useCallback(() => {
2561
2560
  if (i.trigger && i.valueNode && s && l && d && g && h) {
2562
2561
  const E = i.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), _ = h.getBoundingClientRect();
2563
2562
  if (i.dir !== "rtl") {
2564
- const M = _.left - T.left, L = I.left - M, X = E.left - L, J = E.width + X, De = Math.max(J, T.width), ke = window.innerWidth - ie, Be = Vt(L, [ie, ke - De]);
2565
- s.style.minWidth = J + "px", s.style.left = Be + "px";
2563
+ const M = _.left - T.left, L = I.left - M, X = E.left - L, ee = E.width + X, ke = Math.max(ee, T.width), Be = window.innerWidth - ie, Fe = $t(L, [ie, Be - ke]);
2564
+ s.style.minWidth = ee + "px", s.style.left = Fe + "px";
2566
2565
  } else {
2567
- const M = T.right - _.right, L = window.innerWidth - I.right - M, X = window.innerWidth - E.right - L, J = E.width + X, De = Math.max(J, T.width), ke = window.innerWidth - ie, Be = Vt(L, [ie, ke - De]);
2568
- s.style.minWidth = J + "px", s.style.right = Be + "px";
2566
+ const M = T.right - _.right, L = window.innerWidth - I.right - M, X = window.innerWidth - E.right - L, ee = E.width + X, ke = Math.max(ee, T.width), Be = window.innerWidth - ie, Fe = $t(L, [ie, Be - ke]);
2567
+ s.style.minWidth = ee + "px", s.style.right = Fe + "px";
2569
2568
  }
2570
- const V = w(), B = window.innerHeight - ie * 2, $ = d.scrollHeight, N = window.getComputedStyle(l), O = parseInt(N.borderTopWidth, 10), W = parseInt(N.paddingTop, 10), A = parseInt(N.borderBottomWidth, 10), D = parseInt(N.paddingBottom, 10), k = O + W + $ + D + A, ge = Math.min(g.offsetHeight * 5, k), oe = window.getComputedStyle(d), Me = parseInt(oe.paddingTop, 10), Le = parseInt(oe.paddingBottom, 10), le = E.top + E.height / 2 - ie, Ce = B - le, we = g.offsetHeight / 2, R = g.offsetTop + we, H = O + W + R, Y = k - H;
2569
+ const V = w(), B = window.innerHeight - ie * 2, $ = d.scrollHeight, N = window.getComputedStyle(l), O = parseInt(N.borderTopWidth, 10), W = parseInt(N.paddingTop, 10), A = parseInt(N.borderBottomWidth, 10), D = parseInt(N.paddingBottom, 10), k = O + W + $ + D + A, we = Math.min(g.offsetHeight * 5, k), re = window.getComputedStyle(d), Le = parseInt(re.paddingTop, 10), De = parseInt(re.paddingBottom, 10), le = E.top + E.height / 2 - ie, Ee = B - le, ye = g.offsetHeight / 2, R = g.offsetTop + ye, H = O + W + R, Y = k - H;
2571
2570
  if (H <= le) {
2572
2571
  const M = g === V[V.length - 1].ref.current;
2573
2572
  s.style.bottom = "0px";
2574
2573
  const L = l.clientHeight - d.offsetTop - d.offsetHeight, X = Math.max(
2575
- Ce,
2576
- we + // viewport might have padding bottom, include it to avoid a scrollable viewport
2577
- (M ? Le : 0) + L + A
2578
- ), J = H + X;
2579
- s.style.height = J + "px";
2574
+ Ee,
2575
+ ye + // viewport might have padding bottom, include it to avoid a scrollable viewport
2576
+ (M ? De : 0) + L + A
2577
+ ), ee = H + X;
2578
+ s.style.height = ee + "px";
2580
2579
  } else {
2581
2580
  const M = g === V[0].ref.current;
2582
2581
  s.style.top = "0px";
2583
2582
  const X = Math.max(
2584
2583
  le,
2585
2584
  O + d.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
2586
- (M ? Me : 0) + we
2585
+ (M ? Le : 0) + ye
2587
2586
  ) + Y;
2588
2587
  s.style.height = X + "px", d.scrollTop = H - le + d.offsetTop;
2589
2588
  }
2590
- s.style.margin = `${ie}px 0`, s.style.minHeight = ge + "px", s.style.maxHeight = B + "px", o == null || o(), requestAnimationFrame(() => m.current = !0);
2589
+ s.style.margin = `${ie}px 0`, s.style.minHeight = we + "px", s.style.maxHeight = B + "px", o == null || o(), requestAnimationFrame(() => m.current = !0);
2591
2590
  }
2592
2591
  }, [
2593
2592
  w,
@@ -2601,9 +2600,9 @@ var Zi = "SelectItemAlignedPosition", oo = u.forwardRef((e, t) => {
2601
2600
  i.dir,
2602
2601
  o
2603
2602
  ]);
2604
- q(() => x(), [x]);
2603
+ Z(() => x(), [x]);
2605
2604
  const [S, b] = u.useState();
2606
- q(() => {
2605
+ Z(() => {
2607
2606
  l && b(window.getComputedStyle(l).zIndex);
2608
2607
  }, [l]);
2609
2608
  const P = u.useCallback(
@@ -2613,7 +2612,7 @@ var Zi = "SelectItemAlignedPosition", oo = u.forwardRef((e, t) => {
2613
2612
  [x, y]
2614
2613
  );
2615
2614
  return /* @__PURE__ */ C(
2616
- Ji,
2615
+ os,
2617
2616
  {
2618
2617
  scope: n,
2619
2618
  contentWrapper: s,
@@ -2649,16 +2648,16 @@ var Zi = "SelectItemAlignedPosition", oo = u.forwardRef((e, t) => {
2649
2648
  }
2650
2649
  );
2651
2650
  });
2652
- oo.displayName = Zi;
2653
- var Qi = "SelectPopperPosition", St = u.forwardRef((e, t) => {
2651
+ ro.displayName = ts;
2652
+ var ns = "SelectPopperPosition", bt = u.forwardRef((e, t) => {
2654
2653
  const {
2655
2654
  __scopeSelect: n,
2656
2655
  align: o = "start",
2657
2656
  collisionPadding: r = ie,
2658
2657
  ...i
2659
- } = e, c = at(n);
2658
+ } = e, c = lt(n);
2660
2659
  return /* @__PURE__ */ C(
2661
- si,
2660
+ ui,
2662
2661
  {
2663
2662
  ...c,
2664
2663
  ...i,
@@ -2678,11 +2677,11 @@ var Qi = "SelectPopperPosition", St = u.forwardRef((e, t) => {
2678
2677
  }
2679
2678
  );
2680
2679
  });
2681
- St.displayName = Qi;
2682
- var [Ji, Ft] = _e(be, {}), bt = "SelectViewport", ro = u.forwardRef(
2680
+ bt.displayName = ns;
2681
+ var [os, Wt] = Me(Ce, {}), Ct = "SelectViewport", io = u.forwardRef(
2683
2682
  (e, t) => {
2684
- const { __scopeSelect: n, nonce: o, ...r } = e, i = ve(bt, n), c = Ft(bt, n), s = K(t, i.onViewportChange), a = u.useRef(0);
2685
- return /* @__PURE__ */ de(Rt, { children: [
2683
+ const { __scopeSelect: n, nonce: o, ...r } = e, i = ge(Ct, n), c = Wt(Ct, n), s = K(t, i.onViewportChange), a = u.useRef(0);
2684
+ return /* @__PURE__ */ de(At, { children: [
2686
2685
  /* @__PURE__ */ C(
2687
2686
  "style",
2688
2687
  {
@@ -2692,7 +2691,7 @@ var [Ji, Ft] = _e(be, {}), bt = "SelectViewport", ro = u.forwardRef(
2692
2691
  nonce: o
2693
2692
  }
2694
2693
  ),
2695
- /* @__PURE__ */ C(st.Slot, { scope: n, children: /* @__PURE__ */ C(
2694
+ /* @__PURE__ */ C(ct.Slot, { scope: n, children: /* @__PURE__ */ C(
2696
2695
  U.div,
2697
2696
  {
2698
2697
  "data-radix-select-viewport": "",
@@ -2727,22 +2726,22 @@ var [Ji, Ft] = _e(be, {}), bt = "SelectViewport", ro = u.forwardRef(
2727
2726
  ] });
2728
2727
  }
2729
2728
  );
2730
- ro.displayName = bt;
2731
- var io = "SelectGroup", [es, ts] = _e(io), ns = u.forwardRef(
2729
+ io.displayName = Ct;
2730
+ var so = "SelectGroup", [rs, is] = Me(so), ss = u.forwardRef(
2732
2731
  (e, t) => {
2733
- const { __scopeSelect: n, ...o } = e, r = Ot();
2734
- return /* @__PURE__ */ C(es, { scope: n, id: r, children: /* @__PURE__ */ C(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
2732
+ const { __scopeSelect: n, ...o } = e, r = Nt();
2733
+ return /* @__PURE__ */ C(rs, { scope: n, id: r, children: /* @__PURE__ */ C(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
2735
2734
  }
2736
2735
  );
2737
- ns.displayName = io;
2738
- var so = "SelectLabel", os = u.forwardRef(
2736
+ ss.displayName = so;
2737
+ var co = "SelectLabel", cs = u.forwardRef(
2739
2738
  (e, t) => {
2740
- const { __scopeSelect: n, ...o } = e, r = ts(so, n);
2739
+ const { __scopeSelect: n, ...o } = e, r = is(co, n);
2741
2740
  return /* @__PURE__ */ C(U.div, { id: r.id, ...o, ref: t });
2742
2741
  }
2743
2742
  );
2744
- os.displayName = so;
2745
- var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2743
+ cs.displayName = co;
2744
+ var ot = "SelectItem", [as, ao] = Me(ot), lo = u.forwardRef(
2746
2745
  (e, t) => {
2747
2746
  const {
2748
2747
  __scopeSelect: n,
@@ -2750,13 +2749,13 @@ var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2750
2749
  disabled: r = !1,
2751
2750
  textValue: i,
2752
2751
  ...c
2753
- } = e, s = he(nt, n), a = ve(nt, n), l = s.value === o, [p, f] = u.useState(i ?? ""), [w, m] = u.useState(!1), v = K(
2752
+ } = e, s = ve(ot, n), a = ge(ot, n), l = s.value === o, [p, f] = u.useState(i ?? ""), [w, m] = u.useState(!1), v = K(
2754
2753
  t,
2755
2754
  (h) => {
2756
2755
  var y;
2757
2756
  return (y = a.itemRefCallback) == null ? void 0 : y.call(a, h, o, r);
2758
2757
  }
2759
- ), d = Ot(), g = () => {
2758
+ ), d = Nt(), g = () => {
2760
2759
  r || (s.onValueChange(o), s.onOpenChange(!1));
2761
2760
  };
2762
2761
  if (o === "")
@@ -2764,7 +2763,7 @@ var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2764
2763
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
2765
2764
  );
2766
2765
  return /* @__PURE__ */ C(
2767
- rs,
2766
+ as,
2768
2767
  {
2769
2768
  scope: n,
2770
2769
  value: o,
@@ -2775,7 +2774,7 @@ var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2775
2774
  f((y) => y || ((h == null ? void 0 : h.textContent) ?? "").trim());
2776
2775
  }, []),
2777
2776
  children: /* @__PURE__ */ C(
2778
- st.ItemSlot,
2777
+ ct.ItemSlot,
2779
2778
  {
2780
2779
  scope: n,
2781
2780
  value: o,
@@ -2807,7 +2806,7 @@ var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2807
2806
  }),
2808
2807
  onKeyDown: z(c.onKeyDown, (h) => {
2809
2808
  var x;
2810
- ((x = a.searchRef) == null ? void 0 : x.current) !== "" && h.key === " " || (Ui.includes(h.key) && g(), h.key === " " && h.preventDefault());
2809
+ ((x = a.searchRef) == null ? void 0 : x.current) !== "" && h.key === " " || (ji.includes(h.key) && g(), h.key === " " && h.preventDefault());
2811
2810
  })
2812
2811
  }
2813
2812
  )
@@ -2817,10 +2816,10 @@ var nt = "SelectItem", [rs, co] = _e(nt), ao = u.forwardRef(
2817
2816
  );
2818
2817
  }
2819
2818
  );
2820
- ao.displayName = nt;
2821
- var Fe = "SelectItemText", lo = u.forwardRef(
2819
+ lo.displayName = ot;
2820
+ var We = "SelectItemText", uo = u.forwardRef(
2822
2821
  (e, t) => {
2823
- const { __scopeSelect: n, className: o, style: r, ...i } = e, c = he(Fe, n), s = ve(Fe, n), a = co(Fe, n), l = Xi(Fe, n), [p, f] = u.useState(null), w = K(
2822
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, c = ve(We, n), s = ge(We, n), a = ao(We, n), l = Zi(We, n), [p, f] = u.useState(null), w = K(
2824
2823
  t,
2825
2824
  (h) => f(h),
2826
2825
  a.onItemTextChange,
@@ -2832,23 +2831,23 @@ var Fe = "SelectItemText", lo = u.forwardRef(
2832
2831
  () => /* @__PURE__ */ C("option", { value: a.value, disabled: a.disabled, children: m }, a.value),
2833
2832
  [a.disabled, a.value, m]
2834
2833
  ), { onNativeOptionAdd: d, onNativeOptionRemove: g } = l;
2835
- return q(() => (d(v), () => g(v)), [d, g, v]), /* @__PURE__ */ de(Rt, { children: [
2834
+ return Z(() => (d(v), () => g(v)), [d, g, v]), /* @__PURE__ */ de(At, { children: [
2836
2835
  /* @__PURE__ */ C(U.span, { id: a.textId, ...i, ref: w }),
2837
- a.isSelected && c.valueNode && !c.valueNodeHasChildren ? At.createPortal(i.children, c.valueNode) : null
2836
+ a.isSelected && c.valueNode && !c.valueNodeHasChildren ? Tt.createPortal(i.children, c.valueNode) : null
2838
2837
  ] });
2839
2838
  }
2840
2839
  );
2841
- lo.displayName = Fe;
2842
- var uo = "SelectItemIndicator", fo = u.forwardRef(
2840
+ uo.displayName = We;
2841
+ var fo = "SelectItemIndicator", po = u.forwardRef(
2843
2842
  (e, t) => {
2844
2843
  const { __scopeSelect: n, ...o } = e;
2845
- return co(uo, n).isSelected ? /* @__PURE__ */ C(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
2844
+ return ao(fo, n).isSelected ? /* @__PURE__ */ C(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
2846
2845
  }
2847
2846
  );
2848
- fo.displayName = uo;
2849
- var Ct = "SelectScrollUpButton", po = u.forwardRef((e, t) => {
2850
- const n = ve(Ct, e.__scopeSelect), o = Ft(Ct, e.__scopeSelect), [r, i] = u.useState(!1), c = K(t, o.onScrollButtonChange);
2851
- return q(() => {
2847
+ po.displayName = fo;
2848
+ var Et = "SelectScrollUpButton", mo = u.forwardRef((e, t) => {
2849
+ const n = ge(Et, e.__scopeSelect), o = Wt(Et, e.__scopeSelect), [r, i] = u.useState(!1), c = K(t, o.onScrollButtonChange);
2850
+ return Z(() => {
2852
2851
  if (n.viewport && n.isPositioned) {
2853
2852
  let s = function() {
2854
2853
  const l = a.scrollTop > 0;
@@ -2858,7 +2857,7 @@ var Ct = "SelectScrollUpButton", po = u.forwardRef((e, t) => {
2858
2857
  return s(), a.addEventListener("scroll", s), () => a.removeEventListener("scroll", s);
2859
2858
  }
2860
2859
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ C(
2861
- ho,
2860
+ vo,
2862
2861
  {
2863
2862
  ...e,
2864
2863
  ref: c,
@@ -2869,10 +2868,10 @@ var Ct = "SelectScrollUpButton", po = u.forwardRef((e, t) => {
2869
2868
  }
2870
2869
  ) : null;
2871
2870
  });
2872
- po.displayName = Ct;
2873
- var Et = "SelectScrollDownButton", mo = u.forwardRef((e, t) => {
2874
- const n = ve(Et, e.__scopeSelect), o = Ft(Et, e.__scopeSelect), [r, i] = u.useState(!1), c = K(t, o.onScrollButtonChange);
2875
- return q(() => {
2871
+ mo.displayName = Et;
2872
+ var Pt = "SelectScrollDownButton", ho = u.forwardRef((e, t) => {
2873
+ const n = ge(Pt, e.__scopeSelect), o = Wt(Pt, e.__scopeSelect), [r, i] = u.useState(!1), c = K(t, o.onScrollButtonChange);
2874
+ return Z(() => {
2876
2875
  if (n.viewport && n.isPositioned) {
2877
2876
  let s = function() {
2878
2877
  const l = a.scrollHeight - a.clientHeight, p = Math.ceil(a.scrollTop) < l;
@@ -2882,7 +2881,7 @@ var Et = "SelectScrollDownButton", mo = u.forwardRef((e, t) => {
2882
2881
  return s(), a.addEventListener("scroll", s), () => a.removeEventListener("scroll", s);
2883
2882
  }
2884
2883
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ C(
2885
- ho,
2884
+ vo,
2886
2885
  {
2887
2886
  ...e,
2888
2887
  ref: c,
@@ -2893,12 +2892,12 @@ var Et = "SelectScrollDownButton", mo = u.forwardRef((e, t) => {
2893
2892
  }
2894
2893
  ) : null;
2895
2894
  });
2896
- mo.displayName = Et;
2897
- var ho = u.forwardRef((e, t) => {
2898
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = ve("SelectScrollButton", n), c = u.useRef(null), s = ct(n), a = u.useCallback(() => {
2895
+ ho.displayName = Pt;
2896
+ var vo = u.forwardRef((e, t) => {
2897
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = ge("SelectScrollButton", n), c = u.useRef(null), s = at(n), a = u.useCallback(() => {
2899
2898
  c.current !== null && (window.clearInterval(c.current), c.current = null);
2900
2899
  }, []);
2901
- return u.useEffect(() => () => a(), [a]), q(() => {
2900
+ return u.useEffect(() => () => a(), [a]), Z(() => {
2902
2901
  var p;
2903
2902
  const l = s().find((f) => f.ref.current === document.activeElement);
2904
2903
  (p = l == null ? void 0 : l.ref.current) == null || p.scrollIntoView({ block: "nearest" });
@@ -2921,26 +2920,26 @@ var ho = u.forwardRef((e, t) => {
2921
2920
  })
2922
2921
  }
2923
2922
  );
2924
- }), is = "SelectSeparator", ss = u.forwardRef(
2923
+ }), ls = "SelectSeparator", us = u.forwardRef(
2925
2924
  (e, t) => {
2926
2925
  const { __scopeSelect: n, ...o } = e;
2927
2926
  return /* @__PURE__ */ C(U.div, { "aria-hidden": !0, ...o, ref: t });
2928
2927
  }
2929
2928
  );
2930
- ss.displayName = is;
2931
- var Pt = "SelectArrow", cs = u.forwardRef(
2929
+ us.displayName = ls;
2930
+ var Rt = "SelectArrow", ds = u.forwardRef(
2932
2931
  (e, t) => {
2933
- const { __scopeSelect: n, ...o } = e, r = at(n), i = he(Pt, n), c = ve(Pt, n);
2934
- return i.open && c.position === "popper" ? /* @__PURE__ */ C(ci, { ...r, ...o, ref: t }) : null;
2932
+ const { __scopeSelect: n, ...o } = e, r = lt(n), i = ve(Rt, n), c = ge(Rt, n);
2933
+ return i.open && c.position === "popper" ? /* @__PURE__ */ C(di, { ...r, ...o, ref: t }) : null;
2935
2934
  }
2936
2935
  );
2937
- cs.displayName = Pt;
2938
- function vo(e) {
2936
+ ds.displayName = Rt;
2937
+ function go(e) {
2939
2938
  return e === "" || e === void 0;
2940
2939
  }
2941
- var go = u.forwardRef(
2940
+ var wo = u.forwardRef(
2942
2941
  (e, t) => {
2943
- const { value: n, ...o } = e, r = u.useRef(null), i = K(t, r), c = Ro(n);
2942
+ const { value: n, ...o } = e, r = u.useRef(null), i = K(t, r), c = No(n);
2944
2943
  return u.useEffect(() => {
2945
2944
  const s = r.current, a = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
2946
2945
  a,
@@ -2950,12 +2949,12 @@ var go = u.forwardRef(
2950
2949
  const f = new Event("change", { bubbles: !0 });
2951
2950
  p.call(s, n), s.dispatchEvent(f);
2952
2951
  }
2953
- }, [c, n]), /* @__PURE__ */ C(Wn, { asChild: !0, children: /* @__PURE__ */ C("select", { ...o, ref: i, defaultValue: n }) });
2952
+ }, [c, n]), /* @__PURE__ */ C(Hn, { asChild: !0, children: /* @__PURE__ */ C("select", { ...o, ref: i, defaultValue: n }) });
2954
2953
  }
2955
2954
  );
2956
- go.displayName = "BubbleSelect";
2957
- function wo(e) {
2958
- const t = xe(e), n = u.useRef(""), o = u.useRef(0), r = u.useCallback(
2955
+ wo.displayName = "BubbleSelect";
2956
+ function yo(e) {
2957
+ const t = Se(e), n = u.useRef(""), o = u.useRef(0), r = u.useCallback(
2959
2958
  (c) => {
2960
2959
  const s = n.current + c;
2961
2960
  t(s), function a(l) {
@@ -2968,40 +2967,95 @@ function wo(e) {
2968
2967
  }, []);
2969
2968
  return u.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, i];
2970
2969
  }
2971
- function yo(e, t, n) {
2970
+ function xo(e, t, n) {
2972
2971
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
2973
- let c = as(e, Math.max(i, 0));
2972
+ let c = fs(e, Math.max(i, 0));
2974
2973
  r.length === 1 && (c = c.filter((l) => l !== n));
2975
2974
  const a = c.find(
2976
2975
  (l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
2977
2976
  );
2978
2977
  return a !== n ? a : void 0;
2979
2978
  }
2980
- function as(e, t) {
2979
+ function fs(e, t) {
2981
2980
  return e.map((n, o) => e[(t + o) % e.length]);
2982
2981
  }
2983
- var ls = Xn, us = Gn, ds = Zn, fs = Qn, ps = Jn, ms = eo, hs = ro, vs = ao, gs = lo, ws = fo, ys = po, xs = mo;
2984
- function ln(e) {
2985
- return dn({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" } }] })(e);
2986
- }
2987
- function Ss(e) {
2988
- return dn({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z" } }] })(e);
2989
- }
2990
- const bs = "_content_18ito_1", Cs = "_option_18ito_1", Es = "_trigger_18ito_1", Ps = "_small_18ito_5", Rs = "_large_18ito_9", As = "_fullWidth_18ito_118", Ts = "_icon_18ito_122", Os = "_app_18ito_1", Ns = "_arrow_18ito_142", Z = {
2991
- content: bs,
2992
- option: Cs,
2993
- trigger: Es,
2994
- small: Ps,
2995
- large: Rs,
2996
- fullWidth: As,
2997
- icon: Ts,
2998
- app: Os,
2999
- arrow: Ns
3000
- }, Is = {
2982
+ var ps = Xn, ms = qn, hs = Qn, vs = Jn, gs = eo, ws = to, ys = io, xs = lo, Ss = uo, bs = po, Cs = mo, Es = ho, So = {
2983
+ color: void 0,
2984
+ size: void 0,
2985
+ className: void 0,
2986
+ style: void 0,
2987
+ attr: void 0
2988
+ }, un = j.createContext && j.createContext(So), fe = function() {
2989
+ return fe = Object.assign || function(e) {
2990
+ for (var t, n = 1, o = arguments.length; n < o; n++) {
2991
+ t = arguments[n];
2992
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
2993
+ }
2994
+ return e;
2995
+ }, fe.apply(this, arguments);
2996
+ }, Ps = function(e, t) {
2997
+ var n = {};
2998
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
2999
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
3000
+ t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
3001
+ return n;
3002
+ };
3003
+ function bo(e) {
3004
+ return e && e.map(function(t, n) {
3005
+ return j.createElement(t.tag, fe({
3006
+ key: n
3007
+ }, t.attr), bo(t.child));
3008
+ });
3009
+ }
3010
+ function Co(e) {
3011
+ return function(t) {
3012
+ return j.createElement(Rs, fe({
3013
+ attr: fe({}, e.attr)
3014
+ }, t), bo(e.child));
3015
+ };
3016
+ }
3017
+ function Rs(e) {
3018
+ var t = function(n) {
3019
+ var o = e.attr, r = e.size, i = e.title, c = Ps(e, ["attr", "size", "title"]), s = r || n.size || "1em", a;
3020
+ return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), j.createElement("svg", fe({
3021
+ stroke: "currentColor",
3022
+ fill: "currentColor",
3023
+ strokeWidth: "0"
3024
+ }, n.attr, o, c, {
3025
+ className: a,
3026
+ style: fe(fe({
3027
+ color: e.color || n.color
3028
+ }, n.style), e.style),
3029
+ height: s,
3030
+ width: s,
3031
+ xmlns: "http://www.w3.org/2000/svg"
3032
+ }), i && j.createElement("title", null, i), e.children);
3033
+ };
3034
+ return un !== void 0 ? j.createElement(un.Consumer, null, function(n) {
3035
+ return t(n);
3036
+ }) : t(So);
3037
+ }
3038
+ function dn(e) {
3039
+ return Co({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" } }] })(e);
3040
+ }
3041
+ function As(e) {
3042
+ return Co({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z" } }] })(e);
3043
+ }
3044
+ const Ts = "_content_18ito_1", Os = "_option_18ito_1", Ns = "_trigger_18ito_1", Is = "_small_18ito_5", _s = "_large_18ito_9", Ms = "_fullWidth_18ito_118", Ls = "_icon_18ito_122", Ds = "_app_18ito_1", ks = "_arrow_18ito_142", Q = {
3045
+ content: Ts,
3046
+ option: Os,
3047
+ trigger: Ns,
3048
+ small: Is,
3049
+ large: _s,
3050
+ fullWidth: Ms,
3051
+ icon: Ls,
3052
+ app: Ds,
3053
+ arrow: ks
3054
+ }, Bs = {
3001
3055
  small: "xxsmall",
3002
3056
  normal: "xsmall",
3003
3057
  large: "normal"
3004
- }, $s = re.forwardRef(function(t) {
3058
+ }, js = j.forwardRef(function(t) {
3005
3059
  const {
3006
3060
  value: n,
3007
3061
  options: o,
@@ -3011,30 +3065,30 @@ const bs = "_content_18ito_1", Cs = "_option_18ito_1", Es = "_trigger_18ito_1",
3011
3065
  disabled: s = !1,
3012
3066
  fullWidth: a = !1,
3013
3067
  className: l
3014
- } = t, [p, f] = re.useState(!1), w = Ht(
3068
+ } = t, [p, f] = j.useState(!1), w = Vt(
3015
3069
  l,
3016
- Z.trigger,
3017
- Z[i],
3070
+ Q.trigger,
3071
+ Q[i],
3018
3072
  {
3019
- [Z.disabled]: s,
3020
- [Z.fullWidth]: a
3073
+ [Q.disabled]: s,
3074
+ [Q.fullWidth]: a
3021
3075
  }
3022
3076
  );
3023
- return /* @__PURE__ */ de(ls, { value: n, onValueChange: r, onOpenChange: f, open: p, children: [
3024
- /* @__PURE__ */ de(us, { disabled: s, className: w, children: [
3025
- /* @__PURE__ */ C(ds, { placeholder: c }),
3026
- /* @__PURE__ */ C(fs, { className: Z.icon, children: /* @__PURE__ */ C(ln, {}) })
3077
+ return /* @__PURE__ */ de(ps, { value: n, onValueChange: r, onOpenChange: f, open: p, children: [
3078
+ /* @__PURE__ */ de(ms, { disabled: s, className: w, children: [
3079
+ /* @__PURE__ */ C(hs, { placeholder: c }),
3080
+ /* @__PURE__ */ C(vs, { className: Q.icon, children: /* @__PURE__ */ C(dn, {}) })
3027
3081
  ] }),
3028
- /* @__PURE__ */ C(ps, { children: /* @__PURE__ */ de(ms, { className: Z.content, children: [
3029
- /* @__PURE__ */ C(ys, { className: Z.arrow, children: /* @__PURE__ */ C(Ss, {}) }),
3030
- /* @__PURE__ */ C(hs, { children: o.map((m) => /* @__PURE__ */ de(vs, { value: m.value, className: Ht(Z.option, Z[i]), children: [
3031
- /* @__PURE__ */ C(gs, { children: m.label }),
3032
- /* @__PURE__ */ C(ws, { className: Z.indicator, children: /* @__PURE__ */ C(No, { name: "Tick", size: Is[i] }) })
3082
+ /* @__PURE__ */ C(gs, { children: /* @__PURE__ */ de(ws, { className: Q.content, children: [
3083
+ /* @__PURE__ */ C(Cs, { className: Q.arrow, children: /* @__PURE__ */ C(As, {}) }),
3084
+ /* @__PURE__ */ C(ys, { children: o.map((m) => /* @__PURE__ */ de(xs, { value: m.value, className: Vt(Q.option, Q[i]), children: [
3085
+ /* @__PURE__ */ C(Ss, { children: m.label }),
3086
+ /* @__PURE__ */ C(bs, { className: Q.indicator, children: /* @__PURE__ */ C(Lo, { name: "Tick", size: Bs[i] }) })
3033
3087
  ] }, m.value)) }),
3034
- /* @__PURE__ */ C(xs, { className: Z.arrow, children: /* @__PURE__ */ C(ln, {}) })
3088
+ /* @__PURE__ */ C(Es, { className: Q.arrow, children: /* @__PURE__ */ C(dn, {}) })
3035
3089
  ] }) })
3036
3090
  ] });
3037
3091
  });
3038
3092
  export {
3039
- $s as Select
3093
+ js as Select
3040
3094
  };