@creatorsn/powereditor3 0.2.4 → 0.2.6

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,4 +1,4 @@
1
- import { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, normalizeClass as tt, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as Ye, withDirectives as Ut, createVNode as ae, createTextVNode as ir, vShow as Wt, Fragment as Vr, renderList as wi, normalizeStyle as ut, renderSlot as mt, withKeys as to, Transition as Dc, vModelText as j4 } from "vue";
1
+ import { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, normalizeClass as Ye, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as Ze, withDirectives as Ut, createVNode as ae, createTextVNode as ir, vShow as Wt, Fragment as Vr, renderList as wi, normalizeStyle as ut, renderSlot as mt, withKeys as to, Transition as Dc, vModelText as j4 } from "vue";
2
2
  function an(n) {
3
3
  this.content = n;
4
4
  }
@@ -21112,7 +21112,7 @@ function nT() {
21112
21112
  scope: "number",
21113
21113
  begin: Q,
21114
21114
  relevance: 0
21115
- }, Ze = {
21115
+ }, Xe = {
21116
21116
  // this outer rule makes sure we actually have a WHOLE regex and not simply
21117
21117
  // an expression such as:
21118
21118
  //
@@ -21135,7 +21135,7 @@ function nT() {
21135
21135
  }
21136
21136
  ]
21137
21137
  }]
21138
- }, Xe = {
21138
+ }, Je = {
21139
21139
  scope: "title",
21140
21140
  begin: q,
21141
21141
  relevance: 0
@@ -21169,8 +21169,8 @@ function nT() {
21169
21169
  NUMBER_MODE: Te,
21170
21170
  C_NUMBER_MODE: Ve,
21171
21171
  BINARY_NUMBER_MODE: yt,
21172
- REGEXP_MODE: Ze,
21173
- TITLE_MODE: Xe,
21172
+ REGEXP_MODE: Xe,
21173
+ TITLE_MODE: Je,
21174
21174
  UNDERSCORE_TITLE_MODE: vt,
21175
21175
  METHOD_GUARD: qe,
21176
21176
  END_SAME_AS_BEGIN: function(M) {
@@ -22047,12 +22047,12 @@ const on = (n, e) => {
22047
22047
  function gT(n, e, t, r, i, o) {
22048
22048
  const s = Me("fv-button"), a = Me("fv-DropDown"), l = Me("node-view-content"), c = Me("node-view-wrapper");
22049
22049
  return He(), rn(c, {
22050
- class: tt(["power-editor-code-block", [{ dark: i.thisTheme === "dark" }]])
22050
+ class: Ye(["power-editor-code-block", [{ dark: i.thisTheme === "dark" }]])
22051
22051
  }, {
22052
22052
  default: ie(() => [
22053
22053
  X("div", uT, [
22054
22054
  X("div", dT, [
22055
- X("p", hT, Ye(t.node.attrs.language || "auto"), 1)
22055
+ X("p", hT, Ze(t.node.attrs.language || "auto"), 1)
22056
22056
  ]),
22057
22057
  X("div", fT, [
22058
22058
  Ut(ae(a, {
@@ -22076,7 +22076,7 @@ function gT(n, e, t, r, i, o) {
22076
22076
  style: { width: "80px", float: "right" }
22077
22077
  }, {
22078
22078
  default: ie(() => [
22079
- ir(Ye(o.selectedLanguage[0].text || "Default"), 1)
22079
+ ir(Ze(o.selectedLanguage[0].text || "Default"), 1)
22080
22080
  ]),
22081
22081
  _: 2
22082
22082
  }, 1032, ["theme", "background", "title"])
@@ -22096,7 +22096,7 @@ function gT(n, e, t, r, i, o) {
22096
22096
  }, {
22097
22097
  default: ie(() => [
22098
22098
  X("i", {
22099
- class: tt(["ms-Icon", [`ms-Icon--${i.status.copy ? "Accept" : "Set"}`]])
22099
+ class: Ye(["ms-Icon", [`ms-Icon--${i.status.copy ? "Accept" : "Set"}`]])
22100
22100
  }, null, 2)
22101
22101
  ]),
22102
22102
  _: 1
@@ -22104,7 +22104,7 @@ function gT(n, e, t, r, i, o) {
22104
22104
  ])
22105
22105
  ]),
22106
22106
  X("pre", {
22107
- class: tt(["power-editor-code-block-pre", [
22107
+ class: Ye(["power-editor-code-block-pre", [
22108
22108
  {
22109
22109
  lineNumber: t.editor.storage.defaultStorage.codeBlockLineNumbers
22110
22110
  }
@@ -22120,7 +22120,7 @@ function gT(n, e, t, r, i, o) {
22120
22120
  key: d,
22121
22121
  class: "power-editor-code-block-line-number-item",
22122
22122
  title: d + 1
22123
- }, Ye(d + 1), 9, mT))), 128))
22123
+ }, Ze(d + 1), 9, mT))), 128))
22124
22124
  ])) : Pt("", !0)
22125
22125
  ]),
22126
22126
  _: 1
@@ -45507,7 +45507,7 @@ function iM(n) {
45507
45507
  /\[/,
45508
45508
  /%/
45509
45509
  ]
45510
- }, Ze = {
45510
+ }, Xe = {
45511
45511
  match: [
45512
45512
  /\b(?:subscript|init[?!]?)/,
45513
45513
  /\s*(?=[<(])/
@@ -45519,7 +45519,7 @@ function iM(n) {
45519
45519
  e
45520
45520
  ],
45521
45521
  illegal: /\[|%/
45522
- }, Xe = {
45522
+ }, Je = {
45523
45523
  match: [
45524
45524
  /operator/,
45525
45525
  /\s+/,
@@ -45575,7 +45575,7 @@ function iM(n) {
45575
45575
  contains: [
45576
45576
  ...r,
45577
45577
  yt,
45578
- Ze,
45578
+ Xe,
45579
45579
  {
45580
45580
  beginKeywords: "struct protocol class extension enum actor",
45581
45581
  end: "\\{",
@@ -45589,7 +45589,7 @@ function iM(n) {
45589
45589
  ...u
45590
45590
  ]
45591
45591
  },
45592
- Xe,
45592
+ Je,
45593
45593
  vt,
45594
45594
  {
45595
45595
  beginKeywords: "import",
@@ -50509,25 +50509,25 @@ function Ope() {
50509
50509
  return N(Te + (D + 1) * te / (te + d));
50510
50510
  }
50511
50511
  function oe(te) {
50512
- var me = [], ye = te.length, Te, Ve = 0, yt = f, Ze = b, Xe, vt, qe, Bt, nt, gt, It, Tt, at;
50513
- for (Xe = te.lastIndexOf(y), Xe < 0 && (Xe = 0), vt = 0; vt < Xe; ++vt)
50512
+ var me = [], ye = te.length, Te, Ve = 0, yt = f, Xe = b, Je, vt, qe, Bt, nt, gt, It, Tt, at;
50513
+ for (Je = te.lastIndexOf(y), Je < 0 && (Je = 0), vt = 0; vt < Je; ++vt)
50514
50514
  te.charCodeAt(vt) >= 128 && q("not-basic"), me.push(te.charCodeAt(vt));
50515
- for (qe = Xe > 0 ? Xe + 1 : 0; qe < ye; ) {
50516
- for (Bt = Ve, nt = 1, gt = l; qe >= ye && q("invalid-input"), It = ne(te.charCodeAt(qe++)), (It >= l || It > N((a - Ve) / nt)) && q("overflow"), Ve += It * nt, Tt = gt <= Ze ? c : gt >= Ze + u ? u : gt - Ze, !(It < Tt); gt += l)
50515
+ for (qe = Je > 0 ? Je + 1 : 0; qe < ye; ) {
50516
+ for (Bt = Ve, nt = 1, gt = l; qe >= ye && q("invalid-input"), It = ne(te.charCodeAt(qe++)), (It >= l || It > N((a - Ve) / nt)) && q("overflow"), Ve += It * nt, Tt = gt <= Xe ? c : gt >= Xe + u ? u : gt - Xe, !(It < Tt); gt += l)
50517
50517
  at = l - Tt, nt > N(a / at) && q("overflow"), nt *= at;
50518
- Te = me.length + 1, Ze = j(Ve - Bt, Te, Bt == 0), N(Ve / Te) > a - yt && q("overflow"), yt += N(Ve / Te), Ve %= Te, me.splice(Ve++, 0, yt);
50518
+ Te = me.length + 1, Xe = j(Ve - Bt, Te, Bt == 0), N(Ve / Te) > a - yt && q("overflow"), yt += N(Ve / Te), Ve %= Te, me.splice(Ve++, 0, yt);
50519
50519
  }
50520
50520
  return Q(me);
50521
50521
  }
50522
50522
  function re(te) {
50523
- var me, ye, Te, Ve, yt, Ze, Xe, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
50524
- for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Ze = 0; Ze < It; ++Ze)
50525
- nt = te[Ze], nt < 128 && gt.push(O(nt));
50523
+ var me, ye, Te, Ve, yt, Xe, Je, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
50524
+ for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Xe = 0; Xe < It; ++Xe)
50525
+ nt = te[Xe], nt < 128 && gt.push(O(nt));
50526
50526
  for (Te = Ve = gt.length, Ve && gt.push(y); Te < It; ) {
50527
- for (Xe = a, Ze = 0; Ze < It; ++Ze)
50528
- nt = te[Ze], nt >= me && nt < Xe && (Xe = nt);
50529
- for (Tt = Te + 1, Xe - me > N((a - ye) / Tt) && q("overflow"), ye += (Xe - me) * Tt, me = Xe, Ze = 0; Ze < It; ++Ze)
50530
- if (nt = te[Ze], nt < me && ++ye > a && q("overflow"), nt == me) {
50527
+ for (Je = a, Xe = 0; Xe < It; ++Xe)
50528
+ nt = te[Xe], nt >= me && nt < Je && (Je = nt);
50529
+ for (Tt = Te + 1, Je - me > N((a - ye) / Tt) && q("overflow"), ye += (Je - me) * Tt, me = Je, Xe = 0; Xe < It; ++Xe)
50530
+ if (nt = te[Xe], nt < me && ++ye > a && q("overflow"), nt == me) {
50531
50531
  for (vt = ye, qe = l; Bt = qe <= yt ? c : qe >= yt + u ? u : qe - yt, !(vt < Bt); qe += l)
50532
50532
  en = vt - Bt, at = l - Bt, gt.push(
50533
50533
  O(V(Bt + en % at, 0))
@@ -53186,14 +53186,14 @@ function Gpe() {
53186
53186
  j = re = he = B, oe = null;
53187
53187
  var Z = "Size1-Regular";
53188
53188
  B === "\\uparrow" ? re = he = "⏐" : B === "\\Uparrow" ? re = he = "‖" : B === "\\downarrow" ? j = re = "⏐" : B === "\\Downarrow" ? j = re = "‖" : B === "\\updownarrow" ? (j = "\\uparrow", re = "⏐", he = "\\downarrow") : B === "\\Updownarrow" ? (j = "\\Uparrow", re = "‖", he = "\\Downarrow") : B === "[" || B === "\\lbrack" ? (j = "⎡", re = "⎢", he = "⎣", Z = "Size4-Regular") : B === "]" || B === "\\rbrack" ? (j = "⎤", re = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\lfloor" ? (re = j = "⎢", he = "⎣", Z = "Size4-Regular") : B === "\\lceil" ? (j = "⎡", re = he = "⎢", Z = "Size4-Regular") : B === "\\rfloor" ? (re = j = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\rceil" ? (j = "⎤", re = he = "⎥", Z = "Size4-Regular") : B === "(" ? (j = "⎛", re = "⎜", he = "⎝", Z = "Size4-Regular") : B === ")" ? (j = "⎞", re = "⎟", he = "⎠", Z = "Size4-Regular") : B === "\\{" || B === "\\lbrace" ? (j = "⎧", oe = "⎨", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\}" || B === "\\rbrace" ? (j = "⎫", oe = "⎬", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lgroup" ? (j = "⎧", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\rgroup" ? (j = "⎫", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lmoustache" ? (j = "⎧", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\rmoustache" ? (j = "⎫", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\surd" && (j = "", he = "⎷", re = "", Z = "Size4-Regular");
53189
- var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth, Ze = 0, Xe = 1;
53189
+ var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth, Xe = 0, Je = 1;
53190
53190
  if (oe !== null) {
53191
53191
  var vt = a(oe, Z);
53192
- Ze = vt.height + vt.depth, Xe = 2;
53192
+ Xe = vt.height + vt.depth, Je = 2;
53193
53193
  }
53194
- var qe = me + yt + Ze, Bt = Math.ceil(
53195
- (K - qe) / (Xe * Te)
53196
- ), nt = qe + Bt * Xe * Te, gt = r.metrics.axisHeight;
53194
+ var qe = me + yt + Xe, Bt = Math.ceil(
53195
+ (K - qe) / (Je * Te)
53196
+ ), nt = qe + Bt * Je * Te, gt = r.metrics.axisHeight;
53197
53197
  Q && (gt *= ne.style.sizeMultiplier);
53198
53198
  var It = nt / 2 - gt, Tt = [];
53199
53199
  Tt.push(m(he, Z, V));
@@ -53597,7 +53597,7 @@ function Vpe() {
53597
53597
  }
53598
53598
  me.height = Z, me.depth = te, re += Z, me.pos = re, re += te + Te, U[N] = me;
53599
53599
  }
53600
- var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Ze = [], Xe, vt;
53600
+ var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Xe = [], Je, vt;
53601
53601
  for (
53602
53602
  O = 0, vt = 0;
53603
53603
  // Continue while either there are more columns or more column
@@ -53606,12 +53606,12 @@ function Vpe() {
53606
53606
  ++O, ++vt
53607
53607
  ) {
53608
53608
  for (var qe = yt[vt] || {}, Bt = !0; qe.type === "separator"; ) {
53609
- if (Bt || (Xe = a(["arraycolsep"], []), Xe.style.width = o.metrics.doubleRuleSep + "em", Ze.push(Xe)), qe.separator === "|") {
53609
+ if (Bt || (Je = a(["arraycolsep"], []), Je.style.width = o.metrics.doubleRuleSep + "em", Xe.push(Je)), qe.separator === "|") {
53610
53610
  var nt = a(
53611
53611
  ["vertical-separator"],
53612
53612
  []
53613
53613
  );
53614
- nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Ze.push(nt);
53614
+ nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Xe.push(nt);
53615
53615
  } else
53616
53616
  throw new n(
53617
53617
  "Invalid separator type: " + qe.separator
@@ -53620,7 +53620,7 @@ function Vpe() {
53620
53620
  }
53621
53621
  if (!(O >= q)) {
53622
53622
  var gt;
53623
- (O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
53623
+ (O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (Je = a(["arraycolsep"], []), Je.style.width = gt + "em", Xe.push(Je)));
53624
53624
  var It = [];
53625
53625
  for (N = 0; N < z; ++N) {
53626
53626
  var Tt = U[N], at = Tt[O];
@@ -53632,10 +53632,10 @@ function Vpe() {
53632
53632
  It = t.makeVList(It, "individualShift", null, k), It = a(
53633
53633
  ["col-align-" + (qe.align || "c")],
53634
53634
  [It]
53635
- ), Ze.push(It), (O < q - 1 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.postgap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
53635
+ ), Xe.push(It), (O < q - 1 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.postgap, K), gt !== 0 && (Je = a(["arraycolsep"], []), Je.style.width = gt + "em", Xe.push(Je)));
53636
53636
  }
53637
53637
  }
53638
- return U = a(["mtable"], Ze), a(["mord"], [U], k.getColor());
53638
+ return U = a(["mtable"], Xe), a(["mord"], [U], k.getColor());
53639
53639
  }, y.spacing = function(C, k, D) {
53640
53640
  return C.value === "\\ " || C.value === "\\space" || C.value === " " || C.value === "~" ? a(
53641
53641
  ["mord", "mspace"],
@@ -56894,7 +56894,7 @@ const Yn = (n, e = "en") => {
56894
56894
  function xme(n, e, t, r, i, o) {
56895
56895
  const s = Me("fv-button"), a = Me("fv-text-box");
56896
56896
  return He(), ot("div", {
56897
- class: tt(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
56897
+ class: Ye(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
56898
56898
  style: ut({ width: i.moveable ? `${i.elWidthEnd}px` : o.normalizeWidthValue(i.currentWidth) })
56899
56899
  }, [
56900
56900
  Ut(X("div", {
@@ -57014,7 +57014,7 @@ function xme(n, e, t, r, i, o) {
57014
57014
  onClick: o.newline
57015
57015
  }, {
57016
57016
  default: ie(() => [
57017
- ir(Ye(o.getTitle("Newline")), 1)
57017
+ ir(Ze(o.getTitle("Newline")), 1)
57018
57018
  ]),
57019
57019
  _: 1
57020
57020
  }, 8, ["background", "theme", "title", "onClick"])
@@ -57027,7 +57027,7 @@ function xme(n, e, t, r, i, o) {
57027
57027
  Ut(X("p", {
57028
57028
  class: "power-editor-media-container-caption",
57029
57029
  onClick: e[16] || (e[16] = (...l) => o.showCaptionBox && o.showCaptionBox(...l))
57030
- }, Ye(i.thisCaption), 513), [
57030
+ }, Ze(i.thisCaption), 513), [
57031
57031
  [Wt, i.thisCaption !== "" && !i.show.captionBox]
57032
57032
  ]),
57033
57033
  Ut(ae(a, {
@@ -57141,12 +57141,13 @@ const Lp = /* @__PURE__ */ on(_me, [["render", xme]]), kme = {
57141
57141
  },
57142
57142
  computed: {
57143
57143
  displayHeight() {
57144
- var n;
57145
- if (this.imgStatus === "error")
57144
+ var n, e;
57145
+ if (this.imgStatus === "init" || this.imgStatus === "error") {
57146
+ if (this.statusInfo.tmpHeight <= 0) {
57147
+ const t = (this.node.attrs.naturalWidth || 0) / (this.node.attrs.naturalHeight || 1e-6);
57148
+ return (((e = (n = this.$refs.mediaContainer) == null ? void 0 : n.$el) == null ? void 0 : e.clientWidth) || 0) / t + "px";
57149
+ }
57146
57150
  return this.statusInfo.tmpHeight + "px";
57147
- if (this.imgStatus === "init") {
57148
- const e = (this.node.attrs.naturalWidth || 0) / (this.node.attrs.naturalHeight || 1e-6);
57149
- return (((n = this.$el) == null ? void 0 : n.clientWidth) || 0) / e + "px";
57150
57151
  }
57151
57152
  return "";
57152
57153
  }
@@ -57221,7 +57222,7 @@ function Eme(n, e, t, r, i, o) {
57221
57222
  const s = Me("fv-image"), a = Me("fv-progress-ring"), l = Me("media-container"), c = Me("fv-img"), u = Me("fv-button"), d = Me("fv-text-box"), m = Me("node-view-wrapper");
57222
57223
  return t.node ? (He(), rn(m, {
57223
57224
  key: 0,
57224
- class: tt(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
57225
+ class: Ye(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
57225
57226
  style: ut({
57226
57227
  "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start"
57227
57228
  })
@@ -57238,6 +57239,7 @@ function Eme(n, e, t, r, i, o) {
57238
57239
  foreground: i.thisForeground,
57239
57240
  node: t.node,
57240
57241
  getPos: t.getPos,
57242
+ ref: "mediaContainer",
57241
57243
  "onUpdate:caption": e[3] || (e[3] = (b) => t.updateAttributes({ caption: b })),
57242
57244
  onContainerDblclick: e[4] || (e[4] = (b) => o.preview("editable")),
57243
57245
  onContainerClick: e[5] || (e[5] = (b) => o.preview("readonly"))
@@ -57263,14 +57265,14 @@ function Eme(n, e, t, r, i, o) {
57263
57265
  color: i.thisTheme === "dark" ? "white" : "black",
57264
57266
  background: i.thisTheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)"
57265
57267
  }, null, 8, ["modelValue", "loading", "color", "background"]),
57266
- Ut(X("p", { class: "power-editor-image-status-title" }, Ye(i.statusInfo.info), 513), [
57268
+ Ut(X("p", { class: "power-editor-image-status-title" }, Ze(i.statusInfo.info), 513), [
57267
57269
  [Wt, i.statusInfo.info]
57268
57270
  ])
57269
57271
  ], 512), [
57270
57272
  [Wt, i.statusInfo.show]
57271
57273
  ]),
57272
57274
  X("div", {
57273
- class: tt(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
57275
+ class: Ye(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
57274
57276
  style: ut({ "--selected-bg": i.thisForeground })
57275
57277
  }, null, 6)
57276
57278
  ]),
@@ -58697,7 +58699,7 @@ H400000v` + (40 + h) + `H845.2724
58697
58699
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
58698
58700
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
58699
58701
  M` + (834 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
58700
- }, Ze = function(h, p) {
58702
+ }, Xe = function(h, p) {
58701
58703
  return "M263," + (601 + h + p) + `c0.7,0,18,39.7,52,119
58702
58704
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
58703
58705
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -58709,7 +58711,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
58709
58711
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
58710
58712
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
58711
58713
  M` + (1001 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
58712
- }, Xe = function(h, p) {
58714
+ }, Je = function(h, p) {
58713
58715
  return "M983 " + (10 + h + p) + `
58714
58716
  l` + h / 3.13 + " -" + h + `
58715
58717
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + h) + `
@@ -58759,10 +58761,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
58759
58761
  _ = yt(p, Ve);
58760
58762
  break;
58761
58763
  case "sqrtSize1":
58762
- _ = Ze(p, Ve);
58764
+ _ = Xe(p, Ve);
58763
58765
  break;
58764
58766
  case "sqrtSize2":
58765
- _ = Xe(p, Ve);
58767
+ _ = Je(p, Ve);
58766
58768
  break;
58767
58769
  case "sqrtSize3":
58768
58770
  _ = vt(p, Ve);
@@ -61889,8 +61891,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
61889
61891
  var Be = ti("textrm", p.fontWeight, p.fontShape);
61890
61892
  return kn(w, Be, _, p, E.concat(p.fontWeight, p.fontShape));
61891
61893
  } else {
61892
- var et = ti(Ee, p.fontWeight, p.fontShape);
61893
- return kn(w, et, _, p, E.concat(et, p.fontWeight, p.fontShape));
61894
+ var tt = ti(Ee, p.fontWeight, p.fontShape);
61895
+ return kn(w, tt, _, p, E.concat(tt, p.fontWeight, p.fontShape));
61894
61896
  }
61895
61897
  } else
61896
61898
  throw new Error("unexpected type: " + g + " in makeOrd");
@@ -61991,8 +61993,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
61991
61993
  if (we.type === "kern")
61992
61994
  ue += we.size;
61993
61995
  else {
61994
- var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, et = Ft(Ae, [G, Ee], void 0, Be);
61995
- et.style.top = -E - ue - Ee.depth + "em", we.marginLeft && (et.style.marginLeft = we.marginLeft), we.marginRight && (et.style.marginRight = we.marginRight), Y.push(et), ue += Ee.height + Ee.depth;
61996
+ var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, tt = Ft(Ae, [G, Ee], void 0, Be);
61997
+ tt.style.top = -E - ue - Ee.depth + "em", we.marginLeft && (tt.style.marginLeft = we.marginLeft), we.marginRight && (tt.style.marginRight = we.marginRight), Y.push(tt), ue += Ee.height + Ee.depth;
61996
61998
  }
61997
61999
  se = Math.min(se, ue), ce = Math.max(ce, ue);
61998
62000
  }
@@ -62246,7 +62248,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62246
62248
  }, sn = function(h, p, g, _) {
62247
62249
  _ === void 0 && (_ = [null, null]);
62248
62250
  for (var w = [], E = 0; E < h.length; E++) {
62249
- var R = Je(h[E], p);
62251
+ var R = et(h[E], p);
62250
62252
  if (R instanceof at) {
62251
62253
  var L = R.children;
62252
62254
  w.push.apply(w, L);
@@ -62312,7 +62314,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62312
62314
  }, gs = function(h, p) {
62313
62315
  var g = ["nulldelimiter"].concat(h.baseSizingClasses());
62314
62316
  return Nr(p.concat(g));
62315
- }, Je = function(h, p, g) {
62317
+ }, et = function(h, p, g) {
62316
62318
  if (!h)
62317
62319
  return Nr();
62318
62320
  if (Na[h.type]) {
@@ -62659,7 +62661,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62659
62661
  height: ue
62660
62662
  };
62661
62663
  } else {
62662
- var Ae = [], Be = W6[F], et = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = et.length, $t, Mt;
62664
+ var Ae = [], Be = W6[F], tt = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = tt.length, $t, Mt;
62663
62665
  if (pt === 1) {
62664
62666
  var Dn = Be[3];
62665
62667
  $t = ["hide-tail"], Mt = [Dn];
@@ -62671,7 +62673,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62671
62673
  throw new Error(`Correct katexImagesData or update code here to support
62672
62674
  ` + pt + " children.");
62673
62675
  for (var Nn = 0; Nn < pt; Nn++) {
62674
- var oi = new ur(et[Nn]), gr = new dn([oi], {
62676
+ var oi = new ur(tt[Nn]), gr = new dn([oi], {
62675
62677
  width: "400em",
62676
62678
  height: ct + "em",
62677
62679
  viewBox: "0 0 " + L + " " + Lt,
@@ -62744,10 +62746,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62744
62746
  }
62745
62747
  var xu = function(h, p) {
62746
62748
  var g, _, w;
62747
- h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(Je(h, p)), h.base = _) : (_ = We(h, "accent"), g = _.base);
62748
- var E = Je(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
62749
+ h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(et(h, p)), h.base = _) : (_ = We(h, "accent"), g = _.base);
62750
+ var E = et(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
62749
62751
  if (R) {
62750
- var F = x.getBaseElem(g), G = Je(F, p.havingCrampedStyle());
62752
+ var F = x.getBaseElem(g), G = et(F, p.havingCrampedStyle());
62751
62753
  L = Ri(G).skew;
62752
62754
  }
62753
62755
  var Y = _.label === "\\c", se = Y ? E.height + E.depth : Math.min(E.height, p.fontMetrics().xHeight), ce;
@@ -62856,7 +62858,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62856
62858
  };
62857
62859
  },
62858
62860
  htmlBuilder: function(h, p) {
62859
- var g = Je(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
62861
+ var g = et(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
62860
62862
  positionType: "top",
62861
62863
  positionData: g.height,
62862
62864
  children: [{
@@ -62931,10 +62933,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62931
62933
  // Flow is unable to correctly infer the type of `group`, even though it's
62932
62934
  // unamibiguously determined from the passed-in `type` above.
62933
62935
  htmlBuilder: function(h, p) {
62934
- var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(Je(h.body, _, p), p), E = h.label.slice(0, 2) === "\\x" ? "x" : "cd";
62936
+ var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(et(h.body, _, p), p), E = h.label.slice(0, 2) === "\\x" ? "x" : "cd";
62935
62937
  w.classes.push(E + "-arrow-pad");
62936
62938
  var R;
62937
- h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(Je(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
62939
+ h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(et(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
62938
62940
  var L = Rr.svgSpan(h, p), F = -p.fontMetrics().axisHeight + 0.5 * L.height, G = -p.fontMetrics().axisHeight - 0.5 * L.height - 0.111;
62939
62941
  (w.depth > 0.25 || h.label === "\\xleftequilibrium") && (G -= w.depth);
62940
62942
  var Y;
@@ -63140,7 +63142,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63140
63142
  };
63141
63143
  },
63142
63144
  htmlBuilder: function(h, p) {
63143
- var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(Je(h.label, g, p), p);
63145
+ var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(et(h.label, g, p), p);
63144
63146
  return _.classes.push("cd-label-" + h.side), _.style.bottom = 0.8 - _.depth + "em", _.height = 0, _.depth = 0, _;
63145
63147
  },
63146
63148
  mathmlBuilder: function(h, p) {
@@ -63162,7 +63164,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63162
63164
  };
63163
63165
  },
63164
63166
  htmlBuilder: function(h, p) {
63165
- var g = W.wrapFragment(Je(h.fragment, p), p);
63167
+ var g = W.wrapFragment(et(h.fragment, p), p);
63166
63168
  return g.classes.push("cd-vert-arrow"), g;
63167
63169
  },
63168
63170
  mathmlBuilder: function(h, p) {
@@ -63444,8 +63446,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63444
63446
  h === "\\uparrow" ? F = G = "⏐" : h === "\\Uparrow" ? F = G = "‖" : h === "\\downarrow" ? R = F = "⏐" : h === "\\Downarrow" ? R = F = "‖" : h === "\\updownarrow" ? (R = "\\uparrow", F = "⏐", G = "\\downarrow") : h === "\\Updownarrow" ? (R = "\\Uparrow", F = "‖", G = "\\Downarrow") : x.contains(i5, h) ? F = "∣" : x.contains(o5, h) ? F = "∥" : h === "[" || h === "\\lbrack" ? (R = "⎡", F = "⎢", G = "⎣", Y = "Size4-Regular") : h === "]" || h === "\\rbrack" ? (R = "⎤", F = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\lfloor" || h === "⌊" ? (F = R = "⎢", G = "⎣", Y = "Size4-Regular") : h === "\\lceil" || h === "⌈" ? (R = "⎡", F = G = "⎢", Y = "Size4-Regular") : h === "\\rfloor" || h === "⌋" ? (F = R = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\rceil" || h === "⌉" ? (R = "⎤", F = G = "⎥", Y = "Size4-Regular") : h === "(" || h === "\\lparen" ? (R = "⎛", F = "⎜", G = "⎝", Y = "Size4-Regular") : h === ")" || h === "\\rparen" ? (R = "⎞", F = "⎟", G = "⎠", Y = "Size4-Regular") : h === "\\{" || h === "\\lbrace" ? (R = "⎧", L = "⎨", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\}" || h === "\\rbrace" ? (R = "⎫", L = "⎬", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lgroup" || h === "⟮" ? (R = "⎧", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\rgroup" || h === "⟯" ? (R = "⎫", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lmoustache" || h === "⎰" ? (R = "⎧", G = "⎭", F = "⎪", Y = "Size4-Regular") : (h === "\\rmoustache" || h === "⎱") && (R = "⎫", G = "⎩", F = "⎪", Y = "Size4-Regular");
63445
63447
  var se = _s(R, Y, w), ce = se.height + se.depth, ue = _s(F, Y, w), _e = ue.height + ue.depth, we = _s(G, Y, w), Ee = we.height + we.depth, Ae = 0, Be = 1;
63446
63448
  if (L !== null) {
63447
- var et = _s(L, Y, w);
63448
- Ae = et.height + et.depth, Be = 2;
63449
+ var tt = _s(L, Y, w);
63450
+ Ae = tt.height + tt.depth, Be = 2;
63449
63451
  }
63450
63452
  var ft = ce + Ee + Ae, Lt = Math.max(0, Math.ceil((p - ft) / (Be * _e))), ct = ft + Lt * Be * _e, pt = _.fontMetrics().axisHeight;
63451
63453
  g && (pt *= _.sizeMultiplier);
@@ -63805,7 +63807,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63805
63807
  }
63806
63808
  });
63807
63809
  var Nu = function(h, p) {
63808
- var g = W.wrapFragment(Je(h.body, p), p), _ = h.label.substr(1), w = p.sizeMultiplier, E, R = 0, L = x.isCharacterBox(h.body);
63810
+ var g = W.wrapFragment(et(h.body, p), p), _ = h.label.substr(1), w = p.sizeMultiplier, E, R = 0, L = x.isCharacterBox(h.body);
63809
63811
  if (_ === "sout")
63810
63812
  E = W.makeSpan(["stretchy", "sout"]), E.height = p.fontMetrics().defaultRuleThickness / w, R = -0.5 * p.fontMetrics().xHeight;
63811
63813
  else if (_ === "phase") {
@@ -63855,7 +63857,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63855
63857
  ]
63856
63858
  }, p);
63857
63859
  else {
63858
- var et = /cancel|phase/.test(_) ? ["svg-align"] : [];
63860
+ var tt = /cancel|phase/.test(_) ? ["svg-align"] : [];
63859
63861
  Be = W.makeVList({
63860
63862
  positionType: "individualShift",
63861
63863
  children: [
@@ -63869,7 +63871,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63869
63871
  type: "elem",
63870
63872
  elem: E,
63871
63873
  shift: R,
63872
- wrapperClasses: et
63874
+ wrapperClasses: tt
63873
63875
  }
63874
63876
  ]
63875
63877
  }, p);
@@ -64067,8 +64069,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64067
64069
  break;
64068
64070
  } else if (Be === "\\\\") {
64069
64071
  T.consume();
64070
- var et = void 0;
64071
- T.gullet.future().text !== " " && (et = T.parseSizeGroup(!0)), we.push(et ? et.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
64072
+ var tt = void 0;
64073
+ T.gullet.future().text !== " " && (tt = T.parseSizeGroup(!0)), we.push(tt ? tt.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
64072
64074
  } else
64073
64075
  throw new o("Expected & or \\\\ or \\cr or \\end", T.nextToken);
64074
64076
  }
@@ -64104,23 +64106,23 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64104
64106
  number: 3,
64105
64107
  unit: "ex"
64106
64108
  }, p) : 12 * Y, _e = 3 * Y, we = h.arraystretch * ue, Ee = 0.7 * we, Ae = 0.3 * we, Be = 0;
64107
- function et(Jm) {
64109
+ function tt(Jm) {
64108
64110
  for (var Ua = 0; Ua < Jm.length; ++Ua)
64109
64111
  Ua > 0 && (Be += 0.25), F.push({
64110
64112
  pos: Be,
64111
64113
  isDashed: Jm[Ua]
64112
64114
  });
64113
64115
  }
64114
- for (et(E[0]), g = 0; g < h.body.length; ++g) {
64116
+ for (tt(E[0]), g = 0; g < h.body.length; ++g) {
64115
64117
  var ft = h.body[g], Lt = Ee, ct = Ae;
64116
64118
  R < ft.length && (R = ft.length);
64117
64119
  var pt = new Array(ft.length);
64118
64120
  for (_ = 0; _ < ft.length; ++_) {
64119
- var $t = Je(ft[_], p);
64121
+ var $t = et(ft[_], p);
64120
64122
  ct < $t.depth && (ct = $t.depth), Lt < $t.height && (Lt = $t.height), pt[_] = $t;
64121
64123
  }
64122
64124
  var Mt = h.rowGaps[g], Dn = 0;
64123
- Mt && (Dn = rt(Mt, p), Dn > 0 && (Dn += Ae, ct < Dn && (ct = Dn), Dn = 0)), h.addJot && (ct += _e), pt.height = Lt, pt.depth = ct, Be += Lt, pt.pos = Be, Be += ct + Dn, L[g] = pt, et(E[g + 1]);
64125
+ Mt && (Dn = rt(Mt, p), Dn > 0 && (Dn += Ae, ct < Dn && (ct = Dn), Dn = 0)), h.addJot && (ct += _e), pt.height = Lt, pt.depth = ct, Be += Lt, pt.pos = Be, Be += ct + Dn, L[g] = pt, tt(E[g + 1]);
64124
64126
  }
64125
64127
  var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [], gr = [], Rn, No, Qm = [];
64126
64128
  if (h.addEqnNum)
@@ -64219,7 +64221,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64219
64221
  G.setAttribute("columnalign", ce.trim()), /[sd]/.test(_e) && G.setAttribute("columnlines", _e.trim());
64220
64222
  }
64221
64223
  if (h.colSeparationType === "align") {
64222
- for (var et = h.cols || [], ft = "", Lt = 1; Lt < et.length; Lt++)
64224
+ for (var tt = h.cols || [], ft = "", Lt = 1; Lt < tt.length; Lt++)
64223
64225
  ft += Lt % 2 ? "0em " : "1em ";
64224
64226
  G.setAttribute("columnspacing", ft.trim());
64225
64227
  } else h.colSeparationType === "alignat" || h.colSeparationType === "gather" ? G.setAttribute("columnspacing", "0em") : h.colSeparationType === "small" ? G.setAttribute("columnspacing", "0.2778em") : h.colSeparationType === "CD" ? G.setAttribute("columnspacing", "0.5em") : G.setAttribute("columnspacing", "1em");
@@ -64259,9 +64261,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64259
64261
  if (se)
64260
64262
  R < we.length && (R = we.length);
64261
64263
  else {
64262
- var et = we.length / 2;
64263
- if (E < et)
64264
- throw new o("Too many math in a row: " + ("expected " + E + ", but got " + et), we[0]);
64264
+ var tt = we.length / 2;
64265
+ if (E < tt)
64266
+ throw new o("Too many math in a row: " + ("expected " + E + ", but got " + tt), we[0]);
64265
64267
  }
64266
64268
  });
64267
64269
  for (var ce = 0; ce < R; ++ce) {
@@ -64648,7 +64650,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64648
64650
  });
64649
64651
  var _m = function(h, p) {
64650
64652
  var g = h.font, _ = p.withFont(g);
64651
- return Je(h.body, _);
64653
+ return et(h.body, _);
64652
64654
  }, ym = function(h, p) {
64653
64655
  var g = h.font, _ = p.withFont(g);
64654
64656
  return xt(h.body, _);
@@ -64743,13 +64745,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64743
64745
  }, Lu = function(h, p) {
64744
64746
  var g = wm(h.size, p.style), _ = g.fracNum(), w = g.fracDen(), E;
64745
64747
  E = p.havingStyle(_);
64746
- var R = Je(h.numer, E, p);
64748
+ var R = et(h.numer, E, p);
64747
64749
  if (h.continued) {
64748
64750
  var L = 8.5 / p.fontMetrics().ptPerEm, F = 3.5 / p.fontMetrics().ptPerEm;
64749
64751
  R.height = R.height < L ? L : R.height, R.depth = R.depth < F ? F : R.depth;
64750
64752
  }
64751
64753
  E = p.havingStyle(w);
64752
- var G = Je(h.denom, E, p), Y, se, ce;
64754
+ var G = et(h.denom, E, p), Y, se, ce;
64753
64755
  h.hasBarLine ? (h.barSize ? (se = rt(h.barSize, p), Y = W.makeLineSpan("frac-line", p, se)) : Y = W.makeLineSpan("frac-line", p), se = Y.height, ce = Y.height) : (Y = null, se = 0, ce = p.fontMetrics().defaultRuleThickness);
64754
64756
  var ue, _e, we;
64755
64757
  g.size === Z.DISPLAY.size || h.size === "display" ? (ue = p.fontMetrics().num1, se > 0 ? _e = 3 * ce : _e = 7 * ce, we = p.fontMetrics().denom1) : (se > 0 ? (ue = p.fontMetrics().num2, _e = ce) : (ue = p.fontMetrics().num3, _e = 3 * ce), we = p.fontMetrics().denom2);
@@ -64757,7 +64759,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64757
64759
  if (Y) {
64758
64760
  var Be = p.fontMetrics().axisHeight;
64759
64761
  ue - R.depth - (Be + 0.5 * se) < _e && (ue += _e - (ue - R.depth - (Be + 0.5 * se))), Be - 0.5 * se - (G.height - we) < _e && (we += _e - (Be - 0.5 * se - (G.height - we)));
64760
- var et = -(Be - 0.5 * se);
64762
+ var tt = -(Be - 0.5 * se);
64761
64763
  Ee = W.makeVList({
64762
64764
  positionType: "individualShift",
64763
64765
  children: [{
@@ -64767,7 +64769,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64767
64769
  }, {
64768
64770
  type: "elem",
64769
64771
  elem: Y,
64770
- shift: et
64772
+ shift: tt
64771
64773
  }, {
64772
64774
  type: "elem",
64773
64775
  elem: R,
@@ -65037,8 +65039,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65037
65039
  });
65038
65040
  var Sm = function(h, p) {
65039
65041
  var g = p.style, _, w;
65040
- h.type === "supsub" ? (_ = h.sup ? Je(h.sup, p.havingStyle(g.sup()), p) : Je(h.sub, p.havingStyle(g.sub()), p), w = We(h.base, "horizBrace")) : w = We(h, "horizBrace");
65041
- var E = Je(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
65042
+ h.type === "supsub" ? (_ = h.sup ? et(h.sup, p.havingStyle(g.sup()), p) : et(h.sub, p.havingStyle(g.sub()), p), w = We(h.base, "horizBrace")) : w = We(h, "horizBrace");
65043
+ var E = et(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
65042
65044
  if (w.isOver ? (L = W.makeVList({
65043
65045
  positionType: "firstBaseline",
65044
65046
  children: [{
@@ -65438,7 +65440,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65438
65440
  },
65439
65441
  htmlBuilder: function(h, p) {
65440
65442
  var g;
65441
- h.alignment === "clap" ? (g = W.makeSpan([], [Je(h.body, p)]), g = W.makeSpan(["inner"], [g], p)) : g = W.makeSpan(["inner"], [Je(h.body, p)]);
65443
+ h.alignment === "clap" ? (g = W.makeSpan([], [et(h.body, p)]), g = W.makeSpan(["inner"], [g], p)) : g = W.makeSpan(["inner"], [et(h.body, p)]);
65442
65444
  var _ = W.makeSpan(["fix"], []), w = W.makeSpan([h.alignment], [g, _], p), E = W.makeSpan(["strut"]);
65443
65445
  return E.style.height = w.height + w.depth + "em", E.style.verticalAlign = -w.depth + "em", w.children.unshift(E), w = W.makeSpan(["thinbox"], [w], p), W.makeSpan(["mord", "vbox"], [w], p);
65444
65446
  },
@@ -65527,14 +65529,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65527
65529
  h = W.makeSpan([], [h]);
65528
65530
  var L = g && x.isCharacterBox(g), F, G;
65529
65531
  if (p) {
65530
- var Y = Je(p, _.havingStyle(w.sup()), _);
65532
+ var Y = et(p, _.havingStyle(w.sup()), _);
65531
65533
  G = {
65532
65534
  elem: Y,
65533
65535
  kern: Math.max(_.fontMetrics().bigOpSpacing1, _.fontMetrics().bigOpSpacing3 - Y.depth)
65534
65536
  };
65535
65537
  }
65536
65538
  if (g) {
65537
- var se = Je(g, _.havingStyle(w.sub()), _);
65539
+ var se = et(g, _.havingStyle(w.sub()), _);
65538
65540
  F = {
65539
65541
  elem: se,
65540
65542
  kern: Math.max(_.fontMetrics().bigOpSpacing2, _.fontMetrics().bigOpSpacing4 - se.height)
@@ -65884,7 +65886,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65884
65886
  };
65885
65887
  },
65886
65888
  htmlBuilder: function(h, p) {
65887
- var g = Je(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
65889
+ var g = et(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
65888
65890
  positionType: "firstBaseline",
65889
65891
  children: [{
65890
65892
  type: "elem",
@@ -65947,7 +65949,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65947
65949
  };
65948
65950
  },
65949
65951
  htmlBuilder: function(h, p) {
65950
- var g = W.makeSpan([], [Je(h.body, p.withPhantom())]);
65952
+ var g = W.makeSpan([], [et(h.body, p.withPhantom())]);
65951
65953
  if (g.height = 0, g.depth = 0, g.children)
65952
65954
  for (var _ = 0; _ < g.children.length; _++)
65953
65955
  g.children[_].height = 0, g.children[_].depth = 0;
@@ -65979,7 +65981,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65979
65981
  };
65980
65982
  },
65981
65983
  htmlBuilder: function(h, p) {
65982
- var g = W.makeSpan(["inner"], [Je(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
65984
+ var g = W.makeSpan(["inner"], [et(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
65983
65985
  return W.makeSpan(["mord", "rlap"], [g, _], p);
65984
65986
  },
65985
65987
  mathmlBuilder: function(h, p) {
@@ -66004,7 +66006,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66004
66006
  };
66005
66007
  },
66006
66008
  htmlBuilder: function(h, p) {
66007
- var g = Je(h.body, p), _ = rt(h.dy, p);
66009
+ var g = et(h.body, p), _ = rt(h.dy, p);
66008
66010
  return W.makeVList({
66009
66011
  positionType: "shift",
66010
66012
  positionData: -_,
@@ -66114,7 +66116,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66114
66116
  };
66115
66117
  },
66116
66118
  htmlBuilder: function(h, p) {
66117
- var g = W.makeSpan([], [Je(h.body, p)]);
66119
+ var g = W.makeSpan([], [et(h.body, p)]);
66118
66120
  if (!h.smashHeight && !h.smashDepth)
66119
66121
  return g;
66120
66122
  if (h.smashHeight && (g.height = 0, g.children))
@@ -66153,7 +66155,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66153
66155
  };
66154
66156
  },
66155
66157
  htmlBuilder: function(h, p) {
66156
- var g = Je(h.body, p.havingCrampedStyle());
66158
+ var g = et(h.body, p.havingCrampedStyle());
66157
66159
  g.height === 0 && (g.height = p.fontMetrics().xHeight), g = W.wrapFragment(g, p);
66158
66160
  var _ = p.fontMetrics(), w = _.defaultRuleThickness, E = w;
66159
66161
  p.style.id < Z.TEXT.id && (E = p.fontMetrics().xHeight);
@@ -66179,15 +66181,15 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66179
66181
  }]
66180
66182
  }, p);
66181
66183
  if (h.index) {
66182
- var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = Je(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
66184
+ var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = et(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
66183
66185
  positionType: "shift",
66184
66186
  positionData: -Ae,
66185
66187
  children: [{
66186
66188
  type: "elem",
66187
66189
  elem: Ee
66188
66190
  }]
66189
- }, p), et = W.makeSpan(["root"], [Be]);
66190
- return W.makeSpan(["mord", "sqrt"], [et, _e], p);
66191
+ }, p), tt = W.makeSpan(["root"], [Be]);
66192
+ return W.makeSpan(["mord", "sqrt"], [tt, _e], p);
66191
66193
  } else
66192
66194
  return W.makeSpan(["mord", "sqrt"], [_e], p);
66193
66195
  },
@@ -66261,21 +66263,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66261
66263
  var g = x5(h, p);
66262
66264
  if (g)
66263
66265
  return g(h, p);
66264
- var _ = h.base, w = h.sup, E = h.sub, R = Je(_, p), L, F, G = p.fontMetrics(), Y = 0, se = 0, ce = _ && x.isCharacterBox(_);
66266
+ var _ = h.base, w = h.sup, E = h.sub, R = et(_, p), L, F, G = p.fontMetrics(), Y = 0, se = 0, ce = _ && x.isCharacterBox(_);
66265
66267
  if (w) {
66266
66268
  var ue = p.havingStyle(p.style.sup());
66267
- L = Je(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
66269
+ L = et(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
66268
66270
  }
66269
66271
  if (E) {
66270
66272
  var _e = p.havingStyle(p.style.sub());
66271
- F = Je(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
66273
+ F = et(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
66272
66274
  }
66273
66275
  var we;
66274
66276
  p.style === Z.DISPLAY ? we = G.sup1 : p.style.cramped ? we = G.sup3 : we = G.sup2;
66275
66277
  var Ee = p.sizeMultiplier, Ae = 0.5 / G.ptPerEm / Ee + "em", Be = null;
66276
66278
  if (F) {
66277
- var et = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
66278
- (R instanceof yn || et) && (Be = -R.italic + "em");
66279
+ var tt = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
66280
+ (R instanceof yn || tt) && (Be = -R.italic + "em");
66279
66281
  }
66280
66282
  var ft;
66281
66283
  if (L && F) {
@@ -66514,7 +66516,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66514
66516
  };
66515
66517
  },
66516
66518
  htmlBuilder: function(h, p) {
66517
- var g = Je(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
66519
+ var g = et(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
66518
66520
  positionType: "top",
66519
66521
  positionData: g.height,
66520
66522
  children: [{
@@ -66557,7 +66559,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66557
66559
  };
66558
66560
  },
66559
66561
  htmlBuilder: function(h, p) {
66560
- var g = Je(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
66562
+ var g = et(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
66561
66563
  return W.makeVList({
66562
66564
  positionType: "shift",
66563
66565
  positionData: w,
@@ -68191,7 +68193,7 @@ function pge(n, e, t, r, i, o) {
68191
68193
  return t.node ? (He(), rn(a, {
68192
68194
  key: 0,
68193
68195
  as: t.node.attrs.tag,
68194
- class: tt(["power-editor-equation-container", {
68196
+ class: Ye(["power-editor-equation-container", {
68195
68197
  dark: i.thisTheme === "dark",
68196
68198
  div: t.node.attrs.tag == "div",
68197
68199
  selected: t.selected
@@ -68229,7 +68231,7 @@ function pge(n, e, t, r, i, o) {
68229
68231
  onClick: o.close
68230
68232
  }, {
68231
68233
  default: ie(() => [
68232
- ir(Ye(i.getTitle("Done")), 1)
68234
+ ir(Ze(i.getTitle("Done")), 1)
68233
68235
  ]),
68234
68236
  _: 1
68235
68237
  }, 8, ["disabled", "background", "onClick"])
@@ -68252,7 +68254,7 @@ function pge(n, e, t, r, i, o) {
68252
68254
  X("i", { class: "ms-Icon ms-Icon--GripperDotsVertical" }, null, -1)
68253
68255
  ]), 32)) : Pt("", !0),
68254
68256
  X("span", {
68255
- class: tt(["power-editor-equation-target", { empty: i.thisValue === "" }]),
68257
+ class: Ye(["power-editor-equation-target", { empty: i.thisValue === "" }]),
68256
68258
  placeholder: t.node.attrs.emptyPlaceholder,
68257
68259
  innerHTML: i.thisValue === "" ? t.node.attrs.emptyPlaceholder : i.equationString,
68258
68260
  ref: "target",
@@ -68462,8 +68464,8 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68462
68464
  this.showPos();
68463
68465
  });
68464
68466
  },
68465
- "node.attrs.value"() {
68466
- this.delRecover(), this.getFilterItems();
68467
+ "node.attrs.value"(n, e) {
68468
+ this.delRecover(), this.getFilterItems(n, e);
68467
68469
  },
68468
68470
  "editor.storage.defaultStorage.theme"(n) {
68469
68471
  this.thisTheme = n;
@@ -68501,7 +68503,7 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68501
68503
  mounted() {
68502
68504
  this.outSideClickInit(), this.windowEventInit(), setTimeout(() => {
68503
68505
  this.node.attrs.freeze || (this.show(), this.$refs.target.focus(), this.$refs.list.setFocus());
68504
- }, 300), this.getFilterItems();
68506
+ }, 300), this.getFilterItems(this.node.attrs.value, "");
68505
68507
  },
68506
68508
  methods: {
68507
68509
  outSideClickInit() {
@@ -68524,17 +68526,19 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68524
68526
  this.$refs.target.focus();
68525
68527
  }, 300));
68526
68528
  },
68527
- async getFilterItems() {
68529
+ async getFilterItems(n, e) {
68528
68530
  this.loading = !0;
68529
- let n = [], e = await this.editor.storage.defaultStorage.mentionItemTools.mentionList(
68530
- this.node.attrs.value
68531
+ let t = [], r = await this.editor.storage.defaultStorage.mentionItemTools.mentionList(
68532
+ n,
68533
+ e
68531
68534
  );
68532
- for (let t of e)
68535
+ for (let i of r)
68533
68536
  await this.editor.storage.defaultStorage.mentionItemTools.filterFunc(
68534
- t,
68535
- this.node.attrs.value
68536
- ) && n.push(t);
68537
- this.filterItems = n, this.loading = !1;
68537
+ i,
68538
+ n,
68539
+ e
68540
+ ) && t.push(i);
68541
+ this.filterItems = t, this.loading = !1;
68538
68542
  },
68539
68543
  chooseItem(n) {
68540
68544
  this.updateAttributes({
@@ -68546,6 +68550,10 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68546
68550
  this.node.attrs.value
68547
68551
  ), this.close();
68548
68552
  },
68553
+ isLoading() {
68554
+ var n;
68555
+ return ((n = this.editor.storage.defaultStorage.mentionItemTools) == null ? void 0 : n.isLoading()) || !1;
68556
+ },
68549
68557
  valueTrigger(n) {
68550
68558
  return typeof n == "function" ? n() : n;
68551
68559
  },
@@ -68589,7 +68597,7 @@ function Age(n, e, t, r, i, o) {
68589
68597
  return t.node ? (He(), rn(l, {
68590
68598
  key: 0,
68591
68599
  as: "span",
68592
- class: tt(["power-editor-mention-container", {
68600
+ class: Ye(["power-editor-mention-container", {
68593
68601
  dark: i.thisTheme === "dark",
68594
68602
  selected: t.selected,
68595
68603
  showing: i.showPopper && i.filterItems.length > 0
@@ -68616,7 +68624,7 @@ function Age(n, e, t, r, i, o) {
68616
68624
  background: "white"
68617
68625
  }, null, 8, ["foreground"])
68618
68626
  ], 512), [
68619
- [Wt, i.loading]
68627
+ [Wt, i.loading || o.isLoading()]
68620
68628
  ]),
68621
68629
  ae(a, {
68622
68630
  modelValue: i.filterItems,
@@ -68632,7 +68640,9 @@ function Age(n, e, t, r, i, o) {
68632
68640
  listItem: ie((c) => [
68633
68641
  c.item.image ? (He(), ot("img", {
68634
68642
  key: 0,
68635
- class: tt(["power-editor-mention-img", [{ avatar: c.item.avatarImg }]]),
68643
+ class: Ye(["power-editor-mention-img", [
68644
+ { avatar: o.valueTrigger(c.item.avatarImg) }
68645
+ ]]),
68636
68646
  src: c.valueTrigger(c.item.image),
68637
68647
  alt: "",
68638
68648
  style: ut({
@@ -68641,14 +68651,14 @@ function Age(n, e, t, r, i, o) {
68641
68651
  }, null, 14, kge)) : Pt("", !0),
68642
68652
  c.item.icon ? (He(), ot("i", {
68643
68653
  key: 1,
68644
- class: tt(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
68654
+ class: Ye(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
68645
68655
  style: ut([{ color: c.valueTrigger(c.item.iconColor) }, { "margin-right": "15px" }])
68646
68656
  }, null, 6)) : Pt("", !0),
68647
68657
  X("p", {
68648
68658
  style: ut([{
68649
68659
  color: c.valueTrigger(c.item.type) == "header" ? i.thisForeground : c.item.color
68650
68660
  }, { flex: "1", "font-size": "12px" }])
68651
- }, Ye(c.valueTrigger(c.item.name)), 5)
68661
+ }, Ze(c.valueTrigger(c.item.name)), 5)
68652
68662
  ]),
68653
68663
  _: 1
68654
68664
  }, 8, ["modelValue", "theme", "onChooseItem"])
@@ -68672,12 +68682,14 @@ function Age(n, e, t, r, i, o) {
68672
68682
  key: 1,
68673
68683
  src: o.valueTrigger(t.node.attrs.currentItem.image),
68674
68684
  alt: "",
68675
- class: "power-editor-mention-rendered-img",
68685
+ class: Ye(["power-editor-mention-rendered-img", [
68686
+ { avatar: o.valueTrigger(t.node.attrs.currentItem.avatarImg) }
68687
+ ]]),
68676
68688
  style: { height: "15px" }
68677
- }, null, 8, Cge)) : Pt("", !0),
68689
+ }, null, 10, Cge)) : Pt("", !0),
68678
68690
  t.node.attrs.currentItem.icon ? (He(), ot("i", {
68679
68691
  key: 2,
68680
- class: tt(["ms-Icon power-editor-mention-icon", [
68692
+ class: Ye(["ms-Icon power-editor-mention-icon", [
68681
68693
  `ms-Icon--${o.valueTrigger(t.node.attrs.currentItem.icon)}`
68682
68694
  ]]),
68683
68695
  style: ut({
@@ -68686,7 +68698,7 @@ function Age(n, e, t, r, i, o) {
68686
68698
  }, null, 6)) : Pt("", !0),
68687
68699
  Ut(X("input", {
68688
68700
  "onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.value = c),
68689
- class: tt(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
68701
+ class: Ye(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
68690
68702
  placeholder: t.node.attrs.placeholder,
68691
68703
  readonly: t.node.attrs.freeze,
68692
68704
  ref: "target",
@@ -68703,9 +68715,9 @@ function Age(n, e, t, r, i, o) {
68703
68715
  ]),
68704
68716
  X("p", {
68705
68717
  title: t.node.attrs.value,
68706
- class: tt(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
68718
+ class: Ye(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
68707
68719
  style: ut({ color: t.node.attrs.currentItem.color })
68708
- }, Ye(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
68720
+ }, Ze(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
68709
68721
  ])
68710
68722
  ]),
68711
68723
  _: 1
@@ -70850,7 +70862,7 @@ const l4e = /* @__PURE__ */ Tr(a4e), c4e = {
70850
70862
  function g4e(n, e, t, r, i, o) {
70851
70863
  const s = Me("fv-button"), a = Me("fv-slider"), l = Me("media-container"), c = Me("node-view-wrapper");
70852
70864
  return He(), rn(c, {
70853
- class: tt(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
70865
+ class: Ye(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
70854
70866
  style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
70855
70867
  }, {
70856
70868
  default: ie(() => [
@@ -70885,7 +70897,7 @@ function g4e(n, e, t, r, i, o) {
70885
70897
  style: { width: "150px", height: "100%", "margin-left": "5px", "margin-right": "5px" }
70886
70898
  }, {
70887
70899
  default: ie((u) => [
70888
- X("span", h4e, Ye(u.modelValue), 1)
70900
+ X("span", h4e, Ze(u.modelValue), 1)
70889
70901
  ]),
70890
70902
  _: 1
70891
70903
  }, 8, ["modelValue", "theme", "color"]),
@@ -70918,7 +70930,7 @@ function g4e(n, e, t, r, i, o) {
70918
70930
  onClick: (m) => i.color = u.color
70919
70931
  }, {
70920
70932
  default: ie(() => e[9] || (e[9] = [
70921
- ir(Ye(""))
70933
+ ir(Ze(""))
70922
70934
  ])),
70923
70935
  _: 2,
70924
70936
  __: [9]
@@ -70975,7 +70987,7 @@ function g4e(n, e, t, r, i, o) {
70975
70987
  }, {
70976
70988
  default: ie(() => [
70977
70989
  (He(), ot("svg", {
70978
- class: tt(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
70990
+ class: Ye(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
70979
70991
  viewBox: "0 0 500 250",
70980
70992
  ref: "canvas"
70981
70993
  }, [
@@ -71273,7 +71285,7 @@ const b4e = /* @__PURE__ */ on(c4e, [["render", g4e]]), _4e = Rt.create({
71273
71285
  function E4e(n, e, t, r, i, o) {
71274
71286
  const s = Me("fv-callout"), a = Me("fv-drawer");
71275
71287
  return He(), ot("div", {
71276
- class: tt(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
71288
+ class: Ye(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
71277
71289
  }, [
71278
71290
  t.mobileMode ? Pt("", !0) : (He(), rn(s, {
71279
71291
  key: 0,
@@ -71297,7 +71309,7 @@ function E4e(n, e, t, r, i, o) {
71297
71309
  }, {
71298
71310
  header: ie(() => [
71299
71311
  mt(n.$slots, "header", { title: t.title }, () => [
71300
- X("p", w4e, Ye(t.title), 1)
71312
+ X("p", w4e, Ze(t.title), 1)
71301
71313
  ])
71302
71314
  ]),
71303
71315
  main: ie(() => [
@@ -71314,7 +71326,7 @@ function E4e(n, e, t, r, i, o) {
71314
71326
  modelValue: i.thisShow,
71315
71327
  "onUpdate:modelValue": e[2] || (e[2] = (l) => i.thisShow = l),
71316
71328
  theme: t.theme,
71317
- class: tt(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
71329
+ class: Ye(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
71318
71330
  length: "calc(100% - 50px)",
71319
71331
  background: t.theme === "dark" ? "rgba(56, 56, 56, 0.9)" : "rgba(252, 252, 252, 0.9)",
71320
71332
  "control-padding": "0px 12px",
@@ -71326,7 +71338,7 @@ function E4e(n, e, t, r, i, o) {
71326
71338
  X("div", k4e, [
71327
71339
  mt(n.$slots, "header", { title: t.title }, () => [
71328
71340
  e[3] || (e[3] = X("p", { style: { width: "50px" } }, null, -1)),
71329
- X("p", S4e, Ye(t.title), 1)
71341
+ X("p", S4e, Ze(t.title), 1)
71330
71342
  ]),
71331
71343
  X("p", {
71332
71344
  class: "p-e-c-b-m-close",
@@ -71334,12 +71346,12 @@ function E4e(n, e, t, r, i, o) {
71334
71346
  color: t.theme === "dark" ? "whitesmoke" : t.foreground
71335
71347
  }),
71336
71348
  onClick: e[1] || (e[1] = (l) => i.thisShow = !1)
71337
- }, Ye(o.getTitle("Cancel")), 5)
71349
+ }, Ze(o.getTitle("Cancel")), 5)
71338
71350
  ])
71339
71351
  ]),
71340
71352
  default: ie(() => [
71341
71353
  X("div", {
71342
- class: tt(["p-e-c-b-m-content-block", t.popperClass])
71354
+ class: Ye(["p-e-c-b-m-content-block", t.popperClass])
71343
71355
  }, [
71344
71356
  X("div", C4e, [
71345
71357
  mt(n.$slots, "content", { index: "2" })
@@ -71418,7 +71430,7 @@ function M4e(n, e, t, r, i, o) {
71418
71430
  ]),
71419
71431
  content: ie(() => [
71420
71432
  X("div", {
71421
- class: tt(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
71433
+ class: Ye(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
71422
71434
  }, [
71423
71435
  Pt("", !0),
71424
71436
  ae(s, {
@@ -71461,7 +71473,7 @@ function M4e(n, e, t, r, i, o) {
71461
71473
  onClick: o.insert
71462
71474
  }, {
71463
71475
  default: ie(() => [
71464
- ir(Ye(o.getTitle("Insert")), 1)
71476
+ ir(Ze(o.getTitle("Insert")), 1)
71465
71477
  ]),
71466
71478
  _: 1
71467
71479
  }, 8, ["disabled", "background", "onClick"])
@@ -71530,7 +71542,7 @@ function I4e(n, e, t, r, i, o) {
71530
71542
  ]),
71531
71543
  content: ie(() => [
71532
71544
  X("div", {
71533
- class: tt(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
71545
+ class: Ye(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
71534
71546
  }, [
71535
71547
  Pt("", !0),
71536
71548
  ae(s, {
@@ -71573,7 +71585,7 @@ function I4e(n, e, t, r, i, o) {
71573
71585
  onClick: o.insert
71574
71586
  }, {
71575
71587
  default: ie(() => [
71576
- ir(Ye(o.getTitle("Insert")), 1)
71588
+ ir(Ze(o.getTitle("Insert")), 1)
71577
71589
  ]),
71578
71590
  _: 1
71579
71591
  }, 8, ["disabled", "background", "onClick"])
@@ -71688,16 +71700,16 @@ function U4e(n, e, t, r, i, o) {
71688
71700
  X("p", {
71689
71701
  class: "power-menu-sec-title",
71690
71702
  style: ut({ "--power-menu-sec-title-background": t.foreground })
71691
- }, Ye(o.getTitle("Foreground")), 5),
71703
+ }, Ze(o.getTitle("Foreground")), 5),
71692
71704
  X("div", {
71693
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71705
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71694
71706
  onClick: e[0] || (e[0] = (a) => o.execX("unsetColor"))
71695
71707
  }, [
71696
71708
  e[3] || (e[3] = X("p", { class: "peci-example" }, "A", -1)),
71697
- X("p", P4e, Ye(o.getTitle("removeColor")), 1)
71709
+ X("p", P4e, Ze(o.getTitle("removeColor")), 1)
71698
71710
  ], 2),
71699
71711
  (He(!0), ot(Vr, null, wi(i.colorList, (a, l) => (He(), ot("div", {
71700
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
71712
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
71701
71713
  key: "color:" + l,
71702
71714
  onClick: (c) => o.execMoreX("setColor", a.color)
71703
71715
  }, [
@@ -71705,21 +71717,21 @@ function U4e(n, e, t, r, i, o) {
71705
71717
  class: "peci-example",
71706
71718
  style: ut({ color: a.color })
71707
71719
  }, "A", 4),
71708
- X("p", F4e, Ye(o.getTitle(a.name)), 1)
71720
+ X("p", F4e, Ze(o.getTitle(a.name)), 1)
71709
71721
  ], 10, B4e))), 128)),
71710
71722
  X("p", {
71711
71723
  class: "power-menu-sec-title",
71712
71724
  style: ut({ "--power-menu-sec-title-background": t.foreground })
71713
- }, Ye(o.getTitle("Highlight Background")), 5),
71725
+ }, Ze(o.getTitle("Highlight Background")), 5),
71714
71726
  X("div", {
71715
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71727
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71716
71728
  onClick: e[1] || (e[1] = (a) => o.execX("unsetHighlight"))
71717
71729
  }, [
71718
71730
  e[4] || (e[4] = X("p", { class: "peci-example" }, "A", -1)),
71719
- X("p", z4e, Ye(o.getTitle("removeHighlight")), 1)
71731
+ X("p", z4e, Ze(o.getTitle("removeHighlight")), 1)
71720
71732
  ], 2),
71721
71733
  (He(!0), ot(Vr, null, wi(i.highlightList, (a, l) => (He(), ot("div", {
71722
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
71734
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
71723
71735
  key: "highlight:" + l,
71724
71736
  onClick: (c) => o.execMoreX("setHighlight", { color: a.color })
71725
71737
  }, [
@@ -71727,7 +71739,7 @@ function U4e(n, e, t, r, i, o) {
71727
71739
  class: "peci-example",
71728
71740
  style: ut({ background: a.color })
71729
71741
  }, "A", 4),
71730
- X("p", H4e, Ye(o.getTitle(a.name)), 1)
71742
+ X("p", H4e, Ze(o.getTitle(a.name)), 1)
71731
71743
  ], 10, q4e))), 128))
71732
71744
  ]),
71733
71745
  _: 3
@@ -72982,7 +72994,7 @@ function Y4e(n, e, t, r, i, o) {
72982
72994
  ]),
72983
72995
  header: ie((c) => [
72984
72996
  X("div", $4e, [
72985
- X("p", W4e, Ye(o.getTitle(c.title)), 1),
72997
+ X("p", W4e, Ze(o.getTitle(c.title)), 1),
72986
72998
  ae(s, {
72987
72999
  theme: t.theme,
72988
73000
  icon: "Shuffle",
@@ -72993,7 +73005,7 @@ function Y4e(n, e, t, r, i, o) {
72993
73005
  onClick: o.insertRandom
72994
73006
  }, {
72995
73007
  default: ie(() => [
72996
- ir(Ye(o.getTitle("Random")), 1)
73008
+ ir(Ze(o.getTitle("Random")), 1)
72997
73009
  ]),
72998
73010
  _: 1
72999
73011
  }, 8, ["theme", "background", "onClick"])
@@ -73011,7 +73023,7 @@ function Y4e(n, e, t, r, i, o) {
73011
73023
  class: "power-editor-emoji-list",
73012
73024
  key: `type:${d}`
73013
73025
  }, [
73014
- X("p", K4e, Ye(o.getTitle(u.name)), 1),
73026
+ X("p", K4e, Ze(o.getTitle(u.name)), 1),
73015
73027
  X("div", j4e, [
73016
73028
  (He(!0), ot(Vr, null, wi(u.emojis, (m, b) => (He(), ot("i", {
73017
73029
  key: b,
@@ -73104,15 +73116,15 @@ function oye(n, e, t, r, i, o) {
73104
73116
  ]),
73105
73117
  content: ie((c) => [
73106
73118
  X("div", {
73107
- class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73119
+ class: Ye(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73108
73120
  }, [
73109
- X("p", J4e, Ye(o.getTitle("Method")) + " 1", 1),
73121
+ X("p", J4e, Ze(o.getTitle("Method")) + " 1", 1),
73110
73122
  X("i", {
73111
73123
  class: "ms-Icon ms-Icon--Photo2Add power-editor-i-c-icon-1",
73112
73124
  style: ut({ color: t.foreground }),
73113
73125
  onClick: (u) => n.$refs[`img_local_${c.index}`].click()
73114
73126
  }, null, 12, eye),
73115
- X("p", tye, Ye(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
73127
+ X("p", tye, Ze(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
73116
73128
  X("input", {
73117
73129
  type: "file",
73118
73130
  accept: "image/gif,image/png,image/jpeg,image/x-png,image/svg+xml",
@@ -73123,9 +73135,9 @@ function oye(n, e, t, r, i, o) {
73123
73135
  }, null, 40, nye)
73124
73136
  ], 2),
73125
73137
  X("div", {
73126
- class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73138
+ class: Ye(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73127
73139
  }, [
73128
- X("p", rye, Ye(o.getTitle("Method")) + " 2", 1),
73140
+ X("p", rye, Ze(o.getTitle("Method")) + " 2", 1),
73129
73141
  ae(s, {
73130
73142
  modelValue: i.url,
73131
73143
  "onUpdate:modelValue": e[0] || (e[0] = (u) => i.url = u),
@@ -73153,7 +73165,7 @@ function oye(n, e, t, r, i, o) {
73153
73165
  onClick: o.insert
73154
73166
  }, {
73155
73167
  default: ie(() => [
73156
- ir(Ye(o.getTitle("Insert")), 1)
73168
+ ir(Ze(o.getTitle("Insert")), 1)
73157
73169
  ]),
73158
73170
  _: 1
73159
73171
  }, 8, ["disabled", "background", "onClick"])
@@ -73232,7 +73244,7 @@ function uye(n, e, t, r, i, o) {
73232
73244
  ]),
73233
73245
  content: ie(() => [
73234
73246
  (He(), ot(Vr, null, wi(6, (l) => X("div", {
73235
- class: tt(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
73247
+ class: Ye(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
73236
73248
  key: "color:" + l,
73237
73249
  onClick: (c) => o.execMoreX("toggleHeading", { level: l })
73238
73250
  }, [
@@ -73245,11 +73257,11 @@ function uye(n, e, t, r, i, o) {
73245
73257
  title: o.getTitle("Heading") + l
73246
73258
  }, {
73247
73259
  default: ie(() => [
73248
- ir("H" + Ye(l), 1)
73260
+ ir("H" + Ze(l), 1)
73249
73261
  ]),
73250
73262
  _: 2
73251
73263
  }, 1032, ["theme", "background", "foreground", "title"]),
73252
- X("p", cye, Ye(o.getTitle("Heading")) + " " + Ye(l), 1)
73264
+ X("p", cye, Ze(o.getTitle("Heading")) + " " + Ze(l), 1)
73253
73265
  ], 10, lye)), 64))
73254
73266
  ]),
73255
73267
  _: 3
@@ -73667,7 +73679,7 @@ const R6 = /* @__PURE__ */ on(hye, [["render", mye]]), gye = {
73667
73679
  function bye(n, e, t, r, i, o) {
73668
73680
  const s = Me("fv-button"), a = Me("heading-callout"), l = Me("color-callout"), c = Me("emoji-callout"), u = Me("table-callout"), d = Me("image-callout"), m = Me("link-callout"), b = Me("embed-callout");
73669
73681
  return He(), ot("div", {
73670
- class: tt(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
73682
+ class: Ye(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
73671
73683
  style: ut({ height: `${t.toolbarHeight}px`, "border-radius": `${t.toolbarBorderRadius}px` })
73672
73684
  }, [
73673
73685
  mt(n.$slots, "custom-buttons-front", { defaultClass: "power-editor-cmd-btn" }),
@@ -74386,7 +74398,7 @@ const I6 = /* @__PURE__ */ on(gye, [["render", bye]]), _ye = {
74386
74398
  function yye(n, e, t, r, i, o) {
74387
74399
  const s = Me("fv-button"), a = Me("color-callout"), l = Me("table-callout");
74388
74400
  return He(), ot("div", {
74389
- class: tt(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
74401
+ class: Ye(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
74390
74402
  }, [
74391
74403
  ae(s, {
74392
74404
  class: "power-editor-bubble-cmd-btn",
@@ -74763,6 +74775,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
74763
74775
  mentionClickCallback: () => {
74764
74776
  console.log("mentionClickCallback");
74765
74777
  },
74778
+ isLoading: () => !1,
74766
74779
  headerForeground: () => this.foreground
74767
74780
  };
74768
74781
  this.editor.storage.defaultStorage.mentionItemTools = Object.assign(
@@ -74992,7 +75005,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
74992
75005
  // this is a function
74993
75006
  focus: () => i.focus()
74994
75007
  }), (o, s) => (He(), ot("div", {
74995
- class: tt(["power-editor-container", [{ dark: n.theme === "dark" }]])
75008
+ class: Ye(["power-editor-container", [{ dark: n.theme === "dark" }]])
74996
75009
  }, [
74997
75010
  ae(Dc, { name: "power-editor-tool-bar-fade-in" }, {
74998
75011
  default: ie(() => [
@@ -75069,7 +75082,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75069
75082
  [Wt, n.showToolBar]
75070
75083
  ]) : Pt("", !0),
75071
75084
  X("div", {
75072
- class: tt([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
75085
+ class: Ye([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
75073
75086
  ref: "container",
75074
75087
  style: ut({
75075
75088
  "padding-top": n.editable && n.showToolBar ? `${n.editablePaddingTop ? n.editablePaddingTop : n.toolbarHeight + 10}px` : `${n.readOnlyPaddingTop}px`,
@@ -75083,7 +75096,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75083
75096
  }, [
75084
75097
  mt(o.$slots, "front-content"),
75085
75098
  ae(Bh(i2), {
75086
- class: tt(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
75099
+ class: Ye(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
75087
75100
  editor: o.editor,
75088
75101
  theme: n.theme,
75089
75102
  ref: "editor",
@@ -75140,8 +75153,8 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75140
75153
  return (e, t) => {
75141
75154
  const r = Me("fv-button");
75142
75155
  return He(), ot("div", kye, [
75143
- X("h1", null, Ye(n.title), 1),
75144
- X("p", null, Ye(e.message), 1),
75156
+ X("h1", null, Ze(n.title), 1),
75157
+ X("p", null, Ze(e.message), 1),
75145
75158
  ae(r, null, {
75146
75159
  default: ie(() => t[0] || (t[0] = [
75147
75160
  ir("Confirm")