lianshu-editor 1.0.170 → 1.0.172

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,15 +1,15 @@
1
1
  var fp = Object.defineProperty;
2
2
  var dp = (e, t, n) => t in e ? fp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Fe = (e, t, n) => dp(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as Ne, ref as Q, onMounted as Kt, nextTick as yt, onBeforeUnmount as qn, h as Qr, openBlock as D, createElementBlock as F, createElementVNode as b, createVNode as j, unref as P, toDisplayString as Ae, Fragment as Et, renderList as Qt, normalizeStyle as Ft, normalizeClass as X, createBlock as ye, createCommentVNode as ae, computed as te, inject as Dn, resolveDynamicComponent as ca, withDirectives as ot, withKeys as at, vModelText as Yt, onUnmounted as Fs, watch as it, Teleport as Yr, withModifiers as oe, getCurrentInstance as hp, toRaw as Sd, provide as Ka, reactive as gp, readonly as pp, resolveComponent as Zi, vShow as Kr, createTextVNode as dn, withCtx as Tt, markRaw as zn, Transition as Dd, toRef as mo, renderSlot as mp } from "vue";
5
- import { nodeViewProps as gr, NodeViewWrapper as $t, NodeViewContent as Uu, VueNodeViewRenderer as Dt, VueRenderer as Fu, useEditor as Hu, EditorContent as zu } from "@tiptap/vue-3";
4
+ import { defineComponent as Ne, ref as Q, onMounted as $t, nextTick as yt, onBeforeUnmount as qn, h as Qr, openBlock as D, createElementBlock as F, createElementVNode as b, createVNode as j, unref as P, toDisplayString as Ae, Fragment as Et, renderList as Qt, normalizeStyle as Ft, normalizeClass as X, createBlock as ye, createCommentVNode as ae, computed as te, inject as Dn, resolveDynamicComponent as ca, withDirectives as ot, withKeys as at, vModelText as Yt, onUnmounted as Fs, watch as it, Teleport as Yr, withModifiers as oe, getCurrentInstance as hp, toRaw as Sd, provide as $a, reactive as gp, readonly as pp, resolveComponent as Zi, vShow as $r, createTextVNode as dn, withCtx as Tt, markRaw as zn, Transition as Dd, toRef as mo, renderSlot as mp } from "vue";
5
+ import { nodeViewProps as gr, NodeViewWrapper as Kt, NodeViewContent as Uu, VueNodeViewRenderer as Dt, VueRenderer as Fu, useEditor as Hu, EditorContent as zu } from "@tiptap/vue-3";
6
6
  import { isTextSelection as bp, posToDOMRect as Od, getText as Ap, getTextSerializersFromSchema as yp, Node as Ot, mergeAttributes as St, textblockTypeInputRule as Ep, InputRule as ju, nodeInputRule as Tp, Extension as pr } from "@tiptap/core";
7
7
  import vp from "@tiptap/extension-code-block-lowlight";
8
8
  import { createLowlight as Ip, common as kp } from "lowlight";
9
9
  import Qu from "@tiptap/starter-kit";
10
10
  import Yu from "@tiptap/extension-placeholder";
11
- import Ku from "@tiptap/extension-task-list";
12
- import $u from "@tiptap/extension-task-item";
11
+ import $u from "@tiptap/extension-task-list";
12
+ import Ku from "@tiptap/extension-task-item";
13
13
  import wp from "@tiptap/extension-underline";
14
14
  import { TableRow as Cp } from "@tiptap/extension-table-row";
15
15
  import { TableCell as Np } from "@tiptap/extension-table-cell";
@@ -286,7 +286,7 @@ const Yp = async (e, t, n) => {
286
286
  strategy: r,
287
287
  middlewareData: g
288
288
  };
289
- }, Kp = (e) => ({
289
+ }, $p = (e) => ({
290
290
  name: "arrow",
291
291
  options: e,
292
292
  async fn(t) {
@@ -310,21 +310,21 @@ const Yp = async (e, t, n) => {
310
310
  }, g = Vu(r), p = qu(g), m = await s.getDimensions(l), A = g === "y", y = A ? "top" : "left", I = A ? "bottom" : "right", N = A ? "clientHeight" : "clientWidth", T = i.reference[p] + i.reference[g] - h[g] - i.floating[p], w = h[g] - i.reference[g], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
311
311
  let L = M ? M[N] : 0;
312
312
  (!L || !await (s.isElement == null ? void 0 : s.isElement(M))) && (L = o.floating[N] || i.floating[p]);
313
- const H = T / 2 - w / 2, k = L / 2 - m[p] / 2 - 1, x = On(f[y], k), U = On(f[I], k), O = x, S = L - m[p] - U, C = L / 2 - m[p] / 2 + H, B = qo(O, C, S), G = !u.arrow && hn(r) != null && C !== B && i.reference[p] / 2 - (C < O ? x : U) - m[p] / 2 < 0, K = G ? C < O ? C - O : C - S : 0;
313
+ const H = T / 2 - w / 2, k = L / 2 - m[p] / 2 - 1, x = On(f[y], k), U = On(f[I], k), O = x, S = L - m[p] - U, C = L / 2 - m[p] / 2 + H, B = qo(O, C, S), G = !u.arrow && hn(r) != null && C !== B && i.reference[p] / 2 - (C < O ? x : U) - m[p] / 2 < 0, $ = G ? C < O ? C - O : C - S : 0;
314
314
  return {
315
- [g]: h[g] + K,
315
+ [g]: h[g] + $,
316
316
  data: {
317
317
  [g]: B,
318
- centerOffset: C - B - K,
318
+ centerOffset: C - B - $,
319
319
  ...G && {
320
- alignmentOffset: K
320
+ alignmentOffset: $
321
321
  }
322
322
  },
323
323
  reset: G
324
324
  };
325
325
  }
326
326
  });
327
- function $p(e, t, n) {
327
+ function Kp(e, t, n) {
328
328
  return (e ? [...n.filter((r) => hn(r) === e), ...n.filter((r) => hn(r) !== e)] : n.filter((r) => rn(r) === r)).filter((r) => e ? hn(r) === e || (t ? cs(r) !== r : !1) : !0);
329
329
  }
330
330
  const Wp = function(e) {
@@ -345,7 +345,7 @@ const Wp = function(e) {
345
345
  allowedPlacements: h = vc,
346
346
  autoAlignment: g = !0,
347
347
  ...p
348
- } = Jn(e, t), m = f !== void 0 || h === vc ? $p(f || null, g, h) : h, A = await u.detectOverflow(t, p), y = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, I = m[y];
348
+ } = Jn(e, t), m = f !== void 0 || h === vc ? Kp(f || null, g, h) : h, A = await u.detectOverflow(t, p), y = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, I = m[y];
349
349
  if (I == null)
350
350
  return {};
351
351
  const N = Ud(I, i, await (u.isRTL == null ? void 0 : u.isRTL(l.floating)));
@@ -435,7 +435,7 @@ const Wp = function(e) {
435
435
  const C = (((U = i.flip) == null ? void 0 : U.index) || 0) + 1, B = L[C];
436
436
  if (B && (!(f === "alignment" ? I !== Nn(B) : !1) || // We leave the current main axis only if every placement on that axis
437
437
  // overflows the main axis.
438
- x.every(($) => Nn($.placement) === I ? $.overflows[0] > 0 : !0)))
438
+ x.every((K) => Nn(K.placement) === I ? K.overflows[0] > 0 : !0)))
439
439
  return {
440
440
  data: {
441
441
  index: C,
@@ -445,21 +445,21 @@ const Wp = function(e) {
445
445
  placement: B
446
446
  }
447
447
  };
448
- let G = (O = x.filter((K) => K.overflows[0] <= 0).sort((K, $) => K.overflows[1] - $.overflows[1])[0]) == null ? void 0 : O.placement;
448
+ let G = (O = x.filter(($) => $.overflows[0] <= 0).sort(($, K) => $.overflows[1] - K.overflows[1])[0]) == null ? void 0 : O.placement;
449
449
  if (!G)
450
450
  switch (g) {
451
451
  case "bestFit": {
452
452
  var S;
453
- const K = (S = x.filter(($) => {
453
+ const $ = (S = x.filter((K) => {
454
454
  if (M) {
455
- const de = Nn($.placement);
455
+ const de = Nn(K.placement);
456
456
  return de === I || // Create a bias to the `y` side axis due to horizontal
457
457
  // reading directions favoring greater width.
458
458
  de === "y";
459
459
  }
460
460
  return !0;
461
- }).map(($) => [$.placement, $.overflows.filter((de) => de > 0).reduce((de, Le) => de + Le, 0)]).sort(($, de) => $[1] - de[1])[0]) == null ? void 0 : S[0];
462
- K && (G = K);
461
+ }).map((K) => [K.placement, K.overflows.filter((de) => de > 0).reduce((de, Le) => de + Le, 0)]).sort((K, de) => K[1] - de[1])[0]) == null ? void 0 : S[0];
462
+ $ && (G = $);
463
463
  break;
464
464
  }
465
465
  case "initialPlacement":
@@ -570,14 +570,14 @@ const Jp = function(e) {
570
570
  return f.find((A) => u > A.left - g.left && u < A.right + g.right && l > A.top - g.top && l < A.bottom + g.bottom) || h;
571
571
  if (f.length >= 2) {
572
572
  if (Nn(n) === "y") {
573
- const x = f[0], U = f[f.length - 1], O = rn(n) === "top", S = x.top, C = U.bottom, B = O ? x.left : U.left, G = O ? x.right : U.right, K = G - B, $ = C - S;
573
+ const x = f[0], U = f[f.length - 1], O = rn(n) === "top", S = x.top, C = U.bottom, B = O ? x.left : U.left, G = O ? x.right : U.right, $ = G - B, K = C - S;
574
574
  return {
575
575
  top: S,
576
576
  bottom: C,
577
577
  left: B,
578
578
  right: G,
579
- width: K,
580
- height: $,
579
+ width: $,
580
+ height: K,
581
581
  x: B,
582
582
  y: S
583
583
  };
@@ -897,7 +897,7 @@ function Va(e) {
897
897
  };
898
898
  }
899
899
  const dm = /* @__PURE__ */ _n(0);
900
- function Kd(e) {
900
+ function $d(e) {
901
901
  const t = Zt(e);
902
902
  return !Xu() || !t.visualViewport ? dm : {
903
903
  x: t.visualViewport.offsetLeft,
@@ -907,12 +907,12 @@ function Kd(e) {
907
907
  function hm(e, t, n) {
908
908
  return t === void 0 && (t = !1), !n || t && n !== Zt(e) ? !1 : t;
909
909
  }
910
- function $r(e, t, n, a) {
910
+ function Kr(e, t, n, a) {
911
911
  t === void 0 && (t = !1), n === void 0 && (n = !1);
912
912
  const r = e.getBoundingClientRect(), i = Yd(e);
913
913
  let s = _n(1);
914
914
  t && (a ? pn(a) && (s = Va(a)) : s = Va(e));
915
- const o = hm(i, n, a) ? Kd(i) : _n(0);
915
+ const o = hm(i, n, a) ? $d(i) : _n(0);
916
916
  let u = (r.left + o.x) / s.x, l = (r.top + o.y) / s.y, c = r.width / s.x, f = r.height / s.y;
917
917
  if (i) {
918
918
  const h = Zt(i), g = a && pn(a) ? Zt(a) : a;
@@ -931,9 +931,9 @@ function $r(e, t, n, a) {
931
931
  }
932
932
  function Qs(e, t) {
933
933
  const n = js(e).scrollLeft;
934
- return t ? t.left + n : $r(Zn(e)).left + n;
934
+ return t ? t.left + n : Kr(Zn(e)).left + n;
935
935
  }
936
- function $d(e, t) {
936
+ function Kd(e, t) {
937
937
  const n = e.getBoundingClientRect(), a = n.left + t.scrollLeft - Qs(e, n), r = n.top + t.scrollTop;
938
938
  return {
939
939
  x: a,
@@ -956,10 +956,10 @@ function gm(e) {
956
956
  }, l = _n(1);
957
957
  const c = _n(0), f = Ln(a);
958
958
  if ((f || !f && !i) && ((mr(a) !== "body" || hi(s)) && (u = js(a)), Ln(a))) {
959
- const g = $r(a);
959
+ const g = Kr(a);
960
960
  l = Va(a), c.x = g.x + a.clientLeft, c.y = g.y + a.clientTop;
961
961
  }
962
- const h = s && !f && !i ? $d(s, u) : _n(0);
962
+ const h = s && !f && !i ? Kd(s, u) : _n(0);
963
963
  return {
964
964
  width: n.width * l.x,
965
965
  height: n.height * l.y,
@@ -1004,7 +1004,7 @@ function bm(e, t) {
1004
1004
  }
1005
1005
  const Am = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1006
1006
  function ym(e, t) {
1007
- const n = $r(e, !0, t === "fixed"), a = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ln(e) ? Va(e) : _n(1), s = e.clientWidth * i.x, o = e.clientHeight * i.y, u = r * i.x, l = a * i.y;
1007
+ const n = Kr(e, !0, t === "fixed"), a = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ln(e) ? Va(e) : _n(1), s = e.clientWidth * i.x, o = e.clientHeight * i.y, u = r * i.x, l = a * i.y;
1008
1008
  return {
1009
1009
  width: s,
1010
1010
  height: o,
@@ -1021,7 +1021,7 @@ function Mc(e, t, n) {
1021
1021
  else if (pn(t))
1022
1022
  a = ym(t, n);
1023
1023
  else {
1024
- const r = Kd(e);
1024
+ const r = $d(e);
1025
1025
  a = {
1026
1026
  x: t.x - r.x,
1027
1027
  y: t.y - r.y,
@@ -1077,7 +1077,7 @@ function vm(e) {
1077
1077
  };
1078
1078
  }
1079
1079
  function Im(e, t, n) {
1080
- const a = Ln(t), r = Zn(t), i = n === "fixed", s = $r(e, !0, i, t);
1080
+ const a = Ln(t), r = Zn(t), i = n === "fixed", s = Kr(e, !0, i, t);
1081
1081
  let o = {
1082
1082
  scrollLeft: 0,
1083
1083
  scrollTop: 0
@@ -1088,11 +1088,11 @@ function Im(e, t, n) {
1088
1088
  }
1089
1089
  if (a || !a && !i)
1090
1090
  if ((mr(t) !== "body" || hi(r)) && (o = js(t)), a) {
1091
- const g = $r(t, !0, i, t);
1091
+ const g = Kr(t, !0, i, t);
1092
1092
  u.x = g.x + t.clientLeft, u.y = g.y + t.clientTop;
1093
1093
  } else r && l();
1094
1094
  i && !a && r && l();
1095
- const c = r && !a && !i ? $d(r, o) : _n(0), f = s.left + o.scrollLeft - u.x - c.x, h = s.top + o.scrollTop - u.y - c.y;
1095
+ const c = r && !a && !i ? Kd(r, o) : _n(0), f = s.left + o.scrollLeft - u.x - c.x, h = s.top + o.scrollTop - u.y - c.y;
1096
1096
  return {
1097
1097
  x: f,
1098
1098
  y: h,
@@ -1155,7 +1155,7 @@ const Cm = {
1155
1155
  getScale: Va,
1156
1156
  isElement: pn,
1157
1157
  isRTL: wm
1158
- }, qd = em, Vd = Wp, Jd = tm, Zd = Gp, Xd = nm, e0 = qp, t0 = Kp, n0 = Jp, a0 = (e, t, n) => {
1158
+ }, qd = em, Vd = Wp, Jd = tm, Zd = Gp, Xd = nm, e0 = qp, t0 = $p, n0 = Jp, a0 = (e, t, n) => {
1159
1159
  const a = /* @__PURE__ */ new Map(), r = {
1160
1160
  platform: Cm,
1161
1161
  ...n
@@ -1217,7 +1217,7 @@ function i0(e, t, n, a) {
1217
1217
  n -= u, a -= u;
1218
1218
  }
1219
1219
  }
1220
- class ve {
1220
+ class Ce {
1221
1221
  /**
1222
1222
  @internal
1223
1223
  */
@@ -1272,7 +1272,7 @@ class ve {
1272
1272
  let n = this.lastChild, a = t.firstChild, r = this.content.slice(), i = 0;
1273
1273
  for (n.isText && n.sameMarkup(a) && (r[r.length - 1] = n.withText(n.text + a.text), i = 1); i < t.content.length; i++)
1274
1274
  r.push(t.content[i]);
1275
- return new ve(r, this.size + t.size);
1275
+ return new Ce(r, this.size + t.size);
1276
1276
  }
1277
1277
  /**
1278
1278
  Cut out the sub-fragment between the two given positions.
@@ -1286,13 +1286,13 @@ class ve {
1286
1286
  let o = this.content[i], u = s + o.nodeSize;
1287
1287
  u > t && ((s < t || u > n) && (o.isText ? o = o.cut(Math.max(0, t - s), Math.min(o.text.length, n - s)) : o = o.cut(Math.max(0, t - s - 1), Math.min(o.content.size, n - s - 1))), a.push(o), r += o.nodeSize), s = u;
1288
1288
  }
1289
- return new ve(a, r);
1289
+ return new Ce(a, r);
1290
1290
  }
1291
1291
  /**
1292
1292
  @internal
1293
1293
  */
1294
1294
  cutByIndex(t, n) {
1295
- return t == n ? ve.empty : t == 0 && n == this.content.length ? this : new ve(this.content.slice(t, n));
1295
+ return t == n ? Ce.empty : t == 0 && n == this.content.length ? this : new Ce(this.content.slice(t, n));
1296
1296
  }
1297
1297
  /**
1298
1298
  Create a new fragment in which the node at the given index is
@@ -1303,21 +1303,21 @@ class ve {
1303
1303
  if (a == n)
1304
1304
  return this;
1305
1305
  let r = this.content.slice(), i = this.size + n.nodeSize - a.nodeSize;
1306
- return r[t] = n, new ve(r, i);
1306
+ return r[t] = n, new Ce(r, i);
1307
1307
  }
1308
1308
  /**
1309
1309
  Create a new fragment by prepending the given node to this
1310
1310
  fragment.
1311
1311
  */
1312
1312
  addToStart(t) {
1313
- return new ve([t].concat(this.content), this.size + t.nodeSize);
1313
+ return new Ce([t].concat(this.content), this.size + t.nodeSize);
1314
1314
  }
1315
1315
  /**
1316
1316
  Create a new fragment by appending the given node to this
1317
1317
  fragment.
1318
1318
  */
1319
1319
  addToEnd(t) {
1320
- return new ve(this.content.concat(t), this.size + t.nodeSize);
1320
+ return new Ce(this.content.concat(t), this.size + t.nodeSize);
1321
1321
  }
1322
1322
  /**
1323
1323
  Compare this fragment to another one.
@@ -1432,10 +1432,10 @@ class ve {
1432
1432
  */
1433
1433
  static fromJSON(t, n) {
1434
1434
  if (!n)
1435
- return ve.empty;
1435
+ return Ce.empty;
1436
1436
  if (!Array.isArray(n))
1437
1437
  throw new RangeError("Invalid input for Fragment.fromJSON");
1438
- return new ve(n.map(t.nodeFromJSON));
1438
+ return new Ce(n.map(t.nodeFromJSON));
1439
1439
  }
1440
1440
  /**
1441
1441
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -1443,13 +1443,13 @@ class ve {
1443
1443
  */
1444
1444
  static fromArray(t) {
1445
1445
  if (!t.length)
1446
- return ve.empty;
1446
+ return Ce.empty;
1447
1447
  let n, a = 0;
1448
1448
  for (let r = 0; r < t.length; r++) {
1449
1449
  let i = t[r];
1450
1450
  a += i.nodeSize, r && i.isText && t[r - 1].sameMarkup(i) ? (n || (n = t.slice(0, r)), n[n.length - 1] = i.withText(n[n.length - 1].text + i.text)) : n && n.push(i);
1451
1451
  }
1452
- return new ve(n || t, a);
1452
+ return new Ce(n || t, a);
1453
1453
  }
1454
1454
  /**
1455
1455
  Create a fragment from something that can be interpreted as a
@@ -1459,17 +1459,17 @@ class ve {
1459
1459
  */
1460
1460
  static from(t) {
1461
1461
  if (!t)
1462
- return ve.empty;
1463
- if (t instanceof ve)
1462
+ return Ce.empty;
1463
+ if (t instanceof Ce)
1464
1464
  return t;
1465
1465
  if (Array.isArray(t))
1466
1466
  return this.fromArray(t);
1467
1467
  if (t.attrs)
1468
- return new ve([t], t.nodeSize);
1468
+ return new Ce([t], t.nodeSize);
1469
1469
  throw new RangeError("Can not convert " + t + " to a Fragment" + (t.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
1470
1470
  }
1471
1471
  }
1472
- ve.empty = new ve([], 0);
1472
+ Ce.empty = new Ce([], 0);
1473
1473
  const Ao = { index: 0, offset: 0 };
1474
1474
  function Mi(e, t) {
1475
1475
  return Ao.index = e, Ao.offset = t, Ao;
@@ -1671,7 +1671,7 @@ class Te {
1671
1671
  let a = n.openStart || 0, r = n.openEnd || 0;
1672
1672
  if (typeof a != "number" || typeof r != "number")
1673
1673
  throw new RangeError("Invalid input for Slice.fromJSON");
1674
- return new Te(ve.fromJSON(t, n.content), a, r);
1674
+ return new Te(Ce.fromJSON(t, n.content), a, r);
1675
1675
  }
1676
1676
  /**
1677
1677
  Create a slice from a fragment by taking the maximum possible
@@ -1686,7 +1686,7 @@ class Te {
1686
1686
  return new Te(t, a, r);
1687
1687
  }
1688
1688
  }
1689
- Te.empty = new Te(ve.empty, 0, 0);
1689
+ Te.empty = new Te(Ce.empty, 0, 0);
1690
1690
  function s0(e, t, n) {
1691
1691
  let { index: a, offset: r } = e.findIndex(t), i = e.maybeChild(a), { index: s, offset: o } = e.findIndex(n);
1692
1692
  if (r == t || i.isText) {
@@ -1878,7 +1878,7 @@ class Si {
1878
1878
  if (!this.match) {
1879
1879
  if (!this.type)
1880
1880
  return [];
1881
- let n = this.type.contentMatch.fillBefore(ve.from(t));
1881
+ let n = this.type.contentMatch.fillBefore(Ce.from(t));
1882
1882
  if (n)
1883
1883
  this.match = this.type.contentMatch.matchFragment(n);
1884
1884
  else {
@@ -1896,8 +1896,8 @@ class Si {
1896
1896
  a.text.length == r[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - r[0].length));
1897
1897
  }
1898
1898
  }
1899
- let n = ve.from(this.content);
1900
- return !t && this.match && (n = n.append(this.match.fillBefore(ve.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
1899
+ let n = Ce.from(this.content);
1900
+ return !t && this.match && (n = n.append(this.match.fillBefore(Ce.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
1901
1901
  }
1902
1902
  inlineContext(t) {
1903
1903
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !u0.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
@@ -2620,7 +2620,7 @@ function el(e, t, n) {
2620
2620
  let i = e.child(r);
2621
2621
  i.content.size && (i = i.copy(el(i.content, t, i))), i.isInline && (i = t(i, n, r)), a.push(i);
2622
2622
  }
2623
- return ve.fromArray(a);
2623
+ return Ce.fromArray(a);
2624
2624
  }
2625
2625
  class ka extends wt {
2626
2626
  /**
@@ -2712,7 +2712,7 @@ class Ca extends wt {
2712
2712
  if (!n)
2713
2713
  return rt.fail("No node at mark step's position");
2714
2714
  let a = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
2715
- return rt.fromReplace(t, this.pos, this.pos + 1, new Te(ve.from(a), 0, n.isLeaf ? 0 : 1));
2715
+ return rt.fromReplace(t, this.pos, this.pos + 1, new Te(Ce.from(a), 0, n.isLeaf ? 0 : 1));
2716
2716
  }
2717
2717
  invert(t) {
2718
2718
  let n = t.nodeAt(this.pos);
@@ -2756,7 +2756,7 @@ class Gr extends wt {
2756
2756
  if (!n)
2757
2757
  return rt.fail("No node at mark step's position");
2758
2758
  let a = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
2759
- return rt.fromReplace(t, this.pos, this.pos + 1, new Te(ve.from(a), 0, n.isLeaf ? 0 : 1));
2759
+ return rt.fromReplace(t, this.pos, this.pos + 1, new Te(Ce.from(a), 0, n.isLeaf ? 0 : 1));
2760
2760
  }
2761
2761
  invert(t) {
2762
2762
  let n = t.nodeAt(this.pos);
@@ -2779,7 +2779,7 @@ class Gr extends wt {
2779
2779
  }
2780
2780
  }
2781
2781
  wt.jsonID("removeNodeMark", Gr);
2782
- class $n extends wt {
2782
+ class Kn extends wt {
2783
2783
  /**
2784
2784
  The given `slice` should fit the 'gap' between `from` and
2785
2785
  `to`—the depths must line up, and the surrounding nodes must be
@@ -2799,21 +2799,21 @@ class $n extends wt {
2799
2799
  return new Jt([this.from, this.to - this.from, this.slice.size]);
2800
2800
  }
2801
2801
  invert(t) {
2802
- return new $n(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
2802
+ return new Kn(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
2803
2803
  }
2804
2804
  map(t) {
2805
2805
  let n = t.mapResult(this.from, 1), a = t.mapResult(this.to, -1);
2806
- return n.deletedAcross && a.deletedAcross ? null : new $n(n.pos, Math.max(n.pos, a.pos), this.slice, this.structure);
2806
+ return n.deletedAcross && a.deletedAcross ? null : new Kn(n.pos, Math.max(n.pos, a.pos), this.slice, this.structure);
2807
2807
  }
2808
2808
  merge(t) {
2809
- if (!(t instanceof $n) || t.structure || this.structure)
2809
+ if (!(t instanceof Kn) || t.structure || this.structure)
2810
2810
  return null;
2811
2811
  if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
2812
2812
  let n = this.slice.size + t.slice.size == 0 ? Te.empty : new Te(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
2813
- return new $n(this.from, this.to + (t.to - t.from), n, this.structure);
2813
+ return new Kn(this.from, this.to + (t.to - t.from), n, this.structure);
2814
2814
  } else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
2815
2815
  let n = this.slice.size + t.slice.size == 0 ? Te.empty : new Te(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
2816
- return new $n(t.from, this.to, n, this.structure);
2816
+ return new Kn(t.from, this.to, n, this.structure);
2817
2817
  } else
2818
2818
  return null;
2819
2819
  }
@@ -2827,10 +2827,10 @@ class $n extends wt {
2827
2827
  static fromJSON(t, n) {
2828
2828
  if (typeof n.from != "number" || typeof n.to != "number")
2829
2829
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
2830
- return new $n(n.from, n.to, Te.fromJSON(t, n.slice), !!n.structure);
2830
+ return new Kn(n.from, n.to, Te.fromJSON(t, n.slice), !!n.structure);
2831
2831
  }
2832
2832
  }
2833
- wt.jsonID("replace", $n);
2833
+ wt.jsonID("replace", Kn);
2834
2834
  class Ja extends wt {
2835
2835
  /**
2836
2836
  Create a replace-around step with the given range and gap.
@@ -2940,7 +2940,7 @@ class Dr extends wt {
2940
2940
  a[i] = n.attrs[i];
2941
2941
  a[this.attr] = this.value;
2942
2942
  let r = n.type.create(a, null, n.marks);
2943
- return rt.fromReplace(t, this.pos, this.pos + 1, new Te(ve.from(r), 0, n.isLeaf ? 0 : 1));
2943
+ return rt.fromReplace(t, this.pos, this.pos + 1, new Te(Ce.from(r), 0, n.isLeaf ? 0 : 1));
2944
2944
  }
2945
2945
  getMap() {
2946
2946
  return Jt.empty;
@@ -3100,11 +3100,11 @@ class Be {
3100
3100
  found.
3101
3101
  */
3102
3102
  static findFrom(t, n, a = !1) {
3103
- let r = t.parent.inlineContent ? new qe(t) : $a(t.node(0), t.parent, t.pos, t.index(), n, a);
3103
+ let r = t.parent.inlineContent ? new qe(t) : Ka(t.node(0), t.parent, t.pos, t.index(), n, a);
3104
3104
  if (r)
3105
3105
  return r;
3106
3106
  for (let i = t.depth - 1; i >= 0; i--) {
3107
- let s = n < 0 ? $a(t.node(0), t.node(i), t.before(i + 1), t.index(i), n, a) : $a(t.node(0), t.node(i), t.after(i + 1), t.index(i) + 1, n, a);
3107
+ let s = n < 0 ? Ka(t.node(0), t.node(i), t.before(i + 1), t.index(i), n, a) : Ka(t.node(0), t.node(i), t.after(i + 1), t.index(i) + 1, n, a);
3108
3108
  if (s)
3109
3109
  return s;
3110
3110
  }
@@ -3125,14 +3125,14 @@ class Be {
3125
3125
  exists.
3126
3126
  */
3127
3127
  static atStart(t) {
3128
- return $a(t, t, 0, 0, 1) || new xn(t);
3128
+ return Ka(t, t, 0, 0, 1) || new xn(t);
3129
3129
  }
3130
3130
  /**
3131
3131
  Find the cursor or leaf node selection closest to the end of the
3132
3132
  given document.
3133
3133
  */
3134
3134
  static atEnd(t) {
3135
- return $a(t, t, t.content.size, t.childCount, -1) || new xn(t);
3135
+ return Ka(t, t, t.content.size, t.childCount, -1) || new xn(t);
3136
3136
  }
3137
3137
  /**
3138
3138
  Deserialize the JSON representation of a selection. Must be
@@ -3214,7 +3214,7 @@ class qe extends Be {
3214
3214
  return t instanceof qe && t.anchor == this.anchor && t.head == this.head;
3215
3215
  }
3216
3216
  getBookmark() {
3217
- return new Ks(this.anchor, this.head);
3217
+ return new $s(this.anchor, this.head);
3218
3218
  }
3219
3219
  toJSON() {
3220
3220
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -3255,12 +3255,12 @@ class qe extends Be {
3255
3255
  }
3256
3256
  }
3257
3257
  Be.jsonID("text", qe);
3258
- class Ks {
3258
+ class $s {
3259
3259
  constructor(t, n) {
3260
3260
  this.anchor = t, this.head = n;
3261
3261
  }
3262
3262
  map(t) {
3263
- return new Ks(t.map(this.anchor), t.map(this.head));
3263
+ return new $s(t.map(this.anchor), t.map(this.head));
3264
3264
  }
3265
3265
  resolve(t) {
3266
3266
  return qe.between(t.resolve(this.anchor), t.resolve(this.head));
@@ -3280,7 +3280,7 @@ class Oe extends Be {
3280
3280
  return a ? Be.near(i) : new Oe(i);
3281
3281
  }
3282
3282
  content() {
3283
- return new Te(ve.from(this.node), 0, 0);
3283
+ return new Te(Ce.from(this.node), 0, 0);
3284
3284
  }
3285
3285
  eq(t) {
3286
3286
  return t instanceof Oe && t.anchor == this.anchor;
@@ -3321,7 +3321,7 @@ class tl {
3321
3321
  }
3322
3322
  map(t) {
3323
3323
  let { deleted: n, pos: a } = t.mapResult(this.anchor);
3324
- return n ? new Ks(a, a) : new tl(a);
3324
+ return n ? new $s(a, a) : new tl(a);
3325
3325
  }
3326
3326
  resolve(t) {
3327
3327
  let n = t.resolve(this.anchor), a = n.nodeAfter;
@@ -3371,7 +3371,7 @@ const Fm = {
3371
3371
  return new xn(e);
3372
3372
  }
3373
3373
  };
3374
- function $a(e, t, n, a, r, i = !1) {
3374
+ function Ka(e, t, n, a, r, i = !1) {
3375
3375
  if (t.inlineContent)
3376
3376
  return qe.create(e, n);
3377
3377
  for (let s = a - (r > 0 ? 0 : 1); r > 0 ? s < t.childCount : s >= 0; s += r) {
@@ -3380,7 +3380,7 @@ function $a(e, t, n, a, r, i = !1) {
3380
3380
  if (!i && Oe.isSelectable(o))
3381
3381
  return Oe.create(e, n - (r < 0 ? o.nodeSize : 0));
3382
3382
  } else {
3383
- let u = $a(e, o, n + r, r < 0 ? o.childCount : 0, r, i);
3383
+ let u = Ka(e, o, n + r, r < 0 ? o.childCount : 0, r, i);
3384
3384
  if (u)
3385
3385
  return u;
3386
3386
  }
@@ -3393,7 +3393,7 @@ function jc(e, t, n) {
3393
3393
  if (a < t)
3394
3394
  return;
3395
3395
  let r = e.steps[a];
3396
- if (!(r instanceof $n || r instanceof Ja))
3396
+ if (!(r instanceof Kn || r instanceof Ja))
3397
3397
  return;
3398
3398
  let i = e.mapping.maps[a], s;
3399
3399
  i.forEach((o, u, l, c) => {
@@ -3538,9 +3538,9 @@ function E0(e, t) {
3538
3538
  let n = document.createEvent("Event");
3539
3539
  return n.initEvent("keydown", !0, !0), n.keyCode = e, n.key = n.code = t, n;
3540
3540
  }
3541
- const Rn = typeof navigator < "u" ? navigator : null, Kc = typeof document < "u" ? document : null, ha = Rn && Rn.userAgent || "", tu = /Edge\/(\d+)/.exec(ha), T0 = /MSIE \d/.exec(ha), nu = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ha), pi = !!(T0 || nu || tu), v0 = T0 ? document.documentMode : nu ? +nu[1] : tu ? +tu[1] : 0, $s = !pi && /gecko\/(\d+)/i.test(ha);
3542
- $s && +(/Firefox\/(\d+)/.exec(ha) || [0, 0])[1];
3543
- const au = !pi && /Chrome\/(\d+)/.exec(ha), Xn = !!au, I0 = au ? +au[1] : 0, Pa = !pi && !!Rn && /Apple Computer/.test(Rn.vendor), al = Pa && (/Mobile\/\w+/.test(ha) || !!Rn && Rn.maxTouchPoints > 2), en = al || (Rn ? /Mac/.test(Rn.platform) : !1), k0 = Rn ? /Win/.test(Rn.platform) : !1, mi = /Android \d/.test(ha), rl = !!Kc && "webkitFontSmoothing" in Kc.documentElement.style, jm = rl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
3541
+ const Rn = typeof navigator < "u" ? navigator : null, $c = typeof document < "u" ? document : null, ha = Rn && Rn.userAgent || "", tu = /Edge\/(\d+)/.exec(ha), T0 = /MSIE \d/.exec(ha), nu = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ha), pi = !!(T0 || nu || tu), v0 = T0 ? document.documentMode : nu ? +nu[1] : tu ? +tu[1] : 0, Ks = !pi && /gecko\/(\d+)/i.test(ha);
3542
+ Ks && +(/Firefox\/(\d+)/.exec(ha) || [0, 0])[1];
3543
+ const au = !pi && /Chrome\/(\d+)/.exec(ha), Xn = !!au, I0 = au ? +au[1] : 0, Pa = !pi && !!Rn && /Apple Computer/.test(Rn.vendor), al = Pa && (/Mobile\/\w+/.test(ha) || !!Rn && Rn.maxTouchPoints > 2), en = al || (Rn ? /Mac/.test(Rn.platform) : !1), k0 = Rn ? /Win/.test(Rn.platform) : !1, mi = /Android \d/.test(ha), rl = !!$c && "webkitFontSmoothing" in $c.documentElement.style, jm = rl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
3544
3544
  function Qm(e, t = null) {
3545
3545
  let n = e.domSelectionRange(), a = e.state.doc;
3546
3546
  if (!n.focusNode)
@@ -3584,7 +3584,7 @@ function w0(e) {
3584
3584
  }
3585
3585
  function il(e, t = !1) {
3586
3586
  let n = e.state.selection;
3587
- if ($m(e, n), !!w0(e)) {
3587
+ if (Km(e, n), !!w0(e)) {
3588
3588
  if (!t && e.input.mouseDown && e.input.mouseDown.allowDefault && Xn) {
3589
3589
  let a = e.domSelectionRange(), r = e.domObserver.currentSelection;
3590
3590
  if (a.anchorNode && r.anchorNode && A0(a.anchorNode, a.anchorOffset, r.anchorNode, r.anchorOffset)) {
@@ -3593,15 +3593,15 @@ function il(e, t = !1) {
3593
3593
  }
3594
3594
  }
3595
3595
  if (e.domObserver.disconnectSelection(), e.cursorWrapper)
3596
- Km(e);
3596
+ $m(e);
3597
3597
  else {
3598
3598
  let { anchor: a, head: r } = n, i, s;
3599
- $c && !(n instanceof qe) && (n.$from.parent.inlineContent || (i = Wc(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = Wc(e, n.to))), e.docView.setSelection(a, r, e, t), $c && (i && Gc(i), s && Gc(s)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Ym(e));
3599
+ Kc && !(n instanceof qe) && (n.$from.parent.inlineContent || (i = Wc(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = Wc(e, n.to))), e.docView.setSelection(a, r, e, t), Kc && (i && Gc(i), s && Gc(s)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Ym(e));
3600
3600
  }
3601
3601
  e.domObserver.setCurSelection(), e.domObserver.connectSelection();
3602
3602
  }
3603
3603
  }
3604
- const $c = Pa || Xn && I0 < 63;
3604
+ const Kc = Pa || Xn && I0 < 63;
3605
3605
  function Wc(e, t) {
3606
3606
  let { node: n, offset: a } = e.docView.domFromPos(t, 0), r = a < n.childNodes.length ? n.childNodes[a] : null, i = a ? n.childNodes[a - 1] : null;
3607
3607
  if (Pa && r && r.contentEditable == "false")
@@ -3629,14 +3629,14 @@ function Ym(e) {
3629
3629
  }, 20));
3630
3630
  });
3631
3631
  }
3632
- function Km(e) {
3632
+ function $m(e) {
3633
3633
  let t = e.domSelection();
3634
3634
  if (!t)
3635
3635
  return;
3636
3636
  let n = e.cursorWrapper.dom, a = n.nodeName == "IMG";
3637
3637
  a ? t.collapse(n.parentNode, Ba(n) + 1) : t.collapse(n, 0), !a && !e.state.selection.visible && pi && v0 <= 11 && (n.disabled = !0, n.disabled = !1);
3638
3638
  }
3639
- function $m(e, t) {
3639
+ function Km(e, t) {
3640
3640
  if (t instanceof Oe) {
3641
3641
  let n = e.docView.descAt(t.from);
3642
3642
  n != e.lastSelectedViewDesc && (qc(e), n && n.selectNode(), e.lastSelectedViewDesc = n);
@@ -3711,7 +3711,7 @@ function Gm(e) {
3711
3711
  if (!n)
3712
3712
  return;
3713
3713
  let r, i, s = !1;
3714
- for ($s && n.nodeType == 1 && a < gs(n) && Or(n.childNodes[a], -1) && (s = !0); ; )
3714
+ for (Ks && n.nodeType == 1 && a < gs(n) && Or(n.childNodes[a], -1) && (s = !0); ; )
3715
3715
  if (a > 0) {
3716
3716
  if (n.nodeType != 1)
3717
3717
  break;
@@ -3948,7 +3948,7 @@ function x0(e, t, n, a, r) {
3948
3948
  if (e.someProp("transformPastedText", (h) => {
3949
3949
  t = h(t, i || a, e);
3950
3950
  }), i)
3951
- return o = new Te(ve.from(e.state.schema.text(t.replace(/\r\n?/g, `
3951
+ return o = new Te(Ce.from(e.state.schema.text(t.replace(/\r\n?/g, `
3952
3952
  `))), 0, 0), e.someProp("transformPasted", (h) => {
3953
3953
  o = h(o, e, !0);
3954
3954
  }), o;
@@ -4016,13 +4016,13 @@ function nb(e, t) {
4016
4016
  s.push(c), r = r.matchType(c.type), i = u;
4017
4017
  }
4018
4018
  }), s)
4019
- return ve.from(s);
4019
+ return Ce.from(s);
4020
4020
  }
4021
4021
  return e;
4022
4022
  }
4023
4023
  function M0(e, t, n = 0) {
4024
4024
  for (let a = t.length - 1; a >= n; a--)
4025
- e = t[a].create(null, ve.from(e));
4025
+ e = t[a].create(null, Ce.from(e));
4026
4026
  return e;
4027
4027
  }
4028
4028
  function S0(e, t, n, a, r) {
@@ -4031,18 +4031,18 @@ function S0(e, t, n, a, r) {
4031
4031
  if (i)
4032
4032
  return a.copy(a.content.replaceChild(a.childCount - 1, i));
4033
4033
  if (a.contentMatchAt(a.childCount).matchType(r == e.length - 1 ? n.type : e[r + 1]))
4034
- return a.copy(a.content.append(ve.from(M0(n, e, r + 1))));
4034
+ return a.copy(a.content.append(Ce.from(M0(n, e, r + 1))));
4035
4035
  }
4036
4036
  }
4037
4037
  function D0(e, t) {
4038
4038
  if (t == 0)
4039
4039
  return e;
4040
- let n = e.content.replaceChild(e.childCount - 1, D0(e.lastChild, t - 1)), a = e.contentMatchAt(e.childCount).fillBefore(ve.empty, !0);
4040
+ let n = e.content.replaceChild(e.childCount - 1, D0(e.lastChild, t - 1)), a = e.contentMatchAt(e.childCount).fillBefore(Ce.empty, !0);
4041
4041
  return e.copy(n.append(a));
4042
4042
  }
4043
4043
  function su(e, t, n, a, r, i) {
4044
4044
  let s = t < 0 ? e.firstChild : e.lastChild, o = s.content;
4045
- return e.childCount > 1 && (i = 0), r < a - 1 && (o = su(o, t, n, a, r + 1, i)), r >= n && (o = t < 0 ? s.contentMatchAt(0).fillBefore(o, i <= r).append(o) : o.append(s.contentMatchAt(s.childCount).fillBefore(ve.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, s.copy(o));
4045
+ return e.childCount > 1 && (i = 0), r < a - 1 && (o = su(o, t, n, a, r + 1, i)), r >= n && (o = t < 0 ? s.contentMatchAt(0).fillBefore(o, i <= r).append(o) : o.append(s.contentMatchAt(s.childCount).fillBefore(Ce.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, s.copy(o));
4046
4046
  }
4047
4047
  function tf(e, t, n) {
4048
4048
  return t < e.openStart && (e = new Te(su(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new Te(su(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
@@ -4097,7 +4097,7 @@ function sb(e, t) {
4097
4097
  let u = n.nodes[a[o]];
4098
4098
  if (!u || u.hasRequiredAttrs())
4099
4099
  break;
4100
- r = ve.from(u.create(a[o + 1], r)), i++, s++;
4100
+ r = Ce.from(u.create(a[o + 1], r)), i++, s++;
4101
4101
  }
4102
4102
  return new Te(r, i, s);
4103
4103
  }
@@ -4231,7 +4231,7 @@ class gb {
4231
4231
  node: i,
4232
4232
  pos: s,
4233
4233
  addAttr: !!(this.target && !this.target.draggable),
4234
- setUneditable: !!(this.target && $s && !this.target.hasAttribute("contentEditable"))
4234
+ setUneditable: !!(this.target && Ks && !this.target.hasAttribute("contentEditable"))
4235
4235
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
4236
4236
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
4237
4237
  }, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), ra(t, "pointer");
@@ -4277,7 +4277,7 @@ Xt.compositionstart = Xt.compositionupdate = (e) => {
4277
4277
  let { state: t } = e, n = t.selection.$to;
4278
4278
  if (t.selection instanceof qe && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((a) => a.type.spec.inclusive === !1) || Xn && k0 && mb(e)))
4279
4279
  e.markCursor = e.state.storedMarks || n.marks(), ps(e, !0), e.markCursor = null;
4280
- else if (ps(e, !t.selection.empty), $s && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
4280
+ else if (ps(e, !t.selection.empty), Ks && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
4281
4281
  let a = e.domSelectionRange();
4282
4282
  for (let r = a.focusNode, i = a.focusOffset; r && r.nodeType == 1 && i != 0; ) {
4283
4283
  let s = i < 0 ? r.lastChild : r.childNodes[i - 1];
@@ -5341,7 +5341,7 @@ function rf(e) {
5341
5341
  function Y0(e, t) {
5342
5342
  return e.depth == t.depth && e.pos >= t.start(-1) && e.pos <= t.end(-1);
5343
5343
  }
5344
- function K0(e, t, n) {
5344
+ function $0(e, t, n) {
5345
5345
  const a = e.node(-1), r = Wn.get(a), i = e.start(-1), s = r.nextCell(e.pos - i, t, n);
5346
5346
  return s == null ? null : e.node(0).resolve(i + s);
5347
5347
  }
@@ -5399,10 +5399,10 @@ var gn = class Qn extends Be {
5399
5399
  }
5400
5400
  l.push(p);
5401
5401
  }
5402
- s.push(t.child(u).copy(ve.from(l)));
5402
+ s.push(t.child(u).copy(Ce.from(l)));
5403
5403
  }
5404
5404
  const o = this.isColSelection() && this.isRowSelection() ? t : s;
5405
- return new Te(ve.from(o), 1, 1);
5405
+ return new Te(Ce.from(o), 1, 1);
5406
5406
  }
5407
5407
  replace(t, n = Te.empty) {
5408
5408
  const a = t.steps.length, r = this.ranges;
@@ -5414,7 +5414,7 @@ var gn = class Qn extends Be {
5414
5414
  i && t.setSelection(i);
5415
5415
  }
5416
5416
  replaceWith(t, n) {
5417
- this.replace(t, new Te(ve.from(n), 0, 0));
5417
+ this.replace(t, new Te(Ce.from(n), 0, 0));
5418
5418
  }
5419
5419
  forEachCell(t) {
5420
5420
  const n = this.$anchorCell.node(-1), a = Wn.get(n), r = this.$anchorCell.start(-1), i = a.cellsInRect(a.rectBetween(this.$anchorCell.pos - r, this.$headCell.pos - r));
@@ -5462,12 +5462,12 @@ var gn = class Qn extends Be {
5462
5462
  };
5463
5463
  gn.prototype.visible = !1;
5464
5464
  Be.jsonID("cell", gn);
5465
- var jb = class $0 {
5465
+ var jb = class K0 {
5466
5466
  constructor(t, n) {
5467
5467
  this.anchor = t, this.head = n;
5468
5468
  }
5469
5469
  map(t) {
5470
- return new $0(t.map(this.anchor), t.map(this.head));
5470
+ return new K0(t.map(this.anchor), t.map(this.head));
5471
5471
  }
5472
5472
  resolve(t) {
5473
5473
  const n = t.resolve(this.anchor), a = t.resolve(this.head);
@@ -5583,7 +5583,7 @@ function Li(e, t) {
5583
5583
  if (s == null) return !1;
5584
5584
  if (e == "horiz") return ts(n, a, Be.near(n.doc.resolve(i.head + t), t));
5585
5585
  {
5586
- const o = n.doc.resolve(s), u = K0(o, e, t);
5586
+ const o = n.doc.resolve(s), u = $0(o, e, t);
5587
5587
  let l;
5588
5588
  return u ? l = Be.near(u, 1) : t < 0 ? l = Be.near(n.doc.resolve(o.before(-1)), -1) : l = Be.near(n.doc.resolve(o.after(-1)), 1), ts(n, a, l);
5589
5589
  }
@@ -5600,7 +5600,7 @@ function Ri(e, t) {
5600
5600
  if (u == null) return !1;
5601
5601
  s = new gn(n.doc.resolve(u));
5602
5602
  }
5603
- const o = K0(s.$headCell, e, t);
5603
+ const o = $0(s.$headCell, e, t);
5604
5604
  return o ? ts(n, a, new gn(s.$anchorCell, o)) : !1;
5605
5605
  };
5606
5606
  }
@@ -5653,11 +5653,11 @@ function uf(e, t, n, a, r, i) {
5653
5653
  }
5654
5654
  }
5655
5655
  new bn("tableColumnResizing");
5656
- function Kb(e, t) {
5656
+ function $b(e, t) {
5657
5657
  const n = Math.min(e.top, t.top), a = Math.max(e.bottom, t.bottom), r = Math.min(e.left, t.left), s = Math.max(e.right, t.right) - r, o = a - n, u = r, l = n;
5658
5658
  return new DOMRect(u, l, s, o);
5659
5659
  }
5660
- var $b = class {
5660
+ var Kb = class {
5661
5661
  constructor({
5662
5662
  editor: e,
5663
5663
  element: t,
@@ -5771,7 +5771,7 @@ var $b = class {
5771
5771
  const { $anchorCell: o, $headCell: u } = a, l = o ? o.pos : u.pos, c = u ? u.pos : o.pos, f = this.view.nodeDOM(l), h = this.view.nodeDOM(c);
5772
5772
  if (!f || !h)
5773
5773
  return;
5774
- const g = f === h ? f.getBoundingClientRect() : Kb(
5774
+ const g = f === h ? f.getBoundingClientRect() : $b(
5775
5775
  f.getBoundingClientRect(),
5776
5776
  h.getBoundingClientRect()
5777
5777
  );
@@ -5845,7 +5845,7 @@ var $b = class {
5845
5845
  }
5846
5846
  }, Wb = (e) => new gi({
5847
5847
  key: typeof e.pluginKey == "string" ? new bn(e.pluginKey) : e.pluginKey,
5848
- view: (t) => new $b({ view: t, ...e })
5848
+ view: (t) => new Kb({ view: t, ...e })
5849
5849
  }), Gb = Ne({
5850
5850
  name: "BubbleMenu",
5851
5851
  inheritAttrs: !1,
@@ -5885,7 +5885,7 @@ var $b = class {
5885
5885
  },
5886
5886
  setup(e, { slots: t, attrs: n }) {
5887
5887
  const a = Q(null);
5888
- return Kt(() => {
5888
+ return $t(() => {
5889
5889
  const {
5890
5890
  editor: r,
5891
5891
  options: i,
@@ -6095,7 +6095,7 @@ Ne({
6095
6095
  },
6096
6096
  setup(e, { slots: t, attrs: n }) {
6097
6097
  const a = Q(null);
6098
- return Kt(() => {
6098
+ return $t(() => {
6099
6099
  const { pluginKey: r, editor: i, updateDelay: s, resizeDelay: o, options: u, appendTo: l, shouldShow: c } = e, f = a.value;
6100
6100
  f && (f.style.visibility = "hidden", f.style.position = "absolute", f.remove(), i.registerPlugin(
6101
6101
  Vb({
@@ -7105,7 +7105,7 @@ const YA = ne("strikethrough", [
7105
7105
  * This source code is licensed under the ISC license.
7106
7106
  * See the LICENSE file in the root directory of this source tree.
7107
7107
  */
7108
- const KA = ne("table", [
7108
+ const $A = ne("table", [
7109
7109
  ["path", { d: "M12 3v18", key: "108xh3" }],
7110
7110
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
7111
7111
  ["path", { d: "M3 9h18", key: "1pudct" }],
@@ -7141,7 +7141,7 @@ const Ma = ne("type", [
7141
7141
  * This source code is licensed under the ISC license.
7142
7142
  * See the LICENSE file in the root directory of this source tree.
7143
7143
  */
7144
- const $A = ne("underline", [
7144
+ const KA = ne("underline", [
7145
7145
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
7146
7146
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
7147
7147
  ]);
@@ -7405,15 +7405,15 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7405
7405
  if (!n.editor || !L.value || !k.value.trim()) return;
7406
7406
  const { from: C, to: B } = n.editor.state.selection;
7407
7407
  if (C === B) return;
7408
- const K = n.editor.state.doc.slice(C, B).content.toJSON();
7408
+ const $ = n.editor.state.doc.slice(C, B).content.toJSON();
7409
7409
  try {
7410
- await L.value.saveTemplate(k.value.trim(), K), O();
7411
- } catch ($) {
7412
- console.error("[模板] 保存失败:", $);
7410
+ await L.value.saveTemplate(k.value.trim(), $), O();
7411
+ } catch (K) {
7412
+ console.error("[模板] 保存失败:", K);
7413
7413
  }
7414
7414
  };
7415
7415
  return (C, B) => {
7416
- var G, K, $, de, Le;
7416
+ var G, $, K, de, Le;
7417
7417
  return D(), F("div", a2, [
7418
7418
  b("div", r2, [
7419
7419
  b("div", i2, [
@@ -7453,7 +7453,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7453
7453
  j(P(q0), { size: 16 })
7454
7454
  ], 2),
7455
7455
  b("button", {
7456
- class: X(["toolbar-btn", { active: (K = e.editor) == null ? void 0 : K.isActive("italic") }]),
7456
+ class: X(["toolbar-btn", { active: ($ = e.editor) == null ? void 0 : $.isActive("italic") }]),
7457
7457
  onClick: B[1] || (B[1] = (me) => {
7458
7458
  var ge;
7459
7459
  return (ge = e.editor) == null ? void 0 : ge.chain().focus().toggleItalic().run();
@@ -7463,14 +7463,14 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7463
7463
  j(P(MA), { size: 16 })
7464
7464
  ], 2),
7465
7465
  b("button", {
7466
- class: X(["toolbar-btn", { active: ($ = e.editor) == null ? void 0 : $.isActive("underline") }]),
7466
+ class: X(["toolbar-btn", { active: (K = e.editor) == null ? void 0 : K.isActive("underline") }]),
7467
7467
  onClick: B[2] || (B[2] = (me) => {
7468
7468
  var ge;
7469
7469
  return (ge = e.editor) == null ? void 0 : ge.chain().focus().toggleUnderline().run();
7470
7470
  }),
7471
7471
  title: "下划线 (Ctrl+U)"
7472
7472
  }, [
7473
- j(P($A), { size: 16 })
7473
+ j(P(KA), { size: 16 })
7474
7474
  ], 2),
7475
7475
  b("button", {
7476
7476
  class: X(["toolbar-btn", { active: (de = e.editor) == null ? void 0 : de.isActive("strike") }]),
@@ -7760,7 +7760,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7760
7760
  transform: "translateX(-50%)",
7761
7761
  marginTop: "8px"
7762
7762
  };
7763
- }), K = te(() => {
7763
+ }), $ = te(() => {
7764
7764
  if (!c.value) return {};
7765
7765
  const ee = c.value;
7766
7766
  return window.innerWidth - ee.right < 160 + 20 ? {
@@ -7774,7 +7774,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7774
7774
  left: "100%",
7775
7775
  marginLeft: "8px"
7776
7776
  };
7777
- }), $ = () => {
7777
+ }), K = () => {
7778
7778
  if (!t.editor || !t.editor.isEditable) {
7779
7779
  r.value = !1;
7780
7780
  return;
@@ -7849,7 +7849,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7849
7849
  t.editor.chain().focus().addRowAfter().run(), f.value = !1;
7850
7850
  }, Lt = () => {
7851
7851
  t.editor.chain().focus().deleteRow().run(), f.value = !1;
7852
- }, lt = () => t.editor.chain().focus().mergeCells().run(), vt = () => t.editor.chain().focus().splitCell().run(), we = () => t.editor.chain().focus().deleteTable().run(), ct = () => {
7852
+ }, lt = () => t.editor.chain().focus().mergeCells().run(), vt = () => t.editor.chain().focus().splitCell().run(), ke = () => t.editor.chain().focus().deleteTable().run(), ct = () => {
7853
7853
  p.value = !p.value, m.value = !1;
7854
7854
  }, mt = () => {
7855
7855
  m.value = !m.value, p.value = !1;
@@ -7891,7 +7891,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7891
7891
  }
7892
7892
  }
7893
7893
  m.value = !1;
7894
- }, Ce = (ee) => {
7894
+ }, we = (ee) => {
7895
7895
  if (!t.editor) return;
7896
7896
  const { state: Y, view: Re } = t.editor, { selection: He } = Y, { $from: ue } = He;
7897
7897
  let pe = -1;
@@ -7968,7 +7968,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
7968
7968
  I.value = !I.value, N.value = !1;
7969
7969
  }, Me = () => {
7970
7970
  N.value = !N.value, I.value = !1;
7971
- }, $e = (ee) => {
7971
+ }, Ke = (ee) => {
7972
7972
  if (!t.editor) return;
7973
7973
  const { state: Y, view: Re } = t.editor, { selection: He } = Y, { $from: ue } = He;
7974
7974
  for (let pe = ue.depth; pe > 0; pe--) {
@@ -8020,16 +8020,16 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8020
8020
  };
8021
8021
  let xi = !1;
8022
8022
  const Ac = (ee) => {
8023
- xi || !ee || (ee.on("selectionUpdate", $), ee.on("transaction", $), window.addEventListener("scroll", $, !0), window.addEventListener("resize", $), window.addEventListener("click", bc), xi = !0);
8023
+ xi || !ee || (ee.on("selectionUpdate", K), ee.on("transaction", K), window.addEventListener("scroll", K, !0), window.addEventListener("resize", K), window.addEventListener("click", bc), xi = !0);
8024
8024
  }, yc = (ee) => {
8025
- !xi || !ee || (ee.off("selectionUpdate", $), ee.off("transaction", $), window.removeEventListener("scroll", $, !0), window.removeEventListener("resize", $), window.removeEventListener("click", bc), xi = !1);
8025
+ !xi || !ee || (ee.off("selectionUpdate", K), ee.off("transaction", K), window.removeEventListener("scroll", K, !0), window.removeEventListener("resize", K), window.removeEventListener("click", bc), xi = !1);
8026
8026
  };
8027
- return Kt(() => {
8027
+ return $t(() => {
8028
8028
  t.editor && Ac(t.editor);
8029
8029
  }), Fs(() => {
8030
8030
  yc(t.editor);
8031
8031
  }), it(() => t.editor, (ee, Y) => {
8032
- Y && yc(Y), ee && (Ac(ee), $());
8032
+ Y && yc(Y), ee && (Ac(ee), K());
8033
8033
  }, { immediate: !0 }), (ee, Y) => (D(), ye(Yr, { to: "body" }, [
8034
8034
  r.value && c.value ? (D(), F("div", {
8035
8035
  key: 0,
@@ -8190,7 +8190,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8190
8190
  }, [
8191
8191
  j(na, {
8192
8192
  type: "text",
8193
- onSelect: Ce
8193
+ onSelect: we
8194
8194
  })
8195
8195
  ], 2)) : ae("", !0)
8196
8196
  ]),
@@ -8249,7 +8249,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8249
8249
  g.value ? (D(), F("div", {
8250
8250
  key: 1,
8251
8251
  class: "table-menu",
8252
- style: Ft(K.value)
8252
+ style: Ft($.value)
8253
8253
  }, [
8254
8254
  b("div", L2, [
8255
8255
  b("button", {
@@ -8267,7 +8267,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8267
8267
  }, [
8268
8268
  j(na, {
8269
8269
  type: "text",
8270
- onSelect: $e
8270
+ onSelect: Ke
8271
8271
  })
8272
8272
  ], 2)) : ae("", !0)
8273
8273
  ]),
@@ -8311,7 +8311,7 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8311
8311
  Y[30] || (Y[30] = b("div", { class: "menu-divider" }, null, -1)),
8312
8312
  b("button", {
8313
8313
  class: "menu-item danger",
8314
- onClick: we
8314
+ onClick: ke
8315
8315
  }, [
8316
8316
  j(P(xa), { size: 14 }),
8317
8317
  Y[28] || (Y[28] = b("span", null, "删除表格", -1))
@@ -8334,13 +8334,13 @@ const a2 = { class: "bubble-toolbar" }, r2 = { class: "toolbar-group" }, i2 = {
8334
8334
  [Js]: ["grinning face", "grinning"],
8335
8335
  [u1]: "1f600",
8336
8336
  [Xr]: "1f600"
8337
- }, ys = "neutral", z2 = "1f3fb", j2 = "1f3fc", Q2 = "1f3fd", Y2 = "1f3fe", K2 = "1f3ff", $2 = [
8337
+ }, ys = "neutral", z2 = "1f3fb", j2 = "1f3fc", Q2 = "1f3fd", Y2 = "1f3fe", $2 = "1f3ff", K2 = [
8338
8338
  ys,
8339
8339
  z2,
8340
8340
  j2,
8341
8341
  Q2,
8342
8342
  Y2,
8343
- K2
8343
+ $2
8344
8344
  ], W2 = {
8345
8345
  placeholder: "Search emoji",
8346
8346
  skinTone: "Skin tone"
@@ -20853,7 +20853,7 @@ function Y3(e) {
20853
20853
  }), o && u.removeEventListener("resize", n.update, Pi);
20854
20854
  };
20855
20855
  }
20856
- var K3 = {
20856
+ var $3 = {
20857
20857
  name: "eventListeners",
20858
20858
  enabled: !0,
20859
20859
  phase: "write",
@@ -20861,7 +20861,7 @@ var K3 = {
20861
20861
  },
20862
20862
  effect: Y3,
20863
20863
  data: {}
20864
- }, $3 = {
20864
+ }, K3 = {
20865
20865
  left: "right",
20866
20866
  right: "left",
20867
20867
  bottom: "top",
@@ -20869,7 +20869,7 @@ var K3 = {
20869
20869
  };
20870
20870
  function rs(e) {
20871
20871
  return e.replace(/left|right|bottom|top/g, function(t) {
20872
- return $3[t];
20872
+ return K3[t];
20873
20873
  });
20874
20874
  }
20875
20875
  var W3 = {
@@ -21063,10 +21063,10 @@ function ty(e) {
21063
21063
  rootBoundary: f,
21064
21064
  altBoundary: h,
21065
21065
  padding: l
21066
- }), K = C ? S ? on : jt : S ? sn : zt;
21067
- w[B] > M[B] && (K = rs(K));
21068
- var $ = rs(K), de = [];
21069
- if (i && de.push(G[O] <= 0), o && de.push(G[K] <= 0, G[$] <= 0), de.every(function(Lt) {
21066
+ }), $ = C ? S ? on : jt : S ? sn : zt;
21067
+ w[B] > M[B] && ($ = rs($));
21068
+ var K = rs($), de = [];
21069
+ if (i && de.push(G[O] <= 0), o && de.push(G[$] <= 0, G[K] <= 0), de.every(function(Lt) {
21070
21070
  return Lt;
21071
21071
  })) {
21072
21072
  k = U, H = !1;
@@ -21076,8 +21076,8 @@ function ty(e) {
21076
21076
  }
21077
21077
  if (H)
21078
21078
  for (var Le = p ? 3 : 1, me = function(lt) {
21079
- var vt = T.find(function(we) {
21080
- var ct = L.get(we);
21079
+ var vt = T.find(function(ke) {
21080
+ var ct = L.get(ke);
21081
21081
  if (ct)
21082
21082
  return ct.slice(0, lt).every(function(mt) {
21083
21083
  return mt;
@@ -21205,14 +21205,14 @@ function fy(e) {
21205
21205
  };
21206
21206
  if (M) {
21207
21207
  if (i) {
21208
- var S, C = T === "y" ? zt : jt, B = T === "y" ? sn : on, G = T === "y" ? "height" : "width", K = M[T], $ = K + A[C], de = K - A[B], Le = g ? -H[G] / 2 : 0, me = I === sr ? L[G] : H[G], ge = I === sr ? -H[G] : -L[G], Xe = t.elements.arrow, Lt = g && Xe ? vl(Xe) : {
21208
+ var S, C = T === "y" ? zt : jt, B = T === "y" ? sn : on, G = T === "y" ? "height" : "width", $ = M[T], K = $ + A[C], de = $ - A[B], Le = g ? -H[G] / 2 : 0, me = I === sr ? L[G] : H[G], ge = I === sr ? -H[G] : -L[G], Xe = t.elements.arrow, Lt = g && Xe ? vl(Xe) : {
21209
21209
  width: 0,
21210
21210
  height: 0
21211
- }, lt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : p1(), vt = lt[C], we = lt[B], ct = Lr(0, L[G], Lt[G]), mt = N ? L[G] / 2 - Le - ct - vt - x.mainAxis : me - ct - vt - x.mainAxis, Tn = N ? -L[G] / 2 + Le + ct + we + x.mainAxis : ge + ct + we + x.mainAxis, un = t.elements.arrow && Ai(t.elements.arrow), Z = un ? T === "y" ? un.clientTop || 0 : un.clientLeft || 0 : 0, le = (S = U == null ? void 0 : U[T]) != null ? S : 0, Ce = K + mt - le - Z, ie = K + Tn - le, se = Lr(g ? Es($, Ce) : $, K, g ? Sa(de, ie) : de);
21212
- M[T] = se, O[T] = se - K;
21211
+ }, lt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : p1(), vt = lt[C], ke = lt[B], ct = Lr(0, L[G], Lt[G]), mt = N ? L[G] / 2 - Le - ct - vt - x.mainAxis : me - ct - vt - x.mainAxis, Tn = N ? -L[G] / 2 + Le + ct + ke + x.mainAxis : ge + ct + ke + x.mainAxis, un = t.elements.arrow && Ai(t.elements.arrow), Z = un ? T === "y" ? un.clientTop || 0 : un.clientLeft || 0 : 0, le = (S = U == null ? void 0 : U[T]) != null ? S : 0, we = $ + mt - le - Z, ie = $ + Tn - le, se = Lr(g ? Es(K, we) : K, $, g ? Sa(de, ie) : de);
21212
+ M[T] = se, O[T] = se - $;
21213
21213
  }
21214
21214
  if (o) {
21215
- var Je, re = T === "x" ? zt : jt, Ue = T === "x" ? sn : on, Me = M[w], $e = w === "y" ? "height" : "width", ba = Me + A[re], ja = Me - A[Ue], Rt = [zt, jt].indexOf(y) !== -1, It = (Je = U == null ? void 0 : U[w]) != null ? Je : 0, Fn = Rt ? ba : Me - L[$e] - H[$e] - It + x.altAxis, Ni = Rt ? Me + L[$e] + H[$e] - It - x.altAxis : ja, _i = g && Rt ? R3(Fn, Me, Ni) : Lr(g ? Fn : ba, Me, g ? Ni : ja);
21215
+ var Je, re = T === "x" ? zt : jt, Ue = T === "x" ? sn : on, Me = M[w], Ke = w === "y" ? "height" : "width", ba = Me + A[re], ja = Me - A[Ue], Rt = [zt, jt].indexOf(y) !== -1, It = (Je = U == null ? void 0 : U[w]) != null ? Je : 0, Fn = Rt ? ba : Me - L[Ke] - H[Ke] - It + x.altAxis, Ni = Rt ? Me + L[Ke] + H[Ke] - It - x.altAxis : ja, _i = g && Rt ? R3(Fn, Me, Ni) : Lr(g ? Fn : ba, Me, g ? Ni : ja);
21216
21216
  M[w] = _i, O[w] = _i - Me;
21217
21217
  }
21218
21218
  t.modifiersData[a] = O;
@@ -21407,7 +21407,7 @@ function Ty(e) {
21407
21407
  return g;
21408
21408
  };
21409
21409
  }
21410
- var vy = [K3, ly, Q3, D3, oy, ny, dy, F3, ry], Iy = /* @__PURE__ */ Ty({
21410
+ var vy = [$3, ly, Q3, D3, oy, ny, dy, F3, ry], Iy = /* @__PURE__ */ Ty({
21411
21411
  defaultModifiers: vy
21412
21412
  }), E1 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
21413
21413
  function is(e) {
@@ -21529,7 +21529,7 @@ function Oy(e, t, n, a, r, i) {
21529
21529
  key: 0,
21530
21530
  class: X(e.isSticky ? "v3-sticky" : "")
21531
21531
  }, Ae(e.groupNames[s]), 3)), [
21532
- [Kr, e.emojis[s]]
21532
+ [$r, e.emojis[s]]
21533
21533
  ]) : ae("", !0),
21534
21534
  ot(b("div", _y, [
21535
21535
  (D(!0), F(Et, null, Qt(e.emojis[s], (o) => (D(), F("button", {
@@ -21546,7 +21546,7 @@ function Oy(e, t, n, a, r, i) {
21546
21546
  }, null, 40, Sy))
21547
21547
  ], 40, xy))), 128))
21548
21548
  ], 512), [
21549
- [Kr, e.emojis[s]]
21549
+ [$r, e.emojis[s]]
21550
21550
  ])
21551
21551
  ], 8, Ny))), 128)) : (D(), F("span", Dy, " No emoji has been found! "))
21552
21552
  ], 2)
@@ -21596,10 +21596,10 @@ const Qy = Ne({
21596
21596
  }), Yy = {
21597
21597
  key: 0,
21598
21598
  class: "v3-header"
21599
- }, Ky = {
21599
+ }, $y = {
21600
21600
  key: 0,
21601
21601
  class: "v3-groups"
21602
- }, $y = ["onClick"], Wy = ["title"], Gy = ["src"], qy = {
21602
+ }, Ky = ["onClick"], Wy = ["title"], Gy = ["src"], qy = {
21603
21603
  key: 1,
21604
21604
  class: "v3-spacing"
21605
21605
  }, Vy = {
@@ -21608,7 +21608,7 @@ const Qy = Ne({
21608
21608
  }, Jy = ["placeholder"];
21609
21609
  function Zy(e, t, n, a, r, i) {
21610
21610
  return e.hasGroupIcons || e.hasSearch ? (D(), F("div", Yy, [
21611
- e.hasGroupIcons ? (D(), F("div", Ky, [
21611
+ e.hasGroupIcons ? (D(), F("div", $y, [
21612
21612
  (D(!0), F(Et, null, Qt(e.orderedGroups, (s) => (D(), F("button", {
21613
21613
  key: s.key,
21614
21614
  type: "button",
@@ -21626,7 +21626,7 @@ function Zy(e, t, n, a, r, i) {
21626
21626
  alt: ""
21627
21627
  }, null, 8, Gy)
21628
21628
  ], 8, Wy)
21629
- ], 10, $y))), 128))
21629
+ ], 10, Ky))), 128))
21630
21630
  ])) : ae("", !0),
21631
21631
  e.hasGroupIcons && e.hasSearch ? (D(), F("div", qy)) : ae("", !0),
21632
21632
  e.hasSearch ? (D(), F("div", Vy, [
@@ -21666,7 +21666,7 @@ const eE = Ne({
21666
21666
  }
21667
21667
  ), {
21668
21668
  emoji: u,
21669
- SKIN_TONES: $2,
21669
+ SKIN_TONES: K2,
21670
21670
  updateSkinToneState: l,
21671
21671
  skinTone: n,
21672
21672
  stateSkinTone: r,
@@ -21803,7 +21803,7 @@ const lE = Ne({
21803
21803
  function m(A) {
21804
21804
  s.value = A.target.value || "", t("update:text", s.value);
21805
21805
  }
21806
- return Kt(() => {
21806
+ return $t(() => {
21807
21807
  p();
21808
21808
  }), qn(() => {
21809
21809
  document.body.removeEventListener("click", g);
@@ -21985,7 +21985,7 @@ const bE = Ne({
21985
21985
  groupOrder: e.groupOrder,
21986
21986
  groupIcons: e.groupIcons,
21987
21987
  colorTheme: G2.includes(e.theme) ? e.theme : "light"
21988
- }), Ka("store", r), {
21988
+ }), $a("store", r), {
21989
21989
  type: e.pickerType,
21990
21990
  input: n,
21991
21991
  onChangeText: a
@@ -22087,7 +22087,7 @@ const yE = {
22087
22087
  p[6] || (p[6] = b("span", { class: "text" }, "添加图标", -1))
22088
22088
  ])
22089
22089
  ], 2), [
22090
- [Kr, e.editable && (i.value || s.value || o.value)]
22090
+ [$r, e.editable && (i.value || s.value || o.value)]
22091
22091
  ]),
22092
22092
  o.value ? (D(), F("div", IE, [
22093
22093
  b("div", {
@@ -22507,7 +22507,7 @@ const Nf = /["&'<>$\x80-\uFFFF]/g, YE = /* @__PURE__ */ new Map([
22507
22507
  [39, "&apos;"],
22508
22508
  [60, "&lt;"],
22509
22509
  [62, "&gt;"]
22510
- ]), KE = (
22510
+ ]), $E = (
22511
22511
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
22512
22512
  String.prototype.codePointAt != null ? (e, t) => e.codePointAt(t) : (
22513
22513
  // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
@@ -22518,7 +22518,7 @@ function x1(e) {
22518
22518
  let t = "", n = 0, a;
22519
22519
  for (; (a = Nf.exec(e)) !== null; ) {
22520
22520
  const r = a.index, i = e.charCodeAt(r), s = YE.get(i);
22521
- s !== void 0 ? (t += e.substring(n, r) + s, n = r + 1) : (t += `${e.substring(n, r)}&#x${KE(e, r).toString(16)};`, n = Nf.lastIndex += +((i & 64512) === 55296));
22521
+ s !== void 0 ? (t += e.substring(n, r) + s, n = r + 1) : (t += `${e.substring(n, r)}&#x${$E(e, r).toString(16)};`, n = Nf.lastIndex += +((i & 64512) === 55296));
22522
22522
  }
22523
22523
  return t + e.substr(n);
22524
22524
  }
@@ -22530,7 +22530,7 @@ function M1(e, t) {
22530
22530
  return s + a.substring(i);
22531
22531
  };
22532
22532
  }
22533
- const $E = M1(/["&\u00A0]/g, /* @__PURE__ */ new Map([
22533
+ const KE = M1(/["&\u00A0]/g, /* @__PURE__ */ new Map([
22534
22534
  [34, "&quot;"],
22535
22535
  [38, "&amp;"],
22536
22536
  [160, "&nbsp;"]
@@ -22654,7 +22654,7 @@ function ZE(e, t) {
22654
22654
  var n;
22655
22655
  if (!e)
22656
22656
  return;
22657
- const a = ((n = t.encodeEntities) !== null && n !== void 0 ? n : t.decodeEntities) === !1 ? JE : t.xmlMode || t.encodeEntities !== "utf8" ? x1 : $E;
22657
+ const a = ((n = t.encodeEntities) !== null && n !== void 0 ? n : t.decodeEntities) === !1 ? JE : t.xmlMode || t.encodeEntities !== "utf8" ? x1 : KE;
22658
22658
  return Object.keys(e).map((r) => {
22659
22659
  var i, s;
22660
22660
  const o = (i = e[r]) !== null && i !== void 0 ? i : "";
@@ -23345,7 +23345,7 @@ function Y4(e) {
23345
23345
  }
23346
23346
  return e.data;
23347
23347
  }
23348
- function K4(e, t) {
23348
+ function $4(e, t) {
23349
23349
  const n = mu + H4(t), a = e.data;
23350
23350
  if (ii.call(a, t))
23351
23351
  return a[t];
@@ -23369,7 +23369,7 @@ function H1(e) {
23369
23369
  }
23370
23370
  return e;
23371
23371
  }
23372
- function $4(e, t) {
23372
+ function K4(e, t) {
23373
23373
  var n;
23374
23374
  const a = this[0];
23375
23375
  if (!a || !he(a))
@@ -23377,7 +23377,7 @@ function $4(e, t) {
23377
23377
  const r = a;
23378
23378
  return (n = r.data) !== null && n !== void 0 || (r.data = {}), e == null ? Y4(r) : typeof e == "object" || t !== void 0 ? (Ze(this, (i) => {
23379
23379
  he(i) && (typeof e == "object" ? Sf(i, e) : Sf(i, e, t));
23380
- }), this) : K4(r, e);
23380
+ }), this) : $4(r, e);
23381
23381
  }
23382
23382
  function W4(e) {
23383
23383
  const t = arguments.length === 0, n = this[0];
@@ -23505,7 +23505,7 @@ const V4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23505
23505
  __proto__: null,
23506
23506
  addClass: j1,
23507
23507
  attr: j4,
23508
- data: $4,
23508
+ data: K4,
23509
23509
  hasClass: q4,
23510
23510
  prop: Q4,
23511
23511
  removeAttr: G4,
@@ -23571,12 +23571,12 @@ function Of(e) {
23571
23571
  return e === 32 || e === 9 || e === 10 || e === 12 || e === 13;
23572
23572
  }
23573
23573
  function ro(e) {
23574
- const t = [], n = K1(t, `${e}`, 0);
23574
+ const t = [], n = $1(t, `${e}`, 0);
23575
23575
  if (n < e.length)
23576
23576
  throw new Error(`Unmatched selector: ${e.slice(n)}`);
23577
23577
  return t;
23578
23578
  }
23579
- function K1(e, t, n) {
23579
+ function $1(e, t, n) {
23580
23580
  let a = [];
23581
23581
  function r(h) {
23582
23582
  const g = t.slice(n + h).match(Df);
@@ -23728,7 +23728,7 @@ function K1(e, t, n) {
23728
23728
  if (X4.has(g)) {
23729
23729
  if (Oo(t.charCodeAt(n + 1)))
23730
23730
  throw new Error(`Pseudo-selector ${g} cannot be quoted`);
23731
- if (p = [], n = K1(p, t, n + 1), t.charCodeAt(n) !== 41)
23731
+ if (p = [], n = $1(p, t, n + 1), t.charCodeAt(n) !== 41)
23732
23732
  throw new Error(`Missing closing parenthesis in :${g} (${t})`);
23733
23733
  n += 1;
23734
23734
  } else {
@@ -23779,14 +23779,14 @@ var Cs = {
23779
23779
  return !1;
23780
23780
  }
23781
23781
  };
23782
- const Ie = /* @__PURE__ */ w1(Cs), $1 = /* @__PURE__ */ new Map([
23782
+ const ve = /* @__PURE__ */ w1(Cs), K1 = /* @__PURE__ */ new Map([
23783
23783
  [ce.Universal, 50],
23784
23784
  [ce.Tag, 30],
23785
23785
  [ce.Attribute, 1],
23786
23786
  [ce.Pseudo, 0]
23787
23787
  ]);
23788
23788
  function Fl(e) {
23789
- return !$1.has(e.type);
23789
+ return !K1.has(e.type);
23790
23790
  }
23791
23791
  const nT = /* @__PURE__ */ new Map([
23792
23792
  [st.Exists, 10],
@@ -23809,7 +23809,7 @@ function aT(e) {
23809
23809
  }
23810
23810
  function W1(e) {
23811
23811
  var t, n;
23812
- let a = (t = $1.get(e.type)) !== null && t !== void 0 ? t : -1;
23812
+ let a = (t = K1.get(e.type)) !== null && t !== void 0 ? t : -1;
23813
23813
  return e.type === ce.Attribute ? (a = (n = nT.get(e.action)) !== null && n !== void 0 ? n : 4, e.action === st.Equals && e.name === "id" && (a = 9), e.ignoreCase && (a >>= 1)) : e.type === ce.Pseudo && (e.data ? e.name === "has" || e.name === "contains" ? a = 0 : Array.isArray(e.data) ? (a = Math.min(...e.data.map((r) => Math.min(...r.map(W1)))), a < 0 && (a = 0)) : a = 2 : a = 3), a;
23814
23814
  }
23815
23815
  const rT = /[-[\]{}()*+?.,\\^$|#\s]/g;
@@ -23891,7 +23891,7 @@ const sT = {
23891
23891
  element(e, t, n) {
23892
23892
  const { adapter: a } = n, { name: r, value: i } = t;
23893
23893
  if (/\s/.test(i))
23894
- return Ie.falseFunc;
23894
+ return ve.falseFunc;
23895
23895
  const s = new RegExp(`(?:^|\\s)${Lf(i)}(?:$|\\s)`, Aa(t, n) ? "i" : "");
23896
23896
  return function(u) {
23897
23897
  const l = a.getAttributeValue(u, r);
@@ -23905,7 +23905,7 @@ const sT = {
23905
23905
  const { adapter: a } = n, { name: r } = t;
23906
23906
  let { value: i } = t;
23907
23907
  const s = i.length;
23908
- return s === 0 ? Ie.falseFunc : Aa(t, n) ? (i = i.toLowerCase(), (o) => {
23908
+ return s === 0 ? ve.falseFunc : Aa(t, n) ? (i = i.toLowerCase(), (o) => {
23909
23909
  const u = a.getAttributeValue(o, r);
23910
23910
  return u != null && u.length >= s && u.substr(0, s).toLowerCase() === i && e(o);
23911
23911
  }) : (o) => {
@@ -23917,7 +23917,7 @@ const sT = {
23917
23917
  const { adapter: a } = n, { name: r } = t;
23918
23918
  let { value: i } = t;
23919
23919
  const s = -i.length;
23920
- return s === 0 ? Ie.falseFunc : Aa(t, n) ? (i = i.toLowerCase(), (o) => {
23920
+ return s === 0 ? ve.falseFunc : Aa(t, n) ? (i = i.toLowerCase(), (o) => {
23921
23921
  var u;
23922
23922
  return ((u = a.getAttributeValue(o, r)) === null || u === void 0 ? void 0 : u.substr(s).toLowerCase()) === i && e(o);
23923
23923
  }) : (o) => {
@@ -23928,7 +23928,7 @@ const sT = {
23928
23928
  any(e, t, n) {
23929
23929
  const { adapter: a } = n, { name: r, value: i } = t;
23930
23930
  if (i === "")
23931
- return Ie.falseFunc;
23931
+ return ve.falseFunc;
23932
23932
  if (Aa(t, n)) {
23933
23933
  const s = new RegExp(Lf(i), "i");
23934
23934
  return function(u) {
@@ -23977,13 +23977,13 @@ function lT(e) {
23977
23977
  function cT(e) {
23978
23978
  const t = e[0], n = e[1] - 1;
23979
23979
  if (n < 0 && t <= 0)
23980
- return Ie.falseFunc;
23980
+ return ve.falseFunc;
23981
23981
  if (t === -1)
23982
23982
  return (i) => i <= n;
23983
23983
  if (t === 0)
23984
23984
  return (i) => i === n;
23985
23985
  if (t === 1)
23986
- return n < 0 ? Ie.trueFunc : (i) => i >= n;
23986
+ return n < 0 ? ve.trueFunc : (i) => i >= n;
23987
23987
  const a = Math.abs(t), r = (n % a + a) % a;
23988
23988
  return t > 1 ? (i) => i >= n && i % a === r : (i) => i <= n && i % a === r;
23989
23989
  }
@@ -24011,7 +24011,7 @@ const bu = {
24011
24011
  // Location specific methods
24012
24012
  "nth-child"(e, t, { adapter: n, equals: a }) {
24013
24013
  const r = Ui(t);
24014
- return r === Ie.falseFunc ? Ie.falseFunc : r === Ie.trueFunc ? Fi(e, n) : function(s) {
24014
+ return r === ve.falseFunc ? ve.falseFunc : r === ve.trueFunc ? Fi(e, n) : function(s) {
24015
24015
  const o = n.getSiblings(s);
24016
24016
  let u = 0;
24017
24017
  for (let l = 0; l < o.length && !a(s, o[l]); l++)
@@ -24021,7 +24021,7 @@ const bu = {
24021
24021
  },
24022
24022
  "nth-last-child"(e, t, { adapter: n, equals: a }) {
24023
24023
  const r = Ui(t);
24024
- return r === Ie.falseFunc ? Ie.falseFunc : r === Ie.trueFunc ? Fi(e, n) : function(s) {
24024
+ return r === ve.falseFunc ? ve.falseFunc : r === ve.trueFunc ? Fi(e, n) : function(s) {
24025
24025
  const o = n.getSiblings(s);
24026
24026
  let u = 0;
24027
24027
  for (let l = o.length - 1; l >= 0 && !a(s, o[l]); l--)
@@ -24031,7 +24031,7 @@ const bu = {
24031
24031
  },
24032
24032
  "nth-of-type"(e, t, { adapter: n, equals: a }) {
24033
24033
  const r = Ui(t);
24034
- return r === Ie.falseFunc ? Ie.falseFunc : r === Ie.trueFunc ? Fi(e, n) : function(s) {
24034
+ return r === ve.falseFunc ? ve.falseFunc : r === ve.trueFunc ? Fi(e, n) : function(s) {
24035
24035
  const o = n.getSiblings(s);
24036
24036
  let u = 0;
24037
24037
  for (let l = 0; l < o.length; l++) {
@@ -24045,7 +24045,7 @@ const bu = {
24045
24045
  },
24046
24046
  "nth-last-of-type"(e, t, { adapter: n, equals: a }) {
24047
24047
  const r = Ui(t);
24048
- return r === Ie.falseFunc ? Ie.falseFunc : r === Ie.trueFunc ? Fi(e, n) : function(s) {
24048
+ return r === ve.falseFunc ? ve.falseFunc : r === ve.trueFunc ? Fi(e, n) : function(s) {
24049
24049
  const o = n.getSiblings(s);
24050
24050
  let u = 0;
24051
24051
  for (let l = o.length - 1; l >= 0; l--) {
@@ -24075,7 +24075,7 @@ const bu = {
24075
24075
  function Lo(e) {
24076
24076
  return function(n, a, { adapter: r }) {
24077
24077
  const i = r[e];
24078
- return typeof i != "function" ? Ie.falseFunc : function(o) {
24078
+ return typeof i != "function" ? ve.falseFunc : function(o) {
24079
24079
  return i(o) && n(o);
24080
24080
  };
24081
24081
  };
@@ -24172,7 +24172,7 @@ const fT = {
24172
24172
  text: "input:is(:not([type!='']), [type=text])"
24173
24173
  }, G1 = {};
24174
24174
  function dT(e, t) {
24175
- return e === Ie.falseFunc ? Ie.falseFunc : (n) => t.isTag(n) && e(n);
24175
+ return e === ve.falseFunc ? ve.falseFunc : (n) => t.isTag(n) && e(n);
24176
24176
  }
24177
24177
  function q1(e, t) {
24178
24178
  const n = t.getSiblings(e);
@@ -24195,7 +24195,7 @@ function Au(e) {
24195
24195
  }
24196
24196
  const Ro = (e, t, n, a, r) => {
24197
24197
  const i = r(t, Au(n), a);
24198
- return i === Ie.trueFunc ? e : i === Ie.falseFunc ? Ie.falseFunc : (s) => i(s) && e(s);
24198
+ return i === ve.trueFunc ? e : i === ve.falseFunc ? ve.falseFunc : (s) => i(s) && e(s);
24199
24199
  }, Bo = {
24200
24200
  is: Ro,
24201
24201
  /**
@@ -24205,7 +24205,7 @@ const Ro = (e, t, n, a, r) => {
24205
24205
  where: Ro,
24206
24206
  not(e, t, n, a, r) {
24207
24207
  const i = r(t, Au(n), a);
24208
- return i === Ie.falseFunc ? e : i === Ie.trueFunc ? Ie.falseFunc : (s) => !i(s) && e(s);
24208
+ return i === ve.falseFunc ? e : i === ve.trueFunc ? ve.falseFunc : (s) => !i(s) && e(s);
24209
24209
  },
24210
24210
  has(e, t, n, a, r) {
24211
24211
  const { adapter: i } = n, s = Au(n);
@@ -24214,10 +24214,10 @@ const Ro = (e, t, n, a, r) => {
24214
24214
  // Used as a placeholder. Will be replaced with the actual element.
24215
24215
  [G1]
24216
24216
  ) : void 0, u = r(t, s, o);
24217
- if (u === Ie.falseFunc)
24218
- return Ie.falseFunc;
24217
+ if (u === ve.falseFunc)
24218
+ return ve.falseFunc;
24219
24219
  const l = dT(u, i);
24220
- if (o && u !== Ie.trueFunc) {
24220
+ if (o && u !== ve.trueFunc) {
24221
24221
  const { shouldTestNextSiblings: c = !1 } = u;
24222
24222
  return (f) => {
24223
24223
  if (!e(f))
@@ -24392,15 +24392,15 @@ function J1(e, t, n) {
24392
24392
  l.type !== ce.Pseudo || l.name !== "scope" || (r && c.type === ce.Descendant ? u[1] = mT : (c.type === ce.Adjacent || c.type === ce.Sibling) && (s = !0));
24393
24393
  }
24394
24394
  return yT(u, t, i);
24395
- }).reduce(ET, Ie.falseFunc);
24395
+ }).reduce(ET, ve.falseFunc);
24396
24396
  return o.shouldTestNextSiblings = s, o;
24397
24397
  }
24398
24398
  function yT(e, t, n) {
24399
24399
  var a;
24400
- return e.reduce((r, i) => r === Ie.falseFunc ? Ie.falseFunc : gT(r, i, t, n, J1), (a = t.rootFunc) !== null && a !== void 0 ? a : Ie.trueFunc);
24400
+ return e.reduce((r, i) => r === ve.falseFunc ? ve.falseFunc : gT(r, i, t, n, J1), (a = t.rootFunc) !== null && a !== void 0 ? a : ve.trueFunc);
24401
24401
  }
24402
24402
  function ET(e, t) {
24403
- return t === Ie.falseFunc || e === Ie.trueFunc ? e : e === Ie.falseFunc || t === Ie.trueFunc ? t : function(a) {
24403
+ return t === ve.falseFunc || e === ve.trueFunc ? e : e === ve.falseFunc || t === ve.trueFunc ? t : function(a) {
24404
24404
  return e(a) || t(a);
24405
24405
  };
24406
24406
  }
@@ -24640,7 +24640,7 @@ function jl(e) {
24640
24640
  return function(a) {
24641
24641
  var r;
24642
24642
  let i = e(t, this);
24643
- return a && (i = Kl(i, a, this.options.xmlMode, (r = this._root) === null || r === void 0 ? void 0 : r[0])), this._make(
24643
+ return a && (i = $l(i, a, this.options.xmlMode, (r = this._root) === null || r === void 0 ? void 0 : r[0])), this._make(
24644
24644
  // Post processing is only necessary if there is more than one element.
24645
24645
  this.length > 1 && i.length > 1 ? n.reduce((s, o) => o(s), i) : i
24646
24646
  );
@@ -24715,7 +24715,7 @@ const FT = Ql((e) => Dl(e)), HT = Ti((e) => {
24715
24715
  for (; e.prev; )
24716
24716
  e = e.prev, he(e) && t.push(e);
24717
24717
  return t;
24718
- }, yr), YT = Yl((e) => Ol(e), yr), KT = Ti((e) => O1(e).filter((t) => he(t) && t !== e), Ar), $T = Ti((e) => no(e).filter(he), yr);
24718
+ }, yr), YT = Yl((e) => Ol(e), yr), $T = Ti((e) => O1(e).filter((t) => he(t) && t !== e), Ar), KT = Ti((e) => no(e).filter(he), yr);
24719
24719
  function WT() {
24720
24720
  const e = this.toArray().reduce((t, n) => tt(n) ? t.concat(n.children) : t, []);
24721
24721
  return this._make(e);
@@ -24742,9 +24742,9 @@ function vi(e) {
24742
24742
  }
24743
24743
  function VT(e) {
24744
24744
  var t;
24745
- return this._make(Kl(this.toArray(), e, this.options.xmlMode, (t = this._root) === null || t === void 0 ? void 0 : t[0]));
24745
+ return this._make($l(this.toArray(), e, this.options.xmlMode, (t = this._root) === null || t === void 0 ? void 0 : t[0]));
24746
24746
  }
24747
- function Kl(e, t, n, a) {
24747
+ function $l(e, t, n, a) {
24748
24748
  return typeof t == "string" ? nh(t, e, { xmlMode: n, root: a }) : e.filter(vi(t));
24749
24749
  }
24750
24750
  function JT(e) {
@@ -24807,14 +24807,14 @@ const c6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24807
24807
  _findBySelector: LT,
24808
24808
  add: u6,
24809
24809
  addBack: l6,
24810
- children: $T,
24810
+ children: KT,
24811
24811
  closest: UT,
24812
24812
  contents: WT,
24813
24813
  each: GT,
24814
24814
  end: o6,
24815
24815
  eq: n6,
24816
24816
  filter: VT,
24817
- filterArray: Kl,
24817
+ filterArray: $l,
24818
24818
  find: OT,
24819
24819
  first: e6,
24820
24820
  get: a6,
@@ -24833,7 +24833,7 @@ const c6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24833
24833
  prev: jT,
24834
24834
  prevAll: QT,
24835
24835
  prevUntil: YT,
24836
- siblings: KT,
24836
+ siblings: $T,
24837
24837
  slice: s6,
24838
24838
  toArray: r6
24839
24839
  }, Symbol.toStringTag, { value: "Module" }));
@@ -25256,7 +25256,7 @@ function Y6(e, t) {
25256
25256
  const y = typeof c == "string" && pu(c) ? (
25257
25257
  // $(<html>)
25258
25258
  e(c, p, !1, null).children
25259
- ) : K6(c) ? (
25259
+ ) : $6(c) ? (
25260
25260
  // $(dom)
25261
25261
  [c]
25262
25262
  ) : Array.isArray(c) ? (
@@ -25298,10 +25298,10 @@ function Y6(e, t) {
25298
25298
  }), l;
25299
25299
  };
25300
25300
  }
25301
- function K6(e) {
25301
+ function $6(e) {
25302
25302
  return !!e.name || e.type === "root" || e.type === "text" || e.type === "comment";
25303
25303
  }
25304
- const $6 = /* @__PURE__ */ new Set([
25304
+ const K6 = /* @__PURE__ */ new Set([
25305
25305
  65534,
25306
25306
  65535,
25307
25307
  131070,
@@ -25362,7 +25362,7 @@ function fh(e) {
25362
25362
  return e !== 32 && e !== 10 && e !== 13 && e !== 9 && e !== 12 && e >= 1 && e <= 31 || e >= 127 && e <= 159;
25363
25363
  }
25364
25364
  function dh(e) {
25365
- return e >= 64976 && e <= 65007 || $6.has(e);
25365
+ return e >= 64976 && e <= 65007 || K6.has(e);
25366
25366
  }
25367
25367
  var z;
25368
25368
  (function(e) {
@@ -28155,7 +28155,7 @@ var kn;
28155
28155
  (function(e) {
28156
28156
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
28157
28157
  })(kn || (kn = {}));
28158
- const Kf = { type: kn.Marker };
28158
+ const $f = { type: kn.Marker };
28159
28159
  class Tv {
28160
28160
  constructor(t) {
28161
28161
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -28192,7 +28192,7 @@ class Tv {
28192
28192
  }
28193
28193
  //Mutations
28194
28194
  insertMarker() {
28195
- this.entries.unshift(Kf);
28195
+ this.entries.unshift($f);
28196
28196
  }
28197
28197
  pushElement(t, n) {
28198
28198
  this._ensureNoahArkCondition(t), this.entries.unshift({
@@ -28219,7 +28219,7 @@ class Tv {
28219
28219
  * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
28220
28220
  */
28221
28221
  clearToLastMarker() {
28222
- const t = this.entries.indexOf(Kf);
28222
+ const t = this.entries.indexOf($f);
28223
28223
  t === -1 ? this.entries.length = 0 : this.entries.splice(0, t + 1);
28224
28224
  }
28225
28225
  //Search
@@ -28231,7 +28231,7 @@ class Tv {
28231
28231
  return this.entries.find((n) => n.type === kn.Element && n.element === t);
28232
28232
  }
28233
28233
  }
28234
- const Kn = {
28234
+ const $n = {
28235
28235
  //Node construction
28236
28236
  createDocument() {
28237
28237
  return {
@@ -28296,7 +28296,7 @@ const Kn = {
28296
28296
  systemId: a,
28297
28297
  parentNode: null
28298
28298
  };
28299
- Kn.appendChild(e, i);
28299
+ $n.appendChild(e, i);
28300
28300
  }
28301
28301
  },
28302
28302
  setDocumentMode(e, t) {
@@ -28314,16 +28314,16 @@ const Kn = {
28314
28314
  insertText(e, t) {
28315
28315
  if (e.childNodes.length > 0) {
28316
28316
  const n = e.childNodes[e.childNodes.length - 1];
28317
- if (Kn.isTextNode(n)) {
28317
+ if ($n.isTextNode(n)) {
28318
28318
  n.value += t;
28319
28319
  return;
28320
28320
  }
28321
28321
  }
28322
- Kn.appendChild(e, Kn.createTextNode(t));
28322
+ $n.appendChild(e, $n.createTextNode(t));
28323
28323
  },
28324
28324
  insertTextBefore(e, t, n) {
28325
28325
  const a = e.childNodes[e.childNodes.indexOf(n) - 1];
28326
- a && Kn.isTextNode(a) ? a.value += t : Kn.insertBefore(e, Kn.createTextNode(t), n);
28326
+ a && $n.isTextNode(a) ? a.value += t : $n.insertBefore(e, $n.createTextNode(t), n);
28327
28327
  },
28328
28328
  adoptAttributes(e, t) {
28329
28329
  const n = new Set(e.attrs.map((a) => a.name));
@@ -28457,7 +28457,7 @@ const Kn = {
28457
28457
  "-//w3c//dtd html 4.01 frameset//",
28458
28458
  "-//w3c//dtd html 4.01 transitional//"
28459
28459
  ];
28460
- function $f(e, t) {
28460
+ function Kf(e, t) {
28461
28461
  return t.some((n) => e.startsWith(n));
28462
28462
  }
28463
28463
  function Nv(e) {
@@ -28474,9 +28474,9 @@ function _v(e) {
28474
28474
  if (n = n.toLowerCase(), wv.has(n))
28475
28475
  return Vt.QUIRKS;
28476
28476
  let a = t === null ? kv : bh;
28477
- if ($f(n, a))
28477
+ if (Kf(n, a))
28478
28478
  return Vt.QUIRKS;
28479
- if (a = t === null ? Ah : Cv, $f(n, a))
28479
+ if (a = t === null ? Ah : Cv, Kf(n, a))
28480
28480
  return Vt.LIMITED_QUIRKS;
28481
28481
  }
28482
28482
  return Vt.NO_QUIRKS;
@@ -28655,7 +28655,7 @@ function Eh(e) {
28655
28655
  n != null && (e.attrs[t].name = n);
28656
28656
  }
28657
28657
  }
28658
- function $l(e) {
28658
+ function Kl(e) {
28659
28659
  for (let t = 0; t < e.attrs.length; t++) {
28660
28660
  const n = Dv.get(e.attrs[t].name);
28661
28661
  n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
@@ -28696,7 +28696,7 @@ const Qv = {
28696
28696
  }, Th = /* @__PURE__ */ new Set([d.TABLE, d.TBODY, d.TFOOT, d.THEAD, d.TR]), Gf = {
28697
28697
  scriptingEnabled: !0,
28698
28698
  sourceCodeLocationInfo: !1,
28699
- treeAdapter: Kn,
28699
+ treeAdapter: $n,
28700
28700
  onParseError: null
28701
28701
  };
28702
28702
  let vh = class {
@@ -29430,7 +29430,7 @@ let vh = class {
29430
29430
  break;
29431
29431
  }
29432
29432
  case _.TEXT: {
29433
- $I(this, t);
29433
+ KI(this, t);
29434
29434
  break;
29435
29435
  }
29436
29436
  case _.IN_TABLE: {
@@ -29603,7 +29603,7 @@ function Yv(e, t) {
29603
29603
  let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
29604
29604
  return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : Nh(e, t), n;
29605
29605
  }
29606
- function Kv(e, t) {
29606
+ function $v(e, t) {
29607
29607
  let n = null, a = e.openElements.stackTop;
29608
29608
  for (; a >= 0; a--) {
29609
29609
  const r = e.openElements.items[a];
@@ -29613,7 +29613,7 @@ function Kv(e, t) {
29613
29613
  }
29614
29614
  return n || (e.openElements.shortenToLength(Math.max(a, 0)), e.activeFormattingElements.removeEntry(t)), n;
29615
29615
  }
29616
- function $v(e, t, n) {
29616
+ function Kv(e, t, n) {
29617
29617
  let a = t, r = e.openElements.getCommonAncestor(t);
29618
29618
  for (let i = 0, s = r; s !== n; i++, s = r) {
29619
29619
  r = e.openElements.getCommonAncestor(s);
@@ -29644,11 +29644,11 @@ function Wl(e, t) {
29644
29644
  const a = Yv(e, t);
29645
29645
  if (!a)
29646
29646
  break;
29647
- const r = Kv(e, a);
29647
+ const r = $v(e, a);
29648
29648
  if (!r)
29649
29649
  break;
29650
29650
  e.activeFormattingElements.bookmark = a;
29651
- const i = $v(e, r, a.element), s = e.openElements.getCommonAncestor(a.element);
29651
+ const i = Kv(e, r, a.element), s = e.openElements.getCommonAncestor(a.element);
29652
29652
  e.treeAdapter.detachNode(i), s && Gv(e, s, i), qv(e, r, a);
29653
29653
  }
29654
29654
  }
@@ -30017,10 +30017,10 @@ function OI(e, t) {
30017
30017
  e.openElements.hasInScope(d.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(d.RTC), e._insertElement(t, W.HTML);
30018
30018
  }
30019
30019
  function LI(e, t) {
30020
- e._reconstructActiveFormattingElements(), yh(t), $l(t), t.selfClosing ? e._appendElement(t, W.MATHML) : e._insertElement(t, W.MATHML), t.ackSelfClosing = !0;
30020
+ e._reconstructActiveFormattingElements(), yh(t), Kl(t), t.selfClosing ? e._appendElement(t, W.MATHML) : e._insertElement(t, W.MATHML), t.ackSelfClosing = !0;
30021
30021
  }
30022
30022
  function RI(e, t) {
30023
- e._reconstructActiveFormattingElements(), Eh(t), $l(t), t.selfClosing ? e._appendElement(t, W.SVG) : e._insertElement(t, W.SVG), t.ackSelfClosing = !0;
30023
+ e._reconstructActiveFormattingElements(), Eh(t), Kl(t), t.selfClosing ? e._appendElement(t, W.SVG) : e._insertElement(t, W.SVG), t.ackSelfClosing = !0;
30024
30024
  }
30025
30025
  function Vf(e, t) {
30026
30026
  e._reconstructActiveFormattingElements(), e._insertElement(t, W.HTML);
@@ -30269,7 +30269,7 @@ function YI(e, t) {
30269
30269
  const n = t.tagID;
30270
30270
  e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
30271
30271
  }
30272
- function KI(e) {
30272
+ function $I(e) {
30273
30273
  e._reconstructActiveFormattingElements(), e._insertFakeElement(R.BR, d.BR), e.openElements.pop(), e.framesetOk = !1;
30274
30274
  }
30275
30275
  function Nh(e, t) {
@@ -30356,7 +30356,7 @@ function oo(e, t) {
30356
30356
  break;
30357
30357
  }
30358
30358
  case d.BR: {
30359
- KI(e);
30359
+ $I(e);
30360
30360
  break;
30361
30361
  }
30362
30362
  case d.BODY: {
@@ -30388,7 +30388,7 @@ function oo(e, t) {
30388
30388
  function _h(e, t) {
30389
30389
  e.tmplInsertionModeStack.length > 0 ? Rh(e, t) : Gl(e, t);
30390
30390
  }
30391
- function $I(e, t) {
30391
+ function KI(e, t) {
30392
30392
  var n;
30393
30393
  t.tagID === d.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
30394
30394
  }
@@ -30916,7 +30916,7 @@ function Ek(e, t) {
30916
30916
  Ph(e), e._startTagOutsideForeignContent(t);
30917
30917
  else {
30918
30918
  const n = e._getAdjustedCurrentElement(), a = e.treeAdapter.getNamespaceURI(n);
30919
- a === W.MATHML ? yh(t) : a === W.SVG && (Bv(t), Eh(t)), $l(t), t.selfClosing ? e._appendElement(t, a) : e._insertElement(t, a), t.ackSelfClosing = !0;
30919
+ a === W.MATHML ? yh(t) : a === W.SVG && (Bv(t), Eh(t)), Kl(t), t.selfClosing ? e._appendElement(t, a) : e._insertElement(t, a), t.ackSelfClosing = !0;
30920
30920
  }
30921
30921
  }
30922
30922
  function Tk(e, t) {
@@ -30977,7 +30977,7 @@ const vk = /* @__PURE__ */ Uh(/["&\u00A0]/g, /* @__PURE__ */ new Map([
30977
30977
  function wk(e, t) {
30978
30978
  return t.treeAdapter.isElementNode(e) && t.treeAdapter.getNamespaceURI(e) === W.HTML && kk.has(t.treeAdapter.getTagName(e));
30979
30979
  }
30980
- const Ck = { treeAdapter: Kn, scriptingEnabled: !0 };
30980
+ const Ck = { treeAdapter: $n, scriptingEnabled: !0 };
30981
30981
  function Nk(e, t) {
30982
30982
  const n = { ...Ck, ...t };
30983
30983
  return Fh(e, n);
@@ -31264,7 +31264,7 @@ function Qk(e) {
31264
31264
  function Yk(e) {
31265
31265
  return e >= pt.UPPER_A && e <= pt.UPPER_Z || e >= pt.LOWER_A && e <= pt.LOWER_Z || Cu(e);
31266
31266
  }
31267
- function Kk(e) {
31267
+ function $k(e) {
31268
31268
  return e === pt.EQUALS || Yk(e);
31269
31269
  }
31270
31270
  var ht;
@@ -31403,11 +31403,11 @@ class jh {
31403
31403
  let r = a[this.treeIndex], i = (r & oa.VALUE_LENGTH) >> 14;
31404
31404
  for (; n < t.length; n++, this.excess++) {
31405
31405
  const s = t.charCodeAt(n);
31406
- if (this.treeIndex = $k(a, r, this.treeIndex + Math.max(1, i), s), this.treeIndex < 0)
31406
+ if (this.treeIndex = Kk(a, r, this.treeIndex + Math.max(1, i), s), this.treeIndex < 0)
31407
31407
  return this.result === 0 || // If we are parsing an attribute
31408
31408
  this.decodeMode === wn.Attribute && // We shouldn't have consumed any characters after the entity,
31409
31409
  (i === 0 || // And there should be no invalid characters.
31410
- Kk(s)) ? 0 : this.emitNotTerminatedNamedEntity();
31410
+ $k(s)) ? 0 : this.emitNotTerminatedNamedEntity();
31411
31411
  if (r = a[this.treeIndex], i = (r & oa.VALUE_LENGTH) >> 14, i !== 0) {
31412
31412
  if (s === pt.SEMI)
31413
31413
  return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
@@ -31484,7 +31484,7 @@ function Qh(e) {
31484
31484
  return t = "", u;
31485
31485
  };
31486
31486
  }
31487
- function $k(e, t, n, a) {
31487
+ function Kk(e, t, n, a) {
31488
31488
  const r = (t & oa.BRANCH_LENGTH) >> 7, i = t & oa.JUMP_TABLE;
31489
31489
  if (r === 0)
31490
31490
  return i !== 0 && a === i ? n : -1;
@@ -32189,7 +32189,7 @@ const ew = f6((e, t, n, a) => t._useHtmlParser2 ? Xk(e, t) : Pk(e, t, n, a)), tw
32189
32189
  load: tw,
32190
32190
  merge: F1
32191
32191
  }, Symbol.toStringTag, { value: "Module" })), aw = /* @__PURE__ */ DE(nw);
32192
- var zo = {}, Yh = { exports: {} }, Kh = { exports: {} };
32192
+ var zo = {}, Yh = { exports: {} }, $h = { exports: {} };
32193
32193
  (function(e, t) {
32194
32194
  e.exports = n;
32195
32195
  function n(r) {
@@ -32200,8 +32200,8 @@ var zo = {}, Yh = { exports: {} }, Kh = { exports: {} };
32200
32200
  i.unshift("[" + r + "]"), process.stderr.write(i.join(" ") + `
32201
32201
  `);
32202
32202
  }
32203
- })(Kh);
32204
- var Vl = Kh.exports;
32203
+ })($h);
32204
+ var Vl = $h.exports;
32205
32205
  (function(e, t) {
32206
32206
  Vl("lex"), e.exports = n;
32207
32207
  function n(a) {
@@ -32225,42 +32225,42 @@ var Vl = Kh.exports;
32225
32225
  function m() {
32226
32226
  return H(), a[o];
32227
32227
  }
32228
- function A(K) {
32229
- return K ? f[f.length - 1 - K] : c;
32228
+ function A($) {
32229
+ return $ ? f[f.length - 1 - $] : c;
32230
32230
  }
32231
- function y(K) {
32232
- var $ = o + 1;
32233
- return K === a.slice($, $ + K.length);
32231
+ function y($) {
32232
+ var K = o + 1;
32233
+ return $ === a.slice(K, K + $.length);
32234
32234
  }
32235
- function I(K) {
32236
- var $ = a.slice(o).indexOf(K);
32237
- return $ > 0 ? $ : !1;
32235
+ function I($) {
32236
+ var K = a.slice(o).indexOf($);
32237
+ return K > 0 ? K : !1;
32238
32238
  }
32239
- function N(K) {
32240
- return K === T(1);
32239
+ function N($) {
32240
+ return $ === T(1);
32241
32241
  }
32242
- function T(K) {
32243
- return a[o + (K || 1)];
32242
+ function T($) {
32243
+ return a[o + ($ || 1)];
32244
32244
  }
32245
32245
  function w() {
32246
- var K = f.pop();
32247
- return c = f[f.length - 1], K;
32246
+ var $ = f.pop();
32247
+ return c = f[f.length - 1], $;
32248
32248
  }
32249
- function M(K) {
32250
- return c = K, f.push(c), f.length;
32249
+ function M($) {
32250
+ return c = $, f.push(c), f.length;
32251
32251
  }
32252
- function L(K) {
32253
- var $ = c;
32254
- return f[f.length - 1] = c = K, $;
32252
+ function L($) {
32253
+ var K = c;
32254
+ return f[f.length - 1] = c = $, K;
32255
32255
  }
32256
- function H(K) {
32257
- if ((K || 1) == 1)
32256
+ function H($) {
32257
+ if (($ || 1) == 1)
32258
32258
  a[o] == `
32259
32259
  ` ? (l++, s = 1) : s++, o++;
32260
32260
  else {
32261
- var $ = a.slice(o, o + K).split(`
32261
+ var K = a.slice(o, o + $).split(`
32262
32262
  `);
32263
- $.length > 1 && (l += $.length - 1, s = 1), s += $[$.length - 1].length, o = o + K;
32263
+ K.length > 1 && (l += K.length - 1, s = 1), s += K[K.length - 1].length, o = o + $;
32264
32264
  }
32265
32265
  }
32266
32266
  function k() {
@@ -32269,9 +32269,9 @@ var Vl = Kh.exports;
32269
32269
  col: s
32270
32270
  }, g.push(h), r = "", h = {};
32271
32271
  }
32272
- function x(K) {
32272
+ function x($) {
32273
32273
  h = {
32274
- type: K,
32274
+ type: $,
32275
32275
  start: {
32276
32276
  line: l,
32277
32277
  col: s
@@ -32529,10 +32529,10 @@ var Vl = Kh.exports;
32529
32529
  return g;
32530
32530
  }
32531
32531
  })(Yh);
32532
- var $h = Yh.exports, Wh = { exports: {} };
32532
+ var Kh = Yh.exports, Wh = { exports: {} };
32533
32533
  (function(e, t) {
32534
32534
  Vl("parse");
32535
- var n = $h;
32535
+ var n = Kh;
32536
32536
  e.exports = o;
32537
32537
  var a, r, i, s;
32538
32538
  function o(w, M) {
@@ -32731,7 +32731,7 @@ var rw = Wh.exports, Gh = { exports: {} };
32731
32731
  }
32732
32732
  })(Gh);
32733
32733
  var iw = Gh.exports, sw = {
32734
- lex: $h,
32734
+ lex: Kh,
32735
32735
  parse: rw,
32736
32736
  stringify: iw
32737
32737
  }, qh = { exports: {} }, ow = /([-.*+?^${}()|[\]\/\\])/g, uw = /\\/g, Ea = function(e) {
@@ -33379,15 +33379,15 @@ var sd;
33379
33379
  if (C === 0 && S & r.BinTrieFlags.FLAG13) {
33380
33380
  const G = (S & r.BinTrieFlags.BRANCH_LENGTH) >> 7;
33381
33381
  if (this.runConsumed === 0) {
33382
- const K = S & r.BinTrieFlags.JUMP_TABLE;
33383
- if (x.charCodeAt(U) !== K)
33382
+ const $ = S & r.BinTrieFlags.JUMP_TABLE;
33383
+ if (x.charCodeAt(U) !== $)
33384
33384
  return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
33385
33385
  U++, this.excess++, this.runConsumed++;
33386
33386
  }
33387
33387
  for (; this.runConsumed < G; ) {
33388
33388
  if (U >= x.length)
33389
33389
  return -1;
33390
- const K = this.runConsumed - 1, $ = O[this.treeIndex + 1 + (K >> 1)], de = K % 2 === 0 ? $ & 255 : $ >> 8 & 255;
33390
+ const $ = this.runConsumed - 1, K = O[this.treeIndex + 1 + ($ >> 1)], de = $ % 2 === 0 ? K & 255 : K >> 8 & 255;
33391
33391
  if (x.charCodeAt(U) !== de)
33392
33392
  return this.runConsumed = 0, this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
33393
33393
  U++, this.excess++, this.runConsumed++;
@@ -33467,19 +33467,19 @@ var sd;
33467
33467
  let B = 0, G = 0;
33468
33468
  for (; (G = S.indexOf("&", G)) >= 0; ) {
33469
33469
  x += S.slice(B, G), U.startEntity(C);
33470
- const $ = U.write(
33470
+ const K = U.write(
33471
33471
  S,
33472
33472
  // Skip the "&"
33473
33473
  G + 1
33474
33474
  );
33475
- if ($ < 0) {
33475
+ if (K < 0) {
33476
33476
  B = G + U.end();
33477
33477
  break;
33478
33478
  }
33479
- B = G + $, G = $ === 0 ? B + 1 : B;
33479
+ B = G + K, G = K === 0 ? B + 1 : B;
33480
33480
  }
33481
- const K = x + S.slice(B);
33482
- return x = "", K;
33481
+ const $ = x + S.slice(B);
33482
+ return x = "", $;
33483
33483
  };
33484
33484
  }
33485
33485
  function m(k, x, U, O) {
@@ -33487,19 +33487,19 @@ var sd;
33487
33487
  if (S === 0)
33488
33488
  return C !== 0 && O === C ? U : -1;
33489
33489
  if (C) {
33490
- const $ = O - C;
33491
- return $ < 0 || $ >= S ? -1 : k[U + $] - 1;
33490
+ const K = O - C;
33491
+ return K < 0 || K >= S ? -1 : k[U + K] - 1;
33492
33492
  }
33493
33493
  const B = S + 1 >> 1;
33494
- let G = 0, K = S - 1;
33495
- for (; G <= K; ) {
33496
- const $ = G + K >>> 1, de = $ >> 1, me = k[U + de] >> ($ & 1) * 8 & 255;
33494
+ let G = 0, $ = S - 1;
33495
+ for (; G <= $; ) {
33496
+ const K = G + $ >>> 1, de = K >> 1, me = k[U + de] >> (K & 1) * 8 & 255;
33497
33497
  if (me < O)
33498
- G = $ + 1;
33498
+ G = K + 1;
33499
33499
  else if (me > O)
33500
- K = $ - 1;
33500
+ $ = K - 1;
33501
33501
  else
33502
- return k[U + B + $];
33502
+ return k[U + B + K];
33503
33503
  }
33504
33504
  return -1;
33505
33505
  }
@@ -33871,10 +33871,10 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
33871
33871
  var A = jn.parseCSS(p), y = [], I = "style", N = {}, T = m.removeInlinedSelectors ? /* @__PURE__ */ new Set() : null;
33872
33872
  m.styleAttributeName && (I = m.styleAttributeName);
33873
33873
  function w(S) {
33874
- var C = S[0], B = S[1], G = new jn.Selector(C), K = G.parsed();
33875
- if (K) {
33876
- for (var $ = s(K), de = 0; de < K.length; ++de) {
33877
- var Le = K[de];
33874
+ var C = S[0], B = S[1], G = new jn.Selector(C), $ = G.parsed();
33875
+ if ($) {
33876
+ for (var K = s($), de = 0; de < $.length; ++de) {
33877
+ var Le = $[de];
33878
33878
  if (Le.pseudos)
33879
33879
  for (var me = 0; me < Le.pseudos.length; ++me) {
33880
33880
  var ge = Le.pseudos[me];
@@ -33882,9 +33882,9 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
33882
33882
  return;
33883
33883
  }
33884
33884
  }
33885
- if ($) {
33886
- var Xe = K[K.length - 1], Lt = Xe.pseudos;
33887
- Xe.pseudos = u(Xe.pseudos), C = K.toString(), Xe.pseudos = Lt;
33885
+ if (K) {
33886
+ var Xe = $[$.length - 1], Lt = Xe.pseudos;
33887
+ Xe.pseudos = u(Xe.pseudos), C = $.toString(), Xe.pseudos = Lt;
33888
33888
  }
33889
33889
  var lt;
33890
33890
  try {
@@ -33894,56 +33894,56 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
33894
33894
  }
33895
33895
  var vt = !1;
33896
33896
  lt.each(function() {
33897
- var we = this;
33898
- if (we.name && t.nonVisualElements.indexOf(we.name.toUpperCase()) >= 0)
33897
+ var ke = this;
33898
+ if (ke.name && t.nonVisualElements.indexOf(ke.name.toUpperCase()) >= 0)
33899
33899
  return;
33900
- if (vt = !0, we.counterProps || (we.counterProps = we.parent && we.parent.counterProps ? Object.create(we.parent.counterProps) : {}), $) {
33901
- var ct = "pseudo" + $, mt = we[ct];
33902
- mt || (mt = we[ct] = g("<span />").get(0), mt.pseudoElementType = $, mt.pseudoElementParent = we, mt.counterProps = we.counterProps, we[ct] = mt), we = mt;
33900
+ if (vt = !0, ke.counterProps || (ke.counterProps = ke.parent && ke.parent.counterProps ? Object.create(ke.parent.counterProps) : {}), K) {
33901
+ var ct = "pseudo" + K, mt = ke[ct];
33902
+ mt || (mt = ke[ct] = g("<span />").get(0), mt.pseudoElementType = K, mt.pseudoElementParent = ke, mt.counterProps = ke.counterProps, ke[ct] = mt), ke = mt;
33903
33903
  }
33904
- if (!we.styleProps) {
33905
- if (we.styleProps = {}, g(we).attr(I)) {
33906
- var Tn = g(we).attr(I), un = m.decodeStyleAttributes ? xw(Tn) : Tn, Z = "* { " + un + " } ";
33904
+ if (!ke.styleProps) {
33905
+ if (ke.styleProps = {}, g(ke).attr(I)) {
33906
+ var Tn = g(ke).attr(I), un = m.decodeStyleAttributes ? xw(Tn) : Tn, Z = "* { " + un + " } ";
33907
33907
  ie(jn.parseCSS(Z)[0][1], new jn.Selector("<style>", !0));
33908
33908
  }
33909
- y.push(we);
33909
+ y.push(ke);
33910
33910
  }
33911
33911
  function le(se, Je) {
33912
33912
  for (var re = Je.split(/\s+/), Ue = 0; Ue < re.length; Ue++) {
33913
- var Me = re[Ue], $e = parseInt(re[Ue + 1], 10);
33914
- isNaN($e) ? se.counterProps[Me] = N[Me] = 0 : se.counterProps[Me] = N[re[Ue++]] = $e;
33913
+ var Me = re[Ue], Ke = parseInt(re[Ue + 1], 10);
33914
+ isNaN(Ke) ? se.counterProps[Me] = N[Me] = 0 : se.counterProps[Me] = N[re[Ue++]] = Ke;
33915
33915
  }
33916
33916
  }
33917
- function Ce(se, Je) {
33917
+ function we(se, Je) {
33918
33918
  for (var re = Je.split(/\s+/), Ue = 0; Ue < re.length; Ue++) {
33919
33919
  var Me = re[Ue];
33920
33920
  if (se.counterProps[Me] !== void 0) {
33921
- var $e = parseInt(re[Ue + 1], 10);
33922
- isNaN($e) ? se.counterProps[Me] = N[Me] += 1 : se.counterProps[Me] = N[re[Ue++]] += $e;
33921
+ var Ke = parseInt(re[Ue + 1], 10);
33922
+ isNaN(Ke) ? se.counterProps[Me] = N[Me] += 1 : se.counterProps[Me] = N[re[Ue++]] += Ke;
33923
33923
  }
33924
33924
  }
33925
33925
  }
33926
33926
  function ie(se, Je) {
33927
33927
  for (var re = 0, Ue = se.length; re < Ue; re++)
33928
33928
  if (se[re].type == "property") {
33929
- var Me = se[re].name, $e = se[re].value;
33930
- Me === "counter-reset" && le(we, $e), Me === "counter-increment" && Ce(we, $e);
33931
- var ba = $e.match(/!important$/) !== null;
33932
- ba && !m.preserveImportant && ($e = a($e));
33933
- var ja = [se[re].position.start.line, se[re].position.start.col], Rt = new jn.Property(Me, $e, Je, ba ? 2 : 0, ja), It = we.styleProps[Me];
33929
+ var Me = se[re].name, Ke = se[re].value;
33930
+ Me === "counter-reset" && le(ke, Ke), Me === "counter-increment" && we(ke, Ke);
33931
+ var ba = Ke.match(/!important$/) !== null;
33932
+ ba && !m.preserveImportant && (Ke = a(Ke));
33933
+ var ja = [se[re].position.start.line, se[re].position.start.col], Rt = new jn.Property(Me, Ke, Je, ba ? 2 : 0, ja), It = ke.styleProps[Me];
33934
33934
  if (t.excludedProperties.indexOf(Me) < 0)
33935
33935
  if (m.inlineDuplicateProperties)
33936
33936
  if (It)
33937
33937
  if (It.selector === Je)
33938
- Rt.nextProp = It, we.styleProps[Me] = Rt;
33938
+ Rt.nextProp = It, ke.styleProps[Me] = Rt;
33939
33939
  else {
33940
33940
  for (var Fn = It; Fn.nextProp; )
33941
33941
  Fn = Fn.nextProp;
33942
33942
  Fn.nextProp = Rt;
33943
33943
  }
33944
33944
  else
33945
- we.styleProps[Me] = Rt;
33946
- else (It && It.compare(Rt) === Rt || !It) && (It && It.selector !== Je ? delete we.styleProps[Me] : It && (Rt.nextProp = It), we.styleProps[Me] = Rt);
33945
+ ke.styleProps[Me] = Rt;
33946
+ else (It && It.compare(Rt) === Rt || !It) && (It && It.selector !== Je ? delete ke.styleProps[Me] : It && (Rt.nextProp = It), ke.styleProps[Me] = Rt);
33947
33947
  }
33948
33948
  }
33949
33949
  ie(B, G);
@@ -33954,10 +33954,10 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
33954
33954
  Object.keys(S.styleProps).length;
33955
33955
  var C = [];
33956
33956
  Object.keys(S.styleProps).forEach(function(G) {
33957
- for (var K = S.styleProps[G]; typeof K < "u"; )
33958
- C.push(K), K = K.nextProp;
33959
- }), C.sort(function(G, K) {
33960
- return G.compareFunc(K);
33957
+ for (var $ = S.styleProps[G]; typeof $ < "u"; )
33958
+ C.push($), $ = $.nextProp;
33959
+ }), C.sort(function(G, $) {
33960
+ return G.compareFunc($);
33961
33961
  });
33962
33962
  var B = C.filter(function(G) {
33963
33963
  return m.resolveCSSVariables && G.prop.indexOf("--") === 0 ? !1 : G.prop !== "content";
@@ -33980,14 +33980,14 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
33980
33980
  if (t[C + "Elements"].indexOf(B) > -1) {
33981
33981
  for (var G in S.styleProps)
33982
33982
  if (S.styleProps[G].prop === C) {
33983
- var K = S.styleProps[G].value;
33984
- if (m.preserveImportant && (K = a(K)), K.match(/(px|auto)/)) {
33985
- var $ = K.replace("px", "");
33986
- g(S).attr(C, $);
33983
+ var $ = S.styleProps[G].value;
33984
+ if (m.preserveImportant && ($ = a($)), $.match(/(px|auto)/)) {
33985
+ var K = $.replace("px", "");
33986
+ g(S).attr(C, K);
33987
33987
  return;
33988
33988
  }
33989
- if (t.tableElements.indexOf(B) > -1 && K.match(/\%/)) {
33990
- g(S).attr(C, K);
33989
+ if (t.tableElements.indexOf(B) > -1 && $.match(/\%/)) {
33990
+ g(S).attr(C, $);
33991
33991
  return;
33992
33992
  }
33993
33993
  }
@@ -34003,10 +34003,10 @@ var _w = { replaceVariables: Nw, findVariableValue: ng }, { decode: xw } = Xh, j
34003
34003
  if (t.tableElements.indexOf(C) > -1) {
34004
34004
  for (var G in S.styleProps)
34005
34005
  if (B.indexOf(S.styleProps[G].prop) > -1) {
34006
- var K = t.styleToAttribute[S.styleProps[G].prop], $ = S.styleProps[G].value;
34007
- if (m.preserveImportant && ($ = a($)), K === "background" && ($ = k($)), /(linear|radial)-gradient\(/i.test($))
34006
+ var $ = t.styleToAttribute[S.styleProps[G].prop], K = S.styleProps[G].value;
34007
+ if (m.preserveImportant && (K = a(K)), $ === "background" && (K = k(K)), /(linear|radial)-gradient\(/i.test(K))
34008
34008
  continue;
34009
- g(S).attr(K, $);
34009
+ g(S).attr($, K);
34010
34010
  }
34011
34011
  }
34012
34012
  }
@@ -34173,7 +34173,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34173
34173
  }, Bw = ["onClick"], Pw = { class: "tp-item-info" }, Uw = { class: "tp-item-title" }, Fw = { class: "tp-item-actions" }, Hw = ["onClick"], zw = ["onClick"], jw = {
34174
34174
  key: 1,
34175
34175
  class: "tp-edit"
34176
- }, Qw = { class: "tp-edit-actions" }, Yw = ["disabled"], Kw = /* @__PURE__ */ Ne({
34176
+ }, Qw = { class: "tp-edit-actions" }, Yw = ["disabled"], $w = /* @__PURE__ */ Ne({
34177
34177
  __name: "TemplateSubPanel",
34178
34178
  props: {
34179
34179
  templates: {},
@@ -34275,7 +34275,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34275
34275
  ]))
34276
34276
  ], 2));
34277
34277
  }
34278
- }), $w = { class: "toolbar-section" }, Ww = { class: "list-section" }, Gw = { class: "list-item-icon" }, qw = { class: "list-item-icon" }, Vw = { class: "list-item-icon" }, Jw = { class: "list-item-icon" }, Zw = { class: "list-item-icon" }, Xw = { class: "list-item-icon" }, eC = { class: "list-item-icon" }, tC = { class: "list-item-icon" }, nC = { class: "list-item-icon" }, ag = /* @__PURE__ */ Ne({
34278
+ }), Kw = { class: "toolbar-section" }, Ww = { class: "list-section" }, Gw = { class: "list-item-icon" }, qw = { class: "list-item-icon" }, Vw = { class: "list-item-icon" }, Jw = { class: "list-item-icon" }, Zw = { class: "list-item-icon" }, Xw = { class: "list-item-icon" }, eC = { class: "list-item-icon" }, tC = { class: "list-item-icon" }, nC = { class: "list-item-icon" }, ag = /* @__PURE__ */ Ne({
34279
34279
  __name: "BlockMenuPanel",
34280
34280
  props: {
34281
34281
  currentBlockType: {}
@@ -34290,7 +34290,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34290
34290
  console.error("[模板] 加载失败:", S);
34291
34291
  }
34292
34292
  };
34293
- Kt(() => {
34293
+ $t(() => {
34294
34294
  l();
34295
34295
  });
34296
34296
  const c = Q(!1), f = Q(null), h = Q(null), g = Q({ top: "0px", left: "0px" });
@@ -34333,7 +34333,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34333
34333
  ref: f,
34334
34334
  class: X(["block-menu-panel", { "bmp-dark": i.value }])
34335
34335
  }, [
34336
- b("div", $w, [
34336
+ b("div", Kw, [
34337
34337
  b("div", {
34338
34338
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "paragraph" }]),
34339
34339
  onClick: C[0] || (C[0] = (B) => S.$emit("select", "paragraph")),
@@ -34423,7 +34423,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34423
34423
  onClick: C[20] || (C[20] = (B) => S.$emit("select", "table"))
34424
34424
  }, [
34425
34425
  b("div", Gw, [
34426
- j(P(KA), { size: 16 })
34426
+ j(P($A), { size: 16 })
34427
34427
  ]),
34428
34428
  C[31] || (C[31] = b("span", { class: "list-item-title" }, "表格", -1))
34429
34429
  ], 2),
@@ -34516,7 +34516,7 @@ const jr = /* @__PURE__ */ w1(Ow), Lw = {
34516
34516
  onMouseenter: I,
34517
34517
  onMouseleave: y
34518
34518
  }, [
34519
- j(Kw, {
34519
+ j($w, {
34520
34520
  templates: u.value,
34521
34521
  "template-config": o.value,
34522
34522
  "is-dark": i.value,
@@ -34649,22 +34649,22 @@ const aC = {
34649
34649
  }), A = async (k) => {
34650
34650
  if (!n.editor || n.currentNodePos === void 0) return;
34651
34651
  if (k.startsWith("template:")) {
34652
- const K = k.replace("template:", "");
34653
- await i(n.editor, K, n.currentNodePos, m.value), c();
34652
+ const $ = k.replace("template:", "");
34653
+ await i(n.editor, $, n.currentNodePos, m.value), c();
34654
34654
  return;
34655
34655
  }
34656
34656
  if (k === "aiImage") {
34657
34657
  if (m.value) {
34658
- const K = n.editor.state.doc.nodeAt(n.currentNodePos);
34659
- K && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + K.nodeSize }).insertContent({
34658
+ const $ = n.editor.state.doc.nodeAt(n.currentNodePos);
34659
+ $ && n.editor.chain().focus().deleteRange({ from: n.currentNodePos, to: n.currentNodePos + $.nodeSize }).insertContent({
34660
34660
  type: "aiImagePromptNode",
34661
34661
  attrs: { prompt: "" }
34662
34662
  }).run();
34663
34663
  } else {
34664
- const K = n.editor.state.doc.nodeAt(n.currentNodePos);
34665
- if (K) {
34666
- const $ = n.currentNodePos + K.nodeSize;
34667
- n.editor.chain().focus().insertContentAt($, {
34664
+ const $ = n.editor.state.doc.nodeAt(n.currentNodePos);
34665
+ if ($) {
34666
+ const K = n.currentNodePos + $.nodeSize;
34667
+ n.editor.chain().focus().insertContentAt(K, {
34668
34668
  type: "aiImagePromptNode",
34669
34669
  attrs: { prompt: "" }
34670
34670
  }).run();
@@ -34963,7 +34963,7 @@ const aC = {
34963
34963
  console.error("复制失败:", y);
34964
34964
  }
34965
34965
  };
34966
- return (A, y) => (D(), ye(P($t), {
34966
+ return (A, y) => (D(), ye(P(Kt), {
34967
34967
  class: "code-block-wrapper",
34968
34968
  onMouseover: y[2] || (y[2] = (I) => r.value = !0),
34969
34969
  onMouseleave: h
@@ -35207,9 +35207,9 @@ const aC = {
35207
35207
  og
35208
35208
  );
35209
35209
  function lg(e) {
35210
- const t = e.regex, n = ($, { after: de }) => {
35211
- const Le = "</" + $[0].slice(1);
35212
- return $.input.indexOf(Le, de) !== -1;
35210
+ const t = e.regex, n = (K, { after: de }) => {
35211
+ const Le = "</" + K[0].slice(1);
35212
+ return K.input.indexOf(Le, de) !== -1;
35213
35213
  }, a = ud, r = {
35214
35214
  begin: "<>",
35215
35215
  end: "</>"
@@ -35220,8 +35220,8 @@ function lg(e) {
35220
35220
  * @param {RegExpMatchArray} match
35221
35221
  * @param {CallbackResponse} response
35222
35222
  */
35223
- isTrulyOpeningTag: ($, de) => {
35224
- const Le = $[0].length + $.index, me = $.input[Le];
35223
+ isTrulyOpeningTag: (K, de) => {
35224
+ const Le = K[0].length + K.index, me = K.input[Le];
35225
35225
  if (
35226
35226
  // HTML should not include another raw `<` inside a tag
35227
35227
  // nested type?
@@ -35233,9 +35233,9 @@ function lg(e) {
35233
35233
  de.ignoreMatch();
35234
35234
  return;
35235
35235
  }
35236
- me === ">" && (n($, { after: Le }) || de.ignoreMatch());
35236
+ me === ">" && (n(K, { after: Le }) || de.ignoreMatch());
35237
35237
  let ge;
35238
- const Xe = $.input.substring(Le);
35238
+ const Xe = K.input.substring(Le);
35239
35239
  if (ge = Xe.match(/^\s*=/)) {
35240
35240
  de.ignoreMatch();
35241
35241
  return;
@@ -35498,8 +35498,8 @@ function lg(e) {
35498
35498
  match: /\b[A-Z][A-Z_0-9]+\b/,
35499
35499
  className: "variable.constant"
35500
35500
  };
35501
- function O($) {
35502
- return t.concat("(?!", $.join("|"), ")");
35501
+ function O(K) {
35502
+ return t.concat("(?!", K.join("|"), ")");
35503
35503
  }
35504
35504
  const S = {
35505
35505
  match: t.concat(
@@ -35508,7 +35508,7 @@ function lg(e) {
35508
35508
  ...ug,
35509
35509
  "super",
35510
35510
  "import"
35511
- ].map(($) => `${$}\\s*\\(`)),
35511
+ ].map((K) => `${K}\\s*\\(`)),
35512
35512
  a,
35513
35513
  t.lookahead(/\s*\(/)
35514
35514
  ),
@@ -35541,7 +35541,7 @@ function lg(e) {
35541
35541
  },
35542
35542
  M
35543
35543
  ]
35544
- }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", K = {
35544
+ }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", $ = {
35545
35545
  match: [
35546
35546
  /const|var|let/,
35547
35547
  /\s+/,
@@ -35591,7 +35591,7 @@ function lg(e) {
35591
35591
  match: a + t.lookahead(":"),
35592
35592
  relevance: 0
35593
35593
  },
35594
- K,
35594
+ $,
35595
35595
  {
35596
35596
  // "value" container
35597
35597
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
@@ -35862,9 +35862,9 @@ const Os = "[A-Za-z$_][0-9A-Za-z$_]*", cg = [
35862
35862
  hg
35863
35863
  );
35864
35864
  function NC(e) {
35865
- const t = e.regex, n = ($, { after: de }) => {
35866
- const Le = "</" + $[0].slice(1);
35867
- return $.input.indexOf(Le, de) !== -1;
35865
+ const t = e.regex, n = (K, { after: de }) => {
35866
+ const Le = "</" + K[0].slice(1);
35867
+ return K.input.indexOf(Le, de) !== -1;
35868
35868
  }, a = Os, r = {
35869
35869
  begin: "<>",
35870
35870
  end: "</>"
@@ -35875,8 +35875,8 @@ function NC(e) {
35875
35875
  * @param {RegExpMatchArray} match
35876
35876
  * @param {CallbackResponse} response
35877
35877
  */
35878
- isTrulyOpeningTag: ($, de) => {
35879
- const Le = $[0].length + $.index, me = $.input[Le];
35878
+ isTrulyOpeningTag: (K, de) => {
35879
+ const Le = K[0].length + K.index, me = K.input[Le];
35880
35880
  if (
35881
35881
  // HTML should not include another raw `<` inside a tag
35882
35882
  // nested type?
@@ -35888,9 +35888,9 @@ function NC(e) {
35888
35888
  de.ignoreMatch();
35889
35889
  return;
35890
35890
  }
35891
- me === ">" && (n($, { after: Le }) || de.ignoreMatch());
35891
+ me === ">" && (n(K, { after: Le }) || de.ignoreMatch());
35892
35892
  let ge;
35893
- const Xe = $.input.substring(Le);
35893
+ const Xe = K.input.substring(Le);
35894
35894
  if (ge = Xe.match(/^\s*=/)) {
35895
35895
  de.ignoreMatch();
35896
35896
  return;
@@ -36153,8 +36153,8 @@ function NC(e) {
36153
36153
  match: /\b[A-Z][A-Z_0-9]+\b/,
36154
36154
  className: "variable.constant"
36155
36155
  };
36156
- function O($) {
36157
- return t.concat("(?!", $.join("|"), ")");
36156
+ function O(K) {
36157
+ return t.concat("(?!", K.join("|"), ")");
36158
36158
  }
36159
36159
  const S = {
36160
36160
  match: t.concat(
@@ -36163,7 +36163,7 @@ function NC(e) {
36163
36163
  ...gg,
36164
36164
  "super",
36165
36165
  "import"
36166
- ].map(($) => `${$}\\s*\\(`)),
36166
+ ].map((K) => `${K}\\s*\\(`)),
36167
36167
  a,
36168
36168
  t.lookahead(/\s*\(/)
36169
36169
  ),
@@ -36196,7 +36196,7 @@ function NC(e) {
36196
36196
  },
36197
36197
  M
36198
36198
  ]
36199
- }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", K = {
36199
+ }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", $ = {
36200
36200
  match: [
36201
36201
  /const|var|let/,
36202
36202
  /\s+/,
@@ -36246,7 +36246,7 @@ function NC(e) {
36246
36246
  match: a + t.lookahead(":"),
36247
36247
  relevance: 0
36248
36248
  },
36249
- K,
36249
+ $,
36250
36250
  {
36251
36251
  // "value" container
36252
36252
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
@@ -39677,7 +39677,7 @@ const tc = (e) => Qe(
39677
39677
  _g,
39678
39678
  /\d/,
39679
39679
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
39680
- ), vn = Qe(_g, Ls, "*"), Ki = Qe(/[A-Z]/, Ls, "*"), RC = [
39680
+ ), vn = Qe(_g, Ls, "*"), $i = Qe(/[A-Z]/, Ls, "*"), RC = [
39681
39681
  "attached",
39682
39682
  "autoclosure",
39683
39683
  Qe(/convention\(/, _t("swift", "block", "c"), /\)/),
@@ -39887,11 +39887,11 @@ function PC(e) {
39887
39887
  }, G = {
39888
39888
  className: "variable",
39889
39889
  match: `\\$${Ls}+`
39890
- }, K = [
39890
+ }, $ = [
39891
39891
  C,
39892
39892
  B,
39893
39893
  G
39894
- ], $ = {
39894
+ ], K = {
39895
39895
  match: /(@|#(un)?)available/,
39896
39896
  scope: "keyword",
39897
39897
  starts: { contains: [
@@ -39913,7 +39913,7 @@ function PC(e) {
39913
39913
  scope: "meta",
39914
39914
  match: Qe(/@/, vn)
39915
39915
  }, me = [
39916
- $,
39916
+ K,
39917
39917
  de,
39918
39918
  Le
39919
39919
  ], ge = {
@@ -39928,7 +39928,7 @@ function PC(e) {
39928
39928
  {
39929
39929
  // Type identifier
39930
39930
  className: "type",
39931
- match: Ki,
39931
+ match: $i,
39932
39932
  relevance: 0
39933
39933
  },
39934
39934
  {
@@ -39943,7 +39943,7 @@ function PC(e) {
39943
39943
  },
39944
39944
  {
39945
39945
  // Protocol composition
39946
- match: Qe(/\s+&\s+/, Cr(Ki)),
39946
+ match: Qe(/\s+&\s+/, Cr($i)),
39947
39947
  relevance: 0
39948
39948
  }
39949
39949
  ]
@@ -39979,7 +39979,7 @@ function PC(e) {
39979
39979
  ...A,
39980
39980
  N,
39981
39981
  k,
39982
- ...K,
39982
+ ...$,
39983
39983
  ...me,
39984
39984
  ge
39985
39985
  ]
@@ -39991,7 +39991,7 @@ function PC(e) {
39991
39991
  ...a,
39992
39992
  ge
39993
39993
  ]
39994
- }, we = {
39994
+ }, ke = {
39995
39995
  begin: _t(
39996
39996
  Cr(Qe(vn, /\s*:/)),
39997
39997
  Cr(Qe(vn, /\s+/, vn, /\s*:/))
@@ -40013,7 +40013,7 @@ function PC(e) {
40013
40013
  end: /\)/,
40014
40014
  keywords: l,
40015
40015
  contains: [
40016
- we,
40016
+ ke,
40017
40017
  ...a,
40018
40018
  ...c,
40019
40019
  ...A,
@@ -40070,7 +40070,7 @@ function PC(e) {
40070
40070
  begin: [
40071
40071
  /precedencegroup/,
40072
40072
  /\s+/,
40073
- Ki
40073
+ $i
40074
40074
  ],
40075
40075
  className: {
40076
40076
  1: "keyword",
@@ -40095,7 +40095,7 @@ function PC(e) {
40095
40095
  3: "keyword",
40096
40096
  5: "title.function"
40097
40097
  }
40098
- }, Ce = {
40098
+ }, we = {
40099
40099
  match: [
40100
40100
  /class\b/,
40101
40101
  /\s+/,
@@ -40127,7 +40127,7 @@ function PC(e) {
40127
40127
  contains: [
40128
40128
  {
40129
40129
  scope: "title.class.inherited",
40130
- match: Ki
40130
+ match: $i
40131
40131
  },
40132
40132
  ...c
40133
40133
  ],
@@ -40144,7 +40144,7 @@ function PC(e) {
40144
40144
  ...A,
40145
40145
  N,
40146
40146
  k,
40147
- ...K
40147
+ ...$
40148
40148
  ];
40149
40149
  Je.contains = [
40150
40150
  ...re,
@@ -40166,7 +40166,7 @@ function PC(e) {
40166
40166
  mt,
40167
40167
  Tn,
40168
40168
  le,
40169
- Ce,
40169
+ we,
40170
40170
  ie,
40171
40171
  un,
40172
40172
  Z,
@@ -40182,22 +40182,22 @@ function PC(e) {
40182
40182
  ...A,
40183
40183
  N,
40184
40184
  k,
40185
- ...K,
40185
+ ...$,
40186
40186
  ...me,
40187
40187
  ge,
40188
40188
  lt
40189
40189
  ]
40190
40190
  };
40191
40191
  }
40192
- var qa = "[0-9](_*[0-9])*", $i = `\\.(${qa})`, Wi = "[0-9a-fA-F](_*[0-9a-fA-F])*", UC = {
40192
+ var qa = "[0-9](_*[0-9])*", Ki = `\\.(${qa})`, Wi = "[0-9a-fA-F](_*[0-9a-fA-F])*", UC = {
40193
40193
  className: "number",
40194
40194
  variants: [
40195
40195
  // DecimalFloatingPointLiteral
40196
40196
  // including ExponentPart
40197
- { begin: `(\\b(${qa})((${$i})|\\.)?|(${$i}))[eE][+-]?(${qa})[fFdD]?\\b` },
40197
+ { begin: `(\\b(${qa})((${Ki})|\\.)?|(${Ki}))[eE][+-]?(${qa})[fFdD]?\\b` },
40198
40198
  // excluding ExponentPart
40199
- { begin: `\\b(${qa})((${$i})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
40200
- { begin: `(${$i})[fFdD]?\\b` },
40199
+ { begin: `\\b(${qa})((${Ki})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
40200
+ { begin: `(${Ki})[fFdD]?\\b` },
40201
40201
  { begin: `\\b(${qa})[fFdD]\\b` },
40202
40202
  // HexadecimalFloatingPointLiteral
40203
40203
  { begin: `\\b0[xX]((${Wi})\\.?|(${Wi})?\\.(${Wi}))[pP][+-]?(${qa})[fFdD]?\\b` },
@@ -41840,10 +41840,10 @@ const jC = (e) => ({
41840
41840
  "tspan",
41841
41841
  "foreignObject",
41842
41842
  "clipPath"
41843
- ], KC = [
41843
+ ], $C = [
41844
41844
  ...QC,
41845
41845
  ...YC
41846
- ], $C = [
41846
+ ], KC = [
41847
41847
  "any-hover",
41848
41848
  "any-pointer",
41849
41849
  "aspect-ratio",
@@ -42587,7 +42587,7 @@ function VC(e) {
42587
42587
  keywords: {
42588
42588
  $pattern: /[a-z-]+/,
42589
42589
  keyword: r,
42590
- attribute: $C.join(" ")
42590
+ attribute: KC.join(" ")
42591
42591
  },
42592
42592
  contains: [
42593
42593
  {
@@ -42602,7 +42602,7 @@ function VC(e) {
42602
42602
  },
42603
42603
  {
42604
42604
  className: "selector-tag",
42605
- begin: "\\b(" + KC.join("|") + ")\\b"
42605
+ begin: "\\b(" + $C.join("|") + ")\\b"
42606
42606
  }
42607
42607
  ]
42608
42608
  };
@@ -43854,7 +43854,7 @@ Wt.prototype.property = "";
43854
43854
  Wt.prototype.spaceSeparated = !1;
43855
43855
  Wt.prototype.space = void 0;
43856
43856
  let oN = 0;
43857
- const be = Ha(), nt = Ha(), Mu = Ha(), J = Ha(), Ke = Ha(), er = Ha(), qt = Ha();
43857
+ const be = Ha(), nt = Ha(), Mu = Ha(), J = Ha(), $e = Ha(), er = Ha(), qt = Ha();
43858
43858
  function Ha() {
43859
43859
  return 2 ** ++oN;
43860
43860
  }
@@ -43866,8 +43866,8 @@ const Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43866
43866
  commaSeparated: er,
43867
43867
  number: J,
43868
43868
  overloadedBoolean: Mu,
43869
- spaceSeparated: Ke
43870
- }, Symbol.toStringTag, { value: "Module" })), Ko = (
43869
+ spaceSeparated: $e
43870
+ }, Symbol.toStringTag, { value: "Module" })), $o = (
43871
43871
  /** @type {ReadonlyArray<keyof typeof types>} */
43872
43872
  Object.keys(Su)
43873
43873
  );
@@ -43888,9 +43888,9 @@ class nc extends Wt {
43888
43888
  constructor(t, n, a, r) {
43889
43889
  let i = -1;
43890
43890
  if (super(t, n), hd(this, "space", r), typeof a == "number")
43891
- for (; ++i < Ko.length; ) {
43892
- const s = Ko[i];
43893
- hd(this, Ko[i], (a & Su[s]) === Su[s]);
43891
+ for (; ++i < $o.length; ) {
43892
+ const s = $o[i];
43893
+ hd(this, $o[i], (a & Su[s]) === Su[s]);
43894
43894
  }
43895
43895
  }
43896
43896
  }
@@ -43921,36 +43921,36 @@ const Rg = Er({
43921
43921
  ariaColCount: J,
43922
43922
  ariaColIndex: J,
43923
43923
  ariaColSpan: J,
43924
- ariaControls: Ke,
43924
+ ariaControls: $e,
43925
43925
  ariaCurrent: null,
43926
- ariaDescribedBy: Ke,
43926
+ ariaDescribedBy: $e,
43927
43927
  ariaDetails: null,
43928
43928
  ariaDisabled: nt,
43929
- ariaDropEffect: Ke,
43929
+ ariaDropEffect: $e,
43930
43930
  ariaErrorMessage: null,
43931
43931
  ariaExpanded: nt,
43932
- ariaFlowTo: Ke,
43932
+ ariaFlowTo: $e,
43933
43933
  ariaGrabbed: nt,
43934
43934
  ariaHasPopup: null,
43935
43935
  ariaHidden: nt,
43936
43936
  ariaInvalid: null,
43937
43937
  ariaKeyShortcuts: null,
43938
43938
  ariaLabel: null,
43939
- ariaLabelledBy: Ke,
43939
+ ariaLabelledBy: $e,
43940
43940
  ariaLevel: J,
43941
43941
  ariaLive: null,
43942
43942
  ariaModal: nt,
43943
43943
  ariaMultiLine: nt,
43944
43944
  ariaMultiSelectable: nt,
43945
43945
  ariaOrientation: null,
43946
- ariaOwns: Ke,
43946
+ ariaOwns: $e,
43947
43947
  ariaPlaceholder: null,
43948
43948
  ariaPosInSet: J,
43949
43949
  ariaPressed: nt,
43950
43950
  ariaReadOnly: nt,
43951
43951
  ariaRelevant: null,
43952
43952
  ariaRequired: nt,
43953
- ariaRoleDescription: Ke,
43953
+ ariaRoleDescription: $e,
43954
43954
  ariaRowCount: J,
43955
43955
  ariaRowIndex: J,
43956
43956
  ariaRowSpan: J,
@@ -43985,8 +43985,8 @@ const uN = Er({
43985
43985
  // Standard Properties.
43986
43986
  abbr: null,
43987
43987
  accept: er,
43988
- acceptCharset: Ke,
43989
- accessKey: Ke,
43988
+ acceptCharset: $e,
43989
+ accessKey: $e,
43990
43990
  action: null,
43991
43991
  allow: null,
43992
43992
  allowFullScreen: be,
@@ -43996,21 +43996,21 @@ const uN = Er({
43996
43996
  as: null,
43997
43997
  async: be,
43998
43998
  autoCapitalize: null,
43999
- autoComplete: Ke,
43999
+ autoComplete: $e,
44000
44000
  autoFocus: be,
44001
44001
  autoPlay: be,
44002
- blocking: Ke,
44002
+ blocking: $e,
44003
44003
  capture: null,
44004
44004
  charSet: null,
44005
44005
  checked: be,
44006
44006
  cite: null,
44007
- className: Ke,
44007
+ className: $e,
44008
44008
  cols: J,
44009
44009
  colSpan: null,
44010
44010
  content: null,
44011
44011
  contentEditable: nt,
44012
44012
  controls: be,
44013
- controlsList: Ke,
44013
+ controlsList: $e,
44014
44014
  coords: J | er,
44015
44015
  crossOrigin: null,
44016
44016
  data: null,
@@ -44032,14 +44032,14 @@ const uN = Er({
44032
44032
  formMethod: null,
44033
44033
  formNoValidate: be,
44034
44034
  formTarget: null,
44035
- headers: Ke,
44035
+ headers: $e,
44036
44036
  height: J,
44037
44037
  hidden: Mu,
44038
44038
  high: J,
44039
44039
  href: null,
44040
44040
  hrefLang: null,
44041
- htmlFor: Ke,
44042
- httpEquiv: Ke,
44041
+ htmlFor: $e,
44042
+ httpEquiv: $e,
44043
44043
  id: null,
44044
44044
  imageSizes: null,
44045
44045
  imageSrcSet: null,
@@ -44049,10 +44049,10 @@ const uN = Er({
44049
44049
  is: null,
44050
44050
  isMap: be,
44051
44051
  itemId: null,
44052
- itemProp: Ke,
44053
- itemRef: Ke,
44052
+ itemProp: $e,
44053
+ itemRef: $e,
44054
44054
  itemScope: be,
44055
- itemType: Ke,
44055
+ itemType: $e,
44056
44056
  kind: null,
44057
44057
  label: null,
44058
44058
  lang: null,
@@ -44165,7 +44165,7 @@ const uN = Er({
44165
44165
  open: be,
44166
44166
  optimum: J,
44167
44167
  pattern: null,
44168
- ping: Ke,
44168
+ ping: $e,
44169
44169
  placeholder: null,
44170
44170
  playsInline: be,
44171
44171
  popover: null,
@@ -44175,12 +44175,12 @@ const uN = Er({
44175
44175
  preload: null,
44176
44176
  readOnly: be,
44177
44177
  referrerPolicy: null,
44178
- rel: Ke,
44178
+ rel: $e,
44179
44179
  required: be,
44180
44180
  reversed: be,
44181
44181
  rows: J,
44182
44182
  rowSpan: J,
44183
- sandbox: Ke,
44183
+ sandbox: $e,
44184
44184
  scope: null,
44185
44185
  scoped: be,
44186
44186
  seamless: be,
@@ -44218,7 +44218,7 @@ const uN = Er({
44218
44218
  // Several. Use CSS `text-align` instead,
44219
44219
  aLink: null,
44220
44220
  // `<body>`. Use CSS `a:active {color}` instead
44221
- archive: Ke,
44221
+ archive: $e,
44222
44222
  // `<object>`. List of URIs to archives
44223
44223
  axis: null,
44224
44224
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -44533,7 +44533,7 @@ const uN = Er({
44533
44533
  by: null,
44534
44534
  calcMode: null,
44535
44535
  capHeight: J,
44536
- className: Ke,
44536
+ className: $e,
44537
44537
  clip: null,
44538
44538
  clipPath: null,
44539
44539
  clipPathUnits: null,
@@ -44768,7 +44768,7 @@ const uN = Er({
44768
44768
  patternTransform: null,
44769
44769
  patternUnits: null,
44770
44770
  phase: null,
44771
- ping: Ke,
44771
+ ping: $e,
44772
44772
  pitch: null,
44773
44773
  playbackOrder: null,
44774
44774
  pointerEvents: null,
@@ -45114,7 +45114,7 @@ const _N = [
45114
45114
  "yacute",
45115
45115
  "yen",
45116
45116
  "yuml"
45117
- ], $o = {
45117
+ ], Ko = {
45118
45118
  nbsp: " ",
45119
45119
  iexcl: "¡",
45120
45120
  cent: "¢",
@@ -45378,8 +45378,8 @@ const _N = [
45378
45378
  "times"
45379
45379
  ], jg = {}.hasOwnProperty, Du = {};
45380
45380
  let Gi;
45381
- for (Gi in $o)
45382
- jg.call($o, Gi) && (Du[$o[Gi]] = Gi);
45381
+ for (Gi in Ko)
45382
+ jg.call(Ko, Gi) && (Du[Ko[Gi]] = Gi);
45383
45383
  const MN = /[^\dA-Za-z]/;
45384
45384
  function SN(e, t, n, a) {
45385
45385
  const r = String.fromCharCode(e);
@@ -45463,13 +45463,13 @@ function Yg(e) {
45463
45463
  }
45464
45464
  }
45465
45465
  const jN = {}.hasOwnProperty;
45466
- function Kg(e) {
45466
+ function $g(e) {
45467
45467
  return t;
45468
45468
  function t(n, a, r) {
45469
45469
  return jN.call(e, n.tagName) && e[n.tagName](n, a, r);
45470
45470
  }
45471
45471
  }
45472
- const rc = Kg({
45472
+ const rc = $g({
45473
45473
  body: YN,
45474
45474
  caption: Wo,
45475
45475
  colgroup: Wo,
@@ -45477,10 +45477,10 @@ const rc = Kg({
45477
45477
  dt: WN,
45478
45478
  head: Wo,
45479
45479
  html: QN,
45480
- li: $N,
45480
+ li: KN,
45481
45481
  optgroup: qN,
45482
45482
  option: VN,
45483
- p: KN,
45483
+ p: $N,
45484
45484
  rp: yd,
45485
45485
  rt: yd,
45486
45486
  tbody: ZN,
@@ -45502,12 +45502,12 @@ function YN(e, t, n) {
45502
45502
  const a = ut(n, t);
45503
45503
  return !a || a.type !== "comment";
45504
45504
  }
45505
- function KN(e, t, n) {
45505
+ function $N(e, t, n) {
45506
45506
  const a = ut(n, t);
45507
45507
  return a ? a.type === "element" && (a.tagName === "address" || a.tagName === "article" || a.tagName === "aside" || a.tagName === "blockquote" || a.tagName === "details" || a.tagName === "div" || a.tagName === "dl" || a.tagName === "fieldset" || a.tagName === "figcaption" || a.tagName === "figure" || a.tagName === "footer" || a.tagName === "form" || a.tagName === "h1" || a.tagName === "h2" || a.tagName === "h3" || a.tagName === "h4" || a.tagName === "h5" || a.tagName === "h6" || a.tagName === "header" || a.tagName === "hgroup" || a.tagName === "hr" || a.tagName === "main" || a.tagName === "menu" || a.tagName === "nav" || a.tagName === "ol" || a.tagName === "p" || a.tagName === "pre" || a.tagName === "section" || a.tagName === "table" || a.tagName === "ul") : !n || // Confusing parent.
45508
45508
  !(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
45509
45509
  }
45510
- function $N(e, t, n) {
45510
+ function KN(e, t, n) {
45511
45511
  const a = ut(n, t);
45512
45512
  return !a || a.type === "element" && a.tagName === "li";
45513
45513
  }
@@ -45550,7 +45550,7 @@ function Ed(e, t, n) {
45550
45550
  const a = ut(n, t);
45551
45551
  return !a || a.type === "element" && (a.tagName === "td" || a.tagName === "th");
45552
45552
  }
45553
- const t_ = Kg({
45553
+ const t_ = $g({
45554
45554
  body: r_,
45555
45555
  colgroup: i_,
45556
45556
  head: a_,
@@ -45670,7 +45670,7 @@ function l_(e, t, n) {
45670
45670
  ) + s), u + (o && "=" + o));
45671
45671
  }
45672
45672
  const c_ = ["<", "&"];
45673
- function $g(e, t, n, a) {
45673
+ function Kg(e, t, n, a) {
45674
45674
  return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : tr(
45675
45675
  e.value,
45676
45676
  Object.assign({}, a.settings.characterReferences, {
@@ -45679,7 +45679,7 @@ function $g(e, t, n, a) {
45679
45679
  );
45680
45680
  }
45681
45681
  function f_(e, t, n, a) {
45682
- return a.settings.allowDangerousHtml ? e.value : $g(e, t, n, a);
45682
+ return a.settings.allowDangerousHtml ? e.value : Kg(e, t, n, a);
45683
45683
  }
45684
45684
  function d_(e, t, n, a) {
45685
45685
  return a.all(e);
@@ -45687,7 +45687,7 @@ function d_(e, t, n, a) {
45687
45687
  const h_ = mN("type", {
45688
45688
  invalid: g_,
45689
45689
  unknown: p_,
45690
- handlers: { comment: BN, doctype: PN, element: o_, raw: f_, root: d_, text: $g }
45690
+ handlers: { comment: BN, doctype: PN, element: o_, raw: f_, root: d_, text: Kg }
45691
45691
  });
45692
45692
  function g_(e) {
45693
45693
  throw new Error("Expected node, not `" + e + "`");
@@ -46772,7 +46772,7 @@ const P_ = /* @__PURE__ */ Ne({
46772
46772
  }, g = () => {
46773
46773
  a.value = !a.value;
46774
46774
  };
46775
- return (p, m) => (D(), ye(P($t), {
46775
+ return (p, m) => (D(), ye(P(Kt), {
46776
46776
  class: X(["block-action-wrapper", o.value]),
46777
46777
  id: p.node.attrs.id,
46778
46778
  onMouseover: m[1] || (m[1] = (A) => n.value = !0),
@@ -46953,7 +46953,7 @@ const z_ = H_.extend({
46953
46953
  }, s = (o) => {
46954
46954
  t.updateAttributes({ color: o });
46955
46955
  };
46956
- return (o, u) => (D(), ye(P($t), {
46956
+ return (o, u) => (D(), ye(P(Kt), {
46957
46957
  class: X(["color-block-wrapper", `color-${e.node.attrs.color}`]),
46958
46958
  onMouseenter: u[3] || (u[3] = (l) => n.value = !0),
46959
46959
  onMouseleave: r
@@ -46986,7 +46986,7 @@ const z_ = H_.extend({
46986
46986
  _: 1
46987
46987
  }, 8, ["class"]));
46988
46988
  }
46989
- }), K_ = /* @__PURE__ */ Ve(Y_, [["__scopeId", "data-v-b451a37e"]]);
46989
+ }), $_ = /* @__PURE__ */ Ve(Y_, [["__scopeId", "data-v-b451a37e"]]);
46990
46990
  function oc() {
46991
46991
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
46992
46992
  }
@@ -47002,14 +47002,14 @@ function xe(e, t = "") {
47002
47002
  }, getRegex: () => new RegExp(n, t) };
47003
47003
  return a;
47004
47004
  }
47005
- var $_ = (() => {
47005
+ var K_ = (() => {
47006
47006
  try {
47007
47007
  return !!new RegExp("(?<=1)(?<!1)");
47008
47008
  } catch {
47009
47009
  return !1;
47010
47010
  }
47011
47011
  })(), Mt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}>`) }, W_ = /^(?:[ \t]*(?:\n|$))+/, G_ = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, q_ = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ci = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, V_ = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, uc = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Xg = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ep = xe(Xg).replace(/bull/g, uc).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), J_ = xe(Xg).replace(/bull/g, uc).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), lc = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Z_ = /^[^\n]+/, cc = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, X_ = xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", cc).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ex = xe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, uc).getRegex(), go = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fc = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, tx = xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", fc).replace("tag", go).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), tp = xe(lc).replace("hr", Ci).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", go).getRegex(), nx = xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", tp).getRegex(), dc = { blockquote: nx, code: G_, def: X_, fences: q_, heading: V_, hr: Ci, html: tx, lheading: ep, list: ex, newline: W_, paragraph: tp, table: Ia, text: Z_ }, wd = xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ci).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", go).getRegex(), ax = { ...dc, lheading: J_, table: wd, paragraph: xe(lc).replace("hr", Ci).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", wd).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", go).getRegex() }, rx = { ...dc, html: xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fc).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Ia, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: xe(lc).replace("hr", Ci).replace("heading", ` *#{1,6} *[^
47012
- ]`).replace("lheading", ep).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ix = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sx = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, np = /^( {2,}|\\)\n(?!\s*$)/, ox = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, po = /[\p{P}\p{S}]/u, hc = /[\s\p{P}\p{S}]/u, ap = /[^\s\p{P}\p{S}]/u, ux = xe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, hc).getRegex(), rp = /(?!~)[\p{P}\p{S}]/u, lx = /(?!~)[\s\p{P}\p{S}]/u, cx = /(?:[^\s\p{P}\p{S}]|~)/u, ip = /(?![*_])[\p{P}\p{S}]/u, fx = /(?![*_])[\s\p{P}\p{S}]/u, dx = /(?:[^\s\p{P}\p{S}]|[*_])/u, hx = xe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", $_ ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), sp = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, gx = xe(sp, "u").replace(/punct/g, po).getRegex(), px = xe(sp, "u").replace(/punct/g, rp).getRegex(), op = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mx = xe(op, "gu").replace(/notPunctSpace/g, ap).replace(/punctSpace/g, hc).replace(/punct/g, po).getRegex(), bx = xe(op, "gu").replace(/notPunctSpace/g, cx).replace(/punctSpace/g, lx).replace(/punct/g, rp).getRegex(), Ax = xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ap).replace(/punctSpace/g, hc).replace(/punct/g, po).getRegex(), yx = xe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ip).getRegex(), Ex = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Tx = xe(Ex, "gu").replace(/notPunctSpace/g, dx).replace(/punctSpace/g, fx).replace(/punct/g, ip).getRegex(), vx = xe(/\\(punct)/, "gu").replace(/punct/g, po).getRegex(), Ix = xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), kx = xe(fc).replace("(?:-->|$)", "-->").getRegex(), wx = xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", kx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bs = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Cx = xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Bs).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), up = xe(/^!?\[(label)\]\[(ref)\]/).replace("label", Bs).replace("ref", cc).getRegex(), lp = xe(/^!?\[(ref)\](?:\[\])?/).replace("ref", cc).getRegex(), Nx = xe("reflink|nolink(?!\\()", "g").replace("reflink", up).replace("nolink", lp).getRegex(), Cd = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, gc = { _backpedal: Ia, anyPunctuation: vx, autolink: Ix, blockSkip: hx, br: np, code: sx, del: Ia, delLDelim: Ia, delRDelim: Ia, emStrongLDelim: gx, emStrongRDelimAst: mx, emStrongRDelimUnd: Ax, escape: ix, link: Cx, nolink: lp, punctuation: ux, reflink: up, reflinkSearch: Nx, tag: wx, text: ox, url: Ia }, _x = { ...gc, link: xe(/^!?\[(label)\]\((.*?)\)/).replace("label", Bs).getRegex(), reflink: xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Bs).getRegex() }, Ru = { ...gc, emStrongRDelimAst: bx, emStrongLDelim: px, delLDelim: yx, delRDelim: Tx, url: xe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cd).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: xe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cd).getRegex() }, xx = { ...Ru, br: xe(np).replace("{2,}", "*").getRegex(), text: xe(Ru.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Vi = { normal: dc, gfm: ax, pedantic: rx }, Nr = { normal: gc, gfm: Ru, breaks: xx, pedantic: _x }, Mx = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Nd = (e) => Mx[e];
47012
+ ]`).replace("lheading", ep).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ix = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sx = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, np = /^( {2,}|\\)\n(?!\s*$)/, ox = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, po = /[\p{P}\p{S}]/u, hc = /[\s\p{P}\p{S}]/u, ap = /[^\s\p{P}\p{S}]/u, ux = xe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, hc).getRegex(), rp = /(?!~)[\p{P}\p{S}]/u, lx = /(?!~)[\s\p{P}\p{S}]/u, cx = /(?:[^\s\p{P}\p{S}]|~)/u, ip = /(?![*_])[\p{P}\p{S}]/u, fx = /(?![*_])[\s\p{P}\p{S}]/u, dx = /(?:[^\s\p{P}\p{S}]|[*_])/u, hx = xe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", K_ ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), sp = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, gx = xe(sp, "u").replace(/punct/g, po).getRegex(), px = xe(sp, "u").replace(/punct/g, rp).getRegex(), op = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mx = xe(op, "gu").replace(/notPunctSpace/g, ap).replace(/punctSpace/g, hc).replace(/punct/g, po).getRegex(), bx = xe(op, "gu").replace(/notPunctSpace/g, cx).replace(/punctSpace/g, lx).replace(/punct/g, rp).getRegex(), Ax = xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ap).replace(/punctSpace/g, hc).replace(/punct/g, po).getRegex(), yx = xe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ip).getRegex(), Ex = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Tx = xe(Ex, "gu").replace(/notPunctSpace/g, dx).replace(/punctSpace/g, fx).replace(/punct/g, ip).getRegex(), vx = xe(/\\(punct)/, "gu").replace(/punct/g, po).getRegex(), Ix = xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), kx = xe(fc).replace("(?:-->|$)", "-->").getRegex(), wx = xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", kx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bs = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Cx = xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Bs).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), up = xe(/^!?\[(label)\]\[(ref)\]/).replace("label", Bs).replace("ref", cc).getRegex(), lp = xe(/^!?\[(ref)\](?:\[\])?/).replace("ref", cc).getRegex(), Nx = xe("reflink|nolink(?!\\()", "g").replace("reflink", up).replace("nolink", lp).getRegex(), Cd = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, gc = { _backpedal: Ia, anyPunctuation: vx, autolink: Ix, blockSkip: hx, br: np, code: sx, del: Ia, delLDelim: Ia, delRDelim: Ia, emStrongLDelim: gx, emStrongRDelimAst: mx, emStrongRDelimUnd: Ax, escape: ix, link: Cx, nolink: lp, punctuation: ux, reflink: up, reflinkSearch: Nx, tag: wx, text: ox, url: Ia }, _x = { ...gc, link: xe(/^!?\[(label)\]\((.*?)\)/).replace("label", Bs).getRegex(), reflink: xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Bs).getRegex() }, Ru = { ...gc, emStrongRDelimAst: bx, emStrongLDelim: px, delLDelim: yx, delRDelim: Tx, url: xe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cd).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: xe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cd).getRegex() }, xx = { ...Ru, br: xe(np).replace("{2,}", "*").getRegex(), text: xe(Ru.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Vi = { normal: dc, gfm: ax, pedantic: rx }, Nr = { normal: gc, gfm: Ru, breaks: xx, pedantic: _x }, Mx = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Nd = (e) => Mx[e];
47013
47013
  function In(e, t) {
47014
47014
  if (t) {
47015
47015
  if (Mt.escapeTest.test(e)) return e.replace(Mt.escapeReplace, Nd);
@@ -48087,35 +48087,35 @@ Please report this to https://github.com/markedjs/marked.`, e) {
48087
48087
  };
48088
48088
  }
48089
48089
  }, Ra = new Lx();
48090
- function ke(e, t) {
48090
+ function Ie(e, t) {
48091
48091
  return Ra.parse(e, t);
48092
48092
  }
48093
- ke.options = ke.setOptions = function(e) {
48094
- return Ra.setOptions(e), ke.defaults = Ra.defaults, Zg(ke.defaults), ke;
48093
+ Ie.options = Ie.setOptions = function(e) {
48094
+ return Ra.setOptions(e), Ie.defaults = Ra.defaults, Zg(Ie.defaults), Ie;
48095
48095
  };
48096
- ke.getDefaults = oc;
48097
- ke.defaults = za;
48098
- ke.use = function(...e) {
48099
- return Ra.use(...e), ke.defaults = Ra.defaults, Zg(ke.defaults), ke;
48096
+ Ie.getDefaults = oc;
48097
+ Ie.defaults = za;
48098
+ Ie.use = function(...e) {
48099
+ return Ra.use(...e), Ie.defaults = Ra.defaults, Zg(Ie.defaults), Ie;
48100
48100
  };
48101
- ke.walkTokens = function(e, t) {
48101
+ Ie.walkTokens = function(e, t) {
48102
48102
  return Ra.walkTokens(e, t);
48103
48103
  };
48104
- ke.parseInline = Ra.parseInline;
48105
- ke.Parser = cn;
48106
- ke.parser = cn.parse;
48107
- ke.Renderer = Us;
48108
- ke.TextRenderer = pc;
48109
- ke.Lexer = ln;
48110
- ke.lexer = ln.lex;
48111
- ke.Tokenizer = Ps;
48112
- ke.Hooks = Mr;
48113
- ke.parse = ke;
48114
- ke.options;
48115
- ke.setOptions;
48116
- ke.use;
48117
- ke.walkTokens;
48118
- ke.parseInline;
48104
+ Ie.parseInline = Ra.parseInline;
48105
+ Ie.Parser = cn;
48106
+ Ie.parser = cn.parse;
48107
+ Ie.Renderer = Us;
48108
+ Ie.TextRenderer = pc;
48109
+ Ie.Lexer = ln;
48110
+ Ie.lexer = ln.lex;
48111
+ Ie.Tokenizer = Ps;
48112
+ Ie.Hooks = Mr;
48113
+ Ie.parse = Ie;
48114
+ Ie.options;
48115
+ Ie.setOptions;
48116
+ Ie.use;
48117
+ Ie.walkTokens;
48118
+ Ie.parseInline;
48119
48119
  cn.parse;
48120
48120
  ln.lex;
48121
48121
  const hr = [
@@ -48149,7 +48149,7 @@ const hr = [
48149
48149
  // 导出为 HTML 标签,内容也转换为 HTML
48150
48150
  renderMarkdown(e, t) {
48151
48151
  var i;
48152
- const n = ((i = e.attrs) == null ? void 0 : i.color) || "cyan", a = t.renderChildren(e.content || []), r = ke.parse(a.trim());
48152
+ const n = ((i = e.attrs) == null ? void 0 : i.color) || "cyan", a = t.renderChildren(e.content || []), r = Ie.parse(a.trim());
48153
48153
  return `<div data-type="colorBlock" data-color="${n}">${r}</div>
48154
48154
 
48155
48155
  `;
@@ -48190,7 +48190,7 @@ const hr = [
48190
48190
  };
48191
48191
  },
48192
48192
  addNodeView() {
48193
- return Dt(K_);
48193
+ return Dt($_);
48194
48194
  },
48195
48195
  addKeyboardShortcuts() {
48196
48196
  return {
@@ -48235,7 +48235,7 @@ const hr = [
48235
48235
  key: 1,
48236
48236
  class: "link-editor-popup",
48237
48237
  contenteditable: "false"
48238
- }, Kx = { class: "editor-field" }, $x = { class: "editor-field" }, Wx = { class: "editor-actions" }, Gx = ["disabled"], qx = /* @__PURE__ */ Ne({
48238
+ }, $x = { class: "editor-field" }, Kx = { class: "editor-field" }, Wx = { class: "editor-actions" }, Gx = ["disabled"], qx = /* @__PURE__ */ Ne({
48239
48239
  __name: "LinkCardBlockComponent",
48240
48240
  props: {
48241
48241
  node: {},
@@ -48246,7 +48246,7 @@ const hr = [
48246
48246
  },
48247
48247
  setup(e) {
48248
48248
  const t = e, n = Q(!t.node.attrs.url), a = Q(t.node.attrs.url || ""), r = Q(t.node.attrs.title || ""), i = Q(null);
48249
- Kt(() => {
48249
+ $t(() => {
48250
48250
  t.node.attrs.url || yt(() => {
48251
48251
  var f;
48252
48252
  (f = i.value) == null || f.focus();
@@ -48280,7 +48280,7 @@ const hr = [
48280
48280
  }, c = () => {
48281
48281
  t.node.attrs.url ? n.value = !1 : t.deleteNode();
48282
48282
  };
48283
- return (f, h) => (D(), ye(P($t), { class: "link-card-block-wrapper" }, {
48283
+ return (f, h) => (D(), ye(P(Kt), { class: "link-card-block-wrapper" }, {
48284
48284
  default: Tt(() => [
48285
48285
  b("a", {
48286
48286
  class: "link-card",
@@ -48332,7 +48332,7 @@ const hr = [
48332
48332
  ])
48333
48333
  ])) : ae("", !0),
48334
48334
  n.value ? (D(), F("div", Yx, [
48335
- b("div", Kx, [
48335
+ b("div", $x, [
48336
48336
  h[6] || (h[6] = b("label", null, "链接地址", -1)),
48337
48337
  ot(b("input", {
48338
48338
  ref_key: "urlInputRef",
@@ -48348,7 +48348,7 @@ const hr = [
48348
48348
  [Yt, a.value]
48349
48349
  ])
48350
48350
  ]),
48351
- b("div", $x, [
48351
+ b("div", Kx, [
48352
48352
  h[7] || (h[7] = b("label", null, "显示文本", -1)),
48353
48353
  ot(b("input", {
48354
48354
  "onUpdate:modelValue": h[4] || (h[4] = (g) => r.value = g),
@@ -48502,7 +48502,7 @@ const hr = [
48502
48502
  },
48503
48503
  setup(e) {
48504
48504
  const t = e, n = Q(!t.node.attrs.url), a = Q(t.node.attrs.url || ""), r = Q(t.node.attrs.title || ""), i = Q(null);
48505
- Kt(() => {
48505
+ $t(() => {
48506
48506
  t.node.attrs.url || yt(() => {
48507
48507
  var f;
48508
48508
  (f = i.value) == null || f.focus();
@@ -48522,7 +48522,7 @@ const hr = [
48522
48522
  return;
48523
48523
  }
48524
48524
  const y = A.start() - 1, I = A.end() + 1, N = A.end(), T = p.doc.slice(A.start(), g).content, w = p.doc.slice(g + 1, N).content, M = p.schema.nodes.paragraph.create(null, T), L = p.schema.nodes.linkCardBlock.create({ url: f, title: h }), H = p.schema.nodes.paragraph.create(null, w), k = [];
48525
- T.size > 0 && k.push(M), k.push(L), w.size > 0 && k.push(H), m.replaceWith(y, I, ve.from(k)), t.editor.view.dispatch(m), t.editor.commands.focus();
48525
+ T.size > 0 && k.push(M), k.push(L), w.size > 0 && k.push(H), m.replaceWith(y, I, k), t.editor.view.dispatch(m), t.editor.commands.focus();
48526
48526
  }, u = () => {
48527
48527
  a.value = t.node.attrs.url || "", r.value = t.node.attrs.title || "", n.value = !0, yt(() => {
48528
48528
  var f, h;
@@ -48535,7 +48535,7 @@ const hr = [
48535
48535
  }, c = () => {
48536
48536
  t.node.attrs.url ? n.value = !1 : t.deleteNode();
48537
48537
  };
48538
- return (f, h) => (D(), ye(P($t), {
48538
+ return (f, h) => (D(), ye(P(Kt), {
48539
48539
  class: "link-inline-wrapper",
48540
48540
  as: "span"
48541
48541
  }, {
@@ -48625,7 +48625,7 @@ const hr = [
48625
48625
  _: 1
48626
48626
  }));
48627
48627
  }
48628
- }), sM = /* @__PURE__ */ Ve(iM, [["__scopeId", "data-v-451eca35"]]), oM = Ot.create({
48628
+ }), sM = /* @__PURE__ */ Ve(iM, [["__scopeId", "data-v-538b50f0"]]), oM = Ot.create({
48629
48629
  name: "linkCardInline",
48630
48630
  group: "inline",
48631
48631
  inline: !0,
@@ -48654,6 +48654,10 @@ const hr = [
48654
48654
  renderHTML({ HTMLAttributes: e }) {
48655
48655
  return ["span", St(e, { "data-type": "link-card-inline" })];
48656
48656
  },
48657
+ renderMarkdown(e) {
48658
+ const { url: t, title: n } = e.attrs || {}, a = t ? t.replace(/"/g, "&quot;") : "", r = n ? n.replace(/"/g, "&quot;") : "";
48659
+ return `<span data-type="link-card-inline" data-url="${a}" data-title="${r}"></span>`;
48660
+ },
48657
48661
  addCommands() {
48658
48662
  return {
48659
48663
  setLinkCardInline: (e) => ({ commands: t }) => t.insertContent({
@@ -48745,7 +48749,7 @@ const hr = [
48745
48749
  }, f = () => {
48746
48750
  t.node.attrs.url ? n.value = !1 : t.deleteNode();
48747
48751
  };
48748
- return (h, g) => (D(), ye(P($t), { class: "video-embed-block-wrapper" }, {
48752
+ return (h, g) => (D(), ye(P(Kt), { class: "video-embed-block-wrapper" }, {
48749
48753
  default: Tt(() => [
48750
48754
  i.value && !n.value ? (D(), F("div", uM, [
48751
48755
  b("div", {
@@ -49023,7 +49027,7 @@ const TM = Ot.create({
49023
49027
  };
49024
49028
  return it(n, (I) => {
49025
49029
  I ? document.addEventListener("keydown", y) : document.removeEventListener("keydown", y);
49026
- }), (I, N) => (D(), ye(P($t), { class: "attachment-block-wrapper" }, {
49030
+ }), (I, N) => (D(), ye(P(Kt), { class: "attachment-block-wrapper" }, {
49027
49031
  default: Tt(() => [
49028
49032
  b("div", vM, [
49029
49033
  b("div", {
@@ -49217,7 +49221,7 @@ const TM = Ot.create({
49217
49221
  addNodeView() {
49218
49222
  return Dt(jM);
49219
49223
  }
49220
- }), YM = { class: "slash-menu-wrapper" }, KM = /* @__PURE__ */ Ne({
49224
+ }), YM = { class: "slash-menu-wrapper" }, $M = /* @__PURE__ */ Ne({
49221
49225
  __name: "SlashCommandList",
49222
49226
  props: {
49223
49227
  command: { type: Function },
@@ -49245,7 +49249,7 @@ const TM = Ot.create({
49245
49249
  }, null, 512)
49246
49250
  ]));
49247
49251
  }
49248
- }), $M = /* @__PURE__ */ Ve(KM, [["__scopeId", "data-v-3e53f11f"]]), WM = (e, t, n) => {
49252
+ }), KM = /* @__PURE__ */ Ve($M, [["__scopeId", "data-v-3e53f11f"]]), WM = (e, t, n) => {
49249
49253
  switch (n) {
49250
49254
  case "paragraph":
49251
49255
  e.chain().focus().deleteRange(t).setParagraph().run();
@@ -49335,7 +49339,7 @@ const TM = Ot.create({
49335
49339
  let e, t;
49336
49340
  return {
49337
49341
  onStart: (n) => {
49338
- n.editor.isEditable && (e = new Fu($M, {
49342
+ n.editor.isEditable && (e = new Fu(KM, {
49339
49343
  props: {
49340
49344
  editor: n.editor,
49341
49345
  range: n.range,
@@ -49390,7 +49394,7 @@ const TM = Ot.create({
49390
49394
  __name: "StreamingPreviewComponent",
49391
49395
  props: gr,
49392
49396
  setup(e) {
49393
- ke.use({
49397
+ Ie.use({
49394
49398
  gfm: !0,
49395
49399
  breaks: !1
49396
49400
  });
@@ -49407,7 +49411,7 @@ const TM = Ot.create({
49407
49411
  if (!n.value)
49408
49412
  return "";
49409
49413
  try {
49410
- let f = ke.parse(n.value);
49414
+ let f = Ie.parse(n.value);
49411
49415
  f = f.replace(/<li>\s*\[\s*\]\s*/g, '<li data-type="taskItem" data-checked="false">'), f = f.replace(/<li>\s*\[x\]\s*/gi, '<li data-type="taskItem" data-checked="true">'), f.includes('data-type="taskItem"') && (f = f.replace(/<ul>/g, '<ul data-type="taskList">'));
49412
49416
  const h = () => {
49413
49417
  var p, m;
@@ -49452,7 +49456,7 @@ const TM = Ot.create({
49452
49456
  try {
49453
49457
  let h = n.value;
49454
49458
  h = h.replace(/^(\s*)-\s*\[\s*\]\s*/gm, "$1- ☐ "), h = h.replace(/^(\s*)-\s*\[x\]\s*/gim, "$1- ☑ ");
49455
- let g = ke.parse(h);
49459
+ let g = Ie.parse(h);
49456
49460
  return g = g.replace(/<li>☐\s*/g, '<li data-type="taskItem" data-checked="false">'), g = g.replace(/<li>☑\s*/g, '<li data-type="taskItem" data-checked="true">'), g.includes('data-type="taskItem"') && (g = g.replace(/<ul>/g, '<ul data-type="taskList">')), g;
49457
49461
  } catch (h) {
49458
49462
  return console.error("[StreamingPreview] 降级方案也失败了:", h), `<p>${n.value.replace(/\n/g, "<br>")}</p>`;
@@ -49465,7 +49469,7 @@ const TM = Ot.create({
49465
49469
  }, c = () => {
49466
49470
  t.editor && t.editor.commands.removeStreamingPreview();
49467
49471
  };
49468
- return (f, h) => (D(), ye(P($t), {
49472
+ return (f, h) => (D(), ye(P(Kt), {
49469
49473
  class: X(["streaming-preview-wrapper", {
49470
49474
  "is-streaming": s.value,
49471
49475
  "is-thinking": o.value,
@@ -49507,7 +49511,7 @@ const TM = Ot.create({
49507
49511
  }, 8, ["class"]));
49508
49512
  }
49509
49513
  }), eS = /* @__PURE__ */ Ve(XM, [["__scopeId", "data-v-b86f4e84"]]);
49510
- ke.use({
49514
+ Ie.use({
49511
49515
  gfm: !0,
49512
49516
  breaks: !1,
49513
49517
  // 添加更多选项以支持任务列表
@@ -49521,7 +49525,7 @@ function tS(e) {
49521
49525
  const i = hr.find((o) => o.name === a);
49522
49526
  if (!i)
49523
49527
  return n;
49524
- const s = ke.parse(r.trim());
49528
+ const s = Ie.parse(r.trim());
49525
49529
  return `<div data-type="color-block" data-color="${a}" style="background-color: ${i.bg}; border-radius: 8px; padding: 16px 20px; margin: 12px 0;">${s}</div>
49526
49530
  `;
49527
49531
  });
@@ -49611,7 +49615,7 @@ const rS = Ot.create({
49611
49615
  i = tS(i);
49612
49616
  let s;
49613
49617
  try {
49614
- s = ke.parse(i);
49618
+ s = Ie.parse(i);
49615
49619
  } catch (f) {
49616
49620
  console.warn("[finishStreamingPreview] marked.parse 失败,保留原始 Markdown:", f.message), s = i;
49617
49621
  }
@@ -49737,7 +49741,7 @@ const rS = Ot.create({
49737
49741
  var f, h;
49738
49742
  return ((h = (f = t.node) == null ? void 0 : f.attrs) == null ? void 0 : h.selectedText) || "";
49739
49743
  });
49740
- Kt(async () => {
49744
+ $t(async () => {
49741
49745
  var f;
49742
49746
  await yt(), s.value && (a.value = s.value, await yt(), o()), (f = n.value) == null || f.focus(), n.value && s.value && (n.value.selectionStart = n.value.selectionEnd = a.value.length);
49743
49747
  });
@@ -49756,7 +49760,7 @@ const rS = Ot.create({
49756
49760
  f.preventDefault(), u();
49757
49761
  } else f.key === "Escape" && (f.preventDefault(), l());
49758
49762
  };
49759
- return (f, h) => (D(), ye(P($t), {
49763
+ return (f, h) => (D(), ye(P(Kt), {
49760
49764
  class: "ai-prompt-wrapper",
49761
49765
  contenteditable: "false"
49762
49766
  }, {
@@ -49966,7 +49970,7 @@ const rS = Ot.create({
49966
49970
  ), c = (f = l == null ? void 0 : l.options) == null ? void 0 : f.getPendingImage;
49967
49971
  return c ? c(t.node.attrs.prompt) : null;
49968
49972
  };
49969
- Kt(() => {
49973
+ $t(() => {
49970
49974
  if (t.node.attrs.status === "generating") {
49971
49975
  const l = o();
49972
49976
  l && l.src ? (t.updateAttributes({
@@ -50006,7 +50010,7 @@ const rS = Ot.create({
50006
50010
  clearInterval(l);
50007
50011
  }, 3e4);
50008
50012
  };
50009
- return (l, c) => (D(), ye(P($t), {
50013
+ return (l, c) => (D(), ye(P(Kt), {
50010
50014
  class: X(["ai-image-loader-wrapper", {
50011
50015
  "is-generating": e.node.attrs.status === "generating",
50012
50016
  "is-success": e.node.attrs.status === "success",
@@ -50200,7 +50204,7 @@ const xS = Ot.create({
50200
50204
  props: gr,
50201
50205
  setup(e) {
50202
50206
  const t = e, n = Q(null), a = Q("");
50203
- Kt(async () => {
50207
+ $t(async () => {
50204
50208
  var u, l, c;
50205
50209
  await yt(), (l = (u = t.node) == null ? void 0 : u.attrs) != null && l.prompt && (a.value = t.node.attrs.prompt, await yt(), r()), (c = n.value) == null || c.focus(), n.value && a.value && (n.value.selectionStart = n.value.selectionEnd = a.value.length);
50206
50210
  });
@@ -50219,7 +50223,7 @@ const xS = Ot.create({
50219
50223
  u.preventDefault(), i();
50220
50224
  } else u.key === "Escape" && (u.preventDefault(), s());
50221
50225
  };
50222
- return (u, l) => (D(), ye(P($t), {
50226
+ return (u, l) => (D(), ye(P(Kt), {
50223
50227
  class: "ai-image-prompt-wrapper",
50224
50228
  contenteditable: "false"
50225
50229
  }, {
@@ -50581,7 +50585,7 @@ const xS = Ot.create({
50581
50585
  }), QS = /* @__PURE__ */ Ve(jS, [["__scopeId", "data-v-2052d464"]]), YS = (e, t, n, a) => {
50582
50586
  const r = a ? a(n) : n;
50583
50587
  e.chain().focus().deleteRange(t).insertContent(r).run();
50584
- }, KS = pr.create({
50588
+ }, $S = pr.create({
50585
50589
  name: "emojiPicker",
50586
50590
  addOptions() {
50587
50591
  return {
@@ -50644,7 +50648,7 @@ const xS = Ot.create({
50644
50648
  })
50645
50649
  ];
50646
50650
  }
50647
- }), $S = { class: "mention-icon" }, WS = { class: "mention-label" }, GS = /* @__PURE__ */ Ne({
50651
+ }), KS = { class: "mention-icon" }, WS = { class: "mention-label" }, GS = /* @__PURE__ */ Ne({
50648
50652
  __name: "MentionNodeComponent",
50649
50653
  props: gr,
50650
50654
  setup(e) {
@@ -50667,7 +50671,7 @@ const xS = Ot.create({
50667
50671
  }, s = () => {
50668
50672
  n && (clearTimeout(n), n = null), t.editor && t.editor.emit("mention-hover-end");
50669
50673
  };
50670
- return (o, u) => (D(), ye(P($t), {
50674
+ return (o, u) => (D(), ye(P(Kt), {
50671
50675
  as: "span",
50672
50676
  class: "mention-node-wrapper"
50673
50677
  }, {
@@ -50678,7 +50682,7 @@ const xS = Ot.create({
50678
50682
  onMouseenter: i,
50679
50683
  onMouseleave: s
50680
50684
  }, [
50681
- b("span", $S, [
50685
+ b("span", KS, [
50682
50686
  o.node.attrs.type === "document" ? (D(), ye(P(Zr), {
50683
50687
  key: 0,
50684
50688
  size: 14
@@ -50773,7 +50777,7 @@ const xS = Ot.create({
50773
50777
  { key: "flash", label: "闪念" },
50774
50778
  { key: "knowledgeBase", label: "知识库" }
50775
50779
  ], s = e, o = Q(), u = Q(), l = Q(""), c = Q("document"), f = Q([]), h = Q(-1), g = Q(!1), p = Q(!1), m = Q(1), A = Q(!1), y = te(() => i.filter((x) => s.items[x.key]));
50776
- Kt(() => {
50780
+ $t(() => {
50777
50781
  y.value.length > 0 && (c.value = y.value[0].key), w(1), yt(() => {
50778
50782
  var x;
50779
50783
  (x = o.value) == null || x.focus();
@@ -51003,11 +51007,11 @@ const xS = Ot.create({
51003
51007
  }, u = (l) => {
51004
51008
  l.key === "Escape" && a.value && s();
51005
51009
  };
51006
- return Kt(() => {
51010
+ return $t(() => {
51007
51011
  document.addEventListener("keydown", u);
51008
51012
  }), Fs(() => {
51009
51013
  document.removeEventListener("keydown", u), document.body.style.overflow = "";
51010
- }), (l, c) => (D(), ye(P($t), {
51014
+ }), (l, c) => (D(), ye(P(Kt), {
51011
51015
  class: X(["image-upload-wrapper", { "is-uploading": e.node.attrs.uploading }])
51012
51016
  }, {
51013
51017
  default: Tt(() => [
@@ -51208,7 +51212,7 @@ const xS = Ot.create({
51208
51212
  },
51209
51213
  setup(e) {
51210
51214
  const t = Q(null);
51211
- return (n, a) => (D(), ye(P($t), {
51215
+ return (n, a) => (D(), ye(P(Kt), {
51212
51216
  class: X(["video-upload-wrapper", { "is-uploading": e.node.attrs.uploading }])
51213
51217
  }, {
51214
51218
  default: Tt(() => [
@@ -51528,8 +51532,8 @@ function CD(e) {
51528
51532
  // ============================================
51529
51533
  // 列表和任务
51530
51534
  // ============================================
51531
- Ku,
51532
- $u.configure({
51535
+ $u,
51536
+ Ku.configure({
51533
51537
  nested: !0
51534
51538
  }),
51535
51539
  // ============================================
@@ -51559,7 +51563,7 @@ function CD(e) {
51559
51563
  // ============================================
51560
51564
  // Emoji
51561
51565
  // ============================================
51562
- KS
51566
+ $S
51563
51567
  ];
51564
51568
  return e.onAICompletion && n.push(
51565
51569
  US.configure({
@@ -51824,7 +51828,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51824
51828
  const le = l.value.get(Z);
51825
51829
  return le ? le.status === "success" ? { src: le.src, error: null } : le.status === "error" ? { src: "", error: le.error } : { src: "", error: null, generating: !0 } : null;
51826
51830
  };
51827
- Ka("editorTheme", mo(a, "theme")), Ka("editorBacklinks", mo(a, "backlinks")), Ka("editorOnBacklinkClick", (Z) => r("backlink-click", Z)), Ka("editorOnBacklinkMenuClick", () => r("backlink-menu-click")), Ka("editorTemplateConfig", mo(a, "templateConfig"));
51831
+ $a("editorTheme", mo(a, "theme")), $a("editorBacklinks", mo(a, "backlinks")), $a("editorOnBacklinkClick", (Z) => r("backlink-click", Z)), $a("editorOnBacklinkMenuClick", () => r("backlink-menu-click")), $a("editorTemplateConfig", mo(a, "templateConfig"));
51828
51832
  const { getExtensions: f } = CD({
51829
51833
  placeholder: a.placeholder,
51830
51834
  image: a.image,
@@ -51836,7 +51840,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51836
51840
  aiEnabled: a.aiEnabled,
51837
51841
  mentionConfig: a.mentionConfig,
51838
51842
  getPendingImage: c
51839
- }), h = async (Z, le, Ce) => {
51843
+ }), h = async (Z, le, we) => {
51840
51844
  if (!a.image || a.image === !1) {
51841
51845
  console.warn("图片上传未启用");
51842
51846
  return;
@@ -51859,8 +51863,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51859
51863
  if (!ie.uploader) {
51860
51864
  const re = new FileReader();
51861
51865
  re.onload = (Ue) => {
51862
- var $e;
51863
- const Me = ($e = Ue.target) == null ? void 0 : $e.result;
51866
+ var Ke;
51867
+ const Me = (Ke = Ue.target) == null ? void 0 : Ke.result;
51864
51868
  y.value && Me && y.value.chain().focus().setUploadingImage({ src: Me, uploading: !1 }).run();
51865
51869
  }, re.readAsDataURL(Z);
51866
51870
  return;
@@ -51868,8 +51872,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51868
51872
  const se = p(), Je = await new Promise((re) => {
51869
51873
  const Ue = new FileReader();
51870
51874
  Ue.onload = (Me) => {
51871
- var $e;
51872
- return re(($e = Me.target) == null ? void 0 : $e.result);
51875
+ var Ke;
51876
+ return re((Ke = Me.target) == null ? void 0 : Ke.result);
51873
51877
  }, Ue.readAsDataURL(Z);
51874
51878
  });
51875
51879
  y.value && y.value.chain().focus().setUploadingImage({
@@ -51888,7 +51892,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51888
51892
  } catch (re) {
51889
51893
  console.error("图片上传错误:", re), y.value && y.value.commands.removeUploadingImage(se), alert("图片上传失败,请重试");
51890
51894
  }
51891
- }, g = async (Z, le, Ce) => {
51895
+ }, g = async (Z, le, we) => {
51892
51896
  if (!a.video || a.video === !1) {
51893
51897
  console.warn("视频上传未启用");
51894
51898
  return;
@@ -51948,8 +51952,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51948
51952
  it(
51949
51953
  () => a.modelValue,
51950
51954
  (Z) => {
51951
- var Ce, ie;
51952
- !(((Ce = y.value) == null ? void 0 : Ce.getHTML()) === Z) && Z && ((ie = y.value) == null || ie.commands.setContent(Z, !1));
51955
+ var we, ie;
51956
+ !(((we = y.value) == null ? void 0 : we.getHTML()) === Z) && Z && ((ie = y.value) == null || ie.commands.setContent(Z, !1));
51953
51957
  }
51954
51958
  ), it(
51955
51959
  () => a.editable,
@@ -51962,8 +51966,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51962
51966
  const Z = document.createElement("input");
51963
51967
  Z.type = "file", Z.accept = "image/*", Z.onchange = (le) => {
51964
51968
  var ie;
51965
- const Ce = (ie = le.target.files) == null ? void 0 : ie[0];
51966
- Ce && h(Ce);
51969
+ const we = (ie = le.target.files) == null ? void 0 : ie[0];
51970
+ we && h(we);
51967
51971
  }, Z.click();
51968
51972
  }, N = () => I();
51969
51973
  window.addEventListener("editor-trigger-image-upload", N), qn(() => {
@@ -51973,8 +51977,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51973
51977
  const Z = document.createElement("input");
51974
51978
  Z.type = "file", Z.accept = "video/*", Z.onchange = (le) => {
51975
51979
  var ie;
51976
- const Ce = (ie = le.target.files) == null ? void 0 : ie[0];
51977
- Ce && g(Ce);
51980
+ const we = (ie = le.target.files) == null ? void 0 : ie[0];
51981
+ we && g(we);
51978
51982
  }, Z.click();
51979
51983
  }, w = () => T();
51980
51984
  window.addEventListener("editor-trigger-video-upload", w), qn(() => {
@@ -51984,8 +51988,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51984
51988
  const Z = document.createElement("input");
51985
51989
  Z.type = "file", Z.accept = "*/*", Z.onchange = (le) => {
51986
51990
  var ie;
51987
- const Ce = (ie = le.target.files) == null ? void 0 : ie[0];
51988
- Ce && L(Ce);
51991
+ const we = (ie = le.target.files) == null ? void 0 : ie[0];
51992
+ we && L(we);
51989
51993
  }, Z.click();
51990
51994
  }, L = async (Z) => {
51991
51995
  if (!y.value) return;
@@ -51993,20 +51997,20 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
51993
51997
  console.warn("附件上传未启用");
51994
51998
  return;
51995
51999
  }
51996
- const le = typeof a.attachment == "object" ? a.attachment : {}, Ce = (ie) => {
52000
+ const le = typeof a.attachment == "object" ? a.attachment : {}, we = (ie) => {
51997
52001
  le.onError ? le.onError(ie) : alert(ie);
51998
52002
  };
51999
52003
  if (le.maxSize) {
52000
52004
  const ie = le.maxSize * 1024 * 1024;
52001
52005
  if (Z.size > ie) {
52002
- Ce(`附件大小不能超过 ${le.maxSize}MB`);
52006
+ we(`附件大小不能超过 ${le.maxSize}MB`);
52003
52007
  return;
52004
52008
  }
52005
52009
  }
52006
52010
  if (le.acceptTypes && le.acceptTypes.length > 0) {
52007
52011
  const ie = Z.type;
52008
52012
  if (!le.acceptTypes.some((se) => ie.includes(se))) {
52009
- Ce(`只支持以下文件格式: ${le.acceptTypes.join(", ")}`);
52013
+ we(`只支持以下文件格式: ${le.acceptTypes.join(", ")}`);
52010
52014
  return;
52011
52015
  }
52012
52016
  }
@@ -52017,17 +52021,17 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52017
52021
  }
52018
52022
  try {
52019
52023
  const ie = await le.uploader(Z);
52020
- ie.errorCode === 0 && ie.data.src ? H(Z.name, ie.data.src, Z.size, Z.type) : Ce("附件上传失败");
52024
+ ie.errorCode === 0 && ie.data.src ? H(Z.name, ie.data.src, Z.size, Z.type) : we("附件上传失败");
52021
52025
  } catch (ie) {
52022
- console.error("附件上传错误:", ie), Ce("附件上传失败,请重试");
52026
+ console.error("附件上传错误:", ie), we("附件上传失败,请重试");
52023
52027
  }
52024
- }, H = (Z, le, Ce, ie) => {
52028
+ }, H = (Z, le, we, ie) => {
52025
52029
  y.value && y.value.chain().focus().insertContent({
52026
52030
  type: "attachmentBlock",
52027
52031
  attrs: {
52028
52032
  fileName: Z,
52029
52033
  fileUrl: le,
52030
- fileSize: Ce,
52034
+ fileSize: we,
52031
52035
  fileType: ie
52032
52036
  }
52033
52037
  }).run();
@@ -52035,11 +52039,11 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52035
52039
  window.addEventListener("editor-trigger-attachment-upload", k), qn(() => {
52036
52040
  window.removeEventListener("editor-trigger-attachment-upload", k);
52037
52041
  });
52038
- const x = ({ editor: Z, from: le, to: Ce }) => {
52039
- if (!Z.isEditable || le === Ce) return !1;
52042
+ const x = ({ editor: Z, from: le, to: we }) => {
52043
+ if (!Z.isEditable || le === we) return !1;
52040
52044
  const { state: ie } = Z, { doc: se } = ie, Je = ["documentTitle", "linkCardBlock", "linkCardInline", "imageUpload", "streamingPreview", "videoEmbed", "videoUpload", "attachmentBlock"];
52041
52045
  let re = !1;
52042
- return se.nodesBetween(le, Ce, (Ue) => {
52046
+ return se.nodesBetween(le, we, (Ue) => {
52043
52047
  if (Je.includes(Ue.type.name))
52044
52048
  return re = !0, !1;
52045
52049
  }), !re;
@@ -52060,7 +52064,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52060
52064
  },
52061
52065
  aiStreamControls: { startAIStream: U, streamContent: O, endAIStream: S, cancelAIStream: C }
52062
52066
  });
52063
- const { getHTML: G, getMarkdown: K, getJSON: $, getText: de, setMarkdown: Le, setHTML: me, setJSON: ge } = k1(y, {
52067
+ const { getHTML: G, getMarkdown: $, getJSON: K, getText: de, setMarkdown: Le, setHTML: me, setJSON: ge } = k1(y, {
52064
52068
  getTitle: () => s.value,
52065
52069
  setTitle: (Z) => {
52066
52070
  s.value = Z, r("update:title", Z);
@@ -52068,7 +52072,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52068
52072
  }), { getOutline: Xe, scrollToHeading: Lt } = ND(y), {
52069
52073
  copyToWechat: lt,
52070
52074
  getWechatThemes: vt,
52071
- getWechatSamplePreview: we,
52075
+ getWechatSamplePreview: ke,
52072
52076
  getWechatPreviewHtml: ct,
52073
52077
  getWechatThemeCssById: mt
52074
52078
  } = T_(y), { getMinimalHTML: Tn, getArtisticHTML: un } = SD(y);
@@ -52087,8 +52091,8 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52087
52091
  scrollToHeading: Lt,
52088
52092
  // 内容导出方法
52089
52093
  getHTML: G,
52090
- getMarkdown: K,
52091
- getJSON: $,
52094
+ getMarkdown: $,
52095
+ getJSON: K,
52092
52096
  getText: de,
52093
52097
  // 内容导入方法
52094
52098
  setMarkdown: Le,
@@ -52107,7 +52111,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52107
52111
  copyToWechat: lt,
52108
52112
  getWechatThemes: vt,
52109
52113
  // AI 辅助主题编辑 API
52110
- getWechatSamplePreview: we,
52114
+ getWechatSamplePreview: ke,
52111
52115
  getWechatPreviewHtml: ct,
52112
52116
  getWechatThemeCssById: mt
52113
52117
  }), (Z, le) => (D(), F("div", {
@@ -52115,9 +52119,9 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52115
52119
  ref_key: "editorWrapper",
52116
52120
  ref: i,
52117
52121
  onMousemove: le[2] || (le[2] = //@ts-ignore
52118
- (...Ce) => Z.handleMouseMove && Z.handleMouseMove(...Ce)),
52122
+ (...we) => Z.handleMouseMove && Z.handleMouseMove(...we)),
52119
52123
  onMouseleave: le[3] || (le[3] = //@ts-ignore
52120
- (...Ce) => Z.handleMouseLeave && Z.handleMouseLeave(...Ce))
52124
+ (...we) => Z.handleMouseLeave && Z.handleMouseLeave(...we))
52121
52125
  }, [
52122
52126
  j(SE, {
52123
52127
  title: s.value,
@@ -52125,7 +52129,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52125
52129
  theme: a.theme,
52126
52130
  backlinks: a.backlinks,
52127
52131
  "onUpdate:title": o,
52128
- onBacklinkClick: le[0] || (le[0] = (Ce) => r("backlink-click", Ce)),
52132
+ onBacklinkClick: le[0] || (le[0] = (we) => r("backlink-click", we)),
52129
52133
  onBacklinkMenuClick: le[1] || (le[1] = () => r("backlink-menu-click")),
52130
52134
  onFocusEditor: u
52131
52135
  }, null, 8, ["title", "editable", "theme", "backlinks"]),
@@ -52151,7 +52155,7 @@ const DD = { class: "editor-footer-slot" }, OD = /* @__PURE__ */ Ne({
52151
52155
  ], 34));
52152
52156
  }
52153
52157
  }), H8 = /* @__PURE__ */ Ve(OD, [["__scopeId", "data-v-4e2b6748"]]);
52154
- ke.use({
52158
+ Ie.use({
52155
52159
  gfm: !0,
52156
52160
  breaks: !1
52157
52161
  });
@@ -52331,7 +52335,7 @@ function LD(e) {
52331
52335
  return e.replace(t, (n, a, r) => {
52332
52336
  const i = hr.find((o) => o.name === a);
52333
52337
  if (!i) return n;
52334
- const s = ke.parse(r.trim());
52338
+ const s = Ie.parse(r.trim());
52335
52339
  return `<div data-type="color-block" data-color="${a}" style="background-color: ${i.bg}; border-radius: 8px; padding: 16px 20px; margin: 12px 0;">${s}</div>
52336
52340
  `;
52337
52341
  });
@@ -52394,7 +52398,7 @@ class Q8 {
52394
52398
  */
52395
52399
  insertMarkdownBlock(t) {
52396
52400
  try {
52397
- let n = LD(t), a = ke.parse(n);
52401
+ let n = LD(t), a = Ie.parse(n);
52398
52402
  a = RD(a), a = a.replace(/<li>\s*\[\s*\]\s*/g, '<li data-type="taskItem" data-checked="false">'), a = a.replace(/<li>\s*\[x\]\s*/gi, '<li data-type="taskItem" data-checked="true">'), a.includes('data-type="taskItem"') && (a = a.replace(/<ul>/g, '<ul data-type="taskList">')), a = a.replace(/<p>\s*(<div data-type="link-card-block"[^>]*><\/div>)\s*<\/p>/g, "$1");
52399
52403
  const r = this.editor.state.doc.content.size;
52400
52404
  this.editor.chain().focus().setTextSelection(r).insertContent(a).run();
@@ -52474,7 +52478,7 @@ function cp(e, t) {
52474
52478
  };
52475
52479
  }
52476
52480
  const UD = () => `upload-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
52477
- function K8(e, t) {
52481
+ function $8(e, t) {
52478
52482
  const n = async (r, i, s) => {
52479
52483
  const o = typeof t == "function" ? t() : t;
52480
52484
  if (!o || o === !1) {
@@ -52533,7 +52537,7 @@ function K8(e, t) {
52533
52537
  }
52534
52538
  };
52535
52539
  }
52536
- function $8(e) {
52540
+ function K8(e) {
52537
52541
  const t = {
52538
52542
  enabled: !0,
52539
52543
  onCompletion: void 0,
@@ -52669,8 +52673,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
52669
52673
  Yu.configure({
52670
52674
  placeholder: () => a.placeholder
52671
52675
  }),
52672
- Ku,
52673
- $u.configure({
52676
+ $u,
52677
+ Ku.configure({
52674
52678
  nested: !0
52675
52679
  }),
52676
52680
  Rd.configure({
@@ -52888,8 +52892,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
52888
52892
  Yu.configure({
52889
52893
  placeholder: () => i.placeholder
52890
52894
  }),
52891
- Ku,
52892
- $u.configure({
52895
+ $u,
52896
+ Ku.configure({
52893
52897
  nested: !0
52894
52898
  }),
52895
52899
  Rd.configure({
@@ -52967,12 +52971,12 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
52967
52971
  A.url && ((U = o.value) == null || U.chain().focus().setLink({ href: A.url }).run());
52968
52972
  break;
52969
52973
  case "getEditorContent":
52970
- const K = {
52974
+ const $ = {
52971
52975
  html: (O = o.value) == null ? void 0 : O.getHTML(),
52972
52976
  json: (S = o.value) == null ? void 0 : S.getJSON(),
52973
52977
  text: (C = o.value) == null ? void 0 : C.getText()
52974
52978
  };
52975
- u("editorContent", K);
52979
+ u("editorContent", $);
52976
52980
  break;
52977
52981
  case "focus":
52978
52982
  (B = o.value) == null || B.commands.focus();
@@ -52982,8 +52986,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
52982
52986
  break;
52983
52987
  case "uploadFinished":
52984
52988
  if (a[A.uploadId]) {
52985
- const $ = a[A.uploadId];
52986
- A.success ? $({ errorCode: 0, data: { src: A.url } }) : $({ errorCode: 1, data: {} }), delete a[A.uploadId];
52989
+ const K = a[A.uploadId];
52990
+ A.success ? K({ errorCode: 0, data: { src: A.url } }) : K({ errorCode: 1, data: {} }), delete a[A.uploadId];
52987
52991
  }
52988
52992
  break;
52989
52993
  }
@@ -53002,7 +53006,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53002
53006
  var A;
53003
53007
  (A = o.value) == null || A.setEditable(m);
53004
53008
  }
53005
- ), Kt(() => {
53009
+ ), $t(() => {
53006
53010
  u("editorReady", {}), s("ready");
53007
53011
  }), qn(() => {
53008
53012
  var m;
@@ -53029,7 +53033,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53029
53033
  ])
53030
53034
  ], 2));
53031
53035
  }
53032
- }), G8 = /* @__PURE__ */ Ve(YD, [["__scopeId", "data-v-5d0cd69f"]]), KD = { class: "tag-content" }, $D = { class: "tag-name" }, WD = ["onClick"], GD = { class: "tag-input-wrapper" }, qD = { class: "tag-prefix" }, VD = ["onKeydown"], JD = {
53036
+ }), G8 = /* @__PURE__ */ Ve(YD, [["__scopeId", "data-v-5d0cd69f"]]), $D = { class: "tag-content" }, KD = { class: "tag-name" }, WD = ["onClick"], GD = { class: "tag-input-wrapper" }, qD = { class: "tag-prefix" }, VD = ["onKeydown"], JD = {
53033
53037
  key: 0,
53034
53038
  class: "tag-dropdown"
53035
53039
  }, ZD = { class: "dropdown-list" }, XD = ["onMousedown"], e8 = { class: "dropdown-tag-name" }, t8 = {
@@ -53118,7 +53122,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53118
53122
  }, U = (O) => {
53119
53123
  O.altKey && O.metaKey && O.key.toLowerCase() === "k" && (O.preventDefault(), r.value ? I() : y());
53120
53124
  };
53121
- return Kt(() => {
53125
+ return $t(() => {
53122
53126
  document.addEventListener("keydown", U);
53123
53127
  }), Fs(() => {
53124
53128
  document.removeEventListener("keydown", U);
@@ -53135,8 +53139,8 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53135
53139
  key: C.id,
53136
53140
  class: "tag-item"
53137
53141
  }, [
53138
- b("span", KD, [
53139
- b("span", $D, Ae(C.name), 1)
53142
+ b("span", $D, [
53143
+ b("span", KD, Ae(C.name), 1)
53140
53144
  ]),
53141
53145
  b("button", {
53142
53146
  class: "tag-remove-btn",
@@ -53168,7 +53172,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53168
53172
  ]))), 128)),
53169
53173
  ot(b("div", GD, [
53170
53174
  ot(b("span", qD, "#", 512), [
53171
- [Kr, i.value]
53175
+ [$r, i.value]
53172
53176
  ]),
53173
53177
  ot(b("input", {
53174
53178
  ref_key: "inputRef",
@@ -53220,7 +53224,7 @@ const FD = { class: "flash-toolbar" }, HD = { class: "toolbar-left" }, zD = { cl
53220
53224
  ])
53221
53225
  ])) : ae("", !0)
53222
53226
  ], 512), [
53223
- [Kr, f.value]
53227
+ [$r, f.value]
53224
53228
  ]),
53225
53229
  f.value ? ae("", !0) : (D(), F("button", {
53226
53230
  key: 0,
@@ -53370,10 +53374,10 @@ export {
53370
53374
  F8 as getWechatThemeCssById,
53371
53375
  jr as juice,
53372
53376
  Rs as transformHtmlForWechat,
53373
- $8 as useAIAssistant,
53377
+ K8 as useAIAssistant,
53374
53378
  k1 as useContentExport,
53375
53379
  cp as useImageUpload,
53376
- K8 as useVideoUpload,
53380
+ $8 as useVideoUpload,
53377
53381
  T_ as useWechatExport
53378
53382
  };
53379
53383
  //# sourceMappingURL=lianshu-editor.es.js.map