react-semaphor 0.0.169 → 0.0.170

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.
@@ -84,14 +84,14 @@ function D6() {
84
84
  Ye.unshift("Warning: " + K), Function.prototype.apply.call(console[O], console, Ye);
85
85
  }
86
86
  }
87
- var E = !1, C = !1, P = !1, D = !1, M = !1, T;
88
- T = Symbol.for("react.module.reference");
87
+ var E = !1, C = !1, P = !1, T = !1, M = !1, D;
88
+ D = Symbol.for("react.module.reference");
89
89
  function N(O) {
90
- return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || D || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
90
+ return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || T || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
91
91
  // types supported by any Flight configuration anywhere since
92
92
  // we don't know which Flight build this will end up being used
93
93
  // with.
94
- O.$$typeof === T || O.getModuleId !== void 0));
94
+ O.$$typeof === D || O.getModuleId !== void 0));
95
95
  }
96
96
  function F(O, K, le) {
97
97
  var Re = O.displayName;
@@ -1000,7 +1000,7 @@ function a4(e) {
1000
1000
  return Q6.test(e);
1001
1001
  }
1002
1002
  function l4() {
1003
- const e = en("colors"), t = en("spacing"), n = en("blur"), r = en("brightness"), o = en("borderColor"), i = en("borderRadius"), s = en("borderSpacing"), a = en("borderWidth"), l = en("contrast"), c = en("grayscale"), u = en("hueRotate"), f = en("invert"), g = en("gap"), p = en("gradientColorStops"), m = en("gradientColorStopPositions"), b = en("inset"), y = en("margin"), x = en("opacity"), w = en("padding"), _ = en("saturate"), E = en("scale"), C = en("sepia"), P = en("skew"), D = en("space"), M = en("translate"), T = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", yt, t], B = () => [yt, t], q = () => ["", Ro, os], G = () => ["auto", wa, yt], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ee = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", yt], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [wa, rh], ne = () => [wa, yt];
1003
+ const e = en("colors"), t = en("spacing"), n = en("blur"), r = en("brightness"), o = en("borderColor"), i = en("borderRadius"), s = en("borderSpacing"), a = en("borderWidth"), l = en("contrast"), c = en("grayscale"), u = en("hueRotate"), f = en("invert"), g = en("gap"), p = en("gradientColorStops"), m = en("gradientColorStopPositions"), b = en("inset"), y = en("margin"), x = en("opacity"), w = en("padding"), _ = en("saturate"), E = en("scale"), C = en("sepia"), P = en("skew"), T = en("space"), M = en("translate"), D = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", yt, t], B = () => [yt, t], q = () => ["", Ro, os], G = () => ["auto", wa, yt], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ee = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", yt], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [wa, rh], ne = () => [wa, yt];
1004
1004
  return {
1005
1005
  cacheSize: 500,
1006
1006
  separator: ":",
@@ -1151,21 +1151,21 @@ function l4() {
1151
1151
  * @see https://tailwindcss.com/docs/overscroll-behavior
1152
1152
  */
1153
1153
  overscroll: [{
1154
- overscroll: T()
1154
+ overscroll: D()
1155
1155
  }],
1156
1156
  /**
1157
1157
  * Overscroll Behavior X
1158
1158
  * @see https://tailwindcss.com/docs/overscroll-behavior
1159
1159
  */
1160
1160
  "overscroll-x": [{
1161
- "overscroll-x": T()
1161
+ "overscroll-x": D()
1162
1162
  }],
1163
1163
  /**
1164
1164
  * Overscroll Behavior Y
1165
1165
  * @see https://tailwindcss.com/docs/overscroll-behavior
1166
1166
  */
1167
1167
  "overscroll-y": [{
1168
- "overscroll-y": T()
1168
+ "overscroll-y": D()
1169
1169
  }],
1170
1170
  /**
1171
1171
  * Position
@@ -1594,7 +1594,7 @@ function l4() {
1594
1594
  * @see https://tailwindcss.com/docs/space
1595
1595
  */
1596
1596
  "space-x": [{
1597
- "space-x": [D]
1597
+ "space-x": [T]
1598
1598
  }],
1599
1599
  /**
1600
1600
  * Space Between X Reverse
@@ -1606,7 +1606,7 @@ function l4() {
1606
1606
  * @see https://tailwindcss.com/docs/space
1607
1607
  */
1608
1608
  "space-y": [{
1609
- "space-y": [D]
1609
+ "space-y": [T]
1610
1610
  }],
1611
1611
  /**
1612
1612
  * Space Between Y Reverse
@@ -3105,10 +3105,10 @@ function m4() {
3105
3105
  }
3106
3106
  function r(_, E, C) {
3107
3107
  {
3108
- var P = t.ReactDebugCurrentFrame, D = P.getStackAddendum();
3109
- D !== "" && (E += "%s", C = C.concat([D]));
3110
- var M = C.map(function(T) {
3111
- return String(T);
3108
+ var P = t.ReactDebugCurrentFrame, T = P.getStackAddendum();
3109
+ T !== "" && (E += "%s", C = C.concat([T]));
3110
+ var M = C.map(function(D) {
3111
+ return String(D);
3112
3112
  });
3113
3113
  M.unshift("Warning: " + E), Function.prototype.apply.call(console[_], console, M);
3114
3114
  }
@@ -3121,26 +3121,26 @@ function m4() {
3121
3121
  u || e.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
3122
3122
  var P = E();
3123
3123
  if (!f) {
3124
- var D = E();
3125
- i(P, D) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
3124
+ var T = E();
3125
+ i(P, T) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
3126
3126
  }
3127
3127
  var M = s({
3128
3128
  inst: {
3129
3129
  value: P,
3130
3130
  getSnapshot: E
3131
3131
  }
3132
- }), T = M[0].inst, N = M[1];
3132
+ }), D = M[0].inst, N = M[1];
3133
3133
  return l(function() {
3134
- T.value = P, T.getSnapshot = E, p(T) && N({
3135
- inst: T
3134
+ D.value = P, D.getSnapshot = E, p(D) && N({
3135
+ inst: D
3136
3136
  });
3137
3137
  }, [_, P, E]), a(function() {
3138
- p(T) && N({
3139
- inst: T
3138
+ p(D) && N({
3139
+ inst: D
3140
3140
  });
3141
3141
  var F = function() {
3142
- p(T) && N({
3143
- inst: T
3142
+ p(D) && N({
3143
+ inst: D
3144
3144
  });
3145
3145
  };
3146
3146
  return _(F);
@@ -3237,26 +3237,26 @@ function b4() {
3237
3237
  value: null
3238
3238
  }, b.current = y) : y = b.current;
3239
3239
  var x = a(function() {
3240
- var C = !1, P, D, M = function(B) {
3240
+ var C = !1, P, T, M = function(B) {
3241
3241
  if (!C) {
3242
3242
  C = !0, P = B;
3243
3243
  var q = p(B);
3244
3244
  if (m !== void 0 && y.hasValue) {
3245
3245
  var G = y.value;
3246
3246
  if (m(G, q))
3247
- return D = G, G;
3247
+ return T = G, G;
3248
3248
  }
3249
- return D = q, q;
3249
+ return T = q, q;
3250
3250
  }
3251
- var j = P, ee = D;
3251
+ var j = P, ee = T;
3252
3252
  if (r(j, B))
3253
3253
  return ee;
3254
3254
  var Y = p(B);
3255
- return m !== void 0 && m(ee, Y) ? ee : (P = B, D = Y, Y);
3256
- }, T = g === void 0 ? null : g, N = function() {
3255
+ return m !== void 0 && m(ee, Y) ? ee : (P = B, T = Y, Y);
3256
+ }, D = g === void 0 ? null : g, N = function() {
3257
3257
  return M(f());
3258
- }, F = T === null ? void 0 : function() {
3259
- return M(T());
3258
+ }, F = D === null ? void 0 : function() {
3259
+ return M(D());
3260
3260
  };
3261
3261
  return [N, F];
3262
3262
  }, [f, g, p, m]), w = x[0], _ = x[1], E = o(u, w, _);
@@ -3298,16 +3298,16 @@ function y4() {
3298
3298
  function x(P) {
3299
3299
  if (!w) {
3300
3300
  if (w = !0, _ = P, P = g(P), p !== void 0 && b.hasValue) {
3301
- var D = b.value;
3302
- if (p(D, P))
3303
- return E = D;
3301
+ var T = b.value;
3302
+ if (p(T, P))
3303
+ return E = T;
3304
3304
  }
3305
3305
  return E = P;
3306
3306
  }
3307
- if (D = E, r(_, P))
3308
- return D;
3307
+ if (T = E, r(_, P))
3308
+ return T;
3309
3309
  var M = g(P);
3310
- return p !== void 0 && p(D, M) ? D : (_ = P, E = M);
3310
+ return p !== void 0 && p(T, M) ? T : (_ = P, E = M);
3311
3311
  }
3312
3312
  var w = !1, _, E, C = f === void 0 ? null : f;
3313
3313
  return [function() {
@@ -4610,13 +4610,13 @@ var Sp = { exports: {} };
4610
4610
  Sp.exports;
4611
4611
  (function(e, t) {
4612
4612
  (function() {
4613
- var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", f = 1, g = 2, p = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, P = 64, D = 128, M = 256, T = 512, N = 30, F = "...", B = 800, q = 16, G = 1, j = 2, ee = 3, Y = 1 / 0, X = 9007199254740991, re = 17976931348623157e292, R = NaN, H = 4294967295, ne = H - 1, A = H >>> 1, ue = [
4614
- ["ary", D],
4613
+ var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", f = 1, g = 2, p = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, P = 64, T = 128, M = 256, D = 512, N = 30, F = "...", B = 800, q = 16, G = 1, j = 2, ee = 3, Y = 1 / 0, X = 9007199254740991, re = 17976931348623157e292, R = NaN, H = 4294967295, ne = H - 1, A = H >>> 1, ue = [
4614
+ ["ary", T],
4615
4615
  ["bind", y],
4616
4616
  ["bindKey", x],
4617
4617
  ["curry", _],
4618
4618
  ["curryRight", E],
4619
- ["flip", T],
4619
+ ["flip", D],
4620
4620
  ["partial", C],
4621
4621
  ["partialRight", P],
4622
4622
  ["rearg", M]
@@ -6252,7 +6252,7 @@ Sp.exports;
6252
6252
  for (S = V ? S : v; ++S < v; ) {
6253
6253
  L = h[S];
6254
6254
  var U = Uf(L), te = U == "wrapper" ? tv(L) : n;
6255
- te && iv(te[0]) && te[1] == (D | _ | C | M) && !te[4].length && te[9] == 1 ? V = V[Uf(te[0])].apply(V, te[3]) : V = L.length == 1 && iv(L) ? V[U]() : V.thru(L);
6255
+ te && iv(te[0]) && te[1] == (T | _ | C | M) && !te[4].length && te[9] == 1 ? V = V[Uf(te[0])].apply(V, te[3]) : V = L.length == 1 && iv(L) ? V[U]() : V.thru(L);
6256
6256
  }
6257
6257
  return function() {
6258
6258
  var ye = arguments, xe = ye[0];
@@ -6265,7 +6265,7 @@ Sp.exports;
6265
6265
  });
6266
6266
  }
6267
6267
  function Bf(d, h, v, S, $, L, V, U, te, ye) {
6268
- var xe = h & D, Ce = h & y, Fe = h & x, Ge = h & (_ | E), et = h & T, bt = Fe ? n : eu(d);
6268
+ var xe = h & T, Ce = h & y, Fe = h & x, Ge = h & (_ | E), et = h & D, bt = Fe ? n : eu(d);
6269
6269
  function tt() {
6270
6270
  for (var Pt = arguments.length, Dt = de(Pt), Ir = Pt; Ir--; )
6271
6271
  Dt[Ir] = arguments[Ir];
@@ -6737,7 +6737,7 @@ Sp.exports;
6737
6737
  return h;
6738
6738
  }
6739
6739
  function a3(d, h) {
6740
- var v = d[1], S = h[1], $ = v | S, L = $ < (y | x | D), V = S == D && v == _ || S == D && v == M && d[7].length <= h[8] || S == (D | M) && h[7].length <= h[8] && v == _;
6740
+ var v = d[1], S = h[1], $ = v | S, L = $ < (y | x | T), V = S == T && v == _ || S == T && v == M && d[7].length <= h[8] || S == (T | M) && h[7].length <= h[8] && v == _;
6741
6741
  if (!(L || V))
6742
6742
  return d;
6743
6743
  S & y && (d[2] = h[2], $ |= v & y ? 0 : w);
@@ -6746,7 +6746,7 @@ Sp.exports;
6746
6746
  var te = d[3];
6747
6747
  d[3] = te ? N_(te, U, h[4]) : U, d[4] = te ? Qi(d[3], u) : h[4];
6748
6748
  }
6749
- return U = h[5], U && (te = d[5], d[5] = te ? L_(te, U, h[6]) : U, d[6] = te ? Qi(d[5], u) : h[6]), U = h[7], U && (d[7] = U), S & D && (d[8] = d[8] == null ? h[8] : Xn(d[8], h[8])), d[9] == null && (d[9] = h[9]), d[0] = h[0], d[1] = $, d;
6749
+ return U = h[5], U && (te = d[5], d[5] = te ? L_(te, U, h[6]) : U, d[6] = te ? Qi(d[5], u) : h[6]), U = h[7], U && (d[7] = U), S & T && (d[8] = d[8] == null ? h[8] : Xn(d[8], h[8])), d[9] == null && (d[9] = h[9]), d[0] = h[0], d[1] = $, d;
6750
6750
  }
6751
6751
  function l3(d) {
6752
6752
  var h = [];
@@ -7287,7 +7287,7 @@ Sp.exports;
7287
7287
  };
7288
7288
  }
7289
7289
  function vS(d, h, v) {
7290
- return h = v ? n : h, h = d && h == null ? d.length : h, wi(d, D, n, n, n, n, h);
7290
+ return h = v ? n : h, h = d && h == null ? d.length : h, wi(d, T, n, n, n, n, h);
7291
7291
  }
7292
7292
  function bS(d, h) {
7293
7293
  var v;
@@ -7375,7 +7375,7 @@ Sp.exports;
7375
7375
  return d_(d, uo(h) || 0, v);
7376
7376
  });
7377
7377
  function YL(d) {
7378
- return wi(d, T);
7378
+ return wi(d, D);
7379
7379
  }
7380
7380
  function Qf(d, h) {
7381
7381
  if (typeof d != "function" || h != null && typeof h != "function")
@@ -9556,11 +9556,11 @@ var Yo, CR, n$ = (CR = class extends Gd {
9556
9556
  this.execute(this.state.variables);
9557
9557
  }
9558
9558
  async execute(t) {
9559
- var o, i, s, a, l, c, u, f, g, p, m, b, y, x, w, _, E, C, P, D;
9559
+ var o, i, s, a, l, c, u, f, g, p, m, b, y, x, w, _, E, C, P, T;
9560
9560
  const n = () => (je(this, Zl, e$({
9561
9561
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
9562
- onFail: (M, T) => {
9563
- St(this, Xo, fs).call(this, { type: "failed", failureCount: M, error: T });
9562
+ onFail: (M, D) => {
9563
+ St(this, Xo, fs).call(this, { type: "failed", failureCount: M, error: D });
9564
9564
  },
9565
9565
  onPause: () => {
9566
9566
  St(this, Xo, fs).call(this, { type: "pause" });
@@ -9579,10 +9579,10 @@ var Yo, CR, n$ = (CR = class extends Gd {
9579
9579
  t,
9580
9580
  this
9581
9581
  ));
9582
- const T = await ((a = (s = this.options).onMutate) == null ? void 0 : a.call(s, t));
9583
- T !== this.state.context && St(this, Xo, fs).call(this, {
9582
+ const D = await ((a = (s = this.options).onMutate) == null ? void 0 : a.call(s, t));
9583
+ D !== this.state.context && St(this, Xo, fs).call(this, {
9584
9584
  type: "pending",
9585
- context: T,
9585
+ context: D,
9586
9586
  variables: t
9587
9587
  });
9588
9588
  }
@@ -9621,7 +9621,7 @@ var Yo, CR, n$ = (CR = class extends Gd {
9621
9621
  this.state.variables,
9622
9622
  this.state.context,
9623
9623
  this
9624
- )), await ((D = (P = this.options).onSettled) == null ? void 0 : D.call(
9624
+ )), await ((T = (P = this.options).onSettled) == null ? void 0 : T.call(
9625
9625
  P,
9626
9626
  void 0,
9627
9627
  M,
@@ -9803,12 +9803,12 @@ function o9(e) {
9803
9803
  meta: t.options.meta
9804
9804
  };
9805
9805
  u(P);
9806
- const D = await f(
9806
+ const T = await f(
9807
9807
  P
9808
- ), { maxPages: M } = t.options, T = C ? Y4 : G4;
9808
+ ), { maxPages: M } = t.options, D = C ? Y4 : G4;
9809
9809
  return {
9810
- pages: T(_.pages, D, M),
9811
- pageParams: T(_.pageParams, E, M)
9810
+ pages: D(_.pages, T, M),
9811
+ pageParams: D(_.pageParams, E, M)
9812
9812
  };
9813
9813
  };
9814
9814
  let p;
@@ -10172,8 +10172,8 @@ var Tn, bs, ys, ec, tc, xs, nc, rc, PR, s9 = (PR = class {
10172
10172
  const r = J(this, nn), o = this.options, i = J(this, cr), s = J(this, Da), a = J(this, oc), c = t !== r ? t.state : J(this, Ld), { state: u } = t;
10173
10173
  let { error: f, errorUpdatedAt: g, fetchStatus: p, status: m } = u, b = !1, y;
10174
10174
  if (n._optimisticResults) {
10175
- const D = this.hasListeners(), M = !D && pC(t, n), T = D && gC(t, r, n, o);
10176
- (M || T) && (p = fg(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (m = "pending")), n._optimisticResults === "isRestoring" && (p = "idle");
10175
+ const T = this.hasListeners(), M = !T && pC(t, n), D = T && gC(t, r, n, o);
10176
+ (M || D) && (p = fg(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (m = "pending")), n._optimisticResults === "isRestoring" && (p = "idle");
10177
10177
  }
10178
10178
  if (n.select && typeof u.data < "u")
10179
10179
  if (i && u.data === (s == null ? void 0 : s.data) && n.select === J(this, Fd))
@@ -10181,27 +10181,27 @@ var Tn, bs, ys, ec, tc, xs, nc, rc, PR, s9 = (PR = class {
10181
10181
  else
10182
10182
  try {
10183
10183
  je(this, Fd, n.select), y = n.select(u.data), y = b0(i == null ? void 0 : i.data, y, n), je(this, ic, y), je(this, Qo, null);
10184
- } catch (D) {
10185
- je(this, Qo, D);
10184
+ } catch (T) {
10185
+ je(this, Qo, T);
10186
10186
  }
10187
10187
  else
10188
10188
  y = u.data;
10189
10189
  if (typeof n.placeholderData < "u" && typeof y > "u" && m === "pending") {
10190
- let D;
10190
+ let T;
10191
10191
  if (i != null && i.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData))
10192
- D = i.data;
10193
- else if (D = typeof n.placeholderData == "function" ? n.placeholderData(
10192
+ T = i.data;
10193
+ else if (T = typeof n.placeholderData == "function" ? n.placeholderData(
10194
10194
  (P = J(this, sc)) == null ? void 0 : P.state.data,
10195
10195
  J(this, sc)
10196
- ) : n.placeholderData, n.select && typeof D < "u")
10196
+ ) : n.placeholderData, n.select && typeof T < "u")
10197
10197
  try {
10198
- D = n.select(D), je(this, Qo, null);
10198
+ T = n.select(T), je(this, Qo, null);
10199
10199
  } catch (M) {
10200
10200
  je(this, Qo, M);
10201
10201
  }
10202
- typeof D < "u" && (m = "success", y = b0(
10202
+ typeof T < "u" && (m = "success", y = b0(
10203
10203
  i == null ? void 0 : i.data,
10204
- D,
10204
+ T,
10205
10205
  n
10206
10206
  ), b = !0);
10207
10207
  }
@@ -10510,35 +10510,35 @@ function P9({
10510
10510
  }, [n, u]), _e(() => {
10511
10511
  const C = Ts.cloneDeep(d0);
10512
10512
  if (t) {
10513
- const P = Ts.merge(C, t), D = mC(c, P);
10514
- w(D), p(P);
10513
+ const P = Ts.merge(C, t), T = mC(c, P);
10514
+ w(T), p(P);
10515
10515
  } else {
10516
10516
  const P = mC(c, C);
10517
10517
  w(P), p(d0);
10518
10518
  }
10519
10519
  }, [c, t, p, w]), _e(() => {
10520
- var T;
10520
+ var D;
10521
10521
  if (!i || !i.dashboard)
10522
10522
  return;
10523
- const C = i.dashboard, P = nue(C.id), D = JSON.parse(
10523
+ const C = i.dashboard, P = nue(C.id), T = JSON.parse(
10524
10524
  localStorage.getItem(P) || "[]"
10525
- ), M = D.find(
10525
+ ), M = T.find(
10526
10526
  (N) => N.default === !0
10527
10527
  );
10528
10528
  if (M)
10529
10529
  f(M.template), y(M.name), M.filterValues && b(M.filterValues);
10530
10530
  else {
10531
10531
  f(C);
10532
- const N = D.find(
10532
+ const N = T.find(
10533
10533
  (F) => (F == null ? void 0 : F.name) === "Original"
10534
10534
  );
10535
- N ? N.template = C : D.push({
10535
+ N ? N.template = C : T.push({
10536
10536
  name: "Original",
10537
10537
  template: C,
10538
10538
  default: !1
10539
- }), localStorage.setItem(P, JSON.stringify(D));
10539
+ }), localStorage.setItem(P, JSON.stringify(T));
10540
10540
  }
10541
- g((T = C.sheets) == null ? void 0 : T[0].id);
10541
+ g((D = C.sheets) == null ? void 0 : D[0].id);
10542
10542
  }, [i, f, g, b, y]), _e(() => {
10543
10543
  r && m(r), o && E(o);
10544
10544
  }, [r, m, o, E]), _e(() => {
@@ -10984,9 +10984,9 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
10984
10984
  onChange: l
10985
10985
  }), [y, x] = Pe(!1), w = kn(c), _ = p$(n), E = se(!1), [C, P] = Pe(0);
10986
10986
  return _e(() => {
10987
- const D = f.current;
10988
- if (D)
10989
- return D.addEventListener(Mv, w), () => D.removeEventListener(Mv, w);
10987
+ const T = f.current;
10988
+ if (T)
10989
+ return T.addEventListener(Mv, w), () => T.removeEventListener(Mv, w);
10990
10990
  }, [
10991
10991
  w
10992
10992
  ]), /* @__PURE__ */ z(B9, {
@@ -10996,7 +10996,7 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
10996
10996
  loop: o,
10997
10997
  currentTabStopId: m,
10998
10998
  onItemFocus: Be(
10999
- (D) => b(D),
10999
+ (T) => b(T),
11000
11000
  [
11001
11001
  b
11002
11002
  ]
@@ -11007,13 +11007,13 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
11007
11007
  ),
11008
11008
  onFocusableItemAdd: Be(
11009
11009
  () => P(
11010
- (D) => D + 1
11010
+ (T) => T + 1
11011
11011
  ),
11012
11012
  []
11013
11013
  ),
11014
11014
  onFocusableItemRemove: Be(
11015
11015
  () => P(
11016
- (D) => D - 1
11016
+ (T) => T - 1
11017
11017
  ),
11018
11018
  []
11019
11019
  )
@@ -11029,11 +11029,11 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
11029
11029
  onMouseDown: De(e.onMouseDown, () => {
11030
11030
  E.current = !0;
11031
11031
  }),
11032
- onFocus: De(e.onFocus, (D) => {
11032
+ onFocus: De(e.onFocus, (T) => {
11033
11033
  const M = !E.current;
11034
- if (D.target === D.currentTarget && M && !y) {
11035
- const T = new CustomEvent(Mv, F9);
11036
- if (D.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
11034
+ if (T.target === T.currentTarget && M && !y) {
11035
+ const D = new CustomEvent(Mv, F9);
11036
+ if (T.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
11037
11037
  const N = _().filter(
11038
11038
  (j) => j.focusable
11039
11039
  ), F = N.find(
@@ -11430,7 +11430,7 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
11430
11430
  function P(oe, Z) {
11431
11431
  return l(oe.valueOf(), Z.valueOf());
11432
11432
  }
11433
- function D(oe, Z, ie, we) {
11433
+ function T(oe, Z, ie, we) {
11434
11434
  var W = oe.size === Z.size;
11435
11435
  if (!W)
11436
11436
  return !1;
@@ -11446,13 +11446,13 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
11446
11446
  }
11447
11447
  }), W;
11448
11448
  }
11449
- var M = o(D), T = "_owner", N = Object.prototype.hasOwnProperty;
11449
+ var M = o(T), D = "_owner", N = Object.prototype.hasOwnProperty;
11450
11450
  function F(oe, Z, ie, we) {
11451
11451
  var W = Object.keys(oe), be = W.length;
11452
11452
  if (Object.keys(Z).length !== be)
11453
11453
  return !1;
11454
11454
  for (var Oe; be-- > 0; ) {
11455
- if (Oe = W[be], Oe === T) {
11455
+ if (Oe = W[be], Oe === D) {
11456
11456
  var Me = !!oe.$$typeof, Ae = !!Z.$$typeof;
11457
11457
  if ((Me || Ae) && Me !== Ae)
11458
11458
  return !1;
@@ -11485,7 +11485,7 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
11485
11485
  var j = o(G), ee = Object.freeze({
11486
11486
  areArraysEqual: E,
11487
11487
  areDatesEqual: P,
11488
- areMapsEqual: D,
11488
+ areMapsEqual: T,
11489
11489
  areObjectsEqual: F,
11490
11490
  areRegExpsEqual: q,
11491
11491
  areSetsEqual: G,
@@ -12076,7 +12076,7 @@ function N8() {
12076
12076
  }
12077
12077
  }
12078
12078
  }
12079
- var C = l, P = c, D = a, M = s, T = t, N = u, F = r, B = m, q = p, G = n, j = i, ee = o, Y = f, X = !1;
12079
+ var C = l, P = c, T = a, M = s, D = t, N = u, F = r, B = m, q = p, G = n, j = i, ee = o, Y = f, X = !1;
12080
12080
  function re(W) {
12081
12081
  return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), R(W) || E(W) === l;
12082
12082
  }
@@ -12116,7 +12116,7 @@ function N8() {
12116
12116
  function we(W) {
12117
12117
  return E(W) === f;
12118
12118
  }
12119
- Ft.AsyncMode = C, Ft.ConcurrentMode = P, Ft.ContextConsumer = D, Ft.ContextProvider = M, Ft.Element = T, Ft.ForwardRef = N, Ft.Fragment = F, Ft.Lazy = B, Ft.Memo = q, Ft.Portal = G, Ft.Profiler = j, Ft.StrictMode = ee, Ft.Suspense = Y, Ft.isAsyncMode = re, Ft.isConcurrentMode = R, Ft.isContextConsumer = H, Ft.isContextProvider = ne, Ft.isElement = A, Ft.isForwardRef = ue, Ft.isFragment = ve, Ft.isLazy = ge, Ft.isMemo = fe, Ft.isPortal = oe, Ft.isProfiler = Z, Ft.isStrictMode = ie, Ft.isSuspense = we, Ft.isValidElementType = _, Ft.typeOf = E;
12119
+ Ft.AsyncMode = C, Ft.ConcurrentMode = P, Ft.ContextConsumer = T, Ft.ContextProvider = M, Ft.Element = D, Ft.ForwardRef = N, Ft.Fragment = F, Ft.Lazy = B, Ft.Memo = q, Ft.Portal = G, Ft.Profiler = j, Ft.StrictMode = ee, Ft.Suspense = Y, Ft.isAsyncMode = re, Ft.isConcurrentMode = R, Ft.isContextConsumer = H, Ft.isContextProvider = ne, Ft.isElement = A, Ft.isForwardRef = ue, Ft.isFragment = ve, Ft.isLazy = ge, Ft.isMemo = fe, Ft.isPortal = oe, Ft.isProfiler = Z, Ft.isStrictMode = ie, Ft.isSuspense = we, Ft.isValidElementType = _, Ft.typeOf = E;
12120
12120
  }()), Ft;
12121
12121
  }
12122
12122
  var zt = {};
@@ -12346,8 +12346,8 @@ function j8() {
12346
12346
  instanceOf: P,
12347
12347
  node: N(),
12348
12348
  objectOf: M,
12349
- oneOf: D,
12350
- oneOfType: T,
12349
+ oneOf: T,
12350
+ oneOfType: D,
12351
12351
  shape: B,
12352
12352
  exact: q
12353
12353
  };
@@ -12448,7 +12448,7 @@ function j8() {
12448
12448
  }
12449
12449
  return y(H);
12450
12450
  }
12451
- function D(R) {
12451
+ function T(R) {
12452
12452
  if (!Array.isArray(R))
12453
12453
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
12454
12454
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -12482,7 +12482,7 @@ function j8() {
12482
12482
  }
12483
12483
  return y(H);
12484
12484
  }
12485
- function T(R) {
12485
+ function D(R) {
12486
12486
  if (!Array.isArray(R))
12487
12487
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
12488
12488
  for (var H = 0; H < R.length; H++) {
@@ -13332,10 +13332,10 @@ lr(Sg, "defaultProps", {
13332
13332
  if (E && E.has(w))
13333
13333
  return E.get(w);
13334
13334
  var C = {}, P = Object.defineProperty && Object.getOwnPropertyDescriptor;
13335
- for (var D in w)
13336
- if (D !== "default" && Object.prototype.hasOwnProperty.call(w, D)) {
13337
- var M = P ? Object.getOwnPropertyDescriptor(w, D) : null;
13338
- M && (M.get || M.set) ? Object.defineProperty(C, D, M) : C[D] = w[D];
13335
+ for (var T in w)
13336
+ if (T !== "default" && Object.prototype.hasOwnProperty.call(w, T)) {
13337
+ var M = P ? Object.getOwnPropertyDescriptor(w, T) : null;
13338
+ M && (M.get || M.set) ? Object.defineProperty(C, T, M) : C[T] = w[T];
13339
13339
  }
13340
13340
  return C.default = w, E && E.set(w, C), C;
13341
13341
  }
@@ -13400,7 +13400,7 @@ lr(Sg, "defaultProps", {
13400
13400
  if (!this.state.dragging)
13401
13401
  return !1;
13402
13402
  (0, c.default)("Draggable: onDrag: %j", C);
13403
- const P = (0, s.createDraggableData)(this, C), D = {
13403
+ const P = (0, s.createDraggableData)(this, C), T = {
13404
13404
  x: P.x,
13405
13405
  y: P.y,
13406
13406
  slackX: 0,
@@ -13408,33 +13408,33 @@ lr(Sg, "defaultProps", {
13408
13408
  };
13409
13409
  if (this.props.bounds) {
13410
13410
  const {
13411
- x: T,
13411
+ x: D,
13412
13412
  y: N
13413
- } = D;
13414
- D.x += this.state.slackX, D.y += this.state.slackY;
13415
- const [F, B] = (0, s.getBoundPosition)(this, D.x, D.y);
13416
- D.x = F, D.y = B, D.slackX = this.state.slackX + (T - D.x), D.slackY = this.state.slackY + (N - D.y), P.x = D.x, P.y = D.y, P.deltaX = D.x - this.state.x, P.deltaY = D.y - this.state.y;
13413
+ } = T;
13414
+ T.x += this.state.slackX, T.y += this.state.slackY;
13415
+ const [F, B] = (0, s.getBoundPosition)(this, T.x, T.y);
13416
+ T.x = F, T.y = B, T.slackX = this.state.slackX + (D - T.x), T.slackY = this.state.slackY + (N - T.y), P.x = T.x, P.y = T.y, P.deltaX = T.x - this.state.x, P.deltaY = T.y - this.state.y;
13417
13417
  }
13418
13418
  if (this.props.onDrag(E, P) === !1)
13419
13419
  return !1;
13420
- this.setState(D);
13420
+ this.setState(T);
13421
13421
  }), m(this, "onDragStop", (E, C) => {
13422
13422
  if (!this.state.dragging || this.props.onStop(E, (0, s.createDraggableData)(this, C)) === !1)
13423
13423
  return !1;
13424
13424
  (0, c.default)("Draggable: onDragStop: %j", C);
13425
- const D = {
13425
+ const T = {
13426
13426
  dragging: !1,
13427
13427
  slackX: 0,
13428
13428
  slackY: 0
13429
13429
  };
13430
13430
  if (!!this.props.position) {
13431
13431
  const {
13432
- x: T,
13432
+ x: D,
13433
13433
  y: N
13434
13434
  } = this.props.position;
13435
- D.x = T, D.y = N;
13435
+ T.x = D, T.y = N;
13436
13436
  }
13437
- this.setState(D);
13437
+ this.setState(T);
13438
13438
  }), this.state = {
13439
13439
  // Whether or not we are currently dragging.
13440
13440
  dragging: !1,
@@ -13475,9 +13475,9 @@ lr(Sg, "defaultProps", {
13475
13475
  bounds: E,
13476
13476
  children: C,
13477
13477
  defaultPosition: P,
13478
- defaultClassName: D,
13478
+ defaultClassName: T,
13479
13479
  defaultClassNameDragging: M,
13480
- defaultClassNameDragged: T,
13480
+ defaultClassNameDragged: D,
13481
13481
  position: N,
13482
13482
  positionOffset: F,
13483
13483
  scale: B,
@@ -13491,9 +13491,9 @@ lr(Sg, "defaultProps", {
13491
13491
  y: (0, s.canDragY)(this) && Y ? this.state.y : X.y
13492
13492
  };
13493
13493
  this.state.isElementSVG ? j = (0, i.createSVGTransform)(re, F) : G = (0, i.createCSSTransform)(re, F);
13494
- const R = (0, o.default)(C.props.className || "", D, {
13494
+ const R = (0, o.default)(C.props.className || "", T, {
13495
13495
  [M]: this.state.dragging,
13496
- [T]: this.state.dragged
13496
+ [D]: this.state.dragged
13497
13497
  });
13498
13498
  return /* @__PURE__ */ t.createElement(l.default, p({}, q, {
13499
13499
  onStart: this.onDragStart,
@@ -13936,8 +13936,8 @@ var Rx = /* @__PURE__ */ function(e) {
13936
13936
  s.lastHandleRect = y, b === "w" && (u = -u), m === "n" && (f = -f);
13937
13937
  var _ = s.props.width + (g ? u / s.props.transformScale : 0), E = s.props.height + (p ? f / s.props.transformScale : 0), C = s.runConstraints(_, E);
13938
13938
  _ = C[0], E = C[1];
13939
- var P = _ !== s.props.width || E !== s.props.height, D = typeof s.props[o] == "function" ? s.props[o] : null, M = o === "onResize" && !P;
13940
- D && !M && (a.persist == null || a.persist(), D(a, {
13939
+ var P = _ !== s.props.width || E !== s.props.height, T = typeof s.props[o] == "function" ? s.props[o] : null, M = o === "onResize" && !P;
13940
+ T && !M && (a.persist == null || a.persist(), T(a, {
13941
13941
  node: c,
13942
13942
  size: {
13943
13943
  width: _,
@@ -14373,8 +14373,8 @@ class Dx extends wl.default.Component {
14373
14373
  rowHeight: E
14374
14374
  } = this.props, C = w.clientHeight - (0, Hn.calcGridItemWHPx)(g, E, _[1]);
14375
14375
  a = (0, Hn.clamp)(a, 0, C);
14376
- const P = (0, Hn.calcGridColWidth)(m), D = p - (0, Hn.calcGridItemWHPx)(f, P, _[0]);
14377
- l = (0, Hn.clamp)(l, 0, D);
14376
+ const P = (0, Hn.calcGridColWidth)(m), T = p - (0, Hn.calcGridItemWHPx)(f, P, _[0]);
14377
+ l = (0, Hn.clamp)(l, 0, T);
14378
14378
  }
14379
14379
  }
14380
14380
  const b = {
@@ -15161,7 +15161,7 @@ class Og extends la.Component {
15161
15161
  } = this.props, {
15162
15162
  mounted: _,
15163
15163
  droppingPosition: E
15164
- } = this.state, C = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && u, P = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && f, D = r.resizeHandles || x, M = C && g && r.isBounded !== !1;
15164
+ } = this.state, C = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && u, P = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && f, T = r.resizeHandles || x, M = C && g && r.isBounded !== !1;
15165
15165
  return /* @__PURE__ */ la.createElement(AC.default, {
15166
15166
  containerWidth: o,
15167
15167
  cols: i,
@@ -15194,7 +15194,7 @@ class Og extends la.Component {
15194
15194
  maxW: r.maxW,
15195
15195
  static: r.static,
15196
15196
  droppingPosition: n ? E : void 0,
15197
- resizeHandles: D,
15197
+ resizeHandles: T,
15198
15198
  resizeHandle: w
15199
15199
  }, t);
15200
15200
  }
@@ -17854,15 +17854,15 @@ function F2(e, t, n) {
17854
17854
  ];
17855
17855
  const { property: r, start: o, end: i } = n, s = t.length, { compare: a, between: l, normalize: c } = L2(r), { start: u, end: f, loop: g, style: p } = $V(e, t, n), m = [];
17856
17856
  let b = !1, y = null, x, w, _;
17857
- const E = () => l(o, _, x) && a(o, _) !== 0, C = () => a(i, x) === 0 || l(i, _, x), P = () => b || E(), D = () => !b || C();
17858
- for (let M = u, T = u; M <= f; ++M)
17859
- w = t[M % s], !w.skip && (x = c(w[r]), x !== _ && (b = l(x, o, i), y === null && P() && (y = a(x, o) === 0 ? M : T), y !== null && D() && (m.push(iE({
17857
+ const E = () => l(o, _, x) && a(o, _) !== 0, C = () => a(i, x) === 0 || l(i, _, x), P = () => b || E(), T = () => !b || C();
17858
+ for (let M = u, D = u; M <= f; ++M)
17859
+ w = t[M % s], !w.skip && (x = c(w[r]), x !== _ && (b = l(x, o, i), y === null && P() && (y = a(x, o) === 0 ? M : D), y !== null && T() && (m.push(iE({
17860
17860
  start: y,
17861
17861
  end: M,
17862
17862
  loop: g,
17863
17863
  count: s,
17864
17864
  style: p
17865
- })), y = null), T = M, _ = x));
17865
+ })), y = null), D = M, _ = x));
17866
17866
  return y !== null && m.push(iE({
17867
17867
  start: y,
17868
17868
  end: f,
@@ -19316,13 +19316,13 @@ class sp extends ko {
19316
19316
  const i = o === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: f } = this._getSharedOptions(n, o), g = s.axis, p = a.axis, { spanGaps: m, segment: b } = this.options, y = hc(m) ? m : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || i || o === "none", w = n + r, _ = t.length;
19317
19317
  let E = n > 0 && this.getParsed(n - 1);
19318
19318
  for (let C = 0; C < _; ++C) {
19319
- const P = t[C], D = x ? P : {};
19319
+ const P = t[C], T = x ? P : {};
19320
19320
  if (C < n || C >= w) {
19321
- D.skip = !0;
19321
+ T.skip = !0;
19322
19322
  continue;
19323
19323
  }
19324
- const M = this.getParsed(C), T = Et(M[p]), N = D[g] = s.getPixelForValue(M[g], C), F = D[p] = i || T ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, M, l) : M[p], C);
19325
- D.skip = isNaN(N) || isNaN(F) || T, D.stop = C > 0 && Math.abs(M[g] - E[g]) > y, b && (D.parsed = M, D.raw = c.data[C]), f && (D.options = u || this.resolveDataElementOptions(C, P.active ? "active" : o)), x || this.updateElement(P, C, D, o), E = M;
19324
+ const M = this.getParsed(C), D = Et(M[p]), N = T[g] = s.getPixelForValue(M[g], C), F = T[p] = i || D ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, M, l) : M[p], C);
19325
+ T.skip = isNaN(N) || isNaN(F) || D, T.stop = C > 0 && Math.abs(M[g] - E[g]) > y, b && (T.parsed = M, T.raw = c.data[C]), f && (T.options = u || this.resolveDataElementOptions(C, P.active ? "active" : o)), x || this.updateElement(P, C, T, o), E = M;
19326
19326
  }
19327
19327
  }
19328
19328
  getMaxOverflow() {
@@ -19583,8 +19583,8 @@ class lp extends ko {
19583
19583
  const i = o === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(n, o), f = this.getSharedOptions(u), g = this.includeOptions(o, f), p = s.axis, m = a.axis, { spanGaps: b, segment: y } = this.options, x = hc(b) ? b : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || i || o === "none";
19584
19584
  let _ = n > 0 && this.getParsed(n - 1);
19585
19585
  for (let E = n; E < n + r; ++E) {
19586
- const C = t[E], P = this.getParsed(E), D = w ? C : {}, M = Et(P[m]), T = D[p] = s.getPixelForValue(P[p], E), N = D[m] = i || M ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, P, l) : P[m], E);
19587
- D.skip = isNaN(T) || isNaN(N) || M, D.stop = E > 0 && Math.abs(P[p] - _[p]) > x, y && (D.parsed = P, D.raw = c.data[E]), g && (D.options = f || this.resolveDataElementOptions(E, C.active ? "active" : o)), w || this.updateElement(C, E, D, o), _ = P;
19586
+ const C = t[E], P = this.getParsed(E), T = w ? C : {}, M = Et(P[m]), D = T[p] = s.getPixelForValue(P[p], E), N = T[m] = i || M ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, P, l) : P[m], E);
19587
+ T.skip = isNaN(D) || isNaN(N) || M, T.stop = E > 0 && Math.abs(P[p] - _[p]) > x, y && (T.parsed = P, T.raw = c.data[E]), g && (T.options = f || this.resolveDataElementOptions(E, C.active ? "active" : o)), w || this.updateElement(C, E, T, o), _ = P;
19588
19588
  }
19589
19589
  this.updateSharedOptions(f, o, u);
19590
19590
  }
@@ -20677,15 +20677,15 @@ class Ja extends Ui {
20677
20677
  s.push(_), a.push(E), c = Math.max(_, c), u = Math.max(E, u);
20678
20678
  }
20679
20679
  VH(i, n);
20680
- const P = s.indexOf(c), D = a.indexOf(u), M = (T) => ({
20681
- width: s[T] || 0,
20682
- height: a[T] || 0
20680
+ const P = s.indexOf(c), T = a.indexOf(u), M = (D) => ({
20681
+ width: s[D] || 0,
20682
+ height: a[D] || 0
20683
20683
  });
20684
20684
  return {
20685
20685
  first: M(0),
20686
20686
  last: M(n - 1),
20687
20687
  widest: M(P),
20688
- highest: M(D),
20688
+ highest: M(T),
20689
20689
  widths: s,
20690
20690
  heights: a
20691
20691
  };
@@ -20738,11 +20738,11 @@ class Ja extends Ui {
20738
20738
  const n = this.axis, r = this.chart, o = this.options, { grid: i, position: s, border: a } = o, l = i.offset, c = this.isHorizontal(), f = this.ticks.length + (l ? 1 : 0), g = hu(i), p = [], m = a.setContext(this.getContext()), b = m.display ? m.width : 0, y = b / 2, x = function(ee) {
20739
20739
  return da(r, ee, b);
20740
20740
  };
20741
- let w, _, E, C, P, D, M, T, N, F, B, q;
20741
+ let w, _, E, C, P, T, M, D, N, F, B, q;
20742
20742
  if (s === "top")
20743
- w = x(this.bottom), D = this.bottom - g, T = w - y, F = x(t.top) + y, q = t.bottom;
20743
+ w = x(this.bottom), T = this.bottom - g, D = w - y, F = x(t.top) + y, q = t.bottom;
20744
20744
  else if (s === "bottom")
20745
- w = x(this.top), F = t.top, q = x(t.bottom) - y, D = w + y, T = this.top + g;
20745
+ w = x(this.top), F = t.top, q = x(t.bottom) - y, T = w + y, D = this.top + g;
20746
20746
  else if (s === "left")
20747
20747
  w = x(this.right), P = this.right - g, M = w - y, N = x(t.left) + y, B = t.right;
20748
20748
  else if (s === "right")
@@ -20754,7 +20754,7 @@ class Ja extends Ui {
20754
20754
  const ee = Object.keys(s)[0], Y = s[ee];
20755
20755
  w = x(this.chart.scales[ee].getPixelForValue(Y));
20756
20756
  }
20757
- F = t.top, q = t.bottom, D = w + y, T = D + g;
20757
+ F = t.top, q = t.bottom, T = w + y, D = T + g;
20758
20758
  } else if (n === "y") {
20759
20759
  if (s === "center")
20760
20760
  w = x((t.left + t.right) / 2);
@@ -20767,11 +20767,11 @@ class Ja extends Ui {
20767
20767
  const G = dt(o.ticks.maxTicksLimit, f), j = Math.max(1, Math.ceil(f / G));
20768
20768
  for (_ = 0; _ < f; _ += j) {
20769
20769
  const ee = this.getContext(_), Y = i.setContext(ee), X = a.setContext(ee), re = Y.lineWidth, R = Y.color, H = X.dash || [], ne = X.dashOffset, A = Y.tickWidth, ue = Y.tickColor, ve = Y.tickBorderDash || [], ge = Y.tickBorderDashOffset;
20770
- E = BH(this, _, l), E !== void 0 && (C = da(r, E, re), c ? P = M = N = B = C : D = T = F = q = C, p.push({
20770
+ E = BH(this, _, l), E !== void 0 && (C = da(r, E, re), c ? P = M = N = B = C : T = D = F = q = C, p.push({
20771
20771
  tx1: P,
20772
- ty1: D,
20772
+ ty1: T,
20773
20773
  tx2: M,
20774
- ty2: T,
20774
+ ty2: D,
20775
20775
  x1: N,
20776
20776
  y1: F,
20777
20777
  x2: B,
@@ -20790,17 +20790,17 @@ class Ja extends Ui {
20790
20790
  }
20791
20791
  _computeLabelItems(t) {
20792
20792
  const n = this.axis, r = this.options, { position: o, ticks: i } = r, s = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: f } = i, g = hu(r.grid), p = g + u, m = f ? -u : p, b = -Mo(this.labelRotation), y = [];
20793
- let x, w, _, E, C, P, D, M, T, N, F, B, q = "middle";
20793
+ let x, w, _, E, C, P, T, M, D, N, F, B, q = "middle";
20794
20794
  if (o === "top")
20795
- P = this.bottom - m, D = this._getXAxisLabelAlignment();
20795
+ P = this.bottom - m, T = this._getXAxisLabelAlignment();
20796
20796
  else if (o === "bottom")
20797
- P = this.top + m, D = this._getXAxisLabelAlignment();
20797
+ P = this.top + m, T = this._getXAxisLabelAlignment();
20798
20798
  else if (o === "left") {
20799
20799
  const j = this._getYAxisLabelAlignment(g);
20800
- D = j.textAlign, C = j.x;
20800
+ T = j.textAlign, C = j.x;
20801
20801
  } else if (o === "right") {
20802
20802
  const j = this._getYAxisLabelAlignment(g);
20803
- D = j.textAlign, C = j.x;
20803
+ T = j.textAlign, C = j.x;
20804
20804
  } else if (n === "x") {
20805
20805
  if (o === "center")
20806
20806
  P = (t.top + t.bottom) / 2 + p;
@@ -20808,7 +20808,7 @@ class Ja extends Ui {
20808
20808
  const j = Object.keys(o)[0], ee = o[j];
20809
20809
  P = this.chart.scales[j].getPixelForValue(ee) + p;
20810
20810
  }
20811
- D = this._getXAxisLabelAlignment();
20811
+ T = this._getXAxisLabelAlignment();
20812
20812
  } else if (n === "y") {
20813
20813
  if (o === "center")
20814
20814
  C = (t.left + t.right) / 2 - p;
@@ -20816,17 +20816,17 @@ class Ja extends Ui {
20816
20816
  const j = Object.keys(o)[0], ee = o[j];
20817
20817
  C = this.chart.scales[j].getPixelForValue(ee);
20818
20818
  }
20819
- D = this._getYAxisLabelAlignment(g).textAlign;
20819
+ T = this._getYAxisLabelAlignment(g).textAlign;
20820
20820
  }
20821
20821
  n === "y" && (l === "start" ? q = "top" : l === "end" && (q = "bottom"));
20822
20822
  const G = this._getLabelSizes();
20823
20823
  for (x = 0, w = a.length; x < w; ++x) {
20824
20824
  _ = a[x], E = _.label;
20825
20825
  const j = i.setContext(this.getContext(x));
20826
- M = this.getPixelForTick(x) + i.labelOffset, T = this._resolveTickFontOptions(x), N = T.lineHeight, F = on(E) ? E.length : 1;
20826
+ M = this.getPixelForTick(x) + i.labelOffset, D = this._resolveTickFontOptions(x), N = D.lineHeight, F = on(E) ? E.length : 1;
20827
20827
  const ee = F / 2, Y = j.color, X = j.textStrokeColor, re = j.textStrokeWidth;
20828
- let R = D;
20829
- s ? (C = M, D === "inner" && (x === w - 1 ? R = this.options.reverse ? "left" : "right" : x === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), o === "top" ? c === "near" || b !== 0 ? B = -F * N + N / 2 : c === "center" ? B = -G.highest.height / 2 - ee * N + N : B = -G.highest.height + N / 2 : c === "near" || b !== 0 ? B = N / 2 : c === "center" ? B = G.highest.height / 2 - ee * N : B = G.highest.height - F * N, f && (B *= -1), b !== 0 && !j.showLabelBackdrop && (C += N / 2 * Math.sin(b))) : (P = M, B = (1 - F) * N / 2);
20828
+ let R = T;
20829
+ s ? (C = M, T === "inner" && (x === w - 1 ? R = this.options.reverse ? "left" : "right" : x === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), o === "top" ? c === "near" || b !== 0 ? B = -F * N + N / 2 : c === "center" ? B = -G.highest.height / 2 - ee * N + N : B = -G.highest.height + N / 2 : c === "near" || b !== 0 ? B = N / 2 : c === "center" ? B = G.highest.height / 2 - ee * N : B = G.highest.height - F * N, f && (B *= -1), b !== 0 && !j.showLabelBackdrop && (C += N / 2 * Math.sin(b))) : (P = M, B = (1 - F) * N / 2);
20830
20830
  let H;
20831
20831
  if (j.showLabelBackdrop) {
20832
20832
  const ne = Gn(j.backdropPadding), A = G.heights[x], ue = G.widths[x];
@@ -20839,7 +20839,7 @@ class Ja extends Ui {
20839
20839
  ve -= A;
20840
20840
  break;
20841
20841
  }
20842
- switch (D) {
20842
+ switch (T) {
20843
20843
  case "center":
20844
20844
  ge -= ue / 2;
20845
20845
  break;
@@ -20860,7 +20860,7 @@ class Ja extends Ui {
20860
20860
  }
20861
20861
  y.push({
20862
20862
  label: E,
20863
- font: T,
20863
+ font: D,
20864
20864
  textOffset: B,
20865
20865
  options: {
20866
20866
  rotation: b,
@@ -22081,10 +22081,10 @@ function Np(e, t, n, r, o, i) {
22081
22081
  const j = u > 0 ? u - r : 0, ee = f > 0 ? f - r : 0, Y = (j + ee) / 2, X = Y !== 0 ? m * Y / (Y + r) : m;
22082
22082
  p = (m - X) / 2;
22083
22083
  }
22084
- const b = Math.max(1e-3, m * f - n / an) / f, y = (m - b) / 2, x = l + y + p, w = o - y - p, { outerStart: _, outerEnd: E, innerStart: C, innerEnd: P } = yW(t, g, f, w - x), D = f - _, M = f - E, T = x + _ / D, N = w - E / M, F = g + C, B = g + P, q = x + C / F, G = w - P / B;
22084
+ const b = Math.max(1e-3, m * f - n / an) / f, y = (m - b) / 2, x = l + y + p, w = o - y - p, { outerStart: _, outerEnd: E, innerStart: C, innerEnd: P } = yW(t, g, f, w - x), T = f - _, M = f - E, D = x + _ / T, N = w - E / M, F = g + C, B = g + P, q = x + C / F, G = w - P / B;
22085
22085
  if (e.beginPath(), i) {
22086
- const j = (T + N) / 2;
22087
- if (e.arc(s, a, f, T, j), e.arc(s, a, f, j, N), E > 0) {
22086
+ const j = (D + N) / 2;
22087
+ if (e.arc(s, a, f, D, j), e.arc(s, a, f, j, N), E > 0) {
22088
22088
  const re = El(M, N, s, a);
22089
22089
  e.arc(re.x, re.y, E, N, w + _n);
22090
22090
  }
@@ -22098,14 +22098,14 @@ function Np(e, t, n, r, o, i) {
22098
22098
  const re = El(F, q, s, a);
22099
22099
  e.arc(re.x, re.y, C, q + Math.PI, x - _n);
22100
22100
  }
22101
- const X = El(D, x, s, a);
22101
+ const X = El(T, x, s, a);
22102
22102
  if (e.lineTo(X.x, X.y), _ > 0) {
22103
- const re = El(D, T, s, a);
22104
- e.arc(re.x, re.y, _, x - _n, T);
22103
+ const re = El(T, D, s, a);
22104
+ e.arc(re.x, re.y, _, x - _n, D);
22105
22105
  }
22106
22106
  } else {
22107
22107
  e.moveTo(s, a);
22108
- const j = Math.cos(T) * f + s, ee = Math.sin(T) * f + a;
22108
+ const j = Math.cos(D) * f + s, ee = Math.sin(D) * f + a;
22109
22109
  e.lineTo(j, ee);
22110
22110
  const Y = Math.cos(N) * f + s, X = Math.sin(N) * f + a;
22111
22111
  e.lineTo(Y, X);
@@ -22636,9 +22636,9 @@ function HW(e, t, n, r, o) {
22636
22636
  for (w = _; w < E; w++)
22637
22637
  y += e[w].x, x += e[w].y;
22638
22638
  y /= C, x /= C;
22639
- const P = Math.floor(f * a) + 1 + t, D = Math.min(Math.floor((f + 1) * a) + 1, n) + t, { x: M, y: T } = e[u];
22640
- for (p = m = -1, w = P; w < D; w++)
22641
- m = 0.5 * Math.abs((M - y) * (e[w].y - T) - (M - e[w].x) * (x - T)), m > p && (p = m, g = e[w], b = w);
22639
+ const P = Math.floor(f * a) + 1 + t, T = Math.min(Math.floor((f + 1) * a) + 1, n) + t, { x: M, y: D } = e[u];
22640
+ for (p = m = -1, w = P; w < T; w++)
22641
+ m = 0.5 * Math.abs((M - y) * (e[w].y - D) - (M - e[w].x) * (x - D)), m > p && (p = m, g = e[w], b = w);
22642
22642
  s[l++] = g, u = b;
22643
22643
  }
22644
22644
  return s[l++] = e[c], s;
@@ -22654,9 +22654,9 @@ function WW(e, t, n, r) {
22654
22654
  else {
22655
22655
  const P = s - 1;
22656
22656
  if (!Et(f) && !Et(g)) {
22657
- const D = Math.min(f, g), M = Math.max(f, g);
22658
- D !== p && D !== P && y.push({
22659
- ...e[D],
22657
+ const T = Math.min(f, g), M = Math.max(f, g);
22658
+ T !== p && T !== P && y.push({
22659
+ ...e[T],
22660
22660
  x: o
22661
22661
  }), M !== p && M !== P && y.push({
22662
22662
  ...e[M],
@@ -23215,32 +23215,32 @@ class GE extends Ui {
23215
23215
  const { options: t, columnSizes: n, lineWidths: r, ctx: o } = this, { align: i, labels: s } = t, a = hn.color, l = Hl(t.rtl, this.left, this.width), c = En(s.font), { padding: u } = s, f = c.size, g = f / 2;
23216
23216
  let p;
23217
23217
  this.drawTitle(), o.textAlign = l.textAlign("left"), o.textBaseline = "middle", o.lineWidth = 0.5, o.font = c.string;
23218
- const { boxWidth: m, boxHeight: b, itemHeight: y } = qE(s, f), x = function(P, D, M) {
23218
+ const { boxWidth: m, boxHeight: b, itemHeight: y } = qE(s, f), x = function(P, T, M) {
23219
23219
  if (isNaN(m) || m <= 0 || isNaN(b) || b < 0)
23220
23220
  return;
23221
23221
  o.save();
23222
- const T = dt(M.lineWidth, 1);
23223
- if (o.fillStyle = dt(M.fillStyle, a), o.lineCap = dt(M.lineCap, "butt"), o.lineDashOffset = dt(M.lineDashOffset, 0), o.lineJoin = dt(M.lineJoin, "miter"), o.lineWidth = T, o.strokeStyle = dt(M.strokeStyle, a), o.setLineDash(dt(M.lineDash, [])), s.usePointStyle) {
23222
+ const D = dt(M.lineWidth, 1);
23223
+ if (o.fillStyle = dt(M.fillStyle, a), o.lineCap = dt(M.lineCap, "butt"), o.lineDashOffset = dt(M.lineDashOffset, 0), o.lineJoin = dt(M.lineJoin, "miter"), o.lineWidth = D, o.strokeStyle = dt(M.strokeStyle, a), o.setLineDash(dt(M.lineDash, [])), s.usePointStyle) {
23224
23224
  const N = {
23225
23225
  radius: b * Math.SQRT2 / 2,
23226
23226
  pointStyle: M.pointStyle,
23227
23227
  rotation: M.rotation,
23228
- borderWidth: T
23229
- }, F = l.xPlus(P, m / 2), B = D + g;
23228
+ borderWidth: D
23229
+ }, F = l.xPlus(P, m / 2), B = T + g;
23230
23230
  P2(o, N, F, B, s.pointStyleWidth && m);
23231
23231
  } else {
23232
- const N = D + Math.max((f - b) / 2, 0), F = l.leftForLtr(P, m), B = Na(M.borderRadius);
23232
+ const N = T + Math.max((f - b) / 2, 0), F = l.leftForLtr(P, m), B = Na(M.borderRadius);
23233
23233
  o.beginPath(), Object.values(B).some((q) => q !== 0) ? td(o, {
23234
23234
  x: F,
23235
23235
  y: N,
23236
23236
  w: m,
23237
23237
  h: b,
23238
23238
  radius: B
23239
- }) : o.rect(F, N, m, b), o.fill(), T !== 0 && o.stroke();
23239
+ }) : o.rect(F, N, m, b), o.fill(), D !== 0 && o.stroke();
23240
23240
  }
23241
23241
  o.restore();
23242
- }, w = function(P, D, M) {
23243
- Wa(o, M.text, P, D + y / 2, c, {
23242
+ }, w = function(P, T, M) {
23243
+ Wa(o, M.text, P, T + y / 2, c, {
23244
23244
  strikethrough: M.hidden,
23245
23245
  textAlign: l.textAlign(M.textAlign)
23246
23246
  });
@@ -23255,13 +23255,13 @@ class GE extends Ui {
23255
23255
  line: 0
23256
23256
  }, I2(this.ctx, t.textDirection);
23257
23257
  const C = y + u;
23258
- this.legendItems.forEach((P, D) => {
23258
+ this.legendItems.forEach((P, T) => {
23259
23259
  o.strokeStyle = P.fontColor, o.fillStyle = P.fontColor;
23260
- const M = o.measureText(P.text).width, T = l.textAlign(P.textAlign || (P.textAlign = s.textAlign)), N = m + g + M;
23260
+ const M = o.measureText(P.text).width, D = l.textAlign(P.textAlign || (P.textAlign = s.textAlign)), N = m + g + M;
23261
23261
  let F = p.x, B = p.y;
23262
- l.setWidth(this.width), _ ? D > 0 && F + N + u > this.right && (B = p.y += C, p.line++, F = p.x = er(i, this.left + u, this.right - r[p.line])) : D > 0 && B + C > this.bottom && (F = p.x = F + n[p.line].width + u, p.line++, B = p.y = er(i, this.top + E + u, this.bottom - n[p.line].height));
23262
+ l.setWidth(this.width), _ ? T > 0 && F + N + u > this.right && (B = p.y += C, p.line++, F = p.x = er(i, this.left + u, this.right - r[p.line])) : T > 0 && B + C > this.bottom && (F = p.x = F + n[p.line].width + u, p.line++, B = p.y = er(i, this.top + E + u, this.bottom - n[p.line].height));
23263
23263
  const q = l.x(F);
23264
- if (x(q, B, P), F = IB(T, F + m + g, _ ? F + N : this.right, t.rtl), w(l.x(F), B, P), _)
23264
+ if (x(q, B, P), F = IB(D, F + m + g, _ ? F + N : this.right, t.rtl), w(l.x(F), B, P), _)
23265
23265
  p.x += N + u;
23266
23266
  else if (typeof P.text != "string") {
23267
23267
  const G = c.lineHeight;
@@ -23889,9 +23889,9 @@ let ZE = (e0 = class extends Ui {
23889
23889
  const m = Hl(r.rtl, this.x, this.width), b = function(M) {
23890
23890
  n.fillText(M, m.x(t.x + p), t.y + g / 2), t.y += g + i;
23891
23891
  }, y = m.textAlign(s);
23892
- let x, w, _, E, C, P, D;
23892
+ let x, w, _, E, C, P, T;
23893
23893
  for (n.textAlign = s, n.textBaseline = "middle", n.font = f.string, t.x = Ch(this, y, r), n.fillStyle = r.bodyColor, jt(this.beforeBody, b), p = a && y !== "right" ? s === "center" ? c / 2 + u : c + 2 + u : 0, E = 0, P = o.length; E < P; ++E) {
23894
- for (x = o[E], w = this.labelTextColors[E], n.fillStyle = w, jt(x.before, b), _ = x.lines, a && _.length && (this._drawColorBox(n, t, E, m, r), g = Math.max(f.lineHeight, l)), C = 0, D = _.length; C < D; ++C)
23894
+ for (x = o[E], w = this.labelTextColors[E], n.fillStyle = w, jt(x.before, b), _ = x.lines, a && _.length && (this._drawColorBox(n, t, E, m, r), g = Math.max(f.lineHeight, l)), C = 0, T = _.length; C < T; ++C)
23895
23895
  b(_[C]), g = f.lineHeight;
23896
23896
  jt(x.after, b);
23897
23897
  }
@@ -24183,7 +24183,7 @@ Ie(Q0, "id", "category"), Ie(Q0, "defaults", {
24183
24183
  });
24184
24184
  function AU(e, t) {
24185
24185
  const n = [], { bounds: o, step: i, min: s, max: a, precision: l, count: c, maxTicks: u, maxDigits: f, includeBounds: g } = e, p = i || 1, m = u - 1, { min: b, max: y } = t, x = !Et(s), w = !Et(a), _ = !Et(c), E = (y - b) / (f + 1);
24186
- let C = GC((y - b) / m / p) * p, P, D, M, T;
24186
+ let C = GC((y - b) / m / p) * p, P, T, M, D;
24187
24187
  if (C < 1e-14 && !x && !w)
24188
24188
  return [
24189
24189
  {
@@ -24193,14 +24193,14 @@ function AU(e, t) {
24193
24193
  value: y
24194
24194
  }
24195
24195
  ];
24196
- T = Math.ceil(y / C) - Math.floor(b / C), T > m && (C = GC(T * C / m / p) * p), Et(l) || (P = Math.pow(10, l), C = Math.ceil(C * P) / P), o === "ticks" ? (D = Math.floor(b / C) * C, M = Math.ceil(y / C) * C) : (D = b, M = y), x && w && i && RB((a - s) / i, C / 1e3) ? (T = Math.round(Math.min((a - s) / C, u)), C = (a - s) / T, D = s, M = a) : _ ? (D = x ? s : D, M = w ? a : M, T = c - 1, C = (M - D) / T) : (T = (M - D) / C, Au(T, Math.round(T), C / 1e3) ? T = Math.round(T) : T = Math.ceil(T));
24197
- const N = Math.max(YC(C), YC(D));
24198
- P = Math.pow(10, Et(l) ? N : l), D = Math.round(D * P) / P, M = Math.round(M * P) / P;
24196
+ D = Math.ceil(y / C) - Math.floor(b / C), D > m && (C = GC(D * C / m / p) * p), Et(l) || (P = Math.pow(10, l), C = Math.ceil(C * P) / P), o === "ticks" ? (T = Math.floor(b / C) * C, M = Math.ceil(y / C) * C) : (T = b, M = y), x && w && i && RB((a - s) / i, C / 1e3) ? (D = Math.round(Math.min((a - s) / C, u)), C = (a - s) / D, T = s, M = a) : _ ? (T = x ? s : T, M = w ? a : M, D = c - 1, C = (M - T) / D) : (D = (M - T) / C, Au(D, Math.round(D), C / 1e3) ? D = Math.round(D) : D = Math.ceil(D));
24197
+ const N = Math.max(YC(C), YC(T));
24198
+ P = Math.pow(10, Et(l) ? N : l), T = Math.round(T * P) / P, M = Math.round(M * P) / P;
24199
24199
  let F = 0;
24200
- for (x && (g && D !== s ? (n.push({
24200
+ for (x && (g && T !== s ? (n.push({
24201
24201
  value: s
24202
- }), D < s && F++, Au(Math.round((D + F * C) * P) / P, s, tO(s, E, e)) && F++) : D < s && F++); F < T; ++F) {
24203
- const B = Math.round((D + F * C) * P) / P;
24202
+ }), T < s && F++, Au(Math.round((T + F * C) * P) / P, s, tO(s, E, e)) && F++) : T < s && F++); F < D; ++F) {
24203
+ const B = Math.round((T + F * C) * P) / P;
24204
24204
  if (w && B > a)
24205
24205
  break;
24206
24206
  n.push({
@@ -26434,18 +26434,18 @@ const Zq = /* @__PURE__ */ On({
26434
26434
  ), y = Array.from(u.layers), [x] = [
26435
26435
  ...u.layersWithOutsidePointerEventsDisabled
26436
26436
  ].slice(-1), w = y.indexOf(x), _ = f ? y.indexOf(f) : -1, E = u.layersWithOutsidePointerEventsDisabled.size > 0, C = _ >= w, P = eG((M) => {
26437
- const T = M.target, N = [
26437
+ const D = M.target, N = [
26438
26438
  ...u.branches
26439
26439
  ].some(
26440
- (F) => F.contains(T)
26440
+ (F) => F.contains(D)
26441
26441
  );
26442
26442
  !C || N || (i == null || i(M), a == null || a(M), M.defaultPrevented || l == null || l());
26443
- }, p), D = tG((M) => {
26444
- const T = M.target;
26443
+ }, p), T = tG((M) => {
26444
+ const D = M.target;
26445
26445
  [
26446
26446
  ...u.branches
26447
26447
  ].some(
26448
- (F) => F.contains(T)
26448
+ (F) => F.contains(D)
26449
26449
  ) || (s == null || s(M), a == null || a(M), M.defaultPrevented || l == null || l());
26450
26450
  }, p);
26451
26451
  return Xq((M) => {
@@ -26474,8 +26474,8 @@ const Zq = /* @__PURE__ */ On({
26474
26474
  pointerEvents: E ? C ? "auto" : "none" : void 0,
26475
26475
  ...e.style
26476
26476
  },
26477
- onFocusCapture: De(e.onFocusCapture, D.onFocusCapture),
26478
- onBlurCapture: De(e.onBlurCapture, D.onBlurCapture),
26477
+ onFocusCapture: De(e.onFocusCapture, T.onFocusCapture),
26478
+ onBlurCapture: De(e.onBlurCapture, T.onBlurCapture),
26479
26479
  onPointerDownCapture: De(e.onPointerDownCapture, P.onPointerDownCapture)
26480
26480
  }));
26481
26481
  });
@@ -26819,9 +26819,9 @@ const mO = (e) => ({
26819
26819
  x: n,
26820
26820
  y: r
26821
26821
  }, p = t1(o), m = e1(p), b = await s.getDimensions(c), y = p === "y", x = y ? "top" : "left", w = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", E = i.reference[m] + i.reference[p] - g[p] - i.floating[m], C = g[p] - i.reference[p], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
26822
- let D = P ? P[_] : 0;
26823
- (!D || !await (s.isElement == null ? void 0 : s.isElement(P))) && (D = a.floating[_] || i.floating[m]);
26824
- const M = E / 2 - C / 2, T = D / 2 - b[m] / 2 - 1, N = As(f[x], T), F = As(f[w], T), B = N, q = D - b[m] - F, G = D / 2 - b[m] / 2 + M, j = sy(B, G, q), ee = !l.arrow && $c(o) != null && G != j && i.reference[m] / 2 - (G < B ? N : F) - b[m] / 2 < 0, Y = ee ? G < B ? G - B : G - q : 0;
26822
+ let T = P ? P[_] : 0;
26823
+ (!T || !await (s.isElement == null ? void 0 : s.isElement(P))) && (T = a.floating[_] || i.floating[m]);
26824
+ const M = E / 2 - C / 2, D = T / 2 - b[m] / 2 - 1, N = As(f[x], D), F = As(f[w], D), B = N, q = T - b[m] - F, G = T / 2 - b[m] / 2 + M, j = sy(B, G, q), ee = !l.arrow && $c(o) != null && G != j && i.reference[m] / 2 - (G < B ? N : F) - b[m] / 2 < 0, Y = ee ? G < B ? G - B : G - q : 0;
26825
26825
  return {
26826
26826
  [p]: g[p] + Y,
26827
26827
  data: {
@@ -26860,18 +26860,18 @@ const mO = (e) => ({
26860
26860
  return {};
26861
26861
  const x = Hi(o), w = Hi(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (w || !b ? [zp(a)] : sG(a));
26862
26862
  !g && m !== "none" && E.push(...lG(a, b, m, _));
26863
- const C = [a, ...E], P = await id(t, y), D = [];
26863
+ const C = [a, ...E], P = await id(t, y), T = [];
26864
26864
  let M = ((r = i.flip) == null ? void 0 : r.overflows) || [];
26865
- if (u && D.push(P[x]), f) {
26865
+ if (u && T.push(P[x]), f) {
26866
26866
  const B = iG(o, s, _);
26867
- D.push(P[B[0]], P[B[1]]);
26867
+ T.push(P[B[0]], P[B[1]]);
26868
26868
  }
26869
26869
  if (M = [...M, {
26870
26870
  placement: o,
26871
- overflows: D
26872
- }], !D.every((B) => B <= 0)) {
26873
- var T, N;
26874
- const B = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, q = C[B];
26871
+ overflows: T
26872
+ }], !T.every((B) => B <= 0)) {
26873
+ var D, N;
26874
+ const B = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, q = C[B];
26875
26875
  if (q)
26876
26876
  return {
26877
26877
  data: {
@@ -27133,8 +27133,8 @@ const pG = function(e) {
27133
27133
  _ = u || w ? As(y, P) : P;
27134
27134
  }
27135
27135
  if (w && !u) {
27136
- const P = qr(l.left, 0), D = qr(l.right, 0), M = qr(l.top, 0), T = qr(l.bottom, 0);
27137
- f ? E = g - 2 * (P !== 0 || D !== 0 ? P + D : qr(l.left, l.right)) : _ = p - 2 * (M !== 0 || T !== 0 ? M + T : qr(l.top, l.bottom));
27136
+ const P = qr(l.left, 0), T = qr(l.right, 0), M = qr(l.top, 0), D = qr(l.bottom, 0);
27137
+ f ? E = g - 2 * (P !== 0 || T !== 0 ? P + T : qr(l.left, l.right)) : _ = p - 2 * (M !== 0 || D !== 0 ? M + D : qr(l.top, l.bottom));
27138
27138
  }
27139
27139
  await s({
27140
27140
  ...t,
@@ -27668,16 +27668,16 @@ function FG(e) {
27668
27668
  const [m, b] = he.useState(null), [y, x] = he.useState(null), w = he.useCallback((ee) => {
27669
27669
  ee != P.current && (P.current = ee, b(ee));
27670
27670
  }, [b]), _ = he.useCallback((ee) => {
27671
- ee !== D.current && (D.current = ee, x(ee));
27672
- }, [x]), E = i || m, C = s || y, P = he.useRef(null), D = he.useRef(null), M = he.useRef(u), T = SO(l), N = SO(o), F = he.useCallback(() => {
27673
- if (!P.current || !D.current)
27671
+ ee !== T.current && (T.current = ee, x(ee));
27672
+ }, [x]), E = i || m, C = s || y, P = he.useRef(null), T = he.useRef(null), M = he.useRef(u), D = SO(l), N = SO(o), F = he.useCallback(() => {
27673
+ if (!P.current || !T.current)
27674
27674
  return;
27675
27675
  const ee = {
27676
27676
  placement: t,
27677
27677
  strategy: n,
27678
27678
  middleware: g
27679
27679
  };
27680
- N.current && (ee.platform = N.current), NG(P.current, D.current, ee).then((Y) => {
27680
+ N.current && (ee.platform = N.current), NG(P.current, T.current, ee).then((Y) => {
27681
27681
  const X = {
27682
27682
  ...Y,
27683
27683
  isPositioned: !0
@@ -27697,15 +27697,15 @@ function FG(e) {
27697
27697
  dp(() => (B.current = !0, () => {
27698
27698
  B.current = !1;
27699
27699
  }), []), dp(() => {
27700
- if (E && (P.current = E), C && (D.current = C), E && C) {
27701
- if (T.current)
27702
- return T.current(E, C, F);
27700
+ if (E && (P.current = E), C && (T.current = C), E && C) {
27701
+ if (D.current)
27702
+ return D.current(E, C, F);
27703
27703
  F();
27704
27704
  }
27705
- }, [E, C, F, T]);
27705
+ }, [E, C, F, D]);
27706
27706
  const q = he.useMemo(() => ({
27707
27707
  reference: P,
27708
- floating: D,
27708
+ floating: T,
27709
27709
  setReference: w,
27710
27710
  setFloating: _
27711
27711
  }), [w, _]), G = he.useMemo(() => ({
@@ -27788,7 +27788,7 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
27788
27788
  }));
27789
27789
  }), ND = "PopperContent", [HG, qhe] = AD(ND), WG = /* @__PURE__ */ pe((e, t) => {
27790
27790
  var n, r, o, i, s, a, l, c;
27791
- const { __scopePopper: u, side: f = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: m = 0, arrowPadding: b = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: C = "optimized", onPlaced: P, ...D } = e, M = ID(ND, u), [T, N] = Pe(null), F = ft(
27791
+ const { __scopePopper: u, side: f = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: m = 0, arrowPadding: b = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: C = "optimized", onPlaced: P, ...T } = e, M = ID(ND, u), [D, N] = Pe(null), F = ft(
27792
27792
  t,
27793
27793
  (Me) => N(Me)
27794
27794
  ), [B, q] = Pe(null), G = Ng(B), j = (n = G == null ? void 0 : G.width) !== null && n !== void 0 ? n : 0, ee = (r = G == null ? void 0 : G.height) !== null && r !== void 0 ? r : 0, Y = f + (p !== "center" ? "-" + p : ""), X = typeof w == "number" ? w : {
@@ -27857,9 +27857,9 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
27857
27857
  ]);
27858
27858
  const ie = (o = ge.arrow) === null || o === void 0 ? void 0 : o.x, we = (i = ge.arrow) === null || i === void 0 ? void 0 : i.y, W = ((s = ge.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [be, Oe] = Pe();
27859
27859
  return nr(() => {
27860
- T && Oe(window.getComputedStyle(T).zIndex);
27860
+ D && Oe(window.getComputedStyle(D).zIndex);
27861
27861
  }, [
27862
- T
27862
+ D
27863
27863
  ]), /* @__PURE__ */ z("div", {
27864
27864
  ref: ne.setFloating,
27865
27865
  "data-radix-popper-content-wrapper": "",
@@ -27885,10 +27885,10 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
27885
27885
  }, /* @__PURE__ */ z(Xe.div, ae({
27886
27886
  "data-side": fe,
27887
27887
  "data-align": oe
27888
- }, D, {
27888
+ }, T, {
27889
27889
  ref: F,
27890
27890
  style: {
27891
- ...D.style,
27891
+ ...T.style,
27892
27892
  // if the PopperContent hasn't been placed yet (not all measurements done)
27893
27893
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
27894
27894
  animation: ve ? void 0 : "none",
@@ -27980,8 +27980,8 @@ const tf = jG, nf = VG, rf = WG, Lg = /* @__PURE__ */ pe((e, t) => {
27980
27980
  const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: i, disableHoverableContent: s, delayDuration: a } = e, l = s1(a1, e.__scopeTooltip), c = i1(t), [u, f] = Pe(null), g = Pr(), p = se(0), m = s ?? l.disableHoverableContent, b = a ?? l.delayDuration, y = se(!1), [x = !1, w] = rr({
27981
27981
  prop: r,
27982
27982
  defaultProp: o,
27983
- onChange: (D) => {
27984
- D ? (l.onOpen(), document.dispatchEvent(new CustomEvent(ly))) : l.onClose(), i == null || i(D);
27983
+ onChange: (T) => {
27984
+ T ? (l.onOpen(), document.dispatchEvent(new CustomEvent(ly))) : l.onClose(), i == null || i(T);
27985
27985
  }
27986
27986
  }), _ = Sn(() => x ? y.current ? "delayed-open" : "instant-open" : "closed", [
27987
27987
  x
@@ -28544,7 +28544,7 @@ function cy({
28544
28544
  return n && (p += a), p;
28545
28545
  }
28546
28546
  function RY({ card: e, isLoading: t }) {
28547
- var y, x, w, _, E, C, P, D, M, T, N, F, B, q, G, j, ee, Y;
28547
+ var y, x, w, _, E, C, P, T, M, D, N, F, B, q, G, j, ee, Y;
28548
28548
  const n = Ne((X) => X.actions.setCardTitle), r = Ne(
28549
28549
  (X) => X.actions.setCardDescription
28550
28550
  ), o = Ne((X) => X.isVisualEditing), i = To((X) => X.card), s = To((X) => X.actions.setCard);
@@ -28586,8 +28586,8 @@ function RY({ card: e, isLoading: t }) {
28586
28586
  format: ((_ = (w = e.preferences) == null ? void 0 : w.formatNumber) == null ? void 0 : _.format) || "",
28587
28587
  useSuffix: !!((C = (E = e.preferences) == null ? void 0 : E.formatNumber) != null && C.suffix),
28588
28588
  customSuffix: "",
28589
- locale: ((D = (P = e.preferences) == null ? void 0 : P.formatNumber) == null ? void 0 : D.locale) || "",
28590
- currency: ((T = (M = e.preferences) == null ? void 0 : M.formatNumber) == null ? void 0 : T.currency) || ""
28589
+ locale: ((T = (P = e.preferences) == null ? void 0 : P.formatNumber) == null ? void 0 : T.locale) || "",
28590
+ currency: ((D = (M = e.preferences) == null ? void 0 : M.formatNumber) == null ? void 0 : D.currency) || ""
28591
28591
  }) }),
28592
28592
  f && /* @__PURE__ */ I.jsxs("span", { className: "min-w-fit text-base font-normal text-muted-foreground", children: [
28593
28593
  "from  ",
@@ -28779,7 +28779,7 @@ function Ol({
28779
28779
  customCfg: n,
28780
28780
  preferences: r
28781
28781
  }) {
28782
- var x, w, _, E, C, P, D, M, T;
28782
+ var x, w, _, E, C, P, T, M, D;
28783
28783
  const { dimensionKeys: o, metricKeys: i } = Ao(e), s = Wq(i, e, r), a = ry(s, n), l = o[0], c = _D(e, l), u = BY(r), f = VY(r), g = {
28784
28784
  ...t == null ? void 0 : t.options,
28785
28785
  scales: {
@@ -28802,7 +28802,7 @@ function Ol({
28802
28802
  }
28803
28803
  },
28804
28804
  [f]: {
28805
- ...(T = (M = (D = t == null ? void 0 : t.options) == null ? void 0 : D.scales) == null ? void 0 : M[f]) == null ? void 0 : T.ticks,
28805
+ ...(D = (M = (T = t == null ? void 0 : t.options) == null ? void 0 : T.scales) == null ? void 0 : M[f]) == null ? void 0 : D.ticks,
28806
28806
  callback: null
28807
28807
  }
28808
28808
  }
@@ -29303,11 +29303,11 @@ function KD(e) {
29303
29303
  addOrUpdateFilterValues: y,
29304
29304
  removeFilterValue: x,
29305
29305
  removeFilteringCard: w
29306
- } = zs(), { data: _, isLoading: E, isFetching: C, isError: P, refetch: D } = jY(e), M = s == null ? void 0 : s.find(
29306
+ } = zs(), { data: _, isLoading: E, isFetching: C, isError: P, refetch: T } = jY(e), M = s == null ? void 0 : s.find(
29307
29307
  (G) => G.id === e.id
29308
29308
  );
29309
- let T;
29310
- e.data && e.data.length > 0 && (T = YD({
29309
+ let D;
29310
+ e.data && e.data.length > 0 && (D = YD({
29311
29311
  data: e.data,
29312
29312
  cardType: e.type,
29313
29313
  cfg: e.cfg,
@@ -29332,7 +29332,7 @@ function KD(e) {
29332
29332
  e.preferences,
29333
29333
  l
29334
29334
  ]), _e(() => {
29335
- e.connectionId && !M && D();
29335
+ e.connectionId && !M && T();
29336
29336
  }, [c, i]);
29337
29337
  function N(G, j, ee, Y) {
29338
29338
  var R, H;
@@ -29381,7 +29381,7 @@ function KD(e) {
29381
29381
  elementIndex: ee,
29382
29382
  datasetIndex: j,
29383
29383
  cardType: e.type,
29384
- cfg: T,
29384
+ cfg: D,
29385
29385
  apply: X
29386
29386
  });
29387
29387
  }
@@ -29393,7 +29393,7 @@ function KD(e) {
29393
29393
  data: _,
29394
29394
  visualKey: n,
29395
29395
  handleDatapointClick: N,
29396
- cfg: T
29396
+ cfg: D
29397
29397
  };
29398
29398
  }
29399
29399
  function eK(e, t) {
@@ -30104,13 +30104,13 @@ const Ah = {
30104
30104
  const s = e.getSize(), a = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[r.id, r.getSize()]], l = ab(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, u = (x, w) => {
30105
30105
  typeof w == "number" && (t.setColumnSizingInfo((_) => {
30106
30106
  var E, C;
30107
- const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, D = (w - ((E = _ == null ? void 0 : _.startOffset) != null ? E : 0)) * P, M = Math.max(D / ((C = _ == null ? void 0 : _.startSize) != null ? C : 0), -0.999999);
30108
- return _.columnSizingStart.forEach((T) => {
30109
- let [N, F] = T;
30107
+ const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, T = (w - ((E = _ == null ? void 0 : _.startOffset) != null ? E : 0)) * P, M = Math.max(T / ((C = _ == null ? void 0 : _.startSize) != null ? C : 0), -0.999999);
30108
+ return _.columnSizingStart.forEach((D) => {
30109
+ let [N, F] = D;
30110
30110
  c[N] = Math.round(Math.max(F + F * M, 0) * 100) / 100;
30111
30111
  }), {
30112
30112
  ..._,
30113
- deltaOffset: D,
30113
+ deltaOffset: T,
30114
30114
  deltaPercentage: M
30115
30115
  };
30116
30116
  }), (t.options.columnResizeMode === "onChange" || x === "end") && t.setColumnSizing((_) => ({
@@ -31810,12 +31810,12 @@ function sX({
31810
31810
  setSelectedConnectionId: E,
31811
31811
  setSelectedDatabaseName: C,
31812
31812
  setSelectedSchemaName: P,
31813
- setSelectedTableName: D
31813
+ setSelectedTableName: T
31814
31814
  } = xD();
31815
31815
  function M(q) {
31816
- q.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && C(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && D(u == null ? void 0 : u.lastSelectedTable);
31816
+ q.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && C(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && T(u == null ? void 0 : u.lastSelectedTable);
31817
31817
  }
31818
- function T() {
31818
+ function D() {
31819
31819
  if (o && o.length > 0) {
31820
31820
  const q = o.find((G) => G.cardId === u.id);
31821
31821
  if (q && q.replaceDefault) {
@@ -31926,7 +31926,7 @@ function sX({
31926
31926
  ...r,
31927
31927
  children: [
31928
31928
  /* @__PURE__ */ I.jsx(Kq, { frame: e }),
31929
- T()
31929
+ D()
31930
31930
  ]
31931
31931
  }
31932
31932
  );
@@ -32596,18 +32596,18 @@ function XX(e) {
32596
32596
  var a = he.useCallback(function(b, y) {
32597
32597
  if ("touches" in b && b.touches.length === 2)
32598
32598
  return !s.current.allowPinchZoom;
32599
- var x = zh(b), w = n.current, _ = "deltaX" in b ? b.deltaX : w[0] - x[0], E = "deltaY" in b ? b.deltaY : w[1] - x[1], C, P = b.target, D = Math.abs(_) > Math.abs(E) ? "h" : "v";
32600
- if ("touches" in b && D === "h" && P.type === "range")
32599
+ var x = zh(b), w = n.current, _ = "deltaX" in b ? b.deltaX : w[0] - x[0], E = "deltaY" in b ? b.deltaY : w[1] - x[1], C, P = b.target, T = Math.abs(_) > Math.abs(E) ? "h" : "v";
32600
+ if ("touches" in b && T === "h" && P.type === "range")
32601
32601
  return !1;
32602
- var M = LO(D, P);
32602
+ var M = LO(T, P);
32603
32603
  if (!M)
32604
32604
  return !0;
32605
- if (M ? C = D : (C = D === "v" ? "h" : "v", M = LO(D, P)), !M)
32605
+ if (M ? C = T : (C = T === "v" ? "h" : "v", M = LO(T, P)), !M)
32606
32606
  return !1;
32607
32607
  if (!r.current && "changedTouches" in b && (_ || E) && (r.current = C), !C)
32608
32608
  return !0;
32609
- var T = r.current || C;
32610
- return qX(T, y, b, T === "h" ? _ : E, !0);
32609
+ var D = r.current || C;
32610
+ return qX(D, y, b, D === "h" ? _ : E, !0);
32611
32611
  }, []), l = he.useCallback(function(b) {
32612
32612
  var y = b;
32613
32613
  if (!(!$l.length || $l[$l.length - 1] !== i)) {
@@ -32920,11 +32920,11 @@ const hQ = [
32920
32920
  gQ,
32921
32921
  pi
32922
32922
  ]), b1 = pi(), [mQ, Za] = kc(Gg), [vQ, bQ] = kc(Gg), yQ = (e) => {
32923
- const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: i, value: s, defaultValue: a, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: g, required: p } = e, m = b1(t), [b, y] = Pe(null), [x, w] = Pe(null), [_, E] = Pe(!1), C = Ka(c), [P = !1, D] = rr({
32923
+ const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: i, value: s, defaultValue: a, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: g, required: p } = e, m = b1(t), [b, y] = Pe(null), [x, w] = Pe(null), [_, E] = Pe(!1), C = Ka(c), [P = !1, T] = rr({
32924
32924
  prop: r,
32925
32925
  defaultProp: o,
32926
32926
  onChange: i
32927
- }), [M, T] = rr({
32927
+ }), [M, D] = rr({
32928
32928
  prop: s,
32929
32929
  defaultProp: a,
32930
32930
  onChange: l
@@ -32942,9 +32942,9 @@ const hQ = [
32942
32942
  onValueNodeHasChildrenChange: E,
32943
32943
  contentId: Pr(),
32944
32944
  value: M,
32945
- onValueChange: T,
32945
+ onValueChange: D,
32946
32946
  open: P,
32947
- onOpenChange: D,
32947
+ onOpenChange: T,
32948
32948
  dir: C,
32949
32949
  triggerPointerDownPosRef: N,
32950
32950
  disabled: g
@@ -32971,7 +32971,7 @@ const hQ = [
32971
32971
  name: u,
32972
32972
  autoComplete: f,
32973
32973
  value: M,
32974
- onChange: (j) => T(j.target.value),
32974
+ onChange: (j) => D(j.target.value),
32975
32975
  disabled: g
32976
32976
  }, M === void 0 ? /* @__PURE__ */ z("option", {
32977
32977
  value: ""
@@ -33074,10 +33074,10 @@ const hQ = [
33074
33074
  avoidCollisions: y,
33075
33075
  //
33076
33076
  ...x
33077
- } = e, w = Za(wc, n), [_, E] = Pe(null), [C, P] = Pe(null), D = ft(
33077
+ } = e, w = Za(wc, n), [_, E] = Pe(null), [C, P] = Pe(null), T = ft(
33078
33078
  t,
33079
33079
  (fe) => E(fe)
33080
- ), [M, T] = Pe(null), [N, F] = Pe(null), B = Kg(n), [q, G] = Pe(!1), j = se(!1);
33080
+ ), [M, D] = Pe(null), [N, F] = Pe(null), B = Kg(n), [q, G] = Pe(!1), j = se(!1);
33081
33081
  _e(() => {
33082
33082
  if (_)
33083
33083
  return Hg(_);
@@ -33161,7 +33161,7 @@ const hQ = [
33161
33161
  );
33162
33162
  }), ne = Be((fe, oe, Z) => {
33163
33163
  const ie = !j.current && !Z;
33164
- (w.value !== void 0 && w.value === oe || ie) && (T(fe), ie && (j.current = !0));
33164
+ (w.value !== void 0 && w.value === oe || ie) && (D(fe), ie && (j.current = !0));
33165
33165
  }, [
33166
33166
  w.value
33167
33167
  ]), A = Be(
@@ -33230,7 +33230,7 @@ const hQ = [
33230
33230
  onContextMenu: (fe) => fe.preventDefault()
33231
33231
  }, x, ge, {
33232
33232
  onPlaced: () => G(!0),
33233
- ref: D,
33233
+ ref: T,
33234
33234
  style: {
33235
33235
  // flex layout so we can place the scroll buttons properly
33236
33236
  display: "flex",
@@ -33271,24 +33271,24 @@ const hQ = [
33271
33271
  }), RQ = /* @__PURE__ */ pe((e, t) => {
33272
33272
  const { __scopeSelect: n, onPlaced: r, ...o } = e, i = Za(wc, n), s = el(wc, n), [a, l] = Pe(null), [c, u] = Pe(null), f = ft(
33273
33273
  t,
33274
- (D) => u(D)
33274
+ (T) => u(T)
33275
33275
  ), g = Kg(n), p = se(!1), m = se(!0), { viewport: b, selectedItem: y, selectedItemText: x, focusSelectedItem: w } = s, _ = Be(() => {
33276
33276
  if (i.trigger && i.valueNode && a && c && b && y && x) {
33277
- const D = i.trigger.getBoundingClientRect(), M = c.getBoundingClientRect(), T = i.valueNode.getBoundingClientRect(), N = x.getBoundingClientRect();
33277
+ const T = i.trigger.getBoundingClientRect(), M = c.getBoundingClientRect(), D = i.valueNode.getBoundingClientRect(), N = x.getBoundingClientRect();
33278
33278
  if (i.dir !== "rtl") {
33279
- const we = N.left - M.left, W = T.left - we, be = D.left - W, Oe = D.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
33279
+ const we = N.left - M.left, W = D.left - we, be = T.left - W, Oe = T.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
33280
33280
  ki,
33281
33281
  Ae - Me
33282
33282
  ]);
33283
33283
  a.style.minWidth = Oe + "px", a.style.left = Qe + "px";
33284
33284
  } else {
33285
- const we = M.right - N.right, W = window.innerWidth - T.right - we, be = window.innerWidth - D.right - W, Oe = D.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
33285
+ const we = M.right - N.right, W = window.innerWidth - D.right - we, be = window.innerWidth - T.right - W, Oe = T.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
33286
33286
  ki,
33287
33287
  Ae - Me
33288
33288
  ]);
33289
33289
  a.style.minWidth = Oe + "px", a.style.right = Qe + "px";
33290
33290
  }
33291
- const F = g(), B = window.innerHeight - ki * 2, q = b.scrollHeight, G = window.getComputedStyle(c), j = parseInt(G.borderTopWidth, 10), ee = parseInt(G.paddingTop, 10), Y = parseInt(G.borderBottomWidth, 10), X = parseInt(G.paddingBottom, 10), re = j + ee + q + X + Y, R = Math.min(y.offsetHeight * 5, re), H = window.getComputedStyle(b), ne = parseInt(H.paddingTop, 10), A = parseInt(H.paddingBottom, 10), ue = D.top + D.height / 2 - ki, ve = B - ue, ge = y.offsetHeight / 2, fe = y.offsetTop + ge, oe = j + ee + fe, Z = re - oe;
33291
+ const F = g(), B = window.innerHeight - ki * 2, q = b.scrollHeight, G = window.getComputedStyle(c), j = parseInt(G.borderTopWidth, 10), ee = parseInt(G.paddingTop, 10), Y = parseInt(G.borderBottomWidth, 10), X = parseInt(G.paddingBottom, 10), re = j + ee + q + X + Y, R = Math.min(y.offsetHeight * 5, re), H = window.getComputedStyle(b), ne = parseInt(H.paddingTop, 10), A = parseInt(H.paddingBottom, 10), ue = T.top + T.height / 2 - ki, ve = B - ue, ge = y.offsetHeight / 2, fe = y.offsetTop + ge, oe = j + ee + fe, Z = re - oe;
33292
33292
  if (oe <= ue) {
33293
33293
  const we = y === F[F.length - 1].ref.current;
33294
33294
  a.style.bottom = "0px";
@@ -33328,8 +33328,8 @@ const hQ = [
33328
33328
  }, [
33329
33329
  c
33330
33330
  ]);
33331
- const P = Be((D) => {
33332
- D && m.current === !0 && (_(), w == null || w(), m.current = !1);
33331
+ const P = Be((T) => {
33332
+ T && m.current === !0 && (_(), w == null || w(), m.current = !1);
33333
33333
  }, [
33334
33334
  _,
33335
33335
  w
@@ -35287,14 +35287,14 @@ function gZ() {
35287
35287
  Ye.unshift("Warning: " + K), Function.prototype.apply.call(console[O], console, Ye);
35288
35288
  }
35289
35289
  }
35290
- var E = !1, C = !1, P = !1, D = !1, M = !1, T;
35291
- T = Symbol.for("react.module.reference");
35290
+ var E = !1, C = !1, P = !1, T = !1, M = !1, D;
35291
+ D = Symbol.for("react.module.reference");
35292
35292
  function N(O) {
35293
- return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || D || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
35293
+ return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || T || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
35294
35294
  // types supported by any Flight configuration anywhere since
35295
35295
  // we don't know which Flight build this will end up being used
35296
35296
  // with.
35297
- O.$$typeof === T || O.getModuleId !== void 0));
35297
+ O.$$typeof === D || O.getModuleId !== void 0));
35298
35298
  }
35299
35299
  function F(O, K, le) {
35300
35300
  var Re = O.displayName;
@@ -36572,13 +36572,13 @@ function Ree(e, t) {
36572
36572
  }, P = function(Y) {
36573
36573
  var X;
36574
36574
  (X = n.onDayMouseEnter) === null || X === void 0 || X.call(n, e, t, Y);
36575
- }, D = function(Y) {
36575
+ }, T = function(Y) {
36576
36576
  var X;
36577
36577
  (X = n.onDayMouseLeave) === null || X === void 0 || X.call(n, e, t, Y);
36578
36578
  }, M = function(Y) {
36579
36579
  var X;
36580
36580
  (X = n.onDayPointerEnter) === null || X === void 0 || X.call(n, e, t, Y);
36581
- }, T = function(Y) {
36581
+ }, D = function(Y) {
36582
36582
  var X;
36583
36583
  (X = n.onDayPointerLeave) === null || X === void 0 || X.call(n, e, t, Y);
36584
36584
  }, N = function(Y) {
@@ -36632,9 +36632,9 @@ function Ree(e, t) {
36632
36632
  onKeyDown: j,
36633
36633
  onKeyUp: G,
36634
36634
  onMouseEnter: P,
36635
- onMouseLeave: D,
36635
+ onMouseLeave: T,
36636
36636
  onPointerEnter: M,
36637
- onPointerLeave: T,
36637
+ onPointerLeave: D,
36638
36638
  onTouchCancel: N,
36639
36639
  onTouchEnd: F,
36640
36640
  onTouchMove: B,
@@ -38064,10 +38064,10 @@ function Vte(e, t) {
38064
38064
  }
38065
38065
  let Hte = dr;
38066
38066
  function Wte(e, t) {
38067
- let { value: n, defaultValue: r, onChange: o, form: i, name: s, by: a = null, disabled: l = !1, __demoMode: c = !1, nullable: u = !1, multiple: f = !1, immediate: g = !1, virtual: p = null, ...m } = e, b = !1, y = null, [x = f ? [] : void 0, w] = ute(n, o, r), [_, E] = Gy(Vte, { dataRef: O6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), C = se(!1), P = se({ static: !1, hold: !1 }), D = se(null), M = se(null), T = se(null), N = se(null), F = Ct(typeof a == "string" ? (Z, ie) => {
38067
+ let { value: n, defaultValue: r, onChange: o, form: i, name: s, by: a = null, disabled: l = !1, __demoMode: c = !1, nullable: u = !1, multiple: f = !1, immediate: g = !1, virtual: p = null, ...m } = e, b = !1, y = null, [x = f ? [] : void 0, w] = ute(n, o, r), [_, E] = Gy(Vte, { dataRef: O6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), C = se(!1), P = se({ static: !1, hold: !1 }), T = se(null), M = se(null), D = se(null), N = se(null), F = Ct(typeof a == "string" ? (Z, ie) => {
38068
38068
  let we = a;
38069
38069
  return (Z == null ? void 0 : Z[we]) === (ie == null ? void 0 : ie[we]);
38070
- } : a ?? ((Z, ie) => Z === ie)), B = Ct((Z) => _.options.findIndex((ie) => F(ie.dataRef.current.value, Z))), q = Be((Z) => qn(j.mode, { 1: () => x.some((ie) => F(ie, Z)), 0: () => F(x, Z) }), [x]), G = Ct((Z) => _.activeOptionIndex === B(Z)), j = Sn(() => ({ ..._, immediate: b, optionsPropsRef: P, labelRef: D, inputRef: M, buttonRef: T, optionsRef: N, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
38070
+ } : a ?? ((Z, ie) => Z === ie)), B = Ct((Z) => _.options.findIndex((ie) => F(ie.dataRef.current.value, Z))), q = Be((Z) => qn(j.mode, { 1: () => x.some((ie) => F(ie, Z)), 0: () => F(x, Z) }), [x]), G = Ct((Z) => _.activeOptionIndex === B(Z)), j = Sn(() => ({ ..._, immediate: b, optionsPropsRef: P, labelRef: T, inputRef: M, buttonRef: D, optionsRef: N, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
38071
38071
  if (C.current && _.activeOptionIndex === null && _.options.length > 0) {
38072
38072
  let Z = _.options.findIndex((ie) => !ie.dataRef.current.disabled);
38073
38073
  if (Z !== -1)
@@ -38147,7 +38147,7 @@ function qte(e, t) {
38147
38147
  }, [p.comboboxState]);
38148
38148
  let C = se(!1), P = Ct(() => {
38149
38149
  C.current = !0;
38150
- }), D = Ct(() => {
38150
+ }), T = Ct(() => {
38151
38151
  w.nextFrame(() => {
38152
38152
  C.current = !1;
38153
38153
  });
@@ -38190,7 +38190,7 @@ function qte(e, t) {
38190
38190
  p.mode === 0 && p.activationTrigger !== 1 && m.selectActiveOption(), m.closeCombobox();
38191
38191
  break;
38192
38192
  }
38193
- }), T = Ct((j) => {
38193
+ }), D = Ct((j) => {
38194
38194
  c == null || c(j), p.nullable && p.mode === 0 && j.target.value === "" && _(), m.openCombobox();
38195
38195
  }), N = Ct((j) => {
38196
38196
  var ee, Y, X;
@@ -38209,7 +38209,7 @@ function qte(e, t) {
38209
38209
  }, [p.labelId]), q = Sn(() => ({ open: p.comboboxState === 0, disabled: p.disabled }), [p]), G = { ref: b, id: l, role: "combobox", type: f, "aria-controls": (n = p.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": p.comboboxState === 0, "aria-activedescendant": p.activeOptionIndex === null ? void 0 : p.virtual ? (r = p.options.find((j) => {
38210
38210
  var ee;
38211
38211
  return !((ee = p.virtual) != null && ee.disabled(j.dataRef.current.value)) && p.compare(j.dataRef.current.value, p.virtual.options[p.activeOptionIndex]);
38212
- })) == null ? void 0 : r.id : (o = p.options[p.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": B, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : p.defaultValue !== void 0 ? u == null ? void 0 : u(p.defaultValue) : null) != null ? s : p.defaultValue, disabled: p.disabled, onCompositionStart: P, onCompositionEnd: D, onKeyDown: M, onChange: T, onFocus: F, onBlur: N };
38212
+ })) == null ? void 0 : r.id : (o = p.options[p.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": B, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : p.defaultValue !== void 0 ? u == null ? void 0 : u(p.defaultValue) : null) != null ? s : p.defaultValue, disabled: p.disabled, onCompositionStart: P, onCompositionEnd: T, onKeyDown: M, onChange: D, onFocus: F, onBlur: N };
38213
38213
  return Gi({ ourProps: G, theirProps: g, slot: q, defaultTag: Ute, name: "Combobox.Input" });
38214
38214
  }
38215
38215
  let Gte = "button";
@@ -38315,7 +38315,7 @@ function tne(e, t) {
38315
38315
  return u.goToOption(Mn.Nothing);
38316
38316
  let F = c.calculateIndex(s);
38317
38317
  u.goToOption(Mn.Specific, F);
38318
- }), C = Ote(), P = Ct((N) => C.update(N)), D = Ct((N) => {
38318
+ }), C = Ote(), P = Ct((N) => C.update(N)), T = Ct((N) => {
38319
38319
  var F;
38320
38320
  if (!C.wasMoved(N) || i || (F = c.virtual) != null && F.disabled(s) || f)
38321
38321
  return;
@@ -38324,8 +38324,8 @@ function tne(e, t) {
38324
38324
  }), M = Ct((N) => {
38325
38325
  var F;
38326
38326
  C.wasMoved(N) && (i || (F = c.virtual) != null && F.disabled(s) || f && (c.optionsPropsRef.current.hold || u.goToOption(Mn.Nothing)));
38327
- }), T = Sn(() => ({ active: f, selected: g, disabled: i }), [f, g, i]);
38328
- return Gi({ ourProps: { id: o, ref: y, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: _, onFocus: E, onPointerEnter: P, onMouseEnter: P, onPointerMove: D, onMouseMove: D, onPointerLeave: M, onMouseLeave: M }, theirProps: l, slot: T, defaultTag: ene, name: "Combobox.Option" });
38327
+ }), D = Sn(() => ({ active: f, selected: g, disabled: i }), [f, g, i]);
38328
+ return Gi({ ourProps: { id: o, ref: y, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: _, onFocus: E, onPointerEnter: P, onMouseEnter: P, onPointerMove: T, onMouseMove: T, onPointerLeave: M, onMouseLeave: M }, theirProps: l, slot: D, defaultTag: ene, name: "Combobox.Option" });
38329
38329
  }
38330
38330
  let nne = gi(Wte), rne = gi(Yte), one = gi(qte), ine = gi(Xte), sne = gi(Zte), ane = gi(tne), Ml = Object.assign(nne, { Input: one, Button: rne, Label: ine, Options: sne, Option: ane });
38331
38331
  function z1() {
@@ -38473,16 +38473,16 @@ function bne(e) {
38473
38473
  let yne = "div", TM = Kp.RenderStrategy;
38474
38474
  function xne(e, t) {
38475
38475
  var n, r;
38476
- let { beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a, enter: l, enterFrom: c, enterTo: u, entered: f, leave: g, leaveFrom: p, leaveTo: m, ...b } = e, y = se(null), x = tl(y, t), w = (n = b.unmount) == null || n ? Ps.Unmount : Ps.Hidden, { show: _, appear: E, initial: C } = pne(), [P, D] = Pe(_ ? "visible" : "hidden"), M = gne(), { register: T, unregister: N } = M;
38477
- _e(() => T(y), [T, y]), _e(() => {
38476
+ let { beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a, enter: l, enterFrom: c, enterTo: u, entered: f, leave: g, leaveFrom: p, leaveTo: m, ...b } = e, y = se(null), x = tl(y, t), w = (n = b.unmount) == null || n ? Ps.Unmount : Ps.Hidden, { show: _, appear: E, initial: C } = pne(), [P, T] = Pe(_ ? "visible" : "hidden"), M = gne(), { register: D, unregister: N } = M;
38477
+ _e(() => D(y), [D, y]), _e(() => {
38478
38478
  if (w === Ps.Hidden && y.current) {
38479
38479
  if (_ && P !== "visible") {
38480
- D("visible");
38480
+ T("visible");
38481
38481
  return;
38482
38482
  }
38483
- return qn(P, { hidden: () => N(y), visible: () => T(y) });
38483
+ return qn(P, { hidden: () => N(y), visible: () => D(y) });
38484
38484
  }
38485
- }, [P, y, T, N, _, w]);
38485
+ }, [P, y, D, N, _, w]);
38486
38486
  let F = si({ base: cs(b.className), enter: cs(l), enterFrom: cs(c), enterTo: cs(u), entered: cs(f), leave: cs(g), leaveFrom: cs(p), leaveTo: cs(m) }), B = bne({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }), q = k1();
38487
38487
  _e(() => {
38488
38488
  if (q && P === "visible" && y.current === null)
@@ -38499,12 +38499,12 @@ function xne(e, t) {
38499
38499
  Y.removeFlag(Gr.Closing), B.current.afterLeave();
38500
38500
  }, idle: () => {
38501
38501
  } })), R = DM(() => {
38502
- D("hidden"), N(y);
38502
+ T("hidden"), N(y);
38503
38503
  }, M), H = se(!1);
38504
38504
  fne({ immediate: j, container: y, classes: F, direction: ee, onStart: si((ue) => {
38505
38505
  H.current = !0, R.onStart(y, ue, X);
38506
38506
  }), onStop: si((ue) => {
38507
- H.current = !1, R.onStop(y, ue, re), ue === "leave" && !Zg(R) && (D("hidden"), N(y));
38507
+ H.current = !1, R.onStop(y, ue, re), ue === "leave" && !Zg(R) && (T("hidden"), N(y));
38508
38508
  }) });
38509
38509
  let ne = b, A = { ref: x };
38510
38510
  return j ? ne = { ...ne, className: Yp(b.className, ...F.current.enter, ...F.current.enterFrom) } : H.current && (ne.className = Yp(b.className, (r = y.current) == null ? void 0 : r.className), ne.className === "" && delete ne.className), Ee.createElement(Jg.Provider, { value: R }, Ee.createElement(EM, { value: qn(P, { visible: Gr.Open, hidden: Gr.Closed }) | Y.flags }, Gi({ ourProps: A, theirProps: ne, defaultTag: yne, features: TM, visible: P === "visible", name: "Transition.Child" })));
@@ -38591,12 +38591,12 @@ function One({ filter: e }) {
38591
38591
  }), w = Sn(
38592
38592
  () => {
38593
38593
  var M;
38594
- return (M = p == null ? void 0 : p.records) == null ? void 0 : M.map((T) => {
38594
+ return (M = p == null ? void 0 : p.records) == null ? void 0 : M.map((D) => {
38595
38595
  let N = e.column.split(".").slice(-1)[0].replace(/"/g, "");
38596
- return T[N] === void 0 && (N = N.toLowerCase()), {
38597
- id: T[N],
38596
+ return D[N] === void 0 && (N = N.toLowerCase()), {
38597
+ id: D[N],
38598
38598
  //idx,
38599
- value: T[N]
38599
+ value: D[N]
38600
38600
  // this is needed if
38601
38601
  };
38602
38602
  });
@@ -38606,48 +38606,48 @@ function One({ filter: e }) {
38606
38606
  _e(() => {
38607
38607
  if (c) {
38608
38608
  const M = c.find(
38609
- (T) => T.filterId === e.id
38609
+ (D) => D.filterId === e.id
38610
38610
  );
38611
38611
  if (!M) {
38612
38612
  n([]);
38613
38613
  return;
38614
38614
  }
38615
38615
  if (M.operation === "in") {
38616
- const T = w == null ? void 0 : w.filter(
38616
+ const D = w == null ? void 0 : w.filter(
38617
38617
  (N) => M.values.includes(N.value)
38618
38618
  );
38619
- T && n(T);
38619
+ D && n(D);
38620
38620
  } else
38621
38621
  o(`${M.operation} ${M.values[0]}`);
38622
38622
  }
38623
38623
  }, [p]), _e(() => {
38624
38624
  if (c && !c.find(
38625
- (T) => T.filterId === e.id
38625
+ (D) => D.filterId === e.id
38626
38626
  )) {
38627
38627
  n([]);
38628
38628
  return;
38629
38629
  }
38630
38630
  }, [c, e.id]);
38631
38631
  function _(M) {
38632
- return M ? M.filter((T) => {
38633
- const F = T.name.split(".");
38634
- if (F.slice(0, F.length - 1).join(".") === e.table && T.name !== e.column)
38632
+ return M ? M.filter((D) => {
38633
+ const F = D.name.split(".");
38634
+ if (F.slice(0, F.length - 1).join(".") === e.table && D.name !== e.column)
38635
38635
  return !0;
38636
38636
  }) : [];
38637
38637
  }
38638
38638
  function E(M) {
38639
- const T = Ene(
38639
+ const D = Ene(
38640
38640
  M[0].toString()
38641
38641
  );
38642
- if (!(T != null && T.value) || !(T != null && T.operation))
38642
+ if (!(D != null && D.value) || !(D != null && D.operation))
38643
38643
  return;
38644
38644
  const N = {
38645
38645
  filterId: e.id,
38646
38646
  connectionType: e.database === "NA" ? "api" : "database",
38647
38647
  valueType: p0(e),
38648
38648
  name: e.column,
38649
- operation: T.operation,
38650
- values: [Number(T.value)]
38649
+ operation: D.operation,
38650
+ values: [Number(D.value)]
38651
38651
  };
38652
38652
  u(N);
38653
38653
  }
@@ -38660,7 +38660,7 @@ function One({ filter: e }) {
38660
38660
  f(e.id);
38661
38661
  return;
38662
38662
  }
38663
- const T = {
38663
+ const D = {
38664
38664
  filterId: e.id,
38665
38665
  connectionType: e.database === "NA" ? "api" : "database",
38666
38666
  name: e.column,
@@ -38668,7 +38668,7 @@ function One({ filter: e }) {
38668
38668
  operation: e.operation,
38669
38669
  values: M.map((N) => N.value)
38670
38670
  };
38671
- u(T);
38671
+ u(D);
38672
38672
  }
38673
38673
  function P() {
38674
38674
  var M;
@@ -38684,8 +38684,8 @@ function One({ filter: e }) {
38684
38684
  children: "Error"
38685
38685
  }
38686
38686
  );
38687
- let D = [];
38688
- return Ku.includes(e.dataType) ? D = w : D = i === "" ? w : w == null ? void 0 : w.filter(
38687
+ let T = [];
38688
+ return Ku.includes(e.dataType) ? T = w : T = i === "" ? w : w == null ? void 0 : w.filter(
38689
38689
  (M) => M.value.toLowerCase().replace(/\s+/g, "").includes(i.toLowerCase().replace(/\s+/g, ""))
38690
38690
  ), /* @__PURE__ */ I.jsx(
38691
38691
  "div",
@@ -38752,20 +38752,20 @@ function One({ filter: e }) {
38752
38752
  },
38753
38753
  "custom"
38754
38754
  ),
38755
- (D == null ? void 0 : D.length) === 0 && i !== "" ? /* @__PURE__ */ I.jsx("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : D == null ? void 0 : D.map((M) => /* @__PURE__ */ I.jsx(
38755
+ (T == null ? void 0 : T.length) === 0 && i !== "" ? /* @__PURE__ */ I.jsx("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : T == null ? void 0 : T.map((M) => /* @__PURE__ */ I.jsx(
38756
38756
  Ml.Option,
38757
38757
  {
38758
- className: ({ active: T }) => `relative cursor-default select-none border-b border-muted py-2 pl-10 pr-4 ${T ? "bg-muted" : "text-foreground-900"}`,
38758
+ className: ({ active: D }) => `relative cursor-default select-none border-b border-muted py-2 pl-10 pr-4 ${D ? "bg-muted" : "text-foreground-900"}`,
38759
38759
  value: M,
38760
- children: ({ selected: T, active: N }) => /* @__PURE__ */ I.jsxs("div", { className: "", children: [
38760
+ children: ({ selected: D, active: N }) => /* @__PURE__ */ I.jsxs("div", { className: "", children: [
38761
38761
  /* @__PURE__ */ I.jsx(
38762
38762
  "span",
38763
38763
  {
38764
- className: `block ${T ? "font-medium" : "font-normal"}`,
38764
+ className: `block ${D ? "font-medium" : "font-normal"}`,
38765
38765
  children: typeof M.value == "boolean" ? M.value ? "True" : "False" : M.value
38766
38766
  }
38767
38767
  ),
38768
- T ? /* @__PURE__ */ I.jsx(
38768
+ D ? /* @__PURE__ */ I.jsx(
38769
38769
  "span",
38770
38770
  {
38771
38771
  className: "absolute inset-y-0 left-0 flex items-center pl-3 text-foreground",
@@ -38791,29 +38791,29 @@ function One({ filter: e }) {
38791
38791
  }
38792
38792
  const Pne = zC.WidthProvider(zC.Responsive);
38793
38793
  function Rne() {
38794
- var P, D, M;
38794
+ var P, T, M;
38795
38795
  const e = Ne(
38796
- (T) => T.isDashboardEditing
38796
+ (D) => D.isDashboardEditing
38797
38797
  );
38798
38798
  Ne(
38799
- (T) => T.currentBreakpoint
38799
+ (D) => D.currentBreakpoint
38800
38800
  );
38801
- const t = Ne((T) => T.themeStyle), n = Ne((T) => T.selectedSheetId);
38801
+ const t = Ne((D) => D.themeStyle), n = Ne((D) => D.selectedSheetId);
38802
38802
  (P = Ne(
38803
- (T) => {
38803
+ (D) => {
38804
38804
  var N, F;
38805
- return (F = (N = T.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
38805
+ return (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
38806
38806
  }
38807
38807
  )) == null || P[0].layout;
38808
- const r = (D = Ne(
38809
- (T) => {
38808
+ const r = (T = Ne(
38809
+ (D) => {
38810
38810
  var N, F;
38811
- return (F = (N = T.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
38811
+ return (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
38812
38812
  }
38813
- )) == null ? void 0 : D[0].layouts, o = Ne((T) => T.dashboard.filters), i = Ne(
38814
- (T) => {
38813
+ )) == null ? void 0 : T[0].layouts, o = Ne((D) => D.dashboard.filters), i = Ne(
38814
+ (D) => {
38815
38815
  var N, F, B;
38816
- return (B = (F = (N = T.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.find((q) => q.id === n)) == null ? void 0 : B.frames;
38816
+ return (B = (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.find((q) => q.id === n)) == null ? void 0 : B.frames;
38817
38817
  }
38818
38818
  ), {
38819
38819
  getSelectedSheet: s,
@@ -38825,26 +38825,26 @@ function Rne() {
38825
38825
  removeFilter: g,
38826
38826
  updateFilter: p,
38827
38827
  removeFilterValue: m
38828
- } = Ne((T) => T.actions), b = s(), y = Be((T) => {
38829
- f(T);
38828
+ } = Ne((D) => D.actions), b = s(), y = Be((D) => {
38829
+ f(D);
38830
38830
  }, []), x = Be(
38831
- (T, N) => {
38831
+ (D, N) => {
38832
38832
  b != null && b.id && u(b.id, N);
38833
38833
  },
38834
38834
  [b == null ? void 0 : b.id, u]
38835
38835
  );
38836
38836
  if (!n)
38837
38837
  return null;
38838
- const w = (T, N) => /* @__PURE__ */ I.jsx(
38838
+ const w = (D, N) => /* @__PURE__ */ I.jsx(
38839
38839
  kM,
38840
38840
  {
38841
38841
  className: "after:content-none",
38842
38842
  ref: N,
38843
- handleAxis: T
38843
+ handleAxis: D
38844
38844
  }
38845
- ), _ = (T) => dg.includes(T.dataType) ? /* @__PURE__ */ I.jsx(Yee, { filter: T }) : /* @__PURE__ */ I.jsx(One, { filter: T });
38845
+ ), _ = (D) => dg.includes(D.dataType) ? /* @__PURE__ */ I.jsx(Yee, { filter: D }) : /* @__PURE__ */ I.jsx(One, { filter: D });
38846
38846
  function E() {
38847
- return o == null ? void 0 : o.map((T) => /* @__PURE__ */ I.jsxs(
38847
+ return o == null ? void 0 : o.map((D) => /* @__PURE__ */ I.jsxs(
38848
38848
  "div",
38849
38849
  {
38850
38850
  className: ke(
@@ -38855,18 +38855,18 @@ function Rne() {
38855
38855
  fc,
38856
38856
  {
38857
38857
  className: "my-1",
38858
- text: T.title || T.column,
38859
- onSave: (N) => p({ ...T, title: N }),
38858
+ text: D.title || D.column,
38859
+ onSave: (N) => p({ ...D, title: N }),
38860
38860
  children: /* @__PURE__ */ I.jsxs("div", { className: "group mb-1 flex grow items-center justify-between", children: [
38861
38861
  /* @__PURE__ */ I.jsxs("div", { className: "flex grow items-center gap-2", children: [
38862
- /* @__PURE__ */ I.jsx(Jo, { className: "inline-block text-sm", children: T.title }),
38863
- e && /* @__PURE__ */ I.jsx(oJ, { filter: T })
38862
+ /* @__PURE__ */ I.jsx(Jo, { className: "inline-block text-sm", children: D.title }),
38863
+ e && /* @__PURE__ */ I.jsx(oJ, { filter: D })
38864
38864
  ] }),
38865
38865
  /* @__PURE__ */ I.jsxs("div", { className: "flex items-center gap-2", children: [
38866
38866
  /* @__PURE__ */ I.jsx(
38867
38867
  "div",
38868
38868
  {
38869
- onClick: () => m(T.id),
38869
+ onClick: () => m(D.id),
38870
38870
  className: "invisible cursor-pointer text-xs text-muted-foreground hover:text-foreground hover:underline group-hover:visible",
38871
38871
  children: "Clear"
38872
38872
  }
@@ -38875,7 +38875,7 @@ function Rne() {
38875
38875
  PY,
38876
38876
  {
38877
38877
  onClick: () => {
38878
- m(T.id), g(T.id);
38878
+ m(D.id), g(D.id);
38879
38879
  },
38880
38880
  className: "invisible h-3 w-3 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
38881
38881
  }
@@ -38884,14 +38884,14 @@ function Rne() {
38884
38884
  ] })
38885
38885
  }
38886
38886
  ),
38887
- _(T)
38887
+ _(D)
38888
38888
  ]
38889
38889
  },
38890
- T.id
38890
+ D.id
38891
38891
  ));
38892
38892
  }
38893
38893
  function C() {
38894
- return i == null ? void 0 : i.map((T) => /* @__PURE__ */ I.jsx(
38894
+ return i == null ? void 0 : i.map((D) => /* @__PURE__ */ I.jsx(
38895
38895
  "div",
38896
38896
  {
38897
38897
  role: "dashboard-frame-container",
@@ -38900,9 +38900,9 @@ function Rne() {
38900
38900
  // To display resize handles on hovering the card,
38901
38901
  t == null ? void 0 : t.dashboardCardContainer
38902
38902
  ),
38903
- children: /* @__PURE__ */ I.jsx(sX, { frame: T })
38903
+ children: /* @__PURE__ */ I.jsx(sX, { frame: D })
38904
38904
  },
38905
- T.id
38905
+ D.id
38906
38906
  ));
38907
38907
  }
38908
38908
  return (
@@ -40008,12 +40008,12 @@ async function HM(...e) {
40008
40008
  if (e.length < 3)
40009
40009
  return E();
40010
40010
  let C = r, P;
40011
- const D = Ty();
40011
+ const T = Ty();
40012
40012
  x[p] = [
40013
- D,
40013
+ T,
40014
40014
  0
40015
40015
  ];
40016
- const M = !kt(l), T = m(), N = T.data, F = T._c, B = kt(F) ? N : F;
40016
+ const M = !kt(l), D = m(), N = D.data, F = D._c, B = kt(F) ? N : F;
40017
40017
  if (M && (l = ei(l) ? l(B, N) : l, b({
40018
40018
  data: l,
40019
40019
  _c: B
@@ -40026,7 +40026,7 @@ async function HM(...e) {
40026
40026
  if (C && Gne(C))
40027
40027
  if (C = await C.catch((q) => {
40028
40028
  P = q;
40029
- }), D !== x[p][0]) {
40029
+ }), T !== x[p][0]) {
40030
40030
  if (P)
40031
40031
  throw P;
40032
40032
  return C;
@@ -40185,7 +40185,7 @@ const pP = Ee.use || ((e) => {
40185
40185
  }), Nb = {
40186
40186
  dedupe: !0
40187
40187
  }, wre = (e, t, n) => {
40188
- const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: g } = n, [p, m, b, y] = Ii.get(r), [x, w] = V1(e), _ = se(!1), E = se(!1), C = se(x), P = se(t), D = se(n), M = () => D.current, T = () => M().isVisible() && M().isOnline(), [N, F, B, q] = zM(r, x), G = se({}).current, j = kt(s) ? n.fallback[x] : s, ee = (W, be) => {
40188
+ const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: g } = n, [p, m, b, y] = Ii.get(r), [x, w] = V1(e), _ = se(!1), E = se(!1), C = se(x), P = se(t), T = se(n), M = () => T.current, D = () => M().isVisible() && M().isOnline(), [N, F, B, q] = zM(r, x), G = se({}).current, j = kt(s) ? n.fallback[x] : s, ee = (W, be) => {
40189
40189
  for (const Oe in G) {
40190
40190
  const Me = Oe;
40191
40191
  if (Me === "data") {
@@ -40262,7 +40262,7 @@ const pP = Ee.use || ((e) => {
40262
40262
  } catch (pn) {
40263
40263
  Bt();
40264
40264
  const ce = M(), { shouldRetryOnError: $e } = ce;
40265
- ce.isPaused() || (nt.error = pn, Ue && Ve() && (ce.onError(pn, x, ce), ($e === !0 || ei($e) && $e(pn)) && (!M().revalidateOnFocus || !M().revalidateOnReconnect || T()) && ce.onErrorRetry(pn, x, ce, (He) => {
40265
+ ce.isPaused() || (nt.error = pn, Ue && Ve() && (ce.onError(pn, x, ce), ($e === !0 || ei($e) && $e(pn)) && (!M().revalidateOnFocus || !M().revalidateOnReconnect || D()) && ce.onErrorRetry(pn, x, ce, (He) => {
40266
40266
  const Je = p[x];
40267
40267
  Je && Je[0] && Je[0](wu.ERROR_REVALIDATE_EVENT, He);
40268
40268
  }, {
@@ -40294,7 +40294,7 @@ const pP = Ee.use || ((e) => {
40294
40294
  []
40295
40295
  );
40296
40296
  if (Ab(() => {
40297
- P.current = t, D.current = n, kt(H) || (ue.current = H);
40297
+ P.current = t, T.current = n, kt(H) || (ue.current = H);
40298
40298
  }), Ab(() => {
40299
40299
  if (!x)
40300
40300
  return;
@@ -40303,9 +40303,9 @@ const pP = Ee.use || ((e) => {
40303
40303
  const Me = xre(x, p, (Ae, Qe = {}) => {
40304
40304
  if (Ae == wu.FOCUS_EVENT) {
40305
40305
  const Ue = Date.now();
40306
- M().revalidateOnFocus && Ue > be && T() && (be = Ue + M().focusThrottleInterval, W());
40306
+ M().revalidateOnFocus && Ue > be && D() && (be = Ue + M().focusThrottleInterval, W());
40307
40307
  } else if (Ae == wu.RECONNECT_EVENT)
40308
- M().revalidateOnReconnect && T() && W();
40308
+ M().revalidateOnReconnect && D() && W();
40309
40309
  else {
40310
40310
  if (Ae == wu.MUTATE_EVENT)
40311
40311
  return ie();
@@ -40340,7 +40340,7 @@ const pP = Ee.use || ((e) => {
40340
40340
  ]), P6(ve), i && kt(ne) && x) {
40341
40341
  if (!dP && Ed)
40342
40342
  throw new Error("Fallback data is required when using suspense in SSR.");
40343
- P.current = t, D.current = n, E.current = !1;
40343
+ P.current = t, T.current = n, E.current = !1;
40344
40344
  const W = y[x];
40345
40345
  if (!kt(W)) {
40346
40346
  const be = we(W);
@@ -40377,9 +40377,9 @@ var _re = async (e, t, n, r, o, i, s, a, l, c, u, f, g, p, m, b, y) => {
40377
40377
  role: E,
40378
40378
  content: C,
40379
40379
  experimental_attachments: P,
40380
- name: D,
40380
+ name: T,
40381
40381
  data: M,
40382
- annotations: T,
40382
+ annotations: D,
40383
40383
  toolInvocations: N,
40384
40384
  function_call: F,
40385
40385
  tool_calls: B,
@@ -40390,9 +40390,9 @@ var _re = async (e, t, n, r, o, i, s, a, l, c, u, f, g, p, m, b, y) => {
40390
40390
  ...P !== void 0 && {
40391
40391
  experimental_attachments: P
40392
40392
  },
40393
- ...D !== void 0 && { name: D },
40393
+ ...T !== void 0 && { name: T },
40394
40394
  ...M !== void 0 && { data: M },
40395
- ...T !== void 0 && { annotations: T },
40395
+ ...D !== void 0 && { annotations: D },
40396
40396
  ...N !== void 0 && { toolInvocations: N },
40397
40397
  // outdated function/tool call handling (TODO deprecate):
40398
40398
  tool_call_id: q,
@@ -40470,14 +40470,14 @@ function Sre({
40470
40470
  keepLastMessageOnError: P = !1
40471
40471
  } = {}) {
40472
40472
  g && (p ?? (p = g === "text" ? "text" : void 0));
40473
- const D = R6(), M = t ?? D, T = typeof e == "string" ? [e, M] : M, [N] = Pe([]), { data: F, mutate: B } = qh(
40474
- [T, "messages"],
40473
+ const T = R6(), M = t ?? T, D = typeof e == "string" ? [e, M] : M, [N] = Pe([]), { data: F, mutate: B } = qh(
40474
+ [D, "messages"],
40475
40475
  null,
40476
40476
  { fallbackData: n ?? N }
40477
40477
  ), { data: q = !1, mutate: G } = qh(
40478
- [T, "loading"],
40478
+ [D, "loading"],
40479
40479
  null
40480
- ), { data: j, mutate: ee } = qh([T, "streamData"], null), { data: Y = void 0, mutate: X } = qh([T, "error"], null), re = se(F || []);
40480
+ ), { data: j, mutate: ee } = qh([D, "streamData"], null), { data: Y = void 0, mutate: X } = qh([D, "error"], null), re = se(F || []);
40481
40481
  _e(() => {
40482
40482
  re.current = F || [];
40483
40483
  }, [F]);
@@ -40756,7 +40756,7 @@ function Ere(e, t) {
40756
40756
  }, e);
40757
40757
  }
40758
40758
  const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PURE__ */ pe((e, t) => {
40759
- const { __scopeScrollArea: n, type: r = "hover", dir: o, scrollHideDelay: i = 600, ...s } = e, [a, l] = Pe(null), [c, u] = Pe(null), [f, g] = Pe(null), [p, m] = Pe(null), [b, y] = Pe(null), [x, w] = Pe(0), [_, E] = Pe(0), [C, P] = Pe(!1), [D, M] = Pe(!1), T = ft(
40759
+ const { __scopeScrollArea: n, type: r = "hover", dir: o, scrollHideDelay: i = 600, ...s } = e, [a, l] = Pe(null), [c, u] = Pe(null), [f, g] = Pe(null), [p, m] = Pe(null), [b, y] = Pe(null), [x, w] = Pe(0), [_, E] = Pe(0), [C, P] = Pe(!1), [T, M] = Pe(!1), D = ft(
40760
40760
  t,
40761
40761
  (F) => l(F)
40762
40762
  ), N = Ka(o);
@@ -40776,14 +40776,14 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
40776
40776
  onScrollbarXEnabledChange: P,
40777
40777
  scrollbarY: b,
40778
40778
  onScrollbarYChange: y,
40779
- scrollbarYEnabled: D,
40779
+ scrollbarYEnabled: T,
40780
40780
  onScrollbarYEnabledChange: M,
40781
40781
  onCornerWidthChange: w,
40782
40782
  onCornerHeightChange: E
40783
40783
  }, /* @__PURE__ */ z(Xe.div, ae({
40784
40784
  dir: N
40785
40785
  }, s, {
40786
- ref: T,
40786
+ ref: D,
40787
40787
  style: {
40788
40788
  position: "relative",
40789
40789
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -41081,11 +41081,11 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
41081
41081
  }), [Are, XM] = GM(Yi), QM = /* @__PURE__ */ pe((e, t) => {
41082
41082
  const { __scopeScrollArea: n, sizes: r, hasThumb: o, onThumbChange: i, onThumbPointerUp: s, onThumbPointerDown: a, onThumbPositionChange: l, onDragScroll: c, onWheelScroll: u, onResize: f, ...g } = e, p = _o(Yi, n), [m, b] = Pe(null), y = ft(
41083
41083
  t,
41084
- (T) => b(T)
41085
- ), x = se(null), w = se(""), _ = p.viewport, E = r.content - r.viewport, C = kn(u), P = kn(l), D = nm(f, 10);
41086
- function M(T) {
41084
+ (D) => b(D)
41085
+ ), x = se(null), w = se(""), _ = p.viewport, E = r.content - r.viewport, C = kn(u), P = kn(l), T = nm(f, 10);
41086
+ function M(D) {
41087
41087
  if (x.current) {
41088
- const N = T.clientX - x.current.left, F = T.clientY - x.current.top;
41088
+ const N = D.clientX - x.current.left, F = D.clientY - x.current.top;
41089
41089
  c({
41090
41090
  x: N,
41091
41091
  y: F
@@ -41093,13 +41093,13 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
41093
41093
  }
41094
41094
  }
41095
41095
  return _e(() => {
41096
- const T = (N) => {
41096
+ const D = (N) => {
41097
41097
  const F = N.target;
41098
41098
  (m == null ? void 0 : m.contains(F)) && C(N, E);
41099
41099
  };
41100
- return document.addEventListener("wheel", T, {
41100
+ return document.addEventListener("wheel", D, {
41101
41101
  passive: !1
41102
- }), () => document.removeEventListener("wheel", T, {
41102
+ }), () => document.removeEventListener("wheel", D, {
41103
41103
  passive: !1
41104
41104
  });
41105
41105
  }, [
@@ -41110,7 +41110,7 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
41110
41110
  ]), _e(P, [
41111
41111
  r,
41112
41112
  P
41113
- ]), Sc(m, D), Sc(p.content, D), /* @__PURE__ */ z(Are, {
41113
+ ]), Sc(m, T), Sc(p.content, T), /* @__PURE__ */ z(Are, {
41114
41114
  scope: n,
41115
41115
  scrollbar: m,
41116
41116
  hasThumb: o,
@@ -41124,13 +41124,13 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
41124
41124
  position: "absolute",
41125
41125
  ...g.style
41126
41126
  },
41127
- onPointerDown: De(e.onPointerDown, (T) => {
41128
- T.button === 0 && (T.target.setPointerCapture(T.pointerId), x.current = m.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), M(T));
41127
+ onPointerDown: De(e.onPointerDown, (D) => {
41128
+ D.button === 0 && (D.target.setPointerCapture(D.pointerId), x.current = m.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), M(D));
41129
41129
  }),
41130
41130
  onPointerMove: De(e.onPointerMove, M),
41131
- onPointerUp: De(e.onPointerUp, (T) => {
41132
- const N = T.target;
41133
- N.hasPointerCapture(T.pointerId) && N.releasePointerCapture(T.pointerId), document.body.style.webkitUserSelect = w.current, p.viewport && (p.viewport.style.scrollBehavior = ""), x.current = null;
41131
+ onPointerUp: De(e.onPointerUp, (D) => {
41132
+ const N = D.target;
41133
+ N.hasPointerCapture(D.pointerId) && N.releasePointerCapture(D.pointerId), document.body.style.webkitUserSelect = w.current, p.viewport && (p.viewport.style.scrollBehavior = ""), x.current = null;
41134
41134
  })
41135
41135
  })));
41136
41136
  }), My = "ScrollAreaThumb", Ire = /* @__PURE__ */ pe((e, t) => {
@@ -43380,15 +43380,15 @@ function pie(e) {
43380
43380
  break;
43381
43381
  }
43382
43382
  x(r);
43383
- let D = E;
43384
- for (; D < t.events.length; )
43385
- t.events[D][1].end = Object.assign({}, P), D++;
43383
+ let T = E;
43384
+ for (; T < t.events.length; )
43385
+ t.events[T][1].end = Object.assign({}, P), T++;
43386
43386
  return ui(
43387
43387
  t.events,
43388
43388
  C + 1,
43389
43389
  0,
43390
43390
  t.events.slice(E)
43391
- ), t.events.length = D, c(_);
43391
+ ), t.events.length = T, c(_);
43392
43392
  }
43393
43393
  return a(_);
43394
43394
  }
@@ -43452,23 +43452,23 @@ function pie(e) {
43452
43452
  o.events[P][1].end.offset > s)
43453
43453
  )
43454
43454
  return;
43455
- const D = t.events.length;
43456
- let M = D, T, N;
43455
+ const T = t.events.length;
43456
+ let M = T, D, N;
43457
43457
  for (; M--; )
43458
43458
  if (t.events[M][0] === "exit" && t.events[M][1].type === "chunkFlow") {
43459
- if (T) {
43459
+ if (D) {
43460
43460
  N = t.events[M][1].end;
43461
43461
  break;
43462
43462
  }
43463
- T = !0;
43463
+ D = !0;
43464
43464
  }
43465
- for (x(r), P = D; P < t.events.length; )
43465
+ for (x(r), P = T; P < t.events.length; )
43466
43466
  t.events[P][1].end = Object.assign({}, N), P++;
43467
43467
  ui(
43468
43468
  t.events,
43469
43469
  M + 1,
43470
43470
  0,
43471
- t.events.slice(D)
43471
+ t.events.slice(T)
43472
43472
  ), t.events.length = P;
43473
43473
  }
43474
43474
  }
@@ -43738,8 +43738,8 @@ function Oie(e, t, n) {
43738
43738
  return c(P);
43739
43739
  }
43740
43740
  function c(P) {
43741
- const D = r.events[r.events.length - 1];
43742
- return i = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, a = P, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(P);
43741
+ const T = r.events[r.events.length - 1];
43742
+ return i = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, a = P, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(P);
43743
43743
  }
43744
43744
  function u(P) {
43745
43745
  return P === a ? (s++, e.consume(P), u) : s < 3 ? n(P) : (e.exit("codeFencedFenceSequence"), Nt(P) ? Qt(e, f, "whitespace")(P) : f(P));
@@ -43783,8 +43783,8 @@ function Oie(e, t, n) {
43783
43783
  function E(P) {
43784
43784
  return e.exit("codeFenced"), t(P);
43785
43785
  }
43786
- function C(P, D, M) {
43787
- let T = 0;
43786
+ function C(P, T, M) {
43787
+ let D = 0;
43788
43788
  return N;
43789
43789
  function N(j) {
43790
43790
  return P.enter("lineEnding"), P.consume(j), P.exit("lineEnding"), F;
@@ -43801,10 +43801,10 @@ function Oie(e, t, n) {
43801
43801
  return j === a ? (P.enter("codeFencedFenceSequence"), q(j)) : M(j);
43802
43802
  }
43803
43803
  function q(j) {
43804
- return j === a ? (T++, P.consume(j), q) : T >= s ? (P.exit("codeFencedFenceSequence"), Nt(j) ? Qt(P, G, "whitespace")(j) : G(j)) : M(j);
43804
+ return j === a ? (D++, P.consume(j), q) : D >= s ? (P.exit("codeFencedFenceSequence"), Nt(j) ? Qt(P, G, "whitespace")(j) : G(j)) : M(j);
43805
43805
  }
43806
43806
  function G(j) {
43807
- return j === null || ot(j) ? (P.exit("codeFencedFence"), D(j)) : M(j);
43807
+ return j === null || ot(j) ? (P.exit("codeFencedFence"), T(j)) : M(j);
43808
43808
  }
43809
43809
  }
43810
43810
  }
@@ -44336,15 +44336,15 @@ function tse(e, t, n) {
44336
44336
  return A === 61 ? (e.consume(A), P) : Nt(A) ? (e.consume(A), C) : _(A);
44337
44337
  }
44338
44338
  function P(A) {
44339
- return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A, D) : Nt(A) ? (e.consume(A), P) : M(A);
44339
+ return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A, T) : Nt(A) ? (e.consume(A), P) : M(A);
44340
44340
  }
44341
- function D(A) {
44342
- return A === l ? (e.consume(A), l = null, T) : A === null || ot(A) ? n(A) : (e.consume(A), D);
44341
+ function T(A) {
44342
+ return A === l ? (e.consume(A), l = null, D) : A === null || ot(A) ? n(A) : (e.consume(A), T);
44343
44343
  }
44344
44344
  function M(A) {
44345
44345
  return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || $r(A) ? C(A) : (e.consume(A), M);
44346
44346
  }
44347
- function T(A) {
44347
+ function D(A) {
44348
44348
  return A === 47 || A === 62 || Nt(A) ? _(A) : n(A);
44349
44349
  }
44350
44350
  function N(A) {
@@ -44470,22 +44470,22 @@ function ise(e, t, n) {
44470
44470
  return ti(R) ? (e.consume(R), P) : n(R);
44471
44471
  }
44472
44472
  function P(R) {
44473
- return R === 45 || Yr(R) ? (e.consume(R), P) : D(R);
44473
+ return R === 45 || Yr(R) ? (e.consume(R), P) : T(R);
44474
44474
  }
44475
- function D(R) {
44476
- return ot(R) ? (s = D, Y(R)) : Nt(R) ? (e.consume(R), D) : ee(R);
44475
+ function T(R) {
44476
+ return ot(R) ? (s = T, Y(R)) : Nt(R) ? (e.consume(R), T) : ee(R);
44477
44477
  }
44478
44478
  function M(R) {
44479
- return R === 45 || Yr(R) ? (e.consume(R), M) : R === 47 || R === 62 || $r(R) ? T(R) : n(R);
44479
+ return R === 45 || Yr(R) ? (e.consume(R), M) : R === 47 || R === 62 || $r(R) ? D(R) : n(R);
44480
44480
  }
44481
- function T(R) {
44482
- return R === 47 ? (e.consume(R), ee) : R === 58 || R === 95 || ti(R) ? (e.consume(R), N) : ot(R) ? (s = T, Y(R)) : Nt(R) ? (e.consume(R), T) : ee(R);
44481
+ function D(R) {
44482
+ return R === 47 ? (e.consume(R), ee) : R === 58 || R === 95 || ti(R) ? (e.consume(R), N) : ot(R) ? (s = D, Y(R)) : Nt(R) ? (e.consume(R), D) : ee(R);
44483
44483
  }
44484
44484
  function N(R) {
44485
44485
  return R === 45 || R === 46 || R === 58 || R === 95 || Yr(R) ? (e.consume(R), N) : F(R);
44486
44486
  }
44487
44487
  function F(R) {
44488
- return R === 61 ? (e.consume(R), B) : ot(R) ? (s = F, Y(R)) : Nt(R) ? (e.consume(R), F) : T(R);
44488
+ return R === 61 ? (e.consume(R), B) : ot(R) ? (s = F, Y(R)) : Nt(R) ? (e.consume(R), F) : D(R);
44489
44489
  }
44490
44490
  function B(R) {
44491
44491
  return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), o = R, q) : ot(R) ? (s = B, Y(R)) : Nt(R) ? (e.consume(R), B) : (e.consume(R), G);
@@ -44494,10 +44494,10 @@ function ise(e, t, n) {
44494
44494
  return R === o ? (e.consume(R), o = void 0, j) : R === null ? n(R) : ot(R) ? (s = q, Y(R)) : (e.consume(R), q);
44495
44495
  }
44496
44496
  function G(R) {
44497
- return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 96 ? n(R) : R === 47 || R === 62 || $r(R) ? T(R) : (e.consume(R), G);
44497
+ return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 96 ? n(R) : R === 47 || R === 62 || $r(R) ? D(R) : (e.consume(R), G);
44498
44498
  }
44499
44499
  function j(R) {
44500
- return R === 47 || R === 62 || $r(R) ? T(R) : n(R);
44500
+ return R === 47 || R === 62 || $r(R) ? D(R) : n(R);
44501
44501
  }
44502
44502
  function ee(R) {
44503
44503
  return R === 62 ? (e.consume(R), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(R);
@@ -45070,9 +45070,9 @@ function Nse(e, t, n) {
45070
45070
  consume: w,
45071
45071
  enter: _,
45072
45072
  exit: E,
45073
- attempt: D(C),
45074
- check: D(P),
45075
- interrupt: D(P, {
45073
+ attempt: T(C),
45074
+ check: T(P),
45075
+ interrupt: T(P, {
45076
45076
  interrupt: !0
45077
45077
  })
45078
45078
  }, c = {
@@ -45142,7 +45142,7 @@ function Nse(e, t, n) {
45142
45142
  function P(F, B) {
45143
45143
  B.restore();
45144
45144
  }
45145
- function D(F, B) {
45145
+ function T(F, B) {
45146
45146
  return q;
45147
45147
  function q(G, j, ee) {
45148
45148
  let Y, X, re, R;
@@ -45168,7 +45168,7 @@ function Nse(e, t, n) {
45168
45168
  function A(ge) {
45169
45169
  return fe;
45170
45170
  function fe(oe) {
45171
- return R = T(), re = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? ve() : ge.tokenize.call(
45171
+ return R = D(), re = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? ve() : ge.tokenize.call(
45172
45172
  // If we do have fields, create an object w/ `context` as its
45173
45173
  // prototype.
45174
45174
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -45195,7 +45195,7 @@ function Nse(e, t, n) {
45195
45195
  F.resolve(c.events.slice(B), c)
45196
45196
  ), F.resolveTo && (c.events = F.resolveTo(c.events, c));
45197
45197
  }
45198
- function T() {
45198
+ function D() {
45199
45199
  const F = m(), B = c.previous, q = c.currentConstruct, G = c.events.length, j = Array.from(a);
45200
45200
  return {
45201
45201
  restore: ee,
@@ -45420,20 +45420,20 @@ function nae(e) {
45420
45420
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
45421
45421
  enter: {
45422
45422
  autolink: i(Ue),
45423
- autolinkProtocol: T,
45424
- autolinkEmail: T,
45423
+ autolinkProtocol: D,
45424
+ autolinkEmail: D,
45425
45425
  atxHeading: i(Oe),
45426
45426
  blockQuote: i(Z),
45427
- characterEscape: T,
45428
- characterReference: T,
45427
+ characterEscape: D,
45428
+ characterReference: D,
45429
45429
  codeFenced: i(ie),
45430
45430
  codeFencedFenceInfo: s,
45431
45431
  codeFencedFenceMeta: s,
45432
45432
  codeIndented: i(ie, s),
45433
45433
  codeText: i(we, s),
45434
- codeTextData: T,
45435
- data: T,
45436
- codeFlowValue: T,
45434
+ codeTextData: D,
45435
+ data: D,
45436
+ codeFlowValue: D,
45437
45437
  definition: i(W),
45438
45438
  definitionDestinationString: s,
45439
45439
  definitionLabelString: s,
@@ -45442,9 +45442,9 @@ function nae(e) {
45442
45442
  hardBreakEscape: i(Me),
45443
45443
  hardBreakTrailing: i(Me),
45444
45444
  htmlFlow: i(Ae, s),
45445
- htmlFlowData: T,
45445
+ htmlFlowData: D,
45446
45446
  htmlText: i(Ae, s),
45447
- htmlTextData: T,
45447
+ htmlTextData: D,
45448
45448
  image: i(Qe),
45449
45449
  label: s,
45450
45450
  link: i(Ue),
@@ -45506,7 +45506,7 @@ function nae(e) {
45506
45506
  resourceTitleString: H,
45507
45507
  resource: ne,
45508
45508
  setextHeading: l(M),
45509
- setextHeadingLineSequence: D,
45509
+ setextHeadingLineSequence: T,
45510
45510
  setextHeadingText: P,
45511
45511
  strong: l(),
45512
45512
  thematicBreak: l()
@@ -45722,14 +45722,14 @@ function nae(e) {
45722
45722
  function P() {
45723
45723
  this.data.setextHeadingSlurpLineEnding = !0;
45724
45724
  }
45725
- function D(ce) {
45725
+ function T(ce) {
45726
45726
  const $e = this.stack[this.stack.length - 1];
45727
45727
  $e.depth = this.sliceSerialize(ce).codePointAt(0) === 61 ? 1 : 2;
45728
45728
  }
45729
45729
  function M() {
45730
45730
  this.data.setextHeadingSlurpLineEnding = void 0;
45731
45731
  }
45732
- function T(ce) {
45732
+ function D(ce) {
45733
45733
  const He = this.stack[this.stack.length - 1].children;
45734
45734
  let Je = He[He.length - 1];
45735
45735
  (!Je || Je.type !== "text") && (Je = Ut(), Je.position = {
@@ -45749,7 +45749,7 @@ function nae(e) {
45749
45749
  He.position.end = us(ce.end), this.data.atHardBreak = void 0;
45750
45750
  return;
45751
45751
  }
45752
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes($e.type) && (T.call(this, ce), N.call(this, ce));
45752
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes($e.type) && (D.call(this, ce), N.call(this, ce));
45753
45753
  }
45754
45754
  function B() {
45755
45755
  this.data.atHardBreak = !0;
@@ -48125,8 +48125,8 @@ function Sle(e) {
48125
48125
  let C;
48126
48126
  for (C in Fb)
48127
48127
  if (Object.hasOwn(Fb, C) && Object.hasOwn(w.properties, C)) {
48128
- const P = w.properties[C], D = Fb[C];
48129
- (D === null || D.includes(w.tagName)) && (w.properties[C] = g(String(P || ""), C, w));
48128
+ const P = w.properties[C], T = Fb[C];
48129
+ (T === null || T.includes(w.tagName)) && (w.properties[C] = g(String(P || ""), C, w));
48130
48130
  }
48131
48131
  }
48132
48132
  if (w.type === "element") {
@@ -48147,10 +48147,10 @@ function Cle(e) {
48147
48147
  }
48148
48148
  function Ele() {
48149
48149
  const e = se(null), [t, n] = Pe(""), [r, o] = Pe(!1), i = Ne(
48150
- (T) => T.dashboard.aiScopeTables
48150
+ (D) => D.dashboard.aiScopeTables
48151
48151
  );
48152
48152
  xD();
48153
- const s = Ne((T) => T.selectedSheetId), { addFrame: a, setSelectedFrameId: l, setIsDashboardEditing: c } = zs(), { authToken: u } = Tc(), f = i$(), {
48153
+ const s = Ne((D) => D.selectedSheetId), { addFrame: a, setSelectedFrameId: l, setIsDashboardEditing: c } = zs(), { authToken: u } = Tc(), f = i$(), {
48154
48154
  messages: g,
48155
48155
  input: p,
48156
48156
  handleInputChange: m,
@@ -48173,16 +48173,16 @@ function Ele() {
48173
48173
  // },
48174
48174
  // ],
48175
48175
  // run client-side tools that are automatically executed:
48176
- async onToolCall({ toolCall: T }) {
48177
- if (E(T.toolName), console.log("onToolCall", T, g), T.toolName === "getLocation") {
48176
+ async onToolCall({ toolCall: D }) {
48177
+ if (E(D.toolName), console.log("onToolCall", D, g), D.toolName === "getLocation") {
48178
48178
  const N = ["New York", "Los Angeles", "Chicago", "San Francisco"];
48179
48179
  return N[Math.floor(Math.random() * N.length)];
48180
48180
  }
48181
- if (T.toolName === "getTables")
48181
+ if (D.toolName === "getTables")
48182
48182
  return JSON.stringify(i || []);
48183
- if (T.toolName === "getData") {
48184
- console.log(T.args);
48185
- const N = T.args;
48183
+ if (D.toolName === "getData") {
48184
+ console.log(D.args);
48185
+ const N = D.args;
48186
48186
  if (!(N != null && N.sql) || !(N != null && N.connectionId))
48187
48187
  return "Please provide sql, connectionId and table";
48188
48188
  const F = await f.fetchQuery({
@@ -48199,27 +48199,27 @@ function Ele() {
48199
48199
  return n("Summarizing"), JSON.stringify(F);
48200
48200
  }
48201
48201
  },
48202
- onFinish(T, N) {
48203
- console.log("onFinish", T, N), T.content && n("");
48202
+ onFinish(D, N) {
48203
+ console.log("onFinish", D, N), D.content && n("");
48204
48204
  }
48205
48205
  }), _ = () => {
48206
- var T;
48207
- (T = e.current) == null || T.scrollIntoView({ behavior: "smooth" });
48206
+ var D;
48207
+ (D = e.current) == null || D.scrollIntoView({ behavior: "smooth" });
48208
48208
  };
48209
48209
  _e(() => {
48210
48210
  _();
48211
48211
  }, [g]);
48212
- function E(T) {
48213
- T === "getTables" && n("Initializing"), T === "getSchemas" && n("Analyzing"), T === "getData" && n("Fetching");
48212
+ function E(D) {
48213
+ D === "getTables" && n("Initializing"), D === "getSchemas" && n("Analyzing"), D === "getData" && n("Fetching");
48214
48214
  }
48215
- function C(T) {
48216
- const N = T.toolInvocations || [];
48215
+ function C(D) {
48216
+ const N = D.toolInvocations || [];
48217
48217
  return N.length === 0 || N.find(
48218
48218
  (B) => B.toolName === "getData" && "result" in B
48219
48219
  ) ? !0 : r;
48220
48220
  }
48221
- function P(T) {
48222
- return T == null ? void 0 : T.map((N) => {
48221
+ function P(D) {
48222
+ return D == null ? void 0 : D.map((N) => {
48223
48223
  var F;
48224
48224
  return C(N) ? /* @__PURE__ */ I.jsxs(
48225
48225
  "div",
@@ -48232,7 +48232,7 @@ function Ele() {
48232
48232
  ] }),
48233
48233
  (F = N.toolInvocations) == null ? void 0 : F.map((B) => {
48234
48234
  const q = B.toolCallId;
48235
- return "result" in B ? /* @__PURE__ */ I.jsx("div", { children: D(B) }, q) : /* @__PURE__ */ I.jsxs("div", { children: [
48235
+ return "result" in B ? /* @__PURE__ */ I.jsx("div", { children: T(B) }, q) : /* @__PURE__ */ I.jsxs("div", { children: [
48236
48236
  "Calling ",
48237
48237
  B.toolName,
48238
48238
  "..."
@@ -48244,22 +48244,22 @@ function Ele() {
48244
48244
  ) : null;
48245
48245
  });
48246
48246
  }
48247
- function D(T) {
48248
- if ("result" in T) {
48247
+ function T(D) {
48248
+ if ("result" in D) {
48249
48249
  let N;
48250
48250
  try {
48251
- const F = JSON.parse(T.result);
48252
- if (N = /* @__PURE__ */ I.jsx("pre", { className: "whitespace-normal text-xs", children: JSON.stringify(F, null, 2) }), T.toolName === "getData") {
48253
- console.log(T);
48251
+ const F = JSON.parse(D.result);
48252
+ if (N = /* @__PURE__ */ I.jsx("pre", { className: "whitespace-normal text-xs", children: JSON.stringify(F, null, 2) }), D.toolName === "getData") {
48253
+ console.log(D);
48254
48254
  const B = YD({
48255
- cardType: T.args.chartType,
48255
+ cardType: D.args.chartType,
48256
48256
  data: F.records
48257
48257
  });
48258
48258
  return /* @__PURE__ */ I.jsxs("div", { className: "space-y-2", children: [
48259
48259
  r && /* @__PURE__ */ I.jsxs("div", { children: [
48260
48260
  /* @__PURE__ */ I.jsx("span", { className: "font-semibold text-blue-700", children: "Tool call" }),
48261
48261
  " ",
48262
- `${T.toolName}: `,
48262
+ `${D.toolName}: `,
48263
48263
  N
48264
48264
  ] }),
48265
48265
  /* @__PURE__ */ I.jsxs("div", { className: "flex h-[350px] w-[99%] grow flex-col", children: [
@@ -48268,9 +48268,9 @@ function Ele() {
48268
48268
  oi,
48269
48269
  {
48270
48270
  onClick: () => {
48271
- const q = T.args.chartTitle, G = T.args.connectionId;
48271
+ const q = D.args.chartTitle, G = D.args.connectionId;
48272
48272
  M(
48273
- F.sql,
48273
+ D.args.sql,
48274
48274
  F.records,
48275
48275
  B,
48276
48276
  q,
@@ -48287,18 +48287,18 @@ function Ele() {
48287
48287
  ] });
48288
48288
  }
48289
48289
  } catch {
48290
- N = /* @__PURE__ */ I.jsx("span", { children: T.result });
48290
+ N = /* @__PURE__ */ I.jsx("span", { children: D.result });
48291
48291
  }
48292
48292
  return /* @__PURE__ */ I.jsxs("div", { children: [
48293
48293
  /* @__PURE__ */ I.jsx("span", { className: "font-semibold text-blue-700", children: "Tool call" }),
48294
48294
  " ",
48295
- `${T.toolName}: `,
48295
+ `${D.toolName}: `,
48296
48296
  N
48297
48297
  ] });
48298
48298
  }
48299
- return `Calling ${T.toolName}...`;
48299
+ return `Calling ${D.toolName}...`;
48300
48300
  }
48301
- function M(T, N, F, B, q) {
48301
+ function M(D, N, F, B, q) {
48302
48302
  if (!s)
48303
48303
  return;
48304
48304
  const G = {
@@ -48315,7 +48315,7 @@ function Ele() {
48315
48315
  },
48316
48316
  type: F.type,
48317
48317
  cfg: F,
48318
- sql: T,
48318
+ sql: D,
48319
48319
  data: N,
48320
48320
  connectionId: q
48321
48321
  }, j = {
@@ -48606,7 +48606,7 @@ const Vy = [
48606
48606
  onDismiss: () => n.onOpenChange(!1)
48607
48607
  }));
48608
48608
  }), aw = /* @__PURE__ */ pe((e, t) => {
48609
- const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: g, onDismiss: p, disableOutsideScroll: m, ...b } = e, y = il(No, n), x = pf(No, n), w = iw(n), _ = Yk(n), E = Ale(n), [C, P] = Pe(null), D = se(null), M = ft(t, D, y.onContentChange), T = se(0), N = se(""), F = se(0), B = se(null), q = se("right"), G = se(0), j = m ? Ug : dr, ee = m ? {
48609
+ const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: g, onDismiss: p, disableOutsideScroll: m, ...b } = e, y = il(No, n), x = pf(No, n), w = iw(n), _ = Yk(n), E = Ale(n), [C, P] = Pe(null), T = se(null), M = ft(t, T, y.onContentChange), D = se(0), N = se(""), F = se(0), B = se(null), q = se("right"), G = se(0), j = m ? Ug : dr, ee = m ? {
48610
48610
  as: Bi,
48611
48611
  allowPinchZoom: !0
48612
48612
  } : void 0, Y = (re) => {
@@ -48621,7 +48621,7 @@ const Vy = [
48621
48621
  (Z) => Z.textValue === fe
48622
48622
  )) === null || H === void 0 ? void 0 : H.ref.current;
48623
48623
  (function Z(ie) {
48624
- N.current = ie, window.clearTimeout(T.current), ie !== "" && (T.current = window.setTimeout(
48624
+ N.current = ie, window.clearTimeout(D.current), ie !== "" && (D.current = window.setTimeout(
48625
48625
  () => Z(""),
48626
48626
  1e3
48627
48627
  ));
@@ -48629,7 +48629,7 @@ const Vy = [
48629
48629
  () => oe.focus()
48630
48630
  );
48631
48631
  };
48632
- _e(() => () => window.clearTimeout(T.current), []), Bg();
48632
+ _e(() => () => window.clearTimeout(D.current), []), Bg();
48633
48633
  const X = Be((re) => {
48634
48634
  var R, H;
48635
48635
  return q.current === ((R = B.current) === null || R === void 0 ? void 0 : R.side) && dce(re, (H = B.current) === null || H === void 0 ? void 0 : H.area);
@@ -48644,7 +48644,7 @@ const Vy = [
48644
48644
  ]),
48645
48645
  onItemLeave: Be((re) => {
48646
48646
  var R;
48647
- X(re) || ((R = D.current) === null || R === void 0 || R.focus(), P(null));
48647
+ X(re) || ((R = T.current) === null || R === void 0 || R.focus(), P(null));
48648
48648
  }, [
48649
48649
  X
48650
48650
  ]),
@@ -48662,7 +48662,7 @@ const Vy = [
48662
48662
  trapped: o,
48663
48663
  onMountAutoFocus: De(i, (re) => {
48664
48664
  var R;
48665
- re.preventDefault(), (R = D.current) === null || R === void 0 || R.focus();
48665
+ re.preventDefault(), (R = T.current) === null || R === void 0 || R.focus();
48666
48666
  }),
48667
48667
  onUnmountAutoFocus: s
48668
48668
  }, /* @__PURE__ */ z(Rc, {
@@ -48699,7 +48699,7 @@ const Vy = [
48699
48699
  onKeyDown: De(b.onKeyDown, (re) => {
48700
48700
  const H = re.target.closest("[data-radix-menu-content]") === re.currentTarget, ne = re.ctrlKey || re.altKey || re.metaKey, A = re.key.length === 1;
48701
48701
  H && (re.key === "Tab" && re.preventDefault(), !ne && A && Y(re.key));
48702
- const ue = D.current;
48702
+ const ue = T.current;
48703
48703
  if (re.target !== ue || !Tle.includes(re.key))
48704
48704
  return;
48705
48705
  re.preventDefault();
@@ -48711,7 +48711,7 @@ const Vy = [
48711
48711
  qk.includes(re.key) && ge.reverse(), ace(ge);
48712
48712
  }),
48713
48713
  onBlur: De(e.onBlur, (re) => {
48714
- re.currentTarget.contains(re.target) || (window.clearTimeout(T.current), N.current = "");
48714
+ re.currentTarget.contains(re.target) || (window.clearTimeout(D.current), N.current = "");
48715
48715
  }),
48716
48716
  onPointerMove: De(e.onPointerMove, Rd((re) => {
48717
48717
  const R = re.target, H = G.current !== re.clientX;
@@ -49862,9 +49862,9 @@ function TA({
49862
49862
  getPanelStyle: E,
49863
49863
  groupId: C,
49864
49864
  isPanelCollapsed: P,
49865
- registerPanel: D,
49865
+ registerPanel: T,
49866
49866
  resizePanel: M,
49867
- unregisterPanel: T
49867
+ unregisterPanel: D
49868
49868
  } = y, N = dw(s), F = yo({
49869
49869
  callbacks: {
49870
49870
  onCollapse: c,
@@ -49892,10 +49892,10 @@ function TA({
49892
49892
  F.current.id = N, F.current.idIsFromProps = s !== void 0, F.current.order = g, q.onCollapse = c, q.onExpand = u, q.onResize = f, G.collapsedSize = n, G.collapsible = r, G.defaultSize = o, G.maxSize = a, G.minSize = l;
49893
49893
  }), Dd(() => {
49894
49894
  const q = F.current;
49895
- return D(q), () => {
49896
- T(q);
49895
+ return T(q), () => {
49896
+ D(q);
49897
49897
  };
49898
- }, [g, N, D, T]), DA(i, () => ({
49898
+ }, [g, N, T, D]), DA(i, () => ({
49899
49899
  collapse: () => {
49900
49900
  x(F.current);
49901
49901
  },
@@ -50201,14 +50201,14 @@ function Zue({
50201
50201
  minSize: P = 0
50202
50202
  } = w.constraints;
50203
50203
  if (_ != null && C) {
50204
- const D = Du({
50204
+ const T = Du({
50205
50205
  delta: Hr(_, E) ? P - E : E - _,
50206
50206
  layout: r,
50207
50207
  panelConstraints: a.map((M) => M.constraints),
50208
50208
  pivotIndices: AA(n, g),
50209
50209
  trigger: "keyboard"
50210
50210
  });
50211
- r !== D && i(D);
50211
+ r !== T && i(T);
50212
50212
  }
50213
50213
  }
50214
50214
  break;
@@ -50608,7 +50608,7 @@ function WA({
50608
50608
  Qh(ne, ie) || (y(ie), C.current.layout = ie, H && H(ie), Al(A, ie, x.current));
50609
50609
  }
50610
50610
  }
50611
- }, []), D = zr((R) => {
50611
+ }, []), T = zr((R) => {
50612
50612
  const {
50613
50613
  onLayout: H
50614
50614
  } = E.current, {
@@ -50641,7 +50641,7 @@ function WA({
50641
50641
  panelSize: A
50642
50642
  } = Il(ne, R, H);
50643
50643
  return mt(A != null), A;
50644
- }, []), T = zr((R, H) => {
50644
+ }, []), D = zr((R, H) => {
50645
50645
  const {
50646
50646
  panelDataArray: ne
50647
50647
  } = C.current, A = Ll(ne, R);
@@ -50778,9 +50778,9 @@ function WA({
50778
50778
  collapsePanel: P,
50779
50779
  direction: r,
50780
50780
  dragState: p,
50781
- expandPanel: D,
50781
+ expandPanel: T,
50782
50782
  getPanelSize: M,
50783
- getPanelStyle: T,
50783
+ getPanelStyle: D,
50784
50784
  groupId: g,
50785
50785
  isPanelCollapsed: N,
50786
50786
  isPanelExpanded: F,
@@ -50790,7 +50790,7 @@ function WA({
50790
50790
  startDragging: j,
50791
50791
  stopDragging: ee,
50792
50792
  unregisterPanel: Y
50793
- }), [P, p, r, D, M, T, g, N, F, B, q, G, j, ee, Y]), re = {
50793
+ }), [P, p, r, T, M, D, g, N, F, B, q, G, j, ee, Y]), re = {
50794
50794
  display: "flex",
50795
50795
  flexDirection: r === "horizontal" ? "row" : "column",
50796
50796
  height: "100%",
@@ -50897,7 +50897,7 @@ function dde({
50897
50897
  registerResizeHandle: b,
50898
50898
  startDragging: y,
50899
50899
  stopDragging: x
50900
- } = f, w = dw(r), _ = (p == null ? void 0 : p.dragHandleId) === w, [E, C] = tg(!1), [P, D] = tg(null), M = zr(() => {
50900
+ } = f, w = dw(r), _ = (p == null ? void 0 : p.dragHandleId) === w, [E, C] = tg(!1), [P, T] = tg(null), M = zr(() => {
50901
50901
  const N = c.current;
50902
50902
  mt(N), N.blur(), x();
50903
50903
  const {
@@ -50907,10 +50907,10 @@ function dde({
50907
50907
  }, [x]);
50908
50908
  ja(() => {
50909
50909
  if (n)
50910
- D(null);
50910
+ T(null);
50911
50911
  else {
50912
50912
  const N = b(w);
50913
- D(() => N);
50913
+ T(() => N);
50914
50914
  }
50915
50915
  }, [n, w, b]), ja(() => {
50916
50916
  if (n || P == null || !_)
@@ -50930,7 +50930,7 @@ function dde({
50930
50930
  handleId: w,
50931
50931
  resizeHandler: P
50932
50932
  });
50933
- const T = {
50933
+ const D = {
50934
50934
  cursor: jA(g),
50935
50935
  touchAction: "none",
50936
50936
  userSelect: "none"
@@ -50965,7 +50965,7 @@ function dde({
50965
50965
  ref: c,
50966
50966
  role: "separator",
50967
50967
  style: {
50968
- ...T,
50968
+ ...D,
50969
50969
  ...i
50970
50970
  },
50971
50971
  tabIndex: s,
@@ -51402,49 +51402,49 @@ function JA(e, t) {
51402
51402
  return e.Uri.parse(t);
51403
51403
  }
51404
51404
  function ufe({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: s, keepCurrentOriginalModel: a = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: f = {}, height: g = "100%", width: p = "100%", className: m, wrapperProps: b = {}, beforeMount: y = Wu, onMount: x = Wu }) {
51405
- let [w, _] = Pe(!1), [E, C] = Pe(!0), P = se(null), D = se(null), M = se(null), T = se(x), N = se(y), F = se(!1);
51405
+ let [w, _] = Pe(!1), [E, C] = Pe(!0), P = se(null), T = se(null), M = se(null), D = se(x), N = se(y), F = se(!1);
51406
51406
  QA(() => {
51407
51407
  let j = KA.init();
51408
- return j.then((ee) => (D.current = ee) && C(!1)).catch((ee) => (ee == null ? void 0 : ee.type) !== "cancelation" && console.error("Monaco initialization: error:", ee)), () => P.current ? G() : j.cancel();
51408
+ return j.then((ee) => (T.current = ee) && C(!1)).catch((ee) => (ee == null ? void 0 : ee.type) !== "cancelation" && console.error("Monaco initialization: error:", ee)), () => P.current ? G() : j.cancel();
51409
51409
  }), Ur(() => {
51410
- if (P.current && D.current) {
51411
- let j = P.current.getOriginalEditor(), ee = Bl(D.current, e || "", r || n || "text", i || "");
51410
+ if (P.current && T.current) {
51411
+ let j = P.current.getOriginalEditor(), ee = Bl(T.current, e || "", r || n || "text", i || "");
51412
51412
  ee !== j.getModel() && j.setModel(ee);
51413
51413
  }
51414
51414
  }, [i], w), Ur(() => {
51415
- if (P.current && D.current) {
51416
- let j = P.current.getModifiedEditor(), ee = Bl(D.current, t || "", o || n || "text", s || "");
51415
+ if (P.current && T.current) {
51416
+ let j = P.current.getModifiedEditor(), ee = Bl(T.current, t || "", o || n || "text", s || "");
51417
51417
  ee !== j.getModel() && j.setModel(ee);
51418
51418
  }
51419
51419
  }, [s], w), Ur(() => {
51420
51420
  let j = P.current.getModifiedEditor();
51421
- j.getOption(D.current.editor.EditorOption.readOnly) ? j.setValue(t || "") : t !== j.getValue() && (j.executeEdits("", [{ range: j.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), j.pushUndoStop());
51421
+ j.getOption(T.current.editor.EditorOption.readOnly) ? j.setValue(t || "") : t !== j.getValue() && (j.executeEdits("", [{ range: j.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), j.pushUndoStop());
51422
51422
  }, [t], w), Ur(() => {
51423
51423
  var j, ee;
51424
51424
  (ee = (j = P.current) == null ? void 0 : j.getModel()) == null || ee.original.setValue(e || "");
51425
51425
  }, [e], w), Ur(() => {
51426
51426
  let { original: j, modified: ee } = P.current.getModel();
51427
- D.current.editor.setModelLanguage(j, r || n || "text"), D.current.editor.setModelLanguage(ee, o || n || "text");
51427
+ T.current.editor.setModelLanguage(j, r || n || "text"), T.current.editor.setModelLanguage(ee, o || n || "text");
51428
51428
  }, [n, r, o], w), Ur(() => {
51429
51429
  var j;
51430
- (j = D.current) == null || j.editor.setTheme(c);
51430
+ (j = T.current) == null || j.editor.setTheme(c);
51431
51431
  }, [c], w), Ur(() => {
51432
51432
  var j;
51433
51433
  (j = P.current) == null || j.updateOptions(f);
51434
51434
  }, [f], w);
51435
51435
  let B = Be(() => {
51436
51436
  var Y;
51437
- if (!D.current)
51437
+ if (!T.current)
51438
51438
  return;
51439
- N.current(D.current);
51440
- let j = Bl(D.current, e || "", r || n || "text", i || ""), ee = Bl(D.current, t || "", o || n || "text", s || "");
51439
+ N.current(T.current);
51440
+ let j = Bl(T.current, e || "", r || n || "text", i || ""), ee = Bl(T.current, t || "", o || n || "text", s || "");
51441
51441
  (Y = P.current) == null || Y.setModel({ original: j, modified: ee });
51442
51442
  }, [n, t, o, e, r, i, s]), q = Be(() => {
51443
51443
  var j;
51444
- !F.current && M.current && (P.current = D.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...f }), B(), (j = D.current) == null || j.editor.setTheme(c), _(!0), F.current = !0);
51444
+ !F.current && M.current && (P.current = T.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...f }), B(), (j = T.current) == null || j.editor.setTheme(c), _(!0), F.current = !0);
51445
51445
  }, [f, c, B]);
51446
51446
  _e(() => {
51447
- w && T.current(P.current, D.current);
51447
+ w && D.current(P.current, T.current);
51448
51448
  }, [w]), _e(() => {
51449
51449
  !E && !w && q();
51450
51450
  }, [E, w, q]);
@@ -51465,54 +51465,54 @@ function ffe(e) {
51465
51465
  }
51466
51466
  var hfe = ffe, Zh = /* @__PURE__ */ new Map();
51467
51467
  function pfe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: s = "light", line: a, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: f = !0, keepCurrentModel: g = !1, width: p = "100%", height: m = "100%", className: b, wrapperProps: y = {}, beforeMount: x = Wu, onMount: w = Wu, onChange: _, onValidate: E = Wu }) {
51468
- let [C, P] = Pe(!1), [D, M] = Pe(!0), T = se(null), N = se(null), F = se(null), B = se(w), q = se(x), G = se(), j = se(r), ee = hfe(i), Y = se(!1), X = se(!1);
51468
+ let [C, P] = Pe(!1), [T, M] = Pe(!0), D = se(null), N = se(null), F = se(null), B = se(w), q = se(x), G = se(), j = se(r), ee = hfe(i), Y = se(!1), X = se(!1);
51469
51469
  QA(() => {
51470
51470
  let H = KA.init();
51471
- return H.then((ne) => (T.current = ne) && M(!1)).catch((ne) => (ne == null ? void 0 : ne.type) !== "cancelation" && console.error("Monaco initialization: error:", ne)), () => N.current ? R() : H.cancel();
51471
+ return H.then((ne) => (D.current = ne) && M(!1)).catch((ne) => (ne == null ? void 0 : ne.type) !== "cancelation" && console.error("Monaco initialization: error:", ne)), () => N.current ? R() : H.cancel();
51472
51472
  }), Ur(() => {
51473
51473
  var ne, A, ue, ve;
51474
- let H = Bl(T.current, e || r || "", t || o || "", i || n || "");
51474
+ let H = Bl(D.current, e || r || "", t || o || "", i || n || "");
51475
51475
  H !== ((ne = N.current) == null ? void 0 : ne.getModel()) && (f && Zh.set(ee, (A = N.current) == null ? void 0 : A.saveViewState()), (ue = N.current) == null || ue.setModel(H), f && ((ve = N.current) == null || ve.restoreViewState(Zh.get(i))));
51476
51476
  }, [i], C), Ur(() => {
51477
51477
  var H;
51478
51478
  (H = N.current) == null || H.updateOptions(c);
51479
51479
  }, [c], C), Ur(() => {
51480
- !N.current || r === void 0 || (N.current.getOption(T.current.editor.EditorOption.readOnly) ? N.current.setValue(r) : r !== N.current.getValue() && (X.current = !0, N.current.executeEdits("", [{ range: N.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), N.current.pushUndoStop(), X.current = !1));
51480
+ !N.current || r === void 0 || (N.current.getOption(D.current.editor.EditorOption.readOnly) ? N.current.setValue(r) : r !== N.current.getValue() && (X.current = !0, N.current.executeEdits("", [{ range: N.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), N.current.pushUndoStop(), X.current = !1));
51481
51481
  }, [r], C), Ur(() => {
51482
51482
  var ne, A;
51483
51483
  let H = (ne = N.current) == null ? void 0 : ne.getModel();
51484
- H && o && ((A = T.current) == null || A.editor.setModelLanguage(H, o));
51484
+ H && o && ((A = D.current) == null || A.editor.setModelLanguage(H, o));
51485
51485
  }, [o], C), Ur(() => {
51486
51486
  var H;
51487
51487
  a !== void 0 && ((H = N.current) == null || H.revealLine(a));
51488
51488
  }, [a], C), Ur(() => {
51489
51489
  var H;
51490
- (H = T.current) == null || H.editor.setTheme(s);
51490
+ (H = D.current) == null || H.editor.setTheme(s);
51491
51491
  }, [s], C);
51492
51492
  let re = Be(() => {
51493
51493
  var H;
51494
- if (!(!F.current || !T.current) && !Y.current) {
51495
- q.current(T.current);
51496
- let ne = i || n, A = Bl(T.current, r || e || "", t || o || "", ne || "");
51497
- N.current = (H = T.current) == null ? void 0 : H.editor.create(F.current, { model: A, automaticLayout: !0, ...c }, u), f && N.current.restoreViewState(Zh.get(ne)), T.current.editor.setTheme(s), a !== void 0 && N.current.revealLine(a), P(!0), Y.current = !0;
51494
+ if (!(!F.current || !D.current) && !Y.current) {
51495
+ q.current(D.current);
51496
+ let ne = i || n, A = Bl(D.current, r || e || "", t || o || "", ne || "");
51497
+ N.current = (H = D.current) == null ? void 0 : H.editor.create(F.current, { model: A, automaticLayout: !0, ...c }, u), f && N.current.restoreViewState(Zh.get(ne)), D.current.editor.setTheme(s), a !== void 0 && N.current.revealLine(a), P(!0), Y.current = !0;
51498
51498
  }
51499
51499
  }, [e, t, n, r, o, i, c, u, f, s, a]);
51500
51500
  _e(() => {
51501
- C && B.current(N.current, T.current);
51501
+ C && B.current(N.current, D.current);
51502
51502
  }, [C]), _e(() => {
51503
- !D && !C && re();
51504
- }, [D, C, re]), j.current = r, _e(() => {
51503
+ !T && !C && re();
51504
+ }, [T, C, re]), j.current = r, _e(() => {
51505
51505
  var H, ne;
51506
51506
  C && _ && ((H = G.current) == null || H.dispose(), G.current = (ne = N.current) == null ? void 0 : ne.onDidChangeModelContent((A) => {
51507
51507
  X.current || _(N.current.getValue(), A);
51508
51508
  }));
51509
51509
  }, [C, _]), _e(() => {
51510
51510
  if (C) {
51511
- let H = T.current.editor.onDidChangeMarkers((ne) => {
51511
+ let H = D.current.editor.onDidChangeMarkers((ne) => {
51512
51512
  var ue;
51513
51513
  let A = (ue = N.current.getModel()) == null ? void 0 : ue.uri;
51514
51514
  if (A && ne.find((ve) => ve.path === A.path)) {
51515
- let ve = T.current.editor.getModelMarkers({ resource: A });
51515
+ let ve = D.current.editor.getModelMarkers({ resource: A });
51516
51516
  E == null || E(ve);
51517
51517
  }
51518
51518
  });
@@ -51716,11 +51716,11 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
51716
51716
  var m;
51717
51717
  if (!Pfe.includes(p.key))
51718
51718
  return;
51719
- const b = p.target, y = c().filter((T) => {
51719
+ const b = p.target, y = c().filter((D) => {
51720
51720
  var N;
51721
- return !((N = T.ref.current) !== null && N !== void 0 && N.disabled);
51721
+ return !((N = D.ref.current) !== null && N !== void 0 && N.disabled);
51722
51722
  }), x = y.findIndex(
51723
- (T) => T.ref.current === b
51723
+ (D) => D.ref.current === b
51724
51724
  ), w = y.length;
51725
51725
  if (x === -1)
51726
51726
  return;
@@ -51728,7 +51728,7 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
51728
51728
  let _ = x;
51729
51729
  const E = 0, C = w - 1, P = () => {
51730
51730
  _ = x + 1, _ > C && (_ = E);
51731
- }, D = () => {
51731
+ }, T = () => {
51732
51732
  _ = x - 1, _ < E && (_ = C);
51733
51733
  };
51734
51734
  switch (p.key) {
@@ -51739,16 +51739,16 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
51739
51739
  _ = C;
51740
51740
  break;
51741
51741
  case "ArrowRight":
51742
- i === "horizontal" && (f ? P() : D());
51742
+ i === "horizontal" && (f ? P() : T());
51743
51743
  break;
51744
51744
  case "ArrowDown":
51745
51745
  i === "vertical" && P();
51746
51746
  break;
51747
51747
  case "ArrowLeft":
51748
- i === "horizontal" && (f ? D() : P());
51748
+ i === "horizontal" && (f ? T() : P());
51749
51749
  break;
51750
51750
  case "ArrowUp":
51751
- i === "vertical" && D();
51751
+ i === "vertical" && T();
51752
51752
  break;
51753
51753
  }
51754
51754
  const M = _ % w;