@apform-ui/core 1.10.5 → 1.10.7
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/apform-ui.css +1 -1
- package/dist/apform-ui.js +868 -778
- package/dist/apform-ui.umd.cjs +66 -66
- package/dist/components/Chat/MessageList/MessageList.vue.d.ts +23 -1
- package/dist/components/Chat/PendingAttachmentChip/PendingAttachmentChip.vue.d.ts +12 -0
- package/dist/components/Chat/PendingAttachmentChip/doc.d.ts +3 -0
- package/dist/components/Chat/PendingAttachmentChip/index.d.ts +1 -0
- package/dist/components/Chat/StreamStatusBanner/StreamStatusBanner.vue.d.ts +22 -0
- package/dist/components/Chat/StreamStatusBanner/doc.d.ts +3 -0
- package/dist/components/Chat/StreamStatusBanner/index.d.ts +1 -0
- package/dist/docs/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/docs/index.ts +6 -0
package/dist/apform-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var El = Object.defineProperty;
|
|
2
2
|
var Pl = (I, g, C) => g in I ? El(I, g, { enumerable: !0, configurable: !0, writable: !0, value: C }) : I[g] = C;
|
|
3
3
|
var GI = (I, g, C) => Pl(I, typeof g != "symbol" ? g + "" : g, C);
|
|
4
|
-
import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as
|
|
4
|
+
import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as T, normalizeStyle as dI, withCtx as O, normalizeClass as n, renderSlot as gI, createVNode as II, createTextVNode as CI, toDisplayString as h, unref as $, createCommentVNode as R, shallowRef as QC, onMounted as tg, watch as NI, onUnmounted as mg, h as kI, nextTick as cg, computed as y, Fragment as Q, renderList as q, Teleport as UZ, TransitionGroup as rl, onErrorCaptured as fl, createSlots as vZ, resolveDynamicComponent as OZ, withKeys as UC, withModifiers as UI, resolveDirective as EZ, withDirectives as dg, reactive as PZ, useAttrs as ql, vShow as _l, onBeforeUnmount as rZ, normalizeProps as OA, guardReactiveProps as EA, useSlots as WC, vModelText as vC, vModelSelect as $l, inject as Id, toValue as gd } from "vue";
|
|
5
5
|
import { ElButton as Cd, ElImageViewer as Ad, ElMessageBox as Zd, ElMessage as IC } from "element-plus";
|
|
6
6
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
7
7
|
var ld = /* @__PURE__ */ j({
|
|
@@ -79,7 +79,7 @@ const id = /* @__PURE__ */ j({
|
|
|
79
79
|
}
|
|
80
80
|
return (G, b) => {
|
|
81
81
|
const i = _("el-button"), w = _("el-dialog");
|
|
82
|
-
return m(),
|
|
82
|
+
return m(), T(w, {
|
|
83
83
|
"model-value": I.modelValue,
|
|
84
84
|
width: Z.value ? "100vw" : I.width,
|
|
85
85
|
fullscreen: Z.value,
|
|
@@ -102,7 +102,7 @@ const id = /* @__PURE__ */ j({
|
|
|
102
102
|
Y("div", {
|
|
103
103
|
class: n(G.$style.headerRight)
|
|
104
104
|
}, [
|
|
105
|
-
I.showFullscreenBtn ? (m(),
|
|
105
|
+
I.showFullscreenBtn ? (m(), T(i, {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: n(G.$style.headerBtn),
|
|
108
108
|
icon: Z.value ? $(md) : $(cd),
|
|
@@ -122,10 +122,10 @@ const id = /* @__PURE__ */ j({
|
|
|
122
122
|
Y("div", {
|
|
123
123
|
class: n(G.$style.footer)
|
|
124
124
|
}, [
|
|
125
|
-
|
|
125
|
+
gI(G.$slots, "footer", {}, () => [
|
|
126
126
|
II(i, { onClick: l }, {
|
|
127
127
|
default: O(() => [
|
|
128
|
-
|
|
128
|
+
CI(h(I.cancelText), 1)
|
|
129
129
|
]),
|
|
130
130
|
_: 1
|
|
131
131
|
}),
|
|
@@ -135,7 +135,7 @@ const id = /* @__PURE__ */ j({
|
|
|
135
135
|
onClick: d
|
|
136
136
|
}, {
|
|
137
137
|
default: O(() => [
|
|
138
|
-
|
|
138
|
+
CI(h(I.confirmText), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
}, 8, ["loading"])
|
|
@@ -146,7 +146,7 @@ const id = /* @__PURE__ */ j({
|
|
|
146
146
|
Y("div", {
|
|
147
147
|
class: n(G.$style.body)
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
gI(G.$slots, "default")
|
|
150
150
|
], 2)
|
|
151
151
|
]),
|
|
152
152
|
_: 3
|
|
@@ -167,7 +167,7 @@ const id = /* @__PURE__ */ j({
|
|
|
167
167
|
return C;
|
|
168
168
|
}, Xd = {
|
|
169
169
|
$style: Nd
|
|
170
|
-
}, gA = /* @__PURE__ */ U(id, [["__cssModules", Xd]]), fZ = /^[a-z0-9]+(-[a-z0-9]+)*$/,
|
|
170
|
+
}, gA = /* @__PURE__ */ U(id, [["__cssModules", Xd]]), fZ = /^[a-z0-9]+(-[a-z0-9]+)*$/, BC = (I, g, C, Z = "") => {
|
|
171
171
|
const A = I.split(":");
|
|
172
172
|
if (I.slice(0, 1) === "@") {
|
|
173
173
|
if (A.length < 2 || A.length > 3) return null;
|
|
@@ -223,11 +223,11 @@ const qZ = Object.freeze({
|
|
|
223
223
|
rotate: 0,
|
|
224
224
|
vFlip: !1,
|
|
225
225
|
hFlip: !1
|
|
226
|
-
}),
|
|
226
|
+
}), YC = Object.freeze({
|
|
227
227
|
...qZ,
|
|
228
228
|
...cC
|
|
229
|
-
}),
|
|
230
|
-
...
|
|
229
|
+
}), OC = Object.freeze({
|
|
230
|
+
...YC,
|
|
231
231
|
body: "",
|
|
232
232
|
hidden: !1
|
|
233
233
|
});
|
|
@@ -239,7 +239,7 @@ function hd(I, g) {
|
|
|
239
239
|
}
|
|
240
240
|
function PA(I, g) {
|
|
241
241
|
const C = hd(I, g);
|
|
242
|
-
for (const Z in
|
|
242
|
+
for (const Z in OC) Z in cC ? Z in I && !(Z in C) && (C[Z] = cC[Z]) : Z in g ? C[Z] = g[Z] : Z in I && (C[Z] = I[Z]);
|
|
243
243
|
return C;
|
|
244
244
|
}
|
|
245
245
|
function ad(I, g, C) {
|
|
@@ -269,23 +269,23 @@ const Rd = {
|
|
|
269
269
|
not_found: {},
|
|
270
270
|
...qZ
|
|
271
271
|
};
|
|
272
|
-
function
|
|
272
|
+
function DC(I, g) {
|
|
273
273
|
for (const C in g) if (C in I && typeof I[C] != typeof g[C]) return !1;
|
|
274
274
|
return !0;
|
|
275
275
|
}
|
|
276
276
|
function $Z(I) {
|
|
277
277
|
if (typeof I != "object" || I === null) return null;
|
|
278
278
|
const g = I;
|
|
279
|
-
if (typeof g.prefix != "string" || !I.icons || typeof I.icons != "object" || !
|
|
279
|
+
if (typeof g.prefix != "string" || !I.icons || typeof I.icons != "object" || !DC(I, Rd)) return null;
|
|
280
280
|
const C = g.icons;
|
|
281
281
|
for (const A in C) {
|
|
282
282
|
const d = C[A];
|
|
283
|
-
if (!A || typeof d.body != "string" || !
|
|
283
|
+
if (!A || typeof d.body != "string" || !DC(d, OC)) return null;
|
|
284
284
|
}
|
|
285
285
|
const Z = g.aliases || /* @__PURE__ */ Object.create(null);
|
|
286
286
|
for (const A in Z) {
|
|
287
287
|
const d = Z[A], l = d.parent;
|
|
288
|
-
if (!A || typeof l != "string" || !C[l] && !Z[l] || !
|
|
288
|
+
if (!A || typeof l != "string" || !C[l] && !Z[l] || !DC(d, OC)) return null;
|
|
289
289
|
}
|
|
290
290
|
return g;
|
|
291
291
|
}
|
|
@@ -320,14 +320,14 @@ function gl(I) {
|
|
|
320
320
|
return typeof I == "boolean" && (eg = I), eg;
|
|
321
321
|
}
|
|
322
322
|
function ud(I) {
|
|
323
|
-
const g = typeof I == "string" ?
|
|
323
|
+
const g = typeof I == "string" ? BC(I, !0, eg) : I;
|
|
324
324
|
if (g) {
|
|
325
325
|
const C = ag(g.provider, g.prefix), Z = g.name;
|
|
326
326
|
return C.icons[Z] || (C.missing.has(Z) ? null : void 0);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
function nd(I, g) {
|
|
330
|
-
const C =
|
|
330
|
+
const C = BC(I, !0, eg);
|
|
331
331
|
if (!C) return !1;
|
|
332
332
|
const Z = ag(C.provider, C.prefix);
|
|
333
333
|
return g ? yd(Z, C.name, g) : (Z.missing.add(C.name), !0);
|
|
@@ -395,7 +395,7 @@ function pd(I, g, C) {
|
|
|
395
395
|
const Jd = (I) => I === "unset" || I === "undefined" || I === "none";
|
|
396
396
|
function zd(I, g) {
|
|
397
397
|
const C = {
|
|
398
|
-
...
|
|
398
|
+
...YC,
|
|
399
399
|
...I
|
|
400
400
|
}, Z = {
|
|
401
401
|
...Al,
|
|
@@ -461,12 +461,12 @@ function Ld(I) {
|
|
|
461
461
|
I = I.replace(new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"), "$1" + d + Z + "$3");
|
|
462
462
|
}), I = I.replace(new RegExp(Z, "g"), ""), I;
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const EC = /* @__PURE__ */ Object.create(null);
|
|
465
465
|
function td(I, g) {
|
|
466
|
-
|
|
466
|
+
EC[I] = g;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
468
|
+
function PC(I) {
|
|
469
|
+
return EC[I] || EC[""];
|
|
470
470
|
}
|
|
471
471
|
function CA(I) {
|
|
472
472
|
let g;
|
|
@@ -669,7 +669,7 @@ function qd(I) {
|
|
|
669
669
|
function _d(I, g = !0, C = !1) {
|
|
670
670
|
const Z = [];
|
|
671
671
|
return I.forEach((A) => {
|
|
672
|
-
const d = typeof A == "string" ?
|
|
672
|
+
const d = typeof A == "string" ? BC(A, g, C) : A;
|
|
673
673
|
d && Z.push(d);
|
|
674
674
|
}), Z;
|
|
675
675
|
}
|
|
@@ -685,12 +685,12 @@ function IG(I, g, C, Z) {
|
|
|
685
685
|
const A = I.resources.length, d = I.random ? Math.floor(Math.random() * A) : I.index;
|
|
686
686
|
let l;
|
|
687
687
|
if (I.random) {
|
|
688
|
-
let
|
|
689
|
-
for (l = [];
|
|
690
|
-
const p = Math.floor(Math.random() *
|
|
691
|
-
l.push(
|
|
688
|
+
let u = I.resources.slice(0);
|
|
689
|
+
for (l = []; u.length > 1; ) {
|
|
690
|
+
const p = Math.floor(Math.random() * u.length);
|
|
691
|
+
l.push(u[p]), u = u.slice(0, p).concat(u.slice(p + 1));
|
|
692
692
|
}
|
|
693
|
-
l = l.concat(
|
|
693
|
+
l = l.concat(u);
|
|
694
694
|
} else l = I.resources.slice(d).concat(I.resources.slice(0, d));
|
|
695
695
|
const c = Date.now();
|
|
696
696
|
let G = "pending", b = 0, i, w = null, s = [], a = [];
|
|
@@ -699,12 +699,12 @@ function IG(I, g, C, Z) {
|
|
|
699
699
|
w && (clearTimeout(w), w = null);
|
|
700
700
|
}
|
|
701
701
|
function X() {
|
|
702
|
-
G === "pending" && (G = "aborted"), V(), s.forEach((
|
|
703
|
-
|
|
702
|
+
G === "pending" && (G = "aborted"), V(), s.forEach((u) => {
|
|
703
|
+
u.status === "pending" && (u.status = "aborted");
|
|
704
704
|
}), s = [];
|
|
705
705
|
}
|
|
706
|
-
function o(
|
|
707
|
-
p && (a = []), typeof
|
|
706
|
+
function o(u, p) {
|
|
707
|
+
p && (a = []), typeof u == "function" && a.push(u);
|
|
708
708
|
}
|
|
709
709
|
function S() {
|
|
710
710
|
return {
|
|
@@ -718,18 +718,18 @@ function IG(I, g, C, Z) {
|
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
function k() {
|
|
721
|
-
G = "failed", a.forEach((
|
|
722
|
-
|
|
721
|
+
G = "failed", a.forEach((u) => {
|
|
722
|
+
u(void 0, i);
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
function L() {
|
|
726
|
-
s.forEach((
|
|
727
|
-
|
|
726
|
+
s.forEach((u) => {
|
|
727
|
+
u.status === "pending" && (u.status = "aborted");
|
|
728
728
|
}), s = [];
|
|
729
729
|
}
|
|
730
|
-
function K(
|
|
730
|
+
function K(u, p, J) {
|
|
731
731
|
const H = p !== "success";
|
|
732
|
-
switch (s = s.filter((z) => z !==
|
|
732
|
+
switch (s = s.filter((z) => z !== u), G) {
|
|
733
733
|
case "pending":
|
|
734
734
|
break;
|
|
735
735
|
case "failed":
|
|
@@ -747,7 +747,7 @@ function IG(I, g, C, Z) {
|
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
if (V(), L(), !I.random) {
|
|
750
|
-
const z = I.resources.indexOf(
|
|
750
|
+
const z = I.resources.indexOf(u.resource);
|
|
751
751
|
z !== -1 && z !== I.index && (I.index = z);
|
|
752
752
|
}
|
|
753
753
|
G = "completed", a.forEach((z) => {
|
|
@@ -757,8 +757,8 @@ function IG(I, g, C, Z) {
|
|
|
757
757
|
function e() {
|
|
758
758
|
if (G !== "pending") return;
|
|
759
759
|
V();
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
760
|
+
const u = l.shift();
|
|
761
|
+
if (u === void 0) {
|
|
762
762
|
if (s.length) {
|
|
763
763
|
w = setTimeout(() => {
|
|
764
764
|
V(), G === "pending" && (L(), k());
|
|
@@ -770,12 +770,12 @@ function IG(I, g, C, Z) {
|
|
|
770
770
|
}
|
|
771
771
|
const p = {
|
|
772
772
|
status: "pending",
|
|
773
|
-
resource:
|
|
773
|
+
resource: u,
|
|
774
774
|
callback: (J, H) => {
|
|
775
775
|
K(p, J, H);
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
s.push(p), b++, w = setTimeout(e, I.rotate), C(
|
|
778
|
+
s.push(p), b++, w = setTimeout(e, I.rotate), C(u, g, p.callback);
|
|
779
779
|
}
|
|
780
780
|
return setTimeout(e), S;
|
|
781
781
|
}
|
|
@@ -809,22 +809,22 @@ function ll(I) {
|
|
|
809
809
|
}
|
|
810
810
|
function $A() {
|
|
811
811
|
}
|
|
812
|
-
const
|
|
812
|
+
const FC = /* @__PURE__ */ Object.create(null);
|
|
813
813
|
function gG(I) {
|
|
814
|
-
if (!
|
|
814
|
+
if (!FC[I]) {
|
|
815
815
|
const g = ZA(I);
|
|
816
816
|
if (!g) return;
|
|
817
|
-
|
|
817
|
+
FC[I] = {
|
|
818
818
|
config: g,
|
|
819
819
|
redundancy: ll(g)
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
|
-
return
|
|
822
|
+
return FC[I];
|
|
823
823
|
}
|
|
824
824
|
function CG(I, g, C) {
|
|
825
825
|
let Z, A;
|
|
826
826
|
if (typeof I == "string") {
|
|
827
|
-
const d =
|
|
827
|
+
const d = PC(I);
|
|
828
828
|
if (!d)
|
|
829
829
|
return C(void 0, 424), $A;
|
|
830
830
|
A = d.send;
|
|
@@ -834,7 +834,7 @@ function CG(I, g, C) {
|
|
|
834
834
|
const d = CA(I);
|
|
835
835
|
if (d) {
|
|
836
836
|
Z = ll(d);
|
|
837
|
-
const l =
|
|
837
|
+
const l = PC(I.resources ? I.resources[0] : "");
|
|
838
838
|
l && (A = l.send);
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -905,7 +905,7 @@ function lG(I, g) {
|
|
|
905
905
|
}
|
|
906
906
|
const { valid: l, invalid: c } = ZG(A);
|
|
907
907
|
if (c.length && Kg(I, c, null), !l.length) return;
|
|
908
|
-
const G = Z.match(fZ) ?
|
|
908
|
+
const G = Z.match(fZ) ? PC(C) : null;
|
|
909
909
|
if (!G) {
|
|
910
910
|
Kg(I, l, null);
|
|
911
911
|
return;
|
|
@@ -1013,7 +1013,7 @@ const CZ = {
|
|
|
1013
1013
|
role: "img"
|
|
1014
1014
|
}, wG = {
|
|
1015
1015
|
display: "inline-block"
|
|
1016
|
-
},
|
|
1016
|
+
}, rC = {
|
|
1017
1017
|
backgroundColor: "currentColor"
|
|
1018
1018
|
}, dl = {
|
|
1019
1019
|
backgroundColor: "transparent"
|
|
@@ -1022,8 +1022,8 @@ const CZ = {
|
|
|
1022
1022
|
Repeat: "no-repeat",
|
|
1023
1023
|
Size: "100% 100%"
|
|
1024
1024
|
}, ZZ = {
|
|
1025
|
-
webkitMask:
|
|
1026
|
-
mask:
|
|
1025
|
+
webkitMask: rC,
|
|
1026
|
+
mask: rC,
|
|
1027
1027
|
background: dl
|
|
1028
1028
|
};
|
|
1029
1029
|
for (const I in ZZ) {
|
|
@@ -1099,7 +1099,7 @@ const dZ = (I, g) => {
|
|
|
1099
1099
|
width: lZ(b.width),
|
|
1100
1100
|
height: lZ(b.height),
|
|
1101
1101
|
...wG,
|
|
1102
|
-
...a ?
|
|
1102
|
+
...a ? rC : dl,
|
|
1103
1103
|
...c
|
|
1104
1104
|
}, kI("span", Z);
|
|
1105
1105
|
};
|
|
@@ -1137,7 +1137,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
const VG = {
|
|
1140
|
-
...
|
|
1140
|
+
...YC,
|
|
1141
1141
|
body: ""
|
|
1142
1142
|
}, NG = j((I, { emit: g }) => {
|
|
1143
1143
|
const C = t(null);
|
|
@@ -1145,7 +1145,7 @@ const VG = {
|
|
|
1145
1145
|
var b, i;
|
|
1146
1146
|
C.value && ((i = (b = C.value).abort) == null || i.call(b), C.value = null);
|
|
1147
1147
|
}
|
|
1148
|
-
const A = t(!!I.ssr), d = t(""), l =
|
|
1148
|
+
const A = t(!!I.ssr), d = t(""), l = QC(null);
|
|
1149
1149
|
function c() {
|
|
1150
1150
|
const b = I.icon;
|
|
1151
1151
|
if (typeof b == "object" && b !== null && typeof b.body == "string")
|
|
@@ -1153,7 +1153,7 @@ const VG = {
|
|
|
1153
1153
|
data: b
|
|
1154
1154
|
};
|
|
1155
1155
|
let i;
|
|
1156
|
-
if (typeof b != "string" || (i =
|
|
1156
|
+
if (typeof b != "string" || (i = BC(b, !1, !0)) === null)
|
|
1157
1157
|
return null;
|
|
1158
1158
|
let w = ud(i);
|
|
1159
1159
|
if (!w) {
|
|
@@ -1165,7 +1165,7 @@ const VG = {
|
|
|
1165
1165
|
abort: dG([i], G)
|
|
1166
1166
|
}), null;
|
|
1167
1167
|
}
|
|
1168
|
-
Z(), d.value !== b && (d.value = b,
|
|
1168
|
+
Z(), d.value !== b && (d.value = b, cg(() => {
|
|
1169
1169
|
g("load", b);
|
|
1170
1170
|
}));
|
|
1171
1171
|
const s = I.customise;
|
|
@@ -1193,7 +1193,7 @@ const VG = {
|
|
|
1193
1193
|
...I,
|
|
1194
1194
|
class: b.classes.join(" ")
|
|
1195
1195
|
}), dZ({
|
|
1196
|
-
...
|
|
1196
|
+
...YC,
|
|
1197
1197
|
...b.data
|
|
1198
1198
|
}, i);
|
|
1199
1199
|
};
|
|
@@ -1811,11 +1811,11 @@ const VG = {
|
|
|
1811
1811
|
"data-analysis": Rb,
|
|
1812
1812
|
reading: Hb,
|
|
1813
1813
|
flag: yb
|
|
1814
|
-
},
|
|
1815
|
-
function
|
|
1814
|
+
}, RV = Object.keys(lA).sort();
|
|
1815
|
+
function HV(I) {
|
|
1816
1816
|
return I in lA;
|
|
1817
1817
|
}
|
|
1818
|
-
const
|
|
1818
|
+
const XI = /* @__PURE__ */ j({
|
|
1819
1819
|
__name: "AppIcon",
|
|
1820
1820
|
props: {
|
|
1821
1821
|
name: {},
|
|
@@ -1823,8 +1823,8 @@ const RI = /* @__PURE__ */ j({
|
|
|
1823
1823
|
color: {}
|
|
1824
1824
|
},
|
|
1825
1825
|
setup(I) {
|
|
1826
|
-
const g = I, C =
|
|
1827
|
-
return (A, d) => C.value ? (m(),
|
|
1826
|
+
const g = I, C = y(() => lA[g.name] ?? null), Z = y(() => typeof g.size == "number" ? `${g.size}px` : g.size ?? "1em");
|
|
1827
|
+
return (A, d) => C.value ? (m(), T($(NG), {
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
icon: C.value,
|
|
1830
1830
|
width: Z.value,
|
|
@@ -1879,7 +1879,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1879
1879
|
pagination: Kb
|
|
1880
1880
|
}, Db = {
|
|
1881
1881
|
$style: Sb
|
|
1882
|
-
},
|
|
1882
|
+
}, yV = /* @__PURE__ */ U(Mb, [["__cssModules", Db]]), Fb = /* @__PURE__ */ j({
|
|
1883
1883
|
__name: "ConfirmDialog",
|
|
1884
1884
|
props: {
|
|
1885
1885
|
modelValue: { type: Boolean },
|
|
@@ -1897,7 +1897,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1897
1897
|
function Z() {
|
|
1898
1898
|
C("confirm"), C("update:modelValue", !1);
|
|
1899
1899
|
}
|
|
1900
|
-
return (A, d) => (m(),
|
|
1900
|
+
return (A, d) => (m(), T(gA, {
|
|
1901
1901
|
"model-value": I.modelValue,
|
|
1902
1902
|
title: I.title,
|
|
1903
1903
|
width: I.width,
|
|
@@ -1911,17 +1911,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
1911
1911
|
Y("div", {
|
|
1912
1912
|
class: n(A.$style.content)
|
|
1913
1913
|
}, [
|
|
1914
|
-
I.type === "warning" ? (m(),
|
|
1914
|
+
I.type === "warning" ? (m(), T(XI, {
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
name: "warning",
|
|
1917
1917
|
class: n(A.$style.icon),
|
|
1918
1918
|
style: { color: "var(--el-color-warning)" }
|
|
1919
|
-
}, null, 8, ["class"])) : I.type === "danger" ? (m(),
|
|
1919
|
+
}, null, 8, ["class"])) : I.type === "danger" ? (m(), T(XI, {
|
|
1920
1920
|
key: 1,
|
|
1921
1921
|
name: "circle-close-filled",
|
|
1922
1922
|
class: n(A.$style.icon),
|
|
1923
1923
|
style: { color: "var(--el-color-danger)" }
|
|
1924
|
-
}, null, 8, ["class"])) : (m(),
|
|
1924
|
+
}, null, 8, ["class"])) : (m(), T(XI, {
|
|
1925
1925
|
key: 2,
|
|
1926
1926
|
name: "info-filled",
|
|
1927
1927
|
class: n(A.$style.icon),
|
|
@@ -1941,7 +1941,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1941
1941
|
message: zb
|
|
1942
1942
|
}, eb = {
|
|
1943
1943
|
$style: kb
|
|
1944
|
-
},
|
|
1944
|
+
}, uV = /* @__PURE__ */ U(Fb, [["__cssModules", eb]]), nV = /* @__PURE__ */ j({
|
|
1945
1945
|
__name: "FormDialog",
|
|
1946
1946
|
props: {
|
|
1947
1947
|
modelValue: { type: Boolean },
|
|
@@ -1973,7 +1973,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1973
1973
|
c && ((G = A.value) == null || G.clearValidate());
|
|
1974
1974
|
}), (c, G) => {
|
|
1975
1975
|
const b = _("el-form");
|
|
1976
|
-
return m(),
|
|
1976
|
+
return m(), T(gA, {
|
|
1977
1977
|
"model-value": I.modelValue,
|
|
1978
1978
|
title: I.title,
|
|
1979
1979
|
width: I.width,
|
|
@@ -1994,7 +1994,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1994
1994
|
"label-width": I.labelWidth
|
|
1995
1995
|
}, {
|
|
1996
1996
|
default: O(() => [
|
|
1997
|
-
|
|
1997
|
+
gI(c.$slots, "default", { form: I.formData })
|
|
1998
1998
|
]),
|
|
1999
1999
|
_: 3
|
|
2000
2000
|
}, 8, ["model", "rules", "label-width"])
|
|
@@ -2020,7 +2020,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2020
2020
|
class: n([Z.$style.tab, { [Z.$style.tabActive]: I.modelValue === d.value }]),
|
|
2021
2021
|
onClick: (l) => C("update:modelValue", d.value)
|
|
2022
2022
|
}, [
|
|
2023
|
-
|
|
2023
|
+
CI(h(d.label) + " ", 1),
|
|
2024
2024
|
d.count != null ? (m(), W("span", {
|
|
2025
2025
|
key: 0,
|
|
2026
2026
|
class: n(Z.$style.count)
|
|
@@ -2035,7 +2035,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2035
2035
|
count: Qb
|
|
2036
2036
|
}, vb = {
|
|
2037
2037
|
$style: Ub
|
|
2038
|
-
},
|
|
2038
|
+
}, MV = /* @__PURE__ */ U(tb, [["__cssModules", vb]]), Ob = ["onClick"], Eb = /* @__PURE__ */ j({
|
|
2039
2039
|
__name: "Toast",
|
|
2040
2040
|
setup(I, { expose: g }) {
|
|
2041
2041
|
const C = t([]);
|
|
@@ -2053,7 +2053,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2053
2053
|
function l(c, G = "info", b) {
|
|
2054
2054
|
A(c, G, b);
|
|
2055
2055
|
}
|
|
2056
|
-
return g({ show: l }), (c, G) => (m(),
|
|
2056
|
+
return g({ show: l }), (c, G) => (m(), T(UZ, { to: "body" }, [
|
|
2057
2057
|
Y("div", {
|
|
2058
2058
|
class: n(c.$style.container)
|
|
2059
2059
|
}, [
|
|
@@ -2068,13 +2068,13 @@ const RI = /* @__PURE__ */ j({
|
|
|
2068
2068
|
class: n(c.$style.icon)
|
|
2069
2069
|
}, [
|
|
2070
2070
|
b.type === "success" ? (m(), W(Q, { key: 0 }, [
|
|
2071
|
-
|
|
2071
|
+
CI("✓")
|
|
2072
2072
|
], 64)) : b.type === "error" ? (m(), W(Q, { key: 1 }, [
|
|
2073
|
-
|
|
2073
|
+
CI("✗")
|
|
2074
2074
|
], 64)) : b.type === "warning" ? (m(), W(Q, { key: 2 }, [
|
|
2075
|
-
|
|
2075
|
+
CI("⚠")
|
|
2076
2076
|
], 64)) : (m(), W(Q, { key: 3 }, [
|
|
2077
|
-
|
|
2077
|
+
CI("ℹ")
|
|
2078
2078
|
], 64))
|
|
2079
2079
|
], 2),
|
|
2080
2080
|
Y("span", {
|
|
@@ -2099,7 +2099,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2099
2099
|
msg: Cm
|
|
2100
2100
|
}, Zm = {
|
|
2101
2101
|
$style: Am
|
|
2102
|
-
},
|
|
2102
|
+
}, KV = /* @__PURE__ */ U(Eb, [["__cssModules", Zm]]), lm = /* @__PURE__ */ j({
|
|
2103
2103
|
__name: "EmptyState",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
icon: {},
|
|
@@ -2121,7 +2121,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2121
2121
|
key: 0,
|
|
2122
2122
|
class: n(Z.$style.icon)
|
|
2123
2123
|
}, [
|
|
2124
|
-
II(
|
|
2124
|
+
II(XI, {
|
|
2125
2125
|
name: I.icon,
|
|
2126
2126
|
size: I.iconSize ?? (I.compact ? 48 : 64)
|
|
2127
2127
|
}, null, 8, ["name", "size"])
|
|
@@ -2138,14 +2138,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2138
2138
|
key: 3,
|
|
2139
2139
|
class: n(Z.$style.actions)
|
|
2140
2140
|
}, [
|
|
2141
|
-
|
|
2142
|
-
I.actionText ? (m(),
|
|
2141
|
+
gI(Z.$slots, "default", {}, () => [
|
|
2142
|
+
I.actionText ? (m(), T(d, {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
type: "primary",
|
|
2145
2145
|
onClick: A[0] || (A[0] = (l) => C("action"))
|
|
2146
2146
|
}, {
|
|
2147
2147
|
default: O(() => [
|
|
2148
|
-
|
|
2148
|
+
CI(h(I.actionText), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
})) : R("", !0)
|
|
@@ -2163,7 +2163,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2163
2163
|
actions: im
|
|
2164
2164
|
}, Bm = {
|
|
2165
2165
|
$style: Wm
|
|
2166
|
-
},
|
|
2166
|
+
}, Gg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]), SV = j({
|
|
2167
2167
|
name: "ErrorBoundary",
|
|
2168
2168
|
props: {
|
|
2169
2169
|
/** 自定义上下文信息,用于错误日志 */
|
|
@@ -2198,7 +2198,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2198
2198
|
return c ? kI("div", { key: d.value, style: { display: "contents" } }, c) : null;
|
|
2199
2199
|
};
|
|
2200
2200
|
}
|
|
2201
|
-
}),
|
|
2201
|
+
}), DV = /* @__PURE__ */ j({
|
|
2202
2202
|
__name: "StatusTag",
|
|
2203
2203
|
props: {
|
|
2204
2204
|
status: {},
|
|
@@ -2226,17 +2226,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
2226
2226
|
failed: { label: "失败", type: "danger", effect: "light" },
|
|
2227
2227
|
cancelled: { label: "已取消", type: "info", effect: "light" },
|
|
2228
2228
|
waiting: { label: "等待中", type: "warning", effect: "light" }
|
|
2229
|
-
}, C = I, Z =
|
|
2229
|
+
}, C = I, Z = y(() => ({ ...g, ...C.statusMap })[C.status] ?? { label: C.status, type: "info", effect: "light" });
|
|
2230
2230
|
return (A, d) => {
|
|
2231
2231
|
const l = _("el-tag");
|
|
2232
|
-
return m(),
|
|
2232
|
+
return m(), T(l, {
|
|
2233
2233
|
type: Z.value.type,
|
|
2234
2234
|
effect: Z.value.effect ?? "light",
|
|
2235
2235
|
round: I.round,
|
|
2236
2236
|
size: I.size
|
|
2237
2237
|
}, {
|
|
2238
2238
|
default: O(() => [
|
|
2239
|
-
|
|
2239
|
+
CI(h(Z.value.label), 1)
|
|
2240
2240
|
]),
|
|
2241
2241
|
_: 1
|
|
2242
2242
|
}, 8, ["type", "effect", "round", "size"]);
|
|
@@ -2295,7 +2295,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2295
2295
|
}, null, 2)
|
|
2296
2296
|
], 2)
|
|
2297
2297
|
], 2))), 128)) : R("", !0),
|
|
2298
|
-
I.variant === "table" ? (m(),
|
|
2298
|
+
I.variant === "table" ? (m(), T(Z, {
|
|
2299
2299
|
key: 2,
|
|
2300
2300
|
rows: I.rows,
|
|
2301
2301
|
animated: ""
|
|
@@ -2319,7 +2319,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2319
2319
|
lineTextShort: um
|
|
2320
2320
|
}, Mm = {
|
|
2321
2321
|
$style: nm
|
|
2322
|
-
},
|
|
2322
|
+
}, FV = /* @__PURE__ */ U(Ym, [["__cssModules", Mm]]), Km = /* @__PURE__ */ j({
|
|
2323
2323
|
__name: "CardGridSkeleton",
|
|
2324
2324
|
props: {
|
|
2325
2325
|
count: { default: 6 },
|
|
@@ -2367,7 +2367,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2367
2367
|
textShort: Lm
|
|
2368
2368
|
}, Tm = {
|
|
2369
2369
|
$style: tm
|
|
2370
|
-
},
|
|
2370
|
+
}, pV = /* @__PURE__ */ U(Km, [["__cssModules", Tm]]), xm = ["src", "alt"], jm = { name: "UserAvatar" }, Qm = /* @__PURE__ */ j({
|
|
2371
2371
|
...jm,
|
|
2372
2372
|
props: {
|
|
2373
2373
|
name: { default: "" },
|
|
@@ -2376,7 +2376,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2376
2376
|
shape: { default: "circle" }
|
|
2377
2377
|
},
|
|
2378
2378
|
setup(I) {
|
|
2379
|
-
const g = I, C =
|
|
2379
|
+
const g = I, C = y(() => g.name ? g.name.charAt(0).toUpperCase() : "?"), Z = y(() => !!g.src), A = y(() => {
|
|
2380
2380
|
const d = g.size === 24 ? "var(--avatar-size-sm, 24px)" : g.size === 32 ? "var(--avatar-size-md, 32px)" : g.size === 40 ? "var(--avatar-size-lg, 40px)" : g.size === 48 ? "var(--avatar-size-xl, 48px)" : `${g.size}px`;
|
|
2381
2381
|
return {
|
|
2382
2382
|
width: d,
|
|
@@ -2408,7 +2408,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2408
2408
|
initial: Pm
|
|
2409
2409
|
}, fm = {
|
|
2410
2410
|
$style: rm
|
|
2411
|
-
},
|
|
2411
|
+
}, JV = /* @__PURE__ */ U(Qm, [["__cssModules", fm]]), qm = ["aria-label"], _m = {
|
|
2412
2412
|
class: "apf-user-panel__avatar",
|
|
2413
2413
|
"aria-hidden": "true"
|
|
2414
2414
|
}, $m = { class: "apf-user-panel__name" }, I0 = { class: "apf-user-panel__body" }, g0 = { class: "apf-user-panel__header" }, C0 = {
|
|
@@ -2430,15 +2430,15 @@ const RI = /* @__PURE__ */ j({
|
|
|
2430
2430
|
},
|
|
2431
2431
|
emits: ["logout"],
|
|
2432
2432
|
setup(I, { emit: g }) {
|
|
2433
|
-
const C = I, Z = g, A =
|
|
2433
|
+
const C = I, Z = g, A = y(
|
|
2434
2434
|
() => {
|
|
2435
2435
|
var c, G;
|
|
2436
2436
|
return ((c = C.user) == null ? void 0 : c.displayName) || ((G = C.user) == null ? void 0 : G.username) || "用户";
|
|
2437
2437
|
}
|
|
2438
|
-
), d =
|
|
2438
|
+
), d = y(() => {
|
|
2439
2439
|
const c = A.value.trim();
|
|
2440
2440
|
return c ? c.charAt(0).toUpperCase() : "?";
|
|
2441
|
-
}), l =
|
|
2441
|
+
}), l = y(() => {
|
|
2442
2442
|
const c = C.user;
|
|
2443
2443
|
if (!c) return [];
|
|
2444
2444
|
const G = [
|
|
@@ -2497,7 +2497,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2497
2497
|
class: "apf-user-panel__logout",
|
|
2498
2498
|
onClick: G[0] || (G[0] = (w) => Z("logout"))
|
|
2499
2499
|
}, [
|
|
2500
|
-
II($(
|
|
2500
|
+
II($(XI), {
|
|
2501
2501
|
name: "switch-button",
|
|
2502
2502
|
size: 14
|
|
2503
2503
|
}),
|
|
@@ -2511,7 +2511,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2511
2511
|
], 2);
|
|
2512
2512
|
};
|
|
2513
2513
|
}
|
|
2514
|
-
}),
|
|
2514
|
+
}), zV = /* @__PURE__ */ U(G0, [["__scopeId", "data-v-1bb71f74"]]), c0 = { class: "apf-slider-captcha__panel" }, b0 = {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
class: "apf-slider-captcha__placeholder"
|
|
2517
2517
|
}, m0 = {
|
|
@@ -2531,40 +2531,40 @@ const RI = /* @__PURE__ */ j({
|
|
|
2531
2531
|
},
|
|
2532
2532
|
emits: ["update:modelValue"],
|
|
2533
2533
|
setup(I, { expose: g, emit: C }) {
|
|
2534
|
-
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1), i = t(!1), w = t(!1), s = t(0), a = t(0), V =
|
|
2535
|
-
function X(
|
|
2534
|
+
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1), i = t(!1), w = t(!1), s = t(0), a = t(0), V = y(() => bZ - mZ);
|
|
2535
|
+
function X(u) {
|
|
2536
2536
|
var p;
|
|
2537
2537
|
A("update:modelValue", {
|
|
2538
2538
|
captchaId: ((p = c.value) == null ? void 0 : p.captchaId) ?? "",
|
|
2539
2539
|
captchaX: G.value,
|
|
2540
2540
|
verified: i.value,
|
|
2541
|
-
...
|
|
2541
|
+
...u
|
|
2542
2542
|
});
|
|
2543
2543
|
}
|
|
2544
2544
|
async function o() {
|
|
2545
2545
|
d.value = !0, l.value = null, i.value = !1, G.value = 0, c.value = null, X({ captchaId: "", captchaX: 0, verified: !1 });
|
|
2546
2546
|
try {
|
|
2547
|
-
const
|
|
2548
|
-
c.value =
|
|
2549
|
-
} catch (
|
|
2550
|
-
l.value =
|
|
2547
|
+
const u = await Z.fetchCaptcha();
|
|
2548
|
+
c.value = u, X({ captchaId: u.captchaId, captchaX: 0, verified: !1 });
|
|
2549
|
+
} catch (u) {
|
|
2550
|
+
l.value = u instanceof Error ? u.message : "验证码加载失败";
|
|
2551
2551
|
} finally {
|
|
2552
2552
|
d.value = !1;
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
|
-
function S(
|
|
2556
|
-
return Math.max(0, Math.min(V.value,
|
|
2555
|
+
function S(u) {
|
|
2556
|
+
return Math.max(0, Math.min(V.value, u));
|
|
2557
2557
|
}
|
|
2558
|
-
function k(
|
|
2559
|
-
i.value || !c.value || d.value || (b.value = !0, s.value =
|
|
2558
|
+
function k(u) {
|
|
2559
|
+
i.value || !c.value || d.value || (b.value = !0, s.value = u.clientX, a.value = G.value, u.currentTarget.setPointerCapture(u.pointerId));
|
|
2560
2560
|
}
|
|
2561
|
-
function L(
|
|
2562
|
-
b.value && (G.value = S(a.value + (
|
|
2561
|
+
function L(u) {
|
|
2562
|
+
b.value && (G.value = S(a.value + (u.clientX - s.value)));
|
|
2563
2563
|
}
|
|
2564
2564
|
function K() {
|
|
2565
|
-
var
|
|
2565
|
+
var u;
|
|
2566
2566
|
b.value && (b.value = !1, i.value = G.value > 10, X({
|
|
2567
|
-
captchaId: ((
|
|
2567
|
+
captchaId: ((u = c.value) == null ? void 0 : u.captchaId) ?? "",
|
|
2568
2568
|
captchaX: Math.round(G.value),
|
|
2569
2569
|
verified: i.value
|
|
2570
2570
|
}), i.value || (w.value = !0, window.setTimeout(() => {
|
|
@@ -2582,14 +2582,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2582
2582
|
refresh: o,
|
|
2583
2583
|
failAndRefresh: e,
|
|
2584
2584
|
getValue: () => {
|
|
2585
|
-
var
|
|
2585
|
+
var u;
|
|
2586
2586
|
return {
|
|
2587
|
-
captchaId: ((
|
|
2587
|
+
captchaId: ((u = c.value) == null ? void 0 : u.captchaId) ?? "",
|
|
2588
2588
|
captchaX: Math.round(G.value),
|
|
2589
2589
|
verified: i.value
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}), (
|
|
2592
|
+
}), (u, p) => (m(), W("div", {
|
|
2593
2593
|
class: n(["apf-slider-captcha", { "apf-slider-captcha--shake": w.value }])
|
|
2594
2594
|
}, [
|
|
2595
2595
|
Y("div", c0, [
|
|
@@ -2625,7 +2625,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2625
2625
|
"aria-label": "刷新验证码",
|
|
2626
2626
|
onClick: o
|
|
2627
2627
|
}, [
|
|
2628
|
-
II($(
|
|
2628
|
+
II($(XI), {
|
|
2629
2629
|
name: "refresh-right",
|
|
2630
2630
|
size: 14
|
|
2631
2631
|
})
|
|
@@ -2651,7 +2651,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2651
2651
|
onPointerup: K,
|
|
2652
2652
|
onPointercancel: K
|
|
2653
2653
|
}, [
|
|
2654
|
-
II($(
|
|
2654
|
+
II($(XI), {
|
|
2655
2655
|
name: i.value ? "check" : "arrow-right",
|
|
2656
2656
|
size: 14
|
|
2657
2657
|
}, null, 8, ["name"])
|
|
@@ -2659,7 +2659,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2659
2659
|
], 2)
|
|
2660
2660
|
], 2));
|
|
2661
2661
|
}
|
|
2662
|
-
}),
|
|
2662
|
+
}), kV = /* @__PURE__ */ U(s0, [["__scopeId", "data-v-c7d9d170"]]), w0 = { class: "apf-time-range-picker__panel" }, V0 = { class: "apf-time-range-picker__actions" }, N0 = /* @__PURE__ */ j({
|
|
2663
2663
|
__name: "TimeRangePicker",
|
|
2664
2664
|
props: {
|
|
2665
2665
|
modelValue: {},
|
|
@@ -2693,7 +2693,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2693
2693
|
const { preset: V, start: X, end: o } = A.modelValue;
|
|
2694
2694
|
V === "custom" && X && o && (c.value = [new Date(X), new Date(o)]);
|
|
2695
2695
|
});
|
|
2696
|
-
const G =
|
|
2696
|
+
const G = y(
|
|
2697
2697
|
() => A.presets.filter((a) => a !== "custom")
|
|
2698
2698
|
);
|
|
2699
2699
|
function b(a) {
|
|
@@ -2704,7 +2704,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2704
2704
|
};
|
|
2705
2705
|
return `自定义 ${V(a.start)} ~ ${V(a.end)}`;
|
|
2706
2706
|
}
|
|
2707
|
-
const i =
|
|
2707
|
+
const i = y(
|
|
2708
2708
|
() => A.modelValue.preset === "custom" ? b(A.modelValue) : "自定义"
|
|
2709
2709
|
);
|
|
2710
2710
|
function w(a) {
|
|
@@ -2729,9 +2729,9 @@ const RI = /* @__PURE__ */ j({
|
|
|
2729
2729
|
return m(), W("div", {
|
|
2730
2730
|
class: n(["apf-time-range-picker", [`apf-time-range-picker--${I.size}`]])
|
|
2731
2731
|
}, [
|
|
2732
|
-
I.showPresets ? (m(),
|
|
2732
|
+
I.showPresets ? (m(), T(o, { key: 0 }, {
|
|
2733
2733
|
default: O(() => [
|
|
2734
|
-
(m(!0), W(Q, null, q(G.value, (L) => (m(),
|
|
2734
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), T(X, {
|
|
2735
2735
|
key: L,
|
|
2736
2736
|
size: I.size,
|
|
2737
2737
|
disabled: I.disabled,
|
|
@@ -2739,14 +2739,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2739
2739
|
onClick: (K) => w(L)
|
|
2740
2740
|
}, {
|
|
2741
2741
|
default: O(() => [
|
|
2742
|
-
|
|
2742
|
+
CI(h(C[L]), 1)
|
|
2743
2743
|
]),
|
|
2744
2744
|
_: 2
|
|
2745
2745
|
}, 1032, ["size", "disabled", "type", "onClick"]))), 128))
|
|
2746
2746
|
]),
|
|
2747
2747
|
_: 1
|
|
2748
2748
|
})) : R("", !0),
|
|
2749
|
-
I.allowCustom ? (m(),
|
|
2749
|
+
I.allowCustom ? (m(), T(k, {
|
|
2750
2750
|
key: 1,
|
|
2751
2751
|
visible: l.value,
|
|
2752
2752
|
"onUpdate:visible": V[2] || (V[2] = (L) => l.value = L),
|
|
@@ -2763,7 +2763,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2763
2763
|
class: "apf-time-range-picker__custom"
|
|
2764
2764
|
}, {
|
|
2765
2765
|
default: O(() => [
|
|
2766
|
-
|
|
2766
|
+
CI(h(i.value), 1)
|
|
2767
2767
|
]),
|
|
2768
2768
|
_: 1
|
|
2769
2769
|
}, 8, ["size", "disabled", "type"])
|
|
@@ -2786,7 +2786,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2786
2786
|
onClick: V[1] || (V[1] = (L) => l.value = !1)
|
|
2787
2787
|
}, {
|
|
2788
2788
|
default: O(() => [...V[3] || (V[3] = [
|
|
2789
|
-
|
|
2789
|
+
CI("取消", -1)
|
|
2790
2790
|
])]),
|
|
2791
2791
|
_: 1
|
|
2792
2792
|
}, 8, ["size"]),
|
|
@@ -2797,7 +2797,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2797
2797
|
onClick: s
|
|
2798
2798
|
}, {
|
|
2799
2799
|
default: O(() => [...V[4] || (V[4] = [
|
|
2800
|
-
|
|
2800
|
+
CI(" 确定 ", -1)
|
|
2801
2801
|
])]),
|
|
2802
2802
|
_: 1
|
|
2803
2803
|
}, 8, ["size", "disabled"])
|
|
@@ -2809,7 +2809,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2809
2809
|
], 2);
|
|
2810
2810
|
};
|
|
2811
2811
|
}
|
|
2812
|
-
}),
|
|
2812
|
+
}), eV = /* @__PURE__ */ U(N0, [["__scopeId", "data-v-cb3adbf3"]]), X0 = {
|
|
2813
2813
|
key: 0,
|
|
2814
2814
|
class: "apf-content-panel__head"
|
|
2815
2815
|
}, o0 = {
|
|
@@ -2835,11 +2835,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2835
2835
|
I.title || g.$slots.extra ? (m(), W("header", X0, [
|
|
2836
2836
|
I.title ? (m(), W("span", o0, h(I.title), 1)) : R("", !0),
|
|
2837
2837
|
g.$slots.extra ? (m(), W("div", h0, [
|
|
2838
|
-
|
|
2838
|
+
gI(g.$slots, "extra", {}, void 0, !0)
|
|
2839
2839
|
])) : R("", !0)
|
|
2840
2840
|
])) : R("", !0),
|
|
2841
2841
|
Y("div", a0, [
|
|
2842
|
-
|
|
2842
|
+
gI(g.$slots, "default", {}, void 0, !0)
|
|
2843
2843
|
])
|
|
2844
2844
|
], 2));
|
|
2845
2845
|
}
|
|
@@ -2873,7 +2873,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2873
2873
|
splitLine: "#EBEDF3",
|
|
2874
2874
|
tooltipBg: "#FFFFFF",
|
|
2875
2875
|
tooltipText: "#303133"
|
|
2876
|
-
},
|
|
2876
|
+
}, LV = {
|
|
2877
2877
|
title: "#303133",
|
|
2878
2878
|
primary: "#333333",
|
|
2879
2879
|
regular: "#606266",
|
|
@@ -2882,7 +2882,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2882
2882
|
placeholder: "#969FA8",
|
|
2883
2883
|
disabled: "#C0C4CC",
|
|
2884
2884
|
inverse: "#FFFFFF"
|
|
2885
|
-
},
|
|
2885
|
+
}, tV = {
|
|
2886
2886
|
10: "10px",
|
|
2887
2887
|
11: "11px",
|
|
2888
2888
|
12: "12px",
|
|
@@ -2895,7 +2895,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2895
2895
|
22: "22px",
|
|
2896
2896
|
24: "24px",
|
|
2897
2897
|
28: "28px"
|
|
2898
|
-
},
|
|
2898
|
+
}, TV = {
|
|
2899
2899
|
xs: "4px",
|
|
2900
2900
|
sm: "8px",
|
|
2901
2901
|
md: "16px",
|
|
@@ -2906,32 +2906,32 @@ const RI = /* @__PURE__ */ j({
|
|
|
2906
2906
|
10: "10px",
|
|
2907
2907
|
12: "12px",
|
|
2908
2908
|
20: "20px"
|
|
2909
|
-
},
|
|
2909
|
+
}, xV = {
|
|
2910
2910
|
xs: "24px",
|
|
2911
2911
|
sm: "28px",
|
|
2912
2912
|
md: "32px",
|
|
2913
2913
|
lg: "40px",
|
|
2914
2914
|
xl: "44px"
|
|
2915
|
-
},
|
|
2915
|
+
}, jV = {
|
|
2916
2916
|
header: "56px",
|
|
2917
2917
|
conversationHeader: "68px",
|
|
2918
2918
|
dialogFooter: "60px",
|
|
2919
2919
|
toolbar: "48px",
|
|
2920
2920
|
tabs: "40px",
|
|
2921
2921
|
listRow: "48px"
|
|
2922
|
-
},
|
|
2922
|
+
}, QV = {
|
|
2923
2923
|
xs: "12px",
|
|
2924
2924
|
sm: "14px",
|
|
2925
2925
|
md: "16px",
|
|
2926
2926
|
lg: "20px",
|
|
2927
2927
|
xl: "24px"
|
|
2928
|
-
},
|
|
2928
|
+
}, UV = {
|
|
2929
2929
|
paddingX: "24px",
|
|
2930
2930
|
paddingY: "24px",
|
|
2931
2931
|
headerPaddingTop: "28px",
|
|
2932
2932
|
sidebarWidth: "240px",
|
|
2933
2933
|
sidebarWidthCollapsed: "64px"
|
|
2934
|
-
},
|
|
2934
|
+
}, vV = {
|
|
2935
2935
|
sm: "2px",
|
|
2936
2936
|
md: "4px",
|
|
2937
2937
|
6: "6px",
|
|
@@ -2939,11 +2939,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2939
2939
|
lg: "10px",
|
|
2940
2940
|
xl: "12px",
|
|
2941
2941
|
full: "999px"
|
|
2942
|
-
},
|
|
2942
|
+
}, OV = {
|
|
2943
2943
|
fieldWidth: "220px",
|
|
2944
2944
|
labelWidth: "96px",
|
|
2945
2945
|
fieldGap: "6px"
|
|
2946
|
-
},
|
|
2946
|
+
}, EV = {
|
|
2947
2947
|
sm: "24px",
|
|
2948
2948
|
md: "32px",
|
|
2949
2949
|
lg: "40px",
|
|
@@ -2952,11 +2952,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2952
2952
|
sm: "0 1px 2px rgba(0, 0, 0, 0.05)",
|
|
2953
2953
|
md: "0 4px 12px rgba(0, 0, 0, 0.08)",
|
|
2954
2954
|
lg: "0 8px 24px rgba(0, 0, 0, 0.12)"
|
|
2955
|
-
},
|
|
2955
|
+
}, PV = {
|
|
2956
2956
|
fast: "0.15s",
|
|
2957
2957
|
normal: "0.25s",
|
|
2958
2958
|
slow: "0.35s"
|
|
2959
|
-
},
|
|
2959
|
+
}, rV = {
|
|
2960
2960
|
dropdown: 1e3,
|
|
2961
2961
|
sticky: 1020,
|
|
2962
2962
|
fixed: 1030,
|
|
@@ -3063,13 +3063,13 @@ const D0 = {
|
|
|
3063
3063
|
setup(I, { emit: g }) {
|
|
3064
3064
|
const C = I, Z = g, A = t(null), d = t(!1);
|
|
3065
3065
|
let l = null, c = null, G = null, b = null;
|
|
3066
|
-
const i =
|
|
3066
|
+
const i = y(
|
|
3067
3067
|
() => C.height ?? (C.variant === "spark" ? 32 : 280)
|
|
3068
|
-
), w =
|
|
3068
|
+
), w = y(() => C.series.some((k) => k.data.length > 0)), s = y(
|
|
3069
3069
|
() => !C.loading && !d.value && w.value
|
|
3070
3070
|
);
|
|
3071
3071
|
function a() {
|
|
3072
|
-
const k = C.variant === "spark", L = C.type === "area" ? "line" : C.type, K = C.series.flatMap((J) => J.data.map((H) => H[0])), e = K.length ? Math.max(...K) - Math.min(...K) : 0,
|
|
3072
|
+
const k = C.variant === "spark", L = C.type === "area" ? "line" : C.type, K = C.series.flatMap((J) => J.data.map((H) => H[0])), e = K.length ? Math.max(...K) - Math.min(...K) : 0, u = C.series.map((J, H) => {
|
|
3073
3073
|
const z = J.color ?? JI.series[H % JI.series.length], D = C.type === "area" || J.area;
|
|
3074
3074
|
return {
|
|
3075
3075
|
name: J.name,
|
|
@@ -3097,7 +3097,7 @@ const D0 = {
|
|
|
3097
3097
|
color: J.color ?? JI.danger
|
|
3098
3098
|
}
|
|
3099
3099
|
}));
|
|
3100
|
-
return
|
|
3100
|
+
return u[0] && (u[0].markLine = p.length ? { symbol: "none", data: p } : void 0), {
|
|
3101
3101
|
animation: !k,
|
|
3102
3102
|
grid: k ? { left: 0, right: 0, top: 2, bottom: 2 } : { left: 48, right: 16, top: 24, bottom: 28 },
|
|
3103
3103
|
tooltip: k ? { show: !1 } : {
|
|
@@ -3140,7 +3140,7 @@ const D0 = {
|
|
|
3140
3140
|
lineStyle: { color: JI.splitLine, type: "dashed" }
|
|
3141
3141
|
}
|
|
3142
3142
|
},
|
|
3143
|
-
series:
|
|
3143
|
+
series: u
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
3146
|
function V() {
|
|
@@ -3155,7 +3155,7 @@ const D0 = {
|
|
|
3155
3155
|
d.value = !0;
|
|
3156
3156
|
return;
|
|
3157
3157
|
}
|
|
3158
|
-
d.value = !1, await
|
|
3158
|
+
d.value = !1, await cg(), !(!A.value || !s.value) && (V(), l = c.init(A.value), b = (k) => Z("chart-click", k), l.on("click", b), l.setOption(a(), { notMerge: !0 }), G = new ResizeObserver(() => l == null ? void 0 : l.resize()), G.observe(A.value));
|
|
3159
3159
|
}
|
|
3160
3160
|
function o() {
|
|
3161
3161
|
!l || d.value || !s.value || l.setOption(a(), {
|
|
@@ -3194,7 +3194,7 @@ const D0 = {
|
|
|
3194
3194
|
S();
|
|
3195
3195
|
}), mg(() => {
|
|
3196
3196
|
V();
|
|
3197
|
-
}), (k, L) => I.variant === "full" ? (m(),
|
|
3197
|
+
}), (k, L) => I.variant === "full" ? (m(), T($(H0), {
|
|
3198
3198
|
key: 0,
|
|
3199
3199
|
title: I.title,
|
|
3200
3200
|
class: "apf-metric-chart"
|
|
@@ -3204,7 +3204,7 @@ const D0 = {
|
|
|
3204
3204
|
key: 0,
|
|
3205
3205
|
class: "apf-metric-chart__loading",
|
|
3206
3206
|
style: dI({ height: `${i.value}px` })
|
|
3207
|
-
}, " 加载中… ", 4)) : d.value ? (m(),
|
|
3207
|
+
}, " 加载中… ", 4)) : d.value ? (m(), T($(Gg), {
|
|
3208
3208
|
key: 1,
|
|
3209
3209
|
title: "需要安装 echarts",
|
|
3210
3210
|
description: "pnpm add echarts"
|
|
@@ -3218,8 +3218,8 @@ const D0 = {
|
|
|
3218
3218
|
key: 2,
|
|
3219
3219
|
style: dI({ height: `${i.value}px` })
|
|
3220
3220
|
}, [
|
|
3221
|
-
|
|
3222
|
-
II($(
|
|
3221
|
+
gI(k.$slots, "empty", {}, () => [
|
|
3222
|
+
II($(Gg), { title: "暂无数据" })
|
|
3223
3223
|
], !0)
|
|
3224
3224
|
], 4))
|
|
3225
3225
|
]),
|
|
@@ -3228,7 +3228,7 @@ const D0 = {
|
|
|
3228
3228
|
k.$slots["header-actions"] ? {
|
|
3229
3229
|
name: "extra",
|
|
3230
3230
|
fn: O(() => [
|
|
3231
|
-
|
|
3231
|
+
gI(k.$slots, "header-actions", {}, void 0, !0)
|
|
3232
3232
|
]),
|
|
3233
3233
|
key: "0"
|
|
3234
3234
|
} : void 0
|
|
@@ -3237,7 +3237,7 @@ const D0 = {
|
|
|
3237
3237
|
key: 0,
|
|
3238
3238
|
class: "apf-metric-chart__loading",
|
|
3239
3239
|
style: dI({ height: `${i.value}px` })
|
|
3240
|
-
}, " … ", 4)) : d.value ? (m(),
|
|
3240
|
+
}, " … ", 4)) : d.value ? (m(), T($(Gg), {
|
|
3241
3241
|
key: 1,
|
|
3242
3242
|
title: "需要 echarts",
|
|
3243
3243
|
description: ""
|
|
@@ -3254,7 +3254,7 @@ const D0 = {
|
|
|
3254
3254
|
}, null, 4))
|
|
3255
3255
|
]));
|
|
3256
3256
|
}
|
|
3257
|
-
}),
|
|
3257
|
+
}), fV = /* @__PURE__ */ U(F0, [["__scopeId", "data-v-a72b4e2b"]]), p0 = {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
class: "apf-stat-card__bar"
|
|
3260
3260
|
}, J0 = {
|
|
@@ -3286,16 +3286,16 @@ const D0 = {
|
|
|
3286
3286
|
},
|
|
3287
3287
|
emits: ["click"],
|
|
3288
3288
|
setup(I, { emit: g }) {
|
|
3289
|
-
const C = I, Z = g, A =
|
|
3289
|
+
const C = I, Z = g, A = y(() => {
|
|
3290
3290
|
const b = C.trend;
|
|
3291
3291
|
if (!b || b.direction === "flat") return "var(--text-color-muted)";
|
|
3292
3292
|
const i = b.positiveIsGood !== !1;
|
|
3293
3293
|
return (b.direction === "up" ? i : !i) ? "var(--color-success)" : "var(--color-danger)";
|
|
3294
|
-
}), d =
|
|
3294
|
+
}), d = y(() => {
|
|
3295
3295
|
var i;
|
|
3296
3296
|
const b = (i = C.trend) == null ? void 0 : i.direction;
|
|
3297
3297
|
return b === "up" ? "↑" : b === "down" ? "↓" : "→";
|
|
3298
|
-
}), l =
|
|
3298
|
+
}), l = y(() => {
|
|
3299
3299
|
const b = C.sparkline;
|
|
3300
3300
|
if (!(b != null && b.length)) return "";
|
|
3301
3301
|
const i = 80, w = 32, s = Math.min(...b), V = Math.max(...b) - s || 1;
|
|
@@ -3303,11 +3303,11 @@ const D0 = {
|
|
|
3303
3303
|
const S = o / Math.max(b.length - 1, 1) * i, k = w - (X - s) / V * (w - 4) - 2;
|
|
3304
3304
|
return `${o === 0 ? "M" : "L"}${S.toFixed(1)},${k.toFixed(1)}`;
|
|
3305
3305
|
}).join(" ");
|
|
3306
|
-
}), c =
|
|
3306
|
+
}), c = y(() => C.status === "healthy" ? "var(--color-success)" : C.status === "warning" ? "var(--color-warning)" : C.status === "error" ? "var(--color-danger)" : "var(--color-primary)");
|
|
3307
3307
|
function G(b) {
|
|
3308
3308
|
C.to || Z("click", b);
|
|
3309
3309
|
}
|
|
3310
|
-
return (b, i) => (m(),
|
|
3310
|
+
return (b, i) => (m(), T(OZ(I.to ? "a" : "div"), {
|
|
3311
3311
|
class: n(["apf-stat-card", [
|
|
3312
3312
|
I.status ? `apf-stat-card--${I.status}` : "",
|
|
3313
3313
|
{ "apf-stat-card--clickable": !!I.to }
|
|
@@ -3316,7 +3316,7 @@ const D0 = {
|
|
|
3316
3316
|
role: I.to ? void 0 : "button",
|
|
3317
3317
|
tabindex: I.to ? void 0 : 0,
|
|
3318
3318
|
onClick: G,
|
|
3319
|
-
onKeydown: i[0] || (i[0] =
|
|
3319
|
+
onKeydown: i[0] || (i[0] = UC(UI((w) => !I.to && G(w), ["prevent"]), ["enter"]))
|
|
3320
3320
|
}, {
|
|
3321
3321
|
default: O(() => {
|
|
3322
3322
|
var w;
|
|
@@ -3336,9 +3336,9 @@ const D0 = {
|
|
|
3336
3336
|
class: "apf-stat-card__trend",
|
|
3337
3337
|
style: dI({ color: A.value })
|
|
3338
3338
|
}, [
|
|
3339
|
-
|
|
3339
|
+
CI(h(d.value) + " ", 1),
|
|
3340
3340
|
I.trend.percent != null ? (m(), W(Q, { key: 0 }, [
|
|
3341
|
-
|
|
3341
|
+
CI(h(I.trend.percent) + "%", 1)
|
|
3342
3342
|
], 64)) : R("", !0)
|
|
3343
3343
|
], 4)) : R("", !0)
|
|
3344
3344
|
]),
|
|
@@ -3358,7 +3358,7 @@ const D0 = {
|
|
|
3358
3358
|
_: 1
|
|
3359
3359
|
}, 40, ["class", "href", "role", "tabindex"]));
|
|
3360
3360
|
}
|
|
3361
|
-
}),
|
|
3361
|
+
}), qV = /* @__PURE__ */ U(j0, [["__scopeId", "data-v-3e48d232"]]), Q0 = /* @__PURE__ */ j({
|
|
3362
3362
|
__name: "SeverityBadge",
|
|
3363
3363
|
props: {
|
|
3364
3364
|
severity: {},
|
|
@@ -3366,7 +3366,7 @@ const D0 = {
|
|
|
3366
3366
|
size: { default: "default" }
|
|
3367
3367
|
},
|
|
3368
3368
|
setup(I) {
|
|
3369
|
-
const g = I, C =
|
|
3369
|
+
const g = I, C = y(
|
|
3370
3370
|
() => g.pulse ?? g.severity === "critical"
|
|
3371
3371
|
), Z = {
|
|
3372
3372
|
critical: "严重",
|
|
@@ -3387,7 +3387,7 @@ const D0 = {
|
|
|
3387
3387
|
Y("span", null, h(Z[I.severity]), 1)
|
|
3388
3388
|
], 2));
|
|
3389
3389
|
}
|
|
3390
|
-
}),
|
|
3390
|
+
}), _V = /* @__PURE__ */ U(Q0, [["__scopeId", "data-v-e6c92ddb"]]), U0 = ["onClick"], v0 = { class: "apf-service-grid__body" }, O0 = { class: "apf-service-grid__name" }, E0 = {
|
|
3391
3391
|
key: 0,
|
|
3392
3392
|
class: "apf-service-grid__metrics"
|
|
3393
3393
|
}, P0 = { key: 0 }, r0 = { key: 1 }, f0 = { key: 2 }, q0 = /* @__PURE__ */ j({
|
|
@@ -3404,7 +3404,7 @@ const D0 = {
|
|
|
3404
3404
|
warning: "告警",
|
|
3405
3405
|
error: "故障",
|
|
3406
3406
|
unknown: "未知"
|
|
3407
|
-
}, Z = I, A = g, d =
|
|
3407
|
+
}, Z = I, A = g, d = y(() => Z.columns && Z.columns > 0 ? {
|
|
3408
3408
|
gridTemplateColumns: `repeat(${Z.columns}, minmax(0, 1fr))`
|
|
3409
3409
|
} : {
|
|
3410
3410
|
gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))"
|
|
@@ -3451,13 +3451,13 @@ const D0 = {
|
|
|
3451
3451
|
])) : R("", !0)
|
|
3452
3452
|
])
|
|
3453
3453
|
], 10, U0))), 128))
|
|
3454
|
-
], 4)) : (m(),
|
|
3454
|
+
], 4)) : (m(), T($(Gg), {
|
|
3455
3455
|
key: 1,
|
|
3456
3456
|
title: "暂无服务",
|
|
3457
3457
|
description: "等待上报或检查筛选条件"
|
|
3458
3458
|
}));
|
|
3459
3459
|
}
|
|
3460
|
-
}),
|
|
3460
|
+
}), $V = /* @__PURE__ */ U(q0, [["__scopeId", "data-v-7e1890bc"]]), _0 = { class: "apf-status-timeline" }, $0 = { class: "apf-status-timeline__ticks" }, Ii = /* @__PURE__ */ j({
|
|
3461
3461
|
__name: "StatusTimeline",
|
|
3462
3462
|
props: {
|
|
3463
3463
|
segments: {},
|
|
@@ -3471,7 +3471,7 @@ const D0 = {
|
|
|
3471
3471
|
warning: "告警",
|
|
3472
3472
|
error: "故障",
|
|
3473
3473
|
unknown: "未知"
|
|
3474
|
-
}, C = I, Z =
|
|
3474
|
+
}, C = I, Z = y(() => {
|
|
3475
3475
|
if (C.range) return C.range;
|
|
3476
3476
|
if (!C.segments.length) {
|
|
3477
3477
|
const G = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -3481,10 +3481,10 @@ const D0 = {
|
|
|
3481
3481
|
start: C.segments[0].start,
|
|
3482
3482
|
end: C.segments[C.segments.length - 1].end
|
|
3483
3483
|
};
|
|
3484
|
-
}), A =
|
|
3484
|
+
}), A = y(() => {
|
|
3485
3485
|
const G = Date.parse(Z.value.start), b = Date.parse(Z.value.end);
|
|
3486
3486
|
return Math.max(b - G, 1);
|
|
3487
|
-
}), d =
|
|
3487
|
+
}), d = y(() => {
|
|
3488
3488
|
const G = Date.parse(Z.value.start);
|
|
3489
3489
|
return C.segments.map((b) => {
|
|
3490
3490
|
const i = Date.parse(b.start), w = Date.parse(b.end), s = (i - G) / A.value * 100, a = (w - i) / A.value * 100;
|
|
@@ -3510,7 +3510,7 @@ const D0 = {
|
|
|
3510
3510
|
class: "apf-status-timeline__track",
|
|
3511
3511
|
style: dI({ height: `${I.height}px` })
|
|
3512
3512
|
}, [
|
|
3513
|
-
(m(!0), W(Q, null, q(d.value, (w, s) => (m(),
|
|
3513
|
+
(m(!0), W(Q, null, q(d.value, (w, s) => (m(), T(i, {
|
|
3514
3514
|
key: `${w.start}-${s}`,
|
|
3515
3515
|
disabled: !I.showTooltip,
|
|
3516
3516
|
content: c(w),
|
|
@@ -3532,7 +3532,7 @@ const D0 = {
|
|
|
3532
3532
|
]);
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
|
-
}),
|
|
3535
|
+
}), IN = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-97b528a0"]]), gi = {
|
|
3536
3536
|
key: 0,
|
|
3537
3537
|
class: "apf-log-stream__loading"
|
|
3538
3538
|
}, Ci = ["onClick"], Ai = { class: "apf-log-stream__ts" }, Zi = { class: "apf-log-stream__service" }, li = ["innerHTML"], di = {
|
|
@@ -3558,17 +3558,17 @@ const D0 = {
|
|
|
3558
3558
|
setup(I, { emit: g }) {
|
|
3559
3559
|
const C = I, Z = g, A = t(null), d = t(0), l = t(null);
|
|
3560
3560
|
let c = !0, G = null;
|
|
3561
|
-
const b =
|
|
3561
|
+
const b = y(
|
|
3562
3562
|
() => Math.ceil(C.height / C.rowHeight) + WZ * 2
|
|
3563
|
-
), i =
|
|
3563
|
+
), i = y(
|
|
3564
3564
|
() => Math.max(0, Math.floor(d.value / C.rowHeight) - WZ)
|
|
3565
|
-
), w =
|
|
3565
|
+
), w = y(
|
|
3566
3566
|
() => Math.min(C.logs.length, i.value + b.value)
|
|
3567
|
-
), s =
|
|
3567
|
+
), s = y(
|
|
3568
3568
|
() => C.logs.slice(i.value, w.value)
|
|
3569
|
-
), a =
|
|
3569
|
+
), a = y(() => C.logs.length * C.rowHeight), V = y(() => i.value * C.rowHeight), X = y(
|
|
3570
3570
|
() => C.logs.find((H) => H.id === l.value) ?? null
|
|
3571
|
-
), o =
|
|
3571
|
+
), o = y(() => {
|
|
3572
3572
|
var H;
|
|
3573
3573
|
if (!((H = X.value) != null && H.payload)) return "";
|
|
3574
3574
|
try {
|
|
@@ -3604,7 +3604,7 @@ const D0 = {
|
|
|
3604
3604
|
Z("reach-bottom");
|
|
3605
3605
|
}, 120));
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function u() {
|
|
3608
3608
|
const H = A.value;
|
|
3609
3609
|
H && (d.value = H.scrollTop, H.scrollTop <= 4 && Z("reach-top"), e(H));
|
|
3610
3610
|
}
|
|
@@ -3621,24 +3621,24 @@ const D0 = {
|
|
|
3621
3621
|
if (!(!ZI || f === 0)) {
|
|
3622
3622
|
if (f > 0) {
|
|
3623
3623
|
if (C.autoScroll)
|
|
3624
|
-
await
|
|
3624
|
+
await cg(), ZI.scrollTop = 0, d.value = 0;
|
|
3625
3625
|
else {
|
|
3626
3626
|
const DI = ZI.scrollTop + f * C.rowHeight;
|
|
3627
3627
|
ZI.scrollTop = DI, d.value = DI;
|
|
3628
3628
|
}
|
|
3629
3629
|
return;
|
|
3630
3630
|
}
|
|
3631
|
-
await
|
|
3631
|
+
await cg(), d.value = ZI.scrollTop;
|
|
3632
3632
|
}
|
|
3633
3633
|
}
|
|
3634
3634
|
), NI(l, (H) => {
|
|
3635
3635
|
H != null;
|
|
3636
3636
|
}), tg(() => {
|
|
3637
3637
|
var H;
|
|
3638
|
-
(H = A.value) == null || H.addEventListener("scroll",
|
|
3638
|
+
(H = A.value) == null || H.addEventListener("scroll", u, { passive: !0 });
|
|
3639
3639
|
}), mg(() => {
|
|
3640
3640
|
var H;
|
|
3641
|
-
(H = A.value) == null || H.removeEventListener("scroll",
|
|
3641
|
+
(H = A.value) == null || H.removeEventListener("scroll", u), G && clearTimeout(G);
|
|
3642
3642
|
}), (H, z) => (m(), W("div", {
|
|
3643
3643
|
class: "apf-log-stream-wrap",
|
|
3644
3644
|
style: dI({ height: `${I.height}px` })
|
|
@@ -3678,7 +3678,7 @@ const D0 = {
|
|
|
3678
3678
|
}, null, 8, li)
|
|
3679
3679
|
], 14, Ci))), 128))
|
|
3680
3680
|
], 4)
|
|
3681
|
-
], 4)) : (m(),
|
|
3681
|
+
], 4)) : (m(), T($(Gg), {
|
|
3682
3682
|
key: 1,
|
|
3683
3683
|
title: "暂无日志",
|
|
3684
3684
|
description: "等待事件推送或调整筛选"
|
|
@@ -3697,7 +3697,7 @@ const D0 = {
|
|
|
3697
3697
|
])) : R("", !0)
|
|
3698
3698
|
], 4));
|
|
3699
3699
|
}
|
|
3700
|
-
}),
|
|
3700
|
+
}), gN = /* @__PURE__ */ U(mi, [["__scopeId", "data-v-1766eb79"]]), ii = { class: "apf-threshold-slider__meta" }, Wi = { class: "apf-threshold-slider__unit" }, Bi = { class: "apf-threshold-slider__hint" }, Yi = { class: "apf-threshold-slider__row" }, si = /* @__PURE__ */ j({
|
|
3701
3701
|
__name: "ThresholdSlider",
|
|
3702
3702
|
props: {
|
|
3703
3703
|
type: {},
|
|
@@ -3712,7 +3712,7 @@ const D0 = {
|
|
|
3712
3712
|
latency: { unit: "ms", min: 100, max: 3e4, step: 100, suggest: 2e3 },
|
|
3713
3713
|
eventCount: { unit: "次/5分钟", min: 10, max: 1e4, step: 10, suggest: 100 },
|
|
3714
3714
|
timeout: { unit: "分钟", min: 1, max: 60, step: 1, suggest: 3 }
|
|
3715
|
-
}, Z = I, A = g, d =
|
|
3715
|
+
}, Z = I, A = g, d = y(() => C[Z.type]);
|
|
3716
3716
|
function l(G) {
|
|
3717
3717
|
if (G == null || Number.isNaN(G)) return;
|
|
3718
3718
|
const b = Math.min(d.value.max, Math.max(d.value.min, G));
|
|
@@ -3742,7 +3742,7 @@ const D0 = {
|
|
|
3742
3742
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => l(s)),
|
|
3743
3743
|
onChange: c
|
|
3744
3744
|
}, null, 8, ["model-value", "min", "max", "step", "disabled"]),
|
|
3745
|
-
I.showInput ? (m(),
|
|
3745
|
+
I.showInput ? (m(), T(w, {
|
|
3746
3746
|
key: 0,
|
|
3747
3747
|
"model-value": I.modelValue,
|
|
3748
3748
|
min: d.value.min,
|
|
@@ -3759,7 +3759,7 @@ const D0 = {
|
|
|
3759
3759
|
], 2);
|
|
3760
3760
|
};
|
|
3761
3761
|
}
|
|
3762
|
-
}),
|
|
3762
|
+
}), CN = /* @__PURE__ */ U(si, [["__scopeId", "data-v-7098971c"]]), wi = /* @__PURE__ */ j({
|
|
3763
3763
|
__name: "PageShell",
|
|
3764
3764
|
props: {
|
|
3765
3765
|
fill: { type: Boolean, default: !1 }
|
|
@@ -3768,7 +3768,7 @@ const D0 = {
|
|
|
3768
3768
|
return (g, C) => (m(), W("div", {
|
|
3769
3769
|
class: n([g.$style.shell, I.fill && g.$style.shellFill])
|
|
3770
3770
|
}, [
|
|
3771
|
-
|
|
3771
|
+
gI(g.$slots, "default")
|
|
3772
3772
|
], 2));
|
|
3773
3773
|
}
|
|
3774
3774
|
}), Vi = "_shell_1qlp7_2", Ni = "_shellFill_1qlp7_10", Xi = {
|
|
@@ -3776,7 +3776,7 @@ const D0 = {
|
|
|
3776
3776
|
shellFill: Ni
|
|
3777
3777
|
}, oi = {
|
|
3778
3778
|
$style: Xi
|
|
3779
|
-
},
|
|
3779
|
+
}, AN = /* @__PURE__ */ U(wi, [["__cssModules", oi]]), hi = /* @__PURE__ */ j({
|
|
3780
3780
|
__name: "PageHeader",
|
|
3781
3781
|
props: {
|
|
3782
3782
|
title: {},
|
|
@@ -3799,14 +3799,14 @@ const D0 = {
|
|
|
3799
3799
|
key: 0,
|
|
3800
3800
|
class: n(g.$style.subtitle)
|
|
3801
3801
|
}, h(I.subtitle), 3)) : R("", !0),
|
|
3802
|
-
|
|
3802
|
+
gI(g.$slots, "default")
|
|
3803
3803
|
], 2),
|
|
3804
3804
|
g.$slots.actions || g.$slots.extra ? (m(), W("div", {
|
|
3805
3805
|
key: 0,
|
|
3806
3806
|
class: n(g.$style.actions)
|
|
3807
3807
|
}, [
|
|
3808
|
-
|
|
3809
|
-
|
|
3808
|
+
gI(g.$slots, "actions"),
|
|
3809
|
+
gI(g.$slots, "extra")
|
|
3810
3810
|
], 2)) : R("", !0)
|
|
3811
3811
|
], 2)
|
|
3812
3812
|
], 2));
|
|
@@ -3820,7 +3820,7 @@ const D0 = {
|
|
|
3820
3820
|
actions: ni
|
|
3821
3821
|
}, Ki = {
|
|
3822
3822
|
$style: Mi
|
|
3823
|
-
},
|
|
3823
|
+
}, ZN = /* @__PURE__ */ U(hi, [["__cssModules", Ki]]), Si = ["onClick"], Di = /* @__PURE__ */ j({
|
|
3824
3824
|
__name: "BreadcrumbNav",
|
|
3825
3825
|
props: {
|
|
3826
3826
|
items: {}
|
|
@@ -3860,7 +3860,7 @@ const D0 = {
|
|
|
3860
3860
|
current: zi
|
|
3861
3861
|
}, ei = {
|
|
3862
3862
|
$style: ki
|
|
3863
|
-
},
|
|
3863
|
+
}, lN = /* @__PURE__ */ U(Di, [["__cssModules", ei]]), Li = { class: "apf-filter-bar" }, ti = {
|
|
3864
3864
|
key: 0,
|
|
3865
3865
|
class: "apf-filter-bar__title"
|
|
3866
3866
|
}, Ti = { class: "apf-filter-bar__fields" }, xi = { class: "apf-filter-bar__actions" }, ji = /* @__PURE__ */ j({
|
|
@@ -3876,16 +3876,16 @@ const D0 = {
|
|
|
3876
3876
|
return m(), W("div", Li, [
|
|
3877
3877
|
I.title ? (m(), W("div", ti, h(I.title), 1)) : R("", !0),
|
|
3878
3878
|
Y("div", Ti, [
|
|
3879
|
-
|
|
3879
|
+
gI(Z.$slots, "default", {}, void 0, !0)
|
|
3880
3880
|
]),
|
|
3881
3881
|
Y("div", xi, [
|
|
3882
|
-
|
|
3882
|
+
gI(Z.$slots, "actions", {}, () => [
|
|
3883
3883
|
II(d, {
|
|
3884
3884
|
type: "primary",
|
|
3885
3885
|
onClick: A[0] || (A[0] = (l) => C("search"))
|
|
3886
3886
|
}, {
|
|
3887
3887
|
default: O(() => [...A[2] || (A[2] = [
|
|
3888
|
-
|
|
3888
|
+
CI("查询", -1)
|
|
3889
3889
|
])]),
|
|
3890
3890
|
_: 1
|
|
3891
3891
|
}),
|
|
@@ -3893,7 +3893,7 @@ const D0 = {
|
|
|
3893
3893
|
onClick: A[1] || (A[1] = (l) => C("reset"))
|
|
3894
3894
|
}, {
|
|
3895
3895
|
default: O(() => [...A[3] || (A[3] = [
|
|
3896
|
-
|
|
3896
|
+
CI("重置", -1)
|
|
3897
3897
|
])]),
|
|
3898
3898
|
_: 1
|
|
3899
3899
|
})
|
|
@@ -3902,7 +3902,7 @@ const D0 = {
|
|
|
3902
3902
|
]);
|
|
3903
3903
|
};
|
|
3904
3904
|
}
|
|
3905
|
-
}),
|
|
3905
|
+
}), dN = /* @__PURE__ */ U(ji, [["__scopeId", "data-v-86218301"]]), Qi = /* @__PURE__ */ j({
|
|
3906
3906
|
__name: "CardTable",
|
|
3907
3907
|
props: {
|
|
3908
3908
|
loading: { type: Boolean, default: !1 },
|
|
@@ -3912,17 +3912,17 @@ const D0 = {
|
|
|
3912
3912
|
setup(I) {
|
|
3913
3913
|
return (g, C) => {
|
|
3914
3914
|
const Z = EZ("loading");
|
|
3915
|
-
return
|
|
3915
|
+
return dg((m(), W("div", {
|
|
3916
3916
|
class: n(["apf-card-table", { "apf-card-table--borderless": I.borderless }]),
|
|
3917
3917
|
style: dI({ padding: I.padding })
|
|
3918
3918
|
}, [
|
|
3919
|
-
|
|
3919
|
+
gI(g.$slots, "default", {}, void 0, !0)
|
|
3920
3920
|
], 6)), [
|
|
3921
3921
|
[Z, I.loading]
|
|
3922
3922
|
]);
|
|
3923
3923
|
};
|
|
3924
3924
|
}
|
|
3925
|
-
}),
|
|
3925
|
+
}), GN = /* @__PURE__ */ U(Qi, [["__scopeId", "data-v-fbd06971"]]), Ui = { class: "apf-table-row-actions" }, vi = /* @__PURE__ */ j({
|
|
3926
3926
|
__name: "TableRowActions",
|
|
3927
3927
|
props: {
|
|
3928
3928
|
actions: {},
|
|
@@ -3930,9 +3930,9 @@ const D0 = {
|
|
|
3930
3930
|
visibleCount: { default: 2 }
|
|
3931
3931
|
},
|
|
3932
3932
|
setup(I) {
|
|
3933
|
-
const g = I, C =
|
|
3933
|
+
const g = I, C = y(() => g.actions.length >= g.collapseAt), Z = y(
|
|
3934
3934
|
() => C.value ? g.actions.slice(0, g.visibleCount) : g.actions
|
|
3935
|
-
), A =
|
|
3935
|
+
), A = y(
|
|
3936
3936
|
() => C.value ? g.actions.slice(g.visibleCount) : []
|
|
3937
3937
|
);
|
|
3938
3938
|
function d(l) {
|
|
@@ -3942,7 +3942,7 @@ const D0 = {
|
|
|
3942
3942
|
return (l, c) => {
|
|
3943
3943
|
const G = _("el-button"), b = _("el-dropdown-item"), i = _("el-dropdown-menu"), w = _("el-dropdown");
|
|
3944
3944
|
return m(), W("div", Ui, [
|
|
3945
|
-
(m(!0), W(Q, null, q(Z.value, (s) => (m(),
|
|
3945
|
+
(m(!0), W(Q, null, q(Z.value, (s) => (m(), T(G, {
|
|
3946
3946
|
key: s.key,
|
|
3947
3947
|
link: "",
|
|
3948
3948
|
type: s.type ?? "primary",
|
|
@@ -3951,11 +3951,11 @@ const D0 = {
|
|
|
3951
3951
|
onClick: s.onClick
|
|
3952
3952
|
}, {
|
|
3953
3953
|
default: O(() => [
|
|
3954
|
-
|
|
3954
|
+
CI(h(s.label), 1)
|
|
3955
3955
|
]),
|
|
3956
3956
|
_: 2
|
|
3957
3957
|
}, 1032, ["type", "loading", "onClick"]))), 128)),
|
|
3958
|
-
A.value.length ? (m(),
|
|
3958
|
+
A.value.length ? (m(), T(w, {
|
|
3959
3959
|
key: 0,
|
|
3960
3960
|
trigger: "click",
|
|
3961
3961
|
onCommand: d
|
|
@@ -3963,19 +3963,19 @@ const D0 = {
|
|
|
3963
3963
|
dropdown: O(() => [
|
|
3964
3964
|
II(i, null, {
|
|
3965
3965
|
default: O(() => [
|
|
3966
|
-
(m(!0), W(Q, null, q(A.value, (s) => (m(),
|
|
3966
|
+
(m(!0), W(Q, null, q(A.value, (s) => (m(), T(b, {
|
|
3967
3967
|
key: s.key,
|
|
3968
3968
|
command: s.key,
|
|
3969
3969
|
style: dI(s.type === "danger" ? { color: "var(--el-color-danger)" } : void 0)
|
|
3970
3970
|
}, {
|
|
3971
3971
|
default: O(() => [
|
|
3972
|
-
s.icon ? (m(),
|
|
3972
|
+
s.icon ? (m(), T($(XI), {
|
|
3973
3973
|
key: 0,
|
|
3974
3974
|
name: s.icon,
|
|
3975
3975
|
size: 14,
|
|
3976
3976
|
style: { "margin-right": "6px" }
|
|
3977
3977
|
}, null, 8, ["name"])) : R("", !0),
|
|
3978
|
-
|
|
3978
|
+
CI(" " + h(s.label), 1)
|
|
3979
3979
|
]),
|
|
3980
3980
|
_: 2
|
|
3981
3981
|
}, 1032, ["command", "style"]))), 128))
|
|
@@ -3990,8 +3990,8 @@ const D0 = {
|
|
|
3990
3990
|
size: "small"
|
|
3991
3991
|
}, {
|
|
3992
3992
|
default: O(() => [
|
|
3993
|
-
c[0] || (c[0] =
|
|
3994
|
-
II($(
|
|
3993
|
+
c[0] || (c[0] = CI(" 更多 ", -1)),
|
|
3994
|
+
II($(XI), {
|
|
3995
3995
|
name: "arrow-down",
|
|
3996
3996
|
size: 12,
|
|
3997
3997
|
style: { "margin-left": "2px" }
|
|
@@ -4005,7 +4005,7 @@ const D0 = {
|
|
|
4005
4005
|
]);
|
|
4006
4006
|
};
|
|
4007
4007
|
}
|
|
4008
|
-
}),
|
|
4008
|
+
}), cN = /* @__PURE__ */ U(vi, [["__scopeId", "data-v-06e2a9ce"]]), Oi = { class: "apf-search-form" }, Ei = { class: "apf-search-form__row" }, Pi = { class: "apf-search-form__label" }, ri = { class: "apf-search-form__actions" }, fi = /* @__PURE__ */ j({
|
|
4009
4009
|
__name: "SearchForm",
|
|
4010
4010
|
props: {
|
|
4011
4011
|
fields: {},
|
|
@@ -4025,9 +4025,9 @@ const D0 = {
|
|
|
4025
4025
|
l[V.key] = ((a = Z.modelValue) == null ? void 0 : a[V.key]) ?? (V.type === "daterange" ? [] : "");
|
|
4026
4026
|
}
|
|
4027
4027
|
NI(() => [Z.fields, Z.modelValue], c, { immediate: !0, deep: !0 });
|
|
4028
|
-
const G =
|
|
4028
|
+
const G = y(
|
|
4029
4029
|
() => Z.collapsible && Z.fields.length > Z.defaultVisibleCount
|
|
4030
|
-
), b =
|
|
4030
|
+
), b = y(() => !G.value || !d.value ? Z.fields : Z.fields.slice(0, Z.defaultVisibleCount));
|
|
4031
4031
|
function i() {
|
|
4032
4032
|
return { ...l };
|
|
4033
4033
|
}
|
|
@@ -4053,13 +4053,13 @@ const D0 = {
|
|
|
4053
4053
|
class: "apf-search-form__field"
|
|
4054
4054
|
}, [
|
|
4055
4055
|
Y("label", Pi, h(K.label), 1),
|
|
4056
|
-
K.type === "input" ? (m(),
|
|
4056
|
+
K.type === "input" ? (m(), T(X, {
|
|
4057
4057
|
key: 0,
|
|
4058
4058
|
modelValue: l[K.key],
|
|
4059
4059
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
4060
4060
|
clearable: "",
|
|
4061
4061
|
placeholder: K.placeholder || `请输入${K.label}`
|
|
4062
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (m(),
|
|
4062
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (m(), T(S, {
|
|
4063
4063
|
key: 1,
|
|
4064
4064
|
modelValue: l[K.key],
|
|
4065
4065
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4068,14 +4068,14 @@ const D0 = {
|
|
|
4068
4068
|
style: { width: "100%" }
|
|
4069
4069
|
}, {
|
|
4070
4070
|
default: O(() => [
|
|
4071
|
-
(m(!0), W(Q, null, q(K.options || [], (e) => (m(),
|
|
4071
|
+
(m(!0), W(Q, null, q(K.options || [], (e) => (m(), T(o, {
|
|
4072
4072
|
key: String(e.value),
|
|
4073
4073
|
label: e.label,
|
|
4074
4074
|
value: e.value
|
|
4075
4075
|
}, null, 8, ["label", "value"]))), 128))
|
|
4076
4076
|
]),
|
|
4077
4077
|
_: 2
|
|
4078
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (m(),
|
|
4078
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (m(), T(k, {
|
|
4079
4079
|
key: 2,
|
|
4080
4080
|
modelValue: l[K.key],
|
|
4081
4081
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4083,7 +4083,7 @@ const D0 = {
|
|
|
4083
4083
|
"value-format": "YYYY-MM-DD",
|
|
4084
4084
|
placeholder: K.placeholder || `请选择${K.label}`,
|
|
4085
4085
|
style: { width: "100%" }
|
|
4086
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (m(),
|
|
4086
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (m(), T(k, {
|
|
4087
4087
|
key: 3,
|
|
4088
4088
|
modelValue: l[K.key],
|
|
4089
4089
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4100,29 +4100,29 @@ const D0 = {
|
|
|
4100
4100
|
onClick: w
|
|
4101
4101
|
}, {
|
|
4102
4102
|
default: O(() => [
|
|
4103
|
-
II($(
|
|
4103
|
+
II($(XI), {
|
|
4104
4104
|
name: "search",
|
|
4105
4105
|
size: 14,
|
|
4106
4106
|
style: { "margin-right": "var(--spacing-xs, 4px)" }
|
|
4107
4107
|
}),
|
|
4108
|
-
V[1] || (V[1] =
|
|
4108
|
+
V[1] || (V[1] = CI(" 查询 ", -1))
|
|
4109
4109
|
]),
|
|
4110
4110
|
_: 1
|
|
4111
4111
|
}),
|
|
4112
4112
|
II(L, { onClick: s }, {
|
|
4113
4113
|
default: O(() => [...V[2] || (V[2] = [
|
|
4114
|
-
|
|
4114
|
+
CI("重置", -1)
|
|
4115
4115
|
])]),
|
|
4116
4116
|
_: 1
|
|
4117
4117
|
}),
|
|
4118
|
-
G.value ? (m(),
|
|
4118
|
+
G.value ? (m(), T(L, {
|
|
4119
4119
|
key: 0,
|
|
4120
4120
|
link: "",
|
|
4121
4121
|
type: "primary",
|
|
4122
4122
|
onClick: V[0] || (V[0] = (K) => d.value = !d.value)
|
|
4123
4123
|
}, {
|
|
4124
4124
|
default: O(() => [
|
|
4125
|
-
|
|
4125
|
+
CI(h(d.value ? "展开" : "收起"), 1)
|
|
4126
4126
|
]),
|
|
4127
4127
|
_: 1
|
|
4128
4128
|
})) : R("", !0)
|
|
@@ -4131,7 +4131,7 @@ const D0 = {
|
|
|
4131
4131
|
]);
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
|
-
}),
|
|
4134
|
+
}), bN = /* @__PURE__ */ U(fi, [["__scopeId", "data-v-8a00c2b6"]]), qi = /* @__PURE__ */ j({
|
|
4135
4135
|
inheritAttrs: !1,
|
|
4136
4136
|
__name: "TruncatedTooltipText",
|
|
4137
4137
|
props: {
|
|
@@ -4143,7 +4143,7 @@ const D0 = {
|
|
|
4143
4143
|
const g = ql();
|
|
4144
4144
|
return (C, Z) => {
|
|
4145
4145
|
const A = _("el-tooltip");
|
|
4146
|
-
return m(),
|
|
4146
|
+
return m(), T(A, {
|
|
4147
4147
|
content: I.content,
|
|
4148
4148
|
placement: I.placement,
|
|
4149
4149
|
"show-after": 200,
|
|
@@ -4154,8 +4154,8 @@ const D0 = {
|
|
|
4154
4154
|
class: n(["apf-truncated-text", $(g).class]),
|
|
4155
4155
|
style: dI($(g).style)
|
|
4156
4156
|
}, [
|
|
4157
|
-
|
|
4158
|
-
|
|
4157
|
+
gI(C.$slots, "default", {}, () => [
|
|
4158
|
+
CI(h(I.content), 1)
|
|
4159
4159
|
], !0)
|
|
4160
4160
|
], 6)
|
|
4161
4161
|
]),
|
|
@@ -4175,7 +4175,7 @@ const D0 = {
|
|
|
4175
4175
|
required: { type: Boolean }
|
|
4176
4176
|
},
|
|
4177
4177
|
setup(I) {
|
|
4178
|
-
const g = I, C =
|
|
4178
|
+
const g = I, C = y(() => {
|
|
4179
4179
|
var Z;
|
|
4180
4180
|
return (Z = g.hint) != null && Z.trim() ? `${g.label}
|
|
4181
4181
|
${g.hint.trim()}` : g.label;
|
|
@@ -4190,7 +4190,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4190
4190
|
class: "apf-field-row__label-text"
|
|
4191
4191
|
}, {
|
|
4192
4192
|
default: O(() => [
|
|
4193
|
-
|
|
4193
|
+
CI(h(I.label), 1)
|
|
4194
4194
|
]),
|
|
4195
4195
|
_: 1
|
|
4196
4196
|
}, 8, ["content"])
|
|
@@ -4198,11 +4198,11 @@ ${g.hint.trim()}` : g.label;
|
|
|
4198
4198
|
Y("div", {
|
|
4199
4199
|
class: n(["apf-field-row__control", { "apf-field-row__control--textarea": I.textarea }])
|
|
4200
4200
|
}, [
|
|
4201
|
-
|
|
4201
|
+
gI(Z.$slots, "default", {}, void 0, !0)
|
|
4202
4202
|
], 2)
|
|
4203
4203
|
], 2));
|
|
4204
4204
|
}
|
|
4205
|
-
}),
|
|
4205
|
+
}), mN = /* @__PURE__ */ U(gW, [["__scopeId", "data-v-84b9f50d"]]), CW = ["aria-label"], AW = {
|
|
4206
4206
|
class: "apf-hint-trigger",
|
|
4207
4207
|
"aria-label": "提示"
|
|
4208
4208
|
}, ZW = { class: "apf-hint-content" }, lW = /* @__PURE__ */ j({
|
|
@@ -4214,7 +4214,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4214
4214
|
setup(I) {
|
|
4215
4215
|
return (g, C) => {
|
|
4216
4216
|
const Z = _("el-tooltip"), A = _("el-popover");
|
|
4217
|
-
return I.content ? (m(),
|
|
4217
|
+
return I.content ? (m(), T(Z, {
|
|
4218
4218
|
key: 0,
|
|
4219
4219
|
content: I.content,
|
|
4220
4220
|
placement: "top",
|
|
@@ -4226,14 +4226,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4226
4226
|
tabindex: "0",
|
|
4227
4227
|
"aria-label": I.content
|
|
4228
4228
|
}, [
|
|
4229
|
-
II($(
|
|
4229
|
+
II($(XI), {
|
|
4230
4230
|
name: "question-filled",
|
|
4231
4231
|
size: 14
|
|
4232
4232
|
})
|
|
4233
4233
|
], 8, CW)
|
|
4234
4234
|
]),
|
|
4235
4235
|
_: 1
|
|
4236
|
-
}, 8, ["content"])) : (m(),
|
|
4236
|
+
}, 8, ["content"])) : (m(), T(A, {
|
|
4237
4237
|
key: 1,
|
|
4238
4238
|
placement: "top",
|
|
4239
4239
|
width: I.width,
|
|
@@ -4243,7 +4243,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4243
4243
|
}, {
|
|
4244
4244
|
reference: O(() => [
|
|
4245
4245
|
Y("span", AW, [
|
|
4246
|
-
II($(
|
|
4246
|
+
II($(XI), {
|
|
4247
4247
|
name: "question-filled",
|
|
4248
4248
|
size: 14
|
|
4249
4249
|
})
|
|
@@ -4251,14 +4251,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4251
4251
|
]),
|
|
4252
4252
|
default: O(() => [
|
|
4253
4253
|
Y("div", ZW, [
|
|
4254
|
-
|
|
4254
|
+
gI(g.$slots, "default", {}, void 0, !0)
|
|
4255
4255
|
])
|
|
4256
4256
|
]),
|
|
4257
4257
|
_: 3
|
|
4258
4258
|
}, 8, ["width"]));
|
|
4259
4259
|
};
|
|
4260
4260
|
}
|
|
4261
|
-
}),
|
|
4261
|
+
}), iN = /* @__PURE__ */ U(lW, [["__scopeId", "data-v-38245bc2"]]), dW = { class: "apf-section-toggle" }, GW = { class: "apf-section-toggle__label" }, cW = {
|
|
4262
4262
|
key: 0,
|
|
4263
4263
|
class: "apf-section-toggle__count"
|
|
4264
4264
|
}, bW = { class: "apf-section-toggle__body" }, mW = /* @__PURE__ */ j({
|
|
@@ -4279,7 +4279,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4279
4279
|
class: "apf-section-toggle__header",
|
|
4280
4280
|
onClick: Z
|
|
4281
4281
|
}, [
|
|
4282
|
-
II($(
|
|
4282
|
+
II($(XI), {
|
|
4283
4283
|
name: C.value ? "arrow-down" : "arrow-right",
|
|
4284
4284
|
size: 11,
|
|
4285
4285
|
class: "apf-section-toggle__arrow"
|
|
@@ -4287,14 +4287,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4287
4287
|
Y("span", GW, h(I.title), 1),
|
|
4288
4288
|
I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) : R("", !0)
|
|
4289
4289
|
]),
|
|
4290
|
-
|
|
4291
|
-
|
|
4290
|
+
dg(Y("div", bW, [
|
|
4291
|
+
gI(A.$slots, "default", {}, void 0, !0)
|
|
4292
4292
|
], 512), [
|
|
4293
4293
|
[_l, C.value]
|
|
4294
4294
|
])
|
|
4295
4295
|
]));
|
|
4296
4296
|
}
|
|
4297
|
-
}),
|
|
4297
|
+
}), WN = /* @__PURE__ */ U(mW, [["__scopeId", "data-v-64b3dfe8"]]), iW = {
|
|
4298
4298
|
class: "apf-loading-dots",
|
|
4299
4299
|
"aria-label": "加载中",
|
|
4300
4300
|
role: "status"
|
|
@@ -4312,7 +4312,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4312
4312
|
}, null, 4)), 64))
|
|
4313
4313
|
]));
|
|
4314
4314
|
}
|
|
4315
|
-
}),
|
|
4315
|
+
}), BN = /* @__PURE__ */ U(WW, [["__scopeId", "data-v-df891291"]]), BW = { class: "apf-json-card__body" }, YW = { class: "apf-json-card__title" }, sW = { class: "apf-json-card__summary" }, wW = /* @__PURE__ */ j({
|
|
4316
4316
|
__name: "JsonCard",
|
|
4317
4317
|
props: {
|
|
4318
4318
|
title: {},
|
|
@@ -4322,7 +4322,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4322
4322
|
},
|
|
4323
4323
|
emits: ["click", "openDetail"],
|
|
4324
4324
|
setup(I, { emit: g }) {
|
|
4325
|
-
const C = I, Z = g, A =
|
|
4325
|
+
const C = I, Z = g, A = y(() => {
|
|
4326
4326
|
if (C.data !== void 0) return C.data;
|
|
4327
4327
|
if (!C.content) return null;
|
|
4328
4328
|
try {
|
|
@@ -4330,7 +4330,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4330
4330
|
} catch {
|
|
4331
4331
|
return null;
|
|
4332
4332
|
}
|
|
4333
|
-
}), d =
|
|
4333
|
+
}), d = y(() => {
|
|
4334
4334
|
const G = A.value;
|
|
4335
4335
|
if (G == null) return "JSON 数据";
|
|
4336
4336
|
if (Array.isArray(G))
|
|
@@ -4345,7 +4345,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4345
4345
|
return `${i.length} 个字段${i.length ? ` (${i.slice(0, 3).join(", ")}${i.length > 3 ? "..." : ""})` : ""}`;
|
|
4346
4346
|
}
|
|
4347
4347
|
return String(G);
|
|
4348
|
-
}), l =
|
|
4348
|
+
}), l = y(() => C.type === "schema" ? "document" : C.type === "flow" ? "connection" : "files");
|
|
4349
4349
|
function c() {
|
|
4350
4350
|
Z("click"), Z("openDetail");
|
|
4351
4351
|
}
|
|
@@ -4354,7 +4354,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4354
4354
|
class: "apf-json-card",
|
|
4355
4355
|
onClick: c
|
|
4356
4356
|
}, [
|
|
4357
|
-
II($(
|
|
4357
|
+
II($(XI), {
|
|
4358
4358
|
name: l.value,
|
|
4359
4359
|
size: 20,
|
|
4360
4360
|
class: "apf-json-card__icon"
|
|
@@ -4375,7 +4375,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4375
4375
|
},
|
|
4376
4376
|
emits: ["update:modelValue"],
|
|
4377
4377
|
setup(I, { emit: g }) {
|
|
4378
|
-
const C = I, Z = g, A =
|
|
4378
|
+
const C = I, Z = g, A = y(() => {
|
|
4379
4379
|
if (C.content)
|
|
4380
4380
|
try {
|
|
4381
4381
|
return JSON.stringify(JSON.parse(C.content), null, 2);
|
|
@@ -4390,7 +4390,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4390
4390
|
});
|
|
4391
4391
|
return (d, l) => {
|
|
4392
4392
|
const c = _("el-button");
|
|
4393
|
-
return m(),
|
|
4393
|
+
return m(), T($(gA), {
|
|
4394
4394
|
"model-value": I.modelValue,
|
|
4395
4395
|
title: I.title || "JSON 详情",
|
|
4396
4396
|
width: "720px",
|
|
@@ -4403,7 +4403,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4403
4403
|
onClick: l[0] || (l[0] = (G) => Z("update:modelValue", !1))
|
|
4404
4404
|
}, {
|
|
4405
4405
|
default: O(() => [...l[2] || (l[2] = [
|
|
4406
|
-
|
|
4406
|
+
CI("关闭", -1)
|
|
4407
4407
|
])]),
|
|
4408
4408
|
_: 1
|
|
4409
4409
|
})
|
|
@@ -4447,19 +4447,19 @@ ${g.hint.trim()}` : g.label;
|
|
|
4447
4447
|
onChange: l
|
|
4448
4448
|
}, {
|
|
4449
4449
|
default: O(() => [
|
|
4450
|
-
(m(!0), W(Q, null, q(I.fields, (S) => (m(),
|
|
4450
|
+
(m(!0), W(Q, null, q(I.fields, (S) => (m(), T(X, {
|
|
4451
4451
|
key: S.key,
|
|
4452
4452
|
label: S.label
|
|
4453
4453
|
}, {
|
|
4454
4454
|
default: O(() => [
|
|
4455
|
-
S.type === "input" ? (m(),
|
|
4455
|
+
S.type === "input" ? (m(), T(b, {
|
|
4456
4456
|
key: 0,
|
|
4457
4457
|
modelValue: A[S.key],
|
|
4458
4458
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4459
4459
|
placeholder: S.placeholder,
|
|
4460
4460
|
disabled: S.disabled,
|
|
4461
4461
|
onChange: l
|
|
4462
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (m(),
|
|
4462
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (m(), T(b, {
|
|
4463
4463
|
key: 1,
|
|
4464
4464
|
modelValue: A[S.key],
|
|
4465
4465
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4468,13 +4468,13 @@ ${g.hint.trim()}` : g.label;
|
|
|
4468
4468
|
placeholder: S.placeholder,
|
|
4469
4469
|
disabled: S.disabled,
|
|
4470
4470
|
onChange: l
|
|
4471
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (m(),
|
|
4471
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (m(), T(i, {
|
|
4472
4472
|
key: 2,
|
|
4473
4473
|
modelValue: A[S.key],
|
|
4474
4474
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4475
4475
|
disabled: S.disabled,
|
|
4476
4476
|
onChange: l
|
|
4477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (m(),
|
|
4477
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (m(), T(s, {
|
|
4478
4478
|
key: 3,
|
|
4479
4479
|
modelValue: A[S.key],
|
|
4480
4480
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4484,20 +4484,20 @@ ${g.hint.trim()}` : g.label;
|
|
|
4484
4484
|
onChange: l
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: O(() => [
|
|
4487
|
-
(m(!0), W(Q, null, q(S.options || [], (k) => (m(),
|
|
4487
|
+
(m(!0), W(Q, null, q(S.options || [], (k) => (m(), T(w, {
|
|
4488
4488
|
key: String(k.value),
|
|
4489
4489
|
label: k.label,
|
|
4490
4490
|
value: k.value
|
|
4491
4491
|
}, null, 8, ["label", "value"]))), 128))
|
|
4492
4492
|
]),
|
|
4493
4493
|
_: 2
|
|
4494
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (m(),
|
|
4494
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (m(), T(a, {
|
|
4495
4495
|
key: 4,
|
|
4496
4496
|
modelValue: A[S.key],
|
|
4497
4497
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4498
4498
|
disabled: S.disabled,
|
|
4499
4499
|
onChange: l
|
|
4500
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (m(),
|
|
4500
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (m(), T(V, {
|
|
4501
4501
|
key: 5,
|
|
4502
4502
|
modelValue: A[S.key],
|
|
4503
4503
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4517,7 +4517,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4517
4517
|
]);
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
|
-
}),
|
|
4520
|
+
}), YN = /* @__PURE__ */ U(aW, [["__scopeId", "data-v-1d125a82"]]);
|
|
4521
4521
|
function Rg(I) {
|
|
4522
4522
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4523
4523
|
return g.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp)$/.test(C);
|
|
@@ -4530,7 +4530,7 @@ function BZ(I) {
|
|
|
4530
4530
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4531
4531
|
return C.endsWith(".docx") || C.endsWith(".doc") || C.endsWith(".xlsx") || C.endsWith(".xls") || g.includes("word") || g.includes("sheet") || g.includes("excel");
|
|
4532
4532
|
}
|
|
4533
|
-
function
|
|
4533
|
+
function sN(I) {
|
|
4534
4534
|
return Rg(I) || Lg(I);
|
|
4535
4535
|
}
|
|
4536
4536
|
function dA(I) {
|
|
@@ -4566,25 +4566,25 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4566
4566
|
forceIframe: { type: Boolean, default: !1 }
|
|
4567
4567
|
},
|
|
4568
4568
|
setup(I) {
|
|
4569
|
-
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b =
|
|
4569
|
+
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b = QC(null), i = QC(null), w = y(() => C.value && !g.forceIframe), s = y(
|
|
4570
4570
|
() => w.value ? Z.value : g.loading
|
|
4571
|
-
), a =
|
|
4571
|
+
), a = y(
|
|
4572
4572
|
() => w.value ? A.value : g.error
|
|
4573
4573
|
);
|
|
4574
4574
|
async function V(e) {
|
|
4575
4575
|
if (!(!i.value || !G.value)) {
|
|
4576
4576
|
Z.value = !0, A.value = null;
|
|
4577
4577
|
try {
|
|
4578
|
-
const
|
|
4578
|
+
const u = await i.value.getPage(e), p = u.getViewport({ scale: c.value }), J = G.value, H = J.getContext("2d");
|
|
4579
4579
|
if (!H) throw new Error("Canvas 不可用");
|
|
4580
4580
|
const z = window.devicePixelRatio || 1;
|
|
4581
|
-
J.width = p.width * z, J.height = p.height * z, J.style.width = `${p.width}px`, J.style.height = `${p.height}px`, H.setTransform(z, 0, 0, z, 0, 0), await
|
|
4581
|
+
J.width = p.width * z, J.height = p.height * z, J.style.width = `${p.width}px`, J.style.height = `${p.height}px`, H.setTransform(z, 0, 0, z, 0, 0), await u.render({
|
|
4582
4582
|
canvasContext: H,
|
|
4583
4583
|
viewport: p,
|
|
4584
4584
|
canvas: J
|
|
4585
4585
|
}).promise, d.value = e;
|
|
4586
|
-
} catch (
|
|
4587
|
-
A.value =
|
|
4586
|
+
} catch (u) {
|
|
4587
|
+
A.value = u instanceof Error ? u.message : "页面渲染失败";
|
|
4588
4588
|
} finally {
|
|
4589
4589
|
Z.value = !1;
|
|
4590
4590
|
}
|
|
@@ -4595,10 +4595,10 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4595
4595
|
if (!(!g.url || !b.value)) {
|
|
4596
4596
|
Z.value = !0, A.value = null, (e = i.value) == null || e.cleanup(), i.value = null, d.value = 1, c.value = 1.2;
|
|
4597
4597
|
try {
|
|
4598
|
-
const
|
|
4599
|
-
i.value =
|
|
4600
|
-
} catch (
|
|
4601
|
-
A.value =
|
|
4598
|
+
const u = await b.value.getDocument({ url: g.url }).promise;
|
|
4599
|
+
i.value = u, l.value = u.numPages, await V(1);
|
|
4600
|
+
} catch (u) {
|
|
4601
|
+
A.value = u instanceof Error ? u.message : "PDF 加载失败";
|
|
4602
4602
|
} finally {
|
|
4603
4603
|
Z.value = !1;
|
|
4604
4604
|
}
|
|
@@ -4621,8 +4621,8 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4621
4621
|
}
|
|
4622
4622
|
return NI(
|
|
4623
4623
|
() => [g.url, g.forceIframe],
|
|
4624
|
-
async ([e,
|
|
4625
|
-
if (
|
|
4624
|
+
async ([e, u]) => {
|
|
4625
|
+
if (u || !e) {
|
|
4626
4626
|
C.value = !1;
|
|
4627
4627
|
return;
|
|
4628
4628
|
}
|
|
@@ -4633,7 +4633,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4633
4633
|
), rZ(() => {
|
|
4634
4634
|
var e;
|
|
4635
4635
|
(e = i.value) == null || e.cleanup(), i.value = null;
|
|
4636
|
-
}), (e,
|
|
4636
|
+
}), (e, u) => (m(), W("div", RW, [
|
|
4637
4637
|
w.value ? (m(), W(Q, { key: 0 }, [
|
|
4638
4638
|
Y("div", HW, [
|
|
4639
4639
|
Y("div", yW, [
|
|
@@ -4679,7 +4679,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4679
4679
|
}, null, 8, JW)
|
|
4680
4680
|
], 4))
|
|
4681
4681
|
], 64)) : (m(), W(Q, { key: 1 }, [
|
|
4682
|
-
s.value ? (m(), W("div", zW, "加载中...")) : a.value ? (m(), W("div", kW, h(a.value), 1)) : I.url ?
|
|
4682
|
+
s.value ? (m(), W("div", zW, "加载中...")) : a.value ? (m(), W("div", kW, h(a.value), 1)) : I.url ? gI(e.$slots, "default", { url: I.url }, () => [
|
|
4683
4683
|
Y("iframe", {
|
|
4684
4684
|
class: "apf-pdf-preview__frame",
|
|
4685
4685
|
src: I.url,
|
|
@@ -4780,17 +4780,17 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4780
4780
|
function o(J) {
|
|
4781
4781
|
Z("update:modelValue", J), w.value && (i.value = J, V(J));
|
|
4782
4782
|
}
|
|
4783
|
-
const S =
|
|
4783
|
+
const S = y(
|
|
4784
4784
|
() => w.value ? l.value : C.sheetNames
|
|
4785
|
-
), k =
|
|
4785
|
+
), k = y(
|
|
4786
4786
|
() => w.value ? i.value : C.modelValue
|
|
4787
|
-
), L =
|
|
4787
|
+
), L = y(
|
|
4788
4788
|
() => w.value ? c.value : C.headers
|
|
4789
|
-
), K =
|
|
4789
|
+
), K = y(() => w.value ? G.value : C.rows), e = y(
|
|
4790
4790
|
() => w.value ? b.value : C.totalRows
|
|
4791
|
-
),
|
|
4791
|
+
), u = y(
|
|
4792
4792
|
() => w.value || C.src || C.arrayBuffer ? A.value : C.loading
|
|
4793
|
-
), p =
|
|
4793
|
+
), p = y(
|
|
4794
4794
|
() => w.value || C.src || C.arrayBuffer ? d.value : C.error
|
|
4795
4795
|
);
|
|
4796
4796
|
return (J, H) => (m(), W("div", TW, [
|
|
@@ -4804,11 +4804,11 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4804
4804
|
}, h(z), 11, QW))), 128))
|
|
4805
4805
|
]),
|
|
4806
4806
|
e.value > 0 ? (m(), W("div", UW, [
|
|
4807
|
-
|
|
4807
|
+
CI(h(e.value) + " 行 ", 1),
|
|
4808
4808
|
e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) : R("", !0)
|
|
4809
4809
|
])) : R("", !0)
|
|
4810
4810
|
])) : R("", !0),
|
|
4811
|
-
|
|
4811
|
+
u.value ? (m(), W("div", OW, "加载中...")) : p.value ? (m(), W("div", EW, h(p.value), 1)) : L.value.length ? (m(), W("div", PW, [
|
|
4812
4812
|
Y("table", rW, [
|
|
4813
4813
|
Y("thead", null, [
|
|
4814
4814
|
Y("tr", null, [
|
|
@@ -4860,23 +4860,23 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4860
4860
|
},
|
|
4861
4861
|
emits: ["download", "close"],
|
|
4862
4862
|
setup(I, { emit: g }) {
|
|
4863
|
-
const C = I, Z = g, A =
|
|
4863
|
+
const C = I, Z = g, A = y(() => {
|
|
4864
4864
|
const w = (C.mimetype || "").toLowerCase(), s = C.filename.toLowerCase();
|
|
4865
4865
|
return w.includes("pdf") || s.endsWith(".pdf") || !!C.pdfUrl;
|
|
4866
|
-
}), d =
|
|
4866
|
+
}), d = y(() => {
|
|
4867
4867
|
const w = (C.mimetype || "").toLowerCase(), s = C.filename.toLowerCase();
|
|
4868
4868
|
return !!C.excelUrl || w.includes("sheet") || w.includes("excel") || s.endsWith(".xls") || s.endsWith(".xlsx");
|
|
4869
|
-
}), l =
|
|
4869
|
+
}), l = y(() => {
|
|
4870
4870
|
var s;
|
|
4871
4871
|
const w = [];
|
|
4872
4872
|
return C.mimetype && w.push(C.mimetype), C.size != null && w.push(GA(C.size) || `${C.size} bytes`), (s = C.chunks) != null && s.length && w.push(`${C.chunks.length} 块`), C.extractionMethod && w.push(C.extractionMethod), w.join(" · ");
|
|
4873
|
-
}), c =
|
|
4873
|
+
}), c = y(() => {
|
|
4874
4874
|
var w;
|
|
4875
4875
|
return (w = C.chunks) != null && w.length ? C.chunks.map((s, a) => `${s.index != null ? `[${s.index}]` : `[${a + 1}]`}
|
|
4876
4876
|
${s.text}`).join(`
|
|
4877
4877
|
|
|
4878
4878
|
`) : "";
|
|
4879
|
-
}), G =
|
|
4879
|
+
}), G = y(() => !!C.pdfUrl && A.value), b = y(() => !!C.excelUrl && d.value && !G.value), i = y(() => !G.value && !b.value);
|
|
4880
4880
|
return (w, s) => {
|
|
4881
4881
|
const a = _("el-button"), V = _("el-scrollbar");
|
|
4882
4882
|
return m(), W("div", IB, [
|
|
@@ -4890,13 +4890,13 @@ ${s.text}`).join(`
|
|
|
4890
4890
|
onClick: s[0] || (s[0] = (X) => Z("download"))
|
|
4891
4891
|
}, {
|
|
4892
4892
|
default: O(() => [...s[1] || (s[1] = [
|
|
4893
|
-
|
|
4893
|
+
CI(" 下载原文件 ", -1)
|
|
4894
4894
|
])]),
|
|
4895
4895
|
_: 1
|
|
4896
4896
|
})
|
|
4897
4897
|
])) : R("", !0),
|
|
4898
4898
|
G.value ? (m(), W("div", lB, [
|
|
4899
|
-
|
|
4899
|
+
gI(w.$slots, "pdf", { url: I.pdfUrl }, () => [
|
|
4900
4900
|
II(cl, {
|
|
4901
4901
|
url: I.pdfUrl,
|
|
4902
4902
|
title: I.filename,
|
|
@@ -4904,10 +4904,10 @@ ${s.text}`).join(`
|
|
|
4904
4904
|
}, null, 8, ["url", "title"])
|
|
4905
4905
|
], !0)
|
|
4906
4906
|
])) : b.value ? (m(), W("div", dB, [
|
|
4907
|
-
|
|
4907
|
+
gI(w.$slots, "excel", { url: I.excelUrl }, () => [
|
|
4908
4908
|
II($W, { src: I.excelUrl }, null, 8, ["src"])
|
|
4909
4909
|
], !0)
|
|
4910
|
-
])) : i.value ? (m(),
|
|
4910
|
+
])) : i.value ? (m(), T(V, {
|
|
4911
4911
|
key: 4,
|
|
4912
4912
|
class: "apf-doc-preview__scroll"
|
|
4913
4913
|
}, {
|
|
@@ -4920,7 +4920,7 @@ ${s.text}`).join(`
|
|
|
4920
4920
|
]);
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
|
-
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]),
|
|
4923
|
+
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]), wN = /* @__PURE__ */ j({
|
|
4924
4924
|
__name: "DocumentPreviewDrawer",
|
|
4925
4925
|
props: {
|
|
4926
4926
|
modelValue: { type: Boolean },
|
|
@@ -4944,7 +4944,7 @@ ${s.text}`).join(`
|
|
|
4944
4944
|
}
|
|
4945
4945
|
return (A, d) => {
|
|
4946
4946
|
const l = _("el-drawer");
|
|
4947
|
-
return m(),
|
|
4947
|
+
return m(), T(l, {
|
|
4948
4948
|
"model-value": I.modelValue,
|
|
4949
4949
|
title: I.filename || "文档预览",
|
|
4950
4950
|
size: I.sizeDrawer,
|
|
@@ -4970,14 +4970,14 @@ ${s.text}`).join(`
|
|
|
4970
4970
|
A.$slots.pdf ? {
|
|
4971
4971
|
name: "pdf",
|
|
4972
4972
|
fn: O((c) => [
|
|
4973
|
-
|
|
4973
|
+
gI(A.$slots, "pdf", OA(EA(c)))
|
|
4974
4974
|
]),
|
|
4975
4975
|
key: "0"
|
|
4976
4976
|
} : void 0,
|
|
4977
4977
|
A.$slots.excel ? {
|
|
4978
4978
|
name: "excel",
|
|
4979
4979
|
fn: O((c) => [
|
|
4980
|
-
|
|
4980
|
+
gI(A.$slots, "excel", OA(EA(c)))
|
|
4981
4981
|
]),
|
|
4982
4982
|
key: "1"
|
|
4983
4983
|
} : void 0
|
|
@@ -4996,7 +4996,7 @@ ${s.text}`).join(`
|
|
|
4996
4996
|
alt: { default: "预览图" }
|
|
4997
4997
|
},
|
|
4998
4998
|
setup(I) {
|
|
4999
|
-
const g = I, C = t(!1), Z = t(0), A =
|
|
4999
|
+
const g = I, C = t(!1), Z = t(0), A = y(() => {
|
|
5000
5000
|
var l;
|
|
5001
5001
|
return (l = g.urls) != null && l.length ? g.urls.filter(Boolean) : g.url ? [g.url] : [];
|
|
5002
5002
|
});
|
|
@@ -5019,7 +5019,7 @@ ${s.text}`).join(`
|
|
|
5019
5019
|
loading: "lazy"
|
|
5020
5020
|
}, null, 8, iB)
|
|
5021
5021
|
], 8, mB))), 128)),
|
|
5022
|
-
C.value && A.value.length ? (m(),
|
|
5022
|
+
C.value && A.value.length ? (m(), T($(Ad), {
|
|
5023
5023
|
key: 0,
|
|
5024
5024
|
"url-list": A.value,
|
|
5025
5025
|
"initial-index": Z.value,
|
|
@@ -5089,7 +5089,7 @@ const NB = {
|
|
|
5089
5089
|
maxHeight: { default: "240px" }
|
|
5090
5090
|
},
|
|
5091
5091
|
setup(I) {
|
|
5092
|
-
const g = I, { copy: C } = VB(), Z =
|
|
5092
|
+
const g = I, { copy: C } = VB(), Z = y(() => g.text.replace(/\s+/g, " ").trim().slice(0, 64));
|
|
5093
5093
|
async function A() {
|
|
5094
5094
|
await C(g.text);
|
|
5095
5095
|
}
|
|
@@ -5115,17 +5115,17 @@ const NB = {
|
|
|
5115
5115
|
},
|
|
5116
5116
|
emits: ["preview"],
|
|
5117
5117
|
setup(I, { emit: g }) {
|
|
5118
|
-
const C = I, Z = g, A =
|
|
5118
|
+
const C = I, Z = g, A = y(() => C.item.kind === "pdf" ? "PDF" : C.item.kind === "office" ? dA({
|
|
5119
5119
|
id: C.item.id,
|
|
5120
5120
|
filename: C.item.filename || C.item.label || "file",
|
|
5121
5121
|
mimetype: C.item.mimetype || ""
|
|
5122
|
-
}) : "文件"), d =
|
|
5122
|
+
}) : "文件"), d = y(() => C.item.filename || C.item.label || A.value);
|
|
5123
5123
|
return (l, c) => (m(), W("button", {
|
|
5124
5124
|
type: "button",
|
|
5125
5125
|
class: "apf-file-chip",
|
|
5126
5126
|
onClick: c[0] || (c[0] = UI((G) => Z("preview", I.item), ["stop"]))
|
|
5127
5127
|
}, [
|
|
5128
|
-
II($(
|
|
5128
|
+
II($(XI), {
|
|
5129
5129
|
name: "document",
|
|
5130
5130
|
size: 14
|
|
5131
5131
|
}),
|
|
@@ -5154,19 +5154,19 @@ const NB = {
|
|
|
5154
5154
|
},
|
|
5155
5155
|
emits: ["preview"],
|
|
5156
5156
|
setup(I, { emit: g }) {
|
|
5157
|
-
const C = I, Z = g, A = t(!1), d = t(null), l =
|
|
5157
|
+
const C = I, Z = g, A = t(!1), d = t(null), l = y(() => C.items.slice(0, C.max)), c = y(
|
|
5158
5158
|
() => l.value.filter((X) => X.kind === "image" && X.url).map((X) => X.url)
|
|
5159
|
-
), G =
|
|
5159
|
+
), G = y(() => l.value.filter((X) => X.kind === "video" && X.url)), b = y(() => l.value.filter((X) => {
|
|
5160
5160
|
var o;
|
|
5161
5161
|
return X.kind === "json" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5162
|
-
})), i =
|
|
5162
|
+
})), i = y(() => l.value.filter((X) => {
|
|
5163
5163
|
var o;
|
|
5164
5164
|
return X.kind === "text" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5165
|
-
})), w =
|
|
5165
|
+
})), w = y(
|
|
5166
5166
|
() => l.value.filter(
|
|
5167
5167
|
(X) => X.kind === "pdf" || X.kind === "office" || X.kind === "file" || X.kind === "image" && !X.url && X.documentId
|
|
5168
5168
|
)
|
|
5169
|
-
), s =
|
|
5169
|
+
), s = y(
|
|
5170
5170
|
() => c.value.length > 0 || G.value.length > 0 || b.value.length > 0 || i.value.length > 0 || w.value.length > 0
|
|
5171
5171
|
);
|
|
5172
5172
|
function a(X) {
|
|
@@ -5181,20 +5181,20 @@ const NB = {
|
|
|
5181
5181
|
key: 0,
|
|
5182
5182
|
class: n(["apf-artifact-gallery", `apf-artifact-gallery--${I.size}`])
|
|
5183
5183
|
}, [
|
|
5184
|
-
c.value.length ? (m(),
|
|
5184
|
+
c.value.length ? (m(), T(BB, {
|
|
5185
5185
|
key: 0,
|
|
5186
5186
|
urls: c.value,
|
|
5187
5187
|
size: I.size
|
|
5188
5188
|
}, null, 8, ["urls", "size"])) : R("", !0),
|
|
5189
5189
|
G.value.length ? (m(), W("div", MB, [
|
|
5190
|
-
(m(!0), W(Q, null, q(G.value, (L) => (m(),
|
|
5190
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), T(wB, {
|
|
5191
5191
|
key: L.id,
|
|
5192
5192
|
url: L.url,
|
|
5193
5193
|
size: I.size
|
|
5194
5194
|
}, null, 8, ["url", "size"]))), 128))
|
|
5195
5195
|
])) : R("", !0),
|
|
5196
5196
|
b.value.length ? (m(), W("div", KB, [
|
|
5197
|
-
(m(!0), W(Q, null, q(b.value, (L) => (m(),
|
|
5197
|
+
(m(!0), W(Q, null, q(b.value, (L) => (m(), T($(VW), {
|
|
5198
5198
|
key: L.id,
|
|
5199
5199
|
title: L.label || "JSON 输出",
|
|
5200
5200
|
content: L.text,
|
|
@@ -5202,14 +5202,14 @@ const NB = {
|
|
|
5202
5202
|
}, null, 8, ["title", "content", "onOpenDetail"]))), 128))
|
|
5203
5203
|
])) : R("", !0),
|
|
5204
5204
|
w.value.length ? (m(), W("div", SB, [
|
|
5205
|
-
(m(!0), W(Q, null, q(w.value, (L) => (m(),
|
|
5205
|
+
(m(!0), W(Q, null, q(w.value, (L) => (m(), T(nB, {
|
|
5206
5206
|
key: L.id,
|
|
5207
5207
|
item: L,
|
|
5208
5208
|
onPreview: a
|
|
5209
5209
|
}, null, 8, ["item"]))), 128))
|
|
5210
5210
|
])) : R("", !0),
|
|
5211
5211
|
i.value.length ? (m(), W("div", DB, [
|
|
5212
|
-
(m(!0), W(Q, null, q(i.value, (L) => (m(),
|
|
5212
|
+
(m(!0), W(Q, null, q(i.value, (L) => (m(), T(RB, {
|
|
5213
5213
|
key: L.id,
|
|
5214
5214
|
text: L.text,
|
|
5215
5215
|
label: L.label,
|
|
@@ -5234,7 +5234,7 @@ const NB = {
|
|
|
5234
5234
|
emits: ["preview"],
|
|
5235
5235
|
setup(I, { emit: g }) {
|
|
5236
5236
|
const C = g;
|
|
5237
|
-
return (Z, A) => (m(),
|
|
5237
|
+
return (Z, A) => (m(), T(cA, {
|
|
5238
5238
|
class: "apf-node-artifact-strip",
|
|
5239
5239
|
items: I.items,
|
|
5240
5240
|
size: "compact",
|
|
@@ -5242,7 +5242,7 @@ const NB = {
|
|
|
5242
5242
|
onPreview: A[0] || (A[0] = (d) => C("preview", d))
|
|
5243
5243
|
}, null, 8, ["items", "max"]));
|
|
5244
5244
|
}
|
|
5245
|
-
}),
|
|
5245
|
+
}), VN = /* @__PURE__ */ U(pB, [["__scopeId", "data-v-27af4171"]]), JB = {
|
|
5246
5246
|
key: 0,
|
|
5247
5247
|
class: "apf-hitl-artifact-panel"
|
|
5248
5248
|
}, zB = {
|
|
@@ -5268,7 +5268,7 @@ const NB = {
|
|
|
5268
5268
|
}, null, 8, ["items", "max"])
|
|
5269
5269
|
])) : R("", !0);
|
|
5270
5270
|
}
|
|
5271
|
-
}),
|
|
5271
|
+
}), NN = /* @__PURE__ */ U(kB, [["__scopeId", "data-v-8c940624"]]), eB = { class: "apf-execution-artifact-panel" }, LB = { class: "apf-execution-artifact-panel__head" }, tB = { class: "apf-execution-artifact-panel__title-row" }, TB = { class: "apf-execution-artifact-panel__title" }, xB = {
|
|
5272
5272
|
key: 0,
|
|
5273
5273
|
class: "apf-execution-artifact-panel__count"
|
|
5274
5274
|
}, jB = {
|
|
@@ -5303,10 +5303,10 @@ const NB = {
|
|
|
5303
5303
|
(o) => d.includes(o.kind) || o.kind === "image" && !o.url && !!o.documentId
|
|
5304
5304
|
) : X === "image" ? V.filter((o) => o.kind === "image" && !!o.url) : V.filter((o) => l(o.kind, X));
|
|
5305
5305
|
}
|
|
5306
|
-
const G =
|
|
5306
|
+
const G = y(() => {
|
|
5307
5307
|
var V;
|
|
5308
5308
|
return (V = C.groups) != null && V.length ? C.groups.flatMap((X) => X.items) : C.items ?? [];
|
|
5309
|
-
}), b =
|
|
5309
|
+
}), b = y(() => {
|
|
5310
5310
|
const V = G.value;
|
|
5311
5311
|
return {
|
|
5312
5312
|
all: V.length,
|
|
@@ -5324,7 +5324,7 @@ const NB = {
|
|
|
5324
5324
|
(X) => d.includes(X.kind) || X.kind === "image" && !X.url && !!X.documentId
|
|
5325
5325
|
).length
|
|
5326
5326
|
};
|
|
5327
|
-
}), i =
|
|
5327
|
+
}), i = y(() => {
|
|
5328
5328
|
const V = b.value;
|
|
5329
5329
|
return [
|
|
5330
5330
|
{ value: "all", label: "全部", count: V.all },
|
|
@@ -5334,7 +5334,7 @@ const NB = {
|
|
|
5334
5334
|
{ value: "json", label: "JSON", count: V.json },
|
|
5335
5335
|
{ value: "file", label: "文件", count: V.file }
|
|
5336
5336
|
].filter((X) => X.value === "all" || X.count > 0);
|
|
5337
|
-
}), w =
|
|
5337
|
+
}), w = y(() => {
|
|
5338
5338
|
var X;
|
|
5339
5339
|
if ((X = C.groups) != null && X.length)
|
|
5340
5340
|
return C.groups.map((o) => ({
|
|
@@ -5343,7 +5343,7 @@ const NB = {
|
|
|
5343
5343
|
})).filter((o) => o.items.length > 0);
|
|
5344
5344
|
const V = c(C.items ?? []);
|
|
5345
5345
|
return V.length ? [{ key: "_all", label: "", items: V }] : [];
|
|
5346
|
-
}), s =
|
|
5346
|
+
}), s = y(() => G.value.length > 0), a = y(() => w.value.some((V) => V.items.length > 0));
|
|
5347
5347
|
return (V, X) => (m(), W("section", eB, [
|
|
5348
5348
|
Y("header", LB, [
|
|
5349
5349
|
Y("div", tB, [
|
|
@@ -5359,7 +5359,7 @@ const NB = {
|
|
|
5359
5359
|
"aria-selected": A.value === o.value,
|
|
5360
5360
|
onClick: (S) => A.value = o.value
|
|
5361
5361
|
}, [
|
|
5362
|
-
|
|
5362
|
+
CI(h(o.label) + " ", 1),
|
|
5363
5363
|
Y("em", null, h(o.count), 1)
|
|
5364
5364
|
], 10, QB))), 128))
|
|
5365
5365
|
])) : R("", !0)
|
|
@@ -5370,7 +5370,7 @@ const NB = {
|
|
|
5370
5370
|
class: "apf-execution-artifact-panel__group"
|
|
5371
5371
|
}, [
|
|
5372
5372
|
o.label ? (m(), W("div", vB, [
|
|
5373
|
-
|
|
5373
|
+
CI(h(o.label) + " ", 1),
|
|
5374
5374
|
Y("em", null, h(o.items.length), 1)
|
|
5375
5375
|
])) : R("", !0),
|
|
5376
5376
|
II(cA, {
|
|
@@ -5380,13 +5380,13 @@ const NB = {
|
|
|
5380
5380
|
onPreview: X[0] || (X[0] = (S) => Z("preview", S))
|
|
5381
5381
|
}, null, 8, ["items", "max"])
|
|
5382
5382
|
]))), 128))
|
|
5383
|
-
])) : (m(),
|
|
5383
|
+
])) : (m(), T(Gg, {
|
|
5384
5384
|
key: 1,
|
|
5385
5385
|
compact: "",
|
|
5386
5386
|
icon: "search",
|
|
5387
5387
|
title: "无匹配产物",
|
|
5388
5388
|
description: "换一个类型筛选试试。"
|
|
5389
|
-
})) : (m(),
|
|
5389
|
+
})) : (m(), T(Gg, {
|
|
5390
5390
|
key: 0,
|
|
5391
5391
|
compact: "",
|
|
5392
5392
|
icon: "folder",
|
|
@@ -5395,7 +5395,7 @@ const NB = {
|
|
|
5395
5395
|
}))
|
|
5396
5396
|
]));
|
|
5397
5397
|
}
|
|
5398
|
-
}),
|
|
5398
|
+
}), XN = /* @__PURE__ */ U(OB, [["__scopeId", "data-v-704305fc"]]);
|
|
5399
5399
|
function bA() {
|
|
5400
5400
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
5401
5401
|
}
|
|
@@ -5403,7 +5403,7 @@ var ig = bA();
|
|
|
5403
5403
|
function bl(I) {
|
|
5404
5404
|
ig = I;
|
|
5405
5405
|
}
|
|
5406
|
-
var
|
|
5406
|
+
var lg = { exec: () => null };
|
|
5407
5407
|
function Ng(I) {
|
|
5408
5408
|
let g = [];
|
|
5409
5409
|
return (C) => {
|
|
@@ -5414,7 +5414,7 @@ function Ng(I) {
|
|
|
5414
5414
|
function AI(I, g = "") {
|
|
5415
5415
|
let C = typeof I == "string" ? I : I.source, Z = { replace: (A, d) => {
|
|
5416
5416
|
let l = typeof d == "string" ? d : d.source;
|
|
5417
|
-
return l = l.replace(
|
|
5417
|
+
return l = l.replace(RI.caret, "$1"), C = C.replace(A, l), Z;
|
|
5418
5418
|
}, getRegex: () => new RegExp(C, g) };
|
|
5419
5419
|
return Z;
|
|
5420
5420
|
}
|
|
@@ -5424,17 +5424,17 @@ var EB = ((I = "") => {
|
|
|
5424
5424
|
} catch {
|
|
5425
5425
|
return !1;
|
|
5426
5426
|
}
|
|
5427
|
-
})(),
|
|
5428
|
-
]`).replace("lheading", il).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, cY = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, bY = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bl = /^( {2,}|\\)\n(?!\s*$)/, mY = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, vI = /[\p{P}\p{S}]/u, Hg = /[\s\p{P}\p{S}]/u, xg = /[^\s\p{P}\p{S}]/u, iY = AI(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Hg).getRegex(), WY = /[\p{Pi}\p{Ps}"']/u, Yl = /(?!~)[\p{P}\p{S}]/u, BY = /(?!~)[\s\p{P}\p{S}]/u, YY = /(?:[^\s\p{P}\p{S}]|~)/u, sY = AI(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", EB ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), sl = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, wY = AI(sl, "u").replace(/punct/g, vI).getRegex(), VY = AI(sl, "u").replace(/punct/g, Yl).getRegex(), NY = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, XY = AI(NY, "u").replace(/openQuote/g, WY).replace(/punct/g, vI).getRegex(), wl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", oY = AI(wl, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), hY = AI(wl, "gu").replace(/notPunctSpace/g, YY).replace(/punctSpace/g, BY).replace(/punct/g, Yl).getRegex(), aY = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", RY = AI(aY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), HY = AI("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), yY = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", uY = AI(yY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), nY = AI(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, vI).getRegex(), MY = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", KY = AI(MY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), SY = AI(/\\(punct)/, "gu").replace(/punct/g, vI).getRegex(), DY = AI(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), FY = AI(BA).replace("(?:-->|$)", "-->").getRegex(), pY = AI("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", FY).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), bC = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, JY = AI(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", bC).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vl = AI(/^!?\[(label)\]\[(ref)\]/).replace("label", bC).replace("ref", WA).getRegex(), Nl = AI(/^!?\[(ref)\](?:\[\])?/).replace("ref", WA).getRegex(), zY = AI("reflink|nolink(?!\\()", "g").replace("reflink", Vl).replace("nolink", Nl).getRegex(), NZ = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, sA = { _backpedal:
|
|
5427
|
+
})(), RI = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (I) => new RegExp(`^( {0,3}${I})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: Ng((I) => new RegExp(`^ {0,${I}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Ng((I) => new RegExp(`^ {0,${I}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}(?:\`\`\`|~~~)`)), headingBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}#`)), htmlBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}>`)) }, PB = /^(?:[ \t]*(?:\n|$))+/, rB = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fB = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Tg = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, qB = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, mA = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ml = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, il = AI(ml).replace(/bull/g, mA).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), _B = AI(ml).replace(/bull/g, mA).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), iA = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, $B = /^[^\n]+/, WA = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, IY = AI(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", WA).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gY = AI(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, mA).getRegex(), sC = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", BA = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, CY = AI("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", BA).replace("tag", sC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Wl = (I) => AI(iA).replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", I).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", sC).getRegex(), AY = Wl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), ZY = Wl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), lY = AI(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ZY).getRegex(), YA = { blockquote: lY, code: rB, def: IY, fences: fB, heading: qB, hr: Tg, html: CY, lheading: il, list: gY, newline: PB, paragraph: AY, table: lg, text: $B }, VZ = AI("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", sC).getRegex(), dY = { ...YA, lheading: _B, table: VZ, paragraph: AI(iA).replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", VZ).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", sC).getRegex() }, GY = { ...YA, html: AI(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", BA).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: lg, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: AI(iA).replace("hr", Tg).replace("heading", ` *#{1,6} *[^
|
|
5428
|
+
]`).replace("lheading", il).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, cY = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, bY = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bl = /^( {2,}|\\)\n(?!\s*$)/, mY = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, vI = /[\p{P}\p{S}]/u, Hg = /[\s\p{P}\p{S}]/u, xg = /[^\s\p{P}\p{S}]/u, iY = AI(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Hg).getRegex(), WY = /[\p{Pi}\p{Ps}"']/u, Yl = /(?!~)[\p{P}\p{S}]/u, BY = /(?!~)[\s\p{P}\p{S}]/u, YY = /(?:[^\s\p{P}\p{S}]|~)/u, sY = AI(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", EB ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), sl = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, wY = AI(sl, "u").replace(/punct/g, vI).getRegex(), VY = AI(sl, "u").replace(/punct/g, Yl).getRegex(), NY = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, XY = AI(NY, "u").replace(/openQuote/g, WY).replace(/punct/g, vI).getRegex(), wl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", oY = AI(wl, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), hY = AI(wl, "gu").replace(/notPunctSpace/g, YY).replace(/punctSpace/g, BY).replace(/punct/g, Yl).getRegex(), aY = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", RY = AI(aY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), HY = AI("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), yY = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", uY = AI(yY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), nY = AI(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, vI).getRegex(), MY = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", KY = AI(MY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), SY = AI(/\\(punct)/, "gu").replace(/punct/g, vI).getRegex(), DY = AI(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), FY = AI(BA).replace("(?:-->|$)", "-->").getRegex(), pY = AI("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", FY).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), bC = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, JY = AI(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", bC).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vl = AI(/^!?\[(label)\]\[(ref)\]/).replace("label", bC).replace("ref", WA).getRegex(), Nl = AI(/^!?\[(ref)\](?:\[\])?/).replace("ref", WA).getRegex(), zY = AI("reflink|nolink(?!\\()", "g").replace("reflink", Vl).replace("nolink", Nl).getRegex(), NZ = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, sA = { _backpedal: lg, anyPunctuation: SY, autolink: DY, blockSkip: sY, br: Bl, code: bY, del: lg, delLDelim: lg, delRDelim: lg, emStrongLDelim: wY, emStrongRDelimAst: oY, emStrongRDelimUnd: HY, escape: cY, link: JY, nolink: Nl, punctuation: iY, reflink: Vl, reflinkSearch: zY, tag: pY, text: mY, url: lg }, kY = { ...sA, emStrongLDelim: XY, emStrongRDelimAst: RY, emStrongRDelimUnd: uY, link: AI(/^!?\[(label)\]\((.*?)\)/).replace("label", bC).getRegex(), reflink: AI(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", bC).getRegex() }, fC = { ...sA, emStrongRDelimAst: hY, emStrongLDelim: VY, delLDelim: nY, delRDelim: KY, url: AI(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", NZ).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: AI(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", NZ).getRegex() }, eY = { ...fC, br: AI(Bl).replace("{2,}", "*").getRegex(), text: AI(fC.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, gC = { normal: YA, gfm: dY, pedantic: GY }, Sg = { normal: sA, gfm: fC, breaks: eY, pedantic: kY }, LY = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, XZ = (I) => LY[I];
|
|
5429
5429
|
function jI(I, g) {
|
|
5430
5430
|
if (g) {
|
|
5431
|
-
if (
|
|
5432
|
-
} else if (
|
|
5431
|
+
if (RI.escapeTest.test(I)) return I.replace(RI.escapeReplace, XZ);
|
|
5432
|
+
} else if (RI.escapeTestNoEncode.test(I)) return I.replace(RI.escapeReplaceNoEncode, XZ);
|
|
5433
5433
|
return I;
|
|
5434
5434
|
}
|
|
5435
5435
|
function oZ(I) {
|
|
5436
5436
|
try {
|
|
5437
|
-
I = encodeURI(I).replace(
|
|
5437
|
+
I = encodeURI(I).replace(RI.percentDecode, "%");
|
|
5438
5438
|
} catch {
|
|
5439
5439
|
return null;
|
|
5440
5440
|
}
|
|
@@ -5442,14 +5442,14 @@ function oZ(I) {
|
|
|
5442
5442
|
}
|
|
5443
5443
|
function hZ(I, g) {
|
|
5444
5444
|
var d;
|
|
5445
|
-
let C = I.replace(
|
|
5445
|
+
let C = I.replace(RI.findPipe, (l, c, G) => {
|
|
5446
5446
|
let b = !1, i = c;
|
|
5447
5447
|
for (; --i >= 0 && G[i] === "\\"; ) b = !b;
|
|
5448
5448
|
return b ? "|" : " |";
|
|
5449
|
-
}), Z = C.split(
|
|
5449
|
+
}), Z = C.split(RI.splitPipe), A = 0;
|
|
5450
5450
|
if (Z[0].trim() || Z.shift(), Z.length > 0 && !((d = Z.at(-1)) != null && d.trim()) && Z.pop(), g) if (Z.length > g) Z.splice(g);
|
|
5451
5451
|
else for (; Z.length < g; ) Z.push("");
|
|
5452
|
-
for (; A < Z.length; A++) Z[A] = Z[A].trim().replace(
|
|
5452
|
+
for (; A < Z.length; A++) Z[A] = Z[A].trim().replace(RI.slashPipe, "|");
|
|
5453
5453
|
return Z;
|
|
5454
5454
|
}
|
|
5455
5455
|
function fI(I, g, C) {
|
|
@@ -5463,7 +5463,7 @@ function fI(I, g, C) {
|
|
|
5463
5463
|
function aZ(I) {
|
|
5464
5464
|
let g = I.split(`
|
|
5465
5465
|
`), C = g.length - 1;
|
|
5466
|
-
for (; C >= 0 &&
|
|
5466
|
+
for (; C >= 0 && RI.blankLine.test(g[C]); ) C--;
|
|
5467
5467
|
return g.length - C <= 2 ? I : g.slice(0, C + 1).join(`
|
|
5468
5468
|
`);
|
|
5469
5469
|
}
|
|
@@ -5612,17 +5612,17 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5612
5612
|
let X = this.rules.other.nextBulletRegex(V), o = this.rules.other.hrRegex(V), S = this.rules.other.fencesBeginRegex(V), k = this.rules.other.headingBeginRegex(V), L = this.rules.other.htmlBeginRegex(V), K = this.rules.other.blockquoteBeginRegex(V);
|
|
5613
5613
|
for (; I; ) {
|
|
5614
5614
|
let e = I.split(`
|
|
5615
|
-
`, 1)[0],
|
|
5616
|
-
if (s = e, this.options.pedantic ? (s = s.replace(this.rules.other.listReplaceNesting, " "),
|
|
5617
|
-
if (
|
|
5618
|
-
` +
|
|
5615
|
+
`, 1)[0], u;
|
|
5616
|
+
if (s = e, this.options.pedantic ? (s = s.replace(this.rules.other.listReplaceNesting, " "), u = s) : u = s.replace(this.rules.other.tabCharGlobal, " "), S.test(s) || k.test(s) || L.test(s) || K.test(s) || X.test(s) || o.test(s)) break;
|
|
5617
|
+
if (u.search(this.rules.other.nonSpaceChar) >= V || !s.trim()) i += `
|
|
5618
|
+
` + u.slice(V);
|
|
5619
5619
|
else {
|
|
5620
5620
|
if (a || w.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(w) || k.test(w) || o.test(w)) break;
|
|
5621
5621
|
i += `
|
|
5622
5622
|
` + s;
|
|
5623
5623
|
}
|
|
5624
5624
|
a = !s.trim(), b += e + `
|
|
5625
|
-
`, I = I.substring(e.length + 1), w =
|
|
5625
|
+
`, I = I.substring(e.length + 1), w = u.slice(V);
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
5628
5628
|
A.loose || (l ? A.loose = !0 : this.rules.other.doubleBlankLine.test(b) && (l = !0)), A.items.push({ type: "list_item", raw: b, task: !!this.options.gfm && this.rules.other.listIsTask.test(i), loose: !1, text: i, tokens: [] }), A.raw += b;
|
|
@@ -5835,7 +5835,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5835
5835
|
return { type: "text", raw: g[0], text: g[0], escaped: C };
|
|
5836
5836
|
}
|
|
5837
5837
|
}
|
|
5838
|
-
}, eI = class
|
|
5838
|
+
}, eI = class qC {
|
|
5839
5839
|
constructor(g) {
|
|
5840
5840
|
GI(this, "tokens");
|
|
5841
5841
|
GI(this, "options");
|
|
@@ -5843,20 +5843,20 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5843
5843
|
GI(this, "inlineQueue");
|
|
5844
5844
|
GI(this, "tokenizer");
|
|
5845
5845
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = g || ig, this.options.tokenizer = this.options.tokenizer || new mC(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, linkEmitted: !1, top: !0 };
|
|
5846
|
-
let C = { other:
|
|
5846
|
+
let C = { other: RI, block: gC.normal, inline: Sg.normal };
|
|
5847
5847
|
this.options.pedantic ? (C.block = gC.pedantic, C.inline = Sg.pedantic) : this.options.gfm && (C.block = gC.gfm, this.options.breaks ? C.inline = Sg.breaks : C.inline = Sg.gfm), this.tokenizer.rules = C;
|
|
5848
5848
|
}
|
|
5849
5849
|
static get rules() {
|
|
5850
5850
|
return { block: gC, inline: Sg };
|
|
5851
5851
|
}
|
|
5852
5852
|
static lex(g, C) {
|
|
5853
|
-
return new
|
|
5853
|
+
return new qC(C).lex(g);
|
|
5854
5854
|
}
|
|
5855
5855
|
static lexInline(g, C) {
|
|
5856
|
-
return new
|
|
5856
|
+
return new qC(C).inlineTokens(g);
|
|
5857
5857
|
}
|
|
5858
5858
|
lex(g) {
|
|
5859
|
-
g = g.replace(
|
|
5859
|
+
g = g.replace(RI.carriageReturn, `
|
|
5860
5860
|
`), this.blockTokens(g, this.tokens);
|
|
5861
5861
|
for (let C = 0; C < this.inlineQueue.length; C++) {
|
|
5862
5862
|
let Z = this.inlineQueue[C];
|
|
@@ -5866,7 +5866,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5866
5866
|
}
|
|
5867
5867
|
blockTokens(g, C = [], Z = !1) {
|
|
5868
5868
|
var d, l, c;
|
|
5869
|
-
this.tokenizer.lexer = this, this.options.pedantic && (g = g.replace(
|
|
5869
|
+
this.tokenizer.lexer = this, this.options.pedantic && (g = g.replace(RI.tabCharGlobal, " ").replace(RI.spaceLine, ""));
|
|
5870
5870
|
let A = 1 / 0;
|
|
5871
5871
|
for (; g; ) {
|
|
5872
5872
|
if (g.length < A) A = g.length;
|
|
@@ -6085,7 +6085,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
6085
6085
|
}
|
|
6086
6086
|
code({ text: I, lang: g, escaped: C }) {
|
|
6087
6087
|
var d;
|
|
6088
|
-
let Z = (d = (g || "").match(
|
|
6088
|
+
let Z = (d = (g || "").match(RI.notSpaceStart)) == null ? void 0 : d[0], A = I.replace(RI.endingNewline, "") + `
|
|
6089
6089
|
`;
|
|
6090
6090
|
return Z ? '<pre><code class="language-' + jI(Z) + '">' + (C ? A : jI(A, !0)) + `</code></pre>
|
|
6091
6091
|
` : "<pre><code>" + (C ? A : jI(A, !0)) + `</code></pre>
|
|
@@ -6223,7 +6223,7 @@ ${I}</tr>
|
|
|
6223
6223
|
checkbox({ raw: I }) {
|
|
6224
6224
|
return I;
|
|
6225
6225
|
}
|
|
6226
|
-
}, LI = class
|
|
6226
|
+
}, LI = class _C {
|
|
6227
6227
|
constructor(g) {
|
|
6228
6228
|
GI(this, "options");
|
|
6229
6229
|
GI(this, "renderer");
|
|
@@ -6231,10 +6231,10 @@ ${I}</tr>
|
|
|
6231
6231
|
this.options = g || ig, this.options.renderer = this.options.renderer || new iC(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new wA();
|
|
6232
6232
|
}
|
|
6233
6233
|
static parse(g, C) {
|
|
6234
|
-
return new
|
|
6234
|
+
return new _C(C).parse(g);
|
|
6235
6235
|
}
|
|
6236
6236
|
static parseInline(g, C) {
|
|
6237
|
-
return new
|
|
6237
|
+
return new _C(C).parseInline(g);
|
|
6238
6238
|
}
|
|
6239
6239
|
parse(g) {
|
|
6240
6240
|
var Z, A;
|
|
@@ -6635,37 +6635,37 @@ function PY(I, g) {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
}
|
|
6637
6637
|
const Xl = Object.entries, yZ = Object.setPrototypeOf, rY = Object.isFrozen, fY = Object.getPrototypeOf, qY = Object.getOwnPropertyDescriptor;
|
|
6638
|
-
let VI = Object.freeze,
|
|
6638
|
+
let VI = Object.freeze, oI = Object.seal, Xg = Object.create, ol = typeof Reflect < "u" && Reflect, $C = ol.apply, IA = ol.construct;
|
|
6639
6639
|
VI || (VI = function(g) {
|
|
6640
6640
|
return g;
|
|
6641
6641
|
});
|
|
6642
|
-
|
|
6642
|
+
oI || (oI = function(g) {
|
|
6643
6643
|
return g;
|
|
6644
6644
|
});
|
|
6645
|
-
|
|
6645
|
+
$C || ($C = function(g, C) {
|
|
6646
6646
|
for (var Z = arguments.length, A = new Array(Z > 2 ? Z - 2 : 0), d = 2; d < Z; d++)
|
|
6647
6647
|
A[d - 2] = arguments[d];
|
|
6648
6648
|
return g.apply(C, A);
|
|
6649
6649
|
});
|
|
6650
|
-
|
|
6650
|
+
IA || (IA = function(g) {
|
|
6651
6651
|
for (var C = arguments.length, Z = new Array(C > 1 ? C - 1 : 0), A = 1; A < C; A++)
|
|
6652
6652
|
Z[A - 1] = arguments[A];
|
|
6653
6653
|
return new g(...Z);
|
|
6654
6654
|
});
|
|
6655
|
-
const
|
|
6655
|
+
const Zg = wI(Array.prototype.forEach), _Y = wI(Array.prototype.lastIndexOf), uZ = wI(Array.prototype.pop), Dg = wI(Array.prototype.push), $Y = wI(Array.prototype.splice), hg = Array.isArray, zg = wI(String.prototype.toLowerCase), pC = wI(String.prototype.toString), nZ = wI(String.prototype.match), Fg = wI(String.prototype.replace), MZ = wI(String.prototype.indexOf), Is = wI(String.prototype.trim), gs = wI(Number.prototype.toString), Cs = wI(Boolean.prototype.toString), KZ = typeof BigInt > "u" ? null : wI(BigInt.prototype.toString), SZ = typeof Symbol > "u" ? null : wI(Symbol.prototype.toString), MI = wI(Object.prototype.hasOwnProperty), pg = wI(Object.prototype.toString), aI = wI(RegExp.prototype.test), Ag = As(TypeError);
|
|
6656
6656
|
function wI(I) {
|
|
6657
6657
|
return function(g) {
|
|
6658
6658
|
g instanceof RegExp && (g.lastIndex = 0);
|
|
6659
6659
|
for (var C = arguments.length, Z = new Array(C > 1 ? C - 1 : 0), A = 1; A < C; A++)
|
|
6660
6660
|
Z[A - 1] = arguments[A];
|
|
6661
|
-
return
|
|
6661
|
+
return $C(I, g, Z);
|
|
6662
6662
|
};
|
|
6663
6663
|
}
|
|
6664
6664
|
function As(I) {
|
|
6665
6665
|
return function() {
|
|
6666
6666
|
for (var g = arguments.length, C = new Array(g), Z = 0; Z < g; Z++)
|
|
6667
6667
|
C[Z] = arguments[Z];
|
|
6668
|
-
return
|
|
6668
|
+
return IA(I, C);
|
|
6669
6669
|
};
|
|
6670
6670
|
}
|
|
6671
6671
|
function lI(I, g) {
|
|
@@ -6744,18 +6744,18 @@ function zI(I, g) {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
function ds(I) {
|
|
6746
6746
|
try {
|
|
6747
|
-
return
|
|
6747
|
+
return aI(I, ""), !0;
|
|
6748
6748
|
} catch {
|
|
6749
6749
|
return !1;
|
|
6750
6750
|
}
|
|
6751
6751
|
}
|
|
6752
|
-
const DZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
6752
|
+
const DZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), JC = VI(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), zC = VI(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Gs = VI(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), kC = VI(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cs = VI(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), FZ = VI(["#text"]), pZ = VI(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), eC = VI(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "pointer-events", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), JZ = VI(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), CC = VI(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bs = oI(/{{[\w\W]*|^[\w\W]*}}/g), ms = oI(/<%[\w\W]*|^[\w\W]*%>/g), is = oI(/\${[\w\W]*/g), Ws = oI(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bs = oI(/^aria-[\-\w]+$/), zZ = oI(
|
|
6753
6753
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
6754
6754
|
// eslint-disable-line no-useless-escape
|
|
6755
|
-
), Ys =
|
|
6755
|
+
), Ys = oI(/^(?:\w+script|data):/i), ss = oI(
|
|
6756
6756
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
6757
6757
|
// eslint-disable-line no-control-regex
|
|
6758
|
-
), ws =
|
|
6758
|
+
), ws = oI(/^html$/i), Vs = oI(/^[a-z][.\w]*(-[.\w]+)+$/i), kZ = oI(/<[/\w!]/g), eZ = oI(/<[/\w]/g), Ns = oI(/<\/no(script|embed|frames)/i), Xs = oI(/\/>/i), KI = {
|
|
6759
6759
|
element: 1,
|
|
6760
6760
|
attribute: 2,
|
|
6761
6761
|
text: 3,
|
|
@@ -6773,8 +6773,8 @@ const DZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
6773
6773
|
// Deprecated
|
|
6774
6774
|
}, hl = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], os = VI(lI({}, hl)), hs = (function() {
|
|
6775
6775
|
const I = {};
|
|
6776
|
-
return
|
|
6777
|
-
I[g] =
|
|
6776
|
+
return Zg(hl, (g) => {
|
|
6777
|
+
I[g] = oI(new RegExp("</" + g + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
6778
6778
|
}), VI(I);
|
|
6779
6779
|
})(), as = function() {
|
|
6780
6780
|
return typeof window > "u" ? null : window;
|
|
@@ -6811,7 +6811,7 @@ const DZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
6811
6811
|
};
|
|
6812
6812
|
}, qI = function(g, C, Z, A) {
|
|
6813
6813
|
return MI(g, C) && hg(g[C]) ? lI(A.base ? SI(A.base) : {}, g[C], A.transform) : Z;
|
|
6814
|
-
},
|
|
6814
|
+
}, LC = function(g, C, Z) {
|
|
6815
6815
|
const A = MI(g, C) ? g[C] : void 0;
|
|
6816
6816
|
return A && typeof A == "object" ? SI(A) : Z();
|
|
6817
6817
|
};
|
|
@@ -6825,7 +6825,7 @@ function al() {
|
|
|
6825
6825
|
I.DocumentFragment;
|
|
6826
6826
|
const d = I.HTMLTemplateElement, l = I.Node, c = I.Element, G = I.NodeFilter, b = I.NamedNodeMap;
|
|
6827
6827
|
b === void 0 && (I.NamedNodeMap || I.MozNamedAttrMap), I.HTMLFormElement;
|
|
6828
|
-
const i = I.DOMParser, w = I.trustedTypes, s = c.prototype, a = zI(s, "cloneNode"), V = zI(s, "remove"), X = zI(s, "nextSibling"), o = zI(s, "childNodes"), S = zI(s, "parentNode"), k = zI(s, "shadowRoot"), L = zI(s, "attributes"), K = l && l.prototype ? zI(l.prototype, "nodeType") : null, e = l && l.prototype ? zI(l.prototype, "nodeName") : null,
|
|
6828
|
+
const i = I.DOMParser, w = I.trustedTypes, s = c.prototype, a = zI(s, "cloneNode"), V = zI(s, "remove"), X = zI(s, "nextSibling"), o = zI(s, "childNodes"), S = zI(s, "parentNode"), k = zI(s, "shadowRoot"), L = zI(s, "attributes"), K = l && l.prototype ? zI(l.prototype, "nodeType") : null, e = l && l.prototype ? zI(l.prototype, "nodeName") : null, u = l && l.prototype ? zI(l.prototype, "ownerDocument") : null, p = function(B) {
|
|
6829
6829
|
return K ? K(B) : B.nodeType;
|
|
6830
6830
|
}, J = function(B) {
|
|
6831
6831
|
return e ? e(B) : B.nodeName;
|
|
@@ -6837,7 +6837,7 @@ function al() {
|
|
|
6837
6837
|
let H, z = "", D, f = !1, ZI = 0;
|
|
6838
6838
|
const DI = function() {
|
|
6839
6839
|
if (ZI > 0)
|
|
6840
|
-
throw
|
|
6840
|
+
throw Ag('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
6841
6841
|
}, FI = function(B) {
|
|
6842
6842
|
DI(), ZI++;
|
|
6843
6843
|
try {
|
|
@@ -6854,14 +6854,14 @@ function al() {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
}, r = function() {
|
|
6856
6856
|
return f || (D = Rs(w, A), f = !0), D;
|
|
6857
|
-
},
|
|
6857
|
+
}, hI = C, HI = hI.implementation, pI = hI.createNodeIterator, OI = hI.createDocumentFragment, $I = hI.getElementsByTagName, sI = Z.importNode;
|
|
6858
6858
|
let mI = LZ();
|
|
6859
6859
|
g.isSupported = typeof Xl == "function" && typeof S == "function" && HI && HI.createHTMLDocument !== void 0;
|
|
6860
6860
|
const Hl = bs, yl = ms, ul = is, nl = Ws, Ml = Bs, Kl = Ys, VA = ss, Sl = Vs;
|
|
6861
6861
|
let NA = zZ, iI = null;
|
|
6862
|
-
const
|
|
6862
|
+
const wC = lI({}, [...DZ, ...JC, ...zC, ...kC, ...FZ]);
|
|
6863
6863
|
let WI = null;
|
|
6864
|
-
const
|
|
6864
|
+
const VC = lI({}, [...pZ, ...eC, ...JZ, ...CC]);
|
|
6865
6865
|
let tI = Object.seal(Xg(null, {
|
|
6866
6866
|
tagNameCheck: {
|
|
6867
6867
|
writable: !0,
|
|
@@ -6896,9 +6896,9 @@ function al() {
|
|
|
6896
6896
|
value: null
|
|
6897
6897
|
}
|
|
6898
6898
|
}));
|
|
6899
|
-
let oA = !0,
|
|
6899
|
+
let oA = !0, NC = !0, hA = !1, aA = !0, PI = !1, Ig = !0, gg = !1, XC = !1, jg = null, Qg = null, oC = !1, Wg = !1, Ug = !1, vg = !1, RA = !0, HA = !1;
|
|
6900
6900
|
const yA = "user-content-";
|
|
6901
|
-
let
|
|
6901
|
+
let hC = !0, aC = !1, Bg = {}, Yg = null;
|
|
6902
6902
|
const uA = lI({}, [
|
|
6903
6903
|
"annotation-xml",
|
|
6904
6904
|
"audio",
|
|
@@ -6940,28 +6940,28 @@ function al() {
|
|
|
6940
6940
|
const MA = lI({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
6941
6941
|
let KA = null;
|
|
6942
6942
|
const SA = lI({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Og = "http://www.w3.org/1998/Math/MathML", Eg = "http://www.w3.org/2000/svg", TI = "http://www.w3.org/1999/xhtml";
|
|
6943
|
-
let sg = TI,
|
|
6944
|
-
const Dl = lI({}, [Og, Eg, TI],
|
|
6945
|
-
let
|
|
6943
|
+
let sg = TI, RC = !1, HC = null;
|
|
6944
|
+
const Dl = lI({}, [Og, Eg, TI], pC), DA = VI(["mi", "mo", "mn", "ms", "mtext"]);
|
|
6945
|
+
let yC = lI({}, DA);
|
|
6946
6946
|
const FA = VI(["annotation-xml"]);
|
|
6947
|
-
let
|
|
6947
|
+
let uC = lI({}, FA);
|
|
6948
6948
|
const Fl = lI({}, ["title", "style", "font", "a", "script"]);
|
|
6949
6949
|
let ug = null;
|
|
6950
6950
|
const pl = ["application/xhtml+xml", "text/html"], Jl = "text/html";
|
|
6951
6951
|
let YI = null, wg = null;
|
|
6952
6952
|
const zl = C.createElement("form"), pA = function(B) {
|
|
6953
6953
|
return B instanceof RegExp || B instanceof Function;
|
|
6954
|
-
},
|
|
6954
|
+
}, nC = function() {
|
|
6955
6955
|
let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6956
6956
|
if (wg && wg === B)
|
|
6957
6957
|
return;
|
|
6958
6958
|
(!B || typeof B != "object") && (B = {}), B = SI(B), ug = // eslint-disable-next-line unicorn/prefer-includes
|
|
6959
|
-
pl.indexOf(B.PARSER_MEDIA_TYPE) === -1 ? Jl : B.PARSER_MEDIA_TYPE, YI = ug === "application/xhtml+xml" ?
|
|
6959
|
+
pl.indexOf(B.PARSER_MEDIA_TYPE) === -1 ? Jl : B.PARSER_MEDIA_TYPE, YI = ug === "application/xhtml+xml" ? pC : zg, iI = qI(B, "ALLOWED_TAGS", wC, {
|
|
6960
6960
|
transform: YI
|
|
6961
|
-
}), WI = qI(B, "ALLOWED_ATTR",
|
|
6961
|
+
}), WI = qI(B, "ALLOWED_ATTR", VC, {
|
|
6962
6962
|
transform: YI
|
|
6963
|
-
}),
|
|
6964
|
-
transform:
|
|
6963
|
+
}), HC = qI(B, "ALLOWED_NAMESPACES", Dl, {
|
|
6964
|
+
transform: pC
|
|
6965
6965
|
}), KA = qI(B, "ADD_URI_SAFE_ATTR", SA, {
|
|
6966
6966
|
transform: YI,
|
|
6967
6967
|
base: SA
|
|
@@ -6974,46 +6974,46 @@ function al() {
|
|
|
6974
6974
|
transform: YI
|
|
6975
6975
|
}), XA = qI(B, "FORBID_ATTR", SI({}), {
|
|
6976
6976
|
transform: YI
|
|
6977
|
-
}), Bg = MI(B, "USE_PROFILES") ? B.USE_PROFILES && typeof B.USE_PROFILES == "object" ? SI(B.USE_PROFILES) : B.USE_PROFILES : !1, oA = B.ALLOW_ARIA_ATTR !== !1,
|
|
6977
|
+
}), Bg = MI(B, "USE_PROFILES") ? B.USE_PROFILES && typeof B.USE_PROFILES == "object" ? SI(B.USE_PROFILES) : B.USE_PROFILES : !1, oA = B.ALLOW_ARIA_ATTR !== !1, NC = B.ALLOW_DATA_ATTR !== !1, hA = B.ALLOW_UNKNOWN_PROTOCOLS || !1, aA = B.ALLOW_SELF_CLOSE_IN_ATTR !== !1, PI = B.SAFE_FOR_TEMPLATES || !1, Ig = B.SAFE_FOR_XML !== !1, gg = B.WHOLE_DOCUMENT || !1, Wg = B.RETURN_DOM || !1, Ug = B.RETURN_DOM_FRAGMENT || !1, vg = B.RETURN_TRUSTED_TYPE || !1, oC = B.FORCE_BODY || !1, RA = B.SANITIZE_DOM !== !1, HA = B.SANITIZE_NAMED_PROPS || !1, hC = B.KEEP_CONTENT !== !1, aC = B.IN_PLACE || !1, NA = ds(B.ALLOWED_URI_REGEXP) ? B.ALLOWED_URI_REGEXP : zZ, sg = typeof B.NAMESPACE == "string" ? B.NAMESPACE : TI, yC = LC(
|
|
6978
6978
|
B,
|
|
6979
6979
|
"MATHML_TEXT_INTEGRATION_POINTS",
|
|
6980
6980
|
() => lI({}, DA)
|
|
6981
6981
|
// Default built-in map
|
|
6982
|
-
),
|
|
6982
|
+
), uC = LC(
|
|
6983
6983
|
B,
|
|
6984
6984
|
"HTML_INTEGRATION_POINTS",
|
|
6985
6985
|
() => lI({}, FA)
|
|
6986
6986
|
// Default built-in map
|
|
6987
6987
|
);
|
|
6988
|
-
const N =
|
|
6989
|
-
if (tI = Xg(null), MI(N, "tagNameCheck") && pA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && pA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements),
|
|
6988
|
+
const N = LC(B, "CUSTOM_ELEMENT_HANDLING", () => Xg(null));
|
|
6989
|
+
if (tI = Xg(null), MI(N, "tagNameCheck") && pA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && pA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), oI(tI), PI && (NC = !1), Ug && (Wg = !0), Bg && (iI = lI({}, FZ), WI = Xg(null), Bg.html === !0 && (lI(iI, DZ), lI(WI, pZ)), Bg.svg === !0 && (lI(iI, JC), lI(WI, eC), lI(WI, CC)), Bg.svgFilters === !0 && (lI(iI, zC), lI(WI, eC), lI(WI, CC)), Bg.mathMl === !0 && (lI(iI, kC), lI(WI, JZ), lI(WI, CC))), EI.tagCheck = null, EI.attributeCheck = null, MI(B, "ADD_TAGS") && (typeof B.ADD_TAGS == "function" ? EI.tagCheck = B.ADD_TAGS : hg(B.ADD_TAGS) && (iI === wC && (iI = SI(iI)), lI(iI, B.ADD_TAGS, YI))), MI(B, "ADD_ATTR") && (typeof B.ADD_ATTR == "function" ? EI.attributeCheck = B.ADD_ATTR : hg(B.ADD_ATTR) && (WI === VC && (WI = SI(WI)), lI(WI, B.ADD_ATTR, YI))), MI(B, "ADD_FORBID_CONTENTS") && hg(B.ADD_FORBID_CONTENTS) && (Yg === uA && (Yg = SI(Yg)), lI(Yg, B.ADD_FORBID_CONTENTS, YI)), hC && (iI["#text"] = !0), gg && lI(iI, ["html", "head", "body"]), iI.table && (lI(iI, ["tbody"]), delete yg.tbody), B.TRUSTED_TYPES_POLICY) {
|
|
6990
6990
|
if (typeof B.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
6991
|
-
throw
|
|
6991
|
+
throw Ag('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
6992
6992
|
if (typeof B.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
6993
|
-
throw
|
|
6993
|
+
throw Ag('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
6994
6994
|
const M = H;
|
|
6995
6995
|
H = B.TRUSTED_TYPES_POLICY;
|
|
6996
6996
|
try {
|
|
6997
6997
|
z = FI("");
|
|
6998
|
-
} catch (
|
|
6999
|
-
throw H = M,
|
|
6998
|
+
} catch (x) {
|
|
6999
|
+
throw H = M, x;
|
|
7000
7000
|
}
|
|
7001
7001
|
} else B.TRUSTED_TYPES_POLICY === null ? (H = void 0, z = "") : (H === void 0 && (H = r()), H && typeof z == "string" && (z = FI("")));
|
|
7002
7002
|
VI && VI(B), wg = B;
|
|
7003
|
-
}, JA = lI({}, [...
|
|
7004
|
-
return N.namespaceURI === TI ? B === "svg" : N.namespaceURI === Og ? B === "svg" && (M === "annotation-xml" ||
|
|
7003
|
+
}, JA = lI({}, [...JC, ...zC, ...Gs]), zA = lI({}, [...kC, ...cs]), kl = function(B, N, M) {
|
|
7004
|
+
return N.namespaceURI === TI ? B === "svg" : N.namespaceURI === Og ? B === "svg" && (M === "annotation-xml" || yC[M]) : !!JA[B];
|
|
7005
7005
|
}, el = function(B, N, M) {
|
|
7006
|
-
return N.namespaceURI === TI ? B === "math" : N.namespaceURI === Eg ? B === "math" &&
|
|
7006
|
+
return N.namespaceURI === TI ? B === "math" : N.namespaceURI === Eg ? B === "math" && uC[M] : !!zA[B];
|
|
7007
7007
|
}, Ll = function(B, N, M) {
|
|
7008
|
-
return N.namespaceURI === Eg && !
|
|
7008
|
+
return N.namespaceURI === Eg && !uC[M] || N.namespaceURI === Og && !yC[M] ? !1 : !zA[B] && (Fl[B] || !JA[B]);
|
|
7009
7009
|
}, tl = function(B) {
|
|
7010
7010
|
let N = S(B);
|
|
7011
7011
|
(!N || !N.tagName) && (N = {
|
|
7012
7012
|
namespaceURI: sg,
|
|
7013
7013
|
tagName: "template"
|
|
7014
7014
|
});
|
|
7015
|
-
const M = zg(B.tagName),
|
|
7016
|
-
return
|
|
7015
|
+
const M = zg(B.tagName), x = zg(N.tagName);
|
|
7016
|
+
return HC[B.namespaceURI] ? B.namespaceURI === Eg ? kl(M, N, x) : B.namespaceURI === Og ? el(M, N, x) : B.namespaceURI === TI ? Ll(M, N, x) : !!(ug === "application/xhtml+xml" && HC[B.namespaceURI]) : !1;
|
|
7017
7017
|
}, rI = function(B) {
|
|
7018
7018
|
Dg(g.removed, {
|
|
7019
7019
|
element: B
|
|
@@ -7022,7 +7022,7 @@ function al() {
|
|
|
7022
7022
|
S(B).removeChild(B);
|
|
7023
7023
|
} catch {
|
|
7024
7024
|
if (V(B), !S(B))
|
|
7025
|
-
throw
|
|
7025
|
+
throw Ag("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
7026
7026
|
}
|
|
7027
7027
|
}, kA = function(B, N, M) {
|
|
7028
7028
|
try {
|
|
@@ -7037,10 +7037,10 @@ function al() {
|
|
|
7037
7037
|
rg(B);
|
|
7038
7038
|
const N = o(B);
|
|
7039
7039
|
if (N) {
|
|
7040
|
-
const
|
|
7041
|
-
|
|
7042
|
-
Dg(
|
|
7043
|
-
}),
|
|
7040
|
+
const x = [];
|
|
7041
|
+
Zg(N, (v) => {
|
|
7042
|
+
Dg(x, v);
|
|
7043
|
+
}), Zg(x, (v) => {
|
|
7044
7044
|
try {
|
|
7045
7045
|
V(v);
|
|
7046
7046
|
} catch {
|
|
@@ -7049,11 +7049,11 @@ function al() {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
const M = L(B);
|
|
7051
7051
|
if (M)
|
|
7052
|
-
for (let
|
|
7053
|
-
const v = M[
|
|
7052
|
+
for (let x = M.length - 1; x >= 0; --x) {
|
|
7053
|
+
const v = M[x], P = v && v.name;
|
|
7054
7054
|
typeof P == "string" && kA(B, v, P);
|
|
7055
7055
|
}
|
|
7056
|
-
},
|
|
7056
|
+
}, Cg = function(B, N, M) {
|
|
7057
7057
|
if (!M)
|
|
7058
7058
|
try {
|
|
7059
7059
|
M = N.getAttributeNode(B);
|
|
@@ -7087,8 +7087,8 @@ function al() {
|
|
|
7087
7087
|
const N = L(B);
|
|
7088
7088
|
if (N)
|
|
7089
7089
|
for (let M = N.length - 1; M >= 0; --M) {
|
|
7090
|
-
const
|
|
7091
|
-
typeof v != "string" || WI[YI(v)] || kA(B,
|
|
7090
|
+
const x = N[M], v = x && x.name;
|
|
7091
|
+
typeof v != "string" || WI[YI(v)] || kA(B, x, v);
|
|
7092
7092
|
}
|
|
7093
7093
|
}, rg = function(B) {
|
|
7094
7094
|
const N = [B];
|
|
@@ -7101,21 +7101,21 @@ function al() {
|
|
|
7101
7101
|
N.push(v[P]);
|
|
7102
7102
|
}
|
|
7103
7103
|
}, eA = function(B, N) {
|
|
7104
|
-
return
|
|
7104
|
+
return Ig ? B === "patchsrc" ? !0 : B === "for" && N !== "label" && N !== "output" : !1;
|
|
7105
7105
|
}, xl = function(B) {
|
|
7106
|
-
if (!
|
|
7106
|
+
if (!Ig)
|
|
7107
7107
|
return;
|
|
7108
7108
|
const N = [B];
|
|
7109
7109
|
for (; N.length > 0; ) {
|
|
7110
|
-
const M = N.pop(),
|
|
7111
|
-
if (
|
|
7110
|
+
const M = N.pop(), x = p(M);
|
|
7111
|
+
if (x === KI.processingInstruction || x === KI.comment && aI(eZ, M.data)) {
|
|
7112
7112
|
try {
|
|
7113
7113
|
V(M);
|
|
7114
7114
|
} catch {
|
|
7115
7115
|
}
|
|
7116
7116
|
continue;
|
|
7117
7117
|
}
|
|
7118
|
-
if (
|
|
7118
|
+
if (x === KI.element) {
|
|
7119
7119
|
const P = M, bI = YI(J(M));
|
|
7120
7120
|
try {
|
|
7121
7121
|
P.hasAttribute && P.hasAttribute("patchsrc") && P.removeAttribute("patchsrc"), P.hasAttribute && P.hasAttribute("for") && eA("for", bI) && P.removeAttribute("for");
|
|
@@ -7129,30 +7129,30 @@ function al() {
|
|
|
7129
7129
|
}
|
|
7130
7130
|
}, LA = function(B) {
|
|
7131
7131
|
let N = null, M = null;
|
|
7132
|
-
if (
|
|
7132
|
+
if (oC)
|
|
7133
7133
|
B = "<remove></remove>" + B;
|
|
7134
7134
|
else {
|
|
7135
7135
|
const P = nZ(B, /^[\r\n\t ]+/);
|
|
7136
7136
|
M = P && P[0];
|
|
7137
7137
|
}
|
|
7138
7138
|
ug === "application/xhtml+xml" && sg === TI && (B = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + B + "</body></html>");
|
|
7139
|
-
const
|
|
7139
|
+
const x = H ? FI(B) : B;
|
|
7140
7140
|
if (sg === TI)
|
|
7141
7141
|
try {
|
|
7142
|
-
N = new i().parseFromString(
|
|
7142
|
+
N = new i().parseFromString(x, ug);
|
|
7143
7143
|
} catch {
|
|
7144
7144
|
}
|
|
7145
7145
|
if (!N || !N.documentElement) {
|
|
7146
7146
|
N = HI.createDocument(sg, "template", null);
|
|
7147
7147
|
try {
|
|
7148
|
-
N.documentElement.innerHTML =
|
|
7148
|
+
N.documentElement.innerHTML = RC ? z : x;
|
|
7149
7149
|
} catch {
|
|
7150
7150
|
}
|
|
7151
7151
|
}
|
|
7152
7152
|
const v = N.body || N.documentElement;
|
|
7153
|
-
return B && M && v.insertBefore(C.createTextNode(M), v.childNodes[0] || null), sg === TI ?
|
|
7153
|
+
return B && M && v.insertBefore(C.createTextNode(M), v.childNodes[0] || null), sg === TI ? $I.call(N, gg ? "html" : "body")[0] : gg ? N.documentElement : v;
|
|
7154
7154
|
}, tA = function(B) {
|
|
7155
|
-
const N =
|
|
7155
|
+
const N = u ? u(B) : B.ownerDocument;
|
|
7156
7156
|
return pI.call(
|
|
7157
7157
|
N || B,
|
|
7158
7158
|
B,
|
|
@@ -7162,22 +7162,22 @@ function al() {
|
|
|
7162
7162
|
);
|
|
7163
7163
|
}, fg = function(B) {
|
|
7164
7164
|
return B = Fg(B, Hl, " "), B = Fg(B, yl, " "), B = Fg(B, ul, " "), B;
|
|
7165
|
-
},
|
|
7165
|
+
}, MC = function(B) {
|
|
7166
7166
|
var N;
|
|
7167
7167
|
B.normalize();
|
|
7168
|
-
const M =
|
|
7168
|
+
const M = u ? u(B) : B.ownerDocument, x = pI.call(
|
|
7169
7169
|
M || B,
|
|
7170
7170
|
B,
|
|
7171
7171
|
// eslint-disable-next-line no-bitwise
|
|
7172
7172
|
G.SHOW_TEXT | G.SHOW_COMMENT | G.SHOW_CDATA_SECTION | G.SHOW_PROCESSING_INSTRUCTION,
|
|
7173
7173
|
null
|
|
7174
7174
|
);
|
|
7175
|
-
let v =
|
|
7175
|
+
let v = x.nextNode();
|
|
7176
7176
|
for (; v; )
|
|
7177
|
-
v.data = fg(v.data), v =
|
|
7177
|
+
v.data = fg(v.data), v = x.nextNode();
|
|
7178
7178
|
const P = (N = B.querySelectorAll) === null || N === void 0 ? void 0 : N.call(B, "template");
|
|
7179
|
-
P &&
|
|
7180
|
-
Vg(bI.content) &&
|
|
7179
|
+
P && Zg(P, (bI) => {
|
|
7180
|
+
Vg(bI.content) && MC(bI.content);
|
|
7181
7181
|
});
|
|
7182
7182
|
}, qg = function(B) {
|
|
7183
7183
|
const N = e ? e(B) : null;
|
|
@@ -7223,46 +7223,46 @@ function al() {
|
|
|
7223
7223
|
}
|
|
7224
7224
|
};
|
|
7225
7225
|
function xI(F, B, N) {
|
|
7226
|
-
F.length !== 0 &&
|
|
7226
|
+
F.length !== 0 && Zg(F, (M) => {
|
|
7227
7227
|
M.call(g, B, N, wg);
|
|
7228
7228
|
});
|
|
7229
7229
|
}
|
|
7230
7230
|
const jl = function(B, N) {
|
|
7231
|
-
return !!(
|
|
7231
|
+
return !!(Ig && B.hasChildNodes() && !ng(B.firstElementChild) && aI(kZ, B.textContent) && aI(kZ, B.innerHTML) || Ig && B.namespaceURI === TI && os[N] && (ng(B.firstElementChild) || typeof B.textContent == "string" && aI(hs[N], B.textContent)) || B.nodeType === KI.processingInstruction || Ig && B.nodeType === KI.comment && aI(eZ, B.data));
|
|
7232
7232
|
}, _g = function(B, N) {
|
|
7233
7233
|
if (B instanceof RegExp)
|
|
7234
|
-
return
|
|
7234
|
+
return aI(B, N);
|
|
7235
7235
|
if (B instanceof Function) {
|
|
7236
|
-
for (var M = arguments.length,
|
|
7237
|
-
|
|
7238
|
-
return !!B(N, ...
|
|
7236
|
+
for (var M = arguments.length, x = new Array(M > 2 ? M - 2 : 0), v = 2; v < M; v++)
|
|
7237
|
+
x[v - 2] = arguments[v];
|
|
7238
|
+
return !!B(N, ...x);
|
|
7239
7239
|
}
|
|
7240
7240
|
return !1;
|
|
7241
7241
|
}, Ql = function(B, N, M) {
|
|
7242
7242
|
if (!yg[N] && UA(N) && _g(tI.tagNameCheck, N))
|
|
7243
7243
|
return !1;
|
|
7244
|
-
if (
|
|
7245
|
-
const
|
|
7246
|
-
if (v &&
|
|
7244
|
+
if (hC && !Yg[N]) {
|
|
7245
|
+
const x = S(B), v = o(B);
|
|
7246
|
+
if (v && x) {
|
|
7247
7247
|
const P = v.length;
|
|
7248
7248
|
for (let bI = P - 1; bI >= 0; --bI) {
|
|
7249
7249
|
const BI = B === M ? a(v[bI], !0) : v[bI];
|
|
7250
|
-
|
|
7250
|
+
x.insertBefore(BI, X(B));
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
7253
|
}
|
|
7254
7254
|
return rI(B), !0;
|
|
7255
|
-
}, TA = function(B, N, M,
|
|
7256
|
-
return B.length === 0 ? N : N === M || N ===
|
|
7255
|
+
}, TA = function(B, N, M, x) {
|
|
7256
|
+
return B.length === 0 ? N : N === M || N === x ? SI(N) : N;
|
|
7257
7257
|
}, xA = function(B, N) {
|
|
7258
|
-
return B === N || S(B) !== null ? !1 : (
|
|
7258
|
+
return B === N || S(B) !== null ? !1 : (aC && rg(B), !0);
|
|
7259
7259
|
}, jA = function(B, N) {
|
|
7260
7260
|
if (xI(mI.beforeSanitizeElements, B, null), xA(B, N))
|
|
7261
7261
|
return !0;
|
|
7262
7262
|
if (qg(B))
|
|
7263
7263
|
return rI(B), !0;
|
|
7264
7264
|
const M = YI(J(B));
|
|
7265
|
-
if (iI = TA(mI.uponSanitizeElement, iI,
|
|
7265
|
+
if (iI = TA(mI.uponSanitizeElement, iI, wC, jg), xI(mI.uponSanitizeElement, B, {
|
|
7266
7266
|
tagName: M,
|
|
7267
7267
|
allowedTags: iI
|
|
7268
7268
|
}), xA(B, N))
|
|
@@ -7273,7 +7273,7 @@ function al() {
|
|
|
7273
7273
|
const v = Ql(B, M, N);
|
|
7274
7274
|
return v === !1 && xI(mI.afterSanitizeElements, B, null), v;
|
|
7275
7275
|
}
|
|
7276
|
-
if (p(B) === KI.element && !tl(B) || (M === "noscript" || M === "noembed" || M === "noframes") &&
|
|
7276
|
+
if (p(B) === KI.element && !tl(B) || (M === "noscript" || M === "noembed" || M === "noframes") && aI(Ns, B.innerHTML))
|
|
7277
7277
|
return rI(B), !0;
|
|
7278
7278
|
if (PI && B.nodeType === KI.text) {
|
|
7279
7279
|
const v = fg(B.textContent);
|
|
@@ -7285,8 +7285,8 @@ function al() {
|
|
|
7285
7285
|
}, QA = function(B, N, M) {
|
|
7286
7286
|
if (XA[N] || eA(N, B) || RA && (N === "id" || N === "name") && (M in C || M in zl))
|
|
7287
7287
|
return !1;
|
|
7288
|
-
const
|
|
7289
|
-
return
|
|
7288
|
+
const x = WI[N] || EI.attributeCheck instanceof Function && EI.attributeCheck(N, B);
|
|
7289
|
+
return NC && aI(nl, N) || oA && aI(Ml, N) ? !0 : x ? KA[N] || aI(NA, Fg(M, VA, "")) || (N === "src" || N === "xlink:href" || N === "href") && B !== "script" && MZ(M, "data:") === 0 && nA[B] || hA && !aI(Kl, Fg(M, VA, "")) ? !0 : !M : (
|
|
7290
7290
|
// Condition a) covers a basically valid custom element tag name whose
|
|
7291
7291
|
// tag passes the configured tagNameCheck and whose attribute name
|
|
7292
7292
|
// passes the configured attributeNameCheck ...
|
|
@@ -7296,28 +7296,28 @@ function al() {
|
|
|
7296
7296
|
N === "is" && tI.allowCustomizedBuiltInElements && _g(tI.tagNameCheck, M)
|
|
7297
7297
|
);
|
|
7298
7298
|
}, Ul = lI({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), UA = function(B) {
|
|
7299
|
-
return !Ul[zg(B)] &&
|
|
7300
|
-
}, vl = function(B, N, M,
|
|
7299
|
+
return !Ul[zg(B)] && aI(Sl, B);
|
|
7300
|
+
}, vl = function(B, N, M, x) {
|
|
7301
7301
|
if (H && typeof w == "object" && typeof w.getAttributeType == "function" && !M)
|
|
7302
7302
|
switch (w.getAttributeType(B, N)) {
|
|
7303
7303
|
case "TrustedHTML":
|
|
7304
|
-
return FI(
|
|
7304
|
+
return FI(x);
|
|
7305
7305
|
case "TrustedScriptURL":
|
|
7306
|
-
return E(
|
|
7306
|
+
return E(x);
|
|
7307
7307
|
}
|
|
7308
|
-
return
|
|
7309
|
-
}, Ol = function(B, N, M,
|
|
7308
|
+
return x;
|
|
7309
|
+
}, Ol = function(B, N, M, x) {
|
|
7310
7310
|
try {
|
|
7311
|
-
M ? B.setAttributeNS(M, N,
|
|
7311
|
+
M ? B.setAttributeNS(M, N, x) : B.setAttribute(N, x), qg(B) ? rI(B) : uZ(g.removed);
|
|
7312
7312
|
} catch {
|
|
7313
|
-
|
|
7313
|
+
Cg(N, B);
|
|
7314
7314
|
}
|
|
7315
7315
|
}, vA = function(B) {
|
|
7316
7316
|
xI(mI.beforeSanitizeAttributes, B, null);
|
|
7317
7317
|
const N = B.attributes;
|
|
7318
7318
|
if (!N || qg(B))
|
|
7319
7319
|
return;
|
|
7320
|
-
WI = TA(mI.uponSanitizeAttribute, WI,
|
|
7320
|
+
WI = TA(mI.uponSanitizeAttribute, WI, VC, Qg);
|
|
7321
7321
|
const M = {
|
|
7322
7322
|
attrName: "",
|
|
7323
7323
|
attrValue: "",
|
|
@@ -7325,33 +7325,33 @@ function al() {
|
|
|
7325
7325
|
allowedAttributes: WI,
|
|
7326
7326
|
forceKeepAttr: void 0
|
|
7327
7327
|
};
|
|
7328
|
-
let
|
|
7328
|
+
let x = N.length;
|
|
7329
7329
|
const v = YI(B.nodeName);
|
|
7330
|
-
for (;
|
|
7331
|
-
const P = N[
|
|
7332
|
-
let yI = bI === "value" ?
|
|
7333
|
-
if (M.attrName = nI, M.attrValue = yI, M.keepAttr = !0, M.forceKeepAttr = void 0, xI(mI.uponSanitizeAttribute, B, M), yI = M.attrValue, HA && (nI === "id" || nI === "name") && MZ(yI, yA) !== 0 && (
|
|
7334
|
-
|
|
7330
|
+
for (; x--; ) {
|
|
7331
|
+
const P = N[x], bI = P.name, BI = P.namespaceURI, uI = P.value, nI = YI(bI), SC = uI;
|
|
7332
|
+
let yI = bI === "value" ? SC : Is(SC);
|
|
7333
|
+
if (M.attrName = nI, M.attrValue = yI, M.keepAttr = !0, M.forceKeepAttr = void 0, xI(mI.uponSanitizeAttribute, B, M), yI = M.attrValue, HA && (nI === "id" || nI === "name") && MZ(yI, yA) !== 0 && (Cg(bI, B, P), yI = yA + yI), Ig && aI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, yI)) {
|
|
7334
|
+
Cg(bI, B, P);
|
|
7335
7335
|
continue;
|
|
7336
7336
|
}
|
|
7337
7337
|
if (nI === "attributename" && nZ(yI, "href")) {
|
|
7338
|
-
|
|
7338
|
+
Cg(bI, B, P);
|
|
7339
7339
|
continue;
|
|
7340
7340
|
}
|
|
7341
7341
|
if (!M.forceKeepAttr) {
|
|
7342
7342
|
if (!M.keepAttr) {
|
|
7343
|
-
|
|
7343
|
+
Cg(bI, B, P);
|
|
7344
7344
|
continue;
|
|
7345
7345
|
}
|
|
7346
|
-
if (!aA &&
|
|
7347
|
-
|
|
7346
|
+
if (!aA && aI(Xs, yI)) {
|
|
7347
|
+
Cg(bI, B, P);
|
|
7348
7348
|
continue;
|
|
7349
7349
|
}
|
|
7350
7350
|
if (PI && (yI = fg(yI)), !QA(v, nI, yI)) {
|
|
7351
|
-
|
|
7351
|
+
Cg(bI, B, P);
|
|
7352
7352
|
continue;
|
|
7353
7353
|
}
|
|
7354
|
-
yI = vl(v, nI, BI, yI), yI !==
|
|
7354
|
+
yI = vl(v, nI, BI, yI), yI !== SC && Ol(B, bI, BI, yI);
|
|
7355
7355
|
}
|
|
7356
7356
|
}
|
|
7357
7357
|
xI(mI.afterSanitizeAttributes, B, null);
|
|
@@ -7360,11 +7360,11 @@ function al() {
|
|
|
7360
7360
|
const M = tA(B);
|
|
7361
7361
|
for (xI(mI.beforeSanitizeShadowDOM, B, null); N = M.nextNode(); )
|
|
7362
7362
|
if (xI(mI.uponSanitizeShadowNode, N, null), jA(N, B), vA(N), Vg(N.content) && $g(N.content), p(N) === KI.element) {
|
|
7363
|
-
const
|
|
7364
|
-
Vg(
|
|
7363
|
+
const x = k(N);
|
|
7364
|
+
Vg(x) && (KC(x), $g(x));
|
|
7365
7365
|
}
|
|
7366
7366
|
xI(mI.afterSanitizeShadowDOM, B, null);
|
|
7367
|
-
},
|
|
7367
|
+
}, KC = function(B) {
|
|
7368
7368
|
const N = [{
|
|
7369
7369
|
node: B,
|
|
7370
7370
|
shadow: null
|
|
@@ -7375,7 +7375,7 @@ function al() {
|
|
|
7375
7375
|
$g(M.shadow);
|
|
7376
7376
|
continue;
|
|
7377
7377
|
}
|
|
7378
|
-
const
|
|
7378
|
+
const x = M.node, P = p(x) === KI.element, bI = o(x);
|
|
7379
7379
|
if (bI)
|
|
7380
7380
|
for (let BI = bI.length - 1; BI >= 0; --BI)
|
|
7381
7381
|
N.push({
|
|
@@ -7383,9 +7383,9 @@ function al() {
|
|
|
7383
7383
|
shadow: null
|
|
7384
7384
|
});
|
|
7385
7385
|
if (P) {
|
|
7386
|
-
const BI = e ? e(
|
|
7386
|
+
const BI = e ? e(x) : null;
|
|
7387
7387
|
if (typeof BI == "string" && YI(BI) === "template") {
|
|
7388
|
-
const uI =
|
|
7388
|
+
const uI = x.content;
|
|
7389
7389
|
Vg(uI) && N.push({
|
|
7390
7390
|
node: uI,
|
|
7391
7391
|
shadow: null
|
|
@@ -7393,7 +7393,7 @@ function al() {
|
|
|
7393
7393
|
}
|
|
7394
7394
|
}
|
|
7395
7395
|
if (P) {
|
|
7396
|
-
const BI = k(
|
|
7396
|
+
const BI = k(x);
|
|
7397
7397
|
Vg(BI) && N.push({
|
|
7398
7398
|
node: null,
|
|
7399
7399
|
shadow: BI
|
|
@@ -7405,72 +7405,72 @@ function al() {
|
|
|
7405
7405
|
}
|
|
7406
7406
|
};
|
|
7407
7407
|
return g.sanitize = function(F) {
|
|
7408
|
-
let B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = null, M = null,
|
|
7409
|
-
if (
|
|
7410
|
-
throw
|
|
7408
|
+
let B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = null, M = null, x = null, v = null;
|
|
7409
|
+
if (RC = !F, RC && (F = "<!-->"), typeof F != "string" && !ng(F) && (F = ls(F), typeof F != "string"))
|
|
7410
|
+
throw Ag("dirty is not a string, aborting");
|
|
7411
7411
|
if (!g.isSupported)
|
|
7412
7412
|
return F;
|
|
7413
|
-
|
|
7414
|
-
const P =
|
|
7413
|
+
XC ? (iI = jg, WI = Qg) : nC(B), (mI.uponSanitizeElement.length > 0 || mI.uponSanitizeAttribute.length > 0) && (iI = SI(iI)), mI.uponSanitizeAttribute.length > 0 && (WI = SI(WI)), g.removed = [];
|
|
7414
|
+
const P = aC && typeof F != "string" && ng(F);
|
|
7415
7415
|
if (P) {
|
|
7416
7416
|
xl(F);
|
|
7417
7417
|
const uI = J(F);
|
|
7418
7418
|
if (typeof uI == "string") {
|
|
7419
7419
|
const nI = YI(uI);
|
|
7420
7420
|
if (!iI[nI] || yg[nI])
|
|
7421
|
-
throw Pg(F),
|
|
7421
|
+
throw Pg(F), Ag("root node is forbidden and cannot be sanitized in-place");
|
|
7422
7422
|
}
|
|
7423
7423
|
if (qg(F))
|
|
7424
|
-
throw Pg(F),
|
|
7424
|
+
throw Pg(F), Ag("root node is clobbered and cannot be sanitized in-place");
|
|
7425
7425
|
try {
|
|
7426
|
-
|
|
7426
|
+
KC(F);
|
|
7427
7427
|
} catch (nI) {
|
|
7428
7428
|
throw Pg(F), nI;
|
|
7429
7429
|
}
|
|
7430
7430
|
} else if (ng(F))
|
|
7431
|
-
N = LA("<!---->"), M = N.ownerDocument.importNode(F, !0), M.nodeType === KI.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? N = M : N.appendChild(M),
|
|
7431
|
+
N = LA("<!---->"), M = N.ownerDocument.importNode(F, !0), M.nodeType === KI.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? N = M : N.appendChild(M), KC(M);
|
|
7432
7432
|
else {
|
|
7433
|
-
if (!Wg && !PI && !
|
|
7433
|
+
if (!Wg && !PI && !gg && // eslint-disable-next-line unicorn/prefer-includes
|
|
7434
7434
|
F.indexOf("<") === -1)
|
|
7435
7435
|
return H && vg ? FI(F) : F;
|
|
7436
7436
|
if (N = LA(F), !N)
|
|
7437
7437
|
return Wg ? null : vg ? z : "";
|
|
7438
7438
|
}
|
|
7439
|
-
N &&
|
|
7439
|
+
N && oC && rI(N.firstChild);
|
|
7440
7440
|
const bI = P ? F : N;
|
|
7441
7441
|
try {
|
|
7442
7442
|
const uI = tA(bI);
|
|
7443
|
-
for (;
|
|
7444
|
-
jA(
|
|
7443
|
+
for (; x = uI.nextNode(); )
|
|
7444
|
+
jA(x, bI), vA(x), Vg(x.content) && $g(x.content);
|
|
7445
7445
|
} catch (uI) {
|
|
7446
|
-
throw P && (Pg(F),
|
|
7446
|
+
throw P && (Pg(F), Zg(g.removed, (nI) => {
|
|
7447
7447
|
nI.element && rg(nI.element);
|
|
7448
7448
|
})), uI;
|
|
7449
7449
|
}
|
|
7450
7450
|
if (P)
|
|
7451
|
-
return
|
|
7451
|
+
return Zg(g.removed, (uI) => {
|
|
7452
7452
|
uI.element && rg(uI.element);
|
|
7453
|
-
}), PI &&
|
|
7453
|
+
}), PI && MC(F), F;
|
|
7454
7454
|
if (Wg) {
|
|
7455
|
-
if (PI &&
|
|
7455
|
+
if (PI && MC(N), Ug)
|
|
7456
7456
|
for (v = OI.call(N.ownerDocument); N.firstChild; )
|
|
7457
7457
|
v.appendChild(N.firstChild);
|
|
7458
7458
|
else
|
|
7459
7459
|
v = N;
|
|
7460
7460
|
return (WI.shadowroot || WI.shadowrootmode) && (v = sI.call(Z, v, !0)), v;
|
|
7461
7461
|
}
|
|
7462
|
-
let BI =
|
|
7463
|
-
return
|
|
7462
|
+
let BI = gg ? N.outerHTML : N.innerHTML;
|
|
7463
|
+
return gg && iI["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name && aI(ws, N.ownerDocument.doctype.name) && (BI = "<!DOCTYPE " + N.ownerDocument.doctype.name + `>
|
|
7464
7464
|
` + BI), PI && (BI = fg(BI)), H && vg ? FI(BI) : BI;
|
|
7465
7465
|
}, g.setConfig = function() {
|
|
7466
7466
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7467
|
-
|
|
7467
|
+
nC(F), XC = !0, jg = iI, Qg = WI;
|
|
7468
7468
|
}, g.clearConfig = function() {
|
|
7469
|
-
wg = null,
|
|
7469
|
+
wg = null, XC = !1, jg = null, Qg = null, H = D, z = "";
|
|
7470
7470
|
}, g.isValidAttribute = function(F, B, N) {
|
|
7471
|
-
wg ||
|
|
7472
|
-
const M = YI(F),
|
|
7473
|
-
return QA(M,
|
|
7471
|
+
wg || nC({});
|
|
7472
|
+
const M = YI(F), x = YI(B);
|
|
7473
|
+
return QA(M, x, N);
|
|
7474
7474
|
}, g.addHook = function(F, B) {
|
|
7475
7475
|
typeof B == "function" && MI(mI, F) && Dg(mI[F], B);
|
|
7476
7476
|
}, g.removeHook = function(F, B) {
|
|
@@ -7487,8 +7487,8 @@ function al() {
|
|
|
7487
7487
|
mI = LZ();
|
|
7488
7488
|
}, g;
|
|
7489
7489
|
}
|
|
7490
|
-
var
|
|
7491
|
-
const AC = typeof
|
|
7490
|
+
var tC = al();
|
|
7491
|
+
const AC = typeof tC.sanitize == "function" ? tC : tC.default;
|
|
7492
7492
|
function Hs(I) {
|
|
7493
7493
|
const g = I.trim();
|
|
7494
7494
|
if (!g) return !1;
|
|
@@ -7545,7 +7545,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7545
7545
|
content: {}
|
|
7546
7546
|
},
|
|
7547
7547
|
setup(I) {
|
|
7548
|
-
const g = I, C =
|
|
7548
|
+
const g = I, C = y(() => ys(g.content || "").map(Z));
|
|
7549
7549
|
function Z(G) {
|
|
7550
7550
|
if (!((G.language || "").toLowerCase() === "json" || G.artifactType === "json" || A(G.content))) return { ...G, display: G.content, isJson: !1 };
|
|
7551
7551
|
try {
|
|
@@ -7719,7 +7719,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7719
7719
|
},
|
|
7720
7720
|
emits: ["preview"],
|
|
7721
7721
|
setup(I, { emit: g }) {
|
|
7722
|
-
const C = I, Z = g, A =
|
|
7722
|
+
const C = I, Z = g, A = y(() => C.attachments.filter(Rg)), d = y(() => C.attachments.filter((c) => !Rg(c)));
|
|
7723
7723
|
function l(c) {
|
|
7724
7724
|
Z("preview", c);
|
|
7725
7725
|
}
|
|
@@ -7756,14 +7756,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7756
7756
|
Y("strong", null, h(i.filename), 1),
|
|
7757
7757
|
Y("small", null, [
|
|
7758
7758
|
i.size ? (m(), W(Q, { key: 0 }, [
|
|
7759
|
-
|
|
7759
|
+
CI(h($(GA)(i.size)), 1)
|
|
7760
7760
|
], 64)) : R("", !0),
|
|
7761
7761
|
$(Lg)(i) ? (m(), W(Q, { key: 1 }, [
|
|
7762
|
-
|
|
7762
|
+
CI(" · 点击预览")
|
|
7763
7763
|
], 64)) : $(BZ)(i) ? (m(), W(Q, { key: 2 }, [
|
|
7764
|
-
|
|
7764
|
+
CI(" · 点击查看")
|
|
7765
7765
|
], 64)) : (m(), W(Q, { key: 3 }, [
|
|
7766
|
-
|
|
7766
|
+
CI(" · 点击打开")
|
|
7767
7767
|
], 64))
|
|
7768
7768
|
]),
|
|
7769
7769
|
i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) : R("", !0)
|
|
@@ -7818,8 +7818,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7818
7818
|
"aria-label": l(i) ? `预览 ${i.filename}` : void 0,
|
|
7819
7819
|
onClick: (w) => d(i),
|
|
7820
7820
|
onKeydown: [
|
|
7821
|
-
|
|
7822
|
-
|
|
7821
|
+
UC((w) => d(i), ["enter"]),
|
|
7822
|
+
UC(UI((w) => d(i), ["prevent"]), ["space"])
|
|
7823
7823
|
]
|
|
7824
7824
|
}, [
|
|
7825
7825
|
G[0] || (G[0] = Y("div", {
|
|
@@ -7878,20 +7878,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7878
7878
|
},
|
|
7879
7879
|
emits: ["update:modelValue", "update:attachment"],
|
|
7880
7880
|
setup(I, { emit: g }) {
|
|
7881
|
-
const C = I, Z = g, A =
|
|
7881
|
+
const C = I, Z = g, A = y({
|
|
7882
7882
|
get: () => C.modelValue,
|
|
7883
7883
|
set: (D) => Z("update:modelValue", D)
|
|
7884
7884
|
});
|
|
7885
7885
|
function d(D) {
|
|
7886
7886
|
return D.url || "";
|
|
7887
7887
|
}
|
|
7888
|
-
const l =
|
|
7888
|
+
const l = y(() => C.attachment ? Rg(C.attachment) : !1), c = y(() => C.attachment ? Lg(C.attachment) : !1), G = y(() => {
|
|
7889
7889
|
var f;
|
|
7890
7890
|
return ((f = C.gallery) != null && f.length ? C.gallery : C.attachment ? [C.attachment] : []).filter(Rg);
|
|
7891
|
-
}), b =
|
|
7891
|
+
}), b = y(() => !G.value.length || !C.attachment ? -1 : G.value.findIndex((D) => {
|
|
7892
7892
|
var f;
|
|
7893
7893
|
return D.id === ((f = C.attachment) == null ? void 0 : f.id);
|
|
7894
|
-
})), i =
|
|
7894
|
+
})), i = y(() => b.value > 0), w = y(
|
|
7895
7895
|
() => b.value >= 0 && b.value < G.value.length - 1
|
|
7896
7896
|
), s = t(1), a = t(null), V = t(null), X = t(null);
|
|
7897
7897
|
function o() {
|
|
@@ -7916,7 +7916,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7916
7916
|
function e() {
|
|
7917
7917
|
s.value = 1;
|
|
7918
7918
|
}
|
|
7919
|
-
async function
|
|
7919
|
+
async function u(D) {
|
|
7920
7920
|
const f = d(D);
|
|
7921
7921
|
if (f)
|
|
7922
7922
|
try {
|
|
@@ -7986,7 +7986,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7986
7986
|
function z(D) {
|
|
7987
7987
|
l.value && (D.preventDefault(), D.deltaY < 0 ? L() : K());
|
|
7988
7988
|
}
|
|
7989
|
-
return (D, f) => (m(),
|
|
7989
|
+
return (D, f) => (m(), T(UZ, { to: "body" }, [
|
|
7990
7990
|
A.value && I.attachment ? (m(), W("div", {
|
|
7991
7991
|
key: 0,
|
|
7992
7992
|
class: "apf-preview-mask",
|
|
@@ -8039,7 +8039,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8039
8039
|
key: 2,
|
|
8040
8040
|
type: "button",
|
|
8041
8041
|
class: "apf-preview-action-btn",
|
|
8042
|
-
onClick: f[0] || (f[0] = (ZI) =>
|
|
8042
|
+
onClick: f[0] || (f[0] = (ZI) => u(I.attachment))
|
|
8043
8043
|
}, " 下载 ")) : R("", !0),
|
|
8044
8044
|
Y("button", {
|
|
8045
8045
|
ref_key: "closeBtnRef",
|
|
@@ -8079,7 +8079,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8079
8079
|
}, " › ")) : R("", !0),
|
|
8080
8080
|
G.value.length > 1 ? (m(), W("div", B2, h(b.value + 1) + " / " + h(G.value.length), 1)) : R("", !0)
|
|
8081
8081
|
], 32)) : c.value ? (m(), W("div", Y2, [
|
|
8082
|
-
d(I.attachment) ? (m(),
|
|
8082
|
+
d(I.attachment) ? (m(), T(cl, {
|
|
8083
8083
|
key: 0,
|
|
8084
8084
|
url: d(I.attachment),
|
|
8085
8085
|
title: I.attachment.filename,
|
|
@@ -8103,7 +8103,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8103
8103
|
key: 1,
|
|
8104
8104
|
type: "button",
|
|
8105
8105
|
class: "apf-preview-action-btn apf-preview-action-primary",
|
|
8106
|
-
onClick: f[1] || (f[1] = (ZI) =>
|
|
8106
|
+
onClick: f[1] || (f[1] = (ZI) => u(I.attachment))
|
|
8107
8107
|
}, " 下载 ")) : R("", !0)
|
|
8108
8108
|
])
|
|
8109
8109
|
])
|
|
@@ -8159,26 +8159,26 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8159
8159
|
},
|
|
8160
8160
|
emits: ["resume", "cancel", "retry", "open-process", "preview"],
|
|
8161
8161
|
setup(I, { emit: g }) {
|
|
8162
|
-
const C = I, Z = g, A =
|
|
8163
|
-
var
|
|
8162
|
+
const C = I, Z = g, A = WC(), d = y(() => !!(A.content || A.default)), l = t(!1), c = t(null), G = y(() => {
|
|
8163
|
+
var hI, HI;
|
|
8164
8164
|
const E = [...C.message.attachments || []];
|
|
8165
|
-
if (!((
|
|
8165
|
+
if (!((hI = C.sessionMessages) != null && hI.length)) return E;
|
|
8166
8166
|
const r = C.sessionMessages.findIndex((pI) => pI.id === C.message.id);
|
|
8167
8167
|
if (r <= 0) return E;
|
|
8168
8168
|
for (let pI = r - 1; pI >= 0; pI--) {
|
|
8169
8169
|
const OI = C.sessionMessages[pI];
|
|
8170
8170
|
if (OI.role === "user" && ((HI = OI.attachments) != null && HI.length)) {
|
|
8171
|
-
for (const
|
|
8172
|
-
E.some((sI) => sI.id ===
|
|
8171
|
+
for (const $I of OI.attachments)
|
|
8172
|
+
E.some((sI) => sI.id === $I.id) || E.push($I);
|
|
8173
8173
|
break;
|
|
8174
8174
|
}
|
|
8175
8175
|
}
|
|
8176
8176
|
return E;
|
|
8177
|
-
}), b =
|
|
8177
|
+
}), b = y(() => G.value.filter(Rg));
|
|
8178
8178
|
function i(E) {
|
|
8179
8179
|
c.value = E, l.value = !0, Z("preview", E);
|
|
8180
8180
|
}
|
|
8181
|
-
const w =
|
|
8181
|
+
const w = y(() => C.message.role === "user"), s = y(() => C.message.role === "assistant");
|
|
8182
8182
|
function a(E) {
|
|
8183
8183
|
return {
|
|
8184
8184
|
PENDING: "排队中",
|
|
@@ -8201,27 +8201,27 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8201
8201
|
const X = [
|
|
8202
8202
|
{ action: "approve", label: "确认继续", style: "primary" },
|
|
8203
8203
|
{ action: "reject", label: "需要修改", style: "danger" }
|
|
8204
|
-
], o =
|
|
8205
|
-
var r,
|
|
8204
|
+
], o = y(() => {
|
|
8205
|
+
var r, hI;
|
|
8206
8206
|
if (C.message.status !== "WAITING_INPUT") return null;
|
|
8207
8207
|
const E = (r = C.run) == null ? void 0 : r.waiting;
|
|
8208
8208
|
if (E) {
|
|
8209
|
-
const HI = (
|
|
8209
|
+
const HI = (hI = E.actions) != null && hI.length ? E.actions : X;
|
|
8210
8210
|
return { prompt: E.prompt || "请确认后继续。", fields: E.fields || [], actions: HI, dangerous: !!E.dangerous };
|
|
8211
8211
|
}
|
|
8212
8212
|
return { prompt: "请确认后继续。", fields: [], actions: X, dangerous: !1 };
|
|
8213
|
-
}), S =
|
|
8213
|
+
}), S = y(() => C.message.content || ""), k = y(
|
|
8214
8214
|
() => {
|
|
8215
8215
|
var E;
|
|
8216
8216
|
return !d.value && s.value && C.message.status === "RUNNING" && !S.value && !((E = C.message.attachments) != null && E.length);
|
|
8217
8217
|
}
|
|
8218
|
-
), L =
|
|
8218
|
+
), L = y(
|
|
8219
8219
|
() => {
|
|
8220
8220
|
var E, r;
|
|
8221
8221
|
return d.value || !!S.value || !!((E = C.message.documentSummaries) != null && E.length) || !!((r = C.message.attachments) != null && r.length);
|
|
8222
8222
|
}
|
|
8223
|
-
), K =
|
|
8224
|
-
function
|
|
8223
|
+
), K = y(() => w.value ? "apf-user" : C.message.status === "WAITING_INPUT" ? "apf-waiting" : C.message.status === "FAILED" ? "apf-failed" : ""), e = t("");
|
|
8224
|
+
function u(E) {
|
|
8225
8225
|
Z("resume", E, e.value || void 0), e.value = "";
|
|
8226
8226
|
}
|
|
8227
8227
|
function p() {
|
|
@@ -8232,13 +8232,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8232
8232
|
function J() {
|
|
8233
8233
|
const E = S.value || C.message.content;
|
|
8234
8234
|
if (!E) return;
|
|
8235
|
-
const r = new Blob([E], { type: "text/markdown;charset=utf-8" }),
|
|
8236
|
-
HI.href =
|
|
8235
|
+
const r = new Blob([E], { type: "text/markdown;charset=utf-8" }), hI = URL.createObjectURL(r), HI = document.createElement("a");
|
|
8236
|
+
HI.href = hI, HI.download = "reply.md", HI.click(), URL.revokeObjectURL(hI);
|
|
8237
8237
|
}
|
|
8238
8238
|
function H(E) {
|
|
8239
8239
|
return E.error ? "失败" : E.result !== void 0 ? "已完成" : "处理中";
|
|
8240
8240
|
}
|
|
8241
|
-
const z = t(!1), D = t(!1), f = t(!1), ZI =
|
|
8241
|
+
const z = t(!1), D = t(!1), f = t(!1), ZI = y(
|
|
8242
8242
|
() => s.value && C.message.status === "RUNNING" && !!C.message.thinking
|
|
8243
8243
|
);
|
|
8244
8244
|
NI(
|
|
@@ -8266,11 +8266,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8266
8266
|
f.value = !f.value;
|
|
8267
8267
|
}
|
|
8268
8268
|
return (E, r) => {
|
|
8269
|
-
var
|
|
8269
|
+
var hI, HI, pI, OI, $I;
|
|
8270
8270
|
return m(), W("div", {
|
|
8271
8271
|
class: n(["apf-message", [I.message.role, I.message.status && s.value ? `apf-st-${I.message.status}` : ""]])
|
|
8272
8272
|
}, [
|
|
8273
|
-
s.value && I.brandMark ? (m(),
|
|
8273
|
+
s.value && I.brandMark ? (m(), T(OZ(I.brandMark), {
|
|
8274
8274
|
key: 0,
|
|
8275
8275
|
variant: "ai",
|
|
8276
8276
|
size: "sm"
|
|
@@ -8288,20 +8288,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8288
8288
|
Y("div", {
|
|
8289
8289
|
class: n(["apf-bubble apf-message-content", K.value])
|
|
8290
8290
|
}, [
|
|
8291
|
-
!d.value && ((
|
|
8291
|
+
!d.value && ((hI = I.message.attachments) != null && hI.length) ? (m(), T(qs, {
|
|
8292
8292
|
key: 0,
|
|
8293
8293
|
attachments: I.message.attachments,
|
|
8294
8294
|
onPreview: i
|
|
8295
8295
|
}, null, 8, ["attachments"])) : R("", !0),
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
S.value ? (m(),
|
|
8296
|
+
gI(E.$slots, "content", {}, () => [
|
|
8297
|
+
gI(E.$slots, "default", {}, () => [
|
|
8298
|
+
S.value ? (m(), T(js, {
|
|
8299
8299
|
key: 0,
|
|
8300
8300
|
content: S.value
|
|
8301
8301
|
}, null, 8, ["content"])) : R("", !0)
|
|
8302
8302
|
], !0)
|
|
8303
8303
|
], !0),
|
|
8304
|
-
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(),
|
|
8304
|
+
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(), T(d2, {
|
|
8305
8305
|
key: 1,
|
|
8306
8306
|
summaries: I.message.documentSummaries,
|
|
8307
8307
|
attachments: G.value,
|
|
@@ -8406,7 +8406,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8406
8406
|
])])
|
|
8407
8407
|
])) : R("", !0)
|
|
8408
8408
|
])) : !d.value && s.value && I.message.status === "WAITING_INPUT" && !L.value ? (m(), W("div", p2, "请在下方确认后继续。")) : !d.value && s.value && I.message.status === "FAILED" && !L.value ? (m(), W("div", J2, "处理失败")) : !d.value && s.value && I.message.status === "CANCELLED" && !L.value ? (m(), W("div", z2, "已取消")) : R("", !0),
|
|
8409
|
-
d.value ? R("", !0) : (m(),
|
|
8409
|
+
d.value ? R("", !0) : (m(), T(y2, {
|
|
8410
8410
|
key: 6,
|
|
8411
8411
|
modelValue: l.value,
|
|
8412
8412
|
"onUpdate:modelValue": r[2] || (r[2] = (sI) => l.value = sI),
|
|
@@ -8436,7 +8436,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8436
8436
|
])
|
|
8437
8437
|
])
|
|
8438
8438
|
], 2)) : R("", !0),
|
|
8439
|
-
!d.value && s.value && ((
|
|
8439
|
+
!d.value && s.value && (($I = I.message.toolCalls) != null && $I.length) ? (m(), W("div", {
|
|
8440
8440
|
key: 8,
|
|
8441
8441
|
class: n(["apf-detail-block", { open: f.value }])
|
|
8442
8442
|
}, [
|
|
@@ -8469,10 +8469,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8469
8469
|
class: n(["apf-chip", V(I.message.status)])
|
|
8470
8470
|
}, [
|
|
8471
8471
|
r[11] || (r[11] = Y("i", null, null, -1)),
|
|
8472
|
-
|
|
8472
|
+
CI(h(a(I.message.status)), 1)
|
|
8473
8473
|
], 2)) : s.value && I.message.status === "COMPLETED" ? (m(), W("span", Q2, [...r[12] || (r[12] = [
|
|
8474
8474
|
Y("i", null, null, -1),
|
|
8475
|
-
|
|
8475
|
+
CI("已完成", -1)
|
|
8476
8476
|
])])) : R("", !0)
|
|
8477
8477
|
], 64)),
|
|
8478
8478
|
!d.value && o.value ? (m(), W("div", {
|
|
@@ -8490,7 +8490,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8490
8490
|
type: "button",
|
|
8491
8491
|
class: n(["apf-approval-btn", sI.style === "danger" ? "apf-approval-btn-danger" : "apf-approval-btn-primary"]),
|
|
8492
8492
|
disabled: I.sending,
|
|
8493
|
-
onClick: (mI) =>
|
|
8493
|
+
onClick: (mI) => u(sI.action)
|
|
8494
8494
|
}, h(sI.label), 11, P2))), 128))
|
|
8495
8495
|
])
|
|
8496
8496
|
], 2)) : R("", !0)
|
|
@@ -8511,26 +8511,29 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8511
8511
|
brandMark: {}
|
|
8512
8512
|
},
|
|
8513
8513
|
emits: ["resume", "cancel", "retry", "open-process", "preview"],
|
|
8514
|
-
setup(I, {
|
|
8515
|
-
const
|
|
8516
|
-
|
|
8517
|
-
await
|
|
8514
|
+
setup(I, { expose: g, emit: C }) {
|
|
8515
|
+
const Z = I, A = C, d = WC(), l = t(null), c = y(() => !!d.body), G = y(() => !Z.loading && Z.messages.length === 0 && !!d.empty);
|
|
8516
|
+
async function b() {
|
|
8517
|
+
await cg(), l.value && (l.value.scrollTop = l.value.scrollHeight);
|
|
8518
|
+
}
|
|
8519
|
+
NI(() => Z.messages.length, () => {
|
|
8520
|
+
c.value || b();
|
|
8518
8521
|
}, { flush: "post" }), NI(
|
|
8519
|
-
() =>
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
+
() => Z.messages.map((w) => `${w.id}:${w.status}:${(w.content || "").length}`).join("|"),
|
|
8523
|
+
() => {
|
|
8524
|
+
c.value || b();
|
|
8522
8525
|
},
|
|
8523
8526
|
{ flush: "post" }
|
|
8524
8527
|
);
|
|
8525
|
-
function
|
|
8526
|
-
return !
|
|
8528
|
+
function i(w) {
|
|
8529
|
+
return !Z.currentRun || !w.runtimeExecutionId ? null : Z.currentRun.runtimeExecutionId === w.runtimeExecutionId ? Z.currentRun : null;
|
|
8527
8530
|
}
|
|
8528
|
-
return (l,
|
|
8531
|
+
return g({ scrollToBottom: b, container: l }), (w, s) => (m(), W("div", {
|
|
8529
8532
|
ref_key: "container",
|
|
8530
|
-
ref:
|
|
8533
|
+
ref: l,
|
|
8531
8534
|
class: "apf-message-list"
|
|
8532
8535
|
}, [
|
|
8533
|
-
I.loading && !I.messages.length ? (m(), W("div", q2, [...
|
|
8536
|
+
I.loading && !I.messages.length && !c.value ? (m(), W("div", q2, [...s[4] || (s[4] = [
|
|
8534
8537
|
Y("div", {
|
|
8535
8538
|
class: "apf-skeleton",
|
|
8536
8539
|
style: { height: "var(--icon-size-sm, 14px)", width: "60%" }
|
|
@@ -8539,23 +8542,27 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8539
8542
|
class: "apf-skeleton",
|
|
8540
8543
|
style: { height: "var(--icon-size-sm, 14px)", width: "45%", "margin-top": "var(--spacing-sm, 8px)" }
|
|
8541
8544
|
}, null, -1)
|
|
8542
|
-
])])) :
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8545
|
+
])])) : G.value ? gI(w.$slots, "empty", {}, void 0, !0, 1) : gI(w.$slots, "body", {
|
|
8546
|
+
messages: I.messages,
|
|
8547
|
+
scrollToBottom: b
|
|
8548
|
+
}, () => [
|
|
8549
|
+
(m(!0), W(Q, null, q(I.messages, (a) => (m(), T(f2, {
|
|
8550
|
+
key: a.id,
|
|
8551
|
+
message: a,
|
|
8552
|
+
run: i(a),
|
|
8553
|
+
sending: !!I.sending,
|
|
8554
|
+
"brand-mark": I.brandMark,
|
|
8555
|
+
"session-messages": I.messages,
|
|
8556
|
+
onResume: s[0] || (s[0] = (V, X) => A("resume", V, X)),
|
|
8557
|
+
onCancel: s[1] || (s[1] = (V) => A("cancel")),
|
|
8558
|
+
onRetry: s[2] || (s[2] = (V) => A("retry")),
|
|
8559
|
+
onOpenProcess: (V) => A("open-process", a),
|
|
8560
|
+
onPreview: s[3] || (s[3] = (V) => A("preview", V))
|
|
8561
|
+
}, null, 8, ["message", "run", "sending", "brand-mark", "session-messages", "onOpenProcess"]))), 128))
|
|
8562
|
+
], !0, 2)
|
|
8556
8563
|
], 512));
|
|
8557
8564
|
}
|
|
8558
|
-
}),
|
|
8565
|
+
}), oN = /* @__PURE__ */ U(_2, [["__scopeId", "data-v-5df6388a"]]), $2 = {
|
|
8559
8566
|
key: 0,
|
|
8560
8567
|
class: "apf-pending-list"
|
|
8561
8568
|
}, Iw = ["src"], gw = { class: "apf-pending-name" }, Cw = {
|
|
@@ -8590,7 +8597,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8590
8597
|
},
|
|
8591
8598
|
emits: ["send", "upload", "remove-attachment", "ws-click"],
|
|
8592
8599
|
setup(I, { emit: g }) {
|
|
8593
|
-
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b =
|
|
8600
|
+
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = WC(), i = y(() => C.supportedInputs || ["text"]), w = y(() => i.value.some((p) => p === "file" || p === "image" || p === "document")), s = y(() => !!b.input), a = y(() => !C.hideDefaultInput && !s.value), V = y(() => !C.hideSend), X = y(() => w.value && !C.hideFileButton), o = y(() => {
|
|
8594
8601
|
if (C.disabled || G.value) return !1;
|
|
8595
8602
|
const p = !!A.value.trim(), J = c.value.some((z) => z.status === "done"), H = c.value.some((z) => z.status === "uploading");
|
|
8596
8603
|
return (p || J) && !H;
|
|
@@ -8616,13 +8623,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8616
8623
|
const p = A.value.trim(), J = c.value.filter((H) => H.status === "done").map((H) => H.id);
|
|
8617
8624
|
Z("send", p, J), A.value = "", c.value.forEach((H) => {
|
|
8618
8625
|
H.previewUrl && URL.revokeObjectURL(H.previewUrl);
|
|
8619
|
-
}), c.value = [], await
|
|
8626
|
+
}), c.value = [], await cg(), d.value && (d.value.style.height = "auto");
|
|
8620
8627
|
}
|
|
8621
8628
|
function e(p) {
|
|
8622
8629
|
const J = p.target;
|
|
8623
8630
|
J.style.height = "auto", J.style.height = Math.min(J.scrollHeight, 220) + "px";
|
|
8624
8631
|
}
|
|
8625
|
-
function
|
|
8632
|
+
function u(p) {
|
|
8626
8633
|
p.key === "Enter" && !p.shiftKey && (p.preventDefault(), K());
|
|
8627
8634
|
}
|
|
8628
8635
|
return rZ(() => {
|
|
@@ -8636,7 +8643,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8636
8643
|
Y("div", {
|
|
8637
8644
|
class: n(["apf-composer-field", { "apf-disabled": I.disabled }])
|
|
8638
8645
|
}, [
|
|
8639
|
-
|
|
8646
|
+
gI(p.$slots, "pending", {}, () => [
|
|
8640
8647
|
c.value.length ? (m(), W("div", $2, [
|
|
8641
8648
|
(m(!0), W(Q, null, q(c.value, (H) => (m(), W("div", {
|
|
8642
8649
|
key: H.id,
|
|
@@ -8658,8 +8665,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8658
8665
|
], 2))), 128))
|
|
8659
8666
|
])) : R("", !0)
|
|
8660
8667
|
], !0),
|
|
8661
|
-
|
|
8662
|
-
a.value ?
|
|
8668
|
+
gI(p.$slots, "input", {}, () => [
|
|
8669
|
+
a.value ? dg((m(), W("textarea", {
|
|
8663
8670
|
key: 0,
|
|
8664
8671
|
ref_key: "textareaRef",
|
|
8665
8672
|
ref: d,
|
|
@@ -8667,14 +8674,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8667
8674
|
placeholder: I.placeholder || "输入消息…",
|
|
8668
8675
|
disabled: I.disabled,
|
|
8669
8676
|
onInput: e,
|
|
8670
|
-
onKeydown:
|
|
8677
|
+
onKeydown: u
|
|
8671
8678
|
}, null, 40, lw)), [
|
|
8672
|
-
[
|
|
8679
|
+
[vC, A.value]
|
|
8673
8680
|
]) : R("", !0)
|
|
8674
8681
|
], !0),
|
|
8675
8682
|
Y("div", dw, [
|
|
8676
8683
|
Y("div", Gw, [
|
|
8677
|
-
|
|
8684
|
+
gI(p.$slots, "tools", {}, void 0, !0),
|
|
8678
8685
|
Y("input", {
|
|
8679
8686
|
ref_key: "fileInputRef",
|
|
8680
8687
|
ref: l,
|
|
@@ -8708,7 +8715,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8708
8715
|
], -1)
|
|
8709
8716
|
])], 8, cw)) : R("", !0)
|
|
8710
8717
|
]),
|
|
8711
|
-
|
|
8718
|
+
gI(p.$slots, "actions", {}, () => [
|
|
8712
8719
|
V.value ? (m(), W("button", {
|
|
8713
8720
|
key: 0,
|
|
8714
8721
|
type: "submit",
|
|
@@ -8739,7 +8746,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8739
8746
|
]))
|
|
8740
8747
|
], 34));
|
|
8741
8748
|
}
|
|
8742
|
-
}),
|
|
8749
|
+
}), hN = /* @__PURE__ */ U(sw, [["__scopeId", "data-v-e996c32a"]]), ww = {
|
|
8743
8750
|
key: 0,
|
|
8744
8751
|
class: "apf-run-bar"
|
|
8745
8752
|
}, Vw = { class: "apf-row" }, Nw = {
|
|
@@ -8756,7 +8763,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8756
8763
|
},
|
|
8757
8764
|
emits: ["cancel"],
|
|
8758
8765
|
setup(I, { emit: g }) {
|
|
8759
|
-
const C = I, Z = g, A =
|
|
8766
|
+
const C = I, Z = g, A = y(() => {
|
|
8760
8767
|
var G;
|
|
8761
8768
|
return ((G = C.run) == null ? void 0 : G.status) || null;
|
|
8762
8769
|
});
|
|
@@ -8777,7 +8784,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8777
8784
|
class: n(["apf-chip", l(A.value || "")])
|
|
8778
8785
|
}, [
|
|
8779
8786
|
b[1] || (b[1] = Y("i", null, null, -1)),
|
|
8780
|
-
|
|
8787
|
+
CI(h(d(A.value || "")), 1)
|
|
8781
8788
|
], 2),
|
|
8782
8789
|
A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) : R("", !0),
|
|
8783
8790
|
A.value === "RUNNING" ? (m(), W("button", {
|
|
@@ -8789,10 +8796,35 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8789
8796
|
I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) : R("", !0)
|
|
8790
8797
|
])) : R("", !0);
|
|
8791
8798
|
}
|
|
8792
|
-
}), hw = /* @__PURE__ */ U(ow, [["__scopeId", "data-v-33963f1d"]]), aw = { class: "apf-
|
|
8799
|
+
}), hw = /* @__PURE__ */ U(ow, [["__scopeId", "data-v-33963f1d"]]), aw = { class: "apf-stream-banner__text" }, Rw = /* @__PURE__ */ j({
|
|
8800
|
+
__name: "StreamStatusBanner",
|
|
8801
|
+
props: {
|
|
8802
|
+
status: {},
|
|
8803
|
+
message: {},
|
|
8804
|
+
retryLabel: { default: "重试" },
|
|
8805
|
+
showRetry: { type: Boolean, default: !0 }
|
|
8806
|
+
},
|
|
8807
|
+
emits: ["retry"],
|
|
8808
|
+
setup(I, { emit: g }) {
|
|
8809
|
+
const C = g;
|
|
8810
|
+
return (Z, A) => I.status === "disconnected" || I.status === "reconnecting" || I.status === "connecting" ? (m(), W("div", {
|
|
8811
|
+
key: 0,
|
|
8812
|
+
class: n(["apf-stream-banner", `is-${I.status}`]),
|
|
8813
|
+
role: "status"
|
|
8814
|
+
}, [
|
|
8815
|
+
Y("span", aw, h(I.message || I.status), 1),
|
|
8816
|
+
I.showRetry && I.status === "disconnected" ? (m(), W("button", {
|
|
8817
|
+
key: 0,
|
|
8818
|
+
type: "button",
|
|
8819
|
+
class: "apf-stream-banner__retry",
|
|
8820
|
+
onClick: A[0] || (A[0] = (d) => C("retry"))
|
|
8821
|
+
}, h(I.retryLabel), 1)) : R("", !0)
|
|
8822
|
+
], 2)) : R("", !0);
|
|
8823
|
+
}
|
|
8824
|
+
}), aN = /* @__PURE__ */ U(Rw, [["__scopeId", "data-v-c9033191"]]), Hw = { class: "apf-header" }, yw = {
|
|
8793
8825
|
key: 0,
|
|
8794
8826
|
class: "apf-danger-tag"
|
|
8795
|
-
},
|
|
8827
|
+
}, uw = { class: "apf-prompt" }, nw = ["placeholder"], Mw = ["value"], Kw = ["placeholder"], Sw = { class: "apf-actions" }, Dw = ["disabled", "onClick"], Fw = /* @__PURE__ */ j({
|
|
8796
8828
|
__name: "ApprovalCard",
|
|
8797
8829
|
props: {
|
|
8798
8830
|
waiting: {},
|
|
@@ -8808,61 +8840,61 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8808
8840
|
key: 0,
|
|
8809
8841
|
class: n(["apf-approval-card", { "apf-dangerous": I.waiting.dangerous }])
|
|
8810
8842
|
}, [
|
|
8811
|
-
Y("div",
|
|
8843
|
+
Y("div", Hw, [
|
|
8812
8844
|
l[3] || (l[3] = Y("span", { class: "apf-title" }, "需要你的操作", -1)),
|
|
8813
|
-
I.waiting.dangerous ? (m(), W("span",
|
|
8845
|
+
I.waiting.dangerous ? (m(), W("span", yw, "危险操作")) : R("", !0)
|
|
8814
8846
|
]),
|
|
8815
|
-
Y("p",
|
|
8847
|
+
Y("p", uw, h(I.waiting.prompt), 1),
|
|
8816
8848
|
(m(!0), W(Q, null, q(I.waiting.fields, (c) => (m(), W("div", {
|
|
8817
8849
|
key: c.key,
|
|
8818
8850
|
class: "apf-field"
|
|
8819
8851
|
}, [
|
|
8820
8852
|
Y("label", null, h(c.label), 1),
|
|
8821
|
-
c.type === "textarea" ?
|
|
8853
|
+
c.type === "textarea" ? dg((m(), W("textarea", {
|
|
8822
8854
|
key: 0,
|
|
8823
8855
|
"onUpdate:modelValue": l[0] || (l[0] = (G) => Z.value = G),
|
|
8824
8856
|
placeholder: "请输入" + c.label,
|
|
8825
8857
|
rows: "2"
|
|
8826
|
-
}, null, 8,
|
|
8827
|
-
[
|
|
8828
|
-
]) : c.type === "select" && c.options.length ?
|
|
8858
|
+
}, null, 8, nw)), [
|
|
8859
|
+
[vC, Z.value]
|
|
8860
|
+
]) : c.type === "select" && c.options.length ? dg((m(), W("select", {
|
|
8829
8861
|
key: 1,
|
|
8830
8862
|
"onUpdate:modelValue": l[1] || (l[1] = (G) => Z.value = G)
|
|
8831
8863
|
}, [
|
|
8832
8864
|
(m(!0), W(Q, null, q(c.options, (G) => (m(), W("option", {
|
|
8833
8865
|
key: G,
|
|
8834
8866
|
value: G
|
|
8835
|
-
}, h(G), 9,
|
|
8867
|
+
}, h(G), 9, Mw))), 128))
|
|
8836
8868
|
], 512)), [
|
|
8837
8869
|
[$l, Z.value]
|
|
8838
|
-
]) :
|
|
8870
|
+
]) : dg((m(), W("input", {
|
|
8839
8871
|
key: 2,
|
|
8840
8872
|
"onUpdate:modelValue": l[2] || (l[2] = (G) => Z.value = G),
|
|
8841
8873
|
placeholder: "请输入" + c.label
|
|
8842
|
-
}, null, 8,
|
|
8843
|
-
[
|
|
8874
|
+
}, null, 8, Kw)), [
|
|
8875
|
+
[vC, Z.value]
|
|
8844
8876
|
])
|
|
8845
8877
|
]))), 128)),
|
|
8846
|
-
Y("div",
|
|
8878
|
+
Y("div", Sw, [
|
|
8847
8879
|
(m(!0), W(Q, null, q(I.waiting.actions, (c) => (m(), W("button", {
|
|
8848
8880
|
key: c.action,
|
|
8849
8881
|
class: n(["apf-btn", c.style === "danger" ? "apf-btn-danger" : "apf-btn-primary"]),
|
|
8850
8882
|
disabled: I.disabled,
|
|
8851
8883
|
onClick: (G) => A(c.action)
|
|
8852
|
-
}, h(c.label), 11,
|
|
8884
|
+
}, h(c.label), 11, Dw))), 128))
|
|
8853
8885
|
])
|
|
8854
8886
|
], 2)) : R("", !0);
|
|
8855
8887
|
}
|
|
8856
|
-
}),
|
|
8888
|
+
}), RN = /* @__PURE__ */ U(Fw, [["__scopeId", "data-v-ca69b479"]]), pw = {
|
|
8857
8889
|
class: "apf-session-sidebar",
|
|
8858
8890
|
"aria-label": "会话列表"
|
|
8859
|
-
},
|
|
8891
|
+
}, Jw = { class: "apf-session-sidebar__head" }, zw = { class: "apf-session-sidebar__head-actions" }, kw = {
|
|
8860
8892
|
key: 0,
|
|
8861
8893
|
class: "apf-session-sidebar__below-head"
|
|
8862
|
-
},
|
|
8894
|
+
}, ew = { class: "apf-session-sidebar__list" }, Lw = ["onClick"], tw = { class: "apf-session-sidebar__item-title" }, Tw = { class: "apf-session-sidebar__item-meta" }, xw = {
|
|
8863
8895
|
key: 0,
|
|
8864
8896
|
class: "apf-session-sidebar__empty"
|
|
8865
|
-
},
|
|
8897
|
+
}, jw = /* @__PURE__ */ j({
|
|
8866
8898
|
__name: "SessionSidebar",
|
|
8867
8899
|
props: {
|
|
8868
8900
|
sessions: {},
|
|
@@ -8886,37 +8918,37 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8886
8918
|
}
|
|
8887
8919
|
return (A, d) => {
|
|
8888
8920
|
const l = _("el-button"), c = EZ("loading");
|
|
8889
|
-
return m(), W("aside",
|
|
8890
|
-
Y("div",
|
|
8921
|
+
return m(), W("aside", pw, [
|
|
8922
|
+
Y("div", Jw, [
|
|
8891
8923
|
Y("strong", null, h(I.title || "会话"), 1),
|
|
8892
|
-
Y("div",
|
|
8893
|
-
|
|
8894
|
-
I.hideCreate ? R("", !0) : (m(),
|
|
8924
|
+
Y("div", zw, [
|
|
8925
|
+
gI(A.$slots, "toolbar", {}, void 0, !0),
|
|
8926
|
+
I.hideCreate ? R("", !0) : (m(), T(l, {
|
|
8895
8927
|
key: 0,
|
|
8896
8928
|
type: "primary",
|
|
8897
8929
|
size: "small",
|
|
8898
8930
|
onClick: d[0] || (d[0] = (G) => C("create"))
|
|
8899
8931
|
}, {
|
|
8900
8932
|
default: O(() => [...d[2] || (d[2] = [
|
|
8901
|
-
|
|
8933
|
+
CI("新建", -1)
|
|
8902
8934
|
])]),
|
|
8903
8935
|
_: 1
|
|
8904
8936
|
}))
|
|
8905
8937
|
])
|
|
8906
8938
|
]),
|
|
8907
|
-
A.$slots["below-head"] ? (m(), W("div",
|
|
8908
|
-
|
|
8939
|
+
A.$slots["below-head"] ? (m(), W("div", kw, [
|
|
8940
|
+
gI(A.$slots, "below-head", {}, void 0, !0)
|
|
8909
8941
|
])) : R("", !0),
|
|
8910
|
-
|
|
8942
|
+
dg((m(), W("div", ew, [
|
|
8911
8943
|
(m(!0), W(Q, null, q(I.sessions, (G) => (m(), W("button", {
|
|
8912
8944
|
key: G.id,
|
|
8913
8945
|
type: "button",
|
|
8914
8946
|
class: n(["apf-session-sidebar__item", { "is-active": G.id === I.activeId }]),
|
|
8915
8947
|
onClick: (b) => C("select", G.id)
|
|
8916
8948
|
}, [
|
|
8917
|
-
Y("span",
|
|
8918
|
-
Y("div",
|
|
8919
|
-
|
|
8949
|
+
Y("span", tw, h(G.title || "未命名会话"), 1),
|
|
8950
|
+
Y("div", Tw, [
|
|
8951
|
+
gI(A.$slots, "item-meta", { session: G }, () => [
|
|
8920
8952
|
Y("small", null, h(Z(G.updatedAt || G.createdAt)), 1)
|
|
8921
8953
|
], !0)
|
|
8922
8954
|
]),
|
|
@@ -8925,8 +8957,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8925
8957
|
onClick: d[1] || (d[1] = UI(() => {
|
|
8926
8958
|
}, ["stop"]))
|
|
8927
8959
|
}, [
|
|
8928
|
-
|
|
8929
|
-
I.hideDelete ? R("", !0) : (m(),
|
|
8960
|
+
gI(A.$slots, "item-actions", { session: G }, () => [
|
|
8961
|
+
I.hideDelete ? R("", !0) : (m(), T(l, {
|
|
8930
8962
|
key: 0,
|
|
8931
8963
|
class: "apf-session-sidebar__delete",
|
|
8932
8964
|
link: "",
|
|
@@ -8935,24 +8967,24 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8935
8967
|
onClick: (b) => C("delete", G.id)
|
|
8936
8968
|
}, {
|
|
8937
8969
|
default: O(() => [...d[3] || (d[3] = [
|
|
8938
|
-
|
|
8970
|
+
CI(" 删除 ", -1)
|
|
8939
8971
|
])]),
|
|
8940
8972
|
_: 1
|
|
8941
8973
|
}, 8, ["onClick"]))
|
|
8942
8974
|
], !0)
|
|
8943
8975
|
])
|
|
8944
|
-
], 10,
|
|
8945
|
-
!I.loading && !I.sessions.length ? (m(), W("div",
|
|
8976
|
+
], 10, Lw))), 128)),
|
|
8977
|
+
!I.loading && !I.sessions.length ? (m(), W("div", xw, h(I.emptyText || "暂无会话"), 1)) : R("", !0)
|
|
8946
8978
|
])), [
|
|
8947
8979
|
[c, I.loading]
|
|
8948
8980
|
])
|
|
8949
8981
|
]);
|
|
8950
8982
|
};
|
|
8951
8983
|
}
|
|
8952
|
-
}),
|
|
8984
|
+
}), HN = /* @__PURE__ */ U(jw, [["__scopeId", "data-v-b00284f7"]]), Qw = {
|
|
8953
8985
|
key: 0,
|
|
8954
8986
|
class: "apf-processing-drawer__subtitle"
|
|
8955
|
-
},
|
|
8987
|
+
}, Uw = { class: "apf-processing-drawer__body" }, vw = /* @__PURE__ */ j({
|
|
8956
8988
|
__name: "ProcessingDrawer",
|
|
8957
8989
|
props: {
|
|
8958
8990
|
modelValue: { type: Boolean },
|
|
@@ -8966,7 +8998,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8966
8998
|
const C = g;
|
|
8967
8999
|
return (Z, A) => {
|
|
8968
9000
|
const d = _("el-drawer");
|
|
8969
|
-
return m(),
|
|
9001
|
+
return m(), T(d, {
|
|
8970
9002
|
"model-value": I.modelValue,
|
|
8971
9003
|
title: I.title || "处理详情",
|
|
8972
9004
|
size: "380px",
|
|
@@ -8974,28 +9006,28 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8974
9006
|
"onUpdate:modelValue": A[1] || (A[1] = (l) => C("update:modelValue", l))
|
|
8975
9007
|
}, {
|
|
8976
9008
|
default: O(() => [
|
|
8977
|
-
I.subtitle ? (m(), W("p",
|
|
8978
|
-
I.run ? (m(),
|
|
9009
|
+
I.subtitle ? (m(), W("p", Qw, h(I.subtitle), 1)) : R("", !0),
|
|
9010
|
+
I.run ? (m(), T($(hw), {
|
|
8979
9011
|
key: 1,
|
|
8980
9012
|
run: I.run,
|
|
8981
9013
|
sending: I.sending ?? !1,
|
|
8982
9014
|
onCancel: A[0] || (A[0] = (l) => C("cancel"))
|
|
8983
9015
|
}, null, 8, ["run", "sending"])) : R("", !0),
|
|
8984
|
-
Y("div",
|
|
8985
|
-
|
|
9016
|
+
Y("div", Uw, [
|
|
9017
|
+
gI(Z.$slots, "default", {}, void 0, !0)
|
|
8986
9018
|
])
|
|
8987
9019
|
]),
|
|
8988
9020
|
_: 3
|
|
8989
9021
|
}, 8, ["model-value", "title"]);
|
|
8990
9022
|
};
|
|
8991
9023
|
}
|
|
8992
|
-
}),
|
|
9024
|
+
}), yN = /* @__PURE__ */ U(vw, [["__scopeId", "data-v-6036074a"]]), Ow = { class: "apf-conversation-header" }, Ew = { class: "apf-conversation-header__identity" }, Pw = { class: "apf-conversation-header__copy" }, rw = { class: "apf-conversation-header__meta-row" }, fw = {
|
|
8993
9025
|
key: 0,
|
|
8994
9026
|
class: "apf-conversation-header__label"
|
|
8995
|
-
},
|
|
9027
|
+
}, qw = { class: "apf-conversation-header__actions" }, _w = {
|
|
8996
9028
|
key: 0,
|
|
8997
9029
|
class: "apf-conversation-header__processing"
|
|
8998
|
-
},
|
|
9030
|
+
}, $w = /* @__PURE__ */ j({
|
|
8999
9031
|
__name: "ConversationHeader",
|
|
9000
9032
|
props: {
|
|
9001
9033
|
title: {},
|
|
@@ -9006,25 +9038,25 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9006
9038
|
},
|
|
9007
9039
|
emits: ["changeAssistant", "toggleDetails", "create"],
|
|
9008
9040
|
setup(I, { emit: g }) {
|
|
9009
|
-
const C = I, Z = g, A =
|
|
9010
|
-
return (l, c) => (m(), W("header",
|
|
9011
|
-
Y("div",
|
|
9012
|
-
|
|
9013
|
-
Y("div",
|
|
9014
|
-
Y("div",
|
|
9015
|
-
I.label ? (m(), W("span",
|
|
9016
|
-
|
|
9041
|
+
const C = I, Z = g, A = WC(), d = y(() => !C.hideDefaultActions && !A.actions);
|
|
9042
|
+
return (l, c) => (m(), W("header", Ow, [
|
|
9043
|
+
Y("div", Ew, [
|
|
9044
|
+
gI(l.$slots, "identity", {}, () => [
|
|
9045
|
+
Y("div", Pw, [
|
|
9046
|
+
Y("div", rw, [
|
|
9047
|
+
I.label ? (m(), W("span", fw, h(I.label), 1)) : R("", !0),
|
|
9048
|
+
gI(l.$slots, "meta", {}, void 0, !0)
|
|
9017
9049
|
]),
|
|
9018
9050
|
Y("strong", null, h(I.title || "选择一个智能体开始"), 1)
|
|
9019
9051
|
])
|
|
9020
9052
|
], !0)
|
|
9021
9053
|
]),
|
|
9022
|
-
Y("div",
|
|
9023
|
-
I.processing ? (m(), W("span",
|
|
9054
|
+
Y("div", qw, [
|
|
9055
|
+
I.processing ? (m(), W("span", _w, [...c[2] || (c[2] = [
|
|
9024
9056
|
Y("i", null, null, -1),
|
|
9025
9057
|
Y("span", null, "正在处理", -1)
|
|
9026
9058
|
])])) : R("", !0),
|
|
9027
|
-
|
|
9059
|
+
gI(l.$slots, "actions", {}, () => [
|
|
9028
9060
|
d.value ? (m(), W(Q, { key: 0 }, [
|
|
9029
9061
|
Y("button", {
|
|
9030
9062
|
type: "button",
|
|
@@ -9042,16 +9074,72 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9042
9074
|
])
|
|
9043
9075
|
]));
|
|
9044
9076
|
}
|
|
9045
|
-
}),
|
|
9077
|
+
}), uN = /* @__PURE__ */ U($w, [["__scopeId", "data-v-127a684e"]]), IV = ["title"], gV = {
|
|
9078
|
+
key: 0,
|
|
9079
|
+
class: "apf-pending-chip__spinner"
|
|
9080
|
+
}, CV = ["disabled"], AV = {
|
|
9081
|
+
key: 2,
|
|
9082
|
+
class: "apf-pending-chip__status"
|
|
9083
|
+
}, ZV = {
|
|
9084
|
+
key: 3,
|
|
9085
|
+
class: "apf-pending-chip__status is-error"
|
|
9086
|
+
}, lV = /* @__PURE__ */ j({
|
|
9087
|
+
__name: "PendingAttachmentChip",
|
|
9088
|
+
props: {
|
|
9089
|
+
attachment: {}
|
|
9090
|
+
},
|
|
9091
|
+
emits: ["preview", "remove"],
|
|
9092
|
+
setup(I, { emit: g }) {
|
|
9093
|
+
const C = I, Z = g;
|
|
9094
|
+
function A(l) {
|
|
9095
|
+
return l != null && l.startsWith("image/") ? "picture" : "document";
|
|
9096
|
+
}
|
|
9097
|
+
function d() {
|
|
9098
|
+
C.attachment.status === "done" && Z("preview", C.attachment);
|
|
9099
|
+
}
|
|
9100
|
+
return (l, c) => (m(), W("div", {
|
|
9101
|
+
class: n(["apf-pending-chip", {
|
|
9102
|
+
"is-error": I.attachment.status === "error",
|
|
9103
|
+
"is-clickable": I.attachment.status === "done"
|
|
9104
|
+
}]),
|
|
9105
|
+
title: I.attachment.status === "error" && I.attachment.error || I.attachment.filename
|
|
9106
|
+
}, [
|
|
9107
|
+
I.attachment.status === "uploading" ? (m(), W("span", gV)) : (m(), T($(XI), {
|
|
9108
|
+
key: 1,
|
|
9109
|
+
name: A(I.attachment.mimetype),
|
|
9110
|
+
size: 14,
|
|
9111
|
+
class: "apf-pending-chip__icon"
|
|
9112
|
+
}, null, 8, ["name"])),
|
|
9113
|
+
Y("button", {
|
|
9114
|
+
type: "button",
|
|
9115
|
+
class: "apf-pending-chip__name",
|
|
9116
|
+
disabled: I.attachment.status !== "done",
|
|
9117
|
+
onClick: d
|
|
9118
|
+
}, h(I.attachment.filename), 9, CV),
|
|
9119
|
+
I.attachment.status === "uploading" ? (m(), W("span", AV, "上传中")) : I.attachment.status === "error" ? (m(), W("span", ZV, h(I.attachment.error || "失败"), 1)) : R("", !0),
|
|
9120
|
+
Y("button", {
|
|
9121
|
+
type: "button",
|
|
9122
|
+
class: "apf-pending-chip__remove",
|
|
9123
|
+
"aria-label": "移除",
|
|
9124
|
+
onClick: c[0] || (c[0] = (G) => Z("remove", I.attachment.id))
|
|
9125
|
+
}, [
|
|
9126
|
+
II($(XI), {
|
|
9127
|
+
name: "close",
|
|
9128
|
+
size: 12
|
|
9129
|
+
})
|
|
9130
|
+
])
|
|
9131
|
+
], 10, IV));
|
|
9132
|
+
}
|
|
9133
|
+
}), nN = /* @__PURE__ */ U(lV, [["__scopeId", "data-v-d95f9eb6"]]), dV = { class: "apf-assistant-picker" }, GV = {
|
|
9046
9134
|
key: 0,
|
|
9047
9135
|
class: "apf-assistant-picker__state"
|
|
9048
|
-
},
|
|
9136
|
+
}, cV = {
|
|
9049
9137
|
key: 1,
|
|
9050
9138
|
class: "apf-assistant-picker__state apf-assistant-picker__state--error"
|
|
9051
|
-
},
|
|
9139
|
+
}, bV = {
|
|
9052
9140
|
key: 2,
|
|
9053
9141
|
class: "apf-assistant-picker__state"
|
|
9054
|
-
},
|
|
9142
|
+
}, mV = ["onClick"], iV = { class: "apf-assistant-picker__main" }, WV = { class: "apf-assistant-picker__icon-wrap" }, BV = { class: "apf-assistant-picker__info" }, YV = { class: "apf-assistant-picker__caps" }, sV = /* @__PURE__ */ j({
|
|
9055
9143
|
__name: "AssistantPicker",
|
|
9056
9144
|
props: {
|
|
9057
9145
|
items: {},
|
|
@@ -9073,13 +9161,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9073
9161
|
function l(G) {
|
|
9074
9162
|
Z("update:modelValue", G.id), Z("select", G);
|
|
9075
9163
|
}
|
|
9076
|
-
const c =
|
|
9077
|
-
return (G, b) => (m(), W("div",
|
|
9078
|
-
I.loading ? (m(), W("div",
|
|
9164
|
+
const c = y(() => !C.loading && !C.error && !C.items.length);
|
|
9165
|
+
return (G, b) => (m(), W("div", dV, [
|
|
9166
|
+
I.loading ? (m(), W("div", GV, [...b[0] || (b[0] = [
|
|
9079
9167
|
Y("p", null, "正在加载智能体…", -1)
|
|
9080
|
-
])])) : I.error ? (m(), W("div",
|
|
9168
|
+
])])) : I.error ? (m(), W("div", cV, [
|
|
9081
9169
|
Y("p", null, h(I.error), 1)
|
|
9082
|
-
])) : c.value ? (m(), W("div",
|
|
9170
|
+
])) : c.value ? (m(), W("div", bV, [...b[1] || (b[1] = [
|
|
9083
9171
|
Y("p", null, "暂无可用智能体", -1)
|
|
9084
9172
|
])])) : R("", !0),
|
|
9085
9173
|
(m(!0), W(Q, null, q(I.items, (i) => (m(), W("button", {
|
|
@@ -9088,17 +9176,17 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9088
9176
|
class: n(["apf-assistant-picker__item", { "is-active": I.modelValue === i.id }]),
|
|
9089
9177
|
onClick: (w) => l(i)
|
|
9090
9178
|
}, [
|
|
9091
|
-
Y("div",
|
|
9092
|
-
Y("span",
|
|
9093
|
-
II($(
|
|
9179
|
+
Y("div", iV, [
|
|
9180
|
+
Y("span", WV, [
|
|
9181
|
+
II($(XI), {
|
|
9094
9182
|
name: d(i),
|
|
9095
9183
|
size: 22
|
|
9096
9184
|
}, null, 8, ["name"])
|
|
9097
9185
|
]),
|
|
9098
|
-
Y("span",
|
|
9186
|
+
Y("span", BV, [
|
|
9099
9187
|
Y("b", null, h(i.name), 1),
|
|
9100
9188
|
Y("small", null, h(i.description || "适合处理一类明确任务"), 1),
|
|
9101
|
-
Y("span",
|
|
9189
|
+
Y("span", YV, [
|
|
9102
9190
|
(m(!0), W(Q, null, q(A(i), (w) => (m(), W("span", {
|
|
9103
9191
|
key: w,
|
|
9104
9192
|
class: n(["apf-assistant-picker__cap", { "is-confirm": w === "需要确认" }])
|
|
@@ -9109,10 +9197,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9109
9197
|
Y("span", {
|
|
9110
9198
|
class: n(["apf-assistant-picker__choose", { "is-selected": I.modelValue === i.id }])
|
|
9111
9199
|
}, h(I.modelValue === i.id ? "已选择" : "开始使用"), 3)
|
|
9112
|
-
], 10,
|
|
9200
|
+
], 10, mV))), 128))
|
|
9113
9201
|
]));
|
|
9114
9202
|
}
|
|
9115
|
-
}),
|
|
9203
|
+
}), MN = /* @__PURE__ */ U(sV, [["__scopeId", "data-v-f05e69c0"]]), wV = { class: "apf-model-picker" }, VV = /* @__PURE__ */ j({
|
|
9116
9204
|
__name: "ModelPicker",
|
|
9117
9205
|
props: {
|
|
9118
9206
|
models: {},
|
|
@@ -9124,7 +9212,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9124
9212
|
const C = g;
|
|
9125
9213
|
return (Z, A) => {
|
|
9126
9214
|
const d = _("el-option"), l = _("el-select");
|
|
9127
|
-
return m(), W("label",
|
|
9215
|
+
return m(), W("label", wV, [
|
|
9128
9216
|
II(l, {
|
|
9129
9217
|
"model-value": I.modelValue || void 0,
|
|
9130
9218
|
disabled: I.loading || !I.models.length,
|
|
@@ -9132,18 +9220,18 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9132
9220
|
"onUpdate:modelValue": A[0] || (A[0] = (c) => C("update:modelValue", c))
|
|
9133
9221
|
}, {
|
|
9134
9222
|
default: O(() => [
|
|
9135
|
-
I.loading ? (m(),
|
|
9223
|
+
I.loading ? (m(), T(d, {
|
|
9136
9224
|
key: 0,
|
|
9137
9225
|
label: "正在加载模型…",
|
|
9138
9226
|
value: "",
|
|
9139
9227
|
disabled: ""
|
|
9140
|
-
})) : I.models.length ? R("", !0) : (m(),
|
|
9228
|
+
})) : I.models.length ? R("", !0) : (m(), T(d, {
|
|
9141
9229
|
key: 1,
|
|
9142
9230
|
label: "暂无可用模型",
|
|
9143
9231
|
value: "",
|
|
9144
9232
|
disabled: ""
|
|
9145
9233
|
})),
|
|
9146
|
-
(m(!0), W(Q, null, q(I.models, (c) => (m(),
|
|
9234
|
+
(m(!0), W(Q, null, q(I.models, (c) => (m(), T(d, {
|
|
9147
9235
|
key: c.id,
|
|
9148
9236
|
label: `${c.name} · ${c.provider}`,
|
|
9149
9237
|
value: c.id
|
|
@@ -9154,11 +9242,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9154
9242
|
]);
|
|
9155
9243
|
};
|
|
9156
9244
|
}
|
|
9157
|
-
}),
|
|
9158
|
-
function
|
|
9245
|
+
}), KN = /* @__PURE__ */ U(VV, [["__scopeId", "data-v-483ae73d"]]), Rl = Symbol("fg-toast");
|
|
9246
|
+
function SN(I) {
|
|
9159
9247
|
return { [Rl]: I };
|
|
9160
9248
|
}
|
|
9161
|
-
function
|
|
9249
|
+
function DN() {
|
|
9162
9250
|
const I = Id(Rl);
|
|
9163
9251
|
return {
|
|
9164
9252
|
show(g, C = "info", Z) {
|
|
@@ -9183,7 +9271,7 @@ function hN() {
|
|
|
9183
9271
|
}
|
|
9184
9272
|
};
|
|
9185
9273
|
}
|
|
9186
|
-
function
|
|
9274
|
+
function FN() {
|
|
9187
9275
|
async function I(Z, A = {}) {
|
|
9188
9276
|
const {
|
|
9189
9277
|
title: d = "确认操作",
|
|
@@ -9224,7 +9312,7 @@ function aN() {
|
|
|
9224
9312
|
confirmDanger: C
|
|
9225
9313
|
};
|
|
9226
9314
|
}
|
|
9227
|
-
function
|
|
9315
|
+
function pN() {
|
|
9228
9316
|
return {
|
|
9229
9317
|
success(I, g = {}) {
|
|
9230
9318
|
IC({ message: I, type: "success", ...g });
|
|
@@ -9240,7 +9328,7 @@ function RN() {
|
|
|
9240
9328
|
}
|
|
9241
9329
|
};
|
|
9242
9330
|
}
|
|
9243
|
-
function
|
|
9331
|
+
function JN(I, g = 300) {
|
|
9244
9332
|
const C = t(null);
|
|
9245
9333
|
function Z(...A) {
|
|
9246
9334
|
C.value && clearTimeout(C.value), C.value = setTimeout(() => {
|
|
@@ -9251,12 +9339,12 @@ function HN(I, g = 300) {
|
|
|
9251
9339
|
C.value && clearTimeout(C.value);
|
|
9252
9340
|
}), Z;
|
|
9253
9341
|
}
|
|
9254
|
-
function
|
|
9342
|
+
function zN(I, g) {
|
|
9255
9343
|
var c;
|
|
9256
|
-
const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A =
|
|
9344
|
+
const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A = y(() => {
|
|
9257
9345
|
const G = I.value, b = (C.value - 1) * Z.value;
|
|
9258
9346
|
return G.slice(b, b + Z.value);
|
|
9259
|
-
}), d =
|
|
9347
|
+
}), d = y(() => I.value.length);
|
|
9260
9348
|
function l() {
|
|
9261
9349
|
C.value = 1;
|
|
9262
9350
|
}
|
|
@@ -9275,8 +9363,8 @@ function yN(I, g) {
|
|
|
9275
9363
|
resetPage: l
|
|
9276
9364
|
};
|
|
9277
9365
|
}
|
|
9278
|
-
function
|
|
9279
|
-
const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l =
|
|
9366
|
+
function kN(I = {}) {
|
|
9367
|
+
const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l = y(() => A.value !== null);
|
|
9280
9368
|
let c = null, G = 0;
|
|
9281
9369
|
function b() {
|
|
9282
9370
|
G++, G === 1 && (Z.value = !0, A.value = null, d.value = !1, c = setTimeout(() => {
|
|
@@ -9308,7 +9396,7 @@ function uN(I = {}) {
|
|
|
9308
9396
|
reset: s
|
|
9309
9397
|
};
|
|
9310
9398
|
}
|
|
9311
|
-
function
|
|
9399
|
+
function eN(I) {
|
|
9312
9400
|
const {
|
|
9313
9401
|
containerRef: g,
|
|
9314
9402
|
autoScroll: C = !0,
|
|
@@ -9323,7 +9411,7 @@ function nN(I) {
|
|
|
9323
9411
|
}
|
|
9324
9412
|
async function G(a = !0) {
|
|
9325
9413
|
if (!a && !l.value) return;
|
|
9326
|
-
await
|
|
9414
|
+
await cg();
|
|
9327
9415
|
const V = g.value;
|
|
9328
9416
|
V && V.scrollTo({
|
|
9329
9417
|
top: V.scrollHeight,
|
|
@@ -9362,8 +9450,8 @@ function nN(I) {
|
|
|
9362
9450
|
disableAutoScroll: w
|
|
9363
9451
|
};
|
|
9364
9452
|
}
|
|
9365
|
-
const
|
|
9366
|
-
function
|
|
9453
|
+
const TC = /* @__PURE__ */ new Map();
|
|
9454
|
+
function LN(I) {
|
|
9367
9455
|
const {
|
|
9368
9456
|
url: g,
|
|
9369
9457
|
token: C,
|
|
@@ -9371,7 +9459,7 @@ function MN(I) {
|
|
|
9371
9459
|
reconnectInterval: A = 3e3,
|
|
9372
9460
|
maxRetries: d = 1 / 0
|
|
9373
9461
|
} = I;
|
|
9374
|
-
let l =
|
|
9462
|
+
let l = TC.get(g);
|
|
9375
9463
|
l || (l = {
|
|
9376
9464
|
ws: null,
|
|
9377
9465
|
status: t("closed"),
|
|
@@ -9386,7 +9474,7 @@ function MN(I) {
|
|
|
9386
9474
|
maxRetries: d,
|
|
9387
9475
|
intentionalClose: !1,
|
|
9388
9476
|
token: C
|
|
9389
|
-
},
|
|
9477
|
+
}, TC.set(g, l)), l.refCount += 1, l.reconnectInterval = A, l.maxRetries = d, l.token = C;
|
|
9390
9478
|
const c = [], G = l.status, b = () => gd(Z);
|
|
9391
9479
|
function i() {
|
|
9392
9480
|
l && (l.pingTimer && clearInterval(l.pingTimer), l.pongTimer && clearTimeout(l.pongTimer), l.pingTimer = null, l.pongTimer = null);
|
|
@@ -9418,8 +9506,8 @@ function MN(I) {
|
|
|
9418
9506
|
const e = {
|
|
9419
9507
|
action: "subscribe",
|
|
9420
9508
|
project_id: K ?? null
|
|
9421
|
-
},
|
|
9422
|
-
if (
|
|
9509
|
+
}, u = typeof l.token == "function" ? l.token() : l.token;
|
|
9510
|
+
if (u && (e.token = u), !l.subscribedProjects.has(K ?? null)) {
|
|
9423
9511
|
if (K == null) {
|
|
9424
9512
|
l.ws.send(JSON.stringify(e)), l.subscribedProjects.add(null);
|
|
9425
9513
|
return;
|
|
@@ -9437,17 +9525,17 @@ function MN(I) {
|
|
|
9437
9525
|
const H = J.getProjectId();
|
|
9438
9526
|
H == null ? e = !0 : K.add(H);
|
|
9439
9527
|
}
|
|
9440
|
-
const
|
|
9441
|
-
|
|
9528
|
+
const u = b();
|
|
9529
|
+
u == null ? e = !0 : K.add(u), e && a(void 0);
|
|
9442
9530
|
for (const p of K) a(p);
|
|
9443
9531
|
}
|
|
9444
9532
|
function X(K) {
|
|
9445
9533
|
if (!l) return;
|
|
9446
9534
|
const e = l.handlers.get(K.type);
|
|
9447
9535
|
if (e)
|
|
9448
|
-
for (const
|
|
9449
|
-
const p =
|
|
9450
|
-
p != null && p !== K.project_id ||
|
|
9536
|
+
for (const u of e) {
|
|
9537
|
+
const p = u.getProjectId();
|
|
9538
|
+
p != null && p !== K.project_id || u.handler(K.data);
|
|
9451
9539
|
}
|
|
9452
9540
|
}
|
|
9453
9541
|
function o() {
|
|
@@ -9463,12 +9551,12 @@ function MN(I) {
|
|
|
9463
9551
|
}, K.onmessage = (e) => {
|
|
9464
9552
|
if (l)
|
|
9465
9553
|
try {
|
|
9466
|
-
const
|
|
9467
|
-
if (
|
|
9554
|
+
const u = JSON.parse(String(e.data));
|
|
9555
|
+
if (u.action === "pong" || u.type === "pong") {
|
|
9468
9556
|
l.pongTimer && clearTimeout(l.pongTimer), l.pongTimer = null;
|
|
9469
9557
|
return;
|
|
9470
9558
|
}
|
|
9471
|
-
typeof
|
|
9559
|
+
typeof u.type == "string" && X(u);
|
|
9472
9560
|
} catch {
|
|
9473
9561
|
}
|
|
9474
9562
|
}, K.onerror = () => {
|
|
@@ -9487,20 +9575,20 @@ function MN(I) {
|
|
|
9487
9575
|
}
|
|
9488
9576
|
function k() {
|
|
9489
9577
|
var K;
|
|
9490
|
-
l && (S(), l.refCount = Math.max(0, l.refCount - 1), !(l.refCount > 0) && (l.intentionalClose = !0, l.reconnectTimer && clearTimeout(l.reconnectTimer), i(), (K = l.ws) == null || K.close(), l.ws = null, l.status.value = "closed",
|
|
9578
|
+
l && (S(), l.refCount = Math.max(0, l.refCount - 1), !(l.refCount > 0) && (l.intentionalClose = !0, l.reconnectTimer && clearTimeout(l.reconnectTimer), i(), (K = l.ws) == null || K.close(), l.ws = null, l.status.value = "closed", TC.delete(g), l = void 0));
|
|
9491
9579
|
}
|
|
9492
9580
|
function L(K, e) {
|
|
9493
9581
|
var J;
|
|
9494
9582
|
if (!l) return () => {
|
|
9495
9583
|
};
|
|
9496
|
-
let
|
|
9497
|
-
|
|
9584
|
+
let u = l.handlers.get(K);
|
|
9585
|
+
u || (u = /* @__PURE__ */ new Set(), l.handlers.set(K, u));
|
|
9498
9586
|
const p = {
|
|
9499
9587
|
getProjectId: b,
|
|
9500
9588
|
handler: e
|
|
9501
9589
|
};
|
|
9502
|
-
return
|
|
9503
|
-
|
|
9590
|
+
return u.add(p), c.push(p), ((J = l.ws) == null ? void 0 : J.readyState) === WebSocket.OPEN && a(b()), () => {
|
|
9591
|
+
u == null || u.delete(p);
|
|
9504
9592
|
const H = c.indexOf(p);
|
|
9505
9593
|
H >= 0 && c.splice(H, 1);
|
|
9506
9594
|
};
|
|
@@ -9512,7 +9600,7 @@ function MN(I) {
|
|
|
9512
9600
|
k();
|
|
9513
9601
|
}), { status: G, connect: o, disconnect: k, on: L };
|
|
9514
9602
|
}
|
|
9515
|
-
function
|
|
9603
|
+
function tN(I) {
|
|
9516
9604
|
if (!I) return "操作失败";
|
|
9517
9605
|
if (typeof I == "string") return I;
|
|
9518
9606
|
if (I instanceof Error) return I.message || "操作失败";
|
|
@@ -9529,9 +9617,9 @@ function KN(I) {
|
|
|
9529
9617
|
}
|
|
9530
9618
|
return "操作失败";
|
|
9531
9619
|
}
|
|
9532
|
-
const
|
|
9620
|
+
const NV = /\/(?:schema-platform\/)?api\/ai\/documents\/([^/?#]+)\/file/i, xZ = /\.(mp4|webm|mov|m4v)(?:\?|#|$|\s)/i, XV = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?|#|$|\s)/i, xC = /\.pdf(?:\?|#|$|\s)/i, jC = /\.(docx?|xlsx?|csv|txt|md)(?:\?|#|$|\s)/i, jZ = /(?:https?:\/\/[^\s"'<>\]]+|\/(?:schema-platform\/)?api\/ai\/documents\/[^/\s"'<>\]]+\/file)/gi;
|
|
9533
9621
|
function kg(I) {
|
|
9534
|
-
const g = I.trim().match(
|
|
9622
|
+
const g = I.trim().match(NV);
|
|
9535
9623
|
if (g != null && g[1]) return g[1];
|
|
9536
9624
|
if (/^[0-9a-f]{24}$/i.test(I.trim())) return I.trim();
|
|
9537
9625
|
}
|
|
@@ -9543,10 +9631,10 @@ function og(I) {
|
|
|
9543
9631
|
if (A === "json") return "json";
|
|
9544
9632
|
if (A === "document" || A === "documentIds") {
|
|
9545
9633
|
const c = C || g;
|
|
9546
|
-
return
|
|
9634
|
+
return xC.test(c) || Z.includes("pdf") ? "pdf" : jC.test(c) || /word|sheet|excel|csv|text/.test(Z) ? "office" : "file";
|
|
9547
9635
|
}
|
|
9548
9636
|
const d = [g, C].filter(Boolean).join(" ").toLowerCase(), l = Z.toLowerCase();
|
|
9549
|
-
return l.startsWith("video/") || xZ.test(d) ? "video" : l.startsWith("image/") ||
|
|
9637
|
+
return l.startsWith("video/") || xZ.test(d) ? "video" : l.startsWith("image/") || XV.test(d) ? "image" : l.includes("pdf") || xC.test(d) ? "pdf" : jC.test(d) || l.includes("word") || l.includes("sheet") || l.includes("excel") || l.includes("csv") || l.startsWith("text/") ? "office" : kg(g) && !xC.test(g) && !jC.test(g) && !xZ.test(g) ? "image" : "file";
|
|
9550
9638
|
}
|
|
9551
9639
|
function _I(I, g, C) {
|
|
9552
9640
|
var A;
|
|
@@ -9568,7 +9656,7 @@ function QZ(I) {
|
|
|
9568
9656
|
}
|
|
9569
9657
|
return null;
|
|
9570
9658
|
}
|
|
9571
|
-
function
|
|
9659
|
+
function TN(I, g = "art") {
|
|
9572
9660
|
if (I == null) return [];
|
|
9573
9661
|
const C = [], Z = /* @__PURE__ */ new Set();
|
|
9574
9662
|
let A = 0;
|
|
@@ -9663,7 +9751,7 @@ function SN(I, g = "art") {
|
|
|
9663
9751
|
}
|
|
9664
9752
|
return C;
|
|
9665
9753
|
}
|
|
9666
|
-
function
|
|
9754
|
+
function xN(I) {
|
|
9667
9755
|
return I.map((g, C) => {
|
|
9668
9756
|
const Z = og({
|
|
9669
9757
|
url: g.url,
|
|
@@ -9682,96 +9770,98 @@ function DN(I) {
|
|
|
9682
9770
|
};
|
|
9683
9771
|
});
|
|
9684
9772
|
}
|
|
9685
|
-
const
|
|
9773
|
+
const jN = "1.10.1", QN = "2.14.2", UN = "2026-08-27";
|
|
9686
9774
|
export {
|
|
9687
|
-
|
|
9688
|
-
|
|
9775
|
+
RV as APP_ICON_NAMES,
|
|
9776
|
+
EV as AVATAR_SIZE,
|
|
9689
9777
|
gA as AppDialog,
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9778
|
+
XI as AppIcon,
|
|
9779
|
+
yV as AppPagination,
|
|
9780
|
+
zV as AppUserPanel,
|
|
9781
|
+
RN as ApprovalCard,
|
|
9694
9782
|
cA as ArtifactGallery,
|
|
9695
|
-
|
|
9783
|
+
MN as AssistantPicker,
|
|
9696
9784
|
y2 as AttachmentPreviewModal,
|
|
9697
|
-
|
|
9698
|
-
|
|
9785
|
+
vV as BORDER_RADIUS,
|
|
9786
|
+
lN as BreadcrumbNav,
|
|
9699
9787
|
JI as CHART_COLORS,
|
|
9700
9788
|
QI as COLORS,
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9789
|
+
xV as CONTROL_HEIGHT,
|
|
9790
|
+
pV as CardGridSkeleton,
|
|
9791
|
+
GN as CardTable,
|
|
9792
|
+
hN as Composer,
|
|
9793
|
+
uV as ConfirmDialog,
|
|
9706
9794
|
H0 as ContentPanel,
|
|
9707
|
-
|
|
9795
|
+
uN as ConversationHeader,
|
|
9708
9796
|
Gl as DEFAULT_PAGE_SIZE,
|
|
9709
|
-
|
|
9710
|
-
|
|
9797
|
+
PV as DURATION,
|
|
9798
|
+
wN as DocumentPreviewDrawer,
|
|
9711
9799
|
bB as DocumentPreviewPanel,
|
|
9712
9800
|
d2 as DocumentSummaryList,
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9801
|
+
QN as EP_FORK_BASE,
|
|
9802
|
+
UN as EP_FORK_DATE,
|
|
9803
|
+
Gg as EmptyState,
|
|
9804
|
+
SV as ErrorBoundary,
|
|
9717
9805
|
$W as ExcelPreviewCard,
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9806
|
+
XN as ExecutionArtifactPanel,
|
|
9807
|
+
tV as FONT_SIZE,
|
|
9808
|
+
OV as FORM,
|
|
9809
|
+
mN as FieldRow,
|
|
9722
9810
|
nB as FileChip,
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9811
|
+
dN as FilterBar,
|
|
9812
|
+
MV as FilterTabs,
|
|
9813
|
+
nV as FormDialog,
|
|
9814
|
+
iN as HintText,
|
|
9815
|
+
NN as HitlArtifactPanel,
|
|
9728
9816
|
lA as ICON_MAP,
|
|
9729
|
-
|
|
9817
|
+
QV as ICON_SIZE,
|
|
9730
9818
|
BB as ImagePreviewCard,
|
|
9731
9819
|
VW as JsonCard,
|
|
9732
9820
|
oW as JsonDetailDialog,
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9821
|
+
jV as LAYOUT_HEIGHT,
|
|
9822
|
+
BN as LoadingDots,
|
|
9823
|
+
gN as LogStream,
|
|
9736
9824
|
qs as MessageAttachmentList,
|
|
9737
9825
|
f2 as MessageBubble,
|
|
9738
|
-
|
|
9826
|
+
oN as MessageList,
|
|
9739
9827
|
js as MessageParts,
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9828
|
+
fV as MetricChart,
|
|
9829
|
+
KN as ModelPicker,
|
|
9830
|
+
VN as NodeArtifactStrip,
|
|
9831
|
+
UV as PAGE,
|
|
9744
9832
|
ub as PAGE_SIZE_OPTIONS,
|
|
9745
9833
|
nb as PAGINATION_LAYOUT,
|
|
9746
|
-
|
|
9747
|
-
|
|
9834
|
+
ZN as PageHeader,
|
|
9835
|
+
AN as PageShell,
|
|
9748
9836
|
cl as PdfPreviewCard,
|
|
9749
|
-
|
|
9837
|
+
nN as PendingAttachmentChip,
|
|
9838
|
+
yN as ProcessingDrawer,
|
|
9750
9839
|
hw as RunStatusBar,
|
|
9751
|
-
|
|
9840
|
+
jN as SCHEMA_UI_VERSION,
|
|
9752
9841
|
y0 as SHADOWS,
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9842
|
+
TV as SPACING,
|
|
9843
|
+
YN as SchemaLitePreview,
|
|
9844
|
+
bN as SearchForm,
|
|
9845
|
+
WN as SectionToggle,
|
|
9846
|
+
$V as ServiceGrid,
|
|
9847
|
+
HN as SessionSidebar,
|
|
9848
|
+
_V as SeverityBadge,
|
|
9849
|
+
FV as Skeleton,
|
|
9850
|
+
kV as SliderCaptcha,
|
|
9851
|
+
qV as StatCard,
|
|
9852
|
+
DV as StatusTag,
|
|
9853
|
+
IN as StatusTimeline,
|
|
9854
|
+
aN as StreamStatusBanner,
|
|
9855
|
+
LV as TEXT_COLORS,
|
|
9856
|
+
cN as TableRowActions,
|
|
9767
9857
|
RB as TextPreviewCard,
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9858
|
+
CN as ThresholdSlider,
|
|
9859
|
+
eV as TimeRangePicker,
|
|
9860
|
+
KV as Toast,
|
|
9771
9861
|
_i as TruncatedTooltipText,
|
|
9772
|
-
|
|
9862
|
+
JV as UserAvatar,
|
|
9773
9863
|
wB as VideoPreviewCard,
|
|
9774
|
-
|
|
9864
|
+
rV as Z_INDEX,
|
|
9775
9865
|
og as detectArtifactKind,
|
|
9776
9866
|
kg as extractDocumentId,
|
|
9777
9867
|
dA as fileKind,
|
|
@@ -9779,22 +9869,22 @@ export {
|
|
|
9779
9869
|
Rg as isImage,
|
|
9780
9870
|
BZ as isOffice,
|
|
9781
9871
|
Lg as isPdf,
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9872
|
+
sN as isPreviewable,
|
|
9873
|
+
HV as isRegisteredAppIcon,
|
|
9874
|
+
xN as normalizeAttachments,
|
|
9875
|
+
TN as normalizeNodeOutput,
|
|
9876
|
+
SN as provideToast,
|
|
9787
9877
|
us as renderMarkdown,
|
|
9788
|
-
|
|
9878
|
+
tN as resolveApiErrorMessage,
|
|
9789
9879
|
ys as splitTextAndCodeBlocks,
|
|
9790
9880
|
QZ as tryParseJsonText,
|
|
9791
|
-
|
|
9792
|
-
|
|
9881
|
+
eN as useChatScroll,
|
|
9882
|
+
zN as useClientPagination,
|
|
9793
9883
|
VB as useClipboard,
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9884
|
+
FN as useConfirm,
|
|
9885
|
+
kN as useDataLoading,
|
|
9886
|
+
JN as useDebounceFn,
|
|
9887
|
+
pN as useMessage,
|
|
9888
|
+
LN as useRealtime,
|
|
9889
|
+
DN as useToast
|
|
9800
9890
|
};
|