@golocalinteractive/golocal-cloud-wrapper 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,13 +150,13 @@ function Xi() {
150
150
  configurable: !0
151
151
  });
152
152
  }
153
- function d() {
153
+ function u() {
154
154
  var x = e(this.type);
155
155
  return S[x] || (S[x] = !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
  )), x = this.props.ref, x !== void 0 ? x : null;
158
158
  }
159
- function u(x, T, F, k, O, Z, te, q) {
159
+ function d(x, T, F, k, O, Z, te, q) {
160
160
  return F = Z.ref, x = {
161
161
  $$typeof: p,
162
162
  type: x,
@@ -165,7 +165,7 @@ function Xi() {
165
165
  _owner: O
166
166
  }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(x, "ref", {
167
167
  enumerable: !1,
168
- get: d
168
+ get: u
169
169
  }) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
170
170
  configurable: !1,
171
171
  enumerable: !1,
@@ -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 x == "function" ? x.displayName || x.name || "Unknown" : x
230
- ), u(
230
+ ), d(
231
231
  x,
232
232
  z,
233
233
  Z,
@@ -312,10 +312,10 @@ function se(...e) {
312
312
  // @__NO_SIDE_EFFECTS__
313
313
  function ft(e) {
314
314
  const t = /* @__PURE__ */ Mi(e), n = A.forwardRef((r, o) => {
315
- const { children: a, ...s } = r, i = A.Children.toArray(a), d = i.find(Oi);
316
- if (d) {
317
- const u = d.props.children, f = i.map((c) => c === d ? A.Children.count(u) > 1 ? A.Children.only(null) : A.isValidElement(u) ? u.props.children : null : c);
318
- return /* @__PURE__ */ l.jsx(t, { ...s, ref: o, children: A.isValidElement(u) ? A.cloneElement(u, void 0, f) : null });
315
+ const { children: a, ...s } = r, i = A.Children.toArray(a), u = i.find(Oi);
316
+ if (u) {
317
+ const d = u.props.children, f = i.map((c) => c === u ? A.Children.count(d) > 1 ? A.Children.only(null) : A.isValidElement(d) ? d.props.children : null : c);
318
+ return /* @__PURE__ */ l.jsx(t, { ...s, ref: o, children: A.isValidElement(d) ? A.cloneElement(d, void 0, f) : null });
319
319
  }
320
320
  return /* @__PURE__ */ l.jsx(t, { ...s, ref: o, children: a });
321
321
  });
@@ -348,8 +348,8 @@ function zi(e, 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 d = a(...i);
352
- return o(...i), d;
351
+ const u = a(...i);
352
+ return o(...i), u;
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 };
@@ -379,8 +379,8 @@ var Wi = [
379
379
  "ul"
380
380
  ], re = Wi.reduce((e, t) => {
381
381
  const n = /* @__PURE__ */ ft(`Primitive.${t}`), r = A.forwardRef((o, a) => {
382
- const { asChild: s, ...i } = o, d = s ? n : t;
383
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l.jsx(d, { ...i, ref: a });
382
+ const { asChild: s, ...i } = o, u = s ? n : t;
383
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l.jsx(u, { ...i, ref: a });
384
384
  });
385
385
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
386
386
  }, {});
@@ -428,8 +428,8 @@ const rr = "-", Ji = (e) => {
428
428
  return i[0] === "" && i.length !== 1 && i.shift(), Ho(i, t) || Yi(s);
429
429
  },
430
430
  getConflictingClassGroupIds: (s, i) => {
431
- const d = n[s] || [];
432
- return i && r[s] ? [...d, ...r[s]] : d;
431
+ const u = n[s] || [];
432
+ return i && r[s] ? [...u, ...r[s]] : u;
433
433
  }
434
434
  };
435
435
  }, Ho = (e, t) => {
@@ -523,22 +523,22 @@ const rr = "-", Ji = (e) => {
523
523
  } = e;
524
524
  let r = (o) => {
525
525
  const a = [];
526
- let s = 0, i = 0, d = 0, u;
526
+ let s = 0, i = 0, u = 0, d;
527
527
  for (let h = 0; h < o.length; h++) {
528
528
  let m = o[h];
529
529
  if (s === 0 && i === 0) {
530
530
  if (m === Jn) {
531
- a.push(o.slice(d, h)), d = h + Ki;
531
+ a.push(o.slice(u, h)), u = h + Ki;
532
532
  continue;
533
533
  }
534
534
  if (m === "/") {
535
- u = h;
535
+ d = h;
536
536
  continue;
537
537
  }
538
538
  }
539
539
  m === "[" ? s++ : m === "]" ? s-- : m === "(" ? i++ : m === ")" && i--;
540
540
  }
541
- const f = a.length === 0 ? o : o.substring(d), c = _i(f), v = c !== f, p = u && u > d ? u - d : void 0;
541
+ const f = a.length === 0 ? o : o.substring(u), c = _i(f), v = c !== f, p = d && d > u ? d - u : void 0;
542
542
  return {
543
543
  modifiers: a,
544
544
  hasImportantModifier: v,
@@ -587,9 +587,9 @@ const rr = "-", Ji = (e) => {
587
587
  getConflictingClassGroupIds: o,
588
588
  sortModifiers: a
589
589
  } = t, s = [], i = e.trim().split(tc);
590
- let d = "";
591
- for (let u = i.length - 1; u >= 0; u -= 1) {
592
- const f = i[u], {
590
+ let u = "";
591
+ for (let d = i.length - 1; d >= 0; d -= 1) {
592
+ const f = i[d], {
593
593
  isExternal: c,
594
594
  modifiers: v,
595
595
  hasImportantModifier: p,
@@ -597,17 +597,17 @@ const rr = "-", Ji = (e) => {
597
597
  maybePostfixModifierPosition: m
598
598
  } = n(f);
599
599
  if (c) {
600
- d = f + (d.length > 0 ? " " + d : d);
600
+ u = f + (u.length > 0 ? " " + u : u);
601
601
  continue;
602
602
  }
603
603
  let g = !!m, b = r(g ? h.substring(0, m) : h);
604
604
  if (!b) {
605
605
  if (!g) {
606
- d = f + (d.length > 0 ? " " + d : d);
606
+ u = f + (u.length > 0 ? " " + u : u);
607
607
  continue;
608
608
  }
609
609
  if (b = r(h), !b) {
610
- d = f + (d.length > 0 ? " " + d : d);
610
+ u = f + (u.length > 0 ? " " + u : u);
611
611
  continue;
612
612
  }
613
613
  g = !1;
@@ -621,9 +621,9 @@ const rr = "-", Ji = (e) => {
621
621
  const j = L[N];
622
622
  s.push(w + j);
623
623
  }
624
- d = f + (d.length > 0 ? " " + d : d);
624
+ u = f + (u.length > 0 ? " " + u : u);
625
625
  }
626
- return d;
626
+ return u;
627
627
  };
628
628
  function rc() {
629
629
  let e = 0, t, n, r = "";
@@ -641,16 +641,16 @@ const Mo = (e) => {
641
641
  };
642
642
  function oc(e, ...t) {
643
643
  let n, r, o, a = s;
644
- function s(d) {
645
- const u = t.reduce((f, c) => c(f), e());
646
- return n = ec(u), r = n.cache.get, o = n.cache.set, a = i, i(d);
644
+ function s(u) {
645
+ const d = t.reduce((f, c) => c(f), e());
646
+ return n = ec(d), r = n.cache.get, o = n.cache.set, a = i, i(u);
647
647
  }
648
- function i(d) {
649
- const u = r(d);
650
- if (u)
651
- return u;
652
- const f = nc(d, n);
653
- return o(d, f), f;
648
+ function i(u) {
649
+ const d = r(u);
650
+ if (d)
651
+ return d;
652
+ const f = nc(u, n);
653
+ return o(u, f), f;
654
654
  }
655
655
  return function() {
656
656
  return a(rc.apply(null, arguments));
@@ -671,7 +671,7 @@ const ae = (e) => {
671
671
  const r = Oo.exec(e);
672
672
  return r ? r[1] ? t(r[1]) : n : !1;
673
673
  }, Go = (e) => e === "position" || e === "percentage", Wo = (e) => e === "image" || e === "url", Fo = (e) => e === "length" || e === "size" || e === "bg-size", Zo = (e) => e === "length", yc = (e) => e === "number", wc = (e) => e === "family-name", Bo = (e) => e === "shadow", Pc = () => {
674
- const e = ae("color"), t = ae("font"), n = ae("text"), r = ae("font-weight"), o = ae("tracking"), a = ae("leading"), s = ae("breakpoint"), i = ae("container"), d = ae("spacing"), u = ae("radius"), f = ae("shadow"), c = ae("inset-shadow"), v = ae("text-shadow"), p = ae("drop-shadow"), h = ae("blur"), m = ae("perspective"), g = ae("aspect"), b = ae("ease"), y = ae("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
674
+ const e = ae("color"), t = ae("font"), n = ae("text"), r = ae("font-weight"), o = ae("tracking"), a = ae("leading"), s = ae("breakpoint"), i = ae("container"), u = ae("spacing"), d = ae("radius"), f = ae("shadow"), c = ae("inset-shadow"), v = ae("text-shadow"), p = ae("drop-shadow"), h = ae("blur"), m = ae("perspective"), g = ae("aspect"), b = ae("ease"), y = ae("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
675
675
  "center",
676
676
  "top",
677
677
  "bottom",
@@ -689,7 +689,7 @@ const ae = (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
- ], L = () => [...P(), H, X], N = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"], E = () => [H, X, d], W = () => [it, "full", "auto", ...E()], Y = () => [Fe, "none", "subgrid", H, X], $ = () => ["auto", {
692
+ ], L = () => [...P(), H, X], N = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"], E = () => [H, X, u], W = () => [it, "full", "auto", ...E()], Y = () => [Fe, "none", "subgrid", H, X], $ = () => ["auto", {
693
693
  span: ["full", Fe, H, X]
694
694
  }, Fe, H, X], Q = () => [Fe, "auto", H, X], U = () => ["auto", "min", "max", "fr", H, X], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], _ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...E()], C = () => [it, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], R = () => [e, H, X], D = () => [...P(), qr, Vr, {
695
695
  position: [H, X]
@@ -702,7 +702,7 @@ const ae = (e) => {
702
702
  "",
703
703
  "none",
704
704
  "full",
705
- u,
705
+ d,
706
706
  H,
707
707
  X
708
708
  ], O = () => ["", K, Pt, Qe], Z = () => ["solid", "dashed", "dotted", "double"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [K, kn, qr, Vr], z = () => [
@@ -3164,15 +3164,15 @@ or.displayName = So.displayName;
3164
3164
  const Kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qr = Xo, dn = (e, t) => (n) => {
3165
3165
  var r;
3166
3166
  if ((t == null ? void 0 : t.variants) == null) return Qr(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((u) => {
3168
- const f = n == null ? void 0 : n[u], c = a == null ? void 0 : a[u];
3167
+ const { variants: o, defaultVariants: a } = t, s = Object.keys(o).map((d) => {
3168
+ const f = n == null ? void 0 : n[d], c = a == null ? void 0 : a[d];
3169
3169
  if (f === null) return null;
3170
3170
  const v = Kr(f) || Kr(c);
3171
- return o[u][v];
3172
- }), i = n && Object.entries(n).reduce((u, f) => {
3171
+ return o[d][v];
3172
+ }), i = n && Object.entries(n).reduce((d, f) => {
3173
3173
  let [c, v] = f;
3174
- return v === void 0 || (u[c] = v), u;
3175
- }, {}), d = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, f) => {
3174
+ return v === void 0 || (d[c] = v), d;
3175
+ }, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
3176
3176
  let { class: c, className: v, ...p } = f;
3177
3177
  return Object.entries(p).every((h) => {
3178
3178
  let [m, g] = h;
@@ -3184,12 +3184,12 @@ const Kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qr = Xo, d
3184
3184
  ...i
3185
3185
  }[m] === g;
3186
3186
  }) ? [
3187
- ...u,
3187
+ ...d,
3188
3188
  c,
3189
3189
  v
3190
- ] : u;
3190
+ ] : d;
3191
3191
  }, []);
3192
- return Qr(e, s, d, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
3192
+ return Qr(e, s, u, 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 kc = Io(
3241
3241
  children: a,
3242
3242
  iconNode: s,
3243
3243
  ...i
3244
- }, d) => Fn(
3244
+ }, u) => Fn(
3245
3245
  "svg",
3246
3246
  {
3247
- ref: d,
3247
+ ref: u,
3248
3248
  ...jc,
3249
3249
  width: t,
3250
3250
  height: t,
@@ -3255,7 +3255,7 @@ const kc = Io(
3255
3255
  ...i
3256
3256
  },
3257
3257
  [
3258
- ...s.map(([u, f]) => Fn(u, f)),
3258
+ ...s.map(([d, f]) => Fn(d, f)),
3259
3259
  ...Array.isArray(a) ? a : [a]
3260
3260
  ]
3261
3261
  )
@@ -3894,8 +3894,8 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3894
3894
  }
3895
3895
  function rd(e, t) {
3896
3896
  const n = A.createContext(t), r = (a) => {
3897
- const { children: s, ...i } = a, d = A.useMemo(() => i, Object.values(i));
3898
- return /* @__PURE__ */ l.jsx(n.Provider, { value: d, children: s });
3897
+ const { children: s, ...i } = a, u = A.useMemo(() => i, Object.values(i));
3898
+ return /* @__PURE__ */ l.jsx(n.Provider, { value: u, children: s });
3899
3899
  };
3900
3900
  r.displayName = e + "Provider";
3901
3901
  function o(a) {
@@ -3909,30 +3909,30 @@ function rd(e, t) {
3909
3909
  function tt(e, t = []) {
3910
3910
  let n = [];
3911
3911
  function r(a, s) {
3912
- const i = A.createContext(s), d = n.length;
3912
+ const i = A.createContext(s), u = n.length;
3913
3913
  n = [...n, s];
3914
- const u = (c) => {
3914
+ const d = (c) => {
3915
3915
  var b;
3916
- const { scope: v, children: p, ...h } = c, m = ((b = v == null ? void 0 : v[e]) == null ? void 0 : b[d]) || i, g = A.useMemo(() => h, Object.values(h));
3916
+ const { scope: v, children: p, ...h } = c, m = ((b = v == null ? void 0 : v[e]) == null ? void 0 : b[u]) || i, g = A.useMemo(() => h, Object.values(h));
3917
3917
  return /* @__PURE__ */ l.jsx(m.Provider, { value: g, children: p });
3918
3918
  };
3919
- u.displayName = a + "Provider";
3919
+ d.displayName = a + "Provider";
3920
3920
  function f(c, v) {
3921
3921
  var m;
3922
- const p = ((m = v == null ? void 0 : v[e]) == null ? void 0 : m[d]) || i, h = A.useContext(p);
3922
+ const p = ((m = v == null ? void 0 : v[e]) == null ? void 0 : m[u]) || i, h = A.useContext(p);
3923
3923
  if (h) return h;
3924
3924
  if (s !== void 0) return s;
3925
3925
  throw new Error(`\`${c}\` must be used within \`${a}\``);
3926
3926
  }
3927
- return [u, f];
3927
+ return [d, f];
3928
3928
  }
3929
3929
  const o = () => {
3930
3930
  const a = n.map((s) => A.createContext(s));
3931
3931
  return function(i) {
3932
- const d = (i == null ? void 0 : i[e]) || a;
3932
+ const u = (i == null ? void 0 : i[e]) || a;
3933
3933
  return A.useMemo(
3934
- () => ({ [`__scope${e}`]: { ...i, [e]: d } }),
3935
- [i, d]
3934
+ () => ({ [`__scope${e}`]: { ...i, [e]: u } }),
3935
+ [i, u]
3936
3936
  );
3937
3937
  };
3938
3938
  };
@@ -3947,8 +3947,8 @@ function od(...e) {
3947
3947
  scopeName: o.scopeName
3948
3948
  }));
3949
3949
  return function(a) {
3950
- const s = r.reduce((i, { useScope: d, scopeName: u }) => {
3951
- const c = d(a)[`__scope${u}`];
3950
+ const s = r.reduce((i, { useScope: u, scopeName: d }) => {
3951
+ const c = u(a)[`__scope${d}`];
3952
3952
  return { ...i, ...c };
3953
3953
  }, {});
3954
3954
  return A.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
@@ -3976,7 +3976,7 @@ function Nt({
3976
3976
  const [o, a, s] = cd({
3977
3977
  defaultProp: t,
3978
3978
  onChange: n
3979
- }), i = e !== void 0, d = i ? e : o;
3979
+ }), i = e !== void 0, u = i ? e : o;
3980
3980
  {
3981
3981
  const f = A.useRef(e !== void 0);
3982
3982
  A.useEffect(() => {
@@ -3986,7 +3986,7 @@ function Nt({
3986
3986
  ), f.current = i;
3987
3987
  }, [i, r]);
3988
3988
  }
3989
- const u = A.useCallback(
3989
+ const d = A.useCallback(
3990
3990
  (f) => {
3991
3991
  var c;
3992
3992
  if (i) {
@@ -3997,7 +3997,7 @@ function Nt({
3997
3997
  },
3998
3998
  [i, e, a, s]
3999
3999
  );
4000
- return [d, u];
4000
+ return [u, d];
4001
4001
  }
4002
4002
  function cd({
4003
4003
  defaultProp: e,
@@ -4045,30 +4045,30 @@ var ud = "DismissableLayer", Un = "dismissableLayer.update", Ad = "dismissableLa
4045
4045
  onFocusOutside: a,
4046
4046
  onInteractOutside: s,
4047
4047
  onDismiss: i,
4048
- ...d
4049
- } = e, u = A.useContext(qo), [f, c] = A.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = A.useState({}), h = se(t, (j) => c(j)), m = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(g), y = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, P = y >= b, L = md((j) => {
4050
- const E = j.target, W = [...u.branches].some((Y) => Y.contains(E));
4048
+ ...u
4049
+ } = e, d = A.useContext(qo), [f, c] = A.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = A.useState({}), h = se(t, (j) => c(j)), m = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(g), y = f ? m.indexOf(f) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, P = y >= b, L = md((j) => {
4050
+ const E = j.target, W = [...d.branches].some((Y) => Y.contains(E));
4051
4051
  !P || W || (o == null || o(j), s == null || s(j), j.defaultPrevented || i == null || i());
4052
4052
  }, v), N = hd((j) => {
4053
4053
  const E = j.target;
4054
- [...u.branches].some((Y) => Y.contains(E)) || (a == null || a(j), s == null || s(j), j.defaultPrevented || i == null || i());
4054
+ [...d.branches].some((Y) => Y.contains(E)) || (a == null || a(j), s == null || s(j), j.defaultPrevented || i == null || i());
4055
4055
  }, v);
4056
4056
  return dd((j) => {
4057
- y === u.layers.size - 1 && (r == null || r(j), !j.defaultPrevented && i && (j.preventDefault(), i()));
4057
+ y === d.layers.size - 1 && (r == null || r(j), !j.defaultPrevented && i && (j.preventDefault(), i()));
4058
4058
  }, v), A.useEffect(() => {
4059
4059
  if (f)
4060
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && ($r = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), eo(), () => {
4061
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = $r);
4060
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && ($r = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), eo(), () => {
4061
+ n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = $r);
4062
4062
  };
4063
- }, [f, v, n, u]), A.useEffect(() => () => {
4064
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), eo());
4065
- }, [f, u]), A.useEffect(() => {
4063
+ }, [f, v, n, d]), A.useEffect(() => () => {
4064
+ f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), eo());
4065
+ }, [f, d]), A.useEffect(() => {
4066
4066
  const j = () => p({});
4067
4067
  return document.addEventListener(Un, j), () => document.removeEventListener(Un, j);
4068
4068
  }, []), /* @__PURE__ */ l.jsx(
4069
4069
  re.div,
4070
4070
  {
4071
- ...d,
4071
+ ...u,
4072
4072
  ref: h,
4073
4073
  style: {
4074
4074
  pointerEvents: w ? P ? "auto" : "none" : void 0,
@@ -4102,16 +4102,16 @@ function md(e, t = globalThis == null ? void 0 : globalThis.document) {
4102
4102
  return A.useEffect(() => {
4103
4103
  const a = (i) => {
4104
4104
  if (i.target && !r.current) {
4105
- let d = function() {
4105
+ let u = function() {
4106
4106
  Ko(
4107
4107
  Ad,
4108
4108
  n,
4109
- u,
4109
+ d,
4110
4110
  { discrete: !0 }
4111
4111
  );
4112
4112
  };
4113
- const u = { originalEvent: i };
4114
- i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
4113
+ const d = { originalEvent: i };
4114
+ i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
4115
4115
  } else
4116
4116
  t.removeEventListener("click", o.current);
4117
4117
  r.current = !1;
@@ -4155,7 +4155,7 @@ var Dn = "focusScope.autoFocusOnMount", Sn = "focusScope.autoFocusOnUnmount", to
4155
4155
  onMountAutoFocus: o,
4156
4156
  onUnmountAutoFocus: a,
4157
4157
  ...s
4158
- } = e, [i, d] = A.useState(null), u = Se(o), f = Se(a), c = A.useRef(null), v = se(t, (m) => d(m)), p = A.useRef({
4158
+ } = e, [i, u] = A.useState(null), d = Se(o), f = Se(a), c = A.useRef(null), v = se(t, (m) => u(m)), p = A.useRef({
4159
4159
  paused: !1,
4160
4160
  pause() {
4161
4161
  this.paused = !0;
@@ -4191,16 +4191,16 @@ var Dn = "focusScope.autoFocusOnMount", Sn = "focusScope.autoFocusOnUnmount", to
4191
4191
  const m = document.activeElement;
4192
4192
  if (!i.contains(m)) {
4193
4193
  const b = new CustomEvent(Dn, to);
4194
- i.addEventListener(Dn, u), i.dispatchEvent(b), b.defaultPrevented || (gd(Rd(Qo(i)), { select: !0 }), document.activeElement === m && Ze(i));
4194
+ i.addEventListener(Dn, d), i.dispatchEvent(b), b.defaultPrevented || (gd(Rd(Qo(i)), { select: !0 }), document.activeElement === m && Ze(i));
4195
4195
  }
4196
4196
  return () => {
4197
- i.removeEventListener(Dn, u), setTimeout(() => {
4197
+ i.removeEventListener(Dn, d), setTimeout(() => {
4198
4198
  const b = new CustomEvent(Sn, to);
4199
4199
  i.addEventListener(Sn, f), i.dispatchEvent(b), b.defaultPrevented || Ze(m ?? document.body, { select: !0 }), i.removeEventListener(Sn, f), ro.remove(p);
4200
4200
  }, 0);
4201
4201
  };
4202
4202
  }
4203
- }, [i, u, f, p]);
4203
+ }, [i, d, f, p]);
4204
4204
  const h = A.useCallback(
4205
4205
  (m) => {
4206
4206
  if (!n && !r || p.paused) return;
@@ -4294,7 +4294,7 @@ var Ge = (e) => {
4294
4294
  };
4295
4295
  Ge.displayName = "Presence";
4296
4296
  function Ld(e) {
4297
- const [t, n] = A.useState(), r = A.useRef(null), o = A.useRef(e), a = A.useRef("none"), s = e ? "mounted" : "unmounted", [i, d] = Id(s, {
4297
+ const [t, n] = A.useState(), r = A.useRef(null), o = A.useRef(e), a = A.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = Id(s, {
4298
4298
  mounted: {
4299
4299
  UNMOUNT: "unmounted",
4300
4300
  ANIMATION_OUT: "unmountSuspended"
@@ -4308,22 +4308,22 @@ function Ld(e) {
4308
4308
  }
4309
4309
  });
4310
4310
  return A.useEffect(() => {
4311
- const u = Bt(r.current);
4312
- a.current = i === "mounted" ? u : "none";
4311
+ const d = Bt(r.current);
4312
+ a.current = i === "mounted" ? d : "none";
4313
4313
  }, [i]), Be(() => {
4314
- const u = r.current, f = o.current;
4314
+ const d = r.current, f = o.current;
4315
4315
  if (f !== e) {
4316
- const v = a.current, p = Bt(u);
4317
- e ? d("MOUNT") : p === "none" || (u == null ? void 0 : u.display) === "none" ? d("UNMOUNT") : d(f && v !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4316
+ const v = a.current, p = Bt(d);
4317
+ e ? u("MOUNT") : p === "none" || (d == null ? void 0 : d.display) === "none" ? u("UNMOUNT") : u(f && v !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4318
4318
  }
4319
- }, [e, d]), Be(() => {
4319
+ }, [e, u]), Be(() => {
4320
4320
  if (t) {
4321
- let u;
4321
+ let d;
4322
4322
  const f = t.ownerDocument.defaultView ?? window, c = (p) => {
4323
4323
  const m = Bt(r.current).includes(p.animationName);
4324
- if (p.target === t && m && (d("ANIMATION_END"), !o.current)) {
4324
+ if (p.target === t && m && (u("ANIMATION_END"), !o.current)) {
4325
4325
  const g = t.style.animationFillMode;
4326
- t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
4326
+ t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
4327
4327
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
4328
4328
  });
4329
4329
  }
@@ -4331,14 +4331,14 @@ function Ld(e) {
4331
4331
  p.target === t && (a.current = Bt(r.current));
4332
4332
  };
4333
4333
  return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
4334
- f.clearTimeout(u), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
4334
+ f.clearTimeout(d), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
4335
4335
  };
4336
4336
  } else
4337
- d("ANIMATION_END");
4338
- }, [t, d]), {
4337
+ u("ANIMATION_END");
4338
+ }, [t, u]), {
4339
4339
  isPresent: ["mounted", "unmountSuspended"].includes(i),
4340
- ref: A.useCallback((u) => {
4341
- r.current = u ? getComputedStyle(u) : null, n(u);
4340
+ ref: A.useCallback((d) => {
4341
+ r.current = d ? getComputedStyle(d) : null, n(d);
4342
4342
  }, [])
4343
4343
  };
4344
4344
  }
@@ -4470,15 +4470,15 @@ function Md(e, t) {
4470
4470
  var i = n;
4471
4471
  n = [], i.forEach(a), s = n;
4472
4472
  }
4473
- var d = function() {
4473
+ var u = function() {
4474
4474
  var f = s;
4475
4475
  s = [], f.forEach(a);
4476
- }, u = function() {
4477
- return Promise.resolve().then(d);
4476
+ }, d = function() {
4477
+ return Promise.resolve().then(u);
4478
4478
  };
4479
- u(), n = {
4479
+ d(), n = {
4480
4480
  push: function(f) {
4481
- s.push(f), u();
4481
+ s.push(f), d();
4482
4482
  },
4483
4483
  filter: function(f) {
4484
4484
  return s = s.filter(f), n;
@@ -4512,12 +4512,12 @@ var ta = Cd(), Hn = function() {
4512
4512
  onScrollCapture: Hn,
4513
4513
  onWheelCapture: Hn,
4514
4514
  onTouchMoveCapture: Hn
4515
- }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, d = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, v = e.sideCar, p = e.noRelative, h = e.noIsolation, m = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, w = e.gapMode, P = $o(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), L = v, N = Xd([n, t]), j = ke(ke({}, P), o);
4515
+ }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, c = e.shards, v = e.sideCar, p = e.noRelative, h = e.noIsolation, m = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, w = e.gapMode, P = $o(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), L = v, N = Xd([n, t]), j = ke(ke({}, P), o);
4516
4516
  return A.createElement(
4517
4517
  A.Fragment,
4518
4518
  null,
4519
- f && A.createElement(L, { sideCar: ta, removeScrollBar: u, shards: c, noRelative: p, noIsolation: h, inert: m, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
4520
- s ? A.cloneElement(A.Children.only(i), ke(ke({}, j), { ref: N })) : A.createElement(y, ke({}, j, { className: d, ref: N }), i)
4519
+ f && A.createElement(L, { sideCar: ta, removeScrollBar: d, shards: c, noRelative: p, noIsolation: h, inert: m, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
4520
+ s ? A.cloneElement(A.Children.only(i), ke(ke({}, j), { ref: N })) : A.createElement(y, ke({}, j, { className: u, ref: N }), i)
4521
4521
  );
4522
4522
  });
4523
4523
  An.defaultProps = {
@@ -4715,7 +4715,7 @@ var ct = Vn ? { passive: !1 } : !1, _d = function(e) {
4715
4715
  }, ru = function(e, t) {
4716
4716
  return e === "h" && t === "rtl" ? -1 : 1;
4717
4717
  }, ou = function(e, t, n, r, o) {
4718
- var a = ru(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, d = t.contains(i), u = !1, f = s > 0, c = 0, v = 0;
4718
+ var a = ru(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, u = t.contains(i), d = !1, f = s > 0, c = 0, v = 0;
4719
4719
  do {
4720
4720
  if (!i)
4721
4721
  break;
@@ -4725,10 +4725,10 @@ var ct = Vn ? { passive: !1 } : !1, _d = function(e) {
4725
4725
  i = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
4726
4726
  } while (
4727
4727
  // portaled content
4728
- !d && i !== document.body || // self content
4729
- d && (t.contains(i) || t === i)
4728
+ !u && i !== document.body || // self content
4729
+ u && (t.contains(i) || t === i)
4730
4730
  );
4731
- return (f && Math.abs(c) < 1 || !f && Math.abs(v) < 1) && (u = !0), u;
4731
+ return (f && Math.abs(c) < 1 || !f && Math.abs(v) < 1) && (d = !0), d;
4732
4732
  }, Yt = function(e) {
4733
4733
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
4734
4734
  }, lo = function(e) {
@@ -4775,7 +4775,7 @@ function cu(e) {
4775
4775
  return !0;
4776
4776
  var W = r.current || L;
4777
4777
  return ou(W, g, m, W === "h" ? w : P);
4778
- }, []), d = A.useCallback(function(m) {
4778
+ }, []), u = A.useCallback(function(m) {
4779
4779
  var g = m;
4780
4780
  if (!(!lt.length || lt[lt.length - 1] !== a)) {
4781
4781
  var b = "deltaY" in g ? lo(g) : Yt(g), y = t.current.filter(function(L) {
@@ -4792,7 +4792,7 @@ function cu(e) {
4792
4792
  P && g.cancelable && g.preventDefault();
4793
4793
  }
4794
4794
  }
4795
- }, []), u = A.useCallback(function(m, g, b, y) {
4795
+ }, []), d = A.useCallback(function(m, g, b, y) {
4796
4796
  var w = { name: m, delta: g, target: b, should: y, shadowParent: lu(b) };
4797
4797
  t.current.push(w), setTimeout(function() {
4798
4798
  t.current = t.current.filter(function(P) {
@@ -4802,19 +4802,19 @@ function cu(e) {
4802
4802
  }, []), f = A.useCallback(function(m) {
4803
4803
  n.current = Yt(m), r.current = void 0;
4804
4804
  }, []), c = A.useCallback(function(m) {
4805
- u(m.type, lo(m), m.target, i(m, e.lockRef.current));
4805
+ d(m.type, lo(m), m.target, i(m, e.lockRef.current));
4806
4806
  }, []), v = A.useCallback(function(m) {
4807
- u(m.type, Yt(m), m.target, i(m, e.lockRef.current));
4807
+ d(m.type, Yt(m), m.target, i(m, e.lockRef.current));
4808
4808
  }, []);
4809
4809
  A.useEffect(function() {
4810
4810
  return lt.push(a), e.setCallbacks({
4811
4811
  onScrollCapture: c,
4812
4812
  onWheelCapture: c,
4813
4813
  onTouchMoveCapture: v
4814
- }), document.addEventListener("wheel", d, ct), document.addEventListener("touchmove", d, ct), document.addEventListener("touchstart", f, ct), function() {
4814
+ }), document.addEventListener("wheel", u, ct), document.addEventListener("touchmove", u, ct), document.addEventListener("touchstart", f, ct), function() {
4815
4815
  lt = lt.filter(function(m) {
4816
4816
  return m !== a;
4817
- }), document.removeEventListener("wheel", d, ct), document.removeEventListener("touchmove", d, ct), document.removeEventListener("touchstart", f, ct);
4817
+ }), document.removeEventListener("wheel", u, ct), document.removeEventListener("touchmove", u, ct), document.removeEventListener("touchstart", f, ct);
4818
4818
  };
4819
4819
  }, []);
4820
4820
  var p = e.removeScrollBar, h = e.inert;
@@ -4854,12 +4854,12 @@ var uu = function(e) {
4854
4854
  }, fu = function(e, t, n, r) {
4855
4855
  var o = Au(t, Array.isArray(e) ? e : [e]);
4856
4856
  Vt[n] || (Vt[n] = /* @__PURE__ */ new WeakMap());
4857
- var a = Vt[n], s = [], i = /* @__PURE__ */ new Set(), d = new Set(o), u = function(c) {
4858
- !c || i.has(c) || (i.add(c), u(c.parentNode));
4857
+ var a = Vt[n], s = [], i = /* @__PURE__ */ new Set(), u = new Set(o), d = function(c) {
4858
+ !c || i.has(c) || (i.add(c), d(c.parentNode));
4859
4859
  };
4860
- o.forEach(u);
4860
+ o.forEach(d);
4861
4861
  var f = function(c) {
4862
- !c || d.has(c) || Array.prototype.forEach.call(c.children, function(v) {
4862
+ !c || u.has(c) || Array.prototype.forEach.call(c.children, function(v) {
4863
4863
  if (i.has(v))
4864
4864
  f(v);
4865
4865
  else
@@ -4891,7 +4891,7 @@ var uu = function(e) {
4891
4891
  defaultOpen: o,
4892
4892
  onOpenChange: a,
4893
4893
  modal: s = !0
4894
- } = e, i = A.useRef(null), d = A.useRef(null), [u, f] = Nt({
4894
+ } = e, i = A.useRef(null), u = A.useRef(null), [d, f] = Nt({
4895
4895
  prop: r,
4896
4896
  defaultProp: o ?? !1,
4897
4897
  onChange: a,
@@ -4902,11 +4902,11 @@ var uu = function(e) {
4902
4902
  {
4903
4903
  scope: t,
4904
4904
  triggerRef: i,
4905
- contentRef: d,
4905
+ contentRef: u,
4906
4906
  contentId: Ce(),
4907
4907
  titleId: Ce(),
4908
4908
  descriptionId: Ce(),
4909
- open: u,
4909
+ open: d,
4910
4910
  onOpenChange: f,
4911
4911
  onOpenToggle: A.useCallback(() => f((c) => !c), [f]),
4912
4912
  modal: s,
@@ -5015,17 +5015,17 @@ var bu = A.forwardRef(
5015
5015
  (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;
5016
5016
  },
5017
5017
  onInteractOutside: (a) => {
5018
- var d, u;
5019
- (d = e.onInteractOutside) == null || d.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
5018
+ var u, d;
5019
+ (u = e.onInteractOutside) == null || u.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
5020
5020
  const s = a.target;
5021
- ((u = n.triggerRef.current) == null ? void 0 : u.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
5021
+ ((d = n.triggerRef.current) == null ? void 0 : d.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
5022
5022
  }
5023
5023
  }
5024
5024
  );
5025
5025
  }
5026
5026
  ), ma = A.forwardRef(
5027
5027
  (e, t) => {
5028
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = Le(_e, n), d = A.useRef(null), u = se(t, d);
5028
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = Le(_e, n), u = A.useRef(null), d = se(t, u);
5029
5029
  return _o(), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
5030
5030
  /* @__PURE__ */ l.jsx(
5031
5031
  ar,
@@ -5044,7 +5044,7 @@ var bu = A.forwardRef(
5044
5044
  "aria-labelledby": i.titleId,
5045
5045
  "data-state": dr(i.open),
5046
5046
  ...s,
5047
- ref: u,
5047
+ ref: d,
5048
5048
  onDismiss: () => i.onOpenChange(!1)
5049
5049
  }
5050
5050
  )
@@ -5052,7 +5052,7 @@ var bu = A.forwardRef(
5052
5052
  ),
5053
5053
  /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
5054
5054
  /* @__PURE__ */ l.jsx(xu, { titleId: i.titleId }),
5055
- /* @__PURE__ */ l.jsx(wu, { contentRef: d, descriptionId: i.descriptionId })
5055
+ /* @__PURE__ */ l.jsx(wu, { contentRef: u, descriptionId: i.descriptionId })
5056
5056
  ] })
5057
5057
  ] });
5058
5058
  }
@@ -5323,9 +5323,9 @@ function fo(e, t, n) {
5323
5323
  reference: r,
5324
5324
  floating: o
5325
5325
  } = e;
5326
- const a = Ne(t), s = fr(t), i = Ar(s), d = ze(t), u = a === "y", f = r.x + r.width / 2 - o.width / 2, c = r.y + r.height / 2 - o.height / 2, v = r[i] / 2 - o[i] / 2;
5326
+ const a = Ne(t), s = fr(t), i = Ar(s), u = ze(t), d = a === "y", f = r.x + r.width / 2 - o.width / 2, c = r.y + r.height / 2 - o.height / 2, v = r[i] / 2 - o[i] / 2;
5327
5327
  let p;
5328
- switch (d) {
5328
+ switch (u) {
5329
5329
  case "top":
5330
5330
  p = {
5331
5331
  x: f,
@@ -5358,10 +5358,10 @@ function fo(e, t, n) {
5358
5358
  }
5359
5359
  switch (bt(t)) {
5360
5360
  case "start":
5361
- p[s] -= v * (n && u ? -1 : 1);
5361
+ p[s] -= v * (n && d ? -1 : 1);
5362
5362
  break;
5363
5363
  case "end":
5364
- p[s] += v * (n && u ? -1 : 1);
5364
+ p[s] += v * (n && d ? -1 : 1);
5365
5365
  break;
5366
5366
  }
5367
5367
  return p;
@@ -5372,15 +5372,15 @@ const Ou = async (e, t, n) => {
5372
5372
  strategy: o = "absolute",
5373
5373
  middleware: a = [],
5374
5374
  platform: s
5375
- } = n, i = a.filter(Boolean), d = await (s.isRTL == null ? void 0 : s.isRTL(t));
5376
- let u = await s.getElementRects({
5375
+ } = n, i = a.filter(Boolean), u = await (s.isRTL == null ? void 0 : s.isRTL(t));
5376
+ let d = await s.getElementRects({
5377
5377
  reference: e,
5378
5378
  floating: t,
5379
5379
  strategy: o
5380
5380
  }), {
5381
5381
  x: f,
5382
5382
  y: c
5383
- } = fo(u, r, d), v = r, p = {}, h = 0;
5383
+ } = fo(d, r, u), v = r, p = {}, h = 0;
5384
5384
  for (let m = 0; m < i.length; m++) {
5385
5385
  const {
5386
5386
  name: g,
@@ -5397,7 +5397,7 @@ const Ou = async (e, t, n) => {
5397
5397
  placement: v,
5398
5398
  strategy: o,
5399
5399
  middlewareData: p,
5400
- rects: u,
5400
+ rects: d,
5401
5401
  platform: s,
5402
5402
  elements: {
5403
5403
  reference: e,
@@ -5410,14 +5410,14 @@ const Ou = async (e, t, n) => {
5410
5410
  ...p[g],
5411
5411
  ...P
5412
5412
  }
5413
- }, L && h <= 50 && (h++, typeof L == "object" && (L.placement && (v = L.placement), L.rects && (u = L.rects === !0 ? await s.getElementRects({
5413
+ }, L && h <= 50 && (h++, typeof L == "object" && (L.placement && (v = L.placement), L.rects && (d = L.rects === !0 ? await s.getElementRects({
5414
5414
  reference: e,
5415
5415
  floating: t,
5416
5416
  strategy: o
5417
5417
  }) : L.rects), {
5418
5418
  x: f,
5419
5419
  y: c
5420
- } = fo(u, v, d)), m = -1);
5420
+ } = fo(d, v, u)), m = -1);
5421
5421
  }
5422
5422
  return {
5423
5423
  x: f,
@@ -5436,18 +5436,18 @@ async function Et(e, t) {
5436
5436
  platform: a,
5437
5437
  rects: s,
5438
5438
  elements: i,
5439
- strategy: d
5439
+ strategy: u
5440
5440
  } = e, {
5441
- boundary: u = "clippingAncestors",
5441
+ boundary: d = "clippingAncestors",
5442
5442
  rootBoundary: f = "viewport",
5443
5443
  elementContext: c = "floating",
5444
5444
  altBoundary: v = !1,
5445
5445
  padding: p = 0
5446
5446
  } = Oe(t, e), h = Xa(p), g = i[v ? c === "floating" ? "reference" : "floating" : c], b = rn(await a.getClippingRect({
5447
5447
  element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
5448
- boundary: u,
5448
+ boundary: d,
5449
5449
  rootBoundary: f,
5450
- strategy: d
5450
+ strategy: u
5451
5451
  })), y = c === "floating" ? {
5452
5452
  x: r,
5453
5453
  y: o,
@@ -5463,7 +5463,7 @@ async function Et(e, t) {
5463
5463
  elements: i,
5464
5464
  rect: y,
5465
5465
  offsetParent: w,
5466
- strategy: d
5466
+ strategy: u
5467
5467
  }) : y);
5468
5468
  return {
5469
5469
  top: (b.top - L.top + h.top) / P.y,
@@ -5483,20 +5483,20 @@ const zu = (e) => ({
5483
5483
  rects: a,
5484
5484
  platform: s,
5485
5485
  elements: i,
5486
- middlewareData: d
5486
+ middlewareData: u
5487
5487
  } = t, {
5488
- element: u,
5488
+ element: d,
5489
5489
  padding: f = 0
5490
5490
  } = Oe(e, t) || {};
5491
- if (u == null)
5491
+ if (d == null)
5492
5492
  return {};
5493
5493
  const c = Xa(f), v = {
5494
5494
  x: n,
5495
5495
  y: r
5496
- }, p = fr(o), h = Ar(p), m = await s.getDimensions(u), g = p === "y", b = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", P = a.reference[h] + a.reference[p] - v[p] - a.floating[h], L = v[p] - a.reference[p], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
5496
+ }, p = fr(o), h = Ar(p), m = await s.getDimensions(d), g = p === "y", b = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", P = a.reference[h] + a.reference[p] - v[p] - a.floating[h], L = v[p] - a.reference[p], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5497
5497
  let j = N ? N[w] : 0;
5498
5498
  (!j || !await (s.isElement == null ? void 0 : s.isElement(N))) && (j = i.floating[w] || a.floating[h]);
5499
- const E = P / 2 - L / 2, W = j / 2 - m[h] / 2 - 1, Y = Je(c[b], W), $ = Je(c[y], W), Q = Y, U = j - m[h] - $, V = j / 2 - m[h] / 2 + E, _ = qn(Q, V, U), S = !d.arrow && bt(o) != null && V !== _ && a.reference[h] / 2 - (V < Q ? Y : $) - m[h] / 2 < 0, C = S ? V < Q ? V - Q : V - U : 0;
5499
+ const E = P / 2 - L / 2, W = j / 2 - m[h] / 2 - 1, Y = Je(c[b], W), $ = Je(c[y], W), Q = Y, U = j - m[h] - $, V = j / 2 - m[h] / 2 + E, _ = qn(Q, V, U), S = !u.arrow && bt(o) != null && V !== _ && a.reference[h] / 2 - (V < Q ? Y : $) - m[h] / 2 < 0, C = S ? V < Q ? V - Q : V - U : 0;
5500
5500
  return {
5501
5501
  [p]: v[p] + C,
5502
5502
  data: {
@@ -5520,8 +5520,8 @@ const zu = (e) => ({
5520
5520
  middlewareData: a,
5521
5521
  rects: s,
5522
5522
  initialPlacement: i,
5523
- platform: d,
5524
- elements: u
5523
+ platform: u,
5524
+ elements: d
5525
5525
  } = t, {
5526
5526
  mainAxis: f = !0,
5527
5527
  crossAxis: c = !0,
@@ -5533,7 +5533,7 @@ const zu = (e) => ({
5533
5533
  } = Oe(e, t);
5534
5534
  if ((n = a.arrow) != null && n.alignmentOffset)
5535
5535
  return {};
5536
- const b = ze(o), y = Ne(i), w = ze(i) === i, P = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), L = v || (w || !m ? [nn(i)] : Xu(i)), N = h !== "none";
5536
+ const b = ze(o), y = Ne(i), w = ze(i) === i, P = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), L = v || (w || !m ? [nn(i)] : Xu(i)), N = h !== "none";
5537
5537
  !v && N && L.push(...Mu(i, m, h, P));
5538
5538
  const j = [i, ...L], E = await Et(t, g), W = [];
5539
5539
  let Y = ((r = a.flip) == null ? void 0 : r.overflows) || [];
@@ -5649,7 +5649,7 @@ async function Fu(e, t) {
5649
5649
  placement: n,
5650
5650
  platform: r,
5651
5651
  elements: o
5652
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = ze(n), i = bt(n), d = Ne(n) === "y", u = ["left", "top"].includes(s) ? -1 : 1, f = a && d ? -1 : 1, c = Oe(t, e);
5652
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = ze(n), i = bt(n), u = Ne(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, f = a && u ? -1 : 1, c = Oe(t, e);
5653
5653
  let {
5654
5654
  mainAxis: v,
5655
5655
  crossAxis: p,
@@ -5663,11 +5663,11 @@ async function Fu(e, t) {
5663
5663
  crossAxis: c.crossAxis || 0,
5664
5664
  alignmentAxis: c.alignmentAxis
5665
5665
  };
5666
- return i && typeof h == "number" && (p = i === "end" ? h * -1 : h), d ? {
5666
+ return i && typeof h == "number" && (p = i === "end" ? h * -1 : h), u ? {
5667
5667
  x: p * f,
5668
- y: v * u
5668
+ y: v * d
5669
5669
  } : {
5670
- x: v * u,
5670
+ x: v * d,
5671
5671
  y: p * f
5672
5672
  };
5673
5673
  }
@@ -5682,12 +5682,12 @@ const Zu = function(e) {
5682
5682
  y: a,
5683
5683
  placement: s,
5684
5684
  middlewareData: i
5685
- } = t, d = await Fu(t, e);
5685
+ } = t, u = await Fu(t, e);
5686
5686
  return s === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
5687
- x: o + d.x,
5688
- y: a + d.y,
5687
+ x: o + u.x,
5688
+ y: a + u.y,
5689
5689
  data: {
5690
- ...d,
5690
+ ...u,
5691
5691
  placement: s
5692
5692
  }
5693
5693
  };
@@ -5717,12 +5717,12 @@ const Zu = function(e) {
5717
5717
  };
5718
5718
  }
5719
5719
  },
5720
- ...d
5721
- } = Oe(e, t), u = {
5720
+ ...u
5721
+ } = Oe(e, t), d = {
5722
5722
  x: n,
5723
5723
  y: r
5724
- }, f = await Et(t, d), c = Ne(ze(o)), v = ur(c);
5725
- let p = u[v], h = u[c];
5724
+ }, f = await Et(t, u), c = Ne(ze(o)), v = ur(c);
5725
+ let p = d[v], h = d[c];
5726
5726
  if (a) {
5727
5727
  const g = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y = p + f[g], w = p - f[b];
5728
5728
  p = qn(y, p, w);
@@ -5761,8 +5761,8 @@ const Zu = function(e) {
5761
5761
  middlewareData: s
5762
5762
  } = t, {
5763
5763
  offset: i = 0,
5764
- mainAxis: d = !0,
5765
- crossAxis: u = !0
5764
+ mainAxis: u = !0,
5765
+ crossAxis: d = !0
5766
5766
  } = Oe(e, t), f = {
5767
5767
  x: n,
5768
5768
  y: r
@@ -5776,11 +5776,11 @@ const Zu = function(e) {
5776
5776
  crossAxis: 0,
5777
5777
  ...m
5778
5778
  };
5779
- if (d) {
5779
+ if (u) {
5780
5780
  const w = v === "y" ? "height" : "width", P = a.reference[v] - a.floating[w] + g.mainAxis, L = a.reference[v] + a.reference[w] - g.mainAxis;
5781
5781
  p < P ? p = P : p > L && (p = L);
5782
5782
  }
5783
- if (u) {
5783
+ if (d) {
5784
5784
  var b, y;
5785
5785
  const w = v === "y" ? "width" : "height", P = ["top", "left"].includes(ze(o)), L = a.reference[c] - a.floating[w] + (P && ((b = s.offset) == null ? void 0 : b[c]) || 0) + (P ? 0 : g.crossAxis), N = a.reference[c] + a.reference[w] + (P ? 0 : ((y = s.offset) == null ? void 0 : y[c]) || 0) - (P ? g.crossAxis : 0);
5786
5786
  h < L ? h = L : h > N && (h = N);
@@ -5803,10 +5803,10 @@ const Zu = function(e) {
5803
5803
  platform: s,
5804
5804
  elements: i
5805
5805
  } = t, {
5806
- apply: d = () => {
5806
+ apply: u = () => {
5807
5807
  },
5808
- ...u
5809
- } = Oe(e, t), f = await Et(t, u), c = ze(o), v = bt(o), p = Ne(o) === "y", {
5808
+ ...d
5809
+ } = Oe(e, t), f = await Et(t, d), c = ze(o), v = bt(o), p = Ne(o) === "y", {
5810
5810
  width: h,
5811
5811
  height: m
5812
5812
  } = a.floating;
@@ -5818,7 +5818,7 @@ const Zu = function(e) {
5818
5818
  const Y = be(f.left, 0), $ = be(f.right, 0), Q = be(f.top, 0), U = be(f.bottom, 0);
5819
5819
  p ? E = h - 2 * (Y !== 0 || $ !== 0 ? Y + $ : be(f.left, f.right)) : j = m - 2 * (Q !== 0 || U !== 0 ? Q + U : be(f.top, f.bottom));
5820
5820
  }
5821
- await d({
5821
+ await u({
5822
5822
  ...t,
5823
5823
  availableWidth: E,
5824
5824
  availableHeight: j
@@ -5986,20 +5986,20 @@ function $e(e, t, n, r) {
5986
5986
  let s = De(1);
5987
5987
  t && (r ? Ee(r) && (s = At(r)) : s = At(e));
5988
5988
  const i = Ku(a, n, r) ? Oa(a) : De(0);
5989
- let d = (o.left + i.x) / s.x, u = (o.top + i.y) / s.y, f = o.width / s.x, c = o.height / s.y;
5989
+ let u = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, c = o.height / s.y;
5990
5990
  if (a) {
5991
5991
  const v = ge(a), p = r && Ee(r) ? ge(r) : r;
5992
5992
  let h = v, m = Qn(h);
5993
5993
  for (; m && r && p !== h; ) {
5994
5994
  const g = At(m), b = m.getBoundingClientRect(), y = Ie(m), w = b.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, P = b.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
5995
- d *= g.x, u *= g.y, f *= g.x, c *= g.y, d += w, u += P, h = ge(m), m = Qn(h);
5995
+ u *= g.x, d *= g.y, f *= g.x, c *= g.y, u += w, d += P, h = ge(m), m = Qn(h);
5996
5996
  }
5997
5997
  }
5998
5998
  return rn({
5999
5999
  width: f,
6000
6000
  height: c,
6001
- x: d,
6002
- y: u
6001
+ x: u,
6002
+ y: d
6003
6003
  });
6004
6004
  }
6005
6005
  function hr(e, t) {
@@ -6027,21 +6027,21 @@ function Qu(e) {
6027
6027
  const a = o === "fixed", s = Xe(r), i = t ? pn(t.floating) : !1;
6028
6028
  if (r === s || i && a)
6029
6029
  return n;
6030
- let d = {
6030
+ let u = {
6031
6031
  scrollLeft: 0,
6032
6032
  scrollTop: 0
6033
- }, u = De(1);
6033
+ }, d = De(1);
6034
6034
  const f = De(0), c = Te(r);
6035
- if ((c || !c && !a) && ((gt(r) !== "body" || Dt(s)) && (d = mn(r)), Te(r))) {
6035
+ if ((c || !c && !a) && ((gt(r) !== "body" || Dt(s)) && (u = mn(r)), Te(r))) {
6036
6036
  const p = $e(r);
6037
- u = At(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
6037
+ d = At(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
6038
6038
  }
6039
- const v = s && !c && !a ? za(s, d, !0) : De(0);
6039
+ const v = s && !c && !a ? za(s, u, !0) : De(0);
6040
6040
  return {
6041
- width: n.width * u.x,
6042
- height: n.height * u.y,
6043
- x: n.x * u.x - d.scrollLeft * u.x + f.x + v.x,
6044
- y: n.y * u.y - d.scrollTop * u.y + f.y + v.y
6041
+ width: n.width * d.x,
6042
+ height: n.height * d.y,
6043
+ x: n.x * d.x - u.scrollLeft * d.x + f.x + v.x,
6044
+ y: n.y * d.y - u.scrollTop * d.y + f.y + v.y
6045
6045
  };
6046
6046
  }
6047
6047
  function _u(e) {
@@ -6060,26 +6060,26 @@ function $u(e) {
6060
6060
  }
6061
6061
  function eA(e, t) {
6062
6062
  const n = ge(e), r = Xe(e), o = n.visualViewport;
6063
- let a = r.clientWidth, s = r.clientHeight, i = 0, d = 0;
6063
+ let a = r.clientWidth, s = r.clientHeight, i = 0, u = 0;
6064
6064
  if (o) {
6065
6065
  a = o.width, s = o.height;
6066
- const u = pr();
6067
- (!u || u && t === "fixed") && (i = o.offsetLeft, d = o.offsetTop);
6066
+ const d = pr();
6067
+ (!d || d && t === "fixed") && (i = o.offsetLeft, u = o.offsetTop);
6068
6068
  }
6069
6069
  return {
6070
6070
  width: a,
6071
6071
  height: s,
6072
6072
  x: i,
6073
- y: d
6073
+ y: u
6074
6074
  };
6075
6075
  }
6076
6076
  function tA(e, t) {
6077
- const n = $e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Te(e) ? At(e) : De(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, d = o * a.x, u = r * a.y;
6077
+ const n = $e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Te(e) ? At(e) : De(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, u = o * a.x, d = r * a.y;
6078
6078
  return {
6079
6079
  width: s,
6080
6080
  height: i,
6081
- x: d,
6082
- y: u
6081
+ x: u,
6082
+ y: d
6083
6083
  };
6084
6084
  }
6085
6085
  function ho(e, t, n) {
@@ -6113,8 +6113,8 @@ function nA(e, t) {
6113
6113
  const a = Ie(e).position === "fixed";
6114
6114
  let s = a ? Ye(e) : e;
6115
6115
  for (; Ee(s) && !vt(s); ) {
6116
- const i = Ie(s), d = vr(s);
6117
- !d && i.position === "fixed" && (o = null), (a ? !d && !o : !d && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Dt(s) && !d && Ga(e, s)) ? r = r.filter((f) => f !== s) : o = i, s = Ye(s);
6116
+ const i = Ie(s), u = vr(s);
6117
+ !u && i.position === "fixed" && (o = null), (a ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Dt(s) && !u && Ga(e, s)) ? r = r.filter((f) => f !== s) : o = i, s = Ye(s);
6118
6118
  }
6119
6119
  return t.set(e, r), r;
6120
6120
  }
@@ -6125,15 +6125,15 @@ function rA(e) {
6125
6125
  rootBoundary: r,
6126
6126
  strategy: o
6127
6127
  } = e;
6128
- const s = [...n === "clippingAncestors" ? pn(t) ? [] : nA(t, this._c) : [].concat(n), r], i = s[0], d = s.reduce((u, f) => {
6128
+ const s = [...n === "clippingAncestors" ? pn(t) ? [] : nA(t, this._c) : [].concat(n), r], i = s[0], u = s.reduce((d, f) => {
6129
6129
  const c = ho(t, f, o);
6130
- return u.top = be(c.top, u.top), u.right = Je(c.right, u.right), u.bottom = Je(c.bottom, u.bottom), u.left = be(c.left, u.left), u;
6130
+ return d.top = be(c.top, d.top), d.right = Je(c.right, d.right), d.bottom = Je(c.bottom, d.bottom), d.left = be(c.left, d.left), d;
6131
6131
  }, ho(t, i, o));
6132
6132
  return {
6133
- width: d.right - d.left,
6134
- height: d.bottom - d.top,
6135
- x: d.left,
6136
- y: d.top
6133
+ width: u.right - u.left,
6134
+ height: u.bottom - u.top,
6135
+ x: u.left,
6136
+ y: u.top
6137
6137
  };
6138
6138
  }
6139
6139
  function oA(e) {
@@ -6152,17 +6152,17 @@ function aA(e, t, n) {
6152
6152
  scrollLeft: 0,
6153
6153
  scrollTop: 0
6154
6154
  };
6155
- const d = De(0);
6156
- function u() {
6157
- d.x = hr(o);
6155
+ const u = De(0);
6156
+ function d() {
6157
+ u.x = hr(o);
6158
6158
  }
6159
6159
  if (r || !r && !a)
6160
6160
  if ((gt(t) !== "body" || Dt(o)) && (i = mn(t)), r) {
6161
6161
  const p = $e(t, !0, a, t);
6162
- d.x = p.x + t.clientLeft, d.y = p.y + t.clientTop;
6163
- } else o && u();
6164
- a && !r && o && u();
6165
- const f = o && !r && !a ? za(o, i) : De(0), c = s.left + i.scrollLeft - d.x - f.x, v = s.top + i.scrollTop - d.y - f.y;
6162
+ u.x = p.x + t.clientLeft, u.y = p.y + t.clientTop;
6163
+ } else o && d();
6164
+ a && !r && o && d();
6165
+ const f = o && !r && !a ? za(o, i) : De(0), c = s.left + i.scrollLeft - u.x - f.x, v = s.top + i.scrollTop - u.y - f.y;
6166
6166
  return {
6167
6167
  x: c,
6168
6168
  y: v,
@@ -6236,31 +6236,31 @@ function lA(e, t) {
6236
6236
  var i;
6237
6237
  clearTimeout(r), (i = n) == null || i.disconnect(), n = null;
6238
6238
  }
6239
- function s(i, d) {
6240
- i === void 0 && (i = !1), d === void 0 && (d = 1), a();
6241
- const u = e.getBoundingClientRect(), {
6239
+ function s(i, u) {
6240
+ i === void 0 && (i = !1), u === void 0 && (u = 1), a();
6241
+ const d = e.getBoundingClientRect(), {
6242
6242
  left: f,
6243
6243
  top: c,
6244
6244
  width: v,
6245
6245
  height: p
6246
- } = u;
6246
+ } = d;
6247
6247
  if (i || t(), !v || !p)
6248
6248
  return;
6249
6249
  const h = qt(c), m = qt(o.clientWidth - (f + v)), g = qt(o.clientHeight - (c + p)), b = qt(f), w = {
6250
6250
  rootMargin: -h + "px " + -m + "px " + -g + "px " + -b + "px",
6251
- threshold: be(0, Je(1, d)) || 1
6251
+ threshold: be(0, Je(1, u)) || 1
6252
6252
  };
6253
6253
  let P = !0;
6254
6254
  function L(N) {
6255
6255
  const j = N[0].intersectionRatio;
6256
- if (j !== d) {
6256
+ if (j !== u) {
6257
6257
  if (!P)
6258
6258
  return s();
6259
6259
  j ? s(!1, j) : r = setTimeout(() => {
6260
6260
  s(!1, 1e-7);
6261
6261
  }, 1e3);
6262
6262
  }
6263
- j === 1 && !Fa(u, e.getBoundingClientRect()) && s(), P = !1;
6263
+ j === 1 && !Fa(d, e.getBoundingClientRect()) && s(), P = !1;
6264
6264
  }
6265
6265
  try {
6266
6266
  n = new IntersectionObserver(L, {
@@ -6282,24 +6282,24 @@ function dA(e, t, n, r) {
6282
6282
  ancestorResize: a = !0,
6283
6283
  elementResize: s = typeof ResizeObserver == "function",
6284
6284
  layoutShift: i = typeof IntersectionObserver == "function",
6285
- animationFrame: d = !1
6286
- } = r, u = mr(e), f = o || a ? [...u ? It(u) : [], ...It(t)] : [];
6285
+ animationFrame: u = !1
6286
+ } = r, d = mr(e), f = o || a ? [...d ? It(d) : [], ...It(t)] : [];
6287
6287
  f.forEach((b) => {
6288
6288
  o && b.addEventListener("scroll", n, {
6289
6289
  passive: !0
6290
6290
  }), a && b.addEventListener("resize", n);
6291
6291
  });
6292
- const c = u && i ? lA(u, n) : null;
6292
+ const c = d && i ? lA(d, n) : null;
6293
6293
  let v = -1, p = null;
6294
6294
  s && (p = new ResizeObserver((b) => {
6295
6295
  let [y] = b;
6296
- y && y.target === u && p && (p.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
6296
+ y && y.target === d && p && (p.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
6297
6297
  var w;
6298
6298
  (w = p) == null || w.observe(t);
6299
6299
  })), n();
6300
- }), u && !d && p.observe(u), p.observe(t));
6301
- let h, m = d ? $e(e) : null;
6302
- d && g();
6300
+ }), d && !u && p.observe(d), p.observe(t));
6301
+ let h, m = u ? $e(e) : null;
6302
+ u && g();
6303
6303
  function g() {
6304
6304
  const b = $e(e);
6305
6305
  m && !Fa(m, b) && n(), m = b, h = requestAnimationFrame(g);
@@ -6308,7 +6308,7 @@ function dA(e, t, n, r) {
6308
6308
  var b;
6309
6309
  f.forEach((y) => {
6310
6310
  o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
6311
- }), c == null || c(), (b = p) == null || b.disconnect(), p = null, d && cancelAnimationFrame(h);
6311
+ }), c == null || c(), (b = p) == null || b.disconnect(), p = null, u && cancelAnimationFrame(h);
6312
6312
  };
6313
6313
  }
6314
6314
  const uA = Zu, AA = Bu, fA = Gu, vA = Yu, pA = Wu, go = zu, mA = Ju, hA = (e, t, n) => {
@@ -6381,8 +6381,8 @@ function xA(e) {
6381
6381
  floating: s
6382
6382
  } = {},
6383
6383
  transform: i = !0,
6384
- whileElementsMounted: d,
6385
- open: u
6384
+ whileElementsMounted: u,
6385
+ open: d
6386
6386
  } = e, [f, c] = A.useState({
6387
6387
  x: 0,
6388
6388
  y: 0,
@@ -6396,7 +6396,7 @@ function xA(e) {
6396
6396
  R !== N.current && (N.current = R, m(R));
6397
6397
  }, []), w = A.useCallback((R) => {
6398
6398
  R !== j.current && (j.current = R, b(R));
6399
- }, []), P = a || h, L = s || g, N = A.useRef(null), j = A.useRef(null), E = A.useRef(f), W = d != null, Y = zn(d), $ = zn(o), Q = zn(u), U = A.useCallback(() => {
6399
+ }, []), P = a || h, L = s || g, N = A.useRef(null), j = A.useRef(null), E = A.useRef(f), W = u != null, Y = zn(u), $ = zn(o), Q = zn(d), U = A.useCallback(() => {
6400
6400
  if (!N.current || !j.current)
6401
6401
  return;
6402
6402
  const R = {
@@ -6419,11 +6419,11 @@ function xA(e) {
6419
6419
  });
6420
6420
  }, [v, t, n, $, Q]);
6421
6421
  $t(() => {
6422
- u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, c((R) => ({
6422
+ d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, c((R) => ({
6423
6423
  ...R,
6424
6424
  isPositioned: !1
6425
6425
  })));
6426
- }, [u]);
6426
+ }, [d]);
6427
6427
  const V = A.useRef(!1);
6428
6428
  $t(() => (V.current = !0, () => {
6429
6429
  V.current = !1;
@@ -6542,8 +6542,8 @@ function DA(e) {
6542
6542
  const a = o[0];
6543
6543
  let s, i;
6544
6544
  if ("borderBoxSize" in a) {
6545
- const d = a.borderBoxSize, u = Array.isArray(d) ? d[0] : d;
6546
- s = u.inlineSize, i = u.blockSize;
6545
+ const u = a.borderBoxSize, d = Array.isArray(u) ? u[0] : u;
6546
+ s = d.inlineSize, i = d.blockSize;
6547
6547
  } else
6548
6548
  s = e.offsetWidth, i = e.offsetHeight;
6549
6549
  n({ width: s, height: i });
@@ -6577,15 +6577,15 @@ var gr = "PopperContent", [TA, XA] = Ja(gr), Ka = A.forwardRef(
6577
6577
  align: a = "center",
6578
6578
  alignOffset: s = 0,
6579
6579
  arrowPadding: i = 0,
6580
- avoidCollisions: d = !0,
6581
- collisionBoundary: u = [],
6580
+ avoidCollisions: u = !0,
6581
+ collisionBoundary: d = [],
6582
6582
  collisionPadding: f = 0,
6583
6583
  sticky: c = "partial",
6584
6584
  hideWhenDetached: v = !1,
6585
6585
  updatePositionStrategy: p = "optimized",
6586
6586
  onPlaced: h,
6587
6587
  ...m
6588
- } = e, g = Ya(gr, n), [b, y] = A.useState(null), w = se(t, (Ve) => y(Ve)), [P, L] = A.useState(null), N = DA(P), j = (N == null ? void 0 : N.width) ?? 0, E = (N == null ? void 0 : N.height) ?? 0, W = r + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(u) ? u : [u], Q = $.length > 0, U = {
6588
+ } = e, g = Ya(gr, n), [b, y] = A.useState(null), w = se(t, (Ve) => y(Ve)), [P, L] = A.useState(null), N = DA(P), j = (N == null ? void 0 : N.width) ?? 0, E = (N == null ? void 0 : N.height) ?? 0, W = r + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(d) ? d : [d], Q = $.length > 0, U = {
6589
6589
  padding: Y,
6590
6590
  boundary: $.filter(MA),
6591
6591
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6602,13 +6602,13 @@ var gr = "PopperContent", [TA, XA] = Ja(gr), Ka = A.forwardRef(
6602
6602
  },
6603
6603
  middleware: [
6604
6604
  wA({ mainAxis: o + E, alignmentAxis: s }),
6605
- d && PA({
6605
+ u && PA({
6606
6606
  mainAxis: !0,
6607
6607
  crossAxis: !1,
6608
6608
  limiter: c === "partial" ? RA() : void 0,
6609
6609
  ...U
6610
6610
  }),
6611
- d && EA({ ...U }),
6611
+ u && EA({ ...U }),
6612
6612
  IA({
6613
6613
  ...U,
6614
6614
  apply: ({ elements: Ve, rects: rt, availableWidth: In, availableHeight: Mt }) => {
@@ -6741,9 +6741,9 @@ var CA = (e) => ({
6741
6741
  options: e,
6742
6742
  fn(t) {
6743
6743
  var g, b, y;
6744
- const { placement: n, rects: r, middlewareData: o } = t, s = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, d = s ? 0 : e.arrowHeight, [u, f] = $a(n), c = { start: "0%", center: "50%", end: "100%" }[f], v = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + i / 2, p = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + d / 2;
6744
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [d, f] = $a(n), c = { start: "0%", center: "50%", end: "100%" }[f], v = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + i / 2, p = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + u / 2;
6745
6745
  let h = "", m = "";
6746
- return u === "bottom" ? (h = s ? c : `${v}px`, m = `${-d}px`) : u === "top" ? (h = s ? c : `${v}px`, m = `${r.floating.height + d}px`) : u === "right" ? (h = `${-d}px`, m = s ? c : `${p}px`) : u === "left" && (h = `${r.floating.width + d}px`, m = s ? c : `${p}px`), { data: { x: h, y: m } };
6746
+ return d === "bottom" ? (h = s ? c : `${v}px`, m = `${-u}px`) : d === "top" ? (h = s ? c : `${v}px`, m = `${r.floating.height + u}px`) : d === "right" ? (h = `${-u}px`, m = s ? c : `${p}px`) : d === "left" && (h = `${r.floating.width + u}px`, m = s ? c : `${p}px`), { data: { x: h, y: m } };
6747
6747
  }
6748
6748
  });
6749
6749
  function $a(e) {
@@ -6782,10 +6782,10 @@ var GA = rs, [bn, Pm] = tt("Tooltip", [
6782
6782
  skipDelayDuration: r = 300,
6783
6783
  disableHoverableContent: o = !1,
6784
6784
  children: a
6785
- } = e, s = A.useRef(!0), i = A.useRef(!1), d = A.useRef(0);
6785
+ } = e, s = A.useRef(!0), i = A.useRef(!1), u = A.useRef(0);
6786
6786
  return A.useEffect(() => {
6787
- const u = d.current;
6788
- return () => window.clearTimeout(u);
6787
+ const d = u.current;
6788
+ return () => window.clearTimeout(d);
6789
6789
  }, []), /* @__PURE__ */ l.jsx(
6790
6790
  FA,
6791
6791
  {
@@ -6793,17 +6793,17 @@ var GA = rs, [bn, Pm] = tt("Tooltip", [
6793
6793
  isOpenDelayedRef: s,
6794
6794
  delayDuration: n,
6795
6795
  onOpen: A.useCallback(() => {
6796
- window.clearTimeout(d.current), s.current = !1;
6796
+ window.clearTimeout(u.current), s.current = !1;
6797
6797
  }, []),
6798
6798
  onClose: A.useCallback(() => {
6799
- window.clearTimeout(d.current), d.current = window.setTimeout(
6799
+ window.clearTimeout(u.current), u.current = window.setTimeout(
6800
6800
  () => s.current = !0,
6801
6801
  r
6802
6802
  );
6803
6803
  }, [r]),
6804
6804
  isPointerInTransitRef: i,
6805
- onPointerInTransitChange: A.useCallback((u) => {
6806
- i.current = u;
6805
+ onPointerInTransitChange: A.useCallback((d) => {
6806
+ i.current = d;
6807
6807
  }, []),
6808
6808
  disableHoverableContent: o,
6809
6809
  children: a
@@ -6820,11 +6820,11 @@ var Lt = "Tooltip", [ZA, xn] = bn(Lt), ss = (e) => {
6820
6820
  onOpenChange: a,
6821
6821
  disableHoverableContent: s,
6822
6822
  delayDuration: i
6823
- } = e, d = yr(Lt, e.__scopeTooltip), u = gn(t), [f, c] = A.useState(null), v = Ce(), p = A.useRef(0), h = s ?? d.disableHoverableContent, m = i ?? d.delayDuration, g = A.useRef(!1), [b, y] = Nt({
6823
+ } = e, u = yr(Lt, e.__scopeTooltip), d = gn(t), [f, c] = A.useState(null), v = Ce(), p = A.useRef(0), h = s ?? u.disableHoverableContent, m = i ?? u.delayDuration, g = A.useRef(!1), [b, y] = Nt({
6824
6824
  prop: r,
6825
6825
  defaultProp: o ?? !1,
6826
6826
  onChange: (j) => {
6827
- j ? (d.onOpen(), document.dispatchEvent(new CustomEvent(_n))) : d.onClose(), a == null || a(j);
6827
+ j ? (u.onOpen(), document.dispatchEvent(new CustomEvent(_n))) : u.onClose(), a == null || a(j);
6828
6828
  },
6829
6829
  caller: Lt
6830
6830
  }), w = A.useMemo(() => b ? g.current ? "delayed-open" : "instant-open" : "closed", [b]), P = A.useCallback(() => {
@@ -6838,7 +6838,7 @@ var Lt = "Tooltip", [ZA, xn] = bn(Lt), ss = (e) => {
6838
6838
  }, [m, y]);
6839
6839
  return A.useEffect(() => () => {
6840
6840
  p.current && (window.clearTimeout(p.current), p.current = 0);
6841
- }, []), /* @__PURE__ */ l.jsx(xr, { ...u, children: /* @__PURE__ */ l.jsx(
6841
+ }, []), /* @__PURE__ */ l.jsx(xr, { ...d, children: /* @__PURE__ */ l.jsx(
6842
6842
  ZA,
6843
6843
  {
6844
6844
  scope: t,
@@ -6848,8 +6848,8 @@ var Lt = "Tooltip", [ZA, xn] = bn(Lt), ss = (e) => {
6848
6848
  trigger: f,
6849
6849
  onTriggerChange: c,
6850
6850
  onTriggerEnter: A.useCallback(() => {
6851
- d.isOpenDelayedRef.current ? N() : P();
6852
- }, [d.isOpenDelayedRef, N, P]),
6851
+ u.isOpenDelayedRef.current ? N() : P();
6852
+ }, [u.isOpenDelayedRef, N, P]),
6853
6853
  onTriggerLeave: A.useCallback(() => {
6854
6854
  h ? L() : (window.clearTimeout(p.current), p.current = 0);
6855
6855
  }, [L, h]),
@@ -6863,14 +6863,14 @@ var Lt = "Tooltip", [ZA, xn] = bn(Lt), ss = (e) => {
6863
6863
  ss.displayName = Lt;
6864
6864
  var $n = "TooltipTrigger", is = A.forwardRef(
6865
6865
  (e, t) => {
6866
- const { __scopeTooltip: n, ...r } = e, o = xn($n, n), a = yr($n, n), s = gn(n), i = A.useRef(null), d = se(t, i, o.onTriggerChange), u = A.useRef(!1), f = A.useRef(!1), c = A.useCallback(() => u.current = !1, []);
6866
+ const { __scopeTooltip: n, ...r } = e, o = xn($n, n), a = yr($n, n), s = gn(n), i = A.useRef(null), u = se(t, i, o.onTriggerChange), d = A.useRef(!1), f = A.useRef(!1), c = A.useCallback(() => d.current = !1, []);
6867
6867
  return A.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ l.jsx(es, { asChild: !0, ...s, children: /* @__PURE__ */ l.jsx(
6868
6868
  re.button,
6869
6869
  {
6870
6870
  "aria-describedby": o.open ? o.contentId : void 0,
6871
6871
  "data-state": o.stateAttribute,
6872
6872
  ...r,
6873
- ref: d,
6873
+ ref: u,
6874
6874
  onPointerMove: G(e.onPointerMove, (v) => {
6875
6875
  v.pointerType !== "touch" && !f.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), f.current = !0);
6876
6876
  }),
@@ -6878,10 +6878,10 @@ var $n = "TooltipTrigger", is = A.forwardRef(
6878
6878
  o.onTriggerLeave(), f.current = !1;
6879
6879
  }),
6880
6880
  onPointerDown: G(e.onPointerDown, () => {
6881
- o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", c, { once: !0 });
6881
+ o.open && o.onClose(), d.current = !0, document.addEventListener("pointerup", c, { once: !0 });
6882
6882
  }),
6883
6883
  onFocus: G(e.onFocus, () => {
6884
- u.current || o.onOpen();
6884
+ d.current || o.onOpen();
6885
6885
  }),
6886
6886
  onBlur: G(e.onBlur, o.onClose),
6887
6887
  onClick: G(e.onClick, o.onClose)
@@ -6898,7 +6898,7 @@ var BA = "TooltipPortal", [Rm, JA] = bn(BA, {
6898
6898
  return /* @__PURE__ */ l.jsx(Ge, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ l.jsx(ls, { side: o, ...a, ref: t }) : /* @__PURE__ */ l.jsx(YA, { side: o, ...a, ref: t }) });
6899
6899
  }
6900
6900
  ), YA = A.forwardRef((e, t) => {
6901
- const n = xn(pt, e.__scopeTooltip), r = yr(pt, e.__scopeTooltip), o = A.useRef(null), a = se(t, o), [s, i] = A.useState(null), { trigger: d, onClose: u } = n, f = o.current, { onPointerInTransitChange: c } = r, v = A.useCallback(() => {
6901
+ const n = xn(pt, e.__scopeTooltip), r = yr(pt, e.__scopeTooltip), o = A.useRef(null), a = se(t, o), [s, i] = A.useState(null), { trigger: u, onClose: d } = n, f = o.current, { onPointerInTransitChange: c } = r, v = A.useCallback(() => {
6902
6902
  i(null), c(!1);
6903
6903
  }, [c]), p = A.useCallback(
6904
6904
  (h, m) => {
@@ -6908,21 +6908,21 @@ var BA = "TooltipPortal", [Rm, JA] = bn(BA, {
6908
6908
  [c]
6909
6909
  );
6910
6910
  return A.useEffect(() => () => v(), [v]), A.useEffect(() => {
6911
- if (d && f) {
6912
- const h = (g) => p(g, f), m = (g) => p(g, d);
6913
- return d.addEventListener("pointerleave", h), f.addEventListener("pointerleave", m), () => {
6914
- d.removeEventListener("pointerleave", h), f.removeEventListener("pointerleave", m);
6911
+ if (u && f) {
6912
+ const h = (g) => p(g, f), m = (g) => p(g, u);
6913
+ return u.addEventListener("pointerleave", h), f.addEventListener("pointerleave", m), () => {
6914
+ u.removeEventListener("pointerleave", h), f.removeEventListener("pointerleave", m);
6915
6915
  };
6916
6916
  }
6917
- }, [d, f, p, v]), A.useEffect(() => {
6917
+ }, [u, f, p, v]), A.useEffect(() => {
6918
6918
  if (s) {
6919
6919
  const h = (m) => {
6920
- const g = m.target, b = { x: m.clientX, y: m.clientY }, y = (d == null ? void 0 : d.contains(g)) || (f == null ? void 0 : f.contains(g)), w = !ef(b, s);
6921
- y ? v() : w && (v(), u());
6920
+ const g = m.target, b = { x: m.clientX, y: m.clientY }, y = (u == null ? void 0 : u.contains(g)) || (f == null ? void 0 : f.contains(g)), w = !ef(b, s);
6921
+ y ? v() : w && (v(), d());
6922
6922
  };
6923
6923
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
6924
6924
  }
6925
- }, [d, f, s, u, v]), /* @__PURE__ */ l.jsx(ls, { ...e, ref: a });
6925
+ }, [u, f, s, d, v]), /* @__PURE__ */ l.jsx(ls, { ...e, ref: a });
6926
6926
  }), [UA, VA] = bn(Lt, { isInside: !1 }), qA = /* @__PURE__ */ Ci("TooltipContent"), ls = A.forwardRef(
6927
6927
  (e, t) => {
6928
6928
  const {
@@ -6932,16 +6932,16 @@ var BA = "TooltipPortal", [Rm, JA] = bn(BA, {
6932
6932
  onEscapeKeyDown: a,
6933
6933
  onPointerDownOutside: s,
6934
6934
  ...i
6935
- } = e, d = xn(pt, n), u = gn(n), { onClose: f } = d;
6935
+ } = e, u = xn(pt, n), d = gn(n), { onClose: f } = u;
6936
6936
  return A.useEffect(() => (document.addEventListener(_n, f), () => document.removeEventListener(_n, f)), [f]), A.useEffect(() => {
6937
- if (d.trigger) {
6937
+ if (u.trigger) {
6938
6938
  const c = (v) => {
6939
6939
  const p = v.target;
6940
- p != null && p.contains(d.trigger) && f();
6940
+ p != null && p.contains(u.trigger) && f();
6941
6941
  };
6942
6942
  return window.addEventListener("scroll", c, { capture: !0 }), () => window.removeEventListener("scroll", c, { capture: !0 });
6943
6943
  }
6944
- }, [d.trigger, f]), /* @__PURE__ */ l.jsx(
6944
+ }, [u.trigger, f]), /* @__PURE__ */ l.jsx(
6945
6945
  un,
6946
6946
  {
6947
6947
  asChild: !0,
@@ -6953,8 +6953,8 @@ var BA = "TooltipPortal", [Rm, JA] = bn(BA, {
6953
6953
  children: /* @__PURE__ */ l.jsxs(
6954
6954
  ts,
6955
6955
  {
6956
- "data-state": d.stateAttribute,
6957
- ...u,
6956
+ "data-state": u.stateAttribute,
6957
+ ...d,
6958
6958
  ...i,
6959
6959
  ref: t,
6960
6960
  style: {
@@ -6967,7 +6967,7 @@ var BA = "TooltipPortal", [Rm, JA] = bn(BA, {
6967
6967
  },
6968
6968
  children: [
6969
6969
  /* @__PURE__ */ l.jsx(qA, { children: r }),
6970
- /* @__PURE__ */ l.jsx(UA, { scope: n, isInside: !0, children: /* @__PURE__ */ l.jsx(GA, { id: d.contentId, role: "tooltip", children: o || r }) })
6970
+ /* @__PURE__ */ l.jsx(UA, { scope: n, isInside: !0, children: /* @__PURE__ */ l.jsx(GA, { id: u.contentId, role: "tooltip", children: o || r }) })
6971
6971
  ]
6972
6972
  }
6973
6973
  )
@@ -7044,8 +7044,8 @@ function ef(e, t) {
7044
7044
  const { x: n, y: r } = e;
7045
7045
  let o = !1;
7046
7046
  for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
7047
- const i = t[a], d = t[s], u = i.x, f = i.y, c = d.x, v = d.y;
7048
- f > r != v > r && n < (c - u) * (r - f) / (v - f) + u && (o = !o);
7047
+ const i = t[a], u = t[s], d = i.x, f = i.y, c = u.x, v = u.y;
7048
+ f > r != v > r && n < (c - d) * (r - f) / (v - f) + d && (o = !o);
7049
7049
  }
7050
7050
  return o;
7051
7051
  }
@@ -7108,13 +7108,13 @@ function ff({
7108
7108
  children: a,
7109
7109
  ...s
7110
7110
  }) {
7111
- const i = td(), [d, u] = A.useState(!1), [f, c] = A.useState(e), v = t ?? f, p = A.useCallback(
7111
+ const i = td(), [u, d] = A.useState(!1), [f, c] = A.useState(e), v = t ?? f, p = A.useCallback(
7112
7112
  (b) => {
7113
7113
  const y = typeof b == "function" ? b(v) : b;
7114
7114
  n ? n(y) : c(y), document.cookie = `${sf}=${y}; path=/; max-age=${cf}`;
7115
7115
  },
7116
7116
  [n, v]
7117
- ), h = A.useCallback(() => i ? u((b) => !b) : p((b) => !b), [i, p, u]);
7117
+ ), h = A.useCallback(() => i ? d((b) => !b) : p((b) => !b), [i, p, d]);
7118
7118
  A.useEffect(() => {
7119
7119
  const b = (y) => {
7120
7120
  y.key === Af && (y.metaKey || y.ctrlKey) && (y.preventDefault(), h());
@@ -7127,11 +7127,11 @@ function ff({
7127
7127
  open: v,
7128
7128
  setOpen: p,
7129
7129
  isMobile: i,
7130
- openMobile: d,
7131
- setOpenMobile: u,
7130
+ openMobile: u,
7131
+ setOpenMobile: d,
7132
7132
  toggleSidebar: h
7133
7133
  }),
7134
- [m, v, p, i, d, u, h]
7134
+ [m, v, p, i, u, d, h]
7135
7135
  );
7136
7136
  return /* @__PURE__ */ l.jsx(ps.Provider, { value: g, children: /* @__PURE__ */ l.jsx(As, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
7137
7137
  "div",
@@ -7159,7 +7159,7 @@ function vf({
7159
7159
  children: o,
7160
7160
  ...a
7161
7161
  }) {
7162
- const { isMobile: s, state: i, openMobile: d, setOpenMobile: u } = yn();
7162
+ const { isMobile: s, state: i, openMobile: u, setOpenMobile: d } = yn();
7163
7163
  return n === "none" ? /* @__PURE__ */ l.jsx(
7164
7164
  "div",
7165
7165
  {
@@ -7171,7 +7171,7 @@ function vf({
7171
7171
  ...a,
7172
7172
  children: o
7173
7173
  }
7174
- ) : s ? /* @__PURE__ */ l.jsx(Iu, { open: d, onOpenChange: u, ...a, children: /* @__PURE__ */ l.jsxs(
7174
+ ) : s ? /* @__PURE__ */ l.jsx(Iu, { open: u, onOpenChange: d, ...a, children: /* @__PURE__ */ l.jsxs(
7175
7175
  Na,
7176
7176
  {
7177
7177
  "data-sidebar": "sidebar",
@@ -7487,7 +7487,7 @@ function Sm({
7487
7487
  className: a,
7488
7488
  ...s
7489
7489
  }) {
7490
- const i = e ? et : "button", { isMobile: d, state: u } = yn(), f = /* @__PURE__ */ l.jsx(
7490
+ const i = e ? et : "button", { isMobile: u, state: d } = yn(), f = /* @__PURE__ */ l.jsx(
7491
7491
  i,
7492
7492
  {
7493
7493
  "data-slot": "sidebar-menu-button",
@@ -7507,7 +7507,7 @@ function Sm({
7507
7507
  {
7508
7508
  side: "right",
7509
7509
  align: "center",
7510
- hidden: u !== "collapsed" || d,
7510
+ hidden: d !== "collapsed" || u,
7511
7511
  ...o
7512
7512
  }
7513
7513
  )
@@ -7662,13 +7662,13 @@ function ms(e) {
7662
7662
  return /* @__PURE__ */ l.jsx(o, { scope: g, itemMap: w, collectionRef: y, children: b });
7663
7663
  };
7664
7664
  s.displayName = t;
7665
- const i = e + "CollectionSlot", d = /* @__PURE__ */ ft(i), u = I.forwardRef(
7665
+ const i = e + "CollectionSlot", u = /* @__PURE__ */ ft(i), d = I.forwardRef(
7666
7666
  (m, g) => {
7667
7667
  const { scope: b, children: y } = m, w = a(i, b), P = se(g, w.collectionRef);
7668
- return /* @__PURE__ */ l.jsx(d, { ref: P, children: y });
7668
+ return /* @__PURE__ */ l.jsx(u, { ref: P, children: y });
7669
7669
  }
7670
7670
  );
7671
- u.displayName = i;
7671
+ d.displayName = i;
7672
7672
  const f = e + "CollectionItemSlot", c = "data-radix-collection-item", v = /* @__PURE__ */ ft(f), p = I.forwardRef(
7673
7673
  (m, g) => {
7674
7674
  const { scope: b, children: y, ...w } = m, P = I.useRef(null), L = se(g, P), N = a(f, b);
@@ -7688,7 +7688,7 @@ function ms(e) {
7688
7688
  }, [g.collectionRef, g.itemMap]);
7689
7689
  }
7690
7690
  return [
7691
- { Provider: s, Slot: u, ItemSlot: p },
7691
+ { Provider: s, Slot: d, ItemSlot: p },
7692
7692
  h,
7693
7693
  r
7694
7694
  ];
@@ -7713,16 +7713,16 @@ var Sf = A.forwardRef((e, t) => {
7713
7713
  dir: a,
7714
7714
  currentTabStopId: s,
7715
7715
  defaultCurrentTabStopId: i,
7716
- onCurrentTabStopIdChange: d,
7717
- onEntryFocus: u,
7716
+ onCurrentTabStopIdChange: u,
7717
+ onEntryFocus: d,
7718
7718
  preventScrollOnEntryFocus: f = !1,
7719
7719
  ...c
7720
7720
  } = e, v = A.useRef(null), p = se(t, v), h = hs(a), [m, g] = Nt({
7721
7721
  prop: s,
7722
7722
  defaultProp: i ?? null,
7723
- onChange: d,
7723
+ onChange: u,
7724
7724
  caller: St
7725
- }), [b, y] = A.useState(!1), w = Se(u), P = bs(n), L = A.useRef(!1), [N, j] = A.useState(0);
7725
+ }), [b, y] = A.useState(!1), w = Se(d), P = bs(n), L = A.useRef(!1), [N, j] = A.useState(0);
7726
7726
  return A.useEffect(() => {
7727
7727
  const E = v.current;
7728
7728
  if (E)
@@ -7786,7 +7786,7 @@ var Sf = A.forwardRef((e, t) => {
7786
7786
  tabStopId: a,
7787
7787
  children: s,
7788
7788
  ...i
7789
- } = e, d = Ce(), u = a || d, f = Df(ys, n), c = f.currentTabStopId === u, v = bs(n), { onFocusableItemAdd: p, onFocusableItemRemove: h, currentTabStopId: m } = f;
7789
+ } = e, u = Ce(), d = a || u, f = Df(ys, n), c = f.currentTabStopId === d, v = bs(n), { onFocusableItemAdd: p, onFocusableItemRemove: h, currentTabStopId: m } = f;
7790
7790
  return A.useEffect(() => {
7791
7791
  if (r)
7792
7792
  return p(), () => h();
@@ -7794,7 +7794,7 @@ var Sf = A.forwardRef((e, t) => {
7794
7794
  er.ItemSlot,
7795
7795
  {
7796
7796
  scope: n,
7797
- id: u,
7797
+ id: d,
7798
7798
  focusable: r,
7799
7799
  active: o,
7800
7800
  children: /* @__PURE__ */ l.jsx(
@@ -7805,9 +7805,9 @@ var Sf = A.forwardRef((e, t) => {
7805
7805
  ...i,
7806
7806
  ref: t,
7807
7807
  onMouseDown: G(e.onMouseDown, (g) => {
7808
- r ? f.onItemFocus(u) : g.preventDefault();
7808
+ r ? f.onItemFocus(d) : g.preventDefault();
7809
7809
  }),
7810
- onFocus: G(e.onFocus, () => f.onItemFocus(u)),
7810
+ onFocus: G(e.onFocus, () => f.onItemFocus(d)),
7811
7811
  onKeyDown: G(e.onKeyDown, (g) => {
7812
7812
  if (g.key === "Tab" && g.shiftKey) {
7813
7813
  f.onItemShiftTab();
@@ -7873,7 +7873,7 @@ var Cf = xs, Of = ws, tr = ["Enter", " "], zf = ["ArrowDown", "PageUp", "Home"],
7873
7873
  hn,
7874
7874
  gs
7875
7875
  ]), Xt = hn(), Is = gs(), [Ls, Ue] = nt(Tt), [Jf, Ht] = nt(Tt), js = (e) => {
7876
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = Xt(t), [d, u] = A.useState(null), f = A.useRef(!1), c = Se(a), v = hs(o);
7876
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = Xt(t), [u, d] = A.useState(null), f = A.useRef(!1), c = Se(a), v = hs(o);
7877
7877
  return A.useEffect(() => {
7878
7878
  const p = () => {
7879
7879
  f.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
@@ -7887,8 +7887,8 @@ var Cf = xs, Of = ws, tr = ["Enter", " "], zf = ["ArrowDown", "PageUp", "Home"],
7887
7887
  scope: t,
7888
7888
  open: n,
7889
7889
  onOpenChange: c,
7890
- content: d,
7891
- onContentChange: u,
7890
+ content: u,
7891
+ onContentChange: d,
7892
7892
  children: /* @__PURE__ */ l.jsx(
7893
7893
  Jf,
7894
7894
  {
@@ -7968,8 +7968,8 @@ var ye = "MenuContent", [Vf, Er] = nt(ye), Ds = A.forwardRef(
7968
7968
  onOpenAutoFocus: a,
7969
7969
  onCloseAutoFocus: s,
7970
7970
  disableOutsidePointerEvents: i,
7971
- onEntryFocus: d,
7972
- onEscapeKeyDown: u,
7971
+ onEntryFocus: u,
7972
+ onEscapeKeyDown: d,
7973
7973
  onPointerDownOutside: f,
7974
7974
  onFocusOutside: c,
7975
7975
  onInteractOutside: v,
@@ -8031,7 +8031,7 @@ var ye = "MenuContent", [Vf, Er] = nt(ye), Ds = A.forwardRef(
8031
8031
  {
8032
8032
  asChild: !0,
8033
8033
  disableOutsidePointerEvents: i,
8034
- onEscapeKeyDown: u,
8034
+ onEscapeKeyDown: d,
8035
8035
  onPointerDownOutside: f,
8036
8036
  onFocusOutside: c,
8037
8037
  onInteractOutside: v,
@@ -8046,7 +8046,7 @@ var ye = "MenuContent", [Vf, Er] = nt(ye), Ds = A.forwardRef(
8046
8046
  loop: r,
8047
8047
  currentTabStopId: L,
8048
8048
  onCurrentTabStopIdChange: N,
8049
- onEntryFocus: G(d, (D) => {
8049
+ onEntryFocus: G(u, (D) => {
8050
8050
  b.isUsingKeyboardRef.current || D.preventDefault();
8051
8051
  }),
8052
8052
  preventScrollOnEntryFocus: !0,
@@ -8113,27 +8113,27 @@ var $f = "MenuLabel", Ss = A.forwardRef(
8113
8113
  Ss.displayName = $f;
8114
8114
  var an = "MenuItem", yo = "menu.itemSelect", wn = A.forwardRef(
8115
8115
  (e, t) => {
8116
- const { disabled: n = !1, onSelect: r, ...o } = e, a = A.useRef(null), s = Ht(an, e.__scopeMenu), i = Er(an, e.__scopeMenu), d = se(t, a), u = A.useRef(!1), f = () => {
8116
+ const { disabled: n = !1, onSelect: r, ...o } = e, a = A.useRef(null), s = Ht(an, e.__scopeMenu), i = Er(an, e.__scopeMenu), u = se(t, a), d = A.useRef(!1), f = () => {
8117
8117
  const c = a.current;
8118
8118
  if (!n && c) {
8119
8119
  const v = new CustomEvent(yo, { bubbles: !0, cancelable: !0 });
8120
- c.addEventListener(yo, (p) => r == null ? void 0 : r(p), { once: !0 }), No(c, v), v.defaultPrevented ? u.current = !1 : s.onClose();
8120
+ c.addEventListener(yo, (p) => r == null ? void 0 : r(p), { once: !0 }), No(c, v), v.defaultPrevented ? d.current = !1 : s.onClose();
8121
8121
  }
8122
8122
  };
8123
8123
  return /* @__PURE__ */ l.jsx(
8124
8124
  Ts,
8125
8125
  {
8126
8126
  ...o,
8127
- ref: d,
8127
+ ref: u,
8128
8128
  disabled: n,
8129
8129
  onClick: G(e.onClick, f),
8130
8130
  onPointerDown: (c) => {
8131
8131
  var v;
8132
- (v = e.onPointerDown) == null || v.call(e, c), u.current = !0;
8132
+ (v = e.onPointerDown) == null || v.call(e, c), d.current = !0;
8133
8133
  },
8134
8134
  onPointerUp: G(e.onPointerUp, (c) => {
8135
8135
  var v;
8136
- u.current || (v = c.currentTarget) == null || v.click();
8136
+ d.current || (v = c.currentTarget) == null || v.click();
8137
8137
  }),
8138
8138
  onKeyDown: G(e.onKeyDown, (c) => {
8139
8139
  const v = i.searchRef.current !== "";
@@ -8146,9 +8146,9 @@ var an = "MenuItem", yo = "menu.itemSelect", wn = A.forwardRef(
8146
8146
  wn.displayName = an;
8147
8147
  var Ts = A.forwardRef(
8148
8148
  (e, t) => {
8149
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, s = Er(an, n), i = Is(n), d = A.useRef(null), u = se(t, d), [f, c] = A.useState(!1), [v, p] = A.useState("");
8149
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, s = Er(an, n), i = Is(n), u = A.useRef(null), d = se(t, u), [f, c] = A.useState(!1), [v, p] = A.useState("");
8150
8150
  return A.useEffect(() => {
8151
- const h = d.current;
8151
+ const h = u.current;
8152
8152
  h && p((h.textContent ?? "").trim());
8153
8153
  }, [a.children]), /* @__PURE__ */ l.jsx(
8154
8154
  jt.ItemSlot,
@@ -8164,7 +8164,7 @@ var Ts = A.forwardRef(
8164
8164
  "aria-disabled": r || void 0,
8165
8165
  "data-disabled": r ? "" : void 0,
8166
8166
  ...a,
8167
- ref: u,
8167
+ ref: d,
8168
8168
  onPointerMove: G(
8169
8169
  e.onPointerMove,
8170
8170
  kt((h) => {
@@ -8284,14 +8284,14 @@ var av = "MenuArrow", Fs = A.forwardRef(
8284
8284
  );
8285
8285
  Fs.displayName = av;
8286
8286
  var kr = "MenuSub", [sv, Zs] = nt(kr), Bs = (e) => {
8287
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ue(kr, t), s = Xt(t), [i, d] = A.useState(null), [u, f] = A.useState(null), c = Se(o);
8287
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ue(kr, t), s = Xt(t), [i, u] = A.useState(null), [d, f] = A.useState(null), c = Se(o);
8288
8288
  return A.useEffect(() => (a.open === !1 && c(!1), () => c(!1)), [a.open, c]), /* @__PURE__ */ l.jsx(xr, { ...s, children: /* @__PURE__ */ l.jsx(
8289
8289
  Ls,
8290
8290
  {
8291
8291
  scope: t,
8292
8292
  open: r,
8293
8293
  onOpenChange: c,
8294
- content: u,
8294
+ content: d,
8295
8295
  onContentChange: f,
8296
8296
  children: /* @__PURE__ */ l.jsx(
8297
8297
  sv,
@@ -8300,7 +8300,7 @@ var kr = "MenuSub", [sv, Zs] = nt(kr), Bs = (e) => {
8300
8300
  contentId: Ce(),
8301
8301
  triggerId: Ce(),
8302
8302
  trigger: i,
8303
- onTriggerChange: d,
8303
+ onTriggerChange: u,
8304
8304
  children: n
8305
8305
  }
8306
8306
  )
@@ -8310,15 +8310,15 @@ var kr = "MenuSub", [sv, Zs] = nt(kr), Bs = (e) => {
8310
8310
  Bs.displayName = kr;
8311
8311
  var Rt = "MenuSubTrigger", Js = A.forwardRef(
8312
8312
  (e, t) => {
8313
- const n = Ue(Rt, e.__scopeMenu), r = Ht(Rt, e.__scopeMenu), o = Zs(Rt, e.__scopeMenu), a = Er(Rt, e.__scopeMenu), s = A.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: d } = a, u = { __scopeMenu: e.__scopeMenu }, f = A.useCallback(() => {
8313
+ const n = Ue(Rt, e.__scopeMenu), r = Ht(Rt, e.__scopeMenu), o = Zs(Rt, e.__scopeMenu), a = Er(Rt, e.__scopeMenu), s = A.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = a, d = { __scopeMenu: e.__scopeMenu }, f = A.useCallback(() => {
8314
8314
  s.current && window.clearTimeout(s.current), s.current = null;
8315
8315
  }, []);
8316
8316
  return A.useEffect(() => f, [f]), A.useEffect(() => {
8317
8317
  const c = i.current;
8318
8318
  return () => {
8319
- window.clearTimeout(c), d(null);
8319
+ window.clearTimeout(c), u(null);
8320
8320
  };
8321
- }, [i, d]), /* @__PURE__ */ l.jsx(Pr, { asChild: !0, ...u, children: /* @__PURE__ */ l.jsx(
8321
+ }, [i, u]), /* @__PURE__ */ l.jsx(Pr, { asChild: !0, ...d, children: /* @__PURE__ */ l.jsx(
8322
8322
  Ts,
8323
8323
  {
8324
8324
  id: o.triggerId,
@@ -8381,14 +8381,14 @@ var Rt = "MenuSubTrigger", Js = A.forwardRef(
8381
8381
  Js.displayName = Rt;
8382
8382
  var Ys = "MenuSubContent", Us = A.forwardRef(
8383
8383
  (e, t) => {
8384
- const n = ks(ye, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ue(ye, e.__scopeMenu), s = Ht(ye, e.__scopeMenu), i = Zs(Ys, e.__scopeMenu), d = A.useRef(null), u = se(t, d);
8384
+ const n = ks(ye, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ue(ye, e.__scopeMenu), s = Ht(ye, e.__scopeMenu), i = Zs(Ys, e.__scopeMenu), u = A.useRef(null), d = se(t, u);
8385
8385
  return /* @__PURE__ */ l.jsx(jt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(Ge, { present: r || a.open, children: /* @__PURE__ */ l.jsx(jt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(
8386
8386
  Ir,
8387
8387
  {
8388
8388
  id: i.contentId,
8389
8389
  "aria-labelledby": i.triggerId,
8390
8390
  ...o,
8391
- ref: u,
8391
+ ref: d,
8392
8392
  align: "start",
8393
8393
  side: s.dir === "rtl" ? "left" : "right",
8394
8394
  disableOutsidePointerEvents: !1,
@@ -8396,7 +8396,7 @@ var Ys = "MenuSubContent", Us = A.forwardRef(
8396
8396
  trapFocus: !1,
8397
8397
  onOpenAutoFocus: (f) => {
8398
8398
  var c;
8399
- s.isUsingKeyboardRef.current && ((c = d.current) == null || c.focus()), f.preventDefault();
8399
+ s.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
8400
8400
  },
8401
8401
  onCloseAutoFocus: (f) => f.preventDefault(),
8402
8402
  onFocusOutside: G(e.onFocusOutside, (f) => {
@@ -8433,20 +8433,20 @@ function cv(e, t) {
8433
8433
  return e.map((n, r) => e[(t + r) % e.length]);
8434
8434
  }
8435
8435
  function lv(e, t, n) {
8436
- const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
8436
+ const o = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
8437
8437
  let s = cv(e, Math.max(a, 0));
8438
- o.length === 1 && (s = s.filter((u) => u !== n));
8439
- const d = s.find(
8440
- (u) => u.toLowerCase().startsWith(o.toLowerCase())
8438
+ o.length === 1 && (s = s.filter((d) => d !== n));
8439
+ const u = s.find(
8440
+ (d) => d.toLowerCase().startsWith(o.toLowerCase())
8441
8441
  );
8442
- return d !== n ? d : void 0;
8442
+ return u !== n ? u : void 0;
8443
8443
  }
8444
8444
  function dv(e, t) {
8445
8445
  const { x: n, y: r } = e;
8446
8446
  let o = !1;
8447
8447
  for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
8448
- const i = t[a], d = t[s], u = i.x, f = i.y, c = d.x, v = d.y;
8449
- f > r != v > r && n < (c - u) * (r - f) / (v - f) + u && (o = !o);
8448
+ const i = t[a], u = t[s], d = i.x, f = i.y, c = u.x, v = u.y;
8449
+ f > r != v > r && n < (c - d) * (r - f) / (v - f) + d && (o = !o);
8450
8450
  }
8451
8451
  return o;
8452
8452
  }
@@ -8470,7 +8470,7 @@ var Av = js, fv = Pr, vv = Ns, pv = Ds, mv = Lr, hv = Ss, bv = wn, gv = Xs, xv =
8470
8470
  defaultOpen: a,
8471
8471
  onOpenChange: s,
8472
8472
  modal: i = !0
8473
- } = e, d = de(t), u = A.useRef(null), [f, c] = Nt({
8473
+ } = e, u = de(t), d = A.useRef(null), [f, c] = Nt({
8474
8474
  prop: o,
8475
8475
  defaultProp: a ?? !1,
8476
8476
  onChange: s,
@@ -8481,13 +8481,13 @@ var Av = js, fv = Pr, vv = Ns, pv = Ds, mv = Lr, hv = Ss, bv = wn, gv = Xs, xv =
8481
8481
  {
8482
8482
  scope: t,
8483
8483
  triggerId: Ce(),
8484
- triggerRef: u,
8484
+ triggerRef: d,
8485
8485
  contentId: Ce(),
8486
8486
  open: f,
8487
8487
  onOpenChange: c,
8488
8488
  onOpenToggle: A.useCallback(() => c((v) => !v), [c]),
8489
8489
  modal: i,
8490
- children: /* @__PURE__ */ l.jsx(Av, { ...d, open: f, onOpenChange: c, dir: r, modal: i, children: n })
8490
+ children: /* @__PURE__ */ l.jsx(Av, { ...u, open: f, onOpenChange: c, dir: r, modal: i, children: n })
8491
8491
  }
8492
8492
  );
8493
8493
  };
@@ -8536,11 +8536,11 @@ var ei = "DropdownMenuContent", ti = A.forwardRef(
8536
8536
  ...r,
8537
8537
  ref: t,
8538
8538
  onCloseAutoFocus: G(e.onCloseAutoFocus, (i) => {
8539
- var d;
8540
- s.current || (d = o.triggerRef.current) == null || d.focus(), s.current = !1, i.preventDefault();
8539
+ var u;
8540
+ s.current || (u = o.triggerRef.current) == null || u.focus(), s.current = !1, i.preventDefault();
8541
8541
  }),
8542
8542
  onInteractOutside: G(e.onInteractOutside, (i) => {
8543
- const d = i.detail.originalEvent, u = d.button === 0 && d.ctrlKey === !0, f = d.button === 2 || u;
8543
+ const u = i.detail.originalEvent, d = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || d;
8544
8544
  (!o.modal || f) && (s.current = !0);
8545
8545
  }),
8546
8546
  style: {
@@ -8610,13 +8610,13 @@ var zv = "DropdownMenuArrow", Gv = A.forwardRef(
8610
8610
  );
8611
8611
  Gv.displayName = zv;
8612
8612
  var Wv = (e) => {
8613
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, s = de(t), [i, d] = Nt({
8613
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, s = de(t), [i, u] = Nt({
8614
8614
  prop: r,
8615
8615
  defaultProp: a ?? !1,
8616
8616
  onChange: o,
8617
8617
  caller: "DropdownMenuSub"
8618
8618
  });
8619
- return /* @__PURE__ */ l.jsx(Ev, { ...s, open: i, onOpenChange: d, children: n });
8619
+ return /* @__PURE__ */ l.jsx(Ev, { ...s, open: i, onOpenChange: u, children: n });
8620
8620
  }, Fv = "DropdownMenuSubTrigger", di = A.forwardRef((e, t) => {
8621
8621
  const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
8622
8622
  return /* @__PURE__ */ l.jsx(Iv, { ...o, ...r, ref: t });
@@ -9039,9 +9039,9 @@ function Ap({
9039
9039
  className: s,
9040
9040
  disabled: i = !1
9041
9041
  }) {
9042
- const [d, u] = A.useState(r);
9042
+ const [u, d] = A.useState(r);
9043
9043
  A.useEffect(() => {
9044
- a && u(!0);
9044
+ a && d(!0);
9045
9045
  }, [a]);
9046
9046
  const f = !i && t;
9047
9047
  return /* @__PURE__ */ l.jsx(xf, { className: s, children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
@@ -9080,11 +9080,11 @@ function Ap({
9080
9080
  i ? "cursor-default opacity-50" : "hover:bg-gray-100 hover:text-black"
9081
9081
  ),
9082
9082
  onClick: (c) => {
9083
- c.preventDefault(), c.stopPropagation(), i || u(!d);
9083
+ c.preventDefault(), c.stopPropagation(), i || d(!u);
9084
9084
  },
9085
9085
  disabled: i,
9086
- "aria-label": d ? "Collapse section" : "Expand section",
9087
- children: d ? /* @__PURE__ */ l.jsx(Qc, { className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(Yo, { className: "h-4 w-4" })
9086
+ "aria-label": u ? "Collapse section" : "Expand section",
9087
+ children: u ? /* @__PURE__ */ l.jsx(Qc, { className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(Yo, { className: "h-4 w-4" })
9088
9088
  }
9089
9089
  )
9090
9090
  ] }),
@@ -9093,7 +9093,7 @@ function Ap({
9093
9093
  {
9094
9094
  className: M(
9095
9095
  "transition-all",
9096
- d && !i ? "overflow-y-auto max-h-full" : "overflow-hidden max-h-0"
9096
+ u && !i ? "overflow-y-auto max-h-full" : "overflow-hidden max-h-0"
9097
9097
  ),
9098
9098
  children: n
9099
9099
  }
@@ -9101,15 +9101,15 @@ function Ap({
9101
9101
  ] }) });
9102
9102
  }
9103
9103
  var fp = (e, t, n, r, o, a, s, i) => {
9104
- let d = document.documentElement, u = ["light", "dark"];
9104
+ let u = document.documentElement, d = ["light", "dark"];
9105
9105
  function f(p) {
9106
9106
  (Array.isArray(e) ? e : [e]).forEach((h) => {
9107
9107
  let m = h === "class", g = m && a ? o.map((b) => a[b] || b) : o;
9108
- m ? (d.classList.remove(...g), d.classList.add(a && a[p] ? a[p] : p)) : d.setAttribute(h, p);
9108
+ m ? (u.classList.remove(...g), u.classList.add(a && a[p] ? a[p] : p)) : u.setAttribute(h, p);
9109
9109
  }), c(p);
9110
9110
  }
9111
9111
  function c(p) {
9112
- i && u.includes(p) && (d.style.colorScheme = p);
9112
+ i && d.includes(p) && (u.style.colorScheme = p);
9113
9113
  }
9114
9114
  function v() {
9115
9115
  return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -9125,9 +9125,9 @@ var fp = (e, t, n, r, o, a, s, i) => {
9125
9125
  var e;
9126
9126
  return (e = A.useContext(vp)) != null ? e : pp;
9127
9127
  };
9128
- A.memo(({ forcedTheme: e, storageKey: t, attribute: n, enableSystem: r, enableColorScheme: o, defaultTheme: a, value: s, themes: i, nonce: d, scriptProps: u }) => {
9128
+ A.memo(({ forcedTheme: e, storageKey: t, attribute: n, enableSystem: r, enableColorScheme: o, defaultTheme: a, value: s, themes: i, nonce: u, scriptProps: d }) => {
9129
9129
  let f = JSON.stringify([n, t, a, e, i, s, r, o]).slice(1, -1);
9130
- return A.createElement("script", { ...u, suppressHydrationWarning: !0, nonce: typeof window > "u" ? d : "", dangerouslySetInnerHTML: { __html: `(${fp.toString()})(${f})` } });
9130
+ return A.createElement("script", { ...d, suppressHydrationWarning: !0, nonce: typeof window > "u" ? u : "", dangerouslySetInnerHTML: { __html: `(${fp.toString()})(${f})` } });
9131
9131
  });
9132
9132
  function hp(e) {
9133
9133
  if (typeof document > "u") return;
@@ -9242,19 +9242,19 @@ class Lp {
9242
9242
  ];
9243
9243
  }, this.create = (t) => {
9244
9244
  var n;
9245
- const { message: r, ...o } = t, a = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id : nr++, s = this.toasts.find((d) => d.id === a), i = t.dismissible === void 0 ? !0 : t.dismissible;
9246
- return this.dismissedToasts.has(a) && this.dismissedToasts.delete(a), s ? this.toasts = this.toasts.map((d) => d.id === a ? (this.publish({
9247
- ...d,
9245
+ const { message: r, ...o } = t, a = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id : nr++, s = this.toasts.find((u) => u.id === a), i = t.dismissible === void 0 ? !0 : t.dismissible;
9246
+ return this.dismissedToasts.has(a) && this.dismissedToasts.delete(a), s ? this.toasts = this.toasts.map((u) => u.id === a ? (this.publish({
9247
+ ...u,
9248
9248
  ...t,
9249
9249
  id: a,
9250
9250
  title: r
9251
9251
  }), {
9252
- ...d,
9252
+ ...u,
9253
9253
  ...t,
9254
9254
  id: a,
9255
9255
  dismissible: i,
9256
9256
  title: r
9257
- }) : d) : this.addToast({
9257
+ }) : u) : this.addToast({
9258
9258
  title: r,
9259
9259
  ...o,
9260
9260
  dismissible: i,
@@ -9304,19 +9304,19 @@ class Lp {
9304
9304
  }));
9305
9305
  const o = Promise.resolve(t instanceof Function ? t() : t);
9306
9306
  let a = r !== void 0, s;
9307
- const i = o.then(async (u) => {
9307
+ const i = o.then(async (d) => {
9308
9308
  if (s = [
9309
9309
  "resolve",
9310
- u
9311
- ], I.isValidElement(u))
9310
+ d
9311
+ ], I.isValidElement(d))
9312
9312
  a = !1, this.create({
9313
9313
  id: r,
9314
9314
  type: "default",
9315
- message: u
9315
+ message: d
9316
9316
  });
9317
- else if (kp(u) && !u.ok) {
9317
+ else if (kp(d) && !d.ok) {
9318
9318
  a = !1;
9319
- const c = typeof n.error == "function" ? await n.error(`HTTP error! status: ${u.status}`) : n.error, v = typeof n.description == "function" ? await n.description(`HTTP error! status: ${u.status}`) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9319
+ const c = typeof n.error == "function" ? await n.error(`HTTP error! status: ${d.status}`) : n.error, v = typeof n.description == "function" ? await n.description(`HTTP error! status: ${d.status}`) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9320
9320
  message: c
9321
9321
  };
9322
9322
  this.create({
@@ -9325,9 +9325,9 @@ class Lp {
9325
9325
  description: v,
9326
9326
  ...h
9327
9327
  });
9328
- } else if (u instanceof Error) {
9328
+ } else if (d instanceof Error) {
9329
9329
  a = !1;
9330
- const c = typeof n.error == "function" ? await n.error(u) : n.error, v = typeof n.description == "function" ? await n.description(u) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9330
+ const c = typeof n.error == "function" ? await n.error(d) : n.error, v = typeof n.description == "function" ? await n.description(d) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9331
9331
  message: c
9332
9332
  };
9333
9333
  this.create({
@@ -9338,7 +9338,7 @@ class Lp {
9338
9338
  });
9339
9339
  } else if (n.success !== void 0) {
9340
9340
  a = !1;
9341
- const c = typeof n.success == "function" ? await n.success(u) : n.success, v = typeof n.description == "function" ? await n.description(u) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9341
+ const c = typeof n.success == "function" ? await n.success(d) : n.success, v = typeof n.description == "function" ? await n.description(d) : n.description, h = typeof c == "object" && !I.isValidElement(c) ? c : {
9342
9342
  message: c
9343
9343
  };
9344
9344
  this.create({
@@ -9348,13 +9348,13 @@ class Lp {
9348
9348
  ...h
9349
9349
  });
9350
9350
  }
9351
- }).catch(async (u) => {
9351
+ }).catch(async (d) => {
9352
9352
  if (s = [
9353
9353
  "reject",
9354
- u
9354
+ d
9355
9355
  ], n.error !== void 0) {
9356
9356
  a = !1;
9357
- const f = typeof n.error == "function" ? await n.error(u) : n.error, c = typeof n.description == "function" ? await n.description(u) : n.description, p = typeof f == "object" && !I.isValidElement(f) ? f : {
9357
+ const f = typeof n.error == "function" ? await n.error(d) : n.error, c = typeof n.description == "function" ? await n.description(d) : n.description, p = typeof f == "object" && !I.isValidElement(f) ? f : {
9358
9358
  message: f
9359
9359
  };
9360
9360
  this.create({
@@ -9366,11 +9366,11 @@ class Lp {
9366
9366
  }
9367
9367
  }).finally(() => {
9368
9368
  a && (this.dismiss(r), r = void 0), n.finally == null || n.finally.call(n);
9369
- }), d = () => new Promise((u, f) => i.then(() => s[0] === "reject" ? f(s[1]) : u(s[1])).catch(f));
9369
+ }), u = () => new Promise((d, f) => i.then(() => s[0] === "reject" ? f(s[1]) : d(s[1])).catch(f));
9370
9370
  return typeof r != "string" && typeof r != "number" ? {
9371
- unwrap: d
9371
+ unwrap: u
9372
9372
  } : Object.assign(r, {
9373
- unwrap: d
9373
+ unwrap: u
9374
9374
  });
9375
9375
  }, this.custom = (t, n) => {
9376
9376
  const r = (n == null ? void 0 : n.id) || nr++;
@@ -9416,7 +9416,7 @@ function Gp(e) {
9416
9416
  return t && r.push(t), n && r.push(n), r;
9417
9417
  }
9418
9418
  const Wp = (e) => {
9419
- var t, n, r, o, a, s, i, d, u;
9419
+ var t, n, r, o, a, s, i, u, d;
9420
9420
  const { invert: f, toast: c, unstyled: v, interacting: p, setHeights: h, visibleToasts: m, heights: g, index: b, toasts: y, expanded: w, removeToast: P, defaultRichColors: L, closeButton: N, style: j, cancelButtonStyle: E, actionButtonStyle: W, className: Y = "", descriptionClassName: $ = "", duration: Q, position: U, gap: V, expandByDefault: _, classNames: S, icons: C, closeButtonAriaLabel: R = "Close toast" } = e, [D, x] = I.useState(null), [T, F] = I.useState(null), [k, O] = I.useState(!1), [Z, te] = I.useState(!1), [q, z] = I.useState(!1), [ee, oe] = I.useState(!1), [ve, ue] = I.useState(!1), [Ve, rt] = I.useState(0), [In, Mt] = I.useState(0), qe = I.useRef(c.duration || Q || Po), Ct = I.useRef(null), Ae = I.useRef(null), mi = b === 0, hi = b + 1 <= m, pe = c.type, ot = c.dismissible !== !1, bi = c.className || "", gi = c.descriptionClassName || "", Ot = I.useMemo(() => g.findIndex((B) => B.toastId === c.id) || 0, [
9421
9421
  g,
9422
9422
  c.id
@@ -9650,7 +9650,7 @@ const Wp = (e) => {
9650
9650
  onClick: (B) => {
9651
9651
  Kt(c.cancel) && ot && (c.cancel.onClick == null || c.cancel.onClick.call(c.cancel, B), We());
9652
9652
  },
9653
- className: je(S == null ? void 0 : S.cancelButton, c == null || (d = c.classNames) == null ? void 0 : d.cancelButton)
9653
+ className: je(S == null ? void 0 : S.cancelButton, c == null || (u = c.classNames) == null ? void 0 : u.cancelButton)
9654
9654
  }, c.cancel.label) : null, /* @__PURE__ */ I.isValidElement(c.action) ? c.action : c.action && Kt(c.action) ? /* @__PURE__ */ I.createElement("button", {
9655
9655
  "data-button": !0,
9656
9656
  "data-action": !0,
@@ -9658,7 +9658,7 @@ const Wp = (e) => {
9658
9658
  onClick: (B) => {
9659
9659
  Kt(c.action) && (c.action.onClick == null || c.action.onClick.call(c.action, B), !B.defaultPrevented && We());
9660
9660
  },
9661
- className: je(S == null ? void 0 : S.actionButton, c == null || (u = c.classNames) == null ? void 0 : u.actionButton)
9661
+ className: je(S == null ? void 0 : S.actionButton, c == null || (d = c.classNames) == null ? void 0 : d.actionButton)
9662
9662
  }, c.action.label) : null);
9663
9663
  };
9664
9664
  function Ro() {
@@ -9673,31 +9673,31 @@ function Fp(e, t) {
9673
9673
  t
9674
9674
  ].forEach((r, o) => {
9675
9675
  const a = o === 1, s = a ? "--mobile-offset" : "--offset", i = a ? Hp : Xp;
9676
- function d(u) {
9676
+ function u(d) {
9677
9677
  [
9678
9678
  "top",
9679
9679
  "right",
9680
9680
  "bottom",
9681
9681
  "left"
9682
9682
  ].forEach((f) => {
9683
- n[`${s}-${f}`] = typeof u == "number" ? `${u}px` : u;
9683
+ n[`${s}-${f}`] = typeof d == "number" ? `${d}px` : d;
9684
9684
  });
9685
9685
  }
9686
- typeof r == "number" || typeof r == "string" ? d(r) : typeof r == "object" ? [
9686
+ typeof r == "number" || typeof r == "string" ? u(r) : typeof r == "object" ? [
9687
9687
  "top",
9688
9688
  "right",
9689
9689
  "bottom",
9690
9690
  "left"
9691
- ].forEach((u) => {
9692
- r[u] === void 0 ? n[`${s}-${u}`] = i : n[`${s}-${u}`] = typeof r[u] == "number" ? `${r[u]}px` : r[u];
9693
- }) : d(i);
9691
+ ].forEach((d) => {
9692
+ r[d] === void 0 ? n[`${s}-${d}`] = i : n[`${s}-${d}`] = typeof r[d] == "number" ? `${r[d]}px` : r[d];
9693
+ }) : u(i);
9694
9694
  }), n;
9695
9695
  }
9696
9696
  const Zp = /* @__PURE__ */ I.forwardRef(function(t, n) {
9697
9697
  const { id: r, invert: o, position: a = "bottom-right", hotkey: s = [
9698
9698
  "altKey",
9699
9699
  "KeyT"
9700
- ], expand: i, closeButton: d, className: u, offset: f, mobileOffset: c, theme: v = "light", richColors: p, duration: h, style: m, visibleToasts: g = Tp, toastOptions: b, dir: y = Ro(), gap: w = Cp, icons: P, containerAriaLabel: L = "Notifications" } = t, [N, j] = I.useState([]), E = I.useMemo(() => r ? N.filter((k) => k.toasterId === r) : N.filter((k) => !k.toasterId), [
9700
+ ], expand: i, closeButton: u, className: d, offset: f, mobileOffset: c, theme: v = "light", richColors: p, duration: h, style: m, visibleToasts: g = Tp, toastOptions: b, dir: y = Ro(), gap: w = Cp, icons: P, containerAriaLabel: L = "Notifications" } = t, [N, j] = I.useState([]), E = I.useMemo(() => r ? N.filter((k) => k.toasterId === r) : N.filter((k) => !k.toasterId), [
9701
9701
  N,
9702
9702
  r
9703
9703
  ]), W = I.useMemo(() => Array.from(new Set([
@@ -9805,7 +9805,7 @@ const Zp = /* @__PURE__ */ I.forwardRef(function(t, n) {
9805
9805
  dir: y === "auto" ? Ro() : y,
9806
9806
  tabIndex: -1,
9807
9807
  ref: R,
9808
- className: u,
9808
+ className: d,
9809
9809
  "data-sonner-toaster": !0,
9810
9810
  "data-sonner-theme": S,
9811
9811
  "data-y-position": te,
@@ -9848,7 +9848,7 @@ const Zp = /* @__PURE__ */ I.forwardRef(function(t, n) {
9848
9848
  descriptionClassName: b == null ? void 0 : b.descriptionClassName,
9849
9849
  invert: o,
9850
9850
  visibleToasts: g,
9851
- closeButton: (ve = b == null ? void 0 : b.closeButton) != null ? ve : d,
9851
+ closeButton: (ve = b == null ? void 0 : b.closeButton) != null ? ve : u,
9852
9852
  interacting: V,
9853
9853
  position: k,
9854
9854
  style: b == null ? void 0 : b.style,
@@ -9950,6 +9950,7 @@ const vi = Li(
9950
9950
  paid: e.paid,
9951
9951
  web: e.web,
9952
9952
  priceMonster: e.priceMonster,
9953
+ management: e.management,
9953
9954
  se_company_id: e.se_company_id
9954
9955
  };
9955
9956
  };
@@ -9965,28 +9966,29 @@ function Qm({
9965
9966
  paid: !1,
9966
9967
  web: !1,
9967
9968
  priceMonster: !1,
9969
+ management: !1,
9968
9970
  se_company_id: null
9969
9971
  }
9970
- ), [a, s] = Re(!n), [i, d] = Re(null), u = async () => {
9972
+ ), [a, s] = Re(!n), [i, u] = Re(null), d = async () => {
9971
9973
  try {
9972
- s(!0), d(null);
9974
+ s(!0), u(null);
9973
9975
  const f = await fetch(t);
9974
9976
  if (!f.ok)
9975
9977
  throw new Error(`Failed to fetch permissions: ${f.statusText}`);
9976
9978
  const c = await f.json();
9977
9979
  o(c);
9978
9980
  } catch (f) {
9979
- console.error("Error fetching product access:", f), d(f instanceof Error ? f : new Error("Unknown error"));
9981
+ console.error("Error fetching product access:", f), u(f instanceof Error ? f : new Error("Unknown error"));
9980
9982
  } finally {
9981
9983
  s(!1);
9982
9984
  }
9983
9985
  };
9984
9986
  return cn(() => {
9985
- n || u();
9987
+ n || d();
9986
9988
  }, [n]), /* @__PURE__ */ l.jsx(
9987
9989
  vi.Provider,
9988
9990
  {
9989
- value: { permissions: r, loading: a, error: i, fetchPermissions: u },
9991
+ value: { permissions: r, loading: a, error: i, fetchPermissions: d },
9990
9992
  children: e
9991
9993
  }
9992
9994
  );
@@ -9997,20 +9999,20 @@ function qp(e) {
9997
9999
  (async () => {
9998
10000
  try {
9999
10001
  o(!0), s(null);
10000
- const d = process.env.APP_ENV === "local" ? "https://dev.cloud.golocal.com/api/navigation-config" : "/api/navigation-config", u = await fetch(d, {
10002
+ const u = process.env.APP_ENV === "local" ? "https://dev.cloud.golocal.com/api/navigation-config" : "/api/navigation-config", d = await fetch(u, {
10001
10003
  cache: "no-store",
10002
10004
  mode: "cors",
10003
10005
  headers: {
10004
10006
  "Content-Type": "application/json"
10005
10007
  }
10006
10008
  });
10007
- if (!u.ok)
10008
- throw new Error(`Failed to fetch navigation config: ${u.status}`);
10009
- const f = await u.json();
10009
+ if (!d.ok)
10010
+ throw new Error(`Failed to fetch navigation config: ${d.status}`);
10011
+ const f = await d.json();
10010
10012
  n(f);
10011
- } catch (d) {
10012
- const u = d instanceof Error ? d.message : "Failed to fetch navigation config";
10013
- s(u), e && n(e);
10013
+ } catch (u) {
10014
+ const d = u instanceof Error ? u.message : "Failed to fetch navigation config";
10015
+ s(d), e && n(e);
10014
10016
  } finally {
10015
10017
  o(!1);
10016
10018
  }
@@ -10137,13 +10139,13 @@ function Kp({ ...e }) {
10137
10139
  a.key === "essentialInsights" && (i = a.items.filter((f) => s ? f.permissions && f.permissions !== void 0 ? f.permissions.some(
10138
10140
  (c) => n[c]
10139
10141
  ) : !0 : !1));
10140
- const d = s && (t(a.url) || i.some((f) => t(f.url))), u = /* @__PURE__ */ l.jsx(
10142
+ const u = s && (t(a.url) || i.some((f) => t(f.url))), d = /* @__PURE__ */ l.jsx(
10141
10143
  Ap,
10142
10144
  {
10143
10145
  url: s ? a.url : void 0,
10144
10146
  title: a.title,
10145
10147
  icon: Wn(a.icon, "h-4 w-4"),
10146
- isActive: !!d,
10148
+ isActive: !!u,
10147
10149
  disabled: !s,
10148
10150
  className: M(!s && "opacity-50"),
10149
10151
  children: s && /* @__PURE__ */ l.jsx(yf, { children: /* @__PURE__ */ l.jsx(Pf, { children: i.map((f) => {
@@ -10167,9 +10169,9 @@ function Kp({ ...e }) {
10167
10169
  a.title
10168
10170
  );
10169
10171
  return a.tooltip && !s ? /* @__PURE__ */ l.jsxs(fs, { children: [
10170
- /* @__PURE__ */ l.jsx(vs, { asChild: !0, children: /* @__PURE__ */ l.jsx("div", { children: u }) }),
10172
+ /* @__PURE__ */ l.jsx(vs, { asChild: !0, children: /* @__PURE__ */ l.jsx("div", { children: d }) }),
10171
10173
  /* @__PURE__ */ l.jsx(wr, { side: "top", align: "center", children: a.tooltip })
10172
- ] }, a.title) : u;
10174
+ ] }, a.title) : d;
10173
10175
  }) })
10174
10176
  ] }),
10175
10177
  /* @__PURE__ */ l.jsx(mf, {})
@@ -10433,7 +10435,7 @@ function um({
10433
10435
  onSubmit: n,
10434
10436
  isLoading: r = !1
10435
10437
  }) {
10436
- const o = om(e), [a, s] = Re({}), i = Tr[e], d = i.icon, u = (v, p) => {
10438
+ const o = om(e), [a, s] = Re({}), i = Tr[e], u = i.icon, d = (v, p) => {
10437
10439
  s((h) => ({ ...h, [v]: p }));
10438
10440
  }, f = (v) => {
10439
10441
  v.preventDefault();
@@ -10461,11 +10463,11 @@ function um({
10461
10463
  /* @__PURE__ */ l.jsx("div", { className: `p-2 rounded-full ${i.bgColor}`, children: i.isImage ? /* @__PURE__ */ l.jsx(
10462
10464
  "img",
10463
10465
  {
10464
- src: d,
10466
+ src: u,
10465
10467
  alt: `${i.name} icon`,
10466
10468
  className: "w-6 h-6 object-contain"
10467
10469
  }
10468
- ) : /* @__PURE__ */ l.jsx(d, { className: `w-6 h-6 ${i.color}` }) }),
10470
+ ) : /* @__PURE__ */ l.jsx(u, { className: `w-6 h-6 ${i.color}` }) }),
10469
10471
  /* @__PURE__ */ l.jsxs("h1", { className: "text-2xl font-bold text-gray-900", children: [
10470
10472
  "Connect to ",
10471
10473
  i.name
@@ -10499,7 +10501,7 @@ function um({
10499
10501
  type: o.connectionNameField.type,
10500
10502
  id: o.connectionNameField.name,
10501
10503
  value: a[o.connectionNameField.name] || "",
10502
- onChange: (v) => u(
10504
+ onChange: (v) => d(
10503
10505
  o.connectionNameField.name,
10504
10506
  v.target.value
10505
10507
  ),
@@ -10529,7 +10531,7 @@ function um({
10529
10531
  type: v.type,
10530
10532
  id: v.name,
10531
10533
  value: a[v.name] || "",
10532
- onChange: (p) => u(v.name, p.target.value),
10534
+ onChange: (p) => d(v.name, p.target.value),
10533
10535
  className: "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
10534
10536
  placeholder: v.placeholder,
10535
10537
  required: v.required
@@ -10571,7 +10573,7 @@ const _m = ({
10571
10573
  isLoading: t
10572
10574
  }
10573
10575
  ) : /* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: Object.entries(Tr).sort(([, s], [, i]) => s.name.localeCompare(i.name)).map(([s, i]) => {
10574
- const d = i.icon;
10576
+ const u = i.icon;
10575
10577
  return /* @__PURE__ */ l.jsx(
10576
10578
  Rn,
10577
10579
  {
@@ -10585,11 +10587,11 @@ const _m = ({
10585
10587
  children: i.isImage ? /* @__PURE__ */ l.jsx(
10586
10588
  "img",
10587
10589
  {
10588
- src: d,
10590
+ src: u,
10589
10591
  alt: `${i.name} icon`,
10590
10592
  className: "w-8 h-8 object-contain"
10591
10593
  }
10592
- ) : /* @__PURE__ */ l.jsx(d, { className: `w-8 h-8 ${i.color}` })
10594
+ ) : /* @__PURE__ */ l.jsx(u, { className: `w-8 h-8 ${i.color}` })
10593
10595
  }
10594
10596
  ),
10595
10597
  /* @__PURE__ */ l.jsx(Dr, { className: "text-xl", children: i.name })
@@ -10608,7 +10610,7 @@ const _m = ({
10608
10610
  statusChangeLoadingStates: s = {},
10609
10611
  refreshResultStates: i = {}
10610
10612
  }) => {
10611
- const d = Tr[e.software], u = d.icon, f = a[e.provider.id], c = s[e.provider.id], v = i[e.provider.id], p = (y) => {
10613
+ const u = Tr[e.software], d = u.icon, f = a[e.provider.id], c = s[e.provider.id], v = i[e.provider.id], p = (y) => {
10612
10614
  switch (y) {
10613
10615
  case he.ACTIVE:
10614
10616
  return "bg-green-500";
@@ -10646,15 +10648,15 @@ const _m = ({
10646
10648
  /* @__PURE__ */ l.jsx(
10647
10649
  "div",
10648
10650
  {
10649
- className: `w-16 h-16 rounded-full ${d.bgColor} mx-auto flex items-center justify-center mb-4`,
10650
- children: d.isImage ? /* @__PURE__ */ l.jsx(
10651
+ className: `w-16 h-16 rounded-full ${u.bgColor} mx-auto flex items-center justify-center mb-4`,
10652
+ children: u.isImage ? /* @__PURE__ */ l.jsx(
10651
10653
  "img",
10652
10654
  {
10653
- src: u,
10654
- alt: `${d.name} icon`,
10655
+ src: d,
10656
+ alt: `${u.name} icon`,
10655
10657
  className: "w-8 h-8 object-contain"
10656
10658
  }
10657
- ) : /* @__PURE__ */ l.jsx(u, { className: `w-8 h-8 ${d.color}` })
10659
+ ) : /* @__PURE__ */ l.jsx(d, { className: `w-8 h-8 ${u.color}` })
10658
10660
  }
10659
10661
  ),
10660
10662
  /* @__PURE__ */ l.jsx(
@@ -10666,7 +10668,7 @@ const _m = ({
10666
10668
  )
10667
10669
  ] }),
10668
10670
  /* @__PURE__ */ l.jsx(Dr, { className: "text-lg", children: e.name }),
10669
- /* @__PURE__ */ l.jsx("p", { className: "text-sm text-gray-600", children: d.name })
10671
+ /* @__PURE__ */ l.jsx("p", { className: "text-sm text-gray-600", children: u.name })
10670
10672
  ] }),
10671
10673
  /* @__PURE__ */ l.jsx(Sr, { className: "pt-0", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-3", children: [
10672
10674
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-2", children: [
@@ -10724,8 +10726,8 @@ const _m = ({
10724
10726
  isLoading: a = !1,
10725
10727
  editLoadingStates: s = {},
10726
10728
  refreshLoadingStates: i = {},
10727
- statusChangeLoadingStates: d = {},
10728
- refreshResultStates: u = {}
10729
+ statusChangeLoadingStates: u = {},
10730
+ refreshResultStates: d = {}
10729
10731
  }) => a ? /* @__PURE__ */ l.jsxs("div", { className: "max-w-6xl mx-auto p-6", children: [
10730
10732
  /* @__PURE__ */ l.jsxs("div", { className: "mb-8", children: [
10731
10733
  /* @__PURE__ */ l.jsx("h1", { className: "text-3xl font-bold text-gray-900 mb-2", children: "Your Connections" }),
@@ -10755,28 +10757,29 @@ const _m = ({
10755
10757
  onStatusChange: r,
10756
10758
  editLoadingStates: s,
10757
10759
  refreshLoadingStates: i,
10758
- statusChangeLoadingStates: d,
10759
- refreshResultStates: u
10760
+ statusChangeLoadingStates: u,
10761
+ refreshResultStates: d
10760
10762
  },
10761
10763
  f.provider.id
10762
10764
  )) }) });
10763
10765
  async function eh() {
10764
- var e, t, n, r, o, a;
10766
+ var e, t, n, r, o, a, s;
10765
10767
  try {
10766
- const s = await Di();
10767
- if (!s || s === "No token available")
10768
- return { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
10769
- const d = (e = Si(s)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : e.metadata;
10768
+ const i = await Di();
10769
+ if (!i || i === "No token available")
10770
+ return { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, management: !1, se_company_id: null };
10771
+ const d = (e = Si(i)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : e.metadata;
10770
10772
  return {
10771
10773
  essentialInsights: ((t = d == null ? void 0 : d["essential-insights"]) == null ? void 0 : t.enabled) === !0,
10772
10774
  organic: ((n = d == null ? void 0 : d.organic) == null ? void 0 : n.enabled) === !0,
10773
10775
  paid: ((r = d == null ? void 0 : d.paid) == null ? void 0 : r.enabled) === !0,
10774
10776
  web: ((o = d == null ? void 0 : d.web) == null ? void 0 : o.enabled) === !0,
10775
10777
  priceMonster: ((a = d == null ? void 0 : d["price-monster"]) == null ? void 0 : a.enabled) === !0,
10778
+ management: ((s = d == null ? void 0 : d.management) == null ? void 0 : s.enabled) === !0,
10776
10779
  se_company_id: (d == null ? void 0 : d.se_company_id) || null
10777
10780
  };
10778
- } catch (s) {
10779
- return console.error("Error getting user permissions:", s), { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
10781
+ } catch (i) {
10782
+ return console.error("Error getting user permissions:", i), { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, management: !1, se_company_id: null };
10780
10783
  }
10781
10784
  }
10782
10785
  const pi = A.createContext(null);