@linker-design-plus/tiny-peony 1.4.37 → 1.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -259,15 +259,15 @@ ${a}` : a;
259
259
  `, 1)[0], p = !f.trim(), R = 0;
260
260
  if (this.options.pedantic ? (R = 2, D = f.trimStart()) : p ? R = t[1].length + 1 : (R = f.search(this.rules.other.nonSpaceChar), R = R > 4 ? 1 : R, D = f.slice(R), R += t[1].length), p && this.rules.other.blankLine.test(d) && (y += d + `
261
261
  `, e = e.substring(d.length + 1), a = !0), !a) {
262
- let S = this.rules.other.nextBulletRegex(R), N = this.rules.other.hrRegex(R), M = this.rules.other.fencesBeginRegex(R), H = this.rules.other.headingBeginRegex(R), P = this.rules.other.htmlBeginRegex(R), z = this.rules.other.blockquoteBeginRegex(R);
262
+ let S = this.rules.other.nextBulletRegex(R), N = this.rules.other.hrRegex(R), M = this.rules.other.fencesBeginRegex(R), J = this.rules.other.headingBeginRegex(R), P = this.rules.other.htmlBeginRegex(R), z = this.rules.other.blockquoteBeginRegex(R);
263
263
  for (; e; ) {
264
264
  let Y = e.split(`
265
265
  `, 1)[0], q;
266
- if (d = Y, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), q = d) : q = d.replace(this.rules.other.tabCharGlobal, " "), M.test(d) || H.test(d) || P.test(d) || z.test(d) || S.test(d) || N.test(d)) break;
266
+ if (d = Y, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), q = d) : q = d.replace(this.rules.other.tabCharGlobal, " "), M.test(d) || J.test(d) || P.test(d) || z.test(d) || S.test(d) || N.test(d)) break;
267
267
  if (q.search(this.rules.other.nonSpaceChar) >= R || !d.trim()) D += `
268
268
  ` + q.slice(R);
269
269
  else {
270
- if (p || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || M.test(f) || H.test(f) || N.test(f)) break;
270
+ if (p || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || M.test(f) || J.test(f) || N.test(f)) break;
271
271
  D += `
272
272
  ` + d;
273
273
  }
@@ -1723,18 +1723,18 @@ const ve = (e, t) => {
1723
1723
  return;
1724
1724
  }
1725
1725
  if ($(o.commonAncestorContainer) && o.commonAncestorContainer.tagName === "DIV") {
1726
- const H = Ag(s), P = Ag(a), z = document.createDocumentFragment();
1726
+ const J = Ag(s), P = Ag(a), z = document.createDocumentFragment();
1727
1727
  for (; P != null && P.firstChild; )
1728
1728
  z.appendChild(P.firstChild);
1729
- H == null || H.appendChild(z), P == null || P.remove();
1729
+ J == null || J.appendChild(z), P == null || P.remove();
1730
1730
  const Y = window.getSelection(), q = document.createRange();
1731
1731
  q.setStart(s, c), q.setEnd(s, c), Y == null || Y.removeAllRanges(), Y == null || Y.addRange(q);
1732
1732
  }
1733
1733
  o = e.cursor.isRangeInEditor() ? window.getSelection().getRangeAt(0) : B, o = qA(o.commonAncestorContainer) && o.commonAncestorContainer.textContent === "粘贴文本" ? B : o;
1734
1734
  const [D] = PA(
1735
1735
  o.commonAncestorContainer,
1736
- (H) => H.tagName === "P" && H.classList.contains(BA)
1737
- ), [f] = PA(o.startContainer, (H) => H.tagName === "SPAN" && H.dataset.type === K.anchor), d = document.createRange(), p = !!f;
1736
+ (J) => J.tagName === "P" && J.classList.contains(BA)
1737
+ ), [f] = PA(o.startContainer, (J) => J.tagName === "SPAN" && J.dataset.type === K.anchor), d = document.createRange(), p = !!f;
1738
1738
  d.setStart(o.startContainer, o.startOffset), d.setEndAfter(D.lastChild);
1739
1739
  const R = d.extractContents();
1740
1740
  if (!(D != null && D.textContent))
@@ -1742,8 +1742,8 @@ const ve = (e, t) => {
1742
1742
  else if (qA(D.lastChild))
1743
1743
  D.lastChild.textContent += Q;
1744
1744
  else if ($(D.lastChild) && D.lastChild.dataset.type === K.anchor) {
1745
- const { lastChild: H } = D.lastChild;
1746
- qA(H) ? H.textContent += Q : H == null || H.appendChild(document.createTextNode(Q));
1745
+ const { lastChild: J } = D.lastChild;
1746
+ qA(J) ? J.textContent += Q : J == null || J.appendChild(document.createTextNode(Q));
1747
1747
  } else
1748
1748
  D.appendChild(document.createTextNode(Q));
1749
1749
  ve(
@@ -1751,10 +1751,10 @@ const ve = (e, t) => {
1751
1751
  p ? D.lastChild : D
1752
1752
  );
1753
1753
  let { nextSibling: S } = D;
1754
- if (i.forEach((H) => {
1754
+ if (i.forEach((J) => {
1755
1755
  var z;
1756
1756
  const P = document.createElement("p");
1757
- if (P.classList.add(BA), P.textContent = H, (z = D == null ? void 0 : D.parentNode) == null || z.insertBefore(P, S), S = P.nextSibling, ve(e, P), p) {
1757
+ if (P.classList.add(BA), P.textContent = J, (z = D == null ? void 0 : D.parentNode) == null || z.insertBefore(P, S), S = P.nextSibling, ve(e, P), p) {
1758
1758
  const Y = f.cloneNode(!1);
1759
1759
  Y.innerHTML = P.innerHTML, P.innerHTML = Y.outerHTML;
1760
1760
  }
@@ -1765,13 +1765,13 @@ const ve = (e, t) => {
1765
1765
  else if (qA(N.firstChild))
1766
1766
  N.firstChild.textContent = n + N.firstChild.textContent;
1767
1767
  else if ($(N.firstChild) && N.firstChild.dataset.type === K.anchor) {
1768
- const { firstChild: H } = N.firstChild;
1769
- qA(H) ? H.textContent = n + H.textContent : H == null || H.insertBefore(document.createTextNode(n), H.firstChild);
1768
+ const { firstChild: J } = N.firstChild;
1769
+ qA(J) ? J.textContent = n + J.textContent : J == null || J.insertBefore(document.createTextNode(n), J.firstChild);
1770
1770
  } else
1771
1771
  N.insertBefore(document.createTextNode(n), N.firstChild);
1772
- e.element.insertBefore(N, S), [0.5, 1, 1.5, 2, 2.5].every((H) => {
1772
+ e.element.insertBefore(N, S), [0.5, 1, 1.5, 2, 2.5].every((J) => {
1773
1773
  var P;
1774
- return !((P = N.textContent) != null && P.trim().endsWith(`停顿: ${H}S`));
1774
+ return !((P = N.textContent) != null && P.trim().endsWith(`停顿: ${J}S`));
1775
1775
  }) && ve(e, N);
1776
1776
  }, [Eo] = Cg("paragraph"), BA = Eo(), pt = `<p class="${BA}"><br /></p>`;
1777
1777
  class oo extends BE {
@@ -2297,8 +2297,8 @@ function po(e = {}) {
2297
2297
  M.value = N ?? "", M.style.position = "absolute", M.style.opacity = "0", document.body.appendChild(M), M.select(), document.execCommand("copy"), M.remove();
2298
2298
  }
2299
2299
  function R() {
2300
- var N, M, H;
2301
- return (H = (M = (N = document == null ? void 0 : document.getSelection) == null ? void 0 : N.call(document)) == null ? void 0 : M.toString()) != null ? H : "";
2300
+ var N, M, J;
2301
+ return (J = (M = (N = document == null ? void 0 : document.getSelection) == null ? void 0 : N.call(document)) == null ? void 0 : M.toString()) != null ? J : "";
2302
2302
  }
2303
2303
  function S(N) {
2304
2304
  return N === "granted" || N === "prompt";
@@ -2343,10 +2343,10 @@ function It(e = {}) {
2343
2343
  c instanceof MouseEvent && Y && (D.value = Y[0] + n.scrollX - a, f.value = Y[1] + n.scrollY - y);
2344
2344
  }, M = () => {
2345
2345
  D.value = Q.x, f.value = Q.y;
2346
- }, H = s ? (Y) => s(() => R(Y), {}) : (Y) => R(Y), P = s ? (Y) => s(() => S(Y), {}) : (Y) => S(Y), z = s ? () => s(() => N(), {}) : () => N();
2346
+ }, J = s ? (Y) => s(() => R(Y), {}) : (Y) => R(Y), P = s ? (Y) => s(() => S(Y), {}) : (Y) => S(Y), z = s ? () => s(() => N(), {}) : () => N();
2347
2347
  if (i) {
2348
2348
  const Y = { passive: !0 };
2349
- Tg(i, ["mousemove", "dragover"], H, Y), I && t !== "movement" && (Tg(i, ["touchstart", "touchmove"], P, Y), B && Tg(i, "touchend", M, Y)), o && t === "page" && Tg(n, "scroll", z, Y);
2349
+ Tg(i, ["mousemove", "dragover"], J, Y), I && t !== "movement" && (Tg(i, ["touchstart", "touchmove"], P, Y), B && Tg(i, "touchend", M, Y)), o && t === "page" && Tg(n, "scroll", z, Y);
2350
2350
  }
2351
2351
  return {
2352
2352
  x: D,
@@ -2810,7 +2810,7 @@ class Po extends $e {
2810
2810
  }
2811
2811
  return $(nA) && nA.classList.contains(BA) ? nA.childNodes[CA.endOffset] : nA;
2812
2812
  };
2813
- [M, H, P, z] = s(
2813
+ [M, J, P, z] = s(
2814
2814
  eA,
2815
2815
  a,
2816
2816
  y,
@@ -2859,7 +2859,7 @@ class Po extends $e {
2859
2859
  }, c = async (Y) => {
2860
2860
  var QA, eA;
2861
2861
  const q = document.createRange();
2862
- M === P && $(M) && M.dataset.type === K.highlight ? q.selectNode(M) : (q.setStart(M, H), q.setEnd(P, z)), (QA = getSelection()) == null || QA.removeAllRanges(), (eA = getSelection()) == null || eA.addRange(q), this.editor.cursor.range = q, this._insertAnchorTag(I.anchor, Y);
2862
+ M === P && $(M) && M.dataset.type === K.highlight ? q.selectNode(M) : (q.setStart(M, J), q.setEnd(P, z)), (QA = getSelection()) == null || QA.removeAllRanges(), (eA = getSelection()) == null || eA.addRange(q), this.editor.cursor.range = q, this._insertAnchorTag(I.anchor, Y);
2863
2863
  }, { startContainer: a, startOffset: y, endContainer: D, endOffset: f } = B, d = n(D), p = Ag(a), R = Ag(D), S = p === R ? [p] : [p, ...Wt(p, R), R], N = S.map((Y, q) => {
2864
2864
  let QA = [], eA = 0, oA = Y.childNodes.length;
2865
2865
  switch (q) {
@@ -2878,7 +2878,7 @@ class Po extends $e {
2878
2878
  }
2879
2879
  return [Y, i(QA)];
2880
2880
  });
2881
- let M, H = 0, P, z = 0;
2881
+ let M, J = 0, P, z = 0;
2882
2882
  return N.some(([Y, q]) => q) ? (o(), c(d), !0) : !1;
2883
2883
  }
2884
2884
  _recordAnchor(I, B, Q, n) {
@@ -2891,9 +2891,9 @@ class Po extends $e {
2891
2891
  }
2892
2892
  _insertAnchorTag(I, B) {
2893
2893
  const Q = this._newAnchorId, n = String(Date.now()), i = HC[(Q - 1) % 10], o = this.editor.cursor.range, { startContainer: s, startOffset: c, endContainer: a, endOffset: y } = o, D = (M) => $(M) && M.tagName === "DIV" ? M.firstElementChild : $(M) && M.tagName === "P" ? M : Ag(M), f = (M) => {
2894
- const H = document.createElement("span");
2894
+ const J = document.createElement("span");
2895
2895
  return Xg(
2896
- H,
2896
+ J,
2897
2897
  {
2898
2898
  class: oe(),
2899
2899
  style: `background-color: ${i}`
@@ -2913,14 +2913,14 @@ class Po extends $e {
2913
2913
  uid: n
2914
2914
  },
2915
2915
  M
2916
- ), H;
2917
- }, d = (M, H, P, z, Y = !1) => {
2916
+ ), J;
2917
+ }, d = (M, J, P, z, Y = !1) => {
2918
2918
  const q = document.createRange();
2919
2919
  if (p(M, P))
2920
- q.selectNode(Array.from(M.childNodes).slice(H, z)[0]);
2920
+ q.selectNode(Array.from(M.childNodes).slice(J, z)[0]);
2921
2921
  else {
2922
2922
  const CA = $(P) && [K.pausation].includes(P.dataset.type) ? P.childNodes.length : z;
2923
- $(M) && M.tagName === "P" ? (q.setStart(M.firstChild, 0), q.setEnd(M, M.childNodes.length)) : (q.setStart(M, H), q.setEnd(P, CA));
2923
+ $(M) && M.tagName === "P" ? (q.setStart(M.firstChild, 0), q.setEnd(M, M.childNodes.length)) : (q.setStart(M, J), q.setEnd(P, CA));
2924
2924
  }
2925
2925
  const QA = window.getSelection();
2926
2926
  QA.removeAllRanges(), QA.addRange(q), this.editor.cursor.range = q;
@@ -2930,9 +2930,9 @@ class Po extends $e {
2930
2930
  this.editor.content.update(oA);
2931
2931
  const SA = this._calcTopValue(oA.getBoundingClientRect());
2932
2932
  return oA.dataset.top = String(SA), I.uid = oA.dataset.uid, Y && this._recordAnchor(I, Q, SA, i), oA;
2933
- }, p = (M, H) => {
2933
+ }, p = (M, J) => {
2934
2934
  var P, z;
2935
- return $(M) && M.tagName === "P" && M === H && // @ts-ignore
2935
+ return $(M) && M.tagName === "P" && M === J && // @ts-ignore
2936
2936
  ((z = (P = Array.from(M.childNodes).slice(o.startOffset, o.endOffset)[0]) == null ? void 0 : P.dataset) == null ? void 0 : z.type) === K.highlight;
2937
2937
  }, R = D(s), S = D(a), N = Wt(R, S);
2938
2938
  if (R === S) {
@@ -3106,8 +3106,8 @@ const jo = ["onClick"], Wo = /* @__PURE__ */ jA({
3106
3106
  if (D.component) {
3107
3107
  let R = Xo.value, S = zo.value;
3108
3108
  if (f.popupContainer) {
3109
- const { offsetTop: N, offsetLeft: M, offsetHeight: H, offsetWidth: P } = f.popupContainer;
3110
- R = N + H + 5 + (((d = f.extraPos) == null ? void 0 : d.top) ?? 0), S = M - (88 - P) / 2 + (((p = f.extraPos) == null ? void 0 : p.left) ?? 0);
3109
+ const { offsetTop: N, offsetLeft: M, offsetHeight: J, offsetWidth: P } = f.popupContainer;
3110
+ R = N + J + 5 + (((d = f.extraPos) == null ? void 0 : d.top) ?? 0), S = M - (88 - P) / 2 + (((p = f.extraPos) == null ? void 0 : p.left) ?? 0);
3111
3111
  }
3112
3112
  I.setAttribute("style", `top: ${R}px; left: ${S}px`), Object.entries(f).forEach(([N, M]) => {
3113
3113
  D.component.props[N] = M;
@@ -3810,10 +3810,10 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
3810
3810
  s = A, c = g;
3811
3811
  }), y = typeof window == "object", D = typeof importScripts == "function", f = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", d = Object.assign({}, o), p = "./this.program", R = (A, g) => {
3812
3812
  throw g;
3813
- }, S = "", N, M, H;
3813
+ }, S = "", N, M, J;
3814
3814
  if (f) {
3815
3815
  var P = mt("fs"), z = mt("path");
3816
- S = __dirname + "/", N = (A, g) => (A = Ae(A) ? new URL(A) : z.normalize(A), P.readFileSync(A, g ? void 0 : "utf8")), H = (A) => {
3816
+ S = __dirname + "/", N = (A, g) => (A = Ae(A) ? new URL(A) : z.normalize(A), P.readFileSync(A, g ? void 0 : "utf8")), J = (A) => {
3817
3817
  var g = N(A, !0);
3818
3818
  return g.buffer || (g = new Uint8Array(g)), g;
3819
3819
  }, M = (A, g, C, E = !0) => {
@@ -3826,7 +3826,7 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
3826
3826
  } else (y || D) && (D ? S = self.location.href : typeof document < "u" && document.currentScript && (S = document.currentScript.src), B && (S = B), S.startsWith("blob:") ? S = "" : S = S.substr(0, S.replace(/[?#].*/, "").lastIndexOf("/") + 1), N = (A) => {
3827
3827
  var g = new XMLHttpRequest();
3828
3828
  return g.open("GET", A, !1), g.send(null), g.responseText;
3829
- }, D && (H = (A) => {
3829
+ }, D && (J = (A) => {
3830
3830
  var g = new XMLHttpRequest();
3831
3831
  return g.open("GET", A, !1), g.responseType = "arraybuffer", g.send(null), new Uint8Array(g.response);
3832
3832
  }), M = (A, g, C) => {
@@ -3908,7 +3908,7 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
3908
3908
  if (A == Bg && QA) return new Uint8Array(QA);
3909
3909
  var g = oA(A);
3910
3910
  if (g) return g;
3911
- if (H) return H(A);
3911
+ if (J) return J(A);
3912
3912
  throw "both async and sync fetching of the wasm failed";
3913
3913
  }
3914
3914
  function jC(A) {
@@ -4207,8 +4207,8 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
4207
4207
  (g = this.rawDestructor) == null || g.call(this, A);
4208
4208
  }, argPackAdvance: dg, readValueFromPointer: ke, fromWireType: rB });
4209
4209
  };
4210
- function Fe(A, g, C, E, l, h, w, u, k, U, J) {
4211
- this.name = A, this.registeredClass = g, this.isReference = C, this.isConst = E, this.isSmartPointer = l, this.pointeeType = h, this.sharingPolicy = w, this.rawGetPointee = u, this.rawConstructor = k, this.rawShare = U, this.rawDestructor = J, !l && g.baseClass === void 0 ? E ? (this.toWireType = wB, this.destructorFunction = null) : (this.toWireType = DB, this.destructorFunction = null) : this.toWireType = uB;
4210
+ function Fe(A, g, C, E, l, h, w, u, k, U, H) {
4211
+ this.name = A, this.registeredClass = g, this.isReference = C, this.isConst = E, this.isSmartPointer = l, this.pointeeType = h, this.sharingPolicy = w, this.rawGetPointee = u, this.rawConstructor = k, this.rawShare = U, this.rawDestructor = H, !l && g.baseClass === void 0 ? E ? (this.toWireType = wB, this.destructorFunction = null) : (this.toWireType = DB, this.destructorFunction = null) : this.toWireType = uB;
4212
4212
  }
4213
4213
  var yB = (A, g, C) => {
4214
4214
  o.hasOwnProperty(A) || fe("Replacing nonexistent public symbol"), o[A].overloadTable !== void 0 && C !== void 0 ? o[A].overloadTable[C] = g : (o[A] = g, o[A].argCount = C);
@@ -4252,27 +4252,27 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
4252
4252
  }
4253
4253
  }
4254
4254
  throw g.forEach(l), new yI(`${A}: ` + C.map(pI).join([", "]));
4255
- }, NB = (A, g, C, E, l, h, w, u, k, U, J, j, x) => {
4256
- J = Ig(J), h = Lg(l, h), u && (u = Lg(w, u)), U && (U = Lg(k, U)), x = Lg(j, x);
4257
- var W = hB(J);
4255
+ }, NB = (A, g, C, E, l, h, w, u, k, U, H, j, x) => {
4256
+ H = Ig(H), h = Lg(l, h), u && (u = Lg(w, u)), U && (U = Lg(k, U)), x = Lg(j, x);
4257
+ var W = hB(H);
4258
4258
  aB(W, function() {
4259
- Ne(`Cannot construct ${J} due to unbound types`, [E]);
4259
+ Ne(`Cannot construct ${H} due to unbound types`, [E]);
4260
4260
  }), Sg([A, g, C], E ? [E] : [], (_) => {
4261
4261
  var NA;
4262
4262
  _ = _[0];
4263
4263
  var yA, FA;
4264
4264
  E ? (yA = _.registeredClass, FA = yA.instancePrototype) : FA = pe.prototype;
4265
- var GA = Re(J, function(...ft) {
4266
- if (Object.getPrototypeOf(this) !== m) throw new Kg("Use 'new' to construct " + J);
4267
- if (T.constructor_body === void 0) throw new Kg(J + " has no accessible constructor");
4265
+ var GA = Re(H, function(...ft) {
4266
+ if (Object.getPrototypeOf(this) !== m) throw new Kg("Use 'new' to construct " + H);
4267
+ if (T.constructor_body === void 0) throw new Kg(H + " has no accessible constructor");
4268
4268
  var WI = T.constructor_body[ft.length];
4269
- if (WI === void 0) throw new Kg(`Tried to invoke ctor of ${J} with invalid number of parameters (${ft.length}) - expected (${Object.keys(T.constructor_body).toString()}) parameters instead!`);
4269
+ if (WI === void 0) throw new Kg(`Tried to invoke ctor of ${H} with invalid number of parameters (${ft.length}) - expected (${Object.keys(T.constructor_body).toString()}) parameters instead!`);
4270
4270
  return WI.apply(this, ft);
4271
4271
  }), m = Object.create(FA, { constructor: { value: GA } });
4272
4272
  GA.prototype = m;
4273
- var T = new dB(J, GA, m, x, yA, h, u, U);
4273
+ var T = new dB(H, GA, m, x, yA, h, u, U);
4274
4274
  T.baseClass && ((NA = T.baseClass).__derivedClasses ?? (NA.__derivedClasses = []), T.baseClass.__derivedClasses.push(T));
4275
- var MA = new Fe(J, T, !0, !1, !1), wA = new Fe(J + "*", T, !1, !1, !1), eg = new Fe(J + " const*", T, !1, !0, !1);
4275
+ var MA = new Fe(H, T, !0, !1, !1), wA = new Fe(H + "*", T, !1, !1, !1), eg = new Fe(H + " const*", T, !1, !0, !1);
4276
4276
  return fI[A] = { pointerType: wA, constPointerType: eg }, yB(W, GA), [MA, wA, eg];
4277
4277
  });
4278
4278
  }, SB = (A) => {
@@ -4302,10 +4302,10 @@ var mn = Object.create, vC = Object.defineProperty, Jn = Object.getOwnPropertyDe
4302
4302
  }`;
4303
4303
  l && (U += `var destructors = [];
4304
4304
  `);
4305
- var J = l ? "destructors" : "null", j = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"];
4306
- g && (U += "var thisWired = classParam['toWireType'](" + J + `, this);
4305
+ var H = l ? "destructors" : "null", j = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"];
4306
+ g && (U += "var thisWired = classParam['toWireType'](" + H + `, this);
4307
4307
  `);
4308
- for (var k = 0; k < h - 2; ++k) U += "var arg" + k + "Wired = argType" + k + "['toWireType'](" + J + ", arg" + k + `);
4308
+ for (var k = 0; k < h - 2; ++k) U += "var arg" + k + "Wired = argType" + k + "['toWireType'](" + H + ", arg" + k + `);
4309
4309
  `, j.push("argType" + k);
4310
4310
  if (g && (u = "thisWired" + (u.length > 0 ? ", " : "") + u), U += (C || E ? "var rv = " : "") + "invoker(fn" + (u.length > 0 ? ", " : "") + u + `);
4311
4311
  `, l) U += `runDestructors(destructors);
@@ -4323,11 +4323,11 @@ return ret;
4323
4323
  function rt(A, g, C, E, l, h) {
4324
4324
  var w = g.length;
4325
4325
  w < 2 && rA("argTypes array size mismatch! Must at least get return value and 'this' types!");
4326
- for (var u = g[1] !== null && C !== null, k = RI(g), U = g[0].name !== "void", J = [A, rA, E, l, SB, g[0], g[1]], j = 0; j < w - 2; ++j) J.push(g[j + 2]);
4327
- if (!k) for (var j = u ? 1 : 2; j < g.length; ++j) g[j].destructorFunction !== null && J.push(g[j].destructorFunction);
4326
+ for (var u = g[1] !== null && C !== null, k = RI(g), U = g[0].name !== "void", H = [A, rA, E, l, SB, g[0], g[1]], j = 0; j < w - 2; ++j) H.push(g[j + 2]);
4327
+ if (!k) for (var j = u ? 1 : 2; j < g.length; ++j) g[j].destructorFunction !== null && H.push(g[j].destructorFunction);
4328
4328
  let [x, W] = GB(g, u, U, h);
4329
4329
  x.push(W);
4330
- var _ = LB(Function, x)(...J);
4330
+ var _ = LB(Function, x)(...H);
4331
4331
  return Re(A, _);
4332
4332
  }
4333
4333
  var st = (A, g) => {
@@ -4341,14 +4341,14 @@ return ret;
4341
4341
  var k = st(C, E);
4342
4342
  g = Ig(g), g = kI(g), h = Lg(l, h), Sg([], [A], (U) => {
4343
4343
  U = U[0];
4344
- var J = `${U.name}.${g}`;
4344
+ var H = `${U.name}.${g}`;
4345
4345
  function j() {
4346
- Ne(`Cannot call ${J} due to unbound types`, k);
4346
+ Ne(`Cannot call ${H} due to unbound types`, k);
4347
4347
  }
4348
4348
  g.startsWith("@@") && (g = Symbol[g.substring(2)]);
4349
4349
  var x = U.registeredClass.constructor;
4350
- return x[g] === void 0 ? (j.argCount = C - 1, x[g] = j) : (nt(x, g, J), x[g].overloadTable[C - 1] = j), Sg([], k, (W) => {
4351
- var _ = [W[0], null].concat(W.slice(1)), yA = rt(J, _, null, h, w, u);
4350
+ return x[g] === void 0 ? (j.argCount = C - 1, x[g] = j) : (nt(x, g, H), x[g].overloadTable[C - 1] = j), Sg([], k, (W) => {
4351
+ var _ = [W[0], null].concat(W.slice(1)), yA = rt(H, _, null, h, w, u);
4352
4352
  if (x[g].overloadTable === void 0 ? (yA.argCount = C - 1, x[g] = yA) : x[g].overloadTable[C - 1] = yA, U.registeredClass.__derivedClasses) for (let FA of U.registeredClass.__derivedClasses) FA.constructor.hasOwnProperty(g) || (FA.constructor[g] = yA);
4353
4353
  return [];
4354
4354
  }), [];
@@ -4365,16 +4365,16 @@ return ret;
4365
4365
  });
4366
4366
  }, mB = (A, g, C, E, l, h, w, u, k) => {
4367
4367
  var U = st(C, E);
4368
- g = Ig(g), g = kI(g), h = Lg(l, h), Sg([], [A], (J) => {
4369
- J = J[0];
4370
- var j = `${J.name}.${g}`;
4371
- g.startsWith("@@") && (g = Symbol[g.substring(2)]), u && J.registeredClass.pureVirtualFunctions.push(g);
4368
+ g = Ig(g), g = kI(g), h = Lg(l, h), Sg([], [A], (H) => {
4369
+ H = H[0];
4370
+ var j = `${H.name}.${g}`;
4371
+ g.startsWith("@@") && (g = Symbol[g.substring(2)]), u && H.registeredClass.pureVirtualFunctions.push(g);
4372
4372
  function x() {
4373
4373
  Ne(`Cannot call ${j} due to unbound types`, U);
4374
4374
  }
4375
- var W = J.registeredClass.instancePrototype, _ = W[g];
4376
- return _ === void 0 || _.overloadTable === void 0 && _.className !== J.name && _.argCount === C - 2 ? (x.argCount = C - 2, x.className = J.name, W[g] = x) : (nt(W, g, j), W[g].overloadTable[C - 2] = x), Sg([], U, (yA) => {
4377
- var FA = rt(j, yA, J, h, w, k);
4375
+ var W = H.registeredClass.instancePrototype, _ = W[g];
4376
+ return _ === void 0 || _.overloadTable === void 0 && _.className !== H.name && _.argCount === C - 2 ? (x.argCount = C - 2, x.className = H.name, W[g] = x) : (nt(W, g, j), W[g].overloadTable[C - 2] = x), Sg([], U, (yA) => {
4377
+ var FA = rt(j, yA, H, h, w, k);
4378
4378
  return W[g].overloadTable === void 0 ? (FA.argCount = C - 2, W[g] = FA) : W[g].overloadTable[C - 2] = FA, [];
4379
4379
  }), [];
4380
4380
  });
@@ -4432,16 +4432,16 @@ return ret;
4432
4432
  }
4433
4433
  }, bB = (A, g, C, E, l) => {
4434
4434
  g = Ig(g);
4435
- var h = (J) => J;
4435
+ var h = (H) => H;
4436
4436
  if (E === 0) {
4437
4437
  var w = 32 - 8 * C;
4438
- h = (J) => J << w >>> w;
4438
+ h = (H) => H << w >>> w;
4439
4439
  }
4440
- var u = g.includes("unsigned"), k = (J, j) => {
4440
+ var u = g.includes("unsigned"), k = (H, j) => {
4441
4441
  }, U;
4442
- u ? U = function(J, j) {
4442
+ u ? U = function(H, j) {
4443
4443
  return k(j, this.name), j >>> 0;
4444
- } : U = function(J, j) {
4444
+ } : U = function(H, j) {
4445
4445
  return k(j, this.name), j;
4446
4446
  }, lg(A, { name: g, fromWireType: h, toWireType: U, argPackAdvance: dg, readValueFromPointer: xB(g, C, E !== 0), destructorFunction: null });
4447
4447
  }, TB = (A, g, C) => {
@@ -4512,7 +4512,7 @@ return ret;
4512
4512
  if (C) for (var u = h, k = 0; k <= l; ++k) {
4513
4513
  var U = h + k;
4514
4514
  if (k == l || tA[U] == 0) {
4515
- var J = U - u, j = Le(u, J);
4515
+ var H = U - u, j = Le(u, H);
4516
4516
  w === void 0 ? w = j : (w += "\0", w += j), u = U + 1;
4517
4517
  }
4518
4518
  }
@@ -4528,8 +4528,8 @@ return ret;
4528
4528
  var u = Dt(4 + h + 1), k = u + 4;
4529
4529
  if (G[u >> 2] = h, C && w) NI(l, k, h + 1);
4530
4530
  else if (w) for (var U = 0; U < h; ++U) {
4531
- var J = l.charCodeAt(U);
4532
- J > 255 && (hg(k), rA("String has UTF-16 code units that do not fit in 8 bits")), tA[k + U] = J;
4531
+ var H = l.charCodeAt(U);
4532
+ H > 255 && (hg(k), rA("String has UTF-16 code units that do not fit in 8 bits")), tA[k + U] = H;
4533
4533
  }
4534
4534
  else for (var U = 0; U < h; ++U) tA[k + U] = l[U];
4535
4535
  return E !== null && E.push(hg, u), u;
@@ -4584,18 +4584,18 @@ return ret;
4584
4584
  C = Ig(C);
4585
4585
  var E, l, h, w;
4586
4586
  g === 2 ? (E = WB, l = OB, w = VB, h = (u) => WA[u >> 1]) : g === 4 && (E = zB, l = XB, w = ZB, h = (u) => G[u >> 2]), lg(A, { name: C, fromWireType: (u) => {
4587
- for (var k = G[u >> 2], U, J = u + 4, j = 0; j <= k; ++j) {
4587
+ for (var k = G[u >> 2], U, H = u + 4, j = 0; j <= k; ++j) {
4588
4588
  var x = u + 4 + j * g;
4589
4589
  if (j == k || h(x) == 0) {
4590
- var W = x - J, _ = E(J, W);
4591
- U === void 0 ? U = _ : (U += "\0", U += _), J = x + g;
4590
+ var W = x - H, _ = E(H, W);
4591
+ U === void 0 ? U = _ : (U += "\0", U += _), H = x + g;
4592
4592
  }
4593
4593
  }
4594
4594
  return hg(u), U;
4595
4595
  }, toWireType: (u, k) => {
4596
4596
  typeof k != "string" && rA(`Cannot pass non-string to C++ string type ${C}`);
4597
- var U = w(k), J = Dt(4 + U + g);
4598
- return G[J >> 2] = U / g, l(k, J + 4, U + g), u !== null && u.push(hg, J), J;
4597
+ var U = w(k), H = Dt(4 + U + g);
4598
+ return G[H >> 2] = U / g, l(k, H + 4, U + g), u !== null && u.push(hg, H), H;
4599
4599
  }, argPackAdvance: dg, readValueFromPointer: ke, destructorFunction(u) {
4600
4600
  hg(u);
4601
4601
  } });
@@ -4711,9 +4711,9 @@ return ret;
4711
4711
  }, relative: (A, g) => {
4712
4712
  A = cg.resolve(A).substr(1), g = cg.resolve(g).substr(1);
4713
4713
  function C(U) {
4714
- for (var J = 0; J < U.length && U[J] === ""; J++) ;
4714
+ for (var H = 0; H < U.length && U[H] === ""; H++) ;
4715
4715
  for (var j = U.length - 1; j >= 0 && U[j] === ""; j--) ;
4716
- return J > j ? [] : U.slice(J, j - J + 1);
4716
+ return H > j ? [] : U.slice(H, j - H + 1);
4717
4717
  }
4718
4718
  for (var E = C(A.split("/")), l = C(g.split("/")), h = Math.min(E.length, l.length), w = h, u = 0; u < h; u++) if (E[u] !== l[u]) {
4719
4719
  w = u;
@@ -4909,12 +4909,12 @@ return ret;
4909
4909
  l || h.canHandle(g) && (h.handle(A, g, C, E), l = !0);
4910
4910
  }), l;
4911
4911
  }, yQ = (A, g, C, E, l, h, w, u, k, U) => {
4912
- var J = g ? cg.resolve(DA.join2(A, g)) : A;
4912
+ var H = g ? cg.resolve(DA.join2(A, g)) : A;
4913
4913
  function j(x) {
4914
4914
  function W(_) {
4915
4915
  U == null || U(), u || uQ(A, g, _, E, l, k), h == null || h(), OA();
4916
4916
  }
4917
- fQ(x, J, W, () => {
4917
+ fQ(x, H, W, () => {
4918
4918
  w == null || w(), OA();
4919
4919
  }) || W(x);
4920
4920
  }
@@ -4993,8 +4993,8 @@ return ret;
4993
4993
  if (l = r.lookupNode(l, E[w]), h = DA.join2(h, E[w]), r.isMountpoint(l) && (!u || u && g.follow_mount) && (l = l.mounted.root), !u || g.follow) for (var k = 0; r.isLink(l.mode); ) {
4994
4994
  var U = r.readlink(h);
4995
4995
  h = cg.resolve(DA.dirname(h), U);
4996
- var J = r.lookupPath(h, { recurse_count: g.recurse_count + 1 });
4997
- if (l = J.node, k++ > 40) throw new r.ErrnoError(32);
4996
+ var H = r.lookupPath(h, { recurse_count: g.recurse_count + 1 });
4997
+ if (l = H.node, k++ > 40) throw new r.ErrnoError(32);
4998
4998
  }
4999
4999
  }
5000
5000
  return { path: h, node: l };
@@ -5186,9 +5186,9 @@ return ret;
5186
5186
  var C = DA.dirname(A), E = DA.dirname(g), l = DA.basename(A), h = DA.basename(g), w, u, k;
5187
5187
  if (w = r.lookupPath(A, { parent: !0 }), u = w.node, w = r.lookupPath(g, { parent: !0 }), k = w.node, !u || !k) throw new r.ErrnoError(44);
5188
5188
  if (u.mount !== k.mount) throw new r.ErrnoError(75);
5189
- var U = r.lookupNode(u, l), J = cg.relative(A, E);
5190
- if (J.charAt(0) !== ".") throw new r.ErrnoError(28);
5191
- if (J = cg.relative(g, C), J.charAt(0) !== ".") throw new r.ErrnoError(55);
5189
+ var U = r.lookupNode(u, l), H = cg.relative(A, E);
5190
+ if (H.charAt(0) !== ".") throw new r.ErrnoError(28);
5191
+ if (H = cg.relative(g, C), H.charAt(0) !== ".") throw new r.ErrnoError(55);
5192
5192
  var j;
5193
5193
  try {
5194
5194
  j = r.lookupNode(k, h);
@@ -5460,7 +5460,7 @@ return ret;
5460
5460
  var u = ut(E, l), k = r.create(w, u);
5461
5461
  if (C) {
5462
5462
  if (typeof C == "string") {
5463
- for (var U = new Array(C.length), J = 0, j = C.length; J < j; ++J) U[J] = C.charCodeAt(J);
5463
+ for (var U = new Array(C.length), H = 0, j = C.length; H < j; ++H) U[H] = C.charCodeAt(H);
5464
5464
  C = U;
5465
5465
  }
5466
5466
  r.chmod(k, u | 146);
@@ -5476,8 +5476,8 @@ return ret;
5476
5476
  }, close(u) {
5477
5477
  var k;
5478
5478
  (k = E == null ? void 0 : E.buffer) != null && k.length && E(10);
5479
- }, read(u, k, U, J, j) {
5480
- for (var x = 0, W = 0; W < J; W++) {
5479
+ }, read(u, k, U, H, j) {
5480
+ for (var x = 0, W = 0; W < H; W++) {
5481
5481
  var _;
5482
5482
  try {
5483
5483
  _ = C();
@@ -5489,13 +5489,13 @@ return ret;
5489
5489
  x++, k[U + W] = _;
5490
5490
  }
5491
5491
  return x && (u.node.timestamp = Date.now()), x;
5492
- }, write(u, k, U, J, j) {
5493
- for (var x = 0; x < J; x++) try {
5492
+ }, write(u, k, U, H, j) {
5493
+ for (var x = 0; x < H; x++) try {
5494
5494
  E(k[U + x]);
5495
5495
  } catch {
5496
5496
  throw new r.ErrnoError(29);
5497
5497
  }
5498
- return J && (u.node.timestamp = Date.now()), x;
5498
+ return H && (u.node.timestamp = Date.now()), x;
5499
5499
  } }), r.mkdev(l, h, w);
5500
5500
  }, forceLoadFile(A) {
5501
5501
  if (A.isDevice || A.isFolder || A.link || A.contents) return !0;
@@ -5553,8 +5553,8 @@ return ret;
5553
5553
  u.contents ? k.contents = u.contents : u.url && (k.contents = null, k.url = u.url), Object.defineProperties(k, { usedBytes: { get: function() {
5554
5554
  return this.contents.length;
5555
5555
  } } });
5556
- var U = {}, J = Object.keys(k.stream_ops);
5557
- J.forEach((x) => {
5556
+ var U = {}, H = Object.keys(k.stream_ops);
5557
+ H.forEach((x) => {
5558
5558
  var W = k.stream_ops[x];
5559
5559
  U[x] = (..._) => (r.forceLoadFile(k), W(..._));
5560
5560
  });
@@ -5676,7 +5676,7 @@ return ret;
5676
5676
  }, JQ = (A, g, C, E) => {
5677
5677
  var l = G[E + 40 >> 2], h = { tm_sec: F[E >> 2], tm_min: F[E + 4 >> 2], tm_hour: F[E + 8 >> 2], tm_mday: F[E + 12 >> 2], tm_mon: F[E + 16 >> 2], tm_year: F[E + 20 >> 2], tm_wday: F[E + 24 >> 2], tm_yday: F[E + 28 >> 2], tm_isdst: F[E + 32 >> 2], tm_gmtoff: F[E + 36 >> 2], tm_zone: l ? Le(l) : "" }, w = Le(C), u = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
5678
5678
  for (var k in u) w = w.replace(new RegExp(k, "g"), u[k]);
5679
- var U = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], J = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
5679
+ var U = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], H = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
5680
5680
  function j(m, T, MA) {
5681
5681
  for (var wA = typeof m == "number" ? m.toString() : m || ""; wA.length < T; ) wA = MA[0] + wA;
5682
5682
  return wA;
@@ -5713,7 +5713,7 @@ return ret;
5713
5713
  var T = UQ(new Date(m.tm_year + 1900, 0, 1), m.tm_yday), MA = new Date(T.getFullYear(), 0, 4), wA = new Date(T.getFullYear() + 1, 0, 4), eg = _(MA), NA = _(wA);
5714
5714
  return W(eg, T) <= 0 ? W(NA, T) <= 0 ? T.getFullYear() + 1 : T.getFullYear() : T.getFullYear() - 1;
5715
5715
  }
5716
- var FA = { "%a": (m) => U[m.tm_wday].substring(0, 3), "%A": (m) => U[m.tm_wday], "%b": (m) => J[m.tm_mon].substring(0, 3), "%B": (m) => J[m.tm_mon], "%C": (m) => {
5716
+ var FA = { "%a": (m) => U[m.tm_wday].substring(0, 3), "%A": (m) => U[m.tm_wday], "%b": (m) => H[m.tm_mon].substring(0, 3), "%B": (m) => H[m.tm_mon], "%C": (m) => {
5717
5717
  var T = m.tm_year + 1900;
5718
5718
  return x(T / 100 | 0, 2);
5719
5719
  }, "%d": (m) => x(m.tm_mday, 2), "%e": (m) => j(m.tm_mday, 2, " "), "%g": (m) => yA(m).toString().substring(2), "%G": yA, "%H": (m) => x(m.tm_hour, 2), "%I": (m) => {
@@ -5947,7 +5947,7 @@ const On = [
5947
5947
  containerNode: D,
5948
5948
  offset: M ? d > f ? d : f : d
5949
5949
  });
5950
- const H = (z) => {
5950
+ const J = (z) => {
5951
5951
  const Y = document.createElement("span");
5952
5952
  return Xg(
5953
5953
  Y,
@@ -5967,7 +5967,7 @@ const On = [
5967
5967
  eA.removeAllRanges(), eA.addRange(a);
5968
5968
  const oA = document.createElement("div");
5969
5969
  oA.appendChild(a.cloneContents());
5970
- const SA = H(oA.innerHTML);
5970
+ const SA = J(oA.innerHTML);
5971
5971
  (CA = e.editorCore.value) == null || CA.content.update(SA);
5972
5972
  };
5973
5973
  if (p === R) {
@@ -5991,11 +5991,11 @@ const On = [
5991
5991
  highlightRange: n,
5992
5992
  unhighlightRange: i,
5993
5993
  revertRange: () => {
5994
- var p, R;
5994
+ var S, N, M, J;
5995
5995
  if (v(e) || v(e.editorCore.value)) return;
5996
5996
  i();
5997
- const { content: s } = e.editorCore.value, c = s.getParas(), a = document.createRange(), y = c[t.value.index], D = c[B.value.index], f = t.value.containerNode || (y == null ? void 0 : y.firstChild) || y, d = B.value.containerNode || (D == null ? void 0 : D.firstChild) || D;
5998
- a.setStart(f, t.value.offset ?? 0), a.setEnd(d, B.value.offset ?? 0), (p = getSelection()) == null || p.removeAllRanges(), (R = getSelection()) == null || R.addRange(a), e.editorCore.value.cursor._recordRange();
5997
+ const { content: s } = e.editorCore.value, c = s.getParas(), a = document.createRange(), y = c[t.value.index], D = c[B.value.index], f = (S = t.value.containerNode) != null && S.textContent ? t.value.containerNode : null, d = (N = B.value.containerNode) != null && N.textContent ? B.value.containerNode : null, p = f || (y == null ? void 0 : y.firstChild) || y, R = d || (D == null ? void 0 : D.firstChild) || D;
5998
+ a.setStart(p, t.value.offset ?? 0), a.setEnd(R, B.value.offset ?? 0), (M = getSelection()) == null || M.removeAllRanges(), (J = getSelection()) == null || J.addRange(a), e.editorCore.value.cursor._recordRange();
5999
5999
  }
6000
6000
  };
6001
6001
  }, _n = (e, t, I) => {
@@ -6066,7 +6066,7 @@ const On = [
6066
6066
  }, N = () => M().join("").length > t.maxLength, M = () => {
6067
6067
  var F;
6068
6068
  return ((F = B.value) == null ? void 0 : F.content.getTextContent()) ?? [];
6069
- }, H = (F) => B.value.content.insert(F), P = () => B.value.content.delete(), z = (F) => B.value.content.update(F), Y = () => B.value.cursor.isCaret(), q = () => B.value.cursor.isRange(), QA = () => {
6069
+ }, J = (F) => B.value.content.insert(F), P = () => B.value.content.delete(), z = (F) => B.value.content.update(F), Y = () => B.value.cursor.isCaret(), q = () => B.value.cursor.isRange(), QA = () => {
6070
6070
  var O;
6071
6071
  const F = (O = Q.value) == null ? void 0 : O.base.cursor.range;
6072
6072
  if (v(F)) return !1;
@@ -6164,7 +6164,7 @@ const On = [
6164
6164
  getMarkdownContent: R,
6165
6165
  appendContent: S,
6166
6166
  getTextContent: M,
6167
- insertContent: H,
6167
+ insertContent: J,
6168
6168
  deleteContent: P,
6169
6169
  updateContent: z,
6170
6170
  isCaret: Y,
@@ -6186,18 +6186,18 @@ const On = [
6186
6186
  __name: "contextMenu",
6187
6187
  setup(e) {
6188
6188
  const [t] = Cg("quick-context-menu"), I = ng(Hg), { x: B, y: Q } = It(), n = (S, N) => {
6189
- var M, H;
6190
- (H = (M = I == null ? void 0 : I.editorAction.value) == null ? void 0 : M.plugin.pausation) == null || H.add({ delay: N }), y(!1);
6189
+ var M, J;
6190
+ (J = (M = I == null ? void 0 : I.editorAction.value) == null ? void 0 : M.plugin.pausation) == null || J.add({ delay: N }), y(!1);
6191
6191
  }, i = async () => {
6192
6192
  let S = "", N = [];
6193
- S = await (window.microApp ? window.rawWindow.navigator : window.navigator).clipboard.readText(), N = (S == null ? void 0 : S.split(/(?:\r?\n){2,}/).map((H) => H.trim()).filter((H) => H)) ?? [], tt(
6193
+ S = await (window.microApp ? window.rawWindow.navigator : window.navigator).clipboard.readText(), N = (S == null ? void 0 : S.split(/(?:\r?\n){2,}/).map((J) => J.trim()).filter((J) => J)) ?? [], tt(
6194
6194
  I.editorCore.value,
6195
6195
  At(I.editorCore.value, N)
6196
6196
  ), y(!1);
6197
6197
  }, o = XA(), s = XA(!1), c = XA({ zIndex: -10 }), a = eE(), y = (S) => {
6198
6198
  s.value = S ?? !s.value, p(!1);
6199
6199
  }, D = (S) => {
6200
- const N = S.target, [M] = PA(N, (H) => H.classList.contains(ei));
6200
+ const N = S.target, [M] = PA(N, (J) => J.classList.contains(ei));
6201
6201
  M && (S.preventDefault(), S.stopPropagation(), c.value = { top: `${Q.value}px`, left: `${B.value}px` }, y(!0));
6202
6202
  }, f = (S) => {
6203
6203
  var N;
@@ -6206,7 +6206,7 @@ const On = [
6206
6206
  var N;
6207
6207
  (N = d.value) == null || N.$el.setAttribute("style", S ? "display: block" : "display: none");
6208
6208
  }, R = (S) => {
6209
- const N = S.target, [M] = PA(N, (H) => H.dataset.type === "pausation" || H.classList.contains("pausation"));
6209
+ const N = S.target, [M] = PA(N, (J) => J.dataset.type === "pausation" || J.classList.contains("pausation"));
6210
6210
  p(!!M);
6211
6211
  };
6212
6212
  return Vg(() => {
@@ -6497,7 +6497,7 @@ const Ki = /* @__PURE__ */ YA(Ji, [["render", Yi]]), bC = () => {
6497
6497
  var c;
6498
6498
  v(t) || v(t.editorCore.value) || (I.revertRange(), tt(t == null ? void 0 : t.editorCore.value, (((c = I.activedContent.value) == null ? void 0 : c.content) ?? "").split(se)), I.setVisible(!1));
6499
6499
  }, i = () => {
6500
- var H;
6500
+ var J;
6501
6501
  if (v(t) || v(t.editorCore.value)) return;
6502
6502
  const c = (P) => {
6503
6503
  const z = document.createElement("p");
@@ -6512,7 +6512,7 @@ const Ki = /* @__PURE__ */ YA(Ji, [["render", Yi]]), bC = () => {
6512
6512
  if (v(y) || v(y.parentNode)) return;
6513
6513
  const D = document.createRange();
6514
6514
  D.setStart(a.endContainer, a.endOffset), D.setEndAfter(y);
6515
- const f = D.extractContents(), d = (((H = I.activedContent.value) == null ? void 0 : H.content) ?? "").split(se), p = document.createDocumentFragment();
6515
+ const f = D.extractContents(), d = (((J = I.activedContent.value) == null ? void 0 : J.content) ?? "").split(se), p = document.createDocumentFragment();
6516
6516
  d.forEach((P) => {
6517
6517
  p.appendChild(c(P));
6518
6518
  });
@@ -6827,10 +6827,10 @@ const TC = /* @__PURE__ */ YA(Vi, [["render", Xi]]), [CC] = Cg("refine-input"),
6827
6827
  t.scrollElm.value.getBoundingClientRect().width - // 工具栏宽度
6828
6828
  172 - // 容器内边距
6829
6829
  16
6830
- ), H = S.left + (S.width - 172) / 2;
6830
+ ), J = S.left + (S.width - 172) / 2;
6831
6831
  i({
6832
6832
  top: `${S.top + (((z = t.scrollElm.value) == null ? void 0 : z.scrollTop) ?? 0)}px`,
6833
- left: `${H <= 0 ? N : H >= M ? M : H}px`
6833
+ left: `${J <= 0 ? N : J >= M ? M : J}px`
6834
6834
  });
6835
6835
  }, c = (R) => {
6836
6836
  var S;
@@ -6984,15 +6984,15 @@ const TC = /* @__PURE__ */ YA(Vi, [["render", Xi]]), [CC] = Cg("refine-input"),
6984
6984
  }, M = (gA) => {
6985
6985
  var gg;
6986
6986
  p.value && ((gg = D.value) != null && gg.contains(gA.target) || (I(), R(!1)));
6987
- }, H = Ve(() => {
6987
+ }, J = Ve(() => {
6988
6988
  p.value && S();
6989
6989
  }), [P, z] = TA(void 0);
6990
6990
  Vg(() => {
6991
6991
  var gA;
6992
- z(document.body.querySelector(".c-editor-container--refinable")), document.addEventListener("mousedown", M), (gA = P.value) == null || gA.addEventListener("scroll", H);
6992
+ z(document.body.querySelector(".c-editor-container--refinable")), document.addEventListener("mousedown", M), (gA = P.value) == null || gA.addEventListener("scroll", J);
6993
6993
  }), $t(() => {
6994
6994
  var gA;
6995
- document.removeEventListener("mousedown", M), (gA = P.value) == null || gA.removeEventListener("scroll", H);
6995
+ document.removeEventListener("mousedown", M), (gA = P.value) == null || gA.removeEventListener("scroll", J);
6996
6996
  });
6997
6997
  const Y = $Q(e.width) ? `${e.width}px` : e.width, [q, QA] = qe(), [eA, oA] = TA(void 0), [SA, CA] = qe(!0), [kA, nA] = qe(), [tA, sA] = TA($A.未生成), [WA, F] = TA(0), [G, V] = TA([]), [O, Z] = TA(void 0), UA = {
6998
6998
  name: "RefineGenerator",
@@ -7292,7 +7292,7 @@ const QC = /* @__PURE__ */ YA(nr, [["render", ir]]), [JA] = Cg("editor-container
7292
7292
  deleteContent: S,
7293
7293
  updateContent: N,
7294
7294
  isCaret: M,
7295
- isRange: H,
7295
+ isRange: J,
7296
7296
  isSelectionInDifferentParas: P,
7297
7297
  isSelectionContainsTag: z,
7298
7298
  convertToContent: Y,
@@ -7321,7 +7321,7 @@ const QC = /* @__PURE__ */ YA(nr, [["render", ir]]), [JA] = Cg("editor-container
7321
7321
  deleteContent: S,
7322
7322
  updateContent: N,
7323
7323
  isCaret: M,
7324
- isRange: H,
7324
+ isRange: J,
7325
7325
  isSelectionContainsTag: z,
7326
7326
  getAnchorTtsMark: q,
7327
7327
  getAnchorTtsEmotionAndRole: QA,
@@ -7547,7 +7547,7 @@ const QC = /* @__PURE__ */ YA(nr, [["render", ir]]), [JA] = Cg("editor-container
7547
7547
  innerDeleteContent: S,
7548
7548
  innerUpdateContent: N,
7549
7549
  innerIsCaret: M,
7550
- innerIsRange: H,
7550
+ innerIsRange: J,
7551
7551
  innerIsSelectionInDifferentParas: P,
7552
7552
  innerIsSelectionContainsTag: z,
7553
7553
  innerConvertToContent: Y,