@aintela/chat 0.2.29 → 0.2.30

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.
@@ -5,13 +5,13 @@ var lt = (e, a, l) => dc(e, typeof a != "symbol" ? a + "" : a, l);
5
5
  import { jsx as t, jsxs as T, Fragment as re } from "react/jsx-runtime";
6
6
  import * as wo from "react";
7
7
  import ct, { createContext as No, useContext as un, useRef as me, useMemo as Ce, useEffect as le, useCallback as ye, useState as Q, forwardRef as Cn, Component as uc, useImperativeHandle as pc, useDeferredValue as hc, useLayoutEffect as Ka, useId as fc } from "react";
8
- import { Stack as ze, Typography as _e, Tooltip as En, IconButton as Vt, Collapse as wr, useTheme as Tt, Divider as ko, Box as ie, Chip as sn, alpha as ln, Popover as Ri, useMediaQuery as kr, CircularProgress as So, Dialog as Co, DialogTitle as Eo, DialogContent as Io, DialogActions as To, Button as jn, Tabs as mc, Tab as Ga, Slider as gc, Drawer as bc, Slide as yc, Paper as Ho, keyframes as xc, DialogContentText as vc, Alert as wc, AlertTitle as kc, LinearProgress as Sc, Fade as Cc, ButtonBase as Ec, Skeleton as Ht, CssBaseline as Ic } from "@mui/material";
8
+ import { Stack as ze, Typography as _e, Tooltip as En, IconButton as Vt, Collapse as wr, useTheme as Tt, Divider as ko, Box as ae, Chip as sn, alpha as ln, Popover as Ri, useMediaQuery as kr, CircularProgress as So, Dialog as Co, DialogTitle as Eo, DialogContent as Io, DialogActions as To, Button as jn, Tabs as mc, Tab as Ga, Slider as gc, Drawer as bc, Slide as yc, Paper as Ho, keyframes as xc, DialogContentText as vc, Alert as wc, AlertTitle as kc, LinearProgress as Sc, Fade as Cc, ButtonBase as Ec, Skeleton as Ht, CssBaseline as Ic } from "@mui/material";
9
9
  import { useStore as Tc, createStore as _c } from "zustand";
10
- import { E as Ac, L as Mc, W as zc, a as dn, H as Dc, u as Oi, I as Rc, M as Oc } from "./httpArtifactService-B668XBHO.js";
10
+ import { E as Ac, L as Mc, W as zc, a as dn, H as Dc, u as Oi, I as Rc, M as Oc } from "./httpArtifactService-COu1QCBJ.js";
11
11
  import { C as we, P as Pc } from "./Prompt-DZb7OaPp.js";
12
12
  import { S as Fc, p as _o, m as Pi, M as qo, r as Vo, A as jc, E as ve } from "./environmentUtils-CUVZ6Dq1.js";
13
13
  import { enqueueSnackbar as Lc } from "notistack";
14
- import { H as $c } from "./httpSessionService-BuT5FlDc.js";
14
+ import { H as $c } from "./httpSessionService-B_G3Ej2C.js";
15
15
  import { useTheme as gt, alpha as Ge, createTheme as Bc } from "@mui/material/styles";
16
16
  import { C as Dr } from "./ClientMessage-EKgfuTp8.js";
17
17
  import { devtools as Wc } from "zustand/middleware";
@@ -64,7 +64,7 @@ import Qd from "@mui/icons-material/OpenInNew";
64
64
  import oi from "@mui/icons-material/TaskAlt";
65
65
  import Xd from "@mui/icons-material/FormatQuote";
66
66
  import Zd from "@mui/material/Avatar";
67
- import { I as ot } from "./serializer-BPina6fX.js";
67
+ import { I as ot } from "./serializer-BZjKrhXT.js";
68
68
  import { unified as eu } from "unified";
69
69
  import tu from "remark-parse";
70
70
  import { toMarkdown as nu } from "mdast-util-to-markdown";
@@ -1601,7 +1601,7 @@ const Fu = /* @__PURE__ */ n(({}) => {
1601
1601
  ii.map(({ id: w, config: S, vendor: d }) => {
1602
1602
  const v = w === l, y = S.icon;
1603
1603
  return S.speed !== "Fast" ? null : /* @__PURE__ */ T(
1604
- ie,
1604
+ ae,
1605
1605
  {
1606
1606
  onClick: /* @__PURE__ */ n(() => I(w), "onClick"),
1607
1607
  sx: {
@@ -1620,8 +1620,8 @@ const Fu = /* @__PURE__ */ n(({}) => {
1620
1620
  }
1621
1621
  },
1622
1622
  children: [
1623
- /* @__PURE__ */ t(ie, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(y, { fontSize: "small", sx: { color: v ? "primary.main" : "text.secondary" } }) }),
1624
- /* @__PURE__ */ T(ie, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
1623
+ /* @__PURE__ */ t(ae, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(y, { fontSize: "small", sx: { color: v ? "primary.main" : "text.secondary" } }) }),
1624
+ /* @__PURE__ */ T(ae, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
1625
1625
  /* @__PURE__ */ T(ze, { direction: "row", alignItems: "center", spacing: 0.5, children: [
1626
1626
  /* @__PURE__ */ t(_e, { variant: "body2", sx: { fontWeight: 600, fontSize: "0.8rem" }, children: S.name }),
1627
1627
  v && /* @__PURE__ */ t(ti, { sx: { fontSize: 14, color: "primary.main" } })
@@ -1672,7 +1672,7 @@ const Fu = /* @__PURE__ */ n(({}) => {
1672
1672
  ii.map(({ id: w, config: S, vendor: d }) => {
1673
1673
  const v = w === l, y = S.icon;
1674
1674
  return S.quality !== "Highest" ? null : /* @__PURE__ */ T(
1675
- ie,
1675
+ ae,
1676
1676
  {
1677
1677
  onClick: /* @__PURE__ */ n(() => I(w), "onClick"),
1678
1678
  sx: {
@@ -1691,8 +1691,8 @@ const Fu = /* @__PURE__ */ n(({}) => {
1691
1691
  }
1692
1692
  },
1693
1693
  children: [
1694
- /* @__PURE__ */ t(ie, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(y, { fontSize: "small", sx: { color: v ? "primary.main" : "text.secondary" } }) }),
1695
- /* @__PURE__ */ T(ie, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
1694
+ /* @__PURE__ */ t(ae, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(y, { fontSize: "small", sx: { color: v ? "primary.main" : "text.secondary" } }) }),
1695
+ /* @__PURE__ */ T(ae, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
1696
1696
  /* @__PURE__ */ T(ze, { direction: "row", alignItems: "center", spacing: 0.5, children: [
1697
1697
  /* @__PURE__ */ t(_e, { variant: "body2", sx: { fontWeight: 600, fontSize: "0.8rem" }, children: S.name }),
1698
1698
  v && /* @__PURE__ */ t(ti, { sx: { fontSize: 14, color: "primary.main" } })
@@ -1761,7 +1761,7 @@ const Fu = /* @__PURE__ */ n(({}) => {
1761
1761
  anchorOrigin: { vertical: "top", horizontal: "center" },
1762
1762
  transformOrigin: { vertical: "bottom", horizontal: "center" },
1763
1763
  sx: { mt: -1 },
1764
- children: /* @__PURE__ */ T(ie, { sx: { p: 2, minWidth: 340, maxWidth: 500, bgcolor: "background.paper" }, children: [
1764
+ children: /* @__PURE__ */ T(ae, { sx: { p: 2, minWidth: 340, maxWidth: 500, bgcolor: "background.paper" }, children: [
1765
1765
  /* @__PURE__ */ t(_e, { variant: "subtitle2", sx: { mb: 1.5, fontWeight: 700, letterSpacing: 0.5, textTransform: "uppercase", fontSize: "0.7rem", color: "text.secondary" }, children: "Select Model" }),
1766
1766
  k
1767
1767
  ] })
@@ -3198,9 +3198,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3198
3198
  }, "Ee");
3199
3199
  var Yt = Math.max;
3200
3200
  const Qt = /* @__PURE__ */ n(function(o, r, i, f) {
3201
- for (var M = -1, P = o.length, F = -1, O = i.length, L = -1, W = r.length, Y = Yt(P - O, 0), te = Array(Y + W), ae = !f; ++M < Y; ) te[M] = o[M];
3201
+ for (var M = -1, P = o.length, F = -1, O = i.length, L = -1, W = r.length, Y = Yt(P - O, 0), te = Array(Y + W), ie = !f; ++M < Y; ) te[M] = o[M];
3202
3202
  for (var oe = M; ++L < W; ) te[oe + L] = r[L];
3203
- for (; ++F < O; ) (ae || M < P) && (te[oe + i[F]] = o[M++]);
3203
+ for (; ++F < O; ) (ie || M < P) && (te[oe + i[F]] = o[M++]);
3204
3204
  return te;
3205
3205
  }, "je"), hn = /* @__PURE__ */ n(function(o, r) {
3206
3206
  for (var i = o.length, f = 0; i--; ) o[i] === r && ++f;
@@ -3318,8 +3318,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3318
3318
  }, "st"), Kt = /* @__PURE__ */ n(function(o, r, i, f, M, P, F, O, L, W) {
3319
3319
  var Y = 8 & r;
3320
3320
  r |= Y ? 32 : 64, 4 & (r &= ~(Y ? 64 : 32)) || (r &= -4);
3321
- var te = [o, r, M, Y ? P : void 0, Y ? F : void 0, Y ? void 0 : P, Y ? void 0 : F, O, L, W], ae = i.apply(void 0, te);
3322
- return Nr(o) && Xn(ae, te), ae.placeholder = f, nn(ae, o, r);
3321
+ var te = [o, r, M, Y ? P : void 0, Y ? F : void 0, Y ? void 0 : P, Y ? void 0 : F, O, L, W], ie = i.apply(void 0, te);
3322
+ return Nr(o) && Xn(ie, te), ie.placeholder = f, nn(ie, o, r);
3323
3323
  }, "it"), ar = /* @__PURE__ */ n(function(o) {
3324
3324
  return o.placeholder;
3325
3325
  }, "ct");
@@ -3344,7 +3344,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3344
3344
  }
3345
3345
  return P;
3346
3346
  }, "ht"), lr = /* @__PURE__ */ n(function o(r, i, f, M, P, F, O, L, W, Y) {
3347
- var te = 128 & i, ae = 1 & i, oe = 2 & i, Ae = 24 & i, Le = 512 & i, he = oe ? void 0 : Ne(r);
3347
+ var te = 128 & i, ie = 1 & i, oe = 2 & i, Ae = 24 & i, Le = 512 & i, he = oe ? void 0 : Ne(r);
3348
3348
  return /* @__PURE__ */ n(function Ie() {
3349
3349
  for (var $e = arguments.length, Te = Array($e), Mt = $e; Mt--; ) Te[Mt] = arguments[Mt];
3350
3350
  if (Ae) var Et = ar(Ie), an = hn(Te, Et);
@@ -3352,7 +3352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3352
3352
  var Jt = bn(Te, Et);
3353
3353
  return Kt(r, i, o, Ie.placeholder, f, Te, Jt, L, W, Y - $e);
3354
3354
  }
3355
- var Nt = ae ? f : this, It = oe ? Nt[r] : r;
3355
+ var Nt = ie ? f : this, It = oe ? Nt[r] : r;
3356
3356
  return $e = Te.length, L ? Te = gn(Te, L) : Le && $e > 1 && Te.reverse(), te && W < $e && (Te.length = W), this && this !== Me && this instanceof Ie && (It = he || Ne(It)), It.apply(Nt, Te);
3357
3357
  }, "v");
3358
3358
  }, "e"), Ur = /* @__PURE__ */ n(function(o, r, i) {
@@ -3365,9 +3365,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3365
3365
  }, "mt"), rn = /* @__PURE__ */ n(function(o, r, i, f) {
3366
3366
  var M = 1 & r, P = Ne(o);
3367
3367
  return /* @__PURE__ */ n(function F() {
3368
- for (var O = -1, L = arguments.length, W = -1, Y = f.length, te = Array(Y + L), ae = this && this !== Me && this instanceof F ? P : o; ++W < Y; ) te[W] = f[W];
3368
+ for (var O = -1, L = arguments.length, W = -1, Y = f.length, te = Array(Y + L), ie = this && this !== Me && this instanceof F ? P : o; ++W < Y; ) te[W] = f[W];
3369
3369
  for (; L--; ) te[W++] = arguments[++O];
3370
- return Xe(ae, M ? i : this, te);
3370
+ return Xe(ie, M ? i : this, te);
3371
3371
  }, "t");
3372
3372
  }, "vt");
3373
3373
  var On = "__lodash_placeholder__", Pn = 128, Kr = Math.min;
@@ -3422,10 +3422,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3422
3422
  var Y = f, te = M;
3423
3423
  f = M = void 0;
3424
3424
  }
3425
- var ae = L ? void 0 : In(o), oe = [o, r, i, f, M, Y, te, P, F, O];
3426
- if (ae && cr(oe, ae), o = oe[0], r = oe[1], i = oe[2], f = oe[3], M = oe[4], !(O = oe[9] = oe[9] === void 0 ? L ? 0 : o.length : fa(oe[9] - W, 0)) && 24 & r && (r &= -25), r && r != 1) Ae = r == 8 || r == 16 ? Ur(o, r, O) : r != 32 && r != 33 || M.length ? lr.apply(void 0, oe) : rn(o, r, i, f);
3425
+ var ie = L ? void 0 : In(o), oe = [o, r, i, f, M, Y, te, P, F, O];
3426
+ if (ie && cr(oe, ie), o = oe[0], r = oe[1], i = oe[2], f = oe[3], M = oe[4], !(O = oe[9] = oe[9] === void 0 ? L ? 0 : o.length : fa(oe[9] - W, 0)) && 24 & r && (r &= -25), r && r != 1) Ae = r == 8 || r == 16 ? Ur(o, r, O) : r != 32 && r != 33 || M.length ? lr.apply(void 0, oe) : rn(o, r, i, f);
3427
3427
  else var Ae = tt(o, r, i);
3428
- return nn((ae ? Ee : Xn)(Ae, oe), o, r);
3428
+ return nn((ie ? Ee : Xn)(Ae, oe), o, r);
3429
3429
  }, "It");
3430
3430
  function Gr(o, r, i) {
3431
3431
  var f = fl(o, 8, void 0, void 0, void 0, void 0, void 0, r = i ? void 0 : r);
@@ -3440,8 +3440,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3440
3440
  var P;
3441
3441
  const F = (function(O) {
3442
3442
  const L = O[0], W = O[1], Y = O[2];
3443
- let te, ae, oe;
3444
- return te = 1 * L + 0 * W + 1.13983 * Y, ae = 1 * L + -0.39465 * W + -0.5806 * Y, oe = 1 * L + 2.02311 * W + 0 * Y, te = Math.min(Math.max(0, te), 1), ae = Math.min(Math.max(0, ae), 1), oe = Math.min(Math.max(0, oe), 1), [255 * te, 255 * ae, 255 * oe];
3443
+ let te, ie, oe;
3444
+ return te = 1 * L + 0 * W + 1.13983 * Y, ie = 1 * L + -0.39465 * W + -0.5806 * Y, oe = 1 * L + 2.02311 * W + 0 * Y, te = Math.min(Math.max(0, te), 1), ie = Math.min(Math.max(0, ie), 1), oe = Math.min(Math.max(0, oe), 1), [255 * te, 255 * ie, 255 * oe];
3445
3445
  })([(P = i, P < 0.25 ? 1 : P < 0.5 ? 0.9 - P : 1.1 - P), f, M]);
3446
3446
  return pe.rgb(F).hex();
3447
3447
  }, "Vt"), xn = /* @__PURE__ */ n((o) => (r) => ({ className: [r.className, o.className].filter(Boolean).join(" "), style: { ...r.style || {}, ...o.style || {} } }), "Kt"), gl = /* @__PURE__ */ n((o, r) => {
@@ -3491,7 +3491,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3491
3491
  }, "Ut"), yl = /* @__PURE__ */ n((o) => Object.keys(o).reduce((r, i) => (r[i] = /^base/.test(i) ? ml(o[i]) : i === "scheme" ? o[i] + ":inverted" : o[i], r), {}), "Ht"), xl = ma((o, r = {}, i = {}, ...f) => {
3492
3492
  const { defaultBase16: M = ba, base16Themes: P = null } = r, F = wl(i, P);
3493
3493
  F && (i = { ...F, ...i });
3494
- const O = ya.reduce((te, ae) => (te[ae] = i[ae] || M[ae], te), {}), L = Object.keys(i).reduce((te, ae) => (ya.indexOf(ae) === -1 && (te[ae] = i[ae]), te), {}), W = o(O), Y = gl(L, W);
3494
+ const O = ya.reduce((te, ie) => (te[ie] = i[ie] || M[ie], te), {}), L = Object.keys(i).reduce((te, ie) => (ya.indexOf(ie) === -1 && (te[ie] = i[ie]), te), {}), W = o(O), Y = gl(L, W);
3495
3495
  return ma(bl, 2)(Y, ...f);
3496
3496
  }, 3), vl = /* @__PURE__ */ n((o) => !!o.extend, "Jt"), wl = /* @__PURE__ */ n((o, r) => {
3497
3497
  if (o && vl(o) && o.extend && (o = o.extend), typeof o == "string") {
@@ -3592,7 +3592,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3592
3592
  }, i.updateSrc = function(F, O) {
3593
3593
  var L = O.name, W = O.namespace, Y = O.new_value, te = O.variable_removed;
3594
3594
  W.shift();
3595
- var ae, oe = i.get(F, "global", "src"), Ae = i.deepCopy(oe, q(W)), Le = Ae, he = (function(Ie, $e) {
3595
+ var ie, oe = i.get(F, "global", "src"), Ae = i.deepCopy(oe, q(W)), Le = Ae, he = (function(Ie, $e) {
3596
3596
  var Te = typeof Symbol < "u" && Ie[Symbol.iterator] || Ie["@@iterator"];
3597
3597
  if (!Te) {
3598
3598
  if (Array.isArray(Ie) || (Te = K(Ie)) || $e) {
@@ -3625,8 +3625,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3625
3625
  }, "f") };
3626
3626
  })(W);
3627
3627
  try {
3628
- for (he.s(); !(ae = he.n()).done; )
3629
- Le = Le[ae.value];
3628
+ for (he.s(); !(ie = he.n()).done; )
3629
+ Le = Le[ie.value];
3630
3630
  } catch (Ie) {
3631
3631
  he.e(Ie);
3632
3632
  } finally {
@@ -3760,7 +3760,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3760
3760
  }
3761
3761
  n(Xr, "_n");
3762
3762
  var zl = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], Dl = /* @__PURE__ */ n(function(o, r) {
3763
- var i = o.cacheMeasurements, f = o.maxRows, M = o.minRows, P = o.onChange, F = P === void 0 ? Ra : P, O = o.onHeightChange, L = O === void 0 ? Ra : O, W = J(o, zl), Y = W.value !== void 0, te = _.useRef(null), ae = (function(he, Ie) {
3763
+ var i = o.cacheMeasurements, f = o.maxRows, M = o.minRows, P = o.onChange, F = P === void 0 ? Ra : P, O = o.onHeightChange, L = O === void 0 ? Ra : O, W = J(o, zl), Y = W.value !== void 0, te = _.useRef(null), ie = (function(he, Ie) {
3764
3764
  var $e = c().useRef();
3765
3765
  return c().useCallback(function(Te) {
3766
3766
  he.current = Te, $e.current && Aa($e.current, null), $e.current = Ie, Ie && Aa(Ie, Te);
@@ -3802,7 +3802,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3802
3802
  Xr(document.fonts, "loadingdone", he);
3803
3803
  })(Le), _.createElement("textarea", Qr({}, W, { onChange: /* @__PURE__ */ n(function(he) {
3804
3804
  Y || Le(), F(he);
3805
- }, "onChange"), ref: ae }));
3805
+ }, "onChange"), ref: ie }));
3806
3806
  }, "Fn"), Rl = _.forwardRef(Dl);
3807
3807
  function Oa(o, r) {
3808
3808
  o = o.trim();
@@ -4081,8 +4081,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4081
4081
  W && W.stopPropagation(), f.submitEdit();
4082
4082
  }, "onClick") })), c().createElement("div", null, f.showDetected())));
4083
4083
  }, f.submitEdit = function(M) {
4084
- var P = f.props, F = P.variable, O = P.namespace, L = P.rjvId, W = P.bigNumber, Y = f.state, te = Y.editValue, ae = Y.parsedInput, oe = te;
4085
- M && ae.type && (oe = ae.value, W && ae.type === "bigNumber" && (oe = new W(oe))), f.setState({ editMode: !1 }), Bt.dispatch({ name: "VARIABLE_UPDATED", rjvId: L, data: { name: F.name, namespace: O, existing_value: F.value, new_value: oe, variable_removed: !1 } });
4084
+ var P = f.props, F = P.variable, O = P.namespace, L = P.rjvId, W = P.bigNumber, Y = f.state, te = Y.editValue, ie = Y.parsedInput, oe = te;
4085
+ M && ie.type && (oe = ie.value, W && ie.type === "bigNumber" && (oe = new W(oe))), f.setState({ editMode: !1 }), Bt.dispatch({ name: "VARIABLE_UPDATED", rjvId: L, data: { name: F.name, namespace: O, existing_value: F.value, new_value: oe, variable_removed: !1 } });
4086
4086
  }, f.showDetected = function() {
4087
4087
  var M = f.props.theme, P = f.getDetectedInput();
4088
4088
  if (P) return c().createElement("div", null, c().createElement("div", X(M, "detected-row"), P, c().createElement(to, { className: "edit-check detected", style: k({ verticalAlign: "top", paddingLeft: "3px" }, X(M, "check-icon").style), onClick: /* @__PURE__ */ n(function(F) {
@@ -4121,12 +4121,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4121
4121
  }, f.state = { editMode: !1, editValue: "", hovered: !1, renameKey: !1, parsedInput: { type: !1, value: null } }, f;
4122
4122
  }
4123
4123
  return n(r, "t"), p(r, o), d(r, [{ key: "render", value: /* @__PURE__ */ n(function() {
4124
- var i = this, f = this.props, M = f.variable, P = f.singleIndent, F = f.type, O = f.theme, L = f.namespace, W = f.indentWidth, Y = f.enableClipboard, te = f.onEdit, ae = f.onDelete, oe = f.onSelect, Ae = f.displayArrayKey, Le = f.quotesOnKeys, he = f.showComma, Ie = f.isLast, $e = this.state.editMode, Te = oe !== !1 || te !== !1;
4124
+ var i = this, f = this.props, M = f.variable, P = f.singleIndent, F = f.type, O = f.theme, L = f.namespace, W = f.indentWidth, Y = f.enableClipboard, te = f.onEdit, ie = f.onDelete, oe = f.onSelect, Ae = f.displayArrayKey, Le = f.quotesOnKeys, he = f.showComma, Ie = f.isLast, $e = this.state.editMode, Te = oe !== !1 || te !== !1;
4125
4125
  return c().createElement("div", Object.assign({}, X(O, "objectKeyVal", { paddingLeft: W * P }), { onMouseEnter: /* @__PURE__ */ n(function() {
4126
4126
  return i.setState(k(k({}, i.state), {}, { hovered: !0 }));
4127
4127
  }, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ n(function() {
4128
4128
  return i.setState(k(k({}, i.state), {}, { hovered: !1 }));
4129
- }, "onMouseLeave"), className: "variable-row", key: M.name }), F === "array" ? Ae ? c().createElement("span", Object.assign({}, X(O, "array-key"), { key: M.name + "_" + L }), M.name, c().createElement("div", X(O, "colon"), ":")) : null : c().createElement("span", null, c().createElement("span", Object.assign({}, X(O, "object-name"), { className: "object-key", key: M.name + "_" + L, onClick: Te ? this.handleSelect : null }), !!Le && c().createElement("span", { style: { verticalAlign: "top" } }, '"'), c().createElement("span", { style: { display: "inline-block" } }, ke(M.name)), !!Le && c().createElement("span", { style: { verticalAlign: "top" } }, '"')), c().createElement("span", X(O, "colon"), ":")), c().createElement("div", Object.assign({ className: "variable-value", onClick: Te ? this.handleSelect : null }, X(O, "variableValue", { cursor: oe === !1 ? "default" : "pointer" })), this.getValue(M, $e)), he && !Ie && c().createElement("span", X(O, "comma"), ","), Y ? c().createElement(ja, { rowHovered: this.state.hovered, hidden: $e, src: M.value, clickCallback: Y, theme: O, namespace: [].concat(q(L), [M.name]) }) : null, te !== !1 && $e === !1 ? this.getEditIcon() : null, ae !== !1 && $e === !1 ? this.getRemoveIcon() : null);
4129
+ }, "onMouseLeave"), className: "variable-row", key: M.name }), F === "array" ? Ae ? c().createElement("span", Object.assign({}, X(O, "array-key"), { key: M.name + "_" + L }), M.name, c().createElement("div", X(O, "colon"), ":")) : null : c().createElement("span", null, c().createElement("span", Object.assign({}, X(O, "object-name"), { className: "object-key", key: M.name + "_" + L, onClick: Te ? this.handleSelect : null }), !!Le && c().createElement("span", { style: { verticalAlign: "top" } }, '"'), c().createElement("span", { style: { display: "inline-block" } }, ke(M.name)), !!Le && c().createElement("span", { style: { verticalAlign: "top" } }, '"')), c().createElement("span", X(O, "colon"), ":")), c().createElement("div", Object.assign({ className: "variable-value", onClick: Te ? this.handleSelect : null }, X(O, "variableValue", { cursor: oe === !1 ? "default" : "pointer" })), this.getValue(M, $e)), he && !Ie && c().createElement("span", X(O, "comma"), ","), Y ? c().createElement(ja, { rowHovered: this.state.hovered, hidden: $e, src: M.value, clickCallback: Y, theme: O, namespace: [].concat(q(L), [M.name]) }) : null, te !== !1 && $e === !1 ? this.getEditIcon() : null, ie !== !1 && $e === !1 ? this.getRemoveIcon() : null);
4130
4130
  }, "value") }]);
4131
4131
  })(c().PureComponent);
4132
4132
  var La = (function(o) {
@@ -4138,21 +4138,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4138
4138
  var F = i.props, O = F.size, L = F.theme;
4139
4139
  if (F.displayObjectSize) return c().createElement("span", Object.assign({ className: "object-size" }, X(L, "object-size")), O, " item", O === 1 ? "" : "s");
4140
4140
  }, i.getAddAttribute = function(F) {
4141
- var O = i.props, L = O.theme, W = O.namespace, Y = O.name, te = O.src, ae = O.rjvId, oe = O.depth;
4141
+ var O = i.props, L = O.theme, W = O.namespace, Y = O.name, te = O.src, ie = O.rjvId, oe = O.depth;
4142
4142
  return c().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: F ? "inline-block" : "none" } }, c().createElement(Xl, Object.assign({ className: "click-to-add-icon" }, X(L, "addVarIcon"), { onClick: /* @__PURE__ */ n(function() {
4143
4143
  var Ae = { name: oe > 0 ? Y : null, namespace: W.splice(0, W.length - 1), existing_value: te, variable_removed: !1, key_name: null };
4144
- ne(te) === "object" ? Bt.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: ae, data: Ae }) : Bt.dispatch({ name: "VARIABLE_ADDED", rjvId: ae, data: k(k({}, Ae), {}, { new_value: [].concat(q(te), [null]) }) });
4144
+ ne(te) === "object" ? Bt.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: ie, data: Ae }) : Bt.dispatch({ name: "VARIABLE_ADDED", rjvId: ie, data: k(k({}, Ae), {}, { new_value: [].concat(q(te), [null]) }) });
4145
4145
  }, "onClick") })));
4146
4146
  }, i.getRemoveObject = function(F) {
4147
- var O = i.props, L = O.theme, W = O.namespace, Y = O.name, te = O.src, ae = O.rjvId;
4147
+ var O = i.props, L = O.theme, W = O.namespace, Y = O.name, te = O.src, ie = O.rjvId;
4148
4148
  if (W.length !== 1) return c().createElement("span", { className: "click-to-remove", style: { display: F ? "inline-block" : "none" } }, c().createElement(eo, Object.assign({ className: "click-to-remove-icon" }, X(L, "removeVarIcon"), { onClick: /* @__PURE__ */ n(function() {
4149
- Bt.dispatch({ name: "VARIABLE_REMOVED", rjvId: ae, data: { name: Y, namespace: W.splice(0, W.length - 1), existing_value: te, variable_removed: !0 } });
4149
+ Bt.dispatch({ name: "VARIABLE_REMOVED", rjvId: ie, data: { name: Y, namespace: W.splice(0, W.length - 1), existing_value: te, variable_removed: !0 } });
4150
4150
  }, "onClick") })));
4151
4151
  }, i.render = function() {
4152
- var F = i.props, O = F.theme, L = F.onDelete, W = F.onAdd, Y = F.enableClipboard, te = F.src, ae = F.namespace, oe = F.rowHovered;
4152
+ var F = i.props, O = F.theme, L = F.onDelete, W = F.onAdd, Y = F.enableClipboard, te = F.src, ie = F.namespace, oe = F.rowHovered;
4153
4153
  return c().createElement("div", Object.assign({}, X(O, "object-meta-data"), { className: "object-meta-data", onClick: /* @__PURE__ */ n(function(Ae) {
4154
4154
  Ae.stopPropagation();
4155
- }, "onClick") }), i.getObjectSize(), Y ? c().createElement(ja, { rowHovered: oe, clickCallback: Y, src: te, theme: O, namespace: ae }) : null, W !== !1 ? i.getAddAttribute(oe) : null, L !== !1 ? i.getRemoveObject(oe) : null);
4155
+ }, "onClick") }), i.getObjectSize(), Y ? c().createElement(ja, { rowHovered: oe, clickCallback: Y, src: te, theme: O, namespace: ie }) : null, W !== !1 ? i.getAddAttribute(oe) : null, L !== !1 ? i.getRemoveObject(oe) : null);
4156
4156
  }, i;
4157
4157
  }
4158
4158
  return n(r, "t"), p(r, o), d(r);
@@ -4204,11 +4204,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4204
4204
  var f = this.props, M = f.theme, P = f.iconStyle;
4205
4205
  return this.state.expanded[i] ? c().createElement(Ba, { theme: M, iconStyle: P }) : c().createElement(Wa, { theme: M, iconStyle: P });
4206
4206
  }, "value") }, { key: "render", value: /* @__PURE__ */ n(function() {
4207
- var i = this, f = this.props, M = f.src, P = f.groupArraysAfterLength, F = (f.depth, f.name), O = f.theme, L = f.jsvRoot, W = f.namespace, Y = H(f, tc), te = 0, ae = 5 * this.props.indentWidth;
4207
+ var i = this, f = this.props, M = f.src, P = f.groupArraysAfterLength, F = (f.depth, f.name), O = f.theme, L = f.jsvRoot, W = f.namespace, Y = H(f, tc), te = 0, ie = 5 * this.props.indentWidth;
4208
4208
  L || (te = 5 * this.props.indentWidth);
4209
4209
  var oe = P, Ae = Math.ceil(M.length / oe);
4210
4210
  return c().createElement("div", Object.assign({ className: "object-key-val" }, X(O, L ? "jsv-root" : "objectKeyVal", { paddingLeft: te })), c().createElement($a, Object.assign({}, this.props, { onKeyClick: this.handleKeySelect })), c().createElement("span", null, c().createElement(La, Object.assign({ size: M.length }, this.props))), q(Array(Ae)).map(function(Le, he) {
4211
- return c().createElement("div", Object.assign({ key: he, className: "object-key-val array-group" }, X(O, "objectKeyVal", { marginLeft: 6, paddingLeft: ae })), c().createElement("span", X(O, "brace-row"), c().createElement("div", Object.assign({ className: "icon-container" }, X(O, "icon-container"), { onClick: /* @__PURE__ */ n(function(Ie) {
4211
+ return c().createElement("div", Object.assign({ key: he, className: "object-key-val array-group" }, X(O, "objectKeyVal", { marginLeft: 6, paddingLeft: ie })), c().createElement("span", X(O, "brace-row"), c().createElement("div", Object.assign({ className: "icon-container" }, X(O, "icon-container"), { onClick: /* @__PURE__ */ n(function(Ie) {
4212
4212
  i.toggleCollapsed(he);
4213
4213
  }, "onClick") }), i.getExpandedIcon(he)), i.state.expanded[he] ? c().createElement(hr, Object.assign({ key: F + he, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: oe, index_offset: he * oe, src: M.slice(he * oe, he * oe + oe), namespace: W, type: "array", parent_type: "array_group", theme: O, showComma: i.props.showComma, isLast: he === Ae - 1 }, Y)) : c().createElement("span", Object.assign({}, X(O, "brace"), { onClick: /* @__PURE__ */ n(function(Ie) {
4214
4214
  i.toggleCollapsed(he);
@@ -4236,7 +4236,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4236
4236
  var F = f.state, O = F.size, L = F.hovered;
4237
4237
  return c().createElement(La, Object.assign({ rowHovered: L, size: O }, f.props));
4238
4238
  }, f.renderObjectContents = function(P, F) {
4239
- var O, L = f.props, W = L.depth, Y = L.parent_type, te = L.index_offset, ae = L.groupArraysAfterLength, oe = L.namespace, Ae = L.showComma, Le = f.state.object_type, he = [], Ie = Object.keys(P || {});
4239
+ var O, L = f.props, W = L.depth, Y = L.parent_type, te = L.index_offset, ie = L.groupArraysAfterLength, oe = L.namespace, Ae = L.showComma, Le = f.state.object_type, he = [], Ie = Object.keys(P || {});
4240
4240
  return f.props.sortKeys && Le !== "array" && (Ie = Ie.sort()), Ie.forEach(function($e, Te) {
4241
4241
  O = new rc($e, P[$e], F.bigNumber);
4242
4242
  var Mt = Te === Ie.length - 1;
@@ -4244,7 +4244,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4244
4244
  else if (O.type === "object") he.push(c().createElement(hr, Object.assign({ key: O.name, depth: W + 1, name: O.name, src: O.value, namespace: oe.concat(O.name), parent_type: Le, isLast: Mt, showComma: Ae, listOfAncestors: f.listOfAncestors.concat([f.props.src]) }, F)));
4245
4245
  else if (O.type === "array") {
4246
4246
  var Et = hr;
4247
- ae && O.value.length > ae && (Et = Na), he.push(c().createElement(Et, Object.assign({ key: O.name, depth: W + 1, name: O.name, src: O.value, namespace: oe.concat(O.name), type: "array", parent_type: Le, isLast: Mt, showComma: Ae, listOfAncestors: f.listOfAncestors.concat([f.props.src]) }, F)));
4247
+ ie && O.value.length > ie && (Et = Na), he.push(c().createElement(Et, Object.assign({ key: O.name, depth: W + 1, name: O.name, src: O.value, namespace: oe.concat(O.name), type: "array", parent_type: Le, isLast: Mt, showComma: Ae, listOfAncestors: f.listOfAncestors.concat([f.props.src]) }, F)));
4248
4248
  } else he.push(c().createElement(ec, Object.assign({ key: O.name + "_" + oe, variable: O, singleIndent: 5, namespace: oe, type: f.props.type, isLast: Mt, showComma: Ae }, F)));
4249
4249
  }), he;
4250
4250
  };
@@ -4259,12 +4259,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4259
4259
  }, "value") }, { key: "isCircularReference", value: /* @__PURE__ */ n(function(i) {
4260
4260
  return this.listOfAncestors.indexOf(i.value) > -1 || i.value === this.props.src;
4261
4261
  }, "value") }, { key: "render", value: /* @__PURE__ */ n(function() {
4262
- var i = this, f = this.props, M = f.depth, P = f.src, F = (f.namespace, f.name, f.type, f.parent_type), O = f.theme, L = f.jsvRoot, W = f.iconStyle, Y = f.showComma, te = f.isLast, ae = H(f, nc), oe = this.state, Ae = oe.object_type, Le = oe.expanded, he = {};
4262
+ var i = this, f = this.props, M = f.depth, P = f.src, F = (f.namespace, f.name, f.type, f.parent_type), O = f.theme, L = f.jsvRoot, W = f.iconStyle, Y = f.showComma, te = f.isLast, ie = H(f, nc), oe = this.state, Ae = oe.object_type, Le = oe.expanded, he = {};
4263
4263
  return L || F === "array_group" ? F === "array_group" && (he.borderLeft = 0, he.display = "inline") : he.paddingLeft = 5 * this.props.indentWidth, c().createElement("div", Object.assign({ className: "object-key-val", onMouseEnter: /* @__PURE__ */ n(function() {
4264
4264
  return i.setState(k(k({}, i.state), {}, { hovered: !0 }));
4265
4265
  }, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ n(function() {
4266
4266
  return i.setState(k(k({}, i.state), {}, { hovered: !1 }));
4267
- }, "onMouseLeave") }, X(O, L ? "jsv-root" : "objectKeyVal", he)), this.getBraceStart(Ae, Le), Le ? this.getObjectContent(M, P, k({ theme: O, iconStyle: W }, ae)) : this.getEllipsis(), c().createElement("span", { className: "brace-row" }, c().createElement("span", { style: k(k({}, X(O, "brace").style), {}, { paddingLeft: Le ? "3px" : "0px" }) }, Ae === "array" ? "]" : "}")), Y && !te && !L && c().createElement("span", X(O, "comma"), ","), this.getObjectMetaData(P));
4267
+ }, "onMouseLeave") }, X(O, L ? "jsv-root" : "objectKeyVal", he)), this.getBraceStart(Ae, Le), Le ? this.getObjectContent(M, P, k({ theme: O, iconStyle: W }, ie)) : this.getEllipsis(), c().createElement("span", { className: "brace-row" }, c().createElement("span", { style: k(k({}, X(O, "brace").style), {}, { paddingLeft: Le ? "3px" : "0px" }) }, Ae === "array" ? "]" : "}")), Y && !te && !L && c().createElement("span", X(O, "comma"), ","), this.getObjectMetaData(P));
4268
4268
  }, "value") }], [{ key: "getDerivedStateFromProps", value: /* @__PURE__ */ n(function(i, f) {
4269
4269
  var M = f.prevProps;
4270
4270
  return i.src !== M.src || i.collapsed !== M.collapsed || i.name !== M.name || i.namespace !== M.namespace || i.rjvId !== M.rjvId ? k(k({}, r.getState(i)), {}, { prevProps: i }) : null;
@@ -4285,8 +4285,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4285
4285
  w(this, r);
4286
4286
  for (var f = arguments.length, M = new Array(f), P = 0; P < f; P++) M[P] = arguments[P];
4287
4287
  return (i = h(this, r, [].concat(M))).render = function() {
4288
- var F, O, L, W, Y = i.props, te = [Y.name], ae = hr;
4289
- return typeof Y.name != "object" || Array.isArray(Y.name) || (te = [((F = Y.name) === null || F === void 0 ? void 0 : F.displayName) || ((O = Y.name) === null || O === void 0 ? void 0 : O.name) || ((L = Y.name) === null || L === void 0 || (W = L.type) === null || W === void 0 ? void 0 : W.name) || "Anonymous"]), Array.isArray(Y.src) && Y.groupArraysAfterLength && Y.src.length > Y.groupArraysAfterLength && (ae = Na), c().createElement("div", { className: "pretty-json-container object-container" }, c().createElement("div", { className: "object-content" }, c().createElement(ae, Object.assign({ namespace: te, depth: 0, jsvRoot: !0 }, Y))));
4288
+ var F, O, L, W, Y = i.props, te = [Y.name], ie = hr;
4289
+ return typeof Y.name != "object" || Array.isArray(Y.name) || (te = [((F = Y.name) === null || F === void 0 ? void 0 : F.displayName) || ((O = Y.name) === null || O === void 0 ? void 0 : O.name) || ((L = Y.name) === null || L === void 0 || (W = L.type) === null || W === void 0 ? void 0 : W.name) || "Anonymous"]), Array.isArray(Y.src) && Y.groupArraysAfterLength && Y.src.length > Y.groupArraysAfterLength && (ie = Na), c().createElement("div", { className: "pretty-json-container object-container" }, c().createElement("div", { className: "object-content" }, c().createElement(ie, Object.assign({ namespace: te, depth: 0, jsvRoot: !0 }, Y))));
4290
4290
  }, i;
4291
4291
  }
4292
4292
  return n(r, "t"), p(r, o), d(r);
@@ -4346,7 +4346,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4346
4346
  return w(this, r), (f = h(this, r, [i])).rjvId = Date.now().toString() + Math.random().toString(36).slice(2), f.getListeners = function() {
4347
4347
  return { reset: f.resetState, "variable-update": f.updateSrc, "add-key-request": f.addKeyRequest };
4348
4348
  }, f.updateSrc = function() {
4349
- var M, P = St.get(f.rjvId, "action", "variable-update"), F = P.name, O = P.namespace, L = P.new_value, W = P.existing_value, Y = P.updated_src, te = P.type, ae = f.props, oe = ae.onEdit, Ae = ae.onDelete, Le = ae.onAdd, he = { existing_src: f.state.src, new_value: L, updated_src: Y, name: F, namespace: O, existing_value: W };
4349
+ var M, P = St.get(f.rjvId, "action", "variable-update"), F = P.name, O = P.namespace, L = P.new_value, W = P.existing_value, Y = P.updated_src, te = P.type, ie = f.props, oe = ie.onEdit, Ae = ie.onDelete, Le = ie.onAdd, he = { existing_src: f.state.src, new_value: L, updated_src: Y, name: F, namespace: O, existing_value: W };
4350
4350
  switch (te) {
4351
4351
  case "variable-added":
4352
4352
  M = Le(he);
@@ -4416,7 +4416,7 @@ function ui(e) {
4416
4416
  id: `session-data-tabpanel-${u}`,
4417
4417
  "aria-labelledby": `session-data-tab-${u}`,
4418
4418
  ...m,
4419
- children: l === u && /* @__PURE__ */ t(ie, { sx: { p: 3 }, children: a })
4419
+ children: l === u && /* @__PURE__ */ t(ae, { sx: { p: 3 }, children: a })
4420
4420
  }
4421
4421
  );
4422
4422
  }
@@ -4471,7 +4471,7 @@ ${p || "No response available"}
4471
4471
  }
4472
4472
  )
4473
4473
  ] }),
4474
- /* @__PURE__ */ t(Io, { children: /* @__PURE__ */ t(ie, { sx: { p: 2, color: "text.secondary" }, children: "No session data available. Please start a conversation first." }) }),
4474
+ /* @__PURE__ */ t(Io, { children: /* @__PURE__ */ t(ae, { sx: { p: 2, color: "text.secondary" }, children: "No session data available. Please start a conversation first." }) }),
4475
4475
  /* @__PURE__ */ t(To, { children: /* @__PURE__ */ t(jn, { onClick: w, children: "Close" }) })
4476
4476
  ] });
4477
4477
  function v(y, b, h) {
@@ -4510,7 +4510,7 @@ ${p || "No response available"}
4510
4510
  }
4511
4511
  )
4512
4512
  ] }),
4513
- /* @__PURE__ */ t(ie, { sx: { borderBottom: 1, borderColor: "rgba(255, 255, 255, 0.1)" }, children: /* @__PURE__ */ T(
4513
+ /* @__PURE__ */ t(ae, { sx: { borderBottom: 1, borderColor: "rgba(255, 255, 255, 0.1)" }, children: /* @__PURE__ */ T(
4514
4514
  mc,
4515
4515
  {
4516
4516
  value: m,
@@ -4528,7 +4528,7 @@ ${p || "No response available"}
4528
4528
  }
4529
4529
  ) }),
4530
4530
  /* @__PURE__ */ T(Io, { sx: { p: 0, overflow: "hidden" }, children: [
4531
- /* @__PURE__ */ t(ui, { value: m, index: 0, children: /* @__PURE__ */ t(ie, { sx: { height: "50vh", overflow: "auto" }, children: /* @__PURE__ */ t(
4531
+ /* @__PURE__ */ t(ui, { value: m, index: 0, children: /* @__PURE__ */ t(ae, { sx: { height: "50vh", overflow: "auto" }, children: /* @__PURE__ */ t(
4532
4532
  qu,
4533
4533
  {
4534
4534
  src: d,
@@ -4548,7 +4548,7 @@ ${p || "No response available"}
4548
4548
  }
4549
4549
  ) }) }),
4550
4550
  /* @__PURE__ */ t(ui, { value: m, index: 1, children: /* @__PURE__ */ t(
4551
- ie,
4551
+ ae,
4552
4552
  {
4553
4553
  sx: {
4554
4554
  height: "50vh",
@@ -4566,7 +4566,7 @@ ${p || "No response available"}
4566
4566
  ) })
4567
4567
  ] }),
4568
4568
  /* @__PURE__ */ T(To, { sx: { borderTop: "1px solid rgba(255, 255, 255, 0.1)", p: 1, pt: 0.5 }, children: [
4569
- /* @__PURE__ */ t(ie, { sx: { width: "100%", top: "-5px", position: "relative" }, children: /* @__PURE__ */ T(
4569
+ /* @__PURE__ */ t(ae, { sx: { width: "100%", top: "-5px", position: "relative" }, children: /* @__PURE__ */ T(
4570
4570
  ze,
4571
4571
  {
4572
4572
  direction: "row",
@@ -6550,7 +6550,7 @@ const Uu = `${Vo()}/open/getImage`, Ku = No({}), Gu = /* @__PURE__ */ n(() => un
6550
6550
  }
6551
6551
  },
6552
6552
  children: [
6553
- /* @__PURE__ */ T(ie, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
6553
+ /* @__PURE__ */ T(ae, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
6554
6554
  /* @__PURE__ */ t(En, { title: w, enterDelay: 500, children: /* @__PURE__ */ t(
6555
6555
  _e,
6556
6556
  {
@@ -6567,7 +6567,7 @@ const Uu = `${Vo()}/open/getImage`, Ku = No({}), Gu = /* @__PURE__ */ n(() => un
6567
6567
  ) }),
6568
6568
  u && /* @__PURE__ */ t(Vt, { size: "small", onClick: u, edge: "end", sx: { ml: 1, flexShrink: 0 }, children: /* @__PURE__ */ t(Cr, { fontSize: "small" }) })
6569
6569
  ] }),
6570
- /* @__PURE__ */ t(ie, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(Un, { ref: a, ...I, onVisibleQuestionChange: k }) })
6570
+ /* @__PURE__ */ t(ae, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(Un, { ref: a, ...I, onVisibleQuestionChange: k }) })
6571
6571
  ]
6572
6572
  }
6573
6573
  );
@@ -6621,7 +6621,7 @@ const Qu = xc`
6621
6621
  pointerEvents: k ? "auto" : "none"
6622
6622
  },
6623
6623
  children: [
6624
- /* @__PURE__ */ T(ie, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
6624
+ /* @__PURE__ */ T(ae, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
6625
6625
  /* @__PURE__ */ t(En, { title: y, enterDelay: 500, children: /* @__PURE__ */ t(
6626
6626
  _e,
6627
6627
  {
@@ -6638,7 +6638,7 @@ const Qu = xc`
6638
6638
  ) }),
6639
6639
  /* @__PURE__ */ t(Vt, { size: "small", onClick: /* @__PURE__ */ n(() => w(!1), "onClick"), edge: "end", sx: { ml: 1, flexShrink: 0 }, children: /* @__PURE__ */ t(Cr, { fontSize: "small" }) })
6640
6640
  ] }),
6641
- /* @__PURE__ */ t(ie, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(
6641
+ /* @__PURE__ */ t(ae, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(
6642
6642
  Un,
6643
6643
  {
6644
6644
  ref: a,
@@ -6652,7 +6652,7 @@ const Qu = xc`
6652
6652
  }
6653
6653
  ) }),
6654
6654
  !k && /* @__PURE__ */ t(
6655
- ie,
6655
+ ae,
6656
6656
  {
6657
6657
  sx: {
6658
6658
  position: "fixed",
@@ -6660,8 +6660,8 @@ const Qu = xc`
6660
6660
  zIndex: 1e4,
6661
6661
  animation: `${Qu} 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both`
6662
6662
  },
6663
- children: u ? /* @__PURE__ */ t(ie, { onClick: /* @__PURE__ */ n(() => w((N) => !N), "onClick"), sx: { cursor: "pointer" }, children: u }) : /* @__PURE__ */ T(
6664
- ie,
6663
+ children: u ? /* @__PURE__ */ t(ae, { onClick: /* @__PURE__ */ n(() => w((N) => !N), "onClick"), sx: { cursor: "pointer" }, children: u }) : /* @__PURE__ */ T(
6664
+ ae,
6665
6665
  {
6666
6666
  onClick: /* @__PURE__ */ n(() => {
6667
6667
  w((N) => !N), e.onFloatingOpened && e.onFloatingOpened();
@@ -6696,7 +6696,7 @@ const Qu = xc`
6696
6696
  },
6697
6697
  children: [
6698
6698
  /* @__PURE__ */ t(pu, { sx: { color: "#ccc", fontSize: 24 } }),
6699
- /* @__PURE__ */ t(ie, { sx: {
6699
+ /* @__PURE__ */ t(ae, { sx: {
6700
6700
  position: "absolute",
6701
6701
  bottom: -16,
6702
6702
  right: -4,
@@ -6910,7 +6910,7 @@ const vs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
6910
6910
  const B = d.palette.text.secondary, J = d.palette.action.hover, H = d.palette.divider, ee = d.palette.mode === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.06)";
6911
6911
  return /* @__PURE__ */ T(re, { children: [
6912
6912
  /* @__PURE__ */ T(
6913
- ie,
6913
+ ae,
6914
6914
  {
6915
6915
  ref: w,
6916
6916
  className: N,
@@ -6949,7 +6949,7 @@ const vs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
6949
6949
  }
6950
6950
  }
6951
6951
  ),
6952
- /* @__PURE__ */ T(ie, { sx: {
6952
+ /* @__PURE__ */ T(ae, { sx: {
6953
6953
  display: "flex",
6954
6954
  alignItems: "center",
6955
6955
  justifyContent: "space-between",
@@ -7007,7 +7007,7 @@ const vs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
7007
7007
  )
7008
7008
  ] }),
7009
7009
  j && /* @__PURE__ */ t(
7010
- ie,
7010
+ ae,
7011
7011
  {
7012
7012
  ref: S,
7013
7013
  sx: {
@@ -7050,7 +7050,7 @@ const vs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
7050
7050
  )
7051
7051
  }
7052
7052
  ),
7053
- /* @__PURE__ */ T(ie, { sx: {
7053
+ /* @__PURE__ */ T(ae, { sx: {
7054
7054
  display: "flex",
7055
7055
  alignItems: "center",
7056
7056
  justifyContent: "space-between",
@@ -7105,7 +7105,7 @@ const vs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
7105
7105
  }
7106
7106
  },
7107
7107
  children: /* @__PURE__ */ T(
7108
- ie,
7108
+ ae,
7109
7109
  {
7110
7110
  id: "preview-container",
7111
7111
  sx: {
@@ -7608,7 +7608,7 @@ function vi({ streamedBytes: e = 0 }) {
7608
7608
  n(x, "formatCompact");
7609
7609
  const g = /* @__PURE__ */ n((I) => x(I), "formatBytes");
7610
7610
  return /* @__PURE__ */ T(re, { children: [
7611
- /* @__PURE__ */ t(ie, { sx: {
7611
+ /* @__PURE__ */ t(ae, { sx: {
7612
7612
  display: "inline-flex",
7613
7613
  alignItems: "flex-end",
7614
7614
  alignContent: "center",
@@ -7618,7 +7618,7 @@ function vi({ streamedBytes: e = 0 }) {
7618
7618
  }, children: Array.from({ length: m }, (I, C) => {
7619
7619
  const R = C < a, k = C === a && l > 0, w = R ? 1 : k ? l : 0, S = k && !R;
7620
7620
  return /* @__PURE__ */ t(
7621
- ie,
7621
+ ae,
7622
7622
  {
7623
7623
  sx: {
7624
7624
  position: "relative",
@@ -7629,7 +7629,7 @@ function vi({ streamedBytes: e = 0 }) {
7629
7629
  overflow: "hidden",
7630
7630
  flexShrink: 0
7631
7631
  },
7632
- children: /* @__PURE__ */ t(ie, { sx: {
7632
+ children: /* @__PURE__ */ t(ae, { sx: {
7633
7633
  position: "absolute",
7634
7634
  bottom: 0,
7635
7635
  left: 0,
@@ -8328,7 +8328,7 @@ const Ds = /* @__PURE__ */ n(({ children: e }) => {
8328
8328
  onGoing: u,
8329
8329
  preview: m
8330
8330
  };
8331
- return /* @__PURE__ */ t(re, { children: I.render(k, w) });
8331
+ return /* @__PURE__ */ t(ae, { "data-ui-tool-content": "", children: I.render(k, w) });
8332
8332
  }, "UiToolDispatcher"), wp = /* @__PURE__ */ n(({
8333
8333
  entry: e,
8334
8334
  callId: a,
@@ -8357,7 +8357,7 @@ const Ds = /* @__PURE__ */ n(({ children: e }) => {
8357
8357
  }).catch((v) => {
8358
8358
  console.error("[uiTool] action failed:", e.name, v), w({ label: "Ação não pôde ser executada", ok: !1 });
8359
8359
  });
8360
- }, [a]), k ? /* @__PURE__ */ t(ie, { sx: { my: 0.5 }, children: /* @__PURE__ */ t(sn, { size: "small", variant: "outlined", color: k.ok ? "default" : "error", label: k.label }) }) : null;
8360
+ }, [a]), k ? /* @__PURE__ */ t(ae, { sx: { my: 0.5 }, children: /* @__PURE__ */ t(sn, { size: "small", variant: "outlined", color: k.ok ? "default" : "error", label: k.label }) }) : null;
8361
8361
  }, "UiToolActionRunner"), ra = {
8362
8362
  text: Ss,
8363
8363
  thought: Cs,
@@ -8836,7 +8836,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8836
8836
  const k = /* @__PURE__ */ n(() => {
8837
8837
  m((c) => c == 2 ? 0 : c + 1);
8838
8838
  }, "cycleLevel"), w = (s == null ? void 0 : s.items.filter((c) => c.status === "completed").length) ?? 0, S = (s == null ? void 0 : s.items.length) ?? 0, d = S > 0 ? w / S * 100 : 0, y = `${w > 0 ? `${w} de ${S} completos` : "Iniciando..."} - ${d.toFixed(2)}%`, b = `${d.toFixed(2)}%`, h = s != null && s.currentWorkingItemKey ? s.items.find((c) => c.key === s.currentWorkingItemKey) : null, z = (s == null ? void 0 : s.items.slice(0, fo)) ?? [], p = ((s == null ? void 0 : s.items.length) ?? 0) > fo, _ = /* @__PURE__ */ n((c) => /* @__PURE__ */ t(ze, { gap: 0.5, sx: { py: 0.5 }, children: c.map((A) => /* @__PURE__ */ T(
8839
- ie,
8839
+ ae,
8840
8840
  {
8841
8841
  sx: {
8842
8842
  display: "flex",
@@ -8846,8 +8846,8 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8846
8846
  opacity: A.status === "completed" ? 0.5 : 1
8847
8847
  },
8848
8848
  children: [
8849
- /* @__PURE__ */ t(ie, { sx: { mt: "1px", flexShrink: 0, color: Pp(A.status) }, children: /* @__PURE__ */ t(Op, { status: A.status }) }),
8850
- /* @__PURE__ */ T(ie, { children: [
8849
+ /* @__PURE__ */ t(ae, { sx: { mt: "1px", flexShrink: 0, color: Pp(A.status) }, children: /* @__PURE__ */ t(Op, { status: A.status }) }),
8850
+ /* @__PURE__ */ T(ae, { children: [
8851
8851
  /* @__PURE__ */ t(
8852
8852
  _e,
8853
8853
  {
@@ -8875,7 +8875,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8875
8875
  A.key
8876
8876
  )) }), "renderTodoItems");
8877
8877
  return /* @__PURE__ */ T(
8878
- ie,
8878
+ ae,
8879
8879
  {
8880
8880
  ref: I,
8881
8881
  "data-subagent-id": e.id,
@@ -8890,7 +8890,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8890
8890
  },
8891
8891
  children: [
8892
8892
  C && /* @__PURE__ */ t(
8893
- ie,
8893
+ ae,
8894
8894
  {
8895
8895
  sx: {
8896
8896
  position: "absolute",
@@ -8914,7 +8914,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8914
8914
  completedColor: "rgba(120,120,120,0.2)",
8915
8915
  unCompletedColor: "rgba(120,120,120,0.05)",
8916
8916
  children: /* @__PURE__ */ t(
8917
- ie,
8917
+ ae,
8918
8918
  {
8919
8919
  sx: {
8920
8920
  display: "flex",
@@ -8928,7 +8928,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8928
8928
  width: "100%"
8929
8929
  },
8930
8930
  children: /* @__PURE__ */ t(
8931
- ie,
8931
+ ae,
8932
8932
  {
8933
8933
  sx: {
8934
8934
  display: "inline-flex",
@@ -8944,7 +8944,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8944
8944
  C ? /* @__PURE__ */ t(ze, { direction: "row", alignItems: "center", spacing: 0.5, children: /* @__PURE__ */ t(kd, { sx: { fontSize: 16, color: g.palette.primary.main } }) }) : /* @__PURE__ */ t(qn, { sx: { fontSize: 14, color: g.palette.success.main } }),
8945
8945
  /* @__PURE__ */ t(_e, { variant: "body1", sx: { overflow: "hidden", textAlign: "left", fontWeight: 500, fontSize: "0.85rem", whiteSpace: "nowrap" }, children: e.name ?? e.id })
8946
8946
  ] }),
8947
- /* @__PURE__ */ t(ie, { onClick: k, sx: { display: "inline-flex", alignItems: "center", justifyContent: "start", minWidth: u === 0 ? "60%" : a ? "40%" : "25%", minHeight: "25px" }, children: s && S > 0 && /* @__PURE__ */ T(
8947
+ /* @__PURE__ */ t(ae, { onClick: k, sx: { display: "inline-flex", alignItems: "center", justifyContent: "start", minWidth: u === 0 ? "60%" : a ? "40%" : "25%", minHeight: "25px" }, children: s && S > 0 && /* @__PURE__ */ T(
8948
8948
  ze,
8949
8949
  {
8950
8950
  direction: "row",
@@ -8997,7 +8997,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
8997
8997
  }
8998
8998
  ),
8999
8999
  /* @__PURE__ */ t(wr, { in: u === 1, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ t(
9000
- ie,
9000
+ ae,
9001
9001
  {
9002
9002
  sx: {
9003
9003
  borderTop: `1px solid ${g.palette.divider}`,
@@ -9011,8 +9011,8 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
9011
9011
  children: s ? _(s.items) : /* @__PURE__ */ t(_e, { variant: "caption", sx: { color: "text.disabled", py: 1, display: "block" }, children: "No tasks yet" })
9012
9012
  }
9013
9013
  ) }),
9014
- /* @__PURE__ */ t(wr, { in: u === 2, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ T(ie, { sx: { borderTop: `1px solid ${g.palette.divider}` }, children: [
9015
- s && s.items.length > 0 && /* @__PURE__ */ T(ie, { sx: { px: 2, pb: 0.5, maxHeight: "160px", overflowY: "auto" }, children: [
9014
+ /* @__PURE__ */ t(wr, { in: u === 2, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ T(ae, { sx: { borderTop: `1px solid ${g.palette.divider}` }, children: [
9015
+ s && s.items.length > 0 && /* @__PURE__ */ T(ae, { sx: { px: 2, pb: 0.5, maxHeight: "160px", overflowY: "auto" }, children: [
9016
9016
  _(z),
9017
9017
  p && /* @__PURE__ */ T(_e, { variant: "caption", sx: { color: "text.disabled", fontSize: "0.7rem", pl: 2.5 }, children: [
9018
9018
  "+",
@@ -9021,7 +9021,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
9021
9021
  ] })
9022
9022
  ] }),
9023
9023
  /* @__PURE__ */ t(
9024
- ie,
9024
+ ae,
9025
9025
  {
9026
9026
  sx: {
9027
9027
  borderTop: s && s.items.length > 0 ? `1px solid ${g.palette.divider}` : "none",
@@ -9616,7 +9616,7 @@ const Fp = /* @__PURE__ */ n(({ subAgent: e, compact: a, onLinkClicked: l }) =>
9616
9616
  g(),
9617
9617
  a
9618
9618
  ] }),
9619
- /* @__PURE__ */ t(Io, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(vc, { id: "alert-dialog-description", children: /* @__PURE__ */ t(ie, { sx: { mt: 1 }, children: /* @__PURE__ */ T(wc, { severity: I(), sx: { "& .MuiAlert-message": { width: "100%" } }, children: [
9619
+ /* @__PURE__ */ t(Io, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(vc, { id: "alert-dialog-description", children: /* @__PURE__ */ t(ae, { sx: { mt: 1 }, children: /* @__PURE__ */ T(wc, { severity: I(), sx: { "& .MuiAlert-message": { width: "100%" } }, children: [
9620
9620
  /* @__PURE__ */ t(kc, { children: a }),
9621
9621
  l
9622
9622
  ] }) }) }) }),
@@ -9687,7 +9687,14 @@ const Bp = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: a, messagesRe
9687
9687
  // this keyframe on the headings/paragraphs inside
9688
9688
  // a metric/chart card and read as a blink. Cards
9689
9689
  // have their own arrival animation upstream.
9690
- "& p:not([data-live-jsx-content] *), & li:not([data-live-jsx-content] *), & tr:not([data-live-jsx-content] *), & pre:not([data-live-jsx-content] *), & h1:not([data-live-jsx-content] *), & h2:not([data-live-jsx-content] *), & h3:not([data-live-jsx-content] *), & h4:not([data-live-jsx-content] *), & h5:not([data-live-jsx-content] *), & h6:not([data-live-jsx-content] *), & hr:not([data-live-jsx-content] *), & img:not([data-live-jsx-content] *)": {
9690
+ // - any descendant of `[data-ui-tool-content]`: a host
9691
+ // UI render tool (e.g. present_tripstretch) draws a
9692
+ // rich MUI card whose `<Typography>` (→ `<p>`/`<h*>`)
9693
+ // and logo `<img>` nodes mount all at once when the
9694
+ // tool result folds in (status Done) — typically right
9695
+ // as the turn ends — so the fade would replay across
9696
+ // the whole card and read as a blink.
9697
+ "& p:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & li:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & tr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & pre:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h1:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h2:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h3:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h4:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h5:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h6:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & hr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & img:not([data-live-jsx-content] *):not([data-ui-tool-content] *)": {
9691
9698
  animation: "currentMessageFadeIn 220ms ease-out both"
9692
9699
  },
9693
9700
  // Streaming-only left-alignment for table cells. GFM
@@ -9705,7 +9712,7 @@ const Bp = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: a, messagesRe
9705
9712
  textAlign: "left !important"
9706
9713
  },
9707
9714
  "@media (prefers-reduced-motion: reduce)": {
9708
- "& p:not([data-live-jsx-content] *), & li:not([data-live-jsx-content] *), & tr:not([data-live-jsx-content] *), & pre:not([data-live-jsx-content] *), & h1:not([data-live-jsx-content] *), & h2:not([data-live-jsx-content] *), & h3:not([data-live-jsx-content] *), & h4:not([data-live-jsx-content] *), & h5:not([data-live-jsx-content] *), & h6:not([data-live-jsx-content] *), & hr:not([data-live-jsx-content] *), & img:not([data-live-jsx-content] *)": {
9715
+ "& p:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & li:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & tr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & pre:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h1:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h2:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h3:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h4:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h5:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h6:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & hr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & img:not([data-live-jsx-content] *):not([data-ui-tool-content] *)": {
9709
9716
  animation: "none"
9710
9717
  }
9711
9718
  }
@@ -10322,8 +10329,8 @@ const Bp = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: a, messagesRe
10322
10329
  I.gatewayOffToolEvent(S);
10323
10330
  };
10324
10331
  }, [I]);
10325
- const k = e || a || l, w = s !== void 0 ? s : m ? /* @__PURE__ */ T(ie, { sx: { display: "flex", flexDirection: "column", height: "100%", minHeight: 0 }, children: [
10326
- /* @__PURE__ */ t(ie, { sx: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ t(Hn, {}) }),
10332
+ const k = e || a || l, w = s !== void 0 ? s : m ? /* @__PURE__ */ T(ae, { sx: { display: "flex", flexDirection: "column", height: "100%", minHeight: 0 }, children: [
10333
+ /* @__PURE__ */ t(ae, { sx: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ t(Hn, {}) }),
10327
10334
  m
10328
10335
  ] }) : /* @__PURE__ */ t(Hn, {});
10329
10336
  return k ? /* @__PURE__ */ t(
@@ -10381,7 +10388,7 @@ const Vp = /* @__PURE__ */ n(({ artifact: e, mode: a, sessionId: l, preview: u,
10381
10388
  }
10382
10389
  n(k, "geticon");
10383
10390
  function w() {
10384
- return /* @__PURE__ */ T(ie, { sx: {
10391
+ return /* @__PURE__ */ T(ae, { sx: {
10385
10392
  display: a === "compact" && x === !1 ? "flex" : "block",
10386
10393
  textAlign: "center",
10387
10394
  alignContent: "center",
@@ -10407,7 +10414,7 @@ const Vp = /* @__PURE__ */ n(({ artifact: e, mode: a, sessionId: l, preview: u,
10407
10414
  }
10408
10415
  n(w, "getMimeTypeCard");
10409
10416
  function S(y, b) {
10410
- return b ? /* @__PURE__ */ t(ie, { sx: {
10417
+ return b ? /* @__PURE__ */ t(ae, { sx: {
10411
10418
  display: a === "compact" && x === !1 ? "flex" : "block",
10412
10419
  textAlign: "center",
10413
10420
  justifyContent: a === "compact" ? "center" : "auto",
@@ -10436,7 +10443,7 @@ const Vp = /* @__PURE__ */ n(({ artifact: e, mode: a, sessionId: l, preview: u,
10436
10443
  const b = y.description ?? "", h = ((_ = y.name) == null ? void 0 : _.indexOf("http")) == -1 ? `${Vo()}/open/getImage/${l}/${y.name}` : y.name, z = /* @__PURE__ */ n(() => {
10437
10444
  }, "handleImageLoad"), p = /* @__PURE__ */ n(() => {
10438
10445
  }, "handleImageError");
10439
- return /* @__PURE__ */ T(ie, { sx: {
10446
+ return /* @__PURE__ */ T(ae, { sx: {
10440
10447
  display: a === "compact" && x === !1 ? "flex" : "block",
10441
10448
  textAlign: "center",
10442
10449
  justifyContent: a === "compact" ? "center" : "auto",
@@ -10640,7 +10647,7 @@ const nh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: a }) => {
10640
10647
  (p) => ot.uiSlotId(p) === d.slotId
10641
10648
  ), z = ((b = C == null ? void 0 : C.partRenderers) == null ? void 0 : b.uiTool) ?? ra.uiTool;
10642
10649
  return !h || !z ? null : /* @__PURE__ */ t(
10643
- ie,
10650
+ ae,
10644
10651
  {
10645
10652
  sx: {
10646
10653
  transformOrigin: "center top",
@@ -10782,7 +10789,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
10782
10789
  return { bars: _, linePoints: c };
10783
10790
  }, []);
10784
10791
  return /* @__PURE__ */ t(
10785
- ie,
10792
+ ae,
10786
10793
  {
10787
10794
  sx: {
10788
10795
  width: "100%",
@@ -10870,7 +10877,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
10870
10877
  showIcon: e = !1,
10871
10878
  showChangeRow: a = !0
10872
10879
  }) => /* @__PURE__ */ T(
10873
- ie,
10880
+ ae,
10874
10881
  {
10875
10882
  sx: {
10876
10883
  display: "flex",
@@ -10883,7 +10890,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
10883
10890
  },
10884
10891
  children: [
10885
10892
  e && /* @__PURE__ */ t(Ht, { animation: "wave", variant: "circular", width: 48, height: 48, sx: { flexShrink: 0 } }),
10886
- /* @__PURE__ */ T(ie, { sx: { flex: 1, minWidth: 0 }, children: [
10893
+ /* @__PURE__ */ T(ae, { sx: { flex: 1, minWidth: 0 }, children: [
10887
10894
  /* @__PURE__ */ t(Ht, { animation: "wave", variant: "rounded", width: 120, height: 26 }),
10888
10895
  /* @__PURE__ */ t(Ht, { animation: "wave", variant: "text", width: "92%", sx: { mt: 0.5 } }),
10889
10896
  /* @__PURE__ */ t(Ht, { animation: "wave", variant: "text", width: "64%", sx: { mt: 0.25 } }),
@@ -10899,7 +10906,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
10899
10906
  showIcon: a = !1,
10900
10907
  showChangeRow: l = !0
10901
10908
  }) => /* @__PURE__ */ t(
10902
- ie,
10909
+ ae,
10903
10910
  {
10904
10911
  sx: {
10905
10912
  display: "grid",
@@ -10913,7 +10920,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
10913
10920
  l.palette.common.white,
10914
10921
  l.palette.mode === "dark" ? 0.12 : 0.35
10915
10922
  );
10916
- return /* @__PURE__ */ t(ie, { sx: { borderRadius: 2, overflow: "hidden", bgcolor: "action.hover" }, children: /* @__PURE__ */ T(
10923
+ return /* @__PURE__ */ t(ae, { sx: { borderRadius: 2, overflow: "hidden", bgcolor: "action.hover" }, children: /* @__PURE__ */ T(
10917
10924
  "table",
10918
10925
  {
10919
10926
  style: {
@@ -11004,7 +11011,7 @@ const yo = 15, sh = /* @__PURE__ */ n(() => {
11004
11011
  n(S, "formatCompact");
11005
11012
  const d = g.reduce((b, h) => b + h.h, 0), v = e * d, y = /* @__PURE__ */ n((b) => g[b].h - Math.max(g[b].acc - v, 0), "barFill");
11006
11013
  return /* @__PURE__ */ T(
11007
- ie,
11014
+ ae,
11008
11015
  {
11009
11016
  sx: {
11010
11017
  width: 220,
@@ -11277,11 +11284,11 @@ const yh = /* @__PURE__ */ n(({ code: e, partial: a, scope: l, progress: u = 0,
11277
11284
  if (w && I.error) return C(I.error, !1);
11278
11285
  const b = bh(e), h = b ? /* @__PURE__ */ t(b, {}) : /* @__PURE__ */ t(uh, { progress: u, bytes: m }), z = /* @__PURE__ */ T(vu, { theme: R, children: [
11279
11286
  /* @__PURE__ */ t(Ic, {}),
11280
- /* @__PURE__ */ t(zr, { fallback: C, children: /* @__PURE__ */ t(ie, { "data-live-jsx-content": "", children: I.Component ? /* @__PURE__ */ t(I.Component, {}) : /* @__PURE__ */ t(jt, { text: `\`\`\`tsx
11287
+ /* @__PURE__ */ t(zr, { fallback: C, children: /* @__PURE__ */ t(ae, { "data-live-jsx-content": "", children: I.Component ? /* @__PURE__ */ t(I.Component, {}) : /* @__PURE__ */ t(jt, { text: `\`\`\`tsx
11281
11288
  ${e}\`\`\``, sessionId: "" }) }) })
11282
11289
  ] });
11283
11290
  return /* @__PURE__ */ T(
11284
- ie,
11291
+ ae,
11285
11292
  {
11286
11293
  ref: v,
11287
11294
  sx: {
@@ -11316,7 +11323,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
11316
11323
  "skeleton-layer"
11317
11324
  ),
11318
11325
  (S === "arriving" || S === "final") && /* @__PURE__ */ t(
11319
- ie,
11326
+ ae,
11320
11327
  {
11321
11328
  ref: y,
11322
11329
  sx: {