@blueking/chat-x 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,40 +1,38 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as
|
|
2
|
-
import { Tippy as
|
|
1
|
+
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as j, ref as ee, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowRef as F, toDisplayString as I, toValue as L, unref as R, useAttrs as te, useCssVars as ne, useModel as z, useSlots as re, useTemplateRef as B, vShow as ie, watch as V, watchEffect as ae, watchPostEffect as oe, withCtx as H, withDirectives as U, withModifiers as se } from "vue";
|
|
2
|
+
import { Tippy as ce, directive as le } from "vue-tippy";
|
|
3
3
|
import "tippy.js/dist/tippy.css";
|
|
4
|
-
import { Button as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import "
|
|
16
|
-
import Ne from "
|
|
17
|
-
import Pe from "katex";
|
|
4
|
+
import { Button as ue, Checkbox as de, Exception as fe, Form as pe, Input as me, Loading as he, Message as ge, Radio as _e, ResizeLayout as ve, Select as ye, Switcher as be, Tab as xe } from "bkui-vue";
|
|
5
|
+
import Se from "tippy.js";
|
|
6
|
+
import Ce from "dompurify";
|
|
7
|
+
import we from "lodash/throttle";
|
|
8
|
+
import Te from "markdown-it-footnote";
|
|
9
|
+
import Ee from "markdown-it-ins";
|
|
10
|
+
import De from "markdown-it-mark";
|
|
11
|
+
import Oe from "markdown-it-sub";
|
|
12
|
+
import ke from "markdown-it-sup";
|
|
13
|
+
import Ae from "markdown-it-task-checkbox";
|
|
14
|
+
import je from "highlight.js";
|
|
15
|
+
import Me from "lodash/debounce";
|
|
16
|
+
import Ne from "katex";
|
|
18
17
|
import "katex/dist/katex.min.css";
|
|
19
|
-
import "highlight.js/styles/atom-one-dark.min.css";
|
|
20
18
|
//#region \0rolldown/runtime.js
|
|
21
|
-
var
|
|
19
|
+
var Pe = Object.defineProperty, Fe = (e, t) => {
|
|
22
20
|
let n = {};
|
|
23
|
-
for (var r in e)
|
|
21
|
+
for (var r in e) Pe(n, r, {
|
|
24
22
|
get: e[r],
|
|
25
23
|
enumerable: !0
|
|
26
24
|
});
|
|
27
|
-
return t ||
|
|
28
|
-
},
|
|
25
|
+
return t || Pe(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
26
|
+
}, W = /* @__PURE__ */ function(e) {
|
|
29
27
|
return e.Binary = "binary", e.FlowAgent = "flow_agent", e.Function = "function", e.KeyValue = "key-value", e.KnowledgeRag = "knowledge-rag", e.Other = "other", e.ReferenceDocument = "reference-document", e.Text = "text", e;
|
|
30
|
-
}({}), W = /* @__PURE__ */ function(e) {
|
|
31
|
-
return e.Activity = "activity", e.Assistant = "assistant", e.Developer = "developer", e.Guide = "guide", e.Hidden = "hidden", e.HiddenAssistant = "hidden-assistant", e.HiddenGuide = "hidden-guide", e.HiddenSystem = "hidden-system", e.HiddenUser = "hidden-user", e.Info = "info", e.Loading = "loading", e.Pause = "pause", e.Placeholder = "placeholder", e.Reasoning = "reasoning", e.System = "system", e.TemplateAssistant = "template-assistant", e.TemplateGuide = "template-guide", e.TemplateHidden = "template-hidden", e.TemplateSystem = "template-system", e.TemplateUser = "template-user", e.Tool = "tool", e.User = "user", e;
|
|
32
28
|
}({}), G = /* @__PURE__ */ function(e) {
|
|
29
|
+
return e.Activity = "activity", e.Assistant = "assistant", e.Developer = "developer", e.Guide = "guide", e.Hidden = "hidden", e.HiddenAssistant = "hidden-assistant", e.HiddenGuide = "hidden-guide", e.HiddenSystem = "hidden-system", e.HiddenUser = "hidden-user", e.Info = "info", e.Loading = "loading", e.Pause = "pause", e.Placeholder = "placeholder", e.Reasoning = "reasoning", e.System = "system", e.TemplateAssistant = "template-assistant", e.TemplateGuide = "template-guide", e.TemplateHidden = "template-hidden", e.TemplateSystem = "template-system", e.TemplateUser = "template-user", e.Tool = "tool", e.User = "user", e;
|
|
30
|
+
}({}), K = /* @__PURE__ */ function(e) {
|
|
33
31
|
return e.Complete = "complete", e.Disabled = "disabled", e.Error = "error", e.Pending = "pending", e.Stop = "stop", e.StopLoading = "stop-loading", e.Streaming = "streaming", e.Success = "success", e;
|
|
34
|
-
}({}),
|
|
32
|
+
}({}), Ie = (e) => e ? e.startsWith("image/") : !1, Le = (e) => e ? URL.createObjectURL(e) : "", Re = (e) => {
|
|
35
33
|
var t;
|
|
36
34
|
return e && (e.name.split(".").pop() || ((t = e.type) == null ? void 0 : t.split("/").pop())) || "";
|
|
37
|
-
},
|
|
35
|
+
}, ze = (e) => {
|
|
38
36
|
if (!e) return "";
|
|
39
37
|
let t = e.size, n = [
|
|
40
38
|
"B",
|
|
@@ -43,7 +41,7 @@ var Fe = Object.defineProperty, Ie = (e, t) => {
|
|
|
43
41
|
"GB"
|
|
44
42
|
], r = Math.floor(Math.log2(t) / 10);
|
|
45
43
|
return `${(t / Math.pow(1024, r)).toFixed(2)} ${n[r]}`;
|
|
46
|
-
},
|
|
44
|
+
}, Be = /^```/, Ve = /\$\$/g, He = /\\\[/g, Ue = /\\\]/g, We = /\\begin\{([^}]+)\}/g, Ge = /\\end\{([^}]+)\}/g, Ke = /\\begin\{([^}]*)$/, qe = /\\end\{([^}]*)$/, Je = /\\([a-zA-Z]+)$/, Ye = new Set([
|
|
47
45
|
"frac",
|
|
48
46
|
"dfrac",
|
|
49
47
|
"tfrac",
|
|
@@ -53,7 +51,7 @@ var Fe = Object.defineProperty, Ie = (e, t) => {
|
|
|
53
51
|
"cfrac",
|
|
54
52
|
"overset",
|
|
55
53
|
"underset"
|
|
56
|
-
]),
|
|
54
|
+
]), Xe = new Set([
|
|
57
55
|
"sqrt",
|
|
58
56
|
"text",
|
|
59
57
|
"mathbf",
|
|
@@ -71,7 +69,7 @@ var Fe = Object.defineProperty, Ie = (e, t) => {
|
|
|
71
69
|
"widetilde",
|
|
72
70
|
"overline",
|
|
73
71
|
"underline"
|
|
74
|
-
]),
|
|
72
|
+
]), Ze = [
|
|
75
73
|
"aligned",
|
|
76
74
|
"align",
|
|
77
75
|
"equation",
|
|
@@ -87,39 +85,39 @@ var Fe = Object.defineProperty, Ie = (e, t) => {
|
|
|
87
85
|
"split",
|
|
88
86
|
"multline"
|
|
89
87
|
];
|
|
90
|
-
function
|
|
88
|
+
function Qe(e, t = {}) {
|
|
91
89
|
if (!e) return {
|
|
92
90
|
content: "",
|
|
93
91
|
suffix: ""
|
|
94
92
|
};
|
|
95
93
|
let { fullCheck: n = !1 } = t, r = e.split("\n"), i = "";
|
|
96
|
-
if (
|
|
94
|
+
if (rt(r).inCodeBlock) return {
|
|
97
95
|
content: e + "\n```",
|
|
98
96
|
suffix: "\n```"
|
|
99
97
|
};
|
|
100
|
-
let a =
|
|
98
|
+
let a = nt(r, n);
|
|
101
99
|
a && (i += a);
|
|
102
|
-
let o =
|
|
100
|
+
let o = it(r, n);
|
|
103
101
|
o && (i += o);
|
|
104
|
-
let s =
|
|
102
|
+
let s = tt(r, n);
|
|
105
103
|
if (s && (i += s), a || o) {
|
|
106
|
-
let t =
|
|
104
|
+
let t = at(e);
|
|
107
105
|
t && (i = t + i);
|
|
108
106
|
}
|
|
109
|
-
let c = r[r.length - 1] || "", l =
|
|
107
|
+
let c = r[r.length - 1] || "", l = ot(c);
|
|
110
108
|
l && (i += l);
|
|
111
|
-
let u =
|
|
109
|
+
let u = ct(c);
|
|
112
110
|
if (u && (i += u), !o) {
|
|
113
|
-
let e =
|
|
111
|
+
let e = lt(c);
|
|
114
112
|
e && (i += e);
|
|
115
113
|
}
|
|
116
|
-
let d =
|
|
114
|
+
let d = st(c);
|
|
117
115
|
return d && (i += d), {
|
|
118
116
|
content: e + i,
|
|
119
117
|
suffix: i
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
|
-
function
|
|
120
|
+
function $e(e) {
|
|
123
121
|
if (!e) return !1;
|
|
124
122
|
for (let t of [
|
|
125
123
|
"`",
|
|
@@ -129,53 +127,53 @@ function et(e) {
|
|
|
129
127
|
]) if (e.includes(t)) return !0;
|
|
130
128
|
return !1;
|
|
131
129
|
}
|
|
132
|
-
function
|
|
130
|
+
function et(e, t) {
|
|
133
131
|
return !t || !e.endsWith(t) ? e : e.slice(0, -t.length);
|
|
134
132
|
}
|
|
135
|
-
function
|
|
133
|
+
function tt(e, t) {
|
|
136
134
|
let n = e.join("\n");
|
|
137
135
|
if (/[^\\]\\(e|en|end)$/.test(n) || /[^\\]\\(b|be|beg|begi|begin)$/.test(n)) return "";
|
|
138
|
-
let r = n.match(
|
|
136
|
+
let r = n.match(qe);
|
|
139
137
|
if (r) {
|
|
140
|
-
let e = r[1] || "", t =
|
|
138
|
+
let e = r[1] || "", t = dt(e);
|
|
141
139
|
return t ? t.slice(e.length) + "}" : "}";
|
|
142
140
|
}
|
|
143
|
-
let i = n.match(
|
|
141
|
+
let i = n.match(Ke);
|
|
144
142
|
if (i) {
|
|
145
|
-
let e = i[1] || "", t =
|
|
143
|
+
let e = i[1] || "", t = dt(e);
|
|
146
144
|
return t ? t.slice(e.length) + `}\\end{${t}}` : "}";
|
|
147
145
|
}
|
|
148
146
|
let a = [], o = t ? 0 : Math.max(0, e.length - 50);
|
|
149
147
|
for (let t = o; t < e.length; t++) {
|
|
150
148
|
let n = e[t] || "";
|
|
151
|
-
|
|
149
|
+
We.lastIndex = 0, Ge.lastIndex = 0;
|
|
152
150
|
let r;
|
|
153
|
-
for (; (r =
|
|
154
|
-
for (; (r =
|
|
151
|
+
for (; (r = We.exec(n)) !== null;) r[1] && a.push(r[1]);
|
|
152
|
+
for (; (r = Ge.exec(n)) !== null;) if (r[1]) {
|
|
155
153
|
let e = a.lastIndexOf(r[1]);
|
|
156
154
|
e !== -1 && a.splice(e, 1);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
return a.length > 0 ? `\n\\end{${a[a.length - 1]}}` : "";
|
|
160
158
|
}
|
|
161
|
-
function
|
|
159
|
+
function nt(e, t) {
|
|
162
160
|
let n = 0, r = t ? 0 : Math.max(0, e.length - 30);
|
|
163
161
|
for (let t = r; t < e.length; t++) {
|
|
164
162
|
let r = e[t] || "";
|
|
165
|
-
n +=
|
|
163
|
+
n += ut(r, He), n -= ut(r, Ue);
|
|
166
164
|
}
|
|
167
165
|
return n > 0 ? "\n\\]" : "";
|
|
168
166
|
}
|
|
169
|
-
function
|
|
167
|
+
function rt(e) {
|
|
170
168
|
let t = !1;
|
|
171
|
-
for (let n of e)
|
|
169
|
+
for (let n of e) Be.test(n.trim()) && (t = !t);
|
|
172
170
|
return { inCodeBlock: t };
|
|
173
171
|
}
|
|
174
|
-
function
|
|
172
|
+
function it(e, t) {
|
|
175
173
|
let n = 0, r = t ? 0 : Math.max(0, e.length - 30);
|
|
176
174
|
for (let t = r; t < e.length; t++) {
|
|
177
175
|
let r = e[t] || "";
|
|
178
|
-
n +=
|
|
176
|
+
n += ut(r, Ve);
|
|
179
177
|
}
|
|
180
178
|
if (n % 2 == 1) {
|
|
181
179
|
let t = (e[e.length - 1] || "").trimEnd();
|
|
@@ -183,21 +181,21 @@ function at(e, t) {
|
|
|
183
181
|
}
|
|
184
182
|
return "";
|
|
185
183
|
}
|
|
186
|
-
function
|
|
184
|
+
function at(e) {
|
|
187
185
|
let t = "";
|
|
188
186
|
if (/\\(begin|end)\{[^}]*$/.test(e)) return "";
|
|
189
|
-
let n = e.match(
|
|
190
|
-
r && (
|
|
187
|
+
let n = e.match(Je), r = n == null ? void 0 : n[1];
|
|
188
|
+
r && (Ye.has(r) ? t += "{}{}" : Xe.has(r) && (t += "{}"));
|
|
191
189
|
let i = e.replace(/\\(begin|end)\{[^}]*\}?/g, ""), a = 0;
|
|
192
190
|
for (let e of i) e === "{" ? a++ : e === "}" && a--;
|
|
193
191
|
return a > 0 && (t += "}".repeat(a)), t;
|
|
194
192
|
}
|
|
195
|
-
function
|
|
193
|
+
function ot(e) {
|
|
196
194
|
let t = 0;
|
|
197
195
|
for (let n = 0; n < e.length; n++) e[n] === "`" && (n === 0 || e[n - 1] !== "\\") && t++;
|
|
198
196
|
return t % 2 == 1 ? "`" : "";
|
|
199
197
|
}
|
|
200
|
-
function
|
|
198
|
+
function st(e) {
|
|
201
199
|
let t = e.lastIndexOf("[");
|
|
202
200
|
if (t === -1 || t > 0 && e[t - 1] === "!") return "";
|
|
203
201
|
let n = e.slice(t);
|
|
@@ -206,32 +204,32 @@ function ct(e) {
|
|
|
206
204
|
let r = n.indexOf("]"), i = n.slice(r + 1);
|
|
207
205
|
return i.startsWith("(") && !i.includes(")") ? ")" : "";
|
|
208
206
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
207
|
+
function ct(e) {
|
|
208
|
+
return ut(e, /\\\(/g) > ut(e, /\\\)/g) ? "\\)" : "";
|
|
211
209
|
}
|
|
212
|
-
function
|
|
213
|
-
let t = e.replace(
|
|
210
|
+
function lt(e) {
|
|
211
|
+
let t = e.replace(Ve, ""), n = 0;
|
|
214
212
|
for (let e = 0; e < t.length; e++) t[e] === "$" && (e === 0 || t[e - 1] !== "\\") && n++;
|
|
215
213
|
return n % 2 == 1 ? "$" : "";
|
|
216
214
|
}
|
|
217
|
-
function
|
|
215
|
+
function ut(e, t) {
|
|
218
216
|
let n = 0;
|
|
219
217
|
for (t.lastIndex = 0; t.test(e);) n++;
|
|
220
218
|
return n;
|
|
221
219
|
}
|
|
222
|
-
function
|
|
223
|
-
for (let t of
|
|
220
|
+
function dt(e) {
|
|
221
|
+
for (let t of Ze) if (t.startsWith(e)) return t;
|
|
224
222
|
return "";
|
|
225
223
|
}
|
|
226
224
|
//#endregion
|
|
227
225
|
//#region src/utils/utils.ts
|
|
228
|
-
var
|
|
226
|
+
var ft = (e) => {
|
|
229
227
|
let t = document.cookie.split(";").find((t) => t.trim().startsWith(`${e}=`));
|
|
230
228
|
return t ? t.split("=")[1] : null;
|
|
231
|
-
},
|
|
229
|
+
}, pt = (e) => {
|
|
232
230
|
let t = Math.floor(e / 6e4), n = Math.floor(e % 6e4 / 1e3), r = e % 1e3, i = [];
|
|
233
231
|
return t > 0 && i.push(`${t} m`), n > 0 && i.push(`${n} s`), (r > 0 || i.length === 0) && i.push(`${r} ms`), i.join(" ");
|
|
234
|
-
},
|
|
232
|
+
}, mt = () => `id_${Math.random().toString(36).substring(2, 9)}`, ht = ft("blueking_language") === "en", gt = {
|
|
235
233
|
发送: "Send",
|
|
236
234
|
停止: "Stop",
|
|
237
235
|
问问小鲸: "Ask AI",
|
|
@@ -328,65 +326,65 @@ var pt = (e) => {
|
|
|
328
326
|
"你好,我是小鲸": "Hello, I am BlueKing AI Bot",
|
|
329
327
|
清空搜索: "Clear Search",
|
|
330
328
|
搜索结果为空: "Search Result is Empty"
|
|
331
|
-
},
|
|
329
|
+
}, q = (e) => ht ? gt[e] : e, _t = 9999, vt = _t + 1, yt = vt + 1, bt = yt + 1, xt = bt + 1, St = [
|
|
332
330
|
{
|
|
333
|
-
description:
|
|
331
|
+
description: q("复制"),
|
|
334
332
|
id: "copy",
|
|
335
|
-
name:
|
|
333
|
+
name: q("复制")
|
|
336
334
|
},
|
|
337
335
|
{
|
|
338
|
-
description:
|
|
336
|
+
description: q("引用"),
|
|
339
337
|
id: "cite",
|
|
340
|
-
name:
|
|
338
|
+
name: q("引用")
|
|
341
339
|
},
|
|
342
340
|
{
|
|
343
|
-
description:
|
|
341
|
+
description: q("重新生成"),
|
|
344
342
|
id: "rebuild",
|
|
345
|
-
name:
|
|
343
|
+
name: q("重新生成")
|
|
346
344
|
},
|
|
347
345
|
{
|
|
348
|
-
description:
|
|
346
|
+
description: q("分享"),
|
|
349
347
|
id: "share",
|
|
350
|
-
name:
|
|
348
|
+
name: q("分享")
|
|
351
349
|
}
|
|
352
|
-
],
|
|
350
|
+
], Ct = [
|
|
353
351
|
{
|
|
354
|
-
description:
|
|
352
|
+
description: q("复制"),
|
|
355
353
|
id: "copy",
|
|
356
|
-
name:
|
|
354
|
+
name: q("复制")
|
|
357
355
|
},
|
|
358
356
|
{
|
|
359
|
-
description:
|
|
357
|
+
description: q("引用"),
|
|
360
358
|
id: "cite",
|
|
361
|
-
name:
|
|
359
|
+
name: q("引用")
|
|
362
360
|
},
|
|
363
361
|
{
|
|
364
|
-
description:
|
|
362
|
+
description: q("编辑"),
|
|
365
363
|
id: "edit",
|
|
366
|
-
name:
|
|
364
|
+
name: q("编辑")
|
|
367
365
|
},
|
|
368
366
|
{
|
|
369
|
-
description:
|
|
367
|
+
description: q("删除"),
|
|
370
368
|
id: "delete",
|
|
371
|
-
name:
|
|
369
|
+
name: q("删除")
|
|
372
370
|
}
|
|
373
|
-
],
|
|
371
|
+
], wt = [
|
|
374
372
|
{
|
|
375
|
-
description:
|
|
373
|
+
description: q("点赞"),
|
|
376
374
|
id: "like",
|
|
377
|
-
name:
|
|
375
|
+
name: q("点赞")
|
|
378
376
|
},
|
|
379
377
|
{
|
|
380
|
-
description:
|
|
378
|
+
description: q("不满意"),
|
|
381
379
|
id: "unlike",
|
|
382
|
-
name:
|
|
380
|
+
name: q("不满意")
|
|
383
381
|
},
|
|
384
382
|
{
|
|
385
|
-
description:
|
|
383
|
+
description: q("删除"),
|
|
386
384
|
id: "delete",
|
|
387
|
-
name:
|
|
385
|
+
name: q("删除")
|
|
388
386
|
}
|
|
389
|
-
],
|
|
387
|
+
], Tt = 3, Et = 2.5 * 1024 * 1024, Dt = "ai-is-keyword", J = {
|
|
390
388
|
class: "ai-common-icon",
|
|
391
389
|
style: {
|
|
392
390
|
verticalAlign: "middle",
|
|
@@ -396,43 +394,43 @@ var pt = (e) => {
|
|
|
396
394
|
viewBox: "0 0 1024 1024",
|
|
397
395
|
version: "1.1",
|
|
398
396
|
xmlns: "http://www.w3.org/2000/svg"
|
|
399
|
-
},
|
|
397
|
+
}, Ot = {
|
|
400
398
|
js: "javascript",
|
|
401
399
|
ts: "typescript",
|
|
402
400
|
py: "python"
|
|
403
401
|
};
|
|
404
402
|
//#endregion
|
|
405
403
|
//#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
|
|
406
|
-
function
|
|
404
|
+
function kt(e) {
|
|
407
405
|
"@babel/helpers - typeof";
|
|
408
|
-
return
|
|
406
|
+
return kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
409
407
|
return typeof e;
|
|
410
408
|
} : function(e) {
|
|
411
409
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
412
|
-
},
|
|
410
|
+
}, kt(e);
|
|
413
411
|
}
|
|
414
412
|
//#endregion
|
|
415
413
|
//#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
|
|
416
|
-
function
|
|
417
|
-
if (
|
|
414
|
+
function At(e, t) {
|
|
415
|
+
if (kt(e) != "object" || !e) return e;
|
|
418
416
|
var n = e[Symbol.toPrimitive];
|
|
419
417
|
if (n !== void 0) {
|
|
420
418
|
var r = n.call(e, t || "default");
|
|
421
|
-
if (
|
|
419
|
+
if (kt(r) != "object") return r;
|
|
422
420
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
423
421
|
}
|
|
424
422
|
return (t === "string" ? String : Number)(e);
|
|
425
423
|
}
|
|
426
424
|
//#endregion
|
|
427
425
|
//#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
|
|
428
|
-
function
|
|
429
|
-
var t =
|
|
430
|
-
return
|
|
426
|
+
function jt(e) {
|
|
427
|
+
var t = At(e, "string");
|
|
428
|
+
return kt(t) == "symbol" ? t : t + "";
|
|
431
429
|
}
|
|
432
430
|
//#endregion
|
|
433
431
|
//#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
|
|
434
|
-
function
|
|
435
|
-
return (t =
|
|
432
|
+
function Mt(e, t, n) {
|
|
433
|
+
return (t = jt(t)) in e ? Object.defineProperty(e, t, {
|
|
436
434
|
value: n,
|
|
437
435
|
enumerable: !0,
|
|
438
436
|
configurable: !0,
|
|
@@ -441,7 +439,7 @@ function Nt(e, t, n) {
|
|
|
441
439
|
}
|
|
442
440
|
//#endregion
|
|
443
441
|
//#region \0@oxc-project+runtime@0.124.0/helpers/objectSpread2.js
|
|
444
|
-
function
|
|
442
|
+
function Nt(e, t) {
|
|
445
443
|
var n = Object.keys(e);
|
|
446
444
|
if (Object.getOwnPropertySymbols) {
|
|
447
445
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -451,12 +449,12 @@ function Pt(e, t) {
|
|
|
451
449
|
}
|
|
452
450
|
return n;
|
|
453
451
|
}
|
|
454
|
-
function
|
|
452
|
+
function Y(e) {
|
|
455
453
|
for (var t = 1; t < arguments.length; t++) {
|
|
456
454
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
457
|
-
t % 2 ?
|
|
458
|
-
|
|
459
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
455
|
+
t % 2 ? Nt(Object(n), !0).forEach(function(t) {
|
|
456
|
+
Mt(e, t, n[t]);
|
|
457
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nt(Object(n)).forEach(function(t) {
|
|
460
458
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
461
459
|
});
|
|
462
460
|
}
|
|
@@ -464,22 +462,22 @@ function J(e) {
|
|
|
464
462
|
}
|
|
465
463
|
//#endregion
|
|
466
464
|
//#region src/icons/ai.ts
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
let t = `${e}-${++
|
|
465
|
+
var Pt = 0;
|
|
466
|
+
function Ft(e) {
|
|
467
|
+
let t = `${e}-${++Pt}`;
|
|
470
468
|
return {
|
|
471
469
|
id: (e) => `${t}-${e}`,
|
|
472
470
|
ref: (e) => `url(#${t}-${e})`
|
|
473
471
|
};
|
|
474
472
|
}
|
|
475
|
-
var
|
|
473
|
+
var It = m({
|
|
476
474
|
name: "AIBluekingIcon",
|
|
477
475
|
setup() {
|
|
478
|
-
let e =
|
|
479
|
-
return () => g("svg",
|
|
476
|
+
let e = Ft("blueking-icon");
|
|
477
|
+
return () => g("svg", Y(Y({}, J), {}, {
|
|
480
478
|
viewBox: "0 0 24 24",
|
|
481
479
|
class: {
|
|
482
|
-
[
|
|
480
|
+
[J.class]: !0,
|
|
483
481
|
"ai-blueking-icon": !0
|
|
484
482
|
}
|
|
485
483
|
}), [g("defs", {}, [
|
|
@@ -627,14 +625,14 @@ var Lt = m({
|
|
|
627
625
|
})
|
|
628
626
|
])])])]);
|
|
629
627
|
}
|
|
630
|
-
}),
|
|
628
|
+
}), Lt = m({
|
|
631
629
|
name: "AIBluekingBannerIcon",
|
|
632
630
|
setup() {
|
|
633
|
-
let e =
|
|
634
|
-
return () => g("svg",
|
|
631
|
+
let e = Ft("banner-icon");
|
|
632
|
+
return () => g("svg", Y(Y({}, J), {}, {
|
|
635
633
|
viewBox: "0 0 309 93",
|
|
636
634
|
class: {
|
|
637
|
-
[
|
|
635
|
+
[J.class]: !0,
|
|
638
636
|
"ai-blueking-banner-icon": !0
|
|
639
637
|
}
|
|
640
638
|
}), [g("defs", {}, [
|
|
@@ -812,8 +810,8 @@ var Lt = m({
|
|
|
812
810
|
opacity: "0.22710455"
|
|
813
811
|
})])])]);
|
|
814
812
|
}
|
|
815
|
-
}),
|
|
816
|
-
[
|
|
813
|
+
}), Rt = g("svg", Y(Y({}, J), {}, { class: {
|
|
814
|
+
[J.class]: !0,
|
|
817
815
|
"ai-document-icon": !0
|
|
818
816
|
} }), [g("g", { fill: "none" }, [
|
|
819
817
|
g("path", {
|
|
@@ -828,51 +826,51 @@ var Lt = m({
|
|
|
828
826
|
fill: "#FFF",
|
|
829
827
|
d: "M196.92307688727274 288.82051304727275C175.17155467636363 288.82051304727275 157.53846132363637 306.45360593454546 157.53846132363637 328.2051281454546 157.53846132363637 349.9566508218182 175.17155467636363 367.5897437090909 196.92307688727274 367.5897437090909L354.4615391418182 367.5897437090909C376.2130618181818 367.5897437090909 393.8461547054545 349.9566508218182 393.8461547054545 328.2051281454546 393.8461547054545 306.45360593454546 376.2130618181818 288.82051304727275 354.4615391418182 288.82051304727275L196.92307688727274 288.82051304727275ZM196.92307688727274 525.1282059636363C175.17155467636363 525.1282059636363 157.53846132363637 542.7612997818183 157.53846132363637 564.5128192000001 157.53846132363637 586.2643432727273 175.17155467636363 603.8974370909091 196.92307688727274 603.8974370909091L669.5384622545455 603.8974370909091C691.2899816727273 603.8974370909091 708.9230754909091 586.2643432727273 708.9230754909091 564.5128192000001 708.9230754909091 542.7612997818183 691.2899816727273 525.1282059636363 669.5384622545455 525.1282059636363L196.92307688727274 525.1282059636363ZM196.92307688727274 761.4358993454546C175.17155467636363 761.4358993454546 157.53846132363637 779.0689885090909 157.53846132363637 800.8205125818182 157.53846132363637 822.5720366545454 175.17155467636363 840.2051304727273 196.92307688727274 840.2051304727273L433.23076933818186 840.2051304727273C454.9822915490909 840.2051304727273 472.61538676363637 822.5720366545454 472.61538676363637 800.8205125818182 472.61538676363637 779.0689885090909 454.9822915490909 761.4358993454546 433.23076933818186 761.4358993454546L196.92307688727274 761.4358993454546Z"
|
|
830
828
|
})
|
|
831
|
-
])]),
|
|
832
|
-
[
|
|
829
|
+
])]), zt = g("svg", Y(Y({}, J), {}, { class: {
|
|
830
|
+
[J.class]: !0,
|
|
833
831
|
"ai-preview-icon": !0
|
|
834
832
|
} }), [g("path", {
|
|
835
833
|
fillRule: "evenodd",
|
|
836
834
|
d: "M512 192C759.4 192 960 335.3 960 512 960 688.7 759.4 832 512 832 264.6 832 64 688.7 64 512 64 335.3 264.6 192 512 192ZM512 256C457.8 256 405.4 263.5 356.1 278.4 309.5 292.5 267.8 312.5 232.4 337.8 165.1 385.9 128 447.8 128 512 128 576.2 165.1 638.1 232.4 686.2 267.8 711.5 309.5 731.5 356.1 745.6 405.4 760.5 457.8 768 512 768 566.2 768 618.6 760.5 667.9 745.6 714.5 731.5 756.2 711.5 791.6 686.2 858.9 638.1 896 576.2 896 512 896 447.8 858.9 385.9 791.6 337.8 756.2 312.5 714.5 292.5 667.9 278.4 618.6 263.5 566.2 256 512 256ZM512 352C600.4 352 672 423.6 672 512 672 600.4 600.4 672 512 672 423.6 672 352 600.4 352 512 352 423.6 423.6 352 512 352ZM512 416C459.1 416 416 459.1 416 512 416 564.9 459.1 608 512 608 564.9 608 608 564.9 608 512 608 459.1 564.9 416 512 416Z"
|
|
837
|
-
})]),
|
|
835
|
+
})]), Bt = g("svg", Y(Y({}, J), {}, {
|
|
838
836
|
viewBox: "0 0 64 64",
|
|
839
837
|
class: {
|
|
840
|
-
[
|
|
838
|
+
[J.class]: !0,
|
|
841
839
|
"ai-target-icon": !0
|
|
842
840
|
}
|
|
843
|
-
}), [g("g", null, [g("path", { d: "M54 8H31v4h18.2L22.6 38.6l2.8 2.8L52 14.8V33h4V10c0-1.1-.9-2-2-2z" }), g("path", { d: "M52 44v8H12V12h7.9V8H10c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2h44c1.1 0 2-.9 2-2V44h-4z" })])]),
|
|
841
|
+
}), [g("g", null, [g("path", { d: "M54 8H31v4h18.2L22.6 38.6l2.8 2.8L52 14.8V33h4V10c0-1.1-.9-2-2-2z" }), g("path", { d: "M52 44v8H12V12h7.9V8H10c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2h44c1.1 0 2-.9 2-2V44h-4z" })])]), Vt = g("svg", Y(Y({}, J), {}, {
|
|
844
842
|
viewBox: "0 0 64 64",
|
|
845
843
|
class: {
|
|
846
|
-
[
|
|
844
|
+
[J.class]: !0,
|
|
847
845
|
"ai-remove-icon": !0
|
|
848
846
|
}
|
|
849
847
|
}), [g("path", {
|
|
850
848
|
fill: "#737987",
|
|
851
849
|
d: "M32,4C16.5,4,4,16.5,4,32s12.5,28,28,28s28-12.5,28-28S47.5,4,32,4z M43.3,40.5l-2.8,2.8L32,34.8l-8.5,8.5l-2.8-2.8l8.5-8.5l-8.5-8.5l2.8-2.8l8.5,8.5l8.5-8.5l2.8,2.8L34.8,32L43.3,40.5z"
|
|
852
|
-
})]),
|
|
853
|
-
[
|
|
850
|
+
})]), Ht = g("svg", Y(Y({}, J), {}, { class: {
|
|
851
|
+
[J.class]: !0,
|
|
854
852
|
"ai-arrow-right-icon": !0
|
|
855
|
-
} }), [g("path", { d: "M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z" })]),
|
|
856
|
-
[
|
|
853
|
+
} }), [g("path", { d: "M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z" })]), Ut = g("svg", Y(Y({}, J), {}, { class: {
|
|
854
|
+
[J.class]: !0,
|
|
857
855
|
"ai-link-icon": !0
|
|
858
856
|
} }), [
|
|
859
857
|
g("path", { d: "M263.04 760.96a148.48 148.48 0 0 1-1.92-224l92.48-92.48L308.48 398.72 216 491.2a212.8 212.8 0 0 0 1.92 314.88 212.8 212.8 0 0 0 314.88 1.92l92.48-92.48L579.84 672l-92.48 92.48A148.48 148.48 0 0 1 263.04 760.96Z" }),
|
|
860
858
|
g("path", { d: "M491.2 216L398.72 308.48l45.44 45.12 92.48-92.48a148.48 148.48 0 0 1 224 1.92 148.48 148.48 0 0 1 1.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 0 0-1.92-314.88A212.8 212.8 0 0 0 491.2 216Z" }),
|
|
861
859
|
g("path", { d: "M398.78566017615634 579.8877413259167L579.8049961599127 398.86840534216054 625.0598301558516 444.1232393380996 444.0404941720955 625.1425753218557 398.78566017615634 579.8877413259167z" })
|
|
862
|
-
]),
|
|
860
|
+
]), Wt = g("svg", Y(Y({}, J), {}, {
|
|
863
861
|
viewBox: "0 0 24 18",
|
|
864
862
|
class: {
|
|
865
|
-
[
|
|
863
|
+
[J.class]: !0,
|
|
866
864
|
"ai-image-error-icon": !0
|
|
867
865
|
}
|
|
868
866
|
}), [g("path", {
|
|
869
867
|
d: "M8.018 0l-.774 2.941.856 2.206-.757 1.47 1.26-1.272-.232-2.224 1.102-3.088h7.228c1.322.01 2.388 1.085 2.39 2.408v5.196a5.42 5.42 0 0 0-1.186.144V2.46c-.035-.645-.542-1.164-1.186-1.213H10.346L9.388 3.04l-.18 2.573-2.636 2.261.859-2.629-1.186-2.006.18-1.978H2.57c-.334-.01-.658.115-.9.346a1.24 1.24 0 0 0-.385.885L1.252 13.07l3.921-4.834c.477-.481 1.068-.481 1.436 0l3.44 4.47 3.344-3.375c.194-.242.495-.372.804-.349.309.024.586.198.742.467l.171.221a5.45 5.45 0 0 0-.928 2.874c0 1.896 1.074 3.54 2.648 4.359l-.122.005H2.39C1.065 16.877.017 15.776.048 14.45L0 2.393C.044 1.071 1.131.024 2.452.033h5.566zM19.09 8.25a4.295 4.295 0 1 1 0 8.591 4.295 4.295 0 0 1 0-8.591zm0 5.83a.46.46 0 1 0 0 .92.46.46 0 0 0 0-.92zm0-3.936a.434.434 0 0 0-.433.408l.126 2.915a.307.307 0 0 0 .614 0l.122-2.822a.434.434 0 0 0-.43-.5zm-5.405-5.737a2.03 2.03 0 0 1 .95 1.653 2.03 2.03 0 0 1-.95 1.653 1.93 1.93 0 0 1-1.918 0 2.03 2.03 0 0 1-.95-1.653c.004-.678.364-1.304.95-1.653a1.93 1.93 0 0 1 1.918 0z",
|
|
870
868
|
fill: "currentColor",
|
|
871
869
|
"fill-rule": "nonzero"
|
|
872
|
-
})]),
|
|
870
|
+
})]), Gt = g("svg", Y(Y({}, J), {}, {
|
|
873
871
|
viewBox: "0 0 16 16",
|
|
874
872
|
class: {
|
|
875
|
-
[
|
|
873
|
+
[J.class]: !0,
|
|
876
874
|
"ai-bk-flow-success-icon": !0
|
|
877
875
|
}
|
|
878
876
|
}), [g("circle", {
|
|
@@ -887,10 +885,10 @@ var Lt = m({
|
|
|
887
885
|
"stroke-linecap": "round",
|
|
888
886
|
"stroke-linejoin": "round",
|
|
889
887
|
"stroke-width": "1.5"
|
|
890
|
-
})]),
|
|
888
|
+
})]), Kt = g("svg", Y(Y({}, J), {}, {
|
|
891
889
|
viewBox: "0 0 16 16",
|
|
892
890
|
class: {
|
|
893
|
-
[
|
|
891
|
+
[J.class]: !0,
|
|
894
892
|
"ai-bk-flow-failed-icon": !0
|
|
895
893
|
}
|
|
896
894
|
}), [g("circle", {
|
|
@@ -903,10 +901,10 @@ var Lt = m({
|
|
|
903
901
|
stroke: "white",
|
|
904
902
|
"stroke-linecap": "round",
|
|
905
903
|
"stroke-width": "1.5"
|
|
906
|
-
})]),
|
|
904
|
+
})]), qt = g("svg", Y(Y({}, J), {}, {
|
|
907
905
|
viewBox: "0 0 16 16",
|
|
908
906
|
class: {
|
|
909
|
-
[
|
|
907
|
+
[J.class]: !0,
|
|
910
908
|
"ai-bk-flow-suspended-icon": !0
|
|
911
909
|
}
|
|
912
910
|
}), [
|
|
@@ -932,10 +930,10 @@ var Lt = m({
|
|
|
932
930
|
x: "8.5",
|
|
933
931
|
y: "5"
|
|
934
932
|
})
|
|
935
|
-
]),
|
|
933
|
+
]), Jt = g("svg", Y(Y({}, J), {}, {
|
|
936
934
|
viewBox: "0 0 16 16",
|
|
937
935
|
class: {
|
|
938
|
-
[
|
|
936
|
+
[J.class]: !0,
|
|
939
937
|
"ai-bk-flow-pending-icon": !0
|
|
940
938
|
}
|
|
941
939
|
}), [g("circle", {
|
|
@@ -950,31 +948,31 @@ var Lt = m({
|
|
|
950
948
|
width: "6",
|
|
951
949
|
x: "5",
|
|
952
950
|
y: "7.25"
|
|
953
|
-
})]),
|
|
954
|
-
[
|
|
951
|
+
})]), Yt = g("svg", Y(Y({}, J), {}, { class: {
|
|
952
|
+
[J.class]: !0,
|
|
955
953
|
"ai-execution-icon": !0
|
|
956
954
|
} }), [g("path", {
|
|
957
955
|
"fill-rule": "evenodd",
|
|
958
956
|
d: "M512 64A448 448 0 1 1 64 512 448 448 0 0 1 512 64Zm0 64A384 384 0 0 0 128 512 384 384 0 0 0 784 784 384 384 0 0 0 784 240 384 384 0 0 0 512 128ZM448 576V256h64V512H768v64Z"
|
|
959
|
-
})]),
|
|
960
|
-
[
|
|
957
|
+
})]), Xt = g("svg", Y(Y({}, J), {}, { class: {
|
|
958
|
+
[J.class]: !0,
|
|
961
959
|
"ai-node-output-icon": !0
|
|
962
|
-
} }), [g("path", { d: "M800 128c17.664 0 32 12.288 32 27.424v545.408L594.016 896H224c-17.664 0-32-12.288-32-27.424V155.424C192 140.288 206.336 128 224 128z m-26.176 59.072H250.176v649.856h276.384v-134.88c0-31.52 28.704-57.12 64-57.12h183.264V187.072zM735.52 704h-144.96a13.024 13.024 0 0 0-5.824 1.216v122.432L735.52 704zM704 480v64H320v-64h384z m-128-96v64h-256v-64h256z m96-128v64H320V256h352z" })]),
|
|
963
|
-
[
|
|
960
|
+
} }), [g("path", { d: "M800 128c17.664 0 32 12.288 32 27.424v545.408L594.016 896H224c-17.664 0-32-12.288-32-27.424V155.424C192 140.288 206.336 128 224 128z m-26.176 59.072H250.176v649.856h276.384v-134.88c0-31.52 28.704-57.12 64-57.12h183.264V187.072zM735.52 704h-144.96a13.024 13.024 0 0 0-5.824 1.216v122.432L735.52 704zM704 480v64H320v-64h384z m-128-96v64h-256v-64h256z m96-128v64H320V256h352z" })]), Zt = g("svg", Y(Y({}, J), {}, { class: {
|
|
961
|
+
[J.class]: !0,
|
|
964
962
|
"ai-node-tab-icon": !0
|
|
965
|
-
} }), [g("path", { d: "M374.656 640c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 800 160 785.664 160 768s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 681.088 317.504 640 374.656 640z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z m306.688-320c57.152 0 105.184 41.088 118.72 96.384 1.28-0.16 2.56-0.384 3.936-0.384h61.344c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-61.344c-1.344 0-2.624-0.256-3.936-0.384-13.536 55.296-61.568 96.384-118.72 96.384-57.184 0-105.184-41.088-118.72-96.384-1.312 0.16-2.624 0.384-3.968 0.384h-368C173.76 544 160 529.664 160 512s13.76-32 30.656-32h368c1.376 0 2.656 0.256 3.936 0.384 13.568-55.296 61.568-96.384 118.72-96.384z m0 64c-33.824 0-61.344 28.704-61.344 64s27.52 64 61.344 64 61.312-28.704 61.312-64-27.52-64-61.312-64z m-306.688-288c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 320 160 305.664 160 288s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 201.088 317.504 160 374.656 160z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z" })]),
|
|
963
|
+
} }), [g("path", { d: "M374.656 640c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 800 160 785.664 160 768s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 681.088 317.504 640 374.656 640z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z m306.688-320c57.152 0 105.184 41.088 118.72 96.384 1.28-0.16 2.56-0.384 3.936-0.384h61.344c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-61.344c-1.344 0-2.624-0.256-3.936-0.384-13.536 55.296-61.568 96.384-118.72 96.384-57.184 0-105.184-41.088-118.72-96.384-1.312 0.16-2.624 0.384-3.968 0.384h-368C173.76 544 160 529.664 160 512s13.76-32 30.656-32h368c1.376 0 2.656 0.256 3.936 0.384 13.568-55.296 61.568-96.384 118.72-96.384z m0 64c-33.824 0-61.344 28.704-61.344 64s27.52 64 61.344 64 61.312-28.704 61.312-64-27.52-64-61.312-64z m-306.688-288c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 320 160 305.664 160 288s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 201.088 317.504 160 374.656 160z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z" })]), Qt = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-zoom-in-icon" }), [g("path", { d: "M637.02 482.06H546.3V391.34c0-17.67-14.33-32-32-32s-32 14.33-32 32v90.72H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h90.72v90.72c0 17.67 14.33 32 32 32s32-14.33 32-32v-90.72h90.72c17.67 0 32-14.33 32-32s-14.33-32-32-32z" }), g("path", { d: "M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z" })]), $t = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-zoom-out-icon" }), [g("path", { d: "M637.02 482.06H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h245.44c17.67 0 32-14.33 32-32s-14.33-32-32-32z" }), g("path", { d: "M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z" })]), en = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-rotate-icon" }), [g("path", { d: "M817.76 328.31H402.28c-59.68 0-108.24 48.55-108.24 108.24v415.44c0 59.68 48.55 108.24 108.24 108.24h415.47c59.65 0 108.2-48.55 108.2-108.24V436.55c0-59.69-48.55-108.24-108.19-108.24z m30.39 523.68c0 16.79-13.64 30.43-30.39 30.43H402.28c-16.79 0-30.43-13.64-30.43-30.43V436.55c0-16.79 13.64-30.43 30.43-30.43h415.47c16.75 0 30.39 13.64 30.39 30.43v415.44z" }), g("path", { d: "M248.91 368.43c-18.27-11.32-42.25-5.66-53.57 12.61l-18.16 29.33c-0.87-8.47-1.33-17.1-1.33-25.76 0-134 109.04-243.03 243.07-243.03 44.64 0 88.29 12.2 126.17 35.29 18.39 11.13 42.32 5.32 53.49-12.99 11.17-18.35 5.36-42.28-12.99-53.49-50.11-30.51-107.74-46.62-166.67-46.62-176.93 0-320.88 143.91-320.88 320.84 0 48.14 10.41 94.41 30.89 137.53 6.12 12.84 18.77 21.35 32.98 22.11 0.72 0.04 1.44 0.08 2.17 0.08a38.92 38.92 0 0 0 33.09-18.43L261.52 422c11.29-18.28 5.66-42.25-12.61-53.57z" })]), tn = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-fit-screen-icon" }), [g("path", { d: "M160 160h240v64H224v176H160V160zM160 624h64v176h176v64H160V624zM624 160h240v240h-64V224H624V160zM800 624h64v240H624v-64h176V624z" })]), nn = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-download-icon" }), [g("path", { d: "M544 654.4V192h-64v462.4l-147.2-147.2-45.2 45.2L512 776.8l224.4-224.4-45.2-45.2L544 654.4zM832 832H192v64h640v-64z" })]), rn = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-close-icon" }), [g("path", { d: "M557.3 512l214.9-214.9c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L512 466.7 297.1 251.8c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 512 251.8 726.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 557.3l214.9 214.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 512z" })]), an = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-arrow-left-icon" }), [g("path", {
|
|
966
964
|
d: "M672 165.2L333.2 504c-5.6 5.6-5.6 14.8 0 20.4L672 863.2",
|
|
967
965
|
fill: "none",
|
|
968
966
|
stroke: "currentColor",
|
|
969
967
|
"stroke-width": "64",
|
|
970
968
|
"stroke-linecap": "round"
|
|
971
|
-
})]),
|
|
969
|
+
})]), on = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-arrow-right-preview-icon" }), [g("path", {
|
|
972
970
|
d: "M352 165.2L690.8 504c5.6 5.6 5.6 14.8 0 20.4L352 863.2",
|
|
973
971
|
fill: "none",
|
|
974
972
|
stroke: "currentColor",
|
|
975
973
|
"stroke-width": "64",
|
|
976
974
|
"stroke-linecap": "round"
|
|
977
|
-
})]),
|
|
975
|
+
})]), sn = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-reload-icon" }), [g("path", { d: "M889.6 398.4c-16-35.2-35.2-65.6-60.8-92.8-24-27.2-52.8-48-84.8-65.6-32-17.6-67.2-28.8-102.4-35.2-35.2-6.4-72-8-108.8-3.2V108.8l-256 192 256 192V400c27.2-4.8 54.4-4.8 81.6-1.6 27.2 4.8 52.8 14.4 76.8 27.2 24 12.8 46.4 30.4 64 51.2 17.6 20.8 32 44.8 41.6 70.4 9.6 25.6 14.4 52.8 14.4 81.6s-4.8 56-14.4 81.6c-9.6 25.6-24 49.6-41.6 70.4-17.6 20.8-40 38.4-64 51.2-24 12.8-49.6 22.4-76.8 27.2-27.2 4.8-54.4 4.8-81.6 1.6-27.2-4.8-52.8-14.4-76.8-27.2-24-12.8-46.4-30.4-64-51.2-17.6-20.8-32-44.8-41.6-70.4-9.6-25.6-14.4-52.8-14.4-81.6h-64c0 38.4 6.4 75.2 19.2 110.4 12.8 35.2 30.4 67.2 52.8 96 22.4 28.8 49.6 52.8 80 72 30.4 19.2 64 33.6 99.2 43.2 35.2 9.6 72 12.8 108.8 11.2 36.8-1.6 72-9.6 105.6-22.4 33.6-12.8 64-30.4 92.8-52.8 28.8-22.4 52.8-49.6 72-80 19.2-30.4 33.6-64 43.2-99.2 9.6-35.2 12.8-72 11.2-108.8-1.6-36.8-9.6-72-22.4-105.6z" })]), cn = g("svg", Y(Y({}, J), {}, {
|
|
978
976
|
viewBox: "0 0 200 180",
|
|
979
977
|
class: "ai-common-icon ai-image-broken-icon"
|
|
980
978
|
}), [g("g", { fill: "none" }, [
|
|
@@ -1015,122 +1013,122 @@ var Lt = m({
|
|
|
1015
1013
|
"font-weight": "bold",
|
|
1016
1014
|
fill: "#FF9C01"
|
|
1017
1015
|
}, "!")
|
|
1018
|
-
])]),
|
|
1019
|
-
[
|
|
1016
|
+
])]), ln = g("svg", Y(Y({}, J), {}, { class: "ai-common-icon ai-image-size-icon" }), [g("path", { d: "M864 160H160c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h704c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64z m0 640H160V224h704v576z" })]), un = g("svg", Y(Y({}, J), {}, { class: {
|
|
1017
|
+
[J.class]: !0,
|
|
1020
1018
|
"ai-close-circle-icon": !0
|
|
1021
|
-
} }), [g("path", { d: "M512 70.246391c230.929037 0 418.133279 187.204242 418.133279 418.133279s-187.204242 418.133279-418.133279 418.133279-418.133279-187.204242-418.133279-418.133279 187.204242-418.133279 418.133279-418.133279z m0 59.733325c-197.938508 0-358.399953 160.461446-358.399953 358.399954s160.461446 358.399953 358.399953 358.399953 358.399953-160.461446 358.399953-358.399953-160.461446-358.399953-358.399953-358.399954z m0 123.199984c129.884516 0 235.199969 105.315453 235.199969 235.19997s-105.315453 235.199969-235.199969 235.199969-235.199969-105.315453-235.199969-235.199969 105.315453-235.199969 235.199969-235.19997z m71.276791 140.165182l-71.283324 71.282391-71.276791-71.275858-23.751464 23.751464 71.275858 71.276791-71.275858 71.27679 23.769197 23.769197 71.276791-71.27679 71.265591 71.26559 23.751463-23.751463-71.264657-71.265591 71.282391-71.283324-23.769197-23.769197z" })]),
|
|
1022
|
-
[
|
|
1019
|
+
} }), [g("path", { d: "M512 70.246391c230.929037 0 418.133279 187.204242 418.133279 418.133279s-187.204242 418.133279-418.133279 418.133279-418.133279-187.204242-418.133279-418.133279 187.204242-418.133279 418.133279-418.133279z m0 59.733325c-197.938508 0-358.399953 160.461446-358.399953 358.399954s160.461446 358.399953 358.399953 358.399953 358.399953-160.461446 358.399953-358.399953-160.461446-358.399953-358.399953-358.399954z m0 123.199984c129.884516 0 235.199969 105.315453 235.199969 235.19997s-105.315453 235.199969-235.199969 235.199969-235.199969-105.315453-235.199969-235.199969 105.315453-235.199969 235.199969-235.19997z m71.276791 140.165182l-71.283324 71.282391-71.276791-71.275858-23.751464 23.751464 71.275858 71.276791-71.275858 71.27679 23.769197 23.769197 71.276791-71.27679 71.265591 71.26559 23.751463-23.751463-71.264657-71.265591 71.282391-71.283324-23.769197-23.769197z" })]), dn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1020
|
+
[J.class]: !0,
|
|
1023
1021
|
"ai-doc-link-icon": !0
|
|
1024
|
-
} }), [g("path", { d: "M320.950857 203.337143H191.634286a32.036571 32.036571 0 0 0-31.670857 31.890286v639.561142c0 17.408 14.409143 31.890286 31.670857 31.890286h129.316571a32.036571 32.036571 0 0 0 31.670857-31.890286V235.227429a32.036571 32.036571 0 0 0-31.670857-31.890286z m-35.84 130.486857H227.474286a28.964571 28.964571 0 0 1 0-58.002286h57.490285a28.964571 28.964571 0 0 1 0 58.002286z m293.156572-237.860571H448.877714a32.036571 32.036571 0 0 0-31.597714 31.963428v746.788572c0 17.481143 14.409143 31.963429 31.597714 31.963428h129.462857a32.036571 32.036571 0 0 0 31.524572-31.890286V127.926857c1.462857-17.408-12.873143-31.890286-31.597714-31.890286z m-34.523429 132.022857h-57.490286a28.964571 28.964571 0 0 1 0-58.002286h57.490286a28.964571 28.964571 0 0 1 0 58.002286z m383.780571 613.449143l-120.685714-628.004572a33.792 33.792 0 0 0-33.060571-26.038857H768l-126.537143 24.649143a32.768 32.768 0 0 0-25.819428 37.668571l122.148571 629.394286c2.925714 15.945143 15.872 26.112 31.670857 26.112h5.705143l126.537143-24.649143a35.108571 35.108571 0 0 0 25.819428-39.131428z m-165.302857-529.334858l-57.490285 11.556572h-5.705143a30.72 30.72 0 0 1-28.745143-23.186286 29.696 29.696 0 0 1 22.966857-34.816l57.490286-11.556571c15.798857-2.925714 31.670857 7.241143 34.523428 23.186285a29.696 29.696 0 0 1-22.966857 34.816z" })]),
|
|
1025
|
-
[
|
|
1022
|
+
} }), [g("path", { d: "M320.950857 203.337143H191.634286a32.036571 32.036571 0 0 0-31.670857 31.890286v639.561142c0 17.408 14.409143 31.890286 31.670857 31.890286h129.316571a32.036571 32.036571 0 0 0 31.670857-31.890286V235.227429a32.036571 32.036571 0 0 0-31.670857-31.890286z m-35.84 130.486857H227.474286a28.964571 28.964571 0 0 1 0-58.002286h57.490285a28.964571 28.964571 0 0 1 0 58.002286z m293.156572-237.860571H448.877714a32.036571 32.036571 0 0 0-31.597714 31.963428v746.788572c0 17.481143 14.409143 31.963429 31.597714 31.963428h129.462857a32.036571 32.036571 0 0 0 31.524572-31.890286V127.926857c1.462857-17.408-12.873143-31.890286-31.597714-31.890286z m-34.523429 132.022857h-57.490286a28.964571 28.964571 0 0 1 0-58.002286h57.490286a28.964571 28.964571 0 0 1 0 58.002286z m383.780571 613.449143l-120.685714-628.004572a33.792 33.792 0 0 0-33.060571-26.038857H768l-126.537143 24.649143a32.768 32.768 0 0 0-25.819428 37.668571l122.148571 629.394286c2.925714 15.945143 15.872 26.112 31.670857 26.112h5.705143l126.537143-24.649143a35.108571 35.108571 0 0 0 25.819428-39.131428z m-165.302857-529.334858l-57.490285 11.556572h-5.705143a30.72 30.72 0 0 1-28.745143-23.186286 29.696 29.696 0 0 1 22.966857-34.816l57.490286-11.556571c15.798857-2.925714 31.670857 7.241143 34.523428 23.186285a29.696 29.696 0 0 1-22.966857 34.816z" })]), fn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1023
|
+
[J.class]: !0,
|
|
1026
1024
|
"ai-delete-circle-icon": !0
|
|
1027
|
-
} }), [g("path", { d: "M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m180.8 584l-44.8 44.8-136-136-136 136-44.8-44.8 136-136-136-136 44.8-44.8 136 136 136-136 44.8 44.8-136 136 136 136z" })]),
|
|
1028
|
-
[
|
|
1025
|
+
} }), [g("path", { d: "M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m180.8 584l-44.8 44.8-136-136-136 136-44.8-44.8 136-136-136-136 44.8-44.8 136 136 136-136 44.8 44.8-136 136 136 136z" })]), pn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1026
|
+
[J.class]: !0,
|
|
1029
1027
|
"ai-delete-circle-icon": !0
|
|
1030
|
-
} }), [g("path", { d: "M470.8352 362.7008l-192.8192 186.368a160.768 160.768 0 0 0 0.0512 232.8576c66.4576 64.2048 174.4384 64.3072 240.896 0.0512l241.0496-233.0112a34.9184 34.9184 0 0 1 48.1792 0c13.312 12.8512 13.312 33.7408 0 46.592l-241.0496 233.0112c-93.0816 89.9584-244.224 89.856-337.2544-0.0512a225.1264 225.1264 0 0 1-0.0512-326.0416l337.408-326.144a174.1824 174.1824 0 0 1 240.896 0 160.512 160.512 0 0 1 0 232.96l-192.8192 186.368-144.384 139.5712a104.6528 104.6528 0 0 1-144.6912 0.1024 96.1536 96.1536 0 0 1 0.1536-139.8784l337.0496-325.7856a34.9184 34.9184 0 0 1 48.128 0c13.312 12.8512 13.312 33.7408 0 46.592L374.6304 642.048a31.8464 31.8464 0 0 0-0.1536 46.7456 34.816 34.816 0 0 0 48.3328-0.1536l144.384-139.52 192.8192-186.4192a96.1536 96.1536 0 0 0 0-139.776 103.68 103.68 0 0 0-72.2944-29.0304c-27.136 0-53.1456 10.4448-72.2432 29.0304l-144.5888 139.776z" })]),
|
|
1031
|
-
[
|
|
1028
|
+
} }), [g("path", { d: "M470.8352 362.7008l-192.8192 186.368a160.768 160.768 0 0 0 0.0512 232.8576c66.4576 64.2048 174.4384 64.3072 240.896 0.0512l241.0496-233.0112a34.9184 34.9184 0 0 1 48.1792 0c13.312 12.8512 13.312 33.7408 0 46.592l-241.0496 233.0112c-93.0816 89.9584-244.224 89.856-337.2544-0.0512a225.1264 225.1264 0 0 1-0.0512-326.0416l337.408-326.144a174.1824 174.1824 0 0 1 240.896 0 160.512 160.512 0 0 1 0 232.96l-192.8192 186.368-144.384 139.5712a104.6528 104.6528 0 0 1-144.6912 0.1024 96.1536 96.1536 0 0 1 0.1536-139.8784l337.0496-325.7856a34.9184 34.9184 0 0 1 48.128 0c13.312 12.8512 13.312 33.7408 0 46.592L374.6304 642.048a31.8464 31.8464 0 0 0-0.1536 46.7456 34.816 34.816 0 0 0 48.3328-0.1536l144.384-139.52 192.8192-186.4192a96.1536 96.1536 0 0 0 0-139.776 103.68 103.68 0 0 0-72.2944-29.0304c-27.136 0-53.1456 10.4448-72.2432 29.0304l-144.5888 139.776z" })]), mn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1029
|
+
[J.class]: !0,
|
|
1032
1030
|
"ai-send-message-icon": !0
|
|
1033
|
-
} }), [g("path", { d: "M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z" })]),
|
|
1034
|
-
[
|
|
1031
|
+
} }), [g("path", { d: "M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z" })]), hn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1032
|
+
[J.class]: !0,
|
|
1035
1033
|
"ai-loading-message-icon": !0
|
|
1036
|
-
} }), [g("path", { d: "M512 64c247.424 0 448 200.576 448 448s-200.576 448-448 448S64 759.424 64 512 264.576 64 512 64z m0 64C299.936 128 128 299.936 128 512s171.936 384 384 384 384-171.936 384-384S724.064 128 512 128z m0 192a192 192 0 1 1 0 384 192 192 0 0 1 0-384z" })]),
|
|
1037
|
-
[
|
|
1034
|
+
} }), [g("path", { d: "M512 64c247.424 0 448 200.576 448 448s-200.576 448-448 448S64 759.424 64 512 264.576 64 512 64z m0 64C299.936 128 128 299.936 128 512s171.936 384 384 384 384-171.936 384-384S724.064 128 512 128z m0 192a192 192 0 1 1 0 384 192 192 0 0 1 0-384z" })]), gn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1035
|
+
[J.class]: !0,
|
|
1038
1036
|
"ai-thinking-icon": !0
|
|
1039
|
-
} }), [g("path", { d: "M528 96c61.856 0 112 50.144 112 112 0 0.376-0.002 0.751-0.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 0 1-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 0 1 240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 0 1 153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96z m-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923 0.622 21.7 1.832 32.3l1.623-0.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194 0.09 7.757 0.264A280.989 280.989 0 0 0 793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z" })]),
|
|
1040
|
-
[
|
|
1037
|
+
} }), [g("path", { d: "M528 96c61.856 0 112 50.144 112 112 0 0.376-0.002 0.751-0.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 0 1-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 0 1 240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 0 1 153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96z m-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923 0.622 21.7 1.832 32.3l1.623-0.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194 0.09 7.757 0.264A280.989 280.989 0 0 0 793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z" })]), _n = g("svg", Y(Y({}, J), {}, { class: {
|
|
1038
|
+
[J.class]: !0,
|
|
1041
1039
|
"ai-collapsed-icon": !0
|
|
1042
|
-
} }), [g("path", { d: "M373.15678637 997.95124768l-104.13241023-104.1324102 381.81883749-381.81883748-381.81883749-381.81883748 104.13241023-104.1324102 485.95124773 485.95124768z" })]),
|
|
1043
|
-
[
|
|
1040
|
+
} }), [g("path", { d: "M373.15678637 997.95124768l-104.13241023-104.1324102 381.81883749-381.81883748-381.81883749-381.81883748 104.13241023-104.1324102 485.95124773 485.95124768z" })]), vn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1041
|
+
[J.class]: !0,
|
|
1044
1042
|
"ai-error-icon": !0
|
|
1045
|
-
} }), [g("path", { d: "M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m0 704c-27.2 0-48-20.8-48-48s20.8-48 48-48 48 20.8 48 48-20.8 48-48 48z m48-459.2L544 608c0 17.6-14.4 32-32 32s-32-14.4-32-32l-16-299.2V304c0-27.2 20.8-48 48-48s48 20.8 48 48v4.8z" })]),
|
|
1046
|
-
[
|
|
1043
|
+
} }), [g("path", { d: "M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m0 704c-27.2 0-48-20.8-48-48s20.8-48 48-48 48 20.8 48 48-20.8 48-48 48z m48-459.2L544 608c0 17.6-14.4 32-32 32s-32-14.4-32-32l-16-299.2V304c0-27.2 20.8-48 48-48s48 20.8 48 48v4.8z" })]), yn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1044
|
+
[J.class]: !0,
|
|
1047
1045
|
"ai-content-loading-icon": !0
|
|
1048
1046
|
} }), [g("path", {
|
|
1049
1047
|
fillRule: "evenodd",
|
|
1050
1048
|
d: "M621.2037824 0C1168.33181568 0 1148.103769856 748.7917952 621.2037824 682.56061184 343.25692288000005 647.62276864 136.18899583999996 761.4358976 0 1024 49.3838336 341.33333376 256.45176064 0 621.2037824 0Z"
|
|
1051
|
-
})]),
|
|
1052
|
-
[
|
|
1049
|
+
})]), bn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1050
|
+
[J.class]: !0,
|
|
1053
1051
|
"ai-arrow-down-icon": !0
|
|
1054
|
-
} }), [g("path", { d: "M810.666628 571.545259l-85.526922-83.200123-171.019311 166.469312-0.035467-554.735928H440.048409l0.0672 554.735928-171.121977-166.469312L183.466709 571.545259l313.59996 305.066494L810.666628 571.545259z" })]),
|
|
1055
|
-
[
|
|
1052
|
+
} }), [g("path", { d: "M810.666628 571.545259l-85.526922-83.200123-171.019311 166.469312-0.035467-554.735928H440.048409l0.0672 554.735928-171.121977-166.469312L183.466709 571.545259l313.59996 305.066494L810.666628 571.545259z" })]), xn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1053
|
+
[J.class]: !0,
|
|
1056
1054
|
"ai-close-icon": !0
|
|
1057
|
-
} }), [g("path", { d: "M757.09004048 196.21090938L512 446.01421987l-245.09004048-249.80331049-70.69905014 70.69905014 249.80331049 245.09004048-249.80331049 245.09004048 70.69905014 70.69905014 245.09004048-249.80331049 245.09004048 249.80331049 70.69905014-70.69905014-249.80331049-245.09004048 249.80331049-245.09004048z" })]),
|
|
1058
|
-
[
|
|
1055
|
+
} }), [g("path", { d: "M757.09004048 196.21090938L512 446.01421987l-245.09004048-249.80331049-70.69905014 70.69905014 249.80331049 245.09004048-249.80331049 245.09004048 70.69905014 70.69905014 245.09004048-249.80331049 245.09004048 249.80331049 70.69905014-70.69905014-249.80331049-245.09004048 249.80331049-245.09004048z" })]), Sn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1056
|
+
[J.class]: !0,
|
|
1059
1057
|
"ai-more-icon": !0
|
|
1060
1058
|
} }), [g("path", {
|
|
1061
1059
|
fillRule: "evenodd",
|
|
1062
1060
|
d: "M512.5492576 319.99489568C547.8894304 319.70050624 576.292128 290.79913056 575.9977312 255.44678368 575.6905376 220.0944368 546.8014496 191.7050432 511.4484768 191.99943264 476.3130976 192.29382208 448 220.87520896 448 255.99716352L448 256.54754464C448.3071936 291.88709184 477.2090816 320.2892864 512.5492576 319.99489568M511.4484768 431.9994336C476.3130976 432.2938208 448 460.8752096 448 495.9971648L448 496.5475456C448.3071936 531.8870912 477.2090816 560.2892864 512.5492576 559.994896 547.8894304 559.7005056 576.292128 530.7991296 575.9977312 495.446784 575.6905376 460.0944352 546.8014496 431.7050432 511.4484768 431.9994336M511.4484768 671.9994336C476.3130976 672.2938208 448 700.8752096 448 735.9971648L448 736.5475456C448.3071936 771.8870912 477.2090816 800.2892864 512.5492576 799.994896 547.8894304 799.7005056 576.292128 770.7991296 575.9977312 735.446784 575.6905376 700.0944352 546.8014496 671.7050432 511.4484768 671.9994336"
|
|
1063
|
-
})]),
|
|
1064
|
-
[
|
|
1061
|
+
})]), Cn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1062
|
+
[J.class]: !0,
|
|
1065
1063
|
"ai-agent-icon": !0
|
|
1066
|
-
} }), [g("path", { d: "M512 96c-16.123 0-71.894 216.944-144 287.93-72.106 70.985-272 111.597-272 128 0 16.402 195.757 35.541 272 112 76.243 76.458 127.616 304 144 304s62.134-220.233 144-304c81.866-83.768 272-95.31 272-112 0-16.69-200.746-56.427-272-128C584.746 312.356 528.123 96 512 96z" })]),
|
|
1067
|
-
[
|
|
1064
|
+
} }), [g("path", { d: "M512 96c-16.123 0-71.894 216.944-144 287.93-72.106 70.985-272 111.597-272 128 0 16.402 195.757 35.541 272 112 76.243 76.458 127.616 304 144 304s62.134-220.233 144-304c81.866-83.768 272-95.31 272-112 0-16.69-200.746-56.427-272-128C584.746 312.356 528.123 96 512 96z" })]), wn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1065
|
+
[J.class]: !0,
|
|
1068
1066
|
"ai-more-agent-icon": !0
|
|
1069
|
-
} }), [g("path", { d: "M176 560H416a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H176a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48z m0-432H416a48 48 0 0 1 48 48V416a48 48 0 0 1-48 48H176A48 48 0 0 1 128 416V176A48 48 0 0 1 176 128zM608 560h240a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H608a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48zM848 128H608a51.648 51.648 0 0 0-48 48V416a51.648 51.648 0 0 0 48 48h240A51.712 51.712 0 0 0 896 416V176a51.712 51.712 0 0 0-48-48z m0 264a22.72 22.72 0 0 1-24 24h-192a22.72 22.72 0 0 1-24-24v-192a22.72 22.72 0 0 1 24-24h192a22.72 22.72 0 0 1 24 24v192z" })]),
|
|
1070
|
-
[
|
|
1067
|
+
} }), [g("path", { d: "M176 560H416a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H176a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48z m0-432H416a48 48 0 0 1 48 48V416a48 48 0 0 1-48 48H176A48 48 0 0 1 128 416V176A48 48 0 0 1 176 128zM608 560h240a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H608a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48zM848 128H608a51.648 51.648 0 0 0-48 48V416a51.648 51.648 0 0 0 48 48h240A51.712 51.712 0 0 0 896 416V176a51.712 51.712 0 0 0-48-48z m0 264a22.72 22.72 0 0 1-24 24h-192a22.72 22.72 0 0 1-24-24v-192a22.72 22.72 0 0 1 24-24h192a22.72 22.72 0 0 1 24 24v192z" })]), Tn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1068
|
+
[J.class]: !0,
|
|
1071
1069
|
"ai-copy-icon": !0
|
|
1072
|
-
} }), [g("path", { d: "M672 704L672 832C672 867.346224 643.346224 896 608 896L192 896C156.653776 896 128 867.346224 128 832L128 384C128 348.653776 156.653776 320 192 320L352 320 352 216.88888896C352 168.2420416 389.7269152 128 437.3333344 128L810.6666656 128C858.2730848 128 896 168.2420416 896 216.88888896L896 615.1111104C896 663.7579584 858.2730848 704 810.6666656 704L672 704ZM608 384L192 384 192 832 608 832 608 384ZM672 640L810.6666656 640C821.9706208 640 832 629.3019968 832 615.1111104L832 216.88888896C832 202.69800448 821.9706208 192 810.6666656 192L437.3333344 192C426.0293792 192 416 202.69800448 416 216.88888896L416 320 608 320C643.346224 320 672 348.653776 672 384L672 640Z" })]),
|
|
1073
|
-
[
|
|
1070
|
+
} }), [g("path", { d: "M672 704L672 832C672 867.346224 643.346224 896 608 896L192 896C156.653776 896 128 867.346224 128 832L128 384C128 348.653776 156.653776 320 192 320L352 320 352 216.88888896C352 168.2420416 389.7269152 128 437.3333344 128L810.6666656 128C858.2730848 128 896 168.2420416 896 216.88888896L896 615.1111104C896 663.7579584 858.2730848 704 810.6666656 704L672 704ZM608 384L192 384 192 832 608 832 608 384ZM672 640L810.6666656 640C821.9706208 640 832 629.3019968 832 615.1111104L832 216.88888896C832 202.69800448 821.9706208 192 810.6666656 192L437.3333344 192C426.0293792 192 416 202.69800448 416 216.88888896L416 320 608 320C643.346224 320 672 348.653776 672 384L672 640Z" })]), En = g("svg", Y(Y({}, J), {}, { class: {
|
|
1071
|
+
[J.class]: !0,
|
|
1074
1072
|
"ai-cite-icon": !0
|
|
1075
1073
|
} }), [g("path", {
|
|
1076
1074
|
fillRule: "evenodd",
|
|
1077
1075
|
d: "M642.2717056 192L642.2717056 256 416 256C309.961328 256 224 341.961328 224 448 224 554.038672 309.961328 640 416 640L771.712 640 640 509.52 686 464 896 672 686 880 640 834.48 771.712 704 416 704C277.28274368 704 164.33462816 593.6691904 160.12181824 455.9737376L160 448C160 306.615104 274.615104 192 416 192L642.2717056 192Z"
|
|
1078
|
-
})]),
|
|
1079
|
-
[
|
|
1076
|
+
})]), Dn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1077
|
+
[J.class]: !0,
|
|
1080
1078
|
"ai-rebuild-icon": !0
|
|
1081
|
-
} }), [g("g", null, [g("path", { d: "M844.0772288 379.89662848C860.4577216 421.55369728 869.3925312 467.67402368 869.3925312 512.3065977599999 869.3925312 710.17767424 708.56589312 869.3671872 512 869.3671872 427.1192736 869.3671872 345.21681792000004 839.6121408 281.18398848000004 784.5652992L352.66249536 784.5652992 352.66249536 725.05519936 184.39017791999999 725.05519936 184.39017791999999 891.6834752 243.9556 891.6834752 243.9556 830.6856256C419.67359552 977.97312 683.2505888 955.656832 830.675008 780.1020416 931.936224 659.59409088 955.7623936 494.453568 894.70784 350.14157952L844.0772288 379.89662848Z" }), g("path", { d: "M179.9227712 644.7165664C163.54227967999998 603.0594976 154.607466496 556.9391711999999 154.607466496 512.3065977599999 154.607466496 314.43552064 315.43410688 155.246007232 512 155.246007232 596.8807264 155.246007232 678.78318208 185.00105664 742.8160128 240.0478976L671.33750464 240.0478976 671.33750464 299.55799551999996 839.609824 299.55799551999996 839.609824 132.92972032 780.0444032 132.92972032 780.0444032 193.9275712C604.3264044800001 45.152325248 340.7494112 68.956364544 193.32499072000002 244.51115456 92.0637731136 365.019104 68.237604224 530.15962688 129.292162048 674.47161536L179.9227712 644.7165664Z" })])]),
|
|
1082
|
-
[
|
|
1079
|
+
} }), [g("g", null, [g("path", { d: "M844.0772288 379.89662848C860.4577216 421.55369728 869.3925312 467.67402368 869.3925312 512.3065977599999 869.3925312 710.17767424 708.56589312 869.3671872 512 869.3671872 427.1192736 869.3671872 345.21681792000004 839.6121408 281.18398848000004 784.5652992L352.66249536 784.5652992 352.66249536 725.05519936 184.39017791999999 725.05519936 184.39017791999999 891.6834752 243.9556 891.6834752 243.9556 830.6856256C419.67359552 977.97312 683.2505888 955.656832 830.675008 780.1020416 931.936224 659.59409088 955.7623936 494.453568 894.70784 350.14157952L844.0772288 379.89662848Z" }), g("path", { d: "M179.9227712 644.7165664C163.54227967999998 603.0594976 154.607466496 556.9391711999999 154.607466496 512.3065977599999 154.607466496 314.43552064 315.43410688 155.246007232 512 155.246007232 596.8807264 155.246007232 678.78318208 185.00105664 742.8160128 240.0478976L671.33750464 240.0478976 671.33750464 299.55799551999996 839.609824 299.55799551999996 839.609824 132.92972032 780.0444032 132.92972032 780.0444032 193.9275712C604.3264044800001 45.152325248 340.7494112 68.956364544 193.32499072000002 244.51115456 92.0637731136 365.019104 68.237604224 530.15962688 129.292162048 674.47161536L179.9227712 644.7165664Z" })])]), On = g("svg", Y(Y({}, J), {}, { class: {
|
|
1080
|
+
[J.class]: !0,
|
|
1083
1081
|
"ai-share-icon": !0
|
|
1084
|
-
} }), [g("path", { d: "M954.2973504 473.91614016L566.9315014399999 132.1331402944C556.1972671999999 122.695581056 539.74588608 130.46066144 539.74588608 144.915657216L539.74588608 345.37419392000004C539.74588608 354.33390208000003 532.8619750400001 361.86005696 524.11124032 362.21844544 299.85908159999997 370.46137664 111.309920448 537.11194816 71.639923584 765.6442368L64.28930653056 808.0535232C61.3723950016 824.5393856 81.207393408 834.813184 92.525010176 822.6279808L121.46077254400001 791.328736C226.1195584 677.95856 371.4984288 614.28490048 523.29450496 614.8822144000001 532.39526912 614.8822144000001 539.86256256 622.40836928 539.86256256 631.72646592L539.86256256 827.8843456C539.86256256 842.3393408 556.43062016 850.104416 567.04817792 840.6668608L954.4140288 499.48117376C961.8813248 492.67179584 961.8813248 480.60605568 954.2973504 473.91614016ZM157.39712256 678.9142624C222.73594112 524.92674496 371.61510528 421.233056 541.7293862399999 421.233056L581.39938304 421.233056C590.5001472 421.233056 597.85076416 413.70690112 597.85076416 404.38880512L597.85076416 237.97715904 879.624416 486.69865664 597.85076416 734.82284096 597.85076416 572.59239232C597.85076416 563.27429568 590.5001472 555.7481408 581.39938304 555.7481408L545.3463564799999 555.7481408C404.98457344 550.01392768 268.23976064 594.21515456 157.39712256 678.9142624Z" })]),
|
|
1085
|
-
[
|
|
1082
|
+
} }), [g("path", { d: "M954.2973504 473.91614016L566.9315014399999 132.1331402944C556.1972671999999 122.695581056 539.74588608 130.46066144 539.74588608 144.915657216L539.74588608 345.37419392000004C539.74588608 354.33390208000003 532.8619750400001 361.86005696 524.11124032 362.21844544 299.85908159999997 370.46137664 111.309920448 537.11194816 71.639923584 765.6442368L64.28930653056 808.0535232C61.3723950016 824.5393856 81.207393408 834.813184 92.525010176 822.6279808L121.46077254400001 791.328736C226.1195584 677.95856 371.4984288 614.28490048 523.29450496 614.8822144000001 532.39526912 614.8822144000001 539.86256256 622.40836928 539.86256256 631.72646592L539.86256256 827.8843456C539.86256256 842.3393408 556.43062016 850.104416 567.04817792 840.6668608L954.4140288 499.48117376C961.8813248 492.67179584 961.8813248 480.60605568 954.2973504 473.91614016ZM157.39712256 678.9142624C222.73594112 524.92674496 371.61510528 421.233056 541.7293862399999 421.233056L581.39938304 421.233056C590.5001472 421.233056 597.85076416 413.70690112 597.85076416 404.38880512L597.85076416 237.97715904 879.624416 486.69865664 597.85076416 734.82284096 597.85076416 572.59239232C597.85076416 563.27429568 590.5001472 555.7481408 581.39938304 555.7481408L545.3463564799999 555.7481408C404.98457344 550.01392768 268.23976064 594.21515456 157.39712256 678.9142624Z" })]), kn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1083
|
+
[J.class]: !0,
|
|
1086
1084
|
"ai-like-icon": !0
|
|
1087
1085
|
} }), [g("path", {
|
|
1088
1086
|
"fill-rule": "evenodd",
|
|
1089
1087
|
d: "M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM448 128C492.4018176 134.634696 524.4018176 145.30136288 544 160 586.6666656 192 608 234.66666656 608 288L608 384 843.5169184 384C849.3750016 384 855.2053472 384.8042912 860.8446368 386.3903392 894.8707136 395.9601728 914.6964128 431.3016416 905.1265792 465.3277184L797.1265792 849.3277184C789.3635424 876.9296288 764.1897344 896 735.5169184 896L288 896 288 448 448 128ZM483.008 201.024L352 463.04 352 832 735.5169184 832 843.5169184 448 544 448 544 288C544 254.81113408 532.1510912 231.11331968 505.6 211.2 501.3777696 208.03332736 494.5455392 204.77854912 485.19824 201.68239552L483.008 201.024Z"
|
|
1090
|
-
})]),
|
|
1091
|
-
[
|
|
1088
|
+
})]), An = g("svg", Y(Y({}, J), {}, { class: {
|
|
1089
|
+
[J.class]: !0,
|
|
1092
1090
|
"ai-un-like-icon": !0
|
|
1093
|
-
} }), [g("path", { d: "M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896ZM483.008 822.976L352 560.96 352 192 735.5169184 192 843.5169184 576 608 576 544 576 544 736C544 769.18886592 532.1510912 792.88668032 505.6 812.8 501.3777696 815.9666726400001 494.5455392 819.22145088 485.19824 822.31760448L483.008 822.976Z" })]),
|
|
1094
|
-
[
|
|
1091
|
+
} }), [g("path", { d: "M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896ZM483.008 822.976L352 560.96 352 192 735.5169184 192 843.5169184 576 608 576 544 576 544 736C544 769.18886592 532.1510912 792.88668032 505.6 812.8 501.3777696 815.9666726400001 494.5455392 819.22145088 485.19824 822.31760448L483.008 822.976Z" })]), jn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1092
|
+
[J.class]: !0,
|
|
1095
1093
|
"ai-delete-icon": !0
|
|
1096
1094
|
} }), [g("g", null, [
|
|
1097
1095
|
g("path", { d: "M659.2 246.4V185.6c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4v531.2c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896V246.4H659.2zM422.4 201.6c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176V201.6zM732.8 822.4c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6V822.4z" }),
|
|
1098
1096
|
g("path", { d: "M576 384H640V704H576V384z" }),
|
|
1099
1097
|
g("path", { d: "M384 384H448V704H384V384z" })
|
|
1100
|
-
])]),
|
|
1101
|
-
[
|
|
1098
|
+
])]), Mn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1099
|
+
[J.class]: !0,
|
|
1102
1100
|
"ai-edit-icon": !0
|
|
1103
|
-
} }), [g("path", { d: "M160.07583932 763.37440051h703.84832136v100.54976017H160.07583932zM336.03791965 687.96208035h-100.5497602v-100.54976021l351.92416069-351.92416069 100.54976021 100.5497602zM613.25360852 210.60209379l49.77213129-49.77213128 99.5442626 99.54426259-49.77213131 49.77213129z" })]),
|
|
1104
|
-
[
|
|
1101
|
+
} }), [g("path", { d: "M160.07583932 763.37440051h703.84832136v100.54976017H160.07583932zM336.03791965 687.96208035h-100.5497602v-100.54976021l351.92416069-351.92416069 100.54976021 100.5497602zM613.25360852 210.60209379l49.77213129-49.77213128 99.5442626 99.54426259-49.77213131 49.77213129z" })]), Nn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1102
|
+
[J.class]: !0,
|
|
1105
1103
|
"ai-active-like-icon": !0
|
|
1106
1104
|
} }), [g("path", {
|
|
1107
1105
|
"fill-rule": "evenodd",
|
|
1108
1106
|
d: "M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM288 448L288 896 759.7584608 896C774.0948672 896 786.6817696 886.464816 790.5632896 872.6638592L916.5632896 424.6638592C921.348208 407.6508192 911.4353568 389.9800864 894.4223168 385.1951712 891.6026752 384.402144 888.6875008 384 885.7584608 384L608 384 608 384 608 288C608 234.66666656 586.6666656 192 544 160 524.4018176 145.30136288 492.4018176 134.634696 448 128L288 448Z"
|
|
1109
|
-
})]),
|
|
1110
|
-
[
|
|
1107
|
+
})]), Pn = g("svg", Y(Y({}, J), {}, { class: {
|
|
1108
|
+
[J.class]: !0,
|
|
1111
1109
|
"ai-active-un-like-icon": !0
|
|
1112
1110
|
} }), [g("path", {
|
|
1113
1111
|
"fill-rule": "evenodd",
|
|
1114
1112
|
d: "M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896Z"
|
|
1115
|
-
})]),
|
|
1116
|
-
copy:
|
|
1117
|
-
cite:
|
|
1118
|
-
rebuild:
|
|
1119
|
-
share:
|
|
1120
|
-
like:
|
|
1121
|
-
unlike:
|
|
1122
|
-
delete:
|
|
1123
|
-
edit:
|
|
1124
|
-
activeLike:
|
|
1125
|
-
activeUnLike:
|
|
1126
|
-
},
|
|
1113
|
+
})]), Fn = {
|
|
1114
|
+
copy: Tn,
|
|
1115
|
+
cite: En,
|
|
1116
|
+
rebuild: Dn,
|
|
1117
|
+
share: On,
|
|
1118
|
+
like: kn,
|
|
1119
|
+
unlike: An,
|
|
1120
|
+
delete: jn,
|
|
1121
|
+
edit: Mn,
|
|
1122
|
+
activeLike: Nn,
|
|
1123
|
+
activeUnLike: Pn
|
|
1124
|
+
}, In = [{
|
|
1127
1125
|
id: "ai-chat",
|
|
1128
|
-
name:
|
|
1129
|
-
icon: () =>
|
|
1126
|
+
name: q("问问小鲸"),
|
|
1127
|
+
icon: () => It
|
|
1130
1128
|
}];
|
|
1131
1129
|
//#endregion
|
|
1132
1130
|
//#region \0@oxc-project+runtime@0.124.0/helpers/asyncToGenerator.js
|
|
1133
|
-
function
|
|
1131
|
+
function Ln(e, t, n, r, i, a, o) {
|
|
1134
1132
|
try {
|
|
1135
1133
|
var s = e[a](o), c = s.value;
|
|
1136
1134
|
} catch (e) {
|
|
@@ -1139,16 +1137,16 @@ function Rn(e, t, n, r, i, a, o) {
|
|
|
1139
1137
|
}
|
|
1140
1138
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1141
1139
|
}
|
|
1142
|
-
function
|
|
1140
|
+
function X(e) {
|
|
1143
1141
|
return function() {
|
|
1144
1142
|
var t = this, n = arguments;
|
|
1145
1143
|
return new Promise(function(r, i) {
|
|
1146
1144
|
var a = e.apply(t, n);
|
|
1147
1145
|
function o(e) {
|
|
1148
|
-
|
|
1146
|
+
Ln(a, r, i, o, s, "next", e);
|
|
1149
1147
|
}
|
|
1150
1148
|
function s(e) {
|
|
1151
|
-
|
|
1149
|
+
Ln(a, r, i, o, s, "throw", e);
|
|
1152
1150
|
}
|
|
1153
1151
|
o(void 0);
|
|
1154
1152
|
});
|
|
@@ -1156,7 +1154,7 @@ function Y(e) {
|
|
|
1156
1154
|
}
|
|
1157
1155
|
//#endregion
|
|
1158
1156
|
//#region src/components/ai-shortcut/shortcut-btn/shortcut-btn.vue?vue&type=script&setup=true&lang.ts
|
|
1159
|
-
var
|
|
1157
|
+
var Rn = ["src"], zn = /* @__PURE__ */ m({
|
|
1160
1158
|
__name: "shortcut-btn",
|
|
1161
1159
|
props: {
|
|
1162
1160
|
mode: {},
|
|
@@ -1165,7 +1163,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1165
1163
|
emits: ["click"],
|
|
1166
1164
|
setup(t, { expose: n, emit: r }) {
|
|
1167
1165
|
let i = t, a = F(!1), l = r;
|
|
1168
|
-
|
|
1166
|
+
V(() => {
|
|
1169
1167
|
var e;
|
|
1170
1168
|
return (e = i.shortcut) == null ? void 0 : e.icon;
|
|
1171
1169
|
}, () => {
|
|
@@ -1183,7 +1181,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1183
1181
|
onClick: r[1] || (r[1] = (e) => u(t.shortcut))
|
|
1184
1182
|
}, [N(n.$slots, "default", {}, () => {
|
|
1185
1183
|
var n, i, l, u, f, p, m;
|
|
1186
|
-
return [(n = t.shortcut) != null && n.icon ? (k(), c(e, { key: 0 }, [typeof t.shortcut.icon == "string" ? (k(), c(e, { key: 0 }, [t.shortcut.icon.startsWith("http") ? (k(), c(e, { key: 0 }, [a.value ? (k(), o(R(
|
|
1184
|
+
return [(n = t.shortcut) != null && n.icon ? (k(), c(e, { key: 0 }, [typeof t.shortcut.icon == "string" ? (k(), c(e, { key: 0 }, [t.shortcut.icon.startsWith("http") ? (k(), c(e, { key: 0 }, [a.value ? (k(), o(R(Cn), {
|
|
1187
1185
|
key: 1,
|
|
1188
1186
|
class: "ai-shortcut-btn-icon"
|
|
1189
1187
|
})) : (k(), c("img", {
|
|
@@ -1191,35 +1189,35 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1191
1189
|
class: "ai-common-icon ai-shortcut-btn-icon",
|
|
1192
1190
|
src: t.shortcut.icon,
|
|
1193
1191
|
onError: r[0] || (r[0] = (e) => a.value = !0)
|
|
1194
|
-
}, null, 40,
|
|
1192
|
+
}, null, 40, Rn))], 64)) : (k(), c("span", {
|
|
1195
1193
|
key: 1,
|
|
1196
1194
|
class: S(t.shortcut.icon)
|
|
1197
1195
|
}, null, 2))], 64)) : (k(), o(P(typeof ((i = t.shortcut) == null ? void 0 : i.icon) == "function" ? (l = (u = t.shortcut).icon) == null ? void 0 : l.call(u, g) : t.shortcut.icon), {
|
|
1198
1196
|
key: 1,
|
|
1199
1197
|
class: "ai-shortcut-btn-icon"
|
|
1200
|
-
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(R(
|
|
1198
|
+
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(R(Cn), {
|
|
1201
1199
|
key: 1,
|
|
1202
1200
|
class: "ai-shortcut-btn-icon"
|
|
1203
1201
|
})) : s("", !0), d(" " + I(((p = t.shortcut) == null ? void 0 : p.alias) || ((m = t.shortcut) == null ? void 0 : m.name)), 1)];
|
|
1204
1202
|
}), N(n.$slots, "append")], 2));
|
|
1205
1203
|
}
|
|
1206
|
-
}),
|
|
1204
|
+
}), Bn = { class: "ai-selection-popover-content" }, Vn = {
|
|
1207
1205
|
key: 0,
|
|
1208
1206
|
class: "shortcut-menu"
|
|
1209
|
-
},
|
|
1207
|
+
}, Hn = /* @__PURE__ */ m({
|
|
1210
1208
|
__name: "ai-selection",
|
|
1211
1209
|
props: /* @__PURE__ */ y({
|
|
1212
1210
|
excludeSelectors: { default: () => [] },
|
|
1213
1211
|
maxShortcutCount: { default: 3 },
|
|
1214
1212
|
offset: { default: 10 },
|
|
1215
|
-
shortcuts: { default: () =>
|
|
1213
|
+
shortcuts: { default: () => In }
|
|
1216
1214
|
}, {
|
|
1217
|
-
visible:
|
|
1215
|
+
visible: Y({ type: Boolean }, { required: !0 }),
|
|
1218
1216
|
visibleModifiers: {}
|
|
1219
1217
|
}),
|
|
1220
1218
|
emits: /* @__PURE__ */ y(["selectShortcut", "selectionChange"], ["update:visible"]),
|
|
1221
1219
|
setup(n, { emit: i }) {
|
|
1222
|
-
ne((e) => ({ v908f613a: R(
|
|
1220
|
+
ne((e) => ({ v908f613a: R(xt) }));
|
|
1223
1221
|
let a = n, u = z(n, "visible"), d = i, p = B("popoverRef"), m = B("moreMenuRef"), h = F({
|
|
1224
1222
|
x: 0,
|
|
1225
1223
|
y: 0
|
|
@@ -1249,7 +1247,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1249
1247
|
}
|
|
1250
1248
|
}
|
|
1251
1249
|
}, b = function() {
|
|
1252
|
-
var e =
|
|
1250
|
+
var e = X(function* () {
|
|
1253
1251
|
var e, t;
|
|
1254
1252
|
if (_.value = window.getSelection(), !_.value) {
|
|
1255
1253
|
let e = document.activeElement;
|
|
@@ -1317,9 +1315,9 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1317
1315
|
}, e);
|
|
1318
1316
|
}, A = () => {
|
|
1319
1317
|
D(200);
|
|
1320
|
-
},
|
|
1318
|
+
}, j = () => {
|
|
1321
1319
|
D(300);
|
|
1322
|
-
},
|
|
1320
|
+
}, ee = (e) => {
|
|
1323
1321
|
var t;
|
|
1324
1322
|
u.value && (t = p.value) != null && t.contains(e.target) || S();
|
|
1325
1323
|
}, P = (e) => {
|
|
@@ -1330,11 +1328,11 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1330
1328
|
(e = m.value) == null || e.show();
|
|
1331
1329
|
};
|
|
1332
1330
|
return E(() => {
|
|
1333
|
-
document.addEventListener("selectionchange",
|
|
1331
|
+
document.addEventListener("selectionchange", j), document.addEventListener("mouseup", A), document.addEventListener("mousedown", ee), document.addEventListener("scroll", P, !0), window.addEventListener("resize", S), window.addEventListener("blur", S);
|
|
1334
1332
|
}), O(() => {
|
|
1335
|
-
document.removeEventListener("selectionchange",
|
|
1333
|
+
document.removeEventListener("selectionchange", j), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown", ee), document.removeEventListener("scroll", P, !0), window.removeEventListener("resize", S), window.removeEventListener("blur", S);
|
|
1336
1334
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-fade" }, {
|
|
1337
|
-
default:
|
|
1335
|
+
default: H(() => [u.value ? (k(), c("div", {
|
|
1338
1336
|
key: 0,
|
|
1339
1337
|
ref_key: "popoverRef",
|
|
1340
1338
|
ref: p,
|
|
@@ -1342,17 +1340,17 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1342
1340
|
style: w({
|
|
1343
1341
|
left: `${h.value.x}px`,
|
|
1344
1342
|
top: `${h.value.y}px`,
|
|
1345
|
-
zIndex: R(
|
|
1343
|
+
zIndex: R(xt)
|
|
1346
1344
|
}),
|
|
1347
|
-
onMousedown: a[2] || (a[2] =
|
|
1348
|
-
}, [l("div",
|
|
1345
|
+
onMousedown: a[2] || (a[2] = se(() => {}, ["stop"]))
|
|
1346
|
+
}, [l("div", Bn, [N(i.$slots, "default", { shortcuts: n.shortcuts }, () => [(k(!0), c(e, null, M(n.shortcuts.slice(0, n.maxShortcutCount), (t, r) => (k(), c(e, { key: t.id }, [r < n.maxShortcutCount ? (k(), o(zn, {
|
|
1349
1347
|
key: 0,
|
|
1350
1348
|
shortcut: t,
|
|
1351
1349
|
onClick: (e) => C(t)
|
|
1352
1350
|
}, null, 8, ["shortcut", "onClick"])) : s("", !0)], 64))), 128)), n.shortcuts.length > n.maxShortcutCount ? (k(), c(e, { key: 0 }, [a[3] || (a[3] = l("div", {
|
|
1353
1351
|
class: "ai-divider",
|
|
1354
1352
|
style: { margin: "0 4px" }
|
|
1355
|
-
}, null, -1)), f(R(
|
|
1353
|
+
}, null, -1)), f(R(ce), {
|
|
1356
1354
|
ref_key: "moreMenuRef",
|
|
1357
1355
|
ref: m,
|
|
1358
1356
|
arrow: !1,
|
|
@@ -1367,17 +1365,17 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1367
1365
|
v.value = !0;
|
|
1368
1366
|
})
|
|
1369
1367
|
}, {
|
|
1370
|
-
content:
|
|
1368
|
+
content: H(() => [v.value ? (k(), c("div", Vn, [(k(!0), c(e, null, M(n.shortcuts.slice(n.maxShortcutCount), (e) => (k(), o(zn, {
|
|
1371
1369
|
key: e.id,
|
|
1372
1370
|
mode: "menu",
|
|
1373
1371
|
shortcut: e,
|
|
1374
1372
|
onClick: (t) => C(e)
|
|
1375
1373
|
}, null, 8, ["shortcut", "onClick"]))), 128))])) : s("", !0)]),
|
|
1376
|
-
default:
|
|
1374
|
+
default: H(() => [f(zn, {
|
|
1377
1375
|
style: { width: "28px" },
|
|
1378
1376
|
onClick: I
|
|
1379
1377
|
}, {
|
|
1380
|
-
default:
|
|
1378
|
+
default: H(() => [f(R(_n), { class: "shortcut-btn-more-icon" })]),
|
|
1381
1379
|
_: 1
|
|
1382
1380
|
})]),
|
|
1383
1381
|
_: 1
|
|
@@ -1385,9 +1383,9 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1385
1383
|
_: 3
|
|
1386
1384
|
})]));
|
|
1387
1385
|
}
|
|
1388
|
-
}),
|
|
1386
|
+
}), Un = (e, t, n) => {
|
|
1389
1387
|
let r = F([]), i = function() {
|
|
1390
|
-
var i =
|
|
1388
|
+
var i = X(function* () {
|
|
1391
1389
|
if (!e.value || t.value.length === 0) return;
|
|
1392
1390
|
yield x();
|
|
1393
1391
|
let i = e.value.offsetWidth, a = /* @__PURE__ */ new Set(), o = 0;
|
|
@@ -1405,7 +1403,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1405
1403
|
return i.apply(this, arguments);
|
|
1406
1404
|
};
|
|
1407
1405
|
}(), a = null;
|
|
1408
|
-
return
|
|
1406
|
+
return V([t, n.moreItemRef], () => {
|
|
1409
1407
|
x(() => {
|
|
1410
1408
|
i();
|
|
1411
1409
|
});
|
|
@@ -1421,19 +1419,19 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1421
1419
|
visibleItems: r,
|
|
1422
1420
|
calculateVisibleMenuItems: i
|
|
1423
1421
|
};
|
|
1424
|
-
},
|
|
1422
|
+
}, Wn = { class: "shortcut-menu" }, Gn = 4, Kn = /* @__PURE__ */ m({
|
|
1425
1423
|
__name: "shortcut-btns",
|
|
1426
1424
|
props: { shortcuts: {} },
|
|
1427
1425
|
emits: ["selectShortcut"],
|
|
1428
1426
|
setup(t, { emit: n }) {
|
|
1429
|
-
let r = document.body, i = t, u = n, d = B("containerRef"), p = F([]), m = B("moreMenuRef"), h = B("moreBtnRef"), { visibleItems: g } =
|
|
1427
|
+
let r = document.body, i = t, u = n, d = B("containerRef"), p = F([]), m = B("moreMenuRef"), h = B("moreBtnRef"), { visibleItems: g } = Un(d, p, {
|
|
1430
1428
|
items: a(() => i.shortcuts),
|
|
1431
|
-
gap:
|
|
1429
|
+
gap: Gn,
|
|
1432
1430
|
moreItemRef: h
|
|
1433
1431
|
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v = F(!1), y = (e, t) => {
|
|
1434
1432
|
e && "$el" in e ? p.value[t] = e.$el : e && e instanceof HTMLElement && (p.value[t] = e);
|
|
1435
1433
|
};
|
|
1436
|
-
|
|
1434
|
+
V(() => i.shortcuts, () => {
|
|
1437
1435
|
p.value = Array(i.shortcuts.length).fill(null);
|
|
1438
1436
|
}, { deep: !0 });
|
|
1439
1437
|
let b = () => {
|
|
@@ -1441,7 +1439,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1441
1439
|
}, x = (e) => {
|
|
1442
1440
|
v.value = !1, u("selectShortcut", e);
|
|
1443
1441
|
};
|
|
1444
|
-
return
|
|
1442
|
+
return V(v, (e) => {
|
|
1445
1443
|
if (e) {
|
|
1446
1444
|
var t;
|
|
1447
1445
|
(t = m.value) == null || t.show();
|
|
@@ -1453,7 +1451,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1453
1451
|
ref_key: "containerRef",
|
|
1454
1452
|
ref: d,
|
|
1455
1453
|
class: "shortcut-btns"
|
|
1456
|
-
}, [(k(!0), c(e, null, M(t.shortcuts, (e, t) => (k(), o(
|
|
1454
|
+
}, [(k(!0), c(e, null, M(t.shortcuts, (e, t) => (k(), o(zn, {
|
|
1457
1455
|
key: e.key || e.id,
|
|
1458
1456
|
ref_for: !0,
|
|
1459
1457
|
ref: (e) => y(e, t),
|
|
@@ -1464,7 +1462,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1464
1462
|
"class",
|
|
1465
1463
|
"shortcut",
|
|
1466
1464
|
"onClick"
|
|
1467
|
-
]))), 128)), _.value.length > 0 ? (k(), o(R(
|
|
1465
|
+
]))), 128)), _.value.length > 0 ? (k(), o(R(ce), {
|
|
1468
1466
|
key: 0,
|
|
1469
1467
|
ref_key: "moreMenuRef",
|
|
1470
1468
|
ref: m,
|
|
@@ -1474,24 +1472,24 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1474
1472
|
offset: [0, 6],
|
|
1475
1473
|
theme: "ai-chat-box-light light",
|
|
1476
1474
|
trigger: "manual",
|
|
1477
|
-
"z-index": R(
|
|
1475
|
+
"z-index": R(bt),
|
|
1478
1476
|
onHidden: i[0] || (i[0] = () => {
|
|
1479
1477
|
v.value = !1;
|
|
1480
1478
|
})
|
|
1481
1479
|
}, {
|
|
1482
|
-
content:
|
|
1480
|
+
content: H(() => [l("div", Wn, [(k(!0), c(e, null, M(_.value, (e) => (k(), o(zn, {
|
|
1483
1481
|
key: e.id,
|
|
1484
1482
|
mode: "menu",
|
|
1485
1483
|
shortcut: e,
|
|
1486
1484
|
onClick: (t) => x(e)
|
|
1487
1485
|
}, null, 8, ["shortcut", "onClick"]))), 128))])]),
|
|
1488
|
-
default:
|
|
1486
|
+
default: H(() => [f(zn, {
|
|
1489
1487
|
ref_key: "moreBtnRef",
|
|
1490
1488
|
ref: h,
|
|
1491
1489
|
class: "shortcut-btns-item shortcut-btns-more",
|
|
1492
1490
|
onClick: b
|
|
1493
1491
|
}, {
|
|
1494
|
-
default:
|
|
1492
|
+
default: H(() => [f(R(wn), { class: "shortcut-btns-more-icon" }), l("span", null, I(R(q)("更多")), 1)]),
|
|
1495
1493
|
_: 1
|
|
1496
1494
|
}, 512)]),
|
|
1497
1495
|
_: 1
|
|
@@ -1500,7 +1498,7 @@ var zn = ["src"], Bn = /* @__PURE__ */ m({
|
|
|
1500
1498
|
});
|
|
1501
1499
|
//#endregion
|
|
1502
1500
|
//#region \0@oxc-project+runtime@0.124.0/helpers/objectWithoutPropertiesLoose.js
|
|
1503
|
-
function
|
|
1501
|
+
function qn(e, t) {
|
|
1504
1502
|
if (e == null) return {};
|
|
1505
1503
|
var n = {};
|
|
1506
1504
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -1511,9 +1509,9 @@ function Jn(e, t) {
|
|
|
1511
1509
|
}
|
|
1512
1510
|
//#endregion
|
|
1513
1511
|
//#region \0@oxc-project+runtime@0.124.0/helpers/objectWithoutProperties.js
|
|
1514
|
-
function
|
|
1512
|
+
function Jn(e, t) {
|
|
1515
1513
|
if (e == null) return {};
|
|
1516
|
-
var n, r, i =
|
|
1514
|
+
var n, r, i = qn(e, t);
|
|
1517
1515
|
if (Object.getOwnPropertySymbols) {
|
|
1518
1516
|
var a = Object.getOwnPropertySymbols(e);
|
|
1519
1517
|
for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
@@ -1522,7 +1520,7 @@ function Yn(e, t) {
|
|
|
1522
1520
|
}
|
|
1523
1521
|
//#endregion
|
|
1524
1522
|
//#region src/components/ai-shortcut/shortcut-render/shortcut-render.vue?vue&type=script&setup=true&lang.ts
|
|
1525
|
-
var
|
|
1523
|
+
var Yn = ["options"], Xn = ["options"], Zn = { class: "shortcut-render" }, Qn = { class: "shortcut-render-header" }, $n = { class: "header-name" }, er = { class: "shortcut-render-content" }, tr = { class: "shortcut-footer" }, nr = /* @__PURE__ */ m({
|
|
1526
1524
|
__name: "shortcut-render",
|
|
1527
1525
|
props: {
|
|
1528
1526
|
alias: {},
|
|
@@ -1540,8 +1538,8 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1540
1538
|
},
|
|
1541
1539
|
emits: ["close", "submit"],
|
|
1542
1540
|
setup(t, { emit: n }) {
|
|
1543
|
-
let r = t, i = n, a = B("formRef"), s =
|
|
1544
|
-
|
|
1541
|
+
let r = t, i = n, a = B("formRef"), s = j({}), u = F({});
|
|
1542
|
+
ae(() => {
|
|
1545
1543
|
var e;
|
|
1546
1544
|
if (r.formModel) for (let e in r.formModel) s[e] = r.formModel[e];
|
|
1547
1545
|
for (let o of (e = r == null ? void 0 : r.components) == null ? [] : e) if (o.key) {
|
|
@@ -1560,14 +1558,14 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1560
1558
|
return t === ((n = (i = r.components) == null ? void 0 : i.length) == null ? 0 : n) - 1 && a % 2 == 0 ? "span 2" : "auto";
|
|
1561
1559
|
}, m = (e) => {
|
|
1562
1560
|
var t, n, r, i;
|
|
1563
|
-
return
|
|
1561
|
+
return Y(Y({}, e.formItemProps), {}, {
|
|
1564
1562
|
property: e.key,
|
|
1565
1563
|
label: (t = e.name) == null ? (n = e.formItemProps) == null ? void 0 : n.label : t,
|
|
1566
1564
|
required: (r = e.fillBack) == null ? (i = e.formItemProps) == null ? void 0 : i.required : r
|
|
1567
1565
|
});
|
|
1568
1566
|
}, h = (e) => {
|
|
1569
1567
|
var t;
|
|
1570
|
-
let n = (t = e == null ? void 0 : e.props) == null ? {} : t, { options: r } = n, i =
|
|
1568
|
+
let n = (t = e == null ? void 0 : e.props) == null ? {} : t, { options: r } = n, i = Jn(n, Yn), a = e == null ? {} : e, { options: o } = a, c = Jn(a, Xn), l = r == null ? o : r, u = Y(Y(Y({}, c), i), {}, {
|
|
1571
1569
|
modelValue: s[e.key],
|
|
1572
1570
|
onChange: (t) => {
|
|
1573
1571
|
s[e.key] = t;
|
|
@@ -1578,19 +1576,19 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1578
1576
|
});
|
|
1579
1577
|
switch (e.type) {
|
|
1580
1578
|
case "text":
|
|
1581
|
-
case "input": return g(
|
|
1582
|
-
case "textarea": return g(
|
|
1583
|
-
case "number": return g(
|
|
1584
|
-
case "select": return g(
|
|
1585
|
-
case "checkboxGroup": return g(
|
|
1586
|
-
case "radioGroup": return g(
|
|
1587
|
-
case "switcher": return g(
|
|
1579
|
+
case "input": return g(me, u);
|
|
1580
|
+
case "textarea": return g(me, Y(Y({}, u), {}, { type: "textarea" }));
|
|
1581
|
+
case "number": return g(me, Y(Y({}, u), {}, { type: "number" }));
|
|
1582
|
+
case "select": return g(ye, u, l == null ? void 0 : l.map((e) => g(ye.Option, Y({}, e))));
|
|
1583
|
+
case "checkboxGroup": return g(de.Group, u, l == null ? void 0 : l.map((e) => g(de, Y({}, e))));
|
|
1584
|
+
case "radioGroup": return g(_e.Group, u, l == null ? void 0 : l.map((e) => g(_e, Y({}, e))));
|
|
1585
|
+
case "switcher": return g(be, u);
|
|
1588
1586
|
default: return null;
|
|
1589
1587
|
}
|
|
1590
1588
|
}, _ = function() {
|
|
1591
|
-
var e =
|
|
1589
|
+
var e = X(function* () {
|
|
1592
1590
|
var e, t;
|
|
1593
|
-
(yield (e = a.value) == null || (t = e.validate) == null ? void 0 : t.call(e).catch(() => !1)) && i("submit",
|
|
1591
|
+
(yield (e = a.value) == null || (t = e.validate) == null ? void 0 : t.call(e).catch(() => !1)) && i("submit", Y({}, s));
|
|
1594
1592
|
});
|
|
1595
1593
|
return function() {
|
|
1596
1594
|
return e.apply(this, arguments);
|
|
@@ -1600,14 +1598,14 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1600
1598
|
}, y = () => {
|
|
1601
1599
|
i("close");
|
|
1602
1600
|
};
|
|
1603
|
-
return (n, r) => (k(), c("div",
|
|
1604
|
-
f(R(
|
|
1605
|
-
l("span",
|
|
1606
|
-
f(R(
|
|
1601
|
+
return (n, r) => (k(), c("div", Zn, [l("div", Qn, [
|
|
1602
|
+
f(R(gn), { class: "header-icon" }),
|
|
1603
|
+
l("span", $n, I(t.alias || t.name), 1),
|
|
1604
|
+
f(R(xn), {
|
|
1607
1605
|
class: "header-close",
|
|
1608
1606
|
onClick: y
|
|
1609
1607
|
})
|
|
1610
|
-
]), l("div",
|
|
1608
|
+
]), l("div", er, [f(R(pe), {
|
|
1611
1609
|
ref_key: "formRef",
|
|
1612
1610
|
ref: a,
|
|
1613
1611
|
class: "shortcut-render-form",
|
|
@@ -1615,24 +1613,24 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1615
1613
|
model: s,
|
|
1616
1614
|
rules: u.value
|
|
1617
1615
|
}, {
|
|
1618
|
-
default:
|
|
1616
|
+
default: H(() => [(k(!0), c(e, null, M(t.components, (e, t) => (k(), o(R(pe).FormItem, b({
|
|
1619
1617
|
key: e.id,
|
|
1620
1618
|
ref_for: !0
|
|
1621
1619
|
}, m(e), {
|
|
1622
1620
|
class: "shortcut-render-form-item",
|
|
1623
1621
|
style: { gridColumn: p(e, t) }
|
|
1624
1622
|
}), {
|
|
1625
|
-
default:
|
|
1623
|
+
default: H(() => [(k(), o(P(h(e))))]),
|
|
1626
1624
|
_: 2
|
|
1627
|
-
}, 1040, ["style"]))), 128)), f(R(
|
|
1628
|
-
default:
|
|
1625
|
+
}, 1040, ["style"]))), 128)), f(R(pe).FormItem, { class: "shortcut-footer-item" }, {
|
|
1626
|
+
default: H(() => [l("div", tr, [f(R(ue), {
|
|
1629
1627
|
theme: "primary",
|
|
1630
1628
|
onClick: _
|
|
1631
1629
|
}, {
|
|
1632
|
-
default:
|
|
1630
|
+
default: H(() => [d(I(R(q)("提交")), 1)]),
|
|
1633
1631
|
_: 1
|
|
1634
|
-
}), f(R(
|
|
1635
|
-
default:
|
|
1632
|
+
}), f(R(ue), { onClick: v }, {
|
|
1633
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
1636
1634
|
_: 1
|
|
1637
1635
|
})])]),
|
|
1638
1636
|
_: 1
|
|
@@ -1640,9 +1638,9 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1640
1638
|
_: 1
|
|
1641
1639
|
}, 8, ["model", "rules"])])]));
|
|
1642
1640
|
}
|
|
1643
|
-
}),
|
|
1644
|
-
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i =
|
|
1645
|
-
return
|
|
1641
|
+
}), rr = (e, t) => {
|
|
1642
|
+
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i = ee([]), o = ee("");
|
|
1643
|
+
return V(() => e, (e) => {
|
|
1646
1644
|
let t = L(e);
|
|
1647
1645
|
if (t === o.value) return;
|
|
1648
1646
|
if (!(o.value && t.indexOf(o.value) === 0)) {
|
|
@@ -1658,7 +1656,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1658
1656
|
color: "inherit"
|
|
1659
1657
|
}))
|
|
1660
1658
|
};
|
|
1661
|
-
},
|
|
1659
|
+
}, ir = typeof navigator < "u" && "clipboard" in navigator, ar = (e) => {
|
|
1662
1660
|
let t = document.createElement("textarea");
|
|
1663
1661
|
t.value = e, t.style.position = "fixed", t.style.left = "-9999px", t.style.top = "-9999px", t.style.opacity = "0", document.body.appendChild(t), t.focus(), t.select();
|
|
1664
1662
|
try {
|
|
@@ -1668,39 +1666,43 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1668
1666
|
} finally {
|
|
1669
1667
|
document.body.removeChild(t);
|
|
1670
1668
|
}
|
|
1671
|
-
},
|
|
1672
|
-
var e =
|
|
1669
|
+
}, or = () => ({ copy: function() {
|
|
1670
|
+
var e = X(function* (e) {
|
|
1673
1671
|
let t = !1;
|
|
1674
|
-
if (
|
|
1672
|
+
if (ir) try {
|
|
1675
1673
|
yield navigator.clipboard.writeText(e), t = !0;
|
|
1676
1674
|
} catch (n) {
|
|
1677
|
-
t =
|
|
1675
|
+
t = ar(e);
|
|
1678
1676
|
}
|
|
1679
|
-
else t =
|
|
1680
|
-
|
|
1681
|
-
message:
|
|
1677
|
+
else t = ar(e);
|
|
1678
|
+
ge({
|
|
1679
|
+
message: q(t ? "复制成功" : "复制失败"),
|
|
1682
1680
|
theme: t ? "success" : "error"
|
|
1683
1681
|
});
|
|
1684
1682
|
});
|
|
1685
1683
|
return function(t) {
|
|
1686
1684
|
return e.apply(this, arguments);
|
|
1687
1685
|
};
|
|
1688
|
-
}() }),
|
|
1686
|
+
}() }), sr = () => {
|
|
1689
1687
|
let e = F({
|
|
1690
1688
|
column: 0,
|
|
1691
1689
|
line: 0
|
|
1692
|
-
});
|
|
1690
|
+
}), t = F([]);
|
|
1693
1691
|
return {
|
|
1694
1692
|
commandSelection: e,
|
|
1693
|
+
docSnapshot: t,
|
|
1695
1694
|
GetCursorPosition: (t, n) => {
|
|
1696
1695
|
let [, r] = n, [i, a] = r;
|
|
1697
1696
|
e.value = {
|
|
1698
1697
|
column: a,
|
|
1699
1698
|
line: i
|
|
1700
1699
|
};
|
|
1700
|
+
},
|
|
1701
|
+
GetDocSnapshot: (e) => {
|
|
1702
|
+
t.value = e;
|
|
1701
1703
|
}
|
|
1702
1704
|
};
|
|
1703
|
-
},
|
|
1705
|
+
}, cr = Symbol("CONTAINER_SCROLL_TOKEN"), lr = 100, ur = (e, t) => {
|
|
1704
1706
|
let n = F(!1), r = null, i = F(0), o = F(!0), s = p((e, t) => {
|
|
1705
1707
|
let n, r = !1;
|
|
1706
1708
|
return {
|
|
@@ -1718,7 +1720,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1718
1720
|
}
|
|
1719
1721
|
};
|
|
1720
1722
|
});
|
|
1721
|
-
A(
|
|
1723
|
+
A(cr, a(() => ({
|
|
1722
1724
|
autoScrollEnabled: o.value,
|
|
1723
1725
|
isScrollBottom: n,
|
|
1724
1726
|
scrollBottomHeight: i,
|
|
@@ -1747,7 +1749,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1747
1749
|
e.deltaY < 0 && (o.value = !1);
|
|
1748
1750
|
};
|
|
1749
1751
|
return E(() => {
|
|
1750
|
-
|
|
1752
|
+
ae(() => {
|
|
1751
1753
|
let a = L(e), c = L(t);
|
|
1752
1754
|
!a || !c || (r == null || r.disconnect(), a.removeEventListener("scroll", u), a.removeEventListener("wheel", d), u(), r = new IntersectionObserver((e) => {
|
|
1753
1755
|
e.forEach((e) => {
|
|
@@ -1767,63 +1769,63 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1767
1769
|
toScrollTop: l,
|
|
1768
1770
|
debouncedShowScrollBottomBtn: s
|
|
1769
1771
|
};
|
|
1770
|
-
},
|
|
1772
|
+
}, dr = () => _(cr, void 0), fr = {
|
|
1771
1773
|
tool: "工具",
|
|
1772
1774
|
mcp: "MCP",
|
|
1773
1775
|
doc: "知识库",
|
|
1774
1776
|
knowledgebase: "知识库",
|
|
1775
1777
|
shortcut: "快捷指令"
|
|
1776
|
-
},
|
|
1777
|
-
let n =
|
|
1778
|
+
}, pr = () => {}, mr = Symbol("imagePreviewGroup"), hr = ([e], [t]) => e === t ? 0 : e < t ? 1 : -1, gr = (e, t) => {
|
|
1779
|
+
let n = hr(e, t);
|
|
1778
1780
|
return n === 0 ? e[1] === t[1] ? 0 : e[1] < t[1] ? 1 : -1 : n;
|
|
1779
|
-
},
|
|
1781
|
+
}, _r = ([e, t]) => gr(e, t) === -1 ? [t, e] : [e, t], vr = (e, t) => e.reduce((e, n, r) => (r !== 0 && (e += "\n"), e + n.reduce((e, n) => {
|
|
1780
1782
|
var r;
|
|
1781
|
-
return e + (
|
|
1782
|
-
}, "")), ""),
|
|
1783
|
+
return e + (Er(n) ? n.text : t ? t(n) : `@${(r = n.data) == null ? void 0 : r.label}`);
|
|
1784
|
+
}, "")), ""), yr = (e) => e.split("\n").map((e) => e ? [{
|
|
1783
1785
|
text: e,
|
|
1784
1786
|
type: "text"
|
|
1785
|
-
}] : []),
|
|
1787
|
+
}] : []), br = 1, xr = 2, Sr = 3, Cr = (e) => e._type !== Sr, wr = class e extends Array {
|
|
1786
1788
|
static from(t) {
|
|
1787
1789
|
return new e(...t);
|
|
1788
1790
|
}
|
|
1789
1791
|
delete(e, t) {
|
|
1790
1792
|
return this.push({
|
|
1791
|
-
_type:
|
|
1793
|
+
_type: br,
|
|
1792
1794
|
_start: e,
|
|
1793
1795
|
_end: t
|
|
1794
1796
|
}), this;
|
|
1795
1797
|
}
|
|
1796
1798
|
insert(e, t) {
|
|
1797
1799
|
return this.push({
|
|
1798
|
-
_type:
|
|
1800
|
+
_type: xr,
|
|
1799
1801
|
_pos: e,
|
|
1800
1802
|
_fragment: t
|
|
1801
1803
|
}), this;
|
|
1802
1804
|
}
|
|
1803
1805
|
select(e, t) {
|
|
1804
1806
|
return this.push({
|
|
1805
|
-
_type:
|
|
1807
|
+
_type: Sr,
|
|
1806
1808
|
_anchor: e,
|
|
1807
1809
|
_focus: t
|
|
1808
1810
|
}), this;
|
|
1809
1811
|
}
|
|
1810
1812
|
transform(e) {
|
|
1811
|
-
return this.reduce((e, t) =>
|
|
1813
|
+
return this.reduce((e, t) => Cr(t) ? Fr(e, t) : e, e);
|
|
1812
1814
|
}
|
|
1813
|
-
},
|
|
1815
|
+
}, Tr = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), Er = (e) => "text" in e, Dr = (e) => Er(e) ? e.text.length : 1, Or = (e) => e.reduce((e, t) => e + Dr(t), 0), kr = (e, t) => {
|
|
1814
1816
|
let n = [...e];
|
|
1815
1817
|
if (!n.length) n.push(...t);
|
|
1816
1818
|
else for (let e of t) {
|
|
1817
1819
|
let t = n.length - 1, r = n[t];
|
|
1818
|
-
|
|
1820
|
+
Er(e) && Er(r) ? n[t] = { text: r.text + e.text } : n.push(e);
|
|
1819
1821
|
}
|
|
1820
1822
|
return n;
|
|
1821
|
-
},
|
|
1823
|
+
}, Ar = (e, t) => {
|
|
1822
1824
|
for (let n = 0; n < e.length; n++) {
|
|
1823
|
-
let r = e[n], i =
|
|
1825
|
+
let r = e[n], i = Dr(r);
|
|
1824
1826
|
if (i > t) {
|
|
1825
1827
|
let i = e.slice(0, n), a = e.slice(n + 1);
|
|
1826
|
-
if (
|
|
1828
|
+
if (Er(r)) {
|
|
1827
1829
|
let e = r.text.slice(0, t), n = r.text.slice(t);
|
|
1828
1830
|
e && i.push({ text: e }), n && a.unshift({ text: n });
|
|
1829
1831
|
} else a.unshift(r);
|
|
@@ -1832,57 +1834,57 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1832
1834
|
t -= i;
|
|
1833
1835
|
}
|
|
1834
1836
|
return [e, []];
|
|
1835
|
-
},
|
|
1836
|
-
let [i] = n, [a] = r || n, o =
|
|
1837
|
-
l.length ? (l[0] =
|
|
1838
|
-
},
|
|
1839
|
-
|
|
1837
|
+
}, jr = (e, t, n, r) => {
|
|
1838
|
+
let [i] = n, [a] = r || n, o = Ar(e[n[0]], n[1]), s = o[0], c = r ? Ar(e[r[0]], r[1])[1] : o[1], l = [...t];
|
|
1839
|
+
l.length ? (l[0] = kr(s, l[0]), l[l.length - 1] = kr(l[l.length - 1], c)) : l.push(kr(s, c)), e.splice(i, a - i + 1, ...l);
|
|
1840
|
+
}, Mr = (e, t, n) => hr(t, n) === 0 ? [Ar(Ar(e[t[0]], n[1])[0], t[1])[1]] : [
|
|
1841
|
+
Ar(e[t[0]], t[1])[1],
|
|
1840
1842
|
...e.slice(t[0] + 1, n[0]),
|
|
1841
|
-
|
|
1842
|
-
],
|
|
1843
|
+
Ar(e[n[0]], n[1])[0]
|
|
1844
|
+
], Nr = (e) => {
|
|
1843
1845
|
switch (e._type) {
|
|
1844
|
-
case
|
|
1845
|
-
case
|
|
1846
|
+
case br: return gr(e._start, e._end) === 1;
|
|
1847
|
+
case xr: return !!vr(e._fragment);
|
|
1846
1848
|
}
|
|
1847
1849
|
return !0;
|
|
1848
|
-
},
|
|
1850
|
+
}, Pr = (e, t) => {
|
|
1849
1851
|
switch (t._type) {
|
|
1850
|
-
case
|
|
1851
|
-
|
|
1852
|
+
case br:
|
|
1853
|
+
jr(e, [], t._start, t._end);
|
|
1852
1854
|
break;
|
|
1853
|
-
case
|
|
1854
|
-
|
|
1855
|
+
case xr:
|
|
1856
|
+
jr(e, t._fragment, t._pos);
|
|
1855
1857
|
break;
|
|
1856
1858
|
default:
|
|
1857
1859
|
}
|
|
1858
|
-
},
|
|
1860
|
+
}, Fr = (e, t) => {
|
|
1859
1861
|
switch (t._type) {
|
|
1860
|
-
case
|
|
1862
|
+
case br: {
|
|
1861
1863
|
let { _start: n, _end: r } = t;
|
|
1862
|
-
if (
|
|
1864
|
+
if (gr(e, n) !== 1) return gr(r, e) === 1 ? [e[0] + n[0] - r[0], e[1] + (hr(r, e) === 0 ? n[1] - r[1] : 0)] : n;
|
|
1863
1865
|
break;
|
|
1864
1866
|
}
|
|
1865
|
-
case
|
|
1867
|
+
case xr: {
|
|
1866
1868
|
let { _pos: n, _fragment: r } = t, i = r.length, a = i - 1;
|
|
1867
|
-
if (
|
|
1869
|
+
if (gr(e, n) !== 1) return [e[0] + a, e[1] + (hr(e, n) === 0 ? Or(r[i - 1]) - (a === 0 ? 0 : n[1]) : 0)];
|
|
1868
1870
|
break;
|
|
1869
1871
|
}
|
|
1870
1872
|
default:
|
|
1871
1873
|
}
|
|
1872
1874
|
return e;
|
|
1873
|
-
},
|
|
1875
|
+
}, Ir = (e, t, n) => {
|
|
1874
1876
|
let r = [...e], i = [...t];
|
|
1875
1877
|
try {
|
|
1876
|
-
for (let r of n)
|
|
1878
|
+
for (let r of n) Nr(r) && (Cr(r) ? (Pr(e, r), t[0] = Fr(t[0], r), t[1] = Fr(t[1], r)) : (r._anchor && (t[0] = r._anchor), r._focus && (t[1] = r._focus)));
|
|
1877
1879
|
} catch (n) {
|
|
1878
1880
|
console.error("rollback transaction:", n), e.length = 0, e.push(...r), t[0] = i[0], t[1] = i[1];
|
|
1879
1881
|
}
|
|
1880
|
-
},
|
|
1881
|
-
let [r, i] =
|
|
1882
|
-
return new
|
|
1883
|
-
},
|
|
1882
|
+
}, Lr = (e, t) => new wr().delete(..._r(t)), Rr = (e, t, n) => {
|
|
1883
|
+
let [r, i] = _r(t);
|
|
1884
|
+
return new wr().delete(r, i).insert(r, yr(n));
|
|
1885
|
+
}, zr = (e, t, n) => new wr().delete([0, 0], [e.length - 1, Or(e[e.length - 1])]).insert([0, 0], yr(n)), Br = Math.min, Vr = typeof queueMicrotask == "function" ? queueMicrotask : (e) => {
|
|
1884
1886
|
Promise.resolve().then(e);
|
|
1885
|
-
},
|
|
1887
|
+
}, Hr, Ur, Wr, Gr, Kr = !1, qr = !1, Jr, Yr = 1, Xr = 4, Zr = 5, Qr = 6, $r = 1, ei = 3, ti = 8, ni = (e) => e.nodeType === ei, ri = (e) => e.nodeType === $r, ii = (e) => e.nodeType === ti, ai = new Set([
|
|
1886
1888
|
"EMBED",
|
|
1887
1889
|
"IMG",
|
|
1888
1890
|
"PICTURE",
|
|
@@ -1893,37 +1895,37 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1893
1895
|
"MATH",
|
|
1894
1896
|
"IFRAME",
|
|
1895
1897
|
"OBJECT"
|
|
1896
|
-
]), oi = (e) => e.contentEditable === "false" || ai.has(e.tagName), si = () =>
|
|
1897
|
-
|
|
1898
|
+
]), oi = (e) => e.contentEditable === "false" || ai.has(e.tagName), si = () => Ur, ci = () => Wr === 1 ? Ur.data.length : +(Wr === 2), li = (e) => {
|
|
1899
|
+
Hr.currentNode = Hr.currentNode.parentNode.children[e];
|
|
1898
1900
|
}, ui = (e) => {
|
|
1899
1901
|
let t = e.nextSibling;
|
|
1900
1902
|
return !!t && !ii(t);
|
|
1901
1903
|
}, di = () => {
|
|
1902
1904
|
for (;;) {
|
|
1903
1905
|
if (Wr === 2) {
|
|
1904
|
-
let e =
|
|
1905
|
-
for (; (
|
|
1906
|
-
} else
|
|
1907
|
-
if (Wr = null, !
|
|
1906
|
+
let e = Ur;
|
|
1907
|
+
for (; (Ur = Hr.nextNode()) && e.contains(Ur););
|
|
1908
|
+
} else Ur = Hr.nextNode();
|
|
1909
|
+
if (Wr = null, !Ur) break;
|
|
1908
1910
|
if (Gr) {
|
|
1909
|
-
if (Gr.contains(
|
|
1911
|
+
if (Gr.contains(Ur)) {
|
|
1910
1912
|
if (Kr = !0, qr) break;
|
|
1911
1913
|
} else if (Kr) break;
|
|
1912
1914
|
}
|
|
1913
|
-
if (ni(
|
|
1914
|
-
let e =
|
|
1915
|
-
if (e) return Wr = e === "\n" ? ui(
|
|
1916
|
-
} else if (ri(
|
|
1917
|
-
if (
|
|
1918
|
-
if (oi(
|
|
1919
|
-
if (Jr(
|
|
1915
|
+
if (ni(Ur)) {
|
|
1916
|
+
let e = Ur.data;
|
|
1917
|
+
if (e) return Wr = e === "\n" ? ui(Ur) ? 3 : Qr : 1;
|
|
1918
|
+
} else if (ri(Ur)) {
|
|
1919
|
+
if (Ur.tagName === "BR") return Wr = ui(Ur) ? 3 : Zr;
|
|
1920
|
+
if (oi(Ur)) return Wr = 2;
|
|
1921
|
+
if (Jr(Ur)) return Wr = 4;
|
|
1920
1922
|
}
|
|
1921
1923
|
}
|
|
1922
1924
|
}, fi = (e, t, { _document: n, _isBlock: r }, i) => {
|
|
1923
1925
|
try {
|
|
1924
|
-
return Jr = r,
|
|
1926
|
+
return Jr = r, Hr = n.createTreeWalker(t, Xr | Yr), i && (i._startNode && (Hr.currentNode = i._startNode, Hr.previousNode()), i._endNode && (Gr = i._endNode), qr = i._excludeEnd || !1), e(di);
|
|
1925
1927
|
} finally {
|
|
1926
|
-
|
|
1928
|
+
Hr = Ur = Wr = Gr = null, Kr = qr = !1;
|
|
1927
1929
|
}
|
|
1928
1930
|
}, pi = new Set([
|
|
1929
1931
|
"DIV",
|
|
@@ -1948,7 +1950,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1948
1950
|
let r = _i(e);
|
|
1949
1951
|
r.removeAllRanges(), r.addRange(t), n && (r.collapseToEnd(), r.extend(t.startContainer, t.startOffset));
|
|
1950
1952
|
}, bi = (e, t, [n, r], i) => {
|
|
1951
|
-
let a =
|
|
1953
|
+
let a = gr(n, r), o = a === 0, s = a === -1, c = s ? r : n, l = s ? n : r;
|
|
1952
1954
|
if (c[0] === 0 && c[1] === 0 && o && !t.hasChildNodes()) {
|
|
1953
1955
|
let n = e.createRange();
|
|
1954
1956
|
return n.setStart(t, 0), n.setEnd(t, 0), yi(t, n), !0;
|
|
@@ -1983,7 +1985,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
1983
1985
|
let i, a, o = !0;
|
|
1984
1986
|
if (e === t && !t.hasChildNodes()) return [0, 0];
|
|
1985
1987
|
if (ri(t) && !oi(t) && t.hasChildNodes()) {
|
|
1986
|
-
let e =
|
|
1988
|
+
let e = Br(n, t.childNodes.length - 1);
|
|
1987
1989
|
t = t.childNodes[e], o = e === n, n = 0;
|
|
1988
1990
|
}
|
|
1989
1991
|
let s = Si(e, t);
|
|
@@ -2082,19 +2084,19 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2082
2084
|
r.splice(0), a.disconnect();
|
|
2083
2085
|
}
|
|
2084
2086
|
};
|
|
2085
|
-
}, Fi = (e) =>
|
|
2087
|
+
}, Fi = (e) => wr.from(e.map((e) => e._type === 2 ? Y(Y({}, e), {}, { _fragment: [e._fragment.reduce((e, t) => kr(e, t), [])] }) : e)), Ii = () => {}, Li = ({ schema: { single: e, js: t, doc: n, copy: r, paste: i }, doc: a, isBlock: o = mi, onChange: s, onKeyDown: c }) => {
|
|
2086
2088
|
let l = Ei(), u = !1, d = Ii, f = () => p.get()[0], p = Ni([n(a), l]), m = [], h = (e) => {
|
|
2087
2089
|
u || (m.unshift(e), _(v));
|
|
2088
2090
|
}, g = /* @__PURE__ */ new Set(), _ = (e) => {
|
|
2089
|
-
g.has(e) || (g.add(e),
|
|
2091
|
+
g.has(e) || (g.add(e), Vr(() => {
|
|
2090
2092
|
g.delete(e), e();
|
|
2091
2093
|
}));
|
|
2092
2094
|
}, v = () => {
|
|
2093
2095
|
if (m.length) {
|
|
2094
2096
|
let n = [...f()], r = [...l], i;
|
|
2095
|
-
for (; i = m.pop();) e && (i = Fi(i)),
|
|
2097
|
+
for (; i = m.pop();) e && (i = Fi(i)), Ir(n, r, i);
|
|
2096
2098
|
let a = f();
|
|
2097
|
-
|
|
2099
|
+
Tr(n, a) || (p.set([a, l]), p.push([n, r]), s(t(n))), l = r;
|
|
2098
2100
|
}
|
|
2099
2101
|
};
|
|
2100
2102
|
return {
|
|
@@ -2136,9 +2138,9 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2136
2138
|
n && (s(t(n[0])), l = n[1]);
|
|
2137
2139
|
}
|
|
2138
2140
|
}
|
|
2139
|
-
},
|
|
2141
|
+
}, j = () => {
|
|
2140
2142
|
S || k();
|
|
2141
|
-
},
|
|
2143
|
+
}, ee = (e) => {
|
|
2142
2144
|
e.preventDefault();
|
|
2143
2145
|
let t = e.inputType;
|
|
2144
2146
|
if (t.startsWith("format") || t === "historyUndo" || t === "historyRedo") return;
|
|
@@ -2150,7 +2152,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2150
2152
|
let t = e.dataTransfer;
|
|
2151
2153
|
t && (a = t.getData("text/plain"));
|
|
2152
2154
|
}
|
|
2153
|
-
x || (x = new
|
|
2155
|
+
x || (x = new wr().select(...l)), gr(...i) !== 0 && x.delete(...i), a && x.insert(i[0], yr(a));
|
|
2154
2156
|
}
|
|
2155
2157
|
S || k();
|
|
2156
2158
|
}, M = () => {
|
|
@@ -2168,21 +2170,21 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2168
2170
|
}
|
|
2169
2171
|
C && !S && !w && O();
|
|
2170
2172
|
}, L = (e) => {
|
|
2171
|
-
O(),
|
|
2173
|
+
O(), gr(...l) !== 0 && r(e, Mr(f(), ..._r(l)), n);
|
|
2172
2174
|
}, R = (e) => {
|
|
2173
2175
|
e.preventDefault(), L(e.clipboardData);
|
|
2174
2176
|
}, te = (e) => {
|
|
2175
|
-
e.preventDefault(), u || (L(e.clipboardData), h(new
|
|
2177
|
+
e.preventDefault(), u || (L(e.clipboardData), h(new wr().delete(..._r(l))));
|
|
2176
2178
|
}, ne = (e) => {
|
|
2177
2179
|
e.preventDefault();
|
|
2178
|
-
let [t, n] =
|
|
2179
|
-
h(new
|
|
2180
|
+
let [t, n] = _r(l);
|
|
2181
|
+
h(new wr().delete(t, n).insert(t, i(e.clipboardData, E)));
|
|
2180
2182
|
}, z = (e) => {
|
|
2181
2183
|
e.preventDefault();
|
|
2182
2184
|
let t = e.dataTransfer, r = Ai(T, n, e, E);
|
|
2183
2185
|
if (t && r) {
|
|
2184
|
-
let e = new
|
|
2185
|
-
w && e.delete(...
|
|
2186
|
+
let e = new wr();
|
|
2187
|
+
w && e.delete(..._r(l));
|
|
2186
2188
|
let a = e.transform(r);
|
|
2187
2189
|
e.select(a, a).insert(a, i(t, E)).select(a), h(e), n.focus({ preventScroll: !0 });
|
|
2188
2190
|
}
|
|
@@ -2191,8 +2193,8 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2191
2193
|
}, B = () => {
|
|
2192
2194
|
w = !1;
|
|
2193
2195
|
};
|
|
2194
|
-
return T.addEventListener("selectionchange", I), n.addEventListener("keydown", A), n.addEventListener("input",
|
|
2195
|
-
y || (y = !0, d = Ii, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", I), n.removeEventListener("keydown", A), n.removeEventListener("input",
|
|
2196
|
+
return T.addEventListener("selectionchange", I), n.addEventListener("keydown", A), n.addEventListener("input", j), n.addEventListener("beforeinput", ee), n.addEventListener("compositionstart", M), n.addEventListener("compositionend", N), n.addEventListener("focus", P), n.addEventListener("blur", F), n.addEventListener("copy", R), n.addEventListener("cut", te), n.addEventListener("paste", ne), n.addEventListener("drop", z), n.addEventListener("dragstart", re), n.addEventListener("dragend", B), () => {
|
|
2197
|
+
y || (y = !0, d = Ii, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", I), n.removeEventListener("keydown", A), n.removeEventListener("input", j), n.removeEventListener("beforeinput", ee), n.removeEventListener("compositionstart", M), n.removeEventListener("compositionend", N), n.removeEventListener("focus", P), n.removeEventListener("blur", F), n.removeEventListener("copy", R), n.removeEventListener("cut", te), n.removeEventListener("paste", ne), n.removeEventListener("drop", z), n.removeEventListener("dragstart", re), n.removeEventListener("dragend", B));
|
|
2196
2198
|
};
|
|
2197
2199
|
},
|
|
2198
2200
|
command: (e, ...t) => {
|
|
@@ -2205,19 +2207,19 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2205
2207
|
};
|
|
2206
2208
|
}, Ri = ({ multiline: e } = {}) => ({
|
|
2207
2209
|
single: !e,
|
|
2208
|
-
js:
|
|
2209
|
-
doc:
|
|
2210
|
+
js: vr,
|
|
2211
|
+
doc: yr,
|
|
2210
2212
|
copy: (e, t) => {
|
|
2211
|
-
e.setData("text/plain",
|
|
2213
|
+
e.setData("text/plain", vr(t));
|
|
2212
2214
|
},
|
|
2213
|
-
paste: (e) =>
|
|
2215
|
+
paste: (e) => yr(e.getData("text/plain"))
|
|
2214
2216
|
}), zi = () => "", Bi = ({ is: e, data: t, plain: n = zi }) => ({
|
|
2215
2217
|
is: e,
|
|
2216
2218
|
data: t,
|
|
2217
2219
|
plain: n
|
|
2218
2220
|
}), Vi = ({ multiline: e, void: t = {} }) => {
|
|
2219
2221
|
let n = Object.entries(t), r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), a = (e) => e.reduce((e, t) => {
|
|
2220
|
-
if (
|
|
2222
|
+
if (Er(t)) {
|
|
2221
2223
|
let n = r.get(t);
|
|
2222
2224
|
n || r.set(t, n = {
|
|
2223
2225
|
type: "text",
|
|
@@ -2236,7 +2238,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2236
2238
|
let n = r.data(e);
|
|
2237
2239
|
return i.set(n, {
|
|
2238
2240
|
type: t,
|
|
2239
|
-
data:
|
|
2241
|
+
data: Y({}, n)
|
|
2240
2242
|
}), n;
|
|
2241
2243
|
}
|
|
2242
2244
|
}, s = (e) => {
|
|
@@ -2252,7 +2254,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2252
2254
|
js: e ? (e) => e.map(a) : (e) => a(e[0]),
|
|
2253
2255
|
doc: (t) => e ? t.map((e) => e.map(s)) : [t.map(s)],
|
|
2254
2256
|
copy: (e, n, r) => {
|
|
2255
|
-
e.setData("text/plain",
|
|
2257
|
+
e.setData("text/plain", vr(n, (e) => t[i.get(e.data).type].plain(e.data)));
|
|
2256
2258
|
let a = document.createElement("div"), o = vi(_i(r), r);
|
|
2257
2259
|
o && a.appendChild(o.cloneContents()), e.setData("text/html", a.innerHTML);
|
|
2258
2260
|
},
|
|
@@ -2263,7 +2265,7 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2263
2265
|
for (let t of [...e.childNodes]) ii(t) ? t.data === "StartFragment" ? (r = !0, e = new DocumentFragment()) : t.data === "EndFragment" && (r = !1) : r && e.appendChild(t);
|
|
2264
2266
|
return ki(e, t, o);
|
|
2265
2267
|
}
|
|
2266
|
-
return
|
|
2268
|
+
return yr(e.getData("text/plain"));
|
|
2267
2269
|
}
|
|
2268
2270
|
};
|
|
2269
2271
|
}, Hi = Vi({
|
|
@@ -2288,9 +2290,9 @@ var Xn = ["options"], Zn = ["options"], Qn = { class: "shortcut-render" }, $n =
|
|
|
2288
2290
|
}({}), Ki = Symbol("CUSTOM_TAB_TOKEN"), qi = "execution";
|
|
2289
2291
|
function Ji(e) {
|
|
2290
2292
|
let t = {
|
|
2291
|
-
label:
|
|
2293
|
+
label: q("执行情况"),
|
|
2292
2294
|
name: qi
|
|
2293
|
-
}, n = F([t]), r =
|
|
2295
|
+
}, n = F([t]), r = ee(t), i = F(!0), a = (e) => {
|
|
2294
2296
|
n.value.find((t) => t.name === e.name) || (n.value = [...n.value, e]), i.value = !1, x(() => {
|
|
2295
2297
|
s(e);
|
|
2296
2298
|
});
|
|
@@ -2364,38 +2366,38 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2364
2366
|
e.id
|
|
2365
2367
|
].filter(Boolean)) : [];
|
|
2366
2368
|
},
|
|
2367
|
-
[
|
|
2369
|
+
[W.FlowAgent](e) {
|
|
2368
2370
|
var t;
|
|
2369
2371
|
let n = e.content;
|
|
2370
2372
|
return n ? [n.task_name, ...Object.values((t = n.nodes) == null ? {} : t).map((e) => e.name)].filter(Boolean) : [];
|
|
2371
2373
|
}
|
|
2372
2374
|
}, ta = (e) => {
|
|
2373
2375
|
var t;
|
|
2374
|
-
if (e.role ===
|
|
2375
|
-
if (e.role ===
|
|
2376
|
+
if (e.role === G.Assistant && (t = e.toolCalls) != null && t.length) return "toolCall";
|
|
2377
|
+
if (e.role === G.Activity) return e.activityType;
|
|
2376
2378
|
}, na = (e) => {
|
|
2377
2379
|
var t;
|
|
2378
|
-
return e.role ===
|
|
2380
|
+
return e.role === G.Assistant && !!((t = e.toolCalls) != null && t.length) || e.role === G.Activity && e.activityType === W.FlowAgent;
|
|
2379
2381
|
}, ra = (e, t) => {
|
|
2380
2382
|
let n = ta(e);
|
|
2381
2383
|
if (!n) return !0;
|
|
2382
2384
|
let r = ea[n];
|
|
2383
2385
|
return r ? r(e).some((e) => e.toLowerCase().includes(t)) : !0;
|
|
2384
2386
|
}, ia = (e) => {
|
|
2385
|
-
let t =
|
|
2386
|
-
|
|
2387
|
+
let t = ee([]), n = F(!1);
|
|
2388
|
+
ae(() => {
|
|
2387
2389
|
var n;
|
|
2388
2390
|
let r = [], i = [];
|
|
2389
2391
|
for (let t of e.messages.value) {
|
|
2390
|
-
if (t.role ===
|
|
2392
|
+
if (t.role === G.User) {
|
|
2391
2393
|
if (r.length > 0) {
|
|
2392
2394
|
var a;
|
|
2393
2395
|
i.push({
|
|
2394
2396
|
messages: r,
|
|
2395
|
-
type:
|
|
2397
|
+
type: G.Assistant,
|
|
2396
2398
|
isHover: !1,
|
|
2397
2399
|
checked: !1,
|
|
2398
|
-
uuid:
|
|
2400
|
+
uuid: mt(),
|
|
2399
2401
|
pause: (a = r == null ? void 0 : r.some((e) => {
|
|
2400
2402
|
var t;
|
|
2401
2403
|
return (t = e.property) == null || (t = t.extra) == null ? void 0 : t.pause;
|
|
@@ -2404,21 +2406,21 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2404
2406
|
}
|
|
2405
2407
|
i.push({
|
|
2406
2408
|
messages: [t],
|
|
2407
|
-
type:
|
|
2409
|
+
type: G.User,
|
|
2408
2410
|
isHover: !1,
|
|
2409
2411
|
checked: !1,
|
|
2410
|
-
uuid:
|
|
2412
|
+
uuid: mt()
|
|
2411
2413
|
});
|
|
2412
2414
|
continue;
|
|
2413
2415
|
}
|
|
2414
|
-
if (t.role ===
|
|
2416
|
+
if (t.role === G.Tool) {
|
|
2415
2417
|
let n = e.messages.value.find((e) => {
|
|
2416
2418
|
var n;
|
|
2417
|
-
return e.role ===
|
|
2419
|
+
return e.role === G.Assistant && ((n = e.toolCalls) == null ? void 0 : n.some((e) => e.id === t.toolCallId));
|
|
2418
2420
|
});
|
|
2419
2421
|
if (n) {
|
|
2420
2422
|
let e = n.toolCalls.find((e) => e.id === t.toolCallId);
|
|
2421
|
-
e.toolMessage = t, n.status = t.error ?
|
|
2423
|
+
e.toolMessage = t, n.status = t.error ? K.Error : n.status || K.Complete;
|
|
2422
2424
|
continue;
|
|
2423
2425
|
}
|
|
2424
2426
|
}
|
|
@@ -2428,28 +2430,28 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2428
2430
|
var o;
|
|
2429
2431
|
i.push({
|
|
2430
2432
|
messages: r,
|
|
2431
|
-
type:
|
|
2433
|
+
type: G.Assistant,
|
|
2432
2434
|
isHover: !1,
|
|
2433
2435
|
checked: !1,
|
|
2434
|
-
uuid:
|
|
2436
|
+
uuid: mt(),
|
|
2435
2437
|
pause: (o = r == null ? void 0 : r.some((e) => {
|
|
2436
2438
|
var t;
|
|
2437
2439
|
return (t = e.property) == null || (t = t.extra) == null ? void 0 : t.pause;
|
|
2438
2440
|
})) == null ? !1 : o
|
|
2439
2441
|
});
|
|
2440
2442
|
}
|
|
2441
|
-
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) ===
|
|
2443
|
+
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) === G.User && i.push({
|
|
2442
2444
|
messages: [{
|
|
2443
|
-
role:
|
|
2445
|
+
role: G.Loading,
|
|
2444
2446
|
content: "",
|
|
2445
|
-
status:
|
|
2447
|
+
status: K.Pending,
|
|
2446
2448
|
messageId: "",
|
|
2447
2449
|
id: "loading"
|
|
2448
2450
|
}],
|
|
2449
|
-
type:
|
|
2451
|
+
type: G.Loading,
|
|
2450
2452
|
isHover: !1,
|
|
2451
2453
|
checked: !1,
|
|
2452
|
-
uuid:
|
|
2454
|
+
uuid: mt()
|
|
2453
2455
|
}), t.value = i;
|
|
2454
2456
|
});
|
|
2455
2457
|
let r = a(() => {
|
|
@@ -2459,15 +2461,15 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2459
2461
|
if (e.messages.some(i)) {
|
|
2460
2462
|
let i = t.value.at(n - 1);
|
|
2461
2463
|
if (i) {
|
|
2462
|
-
let t = i.messages.filter((e) => e.role ===
|
|
2464
|
+
let t = i.messages.filter((e) => e.role === G.User);
|
|
2463
2465
|
if (t != null && t.length) for (let n of t) {
|
|
2464
2466
|
let t = n.content;
|
|
2465
2467
|
if (typeof t == "string") {
|
|
2466
2468
|
e.userMessageTitle = t;
|
|
2467
2469
|
break;
|
|
2468
|
-
} else if (Array.isArray(t) && t.some((e) => e.type ===
|
|
2470
|
+
} else if (Array.isArray(t) && t.some((e) => e.type === W.Text)) {
|
|
2469
2471
|
var r;
|
|
2470
|
-
e.userMessageTitle = (r = t.filter((e) => e.type ===
|
|
2472
|
+
e.userMessageTitle = (r = t.filter((e) => e.type === W.Text)) == null ? void 0 : r.join("\n");
|
|
2471
2473
|
break;
|
|
2472
2474
|
}
|
|
2473
2475
|
}
|
|
@@ -2475,20 +2477,20 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2475
2477
|
return e.userMessageTitle || (e.userMessageTitle = Date.now()), !0;
|
|
2476
2478
|
}
|
|
2477
2479
|
return !1;
|
|
2478
|
-
}).map((e) =>
|
|
2480
|
+
}).map((e) => Y(Y({}, e), {}, {
|
|
2479
2481
|
isHover: !1,
|
|
2480
2482
|
messages: e.messages.filter(i)
|
|
2481
2483
|
}));
|
|
2482
2484
|
}), i = a(() => {
|
|
2483
2485
|
var e;
|
|
2484
|
-
return (e = t.value) == null ? void 0 : e.filter((e) => e.type ===
|
|
2486
|
+
return (e = t.value) == null ? void 0 : e.filter((e) => e.type === G.User).every((e) => e.checked);
|
|
2485
2487
|
});
|
|
2486
|
-
return
|
|
2488
|
+
return V(e.selectedUserMessages, (e) => {
|
|
2487
2489
|
if (t.value.length) for (let [r, i] of t.value.entries()) {
|
|
2488
2490
|
var n;
|
|
2489
|
-
if (i.type ===
|
|
2491
|
+
if (i.type === G.Assistant) continue;
|
|
2490
2492
|
let a = (n = e == null ? void 0 : e.some((e) => i.messages.some((t) => e.id === t.id))) == null ? !1 : n;
|
|
2491
|
-
if (i.checked = a, i.type ===
|
|
2493
|
+
if (i.checked = a, i.type === G.User) {
|
|
2492
2494
|
let e = t.value.at(r + 1);
|
|
2493
2495
|
e && (e.checked = a);
|
|
2494
2496
|
}
|
|
@@ -2503,14 +2505,14 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2503
2505
|
isAllSelected: i,
|
|
2504
2506
|
onToggleShareAll: (n) => {
|
|
2505
2507
|
var r;
|
|
2506
|
-
e.selectedUserMessages.value = n ? (r = t.value) == null ? void 0 : r.filter((e) => e.type ===
|
|
2508
|
+
e.selectedUserMessages.value = n ? (r = t.value) == null ? void 0 : r.filter((e) => e.type === G.User).map((e) => e.messages).flat() : [];
|
|
2507
2509
|
},
|
|
2508
2510
|
onCancelShare: () => {
|
|
2509
2511
|
e.selectedUserMessages.value = [], n.value = !1;
|
|
2510
2512
|
},
|
|
2511
2513
|
onConfirmShare: () => {
|
|
2512
2514
|
var e, n;
|
|
2513
|
-
return (e = (n = t.value) == null ? void 0 : n.filter((e) => e.checked && e.type ===
|
|
2515
|
+
return (e = (n = t.value) == null ? void 0 : n.filter((e) => e.checked && e.type === G.User).map((e) => e.messages).flat()) == null ? [] : e;
|
|
2514
2516
|
}
|
|
2515
2517
|
};
|
|
2516
2518
|
}, aa = (e) => {
|
|
@@ -2564,7 +2566,7 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2564
2566
|
var o;
|
|
2565
2567
|
if (a == null || a.stopPropagation(), !((o = t.value) != null && o.disabled) && i(e) && (r = !0, !n)) {
|
|
2566
2568
|
var s, c, l, u;
|
|
2567
|
-
n =
|
|
2569
|
+
n = Se(e, Object.assign({}, {
|
|
2568
2570
|
trigger: "mouseenter",
|
|
2569
2571
|
delay: [ma, 0],
|
|
2570
2572
|
content: ((s = t.value) == null ? void 0 : s.text) || ((c = t.value) == null ? void 0 : c.content) || e.innerText,
|
|
@@ -2576,7 +2578,7 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2576
2578
|
onHidden: () => {
|
|
2577
2579
|
n == null || n.hide(), n == null || n.destroy(), n = void 0;
|
|
2578
2580
|
}
|
|
2579
|
-
},
|
|
2581
|
+
}, Y({}, t.value))), setTimeout(() => {
|
|
2580
2582
|
n && r && i(e) && !n.state.isShown && (n.clearDelayTimeouts(), n.show());
|
|
2581
2583
|
}, ma + 16);
|
|
2582
2584
|
}
|
|
@@ -2599,7 +2601,7 @@ var Yi = () => _(Ki), Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e),
|
|
|
2599
2601
|
var t;
|
|
2600
2602
|
e.removeEventListener("mouseenter", e.mouseEnterFunc), e.removeEventListener("mouseleave", e.mouseLeaveFunc), (t = e.unObserverFunc) == null || t.call(e), e.mouseEnterFunc = void 0, e.mouseLeaveFunc = void 0, e.unObserverFunc = void 0;
|
|
2601
2603
|
}
|
|
2602
|
-
}, ga = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _a = /[\0-\x1F\x7F-\x9F]/, va = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ya = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, ba = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, xa = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Sa = /* @__PURE__ */
|
|
2604
|
+
}, ga = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _a = /[\0-\x1F\x7F-\x9F]/, va = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ya = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, ba = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, xa = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Sa = /* @__PURE__ */ Fe({
|
|
2603
2605
|
Any: () => ga,
|
|
2604
2606
|
Cc: () => _a,
|
|
2605
2607
|
Cf: () => va,
|
|
@@ -2975,7 +2977,7 @@ Xa.prototype.parse = function(e, t) {
|
|
|
2975
2977
|
};
|
|
2976
2978
|
//#endregion
|
|
2977
2979
|
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs
|
|
2978
|
-
var co = /* @__PURE__ */
|
|
2980
|
+
var co = /* @__PURE__ */ Fe({
|
|
2979
2981
|
decode: () => Ga,
|
|
2980
2982
|
encode: () => Ja,
|
|
2981
2983
|
format: () => Ya,
|
|
@@ -3158,7 +3160,7 @@ var qo;
|
|
|
3158
3160
|
})(qo || (qo = {}));
|
|
3159
3161
|
var Jo = class {
|
|
3160
3162
|
constructor(e, t, n) {
|
|
3161
|
-
|
|
3163
|
+
Mt(this, "decodeTree", void 0), Mt(this, "emitCodePoint", void 0), Mt(this, "errors", void 0), Mt(this, "state", Q.EntityStart), Mt(this, "consumed", 1), Mt(this, "result", 0), Mt(this, "treeIndex", 0), Mt(this, "excess", 1), Mt(this, "decodeMode", qo.Strict), Mt(this, "runConsumed", 0), this.decodeTree = e, this.emitCodePoint = t, this.errors = n;
|
|
3162
3164
|
}
|
|
3163
3165
|
startEntity(e) {
|
|
3164
3166
|
this.decodeMode = e, this.state = Q.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1, this.runConsumed = 0;
|
|
@@ -3292,7 +3294,7 @@ function Qo(e, t = qo.Legacy) {
|
|
|
3292
3294
|
}
|
|
3293
3295
|
//#endregion
|
|
3294
3296
|
//#region src/markdown-it/common/utils.mjs
|
|
3295
|
-
var $o = /* @__PURE__ */
|
|
3297
|
+
var $o = /* @__PURE__ */ Fe({
|
|
3296
3298
|
arrayReplaceAt: () => rs,
|
|
3297
3299
|
assign: () => is,
|
|
3298
3300
|
escapeHtml: () => _s,
|
|
@@ -3527,7 +3529,7 @@ function Os(e, t, n, r) {
|
|
|
3527
3529
|
}
|
|
3528
3530
|
//#endregion
|
|
3529
3531
|
//#region src/markdown-it/helpers/index.mjs
|
|
3530
|
-
var ks = /* @__PURE__ */
|
|
3532
|
+
var ks = /* @__PURE__ */ Fe({
|
|
3531
3533
|
parseLinkDestination: () => Es,
|
|
3532
3534
|
parseLinkLabel: () => Ds,
|
|
3533
3535
|
parseLinkTitle: () => Os
|
|
@@ -5820,7 +5822,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5820
5822
|
},
|
|
5821
5823
|
emits: ["click"],
|
|
5822
5824
|
setup(e, { emit: t }) {
|
|
5823
|
-
let n = e, r = t, i = a(() =>
|
|
5825
|
+
let n = e, r = t, i = a(() => Y(Y({
|
|
5824
5826
|
content: n.description,
|
|
5825
5827
|
theme: "ai-chat-box"
|
|
5826
5828
|
}, n.tippyOptions || {}), {}, { onShow: () => {
|
|
@@ -5828,21 +5830,21 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5828
5830
|
} })), s = (e) => {
|
|
5829
5831
|
n.disabled || r("click", n, e);
|
|
5830
5832
|
};
|
|
5831
|
-
return (t, n) =>
|
|
5833
|
+
return (t, n) => U((k(), c("div", {
|
|
5832
5834
|
class: S(["ai-tool-btn", {
|
|
5833
5835
|
"is-active": e.active,
|
|
5834
5836
|
"is-disabled": e.disabled
|
|
5835
5837
|
}]),
|
|
5836
5838
|
style: w({ "--ai-tool-btn-active-color": e.id === "like" || e.id === "activeLike" ? "#3a84ff" : "#E71818" }),
|
|
5837
5839
|
onClick: s
|
|
5838
|
-
}, [e.id in R(
|
|
5840
|
+
}, [e.id in R(Fn) ? (k(), o(P(R(Fn)[e.id]), { key: 0 })) : (k(), c("div", Ql, I(e.name), 1))], 6)), [[R(le), i.value]]);
|
|
5839
5841
|
}
|
|
5840
5842
|
}), eu = { class: "code-content-wrapper" }, tu = { class: "code-content-header" }, nu = { class: "code-header-language" }, ru = { class: "hljs-pre" }, iu = ["innerHTML"], au = ["innerHTML"], ou = 500, su = /* @__PURE__ */ m({
|
|
5841
5843
|
__name: "code-content",
|
|
5842
5844
|
props: { token: {} },
|
|
5843
5845
|
emits: ["mounted"],
|
|
5844
5846
|
setup(t, { emit: n }) {
|
|
5845
|
-
let r = t, i = n, o = B("codeRef"), u = F(""), { copy: p } =
|
|
5847
|
+
let r = t, i = n, o = B("codeRef"), u = F(""), { copy: p } = or(), m = F([]), g = F(""), _ = F(""), v = /* @__PURE__ */ new Map(), y = (e) => {
|
|
5846
5848
|
for (let n of e) if (n.type === "fence" || n.type === "code_block") {
|
|
5847
5849
|
var t;
|
|
5848
5850
|
return {
|
|
@@ -5856,12 +5858,12 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5856
5858
|
};
|
|
5857
5859
|
}, b = (e) => {
|
|
5858
5860
|
var t;
|
|
5859
|
-
let n =
|
|
5860
|
-
if (
|
|
5861
|
+
let n = Ot[e] || e;
|
|
5862
|
+
if (je.getLanguage(n)) return n;
|
|
5861
5863
|
let r = (t = e.match(/\.\w+$/)) == null ? void 0 : t[0];
|
|
5862
5864
|
if (r) {
|
|
5863
5865
|
let e = r.slice(1);
|
|
5864
|
-
if (
|
|
5866
|
+
if (je.getLanguage(e)) return e;
|
|
5865
5867
|
}
|
|
5866
5868
|
return null;
|
|
5867
5869
|
}, w = (e, t) => {
|
|
@@ -5870,7 +5872,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5870
5872
|
if (r !== void 0) return r;
|
|
5871
5873
|
let i;
|
|
5872
5874
|
if (t) try {
|
|
5873
|
-
i =
|
|
5875
|
+
i = je.highlight(e, {
|
|
5874
5876
|
language: t,
|
|
5875
5877
|
ignoreIllegals: !0
|
|
5876
5878
|
}).value;
|
|
@@ -5903,7 +5905,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5903
5905
|
let { language: e } = y(r.token), t = ["hljs"];
|
|
5904
5906
|
return e && t.push(`language-${e}`), t.join(" ");
|
|
5905
5907
|
});
|
|
5906
|
-
|
|
5908
|
+
V(() => r.token, (e) => {
|
|
5907
5909
|
let { content: t, language: n } = y(e);
|
|
5908
5910
|
u.value = n, E(t, n), x(() => {
|
|
5909
5911
|
i("mounted", { get el() {
|
|
@@ -5957,7 +5959,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5957
5959
|
src: {}
|
|
5958
5960
|
},
|
|
5959
5961
|
setup(e) {
|
|
5960
|
-
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i = F(!r.value), o = F(!1), s = F(r.value), u = r.value ? n.src : "", d = a(() => r.value ? !1 : !!(!h.value || i.value || !s.value && o.value)), p = a(() => s.value && o.value && !i.value), m =
|
|
5962
|
+
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i = F(!r.value), o = F(!1), s = F(r.value), u = r.value ? n.src : "", d = a(() => r.value ? !1 : !!(!h.value || i.value || !s.value && o.value)), p = a(() => s.value && o.value && !i.value), m = Me(() => {
|
|
5961
5963
|
s.value = !0;
|
|
5962
5964
|
}, 500), h = a(() => {
|
|
5963
5965
|
var e;
|
|
@@ -5970,7 +5972,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5970
5972
|
if (!e.includes(".") && !e.startsWith("localhost")) return !1;
|
|
5971
5973
|
}
|
|
5972
5974
|
return !0;
|
|
5973
|
-
}), g =
|
|
5975
|
+
}), g = we((e) => {
|
|
5974
5976
|
if (!h.value) {
|
|
5975
5977
|
i.value = !0, o.value = !1;
|
|
5976
5978
|
return;
|
|
@@ -5991,19 +5993,19 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
5991
5993
|
leading: !0,
|
|
5992
5994
|
trailing: !0
|
|
5993
5995
|
});
|
|
5994
|
-
return
|
|
5996
|
+
return V(() => n.src, (e) => {
|
|
5995
5997
|
if (t.has(e)) {
|
|
5996
5998
|
u = e, i.value = !1, o.value = !1, s.value = !0;
|
|
5997
5999
|
return;
|
|
5998
6000
|
}
|
|
5999
6001
|
s.value = !1, m(), h.value ? g(e) : (i.value = !0, o.value = !1);
|
|
6000
|
-
}, { immediate: !0 }),
|
|
6002
|
+
}, { immediate: !0 }), V(h, (e) => {
|
|
6001
6003
|
e && n.src && g(n.src);
|
|
6002
|
-
}), (t, n) => (k(), c("span", cu, [d.value ? (k(), c("span", lu, [f(R(
|
|
6004
|
+
}), (t, n) => (k(), c("span", cu, [d.value ? (k(), c("span", lu, [f(R(he), {
|
|
6003
6005
|
mode: "spin",
|
|
6004
6006
|
size: "mini",
|
|
6005
6007
|
theme: "primary"
|
|
6006
|
-
}), l("span", uu, I(R(
|
|
6008
|
+
}), l("span", uu, I(R(q)("图片加载中...")), 1)])) : p.value ? (k(), c("span", du, [n[0] || (n[0] = l("span", { class: "md-image-error-icon" }, "⚠️", -1)), l("span", fu, I(e.alt || R(q)("图片加载失败")), 1)])) : (k(), c("img", {
|
|
6007
6009
|
key: 2,
|
|
6008
6010
|
alt: e.alt,
|
|
6009
6011
|
class: "md-image",
|
|
@@ -6166,7 +6168,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6166
6168
|
if (n > 5 || !e.trim()) return null;
|
|
6167
6169
|
try {
|
|
6168
6170
|
let n = l(e);
|
|
6169
|
-
return
|
|
6171
|
+
return Ne.renderToString(n, {
|
|
6170
6172
|
output: "html",
|
|
6171
6173
|
throwOnError: !1,
|
|
6172
6174
|
displayMode: t,
|
|
@@ -6221,7 +6223,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6221
6223
|
}
|
|
6222
6224
|
return t;
|
|
6223
6225
|
}, g = a(() => t.token.filter((e) => e.type === "math_block").length === 1 && t.token.length <= 1), _ = a(() => g.value ? "div" : "span"), v = a(() => g.value ? "block-latex-content" : "inline-latex-content");
|
|
6224
|
-
return
|
|
6226
|
+
return V(() => t.token, we(() => {
|
|
6225
6227
|
let e = h(t.token);
|
|
6226
6228
|
e && n.value !== e && (n.value = e);
|
|
6227
6229
|
}, 100, {
|
|
@@ -6241,7 +6243,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6241
6243
|
emits: ["mounted"],
|
|
6242
6244
|
setup(e, { emit: t }) {
|
|
6243
6245
|
let n = F(""), r = B("mermaidContentRef"), i = e, a = t, o = null, s = "", l = function() {
|
|
6244
|
-
var e =
|
|
6246
|
+
var e = X(function* () {
|
|
6245
6247
|
if (o) return o;
|
|
6246
6248
|
if (!o) try {
|
|
6247
6249
|
o = yield import("mermaid"), o.default.initialize({ suppressErrorRendering: !0 });
|
|
@@ -6260,8 +6262,8 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6260
6262
|
}
|
|
6261
6263
|
return "";
|
|
6262
6264
|
};
|
|
6263
|
-
return
|
|
6264
|
-
var e =
|
|
6265
|
+
return V(() => i.token, we(function() {
|
|
6266
|
+
var e = X(function* (e) {
|
|
6265
6267
|
let t = u(e);
|
|
6266
6268
|
if (t === s) return;
|
|
6267
6269
|
s = t;
|
|
@@ -6300,7 +6302,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6300
6302
|
__name: "common-error-content",
|
|
6301
6303
|
props: { content: {} },
|
|
6302
6304
|
setup(e) {
|
|
6303
|
-
return (t, n) => (k(), c("div", yu, [f(R(
|
|
6305
|
+
return (t, n) => (k(), c("div", yu, [f(R(vn)), l("div", bu, I(e.content), 1)]));
|
|
6304
6306
|
}
|
|
6305
6307
|
}), Su = /* @__PURE__ */ new Map(), Cu = () => {
|
|
6306
6308
|
Su = /* @__PURE__ */ new Map();
|
|
@@ -6495,11 +6497,11 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6495
6497
|
"encoding",
|
|
6496
6498
|
"style"
|
|
6497
6499
|
]
|
|
6498
|
-
}, r = t, i =
|
|
6500
|
+
}, r = t, i = dr(), a = F([]), s = new bl().use(Te).use(Ee).use(De).use(Oe).use(ke).use(Ae).use(Al).use(Ol, { katexOptions: { strict: !1 } }).use(Ml, /^hljs-(left|center|right)$/), l = {
|
|
6499
6501
|
html: !0,
|
|
6500
6502
|
mditOptions: s.options,
|
|
6501
6503
|
renderer: s.renderer,
|
|
6502
|
-
sanitize: (e) =>
|
|
6504
|
+
sanitize: (e) => Ce.sanitize(e, n)
|
|
6503
6505
|
}, u = (e) => e.some((e) => e.type === "fence" ? (e.info ? e.info.trim() : "") === "mermaid" : !1), d = (e) => e.some((e) => e.type === "fence" ? (e.info ? e.info.trim() : "") !== "mermaid" : e.type === "code_block"), f = (e) => {
|
|
6504
6506
|
let t = (e) => e.type === "math_inline" || e.type === "math_block" ? !0 : e.children && e.children.length > 0 ? e.children.some(t) : !1;
|
|
6505
6507
|
return e.some(t);
|
|
@@ -6537,7 +6539,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6537
6539
|
}
|
|
6538
6540
|
return t;
|
|
6539
6541
|
};
|
|
6540
|
-
|
|
6542
|
+
V(() => r.content, we((e) => {
|
|
6541
6543
|
if (!e) {
|
|
6542
6544
|
a.value = [];
|
|
6543
6545
|
return;
|
|
@@ -6554,7 +6556,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6554
6556
|
leading: !0,
|
|
6555
6557
|
trailing: !0
|
|
6556
6558
|
}), { immediate: !0 });
|
|
6557
|
-
let m =
|
|
6559
|
+
let m = we(() => {
|
|
6558
6560
|
var e;
|
|
6559
6561
|
if ((i == null || (e = i.value) == null ? void 0 : e.autoScrollEnabled) !== !1) {
|
|
6560
6562
|
var t, n;
|
|
@@ -6564,7 +6566,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6564
6566
|
leading: !0,
|
|
6565
6567
|
trailing: !0
|
|
6566
6568
|
});
|
|
6567
|
-
return (n, r) => (k(), c("div", Ru, [t.status === R(
|
|
6569
|
+
return (n, r) => (k(), c("div", Ru, [t.status === R(K).Error ? (k(), o(xu, {
|
|
6568
6570
|
key: 0,
|
|
6569
6571
|
content: t.content
|
|
6570
6572
|
}, null, 8, ["content"])) : (k(), c("div", zu, [(k(!0), c(e, null, M(a.value, (t, r) => (k(), c(e, { key: r }, [u(t) ? (k(), o(R(vu), {
|
|
@@ -6580,7 +6582,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6580
6582
|
token: t,
|
|
6581
6583
|
onMounted: R(m)
|
|
6582
6584
|
}, {
|
|
6583
|
-
header:
|
|
6585
|
+
header: H(({ language: e, token: t }) => [N(n.$slots, "codeHeader", b({ ref_for: !0 }, {
|
|
6584
6586
|
language: e,
|
|
6585
6587
|
token: t
|
|
6586
6588
|
}))]),
|
|
@@ -6607,23 +6609,23 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6607
6609
|
key: e.title,
|
|
6608
6610
|
class: "ai-reference-item"
|
|
6609
6611
|
}, [
|
|
6610
|
-
f(R(
|
|
6612
|
+
f(R(dn), { color: "#D66F6B" }),
|
|
6611
6613
|
l("span", {
|
|
6612
6614
|
class: "ai-reference-item-title",
|
|
6613
6615
|
onClick: (t) => e.url && r(e.url, t)
|
|
6614
6616
|
}, I(e.title), 9, Vu),
|
|
6615
|
-
e.url && e.originFileUrl ?
|
|
6617
|
+
e.url && e.originFileUrl ? U((k(), o(R(zt), {
|
|
6616
6618
|
key: 0,
|
|
6617
6619
|
onClick: (t) => e.url && r(e.url, t)
|
|
6618
|
-
}, null, 8, ["onClick"])), [[R(
|
|
6619
|
-
content: R(
|
|
6620
|
+
}, null, 8, ["onClick"])), [[R(le), {
|
|
6621
|
+
content: R(q)("预览内容"),
|
|
6620
6622
|
theme: "ai-chat-box"
|
|
6621
6623
|
}]]) : s("", !0),
|
|
6622
|
-
e.url && e.originFileUrl ?
|
|
6624
|
+
e.url && e.originFileUrl ? U((k(), o(R(Bt), {
|
|
6623
6625
|
key: 1,
|
|
6624
6626
|
onClick: (t) => e.originFileUrl && r(e.originFileUrl, t)
|
|
6625
|
-
}, null, 8, ["onClick"])), [[R(
|
|
6626
|
-
content: R(
|
|
6627
|
+
}, null, 8, ["onClick"])), [[R(le), {
|
|
6628
|
+
content: R(q)("跳转详情"),
|
|
6627
6629
|
theme: "ai-chat-box"
|
|
6628
6630
|
}]]) : s("", !0)
|
|
6629
6631
|
]))), 128));
|
|
@@ -6637,7 +6639,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6637
6639
|
},
|
|
6638
6640
|
setup(e) {
|
|
6639
6641
|
let t = re(), n = e, r = a(() => {
|
|
6640
|
-
if (typeof n.content == "string" || n.type ===
|
|
6642
|
+
if (typeof n.content == "string" || n.type === W.Text) return g(Bu, {
|
|
6641
6643
|
content: n.content,
|
|
6642
6644
|
status: n.status
|
|
6643
6645
|
}, { codeHeader: (e) => {
|
|
@@ -6668,8 +6670,8 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6668
6670
|
let t = e.target, i = t.files;
|
|
6669
6671
|
if (i != null && i.length) {
|
|
6670
6672
|
if (i.length > Math.max(n.maxFiles, 3)) {
|
|
6671
|
-
|
|
6672
|
-
message:
|
|
6673
|
+
ge({
|
|
6674
|
+
message: ht ? `You can only upload up to ${n.maxFiles} files` : `最多上传${n.maxFiles}个文件`,
|
|
6673
6675
|
theme: "error"
|
|
6674
6676
|
});
|
|
6675
6677
|
return;
|
|
@@ -6686,11 +6688,11 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6686
6688
|
multiple: "",
|
|
6687
6689
|
type: "file",
|
|
6688
6690
|
onChange: o
|
|
6689
|
-
}, null, 40, Gu),
|
|
6691
|
+
}, null, 40, Gu), U((k(), c("span", {
|
|
6690
6692
|
class: "ai-shortcut-btn file-upload-btn-icon",
|
|
6691
6693
|
onClick: a
|
|
6692
|
-
}, [N(t.$slots, "default", {}, () => [f(R(
|
|
6693
|
-
content: R(
|
|
6694
|
+
}, [N(t.$slots, "default", {}, () => [f(R(pn))])])), [[R(le), Y(Y({}, e.tippyOptions), {}, {
|
|
6695
|
+
content: R(q)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
|
|
6694
6696
|
theme: "ai-chat-box",
|
|
6695
6697
|
offset: [0, 16]
|
|
6696
6698
|
})]])]));
|
|
@@ -6703,9 +6705,9 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6703
6705
|
},
|
|
6704
6706
|
setup(e) {
|
|
6705
6707
|
return (t, n) => (k(), c("div", qu, [
|
|
6706
|
-
f(R(
|
|
6708
|
+
f(R(En)),
|
|
6707
6709
|
l("span", Ju, I(e.content), 1),
|
|
6708
|
-
e.onClose ? (k(), o(R(
|
|
6710
|
+
e.onClose ? (k(), o(R(xn), {
|
|
6709
6711
|
key: 0,
|
|
6710
6712
|
onClick: n[0] || (n[0] = (t) => {
|
|
6711
6713
|
var n;
|
|
@@ -6720,7 +6722,7 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6720
6722
|
}, $u = {
|
|
6721
6723
|
key: 1,
|
|
6722
6724
|
class: "ai-image-preview-toolbar-divider"
|
|
6723
|
-
}, ed = ["data-tooltip"], td = ["data-tooltip"], nd = ["data-tooltip"], rd = ["data-tooltip"], id = ["data-tooltip"], ad = { class: "ai-image-preview-toolbar-info" }, od = /* @__PURE__ */ m(
|
|
6725
|
+
}, ed = ["data-tooltip"], td = ["data-tooltip"], nd = ["data-tooltip"], rd = ["data-tooltip"], id = ["data-tooltip"], ad = { class: "ai-image-preview-toolbar-info" }, od = /* @__PURE__ */ m(Y(Y({}, { name: "PreviewToolbar" }), {}, {
|
|
6724
6726
|
__name: "preview-toolbar",
|
|
6725
6727
|
props: {
|
|
6726
6728
|
activeIndex: {},
|
|
@@ -6743,36 +6745,36 @@ var Ql = { key: 1 }, $l = /* @__PURE__ */ m({
|
|
|
6743
6745
|
t.isMultiple ? (k(), c("span", $u)) : s("", !0),
|
|
6744
6746
|
l("div", {
|
|
6745
6747
|
class: "ai-image-preview-toolbar-btn",
|
|
6746
|
-
"data-tooltip": R(
|
|
6748
|
+
"data-tooltip": R(q)("缩小"),
|
|
6747
6749
|
onClick: i[0] || (i[0] = (e) => r("zoomOut"))
|
|
6748
|
-
}, [f(R(
|
|
6750
|
+
}, [f(R($t))], 8, ed),
|
|
6749
6751
|
l("div", {
|
|
6750
6752
|
class: "ai-image-preview-toolbar-btn",
|
|
6751
|
-
"data-tooltip": R(
|
|
6753
|
+
"data-tooltip": R(q)("放大"),
|
|
6752
6754
|
onClick: i[1] || (i[1] = (e) => r("zoomIn"))
|
|
6753
|
-
}, [f(R(
|
|
6755
|
+
}, [f(R(Qt))], 8, td),
|
|
6754
6756
|
l("div", {
|
|
6755
6757
|
class: "ai-image-preview-toolbar-btn",
|
|
6756
|
-
"data-tooltip": R(
|
|
6758
|
+
"data-tooltip": R(q)("旋转"),
|
|
6757
6759
|
onClick: i[2] || (i[2] = (e) => r("rotate"))
|
|
6758
|
-
}, [f(R(
|
|
6760
|
+
}, [f(R(en))], 8, nd),
|
|
6759
6761
|
l("div", {
|
|
6760
6762
|
class: "ai-image-preview-toolbar-btn",
|
|
6761
|
-
"data-tooltip": R(
|
|
6763
|
+
"data-tooltip": R(q)("重置"),
|
|
6762
6764
|
onClick: i[3] || (i[3] = (e) => r("reset"))
|
|
6763
|
-
}, [f(R(
|
|
6765
|
+
}, [f(R(tn))], 8, rd),
|
|
6764
6766
|
l("div", {
|
|
6765
6767
|
class: "ai-image-preview-toolbar-btn",
|
|
6766
|
-
"data-tooltip": R(
|
|
6768
|
+
"data-tooltip": R(q)("下载"),
|
|
6767
6769
|
onClick: i[4] || (i[4] = (e) => r("download"))
|
|
6768
|
-
}, [f(R(
|
|
6770
|
+
}, [f(R(nn))], 8, id),
|
|
6769
6771
|
n.$slots.extra ? (k(), c(e, { key: 2 }, [i[5] || (i[5] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)), N(n.$slots, "extra")], 64)) : s("", !0),
|
|
6770
6772
|
t.showInfo && t.currentImageInfo ? (k(), c(e, { key: 3 }, [i[7] || (i[7] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)), l("div", ad, [
|
|
6771
|
-
f(R(
|
|
6772
|
-
l("span", null, I(t.currentImageInfo.width) + " px " + I(R(
|
|
6773
|
+
f(R(ln), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6774
|
+
l("span", null, I(t.currentImageInfo.width) + " px " + I(R(q)("宽")), 1),
|
|
6773
6775
|
t.currentImageInfo.resolution ? (k(), c(e, { key: 0 }, [
|
|
6774
6776
|
i[6] || (i[6] = l("span", { class: "ai-image-preview-toolbar-info-dot" }, null, -1)),
|
|
6775
|
-
f(R(
|
|
6777
|
+
f(R(ln), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6776
6778
|
l("span", null, I(t.currentImageInfo.resolution), 1)
|
|
6777
6779
|
], 64)) : s("", !0)
|
|
6778
6780
|
])], 64)) : s("", !0)
|
|
@@ -6836,7 +6838,7 @@ function dd(e) {
|
|
|
6836
6838
|
}, s = () => {
|
|
6837
6839
|
document.removeEventListener("keydown", a), document.body.style.overflow = "";
|
|
6838
6840
|
};
|
|
6839
|
-
|
|
6841
|
+
V(t, (e) => {
|
|
6840
6842
|
e ? o() : s();
|
|
6841
6843
|
}, { immediate: !0 }), T(() => {
|
|
6842
6844
|
s();
|
|
@@ -6850,7 +6852,7 @@ var fd = ["src"], pd = {
|
|
|
6850
6852
|
}, md = { class: "ai-image-preview-error-text" }, hd = {
|
|
6851
6853
|
key: 2,
|
|
6852
6854
|
class: "ai-image-preview-loading"
|
|
6853
|
-
}, gd = ["src"], _d = /* @__PURE__ */ m(
|
|
6855
|
+
}, gd = ["src"], _d = /* @__PURE__ */ m(Y(Y({}, { name: "ImagePreview" }), {}, {
|
|
6854
6856
|
__name: "image-preview",
|
|
6855
6857
|
props: /* @__PURE__ */ y({
|
|
6856
6858
|
images: { default: () => [] },
|
|
@@ -6867,7 +6869,7 @@ var fd = ["src"], pd = {
|
|
|
6867
6869
|
default: !1
|
|
6868
6870
|
}
|
|
6869
6871
|
}, {
|
|
6870
|
-
visible:
|
|
6872
|
+
visible: Y({ type: Boolean }, { required: !0 }),
|
|
6871
6873
|
visibleModifiers: {},
|
|
6872
6874
|
current: { default: 0 },
|
|
6873
6875
|
currentModifiers: {}
|
|
@@ -6883,23 +6885,23 @@ var fd = ["src"], pd = {
|
|
|
6883
6885
|
name: e.name,
|
|
6884
6886
|
file: e
|
|
6885
6887
|
};
|
|
6886
|
-
}, D = a(() => (C(), i.images.map((e) => e instanceof File ? E(e) : typeof e == "string" ? { url: e } : e.file && !e.url ?
|
|
6887
|
-
|
|
6888
|
+
}, D = a(() => (C(), i.images.map((e) => e instanceof File ? E(e) : typeof e == "string" ? { url: e } : e.file && !e.url ? Y(Y({}, e), {}, { url: E(e.file).url }) : e)));
|
|
6889
|
+
V(d, (e) => {
|
|
6888
6890
|
e || C();
|
|
6889
6891
|
}), T(C);
|
|
6890
6892
|
let O = a(() => {
|
|
6891
6893
|
var e;
|
|
6892
6894
|
return (e = D.value[p.value]) == null ? { url: "" } : e;
|
|
6893
|
-
}), A = a(() => D.value.length > 1),
|
|
6895
|
+
}), A = a(() => D.value.length > 1), j = a(() => {
|
|
6894
6896
|
let e = O.value;
|
|
6895
6897
|
return !e.width && !e.resolution ? null : {
|
|
6896
6898
|
width: e.width,
|
|
6897
6899
|
resolution: e.resolution
|
|
6898
6900
|
};
|
|
6899
|
-
}),
|
|
6901
|
+
}), ee = () => {
|
|
6900
6902
|
d.value = !1;
|
|
6901
6903
|
}, M = () => {
|
|
6902
|
-
i.maskClosable &&
|
|
6904
|
+
i.maskClosable && ee();
|
|
6903
6905
|
}, P = (e) => {
|
|
6904
6906
|
p.value = e, h(), x.value = "loading";
|
|
6905
6907
|
}, L = () => {
|
|
@@ -6921,29 +6923,29 @@ var fd = ["src"], pd = {
|
|
|
6921
6923
|
};
|
|
6922
6924
|
return dd({
|
|
6923
6925
|
visible: d,
|
|
6924
|
-
onClose:
|
|
6926
|
+
onClose: ee,
|
|
6925
6927
|
onPrev: () => A.value && L(),
|
|
6926
6928
|
onNext: () => A.value && te()
|
|
6927
6929
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-image-preview-fade" }, {
|
|
6928
|
-
default:
|
|
6930
|
+
default: H(() => [d.value ? (k(), c("div", {
|
|
6929
6931
|
key: 0,
|
|
6930
6932
|
class: "ai-image-preview",
|
|
6931
|
-
onWheel: a[1] || (a[1] =
|
|
6933
|
+
onWheel: a[1] || (a[1] = se((...e) => R(y) && R(y)(...e), ["prevent"]))
|
|
6932
6934
|
}, [
|
|
6933
6935
|
l("div", {
|
|
6934
6936
|
class: "ai-image-preview-close",
|
|
6935
|
-
onClick:
|
|
6936
|
-
}, [f(R(
|
|
6937
|
+
onClick: ee
|
|
6938
|
+
}, [f(R(rn), { class: "ai-image-preview-close-icon" })]),
|
|
6937
6939
|
A.value ? (k(), c(e, { key: 0 }, [l("div", {
|
|
6938
6940
|
class: "ai-image-preview-arrow ai-image-preview-arrow-left",
|
|
6939
6941
|
onClick: L
|
|
6940
|
-
}, [f(R(
|
|
6942
|
+
}, [f(R(an), { class: "ai-image-preview-arrow-icon" })]), l("div", {
|
|
6941
6943
|
class: "ai-image-preview-arrow ai-image-preview-arrow-right",
|
|
6942
6944
|
onClick: te
|
|
6943
|
-
}, [f(R(
|
|
6945
|
+
}, [f(R(on), { class: "ai-image-preview-arrow-icon" })])], 64)) : s("", !0),
|
|
6944
6946
|
l("div", {
|
|
6945
6947
|
class: "ai-image-preview-body",
|
|
6946
|
-
onClick:
|
|
6948
|
+
onClick: se(M, ["self"]),
|
|
6947
6949
|
onMousedown: a[0] || (a[0] = (...e) => R(b) && R(b)(...e))
|
|
6948
6950
|
}, [
|
|
6949
6951
|
x.value === "error" ? s("", !0) : (k(), c("img", {
|
|
@@ -6955,7 +6957,7 @@ var fd = ["src"], pd = {
|
|
|
6955
6957
|
onError: B,
|
|
6956
6958
|
onLoad: re
|
|
6957
6959
|
}, null, 44, fd)),
|
|
6958
|
-
x.value === "error" ? (k(), c("div", pd, [f(R(
|
|
6960
|
+
x.value === "error" ? (k(), c("div", pd, [f(R(cn), { class: "ai-image-preview-error-icon" }), l("p", md, I(R(q)("抱歉,图片加载失败,可尝试重新加载")), 1)])) : s("", !0),
|
|
6959
6961
|
x.value === "loading" ? (k(), c("div", hd, [O.value.thumbnailUrl ? (k(), c("img", {
|
|
6960
6962
|
key: 0,
|
|
6961
6963
|
class: "ai-image-preview-img ai-image-preview-img--blur",
|
|
@@ -6966,7 +6968,7 @@ var fd = ["src"], pd = {
|
|
|
6966
6968
|
], 32),
|
|
6967
6969
|
f(od, {
|
|
6968
6970
|
"active-index": p.value,
|
|
6969
|
-
"current-image-info":
|
|
6971
|
+
"current-image-info": j.value,
|
|
6970
6972
|
"is-multiple": A.value,
|
|
6971
6973
|
"show-info": n.showInfo,
|
|
6972
6974
|
total: D.value.length,
|
|
@@ -6977,7 +6979,7 @@ var fd = ["src"], pd = {
|
|
|
6977
6979
|
onZoomOut: R(_)
|
|
6978
6980
|
}, u({ _: 2 }, [i.$slots.extra ? {
|
|
6979
6981
|
name: "extra",
|
|
6980
|
-
fn:
|
|
6982
|
+
fn: H(() => [N(i.$slots, "extra")]),
|
|
6981
6983
|
key: "0"
|
|
6982
6984
|
} : void 0]), 1032, [
|
|
6983
6985
|
"active-index",
|
|
@@ -7013,9 +7015,9 @@ var fd = ["src"], pd = {
|
|
|
7013
7015
|
},
|
|
7014
7016
|
emits: ["deleteFile"],
|
|
7015
7017
|
setup(t, { emit: n }) {
|
|
7016
|
-
let r = n, i = t, u =
|
|
7018
|
+
let r = n, i = t, u = j({}), d = (e) => {
|
|
7017
7019
|
var t;
|
|
7018
|
-
return e.url ? !0 :
|
|
7020
|
+
return e.url ? !0 : Ie(e.mimeType || ((t = e.file) == null ? void 0 : t.type));
|
|
7019
7021
|
}, p = (e) => {
|
|
7020
7022
|
var t;
|
|
7021
7023
|
return e.url || ((t = e.file) == null ? void 0 : t.name) || "";
|
|
@@ -7036,14 +7038,14 @@ var fd = ["src"], pd = {
|
|
|
7036
7038
|
key: 0,
|
|
7037
7039
|
alt: e.filename || ((r = e.file) == null ? void 0 : r.name),
|
|
7038
7040
|
class: "file-content-image",
|
|
7039
|
-
src: e.url || R(
|
|
7041
|
+
src: e.url || R(Le)(e.file),
|
|
7040
7042
|
onClick: (t) => b(e),
|
|
7041
7043
|
onError: (t) => m(e)
|
|
7042
|
-
}, null, 40, yd)) : d(e) && u[p(e)] ? (k(), c("div", bd, [f(R(
|
|
7043
|
-
f(R(
|
|
7044
|
+
}, null, 40, yd)) : d(e) && u[p(e)] ? (k(), c("div", bd, [f(R(Wt), { class: "file-error-icon" })])) : (k(), c("div", xd, [l("div", Sd, [
|
|
7045
|
+
f(R(Rt), { class: "file-icon" }),
|
|
7044
7046
|
l("span", Cd, I(e.filename || ((i = e.file) == null ? void 0 : i.name)), 1),
|
|
7045
|
-
l("span", wd, I(e.file ? R(
|
|
7046
|
-
]), l("div", Td, I(R(
|
|
7047
|
+
l("span", wd, I(e.file ? R(Re)(e.file) : ((a = e.filename) == null ? void 0 : a.split(".").pop()) || ((g = e.mimeType) == null ? void 0 : g.split("/").pop())), 1)
|
|
7048
|
+
]), l("div", Td, I(R(ze)(e.file)), 1)])), t.readonly ? s("", !0) : (k(), o(R(fn), {
|
|
7047
7049
|
key: 3,
|
|
7048
7050
|
class: "file-delete-icon",
|
|
7049
7051
|
onClick: (t) => h(e)
|
|
@@ -7089,7 +7091,7 @@ var fd = ["src"], pd = {
|
|
|
7089
7091
|
resourceList: {}
|
|
7090
7092
|
},
|
|
7091
7093
|
setup(t) {
|
|
7092
|
-
let n = t, r = B("menuRef"), i =
|
|
7094
|
+
let n = t, r = B("menuRef"), i = ee([
|
|
7093
7095
|
"tool",
|
|
7094
7096
|
"shortcut",
|
|
7095
7097
|
"doc",
|
|
@@ -7100,9 +7102,9 @@ var fd = ["src"], pd = {
|
|
|
7100
7102
|
onSelect: n.onSelect,
|
|
7101
7103
|
menuRef: r
|
|
7102
7104
|
});
|
|
7103
|
-
|
|
7105
|
+
ae(() => {
|
|
7104
7106
|
let e = [], t = [];
|
|
7105
|
-
for (let [a, o] of Object.entries(
|
|
7107
|
+
for (let [a, o] of Object.entries(fr)) {
|
|
7106
7108
|
var r, i;
|
|
7107
7109
|
let s = (r = (i = n.resourceList) == null ? void 0 : i.filter((e) => e.type === a)) == null ? [] : r;
|
|
7108
7110
|
s.length > 0 && (e.push({
|
|
@@ -7143,7 +7145,7 @@ var fd = ["src"], pd = {
|
|
|
7143
7145
|
key: e.id,
|
|
7144
7146
|
class: S(["ai-slash-item ai-slash-group-item", { "is-active": ((n = a.value) == null || (n = n[R(u)]) == null ? void 0 : n.id) === e.id }]),
|
|
7145
7147
|
onClick: (n) => t.onSelect(e)
|
|
7146
|
-
}, [
|
|
7148
|
+
}, [U((k(), c("span", {
|
|
7147
7149
|
class: "ellipsis-text",
|
|
7148
7150
|
title: e.name
|
|
7149
7151
|
}, [d(I(e.name), 1)], 8, Md)), [[R(ha), {
|
|
@@ -7155,15 +7157,15 @@ var fd = ["src"], pd = {
|
|
|
7155
7157
|
}), 128)) : s("", !0)])) : s("", !0)], 64))), 256))], 512)) : s("", !0);
|
|
7156
7158
|
};
|
|
7157
7159
|
}
|
|
7158
|
-
}), Pd = (e, t, n, r) => new
|
|
7160
|
+
}), Pd = (e, t, n, r) => new wr().delete(n, r), Fd = (e, t, n, r) => new wr().insert(n, [[{ data: {
|
|
7159
7161
|
label: r.name,
|
|
7160
7162
|
value: r.name,
|
|
7161
7163
|
type: r.type
|
|
7162
|
-
} }]]), Id = (e, t, n, r) => new
|
|
7164
|
+
} }]]), Id = (e, t, n, r) => new wr().insert(n, [[{ text: r }]]), Ld = { class: "ai-slash-input-wrapper" }, Rd = ["aria-placeholder"], zd = { key: 0 }, Bd = ["data-tag-type"], Vd = { key: 1 }, Hd = /* @__PURE__ */ m({
|
|
7163
7165
|
__name: "ai-slash-input",
|
|
7164
7166
|
props: {
|
|
7165
7167
|
modelValue: {},
|
|
7166
|
-
placeholder: { default:
|
|
7168
|
+
placeholder: { default: ht ? "Please enter content" : "请输入内容" },
|
|
7167
7169
|
prompts: { default: () => [] },
|
|
7168
7170
|
resources: { default: () => [] }
|
|
7169
7171
|
},
|
|
@@ -7175,7 +7177,7 @@ var fd = ["src"], pd = {
|
|
|
7175
7177
|
setup(t, { expose: n, emit: r }) {
|
|
7176
7178
|
let i = B("editorRef"), a = B("tippyRef"), u = r, m = t, h = p((e, t) => ({
|
|
7177
7179
|
get() {
|
|
7178
|
-
return e(), typeof m.modelValue == "string" ?
|
|
7180
|
+
return e(), typeof m.modelValue == "string" ? yr(m.modelValue) : m.modelValue;
|
|
7179
7181
|
},
|
|
7180
7182
|
set(e) {
|
|
7181
7183
|
var n;
|
|
@@ -7184,9 +7186,13 @@ var fd = ["src"], pd = {
|
|
|
7184
7186
|
return ((t = m.resources) == null ? void 0 : t.find((t) => (t.id === e.data.value || t.name === e.data.value) && t.type === e.data.type)) || null;
|
|
7185
7187
|
})) == null ? void 0 : n.filter((e) => !!e)) || []), t();
|
|
7186
7188
|
}
|
|
7187
|
-
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b, x, C = document.body, { commandSelection: w, GetCursorPosition: T
|
|
7189
|
+
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b, x, C = document.body, { commandSelection: w, GetCursorPosition: T, GetDocSnapshot: D, docSnapshot: A } = sr();
|
|
7190
|
+
V(() => m.modelValue, () => {
|
|
7191
|
+
b.command(D), vr(A.value || []) !== vr(h.value || []) && b.command(zr, vr(h.value || []));
|
|
7192
|
+
}, { deep: !1 });
|
|
7193
|
+
let j = () => {
|
|
7188
7194
|
setTimeout(() => {
|
|
7189
|
-
let e =
|
|
7195
|
+
let e = P();
|
|
7190
7196
|
if (_.value = e.query || "", e.isActive) {
|
|
7191
7197
|
var t, n;
|
|
7192
7198
|
(t = a.value) == null || t.setProps({ getReferenceClientRect: () => {
|
|
@@ -7203,15 +7209,15 @@ var fd = ["src"], pd = {
|
|
|
7203
7209
|
(r = a.value) == null || r.hide();
|
|
7204
7210
|
}
|
|
7205
7211
|
}, 16);
|
|
7206
|
-
},
|
|
7212
|
+
}, ee = (e) => {
|
|
7207
7213
|
if (u("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7208
7214
|
var t;
|
|
7209
7215
|
return e.shiftKey ? void 0 : ((t = e.preventDefault) == null || t.call(e), !1);
|
|
7210
7216
|
}
|
|
7211
|
-
e.key === "@" && (g.value = "slash",
|
|
7212
|
-
},
|
|
7217
|
+
e.key === "@" && (g.value = "slash", j()), e.key === "/" && (g.value = "prompt", j());
|
|
7218
|
+
}, N = () => {
|
|
7213
7219
|
_.value = "";
|
|
7214
|
-
},
|
|
7220
|
+
}, P = () => {
|
|
7215
7221
|
let e = {
|
|
7216
7222
|
isActive: !1,
|
|
7217
7223
|
query: "",
|
|
@@ -7241,27 +7247,27 @@ var fd = ["src"], pd = {
|
|
|
7241
7247
|
} catch (t) {
|
|
7242
7248
|
return e;
|
|
7243
7249
|
}
|
|
7244
|
-
},
|
|
7250
|
+
}, L = (e, t) => e.reduce((e, n, r) => {
|
|
7245
7251
|
if (r >= t) return e;
|
|
7246
7252
|
if (n.type === "text") {
|
|
7247
7253
|
var i;
|
|
7248
7254
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7249
7255
|
}
|
|
7250
7256
|
return n.type === "tag" && (e += 1), e;
|
|
7251
|
-
}, 0),
|
|
7257
|
+
}, 0), te = (e) => {
|
|
7252
7258
|
var t;
|
|
7253
7259
|
b.command(T);
|
|
7254
7260
|
let { column: n, line: r } = w.value;
|
|
7255
|
-
b.command(Pd, [r, n - _.value.length - 1], [r, n]), b.command(Fd, [r, n], e), b.command(Id, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(),
|
|
7256
|
-
},
|
|
7261
|
+
b.command(Pd, [r, n - _.value.length - 1], [r, n]), b.command(Fd, [r, n], e), b.command(Id, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), ne();
|
|
7262
|
+
}, ne = () => {
|
|
7257
7263
|
setTimeout(() => {
|
|
7258
7264
|
let e = window.getSelection(), t = document.createRange();
|
|
7259
7265
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7260
7266
|
}, 100);
|
|
7261
|
-
},
|
|
7262
|
-
b.command(
|
|
7267
|
+
}, z = (e) => {
|
|
7268
|
+
b.command(zr, e), ne();
|
|
7263
7269
|
};
|
|
7264
|
-
|
|
7270
|
+
ae(() => {
|
|
7265
7271
|
var e;
|
|
7266
7272
|
let t = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7267
7273
|
var t;
|
|
@@ -7272,12 +7278,12 @@ var fd = ["src"], pd = {
|
|
|
7272
7278
|
(n = a.value) == null || n.hide();
|
|
7273
7279
|
}
|
|
7274
7280
|
});
|
|
7275
|
-
let
|
|
7281
|
+
let re = (e, t, n, r) => {
|
|
7276
7282
|
if (t.type === "tag") {
|
|
7277
|
-
let t =
|
|
7283
|
+
let t = L(e, n);
|
|
7278
7284
|
b.command(Pd, [r, t], [r, t + 1]);
|
|
7279
7285
|
}
|
|
7280
|
-
},
|
|
7286
|
+
}, ie = (e) => {
|
|
7281
7287
|
var t;
|
|
7282
7288
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7283
7289
|
if (!n) return;
|
|
@@ -7287,32 +7293,32 @@ var fd = ["src"], pd = {
|
|
|
7287
7293
|
t && r.push(t);
|
|
7288
7294
|
}
|
|
7289
7295
|
r.length > 0 && (e.preventDefault(), u("upload", r));
|
|
7290
|
-
},
|
|
7296
|
+
}, oe = () => {
|
|
7291
7297
|
x == null || x(), b = Li({
|
|
7292
7298
|
doc: h.value,
|
|
7293
7299
|
schema: Hi,
|
|
7294
7300
|
onChange: function() {
|
|
7295
|
-
var e =
|
|
7296
|
-
h.value = e,
|
|
7301
|
+
var e = X(function* (e) {
|
|
7302
|
+
h.value = e, j();
|
|
7297
7303
|
});
|
|
7298
7304
|
return function(t) {
|
|
7299
7305
|
return e.apply(this, arguments);
|
|
7300
7306
|
};
|
|
7301
7307
|
}(),
|
|
7302
|
-
onKeyDown: (e) =>
|
|
7308
|
+
onKeyDown: (e) => ee(e)
|
|
7303
7309
|
}), x = b.input(i.value);
|
|
7304
|
-
},
|
|
7310
|
+
}, U = () => g.value === "slash" ? v.value.length < 1 ? !1 : void 0 : y.value.length < 1 ? !1 : void 0;
|
|
7305
7311
|
return E(() => {
|
|
7306
7312
|
var e;
|
|
7307
|
-
|
|
7313
|
+
oe(), (e = i.value) == null || e.addEventListener("paste", ie);
|
|
7308
7314
|
}), O(() => {
|
|
7309
7315
|
var e;
|
|
7310
|
-
b.command(
|
|
7316
|
+
b.command(zr, ""), x == null || x(), (e = i.value) == null || e.removeEventListener("paste", ie);
|
|
7311
7317
|
}), n({
|
|
7312
7318
|
cleanup: () => {
|
|
7313
|
-
b.command(
|
|
7319
|
+
b.command(zr, "");
|
|
7314
7320
|
},
|
|
7315
|
-
focus:
|
|
7321
|
+
focus: ne
|
|
7316
7322
|
}), (n, r) => {
|
|
7317
7323
|
var u;
|
|
7318
7324
|
return k(), c("div", Ld, [l("div", {
|
|
@@ -7326,10 +7332,10 @@ var fd = ["src"], pd = {
|
|
|
7326
7332
|
class: S(`mention-tag-${r.data.type}`),
|
|
7327
7333
|
contenteditable: "false",
|
|
7328
7334
|
"data-tag-type": r.data.type
|
|
7329
|
-
}, [d(I(r.data.label) + " ", 1), f(R(
|
|
7335
|
+
}, [d(I(r.data.label) + " ", 1), f(R(Vt), {
|
|
7330
7336
|
class: "mention-tag-remove-icon",
|
|
7331
|
-
onClick: (e) =>
|
|
7332
|
-
}, null, 8, ["onClick"])], 10, Bd)) : s("", !0)], 64))), 128)) : (k(), c("br", Vd))]))), 128)) : s("", !0)], 8, Rd), f(R(
|
|
7337
|
+
onClick: (e) => re(t, r, i, n)
|
|
7338
|
+
}, null, 8, ["onClick"])], 10, Bd)) : s("", !0)], 64))), 128)) : (k(), c("br", Vd))]))), 128)) : s("", !0)], 8, Rd), f(R(ce), {
|
|
7333
7339
|
ref_key: "tippyRef",
|
|
7334
7340
|
ref: a,
|
|
7335
7341
|
"append-to": R(C),
|
|
@@ -7341,17 +7347,17 @@ var fd = ["src"], pd = {
|
|
|
7341
7347
|
theme: "light ai-slash-editor-theme",
|
|
7342
7348
|
trigger: "manual",
|
|
7343
7349
|
"trigger-target": i.value,
|
|
7344
|
-
"z-index": R(
|
|
7345
|
-
onHidden:
|
|
7346
|
-
onShow:
|
|
7350
|
+
"z-index": R(yt),
|
|
7351
|
+
onHidden: N,
|
|
7352
|
+
onShow: U
|
|
7347
7353
|
}, {
|
|
7348
|
-
content:
|
|
7354
|
+
content: H(() => [g.value === "slash" ? (k(), o(Nd, {
|
|
7349
7355
|
key: 0,
|
|
7350
|
-
"on-select":
|
|
7356
|
+
"on-select": te,
|
|
7351
7357
|
"resource-list": v.value
|
|
7352
7358
|
}, null, 8, ["resource-list"])) : g.value === "prompt" ? (k(), o(Od, {
|
|
7353
7359
|
key: 1,
|
|
7354
|
-
"on-select":
|
|
7360
|
+
"on-select": z,
|
|
7355
7361
|
prompts: y.value
|
|
7356
7362
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7357
7363
|
_: 1
|
|
@@ -7373,20 +7379,20 @@ var fd = ["src"], pd = {
|
|
|
7373
7379
|
let n = e, r = t, i = () => {
|
|
7374
7380
|
r("stopSending");
|
|
7375
7381
|
}, a = () => {
|
|
7376
|
-
n.messageState ===
|
|
7382
|
+
n.messageState === K.Disabled || n.messageState === K.Pending || n.messageState === K.Streaming || r("sendMessage");
|
|
7377
7383
|
};
|
|
7378
|
-
return (t, r) => (k(), c("div", Ud, [N(t.$slots, "default"), N(t.$slots, "send-icon", {}, () => [l("div", { class: S(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === R(
|
|
7384
|
+
return (t, r) => (k(), c("div", Ud, [N(t.$slots, "default"), N(t.$slots, "send-icon", {}, () => [l("div", { class: S(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === R(K).Streaming || e.messageState === R(K).Pending ? U((k(), o(R(hn), {
|
|
7379
7385
|
key: 0,
|
|
7380
7386
|
onClick: i
|
|
7381
|
-
}, null, 512)), [[R(
|
|
7382
|
-
content: R(
|
|
7387
|
+
}, null, 512)), [[R(le), Y(Y({}, e.tippyOptions), {}, {
|
|
7388
|
+
content: R(q)("停止"),
|
|
7383
7389
|
theme: "ai-chat-box",
|
|
7384
7390
|
offset: [0, 16]
|
|
7385
|
-
})]]) :
|
|
7391
|
+
})]]) : U((k(), o(R(mn), {
|
|
7386
7392
|
key: 1,
|
|
7387
7393
|
onClick: a
|
|
7388
|
-
}, null, 512)), [[R(
|
|
7389
|
-
content: n.messageState === R(
|
|
7394
|
+
}, null, 512)), [[R(le), Y(Y({}, e.tippyOptions), {}, {
|
|
7395
|
+
content: n.messageState === R(K).Disabled ? void 0 : R(q)("发送"),
|
|
7390
7396
|
theme: "ai-chat-box",
|
|
7391
7397
|
offset: [0, 16]
|
|
7392
7398
|
})]])], 2)])]));
|
|
@@ -7404,7 +7410,7 @@ var fd = ["src"], pd = {
|
|
|
7404
7410
|
onSendMessage: {},
|
|
7405
7411
|
onStopSending: {},
|
|
7406
7412
|
onUpload: {},
|
|
7407
|
-
placeholder: { default:
|
|
7413
|
+
placeholder: { default: ht ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入 “/”唤出 Prompt\n输入“@”唤出 工具 和 MCP\n通过 Shift + Enter 进行换行输入" },
|
|
7408
7414
|
prompts: { default: () => [] },
|
|
7409
7415
|
resources: { default: () => [] },
|
|
7410
7416
|
shortcutId: {},
|
|
@@ -7427,15 +7433,15 @@ var fd = ["src"], pd = {
|
|
|
7427
7433
|
"update:modelValue"
|
|
7428
7434
|
], ["update:cite"]),
|
|
7429
7435
|
setup(e, { expose: t, emit: n }) {
|
|
7430
|
-
ne((e) => ({ v7f7fd8e1: R(
|
|
7431
|
-
let r = B("aiSlashInputRef"), i = B("filesRef"), u = z(e, "cite"), d = F(200), p = e, m = n, g =
|
|
7436
|
+
ne((e) => ({ v7f7fd8e1: R(_t) }));
|
|
7437
|
+
let r = B("aiSlashInputRef"), i = B("filesRef"), u = z(e, "cite"), d = F(200), p = e, m = n, g = ee(p.defaultUploadFiles || []), _ = a(() => {
|
|
7432
7438
|
var e;
|
|
7433
7439
|
return (e = p.shortcuts) == null ? void 0 : e.find((e) => e.id === p.shortcutId);
|
|
7434
7440
|
}), v = a(() => {
|
|
7435
7441
|
var e;
|
|
7436
|
-
return p.messageStatus && [
|
|
7442
|
+
return p.messageStatus && [K.Pending, K.Streaming].includes(p.messageStatus) ? p.messageStatus : ((e = p.modelValue) == null ? void 0 : e.length) < 1 || Array.isArray(p.modelValue) && !vr(p.modelValue).trim() ? K.Disabled : p.messageStatus;
|
|
7437
7443
|
});
|
|
7438
|
-
|
|
7444
|
+
oe(() => {
|
|
7439
7445
|
var e;
|
|
7440
7446
|
let t = p.inputMaxHeight || 200;
|
|
7441
7447
|
if (g.value.length < 1 || !i.value) {
|
|
@@ -7445,25 +7451,25 @@ var fd = ["src"], pd = {
|
|
|
7445
7451
|
d.value = t + (((e = i.value) == null ? void 0 : e.clientHeight) || 0);
|
|
7446
7452
|
});
|
|
7447
7453
|
let y = function() {
|
|
7448
|
-
var e =
|
|
7454
|
+
var e = X(function* () {
|
|
7449
7455
|
try {
|
|
7450
7456
|
var e, t, n, i;
|
|
7451
7457
|
(e = r.value) == null || (t = e.cleanup) == null || t.call(e);
|
|
7452
7458
|
let o;
|
|
7453
|
-
if (!((n = g.value) != null && n.length)) o = typeof p.modelValue == "string" ? p.modelValue :
|
|
7459
|
+
if (!((n = g.value) != null && n.length)) o = typeof p.modelValue == "string" ? p.modelValue : vr(p.modelValue);
|
|
7454
7460
|
else {
|
|
7455
7461
|
var a;
|
|
7456
7462
|
o = (a = g.value) == null ? void 0 : a.slice().map((e) => {
|
|
7457
7463
|
var t, n;
|
|
7458
7464
|
return {
|
|
7459
|
-
type:
|
|
7465
|
+
type: W.Binary,
|
|
7460
7466
|
url: e.url,
|
|
7461
7467
|
mimeType: ((t = e.file) == null ? void 0 : t.type) || "",
|
|
7462
7468
|
filename: ((n = e.file) == null ? void 0 : n.name) || ""
|
|
7463
7469
|
};
|
|
7464
7470
|
}), p.modelValue && o.push({
|
|
7465
|
-
type:
|
|
7466
|
-
text:
|
|
7471
|
+
type: W.Text,
|
|
7472
|
+
text: vr(p.modelValue)
|
|
7467
7473
|
});
|
|
7468
7474
|
}
|
|
7469
7475
|
(i = p.onSendMessage) == null || i.call(p, o, p.modelValue), g.value = [];
|
|
@@ -7476,11 +7482,11 @@ var fd = ["src"], pd = {
|
|
|
7476
7482
|
};
|
|
7477
7483
|
}(), b = (e) => {
|
|
7478
7484
|
if (e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7479
|
-
if (e.shiftKey || v.value ===
|
|
7485
|
+
if (e.shiftKey || v.value === K.Disabled) return;
|
|
7480
7486
|
y();
|
|
7481
7487
|
}
|
|
7482
7488
|
}, x = function() {
|
|
7483
|
-
var e =
|
|
7489
|
+
var e = X(function* () {
|
|
7484
7490
|
try {
|
|
7485
7491
|
var e;
|
|
7486
7492
|
(e = p.onStopSending) == null || e.call(p);
|
|
@@ -7498,7 +7504,7 @@ var fd = ["src"], pd = {
|
|
|
7498
7504
|
}, E = () => {
|
|
7499
7505
|
m("deleteShortcut");
|
|
7500
7506
|
}, D = (e) => `${e.name}_${e.size}_${e.lastModified}`, O = function() {
|
|
7501
|
-
var e =
|
|
7507
|
+
var e = X(function* (e) {
|
|
7502
7508
|
if (!p.supportUpload) return;
|
|
7503
7509
|
let t = new Set(g.value.map((e) => e.file ? D(e.file) : ""));
|
|
7504
7510
|
for (let r of e) {
|
|
@@ -7526,7 +7532,7 @@ var fd = ["src"], pd = {
|
|
|
7526
7532
|
};
|
|
7527
7533
|
}(), A = (e) => {
|
|
7528
7534
|
g.value = g.value.filter((t) => t.file ? t.file !== e.file : t.url ? t.url !== e.url : t.filename ? t.filename !== e.filename : !0);
|
|
7529
|
-
},
|
|
7535
|
+
}, j = (e, t) => {
|
|
7530
7536
|
m("update:modelValue", e, t);
|
|
7531
7537
|
};
|
|
7532
7538
|
return t({
|
|
@@ -7562,7 +7568,7 @@ var fd = ["src"], pd = {
|
|
|
7562
7568
|
prompts: e.prompts,
|
|
7563
7569
|
resources: e.resources,
|
|
7564
7570
|
onKeydown: b,
|
|
7565
|
-
"onUpdate:modelValue":
|
|
7571
|
+
"onUpdate:modelValue": j,
|
|
7566
7572
|
onUpload: O
|
|
7567
7573
|
}, null, 8, [
|
|
7568
7574
|
"model-value",
|
|
@@ -7576,7 +7582,7 @@ var fd = ["src"], pd = {
|
|
|
7576
7582
|
onSendMessage: y,
|
|
7577
7583
|
onStopSending: x
|
|
7578
7584
|
}, {
|
|
7579
|
-
default:
|
|
7585
|
+
default: H(() => {
|
|
7580
7586
|
var n;
|
|
7581
7587
|
return [
|
|
7582
7588
|
e.supportUpload ? (k(), o(Ku, {
|
|
@@ -7585,21 +7591,21 @@ var fd = ["src"], pd = {
|
|
|
7585
7591
|
onUpload: O
|
|
7586
7592
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
7587
7593
|
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span", Kd)) : s("", !0),
|
|
7588
|
-
N(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(
|
|
7594
|
+
N(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(Kn, {
|
|
7589
7595
|
key: 0,
|
|
7590
7596
|
shortcuts: e.shortcuts,
|
|
7591
7597
|
onSelectShortcut: T
|
|
7592
|
-
}, null, 8, ["shortcuts"])) : s("", !0), _.value ? (k(), o(
|
|
7598
|
+
}, null, 8, ["shortcuts"])) : s("", !0), _.value ? (k(), o(zn, {
|
|
7593
7599
|
key: 1,
|
|
7594
7600
|
class: "selected-shortcut-btn",
|
|
7595
7601
|
shortcut: _.value
|
|
7596
7602
|
}, {
|
|
7597
|
-
append:
|
|
7603
|
+
append: H(() => [f(R(xn), { onClick: E })]),
|
|
7598
7604
|
_: 1
|
|
7599
7605
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
7600
7606
|
];
|
|
7601
7607
|
}),
|
|
7602
|
-
"send-icon":
|
|
7608
|
+
"send-icon": H(() => [N(t.$slots, "send-icon")]),
|
|
7603
7609
|
_: 3
|
|
7604
7610
|
}, 8, ["message-state", "tippy-options"])
|
|
7605
7611
|
], 4)]));
|
|
@@ -7622,7 +7628,7 @@ var fd = ["src"], pd = {
|
|
|
7622
7628
|
"is-disabled": e.disabled
|
|
7623
7629
|
}]),
|
|
7624
7630
|
onClick: i
|
|
7625
|
-
}, [e.loading ? (k(), o(R(
|
|
7631
|
+
}, [e.loading ? (k(), o(R(he), {
|
|
7626
7632
|
key: 0,
|
|
7627
7633
|
mode: "spin",
|
|
7628
7634
|
size: "mini",
|
|
@@ -7646,7 +7652,7 @@ var fd = ["src"], pd = {
|
|
|
7646
7652
|
description: n.description,
|
|
7647
7653
|
disabled: n.disabled,
|
|
7648
7654
|
tippyOptions: n.tippyOptions
|
|
7649
|
-
})), c = a(() =>
|
|
7655
|
+
})), c = a(() => Y({
|
|
7650
7656
|
arrow: !1,
|
|
7651
7657
|
interactive: !0,
|
|
7652
7658
|
offset: [0, 6],
|
|
@@ -7665,29 +7671,29 @@ var fd = ["src"], pd = {
|
|
|
7665
7671
|
};
|
|
7666
7672
|
return O(() => {
|
|
7667
7673
|
p();
|
|
7668
|
-
}), (e, t) => (k(), o(R(
|
|
7674
|
+
}), (e, t) => (k(), o(R(ce), b({
|
|
7669
7675
|
ref_key: "tippyRef",
|
|
7670
7676
|
ref: i
|
|
7671
7677
|
}, c.value, { onShow: u }), {
|
|
7672
|
-
content:
|
|
7673
|
-
l("div", Xd, I(R(
|
|
7674
|
-
l("div", Zd, I(R(
|
|
7675
|
-
l("div", Qd, [f(R(
|
|
7678
|
+
content: H(() => [l("div", Yd, [
|
|
7679
|
+
l("div", Xd, I(R(q)("确认删除该回答?")), 1),
|
|
7680
|
+
l("div", Zd, I(R(q)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
7681
|
+
l("div", Qd, [f(R(ue), {
|
|
7676
7682
|
size: "small",
|
|
7677
7683
|
theme: "danger",
|
|
7678
7684
|
onClick: m
|
|
7679
7685
|
}, {
|
|
7680
|
-
default:
|
|
7686
|
+
default: H(() => [d(I(R(q)("删除")), 1)]),
|
|
7681
7687
|
_: 1
|
|
7682
|
-
}), f(R(
|
|
7688
|
+
}), f(R(ue), {
|
|
7683
7689
|
size: "small",
|
|
7684
7690
|
onClick: g
|
|
7685
7691
|
}, {
|
|
7686
|
-
default:
|
|
7692
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7687
7693
|
_: 1
|
|
7688
7694
|
})])
|
|
7689
7695
|
])]),
|
|
7690
|
-
default:
|
|
7696
|
+
default: H(() => [f($l, C(h(s.value)), null, 16)]),
|
|
7691
7697
|
_: 1
|
|
7692
7698
|
}, 16));
|
|
7693
7699
|
}
|
|
@@ -7709,7 +7715,7 @@ var fd = ["src"], pd = {
|
|
|
7709
7715
|
};
|
|
7710
7716
|
return (n, r) => (k(), c("div", {
|
|
7711
7717
|
class: "ai-user-feedback",
|
|
7712
|
-
onMouseenter: r[1] || (r[1] =
|
|
7718
|
+
onMouseenter: r[1] || (r[1] = se(() => {}, ["stop", "prevent"]))
|
|
7713
7719
|
}, [
|
|
7714
7720
|
l("div", ef, I(t.title), 1),
|
|
7715
7721
|
l("div", tf, [t.loading ? (k(), c(e, { key: 0 }, M(8, (e) => l("div", {
|
|
@@ -7720,29 +7726,29 @@ var fd = ["src"], pd = {
|
|
|
7720
7726
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
7721
7727
|
onClick: (t) => o(e)
|
|
7722
7728
|
}, I(e), 11, nf))), 128))]),
|
|
7723
|
-
l("div", rf, [f(R(
|
|
7729
|
+
l("div", rf, [f(R(me), {
|
|
7724
7730
|
modelValue: i.value,
|
|
7725
7731
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
7726
|
-
placeholder: R(
|
|
7732
|
+
placeholder: R(q)("说出您的想法"),
|
|
7727
7733
|
rows: 3,
|
|
7728
7734
|
type: "textarea"
|
|
7729
7735
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
7730
|
-
l("div", af, [f(R(
|
|
7736
|
+
l("div", af, [f(R(ue), {
|
|
7731
7737
|
class: "custom-btn",
|
|
7732
7738
|
disabled: !i.value && a.value.length === 0,
|
|
7733
7739
|
size: "small",
|
|
7734
7740
|
theme: "primary",
|
|
7735
7741
|
onClick: s
|
|
7736
7742
|
}, {
|
|
7737
|
-
default:
|
|
7743
|
+
default: H(() => [d(I(R(q)("提交")), 1)]),
|
|
7738
7744
|
_: 1
|
|
7739
|
-
}, 8, ["disabled"]), f(R(
|
|
7745
|
+
}, 8, ["disabled"]), f(R(ue), {
|
|
7740
7746
|
class: "custom-btn",
|
|
7741
7747
|
size: "small",
|
|
7742
7748
|
width: "80px",
|
|
7743
7749
|
onClick: u
|
|
7744
7750
|
}, {
|
|
7745
|
-
default:
|
|
7751
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7746
7752
|
_: 1
|
|
7747
7753
|
})])
|
|
7748
7754
|
], 32));
|
|
@@ -7760,15 +7766,15 @@ var fd = ["src"], pd = {
|
|
|
7760
7766
|
}, uf = { class: "message-tools" }, df = /* @__PURE__ */ m({
|
|
7761
7767
|
__name: "message-tools",
|
|
7762
7768
|
props: {
|
|
7763
|
-
messageTools: { default: () =>
|
|
7769
|
+
messageTools: { default: () => St },
|
|
7764
7770
|
messageToolsStatus: {},
|
|
7765
7771
|
onAction: {},
|
|
7766
7772
|
tippyOptions: {},
|
|
7767
|
-
updateTools: { default: () =>
|
|
7773
|
+
updateTools: { default: () => wt }
|
|
7768
7774
|
},
|
|
7769
7775
|
emits: ["feedback"],
|
|
7770
7776
|
setup(t, { emit: n }) {
|
|
7771
|
-
let r = t, i = n, u = B("feedbackTippyRef"), d = F(!1), p = F([]), m = F(null), h = a(() =>
|
|
7777
|
+
let r = t, i = n, u = B("feedbackTippyRef"), d = F(!1), p = F([]), m = F(null), h = a(() => Y({
|
|
7772
7778
|
arrow: !1,
|
|
7773
7779
|
interactive: !0,
|
|
7774
7780
|
offset: [0, 6],
|
|
@@ -7776,7 +7782,7 @@ var fd = ["src"], pd = {
|
|
|
7776
7782
|
trigger: "click",
|
|
7777
7783
|
appendTo: () => document.body
|
|
7778
7784
|
}, r.tippyOptions || {})), g = function() {
|
|
7779
|
-
var e =
|
|
7785
|
+
var e = X(function* (e) {
|
|
7780
7786
|
var t;
|
|
7781
7787
|
if (e.id === "like" || e.id === "unlike") {
|
|
7782
7788
|
try {
|
|
@@ -7793,7 +7799,7 @@ var fd = ["src"], pd = {
|
|
|
7793
7799
|
return e.apply(this, arguments);
|
|
7794
7800
|
};
|
|
7795
7801
|
}(), _ = function() {
|
|
7796
|
-
var e =
|
|
7802
|
+
var e = X(function* (e) {
|
|
7797
7803
|
var t;
|
|
7798
7804
|
yield (t = r.onAction) == null ? void 0 : t.call(r, e);
|
|
7799
7805
|
});
|
|
@@ -7809,7 +7815,7 @@ var fd = ["src"], pd = {
|
|
|
7809
7815
|
}, y = (e) => m.value ? m.value === "like" && e === "like" ? "activeLike" : m.value === "unlike" && e === "unlike" ? "activeUnLike" : e : e, x = (e) => {
|
|
7810
7816
|
var t;
|
|
7811
7817
|
let n = y(e);
|
|
7812
|
-
return n === "activeLike" ?
|
|
7818
|
+
return n === "activeLike" ? q("取消满意") : n === "activeUnLike" ? q("取消不满意") : ((t = r.updateTools) == null || (t = t.find((e) => e.id === n)) == null ? void 0 : t.description) || "";
|
|
7813
7819
|
}, S = (e, t, n) => {
|
|
7814
7820
|
v(), m.value === e.id ? m.value = null : m.value = e.id, i("feedback", e, t, n);
|
|
7815
7821
|
}, C = (e) => {
|
|
@@ -7843,16 +7849,16 @@ var fd = ["src"], pd = {
|
|
|
7843
7849
|
"onClick"
|
|
7844
7850
|
]))], 64))), 128))]),
|
|
7845
7851
|
t.updateTools.length > 0 ? (k(), c("div", lf)) : s("", !0),
|
|
7846
|
-
l("div", uf, [(k(!0), c(e, null, M(t.updateTools, (n) => (k(), c(e, { key: n.id }, [["like", "unlike"].includes(n.id) ? (k(), o(R(
|
|
7852
|
+
l("div", uf, [(k(!0), c(e, null, M(t.updateTools, (n) => (k(), c(e, { key: n.id }, [["like", "unlike"].includes(n.id) ? (k(), o(R(ce), b({
|
|
7847
7853
|
key: 0,
|
|
7848
7854
|
ref_for: !0,
|
|
7849
7855
|
ref_key: "feedbackTippyRef",
|
|
7850
7856
|
ref: u
|
|
7851
7857
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
7852
|
-
content:
|
|
7858
|
+
content: H(() => [f(of, {
|
|
7853
7859
|
loading: d.value,
|
|
7854
7860
|
"reason-list": p.value,
|
|
7855
|
-
title: n.id === "like" ? R(
|
|
7861
|
+
title: n.id === "like" ? R(q)("什么原因让你满意?") : R(q)("什么原因让你不满意?"),
|
|
7856
7862
|
onCancel: v,
|
|
7857
7863
|
onSubmit: (e, t) => S(n, e, t)
|
|
7858
7864
|
}, null, 8, [
|
|
@@ -7861,11 +7867,11 @@ var fd = ["src"], pd = {
|
|
|
7861
7867
|
"title",
|
|
7862
7868
|
"onSubmit"
|
|
7863
7869
|
])]),
|
|
7864
|
-
default:
|
|
7870
|
+
default: H(() => [f($l, b({ ref_for: !0 }, n, {
|
|
7865
7871
|
id: y(n.id),
|
|
7866
7872
|
active: m.value === n.id,
|
|
7867
7873
|
disabled: t.messageToolsStatus === R(Gi).Disabled,
|
|
7868
|
-
"tippy-options":
|
|
7874
|
+
"tippy-options": Y(Y({}, t.tippyOptions), {}, { content: x(n.id) }),
|
|
7869
7875
|
onClick: (e) => g(n)
|
|
7870
7876
|
}), null, 16, [
|
|
7871
7877
|
"id",
|
|
@@ -7906,7 +7912,7 @@ var fd = ["src"], pd = {
|
|
|
7906
7912
|
}, mf = ["fill"], hf = { class: "ai-loading-star" }, gf = {
|
|
7907
7913
|
fill: "none",
|
|
7908
7914
|
viewBox: "0 0 26 26"
|
|
7909
|
-
}, _f = ["fill"], vf = /* @__PURE__ */ m(
|
|
7915
|
+
}, _f = ["fill"], vf = /* @__PURE__ */ m(Y(Y({}, { name: "AiLoading" }), {}, {
|
|
7910
7916
|
__name: "ai-loading",
|
|
7911
7917
|
props: {
|
|
7912
7918
|
size: { default: 16 },
|
|
@@ -7978,14 +7984,14 @@ var fd = ["src"], pd = {
|
|
|
7978
7984
|
let i = n.value.trim();
|
|
7979
7985
|
if (!i) return e.text;
|
|
7980
7986
|
let a = RegExp(`(${t(i)})`, "ig"), o = (r = e.text) == null ? void 0 : r.toString().split(a);
|
|
7981
|
-
return o.length <= 1 ? e.text : o.map((e) => a.test(e) ? g("span", { class:
|
|
7987
|
+
return o.length <= 1 ? e.text : o.map((e) => a.test(e) ? g("span", { class: Dt }, e) : e);
|
|
7982
7988
|
});
|
|
7983
7989
|
return () => g("span", r.value);
|
|
7984
7990
|
}
|
|
7985
7991
|
}), bf = { class: "ai-activity-message" }, xf = { class: "ai-activity-message-content" }, Sf = /* @__PURE__ */ m({
|
|
7986
7992
|
__name: "activity-layout",
|
|
7987
7993
|
props: /* @__PURE__ */ y({ activityType: {} }, {
|
|
7988
|
-
collapsed:
|
|
7994
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
7989
7995
|
collapsedModifiers: {}
|
|
7990
7996
|
}),
|
|
7991
7997
|
emits: ["update:collapsed"],
|
|
@@ -7994,10 +8000,10 @@ var fd = ["src"], pd = {
|
|
|
7994
8000
|
return (n, r) => (k(), c("div", bf, [l("div", {
|
|
7995
8001
|
class: "ai-activity-message-title",
|
|
7996
8002
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
7997
|
-
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(
|
|
8003
|
+
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(W).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
7998
8004
|
key: 0,
|
|
7999
8005
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
8000
|
-
}, [f(R(
|
|
8006
|
+
}, [f(R(_n))], 2))]), U(l("div", xf, [N(n.$slots, "default")], 512), [[ie, !t.value]])]));
|
|
8001
8007
|
}
|
|
8002
8008
|
}), Cf = { class: "ai-detail-section" }, wf = { class: "section-heading" }, Tf = { class: "section-text" }, Ef = /* @__PURE__ */ m({
|
|
8003
8009
|
__name: "detail-section",
|
|
@@ -8047,25 +8053,25 @@ var fd = ["src"], pd = {
|
|
|
8047
8053
|
setup(t) {
|
|
8048
8054
|
let n = [{
|
|
8049
8055
|
key: Xf.Config,
|
|
8050
|
-
label:
|
|
8056
|
+
label: q("节点配置")
|
|
8051
8057
|
}, {
|
|
8052
8058
|
key: Xf.Output,
|
|
8053
|
-
label:
|
|
8059
|
+
label: q("节点输出")
|
|
8054
8060
|
}], r = [{
|
|
8055
8061
|
key: "key",
|
|
8056
|
-
label:
|
|
8062
|
+
label: q("参数名")
|
|
8057
8063
|
}, {
|
|
8058
8064
|
breakAll: !0,
|
|
8059
8065
|
key: "value",
|
|
8060
|
-
label:
|
|
8066
|
+
label: q("参数值")
|
|
8061
8067
|
}], i = [
|
|
8062
8068
|
{
|
|
8063
8069
|
key: "name",
|
|
8064
|
-
label:
|
|
8070
|
+
label: q("名称")
|
|
8065
8071
|
},
|
|
8066
8072
|
{
|
|
8067
8073
|
key: "description",
|
|
8068
|
-
label:
|
|
8074
|
+
label: q("变量说明")
|
|
8069
8075
|
},
|
|
8070
8076
|
{
|
|
8071
8077
|
key: "key",
|
|
@@ -8073,32 +8079,32 @@ var fd = ["src"], pd = {
|
|
|
8073
8079
|
}
|
|
8074
8080
|
], u = [{
|
|
8075
8081
|
key: "key",
|
|
8076
|
-
label:
|
|
8082
|
+
label: q("参数名")
|
|
8077
8083
|
}, {
|
|
8078
8084
|
breakAll: !0,
|
|
8079
8085
|
key: "value",
|
|
8080
|
-
label:
|
|
8081
|
-
}], p = { forced_fail:
|
|
8086
|
+
label: q("参数值")
|
|
8087
|
+
}], p = { forced_fail: ht ? "Force Fail" : "强制失败" }, m = t, h = F(Xf.Config), g = a(() => {
|
|
8082
8088
|
var e;
|
|
8083
8089
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
8084
8090
|
}), _ = a(() => {
|
|
8085
8091
|
let e = g.value;
|
|
8086
8092
|
return e ? [
|
|
8087
8093
|
{
|
|
8088
|
-
label:
|
|
8094
|
+
label: q("流程模板"),
|
|
8089
8095
|
value: e.template_name || "--"
|
|
8090
8096
|
},
|
|
8091
8097
|
{
|
|
8092
|
-
label:
|
|
8098
|
+
label: q("节点名称"),
|
|
8093
8099
|
value: e.node_name || "--"
|
|
8094
8100
|
},
|
|
8095
8101
|
{
|
|
8096
|
-
label:
|
|
8102
|
+
label: q("步骤名称"),
|
|
8097
8103
|
value: e.stage_name || "--"
|
|
8098
8104
|
},
|
|
8099
8105
|
{
|
|
8100
|
-
label:
|
|
8101
|
-
value: e.optional ?
|
|
8106
|
+
label: q("是否可选"),
|
|
8107
|
+
value: e.optional ? q("是") : q("否")
|
|
8102
8108
|
}
|
|
8103
8109
|
] : [];
|
|
8104
8110
|
}), v = a(() => {
|
|
@@ -8108,13 +8114,13 @@ var fd = ["src"], pd = {
|
|
|
8108
8114
|
}), y = a(() => {
|
|
8109
8115
|
var e;
|
|
8110
8116
|
let t = (e = g.value) == null ? void 0 : e.auto_retry;
|
|
8111
|
-
return t != null && t.enable ?
|
|
8117
|
+
return t != null && t.enable ? ht ? `In ${t.interval} seconds, auto retry ${t.times} times` : `在 ${t.interval} 秒后,自动重试 ${t.times} 次` : "";
|
|
8112
8118
|
}), b = a(() => {
|
|
8113
8119
|
var e, t;
|
|
8114
8120
|
let n = (e = g.value) == null ? void 0 : e.timeout_config;
|
|
8115
8121
|
if (!(n != null && n.enable)) return "--";
|
|
8116
8122
|
let r = (t = p[n.action]) == null ? n.action : t;
|
|
8117
|
-
return
|
|
8123
|
+
return ht ? `Timeout ${n.seconds} seconds later, ${r}` : `超时 ${n.seconds} 秒后则${r}`;
|
|
8118
8124
|
}), x = a(() => {
|
|
8119
8125
|
var e, t;
|
|
8120
8126
|
return Object.entries((e = (t = m.data) == null ? void 0 : t.inputs) == null ? {} : e).map(([e, t]) => ({
|
|
@@ -8144,12 +8150,12 @@ var fd = ["src"], pd = {
|
|
|
8144
8150
|
return (a, p) => {
|
|
8145
8151
|
var m;
|
|
8146
8152
|
return k(), c("div", jf, [
|
|
8147
|
-
l("h3", Mf, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, I(R(
|
|
8153
|
+
l("h3", Mf, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, I(R(q)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c(e, { key: 1 }, [d(I(R(q)("节点")) + ":" + I((m = g.value) == null ? void 0 : m.node_name), 1)], 64))]),
|
|
8148
8154
|
l("div", Nf, [(k(), c(e, null, M(n, (e) => l("div", {
|
|
8149
8155
|
key: e.key,
|
|
8150
8156
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
8151
8157
|
onClick: (t) => h.value = e.key
|
|
8152
|
-
}, [(k(), o(P(e.key === Xf.Config ? R(
|
|
8158
|
+
}, [(k(), o(P(e.key === Xf.Config ? R(Zt) : R(Xt)), { class: "detail-tab-icon" })), d(" " + I(e.label), 1)], 10, Pf)), 64))]),
|
|
8153
8159
|
l("div", Ff, [h.value === Xf.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", If, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(6, (e) => l("div", {
|
|
8154
8160
|
key: e,
|
|
8155
8161
|
class: "skeleton-row ai-skeleton-element"
|
|
@@ -8157,29 +8163,29 @@ var fd = ["src"], pd = {
|
|
|
8157
8163
|
key: e,
|
|
8158
8164
|
class: "skeleton-row ai-skeleton-element"
|
|
8159
8165
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
8160
|
-
f(Ef, { title: R(
|
|
8161
|
-
default:
|
|
8166
|
+
f(Ef, { title: R(q)("基础信息") }, {
|
|
8167
|
+
default: H(() => {
|
|
8162
8168
|
var t, n, r;
|
|
8163
8169
|
return [l("div", Rf, [
|
|
8164
8170
|
(k(!0), c(e, null, M(_.value, (e) => (k(), c("div", {
|
|
8165
8171
|
key: e.label,
|
|
8166
8172
|
class: "info-row"
|
|
8167
8173
|
}, [l("div", zf, I(e.label), 1), l("div", Bf, I(e.value), 1)]))), 128)),
|
|
8168
|
-
l("div", Vf, [l("div", Hf, I(R(
|
|
8169
|
-
l("div", Kf, [l("div", qf, I(R(
|
|
8174
|
+
l("div", Vf, [l("div", Hf, I(R(q)("失败处理")), 1), l("div", Uf, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", Wf, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + I(R(q)("手动跳过")) + I(!((n = g.value) == null || (n = n.auto_retry) == null) && n.enable ? ";" : ""), 1)])) : s("", !0), !((r = g.value) == null || (r = r.auto_retry) == null) && r.enable ? (k(), c("span", Gf, [p[4] || (p[4] = l("span", { class: "tag-badge" }, "AR", -1)), d(" " + I(y.value), 1)])) : s("", !0)], 64)) : (k(), c(e, { key: 1 }, [d("--")], 64))])]),
|
|
8175
|
+
l("div", Kf, [l("div", qf, I(R(q)("超时控制")), 1), l("div", Jf, I(b.value), 1)])
|
|
8170
8176
|
])];
|
|
8171
8177
|
}),
|
|
8172
8178
|
_: 1
|
|
8173
8179
|
}, 8, ["title"]),
|
|
8174
|
-
f(Ef, { title: R(
|
|
8175
|
-
default:
|
|
8180
|
+
f(Ef, { title: R(q)("输入参数") }, {
|
|
8181
|
+
default: H(() => [f(Af, {
|
|
8176
8182
|
columns: r,
|
|
8177
8183
|
data: x.value
|
|
8178
8184
|
}, null, 8, ["data"])]),
|
|
8179
8185
|
_: 1
|
|
8180
8186
|
}, 8, ["title"]),
|
|
8181
|
-
f(Ef, { title: R(
|
|
8182
|
-
default:
|
|
8187
|
+
f(Ef, { title: R(q)("输出参数") }, {
|
|
8188
|
+
default: H(() => [f(Af, {
|
|
8183
8189
|
columns: i,
|
|
8184
8190
|
data: C.value
|
|
8185
8191
|
}, null, 8, ["data"])]),
|
|
@@ -8190,9 +8196,9 @@ var fd = ["src"], pd = {
|
|
|
8190
8196
|
class: "skeleton-row ai-skeleton-element"
|
|
8191
8197
|
})), 64))])) : (k(), o(Ef, {
|
|
8192
8198
|
key: 1,
|
|
8193
|
-
title: R(
|
|
8199
|
+
title: R(q)("结构化输出")
|
|
8194
8200
|
}, {
|
|
8195
|
-
default:
|
|
8201
|
+
default: H(() => [f(Af, {
|
|
8196
8202
|
columns: u,
|
|
8197
8203
|
data: w.value
|
|
8198
8204
|
}, null, 8, ["data"])]),
|
|
@@ -8213,7 +8219,7 @@ var fd = ["src"], pd = {
|
|
|
8213
8219
|
content: {},
|
|
8214
8220
|
status: {}
|
|
8215
8221
|
}, {
|
|
8216
|
-
collapsed:
|
|
8222
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
8217
8223
|
collapsedModifiers: {}
|
|
8218
8224
|
}),
|
|
8219
8225
|
emits: ["update:collapsed"],
|
|
@@ -8234,46 +8240,46 @@ var fd = ["src"], pd = {
|
|
|
8234
8240
|
{
|
|
8235
8241
|
color: "#3A84FF",
|
|
8236
8242
|
key: "running",
|
|
8237
|
-
label:
|
|
8243
|
+
label: q("执行中")
|
|
8238
8244
|
},
|
|
8239
8245
|
{
|
|
8240
8246
|
color: "#18B456",
|
|
8241
8247
|
key: "success",
|
|
8242
|
-
label:
|
|
8248
|
+
label: q("成功")
|
|
8243
8249
|
},
|
|
8244
8250
|
{
|
|
8245
8251
|
color: "#EA3636",
|
|
8246
8252
|
key: "failed",
|
|
8247
|
-
label:
|
|
8253
|
+
label: q("失败")
|
|
8248
8254
|
},
|
|
8249
8255
|
{
|
|
8250
8256
|
color: "#F59500",
|
|
8251
8257
|
key: "suspended",
|
|
8252
|
-
label:
|
|
8258
|
+
label: q("挂起")
|
|
8253
8259
|
},
|
|
8254
8260
|
{
|
|
8255
8261
|
color: "#4D4F56",
|
|
8256
8262
|
key: "pending",
|
|
8257
|
-
label:
|
|
8263
|
+
label: q("待执行")
|
|
8258
8264
|
}
|
|
8259
8265
|
], m = {
|
|
8260
|
-
success:
|
|
8261
|
-
failed:
|
|
8262
|
-
suspended:
|
|
8263
|
-
pending:
|
|
8264
|
-
}, h = t, { addCustomTab: g, removeCustomTab: _ } = Yi(), v =
|
|
8266
|
+
success: Gt,
|
|
8267
|
+
failed: Kt,
|
|
8268
|
+
suspended: qt,
|
|
8269
|
+
pending: Jt
|
|
8270
|
+
}, h = t, { addCustomTab: g, removeCustomTab: _ } = Yi(), v = dr(), y = z(t, "collapsed"), b = ee(!0), x = a(() => h.status === K.Pending || h.status === K.Streaming), C = a(() => h.content), T = a(() => {
|
|
8265
8271
|
var e, t;
|
|
8266
|
-
return
|
|
8272
|
+
return j((e = (t = C.value) == null ? void 0 : t.task_state) == null ? "" : e);
|
|
8267
8273
|
}), E = a(() => {
|
|
8268
8274
|
let e = m[T.value];
|
|
8269
|
-
return i(e ||
|
|
8275
|
+
return i(e || qt);
|
|
8270
8276
|
}), D = a(() => {
|
|
8271
8277
|
var e, t;
|
|
8272
8278
|
return F(Object.values((e = (t = C.value) == null ? void 0 : t.nodes) == null ? {} : e).reduce((e, t) => e + t.elapsed_time, 0));
|
|
8273
8279
|
}), A = a(() => {
|
|
8274
8280
|
var e, t;
|
|
8275
8281
|
return Object.values((e = (t = h.content) == null ? void 0 : t.nodes) == null ? {} : e);
|
|
8276
|
-
}),
|
|
8282
|
+
}), j = (e) => e === "FINISHED" ? "success" : u.has(e) ? "failed" : e === "SUSPENDED" ? "suspended" : e === "PENDING" ? "pending" : (r.has(e), "running"), N = a(() => {
|
|
8277
8283
|
var e, t;
|
|
8278
8284
|
let n = (e = (t = h.content) == null || (t = t.statistics) == null ? void 0 : t.state_counts) == null ? {} : e, r = {
|
|
8279
8285
|
failed: 0,
|
|
@@ -8282,8 +8288,8 @@ var fd = ["src"], pd = {
|
|
|
8282
8288
|
success: 0,
|
|
8283
8289
|
suspended: 0
|
|
8284
8290
|
};
|
|
8285
|
-
for (let [e, t] of Object.entries(n)) r[
|
|
8286
|
-
return p.filter((e) => r[e.key] > 0).map((e) =>
|
|
8291
|
+
for (let [e, t] of Object.entries(n)) r[j(e)] += t;
|
|
8292
|
+
return p.filter((e) => r[e.key] > 0).map((e) => Y(Y({}, e), {}, { display: r[e.key] > 99 ? "99+" : String(r[e.key]) }));
|
|
8287
8293
|
}), F = (e) => {
|
|
8288
8294
|
if (e < 1) return "<1s";
|
|
8289
8295
|
let t = Math.floor(e / 86400), n = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, a = [];
|
|
@@ -8318,47 +8324,47 @@ var fd = ["src"], pd = {
|
|
|
8318
8324
|
}), (t, r) => (k(), o(Sf, {
|
|
8319
8325
|
collapsed: y.value,
|
|
8320
8326
|
"onUpdate:collapsed": r[0] || (r[0] = (e) => y.value = e),
|
|
8321
|
-
"activity-type": R(
|
|
8327
|
+
"activity-type": R(W).FlowAgent,
|
|
8322
8328
|
class: "flow-agent-activity"
|
|
8323
8329
|
}, {
|
|
8324
|
-
title:
|
|
8330
|
+
title: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": y.value }]) }, [x.value ? (k(), o(vf, {
|
|
8325
8331
|
key: 0,
|
|
8326
8332
|
size: 12
|
|
8327
|
-
})) : (k(), o(R(
|
|
8333
|
+
})) : (k(), o(R(Ht), { key: 1 }))], 2), l("span", Qf, [l("span", $f, I(R(q)("执行情况")) + ": ", 1), (k(!0), c(e, null, M(N.value, (e) => (k(), c("span", {
|
|
8328
8334
|
key: e.key,
|
|
8329
8335
|
class: "flow-agent-stat-item"
|
|
8330
8336
|
}, [d(I(e.label) + ":", 1), l("span", {
|
|
8331
8337
|
class: "flow-agent-stat-count",
|
|
8332
8338
|
style: w({ color: e.color })
|
|
8333
8339
|
}, I(e.display), 5)]))), 128))])]),
|
|
8334
|
-
default:
|
|
8340
|
+
default: H(() => [C.value ? (k(), c("div", ep, [l("div", tp, [
|
|
8335
8341
|
s("", !0),
|
|
8336
|
-
l("span", np, [T.value === "running" ? (k(), o(R(
|
|
8342
|
+
l("span", np, [T.value === "running" ? (k(), o(R(he), {
|
|
8337
8343
|
key: 0,
|
|
8338
8344
|
mode: "spin",
|
|
8339
8345
|
size: "mini",
|
|
8340
8346
|
theme: "primary"
|
|
8341
8347
|
})) : (k(), o(P(E.value), { key: 1 }))]),
|
|
8342
|
-
|
|
8348
|
+
U((k(), c("span", rp, [f(R(yf), { text: C.value.task_name }, null, 8, ["text"])])), [[R(ha), Y({}, R(n))]]),
|
|
8343
8349
|
l("span", ip, I(D.value), 1)
|
|
8344
|
-
]),
|
|
8350
|
+
]), U(l("div", ap, [(k(!0), c(e, null, M(A.value, (e) => (k(), c("div", {
|
|
8345
8351
|
key: e.id,
|
|
8346
8352
|
class: "flow-agent-node-item"
|
|
8347
8353
|
}, [
|
|
8348
|
-
l("span", { class: S(["flow-agent-node-status", `is-${
|
|
8354
|
+
l("span", { class: S(["flow-agent-node-status", `is-${j(e.state)}`]) }, [j(e.state) === "running" ? (k(), o(R(he), {
|
|
8349
8355
|
key: 0,
|
|
8350
8356
|
mode: "spin",
|
|
8351
8357
|
size: "mini",
|
|
8352
8358
|
theme: "primary"
|
|
8353
8359
|
})) : (k(), c("span", op))], 2),
|
|
8354
|
-
|
|
8360
|
+
U((k(), c("span", {
|
|
8355
8361
|
class: "flow-agent-node-name",
|
|
8356
8362
|
title: e.name
|
|
8357
|
-
}, [f(R(yf), { text: e.name }, null, 8, ["text"])], 8, sp)), [[R(ha),
|
|
8363
|
+
}, [f(R(yf), { text: e.name }, null, 8, ["text"])], 8, sp)), [[R(ha), Y({}, R(n))]]),
|
|
8358
8364
|
l("span", cp, [l("span", lp, I(F(e.elapsed_time)), 1), l("span", {
|
|
8359
8365
|
class: "flow-agent-node-detail-btn",
|
|
8360
|
-
onClick:
|
|
8361
|
-
}, [f(R(
|
|
8366
|
+
onClick: se((t) => L(e), ["stop"])
|
|
8367
|
+
}, [f(R(Xt)), d(" " + I(R(q)("详情")), 1)], 8, up)])
|
|
8362
8368
|
]))), 128))], 512), [[ie, b.value]])])) : s("", !0)]),
|
|
8363
8369
|
_: 1
|
|
8364
8370
|
}, 8, ["collapsed", "activity-type"]));
|
|
@@ -8369,21 +8375,21 @@ var fd = ["src"], pd = {
|
|
|
8369
8375
|
content: {},
|
|
8370
8376
|
status: {}
|
|
8371
8377
|
}, {
|
|
8372
|
-
collapsed:
|
|
8378
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
8373
8379
|
collapsedModifiers: {}
|
|
8374
8380
|
}),
|
|
8375
8381
|
emits: ["update:collapsed"],
|
|
8376
8382
|
setup(e) {
|
|
8377
|
-
let t = e, n = z(e, "collapsed"), r = a(() => t.status ===
|
|
8383
|
+
let t = e, n = z(e, "collapsed"), r = a(() => t.status === K.Pending || t.status === K.Streaming), i = a(() => r.value ? q("检索中") : q("检索完成"));
|
|
8378
8384
|
return (t, a) => (k(), o(Sf, {
|
|
8379
8385
|
collapsed: n.value,
|
|
8380
8386
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
8381
8387
|
}, {
|
|
8382
|
-
title:
|
|
8388
|
+
title: H(() => [l("span", fp, [r.value ? (k(), o(vf, { key: 0 })) : (k(), o(R(Rt), {
|
|
8383
8389
|
key: 1,
|
|
8384
8390
|
style: { "font-size": "12px" }
|
|
8385
8391
|
}))]), l("span", pp, I(i.value), 1)]),
|
|
8386
|
-
default:
|
|
8392
|
+
default: H(() => {
|
|
8387
8393
|
var t, n;
|
|
8388
8394
|
return [l("div", mp, [f(Bu, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(Hu, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
|
|
8389
8395
|
}),
|
|
@@ -8393,7 +8399,7 @@ var fd = ["src"], pd = {
|
|
|
8393
8399
|
}), gp = { class: "ai-activity-message-title-icon" }, _p = { class: "ai-activity-message-title-text" }, vp = /* @__PURE__ */ m({
|
|
8394
8400
|
__name: "reference-doc-content",
|
|
8395
8401
|
props: /* @__PURE__ */ y({ content: {} }, {
|
|
8396
|
-
collapsed:
|
|
8402
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
8397
8403
|
collapsedModifiers: {}
|
|
8398
8404
|
}),
|
|
8399
8405
|
emits: ["update:collapsed"],
|
|
@@ -8401,14 +8407,14 @@ var fd = ["src"], pd = {
|
|
|
8401
8407
|
let t = e, n = z(e, "collapsed"), r = a(() => {
|
|
8402
8408
|
var e, n;
|
|
8403
8409
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
8404
|
-
return
|
|
8410
|
+
return ht ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
8405
8411
|
});
|
|
8406
8412
|
return (t, i) => (k(), o(Sf, {
|
|
8407
8413
|
collapsed: n.value,
|
|
8408
8414
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
8409
8415
|
}, {
|
|
8410
|
-
title:
|
|
8411
|
-
default:
|
|
8416
|
+
title: H(() => [l("span", gp, [f(R(Rt), { style: { "font-size": "12px" } })]), l("span", _p, I(r.value), 1)]),
|
|
8417
|
+
default: H(() => [f(Hu, { content: e.content || [] }, null, 8, ["content"])]),
|
|
8412
8418
|
_: 1
|
|
8413
8419
|
}, 8, ["collapsed"]));
|
|
8414
8420
|
}
|
|
@@ -8424,15 +8430,15 @@ var fd = ["src"], pd = {
|
|
|
8424
8430
|
status: {},
|
|
8425
8431
|
property: {}
|
|
8426
8432
|
}, {
|
|
8427
|
-
collapsed:
|
|
8433
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
8428
8434
|
collapsedModifiers: {}
|
|
8429
8435
|
}),
|
|
8430
8436
|
emits: ["update:collapsed"],
|
|
8431
8437
|
setup(e) {
|
|
8432
8438
|
let t = {
|
|
8433
|
-
[
|
|
8434
|
-
[
|
|
8435
|
-
[
|
|
8439
|
+
[W.FlowAgent]: dp,
|
|
8440
|
+
[W.KnowledgeRag]: hp,
|
|
8441
|
+
[W.ReferenceDocument]: vp
|
|
8436
8442
|
}, n = e, r = z(e, "collapsed"), i = a(() => {
|
|
8437
8443
|
var e;
|
|
8438
8444
|
return t[(e = n.activityType) == null ? "" : e];
|
|
@@ -8456,25 +8462,23 @@ var fd = ["src"], pd = {
|
|
|
8456
8462
|
title: {}
|
|
8457
8463
|
},
|
|
8458
8464
|
setup(t) {
|
|
8459
|
-
let n = t, r =
|
|
8465
|
+
let n = t, r = a(() => {
|
|
8460
8466
|
try {
|
|
8461
8467
|
return JSON.parse(n.desc || "");
|
|
8462
8468
|
} catch (e) {
|
|
8463
8469
|
return n.desc;
|
|
8464
8470
|
}
|
|
8465
8471
|
});
|
|
8466
|
-
return (n,
|
|
8472
|
+
return (n, i) => (k(), c("div", bp, [l("div", xp, I(t.title), 1), l("div", Sp, [typeof r.value == "object" ? (k(!0), c(e, { key: 0 }, M(r.value, (e, t) => (k(), c("div", {
|
|
8467
8473
|
key: t,
|
|
8468
8474
|
class: "desc-panel-item"
|
|
8469
|
-
}, [l("span", Cp, [f(R(yf), { text: t }, null, 8, ["text"]),
|
|
8475
|
+
}, [l("span", Cp, [f(R(yf), { text: t }, null, 8, ["text"]), i[0] || (i[0] = d(":", -1))]), l("span", wp, [f(R(yf), {
|
|
8470
8476
|
style: { "word-break": "break-all" },
|
|
8471
8477
|
text: typeof e == "object" && e ? JSON.stringify(e) : e
|
|
8472
|
-
}, null, 8, ["text"])])),
|
|
8473
|
-
text: typeof e == "object" && e ? JSON.stringify(e) : e,
|
|
8474
|
-
appendTo: "parent"
|
|
8475
|
-
})]])]))), 128)) : (k(), o(R(yf), {
|
|
8478
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(yf), {
|
|
8476
8479
|
key: 1,
|
|
8477
|
-
|
|
8480
|
+
style: { wordBreak: "break-all" },
|
|
8481
|
+
text: r.value
|
|
8478
8482
|
}, null, 8, ["text"]))])]));
|
|
8479
8483
|
}
|
|
8480
8484
|
}), Ep = { class: "tool-message" }, Dp = /* @__PURE__ */ m({
|
|
@@ -8494,7 +8498,7 @@ var fd = ["src"], pd = {
|
|
|
8494
8498
|
setup(e) {
|
|
8495
8499
|
return (t, n) => (k(), c("div", Ep, [f(Tp, {
|
|
8496
8500
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
8497
|
-
title: R(
|
|
8501
|
+
title: R(q)("返回内容")
|
|
8498
8502
|
}, null, 8, ["desc", "title"])]));
|
|
8499
8503
|
}
|
|
8500
8504
|
}), Op = { class: "ai-toolcall-render" }, kp = { class: "toolcall-header-title" }, Ap = { class: "toolcall-status-title" }, jp = {
|
|
@@ -8532,15 +8536,15 @@ var fd = ["src"], pd = {
|
|
|
8532
8536
|
var e;
|
|
8533
8537
|
switch (t.status) {
|
|
8534
8538
|
default:
|
|
8535
|
-
case
|
|
8536
|
-
case
|
|
8537
|
-
case
|
|
8538
|
-
case
|
|
8539
|
+
case K.Pending: return q("调用中");
|
|
8540
|
+
case K.Complete:
|
|
8541
|
+
case K.Success: return q("调用成功");
|
|
8542
|
+
case K.Error || ((e = t.toolCall) == null || (e = e.toolMessage) == null ? void 0 : e.error): return q("调用失败");
|
|
8539
8543
|
}
|
|
8540
8544
|
}), v = a(() => {
|
|
8541
8545
|
var e;
|
|
8542
8546
|
let n = t.duration || ((e = t.toolCall) == null || (e = e.toolMessage) == null ? void 0 : e.duration);
|
|
8543
|
-
return n ?
|
|
8547
|
+
return n ? pt(n) : "";
|
|
8544
8548
|
});
|
|
8545
8549
|
return (t, n) => {
|
|
8546
8550
|
var r, a, u, p;
|
|
@@ -8548,14 +8552,14 @@ var fd = ["src"], pd = {
|
|
|
8548
8552
|
class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
8549
8553
|
onClick: h
|
|
8550
8554
|
}, [
|
|
8551
|
-
f(R(
|
|
8552
|
-
d(" " + I((r = e.toolCall) != null && r.function.mcpName ? R(
|
|
8553
|
-
|
|
8555
|
+
f(R(Ht), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
|
|
8556
|
+
d(" " + I((r = e.toolCall) != null && r.function.mcpName ? R(q)("调用 MCP:") : R(q)("调用工具:")) + " ", 1),
|
|
8557
|
+
U((k(), c("span", kp, [f(R(yf), { text: g.value }, null, 8, ["text"])])), [[R(ha), Y(Y({}, R(i)), {}, {
|
|
8554
8558
|
text: g.value,
|
|
8555
8559
|
appendTo: "parent"
|
|
8556
8560
|
})]]),
|
|
8557
8561
|
l("span", Ap, [
|
|
8558
|
-
e.status === R(
|
|
8562
|
+
e.status === R(K).Pending || e.status === R(K).Streaming ? (k(), o(R(he), {
|
|
8559
8563
|
key: 0,
|
|
8560
8564
|
mode: "spin",
|
|
8561
8565
|
size: "mini",
|
|
@@ -8564,20 +8568,20 @@ var fd = ["src"], pd = {
|
|
|
8564
8568
|
f(R(yf), { text: _.value }, null, 8, ["text"]),
|
|
8565
8569
|
v.value ? (k(), c("span", jp, " (" + I(v.value) + ") ", 1)) : s("", !0)
|
|
8566
8570
|
])
|
|
8567
|
-
], 2),
|
|
8571
|
+
], 2), U(l("div", Mp, [
|
|
8568
8572
|
f(Tp, {
|
|
8569
8573
|
desc: (a = e.toolCall) == null ? void 0 : a.function.description,
|
|
8570
|
-
title: R(
|
|
8574
|
+
title: R(q)("描述")
|
|
8571
8575
|
}, null, 8, ["desc", "title"]),
|
|
8572
8576
|
f(Tp, {
|
|
8573
8577
|
desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
|
|
8574
|
-
title: R(
|
|
8578
|
+
title: R(q)("参数")
|
|
8575
8579
|
}, null, 8, ["desc", "title"]),
|
|
8576
8580
|
(p = e.toolCall) != null && p.toolMessage ? (k(), o(Dp, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
8577
8581
|
], 512), [[ie, !m.value]])]);
|
|
8578
8582
|
};
|
|
8579
8583
|
}
|
|
8580
|
-
}), Pp = { class: "assistant-message" }, Fp = { class: "assistant-message-content" }, Ip = /* @__PURE__ */ m({
|
|
8584
|
+
}), Pp = { class: "ai-assistant-message" }, Fp = { class: "ai-assistant-message-content" }, Ip = /* @__PURE__ */ m({
|
|
8581
8585
|
__name: "assistant-message",
|
|
8582
8586
|
props: {
|
|
8583
8587
|
toolCalls: {},
|
|
@@ -8593,7 +8597,7 @@ var fd = ["src"], pd = {
|
|
|
8593
8597
|
return (n, r) => (k(), c("div", Pp, [l("div", Fp, [N(n.$slots, "default", C(h({ content: t.content })), () => [f(Uu, {
|
|
8594
8598
|
content: t.content || "",
|
|
8595
8599
|
status: t.status,
|
|
8596
|
-
type: R(
|
|
8600
|
+
type: R(W).Text
|
|
8597
8601
|
}, null, 8, [
|
|
8598
8602
|
"content",
|
|
8599
8603
|
"status",
|
|
@@ -8624,7 +8628,7 @@ var fd = ["src"], pd = {
|
|
|
8624
8628
|
}), zp = { class: "ai-loading-message" }, Bp = /* @__PURE__ */ m({
|
|
8625
8629
|
__name: "loading-message",
|
|
8626
8630
|
setup(e) {
|
|
8627
|
-
return (e, t) => (k(), c("div", zp, [f(vf, { size: 18 }), N(e.$slots, "default", {}, () => [d(I(R(
|
|
8631
|
+
return (e, t) => (k(), c("div", zp, [f(vf, { size: 18 }), N(e.$slots, "default", {}, () => [d(I(R(q)("请求中...")), 1)])]));
|
|
8628
8632
|
}
|
|
8629
8633
|
}), Vp = { class: "ai-reasoning-message" }, Hp = {
|
|
8630
8634
|
key: 0,
|
|
@@ -8641,13 +8645,13 @@ var fd = ["src"], pd = {
|
|
|
8641
8645
|
status: {},
|
|
8642
8646
|
property: {}
|
|
8643
8647
|
}, {
|
|
8644
|
-
collapsed:
|
|
8648
|
+
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
8645
8649
|
collapsedModifiers: {}
|
|
8646
8650
|
}),
|
|
8647
8651
|
emits: ["update:collapsed"],
|
|
8648
8652
|
setup(t) {
|
|
8649
|
-
let n = t, r = z(t, "collapsed"), { stop: i } =
|
|
8650
|
-
var e =
|
|
8653
|
+
let n = t, r = z(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
8654
|
+
var e = X(function* (e) {
|
|
8651
8655
|
e && (r.value = !0, yield x(), i == null || i());
|
|
8652
8656
|
});
|
|
8653
8657
|
return function(t) {
|
|
@@ -8655,11 +8659,11 @@ var fd = ["src"], pd = {
|
|
|
8655
8659
|
};
|
|
8656
8660
|
}(), { immediate: !0 }), u = a(() => {
|
|
8657
8661
|
switch (n.status) {
|
|
8658
|
-
case
|
|
8659
|
-
case
|
|
8660
|
-
case
|
|
8661
|
-
case
|
|
8662
|
-
default: return
|
|
8662
|
+
case K.Pending: return q("思考中");
|
|
8663
|
+
case K.Success:
|
|
8664
|
+
case K.Complete: return q("已思考完成") + (n.duration ? ` (${q("耗时")} :${pt(n.duration)})` : "");
|
|
8665
|
+
case K.Error: return q("思考失败");
|
|
8666
|
+
default: return q("思考中");
|
|
8663
8667
|
}
|
|
8664
8668
|
});
|
|
8665
8669
|
return (n, i) => {
|
|
@@ -8667,16 +8671,16 @@ var fd = ["src"], pd = {
|
|
|
8667
8671
|
return k(), c("div", Vp, [l("div", {
|
|
8668
8672
|
class: S(["ai-reasoning-message-title", {
|
|
8669
8673
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
8670
|
-
"is-thinking": t.status === R(
|
|
8671
|
-
"is-complete": t.status === R(
|
|
8672
|
-
"is-error": t.status === R(
|
|
8674
|
+
"is-thinking": t.status === R(K).Pending || t.status === R(K).Streaming,
|
|
8675
|
+
"is-complete": t.status === R(K).Complete || t.status === R(K).Success,
|
|
8676
|
+
"is-error": t.status === R(K).Error
|
|
8673
8677
|
}]),
|
|
8674
8678
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
8675
8679
|
}, [
|
|
8676
|
-
t.status === R(
|
|
8680
|
+
t.status === R(K).Pending || t.status === R(K).Streaming ? (k(), c("span", Hp, [f(vf)])) : s("", !0),
|
|
8677
8681
|
l("span", Up, I(u.value), 1),
|
|
8678
|
-
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(
|
|
8679
|
-
], 2),
|
|
8682
|
+
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(_n))], 2)
|
|
8683
|
+
], 2), U(l("div", Wp, [t.status === R(K).Error ? (k(), o(xu, {
|
|
8680
8684
|
key: 0,
|
|
8681
8685
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
8682
8686
|
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, M(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(Bu, {
|
|
@@ -8695,7 +8699,7 @@ var fd = ["src"], pd = {
|
|
|
8695
8699
|
title: {}
|
|
8696
8700
|
},
|
|
8697
8701
|
setup(t) {
|
|
8698
|
-
return (n, r) => (k(), c("div", Kp, [t.title ? (k(), c("div", qp, [f(R(
|
|
8702
|
+
return (n, r) => (k(), c("div", Kp, [t.title ? (k(), c("div", qp, [f(R(gn)), d(" " + I(t.title), 1)])) : s("", !0), l("div", Jp, [(k(!0), c(e, null, M(t.content, (e) => (k(), c("div", {
|
|
8699
8703
|
key: e.key,
|
|
8700
8704
|
class: "key-value-item"
|
|
8701
8705
|
}, [
|
|
@@ -8727,7 +8731,7 @@ var fd = ["src"], pd = {
|
|
|
8727
8731
|
onShortcutConfirm: { type: Function }
|
|
8728
8732
|
},
|
|
8729
8733
|
setup(t) {
|
|
8730
|
-
let n = t, r = Qi(), { copy: i } =
|
|
8734
|
+
let n = t, r = Qi(), { copy: i } = or(), u = F(!1), p = F(""), m = B("chatInputRef"), h = a(() => {
|
|
8731
8735
|
var e;
|
|
8732
8736
|
let t = (e = n.property) == null || (e = e.extra) == null ? void 0 : e.cite;
|
|
8733
8737
|
if (!(!t || typeof t == "string")) return t.title;
|
|
@@ -8762,18 +8766,18 @@ var fd = ["src"], pd = {
|
|
|
8762
8766
|
return null;
|
|
8763
8767
|
}), v = (e) => {
|
|
8764
8768
|
var t;
|
|
8765
|
-
return !!e.url ||
|
|
8769
|
+
return !!e.url || Ie(e.mimeType || ((t = e.file) == null ? void 0 : t.type));
|
|
8766
8770
|
}, y = a(() => {
|
|
8767
8771
|
var e;
|
|
8768
|
-
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type ===
|
|
8772
|
+
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type === W.Binary) : [];
|
|
8769
8773
|
}), x = a(() => y.value.filter((e) => v(e))), S = a(() => y.value.filter((e) => !v(e))), C = a(() => {
|
|
8770
8774
|
var e;
|
|
8771
8775
|
return n.content ? typeof n.content == "string" ? n.content : (e = n.content) == null ? void 0 : e.filter((e) => {
|
|
8772
8776
|
var t;
|
|
8773
|
-
return e.type ===
|
|
8777
|
+
return e.type === W.Text && !!((t = e.text) != null && t.trim());
|
|
8774
8778
|
}) : "";
|
|
8775
8779
|
}), w = function() {
|
|
8776
|
-
var e =
|
|
8780
|
+
var e = X(function* (e) {
|
|
8777
8781
|
var t;
|
|
8778
8782
|
if (e.id === "edit") {
|
|
8779
8783
|
if (typeof n.content == "string" && (p.value = n.content, u.value = !0), typeof C.value == "string" && (p.value = C.value, u.value = !0), Array.isArray(C.value)) {
|
|
@@ -8788,7 +8792,7 @@ var fd = ["src"], pd = {
|
|
|
8788
8792
|
return e.apply(this, arguments);
|
|
8789
8793
|
};
|
|
8790
8794
|
}(), T = function() {
|
|
8791
|
-
var e =
|
|
8795
|
+
var e = X(function* () {
|
|
8792
8796
|
var e, t;
|
|
8793
8797
|
yield (e = m.value) == null || (t = e.triggerSendMessage) == null ? void 0 : t.call(e), u.value = !1;
|
|
8794
8798
|
});
|
|
@@ -8800,7 +8804,7 @@ var fd = ["src"], pd = {
|
|
|
8800
8804
|
}, D = () => {
|
|
8801
8805
|
u.value = !1;
|
|
8802
8806
|
}, O = function() {
|
|
8803
|
-
var e =
|
|
8807
|
+
var e = X(function* (e) {
|
|
8804
8808
|
var t;
|
|
8805
8809
|
(t = n.onShortcutConfirm) == null || t.call(n, e), u.value = !1;
|
|
8806
8810
|
});
|
|
@@ -8808,7 +8812,7 @@ var fd = ["src"], pd = {
|
|
|
8808
8812
|
return e.apply(this, arguments);
|
|
8809
8813
|
};
|
|
8810
8814
|
}(), A = function() {
|
|
8811
|
-
var e =
|
|
8815
|
+
var e = X(function* (e, t) {
|
|
8812
8816
|
var r;
|
|
8813
8817
|
(r = n.onInputConfirm) == null || r.call(n, e, t), u.value = !1;
|
|
8814
8818
|
});
|
|
@@ -8822,7 +8826,7 @@ var fd = ["src"], pd = {
|
|
|
8822
8826
|
key: 0,
|
|
8823
8827
|
class: "ai-user-message-cite",
|
|
8824
8828
|
content: g.value
|
|
8825
|
-
}, null, 8, ["content"])) : s("", !0), u.value ? (k(), c(e, { key: 2 }, [_.value ? (k(), o(
|
|
8829
|
+
}, null, 8, ["content"])) : s("", !0), u.value ? (k(), c(e, { key: 2 }, [_.value ? (k(), o(nr, b({ key: 0 }, _.value, {
|
|
8826
8830
|
class: "user-shortcut-render",
|
|
8827
8831
|
onClose: D,
|
|
8828
8832
|
onSubmit: O
|
|
@@ -8837,18 +8841,18 @@ var fd = ["src"], pd = {
|
|
|
8837
8841
|
"on-send-message": A,
|
|
8838
8842
|
"support-upload": (a = (v = R(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
|
|
8839
8843
|
}, {
|
|
8840
|
-
"send-icon":
|
|
8844
|
+
"send-icon": H(() => [l("div", tm, [f(R(ue), {
|
|
8841
8845
|
size: "small",
|
|
8842
8846
|
onClick: E
|
|
8843
8847
|
}, {
|
|
8844
|
-
default:
|
|
8848
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
8845
8849
|
_: 1
|
|
8846
|
-
}), f(R(
|
|
8850
|
+
}), f(R(ue), {
|
|
8847
8851
|
size: "small",
|
|
8848
8852
|
theme: "primary",
|
|
8849
8853
|
onClick: T
|
|
8850
8854
|
}, {
|
|
8851
|
-
default:
|
|
8855
|
+
default: H(() => [d(I(R(q)("发送")), 1)]),
|
|
8852
8856
|
_: 1
|
|
8853
8857
|
})])]),
|
|
8854
8858
|
_: 1
|
|
@@ -8877,14 +8881,14 @@ var fd = ["src"], pd = {
|
|
|
8877
8881
|
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, M(Array.isArray(C.value) ? C.value : [C.value], (t, n) => (k(), c(e, { key: n }, [typeof t == "string" ? (k(), o(Bu, {
|
|
8878
8882
|
key: 0,
|
|
8879
8883
|
content: t
|
|
8880
|
-
}, null, 8, ["content"])) : t.type === R(
|
|
8884
|
+
}, null, 8, ["content"])) : t.type === R(W).Text ? (k(), o(Bu, {
|
|
8881
8885
|
key: 1,
|
|
8882
8886
|
content: t.text
|
|
8883
8887
|
}, null, 8, ["content"])) : s("", !0)], 64))), 128)) : s("", !0)])) : s("", !0),
|
|
8884
8888
|
t.messageToolsStatus === R(Gi).Hidden ? s("", !0) : (k(), o(df, {
|
|
8885
8889
|
key: 2,
|
|
8886
8890
|
class: "ai-user-message-tools",
|
|
8887
|
-
"message-tools": R(
|
|
8891
|
+
"message-tools": R(Ct),
|
|
8888
8892
|
"message-tools-status": t.messageToolsStatus,
|
|
8889
8893
|
"on-action": w,
|
|
8890
8894
|
"tippy-options": t.tippyOptions,
|
|
@@ -8910,25 +8914,25 @@ var fd = ["src"], pd = {
|
|
|
8910
8914
|
setup(e) {
|
|
8911
8915
|
let t = e, n = re(), r = a(() => {
|
|
8912
8916
|
switch (t.message.role) {
|
|
8913
|
-
case
|
|
8917
|
+
case G.User: return g(nm, Y(Y({}, t.message), {}, {
|
|
8914
8918
|
onAction: t.onAction,
|
|
8915
8919
|
onInputConfirm: t.onInputConfirm,
|
|
8916
8920
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
8917
8921
|
messageToolsStatus: t.messageToolsStatus,
|
|
8918
8922
|
tippyOptions: t.tippyOptions
|
|
8919
8923
|
}));
|
|
8920
|
-
case
|
|
8924
|
+
case G.Assistant: return g(Ip, t.message, { default: (e) => N(n, "default", e, () => [g(Uu, {
|
|
8921
8925
|
content: t.message.content || "",
|
|
8922
8926
|
status: t.message.status
|
|
8923
8927
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
8924
8928
|
var t;
|
|
8925
8929
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
8926
8930
|
} } : void 0)]) });
|
|
8927
|
-
case
|
|
8928
|
-
case
|
|
8929
|
-
case
|
|
8930
|
-
case
|
|
8931
|
-
case
|
|
8931
|
+
case G.Info: return g(Rp, t.message);
|
|
8932
|
+
case G.Reasoning: return g(Gp, t.message);
|
|
8933
|
+
case G.Tool: return g(Dp, t.message);
|
|
8934
|
+
case G.Activity: return g(yp, t.message);
|
|
8935
|
+
case G.Loading: return g(Bp, t.message);
|
|
8932
8936
|
default: return null;
|
|
8933
8937
|
}
|
|
8934
8938
|
});
|
|
@@ -8961,7 +8965,7 @@ var fd = ["src"], pd = {
|
|
|
8961
8965
|
}),
|
|
8962
8966
|
emits: /* @__PURE__ */ y(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
8963
8967
|
setup(t) {
|
|
8964
|
-
let n = t, r = z(t, "selectedUserMessages"), i = B("messageContainerRef"), a = B("messageContainerBottomRef"), { toScrollBottom: u, debouncedShowScrollBottomBtn: d } =
|
|
8968
|
+
let n = t, r = z(t, "selectedUserMessages"), i = B("messageContainerRef"), a = B("messageContainerBottomRef"), { toScrollBottom: u, debouncedShowScrollBottomBtn: d } = ur(i, a), { copy: p } = or(), m = (e) => {
|
|
8965
8969
|
e.isHover = !0;
|
|
8966
8970
|
}, h = (e, t) => {
|
|
8967
8971
|
var n;
|
|
@@ -8969,7 +8973,7 @@ var fd = ["src"], pd = {
|
|
|
8969
8973
|
r instanceof Element && r.classList.contains("ai-user-feedback") || (e.isHover = !1);
|
|
8970
8974
|
}, g = (e, t) => {
|
|
8971
8975
|
var i, a;
|
|
8972
|
-
let o = e.type ===
|
|
8976
|
+
let o = e.type === G.User;
|
|
8973
8977
|
(i = n.messageGroups) == null || i.forEach((r, i) => {
|
|
8974
8978
|
if (r === e) {
|
|
8975
8979
|
r.checked = t;
|
|
@@ -8978,15 +8982,15 @@ var fd = ["src"], pd = {
|
|
|
8978
8982
|
}
|
|
8979
8983
|
}), r.value = (a = n.messageGroups) == null ? void 0 : a.filter((e) => e.checked).map((e) => e.messages).flat();
|
|
8980
8984
|
}, _ = function() {
|
|
8981
|
-
var e =
|
|
8985
|
+
var e = X(function* (e, t) {
|
|
8982
8986
|
var r;
|
|
8983
|
-
return e.id === "copy" && p(t.filter((e) => e.role !==
|
|
8987
|
+
return e.id === "copy" && p(t.filter((e) => e.role !== G.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), (r = n.onAgentAction) == null ? void 0 : r.call(n, e, t);
|
|
8984
8988
|
});
|
|
8985
8989
|
return function(t, n) {
|
|
8986
8990
|
return e.apply(this, arguments);
|
|
8987
8991
|
};
|
|
8988
8992
|
}(), v = function() {
|
|
8989
|
-
var e =
|
|
8993
|
+
var e = X(function* (e, t) {
|
|
8990
8994
|
var r;
|
|
8991
8995
|
(r = n.onUserAction) == null || r.call(n, e, t);
|
|
8992
8996
|
});
|
|
@@ -8994,7 +8998,7 @@ var fd = ["src"], pd = {
|
|
|
8994
8998
|
return e.apply(this, arguments);
|
|
8995
8999
|
};
|
|
8996
9000
|
}(), y = function() {
|
|
8997
|
-
var e =
|
|
9001
|
+
var e = X(function* (e, t, r) {
|
|
8998
9002
|
var i;
|
|
8999
9003
|
(i = n.onUserInputConfirm) == null || i.call(n, e, t, r);
|
|
9000
9004
|
});
|
|
@@ -9002,7 +9006,7 @@ var fd = ["src"], pd = {
|
|
|
9002
9006
|
return e.apply(this, arguments);
|
|
9003
9007
|
};
|
|
9004
9008
|
}(), x = function() {
|
|
9005
|
-
var e =
|
|
9009
|
+
var e = X(function* (e, t) {
|
|
9006
9010
|
var r;
|
|
9007
9011
|
(r = n.onUserShortcutConfirm) == null || r.call(n, e, t);
|
|
9008
9012
|
});
|
|
@@ -9022,14 +9026,14 @@ var fd = ["src"], pd = {
|
|
|
9022
9026
|
style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
|
|
9023
9027
|
onMouseenter: (e) => m(i),
|
|
9024
9028
|
onMouseleave: (e) => h(i, e)
|
|
9025
|
-
}, [t.enableSelection && i.type !== R(
|
|
9029
|
+
}, [t.enableSelection && i.type !== R(G).Loading ? (k(), o(R(de), {
|
|
9026
9030
|
key: 0,
|
|
9027
9031
|
class: "message-group-checkbox",
|
|
9028
9032
|
"model-value": i.checked,
|
|
9029
9033
|
"onUpdate:modelValue": (e) => g(i, e)
|
|
9030
9034
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : s("", !0), l("div", {
|
|
9031
|
-
class: S(["message-group-messages", { "message-group-enabled-selection": t.enableSelection && i.type !== R(
|
|
9032
|
-
style: w({ width: t.enableSelection && i.type !== R(
|
|
9035
|
+
class: S(["message-group-messages", { "message-group-enabled-selection": t.enableSelection && i.type !== R(G).Loading }]),
|
|
9036
|
+
style: w({ width: t.enableSelection && i.type !== R(G).Loading ? "calc(100% - 16px)" : "100%" })
|
|
9033
9037
|
}, [(k(!0), c(e, null, M(i.messages, (e, n) => N(r.$slots, "default", b({
|
|
9034
9038
|
key: n,
|
|
9035
9039
|
ref_for: !0
|
|
@@ -9051,7 +9055,7 @@ var fd = ["src"], pd = {
|
|
|
9051
9055
|
"on-input-confirm",
|
|
9052
9056
|
"on-shortcut-confirm",
|
|
9053
9057
|
"tippy-options"
|
|
9054
|
-
]))])), 128)), !(t.enableSelection && i.type !== R(
|
|
9058
|
+
]))])), 128)), !(t.enableSelection && i.type !== R(G).Loading) && !i.pause && i.type === R(G).Assistant && t.messageToolsStatus !== R(Gi).Hidden ? (k(), o(df, {
|
|
9055
9059
|
key: 0,
|
|
9056
9060
|
"message-tools-status": t.messageToolsStatus,
|
|
9057
9061
|
"on-action": (e) => _(e, i.messages),
|
|
@@ -9074,18 +9078,18 @@ var fd = ["src"], pd = {
|
|
|
9074
9078
|
class: "message-container-bottom",
|
|
9075
9079
|
tabindex: "0"
|
|
9076
9080
|
}, null, 512),
|
|
9077
|
-
l("div", am, [
|
|
9078
|
-
loading: t.messageStatus === R(
|
|
9079
|
-
title: t.messageStatus === R(
|
|
9081
|
+
l("div", am, [U(f(Jd, {
|
|
9082
|
+
loading: t.messageStatus === R(K).StopLoading,
|
|
9083
|
+
title: t.messageStatus === R(K).StopLoading ? R(q)("正在停止") : R(q)("停止生成"),
|
|
9080
9084
|
onClick: p[0] || (p[0] = (e) => r.$emit("stopStreaming"))
|
|
9081
9085
|
}, {
|
|
9082
|
-
icon:
|
|
9086
|
+
icon: H(() => [f(R(un))]),
|
|
9083
9087
|
_: 1
|
|
9084
|
-
}, 8, ["loading", "title"]), [[ie, t.messageStatus === R(
|
|
9085
|
-
title: R(
|
|
9088
|
+
}, 8, ["loading", "title"]), [[ie, t.messageStatus === R(K).Streaming || t.messageStatus === R(K).StopLoading]]), U(f(Jd, {
|
|
9089
|
+
title: R(q)("返回底部"),
|
|
9086
9090
|
onClick: R(u)
|
|
9087
9091
|
}, {
|
|
9088
|
-
icon:
|
|
9092
|
+
icon: H(() => [f(R(bn))]),
|
|
9089
9093
|
_: 1
|
|
9090
9094
|
}, 8, ["title", "onClick"]), [[ie, R(d)]])])
|
|
9091
9095
|
], 512));
|
|
@@ -9110,12 +9114,12 @@ var fd = ["src"], pd = {
|
|
|
9110
9114
|
}, h = () => {
|
|
9111
9115
|
a.value = "", r("updateKeyword", "");
|
|
9112
9116
|
};
|
|
9113
|
-
return (n, g) => (k(), c("div", sm, [l("div", cm, [f(R(
|
|
9117
|
+
return (n, g) => (k(), c("div", sm, [l("div", cm, [f(R(me), {
|
|
9114
9118
|
modelValue: R(a),
|
|
9115
9119
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
9116
9120
|
class: "execution-summary-header-input",
|
|
9117
9121
|
clearable: "",
|
|
9118
|
-
placeholder: R(
|
|
9122
|
+
placeholder: R(q)("搜索 关键字")
|
|
9119
9123
|
}, null, 8, ["modelValue", "placeholder"])]), l("div", lm, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, M(t.messageGroups, (n, r) => (k(), c("div", {
|
|
9120
9124
|
key: n.uuid,
|
|
9121
9125
|
class: "execution-summary-content-item",
|
|
@@ -9124,14 +9128,14 @@ var fd = ["src"], pd = {
|
|
|
9124
9128
|
}, [
|
|
9125
9129
|
l("div", dm, [
|
|
9126
9130
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
9127
|
-
|
|
9128
|
-
|
|
9131
|
+
U((k(), c("span", fm, [d(I(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(ha), Y({}, R(i))]]),
|
|
9132
|
+
U(f(R(ue), {
|
|
9129
9133
|
class: "content-item-locate",
|
|
9130
9134
|
text: "",
|
|
9131
9135
|
theme: "primary",
|
|
9132
9136
|
onClick: (e) => m(n)
|
|
9133
9137
|
}, {
|
|
9134
|
-
default:
|
|
9138
|
+
default: H(() => [d(I(R(q)("在对话中定位")), 1)]),
|
|
9135
9139
|
_: 1
|
|
9136
9140
|
}, 8, ["onClick"]), [[ie, u.value === n.uuid]])
|
|
9137
9141
|
]),
|
|
@@ -9140,13 +9144,13 @@ var fd = ["src"], pd = {
|
|
|
9140
9144
|
message: e
|
|
9141
9145
|
}, null, 8, ["message"]))), 128))]),
|
|
9142
9146
|
r < t.messageGroups.length - 1 ? (k(), c("div", mm)) : s("", !0)
|
|
9143
|
-
], 40, um))), 128)) : (k(), c("div", hm, [f(R(
|
|
9147
|
+
], 40, um))), 128)) : (k(), c("div", hm, [f(R(fe), { type: "empty" }), l("div", gm, [d(I(R(a) ? R(q)("搜索结果为空") : R(q)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(ue), {
|
|
9144
9148
|
key: 0,
|
|
9145
9149
|
text: "",
|
|
9146
9150
|
theme: "primary",
|
|
9147
9151
|
onClick: h
|
|
9148
9152
|
}, {
|
|
9149
|
-
default:
|
|
9153
|
+
default: H(() => [d(I(R(q)("清空搜索")), 1)]),
|
|
9150
9154
|
_: 1
|
|
9151
9155
|
})) : s("", !0)])]))])]));
|
|
9152
9156
|
}
|
|
@@ -9157,7 +9161,7 @@ var fd = ["src"], pd = {
|
|
|
9157
9161
|
key: 1,
|
|
9158
9162
|
"aria-live": "polite",
|
|
9159
9163
|
class: "ai-message-loading-text"
|
|
9160
|
-
}, Cm = /* @__PURE__ */ m(
|
|
9164
|
+
}, Cm = /* @__PURE__ */ m(Y(Y({}, {
|
|
9161
9165
|
name: "MessageLoading",
|
|
9162
9166
|
inheritAttrs: !1
|
|
9163
9167
|
}), {}, {
|
|
@@ -9172,7 +9176,7 @@ var fd = ["src"], pd = {
|
|
|
9172
9176
|
setup(t) {
|
|
9173
9177
|
let n = t, r = te(), i = a(() => {
|
|
9174
9178
|
let { class: e, style: t } = r;
|
|
9175
|
-
return
|
|
9179
|
+
return Jn(r, vm);
|
|
9176
9180
|
}), o = a(() => ({
|
|
9177
9181
|
display: "block",
|
|
9178
9182
|
width: `${n.iconSize}px`,
|
|
@@ -9183,12 +9187,12 @@ var fd = ["src"], pd = {
|
|
|
9183
9187
|
"--ai-message-loading-stagger": `${n.stagger}s`,
|
|
9184
9188
|
"--ai-message-loading-gap": `${n.gap}px`
|
|
9185
9189
|
};
|
|
9186
|
-
return e && typeof e == "object" && !Array.isArray(e) ?
|
|
9190
|
+
return e && typeof e == "object" && !Array.isArray(e) ? Y(Y({}, t), e) : t;
|
|
9187
9191
|
});
|
|
9188
9192
|
return (t, n) => (k(), c("div", b({
|
|
9189
9193
|
class: ["ai-message-loading", R(r).class],
|
|
9190
9194
|
style: u.value
|
|
9191
|
-
}, i.value), [l("div", ym, [l("span", bm, [N(t.$slots, "icon", {}, () => [f(R(
|
|
9195
|
+
}, i.value), [l("div", ym, [l("span", bm, [N(t.$slots, "icon", {}, () => [f(R(It), {
|
|
9192
9196
|
class: "ai-message-loading-icon-svg",
|
|
9193
9197
|
style: w(o.value)
|
|
9194
9198
|
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span", xm, [N(t.$slots, "text")])) : (k(), c("span", Sm, [(k(!0), c(e, null, M(s.value, (e, t) => (k(), c("span", {
|
|
@@ -9211,22 +9215,22 @@ var fd = ["src"], pd = {
|
|
|
9211
9215
|
],
|
|
9212
9216
|
setup(e, { emit: t }) {
|
|
9213
9217
|
let n = t;
|
|
9214
|
-
return (t, r) => (k(), c("div", wm, [l("div", Tm, [f(R(
|
|
9218
|
+
return (t, r) => (k(), c("div", wm, [l("div", Tm, [f(R(de), {
|
|
9215
9219
|
"model-value": e.isAllSelected,
|
|
9216
9220
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
9217
|
-
}, null, 8, ["model-value"]), l("span", Em, I(R(
|
|
9221
|
+
}, null, 8, ["model-value"]), l("span", Em, I(R(q)("全选")), 1)]), l("div", Dm, [f(R(ue), {
|
|
9218
9222
|
disabled: e.loading,
|
|
9219
9223
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
9220
9224
|
}, {
|
|
9221
|
-
default:
|
|
9225
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
9222
9226
|
_: 1
|
|
9223
|
-
}, 8, ["disabled"]), f(R(
|
|
9227
|
+
}, 8, ["disabled"]), f(R(ue), {
|
|
9224
9228
|
disabled: e.selectedCount === 0,
|
|
9225
9229
|
loading: e.loading,
|
|
9226
9230
|
theme: "primary",
|
|
9227
9231
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
9228
9232
|
}, {
|
|
9229
|
-
default:
|
|
9233
|
+
default: H(() => [d(I(R(q)("确定")), 1)]),
|
|
9230
9234
|
_: 1
|
|
9231
9235
|
}, 8, ["disabled", "loading"])])]));
|
|
9232
9236
|
}
|
|
@@ -9293,7 +9297,7 @@ var fd = ["src"], pd = {
|
|
|
9293
9297
|
], ["update:selectedShortcut", "update:cite"]),
|
|
9294
9298
|
setup(t, { expose: n, emit: r }) {
|
|
9295
9299
|
ne((e) => ({ v2fbb68ba: B.value }));
|
|
9296
|
-
let i =
|
|
9300
|
+
let i = xe.TabPanel, u = t, p = a(() => Y(Y({
|
|
9297
9301
|
collapsible: !1,
|
|
9298
9302
|
immediate: !0,
|
|
9299
9303
|
min: 400
|
|
@@ -9307,16 +9311,16 @@ var fd = ["src"], pd = {
|
|
|
9307
9311
|
var e;
|
|
9308
9312
|
return (e = u.commonTippyOptions) == null ? {} : e;
|
|
9309
9313
|
}) });
|
|
9310
|
-
let { tabs: y, selectedTab: w, isCollapse: T, addCustomTab: E, removeCustomTab: D, selectCustomTab: A, resetCustomTab:
|
|
9311
|
-
var e =
|
|
9314
|
+
let { tabs: y, selectedTab: w, isCollapse: T, addCustomTab: E, removeCustomTab: D, selectCustomTab: A, resetCustomTab: j } = Ji({ onTabChange: function() {
|
|
9315
|
+
var e = X(function* (e) {
|
|
9312
9316
|
var t, n;
|
|
9313
9317
|
let r = ((t = w.value.data) == null ? void 0 : t.props) || {
|
|
9314
9318
|
loading: !0,
|
|
9315
9319
|
data: {}
|
|
9316
9320
|
};
|
|
9317
|
-
w.value.data =
|
|
9321
|
+
w.value.data = Y(Y({}, w.value.data), {}, { props: r });
|
|
9318
9322
|
let i = yield (n = u.onCustomTabChange) == null ? void 0 : n.call(u, e);
|
|
9319
|
-
w.value.data =
|
|
9323
|
+
w.value.data = Y(Y({}, w.value.data), {}, { props: Y(Y({}, r), {}, {
|
|
9320
9324
|
loading: !1,
|
|
9321
9325
|
data: i
|
|
9322
9326
|
}) });
|
|
@@ -9324,38 +9328,38 @@ var fd = ["src"], pd = {
|
|
|
9324
9328
|
return function(t) {
|
|
9325
9329
|
return e.apply(this, arguments);
|
|
9326
9330
|
};
|
|
9327
|
-
}() }), L = F(""), te =
|
|
9331
|
+
}() }), L = F(""), te = ee([]), re = F(400), B = a(() => `calc(100% - ${re.value}px)`), { messageGroups: ie, executionGroups: ae, isShareMode: oe, isAllSelected: se, onToggleShareAll: ce, onCancelShare: le, onConfirmShare: ue } = ia({
|
|
9328
9332
|
keyword: L,
|
|
9329
9333
|
messages: a(() => u.messages),
|
|
9330
9334
|
selectedUserMessages: te
|
|
9331
|
-
}),
|
|
9335
|
+
}), de = () => {
|
|
9332
9336
|
m.value = null, v("shortcutClose");
|
|
9333
|
-
},
|
|
9337
|
+
}, fe = (e) => {
|
|
9334
9338
|
v("shortcutSubmit", e);
|
|
9335
|
-
},
|
|
9339
|
+
}, pe = () => {
|
|
9336
9340
|
v("deleteShortcut");
|
|
9337
|
-
},
|
|
9341
|
+
}, me = (e) => {
|
|
9338
9342
|
v("selectShortcut", e);
|
|
9339
|
-
},
|
|
9343
|
+
}, he = (e, t) => {
|
|
9340
9344
|
v("update:modelValue", e, t);
|
|
9341
9345
|
};
|
|
9342
|
-
|
|
9346
|
+
V(T, (e) => {
|
|
9343
9347
|
e && (L.value = "", re.value = 0), v("collapseChange", e, re.value);
|
|
9344
9348
|
});
|
|
9345
|
-
let
|
|
9349
|
+
let ge = () => {
|
|
9346
9350
|
T.value = !T.value;
|
|
9347
|
-
},
|
|
9351
|
+
}, _e = (e) => {
|
|
9348
9352
|
let t = document.getElementById(e);
|
|
9349
9353
|
t && t.scrollIntoView({ behavior: "smooth" });
|
|
9350
|
-
},
|
|
9354
|
+
}, ye = (e) => {
|
|
9351
9355
|
A(y.value.find((t) => t.name === e));
|
|
9352
|
-
},
|
|
9356
|
+
}, be = (e) => {
|
|
9353
9357
|
L.value = e;
|
|
9354
|
-
},
|
|
9355
|
-
var e =
|
|
9358
|
+
}, Se = function() {
|
|
9359
|
+
var e = X(function* (e, t) {
|
|
9356
9360
|
var n;
|
|
9357
9361
|
if (e.id === "share") {
|
|
9358
|
-
|
|
9362
|
+
oe.value = !0;
|
|
9359
9363
|
return;
|
|
9360
9364
|
}
|
|
9361
9365
|
return (n = u.onAgentAction) == null ? void 0 : n.call(u, e, t);
|
|
@@ -9363,43 +9367,43 @@ var fd = ["src"], pd = {
|
|
|
9363
9367
|
return function(t, n) {
|
|
9364
9368
|
return e.apply(this, arguments);
|
|
9365
9369
|
};
|
|
9366
|
-
}(),
|
|
9367
|
-
v("confirmShare",
|
|
9368
|
-
|
|
9370
|
+
}(), Ce = () => {
|
|
9371
|
+
v("confirmShare", ue()), x(() => {
|
|
9372
|
+
oe.value = !1, te.value = [];
|
|
9369
9373
|
});
|
|
9370
|
-
},
|
|
9374
|
+
}, we = (e) => {
|
|
9371
9375
|
re.value = e;
|
|
9372
9376
|
};
|
|
9373
9377
|
return O(() => {
|
|
9374
|
-
|
|
9378
|
+
j();
|
|
9375
9379
|
}), n({
|
|
9376
9380
|
selectedTab: w,
|
|
9377
9381
|
addCustomTab: E,
|
|
9378
9382
|
removeCustomTab: D,
|
|
9379
9383
|
selectCustomTab: A,
|
|
9380
9384
|
enterShareMode: () => {
|
|
9381
|
-
|
|
9385
|
+
oe.value = !0;
|
|
9382
9386
|
},
|
|
9383
9387
|
exitShareMode: () => {
|
|
9384
|
-
|
|
9388
|
+
le();
|
|
9385
9389
|
}
|
|
9386
9390
|
}), (n, r) => {
|
|
9387
9391
|
var a;
|
|
9388
|
-
return k(), c("div", km, [t.chatLoading ? (k(), c("div", Am, [f(Cm)])) : (k(), o(R(
|
|
9392
|
+
return k(), c("div", km, [t.chatLoading ? (k(), c("div", Am, [f(Cm)])) : (k(), o(R(ve), b({
|
|
9389
9393
|
key: 1,
|
|
9390
9394
|
class: ["ai-chat-container-resize-layout", { "ai-is-collapse": R(T) || ((a = t.messages) == null ? void 0 : a.length) < 1 }]
|
|
9391
|
-
}, p.value, { onResizing:
|
|
9392
|
-
aside:
|
|
9395
|
+
}, p.value, { onResizing: we }), {
|
|
9396
|
+
aside: H(() => {
|
|
9393
9397
|
var n, r, a, l, u;
|
|
9394
9398
|
return [!R(T) && (n = t.messages) != null && n.length ? (k(), c(e, { key: 0 }, [
|
|
9395
|
-
f(R(
|
|
9399
|
+
f(R(xe), {
|
|
9396
9400
|
active: R(w).name,
|
|
9397
9401
|
class: "ai-chat-container-tab",
|
|
9398
9402
|
"label-height": 40,
|
|
9399
9403
|
type: "unborder-card",
|
|
9400
|
-
onChange:
|
|
9404
|
+
onChange: ye
|
|
9401
9405
|
}, {
|
|
9402
|
-
default:
|
|
9406
|
+
default: H(() => [(k(!0), c(e, null, M(R(y), (e) => (k(), o(R(i), {
|
|
9403
9407
|
key: e.name,
|
|
9404
9408
|
label: () => {
|
|
9405
9409
|
var n, r;
|
|
@@ -9412,9 +9416,9 @@ var fd = ["src"], pd = {
|
|
|
9412
9416
|
}
|
|
9413
9417
|
}
|
|
9414
9418
|
}, [
|
|
9415
|
-
g(e.name === R("execution") ? R(
|
|
9416
|
-
|
|
9417
|
-
e.name === R("execution") ? null : g(R(
|
|
9419
|
+
g(e.name === R("execution") ? R(Yt) : R(Zt), { class: "ai-execution-summary-icon" }),
|
|
9420
|
+
U(g("span", { class: "ai-execution-summary-label-text" }, (n = e.label) == null ? "" : n), [[R(ha), Y(Y({}, t.commonTippyOptions), {}, { text: (r = e.label) == null ? "" : r })]]),
|
|
9421
|
+
e.name === R("execution") ? null : g(R(xn), {
|
|
9418
9422
|
class: "ai-execution-close-icon",
|
|
9419
9423
|
onClick: () => {
|
|
9420
9424
|
R(D)(e.name);
|
|
@@ -9428,19 +9432,19 @@ var fd = ["src"], pd = {
|
|
|
9428
9432
|
}, 8, ["active"]),
|
|
9429
9433
|
((r = R(w)) == null ? void 0 : r.name) === R("execution") ? (k(), c(e, { key: 0 }, [R(T) ? s("", !0) : (k(), o(_m, {
|
|
9430
9434
|
key: 0,
|
|
9431
|
-
"message-groups": R(
|
|
9435
|
+
"message-groups": R(ae),
|
|
9432
9436
|
style: { height: "calc(100% - 40px)" },
|
|
9433
|
-
onLocateMessageGroup:
|
|
9434
|
-
onUpdateKeyword:
|
|
9437
|
+
onLocateMessageGroup: _e,
|
|
9438
|
+
onUpdateKeyword: be
|
|
9435
9439
|
}, null, 8, ["message-groups"]))], 64)) : s("", !0),
|
|
9436
9440
|
R(w) ? (k(), c("div", jm, [(k(), o(P((a = R(w)) == null || (a = a.data) == null ? void 0 : a.component), b({ key: R(w).name }, (l = R(w)) == null || (l = l.data) == null ? void 0 : l.props), null, 16))])) : s("", !0)
|
|
9437
|
-
], 64)) : s("", !0), (u = R(
|
|
9441
|
+
], 64)) : s("", !0), (u = R(ae)) != null && u.length ? (k(), c("div", {
|
|
9438
9442
|
key: 1,
|
|
9439
9443
|
class: S(["collapse-button", { "is-right": t.placement === "right" }]),
|
|
9440
|
-
onClick:
|
|
9441
|
-
}, [f(R(
|
|
9444
|
+
onClick: ge
|
|
9445
|
+
}, [f(R(Yt)), d(" " + I(R(q)("执行情况")), 1)], 2)) : s("", !0)];
|
|
9442
9446
|
}),
|
|
9443
|
-
main:
|
|
9447
|
+
main: H(() => {
|
|
9444
9448
|
var e, i, a;
|
|
9445
9449
|
return [(e = t.messages) != null && e.length ? N(n.$slots, "default", C(b({ key: 0 }, {
|
|
9446
9450
|
messages: t.messages,
|
|
@@ -9448,9 +9452,9 @@ var fd = ["src"], pd = {
|
|
|
9448
9452
|
messageGroups: R(ie),
|
|
9449
9453
|
selectedUserMessages: te.value,
|
|
9450
9454
|
messageToolsStatus: t.messageToolsStatus,
|
|
9451
|
-
isShareMode: R(
|
|
9455
|
+
isShareMode: R(oe),
|
|
9452
9456
|
commonTippyOptions: t.commonTippyOptions,
|
|
9453
|
-
handleAgentAction:
|
|
9457
|
+
handleAgentAction: Se,
|
|
9454
9458
|
onAgentFeedback: t.onAgentFeedback,
|
|
9455
9459
|
onUserAction: t.onUserAction,
|
|
9456
9460
|
onUserInputConfirm: t.onUserInputConfirm,
|
|
@@ -9461,20 +9465,20 @@ var fd = ["src"], pd = {
|
|
|
9461
9465
|
key: 0,
|
|
9462
9466
|
"selected-user-messages": te.value,
|
|
9463
9467
|
"onUpdate:selectedUserMessages": r[0] || (r[0] = (e) => te.value = e),
|
|
9464
|
-
"enable-selection": R(
|
|
9468
|
+
"enable-selection": R(oe),
|
|
9465
9469
|
"message-groups": R(ie),
|
|
9466
9470
|
"message-status": t.messageStatus,
|
|
9467
9471
|
"message-tools-status": t.messageToolsStatus,
|
|
9468
9472
|
"message-tools-tippy-options": t.commonTippyOptions,
|
|
9469
9473
|
messages: t.messages,
|
|
9470
|
-
"on-agent-action":
|
|
9474
|
+
"on-agent-action": Se,
|
|
9471
9475
|
"on-agent-feedback": t.onAgentFeedback,
|
|
9472
9476
|
"on-user-action": t.onUserAction,
|
|
9473
9477
|
"on-user-input-confirm": t.onUserInputConfirm,
|
|
9474
9478
|
"on-user-shortcut-confirm": t.onUserShortcutConfirm,
|
|
9475
9479
|
onStopStreaming: r[1] || (r[1] = (e) => v("stopStreaming"))
|
|
9476
9480
|
}, {
|
|
9477
|
-
default:
|
|
9481
|
+
default: H(({ message: e, messageToolsStatus: t }) => [N(n.$slots, "message", C(h({
|
|
9478
9482
|
message: e,
|
|
9479
9483
|
messageToolsStatus: t
|
|
9480
9484
|
})))]),
|
|
@@ -9493,25 +9497,25 @@ var fd = ["src"], pd = {
|
|
|
9493
9497
|
"on-user-shortcut-confirm"
|
|
9494
9498
|
])) : s("", !0)];
|
|
9495
9499
|
}) : (k(), c("div", Mm, [N(n.$slots, "welcome", C(h({ openingRemark: t.openingRemark })), () => [
|
|
9496
|
-
f(R(
|
|
9497
|
-
l("h2", Nm, I(R(
|
|
9500
|
+
f(R(Lt)),
|
|
9501
|
+
l("h2", Nm, I(R(q)("你好,我是小鲸")), 1),
|
|
9498
9502
|
t.openingRemark ? (k(), c("div", Pm, [f(Uu, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
9499
|
-
])])), R(
|
|
9503
|
+
])])), R(oe) ? (k(), o(Om, {
|
|
9500
9504
|
key: 2,
|
|
9501
|
-
"is-all-selected": R(
|
|
9505
|
+
"is-all-selected": R(se),
|
|
9502
9506
|
loading: !1,
|
|
9503
9507
|
"selected-count": te.value.length,
|
|
9504
|
-
onCancel: R(
|
|
9505
|
-
onConfirm:
|
|
9506
|
-
onToggleAll: R(
|
|
9508
|
+
onCancel: R(le),
|
|
9509
|
+
onConfirm: Ce,
|
|
9510
|
+
onToggleAll: R(ce)
|
|
9507
9511
|
}, null, 8, [
|
|
9508
9512
|
"is-all-selected",
|
|
9509
9513
|
"selected-count",
|
|
9510
9514
|
"onCancel",
|
|
9511
9515
|
"onToggleAll"
|
|
9512
|
-
])) : !((i = m.value) == null || (i = i.components) == null) && i.length ? (k(), o(
|
|
9513
|
-
onClose:
|
|
9514
|
-
onSubmit:
|
|
9516
|
+
])) : !((i = m.value) == null || (i = i.components) == null) && i.length ? (k(), o(nr, b({ key: 3 }, m.value, {
|
|
9517
|
+
onClose: de,
|
|
9518
|
+
onSubmit: fe
|
|
9515
9519
|
}), null, 16)) : (k(), o(qd, {
|
|
9516
9520
|
key: 4,
|
|
9517
9521
|
cite: _.value,
|
|
@@ -9528,9 +9532,9 @@ var fd = ["src"], pd = {
|
|
|
9528
9532
|
shortcuts: t.shortcuts,
|
|
9529
9533
|
"support-upload": t.supportUpload,
|
|
9530
9534
|
"tippy-options": t.commonTippyOptions,
|
|
9531
|
-
onDeleteShortcut:
|
|
9532
|
-
onSelectShortcut:
|
|
9533
|
-
"onUpdate:modelValue":
|
|
9535
|
+
onDeleteShortcut: pe,
|
|
9536
|
+
onSelectShortcut: me,
|
|
9537
|
+
"onUpdate:modelValue": he
|
|
9534
9538
|
}, null, 8, [
|
|
9535
9539
|
"cite",
|
|
9536
9540
|
"message-status",
|
|
@@ -9551,7 +9555,7 @@ var fd = ["src"], pd = {
|
|
|
9551
9555
|
}, 16, ["class"]))]);
|
|
9552
9556
|
};
|
|
9553
9557
|
}
|
|
9554
|
-
}), Im = { class: "ai-image-preview-group" }, Lm = /* @__PURE__ */ m(
|
|
9558
|
+
}), Im = { class: "ai-image-preview-group" }, Lm = /* @__PURE__ */ m(Y(Y({}, { name: "ImagePreviewGroup" }), {}, {
|
|
9555
9559
|
__name: "image-preview-group",
|
|
9556
9560
|
props: {
|
|
9557
9561
|
maskClosable: {
|
|
@@ -9569,7 +9573,7 @@ var fd = ["src"], pd = {
|
|
|
9569
9573
|
},
|
|
9570
9574
|
setup(e) {
|
|
9571
9575
|
let t = /* @__PURE__ */ new Map(), n = F(!1), r = F([]), i = F(0);
|
|
9572
|
-
return A(
|
|
9576
|
+
return A(mr, {
|
|
9573
9577
|
register: (e, n) => {
|
|
9574
9578
|
t.set(e, n);
|
|
9575
9579
|
},
|
|
@@ -9592,7 +9596,7 @@ var fd = ["src"], pd = {
|
|
|
9592
9596
|
"show-info": e.showInfo
|
|
9593
9597
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9594
9598
|
name: "extra",
|
|
9595
|
-
fn:
|
|
9599
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9596
9600
|
key: "0"
|
|
9597
9601
|
} : void 0]), 1032, [
|
|
9598
9602
|
"current",
|
|
@@ -9606,7 +9610,7 @@ var fd = ["src"], pd = {
|
|
|
9606
9610
|
})), Rm = ["alt", "src"], zm = {
|
|
9607
9611
|
key: 1,
|
|
9608
9612
|
class: "ai-image-error"
|
|
9609
|
-
}, Bm = /* @__PURE__ */ m(
|
|
9613
|
+
}, Bm = /* @__PURE__ */ m(Y(Y({}, { name: "AiImage" }), {}, {
|
|
9610
9614
|
__name: "image",
|
|
9611
9615
|
props: {
|
|
9612
9616
|
alt: { default: "" },
|
|
@@ -9634,7 +9638,7 @@ var fd = ["src"], pd = {
|
|
|
9634
9638
|
"preview"
|
|
9635
9639
|
],
|
|
9636
9640
|
setup(e, { expose: t, emit: n }) {
|
|
9637
|
-
let r = e, i = n, d = Symbol(), p = _(
|
|
9641
|
+
let r = e, i = n, d = Symbol(), p = _(mr, null), m = ee(), h = F("loading"), g = F(!1), v = F(!r.lazy), y = null, b = a(() => {
|
|
9638
9642
|
var e;
|
|
9639
9643
|
return ((e = r.previewProps) == null ? void 0 : e.src) || r.src;
|
|
9640
9644
|
}), x = () => {
|
|
@@ -9656,7 +9660,7 @@ var fd = ["src"], pd = {
|
|
|
9656
9660
|
}), O = a(() => [x()]), A = a(() => {
|
|
9657
9661
|
let e = {};
|
|
9658
9662
|
return r.width && (e.width = typeof r.width == "number" ? `${r.width}px` : r.width), r.height && (e.height = typeof r.height == "number" ? `${r.height}px` : r.height), e;
|
|
9659
|
-
}),
|
|
9663
|
+
}), j = {
|
|
9660
9664
|
width: "100%",
|
|
9661
9665
|
height: "100%",
|
|
9662
9666
|
objectFit: "cover"
|
|
@@ -9695,16 +9699,16 @@ var fd = ["src"], pd = {
|
|
|
9695
9699
|
alt: e.alt,
|
|
9696
9700
|
class: "ai-image-inner",
|
|
9697
9701
|
src: D.value,
|
|
9698
|
-
style:
|
|
9702
|
+
style: j,
|
|
9699
9703
|
onError: P,
|
|
9700
9704
|
onLoad: M
|
|
9701
9705
|
}, null, 40, Rm)) : s("", !0),
|
|
9702
|
-
h.value === "error" ? (k(), c("div", zm, [f(R(
|
|
9706
|
+
h.value === "error" ? (k(), c("div", zm, [f(R(Wt), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
9703
9707
|
h.value === "error" ? (k(), c("div", {
|
|
9704
9708
|
key: 2,
|
|
9705
9709
|
class: "ai-image-error-overlay",
|
|
9706
9710
|
onClick: L
|
|
9707
|
-
}, [f(R(
|
|
9711
|
+
}, [f(R(sn), { class: "ai-image-reload-icon" }), l("span", null, I(R(q)("重新加载")), 1)])) : s("", !0),
|
|
9708
9712
|
N(t.$slots, "default"),
|
|
9709
9713
|
!R(p) && e.preview && g.value ? (k(), o(_d, {
|
|
9710
9714
|
key: 3,
|
|
@@ -9715,7 +9719,7 @@ var fd = ["src"], pd = {
|
|
|
9715
9719
|
"show-info": e.showInfo
|
|
9716
9720
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9717
9721
|
name: "extra",
|
|
9718
|
-
fn:
|
|
9722
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9719
9723
|
key: "0"
|
|
9720
9724
|
} : void 0]), 1032, [
|
|
9721
9725
|
"visible",
|
|
@@ -9727,4 +9731,4 @@ var fd = ["src"], pd = {
|
|
|
9727
9731
|
}
|
|
9728
9732
|
}));
|
|
9729
9733
|
//#endregion
|
|
9730
|
-
export {
|
|
9734
|
+
export { Lt as AIBluekingBannerIcon, It as AIBluekingIcon, Nn as ActiveLikeIcon, Pn as ActiveUnLikeIcon, Cn as AgentIcon, Bm as AiImage, Hn as AiSelection, bn as ArrowDownIcon, an as ArrowLeftIcon, Ht as ArrowRightIcon, on as ArrowRightPreviewIcon, Kt as BkFlowFailedIcon, Jt as BkFlowPendingIcon, Gt as BkFlowSuccessIcon, qt as BkFlowSuspendedIcon, _t as CHAT_Z_INDEX, St as CONST_MESSAGE_TOOLS, wt as CONST_UPDATE_TOOLS, Ct as CONST_USER_MESSAGE_TOOLS, cr as CONTAINER_SCROLL_TOKEN, Ki as CUSTOM_TAB_TOKEN, Fm as ChatContainer, qd as ChatInput, En as CiteIcon, un as CloseCircleIcon, xn as CloseIcon, _n as CollapsedIcon, yn as ContentLoadingIcon, Uu as ContentRender, Tn as CopyIcon, In as DEFAULT_SHORTCUTS, Lr as Delete, fn as DeleteCircleIcon, jn as DeleteIcon, dn as DocLinkIcon, Rt as DocumentIcon, nn as DownloadIcon, yt as EDITOR_MENU_Z_INDEX, vt as EDITOR_Z_INDEX, qi as EXECUTION_TAB_NAME, Mn as EditIcon, vn as ErrorIcon, Yt as ExecutionIcon, _m as ExecutionSummary, pn as FileUploadIcon, tn as FitScreenIcon, Xi as GLOBAL_CONFIG_TOKEN, Dt as HIGHLIGHT_KEYWORD_CLASS_NAME, yf as HighlightKeyword, mr as IMAGE_PREVIEW_GROUP_KEY, cn as ImageBrokenIcon, Wt as ImageErrorIcon, _d as ImagePreview, Lm as ImagePreviewGroup, ln as ImageSizeIcon, Rr as InsertText, kn as LikeIcon, Ut as LinkIcon, hn as LoadingMessageIcon, Tt as MAX_UPLOAD_FILES, Et as MAX_UPLOAD_FILE_SIZE, Ot as MarkdownLanguageMap, om as MessageContainer, W as MessageContentType, Cm as MessageLoading, rm as MessageRender, G as MessageRole, Ui as MessageState, K as MessageStatus, df as MessageTools, Gi as MessageToolsStatus, of as MessageUserFeedback, wn as MoreAgentIcon, Sn as MoreIcon, Xt as NodeOutputIcon, Zt as NodeTabIcon, ha as OverflowTips, rn as PreviewCloseIcon, zt as PreviewIcon, Dn as RebuildIcon, sn as ReloadIcon, Vt as RemoveIcon, zr as ReplaceAll, en as RotateIcon, xt as SELECTION_Z_INDEX, bt as SHORTCUT_MENU_Z_INDEX, lr as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, Om as SelectionFooter, mn as SendMessageIcon, On as ShareIcon, zn as ShortcutBtn, Kn as ShortcutBtns, nr as ShortcutRender, Bt as TargetIcon, gn as ThinkingIcon, Np as ToolCallRender, Fn as ToolIconsMap, An as UnLikeIcon, Wi as UploadStatus, Qt as ZoomInIcon, $t as ZoomOutIcon, J as commonSVGProps, Qe as completeMarkdownSyntax, Li as createEditor, vr as docToString, pt as formatDuration, ze as formatFileSize, mt as generateUUID, ft as getCookieByName, Re as getFileExtension, Le as getFilePreviewUrl, aa as getScrollParent, Qi as injectGlobalConfig, ht as isEn, Ie as isImageFile, gt as lang, Cl as markdownAnimationAttrs, Ol as markdownItLatex, Al as markdownItMermaid, Vr as microtask, Br as min, $e as needsMarkdownCompletion, pr as noop, Ri as plainSchema, et as removeCompletionSuffix, fr as resourceTypeMap, Vi as schema, yr as stringToDoc, q as t, rr as useAnimationText, or as useClipboard, sr as useCommandSelection, dr as useContainerScrollConsumer, ur as useContainerScrollProvider, Yi as useCustomTabConsumer, Ji as useCustomTabProvider, Zi as useGlobalConfig, $i as useMenuKeydown, ia as useMessageGroup, Un as useObserverVisibleList, oa as useParentScrolling, Bi as voidNode };
|