react-semaphor 0.0.178 → 0.0.180

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.
@@ -103,7 +103,7 @@ function J6() {
103
103
  function j(R) {
104
104
  return R.displayName || "Context";
105
105
  }
106
- function U(R) {
106
+ function W(R) {
107
107
  if (R == null)
108
108
  return null;
109
109
  if (typeof R.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function")
@@ -136,11 +136,11 @@ function J6() {
136
136
  return F(R, R.render, "ForwardRef");
137
137
  case f:
138
138
  var $e = R.displayName || null;
139
- return $e !== null ? $e : U(R.type) || "Memo";
139
+ return $e !== null ? $e : W(R.type) || "Memo";
140
140
  case p: {
141
141
  var qe = R, Ke = qe._payload, Be = qe._init;
142
142
  try {
143
- return U(Be(Ke));
143
+ return W(Be(Ke));
144
144
  } catch {
145
145
  return null;
146
146
  }
@@ -148,7 +148,7 @@ function J6() {
148
148
  }
149
149
  return null;
150
150
  }
151
- var W = Object.assign, z = 0, Q, q, X, Z, D, V, K;
151
+ var U = Object.assign, z = 0, Q, q, X, Z, D, V, K;
152
152
  function I() {
153
153
  }
154
154
  I.__reactDisabledLog = !0;
@@ -184,25 +184,25 @@ function J6() {
184
184
  writable: !0
185
185
  };
186
186
  Object.defineProperties(console, {
187
- log: W({}, R, {
187
+ log: U({}, R, {
188
188
  value: Q
189
189
  }),
190
- info: W({}, R, {
190
+ info: U({}, R, {
191
191
  value: q
192
192
  }),
193
- warn: W({}, R, {
193
+ warn: U({}, R, {
194
194
  value: X
195
195
  }),
196
- error: W({}, R, {
196
+ error: U({}, R, {
197
197
  value: Z
198
198
  }),
199
- group: W({}, R, {
199
+ group: U({}, R, {
200
200
  value: D
201
201
  }),
202
- groupCollapsed: W({}, R, {
202
+ groupCollapsed: U({}, R, {
203
203
  value: V
204
204
  }),
205
- groupEnd: W({}, R, {
205
+ groupEnd: U({}, R, {
206
206
  value: K
207
207
  })
208
208
  });
@@ -412,8 +412,8 @@ function J6() {
412
412
  }
413
413
  function hr(R, J) {
414
414
  if (typeof R.ref == "string" && je.current && J && je.current.stateNode !== J) {
415
- var de = U(je.current.type);
416
- on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(je.current.type), R.ref), on[de] = !0);
415
+ var de = W(je.current.type);
416
+ on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(je.current.type), R.ref), on[de] = !0);
417
417
  }
418
418
  }
419
419
  function sn(R, J) {
@@ -501,7 +501,7 @@ function J6() {
501
501
  function _i() {
502
502
  {
503
503
  if (Tt.current) {
504
- var R = U(Tt.current.type);
504
+ var R = W(Tt.current.type);
505
505
  if (R)
506
506
  return `
507
507
 
@@ -544,7 +544,7 @@ Check the top-level render call using <` + de + ">.");
544
544
  return;
545
545
  Xs[de] = !0;
546
546
  var $e = "";
547
- R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + U(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
547
+ R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + W(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
548
548
  }
549
549
  }
550
550
  function Js(R, J) {
@@ -581,11 +581,11 @@ Check the top-level render call using <` + de + ">.");
581
581
  else
582
582
  return;
583
583
  if (de) {
584
- var $e = U(J);
584
+ var $e = W(J);
585
585
  Ze(de, R.props, "prop", $e, R);
586
586
  } else if (J.PropTypes !== void 0 && !En) {
587
587
  En = !0;
588
- var qe = U(J);
588
+ var qe = W(J);
589
589
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", qe || "Unknown");
590
590
  }
591
591
  typeof J.getDefaultProps == "function" && !J.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -612,7 +612,7 @@ Check the top-level render call using <` + de + ">.");
612
612
  var At = qc(qe);
613
613
  At ? Fe += At : Fe += _i();
614
614
  var lt;
615
- R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (U(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
615
+ R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (W(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
616
616
  }
617
617
  var dt = it(R, J, de, qe, Ke);
618
618
  if (dt == null)
@@ -1000,7 +1000,7 @@ function $4(e) {
1000
1000
  return y4.test(e);
1001
1001
  }
1002
1002
  function D4() {
1003
- const e = ln("colors"), t = ln("spacing"), n = ln("blur"), r = ln("brightness"), o = ln("borderColor"), i = ln("borderRadius"), s = ln("borderSpacing"), a = ln("borderWidth"), l = ln("contrast"), c = ln("grayscale"), u = ln("hueRotate"), f = ln("invert"), p = ln("gap"), g = ln("gradientColorStops"), m = ln("gradientColorStopPositions"), v = ln("inset"), y = ln("margin"), x = ln("opacity"), w = ln("padding"), _ = ln("saturate"), E = ln("scale"), S = ln("sepia"), P = ln("skew"), k = ln("space"), M = ln("translate"), $ = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", wt, t], j = () => [wt, t], U = () => ["", zo, cs], W = () => ["auto", Ra, wt], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Q = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["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"], Z = () => ["", "0", wt], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [Ra, ph], K = () => [Ra, wt];
1003
+ const e = ln("colors"), t = ln("spacing"), n = ln("blur"), r = ln("brightness"), o = ln("borderColor"), i = ln("borderRadius"), s = ln("borderSpacing"), a = ln("borderWidth"), l = ln("contrast"), c = ln("grayscale"), u = ln("hueRotate"), f = ln("invert"), p = ln("gap"), g = ln("gradientColorStops"), m = ln("gradientColorStopPositions"), v = ln("inset"), y = ln("margin"), x = ln("opacity"), w = ln("padding"), _ = ln("saturate"), E = ln("scale"), S = ln("sepia"), P = ln("skew"), k = ln("space"), M = ln("translate"), $ = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", wt, t], j = () => [wt, t], W = () => ["", zo, cs], U = () => ["auto", Ra, wt], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Q = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["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"], Z = () => ["", "0", wt], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [Ra, ph], K = () => [Ra, wt];
1004
1004
  return {
1005
1005
  cacheSize: 500,
1006
1006
  separator: ":",
@@ -1012,7 +1012,7 @@ function D4() {
1012
1012
  borderColor: [e],
1013
1013
  borderRadius: ["none", "", "full", us, wt],
1014
1014
  borderSpacing: j(),
1015
- borderWidth: U(),
1015
+ borderWidth: W(),
1016
1016
  contrast: V(),
1017
1017
  grayscale: Z(),
1018
1018
  hueRotate: K(),
@@ -1318,14 +1318,14 @@ function D4() {
1318
1318
  * @see https://tailwindcss.com/docs/grid-column
1319
1319
  */
1320
1320
  "col-start": [{
1321
- "col-start": W()
1321
+ "col-start": U()
1322
1322
  }],
1323
1323
  /**
1324
1324
  * Grid Column End
1325
1325
  * @see https://tailwindcss.com/docs/grid-column
1326
1326
  */
1327
1327
  "col-end": [{
1328
- "col-end": W()
1328
+ "col-end": U()
1329
1329
  }],
1330
1330
  /**
1331
1331
  * Grid Template Rows
@@ -1348,14 +1348,14 @@ function D4() {
1348
1348
  * @see https://tailwindcss.com/docs/grid-row
1349
1349
  */
1350
1350
  "row-start": [{
1351
- "row-start": W()
1351
+ "row-start": U()
1352
1352
  }],
1353
1353
  /**
1354
1354
  * Grid Row End
1355
1355
  * @see https://tailwindcss.com/docs/grid-row
1356
1356
  */
1357
1357
  "row-end": [{
1358
- "row-end": W()
1358
+ "row-end": U()
1359
1359
  }],
1360
1360
  /**
1361
1361
  * Grid Auto Flow
@@ -2304,7 +2304,7 @@ function D4() {
2304
2304
  * @see https://tailwindcss.com/docs/ring-width
2305
2305
  */
2306
2306
  "ring-w": [{
2307
- ring: U()
2307
+ ring: W()
2308
2308
  }],
2309
2309
  /**
2310
2310
  * Ring Width Inset
@@ -3240,13 +3240,13 @@ function z4() {
3240
3240
  var S = !1, P, k, M = function(j) {
3241
3241
  if (!S) {
3242
3242
  S = !0, P = j;
3243
- var U = g(j);
3243
+ var W = g(j);
3244
3244
  if (m !== void 0 && y.hasValue) {
3245
- var W = y.value;
3246
- if (m(W, U))
3247
- return k = W, W;
3245
+ var U = y.value;
3246
+ if (m(U, W))
3247
+ return k = U, U;
3248
3248
  }
3249
- return k = U, U;
3249
+ return k = W, W;
3250
3250
  }
3251
3251
  var z = P, Q = k;
3252
3252
  if (r(z, j))
@@ -4796,7 +4796,7 @@ var Lp = { exports: {} };
4796
4796
  Lp.exports;
4797
4797
  (function(e, t) {
4798
4798
  (function() {
4799
- 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, p = 2, g = 4, m = 1, v = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, S = 32, P = 64, k = 128, M = 256, $ = 512, A = 30, F = "...", j = 800, U = 16, W = 1, z = 2, Q = 3, q = 1 / 0, X = 9007199254740991, Z = 17976931348623157e292, D = NaN, V = 4294967295, K = V - 1, I = V >>> 1, ae = [
4799
+ 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, p = 2, g = 4, m = 1, v = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, S = 32, P = 64, k = 128, M = 256, $ = 512, A = 30, F = "...", j = 800, W = 16, U = 1, z = 2, Q = 3, q = 1 / 0, X = 9007199254740991, Z = 17976931348623157e292, D = NaN, V = 4294967295, K = V - 1, I = V >>> 1, ae = [
4800
4800
  ["ary", k],
4801
4801
  ["bind", y],
4802
4802
  ["bindKey", x],
@@ -5452,7 +5452,7 @@ Lp.exports;
5452
5452
  if (Ur == z)
5453
5453
  nt = mr;
5454
5454
  else if (!mr) {
5455
- if (Ur == W)
5455
+ if (Ur == U)
5456
5456
  continue e;
5457
5457
  break e;
5458
5458
  }
@@ -6978,7 +6978,7 @@ Lp.exports;
6978
6978
  function SS(d) {
6979
6979
  var h = 0, b = 0;
6980
6980
  return function() {
6981
- var C = Q5(), T = U - (C - b);
6981
+ var C = Q5(), T = W - (C - b);
6982
6982
  if (b = C, T > 0) {
6983
6983
  if (++h >= j)
6984
6984
  return arguments[0];
@@ -8379,7 +8379,7 @@ function print() { __p += __j.call(arguments, '') }
8379
8379
  return this.reverse()[d](b).reverse();
8380
8380
  };
8381
8381
  }), mo(["filter", "map", "takeWhile"], function(d, h) {
8382
- var b = h + 1, C = b == W || b == Q;
8382
+ var b = h + 1, C = b == U || b == Q;
8383
8383
  Dt.prototype[d] = function(T) {
8384
8384
  var L = this.clone();
8385
8385
  return L.__iteratees__.push({
@@ -11226,14 +11226,14 @@ const qv = "rovingFocusGroup.onEntryFocus", s8 = {
11226
11226
  (z) => z.active
11227
11227
  ), j = A.find(
11228
11228
  (z) => z.id === m
11229
- ), W = [
11229
+ ), U = [
11230
11230
  F,
11231
11231
  j,
11232
11232
  ...A
11233
11233
  ].filter(Boolean).map(
11234
11234
  (z) => z.ref.current
11235
11235
  );
11236
- LR(W);
11236
+ LR(U);
11237
11237
  }
11238
11238
  }
11239
11239
  E.current = !1;
@@ -11649,10 +11649,10 @@ var qR = { exports: {} }, sf = {}, B0 = { exports: {} };
11649
11649
  return !0;
11650
11650
  }
11651
11651
  var j = o(F);
11652
- function U(ie, ee) {
11652
+ function W(ie, ee) {
11653
11653
  return ie.source === ee.source && ie.flags === ee.flags;
11654
11654
  }
11655
- function W(ie, ee, se, we) {
11655
+ function U(ie, ee, se, we) {
11656
11656
  var G = ie.size === ee.size;
11657
11657
  if (!G)
11658
11658
  return !1;
@@ -11668,20 +11668,20 @@ var qR = { exports: {} }, sf = {}, B0 = { exports: {} };
11668
11668
  }
11669
11669
  }), G;
11670
11670
  }
11671
- var z = o(W), Q = Object.freeze({
11671
+ var z = o(U), Q = Object.freeze({
11672
11672
  areArraysEqual: E,
11673
11673
  areDatesEqual: P,
11674
11674
  areMapsEqual: k,
11675
11675
  areObjectsEqual: F,
11676
- areRegExpsEqual: U,
11677
- areSetsEqual: W,
11676
+ areRegExpsEqual: W,
11677
+ areSetsEqual: U,
11678
11678
  createIsNestedEqual: r
11679
11679
  }), q = Object.freeze({
11680
11680
  areArraysEqual: S,
11681
11681
  areDatesEqual: P,
11682
11682
  areMapsEqual: M,
11683
11683
  areObjectsEqual: j,
11684
- areRegExpsEqual: U,
11684
+ areRegExpsEqual: W,
11685
11685
  areSetsEqual: z,
11686
11686
  createIsNestedEqual: r
11687
11687
  }), X = _(Q);
@@ -12262,7 +12262,7 @@ function oz() {
12262
12262
  }
12263
12263
  }
12264
12264
  }
12265
- var S = l, P = c, k = a, M = s, $ = t, A = u, F = r, j = m, U = g, W = n, z = i, Q = o, q = f, X = !1;
12265
+ var S = l, P = c, k = a, M = s, $ = t, A = u, F = r, j = m, W = g, U = n, z = i, Q = o, q = f, X = !1;
12266
12266
  function Z(G) {
12267
12267
  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.")), D(G) || E(G) === l;
12268
12268
  }
@@ -12302,7 +12302,7 @@ function oz() {
12302
12302
  function we(G) {
12303
12303
  return E(G) === f;
12304
12304
  }
12305
- Ht.AsyncMode = S, Ht.ConcurrentMode = P, Ht.ContextConsumer = k, Ht.ContextProvider = M, Ht.Element = $, Ht.ForwardRef = A, Ht.Fragment = F, Ht.Lazy = j, Ht.Memo = U, Ht.Portal = W, Ht.Profiler = z, Ht.StrictMode = Q, Ht.Suspense = q, Ht.isAsyncMode = Z, Ht.isConcurrentMode = D, Ht.isContextConsumer = V, Ht.isContextProvider = K, Ht.isElement = I, Ht.isForwardRef = ae, Ht.isFragment = le, Ht.isLazy = fe, Ht.isMemo = pe, Ht.isPortal = ie, Ht.isProfiler = ee, Ht.isStrictMode = se, Ht.isSuspense = we, Ht.isValidElementType = _, Ht.typeOf = E;
12305
+ Ht.AsyncMode = S, Ht.ConcurrentMode = P, Ht.ContextConsumer = k, Ht.ContextProvider = M, Ht.Element = $, Ht.ForwardRef = A, Ht.Fragment = F, Ht.Lazy = j, Ht.Memo = W, Ht.Portal = U, Ht.Profiler = z, Ht.StrictMode = Q, Ht.Suspense = q, Ht.isAsyncMode = Z, Ht.isConcurrentMode = D, Ht.isContextConsumer = V, Ht.isContextProvider = K, Ht.isElement = I, Ht.isForwardRef = ae, Ht.isFragment = le, Ht.isLazy = fe, Ht.isMemo = pe, Ht.isPortal = ie, Ht.isProfiler = ee, Ht.isStrictMode = se, Ht.isSuspense = we, Ht.isValidElementType = _, Ht.typeOf = E;
12306
12306
  }()), Ht;
12307
12307
  }
12308
12308
  var Wt = {};
@@ -12535,7 +12535,7 @@ function lz() {
12535
12535
  oneOf: k,
12536
12536
  oneOfType: $,
12537
12537
  shape: j,
12538
- exact: U
12538
+ exact: W
12539
12539
  };
12540
12540
  function m(D, V) {
12541
12541
  return D === V ? D !== 0 || 1 / D === 1 / V : D !== D && V !== V;
@@ -12692,7 +12692,7 @@ function lz() {
12692
12692
  }
12693
12693
  function A() {
12694
12694
  function D(V, K, I, ae, le) {
12695
- return W(V[K]) ? null : new v("Invalid " + ae + " `" + le + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
12695
+ return U(V[K]) ? null : new v("Invalid " + ae + " `" + le + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
12696
12696
  }
12697
12697
  return y(D);
12698
12698
  }
@@ -12718,7 +12718,7 @@ function lz() {
12718
12718
  }
12719
12719
  return y(V);
12720
12720
  }
12721
- function U(D) {
12721
+ function W(D) {
12722
12722
  function V(K, I, ae, le, fe) {
12723
12723
  var pe = K[I], ie = Q(pe);
12724
12724
  if (ie !== "object")
@@ -12741,7 +12741,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
12741
12741
  }
12742
12742
  return y(V);
12743
12743
  }
12744
- function W(D) {
12744
+ function U(D) {
12745
12745
  switch (typeof D) {
12746
12746
  case "number":
12747
12747
  case "string":
@@ -12751,7 +12751,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
12751
12751
  return !D;
12752
12752
  case "object":
12753
12753
  if (Array.isArray(D))
12754
- return D.every(W);
12754
+ return D.every(U);
12755
12755
  if (D === null || a(D))
12756
12756
  return !0;
12757
12757
  var V = f(D);
@@ -12759,12 +12759,12 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
12759
12759
  var K = V.call(D), I;
12760
12760
  if (V !== D.entries) {
12761
12761
  for (; !(I = K.next()).done; )
12762
- if (!W(I.value))
12762
+ if (!U(I.value))
12763
12763
  return !1;
12764
12764
  } else
12765
12765
  for (; !(I = K.next()).done; ) {
12766
12766
  var ae = I.value;
12767
- if (ae && !W(ae[1]))
12767
+ if (ae && !U(ae[1]))
12768
12768
  return !1;
12769
12769
  }
12770
12770
  } else
@@ -13667,21 +13667,21 @@ vr(Ng, "defaultProps", {
13667
13667
  position: A,
13668
13668
  positionOffset: F,
13669
13669
  scale: j,
13670
- ...U
13670
+ ...W
13671
13671
  } = this.props;
13672
- let W = {}, z = null;
13672
+ let U = {}, z = null;
13673
13673
  const q = !!!A || this.state.dragging, X = A || P, Z = {
13674
13674
  // Set left if horizontal drag is enabled
13675
13675
  x: (0, s.canDragX)(this) && q ? this.state.x : X.x,
13676
13676
  // Set top if vertical drag is enabled
13677
13677
  y: (0, s.canDragY)(this) && q ? this.state.y : X.y
13678
13678
  };
13679
- this.state.isElementSVG ? z = (0, i.createSVGTransform)(Z, F) : W = (0, i.createCSSTransform)(Z, F);
13679
+ this.state.isElementSVG ? z = (0, i.createSVGTransform)(Z, F) : U = (0, i.createCSSTransform)(Z, F);
13680
13680
  const D = (0, o.default)(S.props.className || "", k, {
13681
13681
  [M]: this.state.dragging,
13682
13682
  [$]: this.state.dragged
13683
13683
  });
13684
- return /* @__PURE__ */ t.createElement(l.default, g({}, U, {
13684
+ return /* @__PURE__ */ t.createElement(l.default, g({}, W, {
13685
13685
  onStart: this.onDragStart,
13686
13686
  onDrag: this.onDrag,
13687
13687
  onStop: this.onDragStop
@@ -13689,7 +13689,7 @@ vr(Ng, "defaultProps", {
13689
13689
  className: D,
13690
13690
  style: {
13691
13691
  ...S.props.style,
13692
- ...W
13692
+ ...U
13693
13693
  },
13694
13694
  transform: z
13695
13695
  }));
@@ -20924,11 +20924,11 @@ class sl extends Xi {
20924
20924
  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), p = wu(i), g = [], m = a.setContext(this.getContext()), v = m.display ? m.width : 0, y = v / 2, x = function(Q) {
20925
20925
  return ga(r, Q, v);
20926
20926
  };
20927
- let w, _, E, S, P, k, M, $, A, F, j, U;
20927
+ let w, _, E, S, P, k, M, $, A, F, j, W;
20928
20928
  if (s === "top")
20929
- w = x(this.bottom), k = this.bottom - p, $ = w - y, F = x(t.top) + y, U = t.bottom;
20929
+ w = x(this.bottom), k = this.bottom - p, $ = w - y, F = x(t.top) + y, W = t.bottom;
20930
20930
  else if (s === "bottom")
20931
- w = x(this.top), F = t.top, U = x(t.bottom) - y, k = w + y, $ = this.top + p;
20931
+ w = x(this.top), F = t.top, W = x(t.bottom) - y, k = w + y, $ = this.top + p;
20932
20932
  else if (s === "left")
20933
20933
  w = x(this.right), P = this.right - p, M = w - y, A = x(t.left) + y, j = t.right;
20934
20934
  else if (s === "right")
@@ -20940,7 +20940,7 @@ class sl extends Xi {
20940
20940
  const Q = Object.keys(s)[0], q = s[Q];
20941
20941
  w = x(this.chart.scales[Q].getPixelForValue(q));
20942
20942
  }
20943
- F = t.top, U = t.bottom, k = w + y, $ = k + p;
20943
+ F = t.top, W = t.bottom, k = w + y, $ = k + p;
20944
20944
  } else if (n === "y") {
20945
20945
  if (s === "center")
20946
20946
  w = x((t.left + t.right) / 2);
@@ -20950,10 +20950,10 @@ class sl extends Xi {
20950
20950
  }
20951
20951
  P = w - y, M = P - p, A = t.left, j = t.right;
20952
20952
  }
20953
- const W = ht(o.ticks.maxTicksLimit, f), z = Math.max(1, Math.ceil(f / W));
20953
+ const U = ht(o.ticks.maxTicksLimit, f), z = Math.max(1, Math.ceil(f / U));
20954
20954
  for (_ = 0; _ < f; _ += z) {
20955
20955
  const Q = this.getContext(_), q = i.setContext(Q), X = a.setContext(Q), Z = q.lineWidth, D = q.color, V = X.dash || [], K = X.dashOffset, I = q.tickWidth, ae = q.tickColor, le = q.tickBorderDash || [], fe = q.tickBorderDashOffset;
20956
- E = cW(this, _, l), E !== void 0 && (S = ga(r, E, Z), c ? P = M = A = j = S : k = $ = F = U = S, g.push({
20956
+ E = cW(this, _, l), E !== void 0 && (S = ga(r, E, Z), c ? P = M = A = j = S : k = $ = F = W = S, g.push({
20957
20957
  tx1: P,
20958
20958
  ty1: k,
20959
20959
  tx2: M,
@@ -20961,7 +20961,7 @@ class sl extends Xi {
20961
20961
  x1: A,
20962
20962
  y1: F,
20963
20963
  x2: j,
20964
- y2: U,
20964
+ y2: W,
20965
20965
  width: Z,
20966
20966
  color: D,
20967
20967
  borderDash: V,
@@ -20976,7 +20976,7 @@ class sl extends Xi {
20976
20976
  }
20977
20977
  _computeLabelItems(t) {
20978
20978
  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, p = wu(r.grid), g = p + u, m = f ? -u : g, v = -Vo(this.labelRotation), y = [];
20979
- let x, w, _, E, S, P, k, M, $, A, F, j, U = "middle";
20979
+ let x, w, _, E, S, P, k, M, $, A, F, j, W = "middle";
20980
20980
  if (o === "top")
20981
20981
  P = this.bottom - m, k = this._getXAxisLabelAlignment();
20982
20982
  else if (o === "bottom")
@@ -21004,20 +21004,20 @@ class sl extends Xi {
21004
21004
  }
21005
21005
  k = this._getYAxisLabelAlignment(p).textAlign;
21006
21006
  }
21007
- n === "y" && (l === "start" ? U = "top" : l === "end" && (U = "bottom"));
21008
- const W = this._getLabelSizes();
21007
+ n === "y" && (l === "start" ? W = "top" : l === "end" && (W = "bottom"));
21008
+ const U = this._getLabelSizes();
21009
21009
  for (x = 0, w = a.length; x < w; ++x) {
21010
21010
  _ = a[x], E = _.label;
21011
21011
  const z = i.setContext(this.getContext(x));
21012
21012
  M = this.getPixelForTick(x) + i.labelOffset, $ = this._resolveTickFontOptions(x), A = $.lineHeight, F = fn(E) ? E.length : 1;
21013
21013
  const Q = F / 2, q = z.color, X = z.textStrokeColor, Z = z.textStrokeWidth;
21014
21014
  let D = k;
21015
- s ? (S = M, k === "inner" && (x === w - 1 ? D = this.options.reverse ? "left" : "right" : x === 0 ? D = this.options.reverse ? "right" : "left" : D = "center"), o === "top" ? c === "near" || v !== 0 ? j = -F * A + A / 2 : c === "center" ? j = -W.highest.height / 2 - Q * A + A : j = -W.highest.height + A / 2 : c === "near" || v !== 0 ? j = A / 2 : c === "center" ? j = W.highest.height / 2 - Q * A : j = W.highest.height - F * A, f && (j *= -1), v !== 0 && !z.showLabelBackdrop && (S += A / 2 * Math.sin(v))) : (P = M, j = (1 - F) * A / 2);
21015
+ s ? (S = M, k === "inner" && (x === w - 1 ? D = this.options.reverse ? "left" : "right" : x === 0 ? D = this.options.reverse ? "right" : "left" : D = "center"), o === "top" ? c === "near" || v !== 0 ? j = -F * A + A / 2 : c === "center" ? j = -U.highest.height / 2 - Q * A + A : j = -U.highest.height + A / 2 : c === "near" || v !== 0 ? j = A / 2 : c === "center" ? j = U.highest.height / 2 - Q * A : j = U.highest.height - F * A, f && (j *= -1), v !== 0 && !z.showLabelBackdrop && (S += A / 2 * Math.sin(v))) : (P = M, j = (1 - F) * A / 2);
21016
21016
  let V;
21017
21017
  if (z.showLabelBackdrop) {
21018
- const K = rr(z.backdropPadding), I = W.heights[x], ae = W.widths[x];
21018
+ const K = rr(z.backdropPadding), I = U.heights[x], ae = U.widths[x];
21019
21019
  let le = j - K.top, fe = 0 - K.left;
21020
- switch (U) {
21020
+ switch (W) {
21021
21021
  case "middle":
21022
21022
  le -= I / 2;
21023
21023
  break;
@@ -21054,7 +21054,7 @@ class sl extends Xi {
21054
21054
  strokeColor: X,
21055
21055
  strokeWidth: Z,
21056
21056
  textAlign: D,
21057
- textBaseline: U,
21057
+ textBaseline: W,
21058
21058
  translation: [
21059
21059
  S,
21060
21060
  P
@@ -22267,7 +22267,7 @@ function Xp(e, t, n, r, o, i) {
22267
22267
  const z = u > 0 ? u - r : 0, Q = f > 0 ? f - r : 0, q = (z + Q) / 2, X = q !== 0 ? m * q / (q + r) : m;
22268
22268
  g = (m - X) / 2;
22269
22269
  }
22270
- const v = Math.max(1e-3, m * f - n / pn) / f, y = (m - v) / 2, x = l + y + g, w = o - y - g, { outerStart: _, outerEnd: E, innerStart: S, innerEnd: P } = BW(t, p, f, w - x), k = f - _, M = f - E, $ = x + _ / k, A = w - E / M, F = p + S, j = p + P, U = x + S / F, W = w - P / j;
22270
+ const v = Math.max(1e-3, m * f - n / pn) / f, y = (m - v) / 2, x = l + y + g, w = o - y - g, { outerStart: _, outerEnd: E, innerStart: S, innerEnd: P } = BW(t, p, f, w - x), k = f - _, M = f - E, $ = x + _ / k, A = w - E / M, F = p + S, j = p + P, W = x + S / F, U = w - P / j;
22271
22271
  if (e.beginPath(), i) {
22272
22272
  const z = ($ + A) / 2;
22273
22273
  if (e.arc(s, a, f, $, z), e.arc(s, a, f, z, A), E > 0) {
@@ -22276,13 +22276,13 @@ function Xp(e, t, n, r, o, i) {
22276
22276
  }
22277
22277
  const Q = Ml(j, w, s, a);
22278
22278
  if (e.lineTo(Q.x, Q.y), P > 0) {
22279
- const Z = Ml(j, W, s, a);
22280
- e.arc(Z.x, Z.y, P, w + Rn, W + Math.PI);
22279
+ const Z = Ml(j, U, s, a);
22280
+ e.arc(Z.x, Z.y, P, w + Rn, U + Math.PI);
22281
22281
  }
22282
22282
  const q = (w - P / p + (x + S / p)) / 2;
22283
22283
  if (e.arc(s, a, p, w - P / p, q, !0), e.arc(s, a, p, q, x + S / p, !0), S > 0) {
22284
- const Z = Ml(F, U, s, a);
22285
- e.arc(Z.x, Z.y, S, U + Math.PI, x - Rn);
22284
+ const Z = Ml(F, W, s, a);
22285
+ e.arc(Z.x, Z.y, S, W + Math.PI, x - Rn);
22286
22286
  }
22287
22287
  const X = Ml(k, x, s, a);
22288
22288
  if (e.lineTo(X.x, X.y), _ > 0) {
@@ -23416,7 +23416,7 @@ class f2 extends Xi {
23416
23416
  K$(o, A, F, j, s.pointStyleWidth && m);
23417
23417
  } else {
23418
23418
  const A = k + Math.max((f - v) / 2, 0), F = l.leftForLtr(P, m), j = Ha(M.borderRadius);
23419
- o.beginPath(), Object.values(j).some((U) => U !== 0) ? dd(o, {
23419
+ o.beginPath(), Object.values(j).some((W) => W !== 0) ? dd(o, {
23420
23420
  x: F,
23421
23421
  y: A,
23422
23422
  w: m,
@@ -23446,12 +23446,12 @@ class f2 extends Xi {
23446
23446
  const M = o.measureText(P.text).width, $ = l.textAlign(P.textAlign || (P.textAlign = s.textAlign)), A = m + p + M;
23447
23447
  let F = g.x, j = g.y;
23448
23448
  l.setWidth(this.width), _ ? k > 0 && F + A + u > this.right && (j = g.y += S, g.line++, F = g.x = lr(i, this.left + u, this.right - r[g.line])) : k > 0 && j + S > this.bottom && (F = g.x = F + n[g.line].width + u, g.line++, j = g.y = lr(i, this.top + E + u, this.bottom - n[g.line].height));
23449
- const U = l.x(F);
23450
- if (x(U, j, P), F = rV($, F + m + p, _ ? F + A : this.right, t.rtl), w(l.x(F), j, P), _)
23449
+ const W = l.x(F);
23450
+ if (x(W, j, P), F = rV($, F + m + p, _ ? F + A : this.right, t.rtl), w(l.x(F), j, P), _)
23451
23451
  g.x += A + u;
23452
23452
  else if (typeof P.text != "string") {
23453
- const W = c.lineHeight;
23454
- g.y += RD(P, W) + u;
23453
+ const U = c.lineHeight;
23454
+ g.y += RD(P, U) + u;
23455
23455
  } else
23456
23456
  g.y += S;
23457
23457
  }), oD(this.ctx, t.textDirection);
@@ -27009,12 +27009,12 @@ const I2 = (e) => ({
27009
27009
  }, g = g1(o), m = p1(g), v = await s.getDimensions(c), y = g === "y", x = y ? "top" : "left", w = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", E = i.reference[m] + i.reference[g] - p[g] - i.floating[m], S = p[g] - i.reference[g], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
27010
27010
  let k = P ? P[_] : 0;
27011
27011
  (!k || !await (s.isElement == null ? void 0 : s.isElement(P))) && (k = a.floating[_] || i.floating[m]);
27012
- const M = E / 2 - S / 2, $ = k / 2 - v[m] / 2 - 1, A = js(f[x], $), F = js(f[w], $), j = A, U = k - v[m] - F, W = k / 2 - v[m] / 2 + M, z = yy(j, W, U), Q = !l.arrow && Fc(o) != null && W != z && i.reference[m] / 2 - (W < j ? A : F) - v[m] / 2 < 0, q = Q ? W < j ? W - j : W - U : 0;
27012
+ const M = E / 2 - S / 2, $ = k / 2 - v[m] / 2 - 1, A = js(f[x], $), F = js(f[w], $), j = A, W = k - v[m] - F, U = k / 2 - v[m] / 2 + M, z = yy(j, U, W), Q = !l.arrow && Fc(o) != null && U != z && i.reference[m] / 2 - (U < j ? A : F) - v[m] / 2 < 0, q = Q ? U < j ? U - j : U - W : 0;
27013
27013
  return {
27014
27014
  [g]: p[g] + q,
27015
27015
  data: {
27016
27016
  [g]: z,
27017
- centerOffset: W - z - q,
27017
+ centerOffset: U - z - q,
27018
27018
  ...Q && {
27019
27019
  alignmentOffset: q
27020
27020
  }
@@ -27059,34 +27059,34 @@ const I2 = (e) => ({
27059
27059
  overflows: k
27060
27060
  }], !k.every((j) => j <= 0)) {
27061
27061
  var $, A;
27062
- const j = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, U = S[j];
27063
- if (U)
27062
+ const j = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, W = S[j];
27063
+ if (W)
27064
27064
  return {
27065
27065
  data: {
27066
27066
  index: j,
27067
27067
  overflows: M
27068
27068
  },
27069
27069
  reset: {
27070
- placement: U
27070
+ placement: W
27071
27071
  }
27072
27072
  };
27073
- let W = (A = M.filter((z) => z.overflows[0] <= 0).sort((z, Q) => z.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : A.placement;
27074
- if (!W)
27073
+ let U = (A = M.filter((z) => z.overflows[0] <= 0).sort((z, Q) => z.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : A.placement;
27074
+ if (!U)
27075
27075
  switch (g) {
27076
27076
  case "bestFit": {
27077
27077
  var F;
27078
27078
  const z = (F = M.map((Q) => [Q.placement, Q.overflows.filter((q) => q > 0).reduce((q, X) => q + X, 0)]).sort((Q, q) => Q[1] - q[1])[0]) == null ? void 0 : F[0];
27079
- z && (W = z);
27079
+ z && (U = z);
27080
27080
  break;
27081
27081
  }
27082
27082
  case "initialPlacement":
27083
- W = a;
27083
+ U = a;
27084
27084
  break;
27085
27085
  }
27086
- if (o !== W)
27086
+ if (o !== U)
27087
27087
  return {
27088
27088
  reset: {
27089
- placement: W
27089
+ placement: U
27090
27090
  }
27091
27091
  };
27092
27092
  }
@@ -27891,12 +27891,12 @@ function dY(e) {
27891
27891
  F();
27892
27892
  }
27893
27893
  }, [E, S, F, $]);
27894
- const U = me.useMemo(() => ({
27894
+ const W = me.useMemo(() => ({
27895
27895
  reference: P,
27896
27896
  floating: k,
27897
27897
  setReference: w,
27898
27898
  setFloating: _
27899
- }), [w, _]), W = me.useMemo(() => ({
27899
+ }), [w, _]), U = me.useMemo(() => ({
27900
27900
  reference: E,
27901
27901
  floating: S
27902
27902
  }), [E, S]), z = me.useMemo(() => {
@@ -27905,13 +27905,13 @@ function dY(e) {
27905
27905
  left: 0,
27906
27906
  top: 0
27907
27907
  };
27908
- if (!W.floating)
27908
+ if (!U.floating)
27909
27909
  return Q;
27910
- const q = B2(W.floating, u.x), X = B2(W.floating, u.y);
27910
+ const q = B2(U.floating, u.x), X = B2(U.floating, u.y);
27911
27911
  return a ? {
27912
27912
  ...Q,
27913
27913
  transform: "translate(" + q + "px, " + X + "px)",
27914
- ...ZD(W.floating) >= 1.5 && {
27914
+ ...ZD(U.floating) >= 1.5 && {
27915
27915
  willChange: "transform"
27916
27916
  }
27917
27917
  } : {
@@ -27919,14 +27919,14 @@ function dY(e) {
27919
27919
  left: q,
27920
27920
  top: X
27921
27921
  };
27922
- }, [n, a, W.floating, u.x, u.y]);
27922
+ }, [n, a, U.floating, u.x, u.y]);
27923
27923
  return me.useMemo(() => ({
27924
27924
  ...u,
27925
27925
  update: F,
27926
- refs: U,
27927
- elements: W,
27926
+ refs: W,
27927
+ elements: U,
27928
27928
  floatingStyles: z
27929
- }), [u, F, U, W, z]);
27929
+ }), [u, F, W, U, z]);
27930
27930
  }
27931
27931
  function Kg(e) {
27932
27932
  const [t, n] = Ee(void 0);
@@ -27979,7 +27979,7 @@ const eT = "Popper", [tT, xi] = Yn(eT), [fY, nT] = tT(eT), hY = (e) => {
27979
27979
  const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: m = 0, arrowPadding: v = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: S = "optimized", onPlaced: P, ...k } = e, M = nT(rT, u), [$, A] = Ee(null), F = pt(
27980
27980
  t,
27981
27981
  (ke) => A(ke)
27982
- ), [j, U] = Ee(null), W = Kg(j), z = (n = W == null ? void 0 : W.width) !== null && n !== void 0 ? n : 0, Q = (r = W == null ? void 0 : W.height) !== null && r !== void 0 ? r : 0, q = f + (g !== "center" ? "-" + g : ""), X = typeof w == "number" ? w : {
27982
+ ), [j, W] = Ee(null), U = Kg(j), z = (n = U == null ? void 0 : U.width) !== null && n !== void 0 ? n : 0, Q = (r = U == null ? void 0 : U.height) !== null && r !== void 0 ? r : 0, q = f + (g !== "center" ? "-" + g : ""), X = typeof w == "number" ? w : {
27983
27983
  top: 0,
27984
27984
  right: 0,
27985
27985
  bottom: 0,
@@ -28066,7 +28066,7 @@ const eT = "Popper", [tT, xi] = Yn(eT), [fY, nT] = tT(eT), hY = (e) => {
28066
28066
  }, /* @__PURE__ */ B(mY, {
28067
28067
  scope: u,
28068
28068
  placedSide: pe,
28069
- onArrowChange: U,
28069
+ onArrowChange: W,
28070
28070
  arrowX: se,
28071
28071
  arrowY: we,
28072
28072
  shouldHideArrow: G
@@ -28811,7 +28811,7 @@ function gT(e, t) {
28811
28811
  return (n == null ? void 0 : n.color) || "";
28812
28812
  }
28813
28813
  function oK({ card: e, isLoading: t }) {
28814
- var x, w, _, E, S, P, k, M, $, A, F, j, U, W, z, Q, q, X, Z, D, V, K, I, ae;
28814
+ var x, w, _, E, S, P, k, M, $, A, F, j, W, U, z, Q, q, X, Z, D, V, K, I, ae;
28815
28815
  const n = Le((le) => le.actions.setCardTitle), r = Le(
28816
28816
  (le) => le.actions.setCardDescription
28817
28817
  ), o = Le((le) => le.isVisualEditing), i = no((le) => le.card), s = no((le) => le.actions.setCard);
@@ -28861,7 +28861,7 @@ function oK({ card: e, isLoading: t }) {
28861
28861
  useSuffix: !!((M = (k = e.preferences) == null ? void 0 : k.formatNumber) != null && M.suffix),
28862
28862
  customSuffix: ((A = ($ = e.preferences) == null ? void 0 : $.formatNumber) == null ? void 0 : A.suffix) || "",
28863
28863
  locale: ((j = (F = e.preferences) == null ? void 0 : F.formatNumber) == null ? void 0 : j.locale) || "",
28864
- currency: ((W = (U = e.preferences) == null ? void 0 : U.formatNumber) == null ? void 0 : W.currency) || ""
28864
+ currency: ((U = (W = e.preferences) == null ? void 0 : W.formatNumber) == null ? void 0 : U.currency) || ""
28865
28865
  })
28866
28866
  }
28867
28867
  ),
@@ -29064,11 +29064,11 @@ function ba({
29064
29064
  ...(_ = (w = t == null ? void 0 : t.options) == null ? void 0 : w.scales) == null ? void 0 : _[u],
29065
29065
  ticks: {
29066
29066
  ...(P = (S = (E = t == null ? void 0 : t.options) == null ? void 0 : E.scales) == null ? void 0 : S[u]) == null ? void 0 : P.ticks,
29067
- callback: (U) => {
29068
- var W, z, Q, q;
29067
+ callback: (W) => {
29068
+ var U, z, Q, q;
29069
29069
  return Pc({
29070
- number: Number(U),
29071
- decimalPlaces: ((W = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : W.decimalPlaces) || 0,
29070
+ number: Number(W),
29071
+ decimalPlaces: ((U = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
29072
29072
  useSuffix: !!((z = r == null ? void 0 : r.numberAxisFormat) != null && z.suffix),
29073
29073
  customSuffix: "",
29074
29074
  locale: ((Q = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : Q.locale) || "",
@@ -29086,11 +29086,11 @@ function ba({
29086
29086
  ...(A = t == null ? void 0 : t.options) == null ? void 0 : A.plugins,
29087
29087
  datalabels: {
29088
29088
  ...(j = (F = t == null ? void 0 : t.options) == null ? void 0 : F.plugins) == null ? void 0 : j.datalabels,
29089
- formatter: function(U) {
29090
- var W, z, Q, q;
29089
+ formatter: function(W) {
29090
+ var U, z, Q, q;
29091
29091
  return Pc({
29092
- number: Number(U),
29093
- decimalPlaces: ((W = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : W.decimalPlaces) || 0,
29092
+ number: Number(W),
29093
+ decimalPlaces: ((U = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
29094
29094
  useSuffix: !!((z = r == null ? void 0 : r.numberAxisFormat) != null && z.suffix),
29095
29095
  customSuffix: "",
29096
29096
  locale: ((Q = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : Q.locale) || "",
@@ -29404,7 +29404,7 @@ function vT({
29404
29404
  plugins: [t === "doughnut" ? {
29405
29405
  id: "doughnutLabel",
29406
29406
  beforeDatasetsDraw: function(E, S, P) {
29407
- var W, z, Q, q;
29407
+ var U, z, Q, q;
29408
29408
  const { ctx: k, data: M } = E;
29409
29409
  k.save();
29410
29410
  const $ = E.getDatasetMeta(0).data[0].x, A = E.getDatasetMeta(0).data[0].y, F = Ip(Ap());
@@ -29412,15 +29412,15 @@ function vT({
29412
29412
  const j = M.datasets[0].data.reduce(
29413
29413
  (X, Z) => X + Z,
29414
29414
  0
29415
- ), U = Pc({
29415
+ ), W = Pc({
29416
29416
  number: Number(j),
29417
- decimalPlaces: ((W = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : W.decimalPlaces) || 0,
29417
+ decimalPlaces: ((U = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
29418
29418
  useSuffix: !!((z = s == null ? void 0 : s.numberAxisFormat) != null && z.suffix),
29419
29419
  customSuffix: "",
29420
29420
  locale: ((Q = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : Q.locale) || "",
29421
29421
  currency: ((q = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : q.currency) || ""
29422
29422
  });
29423
- k.fillText(U, $, A);
29423
+ k.fillText(W, $, A);
29424
29424
  }
29425
29425
  } : ""]
29426
29426
  };
@@ -29686,14 +29686,14 @@ function Jpe(e) {
29686
29686
  return { ...o, data: ((a = o == null ? void 0 : o.data) == null ? void 0 : a.records) || [], card: i };
29687
29687
  }
29688
29688
  function bT(e) {
29689
- var F, j, U;
29690
- const { onChartElementClicked: t } = jc(), [n, r] = Ee(0), o = ((F = e == null ? void 0 : e.preferences) == null ? void 0 : F.filterOnClickColumnIndex) === void 0 ? 0 : (j = e.preferences) == null ? void 0 : j.filterOnClickColumnIndex, i = Le((W) => W.bookmarkKey);
29691
- Le((W) => W.isVisualEditing);
29692
- const s = Le((W) => W.filteringCards), a = Le((W) => W.selectedSheetId);
29693
- Le((W) => W.selectedCardId), Le(
29694
- (W) => W.isDashboardEditing
29689
+ var F, j, W;
29690
+ const { onChartElementClicked: t } = jc(), [n, r] = Ee(0), o = ((F = e == null ? void 0 : e.preferences) == null ? void 0 : F.filterOnClickColumnIndex) === void 0 ? 0 : (j = e.preferences) == null ? void 0 : j.filterOnClickColumnIndex, i = Le((U) => U.bookmarkKey);
29691
+ Le((U) => U.isVisualEditing);
29692
+ const s = Le((U) => U.filteringCards), a = Le((U) => U.selectedSheetId);
29693
+ Le((U) => U.selectedCardId), Le(
29694
+ (U) => U.isDashboardEditing
29695
29695
  );
29696
- const l = Le((W) => W.themeStyle), c = Le((W) => W.filterValues), u = (U = e == null ? void 0 : e.preferences) == null ? void 0 : U.onClickFilter, {
29696
+ const l = Le((U) => U.themeStyle), c = Le((U) => U.filterValues), u = (W = e == null ? void 0 : e.preferences) == null ? void 0 : W.onClickFilter, {
29697
29697
  addFrame: f,
29698
29698
  addFilteringCard: p,
29699
29699
  setFrameCardData: g,
@@ -29703,7 +29703,7 @@ function bT(e) {
29703
29703
  removeFilterValue: x,
29704
29704
  removeFilteringCard: w
29705
29705
  } = Us(), { data: _, isLoading: E, isFetching: S, isError: P, refetch: k } = mK(e), M = s == null ? void 0 : s.find(
29706
- (W) => W.id === e.id
29706
+ (U) => U.id === e.id
29707
29707
  );
29708
29708
  let $;
29709
29709
  e.data && e.data.length > 0 && ($ = vT({
@@ -29733,7 +29733,7 @@ function bT(e) {
29733
29733
  ]), Se(() => {
29734
29734
  e.connectionId && !M && k();
29735
29735
  }, [c, i]);
29736
- function A(W, z, Q, q) {
29736
+ function A(U, z, Q, q) {
29737
29737
  var D, V;
29738
29738
  let X = !1;
29739
29739
  if (!e.data)
@@ -29776,7 +29776,7 @@ function bT(e) {
29776
29776
  ), Z[o].columnValue, y(K), p(e);
29777
29777
  }
29778
29778
  PK({
29779
- chart: W,
29779
+ chart: U,
29780
29780
  elementIndex: Q,
29781
29781
  datasetIndex: z,
29782
29782
  cardType: e.type,
@@ -32800,7 +32800,7 @@ const im = qT, SQ = [
32800
32800
  prop: s,
32801
32801
  defaultProp: a,
32802
32802
  onChange: l
32803
- }), A = ce(null), F = v ? !!v.closest("form") : !0, [j, U] = Ee(/* @__PURE__ */ new Set()), W = Array.from(j).map(
32803
+ }), A = ce(null), F = v ? !!v.closest("form") : !0, [j, W] = Ee(/* @__PURE__ */ new Set()), U = Array.from(j).map(
32804
32804
  (z) => z.props.value
32805
32805
  ).join(";");
32806
32806
  return /* @__PURE__ */ B(hf, m, /* @__PURE__ */ B(PQ, {
@@ -32825,18 +32825,18 @@ const im = qT, SQ = [
32825
32825
  }, /* @__PURE__ */ B(OQ, {
32826
32826
  scope: e.__scopeSelect,
32827
32827
  onNativeOptionAdd: We((z) => {
32828
- U(
32828
+ W(
32829
32829
  (Q) => new Set(Q).add(z)
32830
32830
  );
32831
32831
  }, []),
32832
32832
  onNativeOptionRemove: We((z) => {
32833
- U((Q) => {
32833
+ W((Q) => {
32834
32834
  const q = new Set(Q);
32835
32835
  return q.delete(z), q;
32836
32836
  });
32837
32837
  }, [])
32838
32838
  }, n)), F ? /* @__PURE__ */ B(QT, {
32839
- key: W,
32839
+ key: U,
32840
32840
  "aria-hidden": !0,
32841
32841
  required: g,
32842
32842
  tabIndex: -1,
@@ -32949,7 +32949,7 @@ const im = qT, SQ = [
32949
32949
  } = e, w = al(Dc, n), [_, E] = Ee(null), [S, P] = Ee(null), k = pt(
32950
32950
  t,
32951
32951
  (pe) => E(pe)
32952
- ), [M, $] = Ee(null), [A, F] = Ee(null), j = lm(n), [U, W] = Ee(!1), z = ce(!1);
32952
+ ), [M, $] = Ee(null), [A, F] = Ee(null), j = lm(n), [W, U] = Ee(!1), z = ce(!1);
32953
32953
  Se(() => {
32954
32954
  if (_)
32955
32955
  return rm(_);
@@ -32980,9 +32980,9 @@ const im = qT, SQ = [
32980
32980
  ]
32981
32981
  );
32982
32982
  Se(() => {
32983
- U && q();
32983
+ W && q();
32984
32984
  }, [
32985
- U,
32985
+ W,
32986
32986
  q
32987
32987
  ]);
32988
32988
  const { onOpenChange: X, triggerPointerDownPosRef: Z } = w;
@@ -33070,7 +33070,7 @@ const im = qT, SQ = [
33070
33070
  focusSelectedItem: q,
33071
33071
  selectedItemText: A,
33072
33072
  position: r,
33073
- isPositioned: U,
33073
+ isPositioned: W,
33074
33074
  searchRef: D
33075
33075
  }, /* @__PURE__ */ B(im, {
33076
33076
  as: qi,
@@ -33101,7 +33101,7 @@ const im = qT, SQ = [
33101
33101
  dir: w.dir,
33102
33102
  onContextMenu: (pe) => pe.preventDefault()
33103
33103
  }, x, fe, {
33104
- onPlaced: () => W(!0),
33104
+ onPlaced: () => U(!0),
33105
33105
  ref: k,
33106
33106
  style: {
33107
33107
  // flex layout so we can place the scroll buttons properly
@@ -33160,7 +33160,7 @@ const im = qT, SQ = [
33160
33160
  ]);
33161
33161
  a.style.minWidth = Oe + "px", a.style.right = Ye + "px";
33162
33162
  }
33163
- const F = p(), j = window.innerHeight - Fi * 2, U = v.scrollHeight, W = window.getComputedStyle(c), z = parseInt(W.borderTopWidth, 10), Q = parseInt(W.paddingTop, 10), q = parseInt(W.borderBottomWidth, 10), X = parseInt(W.paddingBottom, 10), Z = z + Q + U + X + q, D = Math.min(y.offsetHeight * 5, Z), V = window.getComputedStyle(v), K = parseInt(V.paddingTop, 10), I = parseInt(V.paddingBottom, 10), ae = k.top + k.height / 2 - Fi, le = j - ae, fe = y.offsetHeight / 2, pe = y.offsetTop + fe, ie = z + Q + pe, ee = Z - ie;
33163
+ const F = p(), j = window.innerHeight - Fi * 2, W = v.scrollHeight, U = window.getComputedStyle(c), z = parseInt(U.borderTopWidth, 10), Q = parseInt(U.paddingTop, 10), q = parseInt(U.borderBottomWidth, 10), X = parseInt(U.paddingBottom, 10), Z = z + Q + W + X + q, D = Math.min(y.offsetHeight * 5, Z), V = window.getComputedStyle(v), K = parseInt(V.paddingTop, 10), I = parseInt(V.paddingBottom, 10), ae = k.top + k.height / 2 - Fi, le = j - ae, fe = y.offsetHeight / 2, pe = y.offsetTop + fe, ie = z + Q + pe, ee = Z - ie;
33164
33164
  if (ie <= ae) {
33165
33165
  const we = y === F[F.length - 1].ref.current;
33166
33166
  a.style.bottom = "0px";
@@ -34313,7 +34313,7 @@ function NJ({
34313
34313
  function M() {
34314
34314
  var $, A, F;
34315
34315
  if (i === "date") {
34316
- const j = EJ(c, f), U = {
34316
+ const j = EJ(c, f), W = {
34317
34317
  columnIdx: e,
34318
34318
  type: i,
34319
34319
  options: j
@@ -34323,9 +34323,9 @@ function NJ({
34323
34323
  columnSettings: [
34324
34324
  // Remove the existing column setting
34325
34325
  ...(($ = o == null ? void 0 : o.columnSettings) == null ? void 0 : $.filter(
34326
- (W) => W.columnIdx !== e
34326
+ (U) => U.columnIdx !== e
34327
34327
  )) || [],
34328
- U
34328
+ W
34329
34329
  ]
34330
34330
  });
34331
34331
  } else if (i === "number") {
@@ -34348,7 +34348,7 @@ function NJ({
34348
34348
  },
34349
34349
  colorRanges: a.length > 0 ? a : void 0
34350
34350
  };
34351
- const U = {
34351
+ const W = {
34352
34352
  columnIdx: e,
34353
34353
  type: i,
34354
34354
  options: j
@@ -34358,9 +34358,9 @@ function NJ({
34358
34358
  columnSettings: [
34359
34359
  // Remove the existing column setting
34360
34360
  ...((A = o == null ? void 0 : o.columnSettings) == null ? void 0 : A.filter(
34361
- (W) => W.columnIdx !== e
34361
+ (U) => U.columnIdx !== e
34362
34362
  )) || [],
34363
- U
34363
+ W
34364
34364
  ]
34365
34365
  });
34366
34366
  } else
@@ -34496,12 +34496,12 @@ function FJ({ data: e, card: t }) {
34496
34496
  ] });
34497
34497
  },
34498
34498
  cell: ({ cell: M }) => {
34499
- var U, W;
34500
- const $ = M.getValue(), A = (U = m == null ? void 0 : m.columnSettings) == null ? void 0 : U.find(
34499
+ var W, U;
34500
+ const $ = M.getValue(), A = (W = m == null ? void 0 : m.columnSettings) == null ? void 0 : W.find(
34501
34501
  (z) => z.columnIdx === k
34502
34502
  ), F = v($, A), j = gT(
34503
34503
  $,
34504
- (W = A == null ? void 0 : A.options) == null ? void 0 : W.colorRanges
34504
+ (U = A == null ? void 0 : A.options) == null ? void 0 : U.colorRanges
34505
34505
  );
34506
34506
  return /* @__PURE__ */ O.jsx("div", { className: "px-2 py-1", style: { backgroundColor: j }, children: F });
34507
34507
  }
@@ -34602,11 +34602,17 @@ function FJ({ data: e, card: t }) {
34602
34602
  return /* @__PURE__ */ O.jsx(
34603
34603
  Sy,
34604
34604
  {
34605
+ onClick: (F) => {
34606
+ var W;
34607
+ const j = ((W = window == null ? void 0 : window.getSelection()) == null ? void 0 : W.toString()) || "";
34608
+ (j == null ? void 0 : j.length) > 0 && F.stopPropagation();
34609
+ },
34605
34610
  className: De("p-0", {
34606
34611
  "border-x": $ > 0 && $ < y.length - 1 || $ === 1 && y.length == 2,
34607
34612
  // if the table has only 2 columns
34608
34613
  // if the table has only 2 columns,
34609
34614
  "border-l": $ == 0,
34615
+ "border-r": $ === y.length - 1,
34610
34616
  "border-b": k === ((A = x.getRowModel().rows) == null ? void 0 : A.length) - 1
34611
34617
  }),
34612
34618
  children: Y2(
@@ -34630,9 +34636,9 @@ function zJ({
34630
34636
  className: n,
34631
34637
  ...r
34632
34638
  }) {
34633
- const { customCards: o } = jc(), i = oe.useRef(null), s = Le((U) => U.themeStyle), a = Le((U) => U.selectedSheetId), l = Le((U) => U.selectedFrameId), c = Le(
34634
- (U) => U.isDashboardEditing
34635
- ), u = e.cards.find((U) => U.id === e.activeCardId);
34639
+ const { customCards: o } = jc(), i = oe.useRef(null), s = Le((W) => W.themeStyle), a = Le((W) => W.selectedSheetId), l = Le((W) => W.selectedFrameId), c = Le(
34640
+ (W) => W.isDashboardEditing
34641
+ ), u = e.cards.find((W) => W.id === e.activeCardId);
34636
34642
  TK(e, i);
34637
34643
  const {
34638
34644
  isError: f,
@@ -34647,16 +34653,16 @@ function zJ({
34647
34653
  setSelectedSchemaName: P,
34648
34654
  setSelectedTableName: k
34649
34655
  } = VD();
34650
- function M(U) {
34651
- U.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && S(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && k(u == null ? void 0 : u.lastSelectedTable);
34656
+ function M(W) {
34657
+ W.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && S(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && k(u == null ? void 0 : u.lastSelectedTable);
34652
34658
  }
34653
34659
  function $() {
34654
34660
  if (o && o.length > 0) {
34655
- const U = o.find((W) => W.cardId === u.id);
34656
- if (U && U.replaceDefault) {
34657
- const W = U.content;
34658
- if (W)
34659
- return /* @__PURE__ */ O.jsx(W, { card: u });
34661
+ const W = o.find((U) => U.cardId === u.id);
34662
+ if (W && W.replaceDefault) {
34663
+ const U = W.content;
34664
+ if (U)
34665
+ return /* @__PURE__ */ O.jsx(U, { card: u });
34660
34666
  }
34661
34667
  }
34662
34668
  return u.type === "kpi" ? /* @__PURE__ */ O.jsx(oK, { isLoading: p || g, card: u }) : j;
@@ -34670,10 +34676,10 @@ function zJ({
34670
34676
  /* @__PURE__ */ O.jsx("div", { className: "relative flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ O.jsx(FJ, { card: u, data: u.data }) })
34671
34677
  );
34672
34678
  if (o && o.length > 0) {
34673
- const U = o.find((W) => W.cardId === u.id);
34674
- if (U && U.content) {
34675
- const W = U.content;
34676
- return /* @__PURE__ */ O.jsx(W, { card: u });
34679
+ const W = o.find((U) => U.cardId === u.id);
34680
+ if (W && W.content) {
34681
+ const U = W.content;
34682
+ return /* @__PURE__ */ O.jsx(U, { card: u });
34677
34683
  }
34678
34684
  }
34679
34685
  if (m)
@@ -34688,11 +34694,11 @@ function zJ({
34688
34694
  }
34689
34695
  function F() {
34690
34696
  if (o && o.length > 0) {
34691
- const U = o.find((W) => W.cardId === u.id);
34692
- if (U && U.footer) {
34693
- const W = U.footer;
34694
- if (W)
34695
- return /* @__PURE__ */ O.jsx(W, { card: u });
34697
+ const W = o.find((U) => U.cardId === u.id);
34698
+ if (W && W.footer) {
34699
+ const U = W.footer;
34700
+ if (U)
34701
+ return /* @__PURE__ */ O.jsx(U, { card: u });
34696
34702
  }
34697
34703
  }
34698
34704
  return t || null;
@@ -34706,7 +34712,7 @@ function zJ({
34706
34712
  xc,
34707
34713
  {
34708
34714
  text: u.title,
34709
- onSave: (U) => x(a, u.id, U),
34715
+ onSave: (W) => x(a, u.id, W),
34710
34716
  children: /* @__PURE__ */ O.jsx(Og, { className: "text-base", children: u.title })
34711
34717
  }
34712
34718
  ),
@@ -34731,7 +34737,7 @@ function zJ({
34731
34737
  xc,
34732
34738
  {
34733
34739
  text: (u == null ? void 0 : u.description) || "",
34734
- onSave: (U) => w(a, u.id, U),
34740
+ onSave: (W) => w(a, u.id, W),
34735
34741
  children: /* @__PURE__ */ O.jsxs(kR, { children: [
34736
34742
  " ",
34737
34743
  u.description
@@ -36313,7 +36319,7 @@ function ZZ() {
36313
36319
  function j(R) {
36314
36320
  return R.displayName || "Context";
36315
36321
  }
36316
- function U(R) {
36322
+ function W(R) {
36317
36323
  if (R == null)
36318
36324
  return null;
36319
36325
  if (typeof R.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function")
@@ -36346,11 +36352,11 @@ function ZZ() {
36346
36352
  return F(R, R.render, "ForwardRef");
36347
36353
  case f:
36348
36354
  var $e = R.displayName || null;
36349
- return $e !== null ? $e : U(R.type) || "Memo";
36355
+ return $e !== null ? $e : W(R.type) || "Memo";
36350
36356
  case p: {
36351
36357
  var qe = R, Ke = qe._payload, Be = qe._init;
36352
36358
  try {
36353
- return U(Be(Ke));
36359
+ return W(Be(Ke));
36354
36360
  } catch {
36355
36361
  return null;
36356
36362
  }
@@ -36358,7 +36364,7 @@ function ZZ() {
36358
36364
  }
36359
36365
  return null;
36360
36366
  }
36361
- var W = Object.assign, z = 0, Q, q, X, Z, D, V, K;
36367
+ var U = Object.assign, z = 0, Q, q, X, Z, D, V, K;
36362
36368
  function I() {
36363
36369
  }
36364
36370
  I.__reactDisabledLog = !0;
@@ -36394,25 +36400,25 @@ function ZZ() {
36394
36400
  writable: !0
36395
36401
  };
36396
36402
  Object.defineProperties(console, {
36397
- log: W({}, R, {
36403
+ log: U({}, R, {
36398
36404
  value: Q
36399
36405
  }),
36400
- info: W({}, R, {
36406
+ info: U({}, R, {
36401
36407
  value: q
36402
36408
  }),
36403
- warn: W({}, R, {
36409
+ warn: U({}, R, {
36404
36410
  value: X
36405
36411
  }),
36406
- error: W({}, R, {
36412
+ error: U({}, R, {
36407
36413
  value: Z
36408
36414
  }),
36409
- group: W({}, R, {
36415
+ group: U({}, R, {
36410
36416
  value: D
36411
36417
  }),
36412
- groupCollapsed: W({}, R, {
36418
+ groupCollapsed: U({}, R, {
36413
36419
  value: V
36414
36420
  }),
36415
- groupEnd: W({}, R, {
36421
+ groupEnd: U({}, R, {
36416
36422
  value: K
36417
36423
  })
36418
36424
  });
@@ -36622,8 +36628,8 @@ function ZZ() {
36622
36628
  }
36623
36629
  function hr(R, J) {
36624
36630
  if (typeof R.ref == "string" && je.current && J && je.current.stateNode !== J) {
36625
- var de = U(je.current.type);
36626
- on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(je.current.type), R.ref), on[de] = !0);
36631
+ var de = W(je.current.type);
36632
+ on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(je.current.type), R.ref), on[de] = !0);
36627
36633
  }
36628
36634
  }
36629
36635
  function sn(R, J) {
@@ -36711,7 +36717,7 @@ function ZZ() {
36711
36717
  function _i() {
36712
36718
  {
36713
36719
  if (Tt.current) {
36714
- var R = U(Tt.current.type);
36720
+ var R = W(Tt.current.type);
36715
36721
  if (R)
36716
36722
  return `
36717
36723
 
@@ -36754,7 +36760,7 @@ Check the top-level render call using <` + de + ">.");
36754
36760
  return;
36755
36761
  Xs[de] = !0;
36756
36762
  var $e = "";
36757
- R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + U(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
36763
+ R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + W(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
36758
36764
  }
36759
36765
  }
36760
36766
  function Js(R, J) {
@@ -36791,11 +36797,11 @@ Check the top-level render call using <` + de + ">.");
36791
36797
  else
36792
36798
  return;
36793
36799
  if (de) {
36794
- var $e = U(J);
36800
+ var $e = W(J);
36795
36801
  Ze(de, R.props, "prop", $e, R);
36796
36802
  } else if (J.PropTypes !== void 0 && !En) {
36797
36803
  En = !0;
36798
- var qe = U(J);
36804
+ var qe = W(J);
36799
36805
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", qe || "Unknown");
36800
36806
  }
36801
36807
  typeof J.getDefaultProps == "function" && !J.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -36822,7 +36828,7 @@ Check the top-level render call using <` + de + ">.");
36822
36828
  var At = qc(qe);
36823
36829
  At ? Fe += At : Fe += _i();
36824
36830
  var lt;
36825
- R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (U(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
36831
+ R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (W(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
36826
36832
  }
36827
36833
  var dt = it(R, J, de, qe, Ke);
36828
36834
  if (dt == null)
@@ -37597,10 +37603,10 @@ function fte(e, t) {
37597
37603
  }, j = function(q) {
37598
37604
  var X;
37599
37605
  (X = n.onDayTouchMove) === null || X === void 0 || X.call(n, e, t, q);
37600
- }, U = function(q) {
37606
+ }, W = function(q) {
37601
37607
  var X;
37602
37608
  (X = n.onDayTouchStart) === null || X === void 0 || X.call(n, e, t, q);
37603
- }, W = function(q) {
37609
+ }, U = function(q) {
37604
37610
  var X;
37605
37611
  (X = n.onDayKeyUp) === null || X === void 0 || X.call(n, e, t, q);
37606
37612
  }, z = function(q) {
@@ -37637,7 +37643,7 @@ function fte(e, t) {
37637
37643
  onFocus: E,
37638
37644
  onBlur: S,
37639
37645
  onKeyDown: z,
37640
- onKeyUp: W,
37646
+ onKeyUp: U,
37641
37647
  onMouseEnter: P,
37642
37648
  onMouseLeave: k,
37643
37649
  onPointerEnter: M,
@@ -37645,7 +37651,7 @@ function fte(e, t) {
37645
37651
  onTouchCancel: A,
37646
37652
  onTouchEnd: F,
37647
37653
  onTouchMove: j,
37648
- onTouchStart: U
37654
+ onTouchStart: W
37649
37655
  };
37650
37656
  return Q;
37651
37657
  }
@@ -39074,14 +39080,14 @@ function Rne(e, t) {
39074
39080
  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: p = !1, virtual: g = null, ...m } = e, v = !1, y = null, [x = f ? [] : void 0, w] = Yte(n, o, r), [_, E] = ax(Pne, { dataRef: Y6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), S = ce(!1), P = ce({ static: !1, hold: !1 }), k = ce(null), M = ce(null), $ = ce(null), A = ce(null), F = Et(typeof a == "string" ? (ee, se) => {
39075
39081
  let we = a;
39076
39082
  return (ee == null ? void 0 : ee[we]) === (se == null ? void 0 : se[we]);
39077
- } : a ?? ((ee, se) => ee === se)), j = Et((ee) => _.options.findIndex((se) => F(se.dataRef.current.value, ee))), U = We((ee) => nr(z.mode, { 1: () => x.some((se) => F(se, ee)), 0: () => F(x, ee) }), [x]), W = Et((ee) => _.activeOptionIndex === j(ee)), z = $n(() => ({ ..._, immediate: v, optionsPropsRef: P, labelRef: k, inputRef: M, buttonRef: $, optionsRef: A, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
39083
+ } : a ?? ((ee, se) => ee === se)), j = Et((ee) => _.options.findIndex((se) => F(se.dataRef.current.value, ee))), W = We((ee) => nr(z.mode, { 1: () => x.some((se) => F(se, ee)), 0: () => F(x, ee) }), [x]), U = Et((ee) => _.activeOptionIndex === j(ee)), z = $n(() => ({ ..._, immediate: v, optionsPropsRef: P, labelRef: k, inputRef: M, buttonRef: $, optionsRef: A, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
39078
39084
  if (S.current && _.activeOptionIndex === null && _.options.length > 0) {
39079
39085
  let ee = _.options.findIndex((se) => !se.dataRef.current.disabled);
39080
39086
  if (ee !== -1)
39081
39087
  return ee;
39082
39088
  }
39083
39089
  return _.activeOptionIndex;
39084
- }, calculateIndex: j, compare: F, isSelected: U, isActive: W, nullable: u, __demoMode: c }), [x, r, l, f, u, c, _, y]);
39090
+ }, calculateIndex: j, compare: F, isSelected: W, isActive: U, nullable: u, __demoMode: c }), [x, r, l, f, u, c, _, y]);
39085
39091
  Vn(() => {
39086
39092
  }, [y, void 0]), Vn(() => {
39087
39093
  _.dataRef.current = z;
@@ -39213,11 +39219,11 @@ function Dne(e, t) {
39213
39219
  }), j = K1(() => {
39214
39220
  if (g.labelId)
39215
39221
  return [g.labelId].join(" ");
39216
- }, [g.labelId]), U = $n(() => ({ open: g.comboboxState === 0, disabled: g.disabled }), [g]), W = { ref: v, id: l, role: "combobox", type: f, "aria-controls": (n = g.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": g.comboboxState === 0, "aria-activedescendant": g.activeOptionIndex === null ? void 0 : g.virtual ? (r = g.options.find((z) => {
39222
+ }, [g.labelId]), W = $n(() => ({ open: g.comboboxState === 0, disabled: g.disabled }), [g]), U = { ref: v, id: l, role: "combobox", type: f, "aria-controls": (n = g.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": g.comboboxState === 0, "aria-activedescendant": g.activeOptionIndex === null ? void 0 : g.virtual ? (r = g.options.find((z) => {
39217
39223
  var Q;
39218
39224
  return !((Q = g.virtual) != null && Q.disabled(z.dataRef.current.value)) && g.compare(z.dataRef.current.value, g.virtual.options[g.activeOptionIndex]);
39219
39225
  })) == null ? void 0 : r.id : (o = g.options[g.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": j, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : g.defaultValue !== void 0 ? u == null ? void 0 : u(g.defaultValue) : null) != null ? s : g.defaultValue, disabled: g.disabled, onCompositionStart: P, onCompositionEnd: k, onKeyDown: M, onChange: $, onFocus: F, onBlur: A };
39220
- return Ji({ ourProps: W, theirProps: p, slot: U, defaultTag: $ne, name: "Combobox.Input" });
39226
+ return Ji({ ourProps: U, theirProps: p, slot: W, defaultTag: $ne, name: "Combobox.Input" });
39221
39227
  }
39222
39228
  let Tne = "button";
39223
39229
  function kne(e, t) {
@@ -39490,12 +39496,12 @@ function ore(e, t) {
39490
39496
  return nr(P, { hidden: () => A(y), visible: () => $(y) });
39491
39497
  }
39492
39498
  }, [P, y, $, A, _, w]);
39493
- let F = fi({ base: ps(v.className), enter: ps(l), enterFrom: ps(c), enterTo: ps(u), entered: ps(f), leave: ps(p), leaveFrom: ps(g), leaveTo: ps(m) }), j = nre({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }), U = X1();
39499
+ let F = fi({ base: ps(v.className), enter: ps(l), enterFrom: ps(c), enterTo: ps(u), entered: ps(f), leave: ps(p), leaveFrom: ps(g), leaveTo: ps(m) }), j = nre({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }), W = X1();
39494
39500
  Se(() => {
39495
- if (U && P === "visible" && y.current === null)
39501
+ if (W && P === "visible" && y.current === null)
39496
39502
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
39497
- }, [y, P, U]);
39498
- let W = S && !E, z = E && _ && S, Q = !U || W ? "idle" : _ ? "enter" : "leave", q = qne(0), X = Et((ae) => nr(ae, { enter: () => {
39503
+ }, [y, P, W]);
39504
+ let U = S && !E, z = E && _ && S, Q = !W || U ? "idle" : _ ? "enter" : "leave", q = qne(0), X = Et((ae) => nr(ae, { enter: () => {
39499
39505
  q.addFlag(io.Opening), j.current.beforeEnter();
39500
39506
  }, leave: () => {
39501
39507
  q.addFlag(io.Closing), j.current.beforeLeave();
@@ -39820,7 +39826,7 @@ function fre() {
39820
39826
  )) == null ? void 0 : k[0].layouts, o = Le(($) => $.dashboard.filters), i = Le(
39821
39827
  ($) => {
39822
39828
  var A, F, j;
39823
- return (j = (F = (A = $.dashboard) == null ? void 0 : A.sheets) == null ? void 0 : F.find((U) => U.id === n)) == null ? void 0 : j.frames;
39829
+ return (j = (F = (A = $.dashboard) == null ? void 0 : A.sheets) == null ? void 0 : F.find((W) => W.id === n)) == null ? void 0 : j.frames;
39824
39830
  }
39825
39831
  ), {
39826
39832
  getSelectedSheet: s,
@@ -41000,8 +41006,8 @@ async function uM(...e) {
41000
41006
  if (!g)
41001
41007
  return;
41002
41008
  const [m, v] = sM(t, g), [y, x, w, _] = ji.get(t), E = () => {
41003
- const U = y[g];
41004
- return (ai(i.revalidate) ? i.revalidate(m().data, p) : i.revalidate !== !1) && (delete w[g], delete _[g], U && U[0]) ? U[0](cM).then(() => m().data) : m().data;
41009
+ const W = y[g];
41010
+ return (ai(i.revalidate) ? i.revalidate(m().data, p) : i.revalidate !== !1) && (delete w[g], delete _[g], W && W[0]) ? W[0](cM).then(() => m().data) : m().data;
41005
41011
  };
41006
41012
  if (e.length < 3)
41007
41013
  return E();
@@ -41018,12 +41024,12 @@ async function uM(...e) {
41018
41024
  })), ai(S))
41019
41025
  try {
41020
41026
  S = S(j);
41021
- } catch (U) {
41022
- P = U;
41027
+ } catch (W) {
41028
+ P = W;
41023
41029
  }
41024
41030
  if (S && Tre(S))
41025
- if (S = await S.catch((U) => {
41026
- P = U;
41031
+ if (S = await S.catch((W) => {
41032
+ P = W;
41027
41033
  }), k !== x[g][0]) {
41028
41034
  if (P)
41029
41035
  throw P;
@@ -41035,9 +41041,9 @@ async function uM(...e) {
41035
41041
  }));
41036
41042
  if (s && !P)
41037
41043
  if (ai(s)) {
41038
- const U = s(S, j);
41044
+ const W = s(S, j);
41039
41045
  v({
41040
- data: U,
41046
+ data: W,
41041
41047
  error: kr,
41042
41048
  _c: kr
41043
41049
  });
@@ -41183,8 +41189,8 @@ const AP = oe.use || ((e) => {
41183
41189
  }), Xb = {
41184
41190
  dedupe: !0
41185
41191
  }, ioe = (e, t, n) => {
41186
- const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: p } = n, [g, m, v, y] = ji.get(r), [x, w] = iw(e), _ = ce(!1), E = ce(!1), S = ce(x), P = ce(t), k = ce(n), M = () => k.current, $ = () => M().isVisible() && M().isOnline(), [A, F, j, U] = sM(r, x), W = ce({}).current, z = Lt(s) ? n.fallback[x] : s, Q = (G, ye) => {
41187
- for (const Oe in W) {
41192
+ const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: p } = n, [g, m, v, y] = ji.get(r), [x, w] = iw(e), _ = ce(!1), E = ce(!1), S = ce(x), P = ce(t), k = ce(n), M = () => k.current, $ = () => M().isVisible() && M().isOnline(), [A, F, j, W] = sM(r, x), U = ce({}).current, z = Lt(s) ? n.fallback[x] : s, Q = (G, ye) => {
41193
+ for (const Oe in U) {
41188
41194
  const ke = Oe;
41189
41195
  if (ke === "data") {
41190
41196
  if (!o(G[ke], ye[ke]) && (!Lt(G[ke]) || !o(le, ye[ke])))
@@ -41201,7 +41207,7 @@ const AP = oe.use || ((e) => {
41201
41207
  isLoading: !0,
41202
41208
  ...Ze
41203
41209
  } : Ze;
41204
- }, Oe = A(), ke = U(), Ae = ye(Oe), Ye = Oe === ke ? Ae : ye(ke);
41210
+ }, Oe = A(), ke = W(), Ae = ye(Oe), Ye = Oe === ke ? Ae : ye(ke);
41205
41211
  let He = Ae;
41206
41212
  return [
41207
41213
  () => {
@@ -41353,16 +41359,16 @@ const AP = oe.use || ((e) => {
41353
41359
  return {
41354
41360
  mutate: we,
41355
41361
  get data() {
41356
- return W.data = !0, le;
41362
+ return U.data = !0, le;
41357
41363
  },
41358
41364
  get error() {
41359
- return W.error = !0, I;
41365
+ return U.error = !0, I;
41360
41366
  },
41361
41367
  get isValidating() {
41362
- return W.isValidating = !0, ie;
41368
+ return U.isValidating = !0, ie;
41363
41369
  },
41364
41370
  get isLoading() {
41365
- return W.isLoading = !0, ee;
41371
+ return U.isLoading = !0, ee;
41366
41372
  }
41367
41373
  };
41368
41374
  }, rp = roe(ioe);
@@ -41381,7 +41387,7 @@ var soe = async (e, t, n, r, o, i, s, a, l, c, u, f, p, g, m, v, y) => {
41381
41387
  toolInvocations: A,
41382
41388
  function_call: F,
41383
41389
  tool_calls: j,
41384
- tool_call_id: U
41390
+ tool_call_id: W
41385
41391
  }) => ({
41386
41392
  role: E,
41387
41393
  content: S,
@@ -41393,7 +41399,7 @@ var soe = async (e, t, n, r, o, i, s, a, l, c, u, f, p, g, m, v, y) => {
41393
41399
  ...$ !== void 0 && { annotations: $ },
41394
41400
  ...A !== void 0 && { toolInvocations: A },
41395
41401
  // outdated function/tool call handling (TODO deprecate):
41396
- tool_call_id: U,
41402
+ tool_call_id: W,
41397
41403
  ...F !== void 0 && { function_call: F },
41398
41404
  ...j !== void 0 && { tool_calls: j }
41399
41405
  })
@@ -41472,7 +41478,7 @@ function aoe({
41472
41478
  [$, "messages"],
41473
41479
  null,
41474
41480
  { fallbackData: n ?? A }
41475
- ), { data: U = !1, mutate: W } = rp(
41481
+ ), { data: W = !1, mutate: U } = rp(
41476
41482
  [$, "loading"],
41477
41483
  null
41478
41484
  ), { data: z, mutate: Q } = rp([$, "streamData"], null), { data: q = void 0, mutate: X } = rp([$, "error"], null), Z = ce(F || []);
@@ -41495,7 +41501,7 @@ function aoe({
41495
41501
  async (G) => {
41496
41502
  const ye = Z.current.length;
41497
41503
  try {
41498
- W(!0), X(void 0);
41504
+ U(!0), X(void 0);
41499
41505
  const Ae = new AbortController();
41500
41506
  D.current = Ae, await $re({
41501
41507
  getStreamedResponse: () => soe(
@@ -41529,7 +41535,7 @@ function aoe({
41529
41535
  return D.current = null, null;
41530
41536
  y && Ae instanceof Error && y(Ae), X(Ae);
41531
41537
  } finally {
41532
- W(!1);
41538
+ U(!1);
41533
41539
  }
41534
41540
  const Oe = Z.current, ke = Oe[Oe.length - 1];
41535
41541
  // ensure we actually have new messages (to prevent infinite loops in case of errors):
@@ -41541,7 +41547,7 @@ function aoe({
41541
41547
  },
41542
41548
  [
41543
41549
  j,
41544
- W,
41550
+ U,
41545
41551
  e,
41546
41552
  V,
41547
41553
  m,
@@ -41732,7 +41738,7 @@ function aoe({
41732
41738
  setInput: ie,
41733
41739
  handleInputChange: se,
41734
41740
  handleSubmit: ee,
41735
- isLoading: U,
41741
+ isLoading: W,
41736
41742
  data: z,
41737
41743
  addToolResult: we,
41738
41744
  experimental_addToolResult: we
@@ -44796,12 +44802,12 @@ function use(e, t, n) {
44796
44802
  )(z) : j(z);
44797
44803
  }
44798
44804
  function j(z) {
44799
- return z === a ? (P.enter("codeFencedFenceSequence"), U(z)) : M(z);
44800
- }
44801
- function U(z) {
44802
- return z === a ? ($++, P.consume(z), U) : $ >= s ? (P.exit("codeFencedFenceSequence"), Bt(z) ? nn(P, W, "whitespace")(z) : W(z)) : M(z);
44805
+ return z === a ? (P.enter("codeFencedFenceSequence"), W(z)) : M(z);
44803
44806
  }
44804
44807
  function W(z) {
44808
+ return z === a ? ($++, P.consume(z), W) : $ >= s ? (P.exit("codeFencedFenceSequence"), Bt(z) ? nn(P, U, "whitespace")(z) : U(z)) : M(z);
44809
+ }
44810
+ function U(z) {
44805
44811
  return z === null || st(z) ? (P.exit("codeFencedFence"), k(z)) : M(z);
44806
44812
  }
44807
44813
  }
@@ -45355,21 +45361,21 @@ function zse(e, t, n) {
45355
45361
  return I === 45 && o === 2 ? (e.consume(I), Q) : I === 60 && o === 1 ? (e.consume(I), q) : I === 62 && o === 4 ? (e.consume(I), V) : I === 63 && o === 3 ? (e.consume(I), D) : I === 93 && o === 5 ? (e.consume(I), Z) : st(I) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check(
45356
45362
  Nse,
45357
45363
  K,
45358
- U
45359
- )(I)) : I === null || st(I) ? (e.exit("htmlFlowData"), U(I)) : (e.consume(I), j);
45364
+ W
45365
+ )(I)) : I === null || st(I) ? (e.exit("htmlFlowData"), W(I)) : (e.consume(I), j);
45360
45366
  }
45361
- function U(I) {
45367
+ function W(I) {
45362
45368
  return e.check(
45363
45369
  Lse,
45364
- W,
45370
+ U,
45365
45371
  K
45366
45372
  )(I);
45367
45373
  }
45368
- function W(I) {
45374
+ function U(I) {
45369
45375
  return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), z;
45370
45376
  }
45371
45377
  function z(I) {
45372
- return I === null || st(I) ? U(I) : (e.enter("htmlFlowData"), j(I));
45378
+ return I === null || st(I) ? W(I) : (e.enter("htmlFlowData"), j(I));
45373
45379
  }
45374
45380
  function Q(I) {
45375
45381
  return I === 45 ? (e.consume(I), D) : j(I);
@@ -45486,13 +45492,13 @@ function Hse(e, t, n) {
45486
45492
  return D === 61 ? (e.consume(D), j) : st(D) ? (s = F, q(D)) : Bt(D) ? (e.consume(D), F) : $(D);
45487
45493
  }
45488
45494
  function j(D) {
45489
- return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), o = D, U) : st(D) ? (s = j, q(D)) : Bt(D) ? (e.consume(D), j) : (e.consume(D), W);
45490
- }
45491
- function U(D) {
45492
- return D === o ? (e.consume(D), o = void 0, z) : D === null ? n(D) : st(D) ? (s = U, q(D)) : (e.consume(D), U);
45495
+ return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), o = D, W) : st(D) ? (s = j, q(D)) : Bt(D) ? (e.consume(D), j) : (e.consume(D), U);
45493
45496
  }
45494
45497
  function W(D) {
45495
- return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || zr(D) ? $(D) : (e.consume(D), W);
45498
+ return D === o ? (e.consume(D), o = void 0, z) : D === null ? n(D) : st(D) ? (s = W, q(D)) : (e.consume(D), W);
45499
+ }
45500
+ function U(D) {
45501
+ return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || zr(D) ? $(D) : (e.consume(D), U);
45496
45502
  }
45497
45503
  function z(D) {
45498
45504
  return D === 47 || D === 62 || zr(D) ? $(D) : n(D);
@@ -46097,12 +46103,12 @@ function xae(e, t, n) {
46097
46103
  return wae(s, F);
46098
46104
  }
46099
46105
  function m() {
46100
- const { line: F, column: j, offset: U, _index: W, _bufferIndex: z } = r;
46106
+ const { line: F, column: j, offset: W, _index: U, _bufferIndex: z } = r;
46101
46107
  return {
46102
46108
  line: F,
46103
46109
  column: j,
46104
- offset: U,
46105
- _index: W,
46110
+ offset: W,
46111
+ _index: U,
46106
46112
  _bufferIndex: z
46107
46113
  };
46108
46114
  }
@@ -46127,8 +46133,8 @@ function xae(e, t, n) {
46127
46133
  st(F) ? (r.line++, r.column = 1, r.offset += F === -3 ? 2 : 1, A()) : F !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = F;
46128
46134
  }
46129
46135
  function _(F, j) {
46130
- const U = j || {};
46131
- return U.type = F, U.start = m(), c.events.push(["enter", U, c]), a.push(U), U;
46136
+ const W = j || {};
46137
+ return W.type = F, W.start = m(), c.events.push(["enter", W, c]), a.push(W), W;
46132
46138
  }
46133
46139
  function E(F) {
46134
46140
  const j = a.pop();
@@ -46141,13 +46147,13 @@ function xae(e, t, n) {
46141
46147
  j.restore();
46142
46148
  }
46143
46149
  function k(F, j) {
46144
- return U;
46145
- function U(W, z, Q) {
46150
+ return W;
46151
+ function W(U, z, Q) {
46146
46152
  let q, X, Z, D;
46147
- return Array.isArray(W) ? K(W) : "tokenize" in W ? (
46153
+ return Array.isArray(U) ? K(U) : "tokenize" in U ? (
46148
46154
  // @ts-expect-error Looks like a construct.
46149
- K([W])
46150
- ) : V(W);
46155
+ K([U])
46156
+ ) : V(U);
46151
46157
  function V(fe) {
46152
46158
  return pe;
46153
46159
  function pe(ie) {
@@ -46194,13 +46200,13 @@ function xae(e, t, n) {
46194
46200
  ), F.resolveTo && (c.events = F.resolveTo(c.events, c));
46195
46201
  }
46196
46202
  function $() {
46197
- const F = m(), j = c.previous, U = c.currentConstruct, W = c.events.length, z = Array.from(a);
46203
+ const F = m(), j = c.previous, W = c.currentConstruct, U = c.events.length, z = Array.from(a);
46198
46204
  return {
46199
46205
  restore: Q,
46200
- from: W
46206
+ from: U
46201
46207
  };
46202
46208
  function Q() {
46203
- r = F, c.previous = j, c.currentConstruct = U, c.events.length = W, a = z, A();
46209
+ r = F, c.previous = j, c.currentConstruct = W, c.events.length = U, a = z, A();
46204
46210
  }
46205
46211
  }
46206
46212
  function A() {
@@ -46486,9 +46492,9 @@ function jae(e) {
46486
46492
  emphasis: l(),
46487
46493
  hardBreakEscape: l(j),
46488
46494
  hardBreakTrailing: l(j),
46489
- htmlFlow: l(U),
46495
+ htmlFlow: l(W),
46490
46496
  htmlFlowData: A,
46491
- htmlText: l(W),
46497
+ htmlText: l(U),
46492
46498
  htmlTextData: A,
46493
46499
  image: l(q),
46494
46500
  label: Z,
@@ -46752,11 +46758,11 @@ function jae(e) {
46752
46758
  function j() {
46753
46759
  this.data.atHardBreak = !0;
46754
46760
  }
46755
- function U() {
46761
+ function W() {
46756
46762
  const he = this.resume(), Re = this.stack[this.stack.length - 1];
46757
46763
  Re.value = he;
46758
46764
  }
46759
- function W() {
46765
+ function U() {
46760
46766
  const he = this.resume(), Re = this.stack[this.stack.length - 1];
46761
46767
  Re.value = he;
46762
46768
  }
@@ -49234,13 +49240,13 @@ function cce() {
49234
49240
  /* @__PURE__ */ O.jsx("div", { className: "text-muted-foreground", children: F ? /* @__PURE__ */ O.jsx(rK, { className: "size-5 shrink-0" }) : /* @__PURE__ */ O.jsx(W2, { className: "size-5 shrink-0" }) }),
49235
49241
  /* @__PURE__ */ O.jsx("div", { children: /* @__PURE__ */ O.jsx(ace, { components: uce, children: A.content }) })
49236
49242
  ] }) }),
49237
- (j = A.toolInvocations) == null ? void 0 : j.map((U) => {
49238
- const W = U.toolCallId;
49239
- return "result" in U ? /* @__PURE__ */ O.jsx("div", { children: k(U) }, W) : /* @__PURE__ */ O.jsxs("div", { children: [
49243
+ (j = A.toolInvocations) == null ? void 0 : j.map((W) => {
49244
+ const U = W.toolCallId;
49245
+ return "result" in W ? /* @__PURE__ */ O.jsx("div", { children: k(W) }, U) : /* @__PURE__ */ O.jsxs("div", { children: [
49240
49246
  "Calling ",
49241
- U.toolName,
49247
+ W.toolName,
49242
49248
  "..."
49243
- ] }, W);
49249
+ ] }, U);
49244
49250
  })
49245
49251
  ]
49246
49252
  },
@@ -49271,14 +49277,14 @@ function cce() {
49271
49277
  Lr,
49272
49278
  {
49273
49279
  onClick: () => {
49274
- const U = $.args.chartTitle, W = $.args.connectionId;
49280
+ const W = $.args.chartTitle, U = $.args.connectionId;
49275
49281
  M({
49276
49282
  sql: $.args.sql,
49277
49283
  data: F.records,
49278
49284
  cardType: $.args.chartType,
49279
49285
  cardCfg: j,
49280
- cardTitle: U,
49281
- connectionId: W
49286
+ cardTitle: W,
49287
+ connectionId: U
49282
49288
  });
49283
49289
  },
49284
49290
  variant: "secondary",
@@ -49308,8 +49314,8 @@ function cce() {
49308
49314
  data: A,
49309
49315
  cardCfg: F,
49310
49316
  cardTitle: j,
49311
- connectionId: U,
49312
- cardType: W
49317
+ connectionId: W,
49318
+ cardType: U
49313
49319
  }) {
49314
49320
  if (!s)
49315
49321
  return;
@@ -49325,14 +49331,14 @@ function cce() {
49325
49331
  }
49326
49332
  ],
49327
49333
  chartOptions: {
49328
- indexAxis: W === "horizontalBar" ? "y" : "x"
49334
+ indexAxis: U === "horizontalBar" ? "y" : "x"
49329
49335
  }
49330
49336
  },
49331
49337
  type: F.type,
49332
49338
  cfg: F,
49333
49339
  sql: $,
49334
49340
  data: A,
49335
- connectionId: U
49341
+ connectionId: W
49336
49342
  }, Q = {
49337
49343
  id: Cc(),
49338
49344
  cards: [z],
@@ -49488,14 +49494,14 @@ function mA({
49488
49494
  didLogMissingDefaultSizeWarning: !1
49489
49495
  }), Ld(() => {
49490
49496
  const {
49491
- callbacks: U,
49492
- constraints: W
49497
+ callbacks: W,
49498
+ constraints: U
49493
49499
  } = F.current;
49494
- F.current.id = A, F.current.idIsFromProps = s !== void 0, F.current.order = p, U.onCollapse = c, U.onExpand = u, U.onResize = f, W.collapsedSize = n, W.collapsible = r, W.defaultSize = o, W.maxSize = a, W.minSize = l;
49500
+ F.current.id = A, F.current.idIsFromProps = s !== void 0, F.current.order = p, W.onCollapse = c, W.onExpand = u, W.onResize = f, U.collapsedSize = n, U.collapsible = r, U.defaultSize = o, U.maxSize = a, U.minSize = l;
49495
49501
  }), Ld(() => {
49496
- const U = F.current;
49497
- return k(U), () => {
49498
- $(U);
49502
+ const W = F.current;
49503
+ return k(W), () => {
49504
+ $(W);
49499
49505
  };
49500
49506
  }, [p, A, k, $]), gA(i, () => ({
49501
49507
  collapse: () => {
@@ -49516,8 +49522,8 @@ function mA({
49516
49522
  isExpanded() {
49517
49523
  return !P(F.current);
49518
49524
  },
49519
- resize: (U) => {
49520
- M(F.current, U);
49525
+ resize: (W) => {
49526
+ M(F.current, W);
49521
49527
  }
49522
49528
  }), [x, w, _, P, A, M]);
49523
49529
  const j = E(F.current, o);
@@ -50309,7 +50315,7 @@ function DA({
50309
50315
  RO(I, fe) || (y(fe), S.current.layout = fe, V && V(fe), Bl(ae, fe, x.current));
50310
50316
  }
50311
50317
  });
50312
- const U = Kr((D) => function(K) {
50318
+ const W = Kr((D) => function(K) {
50313
50319
  K.preventDefault();
50314
50320
  const {
50315
50321
  direction: I,
@@ -50336,7 +50342,7 @@ function DA({
50336
50342
  trigger: _A(K) ? "keyboard" : "mouse-or-touch"
50337
50343
  }), Ae = !ap(ie, ke);
50338
50344
  (SA(K) || CA(K)) && _.current != G && (_.current = G, l0(Ae ? ye ? "horizontal" : "vertical" : ye ? G < 0 ? "horizontal-min" : "horizontal-max" : G < 0 ? "vertical-min" : "vertical-max")), Ae && (y(ke), S.current.layout = ke, pe && pe(ke), Bl(ee, ke, x.current));
50339
- }, []), W = Kr((D, V) => {
50345
+ }, []), U = Kr((D, V) => {
50340
50346
  const {
50341
50347
  onLayout: K
50342
50348
  } = E.current, {
@@ -50387,12 +50393,12 @@ function DA({
50387
50393
  isPanelCollapsed: A,
50388
50394
  isPanelExpanded: F,
50389
50395
  registerPanel: j,
50390
- registerResizeHandle: U,
50391
- resizePanel: W,
50396
+ registerResizeHandle: W,
50397
+ resizePanel: U,
50392
50398
  startDragging: z,
50393
50399
  stopDragging: Q,
50394
50400
  unregisterPanel: q
50395
- }), [P, g, r, k, M, $, p, A, F, j, U, W, z, Q, q]), Z = {
50401
+ }), [P, g, r, k, M, $, p, A, F, j, W, U, z, Q, q]), Z = {
50396
50402
  display: "flex",
50397
50403
  flexDirection: r === "horizontal" ? "row" : "column",
50398
50404
  height: "100%",
@@ -50517,15 +50523,15 @@ function Sw({
50517
50523
  }, [n, w, v]), qa(() => {
50518
50524
  if (n || P == null || !_)
50519
50525
  return;
50520
- const A = (W) => {
50521
- P(W);
50522
- }, F = (W) => {
50523
- P(W);
50526
+ const A = (U) => {
50527
+ P(U);
50528
+ }, F = (U) => {
50529
+ P(U);
50524
50530
  }, j = c.current;
50525
50531
  yt(j);
50526
- const U = j.ownerDocument;
50527
- return U.body.addEventListener("contextmenu", M), U.body.addEventListener("mousemove", A), U.body.addEventListener("touchmove", A), U.body.addEventListener("mouseleave", F), window.addEventListener("mouseup", M), window.addEventListener("touchend", M), () => {
50528
- U.body.removeEventListener("contextmenu", M), U.body.removeEventListener("mousemove", A), U.body.removeEventListener("touchmove", A), U.body.removeEventListener("mouseleave", F), window.removeEventListener("mouseup", M), window.removeEventListener("touchend", M);
50532
+ const W = j.ownerDocument;
50533
+ return W.body.addEventListener("contextmenu", M), W.body.addEventListener("mousemove", A), W.body.addEventListener("touchmove", A), W.body.addEventListener("mouseleave", F), window.addEventListener("mouseup", M), window.addEventListener("touchend", M), () => {
50534
+ W.body.removeEventListener("contextmenu", M), W.body.removeEventListener("mousemove", A), W.body.removeEventListener("touchmove", A), W.body.removeEventListener("mouseleave", F), window.removeEventListener("mouseup", M), window.removeEventListener("touchend", M);
50529
50535
  };
50530
50536
  }, [p, n, _, P, M]), Rce({
50531
50537
  disabled: n,
@@ -50845,7 +50851,7 @@ const nx = [
50845
50851
  onDismiss: () => n.onOpenChange(!1)
50846
50852
  }));
50847
50853
  }), Pw = /* @__PURE__ */ ve((e, t) => {
50848
- const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: g, disableOutsideScroll: m, ...v } = e, y = hl(Uo, n), x = Ef(Uo, n), w = Cw(n), _ = AA(n), E = Fce(n), [S, P] = Ee(null), k = ce(null), M = pt(t, k, y.onContentChange), $ = ce(0), A = ce(""), F = ce(0), j = ce(null), U = ce("right"), W = ce(0), z = m ? im : xr, Q = m ? {
50854
+ const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: g, disableOutsideScroll: m, ...v } = e, y = hl(Uo, n), x = Ef(Uo, n), w = Cw(n), _ = AA(n), E = Fce(n), [S, P] = Ee(null), k = ce(null), M = pt(t, k, y.onContentChange), $ = ce(0), A = ce(""), F = ce(0), j = ce(null), W = ce("right"), U = ce(0), z = m ? im : xr, Q = m ? {
50849
50855
  as: qi,
50850
50856
  allowPinchZoom: !0
50851
50857
  } : void 0, q = (Z) => {
@@ -50871,7 +50877,7 @@ const nx = [
50871
50877
  Se(() => () => window.clearTimeout($.current), []), em();
50872
50878
  const X = We((Z) => {
50873
50879
  var D, V;
50874
- return U.current === ((D = j.current) === null || D === void 0 ? void 0 : D.side) && gue(Z, (V = j.current) === null || V === void 0 ? void 0 : V.area);
50880
+ return W.current === ((D = j.current) === null || D === void 0 ? void 0 : D.side) && gue(Z, (V = j.current) === null || V === void 0 ? void 0 : V.area);
50875
50881
  }, []);
50876
50882
  return /* @__PURE__ */ B(Uce, {
50877
50883
  scope: n,
@@ -50953,10 +50959,10 @@ const nx = [
50953
50959
  Z.currentTarget.contains(Z.target) || (window.clearTimeout($.current), A.current = "");
50954
50960
  }),
50955
50961
  onPointerMove: Te(e.onPointerMove, Bd((Z) => {
50956
- const D = Z.target, V = W.current !== Z.clientX;
50962
+ const D = Z.target, V = U.current !== Z.clientX;
50957
50963
  if (Z.currentTarget.contains(D) && V) {
50958
- const K = Z.clientX > W.current ? "right" : "left";
50959
- U.current = K, W.current = Z.clientX;
50964
+ const K = Z.clientX > U.current ? "right" : "left";
50965
+ W.current = K, U.current = Z.clientX;
50960
50966
  }
50961
50967
  }))
50962
50968
  })))))));
@@ -52095,10 +52101,10 @@ function hfe(...e) {
52095
52101
  }
52096
52102
  var pfe = (e) => {
52097
52103
  var t, n, r, o, i, s, a, l, c, u;
52098
- let { invert: f, toast: p, unstyled: g, interacting: m, setHeights: v, visibleToasts: y, heights: x, index: w, toasts: _, expanded: E, removeToast: S, defaultRichColors: P, closeButton: k, style: M, cancelButtonStyle: $, actionButtonStyle: A, className: F = "", descriptionClassName: j = "", duration: U, position: W, gap: z, loadingIcon: Q, expandByDefault: q, classNames: X, icons: Z, closeButtonAriaLabel: D = "Close toast", pauseWhenPageIsHidden: V, cn: K } = e, [I, ae] = oe.useState(!1), [le, fe] = oe.useState(!1), [pe, ie] = oe.useState(!1), [ee, se] = oe.useState(!1), [we, G] = oe.useState(0), [ye, Oe] = oe.useState(0), ke = oe.useRef(null), Ae = oe.useRef(null), Ye = w === 0, He = w + 1 <= y, Ne = p.type, Ze = p.dismissible !== !1, gt = p.className || "", Ft = p.descriptionClassName || "", Nt = oe.useMemo(() => x.findIndex((it) => it.toastId === p.id) || 0, [x, p.id]), gn = oe.useMemo(() => {
52104
+ let { invert: f, toast: p, unstyled: g, interacting: m, setHeights: v, visibleToasts: y, heights: x, index: w, toasts: _, expanded: E, removeToast: S, defaultRichColors: P, closeButton: k, style: M, cancelButtonStyle: $, actionButtonStyle: A, className: F = "", descriptionClassName: j = "", duration: W, position: U, gap: z, loadingIcon: Q, expandByDefault: q, classNames: X, icons: Z, closeButtonAriaLabel: D = "Close toast", pauseWhenPageIsHidden: V, cn: K } = e, [I, ae] = oe.useState(!1), [le, fe] = oe.useState(!1), [pe, ie] = oe.useState(!1), [ee, se] = oe.useState(!1), [we, G] = oe.useState(0), [ye, Oe] = oe.useState(0), ke = oe.useRef(null), Ae = oe.useRef(null), Ye = w === 0, He = w + 1 <= y, Ne = p.type, Ze = p.dismissible !== !1, gt = p.className || "", Ft = p.descriptionClassName || "", Nt = oe.useMemo(() => x.findIndex((it) => it.toastId === p.id) || 0, [x, p.id]), gn = oe.useMemo(() => {
52099
52105
  var it;
52100
52106
  return (it = p.closeButton) != null ? it : k;
52101
- }, [p.closeButton, k]), he = oe.useMemo(() => p.duration || U || lfe, [p.duration, U]), Re = oe.useRef(0), je = oe.useRef(0), Je = oe.useRef(0), ot = oe.useRef(null), [Zt, on] = W.split("-"), mn = oe.useMemo(() => x.reduce((it, Tt, Mt) => Mt >= Nt ? it : it + Tt.height, 0), [x, Nt]), In = Zde(), hr = p.invert || f, sn = Ne === "loading";
52107
+ }, [p.closeButton, k]), he = oe.useMemo(() => p.duration || W || lfe, [p.duration, W]), Re = oe.useRef(0), je = oe.useRef(0), Je = oe.useRef(0), ot = oe.useRef(null), [Zt, on] = U.split("-"), mn = oe.useMemo(() => x.reduce((it, Tt, Mt) => Mt >= Nt ? it : it + Tt.height, 0), [x, Nt]), In = Zde(), hr = p.invert || f, sn = Ne === "loading";
52102
52108
  je.current = oe.useMemo(() => Nt * z + mn, [Nt, mn]), oe.useEffect(() => {
52103
52109
  ae(!0);
52104
52110
  }, []), oe.useLayoutEffect(() => {
@@ -52178,7 +52184,7 @@ function AO() {
52178
52184
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
52179
52185
  }
52180
52186
  var xge = (e) => {
52181
- let { invert: t, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: o, closeButton: i, className: s, offset: a, theme: l = "light", richColors: c, duration: u, style: f, visibleToasts: p = sfe, toastOptions: g, dir: m = AO(), gap: v = ufe, loadingIcon: y, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: _, cn: E = hfe } = e, [S, P] = oe.useState([]), k = oe.useMemo(() => Array.from(new Set([n].concat(S.filter((V) => V.position).map((V) => V.position)))), [S, n]), [M, $] = oe.useState([]), [A, F] = oe.useState(!1), [j, U] = oe.useState(!1), [W, z] = oe.useState(l !== "system" ? l : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Q = oe.useRef(null), q = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), X = oe.useRef(null), Z = oe.useRef(!1), D = oe.useCallback((V) => {
52187
+ let { invert: t, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: o, closeButton: i, className: s, offset: a, theme: l = "light", richColors: c, duration: u, style: f, visibleToasts: p = sfe, toastOptions: g, dir: m = AO(), gap: v = ufe, loadingIcon: y, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: _, cn: E = hfe } = e, [S, P] = oe.useState([]), k = oe.useMemo(() => Array.from(new Set([n].concat(S.filter((V) => V.position).map((V) => V.position)))), [S, n]), [M, $] = oe.useState([]), [A, F] = oe.useState(!1), [j, W] = oe.useState(!1), [U, z] = oe.useState(l !== "system" ? l : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Q = oe.useRef(null), q = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), X = oe.useRef(null), Z = oe.useRef(!1), D = oe.useCallback((V) => {
52182
52188
  var K;
52183
52189
  (K = S.find((I) => I.id === V.id)) != null && K.delete || eo.dismiss(V.id), P((I) => I.filter(({ id: ae }) => ae !== V.id));
52184
52190
  }, [S]);
@@ -52219,15 +52225,15 @@ var xge = (e) => {
52219
52225
  }, [Q.current]), S.length ? oe.createElement("section", { "aria-label": `${w} ${q}`, tabIndex: -1 }, k.map((V, K) => {
52220
52226
  var I;
52221
52227
  let [ae, le] = V.split("-");
52222
- return oe.createElement("ol", { key: V, dir: m === "auto" ? AO() : m, tabIndex: -1, ref: Q, className: s, "data-sonner-toaster": !0, "data-theme": W, "data-y-position": ae, "data-x-position": le, style: { "--front-toast-height": `${((I = M[0]) == null ? void 0 : I.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || afe, "--width": `${cfe}px`, "--gap": `${v}px`, ...f }, onBlur: (fe) => {
52228
+ return oe.createElement("ol", { key: V, dir: m === "auto" ? AO() : m, tabIndex: -1, ref: Q, className: s, "data-sonner-toaster": !0, "data-theme": U, "data-y-position": ae, "data-x-position": le, style: { "--front-toast-height": `${((I = M[0]) == null ? void 0 : I.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || afe, "--width": `${cfe}px`, "--gap": `${v}px`, ...f }, onBlur: (fe) => {
52223
52229
  Z.current && !fe.currentTarget.contains(fe.relatedTarget) && (Z.current = !1, X.current && (X.current.focus({ preventScroll: !0 }), X.current = null));
52224
52230
  }, onFocus: (fe) => {
52225
52231
  fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" || Z.current || (Z.current = !0, X.current = fe.relatedTarget);
52226
52232
  }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
52227
52233
  j || F(!1);
52228
52234
  }, onPointerDown: (fe) => {
52229
- fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" || U(!0);
52230
- }, onPointerUp: () => U(!1) }, S.filter((fe) => !fe.position && K === 0 || fe.position === V).map((fe, pe) => {
52235
+ fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" || W(!0);
52236
+ }, onPointerUp: () => W(!1) }, S.filter((fe) => !fe.position && K === 0 || fe.position === V).map((fe, pe) => {
52231
52237
  var ie, ee;
52232
52238
  return oe.createElement(pfe, { key: fe.id, icons: x, index: pe, toast: fe, defaultRichColors: c, duration: (ie = g == null ? void 0 : g.duration) != null ? ie : u, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: t, visibleToasts: p, closeButton: (ee = g == null ? void 0 : g.closeButton) != null ? ee : i, interacting: j, position: V, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: D, toasts: S.filter((se) => se.position == fe.position), heights: M.filter((se) => se.position == fe.position), setHeights: $, expandByDefault: o, gap: v, loadingIcon: y, expanded: A, pauseWhenPageIsHidden: _, cn: E });
52233
52239
  }));
@@ -52659,7 +52665,7 @@ function hhe({ original: e, modified: t, language: n, originalLanguage: r, modif
52659
52665
  let [w, _] = Ee(!1), [E, S] = Ee(!0), P = ce(null), k = ce(null), M = ce(null), $ = ce(x), A = ce(y), F = ce(!1);
52660
52666
  yI(() => {
52661
52667
  let z = vI.init();
52662
- return z.then((Q) => (k.current = Q) && S(!1)).catch((Q) => (Q == null ? void 0 : Q.type) !== "cancelation" && console.error("Monaco initialization: error:", Q)), () => P.current ? W() : z.cancel();
52668
+ return z.then((Q) => (k.current = Q) && S(!1)).catch((Q) => (Q == null ? void 0 : Q.type) !== "cancelation" && console.error("Monaco initialization: error:", Q)), () => P.current ? U() : z.cancel();
52663
52669
  }), ro(() => {
52664
52670
  if (P.current && k.current) {
52665
52671
  let z = P.current.getOriginalEditor(), Q = Kl(k.current, e || "", r || n || "text", i || "");
@@ -52693,16 +52699,16 @@ function hhe({ original: e, modified: t, language: n, originalLanguage: r, modif
52693
52699
  A.current(k.current);
52694
52700
  let z = Kl(k.current, e || "", r || n || "text", i || ""), Q = Kl(k.current, t || "", o || n || "text", s || "");
52695
52701
  (q = P.current) == null || q.setModel({ original: z, modified: Q });
52696
- }, [n, t, o, e, r, i, s]), U = We(() => {
52702
+ }, [n, t, o, e, r, i, s]), W = We(() => {
52697
52703
  var z;
52698
52704
  !F.current && M.current && (P.current = k.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...f }), j(), (z = k.current) == null || z.editor.setTheme(c), _(!0), F.current = !0);
52699
52705
  }, [f, c, j]);
52700
52706
  Se(() => {
52701
52707
  w && $.current(P.current, k.current);
52702
52708
  }, [w]), Se(() => {
52703
- !E && !w && U();
52704
- }, [E, w, U]);
52705
- function W() {
52709
+ !E && !w && W();
52710
+ }, [E, w, W]);
52711
+ function U() {
52706
52712
  var Q, q, X, Z;
52707
52713
  let z = (Q = P.current) == null ? void 0 : Q.getModel();
52708
52714
  a || ((q = z == null ? void 0 : z.original) == null || q.dispose()), l || ((X = z == null ? void 0 : z.modified) == null || X.dispose()), (Z = P.current) == null || Z.dispose();
@@ -52719,7 +52725,7 @@ function ghe(e) {
52719
52725
  }
52720
52726
  var mhe = ghe, dp = /* @__PURE__ */ new Map();
52721
52727
  function vhe({ 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: p = !1, width: g = "100%", height: m = "100%", className: v, wrapperProps: y = {}, beforeMount: x = ed, onMount: w = ed, onChange: _, onValidate: E = ed }) {
52722
- let [S, P] = Ee(!1), [k, M] = Ee(!0), $ = ce(null), A = ce(null), F = ce(null), j = ce(w), U = ce(x), W = ce(), z = ce(r), Q = mhe(i), q = ce(!1), X = ce(!1);
52728
+ let [S, P] = Ee(!1), [k, M] = Ee(!0), $ = ce(null), A = ce(null), F = ce(null), j = ce(w), W = ce(x), U = ce(), z = ce(r), Q = mhe(i), q = ce(!1), X = ce(!1);
52723
52729
  yI(() => {
52724
52730
  let V = vI.init();
52725
52731
  return V.then((K) => ($.current = K) && M(!1)).catch((K) => (K == null ? void 0 : K.type) !== "cancelation" && console.error("Monaco initialization: error:", K)), () => A.current ? D() : V.cancel();
@@ -52746,7 +52752,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
52746
52752
  let Z = We(() => {
52747
52753
  var V;
52748
52754
  if (!(!F.current || !$.current) && !q.current) {
52749
- U.current($.current);
52755
+ W.current($.current);
52750
52756
  let K = i || n, I = Kl($.current, r || e || "", t || o || "", K || "");
52751
52757
  A.current = (V = $.current) == null ? void 0 : V.editor.create(F.current, { model: I, automaticLayout: !0, ...c }, u), f && A.current.restoreViewState(dp.get(K)), $.current.editor.setTheme(s), a !== void 0 && A.current.revealLine(a), P(!0), q.current = !0;
52752
52758
  }
@@ -52757,7 +52763,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
52757
52763
  !k && !S && Z();
52758
52764
  }, [k, S, Z]), z.current = r, Se(() => {
52759
52765
  var V, K;
52760
- S && _ && ((V = W.current) == null || V.dispose(), W.current = (K = A.current) == null ? void 0 : K.onDidChangeModelContent((I) => {
52766
+ S && _ && ((V = U.current) == null || V.dispose(), U.current = (K = A.current) == null ? void 0 : K.onDidChangeModelContent((I) => {
52761
52767
  X.current || _(A.current.getValue(), I);
52762
52768
  }));
52763
52769
  }, [S, _]), Se(() => {
@@ -52779,7 +52785,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
52779
52785
  }, [S, E]);
52780
52786
  function D() {
52781
52787
  var V, K;
52782
- (V = W.current) == null || V.dispose(), p ? f && dp.set(i, A.current.saveViewState()) : (K = A.current.getModel()) == null || K.dispose(), A.current.dispose();
52788
+ (V = U.current) == null || V.dispose(), p ? f && dp.set(i, A.current.saveViewState()) : (K = A.current.getModel()) == null || K.dispose(), A.current.dispose();
52783
52789
  }
52784
52790
  return oe.createElement(bI, { width: g, height: m, isEditorReady: S, loading: l, _ref: F, className: v, wrapperProps: y });
52785
52791
  }