@yoast/ai-insights-client 1.3.1 → 1.3.2

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.
@@ -14,9 +14,9 @@ var ul = (e, t, n, r) => ({
14
14
  }
15
15
  });
16
16
  import { jsx as v, jsxs as D, Fragment as ut } from "react/jsx-runtime";
17
- import { SidebarNavigation as fs, Title as Ct, SkeletonLoader as et, Link as Gn, Modal as $e, Button as Be, Paper as sn, Stepper as mx, Tooltip as px, Card as ft, ProgressBar as p0, Alert as ri, Badge as Vn, Select as ec, Table as we, Pagination as v0, TextInput as Ka, DropdownMenu as dl, Label as jl, Spinner as Cf, Root as vx, TagField as b0, Checkbox as od, TextField as Go, Toggle as bx, Autocomplete as fl } from "@yoast/ui-library";
17
+ import { SidebarNavigation as fs, Title as Ct, SkeletonLoader as et, Link as yr, Modal as $e, Button as Be, Paper as sn, Stepper as mx, Tooltip as px, Card as ft, ProgressBar as p0, Alert as ri, Badge as Vn, Select as ec, Table as we, Pagination as v0, TextInput as Ka, DropdownMenu as dl, Label as jl, Spinner as Cf, Root as vx, TagField as b0, Checkbox as od, TextField as Go, Toggle as bx, Autocomplete as fl } from "@yoast/ui-library";
18
18
  import * as T from "react";
19
- import tc, { createContext as w0, useMemo as Kt, useCallback as fr, useState as Ae, useContext as x0, useEffect as ot, useRef as na, forwardRef as S0, lazy as Xs, Suspense as fi } from "react";
19
+ import tc, { createContext as w0, useMemo as Kt, useCallback as dr, useState as Ae, useContext as x0, useEffect as ot, useRef as na, forwardRef as S0, lazy as Xs, Suspense as fi } from "react";
20
20
  import wx from "styled-components";
21
21
  function C0(e) {
22
22
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -698,20 +698,20 @@ var Wx = T.createContext(
698
698
  Wx.displayName = "Fetchers";
699
699
  var Gx = T.createContext(null);
700
700
  Gx.displayName = "Await";
701
- var Jn = T.createContext(
701
+ var Xn = T.createContext(
702
702
  null
703
703
  );
704
- Jn.displayName = "Navigation";
704
+ Xn.displayName = "Navigation";
705
705
  var Va = T.createContext(
706
706
  null
707
707
  );
708
708
  Va.displayName = "Location";
709
- var Zn = T.createContext({
709
+ var Jn = T.createContext({
710
710
  outlet: null,
711
711
  matches: [],
712
712
  isDataRoute: !1
713
713
  });
714
- Zn.displayName = "Route";
714
+ Jn.displayName = "Route";
715
715
  var _f = T.createContext(null);
716
716
  _f.displayName = "RouteError";
717
717
  function Qx(e, { relative: t } = {}) {
@@ -721,7 +721,7 @@ function Qx(e, { relative: t } = {}) {
721
721
  // router loaded. We can help them understand how to avoid that.
722
722
  "useHref() may be used only in the context of a <Router> component."
723
723
  );
724
- let { basename: n, navigator: r } = T.useContext(Jn), { hash: i, pathname: s, search: o } = Wa(e, { relative: t }), a = s;
724
+ let { basename: n, navigator: r } = T.useContext(Xn), { hash: i, pathname: s, search: o } = Wa(e, { relative: t }), a = s;
725
725
  return n !== "/" && (a = s === "/" ? n : mr([n, s])), r.createHref({ pathname: a, search: o, hash: i });
726
726
  }
727
727
  function Zs() {
@@ -750,10 +750,10 @@ function Yh(e) {
750
750
  }
751
751
  var D0 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
752
752
  function I0(e) {
753
- T.useContext(Jn).static || T.useLayoutEffect(e);
753
+ T.useContext(Xn).static || T.useLayoutEffect(e);
754
754
  }
755
- function Mn() {
756
- let { isDataRoute: e } = T.useContext(Zn);
755
+ function Dn() {
756
+ let { isDataRoute: e } = T.useContext(Jn);
757
757
  return e ? u2() : Yx();
758
758
  }
759
759
  function Yx() {
@@ -763,7 +763,7 @@ function Yx() {
763
763
  // router loaded. We can help them understand how to avoid that.
764
764
  "useNavigate() may be used only in the context of a <Router> component."
765
765
  );
766
- let e = T.useContext(Js), { basename: t, navigator: n } = T.useContext(Jn), { matches: r } = T.useContext(Zn), { pathname: i } = wn(), s = JSON.stringify(P0(r)), o = T.useRef(!1);
766
+ let e = T.useContext(Js), { basename: t, navigator: n } = T.useContext(Xn), { matches: r } = T.useContext(Jn), { pathname: i } = wn(), s = JSON.stringify(P0(r)), o = T.useRef(!1);
767
767
  return I0(() => {
768
768
  o.current = !0;
769
769
  }), T.useCallback(
@@ -796,11 +796,11 @@ function Yx() {
796
796
  }
797
797
  var Xx = T.createContext(null);
798
798
  function Jx(e) {
799
- let t = T.useContext(Zn).outlet;
799
+ let t = T.useContext(Jn).outlet;
800
800
  return t && /* @__PURE__ */ T.createElement(Xx.Provider, { value: e }, t);
801
801
  }
802
802
  function Wa(e, { relative: t } = {}) {
803
- let { matches: n } = T.useContext(Zn), { pathname: r } = wn(), i = JSON.stringify(P0(n));
803
+ let { matches: n } = T.useContext(Jn), { pathname: r } = wn(), i = JSON.stringify(P0(n));
804
804
  return T.useMemo(
805
805
  () => T0(
806
806
  e,
@@ -822,7 +822,7 @@ function L0(e, t, n, r) {
822
822
  // router loaded. We can help them understand how to avoid that.
823
823
  "useRoutes() may be used only in the context of a <Router> component."
824
824
  );
825
- let { navigator: i } = T.useContext(Jn), { matches: s } = T.useContext(Zn), o = s[s.length - 1], a = o ? o.params : {}, l = o ? o.pathname : "/", c = o ? o.pathnameBase : "/", u = o && o.route;
825
+ let { navigator: i } = T.useContext(Xn), { matches: s } = T.useContext(Jn), o = s[s.length - 1], a = o ? o.params : {}, l = o ? o.pathname : "/", c = o ? o.pathnameBase : "/", u = o && o.route;
826
826
  {
827
827
  let b = u && u.path || "";
828
828
  R0(
@@ -931,7 +931,7 @@ var t2 = /* @__PURE__ */ T.createElement(e2, null), n2 = class extends T.Compone
931
931
  );
932
932
  }
933
933
  render() {
934
- return this.state.error !== void 0 ? /* @__PURE__ */ T.createElement(Zn.Provider, { value: this.props.routeContext }, /* @__PURE__ */ T.createElement(
934
+ return this.state.error !== void 0 ? /* @__PURE__ */ T.createElement(Jn.Provider, { value: this.props.routeContext }, /* @__PURE__ */ T.createElement(
935
935
  _f.Provider,
936
936
  {
937
937
  value: this.state.error,
@@ -942,7 +942,7 @@ var t2 = /* @__PURE__ */ T.createElement(e2, null), n2 = class extends T.Compone
942
942
  };
943
943
  function r2({ routeContext: e, match: t, children: n }) {
944
944
  let r = T.useContext(Js);
945
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ T.createElement(Zn.Provider, { value: e }, n);
945
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ T.createElement(Jn.Provider, { value: e }, n);
946
946
  }
947
947
  function i2(e, t = [], n = null, r = null) {
948
948
  if (e == null) {
@@ -1029,7 +1029,7 @@ function o2(e) {
1029
1029
  return nt(t, kf(e)), t;
1030
1030
  }
1031
1031
  function a2(e) {
1032
- let t = T.useContext(Zn);
1032
+ let t = T.useContext(Jn);
1033
1033
  return nt(t, kf(e)), t;
1034
1034
  }
1035
1035
  function Of(e) {
@@ -1170,7 +1170,7 @@ function Af({
1170
1170
  return bn(
1171
1171
  h != null,
1172
1172
  `<Router basename="${o}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`
1173
- ), h == null ? null : /* @__PURE__ */ T.createElement(Jn.Provider, { value: a }, /* @__PURE__ */ T.createElement(Va.Provider, { children: t, value: h }));
1173
+ ), h == null ? null : /* @__PURE__ */ T.createElement(Xn.Provider, { value: a }, /* @__PURE__ */ T.createElement(Va.Provider, { children: t, value: h }));
1174
1174
  }
1175
1175
  function h2({
1176
1176
  children: e,
@@ -1637,7 +1637,7 @@ var q0 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, si = T.forwardRef(
1637
1637
  viewTransition: d,
1638
1638
  ...f
1639
1639
  }, h) {
1640
- let { basename: g } = T.useContext(Jn), y = typeof c == "string" && q0.test(c), m, p = !1;
1640
+ let { basename: g } = T.useContext(Xn), y = typeof c == "string" && q0.test(c), m, p = !1;
1641
1641
  if (typeof c == "string" && y && (m = c, B0))
1642
1642
  try {
1643
1643
  let k = new URL(window.location.href), E = c.startsWith("//") ? new URL(k.protocol + c) : new URL(c), $ = wr(E.pathname, g);
@@ -1693,7 +1693,7 @@ var B2 = T.forwardRef(
1693
1693
  children: l,
1694
1694
  ...c
1695
1695
  }, u) {
1696
- let d = Wa(o, { relative: c.relative }), f = wn(), h = T.useContext(Mc), { navigator: g, basename: y } = T.useContext(Jn), m = h != null && // Conditional usage is OK here because the usage of a data router is static
1696
+ let d = Wa(o, { relative: c.relative }), f = wn(), h = T.useContext(Mc), { navigator: g, basename: y } = T.useContext(Xn), m = h != null && // Conditional usage is OK here because the usage of a data router is static
1697
1697
  // eslint-disable-next-line react-hooks/rules-of-hooks
1698
1698
  W2(d) && a === !0, p = g.encodeLocation ? g.encodeLocation(d).pathname : d.pathname, b = f.pathname, x = h && h.navigation && h.navigation.location ? h.navigation.location.pathname : null;
1699
1699
  n || (b = b.toLowerCase(), x = x ? x.toLowerCase() : null, p = p.toLowerCase()), x && y && (x = wr(x, y) || x);
@@ -1786,7 +1786,7 @@ function z2(e, {
1786
1786
  relative: s,
1787
1787
  viewTransition: o
1788
1788
  } = {}) {
1789
- let a = Mn(), l = wn(), c = Wa(e, { relative: s });
1789
+ let a = Dn(), l = wn(), c = Wa(e, { relative: s });
1790
1790
  return T.useCallback(
1791
1791
  (u) => {
1792
1792
  if (v2(u, t)) {
@@ -1820,7 +1820,7 @@ function K2() {
1820
1820
  let { router: e } = j0(
1821
1821
  "useSubmit"
1822
1822
  /* UseSubmit */
1823
- ), { basename: t } = T.useContext(Jn), n = l2();
1823
+ ), { basename: t } = T.useContext(Xn), n = l2();
1824
1824
  return T.useCallback(
1825
1825
  async (r, i = {}) => {
1826
1826
  let { action: s, method: o, encType: a, formData: l, body: c } = x2(
@@ -1855,7 +1855,7 @@ function K2() {
1855
1855
  );
1856
1856
  }
1857
1857
  function V2(e, { relative: t } = {}) {
1858
- let { basename: n } = T.useContext(Jn), r = T.useContext(Zn);
1858
+ let { basename: n } = T.useContext(Xn), r = T.useContext(Jn);
1859
1859
  nt(r, "useFormAction must be used inside a RouteContext");
1860
1860
  let [i] = r.matches.slice(-1), s = { ...Wa(e || ".", { relative: t }) }, o = wn();
1861
1861
  if (e == null) {
@@ -2295,11 +2295,11 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2295
2295
  clearGcTimeout() {
2296
2296
  A(this, Oi) && (clearTimeout(A(this, Oi)), Q(this, Oi, void 0));
2297
2297
  }
2298
- }, Oi = new WeakMap(), a0), ws, Ei, hn, Ai, Et, $a, Pi, On, sr, l0, rS = (l0 = class extends G0 {
2298
+ }, Oi = new WeakMap(), a0), ws, Ei, hn, Ai, Et, $a, Pi, En, ir, l0, rS = (l0 = class extends G0 {
2299
2299
  constructor(t) {
2300
2300
  var n;
2301
2301
  super();
2302
- se(this, On);
2302
+ se(this, En);
2303
2303
  se(this, ws);
2304
2304
  se(this, Ei);
2305
2305
  se(this, hn);
@@ -2324,7 +2324,7 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2324
2324
  }
2325
2325
  setData(t, n) {
2326
2326
  const r = dd(this.state.data, t, this.options);
2327
- return Ee(this, On, sr).call(this, {
2327
+ return Ee(this, En, ir).call(this, {
2328
2328
  data: r,
2329
2329
  type: "success",
2330
2330
  dataUpdatedAt: n == null ? void 0 : n.updatedAt,
@@ -2332,7 +2332,7 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2332
2332
  }), r;
2333
2333
  }
2334
2334
  setState(t, n) {
2335
- Ee(this, On, sr).call(this, { type: "setState", state: t, setStateOptions: n });
2335
+ Ee(this, En, ir).call(this, { type: "setState", state: t, setStateOptions: n });
2336
2336
  }
2337
2337
  cancel(t) {
2338
2338
  var r, i;
@@ -2386,7 +2386,7 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2386
2386
  return this.observers.length;
2387
2387
  }
2388
2388
  invalidate() {
2389
- this.state.isInvalidated || Ee(this, On, sr).call(this, { type: "invalidate" });
2389
+ this.state.isInvalidated || Ee(this, En, ir).call(this, { type: "invalidate" });
2390
2390
  }
2391
2391
  fetch(t, n) {
2392
2392
  var c, u, d;
@@ -2433,10 +2433,10 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2433
2433
  };
2434
2434
  return i(f), f;
2435
2435
  })();
2436
- (c = this.options.behavior) == null || c.onFetch(a, this), Q(this, Ei, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = a.fetchOptions) == null ? void 0 : u.meta)) && Ee(this, On, sr).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta });
2436
+ (c = this.options.behavior) == null || c.onFetch(a, this), Q(this, Ei, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = a.fetchOptions) == null ? void 0 : u.meta)) && Ee(this, En, ir).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta });
2437
2437
  const l = (f) => {
2438
2438
  var h, g, y, m;
2439
- vu(f) && f.silent || Ee(this, On, sr).call(this, {
2439
+ vu(f) && f.silent || Ee(this, En, ir).call(this, {
2440
2440
  type: "error",
2441
2441
  error: f
2442
2442
  }), vu(f) || ((g = (h = A(this, hn).config).onError) == null || g.call(
@@ -2477,13 +2477,13 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2477
2477
  },
2478
2478
  onError: l,
2479
2479
  onFail: (f, h) => {
2480
- Ee(this, On, sr).call(this, { type: "failed", failureCount: f, error: h });
2480
+ Ee(this, En, ir).call(this, { type: "failed", failureCount: f, error: h });
2481
2481
  },
2482
2482
  onPause: () => {
2483
- Ee(this, On, sr).call(this, { type: "pause" });
2483
+ Ee(this, En, ir).call(this, { type: "pause" });
2484
2484
  },
2485
2485
  onContinue: () => {
2486
- Ee(this, On, sr).call(this, { type: "continue" });
2486
+ Ee(this, En, ir).call(this, { type: "continue" });
2487
2487
  },
2488
2488
  retry: a.options.retry,
2489
2489
  retryDelay: a.options.retryDelay,
@@ -2491,7 +2491,7 @@ var mt = nS(), Oi, a0, G0 = (a0 = class {
2491
2491
  canRun: () => !0
2492
2492
  })), A(this, Et).start();
2493
2493
  }
2494
- }, ws = new WeakMap(), Ei = new WeakMap(), hn = new WeakMap(), Ai = new WeakMap(), Et = new WeakMap(), $a = new WeakMap(), Pi = new WeakMap(), On = new WeakSet(), sr = function(t) {
2494
+ }, ws = new WeakMap(), Ei = new WeakMap(), hn = new WeakMap(), Ai = new WeakMap(), Et = new WeakMap(), $a = new WeakMap(), Pi = new WeakMap(), En = new WeakSet(), ir = function(t) {
2495
2495
  const n = (r) => {
2496
2496
  var i, s;
2497
2497
  switch (t.type) {
@@ -2865,13 +2865,13 @@ function Y0() {
2865
2865
  submittedAt: 0
2866
2866
  };
2867
2867
  }
2868
- var ur, En, Ma, d0, aS = (d0 = class extends eo {
2868
+ var cr, An, Ma, d0, aS = (d0 = class extends eo {
2869
2869
  constructor(t = {}) {
2870
2870
  super();
2871
- se(this, ur);
2872
- se(this, En);
2871
+ se(this, cr);
2872
+ se(this, An);
2873
2873
  se(this, Ma);
2874
- this.config = t, Q(this, ur, /* @__PURE__ */ new Set()), Q(this, En, /* @__PURE__ */ new Map()), Q(this, Ma, 0);
2874
+ this.config = t, Q(this, cr, /* @__PURE__ */ new Set()), Q(this, An, /* @__PURE__ */ new Map()), Q(this, Ma, 0);
2875
2875
  }
2876
2876
  build(t, n, r) {
2877
2877
  const i = new oS({
@@ -2883,24 +2883,24 @@ var ur, En, Ma, d0, aS = (d0 = class extends eo {
2883
2883
  return this.add(i), i;
2884
2884
  }
2885
2885
  add(t) {
2886
- A(this, ur).add(t);
2886
+ A(this, cr).add(t);
2887
2887
  const n = gl(t);
2888
2888
  if (typeof n == "string") {
2889
- const r = A(this, En).get(n);
2890
- r ? r.push(t) : A(this, En).set(n, [t]);
2889
+ const r = A(this, An).get(n);
2890
+ r ? r.push(t) : A(this, An).set(n, [t]);
2891
2891
  }
2892
2892
  this.notify({ type: "added", mutation: t });
2893
2893
  }
2894
2894
  remove(t) {
2895
- if (A(this, ur).delete(t)) {
2895
+ if (A(this, cr).delete(t)) {
2896
2896
  const n = gl(t);
2897
2897
  if (typeof n == "string") {
2898
- const r = A(this, En).get(n);
2898
+ const r = A(this, An).get(n);
2899
2899
  if (r)
2900
2900
  if (r.length > 1) {
2901
2901
  const i = r.indexOf(t);
2902
2902
  i !== -1 && r.splice(i, 1);
2903
- } else r[0] === t && A(this, En).delete(n);
2903
+ } else r[0] === t && A(this, An).delete(n);
2904
2904
  }
2905
2905
  }
2906
2906
  this.notify({ type: "removed", mutation: t });
@@ -2908,7 +2908,7 @@ var ur, En, Ma, d0, aS = (d0 = class extends eo {
2908
2908
  canRun(t) {
2909
2909
  const n = gl(t);
2910
2910
  if (typeof n == "string") {
2911
- const r = A(this, En).get(n), i = r == null ? void 0 : r.find(
2911
+ const r = A(this, An).get(n), i = r == null ? void 0 : r.find(
2912
2912
  (s) => s.state.status === "pending"
2913
2913
  );
2914
2914
  return !i || i === t;
@@ -2919,20 +2919,20 @@ var ur, En, Ma, d0, aS = (d0 = class extends eo {
2919
2919
  var r, i;
2920
2920
  const n = gl(t);
2921
2921
  if (typeof n == "string") {
2922
- const s = (r = A(this, En).get(n)) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
2922
+ const s = (r = A(this, An).get(n)) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
2923
2923
  return (i = s == null ? void 0 : s.continue()) != null ? i : Promise.resolve();
2924
2924
  } else
2925
2925
  return Promise.resolve();
2926
2926
  }
2927
2927
  clear() {
2928
2928
  mt.batch(() => {
2929
- A(this, ur).forEach((t) => {
2929
+ A(this, cr).forEach((t) => {
2930
2930
  this.notify({ type: "removed", mutation: t });
2931
- }), A(this, ur).clear(), A(this, En).clear();
2931
+ }), A(this, cr).clear(), A(this, An).clear();
2932
2932
  });
2933
2933
  }
2934
2934
  getAll() {
2935
- return Array.from(A(this, ur));
2935
+ return Array.from(A(this, cr));
2936
2936
  }
2937
2937
  find(t) {
2938
2938
  const n = { exact: !0, ...t };
@@ -2958,7 +2958,7 @@ var ur, En, Ma, d0, aS = (d0 = class extends eo {
2958
2958
  )
2959
2959
  );
2960
2960
  }
2961
- }, ur = new WeakMap(), En = new WeakMap(), Ma = new WeakMap(), d0);
2961
+ }, cr = new WeakMap(), An = new WeakMap(), Ma = new WeakMap(), d0);
2962
2962
  function gl(e) {
2963
2963
  var t;
2964
2964
  return (t = e.options.scope) == null ? void 0 : t.id;
@@ -3540,14 +3540,14 @@ function Df(e, t) {
3540
3540
  function fS(e, t) {
3541
3541
  return !nc(e.getCurrentResult(), t);
3542
3542
  }
3543
- var zr, Hr, zt, dr, br, Ul, xd, g0, hS = (g0 = class extends eo {
3543
+ var zr, Hr, zt, ur, br, Ul, xd, g0, hS = (g0 = class extends eo {
3544
3544
  constructor(n, r) {
3545
3545
  super();
3546
3546
  se(this, br);
3547
3547
  se(this, zr);
3548
3548
  se(this, Hr);
3549
3549
  se(this, zt);
3550
- se(this, dr);
3550
+ se(this, ur);
3551
3551
  Q(this, zr, n), this.setOptions(r), this.bindMethods(), Ee(this, br, Ul).call(this);
3552
3552
  }
3553
3553
  bindMethods() {
@@ -3578,9 +3578,9 @@ var zr, Hr, zt, dr, br, Ul, xd, g0, hS = (g0 = class extends eo {
3578
3578
  }
3579
3579
  mutate(n, r) {
3580
3580
  var i;
3581
- return Q(this, dr, r), (i = A(this, zt)) == null || i.removeObserver(this), Q(this, zt, A(this, zr).getMutationCache().build(A(this, zr), this.options)), A(this, zt).addObserver(this), A(this, zt).execute(n);
3581
+ return Q(this, ur, r), (i = A(this, zt)) == null || i.removeObserver(this), Q(this, zt, A(this, zr).getMutationCache().build(A(this, zr), this.options)), A(this, zt).addObserver(this), A(this, zt).execute(n);
3582
3582
  }
3583
- }, zr = new WeakMap(), Hr = new WeakMap(), zt = new WeakMap(), dr = new WeakMap(), br = new WeakSet(), Ul = function() {
3583
+ }, zr = new WeakMap(), Hr = new WeakMap(), zt = new WeakMap(), ur = new WeakMap(), br = new WeakSet(), Ul = function() {
3584
3584
  var r, i;
3585
3585
  const n = (i = (r = A(this, zt)) == null ? void 0 : r.state) != null ? i : Y0();
3586
3586
  Q(this, Hr, {
@@ -3595,9 +3595,9 @@ var zr, Hr, zt, dr, br, Ul, xd, g0, hS = (g0 = class extends eo {
3595
3595
  }, xd = function(n) {
3596
3596
  mt.batch(() => {
3597
3597
  var r, i, s, o, a, l, c, u;
3598
- if (A(this, dr) && this.hasListeners()) {
3598
+ if (A(this, ur) && this.hasListeners()) {
3599
3599
  const d = A(this, Hr).variables, f = A(this, Hr).context;
3600
- (n == null ? void 0 : n.type) === "success" ? ((i = (r = A(this, dr)).onSuccess) == null || i.call(r, n.data, d, f), (o = (s = A(this, dr)).onSettled) == null || o.call(s, n.data, null, d, f)) : (n == null ? void 0 : n.type) === "error" && ((l = (a = A(this, dr)).onError) == null || l.call(a, n.error, d, f), (u = (c = A(this, dr)).onSettled) == null || u.call(
3600
+ (n == null ? void 0 : n.type) === "success" ? ((i = (r = A(this, ur)).onSuccess) == null || i.call(r, n.data, d, f), (o = (s = A(this, ur)).onSettled) == null || o.call(s, n.data, null, d, f)) : (n == null ? void 0 : n.type) === "error" && ((l = (a = A(this, ur)).onError) == null || l.call(a, n.error, d, f), (u = (c = A(this, ur)).onSettled) == null || u.call(
3601
3601
  c,
3602
3602
  void 0,
3603
3603
  n.error,
@@ -3611,7 +3611,7 @@ var zr, Hr, zt, dr, br, Ul, xd, g0, hS = (g0 = class extends eo {
3611
3611
  });
3612
3612
  }, g0), J0 = T.createContext(
3613
3613
  void 0
3614
- ), Dn = (e) => {
3614
+ ), xn = (e) => {
3615
3615
  const t = T.useContext(J0);
3616
3616
  if (e)
3617
3617
  return e;
@@ -3663,7 +3663,7 @@ function kS(e, t, n) {
3663
3663
  throw new Error(
3664
3664
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
3665
3665
  );
3666
- const r = yS(), i = vS(), s = Dn(n), o = s.defaultQueryOptions(e);
3666
+ const r = yS(), i = vS(), s = xn(n), o = s.defaultQueryOptions(e);
3667
3667
  (f = (d = s.getDefaultOptions().queries) == null ? void 0 : d._experimental_beforeQuery) == null || f.call(
3668
3668
  d,
3669
3669
  o
@@ -3720,7 +3720,7 @@ function _r(e, t) {
3720
3720
  return kS(e, uS, t);
3721
3721
  }
3722
3722
  function oi(e, t) {
3723
- const n = Dn(t), [r] = T.useState(
3723
+ const n = xn(t), [r] = T.useState(
3724
3724
  () => new hS(
3725
3725
  n,
3726
3726
  e
@@ -3782,7 +3782,7 @@ function vr(e, t) {
3782
3782
  }, a = i ? e : () => e(() => lt(() => sa(o)));
3783
3783
  Ne = o, Ye = null;
3784
3784
  try {
3785
- return Qn(a, !0);
3785
+ return Gn(a, !0);
3786
3786
  } finally {
3787
3787
  Ye = n, Ne = r;
3788
3788
  }
@@ -3834,7 +3834,7 @@ function PS(e, t, n) {
3834
3834
  ), a = bu, O(E, $)), E;
3835
3835
  }
3836
3836
  function O(k, E) {
3837
- Qn(() => {
3837
+ Gn(() => {
3838
3838
  E === void 0 && g(() => k), S(E !== void 0 ? "errored" : u ? "ready" : "unresolved"), m(E);
3839
3839
  for (const $ of f.keys()) $.decrement();
3840
3840
  f.clear();
@@ -3859,7 +3859,7 @@ function PS(e, t, n) {
3859
3859
  refetching: k
3860
3860
  })
3861
3861
  );
3862
- return AS($) ? (o = $, "value" in $ ? ($.status === "success" ? w(o, $.value, void 0, E) : w(o, void 0, Sd($.value), E), $) : (c = !0, queueMicrotask(() => c = !1), Qn(() => {
3862
+ return AS($) ? (o = $, "value" in $ ? ($.status === "success" ? w(o, $.value, void 0, E) : w(o, void 0, Sd($.value), E), $) : (c = !0, queueMicrotask(() => c = !1), Gn(() => {
3863
3863
  S(u ? "refreshing" : "pending"), b();
3864
3864
  }, !1), $.then(
3865
3865
  (R) => w($, R, void 0, E),
@@ -3896,7 +3896,7 @@ function PS(e, t, n) {
3896
3896
  ];
3897
3897
  }
3898
3898
  function TS(e) {
3899
- return Qn(e, !1);
3899
+ return Gn(e, !1);
3900
3900
  }
3901
3901
  function lt(e) {
3902
3902
  if (Ye === null) return e();
@@ -3936,7 +3936,7 @@ function $S(e, t) {
3936
3936
  const n = Ne, r = Ye;
3937
3937
  Ne = e, Ye = null;
3938
3938
  try {
3939
- return Qn(t, !0);
3939
+ return Gn(t, !0);
3940
3940
  } catch (i) {
3941
3941
  If(i);
3942
3942
  } finally {
@@ -3948,7 +3948,7 @@ function MS(e) {
3948
3948
  return Promise.resolve().then(() => {
3949
3949
  Ye = t, Ne = n;
3950
3950
  let r;
3951
- return Qn(e, !1), Ye = Ne = null, r ? r.done : void 0;
3951
+ return Gn(e, !1), Ye = Ne = null, r ? r.done : void 0;
3952
3952
  });
3953
3953
  }
3954
3954
  var [DS, e9] = /* @__PURE__ */ ie(!1);
@@ -3980,7 +3980,7 @@ function ov() {
3980
3980
  if (this.state === kr) to(this);
3981
3981
  else {
3982
3982
  const e = Mt;
3983
- Mt = null, Qn(() => lc(this), !1), Mt = e;
3983
+ Mt = null, Gn(() => lc(this), !1), Mt = e;
3984
3984
  }
3985
3985
  if (Ye) {
3986
3986
  const e = this.observers ? this.observers.length : 0;
@@ -3990,7 +3990,7 @@ function ov() {
3990
3990
  }
3991
3991
  function av(e, t, n) {
3992
3992
  let r = e.value;
3993
- return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Qn(() => {
3993
+ return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Gn(() => {
3994
3994
  for (let i = 0; i < e.observers.length; i += 1) {
3995
3995
  const s = e.observers[i], o = wu && wu.running;
3996
3996
  o && wu.disposed.has(s), (o ? !s.tState : !s.state) && (s.pure ? Mt.push(s) : pr.push(s), s.observers && cv(s)), o || (s.state = kr);
@@ -4050,10 +4050,10 @@ function ac(e) {
4050
4050
  to(e);
4051
4051
  else if (e.state === oc) {
4052
4052
  const r = Mt;
4053
- Mt = null, Qn(() => lc(e, t[0]), !1), Mt = r;
4053
+ Mt = null, Gn(() => lc(e, t[0]), !1), Mt = r;
4054
4054
  }
4055
4055
  }
4056
- function Qn(e, t) {
4056
+ function Gn(e, t) {
4057
4057
  if (Mt) return e();
4058
4058
  let n = !1;
4059
4059
  t || (Mt = []), pr ? n = !0 : pr = [], Lc++;
@@ -4067,7 +4067,7 @@ function Qn(e, t) {
4067
4067
  function FS(e) {
4068
4068
  if (Mt && (lv(Mt), Mt = null), e) return;
4069
4069
  const t = pr;
4070
- pr = null, t.length && Qn(() => nv(t), !1);
4070
+ pr = null, t.length && Gn(() => nv(t), !1);
4071
4071
  }
4072
4072
  function lv(e) {
4073
4073
  for (let t = 0; t < e.length; t++) ac(e[t]);
@@ -4384,7 +4384,7 @@ function uv(e) {
4384
4384
  return r.preload = () => n || ((n = e()).then((i) => t = () => i.default), n), r;
4385
4385
  }
4386
4386
  var HS = 0;
4387
- function xn() {
4387
+ function Sn() {
4388
4388
  return Ce.context ? Ce.getNextContextId() : `cl-${HS++}`;
4389
4389
  }
4390
4390
  var dv = (e) => `Stale read from <${e}>.`;
@@ -5824,7 +5824,7 @@ var uc = (e, t = !1) => {
5824
5824
  }
5825
5825
  }, Rs = new WeakMap(), qa = new WeakMap(), ja = new WeakMap(), za = new WeakMap(), Li = new WeakMap(), Ha = new WeakMap(), Fs = new WeakMap(), Ns = new WeakMap(), Bs = new WeakMap(), qs = new WeakMap(), js = new WeakMap(), zs = new WeakMap(), Hs = new WeakMap(), Ua = new WeakMap(), m0);
5826
5826
  function ZC(e) {
5827
- const t = Dn(e.client), n = T.useRef(null), {
5827
+ const t = xn(e.client), n = T.useRef(null), {
5828
5828
  buttonPosition: r,
5829
5829
  position: i,
5830
5830
  initialIsOpen: s,
@@ -5860,7 +5860,7 @@ function ZC(e) {
5860
5860
  }), [c]), /* @__PURE__ */ v("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
5861
5861
  }
5862
5862
  function e_(e) {
5863
- const t = Dn(e.client), n = T.useRef(null), { errorTypes: r, styleNonce: i, shadowDOMTarget: s } = e, [o] = T.useState(
5863
+ const t = xn(e.client), n = T.useRef(null), { errorTypes: r, styleNonce: i, shadowDOMTarget: s } = e, [o] = T.useState(
5864
5864
  new JC({
5865
5865
  client: t,
5866
5866
  queryFlavor: "React Query",
@@ -8179,10 +8179,10 @@ var cO = function(t, n, r) {
8179
8179
  method: "GET",
8180
8180
  signal: t
8181
8181
  });
8182
- }, hr = function() {
8182
+ }, fr = function() {
8183
8183
  return ["/brands"];
8184
8184
  }, hO = function(t) {
8185
- var n, r = t != null ? t : {}, i = r.query, s = (n = i == null ? void 0 : i.queryKey) !== null && n !== void 0 ? n : hr(), o = function(l) {
8185
+ var n, r = t != null ? t : {}, i = r.query, s = (n = i == null ? void 0 : i.queryKey) !== null && n !== void 0 ? n : fr(), o = function(l) {
8186
8186
  var c = l.signal;
8187
8187
  return fO(c);
8188
8188
  };
@@ -8432,11 +8432,11 @@ var NO = function() {
8432
8432
  }, [h]);
8433
8433
  return /* @__PURE__ */ v(gb.Provider, { value: g, children: s });
8434
8434
  }, yb = w0(void 0), zO = function(t) {
8435
- var n = t.children, r = t.setBrandId, i = t.setAnalysisId, s = t.setModel, o = fr(function(d) {
8435
+ var n = t.children, r = t.setBrandId, i = t.setAnalysisId, s = t.setModel, o = dr(function(d) {
8436
8436
  r(d), i("latest");
8437
- }, [r, i]), a = fr(function(d) {
8437
+ }, [r, i]), a = dr(function(d) {
8438
8438
  i(d);
8439
- }, [i]), l = fr(function(d) {
8439
+ }, [i]), l = dr(function(d) {
8440
8440
  s(d);
8441
8441
  }, [s]), c = Kt(function() {
8442
8442
  return {
@@ -8546,7 +8546,7 @@ function GO() {
8546
8546
  var QO = GO();
8547
8547
  const Se = /* @__PURE__ */ C0(QO);
8548
8548
  var YO = function() {
8549
- var t = Mn();
8549
+ var t = Dn();
8550
8550
  return sO({
8551
8551
  mutation: {
8552
8552
  onSettled: function() {
@@ -8881,7 +8881,7 @@ var AE = function(t) {
8881
8881
  /* @__PURE__ */ D("div", { className: Se("ystaii-userInfoContainer", "yst-flex yst-flex-col"), children: [
8882
8882
  /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v("b", { children: (o == null ? void 0 : o.displayName) || /* @__PURE__ */ v(et, { children: "Display name" }) }) }),
8883
8883
  /* @__PURE__ */ v("div", { children: (o == null ? void 0 : o.email) || /* @__PURE__ */ v(et, { children: "loading-email@address.com" }) }),
8884
- /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Gn, { variant: "primary", className: "yst-no-underline", onClick: d, children: a ? /* @__PURE__ */ D(et, { children: [
8884
+ /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(yr, { variant: "primary", className: "yst-no-underline", onClick: d, children: a ? /* @__PURE__ */ D(et, { children: [
8885
8885
  "Sign out ",
8886
8886
  /* @__PURE__ */ v("span", { "aria-hidden": "true", children: "→" })
8887
8887
  ] }) : u ? /* @__PURE__ */ v(ut, { children: "Signing out..." }) : /* @__PURE__ */ D(ut, { children: [
@@ -9058,7 +9058,7 @@ function IE(e) {
9058
9058
  if (Array.isArray(e)) return e;
9059
9059
  }
9060
9060
  var LE = function(t) {
9061
- var n, r, i = t.className, s = Dn(), o = Mn(), a = Ae(!1), l = TE(a, 2), c = l[0], u = l[1], d = oo({
9061
+ var n, r, i = t.className, s = xn(), o = Dn(), a = Ae(!1), l = TE(a, 2), c = l[0], u = l[1], d = oo({
9062
9062
  query: {
9063
9063
  select: function(O) {
9064
9064
  var C = O.data;
@@ -9069,7 +9069,7 @@ var LE = function(t) {
9069
9069
  mutation: {
9070
9070
  onSettled: function() {
9071
9071
  s.invalidateQueries({
9072
- queryKey: [hr()]
9072
+ queryKey: [fr()]
9073
9073
  });
9074
9074
  }
9075
9075
  }
@@ -9163,7 +9163,7 @@ function Qc(e) {
9163
9163
  var RE = {
9164
9164
  HOME: "/"
9165
9165
  }, FE = function(t) {
9166
- var n = t.hideNav, r = n === void 0 ? !1 : n, i = t.disableLayout, s = i === void 0 ? !1 : i, o = t.DebugInfo, a = wn(), l = Mn(), c = {
9166
+ var n = t.hideNav, r = n === void 0 ? !1 : n, i = t.disableLayout, s = i === void 0 ? !1 : i, o = t.DebugInfo, a = wn(), l = Dn(), c = {
9167
9167
  disable: s,
9168
9168
  hideNav: r
9169
9169
  }, u = ai(), d = u.brandId, f = Gc(), h = f.setBrandId, g = oo({
@@ -9189,7 +9189,7 @@ var RE = {
9189
9189
  }, [y, d, h, l, a.pathname]), ot(function() {
9190
9190
  !d || x.current || (x.current = !0);
9191
9191
  }, [S, d, l, a.pathname, y]);
9192
- var w = fr(function() {
9192
+ var w = dr(function() {
9193
9193
  b();
9194
9194
  }, [b]), O = ["Loading your brands...", "Preparing your dashboard...", "Checking analysis status...", "Almost ready!"];
9195
9195
  return a.pathname !== RE.HOME && m ? /* @__PURE__ */ v(Pu, { ...c, children: /* @__PURE__ */ D(sn, { className: "yst-mx-auto yst-max-w-2xl", children: [
@@ -9416,7 +9416,7 @@ function qf(e) {
9416
9416
  }, i), children: t });
9417
9417
  }
9418
9418
  var nA = function() {
9419
- var t = Mn();
9419
+ var t = Dn();
9420
9420
  return /* @__PURE__ */ v("form", { onSubmit: function() {
9421
9421
  return t("/setup");
9422
9422
  }, children: /* @__PURE__ */ D(sn, { className: "yst-mx-auto yst-flex yst-max-w-2xl", children: [
@@ -9919,7 +9919,7 @@ var Co = Ja(Gg || (Gg = DA(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
9919
9919
  we.Cell,
9920
9920
  {
9921
9921
  className: "yst-ml-2 yst-py-1 md:yst-ml-0 md:yst-p-2",
9922
- children: s ? /* @__PURE__ */ v(et, { className: "yst-h-6 yst-w-full" }) : /* @__PURE__ */ v("div", { className: "yst-flex yst-items-center yst-gap-2", children: /* @__PURE__ */ D(Gn, { className: "yst-flex yst-items-center yst-gap-1 yst-font-medium", href: l || "#", rel: "nofollow noreferrer", children: [
9922
+ children: s ? /* @__PURE__ */ v(et, { className: "yst-h-6 yst-w-full" }) : /* @__PURE__ */ v("div", { className: "yst-flex yst-items-center yst-gap-2", children: /* @__PURE__ */ D(yr, { className: "yst-flex yst-items-center yst-gap-1 yst-font-medium", href: l || "#", rel: "nofollow noreferrer", children: [
9923
9923
  /* @__PURE__ */ v("span", { children: l != null ? l : "—" }),
9924
9924
  " ",
9925
9925
  /* @__PURE__ */ v(WE, {})
@@ -10031,7 +10031,7 @@ var Co = Ja(Gg || (Gg = DA(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
10031
10031
  /* @__PURE__ */ v(we.Row, { children: /* @__PURE__ */ D(we.Cell, { colSpan: 6, className: "yst-py-8 yst-text-center yst-text-slate-500", children: [
10032
10032
  a === "all" ? "No citations found." : 'No citations found for the "'.concat(a, '" category.'),
10033
10033
  " ",
10034
- /* @__PURE__ */ v(Gn, { onClick: function() {
10034
+ /* @__PURE__ */ v(yr, { onClick: function() {
10035
10035
  return l("all");
10036
10036
  }, children: "Show all categories." })
10037
10037
  ] }) }, "no-results")
@@ -10134,7 +10134,7 @@ var Zg = function(t) {
10134
10134
  }
10135
10135
  );
10136
10136
  }, zA = function(t) {
10137
- var n = t.brand, r = Mn(), i = Gc(), s = i.setBrandId;
10137
+ var n = t.brand, r = Dn(), i = Gc(), s = i.setBrandId;
10138
10138
  return (n == null ? void 0 : n.setupStatus) === "pendingQuerySelection" ? /* @__PURE__ */ v(ri, { className: "yst-mt-0", children: /* @__PURE__ */ D("div", { className: "yst-max-w-xl yst-space-y-4", children: [
10139
10139
  /* @__PURE__ */ D("div", { className: "yst-space-y-2", children: [
10140
10140
  /* @__PURE__ */ D("h3", { className: "yst-font-medium", children: [
@@ -10143,13 +10143,9 @@ var Zg = function(t) {
10143
10143
  ] }),
10144
10144
  /* @__PURE__ */ v("p", { children: "Your brand is saved, but you haven’t completed the analysis yet. Review your queries and run the analysis to get your brand insights!" })
10145
10145
  ] }),
10146
- /* @__PURE__ */ D("div", { className: "yst-flex yst-justify-start yst-gap-6", children: [
10147
- /* @__PURE__ */ v(Gn, { onClick: function() {
10148
- n.id ? (s(n.id), r("/setup/".concat(n.id, "/queries"))) : console.error("Brand ID is missing.");
10149
- }, children: "Review queries" }),
10150
- /* @__PURE__ */ v(Gn, { onClick: function() {
10151
- }, children: "Dismiss" })
10152
- ] })
10146
+ /* @__PURE__ */ v("div", { className: "yst-flex yst-justify-start yst-gap-6", children: /* @__PURE__ */ v(yr, { onClick: function() {
10147
+ n.id ? (s(n.id), r("/setup/".concat(n.id, "/queries"))) : console.error("Brand ID is missing.");
10148
+ }, children: "Review queries" }) })
10153
10149
  ] }) }) : null;
10154
10150
  }, zf = function(t) {
10155
10151
  var n = t.isOpen, r = t.onClose, i = t.onConfirm, s = t.isLoading, o = s === void 0 ? !1 : s, a = t.title, l = t.description, c = t.disabled, u = c === void 0 ? !1 : c, d = t.confirmText, f = d === void 0 ? "Yes, delete" : d, h = t.cancelText, g = h === void 0 ? "No, go back" : h, y = t.className;
@@ -12584,7 +12580,7 @@ function O3(e, t) {
12584
12580
  return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
12585
12581
  }
12586
12582
  var qu = Ja(wy || (wy = O3(["yst-flex-1 yst-space-y-2"]))), E3 = function(t) {
12587
- var n, r = t.className, i = ai(), s = i.brandId, o = i.analysisId, a = i.model, l = Gc(), c = l.setModel, u = Dn(), d = Mn(), f = Wc({
12583
+ var n, r = t.className, i = ai(), s = i.brandId, o = i.analysisId, a = i.model, l = Gc(), c = l.setModel, u = xn(), d = Dn(), f = Wc({
12588
12584
  query: {
12589
12585
  select: function(ae) {
12590
12586
  var Oe = ae.data;
@@ -12668,13 +12664,6 @@ var qu = Ja(wy || (wy = O3(["yst-flex-1 yst-space-y-2"]))), E3 = function(t) {
12668
12664
  label: "Default model"
12669
12665
  }];
12670
12666
  return /* @__PURE__ */ D(ut, { children: [
12671
- /* @__PURE__ */ D("div", { className: "ystaii-alerts yst-space-y-4", children: [
12672
- B && /* @__PURE__ */ v(zA, { brand: B }, B.id),
12673
- le && /* @__PURE__ */ v(ri, { children: /* @__PURE__ */ D("div", { className: "yst-max-w-xl yst-space-y-4", children: [
12674
- /* @__PURE__ */ v("p", { children: "Note: This content was generated by an AI model (see dropdown below) and may contain errors. Please review before acting on it." }),
12675
- /* @__PURE__ */ v("div", { className: "yst-flex yst-justify-start yst-gap-6", children: /* @__PURE__ */ v(Gn, { onClick: K, variant: "default", children: "Dismiss" }) })
12676
- ] }) })
12677
- ] }),
12678
12667
  /* @__PURE__ */ v(zf, { isOpen: L, onClose: fe, onConfirm: function() {
12679
12668
  s && Y({
12680
12669
  brandId: s
@@ -12759,7 +12748,12 @@ var qu = Ja(wy || (wy = O3(["yst-flex-1 yst-space-y-2"]))), E3 = function(t) {
12759
12748
  [{}].length < 2 })
12760
12749
  ] })
12761
12750
  ] })
12762
- ] }) })
12751
+ ] }) }),
12752
+ /* @__PURE__ */ v("div", { className: "ystaii-alerts yst-space-y-4", children: le && /* @__PURE__ */ v(ri, { children: /* @__PURE__ */ D("div", { className: "yst-max-w-xl yst-space-y-4", children: [
12753
+ /* @__PURE__ */ v("p", { children: "Note: This content was generated by an AI model (see dropdown below) and may contain errors. Please review before acting on it." }),
12754
+ /* @__PURE__ */ v("div", { className: "yst-flex yst-justify-start yst-gap-6", children: /* @__PURE__ */ v(yr, { onClick: K, variant: "default", children: "Dismiss" }) })
12755
+ ] }) }) }),
12756
+ B && /* @__PURE__ */ v(zA, { brand: B }, B.id)
12763
12757
  ] });
12764
12758
  }, A3 = function() {
12765
12759
  var t, n, r, i = ao(), s = i.data, o = i.isLoading, a = i.isRefetching, l = s == null ? void 0 : s.mentions;
@@ -12812,7 +12806,7 @@ function qo(e) {
12812
12806
  function Qr(e) {
12813
12807
  return Ur(el(e * 255), 0, 255);
12814
12808
  }
12815
- function lr(e) {
12809
+ function ar(e) {
12816
12810
  return Ur(el(e / 2.55) / 100, 0, 1);
12817
12811
  }
12818
12812
  function Cy(e) {
@@ -12899,7 +12893,7 @@ function H3(e) {
12899
12893
  if (!e)
12900
12894
  return;
12901
12895
  const t = Uf(e), n = t[0], r = Cy(t[1]), i = Cy(t[2]);
12902
- return e.a < 255 ? `hsla(${n}, ${r}%, ${i}%, ${lr(e.a)})` : `hsl(${n}, ${r}%, ${i}%)`;
12896
+ return e.a < 255 ? `hsla(${n}, ${r}%, ${i}%, ${ar(e.a)})` : `hsl(${n}, ${r}%, ${i}%)`;
12903
12897
  }
12904
12898
  const _y = {
12905
12899
  x: "dark",
@@ -13118,15 +13112,15 @@ function W3(e) {
13118
13112
  }
13119
13113
  }
13120
13114
  function G3(e) {
13121
- return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${lr(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
13115
+ return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${ar(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
13122
13116
  }
13123
13117
  const ju = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, rs = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
13124
13118
  function Q3(e, t, n) {
13125
- const r = rs(lr(e.r)), i = rs(lr(e.g)), s = rs(lr(e.b));
13119
+ const r = rs(ar(e.r)), i = rs(ar(e.g)), s = rs(ar(e.b));
13126
13120
  return {
13127
- r: Qr(ju(r + n * (rs(lr(t.r)) - r))),
13128
- g: Qr(ju(i + n * (rs(lr(t.g)) - i))),
13129
- b: Qr(ju(s + n * (rs(lr(t.b)) - s))),
13121
+ r: Qr(ju(r + n * (rs(ar(t.r)) - r))),
13122
+ g: Qr(ju(i + n * (rs(ar(t.g)) - i))),
13123
+ b: Qr(ju(s + n * (rs(ar(t.b)) - s))),
13130
13124
  a: e.a + n * (t.a - e.a)
13131
13125
  };
13132
13126
  }
@@ -13159,7 +13153,7 @@ class va {
13159
13153
  }
13160
13154
  get rgb() {
13161
13155
  var t = Lb(this._rgb);
13162
- return t && (t.a = lr(t.a)), t;
13156
+ return t && (t.a = ar(t.a)), t;
13163
13157
  }
13164
13158
  set rgb(t) {
13165
13159
  this._rgb = Oy(t);
@@ -13229,7 +13223,7 @@ class va {
13229
13223
  * (c) 2025 Chart.js Contributors
13230
13224
  * Released under the MIT License
13231
13225
  */
13232
- function rr() {
13226
+ function nr() {
13233
13227
  }
13234
13228
  const X3 = /* @__PURE__ */ (() => {
13235
13229
  let e = 0;
@@ -14006,7 +14000,7 @@ function Hb(e, t, n, r, i) {
14006
14000
  e.fill(), t.borderWidth > 0 && e.stroke();
14007
14001
  }
14008
14002
  }
14009
- function yr(e, t, n) {
14003
+ function gr(e, t, n) {
14010
14004
  return n = n || 0.5, !t || e && e.x > t.left - n && e.x < t.right + n && e.y > t.top - n && e.y < t.bottom + n;
14011
14005
  }
14012
14006
  function Zc(e, t) {
@@ -14429,9 +14423,9 @@ function kl(e, t, n) {
14429
14423
  return Math.max(Math.min(e, n), t);
14430
14424
  }
14431
14425
  function i5(e, t) {
14432
- let n, r, i, s, o, a = yr(e[0], t);
14426
+ let n, r, i, s, o, a = gr(e[0], t);
14433
14427
  for (n = 0, r = e.length; n < r; ++n)
14434
- o = s, s = a, a = n < r - 1 && yr(e[n + 1], t), s && (i = e[n], o && (i.cp1x = kl(i.cp1x, t.left, t.right), i.cp1y = kl(i.cp1y, t.top, t.bottom)), a && (i.cp2x = kl(i.cp2x, t.left, t.right), i.cp2y = kl(i.cp2y, t.top, t.bottom)));
14428
+ o = s, s = a, a = n < r - 1 && gr(e[n + 1], t), s && (i = e[n], o && (i.cp1x = kl(i.cp1x, t.left, t.right), i.cp1y = kl(i.cp1y, t.top, t.bottom)), a && (i.cp2x = kl(i.cp2x, t.left, t.right), i.cp2y = kl(i.cp2y, t.top, t.bottom)));
14435
14429
  }
14436
14430
  function s5(e, t, n, r, i) {
14437
14431
  let s, o, a, l;
@@ -14902,7 +14896,7 @@ class _5 {
14902
14896
  return this._charts.delete(t);
14903
14897
  }
14904
14898
  }
14905
- var or = /* @__PURE__ */ new _5();
14899
+ var sr = /* @__PURE__ */ new _5();
14906
14900
  const Ky = "transparent", k5 = {
14907
14901
  boolean(e, t, n) {
14908
14902
  return n > 0.5 ? t : e;
@@ -15048,7 +15042,7 @@ class n1 {
15048
15042
  }
15049
15043
  const r = this._createAnimations(t, n);
15050
15044
  if (r.length)
15051
- return or.add(this._chart, r), !0;
15045
+ return sr.add(this._chart, r), !0;
15052
15046
  }
15053
15047
  }
15054
15048
  function E5(e, t) {
@@ -15779,7 +15773,7 @@ function q5(e) {
15779
15773
  function Wu(e, t, n, r, i) {
15780
15774
  const s = [];
15781
15775
  return !i && !e.isPointInArea(t) || nu(e, n, t, function(a, l, c) {
15782
- !i && !yr(a, e.chartArea, 0) || a.inRange(t.x, t.y, r) && s.push({
15776
+ !i && !gr(a, e.chartArea, 0) || a.inRange(t.x, t.y, r) && s.push({
15783
15777
  element: a,
15784
15778
  datasetIndex: l,
15785
15779
  index: c
@@ -17616,7 +17610,7 @@ let ru = (Mr = class {
17616
17610
  console.error("Failed to create chart: can't acquire context from the given item");
17617
17611
  return;
17618
17612
  }
17619
- or.listen(this, "complete", hm), or.listen(this, "progress", U$), this._initialize(), this.attached && this.update();
17613
+ sr.listen(this, "complete", hm), sr.listen(this, "progress", U$), this._initialize(), this.attached && this.update();
17620
17614
  }
17621
17615
  get aspectRatio() {
17622
17616
  const { options: { aspectRatio: t, maintainAspectRatio: n }, width: r, height: i, _aspectRatio: s } = this;
@@ -17644,10 +17638,10 @@ let ru = (Mr = class {
17644
17638
  return Fy(this.canvas, this.ctx), this;
17645
17639
  }
17646
17640
  stop() {
17647
- return or.stop(this), this;
17641
+ return sr.stop(this), this;
17648
17642
  }
17649
17643
  resize(t, n) {
17650
- or.running(this) ? this._resizeBeforeDraw = {
17644
+ sr.running(this) ? this._resizeBeforeDraw = {
17651
17645
  width: t,
17652
17646
  height: n
17653
17647
  } : this._resize(t, n);
@@ -17837,7 +17831,7 @@ let ru = (Mr = class {
17837
17831
  render() {
17838
17832
  this.notifyPlugins("beforeRender", {
17839
17833
  cancelable: !0
17840
- }) !== !1 && (or.has(this) ? this.attached && !or.running(this) && or.start(this) : (this.draw(), hm({
17834
+ }) !== !1 && (sr.has(this) ? this.attached && !sr.running(this) && sr.start(this) : (this.draw(), hm({
17841
17835
  chart: this
17842
17836
  })));
17843
17837
  }
@@ -17889,7 +17883,7 @@ let ru = (Mr = class {
17889
17883
  this.notifyPlugins("beforeDatasetDraw", r) !== !1 && (i && Zc(n, i), t.controller.draw(), i && eu(n), r.cancelable = !1, this.notifyPlugins("afterDatasetDraw", r));
17890
17884
  }
17891
17885
  isPointInArea(t) {
17892
- return yr(t, this.chartArea, this._minPadding);
17886
+ return gr(t, this.chartArea, this._minPadding);
17893
17887
  }
17894
17888
  getElementsAtEventForMode(t, n, r, i) {
17895
17889
  const s = H5.modes[n];
@@ -17957,7 +17951,7 @@ let ru = (Mr = class {
17957
17951
  }
17958
17952
  _stop() {
17959
17953
  let t, n;
17960
- for (this.stop(), or.remove(this), t = 0, n = this.data.datasets.length; t < n; ++t)
17954
+ for (this.stop(), sr.remove(this), t = 0, n = this.data.datasets.length; t < n; ++t)
17961
17955
  this._destroyDatasetMeta(t);
17962
17956
  }
17963
17957
  destroy() {
@@ -18271,7 +18265,7 @@ class Zl extends Xi {
18271
18265
  }
18272
18266
  draw(n, r) {
18273
18267
  const i = this.options;
18274
- this.skip || i.radius < 0.1 || !yr(this, r, this.size(i) / 2) || (n.strokeStyle = i.borderColor, n.lineWidth = i.borderWidth, n.fillStyle = i.backgroundColor, Gd(n, i, this.x, this.y));
18268
+ this.skip || i.radius < 0.1 || !gr(this, r, this.size(i) / 2) || (n.strokeStyle = i.borderColor, n.lineWidth = i.borderWidth, n.fillStyle = i.backgroundColor, Gd(n, i, this.x, this.y));
18275
18269
  }
18276
18270
  getRange() {
18277
18271
  const n = this.options || {};
@@ -19134,7 +19128,7 @@ const zo = {
19134
19128
  function qn(e, t) {
19135
19129
  return t && (at(t) ? Array.prototype.push.apply(e, t) : e.push(t)), e;
19136
19130
  }
19137
- function ar(e) {
19131
+ function or(e) {
19138
19132
  return (typeof e == "string" || e instanceof String) && e.indexOf(`
19139
19133
  `) > -1 ? e.split(`
19140
19134
  `) : e;
@@ -19215,7 +19209,7 @@ function Ml(e, t, n) {
19215
19209
  return t === "center" ? e.x + e.width / 2 : t === "right" ? e.x + e.width - r.right : e.x + r.left;
19216
19210
  }
19217
19211
  function Em(e) {
19218
- return qn([], ar(e));
19212
+ return qn([], or(e));
19219
19213
  }
19220
19214
  function RM(e, t, n) {
19221
19215
  return li(e, {
@@ -19229,7 +19223,7 @@ function Am(e, t) {
19229
19223
  return n ? e.override(n) : e;
19230
19224
  }
19231
19225
  const b1 = {
19232
- beforeTitle: rr,
19226
+ beforeTitle: nr,
19233
19227
  title(e) {
19234
19228
  if (e.length > 0) {
19235
19229
  const t = e[0], n = t.chart.data.labels, r = n ? n.length : 0;
@@ -19242,9 +19236,9 @@ const b1 = {
19242
19236
  }
19243
19237
  return "";
19244
19238
  },
19245
- afterTitle: rr,
19246
- beforeBody: rr,
19247
- beforeLabel: rr,
19239
+ afterTitle: nr,
19240
+ beforeBody: nr,
19241
+ beforeLabel: nr,
19248
19242
  label(e) {
19249
19243
  if (this && this.options && this.options.mode === "dataset")
19250
19244
  return e.label + ": " + e.formattedValue || e.formattedValue;
@@ -19274,11 +19268,11 @@ const b1 = {
19274
19268
  rotation: n.rotation
19275
19269
  };
19276
19270
  },
19277
- afterLabel: rr,
19278
- afterBody: rr,
19279
- beforeFooter: rr,
19280
- footer: rr,
19281
- afterFooter: rr
19271
+ afterLabel: nr,
19272
+ afterBody: nr,
19273
+ beforeFooter: nr,
19274
+ footer: nr,
19275
+ afterFooter: nr
19282
19276
  };
19283
19277
  function qt(e, t, n, r) {
19284
19278
  const i = e[t].call(n, r);
@@ -19304,7 +19298,7 @@ class Zd extends Xi {
19304
19298
  getTitle(t, n) {
19305
19299
  const { callbacks: r } = n, i = qt(r, "beforeTitle", this, t), s = qt(r, "title", this, t), o = qt(r, "afterTitle", this, t);
19306
19300
  let a = [];
19307
- return a = qn(a, ar(i)), a = qn(a, ar(s)), a = qn(a, ar(o)), a;
19301
+ return a = qn(a, or(i)), a = qn(a, or(s)), a = qn(a, or(o)), a;
19308
19302
  }
19309
19303
  getBeforeBody(t, n) {
19310
19304
  return Em(qt(n.callbacks, "beforeBody", this, t));
@@ -19317,7 +19311,7 @@ class Zd extends Xi {
19317
19311
  lines: [],
19318
19312
  after: []
19319
19313
  }, a = Am(r, s);
19320
- qn(o.before, ar(qt(a, "beforeLabel", this, s))), qn(o.lines, qt(a, "label", this, s)), qn(o.after, ar(qt(a, "afterLabel", this, s))), i.push(o);
19314
+ qn(o.before, or(qt(a, "beforeLabel", this, s))), qn(o.lines, qt(a, "label", this, s)), qn(o.after, or(qt(a, "afterLabel", this, s))), i.push(o);
19321
19315
  }), i;
19322
19316
  }
19323
19317
  getAfterBody(t, n) {
@@ -19326,7 +19320,7 @@ class Zd extends Xi {
19326
19320
  getFooter(t, n) {
19327
19321
  const { callbacks: r } = n, i = qt(r, "beforeFooter", this, t), s = qt(r, "footer", this, t), o = qt(r, "afterFooter", this, t);
19328
19322
  let a = [];
19329
- return a = qn(a, ar(i)), a = qn(a, ar(s)), a = qn(a, ar(o)), a;
19323
+ return a = qn(a, or(i)), a = qn(a, or(s)), a = qn(a, or(o)), a;
19330
19324
  }
19331
19325
  _createItems(t) {
19332
19326
  const n = this._active, r = this.chart.data, i = [], s = [], o = [];
@@ -19894,16 +19888,16 @@ function VM(e, t) {
19894
19888
  if (!t)
19895
19889
  return !0;
19896
19890
  const { left: n, top: r, right: i, bottom: s } = e;
19897
- return !(yr({
19891
+ return !(gr({
19898
19892
  x: n,
19899
19893
  y: r
19900
- }, t) || yr({
19894
+ }, t) || gr({
19901
19895
  x: n,
19902
19896
  y: s
19903
- }, t) || yr({
19897
+ }, t) || gr({
19904
19898
  x: i,
19905
19899
  y: r
19906
- }, t) || yr({
19900
+ }, t) || gr({
19907
19901
  x: i,
19908
19902
  y: s
19909
19903
  }, t));
@@ -21077,7 +21071,7 @@ var PD = function() {
21077
21071
  /* @__PURE__ */ v(Ct, { size: "2", children: "Query - Best fish restaurant in Nijmegen" }),
21078
21072
  /* @__PURE__ */ D("div", { children: [
21079
21073
  /* @__PURE__ */ v("p", { children: "AI Response:" }),
21080
- /* @__PURE__ */ v(Gn, { href: "#todo", children: "Show more" })
21074
+ /* @__PURE__ */ v(yr, { href: "#todo", children: "Show more" })
21081
21075
  ] }),
21082
21076
  /* @__PURE__ */ D("div", { children: [
21083
21077
  /* @__PURE__ */ v("p", { children: "Extracted brands:" }),
@@ -21094,11 +21088,11 @@ var PD = function() {
21094
21088
  ] }) }),
21095
21089
  /* @__PURE__ */ D(we.Body, { children: [
21096
21090
  /* @__PURE__ */ D(we.Row, { children: [
21097
- /* @__PURE__ */ v(we.Cell, { children: /* @__PURE__ */ v(Gn, { href: "https://example.com", target: "_blank", children: "https://example.com" }) }),
21091
+ /* @__PURE__ */ v(we.Cell, { children: /* @__PURE__ */ v(yr, { href: "https://example.com", target: "_blank", children: "https://example.com" }) }),
21098
21092
  /* @__PURE__ */ v(we.Cell, { children: "Example Brand" })
21099
21093
  ] }),
21100
21094
  /* @__PURE__ */ D(we.Row, { children: [
21101
- /* @__PURE__ */ v(we.Cell, { children: /* @__PURE__ */ v(Gn, { href: "https://example2.com", target: "_blank", children: "https://example2.com" }) }),
21095
+ /* @__PURE__ */ v(we.Cell, { children: /* @__PURE__ */ v(yr, { href: "https://example2.com", target: "_blank", children: "https://example2.com" }) }),
21102
21096
  /* @__PURE__ */ v(we.Cell, { children: "Example Brand 2" })
21103
21097
  ] })
21104
21098
  ] })
@@ -22041,7 +22035,7 @@ var h4 = { data: "" }, g4 = (e) => typeof window == "object" ? ((e ? e.querySele
22041
22035
  s[0] == "@" ? s[1] == "i" ? n = s + " " + o + ";" : r += s[1] == "f" ? xi(o, s) : s + "{" + xi(o, s[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += xi(o, t ? t.replace(/([^,])+/g, (a) => s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, a) : a ? a + " " + l : l)) : s) : o != null && (s = /^--/.test(s) ? s : s.replace(/[A-Z]/g, "-$&").toLowerCase(), i += xi.p ? xi.p(s, o) : s + ":" + o + ";");
22042
22036
  }
22043
22037
  return n + (t && i ? t + "{" + i + "}" : i) + r;
22044
- }, ir = {}, D1 = (e) => {
22038
+ }, rr = {}, D1 = (e) => {
22045
22039
  if (typeof e == "object") {
22046
22040
  let t = "";
22047
22041
  for (let n in e) t += n + D1(e[n]);
@@ -22049,23 +22043,23 @@ var h4 = { data: "" }, g4 = (e) => typeof window == "object" ? ((e ? e.querySele
22049
22043
  }
22050
22044
  return e;
22051
22045
  }, p4 = (e, t, n, r, i) => {
22052
- let s = D1(e), o = ir[s] || (ir[s] = ((l) => {
22046
+ let s = D1(e), o = rr[s] || (rr[s] = ((l) => {
22053
22047
  let c = 0, u = 11;
22054
22048
  for (; c < l.length; ) u = 101 * u + l.charCodeAt(c++) >>> 0;
22055
22049
  return "go" + u;
22056
22050
  })(s));
22057
- if (!ir[o]) {
22051
+ if (!rr[o]) {
22058
22052
  let l = s !== e ? e : ((c) => {
22059
22053
  let u, d, f = [{}];
22060
22054
  for (; u = y4.exec(c.replace(m4, "")); ) u[4] ? f.shift() : u[3] ? (d = u[3].replace(Gm, " ").trim(), f.unshift(f[0][d] = f[0][d] || {})) : f[0][u[1]] = u[2].replace(Gm, " ").trim();
22061
22055
  return f[0];
22062
22056
  })(e);
22063
- ir[o] = xi(i ? { ["@keyframes " + o]: l } : l, n ? "" : "." + o);
22057
+ rr[o] = xi(i ? { ["@keyframes " + o]: l } : l, n ? "" : "." + o);
22064
22058
  }
22065
- let a = n && ir.g ? ir.g : null;
22066
- return n && (ir.g = ir[o]), ((l, c, u, d) => {
22059
+ let a = n && rr.g ? rr.g : null;
22060
+ return n && (rr.g = rr[o]), ((l, c, u, d) => {
22067
22061
  d ? c.data = c.data.replace(d, l) : c.data.indexOf(l) === -1 && (c.data = u ? l + c.data : c.data + l);
22068
- })(ir[o], t, r, a), o;
22062
+ })(rr[o], t, r, a), o;
22069
22063
  }, v4 = (e, t, n) => e.reduce((r, i, s) => {
22070
22064
  let o = t[s];
22071
22065
  if (o && o.call) {
@@ -22350,7 +22344,7 @@ function pn(e, t) {
22350
22344
  return e ? e === t || e.contains(t) : !1;
22351
22345
  }
22352
22346
  function Uo(e, t = !1) {
22353
- const { activeElement: n } = Yn(e);
22347
+ const { activeElement: n } = Qn(e);
22354
22348
  if (!(n != null && n.nodeName))
22355
22349
  return null;
22356
22350
  if (F1(n) && n.contentDocument)
@@ -22358,7 +22352,7 @@ function Uo(e, t = !1) {
22358
22352
  if (t) {
22359
22353
  const r = n.getAttribute("aria-activedescendant");
22360
22354
  if (r) {
22361
- const i = Yn(n).getElementById(r);
22355
+ const i = Qn(n).getElementById(r);
22362
22356
  if (i)
22363
22357
  return i;
22364
22358
  }
@@ -22366,9 +22360,9 @@ function Uo(e, t = !1) {
22366
22360
  return n;
22367
22361
  }
22368
22362
  function M4(e) {
22369
- return Yn(e).defaultView || window;
22363
+ return Qn(e).defaultView || window;
22370
22364
  }
22371
- function Yn(e) {
22365
+ function Qn(e) {
22372
22366
  return e ? e.ownerDocument || e : document;
22373
22367
  }
22374
22368
  function F1(e) {
@@ -22649,7 +22643,7 @@ function it(e) {
22649
22643
  }
22650
22644
  var X4 = ["id", "name", "validationState", "required", "disabled", "readOnly"];
22651
22645
  function J4(e) {
22652
- const t = `form-control-${xn()}`, n = Le({
22646
+ const t = `form-control-${Sn()}`, n = Le({
22653
22647
  id: t
22654
22648
  }, e), [r, i] = ie(), [s, o] = ie(), [a, l] = ie(), [c, u] = ie(), d = (y, m, p) => {
22655
22649
  const b = p != null || r() != null;
@@ -22867,7 +22861,7 @@ function c6(e) {
22867
22861
  return r;
22868
22862
  r = r.parentElement;
22869
22863
  }
22870
- return Yn(r).body;
22864
+ return Qn(r).body;
22871
22865
  }
22872
22866
  function u6(e, t) {
22873
22867
  pe(() => {
@@ -23110,7 +23104,7 @@ function x6(e) {
23110
23104
  return ed.has(r) && (i = ed.get(r)), i || (i = new Intl.Collator(t(), e), ed.set(r, i)), i;
23111
23105
  });
23112
23106
  }
23113
- var cr = class J1 extends Set {
23107
+ var lr = class J1 extends Set {
23114
23108
  constructor(n, r, i) {
23115
23109
  super(n);
23116
23110
  ge(this, "anchorKey");
@@ -23122,7 +23116,7 @@ function S6(e) {
23122
23116
  const [t, n] = rl(e);
23123
23117
  return [() => {
23124
23118
  var i;
23125
- return (i = t()) != null ? i : new cr();
23119
+ return (i = t()) != null ? i : new lr();
23126
23120
  }, n];
23127
23121
  }
23128
23122
  function Z1(e) {
@@ -23132,7 +23126,7 @@ function as(e) {
23132
23126
  return au() ? e.metaKey : e.ctrlKey;
23133
23127
  }
23134
23128
  function op(e) {
23135
- return new cr(e);
23129
+ return new lr(e);
23136
23130
  }
23137
23131
  function C6(e, t) {
23138
23132
  if (e.size !== t.size)
@@ -23154,7 +23148,7 @@ function _6(e) {
23154
23148
  return y != null ? op(y) : y;
23155
23149
  }), a = j(() => {
23156
23150
  const y = W(t.defaultSelectedKeys);
23157
- return y != null ? op(y) : new cr();
23151
+ return y != null ? op(y) : new lr();
23158
23152
  }), [l, c] = S6({
23159
23153
  value: o,
23160
23154
  defaultValue: a,
@@ -23548,7 +23542,7 @@ var P6 = class {
23548
23542
  const t = this.getKey(e);
23549
23543
  if (t == null)
23550
23544
  return;
23551
- const n = this.state.selectedKeys(), r = n.anchorKey || t, i = new cr(n, r, t);
23545
+ const n = this.state.selectedKeys(), r = n.anchorKey || t, i = new lr(n, r, t);
23552
23546
  for (const s of this.getKeyRange(
23553
23547
  r,
23554
23548
  n.currentKey || t
@@ -23588,7 +23582,7 @@ var P6 = class {
23588
23582
  const t = this.getKey(e);
23589
23583
  if (t == null)
23590
23584
  return;
23591
- const n = new cr(this.state.selectedKeys());
23585
+ const n = new lr(this.state.selectedKeys());
23592
23586
  n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection() && n.size === 0) && this.state.setSelectedKeys(n);
23593
23587
  }
23594
23588
  /** Replaces the selection with only the given key. */
@@ -23598,14 +23592,14 @@ var P6 = class {
23598
23592
  const t = this.getKey(e);
23599
23593
  if (t == null)
23600
23594
  return;
23601
- const n = this.canSelectItem(t) ? new cr([t], t, t) : new cr();
23595
+ const n = this.canSelectItem(t) ? new lr([t], t, t) : new lr();
23602
23596
  this.state.setSelectedKeys(n);
23603
23597
  }
23604
23598
  /** Replaces the selection with the given keys. */
23605
23599
  setSelectedKeys(e) {
23606
23600
  if (this.selectionMode() === "none")
23607
23601
  return;
23608
- const t = new cr();
23602
+ const t = new lr();
23609
23603
  for (const n of e) {
23610
23604
  const r = this.getKey(n);
23611
23605
  if (r != null && (t.add(r), this.selectionMode() === "single"))
@@ -23622,7 +23616,7 @@ var P6 = class {
23622
23616
  */
23623
23617
  clearSelection() {
23624
23618
  const e = this.state.selectedKeys();
23625
- !this.disallowEmptySelection() && e.size > 0 && this.state.setSelectedKeys(new cr());
23619
+ !this.disallowEmptySelection() && e.size > 0 && this.state.setSelectedKeys(new lr());
23626
23620
  }
23627
23621
  /**
23628
23622
  * Toggles between select all and an empty selection.
@@ -23814,14 +23808,14 @@ function N6() {
23814
23808
  }
23815
23809
  function B6(e) {
23816
23810
  if (hh() && !hf) {
23817
- const t = Yn(e);
23811
+ const t = Qn(e);
23818
23812
  nw = document.body.style.pointerEvents, t.body.style.pointerEvents = "none", hf = !0;
23819
23813
  }
23820
23814
  }
23821
23815
  function q6(e) {
23822
23816
  if (hh())
23823
23817
  return;
23824
- const t = Yn(e);
23818
+ const t = Qn(e);
23825
23819
  t.body.style.pointerEvents = nw, t.body.style.length === 0 && t.body.removeAttribute("style"), hf = !1;
23826
23820
  }
23827
23821
  var Qt = {
@@ -24475,10 +24469,10 @@ function Or(e) {
24475
24469
  function aw(e) {
24476
24470
  return e instanceof Node || e instanceof an(e).Node;
24477
24471
  }
24478
- function Tn(e) {
24472
+ function $n(e) {
24479
24473
  return e instanceof Element || e instanceof an(e).Element;
24480
24474
  }
24481
- function Xn(e) {
24475
+ function Yn(e) {
24482
24476
  return e instanceof HTMLElement || e instanceof an(e).HTMLElement;
24483
24477
  }
24484
24478
  function dp(e) {
@@ -24490,7 +24484,7 @@ function il(e) {
24490
24484
  overflowX: n,
24491
24485
  overflowY: r,
24492
24486
  display: i
24493
- } = $n(e);
24487
+ } = Mn(e);
24494
24488
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
24495
24489
  }
24496
24490
  function aI(e) {
@@ -24506,12 +24500,12 @@ function uu(e) {
24506
24500
  });
24507
24501
  }
24508
24502
  function ph(e) {
24509
- const t = vh(), n = Tn(e) ? $n(e) : e;
24503
+ const t = vh(), n = $n(e) ? Mn(e) : e;
24510
24504
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
24511
24505
  }
24512
24506
  function lI(e) {
24513
24507
  let t = ni(e);
24514
- for (; Xn(t) && !Ys(t); ) {
24508
+ for (; Yn(t) && !Ys(t); ) {
24515
24509
  if (ph(t))
24516
24510
  return t;
24517
24511
  if (uu(t))
@@ -24526,11 +24520,11 @@ function vh() {
24526
24520
  function Ys(e) {
24527
24521
  return ["html", "body", "#document"].includes(uo(e));
24528
24522
  }
24529
- function $n(e) {
24523
+ function Mn(e) {
24530
24524
  return an(e).getComputedStyle(e);
24531
24525
  }
24532
24526
  function du(e) {
24533
- return Tn(e) ? {
24527
+ return $n(e) ? {
24534
24528
  scrollLeft: e.scrollLeft,
24535
24529
  scrollTop: e.scrollTop
24536
24530
  } : {
@@ -24552,7 +24546,7 @@ function ni(e) {
24552
24546
  }
24553
24547
  function lw(e) {
24554
24548
  const t = ni(e);
24555
- return Ys(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Xn(t) && il(t) ? t : lw(t);
24549
+ return Ys(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Yn(t) && il(t) ? t : lw(t);
24556
24550
  }
24557
24551
  function Oa(e, t, n) {
24558
24552
  var r;
@@ -24561,9 +24555,9 @@ function Oa(e, t, n) {
24561
24555
  return s ? t.concat(o, o.visualViewport || [], il(i) ? i : [], o.frameElement && n ? Oa(o.frameElement) : []) : t.concat(i, Oa(i, [], n));
24562
24556
  }
24563
24557
  function cw(e) {
24564
- const t = $n(e);
24558
+ const t = Mn(e);
24565
24559
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
24566
- const i = Xn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = Oc(n) !== s || Oc(r) !== o;
24560
+ const i = Yn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = Oc(n) !== s || Oc(r) !== o;
24567
24561
  return a && (n = s, r = o), {
24568
24562
  width: n,
24569
24563
  height: r,
@@ -24571,11 +24565,11 @@ function cw(e) {
24571
24565
  };
24572
24566
  }
24573
24567
  function bh(e) {
24574
- return Tn(e) ? e : e.contextElement;
24568
+ return $n(e) ? e : e.contextElement;
24575
24569
  }
24576
24570
  function ms(e) {
24577
24571
  const t = bh(e);
24578
- if (!Xn(t))
24572
+ if (!Yn(t))
24579
24573
  return ei(1);
24580
24574
  const n = t.getBoundingClientRect(), {
24581
24575
  width: r,
@@ -24603,14 +24597,14 @@ function Qi(e, t, n, r) {
24603
24597
  t === void 0 && (t = !1), n === void 0 && (n = !1);
24604
24598
  const i = e.getBoundingClientRect(), s = bh(e);
24605
24599
  let o = ei(1);
24606
- t && (r ? Tn(r) && (o = ms(r)) : o = ms(e));
24600
+ t && (r ? $n(r) && (o = ms(r)) : o = ms(e));
24607
24601
  const a = uI(s, n, r) ? uw(s) : ei(0);
24608
24602
  let l = (i.left + a.x) / o.x, c = (i.top + a.y) / o.y, u = i.width / o.x, d = i.height / o.y;
24609
24603
  if (s) {
24610
- const f = an(s), h = r && Tn(r) ? an(r) : r;
24604
+ const f = an(s), h = r && $n(r) ? an(r) : r;
24611
24605
  let g = f, y = g.frameElement;
24612
24606
  for (; y && r && h !== g; ) {
24613
- const m = ms(y), p = y.getBoundingClientRect(), b = $n(y), x = p.left + (y.clientLeft + parseFloat(b.paddingLeft)) * m.x, S = p.top + (y.clientTop + parseFloat(b.paddingTop)) * m.y;
24607
+ const m = ms(y), p = y.getBoundingClientRect(), b = Mn(y), x = p.left + (y.clientLeft + parseFloat(b.paddingLeft)) * m.x, S = p.top + (y.clientTop + parseFloat(b.paddingTop)) * m.y;
24614
24608
  l *= m.x, c *= m.y, u *= m.x, d *= m.y, l += x, c += S, g = an(y), y = g.frameElement;
24615
24609
  }
24616
24610
  }
@@ -24635,8 +24629,8 @@ function dI(e) {
24635
24629
  scrollLeft: 0,
24636
24630
  scrollTop: 0
24637
24631
  }, c = ei(1);
24638
- const u = ei(0), d = Xn(r);
24639
- if ((d || !d && !s) && ((uo(r) !== "body" || il(o)) && (l = du(r)), Xn(r))) {
24632
+ const u = ei(0), d = Yn(r);
24633
+ if ((d || !d && !s) && ((uo(r) !== "body" || il(o)) && (l = du(r)), Yn(r))) {
24640
24634
  const f = Qi(r);
24641
24635
  c = ms(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
24642
24636
  }
@@ -24657,7 +24651,7 @@ function hI(e) {
24657
24651
  const t = Or(e), n = du(e), r = e.ownerDocument.body, i = nn(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = nn(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
24658
24652
  let o = -n.scrollLeft + dw(e);
24659
24653
  const a = -n.scrollTop;
24660
- return $n(r).direction === "rtl" && (o += nn(t.clientWidth, r.clientWidth) - i), {
24654
+ return Mn(r).direction === "rtl" && (o += nn(t.clientWidth, r.clientWidth) - i), {
24661
24655
  width: i,
24662
24656
  height: s,
24663
24657
  x: o,
@@ -24680,7 +24674,7 @@ function gI(e, t) {
24680
24674
  };
24681
24675
  }
24682
24676
  function yI(e, t) {
24683
- const n = Qi(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = Xn(e) ? ms(e) : ei(1), o = e.clientWidth * s.x, a = e.clientHeight * s.y, l = i * s.x, c = r * s.y;
24677
+ const n = Qi(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = Yn(e) ? ms(e) : ei(1), o = e.clientWidth * s.x, a = e.clientHeight * s.y, l = i * s.x, c = r * s.y;
24684
24678
  return {
24685
24679
  width: o,
24686
24680
  height: a,
@@ -24694,7 +24688,7 @@ function fp(e, t, n) {
24694
24688
  r = gI(e, n);
24695
24689
  else if (t === "document")
24696
24690
  r = hI(Or(e));
24697
- else if (Tn(t))
24691
+ else if ($n(t))
24698
24692
  r = yI(t, n);
24699
24693
  else {
24700
24694
  const i = uw(e);
@@ -24708,17 +24702,17 @@ function fp(e, t, n) {
24708
24702
  }
24709
24703
  function fw(e, t) {
24710
24704
  const n = ni(e);
24711
- return n === t || !Tn(n) || Ys(n) ? !1 : $n(n).position === "fixed" || fw(n, t);
24705
+ return n === t || !$n(n) || Ys(n) ? !1 : Mn(n).position === "fixed" || fw(n, t);
24712
24706
  }
24713
24707
  function mI(e, t) {
24714
24708
  const n = t.get(e);
24715
24709
  if (n)
24716
24710
  return n;
24717
- let r = Oa(e, [], !1).filter((a) => Tn(a) && uo(a) !== "body"), i = null;
24718
- const s = $n(e).position === "fixed";
24711
+ let r = Oa(e, [], !1).filter((a) => $n(a) && uo(a) !== "body"), i = null;
24712
+ const s = Mn(e).position === "fixed";
24719
24713
  let o = s ? ni(e) : e;
24720
- for (; Tn(o) && !Ys(o); ) {
24721
- const a = $n(o), l = ph(o);
24714
+ for (; $n(o) && !Ys(o); ) {
24715
+ const a = Mn(o), l = ph(o);
24722
24716
  !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || il(o) && !l && fw(e, o)) ? r = r.filter((u) => u !== o) : i = a, o = ni(o);
24723
24717
  }
24724
24718
  return t.set(e, r), r;
@@ -24752,7 +24746,7 @@ function vI(e) {
24752
24746
  };
24753
24747
  }
24754
24748
  function bI(e, t, n) {
24755
- const r = Xn(t), i = Or(t), s = n === "fixed", o = Qi(e, !0, s, t);
24749
+ const r = Yn(t), i = Or(t), s = n === "fixed", o = Qi(e, !0, s, t);
24756
24750
  let a = {
24757
24751
  scrollLeft: 0,
24758
24752
  scrollTop: 0
@@ -24772,19 +24766,19 @@ function bI(e, t, n) {
24772
24766
  };
24773
24767
  }
24774
24768
  function td(e) {
24775
- return $n(e).position === "static";
24769
+ return Mn(e).position === "static";
24776
24770
  }
24777
24771
  function hp(e, t) {
24778
- return !Xn(e) || $n(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
24772
+ return !Yn(e) || Mn(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
24779
24773
  }
24780
24774
  function hw(e, t) {
24781
24775
  const n = an(e);
24782
24776
  if (uu(e))
24783
24777
  return n;
24784
- if (!Xn(e)) {
24778
+ if (!Yn(e)) {
24785
24779
  let i = ni(e);
24786
24780
  for (; i && !Ys(i); ) {
24787
- if (Tn(i) && !td(i))
24781
+ if ($n(i) && !td(i))
24788
24782
  return i;
24789
24783
  i = ni(i);
24790
24784
  }
@@ -24808,7 +24802,7 @@ var wI = async function(e) {
24808
24802
  };
24809
24803
  };
24810
24804
  function xI(e) {
24811
- return $n(e).direction === "rtl";
24805
+ return Mn(e).direction === "rtl";
24812
24806
  }
24813
24807
  var gw = {
24814
24808
  convertOffsetParentRelativeRectToViewportRelativeRect: dI,
@@ -24819,7 +24813,7 @@ var gw = {
24819
24813
  getClientRects: fI,
24820
24814
  getDimensions: vI,
24821
24815
  getScale: ms,
24822
- isElement: Tn,
24816
+ isElement: $n,
24823
24817
  isRTL: xI
24824
24818
  };
24825
24819
  function SI(e, t) {
@@ -25181,7 +25175,7 @@ function qI(e) {
25181
25175
  var r, i;
25182
25176
  if (W(e.isDisabled))
25183
25177
  return;
25184
- const n = (i = (r = e.ownerDocument) == null ? void 0 : r.call(e)) != null ? i : Yn();
25178
+ const n = (i = (r = e.ownerDocument) == null ? void 0 : r.call(e)) != null ? i : Qn();
25185
25179
  n.addEventListener("keydown", t), be(() => {
25186
25180
  n.removeEventListener("keydown", t);
25187
25181
  });
@@ -25190,7 +25184,7 @@ function qI(e) {
25190
25184
  var mp = "interactOutside.pointerDownOutside", pp = "interactOutside.focusOutside";
25191
25185
  function jI(e, t) {
25192
25186
  let n, r = G4;
25193
- const i = () => Yn(t()), s = (d) => {
25187
+ const i = () => Qn(t()), s = (d) => {
25194
25188
  var f;
25195
25189
  return (f = e.onPointerDownOutside) == null ? void 0 : f.call(e, d);
25196
25190
  }, o = (d) => {
@@ -25283,7 +25277,7 @@ function HI(e) {
25283
25277
  (f = r.onFocusOutside) == null || f.call(r, d), (h = r.onInteractOutside) == null || h.call(r, d), d.defaultPrevented || (g = r.onDismiss) == null || g.call(r);
25284
25278
  }
25285
25279
  }, () => t), qI({
25286
- ownerDocument: () => Yn(t),
25280
+ ownerDocument: () => Qn(t),
25287
25281
  onEscapeKeyDown: (d) => {
25288
25282
  var f;
25289
25283
  !t || !Qt.isTopMostLayer(t) || ((f = r.onEscapeKeyDown) == null || f.call(r, d), !d.defaultPrevented && r.onDismiss && (d.preventDefault(), r.onDismiss()));
@@ -25378,7 +25372,7 @@ function sl() {
25378
25372
  return e;
25379
25373
  }
25380
25374
  function xw(e) {
25381
- const t = nl(), n = bw(), r = `${t.generateId("item")}-${xn()}`, i = Le({
25375
+ const t = nl(), n = bw(), r = `${t.generateId("item")}-${Sn()}`, i = Le({
25382
25376
  id: r
25383
25377
  }, e), [s, o] = Ve(i, ["value", "disabled", "onPointerDown"]), [a, l] = ie(), [c, u] = ie(), [d, f] = ie(), [h, g] = ie(), [y, m] = ie(!1), p = j(() => n.isSelectedValue(s.value)), b = j(() => s.disabled || t.isDisabled() || !1), x = (O) => {
25384
25378
  tt(O, s.onPointerDown), y() && O.preventDefault();
@@ -25558,7 +25552,7 @@ function Ew(e) {
25558
25552
  }
25559
25553
  function Aw(e) {
25560
25554
  let t;
25561
- const n = `radiogroup-${xn()}`, r = Le({
25555
+ const n = `radiogroup-${Sn()}`, r = Le({
25562
25556
  id: n,
25563
25557
  orientation: "vertical"
25564
25558
  }, e), [i, s, o] = Ve(r, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], X4), [a, l] = rl({
@@ -25796,7 +25790,7 @@ function WI(e, t) {
25796
25790
  }, a = (g) => {
25797
25791
  var y;
25798
25792
  return (y = e.onUnmountAutoFocus) == null ? void 0 : y.call(e, g);
25799
- }, l = () => Yn(t()), c = () => {
25793
+ }, l = () => Qn(t()), c = () => {
25800
25794
  const g = l().createElement("span");
25801
25795
  return g.setAttribute("data-focus-trap", ""), g.tabIndex = 0, Object.assign(g.style, j1), g;
25802
25796
  }, u = () => {
@@ -26003,7 +25997,7 @@ var Bl = /* @__PURE__ */ new Map(), XI = (e) => {
26003
25997
  allowPinchZoom: !1
26004
25998
  },
26005
25999
  e
26006
- ), n = xn();
26000
+ ), n = Sn();
26007
26001
  let r = [0, 0], i = null, s = null;
26008
26002
  pe(() => {
26009
26003
  Pt(t.enabled) && (Sp((c) => [...c, n]), be(() => {
@@ -26119,7 +26113,7 @@ function Ch() {
26119
26113
  return e;
26120
26114
  }
26121
26115
  var Mw = _t();
26122
- function er() {
26116
+ function Zn() {
26123
26117
  const e = kt(Mw);
26124
26118
  if (e === void 0)
26125
26119
  throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");
@@ -26127,8 +26121,8 @@ function er() {
26127
26121
  }
26128
26122
  function _h(e) {
26129
26123
  let t;
26130
- const n = er(), r = Er(), i = Le({
26131
- id: n.generateId(`item-${xn()}`)
26124
+ const n = Zn(), r = Er(), i = Le({
26125
+ id: n.generateId(`item-${Sn()}`)
26132
26126
  }, e), [s, o] = Ve(i, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = ie(), [c, u] = ie(), [d, f] = ie(), h = () => r.listState().selectionManager(), g = () => o.id, y = () => h().focusedKey() === g(), m = () => {
26133
26127
  var k;
26134
26128
  (k = s.onSelect) == null || k.call(s), s.closeOnSelect && setTimeout(() => {
@@ -26271,7 +26265,7 @@ var Ea = {
26271
26265
  last: (e) => e === "horizontal" ? "ArrowUp" : "ArrowLeft"
26272
26266
  };
26273
26267
  function Iw(e) {
26274
- const t = er(), n = Er(), r = fu(), {
26268
+ const t = Zn(), n = Er(), r = fu(), {
26275
26269
  direction: i
26276
26270
  } = ci(), s = Le({
26277
26271
  id: t.generateId("trigger")
@@ -26371,10 +26365,10 @@ function Lw() {
26371
26365
  }
26372
26366
  function Rw(e) {
26373
26367
  let t;
26374
- const n = er(), r = Er(), i = fu(), s = Lw(), {
26368
+ const n = Zn(), r = Er(), i = fu(), s = Lw(), {
26375
26369
  direction: o
26376
26370
  } = ci(), a = Le({
26377
- id: n.generateId(`content-${xn()}`)
26371
+ id: n.generateId(`content-${Sn()}`)
26378
26372
  }, e), [l, c] = Ve(a, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
26379
26373
  let u = 0;
26380
26374
  const d = () => r.parentMenuContext() == null && i === void 0 && n.isModal(), f = VI({
@@ -26493,7 +26487,7 @@ function Rw(e) {
26493
26487
  }
26494
26488
  function lL(e) {
26495
26489
  let t;
26496
- const n = er(), r = Er(), [i, s] = Ve(e, ["ref"]);
26490
+ const n = Zn(), r = Er(), [i, s] = Ve(e, ["ref"]);
26497
26491
  return sL({
26498
26492
  element: () => t != null ? t : null,
26499
26493
  enabled: () => r.contentPresent() && n.preventScroll()
@@ -26514,8 +26508,8 @@ function cL() {
26514
26508
  return e;
26515
26509
  }
26516
26510
  function kh(e) {
26517
- const t = er(), n = Le({
26518
- id: t.generateId(`group-${xn()}`)
26511
+ const t = Zn(), n = Le({
26512
+ id: t.generateId(`group-${Sn()}`)
26519
26513
  }, e), [r, i] = ie(), s = {
26520
26514
  generateId: tl(() => n.id),
26521
26515
  registerLabelId: vn(i)
@@ -26620,7 +26614,7 @@ function uL() {
26620
26614
  return e;
26621
26615
  }
26622
26616
  function Vw(e) {
26623
- const n = er().generateId(`radiogroup-${xn()}`), r = Le({
26617
+ const n = Zn().generateId(`radiogroup-${Sn()}`), r = Le({
26624
26618
  id: n
26625
26619
  }, e), [i, s] = Ve(r, ["value", "defaultValue", "onChange", "disabled"]), [o, a] = rl({
26626
26620
  value: () => i.value,
@@ -26678,7 +26672,7 @@ function fL(e, t) {
26678
26672
  return t ? Q4([e.clientX, e.clientY], t) : !1;
26679
26673
  }
26680
26674
  function Gw(e) {
26681
- const t = er(), n = W1(), r = Tw(), i = fu(), s = Lw(), o = Le({
26675
+ const t = Zn(), n = W1(), r = Tw(), i = fu(), s = Lw(), o = Le({
26682
26676
  placement: t.orientation() === "horizontal" ? "bottom-start" : "right-start"
26683
26677
  }, e), [a, l] = Ve(o, ["open", "defaultOpen", "onOpenChange"]);
26684
26678
  let c = 0, u = null, d = "right";
@@ -26822,7 +26816,7 @@ var hL = {
26822
26816
  close: (e, t) => e === "ltr" ? [t === "horizontal" ? "ArrowLeft" : "ArrowUp"] : [t === "horizontal" ? "ArrowRight" : "ArrowDown"]
26823
26817
  };
26824
26818
  function Yw(e) {
26825
- const t = Er(), n = er(), [r, i] = Ve(e, ["onFocusOutside", "onKeyDown"]), {
26819
+ const t = Er(), n = Zn(), [r, i] = Ve(e, ["onFocusOutside", "onKeyDown"]), {
26826
26820
  direction: s
26827
26821
  } = ci();
26828
26822
  return P(Rw, _e({
@@ -26850,8 +26844,8 @@ var Op = ["Enter", " "], gL = {
26850
26844
  };
26851
26845
  function Xw(e) {
26852
26846
  let t;
26853
- const n = er(), r = Er(), i = Le({
26854
- id: n.generateId(`sub-trigger-${xn()}`)
26847
+ const n = Zn(), r = Er(), i = Le({
26848
+ id: n.generateId(`sub-trigger-${Sn()}`)
26855
26849
  }, e), [s, o] = Ve(i, ["ref", "id", "textValue", "disabled", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]);
26856
26850
  let a = null;
26857
26851
  const l = () => {
@@ -26988,7 +26982,7 @@ function Xw(e) {
26988
26982
  }, () => r.dataset(), o));
26989
26983
  }
26990
26984
  function yL(e) {
26991
- const t = fu(), n = `menu-${xn()}`, r = Le({
26985
+ const t = fu(), n = `menu-${Sn()}`, r = Le({
26992
26986
  id: n,
26993
26987
  modal: !0
26994
26988
  }, e), [i, s] = Ve(r, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]), o = pw({
@@ -27083,7 +27077,7 @@ cu(gt, {
27083
27077
  Trigger: () => Iw
27084
27078
  });
27085
27079
  function Jw(e) {
27086
- const t = er(), n = Er(), [r, i] = Ve(e, ["onCloseAutoFocus", "onInteractOutside"]);
27080
+ const t = Zn(), n = Er(), [r, i] = Ve(e, ["onCloseAutoFocus", "onInteractOutside"]);
27087
27081
  let s = !1;
27088
27082
  return P(lL, _e({
27089
27083
  onCloseAutoFocus: (l) => {
@@ -27097,7 +27091,7 @@ function Jw(e) {
27097
27091
  }, i));
27098
27092
  }
27099
27093
  function Zw(e) {
27100
- const t = `dropdownmenu-${xn()}`, n = Le({
27094
+ const t = `dropdownmenu-${Sn()}`, n = Le({
27101
27095
  id: t
27102
27096
  }, e);
27103
27097
  return P(yL, n);
@@ -27422,10 +27416,10 @@ function sR() {
27422
27416
  return NL();
27423
27417
  }
27424
27418
  function Pp() {
27425
- const e = xn();
27419
+ const e = Sn();
27426
27420
  return (() => {
27427
- var t = BL(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, s = i.firstChild, o = i.nextSibling, a = o.firstChild, l = o.nextSibling, c = l.nextSibling, u = c.firstChild, d = c.nextSibling, f = d.firstChild, h = d.nextSibling, g = h.nextSibling, y = g.firstChild, m = g.nextSibling, p = m.firstChild, b = m.nextSibling, x = b.nextSibling, S = x.firstChild, w = x.nextSibling, O = w.firstChild, C = w.nextSibling, _ = C.nextSibling, k = _.firstChild, E = _.nextSibling, $ = E.firstChild, R = E.nextSibling, Y = R.nextSibling, q = Y.firstChild, F = Y.nextSibling, M = F.firstChild, L = F.nextSibling, ee = L.nextSibling, fe = ee.firstChild, B = ee.nextSibling, G = B.firstChild, re = B.nextSibling, le = re.firstChild, I = le.nextSibling, z = I.nextSibling, K = z.nextSibling, ce = K.nextSibling, V = re.nextSibling, ne = V.firstChild, ae = V.nextSibling, Oe = ae.firstChild, te = ae.nextSibling, Je = te.firstChild, st = Je.nextSibling, vt = st.nextSibling, Bt = vt.firstChild, _n = Bt.nextSibling, Z = _n.nextSibling, Re = Z.nextSibling, ht = Re.nextSibling, qe = ht.nextSibling, je = qe.nextSibling, ze = je.nextSibling, ve = ze.nextSibling, de = ve.nextSibling, Pe = de.nextSibling, Fe = Pe.nextSibling, kn = te.nextSibling, ui = kn.firstChild, tr = kn.nextSibling, di = tr.firstChild, nr = tr.nextSibling, Ar = nr.firstChild, al = Ar.nextSibling, go = nr.nextSibling, ll = go.firstChild, Zi = go.nextSibling, cl = Zi.firstChild, yo = Zi.nextSibling, mo = yo.firstChild, po = mo.nextSibling, es = po.nextSibling, $h = es.nextSibling, Mh = $h.nextSibling, Dh = Mh.nextSibling, Ih = Dh.nextSibling, Lh = Ih.nextSibling, Rh = Lh.nextSibling, Fh = Rh.nextSibling, Nh = Fh.nextSibling, Bh = Nh.nextSibling, qh = Bh.nextSibling, jh = qh.nextSibling, zh = jh.nextSibling, Hh = zh.nextSibling, Uh = Hh.nextSibling, hx = Uh.nextSibling;
27428
- return X(n, "id", `a-${e}`), X(r, "fill", `url(#a-${e})`), X(s, "id", `am-${e}`), X(o, "id", `b-${e}`), X(a, "filter", `url(#am-${e})`), X(l, "mask", `url(#b-${e})`), X(u, "id", `ah-${e}`), X(d, "id", `k-${e}`), X(f, "filter", `url(#ah-${e})`), X(h, "mask", `url(#k-${e})`), X(y, "id", `ae-${e}`), X(m, "id", `j-${e}`), X(p, "filter", `url(#ae-${e})`), X(b, "mask", `url(#j-${e})`), X(S, "id", `ai-${e}`), X(w, "id", `i-${e}`), X(O, "filter", `url(#ai-${e})`), X(C, "mask", `url(#i-${e})`), X(k, "id", `aj-${e}`), X(E, "id", `h-${e}`), X($, "filter", `url(#aj-${e})`), X(R, "mask", `url(#h-${e})`), X(q, "id", `ag-${e}`), X(F, "id", `g-${e}`), X(M, "filter", `url(#ag-${e})`), X(L, "mask", `url(#g-${e})`), X(fe, "id", `af-${e}`), X(B, "id", `f-${e}`), X(G, "filter", `url(#af-${e})`), X(re, "mask", `url(#f-${e})`), X(K, "id", `m-${e}`), X(ce, "fill", `url(#m-${e})`), X(ne, "id", `ak-${e}`), X(ae, "id", `e-${e}`), X(Oe, "filter", `url(#ak-${e})`), X(te, "mask", `url(#e-${e})`), X(Je, "id", `n-${e}`), X(st, "fill", `url(#n-${e})`), X(Bt, "id", `r-${e}`), X(_n, "fill", `url(#r-${e})`), X(Z, "id", `s-${e}`), X(Re, "fill", `url(#s-${e})`), X(ht, "id", `q-${e}`), X(qe, "fill", `url(#q-${e})`), X(je, "id", `p-${e}`), X(ze, "fill", `url(#p-${e})`), X(ve, "id", `o-${e}`), X(de, "fill", `url(#o-${e})`), X(Pe, "id", `l-${e}`), X(Fe, "fill", `url(#l-${e})`), X(ui, "id", `al-${e}`), X(tr, "id", `d-${e}`), X(di, "filter", `url(#al-${e})`), X(nr, "mask", `url(#d-${e})`), X(Ar, "id", `u-${e}`), X(al, "fill", `url(#u-${e})`), X(ll, "id", `ad-${e}`), X(Zi, "id", `c-${e}`), X(cl, "filter", `url(#ad-${e})`), X(yo, "mask", `url(#c-${e})`), X(mo, "id", `t-${e}`), X(po, "fill", `url(#t-${e})`), X(es, "id", `v-${e}`), X($h, "stroke", `url(#v-${e})`), X(Mh, "id", `aa-${e}`), X(Dh, "stroke", `url(#aa-${e})`), X(Ih, "id", `w-${e}`), X(Lh, "stroke", `url(#w-${e})`), X(Rh, "id", `ac-${e}`), X(Fh, "stroke", `url(#ac-${e})`), X(Nh, "id", `ab-${e}`), X(Bh, "stroke", `url(#ab-${e})`), X(qh, "id", `y-${e}`), X(jh, "stroke", `url(#y-${e})`), X(zh, "id", `x-${e}`), X(Hh, "stroke", `url(#x-${e})`), X(Uh, "id", `z-${e}`), X(hx, "stroke", `url(#z-${e})`), t;
27421
+ var t = BL(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, s = i.firstChild, o = i.nextSibling, a = o.firstChild, l = o.nextSibling, c = l.nextSibling, u = c.firstChild, d = c.nextSibling, f = d.firstChild, h = d.nextSibling, g = h.nextSibling, y = g.firstChild, m = g.nextSibling, p = m.firstChild, b = m.nextSibling, x = b.nextSibling, S = x.firstChild, w = x.nextSibling, O = w.firstChild, C = w.nextSibling, _ = C.nextSibling, k = _.firstChild, E = _.nextSibling, $ = E.firstChild, R = E.nextSibling, Y = R.nextSibling, q = Y.firstChild, F = Y.nextSibling, M = F.firstChild, L = F.nextSibling, ee = L.nextSibling, fe = ee.firstChild, B = ee.nextSibling, G = B.firstChild, re = B.nextSibling, le = re.firstChild, I = le.nextSibling, z = I.nextSibling, K = z.nextSibling, ce = K.nextSibling, V = re.nextSibling, ne = V.firstChild, ae = V.nextSibling, Oe = ae.firstChild, te = ae.nextSibling, Je = te.firstChild, st = Je.nextSibling, vt = st.nextSibling, Bt = vt.firstChild, kn = Bt.nextSibling, Z = kn.nextSibling, Re = Z.nextSibling, ht = Re.nextSibling, qe = ht.nextSibling, je = qe.nextSibling, ze = je.nextSibling, ve = ze.nextSibling, de = ve.nextSibling, Pe = de.nextSibling, Fe = Pe.nextSibling, On = te.nextSibling, ui = On.firstChild, er = On.nextSibling, di = er.firstChild, tr = er.nextSibling, Ar = tr.firstChild, al = Ar.nextSibling, go = tr.nextSibling, ll = go.firstChild, Zi = go.nextSibling, cl = Zi.firstChild, yo = Zi.nextSibling, mo = yo.firstChild, po = mo.nextSibling, es = po.nextSibling, $h = es.nextSibling, Mh = $h.nextSibling, Dh = Mh.nextSibling, Ih = Dh.nextSibling, Lh = Ih.nextSibling, Rh = Lh.nextSibling, Fh = Rh.nextSibling, Nh = Fh.nextSibling, Bh = Nh.nextSibling, qh = Bh.nextSibling, jh = qh.nextSibling, zh = jh.nextSibling, Hh = zh.nextSibling, Uh = Hh.nextSibling, hx = Uh.nextSibling;
27422
+ return X(n, "id", `a-${e}`), X(r, "fill", `url(#a-${e})`), X(s, "id", `am-${e}`), X(o, "id", `b-${e}`), X(a, "filter", `url(#am-${e})`), X(l, "mask", `url(#b-${e})`), X(u, "id", `ah-${e}`), X(d, "id", `k-${e}`), X(f, "filter", `url(#ah-${e})`), X(h, "mask", `url(#k-${e})`), X(y, "id", `ae-${e}`), X(m, "id", `j-${e}`), X(p, "filter", `url(#ae-${e})`), X(b, "mask", `url(#j-${e})`), X(S, "id", `ai-${e}`), X(w, "id", `i-${e}`), X(O, "filter", `url(#ai-${e})`), X(C, "mask", `url(#i-${e})`), X(k, "id", `aj-${e}`), X(E, "id", `h-${e}`), X($, "filter", `url(#aj-${e})`), X(R, "mask", `url(#h-${e})`), X(q, "id", `ag-${e}`), X(F, "id", `g-${e}`), X(M, "filter", `url(#ag-${e})`), X(L, "mask", `url(#g-${e})`), X(fe, "id", `af-${e}`), X(B, "id", `f-${e}`), X(G, "filter", `url(#af-${e})`), X(re, "mask", `url(#f-${e})`), X(K, "id", `m-${e}`), X(ce, "fill", `url(#m-${e})`), X(ne, "id", `ak-${e}`), X(ae, "id", `e-${e}`), X(Oe, "filter", `url(#ak-${e})`), X(te, "mask", `url(#e-${e})`), X(Je, "id", `n-${e}`), X(st, "fill", `url(#n-${e})`), X(Bt, "id", `r-${e}`), X(kn, "fill", `url(#r-${e})`), X(Z, "id", `s-${e}`), X(Re, "fill", `url(#s-${e})`), X(ht, "id", `q-${e}`), X(qe, "fill", `url(#q-${e})`), X(je, "id", `p-${e}`), X(ze, "fill", `url(#p-${e})`), X(ve, "id", `o-${e}`), X(de, "fill", `url(#o-${e})`), X(Pe, "id", `l-${e}`), X(Fe, "fill", `url(#l-${e})`), X(ui, "id", `al-${e}`), X(er, "id", `d-${e}`), X(di, "filter", `url(#al-${e})`), X(tr, "mask", `url(#d-${e})`), X(Ar, "id", `u-${e}`), X(al, "fill", `url(#u-${e})`), X(ll, "id", `ad-${e}`), X(Zi, "id", `c-${e}`), X(cl, "filter", `url(#ad-${e})`), X(yo, "mask", `url(#c-${e})`), X(mo, "id", `t-${e}`), X(po, "fill", `url(#t-${e})`), X(es, "id", `v-${e}`), X($h, "stroke", `url(#v-${e})`), X(Mh, "id", `aa-${e}`), X(Dh, "stroke", `url(#aa-${e})`), X(Ih, "id", `w-${e}`), X(Lh, "stroke", `url(#w-${e})`), X(Rh, "id", `ac-${e}`), X(Fh, "stroke", `url(#ac-${e})`), X(Nh, "id", `ab-${e}`), X(Bh, "stroke", `url(#ab-${e})`), X(qh, "id", `y-${e}`), X(jh, "stroke", `url(#y-${e})`), X(zh, "id", `x-${e}`), X(Hh, "stroke", `url(#x-${e})`), X(Uh, "id", `z-${e}`), X(hx, "stroke", `url(#z-${e})`), t;
27429
27423
  })();
27430
27424
  }
27431
27425
  var oR = /* @__PURE__ */ ue('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'), aR = /* @__PURE__ */ ue('<button title="Copy object to clipboard">'), lR = /* @__PURE__ */ ue('<button title="Remove all items"aria-label="Remove all items">'), cR = /* @__PURE__ */ ue('<button title="Delete item"aria-label="Delete item">'), uR = /* @__PURE__ */ ue('<button title="Toggle value"aria-label="Toggle value">'), dR = /* @__PURE__ */ ue('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'), Do = /* @__PURE__ */ ue("<div>"), fR = /* @__PURE__ */ ue("<div><button> <span></span> <span> "), hR = /* @__PURE__ */ ue("<input>"), Tp = /* @__PURE__ */ ue("<span>"), gR = /* @__PURE__ */ ue("<div><span>:"), yR = /* @__PURE__ */ ue("<div><div><button> [<!>...<!>]");
@@ -27949,10 +27943,10 @@ var nx = (e, t) => {
27949
27943
  };
27950
27944
  }, fo = (e) => nx("light", e), ho = (e) => nx("dark", e);
27951
27945
  Fc(["click"]);
27952
- var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'), ol = /* @__PURE__ */ ue("<div>"), xR = /* @__PURE__ */ ue('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'), SR = /* @__PURE__ */ ue("<select name=tsqd-queries-filter-sort>"), CR = /* @__PURE__ */ ue("<select name=tsqd-mutations-filter-sort>"), _R = /* @__PURE__ */ ue("<span>Asc"), kR = /* @__PURE__ */ ue("<span>Desc"), OR = /* @__PURE__ */ ue('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'), ER = /* @__PURE__ */ ue("<div>Settings"), AR = /* @__PURE__ */ ue("<span>Position"), PR = /* @__PURE__ */ ue("<span>Top"), TR = /* @__PURE__ */ ue("<span>Bottom"), $R = /* @__PURE__ */ ue("<span>Left"), MR = /* @__PURE__ */ ue("<span>Right"), DR = /* @__PURE__ */ ue("<span>Theme"), IR = /* @__PURE__ */ ue("<span>Light"), LR = /* @__PURE__ */ ue("<span>Dark"), RR = /* @__PURE__ */ ue("<span>System"), FR = /* @__PURE__ */ ue("<div><div class=tsqd-queries-container>"), NR = /* @__PURE__ */ ue("<div><div class=tsqd-mutations-container>"), BR = /* @__PURE__ */ ue('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'), Ip = /* @__PURE__ */ ue("<option>Sort by "), qR = /* @__PURE__ */ ue("<div class=tsqd-query-disabled-indicator>disabled"), jR = /* @__PURE__ */ ue("<div class=tsqd-query-static-indicator>static"), rx = /* @__PURE__ */ ue("<button><div></div><code class=tsqd-query-hash>"), zR = /* @__PURE__ */ ue("<div role=tooltip id=tsqd-status-tooltip>"), HR = /* @__PURE__ */ ue("<span>"), UR = /* @__PURE__ */ ue("<button><span></span><span>"), KR = /* @__PURE__ */ ue("<button><span></span> Error"), VR = /* @__PURE__ */ ue('<div><span></span>Trigger Error<select><option value=""disabled selected>'), WR = /* @__PURE__ */ ue('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'), GR = /* @__PURE__ */ ue("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"), QR = /* @__PURE__ */ ue('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), YR = /* @__PURE__ */ ue("<option>"), XR = /* @__PURE__ */ ue('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), [tn, gu] = ie(null), [Yr, ix] = ie(null), [Pn, Eh] = ie(0), [Io, JR] = ie(!1), ZR = (e) => {
27946
+ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'), ol = /* @__PURE__ */ ue("<div>"), xR = /* @__PURE__ */ ue('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'), SR = /* @__PURE__ */ ue("<select name=tsqd-queries-filter-sort>"), CR = /* @__PURE__ */ ue("<select name=tsqd-mutations-filter-sort>"), _R = /* @__PURE__ */ ue("<span>Asc"), kR = /* @__PURE__ */ ue("<span>Desc"), OR = /* @__PURE__ */ ue('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'), ER = /* @__PURE__ */ ue("<div>Settings"), AR = /* @__PURE__ */ ue("<span>Position"), PR = /* @__PURE__ */ ue("<span>Top"), TR = /* @__PURE__ */ ue("<span>Bottom"), $R = /* @__PURE__ */ ue("<span>Left"), MR = /* @__PURE__ */ ue("<span>Right"), DR = /* @__PURE__ */ ue("<span>Theme"), IR = /* @__PURE__ */ ue("<span>Light"), LR = /* @__PURE__ */ ue("<span>Dark"), RR = /* @__PURE__ */ ue("<span>System"), FR = /* @__PURE__ */ ue("<div><div class=tsqd-queries-container>"), NR = /* @__PURE__ */ ue("<div><div class=tsqd-mutations-container>"), BR = /* @__PURE__ */ ue('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'), Ip = /* @__PURE__ */ ue("<option>Sort by "), qR = /* @__PURE__ */ ue("<div class=tsqd-query-disabled-indicator>disabled"), jR = /* @__PURE__ */ ue("<div class=tsqd-query-static-indicator>static"), rx = /* @__PURE__ */ ue("<button><div></div><code class=tsqd-query-hash>"), zR = /* @__PURE__ */ ue("<div role=tooltip id=tsqd-status-tooltip>"), HR = /* @__PURE__ */ ue("<span>"), UR = /* @__PURE__ */ ue("<button><span></span><span>"), KR = /* @__PURE__ */ ue("<button><span></span> Error"), VR = /* @__PURE__ */ ue('<div><span></span>Trigger Error<select><option value=""disabled selected>'), WR = /* @__PURE__ */ ue('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'), GR = /* @__PURE__ */ ue("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"), QR = /* @__PURE__ */ ue('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), YR = /* @__PURE__ */ ue("<option>"), XR = /* @__PURE__ */ ue('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), [tn, gu] = ie(null), [Yr, ix] = ie(null), [Tn, Eh] = ie(0), [Io, JR] = ie(!1), ZR = (e) => {
27953
27947
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
27954
27948
  target: he().shadowDOMTarget
27955
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n)), i = j(() => he().onlineManager);
27949
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n)), i = j(() => he().onlineManager);
27956
27950
  Sr(() => {
27957
27951
  const d = i().subscribe((f) => {
27958
27952
  JR(!f);
@@ -28063,11 +28057,11 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28063
28057
  }, eF = (e) => {
28064
28058
  const t = ah(), n = St(), r = he().shadowDOMTarget ? Te.bind({
28065
28059
  target: he().shadowDOMTarget
28066
- }) : Te, i = j(() => n() === "dark" ? Cn(r) : Sn(r)), s = () => {
28060
+ }) : Te, i = j(() => n() === "dark" ? _n(r) : Cn(r)), s = () => {
28067
28061
  const {
28068
28062
  colors: o
28069
28063
  } = H, a = (l, c) => n() === "dark" ? c : l;
28070
- return Pn() < Wi ? r`
28064
+ return Tn() < Wi ? r`
28071
28065
  flex-direction: column;
28072
28066
  background-color: ${a(o.gray[300], o.gray[600])};
28073
28067
  ` : r`
@@ -28087,13 +28081,13 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28087
28081
  return o.style.setProperty("--tsqd-font-size", "16px"), o.style.setProperty("max-height", "100vh"), o.style.setProperty("height", "100vh"), o.style.setProperty("width", "100vw"), U(o, () => e.children), me(() => J(o, oe(i().panel, s(), {
28088
28082
  [r`
28089
28083
  min-width: min-content;
28090
- `]: Pn() < sh
28084
+ `]: Tn() < sh
28091
28085
  }, "tsqd-main-panel"))), o;
28092
28086
  })();
28093
28087
  }, tF = (e) => {
28094
28088
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
28095
28089
  target: he().shadowDOMTarget
28096
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n));
28090
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n));
28097
28091
  let i;
28098
28092
  Sr(() => {
28099
28093
  R1(i, ({
@@ -28106,7 +28100,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28106
28100
  const {
28107
28101
  colors: o
28108
28102
  } = H, a = (l, c) => t() === "dark" ? c : l;
28109
- return Pn() < Wi ? n`
28103
+ return Tn() < Wi ? n`
28110
28104
  flex-direction: column;
28111
28105
  background-color: ${a(o.gray[300], o.gray[600])};
28112
28106
  ` : n`
@@ -28119,13 +28113,13 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28119
28113
  return typeof a == "function" ? no(a, o) : i = o, o.style.setProperty("--tsqd-font-size", "16px"), U(o, () => e.children), me(() => J(o, oe(r().parentPanel, s(), {
28120
28114
  [n`
28121
28115
  min-width: min-content;
28122
- `]: Pn() < sh
28116
+ `]: Tn() < sh
28123
28117
  }, "tsqd-main-panel"))), o;
28124
28118
  })();
28125
28119
  }, nF = (e) => {
28126
28120
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
28127
28121
  target: he().shadowDOMTarget
28128
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n)), [i, s] = ie(!1), o = j(() => e.localStore.position || he().position || lf), a = (u) => {
28122
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n)), [i, s] = ie(!1), o = j(() => e.localStore.position || he().position || lf), a = (u) => {
28129
28123
  const d = u.currentTarget.parentElement;
28130
28124
  if (!d) return;
28131
28125
  s(!0);
@@ -28183,7 +28177,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28183
28177
  const {
28184
28178
  colors: u
28185
28179
  } = H, d = (f, h) => t() === "dark" ? h : f;
28186
- return Pn() < Wi ? n`
28180
+ return Tn() < Wi ? n`
28187
28181
  flex-direction: column;
28188
28182
  background-color: ${d(u.gray[300], u.gray[600])};
28189
28183
  ` : n`
@@ -28197,7 +28191,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28197
28191
  var y = oe(r().panel, r()[`panel-position-${o()}`], c(), {
28198
28192
  [n`
28199
28193
  min-width: min-content;
28200
- `]: Pn() < sh && (o() === "right" || o() === "left")
28194
+ `]: Tn() < sh && (o() === "right" || o() === "left")
28201
28195
  }, "tsqd-main-panel"), m = o() === "bottom" || o() === "top" ? `${e.localStore.height || A1}px` : "auto", p = o() === "right" || o() === "left" ? `${e.localStore.width || P1}px` : "auto", b = oe(r().dragHandle, r()[`dragHandle-position-${o()}`], "tsqd-drag-handle"), x = oe(r().closeBtn, r()[`closeBtn-position-${o()}`], "tsqd-minimize-btn");
28202
28196
  return y !== g.e && J(u, g.e = y), m !== g.t && ((g.t = m) != null ? u.style.setProperty("height", m) : u.style.removeProperty("height")), p !== g.a && ((g.a = p) != null ? u.style.setProperty("width", p) : u.style.removeProperty("width")), b !== g.o && J(d, g.o = b), x !== g.i && J(f, g.i = x), g;
28203
28197
  }, {
@@ -28213,10 +28207,10 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28213
28207
  let t;
28214
28208
  const n = St(), r = he().shadowDOMTarget ? Te.bind({
28215
28209
  target: he().shadowDOMTarget
28216
- }) : Te, i = j(() => n() === "dark" ? Cn(r) : Sn(r)), s = ah(), [o, a] = ie("queries"), l = j(() => e.localStore.sort || r4), c = j(() => Number(e.localStore.sortOrder) || Hm), u = j(() => e.localStore.mutationSort || i4), d = j(() => Number(e.localStore.mutationSortOrder) || Hm), f = j(() => $d[l()]), h = j(() => Md[u()]), g = j(() => he().onlineManager), y = j(() => he().client.getQueryCache()), m = j(() => he().client.getMutationCache()), p = bt((C) => C().getAll().length, !1), b = j(xr(() => [p(), e.localStore.filter, l(), c()], () => {
28210
+ }) : Te, i = j(() => n() === "dark" ? _n(r) : Cn(r)), s = ah(), [o, a] = ie("queries"), l = j(() => e.localStore.sort || r4), c = j(() => Number(e.localStore.sortOrder) || Hm), u = j(() => e.localStore.mutationSort || i4), d = j(() => Number(e.localStore.mutationSortOrder) || Hm), f = j(() => $d[l()]), h = j(() => Md[u()]), g = j(() => he().onlineManager), y = j(() => he().client.getQueryCache()), m = j(() => he().client.getMutationCache()), p = bt((C) => C().getAll().length, !1), b = j(xr(() => [p(), e.localStore.filter, l(), c()], () => {
28217
28211
  const C = y().getAll(), _ = e.localStore.filter ? C.filter((E) => Um(E.queryHash, e.localStore.filter || "").passed) : [...C];
28218
28212
  return f() ? _.sort((E, $) => f()(E, $) * c()) : _;
28219
- })), x = An((C) => C().getAll().length, !1), S = j(xr(() => [x(), e.localStore.mutationFilter, u(), d()], () => {
28213
+ })), x = Pn((C) => C().getAll().length, !1), S = j(xr(() => [x(), e.localStore.mutationFilter, u(), d()], () => {
28220
28214
  const C = m().getAll(), _ = e.localStore.mutationFilter ? C.filter((E) => {
28221
28215
  const $ = `${E.options.mutationKey ? JSON.stringify(E.options.mutationKey) + " - " : ""}${new Date(E.state.submittedAt).toLocaleString()}`;
28222
28216
  return Um($, e.localStore.mutationFilter || "").passed;
@@ -28564,14 +28558,14 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28564
28558
  })), me(() => J(I, oe(i().overflowQueryContainer, "tsqd-mutations-overflow-container"))), I;
28565
28559
  }
28566
28560
  }), null), me((I) => {
28567
- var z = oe(i().queriesContainer, Pn() < Wi && (tn() || Yr()) && r`
28561
+ var z = oe(i().queriesContainer, Tn() < Wi && (tn() || Yr()) && r`
28568
28562
  height: 50%;
28569
28563
  max-height: 50%;
28570
- `, Pn() < Wi && !(tn() || Yr()) && r`
28564
+ `, Tn() < Wi && !(tn() || Yr()) && r`
28571
28565
  height: 100%;
28572
28566
  max-height: 100%;
28573
- `, "tsqd-queries-container"), K = oe(i().row, "tsqd-header"), ce = i().logoAndToggleContainer, V = oe(i().logo, "tsqd-text-logo-container"), ne = oe(i().tanstackLogo, "tsqd-text-logo-tanstack"), ae = oe(i().queryFlavorLogo, "tsqd-text-logo-query-flavor"), Oe = oe(i().row, "tsqd-filters-actions-container"), te = oe(i().filtersContainer, "tsqd-filters-container"), Je = oe(i().filterInput, "tsqd-query-filter-textfield-container"), st = oe("tsqd-query-filter-textfield"), vt = oe(i().filterSelect, "tsqd-query-filter-sort-container"), Bt = `Sort order ${(o() === "queries" ? c() : d()) === -1 ? "descending" : "ascending"}`, _n = (o() === "queries" ? c() : d()) === -1, Z = oe(i().actionsContainer, "tsqd-actions-container"), Re = oe(i().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), ht = `Clear ${o()} cache`, qe = oe(i().actionsBtn, Io() && i().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), je = `${Io() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, ze = Io(), ve = `${Io() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
28574
- return z !== I.e && J(C, I.e = z), K !== I.t && J(_, I.t = K), ce !== I.a && J(k, I.a = ce), V !== I.o && J(E, I.o = V), ne !== I.i && J($, I.i = ne), ae !== I.n && J(R, I.n = ae), Oe !== I.s && J(q, I.s = Oe), te !== I.h && J(F, I.h = te), Je !== I.r && J(M, I.r = Je), st !== I.d && J(L, I.d = st), vt !== I.l && J(ee, I.l = vt), Bt !== I.u && X(fe, "aria-label", I.u = Bt), _n !== I.c && X(fe, "aria-pressed", I.c = _n), Z !== I.w && J(B, I.w = Z), Re !== I.m && J(G, I.m = Re), ht !== I.f && X(G, "title", I.f = ht), qe !== I.y && J(re, I.y = qe), je !== I.g && X(re, "aria-label", I.g = je), ze !== I.p && X(re, "aria-pressed", I.p = ze), ve !== I.b && X(re, "title", I.b = ve), I;
28567
+ `, "tsqd-queries-container"), K = oe(i().row, "tsqd-header"), ce = i().logoAndToggleContainer, V = oe(i().logo, "tsqd-text-logo-container"), ne = oe(i().tanstackLogo, "tsqd-text-logo-tanstack"), ae = oe(i().queryFlavorLogo, "tsqd-text-logo-query-flavor"), Oe = oe(i().row, "tsqd-filters-actions-container"), te = oe(i().filtersContainer, "tsqd-filters-container"), Je = oe(i().filterInput, "tsqd-query-filter-textfield-container"), st = oe("tsqd-query-filter-textfield"), vt = oe(i().filterSelect, "tsqd-query-filter-sort-container"), Bt = `Sort order ${(o() === "queries" ? c() : d()) === -1 ? "descending" : "ascending"}`, kn = (o() === "queries" ? c() : d()) === -1, Z = oe(i().actionsContainer, "tsqd-actions-container"), Re = oe(i().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), ht = `Clear ${o()} cache`, qe = oe(i().actionsBtn, Io() && i().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), je = `${Io() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, ze = Io(), ve = `${Io() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
28568
+ return z !== I.e && J(C, I.e = z), K !== I.t && J(_, I.t = K), ce !== I.a && J(k, I.a = ce), V !== I.o && J(E, I.o = V), ne !== I.i && J($, I.i = ne), ae !== I.n && J(R, I.n = ae), Oe !== I.s && J(q, I.s = Oe), te !== I.h && J(F, I.h = te), Je !== I.r && J(M, I.r = Je), st !== I.d && J(L, I.d = st), vt !== I.l && J(ee, I.l = vt), Bt !== I.u && X(fe, "aria-label", I.u = Bt), kn !== I.c && X(fe, "aria-pressed", I.c = kn), Z !== I.w && J(B, I.w = Z), Re !== I.m && J(G, I.m = Re), ht !== I.f && X(G, "title", I.f = ht), qe !== I.y && J(re, I.y = qe), je !== I.g && X(re, "aria-label", I.g = je), ze !== I.p && X(re, "aria-pressed", I.p = ze), ve !== I.b && X(re, "title", I.b = ve), I;
28575
28569
  }, {
28576
28570
  e: void 0,
28577
28571
  t: void 0,
@@ -28612,7 +28606,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28612
28606
  }, rF = (e) => {
28613
28607
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
28614
28608
  target: he().shadowDOMTarget
28615
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n)), {
28609
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n)), {
28616
28610
  colors: i,
28617
28611
  alpha: s
28618
28612
  } = H, o = (g, y) => t() === "dark" ? y : g, a = bt((g) => {
@@ -28684,16 +28678,16 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28684
28678
  }, iF = (e) => {
28685
28679
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
28686
28680
  target: he().shadowDOMTarget
28687
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n)), {
28681
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n)), {
28688
28682
  colors: i,
28689
28683
  alpha: s
28690
- } = H, o = (f, h) => t() === "dark" ? h : f, a = An((f) => {
28684
+ } = H, o = (f, h) => t() === "dark" ? h : f, a = Pn((f) => {
28691
28685
  const g = f().getAll().find((y) => y.mutationId === e.mutation.mutationId);
28692
28686
  return g == null ? void 0 : g.state;
28693
- }), l = An((f) => {
28687
+ }), l = Pn((f) => {
28694
28688
  const g = f().getAll().find((y) => y.mutationId === e.mutation.mutationId);
28695
28689
  return g ? g.state.isPaused : !1;
28696
- }), c = An((f) => {
28690
+ }), c = Pn((f) => {
28697
28691
  const g = f().getAll().find((y) => y.mutationId === e.mutation.mutationId);
28698
28692
  return g ? g.state.status : "idle";
28699
28693
  }), u = j(() => cs({
@@ -28762,34 +28756,34 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28762
28756
  }, sF = () => {
28763
28757
  const e = bt((l) => l().getAll().filter((c) => ss(c) === "stale").length), t = bt((l) => l().getAll().filter((c) => ss(c) === "fresh").length), n = bt((l) => l().getAll().filter((c) => ss(c) === "fetching").length), r = bt((l) => l().getAll().filter((c) => ss(c) === "paused").length), i = bt((l) => l().getAll().filter((c) => ss(c) === "inactive").length), s = St(), o = he().shadowDOMTarget ? Te.bind({
28764
28758
  target: he().shadowDOMTarget
28765
- }) : Te, a = j(() => s() === "dark" ? Cn(o) : Sn(o));
28759
+ }) : Te, a = j(() => s() === "dark" ? _n(o) : Cn(o));
28766
28760
  return (() => {
28767
28761
  var l = ol();
28768
- return U(l, P(gr, {
28762
+ return U(l, P(hr, {
28769
28763
  label: "Fresh",
28770
28764
  color: "green",
28771
28765
  get count() {
28772
28766
  return t();
28773
28767
  }
28774
- }), null), U(l, P(gr, {
28768
+ }), null), U(l, P(hr, {
28775
28769
  label: "Fetching",
28776
28770
  color: "blue",
28777
28771
  get count() {
28778
28772
  return n();
28779
28773
  }
28780
- }), null), U(l, P(gr, {
28774
+ }), null), U(l, P(hr, {
28781
28775
  label: "Paused",
28782
28776
  color: "purple",
28783
28777
  get count() {
28784
28778
  return r();
28785
28779
  }
28786
- }), null), U(l, P(gr, {
28780
+ }), null), U(l, P(hr, {
28787
28781
  label: "Stale",
28788
28782
  color: "yellow",
28789
28783
  get count() {
28790
28784
  return e();
28791
28785
  }
28792
- }), null), U(l, P(gr, {
28786
+ }), null), U(l, P(hr, {
28793
28787
  label: "Inactive",
28794
28788
  color: "gray",
28795
28789
  get count() {
@@ -28798,42 +28792,42 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28798
28792
  }), null), me(() => J(l, oe(a().queryStatusContainer, "tsqd-query-status-container"))), l;
28799
28793
  })();
28800
28794
  }, oF = () => {
28801
- const e = An((a) => a().getAll().filter((l) => cs({
28795
+ const e = Pn((a) => a().getAll().filter((l) => cs({
28802
28796
  isPaused: l.state.isPaused,
28803
28797
  status: l.state.status
28804
- }) === "green").length), t = An((a) => a().getAll().filter((l) => cs({
28798
+ }) === "green").length), t = Pn((a) => a().getAll().filter((l) => cs({
28805
28799
  isPaused: l.state.isPaused,
28806
28800
  status: l.state.status
28807
- }) === "yellow").length), n = An((a) => a().getAll().filter((l) => cs({
28801
+ }) === "yellow").length), n = Pn((a) => a().getAll().filter((l) => cs({
28808
28802
  isPaused: l.state.isPaused,
28809
28803
  status: l.state.status
28810
- }) === "purple").length), r = An((a) => a().getAll().filter((l) => cs({
28804
+ }) === "purple").length), r = Pn((a) => a().getAll().filter((l) => cs({
28811
28805
  isPaused: l.state.isPaused,
28812
28806
  status: l.state.status
28813
28807
  }) === "red").length), i = St(), s = he().shadowDOMTarget ? Te.bind({
28814
28808
  target: he().shadowDOMTarget
28815
- }) : Te, o = j(() => i() === "dark" ? Cn(s) : Sn(s));
28809
+ }) : Te, o = j(() => i() === "dark" ? _n(s) : Cn(s));
28816
28810
  return (() => {
28817
28811
  var a = ol();
28818
- return U(a, P(gr, {
28812
+ return U(a, P(hr, {
28819
28813
  label: "Paused",
28820
28814
  color: "purple",
28821
28815
  get count() {
28822
28816
  return n();
28823
28817
  }
28824
- }), null), U(a, P(gr, {
28818
+ }), null), U(a, P(hr, {
28825
28819
  label: "Pending",
28826
28820
  color: "yellow",
28827
28821
  get count() {
28828
28822
  return t();
28829
28823
  }
28830
- }), null), U(a, P(gr, {
28824
+ }), null), U(a, P(hr, {
28831
28825
  label: "Success",
28832
28826
  color: "green",
28833
28827
  get count() {
28834
28828
  return e();
28835
28829
  }
28836
- }), null), U(a, P(gr, {
28830
+ }), null), U(a, P(hr, {
28837
28831
  label: "Error",
28838
28832
  color: "red",
28839
28833
  get count() {
@@ -28841,15 +28835,15 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28841
28835
  }
28842
28836
  }), null), me(() => J(a, oe(o().queryStatusContainer, "tsqd-query-status-container"))), a;
28843
28837
  })();
28844
- }, gr = (e) => {
28838
+ }, hr = (e) => {
28845
28839
  const t = St(), n = he().shadowDOMTarget ? Te.bind({
28846
28840
  target: he().shadowDOMTarget
28847
- }) : Te, r = j(() => t() === "dark" ? Cn(n) : Sn(n)), {
28841
+ }) : Te, r = j(() => t() === "dark" ? _n(n) : Cn(n)), {
28848
28842
  colors: i,
28849
28843
  alpha: s
28850
28844
  } = H, o = (h, g) => t() === "dark" ? g : h;
28851
28845
  let a;
28852
- const [l, c] = ie(!1), [u, d] = ie(!1), f = j(() => !(tn() && Pn() < ZD && Pn() > Wi || Pn() < Wi));
28846
+ const [l, c] = ie(!1), [u, d] = ie(!1), f = j(() => !(tn() && Tn() < ZD && Tn() > Wi || Tn() < Wi));
28853
28847
  return (() => {
28854
28848
  var h = UR(), g = h.firstChild, y = g.nextSibling, m = a;
28855
28849
  return typeof m == "function" ? no(m, h) : a = h, h.addEventListener("mouseleave", () => {
@@ -28903,7 +28897,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28903
28897
  }, aF = () => {
28904
28898
  const e = St(), t = he().shadowDOMTarget ? Te.bind({
28905
28899
  target: he().shadowDOMTarget
28906
- }) : Te, n = j(() => e() === "dark" ? Cn(t) : Sn(t)), {
28900
+ }) : Te, n = j(() => e() === "dark" ? _n(t) : Cn(t)), {
28907
28901
  colors: r
28908
28902
  } = H, i = (k, E) => e() === "dark" ? E : k, s = he().client, [o, a] = ie(!1), [l, c] = ie("view"), [u, d] = ie(!1), f = j(() => he().errorTypes || []), h = bt((k) => k().getAll().find((E) => E.queryHash === tn()), !1), g = bt((k) => k().getAll().find((E) => E.queryHash === tn()), !1), y = bt((k) => {
28909
28903
  var E;
@@ -28984,7 +28978,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
28984
28978
  get children() {
28985
28979
  var k = QR(), E = k.firstChild, $ = E.nextSibling, R = $.firstChild, Y = R.firstChild, q = Y.firstChild, F = Y.nextSibling, M = R.nextSibling, L = M.firstChild, ee = L.nextSibling, fe = M.nextSibling, B = fe.firstChild, G = B.nextSibling, re = $.nextSibling, le = re.nextSibling, I = le.firstChild, z = I.firstChild, K = I.nextSibling, ce = K.firstChild, V = K.nextSibling, ne = V.firstChild, ae = V.nextSibling, Oe = ae.firstChild, te = ae.nextSibling, Je = te.firstChild, st = Je.nextSibling, vt = le.nextSibling;
28986
28980
  vt.firstChild;
28987
- var Bt = vt.nextSibling, _n = Bt.nextSibling;
28981
+ var Bt = vt.nextSibling, kn = Bt.nextSibling;
28988
28982
  return U(q, () => uc(h().queryKey, !0)), U(F, p), U(ee, x), U(G, () => new Date(y().dataUpdatedAt).toLocaleTimeString()), I.$$click = w, K.$$click = () => {
28989
28983
  var Z;
28990
28984
  zn({
@@ -29111,21 +29105,21 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29111
29105
  de.preventDefault();
29112
29106
  const Fe = new FormData(de.currentTarget).get("data");
29113
29107
  try {
29114
- const kn = JSON.parse(Fe);
29108
+ const On = JSON.parse(Fe);
29115
29109
  h().setState({
29116
29110
  ...h().state,
29117
- data: kn
29111
+ data: On
29118
29112
  }), c("view");
29119
- } catch (kn) {
29113
+ } catch (On) {
29120
29114
  d(!0);
29121
29115
  }
29122
29116
  }), Re.addEventListener("focus", () => d(!1)), U(qe, () => u() ? "Invalid Value" : ""), ze.$$click = () => c("view"), me((de) => {
29123
- var Pe = oe(n().devtoolsEditForm, "tsqd-query-details-data-editor"), Fe = n().devtoolsEditTextarea, kn = u(), ui = n().devtoolsEditFormActions, tr = n().devtoolsEditFormError, di = n().devtoolsEditFormActionContainer, nr = oe(n().devtoolsEditFormAction, t`
29117
+ var Pe = oe(n().devtoolsEditForm, "tsqd-query-details-data-editor"), Fe = n().devtoolsEditTextarea, On = u(), ui = n().devtoolsEditFormActions, er = n().devtoolsEditFormError, di = n().devtoolsEditFormActionContainer, tr = oe(n().devtoolsEditFormAction, t`
29124
29118
  color: ${i(r.gray[600], r.gray[300])};
29125
29119
  `), Ar = oe(n().devtoolsEditFormAction, t`
29126
29120
  color: ${i(r.blue[600], r.blue[400])};
29127
29121
  `);
29128
- return Pe !== de.e && J(Z, de.e = Pe), Fe !== de.t && J(Re, de.t = Fe), kn !== de.a && X(Re, "data-error", de.a = kn), ui !== de.o && J(ht, de.o = ui), tr !== de.i && J(qe, de.i = tr), di !== de.n && J(je, de.n = di), nr !== de.s && J(ze, de.s = nr), Ar !== de.h && J(ve, de.h = Ar), de;
29122
+ return Pe !== de.e && J(Z, de.e = Pe), Fe !== de.t && J(Re, de.t = Fe), On !== de.a && X(Re, "data-error", de.a = On), ui !== de.o && J(ht, de.o = ui), er !== de.i && J(qe, de.i = er), di !== de.n && J(je, de.n = di), tr !== de.s && J(ze, de.s = tr), Ar !== de.h && J(ve, de.h = Ar), de;
29129
29123
  }, {
29130
29124
  e: void 0,
29131
29125
  t: void 0,
@@ -29137,7 +29131,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29137
29131
  h: void 0
29138
29132
  }), me(() => Re.value = JSON.stringify(m(), null, 2)), Z;
29139
29133
  }
29140
- }), Bt), U(_n, P(Wr, {
29134
+ }), Bt), U(kn, P(Wr, {
29141
29135
  label: "Query",
29142
29136
  defaultExpanded: ["Query", "queryKey"],
29143
29137
  get value() {
@@ -29148,13 +29142,13 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29148
29142
  color: ${i(r.blue[600], r.blue[400])};
29149
29143
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), Pe = p() === "fetching", Fe = t`
29150
29144
  background-color: ${i(r.blue[600], r.blue[400])};
29151
- `, kn = oe(t`
29145
+ `, On = oe(t`
29152
29146
  color: ${i(r.yellow[600], r.yellow[400])};
29153
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), ui = b() === "pending", tr = t`
29147
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), ui = b() === "pending", er = t`
29154
29148
  background-color: ${i(r.yellow[600], r.yellow[400])};
29155
29149
  `, di = oe(t`
29156
29150
  color: ${i(r.gray[600], r.gray[300])};
29157
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), nr = b() === "pending", Ar = t`
29151
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), tr = b() === "pending", Ar = t`
29158
29152
  background-color: ${i(r.gray[600], r.gray[400])};
29159
29153
  `, al = oe(t`
29160
29154
  color: ${i(r.pink[500], r.pink[400])};
@@ -29165,7 +29159,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29165
29159
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), cl = o(), yo = t`
29166
29160
  background-color: ${i(r.cyan[500], r.cyan[400])};
29167
29161
  `, mo = oe(n().detailsHeader, "tsqd-query-details-header"), po = oe(n().detailsHeader, "tsqd-query-details-header"), es = H.size[2];
29168
- return Re !== Z.e && J(k, Z.e = Re), ht !== Z.t && J(E, Z.t = ht), qe !== Z.a && J($, Z.a = qe), je !== Z.o && J(F, Z.o = je), ze !== Z.i && J(re, Z.i = ze), ve !== Z.n && J(le, Z.n = ve), de !== Z.s && J(I, Z.s = de), Pe !== Z.h && (I.disabled = Z.h = Pe), Fe !== Z.r && J(z, Z.r = Fe), kn !== Z.d && J(K, Z.d = kn), ui !== Z.l && (K.disabled = Z.l = ui), tr !== Z.u && J(ce, Z.u = tr), di !== Z.c && J(V, Z.c = di), nr !== Z.w && (V.disabled = Z.w = nr), Ar !== Z.m && J(ne, Z.m = Ar), al !== Z.f && J(ae, Z.f = al), go !== Z.y && (ae.disabled = Z.y = go), ll !== Z.g && J(Oe, Z.g = ll), Zi !== Z.p && J(te, Z.p = Zi), cl !== Z.b && (te.disabled = Z.b = cl), yo !== Z.T && J(Je, Z.T = yo), mo !== Z.A && J(vt, Z.A = mo), po !== Z.O && J(Bt, Z.O = po), es !== Z.I && ((Z.I = es) != null ? _n.style.setProperty("padding", es) : _n.style.removeProperty("padding")), Z;
29162
+ return Re !== Z.e && J(k, Z.e = Re), ht !== Z.t && J(E, Z.t = ht), qe !== Z.a && J($, Z.a = qe), je !== Z.o && J(F, Z.o = je), ze !== Z.i && J(re, Z.i = ze), ve !== Z.n && J(le, Z.n = ve), de !== Z.s && J(I, Z.s = de), Pe !== Z.h && (I.disabled = Z.h = Pe), Fe !== Z.r && J(z, Z.r = Fe), On !== Z.d && J(K, Z.d = On), ui !== Z.l && (K.disabled = Z.l = ui), er !== Z.u && J(ce, Z.u = er), di !== Z.c && J(V, Z.c = di), tr !== Z.w && (V.disabled = Z.w = tr), Ar !== Z.m && J(ne, Z.m = Ar), al !== Z.f && J(ae, Z.f = al), go !== Z.y && (ae.disabled = Z.y = go), ll !== Z.g && J(Oe, Z.g = ll), Zi !== Z.p && J(te, Z.p = Zi), cl !== Z.b && (te.disabled = Z.b = cl), yo !== Z.T && J(Je, Z.T = yo), mo !== Z.A && J(vt, Z.A = mo), po !== Z.O && J(Bt, Z.O = po), es !== Z.I && ((Z.I = es) != null ? kn.style.setProperty("padding", es) : kn.style.removeProperty("padding")), Z;
29169
29163
  }, {
29170
29164
  e: void 0,
29171
29165
  t: void 0,
@@ -29197,18 +29191,18 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29197
29191
  }, lF = () => {
29198
29192
  const e = St(), t = he().shadowDOMTarget ? Te.bind({
29199
29193
  target: he().shadowDOMTarget
29200
- }) : Te, n = j(() => e() === "dark" ? Cn(t) : Sn(t)), {
29194
+ }) : Te, n = j(() => e() === "dark" ? _n(t) : Cn(t)), {
29201
29195
  colors: r
29202
- } = H, i = (u, d) => e() === "dark" ? d : u, s = An((u) => {
29196
+ } = H, i = (u, d) => e() === "dark" ? d : u, s = Pn((u) => {
29203
29197
  const f = u().getAll().find((h) => h.mutationId === Yr());
29204
29198
  return f ? f.state.isPaused : !1;
29205
- }), o = An((u) => {
29199
+ }), o = Pn((u) => {
29206
29200
  const f = u().getAll().find((h) => h.mutationId === Yr());
29207
29201
  return f ? f.state.status : "idle";
29208
29202
  }), a = j(() => cs({
29209
29203
  isPaused: s(),
29210
29204
  status: o()
29211
- })), l = An((u) => u().getAll().find((d) => d.mutationId === Yr()), !1), c = () => a() === "gray" ? t`
29205
+ })), l = Pn((u) => u().getAll().find((d) => d.mutationId === Yr()), !1), c = () => a() === "gray" ? t`
29212
29206
  background-color: ${i(r[a()][200], r[a()][700])};
29213
29207
  color: ${i(r[a()][700], r[a()][300])};
29214
29208
  border-color: ${i(r[a()][400], r[a()][600])};
@@ -29318,7 +29312,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
29318
29312
  return be(() => {
29319
29313
  Tc.clear(), t();
29320
29314
  }), t;
29321
- }, An = (e, t = !0) => {
29315
+ }, Pn = (e, t = !0) => {
29322
29316
  const n = j(() => he().client.getMutationCache()), [r, i] = ie(e(n), t ? void 0 : {
29323
29317
  equals: !1
29324
29318
  });
@@ -30378,7 +30372,7 @@ var wR = /* @__PURE__ */ ue('<div><div aria-hidden=true></div><button type=butto
30378
30372
  }
30379
30373
  `
30380
30374
  };
30381
- }, Sn = (e) => sx("light", e), Cn = (e) => sx("dark", e);
30375
+ }, Cn = (e) => sx("light", e), _n = (e) => sx("dark", e);
30382
30376
  Fc(["click", "mousedown", "input"]);
30383
30377
  var fF = (e) => {
30384
30378
  const [t, n] = O1({
@@ -30605,7 +30599,7 @@ function OF(e) {
30605
30599
  if (Array.isArray(e)) return e;
30606
30600
  }
30607
30601
  var EF = function(t) {
30608
- var n = t.isOpen, r = t.onClose, i = t.brandId, s = t.brandsToGroup, o = t.onGroupCreated, a = Dn(), l = Ae(""), c = Fp(l, 2), u = c[0], d = c[1], f = Ae([]), h = Fp(f, 2), g = h[0], y = h[1];
30602
+ var n = t.isOpen, r = t.onClose, i = t.brandId, s = t.brandsToGroup, o = t.onGroupCreated, a = xn(), l = Ae(""), c = Fp(l, 2), u = c[0], d = c[1], f = Ae([]), h = Fp(f, 2), g = h[0], y = h[1];
30609
30603
  ot(function() {
30610
30604
  if (n && s.length > 0) {
30611
30605
  var O, C = (O = s[0]) === null || O === void 0 ? void 0 : O.name;
@@ -30797,7 +30791,7 @@ function RF(e) {
30797
30791
  if (Array.isArray(e)) return e;
30798
30792
  }
30799
30793
  var FF = function() {
30800
- var t, n = Mn(), r = Ae(!1), i = Bn(r, 2), s = i[0], o = i[1], a = Ae({}), l = Bn(a, 2), c = l[0], u = l[1], d = Ae(""), f = Bn(d, 2), h = f[0], g = f[1], y = Ae(1), m = Bn(y, 2), p = m[0], b = m[1], x = Ae({}), S = Bn(x, 2), w = S[0], O = S[1], C = Ae(!1), _ = Bn(C, 2), k = _[0], E = _[1], $ = Ae(!1), R = Bn($, 2), Y = R[0], q = R[1], F = Ae(null), M = Bn(F, 2), L = M[0], ee = M[1], fe = ai(), B = fe.brandId;
30794
+ var t, n = Dn(), r = Ae(!1), i = Bn(r, 2), s = i[0], o = i[1], a = Ae({}), l = Bn(a, 2), c = l[0], u = l[1], d = Ae(""), f = Bn(d, 2), h = f[0], g = f[1], y = Ae(1), m = Bn(y, 2), p = m[0], b = m[1], x = Ae({}), S = Bn(x, 2), w = S[0], O = S[1], C = Ae(!1), _ = Bn(C, 2), k = _[0], E = _[1], $ = Ae(!1), R = Bn($, 2), Y = R[0], q = R[1], F = Ae(null), M = Bn(F, 2), L = M[0], ee = M[1], fe = ai(), B = fe.brandId;
30801
30795
  function G(ve) {
30802
30796
  return String(ve.id);
30803
30797
  }
@@ -30831,7 +30825,7 @@ var FF = function() {
30831
30825
  });
30832
30826
  }, Bt = function() {
30833
30827
  n("/");
30834
- }, _n = function() {
30828
+ }, kn = function() {
30835
30829
  O({}), u({}), o(!1);
30836
30830
  }, Z = function() {
30837
30831
  E(!1);
@@ -30996,7 +30990,7 @@ var FF = function() {
30996
30990
  ] })
30997
30991
  ] }),
30998
30992
  /* @__PURE__ */ v(qf, { children: /* @__PURE__ */ v("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: s ? /* @__PURE__ */ D(ut, { children: [
30999
- /* @__PURE__ */ v(Be, { variant: "secondary", className: "yst-mb-0", onClick: _n, children: "Discard changes" }),
30993
+ /* @__PURE__ */ v(Be, { variant: "secondary", className: "yst-mb-0", onClick: kn, children: "Discard changes" }),
31000
30994
  /* @__PURE__ */ v(Be, { variant: "primary", className: "yst-mb-0", onClick: Bt, children: "Save changes" })
31001
30995
  ] }) : /* @__PURE__ */ v(Be, { as: si, to: "/", variant: "primary", className: "yst-mb-0", children: "Show analysis →" }) }) }),
31002
30996
  /* @__PURE__ */ v(EF, { isOpen: k, onClose: Z, brandId: B, brandsToGroup: K.filter(function(ve) {
@@ -31050,7 +31044,7 @@ function HF(e) {
31050
31044
  if (Array.isArray(e)) return e;
31051
31045
  }
31052
31046
  var UF = function(t) {
31053
- var n = t.isOpen, r = t.onClose, i = Dn(), s = Ae(""), o = BF(s, 2), a = o[0], l = o[1], c = qO({
31047
+ var n = t.isOpen, r = t.onClose, i = xn(), s = Ae(""), o = BF(s, 2), a = o[0], l = o[1], c = qO({
31054
31048
  mutation: {
31055
31049
  onSuccess: function() {
31056
31050
  i.clear(), r();
@@ -31111,11 +31105,11 @@ function QF(e) {
31111
31105
  if (Array.isArray(e)) return e;
31112
31106
  }
31113
31107
  var YF = function(t) {
31114
- var n = t.isOpen, r = t.brandId, i = t.onClose, s = t.brandName, o = Dn(), a = Ae(""), l = KF(a, 2), c = l[0], u = l[1], d = SO({
31108
+ var n = t.isOpen, r = t.brandId, i = t.onClose, s = t.brandName, o = xn(), a = Ae(""), l = KF(a, 2), c = l[0], u = l[1], d = SO({
31115
31109
  mutation: {
31116
31110
  onSuccess: function() {
31117
31111
  o.invalidateQueries({
31118
- queryKey: hr()
31112
+ queryKey: fr()
31119
31113
  }), console.log("Brand data deleted"), i();
31120
31114
  }
31121
31115
  }
@@ -31343,7 +31337,7 @@ function iN(e) {
31343
31337
  if (Array.isArray(e)) return e;
31344
31338
  }
31345
31339
  var sN = function(t) {
31346
- var n, r = t.brand, i = t.isLast, s = t.onDelete, o = r.id, a = Ae(!1), l = eN(a, 2), c = l[0], u = l[1], d = Dn(), f = Wc({
31340
+ var n, r = t.brand, i = t.isLast, s = t.onDelete, o = r.id, a = Ae(!1), l = eN(a, 2), c = l[0], u = l[1], d = xn(), f = Wc({
31347
31341
  query: {
31348
31342
  select: function(S) {
31349
31343
  var w = S.data;
@@ -31359,10 +31353,10 @@ var sN = function(t) {
31359
31353
  for (; ; ) switch (E.n) {
31360
31354
  case 0:
31361
31355
  return C = O.brandId, _ = O.data, E.n = 1, d.cancelQueries({
31362
- queryKey: hr()
31356
+ queryKey: fr()
31363
31357
  });
31364
31358
  case 1:
31365
- return k = d.getQueryData(hr()), d.setQueryData(hr(), function($) {
31359
+ return k = d.getQueryData(fr()), d.setQueryData(fr(), function($) {
31366
31360
  var R, Y;
31367
31361
  return $ && Tr(Tr({}, $), {}, {
31368
31362
  data: Tr(Tr({}, $.data), {}, {
@@ -31387,7 +31381,7 @@ var sN = function(t) {
31387
31381
  return S;
31388
31382
  }(),
31389
31383
  onError: function(S, w, O) {
31390
- O != null && O.previous && d.setQueryData(hr(), O.previous);
31384
+ O != null && O.previous && d.setQueryData(fr(), O.previous);
31391
31385
  },
31392
31386
  onSettled: function() {
31393
31387
  var x = Kp(/* @__PURE__ */ Vo().m(function w() {
@@ -31395,7 +31389,7 @@ var sN = function(t) {
31395
31389
  for (; ; ) switch (O.n) {
31396
31390
  case 0:
31397
31391
  return O.n = 1, Promise.all([d.invalidateQueries({
31398
- queryKey: hr()
31392
+ queryKey: fr()
31399
31393
  }), d.invalidateQueries({
31400
31394
  queryKey: Nf()
31401
31395
  })]);
@@ -31570,7 +31564,7 @@ var Xp = Ja(Wp || (Wp = Ph(["xl:yst-w-1/3"]))), Jp = Ja(Gp || (Gp = Ph(["xl:yst-
31570
31564
  S && S.length === 0 && /* @__PURE__ */ D("p", { className: "yst-mt-4 yst-text-slate-500", children: [
31571
31565
  "No brands found. Please",
31572
31566
  " ",
31573
- /* @__PURE__ */ v(Gn, { as: si, to: "/setup", children: "add a brand" }),
31567
+ /* @__PURE__ */ v(yr, { as: si, to: "/setup", children: "add a brand" }),
31574
31568
  " ",
31575
31569
  "to start analyzing."
31576
31570
  ] }),
@@ -32054,7 +32048,7 @@ function EN(e) {
32054
32048
  if (Array.isArray(e)) return e;
32055
32049
  }
32056
32050
  var AN = function() {
32057
- var t, n = Mn(), r = Gc(), i = Dn(), s = Ae(), o = Lo(s, 2), a = o[0], l = o[1], c = Ae(!1), u = Lo(c, 2), d = u[0], f = u[1], h = Ae({
32051
+ var t, n = Dn(), r = Gc(), i = xn(), s = Ae(), o = Lo(s, 2), a = o[0], l = o[1], c = Ae(!1), u = Lo(c, 2), d = u[0], f = u[1], h = Ae({
32058
32052
  name: "",
32059
32053
  url: "",
32060
32054
  industry: "",
@@ -32069,7 +32063,7 @@ var AN = function() {
32069
32063
  onSuccess: function(M) {
32070
32064
  var L = M.data.id;
32071
32065
  i.invalidateQueries({
32072
- queryKey: [Nf(), hr()]
32066
+ queryKey: [Nf(), fr()]
32073
32067
  }), L && r.setBrandId(L), M != null && M.status && M.status >= 200 && M.status < 300 && L && (r.setBrandId(L), l(L));
32074
32068
  },
32075
32069
  onError: function() {
@@ -32307,7 +32301,7 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32307
32301
  isRegenerating: !0
32308
32302
  };
32309
32303
  }), HN = function() {
32310
- var t = ai(), n = t.brandId, r = "/setup/".concat(n, "/analysis"), i = Mn(), s = Ae(zN), o = Ro(s, 2), a = o[0], l = o[1], c = Ae(!1), u = Ro(c, 2), d = u[0], f = u[1], h = Ae([]), g = Ro(h, 2), y = g[0], m = g[1], p = Ae([]), b = Ro(p, 2), x = b[0], S = b[1], w = Ae(!1), O = Ro(w, 2), C = O[0], _ = O[1], k = LO(n, {
32304
+ var t = ai(), n = t.brandId, r = "/setup/".concat(n, "/analysis"), i = Dn(), s = Ae(zN), o = Ro(s, 2), a = o[0], l = o[1], c = Ae(!1), u = Ro(c, 2), d = u[0], f = u[1], h = Ae([]), g = Ro(h, 2), y = g[0], m = g[1], p = Ae([]), b = Ro(p, 2), x = b[0], S = b[1], w = Ae(!1), O = Ro(w, 2), C = O[0], _ = O[1], k = LO(n, {
32311
32305
  query: {
32312
32306
  enabled: !!n
32313
32307
  }
@@ -32348,7 +32342,7 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32348
32342
  }), _(!1), m([]);
32349
32343
  }
32350
32344
  }, [E, $, C, y]);
32351
- var M = fr(function(I, z) {
32345
+ var M = dr(function(I, z) {
32352
32346
  var K = new Set(z);
32353
32347
  return x.filter(function(ce) {
32354
32348
  return !K.has(ce);
@@ -32359,14 +32353,14 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32359
32353
  }) || d;
32360
32354
  }, [$, a, d]), ee = $ || a.some(function(I) {
32361
32355
  return I.text === Sf;
32362
- }), fe = fr(function(I) {
32356
+ }), fe = dr(function(I) {
32363
32357
  var z = I.toString();
32364
32358
  m(function(K) {
32365
32359
  return K.includes(z) ? K.filter(function(ce) {
32366
32360
  return ce !== z;
32367
32361
  }) : [].concat(TN(K), [z]);
32368
32362
  });
32369
- }, []), B = fr(function(I, z) {
32363
+ }, []), B = dr(function(I, z) {
32370
32364
  l(function(K) {
32371
32365
  return K.map(function(ce, V) {
32372
32366
  return V === I ? $r($r({}, ce), {}, {
@@ -32376,7 +32370,7 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32376
32370
  });
32377
32371
  }, []), G = function() {
32378
32372
  f(!d), m([]);
32379
- }, re = fr(function() {
32373
+ }, re = dr(function() {
32380
32374
  if (!($ || y.length === 0)) {
32381
32375
  l(function(ce) {
32382
32376
  return ce.map(function(V, ne) {
@@ -32403,7 +32397,7 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32403
32397
  });
32404
32398
  }), m([])) : (_(!0), R());
32405
32399
  }
32406
- }, [$, y, R, a, M]), le = fr(function(I) {
32400
+ }, [$, y, R, a, M]), le = dr(function(I) {
32407
32401
  I.preventDefault(), n && q({
32408
32402
  brandId: n,
32409
32403
  data: {
@@ -32422,11 +32416,11 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32422
32416
  /* @__PURE__ */ v(Be, { size: "small", variant: "secondary", onClick: G, children: "Done" }),
32423
32417
  /* @__PURE__ */ D(Be, { size: "small", onClick: re, className: "yst-gap-1.5", isLoading: $, disabled: $ || y.length === 0, children: [
32424
32418
  /* @__PURE__ */ v(vb, {}),
32425
- "Regenerate selected prompts"
32419
+ "Regenerate selected queries"
32426
32420
  ] })
32427
32421
  ] }) : /* @__PURE__ */ D(Be, { size: "small", variant: "secondary", onClick: G, className: "yst-gap-1.5", disabled: ee, children: [
32428
32422
  /* @__PURE__ */ v(lE, {}),
32429
- "Select prompts to regenerate"
32423
+ "Select queries to regenerate"
32430
32424
  ] }) })
32431
32425
  ] })
32432
32426
  ] }),
@@ -32449,7 +32443,7 @@ var Wo = 5, Sf = "Generating...", qN = "Re-generating...", jN = ["**************
32449
32443
  }
32450
32444
  ) }),
32451
32445
  /* @__PURE__ */ D("div", { className: "yst-flex-1", children: [
32452
- /* @__PURE__ */ v(jl, { htmlFor: "query-text-".concat(z), className: "yst-mb-2 yst-block yst-text-sm yst-font-medium yst-text-slate-700", children: "Prompt ".concat(z + 1) }),
32446
+ /* @__PURE__ */ v(jl, { htmlFor: "query-text-".concat(z), className: "yst-mb-2 yst-block yst-text-sm yst-font-medium yst-text-slate-700", children: "Query ".concat(z + 1) }),
32453
32447
  /* @__PURE__ */ v(Ka, { id: "query-text-".concat(z), type: "text", value: K, onChange: function(ce) {
32454
32448
  I.isRegenerating || B(z, ce.target.value);
32455
32449
  }, placeholder: "Enter your query...", className: "yst-w-full", disabled: I.isRegenerating, required: !0 })
@@ -32506,40 +32500,40 @@ var KN = function(t) {
32506
32500
  return 10 * 1e3;
32507
32501
  }
32508
32502
  }, VN = function() {
32509
- var t, n, r, i = ai(), s = i.brandId, o = Mn(), a = fb(s, {
32503
+ var t, n, r, i = ai(), s = i.brandId, o = Dn(), a = xn(), l = fb(s, {
32510
32504
  query: {
32511
32505
  enabled: !!s,
32512
- select: function(p) {
32513
- var b = p.data;
32514
- return b;
32506
+ select: function(b) {
32507
+ var x = b.data;
32508
+ return x;
32515
32509
  }
32516
32510
  }
32517
- }), l = a.data, c = nO(
32511
+ }), c = l.data, u = nO(
32518
32512
  s,
32519
32513
  // NOTE: in the future we may need to select a specific analysis ID rather than always use 'latest' here
32520
32514
  "latest",
32521
32515
  {
32522
32516
  query: {
32523
32517
  enabled: !!s,
32524
- select: function(p) {
32525
- var b = p.data;
32526
- return b;
32518
+ select: function(b) {
32519
+ var x = b.data;
32520
+ return x;
32527
32521
  },
32528
- refetchInterval: function(p) {
32529
- var b, x = p == null || (b = p.state) === null || b === void 0 || (b = b.data) === null || b === void 0 ? void 0 : b.data;
32530
- return KN(x == null ? void 0 : x.status);
32522
+ refetchInterval: function(b) {
32523
+ var x, S = b == null || (x = b.state) === null || x === void 0 || (x = x.data) === null || x === void 0 ? void 0 : x.data;
32524
+ return KN(S == null ? void 0 : S.status);
32531
32525
  }
32532
32526
  }
32533
32527
  }
32534
- ), u = c.data;
32528
+ ), d = u.data;
32535
32529
  ot(function() {
32536
- var m = (u == null ? void 0 : u.status) === "pending" || (u == null ? void 0 : u.status) === "processing" || (u == null ? void 0 : u.status) === "completed";
32537
- l != null && l.nextScheduledAnalysis && u !== null && u !== void 0 && u.status && BE(l.nextScheduledAnalysis, 5) && !m && o("/brands/".concat(s));
32538
- }, [l == null ? void 0 : l.nextScheduledAnalysis, s, o, u == null ? void 0 : u.status]);
32539
- var d = u == null ? void 0 : u.id, f = d ? "/brands/".concat(s, "/analysis/").concat(d) : "/brands/".concat(s), h = l == null || (t = l.queries) === null || t === void 0 ? void 0 : t.length, g = (u == null || (n = u.completedQueries) === null || n === void 0 ? void 0 : n.length) || 0, y = function() {
32540
- if (h && h > 0) {
32541
- var m = 80 / h, p = g * m;
32542
- return (u == null ? void 0 : u.status) === "completed" ? 100 : Math.round(Math.min(p, 80));
32530
+ var p = (d == null ? void 0 : d.status) === "pending" || (d == null ? void 0 : d.status) === "processing" || (d == null ? void 0 : d.status) === "completed";
32531
+ c != null && c.nextScheduledAnalysis && d !== null && d !== void 0 && d.status && BE(c.nextScheduledAnalysis, 5) && !p && o("/brands/".concat(s));
32532
+ }, [c == null ? void 0 : c.nextScheduledAnalysis, s, o, d == null ? void 0 : d.status]);
32533
+ var f = d == null ? void 0 : d.id, h = f ? "/brands/".concat(s, "/analysis/").concat(f) : "/brands/".concat(s), g = c == null || (t = c.queries) === null || t === void 0 ? void 0 : t.length, y = (d == null || (n = d.completedQueries) === null || n === void 0 ? void 0 : n.length) || 0, m = function() {
32534
+ if (g && g > 0) {
32535
+ var p = 80 / g, b = y * p;
32536
+ return (d == null ? void 0 : d.status) === "completed" ? 100 : Math.round(Math.min(b, 80));
32543
32537
  }
32544
32538
  return 0;
32545
32539
  }();
@@ -32548,23 +32542,25 @@ var KN = function(t) {
32548
32542
  will now be tested in ChatGPT and Perplexity. This process should
32549
32543
  take around 5 minutes.` }),
32550
32544
  /* @__PURE__ */ D(sn.Content, { className: "yst-space-y-8", children: [
32551
- /* @__PURE__ */ v(fx, { progress: y }),
32545
+ /* @__PURE__ */ v(fx, { progress: m }),
32552
32546
  /* @__PURE__ */ v(Za, {}),
32553
- /* @__PURE__ */ v("div", { className: "yst-space-y-8", children: l == null || (r = l.queries) === null || r === void 0 ? void 0 : r.map(function(m) {
32554
- var p, b = m.id, x = m.query, S = b && (u == null || (p = u.completedQueries) === null || p === void 0 ? void 0 : p.includes(b));
32547
+ /* @__PURE__ */ v("div", { className: "yst-space-y-8", children: c == null || (r = c.queries) === null || r === void 0 ? void 0 : r.map(function(p) {
32548
+ var b, x = p.id, S = p.query, w = x && (d == null || (b = d.completedQueries) === null || b === void 0 ? void 0 : b.includes(x));
32555
32549
  return /* @__PURE__ */ D("div", { className: Se("yst-flex yst-items-center yst-justify-between yst-gap-3"), children: [
32556
- S === !0 ? (
32550
+ w === !0 ? (
32557
32551
  // found
32558
32552
  /* @__PURE__ */ v(Sb, { className: "yst-h-5 yst-w-5 yst-text-green-400" })
32559
32553
  ) : (
32560
32554
  // pending analysis (loading)
32561
32555
  /* @__PURE__ */ v(Cf, {})
32562
32556
  ),
32563
- /* @__PURE__ */ v("span", { className: "yst-flex-1 yst-text-sm", children: x })
32564
- ] }, "result-item-".concat(x));
32557
+ /* @__PURE__ */ v("span", { className: "yst-flex-1 yst-text-sm", children: S })
32558
+ ] }, "result-item-".concat(S));
32565
32559
  }) })
32566
32560
  ] }),
32567
- /* @__PURE__ */ v(sn.Content, { className: "yst-flex yst-justify-end yst-gap-4 yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6", children: /* @__PURE__ */ v(Be, { as: si, to: f, children: y === 100 ? "Continue →" : "Skip for now" }) })
32561
+ /* @__PURE__ */ v(sn.Content, { className: "yst-flex yst-justify-end yst-gap-4 yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6", children: /* @__PURE__ */ v(Be, { as: si, to: h, onClick: function() {
32562
+ return a.clear();
32563
+ }, children: m === 100 ? "Continue →" : "Skip for now" }) })
32568
32564
  ] }) });
32569
32565
  };
32570
32566
  const WN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({