@pstdio/ui 0.43.0 → 0.43.1-nightly.20261013030813

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.
Files changed (65) hide show
  1. package/README.md +11 -0
  2. package/dist/{MermaidComponent-X7N-8w2S.js → MermaidComponent-CJCip-GB.js} +3 -3
  3. package/dist/{MermaidComponent-X7N-8w2S.js.map → MermaidComponent-CJCip-GB.js.map} +1 -1
  4. package/dist/chat-ui.d.ts +1 -1
  5. package/dist/chat-ui.js +621 -640
  6. package/dist/chat-ui.js.map +1 -1
  7. package/dist/{collection-view-grouping-DnuJ1U4R.js → collection-view-grouping-Bm7Hlt5w.js} +2 -2
  8. package/dist/{collection-view-grouping-DnuJ1U4R.js.map → collection-view-grouping-Bm7Hlt5w.js.map} +1 -1
  9. package/dist/{collection-view-search-D_7Qvz7p.js → collection-view-search-BqYMZQ4q.js} +166 -156
  10. package/dist/collection-view-search-BqYMZQ4q.js.map +1 -0
  11. package/dist/collection-view.d.ts +3 -90
  12. package/dist/collection-view.js +2 -2
  13. package/dist/{data-table-stats-row-C8CtvdDt.js → data-table-stats-row-RwLXF9EW.js} +2 -2
  14. package/dist/{data-table-stats-row-C8CtvdDt.js.map → data-table-stats-row-RwLXF9EW.js.map} +1 -1
  15. package/dist/data-table.d.ts +1 -0
  16. package/dist/data-table.js +8 -8
  17. package/dist/{diff-drawer-BGQhxyOh.js → diff-drawer-BMl0zobj.js} +2 -2
  18. package/dist/{diff-drawer-BGQhxyOh.js.map → diff-drawer-BMl0zobj.js.map} +1 -1
  19. package/dist/{diff-viewer-DYcswG6O.js → diff-viewer-BD2PQ4SS.js} +5 -5
  20. package/dist/{diff-viewer-DYcswG6O.js.map → diff-viewer-BD2PQ4SS.js.map} +1 -1
  21. package/dist/diff.js +2 -2
  22. package/dist/{display-sort-control-n3L5WvkJ.js → display-sort-control-BSFhWHgn.js} +194 -183
  23. package/dist/display-sort-control-BSFhWHgn.js.map +1 -0
  24. package/dist/{edit-mode-data-table-BclZ-pWe.js → edit-mode-data-table-TdIRPVU1.js} +8 -8
  25. package/dist/{edit-mode-data-table-BclZ-pWe.js.map → edit-mode-data-table-TdIRPVU1.js.map} +1 -1
  26. package/dist/{index-5Lw7YMKy.d.ts → index-Bc2BsdD1.d.ts} +6 -0
  27. package/dist/index-r6SFPkUI.d.ts +91 -0
  28. package/dist/index.js +6 -6
  29. package/dist/kanban-renderer.js +8 -8
  30. package/dist/{list-row-CmFG_jCC.js → list-row-DCHZXCVH.js} +2 -2
  31. package/dist/{list-row-CmFG_jCC.js.map → list-row-DCHZXCVH.js.map} +1 -1
  32. package/dist/{markdown-editor-CN4qOKky.js → markdown-editor-6jAy_E3r.js} +6 -6
  33. package/dist/{markdown-editor-CN4qOKky.js.map → markdown-editor-6jAy_E3r.js.map} +1 -1
  34. package/dist/{mermaid-renderer-DybQ_2Cp.js → mermaid-renderer-BtW_13Sz.js} +2 -2
  35. package/dist/{mermaid-renderer-DybQ_2Cp.js.map → mermaid-renderer-BtW_13Sz.js.map} +1 -1
  36. package/dist/mermaid.js +1 -1
  37. package/dist/{number-input-CyrMrDxB.js → number-input-QDqWYzTR.js} +2 -2
  38. package/dist/{number-input-CyrMrDxB.js.map → number-input-QDqWYzTR.js.map} +1 -1
  39. package/dist/{param-editor-28dBRSV4.js → param-editor-f57ea8V9.js} +2 -2
  40. package/dist/{param-editor-28dBRSV4.js.map → param-editor-f57ea8V9.js.map} +1 -1
  41. package/dist/{param-editor-field-GxhFb86w.js → param-editor-field-CePT5hCj.js} +5 -5
  42. package/dist/{param-editor-field-GxhFb86w.js.map → param-editor-field-CePT5hCj.js.map} +1 -1
  43. package/dist/param-editor.js +3 -3
  44. package/dist/{prism-CnkSh-ZG.js → prism-EZSmZh-a.js} +2 -2
  45. package/dist/{prism-CnkSh-ZG.js.map → prism-EZSmZh-a.js.map} +1 -1
  46. package/dist/{rich-text-DOK4dDeb.js → rich-text-bKBLAco5.js} +384 -363
  47. package/dist/rich-text-bKBLAco5.js.map +1 -0
  48. package/dist/rich-text.d.ts +1 -1
  49. package/dist/rich-text.js +3 -3
  50. package/dist/{scroll-area-crJfiiuF.js → scroll-area-IeoRS73V.js} +3 -5
  51. package/dist/scroll-area-IeoRS73V.js.map +1 -0
  52. package/dist/terminal.js +1 -1
  53. package/dist/{theme-Bd_a7sU8.js → theme-bxwJIMKe.js} +22 -2
  54. package/dist/theme-bxwJIMKe.js.map +1 -0
  55. package/dist/theme.js +1 -1
  56. package/dist/{tree-list-B_qqiIoM.js → tree-list-nFNO7MV4.js} +2 -2
  57. package/dist/{tree-list-B_qqiIoM.js.map → tree-list-nFNO7MV4.js.map} +1 -1
  58. package/dist/{workspace-badge-BfSkiGP_.js → workspace-badge-BgiTennO.js} +2 -2
  59. package/dist/{workspace-badge-BfSkiGP_.js.map → workspace-badge-BgiTennO.js.map} +1 -1
  60. package/package.json +2 -2
  61. package/dist/collection-view-search-D_7Qvz7p.js.map +0 -1
  62. package/dist/display-sort-control-n3L5WvkJ.js.map +0 -1
  63. package/dist/rich-text-DOK4dDeb.js.map +0 -1
  64. package/dist/scroll-area-crJfiiuF.js.map +0 -1
  65. package/dist/theme-Bd_a7sU8.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { n as e, o as t, r as n, s as r, t as i } from "./alert-MQ47wy7f.js";
2
- import { t as a } from "./scroll-area-crJfiiuF.js";
3
- import { t as o } from "./list-row-CmFG_jCC.js";
2
+ import { t as a } from "./scroll-area-IeoRS73V.js";
3
+ import { t as o } from "./list-row-DCHZXCVH.js";
4
4
  import { t as s } from "./empty-state-3mVV_pV-.js";
5
- import { A as c, D as l, M as u, N as d, O as f, _ as p, a as m, b as h, c as g, d as _, f as v, h as y, i as b, j as x, l as S, m as C, o as w, p as T, r as E, s as D, u as O, v as k, x as A, y as j } from "./markdown-editor-CN4qOKky.js";
6
- import { Box as M, Button as N, Flex as ee, HStack as P, Icon as F, Spinner as I, Stack as L, Table as R, Text as z, Textarea as B, useRecipe as V, useSlotRecipe as H } from "@chakra-ui/react";
7
- import { c as U } from "react/compiler-runtime";
8
- import { jsx as W, jsxs as G } from "react/jsx-runtime";
9
- import { forwardRef as K, useEffect as q, useImperativeHandle as J, useLayoutEffect as te, useRef as Y, useState as ne } from "react";
10
- import { Activity as X, Bell as re, CircleAlert as ie, Component as Z, ExternalLink as Q, GitBranch as ae, Info as oe, MessageCircle as se, ScanSearch as ce, Sparkles as le } from "lucide-react";
5
+ import { A as c, D as l, M as u, N as d, O as f, _ as p, a as m, b as h, c as g, d as _, f as v, h as y, i as b, j as x, l as S, m as C, o as w, p as T, r as E, s as D, u as ee, v as O, x as k, y as A } from "./markdown-editor-6jAy_E3r.js";
6
+ import { Box as j, Button as M, Flex as te, HStack as N, Icon as P, Spinner as F, Stack as I, Table as L, Text as R, Textarea as z, useRecipe as B, useSlotRecipe as V } from "@chakra-ui/react";
7
+ import { c as H } from "react/compiler-runtime";
8
+ import { jsx as U, jsxs as W } from "react/jsx-runtime";
9
+ import { forwardRef as G, useEffect as K, useImperativeHandle as q, useLayoutEffect as J, useRef as Y, useState as X } from "react";
10
+ import { Activity as Z, Bell as Q, CircleAlert as ne, Component as re, ExternalLink as ie, GitBranch as ae, Info as oe, MessageCircle as se, ScanSearch as ce, Sparkles as le } from "lucide-react";
11
11
  import { createPortal as ue } from "react-dom";
12
12
  import { LexicalCollaboration as de } from "@lexical/react/LexicalCollaborationContext";
13
13
  import { CollaborationPluginV2__EXPERIMENTAL as fe } from "@lexical/react/LexicalCollaborationPlugin";
@@ -28,18 +28,19 @@ import { OnChangePlugin as Ge } from "@lexical/react/LexicalOnChangePlugin";
28
28
  import { LexicalTypeaheadMenuPlugin as Ke, MenuOption as qe } from "@lexical/react/LexicalTypeaheadMenuPlugin";
29
29
  import { HistoryPlugin as Je } from "@lexical/react/LexicalHistoryPlugin";
30
30
  import { MarkNode as Ye } from "@lexical/mark";
31
- import { ClickableLinkPlugin as Xe } from "@lexical/react/LexicalClickableLinkPlugin";
31
+ import { useLexicalEditable as Xe } from "@lexical/react/useLexicalEditable";
32
+ import { ClickableLinkPlugin as Ze } from "@lexical/react/LexicalClickableLinkPlugin";
32
33
  //#region src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx
33
- function Ze() {
34
- let e = U(1), t;
35
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ W("style", { children: "\n .collaboration-cursor-container {\n position: relative;\n display: inline;\n }\n\n .collaboration-cursor-caret {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 2px;\n pointer-events: none;\n }\n\n .collaboration-cursor-label {\n position: absolute;\n top: -18px;\n left: -2px;\n padding: 1px 6px;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n border-radius: 4px 4px 4px 0;\n color: #fff;\n pointer-events: none;\n user-select: none;\n }\n\n .collaboration-cursor-selection {\n position: absolute;\n pointer-events: none;\n opacity: 0.25;\n }\n " }), e[0] = t) : t = e[0], t;
34
+ function Qe() {
35
+ let e = H(1), t;
36
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ U("style", { children: "\n .collaboration-cursor-container {\n position: relative;\n display: inline;\n }\n\n .collaboration-cursor-caret {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 2px;\n pointer-events: none;\n }\n\n .collaboration-cursor-label {\n position: absolute;\n top: -18px;\n left: -2px;\n padding: 1px 6px;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n border-radius: 4px 4px 4px 0;\n color: #fff;\n pointer-events: none;\n user-select: none;\n }\n\n .collaboration-cursor-selection {\n position: absolute;\n pointer-events: none;\n opacity: 0.25;\n }\n " }), e[0] = t) : t = e[0], t;
36
37
  }
37
38
  //#endregion
38
39
  //#region src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx
39
- function Qe(e) {
40
- let t = U(43), { roomId: n, wsUrl: r, wsParams: i, userName: a, userColor: o, placeholder: s } = e, c;
40
+ function $e(e) {
41
+ let t = H(43), { roomId: n, wsUrl: r, wsParams: i, userName: a, userColor: o, placeholder: s } = e, c;
41
42
  t[0] === i ? c = t[1] : (c = i === void 0 ? {} : i, t[0] = i, t[1] = c);
42
- let l = c, u = a === void 0 ? "Anonymous" : a, f = o === void 0 ? "#30bced" : o, m = Y(null), [h, g] = ne(null), [b, x] = ne(!1), [w] = ne(et), E;
43
+ let l = c, u = a === void 0 ? "Anonymous" : a, f = o === void 0 ? "#30bced" : o, m = Y(null), [h, g] = X(null), [b, x] = X(!1), [w] = X(tt), E;
43
44
  t[2] !== w || t[3] !== n || t[4] !== l || t[5] !== r ? (E = () => {
44
45
  let e = new be(r, n, w, {
45
46
  params: l,
@@ -49,47 +50,47 @@ function Qe(e) {
49
50
  e && x(!0);
50
51
  }), e;
51
52
  }, t[2] = w, t[3] = n, t[4] = l, t[5] = r, t[6] = E) : E = t[6];
52
- let [D] = ne(E), k, A;
53
- t[7] === D ? (k = t[8], A = t[9]) : (k = () => (D.connect(), () => {
53
+ let [D] = X(E), O, k;
54
+ t[7] === D ? (O = t[8], k = t[9]) : (O = () => (D.connect(), () => {
54
55
  D.disconnect();
55
- }), A = [D], t[7] = D, t[8] = k, t[9] = A), q(k, A);
56
- let j, N;
57
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
56
+ }), k = [D], t[7] = D, t[8] = O, t[9] = k), K(O, k);
57
+ let A, M;
58
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (A = () => {
58
59
  g(m.current);
59
- }, N = [], t[10] = j, t[11] = N) : (j = t[10], N = t[11]), q(j, N);
60
- let P;
61
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (P = {
60
+ }, M = [], t[10] = A, t[11] = M) : (A = t[10], M = t[11]), K(A, M);
61
+ let N;
62
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (N = {
62
63
  namespace: "COLLABORATIVE_EDITOR",
63
64
  nodes: C,
64
65
  editorState: null,
65
- onError: $e,
66
+ onError: et,
66
67
  editable: !0,
67
68
  theme: y
68
- }, t[12] = P) : P = t[12];
69
- let F = P, I;
70
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ W(Ze, {}), t[13] = I) : I = t[13];
71
- let L = D, R;
72
- t[14] !== w || t[15] !== n || t[16] !== L || t[17] !== f || t[18] !== u ? (R = /* @__PURE__ */ W(fe, {
69
+ }, t[12] = N) : N = t[12];
70
+ let P = N, F;
71
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ U(Qe, {}), t[13] = F) : F = t[13];
72
+ let I = D, L;
73
+ t[14] !== w || t[15] !== n || t[16] !== I || t[17] !== f || t[18] !== u ? (L = /* @__PURE__ */ U(fe, {
73
74
  id: n,
74
75
  doc: w,
75
- provider: L,
76
+ provider: I,
76
77
  __shouldBootstrapUnsafe: !1,
77
78
  username: u,
78
79
  cursorColor: f
79
- }), t[14] = w, t[15] = n, t[16] = L, t[17] = f, t[18] = u, t[19] = R) : R = t[19];
80
- let z, B, V, H, K, J, te;
81
- t[20] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ W(ge, {}), B = /* @__PURE__ */ W(_e, {}), V = /* @__PURE__ */ W(S, {}), H = /* @__PURE__ */ W(ye, { maxIndent: 7 }), K = /* @__PURE__ */ W(he, {}), J = /* @__PURE__ */ W(_, {}), te = /* @__PURE__ */ W(v, {}), t[20] = z, t[21] = B, t[22] = V, t[23] = H, t[24] = K, t[25] = J, t[26] = te) : (z = t[20], B = t[21], V = t[22], H = t[23], K = t[24], J = t[25], te = t[26]);
82
- let X;
83
- t[27] === h ? X = t[28] : (X = /* @__PURE__ */ W(T, { anchorElem: h }), t[27] = h, t[28] = X);
84
- let re;
85
- t[29] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ W(p, {}), t[29] = re) : re = t[29];
86
- let ie;
87
- t[30] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ W(d, {
80
+ }), t[14] = w, t[15] = n, t[16] = I, t[17] = f, t[18] = u, t[19] = L) : L = t[19];
81
+ let R, z, B, V, G, q, J;
82
+ t[20] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ U(ge, {}), z = /* @__PURE__ */ U(_e, {}), B = /* @__PURE__ */ U(S, {}), V = /* @__PURE__ */ U(ye, { maxIndent: 7 }), G = /* @__PURE__ */ U(he, {}), q = /* @__PURE__ */ U(_, {}), J = /* @__PURE__ */ U(v, {}), t[20] = R, t[21] = z, t[22] = B, t[23] = V, t[24] = G, t[25] = q, t[26] = J) : (R = t[20], z = t[21], B = t[22], V = t[23], G = t[24], q = t[25], J = t[26]);
83
+ let Z;
84
+ t[27] === h ? Z = t[28] : (Z = /* @__PURE__ */ U(T, { anchorElem: h }), t[27] = h, t[28] = Z);
85
+ let Q;
86
+ t[29] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ U(p, {}), t[29] = Q) : Q = t[29];
87
+ let ne;
88
+ t[30] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ U(d, {
88
89
  fullWidth: !1,
89
90
  layerStyle: "markdownEditorInset"
90
- }), t[30] = ie) : ie = t[30];
91
- let Z;
92
- t[31] !== s || t[32] !== b ? (Z = b && s ? /* @__PURE__ */ W(M, {
91
+ }), t[30] = ne) : ne = t[30];
92
+ let re;
93
+ t[31] !== s || t[32] !== b ? (re = b && s ? /* @__PURE__ */ U(j, {
93
94
  position: "absolute",
94
95
  top: "0",
95
96
  left: "0",
@@ -100,17 +101,17 @@ function Qe(e) {
100
101
  userSelect: "none",
101
102
  textStyle: "paragraph/M/regular",
102
103
  children: s
103
- }) : null, t[31] = s, t[32] = b, t[33] = Z) : Z = t[33];
104
- let Q;
105
- t[34] === Z ? Q = t[35] : (Q = /* @__PURE__ */ W(ve, {
106
- contentEditable: ie,
107
- placeholder: Z,
104
+ }) : null, t[31] = s, t[32] = b, t[33] = re) : re = t[33];
105
+ let ie;
106
+ t[34] === re ? ie = t[35] : (ie = /* @__PURE__ */ U(ve, {
107
+ contentEditable: ne,
108
+ placeholder: re,
108
109
  ErrorBoundary: me
109
- }), t[34] = Z, t[35] = Q);
110
+ }), t[34] = re, t[35] = ie);
110
111
  let ae;
111
- t[36] === h ? ae = t[37] : (ae = h ? /* @__PURE__ */ W(O, { anchorElem: h }) : null, t[36] = h, t[37] = ae);
112
+ t[36] === h ? ae = t[37] : (ae = h ? /* @__PURE__ */ U(ee, { anchorElem: h }) : null, t[36] = h, t[37] = ae);
112
113
  let oe;
113
- return t[38] !== R || t[39] !== X || t[40] !== Q || t[41] !== ae ? (oe = /* @__PURE__ */ G(ee, {
114
+ return t[38] !== L || t[39] !== Z || t[40] !== ie || t[41] !== ae ? (oe = /* @__PURE__ */ W(te, {
114
115
  ref: m,
115
116
  className: "rich-text",
116
117
  justifyContent: "space-between",
@@ -120,41 +121,41 @@ function Qe(e) {
120
121
  position: "relative",
121
122
  direction: "column",
122
123
  overflow: "visible",
123
- children: [I, /* @__PURE__ */ W(pe, {
124
- initialConfig: F,
125
- children: /* @__PURE__ */ G(de, { children: [
124
+ children: [F, /* @__PURE__ */ U(pe, {
125
+ initialConfig: P,
126
+ children: /* @__PURE__ */ W(de, { children: [
127
+ L,
126
128
  R,
127
129
  z,
128
130
  B,
129
131
  V,
130
- H,
131
- K,
132
+ G,
133
+ q,
132
134
  J,
133
- te,
134
- X,
135
- re,
135
+ Z,
136
136
  Q,
137
+ ie,
137
138
  ae
138
139
  ] })
139
140
  })]
140
- }), t[38] = R, t[39] = X, t[40] = Q, t[41] = ae, t[42] = oe) : oe = t[42], oe;
141
+ }), t[38] = L, t[39] = Z, t[40] = ie, t[41] = ae, t[42] = oe) : oe = t[42], oe;
141
142
  }
142
- function $e(e) {
143
+ function et(e) {
143
144
  return console.error(e);
144
145
  }
145
- function et() {
146
+ function tt() {
146
147
  return new xe.Doc();
147
148
  }
148
149
  //#endregion
149
150
  //#region src/components/rich-text/prompt-input/commands.ts
150
- var tt = Be("INSERT_BLOCK");
151
+ var nt = Be("INSERT_BLOCK");
151
152
  //#endregion
152
153
  //#region src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx
153
- function nt(e) {
154
- let t = it();
154
+ function rt(e) {
155
+ let t = at();
155
156
  return e.style !== null && t.setFormat(e.style.textAlign), { node: t };
156
157
  }
157
- var rt = class e extends Fe {
158
+ var it = class e extends Fe {
158
159
  static getType() {
159
160
  return "comment";
160
161
  }
@@ -170,7 +171,7 @@ var rt = class e extends Fe {
170
171
  }
171
172
  static importDOM() {
172
173
  return { blockquote: () => ({
173
- conversion: nt,
174
+ conversion: rt,
174
175
  priority: 0
175
176
  }) };
176
177
  }
@@ -186,7 +187,7 @@ var rt = class e extends Fe {
186
187
  return { element: t };
187
188
  }
188
189
  static importJSON(e) {
189
- let t = it();
190
+ let t = at();
190
191
  return t.setFormat(e.format), t.setIndent(e.indent), t.setDirection(e.direction), t;
191
192
  }
192
193
  exportJSON() {
@@ -209,76 +210,76 @@ var rt = class e extends Fe {
209
210
  }), this.replace(e), !0;
210
211
  }
211
212
  };
212
- function it() {
213
- return new rt();
213
+ function at() {
214
+ return new it();
214
215
  }
215
216
  //#endregion
216
217
  //#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts
217
- var at = (e, t) => {
218
- let n = Oe(), r = it();
218
+ var ot = (e, t) => {
219
+ let n = Oe(), r = at();
219
220
  if (t) {
220
221
  t.getParent()?.replace(r, !0), t.remove(), r.selectEnd();
221
222
  return;
222
223
  }
223
- Ae(n) && We(n, it);
224
+ Ae(n) && We(n, at);
224
225
  };
225
- function ot() {
226
- let e = U(3), [t] = $(), n, r;
227
- return e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ue(t.registerCommand(tt, st, Pe)), r = [t], e[0] = t, e[1] = n, e[2] = r), q(n, r), null;
226
+ function st() {
227
+ let e = H(3), [t] = $(), n, r;
228
+ return e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ue(t.registerCommand(nt, ct, Pe)), r = [t], e[0] = t, e[1] = n, e[2] = r), K(n, r), null;
228
229
  }
229
- function st(e) {
230
+ function ct(e) {
230
231
  let { optionId: t, nodeToReplace: n } = e;
231
- return at(t, n), !1;
232
+ return ot(t, n), !1;
232
233
  }
233
234
  //#endregion
234
235
  //#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts
235
- var ct = () => {
236
- let e = U(3), [t] = $(), n, r;
237
- e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ue(t.registerNodeTransform(rt, (e) => {
238
- let n = e.getChildren().filter(lt);
236
+ var lt = () => {
237
+ let e = H(3), [t] = $(), n, r;
238
+ e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ue(t.registerNodeTransform(it, (e) => {
239
+ let n = e.getChildren().filter(ut);
239
240
  n.length > 0 && t.update(() => {
240
- n.forEach(ut);
241
+ n.forEach(dt);
241
242
  });
242
- })), r = [t], e[0] = t, e[1] = n, e[2] = r), q(n, r);
243
+ })), r = [t], e[0] = t, e[1] = n, e[2] = r), K(n, r);
243
244
  };
244
- function lt(e) {
245
+ function ut(e) {
245
246
  return e.getType() === "comment";
246
247
  }
247
- function ut(e) {
248
+ function dt(e) {
248
249
  e.replace(Ce(), !0);
249
250
  }
250
251
  //#endregion
251
252
  //#region src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx
252
- function dt() {
253
- return ct(), ot(), null;
253
+ function ft() {
254
+ return lt(), st(), null;
254
255
  }
255
256
  //#endregion
256
257
  //#region src/components/rich-text/prompt-input/plugins/command-query.ts
257
- var ft = (e) => {
258
+ var pt = (e) => {
258
259
  let t = /(?:^|\s)(\/[^\s/]*)$/.exec(e)?.[1];
259
260
  return t ? {
260
261
  leadOffset: e.length - t.length,
261
262
  matchingString: t.slice(1),
262
263
  replaceableString: t
263
264
  } : null;
264
- }, pt = class extends qe {
265
+ }, mt = class extends qe {
265
266
  command;
266
267
  constructor(e) {
267
268
  super(e.name), this.command = e;
268
269
  }
269
- }, mt = (e) => {
270
- let t = U(21), { options: n, selectedIndex: r, onSelect: i, onHighlight: s } = e, c;
270
+ }, ht = (e) => {
271
+ let t = H(21), { options: n, selectedIndex: r, onSelect: i, onHighlight: s } = e, c;
271
272
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = { key: "menu" }, t[0] = c) : c = t[0];
272
- let l = H(c), u;
273
+ let l = V(c), u;
273
274
  t[1] === l ? u = t[2] : (u = l(), t[1] = l, t[2] = u);
274
275
  let d = u, f, p;
275
276
  t[3] !== n || t[4] !== r ? (f = () => {
276
277
  n[r ?? -1]?.ref?.current?.scrollIntoView({ block: "nearest" });
277
- }, p = [n, r], t[3] = n, t[4] = r, t[5] = f, t[6] = p) : (f = t[5], p = t[6]), q(f, p);
278
+ }, p = [n, r], t[3] = n, t[4] = r, t[5] = f, t[6] = p) : (f = t[5], p = t[6]), K(f, p);
278
279
  let m = d.content, h;
279
280
  if (t[7] !== s || t[8] !== i || t[9] !== n || t[10] !== r) {
280
281
  let e;
281
- t[12] !== s || t[13] !== i || t[14] !== r ? (e = (e, t) => /* @__PURE__ */ W(o, {
282
+ t[12] !== s || t[13] !== i || t[14] !== r ? (e = (e, t) => /* @__PURE__ */ U(o, {
282
283
  id: `typeahead-item-${t}`,
283
284
  ref: e.setRefElement,
284
285
  role: "option",
@@ -290,19 +291,19 @@ var ft = (e) => {
290
291
  description: e.command.disabledReason ?? e.command.description,
291
292
  disabled: !!e.command.disabledReason,
292
293
  isSelected: r === t,
293
- onMouseDown: gt,
294
+ onMouseDown: _t,
294
295
  onPointerMove: () => s(t),
295
296
  onActivate: () => i(e, t)
296
297
  }, e.key), t[12] = s, t[13] = i, t[14] = r, t[15] = e) : e = t[15], h = n.map(e), t[7] = s, t[8] = i, t[9] = n, t[10] = r, t[11] = h;
297
298
  } else h = t[11];
298
299
  let g;
299
- t[16] === h ? g = t[17] : (g = /* @__PURE__ */ W(a, {
300
+ t[16] === h ? g = t[17] : (g = /* @__PURE__ */ U(a, {
300
301
  maxH: "xs",
301
302
  showHorizontalScrollbar: !1,
302
303
  children: h
303
304
  }), t[16] = h, t[17] = g);
304
305
  let _;
305
- return t[18] !== d.content || t[19] !== g ? (_ = /* @__PURE__ */ W(M, {
306
+ return t[18] !== d.content || t[19] !== g ? (_ = /* @__PURE__ */ U(j, {
306
307
  css: m,
307
308
  position: "absolute",
308
309
  bottom: "100%",
@@ -310,20 +311,20 @@ var ft = (e) => {
310
311
  zIndex: "popover",
311
312
  children: g
312
313
  }), t[18] = d.content, t[19] = g, t[20] = _) : _ = t[20], _;
313
- }, ht = (e) => {
314
- let t = U(16), { commands: n } = e, [r] = $(), [i, a] = ne(null), o, s;
314
+ }, gt = (e) => {
315
+ let t = H(16), { commands: n } = e, [r] = $(), [i, a] = X(null), o, s;
315
316
  t[0] === r ? (o = t[1], s = t[2]) : (o = () => {
316
317
  let e = r.getRootElement();
317
- e?.contains(e.ownerDocument.activeElement) && r.update(_t);
318
- }, s = [r], t[0] = r, t[1] = o, t[2] = s), q(o, s);
318
+ e?.contains(e.ownerDocument.activeElement) && r.update(vt);
319
+ }, s = [r], t[0] = r, t[1] = o, t[2] = s), K(o, s);
319
320
  let c;
320
321
  if (t[3] !== n || t[4] !== i) {
321
322
  let e;
322
- t[6] === i ? e = t[7] : (e = (e) => e.name.startsWith(`/${i ?? ""}`), t[6] = i, t[7] = e), c = n.filter(e).map(vt), t[3] = n, t[4] = i, t[5] = c;
323
+ t[6] === i ? e = t[7] : (e = (e) => e.name.startsWith(`/${i ?? ""}`), t[6] = i, t[7] = e), c = n.filter(e).map(yt), t[3] = n, t[4] = i, t[5] = c;
323
324
  } else c = t[5];
324
325
  let l = c, u;
325
326
  t[8] === n ? u = t[9] : (u = (e) => {
326
- let t = ft(e);
327
+ let t = pt(e);
327
328
  return !t || !n.some((e) => e.name.startsWith(`/${t.matchingString}`)) ? null : t;
328
329
  }, t[8] = n, t[9] = u);
329
330
  let d;
@@ -333,27 +334,27 @@ var ft = (e) => {
333
334
  }), e.command.onSelect?.());
334
335
  }, t[10] = r, t[11] = d);
335
336
  let f;
336
- return t[12] !== l || t[13] !== u || t[14] !== d ? (f = /* @__PURE__ */ W(Ke, {
337
+ return t[12] !== l || t[13] !== u || t[14] !== d ? (f = /* @__PURE__ */ U(Ke, {
337
338
  onQueryChange: a,
338
339
  options: l,
339
340
  triggerFn: u,
340
341
  onSelectOption: d,
341
- menuRenderFn: yt
342
+ menuRenderFn: bt
342
343
  }), t[12] = l, t[13] = u, t[14] = d, t[15] = f) : f = t[15], f;
343
344
  };
344
- function gt(e) {
345
+ function _t(e) {
345
346
  return e.preventDefault();
346
347
  }
347
- function _t() {
348
+ function vt() {
348
349
  let e = Oe();
349
350
  e && Me(e.clone());
350
351
  }
351
- function vt(e) {
352
- return new pt(e);
352
+ function yt(e) {
353
+ return new mt(e);
353
354
  }
354
- function yt(e, t) {
355
+ function bt(e, t) {
355
356
  let { options: n, selectedIndex: r, selectOptionAndCleanUp: i, setHighlightedIndex: a } = t;
356
- return e.current?.setAttribute("aria-label", "Harness commands"), e.current ? ue(/* @__PURE__ */ W(mt, {
357
+ return e.current?.setAttribute("aria-label", "Harness commands"), e.current ? ue(/* @__PURE__ */ U(ht, {
357
358
  options: n,
358
359
  selectedIndex: r,
359
360
  onHighlight: a,
@@ -363,15 +364,28 @@ function yt(e, t) {
363
364
  }), e.current) : null;
364
365
  }
365
366
  //#endregion
366
- //#region src/components/rich-text/prompt-input/utils.ts
367
- var bt = (e) => {
367
+ //#region src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx
368
+ var xt = (e) => {
369
+ let t = H(7), { requested: n, isEditable: r, onComplete: i } = e, [a] = $(), o = Xe(), s, c;
370
+ return t[0] !== a || t[1] !== r || t[2] !== i || t[3] !== o || t[4] !== n ? (s = () => {
371
+ if (!n || !r || !o) return;
372
+ let e = a.getRootElement(), t = document.activeElement;
373
+ t instanceof HTMLElement && !e?.contains(t) && (t.isContentEditable || t.matches("input, textarea, select, iframe")) || e?.focus(), i?.();
374
+ }, c = [
375
+ n,
376
+ r,
377
+ o,
378
+ a,
379
+ i
380
+ ], t[0] = a, t[1] = r, t[2] = i, t[3] = o, t[4] = n, t[5] = s, t[6] = c) : (s = t[5], c = t[6]), J(s, c), null;
381
+ }, St = (e) => {
368
382
  let t = "", n = e.getChildren(), r = n.length;
369
383
  for (let e = 0; e < r; e++) {
370
384
  let i = n[e];
371
385
  t += i.getTextContent(), ke(i) && e !== r - 1 && !i.isInline() && (t += "\n");
372
386
  }
373
387
  return t;
374
- }, xt = (e) => e.type === "paragraph" && !!e.children?.length, St = (e) => {
388
+ }, Ct = (e) => e.type === "paragraph" && !!e.children?.length, wt = (e) => {
375
389
  if (e.type === "comment") return "";
376
390
  let t = typeof e.text == "string" ? e.text : "", n = e.children;
377
391
  if (!Array.isArray(n)) return t;
@@ -382,16 +396,16 @@ var bt = (e) => {
382
396
  e !== r - 1 && (t += "\n");
383
397
  continue;
384
398
  }
385
- t += St(i), xt(i) && (t += "\n");
399
+ t += wt(i), Ct(i) && (t += "\n");
386
400
  }
387
401
  return t;
388
- }, Ct = (e) => {
402
+ }, Tt = (e) => {
389
403
  try {
390
- return St(JSON.parse(e).root ?? {});
404
+ return wt(JSON.parse(e).root ?? {});
391
405
  } catch {
392
406
  return "";
393
407
  }
394
- }, wt = { root: {
408
+ }, Et = { root: {
395
409
  direction: "ltr",
396
410
  format: "",
397
411
  indent: 0,
@@ -407,7 +421,7 @@ var bt = (e) => {
407
421
  children: []
408
422
  }]
409
423
  } };
410
- function Tt(e = "") {
424
+ function Dt(e = "") {
411
425
  return e.trim() ? { root: {
412
426
  direction: "ltr",
413
427
  format: "",
@@ -431,40 +445,40 @@ function Tt(e = "") {
431
445
  style: ""
432
446
  }] : []
433
447
  }))
434
- } } : JSON.parse(JSON.stringify(wt));
448
+ } } : JSON.parse(JSON.stringify(Et));
435
449
  }
436
450
  //#endregion
437
451
  //#region src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx
438
- function Et(e) {
439
- let t = U(4), { editorRef: n, previousTextRef: r } = e, [i] = $(), a, o;
452
+ function Ot(e) {
453
+ let t = H(4), { editorRef: n, previousTextRef: r } = e, [i] = $(), a, o;
440
454
  return t[0] !== i || t[1] !== r ? (a = () => ({ setEditorValue: (e) => {
441
- let t = i.parseEditorState(JSON.stringify(Tt(e)), Dt);
455
+ let t = i.parseEditorState(JSON.stringify(Dt(e)), kt);
442
456
  i.setEditorState(t), r.current = e, i.focus();
443
- } }), o = [i, r], t[0] = i, t[1] = r, t[2] = a, t[3] = o) : (a = t[2], o = t[3]), J(n, a, o), null;
457
+ } }), o = [i, r], t[0] = i, t[1] = r, t[2] = a, t[3] = o) : (a = t[2], o = t[3]), q(n, a, o), null;
444
458
  }
445
- function Dt() {
459
+ function kt() {
446
460
  De().selectEnd();
447
461
  }
448
462
  //#endregion
449
463
  //#region src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts
450
- var Ot = (e) => e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, kt = (e) => e.key === "ArrowUp" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, At = (e) => e.key === "ArrowDown" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, jt = (e, t) => {
464
+ var At = (e) => e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, jt = (e) => e.key === "ArrowUp" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, Mt = (e) => e.key === "ArrowDown" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, Nt = (e, t) => {
451
465
  t.preventDefault(), t.shiftKey ? e.dispatchCommand(Ie, !1) : e.dispatchCommand(Le, void 0);
452
466
  };
453
- function Mt(e) {
454
- let t = U(6), { onSubmit: n, onRecallPrevious: r, onRecallNext: i } = e, [a] = $(), o, s;
455
- return t[0] !== a || t[1] !== i || t[2] !== r || t[3] !== n ? (o = () => a.registerCommand(Re, (e) => a.getRootElement()?.hasAttribute("aria-controls") ? e.key === "Enter" && !Ot(e) && (jt(a, e), !0) : Ot(e) ? (e.preventDefault(), n?.(), !0) : kt(e) && r?.() || At(e) && i?.() ? (e.preventDefault(), !0) : !1, Ne), s = [
467
+ function Pt(e) {
468
+ let t = H(6), { onSubmit: n, onRecallPrevious: r, onRecallNext: i } = e, [a] = $(), o, s;
469
+ return t[0] !== a || t[1] !== i || t[2] !== r || t[3] !== n ? (o = () => a.registerCommand(Re, (e) => a.getRootElement()?.hasAttribute("aria-controls") ? e.key === "Enter" && !At(e) && (Nt(a, e), !0) : At(e) ? (e.preventDefault(), n?.(), !0) : jt(e) && r?.() || Mt(e) && i?.() ? (e.preventDefault(), !0) : !1, Ne), s = [
456
470
  a,
457
471
  n,
458
472
  r,
459
473
  i
460
- ], t[0] = a, t[1] = i, t[2] = r, t[3] = n, t[4] = o, t[5] = s) : (o = t[4], s = t[5]), q(o, s), null;
474
+ ], t[0] = a, t[1] = i, t[2] = r, t[3] = n, t[4] = o, t[5] = s) : (o = t[4], s = t[5]), K(o, s), null;
461
475
  }
462
476
  //#endregion
463
477
  //#region src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx
464
- var Nt = (e) => {
478
+ var Ft = (e) => {
465
479
  let t = Ee(e.key);
466
480
  return t?.isAttached() ? e.type === "text" ? je(t) && e.offset <= t.getTextContentSize() : ke(t) && e.offset <= t.getChildrenSize() : !1;
467
- }, Pt = (e) => {
481
+ }, It = (e) => {
468
482
  let t = [], n = Ee(e.key);
469
483
  for (; n?.getParent();) t.unshift(n.getIndexWithinParent()), n = n.getParent();
470
484
  return {
@@ -472,7 +486,7 @@ var Nt = (e) => {
472
486
  offset: e.offset,
473
487
  type: e.type
474
488
  };
475
- }, Ft = (e) => {
489
+ }, Lt = (e) => {
476
490
  let t = De();
477
491
  for (let n of e.path) t = ke(t) ? t.getChildAtIndex(n) ?? void 0 : void 0;
478
492
  return t ? {
@@ -480,28 +494,28 @@ var Nt = (e) => {
480
494
  offset: e.offset,
481
495
  type: e.type
482
496
  } : void 0;
483
- }, It = (e) => {
497
+ }, Rt = (e) => {
484
498
  let { isEditable: t, initialSelection: n, onSelectionChange: r } = e, i = Y(n), a = Y(r);
485
499
  a.current = r;
486
500
  let [o] = $(), s = Y(null), c = Y(t);
487
- return c.current = t, te(() => o.registerUpdateListener(({ editorState: e }) => {
501
+ return c.current = t, J(() => o.registerUpdateListener(({ editorState: e }) => {
488
502
  e.read(() => {
489
503
  let e = s.current;
490
- if (e && (!Nt(e.anchor) || !Nt(e.focus)) && (s.current = null), !c.current) return;
504
+ if (e && (!Ft(e.anchor) || !Ft(e.focus)) && (s.current = null), !c.current) return;
491
505
  let t = Oe();
492
506
  Ae(t) && (s.current = t.clone(), a.current?.({
493
- anchor: Pt(t.anchor),
494
- focus: Pt(t.focus)
507
+ anchor: It(t.anchor),
508
+ focus: It(t.focus)
495
509
  }));
496
510
  });
497
- }), [o]), te(() => {
511
+ }), [o]), J(() => {
498
512
  if (!t) return;
499
513
  let e = o.getRootElement();
500
514
  if (!e || e.contains(document.activeElement) || !s.current && !i.current) return;
501
515
  let n = () => {
502
516
  o.update(() => {
503
517
  if (!s.current && i.current) {
504
- let e = Ft(i.current.anchor), t = Ft(i.current.focus);
518
+ let e = Lt(i.current.anchor), t = Lt(i.current.focus);
505
519
  if (e && t) {
506
520
  let n = we();
507
521
  n.anchor.set(e.key, e.offset, e.type), n.focus.set(t.key, t.offset, t.type), s.current = n;
@@ -509,113 +523,120 @@ var Nt = (e) => {
509
523
  i.current = void 0;
510
524
  }
511
525
  let e = s.current;
512
- e && Nt(e.anchor) && Nt(e.focus) && Me(e.clone());
526
+ e && Ft(e.anchor) && Ft(e.focus) && Me(e.clone());
513
527
  }, { discrete: !0 });
514
528
  };
515
529
  return e.addEventListener("focus", n, { once: !0 }), () => e.removeEventListener("focus", n);
516
530
  }, [o, t]), null;
517
- }, Lt = {
531
+ }, zt = {
518
532
  ...f,
519
533
  paragraph: "rich-text__p rich-text__p--no-margin"
520
- }, Rt = [rt, Ye], zt = K((e, t) => {
521
- let n = U(49), { initialSelection: r, onSelectionChange: i, defaultState: a, debug: o, isEditable: s, placeholder: c } = e, l = o !== void 0 && o, u = s === void 0 || s, { onChange: f, onError: p, onSubmit: h, onRecallPrevious: g, onRecallNext: _, commands: v } = e, y = p === void 0 ? Bt : p, x = v === void 0 ? [] : v, S;
522
- n[0] !== a || n[1] !== u || n[2] !== y ? (S = {
534
+ }, Bt = [it, Ye], Vt = G((e, t) => {
535
+ let n = H(54), { initialSelection: r, onSelectionChange: i, defaultState: a, debug: o, isEditable: s, placeholder: c } = e, l = o !== void 0 && o, u = s === void 0 || s, { focusRequested: f, onFocusRequestComplete: p } = e, h = f !== void 0 && f, { onChange: g, onError: _, onSubmit: v, onRecallPrevious: y, onRecallNext: x, commands: S } = e, C = _ === void 0 ? Ht : _, w = S === void 0 ? [] : S, T;
536
+ n[0] !== a || n[1] !== u || n[2] !== C ? (T = {
523
537
  namespace: "PROMPT_EDITOR",
524
- nodes: Rt,
538
+ nodes: Bt,
525
539
  editorState: a,
526
540
  editable: u,
527
- onError: y,
528
- theme: Lt
529
- }, n[0] = a, n[1] = u, n[2] = y, n[3] = S) : S = n[3];
530
- let C = S, w;
531
- n[4] === a ? w = n[5] : (w = Ct(a), n[4] = a, n[5] = w);
532
- let T = Y(w), E;
533
- n[6] === c ? E = n[7] : (E = c ?? /* @__PURE__ */ W(z, {
541
+ onError: C,
542
+ theme: zt
543
+ }, n[0] = a, n[1] = u, n[2] = C, n[3] = T) : T = n[3];
544
+ let E = T, D;
545
+ n[4] === a ? D = n[5] : (D = Tt(a), n[4] = a, n[5] = D);
546
+ let ee = Y(D), O;
547
+ n[6] === c ? O = n[7] : (O = c ?? /* @__PURE__ */ U(R, {
534
548
  textStyle: "label/M/regular",
535
549
  color: "fg.subtle",
536
550
  pointerEvents: "none",
537
551
  position: "absolute",
538
552
  top: "0",
539
553
  children: "Type your message here."
540
- }), n[6] = c, n[7] = E);
541
- let D = E, O = ee, k = pe, A;
542
- n[8] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ W(Je, {}), n[8] = A) : A = n[8];
543
- let j;
544
- n[9] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ W(d, { fullWidth: !0 }), n[9] = j) : j = n[9];
545
- let M;
546
- n[10] === D ? M = n[11] : (M = /* @__PURE__ */ W(ve, {
547
- contentEditable: j,
548
- placeholder: D,
549
- ErrorBoundary: me
550
- }), n[10] = D, n[11] = M);
554
+ }), n[6] = c, n[7] = O);
555
+ let k = O, A = te, j = pe, M;
556
+ n[8] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ U(Je, {}), n[8] = M) : M = n[8];
551
557
  let N;
552
- n[12] === f ? N = n[13] : (N = /* @__PURE__ */ W(Ge, {
558
+ n[9] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ U(d, { fullWidth: !0 }), n[9] = N) : N = n[9];
559
+ let P;
560
+ n[10] === k ? P = n[11] : (P = /* @__PURE__ */ U(ve, {
561
+ contentEditable: N,
562
+ placeholder: k,
563
+ ErrorBoundary: me
564
+ }), n[10] = k, n[11] = P);
565
+ let F;
566
+ n[12] === g ? F = n[13] : (F = /* @__PURE__ */ U(Ge, {
553
567
  ignoreSelectionChange: !0,
554
568
  ignoreHistoryMergeTagChange: !1,
555
569
  onChange: (e) => {
556
570
  e.read(() => {
557
- let t = bt(De());
558
- t !== T.current && (T.current = t, f?.(t, e.toJSON()));
571
+ let t = St(De());
572
+ t !== ee.current && (ee.current = t, g?.(t, e.toJSON()));
559
573
  });
560
574
  }
561
- }), n[12] = f, n[13] = N);
562
- let P;
563
- n[14] === t ? P = n[15] : (P = /* @__PURE__ */ W(Et, {
564
- editorRef: t,
565
- previousTextRef: T
566
- }), n[14] = t, n[15] = P);
567
- let F;
568
- n[16] === u ? F = n[17] : (F = /* @__PURE__ */ W(m, { isEditable: u }), n[16] = u, n[17] = F);
575
+ }), n[12] = g, n[13] = F);
569
576
  let I;
570
- n[18] !== r || n[19] !== u || n[20] !== i ? (I = /* @__PURE__ */ W(It, {
577
+ n[14] === t ? I = n[15] : (I = /* @__PURE__ */ U(Ot, {
578
+ editorRef: t,
579
+ previousTextRef: ee
580
+ }), n[14] = t, n[15] = I);
581
+ let L;
582
+ n[16] === u ? L = n[17] : (L = /* @__PURE__ */ U(m, { isEditable: u }), n[16] = u, n[17] = L);
583
+ let z;
584
+ n[18] !== r || n[19] !== u || n[20] !== i ? (z = /* @__PURE__ */ U(Rt, {
571
585
  isEditable: u,
572
586
  initialSelection: r,
573
587
  onSelectionChange: i
574
- }), n[18] = r, n[19] = u, n[20] = i, n[21] = I) : I = n[21];
575
- let L;
576
- n[22] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ W(dt, {}), n[22] = L) : L = n[22];
577
- let R;
578
- n[23] !== _ || n[24] !== g || n[25] !== h ? (R = /* @__PURE__ */ W(Mt, {
579
- onSubmit: h,
580
- onRecallPrevious: g,
581
- onRecallNext: _
582
- }), n[23] = _, n[24] = g, n[25] = h, n[26] = R) : R = n[26];
583
- let B = ht, V = x.map(Vt).join("\n"), H;
584
- n[27] !== B || n[28] !== x || n[29] !== V ? (H = /* @__PURE__ */ W(B, { commands: x }, V), n[27] = B, n[28] = x, n[29] = V, n[30] = H) : H = n[30];
585
- let K;
586
- n[31] === l ? K = n[32] : (K = l ? /* @__PURE__ */ W(b, {}) : "", n[31] = l, n[32] = K);
587
- let q;
588
- n[33] !== k || n[34] !== C || n[35] !== A || n[36] !== M || n[37] !== N || n[38] !== P || n[39] !== F || n[40] !== I || n[41] !== L || n[42] !== R || n[43] !== H || n[44] !== K ? (q = /* @__PURE__ */ G(k, {
589
- initialConfig: C,
588
+ }), n[18] = r, n[19] = u, n[20] = i, n[21] = z) : z = n[21];
589
+ let B;
590
+ n[22] !== h || n[23] !== u || n[24] !== p ? (B = /* @__PURE__ */ U(xt, {
591
+ requested: h,
592
+ isEditable: u,
593
+ onComplete: p
594
+ }), n[22] = h, n[23] = u, n[24] = p, n[25] = B) : B = n[25];
595
+ let V;
596
+ n[26] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ U(ft, {}), n[26] = V) : V = n[26];
597
+ let G;
598
+ n[27] !== x || n[28] !== y || n[29] !== v ? (G = /* @__PURE__ */ U(Pt, {
599
+ onSubmit: v,
600
+ onRecallPrevious: y,
601
+ onRecallNext: x
602
+ }), n[27] = x, n[28] = y, n[29] = v, n[30] = G) : G = n[30];
603
+ let K = gt, q = w.map(Ut).join("\n"), J;
604
+ n[31] !== K || n[32] !== w || n[33] !== q ? (J = /* @__PURE__ */ U(K, { commands: w }, q), n[31] = K, n[32] = w, n[33] = q, n[34] = J) : J = n[34];
605
+ let X;
606
+ n[35] === l ? X = n[36] : (X = l ? /* @__PURE__ */ U(b, {}) : "", n[35] = l, n[36] = X);
607
+ let Z;
608
+ n[37] !== j || n[38] !== E || n[39] !== M || n[40] !== P || n[41] !== F || n[42] !== I || n[43] !== L || n[44] !== z || n[45] !== B || n[46] !== V || n[47] !== G || n[48] !== J || n[49] !== X ? (Z = /* @__PURE__ */ W(j, {
609
+ initialConfig: E,
590
610
  children: [
591
- A,
592
611
  M,
593
- N,
594
612
  P,
595
613
  F,
596
614
  I,
597
615
  L,
598
- R,
599
- H,
600
- K
616
+ z,
617
+ B,
618
+ V,
619
+ G,
620
+ J,
621
+ X
601
622
  ]
602
- }), n[33] = k, n[34] = C, n[35] = A, n[36] = M, n[37] = N, n[38] = P, n[39] = F, n[40] = I, n[41] = L, n[42] = R, n[43] = H, n[44] = K, n[45] = q) : q = n[45];
603
- let J;
604
- return n[46] !== O || n[47] !== q ? (J = /* @__PURE__ */ W(O, {
623
+ }), n[37] = j, n[38] = E, n[39] = M, n[40] = P, n[41] = F, n[42] = I, n[43] = L, n[44] = z, n[45] = B, n[46] = V, n[47] = G, n[48] = J, n[49] = X, n[50] = Z) : Z = n[50];
624
+ let Q;
625
+ return n[51] !== A || n[52] !== Z ? (Q = /* @__PURE__ */ U(A, {
605
626
  direction: "column",
606
627
  justifyContent: "space-between",
607
628
  width: "100%",
608
629
  position: "relative",
609
- children: q
610
- }), n[46] = O, n[47] = q, n[48] = J) : J = n[48], J;
630
+ children: Z
631
+ }), n[51] = A, n[52] = Z, n[53] = Q) : Q = n[53], Q;
611
632
  });
612
- function Bt() {}
613
- function Vt(e) {
633
+ function Ht() {}
634
+ function Ut(e) {
614
635
  return e.name;
615
636
  }
616
637
  //#endregion
617
638
  //#region src/components/chat-ui/links/chat-code-link-node.ts
618
- var Ht = class e extends ze {
639
+ var Wt = class e extends ze {
619
640
  __href;
620
641
  __description;
621
642
  __animateArrival;
@@ -644,8 +665,8 @@ var Ht = class e extends ze {
644
665
  updateDOM(e) {
645
666
  return e.__text !== this.__text || e.__format !== this.__format || e.__href !== this.__href;
646
667
  }
647
- }, Ut = (e, t, n) => {
648
- if (e instanceof Ht || !e.hasFormat("code")) return;
668
+ }, Gt = (e, t, n) => {
669
+ if (e instanceof Wt || !e.hasFormat("code")) return;
649
670
  let r = e.getParent();
650
671
  if (!r || r.getType() === "code" || r.getType().includes("link")) return;
651
672
  let i = {
@@ -653,9 +674,9 @@ var Ht = class e extends ze {
653
674
  origin: "inline-code"
654
675
  }, a = u(i, n);
655
676
  if (!a || a.kind === "external") return;
656
- let o = new Ht(i.source, t.resolveHref(i), t.describe?.(i), void 0, e instanceof j);
677
+ let o = new Wt(i.source, t.resolveHref(i), t.describe?.(i), void 0, e instanceof A);
657
678
  o.setFormat(e.getFormat()), e.replace(o);
658
- }, Wt = (e) => e instanceof MouseEvent && (e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey), Gt = (e, t) => {
679
+ }, Kt = (e) => e instanceof MouseEvent && (e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey), qt = (e, t) => {
659
680
  if (t instanceof KeyboardEvent && t.key !== "Enter") return;
660
681
  let n = t.target;
661
682
  if (!(n instanceof Element)) return;
@@ -667,9 +688,9 @@ var Ht = class e extends ze {
667
688
  }, a = u(i, window.location.origin);
668
689
  if (!a) return;
669
690
  let o = e.resolveHref(i);
670
- (a.kind !== "external" || o) && (o && Wt(t) || (t.preventDefault(), t.stopImmediatePropagation(), e.open(i)));
671
- }, Kt = () => {
672
- let e = U(4), [t] = $(), n = x(), r, i;
691
+ (a.kind !== "external" || o) && (o && Kt(t) || (t.preventDefault(), t.stopImmediatePropagation(), e.open(i)));
692
+ }, Jt = () => {
693
+ let e = H(4), [t] = $(), n = x(), r, i;
673
694
  return e[0] !== t || e[1] !== n ? (r = () => {
674
695
  if (!n) return;
675
696
  let e = t.registerNodeTransform(h, (e) => {
@@ -689,98 +710,98 @@ var Ht = class e extends ze {
689
710
  }, s = u(o, window.location.origin);
690
711
  s && (s.kind !== "external" || n.resolveHref(o)) && (e.title = n.describe?.(o) ?? `Open file or document: ${a}`);
691
712
  }
692
- }), i = (e) => Ut(e, n, window.location.origin), a = t.registerNodeTransform(ze, i), o = t.registerNodeTransform(j, i), s = (e) => Gt(n, e), c = t.registerRootListener((e, t) => {
713
+ }), i = (e) => Gt(e, n, window.location.origin), a = t.registerNodeTransform(ze, i), o = t.registerNodeTransform(A, i), s = (e) => qt(n, e), c = t.registerRootListener((e, t) => {
693
714
  t?.removeEventListener("click", s, !0), t?.removeEventListener("keydown", s, !0), e?.addEventListener("click", s, !0), e?.addEventListener("keydown", s, !0), e && (e.dataset.chatLinks = "true");
694
715
  });
695
716
  return () => {
696
717
  e(), a(), o(), r(), c();
697
718
  };
698
- }, i = [t, n], e[0] = t, e[1] = n, e[2] = r, e[3] = i) : (r = e[2], i = e[3]), q(r, i), null;
719
+ }, i = [t, n], e[0] = t, e[1] = n, e[2] = r, e[3] = i) : (r = e[2], i = e[3]), K(r, i), null;
699
720
  };
700
721
  //#endregion
701
722
  //#region src/components/rich-text/shared/plugins/StateUpdatePlugin.tsx
702
- function qt(e) {
703
- let t = U(5), { value: n, onUpdate: r } = e, [i] = $(), a, o;
723
+ function Yt(e) {
724
+ let t = H(5), { value: n, onUpdate: r } = e, [i] = $(), a, o;
704
725
  return t[0] !== i || t[1] !== r || t[2] !== n ? (a = () => {
705
726
  i && i.update(() => r(n), { tag: "history-merge" });
706
727
  }, o = [
707
728
  n,
708
729
  i,
709
730
  r
710
- ], t[0] = i, t[1] = r, t[2] = n, t[3] = a, t[4] = o) : (a = t[3], o = t[4]), q(a, o), null;
731
+ ], t[0] = i, t[1] = r, t[2] = n, t[3] = a, t[4] = o) : (a = t[3], o = t[4]), K(a, o), null;
711
732
  }
712
733
  //#endregion
713
734
  //#region src/components/rich-text/shared/streaming-markdown.ts
714
- var Jt = (e, t) => {
735
+ var Xt = (e, t) => {
715
736
  let n = (e) => {
716
737
  let { children: t, ...n } = e.exportJSON();
717
- return e instanceof Ht ? JSON.stringify({
738
+ return e instanceof Wt ? JSON.stringify({
718
739
  ...n,
719
740
  href: e.__href,
720
741
  description: e.__description
721
742
  }) : JSON.stringify(n);
722
743
  };
723
744
  return n(e) === n(t);
724
- }, Yt = (e, t) => e.getFormat() === t.getFormat() && e.getStyle() === t.getStyle(), Xt = (e) => !!(e && je(e) && ["text", "streaming-text"].includes(e.getType())), Zt = (e, t) => k(t).setFormat(e.getFormat()).setStyle(e.getStyle()), Qt = (e, t) => {
745
+ }, Zt = (e, t) => e.getFormat() === t.getFormat() && e.getStyle() === t.getStyle(), Qt = (e) => !!(e && je(e) && ["text", "streaming-text"].includes(e.getType())), $t = (e, t) => O(t).setFormat(e.getFormat()).setStyle(e.getStyle()), en = (e, t) => {
725
746
  if (!t) return e;
726
- if (Xt(e)) return Zt(e, e.getTextContent());
747
+ if (Qt(e)) return $t(e, e.getTextContent());
727
748
  let n = [e];
728
749
  for (; n.length;) {
729
750
  let e = n.pop();
730
- if (ke(e)) for (let t of e.getChildren()) Xt(t) ? t.replace(Zt(t, t.getTextContent())) : n.push(t);
751
+ if (ke(e)) for (let t of e.getChildren()) Qt(t) ? t.replace($t(t, t.getTextContent())) : n.push(t);
731
752
  }
732
753
  return e;
733
- }, $t = (e, t, n, r) => {
754
+ }, tn = (e, t, n, r) => {
734
755
  let i = [], a = n, o = t[a], s = e.getTextContent();
735
- for (; je(o) && Yt(o, e) && o.getTextContent().length > 0 && s.startsWith(o.getTextContent()) && (s.length === o.getTextContentSize() || Xt(o));) s = s.slice(o.getTextContentSize()), i.push(o), o = t[++a];
736
- return s && Xt(o) ? (o.setTextContent(s).setFormat(e.getFormat()).setStyle(e.getStyle()), i.push(o), a += 1) : s && i.push(r ? Zt(e, s) : e.setTextContent(s).toggleUnmergeable()), {
756
+ for (; je(o) && Zt(o, e) && o.getTextContent().length > 0 && s.startsWith(o.getTextContent()) && (s.length === o.getTextContentSize() || Qt(o));) s = s.slice(o.getTextContentSize()), i.push(o), o = t[++a];
757
+ return s && Qt(o) ? (o.setTextContent(s).setFormat(e.getFormat()).setStyle(e.getStyle()), i.push(o), a += 1) : s && i.push(r ? $t(e, s) : e.setTextContent(s).toggleUnmergeable()), {
737
758
  nodes: i,
738
759
  cursor: a
739
760
  };
740
- }, en = (e, t, n) => {
761
+ }, nn = (e, t, n) => {
741
762
  let r = e.getChildren(), i = [], a = 0;
742
763
  for (let e of t) {
743
764
  let t = r[a];
744
- if (Xt(e)) {
745
- let t = $t(e, r, a, n);
765
+ if (Qt(e)) {
766
+ let t = tn(e, r, a, n);
746
767
  i.push(...t.nodes), a = t.cursor;
747
768
  continue;
748
769
  }
749
- t && Jt(t, e) ? (ke(t) && ke(e) && en(t, e.getChildren(), n), i.push(t), a += 1) : (i.push(Qt(e, n && !t)), t && (a += 1));
770
+ t && Xt(t, e) ? (ke(t) && ke(e) && nn(t, e.getChildren(), n), i.push(t), a += 1) : (i.push(en(e, n && !t)), t && (a += 1));
750
771
  }
751
772
  (i.length !== r.length || i.some((e, t) => e.getKey() !== r[t]?.getKey())) && e.splice(0, e.getChildrenSize(), i);
752
- }, tn = (e, t, n = !0) => {
753
- en(De(), D(e, t), n);
754
- }, nn = "markdown-source-import", rn = {
773
+ }, rn = (e, t, n = !0) => {
774
+ nn(De(), D(e, t), n);
775
+ }, an = "markdown-source-import", on = {
755
776
  rowNumbers: !1,
756
777
  wrapRows: !0
757
778
  };
758
- function an(e) {
759
- let t = U(5), n = x(), r = e.linkHandler ?? n, i;
760
- t[0] === e ? i = t[1] : (i = /* @__PURE__ */ W(on, { ...e }), t[0] = e, t[1] = i);
779
+ function sn(e) {
780
+ let t = H(5), n = x(), r = e.linkHandler ?? n, i;
781
+ t[0] === e ? i = t[1] : (i = /* @__PURE__ */ U(cn, { ...e }), t[0] = e, t[1] = i);
761
782
  let a;
762
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ W(c, {
783
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ U(c, {
763
784
  handler: r,
764
785
  children: i
765
786
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
766
787
  }
767
- function on(e) {
768
- let { debug: t = !1, defaultState: n = "", fullWidth: r = !1, isEditable: i = !1, streaming: a = !1, resolveMarkdownUrl: o, onChange: s } = e, { frontmatter: c, body: u } = E(n), f = i && !!s, h = V({ key: "streamingText" }), x = Y({
788
+ function cn(e) {
789
+ let { debug: t = !1, defaultState: n = "", fullWidth: r = !1, isEditable: i = !1, streaming: a = !1, resolveMarkdownUrl: o, onChange: s } = e, { frontmatter: c, body: u } = E(n), f = i && !!s, h = B({ key: "streamingText" }), x = Y({
769
790
  body: u,
770
791
  resolver: o
771
792
  }), T = Y(null);
772
793
  T.current ??= w(u, o);
773
794
  let D = {
774
795
  namespace: "RICH_MESSAGE",
775
- nodes: [...C, Ht],
796
+ nodes: [...C, Wt],
776
797
  editorState: () => {
777
- Se(nn), i ? T.current?.importToLexical() : g(u, o);
798
+ Se(an), i ? T.current?.importToLexical() : g(u, o);
778
799
  },
779
800
  onError: (e) => console.error(e),
780
801
  editable: i,
781
802
  theme: y
782
803
  };
783
- return /* @__PURE__ */ W(ee, {
804
+ return /* @__PURE__ */ U(te, {
784
805
  className: "rich-text",
785
806
  "data-rich-message": "true",
786
807
  css: h(),
@@ -791,22 +812,22 @@ function on(e) {
791
812
  position: "relative",
792
813
  direction: "column",
793
814
  overflow: "hidden",
794
- children: /* @__PURE__ */ W(l, {
815
+ children: /* @__PURE__ */ U(l, {
795
816
  resolver: o,
796
- children: /* @__PURE__ */ W(A, {
797
- value: rn,
798
- children: /* @__PURE__ */ G(pe, {
817
+ children: /* @__PURE__ */ U(k, {
818
+ value: on,
819
+ children: /* @__PURE__ */ W(pe, {
799
820
  initialConfig: D,
800
821
  children: [
801
- /* @__PURE__ */ W(qt, {
822
+ /* @__PURE__ */ U(Yt, {
802
823
  value: u,
803
824
  onUpdate: (e) => {
804
825
  let t = x.current;
805
826
  if (t.body !== e || t.resolver !== o) {
806
- if (Se(nn), i) {
827
+ if (Se(an), i) {
807
828
  let t = w(e, o);
808
829
  T.current = t, t.importToLexical();
809
- } else tn(e, o, a && e.startsWith(t.body));
830
+ } else rn(e, o, a && e.startsWith(t.body));
810
831
  x.current = {
811
832
  body: e,
812
833
  resolver: o
@@ -814,35 +835,35 @@ function on(e) {
814
835
  }
815
836
  }
816
837
  }),
817
- /* @__PURE__ */ W(ge, {}),
818
- /* @__PURE__ */ W(Kt, {}),
819
- /* @__PURE__ */ W(Xe, { newTab: !0 }),
820
- /* @__PURE__ */ W(_e, {}),
821
- /* @__PURE__ */ W(S, {}),
822
- i ? /* @__PURE__ */ W(ye, { maxIndent: 7 }) : null,
823
- /* @__PURE__ */ W(he, {}),
824
- a ? null : /* @__PURE__ */ W(_, {}),
825
- /* @__PURE__ */ W(v, {}),
826
- /* @__PURE__ */ W(p, {}),
827
- /* @__PURE__ */ W(ve, {
828
- contentEditable: /* @__PURE__ */ W(d, {
838
+ /* @__PURE__ */ U(ge, {}),
839
+ /* @__PURE__ */ U(Jt, {}),
840
+ /* @__PURE__ */ U(Ze, { newTab: !0 }),
841
+ /* @__PURE__ */ U(_e, {}),
842
+ /* @__PURE__ */ U(S, {}),
843
+ i ? /* @__PURE__ */ U(ye, { maxIndent: 7 }) : null,
844
+ /* @__PURE__ */ U(he, {}),
845
+ a ? null : /* @__PURE__ */ U(_, {}),
846
+ /* @__PURE__ */ U(v, {}),
847
+ /* @__PURE__ */ U(p, {}),
848
+ /* @__PURE__ */ U(ve, {
849
+ contentEditable: /* @__PURE__ */ U(d, {
829
850
  fullWidth: r,
830
851
  isRichMessage: !0
831
852
  }),
832
853
  ErrorBoundary: me
833
854
  }),
834
- f ? /* @__PURE__ */ W(Ge, {
855
+ f ? /* @__PURE__ */ U(Ge, {
835
856
  ignoreSelectionChange: !0,
836
857
  ignoreHistoryMergeTagChange: !1,
837
858
  onChange: (e, t, n) => {
838
- n.has(nn) || e.read(() => {
859
+ n.has(an) || e.read(() => {
839
860
  let e = De(), t = T.current?.exportFromLexical(e) ?? "";
840
861
  s?.(c + t);
841
862
  });
842
863
  }
843
864
  }) : null,
844
- /* @__PURE__ */ W(m, { isEditable: i }),
845
- t && /* @__PURE__ */ W(b, {})
865
+ /* @__PURE__ */ U(m, { isEditable: i }),
866
+ t && /* @__PURE__ */ U(b, {})
846
867
  ]
847
868
  })
848
869
  })
@@ -851,37 +872,37 @@ function on(e) {
851
872
  }
852
873
  //#endregion
853
874
  //#region src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx
854
- var sn = {
855
- activity: X,
856
- bell: re,
857
- "circle-alert": ie,
858
- component: Z,
859
- "external-link": Q,
875
+ var ln = {
876
+ activity: Z,
877
+ bell: Q,
878
+ "circle-alert": ne,
879
+ component: re,
880
+ "external-link": ie,
860
881
  "git-branch": ae,
861
882
  info: oe,
862
883
  "message-circle": se,
863
884
  "scan-search": ce,
864
885
  sparkles: le
865
- }, cn = (e) => {
866
- let t = U(2), n = sn[e.name], r;
867
- return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ W(F, {
886
+ }, un = (e) => {
887
+ let t = H(2), n = ln[e.name], r;
888
+ return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ U(P, {
868
889
  as: n,
869
890
  boxSize: "13px"
870
891
  }), t[0] = n, t[1] = r), r;
871
- }, ln = (e) => {
872
- let t = U(12), { item: n, size: r, onActionSelect: i, onRelatedResourceSelect: a } = e, o = n.kind === "message" ? n.attention?.actions : void 0;
892
+ }, dn = (e) => {
893
+ let t = H(12), { item: n, size: r, onActionSelect: i, onRelatedResourceSelect: a } = e, o = n.kind === "message" ? n.attention?.actions : void 0;
873
894
  if (!n.relatedResources?.length && !o?.length) return null;
874
895
  let s;
875
- t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r ? (s = o?.map((e) => /* @__PURE__ */ G(N, {
896
+ t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r ? (s = o?.map((e) => /* @__PURE__ */ W(M, {
876
897
  type: "button",
877
898
  size: r === "compact" ? "2xs" : "xs",
878
899
  variant: "outline",
879
900
  disabled: !i,
880
901
  onClick: () => i?.(e, n),
881
- children: [e.icon ? /* @__PURE__ */ W(cn, { name: e.icon }) : null, e.label]
902
+ children: [e.icon ? /* @__PURE__ */ U(un, { name: e.icon }) : null, e.label]
882
903
  }, e.id)), t[0] = o, t[1] = n, t[2] = i, t[3] = r, t[4] = s) : s = t[4];
883
904
  let c;
884
- t[5] !== n || t[6] !== a || t[7] !== r ? (c = n.relatedResources?.map((e) => /* @__PURE__ */ W(N, {
905
+ t[5] !== n || t[6] !== a || t[7] !== r ? (c = n.relatedResources?.map((e) => /* @__PURE__ */ U(M, {
885
906
  type: "button",
886
907
  size: r === "compact" ? "2xs" : "xs",
887
908
  variant: "ghost",
@@ -890,54 +911,54 @@ var sn = {
890
911
  children: e.label
891
912
  }, `${e.type}:${e.id}`)), t[5] = n, t[6] = a, t[7] = r, t[8] = c) : c = t[8];
892
913
  let l;
893
- return t[9] !== s || t[10] !== c ? (l = /* @__PURE__ */ G(P, {
914
+ return t[9] !== s || t[10] !== c ? (l = /* @__PURE__ */ W(N, {
894
915
  gap: "2xs",
895
916
  flexWrap: "wrap",
896
917
  children: [s, c]
897
918
  }), t[9] = s, t[10] = c, t[11] = l) : l = t[11], l;
898
- }, un = (e) => {
899
- let t = U(7), { attention: n } = e;
919
+ }, fn = (e) => {
920
+ let t = H(7), { attention: n } = e;
900
921
  if (!n.statusLabel) return null;
901
922
  let r = n.icon ?? "bell", i;
902
- t[0] === r ? i = t[1] : (i = /* @__PURE__ */ W(cn, { name: r }), t[0] = r, t[1] = i);
923
+ t[0] === r ? i = t[1] : (i = /* @__PURE__ */ U(un, { name: r }), t[0] = r, t[1] = i);
903
924
  let a;
904
- t[2] === n.statusLabel ? a = t[3] : (a = /* @__PURE__ */ W(z, {
925
+ t[2] === n.statusLabel ? a = t[3] : (a = /* @__PURE__ */ U(R, {
905
926
  textStyle: "label/XS/medium",
906
927
  children: n.statusLabel
907
928
  }), t[2] = n.statusLabel, t[3] = a);
908
929
  let o;
909
- return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ G(P, {
930
+ return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ W(N, {
910
931
  gap: "2xs",
911
932
  color: "fg.warning",
912
933
  children: [i, a]
913
934
  }), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
914
- }, dn = (n) => {
915
- let i = U(50), { item: a, size: o, fallbackActorName: s, formatTimestamp: c, onActionSelect: l, onRelatedResourceSelect: u } = n, d;
935
+ }, pn = (n) => {
936
+ let i = H(50), { item: a, size: o, fallbackActorName: s, formatTimestamp: c, onActionSelect: l, onRelatedResourceSelect: u } = n, d;
916
937
  i[0] !== s || i[1] !== a.actor ? (d = a.actor ?? { name: s }, i[0] = s, i[1] = a.actor, i[2] = d) : d = i[2];
917
938
  let f = d, p;
918
939
  i[3] !== c || i[4] !== a ? (p = a.timestampLabel ?? c(a.createdAt, a), i[3] = c, i[4] = a, i[5] = p) : p = i[5];
919
940
  let m;
920
- i[6] !== a.createdAt || i[7] !== p ? (m = /* @__PURE__ */ W("time", {
941
+ i[6] !== a.createdAt || i[7] !== p ? (m = /* @__PURE__ */ U("time", {
921
942
  dateTime: a.createdAt,
922
943
  children: p
923
944
  }), i[6] = a.createdAt, i[7] = p, i[8] = m) : m = i[8];
924
945
  let h = m;
925
946
  if (a.kind === "event") {
926
947
  let n;
927
- i[9] === a.icon ? n = i[10] : (n = a.icon ? /* @__PURE__ */ W(cn, { name: a.icon }) : void 0, i[9] = a.icon, i[10] = n);
948
+ i[9] === a.icon ? n = i[10] : (n = a.icon ? /* @__PURE__ */ U(un, { name: a.icon }) : void 0, i[9] = a.icon, i[10] = n);
928
949
  let r = o === "compact" ? "sm" : "md", s;
929
- i[11] === a.summary ? s = i[12] : (s = /* @__PURE__ */ W(z, {
950
+ i[11] === a.summary ? s = i[12] : (s = /* @__PURE__ */ U(R, {
930
951
  as: "span",
931
952
  children: a.summary
932
953
  }), i[11] = a.summary, i[12] = s);
933
954
  let c;
934
- i[13] !== a || i[14] !== u || i[15] !== o ? (c = /* @__PURE__ */ W(ln, {
955
+ i[13] !== a || i[14] !== u || i[15] !== o ? (c = /* @__PURE__ */ U(dn, {
935
956
  item: a,
936
957
  size: o,
937
958
  onRelatedResourceSelect: u
938
959
  }), i[13] = a, i[14] = u, i[15] = o, i[16] = c) : c = i[16];
939
960
  let l;
940
- return i[17] !== f || i[18] !== n || i[19] !== r || i[20] !== s || i[21] !== c || i[22] !== h ? (l = /* @__PURE__ */ W(e, { children: /* @__PURE__ */ G(t, {
961
+ return i[17] !== f || i[18] !== n || i[19] !== r || i[20] !== s || i[21] !== c || i[22] !== h ? (l = /* @__PURE__ */ U(e, { children: /* @__PURE__ */ W(t, {
941
962
  actor: f,
942
963
  icon: n,
943
964
  timestamp: h,
@@ -946,28 +967,28 @@ var sn = {
946
967
  }) }), i[17] = f, i[18] = n, i[19] = r, i[20] = s, i[21] = c, i[22] = h, i[23] = l) : l = i[23], l;
947
968
  }
948
969
  let g = a.attention?.icon ?? "bell", _;
949
- i[24] !== g || i[25] !== a.attention ? (_ = a.attention ? /* @__PURE__ */ W(cn, { name: g }) : void 0, i[24] = g, i[25] = a.attention, i[26] = _) : _ = i[26];
970
+ i[24] !== g || i[25] !== a.attention ? (_ = a.attention ? /* @__PURE__ */ U(un, { name: g }) : void 0, i[24] = g, i[25] = a.attention, i[26] = _) : _ = i[26];
950
971
  let v = a.attention ? "fg.warning" : void 0, y = a.attention ? "bg.warning" : void 0, b;
951
- i[27] === a.attention ? b = i[28] : (b = a.attention ? /* @__PURE__ */ W(un, { attention: a.attention }) : void 0, i[27] = a.attention, i[28] = b);
972
+ i[27] === a.attention ? b = i[28] : (b = a.attention ? /* @__PURE__ */ U(fn, { attention: a.attention }) : void 0, i[27] = a.attention, i[28] = b);
952
973
  let x = a.attention ? "attention" : "default", S = o === "compact" ? "xs" : "sm", C;
953
- i[29] === a.markdown ? C = i[30] : (C = /* @__PURE__ */ W(an, {
974
+ i[29] === a.markdown ? C = i[30] : (C = /* @__PURE__ */ U(sn, {
954
975
  defaultState: a.markdown,
955
976
  fullWidth: !0
956
977
  }), i[29] = a.markdown, i[30] = C);
957
978
  let w;
958
- i[31] !== a || i[32] !== l || i[33] !== u || i[34] !== o ? (w = /* @__PURE__ */ W(ln, {
979
+ i[31] !== a || i[32] !== l || i[33] !== u || i[34] !== o ? (w = /* @__PURE__ */ U(dn, {
959
980
  item: a,
960
981
  size: o,
961
982
  onActionSelect: l,
962
983
  onRelatedResourceSelect: u
963
984
  }), i[31] = a, i[32] = l, i[33] = u, i[34] = o, i[35] = w) : w = i[35];
964
985
  let T;
965
- i[36] !== w || i[37] !== S || i[38] !== C ? (T = /* @__PURE__ */ G(L, {
986
+ i[36] !== w || i[37] !== S || i[38] !== C ? (T = /* @__PURE__ */ W(I, {
966
987
  gap: S,
967
988
  children: [C, w]
968
989
  }), i[36] = w, i[37] = S, i[38] = C, i[39] = T) : T = i[39];
969
990
  let E;
970
- return i[40] !== f || i[41] !== o || i[42] !== T || i[43] !== _ || i[44] !== v || i[45] !== y || i[46] !== b || i[47] !== x || i[48] !== h ? (E = /* @__PURE__ */ W(r, {
991
+ return i[40] !== f || i[41] !== o || i[42] !== T || i[43] !== _ || i[44] !== v || i[45] !== y || i[46] !== b || i[47] !== x || i[48] !== h ? (E = /* @__PURE__ */ U(r, {
971
992
  actor: f,
972
993
  icon: _,
973
994
  iconColor: v,
@@ -978,31 +999,31 @@ var sn = {
978
999
  size: o,
979
1000
  children: T
980
1001
  }), i[40] = f, i[41] = o, i[42] = T, i[43] = _, i[44] = v, i[45] = y, i[46] = b, i[47] = x, i[48] = h, i[49] = E) : E = i[49], E;
981
- }, fn = (e) => e, pn = (e) => {
982
- let t = U(56), r, a, o, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
1002
+ }, mn = (e) => e, hn = (e) => {
1003
+ let t = H(56), r, a, o, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
983
1004
  t[0] === e ? (r = t[1], a = t[2], o = t[3], c = t[4], l = t[5], u = t[6], d = t[7], f = t[8], p = t[9], m = t[10], h = t[11], g = t[12], _ = t[13], v = t[14], y = t[15], b = t[16], x = t[17]) : ({items: a, size: d, isLoading: f, error: r, hasMore: m, isLoadingMore: h, emptyTitle: g, emptyDescription: _, errorTitle: v, loadMoreLabel: y, loadingLabel: b, fallbackActorName: x, formatTimestamp: p, onActionSelect: o, onLoadMore: c, onRelatedResourceSelect: l, ...u} = e, t[0] = e, t[1] = r, t[2] = a, t[3] = o, t[4] = c, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = p, t[10] = m, t[11] = h, t[12] = g, t[13] = _, t[14] = v, t[15] = y, t[16] = b, t[17] = x);
984
- let S = d === void 0 ? "comfortable" : d, C = f !== void 0 && f, w = m !== void 0 && m, T = h !== void 0 && h, E = g === void 0 ? "No activity yet" : g, D = _ === void 0 ? "Events and messages will appear here." : _, O = v === void 0 ? "Activity unavailable" : v, k = y === void 0 ? "Load more" : y, A = b === void 0 ? "Loading activity" : b, j = x === void 0 ? "System" : x, M = p === void 0 ? fn : p;
1005
+ let S = d === void 0 ? "comfortable" : d, C = f !== void 0 && f, w = m !== void 0 && m, T = h !== void 0 && h, E = g === void 0 ? "No activity yet" : g, D = _ === void 0 ? "Events and messages will appear here." : _, ee = v === void 0 ? "Activity unavailable" : v, O = y === void 0 ? "Load more" : y, k = b === void 0 ? "Loading activity" : b, A = x === void 0 ? "System" : x, j = p === void 0 ? mn : p;
985
1006
  if (r) {
986
1007
  let e;
987
- return t[18] !== r || t[19] !== O || t[20] !== u ? (e = /* @__PURE__ */ W(i, {
1008
+ return t[18] !== r || t[19] !== ee || t[20] !== u ? (e = /* @__PURE__ */ U(i, {
988
1009
  status: "error",
989
1010
  colorPalette: "red",
990
- title: O,
1011
+ title: ee,
991
1012
  size: "sm",
992
1013
  ...u,
993
1014
  children: r
994
- }), t[18] = r, t[19] = O, t[20] = u, t[21] = e) : e = t[21], e;
1015
+ }), t[18] = r, t[19] = ee, t[20] = u, t[21] = e) : e = t[21], e;
995
1016
  }
996
1017
  if (C && a.length === 0) {
997
1018
  let e;
998
- t[22] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ W(I, { size: "sm" }), t[22] = e) : e = t[22];
1019
+ t[22] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ U(F, { size: "sm" }), t[22] = e) : e = t[22];
999
1020
  let n;
1000
- t[23] === A ? n = t[24] : (n = /* @__PURE__ */ W(z, {
1021
+ t[23] === k ? n = t[24] : (n = /* @__PURE__ */ U(R, {
1001
1022
  textStyle: "label/S/regular",
1002
- children: A
1003
- }), t[23] = A, t[24] = n);
1023
+ children: k
1024
+ }), t[23] = k, t[24] = n);
1004
1025
  let r;
1005
- return t[25] !== u || t[26] !== n ? (r = /* @__PURE__ */ G(P, {
1026
+ return t[25] !== u || t[26] !== n ? (r = /* @__PURE__ */ W(N, {
1006
1027
  role: "status",
1007
1028
  "aria-live": "polite",
1008
1029
  gap: "xs",
@@ -1013,48 +1034,48 @@ var sn = {
1013
1034
  }
1014
1035
  if (a.length === 0) {
1015
1036
  let e;
1016
- return t[28] !== D || t[29] !== E || t[30] !== u ? (e = /* @__PURE__ */ W(s, {
1037
+ return t[28] !== D || t[29] !== E || t[30] !== u ? (e = /* @__PURE__ */ U(s, {
1017
1038
  title: E,
1018
1039
  description: D,
1019
1040
  ...u
1020
1041
  }), t[28] = D, t[29] = E, t[30] = u, t[31] = e) : e = t[31], e;
1021
1042
  }
1022
- let ee = S === "compact" ? "sm" : "md", F;
1023
- if (t[32] !== j || t[33] !== M || t[34] !== a || t[35] !== o || t[36] !== l || t[37] !== S) {
1043
+ let te = S === "compact" ? "sm" : "md", P;
1044
+ if (t[32] !== A || t[33] !== j || t[34] !== a || t[35] !== o || t[36] !== l || t[37] !== S) {
1024
1045
  let e;
1025
- t[39] !== j || t[40] !== M || t[41] !== o || t[42] !== l || t[43] !== S ? (e = (e) => /* @__PURE__ */ W(dn, {
1046
+ t[39] !== A || t[40] !== j || t[41] !== o || t[42] !== l || t[43] !== S ? (e = (e) => /* @__PURE__ */ U(pn, {
1026
1047
  item: e,
1027
1048
  size: S,
1028
- fallbackActorName: j,
1029
- formatTimestamp: M,
1049
+ fallbackActorName: A,
1050
+ formatTimestamp: j,
1030
1051
  onActionSelect: o,
1031
1052
  onRelatedResourceSelect: l
1032
- }, e.id), t[39] = j, t[40] = M, t[41] = o, t[42] = l, t[43] = S, t[44] = e) : e = t[44], F = a.map(e), t[32] = j, t[33] = M, t[34] = a, t[35] = o, t[36] = l, t[37] = S, t[38] = F;
1033
- } else F = t[38];
1034
- let L;
1035
- t[45] !== w || t[46] !== T || t[47] !== k || t[48] !== c || t[49] !== S ? (L = w ? /* @__PURE__ */ W(N, {
1053
+ }, e.id), t[39] = A, t[40] = j, t[41] = o, t[42] = l, t[43] = S, t[44] = e) : e = t[44], P = a.map(e), t[32] = A, t[33] = j, t[34] = a, t[35] = o, t[36] = l, t[37] = S, t[38] = P;
1054
+ } else P = t[38];
1055
+ let I;
1056
+ t[45] !== w || t[46] !== T || t[47] !== O || t[48] !== c || t[49] !== S ? (I = w ? /* @__PURE__ */ U(M, {
1036
1057
  type: "button",
1037
1058
  width: "full",
1038
1059
  size: S === "compact" ? "xs" : "sm",
1039
1060
  variant: "ghost",
1040
1061
  loading: T,
1041
1062
  onClick: c,
1042
- children: k
1043
- }) : null, t[45] = w, t[46] = T, t[47] = k, t[48] = c, t[49] = S, t[50] = L) : L = t[50];
1044
- let R;
1045
- return t[51] !== u || t[52] !== ee || t[53] !== F || t[54] !== L ? (R = /* @__PURE__ */ G(n, {
1046
- gap: ee,
1063
+ children: O
1064
+ }) : null, t[45] = w, t[46] = T, t[47] = O, t[48] = c, t[49] = S, t[50] = I) : I = t[50];
1065
+ let L;
1066
+ return t[51] !== u || t[52] !== te || t[53] !== P || t[54] !== I ? (L = /* @__PURE__ */ W(n, {
1067
+ gap: te,
1047
1068
  ...u,
1048
- children: [F, L]
1049
- }), t[51] = u, t[52] = ee, t[53] = F, t[54] = L, t[55] = R) : R = t[55], R;
1050
- }, mn = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", hn = (e) => e == null ? "-" : typeof e == "string" ? e.length ? e : "-" : typeof e == "number" || typeof e == "boolean" ? String(e).toUpperCase() : e instanceof Date ? e.toISOString() : JSON.stringify(e), gn = (e) => {
1051
- let t = U(8), { defaultCode: n, isEditable: r, showLineNumbers: i, disableScroll: o } = e, s = n === void 0 ? "" : n, c = r !== void 0 && r, l = i !== void 0 && i, u = o !== void 0 && o;
1069
+ children: [P, I]
1070
+ }), t[51] = u, t[52] = te, t[53] = P, t[54] = I, t[55] = L) : L = t[55], L;
1071
+ }, gn = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", _n = (e) => e == null ? "-" : typeof e == "string" ? e.length ? e : "-" : typeof e == "number" || typeof e == "boolean" ? String(e).toUpperCase() : e instanceof Date ? e.toISOString() : JSON.stringify(e), vn = (e) => {
1072
+ let t = H(8), { defaultCode: n, isEditable: r, showLineNumbers: i, disableScroll: o } = e, s = n === void 0 ? "" : n, c = r !== void 0 && r, l = i !== void 0 && i, u = o !== void 0 && o;
1052
1073
  if (c) {
1053
1074
  let e;
1054
- return t[0] === s ? e = t[1] : (e = /* @__PURE__ */ W(B, {
1075
+ return t[0] === s ? e = t[1] : (e = /* @__PURE__ */ U(z, {
1055
1076
  defaultValue: s,
1056
1077
  fontFamily: "mono",
1057
- fontSize: mn,
1078
+ fontSize: gn,
1058
1079
  resize: "vertical",
1059
1080
  minHeight: "100%"
1060
1081
  }), t[0] = s, t[1] = e), e;
@@ -1062,24 +1083,24 @@ var sn = {
1062
1083
  let d;
1063
1084
  if (t[2] !== s || t[3] !== u || t[4] !== l) {
1064
1085
  let e = l ? s.split("\n") : [s];
1065
- d = /* @__PURE__ */ W(M, {
1086
+ d = /* @__PURE__ */ U(j, {
1066
1087
  as: "pre",
1067
1088
  margin: 0,
1068
1089
  padding: "sm",
1069
1090
  fontFamily: "mono",
1070
- fontSize: mn,
1091
+ fontSize: gn,
1071
1092
  lineHeight: "1.5",
1072
1093
  background: "bg.code",
1073
1094
  borderRadius: "md",
1074
1095
  width: "100%",
1075
1096
  overflowY: u ? "hidden" : void 0,
1076
- children: l ? /* @__PURE__ */ W(M, {
1097
+ children: l ? /* @__PURE__ */ U(j, {
1077
1098
  as: "code",
1078
1099
  display: "grid",
1079
1100
  gridTemplateColumns: "auto 1fr",
1080
1101
  columnGap: "sm",
1081
- children: e.map(vn)
1082
- }) : /* @__PURE__ */ W(M, {
1102
+ children: e.map(bn)
1103
+ }) : /* @__PURE__ */ U(j, {
1083
1104
  as: "code",
1084
1105
  children: s
1085
1106
  })
@@ -1088,27 +1109,27 @@ var sn = {
1088
1109
  let f = d;
1089
1110
  if (u) return f;
1090
1111
  let p;
1091
- return t[6] === f ? p = t[7] : (p = /* @__PURE__ */ W(a, {
1112
+ return t[6] === f ? p = t[7] : (p = /* @__PURE__ */ U(a, {
1092
1113
  width: "100%",
1093
1114
  background: "bg.code",
1094
1115
  borderRadius: "md",
1095
1116
  showHorizontalScrollbar: !0,
1096
1117
  children: f
1097
1118
  }), t[6] = f, t[7] = p), p;
1098
- }, _n = (e) => {
1099
- let t = U(26), { data: n, fullWidth: r, noBorder: i, hiddenColumns: o } = e, s = r !== void 0 && r, c = i !== void 0 && i, l;
1119
+ }, yn = (e) => {
1120
+ let t = H(26), { data: n, fullWidth: r, noBorder: i, hiddenColumns: o } = e, s = r !== void 0 && r, c = i !== void 0 && i, l;
1100
1121
  t[0] === o ? l = t[1] : (l = o === void 0 ? [] : o, t[0] = o, t[1] = l);
1101
1122
  let u = l;
1102
1123
  if (!n.length) {
1103
1124
  let e = c ? "0" : "1px", n;
1104
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ W(z, {
1125
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ U(R, {
1105
1126
  textStyle: "label/S/regular",
1106
- fontSize: mn,
1127
+ fontSize: gn,
1107
1128
  color: "fg.muted",
1108
1129
  children: "No data"
1109
1130
  }), t[2] = n) : n = t[2];
1110
1131
  let r;
1111
- return t[3] === e ? r = t[4] : (r = /* @__PURE__ */ W(M, {
1132
+ return t[3] === e ? r = t[4] : (r = /* @__PURE__ */ U(j, {
1112
1133
  padding: "sm",
1113
1134
  borderWidth: e,
1114
1135
  borderColor: "border.subtle",
@@ -1122,31 +1143,31 @@ var sn = {
1122
1143
  let m;
1123
1144
  t[9] !== f || t[10] !== p ? (m = p.filter((e) => !f.has(e)), t[9] = f, t[10] = p, t[11] = m) : m = t[11];
1124
1145
  let h = m, g = s ? "100%" : "fit-content", _ = c ? "0" : "1px", v;
1125
- t[12] === h ? v = t[13] : (v = /* @__PURE__ */ W(R.Header, { children: /* @__PURE__ */ W(R.Row, {
1146
+ t[12] === h ? v = t[13] : (v = /* @__PURE__ */ U(L.Header, { children: /* @__PURE__ */ U(L.Row, {
1126
1147
  background: "bg.muted",
1127
- children: h.map(yn)
1148
+ children: h.map(xn)
1128
1149
  }) }), t[12] = h, t[13] = v);
1129
1150
  let y;
1130
1151
  if (t[14] !== h || t[15] !== n) {
1131
1152
  let e;
1132
- t[17] === h ? e = t[18] : (e = (e, t) => /* @__PURE__ */ W(R.Row, { children: h.map((n) => /* @__PURE__ */ W(R.Cell, {
1153
+ t[17] === h ? e = t[18] : (e = (e, t) => /* @__PURE__ */ U(L.Row, { children: h.map((n) => /* @__PURE__ */ U(L.Cell, {
1133
1154
  paddingX: "xs",
1134
1155
  paddingY: "2xs",
1135
- children: /* @__PURE__ */ W(z, {
1156
+ children: /* @__PURE__ */ U(R, {
1136
1157
  textStyle: "paragraph/S/regular",
1137
- fontSize: mn,
1138
- children: hn(e[n])
1158
+ fontSize: gn,
1159
+ children: _n(e[n])
1139
1160
  })
1140
1161
  }, `${t}-${n}`)) }, `${t}-${h.join("-")}`), t[17] = h, t[18] = e), y = n.map(e), t[14] = h, t[15] = n, t[16] = y;
1141
1162
  } else y = t[16];
1142
1163
  let b;
1143
- t[19] === y ? b = t[20] : (b = /* @__PURE__ */ W(R.Body, { children: y }), t[19] = y, t[20] = b);
1164
+ t[19] === y ? b = t[20] : (b = /* @__PURE__ */ U(L.Body, { children: y }), t[19] = y, t[20] = b);
1144
1165
  let x;
1145
- return t[21] !== b || t[22] !== g || t[23] !== _ || t[24] !== v ? (x = /* @__PURE__ */ W(a, {
1166
+ return t[21] !== b || t[22] !== g || t[23] !== _ || t[24] !== v ? (x = /* @__PURE__ */ U(a, {
1146
1167
  maxWidth: "100%",
1147
1168
  showHorizontalScrollbar: !0,
1148
1169
  showVerticalScrollbar: !1,
1149
- children: /* @__PURE__ */ G(R.Root, {
1170
+ children: /* @__PURE__ */ W(L.Root, {
1150
1171
  size: "sm",
1151
1172
  width: g,
1152
1173
  borderWidth: _,
@@ -1155,44 +1176,44 @@ var sn = {
1155
1176
  })
1156
1177
  }), t[21] = b, t[22] = g, t[23] = _, t[24] = v, t[25] = x) : x = t[25], x;
1157
1178
  };
1158
- function vn(e, t) {
1159
- return /* @__PURE__ */ G(M, {
1179
+ function bn(e, t) {
1180
+ return /* @__PURE__ */ W(j, {
1160
1181
  as: "span",
1161
1182
  display: "contents",
1162
- children: [/* @__PURE__ */ W(z, {
1183
+ children: [/* @__PURE__ */ U(R, {
1163
1184
  as: "span",
1164
1185
  color: "fg.muted",
1165
1186
  textAlign: "right",
1166
1187
  fontSize: "inherit",
1167
1188
  children: t + 1
1168
- }), /* @__PURE__ */ W(z, {
1189
+ }), /* @__PURE__ */ U(R, {
1169
1190
  as: "span",
1170
1191
  fontSize: "inherit",
1171
1192
  children: e.length ? e : " "
1172
1193
  })]
1173
1194
  }, `${t}-${e}`);
1174
1195
  }
1175
- function yn(e) {
1176
- return /* @__PURE__ */ W(R.ColumnHeader, {
1196
+ function xn(e) {
1197
+ return /* @__PURE__ */ U(L.ColumnHeader, {
1177
1198
  textTransform: "none",
1178
1199
  paddingX: "xs",
1179
1200
  paddingY: "2xs",
1180
- children: /* @__PURE__ */ W(z, {
1201
+ children: /* @__PURE__ */ U(R, {
1181
1202
  textStyle: "label/S/medium",
1182
- fontSize: mn,
1203
+ fontSize: gn,
1183
1204
  children: e
1184
1205
  })
1185
1206
  }, e);
1186
1207
  }
1187
1208
  //#endregion
1188
1209
  //#region src/components/rich-text/utils/inferResourceType.ts
1189
- function bn(e) {
1210
+ function Sn(e) {
1190
1211
  let t = e.toLowerCase().trim();
1191
1212
  return t ? t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : t === "text/markdown" ? "markdown" : t === "text/csv" || t === "text/tab-separated-values" ? "table" : t === "application/json" ? "json" : (t.startsWith("text/") || t.startsWith("application/"), "text") : "text";
1192
1213
  }
1193
1214
  //#endregion
1194
1215
  //#region src/components/rich-text/utils/mediaType.ts
1195
- var xn = {
1216
+ var Cn = {
1196
1217
  csv: "text/csv",
1197
1218
  tsv: "text/tab-separated-values",
1198
1219
  json: "application/json",
@@ -1216,11 +1237,11 @@ var xn = {
1216
1237
  yml: "text/yaml",
1217
1238
  yaml: "text/yaml"
1218
1239
  };
1219
- function Sn(e) {
1240
+ function wn(e) {
1220
1241
  let t = (e.split("?")[0]?.split("#")[0] ?? "").split(".").pop()?.toLowerCase();
1221
- return t ? xn[t] ?? null : null;
1242
+ return t ? Cn[t] ?? null : null;
1222
1243
  }
1223
1244
  //#endregion
1224
- export { pn as a, Tt as c, _n as i, Ct as l, bn as n, an as o, gn as r, zt as s, Sn as t, Qe as u };
1245
+ export { hn as a, Dt as c, yn as i, Tt as l, Sn as n, sn as o, vn as r, Vt as s, wn as t, $e as u };
1225
1246
 
1226
- //# sourceMappingURL=rich-text-DOK4dDeb.js.map
1247
+ //# sourceMappingURL=rich-text-bKBLAco5.js.map