highsoft-ui 1.0.15 → 1.0.17

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,14 +1,14 @@
1
- import { jsx as C, jsxs as J, Fragment as Ut } from "react/jsx-runtime";
2
- import { z as Gn } from "../../index-CMegByeX.js";
1
+ import { jsx as C, jsxs as Q, Fragment as Ut } from "react/jsx-runtime";
2
+ import { z as Qn } from "../../index-CMegByeX.js";
3
3
  import * as a from "react";
4
- import { useState as Qn, useLayoutEffect as Jn, useEffect as er } from "react";
4
+ import { useState as Jn, useLayoutEffect as er, useEffect as tr } from "react";
5
5
  import { _ as xe } from "../../extends-hS2Bh-Yp.js";
6
- import { c as tr } from "../../clsx-OuTLNxxd.js";
7
- import { Button as nr } from "../Button/index.js";
8
- import { useMounted as rr } from "../../utils.js";
6
+ import { c as nr } from "../../clsx-OuTLNxxd.js";
7
+ import { Button as rr } from "../Button/index.js";
8
+ import { useMounted as or } from "../../utils.js";
9
9
  import * as zt from "react-dom";
10
- import or from "react-dom";
11
- var ir = function(t) {
10
+ import ir from "react-dom";
11
+ var sr = function(t) {
12
12
  return /* @__PURE__ */ C("svg", xe({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 24,
@@ -24,7 +24,7 @@ var ir = function(t) {
24
24
  d: "M20 6 9 17l-5-5"
25
25
  })
26
26
  }));
27
- }, sr = function(t) {
27
+ }, cr = function(t) {
28
28
  return /* @__PURE__ */ C("svg", xe({
29
29
  xmlns: "http://www.w3.org/2000/svg",
30
30
  width: 24,
@@ -40,7 +40,7 @@ var ir = function(t) {
40
40
  d: "M15 17v4H9v-4m-3.8 0h13.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 15.4802 22 14.9201 22 13.8V6.2c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 3 19.9201 3 18.8 3H5.2c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C2 4.5198 2 5.08 2 6.2v7.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874C3.5198 17 4.08 17 5.2 17"
41
41
  })
42
42
  }));
43
- }, cr = function(t) {
43
+ }, ar = function(t) {
44
44
  return /* @__PURE__ */ C("svg", xe({
45
45
  xmlns: "http://www.w3.org/2000/svg",
46
46
  width: 24,
@@ -56,7 +56,7 @@ var ir = function(t) {
56
56
  d: "M21.9548 12.9564c-1.3769 2.4153-3.9757 4.0437-6.9548 4.0437-4.4183 0-8-3.5817-8-8 0-2.9794 1.6287-5.5783 4.0443-6.9552C5.9698 2.5261 2 6.7994 2 11.9998c0 5.5229 4.4772 10 10 10 5.2002 0 9.4733-3.9693 9.9548-9.0434"
57
57
  })
58
58
  }));
59
- }, ar = function(t) {
59
+ }, lr = function(t) {
60
60
  return /* @__PURE__ */ C("svg", xe({
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  width: 24,
@@ -72,7 +72,7 @@ var ir = function(t) {
72
72
  d: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
73
73
  })
74
74
  }));
75
- }, lr = function(t) {
75
+ }, ur = function(t) {
76
76
  return /* @__PURE__ */ C("svg", xe({
77
77
  xmlns: "http://www.w3.org/2000/svg",
78
78
  width: 24,
@@ -94,7 +94,7 @@ function Et(e, t) {
94
94
  return e(t);
95
95
  e != null && (e.current = t);
96
96
  }
97
- function ur(...e) {
97
+ function jt(...e) {
98
98
  return (t) => {
99
99
  let n = !1;
100
100
  const r = e.map((o) => {
@@ -110,11 +110,11 @@ function ur(...e) {
110
110
  };
111
111
  };
112
112
  }
113
- function q(...e) {
114
- return a.useCallback(ur(...e), e);
113
+ function re(...e) {
114
+ return a.useCallback(jt(...e), e);
115
115
  }
116
116
  // @__NO_SIDE_EFFECTS__
117
- function jt(e) {
117
+ function Yt(e) {
118
118
  const t = /* @__PURE__ */ fr(e), n = a.forwardRef((r, o) => {
119
119
  const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(hr);
120
120
  if (u) {
@@ -128,10 +128,10 @@ function jt(e) {
128
128
  // @__NO_SIDE_EFFECTS__
129
129
  function fr(e) {
130
130
  const t = a.forwardRef((n, r) => {
131
- const { children: o, ...i } = n, s = a.isValidElement(o) ? mr(o) : void 0, c = q(s, r);
131
+ const { children: o, ...i } = n;
132
132
  if (a.isValidElement(o)) {
133
- const u = pr(i, o.props);
134
- return o.type !== a.Fragment && (u.ref = c), a.cloneElement(o, u);
133
+ const s = mr(o), c = pr(i, o.props);
134
+ return o.type !== a.Fragment && (c.ref = r ? jt(r, s) : s), a.cloneElement(o, c);
135
135
  }
136
136
  return a.Children.count(o) > 1 ? a.Children.only(null) : null;
137
137
  });
@@ -175,8 +175,8 @@ var vr = [
175
175
  "span",
176
176
  "svg",
177
177
  "ul"
178
- ], G = vr.reduce((e, t) => {
179
- const n = /* @__PURE__ */ jt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
178
+ ], Z = vr.reduce((e, t) => {
179
+ const n = /* @__PURE__ */ Yt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
180
180
  const { asChild: s, ...c } = o, u = s ? n : t;
181
181
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(u, { ...c, ref: i });
182
182
  });
@@ -185,7 +185,7 @@ var vr = [
185
185
  function gr(e, t) {
186
186
  e && zt.flushSync(() => e.dispatchEvent(t));
187
187
  }
188
- function Yt(e, t = []) {
188
+ function Xt(e, t = []) {
189
189
  let n = [];
190
190
  function r(i, s) {
191
191
  const c = a.createContext(s), u = n.length;
@@ -235,14 +235,14 @@ function yr(...e) {
235
235
  };
236
236
  return n.scopeName = t.scopeName, n;
237
237
  }
238
- function ee(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
238
+ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
239
239
  return function(o) {
240
240
  if (e == null || e(o), n === !1 || !o.defaultPrevented)
241
241
  return t == null ? void 0 : t(o);
242
242
  };
243
243
  }
244
- var te = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
245
- }, wr = a[" useInsertionEffect ".trim().toString()] || te;
244
+ var ee = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
245
+ }, wr = a[" useInsertionEffect ".trim().toString()] || ee;
246
246
  function br({
247
247
  prop: e,
248
248
  defaultProp: t,
@@ -295,7 +295,7 @@ function Cr(e, t) {
295
295
  return a.useReducer((n, r) => t[n][r] ?? n, e);
296
296
  }
297
297
  var ot = (e) => {
298
- const { present: t, children: n } = e, r = Pr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = q(r.ref, Ar(o));
298
+ const { present: t, children: n } = e, r = Pr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, Ar(o));
299
299
  return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
300
300
  };
301
301
  ot.displayName = "Presence";
@@ -316,13 +316,13 @@ function Pr(e) {
316
316
  return a.useEffect(() => {
317
317
  const l = Ae(r.current);
318
318
  i.current = c === "mounted" ? l : "none";
319
- }, [c]), te(() => {
319
+ }, [c]), ee(() => {
320
320
  const l = r.current, f = o.current;
321
321
  if (f !== e) {
322
322
  const p = i.current, m = Ae(l);
323
323
  e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && p !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
324
324
  }
325
- }, [e, u]), te(() => {
325
+ }, [e, u]), ee(() => {
326
326
  if (t) {
327
327
  let l;
328
328
  const f = t.ownerDocument.defaultView ?? window, d = (m) => {
@@ -360,7 +360,7 @@ var Sr = a[" useId ".trim().toString()] || (() => {
360
360
  }), Rr = 0;
361
361
  function Or(e) {
362
362
  const [t, n] = a.useState(Sr());
363
- return te(() => {
363
+ return ee(() => {
364
364
  n((r) => r ?? String(Rr++));
365
365
  }, [e]), e || (t ? `radix-${t}` : "");
366
366
  }
@@ -382,11 +382,11 @@ function Nr(e, t = globalThis == null ? void 0 : globalThis.document) {
382
382
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
383
383
  }, [n, t]);
384
384
  }
385
- var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLayer.pointerDownOutside", kr = "dismissableLayer.focusOutside", Ct, Xt = a.createContext({
385
+ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLayer.pointerDownOutside", kr = "dismissableLayer.focusOutside", Ct, Kt = a.createContext({
386
386
  layers: /* @__PURE__ */ new Set(),
387
387
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
388
388
  branches: /* @__PURE__ */ new Set()
389
- }), Kt = a.forwardRef(
389
+ }), qt = a.forwardRef(
390
390
  (e, t) => {
391
391
  const {
392
392
  disableOutsidePointerEvents: n = !1,
@@ -396,7 +396,7 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
396
396
  onInteractOutside: s,
397
397
  onDismiss: c,
398
398
  ...u
399
- } = e, l = a.useContext(Xt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = q(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = _r((P) => {
399
+ } = e, l = a.useContext(Kt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = re(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = _r((P) => {
400
400
  const R = P.target, N = [...l.branches].some((O) => O.contains(R));
401
401
  !w || N || (o == null || o(P), s == null || s(P), P.defaultPrevented || c == null || c());
402
402
  }, p), A = Fr((P) => {
@@ -416,7 +416,7 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
416
416
  const P = () => m({});
417
417
  return document.addEventListener(Je, P), () => document.removeEventListener(Je, P);
418
418
  }, []), /* @__PURE__ */ C(
419
- G.div,
419
+ Z.div,
420
420
  {
421
421
  ...u,
422
422
  ref: g,
@@ -424,9 +424,9 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
424
424
  pointerEvents: b ? w ? "auto" : "none" : void 0,
425
425
  ...e.style
426
426
  },
427
- onFocusCapture: ee(e.onFocusCapture, A.onFocusCapture),
428
- onBlurCapture: ee(e.onBlurCapture, A.onBlurCapture),
429
- onPointerDownCapture: ee(
427
+ onFocusCapture: J(e.onFocusCapture, A.onFocusCapture),
428
+ onBlurCapture: J(e.onBlurCapture, A.onBlurCapture),
429
+ onPointerDownCapture: J(
430
430
  e.onPointerDownCapture,
431
431
  E.onPointerDownCapture
432
432
  )
@@ -434,16 +434,16 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
434
434
  );
435
435
  }
436
436
  );
437
- Kt.displayName = Mr;
437
+ qt.displayName = Mr;
438
438
  var Lr = "DismissableLayerBranch", Dr = a.forwardRef((e, t) => {
439
- const n = a.useContext(Xt), r = a.useRef(null), o = q(t, r);
439
+ const n = a.useContext(Kt), r = a.useRef(null), o = re(t, r);
440
440
  return a.useEffect(() => {
441
441
  const i = r.current;
442
442
  if (i)
443
443
  return n.branches.add(i), () => {
444
444
  n.branches.delete(i);
445
445
  };
446
- }, [n.branches]), /* @__PURE__ */ C(G.div, { ...e, ref: o });
446
+ }, [n.branches]), /* @__PURE__ */ C(Z.div, { ...e, ref: o });
447
447
  });
448
448
  Dr.displayName = Lr;
449
449
  function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -498,14 +498,14 @@ function Zt(e, t, n, { discrete: r }) {
498
498
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
499
499
  t && o.addEventListener(e, t, { once: !0 }), r ? gr(o, i) : o.dispatchEvent(i);
500
500
  }
501
- var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At = { bubbles: !1, cancelable: !0 }, Ir = "FocusScope", qt = a.forwardRef((e, t) => {
501
+ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At = { bubbles: !1, cancelable: !0 }, Ir = "FocusScope", Gt = a.forwardRef((e, t) => {
502
502
  const {
503
503
  loop: n = !1,
504
504
  trapped: r = !1,
505
505
  onMountAutoFocus: o,
506
506
  onUnmountAutoFocus: i,
507
507
  ...s
508
- } = e, [c, u] = a.useState(null), l = de(o), f = de(i), d = a.useRef(null), p = q(t, (h) => u(h)), m = a.useRef({
508
+ } = e, [c, u] = a.useState(null), l = de(o), f = de(i), d = a.useRef(null), p = re(t, (h) => u(h)), m = a.useRef({
509
509
  paused: !1,
510
510
  pause() {
511
511
  this.paused = !0;
@@ -519,15 +519,15 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
519
519
  let h = function(b) {
520
520
  if (m.paused || !c) return;
521
521
  const w = b.target;
522
- c.contains(w) ? d.current = w : Q(d.current, { select: !0 });
522
+ c.contains(w) ? d.current = w : G(d.current, { select: !0 });
523
523
  }, v = function(b) {
524
524
  if (m.paused || !c) return;
525
525
  const w = b.relatedTarget;
526
- w !== null && (c.contains(w) || Q(d.current, { select: !0 }));
526
+ w !== null && (c.contains(w) || G(d.current, { select: !0 }));
527
527
  }, y = function(b) {
528
528
  if (document.activeElement === document.body)
529
529
  for (const E of b)
530
- E.removedNodes.length > 0 && Q(c);
530
+ E.removedNodes.length > 0 && G(c);
531
531
  };
532
532
  document.addEventListener("focusin", h), document.addEventListener("focusout", v);
533
533
  const x = new MutationObserver(y);
@@ -541,12 +541,12 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
541
541
  const h = document.activeElement;
542
542
  if (!c.contains(h)) {
543
543
  const y = new CustomEvent(Ue, At);
544
- c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (Wr(Ur(Gt(c)), { select: !0 }), document.activeElement === h && Q(c));
544
+ c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (Wr(Ur(Qt(c)), { select: !0 }), document.activeElement === h && G(c));
545
545
  }
546
546
  return () => {
547
547
  c.removeEventListener(Ue, l), setTimeout(() => {
548
548
  const y = new CustomEvent(ze, At);
549
- c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || Q(h ?? document.body, { select: !0 }), c.removeEventListener(ze, f), Rt.remove(m);
549
+ c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || G(h ?? document.body, { select: !0 }), c.removeEventListener(ze, f), Rt.remove(m);
550
550
  }, 0);
551
551
  };
552
552
  }
@@ -557,24 +557,24 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
557
557
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
558
558
  if (v && y) {
559
559
  const x = h.currentTarget, [b, w] = Br(x);
560
- b && w ? !h.shiftKey && y === w ? (h.preventDefault(), n && Q(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && Q(w, { select: !0 })) : y === x && h.preventDefault();
560
+ b && w ? !h.shiftKey && y === w ? (h.preventDefault(), n && G(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && G(w, { select: !0 })) : y === x && h.preventDefault();
561
561
  }
562
562
  },
563
563
  [n, r, m.paused]
564
564
  );
565
- return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
565
+ return /* @__PURE__ */ C(Z.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
566
566
  });
567
- qt.displayName = Ir;
567
+ Gt.displayName = Ir;
568
568
  function Wr(e, { select: t = !1 } = {}) {
569
569
  const n = document.activeElement;
570
570
  for (const r of e)
571
- if (Q(r, { select: t }), document.activeElement !== n) return;
571
+ if (G(r, { select: t }), document.activeElement !== n) return;
572
572
  }
573
573
  function Br(e) {
574
- const t = Gt(e), n = St(t, e), r = St(t.reverse(), e);
574
+ const t = Qt(e), n = St(t, e), r = St(t.reverse(), e);
575
575
  return [n, r];
576
576
  }
577
- function Gt(e) {
577
+ function Qt(e) {
578
578
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
579
579
  acceptNode: (r) => {
580
580
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -600,7 +600,7 @@ function $r(e, { upTo: t }) {
600
600
  function Hr(e) {
601
601
  return e instanceof HTMLInputElement && "select" in e;
602
602
  }
603
- function Q(e, { select: t = !1 } = {}) {
603
+ function G(e, { select: t = !1 } = {}) {
604
604
  if (e && e.focus) {
605
605
  const n = document.activeElement;
606
606
  e.focus({ preventScroll: !0 }), e !== n && Hr(e) && t && e.select();
@@ -627,14 +627,14 @@ function Ot(e, t) {
627
627
  function Ur(e) {
628
628
  return e.filter((t) => t.tagName !== "A");
629
629
  }
630
- var zr = "Portal", Qt = a.forwardRef((e, t) => {
630
+ var zr = "Portal", Jt = a.forwardRef((e, t) => {
631
631
  var c;
632
632
  const { container: n, ...r } = e, [o, i] = a.useState(!1);
633
- te(() => i(!0), []);
633
+ ee(() => i(!0), []);
634
634
  const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
635
- return s ? or.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
635
+ return s ? ir.createPortal(/* @__PURE__ */ C(Z.div, { ...r, ref: t }), s) : null;
636
636
  });
637
- Qt.displayName = zr;
637
+ Jt.displayName = zr;
638
638
  var je = 0;
639
639
  function jr() {
640
640
  a.useEffect(() => {
@@ -657,7 +657,7 @@ var U = function() {
657
657
  return t;
658
658
  }, U.apply(this, arguments);
659
659
  };
660
- function Jt(e, t) {
660
+ function en(e, t) {
661
661
  var n = {};
662
662
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
663
663
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -674,8 +674,8 @@ var Te = "right-scroll-bar-position", ke = "width-before-scroll-bar", Xr = "with
674
674
  function Ye(e, t) {
675
675
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
676
676
  }
677
- function Zr(e, t) {
678
- var n = Qn(function() {
677
+ function qr(e, t) {
678
+ var n = Jn(function() {
679
679
  return {
680
680
  // value
681
681
  value: e,
@@ -695,14 +695,14 @@ function Zr(e, t) {
695
695
  })[0];
696
696
  return n.callback = t, n.facade;
697
697
  }
698
- var qr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Mt = /* @__PURE__ */ new WeakMap();
698
+ var Zr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Mt = /* @__PURE__ */ new WeakMap();
699
699
  function Gr(e, t) {
700
- var n = Zr(null, function(r) {
700
+ var n = qr(null, function(r) {
701
701
  return e.forEach(function(o) {
702
702
  return Ye(o, r);
703
703
  });
704
704
  });
705
- return qr(function() {
705
+ return Zr(function() {
706
706
  var r = Mt.get(n);
707
707
  if (r) {
708
708
  var o = new Set(r), i = new Set(e), s = n.current;
@@ -778,8 +778,8 @@ function eo(e) {
778
778
  var t = Jr(null);
779
779
  return t.options = U({ async: !0, ssr: !1 }, e), t;
780
780
  }
781
- var en = function(e) {
782
- var t = e.sideCar, n = Jt(e, ["sideCar"]);
781
+ var tn = function(e) {
782
+ var t = e.sideCar, n = en(e, ["sideCar"]);
783
783
  if (!t)
784
784
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
785
785
  var r = t.read();
@@ -787,21 +787,21 @@ var en = function(e) {
787
787
  throw new Error("Sidecar medium not found");
788
788
  return a.createElement(r, U({}, n));
789
789
  };
790
- en.isSideCarExport = !0;
790
+ tn.isSideCarExport = !0;
791
791
  function to(e, t) {
792
- return e.useMedium(t), en;
792
+ return e.useMedium(t), tn;
793
793
  }
794
- var tn = eo(), Xe = function() {
794
+ var nn = eo(), Xe = function() {
795
795
  }, We = a.forwardRef(function(e, t) {
796
796
  var n = a.useRef(null), r = a.useState({
797
797
  onScrollCapture: Xe,
798
798
  onWheelCapture: Xe,
799
799
  onTouchMoveCapture: Xe
800
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = Jt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Gr([n, t]), P = U(U({}, w), o);
800
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = en(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Gr([n, t]), P = U(U({}, w), o);
801
801
  return a.createElement(
802
802
  a.Fragment,
803
803
  null,
804
- f && a.createElement(E, { sideCar: tn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
804
+ f && a.createElement(E, { sideCar: nn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
805
805
  s ? a.cloneElement(a.Children.only(c), U(U({}, P), { ref: A })) : a.createElement(x, U({}, P, { className: u, ref: A }), c)
806
806
  );
807
807
  });
@@ -852,7 +852,7 @@ var so = function() {
852
852
  };
853
853
  }, [t && n]);
854
854
  };
855
- }, nn = function() {
855
+ }, rn = function() {
856
856
  var e = co(), t = function(n) {
857
857
  var r = n.styles, o = n.dynamic;
858
858
  return e(r, o), null;
@@ -878,7 +878,7 @@ var so = function() {
878
878
  right: t[2],
879
879
  gap: Math.max(0, r - n + t[2] - t[0])
880
880
  };
881
- }, fo = nn(), ue = "data-scroll-locked", ho = function(e, t, n, r) {
881
+ }, fo = rn(), ue = "data-scroll-locked", ho = function(e, t, n, r) {
882
882
  var o = e.left, i = e.top, s = e.right, c = e.gap;
883
883
  return n === void 0 && (n = "margin"), `
884
884
  .`.concat(Xr, ` {
@@ -953,7 +953,7 @@ if (typeof window < "u")
953
953
  }
954
954
  var ce = et ? { passive: !1 } : !1, vo = function(e) {
955
955
  return e.tagName === "TEXTAREA";
956
- }, rn = function(e, t) {
956
+ }, on = function(e, t) {
957
957
  if (!(e instanceof Element))
958
958
  return !1;
959
959
  var n = window.getComputedStyle(e);
@@ -963,16 +963,16 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
963
963
  !(n.overflowY === n.overflowX && !vo(e) && n[t] === "visible")
964
964
  );
965
965
  }, go = function(e) {
966
- return rn(e, "overflowY");
966
+ return on(e, "overflowY");
967
967
  }, yo = function(e) {
968
- return rn(e, "overflowX");
968
+ return on(e, "overflowX");
969
969
  }, kt = function(e, t) {
970
970
  var n = t.ownerDocument, r = t;
971
971
  do {
972
972
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
973
- var o = on(e, r);
973
+ var o = sn(e, r);
974
974
  if (o) {
975
- var i = sn(e, r), s = i[1], c = i[2];
975
+ var i = cn(e, r), s = i[1], c = i[2];
976
976
  if (s > c)
977
977
  return !0;
978
978
  }
@@ -993,17 +993,17 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
993
993
  n,
994
994
  r
995
995
  ];
996
- }, on = function(e, t) {
997
- return e === "v" ? go(t) : yo(t);
998
996
  }, sn = function(e, t) {
997
+ return e === "v" ? go(t) : yo(t);
998
+ }, cn = function(e, t) {
999
999
  return e === "v" ? wo(t) : bo(t);
1000
1000
  }, xo = function(e, t) {
1001
1001
  return e === "h" && t === "rtl" ? -1 : 1;
1002
1002
  }, Eo = function(e, t, n, r, o) {
1003
1003
  var i = xo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, p = 0;
1004
1004
  do {
1005
- var m = sn(e, c), g = m[0], h = m[1], v = m[2], y = h - v - i * g;
1006
- (g || y) && on(e, c) && (d += y, p += g), c = c.parentNode.host || c.parentNode;
1005
+ var m = cn(e, c), g = m[0], h = m[1], v = m[2], y = h - v - i * g;
1006
+ (g || y) && sn(e, c) && (d += y, p += g), c = c.parentNode.host || c.parentNode;
1007
1007
  } while (
1008
1008
  // portaled content
1009
1009
  !u && c !== document.body || // self content
@@ -1025,7 +1025,7 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
1025
1025
  `);
1026
1026
  }, Ao = 0, ae = [];
1027
1027
  function So(e) {
1028
- var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ao++)[0], i = a.useState(nn)[0], s = a.useRef(e);
1028
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ao++)[0], i = a.useState(rn)[0], s = a.useRef(e);
1029
1029
  a.useEffect(function() {
1030
1030
  s.current = e;
1031
1031
  }, [e]), a.useEffect(function() {
@@ -1111,23 +1111,23 @@ function Ro(e) {
1111
1111
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1112
1112
  return t;
1113
1113
  }
1114
- const Oo = to(tn, So);
1115
- var cn = a.forwardRef(function(e, t) {
1114
+ const Oo = to(nn, So);
1115
+ var an = a.forwardRef(function(e, t) {
1116
1116
  return a.createElement(We, U({}, e, { ref: t, sideCar: Oo }));
1117
1117
  });
1118
- cn.classNames = We.classNames;
1118
+ an.classNames = We.classNames;
1119
1119
  var No = function(e) {
1120
1120
  if (typeof document > "u")
1121
1121
  return null;
1122
1122
  var t = Array.isArray(e) ? e[0] : e;
1123
1123
  return t.ownerDocument.body;
1124
- }, le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, Ze = 0, an = function(e) {
1125
- return e && (e.host || an(e.parentNode));
1124
+ }, le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, qe = 0, ln = function(e) {
1125
+ return e && (e.host || ln(e.parentNode));
1126
1126
  }, Mo = function(e, t) {
1127
1127
  return t.map(function(n) {
1128
1128
  if (e.contains(n))
1129
1129
  return n;
1130
- var r = an(n);
1130
+ var r = ln(n);
1131
1131
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1132
1132
  }).filter(function(n) {
1133
1133
  return !!n;
@@ -1152,11 +1152,11 @@ var No = function(e) {
1152
1152
  }
1153
1153
  });
1154
1154
  };
1155
- return f(t), c.clear(), Ze++, function() {
1155
+ return f(t), c.clear(), qe++, function() {
1156
1156
  s.forEach(function(d) {
1157
1157
  var p = le.get(d) - 1, m = i.get(d) - 1;
1158
1158
  le.set(d, p), i.set(d, m), p || (Oe.has(d) || d.removeAttribute(r), Oe.delete(d)), m || d.removeAttribute(n);
1159
- }), Ze--, Ze || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {});
1159
+ }), qe--, qe || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {});
1160
1160
  };
1161
1161
  }, ko = function(e, t, n) {
1162
1162
  n === void 0 && (n = "data-aria-hidden");
@@ -1167,7 +1167,7 @@ var No = function(e) {
1167
1167
  };
1168
1168
  function Lo(e) {
1169
1169
  const [t, n] = a.useState(void 0);
1170
- return te(() => {
1170
+ return ee(() => {
1171
1171
  if (e) {
1172
1172
  n({ width: e.offsetWidth, height: e.offsetHeight });
1173
1173
  const r = new ResizeObserver((o) => {
@@ -1187,7 +1187,7 @@ function Lo(e) {
1187
1187
  n(void 0);
1188
1188
  }, [e]), t;
1189
1189
  }
1190
- const Do = ["top", "right", "bottom", "left"], ne = Math.min, B = Math.max, De = Math.round, Me = Math.floor, z = (e) => ({
1190
+ const Do = ["top", "right", "bottom", "left"], te = Math.min, B = Math.max, De = Math.round, Me = Math.floor, z = (e) => ({
1191
1191
  x: e,
1192
1192
  y: e
1193
1193
  }), _o = {
@@ -1200,12 +1200,12 @@ const Do = ["top", "right", "bottom", "left"], ne = Math.min, B = Math.max, De =
1200
1200
  end: "start"
1201
1201
  };
1202
1202
  function tt(e, t, n) {
1203
- return B(e, ne(t, n));
1203
+ return B(e, te(t, n));
1204
1204
  }
1205
1205
  function K(e, t) {
1206
1206
  return typeof e == "function" ? e(t) : e;
1207
1207
  }
1208
- function Z(e) {
1208
+ function q(e) {
1209
1209
  return e.split("-")[0];
1210
1210
  }
1211
1211
  function me(e) {
@@ -1218,7 +1218,7 @@ function st(e) {
1218
1218
  return e === "y" ? "height" : "width";
1219
1219
  }
1220
1220
  function X(e) {
1221
- return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
1221
+ return ["top", "bottom"].includes(q(e)) ? "y" : "x";
1222
1222
  }
1223
1223
  function ct(e) {
1224
1224
  return it(X(e));
@@ -1251,7 +1251,7 @@ function Bo(e, t, n) {
1251
1251
  }
1252
1252
  function $o(e, t, n, r) {
1253
1253
  const o = me(e);
1254
- let i = Bo(Z(e), n === "start", r);
1254
+ let i = Bo(q(e), n === "start", r);
1255
1255
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(nt)))), i;
1256
1256
  }
1257
1257
  function _e(e) {
@@ -1266,7 +1266,7 @@ function Ho(e) {
1266
1266
  ...e
1267
1267
  };
1268
1268
  }
1269
- function ln(e) {
1269
+ function un(e) {
1270
1270
  return typeof e != "number" ? Ho(e) : {
1271
1271
  top: e,
1272
1272
  right: e,
@@ -1297,7 +1297,7 @@ function _t(e, t, n) {
1297
1297
  reference: r,
1298
1298
  floating: o
1299
1299
  } = e;
1300
- const i = X(t), s = ct(t), c = st(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1300
+ const i = X(t), s = ct(t), c = st(s), u = q(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1301
1301
  let m;
1302
1302
  switch (u) {
1303
1303
  case "top":
@@ -1417,7 +1417,7 @@ async function we(e, t) {
1417
1417
  elementContext: d = "floating",
1418
1418
  altBoundary: p = !1,
1419
1419
  padding: m = 0
1420
- } = K(t, e), g = ln(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = Fe(await i.getClippingRect({
1420
+ } = K(t, e), g = un(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = Fe(await i.getClippingRect({
1421
1421
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
1422
1422
  boundary: l,
1423
1423
  rootBoundary: f,
@@ -1464,13 +1464,13 @@ const Uo = (e) => ({
1464
1464
  } = K(e, t) || {};
1465
1465
  if (l == null)
1466
1466
  return {};
1467
- const d = ln(f), p = {
1467
+ const d = un(f), p = {
1468
1468
  x: n,
1469
1469
  y: r
1470
1470
  }, m = ct(o), g = st(m), h = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1471
1471
  let P = A ? A[b] : 0;
1472
1472
  (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = c.floating[b] || i.floating[g]);
1473
- const R = w / 2 - E / 2, N = P / 2 - h[g] / 2 - 1, O = ne(d[y], N), I = ne(d[x], N), W = O, M = P - h[g] - I, F = P / 2 - h[g] / 2 + R, k = tt(W, F, M), L = !u.arrow && me(o) != null && F !== k && i.reference[g] / 2 - (F < W ? O : I) - h[g] / 2 < 0, D = L ? F < W ? F - W : F - M : 0;
1473
+ const R = w / 2 - E / 2, N = P / 2 - h[g] / 2 - 1, O = te(d[y], N), I = te(d[x], N), W = O, M = P - h[g] - I, F = P / 2 - h[g] / 2 + R, k = tt(W, F, M), L = !u.arrow && me(o) != null && F !== k && i.reference[g] / 2 - (F < W ? O : I) - h[g] / 2 < 0, D = L ? F < W ? F - W : F - M : 0;
1474
1474
  return {
1475
1475
  [m]: p[m] + D,
1476
1476
  data: {
@@ -1507,7 +1507,7 @@ const Uo = (e) => ({
1507
1507
  } = K(e, t);
1508
1508
  if ((n = i.arrow) != null && n.alignmentOffset)
1509
1509
  return {};
1510
- const y = Z(o), x = X(c), b = Z(c) === c, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (b || !h ? [_e(c)] : Wo(c)), A = g !== "none";
1510
+ const y = q(o), x = X(c), b = q(c) === c, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (b || !h ? [_e(c)] : Wo(c)), A = g !== "none";
1511
1511
  !p && A && E.push(...$o(c, h, g, w));
1512
1512
  const P = [c, ...E], R = await we(t, v), N = [];
1513
1513
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
@@ -1625,7 +1625,7 @@ async function Yo(e, t) {
1625
1625
  placement: n,
1626
1626
  platform: r,
1627
1627
  elements: o
1628
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = me(n), u = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && u ? -1 : 1, d = K(t, e);
1628
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = q(n), c = me(n), u = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && u ? -1 : 1, d = K(t, e);
1629
1629
  let {
1630
1630
  mainAxis: p,
1631
1631
  crossAxis: m,
@@ -1697,7 +1697,7 @@ const Xo = function(e) {
1697
1697
  } = K(e, t), l = {
1698
1698
  x: n,
1699
1699
  y: r
1700
- }, f = await we(t, u), d = X(Z(o)), p = it(d);
1700
+ }, f = await we(t, u), d = X(q(o)), p = it(d);
1701
1701
  let m = l[p], g = l[d];
1702
1702
  if (i) {
1703
1703
  const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = m + f[v], b = m - f[y];
@@ -1725,7 +1725,7 @@ const Xo = function(e) {
1725
1725
  };
1726
1726
  }
1727
1727
  };
1728
- }, Zo = function(e) {
1728
+ }, qo = function(e) {
1729
1729
  return e === void 0 && (e = {}), {
1730
1730
  options: e,
1731
1731
  fn(t) {
@@ -1758,7 +1758,7 @@ const Xo = function(e) {
1758
1758
  }
1759
1759
  if (l) {
1760
1760
  var y, x;
1761
- const b = p === "y" ? "width" : "height", w = ["top", "left"].includes(Z(o)), E = i.reference[d] - i.floating[b] + (w && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (w ? 0 : v.crossAxis), A = i.reference[d] + i.reference[b] + (w ? 0 : ((x = s.offset) == null ? void 0 : x[d]) || 0) - (w ? v.crossAxis : 0);
1761
+ const b = p === "y" ? "width" : "height", w = ["top", "left"].includes(q(o)), E = i.reference[d] - i.floating[b] + (w && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (w ? 0 : v.crossAxis), A = i.reference[d] + i.reference[b] + (w ? 0 : ((x = s.offset) == null ? void 0 : x[d]) || 0) - (w ? v.crossAxis : 0);
1762
1762
  g < E ? g = E : g > A && (g = A);
1763
1763
  }
1764
1764
  return {
@@ -1767,7 +1767,7 @@ const Xo = function(e) {
1767
1767
  };
1768
1768
  }
1769
1769
  };
1770
- }, qo = function(e) {
1770
+ }, Zo = function(e) {
1771
1771
  return e === void 0 && (e = {}), {
1772
1772
  name: "size",
1773
1773
  options: e,
@@ -1782,13 +1782,13 @@ const Xo = function(e) {
1782
1782
  apply: u = () => {
1783
1783
  },
1784
1784
  ...l
1785
- } = K(e, t), f = await we(t, l), d = Z(o), p = me(o), m = X(o) === "y", {
1785
+ } = K(e, t), f = await we(t, l), d = q(o), p = me(o), m = X(o) === "y", {
1786
1786
  width: g,
1787
1787
  height: h
1788
1788
  } = i.floating;
1789
1789
  let v, y;
1790
1790
  d === "top" || d === "bottom" ? (v = d, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = p === "end" ? "top" : "bottom");
1791
- const x = h - f.top - f.bottom, b = g - f.left - f.right, w = ne(h - f[v], x), E = ne(g - f[y], b), A = !t.middlewareData.shift;
1791
+ const x = h - f.top - f.bottom, b = g - f.left - f.right, w = te(h - f[v], x), E = te(g - f[y], b), A = !t.middlewareData.shift;
1792
1792
  let P = w, R = E;
1793
1793
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = b), (r = t.middlewareData.shift) != null && r.enabled.y && (P = x), A && !p) {
1794
1794
  const O = B(f.left, 0), I = B(f.right, 0), W = B(f.top, 0), M = B(f.bottom, 0);
@@ -1812,7 +1812,7 @@ function Be() {
1812
1812
  return typeof window < "u";
1813
1813
  }
1814
1814
  function ve(e) {
1815
- return un(e) ? (e.nodeName || "").toLowerCase() : "#document";
1815
+ return fn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1816
1816
  }
1817
1817
  function $(e) {
1818
1818
  var t;
@@ -1820,9 +1820,9 @@ function $(e) {
1820
1820
  }
1821
1821
  function Y(e) {
1822
1822
  var t;
1823
- return (t = (un(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1823
+ return (t = (fn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1824
1824
  }
1825
- function un(e) {
1825
+ function fn(e) {
1826
1826
  return Be() ? e instanceof Node || e instanceof $(e).Node : !1;
1827
1827
  }
1828
1828
  function H(e) {
@@ -1860,13 +1860,13 @@ function at(e) {
1860
1860
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1861
1861
  }
1862
1862
  function Qo(e) {
1863
- let t = re(e);
1863
+ let t = ne(e);
1864
1864
  for (; j(t) && !he(t); ) {
1865
1865
  if (at(t))
1866
1866
  return t;
1867
1867
  if ($e(t))
1868
1868
  return null;
1869
- t = re(t);
1869
+ t = ne(t);
1870
1870
  }
1871
1871
  return null;
1872
1872
  }
@@ -1888,7 +1888,7 @@ function He(e) {
1888
1888
  scrollTop: e.scrollY
1889
1889
  };
1890
1890
  }
1891
- function re(e) {
1891
+ function ne(e) {
1892
1892
  if (ve(e) === "html")
1893
1893
  return e;
1894
1894
  const t = (
@@ -1900,14 +1900,14 @@ function re(e) {
1900
1900
  );
1901
1901
  return Wt(t) ? t.host : t;
1902
1902
  }
1903
- function fn(e) {
1904
- const t = re(e);
1905
- return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && Ee(t) ? t : fn(t);
1903
+ function dn(e) {
1904
+ const t = ne(e);
1905
+ return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && Ee(t) ? t : dn(t);
1906
1906
  }
1907
1907
  function be(e, t, n) {
1908
1908
  var r;
1909
1909
  t === void 0 && (t = []), n === void 0 && (n = !0);
1910
- const o = fn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = $(o);
1910
+ const o = dn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = $(o);
1911
1911
  if (i) {
1912
1912
  const c = rt(s);
1913
1913
  return t.concat(s, s.visualViewport || [], Ee(o) ? o : [], c && n ? be(c) : []);
@@ -1917,7 +1917,7 @@ function be(e, t, n) {
1917
1917
  function rt(e) {
1918
1918
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1919
1919
  }
1920
- function dn(e) {
1920
+ function hn(e) {
1921
1921
  const t = V(e);
1922
1922
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1923
1923
  const o = j(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
@@ -1938,7 +1938,7 @@ function fe(e) {
1938
1938
  width: r,
1939
1939
  height: o,
1940
1940
  $: i
1941
- } = dn(t);
1941
+ } = hn(t);
1942
1942
  let s = (i ? De(n.width) : n.width) / r, c = (i ? De(n.height) : n.height) / o;
1943
1943
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1944
1944
  x: s,
@@ -1946,7 +1946,7 @@ function fe(e) {
1946
1946
  };
1947
1947
  }
1948
1948
  const Jo = /* @__PURE__ */ z(0);
1949
- function hn(e) {
1949
+ function pn(e) {
1950
1950
  const t = $(e);
1951
1951
  return !lt() || !t.visualViewport ? Jo : {
1952
1952
  x: t.visualViewport.offsetLeft,
@@ -1961,7 +1961,7 @@ function ie(e, t, n, r) {
1961
1961
  const o = e.getBoundingClientRect(), i = ut(e);
1962
1962
  let s = z(1);
1963
1963
  t && (r ? H(r) && (s = fe(r)) : s = fe(e));
1964
- const c = ei(i, n, r) ? hn(i) : z(0);
1964
+ const c = ei(i, n, r) ? pn(i) : z(0);
1965
1965
  let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
1966
1966
  if (i) {
1967
1967
  const p = $(i), m = r && H(r) ? $(r) : r;
@@ -1982,7 +1982,7 @@ function ft(e, t) {
1982
1982
  const n = He(e).scrollLeft;
1983
1983
  return t ? t.left + n : ie(Y(e)).left + n;
1984
1984
  }
1985
- function pn(e, t, n) {
1985
+ function mn(e, t, n) {
1986
1986
  n === void 0 && (n = !1);
1987
1987
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1988
1988
  // RTL <body> scrollbar.
@@ -2012,7 +2012,7 @@ function ti(e) {
2012
2012
  const m = ie(r);
2013
2013
  l = fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
2014
2014
  }
2015
- const p = s && !d && !i ? pn(s, u, !0) : z(0);
2015
+ const p = s && !d && !i ? mn(s, u, !0) : z(0);
2016
2016
  return {
2017
2017
  width: n.width * l.x,
2018
2018
  height: n.height * l.y,
@@ -2067,7 +2067,7 @@ function Bt(e, t, n) {
2067
2067
  else if (H(t))
2068
2068
  r = ii(t, n);
2069
2069
  else {
2070
- const o = hn(e);
2070
+ const o = pn(e);
2071
2071
  r = {
2072
2072
  x: t.x - o.x,
2073
2073
  y: t.y - o.y,
@@ -2077,9 +2077,9 @@ function Bt(e, t, n) {
2077
2077
  }
2078
2078
  return Fe(r);
2079
2079
  }
2080
- function mn(e, t) {
2081
- const n = re(e);
2082
- return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || mn(n, t);
2080
+ function vn(e, t) {
2081
+ const n = ne(e);
2082
+ return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || vn(n, t);
2083
2083
  }
2084
2084
  function si(e, t) {
2085
2085
  const n = t.get(e);
@@ -2087,10 +2087,10 @@ function si(e, t) {
2087
2087
  return n;
2088
2088
  let r = be(e, [], !1).filter((c) => H(c) && ve(c) !== "body"), o = null;
2089
2089
  const i = V(e).position === "fixed";
2090
- let s = i ? re(e) : e;
2090
+ let s = i ? ne(e) : e;
2091
2091
  for (; H(s) && !he(s); ) {
2092
2092
  const c = V(s), u = at(s);
2093
- !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && mn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = re(s);
2093
+ !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && vn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2094
2094
  }
2095
2095
  return t.set(e, r), r;
2096
2096
  }
@@ -2103,7 +2103,7 @@ function ci(e) {
2103
2103
  } = e;
2104
2104
  const s = [...n === "clippingAncestors" ? $e(t) ? [] : si(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2105
2105
  const d = Bt(t, f, o);
2106
- return l.top = B(d.top, l.top), l.right = ne(d.right, l.right), l.bottom = ne(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
2106
+ return l.top = B(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
2107
2107
  }, Bt(t, c, o));
2108
2108
  return {
2109
2109
  width: u.right - u.left,
@@ -2116,7 +2116,7 @@ function ai(e) {
2116
2116
  const {
2117
2117
  width: t,
2118
2118
  height: n
2119
- } = dn(e);
2119
+ } = hn(e);
2120
2120
  return {
2121
2121
  width: t,
2122
2122
  height: n
@@ -2138,7 +2138,7 @@ function li(e, t, n) {
2138
2138
  u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
2139
2139
  } else o && l();
2140
2140
  i && !r && o && l();
2141
- const f = o && !r && !i ? pn(o, c) : z(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2141
+ const f = o && !r && !i ? mn(o, c) : z(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2142
2142
  return {
2143
2143
  x: d,
2144
2144
  y: p,
@@ -2146,7 +2146,7 @@ function li(e, t, n) {
2146
2146
  height: s.height
2147
2147
  };
2148
2148
  }
2149
- function qe(e) {
2149
+ function Ze(e) {
2150
2150
  return V(e).position === "static";
2151
2151
  }
2152
2152
  function $t(e, t) {
@@ -2157,26 +2157,26 @@ function $t(e, t) {
2157
2157
  let n = e.offsetParent;
2158
2158
  return Y(e) === n && (n = n.ownerDocument.body), n;
2159
2159
  }
2160
- function vn(e, t) {
2160
+ function gn(e, t) {
2161
2161
  const n = $(e);
2162
2162
  if ($e(e))
2163
2163
  return n;
2164
2164
  if (!j(e)) {
2165
- let o = re(e);
2165
+ let o = ne(e);
2166
2166
  for (; o && !he(o); ) {
2167
- if (H(o) && !qe(o))
2167
+ if (H(o) && !Ze(o))
2168
2168
  return o;
2169
- o = re(o);
2169
+ o = ne(o);
2170
2170
  }
2171
2171
  return n;
2172
2172
  }
2173
2173
  let r = $t(e, t);
2174
- for (; r && Go(r) && qe(r); )
2174
+ for (; r && Go(r) && Ze(r); )
2175
2175
  r = $t(r, t);
2176
- return r && he(r) && qe(r) && !at(r) ? n : r || Qo(e) || n;
2176
+ return r && he(r) && Ze(r) && !at(r) ? n : r || Qo(e) || n;
2177
2177
  }
2178
2178
  const ui = async function(e) {
2179
- const t = this.getOffsetParent || vn, n = this.getDimensions, r = await n(e.floating);
2179
+ const t = this.getOffsetParent || gn, n = this.getDimensions, r = await n(e.floating);
2180
2180
  return {
2181
2181
  reference: li(e.reference, await t(e.floating), e.strategy),
2182
2182
  floating: {
@@ -2194,7 +2194,7 @@ const di = {
2194
2194
  convertOffsetParentRelativeRectToViewportRelativeRect: ti,
2195
2195
  getDocumentElement: Y,
2196
2196
  getClippingRect: ci,
2197
- getOffsetParent: vn,
2197
+ getOffsetParent: gn,
2198
2198
  getElementRects: ui,
2199
2199
  getClientRects: ni,
2200
2200
  getDimensions: ai,
@@ -2202,7 +2202,7 @@ const di = {
2202
2202
  isElement: H,
2203
2203
  isRTL: fi
2204
2204
  };
2205
- function gn(e, t) {
2205
+ function yn(e, t) {
2206
2206
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2207
2207
  }
2208
2208
  function hi(e, t) {
@@ -2224,7 +2224,7 @@ function hi(e, t) {
2224
2224
  return;
2225
2225
  const g = Me(d), h = Me(o.clientWidth - (f + p)), v = Me(o.clientHeight - (d + m)), y = Me(f), b = {
2226
2226
  rootMargin: -g + "px " + -h + "px " + -v + "px " + -y + "px",
2227
- threshold: B(0, ne(1, u)) || 1
2227
+ threshold: B(0, te(1, u)) || 1
2228
2228
  };
2229
2229
  let w = !0;
2230
2230
  function E(A) {
@@ -2236,7 +2236,7 @@ function hi(e, t) {
2236
2236
  s(!1, 1e-7);
2237
2237
  }, 1e3);
2238
2238
  }
2239
- P === 1 && !gn(l, e.getBoundingClientRect()) && s(), w = !1;
2239
+ P === 1 && !yn(l, e.getBoundingClientRect()) && s(), w = !1;
2240
2240
  }
2241
2241
  try {
2242
2242
  n = new IntersectionObserver(E, {
@@ -2278,7 +2278,7 @@ function pi(e, t, n, r) {
2278
2278
  u && v();
2279
2279
  function v() {
2280
2280
  const y = ie(e);
2281
- h && !gn(h, y) && n(), h = y, g = requestAnimationFrame(v);
2281
+ h && !yn(h, y) && n(), h = y, g = requestAnimationFrame(v);
2282
2282
  }
2283
2283
  return n(), () => {
2284
2284
  var y;
@@ -2287,7 +2287,7 @@ function pi(e, t, n, r) {
2287
2287
  }), d == null || d(), (y = m) == null || y.disconnect(), m = null, u && cancelAnimationFrame(g);
2288
2288
  };
2289
2289
  }
2290
- const mi = Xo, vi = Ko, gi = zo, yi = qo, wi = jo, Ht = Uo, bi = Zo, xi = (e, t, n) => {
2290
+ const mi = Xo, vi = Ko, gi = zo, yi = Zo, wi = jo, Ht = Uo, bi = qo, xi = (e, t, n) => {
2291
2291
  const r = /* @__PURE__ */ new Map(), o = {
2292
2292
  platform: di,
2293
2293
  ...n
@@ -2300,7 +2300,7 @@ const mi = Xo, vi = Ko, gi = zo, yi = qo, wi = jo, Ht = Uo, bi = Zo, xi = (e, t,
2300
2300
  platform: i
2301
2301
  });
2302
2302
  };
2303
- var Le = typeof document < "u" ? Jn : er;
2303
+ var Le = typeof document < "u" ? er : tr;
2304
2304
  function Ie(e, t) {
2305
2305
  if (e === t)
2306
2306
  return !0;
@@ -2331,11 +2331,11 @@ function Ie(e, t) {
2331
2331
  }
2332
2332
  return e !== e && t !== t;
2333
2333
  }
2334
- function yn(e) {
2334
+ function wn(e) {
2335
2335
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2336
2336
  }
2337
2337
  function Vt(e, t) {
2338
- const n = yn(e);
2338
+ const n = wn(e);
2339
2339
  return Math.round(t * n) / n;
2340
2340
  }
2341
2341
  function Ge(e) {
@@ -2429,7 +2429,7 @@ function Ei(e) {
2429
2429
  return c ? {
2430
2430
  ...S,
2431
2431
  transform: "translate(" + T + "px, " + _ + "px)",
2432
- ...yn(L.floating) >= 1.5 && {
2432
+ ...wn(L.floating) >= 1.5 && {
2433
2433
  willChange: "transform"
2434
2434
  }
2435
2435
  } : {
@@ -2489,10 +2489,10 @@ const Ci = (e) => {
2489
2489
  ...Ci(e),
2490
2490
  options: [e, t]
2491
2491
  });
2492
- var Ti = "Arrow", wn = a.forwardRef((e, t) => {
2492
+ var Ti = "Arrow", bn = a.forwardRef((e, t) => {
2493
2493
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
2494
2494
  return /* @__PURE__ */ C(
2495
- G.svg,
2495
+ Z.svg,
2496
2496
  {
2497
2497
  ...i,
2498
2498
  ref: t,
@@ -2504,22 +2504,22 @@ var Ti = "Arrow", wn = a.forwardRef((e, t) => {
2504
2504
  }
2505
2505
  );
2506
2506
  });
2507
- wn.displayName = Ti;
2508
- var ki = wn, dt = "Popper", [bn, xn] = Yt(dt), [Li, En] = bn(dt), Cn = (e) => {
2507
+ bn.displayName = Ti;
2508
+ var ki = bn, dt = "Popper", [xn, En] = Xt(dt), [Li, Cn] = xn(dt), Pn = (e) => {
2509
2509
  const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
2510
2510
  return /* @__PURE__ */ C(Li, { scope: t, anchor: r, onAnchorChange: o, children: n });
2511
2511
  };
2512
- Cn.displayName = dt;
2513
- var Pn = "PopperAnchor", An = a.forwardRef(
2512
+ Pn.displayName = dt;
2513
+ var An = "PopperAnchor", Sn = a.forwardRef(
2514
2514
  (e, t) => {
2515
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = En(Pn, n), s = a.useRef(null), c = q(t, s);
2515
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Cn(An, n), s = a.useRef(null), c = re(t, s);
2516
2516
  return a.useEffect(() => {
2517
2517
  i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2518
- }), r ? null : /* @__PURE__ */ C(G.div, { ...o, ref: c });
2518
+ }), r ? null : /* @__PURE__ */ C(Z.div, { ...o, ref: c });
2519
2519
  }
2520
2520
  );
2521
- An.displayName = Pn;
2522
- var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2521
+ Sn.displayName = An;
2522
+ var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2523
2523
  (e, t) => {
2524
2524
  var mt, vt, gt, yt, wt, bt;
2525
2525
  const {
@@ -2537,7 +2537,7 @@ var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2537
2537
  updatePositionStrategy: m = "optimized",
2538
2538
  onPlaced: g,
2539
2539
  ...h
2540
- } = e, v = En(ht, n), [y, x] = a.useState(null), b = q(t, (ge) => x(ge)), [w, E] = a.useState(null), A = Lo(w), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, N = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, I = Array.isArray(l) ? l : [l], W = I.length > 0, M = {
2540
+ } = e, v = Cn(ht, n), [y, x] = a.useState(null), b = re(t, (ge) => x(ge)), [w, E] = a.useState(null), A = Lo(w), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, N = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, I = Array.isArray(l) ? l : [l], W = I.length > 0, M = {
2541
2541
  padding: O,
2542
2542
  boundary: I.filter(Ii),
2543
2543
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2563,22 +2563,22 @@ var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2563
2563
  u && Ri({ ...M }),
2564
2564
  Oi({
2565
2565
  ...M,
2566
- apply: ({ elements: ge, rects: xt, availableWidth: Xn, availableHeight: Kn }) => {
2567
- const { width: Zn, height: qn } = xt.reference, Pe = ge.floating.style;
2568
- Pe.setProperty("--radix-popper-available-width", `${Xn}px`), Pe.setProperty("--radix-popper-available-height", `${Kn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-height", `${qn}px`);
2566
+ apply: ({ elements: ge, rects: xt, availableWidth: Kn, availableHeight: qn }) => {
2567
+ const { width: Zn, height: Gn } = xt.reference, Pe = ge.floating.style;
2568
+ Pe.setProperty("--radix-popper-available-width", `${Kn}px`), Pe.setProperty("--radix-popper-available-height", `${qn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Gn}px`);
2569
2569
  }
2570
2570
  }),
2571
2571
  w && Mi({ element: w, padding: c }),
2572
2572
  Wi({ arrowWidth: P, arrowHeight: R }),
2573
2573
  p && Ni({ strategy: "referenceHidden", ...M })
2574
2574
  ]
2575
- }), [T, _] = Nn(L), se = de(g);
2576
- te(() => {
2575
+ }), [T, _] = Mn(L), se = de(g);
2576
+ ee(() => {
2577
2577
  D && (se == null || se());
2578
2578
  }, [D, se]);
2579
- const Vn = (mt = S.arrow) == null ? void 0 : mt.x, Un = (vt = S.arrow) == null ? void 0 : vt.y, zn = ((gt = S.arrow) == null ? void 0 : gt.centerOffset) !== 0, [jn, Yn] = a.useState();
2580
- return te(() => {
2581
- y && Yn(window.getComputedStyle(y).zIndex);
2579
+ const Un = (mt = S.arrow) == null ? void 0 : mt.x, zn = (vt = S.arrow) == null ? void 0 : vt.y, jn = ((gt = S.arrow) == null ? void 0 : gt.centerOffset) !== 0, [Yn, Xn] = a.useState();
2580
+ return ee(() => {
2581
+ y && Xn(window.getComputedStyle(y).zIndex);
2582
2582
  }, [y]), /* @__PURE__ */ C(
2583
2583
  "div",
2584
2584
  {
@@ -2589,7 +2589,7 @@ var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2589
2589
  transform: D ? k.transform : "translate(0, -200%)",
2590
2590
  // keep off the page when measuring
2591
2591
  minWidth: "max-content",
2592
- zIndex: jn,
2592
+ zIndex: Yn,
2593
2593
  "--radix-popper-transform-origin": [
2594
2594
  (yt = S.transformOrigin) == null ? void 0 : yt.x,
2595
2595
  (wt = S.transformOrigin) == null ? void 0 : wt.y
@@ -2609,11 +2609,11 @@ var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2609
2609
  scope: n,
2610
2610
  placedSide: T,
2611
2611
  onArrowChange: E,
2612
- arrowX: Vn,
2613
- arrowY: Un,
2614
- shouldHideArrow: zn,
2612
+ arrowX: Un,
2613
+ arrowY: zn,
2614
+ shouldHideArrow: jn,
2615
2615
  children: /* @__PURE__ */ C(
2616
- G.div,
2616
+ Z.div,
2617
2617
  {
2618
2618
  "data-side": T,
2619
2619
  "data-align": _,
@@ -2633,14 +2633,14 @@ var ht = "PopperContent", [Di, _i] = bn(ht), Sn = a.forwardRef(
2633
2633
  );
2634
2634
  }
2635
2635
  );
2636
- Sn.displayName = ht;
2637
- var Rn = "PopperArrow", Fi = {
2636
+ Rn.displayName = ht;
2637
+ var On = "PopperArrow", Fi = {
2638
2638
  top: "bottom",
2639
2639
  right: "left",
2640
2640
  bottom: "top",
2641
2641
  left: "right"
2642
- }, On = a.forwardRef(function(t, n) {
2643
- const { __scopePopper: r, ...o } = t, i = _i(Rn, r), s = Fi[i.placedSide];
2642
+ }, Nn = a.forwardRef(function(t, n) {
2643
+ const { __scopePopper: r, ...o } = t, i = _i(On, r), s = Fi[i.placedSide];
2644
2644
  return (
2645
2645
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2646
2646
  // doesn't report size as we'd expect on SVG elements.
@@ -2684,7 +2684,7 @@ var Rn = "PopperArrow", Fi = {
2684
2684
  )
2685
2685
  );
2686
2686
  });
2687
- On.displayName = Rn;
2687
+ Nn.displayName = On;
2688
2688
  function Ii(e) {
2689
2689
  return e !== null;
2690
2690
  }
@@ -2693,18 +2693,18 @@ var Wi = (e) => ({
2693
2693
  options: e,
2694
2694
  fn(t) {
2695
2695
  var v, y, x;
2696
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Nn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2696
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Mn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2697
2697
  let g = "", h = "";
2698
2698
  return l === "bottom" ? (g = s ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (g = s ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (g = `${-u}px`, h = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + u}px`, h = s ? d : `${m}px`), { data: { x: g, y: h } };
2699
2699
  }
2700
2700
  });
2701
- function Nn(e) {
2701
+ function Mn(e) {
2702
2702
  const [t, n = "center"] = e.split("-");
2703
2703
  return [t, n];
2704
2704
  }
2705
- var Bi = Cn, Mn = An, $i = Sn, Hi = On, Ve = "Popover", [Tn, ms] = Yt(Ve, [
2706
- xn
2707
- ]), Ce = xn(), [Vi, oe] = Tn(Ve), kn = (e) => {
2705
+ var Bi = Pn, Tn = Sn, $i = Rn, Hi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
2706
+ En
2707
+ ]), Ce = En(), [Vi, oe] = kn(Ve), Ln = (e) => {
2708
2708
  const {
2709
2709
  __scopePopover: t,
2710
2710
  children: n,
@@ -2735,65 +2735,65 @@ var Bi = Cn, Mn = An, $i = Sn, Hi = On, Ve = "Popover", [Tn, ms] = Yt(Ve, [
2735
2735
  }
2736
2736
  ) });
2737
2737
  };
2738
- kn.displayName = Ve;
2739
- var Ln = "PopoverAnchor", Dn = a.forwardRef(
2738
+ Ln.displayName = Ve;
2739
+ var Dn = "PopoverAnchor", _n = a.forwardRef(
2740
2740
  (e, t) => {
2741
- const { __scopePopover: n, ...r } = e, o = oe(Ln, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2742
- return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Mn, { ...i, ...r, ref: t });
2741
+ const { __scopePopover: n, ...r } = e, o = oe(Dn, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2742
+ return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Tn, { ...i, ...r, ref: t });
2743
2743
  }
2744
2744
  );
2745
- Dn.displayName = Ln;
2746
- var _n = "PopoverTrigger", Fn = a.forwardRef(
2745
+ _n.displayName = Dn;
2746
+ var Fn = "PopoverTrigger", In = a.forwardRef(
2747
2747
  (e, t) => {
2748
- const { __scopePopover: n, ...r } = e, o = oe(_n, n), i = Ce(n), s = q(t, o.triggerRef), c = /* @__PURE__ */ C(
2749
- G.button,
2748
+ const { __scopePopover: n, ...r } = e, o = oe(Fn, n), i = Ce(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2749
+ Z.button,
2750
2750
  {
2751
2751
  type: "button",
2752
2752
  "aria-haspopup": "dialog",
2753
2753
  "aria-expanded": o.open,
2754
2754
  "aria-controls": o.contentId,
2755
- "data-state": Hn(o.open),
2755
+ "data-state": Vn(o.open),
2756
2756
  ...r,
2757
2757
  ref: s,
2758
- onClick: ee(e.onClick, o.onOpenToggle)
2758
+ onClick: J(e.onClick, o.onOpenToggle)
2759
2759
  }
2760
2760
  );
2761
- return o.hasCustomAnchor ? c : /* @__PURE__ */ C(Mn, { asChild: !0, ...i, children: c });
2761
+ return o.hasCustomAnchor ? c : /* @__PURE__ */ C(Tn, { asChild: !0, ...i, children: c });
2762
2762
  }
2763
2763
  );
2764
- Fn.displayName = _n;
2765
- var pt = "PopoverPortal", [Ui, zi] = Tn(pt, {
2764
+ In.displayName = Fn;
2765
+ var pt = "PopoverPortal", [Ui, zi] = kn(pt, {
2766
2766
  forceMount: void 0
2767
- }), In = (e) => {
2767
+ }), Wn = (e) => {
2768
2768
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(pt, t);
2769
- return /* @__PURE__ */ C(Ui, { scope: t, forceMount: n, children: /* @__PURE__ */ C(ot, { present: n || i.open, children: /* @__PURE__ */ C(Qt, { asChild: !0, container: o, children: r }) }) });
2769
+ return /* @__PURE__ */ C(Ui, { scope: t, forceMount: n, children: /* @__PURE__ */ C(ot, { present: n || i.open, children: /* @__PURE__ */ C(Jt, { asChild: !0, container: o, children: r }) }) });
2770
2770
  };
2771
- In.displayName = pt;
2772
- var pe = "PopoverContent", Wn = a.forwardRef(
2771
+ Wn.displayName = pt;
2772
+ var pe = "PopoverContent", Bn = a.forwardRef(
2773
2773
  (e, t) => {
2774
2774
  const n = zi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2775
2775
  return /* @__PURE__ */ C(ot, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Yi, { ...o, ref: t }) : /* @__PURE__ */ C(Xi, { ...o, ref: t }) });
2776
2776
  }
2777
2777
  );
2778
- Wn.displayName = pe;
2779
- var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2778
+ Bn.displayName = pe;
2779
+ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2780
2780
  (e, t) => {
2781
- const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = q(t, r), i = a.useRef(!1);
2781
+ const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
2782
2782
  return a.useEffect(() => {
2783
2783
  const s = r.current;
2784
2784
  if (s) return ko(s);
2785
- }, []), /* @__PURE__ */ C(cn, { as: ji, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2786
- Bn,
2785
+ }, []), /* @__PURE__ */ C(an, { as: ji, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2786
+ $n,
2787
2787
  {
2788
2788
  ...e,
2789
2789
  ref: o,
2790
2790
  trapFocus: n.open,
2791
2791
  disableOutsidePointerEvents: !0,
2792
- onCloseAutoFocus: ee(e.onCloseAutoFocus, (s) => {
2792
+ onCloseAutoFocus: J(e.onCloseAutoFocus, (s) => {
2793
2793
  var c;
2794
2794
  s.preventDefault(), i.current || (c = n.triggerRef.current) == null || c.focus();
2795
2795
  }),
2796
- onPointerDownOutside: ee(
2796
+ onPointerDownOutside: J(
2797
2797
  e.onPointerDownOutside,
2798
2798
  (s) => {
2799
2799
  const c = s.detail.originalEvent, u = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || u;
@@ -2801,7 +2801,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2801
2801
  },
2802
2802
  { checkForDefaultPrevented: !1 }
2803
2803
  ),
2804
- onFocusOutside: ee(
2804
+ onFocusOutside: J(
2805
2805
  e.onFocusOutside,
2806
2806
  (s) => s.preventDefault(),
2807
2807
  { checkForDefaultPrevented: !1 }
@@ -2813,7 +2813,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2813
2813
  (e, t) => {
2814
2814
  const n = oe(pe, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
2815
2815
  return /* @__PURE__ */ C(
2816
- Bn,
2816
+ $n,
2817
2817
  {
2818
2818
  ...e,
2819
2819
  ref: t,
@@ -2832,7 +2832,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2832
2832
  }
2833
2833
  );
2834
2834
  }
2835
- ), Bn = a.forwardRef(
2835
+ ), $n = a.forwardRef(
2836
2836
  (e, t) => {
2837
2837
  const {
2838
2838
  __scopePopover: n,
@@ -2847,7 +2847,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2847
2847
  ...d
2848
2848
  } = e, p = oe(pe, n), m = Ce(n);
2849
2849
  return jr(), /* @__PURE__ */ C(
2850
- qt,
2850
+ Gt,
2851
2851
  {
2852
2852
  asChild: !0,
2853
2853
  loop: !0,
@@ -2855,7 +2855,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2855
2855
  onMountAutoFocus: o,
2856
2856
  onUnmountAutoFocus: i,
2857
2857
  children: /* @__PURE__ */ C(
2858
- Kt,
2858
+ qt,
2859
2859
  {
2860
2860
  asChild: !0,
2861
2861
  disableOutsidePointerEvents: s,
@@ -2867,7 +2867,7 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2867
2867
  children: /* @__PURE__ */ C(
2868
2868
  $i,
2869
2869
  {
2870
- "data-state": Hn(p.open),
2870
+ "data-state": Vn(p.open),
2871
2871
  role: "dialog",
2872
2872
  id: p.contentId,
2873
2873
  ...m,
@@ -2888,33 +2888,33 @@ var ji = /* @__PURE__ */ jt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2888
2888
  }
2889
2889
  );
2890
2890
  }
2891
- ), $n = "PopoverClose", Ki = a.forwardRef(
2891
+ ), Hn = "PopoverClose", Ki = a.forwardRef(
2892
2892
  (e, t) => {
2893
- const { __scopePopover: n, ...r } = e, o = oe($n, n);
2893
+ const { __scopePopover: n, ...r } = e, o = oe(Hn, n);
2894
2894
  return /* @__PURE__ */ C(
2895
- G.button,
2895
+ Z.button,
2896
2896
  {
2897
2897
  type: "button",
2898
2898
  ...r,
2899
2899
  ref: t,
2900
- onClick: ee(e.onClick, () => o.onOpenChange(!1))
2900
+ onClick: J(e.onClick, () => o.onOpenChange(!1))
2901
2901
  }
2902
2902
  );
2903
2903
  }
2904
2904
  );
2905
- Ki.displayName = $n;
2906
- var Zi = "PopoverArrow", qi = a.forwardRef(
2905
+ Ki.displayName = Hn;
2906
+ var qi = "PopoverArrow", Zi = a.forwardRef(
2907
2907
  (e, t) => {
2908
2908
  const { __scopePopover: n, ...r } = e, o = Ce(n);
2909
2909
  return /* @__PURE__ */ C(Hi, { ...o, ...r, ref: t });
2910
2910
  }
2911
2911
  );
2912
- qi.displayName = Zi;
2913
- function Hn(e) {
2912
+ Zi.displayName = qi;
2913
+ function Vn(e) {
2914
2914
  return e ? "open" : "closed";
2915
2915
  }
2916
- var Gi = kn, Qi = Dn, Ji = Fn, es = In, ts = Wn;
2917
- const ns = "_anchor_pbx6r_285", rs = "_container_pbx6r_290", os = "_radio_pbx6r_307", is = "_check_pbx6r_319", ss = "_radioInput_pbx6r_327", ye = {
2916
+ var Gi = Ln, Qi = _n, Ji = In, es = Wn, ts = Bn;
2917
+ const ns = "_anchor_1g3aq_286", rs = "_container_1g3aq_291", os = "_radio_1g3aq_308", is = "_check_1g3aq_320", ss = "_radioInput_1g3aq_328", ye = {
2918
2918
  anchor: ns,
2919
2919
  container: rs,
2920
2920
  radio: os,
@@ -2922,32 +2922,32 @@ const ns = "_anchor_pbx6r_285", rs = "_container_pbx6r_290", os = "_radio_pbx6r_
2922
2922
  radioInput: ss
2923
2923
  };
2924
2924
  function Qe({ children: e, id: t, ...n }) {
2925
- return /* @__PURE__ */ J(Ut, { children: [
2925
+ return /* @__PURE__ */ Q(Ut, { children: [
2926
2926
  /* @__PURE__ */ C(
2927
2927
  "input",
2928
2928
  {
2929
2929
  type: "radio",
2930
2930
  id: t,
2931
- className: tr(ye.radioInput, "sr-only"),
2931
+ className: nr(ye.radioInput, "sr-only"),
2932
2932
  ...n
2933
2933
  }
2934
2934
  ),
2935
- /* @__PURE__ */ J("label", { htmlFor: t, className: ye.radio, children: [
2935
+ /* @__PURE__ */ Q("label", { htmlFor: t, className: ye.radio, children: [
2936
2936
  e,
2937
- /* @__PURE__ */ C(ir, { className: ye.check })
2937
+ /* @__PURE__ */ C(sr, { className: ye.check })
2938
2938
  ] })
2939
2939
  ] });
2940
2940
  }
2941
2941
  function vs() {
2942
- const { theme: e, systemTheme: t, setTheme: n } = Gn(), r = rr();
2943
- return /* @__PURE__ */ J(Gi, { children: [
2944
- /* @__PURE__ */ C(Ji, { asChild: !0, children: /* @__PURE__ */ J(nr, { variant: "transparent", "aria-label": "Preferences", children: [
2945
- /* @__PURE__ */ C(ar, {}),
2942
+ const { theme: e, systemTheme: t, setTheme: n } = Qn(), r = or();
2943
+ return /* @__PURE__ */ Q(Gi, { children: [
2944
+ /* @__PURE__ */ C(Ji, { asChild: !0, children: /* @__PURE__ */ Q(rr, { variant: "transparent", "aria-label": "Preferences", children: [
2945
+ /* @__PURE__ */ C(lr, {}),
2946
2946
  /* @__PURE__ */ C(Qi, { className: ye.anchor })
2947
2947
  ] }) }),
2948
- /* @__PURE__ */ C(es, { children: /* @__PURE__ */ C(ts, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ J(Ut, { children: [
2948
+ /* @__PURE__ */ C(es, { children: /* @__PURE__ */ C(ts, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ Q(Ut, { children: [
2949
2949
  /* @__PURE__ */ C("span", { children: "Appearance" }),
2950
- /* @__PURE__ */ J(
2950
+ /* @__PURE__ */ Q(
2951
2951
  Qe,
2952
2952
  {
2953
2953
  id: "system",
@@ -2955,14 +2955,14 @@ function vs() {
2955
2955
  checked: e === "system",
2956
2956
  onChange: () => n("system"),
2957
2957
  children: [
2958
- /* @__PURE__ */ C(sr, {}),
2958
+ /* @__PURE__ */ C(cr, {}),
2959
2959
  "Auto (",
2960
2960
  t,
2961
2961
  ")"
2962
2962
  ]
2963
2963
  }
2964
2964
  ),
2965
- /* @__PURE__ */ J(
2965
+ /* @__PURE__ */ Q(
2966
2966
  Qe,
2967
2967
  {
2968
2968
  id: "light",
@@ -2970,12 +2970,12 @@ function vs() {
2970
2970
  checked: e === "light",
2971
2971
  onChange: () => n("light"),
2972
2972
  children: [
2973
- /* @__PURE__ */ C(lr, {}),
2973
+ /* @__PURE__ */ C(ur, {}),
2974
2974
  "Light"
2975
2975
  ]
2976
2976
  }
2977
2977
  ),
2978
- /* @__PURE__ */ J(
2978
+ /* @__PURE__ */ Q(
2979
2979
  Qe,
2980
2980
  {
2981
2981
  id: "dark",
@@ -2983,7 +2983,7 @@ function vs() {
2983
2983
  checked: e === "dark",
2984
2984
  onChange: () => n("dark"),
2985
2985
  children: [
2986
- /* @__PURE__ */ C(cr, {}),
2986
+ /* @__PURE__ */ C(ar, {}),
2987
2987
  "Dark"
2988
2988
  ]
2989
2989
  }