agentic-ui-libs 0.2.0-beta.10 → 0.2.0-beta.12

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.
package/dist/index.js CHANGED
@@ -134,14 +134,14 @@ function Ab() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var $ = Object.assign, D = 0, k, F, z, q, C, L, U;
137
+ var $ = Object.assign, D = 0, k, F, z, q, C, B, U;
138
138
  function W() {
139
139
  }
140
140
  W.__reactDisabledLog = !0;
141
141
  function K() {
142
142
  {
143
143
  if (D === 0) {
144
- k = console.log, F = console.info, z = console.warn, q = console.error, C = console.group, L = console.groupCollapsed, U = console.groupEnd;
144
+ k = console.log, F = console.info, z = console.warn, q = console.error, C = console.group, B = console.groupCollapsed, U = console.groupEnd;
145
145
  var N = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
@@ -161,7 +161,7 @@ function Ab() {
161
161
  D++;
162
162
  }
163
163
  }
164
- function B() {
164
+ function L() {
165
165
  {
166
166
  if (D--, D === 0) {
167
167
  var N = {
@@ -186,7 +186,7 @@ function Ab() {
186
186
  value: C
187
187
  }),
188
188
  groupCollapsed: $({}, N, {
189
- value: L
189
+ value: B
190
190
  }),
191
191
  groupEnd: $({}, N, {
192
192
  value: U
@@ -196,24 +196,24 @@ function Ab() {
196
196
  D < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var G = b.ReactCurrentDispatcher, X;
200
- function te(N, J, ne) {
199
+ var G = b.ReactCurrentDispatcher, Y;
200
+ function Q(N, J, ne) {
201
201
  {
202
- if (X === void 0)
202
+ if (Y === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (we) {
206
206
  var ue = we.stack.trim().match(/\n( *(at )?)/);
207
- X = ue && ue[1] || "";
207
+ Y = ue && ue[1] || "";
208
208
  }
209
209
  return `
210
- ` + X + N;
210
+ ` + Y + N;
211
211
  }
212
212
  }
213
213
  var V = !1, Z;
214
214
  {
215
- var ee = typeof WeakMap == "function" ? WeakMap : Map;
216
- Z = new ee();
215
+ var te = typeof WeakMap == "function" ? WeakMap : Map;
216
+ Z = new te();
217
217
  }
218
218
  function I(N, J) {
219
219
  if (!N || V)
@@ -281,15 +281,15 @@ function Ab() {
281
281
  }
282
282
  }
283
283
  } finally {
284
- V = !1, G.current = Ce, B(), Error.prepareStackTrace = we;
284
+ V = !1, G.current = Ce, L(), Error.prepareStackTrace = we;
285
285
  }
286
- var pn = N ? N.displayName || N.name : "", Ir = pn ? te(pn) : "";
286
+ var pn = N ? N.displayName || N.name : "", Ir = pn ? Q(pn) : "";
287
287
  return typeof N == "function" && Z.set(N, Ir), Ir;
288
288
  }
289
289
  function ie(N, J, ne) {
290
290
  return I(N, !1);
291
291
  }
292
- function Y(N) {
292
+ function X(N) {
293
293
  var J = N.prototype;
294
294
  return !!(J && J.isReactComponent);
295
295
  }
@@ -297,14 +297,14 @@ function Ab() {
297
297
  if (N == null)
298
298
  return "";
299
299
  if (typeof N == "function")
300
- return I(N, Y(N));
300
+ return I(N, X(N));
301
301
  if (typeof N == "string")
302
- return te(N);
302
+ return Q(N);
303
303
  switch (N) {
304
304
  case c:
305
- return te("Suspense");
305
+ return Q("Suspense");
306
306
  case u:
307
- return te("SuspenseList");
307
+ return Q("SuspenseList");
308
308
  }
309
309
  if (typeof N == "object")
310
310
  switch (N.$$typeof) {
@@ -1243,7 +1243,7 @@ const De = (e) => {
1243
1243
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1244
1244
  ix.test(e) && !ox.test(e)
1245
1245
  ), vv = () => !1, gx = (e) => sx.test(e), yx = (e) => lx.test(e), bx = () => {
1246
- const e = De("colors"), t = De("spacing"), r = De("blur"), n = De("brightness"), a = De("borderColor"), i = De("borderRadius"), o = De("borderSpacing"), s = De("borderWidth"), l = De("contrast"), c = De("grayscale"), u = De("hueRotate"), f = De("invert"), d = De("gap"), h = De("gradientColorStops"), v = De("gradientColorStopPositions"), g = De("inset"), m = De("margin"), b = De("opacity"), O = De("padding"), x = De("saturate"), A = De("scale"), y = De("sepia"), w = De("skew"), S = De("space"), T = De("translate"), P = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", me, t], _ = () => [me, t], R = () => ["", er, yr], $ = () => ["auto", Sn, me], D = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], k = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], q = () => ["", "0", me], C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [Sn, me];
1246
+ const e = De("colors"), t = De("spacing"), r = De("blur"), n = De("brightness"), a = De("borderColor"), i = De("borderRadius"), o = De("borderSpacing"), s = De("borderWidth"), l = De("contrast"), c = De("grayscale"), u = De("hueRotate"), f = De("invert"), d = De("gap"), h = De("gradientColorStops"), v = De("gradientColorStopPositions"), g = De("inset"), m = De("margin"), b = De("opacity"), O = De("padding"), x = De("saturate"), A = De("scale"), y = De("sepia"), w = De("skew"), S = De("space"), T = De("translate"), P = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", me, t], _ = () => [me, t], R = () => ["", er, yr], $ = () => ["auto", Sn, me], D = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], k = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], q = () => ["", "0", me], C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [Sn, me];
1247
1247
  return {
1248
1248
  cacheSize: 500,
1249
1249
  separator: ":",
@@ -1251,26 +1251,26 @@ const De = (e) => {
1251
1251
  colors: [Ta],
1252
1252
  spacing: [er, yr],
1253
1253
  blur: ["none", "", br, me],
1254
- brightness: L(),
1254
+ brightness: B(),
1255
1255
  borderColor: [e],
1256
1256
  borderRadius: ["none", "", "full", br, me],
1257
1257
  borderSpacing: _(),
1258
1258
  borderWidth: R(),
1259
- contrast: L(),
1259
+ contrast: B(),
1260
1260
  grayscale: q(),
1261
- hueRotate: L(),
1261
+ hueRotate: B(),
1262
1262
  invert: q(),
1263
1263
  gap: _(),
1264
1264
  gradientColorStops: [e],
1265
1265
  gradientColorStopPositions: [cx, yr],
1266
1266
  inset: j(),
1267
1267
  margin: j(),
1268
- opacity: L(),
1268
+ opacity: B(),
1269
1269
  padding: _(),
1270
- saturate: L(),
1271
- scale: L(),
1270
+ saturate: B(),
1271
+ scale: B(),
1272
1272
  sepia: q(),
1273
- skew: L(),
1273
+ skew: B(),
1274
1274
  space: _(),
1275
1275
  translate: _()
1276
1276
  },
@@ -2845,7 +2845,7 @@ const De = (e) => {
2845
2845
  * @see https://tailwindcss.com/docs/transition-duration
2846
2846
  */
2847
2847
  duration: [{
2848
- duration: L()
2848
+ duration: B()
2849
2849
  }],
2850
2850
  /**
2851
2851
  * Transition Timing Function
@@ -2859,7 +2859,7 @@ const De = (e) => {
2859
2859
  * @see https://tailwindcss.com/docs/transition-delay
2860
2860
  */
2861
2861
  delay: [{
2862
- delay: L()
2862
+ delay: B()
2863
2863
  }],
2864
2864
  /**
2865
2865
  * Animation
@@ -3761,19 +3761,19 @@ function W2() {
3761
3761
  return ed || (ed = 1, process.env.NODE_ENV !== "production" && function() {
3762
3762
  var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = !1, g = !1, m = !1, b = !1, O = !1, x;
3763
3763
  x = Symbol.for("react.module.reference");
3764
- function A(Y) {
3765
- return !!(typeof Y == "string" || typeof Y == "function" || Y === r || Y === a || O || Y === n || Y === c || Y === u || b || Y === h || v || g || m || typeof Y == "object" && Y !== null && (Y.$$typeof === d || Y.$$typeof === f || Y.$$typeof === i || Y.$$typeof === o || Y.$$typeof === l || // This needs to include all possible module reference object
3764
+ function A(X) {
3765
+ return !!(typeof X == "string" || typeof X == "function" || X === r || X === a || O || X === n || X === c || X === u || b || X === h || v || g || m || typeof X == "object" && X !== null && (X.$$typeof === d || X.$$typeof === f || X.$$typeof === i || X.$$typeof === o || X.$$typeof === l || // This needs to include all possible module reference object
3766
3766
  // types supported by any Flight configuration anywhere since
3767
3767
  // we don't know which Flight build this will end up being used
3768
3768
  // with.
3769
- Y.$$typeof === x || Y.getModuleId !== void 0));
3769
+ X.$$typeof === x || X.getModuleId !== void 0));
3770
3770
  }
3771
- function y(Y) {
3772
- if (typeof Y == "object" && Y !== null) {
3773
- var le = Y.$$typeof;
3771
+ function y(X) {
3772
+ if (typeof X == "object" && X !== null) {
3773
+ var le = X.$$typeof;
3774
3774
  switch (le) {
3775
3775
  case e:
3776
- var re = Y.type;
3776
+ var re = X.type;
3777
3777
  switch (re) {
3778
3778
  case r:
3779
3779
  case a:
@@ -3801,49 +3801,49 @@ function W2() {
3801
3801
  }
3802
3802
  }
3803
3803
  var w = o, S = i, T = e, P = l, E = r, j = d, _ = f, R = t, $ = a, D = n, k = c, F = u, z = !1, q = !1;
3804
- function C(Y) {
3804
+ function C(X) {
3805
3805
  return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
3806
3806
  }
3807
- function L(Y) {
3807
+ function B(X) {
3808
3808
  return q || (q = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
3809
3809
  }
3810
- function U(Y) {
3811
- return y(Y) === o;
3810
+ function U(X) {
3811
+ return y(X) === o;
3812
3812
  }
3813
- function W(Y) {
3814
- return y(Y) === i;
3813
+ function W(X) {
3814
+ return y(X) === i;
3815
3815
  }
3816
- function K(Y) {
3817
- return typeof Y == "object" && Y !== null && Y.$$typeof === e;
3816
+ function K(X) {
3817
+ return typeof X == "object" && X !== null && X.$$typeof === e;
3818
3818
  }
3819
- function B(Y) {
3820
- return y(Y) === l;
3819
+ function L(X) {
3820
+ return y(X) === l;
3821
3821
  }
3822
- function G(Y) {
3823
- return y(Y) === r;
3822
+ function G(X) {
3823
+ return y(X) === r;
3824
3824
  }
3825
- function X(Y) {
3826
- return y(Y) === d;
3825
+ function Y(X) {
3826
+ return y(X) === d;
3827
3827
  }
3828
- function te(Y) {
3829
- return y(Y) === f;
3828
+ function Q(X) {
3829
+ return y(X) === f;
3830
3830
  }
3831
- function V(Y) {
3832
- return y(Y) === t;
3831
+ function V(X) {
3832
+ return y(X) === t;
3833
3833
  }
3834
- function Z(Y) {
3835
- return y(Y) === a;
3834
+ function Z(X) {
3835
+ return y(X) === a;
3836
3836
  }
3837
- function ee(Y) {
3838
- return y(Y) === n;
3837
+ function te(X) {
3838
+ return y(X) === n;
3839
3839
  }
3840
- function I(Y) {
3841
- return y(Y) === c;
3840
+ function I(X) {
3841
+ return y(X) === c;
3842
3842
  }
3843
- function ie(Y) {
3844
- return y(Y) === u;
3843
+ function ie(X) {
3844
+ return y(X) === u;
3845
3845
  }
3846
- Se.ContextConsumer = w, Se.ContextProvider = S, Se.Element = T, Se.ForwardRef = P, Se.Fragment = E, Se.Lazy = j, Se.Memo = _, Se.Portal = R, Se.Profiler = $, Se.StrictMode = D, Se.Suspense = k, Se.SuspenseList = F, Se.isAsyncMode = C, Se.isConcurrentMode = L, Se.isContextConsumer = U, Se.isContextProvider = W, Se.isElement = K, Se.isForwardRef = B, Se.isFragment = G, Se.isLazy = X, Se.isMemo = te, Se.isPortal = V, Se.isProfiler = Z, Se.isStrictMode = ee, Se.isSuspense = I, Se.isSuspenseList = ie, Se.isValidElementType = A, Se.typeOf = y;
3846
+ Se.ContextConsumer = w, Se.ContextProvider = S, Se.Element = T, Se.ForwardRef = P, Se.Fragment = E, Se.Lazy = j, Se.Memo = _, Se.Portal = R, Se.Profiler = $, Se.StrictMode = D, Se.Suspense = k, Se.SuspenseList = F, Se.isAsyncMode = C, Se.isConcurrentMode = B, Se.isContextConsumer = U, Se.isContextProvider = W, Se.isElement = K, Se.isForwardRef = L, Se.isFragment = G, Se.isLazy = Y, Se.isMemo = Q, Se.isPortal = V, Se.isProfiler = Z, Se.isStrictMode = te, Se.isSuspense = I, Se.isSuspenseList = ie, Se.isValidElementType = A, Se.typeOf = y;
3847
3847
  }()), Se;
3848
3848
  }
3849
3849
  process.env.NODE_ENV === "production" ? Vl.exports = U2() : Vl.exports = W2();
@@ -3863,18 +3863,18 @@ var Ut = function(t) {
3863
3863
  return t === 0 ? 0 : t > 0 ? 1 : -1;
3864
3864
  }, Vr = function(t) {
3865
3865
  return Qr(t) && t.indexOf("%") === t.length - 1;
3866
- }, Q = function(t) {
3866
+ }, ee = function(t) {
3867
3867
  return K2(t) && !sa(t);
3868
3868
  }, J2 = function(t) {
3869
3869
  return fe(t);
3870
3870
  }, et = function(t) {
3871
- return Q(t) || Qr(t);
3871
+ return ee(t) || Qr(t);
3872
3872
  }, Q2 = 0, sn = function(t) {
3873
3873
  var r = ++Q2;
3874
3874
  return "".concat(t || "").concat(r);
3875
3875
  }, en = function(t, r) {
3876
3876
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
3877
- if (!Q(t) && !Qr(t))
3877
+ if (!ee(t) && !Qr(t))
3878
3878
  return n;
3879
3879
  var i;
3880
3880
  if (Vr(t)) {
@@ -3898,7 +3898,7 @@ var Ut = function(t) {
3898
3898
  return !0;
3899
3899
  return !1;
3900
3900
  }, Ge = function(t, r) {
3901
- return Q(t) && Q(r) ? function(n) {
3901
+ return ee(t) && ee(r) ? function(n) {
3902
3902
  return t + n * (r - t);
3903
3903
  } : function() {
3904
3904
  return r;
@@ -3922,7 +3922,7 @@ var tO = function(t) {
3922
3922
  b: (a - d * n) / r
3923
3923
  };
3924
3924
  }, rO = function(t, r) {
3925
- return Q(t) && Q(r) ? t - r : Qr(t) && Qr(r) ? t.localeCompare(r) : t instanceof Date && r instanceof Date ? t.getTime() - r.getTime() : String(t).localeCompare(String(r));
3925
+ return ee(t) && ee(r) ? t - r : Qr(t) && Qr(r) ? t.localeCompare(r) : t instanceof Date && r instanceof Date ? t.getTime() - r.getTime() : String(t).localeCompare(String(r));
3926
3926
  };
3927
3927
  function Tn(e, t) {
3928
3928
  for (var r in e)
@@ -4349,7 +4349,7 @@ var id = function(t) {
4349
4349
  if (!t || !t.props)
4350
4350
  return !1;
4351
4351
  var r = t.props, n = r.width, a = r.height;
4352
- return !(!Q(n) || n <= 0 || !Q(a) || a <= 0);
4352
+ return !(!ee(n) || n <= 0 || !ee(a) || a <= 0);
4353
4353
  }, cO = ["a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern"], uO = function(t) {
4354
4354
  return t && t.type && Qr(t.type) && cO.indexOf(t.type) >= 0;
4355
4355
  }, Pv = function(t) {
@@ -6357,7 +6357,7 @@ var Ld = 1, An = /* @__PURE__ */ function(e) {
6357
6357
  key: "getWithHeight",
6358
6358
  value: function(n, a) {
6359
6359
  var i = tr(tr({}, this.defaultProps), n.props), o = i.layout;
6360
- return o === "vertical" && Q(n.props.height) ? {
6360
+ return o === "vertical" && ee(n.props.height) ? {
6361
6361
  height: n.props.height
6362
6362
  } : o === "horizontal" ? {
6363
6363
  width: n.props.width || a
@@ -6658,12 +6658,12 @@ var A$ = function(t) {
6658
6658
  paddingTop: 4,
6659
6659
  paddingBottom: 4,
6660
6660
  color: $.color || "#000"
6661
- }, s), F = $.formatter || f || T$, z = $.value, q = $.name, C = z, L = q;
6662
- if (F && C != null && L != null) {
6661
+ }, s), F = $.formatter || f || T$, z = $.value, q = $.name, C = z, B = q;
6662
+ if (F && C != null && B != null) {
6663
6663
  var U = F(z, q, $, D, u);
6664
6664
  if (Array.isArray(U)) {
6665
6665
  var W = v$(U, 2);
6666
- C = W[0], L = W[1];
6666
+ C = W[0], B = W[1];
6667
6667
  } else
6668
6668
  C = U;
6669
6669
  }
@@ -6673,9 +6673,9 @@ var A$ = function(t) {
6673
6673
  className: "recharts-tooltip-item",
6674
6674
  key: "tooltip-item-".concat(D),
6675
6675
  style: k
6676
- }, et(L) ? /* @__PURE__ */ M.createElement("span", {
6676
+ }, et(B) ? /* @__PURE__ */ M.createElement("span", {
6677
6677
  className: "recharts-tooltip-item-name"
6678
- }, L) : null, et(L) ? /* @__PURE__ */ M.createElement("span", {
6678
+ }, B) : null, et(B) ? /* @__PURE__ */ M.createElement("span", {
6679
6679
  className: "recharts-tooltip-item-separator"
6680
6680
  }, n) : null, /* @__PURE__ */ M.createElement("span", {
6681
6681
  className: "recharts-tooltip-item-value"
@@ -6742,11 +6742,11 @@ var ja = "recharts-tooltip-wrapper", _$ = {
6742
6742
  };
6743
6743
  function E$(e) {
6744
6744
  var t = e.coordinate, r = e.translateX, n = e.translateY;
6745
- return ve(ja, Fi(Fi(Fi(Fi({}, "".concat(ja, "-right"), Q(r) && t && Q(t.x) && r >= t.x), "".concat(ja, "-left"), Q(r) && t && Q(t.x) && r < t.x), "".concat(ja, "-bottom"), Q(n) && t && Q(t.y) && n >= t.y), "".concat(ja, "-top"), Q(n) && t && Q(t.y) && n < t.y));
6745
+ return ve(ja, Fi(Fi(Fi(Fi({}, "".concat(ja, "-right"), ee(r) && t && ee(t.x) && r >= t.x), "".concat(ja, "-left"), ee(r) && t && ee(t.x) && r < t.x), "".concat(ja, "-bottom"), ee(n) && t && ee(t.y) && n >= t.y), "".concat(ja, "-top"), ee(n) && t && ee(t.y) && n < t.y));
6746
6746
  }
6747
6747
  function qd(e) {
6748
6748
  var t = e.allowEscapeViewBox, r = e.coordinate, n = e.key, a = e.offsetTopLeft, i = e.position, o = e.reverseDirection, s = e.tooltipDimension, l = e.viewBox, c = e.viewBoxDimension;
6749
- if (i && Q(i[n]))
6749
+ if (i && ee(i[n]))
6750
6750
  return i[n];
6751
6751
  var u = r[n] - s - a, f = r[n] + a;
6752
6752
  if (t[n])
@@ -7377,7 +7377,7 @@ var Nk = /* @__PURE__ */ vs(function(e, t) {
7377
7377
  }, []);
7378
7378
  Qe(function() {
7379
7379
  var R = function(q) {
7380
- var C, L = q[0].contentRect, U = L.width, W = L.height;
7380
+ var C, B = q[0].contentRect, U = B.width, W = B.height;
7381
7381
  j(U, W), (C = w.current) === null || C === void 0 || C.call(w, U, W);
7382
7382
  };
7383
7383
  g > 0 && (R = Cg(R, g, {
@@ -7797,18 +7797,18 @@ var Mg = /[ \f\n\r\t\v\u2028\u2029]+/, Ng = function(t) {
7797
7797
  return null;
7798
7798
  }
7799
7799
  }, uM = function(t, r, n, a, i) {
7800
- var o = t.maxLines, s = t.children, l = t.style, c = t.breakAll, u = Q(o), f = s, d = function() {
7800
+ var o = t.maxLines, s = t.children, l = t.style, c = t.breakAll, u = ee(o), f = s, d = function() {
7801
7801
  var D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
7802
7802
  return D.reduce(function(k, F) {
7803
7803
  var z = F.word, q = F.width, C = k[k.length - 1];
7804
7804
  if (C && (a == null || i || C.width + q + n < Number(a)))
7805
7805
  C.words.push(z), C.width += q + n;
7806
7806
  else {
7807
- var L = {
7807
+ var B = {
7808
7808
  words: [z],
7809
7809
  width: q
7810
7810
  };
7811
- k.push(L);
7811
+ k.push(B);
7812
7812
  }
7813
7813
  return k;
7814
7814
  }, []);
@@ -7874,7 +7874,7 @@ var Mg = /[ \f\n\r\t\v\u2028\u2029]+/, Ng = function(t) {
7874
7874
  }, [O.breakAll, O.children, O.maxLines, f, O.style, O.width]), A = O.dx, y = O.dy, w = O.angle, S = O.className, T = O.breakAll, P = fp(O, aM);
7875
7875
  if (!et(n) || !et(i))
7876
7876
  return null;
7877
- var E = n + (Q(A) ? A : 0), j = i + (Q(y) ? y : 0), _;
7877
+ var E = n + (ee(A) ? A : 0), j = i + (ee(y) ? y : 0), _;
7878
7878
  switch (g) {
7879
7879
  case "start":
7880
7880
  _ = vl("calc(".concat(c, ")"));
@@ -7889,7 +7889,7 @@ var Mg = /[ \f\n\r\t\v\u2028\u2029]+/, Ng = function(t) {
7889
7889
  var R = [];
7890
7890
  if (f) {
7891
7891
  var $ = x[0].width, D = O.width;
7892
- R.push("scale(".concat((Q(D) ? D / $ : 1) / $, ")"));
7892
+ R.push("scale(".concat((ee(D) ? D / $ : 1) / $, ")"));
7893
7893
  }
7894
7894
  return w && R.push("rotate(".concat(w, ", ").concat(E, ", ").concat(j, ")")), R.length && (P.transform = R.join(" ")), /* @__PURE__ */ M.createElement("text", gc({}, de(P, !0), {
7895
7895
  x: E,
@@ -9359,7 +9359,7 @@ function k3(e) {
9359
9359
  L: ty,
9360
9360
  m: rN,
9361
9361
  M: nN,
9362
- p: L,
9362
+ p: B,
9363
9363
  q: U,
9364
9364
  Q: Zp,
9365
9365
  s: Jp,
@@ -9378,7 +9378,7 @@ function k3(e) {
9378
9378
  }, A = {
9379
9379
  a: W,
9380
9380
  A: K,
9381
- b: B,
9381
+ b: L,
9382
9382
  B: G,
9383
9383
  c: null,
9384
9384
  d: Yp,
@@ -9392,8 +9392,8 @@ function k3(e) {
9392
9392
  L: ny,
9393
9393
  m: bN,
9394
9394
  M: xN,
9395
- p: X,
9396
- q: te,
9395
+ p: Y,
9396
+ q: Q,
9397
9397
  Q: Zp,
9398
9398
  s: Jp,
9399
9399
  S: wN,
@@ -9444,64 +9444,64 @@ function k3(e) {
9444
9444
  };
9445
9445
  x.x = w(r, x), x.X = w(n, x), x.c = w(t, x), A.x = w(r, A), A.X = w(n, A), A.c = w(t, A);
9446
9446
  function w(V, Z) {
9447
- return function(ee) {
9448
- var I = [], ie = -1, Y = 0, le = V.length, re, he, Ue;
9449
- for (ee instanceof Date || (ee = /* @__PURE__ */ new Date(+ee)); ++ie < le; )
9450
- V.charCodeAt(ie) === 37 && (I.push(V.slice(Y, ie)), (he = zp[re = V.charAt(++ie)]) != null ? re = V.charAt(++ie) : he = re === "e" ? " " : "0", (Ue = Z[re]) && (re = Ue(ee, he)), I.push(re), Y = ie + 1);
9451
- return I.push(V.slice(Y, ie)), I.join("");
9447
+ return function(te) {
9448
+ var I = [], ie = -1, X = 0, le = V.length, re, he, Ue;
9449
+ for (te instanceof Date || (te = /* @__PURE__ */ new Date(+te)); ++ie < le; )
9450
+ V.charCodeAt(ie) === 37 && (I.push(V.slice(X, ie)), (he = zp[re = V.charAt(++ie)]) != null ? re = V.charAt(++ie) : he = re === "e" ? " " : "0", (Ue = Z[re]) && (re = Ue(te, he)), I.push(re), X = ie + 1);
9451
+ return I.push(V.slice(X, ie)), I.join("");
9452
9452
  };
9453
9453
  }
9454
9454
  function S(V, Z) {
9455
- return function(ee) {
9456
- var I = _a(1900, void 0, 1), ie = T(I, V, ee += "", 0), Y, le;
9457
- if (ie != ee.length) return null;
9455
+ return function(te) {
9456
+ var I = _a(1900, void 0, 1), ie = T(I, V, te += "", 0), X, le;
9457
+ if (ie != te.length) return null;
9458
9458
  if ("Q" in I) return new Date(I.Q);
9459
9459
  if ("s" in I) return new Date(I.s * 1e3 + ("L" in I ? I.L : 0));
9460
9460
  if (Z && !("Z" in I) && (I.Z = 0), "p" in I && (I.H = I.H % 12 + I.p * 12), I.m === void 0 && (I.m = "q" in I ? I.q : 0), "V" in I) {
9461
9461
  if (I.V < 1 || I.V > 53) return null;
9462
- "w" in I || (I.w = 1), "Z" in I ? (Y = Sl(_a(I.y, 0, 1)), le = Y.getUTCDay(), Y = le > 4 || le === 0 ? ko.ceil(Y) : ko(Y), Y = $s.offset(Y, (I.V - 1) * 7), I.y = Y.getUTCFullYear(), I.m = Y.getUTCMonth(), I.d = Y.getUTCDate() + (I.w + 6) % 7) : (Y = Ol(_a(I.y, 0, 1)), le = Y.getDay(), Y = le > 4 || le === 0 ? $o.ceil(Y) : $o(Y), Y = Ni.offset(Y, (I.V - 1) * 7), I.y = Y.getFullYear(), I.m = Y.getMonth(), I.d = Y.getDate() + (I.w + 6) % 7);
9462
+ "w" in I || (I.w = 1), "Z" in I ? (X = Sl(_a(I.y, 0, 1)), le = X.getUTCDay(), X = le > 4 || le === 0 ? ko.ceil(X) : ko(X), X = $s.offset(X, (I.V - 1) * 7), I.y = X.getUTCFullYear(), I.m = X.getUTCMonth(), I.d = X.getUTCDate() + (I.w + 6) % 7) : (X = Ol(_a(I.y, 0, 1)), le = X.getDay(), X = le > 4 || le === 0 ? $o.ceil(X) : $o(X), X = Ni.offset(X, (I.V - 1) * 7), I.y = X.getFullYear(), I.m = X.getMonth(), I.d = X.getDate() + (I.w + 6) % 7);
9463
9463
  } else ("W" in I || "U" in I) && ("w" in I || (I.w = "u" in I ? I.u % 7 : "W" in I ? 1 : 0), le = "Z" in I ? Sl(_a(I.y, 0, 1)).getUTCDay() : Ol(_a(I.y, 0, 1)).getDay(), I.m = 0, I.d = "W" in I ? (I.w + 6) % 7 + I.W * 7 - (le + 5) % 7 : I.w + I.U * 7 - (le + 6) % 7);
9464
9464
  return "Z" in I ? (I.H += I.Z / 100 | 0, I.M += I.Z % 100, Sl(I)) : Ol(I);
9465
9465
  };
9466
9466
  }
9467
- function T(V, Z, ee, I) {
9468
- for (var ie = 0, Y = Z.length, le = ee.length, re, he; ie < Y; ) {
9467
+ function T(V, Z, te, I) {
9468
+ for (var ie = 0, X = Z.length, le = te.length, re, he; ie < X; ) {
9469
9469
  if (I >= le) return -1;
9470
9470
  if (re = Z.charCodeAt(ie++), re === 37) {
9471
- if (re = Z.charAt(ie++), he = y[re in zp ? Z.charAt(ie++) : re], !he || (I = he(V, ee, I)) < 0) return -1;
9472
- } else if (re != ee.charCodeAt(I++))
9471
+ if (re = Z.charAt(ie++), he = y[re in zp ? Z.charAt(ie++) : re], !he || (I = he(V, te, I)) < 0) return -1;
9472
+ } else if (re != te.charCodeAt(I++))
9473
9473
  return -1;
9474
9474
  }
9475
9475
  return I;
9476
9476
  }
9477
- function P(V, Z, ee) {
9478
- var I = c.exec(Z.slice(ee));
9479
- return I ? (V.p = u.get(I[0].toLowerCase()), ee + I[0].length) : -1;
9477
+ function P(V, Z, te) {
9478
+ var I = c.exec(Z.slice(te));
9479
+ return I ? (V.p = u.get(I[0].toLowerCase()), te + I[0].length) : -1;
9480
9480
  }
9481
- function E(V, Z, ee) {
9482
- var I = h.exec(Z.slice(ee));
9483
- return I ? (V.w = v.get(I[0].toLowerCase()), ee + I[0].length) : -1;
9481
+ function E(V, Z, te) {
9482
+ var I = h.exec(Z.slice(te));
9483
+ return I ? (V.w = v.get(I[0].toLowerCase()), te + I[0].length) : -1;
9484
9484
  }
9485
- function j(V, Z, ee) {
9486
- var I = f.exec(Z.slice(ee));
9487
- return I ? (V.w = d.get(I[0].toLowerCase()), ee + I[0].length) : -1;
9485
+ function j(V, Z, te) {
9486
+ var I = f.exec(Z.slice(te));
9487
+ return I ? (V.w = d.get(I[0].toLowerCase()), te + I[0].length) : -1;
9488
9488
  }
9489
- function _(V, Z, ee) {
9490
- var I = b.exec(Z.slice(ee));
9491
- return I ? (V.m = O.get(I[0].toLowerCase()), ee + I[0].length) : -1;
9489
+ function _(V, Z, te) {
9490
+ var I = b.exec(Z.slice(te));
9491
+ return I ? (V.m = O.get(I[0].toLowerCase()), te + I[0].length) : -1;
9492
9492
  }
9493
- function R(V, Z, ee) {
9494
- var I = g.exec(Z.slice(ee));
9495
- return I ? (V.m = m.get(I[0].toLowerCase()), ee + I[0].length) : -1;
9493
+ function R(V, Z, te) {
9494
+ var I = g.exec(Z.slice(te));
9495
+ return I ? (V.m = m.get(I[0].toLowerCase()), te + I[0].length) : -1;
9496
9496
  }
9497
- function $(V, Z, ee) {
9498
- return T(V, t, Z, ee);
9497
+ function $(V, Z, te) {
9498
+ return T(V, t, Z, te);
9499
9499
  }
9500
- function D(V, Z, ee) {
9501
- return T(V, r, Z, ee);
9500
+ function D(V, Z, te) {
9501
+ return T(V, r, Z, te);
9502
9502
  }
9503
- function k(V, Z, ee) {
9504
- return T(V, n, Z, ee);
9503
+ function k(V, Z, te) {
9504
+ return T(V, n, Z, te);
9505
9505
  }
9506
9506
  function F(V) {
9507
9507
  return o[V.getDay()];
@@ -9515,7 +9515,7 @@ function k3(e) {
9515
9515
  function C(V) {
9516
9516
  return s[V.getMonth()];
9517
9517
  }
9518
- function L(V) {
9518
+ function B(V) {
9519
9519
  return a[+(V.getHours() >= 12)];
9520
9520
  }
9521
9521
  function U(V) {
@@ -9527,16 +9527,16 @@ function k3(e) {
9527
9527
  function K(V) {
9528
9528
  return i[V.getUTCDay()];
9529
9529
  }
9530
- function B(V) {
9530
+ function L(V) {
9531
9531
  return l[V.getUTCMonth()];
9532
9532
  }
9533
9533
  function G(V) {
9534
9534
  return s[V.getUTCMonth()];
9535
9535
  }
9536
- function X(V) {
9536
+ function Y(V) {
9537
9537
  return a[+(V.getUTCHours() >= 12)];
9538
9538
  }
9539
- function te(V) {
9539
+ function Q(V) {
9540
9540
  return 1 + ~~(V.getUTCMonth() / 3);
9541
9541
  }
9542
9542
  return {
@@ -10954,12 +10954,12 @@ var ha = /* @__PURE__ */ function(e) {
10954
10954
  }
10955
10955
  return /* @__PURE__ */ M.createElement(xe, No({
10956
10956
  className: "recharts-errorBar",
10957
- key: "bar-".concat(y.map(function(L) {
10958
- return "".concat(L.x1, "-").concat(L.x2, "-").concat(L.y1, "-").concat(L.y2);
10957
+ key: "bar-".concat(y.map(function(B) {
10958
+ return "".concat(B.x1, "-").concat(B.x2, "-").concat(B.y1, "-").concat(B.y2);
10959
10959
  }))
10960
- }, h), y.map(function(L) {
10961
- return /* @__PURE__ */ M.createElement("line", No({}, L, {
10962
- key: "line-".concat(L.x1, "-").concat(L.x2, "-").concat(L.y1, "-").concat(L.y2)
10960
+ }, h), y.map(function(B) {
10961
+ return /* @__PURE__ */ M.createElement("line", No({}, B, {
10962
+ key: "line-".concat(B.x1, "-").concat(B.x2, "-").concat(B.y1, "-").concat(B.y2)
10963
10963
  }));
10964
10964
  }));
10965
10965
  });
@@ -11135,7 +11135,7 @@ function Wa(e, t, r, n) {
11135
11135
  });
11136
11136
  if (r === "number") {
11137
11137
  var i = a.filter(function(s) {
11138
- return Q(s) || parseFloat(s);
11138
+ return ee(s) || parseFloat(s);
11139
11139
  });
11140
11140
  return i.length ? [Rs(i), Ar(i)] : [1 / 0, -1 / 0];
11141
11141
  }
@@ -11279,9 +11279,9 @@ var m6 = function(t) {
11279
11279
  });
11280
11280
  if (c) {
11281
11281
  var u = a || {}, f = u.width, d = u.height, h = c.align, v = c.verticalAlign, g = c.layout;
11282
- if ((g === "vertical" || g === "horizontal" && v === "middle") && h !== "center" && Q(t[h]))
11282
+ if ((g === "vertical" || g === "horizontal" && v === "middle") && h !== "center" && ee(t[h]))
11283
11283
  return We(We({}, t), {}, Pn({}, h, t[h] + (f || 0)));
11284
- if ((g === "horizontal" || g === "vertical" && h === "center") && v !== "middle" && Q(t[v]))
11284
+ if ((g === "horizontal" || g === "vertical" && h === "center") && v !== "middle" && ee(t[v]))
11285
11285
  return We(We({}, t), {}, Pn({}, v, t[v] + (d || 0)));
11286
11286
  }
11287
11287
  return t;
@@ -11442,10 +11442,10 @@ var m6 = function(t) {
11442
11442
  return t[n].position;
11443
11443
  return null;
11444
11444
  }, T6 = function(t, r) {
11445
- if (!r || r.length !== 2 || !Q(r[0]) || !Q(r[1]))
11445
+ if (!r || r.length !== 2 || !ee(r[0]) || !ee(r[1]))
11446
11446
  return t;
11447
11447
  var n = Math.min(r[0], r[1]), a = Math.max(r[0], r[1]), i = [t[0], t[1]];
11448
- return (!Q(t[0]) || t[0] < n) && (i[0] = n), (!Q(t[1]) || t[1] > a) && (i[1] = a), i[0] > a && (i[0] = a), i[1] < n && (i[1] = n), i;
11448
+ return (!ee(t[0]) || t[0] < n) && (i[0] = n), (!ee(t[1]) || t[1] > a) && (i[1] = a), i[0] > a && (i[0] = a), i[1] < n && (i[1] = n), i;
11449
11449
  }, A6 = function(t) {
11450
11450
  var r = t.length;
11451
11451
  if (!(r <= 0))
@@ -11581,7 +11581,7 @@ var lh = function(t) {
11581
11581
  return null;
11582
11582
  }, M6 = function(t) {
11583
11583
  return t.reduce(function(r, n) {
11584
- return [Rs(n.concat([r[0]]).filter(Q)), Ar(n.concat([r[1]]).filter(Q))];
11584
+ return [Rs(n.concat([r[0]]).filter(ee)), Ar(n.concat([r[1]]).filter(ee))];
11585
11585
  }, [1 / 0, -1 / 0]);
11586
11586
  }, Dy = function(t, r, n) {
11587
11587
  return Object.keys(t).reduce(function(a, i) {
@@ -11599,13 +11599,13 @@ var lh = function(t) {
11599
11599
  if (!Array.isArray(t))
11600
11600
  return r;
11601
11601
  var a = [];
11602
- if (Q(t[0]))
11602
+ if (ee(t[0]))
11603
11603
  a[0] = n ? t[0] : Math.min(t[0], r[0]);
11604
11604
  else if (ch.test(t[0])) {
11605
11605
  var i = +ch.exec(t[0])[1];
11606
11606
  a[0] = r[0] - i;
11607
11607
  } else pe(t[0]) ? a[0] = t[0](r[0]) : a[0] = r[0];
11608
- if (Q(t[1]))
11608
+ if (ee(t[1]))
11609
11609
  a[1] = n ? t[1] : Math.max(t[1], r[1]);
11610
11610
  else if (uh.test(t[1])) {
11611
11611
  var o = +uh.exec(t[1])[1];
@@ -12013,7 +12013,7 @@ var Q6 = function(t) {
12013
12013
  y: l + u - d,
12014
12014
  textAnchor: b,
12015
12015
  verticalAnchor: h
12016
- }, S) : na(i) && (Q(i.x) || Vr(i.x)) && (Q(i.y) || Vr(i.y)) ? Ze({
12016
+ }, S) : na(i) && (ee(i.x) || Vr(i.x)) && (ee(i.y) || Vr(i.y)) ? Ze({
12017
12017
  x: s + en(i.x, c),
12018
12018
  y: l + en(i.y, u),
12019
12019
  textAnchor: "end",
@@ -12025,7 +12025,7 @@ var Q6 = function(t) {
12025
12025
  verticalAnchor: "middle"
12026
12026
  }, S);
12027
12027
  }, a4 = function(t) {
12028
- return "cx" in t && Q(t.cx);
12028
+ return "cx" in t && ee(t.cx);
12029
12029
  };
12030
12030
  function lt(e) {
12031
12031
  var t = e.offset, r = t === void 0 ? 5 : t, n = K6(e, W6), a = Ze({
@@ -12056,15 +12056,15 @@ var Iy = function(t) {
12056
12056
  var r = t.cx, n = t.cy, a = t.angle, i = t.startAngle, o = t.endAngle, s = t.r, l = t.radius, c = t.innerRadius, u = t.outerRadius, f = t.x, d = t.y, h = t.top, v = t.left, g = t.width, m = t.height, b = t.clockWise, O = t.labelViewBox;
12057
12057
  if (O)
12058
12058
  return O;
12059
- if (Q(g) && Q(m)) {
12060
- if (Q(f) && Q(d))
12059
+ if (ee(g) && ee(m)) {
12060
+ if (ee(f) && ee(d))
12061
12061
  return {
12062
12062
  x: f,
12063
12063
  y: d,
12064
12064
  width: g,
12065
12065
  height: m
12066
12066
  };
12067
- if (Q(h) && Q(v))
12067
+ if (ee(h) && ee(v))
12068
12068
  return {
12069
12069
  x: h,
12070
12070
  y: v,
@@ -12072,12 +12072,12 @@ var Iy = function(t) {
12072
12072
  height: m
12073
12073
  };
12074
12074
  }
12075
- return Q(f) && Q(d) ? {
12075
+ return ee(f) && ee(d) ? {
12076
12076
  x: f,
12077
12077
  y: d,
12078
12078
  width: 0,
12079
12079
  height: 0
12080
- } : Q(r) && Q(n) ? {
12080
+ } : ee(r) && ee(n) ? {
12081
12081
  cx: r,
12082
12082
  cy: n,
12083
12083
  startAngle: i || a || 0,
@@ -12575,7 +12575,7 @@ var Sh = {
12575
12575
  return g.base.y;
12576
12576
  }), d.defined(Ki).curve(u), d(v);
12577
12577
  }
12578
- return s === "vertical" && Q(o) ? d = Li().y(ka).x1($a).x0(o) : Q(o) ? d = Li().x($a).y1(ka).y0(o) : d = Fv().x($a).y(ka), d.defined(Ki).curve(u), d(f);
12578
+ return s === "vertical" && ee(o) ? d = Li().y(ka).x1($a).x0(o) : ee(o) ? d = Li().x($a).y1(ka).y0(o) : d = Fv().x($a).y(ka), d.defined(Ki).curve(u), d(f);
12579
12579
  }, Jr = function(t) {
12580
12580
  var r = t.className, n = t.points, a = t.path, i = t.pathRef;
12581
12581
  if ((!n || !n.length) && !a)
@@ -12683,17 +12683,17 @@ function R4() {
12683
12683
  var ie = I.$$typeof;
12684
12684
  switch (ie) {
12685
12685
  case t:
12686
- var Y = I.type;
12687
- switch (Y) {
12686
+ var X = I.type;
12687
+ switch (X) {
12688
12688
  case l:
12689
12689
  case c:
12690
12690
  case n:
12691
12691
  case i:
12692
12692
  case a:
12693
12693
  case f:
12694
- return Y;
12694
+ return X;
12695
12695
  default:
12696
- var le = Y && Y.$$typeof;
12696
+ var le = X && X.$$typeof;
12697
12697
  switch (le) {
12698
12698
  case s:
12699
12699
  case u:
@@ -12717,7 +12717,7 @@ function R4() {
12717
12717
  function C(I) {
12718
12718
  return A(I) === c;
12719
12719
  }
12720
- function L(I) {
12720
+ function B(I) {
12721
12721
  return A(I) === s;
12722
12722
  }
12723
12723
  function U(I) {
@@ -12729,16 +12729,16 @@ function R4() {
12729
12729
  function K(I) {
12730
12730
  return A(I) === u;
12731
12731
  }
12732
- function B(I) {
12732
+ function L(I) {
12733
12733
  return A(I) === n;
12734
12734
  }
12735
12735
  function G(I) {
12736
12736
  return A(I) === v;
12737
12737
  }
12738
- function X(I) {
12738
+ function Y(I) {
12739
12739
  return A(I) === h;
12740
12740
  }
12741
- function te(I) {
12741
+ function Q(I) {
12742
12742
  return A(I) === r;
12743
12743
  }
12744
12744
  function V(I) {
@@ -12747,10 +12747,10 @@ function R4() {
12747
12747
  function Z(I) {
12748
12748
  return A(I) === a;
12749
12749
  }
12750
- function ee(I) {
12750
+ function te(I) {
12751
12751
  return A(I) === f;
12752
12752
  }
12753
- Ae.AsyncMode = y, Ae.ConcurrentMode = w, Ae.ContextConsumer = S, Ae.ContextProvider = T, Ae.Element = P, Ae.ForwardRef = E, Ae.Fragment = j, Ae.Lazy = _, Ae.Memo = R, Ae.Portal = $, Ae.Profiler = D, Ae.StrictMode = k, Ae.Suspense = F, Ae.isAsyncMode = q, Ae.isConcurrentMode = C, Ae.isContextConsumer = L, Ae.isContextProvider = U, Ae.isElement = W, Ae.isForwardRef = K, Ae.isFragment = B, Ae.isLazy = G, Ae.isMemo = X, Ae.isPortal = te, Ae.isProfiler = V, Ae.isStrictMode = Z, Ae.isSuspense = ee, Ae.isValidElementType = x, Ae.typeOf = A;
12753
+ Ae.AsyncMode = y, Ae.ConcurrentMode = w, Ae.ContextConsumer = S, Ae.ContextProvider = T, Ae.Element = P, Ae.ForwardRef = E, Ae.Fragment = j, Ae.Lazy = _, Ae.Memo = R, Ae.Portal = $, Ae.Profiler = D, Ae.StrictMode = k, Ae.Suspense = F, Ae.isAsyncMode = q, Ae.isConcurrentMode = C, Ae.isContextConsumer = B, Ae.isContextProvider = U, Ae.isElement = W, Ae.isForwardRef = K, Ae.isFragment = L, Ae.isLazy = G, Ae.isMemo = Y, Ae.isPortal = Q, Ae.isProfiler = V, Ae.isStrictMode = Z, Ae.isSuspense = te, Ae.isValidElementType = x, Ae.typeOf = A;
12754
12754
  }()), Ae;
12755
12755
  }
12756
12756
  var jh;
@@ -12888,9 +12888,9 @@ function B4() {
12888
12888
  return $l = function(s, l) {
12889
12889
  var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
12890
12890
  function f(C) {
12891
- var L = C && (c && C[c] || C[u]);
12892
- if (typeof L == "function")
12893
- return L;
12891
+ var B = C && (c && C[c] || C[u]);
12892
+ if (typeof B == "function")
12893
+ return B;
12894
12894
  }
12895
12895
  var d = "<<anonymous>>", h = {
12896
12896
  array: b("array"),
@@ -12913,209 +12913,209 @@ function B4() {
12913
12913
  shape: _,
12914
12914
  exact: R
12915
12915
  };
12916
- function v(C, L) {
12917
- return C === L ? C !== 0 || 1 / C === 1 / L : C !== C && L !== L;
12916
+ function v(C, B) {
12917
+ return C === B ? C !== 0 || 1 / C === 1 / B : C !== C && B !== B;
12918
12918
  }
12919
- function g(C, L) {
12920
- this.message = C, this.data = L && typeof L == "object" ? L : {}, this.stack = "";
12919
+ function g(C, B) {
12920
+ this.message = C, this.data = B && typeof B == "object" ? B : {}, this.stack = "";
12921
12921
  }
12922
12922
  g.prototype = Error.prototype;
12923
12923
  function m(C) {
12924
12924
  if (process.env.NODE_ENV !== "production")
12925
- var L = {}, U = 0;
12926
- function W(B, G, X, te, V, Z, ee) {
12927
- if (te = te || d, Z = Z || X, ee !== r) {
12925
+ var B = {}, U = 0;
12926
+ function W(L, G, Y, Q, V, Z, te) {
12927
+ if (Q = Q || d, Z = Z || Y, te !== r) {
12928
12928
  if (l) {
12929
12929
  var I = new Error(
12930
12930
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
12931
12931
  );
12932
12932
  throw I.name = "Invariant Violation", I;
12933
12933
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
12934
- var ie = te + ":" + X;
12935
- !L[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
12934
+ var ie = Q + ":" + Y;
12935
+ !B[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
12936
12936
  U < 3 && (i(
12937
- "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + te + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
12938
- ), L[ie] = !0, U++);
12937
+ "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
12938
+ ), B[ie] = !0, U++);
12939
12939
  }
12940
12940
  }
12941
- return G[X] == null ? B ? G[X] === null ? new g("The " + V + " `" + Z + "` is marked as required " + ("in `" + te + "`, but its value is `null`.")) : new g("The " + V + " `" + Z + "` is marked as required in " + ("`" + te + "`, but its value is `undefined`.")) : null : C(G, X, te, V, Z);
12941
+ return G[Y] == null ? L ? G[Y] === null ? new g("The " + V + " `" + Z + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new g("The " + V + " `" + Z + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : C(G, Y, Q, V, Z);
12942
12942
  }
12943
12943
  var K = W.bind(null, !1);
12944
12944
  return K.isRequired = W.bind(null, !0), K;
12945
12945
  }
12946
12946
  function b(C) {
12947
- function L(U, W, K, B, G, X) {
12948
- var te = U[W], V = k(te);
12947
+ function B(U, W, K, L, G, Y) {
12948
+ var Q = U[W], V = k(Q);
12949
12949
  if (V !== C) {
12950
- var Z = F(te);
12950
+ var Z = F(Q);
12951
12951
  return new g(
12952
- "Invalid " + B + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + K + "`, expected ") + ("`" + C + "`."),
12952
+ "Invalid " + L + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + K + "`, expected ") + ("`" + C + "`."),
12953
12953
  { expectedType: C }
12954
12954
  );
12955
12955
  }
12956
12956
  return null;
12957
12957
  }
12958
- return m(L);
12958
+ return m(B);
12959
12959
  }
12960
12960
  function O() {
12961
12961
  return m(o);
12962
12962
  }
12963
12963
  function x(C) {
12964
- function L(U, W, K, B, G) {
12964
+ function B(U, W, K, L, G) {
12965
12965
  if (typeof C != "function")
12966
12966
  return new g("Property `" + G + "` of component `" + K + "` has invalid PropType notation inside arrayOf.");
12967
- var X = U[W];
12968
- if (!Array.isArray(X)) {
12969
- var te = k(X);
12970
- return new g("Invalid " + B + " `" + G + "` of type " + ("`" + te + "` supplied to `" + K + "`, expected an array."));
12967
+ var Y = U[W];
12968
+ if (!Array.isArray(Y)) {
12969
+ var Q = k(Y);
12970
+ return new g("Invalid " + L + " `" + G + "` of type " + ("`" + Q + "` supplied to `" + K + "`, expected an array."));
12971
12971
  }
12972
- for (var V = 0; V < X.length; V++) {
12973
- var Z = C(X, V, K, B, G + "[" + V + "]", r);
12972
+ for (var V = 0; V < Y.length; V++) {
12973
+ var Z = C(Y, V, K, L, G + "[" + V + "]", r);
12974
12974
  if (Z instanceof Error)
12975
12975
  return Z;
12976
12976
  }
12977
12977
  return null;
12978
12978
  }
12979
- return m(L);
12979
+ return m(B);
12980
12980
  }
12981
12981
  function A() {
12982
- function C(L, U, W, K, B) {
12983
- var G = L[U];
12982
+ function C(B, U, W, K, L) {
12983
+ var G = B[U];
12984
12984
  if (!s(G)) {
12985
- var X = k(G);
12986
- return new g("Invalid " + K + " `" + B + "` of type " + ("`" + X + "` supplied to `" + W + "`, expected a single ReactElement."));
12985
+ var Y = k(G);
12986
+ return new g("Invalid " + K + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + W + "`, expected a single ReactElement."));
12987
12987
  }
12988
12988
  return null;
12989
12989
  }
12990
12990
  return m(C);
12991
12991
  }
12992
12992
  function y() {
12993
- function C(L, U, W, K, B) {
12994
- var G = L[U];
12993
+ function C(B, U, W, K, L) {
12994
+ var G = B[U];
12995
12995
  if (!e.isValidElementType(G)) {
12996
- var X = k(G);
12997
- return new g("Invalid " + K + " `" + B + "` of type " + ("`" + X + "` supplied to `" + W + "`, expected a single ReactElement type."));
12996
+ var Y = k(G);
12997
+ return new g("Invalid " + K + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + W + "`, expected a single ReactElement type."));
12998
12998
  }
12999
12999
  return null;
13000
13000
  }
13001
13001
  return m(C);
13002
13002
  }
13003
13003
  function w(C) {
13004
- function L(U, W, K, B, G) {
13004
+ function B(U, W, K, L, G) {
13005
13005
  if (!(U[W] instanceof C)) {
13006
- var X = C.name || d, te = q(U[W]);
13007
- return new g("Invalid " + B + " `" + G + "` of type " + ("`" + te + "` supplied to `" + K + "`, expected ") + ("instance of `" + X + "`."));
13006
+ var Y = C.name || d, Q = q(U[W]);
13007
+ return new g("Invalid " + L + " `" + G + "` of type " + ("`" + Q + "` supplied to `" + K + "`, expected ") + ("instance of `" + Y + "`."));
13008
13008
  }
13009
13009
  return null;
13010
13010
  }
13011
- return m(L);
13011
+ return m(B);
13012
13012
  }
13013
13013
  function S(C) {
13014
13014
  if (!Array.isArray(C))
13015
13015
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
13016
13016
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
13017
13017
  ) : i("Invalid argument supplied to oneOf, expected an array.")), o;
13018
- function L(U, W, K, B, G) {
13019
- for (var X = U[W], te = 0; te < C.length; te++)
13020
- if (v(X, C[te]))
13018
+ function B(U, W, K, L, G) {
13019
+ for (var Y = U[W], Q = 0; Q < C.length; Q++)
13020
+ if (v(Y, C[Q]))
13021
13021
  return null;
13022
- var V = JSON.stringify(C, function(ee, I) {
13022
+ var V = JSON.stringify(C, function(te, I) {
13023
13023
  var ie = F(I);
13024
13024
  return ie === "symbol" ? String(I) : I;
13025
13025
  });
13026
- return new g("Invalid " + B + " `" + G + "` of value `" + String(X) + "` " + ("supplied to `" + K + "`, expected one of " + V + "."));
13026
+ return new g("Invalid " + L + " `" + G + "` of value `" + String(Y) + "` " + ("supplied to `" + K + "`, expected one of " + V + "."));
13027
13027
  }
13028
- return m(L);
13028
+ return m(B);
13029
13029
  }
13030
13030
  function T(C) {
13031
- function L(U, W, K, B, G) {
13031
+ function B(U, W, K, L, G) {
13032
13032
  if (typeof C != "function")
13033
13033
  return new g("Property `" + G + "` of component `" + K + "` has invalid PropType notation inside objectOf.");
13034
- var X = U[W], te = k(X);
13035
- if (te !== "object")
13036
- return new g("Invalid " + B + " `" + G + "` of type " + ("`" + te + "` supplied to `" + K + "`, expected an object."));
13037
- for (var V in X)
13038
- if (n(X, V)) {
13039
- var Z = C(X, V, K, B, G + "." + V, r);
13034
+ var Y = U[W], Q = k(Y);
13035
+ if (Q !== "object")
13036
+ return new g("Invalid " + L + " `" + G + "` of type " + ("`" + Q + "` supplied to `" + K + "`, expected an object."));
13037
+ for (var V in Y)
13038
+ if (n(Y, V)) {
13039
+ var Z = C(Y, V, K, L, G + "." + V, r);
13040
13040
  if (Z instanceof Error)
13041
13041
  return Z;
13042
13042
  }
13043
13043
  return null;
13044
13044
  }
13045
- return m(L);
13045
+ return m(B);
13046
13046
  }
13047
13047
  function P(C) {
13048
13048
  if (!Array.isArray(C))
13049
13049
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
13050
- for (var L = 0; L < C.length; L++) {
13051
- var U = C[L];
13050
+ for (var B = 0; B < C.length; B++) {
13051
+ var U = C[B];
13052
13052
  if (typeof U != "function")
13053
13053
  return i(
13054
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(U) + " at index " + L + "."
13054
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(U) + " at index " + B + "."
13055
13055
  ), o;
13056
13056
  }
13057
- function W(K, B, G, X, te) {
13057
+ function W(K, L, G, Y, Q) {
13058
13058
  for (var V = [], Z = 0; Z < C.length; Z++) {
13059
- var ee = C[Z], I = ee(K, B, G, X, te, r);
13059
+ var te = C[Z], I = te(K, L, G, Y, Q, r);
13060
13060
  if (I == null)
13061
13061
  return null;
13062
13062
  I.data && n(I.data, "expectedType") && V.push(I.data.expectedType);
13063
13063
  }
13064
13064
  var ie = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
13065
- return new g("Invalid " + X + " `" + te + "` supplied to " + ("`" + G + "`" + ie + "."));
13065
+ return new g("Invalid " + Y + " `" + Q + "` supplied to " + ("`" + G + "`" + ie + "."));
13066
13066
  }
13067
13067
  return m(W);
13068
13068
  }
13069
13069
  function E() {
13070
- function C(L, U, W, K, B) {
13071
- return $(L[U]) ? null : new g("Invalid " + K + " `" + B + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
13070
+ function C(B, U, W, K, L) {
13071
+ return $(B[U]) ? null : new g("Invalid " + K + " `" + L + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
13072
13072
  }
13073
13073
  return m(C);
13074
13074
  }
13075
- function j(C, L, U, W, K) {
13075
+ function j(C, B, U, W, K) {
13076
13076
  return new g(
13077
- (C || "React class") + ": " + L + " type `" + U + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + K + "`."
13077
+ (C || "React class") + ": " + B + " type `" + U + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + K + "`."
13078
13078
  );
13079
13079
  }
13080
13080
  function _(C) {
13081
- function L(U, W, K, B, G) {
13082
- var X = U[W], te = k(X);
13083
- if (te !== "object")
13084
- return new g("Invalid " + B + " `" + G + "` of type `" + te + "` " + ("supplied to `" + K + "`, expected `object`."));
13081
+ function B(U, W, K, L, G) {
13082
+ var Y = U[W], Q = k(Y);
13083
+ if (Q !== "object")
13084
+ return new g("Invalid " + L + " `" + G + "` of type `" + Q + "` " + ("supplied to `" + K + "`, expected `object`."));
13085
13085
  for (var V in C) {
13086
13086
  var Z = C[V];
13087
13087
  if (typeof Z != "function")
13088
- return j(K, B, G, V, F(Z));
13089
- var ee = Z(X, V, K, B, G + "." + V, r);
13090
- if (ee)
13091
- return ee;
13088
+ return j(K, L, G, V, F(Z));
13089
+ var te = Z(Y, V, K, L, G + "." + V, r);
13090
+ if (te)
13091
+ return te;
13092
13092
  }
13093
13093
  return null;
13094
13094
  }
13095
- return m(L);
13095
+ return m(B);
13096
13096
  }
13097
13097
  function R(C) {
13098
- function L(U, W, K, B, G) {
13099
- var X = U[W], te = k(X);
13100
- if (te !== "object")
13101
- return new g("Invalid " + B + " `" + G + "` of type `" + te + "` " + ("supplied to `" + K + "`, expected `object`."));
13098
+ function B(U, W, K, L, G) {
13099
+ var Y = U[W], Q = k(Y);
13100
+ if (Q !== "object")
13101
+ return new g("Invalid " + L + " `" + G + "` of type `" + Q + "` " + ("supplied to `" + K + "`, expected `object`."));
13102
13102
  var V = t({}, U[W], C);
13103
13103
  for (var Z in V) {
13104
- var ee = C[Z];
13105
- if (n(C, Z) && typeof ee != "function")
13106
- return j(K, B, G, Z, F(ee));
13107
- if (!ee)
13104
+ var te = C[Z];
13105
+ if (n(C, Z) && typeof te != "function")
13106
+ return j(K, L, G, Z, F(te));
13107
+ if (!te)
13108
13108
  return new g(
13109
- "Invalid " + B + " `" + G + "` key `" + Z + "` supplied to `" + K + "`.\nBad object: " + JSON.stringify(U[W], null, " ") + `
13109
+ "Invalid " + L + " `" + G + "` key `" + Z + "` supplied to `" + K + "`.\nBad object: " + JSON.stringify(U[W], null, " ") + `
13110
13110
  Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
13111
13111
  );
13112
- var I = ee(X, Z, K, B, G + "." + Z, r);
13112
+ var I = te(Y, Z, K, L, G + "." + Z, r);
13113
13113
  if (I)
13114
13114
  return I;
13115
13115
  }
13116
13116
  return null;
13117
13117
  }
13118
- return m(L);
13118
+ return m(B);
13119
13119
  }
13120
13120
  function $(C) {
13121
13121
  switch (typeof C) {
@@ -13130,10 +13130,10 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
13130
13130
  return C.every($);
13131
13131
  if (C === null || s(C))
13132
13132
  return !0;
13133
- var L = f(C);
13134
- if (L) {
13135
- var U = L.call(C), W;
13136
- if (L !== C.entries) {
13133
+ var B = f(C);
13134
+ if (B) {
13135
+ var U = B.call(C), W;
13136
+ if (B !== C.entries) {
13137
13137
  for (; !(W = U.next()).done; )
13138
13138
  if (!$(W.value))
13139
13139
  return !1;
@@ -13150,37 +13150,37 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
13150
13150
  return !1;
13151
13151
  }
13152
13152
  }
13153
- function D(C, L) {
13154
- return C === "symbol" ? !0 : L ? L["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && L instanceof Symbol : !1;
13153
+ function D(C, B) {
13154
+ return C === "symbol" ? !0 : B ? B["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && B instanceof Symbol : !1;
13155
13155
  }
13156
13156
  function k(C) {
13157
- var L = typeof C;
13158
- return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : D(L, C) ? "symbol" : L;
13157
+ var B = typeof C;
13158
+ return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : D(B, C) ? "symbol" : B;
13159
13159
  }
13160
13160
  function F(C) {
13161
13161
  if (typeof C > "u" || C === null)
13162
13162
  return "" + C;
13163
- var L = k(C);
13164
- if (L === "object") {
13163
+ var B = k(C);
13164
+ if (B === "object") {
13165
13165
  if (C instanceof Date)
13166
13166
  return "date";
13167
13167
  if (C instanceof RegExp)
13168
13168
  return "regexp";
13169
13169
  }
13170
- return L;
13170
+ return B;
13171
13171
  }
13172
13172
  function z(C) {
13173
- var L = F(C);
13174
- switch (L) {
13173
+ var B = F(C);
13174
+ switch (B) {
13175
13175
  case "array":
13176
13176
  case "object":
13177
- return "an " + L;
13177
+ return "an " + B;
13178
13178
  case "boolean":
13179
13179
  case "date":
13180
13180
  case "regexp":
13181
- return "a " + L;
13181
+ return "a " + B;
13182
13182
  default:
13183
- return L;
13183
+ return B;
13184
13184
  }
13185
13185
  }
13186
13186
  function q(C) {
@@ -14626,7 +14626,7 @@ var ID = function(t, r, n, a, i, o) {
14626
14626
  width: f,
14627
14627
  height: h
14628
14628
  }, g);
14629
- return !Q(n) || !Q(i) || !Q(f) || !Q(h) || !Q(s) || !Q(c) ? null : /* @__PURE__ */ M.createElement("path", Kc({}, de(m, !0), {
14629
+ return !ee(n) || !ee(i) || !ee(f) || !ee(h) || !ee(s) || !ee(c) ? null : /* @__PURE__ */ M.createElement("path", Kc({}, de(m, !0), {
14630
14630
  className: ve("recharts-cross", v),
14631
14631
  d: ID(n, i, f, h, s, c)
14632
14632
  }));
@@ -15422,7 +15422,7 @@ var rI = function(t) {
15422
15422
  key: "render",
15423
15423
  value: function() {
15424
15424
  var n = this.props, a = n.data, i = n.className, o = n.children, s = n.x, l = n.y, c = n.width, u = n.height, f = n.alwaysShowText, d = this.state, h = d.startX, v = d.endX, g = d.isTextActive, m = d.isSlideMoving, b = d.isTravellerMoving, O = d.isTravellerFocused;
15425
- if (!a || !a.length || !Q(s) || !Q(l) || !Q(c) || !Q(u) || c <= 0 || u <= 0)
15425
+ if (!a || !a.length || !ee(s) || !ee(l) || !ee(c) || !ee(u) || c <= 0 || u <= 0)
15426
15426
  return null;
15427
15427
  var x = ve("recharts-brush", i), A = M.Children.count(o) === 1, y = KR("userSelect", "none");
15428
15428
  return /* @__PURE__ */ M.createElement(xe, {
@@ -15688,7 +15688,7 @@ var UI = function(t) {
15688
15688
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
15689
15689
  return function(n, a) {
15690
15690
  if (typeof t == "number") return t;
15691
- var i = Q(n) || J2(n);
15691
+ var i = ee(n) || J2(n);
15692
15692
  return i ? t(n, a) : (i || (process.env.NODE_ENV !== "production" ? vt(!1, "minPointSize callback function received a value with type of ".concat(Un(n), ". Currently only numbers or null/undefined are supported.")) : vt()), r);
15693
15693
  };
15694
15694
  }, WI = ["value", "background"], t0;
@@ -16031,7 +16031,7 @@ jr(ma, "getComposedData", function(e) {
16031
16031
  c ? j = T6(c[u + E], y) : (j = tt(P, b), Array.isArray(j) || (j = [w, j]));
16032
16032
  var F = UI(x, t0.defaultProps.minPointSize)(j[1], E);
16033
16033
  if (v === "horizontal") {
16034
- var z, q = [o.scale(j[0]), o.scale(j[1])], C = q[0], L = q[1];
16034
+ var z, q = [o.scale(j[0]), o.scale(j[1])], C = q[0], B = q[1];
16035
16035
  _ = lh({
16036
16036
  axis: i,
16037
16037
  ticks: s,
@@ -16039,8 +16039,8 @@ jr(ma, "getComposedData", function(e) {
16039
16039
  offset: h.offset,
16040
16040
  entry: P,
16041
16041
  index: E
16042
- }), R = (z = L ?? C) !== null && z !== void 0 ? z : void 0, $ = h.size;
16043
- var U = C - L;
16042
+ }), R = (z = B ?? C) !== null && z !== void 0 ? z : void 0, $ = h.size;
16043
+ var U = C - B;
16044
16044
  if (D = Number.isNaN(U) ? 0 : U, k = {
16045
16045
  x: _,
16046
16046
  y: o.y,
@@ -16051,22 +16051,22 @@ jr(ma, "getComposedData", function(e) {
16051
16051
  R -= W, D += W;
16052
16052
  }
16053
16053
  } else {
16054
- var K = [i.scale(j[0]), i.scale(j[1])], B = K[0], G = K[1];
16055
- if (_ = B, R = lh({
16054
+ var K = [i.scale(j[0]), i.scale(j[1])], L = K[0], G = K[1];
16055
+ if (_ = L, R = lh({
16056
16056
  axis: o,
16057
16057
  ticks: l,
16058
16058
  bandSize: a,
16059
16059
  offset: h.offset,
16060
16060
  entry: P,
16061
16061
  index: E
16062
- }), $ = G - B, D = h.size, k = {
16062
+ }), $ = G - L, D = h.size, k = {
16063
16063
  x: i.x,
16064
16064
  y: R,
16065
16065
  width: i.width,
16066
16066
  height: D
16067
16067
  }, Math.abs(F) > 0 && Math.abs($) < Math.abs(F)) {
16068
- var X = Ut($ || F) * (Math.abs(F) - Math.abs($));
16069
- $ += X;
16068
+ var Y = Ut($ || F) * (Math.abs(F) - Math.abs($));
16069
+ $ += Y;
16070
16070
  }
16071
16071
  }
16072
16072
  return Ke(Ke(Ke({}, P), {}, {
@@ -16164,8 +16164,8 @@ var t9 = function(t, r, n, a, i) {
16164
16164
  var g = r[v], m = g.orientation, b = g.domain, O = g.padding, x = O === void 0 ? {} : O, A = g.mirror, y = g.reversed, w = "".concat(m).concat(A ? "Mirror" : ""), S, T, P, E, j;
16165
16165
  if (g.type === "number" && (g.padding === "gap" || g.padding === "no-gap")) {
16166
16166
  var _ = b[1] - b[0], R = 1 / 0, $ = g.categoricalDomain.sort(rO);
16167
- if ($.forEach(function(K, B) {
16168
- B > 0 && (R = Math.min((K || 0) - ($[B - 1] || 0), R));
16167
+ if ($.forEach(function(K, L) {
16168
+ L > 0 && (R = Math.min((K || 0) - ($[L - 1] || 0), R));
16169
16169
  }), Number.isFinite(R)) {
16170
16170
  var D = R / _, k = g.layout === "vertical" ? n.height : n.width;
16171
16171
  if (g.padding === "gap" && (S = D * k / 2), g.padding === "no-gap") {
@@ -16175,14 +16175,14 @@ var t9 = function(t, r, n, a, i) {
16175
16175
  }
16176
16176
  }
16177
16177
  a === "xAxis" ? T = [n.left + (x.left || 0) + (S || 0), n.left + n.width - (x.right || 0) - (S || 0)] : a === "yAxis" ? T = l === "horizontal" ? [n.top + n.height - (x.bottom || 0), n.top + (x.top || 0)] : [n.top + (x.top || 0) + (S || 0), n.top + n.height - (x.bottom || 0) - (S || 0)] : T = g.range, y && (T = [T[1], T[0]]);
16178
- var q = w6(g, i, d), C = q.scale, L = q.realScaleType;
16178
+ var q = w6(g, i, d), C = q.scale, B = q.realScaleType;
16179
16179
  C.domain(b).range(T), O6(C);
16180
16180
  var U = C6(C, Lt(Lt({}, g), {}, {
16181
- realScaleType: L
16181
+ realScaleType: B
16182
16182
  }));
16183
16183
  a === "xAxis" ? (j = m === "top" && !A || m === "bottom" && A, P = n.left, E = f[w] - j * g.height) : a === "yAxis" && (j = m === "left" && !A || m === "right" && A, P = f[w] - j * g.width, E = n.top);
16184
16184
  var W = Lt(Lt(Lt({}, g), U), {}, {
16185
- realScaleType: L,
16185
+ realScaleType: B,
16186
16186
  x: P,
16187
16187
  y: E,
16188
16188
  scale: C,
@@ -17154,8 +17154,8 @@ function Pf(e, t, r) {
17154
17154
  var n = e.tick, a = e.ticks, i = e.viewBox, o = e.minTickGap, s = e.orientation, l = e.interval, c = e.tickFormatter, u = e.unit, f = e.angle;
17155
17155
  if (!a || !a.length || !n)
17156
17156
  return [];
17157
- if (Q(l) || kr.isSsr)
17158
- return dL(a, typeof l == "number" && Q(l) ? l : 0);
17157
+ if (ee(l) || kr.isSsr)
17158
+ return dL(a, typeof l == "number" && ee(l) ? l : 0);
17159
17159
  var d = [], h = s === "top" || s === "bottom" ? "width" : "height", v = u && h === "width" ? Fa(u, {
17160
17160
  fontSize: t,
17161
17161
  letterSpacing: r
@@ -17341,7 +17341,7 @@ var va = /* @__PURE__ */ function(e) {
17341
17341
  }, {
17342
17342
  key: "getTickLineCoord",
17343
17343
  value: function(n) {
17344
- var a = this.props, i = a.x, o = a.y, s = a.width, l = a.height, c = a.orientation, u = a.tickSize, f = a.mirror, d = a.tickMargin, h, v, g, m, b, O, x = f ? -1 : 1, A = n.tickSize || u, y = Q(n.tickCoord) ? n.tickCoord : n.coordinate;
17344
+ var a = this.props, i = a.x, o = a.y, s = a.width, l = a.height, c = a.orientation, u = a.tickSize, f = a.mirror, d = a.tickMargin, h, v, g, m, b, O, x = f ? -1 : 1, A = n.tickSize || u, y = ee(n.tickCoord) ? n.tickCoord : n.coordinate;
17345
17345
  switch (c) {
17346
17346
  case "top":
17347
17347
  h = v = n.coordinate, m = o + +!f * l, g = m - x * A, O = g - x * d, b = y;
@@ -17780,12 +17780,12 @@ function A0(e) {
17780
17780
  horizontalFill: (a = e.horizontalFill) !== null && a !== void 0 ? a : vn.horizontalFill,
17781
17781
  vertical: (i = e.vertical) !== null && i !== void 0 ? i : vn.vertical,
17782
17782
  verticalFill: (o = e.verticalFill) !== null && o !== void 0 ? o : vn.verticalFill,
17783
- x: Q(e.x) ? e.x : c.left,
17784
- y: Q(e.y) ? e.y : c.top,
17785
- width: Q(e.width) ? e.width : c.width,
17786
- height: Q(e.height) ? e.height : c.height
17783
+ x: ee(e.x) ? e.x : c.left,
17784
+ y: ee(e.y) ? e.y : c.top,
17785
+ width: ee(e.width) ? e.width : c.width,
17786
+ height: ee(e.height) ? e.height : c.height
17787
17787
  }), f = u.x, d = u.y, h = u.width, v = u.height, g = u.syncWithTicks, m = u.horizontalValues, b = u.verticalValues, O = j9(), x = P9();
17788
- if (!Q(h) || h <= 0 || !Q(v) || v <= 0 || !Q(f) || f !== +f || !Q(d) || d !== +d)
17788
+ if (!ee(h) || h <= 0 || !ee(v) || v <= 0 || !ee(f) || f !== +f || !ee(d) || d !== +d)
17789
17789
  return null;
17790
17790
  var A = u.verticalCoordinatesGenerator || UL, y = u.horizontalCoordinatesGenerator || WL, w = u.horizontalPoints, S = u.verticalPoints;
17791
17791
  if ((!w || !w.length) && pe(y)) {
@@ -18501,9 +18501,9 @@ var Rr = /* @__PURE__ */ function(e) {
18501
18501
  var a = this.props, i = a.baseLine, o = a.points, s = a.strokeWidth, l = o[0].x, c = o[o.length - 1].x, u = n * Math.abs(l - c), f = Ar(o.map(function(d) {
18502
18502
  return d.y || 0;
18503
18503
  }));
18504
- return Q(i) && typeof i == "number" ? f = Math.max(i, f) : i && Array.isArray(i) && i.length && (f = Math.max(Ar(i.map(function(d) {
18504
+ return ee(i) && typeof i == "number" ? f = Math.max(i, f) : i && Array.isArray(i) && i.length && (f = Math.max(Ar(i.map(function(d) {
18505
18505
  return d.y || 0;
18506
- })), f)), Q(f) ? /* @__PURE__ */ M.createElement("rect", {
18506
+ })), f)), ee(f) ? /* @__PURE__ */ M.createElement("rect", {
18507
18507
  x: l < c ? l : l - u,
18508
18508
  y: 0,
18509
18509
  width: u,
@@ -18516,9 +18516,9 @@ var Rr = /* @__PURE__ */ function(e) {
18516
18516
  var a = this.props, i = a.baseLine, o = a.points, s = a.strokeWidth, l = o[0].y, c = o[o.length - 1].y, u = n * Math.abs(l - c), f = Ar(o.map(function(d) {
18517
18517
  return d.x || 0;
18518
18518
  }));
18519
- return Q(i) && typeof i == "number" ? f = Math.max(i, f) : i && Array.isArray(i) && i.length && (f = Math.max(Ar(i.map(function(d) {
18519
+ return ee(i) && typeof i == "number" ? f = Math.max(i, f) : i && Array.isArray(i) && i.length && (f = Math.max(Ar(i.map(function(d) {
18520
18520
  return d.x || 0;
18521
- })), f)), Q(f) ? /* @__PURE__ */ M.createElement("rect", {
18521
+ })), f)), ee(f) ? /* @__PURE__ */ M.createElement("rect", {
18522
18522
  x: 0,
18523
18523
  y: l < c ? l : l - u,
18524
18524
  width: f + (s ? parseInt("".concat(s), 10) : 1),
@@ -18595,7 +18595,7 @@ var Rr = /* @__PURE__ */ function(e) {
18595
18595
  }
18596
18596
  return T;
18597
18597
  }), y;
18598
- if (Q(l) && typeof l == "number") {
18598
+ if (ee(l) && typeof l == "number") {
18599
18599
  var w = Ge(m, l);
18600
18600
  y = w(O);
18601
18601
  } else if (fe(l) || sa(l)) {
@@ -18694,7 +18694,7 @@ Ht(Rr, "defaultProps", {
18694
18694
  });
18695
18695
  Ht(Rr, "getBaseValue", function(e, t, r, n) {
18696
18696
  var a = e.layout, i = e.baseValue, o = t.props.baseValue, s = o ?? i;
18697
- if (Q(s) && typeof s == "number")
18697
+ if (ee(s) && typeof s == "number")
18698
18698
  return s;
18699
18699
  var l = a === "horizontal" ? n : r, c = l.scale.domain();
18700
18700
  if (l.type === "number") {
@@ -19574,7 +19574,7 @@ function mu(e, t) {
19574
19574
  var vu = function(t, r, n, a, i) {
19575
19575
  var o = gt(t, jf), s = gt(t, Vs), l = [].concat(Um(o), Um(s)), c = gt(t, Hs), u = "".concat(a, "Id"), f = a[0], d = r;
19576
19576
  if (l.length && (d = l.reduce(function(g, m) {
19577
- if (m.props[u] === n && Xt(m.props, "extendDomain") && Q(m.props[f])) {
19577
+ if (m.props[u] === n && Xt(m.props, "extendDomain") && ee(m.props[f])) {
19578
19578
  var b = m.props[f];
19579
19579
  return [Math.min(g[0], b), Math.max(g[1], b)];
19580
19580
  }
@@ -19582,7 +19582,7 @@ var vu = function(t, r, n, a, i) {
19582
19582
  }, d)), c.length) {
19583
19583
  var h = "".concat(f, "1"), v = "".concat(f, "2");
19584
19584
  d = c.reduce(function(g, m) {
19585
- if (m.props[u] === n && Xt(m.props, "extendDomain") && Q(m.props[h]) && Q(m.props[v])) {
19585
+ if (m.props[u] === n && Xt(m.props, "extendDomain") && ee(m.props[h]) && ee(m.props[v])) {
19586
19586
  var b = m.props[h], O = m.props[v];
19587
19587
  return [Math.min(g[0], b, O), Math.max(g[1], b, O)];
19588
19588
  }
@@ -19590,7 +19590,7 @@ var vu = function(t, r, n, a, i) {
19590
19590
  }, d);
19591
19591
  }
19592
19592
  return i && i.length && (d = i.reduce(function(g, m) {
19593
- return Q(m) ? [Math.min(g[0], m), Math.max(g[1], m)] : g;
19593
+ return ee(m) ? [Math.min(g[0], m), Math.max(g[1], m)] : g;
19594
19594
  }, d)), d;
19595
19595
  }, z0 = { exports: {} };
19596
19596
  (function(e) {
@@ -19794,7 +19794,7 @@ var oB = /* @__PURE__ */ function() {
19794
19794
  function sB(e, t, r) {
19795
19795
  if (r === "number" && t === !0 && Array.isArray(e)) {
19796
19796
  var n = e == null ? void 0 : e[0], a = e == null ? void 0 : e[1];
19797
- if (n && a && Q(n) && Q(a))
19797
+ if (n && a && ee(n) && ee(a))
19798
19798
  return !0;
19799
19799
  }
19800
19800
  return !1;
@@ -20153,7 +20153,7 @@ var MB = function(t, r) {
20153
20153
  var c = l.props.data;
20154
20154
  return c && c.length ? [].concat(ea(s), ea(c)) : s;
20155
20155
  }, []);
20156
- return o.length > 0 ? o : t && t.length && Q(a) && Q(i) ? t.slice(a, i + 1) : [];
20156
+ return o.length > 0 ? o : t && t.length && ee(a) && ee(i) ? t.slice(a, i + 1) : [];
20157
20157
  };
20158
20158
  function X0(e) {
20159
20159
  return e === "number" ? [0, "auto"] : void 0;
@@ -20220,8 +20220,8 @@ var bu = function(t, r, n, a) {
20220
20220
  }, []);
20221
20221
  else if (O === "number") {
20222
20222
  var q = x6(E, a.filter(function(U) {
20223
- var W, K, B = o in U.props ? U.props[o] : (W = U.type.defaultProps) === null || W === void 0 ? void 0 : W[o], G = "hide" in U.props ? U.props.hide : (K = U.type.defaultProps) === null || K === void 0 ? void 0 : K.hide;
20224
- return B === P && (T || !G);
20223
+ var W, K, L = o in U.props ? U.props[o] : (W = U.type.defaultProps) === null || W === void 0 ? void 0 : W[o], G = "hide" in U.props ? U.props.hide : (K = U.type.defaultProps) === null || K === void 0 ? void 0 : K.hide;
20224
+ return L === P && (T || !G);
20225
20225
  }), x, i, u);
20226
20226
  q && (_ = q);
20227
20227
  }
@@ -20233,10 +20233,10 @@ var bu = function(t, r, n, a) {
20233
20233
  if (O === "number")
20234
20234
  _ = vu(f, _, P, i, S), F && (_ = kc(F, _, A));
20235
20235
  else if (O === "category" && F) {
20236
- var C = F, L = _.every(function(U) {
20236
+ var C = F, B = _.every(function(U) {
20237
20237
  return C.indexOf(U) >= 0;
20238
20238
  });
20239
- L && (_ = C);
20239
+ B && (_ = C);
20240
20240
  }
20241
20241
  }
20242
20242
  return H(H({}, v), {}, ce({}, P, H(H({}, b), {}, {
@@ -20368,11 +20368,11 @@ var bu = function(t, r, n, a) {
20368
20368
  var r = t.chartName, n = t.GraphicalChild, a = t.defaultTooltipEventType, i = a === void 0 ? "axis" : a, o = t.validateTooltipEventTypes, s = o === void 0 ? ["axis"] : o, l = t.axisComponents, c = t.legendContent, u = t.formatAxisMap, f = t.defaultProps, d = function(b, O) {
20369
20369
  var x = O.graphicalItems, A = O.stackGroups, y = O.offset, w = O.updateId, S = O.dataStartIndex, T = O.dataEndIndex, P = b.barSize, E = b.layout, j = b.barGap, _ = b.barCategoryGap, R = b.maxBarSize, $ = Km(E), D = $.numericAxisName, k = $.cateAxisName, F = BB(x), z = [];
20370
20370
  return x.forEach(function(q, C) {
20371
- var L = Zs(b.data, {
20371
+ var B = Zs(b.data, {
20372
20372
  graphicalItems: [q],
20373
20373
  dataStartIndex: S,
20374
20374
  dataEndIndex: T
20375
- }), U = q.type.defaultProps !== void 0 ? H(H({}, q.type.defaultProps), q.props) : q.props, W = U.dataKey, K = U.maxBarSize, B = U["".concat(D, "Id")], G = U["".concat(k, "Id")], X = {}, te = l.reduce(function(ze, ut) {
20375
+ }), U = q.type.defaultProps !== void 0 ? H(H({}, q.type.defaultProps), q.props) : q.props, W = U.dataKey, K = U.maxBarSize, L = U["".concat(D, "Id")], G = U["".concat(k, "Id")], Y = {}, Q = l.reduce(function(ze, ut) {
20376
20376
  var ga, ya, fn = O["".concat(ut.axisType, "Map")], ba = U["".concat(ut.axisType, "Id")];
20377
20377
  fn && fn[ba] || ut.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? vt(!1, "Specifying a(n) ".concat(ut.axisType, "Id requires a corresponding ").concat(
20378
20378
  ut.axisType,
@@ -20380,20 +20380,20 @@ var bu = function(t, r, n, a) {
20380
20380
  ).concat((ga = q == null || (ya = q.type) === null || ya === void 0 ? void 0 : ya.displayName) !== null && ga !== void 0 ? ga : "")) : vt());
20381
20381
  var xa = fn[ba];
20382
20382
  return H(H({}, ze), {}, ce(ce({}, ut.axisType, xa), "".concat(ut.axisType, "Ticks"), ir(xa)));
20383
- }, X), V = te[k], Z = te["".concat(k, "Ticks")], ee = A && A[B] && A[B].hasStack && k6(q, A[B].stackGroups), I = sr(q.type).indexOf("Bar") >= 0, ie = Ro(V, Z), Y = [], le = F && v6({
20383
+ }, Y), V = Q[k], Z = Q["".concat(k, "Ticks")], te = A && A[L] && A[L].hasStack && k6(q, A[L].stackGroups), I = sr(q.type).indexOf("Bar") >= 0, ie = Ro(V, Z), X = [], le = F && v6({
20384
20384
  barSize: P,
20385
20385
  stackGroups: A,
20386
- totalSize: UB(te, k)
20386
+ totalSize: UB(Q, k)
20387
20387
  });
20388
20388
  if (I) {
20389
20389
  var re, he, Ue = fe(K) ? R : K, Le = (re = (he = Ro(V, Z, !0)) !== null && he !== void 0 ? he : Ue) !== null && re !== void 0 ? re : 0;
20390
- Y = g6({
20390
+ X = g6({
20391
20391
  barGap: j,
20392
20392
  barCategoryGap: _,
20393
20393
  bandSize: Le !== ie ? Le : ie,
20394
20394
  sizeList: le[G],
20395
20395
  maxBarSize: Ue
20396
- }), Le !== ie && (Y = Y.map(function(ze) {
20396
+ }), Le !== ie && (X = X.map(function(ze) {
20397
20397
  return H(H({}, ze), {}, {
20398
20398
  position: H(H({}, ze.position), {}, {
20399
20399
  offset: ze.position.offset - Le / 2
@@ -20403,21 +20403,21 @@ var bu = function(t, r, n, a) {
20403
20403
  }
20404
20404
  var Be = q && q.type && q.type.getComposedData;
20405
20405
  Be && z.push({
20406
- props: H(H({}, Be(H(H({}, te), {}, {
20407
- displayedData: L,
20406
+ props: H(H({}, Be(H(H({}, Q), {}, {
20407
+ displayedData: B,
20408
20408
  props: b,
20409
20409
  dataKey: W,
20410
20410
  item: q,
20411
20411
  bandSize: ie,
20412
- barPosition: Y,
20412
+ barPosition: X,
20413
20413
  offset: y,
20414
- stackedData: ee,
20414
+ stackedData: te,
20415
20415
  layout: E,
20416
20416
  dataStartIndex: S,
20417
20417
  dataEndIndex: T
20418
20418
  }))), {}, ce(ce(ce({
20419
20419
  key: q.key || "item-".concat(C)
20420
- }, D, te[D]), k, te[k]), "animationId", w)),
20420
+ }, D, Q[D]), k, Q[k]), "animationId", w)),
20421
20421
  childIndex: pO(q, b.children),
20422
20422
  item: q
20423
20423
  });
@@ -20443,7 +20443,7 @@ var bu = function(t, r, n, a) {
20443
20443
  Object.keys(F).forEach(function(U) {
20444
20444
  F[U] = u(x, F[U], z, U.replace("Map", ""), r);
20445
20445
  });
20446
- var q = F["".concat($, "Map")], C = LB(q), L = d(x, H(H({}, F), {}, {
20446
+ var q = F["".concat($, "Map")], C = LB(q), B = d(x, H(H({}, F), {}, {
20447
20447
  dataStartIndex: A,
20448
20448
  dataEndIndex: y,
20449
20449
  updateId: w,
@@ -20452,7 +20452,7 @@ var bu = function(t, r, n, a) {
20452
20452
  offset: z
20453
20453
  }));
20454
20454
  return H(H({
20455
- formattedGraphicalItems: L,
20455
+ formattedGraphicalItems: B,
20456
20456
  graphicalItems: D,
20457
20457
  offset: z,
20458
20458
  stackGroups: k
@@ -20623,13 +20623,13 @@ var bu = function(t, r, n, a) {
20623
20623
  var C = H(H({}, F), {}, {
20624
20624
  x: F.left,
20625
20625
  y: F.top
20626
- }), L = Math.min(R, C.x + C.width), U = Math.min($, C.y + C.height), W = z[D] && z[D].value, K = bu(y.state, y.props.data, D), B = z[D] ? {
20627
- x: T === "horizontal" ? z[D].coordinate : L,
20626
+ }), B = Math.min(R, C.x + C.width), U = Math.min($, C.y + C.height), W = z[D] && z[D].value, K = bu(y.state, y.props.data, D), L = z[D] ? {
20627
+ x: T === "horizontal" ? z[D].coordinate : B,
20628
20628
  y: T === "horizontal" ? U : z[D].coordinate
20629
20629
  } : Y0;
20630
20630
  y.setState(H(H({}, w), {}, {
20631
20631
  activeLabel: W,
20632
- activeCoordinate: B,
20632
+ activeCoordinate: L,
20633
20633
  activePayload: K,
20634
20634
  activeTooltipIndex: D
20635
20635
  }));
@@ -20711,9 +20711,9 @@ var bu = function(t, r, n, a) {
20711
20711
  key: w.key || "_recharts-brush",
20712
20712
  onChange: Hi(y.handleBrushChange, w.props.onChange),
20713
20713
  data: P,
20714
- x: Q(w.props.x) ? w.props.x : j.left,
20715
- y: Q(w.props.y) ? w.props.y : j.top + j.height + j.brushBottom - (T.bottom || 0),
20716
- width: Q(w.props.width) ? w.props.width : j.width,
20714
+ x: ee(w.props.x) ? w.props.x : j.left,
20715
+ y: ee(w.props.y) ? w.props.y : j.top + j.height + j.brushBottom - (T.bottom || 0),
20716
+ width: ee(w.props.width) ? w.props.width : j.width,
20717
20717
  startIndex: _,
20718
20718
  endIndex: R,
20719
20719
  updateId: "brush-".concat($)
@@ -20755,35 +20755,35 @@ var bu = function(t, r, n, a) {
20755
20755
  var P = y.filterFormatItem(w, S, T);
20756
20756
  if (!P)
20757
20757
  return null;
20758
- var E = y.getTooltipEventType(), j = y.state, _ = j.isTooltipActive, R = j.tooltipAxis, $ = j.activeTooltipIndex, D = j.activeLabel, k = y.props.children, F = Ot(k, Vt), z = P.props, q = z.points, C = z.isRange, L = z.baseLine, U = P.item.type.defaultProps !== void 0 ? H(H({}, P.item.type.defaultProps), P.item.props) : P.item.props, W = U.activeDot, K = U.hide, B = U.activeBar, G = U.activeShape, X = !!(!K && _ && F && (W || B || G)), te = {};
20759
- E !== "axis" && F && F.props.trigger === "click" ? te = {
20758
+ var E = y.getTooltipEventType(), j = y.state, _ = j.isTooltipActive, R = j.tooltipAxis, $ = j.activeTooltipIndex, D = j.activeLabel, k = y.props.children, F = Ot(k, Vt), z = P.props, q = z.points, C = z.isRange, B = z.baseLine, U = P.item.type.defaultProps !== void 0 ? H(H({}, P.item.type.defaultProps), P.item.props) : P.item.props, W = U.activeDot, K = U.hide, L = U.activeBar, G = U.activeShape, Y = !!(!K && _ && F && (W || L || G)), Q = {};
20759
+ E !== "axis" && F && F.props.trigger === "click" ? Q = {
20760
20760
  onClick: Hi(y.handleItemMouseEnter, w.props.onClick)
20761
- } : E !== "axis" && (te = {
20761
+ } : E !== "axis" && (Q = {
20762
20762
  onMouseLeave: Hi(y.handleItemMouseLeave, w.props.onMouseLeave),
20763
20763
  onMouseEnter: Hi(y.handleItemMouseEnter, w.props.onMouseEnter)
20764
20764
  });
20765
- var V = /* @__PURE__ */ Je(w, H(H({}, P.props), te));
20765
+ var V = /* @__PURE__ */ Je(w, H(H({}, P.props), Q));
20766
20766
  function Z(ut) {
20767
20767
  return typeof R.dataKey == "function" ? R.dataKey(ut.payload) : null;
20768
20768
  }
20769
- if (X)
20769
+ if (Y)
20770
20770
  if ($ >= 0) {
20771
- var ee, I;
20771
+ var te, I;
20772
20772
  if (R.dataKey && !R.allowDuplicatedCategory) {
20773
20773
  var ie = typeof R.dataKey == "function" ? Z : "payload.".concat(R.dataKey.toString());
20774
- ee = oo(q, ie, D), I = C && L && oo(L, ie, D);
20774
+ te = oo(q, ie, D), I = C && B && oo(B, ie, D);
20775
20775
  } else
20776
- ee = q == null ? void 0 : q[$], I = C && L && L[$];
20777
- if (G || B) {
20778
- var Y = w.props.activeIndex !== void 0 ? w.props.activeIndex : $;
20779
- return [/* @__PURE__ */ Je(w, H(H(H({}, P.props), te), {}, {
20780
- activeIndex: Y
20776
+ te = q == null ? void 0 : q[$], I = C && B && B[$];
20777
+ if (G || L) {
20778
+ var X = w.props.activeIndex !== void 0 ? w.props.activeIndex : $;
20779
+ return [/* @__PURE__ */ Je(w, H(H(H({}, P.props), Q), {}, {
20780
+ activeIndex: X
20781
20781
  })), null, null];
20782
20782
  }
20783
- if (!fe(ee))
20783
+ if (!fe(te))
20784
20784
  return [V].concat(ea(y.renderActivePoints({
20785
20785
  item: P,
20786
- activePoint: ee,
20786
+ activePoint: te,
20787
20787
  basePoint: I,
20788
20788
  childIndex: $,
20789
20789
  isRange: C
@@ -20791,7 +20791,7 @@ var bu = function(t, r, n, a) {
20791
20791
  } else {
20792
20792
  var le, re = (le = y.getItemByXY(y.state.activeCoordinate)) !== null && le !== void 0 ? le : {
20793
20793
  graphicalItem: V
20794
- }, he = re.graphicalItem, Ue = he.item, Le = Ue === void 0 ? w : Ue, Be = he.childIndex, ze = H(H(H({}, P.props), te), {}, {
20794
+ }, he = re.graphicalItem, Ue = he.item, Le = Ue === void 0 ? w : Ue, Be = he.childIndex, ze = H(H(H({}, P.props), Q), {}, {
20795
20795
  activeIndex: Be
20796
20796
  });
20797
20797
  return [/* @__PURE__ */ Je(Le, ze), null, null];
@@ -21237,7 +21237,7 @@ var bu = function(t, r, n, a) {
21237
21237
  });
21238
21238
  }
21239
21239
  if (!ql(A, b.prevChildren)) {
21240
- var F, z, q, C, L = Ot(A, Fn), U = L && (F = (z = L.props) === null || z === void 0 ? void 0 : z.startIndex) !== null && F !== void 0 ? F : E, W = L && (q = (C = L.props) === null || C === void 0 ? void 0 : C.endIndex) !== null && q !== void 0 ? q : j, K = U !== E || W !== j, B = !fe(x), G = B && !K ? b.updateId : b.updateId + 1;
21240
+ var F, z, q, C, B = Ot(A, Fn), U = B && (F = (z = B.props) === null || z === void 0 ? void 0 : z.startIndex) !== null && F !== void 0 ? F : E, W = B && (q = (C = B.props) === null || C === void 0 ? void 0 : C.endIndex) !== null && q !== void 0 ? q : j, K = U !== E || W !== j, L = !fe(x), G = L && !K ? b.updateId : b.updateId + 1;
21241
21241
  return H(H({
21242
21242
  updateId: G
21243
21243
  }, h(H(H({
@@ -22090,10 +22090,10 @@ const Ba = ({
22090
22090
  return `assets/icons/models/${a}`;
22091
22091
  return "assets/icons/models/custom-api.svg";
22092
22092
  }, JB = {
22093
- xs: "w-6 h-6 text-xs",
22094
- small: "w-8 h-8 text-sm",
22095
- medium: "w-10 h-10 text-base",
22096
- large: "w-12 h-12 text-lg"
22093
+ xs: "w-[24px] h-[24px] bg-gray-200 rounded-[8px] text-xs uppercase flex items-center justify-center",
22094
+ small: "w-[24px] h-[24px] bg-gray-200 rounded-[8px] text-xs uppercase flex items-center justify-center",
22095
+ medium: "w-[24px] h-[24px] bg-gray-200 rounded-[8px] text-xs uppercase flex items-center justify-center",
22096
+ large: "w-[24px] h-[24px] bg-gray-200 rounded-[8px] text-xs uppercase flex items-center justify-center"
22097
22097
  }, It = {
22098
22098
  inlineTool: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3533_7514)">
22099
22099
  <path d="M8.5 8.5L11 6L8.5 3.5M3.5 3.5L1 6L3.5 8.5M7 1.5L5 10.5" stroke="#EF6820" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/></g>
@@ -22142,14 +22142,14 @@ const Ba = ({
22142
22142
  };
22143
22143
  if (d) {
22144
22144
  const A = o ? o.charAt(0).toUpperCase() : "🤖";
22145
- return /* @__PURE__ */ p.jsx("div", { className: `${g} rounded-full bg-gray-500 flex items-center justify-center ${n}`, children: /* @__PURE__ */ p.jsx("span", { className: "text-white text-xs font-bold", children: A }) });
22145
+ return /* @__PURE__ */ p.jsx("div", { className: `${g} rounded-[8px] bg-gray-200 flex items-center justify-center ${n}`, children: /* @__PURE__ */ p.jsx("span", { className: "text-gray-900 text-xs font-bold", children: A }) });
22146
22146
  }
22147
22147
  return /* @__PURE__ */ p.jsx(
22148
22148
  "img",
22149
22149
  {
22150
22150
  src: O,
22151
22151
  alt: s || a,
22152
- className: `${g} rounded ${n}`,
22152
+ className: `${g} rounded-[8px] ${n}`,
22153
22153
  onError: x
22154
22154
  }
22155
22155
  );
@@ -22163,7 +22163,7 @@ const Ba = ({
22163
22163
  {
22164
22164
  src: O,
22165
22165
  alt: a,
22166
- className: `${g} rounded-full object-cover ${n}`,
22166
+ className: `${g} rounded-[8px] object-cover ${n}`,
22167
22167
  onError: x
22168
22168
  }
22169
22169
  );
@@ -22177,7 +22177,7 @@ const Ba = ({
22177
22177
  {
22178
22178
  src: O,
22179
22179
  alt: a,
22180
- className: `${g} rounded-full object-cover ${n}`,
22180
+ className: `${g} rounded-[8px] object-cover ${n}`,
22181
22181
  onError: x
22182
22182
  }
22183
22183
  );
@@ -22188,14 +22188,14 @@ const Ba = ({
22188
22188
  };
22189
22189
  if (d) {
22190
22190
  const A = o ? o.charAt(0).toUpperCase() : "🤖";
22191
- return /* @__PURE__ */ p.jsx("div", { className: `${g} rounded-full bg-gray-500 flex items-center justify-center ${n}`, children: /* @__PURE__ */ p.jsx("span", { className: "text-white text-xs font-bold", children: A }) });
22191
+ return /* @__PURE__ */ p.jsx("div", { className: `${g} rounded-[8px] bg-gray-200 flex items-center justify-center ${n}`, children: /* @__PURE__ */ p.jsx("span", { className: "text-gray-900 text-xs font-bold", children: A }) });
22192
22192
  }
22193
22193
  return /* @__PURE__ */ p.jsx(
22194
22194
  "img",
22195
22195
  {
22196
22196
  src: O,
22197
22197
  alt: s || a,
22198
- className: `${g} rounded ${n}`,
22198
+ className: `${g} rounded-[8px] ${n}`,
22199
22199
  onError: x
22200
22200
  }
22201
22201
  );
@@ -22206,7 +22206,7 @@ const Ba = ({
22206
22206
  return /* @__PURE__ */ p.jsx(
22207
22207
  "div",
22208
22208
  {
22209
- className: `${g} rounded-full flex items-center justify-center bg-gray-100 ${n}`,
22209
+ className: `${g} rounded-[8px] flex items-center justify-center bg-gray-100 ${n}`,
22210
22210
  children: /* @__PURE__ */ p.jsx("div", { dangerouslySetInnerHTML: { __html: x } })
22211
22211
  }
22212
22212
  );
@@ -22217,7 +22217,7 @@ const Ba = ({
22217
22217
  {
22218
22218
  src: b,
22219
22219
  alt: a,
22220
- className: `${g} rounded-full object-cover ${n}`
22220
+ className: `${g} rounded-[8px] object-cover ${n}`
22221
22221
  }
22222
22222
  );
22223
22223
  }, eF = ({
@@ -24366,36 +24366,36 @@ const pF = ({
24366
24366
  controls: u,
24367
24367
  layout: f
24368
24368
  } = e, [d, h] = se(c.type), [v, g] = se("chart"), m = () => i === "usage-analytics" ? "users" : i === "runs" ? "agentRuns" : "users", [b, O] = se(m()), [x, A] = se("all"), y = (C) => {
24369
- var U, W, K, B, G;
24370
- const L = T();
24371
- (U = L == null ? void 0 : L.controls) != null && U.toggle ? (g(C), (K = (W = L.controls.toggle).onToggle) == null || K.call(W, C)) : (h(C), (G = (B = u == null ? void 0 : u.toggle) == null ? void 0 : B.onToggle) == null || G.call(B, C));
24369
+ var U, W, K, L, G;
24370
+ const B = T();
24371
+ (U = B == null ? void 0 : B.controls) != null && U.toggle ? (g(C), (K = (W = B.controls.toggle).onToggle) == null || K.call(W, C)) : (h(C), (G = (L = u == null ? void 0 : u.toggle) == null ? void 0 : L.onToggle) == null || G.call(L, C));
24372
24372
  }, w = (C) => {
24373
24373
  var W, K;
24374
- const L = C.metricType || C.title.toLowerCase();
24375
- O(L);
24376
- const U = l.find((B) => (B.metricType || B.title.toLowerCase()) === L);
24374
+ const B = C.metricType || C.title.toLowerCase();
24375
+ O(B);
24376
+ const U = l.find((L) => (L.metricType || L.title.toLowerCase()) === B);
24377
24377
  (K = (W = U == null ? void 0 : U.controls) == null ? void 0 : W.dropdown) != null && K.multiSelect ? A(["all"]) : A("all"), a == null || a(C);
24378
24378
  }, S = (C) => {
24379
24379
  var U, W, K;
24380
24380
  A(C);
24381
- const L = l.find((B) => (B.metricType || B.title.toLowerCase()) === b);
24382
- (K = (W = (U = L == null ? void 0 : L.controls) == null ? void 0 : U.dropdown) == null ? void 0 : W.onChange) == null || K.call(W, C);
24383
- }, T = () => l.find((C) => (C.metricType || C.title.toLowerCase()) === b) || null, P = (C) => Array.isArray(C) ? C.filter((U) => U !== "all").length > 0 : C !== "all", E = (C) => Array.isArray(C) ? C.filter((L) => L !== "all") : C !== "all" ? [C] : [], j = (C) => {
24384
- var K, B, G, X, te, V, Z, ee, I;
24385
- const L = ((B = (K = C.view) == null ? void 0 : K.chart) == null ? void 0 : B.data) || ((G = c.chart) == null ? void 0 : G.data) || [];
24381
+ const B = l.find((L) => (L.metricType || L.title.toLowerCase()) === b);
24382
+ (K = (W = (U = B == null ? void 0 : B.controls) == null ? void 0 : U.dropdown) == null ? void 0 : W.onChange) == null || K.call(W, C);
24383
+ }, T = () => l.find((C) => (C.metricType || C.title.toLowerCase()) === b) || null, P = (C) => Array.isArray(C) ? C.filter((U) => U !== "all").length > 0 : C !== "all", E = (C) => Array.isArray(C) ? C.filter((B) => B !== "all") : C !== "all" ? [C] : [], j = (C) => {
24384
+ var K, L, G, Y, Q, V, Z, te, I;
24385
+ const B = ((L = (K = C.view) == null ? void 0 : K.chart) == null ? void 0 : L.data) || ((G = c.chart) == null ? void 0 : G.data) || [];
24386
24386
  if (!P(x))
24387
- return L;
24387
+ return B;
24388
24388
  const U = C.metricType, W = E(x);
24389
24389
  if (W.length === 1) {
24390
- const ie = W[0], Y = T(), le = (V = (te = (X = Y == null ? void 0 : Y.controls) == null ? void 0 : X.dropdown) == null ? void 0 : te.options) == null ? void 0 : V.find(
24390
+ const ie = W[0], X = T(), le = (V = (Q = (Y = X == null ? void 0 : X.controls) == null ? void 0 : Y.dropdown) == null ? void 0 : Q.options) == null ? void 0 : V.find(
24391
24391
  (he) => he.value === ie
24392
24392
  ), re = le == null ? void 0 : le.label;
24393
24393
  return console.log("🔍 Filtering chart data:", {
24394
24394
  metricType: U,
24395
24395
  singleFilter: ie,
24396
24396
  selectedLabel: re,
24397
- baseDataSample: L[0]
24398
- }), L.map((he) => {
24397
+ baseDataSample: B[0]
24398
+ }), B.map((he) => {
24399
24399
  let Ue = 0;
24400
24400
  return he.listView && Array.isArray(he.listView) && (Ue = he.listView.filter((ze) => U === "agentRuns" && ze.agentName ? ze.agentName === re || ze.agentName.toLowerCase() === (re == null ? void 0 : re.toLowerCase()) : U === "toolRuns" && ze.toolName ? ze.toolName === re || ze.toolName.toLowerCase() === (re == null ? void 0 : re.toLowerCase()) : U === "modelRuns" && ze.modelName ? ze.modelName === re || ze.modelName.toLowerCase() === (re == null ? void 0 : re.toLowerCase()) : !1).reduce(
24401
24401
  (ze, ut) => ze + (ut.count || 0),
@@ -24407,10 +24407,10 @@ const pF = ({
24407
24407
  });
24408
24408
  }
24409
24409
  if (W.length > 1) {
24410
- const ie = T(), le = (((I = (ee = (Z = ie == null ? void 0 : ie.controls) == null ? void 0 : Z.dropdown) == null ? void 0 : ee.options) == null ? void 0 : I.filter(
24410
+ const ie = T(), le = (((I = (te = (Z = ie == null ? void 0 : ie.controls) == null ? void 0 : Z.dropdown) == null ? void 0 : te.options) == null ? void 0 : I.filter(
24411
24411
  (re) => W.includes(re.value)
24412
24412
  )) || []).map((re) => re.label);
24413
- return L.map((re) => {
24413
+ return B.map((re) => {
24414
24414
  let he = 0;
24415
24415
  return re.listView && Array.isArray(re.listView) && (he = re.listView.filter((Le) => U === "agentRuns" && Le.agentName ? le.some(
24416
24416
  (Be) => Le.agentName === Be || Le.agentName.toLowerCase() === (Be == null ? void 0 : Be.toLowerCase())
@@ -24427,24 +24427,24 @@ const pF = ({
24427
24427
  };
24428
24428
  });
24429
24429
  }
24430
- return L;
24430
+ return B;
24431
24431
  }, _ = (C) => {
24432
24432
  var K;
24433
24433
  if (!((K = C.view) != null && K.chart)) return null;
24434
- const L = j(C), U = () => {
24435
- var G, X, te, V, Z, ee;
24434
+ const B = j(C), U = () => {
24435
+ var G, Y, Q, V, Z, te;
24436
24436
  if (!P(x) || !((G = C.controls) != null && G.dropdown))
24437
- return ((te = (X = C.view) == null ? void 0 : X.chart) == null ? void 0 : te.title) || C.title;
24438
- const B = E(x);
24439
- if (B.length === 1) {
24440
- const I = (V = C.controls.dropdown.options) == null ? void 0 : V.find((ie) => ie.value === B[0]);
24441
- return I ? `${I.label}` : ((ee = (Z = C.view) == null ? void 0 : Z.chart) == null ? void 0 : ee.title) || C.title;
24437
+ return ((Q = (Y = C.view) == null ? void 0 : Y.chart) == null ? void 0 : Q.title) || C.title;
24438
+ const L = E(x);
24439
+ if (L.length === 1) {
24440
+ const I = (V = C.controls.dropdown.options) == null ? void 0 : V.find((ie) => ie.value === L[0]);
24441
+ return I ? `${I.label}` : ((te = (Z = C.view) == null ? void 0 : Z.chart) == null ? void 0 : te.title) || C.title;
24442
24442
  }
24443
- return `${B.length} selected`;
24443
+ return `${L.length} selected`;
24444
24444
  }, W = E(x);
24445
24445
  return C.metricType === "toolRuns" && W.length === 1 ? {
24446
24446
  ...C.view.chart,
24447
- data: L,
24447
+ data: B,
24448
24448
  title: U(),
24449
24449
  // Convert multi-line to single line for specific tool selection
24450
24450
  lines: void 0,
@@ -24454,7 +24454,7 @@ const pF = ({
24454
24454
  showLegend: !1
24455
24455
  } : C.metricType === "modelRuns" && W.length === 1 ? {
24456
24456
  ...C.view.chart,
24457
- data: L,
24457
+ data: B,
24458
24458
  title: U(),
24459
24459
  dataKey: "modelRuns",
24460
24460
  color: "#10b981",
@@ -24462,26 +24462,26 @@ const pF = ({
24462
24462
  showLegend: !1
24463
24463
  } : {
24464
24464
  ...C.view.chart,
24465
- data: L,
24465
+ data: B,
24466
24466
  title: U()
24467
24467
  };
24468
- }, R = (C, L) => {
24468
+ }, R = (C, B) => {
24469
24469
  if (!P(x))
24470
24470
  return C;
24471
24471
  const U = E(x);
24472
24472
  if (U.length === 1) {
24473
24473
  const W = U[0];
24474
- if (i === "runs" && L === "agentRuns")
24474
+ if (i === "runs" && B === "agentRuns")
24475
24475
  return C.map((K) => ({
24476
24476
  ...K,
24477
24477
  agentRuns: K[W] || 0
24478
24478
  }));
24479
- if (i === "runs" && L === "toolRuns")
24479
+ if (i === "runs" && B === "toolRuns")
24480
24480
  return C.map((K) => ({
24481
24481
  ...K,
24482
24482
  toolRuns: K[W.replace(/[-]/g, "")] || 0
24483
24483
  }));
24484
- if (i === "runs" && L === "modelRuns")
24484
+ if (i === "runs" && B === "modelRuns")
24485
24485
  return C.map((K) => ({
24486
24486
  ...K,
24487
24487
  modelRuns: K[W.replace(/[-\.]/g, "")] || 0
@@ -24490,14 +24490,14 @@ const pF = ({
24490
24490
  return C;
24491
24491
  }, $ = (C) => {
24492
24492
  var K;
24493
- const L = ((K = c.chart) == null ? void 0 : K.data) || [], U = R(L, C), W = (B) => {
24494
- var X, te;
24493
+ const B = ((K = c.chart) == null ? void 0 : K.data) || [], U = R(B, C), W = (L) => {
24494
+ var Y, Q;
24495
24495
  if (!P(x))
24496
- return B;
24496
+ return L;
24497
24497
  const G = E(x);
24498
24498
  if (G.length === 1) {
24499
- const V = (te = (X = u == null ? void 0 : u.dropdown) == null ? void 0 : X.options) == null ? void 0 : te.find((Z) => Z.value === G[0]);
24500
- return V ? `${V.label}` : B;
24499
+ const V = (Q = (Y = u == null ? void 0 : u.dropdown) == null ? void 0 : Y.options) == null ? void 0 : Q.find((Z) => Z.value === G[0]);
24500
+ return V ? `${V.label}` : L;
24501
24501
  }
24502
24502
  return `${G.length} selected`;
24503
24503
  };
@@ -24506,7 +24506,7 @@ const pF = ({
24506
24506
  return {
24507
24507
  type: "line",
24508
24508
  title: "Total Users",
24509
- data: L,
24509
+ data: B,
24510
24510
  dataKey: "users",
24511
24511
  color: "#8b5cf6",
24512
24512
  // Purple as shown in Figma
@@ -24524,7 +24524,7 @@ const pF = ({
24524
24524
  return {
24525
24525
  type: "line",
24526
24526
  title: "Total Sessions",
24527
- data: L,
24527
+ data: B,
24528
24528
  dataKey: "sessions",
24529
24529
  color: "#06b6d4",
24530
24530
  // Blue as shown in Figma
@@ -24542,7 +24542,7 @@ const pF = ({
24542
24542
  return {
24543
24543
  type: "line",
24544
24544
  title: "Total Messages",
24545
- data: L,
24545
+ data: B,
24546
24546
  dataKey: "messages",
24547
24547
  color: "#ec4899",
24548
24548
  // Pink as shown in Figma
@@ -24560,7 +24560,7 @@ const pF = ({
24560
24560
  return {
24561
24561
  type: "line",
24562
24562
  title: "Token Usage Breakdown",
24563
- data: L,
24563
+ data: B,
24564
24564
  yAxisLabel: "Number of Tokens",
24565
24565
  lines: [
24566
24566
  {
@@ -24614,7 +24614,7 @@ const pF = ({
24614
24614
  return E(x).length === 1 ? {
24615
24615
  type: "line",
24616
24616
  title: W("Tool Runs"),
24617
- data: R(L, "toolRuns"),
24617
+ data: R(B, "toolRuns"),
24618
24618
  dataKey: "toolRuns",
24619
24619
  color: "#f97316",
24620
24620
  // Orange for Tool Runs
@@ -24678,7 +24678,7 @@ const pF = ({
24678
24678
  return E(x).length === 1 ? {
24679
24679
  type: "line",
24680
24680
  title: W("Model Runs"),
24681
- data: R(L, "modelRuns"),
24681
+ data: R(B, "modelRuns"),
24682
24682
  dataKey: "modelRuns",
24683
24683
  color: "#10b981",
24684
24684
  // Green as shown in Figma
@@ -24739,17 +24739,17 @@ const pF = ({
24739
24739
  } : void 0
24740
24740
  } : void 0;
24741
24741
  })(), F = (() => {
24742
- var U, W, K, B, G, X, te, V, Z, ee;
24742
+ var U, W, K, L, G, Y, Q, V, Z, te;
24743
24743
  const C = T();
24744
24744
  if (C != null && C.view) {
24745
24745
  if ((U = C.controls) != null && U.toggle) {
24746
24746
  if (v === "table" && C.view.table) {
24747
24747
  let ie = C.view.table.data;
24748
24748
  if (C.metricType === "agentRuns" && P(x)) {
24749
- const Y = E(x);
24750
- if (Y.length > 0) {
24751
- const le = ((B = (K = (W = C.controls) == null ? void 0 : W.dropdown) == null ? void 0 : K.options) == null ? void 0 : B.filter(
24752
- (re) => Y.includes(re.value)
24749
+ const X = E(x);
24750
+ if (X.length > 0) {
24751
+ const le = ((L = (K = (W = C.controls) == null ? void 0 : W.dropdown) == null ? void 0 : K.options) == null ? void 0 : L.filter(
24752
+ (re) => X.includes(re.value)
24753
24753
  )) || [];
24754
24754
  le.length > 0 && (ie = ie.filter(
24755
24755
  (re) => le.some(
@@ -24759,10 +24759,10 @@ const pF = ({
24759
24759
  }
24760
24760
  }
24761
24761
  if (C.metricType === "toolRuns" && P(x)) {
24762
- const Y = E(x);
24763
- if (Y.length > 0) {
24764
- const le = ((te = (X = (G = C.controls) == null ? void 0 : G.dropdown) == null ? void 0 : X.options) == null ? void 0 : te.filter(
24765
- (re) => Y.includes(re.value)
24762
+ const X = E(x);
24763
+ if (X.length > 0) {
24764
+ const le = ((Q = (Y = (G = C.controls) == null ? void 0 : G.dropdown) == null ? void 0 : Y.options) == null ? void 0 : Q.filter(
24765
+ (re) => X.includes(re.value)
24766
24766
  )) || [];
24767
24767
  le.length > 0 && (ie = ie.filter(
24768
24768
  (re) => le.some(
@@ -24772,10 +24772,10 @@ const pF = ({
24772
24772
  }
24773
24773
  }
24774
24774
  if (C.metricType === "modelRuns" && P(x)) {
24775
- const Y = E(x);
24776
- if (Y.length > 0) {
24777
- const le = ((ee = (Z = (V = C.controls) == null ? void 0 : V.dropdown) == null ? void 0 : Z.options) == null ? void 0 : ee.filter(
24778
- (re) => Y.includes(re.value)
24775
+ const X = E(x);
24776
+ if (X.length > 0) {
24777
+ const le = ((te = (Z = (V = C.controls) == null ? void 0 : V.dropdown) == null ? void 0 : Z.options) == null ? void 0 : te.filter(
24778
+ (re) => X.includes(re.value)
24779
24779
  )) || [];
24780
24780
  le.length > 0 && (ie = ie.filter(
24781
24781
  (re) => le.some(
@@ -24803,13 +24803,13 @@ const pF = ({
24803
24803
  chart: I
24804
24804
  } : C.view;
24805
24805
  }
24806
- const L = $(b);
24807
- return L ? { type: "chart", chart: L } : { ...c, type: d };
24806
+ const B = $(b);
24807
+ return B ? { type: "chart", chart: B } : { ...c, type: d };
24808
24808
  })(), z = () => l.map((C) => {
24809
- const L = C.metricType || C.title.toLowerCase();
24809
+ const B = C.metricType || C.title.toLowerCase();
24810
24810
  return {
24811
24811
  ...C,
24812
- highlighted: C.highlighted || L === b
24812
+ highlighted: C.highlighted || B === b
24813
24813
  };
24814
24814
  });
24815
24815
  return /* @__PURE__ */ p.jsxs(
@@ -24833,14 +24833,14 @@ const pF = ({
24833
24833
  /* @__PURE__ */ p.jsx("div", { className: "flex-1", children: /* @__PURE__ */ p.jsx(Qi, {}) }),
24834
24834
  /* @__PURE__ */ p.jsx("div", { className: "flex-1", children: /* @__PURE__ */ p.jsx(Qi, {}) }),
24835
24835
  /* @__PURE__ */ p.jsx("div", { className: "flex-1", children: /* @__PURE__ */ p.jsx(Qi, {}) })
24836
- ] }) : z().map((C, L) => /* @__PURE__ */ p.jsx("div", { className: "flex-1", children: /* @__PURE__ */ p.jsx(
24836
+ ] }) : z().map((C, B) => /* @__PURE__ */ p.jsx("div", { className: "flex-1", children: /* @__PURE__ */ p.jsx(
24837
24837
  wx,
24838
24838
  {
24839
24839
  data: C,
24840
24840
  onClick: w,
24841
- isFirst: L === 0
24841
+ isFirst: B === 0
24842
24842
  }
24843
- ) }, `${i}-metric-${L}`)) }),
24843
+ ) }, `${i}-metric-${B}`)) }),
24844
24844
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-between", children: [
24845
24845
  /* @__PURE__ */ p.jsx("div", { children: T() && /* @__PURE__ */ p.jsx("h3", { className: "text-md font-medium text-gray-700", children: (q = T()) == null ? void 0 : q.title }) }),
24846
24846
  D && /* @__PURE__ */ p.jsx(mF, { config: D })
@@ -26302,9 +26302,9 @@ function EU({ className: e, defaultValue: t, onDateRangeChange: r }) {
26302
26302
  }, [t]);
26303
26303
  const S = () => {
26304
26304
  if (!w.current) return;
26305
- const k = w.current.getBoundingClientRect(), F = window.scrollY, z = window.scrollX, q = window.innerWidth, C = window.innerHeight, L = 720, U = 450;
26305
+ const k = w.current.getBoundingClientRect(), F = window.scrollY, z = window.scrollX, q = window.innerWidth, C = window.innerHeight, B = 720, U = 450;
26306
26306
  let W = k.bottom + F + 8, K = k.left + z;
26307
- K + L > q && (K = k.right + z - L), K + L > q && (K = q - L - 20), W + U > C && (W = k.top + F - U - 8), K < 20 && (K = 20), W < 20 && (W = 20), A({ top: W, left: K });
26307
+ K + B > q && (K = k.right + z - B), K + B > q && (K = q - B - 20), W + U > C && (W = k.top + F - U - 8), K < 20 && (K = 20), W < 20 && (W = 20), A({ top: W, left: K });
26308
26308
  };
26309
26309
  Qe(() => {
26310
26310
  const k = () => {
@@ -26346,9 +26346,9 @@ function EU({ className: e, defaultValue: t, onDateRangeChange: r }) {
26346
26346
  "October",
26347
26347
  "November",
26348
26348
  "December"
26349
- ], B = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], G = [], te = new Date(z, q - 1, 0).getDate();
26350
- for (let ee = W - 1; ee >= 0; ee--) {
26351
- const I = te - ee, ie = new Date(z, q - 1, I);
26349
+ ], L = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], G = [], Q = new Date(z, q - 1, 0).getDate();
26350
+ for (let te = W - 1; te >= 0; te--) {
26351
+ const I = Q - te, ie = new Date(z, q - 1, I);
26352
26352
  G.push(
26353
26353
  /* @__PURE__ */ p.jsx(
26354
26354
  "button",
@@ -26361,25 +26361,25 @@ function EU({ className: e, defaultValue: t, onDateRangeChange: r }) {
26361
26361
  )
26362
26362
  );
26363
26363
  }
26364
- for (let ee = 1; ee <= U; ee++) {
26365
- const I = new Date(z, q, ee), ie = Da(I, /* @__PURE__ */ new Date()), Y = (s == null ? void 0 : s.from) && (s == null ? void 0 : s.to) && PU(I, { start: s.from, end: s.to }), le = (s == null ? void 0 : s.from) && Da(I, s.from), re = (s == null ? void 0 : s.to) && Da(I, s.to), he = b && Da(I, b);
26364
+ for (let te = 1; te <= U; te++) {
26365
+ const I = new Date(z, q, te), ie = Da(I, /* @__PURE__ */ new Date()), X = (s == null ? void 0 : s.from) && (s == null ? void 0 : s.to) && PU(I, { start: s.from, end: s.to }), le = (s == null ? void 0 : s.from) && Da(I, s.from), re = (s == null ? void 0 : s.to) && Da(I, s.to), he = b && Da(I, b);
26366
26366
  let Ue = "h-[32px] w-[32px] text-xs hover:bg-gray-100 hover:text-gray-900 hover:font-medium rounded-full flex items-center justify-center transition-colors text-gray-700 ";
26367
- ie && (Ue += "font-semibold "), he || le || re ? Ue += "!bg-blue-500 !text-white !hover:bg-blue-500 !hover:text-white font-semibold" : Y && (Ue += "bg-blue-100 text-blue-900 hover:bg-blue-100 hover:text-blue-900 font-semibold"), G.push(
26368
- /* @__PURE__ */ p.jsx("button", { onClick: () => P(I), className: Ue, children: ee }, `current-${ee}`)
26367
+ ie && (Ue += "font-semibold "), he || le || re ? Ue += "!bg-blue-500 !text-white !hover:bg-blue-500 !hover:text-white font-semibold" : X && (Ue += "bg-blue-100 text-blue-900 hover:bg-blue-100 hover:text-blue-900 font-semibold"), G.push(
26368
+ /* @__PURE__ */ p.jsx("button", { onClick: () => P(I), className: Ue, children: te }, `current-${te}`)
26369
26369
  );
26370
26370
  }
26371
26371
  const Z = Math.ceil((W + U) / 7) * 7 - W - U;
26372
- for (let ee = 1; ee <= Z; ee++) {
26373
- const I = new Date(z, q + 1, ee);
26372
+ for (let te = 1; te <= Z; te++) {
26373
+ const I = new Date(z, q + 1, te);
26374
26374
  G.push(
26375
26375
  /* @__PURE__ */ p.jsx(
26376
26376
  "button",
26377
26377
  {
26378
26378
  onClick: () => P(I),
26379
26379
  className: "h-[32px] w-[32px] text-sm text-gray-500 hover:bg-gray-100 rounded-full flex items-center justify-center",
26380
- children: ee
26380
+ children: te
26381
26381
  },
26382
- `next-${ee}`
26382
+ `next-${te}`
26383
26383
  )
26384
26384
  );
26385
26385
  }
@@ -26407,7 +26407,7 @@ function EU({ className: e, defaultValue: t, onDateRangeChange: r }) {
26407
26407
  }
26408
26408
  )
26409
26409
  ] }),
26410
- /* @__PURE__ */ p.jsx("div", { className: "grid grid-cols-7 gap-1 mb-2", children: B.map((ee) => /* @__PURE__ */ p.jsx("div", { className: "h-[32px] flex items-center justify-center text-xs font-medium text-gray-700 w-full text-center", children: ee }, ee)) }),
26410
+ /* @__PURE__ */ p.jsx("div", { className: "grid grid-cols-7 gap-1 mb-2", children: L.map((te) => /* @__PURE__ */ p.jsx("div", { className: "h-[32px] flex items-center justify-center text-xs font-medium text-gray-700 w-full text-center", children: te }, te)) }),
26411
26411
  /* @__PURE__ */ p.jsx("div", { className: "grid grid-cols-7 gap-1", children: G })
26412
26412
  ] });
26413
26413
  }, D = () => "fixed bg-white border border-gray-200 rounded-lg shadow-xl z-[99999]";
@@ -26609,7 +26609,7 @@ const tW = ({
26609
26609
  console.log("Using dataKey for metric", D.metricType, ":", U), m(
26610
26610
  (W) => W.map((K) => {
26611
26611
  if (K.id === $) {
26612
- const B = {
26612
+ const L = {
26613
26613
  ...K,
26614
26614
  view: {
26615
26615
  ...K.view,
@@ -26641,7 +26641,7 @@ const tW = ({
26641
26641
  }
26642
26642
  }
26643
26643
  };
26644
- return console.log("Updated section for", $, ":", B), console.log("Chart config set:", B.view.chart), B;
26644
+ return console.log("Updated section for", $, ":", L), console.log("Chart config set:", L.view.chart), L;
26645
26645
  }
26646
26646
  return K;
26647
26647
  })
@@ -26853,7 +26853,7 @@ class CU {
26853
26853
  * Create TreeNode from paired started/completed events
26854
26854
  */
26855
26855
  static createTreeNodeFromEvents(t, r, n) {
26856
- const a = t.data.timestamp, i = r == null ? void 0 : r.data.timestamp, o = i && a ? new Date(i).getTime() - new Date(a).getTime() : void 0, s = r || t, l = s.data.type === "llm" || s.data.type === "tool" || s.data.type === "GuardrailsInputScan" || s.data.type === "GuardrailsOutputScan", c = l ? t.data.input : void 0, u = l ? r == null ? void 0 : r.data.output : void 0, f = this.extractLLMUsage(u), { toolInvocations: d, isResponse: h } = this.extractToolInvocations(u), v = s.data.type === "llm" ? this.extractProvider(s.data.name || s.data.toolName) : void 0;
26856
+ const a = t.data.timestamp, i = r == null ? void 0 : r.data.timestamp, o = i && a ? new Date(i).getTime() - new Date(a).getTime() : void 0, s = r || t, l = s.data.type === "llm" || s.data.type === "tool" || s.data.type === "GuardrailsInputScan" || s.data.type === "GuardrailsOutputScan", c = l ? t.data.input : void 0, u = l ? r == null ? void 0 : r.data.output : void 0, f = this.extractLLMUsage(u, r == null ? void 0 : r.data.metadata), { toolInvocations: d, isResponse: h } = this.extractToolInvocations(u), v = s.data.type === "llm" ? this.extractProvider(s.data.name || s.data.toolName) : void 0;
26857
26857
  return {
26858
26858
  id: s.data.id,
26859
26859
  parentId: s.data.parentId,
@@ -26897,20 +26897,22 @@ class CU {
26897
26897
  ), n.forEach((a) => this.sortChildren(a)), n;
26898
26898
  }
26899
26899
  /**
26900
- * Extract LLM usage metadata from output (configurable path)
26900
+ * Extract LLM usage metadata from output and event metadata (configurable path)
26901
26901
  */
26902
- static extractLLMUsage(t) {
26903
- var r, n, a;
26902
+ static extractLLMUsage(t, r) {
26903
+ var n, a, i;
26904
+ if (r != null && r.usage_metadata)
26905
+ return r.usage_metadata;
26904
26906
  if (!(!t || typeof t != "object")) {
26905
26907
  if (t.usage_metadata)
26906
26908
  return t.usage_metadata;
26907
- if ((r = t.metadata) != null && r.usage_metadata)
26909
+ if ((n = t.metadata) != null && n.usage_metadata)
26908
26910
  return t.metadata.usage_metadata;
26909
26911
  if (Array.isArray(t)) {
26910
- const i = t[0];
26911
- if ((n = i == null ? void 0 : i.additional_kwargs) != null && n.llmUsageMetadata)
26912
- return i.additional_kwargs.llmUsageMetadata;
26913
- } else if ((a = t.additional_kwargs) != null && a.llmUsageMetadata)
26912
+ const o = t[0];
26913
+ if ((a = o == null ? void 0 : o.additional_kwargs) != null && a.llmUsageMetadata)
26914
+ return o.additional_kwargs.llmUsageMetadata;
26915
+ } else if ((i = t.additional_kwargs) != null && i.llmUsageMetadata)
26914
26916
  return t.additional_kwargs.llmUsageMetadata;
26915
26917
  }
26916
26918
  }
@@ -27115,7 +27117,7 @@ class CU {
27115
27117
  static calculateRunTokens(t) {
27116
27118
  let r = 0;
27117
27119
  return t.forEach((n) => {
27118
- const a = this.extractLLMUsage(n.data);
27120
+ const a = this.extractLLMUsage(n.data.output, n.data.metadata);
27119
27121
  a != null && a.total_tokens && (r += a.total_tokens);
27120
27122
  }), r;
27121
27123
  }
@@ -27529,7 +27531,7 @@ function rb({
27529
27531
  }, g = () => {
27530
27532
  var P, E;
27531
27533
  if (o)
27532
- return /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0 relative", children: /* @__PURE__ */ p.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "21", viewBox: "0 0 17 21", fill: "none", className: "w-[16px] h-[16px]", children: /* @__PURE__ */ p.jsx(
27534
+ return /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0 relative w-[24px] h-[24px] bg-gray-200 rounded-[8px] flex items-center justify-center", children: /* @__PURE__ */ p.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "21", viewBox: "0 0 17 21", fill: "none", className: "w-[16px] h-[16px]", children: /* @__PURE__ */ p.jsx(
27533
27535
  "path",
27534
27536
  {
27535
27537
  d: "M2.86876 3.16135L2.51444 2.22622V2.22622L2.86876 3.16135ZM1.60989 3.76534L0.944868 3.01852L0.944868 3.01852L1.60989 3.76534ZM1.11768 4.483L2.05352 4.83544L1.11768 4.483ZM8.70562 1.33287L8.35129 2.26799V2.26799L8.70562 1.33287ZM8.32871 1.21247L8.18424 2.20198L8.32871 1.21247ZM7.69438 1.33287L8.04871 2.26799H8.04871L7.69438 1.33287ZM8.07129 1.21247L8.21576 2.20198L8.07129 1.21247ZM15.2823 4.483L14.3465 4.83544L15.2823 4.483ZM13.5312 3.16135L13.1769 4.09647L13.5312 3.16135ZM14.7901 3.76534L15.4551 3.01852V3.01852L14.7901 3.76534ZM8.82819 18.9787L9.33601 19.8402L8.82819 18.9787ZM8.38871 19.1854L8.17694 18.2081H8.17694L8.38871 19.1854ZM7.57181 18.9787L8.07962 18.1173L7.57181 18.9787ZM8.01129 19.1854L8.22306 18.2081L8.01129 19.1854ZM7.10461 9.12831L7.45541 10.0648C7.72607 9.96337 7.93963 9.74983 8.04104 9.47917L7.10461 9.12831ZM8.2 6.20474L9.13643 5.85388H7.26357L8.2 6.20474ZM9.29539 9.12831L8.35897 9.47917C8.46038 9.74983 8.67393 9.96337 8.94459 10.0648L9.29539 9.12831ZM12.25 10.2351L12.6008 11.1716L12.6008 9.29868L12.25 10.2351ZM9.29539 11.3419L8.94459 10.4055C8.66955 10.5085 8.4537 10.7273 8.35435 11.0037L9.29539 11.3419ZM8.2 14.3892L7.25895 14.7275H9.14105L8.2 14.3892ZM7.10461 11.3419L8.04565 11.0037C7.9463 10.7273 7.73045 10.5085 7.45541 10.4055L7.10461 11.3419ZM4.15 10.2351L3.7992 9.29868L3.7992 11.1716L4.15 10.2351ZM9.33601 19.8402C10.251 19.3009 11.9823 18.176 13.4966 16.582C15.0004 14.999 16.4 12.8356 16.4 10.2351H14.4C14.4 12.0983 13.3903 13.79 12.0466 15.2045C10.7133 16.608 9.15867 17.6231 8.32038 18.1173L9.33601 19.8402ZM16.4 10.2351V5.88609H14.4V10.2351H16.4ZM13.8856 2.22622L9.05994 0.397748L8.35129 2.26799L13.1769 4.09647L13.8856 2.22622ZM7.34006 0.397749L2.51444 2.22622L3.22309 4.09647L8.04871 2.26799L7.34006 0.397749ZM0 5.88609V10.2351H2V5.88609H0ZM0 10.2351C0 12.8356 1.39958 14.999 2.90343 16.582C4.41773 18.176 6.14904 19.3009 7.06399 19.8402L8.07962 18.1173C7.24133 17.6231 5.68674 16.608 4.35344 15.2045C3.00971 13.79 2 12.0983 2 10.2351H0ZM2.51444 2.22622C1.91725 2.4525 1.36429 2.64503 0.944868 3.01852L2.27492 4.51216C2.352 4.44352 2.47279 4.38077 3.22309 4.09647L2.51444 2.22622ZM2 5.88609C2 5.07787 2.01549 4.93642 2.05352 4.83544L0.181849 4.13057C-0.0154909 4.65457 0 5.24018 0 5.88609H2ZM0.944868 3.01852C0.60414 3.32193 0.342573 3.70379 0.181849 4.13057L2.05352 4.83544C2.10072 4.71011 2.17703 4.59933 2.27492 4.51216L0.944868 3.01852ZM9.05994 0.397748C8.91343 0.342231 8.70233 0.256421 8.47319 0.222965L8.18424 2.20198C8.15508 2.19772 8.14261 2.19201 8.16863 2.20063C8.18278 2.20531 8.2032 2.21249 8.23486 2.22419C8.26671 2.23595 8.30339 2.24984 8.35129 2.26799L9.05994 0.397748ZM8.04871 2.26799C8.09661 2.24984 8.13329 2.23595 8.16514 2.22419C8.1968 2.21249 8.21722 2.20531 8.23137 2.20063C8.25739 2.19201 8.24492 2.19772 8.21576 2.20198L7.92681 0.222965C7.69767 0.256422 7.48657 0.342232 7.34005 0.397749L8.04871 2.26799ZM8.47319 0.222965C8.29201 0.196512 8.10799 0.196512 7.92681 0.222965L8.21576 2.20198C8.20532 2.20351 8.19468 2.20351 8.18424 2.20198L8.47319 0.222965ZM16.4 5.88609C16.4 5.24018 16.4155 4.65457 16.2182 4.13057L14.3465 4.83544C14.3845 4.93642 14.4 5.07787 14.4 5.88609H16.4ZM13.1769 4.09647C13.9272 4.38077 14.048 4.44352 14.1251 4.51216L15.4551 3.01852C15.0357 2.64503 14.4827 2.4525 13.8856 2.22622L13.1769 4.09647ZM16.2182 4.13057C16.0574 3.70379 15.7959 3.32193 15.4551 3.01852L14.1251 4.51216C14.223 4.59933 14.2993 4.7101 14.3465 4.83544L16.2182 4.13057ZM8.32038 18.1173C8.2687 18.1477 8.2323 18.1692 8.20084 18.1871C8.17008 18.2046 8.15362 18.2132 8.14482 18.2175C8.13738 18.2212 8.14003 18.2195 8.14934 18.2161C8.15948 18.2124 8.16954 18.2097 8.17694 18.2081L8.60048 20.1627C8.9274 20.0919 9.16869 19.9388 9.33601 19.8402L8.32038 18.1173ZM7.06399 19.8402C7.23131 19.9388 7.4726 20.0919 7.79952 20.1627L8.22306 18.2081C8.23046 18.2097 8.24052 18.2124 8.25066 18.2161C8.25997 18.2195 8.26262 18.2212 8.25518 18.2175C8.24638 18.2132 8.22992 18.2046 8.19916 18.1871C8.1677 18.1692 8.1313 18.1477 8.07962 18.1173L7.06399 19.8402ZM8.17694 18.2081C8.18757 18.2058 8.19524 18.2045 8.19954 18.2039C8.20396 18.2032 8.20647 18.203 8.20701 18.2029C8.20764 18.2029 8.20489 18.2031 8.2 18.2031C8.19511 18.2031 8.19236 18.2029 8.19299 18.2029C8.19353 18.203 8.19604 18.2032 8.20046 18.2039C8.20476 18.2045 8.21243 18.2058 8.22306 18.2081L7.79952 20.1627C8.04819 20.2166 8.35181 20.2166 8.60048 20.1627L8.17694 18.2081ZM8.04104 9.47917L9.13643 6.5556L7.26357 5.85388L6.16818 8.77745L8.04104 9.47917ZM7.26357 6.5556L8.35897 9.47917L10.2318 8.77745L9.13643 5.85388L7.26357 6.5556ZM8.94459 10.0648L11.8992 11.1716L12.6008 9.29868L9.6462 8.19186L8.94459 10.0648ZM11.8992 9.29868L8.94459 10.4055L9.6462 12.2784L12.6008 11.1716L11.8992 9.29868ZM8.35435 11.0037L7.25895 14.0509L9.14105 14.7275L10.2364 11.6802L8.35435 11.0037ZM9.14105 14.0509L8.04565 11.0037L6.16356 11.6802L7.25895 14.7275L9.14105 14.0509ZM7.45541 10.4055L4.5008 9.29868L3.7992 11.1716L6.75381 12.2784L7.45541 10.4055ZM4.5008 11.1716L7.45541 10.0648L6.75381 8.19186L3.7992 9.29868L4.5008 11.1716Z",
@@ -27574,7 +27576,7 @@ function rb({
27574
27576
  }, O = () => s, x = () => {
27575
27577
  var E, j, _;
27576
27578
  const T = e.toolInvocations && e.toolInvocations.length > 0 || e.children && e.children.length > 0, P = e.isResponse;
27577
- return T ? /* @__PURE__ */ p.jsxs("div", { className: "space-y-2", children: [
27579
+ return T ? /* @__PURE__ */ p.jsxs("div", { className: "space-y-1", children: [
27578
27580
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2 flex-wrap", children: [
27579
27581
  /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-600", children: P ? "Responded" : "Invoked" }),
27580
27582
  e.toolInvocations && e.toolInvocations.length > 0 && e.toolInvocations.map((R, $) => /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px] px-[8px] py-[2px] border border-gray-300 rounded-[4px] text-xs", children: [
@@ -27590,7 +27592,7 @@ function rb({
27590
27592
  /* @__PURE__ */ p.jsx("div", { className: "text-xs font-medium text-gray-400 mb-[4px]", children: "Reason" }),
27591
27593
  /* @__PURE__ */ p.jsx("div", { className: "text-xs text-gray-600", children: e.toolInvocations[0].args.reason })
27592
27594
  ] })
27593
- ] }) : e.output && !T ? /* @__PURE__ */ p.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2", children: [
27595
+ ] }) : e.output && !T ? /* @__PURE__ */ p.jsx("div", { className: "space-y-1", children: /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2", children: [
27594
27596
  /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-600", children: "Generated" }),
27595
27597
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px] px-[8px] py-[4px] border border-gray-200 rounded text-xs", children: [
27596
27598
  /* @__PURE__ */ p.jsx(Bb, { className: "w-[12px] h-[12px] text-purple-500" }),
@@ -27641,9 +27643,9 @@ function rb({
27641
27643
  /* @__PURE__ */ p.jsx("div", { className: "mt-1", children: j })
27642
27644
  ] })
27643
27645
  ] }),
27644
- /* @__PURE__ */ p.jsx("div", { className: "space-y-2", children: Object.entries(P).map(([_, R]) => {
27646
+ /* @__PURE__ */ p.jsx("div", { className: "space-y-1", children: Object.entries(P).map(([_, R]) => {
27645
27647
  if (_ === "error" && R.scannerOutput)
27646
- return /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-between p-2", children: [
27648
+ return /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-between p-1", children: [
27647
27649
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2", children: [
27648
27650
  /* @__PURE__ */ p.jsx(nl, { className: "w-4 h-4 text-red-500 flex-shrink-0" }),
27649
27651
  /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-700 capitalize", children: "Error Scanner" })
@@ -27653,7 +27655,7 @@ function rb({
27653
27655
  if (R.scannerOutput) {
27654
27656
  const $ = R.scannerOutput.Validity, D = R.scannerOutput.RiskScore, k = R.scannerOutput.Duration;
27655
27657
  let F = "text-gray-500", z = "bg-gray-100";
27656
- return D !== void 0 && (D === 0 ? (F = "text-green-600", z = "bg-green-50") : D <= 3 ? (F = "text-yellow-600", z = "bg-yellow-50") : D <= 6 ? (F = "text-orange-600", z = "bg-orange-50") : (F = "text-red-600", z = "bg-red-50")), /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-between p-2", children: [
27658
+ return D !== void 0 && (D === 0 ? (F = "text-green-600", z = "bg-green-50") : D <= 3 ? (F = "text-yellow-600", z = "bg-yellow-50") : D <= 6 ? (F = "text-orange-600", z = "bg-orange-50") : (F = "text-red-600", z = "bg-red-50")), /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-between p-1", children: [
27657
27659
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2", children: [
27658
27660
  $ ? /* @__PURE__ */ p.jsx(Cb, { className: "w-4 h-4 text-green-500 flex-shrink-0" }) : /* @__PURE__ */ p.jsx(nl, { className: "w-4 h-4 text-red-500 flex-shrink-0" }),
27659
27661
  /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-700", children: _.replace(/([A-Z])/g, " $1").trim() })
@@ -27673,7 +27675,7 @@ function rb({
27673
27675
  }, S = () => {
27674
27676
  switch (l) {
27675
27677
  case "summary":
27676
- return o ? /* @__PURE__ */ p.jsxs("div", { className: "space-y-2", children: [
27678
+ return o ? /* @__PURE__ */ p.jsxs("div", { className: "space-y-1", children: [
27677
27679
  e.input && /* @__PURE__ */ p.jsxs("div", { className: "border-b border-gray-100 pb-[8px]", children: [
27678
27680
  /* @__PURE__ */ p.jsx("div", { className: "text-xs font-medium text-gray-400 mb-[8px]", children: "Input" }),
27679
27681
  /* @__PURE__ */ p.jsx(
@@ -27693,7 +27695,7 @@ function rb({
27693
27695
  /* @__PURE__ */ p.jsx("div", { className: "text-xs font-medium text-gray-400 mb-[8px]", children: "Result" }),
27694
27696
  w()
27695
27697
  ] })
27696
- ] }) : /* @__PURE__ */ p.jsxs("div", { className: "space-y-2", children: [
27698
+ ] }) : /* @__PURE__ */ p.jsxs("div", { className: "space-y-1", children: [
27697
27699
  e.input && /* @__PURE__ */ p.jsxs("div", { className: "border-b border-gray-100 pb-[8px]", children: [
27698
27700
  /* @__PURE__ */ p.jsx("div", { className: "text-xs font-medium text-gray-400 mb-[8px]", children: "Input" }),
27699
27701
  /* @__PURE__ */ p.jsx(
@@ -27816,86 +27818,91 @@ function rb({
27816
27818
  return null;
27817
27819
  }
27818
27820
  };
27819
- return /* @__PURE__ */ p.jsxs("div", { className: "bg-white w-full border-t border-gray-200", children: [
27820
- /* @__PURE__ */ p.jsx(
27821
- "div",
27822
- {
27823
- className: `flex items-center py-[8px] px-[8px] relative transition-colors cursor-pointer w-full
27821
+ return (
27822
+ // bg-white w-full border-t border-gray-200
27823
+ /* @__PURE__ */ p.jsxs("div", { className: "bg-white w-full", children: [
27824
+ /* @__PURE__ */ p.jsx(
27825
+ "div",
27826
+ {
27827
+ className: `flex items-center pl-[8px] pr-[8px] relative transition-colors cursor-pointer w-full
27824
27828
  `,
27825
- onClick: h,
27826
- children: /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[6px] w-full", children: [
27827
- /* @__PURE__ */ p.jsx(
27828
- "div",
27829
- {
27830
- className: "p-[2px] rounded hover:bg-gray-200 cursor-pointer flex-shrink-0 bg-white z-[2]",
27831
- onClick: (T) => {
27832
- T.stopPropagation(), f ? d(T) : n && n(e);
27833
- },
27834
- title: f ? r ? "Collapse" : "Expand" : "Show details",
27835
- children: /* @__PURE__ */ p.jsx(
27836
- io,
27837
- {
27838
- className: `w-[12px] h-[12px] text-gray-600 transition-transform ${f && r || u && s.length > 0 ? "rotate-90" : ""}`
27839
- }
27840
- )
27841
- }
27842
- ),
27843
- /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0", children: g() }),
27844
- /* @__PURE__ */ p.jsx("span", { className: "font-semibold text-gray-900 text-xs truncate w-full", children: o ? e.type === "GuardrailsInputScan" ? "Input Guardrails Scanner" : "Output Guardrails Scanner" : e.type === "tool" ? b(e.name) : e.name }),
27845
- /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[12px] text-[10px] text-gray-500", children: [
27846
- e.type === "Agent" && (() => {
27847
- var P;
27848
- const T = (P = e.children) == null ? void 0 : P.find((E) => E.type === "llm");
27849
- return T != null && T.name ? /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: T.name }) : null;
27850
- })(),
27851
- (e.type === "Agent" || e.type === "llm" || o) && (() => {
27852
- var P, E, j, _;
27853
- const T = e.type === "Agent" ? (j = (E = (P = e.children) == null ? void 0 : P.find((R) => R.type === "llm")) == null ? void 0 : E.llmUsage) == null ? void 0 : j.total_tokens : (_ = e.llmUsage) == null ? void 0 : _.total_tokens;
27854
- return T ? /* @__PURE__ */ p.jsxs("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: [
27855
- T.toLocaleString(),
27856
- " Tokens"
27857
- ] }) : null;
27858
- })(),
27859
- e.duration && /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px]", children: [
27860
- /* @__PURE__ */ p.jsx(ov, { className: "w-[12px] h-[12px]" }),
27861
- /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: m(e.duration) })
27829
+ onClick: h,
27830
+ children: /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[10px] w-full", children: [
27831
+ /* @__PURE__ */ p.jsx(
27832
+ "div",
27833
+ {
27834
+ className: "p-[2px] relative top-[1px] rounded hover:bg-gray-200 cursor-pointer flex-shrink-0 z-[2]",
27835
+ onClick: (T) => {
27836
+ T.stopPropagation(), f ? d(T) : n && n(e);
27837
+ },
27838
+ title: f ? r ? "Collapse" : "Expand" : "Show details",
27839
+ children: /* @__PURE__ */ p.jsx(
27840
+ io,
27841
+ {
27842
+ className: `w-[12px] h-[12px] text-gray-600 transition-transform ${f && r || u && s.length > 0 ? "rotate-90" : ""}`
27843
+ }
27844
+ )
27845
+ }
27846
+ ),
27847
+ /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[8px] w-full py-[8px] border-b border-gray-200", children: [
27848
+ /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0 rounded-[8px] bg-[#B2DDFF]", children: g() }),
27849
+ /* @__PURE__ */ p.jsx("span", { className: "font-semibold text-gray-900 text-xs truncate w-full", children: o ? e.type === "GuardrailsInputScan" ? "Input Guardrails Scanner" : "Output Guardrails Scanner" : e.type === "tool" ? b(e.name) : e.name }),
27850
+ /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[12px] text-[10px] text-gray-500", children: [
27851
+ e.type === "Agent" && (() => {
27852
+ var P;
27853
+ const T = (P = e.children) == null ? void 0 : P.find((E) => E.type === "llm");
27854
+ return T != null && T.name ? /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: T.name }) : null;
27855
+ })(),
27856
+ (e.type === "Agent" || e.type === "llm" || o) && (() => {
27857
+ var P, E, j, _;
27858
+ const T = e.type === "Agent" ? (j = (E = (P = e.children) == null ? void 0 : P.find((R) => R.type === "llm")) == null ? void 0 : E.llmUsage) == null ? void 0 : j.total_tokens : (_ = e.llmUsage) == null ? void 0 : _.total_tokens;
27859
+ return T ? /* @__PURE__ */ p.jsxs("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: [
27860
+ T.toLocaleString(),
27861
+ " Tokens"
27862
+ ] }) : null;
27863
+ })(),
27864
+ e.duration && /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px]", children: [
27865
+ /* @__PURE__ */ p.jsx(ov, { className: "w-[12px] h-[12px]" }),
27866
+ /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: m(e.duration) })
27867
+ ] })
27868
+ ] }),
27869
+ /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0", children: v() })
27862
27870
  ] })
27863
- ] }),
27864
- /* @__PURE__ */ p.jsx("div", { className: "flex-shrink-0", children: v() })
27871
+ ] })
27872
+ }
27873
+ ),
27874
+ u && s.length > 0 && i && /* @__PURE__ */ p.jsxs("div", { className: "w-full pl-[32px] relative", children: [
27875
+ /* @__PURE__ */ p.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]" }),
27876
+ /* @__PURE__ */ p.jsxs("div", { className: "px-[4px] py-[8px] w-full", children: [
27877
+ /* @__PURE__ */ p.jsx("div", { className: "bg-gray-50 rounded-[4px] p-[4px] inline-flex gap-[4px] mb-[8px] border border-gray-200", children: O().map((T) => /* @__PURE__ */ p.jsx(
27878
+ "button",
27879
+ {
27880
+ onClick: () => c(T),
27881
+ className: `px-[8px] py-[4px] text-xs font-medium rounded-[4px] text-gray-500 hover:text-gray-700 hover:shadow-tab hover:bg-white transition-colors ${l === T ? "bg-white text-gray-900 shadow-tab" : "text-gray-500 hover:text-gray-700 hover:bg-white"}`,
27882
+ children: T.charAt(0).toUpperCase() + T.slice(1)
27883
+ },
27884
+ T
27885
+ )) }),
27886
+ /* @__PURE__ */ p.jsx("div", { className: "px-[4px]", children: S() })
27865
27887
  ] })
27866
- }
27867
- ),
27868
- u && s.length > 0 && i && /* @__PURE__ */ p.jsxs("div", { className: "w-full pl-[32px] relative", children: [
27869
- /* @__PURE__ */ p.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]" }),
27870
- /* @__PURE__ */ p.jsxs("div", { className: "px-[4px] py-[8px] w-full border-t border-gray-200", children: [
27871
- /* @__PURE__ */ p.jsx("div", { className: "bg-gray-50 rounded-[4px] p-[4px] inline-flex gap-[4px] mb-[8px] border border-gray-200", children: O().map((T) => /* @__PURE__ */ p.jsx(
27872
- "button",
27888
+ ] }),
27889
+ r && f && /* @__PURE__ */ p.jsxs("div", { className: "w-full pl-[32px] relative", children: [
27890
+ /* @__PURE__ */ p.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]" }),
27891
+ e.children.map((T) => /* @__PURE__ */ p.jsx(
27892
+ rb,
27873
27893
  {
27874
- onClick: () => c(T),
27875
- className: `px-[8px] py-[4px] text-xs font-medium rounded-[4px] text-gray-500 hover:text-gray-700 hover:shadow-tab hover:bg-white transition-colors ${l === T ? "bg-white text-gray-900 shadow-tab" : "text-gray-500 hover:text-gray-700 hover:bg-white"}`,
27876
- children: T.charAt(0).toUpperCase() + T.slice(1)
27894
+ node: T,
27895
+ onToggle: t,
27896
+ isExpanded: T.isExpanded,
27897
+ onNodeClick: n,
27898
+ selectedNodeIds: a,
27899
+ showDetailView: i
27877
27900
  },
27878
- T
27879
- )) }),
27880
- /* @__PURE__ */ p.jsx("div", { className: "px-[4px]", children: S() })
27901
+ T.id
27902
+ ))
27881
27903
  ] })
27882
- ] }),
27883
- r && f && /* @__PURE__ */ p.jsxs("div", { className: "w-full pl-[32px] relative", children: [
27884
- /* @__PURE__ */ p.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]" }),
27885
- e.children.map((T) => /* @__PURE__ */ p.jsx(
27886
- rb,
27887
- {
27888
- node: T,
27889
- onToggle: t,
27890
- isExpanded: T.isExpanded,
27891
- onNodeClick: n,
27892
- selectedNodeIds: a,
27893
- showDetailView: i
27894
- },
27895
- T.id
27896
- ))
27897
27904
  ] })
27898
- ] });
27905
+ );
27899
27906
  }
27900
27907
  const MU = vs(({
27901
27908
  executionEvents: e,
@@ -27915,59 +27922,71 @@ const MU = vs(({
27915
27922
  }, [e]);
27916
27923
  const S = dt(0), T = dt(null), P = dt(!1);
27917
27924
  rv(o, () => ({
27918
- addEvent: (B) => {
27919
- y((G) => [...G, B]), P.current = !0;
27925
+ addEvent: (L) => {
27926
+ console.log("DebugPanel.addEvent called with:", L), y((G) => {
27927
+ const Y = [...G, L];
27928
+ return console.log("New executionEvents length:", Y.length), Y;
27929
+ }), P.current = !0;
27920
27930
  },
27921
- addEvents: (B) => {
27922
- y((G) => [...G, ...B]), P.current = !0;
27931
+ addEvents: (L) => {
27932
+ console.log("DebugPanel.addEvents called with:", L.length, "events"), y((G) => [...G, ...L]), P.current = !0;
27923
27933
  },
27924
27934
  clearEvents: () => {
27925
- y([]), l(/* @__PURE__ */ new Set()), u(/* @__PURE__ */ new Set()), d(/* @__PURE__ */ new Set()), P.current = !1;
27935
+ console.log("DebugPanel.clearEvents called"), y([]), l(/* @__PURE__ */ new Set()), u(/* @__PURE__ */ new Set()), d(/* @__PURE__ */ new Set()), P.current = !1;
27926
27936
  }
27927
27937
  }), []);
27928
27938
  const E = ur(() => {
27929
- const B = CU.buildSessionTree(A, t);
27930
- return T.current = B, B;
27931
- }, [A, t]), j = (B) => {
27932
- const G = [], X = (te) => {
27933
- G.push(te.id), te.children.forEach((V) => X(V));
27939
+ console.log("Building session tree with", A.length, "events");
27940
+ const L = CU.buildSessionTree(A, t);
27941
+ return console.log("Session tree built with", L.runs.length, "runs"), T.current = L, L;
27942
+ }, [A, t]), j = (L) => {
27943
+ const G = [], Y = (Q) => {
27944
+ G.push(Q.id), Q.children.forEach((V) => Y(V));
27934
27945
  };
27935
- return B.runs.forEach((te) => {
27936
- te.rootNodes.forEach((V) => X(V));
27946
+ return L.runs.forEach((Q) => {
27947
+ Q.rootNodes.forEach((V) => Y(V));
27937
27948
  }), G;
27938
27949
  }, _ = wt(() => {
27939
- const B = j(E);
27940
- l(new Set(B));
27941
- const G = E.runs.map((X) => X.runId);
27950
+ const L = j(E);
27951
+ l(new Set(L));
27952
+ const G = E.runs.map((Y) => Y.runId);
27942
27953
  d(new Set(G));
27943
27954
  }, [E]), R = wt(() => {
27944
- l(/* @__PURE__ */ new Set());
27945
- }, []), $ = wt(() => {
27955
+ if (m === "none") {
27956
+ const L = /* @__PURE__ */ new Set();
27957
+ E.runs.forEach((G) => {
27958
+ G.rootNodes.forEach((Y) => {
27959
+ L.add(Y.id);
27960
+ });
27961
+ }), l(L);
27962
+ } else
27963
+ l(/* @__PURE__ */ new Set());
27964
+ }, [m, E]), $ = wt(() => {
27946
27965
  if (E.runs.length > 0) {
27947
- const B = E.runs[E.runs.length - 1];
27948
- if (B.rootNodes.length > 0) {
27949
- const G = B.rootNodes[B.rootNodes.length - 1], X = [], te = (V) => {
27950
- if (X.push(V.id), V.children.length > 0) {
27966
+ const L = E.runs[E.runs.length - 1];
27967
+ if (L.rootNodes.length > 0) {
27968
+ const G = L.rootNodes[L.rootNodes.length - 1], Y = [], Q = (V) => {
27969
+ if (Y.push(V.id), V.children.length > 0) {
27951
27970
  const Z = V.children[V.children.length - 1];
27952
- te(Z);
27971
+ Q(Z);
27953
27972
  }
27954
27973
  };
27955
- te(G), l(new Set(X)), d((V) => {
27974
+ Q(G), l(new Set(Y)), d((V) => {
27956
27975
  const Z = new Set(V);
27957
- return Z.add(B.runId), Z;
27976
+ return Z.add(L.runId), Z;
27958
27977
  });
27959
27978
  }
27960
27979
  }
27961
- }, [E]), D = wt((B) => {
27980
+ }, [E]), D = wt((L) => {
27962
27981
  x((G) => {
27963
- const X = new Set(G);
27964
- return X.has(B) ? X.delete(B) : X.add(B), X;
27982
+ const Y = new Set(G);
27983
+ return Y.has(L) ? Y.delete(L) : Y.add(L), Y;
27965
27984
  });
27966
27985
  }, []);
27967
27986
  Qe(() => {
27968
27987
  if (g) {
27969
- const B = E.runs.map((G) => G.runId);
27970
- x(new Set(B));
27988
+ const L = E.runs.map((G) => G.runId);
27989
+ x(new Set(L));
27971
27990
  }
27972
27991
  }, [E.runs, g]);
27973
27992
  const k = dt(null);
@@ -27981,71 +28000,91 @@ const MU = vs(({
27981
28000
  }, [A.length]), Qe(() => {
27982
28001
  if (A.length > 0 && E.runs.length > 0) {
27983
28002
  if (P.current) {
27984
- switch (m) {
28003
+ switch (console.log("Auto-expansion triggered with mode:", m), m) {
27985
28004
  case "all":
27986
28005
  const G = j(E);
27987
- l(new Set(G));
28006
+ console.log("Expanding all nodes:", G.length), l(new Set(G));
27988
28007
  break;
27989
28008
  case "last":
27990
28009
  $();
27991
28010
  break;
28011
+ case "none":
28012
+ console.log("Expansion mode is none - checking if initial setup needed"), l((Y) => {
28013
+ if (Y.size === 0) {
28014
+ const Q = /* @__PURE__ */ new Set();
28015
+ return E.runs.forEach((V) => {
28016
+ V.rootNodes.forEach((Z) => {
28017
+ Q.add(Z.id);
28018
+ });
28019
+ }), console.log("Setting initial first-level nodes:", Q.size), Q;
28020
+ }
28021
+ return console.log("Keeping existing expansion state:", Y.size, "nodes"), Y;
28022
+ });
28023
+ break;
27992
28024
  }
27993
28025
  P.current = !1;
28026
+ } else if (m === "none" && s.size === 0) {
28027
+ const G = /* @__PURE__ */ new Set();
28028
+ E.runs.forEach((Y) => {
28029
+ Y.rootNodes.forEach((Q) => {
28030
+ G.add(Q.id);
28031
+ });
28032
+ }), G.size > 0 && (console.log("Setting default first-level expansion for none mode"), l(G));
27994
28033
  }
27995
28034
  d((G) => {
27996
- const X = new Set(G);
27997
- return E.runs.forEach((te) => {
27998
- X.has(te.runId) || X.add(te.runId);
27999
- }), X;
28035
+ const Y = new Set(G);
28036
+ return E.runs.forEach((Q) => {
28037
+ Y.has(Q.runId) || Y.add(Q.runId);
28038
+ }), Y;
28000
28039
  });
28001
- const B = E.runs[E.runs.length - 1];
28002
- if (B.rootNodes.length > 0) {
28003
- const G = B.rootNodes[B.rootNodes.length - 1], X = K(G);
28004
- X && u((te) => {
28005
- const V = new Set(te);
28006
- return V.add(X.id), V;
28040
+ const L = E.runs[E.runs.length - 1];
28041
+ if (L.rootNodes.length > 0) {
28042
+ const G = L.rootNodes[L.rootNodes.length - 1], Y = K(G);
28043
+ Y && u((Q) => {
28044
+ const V = new Set(Q);
28045
+ return V.add(Y.id), V;
28007
28046
  });
28008
28047
  }
28009
28048
  }
28010
- }, [E, m, $]);
28011
- const F = wt((B) => {
28049
+ }, [E, m, $, s.size]);
28050
+ const F = wt((L) => {
28012
28051
  l((G) => {
28013
- const X = new Set(G);
28014
- return X.has(B) ? (X.delete(B), a == null || a(B)) : (X.add(B), n == null || n(B)), X;
28052
+ const Y = new Set(G);
28053
+ return Y.has(L) ? (Y.delete(L), a == null || a(L)) : (Y.add(L), n == null || n(L)), Y;
28015
28054
  });
28016
- }, [n, a]), z = wt((B) => {
28055
+ }, [n, a]), z = wt((L) => {
28017
28056
  u((G) => {
28018
- const X = new Set(G);
28019
- return X.has(B.id) ? X.delete(B.id) : X.add(B.id), X;
28057
+ const Y = new Set(G);
28058
+ return Y.has(L.id) ? Y.delete(L.id) : Y.add(L.id), Y;
28020
28059
  });
28021
- }, []), q = wt((B) => {
28060
+ }, []), q = wt((L) => {
28022
28061
  d((G) => {
28023
- const X = new Set(G);
28024
- return X.has(B) ? X.delete(B) : X.add(B), X;
28062
+ const Y = new Set(G);
28063
+ return Y.has(L) ? Y.delete(L) : Y.add(L), Y;
28025
28064
  });
28026
- }, []), C = wt((B) => ({
28027
- ...B,
28028
- isExpanded: s.has(B.id),
28029
- children: B.children.map((X) => C(X))
28030
- }), [s]), L = (B) => B ? B < 1e3 ? `${B}ms` : `${(B / 1e3).toFixed(2)}s` : "", U = (B) => B ? B >= 1e6 ? `${(B / 1e6).toFixed(1)}M tokens` : B >= 1e3 ? `${(B / 1e3).toFixed(1)}K tokens` : `${B} tokens` : "", W = async (B) => {
28065
+ }, []), C = wt((L) => ({
28066
+ ...L,
28067
+ isExpanded: s.has(L.id),
28068
+ children: L.children.map((Y) => C(Y))
28069
+ }), [s]), B = (L) => L ? L < 1e3 ? `${L}ms` : `${(L / 1e3).toFixed(2)}s` : "", U = (L) => L ? L >= 1e6 ? `${(L / 1e6).toFixed(1)}M tokens` : L >= 1e3 ? `${(L / 1e3).toFixed(1)}K tokens` : `${L} tokens` : "", W = async (L) => {
28031
28070
  try {
28032
28071
  if (navigator.clipboard && navigator.clipboard.writeText) {
28033
- await navigator.clipboard.writeText(B);
28072
+ await navigator.clipboard.writeText(L);
28034
28073
  return;
28035
28074
  }
28036
28075
  const G = document.createElement("textarea");
28037
- G.value = B, G.style.position = "fixed", G.style.left = "-999999px", G.style.top = "-999999px", document.body.appendChild(G), G.focus(), G.select();
28076
+ G.value = L, G.style.position = "fixed", G.style.left = "-999999px", G.style.top = "-999999px", document.body.appendChild(G), G.focus(), G.select();
28038
28077
  try {
28039
28078
  document.execCommand("copy");
28040
- } catch (X) {
28041
- console.warn("Copy to clipboard failed:", X);
28079
+ } catch (Y) {
28080
+ console.warn("Copy to clipboard failed:", Y);
28042
28081
  } finally {
28043
28082
  document.body.removeChild(G);
28044
28083
  }
28045
28084
  } catch (G) {
28046
28085
  console.warn("Copy to clipboard failed:", G);
28047
28086
  }
28048
- }, K = (B) => B.children.length === 0 ? B : K(B.children[B.children.length - 1]);
28087
+ }, K = (L) => L.children.length === 0 ? L : K(L.children[L.children.length - 1]);
28049
28088
  return E.runs.length ? /* @__PURE__ */ p.jsx("div", { className: `flex flex-col h-full bg-white ${i}`, children: /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-[16px] p-[24px] overflow-y-auto overflow-x-hidden", ref: k, children: [
28050
28089
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center w-full gap-[16px]", children: [
28051
28090
  /* @__PURE__ */ p.jsx("div", { className: "text-xs text-gray-400 whitespace-nowrap flex-shrink-0", children: "Session initiated" }),
@@ -28117,7 +28156,7 @@ const MU = vs(({
28117
28156
  "select",
28118
28157
  {
28119
28158
  value: m,
28120
- onChange: (B) => b(B.target.value),
28159
+ onChange: (L) => b(L.target.value),
28121
28160
  className: "text-xs px-2 py-1 bg-white border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500",
28122
28161
  title: "Control auto-expansion behavior during live updates",
28123
28162
  children: [
@@ -28129,7 +28168,7 @@ const MU = vs(({
28129
28168
  )
28130
28169
  ] })
28131
28170
  ] }),
28132
- E.runs.map((B) => /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-1", children: [
28171
+ E.runs.map((L) => /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-1", children: [
28133
28172
  /* @__PURE__ */ p.jsxs("div", { className: "rounded-[8px] border border-gray-300 bg-white overflow-hidden", children: [
28134
28173
  /* @__PURE__ */ p.jsx("div", { className: "flex flex-col w-full", children: /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2 p-[8px] bg-gray-50", children: [
28135
28174
  /* @__PURE__ */ p.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", children: /* @__PURE__ */ p.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM10.4715 4.52924C10.2112 4.2689 9.78906 4.26889 9.52872 4.52924L6.66681 7.39114V5.6673C6.6668 5.29912 6.36834 5.00064 6.00015 5.00064C5.63197 5.00064 5.33351 5.29912 5.3335 5.6673V9.00064C5.3335 9.17745 5.40373 9.34702 5.52875 9.47205C5.65377 9.59707 5.82334 9.6673 6.00015 9.6673H9.3335L9.35068 9.66708C9.71092 9.65796 10.0002 9.36308 10.0002 9.00064C10.0001 8.63821 9.71092 8.34332 9.35068 8.3342L9.3335 8.33398H7.60962L10.4715 5.47205C10.7319 5.2117 10.7319 4.78958 10.4715 4.52924Z", fill: "#079455" }) }),
@@ -28137,20 +28176,20 @@ const MU = vs(({
28137
28176
  "div",
28138
28177
  {
28139
28178
  className: "flex-1 cursor-pointer select-none",
28140
- onClick: () => q(B.runId),
28141
- title: f.has(B.runId) ? "Collapse run" : "Expand run",
28142
- children: /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-900 truncate", children: B.userInput || `Run ${B.runId}` })
28179
+ onClick: () => q(L.runId),
28180
+ title: f.has(L.runId) ? "Collapse run" : "Expand run",
28181
+ children: /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-900 truncate", children: L.userInput || `Run ${L.runId}` })
28143
28182
  }
28144
28183
  ),
28145
28184
  /* @__PURE__ */ p.jsx(
28146
28185
  "button",
28147
28186
  {
28148
28187
  onClick: (G) => {
28149
- G.stopPropagation(), D(B.runId);
28188
+ G.stopPropagation(), D(L.runId);
28150
28189
  },
28151
28190
  className: "p-1 hover:bg-gray-200 rounded transition-colors flex-shrink-0",
28152
- title: O.has(B.runId) ? "Hide node details" : "Show node details",
28153
- children: O.has(B.runId) ? (
28191
+ title: O.has(L.runId) ? "Hide node details" : "Show node details",
28192
+ children: O.has(L.runId) ? (
28154
28193
  // Detail view enabled - arrows pointing outward (expanded)
28155
28194
  /* @__PURE__ */ p.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", children: /* @__PURE__ */ p.jsx("path", { d: "M0.666992 11.3327L4.00033 7.99935L7.33366 11.3327M0.666992 0.666016L4.00033 3.99935L7.33366 0.666016", stroke: "#98A2B3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }) })
28156
28195
  ) : (
@@ -28163,15 +28202,15 @@ const MU = vs(({
28163
28202
  "button",
28164
28203
  {
28165
28204
  onClick: (G) => {
28166
- G.stopPropagation(), q(B.runId);
28205
+ G.stopPropagation(), q(L.runId);
28167
28206
  },
28168
28207
  className: "p-1 hover:bg-gray-200 rounded transition-colors flex-shrink-0",
28169
- title: f.has(B.runId) ? "Collapse run" : "Expand run",
28170
- children: /* @__PURE__ */ p.jsx(Er, { className: `w-[16px] h-[16px] text-gray-400 transition-transform ${f.has(B.runId) ? "rotate-180" : ""}` })
28208
+ title: f.has(L.runId) ? "Collapse run" : "Expand run",
28209
+ children: /* @__PURE__ */ p.jsx(Er, { className: `w-[16px] h-[16px] text-gray-400 transition-transform ${f.has(L.runId) ? "rotate-180" : ""}` })
28171
28210
  }
28172
28211
  )
28173
28212
  ] }) }),
28174
- f.has(B.runId) && /* @__PURE__ */ p.jsx("div", { className: "bg-white w-full flex flex-col", children: B.rootNodes && B.rootNodes.map((G) => /* @__PURE__ */ p.jsx("div", { className: "w-full", children: /* @__PURE__ */ p.jsx(
28213
+ f.has(L.runId) && /* @__PURE__ */ p.jsx("div", { className: "bg-white w-full flex flex-col", children: L.rootNodes && L.rootNodes.map((G) => /* @__PURE__ */ p.jsx("div", { className: "w-full", children: /* @__PURE__ */ p.jsx(
28175
28214
  rb,
28176
28215
  {
28177
28216
  node: C(G),
@@ -28179,29 +28218,29 @@ const MU = vs(({
28179
28218
  isExpanded: s.has(G.id),
28180
28219
  onNodeClick: z,
28181
28220
  selectedNodeIds: c,
28182
- showDetailView: O.has(B.runId)
28221
+ showDetailView: O.has(L.runId)
28183
28222
  }
28184
28223
  ) }, G.id)) }),
28185
- B.finalOutput && /* @__PURE__ */ p.jsxs("div", { className: "p-[8px] bg-gray-50 flex items-center gap-[8px] w-full border-t border-gray-200", children: [
28224
+ L.finalOutput && /* @__PURE__ */ p.jsxs("div", { className: "p-[8px] bg-gray-50 flex items-center gap-[8px] w-full border-t border-gray-200", children: [
28186
28225
  /* @__PURE__ */ p.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", children: /* @__PURE__ */ p.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM6.66653 4.33398C6.29835 4.334 5.99988 4.63246 5.99988 5.00064C5.99988 5.36882 6.29835 5.66729 6.66653 5.6673H8.39041L5.52847 8.52924C5.26813 8.78958 5.26813 9.2117 5.52847 9.47205C5.78882 9.73239 6.21093 9.73239 6.47128 9.47205L9.33322 6.61011V8.33398C9.33323 8.70217 9.6317 9.00064 9.99988 9.00064C10.3681 9.00064 10.6665 8.70217 10.6665 8.33398V5.00064C10.6665 4.63821 10.3773 4.34333 10.0171 4.3342L9.99988 4.33398H6.66653Z", fill: "#155EEF" }) }),
28187
- /* @__PURE__ */ p.jsx("span", { className: "flex-1 text-xs text-gray-900 truncate", title: B.finalOutput, children: B.finalOutput }),
28226
+ /* @__PURE__ */ p.jsx("span", { className: "flex-1 text-xs text-gray-900 truncate", title: L.finalOutput, children: L.finalOutput }),
28188
28227
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[8px] flex-shrink-0", children: [
28189
- B.duration && /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px]", children: [
28228
+ L.duration && /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-[4px]", children: [
28190
28229
  /* @__PURE__ */ p.jsx(ov, { className: "w-[12px] h-[12px] text-gray-400" }),
28191
- /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: L(B.duration) })
28230
+ /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: B(L.duration) })
28192
28231
  ] }),
28193
- B.totalTokens && /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: U(B.totalTokens) })
28232
+ L.totalTokens && /* @__PURE__ */ p.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: U(L.totalTokens) })
28194
28233
  ] })
28195
28234
  ] })
28196
28235
  ] }),
28197
28236
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center justify-end gap-2 py-1", children: [
28198
- /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-400", children: B.runId }),
28237
+ /* @__PURE__ */ p.jsx("span", { className: "text-xs text-gray-400", children: L.runId }),
28199
28238
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center gap-2", children: [
28200
28239
  /* @__PURE__ */ p.jsx(
28201
28240
  "button",
28202
28241
  {
28203
28242
  className: "p-1 hover:bg-gray-100 rounded transition-colors",
28204
- onClick: () => W(B.runId),
28243
+ onClick: () => W(L.runId),
28205
28244
  title: "Copy run ID",
28206
28245
  children: /* @__PURE__ */ p.jsx(qa, { className: "w-3 h-3 text-gray-400" })
28207
28246
  }
@@ -28216,7 +28255,7 @@ const MU = vs(({
28216
28255
  )
28217
28256
  ] })
28218
28257
  ] })
28219
- ] }, B.runId))
28258
+ ] }, L.runId))
28220
28259
  ] }) }) : /* @__PURE__ */ p.jsx("div", { className: `flex flex-col h-full ${i}`, children: /* @__PURE__ */ p.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ p.jsx("p", { className: "text-gray-500 text-sm", children: "No execution events to display" }) }) });
28221
28260
  });
28222
28261
  MU.displayName = "DebugPanel";