@gnai/message-content-renderer 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as iu from "vue";
2
- import { defineComponent as ye, ref as Au, shallowRef as d0, onMounted as h0, watch as p0, onUnmounted as b0, h as Be, nextTick as m0, createBlock as vt, openBlock as P, Teleport as x0, createVNode as su, Transition as g0, withCtx as _0, createElementBlock as z, createCommentVNode as Dt, createElementVNode as lu, withModifiers as Pe, unref as au, computed as Du, Fragment as Me, renderList as je, toDisplayString as ue } from "vue";
2
+ import { defineComponent as ye, ref as Au, shallowRef as d0, onMounted as h0, watch as p0, onUnmounted as b0, h as Be, nextTick as m0, createBlock as vt, openBlock as P, Teleport as x0, createVNode as su, Transition as g0, withCtx as _0, createElementBlock as z, createCommentVNode as Dt, createElementVNode as lu, withModifiers as Pe, unref as au, computed as xu, Fragment as Me, renderList as je, toDisplayString as ue } from "vue";
3
3
  const Et = /^[a-z0-9]+(-[a-z0-9]+)*$/, Gu = (u, e, t, n = "") => {
4
4
  const r = u.split(":");
5
5
  if (u.slice(0, 1) === "@") {
@@ -165,7 +165,7 @@ function D0(u, e) {
165
165
  missing: /* @__PURE__ */ new Set()
166
166
  };
167
167
  }
168
- function _u(u, e) {
168
+ function ku(u, e) {
169
169
  const t = Re[u] || (Re[u] = /* @__PURE__ */ Object.create(null));
170
170
  return t[e] || (t[e] = D0(u, e));
171
171
  }
@@ -189,7 +189,7 @@ function Tt(u) {
189
189
  function F0(u) {
190
190
  const e = typeof u == "string" ? Gu(u, !0, wu) : u;
191
191
  if (e) {
192
- const t = _u(e.provider, e.prefix), n = e.name;
192
+ const t = ku(e.provider, e.prefix), n = e.name;
193
193
  return t.icons[n] || (t.missing.has(n) ? null : void 0);
194
194
  }
195
195
  }
@@ -197,7 +197,7 @@ function A0(u, e) {
197
197
  const t = Gu(u, !0, wu);
198
198
  if (!t)
199
199
  return !1;
200
- const n = _u(t.provider, t.prefix);
200
+ const n = ku(t.provider, t.prefix);
201
201
  return e ? E0(n, t.name, e) : (n.missing.add(t.name), !0);
202
202
  }
203
203
  function w0(u, e) {
@@ -215,7 +215,7 @@ function w0(u, e) {
215
215
  name: "a"
216
216
  }))
217
217
  return !1;
218
- const n = _u(e, t);
218
+ const n = ku(e, t);
219
219
  return !!St(n, u);
220
220
  }
221
221
  const It = Object.freeze({
@@ -289,45 +289,45 @@ function B0(u, e) {
289
289
  height: t.height
290
290
  };
291
291
  let o = t.body;
292
- [t, n].forEach((E) => {
293
- const x = [], A = E.hFlip, C = E.vFlip;
294
- let v = E.rotate;
295
- A ? C ? v += 2 : (x.push(
292
+ [t, n].forEach((v) => {
293
+ const k = [], F = v.hFlip, E = v.vFlip;
294
+ let y = v.rotate;
295
+ F ? E ? y += 2 : (k.push(
296
296
  "translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
297
- ), x.push("scale(-1 1)"), r.top = r.left = 0) : C && (x.push(
297
+ ), k.push("scale(-1 1)"), r.top = r.left = 0) : E && (k.push(
298
298
  "translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
299
- ), x.push("scale(1 -1)"), r.top = r.left = 0);
300
- let h;
301
- switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
299
+ ), k.push("scale(1 -1)"), r.top = r.left = 0);
300
+ let p;
301
+ switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
302
302
  case 1:
303
- h = r.height / 2 + r.top, x.unshift(
304
- "rotate(90 " + h.toString() + " " + h.toString() + ")"
303
+ p = r.height / 2 + r.top, k.unshift(
304
+ "rotate(90 " + p.toString() + " " + p.toString() + ")"
305
305
  );
306
306
  break;
307
307
  case 2:
308
- x.unshift(
308
+ k.unshift(
309
309
  "rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
310
310
  );
311
311
  break;
312
312
  case 3:
313
- h = r.width / 2 + r.left, x.unshift(
314
- "rotate(-90 " + h.toString() + " " + h.toString() + ")"
313
+ p = r.width / 2 + r.left, k.unshift(
314
+ "rotate(-90 " + p.toString() + " " + p.toString() + ")"
315
315
  );
316
316
  break;
317
317
  }
318
- v % 2 === 1 && (r.left !== r.top && (h = r.left, r.left = r.top, r.top = h), r.width !== r.height && (h = r.width, r.width = r.height, r.height = h)), x.length && (o = L0(
318
+ y % 2 === 1 && (r.left !== r.top && (p = r.left, r.left = r.top, r.top = p), r.width !== r.height && (p = r.width, r.width = r.height, r.height = p)), k.length && (o = L0(
319
319
  o,
320
- '<g transform="' + x.join(" ") + '">',
320
+ '<g transform="' + k.join(" ") + '">',
321
321
  "</g>"
322
322
  ));
323
323
  });
324
324
  const c = n.width, i = n.height, a = r.width, s = r.height;
325
325
  let l, f;
326
326
  c === null ? (f = i === null ? "1em" : i === "auto" ? s : i, l = qe(f, a / s)) : (l = c === "auto" ? a : c, f = i === null ? qe(l, s / a) : i === "auto" ? s : i);
327
- const m = {}, p = (E, x) => {
328
- O0(x) || (m[E] = x.toString());
327
+ const m = {}, b = (v, k) => {
328
+ O0(k) || (m[v] = k.toString());
329
329
  };
330
- p("width", l), p("height", f);
330
+ b("width", l), b("height", f);
331
331
  const d = [r.left, r.top, a, s];
332
332
  return m.viewBox = d.join(" "), {
333
333
  attributes: m,
@@ -523,7 +523,7 @@ function Q0(u) {
523
523
  if (n.name === r.name && n.prefix === r.prefix && n.provider === r.provider)
524
524
  return;
525
525
  n = r;
526
- const o = r.provider, c = r.prefix, i = r.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), s = a[c] || (a[c] = _u(o, c));
526
+ const o = r.provider, c = r.prefix, i = r.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), s = a[c] || (a[c] = ku(o, c));
527
527
  let l;
528
528
  i in s.icons ? l = e.loaded : c === "" || s.missing.has(i) ? l = e.missing : l = e.pending;
529
529
  const f = {
@@ -612,102 +612,102 @@ function en(u, e, t, n) {
612
612
  const r = u.resources.length, o = u.random ? Math.floor(Math.random() * r) : u.index;
613
613
  let c;
614
614
  if (u.random) {
615
- let b = u.resources.slice(0);
616
- for (c = []; b.length > 1; ) {
617
- const _ = Math.floor(Math.random() * b.length);
618
- c.push(b[_]), b = b.slice(0, _).concat(b.slice(_ + 1));
615
+ let h = u.resources.slice(0);
616
+ for (c = []; h.length > 1; ) {
617
+ const x = Math.floor(Math.random() * h.length);
618
+ c.push(h[x]), h = h.slice(0, x).concat(h.slice(x + 1));
619
619
  }
620
- c = c.concat(b);
620
+ c = c.concat(h);
621
621
  } else
622
622
  c = u.resources.slice(o).concat(u.resources.slice(0, o));
623
623
  const i = Date.now();
624
- let a = "pending", s = 0, l, f = null, m = [], p = [];
625
- typeof n == "function" && p.push(n);
624
+ let a = "pending", s = 0, l, f = null, m = [], b = [];
625
+ typeof n == "function" && b.push(n);
626
626
  function d() {
627
627
  f && (clearTimeout(f), f = null);
628
628
  }
629
- function E() {
630
- a === "pending" && (a = "aborted"), d(), m.forEach((b) => {
631
- b.status === "pending" && (b.status = "aborted");
629
+ function v() {
630
+ a === "pending" && (a = "aborted"), d(), m.forEach((h) => {
631
+ h.status === "pending" && (h.status = "aborted");
632
632
  }), m = [];
633
633
  }
634
- function x(b, _) {
635
- _ && (p = []), typeof b == "function" && p.push(b);
634
+ function k(h, x) {
635
+ x && (b = []), typeof h == "function" && b.push(h);
636
636
  }
637
- function A() {
637
+ function F() {
638
638
  return {
639
639
  startTime: i,
640
640
  payload: e,
641
641
  status: a,
642
642
  queriesSent: s,
643
643
  queriesPending: m.length,
644
- subscribe: x,
645
- abort: E
644
+ subscribe: k,
645
+ abort: v
646
646
  };
647
647
  }
648
- function C() {
649
- a = "failed", p.forEach((b) => {
650
- b(void 0, l);
648
+ function E() {
649
+ a = "failed", b.forEach((h) => {
650
+ h(void 0, l);
651
651
  });
652
652
  }
653
- function v() {
654
- m.forEach((b) => {
655
- b.status === "pending" && (b.status = "aborted");
653
+ function y() {
654
+ m.forEach((h) => {
655
+ h.status === "pending" && (h.status = "aborted");
656
656
  }), m = [];
657
657
  }
658
- function h(b, _, D) {
659
- const I = _ !== "success";
660
- switch (m = m.filter((T) => T !== b), a) {
658
+ function p(h, x, D) {
659
+ const T = x !== "success";
660
+ switch (m = m.filter((I) => I !== h), a) {
661
661
  case "pending":
662
662
  break;
663
663
  case "failed":
664
- if (I || !u.dataAfterTimeout)
664
+ if (T || !u.dataAfterTimeout)
665
665
  return;
666
666
  break;
667
667
  default:
668
668
  return;
669
669
  }
670
- if (_ === "abort") {
671
- l = D, C();
670
+ if (x === "abort") {
671
+ l = D, E();
672
672
  return;
673
673
  }
674
- if (I) {
675
- l = D, m.length || (c.length ? y() : C());
674
+ if (T) {
675
+ l = D, m.length || (c.length ? g() : E());
676
676
  return;
677
677
  }
678
- if (d(), v(), !u.random) {
679
- const T = u.resources.indexOf(b.resource);
680
- T !== -1 && T !== u.index && (u.index = T);
678
+ if (d(), y(), !u.random) {
679
+ const I = u.resources.indexOf(h.resource);
680
+ I !== -1 && I !== u.index && (u.index = I);
681
681
  }
682
- a = "completed", p.forEach((T) => {
683
- T(D);
682
+ a = "completed", b.forEach((I) => {
683
+ I(D);
684
684
  });
685
685
  }
686
- function y() {
686
+ function g() {
687
687
  if (a !== "pending")
688
688
  return;
689
689
  d();
690
- const b = c.shift();
691
- if (b === void 0) {
690
+ const h = c.shift();
691
+ if (h === void 0) {
692
692
  if (m.length) {
693
693
  f = setTimeout(() => {
694
- d(), a === "pending" && (v(), C());
694
+ d(), a === "pending" && (y(), E());
695
695
  }, u.timeout);
696
696
  return;
697
697
  }
698
- C();
698
+ E();
699
699
  return;
700
700
  }
701
- const _ = {
701
+ const x = {
702
702
  status: "pending",
703
- resource: b,
704
- callback: (D, I) => {
705
- h(_, D, I);
703
+ resource: h,
704
+ callback: (D, T) => {
705
+ p(x, D, T);
706
706
  }
707
707
  };
708
- m.push(_), s++, f = setTimeout(y, u.rotate), t(b, e, _.callback);
708
+ m.push(x), s++, f = setTimeout(g, u.rotate), t(h, e, x.callback);
709
709
  }
710
- return setTimeout(y), A;
710
+ return setTimeout(g), F;
711
711
  }
712
712
  function Ot(u) {
713
713
  const e = {
@@ -838,13 +838,13 @@ function cn(u, e) {
838
838
  r.forEach((l) => {
839
839
  const f = o(l, n, t);
840
840
  Ue(f, (m) => {
841
- const p = m ? {
841
+ const b = m ? {
842
842
  prefix: n,
843
843
  icons: {
844
844
  [l]: m
845
845
  }
846
846
  } : null;
847
- Fu(u, [l], p);
847
+ Fu(u, [l], b);
848
848
  });
849
849
  });
850
850
  return;
@@ -885,12 +885,12 @@ const an = (u, e) => {
885
885
  const { provider: s, prefix: l } = a;
886
886
  if (l === i && s === c)
887
887
  return;
888
- c = s, i = l, o.push(_u(s, l));
888
+ c = s, i = l, o.push(ku(s, l));
889
889
  const f = r[s] || (r[s] = /* @__PURE__ */ Object.create(null));
890
890
  f[l] || (f[l] = []);
891
891
  }), n.pending.forEach((a) => {
892
- const { provider: s, prefix: l, name: f } = a, m = _u(s, l), p = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
893
- p.has(f) || (p.add(f), r[s][l].push(f));
892
+ const { provider: s, prefix: l, name: f } = a, m = ku(s, l), b = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
893
+ b.has(f) || (b.add(f), r[s][l].push(f));
894
894
  }), o.forEach((a) => {
895
895
  const s = r[a.provider][a.prefix];
896
896
  s.length && cn(a, s);
@@ -998,10 +998,10 @@ function Qe(u) {
998
998
  }
999
999
  const Je = (u, e) => {
1000
1000
  const t = sn(Ze, e), n = { ...xn }, r = e.mode || "svg", o = {}, c = e.style, i = typeof c == "object" && !(c instanceof Array) ? c : {};
1001
- for (let E in e) {
1002
- const x = e[E];
1003
- if (x !== void 0)
1004
- switch (E) {
1001
+ for (let v in e) {
1002
+ const k = e[v];
1003
+ if (k !== void 0)
1004
+ switch (v) {
1005
1005
  // Properties to ignore
1006
1006
  case "icon":
1007
1007
  case "style":
@@ -1013,28 +1013,28 @@ const Je = (u, e) => {
1013
1013
  case "inline":
1014
1014
  case "hFlip":
1015
1015
  case "vFlip":
1016
- t[E] = x === !0 || x === "true" || x === 1;
1016
+ t[v] = k === !0 || k === "true" || k === 1;
1017
1017
  break;
1018
1018
  // Flip as string: 'horizontal,vertical'
1019
1019
  case "flip":
1020
- typeof x == "string" && fn(t, x);
1020
+ typeof k == "string" && fn(t, k);
1021
1021
  break;
1022
1022
  // Color: override style
1023
1023
  case "color":
1024
- o.color = x;
1024
+ o.color = k;
1025
1025
  break;
1026
1026
  // Rotation as string
1027
1027
  case "rotate":
1028
- typeof x == "string" ? t[E] = dn(x) : typeof x == "number" && (t[E] = x);
1028
+ typeof k == "string" ? t[v] = dn(k) : typeof k == "number" && (t[v] = k);
1029
1029
  break;
1030
1030
  // Remove aria-hidden
1031
1031
  case "ariaHidden":
1032
1032
  case "aria-hidden":
1033
- x !== !0 && x !== "true" && delete n["aria-hidden"];
1033
+ k !== !0 && k !== "true" && delete n["aria-hidden"];
1034
1034
  break;
1035
1035
  default: {
1036
- const A = qu[E];
1037
- A ? (x === !0 || x === "true" || x === 1) && (t[A] = !0) : Ze[E] === void 0 && (n[E] = x);
1036
+ const F = qu[v];
1037
+ F ? (k === !0 || k === "true" || k === 1) && (t[F] = !0) : Ze[v] === void 0 && (n[v] = k);
1038
1038
  }
1039
1039
  }
1040
1040
  }
@@ -1044,10 +1044,10 @@ const Je = (u, e) => {
1044
1044
  ...o,
1045
1045
  ...i
1046
1046
  }, Object.assign(n, s);
1047
- let E = 0, x = e.id;
1048
- return typeof x == "string" && (x = x.replace(/-/g, "_")), n.innerHTML = z0(a.body, x ? () => x + "ID" + E++ : "iconifyVue"), Be("svg", n);
1047
+ let v = 0, k = e.id;
1048
+ return typeof k == "string" && (k = k.replace(/-/g, "_")), n.innerHTML = z0(a.body, k ? () => k + "ID" + v++ : "iconifyVue"), Be("svg", n);
1049
1049
  }
1050
- const { body: l, width: f, height: m } = u, p = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = hn(l, {
1050
+ const { body: l, width: f, height: m } = u, b = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = hn(l, {
1051
1051
  ...s,
1052
1052
  width: f + "",
1053
1053
  height: m + ""
@@ -1058,7 +1058,7 @@ const Je = (u, e) => {
1058
1058
  width: Qe(s.width),
1059
1059
  height: Qe(s.height),
1060
1060
  ...gn,
1061
- ...p ? pe : Bt,
1061
+ ...b ? pe : Bt,
1062
1062
  ...i
1063
1063
  }, Be("span", n);
1064
1064
  };
@@ -1132,8 +1132,8 @@ const _n = {
1132
1132
  const d = m(f.body, l.name, l.prefix, l.provider);
1133
1133
  typeof d == "string" && (f.body = d);
1134
1134
  }
1135
- const p = ["iconify"];
1136
- return l.prefix !== "" && p.push("iconify--" + l.prefix), l.provider !== "" && p.push("iconify--" + l.provider), { data: f, classes: p };
1135
+ const b = ["iconify"];
1136
+ return l.prefix !== "" && b.push("iconify--" + l.prefix), l.provider !== "" && b.push("iconify--" + l.provider), { data: f, classes: b };
1137
1137
  }
1138
1138
  function a() {
1139
1139
  const s = i();
@@ -1196,8 +1196,8 @@ function kn(u) {
1196
1196
  }
1197
1197
  return e;
1198
1198
  }
1199
- function ku(u, e) {
1200
- typeof e != "string" && (e = ku.defaultChars);
1199
+ function yu(u, e) {
1200
+ typeof e != "string" && (e = yu.defaultChars);
1201
1201
  const t = kn(e);
1202
1202
  return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
1203
1203
  let r = "";
@@ -1236,8 +1236,8 @@ function ku(u, e) {
1236
1236
  return r;
1237
1237
  });
1238
1238
  }
1239
- ku.defaultChars = ";/?:@&=+$,#";
1240
- ku.componentChars = "";
1239
+ yu.defaultChars = ";/?:@&=+$,#";
1240
+ yu.componentChars = "";
1241
1241
  const Ye = {};
1242
1242
  function yn(u) {
1243
1243
  let e = Ye[u];
@@ -1330,24 +1330,24 @@ $u.prototype.parse = function(u, e) {
1330
1330
  s === -1 && (s = o.length), o[s - 1] === ":" && s--;
1331
1331
  const m = o.slice(0, s);
1332
1332
  o = o.slice(s), this.parseHost(m), this.hostname = this.hostname || "";
1333
- const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
1334
- if (!p) {
1333
+ const b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
1334
+ if (!b) {
1335
1335
  const d = this.hostname.split(/\./);
1336
- for (let E = 0, x = d.length; E < x; E++) {
1337
- const A = d[E];
1338
- if (A && !A.match(et)) {
1339
- let C = "";
1340
- for (let v = 0, h = A.length; v < h; v++)
1341
- A.charCodeAt(v) > 127 ? C += "x" : C += A[v];
1342
- if (!C.match(et)) {
1343
- const v = d.slice(0, E), h = d.slice(E + 1), y = A.match(Sn);
1344
- y && (v.push(y[1]), h.unshift(y[2])), h.length && (o = h.join(".") + o), this.hostname = v.join(".");
1336
+ for (let v = 0, k = d.length; v < k; v++) {
1337
+ const F = d[v];
1338
+ if (F && !F.match(et)) {
1339
+ let E = "";
1340
+ for (let y = 0, p = F.length; y < p; y++)
1341
+ F.charCodeAt(y) > 127 ? E += "x" : E += F[y];
1342
+ if (!E.match(et)) {
1343
+ const y = d.slice(0, v), p = d.slice(v + 1), g = F.match(Sn);
1344
+ g && (y.push(g[1]), p.unshift(g[2])), p.length && (o = p.join(".") + o), this.hostname = y.join(".");
1345
1345
  break;
1346
1346
  }
1347
1347
  }
1348
1348
  }
1349
1349
  }
1350
- this.hostname.length > wn && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
1350
+ this.hostname.length > wn && (this.hostname = ""), b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
1351
1351
  }
1352
1352
  const i = o.indexOf("#");
1353
1353
  i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
@@ -1360,7 +1360,7 @@ $u.prototype.parseHost = function(u) {
1360
1360
  };
1361
1361
  const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1362
1362
  __proto__: null,
1363
- decode: ku,
1363
+ decode: yu,
1364
1364
  encode: Ou,
1365
1365
  format: Ee,
1366
1366
  parse: Fe
@@ -1732,7 +1732,7 @@ function Kn(u, e) {
1732
1732
  function Yn(u) {
1733
1733
  return u.indexOf("\\") < 0 ? u : u.replace($t, "$1");
1734
1734
  }
1735
- function yu(u) {
1735
+ function Cu(u) {
1736
1736
  return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(Qn, function(e, t, n) {
1737
1737
  return t || Kn(e, n);
1738
1738
  });
@@ -1846,7 +1846,7 @@ const or = { mdurl: Tn, ucmicro: Nn }, cr = /* @__PURE__ */ Object.freeze(/* @__
1846
1846
  isWhiteSpace: Su,
1847
1847
  lib: or,
1848
1848
  normalizeReference: Ju,
1849
- unescapeAll: yu,
1849
+ unescapeAll: Cu,
1850
1850
  unescapeMd: Yn
1851
1851
  }, Symbol.toStringTag, { value: "Module" }));
1852
1852
  function ir(u, e, t) {
@@ -1879,7 +1879,7 @@ function ar(u, e, t) {
1879
1879
  if (n = u.charCodeAt(r), n === 10 || n === 60)
1880
1880
  return o;
1881
1881
  if (n === 62)
1882
- return o.pos = r + 1, o.str = yu(u.slice(e + 1, r)), o.ok = !0, o;
1882
+ return o.pos = r + 1, o.str = Cu(u.slice(e + 1, r)), o.ok = !0, o;
1883
1883
  if (n === 92 && r + 1 < t) {
1884
1884
  r += 2;
1885
1885
  continue;
@@ -1905,7 +1905,7 @@ function ar(u, e, t) {
1905
1905
  }
1906
1906
  r++;
1907
1907
  }
1908
- return e === r || c !== 0 || (o.str = yu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
1908
+ return e === r || c !== 0 || (o.str = Cu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
1909
1909
  }
1910
1910
  function sr(u, e, t, n) {
1911
1911
  let r, o = e;
@@ -1933,12 +1933,12 @@ function sr(u, e, t, n) {
1933
1933
  }
1934
1934
  for (; o < t; ) {
1935
1935
  if (r = u.charCodeAt(o), r === c.marker)
1936
- return c.pos = o + 1, c.str += yu(u.slice(e, o)), c.ok = !0, c;
1936
+ return c.pos = o + 1, c.str += Cu(u.slice(e, o)), c.ok = !0, c;
1937
1937
  if (r === 40 && c.marker === 41)
1938
1938
  return c;
1939
1939
  r === 92 && o + 1 < t && o++, o++;
1940
1940
  }
1941
- return c.can_continue = !0, c.str += yu(u.slice(e, o)), c;
1941
+ return c.can_continue = !0, c.str += Cu(u.slice(e, o)), c;
1942
1942
  }
1943
1943
  const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1944
1944
  __proto__: null,
@@ -1956,7 +1956,7 @@ ru.code_block = function(u, e, t, n, r) {
1956
1956
  `;
1957
1957
  };
1958
1958
  ru.fence = function(u, e, t, n, r) {
1959
- const o = u[e], c = o.info ? yu(o.info).trim() : "";
1959
+ const o = u[e], c = o.info ? Cu(o.info).trim() : "";
1960
1960
  let i = "", a = "";
1961
1961
  if (c) {
1962
1962
  const l = c.split(/(\s+)/g);
@@ -2002,10 +2002,10 @@ ru.html_block = function(u, e) {
2002
2002
  ru.html_inline = function(u, e) {
2003
2003
  return u[e].content;
2004
2004
  };
2005
- function Cu() {
2005
+ function vu() {
2006
2006
  this.rules = Qu({}, ru);
2007
2007
  }
2008
- Cu.prototype.renderAttrs = function(e) {
2008
+ vu.prototype.renderAttrs = function(e) {
2009
2009
  let t, n, r;
2010
2010
  if (!e.attrs)
2011
2011
  return "";
@@ -2013,7 +2013,7 @@ Cu.prototype.renderAttrs = function(e) {
2013
2013
  r += " " + pu(e.attrs[t][0]) + '="' + pu(e.attrs[t][1]) + '"';
2014
2014
  return r;
2015
2015
  };
2016
- Cu.prototype.renderToken = function(e, t, n) {
2016
+ vu.prototype.renderToken = function(e, t, n) {
2017
2017
  const r = e[t];
2018
2018
  let o = "";
2019
2019
  if (r.hidden)
@@ -2028,7 +2028,7 @@ Cu.prototype.renderToken = function(e, t, n) {
2028
2028
  return o += c ? `>
2029
2029
  ` : ">", o;
2030
2030
  };
2031
- Cu.prototype.renderInline = function(u, e, t) {
2031
+ vu.prototype.renderInline = function(u, e, t) {
2032
2032
  let n = "";
2033
2033
  const r = this.rules;
2034
2034
  for (let o = 0, c = u.length; o < c; o++) {
@@ -2037,7 +2037,7 @@ Cu.prototype.renderInline = function(u, e, t) {
2037
2037
  }
2038
2038
  return n;
2039
2039
  };
2040
- Cu.prototype.renderInlineAsText = function(u, e, t) {
2040
+ vu.prototype.renderInlineAsText = function(u, e, t) {
2041
2041
  let n = "";
2042
2042
  for (let r = 0, o = u.length; r < o; r++)
2043
2043
  switch (u[r].type) {
@@ -2059,7 +2059,7 @@ Cu.prototype.renderInlineAsText = function(u, e, t) {
2059
2059
  }
2060
2060
  return n;
2061
2061
  };
2062
- Cu.prototype.render = function(u, e, t) {
2062
+ vu.prototype.render = function(u, e, t) {
2063
2063
  let n = "";
2064
2064
  const r = this.rules;
2065
2065
  for (let o = 0, c = u.length; o < c; o++) {
@@ -2235,27 +2235,27 @@ function gr(u) {
2235
2235
  const l = [];
2236
2236
  let f = i.level, m = 0;
2237
2237
  s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
2238
- for (let p = 0; p < s.length; p++) {
2239
- const d = s[p].url, E = u.md.normalizeLink(d);
2240
- if (!u.md.validateLink(E))
2238
+ for (let b = 0; b < s.length; b++) {
2239
+ const d = s[b].url, v = u.md.normalizeLink(d);
2240
+ if (!u.md.validateLink(v))
2241
2241
  continue;
2242
- let x = s[p].text;
2243
- s[p].schema ? s[p].schema === "mailto:" && !/^mailto:/i.test(x) ? x = u.md.normalizeLinkText("mailto:" + x).replace(/^mailto:/, "") : x = u.md.normalizeLinkText(x) : x = u.md.normalizeLinkText("http://" + x).replace(/^http:\/\//, "");
2244
- const A = s[p].index;
2245
- if (A > m) {
2246
- const y = new u.Token("text", "", 0);
2247
- y.content = a.slice(m, A), y.level = f, l.push(y);
2242
+ let k = s[b].text;
2243
+ s[b].schema ? s[b].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
2244
+ const F = s[b].index;
2245
+ if (F > m) {
2246
+ const g = new u.Token("text", "", 0);
2247
+ g.content = a.slice(m, F), g.level = f, l.push(g);
2248
2248
  }
2249
- const C = new u.Token("link_open", "a", 1);
2250
- C.attrs = [["href", E]], C.level = f++, C.markup = "linkify", C.info = "auto", l.push(C);
2251
- const v = new u.Token("text", "", 0);
2252
- v.content = x, v.level = f, l.push(v);
2253
- const h = new u.Token("link_close", "a", -1);
2254
- h.level = --f, h.markup = "linkify", h.info = "auto", l.push(h), m = s[p].lastIndex;
2249
+ const E = new u.Token("link_open", "a", 1);
2250
+ E.attrs = [["href", v]], E.level = f++, E.markup = "linkify", E.info = "auto", l.push(E);
2251
+ const y = new u.Token("text", "", 0);
2252
+ y.content = k, y.level = f, l.push(y);
2253
+ const p = new u.Token("link_close", "a", -1);
2254
+ p.level = --f, p.markup = "linkify", p.info = "auto", l.push(p), m = s[b].lastIndex;
2255
2255
  }
2256
2256
  if (m < a.length) {
2257
- const p = new u.Token("text", "", 0);
2258
- p.content = a.slice(m), p.level = f, l.push(p);
2257
+ const b = new u.Token("text", "", 0);
2258
+ b.content = a.slice(m), b.level = f, l.push(b);
2259
2259
  }
2260
2260
  e[t].children = r = Vt(r, c, l);
2261
2261
  }
@@ -2312,7 +2312,7 @@ function Ar(u, e) {
2312
2312
  break;
2313
2313
  let f = !0, m = !0;
2314
2314
  a = l.index + 1;
2315
- const p = l[0] === "'";
2315
+ const b = l[0] === "'";
2316
2316
  let d = 32;
2317
2317
  if (l.index - 1 >= 0)
2318
2318
  d = i.charCodeAt(l.index - 1);
@@ -2322,42 +2322,42 @@ function Ar(u, e) {
2322
2322
  d = u[t].content.charCodeAt(u[t].content.length - 1);
2323
2323
  break;
2324
2324
  }
2325
- let E = 32;
2325
+ let v = 32;
2326
2326
  if (a < s)
2327
- E = i.charCodeAt(a);
2327
+ v = i.charCodeAt(a);
2328
2328
  else
2329
2329
  for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
2330
2330
  if (u[t].content) {
2331
- E = u[t].content.charCodeAt(0);
2331
+ v = u[t].content.charCodeAt(0);
2332
2332
  break;
2333
2333
  }
2334
- const x = Iu(d) || Tu(String.fromCharCode(d)), A = Iu(E) || Tu(String.fromCharCode(E)), C = Su(d), v = Su(E);
2335
- if (v ? f = !1 : A && (C || x || (f = !1)), C ? m = !1 : x && (v || A || (m = !1)), E === 34 && l[0] === '"' && d >= 48 && d <= 57 && (m = f = !1), f && m && (f = x, m = A), !f && !m) {
2336
- p && (o.content = Mu(o.content, l.index, ot));
2334
+ const k = Iu(d) || Tu(String.fromCharCode(d)), F = Iu(v) || Tu(String.fromCharCode(v)), E = Su(d), y = Su(v);
2335
+ if (y ? f = !1 : F && (E || k || (f = !1)), E ? m = !1 : k && (y || F || (m = !1)), v === 34 && l[0] === '"' && d >= 48 && d <= 57 && (m = f = !1), f && m && (f = k, m = F), !f && !m) {
2336
+ b && (o.content = Mu(o.content, l.index, ot));
2337
2337
  continue;
2338
2338
  }
2339
2339
  if (m)
2340
2340
  for (t = n.length - 1; t >= 0; t--) {
2341
- let h = n[t];
2341
+ let p = n[t];
2342
2342
  if (n[t].level < c)
2343
2343
  break;
2344
- if (h.single === p && n[t].level === c) {
2345
- h = n[t];
2346
- let y, b;
2347
- p ? (y = e.md.options.quotes[2], b = e.md.options.quotes[3]) : (y = e.md.options.quotes[0], b = e.md.options.quotes[1]), o.content = Mu(o.content, l.index, b), u[h.token].content = Mu(
2348
- u[h.token].content,
2349
- h.pos,
2350
- y
2351
- ), a += b.length - 1, h.token === r && (a += y.length - 1), i = o.content, s = i.length, n.length = t;
2344
+ if (p.single === b && n[t].level === c) {
2345
+ p = n[t];
2346
+ let g, h;
2347
+ b ? (g = e.md.options.quotes[2], h = e.md.options.quotes[3]) : (g = e.md.options.quotes[0], h = e.md.options.quotes[1]), o.content = Mu(o.content, l.index, h), u[p.token].content = Mu(
2348
+ u[p.token].content,
2349
+ p.pos,
2350
+ g
2351
+ ), a += h.length - 1, p.token === r && (a += g.length - 1), i = o.content, s = i.length, n.length = t;
2352
2352
  continue u;
2353
2353
  }
2354
2354
  }
2355
2355
  f ? n.push({
2356
2356
  token: r,
2357
2357
  pos: l.index,
2358
- single: p,
2358
+ single: b,
2359
2359
  level: c
2360
- }) : m && p && (o.content = Mu(o.content, l.index, ot));
2360
+ }) : m && b && (o.content = Mu(o.content, l.index, ot));
2361
2361
  }
2362
2362
  }
2363
2363
  }
@@ -2508,23 +2508,23 @@ function Ir(u, e, t, n) {
2508
2508
  if (i !== 124 && i !== 45 && i !== 58 && !B(i) || c === 45 && B(i))
2509
2509
  return !1;
2510
2510
  for (; o < u.eMarks[r]; ) {
2511
- const h = u.src.charCodeAt(o);
2512
- if (h !== 124 && h !== 45 && h !== 58 && !B(h))
2511
+ const p = u.src.charCodeAt(o);
2512
+ if (p !== 124 && p !== 45 && p !== 58 && !B(p))
2513
2513
  return !1;
2514
2514
  o++;
2515
2515
  }
2516
2516
  let a = oe(u, e + 1), s = a.split("|");
2517
2517
  const l = [];
2518
- for (let h = 0; h < s.length; h++) {
2519
- const y = s[h].trim();
2520
- if (!y) {
2521
- if (h === 0 || h === s.length - 1)
2518
+ for (let p = 0; p < s.length; p++) {
2519
+ const g = s[p].trim();
2520
+ if (!g) {
2521
+ if (p === 0 || p === s.length - 1)
2522
2522
  continue;
2523
2523
  return !1;
2524
2524
  }
2525
- if (!/^:?-+:?$/.test(y))
2525
+ if (!/^:?-+:?$/.test(g))
2526
2526
  return !1;
2527
- y.charCodeAt(y.length - 1) === 58 ? l.push(y.charCodeAt(0) === 58 ? "center" : "right") : y.charCodeAt(0) === 58 ? l.push("left") : l.push("");
2527
+ g.charCodeAt(g.length - 1) === 58 ? l.push(g.charCodeAt(0) === 58 ? "center" : "right") : g.charCodeAt(0) === 58 ? l.push("left") : l.push("");
2528
2528
  }
2529
2529
  if (a = oe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
2530
2530
  return !1;
@@ -2536,44 +2536,44 @@ function Ir(u, e, t, n) {
2536
2536
  return !0;
2537
2537
  const m = u.parentType;
2538
2538
  u.parentType = "table";
2539
- const p = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), E = [e, 0];
2540
- d.map = E;
2541
- const x = u.push("thead_open", "thead", 1);
2542
- x.map = [e, e + 1];
2543
- const A = u.push("tr_open", "tr", 1);
2544
- A.map = [e, e + 1];
2545
- for (let h = 0; h < s.length; h++) {
2546
- const y = u.push("th_open", "th", 1);
2547
- l[h] && (y.attrs = [["style", "text-align:" + l[h]]]);
2548
- const b = u.push("inline", "", 0);
2549
- b.content = s[h].trim(), b.children = [], u.push("th_close", "th", -1);
2539
+ const b = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), v = [e, 0];
2540
+ d.map = v;
2541
+ const k = u.push("thead_open", "thead", 1);
2542
+ k.map = [e, e + 1];
2543
+ const F = u.push("tr_open", "tr", 1);
2544
+ F.map = [e, e + 1];
2545
+ for (let p = 0; p < s.length; p++) {
2546
+ const g = u.push("th_open", "th", 1);
2547
+ l[p] && (g.attrs = [["style", "text-align:" + l[p]]]);
2548
+ const h = u.push("inline", "", 0);
2549
+ h.content = s[p].trim(), h.children = [], u.push("th_close", "th", -1);
2550
2550
  }
2551
2551
  u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
2552
- let C, v = 0;
2552
+ let E, y = 0;
2553
2553
  for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
2554
- let h = !1;
2555
- for (let b = 0, _ = p.length; b < _; b++)
2556
- if (p[b](u, r, t, !0)) {
2557
- h = !0;
2554
+ let p = !1;
2555
+ for (let h = 0, x = b.length; h < x; h++)
2556
+ if (b[h](u, r, t, !0)) {
2557
+ p = !0;
2558
2558
  break;
2559
2559
  }
2560
- if (h || (a = oe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ct(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), v += f - s.length, v > Tr))
2560
+ if (p || (a = oe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ct(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), y += f - s.length, y > Tr))
2561
2561
  break;
2562
2562
  if (r === e + 2) {
2563
- const b = u.push("tbody_open", "tbody", 1);
2564
- b.map = C = [e + 2, 0];
2563
+ const h = u.push("tbody_open", "tbody", 1);
2564
+ h.map = E = [e + 2, 0];
2565
2565
  }
2566
- const y = u.push("tr_open", "tr", 1);
2567
- y.map = [r, r + 1];
2568
- for (let b = 0; b < f; b++) {
2569
- const _ = u.push("td_open", "td", 1);
2570
- l[b] && (_.attrs = [["style", "text-align:" + l[b]]]);
2566
+ const g = u.push("tr_open", "tr", 1);
2567
+ g.map = [r, r + 1];
2568
+ for (let h = 0; h < f; h++) {
2569
+ const x = u.push("td_open", "td", 1);
2570
+ l[h] && (x.attrs = [["style", "text-align:" + l[h]]]);
2571
2571
  const D = u.push("inline", "", 0);
2572
- D.content = s[b] ? s[b].trim() : "", D.children = [], u.push("td_close", "td", -1);
2572
+ D.content = s[h] ? s[h].trim() : "", D.children = [], u.push("td_close", "td", -1);
2573
2573
  }
2574
2574
  u.push("tr_close", "tr", -1);
2575
2575
  }
2576
- return C && (u.push("tbody_close", "tbody", -1), C[1] = r), u.push("table_close", "table", -1), E[1] = r, u.parentType = m, u.line = r, !0;
2576
+ return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), v[1] = r, u.parentType = m, u.line = r, !0;
2577
2577
  }
2578
2578
  function Nr(u, e, t) {
2579
2579
  if (u.sCount[e] - u.blkIndent < 4)
@@ -2619,8 +2619,8 @@ function Lr(u, e, t, n) {
2619
2619
  break;
2620
2620
  }
2621
2621
  a = u.sCount[e], u.line = f + (m ? 1 : 0);
2622
- const p = u.push("fence", "code", 0);
2623
- return p.info = l, p.content = u.getLines(e + 1, f, a, !0), p.markup = s, p.map = [e, u.line], !0;
2622
+ const b = u.push("fence", "code", 0);
2623
+ return b.info = l, b.content = u.getLines(e + 1, f, a, !0), b.markup = s, b.map = [e, u.line], !0;
2624
2624
  }
2625
2625
  function Or(u, e, t, n) {
2626
2626
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
@@ -2631,51 +2631,51 @@ function Or(u, e, t, n) {
2631
2631
  return !0;
2632
2632
  const i = [], a = [], s = [], l = [], f = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
2633
2633
  u.parentType = "blockquote";
2634
- let p = !1, d;
2634
+ let b = !1, d;
2635
2635
  for (d = e; d < t; d++) {
2636
- const v = u.sCount[d] < u.blkIndent;
2636
+ const y = u.sCount[d] < u.blkIndent;
2637
2637
  if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
2638
2638
  break;
2639
- if (u.src.charCodeAt(r++) === 62 && !v) {
2640
- let y = u.sCount[d] + 1, b, _;
2641
- u.src.charCodeAt(r) === 32 ? (r++, y++, _ = !1, b = !0) : u.src.charCodeAt(r) === 9 ? (b = !0, (u.bsCount[d] + y) % 4 === 3 ? (r++, y++, _ = !1) : _ = !0) : b = !1;
2642
- let D = y;
2639
+ if (u.src.charCodeAt(r++) === 62 && !y) {
2640
+ let g = u.sCount[d] + 1, h, x;
2641
+ u.src.charCodeAt(r) === 32 ? (r++, g++, x = !1, h = !0) : u.src.charCodeAt(r) === 9 ? (h = !0, (u.bsCount[d] + g) % 4 === 3 ? (r++, g++, x = !1) : x = !0) : h = !1;
2642
+ let D = g;
2643
2643
  for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
2644
- const I = u.src.charCodeAt(r);
2645
- if (B(I))
2646
- I === 9 ? D += 4 - (D + u.bsCount[d] + (_ ? 1 : 0)) % 4 : D++;
2644
+ const T = u.src.charCodeAt(r);
2645
+ if (B(T))
2646
+ T === 9 ? D += 4 - (D + u.bsCount[d] + (x ? 1 : 0)) % 4 : D++;
2647
2647
  else
2648
2648
  break;
2649
2649
  r++;
2650
2650
  }
2651
- p = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (b ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = D - y, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2651
+ b = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (h ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = D - g, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2652
2652
  continue;
2653
2653
  }
2654
- if (p)
2654
+ if (b)
2655
2655
  break;
2656
- let h = !1;
2657
- for (let y = 0, b = f.length; y < b; y++)
2658
- if (f[y](u, d, t, !0)) {
2659
- h = !0;
2656
+ let p = !1;
2657
+ for (let g = 0, h = f.length; g < h; g++)
2658
+ if (f[g](u, d, t, !0)) {
2659
+ p = !0;
2660
2660
  break;
2661
2661
  }
2662
- if (h) {
2662
+ if (p) {
2663
2663
  u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
2664
2664
  break;
2665
2665
  }
2666
2666
  i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] = -1;
2667
2667
  }
2668
- const E = u.blkIndent;
2668
+ const v = u.blkIndent;
2669
2669
  u.blkIndent = 0;
2670
- const x = u.push("blockquote_open", "blockquote", 1);
2671
- x.markup = ">";
2672
- const A = [e, 0];
2673
- x.map = A, u.md.block.tokenize(u, e, d);
2674
- const C = u.push("blockquote_close", "blockquote", -1);
2675
- C.markup = ">", u.lineMax = c, u.parentType = m, A[1] = u.line;
2676
- for (let v = 0; v < l.length; v++)
2677
- u.bMarks[v + e] = i[v], u.tShift[v + e] = l[v], u.sCount[v + e] = s[v], u.bsCount[v + e] = a[v];
2678
- return u.blkIndent = E, !0;
2670
+ const k = u.push("blockquote_open", "blockquote", 1);
2671
+ k.markup = ">";
2672
+ const F = [e, 0];
2673
+ k.map = F, u.md.block.tokenize(u, e, d);
2674
+ const E = u.push("blockquote_close", "blockquote", -1);
2675
+ E.markup = ">", u.lineMax = c, u.parentType = m, F[1] = u.line;
2676
+ for (let y = 0; y < l.length; y++)
2677
+ u.bMarks[y + e] = i[y], u.tShift[y + e] = l[y], u.sCount[y + e] = s[y], u.bsCount[y + e] = a[y];
2678
+ return u.blkIndent = v, !0;
2679
2679
  }
2680
2680
  function Br(u, e, t, n) {
2681
2681
  const r = u.eMarks[e];
@@ -2746,116 +2746,116 @@ function Mr(u, e, t, n) {
2746
2746
  return !1;
2747
2747
  let l = !1;
2748
2748
  n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
2749
- let f, m, p;
2750
- if ((p = at(u, a)) >= 0) {
2751
- if (f = !0, c = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(c, p - 1)), l && m !== 1) return !1;
2752
- } else if ((p = it(u, a)) >= 0)
2749
+ let f, m, b;
2750
+ if ((b = at(u, a)) >= 0) {
2751
+ if (f = !0, c = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(c, b - 1)), l && m !== 1) return !1;
2752
+ } else if ((b = it(u, a)) >= 0)
2753
2753
  f = !1;
2754
2754
  else
2755
2755
  return !1;
2756
- if (l && u.skipSpaces(p) >= u.eMarks[a])
2756
+ if (l && u.skipSpaces(b) >= u.eMarks[a])
2757
2757
  return !1;
2758
2758
  if (n)
2759
2759
  return !0;
2760
- const d = u.src.charCodeAt(p - 1), E = u.tokens.length;
2760
+ const d = u.src.charCodeAt(b - 1), v = u.tokens.length;
2761
2761
  f ? (i = u.push("ordered_list_open", "ol", 1), m !== 1 && (i.attrs = [["start", m]])) : i = u.push("bullet_list_open", "ul", 1);
2762
- const x = [a, 0];
2763
- i.map = x, i.markup = String.fromCharCode(d);
2764
- let A = !1;
2765
- const C = u.md.block.ruler.getRules("list"), v = u.parentType;
2762
+ const k = [a, 0];
2763
+ i.map = k, i.markup = String.fromCharCode(d);
2764
+ let F = !1;
2765
+ const E = u.md.block.ruler.getRules("list"), y = u.parentType;
2766
2766
  for (u.parentType = "list"; a < t; ) {
2767
- o = p, r = u.eMarks[a];
2768
- const h = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
2769
- let y = h;
2767
+ o = b, r = u.eMarks[a];
2768
+ const p = u.sCount[a] + b - (u.bMarks[a] + u.tShift[a]);
2769
+ let g = p;
2770
2770
  for (; o < r; ) {
2771
2771
  const M = u.src.charCodeAt(o);
2772
2772
  if (M === 9)
2773
- y += 4 - (y + u.bsCount[a]) % 4;
2773
+ g += 4 - (g + u.bsCount[a]) % 4;
2774
2774
  else if (M === 32)
2775
- y++;
2775
+ g++;
2776
2776
  else
2777
2777
  break;
2778
2778
  o++;
2779
2779
  }
2780
- const b = o;
2781
- let _;
2782
- b >= r ? _ = 1 : _ = y - h, _ > 4 && (_ = 1);
2783
- const D = h + _;
2780
+ const h = o;
2781
+ let x;
2782
+ h >= r ? x = 1 : x = g - p, x > 4 && (x = 1);
2783
+ const D = p + x;
2784
2784
  i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
2785
- const I = [a, 0];
2786
- i.map = I, f && (i.info = u.src.slice(c, p - 1));
2787
- const T = u.tight, j = u.tShift[a], L = u.sCount[a], R = u.listIndent;
2788
- if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = b - u.bMarks[a], u.sCount[a] = y, b >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || A) && (s = !1), A = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = R, u.tShift[a] = j, u.sCount[a] = L, u.tight = T, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, I[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2785
+ const T = [a, 0];
2786
+ i.map = T, f && (i.info = u.src.slice(c, b - 1));
2787
+ const I = u.tight, j = u.tShift[a], L = u.sCount[a], R = u.listIndent;
2788
+ if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = h - u.bMarks[a], u.sCount[a] = g, h >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || F) && (s = !1), F = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = R, u.tShift[a] = j, u.sCount[a] = L, u.tight = I, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, T[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2789
2789
  break;
2790
2790
  let Q = !1;
2791
- for (let M = 0, uu = C.length; M < uu; M++)
2792
- if (C[M](u, a, t, !0)) {
2791
+ for (let M = 0, uu = E.length; M < uu; M++)
2792
+ if (E[M](u, a, t, !0)) {
2793
2793
  Q = !0;
2794
2794
  break;
2795
2795
  }
2796
2796
  if (Q)
2797
2797
  break;
2798
2798
  if (f) {
2799
- if (p = at(u, a), p < 0)
2799
+ if (b = at(u, a), b < 0)
2800
2800
  break;
2801
2801
  c = u.bMarks[a] + u.tShift[a];
2802
- } else if (p = it(u, a), p < 0)
2802
+ } else if (b = it(u, a), b < 0)
2803
2803
  break;
2804
- if (d !== u.src.charCodeAt(p - 1))
2804
+ if (d !== u.src.charCodeAt(b - 1))
2805
2805
  break;
2806
2806
  }
2807
- return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), x[1] = a, u.line = a, u.parentType = v, s && Pr(u, E), !0;
2807
+ return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), k[1] = a, u.line = a, u.parentType = y, s && Pr(u, v), !0;
2808
2808
  }
2809
2809
  function jr(u, e, t, n) {
2810
2810
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
2811
2811
  if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
2812
2812
  return !1;
2813
- function i(C) {
2814
- const v = u.lineMax;
2815
- if (C >= v || u.isEmpty(C))
2813
+ function i(E) {
2814
+ const y = u.lineMax;
2815
+ if (E >= y || u.isEmpty(E))
2816
2816
  return null;
2817
- let h = !1;
2818
- if (u.sCount[C] - u.blkIndent > 3 && (h = !0), u.sCount[C] < 0 && (h = !0), !h) {
2819
- const _ = u.md.block.ruler.getRules("reference"), D = u.parentType;
2817
+ let p = !1;
2818
+ if (u.sCount[E] - u.blkIndent > 3 && (p = !0), u.sCount[E] < 0 && (p = !0), !p) {
2819
+ const x = u.md.block.ruler.getRules("reference"), D = u.parentType;
2820
2820
  u.parentType = "reference";
2821
- let I = !1;
2822
- for (let T = 0, j = _.length; T < j; T++)
2823
- if (_[T](u, C, v, !0)) {
2824
- I = !0;
2821
+ let T = !1;
2822
+ for (let I = 0, j = x.length; I < j; I++)
2823
+ if (x[I](u, E, y, !0)) {
2824
+ T = !0;
2825
2825
  break;
2826
2826
  }
2827
- if (u.parentType = D, I)
2827
+ if (u.parentType = D, T)
2828
2828
  return null;
2829
2829
  }
2830
- const y = u.bMarks[C] + u.tShift[C], b = u.eMarks[C];
2831
- return u.src.slice(y, b + 1);
2830
+ const g = u.bMarks[E] + u.tShift[E], h = u.eMarks[E];
2831
+ return u.src.slice(g, h + 1);
2832
2832
  }
2833
2833
  let a = u.src.slice(r, o + 1);
2834
2834
  o = a.length;
2835
2835
  let s = -1;
2836
2836
  for (r = 1; r < o; r++) {
2837
- const C = a.charCodeAt(r);
2838
- if (C === 91)
2837
+ const E = a.charCodeAt(r);
2838
+ if (E === 91)
2839
2839
  return !1;
2840
- if (C === 93) {
2840
+ if (E === 93) {
2841
2841
  s = r;
2842
2842
  break;
2843
- } else if (C === 10) {
2844
- const v = i(c);
2845
- v !== null && (a += v, o = a.length, c++);
2846
- } else if (C === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
2847
- const v = i(c);
2848
- v !== null && (a += v, o = a.length, c++);
2843
+ } else if (E === 10) {
2844
+ const y = i(c);
2845
+ y !== null && (a += y, o = a.length, c++);
2846
+ } else if (E === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
2847
+ const y = i(c);
2848
+ y !== null && (a += y, o = a.length, c++);
2849
2849
  }
2850
2850
  }
2851
2851
  if (s < 0 || a.charCodeAt(s + 1) !== 58)
2852
2852
  return !1;
2853
2853
  for (r = s + 2; r < o; r++) {
2854
- const C = a.charCodeAt(r);
2855
- if (C === 10) {
2856
- const v = i(c);
2857
- v !== null && (a += v, o = a.length, c++);
2858
- } else if (!B(C)) break;
2854
+ const E = a.charCodeAt(r);
2855
+ if (E === 10) {
2856
+ const y = i(c);
2857
+ y !== null && (a += y, o = a.length, c++);
2858
+ } else if (!B(E)) break;
2859
2859
  }
2860
2860
  const l = u.md.helpers.parseLinkDestination(a, r, o);
2861
2861
  if (!l.ok)
@@ -2864,38 +2864,38 @@ function jr(u, e, t, n) {
2864
2864
  if (!u.md.validateLink(f))
2865
2865
  return !1;
2866
2866
  r = l.pos;
2867
- const m = r, p = c, d = r;
2867
+ const m = r, b = c, d = r;
2868
2868
  for (; r < o; r++) {
2869
- const C = a.charCodeAt(r);
2870
- if (C === 10) {
2871
- const v = i(c);
2872
- v !== null && (a += v, o = a.length, c++);
2873
- } else if (!B(C)) break;
2874
- }
2875
- let E = u.md.helpers.parseLinkTitle(a, r, o);
2876
- for (; E.can_continue; ) {
2877
- const C = i(c);
2878
- if (C === null) break;
2879
- a += C, r = o, o = a.length, c++, E = u.md.helpers.parseLinkTitle(a, r, o, E);
2880
- }
2881
- let x;
2882
- for (r < o && d !== r && E.ok ? (x = E.str, r = E.pos) : (x = "", r = m, c = p); r < o; ) {
2883
- const C = a.charCodeAt(r);
2884
- if (!B(C))
2869
+ const E = a.charCodeAt(r);
2870
+ if (E === 10) {
2871
+ const y = i(c);
2872
+ y !== null && (a += y, o = a.length, c++);
2873
+ } else if (!B(E)) break;
2874
+ }
2875
+ let v = u.md.helpers.parseLinkTitle(a, r, o);
2876
+ for (; v.can_continue; ) {
2877
+ const E = i(c);
2878
+ if (E === null) break;
2879
+ a += E, r = o, o = a.length, c++, v = u.md.helpers.parseLinkTitle(a, r, o, v);
2880
+ }
2881
+ let k;
2882
+ for (r < o && d !== r && v.ok ? (k = v.str, r = v.pos) : (k = "", r = m, c = b); r < o; ) {
2883
+ const E = a.charCodeAt(r);
2884
+ if (!B(E))
2885
2885
  break;
2886
2886
  r++;
2887
2887
  }
2888
- if (r < o && a.charCodeAt(r) !== 10 && x)
2889
- for (x = "", r = m, c = p; r < o; ) {
2890
- const C = a.charCodeAt(r);
2891
- if (!B(C))
2888
+ if (r < o && a.charCodeAt(r) !== 10 && k)
2889
+ for (k = "", r = m, c = b; r < o; ) {
2890
+ const E = a.charCodeAt(r);
2891
+ if (!B(E))
2892
2892
  break;
2893
2893
  r++;
2894
2894
  }
2895
2895
  if (r < o && a.charCodeAt(r) !== 10)
2896
2896
  return !1;
2897
- const A = Ju(a.slice(1, s));
2898
- return A ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[A] > "u" && (u.env.references[A] = { title: x, href: f }), u.line = c), !0) : !1;
2897
+ const F = Ju(a.slice(1, s));
2898
+ return F ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[F] > "u" && (u.env.references[F] = { title: k, href: f }), u.line = c), !0) : !1;
2899
2899
  }
2900
2900
  const zr = [
2901
2901
  "address",
@@ -2960,7 +2960,7 @@ const zr = [
2960
2960
  "tr",
2961
2961
  "track",
2962
2962
  "ul"
2963
- ], Rr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", qr = "[^\"'=<>`\\x00-\\x20]+", Vr = "'[^']*'", $r = '"[^"]*"', Hr = "(?:" + qr + "|" + Vr + "|" + $r + ")", Ur = "(?:\\s+" + Rr + "(?:\\s*=\\s*" + Hr + ")?)", Zt = "<[A-Za-z][A-Za-z0-9\\-]*" + Ur + "*\\s*\\/?>", Gt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Zr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Gr = "<[?][\\s\\S]*?[?]>", Wr = "<![A-Za-z][^>]*>", Qr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Jr = new RegExp("^(?:" + Zt + "|" + Gt + "|" + Zr + "|" + Gr + "|" + Wr + "|" + Qr + ")"), Kr = new RegExp("^(?:" + Zt + "|" + Gt + ")"), xu = [
2963
+ ], Rr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", qr = "[^\"'=<>`\\x00-\\x20]+", Vr = "'[^']*'", $r = '"[^"]*"', Hr = "(?:" + qr + "|" + Vr + "|" + $r + ")", Ur = "(?:\\s+" + Rr + "(?:\\s*=\\s*" + Hr + ")?)", Zt = "<[A-Za-z][A-Za-z0-9\\-]*" + Ur + "*\\s*\\/?>", Gt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Zr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Gr = "<[?][\\s\\S]*?[?]>", Wr = "<![A-Za-z][^>]*>", Qr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Jr = new RegExp("^(?:" + Zt + "|" + Gt + "|" + Zr + "|" + Gr + "|" + Wr + "|" + Qr + ")"), Kr = new RegExp("^(?:" + Zt + "|" + Gt + ")"), gu = [
2964
2964
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
2965
2965
  [/^<!--/, /-->/, !0],
2966
2966
  [/^<\?/, /\?>/, !0],
@@ -2974,16 +2974,16 @@ function Yr(u, e, t, n) {
2974
2974
  if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
2975
2975
  return !1;
2976
2976
  let c = u.src.slice(r, o), i = 0;
2977
- for (; i < xu.length && !xu[i][0].test(c); i++)
2977
+ for (; i < gu.length && !gu[i][0].test(c); i++)
2978
2978
  ;
2979
- if (i === xu.length)
2979
+ if (i === gu.length)
2980
2980
  return !1;
2981
2981
  if (n)
2982
- return xu[i][2];
2982
+ return gu[i][2];
2983
2983
  let a = e + 1;
2984
- if (!xu[i][1].test(c)) {
2984
+ if (!gu[i][1].test(c)) {
2985
2985
  for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
2986
- if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), xu[i][1].test(c)) {
2986
+ if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), gu[i][1].test(c)) {
2987
2987
  c.length !== 0 && a++;
2988
2988
  break;
2989
2989
  }
@@ -3027,9 +3027,9 @@ function uo(u, e, t) {
3027
3027
  if (u.sCount[i] - u.blkIndent > 3)
3028
3028
  continue;
3029
3029
  if (u.sCount[i] >= u.blkIndent) {
3030
- let p = u.bMarks[i] + u.tShift[i];
3030
+ let b = u.bMarks[i] + u.tShift[i];
3031
3031
  const d = u.eMarks[i];
3032
- if (p < d && (c = u.src.charCodeAt(p), (c === 45 || c === 61) && (p = u.skipChars(p, c), p = u.skipSpaces(p), p >= d))) {
3032
+ if (b < d && (c = u.src.charCodeAt(b), (c === 45 || c === 61) && (b = u.skipChars(b, c), b = u.skipSpaces(b), b >= d))) {
3033
3033
  o = c === 61 ? 1 : 2;
3034
3034
  break;
3035
3035
  }
@@ -3037,8 +3037,8 @@ function uo(u, e, t) {
3037
3037
  if (u.sCount[i] < 0)
3038
3038
  continue;
3039
3039
  let m = !1;
3040
- for (let p = 0, d = n.length; p < d; p++)
3041
- if (n[p](u, i, t, !0)) {
3040
+ for (let b = 0, d = n.length; b < d; b++)
3041
+ if (n[b](u, i, t, !0)) {
3042
3042
  m = !0;
3043
3043
  break;
3044
3044
  }
@@ -3143,8 +3143,8 @@ Bu.prototype.scanDelims = function(u, e) {
3143
3143
  let o = u;
3144
3144
  for (; o < t && this.src.charCodeAt(o) === n; )
3145
3145
  o++;
3146
- const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Iu(r) || Tu(String.fromCharCode(r)), s = Iu(i) || Tu(String.fromCharCode(i)), l = Su(r), f = Su(i), m = !f && (!s || l || a), p = !l && (!a || f || s);
3147
- return { can_open: m && (e || !p || a), can_close: p && (e || !m || s), length: c };
3146
+ const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Iu(r) || Tu(String.fromCharCode(r)), s = Iu(i) || Tu(String.fromCharCode(i)), l = Su(r), f = Su(i), m = !f && (!s || l || a), b = !l && (!a || f || s);
3147
+ return { can_open: m && (e || !b || a), can_close: b && (e || !m || s), length: c };
3148
3148
  };
3149
3149
  Bu.prototype.Token = X;
3150
3150
  function to(u) {
@@ -3392,10 +3392,10 @@ function po(u, e) {
3392
3392
  let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
3393
3393
  if (u.src.charCodeAt(u.pos) !== 91)
3394
3394
  return !1;
3395
- const l = u.pos, f = u.posMax, m = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
3396
- if (p < 0)
3395
+ const l = u.pos, f = u.posMax, m = u.pos + 1, b = u.md.helpers.parseLinkLabel(u, u.pos, !0);
3396
+ if (b < 0)
3397
3397
  return !1;
3398
- let d = p + 1;
3398
+ let d = b + 1;
3399
3399
  if (d < f && u.src.charCodeAt(d) === 40) {
3400
3400
  for (s = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!B(t) && t !== 10)); d++)
3401
3401
  ;
@@ -3413,14 +3413,14 @@ function po(u, e) {
3413
3413
  if (s) {
3414
3414
  if (typeof u.env.references > "u")
3415
3415
  return !1;
3416
- if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d = p + 1) : d = p + 1, n || (n = u.src.slice(m, p)), o = u.env.references[Ju(n)], !o)
3416
+ if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d = b + 1) : d = b + 1, n || (n = u.src.slice(m, b)), o = u.env.references[Ju(n)], !o)
3417
3417
  return u.pos = l, !1;
3418
3418
  c = o.href, i = o.title;
3419
3419
  }
3420
3420
  if (!e) {
3421
- u.pos = m, u.posMax = p;
3422
- const E = u.push("link_open", "a", 1), x = [["href", c]];
3423
- E.attrs = x, i && x.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
3421
+ u.pos = m, u.posMax = b;
3422
+ const v = u.push("link_open", "a", 1), k = [["href", c]];
3423
+ v.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
3424
3424
  }
3425
3425
  return u.pos = d, u.posMax = f, !0;
3426
3426
  }
@@ -3429,7 +3429,7 @@ function bo(u, e) {
3429
3429
  const f = u.pos, m = u.posMax;
3430
3430
  if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
3431
3431
  return !1;
3432
- const p = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
3432
+ const b = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
3433
3433
  if (d < 0)
3434
3434
  return !1;
3435
3435
  if (o = d + 1, o < m && u.src.charCodeAt(o) === 40) {
@@ -3450,21 +3450,21 @@ function bo(u, e) {
3450
3450
  } else {
3451
3451
  if (typeof u.env.references > "u")
3452
3452
  return !1;
3453
- if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(p, d)), c = u.env.references[Ju(r)], !c)
3453
+ if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(b, d)), c = u.env.references[Ju(r)], !c)
3454
3454
  return u.pos = f, !1;
3455
3455
  l = c.href, a = c.title;
3456
3456
  }
3457
3457
  if (!e) {
3458
- n = u.src.slice(p, d);
3459
- const E = [];
3458
+ n = u.src.slice(b, d);
3459
+ const v = [];
3460
3460
  u.md.inline.parse(
3461
3461
  n,
3462
3462
  u.md,
3463
3463
  u.env,
3464
- E
3464
+ v
3465
3465
  );
3466
- const x = u.push("image", "img", 0), A = [["src", l], ["alt", ""]];
3467
- x.attrs = A, x.children = E, x.content = n, a && A.push(["title", a]);
3466
+ const k = u.push("image", "img", 0), F = [["src", l], ["alt", ""]];
3467
+ k.attrs = F, k.children = v, k.content = n, a && F.push(["title", a]);
3468
3468
  }
3469
3469
  return u.pos = o, u.posMax = m, !0;
3470
3470
  }
@@ -3583,8 +3583,8 @@ function ft(u) {
3583
3583
  if (f.marker === i.marker && f.open && f.end < 0) {
3584
3584
  let m = !1;
3585
3585
  if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (m = !0), !m) {
3586
- const p = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
3587
- o[c] = c - s + p, o[s] = p, i.open = !1, f.end = c, f.close = !1, l = -1, r = -2;
3586
+ const b = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
3587
+ o[c] = c - s + b, o[s] = b, i.open = !1, f.end = c, f.close = !1, l = -1, r = -2;
3588
3588
  break;
3589
3589
  }
3590
3590
  }
@@ -3877,7 +3877,7 @@ W.prototype.normalize = function(e) {
3877
3877
  };
3878
3878
  W.prototype.onCompile = function() {
3879
3879
  };
3880
- const gu = 2147483647, tu = 36, Ne = 1, Nu = 26, Ro = 38, qo = 700, Kt = 72, Yt = 128, Xt = "-", Vo = /^xn--/, $o = /[^\0-\x7F]/, Ho = /[\x2E\u3002\uFF0E\uFF61]/g, Uo = {
3880
+ const _u = 2147483647, tu = 36, Ne = 1, Nu = 26, Ro = 38, qo = 700, Kt = 72, Yt = 128, Xt = "-", Vo = /^xn--/, $o = /[^\0-\x7F]/, Ho = /[\x2E\u3002\uFF0E\uFF61]/g, Uo = {
3881
3881
  overflow: "Overflow: input needs wider integers to process",
3882
3882
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3883
3883
  "invalid-input": "Invalid input"
@@ -3933,15 +3933,15 @@ const Go = (u) => String.fromCodePoint(...u), Wo = function(u) {
3933
3933
  for (let l = 1, f = tu; ; f += tu) {
3934
3934
  i >= t && fu("invalid-input");
3935
3935
  const m = Wo(u.charCodeAt(i++));
3936
- m >= tu && fu("invalid-input"), m > nu((gu - n) / l) && fu("overflow"), n += m * l;
3937
- const p = f <= o ? Ne : f >= o + Nu ? Nu : f - o;
3938
- if (m < p)
3936
+ m >= tu && fu("invalid-input"), m > nu((_u - n) / l) && fu("overflow"), n += m * l;
3937
+ const b = f <= o ? Ne : f >= o + Nu ? Nu : f - o;
3938
+ if (m < b)
3939
3939
  break;
3940
- const d = tu - p;
3941
- l > nu(gu / d) && fu("overflow"), l *= d;
3940
+ const d = tu - b;
3941
+ l > nu(_u / d) && fu("overflow"), l *= d;
3942
3942
  }
3943
3943
  const s = e.length + 1;
3944
- o = t0(n - a, s, a == 0), nu(n / s) > gu - r && fu("overflow"), r += nu(n / s), n %= s, e.splice(n++, 0, r);
3944
+ o = t0(n - a, s, a == 0), nu(n / s) > _u - r && fu("overflow"), r += nu(n / s), n %= s, e.splice(n++, 0, r);
3945
3945
  }
3946
3946
  return String.fromCodePoint(...e);
3947
3947
  }, r0 = function(u) {
@@ -3954,22 +3954,22 @@ const Go = (u) => String.fromCodePoint(...u), Wo = function(u) {
3954
3954
  const c = e.length;
3955
3955
  let i = c;
3956
3956
  for (c && e.push(Xt); i < t; ) {
3957
- let a = gu;
3957
+ let a = _u;
3958
3958
  for (const l of u)
3959
3959
  l >= n && l < a && (a = l);
3960
3960
  const s = i + 1;
3961
- a - n > nu((gu - r) / s) && fu("overflow"), r += (a - n) * s, n = a;
3961
+ a - n > nu((_u - r) / s) && fu("overflow"), r += (a - n) * s, n = a;
3962
3962
  for (const l of u)
3963
- if (l < n && ++r > gu && fu("overflow"), l === n) {
3963
+ if (l < n && ++r > _u && fu("overflow"), l === n) {
3964
3964
  let f = r;
3965
3965
  for (let m = tu; ; m += tu) {
3966
- const p = m <= o ? Ne : m >= o + Nu ? Nu : m - o;
3967
- if (f < p)
3966
+ const b = m <= o ? Ne : m >= o + Nu ? Nu : m - o;
3967
+ if (f < b)
3968
3968
  break;
3969
- const d = f - p, E = tu - p;
3969
+ const d = f - b, v = tu - b;
3970
3970
  e.push(
3971
- se(pt(p + d % E, 0))
3972
- ), f = nu(d / E);
3971
+ se(pt(b + d % v, 0))
3972
+ ), f = nu(d / v);
3973
3973
  }
3974
3974
  e.push(se(pt(f, 0))), o = t0(r, s, i === c), r = 0, ++i;
3975
3975
  }
@@ -4197,12 +4197,12 @@ function oc(u) {
4197
4197
  e.hostname = o0.toUnicode(e.hostname);
4198
4198
  } catch {
4199
4199
  }
4200
- return ku(Ee(e), ku.defaultChars + "%");
4200
+ return yu(Ee(e), yu.defaultChars + "%");
4201
4201
  }
4202
4202
  function J(u, e) {
4203
4203
  if (!(this instanceof J))
4204
4204
  return new J(u, e);
4205
- e || we(u) || (e = u || {}, u = "default"), this.inline = new Pu(), this.block = new Ku(), this.core = new Te(), this.renderer = new Cu(), this.linkify = new W(), this.validateLink = nc, this.normalizeLink = rc, this.normalizeLinkText = oc, this.utils = cr, this.helpers = Qu({}, lr), this.options = {}, this.configure(u), e && this.set(e);
4205
+ e || we(u) || (e = u || {}, u = "default"), this.inline = new Pu(), this.block = new Ku(), this.core = new Te(), this.renderer = new vu(), this.linkify = new W(), this.validateLink = nc, this.normalizeLink = rc, this.normalizeLinkText = oc, this.utils = cr, this.helpers = Qu({}, lr), this.options = {}, this.configure(u), e && this.set(e);
4206
4206
  }
4207
4207
  J.prototype.set = function(u) {
4208
4208
  return Qu(this.options, u), this;
@@ -4269,23 +4269,23 @@ var cc = { 207: (u, e, t) => {
4269
4269
  }, 452: (u) => {
4270
4270
  var e = (function(t) {
4271
4271
  var n, r = Object.prototype, o = r.hasOwnProperty, c = typeof Symbol == "function" ? Symbol : {}, i = c.iterator || "@@iterator", a = c.asyncIterator || "@@asyncIterator", s = c.toStringTag || "@@toStringTag";
4272
- function l(k, g, S) {
4273
- return Object.defineProperty(k, g, { value: S, enumerable: !0, configurable: !0, writable: !0 }), k[g];
4272
+ function l(C, _, S) {
4273
+ return Object.defineProperty(C, _, { value: S, enumerable: !0, configurable: !0, writable: !0 }), C[_];
4274
4274
  }
4275
4275
  try {
4276
4276
  l({}, "");
4277
4277
  } catch {
4278
- l = function(g, S, N) {
4279
- return g[S] = N;
4278
+ l = function(_, S, N) {
4279
+ return _[S] = N;
4280
4280
  };
4281
4281
  }
4282
- function f(k, g, S, N) {
4283
- var w = g && g.prototype instanceof C ? g : C, $ = Object.create(w.prototype), H = new Q(N || []);
4282
+ function f(C, _, S, N) {
4283
+ var w = _ && _.prototype instanceof E ? _ : E, $ = Object.create(w.prototype), H = new Q(N || []);
4284
4284
  return $._invoke = /* @__PURE__ */ (function(K, cu, O) {
4285
- var Z = p;
4285
+ var Z = b;
4286
4286
  return function(eu, Le) {
4287
- if (Z === E) throw new Error("Generator is already running");
4288
- if (Z === x) {
4287
+ if (Z === v) throw new Error("Generator is already running");
4288
+ if (Z === k) {
4289
4289
  if (eu === "throw") throw Le;
4290
4290
  return uu();
4291
4291
  }
@@ -4294,65 +4294,65 @@ var cc = { 207: (u, e, t) => {
4294
4294
  if (Oe) {
4295
4295
  var Xu = j(Oe, O);
4296
4296
  if (Xu) {
4297
- if (Xu === A) continue;
4297
+ if (Xu === F) continue;
4298
4298
  return Xu;
4299
4299
  }
4300
4300
  }
4301
4301
  if (O.method === "next") O.sent = O._sent = O.arg;
4302
4302
  else if (O.method === "throw") {
4303
- if (Z === p) throw Z = x, O.arg;
4303
+ if (Z === b) throw Z = k, O.arg;
4304
4304
  O.dispatchException(O.arg);
4305
4305
  } else O.method === "return" && O.abrupt("return", O.arg);
4306
- Z = E;
4307
- var vu = m(K, cu, O);
4308
- if (vu.type === "normal") {
4309
- if (Z = O.done ? x : d, vu.arg === A) continue;
4310
- return { value: vu.arg, done: O.done };
4306
+ Z = v;
4307
+ var Du = m(K, cu, O);
4308
+ if (Du.type === "normal") {
4309
+ if (Z = O.done ? k : d, Du.arg === F) continue;
4310
+ return { value: Du.arg, done: O.done };
4311
4311
  }
4312
- vu.type === "throw" && (Z = x, O.method = "throw", O.arg = vu.arg);
4312
+ Du.type === "throw" && (Z = k, O.method = "throw", O.arg = Du.arg);
4313
4313
  }
4314
4314
  };
4315
- })(k, S, H), $;
4315
+ })(C, S, H), $;
4316
4316
  }
4317
- function m(k, g, S) {
4317
+ function m(C, _, S) {
4318
4318
  try {
4319
- return { type: "normal", arg: k.call(g, S) };
4319
+ return { type: "normal", arg: C.call(_, S) };
4320
4320
  } catch (N) {
4321
4321
  return { type: "throw", arg: N };
4322
4322
  }
4323
4323
  }
4324
4324
  t.wrap = f;
4325
- var p = "suspendedStart", d = "suspendedYield", E = "executing", x = "completed", A = {};
4326
- function C() {
4325
+ var b = "suspendedStart", d = "suspendedYield", v = "executing", k = "completed", F = {};
4326
+ function E() {
4327
4327
  }
4328
- function v() {
4328
+ function y() {
4329
4329
  }
4330
- function h() {
4330
+ function p() {
4331
4331
  }
4332
- var y = {};
4333
- l(y, i, (function() {
4332
+ var g = {};
4333
+ l(g, i, (function() {
4334
4334
  return this;
4335
4335
  }));
4336
- var b = Object.getPrototypeOf, _ = b && b(b(M([])));
4337
- _ && _ !== r && o.call(_, i) && (y = _);
4338
- var D = h.prototype = C.prototype = Object.create(y);
4339
- function I(k) {
4340
- ["next", "throw", "return"].forEach((function(g) {
4341
- l(k, g, (function(S) {
4342
- return this._invoke(g, S);
4336
+ var h = Object.getPrototypeOf, x = h && h(h(M([])));
4337
+ x && x !== r && o.call(x, i) && (g = x);
4338
+ var D = p.prototype = E.prototype = Object.create(g);
4339
+ function T(C) {
4340
+ ["next", "throw", "return"].forEach((function(_) {
4341
+ l(C, _, (function(S) {
4342
+ return this._invoke(_, S);
4343
4343
  }));
4344
4344
  }));
4345
4345
  }
4346
- function T(k, g) {
4346
+ function I(C, _) {
4347
4347
  function S(w, $, H, K) {
4348
- var cu = m(k[w], k, $);
4348
+ var cu = m(C[w], C, $);
4349
4349
  if (cu.type !== "throw") {
4350
4350
  var O = cu.arg, Z = O.value;
4351
- return Z && typeof Z == "object" && o.call(Z, "__await") ? g.resolve(Z.__await).then((function(eu) {
4351
+ return Z && typeof Z == "object" && o.call(Z, "__await") ? _.resolve(Z.__await).then((function(eu) {
4352
4352
  S("next", eu, H, K);
4353
4353
  }), (function(eu) {
4354
4354
  S("throw", eu, H, K);
4355
- })) : g.resolve(Z).then((function(eu) {
4355
+ })) : _.resolve(Z).then((function(eu) {
4356
4356
  O.value = eu, H(O);
4357
4357
  }), (function(eu) {
4358
4358
  return S("throw", eu, H, K);
@@ -4363,46 +4363,46 @@ var cc = { 207: (u, e, t) => {
4363
4363
  var N;
4364
4364
  this._invoke = function(w, $) {
4365
4365
  function H() {
4366
- return new g((function(K, cu) {
4366
+ return new _((function(K, cu) {
4367
4367
  S(w, $, K, cu);
4368
4368
  }));
4369
4369
  }
4370
4370
  return N = N ? N.then(H, H) : H();
4371
4371
  };
4372
4372
  }
4373
- function j(k, g) {
4374
- var S = k.iterator[g.method];
4373
+ function j(C, _) {
4374
+ var S = C.iterator[_.method];
4375
4375
  if (S === n) {
4376
- if (g.delegate = null, g.method === "throw") {
4377
- if (k.iterator.return && (g.method = "return", g.arg = n, j(k, g), g.method === "throw")) return A;
4378
- g.method = "throw", g.arg = new TypeError("The iterator does not provide a 'throw' method");
4376
+ if (_.delegate = null, _.method === "throw") {
4377
+ if (C.iterator.return && (_.method = "return", _.arg = n, j(C, _), _.method === "throw")) return F;
4378
+ _.method = "throw", _.arg = new TypeError("The iterator does not provide a 'throw' method");
4379
4379
  }
4380
- return A;
4380
+ return F;
4381
4381
  }
4382
- var N = m(S, k.iterator, g.arg);
4383
- if (N.type === "throw") return g.method = "throw", g.arg = N.arg, g.delegate = null, A;
4382
+ var N = m(S, C.iterator, _.arg);
4383
+ if (N.type === "throw") return _.method = "throw", _.arg = N.arg, _.delegate = null, F;
4384
4384
  var w = N.arg;
4385
- return w ? w.done ? (g[k.resultName] = w.value, g.next = k.nextLoc, g.method !== "return" && (g.method = "next", g.arg = n), g.delegate = null, A) : w : (g.method = "throw", g.arg = new TypeError("iterator result is not an object"), g.delegate = null, A);
4385
+ return w ? w.done ? (_[C.resultName] = w.value, _.next = C.nextLoc, _.method !== "return" && (_.method = "next", _.arg = n), _.delegate = null, F) : w : (_.method = "throw", _.arg = new TypeError("iterator result is not an object"), _.delegate = null, F);
4386
4386
  }
4387
- function L(k) {
4388
- var g = { tryLoc: k[0] };
4389
- 1 in k && (g.catchLoc = k[1]), 2 in k && (g.finallyLoc = k[2], g.afterLoc = k[3]), this.tryEntries.push(g);
4387
+ function L(C) {
4388
+ var _ = { tryLoc: C[0] };
4389
+ 1 in C && (_.catchLoc = C[1]), 2 in C && (_.finallyLoc = C[2], _.afterLoc = C[3]), this.tryEntries.push(_);
4390
4390
  }
4391
- function R(k) {
4392
- var g = k.completion || {};
4393
- g.type = "normal", delete g.arg, k.completion = g;
4391
+ function R(C) {
4392
+ var _ = C.completion || {};
4393
+ _.type = "normal", delete _.arg, C.completion = _;
4394
4394
  }
4395
- function Q(k) {
4396
- this.tryEntries = [{ tryLoc: "root" }], k.forEach(L, this), this.reset(!0);
4395
+ function Q(C) {
4396
+ this.tryEntries = [{ tryLoc: "root" }], C.forEach(L, this), this.reset(!0);
4397
4397
  }
4398
- function M(k) {
4399
- if (k) {
4400
- var g = k[i];
4401
- if (g) return g.call(k);
4402
- if (typeof k.next == "function") return k;
4403
- if (!isNaN(k.length)) {
4398
+ function M(C) {
4399
+ if (C) {
4400
+ var _ = C[i];
4401
+ if (_) return _.call(C);
4402
+ if (typeof C.next == "function") return C;
4403
+ if (!isNaN(C.length)) {
4404
4404
  var S = -1, N = function w() {
4405
- for (; ++S < k.length; ) if (o.call(k, S)) return w.value = k[S], w.done = !1, w;
4405
+ for (; ++S < C.length; ) if (o.call(C, S)) return w.value = C[S], w.done = !1, w;
4406
4406
  return w.value = n, w.done = !0, w;
4407
4407
  };
4408
4408
  return N.next = N;
@@ -4413,47 +4413,47 @@ var cc = { 207: (u, e, t) => {
4413
4413
  function uu() {
4414
4414
  return { value: n, done: !0 };
4415
4415
  }
4416
- return v.prototype = h, l(D, "constructor", h), l(h, "constructor", v), v.displayName = l(h, s, "GeneratorFunction"), t.isGeneratorFunction = function(k) {
4417
- var g = typeof k == "function" && k.constructor;
4418
- return !!g && (g === v || (g.displayName || g.name) === "GeneratorFunction");
4419
- }, t.mark = function(k) {
4420
- return Object.setPrototypeOf ? Object.setPrototypeOf(k, h) : (k.__proto__ = h, l(k, s, "GeneratorFunction")), k.prototype = Object.create(D), k;
4421
- }, t.awrap = function(k) {
4422
- return { __await: k };
4423
- }, I(T.prototype), l(T.prototype, a, (function() {
4416
+ return y.prototype = p, l(D, "constructor", p), l(p, "constructor", y), y.displayName = l(p, s, "GeneratorFunction"), t.isGeneratorFunction = function(C) {
4417
+ var _ = typeof C == "function" && C.constructor;
4418
+ return !!_ && (_ === y || (_.displayName || _.name) === "GeneratorFunction");
4419
+ }, t.mark = function(C) {
4420
+ return Object.setPrototypeOf ? Object.setPrototypeOf(C, p) : (C.__proto__ = p, l(C, s, "GeneratorFunction")), C.prototype = Object.create(D), C;
4421
+ }, t.awrap = function(C) {
4422
+ return { __await: C };
4423
+ }, T(I.prototype), l(I.prototype, a, (function() {
4424
4424
  return this;
4425
- })), t.AsyncIterator = T, t.async = function(k, g, S, N, w) {
4425
+ })), t.AsyncIterator = I, t.async = function(C, _, S, N, w) {
4426
4426
  w === void 0 && (w = Promise);
4427
- var $ = new T(f(k, g, S, N), w);
4428
- return t.isGeneratorFunction(g) ? $ : $.next().then((function(H) {
4427
+ var $ = new I(f(C, _, S, N), w);
4428
+ return t.isGeneratorFunction(_) ? $ : $.next().then((function(H) {
4429
4429
  return H.done ? H.value : $.next();
4430
4430
  }));
4431
- }, I(D), l(D, s, "Generator"), l(D, i, (function() {
4431
+ }, T(D), l(D, s, "Generator"), l(D, i, (function() {
4432
4432
  return this;
4433
4433
  })), l(D, "toString", (function() {
4434
4434
  return "[object Generator]";
4435
- })), t.keys = function(k) {
4436
- var g = [];
4437
- for (var S in k) g.push(S);
4438
- return g.reverse(), function N() {
4439
- for (; g.length; ) {
4440
- var w = g.pop();
4441
- if (w in k) return N.value = w, N.done = !1, N;
4435
+ })), t.keys = function(C) {
4436
+ var _ = [];
4437
+ for (var S in C) _.push(S);
4438
+ return _.reverse(), function N() {
4439
+ for (; _.length; ) {
4440
+ var w = _.pop();
4441
+ if (w in C) return N.value = w, N.done = !1, N;
4442
4442
  }
4443
4443
  return N.done = !0, N;
4444
4444
  };
4445
- }, t.values = M, Q.prototype = { constructor: Q, reset: function(k) {
4446
- if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(R), !k) for (var g in this) g.charAt(0) === "t" && o.call(this, g) && !isNaN(+g.slice(1)) && (this[g] = n);
4445
+ }, t.values = M, Q.prototype = { constructor: Q, reset: function(C) {
4446
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(R), !C) for (var _ in this) _.charAt(0) === "t" && o.call(this, _) && !isNaN(+_.slice(1)) && (this[_] = n);
4447
4447
  }, stop: function() {
4448
4448
  this.done = !0;
4449
- var k = this.tryEntries[0].completion;
4450
- if (k.type === "throw") throw k.arg;
4449
+ var C = this.tryEntries[0].completion;
4450
+ if (C.type === "throw") throw C.arg;
4451
4451
  return this.rval;
4452
- }, dispatchException: function(k) {
4453
- if (this.done) throw k;
4454
- var g = this;
4452
+ }, dispatchException: function(C) {
4453
+ if (this.done) throw C;
4454
+ var _ = this;
4455
4455
  function S(cu, O) {
4456
- return $.type = "throw", $.arg = k, g.next = cu, O && (g.method = "next", g.arg = n), !!O;
4456
+ return $.type = "throw", $.arg = C, _.next = cu, O && (_.method = "next", _.arg = n), !!O;
4457
4457
  }
4458
4458
  for (var N = this.tryEntries.length - 1; N >= 0; --N) {
4459
4459
  var w = this.tryEntries[N], $ = w.completion;
@@ -4471,7 +4471,7 @@ var cc = { 207: (u, e, t) => {
4471
4471
  }
4472
4472
  }
4473
4473
  }
4474
- }, abrupt: function(k, g) {
4474
+ }, abrupt: function(C, _) {
4475
4475
  for (var S = this.tryEntries.length - 1; S >= 0; --S) {
4476
4476
  var N = this.tryEntries[S];
4477
4477
  if (N.tryLoc <= this.prev && o.call(N, "finallyLoc") && this.prev < N.finallyLoc) {
@@ -4479,21 +4479,21 @@ var cc = { 207: (u, e, t) => {
4479
4479
  break;
4480
4480
  }
4481
4481
  }
4482
- w && (k === "break" || k === "continue") && w.tryLoc <= g && g <= w.finallyLoc && (w = null);
4482
+ w && (C === "break" || C === "continue") && w.tryLoc <= _ && _ <= w.finallyLoc && (w = null);
4483
4483
  var $ = w ? w.completion : {};
4484
- return $.type = k, $.arg = g, w ? (this.method = "next", this.next = w.finallyLoc, A) : this.complete($);
4485
- }, complete: function(k, g) {
4486
- if (k.type === "throw") throw k.arg;
4487
- return k.type === "break" || k.type === "continue" ? this.next = k.arg : k.type === "return" ? (this.rval = this.arg = k.arg, this.method = "return", this.next = "end") : k.type === "normal" && g && (this.next = g), A;
4488
- }, finish: function(k) {
4489
- for (var g = this.tryEntries.length - 1; g >= 0; --g) {
4490
- var S = this.tryEntries[g];
4491
- if (S.finallyLoc === k) return this.complete(S.completion, S.afterLoc), R(S), A;
4484
+ return $.type = C, $.arg = _, w ? (this.method = "next", this.next = w.finallyLoc, F) : this.complete($);
4485
+ }, complete: function(C, _) {
4486
+ if (C.type === "throw") throw C.arg;
4487
+ return C.type === "break" || C.type === "continue" ? this.next = C.arg : C.type === "return" ? (this.rval = this.arg = C.arg, this.method = "return", this.next = "end") : C.type === "normal" && _ && (this.next = _), F;
4488
+ }, finish: function(C) {
4489
+ for (var _ = this.tryEntries.length - 1; _ >= 0; --_) {
4490
+ var S = this.tryEntries[_];
4491
+ if (S.finallyLoc === C) return this.complete(S.completion, S.afterLoc), R(S), F;
4492
4492
  }
4493
- }, catch: function(k) {
4494
- for (var g = this.tryEntries.length - 1; g >= 0; --g) {
4495
- var S = this.tryEntries[g];
4496
- if (S.tryLoc === k) {
4493
+ }, catch: function(C) {
4494
+ for (var _ = this.tryEntries.length - 1; _ >= 0; --_) {
4495
+ var S = this.tryEntries[_];
4496
+ if (S.tryLoc === C) {
4497
4497
  var N = S.completion;
4498
4498
  if (N.type === "throw") {
4499
4499
  var w = N.arg;
@@ -4503,8 +4503,8 @@ var cc = { 207: (u, e, t) => {
4503
4503
  }
4504
4504
  }
4505
4505
  throw new Error("illegal catch attempt");
4506
- }, delegateYield: function(k, g, S) {
4507
- return this.delegate = { iterator: M(k), resultName: g, nextLoc: S }, this.method === "next" && (this.arg = n), A;
4506
+ }, delegateYield: function(C, _, S) {
4507
+ return this.delegate = { iterator: M(C), resultName: _, nextLoc: S }, this.method === "next" && (this.arg = n), F;
4508
4508
  } }, t;
4509
4509
  })(u.exports);
4510
4510
  try {
@@ -4552,28 +4552,28 @@ function Lu(u, e, t) {
4552
4552
  return e in u ? Object.defineProperty(u, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : u[e] = t, u;
4553
4553
  }
4554
4554
  Y.d(i0, { A: () => dc });
4555
- const F = (mt = { Fragment: () => iu.Fragment, computed: () => iu.computed, createTextVNode: () => iu.createTextVNode, createVNode: () => iu.createVNode, defineComponent: () => iu.defineComponent, reactive: () => iu.reactive, ref: () => iu.ref, watch: () => iu.watch, watchEffect: () => iu.watchEffect }, le = {}, Y.d(le, mt), le), ic = (0, F.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
4555
+ const A = (mt = { Fragment: () => iu.Fragment, computed: () => iu.computed, createTextVNode: () => iu.createTextVNode, createVNode: () => iu.createVNode, defineComponent: () => iu.defineComponent, reactive: () => iu.reactive, ref: () => iu.ref, watch: () => iu.watch, watchEffect: () => iu.watchEffect }, le = {}, Y.d(le, mt), le), ic = (0, A.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
4556
4556
  var u = this.data, e = this.onClick;
4557
- return (0, F.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
4558
- } }), ac = (0, F.defineComponent)({ emits: ["change", "update:modelValue"], props: { checked: { type: Boolean, default: !1 }, isMultiple: Boolean, onChange: Function }, setup: function(u, e) {
4557
+ return (0, A.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
4558
+ } }), ac = (0, A.defineComponent)({ emits: ["change", "update:modelValue"], props: { checked: { type: Boolean, default: !1 }, isMultiple: Boolean, onChange: Function }, setup: function(u, e) {
4559
4559
  var t = e.emit;
4560
- return { uiType: (0, F.computed)((function() {
4560
+ return { uiType: (0, A.computed)((function() {
4561
4561
  return u.isMultiple ? "checkbox" : "radio";
4562
- })), model: (0, F.computed)({ get: function() {
4562
+ })), model: (0, A.computed)({ get: function() {
4563
4563
  return u.checked;
4564
4564
  }, set: function(n) {
4565
4565
  return t("update:modelValue", n);
4566
4566
  } }) };
4567
4567
  }, render: function() {
4568
4568
  var u = this.uiType, e = this.model, t = this.$emit;
4569
- return (0, F.createVNode)("label", { class: ["vjs-check-controller", e ? "is-checked" : ""], onClick: function(n) {
4569
+ return (0, A.createVNode)("label", { class: ["vjs-check-controller", e ? "is-checked" : ""], onClick: function(n) {
4570
4570
  return n.stopPropagation();
4571
- } }, [(0, F.createVNode)("span", { class: "vjs-check-controller-inner is-".concat(u) }, null), (0, F.createVNode)("input", { checked: e, class: "vjs-check-controller-original is-".concat(u), type: u, onChange: function() {
4571
+ } }, [(0, A.createVNode)("span", { class: "vjs-check-controller-inner is-".concat(u) }, null), (0, A.createVNode)("input", { checked: e, class: "vjs-check-controller-original is-".concat(u), type: u, onChange: function() {
4572
4572
  return t("change", e);
4573
4573
  } }, null)]);
4574
- } }), sc = (0, F.defineComponent)({ props: { nodeType: { required: !0, type: String }, onClick: Function }, render: function() {
4574
+ } }), sc = (0, A.defineComponent)({ props: { nodeType: { required: !0, type: String }, onClick: Function }, render: function() {
4575
4575
  var u = this.nodeType, e = this.onClick, t = u === "objectStart" || u === "arrayStart";
4576
- return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0, F.createVNode)("span", { class: "vjs-carets vjs-carets-".concat(t ? "open" : "close"), onClick: e }, [(0, F.createVNode)("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, [(0, F.createVNode)("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }, null)])]) : null;
4576
+ return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0, A.createVNode)("span", { class: "vjs-carets vjs-carets-".concat(t ? "open" : "close"), onClick: e }, [(0, A.createVNode)("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, [(0, A.createVNode)("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }, null)])]) : null;
4577
4577
  } });
4578
4578
  var mt, le;
4579
4579
  function _e(u) {
@@ -4589,16 +4589,16 @@ function s0(u) {
4589
4589
  function mu(u) {
4590
4590
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "root", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = (arguments.length > 3 ? arguments[3] : void 0) || {}, r = n.key, o = n.index, c = n.type, i = c === void 0 ? "content" : c, a = n.showComma, s = a !== void 0 && a, l = n.length, f = l === void 0 ? 1 : l, m = s0(u);
4591
4591
  if (m === "array") {
4592
- var p = xt(u.map((function(x, A, C) {
4593
- return mu(x, "".concat(e, "[").concat(A, "]"), t + 1, { index: A, showComma: A !== C.length - 1, length: f, type: i });
4592
+ var b = xt(u.map((function(k, F, E) {
4593
+ return mu(k, "".concat(e, "[").concat(F, "]"), t + 1, { index: F, showComma: F !== E.length - 1, length: f, type: i });
4594
4594
  })));
4595
- return [mu("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(p, mu("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
4595
+ return [mu("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(b, mu("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
4596
4596
  }
4597
4597
  if (m === "object") {
4598
- var d = Object.keys(u), E = xt(d.map((function(x, A, C) {
4599
- return mu(u[x], /^[a-zA-Z_]\w*$/.test(x) ? "".concat(e, ".").concat(x) : "".concat(e, '["').concat(x, '"]'), t + 1, { key: x, showComma: A !== C.length - 1, length: f, type: i });
4598
+ var d = Object.keys(u), v = xt(d.map((function(k, F, E) {
4599
+ return mu(u[k], /^[a-zA-Z_]\w*$/.test(k) ? "".concat(e, ".").concat(k) : "".concat(e, '["').concat(k, '"]'), t + 1, { key: k, showComma: F !== E.length - 1, length: f, type: i });
4600
4600
  })));
4601
- return [mu("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(E, mu("}", e, t, { showComma: s, length: d.length, type: "objectEnd" })[0]);
4601
+ return [mu("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(v, mu("}", e, t, { showComma: s, length: d.length, type: "objectEnd" })[0]);
4602
4602
  }
4603
4603
  return [{ content: u, level: t, key: r, index: o, path: e, showComma: s, length: f, type: i }];
4604
4604
  }
@@ -4660,57 +4660,57 @@ function yt(u) {
4660
4660
  var l0 = { data: { type: [String, Number, Boolean, Array, Object], default: null }, rootPath: { type: String, default: "root" }, indent: { type: Number, default: 2 }, showLength: { type: Boolean, default: !1 }, showDoubleQuotes: { type: Boolean, default: !0 }, renderNodeKey: Function, renderNodeValue: Function, renderNodeActions: { type: [Boolean, Function], default: void 0 }, selectableType: String, showSelectController: { type: Boolean, default: !1 }, showLine: { type: Boolean, default: !0 }, showLineNumber: { type: Boolean, default: !1 }, selectOnClickNode: { type: Boolean, default: !0 }, nodeSelectable: { type: Function, default: function() {
4661
4661
  return !0;
4662
4662
  } }, highlightSelectedNode: { type: Boolean, default: !0 }, showIcon: { type: Boolean, default: !1 }, theme: { type: String, default: "light" }, showKeyValueSpace: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !1 }, editableTrigger: { type: String, default: "click" }, onNodeClick: { type: Function }, onNodeMouseover: { type: Function }, onBracketsClick: { type: Function }, onIconClick: { type: Function }, onValueChange: { type: Function } };
4663
- const fc = (0, F.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {}, { node: { type: Object, required: !0 }, collapsed: Boolean, checked: Boolean, style: Object, onSelectedChange: { type: Function } }), emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "valueChange"], setup: function(u, e) {
4664
- var t = e.emit, n = (0, F.computed)((function() {
4663
+ const fc = (0, A.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {}, { node: { type: Object, required: !0 }, collapsed: Boolean, checked: Boolean, style: Object, onSelectedChange: { type: Function } }), emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "valueChange"], setup: function(u, e) {
4664
+ var t = e.emit, n = (0, A.computed)((function() {
4665
4665
  return s0(u.node.content);
4666
- })), r = (0, F.computed)((function() {
4666
+ })), r = (0, A.computed)((function() {
4667
4667
  return "vjs-value vjs-value-".concat(n.value);
4668
- })), o = (0, F.computed)((function() {
4668
+ })), o = (0, A.computed)((function() {
4669
4669
  return u.showDoubleQuotes ? '"'.concat(u.node.key, '"') : u.node.key;
4670
- })), c = (0, F.computed)((function() {
4670
+ })), c = (0, A.computed)((function() {
4671
4671
  return u.selectableType === "multiple";
4672
- })), i = (0, F.computed)((function() {
4672
+ })), i = (0, A.computed)((function() {
4673
4673
  return u.selectableType === "single";
4674
- })), a = (0, F.computed)((function() {
4674
+ })), a = (0, A.computed)((function() {
4675
4675
  return u.nodeSelectable(u.node) && (c.value || i.value);
4676
- })), s = (0, F.reactive)({ editing: !1 }), l = function(b) {
4677
- var _, D, I = (D = (_ = b.target) === null || _ === void 0 ? void 0 : _.value) === "null" ? null : D === "undefined" ? void 0 : D === "true" || D !== "false" && (D[0] + D[D.length - 1] === '""' || D[0] + D[D.length - 1] === "''" ? D.slice(1, -1) : typeof Number(D) == "number" && !isNaN(Number(D)) || D === "NaN" ? Number(D) : D);
4678
- t("valueChange", I, u.node.path);
4679
- }, f = (0, F.computed)((function() {
4680
- var b, _ = (b = u.node) === null || b === void 0 ? void 0 : b.content;
4681
- return _ === null ? _ = "null" : _ === void 0 && (_ = "undefined"), n.value === "string" ? '"'.concat(_, '"') : _ + "";
4676
+ })), s = (0, A.reactive)({ editing: !1 }), l = function(h) {
4677
+ var x, D, T = (D = (x = h.target) === null || x === void 0 ? void 0 : x.value) === "null" ? null : D === "undefined" ? void 0 : D === "true" || D !== "false" && (D[0] + D[D.length - 1] === '""' || D[0] + D[D.length - 1] === "''" ? D.slice(1, -1) : typeof Number(D) == "number" && !isNaN(Number(D)) || D === "NaN" ? Number(D) : D);
4678
+ t("valueChange", T, u.node.path);
4679
+ }, f = (0, A.computed)((function() {
4680
+ var h, x = (h = u.node) === null || h === void 0 ? void 0 : h.content;
4681
+ return x === null ? x = "null" : x === void 0 && (x = "undefined"), n.value === "string" ? '"'.concat(x, '"') : x + "";
4682
4682
  })), m = function() {
4683
- var b = u.renderNodeValue;
4684
- return b ? b({ node: u.node, defaultValue: f.value }) : f.value;
4685
- }, p = function() {
4683
+ var h = u.renderNodeValue;
4684
+ return h ? h({ node: u.node, defaultValue: f.value }) : f.value;
4685
+ }, b = function() {
4686
4686
  t("bracketsClick", !u.collapsed, u.node);
4687
4687
  }, d = function() {
4688
4688
  t("iconClick", !u.collapsed, u.node);
4689
- }, E = function() {
4689
+ }, v = function() {
4690
4690
  t("selectedChange", u.node);
4691
- }, x = function() {
4691
+ }, k = function() {
4692
4692
  t("nodeClick", u.node), a.value && u.selectOnClickNode && t("selectedChange", u.node);
4693
- }, A = function() {
4693
+ }, F = function() {
4694
4694
  t("nodeMouseover", u.node);
4695
- }, C = function(b) {
4695
+ }, E = function(h) {
4696
4696
  if (u.editable && !s.editing) {
4697
4697
  s.editing = !0;
4698
- var _ = function D(I) {
4699
- var T;
4700
- I.target !== b.target && ((T = I.target) === null || T === void 0 ? void 0 : T.parentElement) !== b.target && (s.editing = !1, document.removeEventListener("click", D));
4698
+ var x = function D(T) {
4699
+ var I;
4700
+ T.target !== h.target && ((I = T.target) === null || I === void 0 ? void 0 : I.parentElement) !== h.target && (s.editing = !1, document.removeEventListener("click", D));
4701
4701
  };
4702
- document.removeEventListener("click", _), document.addEventListener("click", _);
4702
+ document.removeEventListener("click", x), document.addEventListener("click", x);
4703
4703
  }
4704
- }, v = (function() {
4705
- var b = (0, F.ref)(!1), _ = (function() {
4706
- var D, I = (D = _t().mark((function T(j) {
4704
+ }, y = (function() {
4705
+ var h = (0, A.ref)(!1), x = (function() {
4706
+ var D, T = (D = _t().mark((function I(j) {
4707
4707
  return _t().wrap((function(L) {
4708
4708
  for (; ; ) switch (L.prev = L.next) {
4709
4709
  case 0:
4710
4710
  return L.prev = 0, L.next = 3, navigator.clipboard.writeText(j);
4711
4711
  case 3:
4712
- b.value = !0, setTimeout((function() {
4713
- b.value = !1;
4712
+ h.value = !0, setTimeout((function() {
4713
+ h.value = !1;
4714
4714
  }), 300), L.next = 10;
4715
4715
  break;
4716
4716
  case 7:
@@ -4719,41 +4719,41 @@ const fc = (0, F.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {},
4719
4719
  case "end":
4720
4720
  return L.stop();
4721
4721
  }
4722
- }), T, null, [[0, 7]]);
4722
+ }), I, null, [[0, 7]]);
4723
4723
  })), function() {
4724
- var T = this, j = arguments;
4724
+ var I = this, j = arguments;
4725
4725
  return new Promise((function(L, R) {
4726
- var Q = D.apply(T, j);
4727
- function M(k) {
4728
- gt(Q, L, R, M, uu, "next", k);
4726
+ var Q = D.apply(I, j);
4727
+ function M(C) {
4728
+ gt(Q, L, R, M, uu, "next", C);
4729
4729
  }
4730
- function uu(k) {
4731
- gt(Q, L, R, M, uu, "throw", k);
4730
+ function uu(C) {
4731
+ gt(Q, L, R, M, uu, "throw", C);
4732
4732
  }
4733
4733
  M(void 0);
4734
4734
  }));
4735
4735
  });
4736
- return function(T) {
4737
- return I.apply(this, arguments);
4736
+ return function(I) {
4737
+ return T.apply(this, arguments);
4738
4738
  };
4739
4739
  })();
4740
- return { copy: _ };
4741
- })().copy, h = function() {
4742
- var b = u.node, _ = b.key, D = b.path, I = u.rootPath, T = new Function("data", "return data".concat(D.slice(I.length)))(u.data), j = JSON.stringify(_ ? Lu({}, _, T) : T, null, 2);
4743
- v(j);
4744
- }, y = function() {
4745
- var b = u.renderNodeActions;
4746
- if (!b) return null;
4747
- var _ = { copy: h };
4748
- return typeof b == "function" ? b({ node: u.node, defaultActions: _ }) : (0, F.createVNode)("span", { onClick: h, class: "vjs-tree-node-actions-item" }, [(0, F.createTextVNode)("copy")]);
4740
+ return { copy: x };
4741
+ })().copy, p = function() {
4742
+ var h = u.node, x = h.key, D = h.path, T = u.rootPath, I = new Function("data", "return data".concat(D.slice(T.length)))(u.data), j = JSON.stringify(x ? Lu({}, x, I) : I, null, 2);
4743
+ y(j);
4744
+ }, g = function() {
4745
+ var h = u.renderNodeActions;
4746
+ if (!h) return null;
4747
+ var x = { copy: p };
4748
+ return typeof h == "function" ? h({ node: u.node, defaultActions: x }) : (0, A.createVNode)("span", { onClick: p, class: "vjs-tree-node-actions-item" }, [(0, A.createTextVNode)("copy")]);
4749
4749
  };
4750
4750
  return function() {
4751
- var b, _ = u.node;
4752
- return (0, F.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: x, onMouseover: A, style: u.style }, [u.showLineNumber && (0, F.createVNode)("span", { class: "vjs-node-index" }, [_.id + 1]), u.showSelectController && a.value && _.type !== "objectEnd" && _.type !== "arrayEnd" && (0, F.createVNode)(ac, { isMultiple: c.value, checked: u.checked, onChange: E }, null), (0, F.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(_.level)).map((function(D, I) {
4753
- return (0, F.createVNode)("div", { key: I, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
4754
- return (0, F.createVNode)(F.Fragment, null, [(0, F.createTextVNode)(" ")]);
4751
+ var h, x = u.node;
4752
+ return (0, A.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: k, onMouseover: F, style: u.style }, [u.showLineNumber && (0, A.createVNode)("span", { class: "vjs-node-index" }, [x.id + 1]), u.showSelectController && a.value && x.type !== "objectEnd" && x.type !== "arrayEnd" && (0, A.createVNode)(ac, { isMultiple: c.value, checked: u.checked, onChange: v }, null), (0, A.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(x.level)).map((function(D, T) {
4753
+ return (0, A.createVNode)("div", { key: T, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
4754
+ return (0, A.createVNode)(A.Fragment, null, [(0, A.createTextVNode)(" ")]);
4755
4755
  }))]);
4756
- })), u.showIcon && (0, F.createVNode)(sc, { nodeType: _.type, onClick: d }, null)]), _.key && (0, F.createVNode)("span", { class: "vjs-key" }, [(b = u.renderNodeKey, b ? b({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, F.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, F.createVNode)("span", null, [_.type !== "content" && _.content ? (0, F.createVNode)(ic, { data: _.content.toString(), onClick: p }, null) : (0, F.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : C, onDblclick: u.editable && u.editableTrigger === "dblclick" ? C : void 0 }, [u.editable && s.editing ? (0, F.createVNode)("input", { value: f.value, onChange: l, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : m()]), _.showComma && (0, F.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, F.createVNode)("span", { class: "vjs-comment" }, [(0, F.createTextVNode)(" // "), _.length, (0, F.createTextVNode)(" items ")])]), u.renderNodeActions && (0, F.createVNode)("span", { class: "vjs-tree-node-actions" }, [y()])]);
4756
+ })), u.showIcon && (0, A.createVNode)(sc, { nodeType: x.type, onClick: d }, null)]), x.key && (0, A.createVNode)("span", { class: "vjs-key" }, [(h = u.renderNodeKey, h ? h({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, A.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, A.createVNode)("span", null, [x.type !== "content" && x.content ? (0, A.createVNode)(ic, { data: x.content.toString(), onClick: b }, null) : (0, A.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : E, onDblclick: u.editable && u.editableTrigger === "dblclick" ? E : void 0 }, [u.editable && s.editing ? (0, A.createVNode)("input", { value: f.value, onChange: l, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : m()]), x.showComma && (0, A.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, A.createVNode)("span", { class: "vjs-comment" }, [(0, A.createTextVNode)(" // "), x.length, (0, A.createTextVNode)(" items ")])]), u.renderNodeActions && (0, A.createVNode)("span", { class: "vjs-tree-node-actions" }, [g()])]);
4757
4757
  };
4758
4758
  } });
4759
4759
  function Ct(u, e) {
@@ -4777,121 +4777,121 @@ function G(u) {
4777
4777
  }
4778
4778
  return u;
4779
4779
  }
4780
- const dc = (0, F.defineComponent)({ name: "Tree", props: G(G({}, l0), {}, { collapsedNodeLength: { type: Number, default: 1 / 0 }, deep: { type: Number, default: 1 / 0 }, pathCollapsible: { type: Function, default: function() {
4780
+ const dc = (0, A.defineComponent)({ name: "Tree", props: G(G({}, l0), {}, { collapsedNodeLength: { type: Number, default: 1 / 0 }, deep: { type: Number, default: 1 / 0 }, pathCollapsible: { type: Function, default: function() {
4781
4781
  return !1;
4782
4782
  } }, virtual: { type: Boolean, default: !1 }, height: { type: Number, default: 400 }, itemHeight: { type: Number, default: 20 }, selectedValue: { type: [String, Array], default: function() {
4783
4783
  return "";
4784
4784
  } }, collapsedOnClickBrackets: { type: Boolean, default: !0 }, style: Object, onSelectedChange: { type: Function }, theme: { type: String, default: "light" } }), slots: ["renderNodeKey", "renderNodeValue", "renderNodeActions"], emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "update:selectedValue", "update:data"], setup: function(u, e) {
4785
- var t = e.emit, n = e.slots, r = (0, F.ref)(), o = (0, F.computed)((function() {
4785
+ var t = e.emit, n = e.slots, r = (0, A.ref)(), o = (0, A.computed)((function() {
4786
4786
  return mu(u.data, u.rootPath);
4787
- })), c = function(h, y) {
4788
- return o.value.reduce((function(b, _) {
4789
- var D, I = _.level >= h || _.length >= y, T = (D = u.pathCollapsible) === null || D === void 0 ? void 0 : D.call(u, _);
4790
- return _.type !== "objectStart" && _.type !== "arrayStart" || !I && !T ? b : G(G({}, b), {}, Lu({}, _.path, 1));
4787
+ })), c = function(p, g) {
4788
+ return o.value.reduce((function(h, x) {
4789
+ var D, T = x.level >= p || x.length >= g, I = (D = u.pathCollapsible) === null || D === void 0 ? void 0 : D.call(u, x);
4790
+ return x.type !== "objectStart" && x.type !== "arrayStart" || !T && !I ? h : G(G({}, h), {}, Lu({}, x.path, 1));
4791
4791
  }), {});
4792
- }, i = (0, F.reactive)({ translateY: 0, visibleData: null, hiddenPaths: c(u.deep, u.collapsedNodeLength) }), a = (0, F.computed)((function() {
4793
- for (var h = null, y = [], b = o.value.length, _ = 0; _ < b; _++) {
4794
- var D = G(G({}, o.value[_]), {}, { id: _ }), I = i.hiddenPaths[D.path];
4795
- if (h && h.path === D.path) {
4796
- var T = h.type === "objectStart", j = G(G(G({}, D), h), {}, { showComma: D.showComma, content: T ? "{...}" : "[...]", type: T ? "objectCollapsed" : "arrayCollapsed" });
4797
- h = null, y.push(j);
4792
+ }, i = (0, A.reactive)({ translateY: 0, visibleData: null, hiddenPaths: c(u.deep, u.collapsedNodeLength) }), a = (0, A.computed)((function() {
4793
+ for (var p = null, g = [], h = o.value.length, x = 0; x < h; x++) {
4794
+ var D = G(G({}, o.value[x]), {}, { id: x }), T = i.hiddenPaths[D.path];
4795
+ if (p && p.path === D.path) {
4796
+ var I = p.type === "objectStart", j = G(G(G({}, D), p), {}, { showComma: D.showComma, content: I ? "{...}" : "[...]", type: I ? "objectCollapsed" : "arrayCollapsed" });
4797
+ p = null, g.push(j);
4798
4798
  } else {
4799
- if (I && !h) {
4800
- h = D;
4799
+ if (T && !p) {
4800
+ p = D;
4801
4801
  continue;
4802
4802
  }
4803
- if (h) continue;
4804
- y.push(D);
4803
+ if (p) continue;
4804
+ g.push(D);
4805
4805
  }
4806
4806
  }
4807
- return y;
4808
- })), s = (0, F.computed)((function() {
4809
- var h = u.selectedValue;
4810
- return h && u.selectableType === "multiple" && Array.isArray(h) ? h : [h];
4811
- })), l = (0, F.computed)((function() {
4807
+ return g;
4808
+ })), s = (0, A.computed)((function() {
4809
+ var p = u.selectedValue;
4810
+ return p && u.selectableType === "multiple" && Array.isArray(p) ? p : [p];
4811
+ })), l = (0, A.computed)((function() {
4812
4812
  return !u.selectableType || u.selectOnClickNode || u.showSelectController ? "" : "When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail.";
4813
4813
  })), f = function() {
4814
- var h = a.value;
4814
+ var p = a.value;
4815
4815
  if (u.virtual) {
4816
- var y, b = u.height / u.itemHeight, _ = ((y = r.value) === null || y === void 0 ? void 0 : y.scrollTop) || 0, D = Math.floor(_ / u.itemHeight), I = D < 0 ? 0 : D + b > h.length ? h.length - b : D;
4817
- I < 0 && (I = 0);
4818
- var T = I + b;
4819
- i.translateY = I * u.itemHeight, i.visibleData = h.filter((function(j, L) {
4820
- return L >= I && L < T;
4816
+ var g, h = u.height / u.itemHeight, x = ((g = r.value) === null || g === void 0 ? void 0 : g.scrollTop) || 0, D = Math.floor(x / u.itemHeight), T = D < 0 ? 0 : D + h > p.length ? p.length - h : D;
4817
+ T < 0 && (T = 0);
4818
+ var I = T + h;
4819
+ i.translateY = T * u.itemHeight, i.visibleData = p.filter((function(j, L) {
4820
+ return L >= T && L < I;
4821
4821
  }));
4822
- } else i.visibleData = h;
4822
+ } else i.visibleData = p;
4823
4823
  }, m = function() {
4824
4824
  f();
4825
- }, p = function(h) {
4826
- var y, b, _ = h.path, D = u.selectableType;
4825
+ }, b = function(p) {
4826
+ var g, h, x = p.path, D = u.selectableType;
4827
4827
  if (D === "multiple") {
4828
- var I = s.value.findIndex((function(R) {
4829
- return R === _;
4830
- })), T = Zu(s.value);
4831
- I !== -1 ? T.splice(I, 1) : T.push(_), t("update:selectedValue", T), t("selectedChange", T, Zu(s.value));
4832
- } else if (D === "single" && s.value[0] !== _) {
4833
- var j = (y = s.value, b = 1, (function(R) {
4828
+ var T = s.value.findIndex((function(R) {
4829
+ return R === x;
4830
+ })), I = Zu(s.value);
4831
+ T !== -1 ? I.splice(T, 1) : I.push(x), t("update:selectedValue", I), t("selectedChange", I, Zu(s.value));
4832
+ } else if (D === "single" && s.value[0] !== x) {
4833
+ var j = (g = s.value, h = 1, (function(R) {
4834
4834
  if (Array.isArray(R)) return R;
4835
- })(y) || (function(R, Q) {
4835
+ })(g) || (function(R, Q) {
4836
4836
  var M = R == null ? null : typeof Symbol < "u" && R[Symbol.iterator] || R["@@iterator"];
4837
4837
  if (M != null) {
4838
- var uu, k, g = [], S = !0, N = !1;
4838
+ var uu, C, _ = [], S = !0, N = !1;
4839
4839
  try {
4840
- for (M = M.call(R); !(S = (uu = M.next()).done) && (g.push(uu.value), !Q || g.length !== Q); S = !0) ;
4840
+ for (M = M.call(R); !(S = (uu = M.next()).done) && (_.push(uu.value), !Q || _.length !== Q); S = !0) ;
4841
4841
  } catch (w) {
4842
- N = !0, k = w;
4842
+ N = !0, C = w;
4843
4843
  } finally {
4844
4844
  try {
4845
4845
  S || M.return == null || M.return();
4846
4846
  } finally {
4847
- if (N) throw k;
4847
+ if (N) throw C;
4848
4848
  }
4849
4849
  }
4850
- return g;
4850
+ return _;
4851
4851
  }
4852
- })(y, b) || a0(y, b) || (function() {
4852
+ })(g, h) || a0(g, h) || (function() {
4853
4853
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4854
4854
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4855
- })())[0], L = _;
4855
+ })())[0], L = x;
4856
4856
  t("update:selectedValue", L), t("selectedChange", L, j);
4857
4857
  }
4858
- }, d = function(h) {
4859
- t("nodeClick", h);
4860
- }, E = function(h) {
4861
- t("nodeMouseover", h);
4862
- }, x = function(h, y) {
4863
- if (h) i.hiddenPaths = G(G({}, i.hiddenPaths), {}, Lu({}, y, 1));
4858
+ }, d = function(p) {
4859
+ t("nodeClick", p);
4860
+ }, v = function(p) {
4861
+ t("nodeMouseover", p);
4862
+ }, k = function(p, g) {
4863
+ if (p) i.hiddenPaths = G(G({}, i.hiddenPaths), {}, Lu({}, g, 1));
4864
4864
  else {
4865
- var b = G({}, i.hiddenPaths);
4866
- delete b[y], i.hiddenPaths = b;
4865
+ var h = G({}, i.hiddenPaths);
4866
+ delete h[g], i.hiddenPaths = h;
4867
4867
  }
4868
- }, A = function(h, y) {
4869
- u.collapsedOnClickBrackets && x(h, y.path), t("bracketsClick", h, y);
4870
- }, C = function(h, y) {
4871
- x(h, y.path), t("iconClick", h, y);
4872
- }, v = function(h, y) {
4873
- var b = ke(u.data), _ = u.rootPath;
4874
- new Function("data", "val", "data".concat(y.slice(_.length), "=val"))(b, h), t("update:data", b);
4868
+ }, F = function(p, g) {
4869
+ u.collapsedOnClickBrackets && k(p, g.path), t("bracketsClick", p, g);
4870
+ }, E = function(p, g) {
4871
+ k(p, g.path), t("iconClick", p, g);
4872
+ }, y = function(p, g) {
4873
+ var h = ke(u.data), x = u.rootPath;
4874
+ new Function("data", "val", "data".concat(g.slice(x.length), "=val"))(h, p), t("update:data", h);
4875
4875
  };
4876
- return (0, F.watchEffect)((function() {
4877
- l.value && (function(h) {
4878
- throw new Error("[VueJSONPretty] ".concat(h));
4876
+ return (0, A.watchEffect)((function() {
4877
+ l.value && (function(p) {
4878
+ throw new Error("[VueJSONPretty] ".concat(p));
4879
4879
  })(l.value);
4880
- })), (0, F.watchEffect)((function() {
4880
+ })), (0, A.watchEffect)((function() {
4881
4881
  a.value && f();
4882
- })), (0, F.watch)((function() {
4882
+ })), (0, A.watch)((function() {
4883
4883
  return u.deep;
4884
- }), (function(h) {
4885
- h && (i.hiddenPaths = c(h, u.collapsedNodeLength));
4886
- })), (0, F.watch)((function() {
4884
+ }), (function(p) {
4885
+ p && (i.hiddenPaths = c(p, u.collapsedNodeLength));
4886
+ })), (0, A.watch)((function() {
4887
4887
  return u.collapsedNodeLength;
4888
- }), (function(h) {
4889
- h && (i.hiddenPaths = c(u.deep, h));
4888
+ }), (function(p) {
4889
+ p && (i.hiddenPaths = c(u.deep, p));
4890
4890
  })), function() {
4891
- var h, y, b, _, D = (h = u.renderNodeKey) !== null && h !== void 0 ? h : n.renderNodeKey, I = (y = u.renderNodeValue) !== null && y !== void 0 ? y : n.renderNodeValue, T = (b = (_ = u.renderNodeActions) !== null && _ !== void 0 ? _ : n.renderNodeActions) !== null && b !== void 0 && b, j = i.visibleData && i.visibleData.map((function(L) {
4892
- return (0, F.createVNode)(fc, { key: L.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: L, collapsed: !!i.hiddenPaths[L.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(L.path), selectableType: u.selectableType, showLine: u.showLine, showLineNumber: u.showLineNumber, showSelectController: u.showSelectController, selectOnClickNode: u.selectOnClickNode, nodeSelectable: u.nodeSelectable, highlightSelectedNode: u.highlightSelectedNode, editable: u.editable, editableTrigger: u.editableTrigger, showIcon: u.showIcon, showKeyValueSpace: u.showKeyValueSpace, renderNodeKey: D, renderNodeValue: I, renderNodeActions: T, onNodeClick: d, onNodeMouseover: E, onBracketsClick: A, onIconClick: C, onSelectedChange: p, onValueChange: v, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
4891
+ var p, g, h, x, D = (p = u.renderNodeKey) !== null && p !== void 0 ? p : n.renderNodeKey, T = (g = u.renderNodeValue) !== null && g !== void 0 ? g : n.renderNodeValue, I = (h = (x = u.renderNodeActions) !== null && x !== void 0 ? x : n.renderNodeActions) !== null && h !== void 0 && h, j = i.visibleData && i.visibleData.map((function(L) {
4892
+ return (0, A.createVNode)(fc, { key: L.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: L, collapsed: !!i.hiddenPaths[L.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(L.path), selectableType: u.selectableType, showLine: u.showLine, showLineNumber: u.showLineNumber, showSelectController: u.showSelectController, selectOnClickNode: u.selectOnClickNode, nodeSelectable: u.nodeSelectable, highlightSelectedNode: u.highlightSelectedNode, editable: u.editable, editableTrigger: u.editableTrigger, showIcon: u.showIcon, showKeyValueSpace: u.showKeyValueSpace, renderNodeKey: D, renderNodeValue: T, renderNodeActions: I, onNodeClick: d, onNodeMouseover: v, onBracketsClick: F, onIconClick: E, onSelectedChange: b, onValueChange: y, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
4893
4893
  }));
4894
- return (0, F.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? m : void 0, style: u.showLineNumber ? G({ paddingLeft: "".concat(12 * Number(o.value.length.toString().length), "px") }, u.style) : u.style }, [u.virtual ? (0, F.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(u.height, "px") } }, [(0, F.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat(a.value.length * u.itemHeight, "px") } }, [(0, F.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(i.translateY, "px)") } }, [j])])]) : j]);
4894
+ return (0, A.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? m : void 0, style: u.showLineNumber ? G({ paddingLeft: "".concat(12 * Number(o.value.length.toString().length), "px") }, u.style) : u.style }, [u.virtual ? (0, A.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(u.height, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat(a.value.length * u.itemHeight, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(i.translateY, "px)") } }, [j])])]) : j]);
4895
4895
  };
4896
4896
  } });
4897
4897
  var hc = i0.A;
@@ -4957,99 +4957,123 @@ const pc = ["src", "alt"], bc = /* @__PURE__ */ ye({
4957
4957
  content: {}
4958
4958
  },
4959
4959
  setup(u) {
4960
- const e = u;
4961
- function t(C) {
4962
- return !("type" in C);
4960
+ const e = u, t = xu(() => {
4961
+ if (typeof e.content == "string") {
4962
+ try {
4963
+ const y = JSON.parse(e.content), p = (h) => h && typeof h == "object" && !Array.isArray(h) && ("texts" in h || "files" in h) && !("type" in h), g = (h) => {
4964
+ const x = ["text", "file", "image", "voice", "medialib"];
4965
+ return h && typeof h == "object" && !Array.isArray(h) && typeof h.type == "string" && x.includes(h.type) && "content" in h;
4966
+ };
4967
+ if (Array.isArray(y)) {
4968
+ const h = [], x = [];
4969
+ for (const T of y)
4970
+ p(T) && (Array.isArray(T.texts) && h.push(...T.texts.filter(Boolean)), Array.isArray(T.files) && x.push(...T.files.filter(Boolean)));
4971
+ if (h.length > 0 || x.length > 0)
4972
+ return { texts: h, files: x };
4973
+ const D = y[0];
4974
+ if (p(D) || g(D))
4975
+ return D;
4976
+ }
4977
+ if (p(y) || g(y))
4978
+ return y;
4979
+ } catch {
4980
+ }
4981
+ return { type: "text", content: e.content };
4982
+ }
4983
+ return e.content;
4984
+ });
4985
+ function n(y) {
4986
+ return !("type" in y);
4963
4987
  }
4964
- const n = new J({
4988
+ const r = new J({
4965
4989
  html: !0,
4966
4990
  linkify: !0,
4967
4991
  typographer: !0
4968
- }), r = Du(() => !t(e.content) && e.content.type === "text" ? n.render(e.content.content) : ""), o = Au(!1), c = Au("");
4969
- function i() {
4970
- t(e.content) || (e.content.type === "image" ? (c.value = e.content.content, o.value = !0) : e.content.type === "medialib" && x.value === "image" && (c.value = d.value, o.value = !0));
4992
+ }), o = xu(() => !n(t.value) && t.value.type === "text" ? r.render(t.value.content) : ""), c = Au(!1), i = Au("");
4993
+ function a() {
4994
+ n(t.value) || (t.value.type === "image" ? (i.value = t.value.content, c.value = !0) : t.value.type === "medialib" && F.value === "image" && (i.value = v.value, c.value = !0));
4971
4995
  }
4972
- function a(C) {
4973
- c.value = C, o.value = !0;
4996
+ function s(y) {
4997
+ i.value = y, c.value = !0;
4974
4998
  }
4975
- function s(C) {
4999
+ function l(y) {
4976
5000
  try {
4977
- const y = new URL(C).pathname.split("/");
4978
- return y[y.length - 1] || "未知文件";
5001
+ const h = new URL(y).pathname.split("/");
5002
+ return h[h.length - 1] || "未知文件";
4979
5003
  } catch {
4980
5004
  return "未知文件";
4981
5005
  }
4982
5006
  }
4983
- function l() {
4984
- t(e.content) || window.open(e.content.content, "_blank");
5007
+ function f() {
5008
+ n(t.value) || window.open(t.value.content, "_blank");
4985
5009
  }
4986
- function f(C) {
4987
- window.open(C, "_blank");
5010
+ function m(y) {
5011
+ window.open(y, "_blank");
4988
5012
  }
4989
- function m(C) {
4990
- if (!C) return "file";
4991
- const v = C.toLowerCase();
4992
- return v.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : v.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : v.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
5013
+ function b(y) {
5014
+ if (!y) return "file";
5015
+ const p = y.toLowerCase();
5016
+ return p.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : p.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : p.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
4993
5017
  }
4994
- const p = Du(() => {
4995
- if (!t(e.content) && e.content.type === "medialib")
5018
+ const d = xu(() => {
5019
+ if (!n(t.value) && t.value.type === "medialib")
4996
5020
  try {
4997
- return JSON.parse(e.content.content);
5021
+ return JSON.parse(t.value.content);
4998
5022
  } catch {
4999
5023
  return null;
5000
5024
  }
5001
5025
  return null;
5002
- }), d = Du(() => p.value?.file_url || ""), E = Du(() => p.value?.file_name || s(d.value)), x = Du(() => {
5003
- if (!d.value)
5026
+ }), v = xu(() => d.value?.file_url || ""), k = xu(() => d.value?.file_name || l(v.value)), F = xu(() => {
5027
+ if (!v.value)
5004
5028
  return "json";
5005
- const C = d.value.toLowerCase();
5006
- return C.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : C.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : C.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
5029
+ const y = v.value.toLowerCase();
5030
+ return y.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : y.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : y.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
5007
5031
  });
5008
- function A() {
5009
- d.value && window.open(d.value, "_blank");
5032
+ function E() {
5033
+ v.value && window.open(v.value, "_blank");
5010
5034
  }
5011
- return (C, v) => (P(), z("div", xc, [
5012
- !t(u.content) && u.content.type === "text" ? (P(), z("div", {
5035
+ return (y, p) => (P(), z("div", xc, [
5036
+ !n(t.value) && t.value.type === "text" ? (P(), z("div", {
5013
5037
  key: 0,
5014
5038
  class: "content-text",
5015
- innerHTML: r.value
5016
- }, null, 8, gc)) : t(u.content) ? (P(), z("div", _c, [
5017
- (P(!0), z(Me, null, je(u.content.texts, (h, y) => (P(), z("div", {
5018
- key: `text-${y}`,
5039
+ innerHTML: o.value
5040
+ }, null, 8, gc)) : n(t.value) ? (P(), z("div", _c, [
5041
+ (P(!0), z(Me, null, je(t.value.texts, (g, h) => (P(), z("div", {
5042
+ key: `text-${h}`,
5019
5043
  class: "content-text",
5020
- innerHTML: au(n).render(h)
5044
+ innerHTML: au(r).render(g)
5021
5045
  }, null, 8, kc))), 128)),
5022
5046
  lu("div", yc, [
5023
- (P(!0), z(Me, null, je(u.content.files, (h, y) => (P(), z("div", {
5024
- key: `file-${y}`,
5047
+ (P(!0), z(Me, null, je(t.value.files, (g, h) => (P(), z("div", {
5048
+ key: `file-${h}`,
5025
5049
  class: "file-item"
5026
5050
  }, [
5027
- m(h) === "image" ? (P(), z("img", {
5051
+ b(g) === "image" ? (P(), z("img", {
5028
5052
  key: 0,
5029
- src: h,
5053
+ src: g,
5030
5054
  alt: "图片",
5031
5055
  class: "file-image",
5032
- onClick: (b) => a(h)
5033
- }, null, 8, Cc)) : m(h) === "video" ? (P(), z("video", {
5056
+ onClick: (x) => s(g)
5057
+ }, null, 8, Cc)) : b(g) === "video" ? (P(), z("video", {
5034
5058
  key: 1,
5035
5059
  controls: "",
5036
- src: h,
5037
- class: "file-video"
5038
- }, "您的浏览器不支持视频播放", 8, vc)) : m(h) === "audio" ? (P(), z("audio", {
5060
+ src: g,
5061
+ class: "file-video video"
5062
+ }, "您的浏览器不支持视频播放", 8, vc)) : b(g) === "audio" ? (P(), z("audio", {
5039
5063
  key: 2,
5040
5064
  controls: "",
5041
- src: h,
5042
- class: "file-audio"
5065
+ src: g,
5066
+ class: "file-audio audio"
5043
5067
  }, "您的浏览器不支持音频播放", 8, Dc)) : (P(), z("div", {
5044
5068
  key: 3,
5045
5069
  class: "content-file",
5046
- onClick: (b) => f(h)
5070
+ onClick: (x) => m(g)
5047
5071
  }, [
5048
5072
  su(au(bu), {
5049
5073
  icon: "mdi:file-document-outline",
5050
5074
  class: "file-icon"
5051
5075
  }),
5052
- lu("span", Fc, ue(s(h)), 1),
5076
+ lu("span", Fc, ue(l(g)), 1),
5053
5077
  su(au(bu), {
5054
5078
  icon: "mdi:download",
5055
5079
  class: "download-icon"
@@ -5057,77 +5081,78 @@ const pc = ["src", "alt"], bc = /* @__PURE__ */ ye({
5057
5081
  ], 8, Ec))
5058
5082
  ]))), 128))
5059
5083
  ])
5060
- ])) : !t(u.content) && u.content.type === "file" ? (P(), z("div", {
5084
+ ])) : !n(t.value) && t.value.type === "file" ? (P(), z("div", {
5061
5085
  key: 2,
5062
5086
  class: "content-file",
5063
- onClick: l
5087
+ onClick: f
5064
5088
  }, [
5065
5089
  su(au(bu), {
5066
5090
  icon: "mdi:file-document-outline",
5067
5091
  class: "file-icon"
5068
5092
  }),
5069
- lu("span", Ac, ue(s(u.content.content)), 1),
5093
+ lu("span", Ac, ue(l(t.value.content)), 1),
5070
5094
  su(au(bu), {
5071
5095
  icon: "mdi:download",
5072
5096
  class: "download-icon"
5073
5097
  })
5074
- ])) : !t(u.content) && u.content.type === "image" ? (P(), z("div", wc, [
5098
+ ])) : !n(t.value) && t.value.type === "image" ? (P(), z("div", wc, [
5075
5099
  lu("img", {
5076
- src: u.content.content,
5100
+ src: t.value.content,
5077
5101
  alt: "图片",
5078
- onClick: i
5102
+ onClick: a
5079
5103
  }, null, 8, Sc)
5080
- ])) : !t(u.content) && u.content.type === "voice" ? (P(), z("div", Tc, [
5104
+ ])) : !n(t.value) && t.value.type === "voice" ? (P(), z("div", Tc, [
5081
5105
  lu("audio", {
5082
5106
  controls: "",
5083
- src: u.content.content
5107
+ src: t.value.content,
5108
+ class: "audio"
5084
5109
  }, "您的浏览器不支持音频播放", 8, Ic)
5085
- ])) : !t(u.content) && u.content.type === "medialib" ? (P(), z("div", Nc, [
5086
- x.value === "video" ? (P(), z("video", {
5110
+ ])) : !n(t.value) && t.value.type === "medialib" ? (P(), z("div", Nc, [
5111
+ F.value === "video" ? (P(), z("video", {
5087
5112
  key: 0,
5088
5113
  controls: "",
5089
- src: d.value,
5090
- class: "medialib-video"
5091
- }, " 您的浏览器不支持视频播放 ", 8, Lc)) : x.value === "image" ? (P(), z("img", {
5114
+ src: v.value,
5115
+ class: "medialib-video video"
5116
+ }, " 您的浏览器不支持视频播放 ", 8, Lc)) : F.value === "image" ? (P(), z("img", {
5092
5117
  key: 1,
5093
- src: d.value,
5118
+ src: v.value,
5094
5119
  alt: "图片",
5095
5120
  class: "medialib-image",
5096
- onClick: i
5097
- }, null, 8, Oc)) : x.value === "audio" ? (P(), z("audio", {
5121
+ onClick: a
5122
+ }, null, 8, Oc)) : F.value === "audio" ? (P(), z("audio", {
5098
5123
  key: 2,
5099
5124
  controls: "",
5100
- src: d.value,
5101
- class: "medialib-audio"
5102
- }, " 您的浏览器不支持音频播放 ", 8, Bc)) : x.value === "file" ? (P(), z("div", {
5125
+ src: v.value,
5126
+ class: "medialib-audio audio"
5127
+ }, " 您的浏览器不支持音频播放 ", 8, Bc)) : F.value === "file" ? (P(), z("div", {
5103
5128
  key: 3,
5104
5129
  class: "content-file",
5105
- onClick: A
5130
+ onClick: E
5106
5131
  }, [
5107
5132
  su(au(bu), {
5108
5133
  icon: "mdi:file-document-outline",
5109
5134
  class: "file-icon"
5110
5135
  }),
5111
- lu("span", Pc, ue(E.value), 1),
5136
+ lu("span", Pc, ue(k.value), 1),
5112
5137
  su(au(bu), {
5113
5138
  icon: "mdi:download",
5114
5139
  class: "download-icon"
5115
5140
  })
5116
5141
  ])) : (P(), vt(au(hc), {
5117
5142
  key: 4,
5118
- data: p.value,
5143
+ data: d.value,
5119
5144
  deep: 3,
5120
5145
  class: "json-viewer"
5121
5146
  }, null, 8, ["data"]))
5122
5147
  ])) : Dt("", !0),
5123
5148
  su(mc, {
5124
- show: o.value,
5125
- "image-url": c.value,
5126
- onClose: v[0] || (v[0] = (h) => o.value = !1)
5149
+ show: c.value,
5150
+ "image-url": i.value,
5151
+ onClose: p[0] || (p[0] = (g) => c.value = !1)
5127
5152
  }, null, 8, ["show", "image-url"])
5128
5153
  ]));
5129
5154
  }
5130
- }), zc = /* @__PURE__ */ f0(Mc, [["__scopeId", "data-v-c1bb0c2f"]]);
5155
+ }), zc = /* @__PURE__ */ f0(Mc, [["__scopeId", "data-v-cfe541e3"]]);
5131
5156
  export {
5132
5157
  mc as ImageViewer,
5133
5158
  zc as MessageContentRenderer