@carto/ps-react-ui 4.4.0-chat-ui.3 → 4.4.0-chat-ui.4

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/chat.js CHANGED
@@ -1,18 +1,44 @@
1
- import { jsx as a, jsxs as T, Fragment as Te } from "react/jsx-runtime";
1
+ import { useRef as se, useState as Q, useEffect as ge, forwardRef as ae } from "react";
2
+ import { jsx as a, jsxs as T, Fragment as ke } from "react/jsx-runtime";
2
3
  import { c as z } from "react/compiler-runtime";
3
- import { styled as se, Typography as _, Box as y, Link as ke, ButtonBase as Se, Fab as _e, IconButton as O, FilledInput as $e, FormHelperText as Ae, FormControl as Ie, DialogTitle as Re, DialogContent as Ee, Dialog as Le, createSvgIcon as ae, Tooltip as De, Button as re, Collapse as le, CircularProgress as ze } from "@mui/material";
4
- import { ErrorOutline as ge, ArrowUpward as Be, KeyboardArrowDown as Fe, Close as he, StopCircleOutlined as We, ArrowUpwardOutlined as Me, ThumbUp as He, ThumbUpOutlined as Oe, ThumbDown as Pe, ThumbDownOutlined as Ve, ArrowRight as xe, Error as Ue, CheckCircle as je, ChevronRight as Ne } from "@mui/icons-material";
4
+ import { styled as ce, Typography as _, Box as y, Link as Se, ButtonBase as _e, Fab as Ae, IconButton as O, FilledInput as $e, FormHelperText as Ie, FormControl as Re, DialogTitle as Ee, DialogContent as Le, Dialog as De, createSvgIcon as de, Tooltip as ze, Button as le, Collapse as ie, CircularProgress as Be } from "@mui/material";
5
+ import { ErrorOutline as xe, ArrowUpward as Fe, KeyboardArrowDown as We, Close as be, StopCircleOutlined as Me, ArrowUpwardOutlined as He, ThumbUp as Oe, ThumbUpOutlined as Pe, ThumbDown as Ve, ThumbDownOutlined as Ue, ArrowRight as ye, Error as je, CheckCircle as Ne, ChevronRight as Ge } from "@mui/icons-material";
5
6
  import { keyframes as N } from "@mui/material/styles";
6
- import { useRef as be, forwardRef as ce, useState as ie, useEffect as Ge } from "react";
7
7
  import { C as Xe } from "./copy-button-DGL1tyli.js";
8
8
  import { a as Ye } from "./index-BnyeR7Qx.js";
9
- const q = 768, Mt = 300, Ht = 100, Ke = 126, ye = se(_)(() => ({
9
+ const J = 768, Mt = 300, Ht = 100, Ke = 126;
10
+ function Ot(t, e = {}) {
11
+ const {
12
+ speed: o = 500,
13
+ skipAnimation: r = !1
14
+ } = e, l = se(r), [n, u] = Q(() => l.current ? t.length : 0);
15
+ return ge(() => {
16
+ if (l.current) {
17
+ u(t.length);
18
+ return;
19
+ }
20
+ if (n >= t.length)
21
+ return;
22
+ const s = 1e3 / o;
23
+ let i, c = null;
24
+ function d(g) {
25
+ c ??= g;
26
+ const m = g - c, p = Math.floor(m / s);
27
+ p > 0 && (c = g, u((f) => Math.min(f + p, t.length))), i = requestAnimationFrame(d);
28
+ }
29
+ return i = requestAnimationFrame(d), () => cancelAnimationFrame(i);
30
+ }, [t, n, o]), {
31
+ displayedText: t.slice(0, n),
32
+ isTyping: n < t.length
33
+ };
34
+ }
35
+ const Ce = ce(_)(() => ({
10
36
  whiteSpace: "pre-wrap",
11
37
  overflowX: "clip",
12
38
  overflowWrap: "break-word",
13
39
  maxWidth: "100%"
14
40
  }));
15
- ye.displayName = "ChatMessageOverflow";
41
+ Ce.displayName = "ChatMessageOverflow";
16
42
  const H = {
17
43
  agentMessageContainer: (t) => ({
18
44
  width: "100%",
@@ -205,7 +231,7 @@ const H = {
205
231
  }
206
232
  }
207
233
  };
208
- function Ot(t) {
234
+ function Pt(t) {
209
235
  const e = z(11), {
210
236
  children: o,
211
237
  muted: r,
@@ -222,14 +248,14 @@ function Ot(t) {
222
248
  ...n
223
249
  }, e[2] = n, e[3] = i, e[4] = c) : c = e[4];
224
250
  let d;
225
- e[5] !== o || e[6] !== c ? (d = /* @__PURE__ */ a(ye, { className: "PsChat--user-message-inner", variant: "body2", sx: c, children: o }), e[5] = o, e[6] = c, e[7] = d) : d = e[7];
226
- let x;
227
- return e[8] !== s || e[9] !== d ? (x = /* @__PURE__ */ T(y, { className: "PsChat--user-message", sx: H.userMessageContainer, children: [
251
+ e[5] !== o || e[6] !== c ? (d = /* @__PURE__ */ a(Ce, { className: "PsChat--user-message-inner", variant: "body2", sx: c, children: o }), e[5] = o, e[6] = c, e[7] = d) : d = e[7];
252
+ let g;
253
+ return e[8] !== s || e[9] !== d ? (g = /* @__PURE__ */ T(y, { className: "PsChat--user-message", sx: H.userMessageContainer, children: [
228
254
  s,
229
255
  d
230
- ] }), e[8] = s, e[9] = d, e[10] = x) : x = e[10], x;
256
+ ] }), e[8] = s, e[9] = d, e[10] = g) : g = e[10], g;
231
257
  }
232
- const Je = (t) => {
258
+ const qe = (t) => {
233
259
  const e = z(6);
234
260
  let o, r;
235
261
  e[0] !== t ? ({
@@ -239,11 +265,11 @@ const Je = (t) => {
239
265
  const l = `PsChat--agent-message ${o ?? ""}`;
240
266
  let n;
241
267
  return e[3] !== r || e[4] !== l ? (n = /* @__PURE__ */ a(y, { className: l, ...r }), e[3] = r, e[4] = l, e[5] = n) : n = e[5], n;
242
- }, qe = se(Je)(({
268
+ }, Je = ce(qe)(({
243
269
  theme: t
244
270
  }) => H.agentMessageContainer(t));
245
- qe.displayName = "ChatAgentMessage";
246
- function Pt(t) {
271
+ Je.displayName = "ChatAgentMessage";
272
+ function Vt(t) {
247
273
  const e = z(13), {
248
274
  errors: o,
249
275
  icon: r,
@@ -256,7 +282,7 @@ function Pt(t) {
256
282
  ...n
257
283
  }, e[0] = n, e[1] = u) : u = e[1];
258
284
  let s;
259
- e[2] !== r ? (s = r ?? /* @__PURE__ */ a(ge, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
285
+ e[2] !== r ? (s = r ?? /* @__PURE__ */ a(xe, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
260
286
  let i;
261
287
  e[4] !== o ? (i = o.map(Ze), e[4] = o, e[5] = i) : i = e[5];
262
288
  let c;
@@ -271,7 +297,7 @@ function Pt(t) {
271
297
  function Qe(t, e) {
272
298
  return /* @__PURE__ */ T("span", { children: [
273
299
  e > 0 && /* @__PURE__ */ a(_, { component: "span", variant: "body2", sx: H.errorActionSeparator, children: "·" }),
274
- /* @__PURE__ */ a(ke, { component: "button", variant: "body2", onClick: t.onClick, sx: H.errorAction, children: t.label })
300
+ /* @__PURE__ */ a(Se, { component: "button", variant: "body2", onClick: t.onClick, sx: H.errorAction, children: t.label })
275
301
  ] }, e);
276
302
  }
277
303
  function Ze(t, e) {
@@ -299,9 +325,9 @@ function et(t) {
299
325
  let i;
300
326
  e[10] !== r ? (i = /* @__PURE__ */ a(_, { color: "inherit", variant: "body2", children: r }), e[10] = r, e[11] = i) : i = e[11];
301
327
  let c;
302
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Be, {}), e[12] = c) : c = e[12];
328
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Fe, {}), e[12] = c) : c = e[12];
303
329
  let d;
304
- return e[13] !== l || e[14] !== s || e[15] !== i ? (d = /* @__PURE__ */ T(Se, { sx: s, ...l, children: [
330
+ return e[13] !== l || e[14] !== s || e[15] !== i ? (d = /* @__PURE__ */ T(_e, { sx: s, ...l, children: [
305
331
  i,
306
332
  c
307
333
  ] }), e[13] = l, e[14] = s, e[15] = i, e[16] = d) : d = e[16], d;
@@ -619,7 +645,7 @@ function rt(t) {
619
645
  let c;
620
646
  return e[3] !== n || e[4] !== i ? (c = /* @__PURE__ */ a(_, { variant: "body2", sx: i, children: n }), e[3] = n, e[4] = i, e[5] = c) : c = e[5], c;
621
647
  }
622
- function Vt(t) {
648
+ function Ut(t) {
623
649
  const e = z(16), {
624
650
  size: o,
625
651
  labels: r,
@@ -635,25 +661,25 @@ function Vt(t) {
635
661
  height: n,
636
662
  ...l
637
663
  }, e[2] = n, e[3] = l, e[4] = c) : c = e[4];
638
- const d = n * 0.75, x = n * 0.75;
639
- let g;
640
- e[5] !== d || e[6] !== x ? (g = /* @__PURE__ */ a(y, { component: "span", sx: {
664
+ const d = n * 0.75, g = n * 0.75;
665
+ let m;
666
+ e[5] !== d || e[6] !== g ? (m = /* @__PURE__ */ a(y, { component: "span", sx: {
641
667
  ...w.loaderOuterCircle,
642
668
  width: d,
643
- height: x
644
- } }), e[5] = d, e[6] = x, e[7] = g) : g = e[7];
645
- const f = n * 0.32, m = n * 0.32;
646
- let h;
647
- e[8] !== m || e[9] !== f ? (h = /* @__PURE__ */ a(y, { component: "span", sx: {
669
+ height: g
670
+ } }), e[5] = d, e[6] = g, e[7] = m) : m = e[7];
671
+ const p = n * 0.32, f = n * 0.32;
672
+ let x;
673
+ e[8] !== f || e[9] !== p ? (x = /* @__PURE__ */ a(y, { component: "span", sx: {
648
674
  ...w.loaderInnerCircle,
649
- width: f,
650
- height: m
651
- } }), e[8] = m, e[9] = f, e[10] = h) : h = e[10];
652
- let p;
653
- return e[11] !== h || e[12] !== i || e[13] !== c || e[14] !== g ? (p = /* @__PURE__ */ T(y, { role: "status", "aria-busy": !0, "aria-label": i, sx: c, children: [
654
- g,
655
- h
656
- ] }), e[11] = h, e[12] = i, e[13] = c, e[14] = g, e[15] = p) : p = e[15], p;
675
+ width: p,
676
+ height: f
677
+ } }), e[8] = f, e[9] = p, e[10] = x) : x = e[10];
678
+ let h;
679
+ return e[11] !== x || e[12] !== i || e[13] !== c || e[14] !== m ? (h = /* @__PURE__ */ T(y, { role: "status", "aria-busy": !0, "aria-label": i, sx: c, children: [
680
+ m,
681
+ x
682
+ ] }), e[11] = x, e[12] = i, e[13] = c, e[14] = m, e[15] = h) : h = e[15], h;
657
683
  }
658
684
  const lt = N`
659
685
  0% { border-top-color: transparent; border-bottom-color: var(--chat-border-color) }
@@ -698,11 +724,11 @@ const lt = N`
698
724
  footerCorner: {
699
725
  position: "absolute",
700
726
  bottom: "38px",
701
- right: `max(16px, calc(50% - ${q / 2}px + 6px))`,
727
+ right: `max(16px, calc(50% - ${J / 2}px + 6px))`,
702
728
  margin: "0 auto"
703
729
  },
704
730
  footer: {
705
- maxWidth: q,
731
+ maxWidth: J,
706
732
  margin: "0 auto",
707
733
  "& textarea": {
708
734
  resize: "none",
@@ -721,7 +747,7 @@ const lt = N`
721
747
  flex: 1,
722
748
  position: "relative",
723
749
  mx: "auto",
724
- maxWidth: q,
750
+ maxWidth: J,
725
751
  width: "100%",
726
752
  maxHeight: "100%",
727
753
  pt: 1,
@@ -769,7 +795,7 @@ const lt = N`
769
795
  spacing: t
770
796
  }) => t(3),
771
797
  textAlign: "center",
772
- maxWidth: q,
798
+ maxWidth: J,
773
799
  margin: "0 auto"
774
800
  },
775
801
  starterItems: {
@@ -783,7 +809,7 @@ const lt = N`
783
809
  gridTemplateColumns: "repeat(2, 1fr)"
784
810
  }
785
811
  };
786
- function Ut(t) {
812
+ function jt(t) {
787
813
  const e = z(12), {
788
814
  children: o,
789
815
  labels: r,
@@ -791,7 +817,7 @@ function Ut(t) {
791
817
  } = t;
792
818
  let n;
793
819
  e[0] !== r ? (n = r === void 0 ? {} : r, e[0] = r, e[1] = n) : n = e[1];
794
- const u = n, s = be(null);
820
+ const u = n, s = se(null);
795
821
  let i;
796
822
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = () => {
797
823
  s.current?.scrollTo({
@@ -805,18 +831,18 @@ function Ut(t) {
805
831
  ...W.content,
806
832
  ...l
807
833
  }, e[3] = l, e[4] = d) : d = e[4];
808
- const x = u.jumpToLatest ?? "Jump to latest";
809
- let g;
810
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(Fe, {}), e[5] = g) : g = e[5];
811
- let f;
812
- e[6] !== x ? (f = /* @__PURE__ */ a(y, { sx: W.jumpToLatestWrapper, children: /* @__PURE__ */ a(_e, { size: "small", onClick: c, "aria-label": x, sx: W.jumpToLatest, children: g }) }), e[6] = x, e[7] = f) : f = e[7];
834
+ const g = u.jumpToLatest ?? "Jump to latest";
813
835
  let m;
814
- return e[8] !== o || e[9] !== d || e[10] !== f ? (m = /* @__PURE__ */ T(y, { ref: s, sx: d, children: [
836
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(We, {}), e[5] = m) : m = e[5];
837
+ let p;
838
+ e[6] !== g ? (p = /* @__PURE__ */ a(y, { sx: W.jumpToLatestWrapper, children: /* @__PURE__ */ a(Ae, { size: "small", onClick: c, "aria-label": g, sx: W.jumpToLatest, children: m }) }), e[6] = g, e[7] = p) : p = e[7];
839
+ let f;
840
+ return e[8] !== o || e[9] !== d || e[10] !== p ? (f = /* @__PURE__ */ T(y, { ref: s, sx: d, children: [
815
841
  o,
816
- f
817
- ] }), e[8] = o, e[9] = d, e[10] = f, e[11] = m) : m = e[11], m;
842
+ p
843
+ ] }), e[8] = o, e[9] = d, e[10] = p, e[11] = f) : f = e[11], f;
818
844
  }
819
- function jt(t) {
845
+ function Nt(t) {
820
846
  const e = z(14), {
821
847
  leftSlot: o,
822
848
  title: r,
@@ -832,21 +858,21 @@ function jt(t) {
832
858
  let i;
833
859
  e[2] !== r ? (i = /* @__PURE__ */ a(_, { variant: "subtitle2", sx: W.headerTitle, children: r }), e[2] = r, e[3] = i) : i = e[3];
834
860
  let c;
835
- e[4] !== n ? (c = n && /* @__PURE__ */ a(O, { size: "medium", onClick: n, "aria-label": "Close", children: /* @__PURE__ */ a(he, {}) }), e[4] = n, e[5] = c) : c = e[5];
861
+ e[4] !== n ? (c = n && /* @__PURE__ */ a(O, { size: "medium", onClick: n, "aria-label": "Close", children: /* @__PURE__ */ a(be, {}) }), e[4] = n, e[5] = c) : c = e[5];
836
862
  let d;
837
863
  e[6] !== l || e[7] !== c ? (d = /* @__PURE__ */ T(y, { sx: W.headerActions, children: [
838
864
  l,
839
865
  c
840
866
  ] }), e[6] = l, e[7] = c, e[8] = d) : d = e[8];
841
- let x;
842
- return e[9] !== o || e[10] !== s || e[11] !== i || e[12] !== d ? (x = /* @__PURE__ */ T(y, { sx: s, children: [
867
+ let g;
868
+ return e[9] !== o || e[10] !== s || e[11] !== i || e[12] !== d ? (g = /* @__PURE__ */ T(y, { sx: s, children: [
843
869
  o,
844
870
  i,
845
871
  d
846
- ] }), e[9] = o, e[10] = s, e[11] = i, e[12] = d, e[13] = x) : x = e[13], x;
872
+ ] }), e[9] = o, e[10] = s, e[11] = i, e[12] = d, e[13] = g) : g = e[13], g;
847
873
  }
848
874
  const st = "Responses are AI generated. Please verify key information.";
849
- function Nt(t) {
875
+ function Gt(t) {
850
876
  const e = z(35), {
851
877
  value: o,
852
878
  onChange: r,
@@ -857,45 +883,45 @@ function Nt(t) {
857
883
  placeholder: i,
858
884
  labels: c,
859
885
  caption: d,
860
- sx: x
861
- } = t, g = u === void 0 ? !1 : u, f = s === void 0 ? !1 : s, m = i === void 0 ? "Type a message..." : i;
862
- let h;
863
- e[0] !== c ? (h = c === void 0 ? {} : c, e[0] = c, e[1] = h) : h = e[1];
864
- const p = h, b = d === void 0 ? st : d;
886
+ sx: g
887
+ } = t, m = u === void 0 ? !1 : u, p = s === void 0 ? !1 : s, f = i === void 0 ? "Type a message..." : i;
888
+ let x;
889
+ e[0] !== c ? (x = c === void 0 ? {} : c, e[0] = c, e[1] = x) : x = e[1];
890
+ const h = x, b = d === void 0 ? st : d;
865
891
  let v;
866
- e[2] !== f || e[3] !== g || e[4] !== o ? (v = o.trim() && !f && !g, e[2] = f, e[3] = g, e[4] = o, e[5] = v) : v = e[5];
892
+ e[2] !== p || e[3] !== m || e[4] !== o ? (v = o.trim() && !p && !m, e[2] = p, e[3] = m, e[4] = o, e[5] = v) : v = e[5];
867
893
  const C = v;
868
894
  let k;
869
895
  e[6] !== C || e[7] !== l ? (k = (M) => {
870
896
  M.key === "Enter" && !M.shiftKey && (M.preventDefault(), C && l());
871
897
  }, e[6] = C, e[7] = l, e[8] = k) : k = e[8];
872
898
  const S = k;
873
- let A;
874
- e[9] !== x ? (A = {
899
+ let $;
900
+ e[9] !== g ? ($ = {
875
901
  ...W.footerWrapper,
876
- ...x
877
- }, e[9] = x, e[10] = A) : A = e[10];
902
+ ...g
903
+ }, e[9] = g, e[10] = $) : $ = e[10];
878
904
  let I;
879
905
  e[11] !== r ? (I = (M) => r(M.target.value), e[11] = r, e[12] = I) : I = e[12];
880
- const R = f || g;
881
- let $;
882
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
906
+ const R = p || m;
907
+ let A;
908
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
883
909
  minHeight: 0
884
- }, e[13] = $) : $ = e[13];
910
+ }, e[13] = A) : A = e[13];
885
911
  let E;
886
- e[14] !== S || e[15] !== m || e[16] !== I || e[17] !== R || e[18] !== o ? (E = /* @__PURE__ */ a($e, { multiline: !0, value: o, onChange: I, onKeyDown: S, placeholder: m, disabled: R, sx: W.footer, style: $, fullWidth: !0, size: "small" }), e[14] = S, e[15] = m, e[16] = I, e[17] = R, e[18] = o, e[19] = E) : E = e[19];
912
+ e[14] !== S || e[15] !== f || e[16] !== I || e[17] !== R || e[18] !== o ? (E = /* @__PURE__ */ a($e, { multiline: !0, value: o, onChange: I, onKeyDown: S, placeholder: f, disabled: R, sx: W.footer, style: A, fullWidth: !0, size: "small" }), e[14] = S, e[15] = f, e[16] = I, e[17] = R, e[18] = o, e[19] = E) : E = e[19];
887
913
  let B;
888
- e[20] !== C || e[21] !== f || e[22] !== g || e[23] !== p.send || e[24] !== p.stop || e[25] !== l || e[26] !== n ? (B = /* @__PURE__ */ a(y, { sx: W.footerCorner, children: g && n ? /* @__PURE__ */ a(O, { size: "small", onClick: n, disabled: f, "aria-label": p.stop ?? "Stop", children: /* @__PURE__ */ a(We, {}) }) : /* @__PURE__ */ a(O, { size: "small", variant: "contained", onClick: l, disabled: !C, "aria-label": p.send ?? "Send", children: /* @__PURE__ */ a(Me, {}) }) }), e[20] = C, e[21] = f, e[22] = g, e[23] = p.send, e[24] = p.stop, e[25] = l, e[26] = n, e[27] = B) : B = e[27];
914
+ e[20] !== C || e[21] !== p || e[22] !== m || e[23] !== h.send || e[24] !== h.stop || e[25] !== l || e[26] !== n ? (B = /* @__PURE__ */ a(y, { sx: W.footerCorner, children: m && n ? /* @__PURE__ */ a(O, { size: "small", onClick: n, disabled: p, "aria-label": h.stop ?? "Stop", children: /* @__PURE__ */ a(Me, {}) }) : /* @__PURE__ */ a(O, { size: "small", variant: "contained", onClick: l, disabled: !C, "aria-label": h.send ?? "Send", children: /* @__PURE__ */ a(He, {}) }) }), e[20] = C, e[21] = p, e[22] = m, e[23] = h.send, e[24] = h.stop, e[25] = l, e[26] = n, e[27] = B) : B = e[27];
889
915
  let L;
890
- e[28] !== b ? (L = b ? /* @__PURE__ */ a(Ae, { sx: W.footerCaption, children: b }) : null, e[28] = b, e[29] = L) : L = e[29];
916
+ e[28] !== b ? (L = b ? /* @__PURE__ */ a(Ie, { sx: W.footerCaption, children: b }) : null, e[28] = b, e[29] = L) : L = e[29];
891
917
  let D;
892
- return e[30] !== E || e[31] !== B || e[32] !== L || e[33] !== A ? (D = /* @__PURE__ */ T(Ie, { fullWidth: !0, sx: A, children: [
918
+ return e[30] !== E || e[31] !== B || e[32] !== L || e[33] !== $ ? (D = /* @__PURE__ */ T(Re, { fullWidth: !0, sx: $, children: [
893
919
  E,
894
920
  B,
895
921
  L
896
- ] }), e[30] = E, e[31] = B, e[32] = L, e[33] = A, e[34] = D) : D = e[34], D;
922
+ ] }), e[30] = E, e[31] = B, e[32] = L, e[33] = $, e[34] = D) : D = e[34], D;
897
923
  }
898
- const de = [
924
+ const ue = [
899
925
  "#C9DB7440",
900
926
  // pastel green
901
927
  "#FE88B140",
@@ -905,7 +931,7 @@ const de = [
905
931
  "#F6CF7140"
906
932
  // pastel yellow
907
933
  ];
908
- function Gt(t) {
934
+ function Xt(t) {
909
935
  const e = z(40), {
910
936
  icon: o,
911
937
  title: r,
@@ -915,53 +941,53 @@ function Gt(t) {
915
941
  onSelect: s,
916
942
  sx: i
917
943
  } = t, c = u === void 0 ? "small" : u;
918
- let d, x, g, f, m, h, p, b;
944
+ let d, g, m, p, f, x, h, b;
919
945
  if (e[0] !== l || e[1] !== o || e[2] !== n || e[3] !== s || e[4] !== c || e[5] !== i || e[6] !== r) {
920
946
  const k = n.map(at);
921
- x = y;
947
+ g = y;
922
948
  const S = c === "small" ? 1 : 2;
923
- e[15] !== i || e[16] !== S ? (m = {
949
+ e[15] !== i || e[16] !== S ? (f = {
924
950
  ...W.starter,
925
951
  gap: S,
926
952
  ...i
927
- }, e[15] = i, e[16] = S, e[17] = m) : m = e[17], h = o, e[18] !== c || e[19] !== r ? (p = r && /* @__PURE__ */ a(_, { variant: c === "small" ? "h6" : "h5", children: r }), e[18] = c, e[19] = r, e[20] = p) : p = e[20], e[21] !== l || e[22] !== c ? (b = l && /* @__PURE__ */ a(_, { variant: c === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = c, e[23] = b) : b = e[23], d = y;
928
- const A = c === "small" ? 1 : 2, I = n.length > 2 ? W.starterItemsTwoCol : void 0;
929
- e[24] !== I || e[25] !== A ? (g = {
953
+ }, e[15] = i, e[16] = S, e[17] = f) : f = e[17], x = o, e[18] !== c || e[19] !== r ? (h = r && /* @__PURE__ */ a(_, { variant: c === "small" ? "h6" : "h5", children: r }), e[18] = c, e[19] = r, e[20] = h) : h = e[20], e[21] !== l || e[22] !== c ? (b = l && /* @__PURE__ */ a(_, { variant: c === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = c, e[23] = b) : b = e[23], d = y;
954
+ const $ = c === "small" ? 1 : 2, I = n.length > 2 ? W.starterItemsTwoCol : void 0;
955
+ e[24] !== I || e[25] !== $ ? (m = {
930
956
  ...W.starterItems,
931
- gap: A,
957
+ gap: $,
932
958
  ...I
933
- }, e[24] = I, e[25] = A, e[26] = g) : g = e[26];
959
+ }, e[24] = I, e[25] = $, e[26] = m) : m = e[26];
934
960
  let R;
935
- e[27] !== s ? (R = ($) => /* @__PURE__ */ a(et, { label: $.label, onClick: () => s?.($.label), color: $.color }, $.label), e[27] = s, e[28] = R) : R = e[28], f = k.map(R), e[0] = l, e[1] = o, e[2] = n, e[3] = s, e[4] = c, e[5] = i, e[6] = r, e[7] = d, e[8] = x, e[9] = g, e[10] = f, e[11] = m, e[12] = h, e[13] = p, e[14] = b;
961
+ e[27] !== s ? (R = (A) => /* @__PURE__ */ a(et, { label: A.label, onClick: () => s?.(A.label), color: A.color }, A.label), e[27] = s, e[28] = R) : R = e[28], p = k.map(R), e[0] = l, e[1] = o, e[2] = n, e[3] = s, e[4] = c, e[5] = i, e[6] = r, e[7] = d, e[8] = g, e[9] = m, e[10] = p, e[11] = f, e[12] = x, e[13] = h, e[14] = b;
936
962
  } else
937
- d = e[7], x = e[8], g = e[9], f = e[10], m = e[11], h = e[12], p = e[13], b = e[14];
963
+ d = e[7], g = e[8], m = e[9], p = e[10], f = e[11], x = e[12], h = e[13], b = e[14];
938
964
  let v;
939
- e[29] !== d || e[30] !== g || e[31] !== f ? (v = /* @__PURE__ */ a(d, { sx: g, children: f }), e[29] = d, e[30] = g, e[31] = f, e[32] = v) : v = e[32];
965
+ e[29] !== d || e[30] !== m || e[31] !== p ? (v = /* @__PURE__ */ a(d, { sx: m, children: p }), e[29] = d, e[30] = m, e[31] = p, e[32] = v) : v = e[32];
940
966
  let C;
941
- return e[33] !== x || e[34] !== m || e[35] !== h || e[36] !== p || e[37] !== b || e[38] !== v ? (C = /* @__PURE__ */ T(x, { sx: m, children: [
967
+ return e[33] !== g || e[34] !== f || e[35] !== x || e[36] !== h || e[37] !== b || e[38] !== v ? (C = /* @__PURE__ */ T(g, { sx: f, children: [
968
+ x,
942
969
  h,
943
- p,
944
970
  b,
945
971
  v
946
- ] }), e[33] = x, e[34] = m, e[35] = h, e[36] = p, e[37] = b, e[38] = v, e[39] = C) : C = e[39], C;
972
+ ] }), e[33] = g, e[34] = f, e[35] = x, e[36] = h, e[37] = b, e[38] = v, e[39] = C) : C = e[39], C;
947
973
  }
948
974
  function at(t, e) {
949
975
  return typeof t == "string" ? {
950
976
  label: t,
951
- color: de[e]
977
+ color: ue[e]
952
978
  } : {
953
979
  label: t.label,
954
- color: t.color ?? de[e]
980
+ color: t.color ?? ue[e]
955
981
  };
956
982
  }
957
- const Xt = se(y)(({
983
+ const Yt = ce(y)(({
958
984
  theme: t
959
985
  }) => ({
960
986
  display: "flex",
961
987
  alignItems: "center",
962
988
  gap: t.spacing(0.5)
963
989
  }));
964
- function Yt(t) {
990
+ function Kt(t) {
965
991
  const e = z(25), {
966
992
  rating: o,
967
993
  onRatingChange: r,
@@ -974,21 +1000,21 @@ function Yt(t) {
974
1000
  e[2] !== r || e[3] !== o ? (s = () => r?.(o === "up" ? null : "up"), e[2] = r, e[3] = o, e[4] = s) : s = e[4];
975
1001
  const i = u.thumbUp ?? "Thumbs up", c = o === "up" ? "primary" : void 0;
976
1002
  let d;
977
- e[5] !== o ? (d = o === "up" ? /* @__PURE__ */ a(He, { fontSize: "small" }) : /* @__PURE__ */ a(Oe, { fontSize: "small" }), e[5] = o, e[6] = d) : d = e[6];
978
- let x;
979
- e[7] !== s || e[8] !== i || e[9] !== c || e[10] !== d ? (x = /* @__PURE__ */ a(O, { size: "small", onClick: s, "aria-label": i, color: c, children: d }), e[7] = s, e[8] = i, e[9] = c, e[10] = d, e[11] = x) : x = e[11];
1003
+ e[5] !== o ? (d = o === "up" ? /* @__PURE__ */ a(Oe, { fontSize: "small" }) : /* @__PURE__ */ a(Pe, { fontSize: "small" }), e[5] = o, e[6] = d) : d = e[6];
980
1004
  let g;
981
- e[12] !== r || e[13] !== o ? (g = () => r?.(o === "down" ? null : "down"), e[12] = r, e[13] = o, e[14] = g) : g = e[14];
982
- const f = u.thumbDown ?? "Thumbs down", m = o === "down" ? "primary" : void 0;
1005
+ e[7] !== s || e[8] !== i || e[9] !== c || e[10] !== d ? (g = /* @__PURE__ */ a(O, { size: "small", onClick: s, "aria-label": i, color: c, children: d }), e[7] = s, e[8] = i, e[9] = c, e[10] = d, e[11] = g) : g = e[11];
1006
+ let m;
1007
+ e[12] !== r || e[13] !== o ? (m = () => r?.(o === "down" ? null : "down"), e[12] = r, e[13] = o, e[14] = m) : m = e[14];
1008
+ const p = u.thumbDown ?? "Thumbs down", f = o === "down" ? "primary" : void 0;
1009
+ let x;
1010
+ e[15] !== o ? (x = o === "down" ? /* @__PURE__ */ a(Ve, { fontSize: "small" }) : /* @__PURE__ */ a(Ue, { fontSize: "small" }), e[15] = o, e[16] = x) : x = e[16];
983
1011
  let h;
984
- e[15] !== o ? (h = o === "down" ? /* @__PURE__ */ a(Pe, { fontSize: "small" }) : /* @__PURE__ */ a(Ve, { fontSize: "small" }), e[15] = o, e[16] = h) : h = e[16];
985
- let p;
986
- e[17] !== m || e[18] !== h || e[19] !== g || e[20] !== f ? (p = /* @__PURE__ */ a(O, { size: "small", onClick: g, "aria-label": f, color: m, children: h }), e[17] = m, e[18] = h, e[19] = g, e[20] = f, e[21] = p) : p = e[21];
1012
+ e[17] !== f || e[18] !== x || e[19] !== m || e[20] !== p ? (h = /* @__PURE__ */ a(O, { size: "small", onClick: m, "aria-label": p, color: f, children: x }), e[17] = f, e[18] = x, e[19] = m, e[20] = p, e[21] = h) : h = e[21];
987
1013
  let b;
988
- return e[22] !== p || e[23] !== x ? (b = /* @__PURE__ */ T(Te, { children: [
989
- x,
990
- p
991
- ] }), e[22] = p, e[23] = x, e[24] = b) : b = e[24], b;
1014
+ return e[22] !== h || e[23] !== g ? (b = /* @__PURE__ */ T(ke, { children: [
1015
+ g,
1016
+ h
1017
+ ] }), e[22] = h, e[23] = g, e[24] = b) : b = e[24], b;
992
1018
  }
993
1019
  const ct = /^-?\d/;
994
1020
  function dt(t) {
@@ -1050,44 +1076,44 @@ function ut(t) {
1050
1076
  }, e[3] = c) : c = e[3];
1051
1077
  let d;
1052
1078
  e[4] !== n ? (d = /* @__PURE__ */ a(Xe, { copyText: n, "aria-label": "Copy content" }), e[4] = n, e[5] = d) : d = e[5];
1053
- let x;
1054
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ a(he, {}), e[6] = x) : x = e[6];
1055
1079
  let g;
1056
- e[7] !== r ? (g = /* @__PURE__ */ a(O, { onClick: r, "aria-label": "close", children: x }), e[7] = r, e[8] = g) : g = e[8];
1057
- let f;
1058
- e[9] !== d || e[10] !== g ? (f = /* @__PURE__ */ T(y, { sx: c, children: [
1059
- d,
1060
- g
1061
- ] }), e[9] = d, e[10] = g, e[11] = f) : f = e[11];
1080
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(be, {}), e[6] = g) : g = e[6];
1062
1081
  let m;
1063
- e[12] !== f || e[13] !== l ? (m = /* @__PURE__ */ T(Re, { sx: w.fullViewTitle, children: [
1082
+ e[7] !== r ? (m = /* @__PURE__ */ a(O, { onClick: r, "aria-label": "close", children: g }), e[7] = r, e[8] = m) : m = e[8];
1083
+ let p;
1084
+ e[9] !== d || e[10] !== m ? (p = /* @__PURE__ */ T(y, { sx: c, children: [
1085
+ d,
1086
+ m
1087
+ ] }), e[9] = d, e[10] = m, e[11] = p) : p = e[11];
1088
+ let f;
1089
+ e[12] !== p || e[13] !== l ? (f = /* @__PURE__ */ T(Ee, { sx: w.fullViewTitle, children: [
1064
1090
  l,
1065
- f
1066
- ] }), e[12] = f, e[13] = l, e[14] = m) : m = e[14];
1091
+ p
1092
+ ] }), e[12] = p, e[13] = l, e[14] = f) : f = e[14];
1093
+ let x;
1094
+ e[15] !== s ? (x = s.map(pt), e[15] = s, e[16] = x) : x = e[16];
1067
1095
  let h;
1068
- e[15] !== s ? (h = s.map(ft), e[15] = s, e[16] = h) : h = e[16];
1069
- let p;
1070
- e[17] !== h ? (p = /* @__PURE__ */ a(Ee, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ a(y, { component: "pre", sx: w.fullViewPre, children: h }) }), e[17] = h, e[18] = p) : p = e[18];
1096
+ e[17] !== x ? (h = /* @__PURE__ */ a(Le, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ a(y, { component: "pre", sx: w.fullViewPre, children: x }) }), e[17] = x, e[18] = h) : h = e[18];
1071
1097
  let b;
1072
- return e[19] !== r || e[20] !== o || e[21] !== p || e[22] !== m ? (b = /* @__PURE__ */ T(Le, { open: o, onClose: r, sx: w.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
1073
- m,
1074
- p
1075
- ] }), e[19] = r, e[20] = o, e[21] = p, e[22] = m, e[23] = b) : b = e[23], b;
1098
+ return e[19] !== r || e[20] !== o || e[21] !== h || e[22] !== f ? (b = /* @__PURE__ */ T(De, { open: o, onClose: r, sx: w.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
1099
+ f,
1100
+ h
1101
+ ] }), e[19] = r, e[20] = o, e[21] = h, e[22] = f, e[23] = b) : b = e[23], b;
1076
1102
  }
1077
- function ft(t, e) {
1103
+ function pt(t, e) {
1078
1104
  return /* @__PURE__ */ T(y, { component: "span", sx: w.fullViewLine, children: [
1079
- t.map(pt),
1105
+ t.map(ft),
1080
1106
  `
1081
1107
  `
1082
1108
  ] }, e);
1083
1109
  }
1084
- function pt(t, e) {
1110
+ function ft(t, e) {
1085
1111
  return typeof t == "string" ? t : /* @__PURE__ */ a(y, { component: "span", sx: w[`syntaxToken_${t.type}`], children: t.value }, e);
1086
1112
  }
1087
1113
  function mt(t) {
1088
1114
  return dt(t);
1089
1115
  }
1090
- const gt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1116
+ const ht = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1091
1117
  "path",
1092
1118
  {
1093
1119
  fill: "currentColor",
@@ -1095,10 +1121,10 @@ const gt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg",
1095
1121
  d: "M12.01 11.83 15.18 15l1.41-1.41L12.01 9l-4.59 4.59L8.84 15z",
1096
1122
  clipRule: "evenodd"
1097
1123
  }
1098
- ) }), ht = ae(gt(), "ArrowUp");
1124
+ ) }), gt = de(ht(), "ArrowUp");
1099
1125
  function xt({ width: t, height: e, sx: o, ...r }, l) {
1100
1126
  return /* @__PURE__ */ a(
1101
- ht,
1127
+ gt,
1102
1128
  {
1103
1129
  ref: l,
1104
1130
  viewBox: "0 0 24 24",
@@ -1111,7 +1137,7 @@ function xt({ width: t, height: e, sx: o, ...r }, l) {
1111
1137
  }
1112
1138
  );
1113
1139
  }
1114
- const bt = ce(xt);
1140
+ const bt = ae(xt);
1115
1141
  bt.displayName = "ArrowUp";
1116
1142
  const yt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1117
1143
  "path",
@@ -1121,7 +1147,7 @@ const yt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg",
1121
1147
  d: "m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",
1122
1148
  clipRule: "evenodd"
1123
1149
  }
1124
- ) }), Ct = ae(yt(), "CloseDiagonallyRight");
1150
+ ) }), Ct = de(yt(), "CloseDiagonallyRight");
1125
1151
  function vt({ width: t, height: e, sx: o, ...r }, l) {
1126
1152
  return /* @__PURE__ */ a(
1127
1153
  Ct,
@@ -1137,7 +1163,7 @@ function vt({ width: t, height: e, sx: o, ...r }, l) {
1137
1163
  }
1138
1164
  );
1139
1165
  }
1140
- const wt = ce(vt);
1166
+ const wt = ae(vt);
1141
1167
  wt.displayName = "CloseDiagonallyRight";
1142
1168
  const Tt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1143
1169
  "path",
@@ -1147,7 +1173,7 @@ const Tt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg",
1147
1173
  d: "m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",
1148
1174
  clipRule: "evenodd"
1149
1175
  }
1150
- ) }), kt = ae(Tt(), "OpenDiagonallyRight");
1176
+ ) }), kt = de(Tt(), "OpenDiagonallyRight");
1151
1177
  function St({ width: t, height: e, sx: o, ...r }, l) {
1152
1178
  return /* @__PURE__ */ a(
1153
1179
  kt,
@@ -1163,9 +1189,9 @@ function St({ width: t, height: e, sx: o, ...r }, l) {
1163
1189
  }
1164
1190
  );
1165
1191
  }
1166
- const Ce = ce(St);
1167
- Ce.displayName = "OpenDiagonallyRight";
1168
- function ue(t) {
1192
+ const ve = ae(St);
1193
+ ve.displayName = "OpenDiagonallyRight";
1194
+ function pe(t) {
1169
1195
  const e = z(28), {
1170
1196
  content: o,
1171
1197
  title: r,
@@ -1175,58 +1201,58 @@ function ue(t) {
1175
1201
  } = t, s = r === void 0 ? "" : r, i = l === void 0 ? !1 : l;
1176
1202
  let c;
1177
1203
  e[0] !== n ? (c = n === void 0 ? {} : n, e[0] = n, e[1] = c) : c = e[1];
1178
- const d = c, x = be(null), [g, f] = ie(!1), [m, h] = ie(!1);
1179
- let p;
1180
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1181
- const D = x.current;
1182
- D && f(D.scrollHeight > D.clientHeight);
1183
- }, e[2] = p) : p = e[2];
1184
- const b = p;
1204
+ const d = c, g = se(null), [m, p] = Q(!1), [f, x] = Q(!1);
1205
+ let h;
1206
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
1207
+ const D = g.current;
1208
+ D && p(D.scrollHeight > D.clientHeight);
1209
+ }, e[2] = h) : h = e[2];
1210
+ const b = h;
1185
1211
  let v;
1186
1212
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
1187
1213
  b();
1188
- const D = x.current;
1214
+ const D = g.current;
1189
1215
  if (!D)
1190
1216
  return;
1191
1217
  const M = new ResizeObserver(b);
1192
1218
  return M.observe(D), () => M.disconnect();
1193
1219
  }, e[3] = v) : v = e[3];
1194
1220
  let C;
1195
- e[4] !== o ? (C = [b, o], e[4] = o, e[5] = C) : C = e[5], Ge(v, C);
1221
+ e[4] !== o ? (C = [b, o], e[4] = o, e[5] = C) : C = e[5], ge(v, C);
1196
1222
  const k = d.fullView ?? "Full view";
1197
1223
  let S;
1198
1224
  e[6] !== u ? (S = {
1199
1225
  ...w.codeArea,
1200
1226
  ...u
1201
1227
  }, e[6] = u, e[7] = S) : S = e[7];
1202
- let A;
1203
- e[8] !== i ? (A = i ? w.codeAreaPreError : {}, e[8] = i, e[9] = A) : A = e[9];
1228
+ let $;
1229
+ e[8] !== i ? ($ = i ? w.codeAreaPreError : {}, e[8] = i, e[9] = $) : $ = e[9];
1204
1230
  let I;
1205
- e[10] !== A ? (I = {
1231
+ e[10] !== $ ? (I = {
1206
1232
  ...w.codeAreaPre,
1207
1233
  maxHeight: Ke,
1208
- ...A
1209
- }, e[10] = A, e[11] = I) : I = e[11];
1234
+ ...$
1235
+ }, e[10] = $, e[11] = I) : I = e[11];
1210
1236
  let R;
1211
- e[12] !== o || e[13] !== I ? (R = /* @__PURE__ */ a(y, { component: "pre", ref: x, sx: I, children: o }), e[12] = o, e[13] = I, e[14] = R) : R = e[14];
1212
- let $;
1213
- e[15] !== k || e[16] !== g ? ($ = g && /* @__PURE__ */ a(De, { title: k, children: /* @__PURE__ */ a(O, { size: "small", onClick: () => h(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ a(Ce, {}) }) }), e[15] = k, e[16] = g, e[17] = $) : $ = e[17];
1237
+ e[12] !== o || e[13] !== I ? (R = /* @__PURE__ */ a(y, { component: "pre", ref: g, sx: I, children: o }), e[12] = o, e[13] = I, e[14] = R) : R = e[14];
1238
+ let A;
1239
+ e[15] !== k || e[16] !== m ? (A = m && /* @__PURE__ */ a(ze, { title: k, children: /* @__PURE__ */ a(O, { size: "small", onClick: () => x(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ a(ve, {}) }) }), e[15] = k, e[16] = m, e[17] = A) : A = e[17];
1214
1240
  let E;
1215
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => h(!1), e[18] = E) : E = e[18];
1241
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => x(!1), e[18] = E) : E = e[18];
1216
1242
  let B;
1217
- e[19] !== o || e[20] !== m || e[21] !== s ? (B = /* @__PURE__ */ a(ut, { open: m, onClose: E, title: s, content: o }), e[19] = o, e[20] = m, e[21] = s, e[22] = B) : B = e[22];
1243
+ e[19] !== o || e[20] !== f || e[21] !== s ? (B = /* @__PURE__ */ a(ut, { open: f, onClose: E, title: s, content: o }), e[19] = o, e[20] = f, e[21] = s, e[22] = B) : B = e[22];
1218
1244
  let L;
1219
- return e[23] !== R || e[24] !== $ || e[25] !== B || e[26] !== S ? (L = /* @__PURE__ */ T(y, { sx: S, children: [
1245
+ return e[23] !== R || e[24] !== A || e[25] !== B || e[26] !== S ? (L = /* @__PURE__ */ T(y, { sx: S, children: [
1220
1246
  R,
1221
- $,
1247
+ A,
1222
1248
  B
1223
- ] }), e[23] = R, e[24] = $, e[25] = B, e[26] = S, e[27] = L) : L = e[27], L;
1249
+ ] }), e[23] = R, e[24] = A, e[25] = B, e[26] = S, e[27] = L) : L = e[27], L;
1224
1250
  }
1225
1251
  function fe(t) {
1226
1252
  const e = t.replace(/_/g, " ");
1227
1253
  return e.charAt(0).toUpperCase() + e.slice(1);
1228
1254
  }
1229
- function ve(t) {
1255
+ function we(t) {
1230
1256
  return t.status === "running" ? t.runningLabel ?? fe(t.name) : t.label ?? fe(t.name);
1231
1257
  }
1232
1258
  function _t(t) {
@@ -1243,7 +1269,7 @@ function _t(t) {
1243
1269
  gap: 0.5
1244
1270
  }, e[0] = l) : l = e[0];
1245
1271
  let n;
1246
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(je, { sx: {
1272
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(Ne, { sx: {
1247
1273
  fontSize: 12
1248
1274
  }, color: "success" }), e[1] = n) : n = e[1];
1249
1275
  const u = r?.success ?? "Success";
@@ -1261,7 +1287,7 @@ function _t(t) {
1261
1287
  gap: 0.5
1262
1288
  }, e[4] = l) : l = e[4];
1263
1289
  let n;
1264
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(Ue, { sx: {
1290
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(je, { sx: {
1265
1291
  fontSize: 12
1266
1292
  }, color: "error" }), e[5] = n) : n = e[5];
1267
1293
  const u = r?.error ?? "Error";
@@ -1273,70 +1299,70 @@ function _t(t) {
1273
1299
  }
1274
1300
  case "running": {
1275
1301
  let l;
1276
- return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a(ze, { size: 14 }), e[8] = l) : l = e[8], l;
1302
+ return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a(Be, { size: 14 }), e[8] = l) : l = e[8], l;
1277
1303
  }
1278
1304
  default:
1279
1305
  return null;
1280
1306
  }
1281
1307
  }
1282
- function we(t) {
1308
+ function Te(t) {
1283
1309
  const e = z(33), {
1284
1310
  tool: o,
1285
1311
  labels: r
1286
1312
  } = t;
1287
1313
  let l;
1288
1314
  e[0] !== r ? (l = r === void 0 ? {} : r, e[0] = r, e[1] = l) : l = e[1];
1289
- const n = l, u = o.status === "error", s = n.toolExecuted ?? "Tool executed", i = n.reference ?? "Reference:", c = n.duration ?? "Duration:", d = n.status ?? "Status:", x = n.inputArguments ?? "Input arguments:", g = n.output ?? "Output:";
1290
- let f;
1291
- e[2] !== i || e[3] !== o.reference ? (f = o.reference && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1315
+ const n = l, u = o.status === "error", s = n.toolExecuted ?? "Tool executed", i = n.reference ?? "Reference:", c = n.duration ?? "Duration:", d = n.status ?? "Status:", g = n.inputArguments ?? "Input arguments:", m = n.output ?? "Output:";
1316
+ let p;
1317
+ e[2] !== i || e[3] !== o.reference ? (p = o.reference && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1292
1318
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: i }),
1293
1319
  /* @__PURE__ */ T(y, { sx: w.traceReference, children: [
1294
1320
  /* @__PURE__ */ a(Ye, { color: "success" }),
1295
1321
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, children: o.reference })
1296
1322
  ] })
1297
- ] }), e[2] = i, e[3] = o.reference, e[4] = f) : f = e[4];
1298
- let m;
1299
- e[5] !== c || e[6] !== o.duration ? (m = o.duration != null && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1323
+ ] }), e[2] = i, e[3] = o.reference, e[4] = p) : p = e[4];
1324
+ let f;
1325
+ e[5] !== c || e[6] !== o.duration ? (f = o.duration != null && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1300
1326
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: c }),
1301
1327
  /* @__PURE__ */ T(_, { variant: "code3", children: [
1302
1328
  o.duration,
1303
1329
  "s"
1304
1330
  ] })
1305
- ] }), e[5] = c, e[6] = o.duration, e[7] = m) : m = e[7];
1331
+ ] }), e[5] = c, e[6] = o.duration, e[7] = f) : f = e[7];
1332
+ let x;
1333
+ e[8] !== d ? (x = /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: d }), e[8] = d, e[9] = x) : x = e[9];
1306
1334
  let h;
1307
- e[8] !== d ? (h = /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: d }), e[8] = d, e[9] = h) : h = e[9];
1308
- let p;
1309
- e[10] !== n || e[11] !== o.status ? (p = /* @__PURE__ */ a(_t, { status: o.status, labels: n }), e[10] = n, e[11] = o.status, e[12] = p) : p = e[12];
1335
+ e[10] !== n || e[11] !== o.status ? (h = /* @__PURE__ */ a(_t, { status: o.status, labels: n }), e[10] = n, e[11] = o.status, e[12] = h) : h = e[12];
1310
1336
  let b;
1311
- e[13] !== h || e[14] !== p ? (b = /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1312
- h,
1313
- p
1314
- ] }), e[13] = h, e[14] = p, e[15] = b) : b = e[15];
1337
+ e[13] !== x || e[14] !== h ? (b = /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1338
+ x,
1339
+ h
1340
+ ] }), e[13] = x, e[14] = h, e[15] = b) : b = e[15];
1315
1341
  let v;
1316
- e[16] !== x || e[17] !== u || e[18] !== o.inputArguments || e[19] !== o.output || e[20] !== s ? (v = o.inputArguments && /* @__PURE__ */ T(y, { children: [
1317
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: x }),
1318
- /* @__PURE__ */ a(ue, { sx: {
1342
+ e[16] !== g || e[17] !== u || e[18] !== o.inputArguments || e[19] !== o.output || e[20] !== s ? (v = o.inputArguments && /* @__PURE__ */ T(y, { children: [
1343
+ /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: g }),
1344
+ /* @__PURE__ */ a(pe, { sx: {
1319
1345
  mt: 0.5,
1320
1346
  mb: o.output ? 1.5 : 0
1321
- }, content: o.inputArguments, title: `${s}: ${x}`, isError: u })
1322
- ] }), e[16] = x, e[17] = u, e[18] = o.inputArguments, e[19] = o.output, e[20] = s, e[21] = v) : v = e[21];
1347
+ }, content: o.inputArguments, title: `${s}: ${g}`, isError: u })
1348
+ ] }), e[16] = g, e[17] = u, e[18] = o.inputArguments, e[19] = o.output, e[20] = s, e[21] = v) : v = e[21];
1323
1349
  let C;
1324
- e[22] !== u || e[23] !== g || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ T(y, { children: [
1325
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: g }),
1326
- /* @__PURE__ */ a(ue, { sx: {
1350
+ e[22] !== u || e[23] !== m || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ T(y, { children: [
1351
+ /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: m }),
1352
+ /* @__PURE__ */ a(pe, { sx: {
1327
1353
  mt: 0.5
1328
- }, content: o.output, title: `${s}: ${g}`, isError: u })
1329
- ] }), e[22] = u, e[23] = g, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
1354
+ }, content: o.output, title: `${s}: ${m}`, isError: u })
1355
+ ] }), e[22] = u, e[23] = m, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
1330
1356
  let k;
1331
- return e[27] !== f || e[28] !== m || e[29] !== b || e[30] !== v || e[31] !== C ? (k = /* @__PURE__ */ T(y, { children: [
1357
+ return e[27] !== p || e[28] !== f || e[29] !== b || e[30] !== v || e[31] !== C ? (k = /* @__PURE__ */ T(y, { children: [
1358
+ p,
1332
1359
  f,
1333
- m,
1334
1360
  b,
1335
1361
  v,
1336
1362
  C
1337
- ] }), e[27] = f, e[28] = m, e[29] = b, e[30] = v, e[31] = C, e[32] = k) : k = e[32], k;
1363
+ ] }), e[27] = p, e[28] = f, e[29] = b, e[30] = v, e[31] = C, e[32] = k) : k = e[32], k;
1338
1364
  }
1339
- function pe(t) {
1365
+ function me(t) {
1340
1366
  const e = z(29), {
1341
1367
  tool: o,
1342
1368
  expanded: r,
@@ -1349,38 +1375,38 @@ function pe(t) {
1349
1375
  const i = s, c = o.status === "running", d = i.toolExecuted ?? "Tool executed";
1350
1376
  if (c) {
1351
1377
  let k;
1352
- e[2] !== o ? (k = ve(o), e[2] = o, e[3] = k) : k = e[3];
1378
+ e[2] !== o ? (k = we(o), e[2] = o, e[3] = k) : k = e[3];
1353
1379
  let S;
1354
1380
  return e[4] !== k ? (S = /* @__PURE__ */ a(rt, { children: k }), e[4] = k, e[5] = S) : S = e[5], S;
1355
1381
  }
1356
- const x = `PsChat--tool-trace ${o.name}`;
1357
- let g;
1358
- e[6] !== r || e[7] !== l ? (g = () => l?.(!r), e[6] = r, e[7] = l, e[8] = g) : g = e[8];
1359
- let f;
1360
- e[9] !== d ? (f = /* @__PURE__ */ a(_, { variant: "caption", fontWeight: 600, color: "text.secondary", children: d }), e[9] = d, e[10] = f) : f = e[10];
1361
- const m = r ? "rotate(90deg)" : "rotate(0deg)";
1362
- let h;
1363
- e[11] !== m ? (h = /* @__PURE__ */ a(xe, { sx: {
1364
- ...w.traceChevron,
1365
- transform: m
1366
- } }), e[11] = m, e[12] = h) : h = e[12];
1382
+ const g = `PsChat--tool-trace ${o.name}`;
1383
+ let m;
1384
+ e[6] !== r || e[7] !== l ? (m = () => l?.(!r), e[6] = r, e[7] = l, e[8] = m) : m = e[8];
1367
1385
  let p;
1368
- e[13] !== r || e[14] !== g || e[15] !== f || e[16] !== h ? (p = /* @__PURE__ */ T(re, { size: "small", variant: "text", onClick: g, "aria-expanded": r, sx: w.traceHeader, children: [
1369
- f,
1370
- h
1371
- ] }), e[13] = r, e[14] = g, e[15] = f, e[16] = h, e[17] = p) : p = e[17];
1386
+ e[9] !== d ? (p = /* @__PURE__ */ a(_, { variant: "caption", fontWeight: 600, color: "text.secondary", children: d }), e[9] = d, e[10] = p) : p = e[10];
1387
+ const f = r ? "rotate(90deg)" : "rotate(0deg)";
1388
+ let x;
1389
+ e[11] !== f ? (x = /* @__PURE__ */ a(ye, { sx: {
1390
+ ...w.traceChevron,
1391
+ transform: f
1392
+ } }), e[11] = f, e[12] = x) : x = e[12];
1393
+ let h;
1394
+ e[13] !== r || e[14] !== m || e[15] !== p || e[16] !== x ? (h = /* @__PURE__ */ T(le, { size: "small", variant: "text", onClick: m, "aria-expanded": r, sx: w.traceHeader, children: [
1395
+ p,
1396
+ x
1397
+ ] }), e[13] = r, e[14] = m, e[15] = p, e[16] = x, e[17] = h) : h = e[17];
1372
1398
  let b;
1373
- e[18] !== i || e[19] !== o ? (b = /* @__PURE__ */ a(y, { sx: w.traceDetailsWrapper, children: /* @__PURE__ */ a(we, { tool: o, labels: i }) }), e[18] = i, e[19] = o, e[20] = b) : b = e[20];
1399
+ e[18] !== i || e[19] !== o ? (b = /* @__PURE__ */ a(y, { sx: w.traceDetailsWrapper, children: /* @__PURE__ */ a(Te, { tool: o, labels: i }) }), e[18] = i, e[19] = o, e[20] = b) : b = e[20];
1374
1400
  let v;
1375
- e[21] !== r || e[22] !== b ? (v = /* @__PURE__ */ a(le, { in: r, unmountOnExit: !0, children: b }), e[21] = r, e[22] = b, e[23] = v) : v = e[23];
1401
+ e[21] !== r || e[22] !== b ? (v = /* @__PURE__ */ a(ie, { in: r, unmountOnExit: !0, children: b }), e[21] = r, e[22] = b, e[23] = v) : v = e[23];
1376
1402
  let C;
1377
- return e[24] !== u || e[25] !== v || e[26] !== x || e[27] !== p ? (C = /* @__PURE__ */ T(y, { width: "100%", sx: u, className: x, children: [
1378
- p,
1403
+ return e[24] !== u || e[25] !== v || e[26] !== g || e[27] !== h ? (C = /* @__PURE__ */ T(y, { width: "100%", sx: u, className: g, children: [
1404
+ h,
1379
1405
  v
1380
- ] }), e[24] = u, e[25] = v, e[26] = x, e[27] = p, e[28] = C) : C = e[28], C;
1406
+ ] }), e[24] = u, e[25] = v, e[26] = g, e[27] = h, e[28] = C) : C = e[28], C;
1381
1407
  }
1382
- function me(t, e) {
1383
- const o = z(5), [r, l] = ie(t);
1408
+ function he(t, e) {
1409
+ const o = z(5), [r, l] = Q(t);
1384
1410
  if (e) {
1385
1411
  let n;
1386
1412
  return o[0] !== e || o[1] !== t ? (n = [t, e], o[0] = e, o[1] = t, o[2] = n) : n = o[2], n;
@@ -1389,7 +1415,7 @@ function me(t, e) {
1389
1415
  return o[3] !== r ? (n = [r, l], o[3] = r, o[4] = n) : n = o[4], n;
1390
1416
  }
1391
1417
  }
1392
- function Kt(t) {
1418
+ function qt(t) {
1393
1419
  const e = z(62), {
1394
1420
  tools: o,
1395
1421
  expanded: r,
@@ -1401,25 +1427,25 @@ function Kt(t) {
1401
1427
  } = t, c = r === void 0 ? !1 : r;
1402
1428
  let d;
1403
1429
  e[0] !== n ? (d = n === void 0 ? {} : n, e[0] = n, e[1] = d) : d = e[1];
1404
- const x = d;
1405
- let g;
1406
- e[2] !== s ? (g = s === void 0 ? {} : s, e[2] = s, e[3] = g) : g = e[3];
1407
- const f = g, [m, h] = me(c, l), [p, b] = me(x, u);
1430
+ const g = d;
1431
+ let m;
1432
+ e[2] !== s ? (m = s === void 0 ? {} : s, e[2] = s, e[3] = m) : m = e[3];
1433
+ const p = m, [f, x] = he(c, l), [h, b] = he(g, u);
1408
1434
  let v;
1409
1435
  e[4] !== o ? (v = o.filter(It), e[4] = o, e[5] = v) : v = e[5];
1410
1436
  const C = v.length;
1411
1437
  let k, S;
1412
- if (e[6] !== m || e[7] !== p || e[8] !== f || e[9] !== C || e[10] !== h || e[11] !== b || e[12] !== i || e[13] !== o) {
1438
+ if (e[6] !== f || e[7] !== h || e[8] !== p || e[9] !== C || e[10] !== x || e[11] !== b || e[12] !== i || e[13] !== o) {
1413
1439
  S = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1414
1440
  e: {
1415
- const A = o.filter(At), I = o.filter($t), R = f.toolsUsed ?? "tools used", $ = f.error ?? "Error";
1441
+ const $ = o.filter($t), I = o.filter(At), R = p.toolsUsed ?? "tools used", A = p.error ?? "Error";
1416
1442
  if (o.length === 1) {
1417
1443
  let F;
1418
- e[16] !== m || e[17] !== f || e[18] !== h || e[19] !== i || e[20] !== o[0] ? (F = /* @__PURE__ */ a(pe, { tool: o[0], expanded: m, onExpandedChange: h, labels: f, sx: i }), e[16] = m, e[17] = f, e[18] = h, e[19] = i, e[20] = o[0], e[21] = F) : F = e[21], S = F;
1444
+ e[16] !== f || e[17] !== p || e[18] !== x || e[19] !== i || e[20] !== o[0] ? (F = /* @__PURE__ */ a(me, { tool: o[0], expanded: f, onExpandedChange: x, labels: p, sx: i }), e[16] = f, e[17] = p, e[18] = x, e[19] = i, e[20] = o[0], e[21] = F) : F = e[21], S = F;
1419
1445
  break e;
1420
1446
  }
1421
1447
  let E;
1422
- e[22] !== m || e[23] !== h ? (E = () => h(!m), e[22] = m, e[23] = h, e[24] = E) : E = e[24];
1448
+ e[22] !== f || e[23] !== x ? (E = () => x(!f), e[22] = f, e[23] = x, e[24] = E) : E = e[24];
1423
1449
  const B = C > 0 ? 0.5 : 0;
1424
1450
  let L;
1425
1451
  e[25] !== B ? (L = {
@@ -1432,26 +1458,26 @@ function Kt(t) {
1432
1458
  " ",
1433
1459
  R
1434
1460
  ] }), e[27] = o.length, e[28] = R, e[29] = D) : D = e[29];
1435
- const M = m ? "rotate(90deg)" : "rotate(0deg)";
1461
+ const M = f ? "rotate(90deg)" : "rotate(0deg)";
1436
1462
  let P;
1437
- e[30] !== M ? (P = /* @__PURE__ */ a(xe, { sx: {
1463
+ e[30] !== M ? (P = /* @__PURE__ */ a(ye, { sx: {
1438
1464
  ...w.traceChevron,
1439
1465
  transform: M
1440
1466
  } }), e[30] = M, e[31] = P) : P = e[31];
1441
1467
  let V;
1442
1468
  e[32] !== C ? (V = C > 0 && /* @__PURE__ */ T(_, { variant: "code3", sx: w.errorBadge, children: [
1443
1469
  C,
1444
- /* @__PURE__ */ a(ge, { sx: {
1470
+ /* @__PURE__ */ a(xe, { sx: {
1445
1471
  fontSize: 12
1446
1472
  }, color: "error" })
1447
1473
  ] }), e[32] = C, e[33] = V) : V = e[33];
1448
1474
  let G;
1449
- e[34] !== m || e[35] !== L || e[36] !== D || e[37] !== P || e[38] !== V || e[39] !== E ? (G = /* @__PURE__ */ T(re, { size: "small", variant: "text", onClick: E, "aria-expanded": m, sx: L, children: [
1475
+ e[34] !== f || e[35] !== L || e[36] !== D || e[37] !== P || e[38] !== V || e[39] !== E ? (G = /* @__PURE__ */ T(le, { size: "small", variant: "text", onClick: E, "aria-expanded": f, sx: L, children: [
1450
1476
  D,
1451
1477
  P,
1452
1478
  V
1453
- ] }), e[34] = m, e[35] = L, e[36] = D, e[37] = P, e[38] = V, e[39] = E, e[40] = G) : G = e[40];
1454
- const Q = le, Z = m, ee = !0, te = y, oe = "ul";
1479
+ ] }), e[34] = f, e[35] = L, e[36] = D, e[37] = P, e[38] = V, e[39] = E, e[40] = G) : G = e[40];
1480
+ const Z = ie, ee = f, te = !0, oe = y, ne = "ul";
1455
1481
  let U;
1456
1482
  e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
1457
1483
  ...w.traceDetailsWrapper,
@@ -1459,47 +1485,47 @@ function Kt(t) {
1459
1485
  listStyle: "none"
1460
1486
  }, e[41] = U) : U = e[41];
1461
1487
  let X;
1462
- e[42] !== $ || e[43] !== m || e[44] !== p || e[45] !== f || e[46] !== b ? (X = (F) => {
1463
- const J = p[F.id] ?? !1;
1464
- return /* @__PURE__ */ T(y, { component: "li", sx: w.groupListItem, "aria-expanded": J, children: [
1465
- /* @__PURE__ */ T(re, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => b({
1466
- ...p,
1467
- [F.id]: !J
1468
- }), "aria-expanded": J, sx: w.groupHeader, children: [
1469
- /* @__PURE__ */ a(_, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children: ve(F) }),
1470
- F.status === "error" && /* @__PURE__ */ a(_, { variant: "code3", color: "error.main", children: $ }),
1471
- /* @__PURE__ */ a(Ne, { sx: {
1488
+ e[42] !== A || e[43] !== f || e[44] !== h || e[45] !== p || e[46] !== b ? (X = (F) => {
1489
+ const q = h[F.id] ?? !1;
1490
+ return /* @__PURE__ */ T(y, { component: "li", sx: w.groupListItem, "aria-expanded": q, children: [
1491
+ /* @__PURE__ */ T(le, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => b({
1492
+ ...h,
1493
+ [F.id]: !q
1494
+ }), "aria-expanded": q, sx: w.groupHeader, children: [
1495
+ /* @__PURE__ */ a(_, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children: we(F) }),
1496
+ F.status === "error" && /* @__PURE__ */ a(_, { variant: "code3", color: "error.main", children: A }),
1497
+ /* @__PURE__ */ a(Ge, { sx: {
1472
1498
  ...w.traceChevron,
1473
- transform: m ? "rotate(90deg)" : "rotate(0deg)"
1499
+ transform: f ? "rotate(90deg)" : "rotate(0deg)"
1474
1500
  } })
1475
1501
  ] }),
1476
- /* @__PURE__ */ a(le, { in: J, unmountOnExit: !0, children: /* @__PURE__ */ a(y, { px: 1.5, py: 1, children: /* @__PURE__ */ a(we, { tool: F, labels: f }) }) })
1502
+ /* @__PURE__ */ a(ie, { in: q, unmountOnExit: !0, children: /* @__PURE__ */ a(y, { px: 1.5, py: 1, children: /* @__PURE__ */ a(Te, { tool: F, labels: p }) }) })
1477
1503
  ] }, F.id);
1478
- }, e[42] = $, e[43] = m, e[44] = p, e[45] = f, e[46] = b, e[47] = X) : X = e[47];
1479
- const ne = I.map(X);
1504
+ }, e[42] = A, e[43] = f, e[44] = h, e[45] = p, e[46] = b, e[47] = X) : X = e[47];
1505
+ const re = I.map(X);
1480
1506
  let j;
1481
- e[48] !== te || e[49] !== oe || e[50] !== U || e[51] !== ne ? (j = /* @__PURE__ */ a(te, { component: oe, sx: U, children: ne }), e[48] = te, e[49] = oe, e[50] = U, e[51] = ne, e[52] = j) : j = e[52];
1507
+ e[48] !== oe || e[49] !== ne || e[50] !== U || e[51] !== re ? (j = /* @__PURE__ */ a(oe, { component: ne, sx: U, children: re }), e[48] = oe, e[49] = ne, e[50] = U, e[51] = re, e[52] = j) : j = e[52];
1482
1508
  let Y;
1483
- e[53] !== Q || e[54] !== Z || e[55] !== ee || e[56] !== j ? (Y = /* @__PURE__ */ a(Q, { in: Z, unmountOnExit: ee, children: j }), e[53] = Q, e[54] = Z, e[55] = ee, e[56] = j, e[57] = Y) : Y = e[57];
1509
+ e[53] !== Z || e[54] !== ee || e[55] !== te || e[56] !== j ? (Y = /* @__PURE__ */ a(Z, { in: ee, unmountOnExit: te, children: j }), e[53] = Z, e[54] = ee, e[55] = te, e[56] = j, e[57] = Y) : Y = e[57];
1484
1510
  let K;
1485
- e[58] !== p || e[59] !== f || e[60] !== b ? (K = (F) => /* @__PURE__ */ a(pe, { tool: F, labels: f, expanded: p[F.id], onExpandedChange: () => b({
1486
- ...p,
1487
- [F.id]: !p[F.id]
1488
- }) }, F.id), e[58] = p, e[59] = f, e[60] = b, e[61] = K) : K = e[61], k = /* @__PURE__ */ T(y, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1511
+ e[58] !== h || e[59] !== p || e[60] !== b ? (K = (F) => /* @__PURE__ */ a(me, { tool: F, labels: p, expanded: h[F.id], onExpandedChange: () => b({
1512
+ ...h,
1513
+ [F.id]: !h[F.id]
1514
+ }) }, F.id), e[58] = h, e[59] = p, e[60] = b, e[61] = K) : K = e[61], k = /* @__PURE__ */ T(y, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1489
1515
  G,
1490
1516
  Y,
1491
- A.map(K)
1517
+ $.map(K)
1492
1518
  ] });
1493
1519
  }
1494
- e[6] = m, e[7] = p, e[8] = f, e[9] = C, e[10] = h, e[11] = b, e[12] = i, e[13] = o, e[14] = k, e[15] = S;
1520
+ e[6] = f, e[7] = h, e[8] = p, e[9] = C, e[10] = x, e[11] = b, e[12] = i, e[13] = o, e[14] = k, e[15] = S;
1495
1521
  } else
1496
1522
  k = e[14], S = e[15];
1497
1523
  return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : k;
1498
1524
  }
1499
- function $t(t) {
1525
+ function At(t) {
1500
1526
  return t.status !== "running";
1501
1527
  }
1502
- function At(t) {
1528
+ function $t(t) {
1503
1529
  return t.status === "running";
1504
1530
  }
1505
1531
  function It(t) {
@@ -1507,25 +1533,26 @@ function It(t) {
1507
1533
  }
1508
1534
  export {
1509
1535
  Ht as CHAT_DIVIDER_DELAY,
1510
- q as CHAT_MAX_WIDTH,
1536
+ J as CHAT_MAX_WIDTH,
1511
1537
  Mt as CHAT_SCROLL_DELAY,
1512
1538
  Ke as CHAT_TOOL_CODE_AREA_MAX_HEIGHT,
1513
- Xt as ChatActionsContainer,
1514
- qe as ChatAgentMessage,
1515
- Ut as ChatContent,
1516
- Pt as ChatErrorMessage,
1517
- Nt as ChatFooter,
1518
- jt as ChatHeader,
1519
- Vt as ChatLoader,
1520
- ye as ChatMessageOverflow,
1521
- Yt as ChatRatingAction,
1522
- Gt as ChatStarter,
1539
+ Yt as ChatActionsContainer,
1540
+ Je as ChatAgentMessage,
1541
+ jt as ChatContent,
1542
+ Vt as ChatErrorMessage,
1543
+ Gt as ChatFooter,
1544
+ Nt as ChatHeader,
1545
+ Ut as ChatLoader,
1546
+ Ce as ChatMessageOverflow,
1547
+ Kt as ChatRatingAction,
1548
+ Xt as ChatStarter,
1523
1549
  et as ChatSuggestionButton,
1524
1550
  rt as ChatThinking,
1525
- ue as ChatToolCodeArea,
1551
+ pe as ChatToolCodeArea,
1526
1552
  ut as ChatToolFullViewDialog,
1527
- Kt as ChatToolGroup,
1528
- pe as ChatToolTrace,
1529
- Ot as ChatUserMessage
1553
+ qt as ChatToolGroup,
1554
+ me as ChatToolTrace,
1555
+ Pt as ChatUserMessage,
1556
+ Ot as useTypewriter
1530
1557
  };
1531
1558
  //# sourceMappingURL=chat.js.map