@vscode/markdown-editor 0.0.2-74 → 0.0.2-76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { commands as zt } from "./commands.js";
2
2
  import { O as w, S as M, a as de, c as Es } from "./stringEdit-CVDbCUBY.js";
3
3
  import Cs from "katex";
4
- import { observableValue as C, derived as P, transaction as te, Disposable as H, runOnChange as qt, autorun as B, constObservable as yi } from "@vscode/observables";
5
- import { D as xi, f as Ei, a as Ci, b as Si, c as Li, d as Ss, i as We } from "./config-BGeaJqWk.js";
6
- import { e as Gl } from "./config-BGeaJqWk.js";
7
- import { parse as Mi, preprocess as Ti, postprocess as Oi } from "micromark";
8
- import { frontmatter as Ri } from "micromark-extension-frontmatter";
9
- import { math as Ni } from "micromark-extension-math";
10
- import { gfmTable as Ii } from "micromark-extension-gfm-table";
11
- import { gfmTaskListItem as Pi } from "micromark-extension-gfm-task-list-item";
12
- import { gfmStrikethrough as Bi } from "micromark-extension-gfm-strikethrough";
13
- import { createDiffComputer as Ai } from "@vscode/diff";
4
+ import { observableValue as C, derived as P, transaction as te, Disposable as H, runOnChange as qt, autorun as B, constObservable as xi } from "@vscode/observables";
5
+ import { D as Ei, f as Ci, a as Si, b as Li, c as Mi, d as Ss, i as We } from "./config-BGeaJqWk.js";
6
+ import { e as Yl } from "./config-BGeaJqWk.js";
7
+ import { parse as Ti, preprocess as Oi, postprocess as Ri } from "micromark";
8
+ import { frontmatter as Ni } from "micromark-extension-frontmatter";
9
+ import { math as Ii } from "micromark-extension-math";
10
+ import { gfmTable as Pi } from "micromark-extension-gfm-table";
11
+ import { gfmTaskListItem as Bi } from "micromark-extension-gfm-task-list-item";
12
+ import { gfmStrikethrough as Ai } from "micromark-extension-gfm-strikethrough";
13
+ import { createDiffComputer as Di } from "@vscode/diff";
14
14
  class Gt {
15
15
  constructor(e, t) {
16
16
  if (this.replaceRange = e, this.newLength = t, t < 0)
@@ -99,7 +99,7 @@ class k {
99
99
  return new k(this.anchor, e);
100
100
  }
101
101
  }
102
- class Di {
102
+ class Fi {
103
103
  constructor(e, t) {
104
104
  this.sourceOffsetBefore = e, this.sourceOffsetAfter = t;
105
105
  }
@@ -167,14 +167,14 @@ class S {
167
167
  return new S(this.x + e, this.y + t, this.width, this.height);
168
168
  }
169
169
  }
170
- let Fi = 1;
170
+ let Vi = 1;
171
171
  class U {
172
172
  /**
173
173
  * A stable identity. Every node has one: it is minted on construction and
174
174
  * carried across edits by reconciliation, so a node that survives an edit
175
175
  * (even with changed content) keeps the same id.
176
176
  */
177
- id = Fi++;
177
+ id = Vi++;
178
178
  _length = -1;
179
179
  get length() {
180
180
  if (this._length < 0) {
@@ -219,7 +219,7 @@ class U {
219
219
  return Object.assign(t, this), t.id = e, t;
220
220
  }
221
221
  }
222
- const Vi = [];
222
+ const $i = [];
223
223
  function D(n, e) {
224
224
  let t;
225
225
  for (let s = 0; s < e.length; s++) {
@@ -237,7 +237,7 @@ function re(n, e) {
237
237
  }
238
238
  class at extends U {
239
239
  get children() {
240
- return Vi;
240
+ return $i;
241
241
  }
242
242
  get length() {
243
243
  return this.content.length;
@@ -726,11 +726,11 @@ function ie(n, e) {
726
726
  t += s.length;
727
727
  }
728
728
  }
729
- const $i = /\[[ xX]\]/;
730
- function Hi(n) {
729
+ const Hi = /\[[ xX]\]/;
730
+ function Wi(n) {
731
731
  if (n.checked === void 0)
732
732
  return;
733
- const e = $i.exec(Ls(n));
733
+ const e = Hi.exec(Ls(n));
734
734
  if (e)
735
735
  return w.ofStartAndLength(e.index, e[0].length);
736
736
  }
@@ -742,19 +742,19 @@ function Ls(n) {
742
742
  e += Ls(t);
743
743
  return e;
744
744
  }
745
- function Wi(n) {
746
- const e = Mi({ extensions: [Ri(), Ni(), Ii(), Pi(), Bi()] }), t = Ti()(n, void 0, !0);
747
- return Oi(e.document().write(t)).map(([i, o]) => ({
745
+ function Ki(n) {
746
+ const e = Ti({ extensions: [Ni(), Ii(), Pi(), Bi(), Ai()] }), t = Oi()(n, void 0, !0);
747
+ return Ri(e.document().write(t)).map(([i, o]) => ({
748
748
  type: i,
749
749
  tokenType: o.type,
750
750
  startOffset: o.start.offset,
751
751
  endOffset: o.end.offset
752
752
  }));
753
753
  }
754
- function Ki(n) {
755
- return new Ui(Wi(n), n).build();
754
+ function zi(n) {
755
+ return new Xi(Ki(n), n).build();
756
756
  }
757
- const zi = /* @__PURE__ */ new Set([
757
+ const qi = /* @__PURE__ */ new Set([
758
758
  "htmlFlow",
759
759
  "setextHeading",
760
760
  "definition"
@@ -764,7 +764,7 @@ function Ke(n) {
764
764
  for (let t = 0; t < n.length; t++) {
765
765
  const s = n[t], i = n[t + 1];
766
766
  if (s instanceof W && s.glueKind === "indent") {
767
- const o = i !== void 0 ? qi(i, s) : void 0;
767
+ const o = i !== void 0 ? Gi(i, s) : void 0;
768
768
  if (o) {
769
769
  e.push(o), t++;
770
770
  continue;
@@ -781,7 +781,7 @@ function Ke(n) {
781
781
  }
782
782
  return e;
783
783
  }
784
- function qi(n, e) {
784
+ function Gi(n, e) {
785
785
  if (n instanceof q) {
786
786
  const t = n.content.findIndex((i) => i instanceof G);
787
787
  if (t < 0)
@@ -863,7 +863,7 @@ function vt(n, e) {
863
863
  }
864
864
  return [...n, e];
865
865
  }
866
- function Gi(n) {
866
+ function Ui(n) {
867
867
  return n.some((e) => !(e instanceof W)) ? n : [new se(n)];
868
868
  }
869
869
  class A {
@@ -892,7 +892,7 @@ class A {
892
892
  return i < o && r(i, o), s;
893
893
  }
894
894
  }
895
- class Ui {
895
+ class Xi {
896
896
  constructor(e, t) {
897
897
  this._events = e, this._source = t;
898
898
  }
@@ -914,7 +914,7 @@ class Ui {
914
914
  } else
915
915
  this._idx++;
916
916
  }
917
- return new Zt(Gi(ze(Ke(e.build(this._source.length)))));
917
+ return new Zt(Ui(ze(Ke(e.build(this._source.length)))));
918
918
  }
919
919
  _tryParseBlock() {
920
920
  switch (this._events[this._idx].tokenType) {
@@ -976,7 +976,7 @@ class Ui {
976
976
  */
977
977
  _tryParseUnhandled(e) {
978
978
  const t = this._events[this._idx], s = t.startOffset;
979
- if (s >= e && zi.has(t.tokenType))
979
+ if (s >= e && qi.has(t.tokenType))
980
980
  return { node: this._parseUnhandledBlock(), start: s };
981
981
  this._idx++;
982
982
  }
@@ -1471,7 +1471,7 @@ class Ts {
1471
1471
  return e - t;
1472
1472
  }
1473
1473
  }
1474
- class Xi {
1474
+ class Yi {
1475
1475
  _byRange = /* @__PURE__ */ new Map();
1476
1476
  _byId = /* @__PURE__ */ new Map();
1477
1477
  constructor(e) {
@@ -1509,45 +1509,45 @@ function Os(n, e, t, s, i) {
1509
1509
  }
1510
1510
  const l = t.getOriginalOffset(e), d = l !== void 0 ? s.lookupId(l, c.kind) : void 0;
1511
1511
  if (d && d.id !== c.id && (c = c.cloneWithId(d.id)), c instanceof Q && d instanceof Q && l !== void 0) {
1512
- const u = Yi(c, d, l, i);
1512
+ const u = ji(c, d, l, i);
1513
1513
  if (u)
1514
1514
  return u;
1515
1515
  }
1516
1516
  return c;
1517
1517
  }
1518
- function Yi(n, e, t, s) {
1518
+ function ji(n, e, t, s) {
1519
1519
  const i = e.code, o = n.code;
1520
1520
  if (!i || !o || n.infoString !== e.infoString || n.openFence?.content !== e.openFence?.content || n.closeFence?.content !== e.closeFence?.content)
1521
1521
  return;
1522
1522
  const r = t + e.codeOffset, c = r + i.length;
1523
- if (!ji(s, r, c))
1523
+ if (!Qi(s, r, c))
1524
1524
  return;
1525
- const a = Qi(s, -r);
1525
+ const a = Zi(s, -r);
1526
1526
  if (a.apply(i.content) === o.content)
1527
1527
  return n.withCodeDiff(e, a);
1528
1528
  }
1529
- function ji(n, e, t) {
1529
+ function Qi(n, e, t) {
1530
1530
  for (const s of n.replacements)
1531
1531
  if (s.replaceRange.start < e || s.replaceRange.endExclusive > t)
1532
1532
  return !1;
1533
1533
  return !0;
1534
1534
  }
1535
- function Qi(n, e) {
1535
+ function Zi(n, e) {
1536
1536
  return new M(n.replacements.map((t) => de.replace(t.replaceRange.delta(e), t.newText)));
1537
1537
  }
1538
- function Zi(n, e, t) {
1539
- return Os(n, 0, new Ts(t), new Xi(e), t);
1540
- }
1541
1538
  function Ji(n, e, t) {
1542
- const s = Ki(n);
1543
- return !e || !t ? s : Zi(s, e, t);
1539
+ return Os(n, 0, new Ts(t), new Yi(e), t);
1540
+ }
1541
+ function eo(n, e, t) {
1542
+ const s = zi(n);
1543
+ return !e || !t ? s : Ji(s, e, t);
1544
1544
  }
1545
- class eo {
1545
+ class to {
1546
1546
  parse(e, t, s) {
1547
- return Ji(e.value, t, s);
1547
+ return eo(e.value, t, s);
1548
1548
  }
1549
1549
  }
1550
- function to(n, e, t = 0) {
1550
+ function no(n, e, t = 0) {
1551
1551
  if (n.children.length === 0) {
1552
1552
  const o = Rs(e.substring(t, t + n.length));
1553
1553
  if (n instanceof Re)
@@ -1557,7 +1557,7 @@ function to(n, e, t = 0) {
1557
1557
  }
1558
1558
  let s = "", i = t;
1559
1559
  for (const o of n.children)
1560
- s += to(o, e, i), i += o.length;
1560
+ s += no(o, e, i), i += o.length;
1561
1561
  return `<${n.kind}${dn(n)}>${s}</${n.kind}>`;
1562
1562
  }
1563
1563
  function dn(n) {
@@ -1567,25 +1567,25 @@ function dn(n) {
1567
1567
  function Rs(n) {
1568
1568
  return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1569
1569
  }
1570
- function no(n) {
1570
+ function so(n) {
1571
1571
  return n instanceof Re ? `text ${JSON.stringify(n.content)}` : n instanceof W ? `glue${n.glueKind ? `(${n.glueKind})` : ""} ${JSON.stringify(n.content)}` : n instanceof y ? `marker(${n.markerKind}) ${JSON.stringify(n.content)}` : n instanceof ve ? `thematicBreak ${JSON.stringify(n.content)}` : n instanceof ge ? `heading(level=${n.level})` : n instanceof q ? `list(ordered=${n.ordered})` : n instanceof G ? n.checked === void 0 ? "listItem" : `listItem(checked=${n.checked})` : n instanceof Q ? `codeBlock(language=${JSON.stringify(n.language)})` : n instanceof we ? "mathBlock" : n instanceof Ae ? `link(url=${JSON.stringify(n.url)})` : n instanceof De ? `image(alt=${JSON.stringify(n.alt)}, url=${JSON.stringify(n.url)})` : n.kind;
1572
1572
  }
1573
1573
  const hn = /* @__PURE__ */ new WeakMap();
1574
- let so = 0;
1575
- function io(n) {
1574
+ let io = 0;
1575
+ function oo(n) {
1576
1576
  let e = hn.get(n);
1577
- return e === void 0 && (e = so++, hn.set(n, e)), e;
1577
+ return e === void 0 && (e = io++, hn.set(n, e)), e;
1578
1578
  }
1579
- function Rl(n, e) {
1579
+ function Pl(n, e) {
1580
1580
  let t = 0;
1581
1581
  function s(i) {
1582
1582
  const o = t, r = i.children;
1583
1583
  let c;
1584
- return r.length === 0 ? t += i.length : c = r.map(s), { label: `${no(i)} #${io(i)} nid=${i.id}`, range: [o, t], children: c };
1584
+ return r.length === 0 ? t += i.length : c = r.map(s), { label: `${so(i)} #${oo(i)} nid=${i.id}`, range: [o, t], children: c };
1585
1585
  }
1586
1586
  return { $fileExtension: "ast.w", source: e, root: s(n) };
1587
1587
  }
1588
- function oo(n) {
1588
+ function ro(n) {
1589
1589
  let e = 0;
1590
1590
  const t = [];
1591
1591
  for (const s of n.replacements) {
@@ -1597,33 +1597,33 @@ function oo(n) {
1597
1597
  }
1598
1598
  return t;
1599
1599
  }
1600
- const ro = {}, Ns = C(ro, !1), co = Ns;
1600
+ const co = {}, Ns = C(co, !1), ao = Ns;
1601
1601
  let Rt, wt;
1602
- function ao() {
1603
- return wt || (wt = Ai({ useWasm: !1 }).then((n) => {
1602
+ function lo() {
1603
+ return wt || (wt = Di({ useWasm: !1 }).then((n) => {
1604
1604
  Rt = n, Ns.set(!0, void 0);
1605
1605
  }).catch(() => {
1606
1606
  })), wt;
1607
1607
  }
1608
- ao();
1609
- function lo(n, e) {
1608
+ lo();
1609
+ function ho(n, e) {
1610
1610
  if (!Rt)
1611
1611
  throw new Error("Diff computer not loaded yet — await ensureDiffComputer() / observe diffComputerReady first.");
1612
1612
  const t = Rt.computeDiff(n, e, { extendToSubwords: !0 });
1613
- return ho(t.edits.stripData());
1613
+ return uo(t.edits.stripData());
1614
1614
  }
1615
- function ho(n) {
1615
+ function uo(n) {
1616
1616
  return new M(n.replacements.map((e) => de.replace(new w(e.range.start, e.range.endExclusive), e.newText)));
1617
1617
  }
1618
- const uo = /* @__PURE__ */ new Set([
1618
+ const fo = /* @__PURE__ */ new Set([
1619
1619
  "document",
1620
1620
  "list",
1621
1621
  "blockQuote",
1622
1622
  "table",
1623
1623
  "tableRow"
1624
- ]), fo = /* @__PURE__ */ new Set(["glue", "marker"]);
1625
- function mo(n, e, t) {
1626
- const s = new Ts(t), i = oo(t);
1624
+ ]), mo = /* @__PURE__ */ new Set(["glue", "marker"]);
1625
+ function go(n, e, t) {
1626
+ const s = new Ts(t), i = ro(t);
1627
1627
  return Is(n, 0, e, 0, s, i);
1628
1628
  }
1629
1629
  function Is(n, e, t, s, i, o) {
@@ -1634,7 +1634,7 @@ function Is(n, e, t, s, i, o) {
1634
1634
  for (; l < r.length && h !== void 0 && r[l].start + r[l].node.length <= h; )
1635
1635
  a.push(fn(r[l], o)), l++;
1636
1636
  const f = l < r.length ? r[l] : void 0, m = f ? w.ofStartAndLength(f.start, f.node.length) : void 0, g = i.getOriginalRange(u);
1637
- g && m && g.equals(m) ? (a.push({ kind: "unchanged", node: d.node, modifiedStart: d.start }), l++) : f && m && f.node.kind === d.node.kind && h !== void 0 && m.contains(h) ? (l++, uo.has(d.node.kind) ? a.push({
1637
+ g && m && g.equals(m) ? (a.push({ kind: "unchanged", node: d.node, modifiedStart: d.start }), l++) : f && m && f.node.kind === d.node.kind && h !== void 0 && m.contains(h) ? (l++, fo.has(d.node.kind) ? a.push({
1638
1638
  kind: "nested",
1639
1639
  original: f.node,
1640
1640
  originalStart: f.start,
@@ -1649,7 +1649,7 @@ function Is(n, e, t, s, i, o) {
1649
1649
  modifiedStart: d.start,
1650
1650
  insertedLocal: tt(u, d.start, o, "modified", "inserted"),
1651
1651
  deletedLocal: tt(m, f.start, o, "original", "deleted")
1652
- })) : a.push(go(d, o));
1652
+ })) : a.push(po(d, o));
1653
1653
  }
1654
1654
  for (; l < r.length; )
1655
1655
  a.push(fn(r[l], o)), l++;
@@ -1659,10 +1659,10 @@ function un(n, e) {
1659
1659
  const t = [];
1660
1660
  let s = e;
1661
1661
  for (const i of n.children)
1662
- fo.has(i.kind) || t.push({ node: i, start: s }), s += i.length;
1662
+ mo.has(i.kind) || t.push({ node: i, start: s }), s += i.length;
1663
1663
  return t;
1664
1664
  }
1665
- function go(n, e) {
1665
+ function po(n, e) {
1666
1666
  const t = w.ofStartAndLength(n.start, n.node.length);
1667
1667
  let s = tt(t, n.start, e, "modified", "inserted");
1668
1668
  return s.length === 0 && (s = [{ range: w.ofLength(n.node.length), kind: "inserted" }]), { kind: "added", node: n.node, modifiedStart: n.start, insertedLocal: s };
@@ -1680,9 +1680,9 @@ function tt(n, e, t, s, i) {
1680
1680
  }
1681
1681
  return o;
1682
1682
  }
1683
- const po = Symbol("NO_ACTIVE_BLOCKS");
1684
- class Nl {
1685
- _parser = new eo();
1683
+ const _o = Symbol("NO_ACTIVE_BLOCKS");
1684
+ class Bl {
1685
+ _parser = new to();
1686
1686
  _sourceEditListeners = /* @__PURE__ */ new Set();
1687
1687
  _sourceTextIds = /* @__PURE__ */ new WeakMap();
1688
1688
  _lastSourceTextId = 0;
@@ -1694,7 +1694,7 @@ class Nl {
1694
1694
  */
1695
1695
  _pendingEdit;
1696
1696
  sourceText = C(this, new ln(""));
1697
- wordNavigationConfig = C(this, xi);
1697
+ wordNavigationConfig = C(this, Ei);
1698
1698
  /**
1699
1699
  * Read-only mode. When `true`, the editor never reveals a block's source
1700
1700
  * markers (markdown special characters like `**`, `#`, list bullets, code
@@ -1800,7 +1800,7 @@ class Nl {
1800
1800
  if (e.readObservable(this.pendingParagraph) !== void 0)
1801
1801
  return /* @__PURE__ */ new Set();
1802
1802
  const t = e.readObservable(this.activeBlocksOverride);
1803
- if (t === po)
1803
+ if (t === _o)
1804
1804
  return /* @__PURE__ */ new Set();
1805
1805
  if (t !== void 0)
1806
1806
  return new Set(t);
@@ -1826,9 +1826,9 @@ class Nl {
1826
1826
  */
1827
1827
  diff = P(this, (e) => {
1828
1828
  const t = e.readObservable(this._baselineDocument), s = e.readObservable(this.baseline);
1829
- if (!t || !s || !e.readObservable(co))
1829
+ if (!t || !s || !e.readObservable(ao))
1830
1830
  return;
1831
- const i = e.readObservable(this.document), o = e.readObservable(this.sourceText), r = lo(s.value, o.value), c = mo(t, i, r), a = [], l = (u, h) => {
1831
+ const i = e.readObservable(this.document), o = e.readObservable(this.sourceText), r = ho(s.value, o.value), c = go(t, i, r), a = [], l = (u, h) => {
1832
1832
  for (const f of u)
1833
1833
  if (f.kind === "replaced")
1834
1834
  for (const m of f.insertedLocal)
@@ -1866,7 +1866,7 @@ class Nl {
1866
1866
  this.pendingParagraph.set({
1867
1867
  ...e,
1868
1868
  text: "",
1869
- cursorLine: new Di(e.replaceRange.start, e.replaceRange.endExclusive),
1869
+ cursorLine: new Fi(e.replaceRange.start, e.replaceRange.endExclusive),
1870
1870
  syntheticAst: new se([])
1871
1871
  }, t), this.selectionSource.set("user", t), this.selection.set(k.collapsed(e.replaceRange.start), t);
1872
1872
  });
@@ -1920,7 +1920,7 @@ class Nl {
1920
1920
  setTaskCheckboxChecked(e, t) {
1921
1921
  if (e.checked === t)
1922
1922
  return;
1923
- const s = ie(this.document.get(), e), i = Hi(e);
1923
+ const s = ie(this.document.get(), e), i = Wi(e);
1924
1924
  if (s === void 0 || i === void 0)
1925
1925
  return;
1926
1926
  const o = M.replace(i.delta(s), t ? "[x]" : "[ ]");
@@ -1993,7 +1993,7 @@ class Fe {
1993
1993
  }
1994
1994
  static EMPTY = new Fe([]);
1995
1995
  static measure(e, t, s = t.capture()) {
1996
- return wo(e, t, s);
1996
+ return bo(e, t, s);
1997
1997
  }
1998
1998
  /** Lines backed by source ranges, excluding source-less cursor lines. */
1999
1999
  sourceLines;
@@ -2246,7 +2246,7 @@ class _e {
2246
2246
  return e < this.sourceStart ? this.sourceStart - e : e > this.sourceEndExclusive ? e - this.sourceEndExclusive : 0;
2247
2247
  }
2248
2248
  xAtOffset(e) {
2249
- return this.sourceLength === 0 || e <= this.sourceStart ? this.rect.left : this.source ? _o(
2249
+ return this.sourceLength === 0 || e <= this.sourceStart ? this.rect.left : this.source ? vo(
2250
2250
  this.source.textNode,
2251
2251
  this.source.textNodeStart + (e - this.sourceStart),
2252
2252
  this.rect.left,
@@ -2257,7 +2257,7 @@ class _e {
2257
2257
  if (this.rect.width <= 0)
2258
2258
  return this.sourceStart;
2259
2259
  if (this.source) {
2260
- const s = vo(
2260
+ const s = wo(
2261
2261
  this.source.textNode,
2262
2262
  this.source.textNodeStart,
2263
2263
  this.source.textNodeStart + this.sourceLength,
@@ -2270,7 +2270,7 @@ class _e {
2270
2270
  return e < t ? this.sourceStart : this.sourceEndExclusive;
2271
2271
  }
2272
2272
  }
2273
- function _o(n, e, t, s) {
2273
+ function vo(n, e, t, s) {
2274
2274
  if (e <= 0)
2275
2275
  return t;
2276
2276
  const i = document.createRange();
@@ -2278,7 +2278,7 @@ function _o(n, e, t, s) {
2278
2278
  const o = i.getBoundingClientRect();
2279
2279
  return o.width === 0 && o.height === 0 ? t : s.capture().toLocalRect(o).right;
2280
2280
  }
2281
- function vo(n, e, t, s, i) {
2281
+ function wo(n, e, t, s, i) {
2282
2282
  const o = document.createRange(), r = i.capture();
2283
2283
  let c = e, a = 1 / 0;
2284
2284
  for (let l = e; l < t; l++) {
@@ -2292,7 +2292,7 @@ function vo(n, e, t, s, i) {
2292
2292
  }
2293
2293
  return c;
2294
2294
  }
2295
- function wo(n, e, t) {
2295
+ function bo(n, e, t) {
2296
2296
  const s = [];
2297
2297
  for (const u of n) {
2298
2298
  const h = s.length;
@@ -2305,7 +2305,7 @@ function wo(n, e, t) {
2305
2305
  const p = _.getClientRects();
2306
2306
  if (p.length === 0)
2307
2307
  return;
2308
- const v = bo(Array.from(p, (b) => t.toLocalRect(b))), E = yo(g.parentElement);
2308
+ const v = ko(Array.from(p, (b) => t.toLocalRect(b))), E = xo(g.parentElement);
2309
2309
  if (f.sourceLength === 0) {
2310
2310
  s.push(_e.visualLineAnchor(
2311
2311
  m,
@@ -2320,7 +2320,7 @@ function wo(n, e, t) {
2320
2320
  { textNode: g, textNodeStart: 0, coordinateSpace: e }
2321
2321
  ));
2322
2322
  else {
2323
- const b = ko(g, v, t);
2323
+ const b = yo(g, v, t);
2324
2324
  for (let x = 0; x < v.length; x++) {
2325
2325
  const T = x === 0 ? 0 : b[x - 1], V = x < b.length ? b[x] : g.length;
2326
2326
  s.push(new _e(
@@ -2330,7 +2330,7 @@ function wo(n, e, t) {
2330
2330
  ));
2331
2331
  }
2332
2332
  }
2333
- }), s.length === h && xo(s, u.viewNode, u.absoluteStart, t);
2333
+ }), s.length === h && Eo(s, u.viewNode, u.absoluteStart, t);
2334
2334
  }
2335
2335
  s.sort((u, h) => u.rect.y - h.rect.y || u.rect.x - h.rect.x);
2336
2336
  const i = [];
@@ -2350,7 +2350,7 @@ function wo(n, e, t) {
2350
2350
  }
2351
2351
  return d(), new Fe(i);
2352
2352
  }
2353
- function bo(n) {
2353
+ function ko(n) {
2354
2354
  const e = [];
2355
2355
  for (const t of n) {
2356
2356
  const s = e[e.length - 1];
@@ -2370,7 +2370,7 @@ function bo(n) {
2370
2370
  function Bs(n, e) {
2371
2371
  return Math.min(n.bottom, e.bottom) - Math.max(n.top, e.top) > Math.min(n.height, e.height) / 2;
2372
2372
  }
2373
- function ko(n, e, t) {
2373
+ function yo(n, e, t) {
2374
2374
  const s = [], i = document.createRange();
2375
2375
  for (let o = 0; o < e.length - 1; o++) {
2376
2376
  const r = e[o + 1].y;
@@ -2383,7 +2383,7 @@ function ko(n, e, t) {
2383
2383
  }
2384
2384
  return s;
2385
2385
  }
2386
- function yo(n) {
2386
+ function xo(n) {
2387
2387
  if (!n)
2388
2388
  return 0;
2389
2389
  const e = getComputedStyle(n);
@@ -2396,7 +2396,7 @@ function bt(n, e) {
2396
2396
  const t = (e - n.height) / 2;
2397
2397
  return S.fromPointSize(n.x, n.y - t, n.width, e);
2398
2398
  }
2399
- function xo(n, e, t, s) {
2399
+ function Eo(n, e, t, s) {
2400
2400
  const i = e.dom;
2401
2401
  if (i.nodeType !== 1)
2402
2402
  return;
@@ -2409,7 +2409,7 @@ function xo(n, e, t, s) {
2409
2409
  S.fromPointSize(r.x, r.y, r.width, r.height)
2410
2410
  ));
2411
2411
  }
2412
- class Eo {
2412
+ class Co {
2413
2413
  _measurements = C(this, []);
2414
2414
  measurements = this._measurements;
2415
2415
  _virtualLines = C(this, []);
@@ -2436,7 +2436,7 @@ class Eo {
2436
2436
  });
2437
2437
  }
2438
2438
  }
2439
- const mn = /* @__PURE__ */ new WeakMap(), Co = 64;
2439
+ const mn = /* @__PURE__ */ new WeakMap(), So = 64;
2440
2440
  function Me(n, e, t, s) {
2441
2441
  const i = s === "right" ? t + 1 : t - 1;
2442
2442
  return ce(n, e, t, i, s);
@@ -2445,14 +2445,14 @@ function ce(n, e, t, s, i, o = !0) {
2445
2445
  s = Math.min(Math.max(s, 0), n.length);
2446
2446
  const r = As(n, e, t);
2447
2447
  if (i === "right")
2448
- for (let c = Mo(r, s); c < r.length; c++) {
2448
+ for (let c = To(r, s); c < r.length; c++) {
2449
2449
  const a = r[c];
2450
2450
  if (a.start > s)
2451
2451
  break;
2452
2452
  (a.contains(s) || o && a.start === s) && (s = a.endExclusive);
2453
2453
  }
2454
2454
  else
2455
- for (let c = To(r, s); c >= 0; c--) {
2455
+ for (let c = Oo(r, s); c >= 0; c--) {
2456
2456
  const a = r[c];
2457
2457
  if (a.endExclusive < s)
2458
2458
  break;
@@ -2461,7 +2461,7 @@ function ce(n, e, t, s, i, o = !0) {
2461
2461
  return s;
2462
2462
  }
2463
2463
  function As(n, e, t) {
2464
- const s = So(n), i = Lo(s, e, t), o = s.rangesByVisibilityKey.get(i);
2464
+ const s = Lo(n), i = Mo(s, e, t), o = s.rangesByVisibilityKey.get(i);
2465
2465
  if (o)
2466
2466
  return s.rangesByVisibilityKey.delete(i), s.rangesByVisibilityKey.set(i, o), o;
2467
2467
  const r = [];
@@ -2469,14 +2469,14 @@ function As(n, e, t) {
2469
2469
  if (!e.has(c.block))
2470
2470
  r.push(...c.hiddenRanges);
2471
2471
  else if (c.block.kind === "list")
2472
- for (const a of Oo(
2472
+ for (const a of Ro(
2473
2473
  c.block,
2474
2474
  dt(c.block, t - c.start)
2475
2475
  ))
2476
2476
  r.push(a.delta(c.start));
2477
- return s.rangesByVisibilityKey.set(i, r), s.rangesByVisibilityKey.size > Co && s.rangesByVisibilityKey.delete(s.rangesByVisibilityKey.keys().next().value), r;
2477
+ return s.rangesByVisibilityKey.set(i, r), s.rangesByVisibilityKey.size > So && s.rangesByVisibilityKey.delete(s.rangesByVisibilityKey.keys().next().value), r;
2478
2478
  }
2479
- function So(n) {
2479
+ function Lo(n) {
2480
2480
  let e = mn.get(n);
2481
2481
  if (e)
2482
2482
  return e;
@@ -2488,7 +2488,7 @@ function So(n) {
2488
2488
  block: c,
2489
2489
  index: s.length,
2490
2490
  start: o,
2491
- hiddenRanges: Ro(c).map((l) => l.delta(o))
2491
+ hiddenRanges: No(c).map((l) => l.delta(o))
2492
2492
  };
2493
2493
  s.push(a), i.set(c, a);
2494
2494
  }
@@ -2496,7 +2496,7 @@ function So(n) {
2496
2496
  }
2497
2497
  return e = { entries: s, entryByBlock: i, rangesByVisibilityKey: /* @__PURE__ */ new Map() }, mn.set(n, e), e;
2498
2498
  }
2499
- function Lo(n, e, t) {
2499
+ function Mo(n, e, t) {
2500
2500
  const s = [];
2501
2501
  for (const i of e) {
2502
2502
  const o = n.entryByBlock.get(i);
@@ -2507,7 +2507,7 @@ function Lo(n, e, t) {
2507
2507
  }
2508
2508
  return s.sort(), s.join(",");
2509
2509
  }
2510
- function Mo(n, e) {
2510
+ function To(n, e) {
2511
2511
  let t = 0, s = n.length;
2512
2512
  for (; t < s; ) {
2513
2513
  const i = t + s >>> 1;
@@ -2515,7 +2515,7 @@ function Mo(n, e) {
2515
2515
  }
2516
2516
  return t;
2517
2517
  }
2518
- function To(n, e) {
2518
+ function Oo(n, e) {
2519
2519
  let t = 0, s = n.length;
2520
2520
  for (; t < s; ) {
2521
2521
  const i = t + s >>> 1;
@@ -2536,7 +2536,7 @@ function dt(n, e) {
2536
2536
  }
2537
2537
  return s;
2538
2538
  }
2539
- function Oo(n, e) {
2539
+ function Ro(n, e) {
2540
2540
  const t = [];
2541
2541
  let s = 0;
2542
2542
  for (const i of n.children) {
@@ -2549,7 +2549,7 @@ function Oo(n, e) {
2549
2549
  }
2550
2550
  return t.sort((i, o) => i.start - o.start), t;
2551
2551
  }
2552
- function Ro(n) {
2552
+ function No(n) {
2553
2553
  const e = [];
2554
2554
  return en(n, 0, e), e.sort((t, s) => t.start - s.start), e;
2555
2555
  }
@@ -2587,43 +2587,43 @@ function en(n, e, t) {
2587
2587
  for (const i of n.children)
2588
2588
  en(i, s, t), s += i.length;
2589
2589
  }
2590
- const No = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "after", "right") : n.selection.isCollapsed ? N.source(Me(
2590
+ const Io = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "after", "right") : n.selection.isCollapsed ? N.source(Me(
2591
2591
  n.document,
2592
2592
  n.markerVisibleBlocks,
2593
2593
  n.selection.active,
2594
2594
  "right"
2595
- )) : N.source(n.selection.range.endExclusive), Io = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "before", "left") : n.selection.isCollapsed ? N.source(Me(
2595
+ )) : N.source(n.selection.range.endExclusive), Po = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "before", "left") : n.selection.isCollapsed ? N.source(Me(
2596
2596
  n.document,
2597
2597
  n.markerVisibleBlocks,
2598
2598
  n.selection.active,
2599
2599
  "left"
2600
- )) : N.source(n.selection.range.start), Po = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "after", "right") : N.source(Me(
2600
+ )) : N.source(n.selection.range.start), Bo = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "after", "right") : N.source(Me(
2601
2601
  n.document,
2602
2602
  n.markerVisibleBlocks,
2603
2603
  n.selection.active,
2604
2604
  "right"
2605
- )), Bo = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "before", "left") : N.source(Me(
2605
+ )), Ao = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.line, "before", "left") : N.source(Me(
2606
2606
  n.document,
2607
2607
  n.markerVisibleBlocks,
2608
2608
  n.selection.active,
2609
2609
  "left"
2610
- )), Ao = (n) => {
2610
+ )), Do = (n) => {
2611
2611
  const e = n.cursorPosition.kind === "virtual" ? n.cursorPosition.line.sourceOffsetAfter : n.selection.active;
2612
2612
  return N.source(ce(
2613
2613
  n.document,
2614
2614
  n.markerVisibleBlocks,
2615
2615
  n.selection.active,
2616
- Ci(n.text, e, n.wordNavigationConfig),
2616
+ Si(n.text, e, n.wordNavigationConfig),
2617
2617
  "right",
2618
2618
  !1
2619
2619
  ));
2620
- }, Do = (n) => {
2620
+ }, Fo = (n) => {
2621
2621
  const e = n.cursorPosition.kind === "virtual" ? n.cursorPosition.line.sourceOffsetBefore : n.selection.active;
2622
2622
  return N.source(ce(
2623
2623
  n.document,
2624
2624
  n.markerVisibleBlocks,
2625
2625
  n.selection.active,
2626
- Ei(n.text, e, n.wordNavigationConfig),
2626
+ Ci(n.text, e, n.wordNavigationConfig),
2627
2627
  "left",
2628
2628
  !1
2629
2629
  ));
@@ -2646,19 +2646,19 @@ const No = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.l
2646
2646
  e === -1 ? n.text.length : e,
2647
2647
  "left"
2648
2648
  ));
2649
- }, Fo = (n) => N.source(ce(
2649
+ }, Vo = (n) => N.source(ce(
2650
2650
  n.document,
2651
2651
  n.markerVisibleBlocks,
2652
2652
  n.selection.active,
2653
2653
  0,
2654
2654
  "right"
2655
- )), Vo = (n) => N.source(ce(
2655
+ )), $o = (n) => N.source(ce(
2656
2656
  n.document,
2657
2657
  n.markerVisibleBlocks,
2658
2658
  n.selection.active,
2659
2659
  n.text.length,
2660
2660
  "left"
2661
- )), $o = (n) => {
2661
+ )), Ho = (n) => {
2662
2662
  if (n.cursorPosition.kind === "virtual")
2663
2663
  return { position: n.cursorPosition, desiredColumn: void 0 };
2664
2664
  const e = n.lineMap.lineIndexOfPosition(n.cursorPosition);
@@ -2686,7 +2686,7 @@ const No = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.l
2686
2686
  )),
2687
2687
  desiredColumn: void 0
2688
2688
  };
2689
- }, Ho = (n) => {
2689
+ }, Wo = (n) => {
2690
2690
  if (n.cursorPosition.kind === "virtual")
2691
2691
  return { position: n.cursorPosition, desiredColumn: void 0 };
2692
2692
  const e = n.lineMap.lineIndexOfPosition(n.cursorPosition);
@@ -2703,16 +2703,16 @@ const No = (n) => n.cursorPosition.kind === "virtual" ? ht(n, n.cursorPosition.l
2703
2703
  )),
2704
2704
  desiredColumn: void 0
2705
2705
  };
2706
- }, Wo = (n) => {
2706
+ }, Ko = (n) => {
2707
2707
  const e = n.lineMap.lineIndexOfPosition(n.cursorPosition);
2708
2708
  if (e === void 0)
2709
- return zo(n);
2709
+ return qo(n);
2710
2710
  const t = n.desiredColumn ?? n.lineMap.xAtPosition(n.cursorPosition);
2711
2711
  return e >= n.lineMap.lineCount - 1 ? { position: n.cursorPosition, desiredColumn: t } : { position: n.lineMap.positionInLineAtX(e + 1, t), desiredColumn: t };
2712
2712
  }, gn = (n) => {
2713
2713
  const e = n.lineMap.lineIndexOfPosition(n.cursorPosition);
2714
2714
  if (e === void 0)
2715
- return Ko(n);
2715
+ return zo(n);
2716
2716
  if (n.cursorPosition.kind === "virtual" && e > 0)
2717
2717
  return Ds(n, e - 1);
2718
2718
  const t = n.desiredColumn ?? n.lineMap.xAtPosition(n.cursorPosition);
@@ -2728,13 +2728,13 @@ function ht(n, e, t, s) {
2728
2728
  s
2729
2729
  ));
2730
2730
  }
2731
- function Ko(n) {
2731
+ function zo(n) {
2732
2732
  if (n.cursorPosition.kind !== "virtual" || n.lineMap.isEmpty)
2733
2733
  return { position: n.cursorPosition, desiredColumn: n.desiredColumn };
2734
2734
  const e = n.lineMap.lineIndexOfOffset(n.cursorPosition.line.sourceOffsetBefore);
2735
2735
  return Ds(n, e);
2736
2736
  }
2737
- function zo(n) {
2737
+ function qo(n) {
2738
2738
  if (n.cursorPosition.kind !== "virtual" || n.lineMap.isEmpty)
2739
2739
  return { position: n.cursorPosition, desiredColumn: n.desiredColumn };
2740
2740
  const e = n.lineMap.lineIndexOfOffset(n.cursorPosition.line.sourceOffsetBefore), t = n.desiredColumn ?? n.lineMap.lineRect(e).left;
@@ -2767,7 +2767,7 @@ const Ve = {
2767
2767
  edit: M.delete(t),
2768
2768
  selection: k.collapsed(t.start)
2769
2769
  };
2770
- }, qo = (n) => {
2770
+ }, Go = (n) => {
2771
2771
  const e = n.selection;
2772
2772
  if (!e.isCollapsed)
2773
2773
  return {
@@ -2781,7 +2781,7 @@ const Ve = {
2781
2781
  edit: M.delete(t),
2782
2782
  selection: k.collapsed(t.start)
2783
2783
  };
2784
- }, Go = (n) => {
2784
+ }, Uo = (n) => {
2785
2785
  const e = n.selection;
2786
2786
  if (!e.isCollapsed)
2787
2787
  return {
@@ -2790,13 +2790,13 @@ const Ve = {
2790
2790
  };
2791
2791
  if (e.active === 0)
2792
2792
  return;
2793
- const t = Si(n.text, e.active, n.wordNavigationConfig), s = new w(t, e.active), i = ut(n, s);
2793
+ const t = Li(n.text, e.active, n.wordNavigationConfig), s = new w(t, e.active), i = ut(n, s);
2794
2794
  if (!i.isEmpty)
2795
2795
  return {
2796
2796
  edit: i,
2797
2797
  selection: k.collapsed(i.mapOffset(t))
2798
2798
  };
2799
- }, Uo = (n) => {
2799
+ }, Xo = (n) => {
2800
2800
  const e = n.selection;
2801
2801
  if (!e.isCollapsed)
2802
2802
  return {
@@ -2805,13 +2805,13 @@ const Ve = {
2805
2805
  };
2806
2806
  if (e.active >= n.text.length)
2807
2807
  return;
2808
- const t = Li(n.text, e.active, n.wordNavigationConfig), s = new w(e.active, t), i = ut(n, s);
2808
+ const t = Mi(n.text, e.active, n.wordNavigationConfig), s = new w(e.active, t), i = ut(n, s);
2809
2809
  if (!i.isEmpty)
2810
2810
  return {
2811
2811
  edit: i,
2812
2812
  selection: k.collapsed(i.mapOffset(e.active))
2813
2813
  };
2814
- }, Xo = (n) => {
2814
+ }, Yo = (n) => {
2815
2815
  const e = n.selection;
2816
2816
  if (!e.isCollapsed)
2817
2817
  return {
@@ -2830,7 +2830,7 @@ const Ve = {
2830
2830
  edit: s,
2831
2831
  selection: k.collapsed(s.mapOffset(t))
2832
2832
  };
2833
- }, Yo = (n) => {
2833
+ }, jo = (n) => {
2834
2834
  const e = n.selection;
2835
2835
  if (!e.isCollapsed)
2836
2836
  return {
@@ -2863,7 +2863,7 @@ function ut(n, e) {
2863
2863
  }
2864
2864
  return s < e.endExclusive && t.push(de.delete(new w(s, e.endExclusive))), t.length === 0 ? M.empty : new M(t);
2865
2865
  }
2866
- function jo(n) {
2866
+ function Qo(n) {
2867
2867
  return (e) => {
2868
2868
  const t = M.replace(e.selection.range, n), s = e.selection.range.start + n.length;
2869
2869
  return {
@@ -2872,7 +2872,7 @@ function jo(n) {
2872
2872
  };
2873
2873
  };
2874
2874
  }
2875
- function Qo(n = Ve) {
2875
+ function Zo(n = Ve) {
2876
2876
  return ft(n), (e) => {
2877
2877
  const t = e.selection, s = t.range, i = z(e.text, s.start), o = _n(e.text, s.start), c = s.endExclusive <= o && (s.start !== i || s.endExclusive !== o), a = t.isCollapsed ? zs(e.document, e.text, t.active) : void 0, l = a ? ie(e.document, a.item) : void 0, d = a ? ie(e.document, a.item.marker) : void 0;
2878
2878
  if (a && l !== void 0 && d !== void 0 && z(e.text, d) === i) {
@@ -2900,14 +2900,14 @@ function Qo(n = Ve) {
2900
2900
  selection: k.collapsed(s.start + m.length)
2901
2901
  };
2902
2902
  }
2903
- const u = $s(e.text, s), h = u.map((m) => de.insert(m, hr(n))), f = new M(h);
2903
+ const u = $s(e.text, s), h = u.map((m) => de.insert(m, ur(n))), f = new M(h);
2904
2904
  return {
2905
2905
  edit: f,
2906
- selection: pr(f, t, new Set(u))
2906
+ selection: _r(f, t, new Set(u))
2907
2907
  };
2908
2908
  };
2909
2909
  }
2910
- function Zo(n = Ve) {
2910
+ function Jo(n = Ve) {
2911
2911
  return ft(n), (e) => {
2912
2912
  if (e.selection.isCollapsed) {
2913
2913
  const i = zs(e.document, e.text, e.selection.active), o = i ? ie(e.document, i.item) : void 0, r = i ? ie(e.document, i.item.marker) : void 0;
@@ -2929,7 +2929,7 @@ function Zo(n = Ve) {
2929
2929
  }
2930
2930
  const t = [];
2931
2931
  for (const i of $s(e.text, e.selection.range)) {
2932
- const o = fr(e.text, i), r = e.text.slice(i, o), c = Ws(r, n);
2932
+ const o = mr(e.text, i), r = e.text.slice(i, o), c = Ws(r, n);
2933
2933
  c !== r && t.push(de.replace(
2934
2934
  new w(i, o),
2935
2935
  c
@@ -2940,11 +2940,11 @@ function Zo(n = Ve) {
2940
2940
  const s = new M(t);
2941
2941
  return {
2942
2942
  edit: s,
2943
- selection: gr(s, e.selection)
2943
+ selection: pr(s, e.selection)
2944
2944
  };
2945
2945
  };
2946
2946
  }
2947
- const Jo = (n) => {
2947
+ const er = (n) => {
2948
2948
  const e = M.replace(n.selection.range, `
2949
2949
 
2950
2950
  `), t = n.selection.range.start + 2;
@@ -2952,14 +2952,14 @@ const Jo = (n) => {
2952
2952
  edit: e,
2953
2953
  selection: k.collapsed(t)
2954
2954
  };
2955
- }, er = (n) => {
2955
+ }, tr = (n) => {
2956
2956
  const e = M.replace(n.selection.range, `
2957
2957
  `), t = n.selection.range.start + 1;
2958
2958
  return {
2959
2959
  edit: e,
2960
2960
  selection: k.collapsed(t)
2961
2961
  };
2962
- }, tr = (n) => {
2962
+ }, nr = (n) => {
2963
2963
  const e = n.selection.range.start;
2964
2964
  let t = 0;
2965
2965
  for (; t < 2 && n.text[e - 1 - t] === " "; )
@@ -2986,7 +2986,7 @@ function $e(n) {
2986
2986
  case "codeBlock":
2987
2987
  return e.closeFence && n.selection.active >= nt(e, t) ? kt(n, e, t) : void 0;
2988
2988
  case "blockQuote":
2989
- return cr(n);
2989
+ return ar(n);
2990
2990
  case "unhandledBlock": {
2991
2991
  const s = e.htmlComment;
2992
2992
  if (s?.kind !== "complete")
@@ -2998,7 +2998,7 @@ function $e(n) {
2998
2998
  return;
2999
2999
  }
3000
3000
  }
3001
- const nr = (n) => {
3001
+ const sr = (n) => {
3002
3002
  const e = n.selection, t = n.activeBlock;
3003
3003
  if (!e.isCollapsed || !t)
3004
3004
  return le(n);
@@ -3006,21 +3006,21 @@ const nr = (n) => {
3006
3006
  case "paragraph":
3007
3007
  case "heading":
3008
3008
  case "thematicBreak":
3009
- return sr(n, t);
3009
+ return ir(n, t);
3010
3010
  case "frontMatter":
3011
3011
  case "codeBlock":
3012
- return ir(n);
3012
+ return or(n);
3013
3013
  case "blockQuote":
3014
- return rr(n);
3014
+ return cr(n);
3015
3015
  case "list":
3016
- return ar(n, t);
3016
+ return lr(n, t);
3017
3017
  case "unhandledBlock":
3018
- return or(n, t);
3018
+ return rr(n, t);
3019
3019
  default:
3020
3020
  return le(n);
3021
3021
  }
3022
3022
  };
3023
- function sr(n, e) {
3023
+ function ir(n, e) {
3024
3024
  const t = n.selection, s = mt(n.document, e);
3025
3025
  if (s === void 0)
3026
3026
  return le(n);
@@ -3033,7 +3033,7 @@ function sr(n, e) {
3033
3033
  selection: k.collapsed(t.range.start + 2)
3034
3034
  } : $e(n) ?? le(n);
3035
3035
  }
3036
- function ir(n, e) {
3036
+ function or(n, e) {
3037
3037
  const t = n.selection, s = $e(n);
3038
3038
  if (s)
3039
3039
  return s;
@@ -3056,13 +3056,13 @@ function kt(n, e, t) {
3056
3056
  atEof: i >= n.text.length
3057
3057
  };
3058
3058
  }
3059
- function or(n, e) {
3059
+ function rr(n, e) {
3060
3060
  return e.htmlComment?.kind !== "complete" ? le(n) : $e(n) ?? le(n);
3061
3061
  }
3062
3062
  function nt(n, e) {
3063
- return e + n.length - _r(n);
3063
+ return e + n.length - vr(n);
3064
3064
  }
3065
- function rr(n) {
3065
+ function cr(n) {
3066
3066
  const e = n.selection, t = Fs(n.text, e.active), s = t.prefix ?? "> ";
3067
3067
  if (t.content.slice(s.length).trim() === "")
3068
3068
  return $e(n) ?? Vs(n, t.start, t.endExclusive);
@@ -3070,7 +3070,7 @@ function rr(n) {
3070
3070
  ` + s.replace(/\s*$/, " ");
3071
3071
  return tn(e, o);
3072
3072
  }
3073
- function cr(n) {
3073
+ function ar(n) {
3074
3074
  const e = n.activeBlock;
3075
3075
  if (!n.selection.isCollapsed || e?.kind !== "blockQuote")
3076
3076
  return;
@@ -3095,7 +3095,7 @@ function cr(n) {
3095
3095
  }
3096
3096
  function Fs(n, e) {
3097
3097
  const t = n.lastIndexOf(`
3098
- `, e - 1) + 1, s = dr(n, e), i = n.slice(t, s);
3098
+ `, e - 1) + 1, s = hr(n, e), i = n.slice(t, s);
3099
3099
  return {
3100
3100
  start: t,
3101
3101
  endExclusive: s,
@@ -3103,7 +3103,7 @@ function Fs(n, e) {
3103
3103
  prefix: /^(\s*(?:>\s*)+)/.exec(i)?.[1]
3104
3104
  };
3105
3105
  }
3106
- function ar(n, e) {
3106
+ function lr(n, e) {
3107
3107
  const t = n.selection, s = mt(n.document, e);
3108
3108
  if (s === void 0)
3109
3109
  return le(n);
@@ -3116,7 +3116,7 @@ function ar(n, e) {
3116
3116
  if (!Us(o))
3117
3117
  return Vs(n, r, r + o.length);
3118
3118
  const c = `
3119
- ` + lr(e, o);
3119
+ ` + dr(e, o);
3120
3120
  return tn(t, c);
3121
3121
  }
3122
3122
  function Vs(n, e, t) {
@@ -3134,7 +3134,7 @@ function Vs(n, e, t) {
3134
3134
  selection: k.collapsed(e)
3135
3135
  };
3136
3136
  }
3137
- function lr(n, e) {
3137
+ function dr(n, e) {
3138
3138
  const t = e.marker.content.trim(), s = t.charAt(0) || "-";
3139
3139
  if (e.checked !== void 0)
3140
3140
  return `${s} [ ] `;
@@ -3152,7 +3152,7 @@ function tn(n, e) {
3152
3152
  selection: k.collapsed(n.range.start + e.length)
3153
3153
  };
3154
3154
  }
3155
- function dr(n, e) {
3155
+ function hr(n, e) {
3156
3156
  const t = n.indexOf(`
3157
3157
  `, e);
3158
3158
  return t === -1 ? n.length : t;
@@ -3182,7 +3182,7 @@ function Hs(n, e = Ve) {
3182
3182
  const t = Ks(n, e.tabSize);
3183
3183
  return " ".repeat(e.tabSize - t % e.tabSize);
3184
3184
  }
3185
- function hr(n) {
3185
+ function ur(n) {
3186
3186
  return n.insertSpaces ? " ".repeat(n.tabSize) : " ";
3187
3187
  }
3188
3188
  function Ws(n, e = Ve) {
@@ -3191,9 +3191,9 @@ function Ws(n, e = Ve) {
3191
3191
  if (t === 0)
3192
3192
  return n;
3193
3193
  const s = t - (t % e.tabSize || e.tabSize);
3194
- return ur(s, e);
3194
+ return fr(s, e);
3195
3195
  }
3196
- function ur(n, e) {
3196
+ function fr(n, e) {
3197
3197
  return e.insertSpaces ? " ".repeat(n) : " ".repeat(Math.floor(n / e.tabSize)) + " ".repeat(n % e.tabSize);
3198
3198
  }
3199
3199
  function Ks(n, e) {
@@ -3202,7 +3202,7 @@ function Ks(n, e) {
3202
3202
  t = s === " " ? t + e - t % e : t + 1;
3203
3203
  return t;
3204
3204
  }
3205
- function fr(n, e) {
3205
+ function mr(n, e) {
3206
3206
  let t = e;
3207
3207
  for (; n[t] === " " || n[t] === " "; )
3208
3208
  t++;
@@ -3241,7 +3241,7 @@ function qs(n, e, t, s) {
3241
3241
  const i = [];
3242
3242
  let o = z(n, e);
3243
3243
  for (; o < t; ) {
3244
- i.push(mr(n, o, s));
3244
+ i.push(gr(n, o, s));
3245
3245
  const r = n.indexOf(`
3246
3246
  `, o);
3247
3247
  if (r === -1)
@@ -3262,7 +3262,7 @@ function Gs(n, e, t) {
3262
3262
  }
3263
3263
  return i;
3264
3264
  }
3265
- function mr(n, e, t) {
3265
+ function gr(n, e, t) {
3266
3266
  let s = e;
3267
3267
  for (let i = 0; i < t; i++) {
3268
3268
  let o = s;
@@ -3274,10 +3274,10 @@ function mr(n, e, t) {
3274
3274
  }
3275
3275
  return s;
3276
3276
  }
3277
- function gr(n, e) {
3277
+ function pr(n, e) {
3278
3278
  return new k(n.mapOffset(e.anchor), n.mapOffset(e.active));
3279
3279
  }
3280
- function pr(n, e, t) {
3280
+ function _r(n, e, t) {
3281
3281
  const s = (i) => {
3282
3282
  if (!t.has(i))
3283
3283
  return n.mapOffset(i);
@@ -3299,7 +3299,7 @@ function Us(n) {
3299
3299
  return n instanceof Re ? n.content.trim().length > 0 : n instanceof me ? (n.code?.content.trim().length ?? 0) > 0 : n.children.some(Us);
3300
3300
  }
3301
3301
  function le(n) {
3302
- const e = er(n);
3302
+ const e = tr(n);
3303
3303
  return { kind: "edit", edit: e.edit, selection: e.selection };
3304
3304
  }
3305
3305
  function mt(n, e) {
@@ -3310,23 +3310,23 @@ function mt(n, e) {
3310
3310
  t += s.length;
3311
3311
  }
3312
3312
  }
3313
- function _r(n) {
3313
+ function vr(n) {
3314
3314
  const e = n.children;
3315
3315
  let t = 0;
3316
3316
  for (let s = e.length - 1; s >= 0 && e[s] instanceof W; s--)
3317
3317
  t += e[s].length;
3318
3318
  return t;
3319
3319
  }
3320
- const vr = (n) => new k(0, n.text.length), wr = (n, e) => {
3320
+ const wr = (n) => new k(0, n.text.length), br = (n, e) => {
3321
3321
  const t = Ss(n.text, e, n.wordNavigationConfig);
3322
3322
  return new k(t.start, t.end);
3323
3323
  };
3324
- function br(n, e) {
3324
+ function kr(n, e) {
3325
3325
  return new k(e.start, e.endExclusive);
3326
3326
  }
3327
3327
  const vn = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap();
3328
3328
  class oe extends H {
3329
- constructor(e, t, s = kr) {
3329
+ constructor(e, t, s = yr) {
3330
3330
  super(), this.ast = e, this.dom = t, this._children = s, vn.set(t, this);
3331
3331
  for (const i of s)
3332
3332
  yt.set(i, this);
@@ -3478,8 +3478,8 @@ class oe extends H {
3478
3478
  i.forEachTextLeaf(s, t), s += i.sourceLength;
3479
3479
  }
3480
3480
  }
3481
- const kr = [];
3482
- function yr(n) {
3481
+ const yr = [];
3482
+ function xr(n) {
3483
3483
  const e = document;
3484
3484
  if (e.caretPositionFromPoint) {
3485
3485
  const s = e.caretPositionFromPoint(n.x, n.y);
@@ -3504,19 +3504,19 @@ function Bt(n, e) {
3504
3504
  }
3505
3505
  }
3506
3506
  }
3507
- function xr(n) {
3508
- const e = Er(n), t = Cr(n), s = Math.max(e, n.length - t);
3507
+ function Er(n) {
3508
+ const e = Cr(n), t = Sr(n), s = Math.max(e, n.length - t);
3509
3509
  return {
3510
3510
  text: n.slice(e, s),
3511
3511
  sourceOffset: e
3512
3512
  };
3513
3513
  }
3514
- function Er(n) {
3514
+ function Cr(n) {
3515
3515
  return n.startsWith(`\r
3516
3516
  `) ? 2 : n.startsWith("\r") || n.startsWith(`
3517
3517
  `) ? 1 : 0;
3518
3518
  }
3519
- function Cr(n) {
3519
+ function Sr(n) {
3520
3520
  return n.endsWith(`\r
3521
3521
  `) ? 2 : n.endsWith("\r") || n.endsWith(`
3522
3522
  `) ? 1 : 0;
@@ -3542,20 +3542,21 @@ class Pe {
3542
3542
  _title;
3543
3543
  _detail;
3544
3544
  _reference;
3545
+ _changes;
3545
3546
  _status;
3546
3547
  _secondaryStatus;
3547
3548
  constructor(e, t) {
3548
- this.element = e, this.authoredLabel = t, this._icon = document.createElement("span"), this._icon.className = "md-rich-link-icon codicon", this._icon.setAttribute("aria-hidden", "true"), this._title = document.createElement("span"), this._title.className = "md-rich-link-title", this._detail = document.createElement("span"), this._detail.className = "md-rich-link-detail", this._reference = document.createElement("span"), this._reference.className = "md-rich-link-reference", this._status = wn("md-rich-link-primary-status"), this._secondaryStatus = wn("md-rich-link-secondary-status"), this.authoredLabel.className = "md-rich-link-label", this.element.classList.add("md-rich-link"), this._setDefaultOrder();
3549
+ this.element = e, this.authoredLabel = t, this._icon = document.createElement("span"), this._icon.className = "md-rich-link-icon codicon", this._icon.setAttribute("aria-hidden", "true"), this._title = document.createElement("span"), this._title.className = "md-rich-link-title", this._detail = document.createElement("span"), this._detail.className = "md-rich-link-detail", this._reference = document.createElement("span"), this._reference.className = "md-rich-link-reference", this._changes = Mr(), this._status = wn("md-rich-link-primary-status"), this._secondaryStatus = wn("md-rich-link-secondary-status"), this.authoredLabel.className = "md-rich-link-label", this.element.classList.add("md-rich-link"), this._setDefaultOrder();
3549
3550
  }
3550
3551
  update(e) {
3551
3552
  if (!e) {
3552
3553
  this._renderUnavailable();
3553
3554
  return;
3554
3555
  }
3555
- this.element.classList.remove("md-rich-link-unavailable"), this.element.dataset.mdRichLinkKind = e.kind, this._icon.className = `md-rich-link-icon codicon codicon-${Sr[e.kind]}`, this.authoredLabel.hidden = !!e.title, this._title.textContent = e.title ?? "", this._title.hidden = !e.title, this._detail.textContent = e.detail ?? "", this._detail.hidden = !e.detail, this._reference.textContent = e.reference ?? "", this._reference.hidden = !e.reference, bn(this.element, e.kind, this._status, e.status, "mdRichLinkStatus"), bn(this.element, e.kind, this._secondaryStatus, e.secondaryStatus, "mdRichLinkSecondaryStatus"), Bt(this.element, Tr(e) ? [this._status.root, this.authoredLabel, this._title, this._detail, this._reference, this._secondaryStatus.root] : [this._icon, this.authoredLabel, this._title, this._detail, this._reference, this._status.root, this._secondaryStatus.root]), e.ariaLabel ? this.element.setAttribute("aria-label", e.ariaLabel) : this.element.removeAttribute("aria-label"), e.tooltip ? this.element.title = e.tooltip : this.element.removeAttribute("title");
3556
+ this.element.classList.remove("md-rich-link-unavailable"), this.element.dataset.mdRichLinkKind = e.kind, this._icon.className = `md-rich-link-icon codicon codicon-${Lr[e.kind]}`, this.authoredLabel.hidden = !!e.title, this._title.textContent = e.title ?? "", this._title.hidden = !e.title, this._detail.textContent = e.detail ?? "", this._detail.hidden = !e.detail, this._reference.textContent = e.reference ?? "", this._reference.hidden = !e.reference, Tr(this._changes, e.changes), bn(this.element, e.kind, this._status, e.status, "mdRichLinkStatus"), bn(this.element, e.kind, this._secondaryStatus, e.secondaryStatus, "mdRichLinkSecondaryStatus"), Bt(this.element, Nr(e) ? [this._status.root, this.authoredLabel, this._title, this._detail, this._reference, this._changes.root, this._secondaryStatus.root] : [this._icon, this.authoredLabel, this._title, this._detail, this._reference, this._changes.root, this._status.root, this._secondaryStatus.root]), e.ariaLabel ? this.element.setAttribute("aria-label", e.ariaLabel) : this.element.removeAttribute("aria-label"), e.tooltip ? this.element.title = e.tooltip : this.element.removeAttribute("title");
3556
3557
  }
3557
3558
  _renderUnavailable() {
3558
- this.element.classList.add("md-rich-link-unavailable"), delete this.element.dataset.mdRichLinkKind, delete this.element.dataset.mdRichLinkStatus, delete this.element.dataset.mdRichLinkSecondaryStatus, this._setDefaultOrder(), this._icon.className = "md-rich-link-icon codicon codicon-link", this.authoredLabel.hidden = !1, this._title.hidden = !0, this._detail.hidden = !0, this._reference.hidden = !0, At(this._status), At(this._secondaryStatus), this.element.removeAttribute("aria-label"), this.element.removeAttribute("title");
3559
+ this.element.classList.add("md-rich-link-unavailable"), delete this.element.dataset.mdRichLinkKind, delete this.element.dataset.mdRichLinkStatus, delete this.element.dataset.mdRichLinkSecondaryStatus, this._setDefaultOrder(), this._icon.className = "md-rich-link-icon codicon codicon-link", this.authoredLabel.hidden = !1, this._title.hidden = !0, this._detail.hidden = !0, this._reference.hidden = !0, Xs(this._changes), At(this._status), At(this._secondaryStatus), this.element.removeAttribute("aria-label"), this.element.removeAttribute("title");
3559
3560
  }
3560
3561
  _setDefaultOrder() {
3561
3562
  Bt(this.element, [
@@ -3564,12 +3565,13 @@ class Pe {
3564
3565
  this._title,
3565
3566
  this._detail,
3566
3567
  this._reference,
3568
+ this._changes.root,
3567
3569
  this._status.root,
3568
3570
  this._secondaryStatus.root
3569
3571
  ]);
3570
3572
  }
3571
3573
  }
3572
- const Sr = {
3574
+ const Lr = {
3573
3575
  resource: "link",
3574
3576
  issue: "issues",
3575
3577
  pullRequest: "git-pull-request",
@@ -3588,19 +3590,37 @@ function wn(n) {
3588
3590
  const s = document.createElement("span");
3589
3591
  return s.className = "md-rich-link-status-label", e.append(t, s), { root: e, icon: t, label: s };
3590
3592
  }
3593
+ function Mr() {
3594
+ const n = document.createElement("span");
3595
+ n.className = "md-rich-link-changes";
3596
+ const e = document.createElement("span");
3597
+ e.className = "md-rich-link-insertions";
3598
+ const t = document.createElement("span");
3599
+ return t.className = "md-rich-link-deletions", n.append(e, t), { root: n, insertions: e, deletions: t };
3600
+ }
3601
+ function Tr(n, e) {
3602
+ if (!e) {
3603
+ Xs(n);
3604
+ return;
3605
+ }
3606
+ n.insertions.textContent = `+${e.insertions}`, n.deletions.textContent = `-${e.deletions}`, n.root.hidden = !1;
3607
+ }
3608
+ function Xs(n) {
3609
+ n.insertions.textContent = "", n.deletions.textContent = "", n.root.hidden = !0;
3610
+ }
3591
3611
  function bn(n, e, t, s, i) {
3592
3612
  if (!s) {
3593
3613
  delete n.dataset[i], At(t);
3594
3614
  return;
3595
3615
  }
3596
3616
  n.dataset[i] = s.kind;
3597
- const o = Mr(e, s.kind);
3598
- t.icon.className = `md-rich-link-status-icon codicon codicon-${Or(e, s.kind)}`, t.icon.hidden = o !== void 0, o ? (t.pixelSpinner ??= Lr(t.label), t.pixelSpinner.classList.toggle("monaco-pixel-spinner-ring", o === "ring")) : (t.pixelSpinner?.remove(), t.pixelSpinner = void 0), t.label.textContent = s.label, t.root.hidden = !1;
3617
+ const o = Rr(e, s.kind);
3618
+ t.icon.className = `md-rich-link-status-icon codicon codicon-${Ir(e, s.kind)}`, t.icon.hidden = o !== void 0, o ? (t.pixelSpinner ??= Or(t.label), t.pixelSpinner.classList.toggle("monaco-pixel-spinner-ring", o === "ring")) : (t.pixelSpinner?.remove(), t.pixelSpinner = void 0), t.label.textContent = s.label, t.root.hidden = !1;
3599
3619
  }
3600
3620
  function At(n) {
3601
3621
  n.icon.hidden = !1, n.pixelSpinner?.remove(), n.pixelSpinner = void 0, n.label.textContent = "", n.root.hidden = !0;
3602
3622
  }
3603
- function Lr(n) {
3623
+ function Or(n) {
3604
3624
  const e = document.createElement("span");
3605
3625
  e.className = "md-rich-link-status-icon monaco-pixel-spinner", e.setAttribute("aria-hidden", "true");
3606
3626
  for (let t = 0; t < 6; t++) {
@@ -3609,7 +3629,7 @@ function Lr(n) {
3609
3629
  }
3610
3630
  return n.before(e), e;
3611
3631
  }
3612
- function Mr(n, e) {
3632
+ function Rr(n, e) {
3613
3633
  if (n === "session")
3614
3634
  switch (e) {
3615
3635
  case "pending":
@@ -3620,7 +3640,7 @@ function Mr(n, e) {
3620
3640
  return;
3621
3641
  }
3622
3642
  }
3623
- function Tr(n) {
3643
+ function Nr(n) {
3624
3644
  const e = n.status?.kind;
3625
3645
  switch (n.kind) {
3626
3646
  case "issue":
@@ -3633,7 +3653,7 @@ function Tr(n) {
3633
3653
  return !1;
3634
3654
  }
3635
3655
  }
3636
- function Or(n, e) {
3656
+ function Ir(n, e) {
3637
3657
  if (n === "session")
3638
3658
  switch (e) {
3639
3659
  case "pending":
@@ -3717,7 +3737,7 @@ function Y(n, e, t) {
3717
3737
  return t;
3718
3738
  switch (n.kind) {
3719
3739
  case "text":
3720
- return Ir(n, I(t, nn));
3740
+ return Ar(n, I(t, nn));
3721
3741
  case "marker":
3722
3742
  return n.ast.markerKind === "hardBreak" ? new En(n, I(t, En)) : new xn(n, I(t, xn));
3723
3743
  case "glue":
@@ -3782,16 +3802,16 @@ function X(n, e, t, s) {
3782
3802
  const { paired: i, unused: o } = on(e, t ?? F), r = e.map((c) => s(c, i.get(c)));
3783
3803
  for (const c of o)
3784
3804
  c.dispose();
3785
- return Rr(n, r), r;
3805
+ return Pr(n, r), r;
3786
3806
  }
3787
- function Rr(n, e) {
3807
+ function Pr(n, e) {
3788
3808
  j(n, e.map((t) => t.mountNode));
3789
3809
  }
3790
3810
  const j = Bt;
3791
3811
  function he(n) {
3792
3812
  return (e, t) => Y(e, n, t);
3793
3813
  }
3794
- function Xs(n) {
3814
+ function Ys(n) {
3795
3815
  return (e, t) => e.kind === "marker" && e.ast.markerKind === "content" ? new nn(e, document.createTextNode(e.ast.content)) : Y(e, n, t);
3796
3816
  }
3797
3817
  const F = [];
@@ -3838,20 +3858,20 @@ class Ft extends R {
3838
3858
  return this.data.deletedRanges;
3839
3859
  }
3840
3860
  }
3841
- function Ys(n) {
3842
- return "content" in n ? n.content : Nr;
3861
+ function js(n) {
3862
+ return "content" in n ? n.content : Br;
3843
3863
  }
3844
- const Nr = [];
3845
- function Ir(n, e) {
3864
+ const Br = [];
3865
+ function Ar(n, e) {
3846
3866
  const t = n.ast.content;
3847
3867
  if (n.hiddenPrefixLength > 0)
3848
- return Pr(n, t, n.hiddenPrefixLength);
3868
+ return Dr(n, t, n.hiddenPrefixLength);
3849
3869
  const s = {
3850
3870
  leftBoundary: n.leftWordBoundary,
3851
3871
  rightBoundary: n.rightWordBoundary,
3852
3872
  decorateNewline: !0
3853
3873
  };
3854
- if (n.showWhitespace && Qs(t, s)) {
3874
+ if (n.showWhitespace && Zs(t, s)) {
3855
3875
  const r = document.createElement("span");
3856
3876
  r.className = "md-text";
3857
3877
  const c = gt(r, t, s, n.ast);
@@ -3860,7 +3880,7 @@ function Ir(n, e) {
3860
3880
  const i = e?.dom, o = i instanceof globalThis.Text && i.data === t ? i : document.createTextNode(t);
3861
3881
  return new nn(n, o);
3862
3882
  }
3863
- function Pr(n, e, t) {
3883
+ function Dr(n, e, t) {
3864
3884
  const s = document.createElement("span");
3865
3885
  s.className = "md-text";
3866
3886
  const i = document.createElement("span");
@@ -3877,31 +3897,31 @@ function yn(n) {
3877
3897
  return n === " " || n === " " || n === `
3878
3898
  ` || n === "\r";
3879
3899
  }
3880
- const Br = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 }, Ar = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 };
3881
- function Dr(n, e, t) {
3900
+ const Fr = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 }, Vr = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 };
3901
+ function $r(n, e, t) {
3882
3902
  const s = e > 0 ? !yn(n[e - 1]) : t.leftBoundary, i = e < n.length - 1 ? !yn(n[e + 1]) : t.rightBoundary;
3883
3903
  return s && i;
3884
3904
  }
3885
- function js(n, e, t) {
3905
+ function Qs(n, e, t) {
3886
3906
  const s = n[e];
3887
3907
  if (s === " ")
3888
3908
  return "md-ws-tab";
3889
3909
  if (s === `
3890
3910
  ` || s === "\r")
3891
3911
  return t.decorateNewline ? "md-ws-newline" : void 0;
3892
- if (s === " " && !Dr(n, e, t))
3912
+ if (s === " " && !$r(n, e, t))
3893
3913
  return "md-ws-space";
3894
3914
  }
3895
- function Qs(n, e) {
3915
+ function Zs(n, e) {
3896
3916
  for (let t = 0; t < n.length; t++) {
3897
3917
  const s = n[t];
3898
3918
  if (e.newlineGlyph && (s === `
3899
- ` || s === "\r") || js(n, t, e) !== void 0)
3919
+ ` || s === "\r") || Qs(n, t, e) !== void 0)
3900
3920
  return !0;
3901
3921
  }
3902
3922
  return !1;
3903
3923
  }
3904
- function Fr(n, e) {
3924
+ function Hr(n, e) {
3905
3925
  const t = [];
3906
3926
  let s = -1;
3907
3927
  const i = (c) => {
@@ -3920,7 +3940,7 @@ function Fr(n, e) {
3920
3940
  }
3921
3941
  }
3922
3942
  const l = e.newlineGlyph && (a === `
3923
- ` || a === "\r") ? void 0 : js(n, c, e);
3943
+ ` || a === "\r") ? void 0 : Qs(n, c, e);
3924
3944
  if (l === void 0) {
3925
3945
  s < 0 && (s = c);
3926
3946
  continue;
@@ -3931,7 +3951,7 @@ function Fr(n, e) {
3931
3951
  }
3932
3952
  function gt(n, e, t, s) {
3933
3953
  const i = [];
3934
- for (const o of Fr(e, t)) {
3954
+ for (const o of Hr(e, t)) {
3935
3955
  const r = document.createTextNode(o.display ?? o.text);
3936
3956
  if (o.cls) {
3937
3957
  const c = document.createElement("span");
@@ -3956,7 +3976,7 @@ class K extends oe {
3956
3976
  return this._sourceLength;
3957
3977
  }
3958
3978
  }
3959
- class Zs extends K {
3979
+ class Js extends K {
3960
3980
  _span;
3961
3981
  constructor(e, t) {
3962
3982
  const s = document.createElement("span");
@@ -3997,7 +4017,7 @@ class st extends R {
3997
4017
  newlineGlyph: s.glueKind === "blockGap" || o,
3998
4018
  breakGlyphClass: o ? "md-ws-blockbreak-glyph" : void 0
3999
4019
  };
4000
- if (e.visible && Qs(s.content, r)) {
4020
+ if (e.visible && Zs(s.content, r)) {
4001
4021
  const u = document.createElement("span");
4002
4022
  u.className = i;
4003
4023
  const h = gt(u, s.content, r, s);
@@ -4016,14 +4036,14 @@ class En extends R {
4016
4036
  i.className = "md-hardbreak";
4017
4037
  const o = document.createElement("span");
4018
4038
  o.className = e.visible ? "md-hardbreak-src" : "md-hardbreak-src md-hardbreak-src-hidden";
4019
- const r = e.visible ? gt(o, s, Br, e.ast) : Vr(o, s, e.ast);
4039
+ const r = e.visible ? gt(o, s, Fr, e.ast) : Wr(o, s, e.ast);
4020
4040
  i.appendChild(o), i.appendChild(document.createElement("br")), super(e, i, r), this._span = i;
4021
4041
  }
4022
4042
  get mountNode() {
4023
4043
  return this._span;
4024
4044
  }
4025
4045
  }
4026
- function Vr(n, e, t) {
4046
+ function Wr(n, e, t) {
4027
4047
  const s = document.createTextNode(e);
4028
4048
  return n.appendChild(s), [new K(t, s)];
4029
4049
  }
@@ -4031,7 +4051,7 @@ class pe extends R {
4031
4051
  constructor(e, t, s, i, o) {
4032
4052
  const r = o?.element ?? document.createElement(t);
4033
4053
  !o && s && (r.className = s);
4034
- const c = X(r, Ys(e), o?.children, he(i));
4054
+ const c = X(r, js(e), o?.children, he(i));
4035
4055
  super(e, r, c);
4036
4056
  }
4037
4057
  }
@@ -4041,10 +4061,10 @@ class Cn extends R {
4041
4061
  constructor(e, t, s) {
4042
4062
  const i = s?.element ?? document.createElement("blockquote");
4043
4063
  s || (i.className = "md-block md-blockquote");
4044
- const o = X(i, e.content, s?._sourceChildren, he(t)), r = $r(e.ast), c = e.showFinalMarkerOnlyLine ? r : r.slice(0, -1);
4064
+ const o = X(i, e.content, s?._sourceChildren, he(t)), r = Kr(e.ast), c = e.showFinalMarkerOnlyLine ? r : r.slice(0, -1);
4045
4065
  i.classList.toggle("md-blockquote-marker-only-line", c.length > 0);
4046
4066
  const a = new Map(s?._anchors.map((h) => [h.ast.id, h])), l = c.map(({ marker: h }) => {
4047
- const f = a.get(h.id) ?? new Zs(h, "md-blockquote-line-anchor");
4067
+ const f = a.get(h.id) ?? new Js(h, "md-blockquote-line-anchor");
4048
4068
  return a.delete(h.id), f;
4049
4069
  });
4050
4070
  for (const h of a.values())
@@ -4058,7 +4078,7 @@ class Cn extends R {
4058
4078
  j(i, u.map((h) => h.mountNode)), super(e, i, u), this._sourceChildren = o, this._anchors = l;
4059
4079
  }
4060
4080
  }
4061
- function $r(n) {
4081
+ function Kr(n) {
4062
4082
  const e = [];
4063
4083
  for (let t = n.children.length - 1; t >= 0; t--) {
4064
4084
  const s = n.children[t];
@@ -4170,7 +4190,7 @@ class Nn extends R {
4170
4190
  const i = e.ast, o = i.value, r = o?.content ?? "", c = t?.syntaxHighlighter;
4171
4191
  let a;
4172
4192
  o && c && (s?._session && i === s.ast ? (a = s._session, s._session = void 0) : a = c.create("yaml", r)), s?._session?.dispose(), s && (s._session = void 0), s?._snapshotSub?.dispose(), s && (s._snapshotSub = void 0);
4173
- const l = a ? a.snapshot.get().getTokens(w.ofLength(r.length)).tokens : void 0, d = Js(
4193
+ const l = a ? a.snapshot.get().getTokens(w.ofLength(r.length)).tokens : void 0, d = ei(
4174
4194
  e.content,
4175
4195
  o,
4176
4196
  r,
@@ -4216,7 +4236,7 @@ class sn extends R {
4216
4236
  return super.canReuse(e, t) && Object.is(t?.embeddedCodeEditorFactoryVersion, this._embeddedEditorFactoryVersion) && (!this._embeddedEditor || (t?.embeddedCodeEditorReadOnly ?? !1) === this._embeddedEditorReadOnly);
4217
4237
  }
4218
4238
  constructor(e, t, s) {
4219
- const i = e.ast, o = i.code?.content ?? "", r = s instanceof sn ? s : void 0, c = t?.embeddedCodeEditorReadOnly ?? !1, a = xr(o);
4239
+ const i = e.ast, o = i.code?.content ?? "", r = s instanceof sn ? s : void 0, c = t?.embeddedCodeEditorReadOnly ?? !1, a = Er(o);
4220
4240
  let l;
4221
4241
  !e.showMarkup && i.language && i.code && a.sourceOffset > 0 && t?.embeddedCodeEditorFactory && (r?._embeddedEditor && Object.is(t.embeddedCodeEditorFactoryVersion, r._embeddedEditorFactoryVersion) && (i === r.ast || i.getDiff(r.ast)) ? (l = r._embeddedEditor, r._embeddedEditor = void 0) : l = t.embeddedCodeEditorFactory.create(i.language, i.infoString, a.text) ?? void 0), r?._embeddedEditor && (r._embeddedEditor.dispose(), r._embeddedEditor = void 0);
4222
4242
  const d = !l && !e.showMarkup && i.language && t?.renderCustomCodeBlock ? t.renderCustomCodeBlock(i.language, o) ?? void 0 : void 0, u = t?.syntaxHighlighter;
@@ -4245,7 +4265,7 @@ class sn extends R {
4245
4265
  } else if (d)
4246
4266
  d.classList.add("md-block", "md-code-block"), m = d, g = F;
4247
4267
  else if (i.openFence) {
4248
- const p = Js(
4268
+ const p = ei(
4249
4269
  e.content,
4250
4270
  i.code,
4251
4271
  o,
@@ -4256,7 +4276,7 @@ class sn extends R {
4256
4276
  ), v = p.dom, E = p.children;
4257
4277
  if (_ = p.contentNode, !i.closeFence && i.code && o.endsWith(`
4258
4278
  `)) {
4259
- const b = new Zs(i.code);
4279
+ const b = new Js(i.code);
4260
4280
  v.appendChild(b.mountNode), E.push(b);
4261
4281
  }
4262
4282
  m = v, g = E;
@@ -4276,7 +4296,7 @@ class sn extends R {
4276
4296
  if (b.visible) {
4277
4297
  const V = document.createElement("span");
4278
4298
  V.className = "md-marker md-marker-codeIndent";
4279
- const ue = gt(V, T.content, Ar, T);
4299
+ const ue = gt(V, T.content, Vr, T);
4280
4300
  v.appendChild(V), E.push(new K(T, V, ue));
4281
4301
  } else {
4282
4302
  const V = Y(b, t, void 0);
@@ -4298,7 +4318,7 @@ class sn extends R {
4298
4318
  this._snapshotSub?.dispose(), this._snapshotSub = void 0, this._session?.dispose(), this._session = void 0, this._embeddedEditor?.dispose(), this._embeddedEditor = void 0, super.dispose();
4299
4319
  }
4300
4320
  }
4301
- function Js(n, e, t, s, i, o, r) {
4321
+ function ei(n, e, t, s, i, o, r) {
4302
4322
  const c = document.createElement("pre");
4303
4323
  c.className = i;
4304
4324
  const a = [];
@@ -4307,22 +4327,22 @@ function Js(n, e, t, s, i, o, r) {
4307
4327
  if (e && d.ast === e) {
4308
4328
  const u = document.createElement("code");
4309
4329
  o && (u.className = `language-${CSS.escape(o)}`);
4310
- const h = Hr(e, t, u, r);
4311
- h instanceof ei && (l = h), a.push(h), c.appendChild(u);
4330
+ const h = zr(e, t, u, r);
4331
+ h instanceof ti && (l = h), a.push(h), c.appendChild(u);
4312
4332
  } else {
4313
4333
  const u = Y(d, s, void 0);
4314
4334
  c.appendChild(u.mountNode), a.push(u);
4315
4335
  }
4316
4336
  return { dom: c, children: a, contentNode: l };
4317
4337
  }
4318
- function Hr(n, e, t, s) {
4338
+ function zr(n, e, t, s) {
4319
4339
  if (!s) {
4320
4340
  const i = document.createTextNode(e);
4321
4341
  return t.appendChild(i), new K(n, i);
4322
4342
  }
4323
- return new ei(n, t, e, s);
4343
+ return new ti(n, t, e, s);
4324
4344
  }
4325
- class ei extends oe {
4345
+ class ti extends oe {
4326
4346
  constructor(e, t, s, i) {
4327
4347
  super(e, t, In(e, t, s, i));
4328
4348
  }
@@ -4350,7 +4370,7 @@ function In(n, e, t, s) {
4350
4370
  }
4351
4371
  return i;
4352
4372
  }
4353
- function ti(n) {
4373
+ function ni(n) {
4354
4374
  let e = 0;
4355
4375
  for (const t of n) {
4356
4376
  if (t.kind === "marker" && t.markerKind === "content")
@@ -4359,7 +4379,7 @@ function ti(n) {
4359
4379
  }
4360
4380
  return e;
4361
4381
  }
4362
- function ni(n, e, t) {
4382
+ function si(n, e, t) {
4363
4383
  const s = e.filter((c) => c.length > 0 && c.start >= 0 && c.start + c.length <= t).slice().sort((c, a) => c.start - a.start), i = [];
4364
4384
  let o = 0;
4365
4385
  const r = (c) => {
@@ -4400,10 +4420,10 @@ class Pn extends R {
4400
4420
  displayMode: !0,
4401
4421
  className: "md-block md-math-block",
4402
4422
  nodeLength: i.length,
4403
- contentStart: ti(i.content)
4423
+ contentStart: ni(i.content)
4404
4424
  });
4405
4425
  if (c) {
4406
- super(e, c.dom, ni(i, c.segments, i.length)), this._renderedHeight = o;
4426
+ super(e, c.dom, si(i, c.segments, i.length)), this._renderedHeight = o;
4407
4427
  return;
4408
4428
  }
4409
4429
  const a = document.createElement("div");
@@ -4431,7 +4451,7 @@ class An extends R {
4431
4451
  constructor(e, t, s) {
4432
4452
  const i = e.ast, o = document.createElement("li");
4433
4453
  e.isActive && o.classList.add("md-list-item-active"), i.checked !== void 0 && o.classList.add("md-task-list-item"), e.isActive || o.classList.add("md-markers-hidden"), e.isRunning && o.classList.add("md-task-list-item-running"), o.style.setProperty("--md-list-level", String(e.level));
4434
- const r = Wr(o, e.content, s, t);
4454
+ const r = qr(o, e.content, s, t);
4435
4455
  if (!e.isActive && i.checked !== void 0) {
4436
4456
  const c = document.createElement("input");
4437
4457
  c.type = "checkbox", c.checked = i.checked, c.className = "md-checkbox", e.isRunning && (c.classList.add("md-checkbox-running"), c.indeterminate = !0, c.setAttribute("aria-busy", "true"), c.setAttribute("aria-label", "In progress"));
@@ -4450,7 +4470,7 @@ class An extends R {
4450
4470
  super(e, o, r);
4451
4471
  }
4452
4472
  }
4453
- function Wr(n, e, t, s) {
4473
+ function qr(n, e, t, s) {
4454
4474
  const { paired: i, unused: o } = on(e, t?.children ?? F), r = e.map((d) => Y(d, s, i.get(d)));
4455
4475
  for (const d of o)
4456
4476
  d.dispose();
@@ -4464,7 +4484,7 @@ class Dn extends R {
4464
4484
  constructor(e, t, s) {
4465
4485
  const i = s?.dom ?? document.createElement("div"), o = s?._table ?? document.createElement("table");
4466
4486
  s || (i.className = "md-block md-table-wrapper", o.className = "md-block md-table", i.appendChild(o));
4467
- const r = X(o, Ys(e), s?.children, he(t));
4487
+ const r = X(o, js(e), s?.children, he(t));
4468
4488
  super(e, i, r), this._table = o;
4469
4489
  }
4470
4490
  get element() {
@@ -4486,7 +4506,7 @@ class Fn extends R {
4486
4506
  }
4487
4507
  class Vn extends R {
4488
4508
  constructor(e, t, s) {
4489
- const i = s?.element ?? document.createElement("code"), o = X(i, e.content, s?.children, Xs(t));
4509
+ const i = s?.element ?? document.createElement("code"), o = X(i, e.content, s?.children, Ys(t));
4490
4510
  super(e, i, o);
4491
4511
  }
4492
4512
  }
@@ -4495,7 +4515,7 @@ class $n extends R {
4495
4515
  if (e.showMarkup) {
4496
4516
  const a = document.createElement("span");
4497
4517
  a.className = "md-inline-math";
4498
- const l = X(a, e.content, s?.children, Xs(t));
4518
+ const l = X(a, e.content, s?.children, Ys(t));
4499
4519
  super(e, a, l);
4500
4520
  return;
4501
4521
  }
@@ -4506,10 +4526,10 @@ class $n extends R {
4506
4526
  displayMode: !1,
4507
4527
  className: "md-inline-math",
4508
4528
  nodeLength: e.ast.length,
4509
- contentStart: ti(e.ast.content)
4529
+ contentStart: ni(e.ast.content)
4510
4530
  });
4511
4531
  if (r) {
4512
- super(e, r.dom, ni(e.ast, r.segments, e.ast.length));
4532
+ super(e, r.dom, si(e.ast, r.segments, e.ast.length));
4513
4533
  return;
4514
4534
  }
4515
4535
  const c = document.createElement("span");
@@ -4597,7 +4617,7 @@ class rn extends oe {
4597
4617
  i.classList.add("md-document");
4598
4618
  const o = new Map(
4599
4619
  e.children.filter((f) => f.kind === "block").map((f) => [f.view, f.isActive])
4600
- ), r = s?.children, c = e.children.map((f) => f.view), { paired: a, unused: l } = on(c, r ?? Kr);
4620
+ ), r = s?.children, c = e.children.map((f) => f.view), { paired: a, unused: l } = on(c, r ?? Gr);
4601
4621
  let d;
4602
4622
  const u = c.map((f, m) => {
4603
4623
  const g = a.get(f);
@@ -4661,7 +4681,7 @@ class Kn extends oe {
4661
4681
  return new DOMRect(i?.right ?? e.left, e.top, 0, e.height);
4662
4682
  }
4663
4683
  }
4664
- const Kr = [], Ge = 1e-7;
4684
+ const Gr = [], Ge = 1e-7;
4665
4685
  class pt {
4666
4686
  constructor(e) {
4667
4687
  this._getLocalToClientMatrix = e;
@@ -4680,10 +4700,10 @@ class pt {
4680
4700
  const e = this._getLocalToClientMatrix();
4681
4701
  if (e.is2D === !1 || Math.abs(e.b) > Ge || Math.abs(e.c) > Ge || e.a <= Ge || e.d <= Ge)
4682
4702
  throw new Error("Markdown editor geometry supports positive axis-aligned scale and translation only");
4683
- return new zr(e);
4703
+ return new Ur(e);
4684
4704
  }
4685
4705
  }
4686
- class zr {
4706
+ class Ur {
4687
4707
  constructor(e) {
4688
4708
  this._localToClient = e, this._clientToLocal = e.inverse();
4689
4709
  }
@@ -4707,127 +4727,127 @@ class zr {
4707
4727
  return S.fromPointPoint(s.x, s.y, i.x, i.y);
4708
4728
  }
4709
4729
  }
4710
- class si {
4730
+ class ii {
4711
4731
  constructor(e, t, s) {
4712
4732
  this.ast = e, this.blocks = t, this.children = s;
4713
4733
  }
4714
4734
  kind = "document";
4715
4735
  }
4716
- class qr {
4736
+ class Xr {
4717
4737
  constructor(e, t) {
4718
4738
  this.ast = e, this.content = t;
4719
4739
  }
4720
4740
  kind = "heading";
4721
4741
  }
4722
- class Gr {
4742
+ class Yr {
4723
4743
  constructor(e, t) {
4724
4744
  this.ast = e, this.content = t;
4725
4745
  }
4726
4746
  kind = "paragraph";
4727
4747
  }
4728
- class Ur {
4748
+ class jr {
4729
4749
  constructor(e, t, s, i) {
4730
4750
  this.ast = e, this.anchorBlock = t, this.cursorLine = s, this.text = i;
4731
4751
  }
4732
4752
  kind = "pendingParagraph";
4733
4753
  }
4734
- class Xr {
4754
+ class Qr {
4735
4755
  constructor(e, t, s) {
4736
4756
  this.ast = e, this.showMarkup = t, this.content = s;
4737
4757
  }
4738
4758
  kind = "frontMatter";
4739
4759
  }
4740
- class Yr {
4760
+ class Zr {
4741
4761
  constructor(e, t, s) {
4742
4762
  this.ast = e, this.showMarkup = t, this.content = s;
4743
4763
  }
4744
4764
  kind = "codeBlock";
4745
4765
  }
4746
- class jr {
4766
+ class Jr {
4747
4767
  constructor(e, t, s) {
4748
4768
  this.ast = e, this.showMarkup = t, this.content = s;
4749
4769
  }
4750
4770
  kind = "mathBlock";
4751
4771
  }
4752
- class Qr {
4772
+ class ec {
4753
4773
  constructor(e, t, s) {
4754
4774
  this.ast = e, this.content = t, this.showFinalMarkerOnlyLine = s;
4755
4775
  }
4756
4776
  kind = "blockQuote";
4757
4777
  }
4758
- class Zr {
4778
+ class tc {
4759
4779
  constructor(e, t) {
4760
4780
  this.ast = e, this.content = t;
4761
4781
  }
4762
4782
  kind = "list";
4763
4783
  }
4764
- class Jr {
4784
+ class nc {
4765
4785
  constructor(e, t) {
4766
4786
  this.ast = e, this.content = t;
4767
4787
  }
4768
4788
  kind = "table";
4769
4789
  }
4770
- class ec {
4790
+ class sc {
4771
4791
  constructor(e, t) {
4772
4792
  this.ast = e, this.content = t;
4773
4793
  }
4774
4794
  kind = "strong";
4775
4795
  }
4776
- class tc {
4796
+ class ic {
4777
4797
  constructor(e, t) {
4778
4798
  this.ast = e, this.content = t;
4779
4799
  }
4780
4800
  kind = "emphasis";
4781
4801
  }
4782
- class nc {
4802
+ class oc {
4783
4803
  constructor(e, t) {
4784
4804
  this.ast = e, this.content = t;
4785
4805
  }
4786
4806
  kind = "strikethrough";
4787
4807
  }
4788
- class sc {
4808
+ class rc {
4789
4809
  constructor(e, t) {
4790
4810
  this.ast = e, this.content = t;
4791
4811
  }
4792
4812
  kind = "inlineCode";
4793
4813
  }
4794
- class ic {
4814
+ class cc {
4795
4815
  constructor(e, t, s) {
4796
4816
  this.ast = e, this.showMarkup = t, this.content = s;
4797
4817
  }
4798
4818
  kind = "inlineMath";
4799
4819
  }
4800
- class oc {
4820
+ class ac {
4801
4821
  constructor(e, t, s) {
4802
4822
  this.ast = e, this.showMarkup = t, this.content = s;
4803
4823
  }
4804
4824
  kind = "link";
4805
4825
  }
4806
- class rc {
4826
+ class lc {
4807
4827
  constructor(e, t, s) {
4808
4828
  this.ast = e, this.showMarkup = t, this.content = s;
4809
4829
  }
4810
4830
  kind = "image";
4811
4831
  }
4812
- class cc {
4832
+ class dc {
4813
4833
  constructor(e, t, s, i, o = !1) {
4814
4834
  this.ast = e, this.isActive = t, this.content = s, this.level = i, this.isRunning = o;
4815
4835
  }
4816
4836
  kind = "listItem";
4817
4837
  }
4818
- class ac {
4838
+ class hc {
4819
4839
  constructor(e, t, s) {
4820
4840
  this.ast = e, this.isDelimiter = t, this.content = s;
4821
4841
  }
4822
4842
  kind = "tableRow";
4823
4843
  }
4824
- class lc {
4844
+ class uc {
4825
4845
  constructor(e, t, s, i) {
4826
4846
  this.ast = e, this.isActive = t, this.showTableGlue = s, this.content = i;
4827
4847
  }
4828
4848
  kind = "tableCell";
4829
4849
  }
4830
- class dc {
4850
+ class fc {
4831
4851
  /**
4832
4852
  * Whether non-obvious whitespace in this text is revealed (block is active).
4833
4853
  * `leftWordBoundary`/`rightWordBoundary` say whether the inline sibling on
@@ -4840,41 +4860,41 @@ class dc {
4840
4860
  }
4841
4861
  kind = "text";
4842
4862
  }
4843
- class hc {
4863
+ class mc {
4844
4864
  constructor(e, t, s) {
4845
4865
  this.ast = e, this.showMarkup = t, this.content = s;
4846
4866
  }
4847
4867
  kind = "thematicBreak";
4848
4868
  }
4849
- class uc {
4869
+ class gc {
4850
4870
  constructor(e, t, s) {
4851
4871
  this.ast = e, this.showMarkup = t, this.content = s;
4852
4872
  }
4853
4873
  kind = "unhandledBlock";
4854
4874
  }
4855
- class fc {
4875
+ class pc {
4856
4876
  constructor(e, t) {
4857
4877
  this.ast = e, this.visible = t;
4858
4878
  }
4859
4879
  kind = "marker";
4860
4880
  }
4861
- class ii {
4881
+ class oi {
4862
4882
  constructor(e, t, s) {
4863
4883
  this.ast = e, this.visible = t, this.decorateNewline = s;
4864
4884
  }
4865
4885
  kind = "glue";
4866
4886
  }
4867
- class mc {
4887
+ class _c {
4868
4888
  constructor(e, t, s, i, o) {
4869
4889
  this.ast = e, this.side = t, this.deletedRanges = s, this.whole = i, this.originalStart = o;
4870
4890
  }
4871
4891
  kind = "diffDecoration";
4872
4892
  }
4873
- const oi = { showMarkup: !1, showTableGlue: !1, selectionInNode: void 0 };
4893
+ const ri = { showMarkup: !1, showTableGlue: !1, selectionInNode: void 0 };
4874
4894
  function ee(n) {
4875
4895
  return n.inlineFlow ? n : { ...n, inlineFlow: !0 };
4876
4896
  }
4877
- function ri(n, e, t, s, i) {
4897
+ function ci(n, e, t, s, i) {
4878
4898
  const o = /* @__PURE__ */ new Map();
4879
4899
  if (s)
4880
4900
  for (const u of s.children)
@@ -4888,7 +4908,7 @@ function ri(n, e, t, s, i) {
4888
4908
  let p;
4889
4909
  if (!m)
4890
4910
  p = g && !g.isActive && !_ ? g.view : $t(f, {
4891
- ...oi,
4911
+ ...ri,
4892
4912
  pendingAnchorBlock: _ ? f : void 0,
4893
4913
  pendingReplacementInBlock: _
4894
4914
  }, g?.view);
@@ -4908,24 +4928,24 @@ function ri(n, e, t, s, i) {
4908
4928
  a.push({ ast: f, absoluteStart: d, isActive: m, view: p }), l.push({ absoluteStart: d, isActive: m, view: p, kind: "block" }), i && i.anchorBlock === f && l.push({
4909
4929
  absoluteStart: d + f.length,
4910
4930
  isActive: !0,
4911
- view: new Ur(i.ast, i.anchorBlock, i.cursorLine, i.text),
4931
+ view: new jr(i.ast, i.anchorBlock, i.cursorLine, i.text),
4912
4932
  kind: "pendingParagraph"
4913
4933
  });
4914
4934
  } else if (h instanceof W) {
4915
- const f = o.get(h), m = O(f?.view, new ii(h, !1, !1));
4935
+ const f = o.get(h), m = O(f?.view, new oi(h, !1, !1));
4916
4936
  l.push({ absoluteStart: d, isActive: !1, view: m, kind: "glue" });
4917
4937
  }
4918
4938
  d += h.length;
4919
4939
  }
4920
- return new si(n, a, l);
4940
+ return new ii(n, a, l);
4921
4941
  }
4922
4942
  function $t(n, e, t) {
4923
4943
  return Te(n, e, t);
4924
4944
  }
4925
- function gc(n, e, t) {
4926
- return $t(n, e ? { showMarkup: !0, showTableGlue: !1, selectionInNode: void 0 } : oi, t);
4945
+ function vc(n, e, t) {
4946
+ return $t(n, e ? { showMarkup: !0, showTableGlue: !1, selectionInNode: void 0 } : ri, t);
4927
4947
  }
4928
- function pc(n, e, t = !1) {
4948
+ function wc(n, e, t = !1) {
4929
4949
  const s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
4930
4950
  let o = [];
4931
4951
  for (const l of e) {
@@ -4933,7 +4953,7 @@ function pc(n, e, t = !1) {
4933
4953
  o.push(l);
4934
4954
  continue;
4935
4955
  }
4936
- const d = ai(l);
4956
+ const d = li(l);
4937
4957
  d && (o.length && (i.set(d, o), o = []), s.set(d, l));
4938
4958
  }
4939
4959
  const r = o, c = [], a = [];
@@ -4947,12 +4967,12 @@ function pc(n, e, t = !1) {
4947
4967
  c.push(xt(g.node, g.deletedLocal, l.absoluteStart, !0, g.originalStart, t));
4948
4968
  const u = s.get(d.ast);
4949
4969
  u && u.kind === "replaced" && u.deletedLocal.length > 0 && c.push(xt(u.original, u.deletedLocal, l.absoluteStart, !1, u.originalStart, t));
4950
- const h = u && u.kind === "nested" ? ci(d, u, t) : d, f = u?.kind === "added" ? "added" : u?.kind === "replaced" ? "modified" : void 0, m = f ? { ...l, diffKind: f } : h !== d ? { ...l, view: h } : l;
4970
+ const h = u && u.kind === "nested" ? ai(d, u, t) : d, f = u?.kind === "added" ? "added" : u?.kind === "replaced" ? "modified" : void 0, m = f ? { ...l, diffKind: f } : h !== d ? { ...l, view: h } : l;
4951
4971
  c.push(m), a.push({ ast: d.ast, absoluteStart: l.absoluteStart, isActive: l.isActive, view: h });
4952
4972
  }
4953
4973
  for (const l of r)
4954
4974
  c.push(xt(l.node, l.deletedLocal, n.ast.length, !0, l.originalStart, t));
4955
- return new si(n.ast, a, c);
4975
+ return new ii(n.ast, a, c);
4956
4976
  }
4957
4977
  function xt(n, e, t, s, i, o) {
4958
4978
  return {
@@ -4963,9 +4983,9 @@ function xt(n, e, t, s, i, o) {
4963
4983
  };
4964
4984
  }
4965
4985
  function Je(n, e, t, s, i) {
4966
- return new mc(n, gc(n, i || !t), e, t, s);
4986
+ return new _c(n, vc(n, i || !t), e, t, s);
4967
4987
  }
4968
- function ci(n, e, t) {
4988
+ function ai(n, e, t) {
4969
4989
  const s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
4970
4990
  let o = [];
4971
4991
  for (const a of e.children) {
@@ -4973,7 +4993,7 @@ function ci(n, e, t) {
4973
4993
  o.push(a);
4974
4994
  continue;
4975
4995
  }
4976
- const l = ai(a);
4996
+ const l = li(a);
4977
4997
  l && (o.length && (i.set(l, o), o = []), s.set(l, a));
4978
4998
  }
4979
4999
  const r = n.content ?? [], c = [];
@@ -4981,16 +5001,16 @@ function ci(n, e, t) {
4981
5001
  for (const d of i.get(a.ast) ?? [])
4982
5002
  c.push(Je(d.node, d.deletedLocal, !0, d.originalStart, t));
4983
5003
  const l = s.get(a.ast);
4984
- l && l.kind === "replaced" && l.deletedLocal.length > 0 ? (c.push(Je(l.original, l.deletedLocal, !1, l.originalStart, t)), c.push(a)) : l && l.kind === "nested" ? c.push(ci(a, l, t)) : c.push(a);
5004
+ l && l.kind === "replaced" && l.deletedLocal.length > 0 ? (c.push(Je(l.original, l.deletedLocal, !1, l.originalStart, t)), c.push(a)) : l && l.kind === "nested" ? c.push(ai(a, l, t)) : c.push(a);
4985
5005
  }
4986
5006
  for (const a of o)
4987
5007
  c.push(Je(a.node, a.deletedLocal, !0, a.originalStart, t));
4988
- return _c(n, c);
5008
+ return bc(n, c);
4989
5009
  }
4990
- function _c(n, e) {
5010
+ function bc(n, e) {
4991
5011
  return Object.assign(Object.create(Object.getPrototypeOf(n)), n, { content: e });
4992
5012
  }
4993
- function ai(n) {
5013
+ function li(n) {
4994
5014
  switch (n.kind) {
4995
5015
  case "unchanged":
4996
5016
  return n.node;
@@ -5008,7 +5028,7 @@ function Te(n, e, t, s) {
5008
5028
  const i = n;
5009
5029
  switch (i.kind) {
5010
5030
  case "text":
5011
- return O(t, new dc(
5031
+ return O(t, new fc(
5012
5032
  i,
5013
5033
  e.showMarkup,
5014
5034
  s?.left ?? !1,
@@ -5018,59 +5038,59 @@ function Te(n, e, t, s) {
5018
5038
  // The trailing gap is revealed as `↵` glyphs by virtue of its `blockGap`
5019
5039
  // kind (see `GlueViewNode`), so the break needs no inline-flow opt-in.
5020
5040
  case "thematicBreak":
5021
- return O(t, new hc(i, e.showMarkup, $(i.children, e, t)));
5041
+ return O(t, new mc(i, e.showMarkup, $(i.children, e, t)));
5022
5042
  case "unhandledBlock":
5023
- return O(t, new uc(i, e.showMarkup, $(i.children, e, t)));
5043
+ return O(t, new gc(i, e.showMarkup, $(i.children, e, t)));
5024
5044
  case "marker":
5025
- return O(t, new fc(i, kc(i.markerKind, e)));
5045
+ return O(t, new pc(i, Ec(i.markerKind, e)));
5026
5046
  case "glue":
5027
- return O(t, new ii(i, yc(i.glueKind, e), e.inlineFlow ?? !1));
5047
+ return O(t, new oi(i, Cc(i.glueKind, e), e.inlineFlow ?? !1));
5028
5048
  case "heading":
5029
- return O(t, new qr(i, $(i.children, ee(e), t)));
5049
+ return O(t, new Xr(i, $(i.children, ee(e), t)));
5030
5050
  case "paragraph":
5031
- return O(t, new Gr(i, $(i.children, ee(e), t)));
5051
+ return O(t, new Yr(i, $(i.children, ee(e), t)));
5032
5052
  case "frontMatter":
5033
- return O(t, new Xr(i, e.showMarkup, $(i.children, e, t)));
5053
+ return O(t, new Qr(i, e.showMarkup, $(i.children, e, t)));
5034
5054
  case "codeBlock":
5035
- return O(t, new Yr(i, e.showMarkup, $(i.children, e, t)));
5055
+ return O(t, new Zr(i, e.showMarkup, $(i.children, e, t)));
5036
5056
  case "mathBlock":
5037
- return O(t, new jr(i, e.showMarkup, $(i.children, e, t)));
5057
+ return O(t, new Jr(i, e.showMarkup, $(i.children, e, t)));
5038
5058
  case "blockQuote": {
5039
- const o = bc(i), r = e.pendingAnchorBlock ? ie(e.pendingAnchorBlock, i) : void 0, c = o && r !== void 0 ? o.delta(r) : void 0, a = !c || !e.pendingReplacementInBlock?.containsRange(c);
5040
- return O(t, new Qr(i, $(i.children, e, t), a));
5059
+ const o = xc(i), r = e.pendingAnchorBlock ? ie(e.pendingAnchorBlock, i) : void 0, c = o && r !== void 0 ? o.delta(r) : void 0, a = !c || !e.pendingReplacementInBlock?.containsRange(c);
5060
+ return O(t, new ec(i, $(i.children, e, t), a));
5041
5061
  }
5042
5062
  case "list":
5043
- return O(t, Ec(i, e, t));
5063
+ return O(t, Lc(i, e, t));
5044
5064
  case "listItem":
5045
- return O(t, li(i, e, t));
5065
+ return O(t, di(i, e, t));
5046
5066
  case "table":
5047
- return O(t, Cc(i, e, t));
5067
+ return O(t, Mc(i, e, t));
5048
5068
  case "tableRow":
5049
- return O(t, di(i, e, !1, t));
5069
+ return O(t, hi(i, e, !1, t));
5050
5070
  case "tableCell":
5051
- return O(t, hi(i, e.showMarkup, e.showTableGlue, e.selectionInNode, t));
5071
+ return O(t, ui(i, e.showMarkup, e.showTableGlue, e.selectionInNode, t));
5052
5072
  case "strong":
5053
- return O(t, new ec(i, $(i.children, ee(e), t)));
5073
+ return O(t, new sc(i, $(i.children, ee(e), t)));
5054
5074
  case "emphasis":
5055
- return O(t, new tc(i, $(i.children, ee(e), t)));
5075
+ return O(t, new ic(i, $(i.children, ee(e), t)));
5056
5076
  case "strikethrough":
5057
- return O(t, new nc(i, $(i.children, ee(e), t)));
5077
+ return O(t, new oc(i, $(i.children, ee(e), t)));
5058
5078
  case "inlineCode":
5059
- return O(t, new sc(i, $(i.children, ee(e), t)));
5079
+ return O(t, new rc(i, $(i.children, ee(e), t)));
5060
5080
  case "inlineMath":
5061
- return O(t, new ic(i, e.showMarkup, $(i.children, ee(e), t)));
5081
+ return O(t, new cc(i, e.showMarkup, $(i.children, ee(e), t)));
5062
5082
  case "link":
5063
- return O(t, new oc(i, e.showMarkup, $(i.children, ee(e), t)));
5083
+ return O(t, new ac(i, e.showMarkup, $(i.children, ee(e), t)));
5064
5084
  case "image":
5065
- return O(t, new rc(i, e.showMarkup, $(i.children, ee(e), t)));
5085
+ return O(t, new lc(i, e.showMarkup, $(i.children, ee(e), t)));
5066
5086
  case "document":
5067
- return ri(i, /* @__PURE__ */ new Set(), w.ofLength(0), void 0);
5087
+ return ci(i, /* @__PURE__ */ new Set(), w.ofLength(0), void 0);
5068
5088
  }
5069
5089
  }
5070
5090
  function Ht(n) {
5071
- return n.kind === "document" ? n.blocks.map((e) => e.view) : "content" in n ? n.content : vc;
5091
+ return n.kind === "document" ? n.blocks.map((e) => e.view) : "content" in n ? n.content : kc;
5072
5092
  }
5073
- const vc = [];
5093
+ const kc = [];
5074
5094
  function He(n) {
5075
5095
  if (!n)
5076
5096
  return;
@@ -5080,14 +5100,14 @@ function He(n) {
5080
5100
  return e;
5081
5101
  }
5082
5102
  function O(n, e) {
5083
- if (n && n.kind === e.kind && n.ast === e.ast && wc(n, e)) {
5103
+ if (n && n.kind === e.kind && n.ast === e.ast && yc(n, e)) {
5084
5104
  const t = Ht(n), s = Ht(e);
5085
5105
  if (t.length === s.length && t.every((i, o) => i === s[o]))
5086
5106
  return n;
5087
5107
  }
5088
5108
  return e;
5089
5109
  }
5090
- function wc(n, e) {
5110
+ function yc(n, e) {
5091
5111
  switch (n.kind) {
5092
5112
  case "text":
5093
5113
  return n.showWhitespace === e.showWhitespace && n.leftWordBoundary === e.leftWordBoundary && n.rightWordBoundary === e.rightWordBoundary && n.hiddenPrefixLength === e.hiddenPrefixLength;
@@ -5123,7 +5143,7 @@ function wc(n, e) {
5123
5143
  return !0;
5124
5144
  }
5125
5145
  }
5126
- function bc(n) {
5146
+ function xc(n) {
5127
5147
  let e = 0, t;
5128
5148
  for (const s of n.children)
5129
5149
  s instanceof W || (t = s instanceof y && s.markerKind === "blockQuoteMarker" ? w.ofStartAndLength(e, s.length) : void 0), e += s.length;
@@ -5158,14 +5178,14 @@ function zn(n, e) {
5158
5178
  return !1;
5159
5179
  }
5160
5180
  }
5161
- function kc(n, e) {
5181
+ function Ec(n, e) {
5162
5182
  return e.showMarkup || n === "tableCellGlue" && e.showTableGlue;
5163
5183
  }
5164
- function yc(n, e) {
5184
+ function Cc(n, e) {
5165
5185
  return e.showMarkup || n === "tableCellGlue" && e.showTableGlue;
5166
5186
  }
5167
5187
  const qn = ":running:";
5168
- function xc(n) {
5188
+ function Sc(n) {
5169
5189
  if (n.checked === void 0)
5170
5190
  return;
5171
5191
  const e = n.blocks[0];
@@ -5181,8 +5201,8 @@ function xc(n) {
5181
5201
  if (s.startsWith(qn, i))
5182
5202
  return { text: t, hiddenLength: i + qn.length };
5183
5203
  }
5184
- function Ec(n, e, t) {
5185
- const s = He(t), i = Sc(n, e), o = new Set(n.items), r = (e.listLevel ?? 0) + 1, c = [];
5204
+ function Lc(n, e, t) {
5205
+ const s = He(t), i = Tc(n, e), o = new Set(n.items), r = (e.listLevel ?? 0) + 1, c = [];
5186
5206
  let a = 0;
5187
5207
  for (const l of n.children) {
5188
5208
  if (o.has(l)) {
@@ -5192,23 +5212,23 @@ function Ec(n, e, t) {
5192
5212
  selectionInNode: u && e.selectionInNode ? e.selectionInNode.delta(-a) : void 0,
5193
5213
  listLevel: r
5194
5214
  };
5195
- c.push(O(s?.get(d), li(d, h, s?.get(d))));
5215
+ c.push(O(s?.get(d), di(d, h, s?.get(d))));
5196
5216
  } else
5197
5217
  c.push(Te(l, e, s?.get(l)));
5198
5218
  a += l.length;
5199
5219
  }
5200
- return new Zr(n, c);
5220
+ return new tc(n, c);
5201
5221
  }
5202
- function li(n, e, t) {
5203
- const s = He(t), i = e.showMarkup ? void 0 : xc(n), o = i !== void 0, r = o ? { ...e, hideRunnerMarkerNode: i.text, hideRunnerMarkerLength: i.hiddenLength } : e, c = [];
5222
+ function di(n, e, t) {
5223
+ const s = He(t), i = e.showMarkup ? void 0 : Sc(n), o = i !== void 0, r = o ? { ...e, hideRunnerMarkerNode: i.text, hideRunnerMarkerLength: i.hiddenLength } : e, c = [];
5204
5224
  let a = 0;
5205
5225
  for (const l of n.children) {
5206
5226
  const d = r.selectionInNode ? { ...r, selectionInNode: r.selectionInNode.delta(-a) } : r;
5207
5227
  c.push(Te(l, d, s?.get(l))), a += l.length;
5208
5228
  }
5209
- return new cc(n, e.showMarkup, c, e.listLevel ?? 1, o);
5229
+ return new dc(n, e.showMarkup, c, e.listLevel ?? 1, o);
5210
5230
  }
5211
- function Cc(n, e, t) {
5231
+ function Mc(n, e, t) {
5212
5232
  const s = He(t), i = e.showMarkup, o = n.delimiterRow, r = new Set(
5213
5233
  [n.headerRow, n.delimiterRow, ...n.bodyRows].filter((l) => l !== void 0)
5214
5234
  ), c = [];
@@ -5220,32 +5240,32 @@ function Cc(n, e, t) {
5220
5240
  showTableGlue: i,
5221
5241
  selectionInNode: !u && i && e.selectionInNode ? e.selectionInNode.delta(-a) : void 0
5222
5242
  };
5223
- c.push(O(s?.get(d), di(d, h, u, s?.get(d))));
5243
+ c.push(O(s?.get(d), hi(d, h, u, s?.get(d))));
5224
5244
  } else
5225
5245
  c.push(Te(l, e, s?.get(l)));
5226
5246
  a += l.length;
5227
5247
  }
5228
- return new Jr(n, c);
5248
+ return new nc(n, c);
5229
5249
  }
5230
- function di(n, e, t, s) {
5231
- const i = He(s), o = e.showMarkup, r = t ? void 0 : Lc(n, e), c = new Set(n.cells), a = [];
5250
+ function hi(n, e, t, s) {
5251
+ const i = He(s), o = e.showMarkup, r = t ? void 0 : Oc(n, e), c = new Set(n.cells), a = [];
5232
5252
  let l = 0;
5233
5253
  for (const d of n.children) {
5234
5254
  if (c.has(d)) {
5235
5255
  const u = d, h = t ? o : r.has(n.cells.indexOf(u)), f = h && e.selectionInNode ? e.selectionInNode.delta(-l) : void 0;
5236
- a.push(hi(u, h, o, f, i?.get(u)));
5256
+ a.push(ui(u, h, o, f, i?.get(u)));
5237
5257
  } else
5238
5258
  a.push(Te(d, e, i?.get(d)));
5239
5259
  l += d.length;
5240
5260
  }
5241
- return new ac(n, t, a);
5261
+ return new hc(n, t, a);
5242
5262
  }
5243
- function hi(n, e, t, s, i) {
5263
+ function ui(n, e, t, s, i) {
5244
5264
  const o = { showMarkup: e, showTableGlue: t, selectionInNode: s };
5245
- return new lc(n, e, t, $(n.children, ee(o), i));
5265
+ return new uc(n, e, t, $(n.children, ee(o), i));
5246
5266
  }
5247
5267
  const it = /* @__PURE__ */ new Set();
5248
- function Sc(n, e) {
5268
+ function Tc(n, e) {
5249
5269
  if (!e.showMarkup || !e.selectionInNode)
5250
5270
  return it;
5251
5271
  const t = e.selectionInNode;
@@ -5261,12 +5281,12 @@ function Sc(n, e) {
5261
5281
  }
5262
5282
  return s;
5263
5283
  }
5264
- function Lc(n, e) {
5284
+ function Oc(n, e) {
5265
5285
  if (!e.showMarkup || !e.selectionInNode)
5266
5286
  return it;
5267
5287
  const t = e.selectionInNode;
5268
5288
  if (t.isEmpty) {
5269
- const o = Mc(n, t.start);
5289
+ const o = Rc(n, t.start);
5270
5290
  return o === void 0 ? it : /* @__PURE__ */ new Set([o]);
5271
5291
  }
5272
5292
  const s = /* @__PURE__ */ new Set();
@@ -5277,7 +5297,7 @@ function Lc(n, e) {
5277
5297
  }
5278
5298
  return s;
5279
5299
  }
5280
- function Mc(n, e) {
5300
+ function Rc(n, e) {
5281
5301
  let t = 0;
5282
5302
  for (const s of n.children) {
5283
5303
  const i = t + s.length, o = n.cells.indexOf(s);
@@ -5286,7 +5306,7 @@ function Mc(n, e) {
5286
5306
  t = i;
5287
5307
  }
5288
5308
  }
5289
- function Tc(n) {
5309
+ function Nc(n) {
5290
5310
  const e = [], t = (s, i) => {
5291
5311
  const o = s.children;
5292
5312
  if (o.length === 0) {
@@ -5309,11 +5329,11 @@ function Gn(n, e) {
5309
5329
  function _t(n, e, t = Number.POSITIVE_INFINITY) {
5310
5330
  if (t <= 0)
5311
5331
  return [];
5312
- const s = Tc(n), i = e.slice().sort((c, a) => c.start - a.start || c.endExclusive - a.endExclusive), o = [];
5332
+ const s = Nc(n), i = e.slice().sort((c, a) => c.start - a.start || c.endExclusive - a.endExclusive), o = [];
5313
5333
  let r = 0;
5314
5334
  for (const c of i) {
5315
5335
  if (c.isEmpty) {
5316
- const a = Oc(s, c.start);
5336
+ const a = Ic(s, c.start);
5317
5337
  if (a && (o.push({ range: Gn(a, c), sourceRange: c }), o.length >= t))
5318
5338
  return o;
5319
5339
  continue;
@@ -5336,10 +5356,10 @@ function _t(n, e, t = Number.POSITIVE_INFINITY) {
5336
5356
  function Et(n, e) {
5337
5357
  return _t(n, e).map((t) => t.range);
5338
5358
  }
5339
- function Oc(n, e) {
5359
+ function Ic(n, e) {
5340
5360
  return n.find((t) => t.start <= e && e <= t.start + t.len);
5341
5361
  }
5342
- class Rc extends H {
5362
+ class Pc extends H {
5343
5363
  constructor(e, t) {
5344
5364
  super(), this._parent = e, this.element = document.createElement("div"), this.element.className = "md-diff-highlight-layer", t ? (this._coordinateSpace = t, this._coordinateProbe = void 0) : (this._coordinateProbe = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._coordinateProbe.setAttribute("aria-hidden", "true"), this._coordinateProbe.style.position = "absolute", this._coordinateProbe.style.inset = "0", this._coordinateProbe.style.width = "100%", this._coordinateProbe.style.height = "100%", this._coordinateProbe.style.visibility = "hidden", this._coordinateProbe.style.pointerEvents = "none", this.element.appendChild(this._coordinateProbe), this._coordinateSpace = pt.forSvgOverlay(this._coordinateProbe)), this._resizeObserver = new ResizeObserver(() => {
5345
5365
  this._last && this._repaint(this._last);
@@ -5399,14 +5419,14 @@ class Rc extends H {
5399
5419
  this.element.replaceChildren(...t);
5400
5420
  }
5401
5421
  }
5402
- class Nc extends H {
5422
+ class Bc extends H {
5403
5423
  element;
5404
5424
  rendering;
5405
5425
  _path;
5406
5426
  constructor(e) {
5407
5427
  super(), this.element = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this.element.setAttribute("class", "md-selection-layer"), this._path = document.createElementNS("http://www.w3.org/2000/svg", "path"), this._path.setAttribute("class", "md-selection-path"), this.element.appendChild(this._path), this.rendering = P(this, (t) => {
5408
5428
  const s = t.readObservable(e.selection), i = t.readObservable(e.visualLineMap), o = t.readObservable(e.blocks);
5409
- return Ic(this._path, s, i, o);
5429
+ return Ac(this._path, s, i, o);
5410
5430
  }), this._register(B((t) => {
5411
5431
  t.readObservable(this.rendering);
5412
5432
  }));
@@ -5417,14 +5437,14 @@ class Un {
5417
5437
  this.rects = e;
5418
5438
  }
5419
5439
  }
5420
- function Ic(n, e, t, s) {
5440
+ function Ac(n, e, t, s) {
5421
5441
  if (!e || e.isCollapsed)
5422
5442
  return n.setAttribute("d", ""), new Un([]);
5423
- const i = ui(e.range, t, s);
5424
- return n.setAttribute("d", mi(i, 4)), new Un(i);
5443
+ const i = fi(e.range, t, s);
5444
+ return n.setAttribute("d", gi(i, 4)), new Un(i);
5425
5445
  }
5426
- const Pc = 0.4;
5427
- function ui(n, e, t) {
5446
+ const Dc = 0.4;
5447
+ function fi(n, e, t) {
5428
5448
  if (n.isEmpty)
5429
5449
  return [];
5430
5450
  const s = n, i = (h, f, m, g) => S.fromPointPoint(h, f, Math.max(h, m), Math.max(f, g)), o = e.sourceLines, r = [];
@@ -5446,9 +5466,9 @@ function ui(n, e, t) {
5446
5466
  E = h.xAtOffset(s.endExclusive);
5447
5467
  else {
5448
5468
  const x = s.endExclusive > p;
5449
- E = h.rect.right + (x && m ? h.rect.height * Pc : 0);
5469
+ E = h.rect.right + (x && m ? h.rect.height * Dc : 0);
5450
5470
  }
5451
- const b = fi(g);
5471
+ const b = mi(g);
5452
5472
  b && (v = Math.max(v, b.left), E = Math.min(E, b.right)), c.push(i(v, h.rect.top, E, h.rect.bottom)), a.push({ left: v, right: E, top: h.rect.top, bottom: h.rect.top + h.rect.height });
5453
5473
  }
5454
5474
  for (let h = 0; h < a.length - 1; h++) {
@@ -5470,7 +5490,7 @@ function ui(n, e, t) {
5470
5490
  const f = t[h], m = t[h + 1], g = f.absoluteStart + f.block.length, _ = m.absoluteStart;
5471
5491
  if (g < _ && !s.containsRange(w.fromTo(g, _)) || g >= _ && !(u[h] && u[h + 1]))
5472
5492
  continue;
5473
- const p = f.rect, v = m.rect, E = Ac(e, m, v.top), b = p.bottom;
5493
+ const p = f.rect, v = m.rect, E = Vc(e, m, v.top), b = p.bottom;
5474
5494
  if (E <= b)
5475
5495
  continue;
5476
5496
  const x = d.get(f), T = l.get(m);
@@ -5502,13 +5522,13 @@ function Ct(n, e) {
5502
5522
  }
5503
5523
  return !1;
5504
5524
  }
5505
- function fi(n) {
5525
+ function mi(n) {
5506
5526
  return n?.viewportClip;
5507
5527
  }
5508
- function Bc(n, e) {
5528
+ function Fc(n, e) {
5509
5529
  return n.find((t) => e >= t.absoluteStart && e <= t.absoluteStart + t.block.length);
5510
5530
  }
5511
- function Ac(n, e, t) {
5531
+ function Vc(n, e, t) {
5512
5532
  const s = w.ofStartAndLength(e.absoluteStart, e.block.length);
5513
5533
  for (const i of n.sourceLines) {
5514
5534
  const o = ot(i);
@@ -5517,7 +5537,7 @@ function Ac(n, e, t) {
5517
5537
  }
5518
5538
  return t;
5519
5539
  }
5520
- function mi(n, e) {
5540
+ function gi(n, e) {
5521
5541
  if (n.length === 0)
5522
5542
  return "";
5523
5543
  const t = n.slice().sort((o, r) => o.y - r.y || o.x - r.x), s = [];
@@ -5526,9 +5546,9 @@ function mi(n, e) {
5526
5546
  const r = i[i.length - 1], c = r !== void 0 && o.y <= r.y + r.height + 0.5, a = r !== void 0 && Math.max(r.x, o.x) < Math.min(r.x + r.width, o.x + o.width);
5527
5547
  c && a ? i.push(o) : (i.length > 0 && s.push(i), i = [o]);
5528
5548
  }
5529
- return i.length > 0 && s.push(i), s.map((o) => Dc(o, e)).filter(Boolean).join(" ");
5549
+ return i.length > 0 && s.push(i), s.map((o) => $c(o, e)).filter(Boolean).join(" ");
5530
5550
  }
5531
- function Dc(n, e) {
5551
+ function $c(n, e) {
5532
5552
  const t = [];
5533
5553
  t.push({ x: n[0].x + n[0].width, y: n[0].y, convex: !0 });
5534
5554
  for (let i = 0; i < n.length - 1; i++) {
@@ -5547,9 +5567,9 @@ function Dc(n, e) {
5547
5567
  t.push({ x: o.x, y: c, convex: a }), t.push({ x: r.x, y: c, convex: !a });
5548
5568
  }
5549
5569
  }
5550
- return t.push({ x: n[0].x, y: n[0].y, convex: !0 }), Fc(t, e);
5570
+ return t.push({ x: n[0].x, y: n[0].y, convex: !0 }), Hc(t, e);
5551
5571
  }
5552
- function Fc(n, e) {
5572
+ function Hc(n, e) {
5553
5573
  const t = n.length;
5554
5574
  if (t < 3)
5555
5575
  return "";
@@ -5580,7 +5600,7 @@ function St(n, e, t) {
5580
5600
  function J(n) {
5581
5601
  return n.toFixed(2);
5582
5602
  }
5583
- class Vc extends H {
5603
+ class Wc extends H {
5584
5604
  element;
5585
5605
  rendering;
5586
5606
  constructor(e) {
@@ -5591,7 +5611,7 @@ class Vc extends H {
5591
5611
  const o = i.lineIndexOfPosition(s);
5592
5612
  if (o === void 0)
5593
5613
  return this.element.style.display = "none", new Xe(s, !1, S.EMPTY);
5594
- const r = i.lineRect(o).withZeroWidthAt(i.xAtPosition(s)), c = e.blocks ? t.readObservable(e.blocks) : void 0, a = c && s.kind === "source" ? fi(Bc(c, s.offset)) : void 0;
5614
+ const r = i.lineRect(o).withZeroWidthAt(i.xAtPosition(s)), c = e.blocks ? t.readObservable(e.blocks) : void 0, a = c && s.kind === "source" ? mi(Fc(c, s.offset)) : void 0;
5595
5615
  return a && (r.x < a.left - 0.5 || r.x > a.right + 0.5) ? (this.element.style.display = "none", new Xe(s, !1, S.EMPTY)) : (this.element.style.left = `${r.x}px`, this.element.style.top = `${r.y}px`, this.element.style.height = `${r.height}px`, this.element.style.display = "", new Xe(s, !0, r));
5596
5616
  }), this._register(B((t) => {
5597
5617
  t.readObservable(this.rendering);
@@ -5605,7 +5625,7 @@ class Xe {
5605
5625
  this.position = e, this.visible = t, this.rect = s;
5606
5626
  }
5607
5627
  }
5608
- class $c extends H {
5628
+ class Kc extends H {
5609
5629
  element;
5610
5630
  rendering;
5611
5631
  constructor(e) {
@@ -5621,7 +5641,7 @@ class $c extends H {
5621
5641
  return new Xn([]);
5622
5642
  const s = [];
5623
5643
  for (const i of e) {
5624
- const o = i.type === "deleted" || i.range.isEmpty ? Wc(i, t) : Hc(i, t);
5644
+ const o = i.type === "deleted" || i.range.isEmpty ? qc(i, t) : zc(i, t);
5625
5645
  if (!o)
5626
5646
  continue;
5627
5647
  const r = document.createElement("div");
@@ -5635,20 +5655,20 @@ class Xn {
5635
5655
  this.rects = e;
5636
5656
  }
5637
5657
  }
5638
- function Hc(n, e) {
5658
+ function zc(n, e) {
5639
5659
  let t = 1 / 0, s = -1 / 0;
5640
5660
  for (const i of e.sourceLines) {
5641
- const o = Kc(i);
5661
+ const o = Gc(i);
5642
5662
  !o || !n.range.intersects(o) || (t = Math.min(t, i.rect.top), s = Math.max(s, i.rect.top + i.rect.height));
5643
5663
  }
5644
5664
  if (!(s <= t))
5645
5665
  return { type: n.type, y: t, height: s - t };
5646
5666
  }
5647
- function Wc(n, e) {
5667
+ function qc(n, e) {
5648
5668
  const t = e.lineIndexOfOffset(n.range.start);
5649
5669
  return { type: "deleted", y: e.lineRect(t).top, height: 0 };
5650
5670
  }
5651
- function Kc(n) {
5671
+ function Gc(n) {
5652
5672
  if (n.runs.length === 0)
5653
5673
  return;
5654
5674
  let e = 1 / 0, t = -1 / 0;
@@ -5659,10 +5679,10 @@ function Kc(n) {
5659
5679
  function Yn(n) {
5660
5680
  return n.windowHasFocus && n.focusIsUnclaimed;
5661
5681
  }
5662
- function zc(n) {
5682
+ function Uc(n) {
5663
5683
  return !n.windowHasFocus;
5664
5684
  }
5665
- function gi(n) {
5685
+ function pi(n) {
5666
5686
  const e = n.ownerDocument, t = e.defaultView ?? window;
5667
5687
  let s = S.fromPointSize(
5668
5688
  0,
@@ -5674,7 +5694,7 @@ function gi(n) {
5674
5694
  const o = t.getComputedStyle(i), r = Qn(o.overflowX), c = Qn(o.overflowY);
5675
5695
  if (!r && !c)
5676
5696
  continue;
5677
- const a = pi(i), l = r ? Math.max(s.left, a.left) : s.left, d = r ? Math.min(s.right, a.right) : s.right, u = c ? Math.max(s.top, a.top) : s.top, h = c ? Math.min(s.bottom, a.bottom) : s.bottom;
5697
+ const a = _i(i), l = r ? Math.max(s.left, a.left) : s.left, d = r ? Math.min(s.right, a.right) : s.right, u = c ? Math.max(s.top, a.top) : s.top, h = c ? Math.min(s.bottom, a.bottom) : s.bottom;
5678
5698
  if (d <= l || h <= u)
5679
5699
  return S.fromPointSize(l, u, 0, 0);
5680
5700
  s = S.fromPointPoint(
@@ -5686,7 +5706,7 @@ function gi(n) {
5686
5706
  }
5687
5707
  return s;
5688
5708
  }
5689
- function pi(n) {
5709
+ function _i(n) {
5690
5710
  const e = n.getBoundingClientRect(), t = n.offsetWidth > 0 ? e.width / n.offsetWidth : 1, s = n.offsetHeight > 0 ? e.height / n.offsetHeight : 1;
5691
5711
  return S.fromPointSize(
5692
5712
  e.left + n.clientLeft * t,
@@ -5695,14 +5715,14 @@ function pi(n) {
5695
5715
  n.clientHeight * s
5696
5716
  );
5697
5717
  }
5698
- function qc(n, e, t) {
5718
+ function Xc(n, e, t) {
5699
5719
  const s = n.getBoundingClientRect(), i = n.offsetWidth > 0 ? s.width / n.offsetWidth : 1, o = n.offsetHeight > 0 ? s.height / n.offsetHeight : 1;
5700
5720
  return {
5701
5721
  x: e / i,
5702
5722
  y: t / o
5703
5723
  };
5704
5724
  }
5705
- function Gc(n) {
5725
+ function Yc(n) {
5706
5726
  const t = n.ownerDocument.defaultView ?? window, s = [];
5707
5727
  for (let i = n.parentElement; i; i = i.parentElement) {
5708
5728
  const o = t.getComputedStyle(i), r = Zn(o.overflowX) && i.scrollWidth > i.clientWidth, c = Zn(o.overflowY) && i.scrollHeight > i.clientHeight;
@@ -5719,15 +5739,15 @@ function Qn(n) {
5719
5739
  function Zn(n) {
5720
5740
  return n === "auto" || n === "scroll" || n === "hidden";
5721
5741
  }
5722
- const Uc = 900;
5723
- class Il extends H {
5742
+ const jc = 900;
5743
+ class Al extends H {
5724
5744
  constructor(e, t) {
5725
5745
  super(), this._model = e, this._options = t, this.element = document.createElement("div"), this.element.className = "md-editor", this._options?.classNames && this.element.classList.add(...this._options.classNames), this.element.tabIndex = 0, this._contentContainer = document.createElement("div"), this._contentContainer.className = "md-editor-content", this.element.appendChild(this._contentContainer);
5726
- const s = this._options?.limitedWidth ?? yi(Uc);
5746
+ const s = this._options?.limitedWidth ?? xi(jc);
5727
5747
  this._register(B((l) => {
5728
5748
  const d = s.read(l);
5729
5749
  this._contentContainer.style.maxWidth = d === void 0 ? "" : `${d}px`;
5730
- })), this.measuredLayout = new Eo();
5750
+ })), this.measuredLayout = new Co();
5731
5751
  let i = -1, o = -1, r = -1;
5732
5752
  this._resizeObserver = new ResizeObserver(() => {
5733
5753
  this.element.classList.toggle("md-editor-narrow", this.element.clientWidth <= 320);
@@ -5751,18 +5771,18 @@ class Il extends H {
5751
5771
  dispose: () => {
5752
5772
  this._contentContainer.removeEventListener("scroll", a, { capture: !0 }), c && cancelAnimationFrame(c);
5753
5773
  }
5754
- }), this._selectionView = this._register(new Nc({
5774
+ }), this._selectionView = this._register(new Bc({
5755
5775
  selection: this._model.selection,
5756
5776
  visualLineMap: this.measuredLayout.visualLineMap,
5757
5777
  blocks: this._selectionBlocksObs
5758
- })), this._contentContainer.appendChild(this._selectionView.element), this.coordinateSpace = pt.forSvgOverlay(this._selectionView.element), this._cursorView = this._register(new Vc({
5778
+ })), this._contentContainer.appendChild(this._selectionView.element), this.coordinateSpace = pt.forSvgOverlay(this._selectionView.element), this._cursorView = this._register(new Wc({
5759
5779
  position: this._model.cursorPosition,
5760
5780
  visualLineMap: this.measuredLayout.visualLineMap,
5761
5781
  blocks: this._selectionBlocksObs
5762
- })), this._contentContainer.appendChild(this._cursorView.element), this._gutterMarkersView = this._register(new $c({
5782
+ })), this._contentContainer.appendChild(this._cursorView.element), this._gutterMarkersView = this._register(new Kc({
5763
5783
  markers: this._model.gutterMarkers,
5764
5784
  visualLineMap: this.measuredLayout.visualLineMap
5765
- })), this._contentContainer.appendChild(this._gutterMarkersView.element), this._diffHighlightsView = this._register(new Rc(this._contentContainer, this.coordinateSpace)), this._contentContainer.appendChild(this._diffHighlightsView.element), this._register(B((l) => {
5785
+ })), this._contentContainer.appendChild(this._gutterMarkersView.element), this._diffHighlightsView = this._register(new Pc(this._contentContainer, this.coordinateSpace)), this._contentContainer.appendChild(this._diffHighlightsView.element), this._register(B((l) => {
5766
5786
  const d = this._model.readonlyMode.read(l);
5767
5787
  this.element.classList.toggle("md-readonly", d), d || this.element.classList.remove("md-readonly-editing-attempt");
5768
5788
  })), this._options?.showReadonlyToggle !== !1 && this._setupReadonlyToggle(), this.editContext = new EditContext({
@@ -5881,7 +5901,7 @@ class Il extends H {
5881
5901
  rangeRects(e) {
5882
5902
  return P(this, (t) => {
5883
5903
  const s = this.measuredLayout.visualLineMap.read(t), i = this._selectionBlocksObs.read(t);
5884
- return ui(e, s, i);
5904
+ return fi(e, s, i);
5885
5905
  });
5886
5906
  }
5887
5907
  /**
@@ -6054,7 +6074,7 @@ class Il extends H {
6054
6074
  this.focus();
6055
6075
  return;
6056
6076
  }
6057
- if (!zc(e))
6077
+ if (!Uc(e))
6058
6078
  return;
6059
6079
  const t = this.element.ownerDocument.defaultView ?? window, s = () => {
6060
6080
  t.removeEventListener("focus", s), this.tryAutoFocus();
@@ -6087,7 +6107,7 @@ class Il extends H {
6087
6107
  const i = this.measuredLayout.visualLineMap.get();
6088
6108
  return i.isEmpty ? void 0 : i.offsetAtPoint(this.coordinateSpace.capture().toLocalPoint(e));
6089
6109
  }
6090
- const s = yr(e);
6110
+ const s = xr(e);
6091
6111
  if (s)
6092
6112
  return this._document.get()?.resolveSource(s);
6093
6113
  }
@@ -6158,7 +6178,7 @@ class Il extends H {
6158
6178
  this.editContext.text !== s && this.editContext.updateText(0, this.editContext.text.length, s);
6159
6179
  const h = c?.range;
6160
6180
  this.editContext.updateSelection(h?.start ?? 0, h?.endExclusive ?? 0);
6161
- const f = this._document.get(), m = ri(
6181
+ const f = this._document.get(), m = ci(
6162
6182
  t,
6163
6183
  r,
6164
6184
  c?.range,
@@ -6172,7 +6192,7 @@ class Il extends H {
6172
6192
  } : void 0
6173
6193
  );
6174
6194
  this._previousViewData = m;
6175
- const g = l ? pc(m, l.items, this._options?.diffDecorationsActive) : m;
6195
+ const g = l ? wc(m, l.items, this._options?.diffDecorationsActive) : m;
6176
6196
  this._viewData.set(g, void 0);
6177
6197
  const _ = this._options?.embeddedCodeEditorFactory ? { ...this._options, embeddedCodeEditorReadOnly: d, embeddedCodeEditorFactoryVersion: u } : this._options, p = rn.create(g, _, f);
6178
6198
  if (f) {
@@ -6260,7 +6280,7 @@ class Il extends H {
6260
6280
  if (!c)
6261
6281
  return;
6262
6282
  const a = () => {
6263
- const _ = Yc(i.flatMap((v) => Array.from(v.range.getClientRects())));
6283
+ const _ = Zc(i.flatMap((v) => Array.from(v.range.getClientRects())));
6264
6284
  if (_ || !e.isEmpty)
6265
6285
  return _;
6266
6286
  const p = this.measuredLayout.visualLineMap.get();
@@ -6281,15 +6301,15 @@ class Il extends H {
6281
6301
  let l = a();
6282
6302
  if (!l)
6283
6303
  return;
6284
- const d = gi(c);
6304
+ const d = pi(c);
6285
6305
  let u = this._isRevealOccluded(l);
6286
6306
  if (jn(d, l) && !u)
6287
6307
  return;
6288
- const h = Gc(c);
6308
+ const h = Yc(c);
6289
6309
  for (let _ = 0; _ < h.length; _++) {
6290
6310
  const p = h[_];
6291
6311
  l = a() ?? l, u = this._isRevealOccluded(l);
6292
- const v = pi(p), E = p.scrollWidth > p.clientWidth, b = p.scrollHeight > p.clientHeight, x = qc(
6312
+ const v = _i(p), E = p.scrollWidth > p.clientWidth, b = p.scrollHeight > p.clientHeight, x = Xc(
6293
6313
  p,
6294
6314
  l.left + l.width / 2 - (v.left + v.width / 2),
6295
6315
  l.top + l.height / 2 - (v.top + v.height / 2)
@@ -6316,17 +6336,17 @@ class Il extends H {
6316
6336
  _isRevealOccluded(e) {
6317
6337
  for (const t of this._revealOcclusions) {
6318
6338
  const i = t.ownerDocument.defaultView?.getComputedStyle(t).visibility;
6319
- if (t.isConnected && t.getClientRects().length > 0 && i !== "hidden" && i !== "collapse" && Xc(e, jc(t.getBoundingClientRect())))
6339
+ if (t.isConnected && t.getClientRects().length > 0 && i !== "hidden" && i !== "collapse" && Qc(e, Jc(t.getBoundingClientRect())))
6320
6340
  return !0;
6321
6341
  }
6322
6342
  return !1;
6323
6343
  }
6324
6344
  }
6325
- function Xc(n, e) {
6345
+ function Qc(n, e) {
6326
6346
  const t = n.width === 0 ? e.containsX(n.left) : Math.max(n.left, e.left) < Math.min(n.right, e.right), s = n.height === 0 ? e.containsY(n.top) : Math.max(n.top, e.top) < Math.min(n.bottom, e.bottom);
6327
6347
  return t && s;
6328
6348
  }
6329
- function Yc(n) {
6349
+ function Zc(n) {
6330
6350
  if (n.length === 0)
6331
6351
  return;
6332
6352
  let e = Number.POSITIVE_INFINITY, t = Number.POSITIVE_INFINITY, s = Number.NEGATIVE_INFINITY, i = Number.NEGATIVE_INFINITY;
@@ -6334,11 +6354,11 @@ function Yc(n) {
6334
6354
  e = Math.min(e, o.left), t = Math.min(t, o.top), s = Math.max(s, o.right), i = Math.max(i, o.bottom);
6335
6355
  return S.fromPointPoint(e, t, s, i);
6336
6356
  }
6337
- function jc(n) {
6357
+ function Jc(n) {
6338
6358
  return S.fromPointPoint(n.left, n.top, n.right, n.bottom);
6339
6359
  }
6340
- const Qc = 1e3, Zc = "md-editor-find-match", Jc = "md-editor-find-current", Jn = /* @__PURE__ */ new WeakMap();
6341
- class ea {
6360
+ const ea = 1e3, ta = "md-editor-find-match", na = "md-editor-find-current", Jn = /* @__PURE__ */ new WeakMap();
6361
+ class sa {
6342
6362
  constructor(e) {
6343
6363
  this._registry = e;
6344
6364
  }
@@ -6356,24 +6376,24 @@ class ea {
6356
6376
  }
6357
6377
  _refresh() {
6358
6378
  const e = [...this._entries].flatMap((s) => s.matches), t = [...this._entries].flatMap((s) => s.current);
6359
- this._set(Zc, e), this._set(Jc, t);
6379
+ this._set(ta, e), this._set(na, t);
6360
6380
  }
6361
6381
  _set(e, t) {
6362
6382
  t.length === 0 ? this._registry.delete(e) : this._registry.set(e, new Highlight(...t));
6363
6383
  }
6364
6384
  }
6365
- function ta(n) {
6385
+ function ia(n) {
6366
6386
  const e = n.defaultView?.CSS.highlights;
6367
6387
  if (!e)
6368
6388
  return { update: () => {
6369
6389
  }, dispose: () => {
6370
6390
  } };
6371
6391
  let t = Jn.get(n);
6372
- return t || (t = new ea(e), Jn.set(n, t)), t.add();
6392
+ return t || (t = new sa(e), Jn.set(n, t)), t.add();
6373
6393
  }
6374
- class na extends H {
6394
+ class oa extends H {
6375
6395
  constructor(e, t) {
6376
- super(), this._view = e, this._matchesLayer = ts("md-find-matches-layer"), this._currentLayer = ts("md-find-current-layer"), this._highlightRegistration = this._register(ta(this._view.element.ownerDocument)), this._register(this._view.mountOverlay(this._matchesLayer, "below-selection")), this._register(this._view.mountOverlay(this._currentLayer, "above-decorations")), this._register(B((r) => {
6396
+ super(), this._view = e, this._matchesLayer = ts("md-find-matches-layer"), this._currentLayer = ts("md-find-current-layer"), this._highlightRegistration = this._register(ia(this._view.element.ownerDocument)), this._register(this._view.mountOverlay(this._matchesLayer, "below-selection")), this._register(this._view.mountOverlay(this._currentLayer, "above-decorations")), this._register(B((r) => {
6377
6397
  const c = t.isRevealed.read(r);
6378
6398
  if (!c) {
6379
6399
  this._snapshot = void 0, this._schedulePaint();
@@ -6421,9 +6441,9 @@ class na extends H {
6421
6441
  this._matchesLayer.replaceChildren(), this._currentLayer.replaceChildren(), this._highlightRegistration.update([], []);
6422
6442
  return;
6423
6443
  }
6424
- const t = this._view.coordinateSpace.capture(), s = gi(this._view.overlayContainer), i = t.toLocalRect(s), o = sa(
6444
+ const t = this._view.coordinateSpace.capture(), s = pi(this._view.overlayContainer), i = t.toLocalRect(s), o = ra(
6425
6445
  this._view.measuredLayout.visualLineMap.get().sourceLines.flatMap((u) => Math.max(u.rect.top, i.top) >= Math.min(u.rect.bottom, i.bottom) ? [] : u.runs.flatMap((h) => {
6426
- const f = ia(h, u.rect, i);
6446
+ const f = ca(h, u.rect, i);
6427
6447
  return f ? [f] : [];
6428
6448
  }))
6429
6449
  ), r = ns(
@@ -6436,7 +6456,7 @@ class na extends H {
6436
6456
  e.measurements,
6437
6457
  i,
6438
6458
  "md-find-match-rect",
6439
- Qc
6459
+ ea
6440
6460
  ), d = this._paintRanges(
6441
6461
  this._currentLayer,
6442
6462
  e.document,
@@ -6539,7 +6559,7 @@ function ss(n, e) {
6539
6559
  return o;
6540
6560
  }
6541
6561
  }
6542
- function sa(n) {
6562
+ function ra(n) {
6543
6563
  const e = n.slice().sort((s, i) => s.start - i.start || s.endExclusive - i.endExclusive), t = [];
6544
6564
  for (const s of e) {
6545
6565
  const i = t[t.length - 1];
@@ -6547,7 +6567,7 @@ function sa(n) {
6547
6567
  }
6548
6568
  return t;
6549
6569
  }
6550
- function ia(n, e, t) {
6570
+ function ca(n, e, t) {
6551
6571
  if (n.sourceRange.isEmpty)
6552
6572
  return t.left <= n.rect.left && n.rect.left <= t.right ? n.sourceRange : void 0;
6553
6573
  let s = n.sourceStart;
@@ -6584,7 +6604,7 @@ function os(n, e, t) {
6584
6604
  const s = Math.max(n.left, e.left, t?.left ?? Number.NEGATIVE_INFINITY), i = Math.min(n.right, e.right, t?.right ?? Number.POSITIVE_INFINITY), o = Math.max(n.top, e.top), r = Math.min(n.bottom, e.bottom);
6585
6605
  return s < i && o < r ? S.fromPointPoint(s, o, i, r) : void 0;
6586
6606
  }
6587
- const oa = 19999;
6607
+ const aa = 19999;
6588
6608
  class rt {
6589
6609
  constructor(e, t, s, i, o) {
6590
6610
  this._source = e, this._flags = t, this._wholeWord = s, this._wordSeparators = i, this.isEmpty = o;
@@ -6595,7 +6615,7 @@ class rt {
6595
6615
  kind: "valid",
6596
6616
  pattern: new rt("", "gmu", e.wholeWord, e.wordSeparators, !0)
6597
6617
  };
6598
- const t = e.isRegex ? e.searchString : ra(e.searchString), s = `gmu${e.matchCase ? "" : "i"}`;
6618
+ const t = e.isRegex ? e.searchString : la(e.searchString), s = `gmu${e.matchCase ? "" : "i"}`;
6599
6619
  try {
6600
6620
  new RegExp(t, s);
6601
6621
  } catch (i) {
@@ -6609,7 +6629,7 @@ class rt {
6609
6629
  pattern: new rt(t, s, e.wholeWord, e.wordSeparators, !1)
6610
6630
  };
6611
6631
  }
6612
- findMatches(e, t, s = oa) {
6632
+ findMatches(e, t, s = aa) {
6613
6633
  if (this.isEmpty || s <= 0)
6614
6634
  return { matches: [], isCapped: !1 };
6615
6635
  const i = [];
@@ -6631,7 +6651,7 @@ class rt {
6631
6651
  return this._forEachMatch(e, s, (d) => o?.equals(d) ? (l = !0, !0) : (a = d, d.endExclusive <= r && (c = d), !0)), c ?? (i ? a : void 0) ?? (l ? o : void 0);
6632
6652
  }
6633
6653
  _forEachMatch(e, t, s) {
6634
- const i = ca(t, e.length);
6654
+ const i = da(t, e.length);
6635
6655
  if (i?.isEmpty)
6636
6656
  return;
6637
6657
  const o = new RegExp(this._source, this._flags);
@@ -6640,29 +6660,29 @@ class rt {
6640
6660
  if (!r)
6641
6661
  return;
6642
6662
  const c = w.ofStartAndLength(r.index, r[0].length);
6643
- if ((!i || i.containsRange(c)) && (!this._wholeWord || aa(e, c, this._wordSeparators)) && !s(c))
6663
+ if ((!i || i.containsRange(c)) && (!this._wholeWord || ha(e, c, this._wordSeparators)) && !s(c))
6644
6664
  return;
6645
- r[0].length === 0 && (o.lastIndex = la(e, o.lastIndex));
6665
+ r[0].length === 0 && (o.lastIndex = ua(e, o.lastIndex));
6646
6666
  }
6647
6667
  }
6648
6668
  }
6649
- function _i(n) {
6669
+ function vi(n) {
6650
6670
  return n.replace(/[\\{}()[\]^$+*?.|]/g, "\\$&");
6651
6671
  }
6652
- function ra(n) {
6653
- return n.split(/\r\n|\r|\n/).map(_i).join("(?:\\r\\n|[\\r\\n])");
6672
+ function la(n) {
6673
+ return n.split(/\r\n|\r|\n/).map(vi).join("(?:\\r\\n|[\\r\\n])");
6654
6674
  }
6655
- function ca(n, e) {
6675
+ function da(n, e) {
6656
6676
  if (!n)
6657
6677
  return;
6658
6678
  const t = ct(n.start, 0, e), s = ct(n.endExclusive, 0, e);
6659
6679
  return t <= s ? new w(t, s) : w.emptyAt(t);
6660
6680
  }
6661
- function aa(n, e, t) {
6681
+ function ha(n, e, t) {
6662
6682
  const s = n[e.start - 1], i = n[e.start], o = n[e.endExclusive - 1], r = n[e.endExclusive], c = e.start === 0 || !We(s, t) || e.length > 0 && !We(i, t), a = e.endExclusive === n.length || !We(r, t) || e.length > 0 && !We(o, t);
6663
6683
  return c && a;
6664
6684
  }
6665
- function la(n, e) {
6685
+ function ua(n, e) {
6666
6686
  if (e >= n.length)
6667
6687
  return n.length + 1;
6668
6688
  const t = n.charCodeAt(e);
@@ -6674,7 +6694,7 @@ function la(n, e) {
6674
6694
  function ct(n, e, t) {
6675
6695
  return Math.min(Math.max(n, e), t);
6676
6696
  }
6677
- class vi {
6697
+ class wi {
6678
6698
  constructor(e) {
6679
6699
  this._editorModel = e, this._observedSourceTextId = this._editorModel.getSourceTextId(this._editorModel.sourceText.get());
6680
6700
  }
@@ -6699,9 +6719,9 @@ class vi {
6699
6719
  return this._observedSourceTextId = t, { sourceIdentityChanged: i, isExpected: o };
6700
6720
  }
6701
6721
  }
6702
- class da extends H {
6722
+ class fa extends H {
6703
6723
  constructor(e) {
6704
- super(), this._editorModel = e, this._sourceEditTracker = new vi(this._editorModel);
6724
+ super(), this._editorModel = e, this._sourceEditTracker = new wi(this._editorModel);
6705
6725
  let t = this._inputSnapshot();
6706
6726
  this._register(this._editorModel.onWillApplySourceEdit((s) => {
6707
6727
  this._mapStateThroughEdit(s), this._sourceEditTracker.record(s);
@@ -6713,7 +6733,7 @@ class da extends H {
6713
6733
  });
6714
6734
  return;
6715
6735
  }
6716
- const d = r.isRevealed && !t.isRevealed, u = !ua(r, t), h = !fa(r.scope, t.scope) && !a;
6736
+ const d = r.isRevealed && !t.isRevealed, u = !ga(r, t), h = !pa(r.scope, t.scope) && !a;
6717
6737
  if (!r.isRevealed)
6718
6738
  t.isRevealed && this.currentMatch.set(void 0, void 0);
6719
6739
  else {
@@ -6724,7 +6744,7 @@ class da extends H {
6724
6744
  this._selectFromOrigin(f, this._pendingInitialDirection ?? "next");
6725
6745
  else if (a) {
6726
6746
  const m = this.currentMatch.get();
6727
- m && !ha(f, o, r.scope, m) && this.currentMatch.set(void 0, void 0);
6747
+ m && !ma(f, o, r.scope, m) && this.currentMatch.set(void 0, void 0);
6728
6748
  }
6729
6749
  }
6730
6750
  this._pendingInitialDirection = void 0, this._pendingInitialDirection = void 0, t = r;
@@ -6830,7 +6850,7 @@ class da extends H {
6830
6850
  t && this.searchScope.set(rs(e.edit, t), e.transaction);
6831
6851
  const s = this.currentMatch.get();
6832
6852
  s && this.currentMatch.set(
6833
- ma(e.edit, s) ? void 0 : rs(e.edit, s),
6853
+ _a(e.edit, s) ? void 0 : rs(e.edit, s),
6834
6854
  e.transaction
6835
6855
  );
6836
6856
  }
@@ -6855,13 +6875,13 @@ class da extends H {
6855
6875
  };
6856
6876
  }
6857
6877
  }
6858
- function ha(n, e, t, s) {
6878
+ function ma(n, e, t, s) {
6859
6879
  return n.pattern.findNextMatch(e, s.start, t, !1)?.equals(s) ?? !1;
6860
6880
  }
6861
- function ua(n, e) {
6881
+ function ga(n, e) {
6862
6882
  return n.searchString === e.searchString && n.isRegex === e.isRegex && n.matchCase === e.matchCase && n.wholeWord === e.wholeWord;
6863
6883
  }
6864
- function fa(n, e) {
6884
+ function pa(n, e) {
6865
6885
  return n === e || !!n && !!e && n.equals(e);
6866
6886
  }
6867
6887
  function rs(n, e) {
@@ -6882,7 +6902,7 @@ function Wt(n, e, t) {
6882
6902
  }
6883
6903
  return e + s;
6884
6904
  }
6885
- function ma(n, e) {
6905
+ function _a(n, e) {
6886
6906
  return n.replacements.some((t) => {
6887
6907
  const s = t.replaceRange;
6888
6908
  return s.isEmpty ? e.start < s.start && s.start < e.endExclusive : e.isEmpty ? s.contains(e.start) : s.intersects(e);
@@ -6891,7 +6911,7 @@ function ma(n, e) {
6891
6911
  function Lt(n, e, t) {
6892
6912
  return Math.min(Math.max(n, e), t);
6893
6913
  }
6894
- class ga extends H {
6914
+ class va extends H {
6895
6915
  constructor(e, t) {
6896
6916
  super(), this._view = e, this._options = t, this.element = document.createElement("div"), this.element.className = "md-find-widget-host", this.element.hidden = !0, this.panelElement = document.createElement("div"), this.panelElement.className = "md-find-widget", this.panelElement.setAttribute("role", "dialog"), this.panelElement.setAttribute("aria-label", "Find"), this.element.appendChild(this.panelElement);
6897
6917
  const s = document.createElement("div");
@@ -6963,16 +6983,16 @@ function Ye(n, e) {
6963
6983
  function je(n, e) {
6964
6984
  n.setAttribute("aria-pressed", String(e)), n.classList.toggle("md-find-option-active", e);
6965
6985
  }
6966
- class pa extends H {
6986
+ class wa extends H {
6967
6987
  constructor(e, t, s) {
6968
- super(), this._editorModel = e, this._view = t, this._options = s, this._observedSourceTextId = this._editorModel.getSourceTextId(this._editorModel.sourceText.get()), this._sourceEditTracker = new vi(this._editorModel), this.model = this._register(new da(this._editorModel)), this._register(this._editorModel.onWillApplySourceEdit((c) => {
6988
+ super(), this._editorModel = e, this._view = t, this._options = s, this._observedSourceTextId = this._editorModel.getSourceTextId(this._editorModel.sourceText.get()), this._sourceEditTracker = new wi(this._editorModel), this.model = this._register(new fa(this._editorModel)), this._register(this._editorModel.onWillApplySourceEdit((c) => {
6969
6989
  this._sourceEditTracker.record(c);
6970
6990
  }));
6971
6991
  const i = P(this, (c) => {
6972
6992
  const a = this._selectionForScope.read(c);
6973
6993
  return !!a && !a.isCollapsed;
6974
6994
  });
6975
- this.widget = this._register(new ga(this._view, {
6995
+ this.widget = this._register(new va(this._view, {
6976
6996
  findModel: this.model,
6977
6997
  canFindInSelection: i,
6978
6998
  onNext: () => {
@@ -6983,7 +7003,7 @@ class pa extends H {
6983
7003
  },
6984
7004
  onToggleFindInSelection: () => this._toggleFindInSelection(),
6985
7005
  onClose: () => this.close()
6986
- })), this._register(new na(this._view, this.model));
7006
+ })), this._register(new oa(this._view, this.model));
6987
7007
  const o = (c) => this._handleKeyDown(c);
6988
7008
  this._view.element.addEventListener("keydown", o, !0), this._register({
6989
7009
  dispose: () => this._view.element.removeEventListener("keydown", o, !0)
@@ -7008,7 +7028,7 @@ class pa extends H {
7008
7028
  }
7009
7029
  const g = !this._selectedMatch?.equals(h);
7010
7030
  let _ = /* @__PURE__ */ new Set();
7011
- this._forcedMatch?.equals(h) ? _ = new Set(Nt(f, h.start, h.endExclusive)) : (m ? va(m, h) : !1) ? this._forcedMatch = void 0 : (_ = new Set(Nt(f, h.start, h.endExclusive)), this._forcedMatch = h), te((p) => {
7031
+ this._forcedMatch?.equals(h) ? _ = new Set(Nt(f, h.start, h.endExclusive)) : (m ? ka(m, h) : !1) ? this._forcedMatch = void 0 : (_ = new Set(Nt(f, h.start, h.endExclusive)), this._forcedMatch = h), te((p) => {
7012
7032
  cs(this._view.forcedMarkerVisibleBlocks.get(), _) || this._view.forcedMarkerVisibleBlocks.set(_, p);
7013
7033
  const v = this._editorModel.selection.get();
7014
7034
  g && !d && (!v || !v.range.equals(h)) && (this._editorModel.pendingParagraph.set(void 0, p), this._editorModel.selectionSource.set("find", p), this._editorModel.selection.set(new k(h.start, h.endExclusive), p));
@@ -7052,7 +7072,7 @@ class pa extends H {
7052
7072
  return;
7053
7073
  const t = e.target, s = t instanceof Node && this.widget.panelElement.contains(t);
7054
7074
  if (!(t !== this._view.element && !s)) {
7055
- if (_a(e, this._options.keyboardPlatform)) {
7075
+ if (ba(e, this._options.keyboardPlatform)) {
7056
7076
  Tt(e), this.openAndFocus();
7057
7077
  return;
7058
7078
  }
@@ -7092,7 +7112,7 @@ class pa extends H {
7092
7112
  };
7093
7113
  }
7094
7114
  _prepareSeed(e) {
7095
- return this.model.isRegex.get() ? _i(e) : e;
7115
+ return this.model.isRegex.get() ? vi(e) : e;
7096
7116
  }
7097
7117
  _selectedSingleLineText(e) {
7098
7118
  if (e.isCollapsed)
@@ -7110,7 +7130,7 @@ class pa extends H {
7110
7130
  !e || e.isCollapsed || (this.model.setSearchOrigin(e.range.start), this.model.setSearchScope(e.range));
7111
7131
  }
7112
7132
  }
7113
- function _a(n, e) {
7133
+ function ba(n, e) {
7114
7134
  return n.key.toLowerCase() === "f" && !n.shiftKey && !n.altKey && (e === "macos" ? n.metaKey && !n.ctrlKey : n.ctrlKey && !n.metaKey);
7115
7135
  }
7116
7136
  function Tt(n) {
@@ -7119,7 +7139,7 @@ function Tt(n) {
7119
7139
  function cs(n, e) {
7120
7140
  return n.size === e.size && Array.from(n).every((t) => e.has(t));
7121
7141
  }
7122
- function va(n, e) {
7142
+ function ka(n, e) {
7123
7143
  const t = _t(n, [e]);
7124
7144
  return e.isEmpty ? t.some((i) => as(i.range)) : t.reduce((i, o) => {
7125
7145
  const r = Array.from(o.range.getClientRects()).some((c) => c.width > 0 && c.height > 0) && as(o.range);
@@ -7138,7 +7158,7 @@ function as(n) {
7138
7158
  }
7139
7159
  return !0;
7140
7160
  }
7141
- class wa {
7161
+ class ya {
7142
7162
  connect(e) {
7143
7163
  const t = (r) => {
7144
7164
  if (et(r.target, e.element))
@@ -7164,7 +7184,7 @@ class wa {
7164
7184
  };
7165
7185
  }
7166
7186
  }
7167
- class Pl {
7187
+ class Dl {
7168
7188
  constructor(e = navigator.clipboard) {
7169
7189
  this._clipboard = e;
7170
7190
  }
@@ -7174,7 +7194,7 @@ class Pl {
7174
7194
  return;
7175
7195
  const r = et(i.target, e.element);
7176
7196
  if (r) {
7177
- ba(i, r, this._clipboard);
7197
+ xa(i, r, this._clipboard);
7178
7198
  return;
7179
7199
  }
7180
7200
  switch (i.key.toLowerCase()) {
@@ -7209,7 +7229,7 @@ function et(n, e) {
7209
7229
  const s = (n instanceof Element ? n : n.parentElement)?.closest('input, textarea, [contenteditable]:not([contenteditable="false"]), [role="textbox"]');
7210
7230
  return s instanceof HTMLElement && e.contains(s) ? s : void 0;
7211
7231
  }
7212
- function ba(n, e, t) {
7232
+ function xa(n, e, t) {
7213
7233
  switch (n.key.toLowerCase()) {
7214
7234
  case "c": {
7215
7235
  const s = ls(e);
@@ -7267,17 +7287,17 @@ const Kt = {
7267
7287
  ...e,
7268
7288
  action: n.action
7269
7289
  })))
7270
- }, Bl = {
7290
+ }, Fl = {
7271
7291
  bindings: zt.filter((n) => n.routing === "local").flatMap((n) => n.keybindings.map((e) => ({
7272
7292
  ...e,
7273
7293
  action: n.action
7274
7294
  })))
7275
- }, Al = {
7295
+ }, Vl = {
7276
7296
  bindings: zt.filter((n) => n.routing !== "local").flatMap((n) => n.keybindings.map((e) => ({
7277
7297
  ...e,
7278
7298
  action: n.action
7279
7299
  })))
7280
- }, ka = /* @__PURE__ */ new Set([
7300
+ }, Ea = /* @__PURE__ */ new Set([
7281
7301
  "ArrowLeft",
7282
7302
  "ArrowRight",
7283
7303
  "ArrowUp",
@@ -7285,10 +7305,10 @@ const Kt = {
7285
7305
  "Home",
7286
7306
  "End"
7287
7307
  ]);
7288
- function ya(n) {
7289
- return ka.has(n);
7308
+ function Ca(n) {
7309
+ return Ea.has(n);
7290
7310
  }
7291
- function xa(n) {
7311
+ function Sa(n) {
7292
7312
  return n.includes("Macintosh") || n.includes("Mac OS X") ? "macos" : n.includes("Windows") ? "windows" : "linux";
7293
7313
  }
7294
7314
  function hs(n) {
@@ -7305,23 +7325,23 @@ function hs(n) {
7305
7325
  function us(n, e, t = Kt) {
7306
7326
  if (n.altGraphKey)
7307
7327
  return;
7308
- const s = n.key.length === 1 ? n.key.toLowerCase() : n.key, i = /^[a-z]$/.test(s) ? void 0 : Ea(n.code);
7328
+ const s = n.key.length === 1 ? n.key.toLowerCase() : n.key, i = /^[a-z]$/.test(s) ? void 0 : La(n.code);
7309
7329
  for (const o of t.bindings)
7310
- if ((o.key === s || o.key === i) && (!o.platforms || o.platforms.includes(e)) && Ca(n, o.modifiers))
7330
+ if ((o.key === s || o.key === i) && (!o.platforms || o.platforms.includes(e)) && Ma(n, o.modifiers))
7311
7331
  return o.action;
7312
7332
  }
7313
- function Ea(n) {
7333
+ function La(n) {
7314
7334
  return /^Key([A-Z])$/.exec(n)?.[1].toLowerCase();
7315
7335
  }
7316
- function Ca(n, e = {}) {
7336
+ function Ma(n, e = {}) {
7317
7337
  return n.shiftKey === !!e.shift && n.altKey === !!e.alt && n.ctrlKey === !!e.ctrl && n.metaKey === !!e.meta;
7318
7338
  }
7319
- const Sa = 500, fs = 5;
7320
- class Dl extends H {
7339
+ const Ta = 500, fs = 5;
7340
+ class $l extends H {
7321
7341
  constructor(e, t, s) {
7322
7342
  super(), this._model = e, this._view = t;
7323
7343
  const i = this._view.element, o = i.ownerDocument.defaultView ?? window;
7324
- this._keyboardPlatform = s?.keyboardPlatform ?? xa(o.navigator.userAgent), this._keyboardProfile = s?.keyboardProfile ?? Kt, this._forwardedKeyboardProfile = s?.forwardedKeyboardProfile, this._historyStrategy = s?.historyStrategy, this._indentation = s?.indentation ?? Ve, this._tabFocusStatus = this._keyboardProfile === Kt ? this._registerTabFocusAccessibility(i) : void 0, i.addEventListener("pointerdown", this._handlePointerDown), i.addEventListener("keydown", this._handleKeyDown), this._register({
7344
+ this._keyboardPlatform = s?.keyboardPlatform ?? Sa(o.navigator.userAgent), this._keyboardProfile = s?.keyboardProfile ?? Kt, this._forwardedKeyboardProfile = s?.forwardedKeyboardProfile, this._historyStrategy = s?.historyStrategy, this._indentation = s?.indentation ?? Ve, this._tabFocusStatus = this._keyboardProfile === Kt ? this._registerTabFocusAccessibility(i) : void 0, i.addEventListener("pointerdown", this._handlePointerDown), i.addEventListener("keydown", this._handleKeyDown), this._register({
7325
7345
  dispose: () => {
7326
7346
  i.removeEventListener("pointerdown", this._handlePointerDown), i.removeEventListener("keydown", this._handleKeyDown);
7327
7347
  }
@@ -7330,19 +7350,19 @@ class Dl extends H {
7330
7350
  o.removeEventListener("keydown", this._updateModifierState), o.removeEventListener("keyup", this._updateModifierState), o.removeEventListener("blur", this._clearModifierState), i.ownerDocument.removeEventListener("selectionchange", this._discardNativeSelection);
7331
7351
  }
7332
7352
  });
7333
- const r = s?.clipboardStrategy ?? new wa();
7353
+ const r = s?.clipboardStrategy ?? new ya();
7334
7354
  this._register(r.connect({
7335
7355
  element: i,
7336
7356
  getSelectedText: () => this._selectedText(),
7337
7357
  deleteSelection: () => this._executeEditCommand(pn),
7338
7358
  insertText: (a) => {
7339
- this._handlePendingInput(a) || this._executeEditCommand(jo(a));
7359
+ this._handlePendingInput(a) || this._executeEditCommand(Qo(a));
7340
7360
  }
7341
7361
  }));
7342
7362
  const c = this._view.editContext;
7343
7363
  c.addEventListener("textupdate", this._handleTextUpdate), this._register({
7344
7364
  dispose: () => c.removeEventListener("textupdate", this._handleTextUpdate)
7345
- }), this.findController = s?.find === !1 ? void 0 : this._register(new pa(this._model, this._view, {
7365
+ }), this.findController = s?.find === !1 ? void 0 : this._register(new wa(this._model, this._view, {
7346
7366
  keyboardPlatform: this._keyboardPlatform
7347
7367
  }));
7348
7368
  }
@@ -7393,7 +7413,7 @@ class Dl extends H {
7393
7413
  if (e.button !== 0)
7394
7414
  return;
7395
7415
  e.preventDefault(), this._model.cancelPendingParagraph(), this._view.focus(), this._desiredColumn = void 0;
7396
- const t = new fe(e.clientX, e.clientY), s = this._lastPointerDown, i = s !== void 0 && e.timeStamp - s.time < Sa && Math.abs(t.x - s.point.x) < fs && Math.abs(t.y - s.point.y) < fs;
7416
+ const t = new fe(e.clientX, e.clientY), s = this._lastPointerDown, i = s !== void 0 && e.timeStamp - s.time < Ta && Math.abs(t.x - s.point.x) < fs && Math.abs(t.y - s.point.y) < fs;
7397
7417
  if (this._clickCount = i ? this._clickCount + 1 : 1, this._lastPointerDown = { time: e.timeStamp, point: t }, !this._view.isPointInContent(t)) {
7398
7418
  this._setUserSelection(void 0);
7399
7419
  return;
@@ -7401,12 +7421,12 @@ class Dl extends H {
7401
7421
  const o = this._view.resolveOffsetFromPoint(t) ?? this._model.sourceText.get().value.length;
7402
7422
  if (this._clickCount === 2) {
7403
7423
  const u = this._makeCursorContext();
7404
- this._setUserSelection(wr(u, o));
7424
+ this._setUserSelection(br(u, o));
7405
7425
  return;
7406
7426
  }
7407
7427
  if (this._clickCount === 3) {
7408
- const u = Ma(this._model.document.get(), o);
7409
- u && this._setUserSelection(br(this._makeCursorContext(), u));
7428
+ const u = Ra(this._model.document.get(), o);
7429
+ u && this._setUserSelection(kr(this._makeCursorContext(), u));
7410
7430
  return;
7411
7431
  }
7412
7432
  const r = this._clickCount === 1 && !e.shiftKey && this._model.readonlyMode.get();
@@ -7465,7 +7485,7 @@ class Dl extends H {
7465
7485
  this._applyCursorPosition(s.selection, i.position, t), this._desiredColumn = i.desiredColumn;
7466
7486
  }
7467
7487
  _cursorDown(e) {
7468
- const t = this._makeVisualCursorContext(), s = Wo(t);
7488
+ const t = this._makeVisualCursorContext(), s = Ko(t);
7469
7489
  if (!e && !this._model.readonlyMode.get() && !t.lineMap.isEmpty && t.cursorPosition.kind === "source" && s.position.kind === "source" && s.position.offset === t.selection.active) {
7470
7490
  const i = $e(t);
7471
7491
  if (i) {
@@ -7543,7 +7563,7 @@ class Dl extends H {
7543
7563
  }
7544
7564
  };
7545
7565
  _handleKeyDown = (e) => {
7546
- if (e.isComposing || La(e, this._view.element) || (this._updateModifierState(e), e.key === "Tab" && (this._model.readonlyMode.get() || this._tabMovesFocus)))
7566
+ if (e.isComposing || Oa(e, this._view.element) || (this._updateModifierState(e), e.key === "Tab" && (this._model.readonlyMode.get() || this._tabMovesFocus)))
7547
7567
  return;
7548
7568
  if (this._model.pendingParagraph.get() !== void 0 && e.key === "Escape") {
7549
7569
  ms(e), this._model.cancelPendingParagraph();
@@ -7563,7 +7583,7 @@ class Dl extends H {
7563
7583
  e.preventDefault();
7564
7584
  return;
7565
7585
  }
7566
- ya(e.key) && e.preventDefault();
7586
+ Ca(e.key) && e.preventDefault();
7567
7587
  return;
7568
7588
  }
7569
7589
  const s = this._model.pendingParagraph.get() !== void 0;
@@ -7578,10 +7598,10 @@ class Dl extends H {
7578
7598
  const t = e.command;
7579
7599
  switch (t) {
7580
7600
  case "left":
7581
- this._executeCursorCommand(e.extend ? Bo : Io, e.extend);
7601
+ this._executeCursorCommand(e.extend ? Ao : Po, e.extend);
7582
7602
  return;
7583
7603
  case "right":
7584
- this._executeCursorCommand(e.extend ? Po : No, e.extend);
7604
+ this._executeCursorCommand(e.extend ? Bo : Io, e.extend);
7585
7605
  return;
7586
7606
  case "up":
7587
7607
  this._executeVisualCursorCommand(gn, e.extend);
@@ -7590,16 +7610,16 @@ class Dl extends H {
7590
7610
  this._cursorDown(e.extend);
7591
7611
  return;
7592
7612
  case "wordLeft":
7593
- this._executeCursorCommand(Do, e.extend);
7613
+ this._executeCursorCommand(Fo, e.extend);
7594
7614
  return;
7595
7615
  case "wordRight":
7596
- this._executeCursorCommand(Ao, e.extend);
7616
+ this._executeCursorCommand(Do, e.extend);
7597
7617
  return;
7598
7618
  case "visualLineStart":
7599
- this._executeVisualCursorCommand($o, e.extend);
7619
+ this._executeVisualCursorCommand(Ho, e.extend);
7600
7620
  return;
7601
7621
  case "visualLineEnd":
7602
- this._executeVisualCursorCommand(Ho, e.extend);
7622
+ this._executeVisualCursorCommand(Wo, e.extend);
7603
7623
  return;
7604
7624
  case "logicalLineStart":
7605
7625
  this._executeCursorCommand(It, e.extend);
@@ -7608,10 +7628,10 @@ class Dl extends H {
7608
7628
  this._executeCursorCommand(Pt, e.extend);
7609
7629
  return;
7610
7630
  case "documentStart":
7611
- this._executeCursorCommand(Fo, e.extend);
7631
+ this._executeCursorCommand(Vo, e.extend);
7612
7632
  return;
7613
7633
  case "documentEnd":
7614
- this._executeCursorCommand(Vo, e.extend);
7634
+ this._executeCursorCommand($o, e.extend);
7615
7635
  return;
7616
7636
  default:
7617
7637
  return ke(t);
@@ -7632,19 +7652,19 @@ class Dl extends H {
7632
7652
  this._executeEditCommand(pn);
7633
7653
  return;
7634
7654
  case "deleteRight":
7635
- this._executeEditCommand(qo);
7655
+ this._executeEditCommand(Go);
7636
7656
  return;
7637
7657
  case "deleteWordLeft":
7638
- this._executeEditCommand(Go);
7658
+ this._executeEditCommand(Uo);
7639
7659
  return;
7640
7660
  case "deleteWordRight":
7641
- this._executeEditCommand(Uo);
7661
+ this._executeEditCommand(Xo);
7642
7662
  return;
7643
7663
  case "deleteLineLeft":
7644
- this._executeEditCommand(Xo);
7664
+ this._executeEditCommand(Yo);
7645
7665
  return;
7646
7666
  case "deleteLineRight":
7647
- this._executeEditCommand(Yo);
7667
+ this._executeEditCommand(jo);
7648
7668
  return;
7649
7669
  default:
7650
7670
  return ke(t);
@@ -7652,7 +7672,7 @@ class Dl extends H {
7652
7672
  }
7653
7673
  case "selectAll": {
7654
7674
  const t = this._makeCursorContext();
7655
- this._setUserSelection(vr(t));
7675
+ this._setUserSelection(wr(t));
7656
7676
  return;
7657
7677
  }
7658
7678
  case "history": {
@@ -7690,10 +7710,10 @@ class Dl extends H {
7690
7710
  const s = e.command;
7691
7711
  switch (s) {
7692
7712
  case "insert":
7693
- this._executeEditCommand(Qo(this._indentation));
7713
+ this._executeEditCommand(Zo(this._indentation));
7694
7714
  return;
7695
7715
  case "outdent":
7696
- this._executeEditCommand(Zo(this._indentation));
7716
+ this._executeEditCommand(Jo(this._indentation));
7697
7717
  return;
7698
7718
  default:
7699
7719
  return ke(s);
@@ -7718,10 +7738,10 @@ class Dl extends H {
7718
7738
  this._smartEnter();
7719
7739
  return;
7720
7740
  case "insertParagraph":
7721
- this._executeEditCommand(Jo);
7741
+ this._executeEditCommand(er);
7722
7742
  return;
7723
7743
  case "insertHardLineBreak":
7724
- this._executeEditCommand(tr);
7744
+ this._executeEditCommand(nr);
7725
7745
  return;
7726
7746
  default:
7727
7747
  return ke(t);
@@ -7740,7 +7760,7 @@ class Dl extends H {
7740
7760
  this._view.showReadonlyEditingAttempt();
7741
7761
  return;
7742
7762
  }
7743
- const e = this._makeCursorContext(), t = nr(e);
7763
+ const e = this._makeCursorContext(), t = sr(e);
7744
7764
  t.kind === "edit" ? this._runUndoableEdit(() => this._model.applyEdit(t.edit, t.selection), t.edit) : this._model.armPendingParagraph({
7745
7765
  anchorBlock: t.anchorBlock,
7746
7766
  replaceRange: t.replaceRange,
@@ -7765,10 +7785,10 @@ function ke(n) {
7765
7785
  function ms(n) {
7766
7786
  n.preventDefault(), n.stopPropagation();
7767
7787
  }
7768
- function La(n, e) {
7788
+ function Oa(n, e) {
7769
7789
  return n.target !== e;
7770
7790
  }
7771
- function Ma(n, e) {
7791
+ function Ra(n, e) {
7772
7792
  const t = new Set(n.blocks);
7773
7793
  let s = 0;
7774
7794
  for (const i of n.children) {
@@ -7783,8 +7803,8 @@ function Ma(n, e) {
7783
7803
  function gs(n, e, t) {
7784
7804
  t === null ? n.removeAttribute(e) : n.setAttribute(e, t);
7785
7805
  }
7786
- const Ta = 200;
7787
- class Fl {
7806
+ const Na = 200;
7807
+ class Hl {
7788
7808
  constructor(e) {
7789
7809
  this._model = e, this._lastKnownText = e.sourceText.get().value;
7790
7810
  }
@@ -7810,7 +7830,7 @@ class Fl {
7810
7830
  redoEdit: c,
7811
7831
  beforeSelection: i,
7812
7832
  afterSelection: r
7813
- }), this._past.length > Ta && this._past.shift(), this._future.length = 0;
7833
+ }), this._past.length > Na && this._past.shift(), this._future.length = 0;
7814
7834
  }
7815
7835
  undo() {
7816
7836
  const e = this._peekApplicable(this._past);
@@ -7843,7 +7863,7 @@ class Fl {
7843
7863
  }
7844
7864
  }
7845
7865
  const ps = "md-debug-show-line-rects";
7846
- function Oa(n, e) {
7866
+ function Ia(n, e) {
7847
7867
  try {
7848
7868
  const t = localStorage.getItem(n);
7849
7869
  return t === null ? e : t === "true";
@@ -7851,20 +7871,20 @@ function Oa(n, e) {
7851
7871
  return e;
7852
7872
  }
7853
7873
  }
7854
- function Ra(n, e) {
7874
+ function Pa(n, e) {
7855
7875
  try {
7856
7876
  localStorage.setItem(n, String(e));
7857
7877
  } catch {
7858
7878
  }
7859
7879
  }
7860
- class Vl extends H {
7880
+ class Wl extends H {
7861
7881
  overlayElement;
7862
7882
  infoElement;
7863
7883
  rendering;
7864
7884
  /** Absolute source offsets that map to a rendered DOM character. */
7865
7885
  mappedOffsets;
7866
7886
  /** Whether the dashed line-bands and run boxes are drawn (persisted). */
7867
- _showLineRects = C(this, Oa(ps, !0));
7887
+ _showLineRects = C(this, Ia(ps, !0));
7868
7888
  constructor(e, t) {
7869
7889
  super(), this.overlayElement = document.createElement("div"), this.overlayElement.className = "md-debug-layout-overlay", Object.assign(this.overlayElement.style, {
7870
7890
  position: "absolute",
@@ -7893,12 +7913,12 @@ class Vl extends H {
7893
7913
  });
7894
7914
  const i = document.createElement("input");
7895
7915
  i.type = "checkbox", i.checked = this._showLineRects.get(), i.addEventListener("change", () => {
7896
- this._showLineRects.set(i.checked, void 0), Ra(ps, i.checked);
7916
+ this._showLineRects.set(i.checked, void 0), Pa(ps, i.checked);
7897
7917
  }), s.appendChild(i), s.appendChild(document.createTextNode("show line rects")), this.infoElement.appendChild(s);
7898
7918
  const o = document.createElement("pre");
7899
7919
  o.style.margin = "0", o.style.whiteSpace = "pre", this.infoElement.appendChild(o), this.rendering = P(this, (r) => {
7900
7920
  const c = r.readObservable(t.model.measurements), a = r.readObservable(this._showLineRects);
7901
- return Ia(
7921
+ return Aa(
7902
7922
  this.overlayElement,
7903
7923
  o,
7904
7924
  c,
@@ -7910,16 +7930,16 @@ class Vl extends H {
7910
7930
  }), this.mappedOffsets = P(this, (r) => r.readObservable(this.rendering).mappedOffsets), this._register(B((r) => {
7911
7931
  r.readObservable(this.rendering);
7912
7932
  const c = t.hoveredOffset ? r.readObservable(t.hoveredOffset) : void 0;
7913
- t.hoveredOffset && Ba(this.overlayElement, c);
7933
+ t.hoveredOffset && Fa(this.overlayElement, c);
7914
7934
  }));
7915
7935
  }
7916
7936
  }
7917
- class Na {
7937
+ class Ba {
7918
7938
  constructor(e, t, s, i) {
7919
7939
  this.blockCount = e, this.mountedCount = t, this.lineCount = s, this.mappedOffsets = i;
7920
7940
  }
7921
7941
  }
7922
- function Ia(n, e, t, s, i, o, r) {
7942
+ function Aa(n, e, t, s, i, o, r) {
7923
7943
  n.textContent = "";
7924
7944
  const c = s.capture();
7925
7945
  let a = 0, l = 0, d = 0;
@@ -7951,16 +7971,16 @@ function Ia(n, e, t, s, i, o, r) {
7951
7971
  }), n.appendChild(T);
7952
7972
  }
7953
7973
  }
7954
- g.viewNode && (d += Pa(n, c, g.viewNode, g.absoluteStart, u, o, r));
7974
+ g.viewNode && (d += Da(n, c, g.viewNode, g.absoluteStart, u, o, r));
7955
7975
  }
7956
7976
  const h = `blocks: ${t.length} mounted: ${a} lines: ${l} chars: ${d}`, f = t.map((m, g) => {
7957
7977
  const _ = m.isMeasured ? "M" : "e", p = m.visualLineMap?.lines.length ?? 0;
7958
7978
  return `${String(g).padStart(2)} ${_} start=${String(m.absoluteStart).padStart(4)} h=${m.height.toFixed(1).padStart(6)} lines=${p} kind=${m.block.kind}`;
7959
7979
  });
7960
7980
  return e.textContent = [h, ...f].join(`
7961
- `), new Na(t.length, a, l, u);
7981
+ `), new Ba(t.length, a, l, u);
7962
7982
  }
7963
- function Pa(n, e, t, s, i, o, r) {
7983
+ function Da(n, e, t, s, i, o, r) {
7964
7984
  let c = 0;
7965
7985
  const a = document.createRange(), l = s + t.sourceLength, d = [];
7966
7986
  t.forEachTextLeaf(s, (h, f) => {
@@ -7993,7 +8013,7 @@ function Pa(n, e, t, s, i, o, r) {
7993
8013
  }
7994
8014
  return c;
7995
8015
  }
7996
- function Ba(n, e) {
8016
+ function Fa(n, e) {
7997
8017
  for (const t of Array.from(n.children)) {
7998
8018
  if (!t.style)
7999
8019
  continue;
@@ -8010,7 +8030,7 @@ class Be {
8010
8030
  this.length = e, this.className = t;
8011
8031
  }
8012
8032
  }
8013
- class Aa {
8033
+ class Va {
8014
8034
  /**
8015
8035
  * @param _monaco The Monarch runtime ({@link IMonarchApi}), injected so this
8016
8036
  * package depends on `monaco-editor` for types only.
@@ -8021,7 +8041,7 @@ class Aa {
8021
8041
  }
8022
8042
  _tokenizers = /* @__PURE__ */ new Map();
8023
8043
  create(e, t) {
8024
- return new Da(this._tokenizerFor(e), t);
8044
+ return new $a(this._tokenizerFor(e), t);
8025
8045
  }
8026
8046
  dispose() {
8027
8047
  for (const e of this._tokenizers.values())
@@ -8033,10 +8053,10 @@ class Aa {
8033
8053
  if (t === void 0)
8034
8054
  return;
8035
8055
  let s = this._tokenizers.get(e);
8036
- return s || (s = new this._monaco.MonarchTokenizer(Ha, Wa, e, this._monaco.compile(e, t), Ka), this._tokenizers.set(e, s)), s;
8056
+ return s || (s = new this._monaco.MonarchTokenizer(za, qa, e, this._monaco.compile(e, t), Ga), this._tokenizers.set(e, s)), s;
8037
8057
  }
8038
8058
  }
8039
- class Da {
8059
+ class $a {
8040
8060
  constructor(e, t) {
8041
8061
  this._tokenizer = e, this._initialState = e?.getInitialState(), this._text = t, this._lines = this._tokenizeFrom(0, [], this._initialState, t.split(`
8042
8062
  `)), this._lineStarts = this._computeLineStarts(), this._snapshotObs = C("syntaxSnapshot", new vs(this, this._version));
@@ -8060,7 +8080,7 @@ class Da {
8060
8080
  const s = ws(this._lines), i = e.apply(this._text), o = e.replacements[0].replaceRange.start, r = this._lineIndexAt(o), c = this._lines.slice(0, r), a = r === 0 ? this._initialState : this._lines[r - 1].endState;
8061
8081
  this._text = i, this._lines = this._tokenizeFrom(r, c, a, i.split(`
8062
8082
  `)), this._lineStarts = this._computeLineStarts(), this._version++;
8063
- const l = $a(s, ws(this._lines));
8083
+ const l = Ka(s, ws(this._lines));
8064
8084
  this._snapshotObs.set(new vs(this, this._version), t, l);
8065
8085
  }
8066
8086
  dispose() {
@@ -8078,7 +8098,7 @@ class Da {
8078
8098
  const a = i[c], l = c < i.length - 1;
8079
8099
  if (this._tokenizer && r) {
8080
8100
  const d = this._tokenizer.tokenize(a, l, r);
8081
- o.push({ text: a, tokens: Va(d.tokens, a.length), endState: d.endState }), r = d.endState;
8101
+ o.push({ text: a, tokens: Wa(d.tokens, a.length), endState: d.endState }), r = d.endState;
8082
8102
  } else
8083
8103
  o.push({ text: a, tokens: a.length === 0 ? [] : [new Be(a.length, void 0)], endState: r });
8084
8104
  }
@@ -8123,16 +8143,16 @@ class vs {
8123
8143
  return this._doc._getTokens(this._version, e);
8124
8144
  }
8125
8145
  }
8126
- function Fa(n) {
8146
+ function Ha(n) {
8127
8147
  return n === "" ? void 0 : n;
8128
8148
  }
8129
- function Va(n, e) {
8149
+ function Wa(n, e) {
8130
8150
  if (n.length === 0)
8131
8151
  return e === 0 ? [] : [new Be(e, void 0)];
8132
8152
  const t = [];
8133
8153
  for (let s = 0; s < n.length; s++) {
8134
8154
  const i = n[s].offset, o = s + 1 < n.length ? n[s + 1].offset : e;
8135
- o > i && t.push(new Be(o - i, Fa(n[s].type)));
8155
+ o > i && t.push(new Be(o - i, Ha(n[s].type)));
8136
8156
  }
8137
8157
  return t;
8138
8158
  }
@@ -8154,7 +8174,7 @@ function ks(n) {
8154
8174
  e += t.length;
8155
8175
  return e;
8156
8176
  }
8157
- function $a(n, e) {
8177
+ function Ka(n, e) {
8158
8178
  const t = n.length, s = e.length;
8159
8179
  let i = 0, o = 0;
8160
8180
  for (; i < t && i < s && bs(n[i], e[i]); )
@@ -8165,21 +8185,21 @@ function $a(n, e) {
8165
8185
  const a = ks(n), l = ks(e), d = new w(o, a - c), u = l - c - o;
8166
8186
  return d.isEmpty && u === 0 ? Ee.empty : Ee.replace(d, u);
8167
8187
  }
8168
- const Ha = {
8188
+ const za = {
8169
8189
  languageIdCodec: { encodeLanguageId: () => 0, decodeLanguageId: () => "" },
8170
8190
  isRegisteredLanguageId: () => !1,
8171
8191
  getLanguageIdByLanguageName: () => null,
8172
8192
  getLanguageIdByMimeType: () => null,
8173
8193
  requestBasicLanguageFeatures: () => {
8174
8194
  }
8175
- }, Wa = {
8195
+ }, qa = {
8176
8196
  getColorTheme: () => ({ tokenTheme: {} })
8177
- }, Ka = {
8197
+ }, Ga = {
8178
8198
  getValue: () => 2e4,
8179
8199
  onDidChangeConfiguration: () => ({ dispose() {
8180
8200
  } })
8181
8201
  };
8182
- function $l(n, e) {
8202
+ function Kl(n, e) {
8183
8203
  const t = /* @__PURE__ */ new Map([
8184
8204
  ["typescript", e.typescript],
8185
8205
  ["ts", e.typescript],
@@ -8197,14 +8217,14 @@ function $l(n, e) {
8197
8217
  ["yaml", e.yaml],
8198
8218
  ["yml", e.yaml]
8199
8219
  ]);
8200
- return new Aa(n, t);
8220
+ return new Va(n, t);
8201
8221
  }
8202
- const za = '<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M14 7v1H8v6H7V8H1V7h6V1h1v6h6z"></path></svg>';
8203
- class qa extends H {
8222
+ const Ua = '<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M14 7v1H8v6H7V8H1V7h6V1h1v6h6z"></path></svg>';
8223
+ class Xa extends H {
8204
8224
  constructor(e) {
8205
8225
  super(), this._options = e, this.element = document.createElement("div"), this.element.className = "md-comment-input", this._textarea = document.createElement("textarea"), this._textarea.className = "md-comment-input-textarea", this._textarea.rows = 1, this._textarea.placeholder = e?.placeholder ?? "Add Comment", this.element.appendChild(this._textarea), this._measure = document.createElement("span"), this._measure.className = "md-comment-input-measure", this._measure.setAttribute("aria-hidden", "true"), this.element.appendChild(this._measure);
8206
8226
  const t = document.createElement("div");
8207
- t.className = "md-comment-input-actions", this.element.appendChild(t), this._submitButton = document.createElement("button"), this._submitButton.type = "button", this._submitButton.className = "md-comment-input-submit", this._submitButton.innerHTML = za, this._submitButton.title = "Comment", t.appendChild(this._submitButton);
8227
+ t.className = "md-comment-input-actions", this.element.appendChild(t), this._submitButton = document.createElement("button"), this._submitButton.type = "button", this._submitButton.className = "md-comment-input-submit", this._submitButton.innerHTML = Ua, this._submitButton.title = "Comment", t.appendChild(this._submitButton);
8208
8228
  const s = (c) => {
8209
8229
  c.stopPropagation(), !(c.target === this._textarea || this._submitButton.contains(c.target)) && (c.preventDefault(), this._textarea.focus());
8210
8230
  };
@@ -8267,9 +8287,9 @@ class qa extends H {
8267
8287
  r > 0 && (this._textarea.style.height = `${r}px`), this._options?.onDidChangeSize?.();
8268
8288
  }
8269
8289
  }
8270
- class wi extends H {
8290
+ class bi extends H {
8271
8291
  constructor(e, t, s) {
8272
- super(), this._model = e, this._view = t, this._options = s, this._gap = s?.gap ?? 8, this._widget = this._register(new qa({
8292
+ super(), this._model = e, this._view = t, this._options = s, this._gap = s?.gap ?? 8, this._widget = this._register(new Xa({
8273
8293
  onDidChangeSize: () => {
8274
8294
  this._visible && this._layoutHorizontally();
8275
8295
  },
@@ -8302,7 +8322,7 @@ class wi extends H {
8302
8322
  case "find":
8303
8323
  return !1;
8304
8324
  default:
8305
- return Ga(e);
8325
+ return Ya(e);
8306
8326
  }
8307
8327
  }
8308
8328
  _widget;
@@ -8322,7 +8342,7 @@ class wi extends H {
8322
8342
  this._hide();
8323
8343
  return;
8324
8344
  }
8325
- if (!wi._isCommentableSelectionSource(i)) {
8345
+ if (!bi._isCommentableSelectionSource(i)) {
8326
8346
  this._autoHide();
8327
8347
  return;
8328
8348
  }
@@ -8401,10 +8421,10 @@ class wi extends H {
8401
8421
  this._submittedRange = t, this._hideAndRefocus(), t && this._options?.onSubmit?.({ text: e, range: t });
8402
8422
  }
8403
8423
  }
8404
- function Ga(n) {
8424
+ function Ya(n) {
8405
8425
  throw new Error(`Unhandled selection source: ${JSON.stringify(n)}`);
8406
8426
  }
8407
- class Hl {
8427
+ class zl {
8408
8428
  _comments = C(this, []);
8409
8429
  /** Monotonic counter for ids of comments created via {@link create}. */
8410
8430
  _sequence = 0;
@@ -8445,8 +8465,8 @@ class Hl {
8445
8465
  this._comments.set(this._comments.get().filter((t) => t.id !== e), void 0);
8446
8466
  }
8447
8467
  }
8448
- const Qe = "http://www.w3.org/2000/svg", Ua = 260, Xa = 320, Ya = 0.32, ja = 28, ys = 16, Qa = 12, Za = 18, Ja = 4, el = 2, tl = 10;
8449
- class nl extends H {
8468
+ const Qe = "http://www.w3.org/2000/svg", ja = 260, Qa = 320, Za = 0.32, Ja = 28, ys = 16, el = 12, tl = 18, nl = 4, sl = 2, il = 10;
8469
+ class ol extends H {
8450
8470
  constructor(e, t) {
8451
8471
  super(), this._model = e, this._view = t, this._layer = this._createLayer("md-comment-shapes"), this._view.overlayContainer.appendChild(this._layer), this._register({
8452
8472
  dispose: () => {
@@ -8531,7 +8551,7 @@ class nl extends H {
8531
8551
  }
8532
8552
  _fillCard(e) {
8533
8553
  const { comment: t } = e, s = t.author ?? "You";
8534
- e.authorEl.textContent = s, e.avatarEl.textContent = ol(s), e.timeEl.textContent = t.createdAt !== void 0 ? rl(t.createdAt) : "", e.bodyEl.textContent = t.body;
8554
+ e.authorEl.textContent = s, e.avatarEl.textContent = al(s), e.timeEl.textContent = t.createdAt !== void 0 ? ll(t.createdAt) : "", e.bodyEl.textContent = t.body;
8535
8555
  }
8536
8556
  _disposeEntry(e) {
8537
8557
  for (const t of e.disposables)
@@ -8546,20 +8566,20 @@ class nl extends H {
8546
8566
  return;
8547
8567
  }
8548
8568
  this._layer.style.display = "";
8549
- const i = this._view.coordinateSpace.capture().toLocalRect(t.getBoundingClientRect()).width, o = getComputedStyle(s), r = parseFloat(o.maxWidth), c = (parseFloat(o.paddingLeft) || 0) + (parseFloat(o.paddingRight) || 0), a = (parseFloat(o.borderLeftWidth) || 0) + (parseFloat(o.borderRightWidth) || 0), l = Number.isNaN(r) ? i : o.boxSizing === "border-box" ? r : r + c + a, d = Math.max(0, (i - Math.min(l, i)) / 2), u = Math.round(Math.max(Ua, Math.min(Xa, i * Ya))), h = u + ja + ys, f = d >= h ? 0 : Math.min(2 * (h - d), h), m = f > 0 ? `${Math.ceil(f)}px` : "";
8569
+ const i = this._view.coordinateSpace.capture().toLocalRect(t.getBoundingClientRect()).width, o = getComputedStyle(s), r = parseFloat(o.maxWidth), c = (parseFloat(o.paddingLeft) || 0) + (parseFloat(o.paddingRight) || 0), a = (parseFloat(o.borderLeftWidth) || 0) + (parseFloat(o.borderRightWidth) || 0), l = Number.isNaN(r) ? i : o.boxSizing === "border-box" ? r : r + c + a, d = Math.max(0, (i - Math.min(l, i)) / 2), u = Math.round(Math.max(ja, Math.min(Qa, i * Za))), h = u + Ja + ys, f = d >= h ? 0 : Math.min(2 * (h - d), h), m = f > 0 ? `${Math.ceil(f)}px` : "";
8550
8570
  t.style.paddingRight !== m && (t.style.paddingRight = m);
8551
8571
  const _ = this._view.coordinateSpace.capture().toLocalRect(t.getBoundingClientRect()).right - ys - u, p = s.clientWidth, v = e.map(({ entry: b, rects: x }) => {
8552
8572
  b.card.style.left = `${_}px`, b.card.style.width = `${u}px`;
8553
- const T = sl(x), V = x.length > 0 ? Math.min(...x.map((ue) => ue.y)) : 0;
8573
+ const T = rl(x), V = x.length > 0 ? Math.min(...x.map((ue) => ue.y)) : 0;
8554
8574
  return { entry: b, rects: x, anchor: T, desiredTop: V };
8555
8575
  });
8556
8576
  v.sort((b, x) => b.desiredTop - x.desiredTop);
8557
8577
  let E = -1 / 0;
8558
8578
  for (const b of v) {
8559
- const x = Math.max(b.desiredTop, E + Qa);
8579
+ const x = Math.max(b.desiredTop, E + el);
8560
8580
  b.entry.card.style.top = `${x}px`;
8561
8581
  const T = b.entry.card.offsetHeight;
8562
- E = x + T, b.entry.shapePath.setAttribute("d", mi(b.rects, Ja)), b.entry.leaderPath.setAttribute("d", b.anchor ? il(b.anchor, p, { x: _, y: x + Za }) : "");
8582
+ E = x + T, b.entry.shapePath.setAttribute("d", gi(b.rects, nl)), b.entry.leaderPath.setAttribute("d", b.anchor ? cl(b.anchor, p, { x: _, y: x + tl }) : "");
8563
8583
  }
8564
8584
  }
8565
8585
  _applyHover(e) {
@@ -8569,27 +8589,27 @@ class nl extends H {
8569
8589
  }
8570
8590
  }
8571
8591
  }
8572
- function sl(n) {
8592
+ function rl(n) {
8573
8593
  if (n.length === 0)
8574
8594
  return;
8575
8595
  let e = n[0];
8576
8596
  for (const i of n)
8577
8597
  i.y + i.height > e.y + e.height && (e = i);
8578
8598
  const t = e.x + e.width;
8579
- return { x: Math.max(e.x, t - tl), y: e.y + e.height - el / 2 };
8599
+ return { x: Math.max(e.x, t - il), y: e.y + e.height - sl / 2 };
8580
8600
  }
8581
- function il(n, e, t) {
8601
+ function cl(n, e, t) {
8582
8602
  const s = Math.max(e, n.x + 12), i = t.x - s, o = s + i * 0.55, r = t.x - i * 0.45;
8583
8603
  return `M ${n.x} ${n.y} L ${s} ${n.y} C ${o} ${n.y}, ${r} ${t.y}, ${t.x} ${t.y}`;
8584
8604
  }
8585
- function ol(n) {
8605
+ function al(n) {
8586
8606
  const e = n.trim().split(/\s+/).filter(Boolean);
8587
8607
  if (e.length === 0)
8588
8608
  return "?";
8589
8609
  const t = e[0][0] ?? "", s = e.length > 1 ? e[e.length - 1][0] ?? "" : "";
8590
8610
  return (t + s).toUpperCase();
8591
8611
  }
8592
- function rl(n) {
8612
+ function ll(n) {
8593
8613
  const e = Math.max(0, Math.round((Date.now() - n) / 1e3));
8594
8614
  if (e < 60)
8595
8615
  return "just now";
@@ -8599,9 +8619,9 @@ function rl(n) {
8599
8619
  const s = Math.round(t / 60);
8600
8620
  return s < 24 ? `${s}h ago` : `${Math.round(s / 24)}d ago`;
8601
8621
  }
8602
- const cl = 12, al = 8;
8603
- function ll(n, e) {
8604
- const t = n.element, s = n.overlayContainer, i = t.clientWidth - al - s.offsetLeft, o = [];
8622
+ const dl = 12, hl = 8;
8623
+ function ul(n, e) {
8624
+ const t = n.element, s = n.overlayContainer, i = t.clientWidth - hl - s.offsetLeft, o = [];
8605
8625
  for (const c of e) {
8606
8626
  if (c.rects.length === 0) {
8607
8627
  c.element.style.visibility = "hidden";
@@ -8612,11 +8632,11 @@ function ll(n, e) {
8612
8632
  o.sort((c, a) => c.y - a.y);
8613
8633
  let r = -1 / 0;
8614
8634
  for (const c of o) {
8615
- const a = Math.max(c.y, r + cl), l = i - c.element.offsetWidth;
8635
+ const a = Math.max(c.y, r + dl), l = i - c.element.offsetWidth;
8616
8636
  c.element.style.left = `${l}px`, c.element.style.top = `${a}px`, r = a + c.element.offsetHeight;
8617
8637
  }
8618
8638
  }
8619
- class bi extends H {
8639
+ class ki extends H {
8620
8640
  // Public so subclasses inherit a public constructor (the class is abstract,
8621
8641
  // so it still cannot be instantiated directly).
8622
8642
  constructor(e, t, s) {
@@ -8657,7 +8677,7 @@ class bi extends H {
8657
8677
  }
8658
8678
  _relayout() {
8659
8679
  const e = this._order.map((t) => this._entries.get(t)).filter((t) => t !== void 0).map((t) => ({ element: t.widget.element, rects: t.rects.get() }));
8660
- ll(this.view, e), this._revealPendingComment();
8680
+ ul(this.view, e), this._revealPendingComment();
8661
8681
  }
8662
8682
  _revealPendingComment() {
8663
8683
  const e = this._pendingRevealCommentId;
@@ -8667,15 +8687,15 @@ class bi extends H {
8667
8687
  !t || t.style.visibility === "hidden" || (this._pendingRevealCommentId = void 0, t.scrollIntoView({ block: "center", inline: "nearest" }));
8668
8688
  }
8669
8689
  }
8670
- const dl = /^([a-z0-9]+)/i;
8690
+ const fl = /^([a-z0-9]+)/i;
8671
8691
  function L(n) {
8672
- const e = dl.exec(n)?.[1] ?? "div", t = document.createElement(e), s = n.slice(e.length).split(".").filter(Boolean);
8692
+ const e = fl.exec(n)?.[1] ?? "div", t = document.createElement(e), s = n.slice(e.length).split(".").filter(Boolean);
8673
8693
  return s.length && (t.className = s.join(" ")), t;
8674
8694
  }
8675
8695
  function ye(n) {
8676
8696
  return `<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${n}</svg>`;
8677
8697
  }
8678
- const ki = {
8698
+ const yi = {
8679
8699
  comment: ye('<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>'),
8680
8700
  "comment-discussion": ye('<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>'),
8681
8701
  "chevron-down": ye('<polyline points="6 9 12 15 18 9"></polyline>'),
@@ -8685,7 +8705,7 @@ const ki = {
8685
8705
  };
8686
8706
  function Ot(n) {
8687
8707
  const e = L(`span.codicon.codicon-${n}`);
8688
- return e.setAttribute("aria-hidden", "true"), e.innerHTML = ki[n] ?? "", e;
8708
+ return e.setAttribute("aria-hidden", "true"), e.innerHTML = yi[n] ?? "", e;
8689
8709
  }
8690
8710
  function Ze(n) {
8691
8711
  const e = L("div.rendered-markdown"), t = document.createElement("p");
@@ -8696,7 +8716,7 @@ function Ze(n) {
8696
8716
  } else s && t.appendChild(document.createTextNode(s));
8697
8717
  return e.appendChild(t), e;
8698
8718
  }
8699
- class hl {
8719
+ class ml {
8700
8720
  constructor(e, t) {
8701
8721
  this._comments = e, this._domNode = L("div.agent-feedback-widget"), this._domNode.classList.add("collapsed"), this._domNode.tabIndex = -1, this._domNode.setAttribute("widgetid", "agent-feedback-widget-0"), this._headerNode = L("div.agent-feedback-widget-header"), this._headerNode.appendChild(Ot("comment")), this._titleNode = L("span.agent-feedback-widget-title"), this._updateTitle(), this._headerNode.appendChild(this._titleNode), this._headerNode.appendChild(L("span.agent-feedback-widget-spacer")), this._toggleButton = L("div.agent-feedback-widget-toggle"), this._updateToggleButton(), this._headerNode.appendChild(this._toggleButton), this._domNode.appendChild(this._headerNode), this._bodyNode = L("div.agent-feedback-widget-body"), this._bodyNode.classList.add("collapsed"), this._buildFeedbackItems(), this._domNode.appendChild(this._bodyNode), this._domNode.appendChild(L("div.agent-feedback-widget-arrow")), this._setupEventHandlers(), this._domNode.classList.add("visible"), t?.expanded && this.expand(), t?.focusedCommentId && this.focusFeedback(t.focusedCommentId);
8702
8722
  }
@@ -8783,7 +8803,7 @@ class hl {
8783
8803
  }
8784
8804
  _actionLabel(e, t) {
8785
8805
  const s = document.createElement("a");
8786
- return s.className = `action-label codicon codicon-${e}`, s.setAttribute("role", "button"), s.setAttribute("aria-label", t), s.title = t, s.tabIndex = 0, s.innerHTML = ki[e] ?? "", s;
8806
+ return s.className = `action-label codicon codicon-${e}`, s.setAttribute("role", "button"), s.setAttribute("aria-label", t), s.title = t, s.tabIndex = 0, s.innerHTML = yi[e] ?? "", s;
8787
8807
  }
8788
8808
  _lineLabel(e, t) {
8789
8809
  return t === void 0 || t === e ? `Line ${e}` : `Lines ${e}-${t}`;
@@ -8896,7 +8916,7 @@ class hl {
8896
8916
  this._disposables.length = 0, this._domNode.remove();
8897
8917
  }
8898
8918
  }
8899
- class ul extends bi {
8919
+ class gl extends ki {
8900
8920
  createWidget(e) {
8901
8921
  const t = this.context?.resolveLine?.(e.range.start) ?? 1, s = {
8902
8922
  id: e.id,
@@ -8905,26 +8925,26 @@ class ul extends bi {
8905
8925
  startLine: t,
8906
8926
  text: e.body
8907
8927
  };
8908
- return new hl([s], { expanded: !0 });
8928
+ return new ml([s], { expanded: !0 });
8909
8929
  }
8910
8930
  }
8911
- const fl = /^([a-z0-9]+)/i;
8931
+ const pl = /^([a-z0-9]+)/i;
8912
8932
  function xe(n) {
8913
- const e = fl.exec(n)?.[1] ?? "div", t = document.createElement(e), s = n.slice(e.length).split(".").filter(Boolean);
8933
+ const e = pl.exec(n)?.[1] ?? "div", t = document.createElement(e), s = n.slice(e.length).split(".").filter(Boolean);
8914
8934
  return s.length && (t.className = s.join(" ")), t;
8915
8935
  }
8916
8936
  function xs(n) {
8917
8937
  return `<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${n}</svg>`;
8918
8938
  }
8919
- const ml = {
8939
+ const _l = {
8920
8940
  edit: xs('<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>'),
8921
8941
  trash: xs('<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>')
8922
8942
  };
8923
- function gl(n, e) {
8943
+ function vl(n, e) {
8924
8944
  const t = document.createElement("button");
8925
- return t.type = "button", t.className = "vscode-comment-widget-v2-action", t.setAttribute("aria-label", e), t.title = e, t.innerHTML = ml[n] ?? "", t;
8945
+ return t.type = "button", t.className = "vscode-comment-widget-v2-action", t.setAttribute("aria-label", e), t.title = e, t.innerHTML = _l[n] ?? "", t;
8926
8946
  }
8927
- class pl {
8947
+ class wl {
8928
8948
  _domNode;
8929
8949
  _textNode;
8930
8950
  _toggleNode;
@@ -8962,7 +8982,7 @@ class pl {
8962
8982
  }
8963
8983
  /** A header action button that runs `onClick` (and cleans up on dispose). */
8964
8984
  _actionButton(e, t, s) {
8965
- const i = gl(e, t), o = (r) => {
8985
+ const i = vl(e, t), o = (r) => {
8966
8986
  r.preventDefault(), r.stopPropagation(), s();
8967
8987
  };
8968
8988
  return i.addEventListener("click", o), this._disposables.push(() => i.removeEventListener("click", o)), i;
@@ -8974,61 +8994,61 @@ class pl {
8974
8994
  this._domNode.remove();
8975
8995
  }
8976
8996
  }
8977
- const _l = 80;
8978
- class vl extends bi {
8997
+ const bl = 80;
8998
+ class kl extends ki {
8979
8999
  createWidget(e) {
8980
- return new pl({
9000
+ return new wl({
8981
9001
  username: e.author ?? "You",
8982
9002
  body: e.body,
8983
- state: e.body.length > _l ? "collapsed" : "short",
9003
+ state: e.body.length > bl ? "collapsed" : "short",
8984
9004
  // Edit is intentionally omitted (hidden) for now. Delete removes the
8985
9005
  // comment from the shared model; the autorun then disposes the card.
8986
9006
  onDelete: () => this.model.remove(e.id)
8987
9007
  });
8988
9008
  }
8989
9009
  }
8990
- const Wl = {
9010
+ const ql = {
8991
9011
  connected: "Connected lines (original)",
8992
9012
  vscode: "VS Code cards",
8993
9013
  "vscode-v2": "Markdown cards (V3)"
8994
- }, Kl = {
8995
- connected: (n, e) => new nl(n, e),
8996
- vscode: (n, e, t) => new ul(n, e, t),
8997
- "vscode-v2": (n, e, t) => new vl(n, e, t)
9014
+ }, Gl = {
9015
+ connected: (n, e) => new ol(n, e),
9016
+ vscode: (n, e, t) => new gl(n, e, t),
9017
+ "vscode-v2": (n, e, t) => new kl(n, e, t)
8998
9018
  };
8999
9019
  export {
9000
9020
  U as AstNode,
9001
- Pl as AsyncClipboardStrategy,
9021
+ Dl as AsyncClipboardStrategy,
9002
9022
  Se as BlockQuoteAstNode,
9003
9023
  R as BlockViewNode,
9004
- Kl as COMMENTS_DESIGNS,
9005
- Wl as COMMENTS_DESIGN_LABELS,
9024
+ Gl as COMMENTS_DESIGNS,
9025
+ ql as COMMENTS_DESIGN_LABELS,
9006
9026
  Q as CodeBlockAstNode,
9007
9027
  sn as CodeBlockViewNode,
9008
- qa as CommentInputWidget,
9009
- wi as CommentModeController,
9010
- Hl as CommentsModel,
9011
- nl as CommentsView,
9028
+ Xa as CommentInputWidget,
9029
+ bi as CommentModeController,
9030
+ zl as CommentsModel,
9031
+ ol as CommentsView,
9012
9032
  N as CursorPosition,
9013
- Vc as CursorView,
9033
+ Wc as CursorView,
9014
9034
  Xe as CursorViewRendering,
9015
9035
  Ve as DEFAULT_INDENTATION_CONFIG,
9016
- xi as DEFAULT_WORD_NAVIGATION_CONFIG,
9017
- Gl as DEFAULT_WORD_SEPARATORS,
9036
+ Ei as DEFAULT_WORD_NAVIGATION_CONFIG,
9037
+ Yl as DEFAULT_WORD_SEPARATORS,
9018
9038
  Zt as DocumentAstNode,
9019
9039
  rn as DocumentViewNode,
9020
- Dl as EditorController,
9040
+ $l as EditorController,
9021
9041
  pt as EditorCoordinateSpace,
9022
- zr as EditorCoordinateTransform,
9023
- Nl as EditorModel,
9024
- Il as EditorView,
9042
+ Ur as EditorCoordinateTransform,
9043
+ Bl as EditorModel,
9044
+ Al as EditorView,
9025
9045
  Xt as EmphasisAstNode,
9026
- oa as FIND_MATCH_LIMIT,
9027
- pa as FindController,
9028
- na as FindHighlightsView,
9029
- da as FindModel,
9046
+ aa as FIND_MATCH_LIMIT,
9047
+ wa as FindController,
9048
+ oa as FindHighlightsView,
9049
+ fa as FindModel,
9030
9050
  rt as FindPattern,
9031
- ga as FindWidget,
9051
+ va as FindWidget,
9032
9052
  Ce as FrontMatterAstNode,
9033
9053
  W as GlueAstNode,
9034
9054
  ge as HeadingAstNode,
@@ -9040,24 +9060,24 @@ export {
9040
9060
  Ae as LinkAstNode,
9041
9061
  q as ListAstNode,
9042
9062
  G as ListItemAstNode,
9043
- Fl as LocalHistoryStrategy,
9044
- eo as MarkdownParser,
9063
+ Hl as LocalHistoryStrategy,
9064
+ to as MarkdownParser,
9045
9065
  y as MarkerAstNode,
9046
9066
  we as MathBlockAstNode,
9047
- Na as MeasuredLayoutDebugRendering,
9048
- Vl as MeasuredLayoutDebugView,
9049
- Eo as MeasuredLayoutModel,
9050
- Aa as MonacoSyntaxHighlighter,
9051
- wa as NativeClipboardStrategy,
9067
+ Ba as MeasuredLayoutDebugRendering,
9068
+ Wl as MeasuredLayoutDebugView,
9069
+ Co as MeasuredLayoutModel,
9070
+ Va as MonacoSyntaxHighlighter,
9071
+ ya as NativeClipboardStrategy,
9052
9072
  w as OffsetRange,
9053
9073
  se as ParagraphAstNode,
9054
9074
  fe as Point2D,
9055
9075
  S as Rect2D,
9056
9076
  Pe as RichLink,
9057
9077
  k as Selection,
9058
- Nc as SelectionView,
9078
+ Bc as SelectionView,
9059
9079
  Un as SelectionViewRendering,
9060
- bi as StackedCommentsPresenter,
9080
+ ki as StackedCommentsPresenter,
9061
9081
  Yt as StrikethroughAstNode,
9062
9082
  M as StringEdit,
9063
9083
  de as StringReplacement,
@@ -9070,61 +9090,61 @@ export {
9070
9090
  ve as ThematicBreakAstNode,
9071
9091
  Be as Token,
9072
9092
  oe as ViewNode,
9073
- Di as VirtualCursorLine,
9093
+ Fi as VirtualCursorLine,
9074
9094
  lt as VisualLine,
9075
9095
  Fe as VisualLineMap,
9076
9096
  _e as VisualRun,
9077
- vl as VsCodeV2CommentsView,
9078
- ul as VscodeStackedCommentsView,
9097
+ kl as VsCodeV2CommentsView,
9098
+ gl as VscodeStackedCommentsView,
9079
9099
  Nt as blocksIntersecting,
9080
9100
  zt as commands,
9081
- $l as createDefaultMonacoSyntaxHighlighter,
9082
- Vo as cursorDocumentEnd,
9083
- Fo as cursorDocumentStart,
9084
- Wo as cursorDown,
9085
- Io as cursorLeft,
9101
+ Kl as createDefaultMonacoSyntaxHighlighter,
9102
+ $o as cursorDocumentEnd,
9103
+ Vo as cursorDocumentStart,
9104
+ Ko as cursorDown,
9105
+ Po as cursorLeft,
9086
9106
  Pt as cursorLineEnd,
9087
9107
  It as cursorLineStart,
9088
- Bo as cursorMoveLeft,
9089
- Po as cursorMoveRight,
9090
- No as cursorRight,
9108
+ Ao as cursorMoveLeft,
9109
+ Bo as cursorMoveRight,
9110
+ Io as cursorRight,
9091
9111
  gn as cursorUp,
9092
- Ho as cursorVisualLineEnd,
9093
- $o as cursorVisualLineStart,
9094
- Do as cursorWordLeft,
9095
- Ao as cursorWordRight,
9112
+ Wo as cursorVisualLineEnd,
9113
+ Ho as cursorVisualLineStart,
9114
+ Fo as cursorWordLeft,
9115
+ Do as cursorWordRight,
9096
9116
  pn as deleteLeft,
9097
- Xo as deleteLineLeft,
9098
- Yo as deleteLineRight,
9099
- qo as deleteRight,
9100
- Go as deleteWordLeft,
9101
- Uo as deleteWordRight,
9102
- _i as escapeFindRegex,
9117
+ Yo as deleteLineLeft,
9118
+ jo as deleteLineRight,
9119
+ Go as deleteRight,
9120
+ Uo as deleteWordLeft,
9121
+ Xo as deleteWordRight,
9122
+ vi as escapeFindRegex,
9103
9123
  Ps as findBlockAtOffset,
9104
9124
  ie as findNodeOffsetById,
9105
9125
  Ss as findWordAt,
9106
- Ei as findWordBoundaryLeft,
9107
- Ci as findWordBoundaryRight,
9108
- Si as findWordDeleteBoundaryLeft,
9109
- Li as findWordDeleteBoundaryRight,
9110
- to as getAnnotatedSource,
9126
+ Ci as findWordBoundaryLeft,
9127
+ Si as findWordBoundaryRight,
9128
+ Li as findWordDeleteBoundaryLeft,
9129
+ Mi as findWordDeleteBoundaryRight,
9130
+ no as getAnnotatedSource,
9111
9131
  As as hiddenCursorRanges,
9112
- tr as insertHardLineBreak,
9113
- er as insertLineBreak,
9114
- Jo as insertParagraph,
9115
- nr as insertSmartEnter,
9116
- Qo as insertTab,
9117
- jo as insertText,
9132
+ nr as insertHardLineBreak,
9133
+ tr as insertLineBreak,
9134
+ er as insertParagraph,
9135
+ sr as insertSmartEnter,
9136
+ Zo as insertTab,
9137
+ Qo as insertText,
9118
9138
  Me as nextCursorPosition,
9119
9139
  ce as normalizeCursorPosition,
9120
- Zo as outdent,
9121
- vr as selectAll,
9122
- br as selectBlock,
9123
- wr as selectWord,
9124
- Hi as taskCheckboxRange,
9125
- Rl as visualizeAst,
9126
- Al as vscodeHostKeyboardProfile,
9140
+ Jo as outdent,
9141
+ wr as selectAll,
9142
+ kr as selectBlock,
9143
+ br as selectWord,
9144
+ Wi as taskCheckboxRange,
9145
+ Pl as visualizeAst,
9146
+ Vl as vscodeHostKeyboardProfile,
9127
9147
  Kt as vscodeKeyboardProfile,
9128
- Bl as vscodeLocalKeyboardProfile
9148
+ Fl as vscodeLocalKeyboardProfile
9129
9149
  };
9130
9150
  //# sourceMappingURL=index.js.map