@react-hive/honey-layout 9.3.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +738 -760
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -1,79 +1,79 @@
1
- import { css as Be, CSS_SPACING_PROPERTIES as rs, resolveSpacing as Jt, CSS_COLOR_PROPERTIES as os, checkIsThemeColorValue as is, resolveColor as ss, mediaQuery as mr, HONEY_BREAKPOINTS as cs, styled as ft, HoneyStyleProvider as co } from "@react-hive/honey-style";
1
+ import { css as Be, CSS_SPACING_PROPERTIES as os, resolveSpacing as Zt, CSS_COLOR_PROPERTIES as is, checkIsThemeColorValue as ss, resolveColor as cs, mediaQuery as hr, HONEY_BREAKPOINTS as as, styled as ft, HoneyStyleProvider as ao } from "@react-hive/honey-style";
2
2
  import * as x from "react";
3
- import jn, { createContext as Fn, useMemo as Rt, useContext as Zt, Fragment as as, useState as $n, useRef as Et, useLayoutEffect as Hn, useEffect as qe, useCallback as Ht } from "react";
4
- const us = [
3
+ import Fn, { createContext as $n, useMemo as Et, useContext as Qt, Fragment as us, useState as Hn, useRef as Tt, useLayoutEffect as Bn, useEffect as qe, useCallback as Bt } from "react";
4
+ const ls = [
5
5
  'a[href]:not([tabindex="-1"])',
6
6
  'button:not([disabled]):not([tabindex="-1"])',
7
7
  'input:not([disabled]):not([tabindex="-1"], [type="radio"])',
8
8
  'select:not([disabled]):not([tabindex="-1"])',
9
9
  'textarea:not([disabled]):not([tabindex="-1"])',
10
10
  '[tabindex="0"]'
11
- ], Tu = (e, t = us) => e.querySelectorAll(t.join(",")), ls = (...e) => (t) => {
11
+ ], Tu = (e, t = ls) => e.querySelectorAll(t.join(",")), fs = (...e) => (t) => {
12
12
  e.forEach((n) => {
13
13
  typeof n == "function" ? n(t) : n && typeof n == "object" && (n.current = t);
14
14
  });
15
15
  };
16
- function Bn(e, t) {
16
+ function Wn(e, t) {
17
17
  if (!e) throw new Error(t);
18
18
  }
19
- const fs = (e) => {
19
+ const ds = (e) => {
20
20
  const t = e.charAt(0), n = e.slice(1);
21
21
  return t.toLowerCase() + n.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
22
- }, hr = (e) => e.split(" ").filter(Boolean), Pn = (e, ...t) => typeof e == "function" ? e(...t) : e, ds = (e, t, n, r) => {
22
+ }, vr = (e) => e.split(" ").filter(Boolean), Ln = (e, ...t) => typeof e == "function" ? e(...t) : e, gs = (e, t, n, r) => {
23
23
  const o = n - e, i = r - t;
24
24
  return Math.hypot(o, i);
25
- }, vr = (e, t) => Math.abs(e / t), gs = () => {
25
+ }, yr = (e, t) => Math.abs(e / t), ps = () => {
26
26
  const e = Date.now().toString(), t = Math.floor(Math.random() * 1e4).toString().padStart(4, "0");
27
27
  return `${e}${t}`;
28
- }, ps = (e) => rs.includes(e), ms = (e) => os.includes(e), ao = (e) => e[0] === "$", hs = (e, t, n) => {
28
+ }, ms = (e) => os.includes(e), hs = (e) => is.includes(e), uo = (e) => e[0] === "$", vs = (e, t, n) => {
29
29
  const r = typeof t == "object" && !Array.isArray(t) ? t[n] : t;
30
30
  if (r !== void 0) {
31
- if (ps(e)) {
31
+ if (ms(e)) {
32
32
  if (typeof r == "number" || Array.isArray(r))
33
- return Jt(r, "px");
34
- } else if (ms(e) && typeof r == "string" && is(r))
35
- return ss(r);
33
+ return Zt(r, "px");
34
+ } else if (hs(e) && typeof r == "string" && ss(r))
35
+ return cs(r);
36
36
  return r;
37
37
  }
38
- }, vs = (e, t) => Object.entries(e).filter(
39
- ([n, r]) => ao(n) && t === "xs" || r && typeof r == "object" && t in r
40
- ), uo = (e) => ({ theme: t, ...n }) => Be`
41
- ${vs(n, e).map(([r, o]) => {
38
+ }, ys = (e, t) => Object.entries(e).filter(
39
+ ([n, r]) => uo(n) && t === "xs" || r && typeof r == "object" && t in r
40
+ ), lo = (e) => ({ theme: t, ...n }) => Be`
41
+ ${ys(n, e).map(([r, o]) => {
42
42
  const i = r.slice(1);
43
43
  return Be`
44
- ${fs(i)}: ${hs(
44
+ ${ds(i)}: ${vs(
45
45
  i,
46
46
  o,
47
47
  e
48
48
  )};
49
49
  `;
50
50
  })}
51
- `, ys = (e, t) => Object.entries(t).some(
52
- ([n, r]) => ao(n) && typeof r == "object" && e in r
53
- ), lo = (e, t = {}) => {
51
+ `, bs = (e, t) => Object.entries(t).some(
52
+ ([n, r]) => uo(n) && typeof r == "object" && e in r
53
+ ), fo = (e, t = {}) => {
54
54
  const n = (i) => {
55
55
  const s = i.breakpoints[e];
56
- return Bn(s, `[honey-layout]: Setup for breakpoint "${e}" was not found.`), s;
56
+ return Wn(s, `[honey-layout]: Setup for breakpoint "${e}" was not found.`), s;
57
57
  };
58
58
  return {
59
- down: ({ theme: i }) => mr([
59
+ down: ({ theme: i }) => hr([
60
60
  {
61
61
  maxWidth: `${n(i)}px`,
62
62
  ...t
63
63
  }
64
64
  ]),
65
- up: ({ theme: i }) => mr([
65
+ up: ({ theme: i }) => hr([
66
66
  {
67
67
  minWidth: `${n(i)}px`,
68
68
  ...t
69
69
  }
70
70
  ])
71
71
  };
72
- }, bs = (e) => ({ theme: t, ...n }) => !t.breakpoints[e] || !ys(e, n) ? null : Be`
73
- ${lo(e).up} {
74
- ${uo(e)};
72
+ }, ws = (e) => ({ theme: t, ...n }) => !t.breakpoints[e] || !bs(e, n) ? null : Be`
73
+ ${fo(e).up} {
74
+ ${lo(e)};
75
75
  }
76
- `, yr = (e) => {
76
+ `, br = (e) => {
77
77
  const t = window.screen.orientation.type, n = t === "portrait-primary" || t === "portrait-secondary", r = !n;
78
78
  if (!e)
79
79
  return {
@@ -98,39 +98,30 @@ const fs = (e) => {
98
98
  isLg: i === "lg",
99
99
  isXl: i === "xl"
100
100
  };
101
- }, ws = (e) => e === "xs" ? uo(e) : bs(e), Wn = ft("div", (e) => ({
101
+ }, xs = (e) => e === "xs" ? lo(e) : ws(e), Vn = ft("div", (e) => ({
102
102
  "data-testid": e["data-testid"] ?? "honey-box"
103
103
  }))`
104
104
  ${({ effects: e }) => Be`
105
105
  ${e};
106
106
 
107
- ${cs.map(ws)};
107
+ ${as.map(xs)};
108
108
  `}
109
- `, Qt = ft(
110
- Wn,
109
+ `, en = ft(
110
+ Vn,
111
111
  ({ $display: e = "flex", $flexDirection: t = "column" }) => ({
112
112
  $display: e,
113
113
  $flexDirection: t
114
114
  })
115
115
  )``;
116
116
  var Ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
117
- function fo(e) {
117
+ function go(e) {
118
118
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
119
119
  }
120
- var It = { exports: {} }, vt = {};
121
- /**
122
- * @license React
123
- * react-jsx-runtime.production.js
124
- *
125
- * Copyright (c) Meta Platforms, Inc. and affiliates.
126
- *
127
- * This source code is licensed under the MIT license found in the
128
- * LICENSE file in the root directory of this source tree.
129
- */
130
- var br;
131
- function xs() {
132
- if (br) return vt;
133
- br = 1;
120
+ var kt = { exports: {} }, vt = {};
121
+ var wr;
122
+ function Rs() {
123
+ if (wr) return vt;
124
+ wr = 1;
134
125
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
135
126
  function n(r, o, i) {
136
127
  var s = null;
@@ -150,18 +141,9 @@ function xs() {
150
141
  return vt.Fragment = t, vt.jsx = n, vt.jsxs = n, vt;
151
142
  }
152
143
  var yt = {};
153
- /**
154
- * @license React
155
- * react-jsx-runtime.development.js
156
- *
157
- * Copyright (c) Meta Platforms, Inc. and affiliates.
158
- *
159
- * This source code is licensed under the MIT license found in the
160
- * LICENSE file in the root directory of this source tree.
161
- */
162
- var wr;
163
- function Rs() {
164
- return wr || (wr = 1, process.env.NODE_ENV !== "production" && (function() {
144
+ var xr;
145
+ function Es() {
146
+ return xr || (xr = 1, process.env.NODE_ENV !== "production" && (function() {
165
147
  function e(b) {
166
148
  if (b == null) return null;
167
149
  if (typeof b == "function")
@@ -355,7 +337,7 @@ React keys must be passed directly to JSX without using spread:
355
337
  function a(b) {
356
338
  return typeof b == "object" && b !== null && b.$$typeof === v;
357
339
  }
358
- var g = jn, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), I = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), U = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, y = Array.isArray, M = console.createTask ? console.createTask : function() {
340
+ var g = Fn, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), I = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), U = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, y = Array.isArray, M = console.createTask ? console.createTask : function() {
359
341
  return null;
360
342
  };
361
343
  g = {
@@ -390,32 +372,32 @@ React keys must be passed directly to JSX without using spread:
390
372
  };
391
373
  })()), yt;
392
374
  }
393
- var xr;
394
- function Es() {
395
- return xr || (xr = 1, process.env.NODE_ENV === "production" ? It.exports = xs() : It.exports = Rs()), It.exports;
375
+ var Rr;
376
+ function Ts() {
377
+ return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? kt.exports = Rs() : kt.exports = Es()), kt.exports;
396
378
  }
397
- var z = Es();
398
- const go = Fn(void 0), po = ft(Qt)`
379
+ var z = Ts();
380
+ const po = $n(void 0), mo = ft(en)`
399
381
  ${({ columns: e, takeColumns: t = 1, spacing: n = 0, applyMaxWidth: r, theme: o }) => {
400
- const i = 100 / e, s = Jt(n, null)({ theme: o }), u = t * i, l = (e - t) * (s / e), c = `calc(${u}% - ${l}px)`;
382
+ const i = 100 / e, s = Zt(n, null)({ theme: o }), u = t * i, l = (e - t) * (s / e), c = `calc(${u}% - ${l}px)`;
401
383
  return Be`
402
384
  flex-basis: ${c};
403
385
 
404
386
  ${r && Be`
405
- ${lo(r).up} {
387
+ ${fo(r).up} {
406
388
  max-width: ${c};
407
389
  }
408
390
  `}
409
391
  `;
410
392
  }}
411
- `, Ts = ft(Wn, ({ $flexWrap: e = "wrap" }) => ({
393
+ `, Ss = ft(Vn, ({ $flexWrap: e = "wrap" }) => ({
412
394
  $flexWrap: e
413
395
  }))`
414
396
  ${({ columnHeight: e, minColumnHeight: t, spacing: n = 0 }) => Be`
415
397
  display: flex;
416
- gap: ${Jt(n)};
398
+ gap: ${Zt(n)};
417
399
 
418
- > ${po} {
400
+ > ${mo} {
419
401
  height: ${e};
420
402
  min-height: ${t};
421
403
  }
@@ -429,7 +411,7 @@ const go = Fn(void 0), po = ft(Qt)`
429
411
  applyColumnMaxWidth: i = !1,
430
412
  ...s
431
413
  }) => {
432
- const u = Rt(
414
+ const u = Et(
433
415
  () => ({
434
416
  columns: n,
435
417
  spacing: r,
@@ -438,9 +420,9 @@ const go = Fn(void 0), po = ft(Qt)`
438
420
  }),
439
421
  [n, r, o, i]
440
422
  );
441
- return /* @__PURE__ */ z.jsx(go, { value: u, children: /* @__PURE__ */ z.jsx(Ts, { ref: e, spacing: r, "data-testid": "honey-grid", ...s, children: t }) });
442
- }, Ss = () => {
443
- const e = Zt(go);
423
+ return /* @__PURE__ */ z.jsx(po, { value: u, children: /* @__PURE__ */ z.jsx(Ss, { ref: e, spacing: r, "data-testid": "honey-grid", ...s, children: t }) });
424
+ }, Os = () => {
425
+ const e = Qt(po);
444
426
  if (!e)
445
427
  throw new Error(
446
428
  "The `useHoneyGridContext()` hook can only be used inside <HoneyGrid/> component!"
@@ -450,9 +432,9 @@ const go = Fn(void 0), po = ft(Qt)`
450
432
  children: e,
451
433
  ...t
452
434
  }) => {
453
- const { columns: n, spacing: r, isColumnsGrowing: o, applyColumnMaxWidth: i } = Ss();
435
+ const { columns: n, spacing: r, isColumnsGrowing: o, applyColumnMaxWidth: i } = Os();
454
436
  return /* @__PURE__ */ z.jsx(
455
- po,
437
+ mo,
456
438
  {
457
439
  columns: n,
458
440
  spacing: r,
@@ -463,7 +445,7 @@ const go = Fn(void 0), po = ft(Qt)`
463
445
  children: e
464
446
  }
465
447
  );
466
- }, Os = (e, t, n) => typeof t == "function" ? t(e) : typeof e == "string" || typeof e == "number" ? e : t ? e[t] : n, _s = ({
448
+ }, _s = (e, t, n) => typeof t == "function" ? t(e) : typeof e == "string" || typeof e == "number" ? e : t ? e[t] : n, Cs = ({
467
449
  children: e,
468
450
  loading: t = !1,
469
451
  loadingOverContent: n = !1,
@@ -475,12 +457,12 @@ const go = Fn(void 0), po = ft(Qt)`
475
457
  }) => r ? s : !n && t ? i : /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
476
458
  n && t && i,
477
459
  o ? u : e
478
- ] }), Cs = ft(
479
- Qt,
460
+ ] }), As = ft(
461
+ en,
480
462
  ({ $overflow: e = "hidden auto" }) => ({
481
463
  $overflow: e
482
464
  })
483
- )``, As = ({
465
+ )``, Ps = ({
484
466
  ref: e,
485
467
  children: t,
486
468
  items: n,
@@ -493,7 +475,7 @@ const go = Fn(void 0), po = ft(Qt)`
493
475
  emptyContent: c,
494
476
  ...p
495
477
  }) => /* @__PURE__ */ z.jsx(
496
- Cs,
478
+ As,
497
479
  {
498
480
  ref: e,
499
481
  role: "list",
@@ -501,7 +483,7 @@ const go = Fn(void 0), po = ft(Qt)`
501
483
  "data-testid": "honey-list",
502
484
  ...p,
503
485
  children: /* @__PURE__ */ z.jsx(
504
- _s,
486
+ Cs,
505
487
  {
506
488
  loading: o,
507
489
  loadingOverContent: i,
@@ -510,7 +492,7 @@ const go = Fn(void 0), po = ft(Qt)`
510
492
  errorContent: l,
511
493
  empty: n?.length === 0,
512
494
  emptyContent: c,
513
- children: n?.map((f, a, g) => /* @__PURE__ */ z.jsx(as, { children: t(f, a, g) }, String(Os(f, r, a))))
495
+ children: n?.map((f, a, g) => /* @__PURE__ */ z.jsx(us, { children: t(f, a, g) }, String(_s(f, r, a))))
514
496
  }
515
497
  )
516
498
  }
@@ -521,24 +503,24 @@ const go = Fn(void 0), po = ft(Qt)`
521
503
  alwaysMounted: r = !1,
522
504
  keepAfterMount: o = !1
523
505
  }) => {
524
- const [i, s] = $n(r || t), u = Et(void 0);
525
- return Hn(() => {
506
+ const [i, s] = Hn(r || t), u = Tt(void 0);
507
+ return Bn(() => {
526
508
  if (!(!t || r))
527
509
  return clearTimeout(u.current), s(!0), () => {
528
510
  o || (u.current = setTimeout(() => s(!1), n));
529
511
  };
530
512
  }, [t, r, n]), i ? e : null;
531
- }, Ps = (e, t) => {
532
- const n = Et(e);
513
+ }, Ls = (e, t) => {
514
+ const n = Tt(e);
533
515
  qe(() => {
534
516
  if (n.current !== e)
535
517
  return n.current = e, t(e);
536
518
  }, [e]);
537
519
  };
538
- var bn, Rr;
539
- function Ls() {
540
- if (Rr) return bn;
541
- Rr = 1;
520
+ var wn, Er;
521
+ function Ms() {
522
+ if (Er) return wn;
523
+ Er = 1;
542
524
  var e = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt, l = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, c = typeof self == "object" && self && self.Object === Object && self, p = l || c || Function("return this")(), f = Object.prototype, a = f.toString, g = Math.max, v = Math.min, h = function() {
543
525
  return p.Date.now();
544
526
  };
@@ -624,18 +606,18 @@ function Ls() {
624
606
  var j = i.test(C);
625
607
  return j || s.test(C) ? u(C.slice(2), j ? 2 : 8) : o.test(C) ? t : +C;
626
608
  }
627
- return bn = T, bn;
609
+ return wn = T, wn;
628
610
  }
629
- var Ms = Ls();
630
- const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScreenState: n } = {}) => {
631
- const [r, o] = $n(() => ({
632
- ...yr(e.breakpoints),
611
+ var Ds = Ms();
612
+ const Is = /* @__PURE__ */ go(Ds), ks = (e, { resizeThrottle: t = 0, overrideScreenState: n } = {}) => {
613
+ const [r, o] = Hn(() => ({
614
+ ...br(e.breakpoints),
633
615
  ...n
634
616
  }));
635
617
  return qe(() => {
636
- const i = Ds(() => {
618
+ const i = Is(() => {
637
619
  o({
638
- ...yr(e.breakpoints),
620
+ ...br(e.breakpoints),
639
621
  ...n
640
622
  });
641
623
  }, t);
@@ -665,10 +647,10 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
665
647
  deltaX: U,
666
648
  deltaY: $,
667
649
  get movingSpeedX() {
668
- return vr(U, H);
650
+ return yr(U, H);
669
651
  },
670
652
  get movingSpeedY() {
671
- return vr($, H);
653
+ return yr($, H);
672
654
  }
673
655
  }, s, D);
674
656
  }
@@ -684,7 +666,7 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
684
666
  deltaY: D - a,
685
667
  distanceX: A - c,
686
668
  distanceY: D - p,
687
- euclideanDistance: ds(c, p, A, D)
669
+ euclideanDistance: gs(c, p, A, D)
688
670
  };
689
671
  if (!await u(U)) {
690
672
  f = A, a = D, await E(!t, H);
@@ -727,14 +709,14 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
727
709
  document.removeEventListener("keyup", o);
728
710
  };
729
711
  }, [e, n, r]);
730
- }, Vn = Fn(void 0), Un = () => {
731
- const e = Zt(Vn);
732
- return Bn(
712
+ }, Un = $n(void 0), Yn = () => {
713
+ const e = Qt(Un);
714
+ return Wn(
733
715
  e,
734
716
  "The `useHoneyLayout()` hook must be used inside <HoneyLayoutProvider/> component!"
735
717
  ), e;
736
- }, ks = (e, t) => {
737
- const { registerOverlay: n, unregisterOverlay: r } = Un(), o = Et(null);
718
+ }, Ns = (e, t) => {
719
+ const { registerOverlay: n, unregisterOverlay: r } = Yn(), o = Tt(null);
738
720
  return qe(() => {
739
721
  if (!e)
740
722
  return;
@@ -744,14 +726,14 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
744
726
  };
745
727
  }, [e, t.onKeyUp]), o.current;
746
728
  }, Pu = (e, { onKeyUp: t } = {}) => {
747
- const { overlays: n } = Un(), r = n.find((o) => o.id === e);
729
+ const { overlays: n } = Yn(), r = n.find((o) => o.id === e);
748
730
  return qe(() => {
749
731
  if (!(!r || !t))
750
732
  return r.addListener("keyup", t), () => {
751
733
  r.removeListener("keyup", t);
752
734
  };
753
735
  }, [r, t]), r;
754
- }, Ns = ({
736
+ }, js = ({
755
737
  ref: e,
756
738
  children: t,
757
739
  active: n,
@@ -759,27 +741,27 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
759
741
  onDeactivate: o,
760
742
  ...i
761
743
  }) => {
762
- const s = ks(n, {
744
+ const s = Ns(n, {
763
745
  id: r,
764
- onKeyUp: Ht(
746
+ onKeyUp: Bt(
765
747
  (l) => {
766
748
  l === "Escape" && o();
767
749
  },
768
750
  [o]
769
751
  )
770
- }), u = ls(s?.setContainerRef, e);
771
- return /* @__PURE__ */ z.jsx(Qt, { ref: u, inert: !n, ...i, children: Pn(t, {
752
+ }), u = fs(s?.setContainerRef, e);
753
+ return /* @__PURE__ */ z.jsx(en, { ref: u, inert: !n, ...i, children: Ln(t, {
772
754
  overlay: s,
773
755
  deactivateOverlay: o
774
756
  }) });
775
- }, mo = Fn(
757
+ }, ho = $n(
776
758
  void 0
777
759
  );
778
- function en() {
760
+ function tn() {
779
761
  return typeof window < "u";
780
762
  }
781
763
  function Xe(e) {
782
- return Yn(e) ? (e.nodeName || "").toLowerCase() : "#document";
764
+ return zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
783
765
  }
784
766
  function Re(e) {
785
767
  var t;
@@ -787,37 +769,37 @@ function Re(e) {
787
769
  }
788
770
  function je(e) {
789
771
  var t;
790
- return (t = (Yn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
772
+ return (t = (zn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
791
773
  }
792
- function Yn(e) {
793
- return en() ? e instanceof Node || e instanceof Re(e).Node : !1;
774
+ function zn(e) {
775
+ return tn() ? e instanceof Node || e instanceof Re(e).Node : !1;
794
776
  }
795
777
  function ie(e) {
796
- return en() ? e instanceof Element || e instanceof Re(e).Element : !1;
778
+ return tn() ? e instanceof Element || e instanceof Re(e).Element : !1;
797
779
  }
798
780
  function le(e) {
799
- return en() ? e instanceof HTMLElement || e instanceof Re(e).HTMLElement : !1;
781
+ return tn() ? e instanceof HTMLElement || e instanceof Re(e).HTMLElement : !1;
800
782
  }
801
- function Bt(e) {
802
- return !en() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Re(e).ShadowRoot;
783
+ function Wt(e) {
784
+ return !tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Re(e).ShadowRoot;
803
785
  }
804
- const js = /* @__PURE__ */ new Set(["inline", "contents"]);
805
- function Tt(e) {
786
+ const Fs = /* @__PURE__ */ new Set(["inline", "contents"]);
787
+ function St(e) {
806
788
  const {
807
789
  overflow: t,
808
790
  overflowX: n,
809
791
  overflowY: r,
810
792
  display: o
811
793
  } = _e(e);
812
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !js.has(o);
794
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Fs.has(o);
813
795
  }
814
- const Fs = /* @__PURE__ */ new Set(["table", "td", "th"]);
815
- function $s(e) {
816
- return Fs.has(Xe(e));
796
+ const $s = /* @__PURE__ */ new Set(["table", "td", "th"]);
797
+ function Hs(e) {
798
+ return $s.has(Xe(e));
817
799
  }
818
- const Hs = [":popover-open", ":modal"];
819
- function tn(e) {
820
- return Hs.some((t) => {
800
+ const Bs = [":popover-open", ":modal"];
801
+ function nn(e) {
802
+ return Bs.some((t) => {
821
803
  try {
822
804
  return e.matches(t);
823
805
  } catch {
@@ -825,33 +807,33 @@ function tn(e) {
825
807
  }
826
808
  });
827
809
  }
828
- const Bs = ["transform", "translate", "scale", "rotate", "perspective"], Ws = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vs = ["paint", "layout", "strict", "content"];
829
- function zn(e) {
830
- const t = nn(), n = ie(e) ? _e(e) : e;
831
- return Bs.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) || Ws.some((r) => (n.willChange || "").includes(r)) || Vs.some((r) => (n.contain || "").includes(r));
810
+ const Ws = ["transform", "translate", "scale", "rotate", "perspective"], Vs = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Us = ["paint", "layout", "strict", "content"];
811
+ function Gn(e) {
812
+ const t = rn(), n = ie(e) ? _e(e) : e;
813
+ return Ws.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) || Vs.some((r) => (n.willChange || "").includes(r)) || Us.some((r) => (n.contain || "").includes(r));
832
814
  }
833
- function Us(e) {
815
+ function Ys(e) {
834
816
  let t = We(e);
835
817
  for (; le(t) && !He(t); ) {
836
- if (zn(t))
818
+ if (Gn(t))
837
819
  return t;
838
- if (tn(t))
820
+ if (nn(t))
839
821
  return null;
840
822
  t = We(t);
841
823
  }
842
824
  return null;
843
825
  }
844
- function nn() {
826
+ function rn() {
845
827
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
846
828
  }
847
- const Ys = /* @__PURE__ */ new Set(["html", "body", "#document"]);
829
+ const zs = /* @__PURE__ */ new Set(["html", "body", "#document"]);
848
830
  function He(e) {
849
- return Ys.has(Xe(e));
831
+ return zs.has(Xe(e));
850
832
  }
851
833
  function _e(e) {
852
834
  return Re(e).getComputedStyle(e);
853
835
  }
854
- function rn(e) {
836
+ function on(e) {
855
837
  return ie(e) ? {
856
838
  scrollLeft: e.scrollLeft,
857
839
  scrollTop: e.scrollTop
@@ -867,41 +849,41 @@ function We(e) {
867
849
  // Step into the shadow DOM of the parent of a slotted node.
868
850
  e.assignedSlot || // DOM Element detected.
869
851
  e.parentNode || // ShadowRoot detected.
870
- Bt(e) && e.host || // Fallback.
852
+ Wt(e) && e.host || // Fallback.
871
853
  je(e)
872
854
  );
873
- return Bt(t) ? t.host : t;
855
+ return Wt(t) ? t.host : t;
874
856
  }
875
- function ho(e) {
857
+ function vo(e) {
876
858
  const t = We(e);
877
- return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Tt(t) ? t : ho(t);
859
+ return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && St(t) ? t : vo(t);
878
860
  }
879
861
  function ze(e, t, n) {
880
862
  var r;
881
863
  t === void 0 && (t = []), n === void 0 && (n = !0);
882
- const o = ho(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = Re(o);
864
+ const o = vo(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = Re(o);
883
865
  if (i) {
884
- const u = Ln(s);
885
- return t.concat(s, s.visualViewport || [], Tt(o) ? o : [], u && n ? ze(u) : []);
866
+ const u = Mn(s);
867
+ return t.concat(s, s.visualViewport || [], St(o) ? o : [], u && n ? ze(u) : []);
886
868
  }
887
869
  return t.concat(o, ze(o, [], n));
888
870
  }
889
- function Ln(e) {
871
+ function Mn(e) {
890
872
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
891
873
  }
892
- const zs = ["top", "right", "bottom", "left"], Er = ["start", "end"], Tr = /* @__PURE__ */ zs.reduce((e, t) => e.concat(t, t + "-" + Er[0], t + "-" + Er[1]), []), Ge = Math.min, Oe = Math.max, Wt = Math.round, kt = Math.floor, ke = (e) => ({
874
+ const Gs = ["top", "right", "bottom", "left"], Tr = ["start", "end"], Sr = /* @__PURE__ */ Gs.reduce((e, t) => e.concat(t, t + "-" + Tr[0], t + "-" + Tr[1]), []), Ge = Math.min, Oe = Math.max, Vt = Math.round, Nt = Math.floor, ke = (e) => ({
893
875
  x: e,
894
876
  y: e
895
- }), Gs = {
877
+ }), qs = {
896
878
  left: "right",
897
879
  right: "left",
898
880
  bottom: "top",
899
881
  top: "bottom"
900
- }, qs = {
882
+ }, Xs = {
901
883
  start: "end",
902
884
  end: "start"
903
885
  };
904
- function Mn(e, t, n) {
886
+ function Dn(e, t, n) {
905
887
  return Oe(e, Ge(t, n));
906
888
  }
907
889
  function tt(e, t) {
@@ -913,54 +895,54 @@ function Ne(e) {
913
895
  function De(e) {
914
896
  return e.split("-")[1];
915
897
  }
916
- function vo(e) {
898
+ function yo(e) {
917
899
  return e === "x" ? "y" : "x";
918
900
  }
919
- function Gn(e) {
901
+ function qn(e) {
920
902
  return e === "y" ? "height" : "width";
921
903
  }
922
- const Xs = /* @__PURE__ */ new Set(["top", "bottom"]);
904
+ const Ks = /* @__PURE__ */ new Set(["top", "bottom"]);
923
905
  function $e(e) {
924
- return Xs.has(Ne(e)) ? "y" : "x";
906
+ return Ks.has(Ne(e)) ? "y" : "x";
925
907
  }
926
- function qn(e) {
927
- return vo($e(e));
908
+ function Xn(e) {
909
+ return yo($e(e));
928
910
  }
929
- function yo(e, t, n) {
911
+ function bo(e, t, n) {
930
912
  n === void 0 && (n = !1);
931
- const r = De(e), o = qn(e), i = Gn(o);
913
+ const r = De(e), o = Xn(e), i = qn(o);
932
914
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
933
- return t.reference[i] > t.floating[i] && (s = Ut(s)), [s, Ut(s)];
915
+ return t.reference[i] > t.floating[i] && (s = Yt(s)), [s, Yt(s)];
934
916
  }
935
- function Ks(e) {
936
- const t = Ut(e);
937
- return [Vt(e), t, Vt(t)];
917
+ function Js(e) {
918
+ const t = Yt(e);
919
+ return [Ut(e), t, Ut(t)];
938
920
  }
939
- function Vt(e) {
940
- return e.replace(/start|end/g, (t) => qs[t]);
921
+ function Ut(e) {
922
+ return e.replace(/start|end/g, (t) => Xs[t]);
941
923
  }
942
- const Sr = ["left", "right"], Or = ["right", "left"], Js = ["top", "bottom"], Zs = ["bottom", "top"];
943
- function Qs(e, t, n) {
924
+ const Or = ["left", "right"], _r = ["right", "left"], Zs = ["top", "bottom"], Qs = ["bottom", "top"];
925
+ function ec(e, t, n) {
944
926
  switch (e) {
945
927
  case "top":
946
928
  case "bottom":
947
- return n ? t ? Or : Sr : t ? Sr : Or;
929
+ return n ? t ? _r : Or : t ? Or : _r;
948
930
  case "left":
949
931
  case "right":
950
- return t ? Js : Zs;
932
+ return t ? Zs : Qs;
951
933
  default:
952
934
  return [];
953
935
  }
954
936
  }
955
- function ec(e, t, n, r) {
937
+ function tc(e, t, n, r) {
956
938
  const o = De(e);
957
- let i = Qs(Ne(e), n === "start", r);
958
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Vt)))), i;
939
+ let i = ec(Ne(e), n === "start", r);
940
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ut)))), i;
959
941
  }
960
- function Ut(e) {
961
- return e.replace(/left|right|bottom|top/g, (t) => Gs[t]);
942
+ function Yt(e) {
943
+ return e.replace(/left|right|bottom|top/g, (t) => qs[t]);
962
944
  }
963
- function tc(e) {
945
+ function nc(e) {
964
946
  return {
965
947
  top: 0,
966
948
  right: 0,
@@ -969,15 +951,15 @@ function tc(e) {
969
951
  ...e
970
952
  };
971
953
  }
972
- function bo(e) {
973
- return typeof e != "number" ? tc(e) : {
954
+ function wo(e) {
955
+ return typeof e != "number" ? nc(e) : {
974
956
  top: e,
975
957
  right: e,
976
958
  bottom: e,
977
959
  left: e
978
960
  };
979
961
  }
980
- function Yt(e) {
962
+ function zt(e) {
981
963
  const {
982
964
  x: t,
983
965
  y: n,
@@ -995,46 +977,42 @@ function Yt(e) {
995
977
  y: n
996
978
  };
997
979
  }
998
- /*!
999
- * tabbable 6.2.0
1000
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1001
- */
1002
- var nc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], zt = /* @__PURE__ */ nc.join(","), wo = typeof Element > "u", ut = wo ? function() {
1003
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Gt = !wo && Element.prototype.getRootNode ? function(e) {
980
+ var rc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Gt = /* @__PURE__ */ rc.join(","), xo = typeof Element > "u", ut = xo ? function() {
981
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, qt = !xo && Element.prototype.getRootNode ? function(e) {
1004
982
  var t;
1005
983
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1006
984
  } : function(e) {
1007
985
  return e?.ownerDocument;
1008
- }, qt = function e(t, n) {
986
+ }, xt = function(t, n) {
1009
987
  var r;
1010
988
  n === void 0 && (n = !0);
1011
- var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", s = i || n && t && e(t.parentNode);
989
+ var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", s = i || n && t && xt(t.parentNode);
1012
990
  return s;
1013
- }, rc = function(t) {
991
+ }, oc = function(t) {
1014
992
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
1015
993
  return r === "" || r === "true";
1016
- }, xo = function(t, n, r) {
1017
- if (qt(t))
994
+ }, Ro = function(t, n, r) {
995
+ if (xt(t))
1018
996
  return [];
1019
- var o = Array.prototype.slice.apply(t.querySelectorAll(zt));
1020
- return n && ut.call(t, zt) && o.unshift(t), o = o.filter(r), o;
1021
- }, Ro = function e(t, n, r) {
997
+ var o = Array.prototype.slice.apply(t.querySelectorAll(Gt));
998
+ return n && ut.call(t, Gt) && o.unshift(t), o = o.filter(r), o;
999
+ }, Xt = function(t, n, r) {
1022
1000
  for (var o = [], i = Array.from(t); i.length; ) {
1023
1001
  var s = i.shift();
1024
- if (!qt(s, !1))
1002
+ if (!xt(s, !1))
1025
1003
  if (s.tagName === "SLOT") {
1026
- var u = s.assignedElements(), l = u.length ? u : s.children, c = e(l, !0, r);
1004
+ var u = s.assignedElements(), l = u.length ? u : s.children, c = Xt(l, !0, r);
1027
1005
  r.flatten ? o.push.apply(o, c) : o.push({
1028
1006
  scopeParent: s,
1029
1007
  candidates: c
1030
1008
  });
1031
1009
  } else {
1032
- var p = ut.call(s, zt);
1010
+ var p = ut.call(s, Gt);
1033
1011
  p && r.filter(s) && (n || !t.includes(s)) && o.push(s);
1034
1012
  var f = s.shadowRoot || // check for an undisclosed shadow
1035
- typeof r.getShadowRoot == "function" && r.getShadowRoot(s), a = !qt(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
1013
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(s), a = !xt(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
1036
1014
  if (f && a) {
1037
- var g = e(f === !0 ? s.children : f.children, !0, r);
1015
+ var g = Xt(f === !0 ? s.children : f.children, !0, r);
1038
1016
  r.flatten ? o.push.apply(o, g) : o.push({
1039
1017
  scopeParent: s,
1040
1018
  candidates: g
@@ -1049,29 +1027,29 @@ var nc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1049
1027
  }, To = function(t) {
1050
1028
  if (!t)
1051
1029
  throw new Error("No node provided");
1052
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || rc(t)) && !Eo(t) ? 0 : t.tabIndex;
1053
- }, oc = function(t, n) {
1030
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || oc(t)) && !Eo(t) ? 0 : t.tabIndex;
1031
+ }, ic = function(t, n) {
1054
1032
  var r = To(t);
1055
1033
  return r < 0 && n && !Eo(t) ? 0 : r;
1056
- }, ic = function(t, n) {
1034
+ }, sc = function(t, n) {
1057
1035
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
1058
1036
  }, So = function(t) {
1059
1037
  return t.tagName === "INPUT";
1060
- }, sc = function(t) {
1061
- return So(t) && t.type === "hidden";
1062
1038
  }, cc = function(t) {
1039
+ return So(t) && t.type === "hidden";
1040
+ }, ac = function(t) {
1063
1041
  var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
1064
1042
  return r.tagName === "SUMMARY";
1065
1043
  });
1066
1044
  return n;
1067
- }, ac = function(t, n) {
1045
+ }, uc = function(t, n) {
1068
1046
  for (var r = 0; r < t.length; r++)
1069
1047
  if (t[r].checked && t[r].form === n)
1070
1048
  return t[r];
1071
- }, uc = function(t) {
1049
+ }, lc = function(t) {
1072
1050
  if (!t.name)
1073
1051
  return !0;
1074
- var n = t.form || Gt(t), r = function(u) {
1052
+ var n = t.form || qt(t), r = function(u) {
1075
1053
  return n.querySelectorAll('input[type="radio"][name="' + u + '"]');
1076
1054
  }, o;
1077
1055
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
@@ -1082,50 +1060,68 @@ var nc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1082
1060
  } catch (s) {
1083
1061
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
1084
1062
  }
1085
- var i = ac(o, t.form);
1063
+ var i = uc(o, t.form);
1086
1064
  return !i || i === t;
1087
- }, lc = function(t) {
1088
- return So(t) && t.type === "radio";
1089
1065
  }, fc = function(t) {
1090
- return lc(t) && !uc(t);
1066
+ return So(t) && t.type === "radio";
1091
1067
  }, dc = function(t) {
1092
- var n, r = t && Gt(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
1068
+ return fc(t) && !lc(t);
1069
+ }, gc = function(t) {
1070
+ var n, r = t && qt(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
1093
1071
  if (r && r !== t) {
1094
1072
  var s, u, l;
1095
1073
  for (i = !!((s = o) !== null && s !== void 0 && (u = s.ownerDocument) !== null && u !== void 0 && u.contains(o) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && o; ) {
1096
1074
  var c, p, f;
1097
- r = Gt(o), o = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((p = o) !== null && p !== void 0 && (f = p.ownerDocument) !== null && f !== void 0 && f.contains(o));
1075
+ r = qt(o), o = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((p = o) !== null && p !== void 0 && (f = p.ownerDocument) !== null && f !== void 0 && f.contains(o));
1098
1076
  }
1099
1077
  }
1100
1078
  return i;
1101
- }, _r = function(t) {
1079
+ }, Cr = function(t) {
1102
1080
  var n = t.getBoundingClientRect(), r = n.width, o = n.height;
1103
1081
  return r === 0 && o === 0;
1104
- }, gc = function(t, n) {
1082
+ }, pc = function(t, n) {
1105
1083
  var r = n.displayCheck, o = n.getShadowRoot;
1084
+ if (r === "full-native" && "checkVisibility" in t) {
1085
+ var i = t.checkVisibility({
1086
+ // Checking opacity might be desirable for some use cases, but natively,
1087
+ // opacity zero elements _are_ focusable and tabbable.
1088
+ checkOpacity: !1,
1089
+ opacityProperty: !1,
1090
+ contentVisibilityAuto: !0,
1091
+ visibilityProperty: !0,
1092
+ // This is an alias for `visibilityProperty`. Contemporary browsers
1093
+ // support both. However, this alias has wider browser support (Chrome
1094
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
1095
+ // we include it anyway.
1096
+ checkVisibilityCSS: !0
1097
+ });
1098
+ return !i;
1099
+ }
1106
1100
  if (getComputedStyle(t).visibility === "hidden")
1107
1101
  return !0;
1108
- var i = ut.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
1109
- if (ut.call(s, "details:not([open]) *"))
1102
+ var s = ut.call(t, "details>summary:first-of-type"), u = s ? t.parentElement : t;
1103
+ if (ut.call(u, "details:not([open]) *"))
1110
1104
  return !0;
1111
- if (!r || r === "full" || r === "legacy-full") {
1105
+ if (!r || r === "full" || // full-native can run this branch when it falls through in case
1106
+ // Element#checkVisibility is unsupported
1107
+ r === "full-native" || r === "legacy-full") {
1112
1108
  if (typeof o == "function") {
1113
- for (var u = t; t; ) {
1114
- var l = t.parentElement, c = Gt(t);
1115
- if (l && !l.shadowRoot && o(l) === !0)
1116
- return _r(t);
1117
- t.assignedSlot ? t = t.assignedSlot : !l && c !== t.ownerDocument ? t = c.host : t = l;
1109
+ for (var l = t; t; ) {
1110
+ var c = t.parentElement, p = qt(t);
1111
+ if (c && !c.shadowRoot && o(c) === !0)
1112
+ return Cr(t);
1113
+ t.assignedSlot ? t = t.assignedSlot : !c && p !== t.ownerDocument ? t = p.host : t = c;
1118
1114
  }
1119
- t = u;
1115
+ t = l;
1120
1116
  }
1121
- if (dc(t))
1117
+ if (gc(t))
1122
1118
  return !t.getClientRects().length;
1123
1119
  if (r !== "legacy-full")
1124
1120
  return !0;
1125
1121
  } else if (r === "non-zero-area")
1126
- return _r(t);
1122
+ return Cr(t);
1127
1123
  return !1;
1128
- }, pc = function(t) {
1124
+ }, mc = function(t) {
1129
1125
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
1130
1126
  for (var n = t.parentElement; n; ) {
1131
1127
  if (n.tagName === "FIELDSET" && n.disabled) {
@@ -1139,21 +1135,21 @@ var nc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1139
1135
  n = n.parentElement;
1140
1136
  }
1141
1137
  return !1;
1142
- }, Dn = function(t, n) {
1138
+ }, In = function(t, n) {
1143
1139
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
1144
1140
  // because we're limited in the type of selectors we can use in JSDom (see related
1145
1141
  // note related to `candidateSelectors`)
1146
- qt(n) || sc(n) || gc(n, t) || // For a details element with a summary, the summary element gets the focus
1147
- cc(n) || pc(n));
1148
- }, In = function(t, n) {
1149
- return !(fc(n) || To(n) < 0 || !Dn(t, n));
1150
- }, mc = function(t) {
1142
+ xt(n) || cc(n) || pc(n, t) || // For a details element with a summary, the summary element gets the focus
1143
+ ac(n) || mc(n));
1144
+ }, kn = function(t, n) {
1145
+ return !(dc(n) || To(n) < 0 || !In(t, n));
1146
+ }, hc = function(t) {
1151
1147
  var n = parseInt(t.getAttribute("tabindex"), 10);
1152
1148
  return !!(isNaN(n) || n >= 0);
1153
- }, hc = function e(t) {
1149
+ }, Oo = function(t) {
1154
1150
  var n = [], r = [];
1155
1151
  return t.forEach(function(o, i) {
1156
- var s = !!o.scopeParent, u = s ? o.scopeParent : o, l = oc(u, s), c = s ? e(o.candidates) : u;
1152
+ var s = !!o.scopeParent, u = s ? o.scopeParent : o, l = ic(u, s), c = s ? Oo(o.candidates) : u;
1157
1153
  l === 0 ? s ? n.push.apply(n, c) : n.push(u) : r.push({
1158
1154
  documentOrder: i,
1159
1155
  tabIndex: l,
@@ -1161,36 +1157,36 @@ var nc = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1161
1157
  isScope: s,
1162
1158
  content: c
1163
1159
  });
1164
- }), r.sort(ic).reduce(function(o, i) {
1160
+ }), r.sort(sc).reduce(function(o, i) {
1165
1161
  return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
1166
1162
  }, []).concat(n);
1167
- }, on = function(t, n) {
1163
+ }, sn = function(t, n) {
1168
1164
  n = n || {};
1169
1165
  var r;
1170
- return n.getShadowRoot ? r = Ro([t], n.includeContainer, {
1171
- filter: In.bind(null, n),
1166
+ return n.getShadowRoot ? r = Xt([t], n.includeContainer, {
1167
+ filter: kn.bind(null, n),
1172
1168
  flatten: !1,
1173
1169
  getShadowRoot: n.getShadowRoot,
1174
- shadowRootFilter: mc
1175
- }) : r = xo(t, n.includeContainer, In.bind(null, n)), hc(r);
1170
+ shadowRootFilter: hc
1171
+ }) : r = Ro(t, n.includeContainer, kn.bind(null, n)), Oo(r);
1176
1172
  }, vc = function(t, n) {
1177
1173
  n = n || {};
1178
1174
  var r;
1179
- return n.getShadowRoot ? r = Ro([t], n.includeContainer, {
1180
- filter: Dn.bind(null, n),
1175
+ return n.getShadowRoot ? r = Xt([t], n.includeContainer, {
1176
+ filter: In.bind(null, n),
1181
1177
  flatten: !0,
1182
1178
  getShadowRoot: n.getShadowRoot
1183
- }) : r = xo(t, n.includeContainer, Dn.bind(null, n)), r;
1184
- }, Oo = function(t, n) {
1179
+ }) : r = Ro(t, n.includeContainer, In.bind(null, n)), r;
1180
+ }, _o = function(t, n) {
1185
1181
  if (n = n || {}, !t)
1186
1182
  throw new Error("No node provided");
1187
- return ut.call(t, zt) === !1 ? !1 : In(n, t);
1183
+ return ut.call(t, Gt) === !1 ? !1 : kn(n, t);
1188
1184
  };
1189
- function _o() {
1185
+ function Co() {
1190
1186
  const e = navigator.userAgentData;
1191
1187
  return e != null && e.platform ? e.platform : navigator.platform;
1192
1188
  }
1193
- function Co() {
1189
+ function Ao() {
1194
1190
  const e = navigator.userAgentData;
1195
1191
  return e && Array.isArray(e.brands) ? e.brands.map((t) => {
1196
1192
  let {
@@ -1200,20 +1196,20 @@ function Co() {
1200
1196
  return n + "/" + r;
1201
1197
  }).join(" ") : navigator.userAgent;
1202
1198
  }
1203
- function Ao() {
1199
+ function Po() {
1204
1200
  return /apple/i.test(navigator.vendor);
1205
1201
  }
1206
- function kn() {
1202
+ function Nn() {
1207
1203
  const e = /android/i;
1208
- return e.test(_o()) || e.test(Co());
1204
+ return e.test(Co()) || e.test(Ao());
1209
1205
  }
1210
1206
  function yc() {
1211
- return _o().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
1207
+ return Co().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
1212
1208
  }
1213
- function Po() {
1214
- return Co().includes("jsdom/");
1209
+ function Lo() {
1210
+ return Ao().includes("jsdom/");
1215
1211
  }
1216
- const Cr = "data-floating-ui-focusable", bc = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1212
+ const Ar = "data-floating-ui-focusable", bc = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1217
1213
  function Ve(e) {
1218
1214
  let t = e.activeElement;
1219
1215
  for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
@@ -1228,7 +1224,7 @@ function he(e, t) {
1228
1224
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
1229
1225
  if (e.contains(t))
1230
1226
  return !0;
1231
- if (n && Bt(n)) {
1227
+ if (n && Wt(n)) {
1232
1228
  let r = t;
1233
1229
  for (; r; ) {
1234
1230
  if (e === r)
@@ -1241,7 +1237,7 @@ function he(e, t) {
1241
1237
  function Ie(e) {
1242
1238
  return "composedPath" in e ? e.composedPath()[0] : e.target;
1243
1239
  }
1244
- function wn(e, t) {
1240
+ function xn(e, t) {
1245
1241
  if (t == null)
1246
1242
  return !1;
1247
1243
  if ("composedPath" in e)
@@ -1255,22 +1251,22 @@ function wc(e) {
1255
1251
  function be(e) {
1256
1252
  return e?.ownerDocument || document;
1257
1253
  }
1258
- function Xn(e) {
1254
+ function Kn(e) {
1259
1255
  return le(e) && e.matches(bc);
1260
1256
  }
1261
- function Ar(e) {
1262
- return e ? e.getAttribute("role") === "combobox" && Xn(e) : !1;
1257
+ function Pr(e) {
1258
+ return e ? e.getAttribute("role") === "combobox" && Kn(e) : !1;
1263
1259
  }
1264
1260
  function xc(e) {
1265
- if (!e || Po()) return !0;
1261
+ if (!e || Lo()) return !0;
1266
1262
  try {
1267
1263
  return e.matches(":focus-visible");
1268
1264
  } catch {
1269
1265
  return !0;
1270
1266
  }
1271
1267
  }
1272
- function Nn(e) {
1273
- return e ? e.hasAttribute(Cr) ? e : e.querySelector("[" + Cr + "]") || e : null;
1268
+ function jn(e) {
1269
+ return e ? e.hasAttribute(Ar) ? e : e.querySelector("[" + Ar + "]") || e : null;
1274
1270
  }
1275
1271
  function st(e, t, n) {
1276
1272
  return n === void 0 && (n = !0), e.filter((o) => {
@@ -1278,7 +1274,7 @@ function st(e, t, n) {
1278
1274
  return o.parentId === t && (!n || ((i = o.context) == null ? void 0 : i.open));
1279
1275
  }).flatMap((o) => [o, ...st(e, o.id, n)]);
1280
1276
  }
1281
- function Pr(e, t) {
1277
+ function Lr(e, t) {
1282
1278
  var n;
1283
1279
  let r = [], o = (n = e.find((i) => i.id === t)) == null ? void 0 : n.parentId;
1284
1280
  for (; o; ) {
@@ -1287,17 +1283,17 @@ function Pr(e, t) {
1287
1283
  }
1288
1284
  return r;
1289
1285
  }
1290
- function xn(e) {
1286
+ function Rn(e) {
1291
1287
  e.preventDefault(), e.stopPropagation();
1292
1288
  }
1293
1289
  function Rc(e) {
1294
1290
  return "nativeEvent" in e;
1295
1291
  }
1296
1292
  function Ec(e) {
1297
- return e.mozInputSource === 0 && e.isTrusted ? !0 : kn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
1293
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : Nn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
1298
1294
  }
1299
1295
  function Tc(e) {
1300
- return Po() ? !1 : !kn() && e.width === 0 && e.height === 0 || kn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1296
+ return Lo() ? !1 : !Nn() && e.width === 0 && e.height === 0 || Nn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1301
1297
  e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
1302
1298
  }
1303
1299
  function lt(e, t) {
@@ -1305,7 +1301,7 @@ function lt(e, t) {
1305
1301
  return t || n.push("", void 0), n.includes(e);
1306
1302
  }
1307
1303
  var Sc = typeof document < "u", Oc = function() {
1308
- }, de = Sc ? Hn : Oc;
1304
+ }, de = Sc ? Bn : Oc;
1309
1305
  const _c = {
1310
1306
  ...x
1311
1307
  };
@@ -1329,7 +1325,7 @@ function we(e) {
1329
1325
  return t.current == null ? void 0 : t.current(...r);
1330
1326
  }, []);
1331
1327
  }
1332
- const St = () => ({
1328
+ const Ot = () => ({
1333
1329
  getShadowRoot: !0,
1334
1330
  displayCheck: (
1335
1331
  // JSDOM does not support the `tabbable` library. To solve this we can
@@ -1338,48 +1334,39 @@ const St = () => ({
1338
1334
  typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
1339
1335
  )
1340
1336
  });
1341
- function Lo(e, t) {
1342
- const n = on(e, St()), r = n.length;
1337
+ function Mo(e, t) {
1338
+ const n = sn(e, Ot()), r = n.length;
1343
1339
  if (r === 0) return;
1344
1340
  const o = Ve(be(e)), i = n.indexOf(o), s = i === -1 ? t === 1 ? 0 : r - 1 : i + t;
1345
1341
  return n[s];
1346
1342
  }
1347
- function Mo(e) {
1348
- return Lo(be(e).body, 1) || e;
1349
- }
1350
1343
  function Do(e) {
1351
- return Lo(be(e).body, -1) || e;
1344
+ return Mo(be(e).body, 1) || e;
1345
+ }
1346
+ function Io(e) {
1347
+ return Mo(be(e).body, -1) || e;
1352
1348
  }
1353
1349
  function wt(e, t) {
1354
1350
  const n = t || e.currentTarget, r = e.relatedTarget;
1355
1351
  return !r || !he(n, r);
1356
1352
  }
1357
1353
  function Pc(e) {
1358
- on(e, St()).forEach((n) => {
1354
+ sn(e, Ot()).forEach((n) => {
1359
1355
  n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
1360
1356
  });
1361
1357
  }
1362
- function Lr(e) {
1358
+ function Mr(e) {
1363
1359
  e.querySelectorAll("[data-tabindex]").forEach((n) => {
1364
1360
  const r = n.dataset.tabindex;
1365
1361
  delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
1366
1362
  });
1367
1363
  }
1368
- var Nt = { exports: {} }, ve = {};
1369
- /**
1370
- * @license React
1371
- * react-dom.production.js
1372
- *
1373
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1374
- *
1375
- * This source code is licensed under the MIT license found in the
1376
- * LICENSE file in the root directory of this source tree.
1377
- */
1378
- var Mr;
1364
+ var jt = { exports: {} }, ve = {};
1365
+ var Dr;
1379
1366
  function Lc() {
1380
- if (Mr) return ve;
1381
- Mr = 1;
1382
- var e = jn;
1367
+ if (Dr) return ve;
1368
+ Dr = 1;
1369
+ var e = Fn;
1383
1370
  function t(l) {
1384
1371
  var c = "https://react.dev/errors/" + l;
1385
1372
  if (1 < arguments.length) {
@@ -1509,18 +1496,9 @@ function Lc() {
1509
1496
  }, ve.version = "19.2.0", ve;
1510
1497
  }
1511
1498
  var ye = {};
1512
- /**
1513
- * @license React
1514
- * react-dom.development.js
1515
- *
1516
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1517
- *
1518
- * This source code is licensed under the MIT license found in the
1519
- * LICENSE file in the root directory of this source tree.
1520
- */
1521
- var Dr;
1499
+ var Ir;
1522
1500
  function Mc() {
1523
- return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && (function() {
1501
+ return Ir || (Ir = 1, process.env.NODE_ENV !== "production" && (function() {
1524
1502
  function e() {
1525
1503
  }
1526
1504
  function t(f) {
@@ -1567,7 +1545,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1567
1545
  ), f;
1568
1546
  }
1569
1547
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1570
- var u = jn, l = {
1548
+ var u = Fn, l = {
1571
1549
  d: {
1572
1550
  f: e,
1573
1551
  r: function() {
@@ -1731,10 +1709,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1731
1709
  }, ye.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1732
1710
  })()), ye;
1733
1711
  }
1734
- var Ir;
1712
+ var kr;
1735
1713
  function Dc() {
1736
- if (Ir) return Nt.exports;
1737
- Ir = 1;
1714
+ if (kr) return jt.exports;
1715
+ kr = 1;
1738
1716
  function e() {
1739
1717
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
1740
1718
  if (process.env.NODE_ENV !== "production")
@@ -1746,15 +1724,15 @@ function Dc() {
1746
1724
  }
1747
1725
  }
1748
1726
  }
1749
- return process.env.NODE_ENV === "production" ? (e(), Nt.exports = Lc()) : Nt.exports = Mc(), Nt.exports;
1727
+ return process.env.NODE_ENV === "production" ? (e(), jt.exports = Lc()) : jt.exports = Mc(), jt.exports;
1750
1728
  }
1751
- var Kn = Dc();
1752
- function kr(e, t, n) {
1729
+ var Jn = Dc();
1730
+ function Nr(e, t, n) {
1753
1731
  let {
1754
1732
  reference: r,
1755
1733
  floating: o
1756
1734
  } = e;
1757
- const i = $e(t), s = qn(t), u = Gn(s), l = Ne(t), c = i === "y", p = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, a = r[u] / 2 - o[u] / 2;
1735
+ const i = $e(t), s = Xn(t), u = qn(s), l = Ne(t), c = i === "y", p = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, a = r[u] / 2 - o[u] / 2;
1758
1736
  let g;
1759
1737
  switch (l) {
1760
1738
  case "top":
@@ -1811,7 +1789,7 @@ const Ic = async (e, t, n) => {
1811
1789
  }), {
1812
1790
  x: p,
1813
1791
  y: f
1814
- } = kr(c, r, l), a = r, g = {}, v = 0;
1792
+ } = Nr(c, r, l), a = r, g = {}, v = 0;
1815
1793
  for (let h = 0; h < u.length; h++) {
1816
1794
  const {
1817
1795
  name: E,
@@ -1848,7 +1826,7 @@ const Ic = async (e, t, n) => {
1848
1826
  }) : N.rects), {
1849
1827
  x: p,
1850
1828
  y: f
1851
- } = kr(c, a, l)), h = -1);
1829
+ } = Nr(c, a, l)), h = -1);
1852
1830
  }
1853
1831
  return {
1854
1832
  x: p,
@@ -1858,7 +1836,7 @@ const Ic = async (e, t, n) => {
1858
1836
  middlewareData: g
1859
1837
  };
1860
1838
  };
1861
- async function sn(e, t) {
1839
+ async function cn(e, t) {
1862
1840
  var n;
1863
1841
  t === void 0 && (t = {});
1864
1842
  const {
@@ -1874,7 +1852,7 @@ async function sn(e, t) {
1874
1852
  elementContext: f = "floating",
1875
1853
  altBoundary: a = !1,
1876
1854
  padding: g = 0
1877
- } = tt(t, e), v = bo(g), E = u[a ? f === "floating" ? "reference" : "floating" : f], T = Yt(await i.getClippingRect({
1855
+ } = tt(t, e), v = wo(g), E = u[a ? f === "floating" ? "reference" : "floating" : f], T = zt(await i.getClippingRect({
1878
1856
  element: (n = await (i.isElement == null ? void 0 : i.isElement(E))) == null || n ? E : E.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(u.floating)),
1879
1857
  boundary: c,
1880
1858
  rootBoundary: p,
@@ -1890,7 +1868,7 @@ async function sn(e, t) {
1890
1868
  } : {
1891
1869
  x: 1,
1892
1870
  y: 1
1893
- }, N = Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1871
+ }, N = zt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1894
1872
  elements: u,
1895
1873
  rect: R,
1896
1874
  offsetParent: _,
@@ -1921,13 +1899,13 @@ const kc = (e) => ({
1921
1899
  } = tt(e, t) || {};
1922
1900
  if (c == null)
1923
1901
  return {};
1924
- const f = bo(p), a = {
1902
+ const f = wo(p), a = {
1925
1903
  x: n,
1926
1904
  y: r
1927
- }, g = qn(o), v = Gn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right", _ = E ? "clientHeight" : "clientWidth", I = i.reference[v] + i.reference[g] - a[g] - i.floating[v], N = a[g] - i.reference[g], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1905
+ }, g = Xn(o), v = qn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right", _ = E ? "clientHeight" : "clientWidth", I = i.reference[v] + i.reference[g] - a[g] - i.floating[v], N = a[g] - i.reference[g], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1928
1906
  let P = C ? C[_] : 0;
1929
1907
  (!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = u.floating[_] || i.floating[v]);
1930
- const j = I / 2 - N / 2, A = P / 2 - h[v] / 2 - 1, D = Ge(f[T], A), H = Ge(f[R], A), U = D, $ = P - h[v] - H, y = P / 2 - h[v] / 2 + j, M = Mn(U, y, $), Y = !l.arrow && De(o) != null && y !== M && i.reference[v] / 2 - (y < U ? D : H) - h[v] / 2 < 0, k = Y ? y < U ? y - U : y - $ : 0;
1908
+ const j = I / 2 - N / 2, A = P / 2 - h[v] / 2 - 1, D = Ge(f[T], A), H = Ge(f[R], A), U = D, $ = P - h[v] - H, y = P / 2 - h[v] / 2 + j, M = Dn(U, y, $), Y = !l.arrow && De(o) != null && y !== M && i.reference[v] / 2 - (y < U ? D : H) - h[v] / 2 < 0, k = Y ? y < U ? y - U : y - $ : 0;
1931
1909
  return {
1932
1910
  [g]: a[g] + k,
1933
1911
  data: {
@@ -1942,7 +1920,7 @@ const kc = (e) => ({
1942
1920
  }
1943
1921
  });
1944
1922
  function Nc(e, t, n) {
1945
- return (e ? [...n.filter((o) => De(o) === e), ...n.filter((o) => De(o) !== e)] : n.filter((o) => Ne(o) === o)).filter((o) => e ? De(o) === e || (t ? Vt(o) !== o : !1) : !0);
1923
+ return (e ? [...n.filter((o) => De(o) === e), ...n.filter((o) => De(o) !== e)] : n.filter((o) => Ne(o) === o)).filter((o) => e ? De(o) === e || (t ? Ut(o) !== o : !1) : !0);
1946
1924
  }
1947
1925
  const jc = function(e) {
1948
1926
  return e === void 0 && (e = {}), {
@@ -1959,13 +1937,13 @@ const jc = function(e) {
1959
1937
  } = t, {
1960
1938
  crossAxis: p = !1,
1961
1939
  alignment: f,
1962
- allowedPlacements: a = Tr,
1940
+ allowedPlacements: a = Sr,
1963
1941
  autoAlignment: g = !0,
1964
1942
  ...v
1965
- } = tt(e, t), h = f !== void 0 || a === Tr ? Nc(f || null, g, a) : a, E = await sn(t, v), T = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, R = h[T];
1943
+ } = tt(e, t), h = f !== void 0 || a === Sr ? Nc(f || null, g, a) : a, E = await cn(t, v), T = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, R = h[T];
1966
1944
  if (R == null)
1967
1945
  return {};
1968
- const _ = yo(R, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
1946
+ const _ = bo(R, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
1969
1947
  if (u !== R)
1970
1948
  return {
1971
1949
  reset: {
@@ -2036,12 +2014,12 @@ const jc = function(e) {
2036
2014
  } = tt(e, t);
2037
2015
  if ((n = i.arrow) != null && n.alignmentOffset)
2038
2016
  return {};
2039
- const T = Ne(o), R = $e(u), _ = Ne(u) === u, I = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), N = a || (_ || !h ? [Ut(u)] : Ks(u)), C = v !== "none";
2040
- !a && C && N.push(...ec(u, h, v, I));
2041
- const P = [u, ...N], j = await sn(t, E), A = [];
2017
+ const T = Ne(o), R = $e(u), _ = Ne(u) === u, I = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), N = a || (_ || !h ? [Yt(u)] : Js(u)), C = v !== "none";
2018
+ !a && C && N.push(...tc(u, h, v, I));
2019
+ const P = [u, ...N], j = await cn(t, E), A = [];
2042
2020
  let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
2043
2021
  if (p && A.push(j[T]), f) {
2044
- const y = yo(o, s, I);
2022
+ const y = bo(o, s, I);
2045
2023
  A.push(j[y[0]], j[y[1]]);
2046
2024
  }
2047
2025
  if (D = [...D, {
@@ -2171,15 +2149,15 @@ const Bc = function(e) {
2171
2149
  } = tt(e, t), c = {
2172
2150
  x: n,
2173
2151
  y: r
2174
- }, p = await sn(t, l), f = $e(Ne(o)), a = vo(f);
2152
+ }, p = await cn(t, l), f = $e(Ne(o)), a = yo(f);
2175
2153
  let g = c[a], v = c[f];
2176
2154
  if (i) {
2177
2155
  const E = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", R = g + p[E], _ = g - p[T];
2178
- g = Mn(R, g, _);
2156
+ g = Dn(R, g, _);
2179
2157
  }
2180
2158
  if (s) {
2181
2159
  const E = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", R = v + p[E], _ = v - p[T];
2182
- v = Mn(R, v, _);
2160
+ v = Dn(R, v, _);
2183
2161
  }
2184
2162
  const h = u.fn({
2185
2163
  ...t,
@@ -2214,7 +2192,7 @@ const Bc = function(e) {
2214
2192
  apply: l = () => {
2215
2193
  },
2216
2194
  ...c
2217
- } = tt(e, t), p = await sn(t, c), f = Ne(o), a = De(o), g = $e(o) === "y", {
2195
+ } = tt(e, t), p = await cn(t, c), f = Ne(o), a = De(o), g = $e(o) === "y", {
2218
2196
  width: v,
2219
2197
  height: h
2220
2198
  } = i.floating;
@@ -2240,38 +2218,38 @@ const Bc = function(e) {
2240
2218
  }
2241
2219
  };
2242
2220
  };
2243
- function Io(e) {
2221
+ function ko(e) {
2244
2222
  const t = _e(e);
2245
2223
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2246
- const o = le(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, u = Wt(n) !== i || Wt(r) !== s;
2224
+ const o = le(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, u = Vt(n) !== i || Vt(r) !== s;
2247
2225
  return u && (n = i, r = s), {
2248
2226
  width: n,
2249
2227
  height: r,
2250
2228
  $: u
2251
2229
  };
2252
2230
  }
2253
- function Jn(e) {
2231
+ function Zn(e) {
2254
2232
  return ie(e) ? e : e.contextElement;
2255
2233
  }
2256
2234
  function ct(e) {
2257
- const t = Jn(e);
2235
+ const t = Zn(e);
2258
2236
  if (!le(t))
2259
2237
  return ke(1);
2260
2238
  const n = t.getBoundingClientRect(), {
2261
2239
  width: r,
2262
2240
  height: o,
2263
2241
  $: i
2264
- } = Io(t);
2265
- let s = (i ? Wt(n.width) : n.width) / r, u = (i ? Wt(n.height) : n.height) / o;
2242
+ } = ko(t);
2243
+ let s = (i ? Vt(n.width) : n.width) / r, u = (i ? Vt(n.height) : n.height) / o;
2266
2244
  return (!s || !Number.isFinite(s)) && (s = 1), (!u || !Number.isFinite(u)) && (u = 1), {
2267
2245
  x: s,
2268
2246
  y: u
2269
2247
  };
2270
2248
  }
2271
2249
  const Uc = /* @__PURE__ */ ke(0);
2272
- function ko(e) {
2250
+ function No(e) {
2273
2251
  const t = Re(e);
2274
- return !nn() || !t.visualViewport ? Uc : {
2252
+ return !rn() || !t.visualViewport ? Uc : {
2275
2253
  x: t.visualViewport.offsetLeft,
2276
2254
  y: t.visualViewport.offsetTop
2277
2255
  };
@@ -2281,32 +2259,32 @@ function Yc(e, t, n) {
2281
2259
  }
2282
2260
  function Qe(e, t, n, r) {
2283
2261
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2284
- const o = e.getBoundingClientRect(), i = Jn(e);
2262
+ const o = e.getBoundingClientRect(), i = Zn(e);
2285
2263
  let s = ke(1);
2286
2264
  t && (r ? ie(r) && (s = ct(r)) : s = ct(e));
2287
- const u = Yc(i, n, r) ? ko(i) : ke(0);
2265
+ const u = Yc(i, n, r) ? No(i) : ke(0);
2288
2266
  let l = (o.left + u.x) / s.x, c = (o.top + u.y) / s.y, p = o.width / s.x, f = o.height / s.y;
2289
2267
  if (i) {
2290
2268
  const a = Re(i), g = r && ie(r) ? Re(r) : r;
2291
- let v = a, h = Ln(v);
2269
+ let v = a, h = Mn(v);
2292
2270
  for (; h && r && g !== v; ) {
2293
2271
  const E = ct(h), T = h.getBoundingClientRect(), R = _e(h), _ = T.left + (h.clientLeft + parseFloat(R.paddingLeft)) * E.x, I = T.top + (h.clientTop + parseFloat(R.paddingTop)) * E.y;
2294
- l *= E.x, c *= E.y, p *= E.x, f *= E.y, l += _, c += I, v = Re(h), h = Ln(v);
2272
+ l *= E.x, c *= E.y, p *= E.x, f *= E.y, l += _, c += I, v = Re(h), h = Mn(v);
2295
2273
  }
2296
2274
  }
2297
- return Yt({
2275
+ return zt({
2298
2276
  width: p,
2299
2277
  height: f,
2300
2278
  x: l,
2301
2279
  y: c
2302
2280
  });
2303
2281
  }
2304
- function cn(e, t) {
2305
- const n = rn(e).scrollLeft;
2282
+ function an(e, t) {
2283
+ const n = on(e).scrollLeft;
2306
2284
  return t ? t.left + n : Qe(je(e)).left + n;
2307
2285
  }
2308
- function No(e, t) {
2309
- const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - cn(e, n), o = n.top + t.scrollTop;
2286
+ function jo(e, t) {
2287
+ const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - an(e, n), o = n.top + t.scrollTop;
2310
2288
  return {
2311
2289
  x: r,
2312
2290
  y: o
@@ -2319,7 +2297,7 @@ function zc(e) {
2319
2297
  offsetParent: r,
2320
2298
  strategy: o
2321
2299
  } = e;
2322
- const i = o === "fixed", s = je(r), u = t ? tn(t.floating) : !1;
2300
+ const i = o === "fixed", s = je(r), u = t ? nn(t.floating) : !1;
2323
2301
  if (r === s || u && i)
2324
2302
  return n;
2325
2303
  let l = {
@@ -2327,11 +2305,11 @@ function zc(e) {
2327
2305
  scrollTop: 0
2328
2306
  }, c = ke(1);
2329
2307
  const p = ke(0), f = le(r);
2330
- if ((f || !f && !i) && ((Xe(r) !== "body" || Tt(s)) && (l = rn(r)), le(r))) {
2308
+ if ((f || !f && !i) && ((Xe(r) !== "body" || St(s)) && (l = on(r)), le(r))) {
2331
2309
  const g = Qe(r);
2332
2310
  c = ct(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
2333
2311
  }
2334
- const a = s && !f && !i ? No(s, l) : ke(0);
2312
+ const a = s && !f && !i ? jo(s, l) : ke(0);
2335
2313
  return {
2336
2314
  width: n.width * c.x,
2337
2315
  height: n.height * c.y,
@@ -2343,8 +2321,8 @@ function Gc(e) {
2343
2321
  return Array.from(e.getClientRects());
2344
2322
  }
2345
2323
  function qc(e) {
2346
- const t = je(e), n = rn(e), r = e.ownerDocument.body, o = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2347
- let s = -n.scrollLeft + cn(e);
2324
+ const t = je(e), n = on(e), r = e.ownerDocument.body, o = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2325
+ let s = -n.scrollLeft + an(e);
2348
2326
  const u = -n.scrollTop;
2349
2327
  return _e(r).direction === "rtl" && (s += Oe(t.clientWidth, r.clientWidth) - o), {
2350
2328
  width: o,
@@ -2353,20 +2331,20 @@ function qc(e) {
2353
2331
  y: u
2354
2332
  };
2355
2333
  }
2356
- const Nr = 25;
2334
+ const jr = 25;
2357
2335
  function Xc(e, t) {
2358
2336
  const n = Re(e), r = je(e), o = n.visualViewport;
2359
2337
  let i = r.clientWidth, s = r.clientHeight, u = 0, l = 0;
2360
2338
  if (o) {
2361
2339
  i = o.width, s = o.height;
2362
- const p = nn();
2340
+ const p = rn();
2363
2341
  (!p || p && t === "fixed") && (u = o.offsetLeft, l = o.offsetTop);
2364
2342
  }
2365
- const c = cn(r);
2343
+ const c = an(r);
2366
2344
  if (c <= 0) {
2367
2345
  const p = r.ownerDocument, f = p.body, a = getComputedStyle(f), g = p.compatMode === "CSS1Compat" && parseFloat(a.marginLeft) + parseFloat(a.marginRight) || 0, v = Math.abs(r.clientWidth - f.clientWidth - g);
2368
- v <= Nr && (i -= v);
2369
- } else c <= Nr && (i += c);
2346
+ v <= jr && (i -= v);
2347
+ } else c <= jr && (i += c);
2370
2348
  return {
2371
2349
  width: i,
2372
2350
  height: s,
@@ -2384,7 +2362,7 @@ function Jc(e, t) {
2384
2362
  y: c
2385
2363
  };
2386
2364
  }
2387
- function jr(e, t, n) {
2365
+ function Fr(e, t, n) {
2388
2366
  let r;
2389
2367
  if (t === "viewport")
2390
2368
  r = Xc(e, n);
@@ -2393,7 +2371,7 @@ function jr(e, t, n) {
2393
2371
  else if (ie(t))
2394
2372
  r = Jc(t, n);
2395
2373
  else {
2396
- const o = ko(e);
2374
+ const o = No(e);
2397
2375
  r = {
2398
2376
  x: t.x - o.x,
2399
2377
  y: t.y - o.y,
@@ -2401,11 +2379,11 @@ function jr(e, t, n) {
2401
2379
  height: t.height
2402
2380
  };
2403
2381
  }
2404
- return Yt(r);
2382
+ return zt(r);
2405
2383
  }
2406
- function jo(e, t) {
2384
+ function Fo(e, t) {
2407
2385
  const n = We(e);
2408
- return n === t || !ie(n) || He(n) ? !1 : _e(n).position === "fixed" || jo(n, t);
2386
+ return n === t || !ie(n) || He(n) ? !1 : _e(n).position === "fixed" || Fo(n, t);
2409
2387
  }
2410
2388
  function Zc(e, t) {
2411
2389
  const n = t.get(e);
@@ -2415,8 +2393,8 @@ function Zc(e, t) {
2415
2393
  const i = _e(e).position === "fixed";
2416
2394
  let s = i ? We(e) : e;
2417
2395
  for (; ie(s) && !He(s); ) {
2418
- const u = _e(s), l = zn(s);
2419
- !l && u.position === "fixed" && (o = null), (i ? !l && !o : !l && u.position === "static" && !!o && Kc.has(o.position) || Tt(s) && !l && jo(e, s)) ? r = r.filter((p) => p !== s) : o = u, s = We(s);
2396
+ const u = _e(s), l = Gn(s);
2397
+ !l && u.position === "fixed" && (o = null), (i ? !l && !o : !l && u.position === "static" && !!o && Kc.has(o.position) || St(s) && !l && Fo(e, s)) ? r = r.filter((p) => p !== s) : o = u, s = We(s);
2420
2398
  }
2421
2399
  return t.set(e, r), r;
2422
2400
  }
@@ -2427,10 +2405,10 @@ function Qc(e) {
2427
2405
  rootBoundary: r,
2428
2406
  strategy: o
2429
2407
  } = e;
2430
- const s = [...n === "clippingAncestors" ? tn(t) ? [] : Zc(t, this._c) : [].concat(n), r], u = s[0], l = s.reduce((c, p) => {
2431
- const f = jr(t, p, o);
2408
+ const s = [...n === "clippingAncestors" ? nn(t) ? [] : Zc(t, this._c) : [].concat(n), r], u = s[0], l = s.reduce((c, p) => {
2409
+ const f = Fr(t, p, o);
2432
2410
  return c.top = Oe(f.top, c.top), c.right = Ge(f.right, c.right), c.bottom = Ge(f.bottom, c.bottom), c.left = Oe(f.left, c.left), c;
2433
- }, jr(t, u, o));
2411
+ }, Fr(t, u, o));
2434
2412
  return {
2435
2413
  width: l.right - l.left,
2436
2414
  height: l.bottom - l.top,
@@ -2442,7 +2420,7 @@ function ea(e) {
2442
2420
  const {
2443
2421
  width: t,
2444
2422
  height: n
2445
- } = Io(e);
2423
+ } = ko(e);
2446
2424
  return {
2447
2425
  width: t,
2448
2426
  height: n
@@ -2456,15 +2434,15 @@ function ta(e, t, n) {
2456
2434
  };
2457
2435
  const l = ke(0);
2458
2436
  function c() {
2459
- l.x = cn(o);
2437
+ l.x = an(o);
2460
2438
  }
2461
2439
  if (r || !r && !i)
2462
- if ((Xe(t) !== "body" || Tt(o)) && (u = rn(t)), r) {
2440
+ if ((Xe(t) !== "body" || St(o)) && (u = on(t)), r) {
2463
2441
  const g = Qe(t, !0, i, t);
2464
2442
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
2465
2443
  } else o && c();
2466
2444
  i && !r && o && c();
2467
- const p = o && !r && !i ? No(o, u) : ke(0), f = s.left + u.scrollLeft - l.x - p.x, a = s.top + u.scrollTop - l.y - p.y;
2445
+ const p = o && !r && !i ? jo(o, u) : ke(0), f = s.left + u.scrollLeft - l.x - p.x, a = s.top + u.scrollTop - l.y - p.y;
2468
2446
  return {
2469
2447
  x: f,
2470
2448
  y: a,
@@ -2472,10 +2450,10 @@ function ta(e, t, n) {
2472
2450
  height: s.height
2473
2451
  };
2474
2452
  }
2475
- function Rn(e) {
2453
+ function En(e) {
2476
2454
  return _e(e).position === "static";
2477
2455
  }
2478
- function Fr(e, t) {
2456
+ function $r(e, t) {
2479
2457
  if (!le(e) || _e(e).position === "fixed")
2480
2458
  return null;
2481
2459
  if (t)
@@ -2483,26 +2461,26 @@ function Fr(e, t) {
2483
2461
  let n = e.offsetParent;
2484
2462
  return je(e) === n && (n = n.ownerDocument.body), n;
2485
2463
  }
2486
- function Fo(e, t) {
2464
+ function $o(e, t) {
2487
2465
  const n = Re(e);
2488
- if (tn(e))
2466
+ if (nn(e))
2489
2467
  return n;
2490
2468
  if (!le(e)) {
2491
2469
  let o = We(e);
2492
2470
  for (; o && !He(o); ) {
2493
- if (ie(o) && !Rn(o))
2471
+ if (ie(o) && !En(o))
2494
2472
  return o;
2495
2473
  o = We(o);
2496
2474
  }
2497
2475
  return n;
2498
2476
  }
2499
- let r = Fr(e, t);
2500
- for (; r && $s(r) && Rn(r); )
2501
- r = Fr(r, t);
2502
- return r && He(r) && Rn(r) && !zn(r) ? n : r || Us(e) || n;
2477
+ let r = $r(e, t);
2478
+ for (; r && Hs(r) && En(r); )
2479
+ r = $r(r, t);
2480
+ return r && He(r) && En(r) && !Gn(r) ? n : r || Ys(e) || n;
2503
2481
  }
2504
2482
  const na = async function(e) {
2505
- const t = this.getOffsetParent || Fo, n = this.getDimensions, r = await n(e.floating);
2483
+ const t = this.getOffsetParent || $o, n = this.getDimensions, r = await n(e.floating);
2506
2484
  return {
2507
2485
  reference: ta(e.reference, await t(e.floating), e.strategy),
2508
2486
  floating: {
@@ -2520,7 +2498,7 @@ const oa = {
2520
2498
  convertOffsetParentRelativeRectToViewportRelativeRect: zc,
2521
2499
  getDocumentElement: je,
2522
2500
  getClippingRect: Qc,
2523
- getOffsetParent: Fo,
2501
+ getOffsetParent: $o,
2524
2502
  getElementRects: na,
2525
2503
  getClientRects: Gc,
2526
2504
  getDimensions: ea,
@@ -2528,7 +2506,7 @@ const oa = {
2528
2506
  isElement: ie,
2529
2507
  isRTL: ra
2530
2508
  };
2531
- function $o(e, t) {
2509
+ function Ho(e, t) {
2532
2510
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2533
2511
  }
2534
2512
  function ia(e, t) {
@@ -2548,7 +2526,7 @@ function ia(e, t) {
2548
2526
  } = c;
2549
2527
  if (u || t(), !a || !g)
2550
2528
  return;
2551
- const v = kt(f), h = kt(o.clientWidth - (p + a)), E = kt(o.clientHeight - (f + g)), T = kt(p), _ = {
2529
+ const v = Nt(f), h = Nt(o.clientWidth - (p + a)), E = Nt(o.clientHeight - (f + g)), T = Nt(p), _ = {
2552
2530
  rootMargin: -v + "px " + -h + "px " + -E + "px " + -T + "px",
2553
2531
  threshold: Oe(0, Ge(1, l)) || 1
2554
2532
  };
@@ -2562,7 +2540,7 @@ function ia(e, t) {
2562
2540
  s(!1, 1e-7);
2563
2541
  }, 1e3);
2564
2542
  }
2565
- P === 1 && !$o(c, e.getBoundingClientRect()) && s(), I = !1;
2543
+ P === 1 && !Ho(c, e.getBoundingClientRect()) && s(), I = !1;
2566
2544
  }
2567
2545
  try {
2568
2546
  n = new IntersectionObserver(N, {
@@ -2585,7 +2563,7 @@ function sa(e, t, n, r) {
2585
2563
  elementResize: s = typeof ResizeObserver == "function",
2586
2564
  layoutShift: u = typeof IntersectionObserver == "function",
2587
2565
  animationFrame: l = !1
2588
- } = r, c = Jn(e), p = o || i ? [...c ? ze(c) : [], ...ze(t)] : [];
2566
+ } = r, c = Zn(e), p = o || i ? [...c ? ze(c) : [], ...ze(t)] : [];
2589
2567
  p.forEach((T) => {
2590
2568
  o && T.addEventListener("scroll", n, {
2591
2569
  passive: !0
@@ -2604,7 +2582,7 @@ function sa(e, t, n, r) {
2604
2582
  l && E();
2605
2583
  function E() {
2606
2584
  const T = Qe(e);
2607
- h && !$o(h, T) && n(), h = T, v = requestAnimationFrame(E);
2585
+ h && !Ho(h, T) && n(), h = T, v = requestAnimationFrame(E);
2608
2586
  }
2609
2587
  return n(), () => {
2610
2588
  var T;
@@ -2613,7 +2591,7 @@ function sa(e, t, n, r) {
2613
2591
  }), f?.(), (T = g) == null || T.disconnect(), g = null, l && cancelAnimationFrame(v);
2614
2592
  };
2615
2593
  }
2616
- const ca = Bc, aa = jc, ua = Wc, la = Fc, fa = Vc, $r = kc, da = (e, t, n) => {
2594
+ const ca = Bc, aa = jc, ua = Wc, la = Fc, fa = Vc, Hr = kc, da = (e, t, n) => {
2617
2595
  const r = /* @__PURE__ */ new Map(), o = {
2618
2596
  platform: oa,
2619
2597
  ...n
@@ -2627,8 +2605,8 @@ const ca = Bc, aa = jc, ua = Wc, la = Fc, fa = Vc, $r = kc, da = (e, t, n) => {
2627
2605
  });
2628
2606
  };
2629
2607
  var ga = typeof document < "u", pa = function() {
2630
- }, $t = ga ? Hn : pa;
2631
- function Xt(e, t) {
2608
+ }, Ht = ga ? Bn : pa;
2609
+ function Kt(e, t) {
2632
2610
  if (e === t)
2633
2611
  return !0;
2634
2612
  if (typeof e != typeof t)
@@ -2640,7 +2618,7 @@ function Xt(e, t) {
2640
2618
  if (Array.isArray(e)) {
2641
2619
  if (n = e.length, n !== t.length) return !1;
2642
2620
  for (r = n; r-- !== 0; )
2643
- if (!Xt(e[r], t[r]))
2621
+ if (!Kt(e[r], t[r]))
2644
2622
  return !1;
2645
2623
  return !0;
2646
2624
  }
@@ -2651,23 +2629,23 @@ function Xt(e, t) {
2651
2629
  return !1;
2652
2630
  for (r = n; r-- !== 0; ) {
2653
2631
  const i = o[r];
2654
- if (!(i === "_owner" && e.$$typeof) && !Xt(e[i], t[i]))
2632
+ if (!(i === "_owner" && e.$$typeof) && !Kt(e[i], t[i]))
2655
2633
  return !1;
2656
2634
  }
2657
2635
  return !0;
2658
2636
  }
2659
2637
  return e !== e && t !== t;
2660
2638
  }
2661
- function Ho(e) {
2639
+ function Bo(e) {
2662
2640
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2663
2641
  }
2664
- function Hr(e, t) {
2665
- const n = Ho(e);
2642
+ function Br(e, t) {
2643
+ const n = Bo(e);
2666
2644
  return Math.round(t * n) / n;
2667
2645
  }
2668
- function En(e) {
2646
+ function Tn(e) {
2669
2647
  const t = x.useRef(e);
2670
- return $t(() => {
2648
+ return Ht(() => {
2671
2649
  t.current = e;
2672
2650
  }), t;
2673
2651
  }
@@ -2693,12 +2671,12 @@ function ma(e) {
2693
2671
  middlewareData: {},
2694
2672
  isPositioned: !1
2695
2673
  }), [a, g] = x.useState(r);
2696
- Xt(a, r) || g(r);
2674
+ Kt(a, r) || g(r);
2697
2675
  const [v, h] = x.useState(null), [E, T] = x.useState(null), R = x.useCallback((S) => {
2698
2676
  S !== C.current && (C.current = S, h(S));
2699
2677
  }, []), _ = x.useCallback((S) => {
2700
2678
  S !== P.current && (P.current = S, T(S));
2701
- }, []), I = i || v, N = s || E, C = x.useRef(null), P = x.useRef(null), j = x.useRef(p), A = l != null, D = En(l), H = En(o), U = En(c), $ = x.useCallback(() => {
2679
+ }, []), I = i || v, N = s || E, C = x.useRef(null), P = x.useRef(null), j = x.useRef(p), A = l != null, D = Tn(l), H = Tn(o), U = Tn(c), $ = x.useCallback(() => {
2702
2680
  if (!C.current || !P.current)
2703
2681
  return;
2704
2682
  const S = {
@@ -2715,21 +2693,21 @@ function ma(e) {
2715
2693
  // setting it to `true` when `open === false` (must be specified).
2716
2694
  isPositioned: U.current !== !1
2717
2695
  };
2718
- y.current && !Xt(j.current, B) && (j.current = B, Kn.flushSync(() => {
2696
+ y.current && !Kt(j.current, B) && (j.current = B, Jn.flushSync(() => {
2719
2697
  f(B);
2720
2698
  }));
2721
2699
  });
2722
2700
  }, [a, t, n, H, U]);
2723
- $t(() => {
2701
+ Ht(() => {
2724
2702
  c === !1 && j.current.isPositioned && (j.current.isPositioned = !1, f((S) => ({
2725
2703
  ...S,
2726
2704
  isPositioned: !1
2727
2705
  })));
2728
2706
  }, [c]);
2729
2707
  const y = x.useRef(!1);
2730
- $t(() => (y.current = !0, () => {
2708
+ Ht(() => (y.current = !0, () => {
2731
2709
  y.current = !1;
2732
- }), []), $t(() => {
2710
+ }), []), Ht(() => {
2733
2711
  if (I && (C.current = I), N && (P.current = N), I && N) {
2734
2712
  if (D.current)
2735
2713
  return D.current(I, N, $);
@@ -2752,11 +2730,11 @@ function ma(e) {
2752
2730
  };
2753
2731
  if (!Y.floating)
2754
2732
  return S;
2755
- const F = Hr(Y.floating, p.x), B = Hr(Y.floating, p.y);
2733
+ const F = Br(Y.floating, p.x), B = Br(Y.floating, p.y);
2756
2734
  return u ? {
2757
2735
  ...S,
2758
2736
  transform: "translate(" + F + "px, " + B + "px)",
2759
- ...Ho(Y.floating) >= 1.5 && {
2737
+ ...Bo(Y.floating) >= 1.5 && {
2760
2738
  willChange: "transform"
2761
2739
  }
2762
2740
  } : {
@@ -2785,10 +2763,10 @@ const ha = (e) => {
2785
2763
  element: r,
2786
2764
  padding: o
2787
2765
  } = typeof e == "function" ? e(n) : e;
2788
- return r && t(r) ? r.current != null ? $r({
2766
+ return r && t(r) ? r.current != null ? Hr({
2789
2767
  element: r.current,
2790
2768
  padding: o
2791
- }).fn(n) : {} : r ? $r({
2769
+ }).fn(n) : {} : r ? Hr({
2792
2770
  element: r,
2793
2771
  padding: o
2794
2772
  }).fn(n) : {};
@@ -2812,42 +2790,42 @@ const ha = (e) => {
2812
2790
  }), Ra = (e, t) => ({
2813
2791
  ...ha(e),
2814
2792
  options: [e, t]
2815
- }), Ea = "data-floating-ui-focusable", Br = "active", Wr = "selected", Ta = {
2793
+ }), Ea = "data-floating-ui-focusable", Wr = "active", Vr = "selected", Ta = {
2816
2794
  ...x
2817
2795
  };
2818
- let Vr = !1, Sa = 0;
2819
- const Ur = () => (
2796
+ let Ur = !1, Sa = 0;
2797
+ const Yr = () => (
2820
2798
  // Ensure the id is unique with multiple independent versions of Floating UI
2821
2799
  // on <React 18
2822
2800
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + Sa++
2823
2801
  );
2824
2802
  function Oa() {
2825
- const [e, t] = x.useState(() => Vr ? Ur() : void 0);
2803
+ const [e, t] = x.useState(() => Ur ? Yr() : void 0);
2826
2804
  return de(() => {
2827
- e == null && t(Ur());
2805
+ e == null && t(Yr());
2828
2806
  }, []), x.useEffect(() => {
2829
- Vr = !0;
2807
+ Ur = !0;
2830
2808
  }, []), e;
2831
2809
  }
2832
- const _a = Ta.useId, Ot = _a || Oa;
2833
- let xt;
2834
- process.env.NODE_ENV !== "production" && (xt = /* @__PURE__ */ new Set());
2810
+ const _a = Ta.useId, _t = _a || Oa;
2811
+ let Rt;
2812
+ process.env.NODE_ENV !== "production" && (Rt = /* @__PURE__ */ new Set());
2835
2813
  function Ca() {
2836
2814
  for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
2837
2815
  n[r] = arguments[r];
2838
2816
  const o = "Floating UI: " + n.join(" ");
2839
- if (!((e = xt) != null && e.has(o))) {
2817
+ if (!((e = Rt) != null && e.has(o))) {
2840
2818
  var i;
2841
- (i = xt) == null || i.add(o), console.warn(o);
2819
+ (i = Rt) == null || i.add(o), console.warn(o);
2842
2820
  }
2843
2821
  }
2844
2822
  function Aa() {
2845
2823
  for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
2846
2824
  n[r] = arguments[r];
2847
2825
  const o = "Floating UI: " + n.join(" ");
2848
- if (!((e = xt) != null && e.has(o))) {
2826
+ if (!((e = Rt) != null && e.has(o))) {
2849
2827
  var i;
2850
- (i = xt) == null || i.add(o), console.error(o);
2828
+ (i = Rt) == null || i.add(o), console.error(o);
2851
2829
  }
2852
2830
  }
2853
2831
  const Pa = /* @__PURE__ */ x.forwardRef(function(t, n) {
@@ -2876,7 +2854,7 @@ const Pa = /* @__PURE__ */ x.forwardRef(function(t, n) {
2876
2854
  ...E
2877
2855
  } = t;
2878
2856
  process.env.NODE_ENV !== "production" && (n || Ca("The `ref` prop is required for `FloatingArrow`."));
2879
- const T = Ot(), [R, _] = x.useState(!1);
2857
+ const T = _t(), [R, _] = x.useState(!1);
2880
2858
  if (de(() => {
2881
2859
  if (!o) return;
2882
2860
  _e(o).direction === "rtl" && _(!0);
@@ -2930,7 +2908,7 @@ const Pa = /* @__PURE__ */ x.forwardRef(function(t, n) {
2930
2908
  })]
2931
2909
  });
2932
2910
  });
2933
- function Bo() {
2911
+ function Wo() {
2934
2912
  const e = /* @__PURE__ */ new Map();
2935
2913
  return {
2936
2914
  emit(t, n) {
@@ -2946,12 +2924,12 @@ function Bo() {
2946
2924
  }
2947
2925
  };
2948
2926
  }
2949
- const Wo = /* @__PURE__ */ x.createContext(null), Vo = /* @__PURE__ */ x.createContext(null), dt = () => {
2927
+ const Vo = /* @__PURE__ */ x.createContext(null), Uo = /* @__PURE__ */ x.createContext(null), dt = () => {
2950
2928
  var e;
2951
- return ((e = x.useContext(Wo)) == null ? void 0 : e.id) || null;
2952
- }, _t = () => x.useContext(Vo);
2929
+ return ((e = x.useContext(Vo)) == null ? void 0 : e.id) || null;
2930
+ }, Ct = () => x.useContext(Uo);
2953
2931
  function La(e) {
2954
- const t = Ot(), n = _t(), o = dt();
2932
+ const t = _t(), n = Ct(), o = dt();
2955
2933
  return de(() => {
2956
2934
  if (!t) return;
2957
2935
  const i = {
@@ -2968,7 +2946,7 @@ function Ma(e) {
2968
2946
  children: t,
2969
2947
  id: n
2970
2948
  } = e, r = dt();
2971
- return /* @__PURE__ */ z.jsx(Wo.Provider, {
2949
+ return /* @__PURE__ */ z.jsx(Vo.Provider, {
2972
2950
  value: x.useMemo(() => ({
2973
2951
  id: n,
2974
2952
  parentId: r
@@ -2983,8 +2961,8 @@ function Da(e) {
2983
2961
  n.current = [...n.current, s];
2984
2962
  }, []), o = x.useCallback((s) => {
2985
2963
  n.current = n.current.filter((u) => u !== s);
2986
- }, []), [i] = x.useState(() => Bo());
2987
- return /* @__PURE__ */ z.jsx(Vo.Provider, {
2964
+ }, []), [i] = x.useState(() => Wo());
2965
+ return /* @__PURE__ */ z.jsx(Uo.Provider, {
2988
2966
  value: x.useMemo(() => ({
2989
2967
  nodesRef: n,
2990
2968
  addNode: r,
@@ -3000,8 +2978,8 @@ function et(e) {
3000
2978
  function xe(e) {
3001
2979
  e.current !== -1 && (clearTimeout(e.current), e.current = -1);
3002
2980
  }
3003
- const Yr = /* @__PURE__ */ et("safe-polygon");
3004
- function Tn(e, t, n) {
2981
+ const zr = /* @__PURE__ */ et("safe-polygon");
2982
+ function Sn(e, t, n) {
3005
2983
  if (n && !lt(n))
3006
2984
  return 0;
3007
2985
  if (typeof e == "number")
@@ -3012,7 +2990,7 @@ function Tn(e, t, n) {
3012
2990
  }
3013
2991
  return e?.[t];
3014
2992
  }
3015
- function Sn(e) {
2993
+ function On(e) {
3016
2994
  return typeof e == "function" ? e() : e;
3017
2995
  }
3018
2996
  function Ia(e, t) {
@@ -3030,7 +3008,7 @@ function Ia(e, t) {
3030
3008
  mouseOnly: p = !1,
3031
3009
  restMs: f = 0,
3032
3010
  move: a = !0
3033
- } = t, g = _t(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f), _ = x.useRef(), I = x.useRef(-1), N = x.useRef(), C = x.useRef(-1), P = x.useRef(!0), j = x.useRef(!1), A = x.useRef(() => {
3011
+ } = t, g = Ct(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f), _ = x.useRef(), I = x.useRef(-1), N = x.useRef(), C = x.useRef(-1), P = x.useRef(!0), j = x.useRef(!1), A = x.useRef(() => {
3034
3012
  }), D = x.useRef(!1), H = we(() => {
3035
3013
  var k;
3036
3014
  const S = (k = o.current.openEvent) == null ? void 0 : k.type;
@@ -3059,22 +3037,22 @@ function Ia(e, t) {
3059
3037
  }, [s.floating, n, r, u, h, H]);
3060
3038
  const U = x.useCallback(function(k, S, F) {
3061
3039
  S === void 0 && (S = !0), F === void 0 && (F = "hover");
3062
- const B = Tn(E.current, "close", _.current);
3040
+ const B = Sn(E.current, "close", _.current);
3063
3041
  B && !N.current ? (xe(I), I.current = window.setTimeout(() => r(!1, k, F), B)) : S && (xe(I), r(!1, k, F));
3064
3042
  }, [E, r]), $ = we(() => {
3065
3043
  A.current(), N.current = void 0;
3066
3044
  }), y = we(() => {
3067
3045
  if (j.current) {
3068
3046
  const k = be(s.floating).body;
3069
- k.style.pointerEvents = "", k.removeAttribute(Yr), j.current = !1;
3047
+ k.style.pointerEvents = "", k.removeAttribute(zr), j.current = !1;
3070
3048
  }
3071
3049
  }), M = we(() => o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1);
3072
3050
  x.useEffect(() => {
3073
3051
  if (!u) return;
3074
3052
  function k(L) {
3075
- if (xe(I), P.current = !1, p && !lt(_.current) || Sn(R.current) > 0 && !Tn(E.current, "open"))
3053
+ if (xe(I), P.current = !1, p && !lt(_.current) || On(R.current) > 0 && !Sn(E.current, "open"))
3076
3054
  return;
3077
- const O = Tn(E.current, "open", _.current);
3055
+ const O = Sn(E.current, "open", _.current);
3078
3056
  O ? I.current = window.setTimeout(() => {
3079
3057
  T.current || r(!0, L, "hover");
3080
3058
  }, O) : n || r(!0, L, "hover");
@@ -3137,7 +3115,7 @@ function Ia(e, t) {
3137
3115
  if (ie(s.domReference) && F) {
3138
3116
  var S;
3139
3117
  const B = be(s.floating).body;
3140
- B.setAttribute(Yr, "");
3118
+ B.setAttribute(zr, "");
3141
3119
  const b = s.domReference, L = g == null || (S = g.nodesRef.current.find((O) => O.id === v)) == null || (S = S.context) == null ? void 0 : S.elements.floating;
3142
3120
  return L && (L.style.pointerEvents = ""), B.style.pointerEvents = "none", b.style.pointerEvents = "auto", F.style.pointerEvents = "auto", () => {
3143
3121
  B.style.pointerEvents = "", b.style.pointerEvents = "", F.style.pointerEvents = "";
@@ -3163,7 +3141,7 @@ function Ia(e, t) {
3163
3141
  function B() {
3164
3142
  !P.current && !T.current && r(!0, F, "hover");
3165
3143
  }
3166
- p && !lt(_.current) || n || Sn(R.current) === 0 || D.current && S.movementX ** 2 + S.movementY ** 2 < 2 || (xe(C), _.current === "touch" ? B() : (D.current = !0, C.current = window.setTimeout(B, Sn(R.current))));
3144
+ p && !lt(_.current) || n || On(R.current) === 0 || D.current && S.movementX ** 2 + S.movementY ** 2 < 2 || (xe(C), _.current === "touch" ? B() : (D.current = !0, C.current = window.setTimeout(B, On(R.current))));
3167
3145
  }
3168
3146
  };
3169
3147
  }, [p, r, n, T, R]);
@@ -3171,7 +3149,7 @@ function Ia(e, t) {
3171
3149
  reference: Y
3172
3150
  } : {}, [u, Y]);
3173
3151
  }
3174
- let zr = 0;
3152
+ let Gr = 0;
3175
3153
  function ot(e, t) {
3176
3154
  t === void 0 && (t = {});
3177
3155
  const {
@@ -3179,19 +3157,19 @@ function ot(e, t) {
3179
3157
  cancelPrevious: r = !0,
3180
3158
  sync: o = !1
3181
3159
  } = t;
3182
- r && cancelAnimationFrame(zr);
3160
+ r && cancelAnimationFrame(Gr);
3183
3161
  const i = () => e?.focus({
3184
3162
  preventScroll: n
3185
3163
  });
3186
- o ? i() : zr = requestAnimationFrame(i);
3164
+ o ? i() : Gr = requestAnimationFrame(i);
3187
3165
  }
3188
- function On(e, t) {
3166
+ function _n(e, t) {
3189
3167
  if (!e || !t)
3190
3168
  return !1;
3191
3169
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
3192
3170
  if (e.contains(t))
3193
3171
  return !0;
3194
- if (n && Bt(n)) {
3172
+ if (n && Wt(n)) {
3195
3173
  let r = t;
3196
3174
  for (; r; ) {
3197
3175
  if (e === r)
@@ -3212,20 +3190,20 @@ const at = {
3212
3190
  "aria-hidden": /* @__PURE__ */ new WeakMap(),
3213
3191
  none: /* @__PURE__ */ new WeakMap()
3214
3192
  };
3215
- function Gr(e) {
3193
+ function qr(e) {
3216
3194
  return e === "inert" ? at.inert : e === "aria-hidden" ? at["aria-hidden"] : at.none;
3217
3195
  }
3218
- let jt = /* @__PURE__ */ new WeakSet(), Ft = {}, _n = 0;
3219
- const ja = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, Uo = (e) => e && (e.host || Uo(e.parentNode)), Fa = (e, t) => t.map((n) => {
3196
+ let Ft = /* @__PURE__ */ new WeakSet(), $t = {}, Cn = 0;
3197
+ const ja = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, Yo = (e) => e && (e.host || Yo(e.parentNode)), Fa = (e, t) => t.map((n) => {
3220
3198
  if (e.contains(n))
3221
3199
  return n;
3222
- const r = Uo(n);
3200
+ const r = Yo(n);
3223
3201
  return e.contains(r) ? r : null;
3224
3202
  }).filter((n) => n != null);
3225
3203
  function $a(e, t, n, r) {
3226
3204
  const o = "data-floating-ui-inert", i = r ? "inert" : n ? "aria-hidden" : null, s = Fa(t, e), u = /* @__PURE__ */ new Set(), l = new Set(s), c = [];
3227
- Ft[o] || (Ft[o] = /* @__PURE__ */ new WeakMap());
3228
- const p = Ft[o];
3205
+ $t[o] || ($t[o] = /* @__PURE__ */ new WeakMap());
3206
+ const p = $t[o];
3229
3207
  s.forEach(f), a(t), u.clear();
3230
3208
  function f(g) {
3231
3209
  !g || u.has(g) || (u.add(g), g.parentNode && f(g.parentNode));
@@ -3236,24 +3214,24 @@ function $a(e, t, n, r) {
3236
3214
  if (u.has(v))
3237
3215
  a(v);
3238
3216
  else {
3239
- const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = Gr(i), R = (T.get(v) || 0) + 1, _ = (p.get(v) || 0) + 1;
3240
- T.set(v, R), p.set(v, _), c.push(v), R === 1 && E && jt.add(v), _ === 1 && v.setAttribute(o, ""), !E && i && v.setAttribute(i, i === "inert" ? "" : "true");
3217
+ const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = qr(i), R = (T.get(v) || 0) + 1, _ = (p.get(v) || 0) + 1;
3218
+ T.set(v, R), p.set(v, _), c.push(v), R === 1 && E && Ft.add(v), _ === 1 && v.setAttribute(o, ""), !E && i && v.setAttribute(i, i === "inert" ? "" : "true");
3241
3219
  }
3242
3220
  });
3243
3221
  }
3244
- return _n++, () => {
3222
+ return Cn++, () => {
3245
3223
  c.forEach((g) => {
3246
- const v = Gr(i), E = (v.get(g) || 0) - 1, T = (p.get(g) || 0) - 1;
3247
- v.set(g, E), p.set(g, T), E || (!jt.has(g) && i && g.removeAttribute(i), jt.delete(g)), T || g.removeAttribute(o);
3248
- }), _n--, _n || (at.inert = /* @__PURE__ */ new WeakMap(), at["aria-hidden"] = /* @__PURE__ */ new WeakMap(), at.none = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakSet(), Ft = {});
3224
+ const v = qr(i), E = (v.get(g) || 0) - 1, T = (p.get(g) || 0) - 1;
3225
+ v.set(g, E), p.set(g, T), E || (!Ft.has(g) && i && g.removeAttribute(i), Ft.delete(g)), T || g.removeAttribute(o);
3226
+ }), Cn--, Cn || (at.inert = /* @__PURE__ */ new WeakMap(), at["aria-hidden"] = /* @__PURE__ */ new WeakMap(), at.none = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakSet(), $t = {});
3249
3227
  };
3250
3228
  }
3251
- function qr(e, t, n) {
3229
+ function Xr(e, t, n) {
3252
3230
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3253
3231
  const r = Na(e[0]).body;
3254
3232
  return $a(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))), r, t, n);
3255
3233
  }
3256
- const an = {
3234
+ const un = {
3257
3235
  border: 0,
3258
3236
  clip: "rect(0 0 0 0)",
3259
3237
  height: "1px",
@@ -3265,10 +3243,10 @@ const an = {
3265
3243
  width: "1px",
3266
3244
  top: 0,
3267
3245
  left: 0
3268
- }, Kt = /* @__PURE__ */ x.forwardRef(function(t, n) {
3246
+ }, Jt = /* @__PURE__ */ x.forwardRef(function(t, n) {
3269
3247
  const [r, o] = x.useState();
3270
3248
  de(() => {
3271
- Ao() && o("button");
3249
+ Po() && o("button");
3272
3250
  }, []);
3273
3251
  const i = {
3274
3252
  ref: n,
@@ -3277,19 +3255,19 @@ const an = {
3277
3255
  role: r,
3278
3256
  "aria-hidden": r ? void 0 : !0,
3279
3257
  [et("focus-guard")]: "",
3280
- style: an
3258
+ style: un
3281
3259
  };
3282
3260
  return /* @__PURE__ */ z.jsx("span", {
3283
3261
  ...t,
3284
3262
  ...i
3285
3263
  });
3286
- }), Yo = /* @__PURE__ */ x.createContext(null), Xr = /* @__PURE__ */ et("portal");
3264
+ }), zo = /* @__PURE__ */ x.createContext(null), Kr = /* @__PURE__ */ et("portal");
3287
3265
  function Ha(e) {
3288
3266
  e === void 0 && (e = {});
3289
3267
  const {
3290
3268
  id: t,
3291
3269
  root: n
3292
- } = e, r = Ot(), o = zo(), [i, s] = x.useState(null), u = x.useRef(null);
3270
+ } = e, r = _t(), o = Go(), [i, s] = x.useState(null), u = x.useRef(null);
3293
3271
  return de(() => () => {
3294
3272
  i?.remove(), queueMicrotask(() => {
3295
3273
  u.current = null;
@@ -3299,15 +3277,15 @@ function Ha(e) {
3299
3277
  const l = t ? document.getElementById(t) : null;
3300
3278
  if (!l) return;
3301
3279
  const c = document.createElement("div");
3302
- c.id = r, c.setAttribute(Xr, ""), l.appendChild(c), u.current = c, s(c);
3280
+ c.id = r, c.setAttribute(Kr, ""), l.appendChild(c), u.current = c, s(c);
3303
3281
  }, [t, r]), de(() => {
3304
3282
  if (n === null || !r || u.current) return;
3305
3283
  let l = n || o?.portalNode;
3306
- l && !Yn(l) && (l = l.current), l = l || document.body;
3284
+ l && !zn(l) && (l = l.current), l = l || document.body;
3307
3285
  let c = null;
3308
3286
  t && (c = document.createElement("div"), c.id = t, l.appendChild(c));
3309
3287
  const p = document.createElement("div");
3310
- p.id = r, p.setAttribute(Xr, ""), l = c || l, l.appendChild(p), u.current = p, s(p);
3288
+ p.id = r, p.setAttribute(Kr, ""), l = c || l, l.appendChild(p), u.current = p, s(p);
3311
3289
  }, [t, n, r, o]), i;
3312
3290
  }
3313
3291
  function Ba(e) {
@@ -3330,14 +3308,14 @@ function Ba(e) {
3330
3308
  if (!i || !o || a)
3331
3309
  return;
3332
3310
  function h(E) {
3333
- i && wt(E) && (E.type === "focusin" ? Lr : Pc)(i);
3311
+ i && wt(E) && (E.type === "focusin" ? Mr : Pc)(i);
3334
3312
  }
3335
3313
  return i.addEventListener("focusin", h, !0), i.addEventListener("focusout", h, !0), () => {
3336
3314
  i.removeEventListener("focusin", h, !0), i.removeEventListener("focusout", h, !0);
3337
3315
  };
3338
3316
  }, [i, o, a]), x.useEffect(() => {
3339
- i && (g || Lr(i));
3340
- }, [g, i]), /* @__PURE__ */ z.jsxs(Yo.Provider, {
3317
+ i && (g || Mr(i));
3318
+ }, [g, i]), /* @__PURE__ */ z.jsxs(zo.Provider, {
3341
3319
  value: x.useMemo(() => ({
3342
3320
  preserveTabOrder: o,
3343
3321
  beforeOutsideRef: l,
@@ -3347,7 +3325,7 @@ function Ba(e) {
3347
3325
  portalNode: i,
3348
3326
  setFocusManagerState: u
3349
3327
  }), [o, i]),
3350
- children: [v && i && /* @__PURE__ */ z.jsx(Kt, {
3328
+ children: [v && i && /* @__PURE__ */ z.jsx(Jt, {
3351
3329
  "data-type": "outside",
3352
3330
  ref: l,
3353
3331
  onFocus: (h) => {
@@ -3355,14 +3333,14 @@ function Ba(e) {
3355
3333
  var E;
3356
3334
  (E = p.current) == null || E.focus();
3357
3335
  } else {
3358
- const T = s ? s.domReference : null, R = Do(T);
3336
+ const T = s ? s.domReference : null, R = Io(T);
3359
3337
  R?.focus();
3360
3338
  }
3361
3339
  }
3362
3340
  }), v && i && /* @__PURE__ */ z.jsx("span", {
3363
3341
  "aria-owns": i.id,
3364
- style: an
3365
- }), i && /* @__PURE__ */ Kn.createPortal(t, i), v && i && /* @__PURE__ */ z.jsx(Kt, {
3342
+ style: un
3343
+ }), i && /* @__PURE__ */ Jn.createPortal(t, i), v && i && /* @__PURE__ */ z.jsx(Jt, {
3366
3344
  "data-type": "outside",
3367
3345
  ref: c,
3368
3346
  onFocus: (h) => {
@@ -3370,15 +3348,15 @@ function Ba(e) {
3370
3348
  var E;
3371
3349
  (E = f.current) == null || E.focus();
3372
3350
  } else {
3373
- const T = s ? s.domReference : null, R = Mo(T);
3351
+ const T = s ? s.domReference : null, R = Do(T);
3374
3352
  R?.focus(), s?.closeOnFocusOut && s?.onOpenChange(!1, h.nativeEvent, "focus-out");
3375
3353
  }
3376
3354
  }
3377
3355
  })]
3378
3356
  });
3379
3357
  }
3380
- const zo = () => x.useContext(Yo);
3381
- function Kr(e) {
3358
+ const Go = () => x.useContext(zo);
3359
+ function Jr(e) {
3382
3360
  return x.useMemo(() => (t) => {
3383
3361
  e.forEach((n) => {
3384
3362
  n && (n.current = t);
@@ -3387,26 +3365,26 @@ function Kr(e) {
3387
3365
  }
3388
3366
  const Wa = 20;
3389
3367
  let Ye = [];
3390
- function Zn() {
3368
+ function Qn() {
3391
3369
  Ye = Ye.filter((e) => e.isConnected);
3392
3370
  }
3393
3371
  function Va(e) {
3394
- Zn(), e && Xe(e) !== "body" && (Ye.push(e), Ye.length > Wa && (Ye = Ye.slice(-20)));
3372
+ Qn(), e && Xe(e) !== "body" && (Ye.push(e), Ye.length > Wa && (Ye = Ye.slice(-20)));
3395
3373
  }
3396
- function Jr() {
3397
- return Zn(), Ye[Ye.length - 1];
3374
+ function Zr() {
3375
+ return Qn(), Ye[Ye.length - 1];
3398
3376
  }
3399
3377
  function Ua(e) {
3400
- const t = St();
3401
- return Oo(e, t) ? e : on(e, t)[0] || e;
3378
+ const t = Ot();
3379
+ return _o(e, t) ? e : sn(e, t)[0] || e;
3402
3380
  }
3403
- function Zr(e, t) {
3381
+ function Qr(e, t) {
3404
3382
  var n;
3405
3383
  if (!t.current.includes("floating") && !((n = e.getAttribute("role")) != null && n.includes("dialog")))
3406
3384
  return;
3407
- const r = St(), i = vc(e, r).filter((u) => {
3385
+ const r = Ot(), i = vc(e, r).filter((u) => {
3408
3386
  const l = u.getAttribute("data-tabindex") || "";
3409
- return Oo(u, r) || u.hasAttribute("data-tabindex") && !l.startsWith("-");
3387
+ return _o(u, r) || u.hasAttribute("data-tabindex") && !l.startsWith("-");
3410
3388
  }), s = e.getAttribute("tabindex");
3411
3389
  t.current.includes("floating") || i.length === 0 ? s !== "0" && e.setAttribute("tabindex", "0") : (s !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
3412
3390
  }
@@ -3416,7 +3394,7 @@ const Ya = /* @__PURE__ */ x.forwardRef(function(t, n) {
3416
3394
  type: "button",
3417
3395
  ref: n,
3418
3396
  tabIndex: -1,
3419
- style: an
3397
+ style: un
3420
3398
  });
3421
3399
  });
3422
3400
  function za(e) {
@@ -3446,8 +3424,8 @@ function za(e) {
3446
3424
  } = t, I = we(() => {
3447
3425
  var q;
3448
3426
  return (q = T.current.floatingContext) == null ? void 0 : q.nodeId;
3449
- }), N = we(g), C = typeof s == "number" && s < 0, P = Ar(R) && C, j = ja(), A = j ? i : !0, D = !A || j && a, H = Me(o), U = Me(s), $ = Me(u), y = _t(), M = zo(), Y = x.useRef(null), k = x.useRef(null), S = x.useRef(!1), F = x.useRef(!1), B = x.useRef(-1), b = x.useRef(-1), L = M != null, O = Nn(_), X = we(function(q) {
3450
- return q === void 0 && (q = O), q ? on(q, St()) : [];
3427
+ }), N = we(g), C = typeof s == "number" && s < 0, P = Pr(R) && C, j = ja(), A = j ? i : !0, D = !A || j && a, H = Me(o), U = Me(s), $ = Me(u), y = Ct(), M = Go(), Y = x.useRef(null), k = x.useRef(null), S = x.useRef(!1), F = x.useRef(!1), B = x.useRef(-1), b = x.useRef(-1), L = M != null, O = jn(_), X = we(function(q) {
3428
+ return q === void 0 && (q = O), q ? sn(q, Ot()) : [];
3451
3429
  }), K = we((q) => {
3452
3430
  const te = X(q);
3453
3431
  return H.current.map((Q) => R && Q === "reference" ? R : O && Q === "floating" ? O : te).filter(Boolean).flat();
@@ -3456,9 +3434,9 @@ function za(e) {
3456
3434
  if (r || !c) return;
3457
3435
  function q(Q) {
3458
3436
  if (Q.key === "Tab") {
3459
- he(O, Ve(be(O))) && X().length === 0 && !P && xn(Q);
3437
+ he(O, Ve(be(O))) && X().length === 0 && !P && Rn(Q);
3460
3438
  const ue = K(), fe = Ie(Q);
3461
- H.current[0] === "reference" && fe === R && (xn(Q), Q.shiftKey ? ot(ue[ue.length - 1]) : ot(ue[1])), H.current[1] === "floating" && fe === O && Q.shiftKey && (xn(Q), ot(ue[0]));
3439
+ H.current[0] === "reference" && fe === R && (Rn(Q), Q.shiftKey ? ot(ue[ue.length - 1]) : ot(ue[1])), H.current[1] === "floating" && fe === O && Q.shiftKey && (Rn(Q), ot(ue[0]));
3462
3440
  }
3463
3441
  }
3464
3442
  const te = be(O);
@@ -3487,11 +3465,11 @@ function za(e) {
3487
3465
  const pe = I(), Ae = !(he(R, re) || he(_, re) || he(re, _) || he(M?.portalNode, re) || re != null && re.hasAttribute(et("focus-guard")) || y && (st(y.nodesRef.current, pe).find((Te) => {
3488
3466
  var me, Pe;
3489
3467
  return he((me = Te.context) == null ? void 0 : me.elements.floating, re) || he((Pe = Te.context) == null ? void 0 : Pe.elements.domReference, re);
3490
- }) || Pr(y.nodesRef.current, pe).find((Te) => {
3468
+ }) || Lr(y.nodesRef.current, pe).find((Te) => {
3491
3469
  var me, Pe, gt;
3492
- return [(me = Te.context) == null ? void 0 : me.elements.floating, Nn((Pe = Te.context) == null ? void 0 : Pe.elements.floating)].includes(re) || ((gt = Te.context) == null ? void 0 : gt.elements.domReference) === re;
3470
+ return [(me = Te.context) == null ? void 0 : me.elements.floating, jn((Pe = Te.context) == null ? void 0 : Pe.elements.floating)].includes(re) || ((gt = Te.context) == null ? void 0 : gt.elements.domReference) === re;
3493
3471
  })));
3494
- if (Ce === R && O && Zr(O, H), l && Ce !== R && !(Ee != null && Ee.isConnected) && Ve(be(O)) === be(O).body) {
3472
+ if (Ce === R && O && Qr(O, H), l && Ce !== R && !(Ee != null && Ee.isConnected) && Ve(be(O)) === be(O).body) {
3495
3473
  le(O) && O.focus();
3496
3474
  const Te = B.current, me = X(), Pe = me[Te] || me[me.length - 1] || O;
3497
3475
  le(Pe) && Pe.focus();
@@ -3501,7 +3479,7 @@ function za(e) {
3501
3479
  return;
3502
3480
  }
3503
3481
  (P || !c) && re && Ae && !F.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3504
- re !== Jr() && (S.current = !0, h(!1, fe, "focus-out"));
3482
+ re !== Zr() && (S.current = !0, h(!1, fe, "focus-out"));
3505
3483
  });
3506
3484
  }
3507
3485
  const Q = !!(!y && M);
@@ -3515,14 +3493,14 @@ function za(e) {
3515
3493
  R.removeEventListener("focusout", te), R.removeEventListener("pointerdown", q), _.removeEventListener("focusout", te), Q && _.removeEventListener("focusout", ue, !0);
3516
3494
  };
3517
3495
  }, [r, R, _, O, c, y, M, h, f, l, X, P, I, H, T]);
3518
- const Z = x.useRef(null), G = x.useRef(null), W = Kr([Z, M?.beforeInsideRef]), J = Kr([G, M?.afterInsideRef]);
3496
+ const Z = x.useRef(null), G = x.useRef(null), W = Jr([Z, M?.beforeInsideRef]), J = Jr([G, M?.afterInsideRef]);
3519
3497
  x.useEffect(() => {
3520
3498
  var q, te;
3521
3499
  if (r || !_) return;
3522
- const Q = Array.from((M == null || (q = M.portalNode) == null ? void 0 : q.querySelectorAll("[" + et("portal") + "]")) || []), fe = (te = (y ? Pr(y.nodesRef.current, I()) : []).find((Ee) => {
3500
+ const Q = Array.from((M == null || (q = M.portalNode) == null ? void 0 : q.querySelectorAll("[" + et("portal") + "]")) || []), fe = (te = (y ? Lr(y.nodesRef.current, I()) : []).find((Ee) => {
3523
3501
  var pe;
3524
- return Ar(((pe = Ee.context) == null ? void 0 : pe.elements.domReference) || null);
3525
- })) == null || (te = te.context) == null ? void 0 : te.elements.domReference, re = [_, fe, ...Q, ...N(), Y.current, k.current, Z.current, G.current, M?.beforeOutsideRef.current, M?.afterOutsideRef.current, H.current.includes("reference") || P ? R : null].filter((Ee) => Ee != null), Ce = c || P ? qr(re, !D, D) : qr(re);
3502
+ return Pr(((pe = Ee.context) == null ? void 0 : pe.elements.domReference) || null);
3503
+ })) == null || (te = te.context) == null ? void 0 : te.elements.domReference, re = [_, fe, ...Q, ...N(), Y.current, k.current, Z.current, G.current, M?.beforeOutsideRef.current, M?.afterOutsideRef.current, H.current.includes("reference") || P ? R : null].filter((Ee) => Ee != null), Ce = c || P ? Xr(re, !D, D) : Xr(re);
3526
3504
  return () => {
3527
3505
  Ce();
3528
3506
  };
@@ -3561,10 +3539,10 @@ function za(e) {
3561
3539
  }
3562
3540
  E.on("openchange", Q);
3563
3541
  const ue = q.createElement("span");
3564
- ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, an), L && R && R.insertAdjacentElement("afterend", ue);
3542
+ ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, un), L && R && R.insertAdjacentElement("afterend", ue);
3565
3543
  function fe() {
3566
3544
  if (typeof $.current == "boolean") {
3567
- const re = R || Jr();
3545
+ const re = R || Zr();
3568
3546
  return re && re.isConnected ? re : ue;
3569
3547
  }
3570
3548
  return $.current.current || ue;
@@ -3589,7 +3567,7 @@ function za(e) {
3589
3567
  }, [r, _, O, $, T, E, y, L, R, I]), x.useEffect(() => (queueMicrotask(() => {
3590
3568
  S.current = !1;
3591
3569
  }), () => {
3592
- queueMicrotask(Zn);
3570
+ queueMicrotask(Qn);
3593
3571
  }), [r]), de(() => {
3594
3572
  if (!r && M)
3595
3573
  return M.setFocusManagerState({
@@ -3602,7 +3580,7 @@ function za(e) {
3602
3580
  M.setFocusManagerState(null);
3603
3581
  };
3604
3582
  }, [r, M, c, v, h, f, R]), de(() => {
3605
- r || O && Zr(O, H);
3583
+ r || O && Qr(O, H);
3606
3584
  }, [r, O, H]);
3607
3585
  function se(q) {
3608
3586
  return r || !p || !c ? null : /* @__PURE__ */ z.jsx(Ya, {
@@ -3613,7 +3591,7 @@ function za(e) {
3613
3591
  }
3614
3592
  const ge = !r && A && (c ? !P : !0) && (L || c);
3615
3593
  return /* @__PURE__ */ z.jsxs(z.Fragment, {
3616
- children: [ge && /* @__PURE__ */ z.jsx(Kt, {
3594
+ children: [ge && /* @__PURE__ */ z.jsx(Jt, {
3617
3595
  "data-type": "inside",
3618
3596
  ref: W,
3619
3597
  onFocus: (q) => {
@@ -3622,14 +3600,14 @@ function za(e) {
3622
3600
  ot(o[0] === "reference" ? Q[0] : Q[Q.length - 1]);
3623
3601
  } else if (M != null && M.preserveTabOrder && M.portalNode)
3624
3602
  if (S.current = !1, wt(q, M.portalNode)) {
3625
- const Q = Mo(R);
3603
+ const Q = Do(R);
3626
3604
  Q?.focus();
3627
3605
  } else {
3628
3606
  var te;
3629
3607
  (te = M.beforeOutsideRef.current) == null || te.focus();
3630
3608
  }
3631
3609
  }
3632
- }), !P && se("start"), n, se("end"), ge && /* @__PURE__ */ z.jsx(Kt, {
3610
+ }), !P && se("start"), n, se("end"), ge && /* @__PURE__ */ z.jsx(Jt, {
3633
3611
  "data-type": "inside",
3634
3612
  ref: J,
3635
3613
  onFocus: (q) => {
@@ -3637,7 +3615,7 @@ function za(e) {
3637
3615
  ot(K()[0]);
3638
3616
  else if (M != null && M.preserveTabOrder && M.portalNode)
3639
3617
  if (f && (S.current = !0), wt(q, M.portalNode)) {
3640
- const Q = Do(R);
3618
+ const Q = Io(R);
3641
3619
  Q?.focus();
3642
3620
  } else {
3643
3621
  var te;
@@ -3647,14 +3625,14 @@ function za(e) {
3647
3625
  })]
3648
3626
  });
3649
3627
  }
3650
- function Qr(e) {
3628
+ function eo(e) {
3651
3629
  return le(e.target) && e.target.tagName === "BUTTON";
3652
3630
  }
3653
3631
  function Ga(e) {
3654
3632
  return le(e.target) && e.target.tagName === "A";
3655
3633
  }
3656
- function eo(e) {
3657
- return Xn(e);
3634
+ function to(e) {
3635
+ return Kn(e);
3658
3636
  }
3659
3637
  function qa(e, t) {
3660
3638
  t === void 0 && (t = {});
@@ -3689,10 +3667,10 @@ function qa(e, t) {
3689
3667
  lt(E, !0) && c || (n && l && (!(o.current.openEvent && f) || o.current.openEvent.type === "click") ? r(!1, h.nativeEvent, "click") : r(!0, h.nativeEvent, "click"));
3690
3668
  },
3691
3669
  onKeyDown(h) {
3692
- a.current = void 0, !(h.defaultPrevented || !p || Qr(h)) && (h.key === " " && !eo(i) && (h.preventDefault(), g.current = !0), !Ga(h) && h.key === "Enter" && r(!(n && l), h.nativeEvent, "click"));
3670
+ a.current = void 0, !(h.defaultPrevented || !p || eo(h)) && (h.key === " " && !to(i) && (h.preventDefault(), g.current = !0), !Ga(h) && h.key === "Enter" && r(!(n && l), h.nativeEvent, "click"));
3693
3671
  },
3694
3672
  onKeyUp(h) {
3695
- h.defaultPrevented || !p || Qr(h) || eo(i) || h.key === " " && g.current && (g.current = !1, r(!(n && l), h.nativeEvent, "click"));
3673
+ h.defaultPrevented || !p || eo(h) || to(i) || h.key === " " && g.current && (g.current = !1, r(!(n && l), h.nativeEvent, "click"));
3696
3674
  }
3697
3675
  }), [o, i, u, c, p, r, n, f, l]);
3698
3676
  return x.useMemo(() => s ? {
@@ -3725,7 +3703,7 @@ function Xa(e, t) {
3725
3703
  }
3726
3704
  };
3727
3705
  }
3728
- function to(e) {
3706
+ function no(e) {
3729
3707
  return e != null && e.clientX != null;
3730
3708
  }
3731
3709
  function Ka(e, t) {
@@ -3744,7 +3722,7 @@ function Ka(e, t) {
3744
3722
  x: c = null,
3745
3723
  y: p = null
3746
3724
  } = t, f = x.useRef(!1), a = x.useRef(null), [g, v] = x.useState(), [h, E] = x.useState([]), T = we((C, P) => {
3747
- f.current || r.current.openEvent && !to(r.current.openEvent) || s.setPositionReference(Xa(i, {
3725
+ f.current || r.current.openEvent && !no(r.current.openEvent) || s.setPositionReference(Xa(i, {
3748
3726
  x: C,
3749
3727
  y: P,
3750
3728
  axis: l,
@@ -3760,7 +3738,7 @@ function Ka(e, t) {
3760
3738
  const A = Ie(j);
3761
3739
  he(o, A) ? (C.removeEventListener("mousemove", P), a.current = null) : T(j.clientX, j.clientY);
3762
3740
  }
3763
- if (!r.current.openEvent || to(r.current.openEvent)) {
3741
+ if (!r.current.openEvent || no(r.current.openEvent)) {
3764
3742
  C.addEventListener("mousemove", P);
3765
3743
  const j = () => {
3766
3744
  C.removeEventListener("mousemove", P), a.current = null;
@@ -3802,7 +3780,7 @@ const Ja = {
3802
3780
  pointerdown: "onPointerDownCapture",
3803
3781
  mousedown: "onMouseDownCapture",
3804
3782
  click: "onClickCapture"
3805
- }, no = (e) => {
3783
+ }, ro = (e) => {
3806
3784
  var t, n;
3807
3785
  return {
3808
3786
  escapeKey: typeof e == "boolean" ? e : (t = e?.escapeKey) != null ? t : !1,
@@ -3826,13 +3804,13 @@ function Qa(e, t) {
3826
3804
  ancestorScroll: a = !1,
3827
3805
  bubbles: g,
3828
3806
  capture: v
3829
- } = t, h = _t(), E = we(typeof l == "function" ? l : () => !1), T = typeof l == "function" ? E : l, R = x.useRef(!1), {
3807
+ } = t, h = Ct(), E = we(typeof l == "function" ? l : () => !1), T = typeof l == "function" ? E : l, R = x.useRef(!1), {
3830
3808
  escapeKey: _,
3831
3809
  outsidePress: I
3832
- } = no(g), {
3810
+ } = ro(g), {
3833
3811
  escapeKey: N,
3834
3812
  outsidePress: C
3835
- } = no(v), P = x.useRef(!1), j = we((y) => {
3813
+ } = ro(v), P = x.useRef(!1), j = we((y) => {
3836
3814
  var M;
3837
3815
  if (!n || !s || !u || y.key !== "Escape" || P.current)
3838
3816
  return;
@@ -3883,9 +3861,9 @@ function Qa(e, t) {
3883
3861
  }
3884
3862
  const L = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, O = h && st(h.nodesRef.current, L).some((K) => {
3885
3863
  var Z;
3886
- return wn(y, (Z = K.context) == null ? void 0 : Z.elements.floating);
3864
+ return xn(y, (Z = K.context) == null ? void 0 : Z.elements.floating);
3887
3865
  });
3888
- if (wn(y, o.floating) || wn(y, o.domReference) || O)
3866
+ if (xn(y, o.floating) || xn(y, o.domReference) || O)
3889
3867
  return;
3890
3868
  const X = h ? st(h.nodesRef.current, L) : [];
3891
3869
  if (X.length > 0) {
@@ -3926,7 +3904,7 @@ function Qa(e, t) {
3926
3904
  },
3927
3905
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3928
3906
  // Only apply to WebKit for the test to remain 0ms.
3929
- nn() ? 5 : 0
3907
+ rn() ? 5 : 0
3930
3908
  );
3931
3909
  }
3932
3910
  const S = be(o.floating);
@@ -3981,7 +3959,7 @@ function eu(e) {
3981
3959
  open: t = !1,
3982
3960
  onOpenChange: n,
3983
3961
  elements: r
3984
- } = e, o = Ot(), i = x.useRef({}), [s] = x.useState(() => Bo()), u = dt() != null;
3962
+ } = e, o = _t(), i = x.useRef({}), [s] = x.useState(() => Wo()), u = dt() != null;
3985
3963
  if (process.env.NODE_ENV !== "production") {
3986
3964
  const g = r.reference;
3987
3965
  g && !ie(g) && Aa("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
@@ -4021,7 +3999,7 @@ function tu(e) {
4021
3999
  floating: null,
4022
4000
  ...e.elements
4023
4001
  }
4024
- }), r = e.rootContext || n, o = r.elements, [i, s] = x.useState(null), [u, l] = x.useState(null), p = o?.domReference || i, f = x.useRef(null), a = _t();
4002
+ }), r = e.rootContext || n, o = r.elements, [i, s] = x.useState(null), [u, l] = x.useState(null), p = o?.domReference || i, f = x.useRef(null), a = Ct();
4025
4003
  de(() => {
4026
4004
  p && (f.current = p);
4027
4005
  }, [p]);
@@ -4071,8 +4049,8 @@ function tu(e) {
4071
4049
  elements: T
4072
4050
  }), [g, E, T, R]);
4073
4051
  }
4074
- function Cn() {
4075
- return yc() && Ao();
4052
+ function An() {
4053
+ return yc() && Po();
4076
4054
  }
4077
4055
  function nu(e, t) {
4078
4056
  t === void 0 && (t = {});
@@ -4098,8 +4076,8 @@ function nu(e, t) {
4098
4076
  function E() {
4099
4077
  f.current = !1;
4100
4078
  }
4101
- return g.addEventListener("blur", v), Cn() && (g.addEventListener("keydown", h, !0), g.addEventListener("pointerdown", E, !0)), () => {
4102
- g.removeEventListener("blur", v), Cn() && (g.removeEventListener("keydown", h, !0), g.removeEventListener("pointerdown", E, !0));
4079
+ return g.addEventListener("blur", v), An() && (g.addEventListener("keydown", h, !0), g.addEventListener("pointerdown", E, !0)), () => {
4080
+ g.removeEventListener("blur", v), An() && (g.removeEventListener("keydown", h, !0), g.removeEventListener("pointerdown", E, !0));
4103
4081
  };
4104
4082
  }, [s.domReference, n, u]), x.useEffect(() => {
4105
4083
  if (!u) return;
@@ -4123,8 +4101,8 @@ function nu(e, t) {
4123
4101
  if (c.current) return;
4124
4102
  const v = Ie(g.nativeEvent);
4125
4103
  if (l && ie(v)) {
4126
- if (Cn() && !g.relatedTarget) {
4127
- if (!f.current && !Xn(v))
4104
+ if (An() && !g.relatedTarget) {
4105
+ if (!f.current && !Kn(v))
4128
4106
  return;
4129
4107
  } else if (!xc(v))
4130
4108
  return;
@@ -4145,13 +4123,13 @@ function nu(e, t) {
4145
4123
  reference: a
4146
4124
  } : {}, [u, a]);
4147
4125
  }
4148
- function An(e, t, n) {
4126
+ function Pn(e, t, n) {
4149
4127
  const r = /* @__PURE__ */ new Map(), o = n === "item";
4150
4128
  let i = e;
4151
4129
  if (o && e) {
4152
4130
  const {
4153
- [Br]: s,
4154
- [Wr]: u,
4131
+ [Wr]: s,
4132
+ [Vr]: u,
4155
4133
  ...l
4156
4134
  } = e;
4157
4135
  i = l;
@@ -4167,7 +4145,7 @@ function An(e, t, n) {
4167
4145
  return typeof u == "function" ? e ? u(e) : null : u;
4168
4146
  }).concat(e).reduce((s, u) => (u && Object.entries(u).forEach((l) => {
4169
4147
  let [c, p] = l;
4170
- if (!(o && [Br, Wr].includes(c)))
4148
+ if (!(o && [Wr, Vr].includes(c)))
4171
4149
  if (c.indexOf("on") === 0) {
4172
4150
  if (r.has(c) || r.set(c, []), typeof p == "function") {
4173
4151
  var f;
@@ -4185,15 +4163,15 @@ function An(e, t, n) {
4185
4163
  function ru(e) {
4186
4164
  e === void 0 && (e = []);
4187
4165
  const t = e.map((u) => u?.reference), n = e.map((u) => u?.floating), r = e.map((u) => u?.item), o = x.useCallback(
4188
- (u) => An(u, e, "reference"),
4166
+ (u) => Pn(u, e, "reference"),
4189
4167
  // eslint-disable-next-line react-hooks/exhaustive-deps
4190
4168
  t
4191
4169
  ), i = x.useCallback(
4192
- (u) => An(u, e, "floating"),
4170
+ (u) => Pn(u, e, "floating"),
4193
4171
  // eslint-disable-next-line react-hooks/exhaustive-deps
4194
4172
  n
4195
4173
  ), s = x.useCallback(
4196
- (u) => An(u, e, "item"),
4174
+ (u) => Pn(u, e, "item"),
4197
4175
  // eslint-disable-next-line react-hooks/exhaustive-deps
4198
4176
  r
4199
4177
  );
@@ -4214,9 +4192,9 @@ function iu(e, t) {
4214
4192
  } = e, {
4215
4193
  enabled: u = !0,
4216
4194
  role: l = "dialog"
4217
- } = t, c = Ot(), p = ((n = i.domReference) == null ? void 0 : n.id) || c, f = x.useMemo(() => {
4195
+ } = t, c = _t(), p = ((n = i.domReference) == null ? void 0 : n.id) || c, f = x.useMemo(() => {
4218
4196
  var R;
4219
- return ((R = Nn(i.floating)) == null ? void 0 : R.id) || s;
4197
+ return ((R = jn(i.floating)) == null ? void 0 : R.id) || s;
4220
4198
  }, [i.floating, s]), a = (r = ou.get(l)) != null ? r : l, v = dt() != null, h = x.useMemo(() => a === "tooltip" || l === "label" ? {
4221
4199
  ["aria-" + (l === "label" ? "labelledby" : "describedby")]: o ? f : void 0
4222
4200
  } : {
@@ -4278,7 +4256,7 @@ function iu(e, t) {
4278
4256
  item: T
4279
4257
  } : {}, [u, h, E, T]);
4280
4258
  }
4281
- const ro = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
4259
+ const oo = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
4282
4260
  function it(e, t) {
4283
4261
  return typeof e == "function" ? e(t) : e;
4284
4262
  }
@@ -4306,7 +4284,7 @@ function cu(e, t) {
4306
4284
  if (n) {
4307
4285
  l("initial");
4308
4286
  const p = requestAnimationFrame(() => {
4309
- Kn.flushSync(() => {
4287
+ Jn.flushSync(() => {
4310
4288
  l("open");
4311
4289
  });
4312
4290
  });
@@ -4350,14 +4328,14 @@ function au(e, t) {
4350
4328
  ...P,
4351
4329
  ...N
4352
4330
  })), E === "open" && v({
4353
- transitionProperty: Object.keys(j).map(ro).join(","),
4331
+ transitionProperty: Object.keys(j).map(oo).join(","),
4354
4332
  transitionDuration: f + "ms",
4355
4333
  ...P,
4356
4334
  ...j
4357
4335
  }), E === "close") {
4358
4336
  const A = C || N;
4359
4337
  v({
4360
- transitionProperty: Object.keys(A).map(ro).join(","),
4338
+ transitionProperty: Object.keys(A).map(oo).join(","),
4361
4339
  transitionDuration: a + "ms",
4362
4340
  ...P,
4363
4341
  ...A
@@ -4368,13 +4346,13 @@ function au(e, t) {
4368
4346
  styles: g
4369
4347
  };
4370
4348
  }
4371
- function Go(e, t, n) {
4349
+ function qo(e, t, n) {
4372
4350
  return n === void 0 && (n = !0), e.filter((o) => {
4373
4351
  var i;
4374
4352
  return o.parentId === t && (!n || ((i = o.context) == null ? void 0 : i.open));
4375
- }).flatMap((o) => [o, ...Go(e, o.id, n)]);
4353
+ }).flatMap((o) => [o, ...qo(e, o.id, n)]);
4376
4354
  }
4377
- function oo(e, t) {
4355
+ function io(e, t) {
4378
4356
  const [n, r] = e;
4379
4357
  let o = !1;
4380
4358
  const i = t.length;
@@ -4423,14 +4401,14 @@ function lu(e) {
4423
4401
  const {
4424
4402
  clientX: C,
4425
4403
  clientY: P
4426
- } = I, j = [C, P], A = ka(I), D = I.type === "mouseleave", H = On(h.floating, A), U = On(h.domReference, A), $ = h.domReference.getBoundingClientRect(), y = h.floating.getBoundingClientRect(), M = v.split("-")[0], Y = a > y.right - y.width / 2, k = g > y.bottom - y.height / 2, S = uu(j, $), F = y.width > $.width, B = y.height > $.height, b = (F ? $ : y).left, L = (F ? $ : y).right, O = (B ? $ : y).top, X = (B ? $ : y).bottom;
4404
+ } = I, j = [C, P], A = ka(I), D = I.type === "mouseleave", H = _n(h.floating, A), U = _n(h.domReference, A), $ = h.domReference.getBoundingClientRect(), y = h.floating.getBoundingClientRect(), M = v.split("-")[0], Y = a > y.right - y.width / 2, k = g > y.bottom - y.height / 2, S = uu(j, $), F = y.width > $.width, B = y.height > $.height, b = (F ? $ : y).left, L = (F ? $ : y).right, O = (B ? $ : y).top, X = (B ? $ : y).bottom;
4427
4405
  if (H && (i = !0, !D))
4428
4406
  return;
4429
4407
  if (U && (i = !1), U && !D) {
4430
4408
  i = !0;
4431
4409
  return;
4432
4410
  }
4433
- if (D && ie(I.relatedTarget) && On(h.floating, I.relatedTarget) || R && Go(R.nodesRef.current, T).length)
4411
+ if (D && ie(I.relatedTarget) && _n(h.floating, I.relatedTarget) || R && qo(R.nodesRef.current, T).length)
4434
4412
  return;
4435
4413
  if (M === "top" && g >= $.bottom - 1 || M === "bottom" && g <= $.top + 1 || M === "left" && a >= $.right - 1 || M === "right" && a <= $.left + 1)
4436
4414
  return N();
@@ -4470,7 +4448,7 @@ function lu(e) {
4470
4448
  }
4471
4449
  }
4472
4450
  }
4473
- if (!oo([C, P], K)) {
4451
+ if (!io([C, P], K)) {
4474
4452
  if (i && !S)
4475
4453
  return N();
4476
4454
  if (!D && r) {
@@ -4478,7 +4456,7 @@ function lu(e) {
4478
4456
  if (G !== null && G < 0.1)
4479
4457
  return N();
4480
4458
  }
4481
- oo([C, P], Z([a, g])) ? !i && r && (o.current = window.setTimeout(N, 40)) : N();
4459
+ io([C, P], Z([a, g])) ? !i && r && (o.current = window.setTimeout(N, 40)) : N();
4482
4460
  }
4483
4461
  };
4484
4462
  };
@@ -4490,7 +4468,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4490
4468
  const r = dt();
4491
4469
  return !t || r ? e : /* @__PURE__ */ z.jsx(Da, { ...n, children: e });
4492
4470
  }, du = ft(
4493
- Qt,
4471
+ en,
4494
4472
  ({ $width: e = "max-content" }) => ({
4495
4473
  $width: e
4496
4474
  })
@@ -4557,10 +4535,10 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4557
4535
  onOpen: $,
4558
4536
  onClose: y
4559
4537
  }) => {
4560
- const { theme: M } = Un(), Y = La(), [k, S] = $n(!1), F = Et(null), B = e && (c ?? k);
4538
+ const { theme: M } = Yn(), Y = La(), [k, S] = Hn(!1), F = Tt(null), B = e && (c ?? k);
4561
4539
  qe(() => {
4562
4540
  B && $?.();
4563
- }, [B]), Ps(e, (Z) => {
4541
+ }, [B]), Ls(e, (Z) => {
4564
4542
  Z || S(!1);
4565
4543
  });
4566
4544
  const b = [];
@@ -4632,11 +4610,11 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4632
4610
  interactions: X,
4633
4611
  transition: K
4634
4612
  };
4635
- }, qo = () => {
4636
- const e = Zt(
4637
- mo
4613
+ }, Xo = () => {
4614
+ const e = Qt(
4615
+ ho
4638
4616
  );
4639
- return Bn(
4617
+ return Wn(
4640
4618
  e,
4641
4619
  "The `useHoneyPopupContext()` hook can only be used inside <HoneyPopup/> component!"
4642
4620
  ), e;
@@ -4652,9 +4630,9 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4652
4630
  context: l,
4653
4631
  ...c
4654
4632
  }) => {
4655
- const { useArrow: p, onClose: f } = c, { nodeId: a, floating: g, isOpen: v, arrowRef: h, interactions: E, transition: T } = mu(c), R = Ht(() => {
4633
+ const { useArrow: p, onClose: f } = c, { nodeId: a, floating: g, isOpen: v, arrowRef: h, interactions: E, transition: T } = mu(c), R = Bt(() => {
4656
4634
  f?.("escape-key");
4657
- }, [f]), _ = Rt(
4635
+ }, [f]), _ = Et(
4658
4636
  () => ({
4659
4637
  context: l,
4660
4638
  floatingContext: g.context
@@ -4668,8 +4646,8 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4668
4646
  ...E.getReferenceProps(),
4669
4647
  ...t,
4670
4648
  "data-testid": "honey-popup",
4671
- children: /* @__PURE__ */ z.jsxs(mo, { value: _, children: [
4672
- Pn(e, _),
4649
+ children: /* @__PURE__ */ z.jsxs(ho, { value: _, children: [
4650
+ Ln(e, _),
4673
4651
  /* @__PURE__ */ z.jsx(Ma, { id: a, children: T.isMounted && /* @__PURE__ */ z.jsx(gu, { ...s, children: /* @__PURE__ */ z.jsx(
4674
4652
  za,
4675
4653
  {
@@ -4677,7 +4655,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4677
4655
  disabled: !v,
4678
4656
  ...o,
4679
4657
  children: /* @__PURE__ */ z.jsxs(
4680
- Ns,
4658
+ js,
4681
4659
  {
4682
4660
  ref: g.refs.setFloating,
4683
4661
  active: v,
@@ -4707,7 +4685,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4707
4685
  ...i
4708
4686
  }
4709
4687
  ),
4710
- Pn(n, _)
4688
+ Ln(n, _)
4711
4689
  ]
4712
4690
  }
4713
4691
  )
@@ -4716,35 +4694,35 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4716
4694
  ] })
4717
4695
  }
4718
4696
  );
4719
- }, Xo = ({
4697
+ }, Ko = ({
4720
4698
  useTree: e = !1,
4721
4699
  ...t
4722
- }) => /* @__PURE__ */ z.jsx(fu, { enabled: e, children: /* @__PURE__ */ z.jsx(hu, { ...t }) }), io = ({
4700
+ }) => /* @__PURE__ */ z.jsx(fu, { enabled: e, children: /* @__PURE__ */ z.jsx(hu, { ...t }) }), so = ({
4723
4701
  option: e,
4724
4702
  ...t
4725
4703
  }) => {
4726
- const { context: n, floatingContext: r } = qo(), o = () => {
4704
+ const { context: n, floatingContext: r } = Xo(), o = () => {
4727
4705
  e.onClick?.({ context: n, floatingContext: r });
4728
4706
  };
4729
- return /* @__PURE__ */ z.jsx(Wn, { onClick: o, ...t, children: e.label });
4730
- }, Ko = ({
4707
+ return /* @__PURE__ */ z.jsx(Vn, { onClick: o, ...t, children: e.label });
4708
+ }, Jo = ({
4731
4709
  options: e,
4732
4710
  optionProps: t,
4733
4711
  floatingOptions: n,
4734
4712
  ...r
4735
4713
  }) => {
4736
- const { contentProps: o } = r, { context: i, floatingContext: s } = qo(), u = Rt(
4714
+ const { contentProps: o } = r, { context: i, floatingContext: s } = Xo(), u = Et(
4737
4715
  () => e?.filter(
4738
4716
  (l) => typeof l.visible == "function" ? l.visible({ context: i, floatingContext: s }) : l.visible !== !1
4739
4717
  ),
4740
4718
  [e]
4741
4719
  );
4742
- return /* @__PURE__ */ z.jsx(As, { items: u, itemKey: "id", emptyContent: "No options", children: (l) => l.options?.length ? /* @__PURE__ */ z.jsx(
4743
- Xo,
4720
+ return /* @__PURE__ */ z.jsx(Ps, { items: u, itemKey: "id", emptyContent: "No options", children: (l) => l.options?.length ? /* @__PURE__ */ z.jsx(
4721
+ Ko,
4744
4722
  {
4745
4723
  context: i,
4746
4724
  content: /* @__PURE__ */ z.jsx(
4747
- Ko,
4725
+ Jo,
4748
4726
  {
4749
4727
  options: l.options,
4750
4728
  optionProps: t,
@@ -4762,7 +4740,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4762
4740
  useArrow: !0,
4763
4741
  ...r,
4764
4742
  children: /* @__PURE__ */ z.jsx(
4765
- io,
4743
+ so,
4766
4744
  {
4767
4745
  option: l,
4768
4746
  ...t,
@@ -4771,7 +4749,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4771
4749
  )
4772
4750
  }
4773
4751
  ) : /* @__PURE__ */ z.jsx(
4774
- io,
4752
+ so,
4775
4753
  {
4776
4754
  option: l,
4777
4755
  ...t
@@ -4788,11 +4766,11 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4788
4766
  }) => {
4789
4767
  const { contentProps: u } = s;
4790
4768
  return /* @__PURE__ */ z.jsx(z.Fragment, { children: /* @__PURE__ */ z.jsx(
4791
- Xo,
4769
+ Ko,
4792
4770
  {
4793
4771
  context: i,
4794
4772
  content: /* @__PURE__ */ z.jsx(
4795
- Ko,
4773
+ Jo,
4796
4774
  {
4797
4775
  options: n,
4798
4776
  optionProps: r,
@@ -4810,7 +4788,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4810
4788
  }
4811
4789
  ) });
4812
4790
  }, vu = () => {
4813
- const e = Et([]);
4791
+ const e = Tt([]);
4814
4792
  qe(() => {
4815
4793
  const r = (o) => {
4816
4794
  const i = e.current;
@@ -4822,8 +4800,8 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4822
4800
  document.removeEventListener("keyup", r);
4823
4801
  };
4824
4802
  }, []);
4825
- const t = Ht((r) => {
4826
- const o = r.id ?? gs(), i = [["keyup", r.onKeyUp]], s = {
4803
+ const t = Bt((r) => {
4804
+ const o = r.id ?? ps(), i = [["keyup", r.onKeyUp]], s = {
4827
4805
  current: null
4828
4806
  }, u = {
4829
4807
  containerRef: s,
@@ -4848,7 +4826,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4848
4826
  }
4849
4827
  };
4850
4828
  return e.current.push(u), u;
4851
- }, []), n = Ht((r) => {
4829
+ }, []), n = Bt((r) => {
4852
4830
  e.current = e.current.filter((o) => o.id !== r);
4853
4831
  }, []);
4854
4832
  return {
@@ -4862,7 +4840,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4862
4840
  mediaQueryOptions: n,
4863
4841
  ...r
4864
4842
  }) => {
4865
- const o = Is(t, n), { overlays: i, registerOverlay: s, unregisterOverlay: u } = vu(), l = Rt(
4843
+ const o = ks(t, n), { overlays: i, registerOverlay: s, unregisterOverlay: u } = vu(), l = Et(
4866
4844
  () => ({
4867
4845
  theme: t,
4868
4846
  screenState: o,
@@ -4872,13 +4850,13 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
4872
4850
  }),
4873
4851
  [t, o, i]
4874
4852
  );
4875
- return /* @__PURE__ */ z.jsx(co, { theme: t, ...r, children: /* @__PURE__ */ z.jsx(Vn, { value: l, children: e }) });
4853
+ return /* @__PURE__ */ z.jsx(ao, { theme: t, ...r, children: /* @__PURE__ */ z.jsx(Un, { value: l, children: e }) });
4876
4854
  };
4877
4855
  var bt = { exports: {} };
4878
4856
  bt.exports;
4879
- var so;
4857
+ var co;
4880
4858
  function yu() {
4881
- return so || (so = 1, (function(e, t) {
4859
+ return co || (co = 1, (function(e, t) {
4882
4860
  var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, s = 9007199254740991, u = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", a = "[object Error]", g = "[object Function]", v = "[object GeneratorFunction]", h = "[object Map]", E = "[object Number]", T = "[object Null]", R = "[object Object]", _ = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", C = "[object String]", P = "[object Undefined]", j = "[object WeakMap]", A = "[object ArrayBuffer]", D = "[object DataView]", H = "[object Float32Array]", U = "[object Float64Array]", $ = "[object Int8Array]", y = "[object Int16Array]", M = "[object Int32Array]", Y = "[object Uint8Array]", k = "[object Uint8ClampedArray]", S = "[object Uint16Array]", F = "[object Uint32Array]", B = /[\\^$.*+?()[\]{}|]/g, b = /^\[object .+?Constructor\]$/, L = /^(?:0|[1-9]\d*)$/, O = {};
4883
4861
  O[H] = O[U] = O[$] = O[y] = O[M] = O[Y] = O[k] = O[S] = O[F] = !0, O[u] = O[l] = O[A] = O[p] = O[D] = O[f] = O[a] = O[g] = O[h] = O[E] = O[R] = O[I] = O[N] = O[C] = O[j] = !1;
4884
4862
  var X = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, K = typeof self == "object" && self && self.Object === Object && self, Z = X || K || Function("return this")(), G = t && !t.nodeType && t, W = G && !0 && e && !e.nodeType && e, J = W && W.exports === G, se = J && X.process, ge = (function() {
@@ -4922,24 +4900,24 @@ function yu() {
4922
4900
  var Ce = Array.prototype, Ee = Function.prototype, pe = Object.prototype, Ae = Z["__core-js_shared__"], Te = Ee.toString, me = pe.hasOwnProperty, Pe = (function() {
4923
4901
  var d = /[^.]+$/.exec(Ae && Ae.keys && Ae.keys.IE_PROTO || "");
4924
4902
  return d ? "Symbol(src)_1." + d : "";
4925
- })(), gt = pe.toString, Jo = Te.call(Object), Zo = RegExp(
4903
+ })(), gt = pe.toString, Zo = Te.call(Object), Qo = RegExp(
4926
4904
  "^" + Te.call(me).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4927
- ), Ct = J ? Z.Buffer : void 0, Qn = Z.Symbol, er = Z.Uint8Array;
4928
- Ct && Ct.allocUnsafe;
4929
- var tr = re(Object.getPrototypeOf, Object), nr = Object.create, Qo = pe.propertyIsEnumerable, ei = Ce.splice, Ke = Qn ? Qn.toStringTag : void 0, At = (function() {
4905
+ ), At = J ? Z.Buffer : void 0, er = Z.Symbol, tr = Z.Uint8Array;
4906
+ At && At.allocUnsafe;
4907
+ var nr = re(Object.getPrototypeOf, Object), rr = Object.create, ei = pe.propertyIsEnumerable, ti = Ce.splice, Ke = er ? er.toStringTag : void 0, Pt = (function() {
4930
4908
  try {
4931
- var d = fn(Object, "defineProperty");
4909
+ var d = dn(Object, "defineProperty");
4932
4910
  return d({}, "", {}), d;
4933
4911
  } catch {
4934
4912
  }
4935
- })(), ti = Ct ? Ct.isBuffer : void 0, rr = Math.max, ni = Date.now, or = fn(Z, "Map"), pt = fn(Object, "create"), ri = /* @__PURE__ */ (function() {
4913
+ })(), ni = At ? At.isBuffer : void 0, or = Math.max, ri = Date.now, ir = dn(Z, "Map"), pt = dn(Object, "create"), oi = /* @__PURE__ */ (function() {
4936
4914
  function d() {
4937
4915
  }
4938
4916
  return function(m) {
4939
4917
  if (!Ze(m))
4940
4918
  return {};
4941
- if (nr)
4942
- return nr(m);
4919
+ if (rr)
4920
+ return rr(m);
4943
4921
  d.prototype = m;
4944
4922
  var w = new d();
4945
4923
  return d.prototype = void 0, w;
@@ -4952,14 +4930,14 @@ function yu() {
4952
4930
  this.set(V[0], V[1]);
4953
4931
  }
4954
4932
  }
4955
- function oi() {
4933
+ function ii() {
4956
4934
  this.__data__ = pt ? pt(null) : {}, this.size = 0;
4957
4935
  }
4958
- function ii(d) {
4936
+ function si(d) {
4959
4937
  var m = this.has(d) && delete this.__data__[d];
4960
4938
  return this.size -= m ? 1 : 0, m;
4961
4939
  }
4962
- function si(d) {
4940
+ function ci(d) {
4963
4941
  var m = this.__data__;
4964
4942
  if (pt) {
4965
4943
  var w = m[d];
@@ -4967,15 +4945,15 @@ function yu() {
4967
4945
  }
4968
4946
  return me.call(m, d) ? m[d] : void 0;
4969
4947
  }
4970
- function ci(d) {
4948
+ function ai(d) {
4971
4949
  var m = this.__data__;
4972
4950
  return pt ? m[d] !== void 0 : me.call(m, d);
4973
4951
  }
4974
- function ai(d, m) {
4952
+ function ui(d, m) {
4975
4953
  var w = this.__data__;
4976
4954
  return this.size += this.has(d) ? 0 : 1, w[d] = pt && m === void 0 ? r : m, this;
4977
4955
  }
4978
- Je.prototype.clear = oi, Je.prototype.delete = ii, Je.prototype.get = si, Je.prototype.has = ci, Je.prototype.set = ai;
4956
+ Je.prototype.clear = ii, Je.prototype.delete = si, Je.prototype.get = ci, Je.prototype.has = ai, Je.prototype.set = ui;
4979
4957
  function Fe(d) {
4980
4958
  var m = -1, w = d == null ? 0 : d.length;
4981
4959
  for (this.clear(); ++m < w; ) {
@@ -4983,28 +4961,28 @@ function yu() {
4983
4961
  this.set(V[0], V[1]);
4984
4962
  }
4985
4963
  }
4986
- function ui() {
4964
+ function li() {
4987
4965
  this.__data__ = [], this.size = 0;
4988
4966
  }
4989
- function li(d) {
4990
- var m = this.__data__, w = Pt(m, d);
4967
+ function fi(d) {
4968
+ var m = this.__data__, w = Lt(m, d);
4991
4969
  if (w < 0)
4992
4970
  return !1;
4993
4971
  var V = m.length - 1;
4994
- return w == V ? m.pop() : ei.call(m, w, 1), --this.size, !0;
4972
+ return w == V ? m.pop() : ti.call(m, w, 1), --this.size, !0;
4995
4973
  }
4996
- function fi(d) {
4997
- var m = this.__data__, w = Pt(m, d);
4974
+ function di(d) {
4975
+ var m = this.__data__, w = Lt(m, d);
4998
4976
  return w < 0 ? void 0 : m[w][1];
4999
4977
  }
5000
- function di(d) {
5001
- return Pt(this.__data__, d) > -1;
4978
+ function gi(d) {
4979
+ return Lt(this.__data__, d) > -1;
5002
4980
  }
5003
- function gi(d, m) {
5004
- var w = this.__data__, V = Pt(w, d);
4981
+ function pi(d, m) {
4982
+ var w = this.__data__, V = Lt(w, d);
5005
4983
  return V < 0 ? (++this.size, w.push([d, m])) : w[V][1] = m, this;
5006
4984
  }
5007
- Fe.prototype.clear = ui, Fe.prototype.delete = li, Fe.prototype.get = fi, Fe.prototype.has = di, Fe.prototype.set = gi;
4985
+ Fe.prototype.clear = li, Fe.prototype.delete = fi, Fe.prototype.get = di, Fe.prototype.has = gi, Fe.prototype.set = pi;
5008
4986
  function nt(d) {
5009
4987
  var m = -1, w = d == null ? 0 : d.length;
5010
4988
  for (this.clear(); ++m < w; ) {
@@ -5012,182 +4990,182 @@ function yu() {
5012
4990
  this.set(V[0], V[1]);
5013
4991
  }
5014
4992
  }
5015
- function pi() {
4993
+ function mi() {
5016
4994
  this.size = 0, this.__data__ = {
5017
4995
  hash: new Je(),
5018
- map: new (or || Fe)(),
4996
+ map: new (ir || Fe)(),
5019
4997
  string: new Je()
5020
4998
  };
5021
4999
  }
5022
- function mi(d) {
5023
- var m = Mt(this, d).delete(d);
5024
- return this.size -= m ? 1 : 0, m;
5025
- }
5026
5000
  function hi(d) {
5027
- return Mt(this, d).get(d);
5001
+ var m = Dt(this, d).delete(d);
5002
+ return this.size -= m ? 1 : 0, m;
5028
5003
  }
5029
5004
  function vi(d) {
5030
- return Mt(this, d).has(d);
5005
+ return Dt(this, d).get(d);
5006
+ }
5007
+ function yi(d) {
5008
+ return Dt(this, d).has(d);
5031
5009
  }
5032
- function yi(d, m) {
5033
- var w = Mt(this, d), V = w.size;
5010
+ function bi(d, m) {
5011
+ var w = Dt(this, d), V = w.size;
5034
5012
  return w.set(d, m), this.size += w.size == V ? 0 : 1, this;
5035
5013
  }
5036
- nt.prototype.clear = pi, nt.prototype.delete = mi, nt.prototype.get = hi, nt.prototype.has = vi, nt.prototype.set = yi;
5014
+ nt.prototype.clear = mi, nt.prototype.delete = hi, nt.prototype.get = vi, nt.prototype.has = yi, nt.prototype.set = bi;
5037
5015
  function rt(d) {
5038
5016
  var m = this.__data__ = new Fe(d);
5039
5017
  this.size = m.size;
5040
5018
  }
5041
- function bi() {
5019
+ function wi() {
5042
5020
  this.__data__ = new Fe(), this.size = 0;
5043
5021
  }
5044
- function wi(d) {
5022
+ function xi(d) {
5045
5023
  var m = this.__data__, w = m.delete(d);
5046
5024
  return this.size = m.size, w;
5047
5025
  }
5048
- function xi(d) {
5026
+ function Ri(d) {
5049
5027
  return this.__data__.get(d);
5050
5028
  }
5051
- function Ri(d) {
5029
+ function Ei(d) {
5052
5030
  return this.__data__.has(d);
5053
5031
  }
5054
- function Ei(d, m) {
5032
+ function Ti(d, m) {
5055
5033
  var w = this.__data__;
5056
5034
  if (w instanceof Fe) {
5057
5035
  var V = w.__data__;
5058
- if (!or || V.length < n - 1)
5036
+ if (!ir || V.length < n - 1)
5059
5037
  return V.push([d, m]), this.size = ++w.size, this;
5060
5038
  w = this.__data__ = new nt(V);
5061
5039
  }
5062
5040
  return w.set(d, m), this.size = w.size, this;
5063
5041
  }
5064
- rt.prototype.clear = bi, rt.prototype.delete = wi, rt.prototype.get = xi, rt.prototype.has = Ri, rt.prototype.set = Ei;
5065
- function Ti(d, m) {
5066
- var w = pn(d), V = !w && gn(d), ee = !w && !V && ur(d), oe = !w && !V && !ee && fr(d), ce = w || V || ee || oe, ne = ce ? Q(d.length, String) : [], ae = ne.length;
5042
+ rt.prototype.clear = wi, rt.prototype.delete = xi, rt.prototype.get = Ri, rt.prototype.has = Ei, rt.prototype.set = Ti;
5043
+ function Si(d, m) {
5044
+ var w = mn(d), V = !w && pn(d), ee = !w && !V && lr(d), oe = !w && !V && !ee && dr(d), ce = w || V || ee || oe, ne = ce ? Q(d.length, String) : [], ae = ne.length;
5067
5045
  for (var Le in d)
5068
5046
  ce && // Safari 9 has enumerable `arguments.length` in strict mode.
5069
5047
  (Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5070
5048
  ee && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5071
5049
  oe && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
5072
- cr(Le, ae)) || ne.push(Le);
5050
+ ar(Le, ae)) || ne.push(Le);
5073
5051
  return ne;
5074
5052
  }
5075
- function un(d, m, w) {
5076
- (w !== void 0 && !Dt(d[m], w) || w === void 0 && !(m in d)) && ln(d, m, w);
5053
+ function ln(d, m, w) {
5054
+ (w !== void 0 && !It(d[m], w) || w === void 0 && !(m in d)) && fn(d, m, w);
5077
5055
  }
5078
- function Si(d, m, w) {
5056
+ function Oi(d, m, w) {
5079
5057
  var V = d[m];
5080
- (!(me.call(d, m) && Dt(V, w)) || w === void 0 && !(m in d)) && ln(d, m, w);
5058
+ (!(me.call(d, m) && It(V, w)) || w === void 0 && !(m in d)) && fn(d, m, w);
5081
5059
  }
5082
- function Pt(d, m) {
5060
+ function Lt(d, m) {
5083
5061
  for (var w = d.length; w--; )
5084
- if (Dt(d[w][0], m))
5062
+ if (It(d[w][0], m))
5085
5063
  return w;
5086
5064
  return -1;
5087
5065
  }
5088
- function ln(d, m, w) {
5089
- m == "__proto__" && At ? At(d, m, {
5066
+ function fn(d, m, w) {
5067
+ m == "__proto__" && Pt ? Pt(d, m, {
5090
5068
  configurable: !0,
5091
5069
  enumerable: !0,
5092
5070
  value: w,
5093
5071
  writable: !0
5094
5072
  }) : d[m] = w;
5095
5073
  }
5096
- var Oi = $i();
5097
- function Lt(d) {
5098
- return d == null ? d === void 0 ? P : T : Ke && Ke in Object(d) ? Hi(d) : zi(d);
5074
+ var _i = Hi();
5075
+ function Mt(d) {
5076
+ return d == null ? d === void 0 ? P : T : Ke && Ke in Object(d) ? Bi(d) : Gi(d);
5099
5077
  }
5100
- function ir(d) {
5101
- return mt(d) && Lt(d) == u;
5102
- }
5103
- function _i(d) {
5104
- if (!Ze(d) || Ui(d))
5105
- return !1;
5106
- var m = hn(d) ? Zo : b;
5107
- return m.test(Ki(d));
5078
+ function sr(d) {
5079
+ return mt(d) && Mt(d) == u;
5108
5080
  }
5109
5081
  function Ci(d) {
5110
- return mt(d) && lr(d.length) && !!O[Lt(d)];
5082
+ if (!Ze(d) || Yi(d))
5083
+ return !1;
5084
+ var m = vn(d) ? Qo : b;
5085
+ return m.test(Ji(d));
5111
5086
  }
5112
5087
  function Ai(d) {
5088
+ return mt(d) && fr(d.length) && !!O[Mt(d)];
5089
+ }
5090
+ function Pi(d) {
5113
5091
  if (!Ze(d))
5114
- return Yi(d);
5115
- var m = ar(d), w = [];
5092
+ return zi(d);
5093
+ var m = ur(d), w = [];
5116
5094
  for (var V in d)
5117
5095
  V == "constructor" && (m || !me.call(d, V)) || w.push(V);
5118
5096
  return w;
5119
5097
  }
5120
- function sr(d, m, w, V, ee) {
5121
- d !== m && Oi(m, function(oe, ce) {
5098
+ function cr(d, m, w, V, ee) {
5099
+ d !== m && _i(m, function(oe, ce) {
5122
5100
  if (ee || (ee = new rt()), Ze(oe))
5123
- Pi(d, m, ce, w, sr, V, ee);
5101
+ Li(d, m, ce, w, cr, V, ee);
5124
5102
  else {
5125
- var ne = V ? V(dn(d, ce), oe, ce + "", d, m, ee) : void 0;
5126
- ne === void 0 && (ne = oe), un(d, ce, ne);
5103
+ var ne = V ? V(gn(d, ce), oe, ce + "", d, m, ee) : void 0;
5104
+ ne === void 0 && (ne = oe), ln(d, ce, ne);
5127
5105
  }
5128
- }, dr);
5106
+ }, gr);
5129
5107
  }
5130
- function Pi(d, m, w, V, ee, oe, ce) {
5131
- var ne = dn(d, w), ae = dn(m, w), Le = ce.get(ae);
5108
+ function Li(d, m, w, V, ee, oe, ce) {
5109
+ var ne = gn(d, w), ae = gn(m, w), Le = ce.get(ae);
5132
5110
  if (Le) {
5133
- un(d, w, Le);
5111
+ ln(d, w, Le);
5134
5112
  return;
5135
5113
  }
5136
5114
  var Se = oe ? oe(ne, ae, w + "", d, m, ce) : void 0, ht = Se === void 0;
5137
5115
  if (ht) {
5138
- var vn = pn(ae), yn = !vn && ur(ae), pr = !vn && !yn && fr(ae);
5139
- Se = ae, vn || yn || pr ? pn(ne) ? Se = ne : Ji(ne) ? Se = Ni(ne) : yn ? (ht = !1, Se = Di(ae)) : pr ? (ht = !1, Se = ki(ae)) : Se = [] : Zi(ae) || gn(ae) ? (Se = ne, gn(ne) ? Se = Qi(ne) : (!Ze(ne) || hn(ne)) && (Se = Bi(ae))) : ht = !1;
5116
+ var yn = mn(ae), bn = !yn && lr(ae), mr = !yn && !bn && dr(ae);
5117
+ Se = ae, yn || bn || mr ? mn(ne) ? Se = ne : Zi(ne) ? Se = ji(ne) : bn ? (ht = !1, Se = Ii(ae)) : mr ? (ht = !1, Se = Ni(ae)) : Se = [] : Qi(ae) || pn(ae) ? (Se = ne, pn(ne) ? Se = es(ne) : (!Ze(ne) || vn(ne)) && (Se = Wi(ae))) : ht = !1;
5140
5118
  }
5141
- ht && (ce.set(ae, Se), ee(Se, ae, V, oe, ce), ce.delete(ae)), un(d, w, Se);
5119
+ ht && (ce.set(ae, Se), ee(Se, ae, V, oe, ce), ce.delete(ae)), ln(d, w, Se);
5142
5120
  }
5143
- function Li(d, m) {
5144
- return qi(Gi(d, m, gr), d + "");
5121
+ function Mi(d, m) {
5122
+ return Xi(qi(d, m, pr), d + "");
5145
5123
  }
5146
- var Mi = At ? function(d, m) {
5147
- return At(d, "toString", {
5124
+ var Di = Pt ? function(d, m) {
5125
+ return Pt(d, "toString", {
5148
5126
  configurable: !0,
5149
5127
  enumerable: !1,
5150
- value: ts(m),
5128
+ value: ns(m),
5151
5129
  writable: !0
5152
5130
  });
5153
- } : gr;
5154
- function Di(d, m) {
5131
+ } : pr;
5132
+ function Ii(d, m) {
5155
5133
  return d.slice();
5156
5134
  }
5157
- function Ii(d) {
5135
+ function ki(d) {
5158
5136
  var m = new d.constructor(d.byteLength);
5159
- return new er(m).set(new er(d)), m;
5137
+ return new tr(m).set(new tr(d)), m;
5160
5138
  }
5161
- function ki(d, m) {
5162
- var w = Ii(d.buffer);
5139
+ function Ni(d, m) {
5140
+ var w = ki(d.buffer);
5163
5141
  return new d.constructor(w, d.byteOffset, d.length);
5164
5142
  }
5165
- function Ni(d, m) {
5143
+ function ji(d, m) {
5166
5144
  var w = -1, V = d.length;
5167
5145
  for (m || (m = Array(V)); ++w < V; )
5168
5146
  m[w] = d[w];
5169
5147
  return m;
5170
5148
  }
5171
- function ji(d, m, w, V) {
5149
+ function Fi(d, m, w, V) {
5172
5150
  var ee = !w;
5173
5151
  w || (w = {});
5174
5152
  for (var oe = -1, ce = m.length; ++oe < ce; ) {
5175
5153
  var ne = m[oe], ae = void 0;
5176
- ae === void 0 && (ae = d[ne]), ee ? ln(w, ne, ae) : Si(w, ne, ae);
5154
+ ae === void 0 && (ae = d[ne]), ee ? fn(w, ne, ae) : Oi(w, ne, ae);
5177
5155
  }
5178
5156
  return w;
5179
5157
  }
5180
- function Fi(d) {
5181
- return Li(function(m, w) {
5158
+ function $i(d) {
5159
+ return Mi(function(m, w) {
5182
5160
  var V = -1, ee = w.length, oe = ee > 1 ? w[ee - 1] : void 0, ce = ee > 2 ? w[2] : void 0;
5183
- for (oe = d.length > 3 && typeof oe == "function" ? (ee--, oe) : void 0, ce && Wi(w[0], w[1], ce) && (oe = ee < 3 ? void 0 : oe, ee = 1), m = Object(m); ++V < ee; ) {
5161
+ for (oe = d.length > 3 && typeof oe == "function" ? (ee--, oe) : void 0, ce && Vi(w[0], w[1], ce) && (oe = ee < 3 ? void 0 : oe, ee = 1), m = Object(m); ++V < ee; ) {
5184
5162
  var ne = w[V];
5185
5163
  ne && d(m, ne, V, oe);
5186
5164
  }
5187
5165
  return m;
5188
5166
  });
5189
5167
  }
5190
- function $i(d) {
5168
+ function Hi(d) {
5191
5169
  return function(m, w, V) {
5192
5170
  for (var ee = -1, oe = Object(m), ce = V(m), ne = ce.length; ne--; ) {
5193
5171
  var ae = ce[++ee];
@@ -5197,15 +5175,15 @@ function yu() {
5197
5175
  return m;
5198
5176
  };
5199
5177
  }
5200
- function Mt(d, m) {
5178
+ function Dt(d, m) {
5201
5179
  var w = d.__data__;
5202
- return Vi(m) ? w[typeof m == "string" ? "string" : "hash"] : w.map;
5180
+ return Ui(m) ? w[typeof m == "string" ? "string" : "hash"] : w.map;
5203
5181
  }
5204
- function fn(d, m) {
5182
+ function dn(d, m) {
5205
5183
  var w = fe(d, m);
5206
- return _i(w) ? w : void 0;
5184
+ return Ci(w) ? w : void 0;
5207
5185
  }
5208
- function Hi(d) {
5186
+ function Bi(d) {
5209
5187
  var m = me.call(d, Ke), w = d[Ke];
5210
5188
  try {
5211
5189
  d[Ke] = void 0;
@@ -5215,43 +5193,43 @@ function yu() {
5215
5193
  var ee = gt.call(d);
5216
5194
  return V && (m ? d[Ke] = w : delete d[Ke]), ee;
5217
5195
  }
5218
- function Bi(d) {
5219
- return typeof d.constructor == "function" && !ar(d) ? ri(tr(d)) : {};
5196
+ function Wi(d) {
5197
+ return typeof d.constructor == "function" && !ur(d) ? oi(nr(d)) : {};
5220
5198
  }
5221
- function cr(d, m) {
5199
+ function ar(d, m) {
5222
5200
  var w = typeof d;
5223
5201
  return m = m ?? s, !!m && (w == "number" || w != "symbol" && L.test(d)) && d > -1 && d % 1 == 0 && d < m;
5224
5202
  }
5225
- function Wi(d, m, w) {
5203
+ function Vi(d, m, w) {
5226
5204
  if (!Ze(w))
5227
5205
  return !1;
5228
5206
  var V = typeof m;
5229
- return (V == "number" ? mn(w) && cr(m, w.length) : V == "string" && m in w) ? Dt(w[m], d) : !1;
5207
+ return (V == "number" ? hn(w) && ar(m, w.length) : V == "string" && m in w) ? It(w[m], d) : !1;
5230
5208
  }
5231
- function Vi(d) {
5209
+ function Ui(d) {
5232
5210
  var m = typeof d;
5233
5211
  return m == "string" || m == "number" || m == "symbol" || m == "boolean" ? d !== "__proto__" : d === null;
5234
5212
  }
5235
- function Ui(d) {
5213
+ function Yi(d) {
5236
5214
  return !!Pe && Pe in d;
5237
5215
  }
5238
- function ar(d) {
5216
+ function ur(d) {
5239
5217
  var m = d && d.constructor, w = typeof m == "function" && m.prototype || pe;
5240
5218
  return d === w;
5241
5219
  }
5242
- function Yi(d) {
5220
+ function zi(d) {
5243
5221
  var m = [];
5244
5222
  if (d != null)
5245
5223
  for (var w in Object(d))
5246
5224
  m.push(w);
5247
5225
  return m;
5248
5226
  }
5249
- function zi(d) {
5227
+ function Gi(d) {
5250
5228
  return gt.call(d);
5251
5229
  }
5252
- function Gi(d, m, w) {
5253
- return m = rr(m === void 0 ? d.length - 1 : m, 0), function() {
5254
- for (var V = arguments, ee = -1, oe = rr(V.length - m, 0), ce = Array(oe); ++ee < oe; )
5230
+ function qi(d, m, w) {
5231
+ return m = or(m === void 0 ? d.length - 1 : m, 0), function() {
5232
+ for (var V = arguments, ee = -1, oe = or(V.length - m, 0), ce = Array(oe); ++ee < oe; )
5255
5233
  ce[ee] = V[m + ee];
5256
5234
  ee = -1;
5257
5235
  for (var ne = Array(m + 1); ++ee < m; )
@@ -5259,15 +5237,15 @@ function yu() {
5259
5237
  return ne[m] = w(ce), te(d, this, ne);
5260
5238
  };
5261
5239
  }
5262
- function dn(d, m) {
5240
+ function gn(d, m) {
5263
5241
  if (!(m === "constructor" && typeof d[m] == "function") && m != "__proto__")
5264
5242
  return d[m];
5265
5243
  }
5266
- var qi = Xi(Mi);
5267
- function Xi(d) {
5244
+ var Xi = Ki(Di);
5245
+ function Ki(d) {
5268
5246
  var m = 0, w = 0;
5269
5247
  return function() {
5270
- var V = ni(), ee = i - (V - w);
5248
+ var V = ri(), ee = i - (V - w);
5271
5249
  if (w = V, ee > 0) {
5272
5250
  if (++m >= o)
5273
5251
  return arguments[0];
@@ -5276,7 +5254,7 @@ function yu() {
5276
5254
  return d.apply(void 0, arguments);
5277
5255
  };
5278
5256
  }
5279
- function Ki(d) {
5257
+ function Ji(d) {
5280
5258
  if (d != null) {
5281
5259
  try {
5282
5260
  return Te.call(d);
@@ -5289,28 +5267,28 @@ function yu() {
5289
5267
  }
5290
5268
  return "";
5291
5269
  }
5292
- function Dt(d, m) {
5270
+ function It(d, m) {
5293
5271
  return d === m || d !== d && m !== m;
5294
5272
  }
5295
- var gn = ir(/* @__PURE__ */ (function() {
5273
+ var pn = sr(/* @__PURE__ */ (function() {
5296
5274
  return arguments;
5297
- })()) ? ir : function(d) {
5298
- return mt(d) && me.call(d, "callee") && !Qo.call(d, "callee");
5299
- }, pn = Array.isArray;
5300
- function mn(d) {
5301
- return d != null && lr(d.length) && !hn(d);
5275
+ })()) ? sr : function(d) {
5276
+ return mt(d) && me.call(d, "callee") && !ei.call(d, "callee");
5277
+ }, mn = Array.isArray;
5278
+ function hn(d) {
5279
+ return d != null && fr(d.length) && !vn(d);
5302
5280
  }
5303
- function Ji(d) {
5304
- return mt(d) && mn(d);
5281
+ function Zi(d) {
5282
+ return mt(d) && hn(d);
5305
5283
  }
5306
- var ur = ti || ns;
5307
- function hn(d) {
5284
+ var lr = ni || rs;
5285
+ function vn(d) {
5308
5286
  if (!Ze(d))
5309
5287
  return !1;
5310
- var m = Lt(d);
5288
+ var m = Mt(d);
5311
5289
  return m == g || m == v || m == c || m == _;
5312
5290
  }
5313
- function lr(d) {
5291
+ function fr(d) {
5314
5292
  return typeof d == "number" && d > -1 && d % 1 == 0 && d <= s;
5315
5293
  }
5316
5294
  function Ze(d) {
@@ -5320,49 +5298,49 @@ function yu() {
5320
5298
  function mt(d) {
5321
5299
  return d != null && typeof d == "object";
5322
5300
  }
5323
- function Zi(d) {
5324
- if (!mt(d) || Lt(d) != R)
5301
+ function Qi(d) {
5302
+ if (!mt(d) || Mt(d) != R)
5325
5303
  return !1;
5326
- var m = tr(d);
5304
+ var m = nr(d);
5327
5305
  if (m === null)
5328
5306
  return !0;
5329
5307
  var w = me.call(m, "constructor") && m.constructor;
5330
- return typeof w == "function" && w instanceof w && Te.call(w) == Jo;
5308
+ return typeof w == "function" && w instanceof w && Te.call(w) == Zo;
5331
5309
  }
5332
- var fr = q ? ue(q) : Ci;
5333
- function Qi(d) {
5334
- return ji(d, dr(d));
5310
+ var dr = q ? ue(q) : Ai;
5311
+ function es(d) {
5312
+ return Fi(d, gr(d));
5335
5313
  }
5336
- function dr(d) {
5337
- return mn(d) ? Ti(d) : Ai(d);
5314
+ function gr(d) {
5315
+ return hn(d) ? Si(d) : Pi(d);
5338
5316
  }
5339
- var es = Fi(function(d, m, w) {
5340
- sr(d, m, w);
5317
+ var ts = $i(function(d, m, w) {
5318
+ cr(d, m, w);
5341
5319
  });
5342
- function ts(d) {
5320
+ function ns(d) {
5343
5321
  return function() {
5344
5322
  return d;
5345
5323
  };
5346
5324
  }
5347
- function gr(d) {
5325
+ function pr(d) {
5348
5326
  return d;
5349
5327
  }
5350
- function ns() {
5328
+ function rs() {
5351
5329
  return !1;
5352
5330
  }
5353
- e.exports = es;
5331
+ e.exports = ts;
5354
5332
  })(bt, bt.exports)), bt.exports;
5355
5333
  }
5356
5334
  var bu = yu();
5357
- const wu = /* @__PURE__ */ fo(bu), Du = ({
5335
+ const wu = /* @__PURE__ */ go(bu), Du = ({
5358
5336
  theme: e,
5359
5337
  ...t
5360
5338
  }) => {
5361
- const n = Zt(Vn), r = Rt(
5339
+ const n = Qt(Un), r = Et(
5362
5340
  () => wu(n?.theme, e),
5363
5341
  [n?.theme, e]
5364
5342
  );
5365
- return /* @__PURE__ */ z.jsx(co, { theme: r, ...t });
5343
+ return /* @__PURE__ */ z.jsx(ao, { theme: r, ...t });
5366
5344
  }, xu = (e, t, n, r = [], o = void 0, i = 0) => (e?.forEach((s) => {
5367
5345
  const { [n]: u, ...l } = s, c = s[n], p = Array.isArray(c);
5368
5346
  if (r.push({
@@ -5384,7 +5362,7 @@ const wu = /* @__PURE__ */ fo(bu), Du = ({
5384
5362
  }), r), Iu = (e, t, n) => e.filter(
5385
5363
  (r) => r.parentId === t && (!n || n(r))
5386
5364
  ), ku = (e, t, n, r) => {
5387
- const o = hr(r.toLowerCase());
5365
+ const o = vr(r.toLowerCase());
5388
5366
  if (!o.length)
5389
5367
  return e;
5390
5368
  const i = e.reduce(
@@ -5398,7 +5376,7 @@ const wu = /* @__PURE__ */ fo(bu), Du = ({
5398
5376
  (f) => f[t] === u[t]
5399
5377
  ))
5400
5378
  return s;
5401
- const c = hr(l.toLowerCase());
5379
+ const c = vr(l.toLowerCase());
5402
5380
  if (o.every(
5403
5381
  (f) => c.some((a) => a.startsWith(f))
5404
5382
  ))
@@ -5441,43 +5419,43 @@ const wu = /* @__PURE__ */ fo(bu), Du = ({
5441
5419
  visibility: visible;
5442
5420
  }
5443
5421
  `}
5444
- `, ju = Jt;
5422
+ `, ju = Zt;
5445
5423
  export {
5446
- Wn as HoneyBox,
5424
+ Vn as HoneyBox,
5447
5425
  Lu as HoneyContextMenu,
5448
- Qt as HoneyFlexBox,
5426
+ en as HoneyFlexBox,
5449
5427
  Su as HoneyGrid,
5450
5428
  Ou as HoneyGridColumn,
5451
- po as HoneyGridColumnStyled,
5429
+ mo as HoneyGridColumnStyled,
5452
5430
  Mu as HoneyLayoutProvider,
5453
5431
  Du as HoneyLayoutThemeOverride,
5454
5432
  _u as HoneyLazyContent,
5455
- As as HoneyList,
5456
- Ns as HoneyOverlay,
5457
- Xo as HoneyPopup,
5458
- mo as HoneyPopupContext,
5459
- _s as HoneyStatusContent,
5460
- bs as applyBreakpointStyles,
5461
- lo as bpMedia,
5462
- uo as createStyles,
5433
+ Ps as HoneyList,
5434
+ js as HoneyOverlay,
5435
+ Ko as HoneyPopup,
5436
+ ho as HoneyPopupContext,
5437
+ Cs as HoneyStatusContent,
5438
+ ws as applyBreakpointStyles,
5439
+ fo as bpMedia,
5440
+ lo as createStyles,
5463
5441
  Iu as filterFlattenedItems,
5464
5442
  xu as flattenNestedList,
5465
- gs as generateUniqueId,
5443
+ ps as generateUniqueId,
5466
5444
  Tu as getFocusableHTMLElements,
5467
- Os as getHoneyListItemId,
5445
+ _s as getHoneyListItemId,
5468
5446
  Nu as honeyVisibilityTransitionEffect,
5469
- ls as mergeRefs,
5470
- yr as resolveScreenState,
5447
+ fs as mergeRefs,
5448
+ br as resolveScreenState,
5471
5449
  ju as resolveSpacing,
5472
5450
  ku as searchFlattenedItems,
5473
5451
  Au as useHoneyDocumentKeyUpHandler,
5474
5452
  Cu as useHoneyDrag,
5475
- Ss as useHoneyGridContext,
5476
- Un as useHoneyLayout,
5477
- Is as useHoneyMediaQuery,
5478
- Ps as useHoneyOnChange,
5453
+ Os as useHoneyGridContext,
5454
+ Yn as useHoneyLayout,
5455
+ ks as useHoneyMediaQuery,
5456
+ Ls as useHoneyOnChange,
5479
5457
  Pu as useHoneyOverlay,
5480
5458
  mu as useHoneyPopup,
5481
- qo as useHoneyPopupContext,
5482
- ks as useRegisterHoneyOverlay
5459
+ Xo as useHoneyPopupContext,
5460
+ Ns as useRegisterHoneyOverlay
5483
5461
  };