@apform-ui/core 1.10.4 → 1.10.5

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.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 x, normalizeStyle as dI, withCtx as O, normalizeClass as u, renderSlot as AI, createVNode as II, createTextVNode as gI, toDisplayString as h, unref as $, createCommentVNode as H, shallowRef as jC, onMounted as tg, watch as NI, onUnmounted as mg, h as kI, nextTick as $I, computed as n, Fragment as Q, renderList as q, Teleport as QZ, TransitionGroup as rl, onErrorCaptured as fl, createSlots as UZ, resolveDynamicComponent as vZ, withKeys as QC, withModifiers as UI, resolveDirective as OZ, withDirectives as Gg, reactive as EZ, useAttrs as ql, vShow as _l, onBeforeUnmount as PZ, normalizeProps as vA, guardReactiveProps as OA, useSlots as rZ, vModelText as UC, vModelSelect as $l, inject as Id, toValue as gd } from "vue";
4
+ import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as x, normalizeStyle as dI, withCtx as O, normalizeClass as n, renderSlot as CI, createVNode as II, createTextVNode as gI, toDisplayString as h, unref as $, createCommentVNode as R, shallowRef as jC, onMounted as tg, watch as NI, onUnmounted as mg, h as kI, nextTick as $I, computed as u, Fragment as Q, renderList as q, Teleport as UZ, TransitionGroup as rl, onErrorCaptured as fl, createSlots as vZ, resolveDynamicComponent as OZ, withKeys as QC, withModifiers as UI, resolveDirective as EZ, withDirectives as Gg, reactive as PZ, useAttrs as ql, vShow as _l, onBeforeUnmount as rZ, normalizeProps as OA, guardReactiveProps as EA, useSlots as IA, vModelText as UC, 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({
@@ -94,23 +94,23 @@ const id = /* @__PURE__ */ j({
94
94
  }, {
95
95
  header: O(() => [
96
96
  Y("div", {
97
- class: u(G.$style.header)
97
+ class: n(G.$style.header)
98
98
  }, [
99
99
  Y("span", {
100
- class: u(G.$style.title)
100
+ class: n(G.$style.title)
101
101
  }, h(I.title), 3),
102
102
  Y("div", {
103
- class: u(G.$style.headerRight)
103
+ class: n(G.$style.headerRight)
104
104
  }, [
105
105
  I.showFullscreenBtn ? (m(), x(i, {
106
106
  key: 0,
107
- class: u(G.$style.headerBtn),
107
+ class: n(G.$style.headerBtn),
108
108
  icon: Z.value ? $(md) : $(cd),
109
109
  text: "",
110
110
  onClick: A
111
- }, null, 8, ["class", "icon"])) : H("", !0),
111
+ }, null, 8, ["class", "icon"])) : R("", !0),
112
112
  II(i, {
113
- class: u(G.$style.headerBtn),
113
+ class: n(G.$style.headerBtn),
114
114
  icon: $(dd),
115
115
  text: "",
116
116
  onClick: b[0] || (b[0] = (s) => C("update:modelValue", !1))
@@ -120,9 +120,9 @@ const id = /* @__PURE__ */ j({
120
120
  ]),
121
121
  footer: O(() => [
122
122
  Y("div", {
123
- class: u(G.$style.footer)
123
+ class: n(G.$style.footer)
124
124
  }, [
125
- AI(G.$slots, "footer", {}, () => [
125
+ CI(G.$slots, "footer", {}, () => [
126
126
  II(i, { onClick: l }, {
127
127
  default: O(() => [
128
128
  gI(h(I.cancelText), 1)
@@ -144,9 +144,9 @@ const id = /* @__PURE__ */ j({
144
144
  ]),
145
145
  default: O(() => [
146
146
  Y("div", {
147
- class: u(G.$style.body)
147
+ class: n(G.$style.body)
148
148
  }, [
149
- AI(G.$slots, "default")
149
+ CI(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
- }, IA = /* @__PURE__ */ U(id, [["__cssModules", Xd]]), fZ = /^[a-z0-9]+(-[a-z0-9]+)*$/, WC = (I, g, C, Z = "") => {
170
+ }, gA = /* @__PURE__ */ U(id, [["__cssModules", Xd]]), fZ = /^[a-z0-9]+(-[a-z0-9]+)*$/, WC = (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;
@@ -237,7 +237,7 @@ function hd(I, g) {
237
237
  const Z = ((I.rotate || 0) + (g.rotate || 0)) % 4;
238
238
  return Z && (C.rotate = Z), C;
239
239
  }
240
- function EA(I, g) {
240
+ function PA(I, g) {
241
241
  const C = hd(I, g);
242
242
  for (const Z in vC) 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;
@@ -246,9 +246,9 @@ function ad(I, g, C) {
246
246
  const Z = I.icons, A = I.aliases || /* @__PURE__ */ Object.create(null);
247
247
  let d = {};
248
248
  function l(c) {
249
- d = EA(Z[c] || A[c], d);
249
+ d = PA(Z[c] || A[c], d);
250
250
  }
251
- return l(g), C.forEach(l), EA(I, d);
251
+ return l(g), C.forEach(l), PA(I, d);
252
252
  }
253
253
  function _Z(I, g) {
254
254
  const C = [];
@@ -289,7 +289,7 @@ function $Z(I) {
289
289
  }
290
290
  return g;
291
291
  }
292
- const PA = /* @__PURE__ */ Object.create(null);
292
+ const rA = /* @__PURE__ */ Object.create(null);
293
293
  function Hd(I, g) {
294
294
  return {
295
295
  provider: I,
@@ -299,7 +299,7 @@ function Hd(I, g) {
299
299
  };
300
300
  }
301
301
  function ag(I, g) {
302
- const C = PA[I] || (PA[I] = /* @__PURE__ */ Object.create(null));
302
+ const C = rA[I] || (rA[I] = /* @__PURE__ */ Object.create(null));
303
303
  return C[g] || (C[g] = Hd(I, g));
304
304
  }
305
305
  function Il(I, g) {
@@ -353,7 +353,7 @@ const Cl = Object.freeze({
353
353
  ...Cl,
354
354
  ...cC
355
355
  }), Kd = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Sd = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
356
- function rA(I, g, C) {
356
+ function fA(I, g, C) {
357
357
  if (g === 1) return I;
358
358
  if (C = C || 100, typeof I == "number") return Math.ceil(I * g * C) / C;
359
359
  if (typeof I != "string") return I;
@@ -427,7 +427,7 @@ function zd(I, g) {
427
427
  });
428
428
  const l = Z.width, c = Z.height, G = A.width, b = A.height;
429
429
  let i, w;
430
- l === null ? (w = c === null ? "1em" : c === "auto" ? b : c, i = rA(w, G / b)) : (i = l === "auto" ? G : l, w = c === null ? rA(i, b / G) : c === "auto" ? b : c);
430
+ l === null ? (w = c === null ? "1em" : c === "auto" ? b : c, i = fA(w, G / b)) : (i = l === "auto" ? G : l, w = c === null ? fA(i, b / G) : c === "auto" ? b : c);
431
431
  const s = {}, a = (X, o) => {
432
432
  Jd(o) || (s[X] = o.toString());
433
433
  };
@@ -444,11 +444,11 @@ function zd(I, g) {
444
444
  body: d
445
445
  };
446
446
  }
447
- const kd = /\sid="(\S+)"/g, fA = /* @__PURE__ */ new Map();
447
+ const kd = /\sid="(\S+)"/g, qA = /* @__PURE__ */ new Map();
448
448
  function ed(I) {
449
449
  I = I.replace(/[0-9]+$/, "") || "a";
450
- const g = fA.get(I) || 0;
451
- return fA.set(I, g + 1), g ? `${I}${g}` : I;
450
+ const g = qA.get(I) || 0;
451
+ return qA.set(I, g + 1), g ? `${I}${g}` : I;
452
452
  }
453
453
  function Ld(I) {
454
454
  const g = [];
@@ -468,7 +468,7 @@ function td(I, g) {
468
468
  function EC(I) {
469
469
  return OC[I] || OC[""];
470
470
  }
471
- function gA(I) {
471
+ function CA(I) {
472
472
  let g;
473
473
  if (typeof I.resources == "string") g = [I.resources];
474
474
  else if (g = I.resources, !(g instanceof Array) || !g.length) return null;
@@ -483,15 +483,15 @@ function gA(I) {
483
483
  dataAfterTimeout: I.dataAfterTimeout !== !1
484
484
  };
485
485
  }
486
- const CA = /* @__PURE__ */ Object.create(null), Mg = ["https://api.simplesvg.com", "https://api.unisvg.com"], dC = [];
486
+ const AA = /* @__PURE__ */ Object.create(null), Mg = ["https://api.simplesvg.com", "https://api.unisvg.com"], dC = [];
487
487
  for (; Mg.length > 0; ) Mg.length === 1 || Math.random() > 0.5 ? dC.push(Mg.shift()) : dC.push(Mg.pop());
488
- CA[""] = gA({ resources: ["https://api.iconify.design"].concat(dC) });
488
+ AA[""] = CA({ resources: ["https://api.iconify.design"].concat(dC) });
489
489
  function Td(I, g) {
490
- const C = gA(g);
491
- return C === null ? !1 : (CA[I] = C, !0);
490
+ const C = CA(g);
491
+ return C === null ? !1 : (AA[I] = C, !0);
492
492
  }
493
- function AA(I) {
494
- return CA[I];
493
+ function ZA(I) {
494
+ return AA[I];
495
495
  }
496
496
  const xd = () => {
497
497
  let I;
@@ -500,9 +500,9 @@ const xd = () => {
500
500
  } catch {
501
501
  }
502
502
  };
503
- let qA = xd();
503
+ let _A = xd();
504
504
  function jd(I, g) {
505
- const C = AA(I);
505
+ const C = ZA(I);
506
506
  if (!C) return 0;
507
507
  let Z;
508
508
  if (!C.maxURL) Z = 0;
@@ -538,13 +538,13 @@ const Ud = (I, g, C) => {
538
538
  };
539
539
  function vd(I) {
540
540
  if (typeof I == "string") {
541
- const g = AA(I);
541
+ const g = ZA(I);
542
542
  if (g) return g.path;
543
543
  }
544
544
  return "/";
545
545
  }
546
546
  const Od = (I, g, C) => {
547
- if (!qA) {
547
+ if (!_A) {
548
548
  C("abort", 424);
549
549
  return;
550
550
  }
@@ -565,7 +565,7 @@ const Od = (I, g, C) => {
565
565
  return;
566
566
  }
567
567
  let A = 503;
568
- qA(I + Z).then((d) => {
568
+ _A(I + Z).then((d) => {
569
569
  const l = d.status;
570
570
  if (l !== 200) {
571
571
  setTimeout(() => {
@@ -728,12 +728,12 @@ function IG(I, g, C, Z) {
728
728
  }), s = [];
729
729
  }
730
730
  function K(y, p, J) {
731
- const R = p !== "success";
731
+ const H = p !== "success";
732
732
  switch (s = s.filter((z) => z !== y), G) {
733
733
  case "pending":
734
734
  break;
735
735
  case "failed":
736
- if (R || !I.dataAfterTimeout) return;
736
+ if (H || !I.dataAfterTimeout) return;
737
737
  break;
738
738
  default:
739
739
  return;
@@ -742,7 +742,7 @@ function IG(I, g, C, Z) {
742
742
  i = J, k();
743
743
  return;
744
744
  }
745
- if (R) {
745
+ if (H) {
746
746
  i = J, s.length || (l.length ? e() : k());
747
747
  return;
748
748
  }
@@ -771,8 +771,8 @@ function IG(I, g, C, Z) {
771
771
  const p = {
772
772
  status: "pending",
773
773
  resource: y,
774
- callback: (J, R) => {
775
- K(p, J, R);
774
+ callback: (J, H) => {
775
+ K(p, J, H);
776
776
  }
777
777
  };
778
778
  s.push(p), b++, w = setTimeout(e, I.rotate), C(y, g, p.callback);
@@ -807,12 +807,12 @@ function ll(I) {
807
807
  cleanup: Z
808
808
  };
809
809
  }
810
- function _A() {
810
+ function $A() {
811
811
  }
812
812
  const DC = /* @__PURE__ */ Object.create(null);
813
813
  function gG(I) {
814
814
  if (!DC[I]) {
815
- const g = AA(I);
815
+ const g = ZA(I);
816
816
  if (!g) return;
817
817
  DC[I] = {
818
818
  config: g,
@@ -826,21 +826,21 @@ function CG(I, g, C) {
826
826
  if (typeof I == "string") {
827
827
  const d = EC(I);
828
828
  if (!d)
829
- return C(void 0, 424), _A;
829
+ return C(void 0, 424), $A;
830
830
  A = d.send;
831
831
  const l = gG(I);
832
832
  l && (Z = l.redundancy);
833
833
  } else {
834
- const d = gA(I);
834
+ const d = CA(I);
835
835
  if (d) {
836
836
  Z = ll(d);
837
837
  const l = EC(I.resources ? I.resources[0] : "");
838
838
  l && (A = l.send);
839
839
  }
840
840
  }
841
- return !Z || !A ? (C(void 0, 424), _A) : Z.query(g, A, C)().abort;
841
+ return !Z || !A ? (C(void 0, 424), $A) : Z.query(g, A, C)().abort;
842
842
  }
843
- function $A() {
843
+ function IZ() {
844
844
  }
845
845
  function AG(I) {
846
846
  I.iconsLoaderFlag || (I.iconsLoaderFlag = !0, setTimeout(() => {
@@ -873,7 +873,7 @@ function Kg(I, g, C) {
873
873
  }
874
874
  Z(), AG(I);
875
875
  }
876
- function IZ(I, g) {
876
+ function gZ(I, g) {
877
877
  I instanceof Promise ? I.then((C) => {
878
878
  g(C);
879
879
  }).catch(() => {
@@ -887,14 +887,14 @@ function lG(I, g) {
887
887
  if (delete I.iconsToLoad, !A || !A.length) return;
888
888
  const d = I.loadIcon;
889
889
  if (I.loadIcons && (A.length > 1 || !d)) {
890
- IZ(I.loadIcons(A, Z, C), (b) => {
890
+ gZ(I.loadIcons(A, Z, C), (b) => {
891
891
  Kg(I, A, b);
892
892
  });
893
893
  return;
894
894
  }
895
895
  if (d) {
896
896
  A.forEach((b) => {
897
- IZ(d(b, Z, C), (i) => {
897
+ gZ(d(b, Z, C), (i) => {
898
898
  Kg(I, [b], i ? {
899
899
  prefix: Z,
900
900
  icons: { [b]: i }
@@ -922,7 +922,7 @@ const dG = (I, g) => {
922
922
  if (!C.pending.length) {
923
923
  let c = !0;
924
924
  return g && setTimeout(() => {
925
- c && g(C.loaded, C.missing, C.pending, $A);
925
+ c && g(C.loaded, C.missing, C.pending, IZ);
926
926
  }), () => {
927
927
  c = !1;
928
928
  };
@@ -941,7 +941,7 @@ const dG = (I, g) => {
941
941
  }), A.forEach((c) => {
942
942
  const G = Z[c.provider][c.prefix];
943
943
  G.length && lG(c, G);
944
- }), g ? fd(g, C, A) : $A;
944
+ }), g ? fd(g, C, A) : IZ;
945
945
  };
946
946
  function GG(I, g) {
947
947
  const C = { ...I };
@@ -1003,7 +1003,7 @@ function BG(I) {
1003
1003
  function YG(I) {
1004
1004
  return 'url("' + BG(I) + '")';
1005
1005
  }
1006
- const gZ = {
1006
+ const CZ = {
1007
1007
  ...Al,
1008
1008
  inline: !1
1009
1009
  }, sG = {
@@ -1017,30 +1017,30 @@ const gZ = {
1017
1017
  backgroundColor: "currentColor"
1018
1018
  }, dl = {
1019
1019
  backgroundColor: "transparent"
1020
- }, CZ = {
1020
+ }, AZ = {
1021
1021
  Image: "var(--svg)",
1022
1022
  Repeat: "no-repeat",
1023
1023
  Size: "100% 100%"
1024
- }, AZ = {
1024
+ }, ZZ = {
1025
1025
  webkitMask: PC,
1026
1026
  mask: PC,
1027
1027
  background: dl
1028
1028
  };
1029
- for (const I in AZ) {
1030
- const g = AZ[I];
1031
- for (const C in CZ)
1032
- g[I + C] = CZ[C];
1029
+ for (const I in ZZ) {
1030
+ const g = ZZ[I];
1031
+ for (const C in AZ)
1032
+ g[I + C] = AZ[C];
1033
1033
  }
1034
1034
  const GC = {};
1035
1035
  ["horizontal", "vertical"].forEach((I) => {
1036
1036
  const g = I.slice(0, 1) + "Flip";
1037
1037
  GC[I + "-flip"] = g, GC[I.slice(0, 1) + "-flip"] = g, GC[I + "Flip"] = g;
1038
1038
  });
1039
- function ZZ(I) {
1039
+ function lZ(I) {
1040
1040
  return I + (I.match(/^[-0-9.]+$/) ? "px" : "");
1041
1041
  }
1042
- const lZ = (I, g) => {
1043
- const C = GG(gZ, g), Z = { ...sG }, A = g.mode || "svg", d = {}, l = g.style, c = typeof l == "object" && !(l instanceof Array) ? l : {};
1042
+ const dZ = (I, g) => {
1043
+ const C = GG(CZ, g), Z = { ...sG }, A = g.mode || "svg", d = {}, l = g.style, c = typeof l == "object" && !(l instanceof Array) ? l : {};
1044
1044
  for (let X in g) {
1045
1045
  const o = g[X];
1046
1046
  if (o !== void 0)
@@ -1078,7 +1078,7 @@ const lZ = (I, g) => {
1078
1078
  break;
1079
1079
  default: {
1080
1080
  const S = GC[X];
1081
- S ? (o === !0 || o === "true" || o === 1) && (C[S] = !0) : gZ[X] === void 0 && (Z[X] = o);
1081
+ S ? (o === !0 || o === "true" || o === 1) && (C[S] = !0) : CZ[X] === void 0 && (Z[X] = o);
1082
1082
  }
1083
1083
  }
1084
1084
  }
@@ -1096,8 +1096,8 @@ const lZ = (I, g) => {
1096
1096
  return Z.style = {
1097
1097
  ...d,
1098
1098
  "--svg": YG(V),
1099
- width: ZZ(b.width),
1100
- height: ZZ(b.height),
1099
+ width: lZ(b.width),
1100
+ height: lZ(b.height),
1101
1101
  ...wG,
1102
1102
  ...a ? PC : dl,
1103
1103
  ...c
@@ -1187,12 +1187,12 @@ const VG = {
1187
1187
  }), NI(() => I.icon, G), mg(Z), () => {
1188
1188
  const b = l.value;
1189
1189
  if (!b)
1190
- return lZ(VG, I);
1190
+ return dZ(VG, I);
1191
1191
  let i = I;
1192
1192
  return b.classes && (i = {
1193
1193
  ...I,
1194
1194
  class: b.classes.join(" ")
1195
- }), lZ({
1195
+ }), dZ({
1196
1196
  ...BC,
1197
1197
  ...b.data
1198
1198
  }, i);
@@ -1379,7 +1379,7 @@ const VG = {
1379
1379
  width: 1024,
1380
1380
  height: 1024,
1381
1381
  body: '<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m67.2 275c33.3 0 60.3-23 60.3-57.3s-27-57.3-60.3-57.3s-60.2 23-60.2 57.3s27 57.4 60.2 57.4m11.7 360.1c0-6.8 2.4-24.6 1-34.8L539.3 725c-10.9 11.4-24.5 19.4-30.9 17.3a13 13 0 0 1-8.2-14.7l87.6-277c7.2-35.2-12.5-67.2-54.3-71.3c-44 0-109 44.7-148.5 101.5c0 6.8-1.3 23.6 0 33.8l52.6-60.6c11-11.4 23.6-19.4 30-17.2a13 13 0 0 1 7.8 16.1l-87 275.7c-10 32.2 9 63.8 55.1 71c67.9 0 108-43.6 147.5-100.4z"/>'
1382
- }, dZ = {
1382
+ }, GZ = {
1383
1383
  width: 1024,
1384
1384
  height: 1024,
1385
1385
  body: '<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.8 536.4l-99.5-99.6a38.4 38.4 0 1 0-54.4 54.3L429.1 682a38.3 38.3 0 0 0 54.3 0l262.4-262.5a38.4 38.4 0 1 0-54.3-54.3z"/>'
@@ -1487,7 +1487,7 @@ const VG = {
1487
1487
  width: 1024,
1488
1488
  height: 1024,
1489
1489
  body: '<path fill="currentColor" d="M352 159.9v70.5a352 352 0 1 0 320 0v-70.5A416.1 416.1 0 0 1 512 960a416 416 0 0 1-160-800.1"/><path fill="currentColor" d="M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"/>'
1490
- }, GZ = {
1490
+ }, cZ = {
1491
1491
  width: 1024,
1492
1492
  height: 1024,
1493
1493
  body: '<path fill="currentColor" d="M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"/><path fill="currentColor" d="M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"/>'
@@ -1691,7 +1691,7 @@ const VG = {
1691
1691
  width: 1024,
1692
1692
  height: 1024,
1693
1693
  body: '<path fill="currentColor" d="M288 128h608L736 384l160 256H288v320h-96V64h96z"/>'
1694
- }, ZA = {
1694
+ }, lA = {
1695
1695
  "home-filled": XG,
1696
1696
  setting: oG,
1697
1697
  user: hG,
@@ -1731,8 +1731,8 @@ const VG = {
1731
1731
  "warning-filled": gc,
1732
1732
  filter: Cc,
1733
1733
  "info-filled": Ac,
1734
- "success-filled": dZ,
1735
- success: dZ,
1734
+ "success-filled": GZ,
1735
+ success: GZ,
1736
1736
  "arrow-right": Zc,
1737
1737
  "arrow-down": lc,
1738
1738
  "arrow-up": dc,
@@ -1759,8 +1759,8 @@ const VG = {
1759
1759
  message: nc,
1760
1760
  "set-up": Mc,
1761
1761
  "switch-button": Kc,
1762
- "copy-document": GZ,
1763
- copy: GZ,
1762
+ "copy-document": cZ,
1763
+ copy: cZ,
1764
1764
  folder: Sc,
1765
1765
  "folder-add": Dc,
1766
1766
  "folder-remove": Fc,
@@ -1811,9 +1811,9 @@ const VG = {
1811
1811
  "data-analysis": Rb,
1812
1812
  reading: Hb,
1813
1813
  flag: yb
1814
- }, YV = Object.keys(ZA).sort();
1815
- function sV(I) {
1816
- return I in ZA;
1814
+ }, sV = Object.keys(lA).sort();
1815
+ function wV(I) {
1816
+ return I in lA;
1817
1817
  }
1818
1818
  const RI = /* @__PURE__ */ j({
1819
1819
  __name: "AppIcon",
@@ -1823,7 +1823,7 @@ const RI = /* @__PURE__ */ j({
1823
1823
  color: {}
1824
1824
  },
1825
1825
  setup(I) {
1826
- const g = I, C = n(() => ZA[g.name] ?? null), Z = n(() => typeof g.size == "number" ? `${g.size}px` : g.size ?? "1em");
1826
+ const g = I, C = u(() => lA[g.name] ?? null), Z = u(() => typeof g.size == "number" ? `${g.size}px` : g.size ?? "1em");
1827
1827
  return (A, d) => C.value ? (m(), x($(NG), {
1828
1828
  key: 0,
1829
1829
  icon: C.value,
@@ -1858,7 +1858,7 @@ const RI = /* @__PURE__ */ j({
1858
1858
  const G = _("el-pagination");
1859
1859
  return C.total > 0 ? (m(), W("div", {
1860
1860
  key: 0,
1861
- class: u(l.$style.pagination),
1861
+ class: n(l.$style.pagination),
1862
1862
  "data-testid": "app-pagination"
1863
1863
  }, [
1864
1864
  II(G, {
@@ -1872,14 +1872,14 @@ const RI = /* @__PURE__ */ j({
1872
1872
  onCurrentChange: A,
1873
1873
  onSizeChange: d
1874
1874
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout", "size"])
1875
- ], 2)) : H("", !0);
1875
+ ], 2)) : R("", !0);
1876
1876
  };
1877
1877
  }
1878
1878
  }), Kb = "_pagination_d8k9z_2", Sb = {
1879
1879
  pagination: Kb
1880
1880
  }, Db = {
1881
1881
  $style: Sb
1882
- }, wV = /* @__PURE__ */ U(Mb, [["__cssModules", Db]]), Fb = /* @__PURE__ */ j({
1882
+ }, VV = /* @__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(), x(IA, {
1900
+ return (A, d) => (m(), x(gA, {
1901
1901
  "model-value": I.modelValue,
1902
1902
  title: I.title,
1903
1903
  width: I.width,
@@ -1909,26 +1909,26 @@ const RI = /* @__PURE__ */ j({
1909
1909
  }, {
1910
1910
  default: O(() => [
1911
1911
  Y("div", {
1912
- class: u(A.$style.content)
1912
+ class: n(A.$style.content)
1913
1913
  }, [
1914
1914
  I.type === "warning" ? (m(), x(RI, {
1915
1915
  key: 0,
1916
1916
  name: "warning",
1917
- class: u(A.$style.icon),
1917
+ class: n(A.$style.icon),
1918
1918
  style: { color: "var(--el-color-warning)" }
1919
1919
  }, null, 8, ["class"])) : I.type === "danger" ? (m(), x(RI, {
1920
1920
  key: 1,
1921
1921
  name: "circle-close-filled",
1922
- class: u(A.$style.icon),
1922
+ class: n(A.$style.icon),
1923
1923
  style: { color: "var(--el-color-danger)" }
1924
1924
  }, null, 8, ["class"])) : (m(), x(RI, {
1925
1925
  key: 2,
1926
1926
  name: "info-filled",
1927
- class: u(A.$style.icon),
1927
+ class: n(A.$style.icon),
1928
1928
  style: { color: "var(--el-color-primary)" }
1929
1929
  }, null, 8, ["class"])),
1930
1930
  Y("p", {
1931
- class: u(A.$style.message)
1931
+ class: n(A.$style.message)
1932
1932
  }, h(I.message), 3)
1933
1933
  ], 2)
1934
1934
  ]),
@@ -1941,7 +1941,7 @@ const RI = /* @__PURE__ */ j({
1941
1941
  message: zb
1942
1942
  }, eb = {
1943
1943
  $style: kb
1944
- }, VV = /* @__PURE__ */ U(Fb, [["__cssModules", eb]]), NV = /* @__PURE__ */ j({
1944
+ }, NV = /* @__PURE__ */ U(Fb, [["__cssModules", eb]]), XV = /* @__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(), x(IA, {
1976
+ return m(), x(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
- AI(c.$slots, "default", { form: I.formData })
1997
+ CI(c.$slots, "default", { form: I.formData })
1998
1998
  ]),
1999
1999
  _: 3
2000
2000
  }, 8, ["model", "rules", "label-width"])
@@ -2013,18 +2013,18 @@ const RI = /* @__PURE__ */ j({
2013
2013
  setup(I, { emit: g }) {
2014
2014
  const C = g;
2015
2015
  return (Z, A) => (m(), W("div", {
2016
- class: u(Z.$style.tabs)
2016
+ class: n(Z.$style.tabs)
2017
2017
  }, [
2018
2018
  (m(!0), W(Q, null, q(I.options, (d) => (m(), W("button", {
2019
2019
  key: d.value,
2020
- class: u([Z.$style.tab, { [Z.$style.tabActive]: I.modelValue === d.value }]),
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
  gI(h(d.label) + " ", 1),
2024
2024
  d.count != null ? (m(), W("span", {
2025
2025
  key: 0,
2026
- class: u(Z.$style.count)
2027
- }, h(d.count), 3)) : H("", !0)
2026
+ class: n(Z.$style.count)
2027
+ }, h(d.count), 3)) : R("", !0)
2028
2028
  ], 10, Lb))), 128))
2029
2029
  ], 2));
2030
2030
  }
@@ -2035,7 +2035,7 @@ const RI = /* @__PURE__ */ j({
2035
2035
  count: Qb
2036
2036
  }, vb = {
2037
2037
  $style: Ub
2038
- }, XV = /* @__PURE__ */ U(tb, [["__cssModules", vb]]), Ob = ["onClick"], Eb = /* @__PURE__ */ j({
2038
+ }, oV = /* @__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,19 +2053,19 @@ 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(), x(QZ, { to: "body" }, [
2056
+ return g({ show: l }), (c, G) => (m(), x(UZ, { to: "body" }, [
2057
2057
  Y("div", {
2058
- class: u(c.$style.container)
2058
+ class: n(c.$style.container)
2059
2059
  }, [
2060
2060
  II(rl, { name: "toast" }, {
2061
2061
  default: O(() => [
2062
2062
  (m(!0), W(Q, null, q(C.value, (b) => (m(), W("div", {
2063
2063
  key: b.id,
2064
- class: u([c.$style.item, c.$style[b.type], { [c.$style.removing]: b.removing }]),
2064
+ class: n([c.$style.item, c.$style[b.type], { [c.$style.removing]: b.removing }]),
2065
2065
  onClick: (i) => d(b.id)
2066
2066
  }, [
2067
2067
  Y("span", {
2068
- class: u(c.$style.icon)
2068
+ class: n(c.$style.icon)
2069
2069
  }, [
2070
2070
  b.type === "success" ? (m(), W(Q, { key: 0 }, [
2071
2071
  gI("✓")
@@ -2078,7 +2078,7 @@ const RI = /* @__PURE__ */ j({
2078
2078
  ], 64))
2079
2079
  ], 2),
2080
2080
  Y("span", {
2081
- class: u(c.$style.msg)
2081
+ class: n(c.$style.msg)
2082
2082
  }, h(b.message), 3)
2083
2083
  ], 10, Ob))), 128))
2084
2084
  ]),
@@ -2099,7 +2099,7 @@ const RI = /* @__PURE__ */ j({
2099
2099
  msg: Cm
2100
2100
  }, Zm = {
2101
2101
  $style: Am
2102
- }, oV = /* @__PURE__ */ U(Eb, [["__cssModules", Zm]]), lm = /* @__PURE__ */ j({
2102
+ }, hV = /* @__PURE__ */ U(Eb, [["__cssModules", Zm]]), lm = /* @__PURE__ */ j({
2103
2103
  __name: "EmptyState",
2104
2104
  props: {
2105
2105
  icon: {},
@@ -2115,30 +2115,30 @@ const RI = /* @__PURE__ */ j({
2115
2115
  return (Z, A) => {
2116
2116
  const d = _("el-button");
2117
2117
  return m(), W("div", {
2118
- class: u([Z.$style.empty, I.compact && Z.$style.compact])
2118
+ class: n([Z.$style.empty, I.compact && Z.$style.compact])
2119
2119
  }, [
2120
2120
  I.icon ? (m(), W("div", {
2121
2121
  key: 0,
2122
- class: u(Z.$style.icon)
2122
+ class: n(Z.$style.icon)
2123
2123
  }, [
2124
2124
  II(RI, {
2125
2125
  name: I.icon,
2126
2126
  size: I.iconSize ?? (I.compact ? 48 : 64)
2127
2127
  }, null, 8, ["name", "size"])
2128
- ], 2)) : H("", !0),
2128
+ ], 2)) : R("", !0),
2129
2129
  I.title ? (m(), W("h2", {
2130
2130
  key: 1,
2131
- class: u(Z.$style.title)
2132
- }, h(I.title), 3)) : H("", !0),
2131
+ class: n(Z.$style.title)
2132
+ }, h(I.title), 3)) : R("", !0),
2133
2133
  I.description ? (m(), W("p", {
2134
2134
  key: 2,
2135
- class: u(Z.$style.desc)
2136
- }, h(I.description), 3)) : H("", !0),
2135
+ class: n(Z.$style.desc)
2136
+ }, h(I.description), 3)) : R("", !0),
2137
2137
  Z.$slots.default || I.actionText ? (m(), W("div", {
2138
2138
  key: 3,
2139
- class: u(Z.$style.actions)
2139
+ class: n(Z.$style.actions)
2140
2140
  }, [
2141
- AI(Z.$slots, "default", {}, () => [
2141
+ CI(Z.$slots, "default", {}, () => [
2142
2142
  I.actionText ? (m(), x(d, {
2143
2143
  key: 0,
2144
2144
  type: "primary",
@@ -2148,9 +2148,9 @@ const RI = /* @__PURE__ */ j({
2148
2148
  gI(h(I.actionText), 1)
2149
2149
  ]),
2150
2150
  _: 1
2151
- })) : H("", !0)
2151
+ })) : R("", !0)
2152
2152
  ])
2153
- ], 2)) : H("", !0)
2153
+ ], 2)) : R("", !0)
2154
2154
  ], 2);
2155
2155
  };
2156
2156
  }
@@ -2163,7 +2163,7 @@ const RI = /* @__PURE__ */ j({
2163
2163
  actions: im
2164
2164
  }, Bm = {
2165
2165
  $style: Wm
2166
- }, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]), hV = j({
2166
+ }, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]), aV = 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
- }), aV = /* @__PURE__ */ j({
2201
+ }), RV = /* @__PURE__ */ j({
2202
2202
  __name: "StatusTag",
2203
2203
  props: {
2204
2204
  status: {},
@@ -2226,7 +2226,7 @@ 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 = n(() => ({ ...g, ...C.statusMap })[C.status] ?? { label: C.status, type: "info", effect: "light" });
2229
+ }, C = I, Z = u(() => ({ ...g, ...C.statusMap })[C.status] ?? { label: C.status, type: "info", effect: "light" });
2230
2230
  return (A, d) => {
2231
2231
  const l = _("el-tag");
2232
2232
  return m(), x(l, {
@@ -2254,52 +2254,52 @@ const RI = /* @__PURE__ */ j({
2254
2254
  return (g, C) => {
2255
2255
  const Z = _("el-skeleton");
2256
2256
  return m(), W("div", {
2257
- class: u([g.$style.skeleton, { [g.$style.animated]: I.animated }])
2257
+ class: n([g.$style.skeleton, { [g.$style.animated]: I.animated }])
2258
2258
  }, [
2259
2259
  I.variant === "card" ? (m(!0), W(Q, { key: 0 }, q(I.count, (A) => (m(), W("div", {
2260
2260
  key: A,
2261
- class: u(g.$style.card)
2261
+ class: n(g.$style.card)
2262
2262
  }, [
2263
2263
  Y("div", {
2264
- class: u(g.$style.cardImage)
2264
+ class: n(g.$style.cardImage)
2265
2265
  }, null, 2),
2266
2266
  Y("div", {
2267
- class: u(g.$style.cardBody)
2267
+ class: n(g.$style.cardBody)
2268
2268
  }, [
2269
2269
  Y("div", {
2270
- class: u([g.$style.line, g.$style.lineTitle])
2270
+ class: n([g.$style.line, g.$style.lineTitle])
2271
2271
  }, null, 2),
2272
2272
  Y("div", {
2273
- class: u([g.$style.line, g.$style.lineText])
2273
+ class: n([g.$style.line, g.$style.lineText])
2274
2274
  }, null, 2),
2275
2275
  Y("div", {
2276
- class: u([g.$style.line, g.$style.lineTextShort])
2276
+ class: n([g.$style.line, g.$style.lineTextShort])
2277
2277
  }, null, 2)
2278
2278
  ], 2)
2279
- ], 2))), 128)) : H("", !0),
2279
+ ], 2))), 128)) : R("", !0),
2280
2280
  I.variant === "list" ? (m(!0), W(Q, { key: 1 }, q(I.count, (A) => (m(), W("div", {
2281
2281
  key: A,
2282
- class: u(g.$style.listItem)
2282
+ class: n(g.$style.listItem)
2283
2283
  }, [
2284
2284
  Y("div", {
2285
- class: u(g.$style.avatar)
2285
+ class: n(g.$style.avatar)
2286
2286
  }, null, 2),
2287
2287
  Y("div", {
2288
- class: u(g.$style.listContent)
2288
+ class: n(g.$style.listContent)
2289
2289
  }, [
2290
2290
  Y("div", {
2291
- class: u([g.$style.line, g.$style.lineTitle])
2291
+ class: n([g.$style.line, g.$style.lineTitle])
2292
2292
  }, null, 2),
2293
2293
  Y("div", {
2294
- class: u([g.$style.line, g.$style.lineText])
2294
+ class: n([g.$style.line, g.$style.lineText])
2295
2295
  }, null, 2)
2296
2296
  ], 2)
2297
- ], 2))), 128)) : H("", !0),
2297
+ ], 2))), 128)) : R("", !0),
2298
2298
  I.variant === "table" ? (m(), x(Z, {
2299
2299
  key: 2,
2300
2300
  rows: I.rows,
2301
2301
  animated: ""
2302
- }, null, 8, ["rows"])) : H("", !0)
2302
+ }, null, 8, ["rows"])) : R("", !0)
2303
2303
  ], 2);
2304
2304
  };
2305
2305
  }
@@ -2319,7 +2319,7 @@ const RI = /* @__PURE__ */ j({
2319
2319
  lineTextShort: um
2320
2320
  }, Mm = {
2321
2321
  $style: nm
2322
- }, RV = /* @__PURE__ */ U(Ym, [["__cssModules", Mm]]), Km = /* @__PURE__ */ j({
2322
+ }, HV = /* @__PURE__ */ U(Ym, [["__cssModules", Mm]]), Km = /* @__PURE__ */ j({
2323
2323
  __name: "CardGridSkeleton",
2324
2324
  props: {
2325
2325
  count: { default: 6 },
@@ -2328,27 +2328,27 @@ const RI = /* @__PURE__ */ j({
2328
2328
  },
2329
2329
  setup(I) {
2330
2330
  return (g, C) => (m(), W("div", {
2331
- class: u([g.$style.grid, { [g.$style.animated]: I.animated }])
2331
+ class: n([g.$style.grid, { [g.$style.animated]: I.animated }])
2332
2332
  }, [
2333
2333
  (m(!0), W(Q, null, q(I.count, (Z) => (m(), W("div", {
2334
2334
  key: Z,
2335
- class: u(g.$style.card)
2335
+ class: n(g.$style.card)
2336
2336
  }, [
2337
2337
  I.showThumb ? (m(), W("div", {
2338
2338
  key: 0,
2339
- class: u(g.$style.thumb)
2340
- }, null, 2)) : H("", !0),
2339
+ class: n(g.$style.thumb)
2340
+ }, null, 2)) : R("", !0),
2341
2341
  Y("div", {
2342
- class: u(g.$style.body)
2342
+ class: n(g.$style.body)
2343
2343
  }, [
2344
2344
  Y("div", {
2345
- class: u([g.$style.line, g.$style.title])
2345
+ class: n([g.$style.line, g.$style.title])
2346
2346
  }, null, 2),
2347
2347
  Y("div", {
2348
- class: u([g.$style.line, g.$style.text])
2348
+ class: n([g.$style.line, g.$style.text])
2349
2349
  }, null, 2),
2350
2350
  Y("div", {
2351
- class: u([g.$style.line, g.$style.textShort])
2351
+ class: n([g.$style.line, g.$style.textShort])
2352
2352
  }, null, 2)
2353
2353
  ], 2)
2354
2354
  ], 2))), 128))
@@ -2367,7 +2367,7 @@ const RI = /* @__PURE__ */ j({
2367
2367
  textShort: Lm
2368
2368
  }, Tm = {
2369
2369
  $style: tm
2370
- }, HV = /* @__PURE__ */ U(Km, [["__cssModules", Tm]]), xm = ["src", "alt"], jm = { name: "UserAvatar" }, Qm = /* @__PURE__ */ j({
2370
+ }, yV = /* @__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 = n(() => g.name ? g.name.charAt(0).toUpperCase() : "?"), Z = n(() => !!g.src), A = n(() => {
2379
+ const g = I, C = u(() => g.name ? g.name.charAt(0).toUpperCase() : "?"), Z = u(() => !!g.src), A = u(() => {
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,
@@ -2385,18 +2385,18 @@ const RI = /* @__PURE__ */ j({
2385
2385
  };
2386
2386
  });
2387
2387
  return (d, l) => (m(), W("div", {
2388
- class: u([d.$style.avatar, I.shape === "square" ? d.$style.square : d.$style.circle]),
2388
+ class: n([d.$style.avatar, I.shape === "square" ? d.$style.square : d.$style.circle]),
2389
2389
  style: dI(A.value)
2390
2390
  }, [
2391
2391
  Z.value ? (m(), W("img", {
2392
2392
  key: 0,
2393
2393
  src: I.src,
2394
2394
  alt: I.name,
2395
- class: u(d.$style.img),
2395
+ class: n(d.$style.img),
2396
2396
  onError: l[0] || (l[0] = (c) => d.$emit("error", c))
2397
2397
  }, null, 42, xm)) : (m(), W("span", {
2398
2398
  key: 1,
2399
- class: u(d.$style.initial)
2399
+ class: n(d.$style.initial)
2400
2400
  }, h(C.value), 3))
2401
2401
  ], 6));
2402
2402
  }
@@ -2408,7 +2408,7 @@ const RI = /* @__PURE__ */ j({
2408
2408
  initial: Pm
2409
2409
  }, fm = {
2410
2410
  $style: rm
2411
- }, yV = /* @__PURE__ */ U(Qm, [["__cssModules", fm]]), qm = ["aria-label"], _m = {
2411
+ }, uV = /* @__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 = n(
2433
+ const C = I, Z = g, A = u(
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 = n(() => {
2438
+ ), d = u(() => {
2439
2439
  const c = A.value.trim();
2440
2440
  return c ? c.charAt(0).toUpperCase() : "?";
2441
- }), l = n(() => {
2441
+ }), l = u(() => {
2442
2442
  const c = C.user;
2443
2443
  if (!c) return [];
2444
2444
  const G = [
@@ -2449,7 +2449,7 @@ const RI = /* @__PURE__ */ j({
2449
2449
  return (c, G) => {
2450
2450
  const b = _("el-popover");
2451
2451
  return m(), W("div", {
2452
- class: u(["apf-user-panel", { "apf-user-panel--block": I.block }])
2452
+ class: n(["apf-user-panel", { "apf-user-panel--block": I.block }])
2453
2453
  }, [
2454
2454
  II(b, {
2455
2455
  placement: I.placement,
@@ -2464,7 +2464,7 @@ const RI = /* @__PURE__ */ j({
2464
2464
  reference: O(() => [
2465
2465
  Y("button", {
2466
2466
  type: "button",
2467
- class: u(["apf-user-panel__trigger", { "apf-user-panel__trigger--block": I.block }]),
2467
+ class: n(["apf-user-panel__trigger", { "apf-user-panel__trigger--block": I.block }]),
2468
2468
  "aria-label": A.value
2469
2469
  }, [
2470
2470
  Y("span", _m, h(d.value), 1),
@@ -2479,7 +2479,7 @@ const RI = /* @__PURE__ */ j({
2479
2479
  Y("span", C0, h(d.value), 1),
2480
2480
  Y("div", A0, [
2481
2481
  Y("div", Z0, h(A.value), 1),
2482
- (i = I.user) != null && i.username ? (m(), W("div", l0, "@" + h(I.user.username), 1)) : H("", !0)
2482
+ (i = I.user) != null && i.username ? (m(), W("div", l0, "@" + h(I.user.username), 1)) : R("", !0)
2483
2483
  ])
2484
2484
  ]),
2485
2485
  l.value.length > 0 ? (m(), W("dl", d0, [
@@ -2490,7 +2490,7 @@ const RI = /* @__PURE__ */ j({
2490
2490
  Y("dt", null, h(w.label), 1),
2491
2491
  Y("dd", null, h(w.value), 1)
2492
2492
  ]))), 128))
2493
- ])) : H("", !0),
2493
+ ])) : R("", !0),
2494
2494
  G[1] || (G[1] = Y("div", { class: "apf-user-panel__divider" }, null, -1)),
2495
2495
  Y("button", {
2496
2496
  type: "button",
@@ -2511,7 +2511,7 @@ const RI = /* @__PURE__ */ j({
2511
2511
  ], 2);
2512
2512
  };
2513
2513
  }
2514
- }), uV = /* @__PURE__ */ U(G0, [["__scopeId", "data-v-1bb71f74"]]), c0 = { class: "apf-slider-captcha__panel" }, b0 = {
2514
+ }), nV = /* @__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 = {
@@ -2523,7 +2523,7 @@ const RI = /* @__PURE__ */ j({
2523
2523
  }, Y0 = {
2524
2524
  key: 1,
2525
2525
  class: "apf-slider-captcha__ok"
2526
- }, cZ = 320, bZ = 48, s0 = /* @__PURE__ */ j({
2526
+ }, bZ = 320, mZ = 48, s0 = /* @__PURE__ */ j({
2527
2527
  __name: "SliderCaptcha",
2528
2528
  props: {
2529
2529
  modelValue: { default: () => ({ captchaId: "", captchaX: 0, verified: !1 }) },
@@ -2531,7 +2531,7 @@ 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 = n(() => cZ - bZ);
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 = u(() => bZ - mZ);
2535
2535
  function X(y) {
2536
2536
  var p;
2537
2537
  A("update:modelValue", {
@@ -2590,7 +2590,7 @@ const RI = /* @__PURE__ */ j({
2590
2590
  };
2591
2591
  }
2592
2592
  }), (y, p) => (m(), W("div", {
2593
- class: u(["apf-slider-captcha", { "apf-slider-captcha--shake": w.value }])
2593
+ class: n(["apf-slider-captcha", { "apf-slider-captcha--shake": w.value }])
2594
2594
  }, [
2595
2595
  Y("div", c0, [
2596
2596
  d.value ? (m(), W("div", b0, "加载验证码…")) : l.value ? (m(), W("div", m0, [
@@ -2603,7 +2603,7 @@ const RI = /* @__PURE__ */ j({
2603
2603
  ])) : c.value ? (m(), W("div", {
2604
2604
  key: 2,
2605
2605
  class: "apf-slider-captcha__stage",
2606
- style: dI({ width: `${cZ}px` })
2606
+ style: dI({ width: `${bZ}px` })
2607
2607
  }, [
2608
2608
  Y("img", {
2609
2609
  src: c.value.backgroundImage,
@@ -2630,21 +2630,21 @@ const RI = /* @__PURE__ */ j({
2630
2630
  size: 14
2631
2631
  })
2632
2632
  ])
2633
- ], 4)) : H("", !0)
2633
+ ], 4)) : R("", !0)
2634
2634
  ]),
2635
2635
  Y("div", {
2636
- class: u(["apf-slider-captcha__track", {
2636
+ class: n(["apf-slider-captcha__track", {
2637
2637
  "apf-slider-captcha__track--ok": i.value,
2638
2638
  "apf-slider-captcha__track--active": b.value
2639
2639
  }])
2640
2640
  }, [
2641
2641
  Y("div", {
2642
2642
  class: "apf-slider-captcha__fill",
2643
- style: dI({ width: `${G.value + bZ / 2}px` })
2643
+ style: dI({ width: `${G.value + mZ / 2}px` })
2644
2644
  }, null, 4),
2645
- !i.value && G.value < 8 ? (m(), W("span", B0, "向右拖动滑块完成验证")) : i.value ? (m(), W("span", Y0, "已完成,提交时校验")) : H("", !0),
2645
+ !i.value && G.value < 8 ? (m(), W("span", B0, "向右拖动滑块完成验证")) : i.value ? (m(), W("span", Y0, "已完成,提交时校验")) : R("", !0),
2646
2646
  Y("div", {
2647
- class: u(["apf-slider-captcha__knob", { "apf-slider-captcha__knob--ok": i.value }]),
2647
+ class: n(["apf-slider-captcha__knob", { "apf-slider-captcha__knob--ok": i.value }]),
2648
2648
  style: dI({ left: `${G.value}px` }),
2649
2649
  onPointerdown: k,
2650
2650
  onPointermove: L,
@@ -2659,7 +2659,7 @@ const RI = /* @__PURE__ */ j({
2659
2659
  ], 2)
2660
2660
  ], 2));
2661
2661
  }
2662
- }), nV = /* @__PURE__ */ U(s0, [["__scopeId", "data-v-c7d9d170"]]), w0 = { class: "apf-time-range-picker__panel" }, V0 = { class: "apf-time-range-picker__actions" }, N0 = /* @__PURE__ */ j({
2662
+ }), MV = /* @__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 = n(
2696
+ const G = u(
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 = n(
2707
+ const i = u(
2708
2708
  () => A.modelValue.preset === "custom" ? b(A.modelValue) : "自定义"
2709
2709
  );
2710
2710
  function w(a) {
@@ -2727,7 +2727,7 @@ const RI = /* @__PURE__ */ j({
2727
2727
  return (a, V) => {
2728
2728
  const X = _("el-button"), o = _("el-button-group"), S = _("el-date-picker"), k = _("el-popover");
2729
2729
  return m(), W("div", {
2730
- class: u(["apf-time-range-picker", [`apf-time-range-picker--${I.size}`]])
2730
+ class: n(["apf-time-range-picker", [`apf-time-range-picker--${I.size}`]])
2731
2731
  }, [
2732
2732
  I.showPresets ? (m(), x(o, { key: 0 }, {
2733
2733
  default: O(() => [
@@ -2745,7 +2745,7 @@ const RI = /* @__PURE__ */ j({
2745
2745
  }, 1032, ["size", "disabled", "type", "onClick"]))), 128))
2746
2746
  ]),
2747
2747
  _: 1
2748
- })) : H("", !0),
2748
+ })) : R("", !0),
2749
2749
  I.allowCustom ? (m(), x(k, {
2750
2750
  key: 1,
2751
2751
  visible: l.value,
@@ -2805,11 +2805,11 @@ const RI = /* @__PURE__ */ j({
2805
2805
  ])
2806
2806
  ]),
2807
2807
  _: 1
2808
- }, 8, ["visible", "disabled"])) : H("", !0)
2808
+ }, 8, ["visible", "disabled"])) : R("", !0)
2809
2809
  ], 2);
2810
2810
  };
2811
2811
  }
2812
- }), MV = /* @__PURE__ */ U(N0, [["__scopeId", "data-v-cb3adbf3"]]), X0 = {
2812
+ }), KV = /* @__PURE__ */ U(N0, [["__scopeId", "data-v-cb3adbf3"]]), X0 = {
2813
2813
  key: 0,
2814
2814
  class: "apf-content-panel__head"
2815
2815
  }, o0 = {
@@ -2827,19 +2827,19 @@ const RI = /* @__PURE__ */ j({
2827
2827
  },
2828
2828
  setup(I) {
2829
2829
  return (g, C) => (m(), W("section", {
2830
- class: u(["apf-content-panel", {
2830
+ class: n(["apf-content-panel", {
2831
2831
  "apf-content-panel--flush": I.flush,
2832
2832
  "apf-content-panel--fill": I.fill
2833
2833
  }])
2834
2834
  }, [
2835
2835
  I.title || g.$slots.extra ? (m(), W("header", X0, [
2836
- I.title ? (m(), W("span", o0, h(I.title), 1)) : H("", !0),
2836
+ I.title ? (m(), W("span", o0, h(I.title), 1)) : R("", !0),
2837
2837
  g.$slots.extra ? (m(), W("div", h0, [
2838
- AI(g.$slots, "extra", {}, void 0, !0)
2839
- ])) : H("", !0)
2840
- ])) : H("", !0),
2838
+ CI(g.$slots, "extra", {}, void 0, !0)
2839
+ ])) : R("", !0)
2840
+ ])) : R("", !0),
2841
2841
  Y("div", a0, [
2842
- AI(g.$slots, "default", {}, void 0, !0)
2842
+ CI(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
- }, KV = {
2876
+ }, SV = {
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
- }, SV = {
2885
+ }, DV = {
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
- }, DV = {
2898
+ }, FV = {
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
- }, FV = {
2909
+ }, pV = {
2910
2910
  xs: "24px",
2911
2911
  sm: "28px",
2912
2912
  md: "32px",
2913
2913
  lg: "40px",
2914
2914
  xl: "44px"
2915
- }, pV = {
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
- }, JV = {
2922
+ }, zV = {
2923
2923
  xs: "12px",
2924
2924
  sm: "14px",
2925
2925
  md: "16px",
2926
2926
  lg: "20px",
2927
2927
  xl: "24px"
2928
- }, zV = {
2928
+ }, kV = {
2929
2929
  paddingX: "24px",
2930
2930
  paddingY: "24px",
2931
2931
  headerPaddingTop: "28px",
2932
2932
  sidebarWidth: "240px",
2933
2933
  sidebarWidthCollapsed: "64px"
2934
- }, kV = {
2934
+ }, eV = {
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
- }, eV = {
2942
+ }, LV = {
2943
2943
  fieldWidth: "220px",
2944
2944
  labelWidth: "96px",
2945
2945
  fieldGap: "6px"
2946
- }, LV = {
2946
+ }, tV = {
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
- }, tV = {
2955
+ }, TV = {
2956
2956
  fast: "0.15s",
2957
2957
  normal: "0.25s",
2958
2958
  slow: "0.35s"
2959
- }, TV = {
2959
+ }, xV = {
2960
2960
  dropdown: 1e3,
2961
2961
  sticky: 1020,
2962
2962
  fixed: 1030,
@@ -2966,7 +2966,7 @@ const RI = /* @__PURE__ */ j({
2966
2966
  tooltip: 1070,
2967
2967
  toast: 1080
2968
2968
  };
2969
- function mZ(I, g) {
2969
+ function iZ(I, g) {
2970
2970
  if (!Number.isFinite(I)) return "—";
2971
2971
  switch (g) {
2972
2972
  case "count":
@@ -3063,14 +3063,14 @@ 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 = n(
3066
+ const i = u(
3067
3067
  () => C.height ?? (C.variant === "spark" ? 32 : 280)
3068
- ), w = n(() => C.series.some((k) => k.data.length > 0)), s = n(
3068
+ ), w = u(() => C.series.some((k) => k.data.length > 0)), s = u(
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((R) => R[0])), e = K.length ? Math.max(...K) - Math.min(...K) : 0, y = C.series.map((J, R) => {
3073
- const z = J.color ?? JI.series[R % JI.series.length], D = C.type === "area" || J.area;
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, y = C.series.map((J, H) => {
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,
3076
3076
  type: L,
@@ -3110,7 +3110,7 @@ const D0 = {
3110
3110
  fontFamily: "Consolas, Monaco, monospace"
3111
3111
  },
3112
3112
  extraCssText: `box-shadow: ${y0.md};`,
3113
- valueFormatter: (J) => mZ(Number(J), C.unit)
3113
+ valueFormatter: (J) => iZ(Number(J), C.unit)
3114
3114
  },
3115
3115
  legend: k || C.series.length < 2 ? { show: !1 } : { top: 0, right: 0, textStyle: { fontSize: 12 } },
3116
3116
  xAxis: k ? { type: "time", show: !1 } : {
@@ -3120,8 +3120,8 @@ const D0 = {
3120
3120
  color: JI.tooltipText,
3121
3121
  fontSize: 11,
3122
3122
  formatter: (J) => {
3123
- const R = new Date(J), z = (D) => String(D).padStart(2, "0");
3124
- return e > 1440 * 60 * 1e3 ? `${z(R.getMonth() + 1)}-${z(R.getDate())} ${z(R.getHours())}:${z(R.getMinutes())}` : `${z(R.getHours())}:${z(R.getMinutes())}`;
3123
+ const H = new Date(J), z = (D) => String(D).padStart(2, "0");
3124
+ return e > 1440 * 60 * 1e3 ? `${z(H.getMonth() + 1)}-${z(H.getDate())} ${z(H.getHours())}:${z(H.getMinutes())}` : `${z(H.getHours())}:${z(H.getMinutes())}`;
3125
3125
  }
3126
3126
  },
3127
3127
  splitLine: { show: !1 }
@@ -3134,7 +3134,7 @@ const D0 = {
3134
3134
  axisLabel: {
3135
3135
  color: JI.tooltipText,
3136
3136
  fontSize: 11,
3137
- formatter: (J) => mZ(J, C.unit)
3137
+ formatter: (J) => iZ(J, C.unit)
3138
3138
  },
3139
3139
  splitLine: {
3140
3140
  lineStyle: { color: JI.splitLine, type: "dashed" }
@@ -3198,7 +3198,7 @@ const D0 = {
3198
3198
  key: 0,
3199
3199
  title: I.title,
3200
3200
  class: "apf-metric-chart"
3201
- }, UZ({
3201
+ }, vZ({
3202
3202
  default: O(() => [
3203
3203
  I.loading ? (m(), W("div", {
3204
3204
  key: 0,
@@ -3218,7 +3218,7 @@ const D0 = {
3218
3218
  key: 2,
3219
3219
  style: dI({ height: `${i.value}px` })
3220
3220
  }, [
3221
- AI(k.$slots, "empty", {}, () => [
3221
+ CI(k.$slots, "empty", {}, () => [
3222
3222
  II($(cg), { title: "暂无数据" })
3223
3223
  ], !0)
3224
3224
  ], 4))
@@ -3228,7 +3228,7 @@ const D0 = {
3228
3228
  k.$slots["header-actions"] ? {
3229
3229
  name: "extra",
3230
3230
  fn: O(() => [
3231
- AI(k.$slots, "header-actions", {}, void 0, !0)
3231
+ CI(k.$slots, "header-actions", {}, void 0, !0)
3232
3232
  ]),
3233
3233
  key: "0"
3234
3234
  } : void 0
@@ -3254,7 +3254,7 @@ const D0 = {
3254
3254
  }, null, 4))
3255
3255
  ]));
3256
3256
  }
3257
- }), xV = /* @__PURE__ */ U(F0, [["__scopeId", "data-v-a72b4e2b"]]), p0 = {
3257
+ }), jV = /* @__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 = n(() => {
3289
+ const C = I, Z = g, A = u(() => {
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 = n(() => {
3294
+ }), d = u(() => {
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 = n(() => {
3298
+ }), l = u(() => {
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,12 +3303,12 @@ 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 = n(() => C.status === "healthy" ? "var(--color-success)" : C.status === "warning" ? "var(--color-warning)" : C.status === "error" ? "var(--color-danger)" : "var(--color-primary)");
3306
+ }), c = u(() => 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(), x(vZ(I.to ? "a" : "div"), {
3311
- class: u(["apf-stat-card", [
3310
+ return (b, i) => (m(), x(OZ(I.to ? "a" : "div"), {
3311
+ class: n(["apf-stat-card", [
3312
3312
  I.status ? `apf-stat-card--${I.status}` : "",
3313
3313
  { "apf-stat-card--clickable": !!I.to }
3314
3314
  ]]),
@@ -3321,7 +3321,7 @@ const D0 = {
3321
3321
  default: O(() => {
3322
3322
  var w;
3323
3323
  return [
3324
- I.status ? (m(), W("div", p0)) : H("", !0),
3324
+ I.status ? (m(), W("div", p0)) : R("", !0),
3325
3325
  I.loading ? (m(), W("div", J0, [...i[1] || (i[1] = [
3326
3326
  Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--label" }, null, -1),
3327
3327
  Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--value" }, null, -1),
@@ -3330,7 +3330,7 @@ const D0 = {
3330
3330
  Y("div", k0, h(I.label), 1),
3331
3331
  Y("div", e0, [
3332
3332
  Y("span", L0, h(I.value), 1),
3333
- I.unit ? (m(), W("span", t0, h(I.unit), 1)) : H("", !0),
3333
+ I.unit ? (m(), W("span", t0, h(I.unit), 1)) : R("", !0),
3334
3334
  I.trend ? (m(), W("span", {
3335
3335
  key: 1,
3336
3336
  class: "apf-stat-card__trend",
@@ -3339,8 +3339,8 @@ const D0 = {
3339
3339
  gI(h(d.value) + " ", 1),
3340
3340
  I.trend.percent != null ? (m(), W(Q, { key: 0 }, [
3341
3341
  gI(h(I.trend.percent) + "%", 1)
3342
- ], 64)) : H("", !0)
3343
- ], 4)) : H("", !0)
3342
+ ], 64)) : R("", !0)
3343
+ ], 4)) : R("", !0)
3344
3344
  ]),
3345
3345
  (w = I.sparkline) != null && w.length ? (m(), W("svg", T0, [
3346
3346
  Y("path", {
@@ -3351,14 +3351,14 @@ const D0 = {
3351
3351
  "stroke-linecap": "round",
3352
3352
  "stroke-linejoin": "round"
3353
3353
  }, null, 8, x0)
3354
- ])) : H("", !0)
3354
+ ])) : R("", !0)
3355
3355
  ]))
3356
3356
  ];
3357
3357
  }),
3358
3358
  _: 1
3359
3359
  }, 40, ["class", "href", "role", "tabindex"]));
3360
3360
  }
3361
- }), jV = /* @__PURE__ */ U(j0, [["__scopeId", "data-v-3e48d232"]]), Q0 = /* @__PURE__ */ j({
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 = n(
3369
+ const g = I, C = u(
3370
3370
  () => g.pulse ?? g.severity === "critical"
3371
3371
  ), Z = {
3372
3372
  critical: "严重",
@@ -3374,7 +3374,7 @@ const D0 = {
3374
3374
  info: "信息"
3375
3375
  };
3376
3376
  return (A, d) => (m(), W("span", {
3377
- class: u(["apf-severity-badge", [
3377
+ class: n(["apf-severity-badge", [
3378
3378
  `apf-severity-badge--${I.severity}`,
3379
3379
  `apf-severity-badge--${I.size}`,
3380
3380
  { "apf-severity-badge--pulse": C.value }
@@ -3387,7 +3387,7 @@ const D0 = {
3387
3387
  Y("span", null, h(Z[I.severity]), 1)
3388
3388
  ], 2));
3389
3389
  }
3390
- }), QV = /* @__PURE__ */ U(Q0, [["__scopeId", "data-v-e6c92ddb"]]), U0 = ["onClick"], v0 = { class: "apf-service-grid__body" }, O0 = { class: "apf-service-grid__name" }, E0 = {
3390
+ }), UV = /* @__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 = n(() => Z.columns && Z.columns > 0 ? {
3407
+ }, Z = I, A = g, d = u(() => 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))"
@@ -3431,24 +3431,24 @@ const D0 = {
3431
3431
  (m(!0), W(Q, null, q(I.services, (b) => (m(), W("button", {
3432
3432
  key: b.id,
3433
3433
  type: "button",
3434
- class: u(["apf-service-grid__item", `apf-service-grid__item--${b.status}`]),
3434
+ class: n(["apf-service-grid__item", `apf-service-grid__item--${b.status}`]),
3435
3435
  onClick: (i) => A("service-click", b)
3436
3436
  }, [
3437
3437
  G[0] || (G[0] = Y("div", { class: "apf-service-grid__bar" }, null, -1)),
3438
3438
  Y("div", v0, [
3439
3439
  Y("div", O0, h(b.name), 1),
3440
3440
  Y("div", {
3441
- class: u(["apf-service-grid__status", `apf-service-grid__status--${b.status}`])
3441
+ class: n(["apf-service-grid__status", `apf-service-grid__status--${b.status}`])
3442
3442
  }, h(C[b.status]), 3),
3443
3443
  b.metrics ? (m(), W("div", E0, [
3444
- b.metrics.errorRate != null ? (m(), W("span", P0, " err " + h(b.metrics.errorRate.toFixed(1)) + "% ", 1)) : H("", !0),
3445
- b.metrics.latencyP95 != null ? (m(), W("span", r0, " p95 " + h(Math.round(b.metrics.latencyP95)) + "ms ", 1)) : H("", !0),
3446
- b.metrics.eventCount != null ? (m(), W("span", f0, " n " + h(b.metrics.eventCount.toLocaleString()), 1)) : H("", !0),
3444
+ b.metrics.errorRate != null ? (m(), W("span", P0, " err " + h(b.metrics.errorRate.toFixed(1)) + "% ", 1)) : R("", !0),
3445
+ b.metrics.latencyP95 != null ? (m(), W("span", r0, " p95 " + h(Math.round(b.metrics.latencyP95)) + "ms ", 1)) : R("", !0),
3446
+ b.metrics.eventCount != null ? (m(), W("span", f0, " n " + h(b.metrics.eventCount.toLocaleString()), 1)) : R("", !0),
3447
3447
  b.metrics.lastSeen ? (m(), W("span", {
3448
3448
  key: 3,
3449
- class: u({ "is-stale": l(b.metrics.lastSeen) })
3450
- }, h($(u0)(b.metrics.lastSeen)), 3)) : H("", !0)
3451
- ])) : H("", !0)
3449
+ class: n({ "is-stale": l(b.metrics.lastSeen) })
3450
+ }, h($(u0)(b.metrics.lastSeen)), 3)) : R("", !0)
3451
+ ])) : R("", !0)
3452
3452
  ])
3453
3453
  ], 10, U0))), 128))
3454
3454
  ], 4)) : (m(), x($(cg), {
@@ -3457,7 +3457,7 @@ const D0 = {
3457
3457
  description: "等待上报或检查筛选条件"
3458
3458
  }));
3459
3459
  }
3460
- }), UV = /* @__PURE__ */ U(q0, [["__scopeId", "data-v-7e1890bc"]]), _0 = { class: "apf-status-timeline" }, $0 = { class: "apf-status-timeline__ticks" }, Ii = /* @__PURE__ */ j({
3460
+ }), vV = /* @__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 = n(() => {
3474
+ }, C = I, Z = u(() => {
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 = n(() => {
3484
+ }), A = u(() => {
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 = n(() => {
3487
+ }), d = u(() => {
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;
@@ -3518,7 +3518,7 @@ const D0 = {
3518
3518
  }, {
3519
3519
  default: O(() => [
3520
3520
  Y("div", {
3521
- class: u(["apf-status-timeline__seg", `apf-status-timeline__seg--${w.status}`]),
3521
+ class: n(["apf-status-timeline__seg", `apf-status-timeline__seg--${w.status}`]),
3522
3522
  style: dI({ left: `${w.left}%`, width: `${w.width}%` })
3523
3523
  }, null, 6)
3524
3524
  ]),
@@ -3532,7 +3532,7 @@ const D0 = {
3532
3532
  ]);
3533
3533
  };
3534
3534
  }
3535
- }), vV = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-97b528a0"]]), gi = {
3535
+ }), OV = /* @__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 = {
@@ -3544,7 +3544,7 @@ const D0 = {
3544
3544
  }, bi = {
3545
3545
  key: 1,
3546
3546
  class: "apf-log-stream__panel-empty"
3547
- }, iZ = 5, mi = /* @__PURE__ */ j({
3547
+ }, WZ = 5, mi = /* @__PURE__ */ j({
3548
3548
  __name: "LogStream",
3549
3549
  props: {
3550
3550
  logs: {},
@@ -3558,45 +3558,45 @@ 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 = n(
3562
- () => Math.ceil(C.height / C.rowHeight) + iZ * 2
3563
- ), i = n(
3564
- () => Math.max(0, Math.floor(d.value / C.rowHeight) - iZ)
3565
- ), w = n(
3561
+ const b = u(
3562
+ () => Math.ceil(C.height / C.rowHeight) + WZ * 2
3563
+ ), i = u(
3564
+ () => Math.max(0, Math.floor(d.value / C.rowHeight) - WZ)
3565
+ ), w = u(
3566
3566
  () => Math.min(C.logs.length, i.value + b.value)
3567
- ), s = n(
3567
+ ), s = u(
3568
3568
  () => C.logs.slice(i.value, w.value)
3569
- ), a = n(() => C.logs.length * C.rowHeight), V = n(() => i.value * C.rowHeight), X = n(
3570
- () => C.logs.find((R) => R.id === l.value) ?? null
3571
- ), o = n(() => {
3572
- var R;
3573
- if (!((R = X.value) != null && R.payload)) return "";
3569
+ ), a = u(() => C.logs.length * C.rowHeight), V = u(() => i.value * C.rowHeight), X = u(
3570
+ () => C.logs.find((H) => H.id === l.value) ?? null
3571
+ ), o = u(() => {
3572
+ var H;
3573
+ if (!((H = X.value) != null && H.payload)) return "";
3574
3574
  try {
3575
3575
  return JSON.stringify(X.value.payload, null, 2);
3576
3576
  } catch {
3577
3577
  return String(X.value.payload);
3578
3578
  }
3579
3579
  });
3580
- function S(R) {
3581
- const z = new Date(R);
3582
- if (Number.isNaN(z.getTime())) return R;
3580
+ function S(H) {
3581
+ const z = new Date(H);
3582
+ if (Number.isNaN(z.getTime())) return H;
3583
3583
  const D = (f) => String(f).padStart(2, "0");
3584
3584
  return `${D(z.getMonth() + 1)}-${D(z.getDate())} ${D(z.getHours())}:${D(z.getMinutes())}:${D(z.getSeconds())}`;
3585
3585
  }
3586
- function k(R) {
3586
+ function k(H) {
3587
3587
  var ZI;
3588
- if (!((ZI = C.highlight) != null && ZI.trim())) return L(R);
3589
- const z = C.highlight.trim(), D = L(R), f = new RegExp(`(${K(z)})`, "gi");
3588
+ if (!((ZI = C.highlight) != null && ZI.trim())) return L(H);
3589
+ const z = C.highlight.trim(), D = L(H), f = new RegExp(`(${K(z)})`, "gi");
3590
3590
  return D.replace(f, '<mark class="apf-log-stream__mark">$1</mark>');
3591
3591
  }
3592
- function L(R) {
3593
- return R.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
3592
+ function L(H) {
3593
+ return H.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
3594
3594
  }
3595
- function K(R) {
3596
- return R.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3595
+ function K(H) {
3596
+ return H.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3597
3597
  }
3598
- function e(R) {
3599
- if (R.scrollHeight - R.scrollTop - R.clientHeight > 24) {
3598
+ function e(H) {
3599
+ if (H.scrollHeight - H.scrollTop - H.clientHeight > 24) {
3600
3600
  c = !0;
3601
3601
  return;
3602
3602
  }
@@ -3605,19 +3605,19 @@ const D0 = {
3605
3605
  }, 120));
3606
3606
  }
3607
3607
  function y() {
3608
- const R = A.value;
3609
- R && (d.value = R.scrollTop, R.scrollTop <= 4 && Z("reach-top"), e(R));
3608
+ const H = A.value;
3609
+ H && (d.value = H.scrollTop, H.scrollTop <= 4 && Z("reach-top"), e(H));
3610
3610
  }
3611
- function p(R) {
3612
- l.value = l.value === R.id ? null : R.id, Z("log-click", R);
3611
+ function p(H) {
3612
+ l.value = l.value === H.id ? null : H.id, Z("log-click", H);
3613
3613
  }
3614
3614
  function J() {
3615
3615
  l.value = null;
3616
3616
  }
3617
3617
  return NI(
3618
3618
  () => C.logs.length,
3619
- async (R, z) => {
3620
- const f = R - (z ?? 0), ZI = A.value;
3619
+ async (H, z) => {
3620
+ const f = H - (z ?? 0), ZI = A.value;
3621
3621
  if (!(!ZI || f === 0)) {
3622
3622
  if (f > 0) {
3623
3623
  if (C.autoScroll)
@@ -3631,22 +3631,22 @@ const D0 = {
3631
3631
  await $I(), d.value = ZI.scrollTop;
3632
3632
  }
3633
3633
  }
3634
- ), NI(l, (R) => {
3635
- R != null;
3634
+ ), NI(l, (H) => {
3635
+ H != null;
3636
3636
  }), tg(() => {
3637
- var R;
3638
- (R = A.value) == null || R.addEventListener("scroll", y, { passive: !0 });
3637
+ var H;
3638
+ (H = A.value) == null || H.addEventListener("scroll", y, { passive: !0 });
3639
3639
  }), mg(() => {
3640
- var R;
3641
- (R = A.value) == null || R.removeEventListener("scroll", y), G && clearTimeout(G);
3642
- }), (R, z) => (m(), W("div", {
3640
+ var H;
3641
+ (H = A.value) == null || H.removeEventListener("scroll", y), G && clearTimeout(G);
3642
+ }), (H, z) => (m(), W("div", {
3643
3643
  class: "apf-log-stream-wrap",
3644
3644
  style: dI({ height: `${I.height}px` })
3645
3645
  }, [
3646
3646
  Y("div", {
3647
3647
  ref_key: "scrollerRef",
3648
3648
  ref: A,
3649
- class: u(["apf-log-stream", { "apf-log-stream--with-panel": !!X.value }])
3649
+ class: n(["apf-log-stream", { "apf-log-stream--with-panel": !!X.value }])
3650
3650
  }, [
3651
3651
  I.loading ? (m(), W("div", gi, "加载中…")) : I.logs.length ? (m(), W("div", {
3652
3652
  key: 2,
@@ -3659,17 +3659,17 @@ const D0 = {
3659
3659
  }, [
3660
3660
  (m(!0), W(Q, null, q(s.value, (D) => (m(), W("div", {
3661
3661
  key: D.id,
3662
- class: u(["apf-log-stream__row", { "is-active": l.value === D.id }]),
3662
+ class: n(["apf-log-stream__row", { "is-active": l.value === D.id }]),
3663
3663
  style: dI({ height: `${I.rowHeight}px` }),
3664
3664
  onClick: (f) => p(D)
3665
3665
  }, [
3666
3666
  Y("i", {
3667
- class: u(["apf-log-stream__bar", `apf-log-stream__bar--${D.level}`]),
3667
+ class: n(["apf-log-stream__bar", `apf-log-stream__bar--${D.level}`]),
3668
3668
  "aria-hidden": "true"
3669
3669
  }, null, 2),
3670
3670
  Y("span", Ai, h(S(D.timestamp)), 1),
3671
3671
  Y("span", {
3672
- class: u(["apf-log-stream__level", `apf-log-stream__level--${D.level}`])
3672
+ class: n(["apf-log-stream__level", `apf-log-stream__level--${D.level}`])
3673
3673
  }, h(D.level), 3),
3674
3674
  Y("span", Zi, h(D.service), 1),
3675
3675
  Y("span", {
@@ -3694,10 +3694,10 @@ const D0 = {
3694
3694
  }, " 关闭 ")
3695
3695
  ]),
3696
3696
  o.value ? (m(), W("pre", ci, h(o.value), 1)) : (m(), W("div", bi, "无 payload"))
3697
- ])) : H("", !0)
3697
+ ])) : R("", !0)
3698
3698
  ], 4));
3699
3699
  }
3700
- }), OV = /* @__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({
3700
+ }), EV = /* @__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 = n(() => C[Z.type]);
3715
+ }, Z = I, A = g, d = u(() => 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));
@@ -3725,7 +3725,7 @@ const D0 = {
3725
3725
  return (G, b) => {
3726
3726
  const i = _("el-slider"), w = _("el-input-number");
3727
3727
  return m(), W("div", {
3728
- class: u(["apf-threshold-slider", { "is-disabled": I.disabled }])
3728
+ class: n(["apf-threshold-slider", { "is-disabled": I.disabled }])
3729
3729
  }, [
3730
3730
  Y("div", ii, [
3731
3731
  Y("span", Wi, h(d.value.unit), 1),
@@ -3754,21 +3754,21 @@ const D0 = {
3754
3754
  class: "apf-threshold-slider__input",
3755
3755
  "onUpdate:modelValue": l,
3756
3756
  onChange: b[1] || (b[1] = (s) => s != null && A("change", s))
3757
- }, null, 8, ["model-value", "min", "max", "step", "disabled"])) : H("", !0)
3757
+ }, null, 8, ["model-value", "min", "max", "step", "disabled"])) : R("", !0)
3758
3758
  ])
3759
3759
  ], 2);
3760
3760
  };
3761
3761
  }
3762
- }), EV = /* @__PURE__ */ U(si, [["__scopeId", "data-v-7098971c"]]), wi = /* @__PURE__ */ j({
3762
+ }), PV = /* @__PURE__ */ U(si, [["__scopeId", "data-v-7098971c"]]), wi = /* @__PURE__ */ j({
3763
3763
  __name: "PageShell",
3764
3764
  props: {
3765
3765
  fill: { type: Boolean, default: !1 }
3766
3766
  },
3767
3767
  setup(I) {
3768
3768
  return (g, C) => (m(), W("div", {
3769
- class: u([g.$style.shell, I.fill && g.$style.shellFill])
3769
+ class: n([g.$style.shell, I.fill && g.$style.shellFill])
3770
3770
  }, [
3771
- AI(g.$slots, "default")
3771
+ CI(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
- }, PV = /* @__PURE__ */ U(wi, [["__cssModules", oi]]), hi = /* @__PURE__ */ j({
3779
+ }, rV = /* @__PURE__ */ U(wi, [["__cssModules", oi]]), hi = /* @__PURE__ */ j({
3780
3780
  __name: "PageHeader",
3781
3781
  props: {
3782
3782
  title: {},
@@ -3784,30 +3784,30 @@ const D0 = {
3784
3784
  },
3785
3785
  setup(I) {
3786
3786
  return (g, C) => (m(), W("header", {
3787
- class: u(g.$style.header)
3787
+ class: n(g.$style.header)
3788
3788
  }, [
3789
3789
  Y("div", {
3790
- class: u(g.$style.titleRow)
3790
+ class: n(g.$style.titleRow)
3791
3791
  }, [
3792
3792
  Y("div", {
3793
- class: u(g.$style.titleLeft)
3793
+ class: n(g.$style.titleLeft)
3794
3794
  }, [
3795
3795
  Y("h1", {
3796
- class: u(g.$style.title)
3796
+ class: n(g.$style.title)
3797
3797
  }, h(I.title), 3),
3798
3798
  I.subtitle ? (m(), W("p", {
3799
3799
  key: 0,
3800
- class: u(g.$style.subtitle)
3801
- }, h(I.subtitle), 3)) : H("", !0),
3802
- AI(g.$slots, "default")
3800
+ class: n(g.$style.subtitle)
3801
+ }, h(I.subtitle), 3)) : R("", !0),
3802
+ CI(g.$slots, "default")
3803
3803
  ], 2),
3804
3804
  g.$slots.actions || g.$slots.extra ? (m(), W("div", {
3805
3805
  key: 0,
3806
- class: u(g.$style.actions)
3806
+ class: n(g.$style.actions)
3807
3807
  }, [
3808
- AI(g.$slots, "actions"),
3809
- AI(g.$slots, "extra")
3810
- ], 2)) : H("", !0)
3808
+ CI(g.$slots, "actions"),
3809
+ CI(g.$slots, "extra")
3810
+ ], 2)) : R("", !0)
3811
3811
  ], 2)
3812
3812
  ], 2));
3813
3813
  }
@@ -3820,7 +3820,7 @@ const D0 = {
3820
3820
  actions: ni
3821
3821
  }, Ki = {
3822
3822
  $style: Mi
3823
- }, rV = /* @__PURE__ */ U(hi, [["__cssModules", Ki]]), Si = ["onClick"], Di = /* @__PURE__ */ j({
3823
+ }, fV = /* @__PURE__ */ U(hi, [["__cssModules", Ki]]), Si = ["onClick"], Di = /* @__PURE__ */ j({
3824
3824
  __name: "BreadcrumbNav",
3825
3825
  props: {
3826
3826
  items: {}
@@ -3830,7 +3830,7 @@ const D0 = {
3830
3830
  const C = g;
3831
3831
  return (Z, A) => I.items.length > 0 ? (m(), W("nav", {
3832
3832
  key: 0,
3833
- class: u(Z.$style.breadcrumb),
3833
+ class: n(Z.$style.breadcrumb),
3834
3834
  "aria-label": "面包屑"
3835
3835
  }, [
3836
3836
  (m(!0), W(Q, null, q(I.items, (d, l) => (m(), W(Q, {
@@ -3838,20 +3838,20 @@ const D0 = {
3838
3838
  }, [
3839
3839
  l > 0 ? (m(), W("span", {
3840
3840
  key: 0,
3841
- class: u(Z.$style.separator),
3841
+ class: n(Z.$style.separator),
3842
3842
  "aria-hidden": "true"
3843
- }, "/", 2)) : H("", !0),
3843
+ }, "/", 2)) : R("", !0),
3844
3844
  d.to && l < I.items.length - 1 ? (m(), W("button", {
3845
3845
  key: 1,
3846
3846
  type: "button",
3847
- class: u(Z.$style.link),
3847
+ class: n(Z.$style.link),
3848
3848
  onClick: (c) => C("navigate", d.to)
3849
3849
  }, h(d.label), 11, Si)) : (m(), W("span", {
3850
3850
  key: 2,
3851
- class: u(Z.$style.current)
3851
+ class: n(Z.$style.current)
3852
3852
  }, h(d.label), 3))
3853
3853
  ], 64))), 128))
3854
- ], 2)) : H("", !0);
3854
+ ], 2)) : R("", !0);
3855
3855
  }
3856
3856
  }), Fi = "_breadcrumb_vy5ij_2", pi = "_separator_vy5ij_11", Ji = "_link_vy5ij_16", zi = "_current_vy5ij_30", ki = {
3857
3857
  breadcrumb: Fi,
@@ -3860,7 +3860,7 @@ const D0 = {
3860
3860
  current: zi
3861
3861
  }, ei = {
3862
3862
  $style: ki
3863
- }, fV = /* @__PURE__ */ U(Di, [["__cssModules", ei]]), Li = { class: "apf-filter-bar" }, ti = {
3863
+ }, qV = /* @__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({
@@ -3874,12 +3874,12 @@ const D0 = {
3874
3874
  return (Z, A) => {
3875
3875
  const d = _("el-button");
3876
3876
  return m(), W("div", Li, [
3877
- I.title ? (m(), W("div", ti, h(I.title), 1)) : H("", !0),
3877
+ I.title ? (m(), W("div", ti, h(I.title), 1)) : R("", !0),
3878
3878
  Y("div", Ti, [
3879
- AI(Z.$slots, "default", {}, void 0, !0)
3879
+ CI(Z.$slots, "default", {}, void 0, !0)
3880
3880
  ]),
3881
3881
  Y("div", xi, [
3882
- AI(Z.$slots, "actions", {}, () => [
3882
+ CI(Z.$slots, "actions", {}, () => [
3883
3883
  II(d, {
3884
3884
  type: "primary",
3885
3885
  onClick: A[0] || (A[0] = (l) => C("search"))
@@ -3902,7 +3902,7 @@ const D0 = {
3902
3902
  ]);
3903
3903
  };
3904
3904
  }
3905
- }), qV = /* @__PURE__ */ U(ji, [["__scopeId", "data-v-86218301"]]), Qi = /* @__PURE__ */ j({
3905
+ }), _V = /* @__PURE__ */ U(ji, [["__scopeId", "data-v-86218301"]]), Qi = /* @__PURE__ */ j({
3906
3906
  __name: "CardTable",
3907
3907
  props: {
3908
3908
  loading: { type: Boolean, default: !1 },
@@ -3911,18 +3911,18 @@ const D0 = {
3911
3911
  },
3912
3912
  setup(I) {
3913
3913
  return (g, C) => {
3914
- const Z = OZ("loading");
3914
+ const Z = EZ("loading");
3915
3915
  return Gg((m(), W("div", {
3916
- class: u(["apf-card-table", { "apf-card-table--borderless": I.borderless }]),
3916
+ class: n(["apf-card-table", { "apf-card-table--borderless": I.borderless }]),
3917
3917
  style: dI({ padding: I.padding })
3918
3918
  }, [
3919
- AI(g.$slots, "default", {}, void 0, !0)
3919
+ CI(g.$slots, "default", {}, void 0, !0)
3920
3920
  ], 6)), [
3921
3921
  [Z, I.loading]
3922
3922
  ]);
3923
3923
  };
3924
3924
  }
3925
- }), _V = /* @__PURE__ */ U(Qi, [["__scopeId", "data-v-fbd06971"]]), Ui = { class: "apf-table-row-actions" }, vi = /* @__PURE__ */ j({
3925
+ }), $V = /* @__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 = n(() => g.actions.length >= g.collapseAt), Z = n(
3933
+ const g = I, C = u(() => g.actions.length >= g.collapseAt), Z = u(
3934
3934
  () => C.value ? g.actions.slice(0, g.visibleCount) : g.actions
3935
- ), A = n(
3935
+ ), A = u(
3936
3936
  () => C.value ? g.actions.slice(g.visibleCount) : []
3937
3937
  );
3938
3938
  function d(l) {
@@ -3974,7 +3974,7 @@ const D0 = {
3974
3974
  name: s.icon,
3975
3975
  size: 14,
3976
3976
  style: { "margin-right": "6px" }
3977
- }, null, 8, ["name"])) : H("", !0),
3977
+ }, null, 8, ["name"])) : R("", !0),
3978
3978
  gI(" " + h(s.label), 1)
3979
3979
  ]),
3980
3980
  _: 2
@@ -4001,11 +4001,11 @@ const D0 = {
4001
4001
  })
4002
4002
  ]),
4003
4003
  _: 1
4004
- })) : H("", !0)
4004
+ })) : R("", !0)
4005
4005
  ]);
4006
4006
  };
4007
4007
  }
4008
- }), $V = /* @__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({
4008
+ }), IN = /* @__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: {},
@@ -4016,7 +4016,7 @@ const D0 = {
4016
4016
  },
4017
4017
  emits: ["update:modelValue", "search", "reset"],
4018
4018
  setup(I, { expose: g, emit: C }) {
4019
- const Z = I, A = C, d = t(Z.defaultCollapsed), l = EZ({});
4019
+ const Z = I, A = C, d = t(Z.defaultCollapsed), l = PZ({});
4020
4020
  function c() {
4021
4021
  var a;
4022
4022
  for (const V of Object.keys(l))
@@ -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 = n(
4028
+ const G = u(
4029
4029
  () => Z.collapsible && Z.fields.length > Z.defaultVisibleCount
4030
- ), b = n(() => !G.value || !d.value ? Z.fields : Z.fields.slice(0, Z.defaultVisibleCount));
4030
+ ), b = u(() => !G.value || !d.value ? Z.fields : Z.fields.slice(0, Z.defaultVisibleCount));
4031
4031
  function i() {
4032
4032
  return { ...l };
4033
4033
  }
@@ -4125,13 +4125,13 @@ const D0 = {
4125
4125
  gI(h(d.value ? "展开" : "收起"), 1)
4126
4126
  ]),
4127
4127
  _: 1
4128
- })) : H("", !0)
4128
+ })) : R("", !0)
4129
4129
  ])
4130
4130
  ])
4131
4131
  ]);
4132
4132
  };
4133
4133
  }
4134
- }), IN = /* @__PURE__ */ U(fi, [["__scopeId", "data-v-8a00c2b6"]]), qi = /* @__PURE__ */ j({
4134
+ }), gN = /* @__PURE__ */ U(fi, [["__scopeId", "data-v-8a00c2b6"]]), qi = /* @__PURE__ */ j({
4135
4135
  inheritAttrs: !1,
4136
4136
  __name: "TruncatedTooltipText",
4137
4137
  props: {
@@ -4151,10 +4151,10 @@ const D0 = {
4151
4151
  }, {
4152
4152
  default: O(() => [
4153
4153
  Y("span", {
4154
- class: u(["apf-truncated-text", $(g).class]),
4154
+ class: n(["apf-truncated-text", $(g).class]),
4155
4155
  style: dI($(g).style)
4156
4156
  }, [
4157
- AI(C.$slots, "default", {}, () => [
4157
+ CI(C.$slots, "default", {}, () => [
4158
4158
  gI(h(I.content), 1)
4159
4159
  ], !0)
4160
4160
  ], 6)
@@ -4175,16 +4175,16 @@ const D0 = {
4175
4175
  required: { type: Boolean }
4176
4176
  },
4177
4177
  setup(I) {
4178
- const g = I, C = n(() => {
4178
+ const g = I, C = u(() => {
4179
4179
  var Z;
4180
4180
  return (Z = g.hint) != null && Z.trim() ? `${g.label}
4181
4181
  ${g.hint.trim()}` : g.label;
4182
4182
  });
4183
4183
  return (Z, A) => (m(), W("div", {
4184
- class: u(["apf-field-row", { "apf-field-row--textarea": I.textarea }])
4184
+ class: n(["apf-field-row", { "apf-field-row--textarea": I.textarea }])
4185
4185
  }, [
4186
4186
  Y("div", $i, [
4187
- I.required ? (m(), W("span", IW, "*")) : H("", !0),
4187
+ I.required ? (m(), W("span", IW, "*")) : R("", !0),
4188
4188
  II($(_i), {
4189
4189
  content: C.value,
4190
4190
  class: "apf-field-row__label-text"
@@ -4196,13 +4196,13 @@ ${g.hint.trim()}` : g.label;
4196
4196
  }, 8, ["content"])
4197
4197
  ]),
4198
4198
  Y("div", {
4199
- class: u(["apf-field-row__control", { "apf-field-row__control--textarea": I.textarea }])
4199
+ class: n(["apf-field-row__control", { "apf-field-row__control--textarea": I.textarea }])
4200
4200
  }, [
4201
- AI(Z.$slots, "default", {}, void 0, !0)
4201
+ CI(Z.$slots, "default", {}, void 0, !0)
4202
4202
  ], 2)
4203
4203
  ], 2));
4204
4204
  }
4205
- }), gN = /* @__PURE__ */ U(gW, [["__scopeId", "data-v-84b9f50d"]]), CW = ["aria-label"], AW = {
4205
+ }), CN = /* @__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({
@@ -4251,14 +4251,14 @@ ${g.hint.trim()}` : g.label;
4251
4251
  ]),
4252
4252
  default: O(() => [
4253
4253
  Y("div", ZW, [
4254
- AI(g.$slots, "default", {}, void 0, !0)
4254
+ CI(g.$slots, "default", {}, void 0, !0)
4255
4255
  ])
4256
4256
  ]),
4257
4257
  _: 3
4258
4258
  }, 8, ["width"]));
4259
4259
  };
4260
4260
  }
4261
- }), CN = /* @__PURE__ */ U(lW, [["__scopeId", "data-v-38245bc2"]]), dW = { class: "apf-section-toggle" }, GW = { class: "apf-section-toggle__label" }, cW = {
4261
+ }), AN = /* @__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({
@@ -4285,16 +4285,16 @@ ${g.hint.trim()}` : g.label;
4285
4285
  class: "apf-section-toggle__arrow"
4286
4286
  }, null, 8, ["name"]),
4287
4287
  Y("span", GW, h(I.title), 1),
4288
- I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) : H("", !0)
4288
+ I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) : R("", !0)
4289
4289
  ]),
4290
4290
  Gg(Y("div", bW, [
4291
- AI(A.$slots, "default", {}, void 0, !0)
4291
+ CI(A.$slots, "default", {}, void 0, !0)
4292
4292
  ], 512), [
4293
4293
  [_l, C.value]
4294
4294
  ])
4295
4295
  ]));
4296
4296
  }
4297
- }), AN = /* @__PURE__ */ U(mW, [["__scopeId", "data-v-64b3dfe8"]]), iW = {
4297
+ }), ZN = /* @__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
- }), ZN = /* @__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({
4315
+ }), lN = /* @__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 = n(() => {
4325
+ const C = I, Z = g, A = u(() => {
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 = n(() => {
4333
+ }), d = u(() => {
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 = n(() => C.type === "schema" ? "document" : C.type === "flow" ? "connection" : "files");
4348
+ }), l = u(() => C.type === "schema" ? "document" : C.type === "flow" ? "connection" : "files");
4349
4349
  function c() {
4350
4350
  Z("click"), Z("openDetail");
4351
4351
  }
@@ -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 = n(() => {
4378
+ const C = I, Z = g, A = u(() => {
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(), x($(IA), {
4393
+ return m(), x($(gA), {
4394
4394
  "model-value": I.modelValue,
4395
4395
  title: I.title || "JSON 详情",
4396
4396
  width: "720px",
@@ -4424,7 +4424,7 @@ ${g.hint.trim()}` : g.label;
4424
4424
  },
4425
4425
  emits: ["update:modelValue"],
4426
4426
  setup(I, { emit: g }) {
4427
- const C = I, Z = g, A = EZ({});
4427
+ const C = I, Z = g, A = PZ({});
4428
4428
  function d() {
4429
4429
  var c;
4430
4430
  for (const G of Object.keys(A))
@@ -4517,7 +4517,7 @@ ${g.hint.trim()}` : g.label;
4517
4517
  ]);
4518
4518
  };
4519
4519
  }
4520
- }), lN = /* @__PURE__ */ U(aW, [["__scopeId", "data-v-1d125a82"]]);
4520
+ }), dN = /* @__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);
@@ -4526,18 +4526,18 @@ function Lg(I) {
4526
4526
  const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
4527
4527
  return g.includes("pdf") || C.endsWith(".pdf");
4528
4528
  }
4529
- function WZ(I) {
4529
+ 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 dN(I) {
4533
+ function GN(I) {
4534
4534
  return Rg(I) || Lg(I);
4535
4535
  }
4536
- function lA(I) {
4536
+ function dA(I) {
4537
4537
  const g = (I.filename || "").toLowerCase(), C = (I.mimetype || "").toLowerCase();
4538
4538
  return Lg(I) ? "PDF" : g.endsWith(".docx") || g.endsWith(".doc") || C.includes("word") ? "Word" : g.endsWith(".xlsx") || g.endsWith(".xls") || C.includes("sheet") || C.includes("excel") ? "Excel" : g.endsWith(".csv") ? "CSV" : g.endsWith(".txt") || g.endsWith(".md") ? "文本" : g.endsWith(".json") ? "JSON" : "文件";
4539
4539
  }
4540
- function dA(I) {
4540
+ function GA(I) {
4541
4541
  return I == null || I < 0 ? "" : I < 1024 ? `${I} B` : I < 1024 * 1024 ? `${(I / 1024).toFixed(1)} KB` : `${(I / (1024 * 1024)).toFixed(1)} MB`;
4542
4542
  }
4543
4543
  const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar" }, yW = { class: "apf-pdf-preview__nav" }, uW = ["disabled"], nW = ["disabled"], MW = { class: "apf-pdf-preview__zoom" }, KW = ["disabled"], SW = ["disabled"], DW = ["disabled"], FW = {
@@ -4555,7 +4555,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4555
4555
  }, eW = ["src", "title"], LW = {
4556
4556
  key: 3,
4557
4557
  class: "apf-pdf-preview__state"
4558
- }, BZ = 0.5, YZ = 3, sZ = 0.2, tW = /* @__PURE__ */ j({
4558
+ }, YZ = 0.5, sZ = 3, wZ = 0.2, tW = /* @__PURE__ */ j({
4559
4559
  __name: "PdfPreviewCard",
4560
4560
  props: {
4561
4561
  url: {},
@@ -4566,20 +4566,20 @@ 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 = jC(null), i = jC(null), w = n(() => C.value && !g.forceIframe), s = n(
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 = jC(null), i = jC(null), w = u(() => C.value && !g.forceIframe), s = u(
4570
4570
  () => w.value ? Z.value : g.loading
4571
- ), a = n(
4571
+ ), a = u(
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 y = await i.value.getPage(e), p = y.getViewport({ scale: c.value }), J = G.value, R = J.getContext("2d");
4579
- if (!R) throw new Error("Canvas 不可用");
4578
+ const y = await i.value.getPage(e), p = y.getViewport({ scale: c.value }), J = G.value, H = J.getContext("2d");
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`, R.setTransform(z, 0, 0, z, 0, 0), await y.render({
4582
- canvasContext: R,
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 y.render({
4582
+ canvasContext: H,
4583
4583
  viewport: p,
4584
4584
  canvas: J
4585
4585
  }).promise, d.value = e;
@@ -4611,10 +4611,10 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4611
4611
  d.value < l.value && V(d.value + 1);
4612
4612
  }
4613
4613
  function k() {
4614
- c.value >= YZ || (c.value = Math.min(YZ, +(c.value + sZ).toFixed(1)), V(d.value));
4614
+ c.value >= sZ || (c.value = Math.min(sZ, +(c.value + wZ).toFixed(1)), V(d.value));
4615
4615
  }
4616
4616
  function L() {
4617
- c.value <= BZ || (c.value = Math.max(BZ, +(c.value - sZ).toFixed(1)), V(d.value));
4617
+ c.value <= YZ || (c.value = Math.max(YZ, +(c.value - wZ).toFixed(1)), V(d.value));
4618
4618
  }
4619
4619
  function K() {
4620
4620
  c.value = 1.2, V(d.value);
@@ -4630,7 +4630,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4630
4630
  b.value = p, C.value = !!p, p && await X();
4631
4631
  },
4632
4632
  { immediate: !0 }
4633
- ), PZ(() => {
4633
+ ), rZ(() => {
4634
4634
  var e;
4635
4635
  (e = i.value) == null || e.cleanup(), i.value = null;
4636
4636
  }), (e, y) => (m(), W("div", RW, [
@@ -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 ? AI(e.$slots, "default", { url: I.url }, () => [
4682
+ s.value ? (m(), W("div", zW, "加载中...")) : a.value ? (m(), W("div", kW, h(a.value), 1)) : I.url ? CI(e.$slots, "default", { url: I.url }, () => [
4683
4683
  Y("iframe", {
4684
4684
  class: "apf-pdf-preview__frame",
4685
4685
  src: I.url,
@@ -4728,9 +4728,9 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4728
4728
  let s = null, a = null;
4729
4729
  function V(J) {
4730
4730
  if (!s || !a) return;
4731
- const R = s.Sheets[J];
4732
- if (!R) return;
4733
- const z = a.sheet_to_json(R, {
4731
+ const H = s.Sheets[J];
4732
+ if (!H) return;
4733
+ const z = a.sheet_to_json(H, {
4734
4734
  header: 1,
4735
4735
  defval: ""
4736
4736
  });
@@ -4741,14 +4741,14 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4741
4741
  c.value = z[0].map(String), G.value = z.slice(1, C.maxPreviewRows + 1).map((D) => D.map((f) => String(f ?? "")));
4742
4742
  }
4743
4743
  async function X(J) {
4744
- const R = await K0();
4745
- if (!R) {
4744
+ const H = await K0();
4745
+ if (!H) {
4746
4746
  w.value = !1, d.value = "未安装 xlsx,无法解析 Excel(可改用 props 传表数据)";
4747
4747
  return;
4748
4748
  }
4749
4749
  A.value = !0, d.value = null;
4750
4750
  try {
4751
- s = R.read(J, { type: "array" }), a = R.utils, l.value = s.SheetNames, w.value = !0, s.SheetNames.length && (i.value = s.SheetNames[0], Z("update:modelValue", i.value), V(i.value));
4751
+ s = H.read(J, { type: "array" }), a = H.utils, l.value = s.SheetNames, w.value = !0, s.SheetNames.length && (i.value = s.SheetNames[0], Z("update:modelValue", i.value), V(i.value));
4752
4752
  } catch (z) {
4753
4753
  w.value = !1, d.value = z instanceof Error ? z.message : "Excel 解析失败";
4754
4754
  } finally {
@@ -4757,9 +4757,9 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
4757
4757
  }
4758
4758
  NI(
4759
4759
  () => [C.src, C.arrayBuffer],
4760
- async ([J, R]) => {
4761
- if (R) {
4762
- await X(R);
4760
+ async ([J, H]) => {
4761
+ if (H) {
4762
+ await X(H);
4763
4763
  return;
4764
4764
  }
4765
4765
  if (!J) {
@@ -4780,39 +4780,39 @@ 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 = n(
4783
+ const S = u(
4784
4784
  () => w.value ? l.value : C.sheetNames
4785
- ), k = n(
4785
+ ), k = u(
4786
4786
  () => w.value ? i.value : C.modelValue
4787
- ), L = n(
4787
+ ), L = u(
4788
4788
  () => w.value ? c.value : C.headers
4789
- ), K = n(() => w.value ? G.value : C.rows), e = n(
4789
+ ), K = u(() => w.value ? G.value : C.rows), e = u(
4790
4790
  () => w.value ? b.value : C.totalRows
4791
- ), y = n(
4791
+ ), y = u(
4792
4792
  () => w.value || C.src || C.arrayBuffer ? A.value : C.loading
4793
- ), p = n(
4793
+ ), p = u(
4794
4794
  () => w.value || C.src || C.arrayBuffer ? d.value : C.error
4795
4795
  );
4796
- return (J, R) => (m(), W("div", TW, [
4796
+ return (J, H) => (m(), W("div", TW, [
4797
4797
  S.value.length ? (m(), W("div", xW, [
4798
4798
  Y("div", jW, [
4799
4799
  (m(!0), W(Q, null, q(S.value, (z) => (m(), W("button", {
4800
4800
  key: z,
4801
4801
  type: "button",
4802
- class: u(["apf-excel-preview__tab", { "apf-excel-preview__tab--active": k.value === z }]),
4802
+ class: n(["apf-excel-preview__tab", { "apf-excel-preview__tab--active": k.value === z }]),
4803
4803
  onClick: (D) => o(z)
4804
4804
  }, h(z), 11, QW))), 128))
4805
4805
  ]),
4806
4806
  e.value > 0 ? (m(), W("div", UW, [
4807
4807
  gI(h(e.value) + " 行 ", 1),
4808
- e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) : H("", !0)
4809
- ])) : H("", !0)
4810
- ])) : H("", !0),
4808
+ e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) : R("", !0)
4809
+ ])) : R("", !0)
4810
+ ])) : R("", !0),
4811
4811
  y.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, [
4815
- R[0] || (R[0] = Y("th", { class: "apf-excel-preview__row-num" }, "#", -1)),
4815
+ H[0] || (H[0] = Y("th", { class: "apf-excel-preview__row-num" }, "#", -1)),
4816
4816
  (m(!0), W(Q, null, q(L.value, (z, D) => (m(), W("th", { key: D }, h(z || `列${D + 1}`), 1))), 128))
4817
4817
  ])
4818
4818
  ]),
@@ -4860,28 +4860,28 @@ 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 = n(() => {
4863
+ const C = I, Z = g, A = u(() => {
4864
4864
  const w = (C.mimetype || "").toLowerCase(), s = C.filename.toLowerCase();
4865
4865
  return w.includes("pdf") || s.endsWith(".pdf") || !!C.pdfUrl;
4866
- }), d = n(() => {
4866
+ }), d = u(() => {
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 = n(() => {
4869
+ }), l = u(() => {
4870
4870
  var s;
4871
4871
  const w = [];
4872
- return C.mimetype && w.push(C.mimetype), C.size != null && w.push(dA(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 = n(() => {
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 = u(() => {
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 = n(() => !!C.pdfUrl && A.value), b = n(() => !!C.excelUrl && d.value && !G.value), i = n(() => !G.value && !b.value);
4879
+ }), G = u(() => !!C.pdfUrl && A.value), b = u(() => !!C.excelUrl && d.value && !G.value), i = u(() => !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, [
4883
4883
  I.loading ? (m(), W("div", gB, "加载中...")) : I.error ? (m(), W("div", CB, h(I.error), 1)) : (m(), W(Q, { key: 2 }, [
4884
- l.value ? (m(), W("div", AB, h(l.value), 1)) : H("", !0),
4884
+ l.value ? (m(), W("div", AB, h(l.value), 1)) : R("", !0),
4885
4885
  I.hasOriginalFile ? (m(), W("div", ZB, [
4886
4886
  II(a, {
4887
4887
  size: "small",
@@ -4894,9 +4894,9 @@ ${s.text}`).join(`
4894
4894
  ])]),
4895
4895
  _: 1
4896
4896
  })
4897
- ])) : H("", !0),
4897
+ ])) : R("", !0),
4898
4898
  G.value ? (m(), W("div", lB, [
4899
- AI(w.$slots, "pdf", { url: I.pdfUrl }, () => [
4899
+ CI(w.$slots, "pdf", { url: I.pdfUrl }, () => [
4900
4900
  II(cl, {
4901
4901
  url: I.pdfUrl,
4902
4902
  title: I.filename,
@@ -4904,7 +4904,7 @@ ${s.text}`).join(`
4904
4904
  }, null, 8, ["url", "title"])
4905
4905
  ], !0)
4906
4906
  ])) : b.value ? (m(), W("div", dB, [
4907
- AI(w.$slots, "excel", { url: I.excelUrl }, () => [
4907
+ CI(w.$slots, "excel", { url: I.excelUrl }, () => [
4908
4908
  II($W, { src: I.excelUrl }, null, 8, ["src"])
4909
4909
  ], !0)
4910
4910
  ])) : i.value ? (m(), x(V, {
@@ -4915,12 +4915,12 @@ ${s.text}`).join(`
4915
4915
  Y("pre", GB, h(c.value || "暂无预览内容"), 1)
4916
4916
  ]),
4917
4917
  _: 1
4918
- })) : H("", !0)
4918
+ })) : R("", !0)
4919
4919
  ], 64))
4920
4920
  ]);
4921
4921
  };
4922
4922
  }
4923
- }), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]), GN = /* @__PURE__ */ j({
4923
+ }), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]), cN = /* @__PURE__ */ j({
4924
4924
  __name: "DocumentPreviewDrawer",
4925
4925
  props: {
4926
4926
  modelValue: { type: Boolean },
@@ -4966,18 +4966,18 @@ ${s.text}`).join(`
4966
4966
  error: I.error,
4967
4967
  onDownload: d[0] || (d[0] = (c) => C("download")),
4968
4968
  onClose: Z
4969
- }, UZ({ _: 2 }, [
4969
+ }, vZ({ _: 2 }, [
4970
4970
  A.$slots.pdf ? {
4971
4971
  name: "pdf",
4972
4972
  fn: O((c) => [
4973
- AI(A.$slots, "pdf", vA(OA(c)))
4973
+ CI(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
- AI(A.$slots, "excel", vA(OA(c)))
4980
+ CI(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 = n(() => {
4999
+ const g = I, C = t(!1), Z = t(0), A = u(() => {
5000
5000
  var l;
5001
5001
  return (l = g.urls) != null && l.length ? g.urls.filter(Boolean) : g.url ? [g.url] : [];
5002
5002
  });
@@ -5005,7 +5005,7 @@ ${s.text}`).join(`
5005
5005
  }
5006
5006
  return (l, c) => A.value.length ? (m(), W("div", {
5007
5007
  key: 0,
5008
- class: u(["apf-image-preview", `apf-image-preview--${I.size}`])
5008
+ class: n(["apf-image-preview", `apf-image-preview--${I.size}`])
5009
5009
  }, [
5010
5010
  (m(!0), W(Q, null, q(A.value, (G, b) => (m(), W("button", {
5011
5011
  key: `${G}-${b}`,
@@ -5025,8 +5025,8 @@ ${s.text}`).join(`
5025
5025
  "initial-index": Z.value,
5026
5026
  teleported: "",
5027
5027
  onClose: c[0] || (c[0] = (G) => C.value = !1)
5028
- }, null, 8, ["url-list", "initial-index"])) : H("", !0)
5029
- ], 2)) : H("", !0);
5028
+ }, null, 8, ["url-list", "initial-index"])) : R("", !0)
5029
+ ], 2)) : R("", !0);
5030
5030
  }
5031
5031
  }), BB = /* @__PURE__ */ U(WB, [["__scopeId", "data-v-40f66176"]]), YB = ["src"], sB = /* @__PURE__ */ j({
5032
5032
  __name: "VideoPreviewCard",
@@ -5036,7 +5036,7 @@ ${s.text}`).join(`
5036
5036
  },
5037
5037
  setup(I) {
5038
5038
  return (g, C) => (m(), W("video", {
5039
- class: u(["apf-video-preview", `apf-video-preview--${I.size}`]),
5039
+ class: n(["apf-video-preview", `apf-video-preview--${I.size}`]),
5040
5040
  src: I.url,
5041
5041
  controls: "",
5042
5042
  preload: "metadata",
@@ -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 = n(() => g.text.replace(/\s+/g, " ").trim().slice(0, 64));
5092
+ const g = I, { copy: C } = VB(), Z = u(() => g.text.replace(/\s+/g, " ").trim().slice(0, 64));
5093
5093
  async function A() {
5094
5094
  await C(g.text);
5095
5095
  }
@@ -5115,11 +5115,11 @@ const NB = {
5115
5115
  },
5116
5116
  emits: ["preview"],
5117
5117
  setup(I, { emit: g }) {
5118
- const C = I, Z = g, A = n(() => C.item.kind === "pdf" ? "PDF" : C.item.kind === "office" ? lA({
5118
+ const C = I, Z = g, A = u(() => 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 = n(() => C.item.filename || C.item.label || A.value);
5122
+ }) : "文件"), d = u(() => 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",
@@ -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 = n(() => C.items.slice(0, C.max)), c = n(
5157
+ const C = I, Z = g, A = t(!1), d = t(null), l = u(() => C.items.slice(0, C.max)), c = u(
5158
5158
  () => l.value.filter((X) => X.kind === "image" && X.url).map((X) => X.url)
5159
- ), G = n(() => l.value.filter((X) => X.kind === "video" && X.url)), b = n(() => l.value.filter((X) => {
5159
+ ), G = u(() => l.value.filter((X) => X.kind === "video" && X.url)), b = u(() => l.value.filter((X) => {
5160
5160
  var o;
5161
5161
  return X.kind === "json" && ((o = X.text) == null ? void 0 : o.trim());
5162
- })), i = n(() => l.value.filter((X) => {
5162
+ })), i = u(() => l.value.filter((X) => {
5163
5163
  var o;
5164
5164
  return X.kind === "text" && ((o = X.text) == null ? void 0 : o.trim());
5165
- })), w = n(
5165
+ })), w = u(
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 = n(
5169
+ ), s = u(
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) {
@@ -5179,20 +5179,20 @@ const NB = {
5179
5179
  var S, k;
5180
5180
  return s.value ? (m(), W("div", {
5181
5181
  key: 0,
5182
- class: u(["apf-artifact-gallery", `apf-artifact-gallery--${I.size}`])
5182
+ class: n(["apf-artifact-gallery", `apf-artifact-gallery--${I.size}`])
5183
5183
  }, [
5184
5184
  c.value.length ? (m(), x(BB, {
5185
5185
  key: 0,
5186
5186
  urls: c.value,
5187
5187
  size: I.size
5188
- }, null, 8, ["urls", "size"])) : H("", !0),
5188
+ }, null, 8, ["urls", "size"])) : R("", !0),
5189
5189
  G.value.length ? (m(), W("div", MB, [
5190
5190
  (m(!0), W(Q, null, q(G.value, (L) => (m(), x(wB, {
5191
5191
  key: L.id,
5192
5192
  url: L.url,
5193
5193
  size: I.size
5194
5194
  }, null, 8, ["url", "size"]))), 128))
5195
- ])) : H("", !0),
5195
+ ])) : R("", !0),
5196
5196
  b.value.length ? (m(), W("div", KB, [
5197
5197
  (m(!0), W(Q, null, q(b.value, (L) => (m(), x($(VW), {
5198
5198
  key: L.id,
@@ -5200,14 +5200,14 @@ const NB = {
5200
5200
  content: L.text,
5201
5201
  onOpenDetail: (K) => V(L)
5202
5202
  }, null, 8, ["title", "content", "onOpenDetail"]))), 128))
5203
- ])) : H("", !0),
5203
+ ])) : R("", !0),
5204
5204
  w.value.length ? (m(), W("div", SB, [
5205
5205
  (m(!0), W(Q, null, q(w.value, (L) => (m(), x(nB, {
5206
5206
  key: L.id,
5207
5207
  item: L,
5208
5208
  onPreview: a
5209
5209
  }, null, 8, ["item"]))), 128))
5210
- ])) : H("", !0),
5210
+ ])) : R("", !0),
5211
5211
  i.value.length ? (m(), W("div", DB, [
5212
5212
  (m(!0), W(Q, null, q(i.value, (L) => (m(), x(RB, {
5213
5213
  key: L.id,
@@ -5215,17 +5215,17 @@ const NB = {
5215
5215
  label: L.label,
5216
5216
  size: I.size
5217
5217
  }, null, 8, ["text", "label", "size"]))), 128))
5218
- ])) : H("", !0),
5218
+ ])) : R("", !0),
5219
5219
  II($(oW), {
5220
5220
  modelValue: A.value,
5221
5221
  "onUpdate:modelValue": o[0] || (o[0] = (L) => A.value = L),
5222
5222
  title: ((S = d.value) == null ? void 0 : S.label) || "JSON 详情",
5223
5223
  content: (k = d.value) == null ? void 0 : k.text
5224
5224
  }, null, 8, ["modelValue", "title", "content"])
5225
- ], 2)) : H("", !0);
5225
+ ], 2)) : R("", !0);
5226
5226
  };
5227
5227
  }
5228
- }), GA = /* @__PURE__ */ U(FB, [["__scopeId", "data-v-9949695b"]]), pB = /* @__PURE__ */ j({
5228
+ }), cA = /* @__PURE__ */ U(FB, [["__scopeId", "data-v-9949695b"]]), pB = /* @__PURE__ */ j({
5229
5229
  __name: "NodeArtifactStrip",
5230
5230
  props: {
5231
5231
  items: {},
@@ -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(), x(GA, {
5237
+ return (Z, A) => (m(), x(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
- }), cN = /* @__PURE__ */ U(pB, [["__scopeId", "data-v-27af4171"]]), JB = {
5245
+ }), bN = /* @__PURE__ */ U(pB, [["__scopeId", "data-v-27af4171"]]), JB = {
5246
5246
  key: 0,
5247
5247
  class: "apf-hitl-artifact-panel"
5248
5248
  }, zB = {
@@ -5259,16 +5259,16 @@ const NB = {
5259
5259
  setup(I, { emit: g }) {
5260
5260
  const C = g;
5261
5261
  return (Z, A) => I.items.length ? (m(), W("section", JB, [
5262
- I.title ? (m(), W("header", zB, h(I.title), 1)) : H("", !0),
5263
- II(GA, {
5262
+ I.title ? (m(), W("header", zB, h(I.title), 1)) : R("", !0),
5263
+ II(cA, {
5264
5264
  items: I.items,
5265
5265
  size: "default",
5266
5266
  max: I.max,
5267
5267
  onPreview: A[0] || (A[0] = (d) => C("preview", d))
5268
5268
  }, null, 8, ["items", "max"])
5269
- ])) : H("", !0);
5269
+ ])) : R("", !0);
5270
5270
  }
5271
- }), bN = /* @__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 = {
5271
+ }), mN = /* @__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 = n(() => {
5306
+ const G = u(() => {
5307
5307
  var V;
5308
5308
  return (V = C.groups) != null && V.length ? C.groups.flatMap((X) => X.items) : C.items ?? [];
5309
- }), b = n(() => {
5309
+ }), b = u(() => {
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 = n(() => {
5327
+ }), i = u(() => {
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 = n(() => {
5337
+ }), w = u(() => {
5338
5338
  var X;
5339
5339
  if ((X = C.groups) != null && X.length)
5340
5340
  return C.groups.map((o) => ({
@@ -5343,26 +5343,26 @@ 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 = n(() => G.value.length > 0), a = n(() => w.value.some((V) => V.items.length > 0));
5346
+ }), s = u(() => G.value.length > 0), a = u(() => 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, [
5350
5350
  Y("h3", TB, h(I.title), 1),
5351
- s.value ? (m(), W("span", xB, h(b.value.all) + " 项 ", 1)) : H("", !0)
5351
+ s.value ? (m(), W("span", xB, h(b.value.all) + " 项 ", 1)) : R("", !0)
5352
5352
  ]),
5353
5353
  I.showFilters && s.value && i.value.length > 1 ? (m(), W("div", jB, [
5354
5354
  (m(!0), W(Q, null, q(i.value, (o) => (m(), W("button", {
5355
5355
  key: o.value,
5356
5356
  type: "button",
5357
5357
  role: "tab",
5358
- class: u(["apf-execution-artifact-panel__chip", { "is-active": A.value === o.value }]),
5358
+ class: n(["apf-execution-artifact-panel__chip", { "is-active": A.value === o.value }]),
5359
5359
  "aria-selected": A.value === o.value,
5360
5360
  onClick: (S) => A.value = o.value
5361
5361
  }, [
5362
5362
  gI(h(o.label) + " ", 1),
5363
5363
  Y("em", null, h(o.count), 1)
5364
5364
  ], 10, QB))), 128))
5365
- ])) : H("", !0)
5365
+ ])) : R("", !0)
5366
5366
  ]),
5367
5367
  s.value ? a.value ? (m(), W("div", UB, [
5368
5368
  (m(!0), W(Q, null, q(w.value, (o) => (m(), W("div", {
@@ -5372,8 +5372,8 @@ const NB = {
5372
5372
  o.label ? (m(), W("div", vB, [
5373
5373
  gI(h(o.label) + " ", 1),
5374
5374
  Y("em", null, h(o.items.length), 1)
5375
- ])) : H("", !0),
5376
- II(GA, {
5375
+ ])) : R("", !0),
5376
+ II(cA, {
5377
5377
  items: o.items,
5378
5378
  size: "default",
5379
5379
  max: I.max,
@@ -5395,11 +5395,11 @@ const NB = {
5395
5395
  }))
5396
5396
  ]));
5397
5397
  }
5398
- }), mN = /* @__PURE__ */ U(OB, [["__scopeId", "data-v-704305fc"]]);
5399
- function cA() {
5398
+ }), iN = /* @__PURE__ */ U(OB, [["__scopeId", "data-v-704305fc"]]);
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
  }
5402
- var ig = cA();
5402
+ var ig = bA();
5403
5403
  function bl(I) {
5404
5404
  ig = I;
5405
5405
  }
@@ -5411,7 +5411,7 @@ function Ng(I) {
5411
5411
  return A || (A = I(Z), g[Z] = A), A;
5412
5412
  };
5413
5413
  }
5414
- function CI(I, g = "") {
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
5417
  return l = l.replace(aI.caret, "$1"), C = C.replace(A, l), Z;
@@ -5424,15 +5424,15 @@ var EB = ((I = "") => {
5424
5424
  } catch {
5425
5425
  return !1;
5426
5426
  }
5427
- })(), aI = { 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+|$)/, bA = / {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 = CI(ml).replace(/bull/g, bA).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 = CI(ml).replace(/bull/g, bA).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(), mA = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, $B = /^[^\n]+/, iA = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, IY = CI(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", iA).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gY = CI(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, bA).getRegex(), YC = "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", WA = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, CY = CI("^ {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", WA).replace("tag", YC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Wl = (I) => CI(mA).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", YC).getRegex(), AY = Wl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), ZY = Wl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), lY = CI(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ZY).getRegex(), BA = { blockquote: lY, code: rB, def: IY, fences: fB, heading: qB, hr: Tg, html: CY, lheading: il, list: gY, newline: PB, paragraph: AY, table: dg, text: $B }, wZ = CI("^ *([^\\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", YC).getRegex(), dY = { ...BA, lheading: _B, table: wZ, paragraph: CI(mA).replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", wZ).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", YC).getRegex() }, GY = { ...BA, html: CI(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", WA).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: dg, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: CI(mA).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 = CI(/^((?![*_])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 = CI(/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 = CI(sl, "u").replace(/punct/g, vI).getRegex(), VY = CI(sl, "u").replace(/punct/g, Yl).getRegex(), NY = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, XY = CI(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 = CI(wl, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), hY = CI(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 = CI(aY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), HY = CI("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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 = CI(yY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), nY = CI(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, vI).getRegex(), MY = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", KY = CI(MY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), SY = CI(/\\(punct)/, "gu").replace(/punct/g, vI).getRegex(), DY = CI(/^<(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 = CI(WA).replace("(?:-->|$)", "-->").getRegex(), pY = CI("^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 = CI(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", bC).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vl = CI(/^!?\[(label)\]\[(ref)\]/).replace("label", bC).replace("ref", iA).getRegex(), Nl = CI(/^!?\[(ref)\](?:\[\])?/).replace("ref", iA).getRegex(), zY = CI("reflink|nolink(?!\\()", "g").replace("reflink", Vl).replace("nolink", Nl).getRegex(), VZ = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, YA = { _backpedal: dg, anyPunctuation: SY, autolink: DY, blockSkip: sY, br: Bl, code: bY, del: dg, delLDelim: dg, delRDelim: dg, emStrongLDelim: wY, emStrongRDelimAst: oY, emStrongRDelimUnd: HY, escape: cY, link: JY, nolink: Nl, punctuation: iY, reflink: Vl, reflinkSearch: zY, tag: pY, text: mY, url: dg }, kY = { ...YA, emStrongLDelim: XY, emStrongRDelimAst: RY, emStrongRDelimUnd: uY, link: CI(/^!?\[(label)\]\((.*?)\)/).replace("label", bC).getRegex(), reflink: CI(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", bC).getRegex() }, rC = { ...YA, emStrongRDelimAst: hY, emStrongLDelim: VY, delLDelim: nY, delRDelim: KY, url: CI(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", VZ).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: CI(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", VZ).getRegex() }, eY = { ...rC, br: CI(Bl).replace("{2,}", "*").getRegex(), text: CI(rC.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, gC = { normal: BA, gfm: dY, pedantic: GY }, Sg = { normal: YA, gfm: rC, breaks: eY, pedantic: kY }, LY = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, NZ = (I) => LY[I];
5427
+ })(), aI = { 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(), YC = "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", YC).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", YC).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: dg, 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", YC).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", YC).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: dg, 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: dg, anyPunctuation: SY, autolink: DY, blockSkip: sY, br: Bl, code: bY, del: dg, delLDelim: dg, delRDelim: dg, emStrongLDelim: wY, emStrongRDelimAst: oY, emStrongRDelimUnd: HY, escape: cY, link: JY, nolink: Nl, punctuation: iY, reflink: Vl, reflinkSearch: zY, tag: pY, text: mY, url: dg }, kY = { ...sA, emStrongLDelim: XY, emStrongRDelimAst: RY, emStrongRDelimUnd: uY, link: AI(/^!?\[(label)\]\((.*?)\)/).replace("label", bC).getRegex(), reflink: AI(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", bC).getRegex() }, rC = { ...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 = { ...rC, br: AI(Bl).replace("{2,}", "*").getRegex(), text: AI(rC.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, gC = { normal: YA, gfm: dY, pedantic: GY }, Sg = { normal: sA, gfm: rC, breaks: eY, pedantic: kY }, LY = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, XZ = (I) => LY[I];
5429
5429
  function jI(I, g) {
5430
5430
  if (g) {
5431
- if (aI.escapeTest.test(I)) return I.replace(aI.escapeReplace, NZ);
5432
- } else if (aI.escapeTestNoEncode.test(I)) return I.replace(aI.escapeReplaceNoEncode, NZ);
5431
+ if (aI.escapeTest.test(I)) return I.replace(aI.escapeReplace, XZ);
5432
+ } else if (aI.escapeTestNoEncode.test(I)) return I.replace(aI.escapeReplaceNoEncode, XZ);
5433
5433
  return I;
5434
5434
  }
5435
- function XZ(I) {
5435
+ function oZ(I) {
5436
5436
  try {
5437
5437
  I = encodeURI(I).replace(aI.percentDecode, "%");
5438
5438
  } catch {
@@ -5440,7 +5440,7 @@ function XZ(I) {
5440
5440
  }
5441
5441
  return I;
5442
5442
  }
5443
- function oZ(I, g) {
5443
+ function hZ(I, g) {
5444
5444
  var d;
5445
5445
  let C = I.replace(aI.findPipe, (l, c, G) => {
5446
5446
  let b = !1, i = c;
@@ -5460,7 +5460,7 @@ function fI(I, g, C) {
5460
5460
  A++;
5461
5461
  return I.slice(0, Z - A);
5462
5462
  }
5463
- function hZ(I) {
5463
+ function aZ(I) {
5464
5464
  let g = I.split(`
5465
5465
  `), C = g.length - 1;
5466
5466
  for (; C >= 0 && aI.blankLine.test(g[C]); ) C--;
@@ -5483,7 +5483,7 @@ function TY(I, g = 0) {
5483
5483
  } else Z += A, C++;
5484
5484
  return Z;
5485
5485
  }
5486
- function aZ(I, g, C, Z, A) {
5486
+ function RZ(I, g, C, Z, A) {
5487
5487
  let d = g.href, l = g.title || null, c = I[1].replace(A.other.outputLinkReplace, "$1"), G = I[0].charAt(0) === "!";
5488
5488
  Z.state.inLink = !0;
5489
5489
  let b = Z.state.linkEmitted, i = Z.state.inRawBlock;
@@ -5525,7 +5525,7 @@ var mC = class {
5525
5525
  code(I) {
5526
5526
  let g = this.rules.block.code.exec(I);
5527
5527
  if (g) {
5528
- let C = this.options.pedantic ? g[0] : hZ(g[0]), Z = C.replace(this.rules.other.codeRemoveIndent, "");
5528
+ let C = this.options.pedantic ? g[0] : aZ(g[0]), Z = C.replace(this.rules.other.codeRemoveIndent, "");
5529
5529
  return { type: "code", raw: C, codeBlockStyle: "indented", text: Z };
5530
5530
  }
5531
5531
  }
@@ -5660,7 +5660,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
5660
5660
  html(I) {
5661
5661
  let g = this.rules.block.html.exec(I);
5662
5662
  if (g) {
5663
- let C = hZ(g[0]);
5663
+ let C = aZ(g[0]);
5664
5664
  return { type: "html", block: !0, raw: C, pre: g[1] === "pre" || g[1] === "script" || g[1] === "style", text: C };
5665
5665
  }
5666
5666
  }
@@ -5676,13 +5676,13 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
5676
5676
  var l;
5677
5677
  let g = this.rules.block.table.exec(I);
5678
5678
  if (!g || !this.rules.other.tableDelimiter.test(g[2])) return;
5679
- let C = oZ(g[1]), Z = g[2].replace(this.rules.other.tableAlignChars, "").split("|"), A = (l = g[3]) != null && l.trim() ? g[3].replace(this.rules.other.tableRowBlankLine, "").split(`
5679
+ let C = hZ(g[1]), Z = g[2].replace(this.rules.other.tableAlignChars, "").split("|"), A = (l = g[3]) != null && l.trim() ? g[3].replace(this.rules.other.tableRowBlankLine, "").split(`
5680
5680
  `) : [], d = { type: "table", raw: fI(g[0], `
5681
5681
  `), header: [], align: [], rows: [] };
5682
5682
  if (C.length === Z.length) {
5683
5683
  for (let c of Z) this.rules.other.tableAlignRight.test(c) ? d.align.push("right") : this.rules.other.tableAlignCenter.test(c) ? d.align.push("center") : this.rules.other.tableAlignLeft.test(c) ? d.align.push("left") : d.align.push(null);
5684
5684
  for (let c = 0; c < C.length; c++) d.header.push({ text: C[c], tokens: this.lexer.inline(C[c]), header: !0, align: d.align[c] });
5685
- for (let c of A) d.rows.push(oZ(c, d.header.length).map((G, b) => ({ text: G, tokens: this.lexer.inline(G), header: !1, align: d.align[b] })));
5685
+ for (let c of A) d.rows.push(hZ(c, d.header.length).map((G, b) => ({ text: G, tokens: this.lexer.inline(G), header: !1, align: d.align[b] })));
5686
5686
  return d;
5687
5687
  }
5688
5688
  }
@@ -5735,7 +5735,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
5735
5735
  let d = this.rules.other.pedanticHrefTitle.exec(Z);
5736
5736
  d && (Z = d[1], A = d[3]);
5737
5737
  } else A = g[3] ? g[3].slice(1, -1) : "";
5738
- return Z = Z.trim(), this.rules.other.startAngleBracket.test(Z) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(C) ? Z = Z.slice(1) : Z = Z.slice(1, -1)), aZ(g, { href: Z && Z.replace(this.rules.inline.anyPunctuation, "$1"), title: A && A.replace(this.rules.inline.anyPunctuation, "$1") }, g[0], this.lexer, this.rules);
5738
+ return Z = Z.trim(), this.rules.other.startAngleBracket.test(Z) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(C) ? Z = Z.slice(1) : Z = Z.slice(1, -1)), RZ(g, { href: Z && Z.replace(this.rules.inline.anyPunctuation, "$1"), title: A && A.replace(this.rules.inline.anyPunctuation, "$1") }, g[0], this.lexer, this.rules);
5739
5739
  }
5740
5740
  }
5741
5741
  reflink(I, g) {
@@ -5746,7 +5746,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
5746
5746
  let d = C[0].charAt(0);
5747
5747
  return { type: "text", raw: d, text: d };
5748
5748
  }
5749
- return aZ(C, A, C[0], this.lexer, this.rules);
5749
+ return RZ(C, A, C[0], this.lexer, this.rules);
5750
5750
  }
5751
5751
  }
5752
5752
  emStrong(I, g, C = "") {
@@ -6175,7 +6175,7 @@ ${I}</tr>
6175
6175
  return `<del>${this.parser.parseInline(I)}</del>`;
6176
6176
  }
6177
6177
  link({ href: I, title: g, tokens: C }) {
6178
- let Z = this.parser.parseInline(C), A = XZ(I);
6178
+ let Z = this.parser.parseInline(C), A = oZ(I);
6179
6179
  if (A === null) return Z;
6180
6180
  I = A;
6181
6181
  let d = '<a href="' + I + '"';
@@ -6183,7 +6183,7 @@ ${I}</tr>
6183
6183
  }
6184
6184
  image({ href: I, title: g, text: C, tokens: Z }) {
6185
6185
  Z && (C = this.parser.parseInline(Z, this.parser.textRenderer));
6186
- let A = XZ(I);
6186
+ let A = oZ(I);
6187
6187
  if (A === null) return jI(C);
6188
6188
  I = A;
6189
6189
  let d = `<img src="${I}" alt="${jI(C)}"`;
@@ -6192,7 +6192,7 @@ ${I}</tr>
6192
6192
  text(I) {
6193
6193
  return "tokens" in I && I.tokens ? this.parser.parseInline(I.tokens) : "escaped" in I && I.escaped ? I.text : jI(I.text);
6194
6194
  }
6195
- }, sA = class {
6195
+ }, wA = class {
6196
6196
  strong({ text: I }) {
6197
6197
  return I;
6198
6198
  }
@@ -6228,7 +6228,7 @@ ${I}</tr>
6228
6228
  GI(this, "options");
6229
6229
  GI(this, "renderer");
6230
6230
  GI(this, "textRenderer");
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 sA();
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
6234
  return new qC(C).parse(g);
@@ -6402,13 +6402,13 @@ ${I}</tr>
6402
6402
  }
6403
6403
  }, GI(ZC, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), GI(ZC, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), ZC), jY = class {
6404
6404
  constructor(...I) {
6405
- GI(this, "defaults", cA());
6405
+ GI(this, "defaults", bA());
6406
6406
  GI(this, "options", this.setOptions);
6407
6407
  GI(this, "parse", this.parseMarkdown(!0));
6408
6408
  GI(this, "parseInline", this.parseMarkdown(!1));
6409
6409
  GI(this, "Parser", LI);
6410
6410
  GI(this, "Renderer", iC);
6411
- GI(this, "TextRenderer", sA);
6411
+ GI(this, "TextRenderer", wA);
6412
6412
  GI(this, "Lexer", eI);
6413
6413
  GI(this, "Tokenizer", mC);
6414
6414
  GI(this, "Hooks", Jg);
@@ -6568,7 +6568,7 @@ function cI(I, g) {
6568
6568
  cI.options = cI.setOptions = function(I) {
6569
6569
  return bg.setOptions(I), cI.defaults = bg.defaults, bl(cI.defaults), cI;
6570
6570
  };
6571
- cI.getDefaults = cA;
6571
+ cI.getDefaults = bA;
6572
6572
  cI.defaults = ig;
6573
6573
  function QY(...I) {
6574
6574
  return bg.use(...I), cI.defaults = bg.defaults, bl(cI.defaults), cI;
@@ -6581,7 +6581,7 @@ cI.parseInline = bg.parseInline;
6581
6581
  cI.Parser = LI;
6582
6582
  cI.parser = LI.parse;
6583
6583
  cI.Renderer = iC;
6584
- cI.TextRenderer = sA;
6584
+ cI.TextRenderer = wA;
6585
6585
  cI.Lexer = eI;
6586
6586
  cI.lexer = eI.lex;
6587
6587
  cI.Tokenizer = mC;
@@ -6594,7 +6594,7 @@ cI.parseInline;
6594
6594
  LI.parse;
6595
6595
  eI.lex;
6596
6596
  /*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */
6597
- function RZ(I, g) {
6597
+ function HZ(I, g) {
6598
6598
  (g == null || g > I.length) && (g = I.length);
6599
6599
  for (var C = 0, Z = Array(g); C < g; C++) Z[C] = I[C];
6600
6600
  return Z;
@@ -6629,12 +6629,12 @@ function EY(I, g) {
6629
6629
  }
6630
6630
  function PY(I, g) {
6631
6631
  if (I) {
6632
- if (typeof I == "string") return RZ(I, g);
6632
+ if (typeof I == "string") return HZ(I, g);
6633
6633
  var C = {}.toString.call(I).slice(8, -1);
6634
- return C === "Object" && I.constructor && (C = I.constructor.name), C === "Map" || C === "Set" ? Array.from(I) : C === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C) ? RZ(I, g) : void 0;
6634
+ return C === "Object" && I.constructor && (C = I.constructor.name), C === "Map" || C === "Set" ? Array.from(I) : C === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C) ? HZ(I, g) : void 0;
6635
6635
  }
6636
6636
  }
6637
- const Xl = Object.entries, HZ = Object.setPrototypeOf, rY = Object.isFrozen, fY = Object.getPrototypeOf, qY = Object.getOwnPropertyDescriptor;
6637
+ const Xl = Object.entries, yZ = Object.setPrototypeOf, rY = Object.isFrozen, fY = Object.getPrototypeOf, qY = Object.getOwnPropertyDescriptor;
6638
6638
  let VI = Object.freeze, XI = Object.seal, Xg = Object.create, ol = typeof Reflect < "u" && Reflect, _C = ol.apply, $C = ol.construct;
6639
6639
  VI || (VI = function(g) {
6640
6640
  return g;
@@ -6652,7 +6652,7 @@ $C || ($C = function(g) {
6652
6652
  Z[A - 1] = arguments[A];
6653
6653
  return new g(...Z);
6654
6654
  });
6655
- const lg = wI(Array.prototype.forEach), _Y = wI(Array.prototype.lastIndexOf), yZ = wI(Array.prototype.pop), Dg = wI(Array.prototype.push), $Y = wI(Array.prototype.splice), hg = Array.isArray, zg = wI(String.prototype.toLowerCase), FC = wI(String.prototype.toString), uZ = wI(String.prototype.match), Fg = wI(String.prototype.replace), nZ = wI(String.prototype.indexOf), Is = wI(String.prototype.trim), gs = wI(Number.prototype.toString), Cs = wI(Boolean.prototype.toString), MZ = typeof BigInt > "u" ? null : wI(BigInt.prototype.toString), KZ = typeof Symbol > "u" ? null : wI(Symbol.prototype.toString), MI = wI(Object.prototype.hasOwnProperty), pg = wI(Object.prototype.toString), hI = wI(RegExp.prototype.test), Zg = As(TypeError);
6655
+ const lg = 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), FC = 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), hI = wI(RegExp.prototype.test), Zg = As(TypeError);
6656
6656
  function wI(I) {
6657
6657
  return function(g) {
6658
6658
  g instanceof RegExp && (g.lastIndex = 0);
@@ -6670,7 +6670,7 @@ function As(I) {
6670
6670
  }
6671
6671
  function lI(I, g) {
6672
6672
  let C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : zg;
6673
- if (HZ && HZ(I, null), !hg(g))
6673
+ if (yZ && yZ(I, null), !hg(g))
6674
6674
  return I;
6675
6675
  let Z = g.length;
6676
6676
  for (; Z--; ) {
@@ -6706,9 +6706,9 @@ function ls(I) {
6706
6706
  case "boolean":
6707
6707
  return Cs(I);
6708
6708
  case "bigint":
6709
- return MZ ? MZ(I) : "0";
6709
+ return KZ ? KZ(I) : "0";
6710
6710
  case "symbol":
6711
- return KZ ? KZ(I) : "Symbol()";
6711
+ return SZ ? SZ(I) : "Symbol()";
6712
6712
  case "undefined":
6713
6713
  return pg(I);
6714
6714
  case "function":
@@ -6749,13 +6749,13 @@ function ds(I) {
6749
6749
  return !1;
6750
6750
  }
6751
6751
  }
6752
- const SZ = 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"]), pC = 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"]), JC = 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"]), zC = 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"]), DZ = VI(["#text"]), FZ = 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"]), kC = 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"]), pZ = 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 = XI(/{{[\w\W]*|^[\w\W]*}}/g), ms = XI(/<%[\w\W]*|^[\w\W]*%>/g), is = XI(/\${[\w\W]*/g), Ws = XI(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bs = XI(/^aria-[\-\w]+$/), JZ = XI(
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"]), pC = 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"]), JC = 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"]), zC = 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"]), kC = 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 = XI(/{{[\w\W]*|^[\w\W]*}}/g), ms = XI(/<%[\w\W]*|^[\w\W]*%>/g), is = XI(/\${[\w\W]*/g), Ws = XI(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bs = XI(/^aria-[\-\w]+$/), zZ = XI(
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
6755
  ), Ys = XI(/^(?:\w+script|data):/i), ss = XI(
6756
6756
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
6757
6757
  // eslint-disable-line no-control-regex
6758
- ), ws = XI(/^html$/i), Vs = XI(/^[a-z][.\w]*(-[.\w]+)+$/i), zZ = XI(/<[/\w!]/g), kZ = XI(/<[/\w]/g), Ns = XI(/<\/no(script|embed|frames)/i), Xs = XI(/\/>/i), KI = {
6758
+ ), ws = XI(/^html$/i), Vs = XI(/^[a-z][.\w]*(-[.\w]+)+$/i), kZ = XI(/<[/\w!]/g), eZ = XI(/<[/\w]/g), Ns = XI(/<\/no(script|embed|frames)/i), Xs = XI(/\/>/i), KI = {
6759
6759
  element: 1,
6760
6760
  attribute: 2,
6761
6761
  text: 3,
@@ -6797,7 +6797,7 @@ const SZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
6797
6797
  } catch {
6798
6798
  return console.warn("TrustedTypes policy " + d + " could not be created."), null;
6799
6799
  }
6800
- }, eZ = function() {
6800
+ }, LZ = function() {
6801
6801
  return {
6802
6802
  afterSanitizeAttributes: [],
6803
6803
  afterSanitizeElements: [],
@@ -6834,34 +6834,34 @@ function al() {
6834
6834
  const F = C.createElement("template");
6835
6835
  F.content && F.content.ownerDocument && (C = F.content.ownerDocument);
6836
6836
  }
6837
- let R, z = "", D, f = !1, ZI = 0;
6837
+ let H, z = "", D, f = !1, ZI = 0;
6838
6838
  const DI = function() {
6839
6839
  if (ZI > 0)
6840
6840
  throw Zg('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 {
6844
- return R.createHTML(B);
6844
+ return H.createHTML(B);
6845
6845
  } finally {
6846
6846
  ZI--;
6847
6847
  }
6848
6848
  }, E = function(B) {
6849
6849
  DI(), ZI++;
6850
6850
  try {
6851
- return R.createScriptURL(B);
6851
+ return H.createScriptURL(B);
6852
6852
  } finally {
6853
6853
  ZI--;
6854
6854
  }
6855
6855
  }, r = function() {
6856
6856
  return f || (D = Rs(w, A), f = !0), D;
6857
6857
  }, oI = C, HI = oI.implementation, pI = oI.createNodeIterator, OI = oI.createDocumentFragment, Ig = oI.getElementsByTagName, sI = Z.importNode;
6858
- let mI = eZ();
6858
+ let mI = LZ();
6859
6859
  g.isSupported = typeof Xl == "function" && typeof S == "function" && HI && HI.createHTMLDocument !== void 0;
6860
- const Hl = bs, yl = ms, ul = is, nl = Ws, Ml = Bs, Kl = Ys, wA = ss, Sl = Vs;
6861
- let VA = JZ, iI = null;
6862
- const sC = lI({}, [...SZ, ...pC, ...JC, ...zC, ...DZ]);
6860
+ const Hl = bs, yl = ms, ul = is, nl = Ws, Ml = Bs, Kl = Ys, VA = ss, Sl = Vs;
6861
+ let NA = zZ, iI = null;
6862
+ const sC = lI({}, [...DZ, ...pC, ...JC, ...zC, ...FZ]);
6863
6863
  let WI = null;
6864
- const wC = lI({}, [...FZ, ...kC, ...pZ, ...CC]);
6864
+ const wC = lI({}, [...pZ, ...kC, ...JZ, ...CC]);
6865
6865
  let tI = Object.seal(Xg(null, {
6866
6866
  tagNameCheck: {
6867
6867
  writable: !0,
@@ -6881,7 +6881,7 @@ function al() {
6881
6881
  enumerable: !0,
6882
6882
  value: !1
6883
6883
  }
6884
- })), yg = null, NA = null;
6884
+ })), yg = null, XA = null;
6885
6885
  const EI = Object.seal(Xg(null, {
6886
6886
  tagCheck: {
6887
6887
  writable: !0,
@@ -6896,10 +6896,10 @@ function al() {
6896
6896
  value: null
6897
6897
  }
6898
6898
  }));
6899
- let XA = !0, VC = !0, oA = !1, hA = !0, PI = !1, gg = !0, Cg = !1, NC = !1, jg = null, Qg = null, XC = !1, Wg = !1, Ug = !1, vg = !1, aA = !0, RA = !1;
6900
- const HA = "user-content-";
6899
+ let oA = !0, VC = !0, hA = !1, aA = !0, PI = !1, gg = !0, Cg = !1, NC = !1, jg = null, Qg = null, XC = !1, Wg = !1, Ug = !1, vg = !1, RA = !0, HA = !1;
6900
+ const yA = "user-content-";
6901
6901
  let oC = !0, hC = !1, Bg = {}, Yg = null;
6902
- const yA = lI({}, [
6902
+ const uA = lI({}, [
6903
6903
  "annotation-xml",
6904
6904
  "audio",
6905
6905
  "colgroup",
@@ -6936,20 +6936,20 @@ function al() {
6936
6936
  "video",
6937
6937
  "xmp"
6938
6938
  ]);
6939
- let uA = null;
6940
- const nA = lI({}, ["audio", "video", "img", "source", "image", "track"]);
6941
- let MA = null;
6942
- const KA = 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";
6939
+ let nA = null;
6940
+ const MA = lI({}, ["audio", "video", "img", "source", "image", "track"]);
6941
+ let KA = null;
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
6943
  let sg = TI, aC = !1, RC = null;
6944
- const Dl = lI({}, [Og, Eg, TI], FC), SA = VI(["mi", "mo", "mn", "ms", "mtext"]);
6945
- let HC = lI({}, SA);
6946
- const DA = VI(["annotation-xml"]);
6947
- let yC = lI({}, DA);
6944
+ const Dl = lI({}, [Og, Eg, TI], FC), DA = VI(["mi", "mo", "mn", "ms", "mtext"]);
6945
+ let HC = lI({}, DA);
6946
+ const FA = VI(["annotation-xml"]);
6947
+ let yC = 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
- const zl = C.createElement("form"), FA = function(B) {
6952
+ const zl = C.createElement("form"), pA = function(B) {
6953
6953
  return B instanceof RegExp || B instanceof Function;
6954
6954
  }, uC = function() {
6955
6955
  let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -6962,50 +6962,50 @@ function al() {
6962
6962
  transform: YI
6963
6963
  }), RC = qI(B, "ALLOWED_NAMESPACES", Dl, {
6964
6964
  transform: FC
6965
- }), MA = qI(B, "ADD_URI_SAFE_ATTR", KA, {
6965
+ }), KA = qI(B, "ADD_URI_SAFE_ATTR", SA, {
6966
6966
  transform: YI,
6967
- base: KA
6968
- }), uA = qI(B, "ADD_DATA_URI_TAGS", nA, {
6967
+ base: SA
6968
+ }), nA = qI(B, "ADD_DATA_URI_TAGS", MA, {
6969
6969
  transform: YI,
6970
- base: nA
6971
- }), Yg = qI(B, "FORBID_CONTENTS", yA, {
6970
+ base: MA
6971
+ }), Yg = qI(B, "FORBID_CONTENTS", uA, {
6972
6972
  transform: YI
6973
6973
  }), yg = qI(B, "FORBID_TAGS", SI({}), {
6974
6974
  transform: YI
6975
- }), NA = qI(B, "FORBID_ATTR", SI({}), {
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, XA = B.ALLOW_ARIA_ATTR !== !1, VC = B.ALLOW_DATA_ATTR !== !1, oA = B.ALLOW_UNKNOWN_PROTOCOLS || !1, hA = B.ALLOW_SELF_CLOSE_IN_ATTR !== !1, PI = B.SAFE_FOR_TEMPLATES || !1, gg = B.SAFE_FOR_XML !== !1, Cg = B.WHOLE_DOCUMENT || !1, Wg = B.RETURN_DOM || !1, Ug = B.RETURN_DOM_FRAGMENT || !1, vg = B.RETURN_TRUSTED_TYPE || !1, XC = B.FORCE_BODY || !1, aA = B.SANITIZE_DOM !== !1, RA = B.SANITIZE_NAMED_PROPS || !1, oC = B.KEEP_CONTENT !== !1, hC = B.IN_PLACE || !1, VA = ds(B.ALLOWED_URI_REGEXP) ? B.ALLOWED_URI_REGEXP : JZ, sg = typeof B.NAMESPACE == "string" ? B.NAMESPACE : TI, HC = eC(
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, VC = 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, gg = B.SAFE_FOR_XML !== !1, Cg = B.WHOLE_DOCUMENT || !1, Wg = B.RETURN_DOM || !1, Ug = B.RETURN_DOM_FRAGMENT || !1, vg = B.RETURN_TRUSTED_TYPE || !1, XC = B.FORCE_BODY || !1, RA = B.SANITIZE_DOM !== !1, HA = B.SANITIZE_NAMED_PROPS || !1, oC = B.KEEP_CONTENT !== !1, hC = B.IN_PLACE || !1, NA = ds(B.ALLOWED_URI_REGEXP) ? B.ALLOWED_URI_REGEXP : zZ, sg = typeof B.NAMESPACE == "string" ? B.NAMESPACE : TI, HC = eC(
6978
6978
  B,
6979
6979
  "MATHML_TEXT_INTEGRATION_POINTS",
6980
- () => lI({}, SA)
6980
+ () => lI({}, DA)
6981
6981
  // Default built-in map
6982
6982
  ), yC = eC(
6983
6983
  B,
6984
6984
  "HTML_INTEGRATION_POINTS",
6985
- () => lI({}, DA)
6985
+ () => lI({}, FA)
6986
6986
  // Default built-in map
6987
6987
  );
6988
6988
  const N = eC(B, "CUSTOM_ELEMENT_HANDLING", () => Xg(null));
6989
- if (tI = Xg(null), MI(N, "tagNameCheck") && FA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && FA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), XI(tI), PI && (VC = !1), Ug && (Wg = !0), Bg && (iI = lI({}, DZ), WI = Xg(null), Bg.html === !0 && (lI(iI, SZ), lI(WI, FZ)), Bg.svg === !0 && (lI(iI, pC), lI(WI, kC), lI(WI, CC)), Bg.svgFilters === !0 && (lI(iI, JC), lI(WI, kC), lI(WI, CC)), Bg.mathMl === !0 && (lI(iI, zC), lI(WI, pZ), 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 === sC && (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 === wC && (WI = SI(WI)), lI(WI, B.ADD_ATTR, YI))), MI(B, "ADD_FORBID_CONTENTS") && hg(B.ADD_FORBID_CONTENTS) && (Yg === yA && (Yg = SI(Yg)), lI(Yg, B.ADD_FORBID_CONTENTS, YI)), oC && (iI["#text"] = !0), Cg && lI(iI, ["html", "head", "body"]), iI.table && (lI(iI, ["tbody"]), delete yg.tbody), B.TRUSTED_TYPES_POLICY) {
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), XI(tI), PI && (VC = !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, pC), lI(WI, kC), lI(WI, CC)), Bg.svgFilters === !0 && (lI(iI, JC), lI(WI, kC), lI(WI, CC)), Bg.mathMl === !0 && (lI(iI, zC), 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 === sC && (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 === wC && (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)), oC && (iI["#text"] = !0), Cg && 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
6991
  throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
6992
6992
  if (typeof B.TRUSTED_TYPES_POLICY.createScriptURL != "function")
6993
6993
  throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
6994
- const M = R;
6995
- R = B.TRUSTED_TYPES_POLICY;
6994
+ const M = H;
6995
+ H = B.TRUSTED_TYPES_POLICY;
6996
6996
  try {
6997
6997
  z = FI("");
6998
6998
  } catch (T) {
6999
- throw R = M, T;
6999
+ throw H = M, T;
7000
7000
  }
7001
- } else B.TRUSTED_TYPES_POLICY === null ? (R = void 0, z = "") : (R === void 0 && (R = r()), R && typeof z == "string" && (z = FI("")));
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
- }, pA = lI({}, [...pC, ...JC, ...Gs]), JA = lI({}, [...zC, ...cs]), kl = function(B, N, M) {
7004
- return N.namespaceURI === TI ? B === "svg" : N.namespaceURI === Og ? B === "svg" && (M === "annotation-xml" || HC[M]) : !!pA[B];
7003
+ }, JA = lI({}, [...pC, ...JC, ...Gs]), zA = lI({}, [...zC, ...cs]), kl = function(B, N, M) {
7004
+ return N.namespaceURI === TI ? B === "svg" : N.namespaceURI === Og ? B === "svg" && (M === "annotation-xml" || HC[M]) : !!JA[B];
7005
7005
  }, el = function(B, N, M) {
7006
- return N.namespaceURI === TI ? B === "math" : N.namespaceURI === Eg ? B === "math" && yC[M] : !!JA[B];
7006
+ return N.namespaceURI === TI ? B === "math" : N.namespaceURI === Eg ? B === "math" && yC[M] : !!zA[B];
7007
7007
  }, Ll = function(B, N, M) {
7008
- return N.namespaceURI === Eg && !yC[M] || N.namespaceURI === Og && !HC[M] ? !1 : !JA[B] && (Fl[B] || !pA[B]);
7008
+ return N.namespaceURI === Eg && !yC[M] || N.namespaceURI === Og && !HC[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 = {
@@ -7024,7 +7024,7 @@ function al() {
7024
7024
  if (V(B), !S(B))
7025
7025
  throw Zg("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
- }, zA = function(B, N, M) {
7027
+ }, kA = function(B, N, M) {
7028
7028
  try {
7029
7029
  B.removeAttributeNode(N);
7030
7030
  } catch {
@@ -7051,7 +7051,7 @@ function al() {
7051
7051
  if (M)
7052
7052
  for (let T = M.length - 1; T >= 0; --T) {
7053
7053
  const v = M[T], P = v && v.name;
7054
- typeof P == "string" && zA(B, v, P);
7054
+ typeof P == "string" && kA(B, v, P);
7055
7055
  }
7056
7056
  }, Ag = function(B, N, M) {
7057
7057
  if (!M)
@@ -7088,7 +7088,7 @@ function al() {
7088
7088
  if (N)
7089
7089
  for (let M = N.length - 1; M >= 0; --M) {
7090
7090
  const T = N[M], v = T && T.name;
7091
- typeof v != "string" || WI[YI(v)] || zA(B, T, v);
7091
+ typeof v != "string" || WI[YI(v)] || kA(B, T, v);
7092
7092
  }
7093
7093
  }, rg = function(B) {
7094
7094
  const N = [B];
@@ -7100,7 +7100,7 @@ function al() {
7100
7100
  for (let P = v.length - 1; P >= 0; --P)
7101
7101
  N.push(v[P]);
7102
7102
  }
7103
- }, kA = function(B, N) {
7103
+ }, eA = function(B, N) {
7104
7104
  return gg ? B === "patchsrc" ? !0 : B === "for" && N !== "label" && N !== "output" : !1;
7105
7105
  }, xl = function(B) {
7106
7106
  if (!gg)
@@ -7108,7 +7108,7 @@ function al() {
7108
7108
  const N = [B];
7109
7109
  for (; N.length > 0; ) {
7110
7110
  const M = N.pop(), T = p(M);
7111
- if (T === KI.processingInstruction || T === KI.comment && hI(kZ, M.data)) {
7111
+ if (T === KI.processingInstruction || T === KI.comment && hI(eZ, M.data)) {
7112
7112
  try {
7113
7113
  V(M);
7114
7114
  } catch {
@@ -7118,7 +7118,7 @@ function al() {
7118
7118
  if (T === KI.element) {
7119
7119
  const P = M, bI = YI(J(M));
7120
7120
  try {
7121
- P.hasAttribute && P.hasAttribute("patchsrc") && P.removeAttribute("patchsrc"), P.hasAttribute && P.hasAttribute("for") && kA("for", bI) && P.removeAttribute("for");
7121
+ P.hasAttribute && P.hasAttribute("patchsrc") && P.removeAttribute("patchsrc"), P.hasAttribute && P.hasAttribute("for") && eA("for", bI) && P.removeAttribute("for");
7122
7122
  } catch {
7123
7123
  }
7124
7124
  }
@@ -7127,16 +7127,16 @@ function al() {
7127
7127
  for (let P = v.length - 1; P >= 0; --P)
7128
7128
  N.push(v[P]);
7129
7129
  }
7130
- }, eA = function(B) {
7130
+ }, LA = function(B) {
7131
7131
  let N = null, M = null;
7132
7132
  if (XC)
7133
7133
  B = "<remove></remove>" + B;
7134
7134
  else {
7135
- const P = uZ(B, /^[\r\n\t ]+/);
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 T = R ? FI(B) : B;
7139
+ const T = H ? FI(B) : B;
7140
7140
  if (sg === TI)
7141
7141
  try {
7142
7142
  N = new i().parseFromString(T, ug);
@@ -7151,7 +7151,7 @@ function al() {
7151
7151
  }
7152
7152
  const v = N.body || N.documentElement;
7153
7153
  return B && M && v.insertBefore(C.createTextNode(M), v.childNodes[0] || null), sg === TI ? Ig.call(N, Cg ? "html" : "body")[0] : Cg ? N.documentElement : v;
7154
- }, LA = function(B) {
7154
+ }, tA = function(B) {
7155
7155
  const N = y ? y(B) : B.ownerDocument;
7156
7156
  return pI.call(
7157
7157
  N || B,
@@ -7228,7 +7228,7 @@ function al() {
7228
7228
  });
7229
7229
  }
7230
7230
  const jl = function(B, N) {
7231
- return !!(gg && B.hasChildNodes() && !ng(B.firstElementChild) && hI(zZ, B.textContent) && hI(zZ, B.innerHTML) || gg && B.namespaceURI === TI && os[N] && (ng(B.firstElementChild) || typeof B.textContent == "string" && hI(hs[N], B.textContent)) || B.nodeType === KI.processingInstruction || gg && B.nodeType === KI.comment && hI(kZ, B.data));
7231
+ return !!(gg && B.hasChildNodes() && !ng(B.firstElementChild) && hI(kZ, B.textContent) && hI(kZ, B.innerHTML) || gg && B.namespaceURI === TI && os[N] && (ng(B.firstElementChild) || typeof B.textContent == "string" && hI(hs[N], B.textContent)) || B.nodeType === KI.processingInstruction || gg && B.nodeType === KI.comment && hI(eZ, B.data));
7232
7232
  }, _g = function(B, N) {
7233
7233
  if (B instanceof RegExp)
7234
7234
  return hI(B, N);
@@ -7239,7 +7239,7 @@ function al() {
7239
7239
  }
7240
7240
  return !1;
7241
7241
  }, Ql = function(B, N, M) {
7242
- if (!yg[N] && QA(N) && _g(tI.tagNameCheck, N))
7242
+ if (!yg[N] && UA(N) && _g(tI.tagNameCheck, N))
7243
7243
  return !1;
7244
7244
  if (oC && !Yg[N]) {
7245
7245
  const T = S(B), v = o(B);
@@ -7252,20 +7252,20 @@ function al() {
7252
7252
  }
7253
7253
  }
7254
7254
  return rI(B), !0;
7255
- }, tA = function(B, N, M, T) {
7255
+ }, TA = function(B, N, M, T) {
7256
7256
  return B.length === 0 ? N : N === M || N === T ? SI(N) : N;
7257
- }, TA = function(B, N) {
7258
- return B === N || S(B) !== null ? !1 : (hC && rg(B), !0);
7259
7257
  }, xA = function(B, N) {
7260
- if (xI(mI.beforeSanitizeElements, B, null), TA(B, N))
7258
+ return B === N || S(B) !== null ? !1 : (hC && rg(B), !0);
7259
+ }, jA = function(B, N) {
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, sC, jg), xI(mI.uponSanitizeElement, B, {
7265
+ if (iI = TA(mI.uponSanitizeElement, iI, sC, jg), xI(mI.uponSanitizeElement, B, {
7266
7266
  tagName: M,
7267
7267
  allowedTags: iI
7268
- }), TA(B, N))
7268
+ }), xA(B, N))
7269
7269
  return !0;
7270
7270
  if (jl(B, M))
7271
7271
  return rI(B), !0;
@@ -7282,23 +7282,23 @@ function al() {
7282
7282
  }), B.textContent = v);
7283
7283
  }
7284
7284
  return xI(mI.afterSanitizeElements, B, null), !1;
7285
- }, jA = function(B, N, M) {
7286
- if (NA[N] || kA(N, B) || aA && (N === "id" || N === "name") && (M in C || M in zl))
7285
+ }, QA = function(B, N, M) {
7286
+ if (XA[N] || eA(N, B) || RA && (N === "id" || N === "name") && (M in C || M in zl))
7287
7287
  return !1;
7288
7288
  const T = WI[N] || EI.attributeCheck instanceof Function && EI.attributeCheck(N, B);
7289
- return VC && hI(nl, N) || XA && hI(Ml, N) ? !0 : T ? MA[N] || hI(VA, Fg(M, wA, "")) || (N === "src" || N === "xlink:href" || N === "href") && B !== "script" && nZ(M, "data:") === 0 && uA[B] || oA && !hI(Kl, Fg(M, wA, "")) ? !0 : !M : (
7289
+ return VC && hI(nl, N) || oA && hI(Ml, N) ? !0 : T ? KA[N] || hI(NA, Fg(M, VA, "")) || (N === "src" || N === "xlink:href" || N === "href") && B !== "script" && MZ(M, "data:") === 0 && nA[B] || hA && !hI(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 ...
7293
- QA(B) && _g(tI.tagNameCheck, B) && _g(tI.attributeNameCheck, N, B) || // Condition b) covers an `is` attribute whose value passes the
7293
+ UA(B) && _g(tI.tagNameCheck, B) && _g(tI.attributeNameCheck, N, B) || // Condition b) covers an `is` attribute whose value passes the
7294
7294
  // configured tagNameCheck while customized built-in elements are
7295
7295
  // allowed.
7296
7296
  N === "is" && tI.allowCustomizedBuiltInElements && _g(tI.tagNameCheck, M)
7297
7297
  );
7298
- }, Ul = lI({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), QA = function(B) {
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
7299
  return !Ul[zg(B)] && hI(Sl, B);
7300
7300
  }, vl = function(B, N, M, T) {
7301
- if (R && typeof w == "object" && typeof w.getAttributeType == "function" && !M)
7301
+ if (H && typeof w == "object" && typeof w.getAttributeType == "function" && !M)
7302
7302
  switch (w.getAttributeType(B, N)) {
7303
7303
  case "TrustedHTML":
7304
7304
  return FI(T);
@@ -7308,16 +7308,16 @@ function al() {
7308
7308
  return T;
7309
7309
  }, Ol = function(B, N, M, T) {
7310
7310
  try {
7311
- M ? B.setAttributeNS(M, N, T) : B.setAttribute(N, T), qg(B) ? rI(B) : yZ(g.removed);
7311
+ M ? B.setAttributeNS(M, N, T) : B.setAttribute(N, T), qg(B) ? rI(B) : uZ(g.removed);
7312
7312
  } catch {
7313
7313
  Ag(N, B);
7314
7314
  }
7315
- }, UA = function(B) {
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, wC, Qg);
7320
+ WI = TA(mI.uponSanitizeAttribute, WI, wC, Qg);
7321
7321
  const M = {
7322
7322
  attrName: "",
7323
7323
  attrValue: "",
@@ -7330,11 +7330,11 @@ function al() {
7330
7330
  for (; T--; ) {
7331
7331
  const P = N[T], bI = P.name, BI = P.namespaceURI, uI = P.value, nI = YI(bI), KC = uI;
7332
7332
  let yI = bI === "value" ? KC : Is(KC);
7333
- if (M.attrName = nI, M.attrValue = yI, M.keepAttr = !0, M.forceKeepAttr = void 0, xI(mI.uponSanitizeAttribute, B, M), yI = M.attrValue, RA && (nI === "id" || nI === "name") && nZ(yI, HA) !== 0 && (Ag(bI, B, P), yI = HA + yI), gg && hI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, yI)) {
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 && (Ag(bI, B, P), yI = yA + yI), gg && hI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, yI)) {
7334
7334
  Ag(bI, B, P);
7335
7335
  continue;
7336
7336
  }
7337
- if (nI === "attributename" && uZ(yI, "href")) {
7337
+ if (nI === "attributename" && nZ(yI, "href")) {
7338
7338
  Ag(bI, B, P);
7339
7339
  continue;
7340
7340
  }
@@ -7343,11 +7343,11 @@ function al() {
7343
7343
  Ag(bI, B, P);
7344
7344
  continue;
7345
7345
  }
7346
- if (!hA && hI(Xs, yI)) {
7346
+ if (!aA && hI(Xs, yI)) {
7347
7347
  Ag(bI, B, P);
7348
7348
  continue;
7349
7349
  }
7350
- if (PI && (yI = fg(yI)), !jA(v, nI, yI)) {
7350
+ if (PI && (yI = fg(yI)), !QA(v, nI, yI)) {
7351
7351
  Ag(bI, B, P);
7352
7352
  continue;
7353
7353
  }
@@ -7357,9 +7357,9 @@ function al() {
7357
7357
  xI(mI.afterSanitizeAttributes, B, null);
7358
7358
  }, $g = function(B) {
7359
7359
  let N = null;
7360
- const M = LA(B);
7360
+ const M = tA(B);
7361
7361
  for (xI(mI.beforeSanitizeShadowDOM, B, null); N = M.nextNode(); )
7362
- if (xI(mI.uponSanitizeShadowNode, N, null), xA(N, B), UA(N), Vg(N.content) && $g(N.content), p(N) === KI.element) {
7362
+ if (xI(mI.uponSanitizeShadowNode, N, null), jA(N, B), vA(N), Vg(N.content) && $g(N.content), p(N) === KI.element) {
7363
7363
  const T = k(N);
7364
7364
  Vg(T) && (MC(T), $g(T));
7365
7365
  }
@@ -7428,20 +7428,20 @@ function al() {
7428
7428
  throw Pg(F), nI;
7429
7429
  }
7430
7430
  } else if (ng(F))
7431
- N = eA("<!---->"), M = N.ownerDocument.importNode(F, !0), M.nodeType === KI.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? N = M : N.appendChild(M), MC(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), MC(M);
7432
7432
  else {
7433
7433
  if (!Wg && !PI && !Cg && // eslint-disable-next-line unicorn/prefer-includes
7434
7434
  F.indexOf("<") === -1)
7435
- return R && vg ? FI(F) : F;
7436
- if (N = eA(F), !N)
7435
+ return H && vg ? FI(F) : F;
7436
+ if (N = LA(F), !N)
7437
7437
  return Wg ? null : vg ? z : "";
7438
7438
  }
7439
7439
  N && XC && rI(N.firstChild);
7440
7440
  const bI = P ? F : N;
7441
7441
  try {
7442
- const uI = LA(bI);
7442
+ const uI = tA(bI);
7443
7443
  for (; T = uI.nextNode(); )
7444
- xA(T, bI), UA(T), Vg(T.content) && $g(T.content);
7444
+ jA(T, bI), vA(T), Vg(T.content) && $g(T.content);
7445
7445
  } catch (uI) {
7446
7446
  throw P && (Pg(F), lg(g.removed, (nI) => {
7447
7447
  nI.element && rg(nI.element);
@@ -7461,16 +7461,16 @@ function al() {
7461
7461
  }
7462
7462
  let BI = Cg ? N.outerHTML : N.innerHTML;
7463
7463
  return Cg && iI["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name && hI(ws, N.ownerDocument.doctype.name) && (BI = "<!DOCTYPE " + N.ownerDocument.doctype.name + `>
7464
- ` + BI), PI && (BI = fg(BI)), R && vg ? FI(BI) : BI;
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
  uC(F), NC = !0, jg = iI, Qg = WI;
7468
7468
  }, g.clearConfig = function() {
7469
- wg = null, NC = !1, jg = null, Qg = null, R = D, z = "";
7469
+ wg = null, NC = !1, jg = null, Qg = null, H = D, z = "";
7470
7470
  }, g.isValidAttribute = function(F, B, N) {
7471
7471
  wg || uC({});
7472
7472
  const M = YI(F), T = YI(B);
7473
- return jA(M, T, N);
7473
+ return QA(M, T, 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) {
@@ -7479,12 +7479,12 @@ function al() {
7479
7479
  const N = _Y(mI[F], B);
7480
7480
  return N === -1 ? void 0 : $Y(mI[F], N, 1)[0];
7481
7481
  }
7482
- return yZ(mI[F]);
7482
+ return uZ(mI[F]);
7483
7483
  }
7484
7484
  }, g.removeHooks = function(F) {
7485
7485
  MI(mI, F) && (mI[F] = []);
7486
7486
  }, g.removeAllHooks = function() {
7487
- mI = eZ();
7487
+ mI = LZ();
7488
7488
  }, g;
7489
7489
  }
7490
7490
  var LC = al();
@@ -7516,9 +7516,9 @@ function ys(I) {
7516
7516
  }), d = !0;
7517
7517
  else if (A[1] !== void 0) {
7518
7518
  const b = (A[1] || "text").trim() || "text", i = (A[2] || "").replace(/^\n/, "").replace(/\n$/, "");
7519
- LZ(g, b, i);
7519
+ tZ(g, b, i);
7520
7520
  } else
7521
- LZ(g, "text", (A[3] || "").trim());
7521
+ tZ(g, "text", (A[3] || "").trim());
7522
7522
  Z = A.index + A[0].length;
7523
7523
  }
7524
7524
  const l = I.slice(Z);
@@ -7526,7 +7526,7 @@ function ys(I) {
7526
7526
  const c = g.filter((G, b) => G.type !== "text" || G.content.trim() ? !0 : b > 0 && b < g.length - 1);
7527
7527
  return c.length ? c : [{ type: "text", content: I }];
7528
7528
  }
7529
- function LZ(I, g, C) {
7529
+ function tZ(I, g, C) {
7530
7530
  if (g.startsWith("artifact:")) {
7531
7531
  const Z = g.slice(9);
7532
7532
  I.push({ type: "artifact", content: C, language: Z, artifactType: Z });
@@ -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 = n(() => ys(g.content || "").map(Z));
7548
+ const g = I, C = u(() => 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 {
@@ -7578,7 +7578,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7578
7578
  innerHTML: $(us)(i.content)
7579
7579
  }, null, 8, Ms)) : i.type === "artifact" ? (m(), W("div", {
7580
7580
  key: 1,
7581
- class: u(["apf-artifact-card", { "apf-json": i.isJson }])
7581
+ class: n(["apf-artifact-card", { "apf-json": i.isJson }])
7582
7582
  }, [
7583
7583
  Y("div", Ks, [
7584
7584
  Y("span", Ss, "工件 · " + h(d(i)), 1),
@@ -7641,7 +7641,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7641
7641
  ])
7642
7642
  ], 2)) : (m(), W("div", {
7643
7643
  key: 2,
7644
- class: u(["apf-code-wrap", { "apf-json": i.isJson }])
7644
+ class: n(["apf-code-wrap", { "apf-json": i.isJson }])
7645
7645
  }, [
7646
7646
  Y("div", zs, [
7647
7647
  Y("span", ks, h(d(i)), 1),
@@ -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 = n(() => C.attachments.filter(Rg)), d = n(() => C.attachments.filter((c) => !Rg(c)));
7722
+ const C = I, Z = g, A = u(() => C.attachments.filter(Rg)), d = u(() => C.attachments.filter((c) => !Rg(c)));
7723
7723
  function l(c) {
7724
7724
  Z("preview", c);
7725
7725
  }
@@ -7728,7 +7728,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7728
7728
  return (b = I.attachments) != null && b.length ? (m(), W("div", Qs, [
7729
7729
  A.value.length ? (m(), W("div", {
7730
7730
  key: 0,
7731
- class: u(["apf-image-grid", { "apf-multi": A.value.length > 1 }])
7731
+ class: n(["apf-image-grid", { "apf-multi": A.value.length > 1 }])
7732
7732
  }, [
7733
7733
  (m(!0), W(Q, null, q(A.value, (i) => (m(), W("button", {
7734
7734
  key: i.id,
@@ -7743,33 +7743,33 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7743
7743
  loading: "lazy"
7744
7744
  }, null, 8, vs)
7745
7745
  ], 8, Us))), 128))
7746
- ], 2)) : H("", !0),
7746
+ ], 2)) : R("", !0),
7747
7747
  (m(!0), W(Q, null, q(d.value, (i) => (m(), W("button", {
7748
7748
  key: i.id,
7749
7749
  type: "button",
7750
7750
  class: "apf-att-file",
7751
- "aria-label": `${$(Lg)(i) ? "预览" : $(WZ)(i) ? "查看" : "打开"} ${i.filename}`,
7751
+ "aria-label": `${$(Lg)(i) ? "预览" : $(BZ)(i) ? "查看" : "打开"} ${i.filename}`,
7752
7752
  onClick: (w) => l(i)
7753
7753
  }, [
7754
- Y("span", Es, h($(lA)(i)), 1),
7754
+ Y("span", Es, h($(dA)(i)), 1),
7755
7755
  Y("span", Ps, [
7756
7756
  Y("strong", null, h(i.filename), 1),
7757
7757
  Y("small", null, [
7758
7758
  i.size ? (m(), W(Q, { key: 0 }, [
7759
- gI(h($(dA)(i.size)), 1)
7760
- ], 64)) : H("", !0),
7759
+ gI(h($(GA)(i.size)), 1)
7760
+ ], 64)) : R("", !0),
7761
7761
  $(Lg)(i) ? (m(), W(Q, { key: 1 }, [
7762
7762
  gI(" · 点击预览")
7763
- ], 64)) : $(WZ)(i) ? (m(), W(Q, { key: 2 }, [
7763
+ ], 64)) : $(BZ)(i) ? (m(), W(Q, { key: 2 }, [
7764
7764
  gI(" · 点击查看")
7765
7765
  ], 64)) : (m(), W(Q, { key: 3 }, [
7766
7766
  gI(" · 点击打开")
7767
7767
  ], 64))
7768
7768
  ]),
7769
- i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) : H("", !0)
7769
+ i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) : R("", !0)
7770
7770
  ])
7771
7771
  ], 8, Os))), 128))
7772
- ])) : H("", !0);
7772
+ ])) : R("", !0);
7773
7773
  };
7774
7774
  }
7775
7775
  }), qs = /* @__PURE__ */ U(fs, [["__scopeId", "data-v-a604161c"]]), _s = {
@@ -7812,7 +7812,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7812
7812
  return (b = I.summaries) != null && b.length ? (m(), W("div", _s, [
7813
7813
  (m(!0), W(Q, null, q(I.summaries, (i) => (m(), W("article", {
7814
7814
  key: i.documentId,
7815
- class: u(["apf-doc-card", { "apf-clickable": l(i) }]),
7815
+ class: n(["apf-doc-card", { "apf-clickable": l(i) }]),
7816
7816
  role: l(i) ? "button" : void 0,
7817
7817
  tabindex: l(i) ? 0 : void 0,
7818
7818
  "aria-label": l(i) ? `预览 ${i.filename}` : void 0,
@@ -7850,11 +7850,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7850
7850
  Y("div", I2, [
7851
7851
  Y("strong", g2, h(i.filename), 1),
7852
7852
  Y("p", C2, h(i.summary), 1),
7853
- i.pageCount ? (m(), W("span", A2, h(i.pageCount) + " 页", 1)) : H("", !0),
7854
- l(i) ? H("", !0) : (m(), W("span", Z2, "无对应附件,请从附件列表打开"))
7853
+ i.pageCount ? (m(), W("span", A2, h(i.pageCount) + " 页", 1)) : R("", !0),
7854
+ l(i) ? R("", !0) : (m(), W("span", Z2, "无对应附件,请从附件列表打开"))
7855
7855
  ])
7856
7856
  ], 42, $s))), 128))
7857
- ])) : H("", !0);
7857
+ ])) : R("", !0);
7858
7858
  };
7859
7859
  }
7860
7860
  }), d2 = /* @__PURE__ */ U(l2, [["__scopeId", "data-v-a91771a4"]]), G2 = ["aria-label"], c2 = { class: "apf-preview-head" }, b2 = { class: "apf-preview-title" }, m2 = { class: "apf-preview-actions" }, i2 = ["href"], W2 = ["src", "alt"], B2 = {
@@ -7869,7 +7869,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7869
7869
  }, w2 = { class: "apf-degraded-content" }, V2 = { class: "apf-degraded-badge" }, N2 = { class: "apf-degraded-filename" }, X2 = {
7870
7870
  key: 0,
7871
7871
  class: "apf-degraded-size"
7872
- }, o2 = { class: "apf-degraded-actions" }, h2 = ["href"], a2 = 0.5, R2 = 3, tZ = 0.25, H2 = /* @__PURE__ */ j({
7872
+ }, o2 = { class: "apf-degraded-actions" }, h2 = ["href"], a2 = 0.5, R2 = 3, TZ = 0.25, H2 = /* @__PURE__ */ j({
7873
7873
  __name: "AttachmentPreviewModal",
7874
7874
  props: {
7875
7875
  modelValue: { type: Boolean },
@@ -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 = n({
7881
+ const C = I, Z = g, A = u({
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 = n(() => C.attachment ? Rg(C.attachment) : !1), c = n(() => C.attachment ? Lg(C.attachment) : !1), G = n(() => {
7888
+ const l = u(() => C.attachment ? Rg(C.attachment) : !1), c = u(() => C.attachment ? Lg(C.attachment) : !1), G = u(() => {
7889
7889
  var f;
7890
7890
  return ((f = C.gallery) != null && f.length ? C.gallery : C.attachment ? [C.attachment] : []).filter(Rg);
7891
- }), b = n(() => !G.value.length || !C.attachment ? -1 : G.value.findIndex((D) => {
7891
+ }), b = u(() => !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 = n(() => b.value > 0), w = n(
7894
+ })), i = u(() => b.value > 0), w = u(
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() {
@@ -7908,10 +7908,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7908
7908
  D && Z("update:attachment", D);
7909
7909
  }
7910
7910
  function L() {
7911
- s.value = Math.min(R2, +(s.value + tZ).toFixed(2));
7911
+ s.value = Math.min(R2, +(s.value + TZ).toFixed(2));
7912
7912
  }
7913
7913
  function K() {
7914
- s.value = Math.max(a2, +(s.value - tZ).toFixed(2));
7914
+ s.value = Math.max(a2, +(s.value - TZ).toFixed(2));
7915
7915
  }
7916
7916
  function e() {
7917
7917
  s.value = 1;
@@ -7980,13 +7980,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7980
7980
  function J(D) {
7981
7981
  D.target === D.currentTarget && o();
7982
7982
  }
7983
- function R(D) {
7983
+ function H(D) {
7984
7984
  D.stopPropagation();
7985
7985
  }
7986
7986
  function z(D) {
7987
7987
  l.value && (D.preventDefault(), D.deltaY < 0 ? L() : K());
7988
7988
  }
7989
- return (D, f) => (m(), x(QZ, { to: "body" }, [
7989
+ return (D, f) => (m(), x(UZ, { to: "body" }, [
7990
7990
  A.value && I.attachment ? (m(), W("div", {
7991
7991
  key: 0,
7992
7992
  class: "apf-preview-mask",
@@ -7998,12 +7998,12 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
7998
7998
  Y("div", {
7999
7999
  ref_key: "panelRef",
8000
8000
  ref: a,
8001
- class: u(["apf-preview-panel", {
8001
+ class: n(["apf-preview-panel", {
8002
8002
  "apf-preview-image": l.value,
8003
8003
  "apf-preview-pdf": c.value,
8004
8004
  "apf-preview-degraded": !l.value && !c.value
8005
8005
  }]),
8006
- onClick: R
8006
+ onClick: H
8007
8007
  }, [
8008
8008
  Y("header", c2, [
8009
8009
  Y("strong", b2, h(I.attachment.filename), 1),
@@ -8027,20 +8027,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8027
8027
  "aria-label": "放大",
8028
8028
  onClick: L
8029
8029
  }, "+")
8030
- ], 64)) : H("", !0),
8030
+ ], 64)) : R("", !0),
8031
8031
  d(I.attachment) ? (m(), W("a", {
8032
8032
  key: 1,
8033
8033
  href: d(I.attachment),
8034
8034
  target: "_blank",
8035
8035
  rel: "noopener",
8036
8036
  class: "apf-preview-action-btn"
8037
- }, h(c.value ? "新窗口打开" : l.value ? "打开原图" : "打开原文件"), 9, i2)) : H("", !0),
8037
+ }, h(c.value ? "新窗口打开" : l.value ? "打开原图" : "打开原文件"), 9, i2)) : R("", !0),
8038
8038
  d(I.attachment) ? (m(), W("button", {
8039
8039
  key: 2,
8040
8040
  type: "button",
8041
8041
  class: "apf-preview-action-btn",
8042
8042
  onClick: f[0] || (f[0] = (ZI) => y(I.attachment))
8043
- }, " 下载 ")) : H("", !0),
8043
+ }, " 下载 ")) : R("", !0),
8044
8044
  Y("button", {
8045
8045
  ref_key: "closeBtnRef",
8046
8046
  ref: V,
@@ -8062,34 +8062,34 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8062
8062
  class: "apf-gallery-btn apf-gallery-prev",
8063
8063
  "aria-label": "上一张图片",
8064
8064
  onClick: S
8065
- }, " ‹ ")) : H("", !0),
8065
+ }, " ‹ ")) : R("", !0),
8066
8066
  d(I.attachment) ? (m(), W("img", {
8067
8067
  key: 1,
8068
8068
  src: d(I.attachment),
8069
8069
  alt: I.attachment.filename,
8070
8070
  class: "apf-preview-img",
8071
8071
  style: dI({ transform: `scale(${s.value})` })
8072
- }, null, 12, W2)) : H("", !0),
8072
+ }, null, 12, W2)) : R("", !0),
8073
8073
  w.value ? (m(), W("button", {
8074
8074
  key: 2,
8075
8075
  type: "button",
8076
8076
  class: "apf-gallery-btn apf-gallery-next",
8077
8077
  "aria-label": "下一张图片",
8078
8078
  onClick: k
8079
- }, " › ")) : H("", !0),
8080
- G.value.length > 1 ? (m(), W("div", B2, h(b.value + 1) + " / " + h(G.value.length), 1)) : H("", !0)
8079
+ }, " › ")) : R("", !0),
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
8082
  d(I.attachment) ? (m(), x(cl, {
8083
8083
  key: 0,
8084
8084
  url: d(I.attachment),
8085
8085
  title: I.attachment.filename,
8086
8086
  "min-height": "70vh"
8087
- }, null, 8, ["url", "title"])) : H("", !0)
8087
+ }, null, 8, ["url", "title"])) : R("", !0)
8088
8088
  ])) : (m(), W("div", s2, [
8089
8089
  Y("div", w2, [
8090
- Y("span", V2, h($(lA)(I.attachment)), 1),
8090
+ Y("span", V2, h($(dA)(I.attachment)), 1),
8091
8091
  Y("strong", N2, h(I.attachment.filename), 1),
8092
- I.attachment.size ? (m(), W("p", X2, h($(dA)(I.attachment.size)), 1)) : H("", !0),
8092
+ I.attachment.size ? (m(), W("p", X2, h($(GA)(I.attachment.size)), 1)) : R("", !0),
8093
8093
  f[2] || (f[2] = Y("p", { class: "apf-degraded-hint" }, "此格式暂不支持应用内预览", -1)),
8094
8094
  Y("div", o2, [
8095
8095
  d(I.attachment) ? (m(), W("a", {
@@ -8098,18 +8098,18 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8098
8098
  target: "_blank",
8099
8099
  rel: "noopener",
8100
8100
  class: "apf-preview-action-btn apf-preview-action-primary"
8101
- }, " 打开原文件 ", 8, h2)) : H("", !0),
8101
+ }, " 打开原文件 ", 8, h2)) : R("", !0),
8102
8102
  d(I.attachment) ? (m(), W("button", {
8103
8103
  key: 1,
8104
8104
  type: "button",
8105
8105
  class: "apf-preview-action-btn apf-preview-action-primary",
8106
8106
  onClick: f[1] || (f[1] = (ZI) => y(I.attachment))
8107
- }, " 下载 ")) : H("", !0)
8107
+ }, " 下载 ")) : R("", !0)
8108
8108
  ])
8109
8109
  ])
8110
8110
  ]))
8111
8111
  ], 2)
8112
- ], 8, G2)) : H("", !0)
8112
+ ], 8, G2)) : R("", !0)
8113
8113
  ]));
8114
8114
  }
8115
8115
  }), y2 = /* @__PURE__ */ U(H2, [["__scopeId", "data-v-13cf1e3e"]]), u2 = { class: "apf-bubble-wrap" }, n2 = {
@@ -8159,7 +8159,7 @@ 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 = rZ(), d = n(() => !!(A.content || A.default)), l = t(!1), c = t(null), G = n(() => {
8162
+ const C = I, Z = g, A = IA(), d = u(() => !!(A.content || A.default)), l = t(!1), c = t(null), G = u(() => {
8163
8163
  var oI, HI;
8164
8164
  const E = [...C.message.attachments || []];
8165
8165
  if (!((oI = C.sessionMessages) != null && oI.length)) return E;
@@ -8174,11 +8174,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8174
8174
  }
8175
8175
  }
8176
8176
  return E;
8177
- }), b = n(() => G.value.filter(Rg));
8177
+ }), b = u(() => 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 = n(() => C.message.role === "user"), s = n(() => C.message.role === "assistant");
8181
+ const w = u(() => C.message.role === "user"), s = u(() => C.message.role === "assistant");
8182
8182
  function a(E) {
8183
8183
  return {
8184
8184
  PENDING: "排队中",
@@ -8201,7 +8201,7 @@ 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 = n(() => {
8204
+ ], o = u(() => {
8205
8205
  var r, oI;
8206
8206
  if (C.message.status !== "WAITING_INPUT") return null;
8207
8207
  const E = (r = C.run) == null ? void 0 : r.waiting;
@@ -8210,17 +8210,17 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
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 = n(() => C.message.content || ""), k = n(
8213
+ }), S = u(() => C.message.content || ""), k = u(
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 = n(
8218
+ ), L = u(
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 = n(() => w.value ? "apf-user" : C.message.status === "WAITING_INPUT" ? "apf-waiting" : C.message.status === "FAILED" ? "apf-failed" : ""), e = t("");
8223
+ ), K = u(() => w.value ? "apf-user" : C.message.status === "WAITING_INPUT" ? "apf-waiting" : C.message.status === "FAILED" ? "apf-failed" : ""), e = t("");
8224
8224
  function y(E) {
8225
8225
  Z("resume", E, e.value || void 0), e.value = "";
8226
8226
  }
@@ -8235,10 +8235,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8235
8235
  const r = new Blob([E], { type: "text/markdown;charset=utf-8" }), oI = URL.createObjectURL(r), HI = document.createElement("a");
8236
8236
  HI.href = oI, HI.download = "reply.md", HI.click(), URL.revokeObjectURL(oI);
8237
8237
  }
8238
- function R(E) {
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 = n(
8241
+ const z = t(!1), D = t(!1), f = t(!1), ZI = u(
8242
8242
  () => s.value && C.message.status === "RUNNING" && !!C.message.thinking
8243
8243
  );
8244
8244
  NI(
@@ -8268,15 +8268,15 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8268
8268
  return (E, r) => {
8269
8269
  var oI, HI, pI, OI, Ig;
8270
8270
  return m(), W("div", {
8271
- class: u(["apf-message", [I.message.role, I.message.status && s.value ? `apf-st-${I.message.status}` : ""]])
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(), x(vZ(I.brandMark), {
8273
+ s.value && I.brandMark ? (m(), x(OZ(I.brandMark), {
8274
8274
  key: 0,
8275
8275
  variant: "ai",
8276
8276
  size: "sm"
8277
- })) : H("", !0),
8277
+ })) : R("", !0),
8278
8278
  Y("div", u2, [
8279
- !d.value && s.value && I.message.tip ? (m(), W("p", n2, h(I.message.tip), 1)) : H("", !0),
8279
+ !d.value && s.value && I.message.tip ? (m(), W("p", n2, h(I.message.tip), 1)) : R("", !0),
8280
8280
  k.value ? (m(), W("div", M2, [...r[4] || (r[4] = [
8281
8281
  Y("span", { class: "apf-status-text" }, "正在处理", -1),
8282
8282
  Y("span", { class: "apf-dots" }, [
@@ -8286,19 +8286,19 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8286
8286
  ], -1)
8287
8287
  ])])) : L.value ? (m(), W("div", K2, [
8288
8288
  Y("div", {
8289
- class: u(["apf-bubble apf-message-content", K.value])
8289
+ class: n(["apf-bubble apf-message-content", K.value])
8290
8290
  }, [
8291
8291
  !d.value && ((oI = I.message.attachments) != null && oI.length) ? (m(), x(qs, {
8292
8292
  key: 0,
8293
8293
  attachments: I.message.attachments,
8294
8294
  onPreview: i
8295
- }, null, 8, ["attachments"])) : H("", !0),
8296
- AI(E.$slots, "content", {}, () => [
8297
- AI(E.$slots, "default", {}, () => [
8295
+ }, null, 8, ["attachments"])) : R("", !0),
8296
+ CI(E.$slots, "content", {}, () => [
8297
+ CI(E.$slots, "default", {}, () => [
8298
8298
  S.value ? (m(), x(js, {
8299
8299
  key: 0,
8300
8300
  content: S.value
8301
- }, null, 8, ["content"])) : H("", !0)
8301
+ }, null, 8, ["content"])) : R("", !0)
8302
8302
  ], !0)
8303
8303
  ], !0),
8304
8304
  !d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(), x(d2, {
@@ -8306,8 +8306,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8306
8306
  summaries: I.message.documentSummaries,
8307
8307
  attachments: G.value,
8308
8308
  onPreview: i
8309
- }, null, 8, ["summaries", "attachments"])) : H("", !0),
8310
- !d.value && s.value && I.message.status === "RUNNING" && S.value ? (m(), W("p", S2, "仍在处理…")) : H("", !0)
8309
+ }, null, 8, ["summaries", "attachments"])) : R("", !0),
8310
+ !d.value && s.value && I.message.status === "RUNNING" && S.value ? (m(), W("p", S2, "仍在处理…")) : R("", !0)
8311
8311
  ], 2),
8312
8312
  !d.value && s.value && I.message.status === "COMPLETED" ? (m(), W("div", D2, [
8313
8313
  Y("button", {
@@ -8366,8 +8366,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8366
8366
  class: "apf-text-link",
8367
8367
  type: "button",
8368
8368
  onClick: r[0] || (r[0] = (sI) => Z("open-process"))
8369
- }, "处理信息")) : H("", !0)
8370
- ])) : H("", !0),
8369
+ }, "处理信息")) : R("", !0)
8370
+ ])) : R("", !0),
8371
8371
  !d.value && s.value && I.message.status === "FAILED" ? (m(), W("div", F2, [
8372
8372
  Y("button", {
8373
8373
  class: "apf-icon-btn",
@@ -8404,9 +8404,9 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8404
8404
  })
8405
8405
  ], -1)
8406
8406
  ])])
8407
- ])) : H("", !0)
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, "已取消")) : H("", !0),
8409
- d.value ? H("", !0) : (m(), x(y2, {
8407
+ ])) : R("", !0)
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(), x(y2, {
8410
8410
  key: 6,
8411
8411
  modelValue: l.value,
8412
8412
  "onUpdate:modelValue": r[2] || (r[2] = (sI) => l.value = sI),
@@ -8416,7 +8416,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8416
8416
  }, null, 8, ["modelValue", "attachment", "gallery"])),
8417
8417
  !d.value && s.value && ((OI = I.message.thinking) != null && OI.trim()) ? (m(), W("div", {
8418
8418
  key: 7,
8419
- class: u(["apf-detail-block", { open: z.value, streaming: ZI.value }])
8419
+ class: n(["apf-detail-block", { open: z.value, streaming: ZI.value }])
8420
8420
  }, [
8421
8421
  Y("button", {
8422
8422
  type: "button",
@@ -8426,19 +8426,19 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8426
8426
  }, [
8427
8427
  r[8] || (r[8] = Y("span", { class: "apf-chevron" }, null, -1)),
8428
8428
  r[9] || (r[9] = Y("span", null, "思考过程", -1)),
8429
- ZI.value ? (m(), W("span", e2)) : H("", !0)
8429
+ ZI.value ? (m(), W("span", e2)) : R("", !0)
8430
8430
  ], 8, k2),
8431
8431
  Y("div", L2, [
8432
8432
  Y("div", t2, [
8433
8433
  Y("div", {
8434
- class: u(["apf-detail-content", { streaming: ZI.value }])
8434
+ class: n(["apf-detail-content", { streaming: ZI.value }])
8435
8435
  }, h(I.message.thinking), 3)
8436
8436
  ])
8437
8437
  ])
8438
- ], 2)) : H("", !0),
8438
+ ], 2)) : R("", !0),
8439
8439
  !d.value && s.value && ((Ig = I.message.toolCalls) != null && Ig.length) ? (m(), W("div", {
8440
8440
  key: 8,
8441
- class: u(["apf-detail-block", { open: f.value }])
8441
+ class: n(["apf-detail-block", { open: f.value }])
8442
8442
  }, [
8443
8443
  Y("button", {
8444
8444
  type: "button",
@@ -8457,43 +8457,43 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8457
8457
  }, [
8458
8458
  Y("strong", null, h(sI.name), 1),
8459
8459
  Y("span", {
8460
- class: u({ "apf-err": !!sI.error })
8461
- }, h(R(sI)), 3)
8460
+ class: n({ "apf-err": !!sI.error })
8461
+ }, h(H(sI)), 3)
8462
8462
  ]))), 128))
8463
8463
  ])
8464
8464
  ])
8465
- ], 2)) : H("", !0),
8466
- d.value ? H("", !0) : (m(), W(Q, { key: 9 }, [
8465
+ ], 2)) : R("", !0),
8466
+ d.value ? R("", !0) : (m(), W(Q, { key: 9 }, [
8467
8467
  s.value && I.message.status !== "COMPLETED" && I.message.status !== "CANCELLED" ? (m(), W("span", {
8468
8468
  key: 0,
8469
- class: u(["apf-chip", V(I.message.status)])
8469
+ class: n(["apf-chip", V(I.message.status)])
8470
8470
  }, [
8471
8471
  r[11] || (r[11] = Y("i", null, null, -1)),
8472
8472
  gI(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
  gI("已完成", -1)
8476
- ])])) : H("", !0)
8476
+ ])])) : R("", !0)
8477
8477
  ], 64)),
8478
8478
  !d.value && o.value ? (m(), W("div", {
8479
8479
  key: 10,
8480
- class: u(["apf-inline-approval", { "apf-dangerous-approval": o.value.dangerous }])
8480
+ class: n(["apf-inline-approval", { "apf-dangerous-approval": o.value.dangerous }])
8481
8481
  }, [
8482
8482
  Y("div", U2, [
8483
8483
  r[13] || (r[13] = Y("span", { class: "apf-approval-title" }, "需要你的确认", -1)),
8484
- o.value.dangerous ? (m(), W("span", v2, "需谨慎")) : H("", !0)
8484
+ o.value.dangerous ? (m(), W("span", v2, "需谨慎")) : R("", !0)
8485
8485
  ]),
8486
8486
  Y("p", O2, h(o.value.prompt), 1),
8487
8487
  Y("div", E2, [
8488
8488
  (m(!0), W(Q, null, q(o.value.actions, (sI) => (m(), W("button", {
8489
8489
  key: sI.action,
8490
8490
  type: "button",
8491
- class: u(["apf-approval-btn", sI.style === "danger" ? "apf-approval-btn-danger" : "apf-approval-btn-primary"]),
8491
+ class: n(["apf-approval-btn", sI.style === "danger" ? "apf-approval-btn-danger" : "apf-approval-btn-primary"]),
8492
8492
  disabled: I.sending,
8493
8493
  onClick: (mI) => y(sI.action)
8494
8494
  }, h(sI.label), 11, P2))), 128))
8495
8495
  ])
8496
- ], 2)) : H("", !0)
8496
+ ], 2)) : R("", !0)
8497
8497
  ])
8498
8498
  ], 2);
8499
8499
  };
@@ -8539,7 +8539,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8539
8539
  class: "apf-skeleton",
8540
8540
  style: { height: "var(--icon-size-sm, 14px)", width: "45%", "margin-top": "var(--spacing-sm, 8px)" }
8541
8541
  }, null, -1)
8542
- ])])) : H("", !0),
8542
+ ])])) : R("", !0),
8543
8543
  (m(!0), W(Q, null, q(I.messages, (G) => (m(), x(f2, {
8544
8544
  key: G.id,
8545
8545
  message: G,
@@ -8555,7 +8555,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8555
8555
  }, null, 8, ["message", "run", "sending", "brand-mark", "session-messages", "onOpenProcess"]))), 128))
8556
8556
  ], 512));
8557
8557
  }
8558
- }), iN = /* @__PURE__ */ U(_2, [["__scopeId", "data-v-0957f79a"]]), $2 = {
8558
+ }), WN = /* @__PURE__ */ U(_2, [["__scopeId", "data-v-0957f79a"]]), $2 = {
8559
8559
  key: 0,
8560
8560
  class: "apf-pending-list"
8561
8561
  }, Iw = ["src"], gw = { class: "apf-pending-name" }, Cw = {
@@ -8590,32 +8590,32 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8590
8590
  },
8591
8591
  emits: ["send", "upload", "remove-attachment", "ws-click"],
8592
8592
  setup(I, { emit: g }) {
8593
- const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = rZ(), i = n(() => C.supportedInputs || ["text"]), w = n(() => i.value.some((p) => p === "file" || p === "image" || p === "document")), s = n(() => !!b.input), a = n(() => !C.hideDefaultInput && !s.value), V = n(() => !C.hideSend), X = n(() => w.value && !C.hideFileButton), o = n(() => {
8593
+ const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = IA(), i = u(() => C.supportedInputs || ["text"]), w = u(() => i.value.some((p) => p === "file" || p === "image" || p === "document")), s = u(() => !!b.input), a = u(() => !C.hideDefaultInput && !s.value), V = u(() => !C.hideSend), X = u(() => w.value && !C.hideFileButton), o = u(() => {
8594
8594
  if (C.disabled || G.value) return !1;
8595
- const p = !!A.value.trim(), J = c.value.some((z) => z.status === "done"), R = c.value.some((z) => z.status === "uploading");
8596
- return (p || J) && !R;
8595
+ const p = !!A.value.trim(), J = c.value.some((z) => z.status === "done"), H = c.value.some((z) => z.status === "uploading");
8596
+ return (p || J) && !H;
8597
8597
  });
8598
8598
  function S() {
8599
8599
  var p;
8600
8600
  C.disabled || !w.value || (p = l.value) == null || p.click();
8601
8601
  }
8602
8602
  function k(p) {
8603
- const J = p.target, R = J.files;
8604
- if (R != null && R.length) {
8605
- for (const z of Array.from(R))
8603
+ const J = p.target, H = J.files;
8604
+ if (H != null && H.length) {
8605
+ for (const z of Array.from(H))
8606
8606
  Z("upload", z);
8607
8607
  J.value = "";
8608
8608
  }
8609
8609
  }
8610
8610
  function L(p) {
8611
- const J = c.value.find((R) => R.id === p);
8612
- J != null && J.previewUrl && URL.revokeObjectURL(J.previewUrl), c.value = c.value.filter((R) => R.id !== p), Z("remove-attachment", p);
8611
+ const J = c.value.find((H) => H.id === p);
8612
+ J != null && J.previewUrl && URL.revokeObjectURL(J.previewUrl), c.value = c.value.filter((H) => H.id !== p), Z("remove-attachment", p);
8613
8613
  }
8614
8614
  async function K() {
8615
8615
  if (!o.value) return;
8616
- const p = A.value.trim(), J = c.value.filter((R) => R.status === "done").map((R) => R.id);
8617
- Z("send", p, J), A.value = "", c.value.forEach((R) => {
8618
- R.previewUrl && URL.revokeObjectURL(R.previewUrl);
8616
+ const p = A.value.trim(), J = c.value.filter((H) => H.status === "done").map((H) => H.id);
8617
+ Z("send", p, J), A.value = "", c.value.forEach((H) => {
8618
+ H.previewUrl && URL.revokeObjectURL(H.previewUrl);
8619
8619
  }), c.value = [], await $I(), d.value && (d.value.style.height = "auto");
8620
8620
  }
8621
8621
  function e(p) {
@@ -8625,56 +8625,56 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8625
8625
  function y(p) {
8626
8626
  p.key === "Enter" && !p.shiftKey && (p.preventDefault(), K());
8627
8627
  }
8628
- return PZ(() => {
8628
+ return rZ(() => {
8629
8629
  c.value.forEach((p) => {
8630
8630
  p.previewUrl && URL.revokeObjectURL(p.previewUrl);
8631
8631
  });
8632
8632
  }), (p, J) => (m(), W("form", {
8633
- class: u(["apf-composer", { "apf-composer-stretch": I.stretch }]),
8633
+ class: n(["apf-composer", { "apf-composer-stretch": I.stretch }]),
8634
8634
  onSubmit: UI(K, ["prevent"])
8635
8635
  }, [
8636
8636
  Y("div", {
8637
- class: u(["apf-composer-field", { "apf-disabled": I.disabled }])
8637
+ class: n(["apf-composer-field", { "apf-disabled": I.disabled }])
8638
8638
  }, [
8639
- AI(p.$slots, "pending", {}, () => [
8639
+ CI(p.$slots, "pending", {}, () => [
8640
8640
  c.value.length ? (m(), W("div", $2, [
8641
- (m(!0), W(Q, null, q(c.value, (R) => (m(), W("div", {
8642
- key: R.id,
8643
- class: u(["apf-pending-chip", R.status])
8641
+ (m(!0), W(Q, null, q(c.value, (H) => (m(), W("div", {
8642
+ key: H.id,
8643
+ class: n(["apf-pending-chip", H.status])
8644
8644
  }, [
8645
- R.previewUrl ? (m(), W("img", {
8645
+ H.previewUrl ? (m(), W("img", {
8646
8646
  key: 0,
8647
- src: R.previewUrl,
8647
+ src: H.previewUrl,
8648
8648
  alt: "",
8649
8649
  class: "apf-pending-thumb"
8650
- }, null, 8, Iw)) : H("", !0),
8651
- Y("span", gw, h(R.filename), 1),
8652
- R.status === "uploading" ? (m(), W("span", Cw, "上传中")) : R.status === "error" ? (m(), W("span", Aw, h(R.error || "失败"), 1)) : H("", !0),
8650
+ }, null, 8, Iw)) : R("", !0),
8651
+ Y("span", gw, h(H.filename), 1),
8652
+ H.status === "uploading" ? (m(), W("span", Cw, "上传中")) : H.status === "error" ? (m(), W("span", Aw, h(H.error || "失败"), 1)) : R("", !0),
8653
8653
  Y("button", {
8654
8654
  type: "button",
8655
8655
  class: "apf-pending-remove",
8656
- onClick: (z) => L(R.id)
8656
+ onClick: (z) => L(H.id)
8657
8657
  }, "×", 8, Zw)
8658
8658
  ], 2))), 128))
8659
- ])) : H("", !0)
8659
+ ])) : R("", !0)
8660
8660
  ], !0),
8661
- AI(p.$slots, "input", {}, () => [
8661
+ CI(p.$slots, "input", {}, () => [
8662
8662
  a.value ? Gg((m(), W("textarea", {
8663
8663
  key: 0,
8664
8664
  ref_key: "textareaRef",
8665
8665
  ref: d,
8666
- "onUpdate:modelValue": J[0] || (J[0] = (R) => A.value = R),
8666
+ "onUpdate:modelValue": J[0] || (J[0] = (H) => A.value = H),
8667
8667
  placeholder: I.placeholder || "输入消息…",
8668
8668
  disabled: I.disabled,
8669
8669
  onInput: e,
8670
8670
  onKeydown: y
8671
8671
  }, null, 40, lw)), [
8672
8672
  [UC, A.value]
8673
- ]) : H("", !0)
8673
+ ]) : R("", !0)
8674
8674
  ], !0),
8675
8675
  Y("div", dw, [
8676
8676
  Y("div", Gw, [
8677
- AI(p.$slots, "tools", {}, void 0, !0),
8677
+ CI(p.$slots, "tools", {}, void 0, !0),
8678
8678
  Y("input", {
8679
8679
  ref_key: "fileInputRef",
8680
8680
  ref: l,
@@ -8706,40 +8706,40 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8706
8706
  "stroke-linejoin": "round"
8707
8707
  })
8708
8708
  ], -1)
8709
- ])], 8, cw)) : H("", !0)
8709
+ ])], 8, cw)) : R("", !0)
8710
8710
  ]),
8711
- AI(p.$slots, "actions", {}, () => [
8711
+ CI(p.$slots, "actions", {}, () => [
8712
8712
  V.value ? (m(), W("button", {
8713
8713
  key: 0,
8714
8714
  type: "submit",
8715
8715
  class: "apf-send-btn",
8716
8716
  disabled: !o.value,
8717
8717
  title: "发送"
8718
- }, "↗", 8, bw)) : H("", !0)
8718
+ }, "↗", 8, bw)) : R("", !0)
8719
8719
  ], !0)
8720
8720
  ])
8721
8721
  ], 2),
8722
- I.hideMeta ? H("", !0) : (m(), W("div", mw, [
8722
+ I.hideMeta ? R("", !0) : (m(), W("div", mw, [
8723
8723
  Y("div", iw, [
8724
8724
  J[3] || (J[3] = Y("span", { class: "apf-cap-chip" }, "文本", -1)),
8725
- w.value ? (m(), W("span", Ww, "文件")) : H("", !0),
8726
- I.hitlCapable ? (m(), W("span", Bw, "需要确认")) : H("", !0)
8725
+ w.value ? (m(), W("span", Ww, "文件")) : R("", !0),
8726
+ I.hitlCapable ? (m(), W("span", Bw, "需要确认")) : R("", !0)
8727
8727
  ]),
8728
8728
  Y("div", Yw, [
8729
8729
  I.wsStatus ? (m(), W("button", {
8730
8730
  key: 0,
8731
8731
  type: "button",
8732
- class: u(["apf-ws-status", I.wsStatus]),
8733
- onClick: J[1] || (J[1] = (R) => Z("ws-click"))
8732
+ class: n(["apf-ws-status", I.wsStatus]),
8733
+ onClick: J[1] || (J[1] = (H) => Z("ws-click"))
8734
8734
  }, [...J[4] || (J[4] = [
8735
8735
  Y("i", { class: "apf-ws-dot" }, null, -1)
8736
- ])], 2)) : H("", !0),
8736
+ ])], 2)) : R("", !0),
8737
8737
  J[5] || (J[5] = Y("small", { class: "apf-hint" }, "Enter 发送 · Shift+Enter 换行", -1))
8738
8738
  ])
8739
8739
  ]))
8740
8740
  ], 34));
8741
8741
  }
8742
- }), WN = /* @__PURE__ */ U(sw, [["__scopeId", "data-v-e996c32a"]]), ww = {
8742
+ }), BN = /* @__PURE__ */ U(sw, [["__scopeId", "data-v-e996c32a"]]), ww = {
8743
8743
  key: 0,
8744
8744
  class: "apf-run-bar"
8745
8745
  }, Vw = { class: "apf-row" }, Nw = {
@@ -8756,7 +8756,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8756
8756
  },
8757
8757
  emits: ["cancel"],
8758
8758
  setup(I, { emit: g }) {
8759
- const C = I, Z = g, A = n(() => {
8759
+ const C = I, Z = g, A = u(() => {
8760
8760
  var G;
8761
8761
  return ((G = C.run) == null ? void 0 : G.status) || null;
8762
8762
  });
@@ -8774,20 +8774,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8774
8774
  return (G, b) => I.run ? (m(), W("div", ww, [
8775
8775
  Y("div", Vw, [
8776
8776
  Y("span", {
8777
- class: u(["apf-chip", l(A.value || "")])
8777
+ class: n(["apf-chip", l(A.value || "")])
8778
8778
  }, [
8779
8779
  b[1] || (b[1] = Y("i", null, null, -1)),
8780
8780
  gI(h(d(A.value || "")), 1)
8781
8781
  ], 2),
8782
- A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) : H("", !0),
8782
+ A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) : R("", !0),
8783
8783
  A.value === "RUNNING" ? (m(), W("button", {
8784
8784
  key: 1,
8785
8785
  class: "apf-btn-cancel",
8786
8786
  onClick: b[0] || (b[0] = (i) => Z("cancel"))
8787
- }, "停止")) : H("", !0)
8787
+ }, "停止")) : R("", !0)
8788
8788
  ]),
8789
- I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) : H("", !0)
8790
- ])) : H("", !0);
8789
+ I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) : R("", !0)
8790
+ ])) : R("", !0);
8791
8791
  }
8792
8792
  }), hw = /* @__PURE__ */ U(ow, [["__scopeId", "data-v-33963f1d"]]), aw = { class: "apf-header" }, Rw = {
8793
8793
  key: 0,
@@ -8806,11 +8806,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8806
8806
  }
8807
8807
  return (d, l) => I.waiting ? (m(), W("div", {
8808
8808
  key: 0,
8809
- class: u(["apf-approval-card", { "apf-dangerous": I.waiting.dangerous }])
8809
+ class: n(["apf-approval-card", { "apf-dangerous": I.waiting.dangerous }])
8810
8810
  }, [
8811
8811
  Y("div", aw, [
8812
8812
  l[3] || (l[3] = Y("span", { class: "apf-title" }, "需要你的操作", -1)),
8813
- I.waiting.dangerous ? (m(), W("span", Rw, "危险操作")) : H("", !0)
8813
+ I.waiting.dangerous ? (m(), W("span", Rw, "危险操作")) : R("", !0)
8814
8814
  ]),
8815
8815
  Y("p", Hw, h(I.waiting.prompt), 1),
8816
8816
  (m(!0), W(Q, null, q(I.waiting.fields, (c) => (m(), W("div", {
@@ -8846,14 +8846,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8846
8846
  Y("div", Mw, [
8847
8847
  (m(!0), W(Q, null, q(I.waiting.actions, (c) => (m(), W("button", {
8848
8848
  key: c.action,
8849
- class: u(["apf-btn", c.style === "danger" ? "apf-btn-danger" : "apf-btn-primary"]),
8849
+ class: n(["apf-btn", c.style === "danger" ? "apf-btn-danger" : "apf-btn-primary"]),
8850
8850
  disabled: I.disabled,
8851
8851
  onClick: (G) => A(c.action)
8852
8852
  }, h(c.label), 11, Kw))), 128))
8853
8853
  ])
8854
- ], 2)) : H("", !0);
8854
+ ], 2)) : R("", !0);
8855
8855
  }
8856
- }), BN = /* @__PURE__ */ U(Sw, [["__scopeId", "data-v-ca69b479"]]), Dw = {
8856
+ }), YN = /* @__PURE__ */ U(Sw, [["__scopeId", "data-v-ca69b479"]]), Dw = {
8857
8857
  class: "apf-session-sidebar",
8858
8858
  "aria-label": "会话列表"
8859
8859
  }, Fw = { class: "apf-session-sidebar__head" }, pw = { class: "apf-session-sidebar__head-actions" }, Jw = {
@@ -8885,13 +8885,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8885
8885
  return G.setDate(G.getDate() - 1), d.getDate() === G.getDate() && d.getMonth() === G.getMonth() && d.getFullYear() === G.getFullYear() ? "昨天" : c < 6e4 ? "刚刚" : c < 36e5 ? `${Math.floor(c / 6e4)} 分钟前` : c < 864e5 ? `${Math.floor(c / 36e5)} 小时前` : d.toLocaleDateString("zh-CN", { month: "2-digit", day: "2-digit" });
8886
8886
  }
8887
8887
  return (A, d) => {
8888
- const l = _("el-button"), c = OZ("loading");
8888
+ const l = _("el-button"), c = EZ("loading");
8889
8889
  return m(), W("aside", Dw, [
8890
8890
  Y("div", Fw, [
8891
8891
  Y("strong", null, h(I.title || "会话"), 1),
8892
8892
  Y("div", pw, [
8893
- AI(A.$slots, "toolbar", {}, void 0, !0),
8894
- I.hideCreate ? H("", !0) : (m(), x(l, {
8893
+ CI(A.$slots, "toolbar", {}, void 0, !0),
8894
+ I.hideCreate ? R("", !0) : (m(), x(l, {
8895
8895
  key: 0,
8896
8896
  type: "primary",
8897
8897
  size: "small",
@@ -8905,18 +8905,18 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8905
8905
  ])
8906
8906
  ]),
8907
8907
  A.$slots["below-head"] ? (m(), W("div", Jw, [
8908
- AI(A.$slots, "below-head", {}, void 0, !0)
8909
- ])) : H("", !0),
8908
+ CI(A.$slots, "below-head", {}, void 0, !0)
8909
+ ])) : R("", !0),
8910
8910
  Gg((m(), W("div", zw, [
8911
8911
  (m(!0), W(Q, null, q(I.sessions, (G) => (m(), W("button", {
8912
8912
  key: G.id,
8913
8913
  type: "button",
8914
- class: u(["apf-session-sidebar__item", { "is-active": G.id === I.activeId }]),
8914
+ class: n(["apf-session-sidebar__item", { "is-active": G.id === I.activeId }]),
8915
8915
  onClick: (b) => C("select", G.id)
8916
8916
  }, [
8917
8917
  Y("span", ew, h(G.title || "未命名会话"), 1),
8918
8918
  Y("div", Lw, [
8919
- AI(A.$slots, "item-meta", { session: G }, () => [
8919
+ CI(A.$slots, "item-meta", { session: G }, () => [
8920
8920
  Y("small", null, h(Z(G.updatedAt || G.createdAt)), 1)
8921
8921
  ], !0)
8922
8922
  ]),
@@ -8925,8 +8925,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8925
8925
  onClick: d[1] || (d[1] = UI(() => {
8926
8926
  }, ["stop"]))
8927
8927
  }, [
8928
- AI(A.$slots, "item-actions", { session: G }, () => [
8929
- I.hideDelete ? H("", !0) : (m(), x(l, {
8928
+ CI(A.$slots, "item-actions", { session: G }, () => [
8929
+ I.hideDelete ? R("", !0) : (m(), x(l, {
8930
8930
  key: 0,
8931
8931
  class: "apf-session-sidebar__delete",
8932
8932
  link: "",
@@ -8942,14 +8942,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8942
8942
  ], !0)
8943
8943
  ])
8944
8944
  ], 10, kw))), 128)),
8945
- !I.loading && !I.sessions.length ? (m(), W("div", tw, h(I.emptyText || "暂无会话"), 1)) : H("", !0)
8945
+ !I.loading && !I.sessions.length ? (m(), W("div", tw, h(I.emptyText || "暂无会话"), 1)) : R("", !0)
8946
8946
  ])), [
8947
8947
  [c, I.loading]
8948
8948
  ])
8949
8949
  ]);
8950
8950
  };
8951
8951
  }
8952
- }), YN = /* @__PURE__ */ U(Tw, [["__scopeId", "data-v-b00284f7"]]), xw = {
8952
+ }), sN = /* @__PURE__ */ U(Tw, [["__scopeId", "data-v-b00284f7"]]), xw = {
8953
8953
  key: 0,
8954
8954
  class: "apf-processing-drawer__subtitle"
8955
8955
  }, jw = { class: "apf-processing-drawer__body" }, Qw = /* @__PURE__ */ j({
@@ -8974,71 +8974,84 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
8974
8974
  "onUpdate:modelValue": A[1] || (A[1] = (l) => C("update:modelValue", l))
8975
8975
  }, {
8976
8976
  default: O(() => [
8977
- I.subtitle ? (m(), W("p", xw, h(I.subtitle), 1)) : H("", !0),
8977
+ I.subtitle ? (m(), W("p", xw, h(I.subtitle), 1)) : R("", !0),
8978
8978
  I.run ? (m(), x($(hw), {
8979
8979
  key: 1,
8980
8980
  run: I.run,
8981
8981
  sending: I.sending ?? !1,
8982
8982
  onCancel: A[0] || (A[0] = (l) => C("cancel"))
8983
- }, null, 8, ["run", "sending"])) : H("", !0),
8983
+ }, null, 8, ["run", "sending"])) : R("", !0),
8984
8984
  Y("div", jw, [
8985
- AI(Z.$slots, "default", {}, void 0, !0)
8985
+ CI(Z.$slots, "default", {}, void 0, !0)
8986
8986
  ])
8987
8987
  ]),
8988
8988
  _: 3
8989
8989
  }, 8, ["model-value", "title"]);
8990
8990
  };
8991
8991
  }
8992
- }), sN = /* @__PURE__ */ U(Qw, [["__scopeId", "data-v-6036074a"]]), Uw = { class: "apf-conversation-header" }, vw = { class: "apf-conversation-header__identity" }, Ow = { class: "apf-conversation-header__copy" }, Ew = { class: "apf-conversation-header__label" }, Pw = { class: "apf-conversation-header__actions" }, rw = {
8992
+ }), wN = /* @__PURE__ */ U(Qw, [["__scopeId", "data-v-6036074a"]]), Uw = { class: "apf-conversation-header" }, vw = { class: "apf-conversation-header__identity" }, Ow = { class: "apf-conversation-header__copy" }, Ew = { class: "apf-conversation-header__meta-row" }, Pw = {
8993
+ key: 0,
8994
+ class: "apf-conversation-header__label"
8995
+ }, rw = { class: "apf-conversation-header__actions" }, fw = {
8993
8996
  key: 0,
8994
8997
  class: "apf-conversation-header__processing"
8995
- }, fw = /* @__PURE__ */ j({
8998
+ }, qw = /* @__PURE__ */ j({
8996
8999
  __name: "ConversationHeader",
8997
9000
  props: {
8998
9001
  title: {},
8999
9002
  label: {},
9000
9003
  hasMessages: { type: Boolean },
9001
- processing: { type: Boolean }
9004
+ processing: { type: Boolean },
9005
+ hideDefaultActions: { type: Boolean }
9002
9006
  },
9003
9007
  emits: ["changeAssistant", "toggleDetails", "create"],
9004
9008
  setup(I, { emit: g }) {
9005
- const C = g;
9006
- return (Z, A) => (m(), W("header", Uw, [
9009
+ const C = I, Z = g, A = IA(), d = u(() => !C.hideDefaultActions && !A.actions);
9010
+ return (l, c) => (m(), W("header", Uw, [
9007
9011
  Y("div", vw, [
9008
- Y("div", Ow, [
9009
- Y("span", Ew, h(I.label || "正在使用"), 1),
9010
- Y("strong", null, h(I.title || "选择一个智能体开始"), 1)
9011
- ])
9012
+ CI(l.$slots, "identity", {}, () => [
9013
+ Y("div", Ow, [
9014
+ Y("div", Ew, [
9015
+ I.label ? (m(), W("span", Pw, h(I.label), 1)) : R("", !0),
9016
+ CI(l.$slots, "meta", {}, void 0, !0)
9017
+ ]),
9018
+ Y("strong", null, h(I.title || "选择一个智能体开始"), 1)
9019
+ ])
9020
+ ], !0)
9012
9021
  ]),
9013
- Y("div", Pw, [
9014
- I.processing ? (m(), W("span", rw, [...A[2] || (A[2] = [
9022
+ Y("div", rw, [
9023
+ I.processing ? (m(), W("span", fw, [...c[2] || (c[2] = [
9015
9024
  Y("i", null, null, -1),
9016
9025
  Y("span", null, "正在处理", -1)
9017
- ])])) : H("", !0),
9018
- Y("button", {
9019
- type: "button",
9020
- class: "apf-conversation-header__btn",
9021
- onClick: A[0] || (A[0] = (d) => I.hasMessages ? C("create") : C("changeAssistant"))
9022
- }, h(I.hasMessages ? "新建对话" : "选择智能体"), 1),
9023
- I.hasMessages ? (m(), W("button", {
9024
- key: 1,
9025
- type: "button",
9026
- class: "apf-conversation-header__btn",
9027
- onClick: A[1] || (A[1] = (d) => C("toggleDetails"))
9028
- }, " 处理详情 ")) : H("", !0)
9026
+ ])])) : R("", !0),
9027
+ CI(l.$slots, "actions", {}, () => [
9028
+ d.value ? (m(), W(Q, { key: 0 }, [
9029
+ Y("button", {
9030
+ type: "button",
9031
+ class: "apf-conversation-header__btn",
9032
+ onClick: c[0] || (c[0] = (G) => I.hasMessages ? Z("create") : Z("changeAssistant"))
9033
+ }, h(I.hasMessages ? "新建对话" : "选择智能体"), 1),
9034
+ I.hasMessages ? (m(), W("button", {
9035
+ key: 0,
9036
+ type: "button",
9037
+ class: "apf-conversation-header__btn",
9038
+ onClick: c[1] || (c[1] = (G) => Z("toggleDetails"))
9039
+ }, " 处理详情 ")) : R("", !0)
9040
+ ], 64)) : R("", !0)
9041
+ ], !0)
9029
9042
  ])
9030
9043
  ]));
9031
9044
  }
9032
- }), wN = /* @__PURE__ */ U(fw, [["__scopeId", "data-v-d93df7f9"]]), qw = { class: "apf-assistant-picker" }, _w = {
9045
+ }), VN = /* @__PURE__ */ U(qw, [["__scopeId", "data-v-127a684e"]]), _w = { class: "apf-assistant-picker" }, $w = {
9033
9046
  key: 0,
9034
9047
  class: "apf-assistant-picker__state"
9035
- }, $w = {
9048
+ }, IV = {
9036
9049
  key: 1,
9037
9050
  class: "apf-assistant-picker__state apf-assistant-picker__state--error"
9038
- }, IV = {
9051
+ }, gV = {
9039
9052
  key: 2,
9040
9053
  class: "apf-assistant-picker__state"
9041
- }, gV = ["onClick"], CV = { class: "apf-assistant-picker__main" }, AV = { class: "apf-assistant-picker__icon-wrap" }, ZV = { class: "apf-assistant-picker__info" }, lV = { class: "apf-assistant-picker__caps" }, dV = /* @__PURE__ */ j({
9054
+ }, CV = ["onClick"], AV = { class: "apf-assistant-picker__main" }, ZV = { class: "apf-assistant-picker__icon-wrap" }, lV = { class: "apf-assistant-picker__info" }, dV = { class: "apf-assistant-picker__caps" }, GV = /* @__PURE__ */ j({
9042
9055
  __name: "AssistantPicker",
9043
9056
  props: {
9044
9057
  items: {},
@@ -9060,46 +9073,46 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
9060
9073
  function l(G) {
9061
9074
  Z("update:modelValue", G.id), Z("select", G);
9062
9075
  }
9063
- const c = n(() => !C.loading && !C.error && !C.items.length);
9064
- return (G, b) => (m(), W("div", qw, [
9065
- I.loading ? (m(), W("div", _w, [...b[0] || (b[0] = [
9076
+ const c = u(() => !C.loading && !C.error && !C.items.length);
9077
+ return (G, b) => (m(), W("div", _w, [
9078
+ I.loading ? (m(), W("div", $w, [...b[0] || (b[0] = [
9066
9079
  Y("p", null, "正在加载智能体…", -1)
9067
- ])])) : I.error ? (m(), W("div", $w, [
9080
+ ])])) : I.error ? (m(), W("div", IV, [
9068
9081
  Y("p", null, h(I.error), 1)
9069
- ])) : c.value ? (m(), W("div", IV, [...b[1] || (b[1] = [
9082
+ ])) : c.value ? (m(), W("div", gV, [...b[1] || (b[1] = [
9070
9083
  Y("p", null, "暂无可用智能体", -1)
9071
- ])])) : H("", !0),
9084
+ ])])) : R("", !0),
9072
9085
  (m(!0), W(Q, null, q(I.items, (i) => (m(), W("button", {
9073
9086
  key: i.id,
9074
9087
  type: "button",
9075
- class: u(["apf-assistant-picker__item", { "is-active": I.modelValue === i.id }]),
9088
+ class: n(["apf-assistant-picker__item", { "is-active": I.modelValue === i.id }]),
9076
9089
  onClick: (w) => l(i)
9077
9090
  }, [
9078
- Y("div", CV, [
9079
- Y("span", AV, [
9091
+ Y("div", AV, [
9092
+ Y("span", ZV, [
9080
9093
  II($(RI), {
9081
9094
  name: d(i),
9082
9095
  size: 22
9083
9096
  }, null, 8, ["name"])
9084
9097
  ]),
9085
- Y("span", ZV, [
9098
+ Y("span", lV, [
9086
9099
  Y("b", null, h(i.name), 1),
9087
9100
  Y("small", null, h(i.description || "适合处理一类明确任务"), 1),
9088
- Y("span", lV, [
9101
+ Y("span", dV, [
9089
9102
  (m(!0), W(Q, null, q(A(i), (w) => (m(), W("span", {
9090
9103
  key: w,
9091
- class: u(["apf-assistant-picker__cap", { "is-confirm": w === "需要确认" }])
9104
+ class: n(["apf-assistant-picker__cap", { "is-confirm": w === "需要确认" }])
9092
9105
  }, h(w), 3))), 128))
9093
9106
  ])
9094
9107
  ])
9095
9108
  ]),
9096
9109
  Y("span", {
9097
- class: u(["apf-assistant-picker__choose", { "is-selected": I.modelValue === i.id }])
9110
+ class: n(["apf-assistant-picker__choose", { "is-selected": I.modelValue === i.id }])
9098
9111
  }, h(I.modelValue === i.id ? "已选择" : "开始使用"), 3)
9099
- ], 10, gV))), 128))
9112
+ ], 10, CV))), 128))
9100
9113
  ]));
9101
9114
  }
9102
- }), VN = /* @__PURE__ */ U(dV, [["__scopeId", "data-v-f05e69c0"]]), GV = { class: "apf-model-picker" }, cV = /* @__PURE__ */ j({
9115
+ }), NN = /* @__PURE__ */ U(GV, [["__scopeId", "data-v-f05e69c0"]]), cV = { class: "apf-model-picker" }, bV = /* @__PURE__ */ j({
9103
9116
  __name: "ModelPicker",
9104
9117
  props: {
9105
9118
  models: {},
@@ -9111,7 +9124,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
9111
9124
  const C = g;
9112
9125
  return (Z, A) => {
9113
9126
  const d = _("el-option"), l = _("el-select");
9114
- return m(), W("label", GV, [
9127
+ return m(), W("label", cV, [
9115
9128
  II(l, {
9116
9129
  "model-value": I.modelValue || void 0,
9117
9130
  disabled: I.loading || !I.models.length,
@@ -9124,7 +9137,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
9124
9137
  label: "正在加载模型…",
9125
9138
  value: "",
9126
9139
  disabled: ""
9127
- })) : I.models.length ? H("", !0) : (m(), x(d, {
9140
+ })) : I.models.length ? R("", !0) : (m(), x(d, {
9128
9141
  key: 1,
9129
9142
  label: "暂无可用模型",
9130
9143
  value: "",
@@ -9141,11 +9154,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
9141
9154
  ]);
9142
9155
  };
9143
9156
  }
9144
- }), NN = /* @__PURE__ */ U(cV, [["__scopeId", "data-v-483ae73d"]]), Rl = Symbol("fg-toast");
9145
- function XN(I) {
9157
+ }), XN = /* @__PURE__ */ U(bV, [["__scopeId", "data-v-483ae73d"]]), Rl = Symbol("fg-toast");
9158
+ function oN(I) {
9146
9159
  return { [Rl]: I };
9147
9160
  }
9148
- function oN() {
9161
+ function hN() {
9149
9162
  const I = Id(Rl);
9150
9163
  return {
9151
9164
  show(g, C = "info", Z) {
@@ -9170,7 +9183,7 @@ function oN() {
9170
9183
  }
9171
9184
  };
9172
9185
  }
9173
- function hN() {
9186
+ function aN() {
9174
9187
  async function I(Z, A = {}) {
9175
9188
  const {
9176
9189
  title: d = "确认操作",
@@ -9211,7 +9224,7 @@ function hN() {
9211
9224
  confirmDanger: C
9212
9225
  };
9213
9226
  }
9214
- function aN() {
9227
+ function RN() {
9215
9228
  return {
9216
9229
  success(I, g = {}) {
9217
9230
  IC({ message: I, type: "success", ...g });
@@ -9227,7 +9240,7 @@ function aN() {
9227
9240
  }
9228
9241
  };
9229
9242
  }
9230
- function RN(I, g = 300) {
9243
+ function HN(I, g = 300) {
9231
9244
  const C = t(null);
9232
9245
  function Z(...A) {
9233
9246
  C.value && clearTimeout(C.value), C.value = setTimeout(() => {
@@ -9238,12 +9251,12 @@ function RN(I, g = 300) {
9238
9251
  C.value && clearTimeout(C.value);
9239
9252
  }), Z;
9240
9253
  }
9241
- function HN(I, g) {
9254
+ function yN(I, g) {
9242
9255
  var c;
9243
- const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A = n(() => {
9256
+ const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A = u(() => {
9244
9257
  const G = I.value, b = (C.value - 1) * Z.value;
9245
9258
  return G.slice(b, b + Z.value);
9246
- }), d = n(() => I.value.length);
9259
+ }), d = u(() => I.value.length);
9247
9260
  function l() {
9248
9261
  C.value = 1;
9249
9262
  }
@@ -9262,8 +9275,8 @@ function HN(I, g) {
9262
9275
  resetPage: l
9263
9276
  };
9264
9277
  }
9265
- function yN(I = {}) {
9266
- const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l = n(() => A.value !== null);
9278
+ function uN(I = {}) {
9279
+ const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l = u(() => A.value !== null);
9267
9280
  let c = null, G = 0;
9268
9281
  function b() {
9269
9282
  G++, G === 1 && (Z.value = !0, A.value = null, d.value = !1, c = setTimeout(() => {
@@ -9295,7 +9308,7 @@ function yN(I = {}) {
9295
9308
  reset: s
9296
9309
  };
9297
9310
  }
9298
- function uN(I) {
9311
+ function nN(I) {
9299
9312
  const {
9300
9313
  containerRef: g,
9301
9314
  autoScroll: C = !0,
@@ -9350,7 +9363,7 @@ function uN(I) {
9350
9363
  };
9351
9364
  }
9352
9365
  const tC = /* @__PURE__ */ new Map();
9353
- function nN(I) {
9366
+ function MN(I) {
9354
9367
  const {
9355
9368
  url: g,
9356
9369
  token: C,
@@ -9421,8 +9434,8 @@ function nN(I) {
9421
9434
  let e = !1;
9422
9435
  for (const p of l.handlers.values())
9423
9436
  for (const J of p) {
9424
- const R = J.getProjectId();
9425
- R == null ? e = !0 : K.add(R);
9437
+ const H = J.getProjectId();
9438
+ H == null ? e = !0 : K.add(H);
9426
9439
  }
9427
9440
  const y = b();
9428
9441
  y == null ? e = !0 : K.add(y), e && a(void 0);
@@ -9488,8 +9501,8 @@ function nN(I) {
9488
9501
  };
9489
9502
  return y.add(p), c.push(p), ((J = l.ws) == null ? void 0 : J.readyState) === WebSocket.OPEN && a(b()), () => {
9490
9503
  y == null || y.delete(p);
9491
- const R = c.indexOf(p);
9492
- R >= 0 && c.splice(R, 1);
9504
+ const H = c.indexOf(p);
9505
+ H >= 0 && c.splice(H, 1);
9493
9506
  };
9494
9507
  }
9495
9508
  return o(), NI(b, (K) => {
@@ -9499,7 +9512,7 @@ function nN(I) {
9499
9512
  k();
9500
9513
  }), { status: G, connect: o, disconnect: k, on: L };
9501
9514
  }
9502
- function MN(I) {
9515
+ function KN(I) {
9503
9516
  if (!I) return "操作失败";
9504
9517
  if (typeof I == "string") return I;
9505
9518
  if (I instanceof Error) return I.message || "操作失败";
@@ -9516,9 +9529,9 @@ function MN(I) {
9516
9529
  }
9517
9530
  return "操作失败";
9518
9531
  }
9519
- const bV = /\/(?:schema-platform\/)?api\/ai\/documents\/([^/?#]+)\/file/i, TZ = /\.(mp4|webm|mov|m4v)(?:\?|#|$|\s)/i, mV = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?|#|$|\s)/i, TC = /\.pdf(?:\?|#|$|\s)/i, xC = /\.(docx?|xlsx?|csv|txt|md)(?:\?|#|$|\s)/i, xZ = /(?:https?:\/\/[^\s"'<>\]]+|\/(?:schema-platform\/)?api\/ai\/documents\/[^/\s"'<>\]]+\/file)/gi;
9532
+ const mV = /\/(?:schema-platform\/)?api\/ai\/documents\/([^/?#]+)\/file/i, xZ = /\.(mp4|webm|mov|m4v)(?:\?|#|$|\s)/i, iV = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?|#|$|\s)/i, TC = /\.pdf(?:\?|#|$|\s)/i, xC = /\.(docx?|xlsx?|csv|txt|md)(?:\?|#|$|\s)/i, jZ = /(?:https?:\/\/[^\s"'<>\]]+|\/(?:schema-platform\/)?api\/ai\/documents\/[^/\s"'<>\]]+\/file)/gi;
9520
9533
  function kg(I) {
9521
- const g = I.trim().match(bV);
9534
+ const g = I.trim().match(mV);
9522
9535
  if (g != null && g[1]) return g[1];
9523
9536
  if (/^[0-9a-f]{24}$/i.test(I.trim())) return I.trim();
9524
9537
  }
@@ -9533,14 +9546,14 @@ function og(I) {
9533
9546
  return TC.test(c) || Z.includes("pdf") ? "pdf" : xC.test(c) || /word|sheet|excel|csv|text/.test(Z) ? "office" : "file";
9534
9547
  }
9535
9548
  const d = [g, C].filter(Boolean).join(" ").toLowerCase(), l = Z.toLowerCase();
9536
- return l.startsWith("video/") || TZ.test(d) ? "video" : l.startsWith("image/") || mV.test(d) ? "image" : l.includes("pdf") || TC.test(d) ? "pdf" : xC.test(d) || l.includes("word") || l.includes("sheet") || l.includes("excel") || l.includes("csv") || l.startsWith("text/") ? "office" : kg(g) && !TC.test(g) && !xC.test(g) && !TZ.test(g) ? "image" : "file";
9549
+ return l.startsWith("video/") || xZ.test(d) ? "video" : l.startsWith("image/") || iV.test(d) ? "image" : l.includes("pdf") || TC.test(d) ? "pdf" : xC.test(d) || l.includes("word") || l.includes("sheet") || l.includes("excel") || l.includes("csv") || l.startsWith("text/") ? "office" : kg(g) && !TC.test(g) && !xC.test(g) && !xZ.test(g) ? "image" : "file";
9537
9550
  }
9538
9551
  function _I(I, g, C) {
9539
9552
  var A;
9540
9553
  const Z = C.url || C.documentId || `${C.kind}:${((A = C.text) == null ? void 0 : A.slice(0, 40)) ?? C.id}`;
9541
9554
  !Z || g.has(Z) || (g.add(Z), I.push(C));
9542
9555
  }
9543
- function jZ(I) {
9556
+ function QZ(I) {
9544
9557
  const g = I.trim();
9545
9558
  if (!g) return null;
9546
9559
  const C = [g], Z = g.match(/^```(?:json)?\s*([\s\S]*?)```$/i);
@@ -9555,13 +9568,13 @@ function jZ(I) {
9555
9568
  }
9556
9569
  return null;
9557
9570
  }
9558
- function KN(I, g = "art") {
9571
+ function SN(I, g = "art") {
9559
9572
  if (I == null) return [];
9560
9573
  const C = [], Z = /* @__PURE__ */ new Set();
9561
9574
  let A = 0;
9562
9575
  const d = () => `${g}-${++A}`;
9563
9576
  if (typeof I == "string") {
9564
- const G = I.match(xZ) ?? [];
9577
+ const G = I.match(jZ) ?? [];
9565
9578
  for (const b of G) {
9566
9579
  const i = og({ url: b });
9567
9580
  _I(C, Z, {
@@ -9573,7 +9586,7 @@ function KN(I, g = "art") {
9573
9586
  });
9574
9587
  }
9575
9588
  if (!G.length && I.trim()) {
9576
- const b = jZ(I);
9589
+ const b = QZ(I);
9577
9590
  _I(C, Z, {
9578
9591
  id: d(),
9579
9592
  kind: (b == null ? void 0 : b.kind) ?? "text",
@@ -9628,7 +9641,7 @@ function KN(I, g = "art") {
9628
9641
  for (const G of ["text", "message", "confirmMessage", "prompt"]) {
9629
9642
  const b = l[G];
9630
9643
  if (typeof b != "string" || !b.trim()) continue;
9631
- const i = b.match(xZ) ?? [];
9644
+ const i = b.match(jZ) ?? [];
9632
9645
  for (const w of i)
9633
9646
  _I(C, Z, {
9634
9647
  id: d(),
@@ -9638,7 +9651,7 @@ function KN(I, g = "art") {
9638
9651
  source: G
9639
9652
  });
9640
9653
  if (!i.length && (G === "text" || G === "message")) {
9641
- const w = G === "text" ? jZ(b) : null;
9654
+ const w = G === "text" ? QZ(b) : null;
9642
9655
  _I(C, Z, {
9643
9656
  id: d(),
9644
9657
  kind: (w == null ? void 0 : w.kind) ?? "text",
@@ -9650,7 +9663,7 @@ function KN(I, g = "art") {
9650
9663
  }
9651
9664
  return C;
9652
9665
  }
9653
- function SN(I) {
9666
+ function DN(I) {
9654
9667
  return I.map((g, C) => {
9655
9668
  const Z = og({
9656
9669
  url: g.url,
@@ -9669,119 +9682,119 @@ function SN(I) {
9669
9682
  };
9670
9683
  });
9671
9684
  }
9672
- const DN = "1.10.1", FN = "2.14.2", pN = "2026-08-27";
9685
+ const FN = "1.10.1", pN = "2.14.2", JN = "2026-08-27";
9673
9686
  export {
9674
- YV as APP_ICON_NAMES,
9675
- LV as AVATAR_SIZE,
9676
- IA as AppDialog,
9687
+ sV as APP_ICON_NAMES,
9688
+ tV as AVATAR_SIZE,
9689
+ gA as AppDialog,
9677
9690
  RI as AppIcon,
9678
- wV as AppPagination,
9679
- uV as AppUserPanel,
9680
- BN as ApprovalCard,
9681
- GA as ArtifactGallery,
9682
- VN as AssistantPicker,
9691
+ VV as AppPagination,
9692
+ nV as AppUserPanel,
9693
+ YN as ApprovalCard,
9694
+ cA as ArtifactGallery,
9695
+ NN as AssistantPicker,
9683
9696
  y2 as AttachmentPreviewModal,
9684
- kV as BORDER_RADIUS,
9685
- fV as BreadcrumbNav,
9697
+ eV as BORDER_RADIUS,
9698
+ qV as BreadcrumbNav,
9686
9699
  JI as CHART_COLORS,
9687
9700
  QI as COLORS,
9688
- FV as CONTROL_HEIGHT,
9689
- HV as CardGridSkeleton,
9690
- _V as CardTable,
9691
- WN as Composer,
9692
- VV as ConfirmDialog,
9701
+ pV as CONTROL_HEIGHT,
9702
+ yV as CardGridSkeleton,
9703
+ $V as CardTable,
9704
+ BN as Composer,
9705
+ NV as ConfirmDialog,
9693
9706
  H0 as ContentPanel,
9694
- wN as ConversationHeader,
9707
+ VN as ConversationHeader,
9695
9708
  Gl as DEFAULT_PAGE_SIZE,
9696
- tV as DURATION,
9697
- GN as DocumentPreviewDrawer,
9709
+ TV as DURATION,
9710
+ cN as DocumentPreviewDrawer,
9698
9711
  bB as DocumentPreviewPanel,
9699
9712
  d2 as DocumentSummaryList,
9700
- FN as EP_FORK_BASE,
9701
- pN as EP_FORK_DATE,
9713
+ pN as EP_FORK_BASE,
9714
+ JN as EP_FORK_DATE,
9702
9715
  cg as EmptyState,
9703
- hV as ErrorBoundary,
9716
+ aV as ErrorBoundary,
9704
9717
  $W as ExcelPreviewCard,
9705
- mN as ExecutionArtifactPanel,
9706
- SV as FONT_SIZE,
9707
- eV as FORM,
9708
- gN as FieldRow,
9718
+ iN as ExecutionArtifactPanel,
9719
+ DV as FONT_SIZE,
9720
+ LV as FORM,
9721
+ CN as FieldRow,
9709
9722
  nB as FileChip,
9710
- qV as FilterBar,
9711
- XV as FilterTabs,
9712
- NV as FormDialog,
9713
- CN as HintText,
9714
- bN as HitlArtifactPanel,
9715
- ZA as ICON_MAP,
9716
- JV as ICON_SIZE,
9723
+ _V as FilterBar,
9724
+ oV as FilterTabs,
9725
+ XV as FormDialog,
9726
+ AN as HintText,
9727
+ mN as HitlArtifactPanel,
9728
+ lA as ICON_MAP,
9729
+ zV as ICON_SIZE,
9717
9730
  BB as ImagePreviewCard,
9718
9731
  VW as JsonCard,
9719
9732
  oW as JsonDetailDialog,
9720
- pV as LAYOUT_HEIGHT,
9721
- ZN as LoadingDots,
9722
- OV as LogStream,
9733
+ JV as LAYOUT_HEIGHT,
9734
+ lN as LoadingDots,
9735
+ EV as LogStream,
9723
9736
  qs as MessageAttachmentList,
9724
9737
  f2 as MessageBubble,
9725
- iN as MessageList,
9738
+ WN as MessageList,
9726
9739
  js as MessageParts,
9727
- xV as MetricChart,
9728
- NN as ModelPicker,
9729
- cN as NodeArtifactStrip,
9730
- zV as PAGE,
9740
+ jV as MetricChart,
9741
+ XN as ModelPicker,
9742
+ bN as NodeArtifactStrip,
9743
+ kV as PAGE,
9731
9744
  ub as PAGE_SIZE_OPTIONS,
9732
9745
  nb as PAGINATION_LAYOUT,
9733
- rV as PageHeader,
9734
- PV as PageShell,
9746
+ fV as PageHeader,
9747
+ rV as PageShell,
9735
9748
  cl as PdfPreviewCard,
9736
- sN as ProcessingDrawer,
9749
+ wN as ProcessingDrawer,
9737
9750
  hw as RunStatusBar,
9738
- DN as SCHEMA_UI_VERSION,
9751
+ FN as SCHEMA_UI_VERSION,
9739
9752
  y0 as SHADOWS,
9740
- DV as SPACING,
9741
- lN as SchemaLitePreview,
9742
- IN as SearchForm,
9743
- AN as SectionToggle,
9744
- UV as ServiceGrid,
9745
- YN as SessionSidebar,
9746
- QV as SeverityBadge,
9747
- RV as Skeleton,
9748
- nV as SliderCaptcha,
9749
- jV as StatCard,
9750
- aV as StatusTag,
9751
- vV as StatusTimeline,
9752
- KV as TEXT_COLORS,
9753
- $V as TableRowActions,
9753
+ FV as SPACING,
9754
+ dN as SchemaLitePreview,
9755
+ gN as SearchForm,
9756
+ ZN as SectionToggle,
9757
+ vV as ServiceGrid,
9758
+ sN as SessionSidebar,
9759
+ UV as SeverityBadge,
9760
+ HV as Skeleton,
9761
+ MV as SliderCaptcha,
9762
+ QV as StatCard,
9763
+ RV as StatusTag,
9764
+ OV as StatusTimeline,
9765
+ SV as TEXT_COLORS,
9766
+ IN as TableRowActions,
9754
9767
  RB as TextPreviewCard,
9755
- EV as ThresholdSlider,
9756
- MV as TimeRangePicker,
9757
- oV as Toast,
9768
+ PV as ThresholdSlider,
9769
+ KV as TimeRangePicker,
9770
+ hV as Toast,
9758
9771
  _i as TruncatedTooltipText,
9759
- yV as UserAvatar,
9772
+ uV as UserAvatar,
9760
9773
  wB as VideoPreviewCard,
9761
- TV as Z_INDEX,
9774
+ xV as Z_INDEX,
9762
9775
  og as detectArtifactKind,
9763
9776
  kg as extractDocumentId,
9764
- lA as fileKind,
9765
- dA as formatSize,
9777
+ dA as fileKind,
9778
+ GA as formatSize,
9766
9779
  Rg as isImage,
9767
- WZ as isOffice,
9780
+ BZ as isOffice,
9768
9781
  Lg as isPdf,
9769
- dN as isPreviewable,
9770
- sV as isRegisteredAppIcon,
9771
- SN as normalizeAttachments,
9772
- KN as normalizeNodeOutput,
9773
- XN as provideToast,
9782
+ GN as isPreviewable,
9783
+ wV as isRegisteredAppIcon,
9784
+ DN as normalizeAttachments,
9785
+ SN as normalizeNodeOutput,
9786
+ oN as provideToast,
9774
9787
  us as renderMarkdown,
9775
- MN as resolveApiErrorMessage,
9788
+ KN as resolveApiErrorMessage,
9776
9789
  ys as splitTextAndCodeBlocks,
9777
- jZ as tryParseJsonText,
9778
- uN as useChatScroll,
9779
- HN as useClientPagination,
9790
+ QZ as tryParseJsonText,
9791
+ nN as useChatScroll,
9792
+ yN as useClientPagination,
9780
9793
  VB as useClipboard,
9781
- hN as useConfirm,
9782
- yN as useDataLoading,
9783
- RN as useDebounceFn,
9784
- aN as useMessage,
9785
- nN as useRealtime,
9786
- oN as useToast
9794
+ aN as useConfirm,
9795
+ uN as useDataLoading,
9796
+ HN as useDebounceFn,
9797
+ RN as useMessage,
9798
+ MN as useRealtime,
9799
+ hN as useToast
9787
9800
  };