@kerebron/legacy-compat 0.6.5 → 0.6.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.
Files changed (67) hide show
  1. package/dist/{__vite-browser-external-CRX21RFx.cjs → __vite-browser-external-BsUn5rzI.cjs} +33 -31
  2. package/dist/{__vite-browser-external-CRX21RFx.cjs.map → __vite-browser-external-BsUn5rzI.cjs.map} +1 -1
  3. package/dist/{__vite-browser-external-xXy0EDny.js → __vite-browser-external-G8y_2tFq.js} +775 -744
  4. package/dist/{__vite-browser-external-xXy0EDny.js.map → __vite-browser-external-G8y_2tFq.js.map} +1 -1
  5. package/dist/{index-BkjuIpep.js → index-20zb3iif.js} +3 -3
  6. package/dist/{index-BkjuIpep.js.map → index-20zb3iif.js.map} +1 -1
  7. package/dist/{index-BFE7marn.js → index-B4IXlob8.js} +3 -3
  8. package/dist/{index-BFE7marn.js.map → index-B4IXlob8.js.map} +1 -1
  9. package/dist/{index-Z5n5Yzh7.js → index-B4dVRq1F.js} +3 -3
  10. package/dist/{index-Z5n5Yzh7.js.map → index-B4dVRq1F.js.map} +1 -1
  11. package/dist/{index-ByaJVPvn.js → index-BBeYxcfY.js} +3 -3
  12. package/dist/{index-ByaJVPvn.js.map → index-BBeYxcfY.js.map} +1 -1
  13. package/dist/{index-LoqK9rew.js → index-BHeT17ZM.js} +3 -3
  14. package/dist/{index-LoqK9rew.js.map → index-BHeT17ZM.js.map} +1 -1
  15. package/dist/{index-Dkav6Sbx.cjs → index-BW5aIm89.cjs} +2 -2
  16. package/dist/{index-Dkav6Sbx.cjs.map → index-BW5aIm89.cjs.map} +1 -1
  17. package/dist/{index-B0EnjGLw.cjs → index-ByyYOuwX.cjs} +2 -2
  18. package/dist/{index-B0EnjGLw.cjs.map → index-ByyYOuwX.cjs.map} +1 -1
  19. package/dist/{index-C4WUpF9W.cjs → index-C0AJvnXs.cjs} +2 -2
  20. package/dist/{index-C4WUpF9W.cjs.map → index-C0AJvnXs.cjs.map} +1 -1
  21. package/dist/{index-DyoV5vW_.js → index-C2RzdNca.js} +3 -3
  22. package/dist/{index-DyoV5vW_.js.map → index-C2RzdNca.js.map} +1 -1
  23. package/dist/{index-DgVzvD4R.js → index-C9TxxyBf.js} +4 -4
  24. package/dist/{index-DgVzvD4R.js.map → index-C9TxxyBf.js.map} +1 -1
  25. package/dist/{index-DPnXT1NQ.cjs → index-CCxt6db2.cjs} +2 -2
  26. package/dist/{index-DPnXT1NQ.cjs.map → index-CCxt6db2.cjs.map} +1 -1
  27. package/dist/{index-CXD8LGss.cjs → index-CK5X_LRC.cjs} +2 -2
  28. package/dist/{index-CXD8LGss.cjs.map → index-CK5X_LRC.cjs.map} +1 -1
  29. package/dist/{index-CYy27SsA.js → index-CTaTx8z1.js} +3 -3
  30. package/dist/{index-CYy27SsA.js.map → index-CTaTx8z1.js.map} +1 -1
  31. package/dist/{index-4LPQ3f6Z.js → index-CaxWwBmY.js} +2 -2
  32. package/dist/{index-4LPQ3f6Z.js.map → index-CaxWwBmY.js.map} +1 -1
  33. package/dist/{index-D-tMVObO.js → index-CgfcJS8e.js} +3 -3
  34. package/dist/{index-D-tMVObO.js.map → index-CgfcJS8e.js.map} +1 -1
  35. package/dist/{index-COsp2nYZ.cjs → index-CjQMv9MC.cjs} +2 -2
  36. package/dist/{index-COsp2nYZ.cjs.map → index-CjQMv9MC.cjs.map} +1 -1
  37. package/dist/{index-Bl3uE670.cjs → index-CmGlDzg3.cjs} +2 -2
  38. package/dist/{index-Bl3uE670.cjs.map → index-CmGlDzg3.cjs.map} +1 -1
  39. package/dist/{index-DdSz5Lqa.cjs → index-Cpjw3UXg.cjs} +2 -2
  40. package/dist/{index-DdSz5Lqa.cjs.map → index-Cpjw3UXg.cjs.map} +1 -1
  41. package/dist/{index-C1Gqh5fP.cjs → index-CvbOCcGi.cjs} +2 -2
  42. package/dist/{index-C1Gqh5fP.cjs.map → index-CvbOCcGi.cjs.map} +1 -1
  43. package/dist/{index-BmlP8txy.js → index-DDdWuwE_.js} +3 -3
  44. package/dist/{index-BmlP8txy.js.map → index-DDdWuwE_.js.map} +1 -1
  45. package/dist/{index-Din3fe9H.js → index-DakZ7Vh5.js} +5 -5
  46. package/dist/{index-Din3fe9H.js.map → index-DakZ7Vh5.js.map} +1 -1
  47. package/dist/{index-BGs2DR4x.cjs → index-DbM2oTu3.cjs} +2 -2
  48. package/dist/{index-BGs2DR4x.cjs.map → index-DbM2oTu3.cjs.map} +1 -1
  49. package/dist/{index-DIl_9iQJ.js → index-DzgC5i6_.js} +3 -3
  50. package/dist/{index-DIl_9iQJ.js.map → index-DzgC5i6_.js.map} +1 -1
  51. package/dist/{index-CFL5ADWL.js → index-VEJ5GVW7.js} +3 -3
  52. package/dist/{index-CFL5ADWL.js.map → index-VEJ5GVW7.js.map} +1 -1
  53. package/dist/{index-BBcY4n4C.js → index-_0LDnh7z.js} +3 -3
  54. package/dist/{index-BBcY4n4C.js.map → index-_0LDnh7z.js.map} +1 -1
  55. package/dist/{index-zvj9AdED.cjs → index-hkGqDorW.cjs} +2 -2
  56. package/dist/{index-zvj9AdED.cjs.map → index-hkGqDorW.cjs.map} +1 -1
  57. package/dist/{index-CDjiBkma.cjs → index-o6iDr1aR.cjs} +2 -2
  58. package/dist/{index-CDjiBkma.cjs.map → index-o6iDr1aR.cjs.map} +1 -1
  59. package/dist/{index-PC8tnXUJ.cjs → index-ttT0kHBK.cjs} +2 -2
  60. package/dist/{index-PC8tnXUJ.cjs.map → index-ttT0kHBK.cjs.map} +1 -1
  61. package/dist/{index-D0-s6O-C.cjs → index-wGEr5vCy.cjs} +2 -2
  62. package/dist/{index-D0-s6O-C.cjs.map → index-wGEr5vCy.cjs.map} +1 -1
  63. package/dist/{index-Dvbv5TpH.cjs → index-zrtZvqUQ.cjs} +2 -2
  64. package/dist/{index-Dvbv5TpH.cjs.map → index-zrtZvqUQ.cjs.map} +1 -1
  65. package/dist/kerebron.cjs +1 -1
  66. package/dist/kerebron.js +1 -1
  67. package/package.json +1 -1
@@ -8365,31 +8365,31 @@ function readDOMChange(A, e, n, r, o) {
8365
8365
  return _(A, keyEvent(13, "Enter"));
8366
8366
  });
8367
8367
  }, 20));
8368
- let w = I.start, y = I.endA, S = (_) => {
8369
- let M = _ || A.state.tr.replace(w, y, g.doc.slice(I.start - g.from, I.endB - g.from));
8368
+ let S = I.start, w = I.endA, y = (_) => {
8369
+ let M = _ || A.state.tr.replace(S, w, g.doc.slice(I.start - g.from, I.endB - g.from));
8370
8370
  if (g.sel) {
8371
8371
  let v = resolveSelection(A, M.doc, g.sel);
8372
- v && !(chrome$1 && A.composing && v.empty && (I.start != I.endB || A.input.lastChromeDelete < Date.now() - 100) && (v.head == w || v.head == M.mapping.map(y) - 1) || ie$3 && v.empty && v.head == w) && M.setSelection(v);
8372
+ v && !(chrome$1 && A.composing && v.empty && (I.start != I.endB || A.input.lastChromeDelete < Date.now() - 100) && (v.head == S || v.head == M.mapping.map(w) - 1) || ie$3 && v.empty && v.head == S) && M.setSelection(v);
8373
8373
  }
8374
8374
  return s && M.setMeta("composition", s), M.scrollIntoView();
8375
8375
  }, D;
8376
8376
  if (B) {
8377
8377
  if (p.pos == m.pos) {
8378
8378
  ie$3 && ie_version <= 11 && p.parentOffset == 0 && (A.domObserver.suppressSelectionUpdates(), setTimeout(() => selectionToDOM(A), 20));
8379
- let _ = S(A.state.tr.delete(w, y)), M = h.resolve(I.start).marksAcross(h.resolve(I.endA));
8379
+ let _ = y(A.state.tr.delete(S, w)), M = h.resolve(I.start).marksAcross(h.resolve(I.endA));
8380
8380
  M && _.ensureMarks(M), A.dispatch(_);
8381
8381
  } else if (
8382
8382
  // Adding or removing a mark
8383
8383
  I.endA == I.endB && (D = isMarkChange(p.parent.content.cut(p.parentOffset, m.parentOffset), E.parent.content.cut(E.parentOffset, I.endA - E.start())))
8384
8384
  ) {
8385
- let _ = S(A.state.tr);
8386
- D.type == "add" ? _.addMark(w, y, D.mark) : _.removeMark(w, y, D.mark), A.dispatch(_);
8385
+ let _ = y(A.state.tr);
8386
+ D.type == "add" ? _.addMark(S, w, D.mark) : _.removeMark(S, w, D.mark), A.dispatch(_);
8387
8387
  } else if (p.parent.child(p.index()).isText && p.index() == m.index() - (m.textOffset ? 0 : 1)) {
8388
- let _ = p.parent.textBetween(p.parentOffset, m.parentOffset), M = () => S(A.state.tr.insertText(_, w, y));
8389
- A.someProp("handleTextInput", (v) => v(A, w, y, _, M)) || A.dispatch(M());
8388
+ let _ = p.parent.textBetween(p.parentOffset, m.parentOffset), M = () => y(A.state.tr.insertText(_, S, w));
8389
+ A.someProp("handleTextInput", (v) => v(A, S, w, _, M)) || A.dispatch(M());
8390
8390
  }
8391
8391
  } else
8392
- A.dispatch(S());
8392
+ A.dispatch(y());
8393
8393
  }
8394
8394
  function resolveSelection(A, e, n) {
8395
8395
  return Math.max(n.anchor, n.head) > e.content.size ? null : selectionBetween(A, e.resolve(n.anchor), e.resolve(n.head));
@@ -8946,14 +8946,14 @@ const runInputRulesTexts = () => {
8946
8946
  if (!m)
8947
8947
  continue;
8948
8948
  const E = m.index, B = f + E, Q = f + E + m[0].length;
8949
- let w = h.handler(
8949
+ let S = h.handler(
8950
8950
  c,
8951
8951
  e,
8952
8952
  m,
8953
8953
  B,
8954
8954
  Q
8955
8955
  );
8956
- w && (c = w, l = c.doc, h.undoable && c.setMeta(s, { transform: c, from: B, to: Q, text: p }));
8956
+ S && (c = S, l = c.doc, h.undoable && c.setMeta(s, { transform: c, from: B, to: Q, text: p }));
8957
8957
  }
8958
8958
  }
8959
8959
  return n && n(c), c.docChanged;
@@ -9912,8 +9912,8 @@ function toggleMark(A, e = null, n) {
9912
9912
  if (!d)
9913
9913
  u.removeMark(I.pos, p.pos, A);
9914
9914
  else {
9915
- let m = I.pos, E = p.pos, B = I.nodeAfter, Q = p.nodeBefore, w = s && B && B.isText ? /^\s*/.exec(B.text)[0].length : 0, y = s && Q && Q.isText ? /\s*$/.exec(Q.text)[0].length : 0;
9916
- m + w < E && (m += w, E -= y), u.addMark(m, E, A.create(e));
9915
+ let m = I.pos, E = p.pos, B = I.nodeAfter, Q = p.nodeBefore, S = s && B && B.isText ? /^\s*/.exec(B.text)[0].length : 0, w = s && Q && Q.isText ? /\s*$/.exec(Q.text)[0].length : 0;
9916
+ m + S < E && (m += S, E -= w), u.addMark(m, E, A.create(e));
9917
9917
  }
9918
9918
  }
9919
9919
  l(u.scrollIntoView());
@@ -13695,12 +13695,12 @@ function scrollRectIntoView(A, e, n, r, o, s, a, l) {
13695
13695
  else {
13696
13696
  let B = 0, Q = 0;
13697
13697
  if (E) {
13698
- let w = h.scrollTop;
13699
- h.scrollTop += E / p, Q = (h.scrollTop - w) * p;
13698
+ let S = h.scrollTop;
13699
+ h.scrollTop += E / p, Q = (h.scrollTop - S) * p;
13700
13700
  }
13701
13701
  if (m) {
13702
- let w = h.scrollLeft;
13703
- h.scrollLeft += m / I, B = (h.scrollLeft - w) * I;
13702
+ let S = h.scrollLeft;
13703
+ h.scrollLeft += m / I, B = (h.scrollLeft - S) * I;
13704
13704
  }
13705
13705
  e = {
13706
13706
  left: e.left - B,
@@ -15461,10 +15461,10 @@ let DocView$1 = class extends ContentView {
15461
15461
  break;
15462
15462
  let { fromA: c, toA: g, fromB: h, toB: d } = l, u, f, I, p;
15463
15463
  if (r && r.range.fromB < d && r.range.toB > h) {
15464
- let w = ContentBuilder.build(this.view.state.doc, h, r.range.fromB, this.decorations, this.dynamicDecorationMap), y = ContentBuilder.build(this.view.state.doc, r.range.toB, d, this.decorations, this.dynamicDecorationMap);
15465
- f = w.breakAtStart, I = w.openStart, p = y.openEnd;
15466
- let S = this.compositionView(r);
15467
- y.breakAtStart ? S.breakAfter = 1 : y.content.length && S.merge(S.length, S.length, y.content[0], !1, y.openStart, 0) && (S.breakAfter = y.content[0].breakAfter, y.content.shift()), w.content.length && S.merge(0, 0, w.content[w.content.length - 1], !0, 0, w.openEnd) && w.content.pop(), u = w.content.concat(S).concat(y.content);
15464
+ let S = ContentBuilder.build(this.view.state.doc, h, r.range.fromB, this.decorations, this.dynamicDecorationMap), w = ContentBuilder.build(this.view.state.doc, r.range.toB, d, this.decorations, this.dynamicDecorationMap);
15465
+ f = S.breakAtStart, I = S.openStart, p = w.openEnd;
15466
+ let y = this.compositionView(r);
15467
+ w.breakAtStart ? y.breakAfter = 1 : w.content.length && y.merge(y.length, y.length, w.content[0], !1, w.openStart, 0) && (y.breakAfter = w.content[0].breakAfter, w.content.shift()), S.content.length && y.merge(0, 0, S.content[S.content.length - 1], !0, 0, S.openEnd) && S.content.pop(), u = S.content.concat(y).concat(w.content);
15468
15468
  } else
15469
15469
  ({ content: u, breakAtStart: f, openStart: I, openEnd: p } = ContentBuilder.build(this.view.state.doc, h, d, this.decorations, this.dynamicDecorationMap));
15470
15470
  let { i: m, off: E } = s.findPos(g, 1), { i: B, off: Q } = s.findPos(c, -1);
@@ -15923,11 +15923,11 @@ function posAtCoords(A, e, n, r = -1) {
15923
15923
  return 0;
15924
15924
  if (u > g)
15925
15925
  return A.state.doc.length;
15926
- for (let w = A.viewState.heightOracle.textHeight / 2, y = !1; c = A.elementAtHeight(u), c.type != BlockType.Text; )
15927
- for (; u = r > 0 ? c.bottom + w : c.top - w, !(u >= 0 && u <= g); ) {
15928
- if (y)
15926
+ for (let S = A.viewState.heightOracle.textHeight / 2, w = !1; c = A.elementAtHeight(u), c.type != BlockType.Text; )
15927
+ for (; u = r > 0 ? c.bottom + S : c.top - S, !(u >= 0 && u <= g); ) {
15928
+ if (w)
15929
15929
  return n ? null : 0;
15930
- y = !0, r = -r;
15930
+ w = !0, r = -r;
15931
15931
  }
15932
15932
  d = l + u;
15933
15933
  let f = c.from;
@@ -15940,26 +15940,26 @@ function posAtCoords(A, e, n, r = -1) {
15940
15940
  let E, B = -1;
15941
15941
  if (m && ((o = A.docView.nearest(m)) === null || o === void 0 ? void 0 : o.isEditable) != !1) {
15942
15942
  if (I.caretPositionFromPoint) {
15943
- let w = I.caretPositionFromPoint(h, d);
15944
- w && ({ offsetNode: E, offset: B } = w);
15943
+ let S = I.caretPositionFromPoint(h, d);
15944
+ S && ({ offsetNode: E, offset: B } = S);
15945
15945
  } else if (I.caretRangeFromPoint) {
15946
- let w = I.caretRangeFromPoint(h, d);
15947
- w && ({ startContainer: E, startOffset: B } = w, (!A.contentDOM.contains(E) || browser$1.safari && isSuspiciousSafariCaretResult(E, B, h) || browser$1.chrome && isSuspiciousChromeCaretResult(E, B, h)) && (E = void 0));
15946
+ let S = I.caretRangeFromPoint(h, d);
15947
+ S && ({ startContainer: E, startOffset: B } = S, (!A.contentDOM.contains(E) || browser$1.safari && isSuspiciousSafariCaretResult(E, B, h) || browser$1.chrome && isSuspiciousChromeCaretResult(E, B, h)) && (E = void 0));
15948
15948
  }
15949
15949
  E && (B = Math.min(maxOffset(E), B));
15950
15950
  }
15951
15951
  if (!E || !A.docView.dom.contains(E)) {
15952
- let w = LineView.find(A.docView, f);
15953
- if (!w)
15952
+ let S = LineView.find(A.docView, f);
15953
+ if (!S)
15954
15954
  return u > c.top + c.height / 2 ? c.to : c.from;
15955
- ({ node: E, offset: B } = domPosAtCoords(w.dom, h, d));
15955
+ ({ node: E, offset: B } = domPosAtCoords(S.dom, h, d));
15956
15956
  }
15957
15957
  let Q = A.docView.nearest(E);
15958
15958
  if (!Q)
15959
15959
  return null;
15960
15960
  if (Q.isWidget && ((s = Q.dom) === null || s === void 0 ? void 0 : s.nodeType) == 1) {
15961
- let w = Q.dom.getBoundingClientRect();
15962
- return e.y < w.top || e.y <= w.bottom && e.x <= (w.left + w.right) / 2 ? Q.posAtStart : Q.posAtEnd;
15961
+ let S = Q.dom.getBoundingClientRect();
15962
+ return e.y < S.top || e.y <= S.bottom && e.x <= (S.left + S.right) / 2 ? Q.posAtStart : Q.posAtEnd;
15963
15963
  } else
15964
15964
  return Q.localPosFromDOM(E, B) + Q.posAtStart;
15965
15965
  }
@@ -17363,8 +17363,8 @@ class ViewState {
17363
17363
  this.contentDOMHeight = l.height, this.mustMeasureContent = !1;
17364
17364
  let g = 0, h = 0;
17365
17365
  if (l.width && l.height) {
17366
- let { scaleX: w, scaleY: y } = getScale(n, l);
17367
- (w > 5e-3 && Math.abs(this.scaleX - w) > 5e-3 || y > 5e-3 && Math.abs(this.scaleY - y) > 5e-3) && (this.scaleX = w, this.scaleY = y, g |= 16, a = c = !0);
17366
+ let { scaleX: S, scaleY: w } = getScale(n, l);
17367
+ (S > 5e-3 && Math.abs(this.scaleX - S) > 5e-3 || w > 5e-3 && Math.abs(this.scaleY - w) > 5e-3) && (this.scaleX = S, this.scaleY = w, g |= 16, a = c = !0);
17368
17368
  }
17369
17369
  let d = (parseInt(r.paddingTop) || 0) * this.scaleY, u = (parseInt(r.paddingBottom) || 0) * this.scaleY;
17370
17370
  (this.paddingTop != d || this.paddingBottom != u) && (this.paddingTop = d, this.paddingBottom = u, g |= 18), this.editorWidth != e.scrollDOM.clientWidth && (o.lineWrapping && (c = !0), this.editorWidth = e.scrollDOM.clientWidth, g |= 16);
@@ -17377,15 +17377,15 @@ class ViewState {
17377
17377
  return 0;
17378
17378
  let B = l.width;
17379
17379
  if ((this.contentDOMWidth != B || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = l.width, this.editorHeight = e.scrollDOM.clientHeight, g |= 16), c) {
17380
- let w = e.docView.measureVisibleLineHeights(this.viewport);
17381
- if (o.mustRefreshForHeights(w) && (a = !0), a || o.lineWrapping && Math.abs(B - this.contentDOMWidth) > o.charWidth) {
17382
- let { lineHeight: y, charWidth: S, textHeight: D } = e.docView.measureTextSize();
17383
- a = y > 0 && o.refresh(s, y, S, D, Math.max(5, B / S), w), a && (e.docView.minWidth = 0, g |= 16);
17380
+ let S = e.docView.measureVisibleLineHeights(this.viewport);
17381
+ if (o.mustRefreshForHeights(S) && (a = !0), a || o.lineWrapping && Math.abs(B - this.contentDOMWidth) > o.charWidth) {
17382
+ let { lineHeight: w, charWidth: y, textHeight: D } = e.docView.measureTextSize();
17383
+ a = w > 0 && o.refresh(s, w, y, D, Math.max(5, B / y), S), a && (e.docView.minWidth = 0, g |= 16);
17384
17384
  }
17385
17385
  p > 0 && m > 0 ? h = Math.max(p, m) : p < 0 && m < 0 && (h = Math.min(p, m)), clearHeightChangeFlag();
17386
- for (let y of this.viewports) {
17387
- let S = y.from == this.viewport.from ? w : e.docView.measureVisibleLineHeights(y);
17388
- this.heightMap = (a ? HeightMap.empty().applyChanges(this.stateDeco, Text.empty, this.heightOracle, [new ChangedRange(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(o, 0, a, new MeasuredHeights(y.from, S));
17386
+ for (let w of this.viewports) {
17387
+ let y = w.from == this.viewport.from ? S : e.docView.measureVisibleLineHeights(w);
17388
+ this.heightMap = (a ? HeightMap.empty().applyChanges(this.stateDeco, Text.empty, this.heightOracle, [new ChangedRange(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(o, 0, a, new MeasuredHeights(w.from, y));
17389
17389
  }
17390
17390
  heightChangeFlag && (g |= 2);
17391
17391
  }
@@ -17486,15 +17486,15 @@ class ViewState {
17486
17486
  } else {
17487
17487
  let p = d.total * this.heightOracle.charWidth, m = o * this.heightOracle.charWidth, E = 0;
17488
17488
  if (p > 2e6)
17489
- for (let S of e)
17490
- S.from >= h.from && S.from < h.to && S.size != S.displaySize && S.from * this.heightOracle.charWidth + E < this.pixelViewport.left && (E = S.size - S.displaySize);
17491
- let B = this.pixelViewport.left + E, Q = this.pixelViewport.right + E, w, y;
17489
+ for (let y of e)
17490
+ y.from >= h.from && y.from < h.to && y.size != y.displaySize && y.from * this.heightOracle.charWidth + E < this.pixelViewport.left && (E = y.size - y.displaySize);
17491
+ let B = this.pixelViewport.left + E, Q = this.pixelViewport.right + E, S, w;
17492
17492
  if (u != null) {
17493
- let S = findFraction(d, u), D = ((Q - B) / 2 + m) / p;
17494
- w = S - D, y = S + D;
17493
+ let y = findFraction(d, u), D = ((Q - B) / 2 + m) / p;
17494
+ S = y - D, w = y + D;
17495
17495
  } else
17496
- w = (B - m) / p, y = (Q + m) / p;
17497
- f = findPosition(d, w), I = findPosition(d, y);
17496
+ S = (B - m) / p, w = (Q + m) / p;
17497
+ f = findPosition(d, S), I = findPosition(d, w);
17498
17498
  }
17499
17499
  f > h.from && c(h.from, f, h, d), I < h.to && c(I, h.to, h, d);
17500
17500
  };
@@ -19140,9 +19140,9 @@ function buildKeymap(A, e = currentPlatform) {
19140
19140
  preventDefault: !0,
19141
19141
  stopPropagation: !1,
19142
19142
  run: [(Q) => {
19143
- let w = storedPrefix = { view: Q, prefix: B, scope: a };
19143
+ let S = storedPrefix = { view: Q, prefix: B, scope: a };
19144
19144
  return setTimeout(() => {
19145
- storedPrefix == w && (storedPrefix = null);
19145
+ storedPrefix == S && (storedPrefix = null);
19146
19146
  }, PrefixTimeout), !0;
19147
19147
  }]
19148
19148
  });
@@ -19248,25 +19248,25 @@ function rectanglesForRange(A, e, n) {
19248
19248
  if (p && (A.lineWrapping || f.widgetLineBreaks) && (p = wrappedLine(A, r, 1, p)), m && (A.lineWrapping || I.widgetLineBreaks) && (m = wrappedLine(A, o, -1, m)), p && m && p.from == m.from && p.to == m.to)
19249
19249
  return B(Q(n.from, n.to, p));
19250
19250
  {
19251
- let y = p ? Q(n.from, null, p) : w(f, !1), S = m ? Q(null, n.to, m) : w(I, !0), D = [];
19252
- return (p || f).to < (m || I).from - (p && m ? 1 : 0) || f.widgetLineBreaks > 1 && y.bottom + A.defaultLineHeight / 2 < S.top ? D.push(E(d, y.bottom, u, S.top)) : y.bottom < S.top && A.elementAtHeight((y.bottom + S.top) / 2).type == BlockType.Text && (y.bottom = S.top = (y.bottom + S.top) / 2), B(y).concat(D).concat(B(S));
19251
+ let w = p ? Q(n.from, null, p) : S(f, !1), y = m ? Q(null, n.to, m) : S(I, !0), D = [];
19252
+ return (p || f).to < (m || I).from - (p && m ? 1 : 0) || f.widgetLineBreaks > 1 && w.bottom + A.defaultLineHeight / 2 < y.top ? D.push(E(d, w.bottom, u, y.top)) : w.bottom < y.top && A.elementAtHeight((w.bottom + y.top) / 2).type == BlockType.Text && (w.bottom = y.top = (w.bottom + y.top) / 2), B(w).concat(D).concat(B(y));
19253
19253
  }
19254
- function E(y, S, D, _) {
19255
- return new RectangleMarker(e, y - c.left, S - c.top, D - y, _ - S);
19254
+ function E(w, y, D, _) {
19255
+ return new RectangleMarker(e, w - c.left, y - c.top, D - w, _ - y);
19256
19256
  }
19257
- function B({ top: y, bottom: S, horizontal: D }) {
19257
+ function B({ top: w, bottom: y, horizontal: D }) {
19258
19258
  let _ = [];
19259
19259
  for (let M = 0; M < D.length; M += 2)
19260
- _.push(E(D[M], y, D[M + 1], S));
19260
+ _.push(E(D[M], w, D[M + 1], y));
19261
19261
  return _;
19262
19262
  }
19263
- function Q(y, S, D) {
19263
+ function Q(w, y, D) {
19264
19264
  let _ = 1e9, M = -1e9, v = [];
19265
19265
  function F(L, G, K, O, oe) {
19266
19266
  let j = A.coordsAtPos(L, L == D.to ? -2 : 2), re = A.coordsAtPos(K, K == D.from ? 2 : -2);
19267
19267
  !j || !re || (_ = Math.min(j.top, re.top, _), M = Math.max(j.bottom, re.bottom, M), oe == Direction.LTR ? v.push(s && G ? d : j.left, s && O ? u : re.right) : v.push(!s && O ? d : re.left, !s && G ? u : j.right));
19268
19268
  }
19269
- let R = y ?? D.from, N = S ?? D.to;
19269
+ let R = w ?? D.from, N = y ?? D.to;
19270
19270
  for (let L of A.visibleRanges)
19271
19271
  if (L.to > R && L.from < N)
19272
19272
  for (let G = Math.max(L.from, R), K = Math.min(L.to, N); ; ) {
@@ -19275,15 +19275,15 @@ function rectanglesForRange(A, e, n) {
19275
19275
  let j = oe.from + O.from, re = oe.to + O.from;
19276
19276
  if (j >= K)
19277
19277
  break;
19278
- re > G && F(Math.max(j, G), y == null && j <= R, Math.min(re, K), S == null && re >= N, oe.dir);
19278
+ re > G && F(Math.max(j, G), w == null && j <= R, Math.min(re, K), y == null && re >= N, oe.dir);
19279
19279
  }
19280
19280
  if (G = O.to + 1, G >= K)
19281
19281
  break;
19282
19282
  }
19283
- return v.length == 0 && F(R, y == null, N, S == null, A.textDirection), { top: _, bottom: M, horizontal: v };
19283
+ return v.length == 0 && F(R, w == null, N, y == null, A.textDirection), { top: _, bottom: M, horizontal: v };
19284
19284
  }
19285
- function w(y, S) {
19286
- let D = l.top + (S ? y.top : y.bottom);
19285
+ function S(w, y) {
19286
+ let D = l.top + (y ? w.top : w.bottom);
19287
19287
  return { top: D, bottom: D, horizontal: [] };
19288
19288
  }
19289
19289
  }
@@ -19621,25 +19621,25 @@ const tooltipConfig = /* @__PURE__ */ Facet.define({
19621
19621
  h.style.top = Outside;
19622
19622
  continue;
19623
19623
  }
19624
- let f = c.arrow ? g.dom.querySelector(".cm-tooltip-arrow") : null, I = f ? 7 : 0, p = u.right - u.left, m = (e = knownHeight.get(g)) !== null && e !== void 0 ? e : u.bottom - u.top, E = g.offset || noOffset, B = this.view.textDirection == Direction.LTR, Q = u.width > r.right - r.left ? B ? r.left : r.right - u.width : B ? Math.max(r.left, Math.min(d.left - (f ? 14 : 0) + E.x, r.right - p)) : Math.min(Math.max(r.left, d.left - p + (f ? 14 : 0) - E.x), r.right - p), w = this.above[l];
19625
- !c.strictSide && (w ? d.top - m - I - E.y < r.top : d.bottom + m + I + E.y > r.bottom) && w == r.bottom - d.bottom > d.top - r.top && (w = this.above[l] = !w);
19626
- let y = (w ? d.top - r.top : r.bottom - d.bottom) - I;
19627
- if (y < m && g.resize !== !1) {
19628
- if (y < this.view.defaultLineHeight) {
19624
+ let f = c.arrow ? g.dom.querySelector(".cm-tooltip-arrow") : null, I = f ? 7 : 0, p = u.right - u.left, m = (e = knownHeight.get(g)) !== null && e !== void 0 ? e : u.bottom - u.top, E = g.offset || noOffset, B = this.view.textDirection == Direction.LTR, Q = u.width > r.right - r.left ? B ? r.left : r.right - u.width : B ? Math.max(r.left, Math.min(d.left - (f ? 14 : 0) + E.x, r.right - p)) : Math.min(Math.max(r.left, d.left - p + (f ? 14 : 0) - E.x), r.right - p), S = this.above[l];
19625
+ !c.strictSide && (S ? d.top - m - I - E.y < r.top : d.bottom + m + I + E.y > r.bottom) && S == r.bottom - d.bottom > d.top - r.top && (S = this.above[l] = !S);
19626
+ let w = (S ? d.top - r.top : r.bottom - d.bottom) - I;
19627
+ if (w < m && g.resize !== !1) {
19628
+ if (w < this.view.defaultLineHeight) {
19629
19629
  h.style.top = Outside;
19630
19630
  continue;
19631
19631
  }
19632
- knownHeight.set(g, m), h.style.height = (m = y) / s + "px";
19632
+ knownHeight.set(g, m), h.style.height = (m = w) / s + "px";
19633
19633
  } else h.style.height && (h.style.height = "");
19634
- let S = w ? d.top - m - I - E.y : d.bottom + I + E.y, D = Q + p;
19634
+ let y = S ? d.top - m - I - E.y : d.bottom + I + E.y, D = Q + p;
19635
19635
  if (g.overlap !== !0)
19636
19636
  for (let _ of a)
19637
- _.left < D && _.right > Q && _.top < S + m && _.bottom > S && (S = w ? _.top - m - 2 - I : _.bottom + I + 2);
19638
- if (this.position == "absolute" ? (h.style.top = (S - A.parent.top) / s + "px", setLeftStyle(h, (Q - A.parent.left) / o)) : (h.style.top = S / s + "px", setLeftStyle(h, Q / o)), f) {
19637
+ _.left < D && _.right > Q && _.top < y + m && _.bottom > y && (y = S ? _.top - m - 2 - I : _.bottom + I + 2);
19638
+ if (this.position == "absolute" ? (h.style.top = (y - A.parent.top) / s + "px", setLeftStyle(h, (Q - A.parent.left) / o)) : (h.style.top = y / s + "px", setLeftStyle(h, Q / o)), f) {
19639
19639
  let _ = d.left + (B ? E.x : -E.x) - (Q + 14 - 7);
19640
19640
  f.style.left = _ / o + "px";
19641
19641
  }
19642
- g.overlap !== !0 && a.push({ left: Q, top: S, right: D, bottom: S + m }), h.classList.toggle("cm-tooltip-above", w), h.classList.toggle("cm-tooltip-below", !w), g.positioned && g.positioned(A.space);
19642
+ g.overlap !== !0 && a.push({ left: Q, top: y, right: D, bottom: y + m }), h.classList.toggle("cm-tooltip-above", S), h.classList.toggle("cm-tooltip-below", !S), g.positioned && g.positioned(A.space);
19643
19643
  }
19644
19644
  }
19645
19645
  maybeMeasure() {
@@ -21352,12 +21352,12 @@ function hasChild(A) {
21352
21352
  function buildTree(A) {
21353
21353
  var e;
21354
21354
  let { buffer: n, nodeSet: r, maxBufferLength: o = DefaultBufferLength, reused: s = [], minRepeatType: a = r.types.length } = A, l = Array.isArray(n) ? new FlatBufferCursor(n, n.length) : n, c = r.types, g = 0, h = 0;
21355
- function d(y, S, D, _, M, v) {
21355
+ function d(w, y, D, _, M, v) {
21356
21356
  let { id: F, start: R, end: N, size: L } = l, G = h, K = g;
21357
21357
  if (L < 0)
21358
21358
  if (l.next(), L == -1) {
21359
21359
  let z = s[F];
21360
- D.push(z), _.push(R - y);
21360
+ D.push(z), _.push(R - w);
21361
21361
  return;
21362
21362
  } else if (L == -3) {
21363
21363
  g = F;
@@ -21367,12 +21367,12 @@ function buildTree(A) {
21367
21367
  return;
21368
21368
  } else
21369
21369
  throw new RangeError(`Unrecognized record size: ${L}`);
21370
- let O = c[F], oe, j, re = R - y;
21371
- if (N - R <= o && (j = m(l.pos - S, M))) {
21370
+ let O = c[F], oe, j, re = R - w;
21371
+ if (N - R <= o && (j = m(l.pos - y, M))) {
21372
21372
  let z = new Uint16Array(j.size - j.skip), ee = l.pos - j.size, ae = z.length;
21373
21373
  for (; l.pos > ee; )
21374
21374
  ae = E(j.start, z, ae);
21375
- oe = new TreeBuffer(z, N - j.start, r), re = j.start - y;
21375
+ oe = new TreeBuffer(z, N - j.start, r), re = j.start - w;
21376
21376
  } else {
21377
21377
  let z = l.pos - L;
21378
21378
  l.next();
@@ -21387,9 +21387,9 @@ function buildTree(A) {
21387
21387
  }
21388
21388
  D.push(oe), _.push(re);
21389
21389
  }
21390
- function u(y, S, D, _) {
21390
+ function u(w, y, D, _) {
21391
21391
  let M = [], v = 0, F = -1;
21392
- for (; l.pos > S; ) {
21392
+ for (; l.pos > y; ) {
21393
21393
  let { id: R, start: N, end: L, size: G } = l;
21394
21394
  if (G > 4)
21395
21395
  l.next();
@@ -21403,27 +21403,27 @@ function buildTree(A) {
21403
21403
  let R = new Uint16Array(v * 4), N = M[M.length - 2];
21404
21404
  for (let L = M.length - 3, G = 0; L >= 0; L -= 3)
21405
21405
  R[G++] = M[L], R[G++] = M[L + 1] - N, R[G++] = M[L + 2] - N, R[G++] = G;
21406
- D.push(new TreeBuffer(R, M[2] - N, r)), _.push(N - y);
21406
+ D.push(new TreeBuffer(R, M[2] - N, r)), _.push(N - w);
21407
21407
  }
21408
21408
  }
21409
- function f(y, S) {
21409
+ function f(w, y) {
21410
21410
  return (D, _, M) => {
21411
21411
  let v = 0, F = D.length - 1, R, N;
21412
21412
  if (F >= 0 && (R = D[F]) instanceof Tree$1) {
21413
- if (!F && R.type == y && R.length == M)
21413
+ if (!F && R.type == w && R.length == M)
21414
21414
  return R;
21415
21415
  (N = R.prop(NodeProp.lookAhead)) && (v = _[F] + R.length + N);
21416
21416
  }
21417
- return p(y, D, _, M, v, S);
21417
+ return p(w, D, _, M, v, y);
21418
21418
  };
21419
21419
  }
21420
- function I(y, S, D, _, M, v, F, R, N) {
21420
+ function I(w, y, D, _, M, v, F, R, N) {
21421
21421
  let L = [], G = [];
21422
- for (; y.length > _; )
21423
- L.push(y.pop()), G.push(S.pop() + D - M);
21424
- y.push(p(r.types[F], L, G, v - M, R - v, N)), S.push(M - D);
21422
+ for (; w.length > _; )
21423
+ L.push(w.pop()), G.push(y.pop() + D - M);
21424
+ w.push(p(r.types[F], L, G, v - M, R - v, N)), y.push(M - D);
21425
21425
  }
21426
- function p(y, S, D, _, M, v, F) {
21426
+ function p(w, y, D, _, M, v, F) {
21427
21427
  if (v) {
21428
21428
  let R = [NodeProp.contextHash, v];
21429
21429
  F = F ? [R].concat(F) : [R];
@@ -21432,13 +21432,13 @@ function buildTree(A) {
21432
21432
  let R = [NodeProp.lookAhead, M];
21433
21433
  F = F ? [R].concat(F) : [R];
21434
21434
  }
21435
- return new Tree$1(y, S, D, _, F);
21435
+ return new Tree$1(w, y, D, _, F);
21436
21436
  }
21437
- function m(y, S) {
21437
+ function m(w, y) {
21438
21438
  let D = l.fork(), _ = 0, M = 0, v = 0, F = D.end - o, R = { size: 0, start: 0, skip: 0 };
21439
- e: for (let N = D.pos - y; D.pos > N; ) {
21439
+ e: for (let N = D.pos - w; D.pos > N; ) {
21440
21440
  let L = D.size;
21441
- if (D.id == S && L >= 0) {
21441
+ if (D.id == y && L >= 0) {
21442
21442
  R.size = _, R.start = M, R.skip = v, v += 4, _ += 4, D.next();
21443
21443
  continue;
21444
21444
  }
@@ -21457,26 +21457,26 @@ function buildTree(A) {
21457
21457
  }
21458
21458
  M = O, _ += L, v += K;
21459
21459
  }
21460
- return (S < 0 || _ == y) && (R.size = _, R.start = M, R.skip = v), R.size > 4 ? R : void 0;
21460
+ return (y < 0 || _ == w) && (R.size = _, R.start = M, R.skip = v), R.size > 4 ? R : void 0;
21461
21461
  }
21462
- function E(y, S, D) {
21462
+ function E(w, y, D) {
21463
21463
  let { id: _, start: M, end: v, size: F } = l;
21464
21464
  if (l.next(), F >= 0 && _ < a) {
21465
21465
  let R = D;
21466
21466
  if (F > 4) {
21467
21467
  let N = l.pos - (F - 4);
21468
21468
  for (; l.pos > N; )
21469
- D = E(y, S, D);
21469
+ D = E(w, y, D);
21470
21470
  }
21471
- S[--D] = R, S[--D] = v - y, S[--D] = M - y, S[--D] = _;
21471
+ y[--D] = R, y[--D] = v - w, y[--D] = M - w, y[--D] = _;
21472
21472
  } else F == -3 ? g = _ : F == -4 && (h = _);
21473
21473
  return D;
21474
21474
  }
21475
21475
  let B = [], Q = [];
21476
21476
  for (; l.pos > 0; )
21477
21477
  d(A.start || 0, A.bufferStart || 0, B, Q, -1, 0);
21478
- let w = (e = A.length) !== null && e !== void 0 ? e : B.length ? Q[0] + B[0].length : 0;
21479
- return new Tree$1(c[A.topID], B.reverse(), Q.reverse(), w);
21478
+ let S = (e = A.length) !== null && e !== void 0 ? e : B.length ? Q[0] + B[0].length : 0;
21479
+ return new Tree$1(c[A.topID], B.reverse(), Q.reverse(), S);
21480
21480
  }
21481
21481
  const nodeSizeCache = /* @__PURE__ */ new WeakMap();
21482
21482
  function nodeSize(A, e) {
@@ -21506,25 +21506,25 @@ function balanceRange(A, e, n, r, o, s, a, l, c) {
21506
21506
  ), d = [], u = [];
21507
21507
  function f(I, p, m, E, B) {
21508
21508
  for (let Q = m; Q < E; ) {
21509
- let w = Q, y = p[Q], S = nodeSize(A, I[Q]);
21509
+ let S = Q, w = p[Q], y = nodeSize(A, I[Q]);
21510
21510
  for (Q++; Q < E; Q++) {
21511
21511
  let D = nodeSize(A, I[Q]);
21512
- if (S + D >= h)
21512
+ if (y + D >= h)
21513
21513
  break;
21514
- S += D;
21514
+ y += D;
21515
21515
  }
21516
- if (Q == w + 1) {
21517
- if (S > h) {
21518
- let D = I[w];
21519
- f(D.children, D.positions, 0, D.children.length, p[w] + B);
21516
+ if (Q == S + 1) {
21517
+ if (y > h) {
21518
+ let D = I[S];
21519
+ f(D.children, D.positions, 0, D.children.length, p[S] + B);
21520
21520
  continue;
21521
21521
  }
21522
- d.push(I[w]);
21522
+ d.push(I[S]);
21523
21523
  } else {
21524
- let D = p[Q - 1] + I[Q - 1].length - y;
21525
- d.push(balanceRange(A, I, p, w, Q, y, D, null, c));
21524
+ let D = p[Q - 1] + I[Q - 1].length - w;
21525
+ d.push(balanceRange(A, I, p, S, Q, w, D, null, c));
21526
21526
  }
21527
- u.push(y + B - s);
21527
+ u.push(w + B - s);
21528
21528
  }
21529
21529
  }
21530
21530
  return f(e, n, r, o, 0), (l || c)(d, u, a);
@@ -21807,10 +21807,10 @@ function materialize(A) {
21807
21807
  function g(h, d, u, f, I, p) {
21808
21808
  let m = n[p], E = [], B = [];
21809
21809
  sliceBuf(a, h, m, E, B, f);
21810
- let Q = l[m + 1], w = l[m + 2];
21810
+ let Q = l[m + 1], S = l[m + 2];
21811
21811
  c.push(E.length);
21812
- let y = p ? g(m + 4, l[m + 3], a.set.types[l[m]], Q, w - Q, p - 1) : e.toTree();
21813
- return E.push(y), B.push(Q - f), sliceBuf(a, l[m + 3], d, E, B, f), new Tree$1(u, E, B, I);
21812
+ let w = p ? g(m + 4, l[m + 3], a.set.types[l[m]], Q, S - Q, p - 1) : e.toTree();
21813
+ return E.push(w), B.push(Q - f), sliceBuf(a, l[m + 3], d, E, B, f), new Tree$1(u, E, B, I);
21814
21814
  }
21815
21815
  o.children[s] = g(0, l.length, NodeType.none, 0, a.length, n.length - 1);
21816
21816
  for (let h of c) {
@@ -22129,9 +22129,9 @@ class HighlightBuilder {
22129
22129
  if (u && u.overlay) {
22130
22130
  let f = e.node.enter(u.overlay[0].from + l, 1), I = this.highlighters.filter((m) => !m.scope || m.scope(u.tree.type)), p = e.firstChild();
22131
22131
  for (let m = 0, E = l; ; m++) {
22132
- let B = m < u.overlay.length ? u.overlay[m] : null, Q = B ? B.from + l : c, w = Math.max(n, E), y = Math.min(r, Q);
22133
- if (w < y && p)
22134
- for (; e.from < y && (this.highlightRange(e, w, y, o, s), this.startSpan(Math.min(y, e.to), g), !(e.to >= Q || !e.nextSibling())); )
22132
+ let B = m < u.overlay.length ? u.overlay[m] : null, Q = B ? B.from + l : c, S = Math.max(n, E), w = Math.min(r, Q);
22133
+ if (S < w && p)
22134
+ for (; e.from < w && (this.highlightRange(e, S, w, o, s), this.startSpan(Math.min(w, e.to), g), !(e.to >= Q || !e.nextSibling())); )
22135
22135
  ;
22136
22136
  if (!B || Q > r)
22137
22137
  break;
@@ -27031,46 +27031,46 @@ class NodeImage extends Node$1 {
27031
27031
  const Q = B.target;
27032
27032
  if (!Q.classList.contains("kb-image-resize-handle")) return;
27033
27033
  B.preventDefault(), B.stopPropagation(), c = !0, I = Q.dataset.position || null, g = B.clientX, h = B.clientY;
27034
- const w = a.getBoundingClientRect();
27035
- d = w.width, u = w.height, f = d / u, s.classList.add("kb-image-resizing"), document.addEventListener("mousemove", m), document.addEventListener("mouseup", E);
27034
+ const S = a.getBoundingClientRect();
27035
+ d = S.width, u = S.height, f = d / u, s.classList.add("kb-image-resizing"), document.addEventListener("mousemove", m), document.addEventListener("mouseup", E);
27036
27036
  }, m = (B) => {
27037
27037
  if (!c) return;
27038
- const Q = B.clientX - g, w = B.clientY - h;
27039
- let y = d, S = u;
27038
+ const Q = B.clientX - g, S = B.clientY - h;
27039
+ let w = d, y = u;
27040
27040
  switch (I) {
27041
27041
  case "se":
27042
- y = d + Q, S = B.shiftKey ? u + w : y / f;
27042
+ w = d + Q, y = B.shiftKey ? u + S : w / f;
27043
27043
  break;
27044
27044
  case "sw":
27045
- y = d - Q, S = B.shiftKey ? u + w : y / f;
27045
+ w = d - Q, y = B.shiftKey ? u + S : w / f;
27046
27046
  break;
27047
27047
  case "ne":
27048
- y = d + Q, S = B.shiftKey ? u - w : y / f;
27048
+ w = d + Q, y = B.shiftKey ? u - S : w / f;
27049
27049
  break;
27050
27050
  case "nw":
27051
- y = d - Q, S = B.shiftKey ? u - w : y / f;
27051
+ w = d - Q, y = B.shiftKey ? u - S : w / f;
27052
27052
  break;
27053
27053
  }
27054
- y = Math.max(50, y), S = Math.max(50, S), a.style.width = `${Math.round(y)}px`, a.style.height = `${Math.round(S)}px`;
27054
+ w = Math.max(50, w), y = Math.max(50, y), a.style.width = `${Math.round(w)}px`, a.style.height = `${Math.round(y)}px`;
27055
27055
  }, E = () => {
27056
27056
  if (!c) return;
27057
27057
  c = !1, I = null, s.classList.remove("kb-image-resizing"), document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", E);
27058
- const B = Math.round(a.getBoundingClientRect().width), Q = Math.round(a.getBoundingClientRect().height), w = o();
27059
- if (typeof w == "number") {
27060
- const y = r.state.tr.setNodeMarkup(w, void 0, {
27058
+ const B = Math.round(a.getBoundingClientRect().width), Q = Math.round(a.getBoundingClientRect().height), S = o();
27059
+ if (typeof S == "number") {
27060
+ const w = r.state.tr.setNodeMarkup(S, void 0, {
27061
27061
  ...n.attrs,
27062
27062
  width: `${B}px`,
27063
27063
  height: `${Q}px`
27064
27064
  });
27065
- r.dispatch(y);
27065
+ r.dispatch(w);
27066
27066
  }
27067
27067
  };
27068
27068
  return s.addEventListener("mousedown", p), s.addEventListener("click", (B) => {
27069
27069
  B.preventDefault();
27070
27070
  const Q = o();
27071
27071
  if (typeof Q == "number") {
27072
- const w = r.state.doc.resolve(Q), y = Selection.near(w);
27073
- r.dispatch(r.state.tr.setSelection(y));
27072
+ const S = r.state.doc.resolve(Q), w = Selection.near(S);
27073
+ r.dispatch(r.state.tr.setSelection(w));
27074
27074
  }
27075
27075
  }), {
27076
27076
  dom: s,
@@ -28160,12 +28160,12 @@ class FuzzyMatcher {
28160
28160
  return null;
28161
28161
  let { chars: n, folded: r, any: o, precise: s, byWord: a } = this;
28162
28162
  if (n.length == 1) {
28163
- let B = codePointAt(e, 0), Q = codePointSize(B), w = Q == e.length ? 0 : -100;
28163
+ let B = codePointAt(e, 0), Q = codePointSize(B), S = Q == e.length ? 0 : -100;
28164
28164
  if (B != n[0]) if (B == r[0])
28165
- w += -200;
28165
+ S += -200;
28166
28166
  else
28167
28167
  return null;
28168
- return this.ret(w, [0, Q]);
28168
+ return this.ret(S, [0, Q]);
28169
28169
  }
28170
28170
  let l = e.indexOf(this.pattern);
28171
28171
  if (l == 0)
@@ -28173,18 +28173,18 @@ class FuzzyMatcher {
28173
28173
  let c = n.length, g = 0;
28174
28174
  if (l < 0) {
28175
28175
  for (let B = 0, Q = Math.min(e.length, 200); B < Q && g < c; ) {
28176
- let w = codePointAt(e, B);
28177
- (w == n[g] || w == r[g]) && (o[g++] = B), B += codePointSize(w);
28176
+ let S = codePointAt(e, B);
28177
+ (S == n[g] || S == r[g]) && (o[g++] = B), B += codePointSize(S);
28178
28178
  }
28179
28179
  if (g < c)
28180
28180
  return null;
28181
28181
  }
28182
28182
  let h = 0, d = 0, u = !1, f = 0, I = -1, p = -1, m = /[a-z]/.test(e), E = !0;
28183
- for (let B = 0, Q = Math.min(e.length, 200), w = 0; B < Q && d < c; ) {
28184
- let y = codePointAt(e, B);
28185
- l < 0 && (h < c && y == n[h] && (s[h++] = B), f < c && (y == n[f] || y == r[f] ? (f == 0 && (I = B), p = B + 1, f++) : f = 0));
28186
- let S, D = y < 255 ? y >= 48 && y <= 57 || y >= 97 && y <= 122 ? 2 : y >= 65 && y <= 90 ? 1 : 0 : (S = fromCodePoint(y)) != S.toLowerCase() ? 1 : S != S.toUpperCase() ? 2 : 0;
28187
- (!B || D == 1 && m || w == 0 && D != 0) && (n[d] == y || r[d] == y && (u = !0) ? a[d++] = B : a.length && (E = !1)), w = D, B += codePointSize(y);
28183
+ for (let B = 0, Q = Math.min(e.length, 200), S = 0; B < Q && d < c; ) {
28184
+ let w = codePointAt(e, B);
28185
+ l < 0 && (h < c && w == n[h] && (s[h++] = B), f < c && (w == n[f] || w == r[f] ? (f == 0 && (I = B), p = B + 1, f++) : f = 0));
28186
+ let y, D = w < 255 ? w >= 48 && w <= 57 || w >= 97 && w <= 122 ? 2 : w >= 65 && w <= 90 ? 1 : 0 : (y = fromCodePoint(w)) != y.toLowerCase() ? 1 : y != y.toUpperCase() ? 2 : 0;
28187
+ (!B || D == 1 && m || S == 0 && D != 0) && (n[d] == w || r[d] == w && (u = !0) ? a[d++] = B : a.length && (E = !1)), S = D, B += codePointSize(w);
28188
28188
  }
28189
28189
  return d == c && a[0] == 0 && E ? this.result(-100 + (u ? -200 : 0), a, e) : f == c && I == 0 ? this.ret(-200 - e.length + (p == e.length ? 0 : -100), [0, p]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : f == c ? this.ret(-900 - e.length, [I, p]) : d == c ? this.result(-100 + (u ? -200 : 0) + -700 + (E ? 0 : -1100), a, e) : n.length == 2 ? null : this.result((o[0] ? -700 : 0) + -200 + -1100, o, e);
28190
28190
  }
@@ -30222,8 +30222,8 @@ class YRemoteSelectionsPluginValue {
30222
30222
  if (h.anchor >= d && h.anchor < u && h.head >= d && h.head < u) {
30223
30223
  const f = { index: h.anchor - d }, I = { index: h.head - d };
30224
30224
  try {
30225
- const { color: p = "#ffa500", name: m = `User: ${g}` } = c.user || {}, E = c.user && c.user.colorLight || p + "33", B = min(f.index, I.index), Q = max(f.index, I.index), w = e.view.state.doc.lineAt(B), y = e.view.state.doc.lineAt(Q);
30226
- if (w.number === y.number)
30225
+ const { color: p = "#ffa500", name: m = `User: ${g}` } = c.user || {}, E = c.user && c.user.colorLight || p + "33", B = min(f.index, I.index), Q = max(f.index, I.index), S = e.view.state.doc.lineAt(B), w = e.view.state.doc.lineAt(Q);
30226
+ if (S.number === w.number)
30227
30227
  n.push({
30228
30228
  from: B,
30229
30229
  to: Q,
@@ -30235,21 +30235,21 @@ class YRemoteSelectionsPluginValue {
30235
30235
  else {
30236
30236
  n.push({
30237
30237
  from: B,
30238
- to: w.from + w.length,
30238
+ to: S.from + S.length,
30239
30239
  value: Decoration.mark({
30240
30240
  attributes: { style: `background-color: ${E}` },
30241
30241
  class: "cm-rSelection"
30242
30242
  })
30243
30243
  }), n.push({
30244
- from: y.from,
30244
+ from: w.from,
30245
30245
  to: Q,
30246
30246
  value: Decoration.mark({
30247
30247
  attributes: { style: `background-color: ${E}` },
30248
30248
  class: "cm-rSelection"
30249
30249
  })
30250
30250
  });
30251
- for (let S = w.number + 1; S < y.number; S++) {
30252
- const D = e.view.state.doc.line(S).from;
30251
+ for (let y = S.number + 1; y < w.number; y++) {
30252
+ const D = e.view.state.doc.line(y).from;
30253
30253
  n.push({
30254
30254
  from: D,
30255
30255
  to: D,
@@ -30594,24 +30594,24 @@ function requireMessages$1() {
30594
30594
  }
30595
30595
  }
30596
30596
  messages$1.NotificationType2 = Q;
30597
- class w extends o {
30597
+ class S extends o {
30598
30598
  constructor(N) {
30599
30599
  super(N, 3);
30600
30600
  }
30601
30601
  }
30602
- messages$1.NotificationType3 = w;
30603
- class y extends o {
30602
+ messages$1.NotificationType3 = S;
30603
+ class w extends o {
30604
30604
  constructor(N) {
30605
30605
  super(N, 4);
30606
30606
  }
30607
30607
  }
30608
- messages$1.NotificationType4 = y;
30609
- class S extends o {
30608
+ messages$1.NotificationType4 = w;
30609
+ class y extends o {
30610
30610
  constructor(N) {
30611
30611
  super(N, 5);
30612
30612
  }
30613
30613
  }
30614
- messages$1.NotificationType5 = S;
30614
+ messages$1.NotificationType5 = y;
30615
30615
  class D extends o {
30616
30616
  constructor(N) {
30617
30617
  super(N, 6);
@@ -31607,23 +31607,23 @@ function requireConnection$1() {
31607
31607
  }
31608
31608
  N.is = L;
31609
31609
  })(Q || (A.ConnectionStrategy = Q = {}));
31610
- var w;
31610
+ var S;
31611
31611
  (function(N) {
31612
31612
  function L(G) {
31613
31613
  const K = G;
31614
31614
  return K && (K.kind === void 0 || K.kind === "id") && n.func(K.createCancellationTokenSource) && (K.dispose === void 0 || n.func(K.dispose));
31615
31615
  }
31616
31616
  N.is = L;
31617
- })(w || (A.IdCancellationReceiverStrategy = w = {}));
31618
- var y;
31617
+ })(S || (A.IdCancellationReceiverStrategy = S = {}));
31618
+ var w;
31619
31619
  (function(N) {
31620
31620
  function L(G) {
31621
31621
  const K = G;
31622
31622
  return K && K.kind === "request" && n.func(K.createCancellationTokenSource) && (K.dispose === void 0 || n.func(K.dispose));
31623
31623
  }
31624
31624
  N.is = L;
31625
- })(y || (A.RequestCancellationReceiverStrategy = y = {}));
31626
- var S;
31625
+ })(w || (A.RequestCancellationReceiverStrategy = w = {}));
31626
+ var y;
31627
31627
  (function(N) {
31628
31628
  N.Message = Object.freeze({
31629
31629
  createCancellationTokenSource(G) {
@@ -31631,10 +31631,10 @@ function requireConnection$1() {
31631
31631
  }
31632
31632
  });
31633
31633
  function L(G) {
31634
- return w.is(G) || y.is(G);
31634
+ return S.is(G) || w.is(G);
31635
31635
  }
31636
31636
  N.is = L;
31637
- })(S || (A.CancellationReceiverStrategy = S = {}));
31637
+ })(y || (A.CancellationReceiverStrategy = y = {}));
31638
31638
  var D;
31639
31639
  (function(N) {
31640
31640
  N.Message = Object.freeze({
@@ -31653,12 +31653,12 @@ function requireConnection$1() {
31653
31653
  var _;
31654
31654
  (function(N) {
31655
31655
  N.Message = Object.freeze({
31656
- receiver: S.Message,
31656
+ receiver: y.Message,
31657
31657
  sender: D.Message
31658
31658
  });
31659
31659
  function L(G) {
31660
31660
  const K = G;
31661
- return K && S.is(K.receiver) && D.is(K.sender);
31661
+ return K && y.is(K.receiver) && D.is(K.sender);
31662
31662
  }
31663
31663
  N.is = L;
31664
31664
  })(_ || (A.CancellationStrategy = _ = {}));
@@ -31802,7 +31802,7 @@ function requireConnection$1() {
31802
31802
  $ && (V = $.type, Z = $.handler);
31803
31803
  const Ae = Date.now();
31804
31804
  if (Z || ee) {
31805
- const H = b.id ?? String(Date.now()), W = w.is(fe.receiver) ? fe.receiver.createCancellationTokenSource(H) : fe.receiver.createCancellationTokenSource(b);
31805
+ const H = b.id ?? String(Date.now()), W = S.is(fe.receiver) ? fe.receiver.createCancellationTokenSource(H) : fe.receiver.createCancellationTokenSource(b);
31806
31806
  b.id !== null && De.has(b.id) && W.cancel(), b.id !== null && de.set(H, W);
31807
31807
  try {
31808
31808
  let Y;
@@ -34296,8 +34296,8 @@ function requireProtocol_notebook() {
34296
34296
  }
34297
34297
  f.is = p;
34298
34298
  function m(B, Q) {
34299
- const w = /* @__PURE__ */ new Set();
34300
- return B.document !== Q.document && w.add("document"), B.kind !== Q.kind && w.add("kind"), B.executionSummary !== Q.executionSummary && w.add("executionSummary"), (B.metadata !== void 0 || Q.metadata !== void 0) && !E(B.metadata, Q.metadata) && w.add("metadata"), (B.executionSummary !== void 0 || Q.executionSummary !== void 0) && !o.equals(B.executionSummary, Q.executionSummary) && w.add("executionSummary"), w;
34299
+ const S = /* @__PURE__ */ new Set();
34300
+ return B.document !== Q.document && S.add("document"), B.kind !== Q.kind && S.add("kind"), B.executionSummary !== Q.executionSummary && S.add("executionSummary"), (B.metadata !== void 0 || Q.metadata !== void 0) && !E(B.metadata, Q.metadata) && S.add("metadata"), (B.executionSummary !== void 0 || Q.executionSummary !== void 0) && !o.equals(B.executionSummary, Q.executionSummary) && S.add("executionSummary"), S;
34301
34301
  }
34302
34302
  f.diff = m;
34303
34303
  function E(B, Q) {
@@ -34305,22 +34305,22 @@ function requireProtocol_notebook() {
34305
34305
  return !0;
34306
34306
  if (B == null || Q === null || Q === void 0 || typeof B != typeof Q || typeof B != "object")
34307
34307
  return !1;
34308
- const w = Array.isArray(B), y = Array.isArray(Q);
34309
- if (w !== y)
34308
+ const S = Array.isArray(B), w = Array.isArray(Q);
34309
+ if (S !== w)
34310
34310
  return !1;
34311
- if (w && y) {
34311
+ if (S && w) {
34312
34312
  if (B.length !== Q.length)
34313
34313
  return !1;
34314
- for (let S = 0; S < B.length; S++)
34315
- if (!E(B[S], Q[S]))
34314
+ for (let y = 0; y < B.length; y++)
34315
+ if (!E(B[y], Q[y]))
34316
34316
  return !1;
34317
34317
  }
34318
34318
  if (e.objectLiteral(B) && e.objectLiteral(Q)) {
34319
- const S = Object.keys(B), D = Object.keys(Q);
34320
- if (S.length !== D.length || (S.sort(), D.sort(), !E(S, D)))
34319
+ const y = Object.keys(B), D = Object.keys(Q);
34320
+ if (y.length !== D.length || (y.sort(), D.sort(), !E(y, D)))
34321
34321
  return !1;
34322
- for (let _ = 0; _ < S.length; _++) {
34323
- const M = S[_];
34322
+ for (let _ = 0; _ < y.length; _++) {
34323
+ const M = y[_];
34324
34324
  if (!E(B[M], Q[M]))
34325
34325
  return !1;
34326
34326
  }
@@ -34496,31 +34496,31 @@ function requireProtocol() {
34496
34496
  } }), Object.defineProperty(A, "TypeHierarchySupertypesRequest", { enumerable: !0, get: function() {
34497
34497
  return Q.TypeHierarchySupertypesRequest;
34498
34498
  } });
34499
- const w = requireProtocol_inlineValue();
34499
+ const S = requireProtocol_inlineValue();
34500
34500
  Object.defineProperty(A, "InlineValueRequest", { enumerable: !0, get: function() {
34501
- return w.InlineValueRequest;
34501
+ return S.InlineValueRequest;
34502
34502
  } }), Object.defineProperty(A, "InlineValueRefreshRequest", { enumerable: !0, get: function() {
34503
- return w.InlineValueRefreshRequest;
34503
+ return S.InlineValueRefreshRequest;
34504
34504
  } });
34505
- const y = requireProtocol_inlayHint();
34505
+ const w = requireProtocol_inlayHint();
34506
34506
  Object.defineProperty(A, "InlayHintRequest", { enumerable: !0, get: function() {
34507
- return y.InlayHintRequest;
34507
+ return w.InlayHintRequest;
34508
34508
  } }), Object.defineProperty(A, "InlayHintResolveRequest", { enumerable: !0, get: function() {
34509
- return y.InlayHintResolveRequest;
34509
+ return w.InlayHintResolveRequest;
34510
34510
  } }), Object.defineProperty(A, "InlayHintRefreshRequest", { enumerable: !0, get: function() {
34511
- return y.InlayHintRefreshRequest;
34511
+ return w.InlayHintRefreshRequest;
34512
34512
  } });
34513
- const S = requireProtocol_diagnostic();
34513
+ const y = requireProtocol_diagnostic();
34514
34514
  Object.defineProperty(A, "DiagnosticServerCancellationData", { enumerable: !0, get: function() {
34515
- return S.DiagnosticServerCancellationData;
34515
+ return y.DiagnosticServerCancellationData;
34516
34516
  } }), Object.defineProperty(A, "DocumentDiagnosticReportKind", { enumerable: !0, get: function() {
34517
- return S.DocumentDiagnosticReportKind;
34517
+ return y.DocumentDiagnosticReportKind;
34518
34518
  } }), Object.defineProperty(A, "DocumentDiagnosticRequest", { enumerable: !0, get: function() {
34519
- return S.DocumentDiagnosticRequest;
34519
+ return y.DocumentDiagnosticRequest;
34520
34520
  } }), Object.defineProperty(A, "WorkspaceDiagnosticRequest", { enumerable: !0, get: function() {
34521
- return S.WorkspaceDiagnosticRequest;
34521
+ return y.WorkspaceDiagnosticRequest;
34522
34522
  } }), Object.defineProperty(A, "DiagnosticRefreshRequest", { enumerable: !0, get: function() {
34523
- return S.DiagnosticRefreshRequest;
34523
+ return y.DiagnosticRefreshRequest;
34524
34524
  } });
34525
34525
  const D = requireProtocol_notebook();
34526
34526
  Object.defineProperty(A, "NotebookCellKind", { enumerable: !0, get: function() {
@@ -35364,20 +35364,20 @@ const codeMirrorBlockNodeView = (A, e) => (n, r, o) => new CodeMirrorBlockNodeVi
35364
35364
  };
35365
35365
  var CodeBlockLanguages = /* @__PURE__ */ ((A) => (A.javascript = "javascript", A.html = "html", A.css = "css", A.sql = "sql", A.python = "python", A.rust = "rust", A.xml = "xml", A.json = "json", A.markdown = "markdown", A.java = "java", A.cpp = "cpp", A.lezer = "lezer", A.php = "php", A.wast = "wast", A))(CodeBlockLanguages || {}), LegacyLanguages = /* @__PURE__ */ ((A) => (A.apl = "apl", A.asciiarmor = "asciiarmor", A.asn1 = "asn1", A.asterisk = "asterisk", A.brainfuck = "brainfuck", A.clike = "clike", A.clojure = "clojure", A.cmake = "cmake", A.cobol = "cobol", A.coffeescript = "coffeescript", A.commonlisp = "commonlisp", A.crystal = "crystal", A.cypher = "cypher", A.d = "d", A.diff = "diff", A.dockerfile = "dockerfile", A.dtd = "dtd", A.dylan = "dylan", A.ebnf = "ebnf", A.ecl = "ecl", A.eiffel = "eiffel", A.elm = "elm", A.erlang = "erlang", A.factor = "factor", A.fcl = "fcl", A.forth = "forth", A.fortran = "fortran", A.gas = "gas", A.gherkin = "gherkin", A.go = "go", A.groovy = "groovy", A.haskell = "haskell", A.haxe = "haxe", A.http = "http", A.idl = "idl", A.jinja2 = "jinja2", A.julia = "julia", A.livescript = "livescript", A.lua = "lua", A.mathematica = "mathematica", A.mbox = "mbox", A.mirc = "mirc", A.mllike = "mllike", A.modelica = "modelica", A.mscgen = "mscgen", A.mumps = "mumps", A.nginx = "nginx", A.nsis = "nsis", A.ntriples = "ntriples", A.octave = "octave", A.oz = "oz", A.pascal = "pascal", A.perl = "perl", A.pig = "pig", A.powershell = "powershell", A.properties = "properties", A.protobuf = "protobuf", A.puppet = "puppet", A.q = "q", A.r = "r", A.rpm = "rpm", A.ruby = "ruby", A.sas = "sas", A.scheme = "scheme", A.shell = "shell", A.smalltalk = "smalltalk", A.solr = "solr", A.sparql = "sparql", A.spreadsheet = "spreadsheet", A.stex = "stex", A.stylus = "stylus", A.swift = "swift", A.tcl = "tcl", A.textile = "textile", A.tiddlywiki = "tiddlywiki", A.tiki = "tiki", A.toml = "toml", A.troff = "troff", A.ttcn = "ttcn", A.turtle = "turtle", A.vb = "vb", A.vbscript = "vbscript", A.velocity = "velocity", A.verilog = "verilog", A.vhdl = "vhdl", A.webidl = "webidl", A.xquery = "xquery", A.yacas = "yacas", A.yaml = "yaml", A.z80 = "z80", A))(LegacyLanguages || {});
35366
35366
  const languageLoaders = {
35367
- [CodeBlockLanguages.cpp]: () => import("./index-LoqK9rew.js").then((A) => A.cpp()),
35368
- [CodeBlockLanguages.css]: () => import("./index-D-tMVObO.js").then((A) => A.css()),
35369
- [CodeBlockLanguages.html]: () => import("./index-Din3fe9H.js").then((A) => A.html()),
35370
- [CodeBlockLanguages.php]: () => import("./index-DgVzvD4R.js").then((A) => A.php()),
35371
- [CodeBlockLanguages.sql]: () => import("./index-BmlP8txy.js").then((A) => A.sql()),
35372
- [CodeBlockLanguages.xml]: () => import("./index-CFL5ADWL.js").then((A) => A.xml()),
35373
- [CodeBlockLanguages.javascript]: () => import("./index-ByaJVPvn.js").then((A) => A.javascript()),
35374
- [CodeBlockLanguages.java]: () => import("./index-DIl_9iQJ.js").then((A) => A.java()),
35375
- [CodeBlockLanguages.json]: () => import("./index-Z5n5Yzh7.js").then((A) => A.json()),
35376
- [CodeBlockLanguages.lezer]: () => import("./index-BBcY4n4C.js").then((A) => A.lezer()),
35377
- [CodeBlockLanguages.markdown]: () => import("./index-CYy27SsA.js").then((A) => A.markdown()),
35378
- [CodeBlockLanguages.python]: () => import("./index-DyoV5vW_.js").then((A) => A.python()),
35379
- [CodeBlockLanguages.rust]: () => import("./index-BFE7marn.js").then((A) => A.rust()),
35380
- [CodeBlockLanguages.wast]: () => import("./index-BkjuIpep.js").then((A) => A.wast())
35367
+ [CodeBlockLanguages.cpp]: () => import("./index-BHeT17ZM.js").then((A) => A.cpp()),
35368
+ [CodeBlockLanguages.css]: () => import("./index-CgfcJS8e.js").then((A) => A.css()),
35369
+ [CodeBlockLanguages.html]: () => import("./index-DakZ7Vh5.js").then((A) => A.html()),
35370
+ [CodeBlockLanguages.php]: () => import("./index-C9TxxyBf.js").then((A) => A.php()),
35371
+ [CodeBlockLanguages.sql]: () => import("./index-DDdWuwE_.js").then((A) => A.sql()),
35372
+ [CodeBlockLanguages.xml]: () => import("./index-VEJ5GVW7.js").then((A) => A.xml()),
35373
+ [CodeBlockLanguages.javascript]: () => import("./index-BBeYxcfY.js").then((A) => A.javascript()),
35374
+ [CodeBlockLanguages.java]: () => import("./index-DzgC5i6_.js").then((A) => A.java()),
35375
+ [CodeBlockLanguages.json]: () => import("./index-B4dVRq1F.js").then((A) => A.json()),
35376
+ [CodeBlockLanguages.lezer]: () => import("./index-_0LDnh7z.js").then((A) => A.lezer()),
35377
+ [CodeBlockLanguages.markdown]: () => import("./index-CTaTx8z1.js").then((A) => A.markdown()),
35378
+ [CodeBlockLanguages.python]: () => import("./index-C2RzdNca.js").then((A) => A.python()),
35379
+ [CodeBlockLanguages.rust]: () => import("./index-B4IXlob8.js").then((A) => A.rust()),
35380
+ [CodeBlockLanguages.wast]: () => import("./index-20zb3iif.js").then((A) => A.wast())
35381
35381
  }, legacyLanguageLoaders = {
35382
35382
  [LegacyLanguages.apl]: () => import("./apl-B2DGVGxc.js").then(
35383
35383
  ({ apl: A }) => StreamLanguage.define(A)
@@ -35805,60 +35805,60 @@ function requireHtml() {
35805
35805
  //all the single tags for HTML
35806
35806
  extra_liners: "head,body,/html".split(","),
35807
35807
  //for tags that need a line of whitespace before them
35808
- in_array: function(y, S) {
35809
- for (var D = 0; D < S.length; D++)
35810
- if (y === S[D])
35808
+ in_array: function(w, y) {
35809
+ for (var D = 0; D < y.length; D++)
35810
+ if (w === y[D])
35811
35811
  return !0;
35812
35812
  return !1;
35813
35813
  }
35814
35814
  }, this.get_content = function() {
35815
- for (var y = "", S = [], D = !1; this.input.charAt(this.pos) !== "<"; ) {
35815
+ for (var w = "", y = [], D = !1; this.input.charAt(this.pos) !== "<"; ) {
35816
35816
  if (this.pos >= this.input.length)
35817
- return S.length ? S.join("") : ["", "TK_EOF"];
35818
- if (y = this.input.charAt(this.pos), this.pos++, this.line_char_count++, this.Utils.in_array(y, this.Utils.whitespace)) {
35819
- S.length && (D = !0), this.line_char_count--;
35817
+ return y.length ? y.join("") : ["", "TK_EOF"];
35818
+ if (w = this.input.charAt(this.pos), this.pos++, this.line_char_count++, this.Utils.in_array(w, this.Utils.whitespace)) {
35819
+ y.length && (D = !0), this.line_char_count--;
35820
35820
  continue;
35821
35821
  } else if (D) {
35822
35822
  if (this.line_char_count >= this.max_char) {
35823
- S.push(`
35823
+ y.push(`
35824
35824
  `);
35825
35825
  for (var _ = 0; _ < this.indent_level; _++)
35826
- S.push(this.indent_string);
35826
+ y.push(this.indent_string);
35827
35827
  this.line_char_count = 0;
35828
35828
  } else
35829
- S.push(" "), this.line_char_count++;
35829
+ y.push(" "), this.line_char_count++;
35830
35830
  D = !1;
35831
35831
  }
35832
- S.push(y);
35832
+ y.push(w);
35833
35833
  }
35834
- return S.length ? S.join("") : "";
35835
- }, this.get_contents_to = function(y) {
35834
+ return y.length ? y.join("") : "";
35835
+ }, this.get_contents_to = function(w) {
35836
35836
  if (this.pos == this.input.length)
35837
35837
  return ["", "TK_EOF"];
35838
- var S = "", D = new RegExp("</" + y + "\\s*>", "igm");
35838
+ var y = "", D = new RegExp("</" + w + "\\s*>", "igm");
35839
35839
  D.lastIndex = this.pos;
35840
35840
  var _ = D.exec(this.input), M = _ ? _.index : this.input.length;
35841
- return this.pos < M && (S = this.input.substring(this.pos, M), this.pos = M), S;
35842
- }, this.record_tag = function(y) {
35843
- this.tags[y + "count"] ? (this.tags[y + "count"]++, this.tags[y + this.tags[y + "count"]] = this.indent_level) : (this.tags[y + "count"] = 1, this.tags[y + this.tags[y + "count"]] = this.indent_level), this.tags[y + this.tags[y + "count"] + "parent"] = this.tags.parent, this.tags.parent = y + this.tags[y + "count"];
35844
- }, this.retrieve_tag = function(y) {
35845
- if (this.tags[y + "count"]) {
35846
- for (var S = this.tags.parent; S && y + this.tags[y + "count"] !== S; )
35847
- S = this.tags[S + "parent"];
35848
- S && (this.indent_level = this.tags[y + this.tags[y + "count"]], this.tags.parent = this.tags[S + "parent"]), delete this.tags[y + this.tags[y + "count"] + "parent"], delete this.tags[y + this.tags[y + "count"]], this.tags[y + "count"] == 1 ? delete this.tags[y + "count"] : this.tags[y + "count"]--;
35841
+ return this.pos < M && (y = this.input.substring(this.pos, M), this.pos = M), y;
35842
+ }, this.record_tag = function(w) {
35843
+ this.tags[w + "count"] ? (this.tags[w + "count"]++, this.tags[w + this.tags[w + "count"]] = this.indent_level) : (this.tags[w + "count"] = 1, this.tags[w + this.tags[w + "count"]] = this.indent_level), this.tags[w + this.tags[w + "count"] + "parent"] = this.tags.parent, this.tags.parent = w + this.tags[w + "count"];
35844
+ }, this.retrieve_tag = function(w) {
35845
+ if (this.tags[w + "count"]) {
35846
+ for (var y = this.tags.parent; y && w + this.tags[w + "count"] !== y; )
35847
+ y = this.tags[y + "parent"];
35848
+ y && (this.indent_level = this.tags[w + this.tags[w + "count"]], this.tags.parent = this.tags[y + "parent"]), delete this.tags[w + this.tags[w + "count"] + "parent"], delete this.tags[w + this.tags[w + "count"]], this.tags[w + "count"] == 1 ? delete this.tags[w + "count"] : this.tags[w + "count"]--;
35849
35849
  }
35850
35850
  }, this.get_tag = function() {
35851
- var y = "", S = [], D = !1, _, M;
35851
+ var w = "", y = [], D = !1, _, M;
35852
35852
  do {
35853
35853
  if (this.pos >= this.input.length)
35854
- return S.length ? S.join("") : ["", "TK_EOF"];
35855
- if (y = this.input.charAt(this.pos), this.pos++, this.line_char_count++, this.Utils.in_array(y, this.Utils.whitespace)) {
35854
+ return y.length ? y.join("") : ["", "TK_EOF"];
35855
+ if (w = this.input.charAt(this.pos), this.pos++, this.line_char_count++, this.Utils.in_array(w, this.Utils.whitespace)) {
35856
35856
  D = !0, this.line_char_count--;
35857
35857
  continue;
35858
35858
  }
35859
- (y === "'" || y === '"') && (!S[1] || S[1] !== "!") && (y += this.get_unformatted(y), D = !0), y === "=" && (D = !1), S.length && S[S.length - 1] !== "=" && y !== ">" && D && (this.line_char_count >= this.max_char ? (this.print_newline(!1, S), this.line_char_count = 0) : (S.push(" "), this.line_char_count++), D = !1), y === "<" && (_ = this.pos - 1), S.push(y);
35860
- } while (y !== ">");
35861
- var v = S.join(""), F;
35859
+ (w === "'" || w === '"') && (!y[1] || y[1] !== "!") && (w += this.get_unformatted(w), D = !0), w === "=" && (D = !1), y.length && y[y.length - 1] !== "=" && w !== ">" && D && (this.line_char_count >= this.max_char ? (this.print_newline(!1, y), this.line_char_count = 0) : (y.push(" "), this.line_char_count++), D = !1), w === "<" && (_ = this.pos - 1), y.push(w);
35860
+ } while (w !== ">");
35861
+ var v = y.join(""), F;
35862
35862
  v.indexOf(" ") != -1 ? F = v.indexOf(" ") : F = v.indexOf(">");
35863
35863
  var R = v.substring(1, F).toLowerCase();
35864
35864
  if (v.charAt(v.length - 2) === "/" || this.Utils.in_array(R, this.Utils.single_token))
@@ -35869,28 +35869,28 @@ function requireHtml() {
35869
35869
  this.record_tag(R), this.tag_type = "STYLE";
35870
35870
  else if (this.Utils.in_array(R, c)) {
35871
35871
  var N = this.get_unformatted("</" + R + ">", v);
35872
- S.push(N), _ > 0 && this.Utils.in_array(this.input.charAt(_ - 1), this.Utils.whitespace) && S.splice(0, 0, this.input.charAt(_ - 1)), M = this.pos - 1, this.Utils.in_array(this.input.charAt(M + 1), this.Utils.whitespace) && S.push(this.input.charAt(M + 1)), this.tag_type = "SINGLE";
35872
+ y.push(N), _ > 0 && this.Utils.in_array(this.input.charAt(_ - 1), this.Utils.whitespace) && y.splice(0, 0, this.input.charAt(_ - 1)), M = this.pos - 1, this.Utils.in_array(this.input.charAt(M + 1), this.Utils.whitespace) && y.push(this.input.charAt(M + 1)), this.tag_type = "SINGLE";
35873
35873
  } else if (R.charAt(0) === "!")
35874
35874
  if (R.indexOf("[if") != -1) {
35875
35875
  if (v.indexOf("!IE") != -1) {
35876
35876
  var N = this.get_unformatted("-->", v);
35877
- S.push(N);
35877
+ y.push(N);
35878
35878
  }
35879
35879
  this.tag_type = "START";
35880
35880
  } else if (R.indexOf("[endif") != -1)
35881
35881
  this.tag_type = "END", this.unindent();
35882
35882
  else if (R.indexOf("[cdata[") != -1) {
35883
35883
  var N = this.get_unformatted("]]>", v);
35884
- S.push(N), this.tag_type = "SINGLE";
35884
+ y.push(N), this.tag_type = "SINGLE";
35885
35885
  } else {
35886
35886
  var N = this.get_unformatted("-->", v);
35887
- S.push(N), this.tag_type = "SINGLE";
35887
+ y.push(N), this.tag_type = "SINGLE";
35888
35888
  }
35889
35889
  else
35890
35890
  R.charAt(0) === "/" ? (this.retrieve_tag(R.substring(1)), this.tag_type = "END") : (this.record_tag(R), this.tag_type = "START"), this.Utils.in_array(R, this.Utils.extra_liners) && this.print_newline(!0, this.output);
35891
- return S.join("");
35892
- }, this.get_unformatted = function(y, S) {
35893
- if (S && S.toLowerCase().indexOf(y) != -1)
35891
+ return y.join("");
35892
+ }, this.get_unformatted = function(w, y) {
35893
+ if (y && y.toLowerCase().indexOf(w) != -1)
35894
35894
  return "";
35895
35895
  var D = "", _ = "", M = !0;
35896
35896
  do {
@@ -35909,26 +35909,26 @@ function requireHtml() {
35909
35909
  }
35910
35910
  }
35911
35911
  _ += D, this.line_char_count++, M = !0;
35912
- } while (_.toLowerCase().indexOf(y) == -1);
35912
+ } while (_.toLowerCase().indexOf(w) == -1);
35913
35913
  return _;
35914
35914
  }, this.get_token = function() {
35915
- var y;
35915
+ var w;
35916
35916
  if (this.last_token === "TK_TAG_SCRIPT" || this.last_token === "TK_TAG_STYLE") {
35917
- var S = this.last_token.substr(7);
35918
- return y = this.get_contents_to(S), typeof y != "string" ? y : [y, "TK_" + S];
35917
+ var y = this.last_token.substr(7);
35918
+ return w = this.get_contents_to(y), typeof w != "string" ? w : [w, "TK_" + y];
35919
35919
  }
35920
35920
  if (this.current_mode === "CONTENT")
35921
- return y = this.get_content(), typeof y != "string" ? y : [y, "TK_CONTENT"];
35921
+ return w = this.get_content(), typeof w != "string" ? w : [w, "TK_CONTENT"];
35922
35922
  if (this.current_mode === "TAG") {
35923
- if (y = this.get_tag(), typeof y != "string")
35924
- return y;
35923
+ if (w = this.get_tag(), typeof w != "string")
35924
+ return w;
35925
35925
  var D = "TK_TAG_" + this.tag_type;
35926
- return [y, D];
35926
+ return [w, D];
35927
35927
  }
35928
- }, this.get_full_indent = function(y) {
35929
- return y = this.indent_level + y || 0, y < 1 ? "" : Array(y + 1).join(this.indent_string);
35930
- }, this.printer = function(y, S, D, _, M) {
35931
- this.input = y || "", this.output = [], this.indent_character = S, this.indent_string = "", this.indent_size = D, this.brace_style = M, this.indent_level = 0, this.max_char = _, this.line_char_count = 0;
35928
+ }, this.get_full_indent = function(w) {
35929
+ return w = this.indent_level + w || 0, w < 1 ? "" : Array(w + 1).join(this.indent_string);
35930
+ }, this.printer = function(w, y, D, _, M) {
35931
+ this.input = w || "", this.output = [], this.indent_character = y, this.indent_string = "", this.indent_size = D, this.brace_style = M, this.indent_level = 0, this.max_char = _, this.line_char_count = 0;
35932
35932
  for (var v = 0; v < this.indent_size; v++)
35933
35933
  this.indent_string += this.indent_character;
35934
35934
  this.print_newline = function(F, R) {
@@ -35996,9 +35996,9 @@ function requireHtml() {
35996
35996
  if (p)
35997
35997
  I = p(I.replace(/^\s*/, E), n);
35998
35998
  else {
35999
- var B = I.match(/^\s*/)[0], Q = B.match(/[^\n\r]*$/)[0].split(r.indent_string).length - 1, w = r.get_full_indent(m - Q);
35999
+ var B = I.match(/^\s*/)[0], Q = B.match(/[^\n\r]*$/)[0].split(r.indent_string).length - 1, S = r.get_full_indent(m - Q);
36000
36000
  I = I.replace(/^\s*/, E).replace(/\r\n|\r|\n/g, `
36001
- ` + w).replace(/\s*$/, "");
36001
+ ` + S).replace(/\s*$/, "");
36002
36002
  }
36003
36003
  I && (r.print_token(I), r.print_newline(!0, r.output));
36004
36004
  }
@@ -36346,19 +36346,19 @@ function update_keyed_each(A, e, n, r, o, s, a, l, c, g, h, d) {
36346
36346
  let M = a.get(_);
36347
36347
  M ? Q.push(() => M.p(D, e)) : (M = g(_, D), M.c()), E.set(_, m[I] = M), _ in p && B.set(_, Math.abs(I - p[_]));
36348
36348
  }
36349
- const w = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
36350
- function S(D) {
36349
+ const S = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
36350
+ function y(D) {
36351
36351
  transition_in(D, 1), D.m(l, h), a.set(D.key, D), h = D.first, f--;
36352
36352
  }
36353
36353
  for (; u && f; ) {
36354
36354
  const D = m[f - 1], _ = A[u - 1], M = D.key, v = _.key;
36355
- D === _ ? (h = D.first, u--, f--) : E.has(v) ? !a.has(M) || w.has(M) ? S(D) : y.has(v) ? u-- : B.get(M) > B.get(v) ? (y.add(M), S(D)) : (w.add(v), u--) : (c(_, a), u--);
36355
+ D === _ ? (h = D.first, u--, f--) : E.has(v) ? !a.has(M) || S.has(M) ? y(D) : w.has(v) ? u-- : B.get(M) > B.get(v) ? (w.add(M), y(D)) : (S.add(v), u--) : (c(_, a), u--);
36356
36356
  }
36357
36357
  for (; u--; ) {
36358
36358
  const D = A[u];
36359
36359
  E.has(D.key) || c(D, a);
36360
36360
  }
36361
- for (; f; ) S(m[f - 1]);
36361
+ for (; f; ) y(m[f - 1]);
36362
36362
  return run_all(Q), m;
36363
36363
  }
36364
36364
  function create_component(A) {
@@ -36461,10 +36461,10 @@ function add_css$k(A) {
36461
36461
  append_styles(A, "svelte-1lt2k10", ".floating-btn.svelte-1lt2k10.svelte-1lt2k10{background:#363755;border:0;border-radius:50%;box-shadow:0 0 30px rgba(34, 34, 34, 0.3);cursor:pointer;position:fixed;padding:6px;transition:opacity 0.3s;-webkit-transition:opacity 0.3s;z-index:99999}.floating-btn.bottom-right.svelte-1lt2k10.svelte-1lt2k10{bottom:16px;right:16px}.floating-btn.bottom-left.svelte-1lt2k10.svelte-1lt2k10{bottom:16px;left:16px}.floating-btn.top-right.svelte-1lt2k10.svelte-1lt2k10{top:16px;right:16px}.floating-btn.top-left.svelte-1lt2k10.svelte-1lt2k10{top:16px;left:16px}.floating-btn.svelte-1lt2k10.svelte-1lt2k10:hover{opacity:0.7}.floating-btn.svelte-1lt2k10>svg.svelte-1lt2k10{display:block;width:34px;height:34px;position:relative}");
36462
36462
  }
36463
36463
  function create_fragment$k(A) {
36464
- let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, w, y, S, D, _;
36464
+ let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, S, w, y, D, _;
36465
36465
  return {
36466
36466
  c() {
36467
- e = element("button"), n = svg_element("svg"), r = svg_element("title"), o = text("prosemirror"), s = svg_element("desc"), a = text("Created using Figma"), l = svg_element("use"), c = svg_element("use"), g = svg_element("use"), h = svg_element("use"), d = svg_element("use"), u = svg_element("use"), f = svg_element("use"), I = svg_element("defs"), p = svg_element("path"), m = svg_element("path"), E = svg_element("path"), B = svg_element("path"), Q = svg_element("path"), w = svg_element("path"), y = svg_element("path"), xlink_attr(l, "xlink:href", "#a"), attr(l, "transform", "matrix(2 0 0 2 118 116)"), attr(l, "fill", "#FFF"), xlink_attr(c, "xlink:href", "#b"), attr(c, "transform", "rotate(16 59.054 420.192) scale(2)"), attr(c, "fill", "#FFF"), xlink_attr(g, "xlink:href", "#c"), attr(g, "transform", "matrix(2 0 0 2 154.024 141.58)"), attr(g, "fill", "#363755"), xlink_attr(h, "xlink:href", "#d"), attr(h, "transform", "matrix(2 0 0 2 220 334.8)"), attr(h, "fill", "#FFF"), xlink_attr(d, "xlink:href", "#e"), attr(d, "transform", "matrix(2 0 0 2 218.826 262.052)"), attr(d, "fill", "#363755"), xlink_attr(u, "xlink:href", "#f"), attr(u, "transform", "matrix(2 0 0 2 197.108 184.998)"), attr(u, "fill", "#FFF"), xlink_attr(f, "xlink:href", "#g"), attr(f, "transform", "matrix(2 0 0 2 221.8 216)"), attr(f, "fill", "#363755"), attr(p, "id", "a"), attr(p, "d", `M73.5 0C32.859 0 0 32.859 0 73.5S32.859 147 73.5 147 147 114.141 147 73.5 114.069 0 73.5
36467
+ e = element("button"), n = svg_element("svg"), r = svg_element("title"), o = text("prosemirror"), s = svg_element("desc"), a = text("Created using Figma"), l = svg_element("use"), c = svg_element("use"), g = svg_element("use"), h = svg_element("use"), d = svg_element("use"), u = svg_element("use"), f = svg_element("use"), I = svg_element("defs"), p = svg_element("path"), m = svg_element("path"), E = svg_element("path"), B = svg_element("path"), Q = svg_element("path"), S = svg_element("path"), w = svg_element("path"), xlink_attr(l, "xlink:href", "#a"), attr(l, "transform", "matrix(2 0 0 2 118 116)"), attr(l, "fill", "#FFF"), xlink_attr(c, "xlink:href", "#b"), attr(c, "transform", "rotate(16 59.054 420.192) scale(2)"), attr(c, "fill", "#FFF"), xlink_attr(g, "xlink:href", "#c"), attr(g, "transform", "matrix(2 0 0 2 154.024 141.58)"), attr(g, "fill", "#363755"), xlink_attr(h, "xlink:href", "#d"), attr(h, "transform", "matrix(2 0 0 2 220 334.8)"), attr(h, "fill", "#FFF"), xlink_attr(d, "xlink:href", "#e"), attr(d, "transform", "matrix(2 0 0 2 218.826 262.052)"), attr(d, "fill", "#363755"), xlink_attr(u, "xlink:href", "#f"), attr(u, "transform", "matrix(2 0 0 2 197.108 184.998)"), attr(u, "fill", "#FFF"), xlink_attr(f, "xlink:href", "#g"), attr(f, "transform", "matrix(2 0 0 2 221.8 216)"), attr(f, "fill", "#363755"), attr(p, "id", "a"), attr(p, "d", `M73.5 0C32.859 0 0 32.859 0 73.5S32.859 147 73.5 147 147 114.141 147 73.5 114.069 0 73.5
36468
36468
  0z`), attr(m, "id", "b"), attr(m, "d", `M193.601 107.116c0-13.376 8.238-23.91
36469
36469
  20.619-31.153-2.244-7.447-5.19-14.6-8.824-21.32-13.886
36470
36470
  3.633-25.12-1.799-34.568-11.26-9.449-9.437-12.344-20.672-8.709-34.571A111.362 111.362 0 0 0
@@ -36481,16 +36481,16 @@ function create_fragment$k(A) {
36481
36481
  46.595 0 25.734-20.835 46.57-46.567 46.57z`), attr(E, "id", "c"), attr(E, "d", `M98.088 49.91c-6.9 83.9 10.8 103.401 10.8 103.401s-55.1
36482
36482
  5.499-82.7-13.401c-30.5-20.9-26-67.5-25.9-94.6.1-28.4 25.6-45.8 49.9-45.3 29.1.5 50.2 21.6
36483
36483
  47.9 49.9z`), attr(B, "id", "d"), attr(B, "d", "M.1.1c12.2 33.3 22.5 42.7 40 55.2 25.3 18 36.6 17.5 76.3 41C78.1 60.3 30.8 45.7 0 0l.1.1z"), attr(Q, "id", "e"), attr(Q, "d", `M.687 36.474c3 13.3 17.9 29.9 30.4 41.6 24.8 23.2 42 22.4 86
36484
- 54.7-18.2-51.8-18.8-62-43.5-106.1-24.7-44-67.6-20.3-67.6-20.3s-8.4 16.6-5.3 29.9v.2z`), attr(w, "id", "f"), attr(w, "d", `M38.346 11.5s-4-11.6-18-11.5c-30 .2-28.8 52.1 16.9 52 39.6-.1 39.2-49.4
36485
- 16.1-49.6-10.2-.2-15 9.1-15 9.1z`), attr(y, "id", "g"), attr(y, "d", `M26.5 15c10.8 0 2 14.9-.6 20.9-1.8-8.4-10.2-20.9.6-20.9zM10.2.1C4.6.1 0 4.6 0 10.3c0 5.6
36484
+ 54.7-18.2-51.8-18.8-62-43.5-106.1-24.7-44-67.6-20.3-67.6-20.3s-8.4 16.6-5.3 29.9v.2z`), attr(S, "id", "f"), attr(S, "d", `M38.346 11.5s-4-11.6-18-11.5c-30 .2-28.8 52.1 16.9 52 39.6-.1 39.2-49.4
36485
+ 16.1-49.6-10.2-.2-15 9.1-15 9.1z`), attr(w, "id", "g"), attr(w, "d", `M26.5 15c10.8 0 2 14.9-.6 20.9-1.8-8.4-10.2-20.9.6-20.9zM10.2.1C4.6.1 0 4.6 0 10.3c0 5.6
36486
36486
  4.5 10.2 10.2 10.2 5.6 0 10.2-4.5 10.2-10.2C20.4 4.7 15.9.1 10.2.1zM40.7 0c-4.8 0-8.8
36487
- 4.5-8.8 10.2 0 5.6 3.9 10.2 8.8 10.2 4.8 0 8.8-4.5 8.8-10.2C49.5 4.6 45.6 0 40.7 0z`), attr(n, "width", "530"), attr(n, "height", "530"), attr(n, "viewBox", "0 0 530 530"), attr(n, "xmlns", "http://www.w3.org/2000/svg"), attr(n, "xmlns:xlink", "http://www.w3.org/1999/xlink"), attr(n, "class", "svelte-1lt2k10"), attr(e, "class", S = null_to_empty("floating-btn ".concat(
36487
+ 4.5-8.8 10.2 0 5.6 3.9 10.2 8.8 10.2 4.8 0 8.8-4.5 8.8-10.2C49.5 4.6 45.6 0 40.7 0z`), attr(n, "width", "530"), attr(n, "height", "530"), attr(n, "viewBox", "0 0 530 530"), attr(n, "xmlns", "http://www.w3.org/2000/svg"), attr(n, "xmlns:xlink", "http://www.w3.org/1999/xlink"), attr(n, "class", "svelte-1lt2k10"), attr(e, "class", y = null_to_empty("floating-btn ".concat(
36488
36488
  /*buttonPosition*/
36489
36489
  A[0]
36490
36490
  )) + " svelte-1lt2k10");
36491
36491
  },
36492
36492
  m(M, v) {
36493
- insert(M, e, v), append(e, n), append(n, r), append(r, o), append(n, s), append(s, a), append(n, l), append(n, c), append(n, g), append(n, h), append(n, d), append(n, u), append(n, f), append(n, I), append(I, p), append(I, m), append(I, E), append(I, B), append(I, Q), append(I, w), append(I, y), D || (_ = listen(
36493
+ insert(M, e, v), append(e, n), append(n, r), append(r, o), append(n, s), append(s, a), append(n, l), append(n, c), append(n, g), append(n, h), append(n, d), append(n, u), append(n, f), append(n, I), append(I, p), append(I, m), append(I, E), append(I, B), append(I, Q), append(I, S), append(I, w), D || (_ = listen(
36494
36494
  e,
36495
36495
  "click",
36496
36496
  /*click_handler*/
@@ -36500,10 +36500,10 @@ function create_fragment$k(A) {
36500
36500
  p(M, v) {
36501
36501
  let [F] = v;
36502
36502
  F & /*buttonPosition*/
36503
- 1 && S !== (S = null_to_empty("floating-btn ".concat(
36503
+ 1 && y !== (y = null_to_empty("floating-btn ".concat(
36504
36504
  /*buttonPosition*/
36505
36505
  M[0]
36506
- )) + " svelte-1lt2k10") && attr(e, "class", S);
36506
+ )) + " svelte-1lt2k10") && attr(e, "class", y);
36507
36507
  },
36508
36508
  i: noop,
36509
36509
  o: noop,
@@ -36749,7 +36749,7 @@ function add_css$i(A) {
36749
36749
  append_styles(A, "svelte-10notzq", "ul.svelte-10notzq{display:flex;list-style:none;margin:0;overflow-x:scroll;padding:0}button.svelte-10notzq{background:transparent;border:0;border-bottom:2px solid transparent;color:#fff;cursor:pointer;height:100%;font-size:var(--font-medium);font-weight:400;padding:1em}button.svelte-10notzq:hover{background:rgba(255, 255, 255, 0.05)}button.active.svelte-10notzq{border-bottom:2px solid rgb(255, 162, 177)}");
36750
36750
  }
36751
36751
  function create_fragment$i(A) {
36752
- let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, w;
36752
+ let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, S;
36753
36753
  return {
36754
36754
  c() {
36755
36755
  e = element("ul"), n = element("li"), r = element("button"), r.textContent = "STATE", o = space(), s = element("li"), a = element("button"), a.textContent = "HISTORY", l = space(), c = element("li"), g = element("button"), g.textContent = "PLUGINS", h = space(), d = element("li"), u = element("button"), u.textContent = "SCHEMA", f = space(), I = element("li"), p = element("button"), p.textContent = "STRUCTURE", m = space(), E = element("li"), B = element("button"), B.textContent = "SNAPSHOTS", attr(r, "class", "svelte-10notzq"), toggle_class(
@@ -36784,8 +36784,8 @@ function create_fragment$i(A) {
36784
36784
  A[0] === "snapshots"
36785
36785
  ), attr(e, "class", "tabs-menu svelte-10notzq");
36786
36786
  },
36787
- m(y, S) {
36788
- insert(y, e, S), append(e, n), append(n, r), append(e, o), append(e, s), append(s, a), append(e, l), append(e, c), append(c, g), append(e, h), append(e, d), append(d, u), append(e, f), append(e, I), append(I, p), append(e, m), append(e, E), append(E, B), Q || (w = [listen(
36787
+ m(w, y) {
36788
+ insert(w, e, y), append(e, n), append(n, r), append(e, o), append(e, s), append(s, a), append(e, l), append(e, c), append(c, g), append(e, h), append(e, d), append(d, u), append(e, f), append(e, I), append(I, p), append(e, m), append(e, E), append(E, B), Q || (S = [listen(
36789
36789
  r,
36790
36790
  "click",
36791
36791
  /*click_handler*/
@@ -36817,50 +36817,50 @@ function create_fragment$i(A) {
36817
36817
  A[7]
36818
36818
  )], Q = !0);
36819
36819
  },
36820
- p(y, S) {
36821
- let [D] = S;
36820
+ p(w, y) {
36821
+ let [D] = y;
36822
36822
  D & /*active*/
36823
36823
  1 && toggle_class(
36824
36824
  r,
36825
36825
  "active",
36826
36826
  /*active*/
36827
- y[0] === "state"
36827
+ w[0] === "state"
36828
36828
  ), D & /*active*/
36829
36829
  1 && toggle_class(
36830
36830
  a,
36831
36831
  "active",
36832
36832
  /*active*/
36833
- y[0] === "history"
36833
+ w[0] === "history"
36834
36834
  ), D & /*active*/
36835
36835
  1 && toggle_class(
36836
36836
  g,
36837
36837
  "active",
36838
36838
  /*active*/
36839
- y[0] === "plugins"
36839
+ w[0] === "plugins"
36840
36840
  ), D & /*active*/
36841
36841
  1 && toggle_class(
36842
36842
  u,
36843
36843
  "active",
36844
36844
  /*active*/
36845
- y[0] === "schema"
36845
+ w[0] === "schema"
36846
36846
  ), D & /*active*/
36847
36847
  1 && toggle_class(
36848
36848
  p,
36849
36849
  "active",
36850
36850
  /*active*/
36851
- y[0] === "structure"
36851
+ w[0] === "structure"
36852
36852
  ), D & /*active*/
36853
36853
  1 && toggle_class(
36854
36854
  B,
36855
36855
  "active",
36856
36856
  /*active*/
36857
- y[0] === "snapshots"
36857
+ w[0] === "snapshots"
36858
36858
  );
36859
36859
  },
36860
36860
  i: noop,
36861
36861
  o: noop,
36862
- d(y) {
36863
- y && detach(e), Q = !1, run_all(w);
36862
+ d(w) {
36863
+ w && detach(e), Q = !1, run_all(S);
36864
36864
  }
36865
36865
  };
36866
36866
  }
@@ -36919,8 +36919,8 @@ var diffMatchPatch = { exports: {} };
36919
36919
  return [new e.Diff(n, s), new e.Diff(r, a)];
36920
36920
  var f = this.diff_halfMatch_(s, a);
36921
36921
  if (f) {
36922
- var I = f[0], p = f[1], m = f[2], E = f[3], B = f[4], Q = this.diff_main(I, m, l, c), w = this.diff_main(p, E, l, c);
36923
- return Q.concat([new e.Diff(o, B)], w);
36922
+ var I = f[0], p = f[1], m = f[2], E = f[3], B = f[4], Q = this.diff_main(I, m, l, c), S = this.diff_main(p, E, l, c);
36923
+ return Q.concat([new e.Diff(o, B)], S);
36924
36924
  }
36925
36925
  return l && s.length > 100 && a.length > 100 ? this.diff_lineMode_(s, a, c) : this.diff_bisect_(s, a, c);
36926
36926
  }, e.prototype.diff_lineMode_ = function(s, a, l) {
@@ -36953,10 +36953,10 @@ var diffMatchPatch = { exports: {} };
36953
36953
  for (var c = s.length, g = a.length, h = Math.ceil((c + g) / 2), d = h, u = 2 * h, f = new Array(u), I = new Array(u), p = 0; p < u; p++)
36954
36954
  f[p] = -1, I[p] = -1;
36955
36955
  f[d + 1] = 0, I[d + 1] = 0;
36956
- for (var m = c - g, E = m % 2 != 0, B = 0, Q = 0, w = 0, y = 0, S = 0; S < h && !((/* @__PURE__ */ new Date()).getTime() > l); S++) {
36957
- for (var D = -S + B; D <= S - Q; D += 2) {
36956
+ for (var m = c - g, E = m % 2 != 0, B = 0, Q = 0, S = 0, w = 0, y = 0; y < h && !((/* @__PURE__ */ new Date()).getTime() > l); y++) {
36957
+ for (var D = -y + B; D <= y - Q; D += 2) {
36958
36958
  var _ = d + D, M;
36959
- D == -S || D != S && f[_ - 1] < f[_ + 1] ? M = f[_ + 1] : M = f[_ - 1] + 1;
36959
+ D == -y || D != y && f[_ - 1] < f[_ + 1] ? M = f[_ + 1] : M = f[_ - 1] + 1;
36960
36960
  for (var v = M - D; M < c && v < g && s.charAt(M) == a.charAt(v); )
36961
36961
  M++, v++;
36962
36962
  if (f[_] = M, M > c)
@@ -36972,15 +36972,15 @@ var diffMatchPatch = { exports: {} };
36972
36972
  }
36973
36973
  }
36974
36974
  }
36975
- for (var N = -S + w; N <= S - y; N += 2) {
36975
+ for (var N = -y + S; N <= y - w; N += 2) {
36976
36976
  var F = d + N, R;
36977
- N == -S || N != S && I[F - 1] < I[F + 1] ? R = I[F + 1] : R = I[F - 1] + 1;
36977
+ N == -y || N != y && I[F - 1] < I[F + 1] ? R = I[F + 1] : R = I[F - 1] + 1;
36978
36978
  for (var L = R - N; R < c && L < g && s.charAt(c - R - 1) == a.charAt(g - L - 1); )
36979
36979
  R++, L++;
36980
36980
  if (I[F] = R, R > c)
36981
- y += 2;
36982
- else if (L > g)
36983
36981
  w += 2;
36982
+ else if (L > g)
36983
+ S += 2;
36984
36984
  else if (!E) {
36985
36985
  var _ = d + m - N;
36986
36986
  if (_ >= 0 && _ < u && f[_] != -1) {
@@ -37054,10 +37054,10 @@ var diffMatchPatch = { exports: {} };
37054
37054
  if (l.length < 4 || c.length * 2 < l.length)
37055
37055
  return null;
37056
37056
  var g = this;
37057
- function h(Q, w, y) {
37058
- for (var S = Q.substring(y, y + Math.floor(Q.length / 4)), D = -1, _ = "", M, v, F, R; (D = w.indexOf(S, D + 1)) != -1; ) {
37059
- var N = g.diff_commonPrefix(Q.substring(y), w.substring(D)), L = g.diff_commonSuffix(Q.substring(0, y), w.substring(0, D));
37060
- _.length < L + N && (_ = w.substring(D - L, D) + w.substring(D, D + N), M = Q.substring(0, y - L), v = Q.substring(y + N), F = w.substring(0, D - L), R = w.substring(D + N));
37057
+ function h(Q, S, w) {
37058
+ for (var y = Q.substring(w, w + Math.floor(Q.length / 4)), D = -1, _ = "", M, v, F, R; (D = S.indexOf(y, D + 1)) != -1; ) {
37059
+ var N = g.diff_commonPrefix(Q.substring(w), S.substring(D)), L = g.diff_commonSuffix(Q.substring(0, w), S.substring(0, D));
37060
+ _.length < L + N && (_ = S.substring(D - L, D) + S.substring(D, D + N), M = Q.substring(0, w - L), v = Q.substring(w + N), F = S.substring(0, D - L), R = S.substring(D + N));
37061
37061
  }
37062
37062
  return _.length * 2 >= Q.length ? [M, v, F, R, _] : null;
37063
37063
  }
@@ -37083,8 +37083,8 @@ var diffMatchPatch = { exports: {} };
37083
37083
  function a(B, Q) {
37084
37084
  if (!B || !Q)
37085
37085
  return 6;
37086
- var w = B.charAt(B.length - 1), y = Q.charAt(0), S = w.match(e.nonAlphaNumericRegex_), D = y.match(e.nonAlphaNumericRegex_), _ = S && w.match(e.whitespaceRegex_), M = D && y.match(e.whitespaceRegex_), v = _ && w.match(e.linebreakRegex_), F = M && y.match(e.linebreakRegex_), R = v && B.match(e.blanklineEndRegex_), N = F && Q.match(e.blanklineStartRegex_);
37087
- return R || N ? 5 : v || F ? 4 : S && !_ && M ? 3 : _ || M ? 2 : S || D ? 1 : 0;
37086
+ var S = B.charAt(B.length - 1), w = Q.charAt(0), y = S.match(e.nonAlphaNumericRegex_), D = w.match(e.nonAlphaNumericRegex_), _ = y && S.match(e.whitespaceRegex_), M = D && w.match(e.whitespaceRegex_), v = _ && S.match(e.linebreakRegex_), F = M && w.match(e.linebreakRegex_), R = v && B.match(e.blanklineEndRegex_), N = F && Q.match(e.blanklineStartRegex_);
37087
+ return R || N ? 5 : v || F ? 4 : y && !_ && M ? 3 : _ || M ? 2 : y || D ? 1 : 0;
37088
37088
  }
37089
37089
  for (var l = 1; l < s.length - 1; ) {
37090
37090
  if (s[l - 1][0] == o && s[l + 1][0] == o) {
@@ -37232,14 +37232,14 @@ var diffMatchPatch = { exports: {} };
37232
37232
  for (I = 0, p = m; I < p; )
37233
37233
  h(B, l + p) <= d ? I = p : m = p, p = Math.floor((m - I) / 2 + I);
37234
37234
  m = p;
37235
- var Q = Math.max(1, l - p + 1), w = Math.min(l + p, s.length) + a.length, y = Array(w + 2);
37236
- y[w + 1] = (1 << B) - 1;
37237
- for (var S = w; S >= Q; S--) {
37238
- var D = c[s.charAt(S - 1)];
37239
- if (B === 0 ? y[S] = (y[S + 1] << 1 | 1) & D : y[S] = (y[S + 1] << 1 | 1) & D | ((E[S + 1] | E[S]) << 1 | 1) | E[S + 1], y[S] & f) {
37240
- var _ = h(B, S - 1);
37235
+ var Q = Math.max(1, l - p + 1), S = Math.min(l + p, s.length) + a.length, w = Array(S + 2);
37236
+ w[S + 1] = (1 << B) - 1;
37237
+ for (var y = S; y >= Q; y--) {
37238
+ var D = c[s.charAt(y - 1)];
37239
+ if (B === 0 ? w[y] = (w[y + 1] << 1 | 1) & D : w[y] = (w[y + 1] << 1 | 1) & D | ((E[y + 1] | E[y]) << 1 | 1) | E[y + 1], w[y] & f) {
37240
+ var _ = h(B, y - 1);
37241
37241
  if (_ <= d)
37242
- if (d = _, u = S - 1, u > l)
37242
+ if (d = _, u = y - 1, u > l)
37243
37243
  Q = Math.max(1, 2 * l - u);
37244
37244
  else
37245
37245
  break;
@@ -37247,7 +37247,7 @@ var diffMatchPatch = { exports: {} };
37247
37247
  }
37248
37248
  if (h(B + 1, l) > d)
37249
37249
  break;
37250
- E = y;
37250
+ E = w;
37251
37251
  }
37252
37252
  return u;
37253
37253
  }, e.prototype.match_alphabet_ = function(s) {
@@ -37340,8 +37340,8 @@ var diffMatchPatch = { exports: {} };
37340
37340
  else {
37341
37341
  this.diff_cleanupSemanticLossless(m);
37342
37342
  for (var E = 0, B, Q = 0; Q < s[h].diffs.length; Q++) {
37343
- var w = s[h].diffs[Q];
37344
- w[0] !== o && (B = this.diff_xIndex(m, E)), w[0] === r ? a = a.substring(0, f + B) + w[1] + a.substring(f + B) : w[0] === n && (a = a.substring(0, f + B) + a.substring(f + this.diff_xIndex(m, E + w[1].length))), w[0] !== n && (E += w[1].length);
37343
+ var S = s[h].diffs[Q];
37344
+ S[0] !== o && (B = this.diff_xIndex(m, E)), S[0] === r ? a = a.substring(0, f + B) + S[1] + a.substring(f + B) : S[0] === n && (a = a.substring(0, f + B) + a.substring(f + this.diff_xIndex(m, E + S[1].length))), S[0] !== n && (E += S[1].length);
37345
37345
  }
37346
37346
  }
37347
37347
  }
@@ -37947,21 +37947,21 @@ var diffFilter$1 = function(e) {
37947
37947
  e.options && e.options.arrays && e.options.arrays.detectMove === !1 && (B = !1);
37948
37948
  var Q = !1;
37949
37949
  e.options && e.options.arrays && e.options.arrays.includeValueOnMove && (Q = !0);
37950
- var w = E.length;
37950
+ var S = E.length;
37951
37951
  for (s = r; s < d - o; s++) {
37952
- var y = arrayIndexOf(m.indices2, s - r);
37953
- if (y < 0) {
37954
- var S = !1;
37955
- if (B && w > 0) {
37956
- for (var D = 0; D < w; D++)
37952
+ var w = arrayIndexOf(m.indices2, s - r);
37953
+ if (w < 0) {
37954
+ var y = !1;
37955
+ if (B && S > 0) {
37956
+ for (var D = 0; D < S; D++)
37957
37957
  if (a = E[D], matchItems(I, p, a - r, s - r, n)) {
37958
- f["_" + a].splice(1, 2, s, ARRAY_MOVE), Q || (f["_" + a][0] = ""), l = s, u = new DiffContext(e.left[a], e.right[l]), e.push(u, l), E.splice(D, 1), S = !0;
37958
+ f["_" + a].splice(1, 2, s, ARRAY_MOVE), Q || (f["_" + a][0] = ""), l = s, u = new DiffContext(e.left[a], e.right[l]), e.push(u, l), E.splice(D, 1), y = !0;
37959
37959
  break;
37960
37960
  }
37961
37961
  }
37962
- S || (f[s] = [g[s]]);
37962
+ y || (f[s] = [g[s]]);
37963
37963
  } else
37964
- a = m.indices1[y] + r, l = m.indices2[y] + r, u = new DiffContext(e.left[a], e.right[l]), e.push(u, l);
37964
+ a = m.indices1[w] + r, l = m.indices2[w] + r, u = new DiffContext(e.left[a], e.right[l]), e.push(u, l);
37965
37965
  }
37966
37966
  e.setResult(f).exit();
37967
37967
  }
@@ -39400,18 +39400,18 @@ function create_fragment$h(A) {
39400
39400
  let e, n, r, o = (
39401
39401
  /*node*/
39402
39402
  A[0].key + ""
39403
- ), s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, w, y = (
39403
+ ), s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, S, w = (
39404
39404
  /*hasChildren*/
39405
39405
  A[2] && create_if_block_4$3(A)
39406
39406
  );
39407
- const S = [create_if_block_3$4, create_else_block$8], D = [];
39407
+ const y = [create_if_block_3$4, create_else_block$8], D = [];
39408
39408
  function _(R, N) {
39409
39409
  return (
39410
39410
  /*valueComponent*/
39411
39411
  R[3] ? 0 : 1
39412
39412
  );
39413
39413
  }
39414
- g = _(A), h = D[g] = S[g](A);
39414
+ g = _(A), h = D[g] = y[g](A);
39415
39415
  let M = (
39416
39416
  /*$props*/
39417
39417
  A[1].showLogButton && create_if_block_2$5(A)
@@ -39423,7 +39423,7 @@ function create_fragment$h(A) {
39423
39423
  A[2] && create_if_block$9(A);
39424
39424
  return {
39425
39425
  c() {
39426
- e = element("li"), y && y.c(), n = space(), r = element("div"), s = text(o), a = text(":"), l = space(), c = element("div"), h.c(), u = space(), f = element("div"), M && M.c(), I = space(), v && v.c(), m = space(), F && F.c(), E = empty(), attr(r, "class", "node-key svelte-ngcjq5"), attr(r, "role", "presentation"), toggle_class(
39426
+ e = element("li"), w && w.c(), n = space(), r = element("div"), s = text(o), a = text(":"), l = space(), c = element("div"), h.c(), u = space(), f = element("div"), M && M.c(), I = space(), v && v.c(), m = space(), F && F.c(), E = empty(), attr(r, "class", "node-key svelte-ngcjq5"), attr(r, "role", "presentation"), toggle_class(
39427
39427
  r,
39428
39428
  "has-children",
39429
39429
  /*hasChildren*/
@@ -39447,7 +39447,7 @@ function create_fragment$h(A) {
39447
39447
  );
39448
39448
  },
39449
39449
  m(R, N) {
39450
- insert(R, e, N), y && y.m(e, null), append(e, n), append(e, r), append(r, s), append(r, a), append(e, l), append(e, c), D[g].m(c, null), append(e, u), append(e, f), M && M.m(f, null), append(f, I), v && v.m(f, null), insert(R, m, N), F && F.m(R, N), insert(R, E, N), B = !0, Q || (w = [listen(
39450
+ insert(R, e, N), w && w.m(e, null), append(e, n), append(e, r), append(r, s), append(r, a), append(e, l), append(e, c), D[g].m(c, null), append(e, u), append(e, f), M && M.m(f, null), append(f, I), v && v.m(f, null), insert(R, m, N), F && F.m(R, N), insert(R, E, N), B = !0, Q || (S = [listen(
39451
39451
  r,
39452
39452
  "click",
39453
39453
  /*handleToggleCollapse*/
@@ -39462,7 +39462,7 @@ function create_fragment$h(A) {
39462
39462
  p(R, N) {
39463
39463
  let [L] = N;
39464
39464
  /*hasChildren*/
39465
- R[2] ? y ? y.p(R, L) : (y = create_if_block_4$3(R), y.c(), y.m(e, n)) : y && (y.d(1), y = null), (!B || L & /*node*/
39465
+ R[2] ? w ? w.p(R, L) : (w = create_if_block_4$3(R), w.c(), w.m(e, n)) : w && (w.d(1), w = null), (!B || L & /*node*/
39466
39466
  1) && o !== (o = /*node*/
39467
39467
  R[0].key + "") && set_data(s, o), (!B || L & /*hasChildren*/
39468
39468
  4) && toggle_class(
@@ -39476,7 +39476,7 @@ function create_fragment$h(A) {
39476
39476
  let G = g;
39477
39477
  g = _(R), g === G ? D[g].p(R, L) : (group_outros(), transition_out(D[G], 1, 1, () => {
39478
39478
  D[G] = null;
39479
- }), check_outros(), h = D[g], h ? h.p(R, L) : (h = D[g] = S[g](R), h.c()), transition_in(h, 1), h.m(c, null)), (!B || L & /*node*/
39479
+ }), check_outros(), h = D[g], h ? h.p(R, L) : (h = D[g] = y[g](R), h.c()), transition_in(h, 1), h.m(c, null)), (!B || L & /*node*/
39480
39480
  1 && d !== (d = /*node*/
39481
39481
  R[0].type)) && attr(c, "data-type", d), (!B || L & /*node, hasChildren*/
39482
39482
  5) && toggle_class(c, "expanded", !/*node*/
@@ -39512,7 +39512,7 @@ function create_fragment$h(A) {
39512
39512
  transition_out(h), transition_out(F), B = !1;
39513
39513
  },
39514
39514
  d(R) {
39515
- R && (detach(e), detach(m), detach(E)), y && y.d(), D[g].d(), M && M.d(), v && v.d(), F && F.d(R), Q = !1, run_all(w);
39515
+ R && (detach(e), detach(m), detach(E)), w && w.d(), D[g].d(), M && M.d(), v && v.d(), F && F.d(R), Q = !1, run_all(S);
39516
39516
  }
39517
39517
  };
39518
39518
  }
@@ -39530,8 +39530,8 @@ function instance$h(A, e, n) {
39530
39530
  component_subscribe(A, f, (Q) => n(12, a = Q));
39531
39531
  let I;
39532
39532
  d.treeMap.subscribe((Q) => {
39533
- const w = Q.get(h);
39534
- w && I !== w && n(0, I = w);
39533
+ const S = Q.get(h);
39534
+ S && I !== S && n(0, I = S);
39535
39535
  });
39536
39536
  function p() {
39537
39537
  console.info("%c [svelte-tree-view]: Property added to window._node", "color: #b8e248"), console.log(I.value);
@@ -39687,7 +39687,7 @@ function create_fragment$g(A) {
39687
39687
  };
39688
39688
  }
39689
39689
  function instance$g(A, e, n) {
39690
- let r, o, s = noop, a = () => (s(), s = subscribe(r, (S) => n(2, o = S)), r);
39690
+ let r, o, s = noop, a = () => (s(), s = subscribe(r, (y) => n(2, o = y)), r);
39691
39691
  A.$$.on_destroy.push(() => s());
39692
39692
  var l;
39693
39693
  let {
@@ -39715,21 +39715,21 @@ function instance$g(A, e, n) {
39715
39715
  },
39716
39716
  valueFormatter: I
39717
39717
  };
39718
- const B = createPropsStore(E), Q = createRootElementStore(), w = createTreeStore(B);
39718
+ const B = createPropsStore(E), Q = createRootElementStore(), S = createTreeStore(B);
39719
39719
  setContext$1("svelte-tree-view", {
39720
39720
  propsStore: B,
39721
39721
  rootElementStore: Q,
39722
- treeStore: w
39722
+ treeStore: S
39723
39723
  }), onMount(() => {
39724
39724
  Q.set(p);
39725
39725
  });
39726
- function y(S) {
39727
- binding_callbacks[S ? "unshift" : "push"](() => {
39728
- p = S, n(0, p);
39726
+ function w(y) {
39727
+ binding_callbacks[y ? "unshift" : "push"](() => {
39728
+ p = y, n(0, p);
39729
39729
  });
39730
39730
  }
39731
- return A.$$set = (S) => {
39732
- n(3, e = assign(assign({}, e), exclude_internal_props(S))), "data" in S && n(4, c = S.data), "theme" in S && n(5, g = S.theme), "showLogButton" in S && n(6, h = S.showLogButton), "showCopyButton" in S && n(7, d = S.showCopyButton), "valueComponent" in S && n(8, u = S.valueComponent), "recursionOpts" in S && n(9, f = S.recursionOpts), "valueFormatter" in S && n(10, I = S.valueFormatter);
39731
+ return A.$$set = (y) => {
39732
+ n(3, e = assign(assign({}, e), exclude_internal_props(y))), "data" in y && n(4, c = y.data), "theme" in y && n(5, g = y.theme), "showLogButton" in y && n(6, h = y.showLogButton), "showCopyButton" in y && n(7, d = y.showCopyButton), "valueComponent" in y && n(8, u = y.valueComponent), "recursionOpts" in y && n(9, f = y.recursionOpts), "valueFormatter" in y && n(10, I = y.valueFormatter);
39733
39733
  }, A.$$.update = () => {
39734
39734
  if (A.$$.dirty & /*showLogButton, showCopyButton, valueComponent, valueFormatter, props*/
39735
39735
  5568 && n(12, E = {
@@ -39740,25 +39740,25 @@ function instance$g(A, e, n) {
39740
39740
  recursionOpts: E.recursionOpts
39741
39741
  }), A.$$.dirty & /*recursionOpts, props, _a, data*/
39742
39742
  6672) {
39743
- const S = {
39743
+ const y = {
39744
39744
  ...m,
39745
39745
  ...f
39746
- }, D = (n(11, l = E?.recursionOpts) === null || l === void 0 ? void 0 : l.shouldExpandNode) !== S.shouldExpandNode, _ = get_store_value(w.treeMap), {
39746
+ }, D = (n(11, l = E?.recursionOpts) === null || l === void 0 ? void 0 : l.shouldExpandNode) !== y.shouldExpandNode, _ = get_store_value(S.treeMap), {
39747
39747
  treeMap: M,
39748
39748
  tree: v,
39749
39749
  iteratedValues: F
39750
- } = recomputeTree(c, _, S, D);
39751
- w.init(v, M, F), n(12, E.recursionOpts = S, E), B.setProps(E);
39750
+ } = recomputeTree(c, _, y, D);
39751
+ S.init(v, M, F), n(12, E.recursionOpts = y, E), B.setProps(E);
39752
39752
  }
39753
39753
  if (A.$$.dirty & /*theme, rootElement*/
39754
39754
  33 && g && p) {
39755
- let S;
39756
- for (S in g) {
39757
- const D = g[S];
39758
- p && S.includes("base") && D && p.style.setProperty("--tree-view-".concat(S), D);
39755
+ let y;
39756
+ for (y in g) {
39757
+ const D = g[y];
39758
+ p && y.includes("base") && D && p.style.setProperty("--tree-view-".concat(y), D);
39759
39759
  }
39760
39760
  }
39761
- }, a(n(1, r = w.tree)), e = exclude_internal_props(e), [p, r, o, e, c, g, h, d, u, f, I, l, E, y];
39761
+ }, a(n(1, r = S.tree)), e = exclude_internal_props(e), [p, r, o, e, c, g, h, d, u, f, I, l, E, w];
39762
39762
  }
39763
39763
  class TreeView extends SvelteComponent {
39764
39764
  constructor(e) {
@@ -40182,14 +40182,14 @@ function create_right_slot$5(A) {
40182
40182
  )
40183
40183
  }
40184
40184
  });
40185
- const w = [create_if_block$8, create_else_block$7], y = [];
40186
- function S(D, _) {
40185
+ const S = [create_if_block$8, create_else_block$7], w = [];
40186
+ function y(D, _) {
40187
40187
  return (
40188
40188
  /*activeMarks*/
40189
40189
  D[2].length === 0 ? 0 : 1
40190
40190
  );
40191
40191
  }
40192
- return u = S(A), f = y[u] = w[u](A), B = new TreeView({
40192
+ return u = y(A), f = w[u] = S[u](A), B = new TreeView({
40193
40193
  props: {
40194
40194
  class: "tree-view",
40195
40195
  data: {
@@ -40208,7 +40208,7 @@ function create_right_slot$5(A) {
40208
40208
  e = element("div"), n = element("div"), r = element("h2"), r.textContent = "Selection", o = space(), create_component(s.$$.fragment), a = space(), create_component(l.$$.fragment), c = space(), g = element("div"), h = element("h2"), h.textContent = "Active marks", d = space(), f.c(), I = space(), p = element("div"), m = element("h2"), m.textContent = "Document stats", E = space(), create_component(B.$$.fragment), attr(n, "class", "top-row svelte-8c7oqn"), attr(e, "slot", "right"), attr(e, "class", "right-panel svelte-8c7oqn");
40209
40209
  },
40210
40210
  m(D, _) {
40211
- insert(D, e, _), append(e, n), append(n, r), append(n, o), mount_component(s, n, null), append(e, a), mount_component(l, e, null), append(e, c), append(e, g), append(g, h), append(g, d), y[u].m(g, null), append(e, I), append(e, p), append(p, m), append(p, E), mount_component(B, p, null), Q = !0;
40211
+ insert(D, e, _), append(e, n), append(n, r), append(n, o), mount_component(s, n, null), append(e, a), mount_component(l, e, null), append(e, c), append(e, g), append(g, h), append(g, d), w[u].m(g, null), append(e, I), append(e, p), append(p, m), append(p, E), mount_component(B, p, null), Q = !0;
40212
40212
  },
40213
40213
  p(D, _) {
40214
40214
  const M = {};
@@ -40222,9 +40222,9 @@ function create_right_slot$5(A) {
40222
40222
  2 && (v.data = /*selection*/
40223
40223
  D[1]), l.$set(v);
40224
40224
  let F = u;
40225
- u = S(D), u === F ? y[u].p(D, _) : (group_outros(), transition_out(y[F], 1, 1, () => {
40226
- y[F] = null;
40227
- }), check_outros(), f = y[u], f ? f.p(D, _) : (f = y[u] = w[u](D), f.c()), transition_in(f, 1), f.m(g, null));
40225
+ u = y(D), u === F ? w[u].p(D, _) : (group_outros(), transition_out(w[F], 1, 1, () => {
40226
+ w[F] = null;
40227
+ }), check_outros(), f = w[u], f ? f.p(D, _) : (f = w[u] = S[u](D), f.c()), transition_in(f, 1), f.m(g, null));
40228
40228
  const R = {};
40229
40229
  _ & /*nodeSize, childCount*/
40230
40230
  24 && (R.data = {
@@ -40245,7 +40245,7 @@ function create_right_slot$5(A) {
40245
40245
  transition_out(s.$$.fragment, D), transition_out(l.$$.fragment, D), transition_out(f), transition_out(B.$$.fragment, D), Q = !1;
40246
40246
  },
40247
40247
  d(D) {
40248
- D && detach(e), destroy_component(s), destroy_component(l), y[u].d(), destroy_component(B);
40248
+ D && detach(e), destroy_component(s), destroy_component(l), w[u].d(), destroy_component(B);
40249
40249
  }
40250
40250
  };
40251
40251
  }
@@ -40550,7 +40550,7 @@ function create_each_block$5(A, e) {
40550
40550
  )
40551
40551
  );
40552
40552
  }
40553
- let w = (
40553
+ let S = (
40554
40554
  /*group*/
40555
40555
  e[6].isGroup && /*group*/
40556
40556
  e[6].expanded && create_if_block$7(e)
@@ -40559,8 +40559,8 @@ function create_each_block$5(A, e) {
40559
40559
  key: A,
40560
40560
  first: null,
40561
40561
  c() {
40562
- var y;
40563
- r = element("li"), o = element("button"), s = element("span"), l = text(a), c = space(), p && p.c(), g = space(), m && m.c(), h = space(), E && E.c(), d = space(), w && w.c(), u = empty(), attr(o, "class", "svelte-vbjxb8"), toggle_class(
40562
+ var w;
40563
+ r = element("li"), o = element("button"), s = element("span"), l = text(a), c = space(), p && p.c(), g = space(), m && m.c(), h = space(), E && E.c(), d = space(), S && S.c(), u = empty(), attr(o, "class", "svelte-vbjxb8"), toggle_class(
40564
40564
  o,
40565
40565
  "is-group",
40566
40566
  /*group*/
@@ -40568,27 +40568,27 @@ function create_each_block$5(A, e) {
40568
40568
  ), attr(r, "class", "svelte-vbjxb8"), toggle_class(r, "selected", !/*group*/
40569
40569
  e[6].expanded && /*selectedId*/
40570
40570
  e[1] === /*group*/
40571
- ((y = e[6]) === null || y === void 0 || (y = y.topEntry) === null || y === void 0 ? void 0 : y.id)), this.first = r;
40571
+ ((w = e[6]) === null || w === void 0 || (w = w.topEntry) === null || w === void 0 ? void 0 : w.id)), this.first = r;
40572
40572
  },
40573
- m(y, S) {
40574
- insert(y, r, S), append(r, o), append(o, s), append(s, l), append(s, c), p && p.m(s, null), append(s, g), m && m.m(s, null), append(o, h), E && E.m(o, null), insert(y, d, S), w && w.m(y, S), insert(y, u, S), f || (I = [listen(o, "click", B), listen(o, "dblclick", Q)], f = !0);
40573
+ m(w, y) {
40574
+ insert(w, r, y), append(r, o), append(o, s), append(s, l), append(s, c), p && p.m(s, null), append(s, g), m && m.m(s, null), append(o, h), E && E.m(o, null), insert(w, d, y), S && S.m(w, y), insert(w, u, y), f || (I = [listen(o, "click", B), listen(o, "dblclick", Q)], f = !0);
40575
40575
  },
40576
- p(y, S) {
40576
+ p(w, y) {
40577
40577
  var D;
40578
- if (e = y, S & /*listItems*/
40578
+ if (e = w, y & /*listItems*/
40579
40579
  1 && a !== (a = /*group*/
40580
40580
  ((D = e[6]) === null || D === void 0 || (D = D.topEntry) === null || D === void 0 ? void 0 : D.timeStr) + "") && set_data(l, a), /*group*/
40581
- e[6].isGroup ? p ? p.p(e, S) : (p = create_if_block_3$3(e), p.c(), p.m(s, g)) : p && (p.d(1), p = null), /*group*/
40581
+ e[6].isGroup ? p ? p.p(e, y) : (p = create_if_block_3$3(e), p.c(), p.m(s, g)) : p && (p.d(1), p = null), /*group*/
40582
40582
  e[6].topEntry && /*group*/
40583
- e[6].topEntry.trs.length > 1 ? m ? m.p(e, S) : (m = create_if_block_2$4(e), m.c(), m.m(s, null)) : m && (m.d(1), m = null), /*group*/
40583
+ e[6].topEntry.trs.length > 1 ? m ? m.p(e, y) : (m = create_if_block_2$4(e), m.c(), m.m(s, null)) : m && (m.d(1), m = null), /*group*/
40584
40584
  e[6].isGroup && /*group*/
40585
- e[6].entries.length > 1 ? E ? E.p(e, S) : (E = create_if_block_1$5(e), E.c(), E.m(o, null)) : E && (E.d(1), E = null), S & /*listItems*/
40585
+ e[6].entries.length > 1 ? E ? E.p(e, y) : (E = create_if_block_1$5(e), E.c(), E.m(o, null)) : E && (E.d(1), E = null), y & /*listItems*/
40586
40586
  1 && toggle_class(
40587
40587
  o,
40588
40588
  "is-group",
40589
40589
  /*group*/
40590
40590
  e[6].isGroup
40591
- ), S & /*listItems, selectedId*/
40591
+ ), y & /*listItems, selectedId*/
40592
40592
  3) {
40593
40593
  var _;
40594
40594
  toggle_class(r, "selected", !/*group*/
@@ -40598,10 +40598,10 @@ function create_each_block$5(A, e) {
40598
40598
  }
40599
40599
  /*group*/
40600
40600
  e[6].isGroup && /*group*/
40601
- e[6].expanded ? w ? w.p(e, S) : (w = create_if_block$7(e), w.c(), w.m(u.parentNode, u)) : w && (w.d(1), w = null);
40601
+ e[6].expanded ? S ? S.p(e, y) : (S = create_if_block$7(e), S.c(), S.m(u.parentNode, u)) : S && (S.d(1), S = null);
40602
40602
  },
40603
- d(y) {
40604
- y && (detach(r), detach(d), detach(u)), p && p.d(), m && m.d(), E && E.d(), w && w.d(y), f = !1, run_all(I);
40603
+ d(w) {
40604
+ w && (detach(r), detach(d), detach(u)), p && p.d(), m && m.d(), E && E.d(), S && S.d(w), f = !1, run_all(I);
40605
40605
  }
40606
40606
  };
40607
40607
  }
@@ -41142,34 +41142,34 @@ function create_if_block$5(A) {
41142
41142
  c() {
41143
41143
  e = element("div"), I && I.c(), n = space(), p && p.c(), r = space(), m && m.c(), o = space(), s = element("div"), a = element("div"), l = element("h2"), l.textContent = "Transactions", c = space(), g = element("div"), E && E.c(), h = space(), create_component(d.$$.fragment), u = space(), B && B.c(), attr(g, "class", "transaction-buttons svelte-r7zw98"), attr(a, "class", "title-container svelte-r7zw98"), attr(s, "class", "entry-row svelte-r7zw98");
41144
41144
  },
41145
- m(Q, w) {
41146
- insert(Q, e, w), I && I.m(e, null), append(e, n), p && p.m(e, null), append(e, r), m && m.m(e, null), append(e, o), append(e, s), append(s, a), append(a, l), append(a, c), append(a, g), E && E.m(g, null), append(g, h), mount_component(d, g, null), append(s, u), B && B.m(s, null), f = !0;
41145
+ m(Q, S) {
41146
+ insert(Q, e, S), I && I.m(e, null), append(e, n), p && p.m(e, null), append(e, r), m && m.m(e, null), append(e, o), append(e, s), append(s, a), append(a, l), append(a, c), append(a, g), E && E.m(g, null), append(g, h), mount_component(d, g, null), append(s, u), B && B.m(s, null), f = !0;
41147
41147
  },
41148
- p(Q, w) {
41148
+ p(Q, S) {
41149
41149
  /*selectedEntry*/
41150
- Q[0].contentDiff ? I ? (I.p(Q, w), w & /*selectedEntry*/
41150
+ Q[0].contentDiff ? I ? (I.p(Q, S), S & /*selectedEntry*/
41151
41151
  1 && transition_in(I, 1)) : (I = create_if_block_5$1(Q), I.c(), transition_in(I, 1), I.m(e, n)) : I && (group_outros(), transition_out(I, 1, 1, () => {
41152
41152
  I = null;
41153
41153
  }), check_outros()), /*selectedEntry*/
41154
- Q[0].selectionDiff ? p ? (p.p(Q, w), w & /*selectedEntry*/
41154
+ Q[0].selectionDiff ? p ? (p.p(Q, S), S & /*selectedEntry*/
41155
41155
  1 && transition_in(p, 1)) : (p = create_if_block_4$1(Q), p.c(), transition_in(p, 1), p.m(e, r)) : p && (group_outros(), transition_out(p, 1, 1, () => {
41156
41156
  p = null;
41157
41157
  }), check_outros()), /*selectedEntry*/
41158
- Q[0].selectionHtml.length > 0 ? m ? (m.p(Q, w), w & /*selectedEntry*/
41158
+ Q[0].selectionHtml.length > 0 ? m ? (m.p(Q, S), S & /*selectedEntry*/
41159
41159
  1 && transition_in(m, 1)) : (m = create_if_block_3$1(Q), m.c(), transition_in(m, 1), m.m(e, o)) : m && (group_outros(), transition_out(m, 1, 1, () => {
41160
41160
  m = null;
41161
41161
  }), check_outros()), /*showTr*/
41162
- Q[1] ? E ? (E.p(Q, w), w & /*showTr*/
41162
+ Q[1] ? E ? (E.p(Q, S), S & /*showTr*/
41163
41163
  2 && transition_in(E, 1)) : (E = create_if_block_2$2(Q), E.c(), transition_in(E, 1), E.m(g, h)) : E && (group_outros(), transition_out(E, 1, 1, () => {
41164
41164
  E = null;
41165
41165
  }), check_outros());
41166
- const y = {};
41167
- w & /*$$scope, showTr*/
41168
- 65538 && (y.$$scope = {
41169
- dirty: w,
41166
+ const w = {};
41167
+ S & /*$$scope, showTr*/
41168
+ 65538 && (w.$$scope = {
41169
+ dirty: S,
41170
41170
  ctx: Q
41171
- }), d.$set(y), /*showTr*/
41172
- Q[1] ? B ? (B.p(Q, w), w & /*showTr*/
41171
+ }), d.$set(w), /*showTr*/
41172
+ Q[1] ? B ? (B.p(Q, S), S & /*showTr*/
41173
41173
  2 && transition_in(B, 1)) : (B = create_if_block_1$3(Q), B.c(), transition_in(B, 1), B.m(s, null)) : B && (group_outros(), transition_out(B, 1, 1, () => {
41174
41174
  B = null;
41175
41175
  }), check_outros());
@@ -41701,9 +41701,9 @@ function instance$a(A, e, n) {
41701
41701
  wasTopNode: Q
41702
41702
  } = m.detail;
41703
41703
  if (n(0, a = o.get(E)), !a) return;
41704
- const w = r[B];
41705
- w.isGroup && w.entries.length > 1 && Q && shownHistoryGroups.update((y) => y.map((S, D) => D !== B ? S : Object.assign(Object.assign({}, S), {
41706
- expanded: !S.expanded
41704
+ const S = r[B];
41705
+ S.isGroup && S.entries.length > 1 && Q && shownHistoryGroups.update((w) => w.map((y, D) => D !== B ? y : Object.assign(Object.assign({}, y), {
41706
+ expanded: !y.expanded
41707
41707
  })));
41708
41708
  }
41709
41709
  function I(m) {
@@ -42423,11 +42423,11 @@ function create_fragment$6(A) {
42423
42423
  let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q = ensure_array_like(
42424
42424
  /*fragment*/
42425
42425
  A[2].content
42426
- ), w = [];
42427
- for (let S = 0; S < Q.length; S += 1)
42428
- w[S] = create_each_block$1(get_each_context$1(A, Q, S));
42429
- const y = (S) => transition_out(w[S], 1, 1, () => {
42430
- w[S] = null;
42426
+ ), S = [];
42427
+ for (let y = 0; y < Q.length; y += 1)
42428
+ S[y] = create_each_block$1(get_each_context$1(A, Q, y));
42429
+ const w = (y) => transition_out(S[y], 1, 1, () => {
42430
+ S[y] = null;
42431
42431
  });
42432
42432
  return {
42433
42433
  c() {
@@ -42441,8 +42441,8 @@ function create_fragment$6(A) {
42441
42441
  /*endPos*/
42442
42442
  A[4]
42443
42443
  ), f = space(), I = element("ul");
42444
- for (let S = 0; S < w.length; S += 1)
42445
- w[S].c();
42444
+ for (let y = 0; y < S.length; y += 1)
42445
+ S[y].c();
42446
42446
  attr(r, "class", "number-box svelte-1un819s"), attr(l, "aria-label", "Show node info button"), attr(l, "class", "svelte-1un819s"), toggle_class(l, "selected", !1), attr(a, "class", "node-name svelte-1un819s"), attr(h, "class", "number-box svelte-1un819s"), attr(n, "class", "doc-node-body svelte-1un819s"), attr(n, "style", u = "background: ".concat(
42447
42447
  /*color*/
42448
42448
  A[7]
@@ -42467,10 +42467,10 @@ function create_fragment$6(A) {
42467
42467
  A[8]
42468
42468
  );
42469
42469
  },
42470
- m(S, D) {
42471
- insert(S, e, D), append(e, n), append(n, r), append(r, o), append(n, s), append(n, a), append(a, l), append(l, c), append(n, g), append(n, h), append(h, d), append(e, f), append(e, I);
42472
- for (let _ = 0; _ < w.length; _ += 1)
42473
- w[_] && w[_].m(I, null);
42470
+ m(y, D) {
42471
+ insert(y, e, D), append(e, n), append(n, r), append(r, o), append(n, s), append(n, a), append(a, l), append(l, c), append(n, g), append(n, h), append(h, d), append(e, f), append(e, I);
42472
+ for (let _ = 0; _ < S.length; _ += 1)
42473
+ S[_] && S[_].m(I, null);
42474
42474
  m = !0, E || (B = [listen(
42475
42475
  l,
42476
42476
  "click",
@@ -42483,40 +42483,40 @@ function create_fragment$6(A) {
42483
42483
  A[10]
42484
42484
  )], E = !0);
42485
42485
  },
42486
- p(S, D) {
42486
+ p(y, D) {
42487
42487
  let [_] = D;
42488
42488
  if ((!m || _ & /*startPos*/
42489
42489
  1) && set_data(
42490
42490
  o,
42491
42491
  /*startPos*/
42492
- S[0]
42492
+ y[0]
42493
42493
  ), (!m || _ & /*name*/
42494
42494
  64) && set_data(
42495
42495
  c,
42496
42496
  /*name*/
42497
- S[6]
42497
+ y[6]
42498
42498
  ), (!m || _ & /*endPos*/
42499
42499
  16) && set_data(
42500
42500
  d,
42501
42501
  /*endPos*/
42502
- S[4]
42502
+ y[4]
42503
42503
  ), (!m || _ & /*color*/
42504
42504
  128 && u !== (u = "background: ".concat(
42505
42505
  /*color*/
42506
- S[7]
42506
+ y[7]
42507
42507
  ))) && attr(n, "style", u), _ & /*fragment, startPositions, depth*/
42508
42508
  38) {
42509
42509
  Q = ensure_array_like(
42510
42510
  /*fragment*/
42511
- S[2].content
42511
+ y[2].content
42512
42512
  );
42513
42513
  let M;
42514
42514
  for (M = 0; M < Q.length; M += 1) {
42515
- const v = get_each_context$1(S, Q, M);
42516
- w[M] ? (w[M].p(v, _), transition_in(w[M], 1)) : (w[M] = create_each_block$1(v), w[M].c(), transition_in(w[M], 1), w[M].m(I, null));
42515
+ const v = get_each_context$1(y, Q, M);
42516
+ S[M] ? (S[M].p(v, _), transition_in(S[M], 1)) : (S[M] = create_each_block$1(v), S[M].c(), transition_in(S[M], 1), S[M].m(I, null));
42517
42517
  }
42518
- for (group_outros(), M = Q.length; M < w.length; M += 1)
42519
- y(M);
42518
+ for (group_outros(), M = Q.length; M < S.length; M += 1)
42519
+ w(M);
42520
42520
  check_outros();
42521
42521
  }
42522
42522
  (!m || _ & /*inlineChildren*/
@@ -42524,41 +42524,41 @@ function create_fragment$6(A) {
42524
42524
  I,
42525
42525
  "inline-children",
42526
42526
  /*inlineChildren*/
42527
- S[3]
42527
+ y[3]
42528
42528
  ), (!m || _ & /*depth*/
42529
42529
  2) && toggle_class(
42530
42530
  I,
42531
42531
  "show-borders",
42532
42532
  /*depth*/
42533
- S[1] >= 1
42533
+ y[1] >= 1
42534
42534
  ), (!m || _ & /*$$props*/
42535
42535
  2048 && p !== (p = null_to_empty("".concat(
42536
42536
  /*$$props*/
42537
- S[11].class || "",
42537
+ y[11].class || "",
42538
42538
  " doc-node"
42539
42539
  )) + " svelte-1un819s")) && attr(e, "class", p), (!m || _ & /*$$props, isRoot*/
42540
42540
  2304) && toggle_class(
42541
42541
  e,
42542
42542
  "root",
42543
42543
  /*isRoot*/
42544
- S[8]
42544
+ y[8]
42545
42545
  );
42546
42546
  },
42547
- i(S) {
42547
+ i(y) {
42548
42548
  if (!m) {
42549
42549
  for (let D = 0; D < Q.length; D += 1)
42550
- transition_in(w[D]);
42550
+ transition_in(S[D]);
42551
42551
  m = !0;
42552
42552
  }
42553
42553
  },
42554
- o(S) {
42555
- w = w.filter(Boolean);
42556
- for (let D = 0; D < w.length; D += 1)
42557
- transition_out(w[D]);
42554
+ o(y) {
42555
+ S = S.filter(Boolean);
42556
+ for (let D = 0; D < S.length; D += 1)
42557
+ transition_out(S[D]);
42558
42558
  m = !1;
42559
42559
  },
42560
- d(S) {
42561
- S && detach(e), destroy_each(w, S), E = !1, run_all(B);
42560
+ d(y) {
42561
+ y && detach(e), destroy_each(S, y), E = !1, run_all(B);
42562
42562
  }
42563
42563
  };
42564
42564
  }
@@ -42590,8 +42590,8 @@ function instance$6(A, e, n) {
42590
42590
  4097 && n(5, a = Array(d.childCount).fill(void 0).reduce((E, B, Q) => {
42591
42591
  if (Q === 0)
42592
42592
  return [I ? 0 : u + 1];
42593
- let w = E[Q - 1], y = d.child(Q - 1);
42594
- return [...E, w + y.nodeSize];
42593
+ let S = E[Q - 1], w = d.child(Q - 1);
42594
+ return [...E, S + w.nodeSize];
42595
42595
  }, [])), A.$$.dirty & /*startPos, node*/
42596
42596
  4097 && n(4, l = u + d.nodeSize), A.$$.dirty & /*fragment*/
42597
42597
  4 && n(3, c = r.content.every((E) => E.isInline));
@@ -42953,8 +42953,8 @@ function instance$4(A, e, n) {
42953
42953
  if (!p || getComputedStyle(p).display === "none") return;
42954
42954
  const m = getScrollableParent(o.dom);
42955
42955
  if (m) {
42956
- const Q = m.scrollTop, w = m.offsetTop - window.scrollY, y = m.getBoundingClientRect().top - w, S = p.getBoundingClientRect().top - w, D = m.clientHeight / 2;
42957
- m.scroll(0, Q + y + S - D);
42956
+ const Q = m.scrollTop, S = m.offsetTop - window.scrollY, w = m.getBoundingClientRect().top - S, y = p.getBoundingClientRect().top - S, D = m.clientHeight / 2;
42957
+ m.scroll(0, Q + w + y - D);
42958
42958
  }
42959
42959
  const E = o.coordsAtPos(u).top, B = ((I = document.querySelector(".floating-dock")) === null || I === void 0 ? void 0 : I.clientHeight) || 0;
42960
42960
  window.scroll(0, E - B + p.clientHeight + window.scrollY);
@@ -43125,7 +43125,7 @@ function create_each_block(A) {
43125
43125
  )
43126
43126
  );
43127
43127
  }
43128
- function w() {
43128
+ function S() {
43129
43129
  return (
43130
43130
  /*click_handler_1*/
43131
43131
  A[18](
@@ -43134,7 +43134,7 @@ function create_each_block(A) {
43134
43134
  )
43135
43135
  );
43136
43136
  }
43137
- function y() {
43137
+ function w() {
43138
43138
  return (
43139
43139
  /*click_handler_2*/
43140
43140
  A[19](
@@ -43143,7 +43143,7 @@ function create_each_block(A) {
43143
43143
  )
43144
43144
  );
43145
43145
  }
43146
- function S(v, F) {
43146
+ function y(v, F) {
43147
43147
  var R;
43148
43148
  return (
43149
43149
  /*deleteSnap*/
@@ -43151,7 +43151,7 @@ function create_each_block(A) {
43151
43151
  v[23].timestamp ? create_if_block$3 : create_else_block$3
43152
43152
  );
43153
43153
  }
43154
- let D = S(A), _ = D(A);
43154
+ let D = y(A), _ = D(A);
43155
43155
  function M() {
43156
43156
  return (
43157
43157
  /*click_handler_3*/
@@ -43166,10 +43166,10 @@ function create_each_block(A) {
43166
43166
  e = element("li"), p.c(), n = space(), r = element("button"), B.c(), o = space(), s = element("button"), s.textContent = "Restore", a = space(), l = element("button"), l.textContent = "Export", c = space(), g = element("button"), _.c(), h = space(), attr(r, "class", "snapshot-btn ml-2 svelte-969ox4"), attr(s, "class", "snapshot-btn svelte-969ox4"), attr(l, "class", "snapshot-btn svelte-969ox4"), attr(g, "class", "snapshot-btn svelte-969ox4"), attr(e, "class", "svelte-969ox4");
43167
43167
  },
43168
43168
  m(v, F) {
43169
- insert(v, e, F), p.m(e, null), append(e, n), append(e, r), B.m(r, null), append(e, o), append(e, s), append(e, a), append(e, l), append(e, c), append(e, g), _.m(g, null), append(e, h), d || (u = [listen(r, "click", Q), listen(s, "click", w), listen(l, "click", y), listen(g, "click", M)], d = !0);
43169
+ insert(v, e, F), p.m(e, null), append(e, n), append(e, r), B.m(r, null), append(e, o), append(e, s), append(e, a), append(e, l), append(e, c), append(e, g), _.m(g, null), append(e, h), d || (u = [listen(r, "click", Q), listen(s, "click", S), listen(l, "click", w), listen(g, "click", M)], d = !0);
43170
43170
  },
43171
43171
  p(v, F) {
43172
- A = v, I === (I = f(A)) && p ? p.p(A, F) : (p.d(1), p = I(A), p && (p.c(), p.m(e, n))), E !== (E = m(A)) && (B.d(1), B = E(A), B && (B.c(), B.m(r, null))), D !== (D = S(A)) && (_.d(1), _ = D(A), _ && (_.c(), _.m(g, null)));
43172
+ A = v, I === (I = f(A)) && p ? p.p(A, F) : (p.d(1), p = I(A), p && (p.c(), p.m(e, n))), E !== (E = m(A)) && (B.d(1), B = E(A), B && (B.c(), B.m(r, null))), D !== (D = y(A)) && (_.d(1), _ = D(A), _ && (_.c(), _.m(g, null)));
43173
43173
  },
43174
43174
  d(v) {
43175
43175
  v && detach(e), p.d(), B.d(), _.d(), d = !1, run_all(u);
@@ -43253,13 +43253,13 @@ function instance$3(A, e, n) {
43253
43253
  function Q(v) {
43254
43254
  c(v), n(3, d = void 0);
43255
43255
  }
43256
- function w(v) {
43256
+ function S(v) {
43257
43257
  !d || d.timestamp !== v.timestamp ? n(3, d = v) : (g(v), n(3, d = void 0));
43258
43258
  }
43259
- const y = (v) => I(v), S = (v) => E(v), D = (v) => B(v), _ = (v) => Q(v), M = (v) => w(v);
43259
+ const w = (v) => I(v), y = (v) => E(v), D = (v) => B(v), _ = (v) => Q(v), M = (v) => S(v);
43260
43260
  return A.$$set = (v) => {
43261
43261
  "snapshots" in v && n(0, r = v.snapshots), "selectedSnapshot" in v && n(1, o = v.selectedSnapshot), "onUpdate" in v && n(11, s = v.onUpdate), "onView" in v && n(12, a = v.onView), "onRestore" in v && n(13, l = v.onRestore), "onExport" in v && n(14, c = v.onExport), "onDelete" in v && n(15, g = v.onDelete);
43262
- }, [r, o, h, d, I, p, m, E, B, Q, w, s, a, l, c, g, y, S, D, _, M];
43262
+ }, [r, o, h, d, I, p, m, E, B, Q, S, s, a, l, c, g, w, y, D, _, M];
43263
43263
  }
43264
43264
  class SnapshotsList extends SvelteComponent {
43265
43265
  constructor(e) {
@@ -43571,7 +43571,7 @@ function create_if_block$1(A) {
43571
43571
  };
43572
43572
  }
43573
43573
  function create_fragment$1(A) {
43574
- let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, w, y, S, D, _, M, v, F, R;
43574
+ let e, n, r, o, s, a, l, c, g, h, d, u, f, I, p, m, E, B, Q, S, w, y, D, _, M, v, F, R;
43575
43575
  n = new PasteModal({
43576
43576
  props: {
43577
43577
  isOpen: (
@@ -43587,7 +43587,7 @@ function create_fragment$1(A) {
43587
43587
  "close",
43588
43588
  /*handleCloseModal*/
43589
43589
  A[11]
43590
- ), y = new TabsMenu({
43590
+ ), w = new TabsMenu({
43591
43591
  props: {
43592
43592
  onClickTab: (
43593
43593
  /*handleClickTab*/
@@ -43623,7 +43623,7 @@ function create_fragment$1(A) {
43623
43623
  }
43624
43624
  return D = G(A), _ = L[D] = N[D](A), {
43625
43625
  c() {
43626
- e = element("div"), create_component(n.$$.fragment), r = space(), o = element("div"), s = element("div"), a = space(), l = element("div"), c = element("div"), g = element("button"), g.textContent = "Copy", h = space(), d = element("button"), d.textContent = "Save", u = space(), f = element("button"), f.textContent = "Import", I = space(), p = element("button"), p.textContent = "Paste", m = space(), E = element("button"), E.textContent = "X", B = space(), Q = element("input"), w = space(), create_component(y.$$.fragment), S = space(), _.c(), attr(s, "class", "resizing-div svelte-1quf800"), attr(s, "role", "button"), attr(s, "tabindex", "-1"), attr(g, "class", "copy-btn svelte-1quf800"), attr(d, "class", "save-btn svelte-1quf800"), attr(f, "class", "import-btn svelte-1quf800"), attr(p, "class", "paste-btn svelte-1quf800"), attr(E, "class", "close-btn svelte-1quf800"), attr(E, "aria-label", "Close dev-toolkit"), set_style(Q, "display", "none"), attr(Q, "type", "file"), attr(Q, "accept", ".json"), Q.multiple = !0, attr(l, "class", "floating-dock-body svelte-1quf800"), attr(o, "class", "floating-dock svelte-1quf800"), attr(o, "style", M = "top: ".concat(
43626
+ e = element("div"), create_component(n.$$.fragment), r = space(), o = element("div"), s = element("div"), a = space(), l = element("div"), c = element("div"), g = element("button"), g.textContent = "Copy", h = space(), d = element("button"), d.textContent = "Save", u = space(), f = element("button"), f.textContent = "Import", I = space(), p = element("button"), p.textContent = "Paste", m = space(), E = element("button"), E.textContent = "X", B = space(), Q = element("input"), S = space(), create_component(w.$$.fragment), y = space(), _.c(), attr(s, "class", "resizing-div svelte-1quf800"), attr(s, "role", "button"), attr(s, "tabindex", "-1"), attr(g, "class", "copy-btn svelte-1quf800"), attr(d, "class", "save-btn svelte-1quf800"), attr(f, "class", "import-btn svelte-1quf800"), attr(p, "class", "paste-btn svelte-1quf800"), attr(E, "class", "close-btn svelte-1quf800"), attr(E, "aria-label", "Close dev-toolkit"), set_style(Q, "display", "none"), attr(Q, "type", "file"), attr(Q, "accept", ".json"), Q.multiple = !0, attr(l, "class", "floating-dock-body svelte-1quf800"), attr(o, "class", "floating-dock svelte-1quf800"), attr(o, "style", M = "top: ".concat(
43627
43627
  /*dockTop*/
43628
43628
  A[2],
43629
43629
  "%; height: "
@@ -43634,7 +43634,7 @@ function create_fragment$1(A) {
43634
43634
  )), attr(e, "class", "floating-dock-wrapper svelte-1quf800");
43635
43635
  },
43636
43636
  m(K, O) {
43637
- insert(K, e, O), mount_component(n, e, null), append(e, r), append(e, o), append(o, s), append(o, a), append(o, l), append(l, c), append(c, g), append(c, h), append(c, d), append(c, u), append(c, f), append(c, I), append(c, p), append(c, m), append(c, E), append(l, B), append(l, Q), A[15](Q), append(l, w), mount_component(y, l, null), append(l, S), L[D].m(l, null), v = !0, F || (R = [listen(
43637
+ insert(K, e, O), mount_component(n, e, null), append(e, r), append(e, o), append(o, s), append(o, a), append(o, l), append(l, c), append(c, g), append(c, h), append(c, d), append(c, u), append(c, f), append(c, I), append(c, p), append(c, m), append(c, E), append(l, B), append(l, Q), A[15](Q), append(l, S), mount_component(w, l, null), append(l, y), L[D].m(l, null), v = !0, F || (R = [listen(
43638
43638
  s,
43639
43639
  "mousedown",
43640
43640
  /*handleResizeMouseDown*/
@@ -43681,7 +43681,7 @@ function create_fragment$1(A) {
43681
43681
  const re = {};
43682
43682
  oe & /*openTab*/
43683
43683
  2 && (re.active = /*openTab*/
43684
- A[1]), y.$set(re);
43684
+ A[1]), w.$set(re);
43685
43685
  let z = D;
43686
43686
  D = G(A), D !== z && (group_outros(), transition_out(L[z], 1, 1, () => {
43687
43687
  L[z] = null;
@@ -43697,13 +43697,13 @@ function create_fragment$1(A) {
43697
43697
  ))) && attr(o, "style", M);
43698
43698
  },
43699
43699
  i(K) {
43700
- v || (transition_in(n.$$.fragment, K), transition_in(y.$$.fragment, K), transition_in(_), v = !0);
43700
+ v || (transition_in(n.$$.fragment, K), transition_in(w.$$.fragment, K), transition_in(_), v = !0);
43701
43701
  },
43702
43702
  o(K) {
43703
- transition_out(n.$$.fragment, K), transition_out(y.$$.fragment, K), transition_out(_), v = !1;
43703
+ transition_out(n.$$.fragment, K), transition_out(w.$$.fragment, K), transition_out(_), v = !1;
43704
43704
  },
43705
43705
  d(K) {
43706
- K && detach(e), destroy_component(n), A[15](null), destroy_component(y), L[D].d(), F = !1, run_all(R);
43706
+ K && detach(e), destroy_component(n), A[15](null), destroy_component(w), L[D].d(), F = !1, run_all(R);
43707
43707
  }
43708
43708
  };
43709
43709
  }
@@ -43721,17 +43721,17 @@ function instance$1(A, e, n) {
43721
43721
  function h() {
43722
43722
  document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
43723
43723
  }
43724
- function d(S) {
43725
- S.preventDefault(), n(2, a = 100 * S.clientY / window.innerHeight), n(3, l = 100 * (1 - S.clientY / window.innerHeight));
43724
+ function d(y) {
43725
+ y.preventDefault(), n(2, a = 100 * y.clientY / window.innerHeight), n(3, l = 100 * (1 - y.clientY / window.innerHeight));
43726
43726
  }
43727
- function u(S) {
43728
- S.preventDefault(), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
43727
+ function u(y) {
43728
+ y.preventDefault(), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
43729
43729
  }
43730
43730
  function f() {
43731
43731
  navigator.clipboard.writeText(JSON.stringify(o.state.doc.toJSON()));
43732
43732
  }
43733
43733
  function I() {
43734
- const S = (/* @__PURE__ */ new Date()).toLocaleString("sv"), D = prompt("Enter snapshot name", S);
43734
+ const y = (/* @__PURE__ */ new Date()).toLocaleString("sv"), D = prompt("Enter snapshot name", y);
43735
43735
  D && saveSnapshot(D, o.state.doc.toJSON());
43736
43736
  }
43737
43737
  function p() {
@@ -43743,12 +43743,12 @@ function instance$1(A, e, n) {
43743
43743
  function E() {
43744
43744
  n(5, g = !1);
43745
43745
  }
43746
- function B(S) {
43747
- const D = saveSnapshot((/* @__PURE__ */ new Date()).toLocaleString("sv"), S.detail.doc);
43746
+ function B(y) {
43747
+ const D = saveSnapshot((/* @__PURE__ */ new Date()).toLocaleString("sv"), y.detail.doc);
43748
43748
  restoreSnapshot(o, D), n(5, g = !1);
43749
43749
  }
43750
- function Q(S) {
43751
- Array.from(S.currentTarget.files || []).forEach((D) => {
43750
+ function Q(y) {
43751
+ Array.from(y.currentTarget.files || []).forEach((D) => {
43752
43752
  const _ = new FileReader();
43753
43753
  _.readAsText(D), _.onload = (M) => {
43754
43754
  var v, F;
@@ -43765,17 +43765,17 @@ function instance$1(A, e, n) {
43765
43765
  };
43766
43766
  });
43767
43767
  }
43768
- function w(S) {
43769
- n(1, s = S);
43768
+ function S(y) {
43769
+ n(1, s = y);
43770
43770
  }
43771
- function y(S) {
43772
- binding_callbacks[S ? "unshift" : "push"](() => {
43773
- c = S, n(4, c);
43771
+ function w(y) {
43772
+ binding_callbacks[y ? "unshift" : "push"](() => {
43773
+ c = y, n(4, c);
43774
43774
  });
43775
43775
  }
43776
- return A.$$set = (S) => {
43777
- "onClose" in S && n(0, r = S.onClose);
43778
- }, [r, s, a, l, c, g, h, f, I, p, m, E, B, Q, w, y];
43776
+ return A.$$set = (y) => {
43777
+ "onClose" in y && n(0, r = y.onClose);
43778
+ }, [r, s, a, l, c, g, h, f, I, p, m, E, B, Q, S, w];
43779
43779
  }
43780
43780
  class FloatingDock extends SvelteComponent {
43781
43781
  constructor(e) {
@@ -46297,38 +46297,38 @@ class DocumentMarkdownInlineTokenizer {
46297
46297
  let f = g ? g.marks : [];
46298
46298
  g && g.type.name === this.options.hardBreakNodeName && (f = f.filter((Q) => {
46299
46299
  if (d + 1 == e.childCount) return !1;
46300
- let w = e.child(d + 1);
46301
- return Q.isInSet(w.marks) && (!w.isText || /\S/.test(w.text));
46300
+ let S = e.child(d + 1);
46301
+ return Q.isInSet(S.marks) && (!S.isText || /\S/.test(S.text));
46302
46302
  }));
46303
46303
  const I = s.splice(
46304
46304
  0,
46305
46305
  s.length
46306
46306
  );
46307
46307
  if (g.isText && f.some((Q) => {
46308
- let w = this.getMark(Q.type.name);
46309
- return w && w.expelEnclosingWhitespace && !Q.isInSet(o);
46308
+ let S = this.getMark(Q.type.name);
46309
+ return S && S.expelEnclosingWhitespace && !Q.isInSet(o);
46310
46310
  })) {
46311
- let [Q, w, y] = /^(\s*)(.*)$/m.exec(g.text);
46312
- w && (I.push([w, u]), g = y ? g.withText(y) : null, g || (f = o));
46311
+ let [Q, S, w] = /^(\s*)(.*)$/m.exec(g.text);
46312
+ S && (I.push([S, u]), g = w ? g.withText(w) : null, g || (f = o));
46313
46313
  }
46314
46314
  if (g.isText && f.some((Q) => {
46315
- let w = this.getMark(Q.type.name);
46316
- return w && w.expelEnclosingWhitespace && (d == e.childCount - 1 || !Q.isInSet(e.child(d + 1).marks));
46315
+ let S = this.getMark(Q.type.name);
46316
+ return S && S.expelEnclosingWhitespace && (d == e.childCount - 1 || !Q.isInSet(e.child(d + 1).marks));
46317
46317
  })) {
46318
- let [Q, w, y] = /^(.*?)(\s*)$/m.exec(g.text);
46319
- y && (s.push([y, u]), g = w ? g.withText(w) : null, g || (f = o));
46318
+ let [Q, S, w] = /^(.*?)(\s*)$/m.exec(g.text);
46319
+ w && (s.push([w, u]), g = S ? g.withText(S) : null, g || (f = o));
46320
46320
  }
46321
46321
  let p = f.length ? f[f.length - 1] : null, m = p && this.getMark(p.type.name).escape === !1, E = f.length - (m ? 1 : 0);
46322
46322
  e: for (let Q = 0; Q < E; Q++) {
46323
- let w = f[Q];
46324
- if (!this.getMark(w.type.name).mixable) break;
46325
- for (let y = 0; y < o.length; y++) {
46326
- let S = o[y];
46327
- if (!this.getMark(S.type.name).mixable) break;
46328
- if (w.eq(S)) {
46329
- Q > y ? f = f.slice(0, y).concat(w).concat(f.slice(y, Q)).concat(f.slice(Q + 1, E)) : y > Q && (f = f.slice(0, Q).concat(f.slice(Q + 1, y)).concat(
46330
- w
46331
- ).concat(f.slice(y, E)));
46323
+ let S = f[Q];
46324
+ if (!this.getMark(S.type.name).mixable) break;
46325
+ for (let w = 0; w < o.length; w++) {
46326
+ let y = o[w];
46327
+ if (!this.getMark(y.type.name).mixable) break;
46328
+ if (S.eq(y)) {
46329
+ Q > w ? f = f.slice(0, w).concat(S).concat(f.slice(w, Q)).concat(f.slice(Q + 1, E)) : w > Q && (f = f.slice(0, Q).concat(f.slice(Q + 1, w)).concat(
46330
+ S
46331
+ ).concat(f.slice(w, E)));
46332
46332
  continue e;
46333
46333
  }
46334
46334
  }
@@ -46353,18 +46353,18 @@ class DocumentMarkdownInlineTokenizer {
46353
46353
  await this.markString(p, !1, a);
46354
46354
  } else {
46355
46355
  const Q = this.nodes[g.type.name] ? this.nodes[g.type.name](g, n) : blankNode$1;
46356
- let w = "";
46356
+ let S = "";
46357
46357
  if (g.type.spec.toDOM) {
46358
- const y = g.type.spec.toDOM(g);
46359
- Array.isArray(y) && y.length > 0 && (w = y[0]);
46358
+ const w = g.type.spec.toDOM(g);
46359
+ Array.isArray(w) && w.length > 0 && (S = w[0]);
46360
46360
  }
46361
46361
  if (Q.selfClose)
46362
46362
  if (typeof Q.selfClose == "string") {
46363
- const y = new Token(Q.selfClose, w, 0);
46364
- y.meta = "nodeSpec.selfClose", y.level = r, y.map = [u], a.push(y);
46363
+ const w = new Token(Q.selfClose, S, 0);
46364
+ w.meta = "nodeSpec.selfClose", w.level = r, w.map = [u], a.push(w);
46365
46365
  } else {
46366
- const y = await Q.selfClose(g, u, d);
46367
- y.meta = "!nodeSpec.selfClose", y.level = r, y.map = [u], a.push(y);
46366
+ const w = await Q.selfClose(g, u, d);
46367
+ w.meta = "!nodeSpec.selfClose", w.level = r, w.map = [u], a.push(w);
46368
46368
  }
46369
46369
  }
46370
46370
  };
@@ -46508,14 +46508,14 @@ async function extPmToMdConverter(A, e, n, r) {
46508
46508
  const a = new DocumentMarkdownTokenizer({
46509
46509
  paragraph(B) {
46510
46510
  return {
46511
- open: async (Q, w, y) => {
46512
- const S = new Token("paragraph_open", "p", NESTING_OPENING);
46513
- return s.resolve(w).parent?.type.name === "table_cell" && y > 0 && S.attrSet("not_first_para", "1"), S;
46511
+ open: async (Q, S, w) => {
46512
+ const y = new Token("paragraph_open", "p", NESTING_OPENING);
46513
+ return s.resolve(S).parent?.type.name === "table_cell" && w > 0 && y.attrSet("not_first_para", "1"), y;
46514
46514
  },
46515
- close: async (Q, w, y, S) => {
46515
+ close: async (Q, S, w, y) => {
46516
46516
  const D = new Token("paragraph_close", "p", NESTING_CLOSING);
46517
46517
  let _;
46518
- return Q.children.length === 1 && Q.children[0].type.name === "shortcode_inline" && (_ = Q.children[0]), _ ? (_.attrs.nesting !== NESTING_CLOSING && S.attrSet("margin_before", "1"), _.attrs.nesting !== NESTING_OPENING && D.attrSet("margin_after", "1")) : (S.attrSet("margin_before", "1"), D.attrSet("margin_after", "1")), D;
46518
+ return Q.children.length === 1 && Q.children[0].type.name === "shortcode_inline" && (_ = Q.children[0]), _ ? (_.attrs.nesting !== NESTING_CLOSING && y.attrSet("margin_before", "1"), _.attrs.nesting !== NESTING_OPENING && D.attrSet("margin_after", "1")) : (y.attrSet("margin_before", "1"), D.attrSet("margin_after", "1")), D;
46519
46519
  }
46520
46520
  };
46521
46521
  },
@@ -46559,8 +46559,8 @@ async function extPmToMdConverter(A, e, n, r) {
46559
46559
  return {
46560
46560
  open: async (Q) => {
46561
46561
  o.stash(), o.current.meta.list_type = "tl", o.current.meta.list_type_symbol = "";
46562
- const w = new Token("task_list_open", "ul", 1);
46563
- return w.attrSet("symbol", "*"), w;
46562
+ const S = new Token("task_list_open", "ul", 1);
46563
+ return S.attrSet("symbol", "*"), S;
46564
46564
  },
46565
46565
  close: async (Q) => (o.unstash(), new Token("task_list_close", "ul", -1)),
46566
46566
  margin: "both"
@@ -46568,36 +46568,36 @@ async function extPmToMdConverter(A, e, n, r) {
46568
46568
  },
46569
46569
  bullet_list(B) {
46570
46570
  return {
46571
- open: async (Q, w, y) => {
46571
+ open: async (Q, S, w) => {
46572
46572
  o.stash(), o.current.meta.list_type = "ul", o.current.meta.list_type_symbol = "*";
46573
- const S = new Token("bullet_list_open", "ul", 1);
46574
- S.attrSet("symbol", "*");
46575
- const D = s.nodeAt(w + 1);
46576
- D?.type.name === "list_item" && S.attrSet("first_level_type", D.attrs.type);
46577
- const _ = s.resolve(w), M = _.parent;
46578
- return _.node(_.depth - 1), M?.type.name === "table_cell" && y > 0 && S.attrSet("not_first_para", "1"), S;
46573
+ const y = new Token("bullet_list_open", "ul", 1);
46574
+ y.attrSet("symbol", "*");
46575
+ const D = s.nodeAt(S + 1);
46576
+ D?.type.name === "list_item" && y.attrSet("first_level_type", D.attrs.type);
46577
+ const _ = s.resolve(S), M = _.parent;
46578
+ return _.node(_.depth - 1), M?.type.name === "table_cell" && w > 0 && y.attrSet("not_first_para", "1"), y;
46579
46579
  },
46580
- close: async (Q, w) => {
46580
+ close: async (Q, S) => {
46581
46581
  o.unstash();
46582
- const y = new Token("bullet_list_close", "ul", -1), S = s.nodeAt(w + 1);
46583
- return S?.type.name === "list_item" && y.attrSet("first_level_type", S.attrs.type), y;
46582
+ const w = new Token("bullet_list_close", "ul", -1), y = s.nodeAt(S + 1);
46583
+ return y?.type.name === "list_item" && w.attrSet("first_level_type", y.attrs.type), w;
46584
46584
  },
46585
46585
  margin: "both"
46586
46586
  };
46587
46587
  },
46588
46588
  ordered_list(B) {
46589
46589
  return {
46590
- open: async (Q, w, y) => {
46590
+ open: async (Q, S, w) => {
46591
46591
  o.stash(), o.current.meta.list_type = "ol", o.current.meta.list_type_symbol = Q.attrs.type || "1";
46592
- const S = new Token("ordered_list_open", "ol", 1);
46593
- S.attrSet("symbol", Q.attrs.type || "1"), S.attrSet("start", Q.attrs.start);
46594
- const D = s.nodeAt(w + 1);
46595
- return D?.type.name === "list_item" && S.attrSet("first_level_type", D.attrs.type), s.resolve(w).parent?.type.name === "table_cell" && y > 0 && S.attrSet("not_first_para", "1"), S;
46592
+ const y = new Token("ordered_list_open", "ol", 1);
46593
+ y.attrSet("symbol", Q.attrs.type || "1"), y.attrSet("start", Q.attrs.start);
46594
+ const D = s.nodeAt(S + 1);
46595
+ return D?.type.name === "list_item" && y.attrSet("first_level_type", D.attrs.type), s.resolve(S).parent?.type.name === "table_cell" && w > 0 && y.attrSet("not_first_para", "1"), y;
46596
46596
  },
46597
- close: async (Q, w) => {
46597
+ close: async (Q, S) => {
46598
46598
  o.unstash();
46599
- const y = new Token("ordered_list_close", "ol", -1), S = s.nodeAt(w + 1);
46600
- return S?.type.name === "list_item" && y.attrSet("first_level_type", S.attrs.type), y;
46599
+ const w = new Token("ordered_list_close", "ol", -1), y = s.nodeAt(S + 1);
46600
+ return y?.type.name === "list_item" && w.attrSet("first_level_type", y.attrs.type), w;
46601
46601
  },
46602
46602
  margin: "both"
46603
46603
  };
@@ -46605,8 +46605,8 @@ async function extPmToMdConverter(A, e, n, r) {
46605
46605
  list_item(B) {
46606
46606
  return {
46607
46607
  open: async (Q) => {
46608
- const w = new Token("list_item_open", "li", 1);
46609
- return Q.attrs.value && w.attrSet("value", Q.attrs.value), Q.attrs.type && w.attrSet("type", Q.attrs.type), o.current.meta.list_type === "ul" && (w.markup = o.current.meta.list_type_symbol || "-"), w;
46608
+ const S = new Token("list_item_open", "li", 1);
46609
+ return Q.attrs.value && S.attrSet("value", Q.attrs.value), Q.attrs.type && S.attrSet("type", Q.attrs.type), o.current.meta.list_type === "ul" && (S.markup = o.current.meta.list_type_symbol || "-"), S;
46610
46610
  },
46611
46611
  close: "list_item_close"
46612
46612
  };
@@ -46614,8 +46614,8 @@ async function extPmToMdConverter(A, e, n, r) {
46614
46614
  task_item(B) {
46615
46615
  return {
46616
46616
  open: async (Q) => {
46617
- const w = new Token("task_item_open", "li", 1);
46618
- return w.attrSet("checked", Q.attrs.checked ? "checked" : ""), w;
46617
+ const S = new Token("task_item_open", "li", 1);
46618
+ return S.attrSet("checked", Q.attrs.checked ? "checked" : ""), S;
46619
46619
  },
46620
46620
  close: "task_item_close"
46621
46621
  };
@@ -46658,16 +46658,16 @@ async function extPmToMdConverter(A, e, n, r) {
46658
46658
  text(B) {
46659
46659
  return {
46660
46660
  selfClose: (Q) => {
46661
- const w = new Token("text", "", 0);
46662
- return w.content = Q.text || "", Promise.resolve(w);
46661
+ const S = new Token("text", "", 0);
46662
+ return S.content = Q.text || "", Promise.resolve(S);
46663
46663
  }
46664
46664
  };
46665
46665
  },
46666
46666
  code_block(B) {
46667
46667
  return {
46668
46668
  selfClose: (Q) => {
46669
- const w = new Token("code_block", "code", 0);
46670
- return w.meta = "noEscText", w.attrSet("lang", Q.attrs.lang), w.content = Q.textContent, Promise.resolve(w);
46669
+ const S = new Token("code_block", "code", 0);
46670
+ return S.meta = "noEscText", S.attrSet("lang", Q.attrs.lang), S.content = Q.textContent, Promise.resolve(S);
46671
46671
  },
46672
46672
  margin: "both"
46673
46673
  };
@@ -46687,25 +46687,25 @@ async function extPmToMdConverter(A, e, n, r) {
46687
46687
  image(B) {
46688
46688
  return {
46689
46689
  selfClose: (Q) => {
46690
- let w = Q.attrs.src, y = Q.attrs.alt;
46691
- const S = new Token("image", "img", 0);
46692
- return S.attrSet("src", w), S.attrSet("alt", y), S.attrSet("origUrl", Q.attrs.origUrl), Q.attrs.title && S.attrSet("title", Q.attrs.title), S.attrSet("mdTemplate", Q.attrs.mdTemplate), Promise.resolve(S);
46690
+ let S = Q.attrs.src, w = Q.attrs.alt;
46691
+ const y = new Token("image", "img", 0);
46692
+ return y.attrSet("src", S), y.attrSet("alt", w), y.attrSet("origUrl", Q.attrs.origUrl), Q.attrs.title && y.attrSet("title", Q.attrs.title), y.attrSet("mdTemplate", Q.attrs.mdTemplate), Promise.resolve(y);
46693
46693
  }
46694
46694
  };
46695
46695
  },
46696
46696
  shortcode_inline(B) {
46697
46697
  return {
46698
46698
  selfClose: (Q) => {
46699
- const w = new Token("shortcode_inline", "shortcode_inline", 0);
46700
- return w.content = Q.attrs.content, Promise.resolve(w);
46699
+ const S = new Token("shortcode_inline", "shortcode_inline", 0);
46700
+ return S.content = Q.attrs.content, Promise.resolve(S);
46701
46701
  }
46702
46702
  };
46703
46703
  },
46704
46704
  node_bookmark(B) {
46705
46705
  return {
46706
46706
  selfClose: (Q) => {
46707
- const w = new Token("bookmark", "bookmark", NESTING_SELF_CLOSING);
46708
- return w.content = Q.attrs.content, w.attrSet("id", Q.attrs.id), Promise.resolve(w);
46707
+ const S = new Token("bookmark", "bookmark", NESTING_SELF_CLOSING);
46708
+ return S.content = Q.attrs.content, S.attrSet("id", Q.attrs.id), Promise.resolve(S);
46709
46709
  }
46710
46710
  };
46711
46711
  }
@@ -46811,21 +46811,21 @@ async function extPmToMdConverter(A, e, n, r) {
46811
46811
  if (e.sourceMap) {
46812
46812
  const B = new SmartOutput();
46813
46813
  nodeToTreeStringOutput(B, A), B.getSourceMap(
46814
- (Q, w, y, S) => {
46815
- S && (p[S.pos] = {
46814
+ (Q, S, w, y) => {
46815
+ y && (p[y.pos] = {
46816
46816
  targetRow: Q,
46817
- targetCol: w
46817
+ targetCol: S
46818
46818
  });
46819
46819
  }
46820
46820
  ), E = f.getSourceMap(
46821
- (Q, w, y, S) => {
46822
- if (S?.map) {
46823
- const D = S.map[0], _ = S.map[2];
46821
+ (Q, S, w, y) => {
46822
+ if (y?.map) {
46823
+ const D = y.map[0], _ = y.map[2];
46824
46824
  if (m.push({
46825
46825
  nodeIdx: D,
46826
- targetPos: y,
46826
+ targetPos: w,
46827
46827
  targetRow: Q,
46828
- targetCol: w,
46828
+ targetCol: S,
46829
46829
  sourceCol: _
46830
46830
  }), p[D])
46831
46831
  return {
@@ -48469,24 +48469,24 @@ async function Module2(moduleArg = {}) {
48469
48469
  tlsExports: /* @__PURE__ */ new Set(),
48470
48470
  weakImports: /* @__PURE__ */ new Set(),
48471
48471
  runtimePaths: []
48472
- }, I = 1, p = 2, m = 3, E = 4, B = 5, Q = 256, w = 3, y = 1; e < n; ) {
48473
- var S = r(), D = o();
48474
- if (S === I)
48472
+ }, I = 1, p = 2, m = 3, E = 4, B = 5, Q = 256, S = 3, w = 1; e < n; ) {
48473
+ var y = r(), D = o();
48474
+ if (y === I)
48475
48475
  f.memorySize = o(), f.memoryAlign = o(), f.tableSize = o(), f.tableAlign = o();
48476
- else if (S === p)
48476
+ else if (y === p)
48477
48477
  f.neededDynlibs = a();
48478
- else if (S === m)
48478
+ else if (y === m)
48479
48479
  for (var _ = o(); _--; ) {
48480
48480
  var M = s(), v = o();
48481
48481
  v & Q && f.tlsExports.add(M);
48482
48482
  }
48483
- else if (S === E)
48483
+ else if (y === E)
48484
48484
  for (var _ = o(); _--; ) {
48485
48485
  s();
48486
48486
  var M = s(), v = o();
48487
- (v & w) == y && f.weakImports.add(M);
48487
+ (v & S) == w && f.weakImports.add(M);
48488
48488
  }
48489
- else S === B ? f.runtimePaths = a() : e += D;
48489
+ else y === B ? f.runtimePaths = a() : e += D;
48490
48490
  }
48491
48491
  return f;
48492
48492
  }, "getDylinkMetadata");
@@ -49487,16 +49487,16 @@ var Query = class {
49487
49487
  );
49488
49488
  if (!o) {
49489
49489
  const m = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32"), E = C.getValue(TRANSFER_BUFFER, "i32"), B = C.UTF8ToString(r, E).length, Q = e.slice(B, B + 100).split(`
49490
- `)[0], w = Q.match(QUERY_WORD_REGEX)?.[0] ?? "";
49490
+ `)[0], S = Q.match(QUERY_WORD_REGEX)?.[0] ?? "";
49491
49491
  switch (C._free(r), m) {
49492
49492
  case QueryErrorKind.Syntax:
49493
49493
  throw new QueryError$1(QueryErrorKind.Syntax, { suffix: `${B}: '${Q}'...` }, B, 0);
49494
49494
  case QueryErrorKind.NodeName:
49495
- throw new QueryError$1(m, { word: w }, B, w.length);
49495
+ throw new QueryError$1(m, { word: S }, B, S.length);
49496
49496
  case QueryErrorKind.FieldName:
49497
- throw new QueryError$1(m, { word: w }, B, w.length);
49497
+ throw new QueryError$1(m, { word: S }, B, S.length);
49498
49498
  case QueryErrorKind.CaptureName:
49499
- throw new QueryError$1(m, { word: w }, B, w.length);
49499
+ throw new QueryError$1(m, { word: S }, B, S.length);
49500
49500
  case QueryErrorKind.PatternStructure:
49501
49501
  throw new QueryError$1(m, { suffix: `${B}: '${Q}'...` }, B, 0);
49502
49502
  }
@@ -49531,14 +49531,14 @@ var Query = class {
49531
49531
  const E = C._ts_query_predicates_for_pattern(o, m, TRANSFER_BUFFER), B = C.getValue(TRANSFER_BUFFER, "i32");
49532
49532
  I[m] = [], p[m] = [];
49533
49533
  const Q = new Array();
49534
- let w = E;
49535
- for (let y = 0; y < B; y++) {
49536
- const S = C.getValue(w, "i32");
49537
- w += SIZE_OF_INT;
49538
- const D = C.getValue(w, "i32");
49539
- w += SIZE_OF_INT, parsePattern(
49534
+ let S = E;
49535
+ for (let w = 0; w < B; w++) {
49536
+ const y = C.getValue(S, "i32");
49537
+ S += SIZE_OF_INT;
49538
+ const D = C.getValue(S, "i32");
49539
+ S += SIZE_OF_INT, parsePattern(
49540
49540
  m,
49541
- S,
49541
+ y,
49542
49542
  D,
49543
49543
  c,
49544
49544
  h,
@@ -49604,18 +49604,18 @@ var Query = class {
49604
49604
  this.exceededMatchLimit = !!p;
49605
49605
  let E = 0, B = I;
49606
49606
  for (let Q = 0; Q < f; Q++) {
49607
- const w = C.getValue(B, "i32");
49607
+ const S = C.getValue(B, "i32");
49608
49608
  B += SIZE_OF_INT;
49609
- const y = C.getValue(B, "i32");
49609
+ const w = C.getValue(B, "i32");
49610
49610
  B += SIZE_OF_INT;
49611
- const S = new Array(y);
49612
- if (B = unmarshalCaptures(this, A.tree, B, w, S), this.textPredicates[w].every((D) => D(S))) {
49613
- m[E] = { patternIndex: w, captures: S };
49614
- const D = this.setProperties[w];
49611
+ const y = new Array(w);
49612
+ if (B = unmarshalCaptures(this, A.tree, B, S, y), this.textPredicates[S].every((D) => D(y))) {
49613
+ m[E] = { patternIndex: S, captures: y };
49614
+ const D = this.setProperties[S];
49615
49615
  m[E].setProperties = D;
49616
- const _ = this.assertedProperties[w];
49616
+ const _ = this.assertedProperties[S];
49617
49617
  m[E].assertedProperties = _;
49618
- const M = this.refutedProperties[w];
49618
+ const M = this.refutedProperties[S];
49619
49619
  m[E].refutedProperties = M, E++;
49620
49620
  }
49621
49621
  }
@@ -49667,17 +49667,17 @@ var Query = class {
49667
49667
  const E = new Array();
49668
49668
  let B = I;
49669
49669
  for (let Q = 0; Q < f; Q++) {
49670
+ const S = C.getValue(B, "i32");
49671
+ B += SIZE_OF_INT;
49670
49672
  const w = C.getValue(B, "i32");
49671
49673
  B += SIZE_OF_INT;
49672
49674
  const y = C.getValue(B, "i32");
49673
- B += SIZE_OF_INT;
49674
- const S = C.getValue(B, "i32");
49675
- if (B += SIZE_OF_INT, E.length = y, B = unmarshalCaptures(this, A.tree, B, w, E), this.textPredicates[w].every((D) => D(E))) {
49676
- const D = E[S], _ = this.setProperties[w];
49675
+ if (B += SIZE_OF_INT, E.length = w, B = unmarshalCaptures(this, A.tree, B, S, E), this.textPredicates[S].every((D) => D(E))) {
49676
+ const D = E[y], _ = this.setProperties[S];
49677
49677
  D.setProperties = _;
49678
- const M = this.assertedProperties[w];
49678
+ const M = this.assertedProperties[S];
49679
49679
  D.assertedProperties = M;
49680
- const v = this.refutedProperties[w];
49680
+ const v = this.refutedProperties[S];
49681
49681
  D.refutedProperties = v, m.push(D);
49682
49682
  }
49683
49683
  }
@@ -50291,8 +50291,8 @@ const _childrenWithSoftNodes = (A, e, n) => {
50291
50291
  continue;
50292
50292
  const Q = f + B.length;
50293
50293
  if (B.match(/^\s/)) {
50294
- const w = E, y = m;
50295
- E += (B.match(/\n/g) || []).length, w != E ? m = B.split(`
50294
+ const S = E, w = m;
50295
+ E += (B.match(/\n/g) || []).length, S != E ? m = B.split(`
50296
50296
  `).slice(-1)[0].length : m += B.length, r.push(
50297
50297
  new WhitespaceNode({
50298
50298
  tree: A.tree,
@@ -50300,8 +50300,8 @@ const _childrenWithSoftNodes = (A, e, n) => {
50300
50300
  getReferencePoint: g,
50301
50301
  text: B,
50302
50302
  _startIndexOffset: f - d,
50303
- _startRowOffset: w - u.row,
50304
- _startColOffset: y - u.column,
50303
+ _startRowOffset: S - u.row,
50304
+ _startColOffset: w - u.column,
50305
50305
  _endIndexOffset: Q - d,
50306
50306
  _endRowOffset: E - u.row,
50307
50307
  _endColOffset: m - u.column,
@@ -50309,7 +50309,7 @@ const _childrenWithSoftNodes = (A, e, n) => {
50309
50309
  })
50310
50310
  );
50311
50311
  } else {
50312
- const w = m;
50312
+ const S = m;
50313
50313
  m += B.length, r.push(
50314
50314
  new SoftTextNode({
50315
50315
  tree: A.tree,
@@ -50318,7 +50318,7 @@ const _childrenWithSoftNodes = (A, e, n) => {
50318
50318
  text: B,
50319
50319
  _startIndexOffset: f - d,
50320
50320
  _startRowOffset: E - u.row,
50321
- _startColOffset: w - u.column,
50321
+ _startColOffset: S - u.column,
50322
50322
  _endIndexOffset: Q - d,
50323
50323
  _endRowOffset: E - u.row,
50324
50324
  _endColOffset: m - u.column,
@@ -50403,8 +50403,14 @@ class ExtendedParser extends Parser {
50403
50403
  }
50404
50404
  }
50405
50405
  let hasBeenLoaded = !1;
50406
- async function createParser(A, { disableSoftNodes: e = !1, moduleOptions: n } = {}) {
50407
- await Parser.init(), hasBeenLoaded || (hasBeenLoaded = !0, await Parser.init(n));
50406
+ async function createParser(A, { disableSoftNodes: e = !1, assetLoad: n }) {
50407
+ if (!hasBeenLoaded) {
50408
+ hasBeenLoaded = !0;
50409
+ const s = {
50410
+ wasmBinary: await n("tree-sitter/web-tree-sitter.wasm")
50411
+ };
50412
+ await Parser.init(s);
50413
+ }
50408
50414
  const r = new ExtendedParser(), o = await Language.load(A);
50409
50415
  return r.setLanguage(o), r.disableSoftNodes = e, r;
50410
50416
  }
@@ -50605,96 +50611,119 @@ function treeToTokens(A, e, n) {
50605
50611
  ""
50606
50612
  ), r.push(u);
50607
50613
  }, l = (g, h, d = { row: 0, column: 0 }) => {
50608
- const u = (f) => {
50609
- if (f)
50610
- return h.substring(f.startIndex, f.endIndex);
50614
+ const u = (I) => {
50615
+ if (I)
50616
+ return h.substring(I.startIndex, I.endIndex);
50617
+ }, f = (I, p) => {
50618
+ const m = I.split(`
50619
+ `);
50620
+ let E = 0;
50621
+ for (const B of m) {
50622
+ if (E > 0) {
50623
+ const w = [
50624
+ // TODO verify in viewer
50625
+ d.row + p.startPosition?.row + E,
50626
+ d.row + p.endPosition?.row + E,
50627
+ 0,
50628
+ 0
50629
+ ], y = new Token("softbreak", "wbr", NESTING_SELF_CLOSING);
50630
+ y.map = w, y.content = `
50631
+ `, a(y, "softbreak between text rows");
50632
+ }
50633
+ const Q = [
50634
+ d.row + p.startPosition?.row + E,
50635
+ d.row + p.endPosition?.row + E,
50636
+ d.column + p.startPosition?.column,
50637
+ (+p.endPosition.row == +p.startPosition.row ? d.column : 0) + p.endPosition?.column
50638
+ ], S = new Token("text", "", NESTING_SELF_CLOSING);
50639
+ S.map = Q, S.meta = "noEscText", S.content = m.length > 1 ? B.replace(/^\s+/, "") : B, a(S, "text"), E++;
50640
+ }
50611
50641
  };
50612
- for (const f of g) {
50613
- const I = [
50614
- d.row + f.startPosition?.row,
50615
- d.row + f.endPosition?.row,
50616
- d.column + f.startPosition?.column,
50617
- (+f.endPosition.row == +f.startPosition.row ? d.column : 0) + f.endPosition?.column
50642
+ for (const I of g) {
50643
+ const p = [
50644
+ d.row + I.startPosition?.row,
50645
+ d.row + I.endPosition?.row,
50646
+ d.column + I.startPosition?.column,
50647
+ (+I.endPosition.row == +I.startPosition.row ? d.column : 0) + I.endPosition?.column
50618
50648
  ];
50619
- if (f.type.length === 1) {
50620
- const p = new Token("text", "", NESTING_SELF_CLOSING);
50621
- p.map = I, p.meta = "noEscText", p.content = u(f) || "", a(p, "walkInline");
50649
+ if (I.type.length === 1) {
50650
+ const m = new Token("text", "", NESTING_SELF_CLOSING);
50651
+ m.map = p, m.meta = "noEscText", m.content = u(I) || "", a(m, "walkInline");
50622
50652
  continue;
50623
50653
  }
50624
- switch (f.type) {
50654
+ switch (I.type) {
50625
50655
  case "block_continuation":
50626
50656
  case "emphasis_delimiter":
50627
50657
  case "code_span_delimiter":
50628
50658
  break;
50629
50659
  case "text":
50630
50660
  {
50631
- const p = new Token("text", "", NESTING_SELF_CLOSING);
50632
- p.map = I, p.meta = "noEscText", p.content = u(f) ?? "", a(p, "text");
50661
+ const m = u(I) ?? "";
50662
+ f(m, I);
50633
50663
  }
50634
50664
  break;
50635
50665
  case "latex_block":
50636
50666
  {
50637
- const p = f.children.find((E) => E?.type === "latex_span_delimiter"), m = f.children.filter((E) => E?.type !== "latex_span_delimiter").map((E) => u(E)).join("");
50638
- if (u(p) === "$$") {
50639
- const E = new Token(
50667
+ const m = I.children.find((B) => B?.type === "latex_span_delimiter"), E = I.children.filter((B) => B?.type !== "latex_span_delimiter").map((B) => u(B)).join("");
50668
+ if (u(m) === "$$") {
50669
+ const B = new Token(
50640
50670
  "fence",
50641
50671
  "pre",
50642
50672
  NESTING_SELF_CLOSING
50643
50673
  );
50644
- E.level = o, E.markup = "$$", E.meta = "noEscText", E.attrSet("lang", "latex"), E.content = m.trim(), r.push(E);
50674
+ B.level = o, B.markup = "$$", B.meta = "noEscText", B.attrSet("lang", "latex"), B.content = E.trim(), r.push(B);
50645
50675
  } else {
50646
- const E = new Token("math", "", NESTING_SELF_CLOSING);
50647
- E.attrSet("lang", "mathml"), E.map = I, E.meta = "noEscText", E.content = m, a(E, "latex_block");
50676
+ const B = new Token("math", "", NESTING_SELF_CLOSING);
50677
+ B.attrSet("lang", "latex"), B.map = p, B.meta = "noEscText", B.content = E, a(B, "latex_block");
50648
50678
  }
50649
50679
  }
50650
50680
  break;
50651
50681
  case "whitespace":
50652
50682
  {
50653
- const p = u(f) || "";
50654
- if (p === `
50683
+ const m = u(I) || "";
50684
+ if (m === `
50655
50685
  `) {
50656
- const m = new Token("softbreak", "br", NESTING_SELF_CLOSING);
50657
- m.map = I, m.content = p ?? "", a(m, `whitespace
50686
+ const E = new Token("softbreak", "wbr", NESTING_SELF_CLOSING);
50687
+ E.map = p, E.content = m ?? "", a(E, `whitespace
50658
50688
  `);
50659
50689
  break;
50660
50690
  }
50661
- if (p && p.match(/^\s+$/)) {
50662
- if (p.endsWith(`
50691
+ if (m && m.match(/^\s+$/)) {
50692
+ if (m.endsWith(`
50663
50693
  `)) {
50664
- const m = new Token(
50694
+ const E = new Token(
50665
50695
  "hardbreak",
50666
50696
  "wbr",
50667
50697
  NESTING_SELF_CLOSING
50668
50698
  );
50669
- m.map = I, m.meta = "noEscText", m.content = p ?? "", a(m, "whitespace hardbreak");
50699
+ E.map = p, E.meta = "noEscText", E.content = m ?? "", a(E, "whitespace hardbreak");
50670
50700
  } else {
50671
- const m = new Token("text", "br", NESTING_SELF_CLOSING);
50672
- m.map = I, m.meta = "noEscText", m.content = p ?? "", a(m, "whitespace space");
50701
+ const E = new Token("text", "br", NESTING_SELF_CLOSING);
50702
+ E.map = p, E.meta = "noEscText", E.content = m ?? "", a(E, "whitespace space");
50673
50703
  }
50674
50704
  break;
50675
50705
  }
50676
- if (p?.trim().length > 0) {
50677
- const m = new Token("text", "", NESTING_SELF_CLOSING);
50678
- m.map = I, m.meta = "noEscText", m.content = p ?? "", a(m, "whitespace other");
50706
+ if (m?.trim().length > 0) {
50707
+ f(m, I);
50679
50708
  break;
50680
50709
  }
50681
50710
  }
50682
50711
  break;
50683
50712
  case "shortcut_link":
50684
50713
  {
50685
- const p = "link", E = new Token(
50686
- p + "_open",
50714
+ const m = "link", B = new Token(
50715
+ m + "_open",
50687
50716
  "a",
50688
50717
  NESTING_OPENING
50689
- ), B = f.children.find((y) => y?.type === "link_destination");
50690
- E.attrSet("href", u(B) || "");
50691
- const Q = f.children.find((y) => y?.type === "link_title");
50692
- Q && E.attrSet("title", u(Q) || ""), a(E, "shortcut_link"), f.children.filter((y) => y.type === "link_text").forEach((y) => {
50693
- const S = new Token("text", "", NESTING_SELF_CLOSING);
50694
- S.map = I, S.meta = "noEscText", S.content = u(y) ?? "", a(S, "link_text");
50718
+ ), Q = I.children.find((y) => y?.type === "link_destination");
50719
+ B.attrSet("href", u(Q) || "");
50720
+ const S = I.children.find((y) => y?.type === "link_title");
50721
+ S && B.attrSet("title", u(S) || ""), a(B, "shortcut_link"), I.children.filter((y) => y.type === "link_text").forEach((y) => {
50722
+ const D = new Token("text", "", NESTING_SELF_CLOSING);
50723
+ D.map = p, D.meta = "noEscText", D.content = u(y) ?? "", a(D, "link_text");
50695
50724
  });
50696
50725
  const w = new Token(
50697
- p + "_close",
50726
+ m + "_close",
50698
50727
  "a",
50699
50728
  NESTING_CLOSING
50700
50729
  );
@@ -50703,19 +50732,19 @@ function treeToTokens(A, e, n) {
50703
50732
  break;
50704
50733
  case "inline_link":
50705
50734
  {
50706
- const p = "link", E = new Token(
50707
- p + "_open",
50735
+ const m = "link", B = new Token(
50736
+ m + "_open",
50708
50737
  "a",
50709
50738
  NESTING_OPENING
50710
- ), B = f.children.find((y) => y.type === "link_destination");
50711
- E.attrSet("href", B?.text || "");
50712
- const Q = f.children.find((y) => y.type === "link_title");
50713
- Q && E.attrSet("title", Q.text || ""), a(E, "inline_link"), f.children.filter((y) => y.type === "link_text").forEach((y) => {
50714
- const S = new Token("text", "", NESTING_SELF_CLOSING);
50715
- S.map = I, S.meta = "noEscText", S.content = u(y) ?? "", a(S, "inline_link_txt");
50739
+ ), Q = I.children.find((y) => y.type === "link_destination");
50740
+ B.attrSet("href", Q?.text || "");
50741
+ const S = I.children.find((y) => y.type === "link_title");
50742
+ S && B.attrSet("title", S.text || ""), a(B, "inline_link"), I.children.filter((y) => y.type === "link_text").forEach((y) => {
50743
+ const D = new Token("text", "", NESTING_SELF_CLOSING);
50744
+ D.map = p, D.meta = "noEscText", D.content = u(y) ?? "", a(D, "inline_link_txt");
50716
50745
  });
50717
50746
  const w = new Token(
50718
- p + "_close",
50747
+ m + "_close",
50719
50748
  "a",
50720
50749
  NESTING_CLOSING
50721
50750
  );
@@ -50724,45 +50753,45 @@ function treeToTokens(A, e, n) {
50724
50753
  break;
50725
50754
  case "image":
50726
50755
  {
50727
- const p = "image", E = new Token(
50728
- p,
50756
+ const m = "image", B = new Token(
50757
+ m,
50729
50758
  "img",
50730
50759
  NESTING_SELF_CLOSING
50731
- ), B = f.children.find((y) => y.type === "image_description");
50732
- E.attrSet("alt", B?.text || "");
50733
- const Q = f.children.find((y) => y.type === "link_destination");
50734
- E.attrSet("src", Q?.text || "");
50735
- const w = f.children.find((y) => y.type === "link_title");
50736
- w && E.attrSet("title", w.text || ""), a(E, "image");
50760
+ ), Q = I.children.find((y) => y.type === "image_description");
50761
+ B.attrSet("alt", Q?.text || "");
50762
+ const S = I.children.find((y) => y.type === "link_destination");
50763
+ B.attrSet("src", S?.text || "");
50764
+ const w = I.children.find((y) => y.type === "link_title");
50765
+ w && B.attrSet("title", w.text || ""), a(B, "image");
50737
50766
  }
50738
50767
  break;
50739
50768
  case "strong_emphasis":
50740
50769
  {
50741
- const p = f.children.find((w) => w.type === "emphasis_delimiter"), m = p?.text === "_" ? "underline" : "strong", E = p?.text === "_" ? "u" : "strong", B = new Token(
50742
- m + "_open",
50743
- E,
50770
+ const m = I.children.find((w) => w.type === "emphasis_delimiter"), E = m?.text === "_" ? "underline" : "strong", B = m?.text === "_" ? "u" : "strong", Q = new Token(
50771
+ E + "_open",
50772
+ B,
50744
50773
  NESTING_OPENING
50745
50774
  );
50746
- p?.text === "_" && (B.markup = "__"), a(B, "strongem"), l(f.children, h);
50747
- const Q = new Token(
50748
- m + "_close",
50749
- E,
50775
+ m?.text === "_" && (Q.markup = "__"), a(Q, "strongem"), l(I.children, h);
50776
+ const S = new Token(
50777
+ E + "_close",
50778
+ B,
50750
50779
  NESTING_CLOSING
50751
50780
  );
50752
- u(p) === "_" && (Q.markup = "__"), a(Q, "/strongem");
50781
+ u(m) === "_" && (S.markup = "__"), a(S, "/strongem");
50753
50782
  }
50754
50783
  break;
50755
50784
  case "emphasis":
50756
50785
  {
50757
- const p = f.children.find((y) => y.type === "emphasis_delimiter"), m = f.children.filter((y) => y.type !== "emphasis_delimiter"), E = p?.text === "_" ? "underline" : "em", B = p?.text === "_" ? "u" : "em", Q = new Token(
50758
- E + "_open",
50759
- B,
50786
+ const m = I.children.find((y) => y.type === "emphasis_delimiter"), E = I.children.filter((y) => y.type !== "emphasis_delimiter"), B = m?.text === "_" ? "underline" : "em", Q = m?.text === "_" ? "u" : "em", S = new Token(
50787
+ B + "_open",
50788
+ Q,
50760
50789
  NESTING_OPENING
50761
50790
  );
50762
- a(Q, "em"), l(m.filter((y) => !!y), h);
50791
+ a(S, "em"), l(E.filter((y) => !!y), h);
50763
50792
  const w = new Token(
50764
- E + "_close",
50765
- B,
50793
+ B + "_close",
50794
+ Q,
50766
50795
  NESTING_CLOSING
50767
50796
  );
50768
50797
  a(w, "/em");
@@ -50770,48 +50799,58 @@ function treeToTokens(A, e, n) {
50770
50799
  break;
50771
50800
  case "strikethrough":
50772
50801
  {
50773
- const p = "strike", m = "strike", E = new Token(
50774
- p + "_open",
50775
- m,
50802
+ const m = "strike", E = "strike", B = new Token(
50803
+ m + "_open",
50804
+ E,
50776
50805
  NESTING_OPENING
50777
50806
  );
50778
- a(E, "s"), l(f.children.filter((Q) => !!Q), h);
50779
- const B = new Token(
50780
- p + "_close",
50781
- m,
50807
+ a(B, "s"), l(I.children.filter((S) => !!S), h);
50808
+ const Q = new Token(
50809
+ m + "_close",
50810
+ E,
50782
50811
  NESTING_CLOSING
50783
50812
  );
50784
- a(B, "/s");
50813
+ a(Q, "/s");
50785
50814
  }
50786
50815
  break;
50787
50816
  case "code_span":
50788
50817
  {
50789
- const p = "code", m = "code", E = new Token(
50790
- p + "_open",
50791
- m,
50818
+ const m = "code", E = "code", B = new Token(
50819
+ m + "_open",
50820
+ E,
50792
50821
  NESTING_OPENING
50793
50822
  );
50794
- a(E, "code"), l(f.children.filter((Q) => !!Q), h);
50795
- const B = new Token(
50796
- p + "_close",
50797
- m,
50823
+ a(B, "code"), l(I.children.filter((S) => !!S), h);
50824
+ const Q = new Token(
50825
+ m + "_close",
50826
+ E,
50798
50827
  NESTING_CLOSING
50799
50828
  );
50800
- a(B, "/code");
50829
+ a(Q, "/code");
50801
50830
  }
50802
50831
  break;
50803
50832
  case "html_tag":
50804
50833
  {
50805
- const p = "html_block", E = new Token(
50806
- p,
50834
+ const m = "html_block", B = new Token(
50835
+ m,
50807
50836
  "",
50808
50837
  NESTING_SELF_CLOSING
50809
50838
  );
50810
- E.content = u(f) || "", a(E, "html_block");
50839
+ B.content = u(I) || "", a(B, "html_block");
50840
+ }
50841
+ break;
50842
+ case "hard_line_break":
50843
+ {
50844
+ const m = "hardbreak", B = new Token(
50845
+ m,
50846
+ "br",
50847
+ NESTING_SELF_CLOSING
50848
+ );
50849
+ B.map = p, B.meta = "noEscText", B.content = u(I) ?? "", a(B, "hard_line_break");
50811
50850
  }
50812
50851
  break;
50813
50852
  default:
50814
- throw console.debug("inline_node", f), new Error(`Unhandled inline node type: ${f.type}`);
50853
+ throw console.debug("inline_node", I), new Error(`Unhandled inline node type: ${I.type}`);
50815
50854
  }
50816
50855
  }
50817
50856
  }, c = (g, h = { tableRowType: "tbody", cellNo: 0, cellAlign: [] }) => {
@@ -50820,18 +50859,10 @@ function treeToTokens(A, e, n) {
50820
50859
  const d = s(g);
50821
50860
  if (!d)
50822
50861
  throw new Error("!inlineText");
50823
- if (g.children.length > 0)
50824
- l(g.children, n, g.startPosition);
50825
- else {
50826
- const u = e.parse(d);
50827
- if (!u)
50828
- throw new Error("!inlineTree");
50829
- l(
50830
- u?.rootNode.children,
50831
- d,
50832
- g.startPosition
50833
- );
50834
- }
50862
+ const u = e.parse(d);
50863
+ if (!u)
50864
+ throw new Error("!inlineTree");
50865
+ l(u?.rootNode.children, d, g.startPosition);
50835
50866
  return;
50836
50867
  }
50837
50868
  if (!g.children || g.children.length === 0) {
@@ -51031,15 +51062,15 @@ function treeToTokens(A, e, n) {
51031
51062
  for (; B.length > 0 && B[B.length - 1].type === "whitespace"; )
51032
51063
  B.splice(B.length - 1, 1);
51033
51064
  if (B.length > 0)
51034
- B.forEach((w) => c(w, h));
51065
+ B.forEach((S) => c(S, h));
51035
51066
  else {
51036
- const w = [
51067
+ const S = [
51037
51068
  g.startPosition?.row,
51038
51069
  g.endPosition?.row,
51039
51070
  g.startPosition?.column,
51040
51071
  g.endPosition?.column
51041
- ], y = new Token("text", "", NESTING_SELF_CLOSING);
51042
- y.map = w, y.meta = "noEscText", y.content = g.text?.replace(/\s+$/, "") ?? "", a(y, "txt5");
51072
+ ], w = new Token("text", "", NESTING_SELF_CLOSING);
51073
+ w.map = S, w.meta = "noEscText", w.content = g.text?.replace(/\s+$/, "") ?? "", a(w, "txt5");
51043
51074
  }
51044
51075
  const Q = new Token(
51045
51076
  p + "_close",
@@ -51084,18 +51115,18 @@ function treeToTokens(A, e, n) {
51084
51115
  f.level = o, f.attrSet("margin_before", "1"), r.push(f), o++;
51085
51116
  const I = g.children.filter((Q) => !!Q).filter((Q) => Q.type === "pipe_table_delimiter_row"), p = [];
51086
51117
  if (I.length > 0) {
51087
- const w = I[0].children.filter((y) => !!y).filter((y) => y.type === "pipe_table_delimiter_cell");
51088
- for (let y = 0; y < w.length; y++)
51089
- w[y].children.filter((D) => !!D).find((D) => D.type === "pipe_table_align_right") ? p.push("right") : p.push("left");
51118
+ const S = I[0].children.filter((w) => !!w).filter((w) => w.type === "pipe_table_delimiter_cell");
51119
+ for (let w = 0; w < S.length; w++)
51120
+ S[w].children.filter((D) => !!D).find((D) => D.type === "pipe_table_align_right") ? p.push("right") : p.push("left");
51090
51121
  }
51091
51122
  const m = g.children.filter((Q) => !!Q).filter((Q) => Q.type === "pipe_table_header");
51092
51123
  if (m.length > 0) {
51093
- const Q = "thead", w = "thead", y = new Token(
51124
+ const Q = "thead", S = "thead", w = new Token(
51094
51125
  Q + "_open",
51095
- w,
51126
+ S,
51096
51127
  NESTING_OPENING
51097
51128
  );
51098
- y.level = o, r.push(y), o++, m.forEach(
51129
+ w.level = o, r.push(w), o++, m.forEach(
51099
51130
  (D) => c(D, {
51100
51131
  ...h,
51101
51132
  tableRowType: "thead",
@@ -51103,12 +51134,12 @@ function treeToTokens(A, e, n) {
51103
51134
  cellAlign: p
51104
51135
  })
51105
51136
  ), o--;
51106
- const S = new Token(
51137
+ const y = new Token(
51107
51138
  Q + "_close",
51108
- w,
51139
+ S,
51109
51140
  NESTING_CLOSING
51110
51141
  );
51111
- S.level = o, r.push(S);
51142
+ y.level = o, r.push(y);
51112
51143
  }
51113
51144
  const E = g.children?.filter((Q) => Q?.type === "pipe_table_row");
51114
51145
  E.length > 0 && (o++, E.filter((Q) => !!Q).forEach(
@@ -51212,7 +51243,7 @@ async function sitterTokenizer(A) {
51212
51243
  (c) => c.indexOf("_inline") === -1
51213
51244
  ), r = e.files.find(
51214
51245
  (c) => c.indexOf("_inline") > -1
51215
- ), o = await A(e.dir + "/" + n), s = await A(e.dir + "/" + r), a = await createParser(o), l = await createParser(s);
51246
+ ), o = await A(e.dir + "/" + n), s = await A(e.dir + "/" + r), a = await createParser(o, { assetLoad: A }), l = await createParser(s, { assetLoad: A });
51216
51247
  return {
51217
51248
  parse: (c) => {
51218
51249
  const g = a.parse(c);
@@ -51510,20 +51541,20 @@ const addEmptyLines = (A, e) => {
51510
51541
  function I(m, E) {
51511
51542
  let B = d + E;
51512
51543
  for (let Q = m - 1; Q >= 0; Q--) {
51513
- const w = g[Q];
51514
- if (w?.type.name !== "text")
51544
+ const S = g[Q];
51545
+ if (S?.type.name !== "text")
51515
51546
  break;
51516
- const y = w.text || "", S = y.replace(/[ \t\u00A0]+$/, "");
51517
- if (S !== y) {
51518
- const D = B - w.nodeSize;
51519
- S.length > 0 ? o.replaceRangeWith(
51547
+ const w = S.text || "", y = w.replace(/[ \t\u00A0]+$/, "");
51548
+ if (y !== w) {
51549
+ const D = B - S.nodeSize;
51550
+ y.length > 0 ? o.replaceRangeWith(
51520
51551
  o.mapping.map(D),
51521
51552
  o.mapping.map(B),
51522
- r.text(S)
51553
+ r.text(y)
51523
51554
  ) : o.replace(o.mapping.map(D), o.mapping.map(B));
51524
51555
  } else
51525
51556
  break;
51526
- B -= w.nodeSize;
51557
+ B -= S.nodeSize;
51527
51558
  break;
51528
51559
  }
51529
51560
  }
@@ -51534,12 +51565,12 @@ const addEmptyLines = (A, e) => {
51534
51565
  let B = E.text || "";
51535
51566
  if (B.match(/^([ \t\u00A0]+)/) && !p && l !== h.type) {
51536
51567
  B = B.replace(/^[ \t\u00A0]+/, "");
51537
- const Q = d + f, w = Q + E.nodeSize;
51568
+ const Q = d + f, S = Q + E.nodeSize;
51538
51569
  B ? o.replaceRangeWith(
51539
51570
  o.mapping.map(Q),
51540
- o.mapping.map(w),
51571
+ o.mapping.map(S),
51541
51572
  r.text(B)
51542
- ) : o.replace(o.mapping.map(Q), o.mapping.map(w));
51573
+ ) : o.replace(o.mapping.map(Q), o.mapping.map(S));
51543
51574
  }
51544
51575
  B && (p = !0);
51545
51576
  }
@@ -52126,28 +52157,28 @@ function markActive(A, e) {
52126
52157
  function buildMenu(A, e) {
52127
52158
  function n(E, B) {
52128
52159
  let Q = {
52129
- active(w) {
52130
- return markActive(w, E);
52160
+ active(S) {
52161
+ return markActive(S, E);
52131
52162
  }
52132
52163
  };
52133
- for (let w in B)
52134
- Q[w] = B[w];
52164
+ for (let S in B)
52165
+ Q[S] = B[S];
52135
52166
  return cmdItem(A.commandFactories.toggleMark(E), Q);
52136
52167
  }
52137
52168
  function r(E, B) {
52138
52169
  let Q = {
52139
- run(w, y) {
52170
+ run(S, w) {
52140
52171
  return A.commandFactories.wrapIn(E, B.attrs)(
52141
- w,
52142
- y
52172
+ S,
52173
+ w
52143
52174
  );
52144
52175
  },
52145
- select(w) {
52146
- return A.commandFactories.wrapIn(E, B.attrs)(w);
52176
+ select(S) {
52177
+ return A.commandFactories.wrapIn(E, B.attrs)(S);
52147
52178
  }
52148
52179
  };
52149
- for (let w in B)
52150
- Q[w] = B[w];
52180
+ for (let S in B)
52181
+ Q[S] = B[S];
52151
52182
  return new MenuItem(Q);
52152
52183
  }
52153
52184
  function o(E, B) {
@@ -52157,19 +52188,19 @@ function buildMenu(A, e) {
52157
52188
  );
52158
52189
  }
52159
52190
  function s(E, B) {
52160
- let Q = A.commandFactories.setBlockType(E, B.attrs), w = {
52191
+ let Q = A.commandFactories.setBlockType(E, B.attrs), S = {
52161
52192
  run: Q,
52162
- enable(y) {
52163
- return Q(y);
52193
+ enable(w) {
52194
+ return Q(w);
52164
52195
  },
52165
- active(y) {
52166
- let { $from: S, to: D, node: _ } = y.selection;
52167
- return _ ? _.hasMarkup(E, B.attrs) : D <= S.end() && S.parent.hasMarkup(E, B.attrs);
52196
+ active(w) {
52197
+ let { $from: y, to: D, node: _ } = w.selection;
52198
+ return _ ? _.hasMarkup(E, B.attrs) : D <= y.end() && y.parent.hasMarkup(E, B.attrs);
52168
52199
  }
52169
52200
  };
52170
- for (let y in B)
52171
- w[y] = B[y];
52172
- return new MenuItem(w);
52201
+ for (let w in B)
52202
+ S[w] = B[w];
52203
+ return new MenuItem(S);
52173
52204
  }
52174
52205
  const a = [];
52175
52206
  a.push(
@@ -52182,15 +52213,15 @@ function buildMenu(A, e) {
52182
52213
  const Q = B.target.files?.[0];
52183
52214
  if (Q)
52184
52215
  try {
52185
- const w = await Q.arrayBuffer();
52186
- let y = Q.type;
52187
- if (!y || y === "") {
52188
- const S = Q.name.split(".").pop()?.toLowerCase();
52189
- S === "odt" ? y = "application/vnd.oasis.opendocument.text" : S === "md" && (y = "text/x-markdown");
52216
+ const S = await Q.arrayBuffer();
52217
+ let w = Q.type;
52218
+ if (!w || w === "") {
52219
+ const y = Q.name.split(".").pop()?.toLowerCase();
52220
+ y === "odt" ? w = "application/vnd.oasis.opendocument.text" : y === "md" && (w = "text/x-markdown");
52190
52221
  }
52191
- y ? await A.loadDocument(y, new Uint8Array(w)) : console.error("Could not determine file type for:", Q.name);
52192
- } catch (w) {
52193
- console.error("Failed to load document:", w);
52222
+ w ? await A.loadDocument(w, new Uint8Array(S)) : console.error("Could not determine file type for:", Q.name);
52223
+ } catch (S) {
52224
+ console.error("Failed to load document:", S);
52194
52225
  }
52195
52226
  }, E.click(), !0;
52196
52227
  },
@@ -52340,8 +52371,8 @@ function buildMenu(A, e) {
52340
52371
  }),
52341
52372
  title: new TextField({ label: "Title" })
52342
52373
  },
52343
- callback(w) {
52344
- A.commandFactories.toggleMark(E, w)(
52374
+ callback(S) {
52375
+ A.commandFactories.toggleMark(E, S)(
52345
52376
  A.view.state,
52346
52377
  A.view.dispatch
52347
52378
  ), A.view.focus();
@@ -52398,22 +52429,22 @@ function buildMenu(A, e) {
52398
52429
  icon: icons.image,
52399
52430
  enable: (B) => canInsert(B, E),
52400
52431
  run(B, Q) {
52401
- let { from: w, to: y } = B.selection, S = null;
52402
- return B.selection instanceof NodeSelection && B.selection.node.type == E && (S = B.selection.node.attrs), openPrompt({
52432
+ let { from: S, to: w } = B.selection, y = null;
52433
+ return B.selection instanceof NodeSelection && B.selection.node.type == E && (y = B.selection.node.attrs), openPrompt({
52403
52434
  title: "Insert image",
52404
52435
  fields: {
52405
52436
  src: new FileField({
52406
52437
  label: "Choose image",
52407
52438
  required: !0,
52408
- value: S && S.src
52439
+ value: y && y.src
52409
52440
  }),
52410
52441
  title: new TextField({
52411
52442
  label: "Title",
52412
- value: S && S.title
52443
+ value: y && y.title
52413
52444
  }),
52414
52445
  alt: new TextField({
52415
52446
  label: "Description",
52416
- value: S ? S.alt : B.doc.textBetween(w, y, " ")
52447
+ value: y ? y.alt : B.doc.textBetween(S, w, " ")
52417
52448
  })
52418
52449
  },
52419
52450
  callback(D) {
@@ -52436,10 +52467,10 @@ function buildMenu(A, e) {
52436
52467
  enable: (E) => A.can().setHorizontalRule().run()
52437
52468
  })
52438
52469
  ), e.nodes.table) {
52439
- const E = (Q, w) => new MenuItem({
52470
+ const E = (Q, S) => new MenuItem({
52440
52471
  label: Q,
52441
- enable: () => A.can()[w]().run(),
52442
- run: () => A.chain()[w]().run()
52472
+ enable: () => A.can()[S]().run(),
52473
+ run: () => A.chain()[S]().run()
52443
52474
  }), B = [
52444
52475
  E("Insert table", "insertTable"),
52445
52476
  E("Insert column before", "addColumnBefore"),
@@ -53908,12 +53939,12 @@ const convertCodeParagraphsToCodeBlocks = (A, e) => {
53908
53939
  else {
53909
53940
  const Q = B.attrs.odtMarginLeft || 0;
53910
53941
  if (c === 0 && (h = [], d = 0, g.length >= c))
53911
- for (let w = 0; w < g.length; w++)
53942
+ for (let S = 0; S < g.length; S++)
53912
53943
  d < g.length && Q > g[d] && (h[c + d] = g[d], d++);
53913
53944
  if (h[c + d] = Q, c++, u(B.children, I + m, p + 1), c--, c === 0 && !B.attrs.toc) {
53914
53945
  g = h;
53915
- for (let w = 0; w < d; w++) {
53916
- const y = o.create(
53946
+ for (let S = 0; S < d; S++) {
53947
+ const w = o.create(
53917
53948
  { type: "none" },
53918
53949
  s.create(
53919
53950
  null,
@@ -53926,7 +53957,7 @@ const convertCodeParagraphsToCodeBlocks = (A, e) => {
53926
53957
  l.replaceWith(
53927
53958
  l.mapping.map(I + m),
53928
53959
  l.mapping.map(I + m + B.nodeSize),
53929
- y
53960
+ w
53930
53961
  );
53931
53962
  }
53932
53963
  }
@@ -54237,18 +54268,18 @@ function computeMap(A) {
54237
54268
  });
54238
54269
  break;
54239
54270
  }
54240
- const w = o + Q * e;
54241
- for (let y = 0; y < m; y++) {
54242
- r[w + y] == 0 ? r[w + y] = h : (s || (s = [])).push({
54271
+ const S = o + Q * e;
54272
+ for (let w = 0; w < m; w++) {
54273
+ r[S + w] == 0 ? r[S + w] = h : (s || (s = [])).push({
54243
54274
  type: "collision",
54244
54275
  row: g,
54245
54276
  pos: h,
54246
- n: m - y
54277
+ n: m - w
54247
54278
  });
54248
- const S = B && B[y];
54249
- if (S) {
54250
- const D = (w + y) % e * 2, _ = a[D];
54251
- _ == null || _ != S && a[D + 1] == 1 ? (a[D] = S, a[D + 1] = 1) : _ == S && a[D + 1]++;
54279
+ const y = B && B[w];
54280
+ if (y) {
54281
+ const D = (S + w) % e * 2, _ = a[D];
54282
+ _ == null || _ != y && a[D + 1] == 1 ? (a[D] = y, a[D + 1] = 1) : _ == y && a[D + 1]++;
54252
54283
  }
54253
54284
  }
54254
54285
  }
@@ -56035,4 +56066,4 @@ export {
56035
56066
  indentUnit as y,
56036
56067
  languageDataProp as z
56037
56068
  };
56038
- //# sourceMappingURL=__vite-browser-external-xXy0EDny.js.map
56069
+ //# sourceMappingURL=__vite-browser-external-G8y_2tFq.js.map