react-semaphor 0.0.278 → 0.0.280

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.
@@ -383,7 +383,7 @@ function pz() {
383
383
  function ge(T) {
384
384
  return "" + T;
385
385
  }
386
- function Te(T) {
386
+ function De(T) {
387
387
  if (Qt(T))
388
388
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(T)), ge(T);
389
389
  }
@@ -470,7 +470,7 @@ function pz() {
470
470
  function lt(T, oe, pe, ke, Ke) {
471
471
  {
472
472
  var Je, Ue = {}, He = null, Le = null;
473
- pe !== void 0 && (Te(pe), He = "" + pe), Rn(oe) && (Te(oe.key), He = "" + oe.key), rn(oe) && (Le = oe.ref, bn(oe, Ke));
473
+ pe !== void 0 && (De(pe), He = "" + pe), Rn(oe) && (De(oe.key), He = "" + oe.key), rn(oe) && (Le = oe.ref, bn(oe, Ke));
474
474
  for (Je in oe)
475
475
  Ie.call(oe, Je) && !Ze.hasOwnProperty(Je) && (Ue[Je] = oe[Je]);
476
476
  if (T && T.defaultProps) {
@@ -4778,7 +4778,7 @@ function ix(e) {
4778
4778
  return (t == null ? void 0 : t.align) === "end" && (t == null ? void 0 : t.anchor) === "end" && (n = Ug()), (t == null ? void 0 : t.align) === "start" && (t == null ? void 0 : t.anchor) === "start" && (n = Ug()), Jd(n);
4779
4779
  }
4780
4780
  function Ug() {
4781
- return De.getState().theme === "dark" ? "#000000" : "#FFFFFF";
4781
+ return Te.getState().theme === "dark" ? "#000000" : "#FFFFFF";
4782
4782
  }
4783
4783
  function Jd(e) {
4784
4784
  let t = 0, n = 0, r = 0, o = 0;
@@ -4960,7 +4960,7 @@ qg.exports;
4960
4960
  ["partial", S],
4961
4961
  ["partialRight", P],
4962
4962
  ["rearg", D]
4963
- ], fe = "[object Arguments]", he = "[object Array]", me = "[object AsyncFunction]", Z = "[object Boolean]", te = "[object Date]", ie = "[object DOMException]", ye = "[object Error]", X = "[object Function]", _e = "[object GeneratorFunction]", Pe = "[object Map]", Me = "[object Number]", Ie = "[object Null]", Qe = "[object Object]", Ge = "[object Promise]", ze = "[object Proxy]", tt = "[object RegExp]", pt = "[object Set]", Ht = "[object String]", jt = "[object Symbol]", Qt = "[object Undefined]", ge = "[object WeakMap]", Te = "[object WeakSet]", Ve = "[object ArrayBuffer]", Ze = "[object DataView]", it = "[object Float32Array]", Jt = "[object Float64Array]", cn = "[object Int8Array]", rn = "[object Int16Array]", Rn = "[object Int32Array]", bn = "[object Uint8Array]", Ut = "[object Uint8ClampedArray]", dn = "[object Uint16Array]", Tn = "[object Uint32Array]", lt = /\b__p \+= '';/g, yt = /\b(__p \+=) '' \+/g, zt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, on = /&(?:amp|lt|gt|quot|#39);/g, Et = /[&<>"']/g, jn = RegExp(on.source), Xo = RegExp(Et.source), Ds = /<%-([\s\S]+?)%>/g, Qo = /<%([\s\S]+?)%>/g, Ui = /<%=([\s\S]+?)%>/g, gi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Gi = /^\w*$/, As = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, mi = /[\\^$.*+?()[\]{}|]/g, qi = RegExp(mi.source), er = /^\s+/, vi = /\s/, ks = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ms = /\{\n\/\* \[wrapped with (.+)\] \*/, T = /,? & /, oe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, pe = /[()=,{}\[\]\/\s]/, ke = /\\(\\)?/g, Ke = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Je = /\w*$/, Ue = /^[-+]0x[0-9a-f]+$/i, He = /^0b[01]+$/i, Le = /^\[object .+?Constructor\]$/, K = /^0o[0-7]+$/i, xe = /^(?:0|[1-9]\d*)$/, Fe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ft = /($^)/, On = /['\n\r\u2028\u2029\\]/g, bt = "\\ud800-\\udfff", gr = "\\u0300-\\u036f", $o = "\\ufe20-\\ufe2f", Ma = "\\u20d0-\\u20ff", tr = gr + $o + Ma, Lu = "\\u2700-\\u27bf", Fu = "a-z\\xdf-\\xf6\\xf8-\\xff", rF = "\\xac\\xb1\\xd7\\xf7", oF = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", iF = "\\u2000-\\u206f", sF = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", eC = "A-Z\\xc0-\\xd6\\xd8-\\xde", tC = "\\ufe0e\\ufe0f", nC = rF + oF + iF + sF, Vv = "['’]", aF = "[" + bt + "]", rC = "[" + nC + "]", Ph = "[" + tr + "]", oC = "\\d+", lF = "[" + Lu + "]", iC = "[" + Fu + "]", sC = "[^" + bt + nC + oC + Lu + Fu + eC + "]", Hv = "\\ud83c[\\udffb-\\udfff]", cF = "(?:" + Ph + "|" + Hv + ")", aC = "[^" + bt + "]", Wv = "(?:\\ud83c[\\udde6-\\uddff]){2}", Uv = "[\\ud800-\\udbff][\\udc00-\\udfff]", Jl = "[" + eC + "]", lC = "\\u200d", cC = "(?:" + iC + "|" + sC + ")", uF = "(?:" + Jl + "|" + sC + ")", uC = "(?:" + Vv + "(?:d|ll|m|re|s|t|ve))?", dC = "(?:" + Vv + "(?:D|LL|M|RE|S|T|VE))?", fC = cF + "?", hC = "[" + tC + "]?", dF = "(?:" + lC + "(?:" + [aC, Wv, Uv].join("|") + ")" + hC + fC + ")*", fF = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", hF = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pC = hC + fC + dF, pF = "(?:" + [lF, Wv, Uv].join("|") + ")" + pC, gF = "(?:" + [aC + Ph + "?", Ph, Wv, Uv, aF].join("|") + ")", mF = RegExp(Vv, "g"), vF = RegExp(Ph, "g"), Gv = RegExp(Hv + "(?=" + Hv + ")|" + gF + pC, "g"), bF = RegExp([
4963
+ ], fe = "[object Arguments]", he = "[object Array]", me = "[object AsyncFunction]", Z = "[object Boolean]", te = "[object Date]", ie = "[object DOMException]", ye = "[object Error]", X = "[object Function]", _e = "[object GeneratorFunction]", Pe = "[object Map]", Me = "[object Number]", Ie = "[object Null]", Qe = "[object Object]", Ge = "[object Promise]", ze = "[object Proxy]", tt = "[object RegExp]", pt = "[object Set]", Ht = "[object String]", jt = "[object Symbol]", Qt = "[object Undefined]", ge = "[object WeakMap]", De = "[object WeakSet]", Ve = "[object ArrayBuffer]", Ze = "[object DataView]", it = "[object Float32Array]", Jt = "[object Float64Array]", cn = "[object Int8Array]", rn = "[object Int16Array]", Rn = "[object Int32Array]", bn = "[object Uint8Array]", Ut = "[object Uint8ClampedArray]", dn = "[object Uint16Array]", Tn = "[object Uint32Array]", lt = /\b__p \+= '';/g, yt = /\b(__p \+=) '' \+/g, zt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, on = /&(?:amp|lt|gt|quot|#39);/g, Et = /[&<>"']/g, jn = RegExp(on.source), Xo = RegExp(Et.source), Ds = /<%-([\s\S]+?)%>/g, Qo = /<%([\s\S]+?)%>/g, Ui = /<%=([\s\S]+?)%>/g, gi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Gi = /^\w*$/, As = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, mi = /[\\^$.*+?()[\]{}|]/g, qi = RegExp(mi.source), er = /^\s+/, vi = /\s/, ks = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ms = /\{\n\/\* \[wrapped with (.+)\] \*/, T = /,? & /, oe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, pe = /[()=,{}\[\]\/\s]/, ke = /\\(\\)?/g, Ke = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Je = /\w*$/, Ue = /^[-+]0x[0-9a-f]+$/i, He = /^0b[01]+$/i, Le = /^\[object .+?Constructor\]$/, K = /^0o[0-7]+$/i, xe = /^(?:0|[1-9]\d*)$/, Fe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ft = /($^)/, On = /['\n\r\u2028\u2029\\]/g, bt = "\\ud800-\\udfff", gr = "\\u0300-\\u036f", $o = "\\ufe20-\\ufe2f", Ma = "\\u20d0-\\u20ff", tr = gr + $o + Ma, Lu = "\\u2700-\\u27bf", Fu = "a-z\\xdf-\\xf6\\xf8-\\xff", rF = "\\xac\\xb1\\xd7\\xf7", oF = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", iF = "\\u2000-\\u206f", sF = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", eC = "A-Z\\xc0-\\xd6\\xd8-\\xde", tC = "\\ufe0e\\ufe0f", nC = rF + oF + iF + sF, Vv = "['’]", aF = "[" + bt + "]", rC = "[" + nC + "]", Ph = "[" + tr + "]", oC = "\\d+", lF = "[" + Lu + "]", iC = "[" + Fu + "]", sC = "[^" + bt + nC + oC + Lu + Fu + eC + "]", Hv = "\\ud83c[\\udffb-\\udfff]", cF = "(?:" + Ph + "|" + Hv + ")", aC = "[^" + bt + "]", Wv = "(?:\\ud83c[\\udde6-\\uddff]){2}", Uv = "[\\ud800-\\udbff][\\udc00-\\udfff]", Jl = "[" + eC + "]", lC = "\\u200d", cC = "(?:" + iC + "|" + sC + ")", uF = "(?:" + Jl + "|" + sC + ")", uC = "(?:" + Vv + "(?:d|ll|m|re|s|t|ve))?", dC = "(?:" + Vv + "(?:D|LL|M|RE|S|T|VE))?", fC = cF + "?", hC = "[" + tC + "]?", dF = "(?:" + lC + "(?:" + [aC, Wv, Uv].join("|") + ")" + hC + fC + ")*", fF = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", hF = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pC = hC + fC + dF, pF = "(?:" + [lF, Wv, Uv].join("|") + ")" + pC, gF = "(?:" + [aC + Ph + "?", Ph, Wv, Uv, aF].join("|") + ")", mF = RegExp(Vv, "g"), vF = RegExp(Ph, "g"), Gv = RegExp(Hv + "(?=" + Hv + ")|" + gF + pC, "g"), bF = RegExp([
4964
4964
  Jl + "?" + iC + "+" + uC + "(?=" + [rC, Jl, "$"].join("|") + ")",
4965
4965
  uF + "+" + dC + "(?=" + [rC, Jl + cC, "$"].join("|") + ")",
4966
4966
  Jl + "?" + cC + "+" + uC,
@@ -7944,7 +7944,7 @@ qg.exports;
7944
7944
  return kn(d) && vr(d) == ge;
7945
7945
  }
7946
7946
  function d8(d) {
7947
- return kn(d) && Er(d) == Te;
7947
+ return kn(d) && Er(d) == De;
7948
7948
  }
7949
7949
  var f8 = np(mb), h8 = np(function(d, g) {
7950
7950
  return d <= g;
@@ -8645,7 +8645,7 @@ function VR(e, t) {
8645
8645
  t != null && t[n] && (t[n] = t[n].filter((r) => r.i !== e));
8646
8646
  });
8647
8647
  }
8648
- const De = JT()(
8648
+ const Te = JT()(
8649
8649
  iD((e, t) => ({
8650
8650
  isSessionExpired: !1,
8651
8651
  currentBreakpoint: "lg",
@@ -9263,7 +9263,7 @@ const De = JT()(
9263
9263
  }
9264
9264
  }
9265
9265
  }))
9266
- ), Ar = () => De((e) => e.actions), IB = {
9266
+ ), Ar = () => Te((e) => e.actions), IB = {
9267
9267
  theme: "system",
9268
9268
  setTheme: () => null
9269
9269
  }, dD = $n(IB);
@@ -10918,14 +10918,15 @@ function ji() {
10918
10918
  return e;
10919
10919
  }
10920
10920
  function yV() {
10921
- const { authToken: e } = ji(), t = De((s) => s.selectedLensId), { data: n, isLoading: r, isFetching: o, isError: i } = pw({
10922
- queryKey: ["dashboard", t, e == null ? void 0 : e.accessToken],
10921
+ const { authToken: e, version: t } = ji(), n = Te((a) => a.selectedLensId), { data: r, isLoading: o, isFetching: i, isError: s } = pw({
10922
+ queryKey: ["dashboard", n, e == null ? void 0 : e.accessToken],
10923
10923
  queryFn: () => tB(e == null ? void 0 : e.accessToken, {
10924
- lensId: t
10924
+ lensId: n,
10925
+ version: t
10925
10926
  })
10926
10927
  // staleTime: Infinity,
10927
10928
  });
10928
- return { data: n, isLoading: r, isFetching: o, isError: i };
10929
+ return { data: r, isLoading: o, isFetching: i, isError: s };
10929
10930
  }
10930
10931
  function SD(e) {
10931
10932
  return e === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
@@ -10944,7 +10945,7 @@ function xV({
10944
10945
  onEvent: r,
10945
10946
  defaultFilterValues: o
10946
10947
  }) {
10947
- const { authToken: i } = ji(), s = De((N) => N.selectedLensId), { data: a, isLoading: l, isFetching: c, isError: u } = yV(), { theme: f, setTheme: h } = LB(), p = De((N) => N.dashboard.globalStyle), {
10948
+ const { authToken: i } = ji(), s = Te((N) => N.selectedLensId), { data: a, isLoading: l, isFetching: c, isError: u } = yV(), { theme: f, setTheme: h } = LB(), p = Te((N) => N.dashboard.globalStyle), {
10948
10949
  setDashboard: m,
10949
10950
  setDashboardWithFilterValues: v,
10950
10951
  setSelectedSheetId: x,
@@ -10953,17 +10954,17 @@ function xV({
10953
10954
  setLenses: _,
10954
10955
  setSelectedLensId: C,
10955
10956
  setInitStore: S
10956
- } = De((N) => N.actions);
10957
- De(
10957
+ } = Te((N) => N.actions);
10958
+ Te(
10958
10959
  (N) => N.actions.setCustomCards
10959
10960
  );
10960
- const P = De(
10961
+ const P = Te(
10961
10962
  (N) => N.actions.setFilterValues
10962
- ), O = De(
10963
+ ), O = Te(
10963
10964
  (N) => N.actions.setThemeStyle
10964
- ), D = De(
10965
+ ), D = Te(
10965
10966
  (N) => N.actions.setDashboardTheme
10966
- ), M = De((N) => N.actions.setOnEvent);
10967
+ ), M = Te((N) => N.actions.setOnEvent);
10967
10968
  we(() => {
10968
10969
  i && S();
10969
10970
  }, [i, S]), we(() => {
@@ -11095,8 +11096,8 @@ function wV({
11095
11096
  defaultFilterValues: p,
11096
11097
  ...m
11097
11098
  }) {
11098
- De((C) => C.selectedSheetId);
11099
- const v = De((C) => C.themeStyle), x = De((C) => C.isSessionExpired), { isLoading: b, isError: w, isFetching: _ } = xV({
11099
+ Te((C) => C.selectedSheetId);
11100
+ const v = Te((C) => C.themeStyle), x = Te((C) => C.isSessionExpired), { isLoading: b, isError: w, isFetching: _ } = xV({
11100
11101
  // id,
11101
11102
  // version,
11102
11103
  authToken: l,
@@ -16460,7 +16461,7 @@ function ys({
16460
16461
  onSave: r,
16461
16462
  type: o = "input"
16462
16463
  }) {
16463
- const [i, s] = Ce(!1), [a, l] = Ce(n), c = De(
16464
+ const [i, s] = Ce(!1), [a, l] = Ce(n), c = Te(
16464
16465
  (h) => h.isDashboardEditing
16465
16466
  ), u = (h) => {
16466
16467
  h.stopPropagation(), c && s(!0);
@@ -26205,7 +26206,7 @@ function yQ(e) {
26205
26206
  Ho.register(mQ);
26206
26207
  function kk({ cfg: e, onDatapointClick: t }) {
26207
26208
  var f;
26208
- const [n, r] = Ce(""), o = De((h) => h.selectedLensId), i = ue(null), [s, a] = Ce(), l = De((h) => h.themeStyle);
26209
+ const [n, r] = Ce(""), o = Te((h) => h.selectedLensId), i = ue(null), [s, a] = Ce(), l = Te((h) => h.themeStyle);
26209
26210
  function c(h, p) {
26210
26211
  var v, x;
26211
26212
  if ((((v = h.data.datasets) == null ? void 0 : v.filter((b) => !!b.fill)) || []).length > 0) {
@@ -26866,7 +26867,7 @@ const Gr = JT()(
26866
26867
  ), u_ = () => Gr((e) => e.actions);
26867
26868
  function KQ(e, t, n) {
26868
26869
  var l, c, u, f;
26869
- const r = n == null ? void 0 : n.datasetOptions, o = De.getState().themeStyle, i = (c = (l = o == null ? void 0 : o.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.backgroundColor, s = (f = (u = o == null ? void 0 : o.chart) == null ? void 0 : u.dataset) == null ? void 0 : f.borderColor;
26870
+ const r = n == null ? void 0 : n.datasetOptions, o = Te.getState().themeStyle, i = (c = (l = o == null ? void 0 : o.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.backgroundColor, s = (f = (u = o == null ? void 0 : o.chart) == null ? void 0 : u.dataset) == null ? void 0 : f.borderColor;
26870
26871
  return e.map((h, p) => {
26871
26872
  var _;
26872
26873
  const m = r == null ? void 0 : r.find((C) => C.idx === p), v = i == null ? void 0 : i[p % i.length], x = s == null ? void 0 : s[p % s.length], b = s == null ? void 0 : s[p % s.length];
@@ -26897,7 +26898,7 @@ function QQ(e) {
26897
26898
  var a, l, c, u;
26898
26899
  const { metricKeys: t, dimensionKeys: n } = wr(e);
26899
26900
  let r = [];
26900
- const o = De.getState().themeStyle, i = (l = (a = o == null ? void 0 : o.chart) == null ? void 0 : a.dataset) == null ? void 0 : l.backgroundColor, s = (u = (c = o == null ? void 0 : o.chart) == null ? void 0 : c.dataset) == null ? void 0 : u.borderColor;
26901
+ const o = Te.getState().themeStyle, i = (l = (a = o == null ? void 0 : o.chart) == null ? void 0 : a.dataset) == null ? void 0 : l.backgroundColor, s = (u = (c = o == null ? void 0 : o.chart) == null ? void 0 : c.dataset) == null ? void 0 : u.borderColor;
26901
26902
  if ((n == null ? void 0 : n.length) === 1) {
26902
26903
  const f = e.map((h) => ({
26903
26904
  x: h[t[0]],
@@ -26929,7 +26930,7 @@ function QQ(e) {
26929
26930
  }
26930
26931
  function JQ(e) {
26931
26932
  var c, u, f, h;
26932
- const { dimensionKeys: t, metricKeys: n } = wr(e), r = De.getState().themeStyle, o = (u = (c = r == null ? void 0 : r.chart) == null ? void 0 : c.dataset) == null ? void 0 : u.backgroundColor, i = (h = (f = r == null ? void 0 : r.chart) == null ? void 0 : f.dataset) == null ? void 0 : h.borderColor, s = t == null ? void 0 : t[1];
26933
+ const { dimensionKeys: t, metricKeys: n } = wr(e), r = Te.getState().themeStyle, o = (u = (c = r == null ? void 0 : r.chart) == null ? void 0 : c.dataset) == null ? void 0 : u.backgroundColor, i = (h = (f = r == null ? void 0 : r.chart) == null ? void 0 : f.dataset) == null ? void 0 : h.borderColor, s = t == null ? void 0 : t[1];
26933
26934
  return [...new Set(e.map((p) => p == null ? void 0 : p[s]))].map((p, m) => ({
26934
26935
  label: p,
26935
26936
  data: e.filter((v) => (v == null ? void 0 : v[s]) === p).map((v) => [v == null ? void 0 : v[n[0]], v == null ? void 0 : v[n[1]], v == null ? void 0 : v[n[2]]]),
@@ -26940,7 +26941,7 @@ function JQ(e) {
26940
26941
  }
26941
26942
  function ZQ(e, t) {
26942
26943
  var s, a, l, c;
26943
- const n = De.getState().themeStyle, r = (a = (s = n == null ? void 0 : n.chart) == null ? void 0 : s.dataset) == null ? void 0 : a.backgroundColor, o = (c = (l = n == null ? void 0 : n.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.borderColor;
26944
+ const n = Te.getState().themeStyle, r = (a = (s = n == null ? void 0 : n.chart) == null ? void 0 : s.dataset) == null ? void 0 : a.backgroundColor, o = (c = (l = n == null ? void 0 : n.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.borderColor;
26944
26945
  return e.map((u) => ({
26945
26946
  label: u.charAt(0).toUpperCase() + u.slice(1),
26946
26947
  data: t.map((f) => f[u]),
@@ -27022,7 +27023,7 @@ function Qx({
27022
27023
  }
27023
27024
  function ii(e, t) {
27024
27025
  var s;
27025
- const n = De.getState().themeStyle, r = (s = n == null ? void 0 : n.chart) == null ? void 0 : s.options, o = Fc.cloneDeep(r);
27026
+ const n = Te.getState().themeStyle, r = (s = n == null ? void 0 : n.chart) == null ? void 0 : s.options, o = Fc.cloneDeep(r);
27026
27027
  return Fc.merge(
27027
27028
  o,
27028
27029
  e,
@@ -27369,13 +27370,13 @@ const nv = Fn("X", [
27369
27370
  };
27370
27371
  function bJ({ frame: e }) {
27371
27372
  var _;
27372
- const t = De(
27373
+ const t = Te(
27373
27374
  (C) => C.isDashboardEditing
27374
- ), n = De((C) => C.filterValues), r = De((C) => C.isVisualEditing), o = De((C) => C.selectedSheetId);
27375
- De(
27375
+ ), n = Te((C) => C.filterValues), r = Te((C) => C.isVisualEditing), o = Te((C) => C.selectedSheetId);
27376
+ Te(
27376
27377
  (C) => C.currentBreakpoint
27377
27378
  );
27378
- const { removeFrame: i } = De((C) => C.actions), s = De(
27379
+ const { removeFrame: i } = Te((C) => C.actions), s = Te(
27379
27380
  (C) => C.actions.setIsVisualEditing
27380
27381
  ), a = Gr(
27381
27382
  (C) => C.actions.setFilterValues
@@ -29409,13 +29410,13 @@ function S_(e, t) {
29409
29410
  }
29410
29411
  function WZ({ card: e }) {
29411
29412
  var x, b, w, _, C, S, P, O, D, M, L, N, z, J, q, j, ee, G, Q, W, $, V, U, k;
29412
- const t = De((re) => re.actions.setCardTitle), n = De(
29413
+ const t = Te((re) => re.actions.setCardTitle), n = Te(
29413
29414
  (re) => re.actions.setCardDescription
29414
- ), r = De((re) => re.isVisualEditing), o = Gr((re) => re.card), i = Gr((re) => re.actions.setCard);
29415
+ ), r = Te((re) => re.isVisualEditing), o = Gr((re) => re.card), i = Gr((re) => re.actions.setCard);
29415
29416
  Gr(
29416
29417
  (re) => re.actions.setNumberFormat
29417
29418
  );
29418
- const s = De((re) => re.selectedSheetId), a = e.data, l = (b = (x = e.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : b.colorRanges, { metricKeys: c } = wr(a || []), u = (w = a == null ? void 0 : a[0]) == null ? void 0 : w[c == null ? void 0 : c[0]], f = (_ = a == null ? void 0 : a[0]) == null ? void 0 : _[c == null ? void 0 : c[1]], h = !!e.data && e.data.length > 0;
29419
+ const s = Te((re) => re.selectedSheetId), a = e.data, l = (b = (x = e.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : b.colorRanges, { metricKeys: c } = wr(a || []), u = (w = a == null ? void 0 : a[0]) == null ? void 0 : w[c == null ? void 0 : c[0]], f = (_ = a == null ? void 0 : a[0]) == null ? void 0 : _[c == null ? void 0 : c[1]], h = !!e.data && e.data.length > 0;
29419
29420
  function p(re) {
29420
29421
  r ? i({
29421
29422
  ...o,
@@ -29494,7 +29495,7 @@ function sM({
29494
29495
  className: t
29495
29496
  }) {
29496
29497
  var i, s;
29497
- const n = De((a) => a.themeStyle), r = e > 0 ? /* @__PURE__ */ E.jsx("span", { children: "+" }) : /* @__PURE__ */ E.jsx("span", { children: "-" }), o = `${Math.abs(e * 100).toFixed(0)}%`;
29498
+ const n = Te((a) => a.themeStyle), r = e > 0 ? /* @__PURE__ */ E.jsx("span", { children: "+" }) : /* @__PURE__ */ E.jsx("span", { children: "-" }), o = `${Math.abs(e * 100).toFixed(0)}%`;
29498
29499
  return /* @__PURE__ */ E.jsxs(
29499
29500
  "div",
29500
29501
  {
@@ -29593,7 +29594,7 @@ function Wp(e, t, n, r) {
29593
29594
  }
29594
29595
  const QZ = /* @__PURE__ */ Ll(qZ);
29595
29596
  function JZ(e) {
29596
- const t = De((c) => c.selectedLensId), n = De((c) => c.dashboard.baseQueries), { authToken: r } = ji(), o = De((c) => c.authToken), i = De((c) => c.filterValues), s = QZ((e == null ? void 0 : e.refreshInterval) || "0"), a = Zz(e.sql, n);
29597
+ const t = Te((c) => c.selectedLensId), n = Te((c) => c.dashboard.baseQueries), { authToken: r } = ji(), o = Te((c) => c.authToken), i = Te((c) => c.filterValues), s = QZ((e == null ? void 0 : e.refreshInterval) || "0"), a = Zz(e.sql, n);
29597
29598
  return pw({
29598
29599
  queryKey: [
29599
29600
  e.id,
@@ -30327,7 +30328,7 @@ function aee({
30327
30328
  cfg: o,
30328
30329
  apply: i
30329
30330
  }) {
30330
- const s = De.getState().theme;
30331
+ const s = Te.getState().theme;
30331
30332
  if (!o)
30332
30333
  return;
30333
30334
  const a = s === "dark" ? "rgb(238,238,238,0.2)" : "rgb(238,238,238,0.8)";
@@ -30488,14 +30489,14 @@ function Q1e(e) {
30488
30489
  function lv(e) {
30489
30490
  var ee, G, Q;
30490
30491
  const { onChartElementClicked: t } = ji(), [n, r] = Ce(0), o = ((ee = e == null ? void 0 : e.preferences) == null ? void 0 : ee.filterOnClickColumnIndex) === void 0 ? 0 : (G = e.preferences) == null ? void 0 : G.filterOnClickColumnIndex;
30491
- De((W) => W.isVisualEditing);
30492
- const i = De((W) => W.filteringCards), s = De((W) => W.selectedSheetId), a = De((W) => W.selectedLensId);
30493
- De((W) => W.selectedCardId);
30494
- const l = De((W) => W.dashboard);
30495
- De(
30492
+ Te((W) => W.isVisualEditing);
30493
+ const i = Te((W) => W.filteringCards), s = Te((W) => W.selectedSheetId), a = Te((W) => W.selectedLensId);
30494
+ Te((W) => W.selectedCardId);
30495
+ const l = Te((W) => W.dashboard);
30496
+ Te(
30496
30497
  (W) => W.isDashboardEditing
30497
30498
  );
30498
- const c = De((W) => W.themeStyle), u = De((W) => W.filterValues), f = ue(u), h = (Q = e == null ? void 0 : e.preferences) == null ? void 0 : Q.onClickFilter, {
30499
+ const c = Te((W) => W.themeStyle), u = Te((W) => W.filterValues), f = ue(u), h = (Q = e == null ? void 0 : e.preferences) == null ? void 0 : Q.onClickFilter, {
30499
30500
  addFilteringCard: p,
30500
30501
  setFrameCardData: m,
30501
30502
  // getSelectedFrame,
@@ -30610,11 +30611,11 @@ function lv(e) {
30610
30611
  };
30611
30612
  }
30612
30613
  function fee(e, t) {
30613
- De((s) => s.selectedSheetId);
30614
- const n = De((s) => s.selectedFrameId), r = De(
30614
+ Te((s) => s.selectedSheetId);
30615
+ const n = Te((s) => s.selectedFrameId), r = Te(
30615
30616
  (s) => s.isDashboardEditing
30616
- ), o = De((s) => s.isVisualEditing);
30617
- De(
30617
+ ), o = Te((s) => s.isVisualEditing);
30618
+ Te(
30618
30619
  (s) => s.actions
30619
30620
  ), we(() => {
30620
30621
  n === e.id && r && !o && i();
@@ -35446,7 +35447,7 @@ function Ere(e) {
35446
35447
  }
35447
35448
  function Rre({ data: e, card: t }) {
35448
35449
  var C, S, P, O;
35449
- const [n, r] = ce.useState([]), { keys: o } = wr(e), i = De((D) => D.filteringCards), s = De((D) => D.themeStyle), a = De((D) => D.isVisualEditing), l = i == null ? void 0 : i.find(
35450
+ const [n, r] = ce.useState([]), { keys: o } = wr(e), i = Te((D) => D.filteringCards), s = Te((D) => D.themeStyle), a = Te((D) => D.isVisualEditing), l = i == null ? void 0 : i.find(
35450
35451
  (D) => D.id === t.id
35451
35452
  ), c = (C = t == null ? void 0 : t.preferences) == null ? void 0 : C.onClickFilter, {
35452
35453
  addOrUpdateFilterValues: u,
@@ -35873,7 +35874,7 @@ function gI() {
35873
35874
  }
35874
35875
  })), he = null, me = null, Z = !0, te = !0, ie = !1, ye = !0, X = !1, _e = !0, Pe = !1, Me = !1, Ie = !1, Qe = !1, Ge = !1, ze = !1, tt = !0, pt = !1;
35875
35876
  const Ht = "user-content-";
35876
- let jt = !0, Qt = !1, ge = {}, Te = null;
35877
+ let jt = !0, Qt = !1, ge = {}, De = null;
35877
35878
  const Ve = Lt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
35878
35879
  let Ze = null;
35879
35880
  const it = Lt({}, ["audio", "video", "img", "source", "image", "track"]);
@@ -35904,7 +35905,7 @@ function gI() {
35904
35905
  // eslint-disable-line indent
35905
35906
  Et
35906
35907
  // eslint-disable-line indent
35907
- ) : it, Te = oi(K, "FORBID_CONTENTS") ? Lt({}, K.FORBID_CONTENTS, Et) : Ve, he = oi(K, "FORBID_TAGS") ? Lt({}, K.FORBID_TAGS, Et) : {}, me = oi(K, "FORBID_ATTR") ? Lt({}, K.FORBID_ATTR, Et) : {}, ge = oi(K, "USE_PROFILES") ? K.USE_PROFILES : !1, Z = K.ALLOW_ARIA_ATTR !== !1, te = K.ALLOW_DATA_ATTR !== !1, ie = K.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = K.ALLOW_SELF_CLOSE_IN_ATTR !== !1, X = K.SAFE_FOR_TEMPLATES || !1, _e = K.SAFE_FOR_XML !== !1, Pe = K.WHOLE_DOCUMENT || !1, Qe = K.RETURN_DOM || !1, Ge = K.RETURN_DOM_FRAGMENT || !1, ze = K.RETURN_TRUSTED_TYPE || !1, Ie = K.FORCE_BODY || !1, tt = K.SANITIZE_DOM !== !1, pt = K.SANITIZE_NAMED_PROPS || !1, jt = K.KEEP_CONTENT !== !1, Qt = K.IN_PLACE || !1, $ = K.ALLOWED_URI_REGEXP || hI, Ut = K.NAMESPACE || bn, fe = K.CUSTOM_ELEMENT_HANDLING || {}, K.CUSTOM_ELEMENT_HANDLING && Ds(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (fe.tagNameCheck = K.CUSTOM_ELEMENT_HANDLING.tagNameCheck), K.CUSTOM_ELEMENT_HANDLING && Ds(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (fe.attributeNameCheck = K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), K.CUSTOM_ELEMENT_HANDLING && typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (fe.allowCustomizedBuiltInElements = K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), X && (te = !1), Ge && (Qe = !0), ge && (V = Lt({}, $$), k = [], ge.html === !0 && (Lt(V, P$), Lt(k, T$)), ge.svg === !0 && (Lt(V, K0), Lt(k, J0), Lt(k, eg)), ge.svgFilters === !0 && (Lt(V, X0), Lt(k, J0), Lt(k, eg)), ge.mathMl === !0 && (Lt(V, Q0), Lt(k, D$), Lt(k, eg))), K.ADD_TAGS && (V === U && (V = tl(V)), Lt(V, K.ADD_TAGS, Et)), K.ADD_ATTR && (k === re && (k = tl(k)), Lt(k, K.ADD_ATTR, Et)), K.ADD_URI_SAFE_ATTR && Lt(Jt, K.ADD_URI_SAFE_ATTR, Et), K.FORBID_CONTENTS && (Te === Ve && (Te = tl(Te)), Lt(Te, K.FORBID_CONTENTS, Et)), jt && (V["#text"] = !0), Pe && Lt(V, ["html", "head", "body"]), V.table && (Lt(V, ["tbody"]), delete he.tbody), K.TRUSTED_TYPES_POLICY) {
35908
+ ) : it, De = oi(K, "FORBID_CONTENTS") ? Lt({}, K.FORBID_CONTENTS, Et) : Ve, he = oi(K, "FORBID_TAGS") ? Lt({}, K.FORBID_TAGS, Et) : {}, me = oi(K, "FORBID_ATTR") ? Lt({}, K.FORBID_ATTR, Et) : {}, ge = oi(K, "USE_PROFILES") ? K.USE_PROFILES : !1, Z = K.ALLOW_ARIA_ATTR !== !1, te = K.ALLOW_DATA_ATTR !== !1, ie = K.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = K.ALLOW_SELF_CLOSE_IN_ATTR !== !1, X = K.SAFE_FOR_TEMPLATES || !1, _e = K.SAFE_FOR_XML !== !1, Pe = K.WHOLE_DOCUMENT || !1, Qe = K.RETURN_DOM || !1, Ge = K.RETURN_DOM_FRAGMENT || !1, ze = K.RETURN_TRUSTED_TYPE || !1, Ie = K.FORCE_BODY || !1, tt = K.SANITIZE_DOM !== !1, pt = K.SANITIZE_NAMED_PROPS || !1, jt = K.KEEP_CONTENT !== !1, Qt = K.IN_PLACE || !1, $ = K.ALLOWED_URI_REGEXP || hI, Ut = K.NAMESPACE || bn, fe = K.CUSTOM_ELEMENT_HANDLING || {}, K.CUSTOM_ELEMENT_HANDLING && Ds(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (fe.tagNameCheck = K.CUSTOM_ELEMENT_HANDLING.tagNameCheck), K.CUSTOM_ELEMENT_HANDLING && Ds(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (fe.attributeNameCheck = K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), K.CUSTOM_ELEMENT_HANDLING && typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (fe.allowCustomizedBuiltInElements = K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), X && (te = !1), Ge && (Qe = !0), ge && (V = Lt({}, $$), k = [], ge.html === !0 && (Lt(V, P$), Lt(k, T$)), ge.svg === !0 && (Lt(V, K0), Lt(k, J0), Lt(k, eg)), ge.svgFilters === !0 && (Lt(V, X0), Lt(k, J0), Lt(k, eg)), ge.mathMl === !0 && (Lt(V, Q0), Lt(k, D$), Lt(k, eg))), K.ADD_TAGS && (V === U && (V = tl(V)), Lt(V, K.ADD_TAGS, Et)), K.ADD_ATTR && (k === re && (k = tl(k)), Lt(k, K.ADD_ATTR, Et)), K.ADD_URI_SAFE_ATTR && Lt(Jt, K.ADD_URI_SAFE_ATTR, Et), K.FORBID_CONTENTS && (De === Ve && (De = tl(De)), Lt(De, K.FORBID_CONTENTS, Et)), jt && (V["#text"] = !0), Pe && Lt(V, ["html", "head", "body"]), V.table && (Lt(V, ["tbody"]), delete he.tbody), K.TRUSTED_TYPES_POLICY) {
35908
35909
  if (typeof K.TRUSTED_TYPES_POLICY.createHTML != "function")
35909
35910
  throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
35910
35911
  if (typeof K.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -36007,7 +36008,7 @@ function gI() {
36007
36008
  if (!V[Fe] || he[Fe]) {
36008
36009
  if (!he[Fe] && Je(Fe) && (fe.tagNameCheck instanceof RegExp && Pr(fe.tagNameCheck, Fe) || fe.tagNameCheck instanceof Function && fe.tagNameCheck(Fe)))
36009
36010
  return !1;
36010
- if (jt && !Te[Fe]) {
36011
+ if (jt && !De[Fe]) {
36011
36012
  const ft = _(K) || K.parentNode, On = w(K) || K.childNodes;
36012
36013
  if (On && ft) {
36013
36014
  const bt = On.length;
@@ -36765,7 +36766,7 @@ const q_ = I.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
36765
36766
  q_.displayName = bI.displayName;
36766
36767
  function uoe({ card: e, isLoading: t }) {
36767
36768
  var f, h;
36768
- const n = (e == null ? void 0 : e.data) || [], { keys: r } = wr(n), o = De((p) => p.selectedSheetId), i = De((p) => p.isVisualEditing), s = (h = (f = e == null ? void 0 : e.preferences) == null ? void 0 : f.textVisualOptions) == null ? void 0 : h.isDynamicText, { setCardDescription: a } = Ar(), { setCard: l } = u_();
36769
+ const n = (e == null ? void 0 : e.data) || [], { keys: r } = wr(n), o = Te((p) => p.selectedSheetId), i = Te((p) => p.isVisualEditing), s = (h = (f = e == null ? void 0 : e.preferences) == null ? void 0 : f.textVisualOptions) == null ? void 0 : h.isDynamicText, { setCardDescription: a } = Ar(), { setCard: l } = u_();
36769
36770
  function c() {
36770
36771
  var x;
36771
36772
  if (t)
@@ -36860,7 +36861,7 @@ const $I = OI, wv = I.forwardRef(
36860
36861
  wv.displayName = $I.displayName;
36861
36862
  function hoe() {
36862
36863
  var h, p;
36863
- const e = De((m) => m.themeStyle), t = De((m) => m.filterValues), n = De((m) => m.dashboard.filters), r = De((m) => m.filteringCards), {
36864
+ const e = Te((m) => m.themeStyle), t = Te((m) => m.filterValues), n = Te((m) => m.dashboard.filters), r = Te((m) => m.filteringCards), {
36864
36865
  removeFilterValue: o,
36865
36866
  removeFilteringCard: i,
36866
36867
  setFilterValues: s,
@@ -36954,8 +36955,8 @@ function hoe() {
36954
36955
  }
36955
36956
  function poe({ card: e, renderFilterInfo: t }) {
36956
36957
  var h, p, m, v, x, b, w, _, C, S, P, O, D, M, L, N, z, J, q, j, ee, G, Q, W;
36957
- De(($) => $.themeStyle);
36958
- const { data: n, isLoading: r } = lv(e), o = (n == null ? void 0 : n.records) || e.data, i = De(
36958
+ Te(($) => $.themeStyle);
36959
+ const { data: n, isLoading: r } = lv(e), o = (n == null ? void 0 : n.records) || e.data, i = Te(
36959
36960
  ($) => $.isDashboardEditing
36960
36961
  ), s = (p = (h = e.preferences) == null ? void 0 : h.formatNumber) == null ? void 0 : p.colorRanges, { metricKeys: a } = wr(o || []), l = (m = o == null ? void 0 : o[0]) == null ? void 0 : m[a == null ? void 0 : a[0]], c = (v = o == null ? void 0 : o[0]) == null ? void 0 : v[a == null ? void 0 : a[1]], u = !!e.data && e.data.length > 0, f = c && c - l !== 0 ? (l - c) / c : null;
36961
36962
  return (
@@ -37098,7 +37099,7 @@ function xoe({
37098
37099
  frame: t
37099
37100
  }) {
37100
37101
  var p, m, v, x, b, w, _, C, S;
37101
- const n = De((P) => P.themeStyle), r = {
37102
+ const n = Te((P) => P.themeStyle), r = {
37102
37103
  colors: ((m = (p = n == null ? void 0 : n.chart) == null ? void 0 : p.dataset) == null ? void 0 : m.backgroundColor) || []
37103
37104
  }, [o, i] = Ce(!1), { getCard: s } = boe(((v = e.customCardPreferences) == null ? void 0 : v.url) || ""), a = ((x = e.customCardPreferences) == null ? void 0 : x.visualType) || "single", l = (b = e.customCardPreferences) == null ? void 0 : b.componentName;
37104
37105
  if (!l)
@@ -37284,12 +37285,12 @@ function Soe({
37284
37285
  ...r
37285
37286
  }) {
37286
37287
  var k, re, fe, he, me;
37287
- const { customCards: o } = ji(), i = ce.useRef(null), s = De((Z) => Z.themeStyle), a = De((Z) => Z.selectedSheetId), l = De((Z) => Z.selectedFrameId), c = De(
37288
+ const { customCards: o } = ji(), i = ce.useRef(null), s = Te((Z) => Z.themeStyle), a = Te((Z) => Z.selectedSheetId), l = Te((Z) => Z.selectedFrameId), c = Te(
37288
37289
  (Z) => Z.isDashboardEditing
37289
- ), u = De((Z) => Z.selectedLensId), f = De((Z) => Z.dashboard.filters);
37290
- De((Z) => Z.filteringCards);
37290
+ ), u = Te((Z) => Z.selectedLensId), f = Te((Z) => Z.dashboard.filters);
37291
+ Te((Z) => Z.filteringCards);
37291
37292
  const h = f == null ? void 0 : f.find((Z) => Z.id === e.filterId);
37292
- De((Z) => Z.filterValues);
37293
+ Te((Z) => Z.filterValues);
37293
37294
  const { updateFrame: p } = Ar(), m = e.cards.find((Z) => Z.id === e.activeCardId), v = ((k = m.customCardPreferences) == null ? void 0 : k.showCardHeader) ?? !0;
37294
37295
  fee(e, i);
37295
37296
  const {
@@ -39221,7 +39222,7 @@ function kie() {
39221
39222
  function ge(T) {
39222
39223
  return "" + T;
39223
39224
  }
39224
- function Te(T) {
39225
+ function De(T) {
39225
39226
  if (Qt(T))
39226
39227
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(T)), ge(T);
39227
39228
  }
@@ -39308,7 +39309,7 @@ function kie() {
39308
39309
  function lt(T, oe, pe, ke, Ke) {
39309
39310
  {
39310
39311
  var Je, Ue = {}, He = null, Le = null;
39311
- pe !== void 0 && (Te(pe), He = "" + pe), Rn(oe) && (Te(oe.key), He = "" + oe.key), rn(oe) && (Le = oe.ref, bn(oe, Ke));
39312
+ pe !== void 0 && (De(pe), He = "" + pe), Rn(oe) && (De(oe.key), He = "" + oe.key), rn(oe) && (Le = oe.ref, bn(oe, Ke));
39312
39313
  for (Je in oe)
39313
39314
  Ie.call(oe, Je) && !Ze.hasOwnProperty(Je) && (Ue[Je] = oe[Je]);
39314
39315
  if (T && T.defaultProps) {
@@ -40492,7 +40493,7 @@ function QI({
40492
40493
  }
40493
40494
  QI.displayName = "Calendar";
40494
40495
  function JI(e) {
40495
- const { authToken: t } = ji(), n = De((m) => m.filterValues), [r, o] = Ce(!0);
40496
+ const { authToken: t } = ji(), n = Te((m) => m.filterValues), [r, o] = Ce(!0);
40496
40497
  function i(m) {
40497
40498
  return r ? { allowQuery: !0, filterValues: m.filter(
40498
40499
  (b) => b.filterId !== e.id
@@ -40537,11 +40538,11 @@ function fae({
40537
40538
  className: t
40538
40539
  }) {
40539
40540
  var _, C, S, P, O, D, M, L;
40540
- const n = De((N) => N.themeStyle), [r, o] = Ce(!1), [i, s] = Ce(), [a, l] = Ce(), c = De((N) => N.filterValues);
40541
+ const n = Te((N) => N.themeStyle), [r, o] = Ce(!1), [i, s] = Ce(), [a, l] = Ce(), c = Te((N) => N.filterValues);
40541
40542
  ji();
40542
- const u = De(
40543
+ const u = Te(
40543
40544
  (N) => N.actions.addOrUpdateFilterValue
40544
- ), f = De(
40545
+ ), f = Te(
40545
40546
  (N) => N.actions.removeFilterValue
40546
40547
  ), { data: h, isLoading: p, isFetching: m, isError: v, refetch: x } = JI(e);
40547
40548
  we(() => {
@@ -42259,9 +42260,9 @@ function owe(e, t, n) {
42259
42260
  function Wle({ filter: e }) {
42260
42261
  const [t, n] = Ce([]), [r, o] = Ce(""), [i, s] = Ce(""), a = ue(null);
42261
42262
  ji();
42262
- const l = De((O) => O.filterValues), c = De((O) => O.selectedSheetId), u = De(
42263
+ const l = Te((O) => O.filterValues), c = Te((O) => O.selectedSheetId), u = Te(
42263
42264
  (O) => O.actions.addOrUpdateFilterValue
42264
- ), f = De(
42265
+ ), f = Te(
42265
42266
  (O) => O.actions.removeFilterValue
42266
42267
  ), { data: h, isLoading: p, isFetching: m, isError: v, refetch: x } = JI(e), b = mn(
42267
42268
  () => {
@@ -42764,7 +42765,7 @@ function lce({
42764
42765
  );
42765
42766
  }
42766
42767
  function cce({ filter: e }) {
42767
- const t = De(
42768
+ const t = Te(
42768
42769
  (i) => i.isDashboardEditing
42769
42770
  ), { removeFilterValue: n, removeFilter: r, updateFilter: o } = Ar();
42770
42771
  return /* @__PURE__ */ E.jsx(
@@ -42892,7 +42893,7 @@ var kce = (e) => {
42892
42893
  let { invert: f, toast: h, unstyled: p, interacting: m, setHeights: v, visibleToasts: x, heights: b, index: w, toasts: _, expanded: C, removeToast: S, defaultRichColors: P, closeButton: O, style: D, cancelButtonStyle: M, actionButtonStyle: L, className: N = "", descriptionClassName: z = "", duration: J, position: q, gap: j, loadingIcon: ee, expandByDefault: G, classNames: Q, icons: W, closeButtonAriaLabel: $ = "Close toast", pauseWhenPageIsHidden: V, cn: U } = e, [k, re] = ce.useState(!1), [fe, he] = ce.useState(!1), [me, Z] = ce.useState(!1), [te, ie] = ce.useState(!1), [ye, X] = ce.useState(0), [_e, Pe] = ce.useState(0), Me = ce.useRef(null), Ie = ce.useRef(null), Qe = w === 0, Ge = w + 1 <= x, ze = h.type, tt = h.dismissible !== !1, pt = h.className || "", Ht = h.descriptionClassName || "", jt = ce.useMemo(() => b.findIndex((lt) => lt.toastId === h.id) || 0, [b, h.id]), Qt = ce.useMemo(() => {
42893
42894
  var lt;
42894
42895
  return (lt = h.closeButton) != null ? lt : O;
42895
- }, [h.closeButton, O]), ge = ce.useMemo(() => h.duration || J || Oce, [h.duration, J]), Te = ce.useRef(0), Ve = ce.useRef(0), Ze = ce.useRef(0), it = ce.useRef(null), [Jt, cn] = q.split("-"), rn = ce.useMemo(() => b.reduce((lt, yt, zt) => zt >= jt ? lt : lt + yt.height, 0), [b, jt]), Rn = vce(), bn = h.invert || f, Ut = ze === "loading";
42896
+ }, [h.closeButton, O]), ge = ce.useMemo(() => h.duration || J || Oce, [h.duration, J]), De = ce.useRef(0), Ve = ce.useRef(0), Ze = ce.useRef(0), it = ce.useRef(null), [Jt, cn] = q.split("-"), rn = ce.useMemo(() => b.reduce((lt, yt, zt) => zt >= jt ? lt : lt + yt.height, 0), [b, jt]), Rn = vce(), bn = h.invert || f, Ut = ze === "loading";
42896
42897
  Ve.current = ce.useMemo(() => jt * j + rn, [jt, rn]), ce.useEffect(() => {
42897
42898
  re(!0);
42898
42899
  }, []), ce.useLayoutEffect(() => {
@@ -42913,12 +42914,12 @@ var kce = (e) => {
42913
42914
  return;
42914
42915
  let lt, yt = ge;
42915
42916
  return C || m || V && Rn ? (() => {
42916
- if (Ze.current < Te.current) {
42917
- let zt = (/* @__PURE__ */ new Date()).getTime() - Te.current;
42917
+ if (Ze.current < De.current) {
42918
+ let zt = (/* @__PURE__ */ new Date()).getTime() - De.current;
42918
42919
  yt = yt - zt;
42919
42920
  }
42920
42921
  Ze.current = (/* @__PURE__ */ new Date()).getTime();
42921
- })() : yt !== 1 / 0 && (Te.current = (/* @__PURE__ */ new Date()).getTime(), lt = setTimeout(() => {
42922
+ })() : yt !== 1 / 0 && (De.current = (/* @__PURE__ */ new Date()).getTime(), lt = setTimeout(() => {
42922
42923
  var zt;
42923
42924
  (zt = h.onAutoClose) == null || zt.call(h, h), dn();
42924
42925
  }, yt)), () => clearTimeout(lt);
@@ -43028,75 +43029,76 @@ var swe = (e) => {
43028
43029
  })) : null;
43029
43030
  };
43030
43031
  function Mce() {
43031
- const { getSelectedFrame: e, addFrame: t, setSelectedFrameId: n } = Ar(), r = De((a) => a.dashboard.sheets), i = De((a) => a.selectedSheetId) ?? (r == null ? void 0 : r[0].id), s = De(
43032
- (a) => a.isDashboardEditing
43033
- );
43032
+ const { getSelectedFrame: e, addFrame: t, setSelectedFrameId: n } = Ar(), r = Te((l) => l.dashboard.sheets), i = Te((l) => l.selectedSheetId) ?? (r == null ? void 0 : r[0].id), s = Te(
43033
+ (l) => l.isDashboardEditing
43034
+ ), a = Te((l) => l.isVisualEditing);
43034
43035
  we(() => {
43035
- if (!s)
43036
+ if (!s || a)
43036
43037
  return;
43037
- async function a(u) {
43038
- const f = u.ctrlKey || u.metaKey;
43039
- f && u.key === "c" ? (await l(), Sce.success("Card copied to clipboard"), u.preventDefault()) : f && u.key === "v" && (await c(), u.preventDefault());
43038
+ async function l(f) {
43039
+ const h = f.ctrlKey || f.metaKey;
43040
+ h && f.key === "c" ? (await c(), Sce.success("Card copied to clipboard"), f.preventDefault()) : h && f.key === "v" && (await u(), f.preventDefault());
43040
43041
  }
43041
- async function l() {
43042
+ async function c() {
43042
43043
  try {
43043
- const u = e();
43044
- u && await navigator.clipboard.writeText(JSON.stringify(u));
43045
- } catch (u) {
43046
- console.error("Failed to copy text:", u);
43044
+ const f = e();
43045
+ f && await navigator.clipboard.writeText(JSON.stringify(f));
43046
+ } catch (f) {
43047
+ console.error("Failed to copy text:", f);
43047
43048
  }
43048
43049
  }
43049
- async function c() {
43050
+ async function u() {
43050
43051
  if (!i)
43051
43052
  return null;
43052
43053
  try {
43053
- const u = await navigator.clipboard.readText();
43054
+ const f = await navigator.clipboard.readText();
43054
43055
  try {
43055
- const f = JSON.parse(u);
43056
- if (f && f.id) {
43057
- f.id = $l();
43058
- const h = f.activeCardId;
43059
- f.cards.forEach((p) => {
43060
- const m = p.id;
43061
- p.id = $l(), m === h && (f.activeCardId = p.id, p.title = `${p.title} (Copy)`);
43062
- }), t(i, f), n(f.id);
43056
+ const h = JSON.parse(f);
43057
+ if (h && h.id) {
43058
+ h.id = $l();
43059
+ const p = h.activeCardId;
43060
+ h.cards.forEach((m) => {
43061
+ const v = m.id;
43062
+ m.id = $l(), v === p && (h.activeCardId = m.id, m.title = `${m.title} (Copy)`);
43063
+ }), t(i, h), n(h.id);
43063
43064
  }
43064
- } catch (f) {
43065
- console.error("Failed to parse clipboard contents: ", f);
43065
+ } catch (h) {
43066
+ console.error("Failed to parse clipboard contents: ", h);
43066
43067
  }
43067
- return u;
43068
- } catch (u) {
43069
- return console.error("Failed to paste text:", u), null;
43068
+ return f;
43069
+ } catch (f) {
43070
+ return console.error("Failed to paste text:", f), null;
43070
43071
  }
43071
43072
  }
43072
- return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
43073
+ return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
43073
43074
  }, [
43074
43075
  t,
43075
43076
  e,
43076
43077
  n,
43077
43078
  i,
43078
- s
43079
+ s,
43080
+ a
43079
43081
  ]);
43080
43082
  }
43081
43083
  const Ice = yO.WidthProvider(yO.Responsive), _N = (e) => Zf.includes(e.dataType) ? /* @__PURE__ */ E.jsx(fae, { filter: e }) : /* @__PURE__ */ E.jsx(Wle, { filter: e });
43082
43084
  function Nce() {
43083
43085
  var S, P;
43084
- const e = De(
43086
+ const e = Te(
43085
43087
  (O) => O.isDashboardEditing
43086
43088
  );
43087
- De(
43089
+ Te(
43088
43090
  (O) => O.currentBreakpoint
43089
43091
  );
43090
- const t = De((O) => O.themeStyle);
43092
+ const t = Te((O) => O.themeStyle);
43091
43093
  Ce([]);
43092
- const n = De((O) => O.selectedSheetId);
43093
- De((O) => O.selectedLensId);
43094
- const r = (S = De(
43094
+ const n = Te((O) => O.selectedSheetId);
43095
+ Te((O) => O.selectedLensId);
43096
+ const r = (S = Te(
43095
43097
  (O) => {
43096
43098
  var D, M;
43097
43099
  return (M = (D = O.dashboard) == null ? void 0 : D.sheets) == null ? void 0 : M.filter((L) => L.id === n);
43098
43100
  }
43099
- )) == null ? void 0 : S[0].layouts, o = De((O) => O.dashboard.filters), i = De(
43101
+ )) == null ? void 0 : S[0].layouts, o = Te((O) => O.dashboard.filters), i = Te(
43100
43102
  (O) => {
43101
43103
  var D, M, L;
43102
43104
  return (L = (M = (D = O.dashboard) == null ? void 0 : D.sheets) == null ? void 0 : M.find((N) => N.id === n)) == null ? void 0 : L.frames;
@@ -43111,7 +43113,7 @@ function Nce() {
43111
43113
  removeFilter: h,
43112
43114
  updateFilter: p,
43113
43115
  removeFilterValue: m
43114
- } = De((O) => O.actions), v = s();
43116
+ } = Te((O) => O.actions), v = s();
43115
43117
  Mce();
43116
43118
  const x = qe(
43117
43119
  (O) => {
@@ -43202,7 +43204,7 @@ function Nce() {
43202
43204
  ) })
43203
43205
  );
43204
43206
  }
43205
- const SN = ve(({ className: e, handleAxis: t, ...n }, r) => (De((o) => o.themeStyle), /* @__PURE__ */ E.jsx(
43207
+ const SN = ve(({ className: e, handleAxis: t, ...n }, r) => (Te((o) => o.themeStyle), /* @__PURE__ */ E.jsx(
43206
43208
  "div",
43207
43209
  {
43208
43210
  ref: r,
@@ -44523,8 +44525,8 @@ const s2 = ce.use || ((e) => {
44523
44525
  tt.data = o(ge, Pe) ? ge : Pe, Ge && ze() && D().onSuccess(Pe, b, n);
44524
44526
  } catch (Qt) {
44525
44527
  Ht();
44526
- const ge = D(), { shouldRetryOnError: Te } = ge;
44527
- ge.isPaused() || (tt.error = Qt, Ge && ze() && (ge.onError(Qt, b, ge), (Te === !0 || $i(Te) && Te(Qt)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || M()) && ge.onErrorRetry(Qt, b, ge, (Ve) => {
44528
+ const ge = D(), { shouldRetryOnError: De } = ge;
44529
+ ge.isPaused() || (tt.error = Qt, Ge && ze() && (ge.onError(Qt, b, ge), (De === !0 || $i(De) && De(Qt)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || M()) && ge.onErrorRetry(Qt, b, ge, (Ve) => {
44528
44530
  const Ze = p[b];
44529
44531
  Ze && Ze[0] && Ze[0](Sd.ERROR_REVALIDATE_EVENT, Ve);
44530
44532
  }, {
@@ -44921,7 +44923,7 @@ function Due({
44921
44923
  if (pt)
44922
44924
  if (pt instanceof FileList)
44923
44925
  for (const ge of Array.from(pt)) {
44924
- const { name: Te, type: Ve } = ge, Ze = await new Promise((it, Jt) => {
44926
+ const { name: De, type: Ve } = ge, Ze = await new Promise((it, Jt) => {
44925
44927
  const cn = new FileReader();
44926
44928
  cn.onload = (rn) => {
44927
44929
  var Rn;
@@ -44929,16 +44931,16 @@ function Due({
44929
44931
  }, cn.onerror = (rn) => Jt(rn), cn.readAsDataURL(ge);
44930
44932
  });
44931
44933
  tt.push({
44932
- name: Te,
44934
+ name: De,
44933
44935
  contentType: Ve,
44934
44936
  url: Ze
44935
44937
  });
44936
44938
  }
44937
44939
  else if (Array.isArray(pt))
44938
44940
  for (const ge of pt) {
44939
- const { name: Te, url: Ve, contentType: Ze } = ge;
44941
+ const { name: De, url: Ve, contentType: Ze } = ge;
44940
44942
  tt.push({
44941
- name: Te,
44943
+ name: De,
44942
44944
  contentType: Ze,
44943
44945
  url: Ve
44944
44946
  });
@@ -49195,12 +49197,12 @@ function Ghe(e) {
49195
49197
  const n = {};
49196
49198
  return r;
49197
49199
  function r(ge) {
49198
- let Te = {
49200
+ let De = {
49199
49201
  type: "root",
49200
49202
  children: []
49201
49203
  };
49202
49204
  const Ve = {
49203
- stack: [Te],
49205
+ stack: [De],
49204
49206
  tokenStack: [],
49205
49207
  config: t,
49206
49208
  enter: a,
@@ -49234,7 +49236,7 @@ function Ghe(e) {
49234
49236
  const Jt = Ve.tokenStack[Ve.tokenStack.length - 1];
49235
49237
  (Jt[1] || T2).call(Ve, void 0, Jt[0]);
49236
49238
  }
49237
- for (Te.position = {
49239
+ for (De.position = {
49238
49240
  start: Xs(
49239
49241
  ge.length > 0 ? ge[0][1].start : {
49240
49242
  line: 1,
@@ -49250,11 +49252,11 @@ function Ghe(e) {
49250
49252
  }
49251
49253
  )
49252
49254
  }, it = -1; ++it < t.transforms.length; )
49253
- Te = t.transforms[it](Te) || Te;
49254
- return Te;
49255
+ De = t.transforms[it](De) || De;
49256
+ return De;
49255
49257
  }
49256
- function o(ge, Te, Ve) {
49257
- let Ze = Te - 1, it = -1, Jt = !1, cn, rn, Rn, bn;
49258
+ function o(ge, De, Ve) {
49259
+ let Ze = De - 1, it = -1, Jt = !1, cn, rn, Rn, bn;
49258
49260
  for (; ++Ze <= Ve; ) {
49259
49261
  const Ut = ge[Ze];
49260
49262
  switch (Ut[1].type) {
@@ -49306,12 +49308,12 @@ function Ghe(e) {
49306
49308
  }
49307
49309
  }
49308
49310
  }
49309
- return ge[Te][1]._spread = Jt, Ve;
49311
+ return ge[De][1]._spread = Jt, Ve;
49310
49312
  }
49311
- function i(ge, Te) {
49313
+ function i(ge, De) {
49312
49314
  return Ve;
49313
49315
  function Ve(Ze) {
49314
- a.call(this, ge(Ze), Ze), Te && Te.call(this, Ze);
49316
+ a.call(this, ge(Ze), Ze), De && De.call(this, Ze);
49315
49317
  }
49316
49318
  }
49317
49319
  function s() {
@@ -49320,23 +49322,23 @@ function Ghe(e) {
49320
49322
  children: []
49321
49323
  });
49322
49324
  }
49323
- function a(ge, Te, Ve) {
49324
- this.stack[this.stack.length - 1].children.push(ge), this.stack.push(ge), this.tokenStack.push([Te, Ve]), ge.position = {
49325
- start: Xs(Te.start),
49325
+ function a(ge, De, Ve) {
49326
+ this.stack[this.stack.length - 1].children.push(ge), this.stack.push(ge), this.tokenStack.push([De, Ve]), ge.position = {
49327
+ start: Xs(De.start),
49326
49328
  // @ts-expect-error: `end` will be patched later.
49327
49329
  end: void 0
49328
49330
  };
49329
49331
  }
49330
49332
  function l(ge) {
49331
- return Te;
49332
- function Te(Ve) {
49333
+ return De;
49334
+ function De(Ve) {
49333
49335
  ge && ge.call(this, Ve), c.call(this, Ve);
49334
49336
  }
49335
49337
  }
49336
- function c(ge, Te) {
49338
+ function c(ge, De) {
49337
49339
  const Ve = this.stack.pop(), Ze = this.tokenStack.pop();
49338
49340
  if (Ze)
49339
- Ze[0].type !== ge.type && (Te ? Te.call(this, ge, Ze[0]) : (Ze[1] || T2).call(this, ge, Ze[0]));
49341
+ Ze[0].type !== ge.type && (De ? De.call(this, ge, Ze[0]) : (Ze[1] || T2).call(this, ge, Ze[0]));
49340
49342
  else
49341
49343
  throw new Error(
49342
49344
  "Cannot close `" + ge.type + "` (" + Gd({
@@ -49354,56 +49356,56 @@ function Ghe(e) {
49354
49356
  }
49355
49357
  function h(ge) {
49356
49358
  if (this.data.expectingFirstListItemValue) {
49357
- const Te = this.stack[this.stack.length - 2];
49358
- Te.start = Number.parseInt(this.sliceSerialize(ge), 10), this.data.expectingFirstListItemValue = void 0;
49359
+ const De = this.stack[this.stack.length - 2];
49360
+ De.start = Number.parseInt(this.sliceSerialize(ge), 10), this.data.expectingFirstListItemValue = void 0;
49359
49361
  }
49360
49362
  }
49361
49363
  function p() {
49362
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49363
- Te.lang = ge;
49364
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49365
+ De.lang = ge;
49364
49366
  }
49365
49367
  function m() {
49366
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49367
- Te.meta = ge;
49368
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49369
+ De.meta = ge;
49368
49370
  }
49369
49371
  function v() {
49370
49372
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
49371
49373
  }
49372
49374
  function x() {
49373
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49374
- Te.value = ge.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
49375
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49376
+ De.value = ge.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
49375
49377
  }
49376
49378
  function b() {
49377
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49378
- Te.value = ge.replace(/(\r?\n|\r)$/g, "");
49379
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49380
+ De.value = ge.replace(/(\r?\n|\r)$/g, "");
49379
49381
  }
49380
49382
  function w(ge) {
49381
- const Te = this.resume(), Ve = this.stack[this.stack.length - 1];
49382
- Ve.label = Te, Ve.identifier = Gc(
49383
+ const De = this.resume(), Ve = this.stack[this.stack.length - 1];
49384
+ Ve.label = De, Ve.identifier = Gc(
49383
49385
  this.sliceSerialize(ge)
49384
49386
  ).toLowerCase();
49385
49387
  }
49386
49388
  function _() {
49387
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49388
- Te.title = ge;
49389
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49390
+ De.title = ge;
49389
49391
  }
49390
49392
  function C() {
49391
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49392
- Te.url = ge;
49393
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49394
+ De.url = ge;
49393
49395
  }
49394
49396
  function S(ge) {
49395
- const Te = this.stack[this.stack.length - 1];
49396
- if (!Te.depth) {
49397
+ const De = this.stack[this.stack.length - 1];
49398
+ if (!De.depth) {
49397
49399
  const Ve = this.sliceSerialize(ge).length;
49398
- Te.depth = Ve;
49400
+ De.depth = Ve;
49399
49401
  }
49400
49402
  }
49401
49403
  function P() {
49402
49404
  this.data.setextHeadingSlurpLineEnding = !0;
49403
49405
  }
49404
49406
  function O(ge) {
49405
- const Te = this.stack[this.stack.length - 1];
49406
- Te.depth = this.sliceSerialize(ge).codePointAt(0) === 61 ? 1 : 2;
49407
+ const De = this.stack[this.stack.length - 1];
49408
+ De.depth = this.sliceSerialize(ge).codePointAt(0) === 61 ? 1 : 2;
49407
49409
  }
49408
49410
  function D() {
49409
49411
  this.data.setextHeadingSlurpLineEnding = void 0;
@@ -49418,38 +49420,38 @@ function Ghe(e) {
49418
49420
  }, Ve.push(Ze)), this.stack.push(Ze);
49419
49421
  }
49420
49422
  function L(ge) {
49421
- const Te = this.stack.pop();
49422
- Te.value += this.sliceSerialize(ge), Te.position.end = Xs(ge.end);
49423
+ const De = this.stack.pop();
49424
+ De.value += this.sliceSerialize(ge), De.position.end = Xs(ge.end);
49423
49425
  }
49424
49426
  function N(ge) {
49425
- const Te = this.stack[this.stack.length - 1];
49427
+ const De = this.stack[this.stack.length - 1];
49426
49428
  if (this.data.atHardBreak) {
49427
- const Ve = Te.children[Te.children.length - 1];
49429
+ const Ve = De.children[De.children.length - 1];
49428
49430
  Ve.position.end = Xs(ge.end), this.data.atHardBreak = void 0;
49429
49431
  return;
49430
49432
  }
49431
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Te.type) && (M.call(this, ge), L.call(this, ge));
49433
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(De.type) && (M.call(this, ge), L.call(this, ge));
49432
49434
  }
49433
49435
  function z() {
49434
49436
  this.data.atHardBreak = !0;
49435
49437
  }
49436
49438
  function J() {
49437
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49438
- Te.value = ge;
49439
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49440
+ De.value = ge;
49439
49441
  }
49440
49442
  function q() {
49441
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49442
- Te.value = ge;
49443
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49444
+ De.value = ge;
49443
49445
  }
49444
49446
  function j() {
49445
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49446
- Te.value = ge;
49447
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49448
+ De.value = ge;
49447
49449
  }
49448
49450
  function ee() {
49449
49451
  const ge = this.stack[this.stack.length - 1];
49450
49452
  if (this.data.inReference) {
49451
- const Te = this.data.referenceType || "shortcut";
49452
- ge.type += "Reference", ge.referenceType = Te, delete ge.url, delete ge.title;
49453
+ const De = this.data.referenceType || "shortcut";
49454
+ ge.type += "Reference", ge.referenceType = De, delete ge.url, delete ge.title;
49453
49455
  } else
49454
49456
  delete ge.identifier, delete ge.label;
49455
49457
  this.data.referenceType = void 0;
@@ -49457,31 +49459,31 @@ function Ghe(e) {
49457
49459
  function G() {
49458
49460
  const ge = this.stack[this.stack.length - 1];
49459
49461
  if (this.data.inReference) {
49460
- const Te = this.data.referenceType || "shortcut";
49461
- ge.type += "Reference", ge.referenceType = Te, delete ge.url, delete ge.title;
49462
+ const De = this.data.referenceType || "shortcut";
49463
+ ge.type += "Reference", ge.referenceType = De, delete ge.url, delete ge.title;
49462
49464
  } else
49463
49465
  delete ge.identifier, delete ge.label;
49464
49466
  this.data.referenceType = void 0;
49465
49467
  }
49466
49468
  function Q(ge) {
49467
- const Te = this.sliceSerialize(ge), Ve = this.stack[this.stack.length - 2];
49468
- Ve.label = Hhe(Te), Ve.identifier = Gc(Te).toLowerCase();
49469
+ const De = this.sliceSerialize(ge), Ve = this.stack[this.stack.length - 2];
49470
+ Ve.label = Hhe(De), Ve.identifier = Gc(De).toLowerCase();
49469
49471
  }
49470
49472
  function W() {
49471
- const ge = this.stack[this.stack.length - 1], Te = this.resume(), Ve = this.stack[this.stack.length - 1];
49473
+ const ge = this.stack[this.stack.length - 1], De = this.resume(), Ve = this.stack[this.stack.length - 1];
49472
49474
  if (this.data.inReference = !0, Ve.type === "link") {
49473
49475
  const Ze = ge.children;
49474
49476
  Ve.children = Ze;
49475
49477
  } else
49476
- Ve.alt = Te;
49478
+ Ve.alt = De;
49477
49479
  }
49478
49480
  function $() {
49479
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49480
- Te.url = ge;
49481
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49482
+ De.url = ge;
49481
49483
  }
49482
49484
  function V() {
49483
- const ge = this.resume(), Te = this.stack[this.stack.length - 1];
49484
- Te.title = ge;
49485
+ const ge = this.resume(), De = this.stack[this.stack.length - 1];
49486
+ De.title = ge;
49485
49487
  }
49486
49488
  function U() {
49487
49489
  this.data.inReference = void 0;
@@ -49490,8 +49492,8 @@ function Ghe(e) {
49490
49492
  this.data.referenceType = "collapsed";
49491
49493
  }
49492
49494
  function re(ge) {
49493
- const Te = this.resume(), Ve = this.stack[this.stack.length - 1];
49494
- Ve.label = Te, Ve.identifier = Gc(
49495
+ const De = this.resume(), Ve = this.stack[this.stack.length - 1];
49496
+ Ve.label = De, Ve.identifier = Gc(
49495
49497
  this.sliceSerialize(ge)
49496
49498
  ).toLowerCase(), this.data.referenceType = "full";
49497
49499
  }
@@ -49499,24 +49501,24 @@ function Ghe(e) {
49499
49501
  this.data.characterReferenceType = ge.type;
49500
49502
  }
49501
49503
  function he(ge) {
49502
- const Te = this.sliceSerialize(ge), Ve = this.data.characterReferenceType;
49504
+ const De = this.sliceSerialize(ge), Ve = this.data.characterReferenceType;
49503
49505
  let Ze;
49504
49506
  Ve ? (Ze = e5(
49505
- Te,
49507
+ De,
49506
49508
  Ve === "characterReferenceMarkerNumeric" ? 10 : 16
49507
- ), this.data.characterReferenceType = void 0) : Ze = SS(Te);
49509
+ ), this.data.characterReferenceType = void 0) : Ze = SS(De);
49508
49510
  const it = this.stack.pop();
49509
49511
  it.value += Ze, it.position.end = Xs(ge.end);
49510
49512
  }
49511
49513
  function me(ge) {
49512
49514
  L.call(this, ge);
49513
- const Te = this.stack[this.stack.length - 1];
49514
- Te.url = this.sliceSerialize(ge);
49515
+ const De = this.stack[this.stack.length - 1];
49516
+ De.url = this.sliceSerialize(ge);
49515
49517
  }
49516
49518
  function Z(ge) {
49517
49519
  L.call(this, ge);
49518
- const Te = this.stack[this.stack.length - 1];
49519
- Te.url = "mailto:" + this.sliceSerialize(ge);
49520
+ const De = this.stack[this.stack.length - 1];
49521
+ De.url = "mailto:" + this.sliceSerialize(ge);
49520
49522
  }
49521
49523
  function te() {
49522
49524
  return {
@@ -51825,11 +51827,11 @@ function pge(e) {
51825
51827
  );
51826
51828
  }
51827
51829
  function gge() {
51828
- const e = ue(null), [t, n] = Ce(""), [r, o] = Ce(!1), i = De(
51830
+ const e = ue(null), [t, n] = Ce(""), [r, o] = Ce(!1), i = Te(
51829
51831
  (M) => M.dashboard.aiScopeTables
51830
51832
  );
51831
51833
  u_();
51832
- const s = De((M) => M.selectedSheetId), { addFrame: a, setSelectedFrameId: l, setIsDashboardEditing: c } = Ar(), { authToken: u } = ji(), f = xD(), {
51834
+ const s = Te((M) => M.selectedSheetId), { addFrame: a, setSelectedFrameId: l, setIsDashboardEditing: c } = Ar(), { authToken: u } = ji(), f = xD(), {
51833
51835
  messages: h,
51834
51836
  input: p,
51835
51837
  handleInputChange: m,
@@ -54515,7 +54517,7 @@ const UL = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ E.jsx(
54515
54517
  ));
54516
54518
  UL.displayName = IL.displayName;
54517
54519
  function tve({ open: e, setOpen: t }) {
54518
- const n = De((i) => i.selectedSheetId), { deleteSheet: r } = Ar();
54520
+ const n = Te((i) => i.selectedSheetId), { deleteSheet: r } = Ar();
54519
54521
  function o() {
54520
54522
  n && (r(n), t(!1));
54521
54523
  }
@@ -54532,14 +54534,14 @@ function tve({ open: e, setOpen: t }) {
54532
54534
  }
54533
54535
  function nve() {
54534
54536
  var v, x;
54535
- const [e, t] = Ce(!1), n = De((b) => {
54537
+ const [e, t] = Ce(!1), n = Te((b) => {
54536
54538
  var w;
54537
54539
  return (w = b.dashboard) == null ? void 0 : w.sheets;
54538
- }), { showAssistant: r } = ji(), o = ue(null), [i, s] = Ce(!1), a = De(
54540
+ }), { showAssistant: r } = ji(), o = ue(null), [i, s] = Ce(!1), a = Te(
54539
54541
  (b) => b.isDashboardEditing
54540
- ), l = De((b) => b.themeStyle);
54541
- De((b) => b.isVisualEditing);
54542
- const c = De((b) => b.selectedSheetId), { setSelectedSheetId: u, setSheetTitle: f, addSheet: h } = Ar();
54542
+ ), l = Te((b) => b.themeStyle);
54543
+ Te((b) => b.isVisualEditing);
54544
+ const c = Te((b) => b.selectedSheetId), { setSelectedSheetId: u, setSheetTitle: f, addSheet: h } = Ar();
54543
54545
  if (!n)
54544
54546
  return null;
54545
54547
  function p(b) {
@@ -58230,7 +58232,7 @@ export {
58230
58232
  fN as ax,
58231
58233
  NQ as ay,
58232
58234
  hge as az,
58233
- De as b,
58235
+ Te as b,
58234
58236
  fJ as b$,
58235
58237
  jk as b0,
58236
58238
  FD as b1,