@golocalinteractive/golocal-cloud-wrapper 1.0.68 → 1.0.70

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,4 +1,4 @@
1
- import * as l from "react";
1
+ import * as u from "react";
2
2
  import Se, { forwardRef as Ir, createElement as sn, useState as ze, useEffect as wn, useLayoutEffect as As, createContext as Ns, useContext as Ps } from "react";
3
3
  import * as Dr from "react-dom";
4
4
  import _s from "react-dom";
@@ -150,13 +150,13 @@ function Ls() {
150
150
  configurable: !0
151
151
  });
152
152
  }
153
- function u() {
153
+ function l() {
154
154
  var w = e(this.type);
155
155
  return I[w] || (I[w] = !0, console.error(
156
156
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
157
157
  )), w = this.props.ref, w !== void 0 ? w : null;
158
158
  }
159
- function f(w, O, F, $, K, J, re, W) {
159
+ function d(w, O, F, $, K, J, re, W) {
160
160
  return F = J.ref, w = {
161
161
  $$typeof: g,
162
162
  type: w,
@@ -165,7 +165,7 @@ function Ls() {
165
165
  _owner: K
166
166
  }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(w, "ref", {
167
167
  enumerable: !1,
168
- get: u
168
+ get: l
169
169
  }) : Object.defineProperty(w, "ref", { enumerable: !1, value: null }), w._store = {}, Object.defineProperty(w._store, "validated", {
170
170
  configurable: !1,
171
171
  enumerable: !1,
@@ -188,7 +188,7 @@ function Ls() {
188
188
  value: W
189
189
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
190
190
  }
191
- function d(w, O, F, $, K, J, re, W) {
191
+ function f(w, O, F, $, K, J, re, W) {
192
192
  var Z = O.children;
193
193
  if (Z !== void 0)
194
194
  if ($)
@@ -227,7 +227,7 @@ React keys must be passed directly to JSX without using spread:
227
227
  return Z && i(
228
228
  F,
229
229
  typeof w == "function" ? w.displayName || w.name || "Unknown" : w
230
- ), f(
230
+ ), d(
231
231
  w,
232
232
  Z,
233
233
  J,
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
255
255
  )(), S = H(r(a)), _ = {};
256
256
  Qe.Fragment = h, Qe.jsx = function(w, O, F, $, K) {
257
257
  var J = 1e4 > U.recentlyCreatedOwnerStacks++;
258
- return d(
258
+ return f(
259
259
  w,
260
260
  O,
261
261
  F,
@@ -267,7 +267,7 @@ React keys must be passed directly to JSX without using spread:
267
267
  );
268
268
  }, Qe.jsxs = function(w, O, F, $, K) {
269
269
  var J = 1e4 > U.recentlyCreatedOwnerStacks++;
270
- return d(
270
+ return f(
271
271
  w,
272
272
  O,
273
273
  F,
@@ -307,15 +307,15 @@ function jt(...e) {
307
307
  };
308
308
  }
309
309
  function ee(...e) {
310
- return l.useCallback(jt(...e), e);
310
+ return u.useCallback(jt(...e), e);
311
311
  }
312
312
  // @__NO_SIDE_EFFECTS__
313
313
  function We(e) {
314
- const t = /* @__PURE__ */ $s(e), n = l.forwardRef((r, o) => {
315
- const { children: a, ...s } = r, i = l.Children.toArray(a), u = i.find(Hs);
316
- if (u) {
317
- const f = u.props.children, d = i.map((p) => p === u ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
318
- return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
314
+ const t = /* @__PURE__ */ $s(e), n = u.forwardRef((r, o) => {
315
+ const { children: a, ...s } = r, i = u.Children.toArray(a), l = i.find(Hs);
316
+ if (l) {
317
+ const d = l.props.children, f = i.map((p) => p === l ? u.Children.count(d) > 1 ? u.Children.only(null) : u.isValidElement(d) ? d.props.children : null : p);
318
+ return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: u.isValidElement(d) ? u.cloneElement(d, void 0, f) : null });
319
319
  }
320
320
  return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: a });
321
321
  });
@@ -324,13 +324,13 @@ function We(e) {
324
324
  var Ue = /* @__PURE__ */ We("Slot");
325
325
  // @__NO_SIDE_EFFECTS__
326
326
  function $s(e) {
327
- const t = l.forwardRef((n, r) => {
327
+ const t = u.forwardRef((n, r) => {
328
328
  const { children: o, ...a } = n;
329
- if (l.isValidElement(o)) {
329
+ if (u.isValidElement(o)) {
330
330
  const s = Ws(o), i = Vs(a, o.props);
331
- return o.type !== l.Fragment && (i.ref = r ? jt(r, s) : s), l.cloneElement(o, i);
331
+ return o.type !== u.Fragment && (i.ref = r ? jt(r, s) : s), u.cloneElement(o, i);
332
332
  }
333
- return l.Children.count(o) > 1 ? l.Children.only(null) : null;
333
+ return u.Children.count(o) > 1 ? u.Children.only(null) : null;
334
334
  });
335
335
  return t.displayName = `${e}.SlotClone`, t;
336
336
  }
@@ -341,15 +341,15 @@ function zs(e) {
341
341
  return t.displayName = `${e}.Slottable`, t.__radixId = Lr, t;
342
342
  }
343
343
  function Hs(e) {
344
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Lr;
344
+ return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Lr;
345
345
  }
346
346
  function Vs(e, t) {
347
347
  const n = { ...t };
348
348
  for (const r in t) {
349
349
  const o = e[r], a = t[r];
350
350
  /^on[A-Z]/.test(r) ? o && a ? n[r] = (...i) => {
351
- const u = a(...i);
352
- return o(...i), u;
351
+ const l = a(...i);
352
+ return o(...i), l;
353
353
  } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...a } : r === "className" && (n[r] = [o, a].filter(Boolean).join(" "));
354
354
  }
355
355
  return { ...e, ...n };
@@ -378,16 +378,16 @@ var Bs = [
378
378
  "svg",
379
379
  "ul"
380
380
  ], q = Bs.reduce((e, t) => {
381
- const n = /* @__PURE__ */ We(`Primitive.${t}`), r = l.forwardRef((o, a) => {
382
- const { asChild: s, ...i } = o, u = s ? n : t;
383
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: a });
381
+ const n = /* @__PURE__ */ We(`Primitive.${t}`), r = u.forwardRef((o, a) => {
382
+ const { asChild: s, ...i } = o, l = s ? n : t;
383
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(l, { ...i, ref: a });
384
384
  });
385
385
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
386
386
  }, {});
387
387
  function Fr(e, t) {
388
388
  e && Dr.flushSync(() => e.dispatchEvent(t));
389
389
  }
390
- var Gs = "Separator", nr = "horizontal", Us = ["horizontal", "vertical"], $r = l.forwardRef((e, t) => {
390
+ var Gs = "Separator", nr = "horizontal", Us = ["horizontal", "vertical"], $r = u.forwardRef((e, t) => {
391
391
  const { decorative: n, orientation: r = nr, ...o } = e, a = Ks(r) ? r : nr, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
392
392
  return /* @__PURE__ */ c.jsx(
393
393
  q.div,
@@ -428,8 +428,8 @@ const yn = "-", Ys = (e) => {
428
428
  return i[0] === "" && i.length !== 1 && i.shift(), Wr(i, t) || Zs(s);
429
429
  },
430
430
  getConflictingClassGroupIds: (s, i) => {
431
- const u = n[s] || [];
432
- return i && r[s] ? [...u, ...r[s]] : u;
431
+ const l = n[s] || [];
432
+ return i && r[s] ? [...l, ...r[s]] : l;
433
433
  }
434
434
  };
435
435
  }, Wr = (e, t) => {
@@ -523,22 +523,22 @@ const yn = "-", Ys = (e) => {
523
523
  } = e;
524
524
  let r = (o) => {
525
525
  const a = [];
526
- let s = 0, i = 0, u = 0, f;
526
+ let s = 0, i = 0, l = 0, d;
527
527
  for (let b = 0; b < o.length; b++) {
528
528
  let h = o[b];
529
529
  if (s === 0 && i === 0) {
530
530
  if (h === un) {
531
- a.push(o.slice(u, b)), u = b + Qs;
531
+ a.push(o.slice(l, b)), l = b + Qs;
532
532
  continue;
533
533
  }
534
534
  if (h === "/") {
535
- f = b;
535
+ d = b;
536
536
  continue;
537
537
  }
538
538
  }
539
539
  h === "[" ? s++ : h === "]" ? s-- : h === "(" ? i++ : h === ")" && i--;
540
540
  }
541
- const d = a.length === 0 ? o : o.substring(u), p = ti(d), m = p !== d, g = f && f > u ? f - u : void 0;
541
+ const f = a.length === 0 ? o : o.substring(l), p = ti(f), m = p !== f, g = d && d > l ? d - l : void 0;
542
542
  return {
543
543
  modifiers: a,
544
544
  hasImportantModifier: m,
@@ -587,27 +587,27 @@ const yn = "-", Ys = (e) => {
587
587
  getConflictingClassGroupIds: o,
588
588
  sortModifiers: a
589
589
  } = t, s = [], i = e.trim().split(oi);
590
- let u = "";
591
- for (let f = i.length - 1; f >= 0; f -= 1) {
592
- const d = i[f], {
590
+ let l = "";
591
+ for (let d = i.length - 1; d >= 0; d -= 1) {
592
+ const f = i[d], {
593
593
  isExternal: p,
594
594
  modifiers: m,
595
595
  hasImportantModifier: g,
596
596
  baseClassName: b,
597
597
  maybePostfixModifierPosition: h
598
- } = n(d);
598
+ } = n(f);
599
599
  if (p) {
600
- u = d + (u.length > 0 ? " " + u : u);
600
+ l = f + (l.length > 0 ? " " + l : l);
601
601
  continue;
602
602
  }
603
603
  let v = !!h, x = r(v ? b.substring(0, h) : b);
604
604
  if (!x) {
605
605
  if (!v) {
606
- u = d + (u.length > 0 ? " " + u : u);
606
+ l = f + (l.length > 0 ? " " + l : l);
607
607
  continue;
608
608
  }
609
609
  if (x = r(b), !x) {
610
- u = d + (u.length > 0 ? " " + u : u);
610
+ l = f + (l.length > 0 ? " " + l : l);
611
611
  continue;
612
612
  }
613
613
  v = !1;
@@ -621,9 +621,9 @@ const yn = "-", Ys = (e) => {
621
621
  const k = M[T];
622
622
  s.push(C + k);
623
623
  }
624
- u = d + (u.length > 0 ? " " + u : u);
624
+ l = f + (l.length > 0 ? " " + l : l);
625
625
  }
626
- return u;
626
+ return l;
627
627
  };
628
628
  function si() {
629
629
  let e = 0, t, n, r = "";
@@ -641,16 +641,16 @@ const Br = (e) => {
641
641
  };
642
642
  function ii(e, ...t) {
643
643
  let n, r, o, a = s;
644
- function s(u) {
645
- const f = t.reduce((d, p) => p(d), e());
646
- return n = ri(f), r = n.cache.get, o = n.cache.set, a = i, i(u);
644
+ function s(l) {
645
+ const d = t.reduce((f, p) => p(f), e());
646
+ return n = ri(d), r = n.cache.get, o = n.cache.set, a = i, i(l);
647
647
  }
648
- function i(u) {
649
- const f = r(u);
650
- if (f)
651
- return f;
652
- const d = ai(u, n);
653
- return o(u, d), d;
648
+ function i(l) {
649
+ const d = r(l);
650
+ if (d)
651
+ return d;
652
+ const f = ai(l, n);
653
+ return o(l, f), f;
654
654
  }
655
655
  return function() {
656
656
  return a(si.apply(null, arguments));
@@ -671,7 +671,7 @@ const Q = (e) => {
671
671
  const r = Ur.exec(e);
672
672
  return r ? r[1] ? t(r[1]) : n : !1;
673
673
  }, Yr = (e) => e === "position" || e === "percentage", Zr = (e) => e === "image" || e === "url", Xr = (e) => e === "length" || e === "size" || e === "bg-size", qr = (e) => e === "length", Si = (e) => e === "number", Ri = (e) => e === "family-name", Jr = (e) => e === "shadow", Mi = () => {
674
- const e = Q("color"), t = Q("font"), n = Q("text"), r = Q("font-weight"), o = Q("tracking"), a = Q("leading"), s = Q("breakpoint"), i = Q("container"), u = Q("spacing"), f = Q("radius"), d = Q("shadow"), p = Q("inset-shadow"), m = Q("text-shadow"), g = Q("drop-shadow"), b = Q("blur"), h = Q("perspective"), v = Q("aspect"), x = Q("ease"), y = Q("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
674
+ const e = Q("color"), t = Q("font"), n = Q("text"), r = Q("font-weight"), o = Q("tracking"), a = Q("leading"), s = Q("breakpoint"), i = Q("container"), l = Q("spacing"), d = Q("radius"), f = Q("shadow"), p = Q("inset-shadow"), m = Q("text-shadow"), g = Q("drop-shadow"), b = Q("blur"), h = Q("perspective"), v = Q("aspect"), x = Q("ease"), y = Q("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
675
675
  "center",
676
676
  "top",
677
677
  "bottom",
@@ -689,7 +689,7 @@ const Q = (e) => {
689
689
  "bottom-left",
690
690
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
691
691
  "left-bottom"
692
- ], M = () => [...E(), P, N], T = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [P, N, u], D = () => [De, "full", "auto", ...R()], z = () => [Ee, "none", "subgrid", P, N], U = () => ["auto", {
692
+ ], M = () => [...E(), P, N], T = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [P, N, l], D = () => [De, "full", "auto", ...R()], z = () => [Ee, "none", "subgrid", P, N], U = () => ["auto", {
693
693
  span: ["full", Ee, P, N]
694
694
  }, Ee, P, N], B = () => [Ee, "auto", P, N], G = () => ["auto", "min", "max", "fr", P, N], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...R()], V = () => [De, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], S = () => [e, P, N], _ = () => [...E(), sr, ar, {
695
695
  position: [P, N]
@@ -702,7 +702,7 @@ const Q = (e) => {
702
702
  "",
703
703
  "none",
704
704
  "full",
705
- f,
705
+ d,
706
706
  P,
707
707
  N
708
708
  ], K = () => ["", L, et, _e], J = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], W = () => [L, Yt, sr, ar], Z = () => [
@@ -2061,7 +2061,7 @@ const Q = (e) => {
2061
2061
  // Deprecated since Tailwind CSS v4.0.0
2062
2062
  "",
2063
2063
  "none",
2064
- d,
2064
+ f,
2065
2065
  gt,
2066
2066
  ht
2067
2067
  ]
@@ -3144,7 +3144,7 @@ const Q = (e) => {
3144
3144
  function A(...e) {
3145
3145
  return ki(Vr(e));
3146
3146
  }
3147
- const Cn = l.forwardRef(
3147
+ const Cn = u.forwardRef(
3148
3148
  ({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ c.jsx(
3149
3149
  zr,
3150
3150
  {
@@ -3164,16 +3164,16 @@ Cn.displayName = zr.displayName;
3164
3164
  const ir = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cr = Vr, En = (e, t) => (n) => {
3165
3165
  var r;
3166
3166
  if ((t == null ? void 0 : t.variants) == null) return cr(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
3167
- const { variants: o, defaultVariants: a } = t, s = Object.keys(o).map((f) => {
3168
- const d = n == null ? void 0 : n[f], p = a == null ? void 0 : a[f];
3169
- if (d === null) return null;
3170
- const m = ir(d) || ir(p);
3171
- return o[f][m];
3172
- }), i = n && Object.entries(n).reduce((f, d) => {
3173
- let [p, m] = d;
3174
- return m === void 0 || (f[p] = m), f;
3175
- }, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((f, d) => {
3176
- let { class: p, className: m, ...g } = d;
3167
+ const { variants: o, defaultVariants: a } = t, s = Object.keys(o).map((d) => {
3168
+ const f = n == null ? void 0 : n[d], p = a == null ? void 0 : a[d];
3169
+ if (f === null) return null;
3170
+ const m = ir(f) || ir(p);
3171
+ return o[d][m];
3172
+ }), i = n && Object.entries(n).reduce((d, f) => {
3173
+ let [p, m] = f;
3174
+ return m === void 0 || (d[p] = m), d;
3175
+ }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
3176
+ let { class: p, className: m, ...g } = f;
3177
3177
  return Object.entries(g).every((b) => {
3178
3178
  let [h, v] = b;
3179
3179
  return Array.isArray(v) ? v.includes({
@@ -3184,12 +3184,12 @@ const ir = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cr = Vr, E
3184
3184
  ...i
3185
3185
  }[h] === v;
3186
3186
  }) ? [
3187
- ...f,
3187
+ ...d,
3188
3188
  p,
3189
3189
  m
3190
- ] : f;
3190
+ ] : d;
3191
3191
  }, []);
3192
- return cr(e, s, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
3192
+ return cr(e, s, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
3193
3193
  };
3194
3194
  /**
3195
3195
  * @license lucide-react v0.522.0 - ISC
@@ -3241,10 +3241,10 @@ const Ti = Ir(
3241
3241
  children: a,
3242
3242
  iconNode: s,
3243
3243
  ...i
3244
- }, u) => sn(
3244
+ }, l) => sn(
3245
3245
  "svg",
3246
3246
  {
3247
- ref: u,
3247
+ ref: l,
3248
3248
  ..._i,
3249
3249
  width: t,
3250
3250
  height: t,
@@ -3255,7 +3255,7 @@ const Ti = Ir(
3255
3255
  ...i
3256
3256
  },
3257
3257
  [
3258
- ...s.map(([f, d]) => sn(f, d)),
3258
+ ...s.map(([d, f]) => sn(d, f)),
3259
3259
  ...Array.isArray(a) ? a : [a]
3260
3260
  ]
3261
3261
  )
@@ -3500,7 +3500,7 @@ const ic = En(
3500
3500
  size: "default"
3501
3501
  }
3502
3502
  }
3503
- ), Sn = l.forwardRef(
3503
+ ), Sn = u.forwardRef(
3504
3504
  ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => {
3505
3505
  const s = r ? Ue : "button";
3506
3506
  return /* @__PURE__ */ c.jsx(
@@ -3514,7 +3514,7 @@ const ic = En(
3514
3514
  }
3515
3515
  );
3516
3516
  Sn.displayName = "Button";
3517
- const no = l.forwardRef(
3517
+ const no = u.forwardRef(
3518
3518
  ({ className: e, type: t, ...n }, r) => /* @__PURE__ */ c.jsx(
3519
3519
  "input",
3520
3520
  {
@@ -3536,13 +3536,13 @@ function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3536
3536
  };
3537
3537
  }
3538
3538
  function cc(e, t) {
3539
- const n = l.createContext(t), r = (a) => {
3540
- const { children: s, ...i } = a, u = l.useMemo(() => i, Object.values(i));
3541
- return /* @__PURE__ */ c.jsx(n.Provider, { value: u, children: s });
3539
+ const n = u.createContext(t), r = (a) => {
3540
+ const { children: s, ...i } = a, l = u.useMemo(() => i, Object.values(i));
3541
+ return /* @__PURE__ */ c.jsx(n.Provider, { value: l, children: s });
3542
3542
  };
3543
3543
  r.displayName = e + "Provider";
3544
3544
  function o(a) {
3545
- const s = l.useContext(n);
3545
+ const s = u.useContext(n);
3546
3546
  if (s) return s;
3547
3547
  if (t !== void 0) return t;
3548
3548
  throw new Error(`\`${a}\` must be used within \`${e}\``);
@@ -3552,30 +3552,30 @@ function cc(e, t) {
3552
3552
  function je(e, t = []) {
3553
3553
  let n = [];
3554
3554
  function r(a, s) {
3555
- const i = l.createContext(s), u = n.length;
3555
+ const i = u.createContext(s), l = n.length;
3556
3556
  n = [...n, s];
3557
- const f = (p) => {
3557
+ const d = (p) => {
3558
3558
  var x;
3559
- const { scope: m, children: g, ...b } = p, h = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[u]) || i, v = l.useMemo(() => b, Object.values(b));
3559
+ const { scope: m, children: g, ...b } = p, h = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[l]) || i, v = u.useMemo(() => b, Object.values(b));
3560
3560
  return /* @__PURE__ */ c.jsx(h.Provider, { value: v, children: g });
3561
3561
  };
3562
- f.displayName = a + "Provider";
3563
- function d(p, m) {
3562
+ d.displayName = a + "Provider";
3563
+ function f(p, m) {
3564
3564
  var h;
3565
- const g = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[u]) || i, b = l.useContext(g);
3565
+ const g = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[l]) || i, b = u.useContext(g);
3566
3566
  if (b) return b;
3567
3567
  if (s !== void 0) return s;
3568
3568
  throw new Error(`\`${p}\` must be used within \`${a}\``);
3569
3569
  }
3570
- return [f, d];
3570
+ return [d, f];
3571
3571
  }
3572
3572
  const o = () => {
3573
- const a = n.map((s) => l.createContext(s));
3573
+ const a = n.map((s) => u.createContext(s));
3574
3574
  return function(i) {
3575
- const u = (i == null ? void 0 : i[e]) || a;
3576
- return l.useMemo(
3577
- () => ({ [`__scope${e}`]: { ...i, [e]: u } }),
3578
- [i, u]
3575
+ const l = (i == null ? void 0 : i[e]) || a;
3576
+ return u.useMemo(
3577
+ () => ({ [`__scope${e}`]: { ...i, [e]: l } }),
3578
+ [i, l]
3579
3579
  );
3580
3580
  };
3581
3581
  };
@@ -3590,25 +3590,25 @@ function lc(...e) {
3590
3590
  scopeName: o.scopeName
3591
3591
  }));
3592
3592
  return function(a) {
3593
- const s = r.reduce((i, { useScope: u, scopeName: f }) => {
3594
- const p = u(a)[`__scope${f}`];
3593
+ const s = r.reduce((i, { useScope: l, scopeName: d }) => {
3594
+ const p = l(a)[`__scope${d}`];
3595
3595
  return { ...i, ...p };
3596
3596
  }, {});
3597
- return l.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
3597
+ return u.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
3598
3598
  };
3599
3599
  };
3600
3600
  return n.scopeName = t.scopeName, n;
3601
3601
  }
3602
- var Me = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
3603
- }, uc = l[" useId ".trim().toString()] || (() => {
3602
+ var Me = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
3603
+ }, uc = u[" useId ".trim().toString()] || (() => {
3604
3604
  }), dc = 0;
3605
3605
  function be(e) {
3606
- const [t, n] = l.useState(uc());
3606
+ const [t, n] = u.useState(uc());
3607
3607
  return Me(() => {
3608
3608
  n((r) => r ?? String(dc++));
3609
3609
  }, [e]), e || (t ? `radix-${t}` : "");
3610
3610
  }
3611
- var fc = l[" useInsertionEffect ".trim().toString()] || Me;
3611
+ var fc = u[" useInsertionEffect ".trim().toString()] || Me;
3612
3612
  function it({
3613
3613
  prop: e,
3614
3614
  defaultProp: t,
@@ -3619,37 +3619,37 @@ function it({
3619
3619
  const [o, a, s] = pc({
3620
3620
  defaultProp: t,
3621
3621
  onChange: n
3622
- }), i = e !== void 0, u = i ? e : o;
3622
+ }), i = e !== void 0, l = i ? e : o;
3623
3623
  {
3624
- const d = l.useRef(e !== void 0);
3625
- l.useEffect(() => {
3626
- const p = d.current;
3624
+ const f = u.useRef(e !== void 0);
3625
+ u.useEffect(() => {
3626
+ const p = f.current;
3627
3627
  p !== i && console.warn(
3628
3628
  `${r} is changing from ${p ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
3629
- ), d.current = i;
3629
+ ), f.current = i;
3630
3630
  }, [i, r]);
3631
3631
  }
3632
- const f = l.useCallback(
3633
- (d) => {
3632
+ const d = u.useCallback(
3633
+ (f) => {
3634
3634
  var p;
3635
3635
  if (i) {
3636
- const m = mc(d) ? d(e) : d;
3636
+ const m = mc(f) ? f(e) : f;
3637
3637
  m !== e && ((p = s.current) == null || p.call(s, m));
3638
3638
  } else
3639
- a(d);
3639
+ a(f);
3640
3640
  },
3641
3641
  [i, e, a, s]
3642
3642
  );
3643
- return [u, f];
3643
+ return [l, d];
3644
3644
  }
3645
3645
  function pc({
3646
3646
  defaultProp: e,
3647
3647
  onChange: t
3648
3648
  }) {
3649
- const [n, r] = l.useState(e), o = l.useRef(n), a = l.useRef(t);
3649
+ const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
3650
3650
  return fc(() => {
3651
3651
  a.current = t;
3652
- }, [t]), l.useEffect(() => {
3652
+ }, [t]), u.useEffect(() => {
3653
3653
  var s;
3654
3654
  o.current !== n && ((s = a.current) == null || s.call(a, n), o.current = n);
3655
3655
  }, [n, o]), [n, r, a];
@@ -3658,28 +3658,28 @@ function mc(e) {
3658
3658
  return typeof e == "function";
3659
3659
  }
3660
3660
  function me(e) {
3661
- const t = l.useRef(e);
3662
- return l.useEffect(() => {
3661
+ const t = u.useRef(e);
3662
+ return u.useEffect(() => {
3663
3663
  t.current = e;
3664
- }), l.useMemo(() => (...n) => {
3664
+ }), u.useMemo(() => (...n) => {
3665
3665
  var r;
3666
3666
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
3667
3667
  }, []);
3668
3668
  }
3669
3669
  function hc(e, t = globalThis == null ? void 0 : globalThis.document) {
3670
3670
  const n = me(e);
3671
- l.useEffect(() => {
3671
+ u.useEffect(() => {
3672
3672
  const r = (o) => {
3673
3673
  o.key === "Escape" && n(o);
3674
3674
  };
3675
3675
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
3676
3676
  }, [n, t]);
3677
3677
  }
3678
- var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLayer.pointerDownOutside", bc = "dismissableLayer.focusOutside", fr, ro = l.createContext({
3678
+ var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLayer.pointerDownOutside", bc = "dismissableLayer.focusOutside", fr, ro = u.createContext({
3679
3679
  layers: /* @__PURE__ */ new Set(),
3680
3680
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
3681
3681
  branches: /* @__PURE__ */ new Set()
3682
- }), It = l.forwardRef(
3682
+ }), It = u.forwardRef(
3683
3683
  (e, t) => {
3684
3684
  const {
3685
3685
  disableOutsidePointerEvents: n = !1,
@@ -3688,30 +3688,30 @@ var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLa
3688
3688
  onFocusOutside: a,
3689
3689
  onInteractOutside: s,
3690
3690
  onDismiss: i,
3691
- ...u
3692
- } = e, f = l.useContext(ro), [d, p] = l.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), b = ee(t, (k) => p(k)), h = Array.from(f.layers), [v] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = d ? h.indexOf(d) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= x, M = yc((k) => {
3693
- const R = k.target, D = [...f.branches].some((z) => z.contains(R));
3691
+ ...l
3692
+ } = e, d = u.useContext(ro), [f, p] = u.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = u.useState({}), b = ee(t, (k) => p(k)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = f ? h.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= x, M = yc((k) => {
3693
+ const R = k.target, D = [...d.branches].some((z) => z.contains(R));
3694
3694
  !E || D || (o == null || o(k), s == null || s(k), k.defaultPrevented || i == null || i());
3695
3695
  }, m), T = Cc((k) => {
3696
3696
  const R = k.target;
3697
- [...f.branches].some((z) => z.contains(R)) || (a == null || a(k), s == null || s(k), k.defaultPrevented || i == null || i());
3697
+ [...d.branches].some((z) => z.contains(R)) || (a == null || a(k), s == null || s(k), k.defaultPrevented || i == null || i());
3698
3698
  }, m);
3699
3699
  return hc((k) => {
3700
- y === f.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && i && (k.preventDefault(), i()));
3701
- }, m), l.useEffect(() => {
3702
- if (d)
3703
- return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (fr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(d)), f.layers.add(d), pr(), () => {
3704
- n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = fr);
3700
+ y === d.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && i && (k.preventDefault(), i()));
3701
+ }, m), u.useEffect(() => {
3702
+ if (f)
3703
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (fr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), pr(), () => {
3704
+ n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = fr);
3705
3705
  };
3706
- }, [d, m, n, f]), l.useEffect(() => () => {
3707
- d && (f.layers.delete(d), f.layersWithOutsidePointerEventsDisabled.delete(d), pr());
3708
- }, [d, f]), l.useEffect(() => {
3706
+ }, [f, m, n, d]), u.useEffect(() => () => {
3707
+ f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), pr());
3708
+ }, [f, d]), u.useEffect(() => {
3709
3709
  const k = () => g({});
3710
3710
  return document.addEventListener(dn, k), () => document.removeEventListener(dn, k);
3711
3711
  }, []), /* @__PURE__ */ c.jsx(
3712
3712
  q.div,
3713
3713
  {
3714
- ...u,
3714
+ ...l,
3715
3715
  ref: b,
3716
3716
  style: {
3717
3717
  pointerEvents: C ? E ? "auto" : "none" : void 0,
@@ -3728,9 +3728,9 @@ var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLa
3728
3728
  }
3729
3729
  );
3730
3730
  It.displayName = gc;
3731
- var xc = "DismissableLayerBranch", wc = l.forwardRef((e, t) => {
3732
- const n = l.useContext(ro), r = l.useRef(null), o = ee(t, r);
3733
- return l.useEffect(() => {
3731
+ var xc = "DismissableLayerBranch", wc = u.forwardRef((e, t) => {
3732
+ const n = u.useContext(ro), r = u.useRef(null), o = ee(t, r);
3733
+ return u.useEffect(() => {
3734
3734
  const a = r.current;
3735
3735
  if (a)
3736
3736
  return n.branches.add(a), () => {
@@ -3740,21 +3740,21 @@ var xc = "DismissableLayerBranch", wc = l.forwardRef((e, t) => {
3740
3740
  });
3741
3741
  wc.displayName = xc;
3742
3742
  function yc(e, t = globalThis == null ? void 0 : globalThis.document) {
3743
- const n = me(e), r = l.useRef(!1), o = l.useRef(() => {
3743
+ const n = me(e), r = u.useRef(!1), o = u.useRef(() => {
3744
3744
  });
3745
- return l.useEffect(() => {
3745
+ return u.useEffect(() => {
3746
3746
  const a = (i) => {
3747
3747
  if (i.target && !r.current) {
3748
- let u = function() {
3748
+ let l = function() {
3749
3749
  oo(
3750
3750
  vc,
3751
3751
  n,
3752
- f,
3752
+ d,
3753
3753
  { discrete: !0 }
3754
3754
  );
3755
3755
  };
3756
- const f = { originalEvent: i };
3757
- i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
3756
+ const d = { originalEvent: i };
3757
+ i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = l, t.addEventListener("click", o.current, { once: !0 })) : l();
3758
3758
  } else
3759
3759
  t.removeEventListener("click", o.current);
3760
3760
  r.current = !1;
@@ -3770,8 +3770,8 @@ function yc(e, t = globalThis == null ? void 0 : globalThis.document) {
3770
3770
  };
3771
3771
  }
3772
3772
  function Cc(e, t = globalThis == null ? void 0 : globalThis.document) {
3773
- const n = me(e), r = l.useRef(!1);
3774
- return l.useEffect(() => {
3773
+ const n = me(e), r = u.useRef(!1);
3774
+ return u.useEffect(() => {
3775
3775
  const o = (a) => {
3776
3776
  a.target && !r.current && oo(bc, n, { originalEvent: a }, {
3777
3777
  discrete: !1
@@ -3791,14 +3791,14 @@ function oo(e, t, n, { discrete: r }) {
3791
3791
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
3792
3792
  t && o.addEventListener(e, t, { once: !0 }), r ? Fr(o, a) : o.dispatchEvent(a);
3793
3793
  }
3794
- var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr = { bubbles: !1, cancelable: !0 }, Ec = "FocusScope", Rn = l.forwardRef((e, t) => {
3794
+ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr = { bubbles: !1, cancelable: !0 }, Ec = "FocusScope", Rn = u.forwardRef((e, t) => {
3795
3795
  const {
3796
3796
  loop: n = !1,
3797
3797
  trapped: r = !1,
3798
3798
  onMountAutoFocus: o,
3799
3799
  onUnmountAutoFocus: a,
3800
3800
  ...s
3801
- } = e, [i, u] = l.useState(null), f = me(o), d = me(a), p = l.useRef(null), m = ee(t, (h) => u(h)), g = l.useRef({
3801
+ } = e, [i, l] = u.useState(null), d = me(o), f = me(a), p = u.useRef(null), m = ee(t, (h) => l(h)), g = u.useRef({
3802
3802
  paused: !1,
3803
3803
  pause() {
3804
3804
  this.paused = !0;
@@ -3807,7 +3807,7 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr
3807
3807
  this.paused = !1;
3808
3808
  }
3809
3809
  }).current;
3810
- l.useEffect(() => {
3810
+ u.useEffect(() => {
3811
3811
  if (r) {
3812
3812
  let h = function(C) {
3813
3813
  if (g.paused || !i) return;
@@ -3828,23 +3828,23 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr
3828
3828
  document.removeEventListener("focusin", h), document.removeEventListener("focusout", v), y.disconnect();
3829
3829
  };
3830
3830
  }
3831
- }, [r, i, g.paused]), l.useEffect(() => {
3831
+ }, [r, i, g.paused]), u.useEffect(() => {
3832
3832
  if (i) {
3833
3833
  gr.add(g);
3834
3834
  const h = document.activeElement;
3835
3835
  if (!i.contains(h)) {
3836
3836
  const x = new CustomEvent(Xt, mr);
3837
- i.addEventListener(Xt, f), i.dispatchEvent(x), x.defaultPrevented || (Sc(Nc(ao(i)), { select: !0 }), document.activeElement === h && Re(i));
3837
+ i.addEventListener(Xt, d), i.dispatchEvent(x), x.defaultPrevented || (Sc(Nc(ao(i)), { select: !0 }), document.activeElement === h && Re(i));
3838
3838
  }
3839
3839
  return () => {
3840
- i.removeEventListener(Xt, f), setTimeout(() => {
3840
+ i.removeEventListener(Xt, d), setTimeout(() => {
3841
3841
  const x = new CustomEvent(qt, mr);
3842
- i.addEventListener(qt, d), i.dispatchEvent(x), x.defaultPrevented || Re(h ?? document.body, { select: !0 }), i.removeEventListener(qt, d), gr.remove(g);
3842
+ i.addEventListener(qt, f), i.dispatchEvent(x), x.defaultPrevented || Re(h ?? document.body, { select: !0 }), i.removeEventListener(qt, f), gr.remove(g);
3843
3843
  }, 0);
3844
3844
  };
3845
3845
  }
3846
- }, [i, f, d, g]);
3847
- const b = l.useCallback(
3846
+ }, [i, d, f, g]);
3847
+ const b = u.useCallback(
3848
3848
  (h) => {
3849
3849
  if (!n && !r || g.paused) return;
3850
3850
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
@@ -3920,24 +3920,24 @@ function vr(e, t) {
3920
3920
  function Nc(e) {
3921
3921
  return e.filter((t) => t.tagName !== "A");
3922
3922
  }
3923
- var Pc = "Portal", Mn = l.forwardRef((e, t) => {
3923
+ var Pc = "Portal", Mn = u.forwardRef((e, t) => {
3924
3924
  var i;
3925
- const { container: n, ...r } = e, [o, a] = l.useState(!1);
3925
+ const { container: n, ...r } = e, [o, a] = u.useState(!1);
3926
3926
  Me(() => a(!0), []);
3927
3927
  const s = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
3928
3928
  return s ? _s.createPortal(/* @__PURE__ */ c.jsx(q.div, { ...r, ref: t }), s) : null;
3929
3929
  });
3930
3930
  Mn.displayName = Pc;
3931
3931
  function _c(e, t) {
3932
- return l.useReducer((n, r) => t[n][r] ?? n, e);
3932
+ return u.useReducer((n, r) => t[n][r] ?? n, e);
3933
3933
  }
3934
3934
  var ye = (e) => {
3935
- const { present: t, children: n } = e, r = Tc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), a = ee(r.ref, Oc(o));
3936
- return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: a }) : null;
3935
+ const { present: t, children: n } = e, r = Tc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : u.Children.only(n), a = ee(r.ref, Oc(o));
3936
+ return typeof n == "function" || r.isPresent ? u.cloneElement(o, { ref: a }) : null;
3937
3937
  };
3938
3938
  ye.displayName = "Presence";
3939
3939
  function Tc(e) {
3940
- const [t, n] = l.useState(), r = l.useRef(null), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = _c(s, {
3940
+ const [t, n] = u.useState(), r = u.useRef(null), o = u.useRef(e), a = u.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = _c(s, {
3941
3941
  mounted: {
3942
3942
  UNMOUNT: "unmounted",
3943
3943
  ANIMATION_OUT: "unmountSuspended"
@@ -3950,23 +3950,23 @@ function Tc(e) {
3950
3950
  MOUNT: "mounted"
3951
3951
  }
3952
3952
  });
3953
- return l.useEffect(() => {
3954
- const f = bt(r.current);
3955
- a.current = i === "mounted" ? f : "none";
3953
+ return u.useEffect(() => {
3954
+ const d = bt(r.current);
3955
+ a.current = i === "mounted" ? d : "none";
3956
3956
  }, [i]), Me(() => {
3957
- const f = r.current, d = o.current;
3958
- if (d !== e) {
3959
- const m = a.current, g = bt(f);
3960
- e ? u("MOUNT") : g === "none" || (f == null ? void 0 : f.display) === "none" ? u("UNMOUNT") : u(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
3957
+ const d = r.current, f = o.current;
3958
+ if (f !== e) {
3959
+ const m = a.current, g = bt(d);
3960
+ e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
3961
3961
  }
3962
- }, [e, u]), Me(() => {
3962
+ }, [e, l]), Me(() => {
3963
3963
  if (t) {
3964
- let f;
3965
- const d = t.ownerDocument.defaultView ?? window, p = (g) => {
3964
+ let d;
3965
+ const f = t.ownerDocument.defaultView ?? window, p = (g) => {
3966
3966
  const h = bt(r.current).includes(g.animationName);
3967
- if (g.target === t && h && (u("ANIMATION_END"), !o.current)) {
3967
+ if (g.target === t && h && (l("ANIMATION_END"), !o.current)) {
3968
3968
  const v = t.style.animationFillMode;
3969
- t.style.animationFillMode = "forwards", f = d.setTimeout(() => {
3969
+ t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
3970
3970
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
3971
3971
  });
3972
3972
  }
@@ -3974,14 +3974,14 @@ function Tc(e) {
3974
3974
  g.target === t && (a.current = bt(r.current));
3975
3975
  };
3976
3976
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
3977
- d.clearTimeout(f), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
3977
+ f.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
3978
3978
  };
3979
3979
  } else
3980
- u("ANIMATION_END");
3981
- }, [t, u]), {
3980
+ l("ANIMATION_END");
3981
+ }, [t, l]), {
3982
3982
  isPresent: ["mounted", "unmountSuspended"].includes(i),
3983
- ref: l.useCallback((f) => {
3984
- r.current = f ? getComputedStyle(f) : null, n(f);
3983
+ ref: u.useCallback((d) => {
3984
+ r.current = d ? getComputedStyle(d) : null, n(d);
3985
3985
  }, [])
3986
3986
  };
3987
3987
  }
@@ -3995,7 +3995,7 @@ function Oc(e) {
3995
3995
  }
3996
3996
  var Jt = 0;
3997
3997
  function so() {
3998
- l.useEffect(() => {
3998
+ u.useEffect(() => {
3999
3999
  const e = document.querySelectorAll("[data-radix-focus-guard]");
4000
4000
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? br()), document.body.insertAdjacentElement("beforeend", e[1] ?? br()), Jt++, () => {
4001
4001
  Jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Jt--;
@@ -4053,7 +4053,7 @@ function Lc(e, t) {
4053
4053
  })[0];
4054
4054
  return n.callback = t, n.facade;
4055
4055
  }
4056
- var Fc = typeof window < "u" ? l.useLayoutEffect : l.useEffect, xr = /* @__PURE__ */ new WeakMap();
4056
+ var Fc = typeof window < "u" ? u.useLayoutEffect : u.useEffect, xr = /* @__PURE__ */ new WeakMap();
4057
4057
  function $c(e, t) {
4058
4058
  var n = Lc(null, function(r) {
4059
4059
  return e.forEach(function(o) {
@@ -4113,18 +4113,18 @@ function Hc(e, t) {
4113
4113
  var i = n;
4114
4114
  n = [], i.forEach(a), s = n;
4115
4115
  }
4116
- var u = function() {
4117
- var d = s;
4118
- s = [], d.forEach(a);
4119
- }, f = function() {
4120
- return Promise.resolve().then(u);
4116
+ var l = function() {
4117
+ var f = s;
4118
+ s = [], f.forEach(a);
4119
+ }, d = function() {
4120
+ return Promise.resolve().then(l);
4121
4121
  };
4122
- f(), n = {
4123
- push: function(d) {
4124
- s.push(d), f();
4122
+ d(), n = {
4123
+ push: function(f) {
4124
+ s.push(f), d();
4125
4125
  },
4126
- filter: function(d) {
4127
- return s = s.filter(d), n;
4126
+ filter: function(f) {
4127
+ return s = s.filter(f), n;
4128
4128
  }
4129
4129
  };
4130
4130
  }
@@ -4143,24 +4143,24 @@ var co = function(e) {
4143
4143
  var r = t.read();
4144
4144
  if (!r)
4145
4145
  throw new Error("Sidecar medium not found");
4146
- return l.createElement(r, de({}, n));
4146
+ return u.createElement(r, de({}, n));
4147
4147
  };
4148
4148
  co.isSideCarExport = !0;
4149
4149
  function Wc(e, t) {
4150
4150
  return e.useMedium(t), co;
4151
4151
  }
4152
4152
  var lo = Vc(), en = function() {
4153
- }, Dt = l.forwardRef(function(e, t) {
4154
- var n = l.useRef(null), r = l.useState({
4153
+ }, Dt = u.forwardRef(function(e, t) {
4154
+ var n = u.useRef(null), r = u.useState({
4155
4155
  onScrollCapture: en,
4156
4156
  onWheelCapture: en,
4157
4157
  onTouchMoveCapture: en
4158
- }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, C = e.gapMode, E = io(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = m, T = $c([n, t]), k = de(de({}, E), o);
4159
- return l.createElement(
4160
- l.Fragment,
4158
+ }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, C = e.gapMode, E = io(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = m, T = $c([n, t]), k = de(de({}, E), o);
4159
+ return u.createElement(
4160
+ u.Fragment,
4161
4161
  null,
4162
- d && l.createElement(M, { sideCar: lo, removeScrollBar: f, shards: p, noRelative: g, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: C }),
4163
- s ? l.cloneElement(l.Children.only(i), de(de({}, k), { ref: T })) : l.createElement(y, de({}, k, { className: u, ref: T }), i)
4162
+ f && u.createElement(M, { sideCar: lo, removeScrollBar: d, shards: p, noRelative: g, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: C }),
4163
+ s ? u.cloneElement(u.Children.only(i), de(de({}, k), { ref: T })) : u.createElement(y, de({}, k, { className: l, ref: T }), i)
4164
4164
  );
4165
4165
  });
4166
4166
  Dt.defaultProps = {
@@ -4204,7 +4204,7 @@ var Yc = function() {
4204
4204
  }, Zc = function() {
4205
4205
  var e = Yc();
4206
4206
  return function(t, n) {
4207
- l.useEffect(function() {
4207
+ u.useEffect(function() {
4208
4208
  return e.add(t), function() {
4209
4209
  e.remove();
4210
4210
  };
@@ -4284,7 +4284,7 @@ var Yc = function() {
4284
4284
  var e = parseInt(document.body.getAttribute(He) || "0", 10);
4285
4285
  return isFinite(e) ? e : 0;
4286
4286
  }, tl = function() {
4287
- l.useEffect(function() {
4287
+ u.useEffect(function() {
4288
4288
  return document.body.setAttribute(He, (wr() + 1).toString()), function() {
4289
4289
  var e = wr() - 1;
4290
4290
  e <= 0 ? document.body.removeAttribute(He) : document.body.setAttribute(He, e.toString());
@@ -4293,10 +4293,10 @@ var Yc = function() {
4293
4293
  }, nl = function(e) {
4294
4294
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
4295
4295
  tl();
4296
- var a = l.useMemo(function() {
4296
+ var a = u.useMemo(function() {
4297
4297
  return Jc(o);
4298
4298
  }, [o]);
4299
- return l.createElement(Qc, { styles: el(a, !t, o, n ? "" : "!important") });
4299
+ return u.createElement(Qc, { styles: el(a, !t, o, n ? "" : "!important") });
4300
4300
  }, fn = !1;
4301
4301
  if (typeof window < "u")
4302
4302
  try {
@@ -4358,7 +4358,7 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
4358
4358
  }, cl = function(e, t) {
4359
4359
  return e === "h" && t === "rtl" ? -1 : 1;
4360
4360
  }, ll = function(e, t, n, r, o) {
4361
- var a = cl(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, u = t.contains(i), f = !1, d = s > 0, p = 0, m = 0;
4361
+ var a = cl(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, l = t.contains(i), d = !1, f = s > 0, p = 0, m = 0;
4362
4362
  do {
4363
4363
  if (!i)
4364
4364
  break;
@@ -4368,10 +4368,10 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
4368
4368
  i = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
4369
4369
  } while (
4370
4370
  // portaled content
4371
- !u && i !== document.body || // self content
4372
- u && (t.contains(i) || t === i)
4371
+ !l && i !== document.body || // self content
4372
+ l && (t.contains(i) || t === i)
4373
4373
  );
4374
- return (d && Math.abs(p) < 1 || !d && Math.abs(m) < 1) && (f = !0), f;
4374
+ return (f && Math.abs(p) < 1 || !f && Math.abs(m) < 1) && (d = !0), d;
4375
4375
  }, wt = function(e) {
4376
4376
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
4377
4377
  }, Cr = function(e) {
@@ -4387,10 +4387,10 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
4387
4387
  `);
4388
4388
  }, fl = 0, Fe = [];
4389
4389
  function pl(e) {
4390
- var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(fl++)[0], a = l.useState(uo)[0], s = l.useRef(e);
4391
- l.useEffect(function() {
4390
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(fl++)[0], a = u.useState(uo)[0], s = u.useRef(e);
4391
+ u.useEffect(function() {
4392
4392
  s.current = e;
4393
- }, [e]), l.useEffect(function() {
4393
+ }, [e]), u.useEffect(function() {
4394
4394
  if (e.inert) {
4395
4395
  document.body.classList.add("block-interactivity-".concat(o));
4396
4396
  var h = jc([e.lockRef.current], (e.shards || []).map(Er), !0).filter(Boolean);
@@ -4403,7 +4403,7 @@ function pl(e) {
4403
4403
  };
4404
4404
  }
4405
4405
  }, [e.inert, e.lockRef.current, e.shards]);
4406
- var i = l.useCallback(function(h, v) {
4406
+ var i = u.useCallback(function(h, v) {
4407
4407
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
4408
4408
  return !s.current.allowPinchZoom;
4409
4409
  var x = wt(h), y = n.current, C = "deltaX" in h ? h.deltaX : y[0] - x[0], E = "deltaY" in h ? h.deltaY : y[1] - x[1], M, T = h.target, k = Math.abs(C) > Math.abs(E) ? "h" : "v";
@@ -4418,7 +4418,7 @@ function pl(e) {
4418
4418
  return !0;
4419
4419
  var D = r.current || M;
4420
4420
  return ll(D, v, h, D === "h" ? C : E);
4421
- }, []), u = l.useCallback(function(h) {
4421
+ }, []), l = u.useCallback(function(h) {
4422
4422
  var v = h;
4423
4423
  if (!(!Fe.length || Fe[Fe.length - 1] !== a)) {
4424
4424
  var x = "deltaY" in v ? Cr(v) : wt(v), y = t.current.filter(function(M) {
@@ -4435,37 +4435,37 @@ function pl(e) {
4435
4435
  E && v.cancelable && v.preventDefault();
4436
4436
  }
4437
4437
  }
4438
- }, []), f = l.useCallback(function(h, v, x, y) {
4438
+ }, []), d = u.useCallback(function(h, v, x, y) {
4439
4439
  var C = { name: h, delta: v, target: x, should: y, shadowParent: ml(x) };
4440
4440
  t.current.push(C), setTimeout(function() {
4441
4441
  t.current = t.current.filter(function(E) {
4442
4442
  return E !== C;
4443
4443
  });
4444
4444
  }, 1);
4445
- }, []), d = l.useCallback(function(h) {
4445
+ }, []), f = u.useCallback(function(h) {
4446
4446
  n.current = wt(h), r.current = void 0;
4447
- }, []), p = l.useCallback(function(h) {
4448
- f(h.type, Cr(h), h.target, i(h, e.lockRef.current));
4449
- }, []), m = l.useCallback(function(h) {
4450
- f(h.type, wt(h), h.target, i(h, e.lockRef.current));
4447
+ }, []), p = u.useCallback(function(h) {
4448
+ d(h.type, Cr(h), h.target, i(h, e.lockRef.current));
4449
+ }, []), m = u.useCallback(function(h) {
4450
+ d(h.type, wt(h), h.target, i(h, e.lockRef.current));
4451
4451
  }, []);
4452
- l.useEffect(function() {
4452
+ u.useEffect(function() {
4453
4453
  return Fe.push(a), e.setCallbacks({
4454
4454
  onScrollCapture: p,
4455
4455
  onWheelCapture: p,
4456
4456
  onTouchMoveCapture: m
4457
- }), document.addEventListener("wheel", u, Le), document.addEventListener("touchmove", u, Le), document.addEventListener("touchstart", d, Le), function() {
4457
+ }), document.addEventListener("wheel", l, Le), document.addEventListener("touchmove", l, Le), document.addEventListener("touchstart", f, Le), function() {
4458
4458
  Fe = Fe.filter(function(h) {
4459
4459
  return h !== a;
4460
- }), document.removeEventListener("wheel", u, Le), document.removeEventListener("touchmove", u, Le), document.removeEventListener("touchstart", d, Le);
4460
+ }), document.removeEventListener("wheel", l, Le), document.removeEventListener("touchmove", l, Le), document.removeEventListener("touchstart", f, Le);
4461
4461
  };
4462
4462
  }, []);
4463
4463
  var g = e.removeScrollBar, b = e.inert;
4464
- return l.createElement(
4465
- l.Fragment,
4464
+ return u.createElement(
4465
+ u.Fragment,
4466
4466
  null,
4467
- b ? l.createElement(a, { styles: dl(o) }) : null,
4468
- g ? l.createElement(nl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
4467
+ b ? u.createElement(a, { styles: dl(o) }) : null,
4468
+ g ? u.createElement(nl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
4469
4469
  );
4470
4470
  }
4471
4471
  function ml(e) {
@@ -4474,8 +4474,8 @@ function ml(e) {
4474
4474
  return t;
4475
4475
  }
4476
4476
  const hl = Wc(lo, pl);
4477
- var kn = l.forwardRef(function(e, t) {
4478
- return l.createElement(Dt, de({}, e, { ref: t, sideCar: hl }));
4477
+ var kn = u.forwardRef(function(e, t) {
4478
+ return u.createElement(Dt, de({}, e, { ref: t, sideCar: hl }));
4479
4479
  });
4480
4480
  kn.classNames = Dt.classNames;
4481
4481
  var gl = function(e) {
@@ -4497,14 +4497,14 @@ var gl = function(e) {
4497
4497
  }, bl = function(e, t, n, r) {
4498
4498
  var o = vl(t, Array.isArray(e) ? e : [e]);
4499
4499
  Ct[n] || (Ct[n] = /* @__PURE__ */ new WeakMap());
4500
- var a = Ct[n], s = [], i = /* @__PURE__ */ new Set(), u = new Set(o), f = function(p) {
4501
- !p || i.has(p) || (i.add(p), f(p.parentNode));
4500
+ var a = Ct[n], s = [], i = /* @__PURE__ */ new Set(), l = new Set(o), d = function(p) {
4501
+ !p || i.has(p) || (i.add(p), d(p.parentNode));
4502
4502
  };
4503
- o.forEach(f);
4504
- var d = function(p) {
4505
- !p || u.has(p) || Array.prototype.forEach.call(p.children, function(m) {
4503
+ o.forEach(d);
4504
+ var f = function(p) {
4505
+ !p || l.has(p) || Array.prototype.forEach.call(p.children, function(m) {
4506
4506
  if (i.has(m))
4507
- d(m);
4507
+ f(m);
4508
4508
  else
4509
4509
  try {
4510
4510
  var g = m.getAttribute(r), b = g !== null && g !== "false", h = ($e.get(m) || 0) + 1, v = (a.get(m) || 0) + 1;
@@ -4514,7 +4514,7 @@ var gl = function(e) {
4514
4514
  }
4515
4515
  });
4516
4516
  };
4517
- return d(t), i.clear(), nn++, function() {
4517
+ return f(t), i.clear(), nn++, function() {
4518
4518
  s.forEach(function(p) {
4519
4519
  var m = $e.get(p) - 1, g = a.get(p) - 1;
4520
4520
  $e.set(p, m), a.set(p, g), m || (yt.has(p) || p.removeAttribute(r), yt.delete(p)), g || p.removeAttribute(n);
@@ -4526,7 +4526,7 @@ var gl = function(e) {
4526
4526
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), bl(r, o, n, "aria-hidden")) : function() {
4527
4527
  return null;
4528
4528
  };
4529
- }, Lt = "Dialog", [vo, Mp] = je(Lt), [xl, ue] = vo(Lt), bo = (e) => {
4529
+ }, Lt = "Dialog", [vo, kp] = je(Lt), [xl, ue] = vo(Lt), bo = (e) => {
4530
4530
  const {
4531
4531
  __scopeDialog: t,
4532
4532
  children: n,
@@ -4534,7 +4534,7 @@ var gl = function(e) {
4534
4534
  defaultOpen: o,
4535
4535
  onOpenChange: a,
4536
4536
  modal: s = !0
4537
- } = e, i = l.useRef(null), u = l.useRef(null), [f, d] = it({
4537
+ } = e, i = u.useRef(null), l = u.useRef(null), [d, f] = it({
4538
4538
  prop: r,
4539
4539
  defaultProp: o ?? !1,
4540
4540
  onChange: a,
@@ -4545,20 +4545,20 @@ var gl = function(e) {
4545
4545
  {
4546
4546
  scope: t,
4547
4547
  triggerRef: i,
4548
- contentRef: u,
4548
+ contentRef: l,
4549
4549
  contentId: be(),
4550
4550
  titleId: be(),
4551
4551
  descriptionId: be(),
4552
- open: f,
4553
- onOpenChange: d,
4554
- onOpenToggle: l.useCallback(() => d((p) => !p), [d]),
4552
+ open: d,
4553
+ onOpenChange: f,
4554
+ onOpenToggle: u.useCallback(() => f((p) => !p), [f]),
4555
4555
  modal: s,
4556
4556
  children: n
4557
4557
  }
4558
4558
  );
4559
4559
  };
4560
4560
  bo.displayName = Lt;
4561
- var xo = "DialogTrigger", wo = l.forwardRef(
4561
+ var xo = "DialogTrigger", wo = u.forwardRef(
4562
4562
  (e, t) => {
4563
4563
  const { __scopeDialog: n, ...r } = e, o = ue(xo, n), a = ee(t, o.triggerRef);
4564
4564
  return /* @__PURE__ */ c.jsx(
@@ -4581,17 +4581,17 @@ var An = "DialogPortal", [wl, yo] = vo(An, {
4581
4581
  forceMount: void 0
4582
4582
  }), Co = (e) => {
4583
4583
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = ue(An, t);
4584
- return /* @__PURE__ */ c.jsx(wl, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ c.jsx(ye, { present: n || a.open, children: /* @__PURE__ */ c.jsx(Mn, { asChild: !0, container: o, children: s }) })) });
4584
+ return /* @__PURE__ */ c.jsx(wl, { scope: t, forceMount: n, children: u.Children.map(r, (s) => /* @__PURE__ */ c.jsx(ye, { present: n || a.open, children: /* @__PURE__ */ c.jsx(Mn, { asChild: !0, container: o, children: s }) })) });
4585
4585
  };
4586
4586
  Co.displayName = An;
4587
- var kt = "DialogOverlay", Eo = l.forwardRef(
4587
+ var kt = "DialogOverlay", Eo = u.forwardRef(
4588
4588
  (e, t) => {
4589
4589
  const n = yo(kt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ue(kt, e.__scopeDialog);
4590
4590
  return a.modal ? /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(Cl, { ...o, ref: t }) }) : null;
4591
4591
  }
4592
4592
  );
4593
4593
  Eo.displayName = kt;
4594
- var yl = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), Cl = l.forwardRef(
4594
+ var yl = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), Cl = u.forwardRef(
4595
4595
  (e, t) => {
4596
4596
  const { __scopeDialog: n, ...r } = e, o = ue(kt, n);
4597
4597
  return (
@@ -4608,17 +4608,17 @@ var yl = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), Cl = l.forwardRef(
4608
4608
  ) })
4609
4609
  );
4610
4610
  }
4611
- ), Te = "DialogContent", So = l.forwardRef(
4611
+ ), Te = "DialogContent", So = u.forwardRef(
4612
4612
  (e, t) => {
4613
4613
  const n = yo(Te, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ue(Te, e.__scopeDialog);
4614
4614
  return /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: a.modal ? /* @__PURE__ */ c.jsx(El, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Sl, { ...o, ref: t }) });
4615
4615
  }
4616
4616
  );
4617
4617
  So.displayName = Te;
4618
- var El = l.forwardRef(
4618
+ var El = u.forwardRef(
4619
4619
  (e, t) => {
4620
- const n = ue(Te, e.__scopeDialog), r = l.useRef(null), o = ee(t, n.contentRef, r);
4621
- return l.useEffect(() => {
4620
+ const n = ue(Te, e.__scopeDialog), r = u.useRef(null), o = ee(t, n.contentRef, r);
4621
+ return u.useEffect(() => {
4622
4622
  const a = r.current;
4623
4623
  if (a) return go(a);
4624
4624
  }, []), /* @__PURE__ */ c.jsx(
@@ -4643,9 +4643,9 @@ var El = l.forwardRef(
4643
4643
  }
4644
4644
  );
4645
4645
  }
4646
- ), Sl = l.forwardRef(
4646
+ ), Sl = u.forwardRef(
4647
4647
  (e, t) => {
4648
- const n = ue(Te, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
4648
+ const n = ue(Te, e.__scopeDialog), r = u.useRef(!1), o = u.useRef(!1);
4649
4649
  return /* @__PURE__ */ c.jsx(
4650
4650
  Ro,
4651
4651
  {
@@ -4658,17 +4658,17 @@ var El = l.forwardRef(
4658
4658
  (s = e.onCloseAutoFocus) == null || s.call(e, a), a.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), a.preventDefault()), r.current = !1, o.current = !1;
4659
4659
  },
4660
4660
  onInteractOutside: (a) => {
4661
- var u, f;
4662
- (u = e.onInteractOutside) == null || u.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
4661
+ var l, d;
4662
+ (l = e.onInteractOutside) == null || l.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
4663
4663
  const s = a.target;
4664
- ((f = n.triggerRef.current) == null ? void 0 : f.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
4664
+ ((d = n.triggerRef.current) == null ? void 0 : d.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
4665
4665
  }
4666
4666
  }
4667
4667
  );
4668
4668
  }
4669
- ), Ro = l.forwardRef(
4669
+ ), Ro = u.forwardRef(
4670
4670
  (e, t) => {
4671
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = ue(Te, n), u = l.useRef(null), f = ee(t, u);
4671
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = ue(Te, n), l = u.useRef(null), d = ee(t, l);
4672
4672
  return so(), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4673
4673
  /* @__PURE__ */ c.jsx(
4674
4674
  Rn,
@@ -4687,7 +4687,7 @@ var El = l.forwardRef(
4687
4687
  "aria-labelledby": i.titleId,
4688
4688
  "data-state": Pn(i.open),
4689
4689
  ...s,
4690
- ref: f,
4690
+ ref: d,
4691
4691
  onDismiss: () => i.onOpenChange(!1)
4692
4692
  }
4693
4693
  )
@@ -4695,25 +4695,25 @@ var El = l.forwardRef(
4695
4695
  ),
4696
4696
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4697
4697
  /* @__PURE__ */ c.jsx(Rl, { titleId: i.titleId }),
4698
- /* @__PURE__ */ c.jsx(kl, { contentRef: u, descriptionId: i.descriptionId })
4698
+ /* @__PURE__ */ c.jsx(kl, { contentRef: l, descriptionId: i.descriptionId })
4699
4699
  ] })
4700
4700
  ] });
4701
4701
  }
4702
- ), Nn = "DialogTitle", Mo = l.forwardRef(
4702
+ ), Nn = "DialogTitle", Mo = u.forwardRef(
4703
4703
  (e, t) => {
4704
4704
  const { __scopeDialog: n, ...r } = e, o = ue(Nn, n);
4705
4705
  return /* @__PURE__ */ c.jsx(q.h2, { id: o.titleId, ...r, ref: t });
4706
4706
  }
4707
4707
  );
4708
4708
  Mo.displayName = Nn;
4709
- var ko = "DialogDescription", Ao = l.forwardRef(
4709
+ var ko = "DialogDescription", Ao = u.forwardRef(
4710
4710
  (e, t) => {
4711
4711
  const { __scopeDialog: n, ...r } = e, o = ue(ko, n);
4712
4712
  return /* @__PURE__ */ c.jsx(q.p, { id: o.descriptionId, ...r, ref: t });
4713
4713
  }
4714
4714
  );
4715
4715
  Ao.displayName = ko;
4716
- var No = "DialogClose", Po = l.forwardRef(
4716
+ var No = "DialogClose", Po = u.forwardRef(
4717
4717
  (e, t) => {
4718
4718
  const { __scopeDialog: n, ...r } = e, o = ue(No, n);
4719
4719
  return /* @__PURE__ */ c.jsx(
@@ -4731,7 +4731,7 @@ Po.displayName = No;
4731
4731
  function Pn(e) {
4732
4732
  return e ? "open" : "closed";
4733
4733
  }
4734
- var _o = "DialogTitleWarning", [kp, To] = cc(_o, {
4734
+ var _o = "DialogTitleWarning", [Ap, To] = cc(_o, {
4735
4735
  contentName: Te,
4736
4736
  titleName: Nn,
4737
4737
  docsSlug: "dialog"
@@ -4741,18 +4741,18 @@ var _o = "DialogTitleWarning", [kp, To] = cc(_o, {
4741
4741
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4742
4742
 
4743
4743
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
4744
- return l.useEffect(() => {
4744
+ return u.useEffect(() => {
4745
4745
  e && (document.getElementById(e) || console.error(n));
4746
4746
  }, [n, e]), null;
4747
4747
  }, Ml = "DialogDescriptionWarning", kl = ({ contentRef: e, descriptionId: t }) => {
4748
4748
  const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${To(Ml).contentName}}.`;
4749
- return l.useEffect(() => {
4749
+ return u.useEffect(() => {
4750
4750
  var a;
4751
4751
  const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
4752
4752
  t && o && (document.getElementById(t) || console.warn(r));
4753
4753
  }, [r, e, t]), null;
4754
4754
  }, Al = bo, Nl = wo, Pl = Co, Oo = Eo, jo = So, Io = Mo, Do = Ao, Lo = Po;
4755
- const _l = Al, Ap = Nl, Np = Lo, Tl = Pl, Fo = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4755
+ const _l = Al, Np = Nl, Pp = Lo, Tl = Pl, Fo = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4756
4756
  Oo,
4757
4757
  {
4758
4758
  className: A(
@@ -4779,7 +4779,7 @@ const Ol = En(
4779
4779
  side: "right"
4780
4780
  }
4781
4781
  }
4782
- ), $o = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(Tl, { children: [
4782
+ ), $o = u.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(Tl, { children: [
4783
4783
  /* @__PURE__ */ c.jsx(Fo, {}),
4784
4784
  /* @__PURE__ */ c.jsxs(
4785
4785
  jo,
@@ -4826,7 +4826,7 @@ const jl = ({
4826
4826
  }
4827
4827
  );
4828
4828
  jl.displayName = "SheetFooter";
4829
- const Ho = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4829
+ const Ho = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4830
4830
  Io,
4831
4831
  {
4832
4832
  ref: n,
@@ -4835,7 +4835,7 @@ const Ho = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4835
4835
  }
4836
4836
  ));
4837
4837
  Ho.displayName = Io.displayName;
4838
- const Vo = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4838
+ const Vo = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4839
4839
  Do,
4840
4840
  {
4841
4841
  ref: n,
@@ -4966,18 +4966,18 @@ function Rr(e, t, n) {
4966
4966
  reference: r,
4967
4967
  floating: o
4968
4968
  } = e;
4969
- const a = fe(t), s = On(t), i = Tn(s), u = we(t), f = a === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
4969
+ const a = fe(t), s = On(t), i = Tn(s), l = we(t), d = a === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
4970
4970
  let g;
4971
- switch (u) {
4971
+ switch (l) {
4972
4972
  case "top":
4973
4973
  g = {
4974
- x: d,
4974
+ x: f,
4975
4975
  y: r.y - o.height
4976
4976
  };
4977
4977
  break;
4978
4978
  case "bottom":
4979
4979
  g = {
4980
- x: d,
4980
+ x: f,
4981
4981
  y: r.y + r.height
4982
4982
  };
4983
4983
  break;
@@ -5001,10 +5001,10 @@ function Rr(e, t, n) {
5001
5001
  }
5002
5002
  switch (Ze(t)) {
5003
5003
  case "start":
5004
- g[s] -= m * (n && f ? -1 : 1);
5004
+ g[s] -= m * (n && d ? -1 : 1);
5005
5005
  break;
5006
5006
  case "end":
5007
- g[s] += m * (n && f ? -1 : 1);
5007
+ g[s] += m * (n && d ? -1 : 1);
5008
5008
  break;
5009
5009
  }
5010
5010
  return g;
@@ -5015,15 +5015,15 @@ const Wl = async (e, t, n) => {
5015
5015
  strategy: o = "absolute",
5016
5016
  middleware: a = [],
5017
5017
  platform: s
5018
- } = n, i = a.filter(Boolean), u = await (s.isRTL == null ? void 0 : s.isRTL(t));
5019
- let f = await s.getElementRects({
5018
+ } = n, i = a.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(t));
5019
+ let d = await s.getElementRects({
5020
5020
  reference: e,
5021
5021
  floating: t,
5022
5022
  strategy: o
5023
5023
  }), {
5024
- x: d,
5024
+ x: f,
5025
5025
  y: p
5026
- } = Rr(f, r, u), m = r, g = {}, b = 0;
5026
+ } = Rr(d, r, l), m = r, g = {}, b = 0;
5027
5027
  for (let h = 0; h < i.length; h++) {
5028
5028
  const {
5029
5029
  name: v,
@@ -5034,36 +5034,36 @@ const Wl = async (e, t, n) => {
5034
5034
  data: E,
5035
5035
  reset: M
5036
5036
  } = await x({
5037
- x: d,
5037
+ x: f,
5038
5038
  y: p,
5039
5039
  initialPlacement: r,
5040
5040
  placement: m,
5041
5041
  strategy: o,
5042
5042
  middlewareData: g,
5043
- rects: f,
5043
+ rects: d,
5044
5044
  platform: s,
5045
5045
  elements: {
5046
5046
  reference: e,
5047
5047
  floating: t
5048
5048
  }
5049
5049
  });
5050
- d = y ?? d, p = C ?? p, g = {
5050
+ f = y ?? f, p = C ?? p, g = {
5051
5051
  ...g,
5052
5052
  [v]: {
5053
5053
  ...g[v],
5054
5054
  ...E
5055
5055
  }
5056
- }, M && b <= 50 && (b++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (f = M.rects === !0 ? await s.getElementRects({
5056
+ }, M && b <= 50 && (b++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (d = M.rects === !0 ? await s.getElementRects({
5057
5057
  reference: e,
5058
5058
  floating: t,
5059
5059
  strategy: o
5060
5060
  }) : M.rects), {
5061
- x: d,
5061
+ x: f,
5062
5062
  y: p
5063
- } = Rr(f, m, u)), h = -1);
5063
+ } = Rr(d, m, l)), h = -1);
5064
5064
  }
5065
5065
  return {
5066
- x: d,
5066
+ x: f,
5067
5067
  y: p,
5068
5068
  placement: m,
5069
5069
  strategy: o,
@@ -5079,18 +5079,18 @@ async function nt(e, t) {
5079
5079
  platform: a,
5080
5080
  rects: s,
5081
5081
  elements: i,
5082
- strategy: u
5082
+ strategy: l
5083
5083
  } = e, {
5084
- boundary: f = "clippingAncestors",
5085
- rootBoundary: d = "viewport",
5084
+ boundary: d = "clippingAncestors",
5085
+ rootBoundary: f = "viewport",
5086
5086
  elementContext: p = "floating",
5087
5087
  altBoundary: m = !1,
5088
5088
  padding: g = 0
5089
5089
  } = xe(t, e), b = Wo(g), v = i[m ? p === "floating" ? "reference" : "floating" : p], x = Pt(await a.getClippingRect({
5090
5090
  element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
5091
- boundary: f,
5092
- rootBoundary: d,
5093
- strategy: u
5091
+ boundary: d,
5092
+ rootBoundary: f,
5093
+ strategy: l
5094
5094
  })), y = p === "floating" ? {
5095
5095
  x: r,
5096
5096
  y: o,
@@ -5106,7 +5106,7 @@ async function nt(e, t) {
5106
5106
  elements: i,
5107
5107
  rect: y,
5108
5108
  offsetParent: C,
5109
- strategy: u
5109
+ strategy: l
5110
5110
  }) : y);
5111
5111
  return {
5112
5112
  top: (x.top - M.top + b.top) / E.y,
@@ -5126,20 +5126,20 @@ const Bl = (e) => ({
5126
5126
  rects: a,
5127
5127
  platform: s,
5128
5128
  elements: i,
5129
- middlewareData: u
5129
+ middlewareData: l
5130
5130
  } = t, {
5131
- element: f,
5132
- padding: d = 0
5131
+ element: d,
5132
+ padding: f = 0
5133
5133
  } = xe(e, t) || {};
5134
- if (f == null)
5134
+ if (d == null)
5135
5135
  return {};
5136
- const p = Wo(d), m = {
5136
+ const p = Wo(f), m = {
5137
5137
  x: n,
5138
5138
  y: r
5139
- }, g = On(o), b = Tn(g), h = await s.getDimensions(f), v = g === "y", x = v ? "top" : "left", y = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", E = a.reference[b] + a.reference[g] - m[g] - a.floating[b], M = m[g] - a.reference[g], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
5139
+ }, g = On(o), b = Tn(g), h = await s.getDimensions(d), v = g === "y", x = v ? "top" : "left", y = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", E = a.reference[b] + a.reference[g] - m[g] - a.floating[b], M = m[g] - a.reference[g], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5140
5140
  let k = T ? T[C] : 0;
5141
5141
  (!k || !await (s.isElement == null ? void 0 : s.isElement(T))) && (k = i.floating[C] || a.floating[b]);
5142
- const R = E / 2 - M / 2, D = k / 2 - h[b] / 2 - 1, z = ke(p[x], D), U = ke(p[y], D), B = z, G = k - h[b] - U, H = k / 2 - h[b] / 2 + R, Y = pn(B, H, G), I = !u.arrow && Ze(o) != null && H !== Y && a.reference[b] / 2 - (H < B ? z : U) - h[b] / 2 < 0, V = I ? H < B ? H - B : H - G : 0;
5142
+ const R = E / 2 - M / 2, D = k / 2 - h[b] / 2 - 1, z = ke(p[x], D), U = ke(p[y], D), B = z, G = k - h[b] - U, H = k / 2 - h[b] / 2 + R, Y = pn(B, H, G), I = !l.arrow && Ze(o) != null && H !== Y && a.reference[b] / 2 - (H < B ? z : U) - h[b] / 2 < 0, V = I ? H < B ? H - B : H - G : 0;
5143
5143
  return {
5144
5144
  [g]: m[g] + V,
5145
5145
  data: {
@@ -5163,10 +5163,10 @@ const Bl = (e) => ({
5163
5163
  middlewareData: a,
5164
5164
  rects: s,
5165
5165
  initialPlacement: i,
5166
- platform: u,
5167
- elements: f
5166
+ platform: l,
5167
+ elements: d
5168
5168
  } = t, {
5169
- mainAxis: d = !0,
5169
+ mainAxis: f = !0,
5170
5170
  crossAxis: p = !0,
5171
5171
  fallbackPlacements: m,
5172
5172
  fallbackStrategy: g = "bestFit",
@@ -5176,11 +5176,11 @@ const Bl = (e) => ({
5176
5176
  } = xe(e, t);
5177
5177
  if ((n = a.arrow) != null && n.alignmentOffset)
5178
5178
  return {};
5179
- const x = we(o), y = fe(i), C = we(i) === i, E = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), M = m || (C || !h ? [Nt(i)] : $l(i)), T = b !== "none";
5179
+ const x = we(o), y = fe(i), C = we(i) === i, E = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), M = m || (C || !h ? [Nt(i)] : $l(i)), T = b !== "none";
5180
5180
  !m && T && M.push(...Hl(i, h, b, E));
5181
5181
  const k = [i, ...M], R = await nt(t, v), D = [];
5182
5182
  let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
5183
- if (d && D.push(R[x]), p) {
5183
+ if (f && D.push(R[x]), p) {
5184
5184
  const H = Fl(o, s, E);
5185
5185
  D.push(R[H[0]], R[H[1]]);
5186
5186
  }
@@ -5292,7 +5292,7 @@ async function Kl(e, t) {
5292
5292
  placement: n,
5293
5293
  platform: r,
5294
5294
  elements: o
5295
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = we(n), i = Ze(n), u = fe(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, d = a && u ? -1 : 1, p = xe(t, e);
5295
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = we(n), i = Ze(n), l = fe(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, f = a && l ? -1 : 1, p = xe(t, e);
5296
5296
  let {
5297
5297
  mainAxis: m,
5298
5298
  crossAxis: g,
@@ -5306,12 +5306,12 @@ async function Kl(e, t) {
5306
5306
  crossAxis: p.crossAxis || 0,
5307
5307
  alignmentAxis: p.alignmentAxis
5308
5308
  };
5309
- return i && typeof b == "number" && (g = i === "end" ? b * -1 : b), u ? {
5310
- x: g * d,
5311
- y: m * f
5309
+ return i && typeof b == "number" && (g = i === "end" ? b * -1 : b), l ? {
5310
+ x: g * f,
5311
+ y: m * d
5312
5312
  } : {
5313
- x: m * f,
5314
- y: g * d
5313
+ x: m * d,
5314
+ y: g * f
5315
5315
  };
5316
5316
  }
5317
5317
  const Yl = function(e) {
@@ -5325,12 +5325,12 @@ const Yl = function(e) {
5325
5325
  y: a,
5326
5326
  placement: s,
5327
5327
  middlewareData: i
5328
- } = t, u = await Kl(t, e);
5328
+ } = t, l = await Kl(t, e);
5329
5329
  return s === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
5330
- x: o + u.x,
5331
- y: a + u.y,
5330
+ x: o + l.x,
5331
+ y: a + l.y,
5332
5332
  data: {
5333
- ...u,
5333
+ ...l,
5334
5334
  placement: s
5335
5335
  }
5336
5336
  };
@@ -5360,18 +5360,18 @@ const Yl = function(e) {
5360
5360
  };
5361
5361
  }
5362
5362
  },
5363
- ...u
5364
- } = xe(e, t), f = {
5363
+ ...l
5364
+ } = xe(e, t), d = {
5365
5365
  x: n,
5366
5366
  y: r
5367
- }, d = await nt(t, u), p = fe(we(o)), m = _n(p);
5368
- let g = f[m], b = f[p];
5367
+ }, f = await nt(t, l), p = fe(we(o)), m = _n(p);
5368
+ let g = d[m], b = d[p];
5369
5369
  if (a) {
5370
- const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + d[v], C = g - d[x];
5370
+ const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + f[v], C = g - f[x];
5371
5371
  g = pn(y, g, C);
5372
5372
  }
5373
5373
  if (s) {
5374
- const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = b + d[v], C = b - d[x];
5374
+ const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = b + f[v], C = b - f[x];
5375
5375
  b = pn(y, b, C);
5376
5376
  }
5377
5377
  const h = i.fn({
@@ -5404,13 +5404,13 @@ const Yl = function(e) {
5404
5404
  middlewareData: s
5405
5405
  } = t, {
5406
5406
  offset: i = 0,
5407
- mainAxis: u = !0,
5408
- crossAxis: f = !0
5409
- } = xe(e, t), d = {
5407
+ mainAxis: l = !0,
5408
+ crossAxis: d = !0
5409
+ } = xe(e, t), f = {
5410
5410
  x: n,
5411
5411
  y: r
5412
5412
  }, p = fe(o), m = _n(p);
5413
- let g = d[m], b = d[p];
5413
+ let g = f[m], b = f[p];
5414
5414
  const h = xe(i, t), v = typeof h == "number" ? {
5415
5415
  mainAxis: h,
5416
5416
  crossAxis: 0
@@ -5419,11 +5419,11 @@ const Yl = function(e) {
5419
5419
  crossAxis: 0,
5420
5420
  ...h
5421
5421
  };
5422
- if (u) {
5422
+ if (l) {
5423
5423
  const C = m === "y" ? "height" : "width", E = a.reference[m] - a.floating[C] + v.mainAxis, M = a.reference[m] + a.reference[C] - v.mainAxis;
5424
5424
  g < E ? g = E : g > M && (g = M);
5425
5425
  }
5426
- if (f) {
5426
+ if (d) {
5427
5427
  var x, y;
5428
5428
  const C = m === "y" ? "width" : "height", E = ["top", "left"].includes(we(o)), M = a.reference[p] - a.floating[C] + (E && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (E ? 0 : v.crossAxis), T = a.reference[p] + a.reference[C] + (E ? 0 : ((y = s.offset) == null ? void 0 : y[p]) || 0) - (E ? v.crossAxis : 0);
5429
5429
  b < M ? b = M : b > T && (b = T);
@@ -5446,22 +5446,22 @@ const Yl = function(e) {
5446
5446
  platform: s,
5447
5447
  elements: i
5448
5448
  } = t, {
5449
- apply: u = () => {
5449
+ apply: l = () => {
5450
5450
  },
5451
- ...f
5452
- } = xe(e, t), d = await nt(t, f), p = we(o), m = Ze(o), g = fe(o) === "y", {
5451
+ ...d
5452
+ } = xe(e, t), f = await nt(t, d), p = we(o), m = Ze(o), g = fe(o) === "y", {
5453
5453
  width: b,
5454
5454
  height: h
5455
5455
  } = a.floating;
5456
5456
  let v, x;
5457
5457
  p === "top" || p === "bottom" ? (v = p, x = m === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = p, v = m === "end" ? "top" : "bottom");
5458
- const y = h - d.top - d.bottom, C = b - d.left - d.right, E = ke(h - d[v], y), M = ke(b - d[x], C), T = !t.middlewareData.shift;
5458
+ const y = h - f.top - f.bottom, C = b - f.left - f.right, E = ke(h - f[v], y), M = ke(b - f[x], C), T = !t.middlewareData.shift;
5459
5459
  let k = E, R = M;
5460
5460
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = C), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), T && !m) {
5461
- const z = ae(d.left, 0), U = ae(d.right, 0), B = ae(d.top, 0), G = ae(d.bottom, 0);
5462
- g ? R = b - 2 * (z !== 0 || U !== 0 ? z + U : ae(d.left, d.right)) : k = h - 2 * (B !== 0 || G !== 0 ? B + G : ae(d.top, d.bottom));
5461
+ const z = ae(f.left, 0), U = ae(f.right, 0), B = ae(f.top, 0), G = ae(f.bottom, 0);
5462
+ g ? R = b - 2 * (z !== 0 || U !== 0 ? z + U : ae(f.left, f.right)) : k = h - 2 * (B !== 0 || G !== 0 ? B + G : ae(f.top, f.bottom));
5463
5463
  }
5464
- await u({
5464
+ await l({
5465
5465
  ...t,
5466
5466
  availableWidth: R,
5467
5467
  availableHeight: k
@@ -5629,20 +5629,20 @@ function Oe(e, t, n, r) {
5629
5629
  let s = pe(1);
5630
5630
  t && (r ? ce(r) && (s = Ve(r)) : s = Ve(e));
5631
5631
  const i = tu(a, n, r) ? Ko(a) : pe(0);
5632
- let u = (o.left + i.x) / s.x, f = (o.top + i.y) / s.y, d = o.width / s.x, p = o.height / s.y;
5632
+ let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, p = o.height / s.y;
5633
5633
  if (a) {
5634
5634
  const m = se(a), g = r && ce(r) ? se(r) : r;
5635
5635
  let b = m, h = hn(b);
5636
5636
  for (; h && r && g !== b; ) {
5637
5637
  const v = Ve(h), x = h.getBoundingClientRect(), y = le(h), C = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * v.x, E = x.top + (h.clientTop + parseFloat(y.paddingTop)) * v.y;
5638
- u *= v.x, f *= v.y, d *= v.x, p *= v.y, u += C, f += E, b = se(h), h = hn(b);
5638
+ l *= v.x, d *= v.y, f *= v.x, p *= v.y, l += C, d += E, b = se(h), h = hn(b);
5639
5639
  }
5640
5640
  }
5641
5641
  return Pt({
5642
- width: d,
5642
+ width: f,
5643
5643
  height: p,
5644
- x: u,
5645
- y: f
5644
+ x: l,
5645
+ y: d
5646
5646
  });
5647
5647
  }
5648
5648
  function Ln(e, t) {
@@ -5670,21 +5670,21 @@ function nu(e) {
5670
5670
  const a = o === "fixed", s = ge(r), i = t ? $t(t.floating) : !1;
5671
5671
  if (r === s || i && a)
5672
5672
  return n;
5673
- let u = {
5673
+ let l = {
5674
5674
  scrollLeft: 0,
5675
5675
  scrollTop: 0
5676
- }, f = pe(1);
5677
- const d = pe(0), p = he(r);
5678
- if ((p || !p && !a) && ((Xe(r) !== "body" || ct(s)) && (u = zt(r)), he(r))) {
5676
+ }, d = pe(1);
5677
+ const f = pe(0), p = he(r);
5678
+ if ((p || !p && !a) && ((Xe(r) !== "body" || ct(s)) && (l = zt(r)), he(r))) {
5679
5679
  const g = Oe(r);
5680
- f = Ve(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
5680
+ d = Ve(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop;
5681
5681
  }
5682
- const m = s && !p && !a ? Yo(s, u, !0) : pe(0);
5682
+ const m = s && !p && !a ? Yo(s, l, !0) : pe(0);
5683
5683
  return {
5684
- width: n.width * f.x,
5685
- height: n.height * f.y,
5686
- x: n.x * f.x - u.scrollLeft * f.x + d.x + m.x,
5687
- y: n.y * f.y - u.scrollTop * f.y + d.y + m.y
5684
+ width: n.width * d.x,
5685
+ height: n.height * d.y,
5686
+ x: n.x * d.x - l.scrollLeft * d.x + f.x + m.x,
5687
+ y: n.y * d.y - l.scrollTop * d.y + f.y + m.y
5688
5688
  };
5689
5689
  }
5690
5690
  function ru(e) {
@@ -5703,26 +5703,26 @@ function ou(e) {
5703
5703
  }
5704
5704
  function au(e, t) {
5705
5705
  const n = se(e), r = ge(e), o = n.visualViewport;
5706
- let a = r.clientWidth, s = r.clientHeight, i = 0, u = 0;
5706
+ let a = r.clientWidth, s = r.clientHeight, i = 0, l = 0;
5707
5707
  if (o) {
5708
5708
  a = o.width, s = o.height;
5709
- const f = In();
5710
- (!f || f && t === "fixed") && (i = o.offsetLeft, u = o.offsetTop);
5709
+ const d = In();
5710
+ (!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
5711
5711
  }
5712
5712
  return {
5713
5713
  width: a,
5714
5714
  height: s,
5715
5715
  x: i,
5716
- y: u
5716
+ y: l
5717
5717
  };
5718
5718
  }
5719
5719
  function su(e, t) {
5720
- const n = Oe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = he(e) ? Ve(e) : pe(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, u = o * a.x, f = r * a.y;
5720
+ const n = Oe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = he(e) ? Ve(e) : pe(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, l = o * a.x, d = r * a.y;
5721
5721
  return {
5722
5722
  width: s,
5723
5723
  height: i,
5724
- x: u,
5725
- y: f
5724
+ x: l,
5725
+ y: d
5726
5726
  };
5727
5727
  }
5728
5728
  function Nr(e, t, n) {
@@ -5756,8 +5756,8 @@ function iu(e, t) {
5756
5756
  const a = le(e).position === "fixed";
5757
5757
  let s = a ? Ae(e) : e;
5758
5758
  for (; ce(s) && !Be(s); ) {
5759
- const i = le(s), u = jn(s);
5760
- !u && i.position === "fixed" && (o = null), (a ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ct(s) && !u && Zo(e, s)) ? r = r.filter((d) => d !== s) : o = i, s = Ae(s);
5759
+ const i = le(s), l = jn(s);
5760
+ !l && i.position === "fixed" && (o = null), (a ? !l && !o : !l && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ct(s) && !l && Zo(e, s)) ? r = r.filter((f) => f !== s) : o = i, s = Ae(s);
5761
5761
  }
5762
5762
  return t.set(e, r), r;
5763
5763
  }
@@ -5768,15 +5768,15 @@ function cu(e) {
5768
5768
  rootBoundary: r,
5769
5769
  strategy: o
5770
5770
  } = e;
5771
- const s = [...n === "clippingAncestors" ? $t(t) ? [] : iu(t, this._c) : [].concat(n), r], i = s[0], u = s.reduce((f, d) => {
5772
- const p = Nr(t, d, o);
5773
- return f.top = ae(p.top, f.top), f.right = ke(p.right, f.right), f.bottom = ke(p.bottom, f.bottom), f.left = ae(p.left, f.left), f;
5771
+ const s = [...n === "clippingAncestors" ? $t(t) ? [] : iu(t, this._c) : [].concat(n), r], i = s[0], l = s.reduce((d, f) => {
5772
+ const p = Nr(t, f, o);
5773
+ return d.top = ae(p.top, d.top), d.right = ke(p.right, d.right), d.bottom = ke(p.bottom, d.bottom), d.left = ae(p.left, d.left), d;
5774
5774
  }, Nr(t, i, o));
5775
5775
  return {
5776
- width: u.right - u.left,
5777
- height: u.bottom - u.top,
5778
- x: u.left,
5779
- y: u.top
5776
+ width: l.right - l.left,
5777
+ height: l.bottom - l.top,
5778
+ x: l.left,
5779
+ y: l.top
5780
5780
  };
5781
5781
  }
5782
5782
  function lu(e) {
@@ -5795,17 +5795,17 @@ function uu(e, t, n) {
5795
5795
  scrollLeft: 0,
5796
5796
  scrollTop: 0
5797
5797
  };
5798
- const u = pe(0);
5799
- function f() {
5800
- u.x = Ln(o);
5798
+ const l = pe(0);
5799
+ function d() {
5800
+ l.x = Ln(o);
5801
5801
  }
5802
5802
  if (r || !r && !a)
5803
5803
  if ((Xe(t) !== "body" || ct(o)) && (i = zt(t)), r) {
5804
5804
  const g = Oe(t, !0, a, t);
5805
- u.x = g.x + t.clientLeft, u.y = g.y + t.clientTop;
5806
- } else o && f();
5807
- a && !r && o && f();
5808
- const d = o && !r && !a ? Yo(o, i) : pe(0), p = s.left + i.scrollLeft - u.x - d.x, m = s.top + i.scrollTop - u.y - d.y;
5805
+ l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
5806
+ } else o && d();
5807
+ a && !r && o && d();
5808
+ const f = o && !r && !a ? Yo(o, i) : pe(0), p = s.left + i.scrollLeft - l.x - f.x, m = s.top + i.scrollTop - l.y - f.y;
5809
5809
  return {
5810
5810
  x: p,
5811
5811
  y: m,
@@ -5879,31 +5879,31 @@ function mu(e, t) {
5879
5879
  var i;
5880
5880
  clearTimeout(r), (i = n) == null || i.disconnect(), n = null;
5881
5881
  }
5882
- function s(i, u) {
5883
- i === void 0 && (i = !1), u === void 0 && (u = 1), a();
5884
- const f = e.getBoundingClientRect(), {
5885
- left: d,
5882
+ function s(i, l) {
5883
+ i === void 0 && (i = !1), l === void 0 && (l = 1), a();
5884
+ const d = e.getBoundingClientRect(), {
5885
+ left: f,
5886
5886
  top: p,
5887
5887
  width: m,
5888
5888
  height: g
5889
- } = f;
5889
+ } = d;
5890
5890
  if (i || t(), !m || !g)
5891
5891
  return;
5892
- const b = Et(p), h = Et(o.clientWidth - (d + m)), v = Et(o.clientHeight - (p + g)), x = Et(d), C = {
5892
+ const b = Et(p), h = Et(o.clientWidth - (f + m)), v = Et(o.clientHeight - (p + g)), x = Et(f), C = {
5893
5893
  rootMargin: -b + "px " + -h + "px " + -v + "px " + -x + "px",
5894
- threshold: ae(0, ke(1, u)) || 1
5894
+ threshold: ae(0, ke(1, l)) || 1
5895
5895
  };
5896
5896
  let E = !0;
5897
5897
  function M(T) {
5898
5898
  const k = T[0].intersectionRatio;
5899
- if (k !== u) {
5899
+ if (k !== l) {
5900
5900
  if (!E)
5901
5901
  return s();
5902
5902
  k ? s(!1, k) : r = setTimeout(() => {
5903
5903
  s(!1, 1e-7);
5904
5904
  }, 1e3);
5905
5905
  }
5906
- k === 1 && !qo(f, e.getBoundingClientRect()) && s(), E = !1;
5906
+ k === 1 && !qo(d, e.getBoundingClientRect()) && s(), E = !1;
5907
5907
  }
5908
5908
  try {
5909
5909
  n = new IntersectionObserver(M, {
@@ -5925,33 +5925,33 @@ function hu(e, t, n, r) {
5925
5925
  ancestorResize: a = !0,
5926
5926
  elementResize: s = typeof ResizeObserver == "function",
5927
5927
  layoutShift: i = typeof IntersectionObserver == "function",
5928
- animationFrame: u = !1
5929
- } = r, f = Dn(e), d = o || a ? [...f ? rt(f) : [], ...rt(t)] : [];
5930
- d.forEach((x) => {
5928
+ animationFrame: l = !1
5929
+ } = r, d = Dn(e), f = o || a ? [...d ? rt(d) : [], ...rt(t)] : [];
5930
+ f.forEach((x) => {
5931
5931
  o && x.addEventListener("scroll", n, {
5932
5932
  passive: !0
5933
5933
  }), a && x.addEventListener("resize", n);
5934
5934
  });
5935
- const p = f && i ? mu(f, n) : null;
5935
+ const p = d && i ? mu(d, n) : null;
5936
5936
  let m = -1, g = null;
5937
5937
  s && (g = new ResizeObserver((x) => {
5938
5938
  let [y] = x;
5939
- y && y.target === f && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
5939
+ y && y.target === d && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
5940
5940
  var C;
5941
5941
  (C = g) == null || C.observe(t);
5942
5942
  })), n();
5943
- }), f && !u && g.observe(f), g.observe(t));
5944
- let b, h = u ? Oe(e) : null;
5945
- u && v();
5943
+ }), d && !l && g.observe(d), g.observe(t));
5944
+ let b, h = l ? Oe(e) : null;
5945
+ l && v();
5946
5946
  function v() {
5947
5947
  const x = Oe(e);
5948
5948
  h && !qo(h, x) && n(), h = x, b = requestAnimationFrame(v);
5949
5949
  }
5950
5950
  return n(), () => {
5951
5951
  var x;
5952
- d.forEach((y) => {
5952
+ f.forEach((y) => {
5953
5953
  o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
5954
- }), p == null || p(), (x = g) == null || x.disconnect(), g = null, u && cancelAnimationFrame(b);
5954
+ }), p == null || p(), (x = g) == null || x.disconnect(), g = null, l && cancelAnimationFrame(b);
5955
5955
  };
5956
5956
  }
5957
5957
  const gu = Yl, vu = Zl, bu = Gl, xu = ql, wu = Ul, _r = Bl, yu = Xl, Cu = (e, t, n) => {
@@ -6007,7 +6007,7 @@ function Tr(e, t) {
6007
6007
  return Math.round(t * n) / n;
6008
6008
  }
6009
6009
  function on(e) {
6010
- const t = l.useRef(e);
6010
+ const t = u.useRef(e);
6011
6011
  return Mt(() => {
6012
6012
  t.current = e;
6013
6013
  }), t;
@@ -6024,22 +6024,22 @@ function Ru(e) {
6024
6024
  floating: s
6025
6025
  } = {},
6026
6026
  transform: i = !0,
6027
- whileElementsMounted: u,
6028
- open: f
6029
- } = e, [d, p] = l.useState({
6027
+ whileElementsMounted: l,
6028
+ open: d
6029
+ } = e, [f, p] = u.useState({
6030
6030
  x: 0,
6031
6031
  y: 0,
6032
6032
  strategy: n,
6033
6033
  placement: t,
6034
6034
  middlewareData: {},
6035
6035
  isPositioned: !1
6036
- }), [m, g] = l.useState(r);
6036
+ }), [m, g] = u.useState(r);
6037
6037
  _t(m, r) || g(r);
6038
- const [b, h] = l.useState(null), [v, x] = l.useState(null), y = l.useCallback((S) => {
6038
+ const [b, h] = u.useState(null), [v, x] = u.useState(null), y = u.useCallback((S) => {
6039
6039
  S !== T.current && (T.current = S, h(S));
6040
- }, []), C = l.useCallback((S) => {
6040
+ }, []), C = u.useCallback((S) => {
6041
6041
  S !== k.current && (k.current = S, x(S));
6042
- }, []), E = a || b, M = s || v, T = l.useRef(null), k = l.useRef(null), R = l.useRef(d), D = u != null, z = on(u), U = on(o), B = on(f), G = l.useCallback(() => {
6042
+ }, []), E = a || b, M = s || v, T = u.useRef(null), k = u.useRef(null), R = u.useRef(f), D = l != null, z = on(l), U = on(o), B = on(d), G = u.useCallback(() => {
6043
6043
  if (!T.current || !k.current)
6044
6044
  return;
6045
6045
  const S = {
@@ -6062,12 +6062,12 @@ function Ru(e) {
6062
6062
  });
6063
6063
  }, [m, t, n, U, B]);
6064
6064
  Mt(() => {
6065
- f === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((S) => ({
6065
+ d === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((S) => ({
6066
6066
  ...S,
6067
6067
  isPositioned: !1
6068
6068
  })));
6069
- }, [f]);
6070
- const H = l.useRef(!1);
6069
+ }, [d]);
6070
+ const H = u.useRef(!1);
6071
6071
  Mt(() => (H.current = !0, () => {
6072
6072
  H.current = !1;
6073
6073
  }), []), Mt(() => {
@@ -6077,15 +6077,15 @@ function Ru(e) {
6077
6077
  G();
6078
6078
  }
6079
6079
  }, [E, M, G, z, D]);
6080
- const Y = l.useMemo(() => ({
6080
+ const Y = u.useMemo(() => ({
6081
6081
  reference: T,
6082
6082
  floating: k,
6083
6083
  setReference: y,
6084
6084
  setFloating: C
6085
- }), [y, C]), I = l.useMemo(() => ({
6085
+ }), [y, C]), I = u.useMemo(() => ({
6086
6086
  reference: E,
6087
6087
  floating: M
6088
- }), [E, M]), V = l.useMemo(() => {
6088
+ }), [E, M]), V = u.useMemo(() => {
6089
6089
  const S = {
6090
6090
  position: n,
6091
6091
  left: 0,
@@ -6093,7 +6093,7 @@ function Ru(e) {
6093
6093
  };
6094
6094
  if (!I.floating)
6095
6095
  return S;
6096
- const _ = Tr(I.floating, d.x), w = Tr(I.floating, d.y);
6096
+ const _ = Tr(I.floating, f.x), w = Tr(I.floating, f.y);
6097
6097
  return i ? {
6098
6098
  ...S,
6099
6099
  transform: "translate(" + _ + "px, " + w + "px)",
@@ -6105,14 +6105,14 @@ function Ru(e) {
6105
6105
  left: _,
6106
6106
  top: w
6107
6107
  };
6108
- }, [n, i, I.floating, d.x, d.y]);
6109
- return l.useMemo(() => ({
6110
- ...d,
6108
+ }, [n, i, I.floating, f.x, f.y]);
6109
+ return u.useMemo(() => ({
6110
+ ...f,
6111
6111
  update: G,
6112
6112
  refs: Y,
6113
6113
  elements: I,
6114
6114
  floatingStyles: V
6115
- }), [d, G, Y, I, V]);
6115
+ }), [f, G, Y, I, V]);
6116
6116
  }
6117
6117
  const Mu = (e) => {
6118
6118
  function t(n) {
@@ -6157,7 +6157,7 @@ const Mu = (e) => {
6157
6157
  ...Mu(e),
6158
6158
  options: [e, t]
6159
6159
  });
6160
- var ju = "Arrow", Qo = l.forwardRef((e, t) => {
6160
+ var ju = "Arrow", Qo = u.forwardRef((e, t) => {
6161
6161
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
6162
6162
  return /* @__PURE__ */ c.jsx(
6163
6163
  q.svg,
@@ -6175,7 +6175,7 @@ var ju = "Arrow", Qo = l.forwardRef((e, t) => {
6175
6175
  Qo.displayName = ju;
6176
6176
  var Iu = Qo;
6177
6177
  function Du(e) {
6178
- const [t, n] = l.useState(void 0);
6178
+ const [t, n] = u.useState(void 0);
6179
6179
  return Me(() => {
6180
6180
  if (e) {
6181
6181
  n({ width: e.offsetWidth, height: e.offsetHeight });
@@ -6185,8 +6185,8 @@ function Du(e) {
6185
6185
  const a = o[0];
6186
6186
  let s, i;
6187
6187
  if ("borderBoxSize" in a) {
6188
- const u = a.borderBoxSize, f = Array.isArray(u) ? u[0] : u;
6189
- s = f.inlineSize, i = f.blockSize;
6188
+ const l = a.borderBoxSize, d = Array.isArray(l) ? l[0] : l;
6189
+ s = d.inlineSize, i = d.blockSize;
6190
6190
  } else
6191
6191
  s = e.offsetWidth, i = e.offsetHeight;
6192
6192
  n({ width: s, height: i });
@@ -6197,20 +6197,20 @@ function Du(e) {
6197
6197
  }, [e]), t;
6198
6198
  }
6199
6199
  var Fn = "Popper", [ea, Ht] = je(Fn), [Lu, ta] = ea(Fn), na = (e) => {
6200
- const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
6200
+ const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
6201
6201
  return /* @__PURE__ */ c.jsx(Lu, { scope: t, anchor: r, onAnchorChange: o, children: n });
6202
6202
  };
6203
6203
  na.displayName = Fn;
6204
- var ra = "PopperAnchor", oa = l.forwardRef(
6204
+ var ra = "PopperAnchor", oa = u.forwardRef(
6205
6205
  (e, t) => {
6206
- const { __scopePopper: n, virtualRef: r, ...o } = e, a = ta(ra, n), s = l.useRef(null), i = ee(t, s);
6207
- return l.useEffect(() => {
6206
+ const { __scopePopper: n, virtualRef: r, ...o } = e, a = ta(ra, n), s = u.useRef(null), i = ee(t, s);
6207
+ return u.useEffect(() => {
6208
6208
  a.onAnchorChange((r == null ? void 0 : r.current) || s.current);
6209
6209
  }), r ? null : /* @__PURE__ */ c.jsx(q.div, { ...o, ref: i });
6210
6210
  }
6211
6211
  );
6212
6212
  oa.displayName = ra;
6213
- var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
6213
+ var $n = "PopperContent", [Fu, $u] = ea($n), aa = u.forwardRef(
6214
6214
  (e, t) => {
6215
6215
  var W, Z, X, oe, Ce, Pe;
6216
6216
  const {
@@ -6220,15 +6220,15 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
6220
6220
  align: a = "center",
6221
6221
  alignOffset: s = 0,
6222
6222
  arrowPadding: i = 0,
6223
- avoidCollisions: u = !0,
6224
- collisionBoundary: f = [],
6225
- collisionPadding: d = 0,
6223
+ avoidCollisions: l = !0,
6224
+ collisionBoundary: d = [],
6225
+ collisionPadding: f = 0,
6226
6226
  sticky: p = "partial",
6227
6227
  hideWhenDetached: m = !1,
6228
6228
  updatePositionStrategy: g = "optimized",
6229
6229
  onPlaced: b,
6230
6230
  ...h
6231
- } = e, v = ta($n, n), [x, y] = l.useState(null), C = ee(t, (qe) => y(qe)), [E, M] = l.useState(null), T = Du(E), k = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, U = Array.isArray(f) ? f : [f], B = U.length > 0, G = {
6231
+ } = e, v = ta($n, n), [x, y] = u.useState(null), C = ee(t, (qe) => y(qe)), [E, M] = u.useState(null), T = Du(E), k = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), z = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, U = Array.isArray(d) ? d : [d], B = U.length > 0, G = {
6232
6232
  padding: z,
6233
6233
  boundary: U.filter(Hu),
6234
6234
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6245,13 +6245,13 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
6245
6245
  },
6246
6246
  middleware: [
6247
6247
  ku({ mainAxis: o + R, alignmentAxis: s }),
6248
- u && Au({
6248
+ l && Au({
6249
6249
  mainAxis: !0,
6250
6250
  crossAxis: !1,
6251
6251
  limiter: p === "partial" ? Nu() : void 0,
6252
6252
  ...G
6253
6253
  }),
6254
- u && Pu({ ...G }),
6254
+ l && Pu({ ...G }),
6255
6255
  _u({
6256
6256
  ...G,
6257
6257
  apply: ({ elements: qe, rects: qn, availableWidth: Ss, availableHeight: Rs }) => {
@@ -6267,7 +6267,7 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
6267
6267
  Me(() => {
6268
6268
  V && (O == null || O());
6269
6269
  }, [V, O]);
6270
- const F = (W = S.arrow) == null ? void 0 : W.x, $ = (Z = S.arrow) == null ? void 0 : Z.y, K = ((X = S.arrow) == null ? void 0 : X.centerOffset) !== 0, [J, re] = l.useState();
6270
+ const F = (W = S.arrow) == null ? void 0 : W.x, $ = (Z = S.arrow) == null ? void 0 : Z.y, K = ((X = S.arrow) == null ? void 0 : X.centerOffset) !== 0, [J, re] = u.useState();
6271
6271
  return Me(() => {
6272
6272
  x && re(window.getComputedStyle(x).zIndex);
6273
6273
  }, [x]), /* @__PURE__ */ c.jsx(
@@ -6330,7 +6330,7 @@ var sa = "PopperArrow", zu = {
6330
6330
  right: "left",
6331
6331
  bottom: "top",
6332
6332
  left: "right"
6333
- }, ia = l.forwardRef(function(t, n) {
6333
+ }, ia = u.forwardRef(function(t, n) {
6334
6334
  const { __scopePopper: r, ...o } = t, a = $u(sa, r), s = zu[a.placedSide];
6335
6335
  return (
6336
6336
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
@@ -6384,9 +6384,9 @@ var Vu = (e) => ({
6384
6384
  options: e,
6385
6385
  fn(t) {
6386
6386
  var v, x, y;
6387
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [f, d] = ca(n), p = { start: "0%", center: "50%", end: "100%" }[d], m = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, g = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + u / 2;
6387
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [d, f] = ca(n), p = { start: "0%", center: "50%", end: "100%" }[f], m = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, g = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
6388
6388
  let b = "", h = "";
6389
- return f === "bottom" ? (b = s ? p : `${m}px`, h = `${-u}px`) : f === "top" ? (b = s ? p : `${m}px`, h = `${r.floating.height + u}px`) : f === "right" ? (b = `${-u}px`, h = s ? p : `${g}px`) : f === "left" && (b = `${r.floating.width + u}px`, h = s ? p : `${g}px`), { data: { x: b, y: h } };
6389
+ return d === "bottom" ? (b = s ? p : `${m}px`, h = `${-l}px`) : d === "top" ? (b = s ? p : `${m}px`, h = `${r.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, h = s ? p : `${g}px`) : d === "left" && (b = `${r.floating.width + l}px`, h = s ? p : `${g}px`), { data: { x: b, y: h } };
6390
6390
  }
6391
6391
  });
6392
6392
  function ca(e) {
@@ -6405,7 +6405,7 @@ var zn = na, la = oa, ua = aa, da = ia, Wu = Object.freeze({
6405
6405
  clip: "rect(0, 0, 0, 0)",
6406
6406
  whiteSpace: "nowrap",
6407
6407
  wordWrap: "normal"
6408
- }), Bu = "VisuallyHidden", fa = l.forwardRef(
6408
+ }), Bu = "VisuallyHidden", fa = u.forwardRef(
6409
6409
  (e, t) => /* @__PURE__ */ c.jsx(
6410
6410
  q.span,
6411
6411
  {
@@ -6416,7 +6416,7 @@ var zn = na, la = oa, ua = aa, da = ia, Wu = Object.freeze({
6416
6416
  )
6417
6417
  );
6418
6418
  fa.displayName = Bu;
6419
- var Gu = fa, [Vt, Pp] = je("Tooltip", [
6419
+ var Gu = fa, [Vt, _p] = je("Tooltip", [
6420
6420
  Ht
6421
6421
  ]), Wt = Ht(), pa = "TooltipProvider", Uu = 700, gn = "tooltip.open", [Ku, Hn] = Vt(pa), ma = (e) => {
6422
6422
  const {
@@ -6425,28 +6425,28 @@ var Gu = fa, [Vt, Pp] = je("Tooltip", [
6425
6425
  skipDelayDuration: r = 300,
6426
6426
  disableHoverableContent: o = !1,
6427
6427
  children: a
6428
- } = e, s = l.useRef(!0), i = l.useRef(!1), u = l.useRef(0);
6429
- return l.useEffect(() => {
6430
- const f = u.current;
6431
- return () => window.clearTimeout(f);
6428
+ } = e, s = u.useRef(!0), i = u.useRef(!1), l = u.useRef(0);
6429
+ return u.useEffect(() => {
6430
+ const d = l.current;
6431
+ return () => window.clearTimeout(d);
6432
6432
  }, []), /* @__PURE__ */ c.jsx(
6433
6433
  Ku,
6434
6434
  {
6435
6435
  scope: t,
6436
6436
  isOpenDelayedRef: s,
6437
6437
  delayDuration: n,
6438
- onOpen: l.useCallback(() => {
6439
- window.clearTimeout(u.current), s.current = !1;
6438
+ onOpen: u.useCallback(() => {
6439
+ window.clearTimeout(l.current), s.current = !1;
6440
6440
  }, []),
6441
- onClose: l.useCallback(() => {
6442
- window.clearTimeout(u.current), u.current = window.setTimeout(
6441
+ onClose: u.useCallback(() => {
6442
+ window.clearTimeout(l.current), l.current = window.setTimeout(
6443
6443
  () => s.current = !0,
6444
6444
  r
6445
6445
  );
6446
6446
  }, [r]),
6447
6447
  isPointerInTransitRef: i,
6448
- onPointerInTransitChange: l.useCallback((f) => {
6449
- i.current = f;
6448
+ onPointerInTransitChange: u.useCallback((d) => {
6449
+ i.current = d;
6450
6450
  }, []),
6451
6451
  disableHoverableContent: o,
6452
6452
  children: a
@@ -6463,37 +6463,37 @@ var ot = "Tooltip", [Yu, Bt] = Vt(ot), ha = (e) => {
6463
6463
  onOpenChange: a,
6464
6464
  disableHoverableContent: s,
6465
6465
  delayDuration: i
6466
- } = e, u = Hn(ot, e.__scopeTooltip), f = Wt(t), [d, p] = l.useState(null), m = be(), g = l.useRef(0), b = s ?? u.disableHoverableContent, h = i ?? u.delayDuration, v = l.useRef(!1), [x, y] = it({
6466
+ } = e, l = Hn(ot, e.__scopeTooltip), d = Wt(t), [f, p] = u.useState(null), m = be(), g = u.useRef(0), b = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, v = u.useRef(!1), [x, y] = it({
6467
6467
  prop: r,
6468
6468
  defaultProp: o ?? !1,
6469
6469
  onChange: (k) => {
6470
- k ? (u.onOpen(), document.dispatchEvent(new CustomEvent(gn))) : u.onClose(), a == null || a(k);
6470
+ k ? (l.onOpen(), document.dispatchEvent(new CustomEvent(gn))) : l.onClose(), a == null || a(k);
6471
6471
  },
6472
6472
  caller: ot
6473
- }), C = l.useMemo(() => x ? v.current ? "delayed-open" : "instant-open" : "closed", [x]), E = l.useCallback(() => {
6473
+ }), C = u.useMemo(() => x ? v.current ? "delayed-open" : "instant-open" : "closed", [x]), E = u.useCallback(() => {
6474
6474
  window.clearTimeout(g.current), g.current = 0, v.current = !1, y(!0);
6475
- }, [y]), M = l.useCallback(() => {
6475
+ }, [y]), M = u.useCallback(() => {
6476
6476
  window.clearTimeout(g.current), g.current = 0, y(!1);
6477
- }, [y]), T = l.useCallback(() => {
6477
+ }, [y]), T = u.useCallback(() => {
6478
6478
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
6479
6479
  v.current = !0, y(!0), g.current = 0;
6480
6480
  }, h);
6481
6481
  }, [h, y]);
6482
- return l.useEffect(() => () => {
6482
+ return u.useEffect(() => () => {
6483
6483
  g.current && (window.clearTimeout(g.current), g.current = 0);
6484
- }, []), /* @__PURE__ */ c.jsx(zn, { ...f, children: /* @__PURE__ */ c.jsx(
6484
+ }, []), /* @__PURE__ */ c.jsx(zn, { ...d, children: /* @__PURE__ */ c.jsx(
6485
6485
  Yu,
6486
6486
  {
6487
6487
  scope: t,
6488
6488
  contentId: m,
6489
6489
  open: x,
6490
6490
  stateAttribute: C,
6491
- trigger: d,
6491
+ trigger: f,
6492
6492
  onTriggerChange: p,
6493
- onTriggerEnter: l.useCallback(() => {
6494
- u.isOpenDelayedRef.current ? T() : E();
6495
- }, [u.isOpenDelayedRef, T, E]),
6496
- onTriggerLeave: l.useCallback(() => {
6493
+ onTriggerEnter: u.useCallback(() => {
6494
+ l.isOpenDelayedRef.current ? T() : E();
6495
+ }, [l.isOpenDelayedRef, T, E]),
6496
+ onTriggerLeave: u.useCallback(() => {
6497
6497
  b ? M() : (window.clearTimeout(g.current), g.current = 0);
6498
6498
  }, [M, b]),
6499
6499
  onOpen: E,
@@ -6504,27 +6504,27 @@ var ot = "Tooltip", [Yu, Bt] = Vt(ot), ha = (e) => {
6504
6504
  ) });
6505
6505
  };
6506
6506
  ha.displayName = ot;
6507
- var vn = "TooltipTrigger", ga = l.forwardRef(
6507
+ var vn = "TooltipTrigger", ga = u.forwardRef(
6508
6508
  (e, t) => {
6509
- const { __scopeTooltip: n, ...r } = e, o = Bt(vn, n), a = Hn(vn, n), s = Wt(n), i = l.useRef(null), u = ee(t, i, o.onTriggerChange), f = l.useRef(!1), d = l.useRef(!1), p = l.useCallback(() => f.current = !1, []);
6510
- return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ c.jsx(la, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
6509
+ const { __scopeTooltip: n, ...r } = e, o = Bt(vn, n), a = Hn(vn, n), s = Wt(n), i = u.useRef(null), l = ee(t, i, o.onTriggerChange), d = u.useRef(!1), f = u.useRef(!1), p = u.useCallback(() => d.current = !1, []);
6510
+ return u.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ c.jsx(la, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
6511
6511
  q.button,
6512
6512
  {
6513
6513
  "aria-describedby": o.open ? o.contentId : void 0,
6514
6514
  "data-state": o.stateAttribute,
6515
6515
  ...r,
6516
- ref: u,
6516
+ ref: l,
6517
6517
  onPointerMove: j(e.onPointerMove, (m) => {
6518
- m.pointerType !== "touch" && !d.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
6518
+ m.pointerType !== "touch" && !f.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), f.current = !0);
6519
6519
  }),
6520
6520
  onPointerLeave: j(e.onPointerLeave, () => {
6521
- o.onTriggerLeave(), d.current = !1;
6521
+ o.onTriggerLeave(), f.current = !1;
6522
6522
  }),
6523
6523
  onPointerDown: j(e.onPointerDown, () => {
6524
- o.open && o.onClose(), f.current = !0, document.addEventListener("pointerup", p, { once: !0 });
6524
+ o.open && o.onClose(), d.current = !0, document.addEventListener("pointerup", p, { once: !0 });
6525
6525
  }),
6526
6526
  onFocus: j(e.onFocus, () => {
6527
- f.current || o.onOpen();
6527
+ d.current || o.onOpen();
6528
6528
  }),
6529
6529
  onBlur: j(e.onBlur, o.onClose),
6530
6530
  onClick: j(e.onClick, o.onClose)
@@ -6533,40 +6533,40 @@ var vn = "TooltipTrigger", ga = l.forwardRef(
6533
6533
  }
6534
6534
  );
6535
6535
  ga.displayName = vn;
6536
- var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
6536
+ var Zu = "TooltipPortal", [Tp, Xu] = Vt(Zu, {
6537
6537
  forceMount: void 0
6538
- }), Ge = "TooltipContent", va = l.forwardRef(
6538
+ }), Ge = "TooltipContent", va = u.forwardRef(
6539
6539
  (e, t) => {
6540
6540
  const n = Xu(Ge, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = Bt(Ge, e.__scopeTooltip);
6541
6541
  return /* @__PURE__ */ c.jsx(ye, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ c.jsx(ba, { side: o, ...a, ref: t }) : /* @__PURE__ */ c.jsx(qu, { side: o, ...a, ref: t }) });
6542
6542
  }
6543
- ), qu = l.forwardRef((e, t) => {
6544
- const n = Bt(Ge, e.__scopeTooltip), r = Hn(Ge, e.__scopeTooltip), o = l.useRef(null), a = ee(t, o), [s, i] = l.useState(null), { trigger: u, onClose: f } = n, d = o.current, { onPointerInTransitChange: p } = r, m = l.useCallback(() => {
6543
+ ), qu = u.forwardRef((e, t) => {
6544
+ const n = Bt(Ge, e.__scopeTooltip), r = Hn(Ge, e.__scopeTooltip), o = u.useRef(null), a = ee(t, o), [s, i] = u.useState(null), { trigger: l, onClose: d } = n, f = o.current, { onPointerInTransitChange: p } = r, m = u.useCallback(() => {
6545
6545
  i(null), p(!1);
6546
- }, [p]), g = l.useCallback(
6546
+ }, [p]), g = u.useCallback(
6547
6547
  (b, h) => {
6548
6548
  const v = b.currentTarget, x = { x: b.clientX, y: b.clientY }, y = nd(x, v.getBoundingClientRect()), C = rd(x, y), E = od(h.getBoundingClientRect()), M = sd([...C, ...E]);
6549
6549
  i(M), p(!0);
6550
6550
  },
6551
6551
  [p]
6552
6552
  );
6553
- return l.useEffect(() => () => m(), [m]), l.useEffect(() => {
6554
- if (u && d) {
6555
- const b = (v) => g(v, d), h = (v) => g(v, u);
6556
- return u.addEventListener("pointerleave", b), d.addEventListener("pointerleave", h), () => {
6557
- u.removeEventListener("pointerleave", b), d.removeEventListener("pointerleave", h);
6553
+ return u.useEffect(() => () => m(), [m]), u.useEffect(() => {
6554
+ if (l && f) {
6555
+ const b = (v) => g(v, f), h = (v) => g(v, l);
6556
+ return l.addEventListener("pointerleave", b), f.addEventListener("pointerleave", h), () => {
6557
+ l.removeEventListener("pointerleave", b), f.removeEventListener("pointerleave", h);
6558
6558
  };
6559
6559
  }
6560
- }, [u, d, g, m]), l.useEffect(() => {
6560
+ }, [l, f, g, m]), u.useEffect(() => {
6561
6561
  if (s) {
6562
6562
  const b = (h) => {
6563
- const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (u == null ? void 0 : u.contains(v)) || (d == null ? void 0 : d.contains(v)), C = !ad(x, s);
6564
- y ? m() : C && (m(), f());
6563
+ const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(v)) || (f == null ? void 0 : f.contains(v)), C = !ad(x, s);
6564
+ y ? m() : C && (m(), d());
6565
6565
  };
6566
6566
  return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
6567
6567
  }
6568
- }, [u, d, s, f, m]), /* @__PURE__ */ c.jsx(ba, { ...e, ref: a });
6569
- }), [Ju, Qu] = Vt(ot, { isInside: !1 }), ed = /* @__PURE__ */ zs("TooltipContent"), ba = l.forwardRef(
6568
+ }, [l, f, s, d, m]), /* @__PURE__ */ c.jsx(ba, { ...e, ref: a });
6569
+ }), [Ju, Qu] = Vt(ot, { isInside: !1 }), ed = /* @__PURE__ */ zs("TooltipContent"), ba = u.forwardRef(
6570
6570
  (e, t) => {
6571
6571
  const {
6572
6572
  __scopeTooltip: n,
@@ -6575,16 +6575,16 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
6575
6575
  onEscapeKeyDown: a,
6576
6576
  onPointerDownOutside: s,
6577
6577
  ...i
6578
- } = e, u = Bt(Ge, n), f = Wt(n), { onClose: d } = u;
6579
- return l.useEffect(() => (document.addEventListener(gn, d), () => document.removeEventListener(gn, d)), [d]), l.useEffect(() => {
6580
- if (u.trigger) {
6578
+ } = e, l = Bt(Ge, n), d = Wt(n), { onClose: f } = l;
6579
+ return u.useEffect(() => (document.addEventListener(gn, f), () => document.removeEventListener(gn, f)), [f]), u.useEffect(() => {
6580
+ if (l.trigger) {
6581
6581
  const p = (m) => {
6582
6582
  const g = m.target;
6583
- g != null && g.contains(u.trigger) && d();
6583
+ g != null && g.contains(l.trigger) && f();
6584
6584
  };
6585
6585
  return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
6586
6586
  }
6587
- }, [u.trigger, d]), /* @__PURE__ */ c.jsx(
6587
+ }, [l.trigger, f]), /* @__PURE__ */ c.jsx(
6588
6588
  It,
6589
6589
  {
6590
6590
  asChild: !0,
@@ -6592,12 +6592,12 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
6592
6592
  onEscapeKeyDown: a,
6593
6593
  onPointerDownOutside: s,
6594
6594
  onFocusOutside: (p) => p.preventDefault(),
6595
- onDismiss: d,
6595
+ onDismiss: f,
6596
6596
  children: /* @__PURE__ */ c.jsxs(
6597
6597
  ua,
6598
6598
  {
6599
- "data-state": u.stateAttribute,
6600
- ...f,
6599
+ "data-state": l.stateAttribute,
6600
+ ...d,
6601
6601
  ...i,
6602
6602
  ref: t,
6603
6603
  style: {
@@ -6610,7 +6610,7 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
6610
6610
  },
6611
6611
  children: [
6612
6612
  /* @__PURE__ */ c.jsx(ed, { children: r }),
6613
- /* @__PURE__ */ c.jsx(Ju, { scope: n, isInside: !0, children: /* @__PURE__ */ c.jsx(Gu, { id: u.contentId, role: "tooltip", children: o || r }) })
6613
+ /* @__PURE__ */ c.jsx(Ju, { scope: n, isInside: !0, children: /* @__PURE__ */ c.jsx(Gu, { id: l.contentId, role: "tooltip", children: o || r }) })
6614
6614
  ]
6615
6615
  }
6616
6616
  )
@@ -6619,7 +6619,7 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
6619
6619
  }
6620
6620
  );
6621
6621
  va.displayName = Ge;
6622
- var xa = "TooltipArrow", td = l.forwardRef(
6622
+ var xa = "TooltipArrow", td = u.forwardRef(
6623
6623
  (e, t) => {
6624
6624
  const { __scopeTooltip: n, ...r } = e, o = Wt(n);
6625
6625
  return Qu(
@@ -6687,8 +6687,8 @@ function ad(e, t) {
6687
6687
  const { x: n, y: r } = e;
6688
6688
  let o = !1;
6689
6689
  for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
6690
- const i = t[a], u = t[s], f = i.x, d = i.y, p = u.x, m = u.y;
6691
- d > r != m > r && n < (p - f) * (r - d) / (m - d) + f && (o = !o);
6690
+ const i = t[a], l = t[s], d = i.x, f = i.y, p = l.x, m = l.y;
6691
+ f > r != m > r && n < (p - d) * (r - f) / (m - f) + d && (o = !o);
6692
6692
  }
6693
6693
  return o;
6694
6694
  }
@@ -6722,7 +6722,7 @@ function id(e) {
6722
6722
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
6723
6723
  }
6724
6724
  var cd = ma, ld = ha, ud = ga, wa = va;
6725
- const ya = cd, Ca = ld, Ea = ud, Vn = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
6725
+ const ya = cd, Ca = ld, Ea = ud, Vn = u.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
6726
6726
  wa,
6727
6727
  {
6728
6728
  ref: r,
@@ -6735,9 +6735,9 @@ const ya = cd, Ca = ld, Ea = ud, Vn = l.forwardRef(({ className: e, sideOffset:
6735
6735
  }
6736
6736
  ));
6737
6737
  Vn.displayName = wa.displayName;
6738
- const dd = "sidebar_state", fd = 60 * 60 * 24 * 7, pd = "16rem", md = "18rem", hd = "3rem", gd = "b", Sa = l.createContext(null);
6738
+ const dd = "sidebar_state", fd = 60 * 60 * 24 * 7, pd = "16rem", md = "18rem", hd = "3rem", gd = "b", Sa = u.createContext(null);
6739
6739
  function Gt() {
6740
- const e = l.useContext(Sa);
6740
+ const e = u.useContext(Sa);
6741
6741
  if (!e)
6742
6742
  throw new Error("useSidebar must be used within a SidebarProvider.");
6743
6743
  return e;
@@ -6751,30 +6751,30 @@ function vd({
6751
6751
  children: a,
6752
6752
  ...s
6753
6753
  }) {
6754
- const i = sc(), [u, f] = l.useState(!1), [d, p] = l.useState(e), m = t ?? d, g = l.useCallback(
6754
+ const i = sc(), [l, d] = u.useState(!1), [f, p] = u.useState(e), m = t ?? f, g = u.useCallback(
6755
6755
  (x) => {
6756
6756
  const y = typeof x == "function" ? x(m) : x;
6757
6757
  n ? n(y) : p(y), document.cookie = `${dd}=${y}; path=/; max-age=${fd}`;
6758
6758
  },
6759
6759
  [n, m]
6760
- ), b = l.useCallback(() => i ? f((x) => !x) : g((x) => !x), [i, g, f]);
6761
- l.useEffect(() => {
6760
+ ), b = u.useCallback(() => i ? d((x) => !x) : g((x) => !x), [i, g, d]);
6761
+ u.useEffect(() => {
6762
6762
  const x = (y) => {
6763
6763
  y.key === gd && (y.metaKey || y.ctrlKey) && (y.preventDefault(), b());
6764
6764
  };
6765
6765
  return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
6766
6766
  }, [b]);
6767
- const h = m ? "expanded" : "collapsed", v = l.useMemo(
6767
+ const h = m ? "expanded" : "collapsed", v = u.useMemo(
6768
6768
  () => ({
6769
6769
  state: h,
6770
6770
  open: m,
6771
6771
  setOpen: g,
6772
6772
  isMobile: i,
6773
- openMobile: u,
6774
- setOpenMobile: f,
6773
+ openMobile: l,
6774
+ setOpenMobile: d,
6775
6775
  toggleSidebar: b
6776
6776
  }),
6777
- [h, m, g, i, u, f, b]
6777
+ [h, m, g, i, l, d, b]
6778
6778
  );
6779
6779
  return /* @__PURE__ */ c.jsx(Sa.Provider, { value: v, children: /* @__PURE__ */ c.jsx(ya, { delayDuration: 0, children: /* @__PURE__ */ c.jsx(
6780
6780
  "div",
@@ -6802,7 +6802,7 @@ function bd({
6802
6802
  children: o,
6803
6803
  ...a
6804
6804
  }) {
6805
- const { isMobile: s, state: i, openMobile: u, setOpenMobile: f } = Gt();
6805
+ const { isMobile: s, state: i, openMobile: l, setOpenMobile: d } = Gt();
6806
6806
  return n === "none" ? /* @__PURE__ */ c.jsx(
6807
6807
  "div",
6808
6808
  {
@@ -6814,7 +6814,7 @@ function bd({
6814
6814
  ...a,
6815
6815
  children: o
6816
6816
  }
6817
- ) : s ? /* @__PURE__ */ c.jsx(_l, { open: u, onOpenChange: f, ...a, children: /* @__PURE__ */ c.jsxs(
6817
+ ) : s ? /* @__PURE__ */ c.jsx(_l, { open: l, onOpenChange: d, ...a, children: /* @__PURE__ */ c.jsxs(
6818
6818
  $o,
6819
6819
  {
6820
6820
  "data-sidebar": "sidebar",
@@ -6945,7 +6945,7 @@ function yd({ className: e, ...t }) {
6945
6945
  }
6946
6946
  );
6947
6947
  }
6948
- function Tp({
6948
+ function Op({
6949
6949
  className: e,
6950
6950
  ...t
6951
6951
  }) {
@@ -6970,7 +6970,7 @@ function Cd({ className: e, ...t }) {
6970
6970
  }
6971
6971
  );
6972
6972
  }
6973
- function Op({ className: e, ...t }) {
6973
+ function jp({ className: e, ...t }) {
6974
6974
  return /* @__PURE__ */ c.jsx(
6975
6975
  "div",
6976
6976
  {
@@ -6981,7 +6981,7 @@ function Op({ className: e, ...t }) {
6981
6981
  }
6982
6982
  );
6983
6983
  }
6984
- function jp({
6984
+ function Ip({
6985
6985
  className: e,
6986
6986
  ...t
6987
6987
  }) {
@@ -7023,7 +7023,7 @@ function Sd({ className: e, ...t }) {
7023
7023
  }
7024
7024
  );
7025
7025
  }
7026
- function Ip({
7026
+ function Dp({
7027
7027
  className: e,
7028
7028
  asChild: t = !1,
7029
7029
  ...n
@@ -7043,7 +7043,7 @@ function Ip({
7043
7043
  }
7044
7044
  );
7045
7045
  }
7046
- function Dp({
7046
+ function Lp({
7047
7047
  className: e,
7048
7048
  asChild: t = !1,
7049
7049
  ...n
@@ -7079,7 +7079,7 @@ function Rd({
7079
7079
  }
7080
7080
  );
7081
7081
  }
7082
- function Lp({ className: e, ...t }) {
7082
+ function Fp({ className: e, ...t }) {
7083
7083
  return /* @__PURE__ */ c.jsx(
7084
7084
  "ul",
7085
7085
  {
@@ -7090,7 +7090,7 @@ function Lp({ className: e, ...t }) {
7090
7090
  }
7091
7091
  );
7092
7092
  }
7093
- function Fp({ className: e, ...t }) {
7093
+ function $p({ className: e, ...t }) {
7094
7094
  return /* @__PURE__ */ c.jsx(
7095
7095
  "li",
7096
7096
  {
@@ -7121,7 +7121,7 @@ const Md = En(
7121
7121
  }
7122
7122
  }
7123
7123
  );
7124
- function $p({
7124
+ function zp({
7125
7125
  asChild: e = !1,
7126
7126
  isActive: t = !1,
7127
7127
  variant: n = "default",
@@ -7130,7 +7130,7 @@ function $p({
7130
7130
  className: a,
7131
7131
  ...s
7132
7132
  }) {
7133
- const i = e ? Ue : "button", { isMobile: u, state: f } = Gt(), d = /* @__PURE__ */ c.jsx(
7133
+ const i = e ? Ue : "button", { isMobile: l, state: d } = Gt(), f = /* @__PURE__ */ c.jsx(
7134
7134
  i,
7135
7135
  {
7136
7136
  "data-slot": "sidebar-menu-button",
@@ -7144,19 +7144,19 @@ function $p({
7144
7144
  return o ? (typeof o == "string" && (o = {
7145
7145
  children: o
7146
7146
  }), /* @__PURE__ */ c.jsxs(Ca, { children: [
7147
- /* @__PURE__ */ c.jsx(Ea, { asChild: !0, children: d }),
7147
+ /* @__PURE__ */ c.jsx(Ea, { asChild: !0, children: f }),
7148
7148
  /* @__PURE__ */ c.jsx(
7149
7149
  Vn,
7150
7150
  {
7151
7151
  side: "right",
7152
7152
  align: "center",
7153
- hidden: f !== "collapsed" || u,
7153
+ hidden: d !== "collapsed" || l,
7154
7154
  ...o
7155
7155
  }
7156
7156
  )
7157
- ] })) : d;
7157
+ ] })) : f;
7158
7158
  }
7159
- function zp({
7159
+ function Hp({
7160
7160
  className: e,
7161
7161
  asChild: t = !1,
7162
7162
  showOnHover: n = !1,
@@ -7183,7 +7183,7 @@ function zp({
7183
7183
  }
7184
7184
  );
7185
7185
  }
7186
- function Hp({
7186
+ function Vp({
7187
7187
  className: e,
7188
7188
  ...t
7189
7189
  }) {
@@ -7205,12 +7205,12 @@ function Hp({
7205
7205
  }
7206
7206
  );
7207
7207
  }
7208
- function Vp({
7208
+ function Wp({
7209
7209
  className: e,
7210
7210
  showIcon: t = !1,
7211
7211
  ...n
7212
7212
  }) {
7213
- const r = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
7213
+ const r = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
7214
7214
  return /* @__PURE__ */ c.jsxs(
7215
7215
  "div",
7216
7216
  {
@@ -7305,20 +7305,20 @@ function Ra(e) {
7305
7305
  return /* @__PURE__ */ c.jsx(o, { scope: v, itemMap: C, collectionRef: y, children: x });
7306
7306
  };
7307
7307
  s.displayName = t;
7308
- const i = e + "CollectionSlot", u = /* @__PURE__ */ We(i), f = Se.forwardRef(
7308
+ const i = e + "CollectionSlot", l = /* @__PURE__ */ We(i), d = Se.forwardRef(
7309
7309
  (h, v) => {
7310
7310
  const { scope: x, children: y } = h, C = a(i, x), E = ee(v, C.collectionRef);
7311
- return /* @__PURE__ */ c.jsx(u, { ref: E, children: y });
7311
+ return /* @__PURE__ */ c.jsx(l, { ref: E, children: y });
7312
7312
  }
7313
7313
  );
7314
- f.displayName = i;
7315
- const d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ We(d), g = Se.forwardRef(
7314
+ d.displayName = i;
7315
+ const f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ We(f), g = Se.forwardRef(
7316
7316
  (h, v) => {
7317
- const { scope: x, children: y, ...C } = h, E = Se.useRef(null), M = ee(v, E), T = a(d, x);
7317
+ const { scope: x, children: y, ...C } = h, E = Se.useRef(null), M = ee(v, E), T = a(f, x);
7318
7318
  return Se.useEffect(() => (T.itemMap.set(E, { ref: E, ...C }), () => void T.itemMap.delete(E))), /* @__PURE__ */ c.jsx(m, { [p]: "", ref: M, children: y });
7319
7319
  }
7320
7320
  );
7321
- g.displayName = d;
7321
+ g.displayName = f;
7322
7322
  function b(h) {
7323
7323
  const v = a(e + "CollectionConsumer", h);
7324
7324
  return Se.useCallback(() => {
@@ -7331,24 +7331,24 @@ function Ra(e) {
7331
7331
  }, [v.collectionRef, v.itemMap]);
7332
7332
  }
7333
7333
  return [
7334
- { Provider: s, Slot: f, ItemSlot: g },
7334
+ { Provider: s, Slot: d, ItemSlot: g },
7335
7335
  b,
7336
7336
  r
7337
7337
  ];
7338
7338
  }
7339
- var Pd = l.createContext(void 0);
7339
+ var Pd = u.createContext(void 0);
7340
7340
  function Ma(e) {
7341
- const t = l.useContext(Pd);
7341
+ const t = u.useContext(Pd);
7342
7342
  return e || t || "ltr";
7343
7343
  }
7344
7344
  var an = "rovingFocusGroup.onEntryFocus", _d = { bubbles: !1, cancelable: !0 }, lt = "RovingFocusGroup", [bn, ka, Td] = Ra(lt), [Od, Aa] = je(
7345
7345
  lt,
7346
7346
  [Td]
7347
- ), [jd, Id] = Od(lt), Na = l.forwardRef(
7347
+ ), [jd, Id] = Od(lt), Na = u.forwardRef(
7348
7348
  (e, t) => /* @__PURE__ */ c.jsx(bn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(bn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Dd, { ...e, ref: t }) }) })
7349
7349
  );
7350
7350
  Na.displayName = lt;
7351
- var Dd = l.forwardRef((e, t) => {
7351
+ var Dd = u.forwardRef((e, t) => {
7352
7352
  const {
7353
7353
  __scopeRovingFocusGroup: n,
7354
7354
  orientation: r,
@@ -7356,17 +7356,17 @@ var Dd = l.forwardRef((e, t) => {
7356
7356
  dir: a,
7357
7357
  currentTabStopId: s,
7358
7358
  defaultCurrentTabStopId: i,
7359
- onCurrentTabStopIdChange: u,
7360
- onEntryFocus: f,
7361
- preventScrollOnEntryFocus: d = !1,
7359
+ onCurrentTabStopIdChange: l,
7360
+ onEntryFocus: d,
7361
+ preventScrollOnEntryFocus: f = !1,
7362
7362
  ...p
7363
- } = e, m = l.useRef(null), g = ee(t, m), b = Ma(a), [h, v] = it({
7363
+ } = e, m = u.useRef(null), g = ee(t, m), b = Ma(a), [h, v] = it({
7364
7364
  prop: s,
7365
7365
  defaultProp: i ?? null,
7366
- onChange: u,
7366
+ onChange: l,
7367
7367
  caller: lt
7368
- }), [x, y] = l.useState(!1), C = me(f), E = ka(n), M = l.useRef(!1), [T, k] = l.useState(0);
7369
- return l.useEffect(() => {
7368
+ }), [x, y] = u.useState(!1), C = me(d), E = ka(n), M = u.useRef(!1), [T, k] = u.useState(0);
7369
+ return u.useEffect(() => {
7370
7370
  const R = m.current;
7371
7371
  if (R)
7372
7372
  return R.addEventListener(an, C), () => R.removeEventListener(an, C);
@@ -7378,16 +7378,16 @@ var Dd = l.forwardRef((e, t) => {
7378
7378
  dir: b,
7379
7379
  loop: o,
7380
7380
  currentTabStopId: h,
7381
- onItemFocus: l.useCallback(
7381
+ onItemFocus: u.useCallback(
7382
7382
  (R) => v(R),
7383
7383
  [v]
7384
7384
  ),
7385
- onItemShiftTab: l.useCallback(() => y(!0), []),
7386
- onFocusableItemAdd: l.useCallback(
7385
+ onItemShiftTab: u.useCallback(() => y(!0), []),
7386
+ onFocusableItemAdd: u.useCallback(
7387
7387
  () => k((R) => R + 1),
7388
7388
  []
7389
7389
  ),
7390
- onFocusableItemRemove: l.useCallback(
7390
+ onFocusableItemRemove: u.useCallback(
7391
7391
  () => k((R) => R - 1),
7392
7392
  []
7393
7393
  ),
@@ -7410,7 +7410,7 @@ var Dd = l.forwardRef((e, t) => {
7410
7410
  const U = E().filter((I) => I.focusable), B = U.find((I) => I.active), G = U.find((I) => I.id === h), Y = [B, G, ...U].filter(
7411
7411
  Boolean
7412
7412
  ).map((I) => I.ref.current);
7413
- Ta(Y, d);
7413
+ Ta(Y, f);
7414
7414
  }
7415
7415
  }
7416
7416
  M.current = !1;
@@ -7420,7 +7420,7 @@ var Dd = l.forwardRef((e, t) => {
7420
7420
  )
7421
7421
  }
7422
7422
  );
7423
- }), Pa = "RovingFocusGroupItem", _a = l.forwardRef(
7423
+ }), Pa = "RovingFocusGroupItem", _a = u.forwardRef(
7424
7424
  (e, t) => {
7425
7425
  const {
7426
7426
  __scopeRovingFocusGroup: n,
@@ -7429,35 +7429,35 @@ var Dd = l.forwardRef((e, t) => {
7429
7429
  tabStopId: a,
7430
7430
  children: s,
7431
7431
  ...i
7432
- } = e, u = be(), f = a || u, d = Id(Pa, n), p = d.currentTabStopId === f, m = ka(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = d;
7433
- return l.useEffect(() => {
7432
+ } = e, l = be(), d = a || l, f = Id(Pa, n), p = f.currentTabStopId === d, m = ka(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = f;
7433
+ return u.useEffect(() => {
7434
7434
  if (r)
7435
7435
  return g(), () => b();
7436
7436
  }, [r, g, b]), /* @__PURE__ */ c.jsx(
7437
7437
  bn.ItemSlot,
7438
7438
  {
7439
7439
  scope: n,
7440
- id: f,
7440
+ id: d,
7441
7441
  focusable: r,
7442
7442
  active: o,
7443
7443
  children: /* @__PURE__ */ c.jsx(
7444
7444
  q.span,
7445
7445
  {
7446
7446
  tabIndex: p ? 0 : -1,
7447
- "data-orientation": d.orientation,
7447
+ "data-orientation": f.orientation,
7448
7448
  ...i,
7449
7449
  ref: t,
7450
7450
  onMouseDown: j(e.onMouseDown, (v) => {
7451
- r ? d.onItemFocus(f) : v.preventDefault();
7451
+ r ? f.onItemFocus(d) : v.preventDefault();
7452
7452
  }),
7453
- onFocus: j(e.onFocus, () => d.onItemFocus(f)),
7453
+ onFocus: j(e.onFocus, () => f.onItemFocus(d)),
7454
7454
  onKeyDown: j(e.onKeyDown, (v) => {
7455
7455
  if (v.key === "Tab" && v.shiftKey) {
7456
- d.onItemShiftTab();
7456
+ f.onItemShiftTab();
7457
7457
  return;
7458
7458
  }
7459
7459
  if (v.target !== v.currentTarget) return;
7460
- const x = $d(v, d.orientation, d.dir);
7460
+ const x = $d(v, f.orientation, f.dir);
7461
7461
  if (x !== void 0) {
7462
7462
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
7463
7463
  v.preventDefault();
@@ -7466,7 +7466,7 @@ var Dd = l.forwardRef((e, t) => {
7466
7466
  else if (x === "prev" || x === "next") {
7467
7467
  x === "prev" && C.reverse();
7468
7468
  const E = C.indexOf(v.currentTarget);
7469
- C = d.loop ? zd(C, E + 1) : C.slice(E + 1);
7469
+ C = f.loop ? zd(C, E + 1) : C.slice(E + 1);
7470
7470
  }
7471
7471
  setTimeout(() => Ta(C));
7472
7472
  }
@@ -7516,11 +7516,11 @@ var Hd = Na, Vd = _a, xn = ["Enter", " "], Wd = ["ArrowDown", "PageUp", "Home"],
7516
7516
  Ht,
7517
7517
  Aa
7518
7518
  ]), dt = Ht(), Ia = Aa(), [Da, Ne] = Ie(ut), [Zd, ft] = Ie(ut), La = (e) => {
7519
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = dt(t), [u, f] = l.useState(null), d = l.useRef(!1), p = me(a), m = Ma(o);
7520
- return l.useEffect(() => {
7519
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = dt(t), [l, d] = u.useState(null), f = u.useRef(!1), p = me(a), m = Ma(o);
7520
+ return u.useEffect(() => {
7521
7521
  const g = () => {
7522
- d.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
7523
- }, b = () => d.current = !1;
7522
+ f.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
7523
+ }, b = () => f.current = !1;
7524
7524
  return document.addEventListener("keydown", g, { capture: !0 }), () => {
7525
7525
  document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", b, { capture: !0 }), document.removeEventListener("pointermove", b, { capture: !0 });
7526
7526
  };
@@ -7530,14 +7530,14 @@ var Hd = Na, Vd = _a, xn = ["Enter", " "], Wd = ["ArrowDown", "PageUp", "Home"],
7530
7530
  scope: t,
7531
7531
  open: n,
7532
7532
  onOpenChange: p,
7533
- content: u,
7534
- onContentChange: f,
7533
+ content: l,
7534
+ onContentChange: d,
7535
7535
  children: /* @__PURE__ */ c.jsx(
7536
7536
  Zd,
7537
7537
  {
7538
7538
  scope: t,
7539
- onClose: l.useCallback(() => p(!1), [p]),
7540
- isUsingKeyboardRef: d,
7539
+ onClose: u.useCallback(() => p(!1), [p]),
7540
+ isUsingKeyboardRef: f,
7541
7541
  dir: m,
7542
7542
  modal: s,
7543
7543
  children: r
@@ -7547,7 +7547,7 @@ var Hd = Na, Vd = _a, xn = ["Enter", " "], Wd = ["ArrowDown", "PageUp", "Home"],
7547
7547
  ) });
7548
7548
  };
7549
7549
  La.displayName = ut;
7550
- var Xd = "MenuAnchor", Wn = l.forwardRef(
7550
+ var Xd = "MenuAnchor", Wn = u.forwardRef(
7551
7551
  (e, t) => {
7552
7552
  const { __scopeMenu: n, ...r } = e, o = dt(n);
7553
7553
  return /* @__PURE__ */ c.jsx(la, { ...o, ...r, ref: t });
@@ -7561,15 +7561,15 @@ var Bn = "MenuPortal", [qd, Fa] = Ie(Bn, {
7561
7561
  return /* @__PURE__ */ c.jsx(qd, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(ye, { present: n || a.open, children: /* @__PURE__ */ c.jsx(Mn, { asChild: !0, container: o, children: r }) }) });
7562
7562
  };
7563
7563
  $a.displayName = Bn;
7564
- var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7564
+ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = u.forwardRef(
7565
7565
  (e, t) => {
7566
7566
  const n = Fa(ie, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ne(ie, e.__scopeMenu), s = ft(ie, e.__scopeMenu);
7567
7567
  return /* @__PURE__ */ c.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(at.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ c.jsx(Qd, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(ef, { ...o, ref: t }) }) }) });
7568
7568
  }
7569
- ), Qd = l.forwardRef(
7569
+ ), Qd = u.forwardRef(
7570
7570
  (e, t) => {
7571
- const n = Ne(ie, e.__scopeMenu), r = l.useRef(null), o = ee(t, r);
7572
- return l.useEffect(() => {
7571
+ const n = Ne(ie, e.__scopeMenu), r = u.useRef(null), o = ee(t, r);
7572
+ return u.useEffect(() => {
7573
7573
  const a = r.current;
7574
7574
  if (a) return go(a);
7575
7575
  }, []), /* @__PURE__ */ c.jsx(
@@ -7589,7 +7589,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7589
7589
  }
7590
7590
  );
7591
7591
  }
7592
- ), ef = l.forwardRef((e, t) => {
7592
+ ), ef = u.forwardRef((e, t) => {
7593
7593
  const n = Ne(ie, e.__scopeMenu);
7594
7594
  return /* @__PURE__ */ c.jsx(
7595
7595
  Un,
@@ -7602,7 +7602,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7602
7602
  onDismiss: () => n.onOpenChange(!1)
7603
7603
  }
7604
7604
  );
7605
- }), tf = /* @__PURE__ */ We("MenuContent.ScrollLock"), Un = l.forwardRef(
7605
+ }), tf = /* @__PURE__ */ We("MenuContent.ScrollLock"), Un = u.forwardRef(
7606
7606
  (e, t) => {
7607
7607
  const {
7608
7608
  __scopeMenu: n,
@@ -7611,23 +7611,23 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7611
7611
  onOpenAutoFocus: a,
7612
7612
  onCloseAutoFocus: s,
7613
7613
  disableOutsidePointerEvents: i,
7614
- onEntryFocus: u,
7615
- onEscapeKeyDown: f,
7616
- onPointerDownOutside: d,
7614
+ onEntryFocus: l,
7615
+ onEscapeKeyDown: d,
7616
+ onPointerDownOutside: f,
7617
7617
  onFocusOutside: p,
7618
7618
  onInteractOutside: m,
7619
7619
  onDismiss: g,
7620
7620
  disableOutsideScroll: b,
7621
7621
  ...h
7622
- } = e, v = Ne(ie, n), x = ft(ie, n), y = dt(n), C = Ia(n), E = Kd(n), [M, T] = l.useState(null), k = l.useRef(null), R = ee(t, k, v.onContentChange), D = l.useRef(0), z = l.useRef(""), U = l.useRef(0), B = l.useRef(null), G = l.useRef("right"), H = l.useRef(0), Y = b ? kn : l.Fragment, I = b ? { as: tf, allowPinchZoom: !0 } : void 0, V = (_) => {
7622
+ } = e, v = Ne(ie, n), x = ft(ie, n), y = dt(n), C = Ia(n), E = Kd(n), [M, T] = u.useState(null), k = u.useRef(null), R = ee(t, k, v.onContentChange), D = u.useRef(0), z = u.useRef(""), U = u.useRef(0), B = u.useRef(null), G = u.useRef("right"), H = u.useRef(0), Y = b ? kn : u.Fragment, I = b ? { as: tf, allowPinchZoom: !0 } : void 0, V = (_) => {
7623
7623
  var W, Z;
7624
7624
  const w = z.current + _, O = E().filter((X) => !X.disabled), F = document.activeElement, $ = (W = O.find((X) => X.ref.current === F)) == null ? void 0 : W.textValue, K = O.map((X) => X.textValue), J = mf(K, w, $), re = (Z = O.find((X) => X.textValue === J)) == null ? void 0 : Z.ref.current;
7625
7625
  (function X(oe) {
7626
7626
  z.current = oe, window.clearTimeout(D.current), oe !== "" && (D.current = window.setTimeout(() => X(""), 1e3));
7627
7627
  })(w), re && setTimeout(() => re.focus());
7628
7628
  };
7629
- l.useEffect(() => () => window.clearTimeout(D.current), []), so();
7630
- const S = l.useCallback((_) => {
7629
+ u.useEffect(() => () => window.clearTimeout(D.current), []), so();
7630
+ const S = u.useCallback((_) => {
7631
7631
  var O, F;
7632
7632
  return G.current === ((O = B.current) == null ? void 0 : O.side) && gf(_, (F = B.current) == null ? void 0 : F.area);
7633
7633
  }, []);
@@ -7636,27 +7636,27 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7636
7636
  {
7637
7637
  scope: n,
7638
7638
  searchRef: z,
7639
- onItemEnter: l.useCallback(
7639
+ onItemEnter: u.useCallback(
7640
7640
  (_) => {
7641
7641
  S(_) && _.preventDefault();
7642
7642
  },
7643
7643
  [S]
7644
7644
  ),
7645
- onItemLeave: l.useCallback(
7645
+ onItemLeave: u.useCallback(
7646
7646
  (_) => {
7647
7647
  var w;
7648
7648
  S(_) || ((w = k.current) == null || w.focus(), T(null));
7649
7649
  },
7650
7650
  [S]
7651
7651
  ),
7652
- onTriggerLeave: l.useCallback(
7652
+ onTriggerLeave: u.useCallback(
7653
7653
  (_) => {
7654
7654
  S(_) && _.preventDefault();
7655
7655
  },
7656
7656
  [S]
7657
7657
  ),
7658
7658
  pointerGraceTimerRef: U,
7659
- onPointerGraceIntentChange: l.useCallback((_) => {
7659
+ onPointerGraceIntentChange: u.useCallback((_) => {
7660
7660
  B.current = _;
7661
7661
  }, []),
7662
7662
  children: /* @__PURE__ */ c.jsx(Y, { ...I, children: /* @__PURE__ */ c.jsx(
@@ -7674,8 +7674,8 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7674
7674
  {
7675
7675
  asChild: !0,
7676
7676
  disableOutsidePointerEvents: i,
7677
- onEscapeKeyDown: f,
7678
- onPointerDownOutside: d,
7677
+ onEscapeKeyDown: d,
7678
+ onPointerDownOutside: f,
7679
7679
  onFocusOutside: p,
7680
7680
  onInteractOutside: m,
7681
7681
  onDismiss: g,
@@ -7689,7 +7689,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7689
7689
  loop: r,
7690
7690
  currentTabStopId: M,
7691
7691
  onCurrentTabStopIdChange: T,
7692
- onEntryFocus: j(u, (_) => {
7692
+ onEntryFocus: j(l, (_) => {
7693
7693
  x.isUsingKeyboardRef.current || _.preventDefault();
7694
7694
  }),
7695
7695
  preventScrollOnEntryFocus: !0,
@@ -7740,43 +7740,43 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
7740
7740
  }
7741
7741
  );
7742
7742
  za.displayName = ie;
7743
- var nf = "MenuGroup", Kn = l.forwardRef(
7743
+ var nf = "MenuGroup", Kn = u.forwardRef(
7744
7744
  (e, t) => {
7745
7745
  const { __scopeMenu: n, ...r } = e;
7746
7746
  return /* @__PURE__ */ c.jsx(q.div, { role: "group", ...r, ref: t });
7747
7747
  }
7748
7748
  );
7749
7749
  Kn.displayName = nf;
7750
- var rf = "MenuLabel", Ha = l.forwardRef(
7750
+ var rf = "MenuLabel", Ha = u.forwardRef(
7751
7751
  (e, t) => {
7752
7752
  const { __scopeMenu: n, ...r } = e;
7753
7753
  return /* @__PURE__ */ c.jsx(q.div, { ...r, ref: t });
7754
7754
  }
7755
7755
  );
7756
7756
  Ha.displayName = rf;
7757
- var Tt = "MenuItem", Or = "menu.itemSelect", Ut = l.forwardRef(
7757
+ var Tt = "MenuItem", Or = "menu.itemSelect", Ut = u.forwardRef(
7758
7758
  (e, t) => {
7759
- const { disabled: n = !1, onSelect: r, ...o } = e, a = l.useRef(null), s = ft(Tt, e.__scopeMenu), i = Gn(Tt, e.__scopeMenu), u = ee(t, a), f = l.useRef(!1), d = () => {
7759
+ const { disabled: n = !1, onSelect: r, ...o } = e, a = u.useRef(null), s = ft(Tt, e.__scopeMenu), i = Gn(Tt, e.__scopeMenu), l = ee(t, a), d = u.useRef(!1), f = () => {
7760
7760
  const p = a.current;
7761
7761
  if (!n && p) {
7762
7762
  const m = new CustomEvent(Or, { bubbles: !0, cancelable: !0 });
7763
- p.addEventListener(Or, (g) => r == null ? void 0 : r(g), { once: !0 }), Fr(p, m), m.defaultPrevented ? f.current = !1 : s.onClose();
7763
+ p.addEventListener(Or, (g) => r == null ? void 0 : r(g), { once: !0 }), Fr(p, m), m.defaultPrevented ? d.current = !1 : s.onClose();
7764
7764
  }
7765
7765
  };
7766
7766
  return /* @__PURE__ */ c.jsx(
7767
7767
  Va,
7768
7768
  {
7769
7769
  ...o,
7770
- ref: u,
7770
+ ref: l,
7771
7771
  disabled: n,
7772
- onClick: j(e.onClick, d),
7772
+ onClick: j(e.onClick, f),
7773
7773
  onPointerDown: (p) => {
7774
7774
  var m;
7775
- (m = e.onPointerDown) == null || m.call(e, p), f.current = !0;
7775
+ (m = e.onPointerDown) == null || m.call(e, p), d.current = !0;
7776
7776
  },
7777
7777
  onPointerUp: j(e.onPointerUp, (p) => {
7778
7778
  var m;
7779
- f.current || (m = p.currentTarget) == null || m.click();
7779
+ d.current || (m = p.currentTarget) == null || m.click();
7780
7780
  }),
7781
7781
  onKeyDown: j(e.onKeyDown, (p) => {
7782
7782
  const m = i.searchRef.current !== "";
@@ -7787,11 +7787,11 @@ var Tt = "MenuItem", Or = "menu.itemSelect", Ut = l.forwardRef(
7787
7787
  }
7788
7788
  );
7789
7789
  Ut.displayName = Tt;
7790
- var Va = l.forwardRef(
7790
+ var Va = u.forwardRef(
7791
7791
  (e, t) => {
7792
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, s = Gn(Tt, n), i = Ia(n), u = l.useRef(null), f = ee(t, u), [d, p] = l.useState(!1), [m, g] = l.useState("");
7793
- return l.useEffect(() => {
7794
- const b = u.current;
7792
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, s = Gn(Tt, n), i = Ia(n), l = u.useRef(null), d = ee(t, l), [f, p] = u.useState(!1), [m, g] = u.useState("");
7793
+ return u.useEffect(() => {
7794
+ const b = l.current;
7795
7795
  b && g((b.textContent ?? "").trim());
7796
7796
  }, [a.children]), /* @__PURE__ */ c.jsx(
7797
7797
  at.ItemSlot,
@@ -7803,11 +7803,11 @@ var Va = l.forwardRef(
7803
7803
  q.div,
7804
7804
  {
7805
7805
  role: "menuitem",
7806
- "data-highlighted": d ? "" : void 0,
7806
+ "data-highlighted": f ? "" : void 0,
7807
7807
  "aria-disabled": r || void 0,
7808
7808
  "data-disabled": r ? "" : void 0,
7809
7809
  ...a,
7810
- ref: f,
7810
+ ref: d,
7811
7811
  onPointerMove: j(
7812
7812
  e.onPointerMove,
7813
7813
  st((b) => {
@@ -7825,7 +7825,7 @@ var Va = l.forwardRef(
7825
7825
  }
7826
7826
  );
7827
7827
  }
7828
- ), of = "MenuCheckboxItem", Wa = l.forwardRef(
7828
+ ), of = "MenuCheckboxItem", Wa = u.forwardRef(
7829
7829
  (e, t) => {
7830
7830
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
7831
7831
  return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c.jsx(
@@ -7850,14 +7850,14 @@ var Ba = "MenuRadioGroup", [af, sf] = Ie(
7850
7850
  Ba,
7851
7851
  { value: void 0, onValueChange: () => {
7852
7852
  } }
7853
- ), Ga = l.forwardRef(
7853
+ ), Ga = u.forwardRef(
7854
7854
  (e, t) => {
7855
7855
  const { value: n, onValueChange: r, ...o } = e, a = me(r);
7856
7856
  return /* @__PURE__ */ c.jsx(af, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ c.jsx(Kn, { ...o, ref: t }) });
7857
7857
  }
7858
7858
  );
7859
7859
  Ga.displayName = Ba;
7860
- var Ua = "MenuRadioItem", Ka = l.forwardRef(
7860
+ var Ua = "MenuRadioItem", Ka = u.forwardRef(
7861
7861
  (e, t) => {
7862
7862
  const { value: n, ...r } = e, o = sf(Ua, e.__scopeMenu), a = n === o.value;
7863
7863
  return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ c.jsx(
@@ -7884,7 +7884,7 @@ Ka.displayName = Ua;
7884
7884
  var Yn = "MenuItemIndicator", [Ya, cf] = Ie(
7885
7885
  Yn,
7886
7886
  { checked: !1 }
7887
- ), Za = l.forwardRef(
7887
+ ), Za = u.forwardRef(
7888
7888
  (e, t) => {
7889
7889
  const { __scopeMenu: n, forceMount: r, ...o } = e, a = cf(Yn, n);
7890
7890
  return /* @__PURE__ */ c.jsx(
@@ -7904,7 +7904,7 @@ var Yn = "MenuItemIndicator", [Ya, cf] = Ie(
7904
7904
  }
7905
7905
  );
7906
7906
  Za.displayName = Yn;
7907
- var lf = "MenuSeparator", Xa = l.forwardRef(
7907
+ var lf = "MenuSeparator", Xa = u.forwardRef(
7908
7908
  (e, t) => {
7909
7909
  const { __scopeMenu: n, ...r } = e;
7910
7910
  return /* @__PURE__ */ c.jsx(
@@ -7919,7 +7919,7 @@ var lf = "MenuSeparator", Xa = l.forwardRef(
7919
7919
  }
7920
7920
  );
7921
7921
  Xa.displayName = lf;
7922
- var uf = "MenuArrow", qa = l.forwardRef(
7922
+ var uf = "MenuArrow", qa = u.forwardRef(
7923
7923
  (e, t) => {
7924
7924
  const { __scopeMenu: n, ...r } = e, o = dt(n);
7925
7925
  return /* @__PURE__ */ c.jsx(da, { ...o, ...r, ref: t });
@@ -7927,15 +7927,15 @@ var uf = "MenuArrow", qa = l.forwardRef(
7927
7927
  );
7928
7928
  qa.displayName = uf;
7929
7929
  var Zn = "MenuSub", [df, Ja] = Ie(Zn), Qa = (e) => {
7930
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ne(Zn, t), s = dt(t), [i, u] = l.useState(null), [f, d] = l.useState(null), p = me(o);
7931
- return l.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ c.jsx(zn, { ...s, children: /* @__PURE__ */ c.jsx(
7930
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ne(Zn, t), s = dt(t), [i, l] = u.useState(null), [d, f] = u.useState(null), p = me(o);
7931
+ return u.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ c.jsx(zn, { ...s, children: /* @__PURE__ */ c.jsx(
7932
7932
  Da,
7933
7933
  {
7934
7934
  scope: t,
7935
7935
  open: r,
7936
7936
  onOpenChange: p,
7937
- content: f,
7938
- onContentChange: d,
7937
+ content: d,
7938
+ onContentChange: f,
7939
7939
  children: /* @__PURE__ */ c.jsx(
7940
7940
  df,
7941
7941
  {
@@ -7943,7 +7943,7 @@ var Zn = "MenuSub", [df, Ja] = Ie(Zn), Qa = (e) => {
7943
7943
  contentId: be(),
7944
7944
  triggerId: be(),
7945
7945
  trigger: i,
7946
- onTriggerChange: u,
7946
+ onTriggerChange: l,
7947
7947
  children: n
7948
7948
  }
7949
7949
  )
@@ -7951,17 +7951,17 @@ var Zn = "MenuSub", [df, Ja] = Ie(Zn), Qa = (e) => {
7951
7951
  ) });
7952
7952
  };
7953
7953
  Qa.displayName = Zn;
7954
- var tt = "MenuSubTrigger", es = l.forwardRef(
7954
+ var tt = "MenuSubTrigger", es = u.forwardRef(
7955
7955
  (e, t) => {
7956
- const n = Ne(tt, e.__scopeMenu), r = ft(tt, e.__scopeMenu), o = Ja(tt, e.__scopeMenu), a = Gn(tt, e.__scopeMenu), s = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = a, f = { __scopeMenu: e.__scopeMenu }, d = l.useCallback(() => {
7956
+ const n = Ne(tt, e.__scopeMenu), r = ft(tt, e.__scopeMenu), o = Ja(tt, e.__scopeMenu), a = Gn(tt, e.__scopeMenu), s = u.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: l } = a, d = { __scopeMenu: e.__scopeMenu }, f = u.useCallback(() => {
7957
7957
  s.current && window.clearTimeout(s.current), s.current = null;
7958
7958
  }, []);
7959
- return l.useEffect(() => d, [d]), l.useEffect(() => {
7959
+ return u.useEffect(() => f, [f]), u.useEffect(() => {
7960
7960
  const p = i.current;
7961
7961
  return () => {
7962
- window.clearTimeout(p), u(null);
7962
+ window.clearTimeout(p), l(null);
7963
7963
  };
7964
- }, [i, u]), /* @__PURE__ */ c.jsx(Wn, { asChild: !0, ...f, children: /* @__PURE__ */ c.jsx(
7964
+ }, [i, l]), /* @__PURE__ */ c.jsx(Wn, { asChild: !0, ...d, children: /* @__PURE__ */ c.jsx(
7965
7965
  Va,
7966
7966
  {
7967
7967
  id: o.triggerId,
@@ -7979,7 +7979,7 @@ var tt = "MenuSubTrigger", es = l.forwardRef(
7979
7979
  e.onPointerMove,
7980
7980
  st((p) => {
7981
7981
  a.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !s.current && (a.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
7982
- n.onOpenChange(!0), d();
7982
+ n.onOpenChange(!0), f();
7983
7983
  }, 100));
7984
7984
  })
7985
7985
  ),
@@ -7987,7 +7987,7 @@ var tt = "MenuSubTrigger", es = l.forwardRef(
7987
7987
  e.onPointerLeave,
7988
7988
  st((p) => {
7989
7989
  var g, b;
7990
- d();
7990
+ f();
7991
7991
  const m = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
7992
7992
  if (m) {
7993
7993
  const h = (b = n.content) == null ? void 0 : b.dataset.side, v = h === "right", x = v ? -5 : 5, y = m[v ? "left" : "right"], C = m[v ? "right" : "left"];
@@ -8022,36 +8022,36 @@ var tt = "MenuSubTrigger", es = l.forwardRef(
8022
8022
  }
8023
8023
  );
8024
8024
  es.displayName = tt;
8025
- var ts = "MenuSubContent", ns = l.forwardRef(
8025
+ var ts = "MenuSubContent", ns = u.forwardRef(
8026
8026
  (e, t) => {
8027
- const n = Fa(ie, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ne(ie, e.__scopeMenu), s = ft(ie, e.__scopeMenu), i = Ja(ts, e.__scopeMenu), u = l.useRef(null), f = ee(t, u);
8027
+ const n = Fa(ie, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ne(ie, e.__scopeMenu), s = ft(ie, e.__scopeMenu), i = Ja(ts, e.__scopeMenu), l = u.useRef(null), d = ee(t, l);
8028
8028
  return /* @__PURE__ */ c.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(at.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(
8029
8029
  Un,
8030
8030
  {
8031
8031
  id: i.contentId,
8032
8032
  "aria-labelledby": i.triggerId,
8033
8033
  ...o,
8034
- ref: f,
8034
+ ref: d,
8035
8035
  align: "start",
8036
8036
  side: s.dir === "rtl" ? "left" : "right",
8037
8037
  disableOutsidePointerEvents: !1,
8038
8038
  disableOutsideScroll: !1,
8039
8039
  trapFocus: !1,
8040
- onOpenAutoFocus: (d) => {
8040
+ onOpenAutoFocus: (f) => {
8041
8041
  var p;
8042
- s.isUsingKeyboardRef.current && ((p = u.current) == null || p.focus()), d.preventDefault();
8042
+ s.isUsingKeyboardRef.current && ((p = l.current) == null || p.focus()), f.preventDefault();
8043
8043
  },
8044
- onCloseAutoFocus: (d) => d.preventDefault(),
8045
- onFocusOutside: j(e.onFocusOutside, (d) => {
8046
- d.target !== i.trigger && a.onOpenChange(!1);
8044
+ onCloseAutoFocus: (f) => f.preventDefault(),
8045
+ onFocusOutside: j(e.onFocusOutside, (f) => {
8046
+ f.target !== i.trigger && a.onOpenChange(!1);
8047
8047
  }),
8048
- onEscapeKeyDown: j(e.onEscapeKeyDown, (d) => {
8049
- s.onClose(), d.preventDefault();
8048
+ onEscapeKeyDown: j(e.onEscapeKeyDown, (f) => {
8049
+ s.onClose(), f.preventDefault();
8050
8050
  }),
8051
- onKeyDown: j(e.onKeyDown, (d) => {
8051
+ onKeyDown: j(e.onKeyDown, (f) => {
8052
8052
  var g;
8053
- const p = d.currentTarget.contains(d.target), m = Ud[s.dir].includes(d.key);
8054
- p && m && (a.onOpenChange(!1), (g = i.trigger) == null || g.focus(), d.preventDefault());
8053
+ const p = f.currentTarget.contains(f.target), m = Ud[s.dir].includes(f.key);
8054
+ p && m && (a.onOpenChange(!1), (g = i.trigger) == null || g.focus(), f.preventDefault());
8055
8055
  })
8056
8056
  }
8057
8057
  ) }) }) });
@@ -8076,20 +8076,20 @@ function pf(e, t) {
8076
8076
  return e.map((n, r) => e[(t + r) % e.length]);
8077
8077
  }
8078
8078
  function mf(e, t, n) {
8079
- const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
8079
+ const o = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
8080
8080
  let s = pf(e, Math.max(a, 0));
8081
- o.length === 1 && (s = s.filter((f) => f !== n));
8082
- const u = s.find(
8083
- (f) => f.toLowerCase().startsWith(o.toLowerCase())
8081
+ o.length === 1 && (s = s.filter((d) => d !== n));
8082
+ const l = s.find(
8083
+ (d) => d.toLowerCase().startsWith(o.toLowerCase())
8084
8084
  );
8085
- return u !== n ? u : void 0;
8085
+ return l !== n ? l : void 0;
8086
8086
  }
8087
8087
  function hf(e, t) {
8088
8088
  const { x: n, y: r } = e;
8089
8089
  let o = !1;
8090
8090
  for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
8091
- const i = t[a], u = t[s], f = i.x, d = i.y, p = u.x, m = u.y;
8092
- d > r != m > r && n < (p - f) * (r - d) / (m - d) + f && (o = !o);
8091
+ const i = t[a], l = t[s], d = i.x, f = i.y, p = l.x, m = l.y;
8092
+ f > r != m > r && n < (p - d) * (r - f) / (m - f) + d && (o = !o);
8093
8093
  }
8094
8094
  return o;
8095
8095
  }
@@ -8101,7 +8101,7 @@ function gf(e, t) {
8101
8101
  function st(e) {
8102
8102
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
8103
8103
  }
8104
- var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf = Ga, Mf = Ka, kf = Za, Af = Xa, Nf = qa, Pf = Qa, _f = es, Tf = ns, Kt = "DropdownMenu", [Of, Wp] = je(
8104
+ var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf = Ga, Mf = Ka, kf = Za, Af = Xa, Nf = qa, Pf = Qa, _f = es, Tf = ns, Kt = "DropdownMenu", [Of, Bp] = je(
8105
8105
  Kt,
8106
8106
  [ja]
8107
8107
  ), ne = ja(), [jf, os] = Of(Kt), as = (e) => {
@@ -8113,7 +8113,7 @@ var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf =
8113
8113
  defaultOpen: a,
8114
8114
  onOpenChange: s,
8115
8115
  modal: i = !0
8116
- } = e, u = ne(t), f = l.useRef(null), [d, p] = it({
8116
+ } = e, l = ne(t), d = u.useRef(null), [f, p] = it({
8117
8117
  prop: o,
8118
8118
  defaultProp: a ?? !1,
8119
8119
  onChange: s,
@@ -8124,18 +8124,18 @@ var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf =
8124
8124
  {
8125
8125
  scope: t,
8126
8126
  triggerId: be(),
8127
- triggerRef: f,
8127
+ triggerRef: d,
8128
8128
  contentId: be(),
8129
- open: d,
8129
+ open: f,
8130
8130
  onOpenChange: p,
8131
- onOpenToggle: l.useCallback(() => p((m) => !m), [p]),
8131
+ onOpenToggle: u.useCallback(() => p((m) => !m), [p]),
8132
8132
  modal: i,
8133
- children: /* @__PURE__ */ c.jsx(vf, { ...u, open: d, onOpenChange: p, dir: r, modal: i, children: n })
8133
+ children: /* @__PURE__ */ c.jsx(vf, { ...l, open: f, onOpenChange: p, dir: r, modal: i, children: n })
8134
8134
  }
8135
8135
  );
8136
8136
  };
8137
8137
  as.displayName = Kt;
8138
- var ss = "DropdownMenuTrigger", is = l.forwardRef(
8138
+ var ss = "DropdownMenuTrigger", is = u.forwardRef(
8139
8139
  (e, t) => {
8140
8140
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, a = os(ss, n), s = ne(n);
8141
8141
  return /* @__PURE__ */ c.jsx(bf, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
@@ -8167,9 +8167,9 @@ var If = "DropdownMenuPortal", cs = (e) => {
8167
8167
  return /* @__PURE__ */ c.jsx(xf, { ...r, ...n });
8168
8168
  };
8169
8169
  cs.displayName = If;
8170
- var ls = "DropdownMenuContent", us = l.forwardRef(
8170
+ var ls = "DropdownMenuContent", us = u.forwardRef(
8171
8171
  (e, t) => {
8172
- const { __scopeDropdownMenu: n, ...r } = e, o = os(ls, n), a = ne(n), s = l.useRef(!1);
8172
+ const { __scopeDropdownMenu: n, ...r } = e, o = os(ls, n), a = ne(n), s = u.useRef(!1);
8173
8173
  return /* @__PURE__ */ c.jsx(
8174
8174
  wf,
8175
8175
  {
@@ -8179,12 +8179,12 @@ var ls = "DropdownMenuContent", us = l.forwardRef(
8179
8179
  ...r,
8180
8180
  ref: t,
8181
8181
  onCloseAutoFocus: j(e.onCloseAutoFocus, (i) => {
8182
- var u;
8183
- s.current || (u = o.triggerRef.current) == null || u.focus(), s.current = !1, i.preventDefault();
8182
+ var l;
8183
+ s.current || (l = o.triggerRef.current) == null || l.focus(), s.current = !1, i.preventDefault();
8184
8184
  }),
8185
8185
  onInteractOutside: j(e.onInteractOutside, (i) => {
8186
- const u = i.detail.originalEvent, f = u.button === 0 && u.ctrlKey === !0, d = u.button === 2 || f;
8187
- (!o.modal || d) && (s.current = !0);
8186
+ const l = i.detail.originalEvent, d = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || d;
8187
+ (!o.modal || f) && (s.current = !0);
8188
8188
  }),
8189
8189
  style: {
8190
8190
  ...e.style,
@@ -8199,53 +8199,53 @@ var ls = "DropdownMenuContent", us = l.forwardRef(
8199
8199
  }
8200
8200
  );
8201
8201
  us.displayName = ls;
8202
- var Df = "DropdownMenuGroup", ds = l.forwardRef(
8202
+ var Df = "DropdownMenuGroup", ds = u.forwardRef(
8203
8203
  (e, t) => {
8204
8204
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8205
8205
  return /* @__PURE__ */ c.jsx(yf, { ...o, ...r, ref: t });
8206
8206
  }
8207
8207
  );
8208
8208
  ds.displayName = Df;
8209
- var Lf = "DropdownMenuLabel", fs = l.forwardRef(
8209
+ var Lf = "DropdownMenuLabel", fs = u.forwardRef(
8210
8210
  (e, t) => {
8211
8211
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8212
8212
  return /* @__PURE__ */ c.jsx(Cf, { ...o, ...r, ref: t });
8213
8213
  }
8214
8214
  );
8215
8215
  fs.displayName = Lf;
8216
- var Ff = "DropdownMenuItem", ps = l.forwardRef(
8216
+ var Ff = "DropdownMenuItem", ps = u.forwardRef(
8217
8217
  (e, t) => {
8218
8218
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8219
8219
  return /* @__PURE__ */ c.jsx(Ef, { ...o, ...r, ref: t });
8220
8220
  }
8221
8221
  );
8222
8222
  ps.displayName = Ff;
8223
- var $f = "DropdownMenuCheckboxItem", ms = l.forwardRef((e, t) => {
8223
+ var $f = "DropdownMenuCheckboxItem", ms = u.forwardRef((e, t) => {
8224
8224
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8225
8225
  return /* @__PURE__ */ c.jsx(Sf, { ...o, ...r, ref: t });
8226
8226
  });
8227
8227
  ms.displayName = $f;
8228
- var zf = "DropdownMenuRadioGroup", hs = l.forwardRef((e, t) => {
8228
+ var zf = "DropdownMenuRadioGroup", hs = u.forwardRef((e, t) => {
8229
8229
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8230
8230
  return /* @__PURE__ */ c.jsx(Rf, { ...o, ...r, ref: t });
8231
8231
  });
8232
8232
  hs.displayName = zf;
8233
- var Hf = "DropdownMenuRadioItem", gs = l.forwardRef((e, t) => {
8233
+ var Hf = "DropdownMenuRadioItem", gs = u.forwardRef((e, t) => {
8234
8234
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8235
8235
  return /* @__PURE__ */ c.jsx(Mf, { ...o, ...r, ref: t });
8236
8236
  });
8237
8237
  gs.displayName = Hf;
8238
- var Vf = "DropdownMenuItemIndicator", vs = l.forwardRef((e, t) => {
8238
+ var Vf = "DropdownMenuItemIndicator", vs = u.forwardRef((e, t) => {
8239
8239
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8240
8240
  return /* @__PURE__ */ c.jsx(kf, { ...o, ...r, ref: t });
8241
8241
  });
8242
8242
  vs.displayName = Vf;
8243
- var Wf = "DropdownMenuSeparator", bs = l.forwardRef((e, t) => {
8243
+ var Wf = "DropdownMenuSeparator", bs = u.forwardRef((e, t) => {
8244
8244
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8245
8245
  return /* @__PURE__ */ c.jsx(Af, { ...o, ...r, ref: t });
8246
8246
  });
8247
8247
  bs.displayName = Wf;
8248
- var Bf = "DropdownMenuArrow", Gf = l.forwardRef(
8248
+ var Bf = "DropdownMenuArrow", Gf = u.forwardRef(
8249
8249
  (e, t) => {
8250
8250
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8251
8251
  return /* @__PURE__ */ c.jsx(Nf, { ...o, ...r, ref: t });
@@ -8253,19 +8253,19 @@ var Bf = "DropdownMenuArrow", Gf = l.forwardRef(
8253
8253
  );
8254
8254
  Gf.displayName = Bf;
8255
8255
  var Uf = (e) => {
8256
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, s = ne(t), [i, u] = it({
8256
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, s = ne(t), [i, l] = it({
8257
8257
  prop: r,
8258
8258
  defaultProp: a ?? !1,
8259
8259
  onChange: o,
8260
8260
  caller: "DropdownMenuSub"
8261
8261
  });
8262
- return /* @__PURE__ */ c.jsx(Pf, { ...s, open: i, onOpenChange: u, children: n });
8263
- }, Kf = "DropdownMenuSubTrigger", xs = l.forwardRef((e, t) => {
8262
+ return /* @__PURE__ */ c.jsx(Pf, { ...s, open: i, onOpenChange: l, children: n });
8263
+ }, Kf = "DropdownMenuSubTrigger", xs = u.forwardRef((e, t) => {
8264
8264
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8265
8265
  return /* @__PURE__ */ c.jsx(_f, { ...o, ...r, ref: t });
8266
8266
  });
8267
8267
  xs.displayName = Kf;
8268
- var Yf = "DropdownMenuSubContent", ws = l.forwardRef((e, t) => {
8268
+ var Yf = "DropdownMenuSubContent", ws = u.forwardRef((e, t) => {
8269
8269
  const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
8270
8270
  return /* @__PURE__ */ c.jsx(
8271
8271
  Tf,
@@ -8291,7 +8291,7 @@ function cp({
8291
8291
  }) {
8292
8292
  return /* @__PURE__ */ c.jsx(Zf, { "data-slot": "dropdown-menu", ...e });
8293
8293
  }
8294
- function Bp({
8294
+ function Gp({
8295
8295
  ...e
8296
8296
  }) {
8297
8297
  return /* @__PURE__ */ c.jsx(ys, { "data-slot": "dropdown-menu-portal", ...e });
@@ -8325,7 +8325,7 @@ function up({
8325
8325
  }
8326
8326
  ) });
8327
8327
  }
8328
- function Gp({
8328
+ function Up({
8329
8329
  ...e
8330
8330
  }) {
8331
8331
  return /* @__PURE__ */ c.jsx(Jf, { "data-slot": "dropdown-menu-group", ...e });
@@ -8350,7 +8350,7 @@ function jr({
8350
8350
  }
8351
8351
  );
8352
8352
  }
8353
- function Up({
8353
+ function Kp({
8354
8354
  className: e,
8355
8355
  children: t,
8356
8356
  checked: n,
@@ -8373,7 +8373,7 @@ function Up({
8373
8373
  }
8374
8374
  );
8375
8375
  }
8376
- function Kp({
8376
+ function Yp({
8377
8377
  ...e
8378
8378
  }) {
8379
8379
  return /* @__PURE__ */ c.jsx(
@@ -8384,7 +8384,7 @@ function Kp({
8384
8384
  }
8385
8385
  );
8386
8386
  }
8387
- function Yp({
8387
+ function Zp({
8388
8388
  className: e,
8389
8389
  children: t,
8390
8390
  ...n
@@ -8436,7 +8436,7 @@ function fp({
8436
8436
  }
8437
8437
  );
8438
8438
  }
8439
- function Zp({
8439
+ function Xp({
8440
8440
  className: e,
8441
8441
  ...t
8442
8442
  }) {
@@ -8452,12 +8452,12 @@ function Zp({
8452
8452
  }
8453
8453
  );
8454
8454
  }
8455
- function Xp({
8455
+ function qp({
8456
8456
  ...e
8457
8457
  }) {
8458
8458
  return /* @__PURE__ */ c.jsx(ap, { "data-slot": "dropdown-menu-sub", ...e });
8459
8459
  }
8460
- function qp({
8460
+ function Jp({
8461
8461
  className: e,
8462
8462
  inset: t,
8463
8463
  children: n,
@@ -8480,7 +8480,7 @@ function qp({
8480
8480
  }
8481
8481
  );
8482
8482
  }
8483
- function Jp({
8483
+ function Qp({
8484
8484
  className: e,
8485
8485
  ...t
8486
8486
  }) {
@@ -8549,7 +8549,7 @@ const pp = ({ onLogout: e }) => {
8549
8549
  ] }),
8550
8550
  /* @__PURE__ */ c.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c.jsx(pp, { onLogout: e }) })
8551
8551
  ] }) });
8552
- function Qp({ className: e, ...t }) {
8552
+ function em({ className: e, ...t }) {
8553
8553
  return /* @__PURE__ */ c.jsx(
8554
8554
  "div",
8555
8555
  {
@@ -8562,7 +8562,7 @@ function Qp({ className: e, ...t }) {
8562
8562
  }
8563
8563
  );
8564
8564
  }
8565
- function em({ className: e, ...t }) {
8565
+ function tm({ className: e, ...t }) {
8566
8566
  return /* @__PURE__ */ c.jsx(
8567
8567
  "div",
8568
8568
  {
@@ -8575,7 +8575,7 @@ function em({ className: e, ...t }) {
8575
8575
  }
8576
8576
  );
8577
8577
  }
8578
- function tm({ className: e, ...t }) {
8578
+ function nm({ className: e, ...t }) {
8579
8579
  return /* @__PURE__ */ c.jsx(
8580
8580
  "div",
8581
8581
  {
@@ -8585,7 +8585,7 @@ function tm({ className: e, ...t }) {
8585
8585
  }
8586
8586
  );
8587
8587
  }
8588
- function nm({ className: e, ...t }) {
8588
+ function rm({ className: e, ...t }) {
8589
8589
  return /* @__PURE__ */ c.jsx(
8590
8590
  "div",
8591
8591
  {
@@ -8595,7 +8595,7 @@ function nm({ className: e, ...t }) {
8595
8595
  }
8596
8596
  );
8597
8597
  }
8598
- function rm({ className: e, ...t }) {
8598
+ function om({ className: e, ...t }) {
8599
8599
  return /* @__PURE__ */ c.jsx(
8600
8600
  "div",
8601
8601
  {
@@ -8608,7 +8608,7 @@ function rm({ className: e, ...t }) {
8608
8608
  }
8609
8609
  );
8610
8610
  }
8611
- function om({ className: e, ...t }) {
8611
+ function am({ className: e, ...t }) {
8612
8612
  return /* @__PURE__ */ c.jsx(
8613
8613
  "div",
8614
8614
  {
@@ -8618,7 +8618,7 @@ function om({ className: e, ...t }) {
8618
8618
  }
8619
8619
  );
8620
8620
  }
8621
- function am({ className: e, ...t }) {
8621
+ function sm({ className: e, ...t }) {
8622
8622
  return /* @__PURE__ */ c.jsx(
8623
8623
  "div",
8624
8624
  {
@@ -8638,14 +8638,14 @@ function hp({
8638
8638
  className: s,
8639
8639
  disabled: i = !1
8640
8640
  }) {
8641
- const [u, f] = l.useState(r);
8642
- l.useEffect(() => {
8643
- a && f(!0);
8641
+ const [l, d] = u.useState(r);
8642
+ u.useEffect(() => {
8643
+ a && d(!0);
8644
8644
  }, [a]);
8645
- const d = !i && t;
8645
+ const f = !i && t;
8646
8646
  return /* @__PURE__ */ c.jsx(Sd, { className: s, children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", children: [
8647
8647
  /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center justify-between", children: [
8648
- d ? /* @__PURE__ */ c.jsxs(
8648
+ f ? /* @__PURE__ */ c.jsxs(
8649
8649
  "a",
8650
8650
  {
8651
8651
  href: t,
@@ -8679,11 +8679,11 @@ function hp({
8679
8679
  i ? "cursor-default opacity-50" : "hover:bg-gray-100 hover:text-gray-700"
8680
8680
  ),
8681
8681
  onClick: (p) => {
8682
- p.preventDefault(), p.stopPropagation(), i || f(!u);
8682
+ p.preventDefault(), p.stopPropagation(), i || d(!l);
8683
8683
  },
8684
8684
  disabled: i,
8685
- "aria-label": u ? "Collapse section" : "Expand section",
8686
- children: u ? /* @__PURE__ */ c.jsx(Ui, { className: "h-4 w-4" }) : /* @__PURE__ */ c.jsx(eo, { className: "h-4 w-4" })
8685
+ "aria-label": l ? "Collapse section" : "Expand section",
8686
+ children: l ? /* @__PURE__ */ c.jsx(Ui, { className: "h-4 w-4" }) : /* @__PURE__ */ c.jsx(eo, { className: "h-4 w-4" })
8687
8687
  }
8688
8688
  )
8689
8689
  ] }),
@@ -8692,7 +8692,7 @@ function hp({
8692
8692
  {
8693
8693
  className: A(
8694
8694
  "overflow-hidden transition-all",
8695
- u && !i ? "max-h-96" : "max-h-0"
8695
+ l && !i ? "max-h-96" : "max-h-0"
8696
8696
  ),
8697
8697
  children: n
8698
8698
  }
@@ -8721,8 +8721,18 @@ const Es = Ns(
8721
8721
  if (e === void 0)
8722
8722
  throw new Error("usePermissions must be used within PermissionsProvider");
8723
8723
  return e;
8724
+ }, xp = () => {
8725
+ const { permissions: e } = bp();
8726
+ return {
8727
+ essentialInsights: e.essentialInsights,
8728
+ organic: e.organic,
8729
+ paid: e.paid,
8730
+ web: e.web,
8731
+ priceMonster: e.priceMonster,
8732
+ se_company_id: e.se_company_id
8733
+ };
8724
8734
  };
8725
- function sm({
8735
+ function im({
8726
8736
  children: e,
8727
8737
  fetchPermissionsEndpoint: t = "/api/auth/permissions",
8728
8738
  initialPermissions: n
@@ -8736,31 +8746,31 @@ function sm({
8736
8746
  priceMonster: !1,
8737
8747
  se_company_id: null
8738
8748
  }
8739
- ), [a, s] = ze(!n), [i, u] = ze(null), f = async () => {
8749
+ ), [a, s] = ze(!n), [i, l] = ze(null), d = async () => {
8740
8750
  try {
8741
- s(!0), u(null);
8742
- const d = await fetch(t);
8743
- if (!d.ok)
8744
- throw new Error(`Failed to fetch permissions: ${d.statusText}`);
8745
- const p = await d.json();
8751
+ s(!0), l(null);
8752
+ const f = await fetch(t);
8753
+ if (!f.ok)
8754
+ throw new Error(`Failed to fetch permissions: ${f.statusText}`);
8755
+ const p = await f.json();
8746
8756
  o(p);
8747
- } catch (d) {
8748
- console.error("Error fetching product access:", d), u(d instanceof Error ? d : new Error("Unknown error"));
8757
+ } catch (f) {
8758
+ console.error("Error fetching product access:", f), l(f instanceof Error ? f : new Error("Unknown error"));
8749
8759
  } finally {
8750
8760
  s(!1);
8751
8761
  }
8752
8762
  };
8753
8763
  return wn(() => {
8754
- n || f();
8764
+ n || d();
8755
8765
  }, [n]), /* @__PURE__ */ c.jsx(
8756
8766
  Es.Provider,
8757
8767
  {
8758
- value: { permissions: r, loading: a, error: i, fetchPermissions: f },
8768
+ value: { permissions: r, loading: a, error: i, fetchPermissions: d },
8759
8769
  children: e
8760
8770
  }
8761
8771
  );
8762
8772
  }
8763
- const xp = {
8773
+ const wp = {
8764
8774
  navMain: [
8765
8775
  {
8766
8776
  title: "Essential Insights",
@@ -8819,7 +8829,7 @@ const xp = {
8819
8829
  ]
8820
8830
  },
8821
8831
  {
8822
- title: "CMS",
8832
+ title: "Web",
8823
8833
  key: "web",
8824
8834
  url: "/cms",
8825
8835
  icon: /* @__PURE__ */ c.jsx(vt, { className: "h-4 w-4" }),
@@ -8833,8 +8843,8 @@ const xp = {
8833
8843
  }
8834
8844
  ]
8835
8845
  };
8836
- function wp({ ...e }) {
8837
- const { isActiveRoute: t } = vp(), n = bp();
8846
+ function yp({ ...e }) {
8847
+ const { isActiveRoute: t } = vp(), n = xp();
8838
8848
  return /* @__PURE__ */ c.jsxs(bd, { ...e, children: [
8839
8849
  /* @__PURE__ */ c.jsx(Cd, { children: /* @__PURE__ */ c.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ c.jsx(
8840
8850
  "img",
@@ -8867,85 +8877,88 @@ function wp({ ...e }) {
8867
8877
  ]
8868
8878
  }
8869
8879
  ) }),
8870
- /* @__PURE__ */ c.jsx(ya, { delayDuration: 150, children: xp.navMain.map((r) => {
8871
- const o = !r.key || n[r.key], a = o && (t(r.url) || r.items.some((i) => t(i.url))), s = /* @__PURE__ */ c.jsx(
8880
+ /* @__PURE__ */ c.jsx(ya, { delayDuration: 150, children: wp.navMain.map((r) => {
8881
+ const o = !r.key || n[r.key];
8882
+ let a = r.items;
8883
+ r.key === "essentialInsights" && (a = r.items.filter((l) => o ? l.url.includes("organic-performance") ? n.organic : l.url.includes("paid-performance") ? n.paid : !0 : !1));
8884
+ const s = o && (t(r.url) || a.some((l) => t(l.url))), i = /* @__PURE__ */ c.jsx(
8872
8885
  hp,
8873
8886
  {
8874
8887
  url: o ? r.url : void 0,
8875
8888
  title: r.title,
8876
8889
  icon: r.icon,
8877
- isActive: !!a,
8890
+ isActive: !!s,
8878
8891
  disabled: !o,
8879
8892
  className: A(!o && "opacity-50"),
8880
- children: o && /* @__PURE__ */ c.jsx(Rd, { children: /* @__PURE__ */ c.jsx(kd, { children: r.items.map((i) => {
8881
- const u = t(i.url);
8893
+ children: o && /* @__PURE__ */ c.jsx(Rd, { children: /* @__PURE__ */ c.jsx(kd, { children: a.map((l) => {
8894
+ const d = t(l.url);
8882
8895
  return /* @__PURE__ */ c.jsx(Ad, { children: /* @__PURE__ */ c.jsx(Nd, { asChild: !0, children: /* @__PURE__ */ c.jsxs(
8883
8896
  "a",
8884
8897
  {
8885
- href: i.url,
8898
+ href: l.url,
8886
8899
  className: A(
8887
8900
  "flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",
8888
- u && "bg-blue-50 text-gli-bluedark font-medium"
8901
+ d && "bg-blue-50 text-gli-bluedark font-medium"
8889
8902
  ),
8890
8903
  children: [
8891
8904
  /* @__PURE__ */ c.jsx(
8892
8905
  "span",
8893
8906
  {
8894
8907
  className: A(
8895
- u ? "text-gli-bluedark" : "text-muted-foreground"
8908
+ d ? "text-gli-bluedark" : "text-muted-foreground"
8896
8909
  ),
8897
- children: i.icon
8910
+ children: l.icon
8898
8911
  }
8899
8912
  ),
8900
8913
  /* @__PURE__ */ c.jsx(
8901
8914
  "span",
8902
8915
  {
8903
8916
  className: A(
8904
- u ? "text-gli-bluedark" : "text-muted-foreground"
8917
+ d ? "text-gli-bluedark" : "text-muted-foreground"
8905
8918
  ),
8906
- children: i.title
8919
+ children: l.title
8907
8920
  }
8908
8921
  )
8909
8922
  ]
8910
8923
  }
8911
- ) }) }, i.title);
8924
+ ) }) }, l.title);
8912
8925
  }) }) })
8913
8926
  },
8914
8927
  r.title
8915
8928
  );
8916
8929
  return r.key === "priceMonster" && !o ? /* @__PURE__ */ c.jsxs(Ca, { children: [
8917
- /* @__PURE__ */ c.jsx(Ea, { asChild: !0, children: /* @__PURE__ */ c.jsx("div", { children: s }) }),
8930
+ /* @__PURE__ */ c.jsx(Ea, { asChild: !0, children: /* @__PURE__ */ c.jsx("div", { children: i }) }),
8918
8931
  /* @__PURE__ */ c.jsx(Vn, { side: "top", align: "center", children: "Coming soon" })
8919
- ] }, r.title) : s;
8932
+ ] }, r.title) : i;
8920
8933
  }) })
8921
8934
  ] }),
8922
8935
  /* @__PURE__ */ c.jsx(wd, {})
8923
8936
  ] });
8924
8937
  }
8925
- async function im() {
8938
+ async function cm() {
8926
8939
  var e, t, n, r, o, a;
8927
8940
  try {
8928
8941
  const s = await js();
8929
8942
  if (!s || s === "No token available")
8930
8943
  return { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
8931
- const u = (e = Is(s)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : e.metadata;
8944
+ const l = (e = Is(s)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : e.metadata;
8932
8945
  return {
8933
- essentialInsights: ((t = u == null ? void 0 : u["essential-insights"]) == null ? void 0 : t.enabled) === !0,
8934
- organic: ((n = u == null ? void 0 : u.organic) == null ? void 0 : n.enabled) === !0,
8935
- paid: ((r = u == null ? void 0 : u.paid) == null ? void 0 : r.enabled) === !0,
8936
- web: ((o = u == null ? void 0 : u.web) == null ? void 0 : o.enabled) === !0,
8937
- priceMonster: ((a = u == null ? void 0 : u["price-monster"]) == null ? void 0 : a.enabled) === !0,
8938
- se_company_id: (u == null ? void 0 : u.se_company_id) || null
8946
+ essentialInsights: ((t = l == null ? void 0 : l["essential-insights"]) == null ? void 0 : t.enabled) === !0,
8947
+ organic: ((n = l == null ? void 0 : l.organic) == null ? void 0 : n.enabled) === !0,
8948
+ paid: ((r = l == null ? void 0 : l.paid) == null ? void 0 : r.enabled) === !0,
8949
+ web: ((o = l == null ? void 0 : l.web) == null ? void 0 : o.enabled) === !0,
8950
+ priceMonster: ((a = l == null ? void 0 : l["price-monster"]) == null ? void 0 : a.enabled) === !0,
8951
+ se_company_id: (l == null ? void 0 : l.se_company_id) || null
8939
8952
  };
8940
8953
  } catch (s) {
8941
8954
  return console.error("Error getting user permissions:", s), { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
8942
8955
  }
8943
8956
  }
8944
- const cm = ({
8957
+ const lm = ({
8945
8958
  children: e,
8946
8959
  onLogout: t
8947
8960
  }) => /* @__PURE__ */ c.jsx(Os, { children: /* @__PURE__ */ c.jsx(vd, { children: /* @__PURE__ */ c.jsxs("div", { className: "flex h-screen w-full", children: [
8948
- /* @__PURE__ */ c.jsx(wp, {}),
8961
+ /* @__PURE__ */ c.jsx(yp, {}),
8949
8962
  /* @__PURE__ */ c.jsxs(yd, { className: "flex-1 flex flex-col min-w-0", children: [
8950
8963
  /* @__PURE__ */ c.jsx(mp, { onLogout: t }),
8951
8964
  /* @__PURE__ */ c.jsx("main", { className: "flex-1 bg-white overflow-auto", id: "page-content", children: e })
@@ -8953,38 +8966,38 @@ const cm = ({
8953
8966
  ] }) }) });
8954
8967
  export {
8955
8968
  mp as AppHeader,
8956
- wp as AppSidebar,
8969
+ yp as AppSidebar,
8957
8970
  Sn as Button,
8958
- Qp as Card,
8959
- rm as CardAction,
8960
- om as CardContent,
8961
- nm as CardDescription,
8962
- am as CardFooter,
8963
- em as CardHeader,
8964
- tm as CardTitle,
8971
+ em as Card,
8972
+ om as CardAction,
8973
+ am as CardContent,
8974
+ rm as CardDescription,
8975
+ sm as CardFooter,
8976
+ tm as CardHeader,
8977
+ nm as CardTitle,
8965
8978
  hp as CollapsibleSection,
8966
8979
  cp as DropdownMenu,
8967
- Up as DropdownMenuCheckboxItem,
8980
+ Kp as DropdownMenuCheckboxItem,
8968
8981
  up as DropdownMenuContent,
8969
- Gp as DropdownMenuGroup,
8982
+ Up as DropdownMenuGroup,
8970
8983
  jr as DropdownMenuItem,
8971
8984
  dp as DropdownMenuLabel,
8972
- Bp as DropdownMenuPortal,
8973
- Kp as DropdownMenuRadioGroup,
8974
- Yp as DropdownMenuRadioItem,
8985
+ Gp as DropdownMenuPortal,
8986
+ Yp as DropdownMenuRadioGroup,
8987
+ Zp as DropdownMenuRadioItem,
8975
8988
  fp as DropdownMenuSeparator,
8976
- Zp as DropdownMenuShortcut,
8977
- Xp as DropdownMenuSub,
8978
- Jp as DropdownMenuSubContent,
8979
- qp as DropdownMenuSubTrigger,
8989
+ Xp as DropdownMenuShortcut,
8990
+ qp as DropdownMenuSub,
8991
+ Qp as DropdownMenuSubContent,
8992
+ Jp as DropdownMenuSubTrigger,
8980
8993
  lp as DropdownMenuTrigger,
8981
- cm as GLICloudProvider,
8994
+ lm as GLICloudProvider,
8982
8995
  no as Input,
8983
- sm as PermissionsProvider,
8996
+ im as PermissionsProvider,
8984
8997
  pp as ProfileDropdown,
8985
8998
  Cn as Separator,
8986
8999
  _l as Sheet,
8987
- Np as SheetClose,
9000
+ Pp as SheetClose,
8988
9001
  $o as SheetContent,
8989
9002
  Vo as SheetDescription,
8990
9003
  jl as SheetFooter,
@@ -8992,29 +9005,29 @@ export {
8992
9005
  Fo as SheetOverlay,
8993
9006
  Tl as SheetPortal,
8994
9007
  Ho as SheetTitle,
8995
- Ap as SheetTrigger,
9008
+ Np as SheetTrigger,
8996
9009
  bd as Sidebar,
8997
9010
  Ed as SidebarContent,
8998
- Op as SidebarFooter,
9011
+ jp as SidebarFooter,
8999
9012
  Sd as SidebarGroup,
9000
- Dp as SidebarGroupAction,
9013
+ Lp as SidebarGroupAction,
9001
9014
  Rd as SidebarGroupContent,
9002
- Ip as SidebarGroupLabel,
9015
+ Dp as SidebarGroupLabel,
9003
9016
  Cd as SidebarHeader,
9004
- Tp as SidebarInput,
9017
+ Op as SidebarInput,
9005
9018
  yd as SidebarInset,
9006
- Lp as SidebarMenu,
9007
- zp as SidebarMenuAction,
9008
- Hp as SidebarMenuBadge,
9009
- $p as SidebarMenuButton,
9010
- Fp as SidebarMenuItem,
9011
- Vp as SidebarMenuSkeleton,
9019
+ Fp as SidebarMenu,
9020
+ Hp as SidebarMenuAction,
9021
+ Vp as SidebarMenuBadge,
9022
+ zp as SidebarMenuButton,
9023
+ $p as SidebarMenuItem,
9024
+ Wp as SidebarMenuSkeleton,
9012
9025
  kd as SidebarMenuSub,
9013
9026
  Nd as SidebarMenuSubButton,
9014
9027
  Ad as SidebarMenuSubItem,
9015
9028
  vd as SidebarProvider,
9016
9029
  wd as SidebarRail,
9017
- jp as SidebarSeparator,
9030
+ Ip as SidebarSeparator,
9018
9031
  xd as SidebarTrigger,
9019
9032
  Sr as Skeleton,
9020
9033
  Ca as Tooltip,
@@ -9022,9 +9035,10 @@ export {
9022
9035
  ya as TooltipProvider,
9023
9036
  Ea as TooltipTrigger,
9024
9037
  ic as buttonVariants,
9025
- im as getUserPermissions,
9038
+ cm as getUserPermissions,
9026
9039
  vp as useActiveRoute,
9027
9040
  sc as useIsMobile,
9028
9041
  bp as usePermissions,
9042
+ xp as useProductAccess,
9029
9043
  Gt as useSidebar
9030
9044
  };