highsoft-ui 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,13 @@
1
- import { jsx as C, jsxs as J, Fragment as Ut } from "react/jsx-runtime";
2
- import { z as Gn } from "../../index-CMegByeX.js";
1
+ import { jsx as C, jsxs as Q, Fragment as Ut } from "react/jsx-runtime";
2
+ import { z as Qn } from "../../index-CMegByeX.js";
3
3
  import * as a from "react";
4
- import { useState as Qn, useLayoutEffect as Jn, useEffect as er } from "react";
4
+ import { useState as Jn, useLayoutEffect as er, useEffect as tr } from "react";
5
5
  import { _ as xe } from "../../extends-hS2Bh-Yp.js";
6
- import { c as tr } from "../../clsx-OuTLNxxd.js";
7
- import { Button as nr } from "../Button/index.js";
8
- import { useMounted as rr } from "../../utils.js";
9
- import { r as or } from "../../index-CWDYlYn8.js";
10
- function ir(e) {
11
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
12
- }
6
+ import { c as nr } from "../../clsx-OuTLNxxd.js";
7
+ import { Button as rr } from "../Button/index.js";
8
+ import { useMounted as or } from "../../utils.js";
9
+ import * as zt from "react-dom";
10
+ import ir from "react-dom";
13
11
  var sr = function(t) {
14
12
  return /* @__PURE__ */ C("svg", xe({
15
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -90,36 +88,35 @@ var sr = function(t) {
90
88
  d: "M12 2v2m0 16v2M4 12H2m4.3141-5.6859L4.9 4.9m12.786 1.4142L19.1001 4.9M6.3141 17.69 4.9 19.1042M17.686 17.69l1.4142 1.4142M22 12h-2m-3 0c0 2.7614-2.2386 5-5 5s-5-2.2386-5-5 2.2386-5 5-5 5 2.2386 5 5"
91
89
  })
92
90
  }));
93
- }, ot = or();
94
- const fr = /* @__PURE__ */ ir(ot);
95
- function Ct(e, t) {
91
+ };
92
+ function Et(e, t) {
96
93
  if (typeof e == "function")
97
94
  return e(t);
98
95
  e != null && (e.current = t);
99
96
  }
100
- function dr(...e) {
97
+ function jt(...e) {
101
98
  return (t) => {
102
99
  let n = !1;
103
100
  const r = e.map((o) => {
104
- const i = Ct(o, t);
101
+ const i = Et(o, t);
105
102
  return !n && typeof i == "function" && (n = !0), i;
106
103
  });
107
104
  if (n)
108
105
  return () => {
109
106
  for (let o = 0; o < r.length; o++) {
110
107
  const i = r[o];
111
- typeof i == "function" ? i() : Ct(e[o], null);
108
+ typeof i == "function" ? i() : Et(e[o], null);
112
109
  }
113
110
  };
114
111
  };
115
112
  }
116
- function q(...e) {
117
- return a.useCallback(dr(...e), e);
113
+ function re(...e) {
114
+ return a.useCallback(jt(...e), e);
118
115
  }
119
116
  // @__NO_SIDE_EFFECTS__
120
- function zt(e) {
121
- const t = /* @__PURE__ */ hr(e), n = a.forwardRef((r, o) => {
122
- const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(mr);
117
+ function Yt(e) {
118
+ const t = /* @__PURE__ */ fr(e), n = a.forwardRef((r, o) => {
119
+ const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(hr);
123
120
  if (u) {
124
121
  const l = u.props.children, f = c.map((d) => d === u ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : d);
125
122
  return /* @__PURE__ */ C(t, { ...s, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
@@ -129,22 +126,22 @@ function zt(e) {
129
126
  return n.displayName = `${e}.Slot`, n;
130
127
  }
131
128
  // @__NO_SIDE_EFFECTS__
132
- function hr(e) {
129
+ function fr(e) {
133
130
  const t = a.forwardRef((n, r) => {
134
- const { children: o, ...i } = n, s = a.isValidElement(o) ? gr(o) : void 0, c = q(s, r);
131
+ const { children: o, ...i } = n;
135
132
  if (a.isValidElement(o)) {
136
- const u = vr(i, o.props);
137
- return o.type !== a.Fragment && (u.ref = c), a.cloneElement(o, u);
133
+ const s = mr(o), c = pr(i, o.props);
134
+ return o.type !== a.Fragment && (c.ref = r ? jt(r, s) : s), a.cloneElement(o, c);
138
135
  }
139
136
  return a.Children.count(o) > 1 ? a.Children.only(null) : null;
140
137
  });
141
138
  return t.displayName = `${e}.SlotClone`, t;
142
139
  }
143
- var pr = Symbol("radix.slottable");
144
- function mr(e) {
145
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === pr;
140
+ var dr = Symbol("radix.slottable");
141
+ function hr(e) {
142
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === dr;
146
143
  }
147
- function vr(e, t) {
144
+ function pr(e, t) {
148
145
  const n = { ...t };
149
146
  for (const r in t) {
150
147
  const o = e[r], i = t[r];
@@ -155,12 +152,12 @@ function vr(e, t) {
155
152
  }
156
153
  return { ...e, ...n };
157
154
  }
158
- function gr(e) {
155
+ function mr(e) {
159
156
  var r, o;
160
157
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
161
158
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
162
159
  }
163
- var yr = [
160
+ var vr = [
164
161
  "a",
165
162
  "button",
166
163
  "div",
@@ -178,17 +175,17 @@ var yr = [
178
175
  "span",
179
176
  "svg",
180
177
  "ul"
181
- ], G = yr.reduce((e, t) => {
182
- const n = /* @__PURE__ */ zt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
178
+ ], q = vr.reduce((e, t) => {
179
+ const n = /* @__PURE__ */ Yt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
183
180
  const { asChild: s, ...c } = o, u = s ? n : t;
184
181
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(u, { ...c, ref: i });
185
182
  });
186
183
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
187
184
  }, {});
188
- function wr(e, t) {
189
- e && ot.flushSync(() => e.dispatchEvent(t));
185
+ function gr(e, t) {
186
+ e && zt.flushSync(() => e.dispatchEvent(t));
190
187
  }
191
- function Yt(e, t = []) {
188
+ function Xt(e, t = []) {
192
189
  let n = [];
193
190
  function r(i, s) {
194
191
  const c = a.createContext(s), u = n.length;
@@ -218,9 +215,9 @@ function Yt(e, t = []) {
218
215
  );
219
216
  };
220
217
  };
221
- return o.scopeName = e, [r, br(o, ...t)];
218
+ return o.scopeName = e, [r, yr(o, ...t)];
222
219
  }
223
- function br(...e) {
220
+ function yr(...e) {
224
221
  const t = e[0];
225
222
  if (e.length === 1) return t;
226
223
  const n = () => {
@@ -238,22 +235,22 @@ function br(...e) {
238
235
  };
239
236
  return n.scopeName = t.scopeName, n;
240
237
  }
241
- function ee(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
238
+ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
242
239
  return function(o) {
243
240
  if (e == null || e(o), n === !1 || !o.defaultPrevented)
244
241
  return t == null ? void 0 : t(o);
245
242
  };
246
243
  }
247
- var te = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
248
- }, xr = a[" useInsertionEffect ".trim().toString()] || te;
249
- function Er({
244
+ var ee = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
245
+ }, wr = a[" useInsertionEffect ".trim().toString()] || ee;
246
+ function br({
250
247
  prop: e,
251
248
  defaultProp: t,
252
249
  onChange: n = () => {
253
250
  },
254
251
  caller: r
255
252
  }) {
256
- const [o, i, s] = Cr({
253
+ const [o, i, s] = xr({
257
254
  defaultProp: t,
258
255
  onChange: n
259
256
  }), c = e !== void 0, u = c ? e : o;
@@ -270,7 +267,7 @@ function Er({
270
267
  (f) => {
271
268
  var d;
272
269
  if (c) {
273
- const p = Pr(f) ? f(e) : f;
270
+ const p = Er(f) ? f(e) : f;
274
271
  p !== e && ((d = s.current) == null || d.call(s, p));
275
272
  } else
276
273
  i(f);
@@ -279,31 +276,31 @@ function Er({
279
276
  );
280
277
  return [u, l];
281
278
  }
282
- function Cr({
279
+ function xr({
283
280
  defaultProp: e,
284
281
  onChange: t
285
282
  }) {
286
283
  const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
287
- return xr(() => {
284
+ return wr(() => {
288
285
  i.current = t;
289
286
  }, [t]), a.useEffect(() => {
290
287
  var s;
291
288
  o.current !== n && ((s = i.current) == null || s.call(i, n), o.current = n);
292
289
  }, [n, o]), [n, r, i];
293
290
  }
294
- function Pr(e) {
291
+ function Er(e) {
295
292
  return typeof e == "function";
296
293
  }
297
- function Ar(e, t) {
294
+ function Cr(e, t) {
298
295
  return a.useReducer((n, r) => t[n][r] ?? n, e);
299
296
  }
300
- var it = (e) => {
301
- const { present: t, children: n } = e, r = Sr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = q(r.ref, Rr(o));
297
+ var ot = (e) => {
298
+ const { present: t, children: n } = e, r = Pr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, Ar(o));
302
299
  return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
303
300
  };
304
- it.displayName = "Presence";
305
- function Sr(e) {
306
- const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = Ar(s, {
301
+ ot.displayName = "Presence";
302
+ function Pr(e) {
303
+ const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = Cr(s, {
307
304
  mounted: {
308
305
  UNMOUNT: "unmounted",
309
306
  ANIMATION_OUT: "unmountSuspended"
@@ -319,13 +316,13 @@ function Sr(e) {
319
316
  return a.useEffect(() => {
320
317
  const l = Ae(r.current);
321
318
  i.current = c === "mounted" ? l : "none";
322
- }, [c]), te(() => {
319
+ }, [c]), ee(() => {
323
320
  const l = r.current, f = o.current;
324
321
  if (f !== e) {
325
322
  const p = i.current, m = Ae(l);
326
323
  e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && p !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
327
324
  }
328
- }, [e, u]), te(() => {
325
+ }, [e, u]), ee(() => {
329
326
  if (t) {
330
327
  let l;
331
328
  const f = t.ownerDocument.defaultView ?? window, d = (m) => {
@@ -354,17 +351,17 @@ function Sr(e) {
354
351
  function Ae(e) {
355
352
  return (e == null ? void 0 : e.animationName) || "none";
356
353
  }
357
- function Rr(e) {
354
+ function Ar(e) {
358
355
  var r, o;
359
356
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
360
357
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
361
358
  }
362
- var Or = a[" useId ".trim().toString()] || (() => {
363
- }), Nr = 0;
364
- function Mr(e) {
365
- const [t, n] = a.useState(Or());
366
- return te(() => {
367
- n((r) => r ?? String(Nr++));
359
+ var Sr = a[" useId ".trim().toString()] || (() => {
360
+ }), Rr = 0;
361
+ function Or(e) {
362
+ const [t, n] = a.useState(Sr());
363
+ return ee(() => {
364
+ n((r) => r ?? String(Rr++));
368
365
  }, [e]), e || (t ? `radix-${t}` : "");
369
366
  }
370
367
  function de(e) {
@@ -376,7 +373,7 @@ function de(e) {
376
373
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
377
374
  }, []);
378
375
  }
379
- function Tr(e, t = globalThis == null ? void 0 : globalThis.document) {
376
+ function Nr(e, t = globalThis == null ? void 0 : globalThis.document) {
380
377
  const n = de(e);
381
378
  a.useEffect(() => {
382
379
  const r = (o) => {
@@ -385,11 +382,11 @@ function Tr(e, t = globalThis == null ? void 0 : globalThis.document) {
385
382
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
386
383
  }, [n, t]);
387
384
  }
388
- var kr = "DismissableLayer", Je = "dismissableLayer.update", Lr = "dismissableLayer.pointerDownOutside", Dr = "dismissableLayer.focusOutside", Pt, Xt = a.createContext({
385
+ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLayer.pointerDownOutside", kr = "dismissableLayer.focusOutside", Ct, Kt = a.createContext({
389
386
  layers: /* @__PURE__ */ new Set(),
390
387
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
391
388
  branches: /* @__PURE__ */ new Set()
392
- }), Kt = a.forwardRef(
389
+ }), Zt = a.forwardRef(
393
390
  (e, t) => {
394
391
  const {
395
392
  disableOutsidePointerEvents: n = !1,
@@ -399,27 +396,27 @@ var kr = "DismissableLayer", Je = "dismissableLayer.update", Lr = "dismissableLa
399
396
  onInteractOutside: s,
400
397
  onDismiss: c,
401
398
  ...u
402
- } = e, l = a.useContext(Xt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = q(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = Ir((P) => {
399
+ } = e, l = a.useContext(Kt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = re(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = _r((P) => {
403
400
  const R = P.target, N = [...l.branches].some((O) => O.contains(R));
404
401
  !w || N || (o == null || o(P), s == null || s(P), P.defaultPrevented || c == null || c());
405
- }, p), A = Wr((P) => {
402
+ }, p), A = Fr((P) => {
406
403
  const R = P.target;
407
404
  [...l.branches].some((O) => O.contains(R)) || (i == null || i(P), s == null || s(P), P.defaultPrevented || c == null || c());
408
405
  }, p);
409
- return Tr((P) => {
406
+ return Nr((P) => {
410
407
  x === l.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
411
408
  }, p), a.useEffect(() => {
412
409
  if (f)
413
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Pt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), At(), () => {
414
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Pt);
410
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ct = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Pt(), () => {
411
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Ct);
415
412
  };
416
413
  }, [f, p, n, l]), a.useEffect(() => () => {
417
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), At());
414
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Pt());
418
415
  }, [f, l]), a.useEffect(() => {
419
416
  const P = () => m({});
420
417
  return document.addEventListener(Je, P), () => document.removeEventListener(Je, P);
421
418
  }, []), /* @__PURE__ */ C(
422
- G.div,
419
+ q.div,
423
420
  {
424
421
  ...u,
425
422
  ref: g,
@@ -427,9 +424,9 @@ var kr = "DismissableLayer", Je = "dismissableLayer.update", Lr = "dismissableLa
427
424
  pointerEvents: b ? w ? "auto" : "none" : void 0,
428
425
  ...e.style
429
426
  },
430
- onFocusCapture: ee(e.onFocusCapture, A.onFocusCapture),
431
- onBlurCapture: ee(e.onBlurCapture, A.onBlurCapture),
432
- onPointerDownCapture: ee(
427
+ onFocusCapture: J(e.onFocusCapture, A.onFocusCapture),
428
+ onBlurCapture: J(e.onBlurCapture, A.onBlurCapture),
429
+ onPointerDownCapture: J(
433
430
  e.onPointerDownCapture,
434
431
  E.onPointerDownCapture
435
432
  )
@@ -437,27 +434,27 @@ var kr = "DismissableLayer", Je = "dismissableLayer.update", Lr = "dismissableLa
437
434
  );
438
435
  }
439
436
  );
440
- Kt.displayName = kr;
441
- var _r = "DismissableLayerBranch", Fr = a.forwardRef((e, t) => {
442
- const n = a.useContext(Xt), r = a.useRef(null), o = q(t, r);
437
+ Zt.displayName = Mr;
438
+ var Lr = "DismissableLayerBranch", Dr = a.forwardRef((e, t) => {
439
+ const n = a.useContext(Kt), r = a.useRef(null), o = re(t, r);
443
440
  return a.useEffect(() => {
444
441
  const i = r.current;
445
442
  if (i)
446
443
  return n.branches.add(i), () => {
447
444
  n.branches.delete(i);
448
445
  };
449
- }, [n.branches]), /* @__PURE__ */ C(G.div, { ...e, ref: o });
446
+ }, [n.branches]), /* @__PURE__ */ C(q.div, { ...e, ref: o });
450
447
  });
451
- Fr.displayName = _r;
452
- function Ir(e, t = globalThis == null ? void 0 : globalThis.document) {
448
+ Dr.displayName = Lr;
449
+ function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
453
450
  const n = de(e), r = a.useRef(!1), o = a.useRef(() => {
454
451
  });
455
452
  return a.useEffect(() => {
456
453
  const i = (c) => {
457
454
  if (c.target && !r.current) {
458
455
  let u = function() {
459
- Zt(
460
- Lr,
456
+ qt(
457
+ Tr,
461
458
  n,
462
459
  l,
463
460
  { discrete: !0 }
@@ -479,11 +476,11 @@ function Ir(e, t = globalThis == null ? void 0 : globalThis.document) {
479
476
  onPointerDownCapture: () => r.current = !0
480
477
  };
481
478
  }
482
- function Wr(e, t = globalThis == null ? void 0 : globalThis.document) {
479
+ function Fr(e, t = globalThis == null ? void 0 : globalThis.document) {
483
480
  const n = de(e), r = a.useRef(!1);
484
481
  return a.useEffect(() => {
485
482
  const o = (i) => {
486
- i.target && !r.current && Zt(Dr, n, { originalEvent: i }, {
483
+ i.target && !r.current && qt(kr, n, { originalEvent: i }, {
487
484
  discrete: !1
488
485
  });
489
486
  };
@@ -493,22 +490,22 @@ function Wr(e, t = globalThis == null ? void 0 : globalThis.document) {
493
490
  onBlurCapture: () => r.current = !1
494
491
  };
495
492
  }
496
- function At() {
493
+ function Pt() {
497
494
  const e = new CustomEvent(Je);
498
495
  document.dispatchEvent(e);
499
496
  }
500
- function Zt(e, t, n, { discrete: r }) {
497
+ function qt(e, t, n, { discrete: r }) {
501
498
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
502
- t && o.addEventListener(e, t, { once: !0 }), r ? wr(o, i) : o.dispatchEvent(i);
499
+ t && o.addEventListener(e, t, { once: !0 }), r ? gr(o, i) : o.dispatchEvent(i);
503
500
  }
504
- var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", St = { bubbles: !1, cancelable: !0 }, Br = "FocusScope", qt = a.forwardRef((e, t) => {
501
+ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At = { bubbles: !1, cancelable: !0 }, Ir = "FocusScope", Gt = a.forwardRef((e, t) => {
505
502
  const {
506
503
  loop: n = !1,
507
504
  trapped: r = !1,
508
505
  onMountAutoFocus: o,
509
506
  onUnmountAutoFocus: i,
510
507
  ...s
511
- } = e, [c, u] = a.useState(null), l = de(o), f = de(i), d = a.useRef(null), p = q(t, (h) => u(h)), m = a.useRef({
508
+ } = e, [c, u] = a.useState(null), l = de(o), f = de(i), d = a.useRef(null), p = re(t, (h) => u(h)), m = a.useRef({
512
509
  paused: !1,
513
510
  pause() {
514
511
  this.paused = !0;
@@ -522,15 +519,15 @@ var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", St
522
519
  let h = function(b) {
523
520
  if (m.paused || !c) return;
524
521
  const w = b.target;
525
- c.contains(w) ? d.current = w : Q(d.current, { select: !0 });
522
+ c.contains(w) ? d.current = w : G(d.current, { select: !0 });
526
523
  }, v = function(b) {
527
524
  if (m.paused || !c) return;
528
525
  const w = b.relatedTarget;
529
- w !== null && (c.contains(w) || Q(d.current, { select: !0 }));
526
+ w !== null && (c.contains(w) || G(d.current, { select: !0 }));
530
527
  }, y = function(b) {
531
528
  if (document.activeElement === document.body)
532
529
  for (const E of b)
533
- E.removedNodes.length > 0 && Q(c);
530
+ E.removedNodes.length > 0 && G(c);
534
531
  };
535
532
  document.addEventListener("focusin", h), document.addEventListener("focusout", v);
536
533
  const x = new MutationObserver(y);
@@ -540,16 +537,16 @@ var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", St
540
537
  }
541
538
  }, [r, c, m.paused]), a.useEffect(() => {
542
539
  if (c) {
543
- Ot.add(m);
540
+ Rt.add(m);
544
541
  const h = document.activeElement;
545
542
  if (!c.contains(h)) {
546
- const y = new CustomEvent(je, St);
547
- c.addEventListener(je, l), c.dispatchEvent(y), y.defaultPrevented || ($r(zr(Gt(c)), { select: !0 }), document.activeElement === h && Q(c));
543
+ const y = new CustomEvent(Ue, At);
544
+ c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (Wr(Ur(Qt(c)), { select: !0 }), document.activeElement === h && G(c));
548
545
  }
549
546
  return () => {
550
- c.removeEventListener(je, l), setTimeout(() => {
551
- const y = new CustomEvent(Ue, St);
552
- c.addEventListener(Ue, f), c.dispatchEvent(y), y.defaultPrevented || Q(h ?? document.body, { select: !0 }), c.removeEventListener(Ue, f), Ot.remove(m);
547
+ c.removeEventListener(Ue, l), setTimeout(() => {
548
+ const y = new CustomEvent(ze, At);
549
+ c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || G(h ?? document.body, { select: !0 }), c.removeEventListener(ze, f), Rt.remove(m);
553
550
  }, 0);
554
551
  };
555
552
  }
@@ -559,25 +556,25 @@ var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", St
559
556
  if (!n && !r || m.paused) return;
560
557
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
561
558
  if (v && y) {
562
- const x = h.currentTarget, [b, w] = Hr(x);
563
- b && w ? !h.shiftKey && y === w ? (h.preventDefault(), n && Q(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && Q(w, { select: !0 })) : y === x && h.preventDefault();
559
+ const x = h.currentTarget, [b, w] = Br(x);
560
+ b && w ? !h.shiftKey && y === w ? (h.preventDefault(), n && G(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && G(w, { select: !0 })) : y === x && h.preventDefault();
564
561
  }
565
562
  },
566
563
  [n, r, m.paused]
567
564
  );
568
- return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
565
+ return /* @__PURE__ */ C(q.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
569
566
  });
570
- qt.displayName = Br;
571
- function $r(e, { select: t = !1 } = {}) {
567
+ Gt.displayName = Ir;
568
+ function Wr(e, { select: t = !1 } = {}) {
572
569
  const n = document.activeElement;
573
570
  for (const r of e)
574
- if (Q(r, { select: t }), document.activeElement !== n) return;
571
+ if (G(r, { select: t }), document.activeElement !== n) return;
575
572
  }
576
- function Hr(e) {
577
- const t = Gt(e), n = Rt(t, e), r = Rt(t.reverse(), e);
573
+ function Br(e) {
574
+ const t = Qt(e), n = St(t, e), r = St(t.reverse(), e);
578
575
  return [n, r];
579
576
  }
580
- function Gt(e) {
577
+ function Qt(e) {
581
578
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
582
579
  acceptNode: (r) => {
583
580
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -587,11 +584,11 @@ function Gt(e) {
587
584
  for (; n.nextNode(); ) t.push(n.currentNode);
588
585
  return t;
589
586
  }
590
- function Rt(e, t) {
587
+ function St(e, t) {
591
588
  for (const n of e)
592
- if (!Vr(n, { upTo: t })) return n;
589
+ if (!$r(n, { upTo: t })) return n;
593
590
  }
594
- function Vr(e, { upTo: t }) {
591
+ function $r(e, { upTo: t }) {
595
592
  if (getComputedStyle(e).visibility === "hidden") return !0;
596
593
  for (; e; ) {
597
594
  if (t !== void 0 && e === t) return !1;
@@ -600,67 +597,67 @@ function Vr(e, { upTo: t }) {
600
597
  }
601
598
  return !1;
602
599
  }
603
- function jr(e) {
600
+ function Hr(e) {
604
601
  return e instanceof HTMLInputElement && "select" in e;
605
602
  }
606
- function Q(e, { select: t = !1 } = {}) {
603
+ function G(e, { select: t = !1 } = {}) {
607
604
  if (e && e.focus) {
608
605
  const n = document.activeElement;
609
- e.focus({ preventScroll: !0 }), e !== n && jr(e) && t && e.select();
606
+ e.focus({ preventScroll: !0 }), e !== n && Hr(e) && t && e.select();
610
607
  }
611
608
  }
612
- var Ot = Ur();
613
- function Ur() {
609
+ var Rt = Vr();
610
+ function Vr() {
614
611
  let e = [];
615
612
  return {
616
613
  add(t) {
617
614
  const n = e[0];
618
- t !== n && (n == null || n.pause()), e = Nt(e, t), e.unshift(t);
615
+ t !== n && (n == null || n.pause()), e = Ot(e, t), e.unshift(t);
619
616
  },
620
617
  remove(t) {
621
618
  var n;
622
- e = Nt(e, t), (n = e[0]) == null || n.resume();
619
+ e = Ot(e, t), (n = e[0]) == null || n.resume();
623
620
  }
624
621
  };
625
622
  }
626
- function Nt(e, t) {
623
+ function Ot(e, t) {
627
624
  const n = [...e], r = n.indexOf(t);
628
625
  return r !== -1 && n.splice(r, 1), n;
629
626
  }
630
- function zr(e) {
627
+ function Ur(e) {
631
628
  return e.filter((t) => t.tagName !== "A");
632
629
  }
633
- var Yr = "Portal", Qt = a.forwardRef((e, t) => {
630
+ var zr = "Portal", Jt = a.forwardRef((e, t) => {
634
631
  var c;
635
632
  const { container: n, ...r } = e, [o, i] = a.useState(!1);
636
- te(() => i(!0), []);
633
+ ee(() => i(!0), []);
637
634
  const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
638
- return s ? fr.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
635
+ return s ? ir.createPortal(/* @__PURE__ */ C(q.div, { ...r, ref: t }), s) : null;
639
636
  });
640
- Qt.displayName = Yr;
641
- var ze = 0;
642
- function Xr() {
637
+ Jt.displayName = zr;
638
+ var je = 0;
639
+ function jr() {
643
640
  a.useEffect(() => {
644
641
  const e = document.querySelectorAll("[data-radix-focus-guard]");
645
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mt()), ze++, () => {
646
- ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
642
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nt()), je++, () => {
643
+ je === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), je--;
647
644
  };
648
645
  }, []);
649
646
  }
650
- function Mt() {
647
+ function Nt() {
651
648
  const e = document.createElement("span");
652
649
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
653
650
  }
654
- var j = function() {
655
- return j = Object.assign || function(t) {
651
+ var U = function() {
652
+ return U = Object.assign || function(t) {
656
653
  for (var n, r = 1, o = arguments.length; r < o; r++) {
657
654
  n = arguments[r];
658
655
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
659
656
  }
660
657
  return t;
661
- }, j.apply(this, arguments);
658
+ }, U.apply(this, arguments);
662
659
  };
663
- function Jt(e, t) {
660
+ function en(e, t) {
664
661
  var n = {};
665
662
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
666
663
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -668,17 +665,17 @@ function Jt(e, t) {
668
665
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
669
666
  return n;
670
667
  }
671
- function Kr(e, t, n) {
668
+ function Yr(e, t, n) {
672
669
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
673
670
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
674
671
  return e.concat(i || Array.prototype.slice.call(t));
675
672
  }
676
- var Te = "right-scroll-bar-position", ke = "width-before-scroll-bar", Zr = "with-scroll-bars-hidden", qr = "--removed-body-scroll-bar-size";
673
+ var Te = "right-scroll-bar-position", ke = "width-before-scroll-bar", Xr = "with-scroll-bars-hidden", Kr = "--removed-body-scroll-bar-size";
677
674
  function Ye(e, t) {
678
675
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
679
676
  }
680
- function Gr(e, t) {
681
- var n = Qn(function() {
677
+ function Zr(e, t) {
678
+ var n = Jn(function() {
682
679
  return {
683
680
  // value
684
681
  value: e,
@@ -698,15 +695,15 @@ function Gr(e, t) {
698
695
  })[0];
699
696
  return n.callback = t, n.facade;
700
697
  }
701
- var Qr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Tt = /* @__PURE__ */ new WeakMap();
702
- function Jr(e, t) {
703
- var n = Gr(null, function(r) {
698
+ var qr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Mt = /* @__PURE__ */ new WeakMap();
699
+ function Gr(e, t) {
700
+ var n = Zr(null, function(r) {
704
701
  return e.forEach(function(o) {
705
702
  return Ye(o, r);
706
703
  });
707
704
  });
708
- return Qr(function() {
709
- var r = Tt.get(n);
705
+ return qr(function() {
706
+ var r = Mt.get(n);
710
707
  if (r) {
711
708
  var o = new Set(r), i = new Set(e), s = n.current;
712
709
  o.forEach(function(c) {
@@ -715,14 +712,14 @@ function Jr(e, t) {
715
712
  o.has(c) || Ye(c, s);
716
713
  });
717
714
  }
718
- Tt.set(n, e);
715
+ Mt.set(n, e);
719
716
  }, [e]), n;
720
717
  }
721
- function eo(e) {
718
+ function Qr(e) {
722
719
  return e;
723
720
  }
724
- function to(e, t) {
725
- t === void 0 && (t = eo);
721
+ function Jr(e, t) {
722
+ t === void 0 && (t = Qr);
726
723
  var n = [], r = !1, o = {
727
724
  read: function() {
728
725
  if (r)
@@ -776,36 +773,36 @@ function to(e, t) {
776
773
  };
777
774
  return o;
778
775
  }
779
- function no(e) {
776
+ function eo(e) {
780
777
  e === void 0 && (e = {});
781
- var t = to(null);
782
- return t.options = j({ async: !0, ssr: !1 }, e), t;
778
+ var t = Jr(null);
779
+ return t.options = U({ async: !0, ssr: !1 }, e), t;
783
780
  }
784
- var en = function(e) {
785
- var t = e.sideCar, n = Jt(e, ["sideCar"]);
781
+ var tn = function(e) {
782
+ var t = e.sideCar, n = en(e, ["sideCar"]);
786
783
  if (!t)
787
784
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
788
785
  var r = t.read();
789
786
  if (!r)
790
787
  throw new Error("Sidecar medium not found");
791
- return a.createElement(r, j({}, n));
788
+ return a.createElement(r, U({}, n));
792
789
  };
793
- en.isSideCarExport = !0;
794
- function ro(e, t) {
795
- return e.useMedium(t), en;
790
+ tn.isSideCarExport = !0;
791
+ function to(e, t) {
792
+ return e.useMedium(t), tn;
796
793
  }
797
- var tn = no(), Xe = function() {
794
+ var nn = eo(), Xe = function() {
798
795
  }, We = a.forwardRef(function(e, t) {
799
796
  var n = a.useRef(null), r = a.useState({
800
797
  onScrollCapture: Xe,
801
798
  onWheelCapture: Xe,
802
799
  onTouchMoveCapture: Xe
803
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = Jt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Jr([n, t]), P = j(j({}, w), o);
800
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = en(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Gr([n, t]), P = U(U({}, w), o);
804
801
  return a.createElement(
805
802
  a.Fragment,
806
803
  null,
807
- f && a.createElement(E, { sideCar: tn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
808
- s ? a.cloneElement(a.Children.only(c), j(j({}, P), { ref: A })) : a.createElement(x, j({}, P, { className: u, ref: A }), c)
804
+ f && a.createElement(E, { sideCar: nn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
805
+ s ? a.cloneElement(a.Children.only(c), U(U({}, P), { ref: A })) : a.createElement(x, U({}, P, { className: u, ref: A }), c)
809
806
  );
810
807
  });
811
808
  We.defaultProps = {
@@ -817,37 +814,37 @@ We.classNames = {
817
814
  fullWidth: ke,
818
815
  zeroRight: Te
819
816
  };
820
- var oo = function() {
817
+ var no = function() {
821
818
  if (typeof __webpack_nonce__ < "u")
822
819
  return __webpack_nonce__;
823
820
  };
824
- function io() {
821
+ function ro() {
825
822
  if (!document)
826
823
  return null;
827
824
  var e = document.createElement("style");
828
825
  e.type = "text/css";
829
- var t = oo();
826
+ var t = no();
830
827
  return t && e.setAttribute("nonce", t), e;
831
828
  }
832
- function so(e, t) {
829
+ function oo(e, t) {
833
830
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
834
831
  }
835
- function co(e) {
832
+ function io(e) {
836
833
  var t = document.head || document.getElementsByTagName("head")[0];
837
834
  t.appendChild(e);
838
835
  }
839
- var ao = function() {
836
+ var so = function() {
840
837
  var e = 0, t = null;
841
838
  return {
842
839
  add: function(n) {
843
- e == 0 && (t = io()) && (so(t, n), co(t)), e++;
840
+ e == 0 && (t = ro()) && (oo(t, n), io(t)), e++;
844
841
  },
845
842
  remove: function() {
846
843
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
847
844
  }
848
845
  };
849
- }, lo = function() {
850
- var e = ao();
846
+ }, co = function() {
847
+ var e = so();
851
848
  return function(t, n) {
852
849
  a.useEffect(function() {
853
850
  return e.add(t), function() {
@@ -855,36 +852,36 @@ var ao = function() {
855
852
  };
856
853
  }, [t && n]);
857
854
  };
858
- }, nn = function() {
859
- var e = lo(), t = function(n) {
855
+ }, rn = function() {
856
+ var e = co(), t = function(n) {
860
857
  var r = n.styles, o = n.dynamic;
861
858
  return e(r, o), null;
862
859
  };
863
860
  return t;
864
- }, uo = {
861
+ }, ao = {
865
862
  left: 0,
866
863
  top: 0,
867
864
  right: 0,
868
865
  gap: 0
869
866
  }, Ke = function(e) {
870
867
  return parseInt(e || "", 10) || 0;
871
- }, fo = function(e) {
868
+ }, lo = function(e) {
872
869
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
873
870
  return [Ke(n), Ke(r), Ke(o)];
874
- }, ho = function(e) {
871
+ }, uo = function(e) {
875
872
  if (e === void 0 && (e = "margin"), typeof window > "u")
876
- return uo;
877
- var t = fo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
873
+ return ao;
874
+ var t = lo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
878
875
  return {
879
876
  left: t[0],
880
877
  top: t[1],
881
878
  right: t[2],
882
879
  gap: Math.max(0, r - n + t[2] - t[0])
883
880
  };
884
- }, po = nn(), ue = "data-scroll-locked", mo = function(e, t, n, r) {
881
+ }, fo = rn(), ue = "data-scroll-locked", ho = function(e, t, n, r) {
885
882
  var o = e.left, i = e.top, s = e.right, c = e.gap;
886
883
  return n === void 0 && (n = "margin"), `
887
- .`.concat(Zr, ` {
884
+ .`.concat(Xr, ` {
888
885
  overflow: hidden `).concat(r, `;
889
886
  padding-right: `).concat(c, "px ").concat(r, `;
890
887
  }
@@ -922,26 +919,26 @@ var ao = function() {
922
919
  }
923
920
 
924
921
  body[`).concat(ue, `] {
925
- `).concat(qr, ": ").concat(c, `px;
922
+ `).concat(Kr, ": ").concat(c, `px;
926
923
  }
927
924
  `);
928
- }, kt = function() {
925
+ }, Tt = function() {
929
926
  var e = parseInt(document.body.getAttribute(ue) || "0", 10);
930
927
  return isFinite(e) ? e : 0;
931
- }, vo = function() {
928
+ }, po = function() {
932
929
  a.useEffect(function() {
933
- return document.body.setAttribute(ue, (kt() + 1).toString()), function() {
934
- var e = kt() - 1;
930
+ return document.body.setAttribute(ue, (Tt() + 1).toString()), function() {
931
+ var e = Tt() - 1;
935
932
  e <= 0 ? document.body.removeAttribute(ue) : document.body.setAttribute(ue, e.toString());
936
933
  };
937
934
  }, []);
938
- }, go = function(e) {
935
+ }, mo = function(e) {
939
936
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
940
- vo();
937
+ po();
941
938
  var i = a.useMemo(function() {
942
- return ho(o);
939
+ return uo(o);
943
940
  }, [o]);
944
- return a.createElement(po, { styles: mo(i, !t, o, n ? "" : "!important") });
941
+ return a.createElement(fo, { styles: ho(i, !t, o, n ? "" : "!important") });
945
942
  }, et = !1;
946
943
  if (typeof window < "u")
947
944
  try {
@@ -954,59 +951,59 @@ if (typeof window < "u")
954
951
  } catch {
955
952
  et = !1;
956
953
  }
957
- var ce = et ? { passive: !1 } : !1, yo = function(e) {
954
+ var ce = et ? { passive: !1 } : !1, vo = function(e) {
958
955
  return e.tagName === "TEXTAREA";
959
- }, rn = function(e, t) {
956
+ }, on = function(e, t) {
960
957
  if (!(e instanceof Element))
961
958
  return !1;
962
959
  var n = window.getComputedStyle(e);
963
960
  return (
964
961
  // not-not-scrollable
965
962
  n[t] !== "hidden" && // contains scroll inside self
966
- !(n.overflowY === n.overflowX && !yo(e) && n[t] === "visible")
963
+ !(n.overflowY === n.overflowX && !vo(e) && n[t] === "visible")
967
964
  );
968
- }, wo = function(e) {
969
- return rn(e, "overflowY");
970
- }, bo = function(e) {
971
- return rn(e, "overflowX");
972
- }, Lt = function(e, t) {
965
+ }, go = function(e) {
966
+ return on(e, "overflowY");
967
+ }, yo = function(e) {
968
+ return on(e, "overflowX");
969
+ }, kt = function(e, t) {
973
970
  var n = t.ownerDocument, r = t;
974
971
  do {
975
972
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
976
- var o = on(e, r);
973
+ var o = sn(e, r);
977
974
  if (o) {
978
- var i = sn(e, r), s = i[1], c = i[2];
975
+ var i = cn(e, r), s = i[1], c = i[2];
979
976
  if (s > c)
980
977
  return !0;
981
978
  }
982
979
  r = r.parentNode;
983
980
  } while (r && r !== n.body);
984
981
  return !1;
985
- }, xo = function(e) {
982
+ }, wo = function(e) {
986
983
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
987
984
  return [
988
985
  t,
989
986
  n,
990
987
  r
991
988
  ];
992
- }, Eo = function(e) {
989
+ }, bo = function(e) {
993
990
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
994
991
  return [
995
992
  t,
996
993
  n,
997
994
  r
998
995
  ];
999
- }, on = function(e, t) {
1000
- return e === "v" ? wo(t) : bo(t);
1001
996
  }, sn = function(e, t) {
1002
- return e === "v" ? xo(t) : Eo(t);
1003
- }, Co = function(e, t) {
997
+ return e === "v" ? go(t) : yo(t);
998
+ }, cn = function(e, t) {
999
+ return e === "v" ? wo(t) : bo(t);
1000
+ }, xo = function(e, t) {
1004
1001
  return e === "h" && t === "rtl" ? -1 : 1;
1005
- }, Po = function(e, t, n, r, o) {
1006
- var i = Co(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, p = 0;
1002
+ }, Eo = function(e, t, n, r, o) {
1003
+ var i = xo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, p = 0;
1007
1004
  do {
1008
- var m = sn(e, c), g = m[0], h = m[1], v = m[2], y = h - v - i * g;
1009
- (g || y) && on(e, c) && (d += y, p += g), c = c.parentNode.host || c.parentNode;
1005
+ var m = cn(e, c), g = m[0], h = m[1], v = m[2], y = h - v - i * g;
1006
+ (g || y) && sn(e, c) && (d += y, p += g), c = c.parentNode.host || c.parentNode;
1010
1007
  } while (
1011
1008
  // portaled content
1012
1009
  !u && c !== document.body || // self content
@@ -1015,26 +1012,26 @@ var ce = et ? { passive: !1 } : !1, yo = function(e) {
1015
1012
  return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (l = !0), l;
1016
1013
  }, Re = function(e) {
1017
1014
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1018
- }, Dt = function(e) {
1015
+ }, Lt = function(e) {
1019
1016
  return [e.deltaX, e.deltaY];
1020
- }, _t = function(e) {
1017
+ }, Dt = function(e) {
1021
1018
  return e && "current" in e ? e.current : e;
1022
- }, Ao = function(e, t) {
1019
+ }, Co = function(e, t) {
1023
1020
  return e[0] === t[0] && e[1] === t[1];
1024
- }, So = function(e) {
1021
+ }, Po = function(e) {
1025
1022
  return `
1026
1023
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1027
1024
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1028
1025
  `);
1029
- }, Ro = 0, ae = [];
1030
- function Oo(e) {
1031
- var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ro++)[0], i = a.useState(nn)[0], s = a.useRef(e);
1026
+ }, Ao = 0, ae = [];
1027
+ function So(e) {
1028
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ao++)[0], i = a.useState(rn)[0], s = a.useRef(e);
1032
1029
  a.useEffect(function() {
1033
1030
  s.current = e;
1034
1031
  }, [e]), a.useEffect(function() {
1035
1032
  if (e.inert) {
1036
1033
  document.body.classList.add("block-interactivity-".concat(o));
1037
- var h = Kr([e.lockRef.current], (e.shards || []).map(_t), !0).filter(Boolean);
1034
+ var h = Yr([e.lockRef.current], (e.shards || []).map(Dt), !0).filter(Boolean);
1038
1035
  return h.forEach(function(v) {
1039
1036
  return v.classList.add("allow-interactivity-".concat(o));
1040
1037
  }), function() {
@@ -1050,34 +1047,34 @@ function Oo(e) {
1050
1047
  var y = Re(h), x = n.current, b = "deltaX" in h ? h.deltaX : x[0] - y[0], w = "deltaY" in h ? h.deltaY : x[1] - y[1], E, A = h.target, P = Math.abs(b) > Math.abs(w) ? "h" : "v";
1051
1048
  if ("touches" in h && P === "h" && A.type === "range")
1052
1049
  return !1;
1053
- var R = Lt(P, A);
1050
+ var R = kt(P, A);
1054
1051
  if (!R)
1055
1052
  return !0;
1056
- if (R ? E = P : (E = P === "v" ? "h" : "v", R = Lt(P, A)), !R)
1053
+ if (R ? E = P : (E = P === "v" ? "h" : "v", R = kt(P, A)), !R)
1057
1054
  return !1;
1058
1055
  if (!r.current && "changedTouches" in h && (b || w) && (r.current = E), !E)
1059
1056
  return !0;
1060
1057
  var N = r.current || E;
1061
- return Po(N, v, h, N === "h" ? b : w);
1058
+ return Eo(N, v, h, N === "h" ? b : w);
1062
1059
  }, []), u = a.useCallback(function(h) {
1063
1060
  var v = h;
1064
1061
  if (!(!ae.length || ae[ae.length - 1] !== i)) {
1065
- var y = "deltaY" in v ? Dt(v) : Re(v), x = t.current.filter(function(E) {
1066
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Ao(E.delta, y);
1062
+ var y = "deltaY" in v ? Lt(v) : Re(v), x = t.current.filter(function(E) {
1063
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Co(E.delta, y);
1067
1064
  })[0];
1068
1065
  if (x && x.should) {
1069
1066
  v.cancelable && v.preventDefault();
1070
1067
  return;
1071
1068
  }
1072
1069
  if (!x) {
1073
- var b = (s.current.shards || []).map(_t).filter(Boolean).filter(function(E) {
1070
+ var b = (s.current.shards || []).map(Dt).filter(Boolean).filter(function(E) {
1074
1071
  return E.contains(v.target);
1075
1072
  }), w = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
1076
1073
  w && v.cancelable && v.preventDefault();
1077
1074
  }
1078
1075
  }
1079
1076
  }, []), l = a.useCallback(function(h, v, y, x) {
1080
- var b = { name: h, delta: v, target: y, should: x, shadowParent: No(y) };
1077
+ var b = { name: h, delta: v, target: y, should: x, shadowParent: Ro(y) };
1081
1078
  t.current.push(b), setTimeout(function() {
1082
1079
  t.current = t.current.filter(function(w) {
1083
1080
  return w !== b;
@@ -1086,7 +1083,7 @@ function Oo(e) {
1086
1083
  }, []), f = a.useCallback(function(h) {
1087
1084
  n.current = Re(h), r.current = void 0;
1088
1085
  }, []), d = a.useCallback(function(h) {
1089
- l(h.type, Dt(h), h.target, c(h, e.lockRef.current));
1086
+ l(h.type, Lt(h), h.target, c(h, e.lockRef.current));
1090
1087
  }, []), p = a.useCallback(function(h) {
1091
1088
  l(h.type, Re(h), h.target, c(h, e.lockRef.current));
1092
1089
  }, []);
@@ -1105,38 +1102,38 @@ function Oo(e) {
1105
1102
  return a.createElement(
1106
1103
  a.Fragment,
1107
1104
  null,
1108
- g ? a.createElement(i, { styles: So(o) }) : null,
1109
- m ? a.createElement(go, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1105
+ g ? a.createElement(i, { styles: Po(o) }) : null,
1106
+ m ? a.createElement(mo, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1110
1107
  );
1111
1108
  }
1112
- function No(e) {
1109
+ function Ro(e) {
1113
1110
  for (var t = null; e !== null; )
1114
1111
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1115
1112
  return t;
1116
1113
  }
1117
- const Mo = ro(tn, Oo);
1118
- var cn = a.forwardRef(function(e, t) {
1119
- return a.createElement(We, j({}, e, { ref: t, sideCar: Mo }));
1114
+ const Oo = to(nn, So);
1115
+ var an = a.forwardRef(function(e, t) {
1116
+ return a.createElement(We, U({}, e, { ref: t, sideCar: Oo }));
1120
1117
  });
1121
- cn.classNames = We.classNames;
1122
- var To = function(e) {
1118
+ an.classNames = We.classNames;
1119
+ var No = function(e) {
1123
1120
  if (typeof document > "u")
1124
1121
  return null;
1125
1122
  var t = Array.isArray(e) ? e[0] : e;
1126
1123
  return t.ownerDocument.body;
1127
- }, le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, Ze = 0, an = function(e) {
1128
- return e && (e.host || an(e.parentNode));
1129
- }, ko = function(e, t) {
1124
+ }, le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, Ze = 0, ln = function(e) {
1125
+ return e && (e.host || ln(e.parentNode));
1126
+ }, Mo = function(e, t) {
1130
1127
  return t.map(function(n) {
1131
1128
  if (e.contains(n))
1132
1129
  return n;
1133
- var r = an(n);
1130
+ var r = ln(n);
1134
1131
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1135
1132
  }).filter(function(n) {
1136
1133
  return !!n;
1137
1134
  });
1138
- }, Lo = function(e, t, n, r) {
1139
- var o = ko(t, Array.isArray(e) ? e : [e]);
1135
+ }, To = function(e, t, n, r) {
1136
+ var o = Mo(t, Array.isArray(e) ? e : [e]);
1140
1137
  Ne[n] || (Ne[n] = /* @__PURE__ */ new WeakMap());
1141
1138
  var i = Ne[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
1142
1139
  !d || c.has(d) || (c.add(d), l(d.parentNode));
@@ -1161,16 +1158,16 @@ var To = function(e) {
1161
1158
  le.set(d, p), i.set(d, m), p || (Oe.has(d) || d.removeAttribute(r), Oe.delete(d)), m || d.removeAttribute(n);
1162
1159
  }), Ze--, Ze || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {});
1163
1160
  };
1164
- }, Do = function(e, t, n) {
1161
+ }, ko = function(e, t, n) {
1165
1162
  n === void 0 && (n = "data-aria-hidden");
1166
- var r = Array.from(Array.isArray(e) ? e : [e]), o = To(e);
1167
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Lo(r, o, n, "aria-hidden")) : function() {
1163
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = No(e);
1164
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), To(r, o, n, "aria-hidden")) : function() {
1168
1165
  return null;
1169
1166
  };
1170
1167
  };
1171
- function _o(e) {
1168
+ function Lo(e) {
1172
1169
  const [t, n] = a.useState(void 0);
1173
- return te(() => {
1170
+ return ee(() => {
1174
1171
  if (e) {
1175
1172
  n({ width: e.offsetWidth, height: e.offsetHeight });
1176
1173
  const r = new ResizeObserver((o) => {
@@ -1190,20 +1187,20 @@ function _o(e) {
1190
1187
  n(void 0);
1191
1188
  }, [e]), t;
1192
1189
  }
1193
- const Fo = ["top", "right", "bottom", "left"], ne = Math.min, B = Math.max, De = Math.round, Me = Math.floor, U = (e) => ({
1190
+ const Do = ["top", "right", "bottom", "left"], te = Math.min, B = Math.max, De = Math.round, Me = Math.floor, z = (e) => ({
1194
1191
  x: e,
1195
1192
  y: e
1196
- }), Io = {
1193
+ }), _o = {
1197
1194
  left: "right",
1198
1195
  right: "left",
1199
1196
  bottom: "top",
1200
1197
  top: "bottom"
1201
- }, Wo = {
1198
+ }, Fo = {
1202
1199
  start: "end",
1203
1200
  end: "start"
1204
1201
  };
1205
1202
  function tt(e, t, n) {
1206
- return B(e, ne(t, n));
1203
+ return B(e, te(t, n));
1207
1204
  }
1208
1205
  function K(e, t) {
1209
1206
  return typeof e == "function" ? e(t) : e;
@@ -1214,32 +1211,32 @@ function Z(e) {
1214
1211
  function me(e) {
1215
1212
  return e.split("-")[1];
1216
1213
  }
1217
- function st(e) {
1214
+ function it(e) {
1218
1215
  return e === "x" ? "y" : "x";
1219
1216
  }
1220
- function ct(e) {
1217
+ function st(e) {
1221
1218
  return e === "y" ? "height" : "width";
1222
1219
  }
1223
1220
  function X(e) {
1224
1221
  return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
1225
1222
  }
1226
- function at(e) {
1227
- return st(X(e));
1223
+ function ct(e) {
1224
+ return it(X(e));
1228
1225
  }
1229
- function Bo(e, t, n) {
1226
+ function Io(e, t, n) {
1230
1227
  n === void 0 && (n = !1);
1231
- const r = me(e), o = at(e), i = ct(o);
1228
+ const r = me(e), o = ct(e), i = st(o);
1232
1229
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1233
1230
  return t.reference[i] > t.floating[i] && (s = _e(s)), [s, _e(s)];
1234
1231
  }
1235
- function $o(e) {
1232
+ function Wo(e) {
1236
1233
  const t = _e(e);
1237
1234
  return [nt(e), t, nt(t)];
1238
1235
  }
1239
1236
  function nt(e) {
1240
- return e.replace(/start|end/g, (t) => Wo[t]);
1237
+ return e.replace(/start|end/g, (t) => Fo[t]);
1241
1238
  }
1242
- function Ho(e, t, n) {
1239
+ function Bo(e, t, n) {
1243
1240
  const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
1244
1241
  switch (e) {
1245
1242
  case "top":
@@ -1252,15 +1249,15 @@ function Ho(e, t, n) {
1252
1249
  return [];
1253
1250
  }
1254
1251
  }
1255
- function Vo(e, t, n, r) {
1252
+ function $o(e, t, n, r) {
1256
1253
  const o = me(e);
1257
- let i = Ho(Z(e), n === "start", r);
1254
+ let i = Bo(Z(e), n === "start", r);
1258
1255
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(nt)))), i;
1259
1256
  }
1260
1257
  function _e(e) {
1261
- return e.replace(/left|right|bottom|top/g, (t) => Io[t]);
1258
+ return e.replace(/left|right|bottom|top/g, (t) => _o[t]);
1262
1259
  }
1263
- function jo(e) {
1260
+ function Ho(e) {
1264
1261
  return {
1265
1262
  top: 0,
1266
1263
  right: 0,
@@ -1269,8 +1266,8 @@ function jo(e) {
1269
1266
  ...e
1270
1267
  };
1271
1268
  }
1272
- function ln(e) {
1273
- return typeof e != "number" ? jo(e) : {
1269
+ function un(e) {
1270
+ return typeof e != "number" ? Ho(e) : {
1274
1271
  top: e,
1275
1272
  right: e,
1276
1273
  bottom: e,
@@ -1295,12 +1292,12 @@ function Fe(e) {
1295
1292
  y: n
1296
1293
  };
1297
1294
  }
1298
- function Ft(e, t, n) {
1295
+ function _t(e, t, n) {
1299
1296
  let {
1300
1297
  reference: r,
1301
1298
  floating: o
1302
1299
  } = e;
1303
- const i = X(t), s = at(t), c = ct(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1300
+ const i = X(t), s = ct(t), c = st(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1304
1301
  let m;
1305
1302
  switch (u) {
1306
1303
  case "top":
@@ -1343,7 +1340,7 @@ function Ft(e, t, n) {
1343
1340
  }
1344
1341
  return m;
1345
1342
  }
1346
- const Uo = async (e, t, n) => {
1343
+ const Vo = async (e, t, n) => {
1347
1344
  const {
1348
1345
  placement: r = "bottom",
1349
1346
  strategy: o = "absolute",
@@ -1357,7 +1354,7 @@ const Uo = async (e, t, n) => {
1357
1354
  }), {
1358
1355
  x: f,
1359
1356
  y: d
1360
- } = Ft(l, r, u), p = r, m = {}, g = 0;
1357
+ } = _t(l, r, u), p = r, m = {}, g = 0;
1361
1358
  for (let h = 0; h < c.length; h++) {
1362
1359
  const {
1363
1360
  name: v,
@@ -1394,7 +1391,7 @@ const Uo = async (e, t, n) => {
1394
1391
  }) : E.rects), {
1395
1392
  x: f,
1396
1393
  y: d
1397
- } = Ft(l, p, u)), h = -1);
1394
+ } = _t(l, p, u)), h = -1);
1398
1395
  }
1399
1396
  return {
1400
1397
  x: f,
@@ -1420,7 +1417,7 @@ async function we(e, t) {
1420
1417
  elementContext: d = "floating",
1421
1418
  altBoundary: p = !1,
1422
1419
  padding: m = 0
1423
- } = K(t, e), g = ln(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = Fe(await i.getClippingRect({
1420
+ } = K(t, e), g = un(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = Fe(await i.getClippingRect({
1424
1421
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
1425
1422
  boundary: l,
1426
1423
  rootBoundary: f,
@@ -1449,7 +1446,7 @@ async function we(e, t) {
1449
1446
  right: (E.right - y.right + g.right) / w.x
1450
1447
  };
1451
1448
  }
1452
- const zo = (e) => ({
1449
+ const Uo = (e) => ({
1453
1450
  name: "arrow",
1454
1451
  options: e,
1455
1452
  async fn(t) {
@@ -1467,13 +1464,13 @@ const zo = (e) => ({
1467
1464
  } = K(e, t) || {};
1468
1465
  if (l == null)
1469
1466
  return {};
1470
- const d = ln(f), p = {
1467
+ const d = un(f), p = {
1471
1468
  x: n,
1472
1469
  y: r
1473
- }, m = at(o), g = ct(m), h = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1470
+ }, m = ct(o), g = st(m), h = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1474
1471
  let P = A ? A[b] : 0;
1475
1472
  (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = c.floating[b] || i.floating[g]);
1476
- const R = w / 2 - E / 2, N = P / 2 - h[g] / 2 - 1, O = ne(d[y], N), I = ne(d[x], N), W = O, M = P - h[g] - I, F = P / 2 - h[g] / 2 + R, k = tt(W, F, M), L = !u.arrow && me(o) != null && F !== k && i.reference[g] / 2 - (F < W ? O : I) - h[g] / 2 < 0, D = L ? F < W ? F - W : F - M : 0;
1473
+ const R = w / 2 - E / 2, N = P / 2 - h[g] / 2 - 1, O = te(d[y], N), I = te(d[x], N), W = O, M = P - h[g] - I, F = P / 2 - h[g] / 2 + R, k = tt(W, F, M), L = !u.arrow && me(o) != null && F !== k && i.reference[g] / 2 - (F < W ? O : I) - h[g] / 2 < 0, D = L ? F < W ? F - W : F - M : 0;
1477
1474
  return {
1478
1475
  [m]: p[m] + D,
1479
1476
  data: {
@@ -1486,7 +1483,7 @@ const zo = (e) => ({
1486
1483
  reset: L
1487
1484
  };
1488
1485
  }
1489
- }), Yo = function(e) {
1486
+ }), zo = function(e) {
1490
1487
  return e === void 0 && (e = {}), {
1491
1488
  name: "flip",
1492
1489
  options: e,
@@ -1510,12 +1507,12 @@ const zo = (e) => ({
1510
1507
  } = K(e, t);
1511
1508
  if ((n = i.arrow) != null && n.alignmentOffset)
1512
1509
  return {};
1513
- const y = Z(o), x = X(c), b = Z(c) === c, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (b || !h ? [_e(c)] : $o(c)), A = g !== "none";
1514
- !p && A && E.push(...Vo(c, h, g, w));
1510
+ const y = Z(o), x = X(c), b = Z(c) === c, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (b || !h ? [_e(c)] : Wo(c)), A = g !== "none";
1511
+ !p && A && E.push(...$o(c, h, g, w));
1515
1512
  const P = [c, ...E], R = await we(t, v), N = [];
1516
1513
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1517
1514
  if (f && N.push(R[y]), d) {
1518
- const k = Bo(o, s, w);
1515
+ const k = Io(o, s, w);
1519
1516
  N.push(R[k[0]], R[k[1]]);
1520
1517
  }
1521
1518
  if (O = [...O, {
@@ -1570,7 +1567,7 @@ const zo = (e) => ({
1570
1567
  }
1571
1568
  };
1572
1569
  };
1573
- function It(e, t) {
1570
+ function Ft(e, t) {
1574
1571
  return {
1575
1572
  top: e.top - t.height,
1576
1573
  right: e.right - t.width,
@@ -1578,10 +1575,10 @@ function It(e, t) {
1578
1575
  left: e.left - t.width
1579
1576
  };
1580
1577
  }
1581
- function Wt(e) {
1582
- return Fo.some((t) => e[t] >= 0);
1578
+ function It(e) {
1579
+ return Do.some((t) => e[t] >= 0);
1583
1580
  }
1584
- const Xo = function(e) {
1581
+ const jo = function(e) {
1585
1582
  return e === void 0 && (e = {}), {
1586
1583
  name: "hide",
1587
1584
  options: e,
@@ -1597,11 +1594,11 @@ const Xo = function(e) {
1597
1594
  const i = await we(t, {
1598
1595
  ...o,
1599
1596
  elementContext: "reference"
1600
- }), s = It(i, n.reference);
1597
+ }), s = Ft(i, n.reference);
1601
1598
  return {
1602
1599
  data: {
1603
1600
  referenceHiddenOffsets: s,
1604
- referenceHidden: Wt(s)
1601
+ referenceHidden: It(s)
1605
1602
  }
1606
1603
  };
1607
1604
  }
@@ -1609,11 +1606,11 @@ const Xo = function(e) {
1609
1606
  const i = await we(t, {
1610
1607
  ...o,
1611
1608
  altBoundary: !0
1612
- }), s = It(i, n.floating);
1609
+ }), s = Ft(i, n.floating);
1613
1610
  return {
1614
1611
  data: {
1615
1612
  escapedOffsets: s,
1616
- escaped: Wt(s)
1613
+ escaped: It(s)
1617
1614
  }
1618
1615
  };
1619
1616
  }
@@ -1623,7 +1620,7 @@ const Xo = function(e) {
1623
1620
  }
1624
1621
  };
1625
1622
  };
1626
- async function Ko(e, t) {
1623
+ async function Yo(e, t) {
1627
1624
  const {
1628
1625
  placement: n,
1629
1626
  platform: r,
@@ -1650,7 +1647,7 @@ async function Ko(e, t) {
1650
1647
  y: m * f
1651
1648
  };
1652
1649
  }
1653
- const Zo = function(e) {
1650
+ const Xo = function(e) {
1654
1651
  return e === void 0 && (e = 0), {
1655
1652
  name: "offset",
1656
1653
  options: e,
@@ -1661,7 +1658,7 @@ const Zo = function(e) {
1661
1658
  y: i,
1662
1659
  placement: s,
1663
1660
  middlewareData: c
1664
- } = t, u = await Ko(t, e);
1661
+ } = t, u = await Yo(t, e);
1665
1662
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1666
1663
  x: o + u.x,
1667
1664
  y: i + u.y,
@@ -1672,7 +1669,7 @@ const Zo = function(e) {
1672
1669
  };
1673
1670
  }
1674
1671
  };
1675
- }, qo = function(e) {
1672
+ }, Ko = function(e) {
1676
1673
  return e === void 0 && (e = {}), {
1677
1674
  name: "shift",
1678
1675
  options: e,
@@ -1700,7 +1697,7 @@ const Zo = function(e) {
1700
1697
  } = K(e, t), l = {
1701
1698
  x: n,
1702
1699
  y: r
1703
- }, f = await we(t, u), d = X(Z(o)), p = st(d);
1700
+ }, f = await we(t, u), d = X(Z(o)), p = it(d);
1704
1701
  let m = l[p], g = l[d];
1705
1702
  if (i) {
1706
1703
  const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = m + f[v], b = m - f[y];
@@ -1728,7 +1725,7 @@ const Zo = function(e) {
1728
1725
  };
1729
1726
  }
1730
1727
  };
1731
- }, Go = function(e) {
1728
+ }, Zo = function(e) {
1732
1729
  return e === void 0 && (e = {}), {
1733
1730
  options: e,
1734
1731
  fn(t) {
@@ -1745,7 +1742,7 @@ const Zo = function(e) {
1745
1742
  } = K(e, t), f = {
1746
1743
  x: n,
1747
1744
  y: r
1748
- }, d = X(o), p = st(d);
1745
+ }, d = X(o), p = it(d);
1749
1746
  let m = f[p], g = f[d];
1750
1747
  const h = K(c, t), v = typeof h == "number" ? {
1751
1748
  mainAxis: h,
@@ -1770,7 +1767,7 @@ const Zo = function(e) {
1770
1767
  };
1771
1768
  }
1772
1769
  };
1773
- }, Qo = function(e) {
1770
+ }, qo = function(e) {
1774
1771
  return e === void 0 && (e = {}), {
1775
1772
  name: "size",
1776
1773
  options: e,
@@ -1791,7 +1788,7 @@ const Zo = function(e) {
1791
1788
  } = i.floating;
1792
1789
  let v, y;
1793
1790
  d === "top" || d === "bottom" ? (v = d, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = p === "end" ? "top" : "bottom");
1794
- const x = h - f.top - f.bottom, b = g - f.left - f.right, w = ne(h - f[v], x), E = ne(g - f[y], b), A = !t.middlewareData.shift;
1791
+ const x = h - f.top - f.bottom, b = g - f.left - f.right, w = te(h - f[v], x), E = te(g - f[y], b), A = !t.middlewareData.shift;
1795
1792
  let P = w, R = E;
1796
1793
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = b), (r = t.middlewareData.shift) != null && r.enabled.y && (P = x), A && !p) {
1797
1794
  const O = B(f.left, 0), I = B(f.right, 0), W = B(f.top, 0), M = B(f.bottom, 0);
@@ -1815,7 +1812,7 @@ function Be() {
1815
1812
  return typeof window < "u";
1816
1813
  }
1817
1814
  function ve(e) {
1818
- return un(e) ? (e.nodeName || "").toLowerCase() : "#document";
1815
+ return fn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1819
1816
  }
1820
1817
  function $(e) {
1821
1818
  var t;
@@ -1823,18 +1820,18 @@ function $(e) {
1823
1820
  }
1824
1821
  function Y(e) {
1825
1822
  var t;
1826
- return (t = (un(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1823
+ return (t = (fn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1827
1824
  }
1828
- function un(e) {
1825
+ function fn(e) {
1829
1826
  return Be() ? e instanceof Node || e instanceof $(e).Node : !1;
1830
1827
  }
1831
1828
  function H(e) {
1832
1829
  return Be() ? e instanceof Element || e instanceof $(e).Element : !1;
1833
1830
  }
1834
- function z(e) {
1831
+ function j(e) {
1835
1832
  return Be() ? e instanceof HTMLElement || e instanceof $(e).HTMLElement : !1;
1836
1833
  }
1837
- function Bt(e) {
1834
+ function Wt(e) {
1838
1835
  return !Be() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof $(e).ShadowRoot;
1839
1836
  }
1840
1837
  function Ee(e) {
@@ -1846,7 +1843,7 @@ function Ee(e) {
1846
1843
  } = V(e);
1847
1844
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1848
1845
  }
1849
- function Jo(e) {
1846
+ function Go(e) {
1850
1847
  return ["table", "td", "th"].includes(ve(e));
1851
1848
  }
1852
1849
  function $e(e) {
@@ -1858,22 +1855,22 @@ function $e(e) {
1858
1855
  }
1859
1856
  });
1860
1857
  }
1861
- function lt(e) {
1862
- const t = ut(), n = H(e) ? V(e) : e;
1858
+ function at(e) {
1859
+ const t = lt(), n = H(e) ? V(e) : e;
1863
1860
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1864
1861
  }
1865
- function ei(e) {
1866
- let t = re(e);
1867
- for (; z(t) && !he(t); ) {
1868
- if (lt(t))
1862
+ function Qo(e) {
1863
+ let t = ne(e);
1864
+ for (; j(t) && !he(t); ) {
1865
+ if (at(t))
1869
1866
  return t;
1870
1867
  if ($e(t))
1871
1868
  return null;
1872
- t = re(t);
1869
+ t = ne(t);
1873
1870
  }
1874
1871
  return null;
1875
1872
  }
1876
- function ut() {
1873
+ function lt() {
1877
1874
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1878
1875
  }
1879
1876
  function he(e) {
@@ -1891,26 +1888,26 @@ function He(e) {
1891
1888
  scrollTop: e.scrollY
1892
1889
  };
1893
1890
  }
1894
- function re(e) {
1891
+ function ne(e) {
1895
1892
  if (ve(e) === "html")
1896
1893
  return e;
1897
1894
  const t = (
1898
1895
  // Step into the shadow DOM of the parent of a slotted node.
1899
1896
  e.assignedSlot || // DOM Element detected.
1900
1897
  e.parentNode || // ShadowRoot detected.
1901
- Bt(e) && e.host || // Fallback.
1898
+ Wt(e) && e.host || // Fallback.
1902
1899
  Y(e)
1903
1900
  );
1904
- return Bt(t) ? t.host : t;
1901
+ return Wt(t) ? t.host : t;
1905
1902
  }
1906
- function fn(e) {
1907
- const t = re(e);
1908
- return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && Ee(t) ? t : fn(t);
1903
+ function dn(e) {
1904
+ const t = ne(e);
1905
+ return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && Ee(t) ? t : dn(t);
1909
1906
  }
1910
1907
  function be(e, t, n) {
1911
1908
  var r;
1912
1909
  t === void 0 && (t = []), n === void 0 && (n = !0);
1913
- const o = fn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = $(o);
1910
+ const o = dn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = $(o);
1914
1911
  if (i) {
1915
1912
  const c = rt(s);
1916
1913
  return t.concat(s, s.visualViewport || [], Ee(o) ? o : [], c && n ? be(c) : []);
@@ -1920,51 +1917,51 @@ function be(e, t, n) {
1920
1917
  function rt(e) {
1921
1918
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1922
1919
  }
1923
- function dn(e) {
1920
+ function hn(e) {
1924
1921
  const t = V(e);
1925
1922
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1926
- const o = z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
1923
+ const o = j(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
1927
1924
  return c && (n = i, r = s), {
1928
1925
  width: n,
1929
1926
  height: r,
1930
1927
  $: c
1931
1928
  };
1932
1929
  }
1933
- function ft(e) {
1930
+ function ut(e) {
1934
1931
  return H(e) ? e : e.contextElement;
1935
1932
  }
1936
1933
  function fe(e) {
1937
- const t = ft(e);
1938
- if (!z(t))
1939
- return U(1);
1934
+ const t = ut(e);
1935
+ if (!j(t))
1936
+ return z(1);
1940
1937
  const n = t.getBoundingClientRect(), {
1941
1938
  width: r,
1942
1939
  height: o,
1943
1940
  $: i
1944
- } = dn(t);
1941
+ } = hn(t);
1945
1942
  let s = (i ? De(n.width) : n.width) / r, c = (i ? De(n.height) : n.height) / o;
1946
1943
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1947
1944
  x: s,
1948
1945
  y: c
1949
1946
  };
1950
1947
  }
1951
- const ti = /* @__PURE__ */ U(0);
1952
- function hn(e) {
1948
+ const Jo = /* @__PURE__ */ z(0);
1949
+ function pn(e) {
1953
1950
  const t = $(e);
1954
- return !ut() || !t.visualViewport ? ti : {
1951
+ return !lt() || !t.visualViewport ? Jo : {
1955
1952
  x: t.visualViewport.offsetLeft,
1956
1953
  y: t.visualViewport.offsetTop
1957
1954
  };
1958
1955
  }
1959
- function ni(e, t, n) {
1956
+ function ei(e, t, n) {
1960
1957
  return t === void 0 && (t = !1), !n || t && n !== $(e) ? !1 : t;
1961
1958
  }
1962
1959
  function ie(e, t, n, r) {
1963
1960
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1964
- const o = e.getBoundingClientRect(), i = ft(e);
1965
- let s = U(1);
1961
+ const o = e.getBoundingClientRect(), i = ut(e);
1962
+ let s = z(1);
1966
1963
  t && (r ? H(r) && (s = fe(r)) : s = fe(e));
1967
- const c = ni(i, n, r) ? hn(i) : U(0);
1964
+ const c = ei(i, n, r) ? pn(i) : z(0);
1968
1965
  let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
1969
1966
  if (i) {
1970
1967
  const p = $(i), m = r && H(r) ? $(r) : r;
@@ -1981,22 +1978,22 @@ function ie(e, t, n, r) {
1981
1978
  y: l
1982
1979
  });
1983
1980
  }
1984
- function dt(e, t) {
1981
+ function ft(e, t) {
1985
1982
  const n = He(e).scrollLeft;
1986
1983
  return t ? t.left + n : ie(Y(e)).left + n;
1987
1984
  }
1988
- function pn(e, t, n) {
1985
+ function mn(e, t, n) {
1989
1986
  n === void 0 && (n = !1);
1990
1987
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1991
1988
  // RTL <body> scrollbar.
1992
- dt(e, r)
1989
+ ft(e, r)
1993
1990
  )), i = r.top + t.scrollTop;
1994
1991
  return {
1995
1992
  x: o,
1996
1993
  y: i
1997
1994
  };
1998
1995
  }
1999
- function ri(e) {
1996
+ function ti(e) {
2000
1997
  let {
2001
1998
  elements: t,
2002
1999
  rect: n,
@@ -2009,13 +2006,13 @@ function ri(e) {
2009
2006
  let u = {
2010
2007
  scrollLeft: 0,
2011
2008
  scrollTop: 0
2012
- }, l = U(1);
2013
- const f = U(0), d = z(r);
2014
- if ((d || !d && !i) && ((ve(r) !== "body" || Ee(s)) && (u = He(r)), z(r))) {
2009
+ }, l = z(1);
2010
+ const f = z(0), d = j(r);
2011
+ if ((d || !d && !i) && ((ve(r) !== "body" || Ee(s)) && (u = He(r)), j(r))) {
2015
2012
  const m = ie(r);
2016
2013
  l = fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
2017
2014
  }
2018
- const p = s && !d && !i ? pn(s, u, !0) : U(0);
2015
+ const p = s && !d && !i ? mn(s, u, !0) : z(0);
2019
2016
  return {
2020
2017
  width: n.width * l.x,
2021
2018
  height: n.height * l.y,
@@ -2023,12 +2020,12 @@ function ri(e) {
2023
2020
  y: n.y * l.y - u.scrollTop * l.y + f.y + p.y
2024
2021
  };
2025
2022
  }
2026
- function oi(e) {
2023
+ function ni(e) {
2027
2024
  return Array.from(e.getClientRects());
2028
2025
  }
2029
- function ii(e) {
2026
+ function ri(e) {
2030
2027
  const t = Y(e), n = He(e), r = e.ownerDocument.body, o = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2031
- let s = -n.scrollLeft + dt(e);
2028
+ let s = -n.scrollLeft + ft(e);
2032
2029
  const c = -n.scrollTop;
2033
2030
  return V(r).direction === "rtl" && (s += B(t.clientWidth, r.clientWidth) - o), {
2034
2031
  width: o,
@@ -2037,12 +2034,12 @@ function ii(e) {
2037
2034
  y: c
2038
2035
  };
2039
2036
  }
2040
- function si(e, t) {
2037
+ function oi(e, t) {
2041
2038
  const n = $(e), r = Y(e), o = n.visualViewport;
2042
2039
  let i = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
2043
2040
  if (o) {
2044
2041
  i = o.width, s = o.height;
2045
- const l = ut();
2042
+ const l = lt();
2046
2043
  (!l || l && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
2047
2044
  }
2048
2045
  return {
@@ -2052,8 +2049,8 @@ function si(e, t) {
2052
2049
  y: u
2053
2050
  };
2054
2051
  }
2055
- function ci(e, t) {
2056
- const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = z(e) ? fe(e) : U(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2052
+ function ii(e, t) {
2053
+ const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = j(e) ? fe(e) : z(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2057
2054
  return {
2058
2055
  width: s,
2059
2056
  height: c,
@@ -2061,16 +2058,16 @@ function ci(e, t) {
2061
2058
  y: l
2062
2059
  };
2063
2060
  }
2064
- function $t(e, t, n) {
2061
+ function Bt(e, t, n) {
2065
2062
  let r;
2066
2063
  if (t === "viewport")
2067
- r = si(e, n);
2064
+ r = oi(e, n);
2068
2065
  else if (t === "document")
2069
- r = ii(Y(e));
2066
+ r = ri(Y(e));
2070
2067
  else if (H(t))
2071
- r = ci(t, n);
2068
+ r = ii(t, n);
2072
2069
  else {
2073
- const o = hn(e);
2070
+ const o = pn(e);
2074
2071
  r = {
2075
2072
  x: t.x - o.x,
2076
2073
  y: t.y - o.y,
@@ -2080,34 +2077,34 @@ function $t(e, t, n) {
2080
2077
  }
2081
2078
  return Fe(r);
2082
2079
  }
2083
- function mn(e, t) {
2084
- const n = re(e);
2085
- return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || mn(n, t);
2080
+ function vn(e, t) {
2081
+ const n = ne(e);
2082
+ return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || vn(n, t);
2086
2083
  }
2087
- function ai(e, t) {
2084
+ function si(e, t) {
2088
2085
  const n = t.get(e);
2089
2086
  if (n)
2090
2087
  return n;
2091
2088
  let r = be(e, [], !1).filter((c) => H(c) && ve(c) !== "body"), o = null;
2092
2089
  const i = V(e).position === "fixed";
2093
- let s = i ? re(e) : e;
2090
+ let s = i ? ne(e) : e;
2094
2091
  for (; H(s) && !he(s); ) {
2095
- const c = V(s), u = lt(s);
2096
- !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && mn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = re(s);
2092
+ const c = V(s), u = at(s);
2093
+ !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && vn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2097
2094
  }
2098
2095
  return t.set(e, r), r;
2099
2096
  }
2100
- function li(e) {
2097
+ function ci(e) {
2101
2098
  let {
2102
2099
  element: t,
2103
2100
  boundary: n,
2104
2101
  rootBoundary: r,
2105
2102
  strategy: o
2106
2103
  } = e;
2107
- const s = [...n === "clippingAncestors" ? $e(t) ? [] : ai(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2108
- const d = $t(t, f, o);
2109
- return l.top = B(d.top, l.top), l.right = ne(d.right, l.right), l.bottom = ne(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
2110
- }, $t(t, c, o));
2104
+ const s = [...n === "clippingAncestors" ? $e(t) ? [] : si(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2105
+ const d = Bt(t, f, o);
2106
+ return l.top = B(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
2107
+ }, Bt(t, c, o));
2111
2108
  return {
2112
2109
  width: u.right - u.left,
2113
2110
  height: u.bottom - u.top,
@@ -2115,25 +2112,25 @@ function li(e) {
2115
2112
  y: u.top
2116
2113
  };
2117
2114
  }
2118
- function ui(e) {
2115
+ function ai(e) {
2119
2116
  const {
2120
2117
  width: t,
2121
2118
  height: n
2122
- } = dn(e);
2119
+ } = hn(e);
2123
2120
  return {
2124
2121
  width: t,
2125
2122
  height: n
2126
2123
  };
2127
2124
  }
2128
- function fi(e, t, n) {
2129
- const r = z(t), o = Y(t), i = n === "fixed", s = ie(e, !0, i, t);
2125
+ function li(e, t, n) {
2126
+ const r = j(t), o = Y(t), i = n === "fixed", s = ie(e, !0, i, t);
2130
2127
  let c = {
2131
2128
  scrollLeft: 0,
2132
2129
  scrollTop: 0
2133
2130
  };
2134
- const u = U(0);
2131
+ const u = z(0);
2135
2132
  function l() {
2136
- u.x = dt(o);
2133
+ u.x = ft(o);
2137
2134
  }
2138
2135
  if (r || !r && !i)
2139
2136
  if ((ve(t) !== "body" || Ee(o)) && (c = He(t)), r) {
@@ -2141,7 +2138,7 @@ function fi(e, t, n) {
2141
2138
  u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
2142
2139
  } else o && l();
2143
2140
  i && !r && o && l();
2144
- const f = o && !r && !i ? pn(o, c) : U(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2141
+ const f = o && !r && !i ? mn(o, c) : z(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2145
2142
  return {
2146
2143
  x: d,
2147
2144
  y: p,
@@ -2152,36 +2149,36 @@ function fi(e, t, n) {
2152
2149
  function qe(e) {
2153
2150
  return V(e).position === "static";
2154
2151
  }
2155
- function Ht(e, t) {
2156
- if (!z(e) || V(e).position === "fixed")
2152
+ function $t(e, t) {
2153
+ if (!j(e) || V(e).position === "fixed")
2157
2154
  return null;
2158
2155
  if (t)
2159
2156
  return t(e);
2160
2157
  let n = e.offsetParent;
2161
2158
  return Y(e) === n && (n = n.ownerDocument.body), n;
2162
2159
  }
2163
- function vn(e, t) {
2160
+ function gn(e, t) {
2164
2161
  const n = $(e);
2165
2162
  if ($e(e))
2166
2163
  return n;
2167
- if (!z(e)) {
2168
- let o = re(e);
2164
+ if (!j(e)) {
2165
+ let o = ne(e);
2169
2166
  for (; o && !he(o); ) {
2170
2167
  if (H(o) && !qe(o))
2171
2168
  return o;
2172
- o = re(o);
2169
+ o = ne(o);
2173
2170
  }
2174
2171
  return n;
2175
2172
  }
2176
- let r = Ht(e, t);
2177
- for (; r && Jo(r) && qe(r); )
2178
- r = Ht(r, t);
2179
- return r && he(r) && qe(r) && !lt(r) ? n : r || ei(e) || n;
2173
+ let r = $t(e, t);
2174
+ for (; r && Go(r) && qe(r); )
2175
+ r = $t(r, t);
2176
+ return r && he(r) && qe(r) && !at(r) ? n : r || Qo(e) || n;
2180
2177
  }
2181
- const di = async function(e) {
2182
- const t = this.getOffsetParent || vn, n = this.getDimensions, r = await n(e.floating);
2178
+ const ui = async function(e) {
2179
+ const t = this.getOffsetParent || gn, n = this.getDimensions, r = await n(e.floating);
2183
2180
  return {
2184
- reference: fi(e.reference, await t(e.floating), e.strategy),
2181
+ reference: li(e.reference, await t(e.floating), e.strategy),
2185
2182
  floating: {
2186
2183
  x: 0,
2187
2184
  y: 0,
@@ -2190,25 +2187,25 @@ const di = async function(e) {
2190
2187
  }
2191
2188
  };
2192
2189
  };
2193
- function hi(e) {
2190
+ function fi(e) {
2194
2191
  return V(e).direction === "rtl";
2195
2192
  }
2196
- const pi = {
2197
- convertOffsetParentRelativeRectToViewportRelativeRect: ri,
2193
+ const di = {
2194
+ convertOffsetParentRelativeRectToViewportRelativeRect: ti,
2198
2195
  getDocumentElement: Y,
2199
- getClippingRect: li,
2200
- getOffsetParent: vn,
2201
- getElementRects: di,
2202
- getClientRects: oi,
2203
- getDimensions: ui,
2196
+ getClippingRect: ci,
2197
+ getOffsetParent: gn,
2198
+ getElementRects: ui,
2199
+ getClientRects: ni,
2200
+ getDimensions: ai,
2204
2201
  getScale: fe,
2205
2202
  isElement: H,
2206
- isRTL: hi
2203
+ isRTL: fi
2207
2204
  };
2208
- function gn(e, t) {
2205
+ function yn(e, t) {
2209
2206
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2210
2207
  }
2211
- function mi(e, t) {
2208
+ function hi(e, t) {
2212
2209
  let n = null, r;
2213
2210
  const o = Y(e);
2214
2211
  function i() {
@@ -2227,7 +2224,7 @@ function mi(e, t) {
2227
2224
  return;
2228
2225
  const g = Me(d), h = Me(o.clientWidth - (f + p)), v = Me(o.clientHeight - (d + m)), y = Me(f), b = {
2229
2226
  rootMargin: -g + "px " + -h + "px " + -v + "px " + -y + "px",
2230
- threshold: B(0, ne(1, u)) || 1
2227
+ threshold: B(0, te(1, u)) || 1
2231
2228
  };
2232
2229
  let w = !0;
2233
2230
  function E(A) {
@@ -2239,7 +2236,7 @@ function mi(e, t) {
2239
2236
  s(!1, 1e-7);
2240
2237
  }, 1e3);
2241
2238
  }
2242
- P === 1 && !gn(l, e.getBoundingClientRect()) && s(), w = !1;
2239
+ P === 1 && !yn(l, e.getBoundingClientRect()) && s(), w = !1;
2243
2240
  }
2244
2241
  try {
2245
2242
  n = new IntersectionObserver(E, {
@@ -2254,7 +2251,7 @@ function mi(e, t) {
2254
2251
  }
2255
2252
  return s(!0), i;
2256
2253
  }
2257
- function vi(e, t, n, r) {
2254
+ function pi(e, t, n, r) {
2258
2255
  r === void 0 && (r = {});
2259
2256
  const {
2260
2257
  ancestorScroll: o = !0,
@@ -2262,13 +2259,13 @@ function vi(e, t, n, r) {
2262
2259
  elementResize: s = typeof ResizeObserver == "function",
2263
2260
  layoutShift: c = typeof IntersectionObserver == "function",
2264
2261
  animationFrame: u = !1
2265
- } = r, l = ft(e), f = o || i ? [...l ? be(l) : [], ...be(t)] : [];
2262
+ } = r, l = ut(e), f = o || i ? [...l ? be(l) : [], ...be(t)] : [];
2266
2263
  f.forEach((y) => {
2267
2264
  o && y.addEventListener("scroll", n, {
2268
2265
  passive: !0
2269
2266
  }), i && y.addEventListener("resize", n);
2270
2267
  });
2271
- const d = l && c ? mi(l, n) : null;
2268
+ const d = l && c ? hi(l, n) : null;
2272
2269
  let p = -1, m = null;
2273
2270
  s && (m = new ResizeObserver((y) => {
2274
2271
  let [x] = y;
@@ -2281,7 +2278,7 @@ function vi(e, t, n, r) {
2281
2278
  u && v();
2282
2279
  function v() {
2283
2280
  const y = ie(e);
2284
- h && !gn(h, y) && n(), h = y, g = requestAnimationFrame(v);
2281
+ h && !yn(h, y) && n(), h = y, g = requestAnimationFrame(v);
2285
2282
  }
2286
2283
  return n(), () => {
2287
2284
  var y;
@@ -2290,20 +2287,20 @@ function vi(e, t, n, r) {
2290
2287
  }), d == null || d(), (y = m) == null || y.disconnect(), m = null, u && cancelAnimationFrame(g);
2291
2288
  };
2292
2289
  }
2293
- const gi = Zo, yi = qo, wi = Yo, bi = Qo, xi = Xo, Vt = zo, Ei = Go, Ci = (e, t, n) => {
2290
+ const mi = Xo, vi = Ko, gi = zo, yi = qo, wi = jo, Ht = Uo, bi = Zo, xi = (e, t, n) => {
2294
2291
  const r = /* @__PURE__ */ new Map(), o = {
2295
- platform: pi,
2292
+ platform: di,
2296
2293
  ...n
2297
2294
  }, i = {
2298
2295
  ...o.platform,
2299
2296
  _c: r
2300
2297
  };
2301
- return Uo(e, t, {
2298
+ return Vo(e, t, {
2302
2299
  ...o,
2303
2300
  platform: i
2304
2301
  });
2305
2302
  };
2306
- var Le = typeof document < "u" ? Jn : er;
2303
+ var Le = typeof document < "u" ? er : tr;
2307
2304
  function Ie(e, t) {
2308
2305
  if (e === t)
2309
2306
  return !0;
@@ -2334,11 +2331,11 @@ function Ie(e, t) {
2334
2331
  }
2335
2332
  return e !== e && t !== t;
2336
2333
  }
2337
- function yn(e) {
2334
+ function wn(e) {
2338
2335
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2339
2336
  }
2340
- function jt(e, t) {
2341
- const n = yn(e);
2337
+ function Vt(e, t) {
2338
+ const n = wn(e);
2342
2339
  return Math.round(t * n) / n;
2343
2340
  }
2344
2341
  function Ge(e) {
@@ -2347,7 +2344,7 @@ function Ge(e) {
2347
2344
  t.current = e;
2348
2345
  }), t;
2349
2346
  }
2350
- function Pi(e) {
2347
+ function Ei(e) {
2351
2348
  e === void 0 && (e = {});
2352
2349
  const {
2353
2350
  placement: t = "bottom",
@@ -2382,7 +2379,7 @@ function Pi(e) {
2382
2379
  strategy: n,
2383
2380
  middleware: p
2384
2381
  };
2385
- I.current && (S.platform = I.current), Ci(A.current, P.current, S).then((T) => {
2382
+ I.current && (S.platform = I.current), xi(A.current, P.current, S).then((T) => {
2386
2383
  const _ = {
2387
2384
  ...T,
2388
2385
  // The floating element's position may be recomputed while it's closed
@@ -2391,7 +2388,7 @@ function Pi(e) {
2391
2388
  // setting it to `true` when `open === false` (must be specified).
2392
2389
  isPositioned: W.current !== !1
2393
2390
  };
2394
- F.current && !Ie(R.current, _) && (R.current = _, ot.flushSync(() => {
2391
+ F.current && !Ie(R.current, _) && (R.current = _, zt.flushSync(() => {
2395
2392
  d(_);
2396
2393
  }));
2397
2394
  });
@@ -2428,11 +2425,11 @@ function Pi(e) {
2428
2425
  };
2429
2426
  if (!L.floating)
2430
2427
  return S;
2431
- const T = jt(L.floating, f.x), _ = jt(L.floating, f.y);
2428
+ const T = Vt(L.floating, f.x), _ = Vt(L.floating, f.y);
2432
2429
  return c ? {
2433
2430
  ...S,
2434
2431
  transform: "translate(" + T + "px, " + _ + "px)",
2435
- ...yn(L.floating) >= 1.5 && {
2432
+ ...wn(L.floating) >= 1.5 && {
2436
2433
  willChange: "transform"
2437
2434
  }
2438
2435
  } : {
@@ -2449,7 +2446,7 @@ function Pi(e) {
2449
2446
  floatingStyles: D
2450
2447
  }), [f, M, k, L, D]);
2451
2448
  }
2452
- const Ai = (e) => {
2449
+ const Ci = (e) => {
2453
2450
  function t(n) {
2454
2451
  return {}.hasOwnProperty.call(n, "current");
2455
2452
  }
@@ -2461,41 +2458,41 @@ const Ai = (e) => {
2461
2458
  element: r,
2462
2459
  padding: o
2463
2460
  } = typeof e == "function" ? e(n) : e;
2464
- return r && t(r) ? r.current != null ? Vt({
2461
+ return r && t(r) ? r.current != null ? Ht({
2465
2462
  element: r.current,
2466
2463
  padding: o
2467
- }).fn(n) : {} : r ? Vt({
2464
+ }).fn(n) : {} : r ? Ht({
2468
2465
  element: r,
2469
2466
  padding: o
2470
2467
  }).fn(n) : {};
2471
2468
  }
2472
2469
  };
2473
- }, Si = (e, t) => ({
2474
- ...gi(e),
2470
+ }, Pi = (e, t) => ({
2471
+ ...mi(e),
2472
+ options: [e, t]
2473
+ }), Ai = (e, t) => ({
2474
+ ...vi(e),
2475
+ options: [e, t]
2476
+ }), Si = (e, t) => ({
2477
+ ...bi(e),
2475
2478
  options: [e, t]
2476
2479
  }), Ri = (e, t) => ({
2477
- ...yi(e),
2480
+ ...gi(e),
2478
2481
  options: [e, t]
2479
2482
  }), Oi = (e, t) => ({
2480
- ...Ei(e),
2483
+ ...yi(e),
2481
2484
  options: [e, t]
2482
2485
  }), Ni = (e, t) => ({
2483
2486
  ...wi(e),
2484
2487
  options: [e, t]
2485
2488
  }), Mi = (e, t) => ({
2486
- ...bi(e),
2487
- options: [e, t]
2488
- }), Ti = (e, t) => ({
2489
- ...xi(e),
2490
- options: [e, t]
2491
- }), ki = (e, t) => ({
2492
- ...Ai(e),
2489
+ ...Ci(e),
2493
2490
  options: [e, t]
2494
2491
  });
2495
- var Li = "Arrow", wn = a.forwardRef((e, t) => {
2492
+ var Ti = "Arrow", bn = a.forwardRef((e, t) => {
2496
2493
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
2497
2494
  return /* @__PURE__ */ C(
2498
- G.svg,
2495
+ q.svg,
2499
2496
  {
2500
2497
  ...i,
2501
2498
  ref: t,
@@ -2507,24 +2504,24 @@ var Li = "Arrow", wn = a.forwardRef((e, t) => {
2507
2504
  }
2508
2505
  );
2509
2506
  });
2510
- wn.displayName = Li;
2511
- var Di = wn, ht = "Popper", [bn, xn] = Yt(ht), [_i, En] = bn(ht), Cn = (e) => {
2507
+ bn.displayName = Ti;
2508
+ var ki = bn, dt = "Popper", [xn, En] = Xt(dt), [Li, Cn] = xn(dt), Pn = (e) => {
2512
2509
  const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
2513
- return /* @__PURE__ */ C(_i, { scope: t, anchor: r, onAnchorChange: o, children: n });
2510
+ return /* @__PURE__ */ C(Li, { scope: t, anchor: r, onAnchorChange: o, children: n });
2514
2511
  };
2515
- Cn.displayName = ht;
2516
- var Pn = "PopperAnchor", An = a.forwardRef(
2512
+ Pn.displayName = dt;
2513
+ var An = "PopperAnchor", Sn = a.forwardRef(
2517
2514
  (e, t) => {
2518
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = En(Pn, n), s = a.useRef(null), c = q(t, s);
2515
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Cn(An, n), s = a.useRef(null), c = re(t, s);
2519
2516
  return a.useEffect(() => {
2520
2517
  i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2521
- }), r ? null : /* @__PURE__ */ C(G.div, { ...o, ref: c });
2518
+ }), r ? null : /* @__PURE__ */ C(q.div, { ...o, ref: c });
2522
2519
  }
2523
2520
  );
2524
- An.displayName = Pn;
2525
- var pt = "PopperContent", [Fi, Ii] = bn(pt), Sn = a.forwardRef(
2521
+ Sn.displayName = An;
2522
+ var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2526
2523
  (e, t) => {
2527
- var vt, gt, yt, wt, bt, xt;
2524
+ var mt, vt, gt, yt, wt, bt;
2528
2525
  const {
2529
2526
  __scopePopper: n,
2530
2527
  side: r = "bottom",
@@ -2540,48 +2537,48 @@ var pt = "PopperContent", [Fi, Ii] = bn(pt), Sn = a.forwardRef(
2540
2537
  updatePositionStrategy: m = "optimized",
2541
2538
  onPlaced: g,
2542
2539
  ...h
2543
- } = e, v = En(pt, n), [y, x] = a.useState(null), b = q(t, (ge) => x(ge)), [w, E] = a.useState(null), A = _o(w), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, N = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, I = Array.isArray(l) ? l : [l], W = I.length > 0, M = {
2540
+ } = e, v = Cn(ht, n), [y, x] = a.useState(null), b = re(t, (ge) => x(ge)), [w, E] = a.useState(null), A = Lo(w), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, N = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, I = Array.isArray(l) ? l : [l], W = I.length > 0, M = {
2544
2541
  padding: O,
2545
- boundary: I.filter(Bi),
2542
+ boundary: I.filter(Ii),
2546
2543
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2547
2544
  altBoundary: W
2548
- }, { refs: F, floatingStyles: k, placement: L, isPositioned: D, middlewareData: S } = Pi({
2545
+ }, { refs: F, floatingStyles: k, placement: L, isPositioned: D, middlewareData: S } = Ei({
2549
2546
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2550
2547
  strategy: "fixed",
2551
2548
  placement: N,
2552
- whileElementsMounted: (...ge) => vi(...ge, {
2549
+ whileElementsMounted: (...ge) => pi(...ge, {
2553
2550
  animationFrame: m === "always"
2554
2551
  }),
2555
2552
  elements: {
2556
2553
  reference: v.anchor
2557
2554
  },
2558
2555
  middleware: [
2559
- Si({ mainAxis: o + R, alignmentAxis: s }),
2560
- u && Ri({
2556
+ Pi({ mainAxis: o + R, alignmentAxis: s }),
2557
+ u && Ai({
2561
2558
  mainAxis: !0,
2562
2559
  crossAxis: !1,
2563
- limiter: d === "partial" ? Oi() : void 0,
2560
+ limiter: d === "partial" ? Si() : void 0,
2564
2561
  ...M
2565
2562
  }),
2566
- u && Ni({ ...M }),
2567
- Mi({
2563
+ u && Ri({ ...M }),
2564
+ Oi({
2568
2565
  ...M,
2569
- apply: ({ elements: ge, rects: Et, availableWidth: Xn, availableHeight: Kn }) => {
2570
- const { width: Zn, height: qn } = Et.reference, Pe = ge.floating.style;
2571
- Pe.setProperty("--radix-popper-available-width", `${Xn}px`), Pe.setProperty("--radix-popper-available-height", `${Kn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-height", `${qn}px`);
2566
+ apply: ({ elements: ge, rects: xt, availableWidth: Kn, availableHeight: Zn }) => {
2567
+ const { width: qn, height: Gn } = xt.reference, Pe = ge.floating.style;
2568
+ Pe.setProperty("--radix-popper-available-width", `${Kn}px`), Pe.setProperty("--radix-popper-available-height", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-width", `${qn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Gn}px`);
2572
2569
  }
2573
2570
  }),
2574
- w && ki({ element: w, padding: c }),
2575
- $i({ arrowWidth: P, arrowHeight: R }),
2576
- p && Ti({ strategy: "referenceHidden", ...M })
2571
+ w && Mi({ element: w, padding: c }),
2572
+ Wi({ arrowWidth: P, arrowHeight: R }),
2573
+ p && Ni({ strategy: "referenceHidden", ...M })
2577
2574
  ]
2578
- }), [T, _] = Nn(L), se = de(g);
2579
- te(() => {
2575
+ }), [T, _] = Mn(L), se = de(g);
2576
+ ee(() => {
2580
2577
  D && (se == null || se());
2581
2578
  }, [D, se]);
2582
- const Vn = (vt = S.arrow) == null ? void 0 : vt.x, jn = (gt = S.arrow) == null ? void 0 : gt.y, Un = ((yt = S.arrow) == null ? void 0 : yt.centerOffset) !== 0, [zn, Yn] = a.useState();
2583
- return te(() => {
2584
- y && Yn(window.getComputedStyle(y).zIndex);
2579
+ const Un = (mt = S.arrow) == null ? void 0 : mt.x, zn = (vt = S.arrow) == null ? void 0 : vt.y, jn = ((gt = S.arrow) == null ? void 0 : gt.centerOffset) !== 0, [Yn, Xn] = a.useState();
2580
+ return ee(() => {
2581
+ y && Xn(window.getComputedStyle(y).zIndex);
2585
2582
  }, [y]), /* @__PURE__ */ C(
2586
2583
  "div",
2587
2584
  {
@@ -2592,31 +2589,31 @@ var pt = "PopperContent", [Fi, Ii] = bn(pt), Sn = a.forwardRef(
2592
2589
  transform: D ? k.transform : "translate(0, -200%)",
2593
2590
  // keep off the page when measuring
2594
2591
  minWidth: "max-content",
2595
- zIndex: zn,
2592
+ zIndex: Yn,
2596
2593
  "--radix-popper-transform-origin": [
2597
- (wt = S.transformOrigin) == null ? void 0 : wt.x,
2598
- (bt = S.transformOrigin) == null ? void 0 : bt.y
2594
+ (yt = S.transformOrigin) == null ? void 0 : yt.x,
2595
+ (wt = S.transformOrigin) == null ? void 0 : wt.y
2599
2596
  ].join(" "),
2600
2597
  // hide the content if using the hide middleware and should be hidden
2601
2598
  // set visibility to hidden and disable pointer events so the UI behaves
2602
2599
  // as if the PopperContent isn't there at all
2603
- ...((xt = S.hide) == null ? void 0 : xt.referenceHidden) && {
2600
+ ...((bt = S.hide) == null ? void 0 : bt.referenceHidden) && {
2604
2601
  visibility: "hidden",
2605
2602
  pointerEvents: "none"
2606
2603
  }
2607
2604
  },
2608
2605
  dir: e.dir,
2609
2606
  children: /* @__PURE__ */ C(
2610
- Fi,
2607
+ Di,
2611
2608
  {
2612
2609
  scope: n,
2613
2610
  placedSide: T,
2614
2611
  onArrowChange: E,
2615
- arrowX: Vn,
2616
- arrowY: jn,
2617
- shouldHideArrow: Un,
2612
+ arrowX: Un,
2613
+ arrowY: zn,
2614
+ shouldHideArrow: jn,
2618
2615
  children: /* @__PURE__ */ C(
2619
- G.div,
2616
+ q.div,
2620
2617
  {
2621
2618
  "data-side": T,
2622
2619
  "data-align": _,
@@ -2636,14 +2633,14 @@ var pt = "PopperContent", [Fi, Ii] = bn(pt), Sn = a.forwardRef(
2636
2633
  );
2637
2634
  }
2638
2635
  );
2639
- Sn.displayName = pt;
2640
- var Rn = "PopperArrow", Wi = {
2636
+ Rn.displayName = ht;
2637
+ var On = "PopperArrow", Fi = {
2641
2638
  top: "bottom",
2642
2639
  right: "left",
2643
2640
  bottom: "top",
2644
2641
  left: "right"
2645
- }, On = a.forwardRef(function(t, n) {
2646
- const { __scopePopper: r, ...o } = t, i = Ii(Rn, r), s = Wi[i.placedSide];
2642
+ }, Nn = a.forwardRef(function(t, n) {
2643
+ const { __scopePopper: r, ...o } = t, i = _i(On, r), s = Fi[i.placedSide];
2647
2644
  return (
2648
2645
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2649
2646
  // doesn't report size as we'd expect on SVG elements.
@@ -2672,7 +2669,7 @@ var Rn = "PopperArrow", Wi = {
2672
2669
  visibility: i.shouldHideArrow ? "hidden" : void 0
2673
2670
  },
2674
2671
  children: /* @__PURE__ */ C(
2675
- Di,
2672
+ ki,
2676
2673
  {
2677
2674
  ...o,
2678
2675
  ref: n,
@@ -2687,27 +2684,27 @@ var Rn = "PopperArrow", Wi = {
2687
2684
  )
2688
2685
  );
2689
2686
  });
2690
- On.displayName = Rn;
2691
- function Bi(e) {
2687
+ Nn.displayName = On;
2688
+ function Ii(e) {
2692
2689
  return e !== null;
2693
2690
  }
2694
- var $i = (e) => ({
2691
+ var Wi = (e) => ({
2695
2692
  name: "transformOrigin",
2696
2693
  options: e,
2697
2694
  fn(t) {
2698
2695
  var v, y, x;
2699
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Nn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2696
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Mn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2700
2697
  let g = "", h = "";
2701
2698
  return l === "bottom" ? (g = s ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (g = s ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (g = `${-u}px`, h = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + u}px`, h = s ? d : `${m}px`), { data: { x: g, y: h } };
2702
2699
  }
2703
2700
  });
2704
- function Nn(e) {
2701
+ function Mn(e) {
2705
2702
  const [t, n = "center"] = e.split("-");
2706
2703
  return [t, n];
2707
2704
  }
2708
- var Hi = Cn, Mn = An, Vi = Sn, ji = On, Ve = "Popover", [Tn, gs] = Yt(Ve, [
2709
- xn
2710
- ]), Ce = xn(), [Ui, oe] = Tn(Ve), kn = (e) => {
2705
+ var Bi = Pn, Tn = Sn, $i = Rn, Hi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
2706
+ En
2707
+ ]), Ce = En(), [Vi, oe] = kn(Ve), Ln = (e) => {
2711
2708
  const {
2712
2709
  __scopePopover: t,
2713
2710
  children: n,
@@ -2715,17 +2712,17 @@ var Hi = Cn, Mn = An, Vi = Sn, ji = On, Ve = "Popover", [Tn, gs] = Yt(Ve, [
2715
2712
  defaultOpen: o,
2716
2713
  onOpenChange: i,
2717
2714
  modal: s = !1
2718
- } = e, c = Ce(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, p] = Er({
2715
+ } = e, c = Ce(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, p] = br({
2719
2716
  prop: r,
2720
2717
  defaultProp: o ?? !1,
2721
2718
  onChange: i,
2722
2719
  caller: Ve
2723
2720
  });
2724
- return /* @__PURE__ */ C(Hi, { ...c, children: /* @__PURE__ */ C(
2725
- Ui,
2721
+ return /* @__PURE__ */ C(Bi, { ...c, children: /* @__PURE__ */ C(
2722
+ Vi,
2726
2723
  {
2727
2724
  scope: t,
2728
- contentId: Mr(),
2725
+ contentId: Or(),
2729
2726
  triggerRef: u,
2730
2727
  open: d,
2731
2728
  onOpenChange: p,
@@ -2738,65 +2735,65 @@ var Hi = Cn, Mn = An, Vi = Sn, ji = On, Ve = "Popover", [Tn, gs] = Yt(Ve, [
2738
2735
  }
2739
2736
  ) });
2740
2737
  };
2741
- kn.displayName = Ve;
2742
- var Ln = "PopoverAnchor", Dn = a.forwardRef(
2738
+ Ln.displayName = Ve;
2739
+ var Dn = "PopoverAnchor", _n = a.forwardRef(
2743
2740
  (e, t) => {
2744
- const { __scopePopover: n, ...r } = e, o = oe(Ln, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2745
- return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Mn, { ...i, ...r, ref: t });
2741
+ const { __scopePopover: n, ...r } = e, o = oe(Dn, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2742
+ return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Tn, { ...i, ...r, ref: t });
2746
2743
  }
2747
2744
  );
2748
- Dn.displayName = Ln;
2749
- var _n = "PopoverTrigger", Fn = a.forwardRef(
2745
+ _n.displayName = Dn;
2746
+ var Fn = "PopoverTrigger", In = a.forwardRef(
2750
2747
  (e, t) => {
2751
- const { __scopePopover: n, ...r } = e, o = oe(_n, n), i = Ce(n), s = q(t, o.triggerRef), c = /* @__PURE__ */ C(
2752
- G.button,
2748
+ const { __scopePopover: n, ...r } = e, o = oe(Fn, n), i = Ce(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2749
+ q.button,
2753
2750
  {
2754
2751
  type: "button",
2755
2752
  "aria-haspopup": "dialog",
2756
2753
  "aria-expanded": o.open,
2757
2754
  "aria-controls": o.contentId,
2758
- "data-state": Hn(o.open),
2755
+ "data-state": Vn(o.open),
2759
2756
  ...r,
2760
2757
  ref: s,
2761
- onClick: ee(e.onClick, o.onOpenToggle)
2758
+ onClick: J(e.onClick, o.onOpenToggle)
2762
2759
  }
2763
2760
  );
2764
- return o.hasCustomAnchor ? c : /* @__PURE__ */ C(Mn, { asChild: !0, ...i, children: c });
2761
+ return o.hasCustomAnchor ? c : /* @__PURE__ */ C(Tn, { asChild: !0, ...i, children: c });
2765
2762
  }
2766
2763
  );
2767
- Fn.displayName = _n;
2768
- var mt = "PopoverPortal", [zi, Yi] = Tn(mt, {
2764
+ In.displayName = Fn;
2765
+ var pt = "PopoverPortal", [Ui, zi] = kn(pt, {
2769
2766
  forceMount: void 0
2770
- }), In = (e) => {
2771
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(mt, t);
2772
- return /* @__PURE__ */ C(zi, { scope: t, forceMount: n, children: /* @__PURE__ */ C(it, { present: n || i.open, children: /* @__PURE__ */ C(Qt, { asChild: !0, container: o, children: r }) }) });
2767
+ }), Wn = (e) => {
2768
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(pt, t);
2769
+ return /* @__PURE__ */ C(Ui, { scope: t, forceMount: n, children: /* @__PURE__ */ C(ot, { present: n || i.open, children: /* @__PURE__ */ C(Jt, { asChild: !0, container: o, children: r }) }) });
2773
2770
  };
2774
- In.displayName = mt;
2775
- var pe = "PopoverContent", Wn = a.forwardRef(
2771
+ Wn.displayName = pt;
2772
+ var pe = "PopoverContent", Bn = a.forwardRef(
2776
2773
  (e, t) => {
2777
- const n = Yi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2778
- return /* @__PURE__ */ C(it, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Ki, { ...o, ref: t }) : /* @__PURE__ */ C(Zi, { ...o, ref: t }) });
2774
+ const n = zi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2775
+ return /* @__PURE__ */ C(ot, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Yi, { ...o, ref: t }) : /* @__PURE__ */ C(Xi, { ...o, ref: t }) });
2779
2776
  }
2780
2777
  );
2781
- Wn.displayName = pe;
2782
- var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2778
+ Bn.displayName = pe;
2779
+ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2783
2780
  (e, t) => {
2784
- const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = q(t, r), i = a.useRef(!1);
2781
+ const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
2785
2782
  return a.useEffect(() => {
2786
2783
  const s = r.current;
2787
- if (s) return Do(s);
2788
- }, []), /* @__PURE__ */ C(cn, { as: Xi, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2789
- Bn,
2784
+ if (s) return ko(s);
2785
+ }, []), /* @__PURE__ */ C(an, { as: ji, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2786
+ $n,
2790
2787
  {
2791
2788
  ...e,
2792
2789
  ref: o,
2793
2790
  trapFocus: n.open,
2794
2791
  disableOutsidePointerEvents: !0,
2795
- onCloseAutoFocus: ee(e.onCloseAutoFocus, (s) => {
2792
+ onCloseAutoFocus: J(e.onCloseAutoFocus, (s) => {
2796
2793
  var c;
2797
2794
  s.preventDefault(), i.current || (c = n.triggerRef.current) == null || c.focus();
2798
2795
  }),
2799
- onPointerDownOutside: ee(
2796
+ onPointerDownOutside: J(
2800
2797
  e.onPointerDownOutside,
2801
2798
  (s) => {
2802
2799
  const c = s.detail.originalEvent, u = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || u;
@@ -2804,7 +2801,7 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2804
2801
  },
2805
2802
  { checkForDefaultPrevented: !1 }
2806
2803
  ),
2807
- onFocusOutside: ee(
2804
+ onFocusOutside: J(
2808
2805
  e.onFocusOutside,
2809
2806
  (s) => s.preventDefault(),
2810
2807
  { checkForDefaultPrevented: !1 }
@@ -2812,11 +2809,11 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2812
2809
  }
2813
2810
  ) });
2814
2811
  }
2815
- ), Zi = a.forwardRef(
2812
+ ), Xi = a.forwardRef(
2816
2813
  (e, t) => {
2817
2814
  const n = oe(pe, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
2818
2815
  return /* @__PURE__ */ C(
2819
- Bn,
2816
+ $n,
2820
2817
  {
2821
2818
  ...e,
2822
2819
  ref: t,
@@ -2835,7 +2832,7 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2835
2832
  }
2836
2833
  );
2837
2834
  }
2838
- ), Bn = a.forwardRef(
2835
+ ), $n = a.forwardRef(
2839
2836
  (e, t) => {
2840
2837
  const {
2841
2838
  __scopePopover: n,
@@ -2849,8 +2846,8 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2849
2846
  onInteractOutside: f,
2850
2847
  ...d
2851
2848
  } = e, p = oe(pe, n), m = Ce(n);
2852
- return Xr(), /* @__PURE__ */ C(
2853
- qt,
2849
+ return jr(), /* @__PURE__ */ C(
2850
+ Gt,
2854
2851
  {
2855
2852
  asChild: !0,
2856
2853
  loop: !0,
@@ -2858,7 +2855,7 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2858
2855
  onMountAutoFocus: o,
2859
2856
  onUnmountAutoFocus: i,
2860
2857
  children: /* @__PURE__ */ C(
2861
- Kt,
2858
+ Zt,
2862
2859
  {
2863
2860
  asChild: !0,
2864
2861
  disableOutsidePointerEvents: s,
@@ -2868,9 +2865,9 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2868
2865
  onFocusOutside: l,
2869
2866
  onDismiss: () => p.onOpenChange(!1),
2870
2867
  children: /* @__PURE__ */ C(
2871
- Vi,
2868
+ $i,
2872
2869
  {
2873
- "data-state": Hn(p.open),
2870
+ "data-state": Vn(p.open),
2874
2871
  role: "dialog",
2875
2872
  id: p.contentId,
2876
2873
  ...m,
@@ -2891,66 +2888,66 @@ var Xi = /* @__PURE__ */ zt("PopoverContent.RemoveScroll"), Ki = a.forwardRef(
2891
2888
  }
2892
2889
  );
2893
2890
  }
2894
- ), $n = "PopoverClose", qi = a.forwardRef(
2891
+ ), Hn = "PopoverClose", Ki = a.forwardRef(
2895
2892
  (e, t) => {
2896
- const { __scopePopover: n, ...r } = e, o = oe($n, n);
2893
+ const { __scopePopover: n, ...r } = e, o = oe(Hn, n);
2897
2894
  return /* @__PURE__ */ C(
2898
- G.button,
2895
+ q.button,
2899
2896
  {
2900
2897
  type: "button",
2901
2898
  ...r,
2902
2899
  ref: t,
2903
- onClick: ee(e.onClick, () => o.onOpenChange(!1))
2900
+ onClick: J(e.onClick, () => o.onOpenChange(!1))
2904
2901
  }
2905
2902
  );
2906
2903
  }
2907
2904
  );
2908
- qi.displayName = $n;
2909
- var Gi = "PopoverArrow", Qi = a.forwardRef(
2905
+ Ki.displayName = Hn;
2906
+ var Zi = "PopoverArrow", qi = a.forwardRef(
2910
2907
  (e, t) => {
2911
2908
  const { __scopePopover: n, ...r } = e, o = Ce(n);
2912
- return /* @__PURE__ */ C(ji, { ...o, ...r, ref: t });
2909
+ return /* @__PURE__ */ C(Hi, { ...o, ...r, ref: t });
2913
2910
  }
2914
2911
  );
2915
- Qi.displayName = Gi;
2916
- function Hn(e) {
2912
+ qi.displayName = Zi;
2913
+ function Vn(e) {
2917
2914
  return e ? "open" : "closed";
2918
2915
  }
2919
- var Ji = kn, es = Dn, ts = Fn, ns = In, rs = Wn;
2920
- const os = "_anchor_pbx6r_285", is = "_container_pbx6r_290", ss = "_radio_pbx6r_307", cs = "_check_pbx6r_319", as = "_radioInput_pbx6r_327", ye = {
2921
- anchor: os,
2922
- container: is,
2923
- radio: ss,
2924
- check: cs,
2925
- radioInput: as
2916
+ var Gi = Ln, Qi = _n, Ji = In, es = Wn, ts = Bn;
2917
+ const ns = "_anchor_pbx6r_285", rs = "_container_pbx6r_290", os = "_radio_pbx6r_307", is = "_check_pbx6r_319", ss = "_radioInput_pbx6r_327", ye = {
2918
+ anchor: ns,
2919
+ container: rs,
2920
+ radio: os,
2921
+ check: is,
2922
+ radioInput: ss
2926
2923
  };
2927
2924
  function Qe({ children: e, id: t, ...n }) {
2928
- return /* @__PURE__ */ J(Ut, { children: [
2925
+ return /* @__PURE__ */ Q(Ut, { children: [
2929
2926
  /* @__PURE__ */ C(
2930
2927
  "input",
2931
2928
  {
2932
2929
  type: "radio",
2933
2930
  id: t,
2934
- className: tr(ye.radioInput, "sr-only"),
2931
+ className: nr(ye.radioInput, "sr-only"),
2935
2932
  ...n
2936
2933
  }
2937
2934
  ),
2938
- /* @__PURE__ */ J("label", { htmlFor: t, className: ye.radio, children: [
2935
+ /* @__PURE__ */ Q("label", { htmlFor: t, className: ye.radio, children: [
2939
2936
  e,
2940
2937
  /* @__PURE__ */ C(sr, { className: ye.check })
2941
2938
  ] })
2942
2939
  ] });
2943
2940
  }
2944
- function ys() {
2945
- const { theme: e, systemTheme: t, setTheme: n } = Gn(), r = rr();
2946
- return /* @__PURE__ */ J(Ji, { children: [
2947
- /* @__PURE__ */ C(ts, { asChild: !0, children: /* @__PURE__ */ J(nr, { variant: "transparent", "aria-label": "Preferences", children: [
2941
+ function vs() {
2942
+ const { theme: e, systemTheme: t, setTheme: n } = Qn(), r = or();
2943
+ return /* @__PURE__ */ Q(Gi, { children: [
2944
+ /* @__PURE__ */ C(Ji, { asChild: !0, children: /* @__PURE__ */ Q(rr, { variant: "transparent", "aria-label": "Preferences", children: [
2948
2945
  /* @__PURE__ */ C(lr, {}),
2949
- /* @__PURE__ */ C(es, { className: ye.anchor })
2946
+ /* @__PURE__ */ C(Qi, { className: ye.anchor })
2950
2947
  ] }) }),
2951
- /* @__PURE__ */ C(ns, { children: /* @__PURE__ */ C(rs, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ J(Ut, { children: [
2948
+ /* @__PURE__ */ C(es, { children: /* @__PURE__ */ C(ts, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ Q(Ut, { children: [
2952
2949
  /* @__PURE__ */ C("span", { children: "Appearance" }),
2953
- /* @__PURE__ */ J(
2950
+ /* @__PURE__ */ Q(
2954
2951
  Qe,
2955
2952
  {
2956
2953
  id: "system",
@@ -2965,7 +2962,7 @@ function ys() {
2965
2962
  ]
2966
2963
  }
2967
2964
  ),
2968
- /* @__PURE__ */ J(
2965
+ /* @__PURE__ */ Q(
2969
2966
  Qe,
2970
2967
  {
2971
2968
  id: "light",
@@ -2978,7 +2975,7 @@ function ys() {
2978
2975
  ]
2979
2976
  }
2980
2977
  ),
2981
- /* @__PURE__ */ J(
2978
+ /* @__PURE__ */ Q(
2982
2979
  Qe,
2983
2980
  {
2984
2981
  id: "dark",
@@ -2995,6 +2992,6 @@ function ys() {
2995
2992
  ] });
2996
2993
  }
2997
2994
  export {
2998
- ys as PrefPanel,
2995
+ vs as PrefPanel,
2999
2996
  Qe as PrefRadio
3000
2997
  };