@yiitap/vue 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -436,7 +436,7 @@ function Rs(t, e) {
436
436
  }
437
437
  return !0;
438
438
  }
439
- let Xe = class Pl {
439
+ let Ze = class Pl {
440
440
  /**
441
441
  @internal
442
442
  */
@@ -541,7 +541,7 @@ let Xe = class Pl {
541
541
  return n.sort((r, o) => r.type.rank - o.type.rank), n;
542
542
  }
543
543
  };
544
- Xe.none = [];
544
+ Ze.none = [];
545
545
  class Is extends Error {
546
546
  }
547
547
  class K {
@@ -839,7 +839,7 @@ class gi {
839
839
  marks() {
840
840
  let e = this.parent, n = this.index();
841
841
  if (e.content.size == 0)
842
- return Xe.none;
842
+ return Ze.none;
843
843
  if (this.textOffset)
844
844
  return e.child(n).marks;
845
845
  let r = e.maybeChild(n - 1), o = e.maybeChild(n);
@@ -1006,7 +1006,7 @@ let Mr = class $l {
1006
1006
  /**
1007
1007
  @internal
1008
1008
  */
1009
- constructor(e, n, r, o = Xe.none) {
1009
+ constructor(e, n, r, o = Ze.none) {
1010
1010
  this.type = e, this.attrs = n, this.marks = o, this.content = r || R.empty;
1011
1011
  }
1012
1012
  /**
@@ -1120,7 +1120,7 @@ let Mr = class $l {
1120
1120
  attributes, and marks.
1121
1121
  */
1122
1122
  hasMarkup(e, n, r) {
1123
- return this.type == e && Rs(this.attrs, n || e.defaultAttrs || vb) && Xe.sameSet(this.marks, r || Xe.none);
1123
+ return this.type == e && Rs(this.attrs, n || e.defaultAttrs || vb) && Ze.sameSet(this.marks, r || Ze.none);
1124
1124
  }
1125
1125
  /**
1126
1126
  Create a new node with the same markup as this node, containing
@@ -1330,12 +1330,12 @@ let Mr = class $l {
1330
1330
  */
1331
1331
  check() {
1332
1332
  this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
1333
- let e = Xe.none;
1333
+ let e = Ze.none;
1334
1334
  for (let n = 0; n < this.marks.length; n++) {
1335
1335
  let r = this.marks[n];
1336
1336
  r.type.checkAttrs(r.attrs), e = r.addToSet(e);
1337
1337
  }
1338
- if (!Xe.sameSet(e, this.marks))
1338
+ if (!Ze.sameSet(e, this.marks))
1339
1339
  throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((n) => n.type.name)}`);
1340
1340
  this.content.forEach((n) => n.check());
1341
1341
  }
@@ -1878,7 +1878,7 @@ let $u = class wp {
1878
1878
  create(e = null, n, r) {
1879
1879
  if (this.isText)
1880
1880
  throw new Error("NodeType.create can't construct text nodes");
1881
- return new Mr(this, this.computeAttrs(e), R.from(n), Xe.setFrom(r));
1881
+ return new Mr(this, this.computeAttrs(e), R.from(n), Ze.setFrom(r));
1882
1882
  }
1883
1883
  /**
1884
1884
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -1886,7 +1886,7 @@ let $u = class wp {
1886
1886
  if it doesn't match.
1887
1887
  */
1888
1888
  createChecked(e = null, n, r) {
1889
- return n = R.from(n), this.checkContent(n), new Mr(this, this.computeAttrs(e), n, Xe.setFrom(r));
1889
+ return n = R.from(n), this.checkContent(n), new Mr(this, this.computeAttrs(e), n, Ze.setFrom(r));
1890
1890
  }
1891
1891
  /**
1892
1892
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -1904,7 +1904,7 @@ let $u = class wp {
1904
1904
  n = s.append(n);
1905
1905
  }
1906
1906
  let o = this.contentMatch.matchFragment(n), i = o && o.fillBefore(R.empty, !0);
1907
- return i ? new Mr(this, e, n.append(i), Xe.setFrom(r)) : null;
1907
+ return i ? new Mr(this, e, n.append(i), Ze.setFrom(r)) : null;
1908
1908
  }
1909
1909
  /**
1910
1910
  Returns true if the given fragment is valid content for this node
@@ -1960,7 +1960,7 @@ let $u = class wp {
1960
1960
  let n;
1961
1961
  for (let r = 0; r < e.length; r++)
1962
1962
  this.allowsMarkType(e[r].type) ? n && n.push(e[r]) : n || (n = e.slice(0, r));
1963
- return n ? n.length ? n : Xe.none : e;
1963
+ return n ? n.length ? n : Ze.none : e;
1964
1964
  }
1965
1965
  /**
1966
1966
  @internal
@@ -2001,7 +2001,7 @@ class Ta {
2001
2001
  constructor(e, n, r, o) {
2002
2002
  this.name = e, this.rank = n, this.schema = r, this.spec = o, this.attrs = kp(e, o.attrs), this.excluded = null;
2003
2003
  let i = yp(this.attrs);
2004
- this.instance = i ? new Xe(this, i) : null;
2004
+ this.instance = i ? new Ze(this, i) : null;
2005
2005
  }
2006
2006
  /**
2007
2007
  Create a mark of this type. `attrs` may be `null` or an object
@@ -2009,7 +2009,7 @@ class Ta {
2009
2009
  they have defaults, will be added.
2010
2010
  */
2011
2011
  create(e = null) {
2012
- return !e && this.instance ? this.instance : new Xe(this, vp(this.attrs, e));
2012
+ return !e && this.instance ? this.instance : new Ze(this, vp(this.attrs, e));
2013
2013
  }
2014
2014
  /**
2015
2015
  @internal
@@ -2100,7 +2100,7 @@ class _p {
2100
2100
  */
2101
2101
  text(e, n) {
2102
2102
  let r = this.nodes.text;
2103
- return new Ps(r, r.defaultAttrs, e, Xe.setFrom(n));
2103
+ return new Ps(r, r.defaultAttrs, e, Ze.setFrom(n));
2104
2104
  }
2105
2105
  /**
2106
2106
  Create a mark with the given type and attributes.
@@ -2120,7 +2120,7 @@ class _p {
2120
2120
  bound.
2121
2121
  */
2122
2122
  markFromJSON(e) {
2123
- return Xe.fromJSON(this, e);
2123
+ return Ze.fromJSON(this, e);
2124
2124
  }
2125
2125
  /**
2126
2126
  @internal
@@ -2181,7 +2181,7 @@ class Rr {
2181
2181
  */
2182
2182
  parse(e, n = {}) {
2183
2183
  let r = new Hu(this, n, !1);
2184
- return r.addAll(e, Xe.none, n.from, n.to), r.finish();
2184
+ return r.addAll(e, Ze.none, n.from, n.to), r.finish();
2185
2185
  }
2186
2186
  /**
2187
2187
  Parses the content of the given DOM node, like
@@ -2193,7 +2193,7 @@ class Rr {
2193
2193
  */
2194
2194
  parseSlice(e, n = {}) {
2195
2195
  let r = new Hu(this, n, !0);
2196
- return r.addAll(e, Xe.none, n.from, n.to), K.maxOpen(r.finish());
2196
+ return r.addAll(e, Ze.none, n.from, n.to), K.maxOpen(r.finish());
2197
2197
  }
2198
2198
  /**
2199
2199
  @internal
@@ -2315,7 +2315,7 @@ function zu(t, e, n) {
2315
2315
  }
2316
2316
  class Zi {
2317
2317
  constructor(e, n, r, o, i, s) {
2318
- this.type = e, this.attrs = n, this.marks = r, this.solid = o, this.options = s, this.content = [], this.activeMarks = Xe.none, this.match = i || (s & ws ? null : e.contentMatch);
2318
+ this.type = e, this.attrs = n, this.marks = r, this.solid = o, this.options = s, this.content = [], this.activeMarks = Ze.none, this.match = i || (s & ws ? null : e.contentMatch);
2319
2319
  }
2320
2320
  findWrapping(e) {
2321
2321
  if (!this.match) {
@@ -2350,7 +2350,7 @@ class Hu {
2350
2350
  constructor(e, n, r) {
2351
2351
  this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
2352
2352
  let o = n.topNode, i, s = zu(null, n.preserveWhitespace, 0) | (r ? ws : 0);
2353
- o ? i = new Zi(o.type, o.attrs, Xe.none, !0, n.topMatch || o.type.contentMatch, s) : r ? i = new Zi(null, null, Xe.none, !0, null, s) : i = new Zi(e.schema.topNodeType, null, Xe.none, !0, null, s), this.nodes = [i], this.find = n.findPositions, this.needsBlock = !1;
2353
+ o ? i = new Zi(o.type, o.attrs, Ze.none, !0, n.topMatch || o.type.contentMatch, s) : r ? i = new Zi(null, null, Ze.none, !0, null, s) : i = new Zi(e.schema.topNodeType, null, Ze.none, !0, null, s), this.nodes = [i], this.find = n.findPositions, this.needsBlock = !1;
2354
2354
  }
2355
2355
  get top() {
2356
2356
  return this.nodes[this.open];
@@ -2500,7 +2500,7 @@ class Hu {
2500
2500
  this.closeExtra();
2501
2501
  let o = this.top;
2502
2502
  o.match && (o.match = o.match.matchType(e.type));
2503
- let i = Xe.none;
2503
+ let i = Ze.none;
2504
2504
  for (let s of r.concat(e.marks))
2505
2505
  (o.type ? o.type.allowsMarkType(s.type) : Vu(s.type, e.type)) && (i = s.addToSet(i));
2506
2506
  return o.content.push(e.mark(i)), !0;
@@ -2520,7 +2520,7 @@ class Hu {
2520
2520
  s.match = s.match && s.match.matchType(e);
2521
2521
  let a = zu(e, i, s.options);
2522
2522
  s.options & ws && s.content.length == 0 && (a |= ws);
2523
- let l = Xe.none;
2523
+ let l = Ze.none;
2524
2524
  return r = r.filter((c) => (s.type ? s.type.allowsMarkType(c.type) : Vu(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Zi(e, n, l, o, null, a)), this.open++, r;
2525
2525
  }
2526
2526
  // Make sure all nodes above this.open are finished and added to
@@ -4268,7 +4268,7 @@ class xc {
4268
4268
  position `pos`.
4269
4269
  */
4270
4270
  removeNodeMark(e, n) {
4271
- if (!(n instanceof Xe)) {
4271
+ if (!(n instanceof Ze)) {
4272
4272
  let r = this.doc.nodeAt(e);
4273
4273
  if (!r)
4274
4274
  throw new RangeError("No node at position " + e);
@@ -4751,7 +4751,7 @@ class ay extends xc {
4751
4751
  this is already the case.
4752
4752
  */
4753
4753
  ensureMarks(e) {
4754
- return Xe.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
4754
+ return Ze.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
4755
4755
  }
4756
4756
  /**
4757
4757
  Add a mark to the set of stored marks.
@@ -4796,7 +4796,7 @@ class ay extends xc {
4796
4796
  */
4797
4797
  replaceSelectionWith(e, n = !0) {
4798
4798
  let r = this.selection;
4799
- return n && (e = e.mark(this.storedMarks || (r.empty ? r.$from.marks() : r.$from.marksAcross(r.$to) || Xe.none))), r.replaceWith(this, e), this;
4799
+ return n && (e = e.mark(this.storedMarks || (r.empty ? r.$from.marks() : r.$from.marksAcross(r.$to) || Ze.none))), r.replaceWith(this, e), this;
4800
4800
  }
4801
4801
  /**
4802
4802
  Delete the selection.
@@ -5100,7 +5100,7 @@ const sl = /* @__PURE__ */ Object.create(null);
5100
5100
  function Hp(t) {
5101
5101
  return t in sl ? t + "$" + ++sl[t] : (sl[t] = 0, t + "$");
5102
5102
  }
5103
- class Ze {
5103
+ class Xe {
5104
5104
  /**
5105
5105
  Create a plugin key.
5106
5106
  */
@@ -6062,7 +6062,7 @@ class Dr extends Fi {
6062
6062
  updateChildren(e, n) {
6063
6063
  let r = this.node.inlineContent, o = n, i = e.composing ? this.localCompositionInfo(e, n) : null, s = i && i.pos > -1 ? i : null, a = i && i.pos < 0, l = new Py(this, s && s.node, e);
6064
6064
  Fy(this.node, this.innerDeco, (c, u, d) => {
6065
- c.spec.marks ? l.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && l.syncToMarks(u == this.node.childCount ? Xe.none : this.node.child(u).marks, r, e), l.placeWidget(c, e, o);
6065
+ c.spec.marks ? l.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && l.syncToMarks(u == this.node.childCount ? Ze.none : this.node.child(u).marks, r, e), l.placeWidget(c, e, o);
6066
6066
  }, (c, u, d, f) => {
6067
6067
  l.syncToMarks(c.marks, r, e);
6068
6068
  let p;
@@ -10356,7 +10356,7 @@ const M0 = Ke.create({
10356
10356
  addProseMirrorPlugins() {
10357
10357
  return [
10358
10358
  new Ue({
10359
- key: new Ze("clipboardTextSerializer"),
10359
+ key: new Xe("clipboardTextSerializer"),
10360
10360
  props: {
10361
10361
  clipboardTextSerializer: () => {
10362
10362
  const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: o } = e, { ranges: i } = o, s = Math.min(...i.map((u) => u.$from.pos)), a = Math.max(...i.map((u) => u.$to.pos)), l = Kc(n);
@@ -11339,7 +11339,7 @@ const YE = Ke.create({
11339
11339
  addProseMirrorPlugins() {
11340
11340
  return [
11341
11341
  new Ue({
11342
- key: new Ze("tiptapDrop"),
11342
+ key: new Xe("tiptapDrop"),
11343
11343
  props: {
11344
11344
  handleDrop: (t, e, n, r) => {
11345
11345
  this.editor.emit("drop", {
@@ -11358,7 +11358,7 @@ const YE = Ke.create({
11358
11358
  addProseMirrorPlugins() {
11359
11359
  return [
11360
11360
  new Ue({
11361
- key: new Ze("editable"),
11361
+ key: new Xe("editable"),
11362
11362
  props: {
11363
11363
  editable: () => this.editor.options.editable
11364
11364
  }
@@ -11371,7 +11371,7 @@ const YE = Ke.create({
11371
11371
  const { editor: t } = this;
11372
11372
  return [
11373
11373
  new Ue({
11374
- key: new Ze("focusEvents"),
11374
+ key: new Xe("focusEvents"),
11375
11375
  props: {
11376
11376
  handleDOMEvents: {
11377
11377
  focus: (e, n) => {
@@ -11444,7 +11444,7 @@ const YE = Ke.create({
11444
11444
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
11445
11445
  // with many other commands.
11446
11446
  new Ue({
11447
- key: new Ze("clearDocument"),
11447
+ key: new Xe("clearDocument"),
11448
11448
  appendTransaction: (t, e, n) => {
11449
11449
  if (t.some((m) => m.getMeta("composition")))
11450
11450
  return;
@@ -11472,7 +11472,7 @@ const YE = Ke.create({
11472
11472
  addProseMirrorPlugins() {
11473
11473
  return [
11474
11474
  new Ue({
11475
- key: new Ze("tiptapPaste"),
11475
+ key: new Xe("tiptapPaste"),
11476
11476
  props: {
11477
11477
  handlePaste: (t, e, n) => {
11478
11478
  this.editor.emit("paste", {
@@ -11490,7 +11490,7 @@ const YE = Ke.create({
11490
11490
  addProseMirrorPlugins() {
11491
11491
  return [
11492
11492
  new Ue({
11493
- key: new Ze("tabindex"),
11493
+ key: new Xe("tabindex"),
11494
11494
  props: {
11495
11495
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
11496
11496
  }
@@ -14092,7 +14092,7 @@ class Fw {
14092
14092
  }
14093
14093
  }
14094
14094
  const hm = (t) => new Ue({
14095
- key: typeof t.pluginKey == "string" ? new Ze(t.pluginKey) : t.pluginKey,
14095
+ key: typeof t.pluginKey == "string" ? new Xe(t.pluginKey) : t.pluginKey,
14096
14096
  view: (e) => new Fw({ view: e, ...t })
14097
14097
  });
14098
14098
  Ke.create({
@@ -14187,7 +14187,7 @@ class zw {
14187
14187
  }
14188
14188
  }
14189
14189
  const mm = (t) => new Ue({
14190
- key: typeof t.pluginKey == "string" ? new Ze(t.pluginKey) : t.pluginKey,
14190
+ key: typeof t.pluginKey == "string" ? new Xe(t.pluginKey) : t.pluginKey,
14191
14191
  view: (e) => new zw({ view: e, ...t })
14192
14192
  });
14193
14193
  Ke.create({
@@ -14942,7 +14942,7 @@ const qw = /^\s*>\s$/, ym = st.create({
14942
14942
  // this plugin creates a code block for pasted content from VS Code
14943
14943
  // we can also detect the copied code language
14944
14944
  new Ue({
14945
- key: new Ze("codeBlockVSCodeHandler"),
14945
+ key: new Xe("codeBlockVSCodeHandler"),
14946
14946
  props: {
14947
14947
  handlePaste: (t, e) => {
14948
14948
  if (!e.clipboardData || this.editor.isActive(this.type.name))
@@ -15666,7 +15666,7 @@ function Ts(t) {
15666
15666
  }
15667
15667
  return wl;
15668
15668
  }
15669
- const no = new Ze("history"), S_ = new Ze("closeHistory");
15669
+ const no = new Xe("history"), S_ = new Xe("closeHistory");
15670
15670
  function C_(t = {}) {
15671
15671
  return t = {
15672
15672
  depth: t.depth || 100,
@@ -21756,7 +21756,7 @@ function vx(t, e) {
21756
21756
  pos: n
21757
21757
  };
21758
21758
  }
21759
- const Js = new Ze("sideMenu");
21759
+ const Js = new Xe("sideMenu");
21760
21760
  class Ex {
21761
21761
  constructor() {
21762
21762
  Ge(this, "hovered", !1);
@@ -22082,7 +22082,93 @@ const xx = G({
22082
22082
  }, 8, ["class", "editor", "tippy-options"])
22083
22083
  ])) : ae("", !0);
22084
22084
  }
22085
- }), Ax = /* @__PURE__ */ G({
22085
+ });
22086
+ /**
22087
+ * Copyright 2025 Yiitap
22088
+ * @license MIT
22089
+ **/
22090
+ const yf = (t) => {
22091
+ const e = /(#[0-9a-f]{3,6})\b/gi, n = [];
22092
+ return t.descendants((r, o) => {
22093
+ r.text && Array.from(r.text.matchAll(e)).forEach((i) => {
22094
+ const s = i[0], a = i.index || 0, l = o + a, c = l + s.length, u = ht.inline(l, c, {
22095
+ class: "color",
22096
+ style: `--color: ${s}`
22097
+ });
22098
+ n.push(u);
22099
+ });
22100
+ }), He.create(t, n);
22101
+ }, Ax = Ke.create({
22102
+ name: "colorHighlighter",
22103
+ addProseMirrorPlugins() {
22104
+ return [
22105
+ new Ue({
22106
+ key: new Xe("colorHighlighter"),
22107
+ state: {
22108
+ init(t, { doc: e }) {
22109
+ return yf(e);
22110
+ },
22111
+ apply(t, e) {
22112
+ return t.docChanged ? yf(t.doc) : e;
22113
+ }
22114
+ },
22115
+ props: {
22116
+ decorations(t) {
22117
+ return this.getState(t);
22118
+ }
22119
+ }
22120
+ })
22121
+ ];
22122
+ }
22123
+ });
22124
+ /**
22125
+ * Copyright 2025 Yiitap
22126
+ * @license MIT
22127
+ **/
22128
+ Ke.create({
22129
+ name: "focus",
22130
+ addOptions() {
22131
+ return {
22132
+ className: "has-focus",
22133
+ mode: "all"
22134
+ };
22135
+ },
22136
+ addProseMirrorPlugins() {
22137
+ return [
22138
+ new Ue({
22139
+ key: new Xe("focus"),
22140
+ props: {
22141
+ decorations: ({ doc: t, selection: e }) => {
22142
+ const { isEditable: n, isFocused: r } = this.editor, { anchor: o } = e, i = [];
22143
+ if (!n || !r)
22144
+ return He.create(t, []);
22145
+ let s = 0;
22146
+ this.options.mode === "deepest" && t.descendants((l, c) => {
22147
+ if (!l.isText) {
22148
+ if (!(o >= c && o <= c + l.nodeSize - 1))
22149
+ return !1;
22150
+ s += 1;
22151
+ }
22152
+ });
22153
+ let a = 0;
22154
+ return t.descendants((l, c) => {
22155
+ if (l.isText || !(o >= c && o <= c + l.nodeSize - 1))
22156
+ return !1;
22157
+ if (a += 1, this.options.mode === "deepest" && s - a > 0 || this.options.mode === "shallowest" && a > 1)
22158
+ return this.options.mode === "deepest";
22159
+ i.push(
22160
+ ht.node(c, c + l.nodeSize, {
22161
+ class: this.options.className
22162
+ })
22163
+ );
22164
+ }), He.create(t, i);
22165
+ }
22166
+ }
22167
+ })
22168
+ ];
22169
+ }
22170
+ });
22171
+ const Mx = /* @__PURE__ */ G({
22086
22172
  __name: "view",
22087
22173
  props: Ot,
22088
22174
  setup(t) {
@@ -22096,17 +22182,17 @@ const xx = G({
22096
22182
  _: 1
22097
22183
  }, 16));
22098
22184
  }
22099
- }), Mx = ym.extend({
22185
+ }), Rx = ym.extend({
22100
22186
  draggable: !0,
22101
22187
  addNodeView() {
22102
- return Ln(Ax);
22188
+ return Ln(Mx);
22103
22189
  }
22104
22190
  });
22105
22191
  /**
22106
22192
  * Copyright 2025 Yiitap
22107
22193
  * @license MIT
22108
22194
  **/
22109
- const Rx = st.create({
22195
+ const Ix = st.create({
22110
22196
  name: "callout",
22111
22197
  group: "block",
22112
22198
  content: "block+",
@@ -22156,7 +22242,7 @@ const Rx = st.create({
22156
22242
  unsetCallout: () => ({ commands: t }) => t.lift(this.name)
22157
22243
  };
22158
22244
  }
22159
- }), Ix = { class: "callout-container" }, Dx = { class: "callout-icon" }, Lx = { class: "callout-content" }, Px = /* @__PURE__ */ G({
22245
+ }), Dx = { class: "callout-container" }, Lx = { class: "callout-icon" }, Px = { class: "callout-content" }, Bx = /* @__PURE__ */ G({
22160
22246
  __name: "view",
22161
22247
  props: Ot,
22162
22248
  setup(t) {
@@ -22216,9 +22302,9 @@ const Rx = st.create({
22216
22302
  onContextmenu: fr(h, ["prevent"])
22217
22303
  }), {
22218
22304
  default: C(() => [
22219
- A("div", Ix, [
22220
- A("div", Dx, Ce(g.node.attrs.icon), 1),
22221
- A("div", Lx, [
22305
+ A("div", Dx, [
22306
+ A("div", Lx, Ce(g.node.attrs.icon), 1),
22307
+ A("div", Px, [
22222
22308
  x(y(hr))
22223
22309
  ]),
22224
22310
  x(y(au), {
@@ -22236,12 +22322,12 @@ const Rx = st.create({
22236
22322
  _: 1
22237
22323
  }, 16, ["style"]));
22238
22324
  }
22239
- }), Bx = Rx.extend({
22325
+ }), $x = Ix.extend({
22240
22326
  addNodeView() {
22241
- return Ln(Px);
22327
+ return Ln(Bx);
22242
22328
  }
22243
22329
  });
22244
- function $x(t) {
22330
+ function Fx(t) {
22245
22331
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
22246
22332
  }
22247
22333
  function $m(t) {
@@ -22254,7 +22340,7 @@ function $m(t) {
22254
22340
  (r === "object" || r === "function") && !Object.isFrozen(n) && $m(n);
22255
22341
  }), t;
22256
22342
  }
22257
- class yf {
22343
+ class vf {
22258
22344
  /**
22259
22345
  * @param {CompiledMode} mode
22260
22346
  */
@@ -22278,7 +22364,7 @@ function Ar(t, ...e) {
22278
22364
  }), /** @type {T} */
22279
22365
  n;
22280
22366
  }
22281
- const Fx = "</span>", vf = (t) => !!t.scope, zx = (t, { prefix: e }) => {
22367
+ const zx = "</span>", Ef = (t) => !!t.scope, Hx = (t, { prefix: e }) => {
22282
22368
  if (t.startsWith("language:"))
22283
22369
  return t.replace("language:", "language-");
22284
22370
  if (t.includes(".")) {
@@ -22290,7 +22376,7 @@ const Fx = "</span>", vf = (t) => !!t.scope, zx = (t, { prefix: e }) => {
22290
22376
  }
22291
22377
  return `${e}${t}`;
22292
22378
  };
22293
- class Hx {
22379
+ class Ux {
22294
22380
  /**
22295
22381
  * Creates a new HTMLRenderer
22296
22382
  *
@@ -22312,8 +22398,8 @@ class Hx {
22312
22398
  *
22313
22399
  * @param {Node} node */
22314
22400
  openNode(e) {
22315
- if (!vf(e)) return;
22316
- const n = zx(
22401
+ if (!Ef(e)) return;
22402
+ const n = Hx(
22317
22403
  e.scope,
22318
22404
  { prefix: this.classPrefix }
22319
22405
  );
@@ -22324,7 +22410,7 @@ class Hx {
22324
22410
  *
22325
22411
  * @param {Node} node */
22326
22412
  closeNode(e) {
22327
- vf(e) && (this.buffer += Fx);
22413
+ Ef(e) && (this.buffer += zx);
22328
22414
  }
22329
22415
  /**
22330
22416
  * returns the accumulated buffer
@@ -22341,13 +22427,13 @@ class Hx {
22341
22427
  this.buffer += `<span class="${e}">`;
22342
22428
  }
22343
22429
  }
22344
- const Ef = (t = {}) => {
22430
+ const kf = (t = {}) => {
22345
22431
  const e = { children: [] };
22346
22432
  return Object.assign(e, t), e;
22347
22433
  };
22348
22434
  class du {
22349
22435
  constructor() {
22350
- this.rootNode = Ef(), this.stack = [this.rootNode];
22436
+ this.rootNode = kf(), this.stack = [this.rootNode];
22351
22437
  }
22352
22438
  get top() {
22353
22439
  return this.stack[this.stack.length - 1];
@@ -22361,7 +22447,7 @@ class du {
22361
22447
  }
22362
22448
  /** @param {string} scope */
22363
22449
  openNode(e) {
22364
- const n = Ef({ scope: e });
22450
+ const n = kf({ scope: e });
22365
22451
  this.add(n), this.stack.push(n);
22366
22452
  }
22367
22453
  closeNode() {
@@ -22397,7 +22483,7 @@ class du {
22397
22483
  }));
22398
22484
  }
22399
22485
  }
22400
- class Ux extends du {
22486
+ class Vx extends du {
22401
22487
  /**
22402
22488
  * @param {*} options
22403
22489
  */
@@ -22426,7 +22512,7 @@ class Ux extends du {
22426
22512
  n && (r.scope = `language:${n}`), this.add(r);
22427
22513
  }
22428
22514
  toHTML() {
22429
- return new Hx(this, this.options).value();
22515
+ return new Ux(this, this.options).value();
22430
22516
  }
22431
22517
  finalize() {
22432
22518
  return this.closeAllNodes(), !0;
@@ -22438,30 +22524,30 @@ function Mi(t) {
22438
22524
  function zm(t) {
22439
22525
  return mo("(?=", t, ")");
22440
22526
  }
22441
- function Vx(t) {
22527
+ function Wx(t) {
22442
22528
  return mo("(?:", t, ")*");
22443
22529
  }
22444
- function Wx(t) {
22530
+ function Kx(t) {
22445
22531
  return mo("(?:", t, ")?");
22446
22532
  }
22447
22533
  function mo(...t) {
22448
22534
  return t.map((n) => Mi(n)).join("");
22449
22535
  }
22450
- function Kx(t) {
22536
+ function qx(t) {
22451
22537
  const e = t[t.length - 1];
22452
22538
  return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
22453
22539
  }
22454
22540
  function fu(...t) {
22455
- return "(" + (Kx(t).capture ? "" : "?:") + t.map((r) => Mi(r)).join("|") + ")";
22541
+ return "(" + (qx(t).capture ? "" : "?:") + t.map((r) => Mi(r)).join("|") + ")";
22456
22542
  }
22457
22543
  function Hm(t) {
22458
22544
  return new RegExp(t.toString() + "|").exec("").length - 1;
22459
22545
  }
22460
- function qx(t, e) {
22546
+ function Gx(t, e) {
22461
22547
  const n = t && t.exec(e);
22462
22548
  return n && n.index === 0;
22463
22549
  }
22464
- const Gx = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
22550
+ const jx = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
22465
22551
  function pu(t, { joinWith: e }) {
22466
22552
  let n = 0;
22467
22553
  return t.map((r) => {
@@ -22469,7 +22555,7 @@ function pu(t, { joinWith: e }) {
22469
22555
  const o = n;
22470
22556
  let i = Mi(r), s = "";
22471
22557
  for (; i.length > 0; ) {
22472
- const a = Gx.exec(i);
22558
+ const a = jx.exec(i);
22473
22559
  if (!a) {
22474
22560
  s += i;
22475
22561
  break;
@@ -22479,7 +22565,7 @@ function pu(t, { joinWith: e }) {
22479
22565
  return s;
22480
22566
  }).map((r) => `(${r})`).join(e);
22481
22567
  }
22482
- const jx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\\d+)?", Wm = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Km = "\\b(0b[01]+)", Yx = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Jx = (t = {}) => {
22568
+ const Yx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\\d+)?", Wm = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Km = "\\b(0b[01]+)", Jx = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Xx = (t = {}) => {
22483
22569
  const e = /^#![ ]*\//;
22484
22570
  return t.binary && (t.begin = mo(
22485
22571
  e,
@@ -22499,19 +22585,19 @@ const jx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\
22499
22585
  }, Ri = {
22500
22586
  begin: "\\\\[\\s\\S]",
22501
22587
  relevance: 0
22502
- }, Xx = {
22588
+ }, Zx = {
22503
22589
  scope: "string",
22504
22590
  begin: "'",
22505
22591
  end: "'",
22506
22592
  illegal: "\\n",
22507
22593
  contains: [Ri]
22508
- }, Zx = {
22594
+ }, Qx = {
22509
22595
  scope: "string",
22510
22596
  begin: '"',
22511
22597
  end: '"',
22512
22598
  illegal: "\\n",
22513
22599
  contains: [Ri]
22514
- }, Qx = {
22600
+ }, eT = {
22515
22601
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
22516
22602
  }, Wa = function(t, e, n = {}) {
22517
22603
  const r = Ar(
@@ -22579,19 +22665,19 @@ const jx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\
22579
22665
  // look for 3 words in a row
22580
22666
  }
22581
22667
  ), r;
22582
- }, eT = Wa("//", "$"), tT = Wa("/\\*", "\\*/"), nT = Wa("#", "$"), rT = {
22668
+ }, tT = Wa("//", "$"), nT = Wa("/\\*", "\\*/"), rT = Wa("#", "$"), oT = {
22583
22669
  scope: "number",
22584
22670
  begin: Vm,
22585
22671
  relevance: 0
22586
- }, oT = {
22672
+ }, iT = {
22587
22673
  scope: "number",
22588
22674
  begin: Wm,
22589
22675
  relevance: 0
22590
- }, iT = {
22676
+ }, sT = {
22591
22677
  scope: "number",
22592
22678
  begin: Km,
22593
22679
  relevance: 0
22594
- }, sT = {
22680
+ }, aT = {
22595
22681
  scope: "regexp",
22596
22682
  begin: /\/(?=[^/\n]*\/)/,
22597
22683
  end: /\/[gimuy]*/,
@@ -22604,19 +22690,19 @@ const jx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\
22604
22690
  contains: [Ri]
22605
22691
  }
22606
22692
  ]
22607
- }, aT = {
22693
+ }, lT = {
22608
22694
  scope: "title",
22609
22695
  begin: Um,
22610
22696
  relevance: 0
22611
- }, lT = {
22697
+ }, cT = {
22612
22698
  scope: "title",
22613
22699
  begin: hu,
22614
22700
  relevance: 0
22615
- }, cT = {
22701
+ }, uT = {
22616
22702
  // excludes method names from keyword processing
22617
22703
  begin: "\\.\\s*" + hu,
22618
22704
  relevance: 0
22619
- }, uT = function(t) {
22705
+ }, dT = function(t) {
22620
22706
  return Object.assign(
22621
22707
  t,
22622
22708
  {
@@ -22633,53 +22719,53 @@ const jx = /\b\B/, Um = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Vm = "\\b\\d+(\\.\
22633
22719
  };
22634
22720
  var as = /* @__PURE__ */ Object.freeze({
22635
22721
  __proto__: null,
22636
- APOS_STRING_MODE: Xx,
22722
+ APOS_STRING_MODE: Zx,
22637
22723
  BACKSLASH_ESCAPE: Ri,
22638
- BINARY_NUMBER_MODE: iT,
22724
+ BINARY_NUMBER_MODE: sT,
22639
22725
  BINARY_NUMBER_RE: Km,
22640
22726
  COMMENT: Wa,
22641
- C_BLOCK_COMMENT_MODE: tT,
22642
- C_LINE_COMMENT_MODE: eT,
22643
- C_NUMBER_MODE: oT,
22727
+ C_BLOCK_COMMENT_MODE: nT,
22728
+ C_LINE_COMMENT_MODE: tT,
22729
+ C_NUMBER_MODE: iT,
22644
22730
  C_NUMBER_RE: Wm,
22645
- END_SAME_AS_BEGIN: uT,
22646
- HASH_COMMENT_MODE: nT,
22731
+ END_SAME_AS_BEGIN: dT,
22732
+ HASH_COMMENT_MODE: rT,
22647
22733
  IDENT_RE: Um,
22648
- MATCH_NOTHING_RE: jx,
22649
- METHOD_GUARD: cT,
22650
- NUMBER_MODE: rT,
22734
+ MATCH_NOTHING_RE: Yx,
22735
+ METHOD_GUARD: uT,
22736
+ NUMBER_MODE: oT,
22651
22737
  NUMBER_RE: Vm,
22652
- PHRASAL_WORDS_MODE: Qx,
22653
- QUOTE_STRING_MODE: Zx,
22654
- REGEXP_MODE: sT,
22655
- RE_STARTERS_RE: Yx,
22656
- SHEBANG: Jx,
22657
- TITLE_MODE: aT,
22738
+ PHRASAL_WORDS_MODE: eT,
22739
+ QUOTE_STRING_MODE: Qx,
22740
+ REGEXP_MODE: aT,
22741
+ RE_STARTERS_RE: Jx,
22742
+ SHEBANG: Xx,
22743
+ TITLE_MODE: lT,
22658
22744
  UNDERSCORE_IDENT_RE: hu,
22659
- UNDERSCORE_TITLE_MODE: lT
22745
+ UNDERSCORE_TITLE_MODE: cT
22660
22746
  });
22661
- function dT(t, e) {
22662
- t.input[t.index - 1] === "." && e.ignoreMatch();
22663
- }
22664
22747
  function fT(t, e) {
22665
- t.className !== void 0 && (t.scope = t.className, delete t.className);
22748
+ t.input[t.index - 1] === "." && e.ignoreMatch();
22666
22749
  }
22667
22750
  function pT(t, e) {
22668
- e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = dT, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0));
22751
+ t.className !== void 0 && (t.scope = t.className, delete t.className);
22669
22752
  }
22670
22753
  function hT(t, e) {
22671
- Array.isArray(t.illegal) && (t.illegal = fu(...t.illegal));
22754
+ e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = fT, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0));
22672
22755
  }
22673
22756
  function mT(t, e) {
22757
+ Array.isArray(t.illegal) && (t.illegal = fu(...t.illegal));
22758
+ }
22759
+ function gT(t, e) {
22674
22760
  if (t.match) {
22675
22761
  if (t.begin || t.end) throw new Error("begin & end are not supported with match");
22676
22762
  t.begin = t.match, delete t.match;
22677
22763
  }
22678
22764
  }
22679
- function gT(t, e) {
22765
+ function bT(t, e) {
22680
22766
  t.relevance === void 0 && (t.relevance = 1);
22681
22767
  }
22682
- const bT = (t, e) => {
22768
+ const yT = (t, e) => {
22683
22769
  if (!t.beforeMatch) return;
22684
22770
  if (t.starts) throw new Error("beforeMatch cannot be used with starts");
22685
22771
  const n = Object.assign({}, t);
@@ -22691,7 +22777,7 @@ const bT = (t, e) => {
22691
22777
  Object.assign(n, { endsParent: !0 })
22692
22778
  ]
22693
22779
  }, t.relevance = 0, delete n.beforeMatch;
22694
- }, yT = [
22780
+ }, vT = [
22695
22781
  "of",
22696
22782
  "and",
22697
22783
  "for",
@@ -22706,8 +22792,8 @@ const bT = (t, e) => {
22706
22792
  // common variable name
22707
22793
  "value"
22708
22794
  // common variable name
22709
- ], vT = "keyword";
22710
- function qm(t, e, n = vT) {
22795
+ ], ET = "keyword";
22796
+ function qm(t, e, n = ET) {
22711
22797
  const r = /* @__PURE__ */ Object.create(null);
22712
22798
  return typeof t == "string" ? o(n, t.split(" ")) : Array.isArray(t) ? o(n, t) : Object.keys(t).forEach(function(i) {
22713
22799
  Object.assign(
@@ -22718,22 +22804,22 @@ function qm(t, e, n = vT) {
22718
22804
  function o(i, s) {
22719
22805
  e && (s = s.map((a) => a.toLowerCase())), s.forEach(function(a) {
22720
22806
  const l = a.split("|");
22721
- r[l[0]] = [i, ET(l[0], l[1])];
22807
+ r[l[0]] = [i, kT(l[0], l[1])];
22722
22808
  });
22723
22809
  }
22724
22810
  }
22725
- function ET(t, e) {
22726
- return e ? Number(e) : kT(t) ? 0 : 1;
22811
+ function kT(t, e) {
22812
+ return e ? Number(e) : wT(t) ? 0 : 1;
22727
22813
  }
22728
- function kT(t) {
22729
- return yT.includes(t.toLowerCase());
22814
+ function wT(t) {
22815
+ return vT.includes(t.toLowerCase());
22730
22816
  }
22731
- const kf = {}, oo = (t) => {
22817
+ const wf = {}, oo = (t) => {
22732
22818
  console.error(t);
22733
- }, wf = (t, ...e) => {
22819
+ }, _f = (t, ...e) => {
22734
22820
  console.log(`WARN: ${t}`, ...e);
22735
22821
  }, vo = (t, e) => {
22736
- kf[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), kf[`${t}/${e}`] = !0);
22822
+ wf[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), wf[`${t}/${e}`] = !0);
22737
22823
  }, Xs = new Error();
22738
22824
  function Gm(t, e, { key: n }) {
22739
22825
  let r = 0;
@@ -22742,7 +22828,7 @@ function Gm(t, e, { key: n }) {
22742
22828
  s[a + r] = o[a], i[a + r] = !0, r += Hm(e[a - 1]);
22743
22829
  t[n] = s, t[n]._emit = i, t[n]._multi = !0;
22744
22830
  }
22745
- function wT(t) {
22831
+ function _T(t) {
22746
22832
  if (Array.isArray(t.begin)) {
22747
22833
  if (t.skip || t.excludeBegin || t.returnBegin)
22748
22834
  throw oo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Xs;
@@ -22751,7 +22837,7 @@ function wT(t) {
22751
22837
  Gm(t, t.begin, { key: "beginScope" }), t.begin = pu(t.begin, { joinWith: "" });
22752
22838
  }
22753
22839
  }
22754
- function _T(t) {
22840
+ function ST(t) {
22755
22841
  if (Array.isArray(t.end)) {
22756
22842
  if (t.skip || t.excludeEnd || t.returnEnd)
22757
22843
  throw oo("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Xs;
@@ -22760,13 +22846,13 @@ function _T(t) {
22760
22846
  Gm(t, t.end, { key: "endScope" }), t.end = pu(t.end, { joinWith: "" });
22761
22847
  }
22762
22848
  }
22763
- function ST(t) {
22764
- t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope);
22765
- }
22766
22849
  function CT(t) {
22767
- ST(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), wT(t), _T(t);
22850
+ t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope);
22768
22851
  }
22769
22852
  function xT(t) {
22853
+ CT(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), _T(t), ST(t);
22854
+ }
22855
+ function TT(t) {
22770
22856
  function e(s, a) {
22771
22857
  return new RegExp(
22772
22858
  Mi(s),
@@ -22839,26 +22925,26 @@ function xT(t) {
22839
22925
  );
22840
22926
  if (s.isCompiled) return l;
22841
22927
  [
22842
- fT,
22928
+ pT,
22843
22929
  // do this early so compiler extensions generally don't have to worry about
22844
22930
  // the distinction between match/begin
22845
- mT,
22846
- CT,
22847
- bT
22931
+ gT,
22932
+ xT,
22933
+ yT
22848
22934
  ].forEach((u) => u(s, a)), t.compilerExtensions.forEach((u) => u(s, a)), s.__beforeBegin = null, [
22849
- pT,
22935
+ hT,
22850
22936
  // do this later so compiler extensions that come earlier have access to the
22851
22937
  // raw array if they wanted to perhaps manipulate it, etc.
22852
- hT,
22938
+ mT,
22853
22939
  // default to 1 relevance if not specified
22854
- gT
22940
+ bT
22855
22941
  ].forEach((u) => u(s, a)), s.isCompiled = !0;
22856
22942
  let c = null;
22857
22943
  return typeof s.keywords == "object" && s.keywords.$pattern && (s.keywords = Object.assign({}, s.keywords), c = s.keywords.$pattern, delete s.keywords.$pattern), c = c || /\w+/, s.keywords && (s.keywords = qm(s.keywords, t.case_insensitive)), l.keywordPatternRe = e(c, !0), a && (s.begin || (s.begin = /\B|\b/), l.beginRe = e(l.begin), !s.end && !s.endsWithParent && (s.end = /\B|\b/), s.end && (l.endRe = e(l.end)), l.terminatorEnd = Mi(l.end) || "", s.endsWithParent && a.terminatorEnd && (l.terminatorEnd += (s.end ? "|" : "") + a.terminatorEnd)), s.illegal && (l.illegalRe = e(
22858
22944
  /** @type {RegExp | string} */
22859
22945
  s.illegal
22860
22946
  )), s.contains || (s.contains = []), s.contains = [].concat(...s.contains.map(function(u) {
22861
- return TT(u === "self" ? s : u);
22947
+ return OT(u === "self" ? s : u);
22862
22948
  })), s.contains.forEach(function(u) {
22863
22949
  i(
22864
22950
  /** @type Mode */
@@ -22877,18 +22963,18 @@ function xT(t) {
22877
22963
  function jm(t) {
22878
22964
  return t ? t.endsWithParent || jm(t.starts) : !1;
22879
22965
  }
22880
- function TT(t) {
22966
+ function OT(t) {
22881
22967
  return t.variants && !t.cachedVariants && (t.cachedVariants = t.variants.map(function(e) {
22882
22968
  return Ar(t, { variants: null }, e);
22883
22969
  })), t.cachedVariants ? t.cachedVariants : jm(t) ? Ar(t, { starts: t.starts ? Ar(t.starts) : null }) : Object.isFrozen(t) ? Ar(t) : t;
22884
22970
  }
22885
- var OT = "11.10.0";
22886
- class NT extends Error {
22971
+ var NT = "11.10.0";
22972
+ class AT extends Error {
22887
22973
  constructor(e, n) {
22888
22974
  super(e), this.name = "HTMLInjectionError", this.html = n;
22889
22975
  }
22890
22976
  }
22891
- const Sl = Fm, _f = Ar, Sf = Symbol("nomatch"), AT = 7, Ym = function(t) {
22977
+ const Sl = Fm, Sf = Ar, Cf = Symbol("nomatch"), MT = 7, Ym = function(t) {
22892
22978
  const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
22893
22979
  let o = !0;
22894
22980
  const i = "Could not find the language '{}', did you forget to load/include a language module?", s = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -22902,7 +22988,7 @@ const Sl = Fm, _f = Ar, Sf = Symbol("nomatch"), AT = 7, Ym = function(t) {
22902
22988
  languages: null,
22903
22989
  // beta configuration options, subject to change, welcome to discuss
22904
22990
  // https://github.com/highlightjs/highlight.js/issues/1086
22905
- __emitter: Ux
22991
+ __emitter: Vx
22906
22992
  };
22907
22993
  function l(N) {
22908
22994
  return a.noHighlightRe.test(N);
@@ -22913,7 +22999,7 @@ const Sl = Fm, _f = Ar, Sf = Symbol("nomatch"), AT = 7, Ym = function(t) {
22913
22999
  const Y = a.languageDetectRe.exec(D);
22914
23000
  if (Y) {
22915
23001
  const oe = L(Y[1]);
22916
- return oe || (wf(i.replace("{}", Y[1])), wf("Falling back to no-highlight mode for this block.", N)), oe ? Y[1] : "no-highlight";
23002
+ return oe || (_f(i.replace("{}", Y[1])), _f("Falling back to no-highlight mode for this block.", N)), oe ? Y[1] : "no-highlight";
22917
23003
  }
22918
23004
  return D.split(/\s+/).find((oe) => l(oe) || L(oe));
22919
23005
  }
@@ -22947,7 +23033,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
22947
23033
  const Ie = ve.case_insensitive ? J[0].toLowerCase() : J[0], gt = Se(le, Ie);
22948
23034
  if (gt) {
22949
23035
  const [an, qo] = gt;
22950
- if (qe.addText(we), we = "", ce[Ie] = (ce[Ie] || 0) + 1, ce[Ie] <= AT && (Wt += qo), an.startsWith("_"))
23036
+ if (qe.addText(we), we = "", ce[Ie] = (ce[Ie] || 0) + 1, ce[Ie] <= MT && (Wt += qo), an.startsWith("_"))
22951
23037
  we += J[0];
22952
23038
  else {
22953
23039
  const O = ve.classNameAliases[an] || an;
@@ -22995,10 +23081,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
22995
23081
  return H.scope && typeof H.scope == "string" && qe.openNode(ve.classNameAliases[H.scope] || H.scope), H.beginScope && (H.beginScope._wrap ? (et(Re, ve.classNameAliases[H.beginScope._wrap] || H.beginScope._wrap), Re = "") : H.beginScope._multi && (on(H.beginScope, J), Re = "")), le = Object.create(H, { parent: { value: le } }), le;
22996
23082
  }
22997
23083
  function hn(H, J, we) {
22998
- let Ie = qx(H.endRe, we);
23084
+ let Ie = Gx(H.endRe, we);
22999
23085
  if (Ie) {
23000
23086
  if (H["on:end"]) {
23001
- const gt = new yf(H);
23087
+ const gt = new vf(H);
23002
23088
  H["on:end"](J, gt), gt.isMatchIgnored && (Ie = !1);
23003
23089
  }
23004
23090
  if (Ie) {
@@ -23014,7 +23100,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23014
23100
  return le.matcher.regexIndex === 0 ? (Re += H[0], 1) : (Kt = !0, 0);
23015
23101
  }
23016
23102
  function mn(H) {
23017
- const J = H[0], we = H.rule, Ie = new yf(we), gt = [we.__beforeBegin, we["on:begin"]];
23103
+ const J = H[0], we = H.rule, Ie = new vf(we), gt = [we.__beforeBegin, we["on:begin"]];
23018
23104
  for (const an of gt)
23019
23105
  if (an && (an(H, Ie), Ie.isMatchIgnored))
23020
23106
  return At(J);
@@ -23023,7 +23109,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23023
23109
  function $n(H) {
23024
23110
  const J = H[0], we = D.substring(H.index), Ie = hn(le, H, we);
23025
23111
  if (!Ie)
23026
- return Sf;
23112
+ return Cf;
23027
23113
  const gt = le;
23028
23114
  le.endScope && le.endScope._wrap ? (ze(), et(J, le.endScope._wrap)) : le.endScope && le.endScope._multi ? (ze(), on(le.endScope, H)) : gt.skip ? Re += J : (gt.returnEnd || gt.excludeEnd || (Re += J), ze(), gt.excludeEnd && (Re = J));
23029
23115
  do
@@ -23056,7 +23142,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23056
23142
  throw Ie.mode = le, Ie;
23057
23143
  } else if (J.type === "end") {
23058
23144
  const Ie = $n(J);
23059
- if (Ie !== Sf)
23145
+ if (Ie !== Cf)
23060
23146
  return Ie;
23061
23147
  }
23062
23148
  if (J.type === "illegal" && we === "")
@@ -23068,7 +23154,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23068
23154
  const ve = L(N);
23069
23155
  if (!ve)
23070
23156
  throw oo(i.replace("{}", N)), new Error('Unknown language: "' + N + '"');
23071
- const Xt = xT(ve);
23157
+ const Xt = TT(ve);
23072
23158
  let Bt = "", le = oe || Xt;
23073
23159
  const Vt = {}, qe = new a.__emitter(a);
23074
23160
  On();
@@ -23167,7 +23253,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23167
23253
  return;
23168
23254
  }
23169
23255
  if (N.children.length > 0 && (a.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(N)), a.throwUnescapedHTML))
23170
- throw new NT(
23256
+ throw new AT(
23171
23257
  "One of your code blocks includes unescaped HTML.",
23172
23258
  N.innerHTML
23173
23259
  );
@@ -23184,7 +23270,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23184
23270
  }), pe("after:highlightElement", { el: N, result: ce, text: oe });
23185
23271
  }
23186
23272
  function g(N) {
23187
- a = _f(a, N);
23273
+ a = Sf(a, N);
23188
23274
  }
23189
23275
  const b = () => {
23190
23276
  v(), vo("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
@@ -23280,29 +23366,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = N, oe = D), Y ==
23280
23366
  getLanguage: L,
23281
23367
  registerAliases: W,
23282
23368
  autoDetection: te,
23283
- inherit: _f,
23369
+ inherit: Sf,
23284
23370
  addPlugin: ke,
23285
23371
  removePlugin: Ee
23286
23372
  }), t.debugMode = function() {
23287
23373
  o = !1;
23288
23374
  }, t.safeMode = function() {
23289
23375
  o = !0;
23290
- }, t.versionString = OT, t.regex = {
23376
+ }, t.versionString = NT, t.regex = {
23291
23377
  concat: mo,
23292
23378
  lookahead: zm,
23293
23379
  either: fu,
23294
- optional: Wx,
23295
- anyNumberOfTimes: Vx
23380
+ optional: Kx,
23381
+ anyNumberOfTimes: Wx
23296
23382
  };
23297
23383
  for (const N in as)
23298
23384
  typeof as[N] == "object" && $m(as[N]);
23299
23385
  return Object.assign(t, as), t;
23300
23386
  }, zo = Ym({});
23301
23387
  zo.newInstance = () => Ym({});
23302
- var MT = zo;
23388
+ var RT = zo;
23303
23389
  zo.HighlightJS = zo;
23304
23390
  zo.default = zo;
23305
- var RT = /* @__PURE__ */ $x(MT);
23391
+ var IT = /* @__PURE__ */ Fx(RT);
23306
23392
  function Jm(t, e = []) {
23307
23393
  return t.map((n) => {
23308
23394
  const r = [...e, ...n.properties ? n.properties.className : []];
@@ -23312,18 +23398,18 @@ function Jm(t, e = []) {
23312
23398
  };
23313
23399
  }).flat();
23314
23400
  }
23315
- function Cf(t) {
23401
+ function xf(t) {
23316
23402
  return t.value || t.children || [];
23317
23403
  }
23318
- function IT(t) {
23319
- return !!RT.getLanguage(t);
23404
+ function DT(t) {
23405
+ return !!IT.getLanguage(t);
23320
23406
  }
23321
- function xf({ doc: t, name: e, lowlight: n, defaultLanguage: r }) {
23407
+ function Tf({ doc: t, name: e, lowlight: n, defaultLanguage: r }) {
23322
23408
  const o = [];
23323
23409
  return ec(t, (i) => i.type.name === e).forEach((i) => {
23324
23410
  var s;
23325
23411
  let a = i.pos + 1;
23326
- const l = i.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || IT(l) || !((s = n.registered) === null || s === void 0) && s.call(n, l)) ? Cf(n.highlight(l, i.node.textContent)) : Cf(n.highlightAuto(i.node.textContent));
23412
+ const l = i.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || DT(l) || !((s = n.registered) === null || s === void 0) && s.call(n, l)) ? xf(n.highlight(l, i.node.textContent)) : xf(n.highlightAuto(i.node.textContent));
23327
23413
  Jm(u).forEach((d) => {
23328
23414
  const f = a + d.text.length;
23329
23415
  if (d.classes.length) {
@@ -23336,16 +23422,16 @@ function xf({ doc: t, name: e, lowlight: n, defaultLanguage: r }) {
23336
23422
  });
23337
23423
  }), He.create(t, o);
23338
23424
  }
23339
- function DT(t) {
23425
+ function LT(t) {
23340
23426
  return typeof t == "function";
23341
23427
  }
23342
- function LT({ name: t, lowlight: e, defaultLanguage: n }) {
23343
- if (!["highlight", "highlightAuto", "listLanguages"].every((o) => DT(e[o])))
23428
+ function PT({ name: t, lowlight: e, defaultLanguage: n }) {
23429
+ if (!["highlight", "highlightAuto", "listLanguages"].every((o) => LT(e[o])))
23344
23430
  throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");
23345
23431
  const r = new Ue({
23346
- key: new Ze("lowlight"),
23432
+ key: new Xe("lowlight"),
23347
23433
  state: {
23348
- init: (o, { doc: i }) => xf({
23434
+ init: (o, { doc: i }) => Tf({
23349
23435
  doc: i,
23350
23436
  name: t,
23351
23437
  lowlight: e,
@@ -23359,7 +23445,7 @@ function LT({ name: t, lowlight: e, defaultLanguage: n }) {
23359
23445
  // @ts-ignore
23360
23446
  p.pos >= f.from && p.pos + p.node.nodeSize <= f.to
23361
23447
  ))
23362
- ))) ? xf({
23448
+ ))) ? Tf({
23363
23449
  doc: o.doc,
23364
23450
  name: t,
23365
23451
  lowlight: e,
@@ -23375,7 +23461,7 @@ function LT({ name: t, lowlight: e, defaultLanguage: n }) {
23375
23461
  });
23376
23462
  return r;
23377
23463
  }
23378
- const PT = vm.extend({
23464
+ const BT = vm.extend({
23379
23465
  addOptions() {
23380
23466
  var t;
23381
23467
  return {
@@ -23392,7 +23478,7 @@ const PT = vm.extend({
23392
23478
  var t;
23393
23479
  return [
23394
23480
  ...((t = this.parent) === null || t === void 0 ? void 0 : t.call(this)) || [],
23395
- LT({
23481
+ PT({
23396
23482
  name: this.name,
23397
23483
  lowlight: this.options.lowlight,
23398
23484
  defaultLanguage: this.options.defaultLanguage
@@ -23400,7 +23486,7 @@ const PT = vm.extend({
23400
23486
  ];
23401
23487
  }
23402
23488
  });
23403
- function BT(t) {
23489
+ function $T(t) {
23404
23490
  const e = t.regex, n = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", s = "(?!struct)(" + r + "|" + e.optional(o) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", a = {
23405
23491
  className: "type",
23406
23492
  begin: "\\b[a-z\\d_]*_t\\b"
@@ -23918,7 +24004,7 @@ function BT(t) {
23918
24004
  )
23919
24005
  };
23920
24006
  }
23921
- function $T(t) {
24007
+ function FT(t) {
23922
24008
  const e = {
23923
24009
  type: [
23924
24010
  "boolean",
@@ -24284,7 +24370,7 @@ function $T(t) {
24284
24370
  "HIGH",
24285
24371
  "LOW"
24286
24372
  ]
24287
- }, n = BT(t), r = (
24373
+ }, n = $T(t), r = (
24288
24374
  /** @type {Record<string,any>} */
24289
24375
  n.keywords
24290
24376
  );
@@ -24299,7 +24385,7 @@ function $T(t) {
24299
24385
  ...e.built_in
24300
24386
  ], r._hints = e._hints, n.name = "Arduino", n.aliases = ["ino"], n.supersetOf = "cpp", n;
24301
24387
  }
24302
- function FT(t) {
24388
+ function zT(t) {
24303
24389
  const e = t.regex, n = {}, r = {
24304
24390
  begin: /\$\{/,
24305
24391
  end: /\}/,
@@ -24673,7 +24759,7 @@ function FT(t) {
24673
24759
  ]
24674
24760
  };
24675
24761
  }
24676
- function zT(t) {
24762
+ function HT(t) {
24677
24763
  const e = t.regex, n = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", s = "(" + r + "|" + e.optional(o) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", a = {
24678
24764
  className: "type",
24679
24765
  variants: [
@@ -24947,7 +25033,7 @@ function zT(t) {
24947
25033
  }
24948
25034
  };
24949
25035
  }
24950
- function HT(t) {
25036
+ function UT(t) {
24951
25037
  const e = t.regex, n = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", s = "(?!struct)(" + r + "|" + e.optional(o) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", a = {
24952
25038
  className: "type",
24953
25039
  begin: "\\b[a-z\\d_]*_t\\b"
@@ -25465,7 +25551,7 @@ function HT(t) {
25465
25551
  )
25466
25552
  };
25467
25553
  }
25468
- function UT(t) {
25554
+ function VT(t) {
25469
25555
  const e = [
25470
25556
  "bool",
25471
25557
  "byte",
@@ -25844,7 +25930,7 @@ function UT(t) {
25844
25930
  ]
25845
25931
  };
25846
25932
  }
25847
- const VT = (t) => ({
25933
+ const WT = (t) => ({
25848
25934
  IMPORTANT: {
25849
25935
  scope: "meta",
25850
25936
  begin: "!important"
@@ -25877,7 +25963,7 @@ const VT = (t) => ({
25877
25963
  className: "attr",
25878
25964
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
25879
25965
  }
25880
- }), WT = [
25966
+ }), KT = [
25881
25967
  "a",
25882
25968
  "abbr",
25883
25969
  "address",
@@ -25955,7 +26041,7 @@ const VT = (t) => ({
25955
26041
  "ul",
25956
26042
  "var",
25957
26043
  "video"
25958
- ], KT = [
26044
+ ], qT = [
25959
26045
  "defs",
25960
26046
  "g",
25961
26047
  "marker",
@@ -25997,10 +26083,10 @@ const VT = (t) => ({
25997
26083
  "tspan",
25998
26084
  "foreignObject",
25999
26085
  "clipPath"
26000
- ], qT = [
26001
- ...WT,
26002
- ...KT
26003
26086
  ], GT = [
26087
+ ...KT,
26088
+ ...qT
26089
+ ], jT = [
26004
26090
  "any-hover",
26005
26091
  "any-pointer",
26006
26092
  "aspect-ratio",
@@ -26035,7 +26121,7 @@ const VT = (t) => ({
26035
26121
  "max-width",
26036
26122
  "min-height",
26037
26123
  "max-height"
26038
- ].sort().reverse(), jT = [
26124
+ ].sort().reverse(), YT = [
26039
26125
  "active",
26040
26126
  "any-link",
26041
26127
  "blank",
@@ -26109,7 +26195,7 @@ const VT = (t) => ({
26109
26195
  "visited",
26110
26196
  "where"
26111
26197
  // where()
26112
- ].sort().reverse(), YT = [
26198
+ ].sort().reverse(), JT = [
26113
26199
  "after",
26114
26200
  "backdrop",
26115
26201
  "before",
@@ -26124,7 +26210,7 @@ const VT = (t) => ({
26124
26210
  "selection",
26125
26211
  "slotted",
26126
26212
  "spelling-error"
26127
- ].sort().reverse(), JT = [
26213
+ ].sort().reverse(), XT = [
26128
26214
  "accent-color",
26129
26215
  "align-content",
26130
26216
  "align-items",
@@ -26641,8 +26727,8 @@ const VT = (t) => ({
26641
26727
  "z-index",
26642
26728
  "zoom"
26643
26729
  ].sort().reverse();
26644
- function XT(t) {
26645
- const e = t.regex, n = VT(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, o = "and or not only", i = /@-?\w[\w]*(-\w+)*/, s = "[a-zA-Z-][a-zA-Z0-9_-]*", a = [
26730
+ function ZT(t) {
26731
+ const e = t.regex, n = WT(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, o = "and or not only", i = /@-?\w[\w]*(-\w+)*/, s = "[a-zA-Z-][a-zA-Z0-9_-]*", a = [
26646
26732
  t.APOS_STRING_MODE,
26647
26733
  t.QUOTE_STRING_MODE
26648
26734
  ];
@@ -26676,8 +26762,8 @@ function XT(t) {
26676
26762
  {
26677
26763
  className: "selector-pseudo",
26678
26764
  variants: [
26679
- { begin: ":(" + jT.join("|") + ")" },
26680
- { begin: ":(:)?(" + YT.join("|") + ")" }
26765
+ { begin: ":(" + YT.join("|") + ")" },
26766
+ { begin: ":(:)?(" + JT.join("|") + ")" }
26681
26767
  ]
26682
26768
  },
26683
26769
  // we may actually need this (12/2020)
@@ -26689,7 +26775,7 @@ function XT(t) {
26689
26775
  n.CSS_VARIABLE,
26690
26776
  {
26691
26777
  className: "attribute",
26692
- begin: "\\b(" + JT.join("|") + ")\\b"
26778
+ begin: "\\b(" + XT.join("|") + ")\\b"
26693
26779
  },
26694
26780
  // attribute values
26695
26781
  {
@@ -26744,7 +26830,7 @@ function XT(t) {
26744
26830
  keywords: {
26745
26831
  $pattern: /[a-z-]+/,
26746
26832
  keyword: o,
26747
- attribute: GT.join(" ")
26833
+ attribute: jT.join(" ")
26748
26834
  },
26749
26835
  contains: [
26750
26836
  {
@@ -26759,12 +26845,12 @@ function XT(t) {
26759
26845
  },
26760
26846
  {
26761
26847
  className: "selector-tag",
26762
- begin: "\\b(" + qT.join("|") + ")\\b"
26848
+ begin: "\\b(" + GT.join("|") + ")\\b"
26763
26849
  }
26764
26850
  ]
26765
26851
  };
26766
26852
  }
26767
- function ZT(t) {
26853
+ function QT(t) {
26768
26854
  const e = t.regex;
26769
26855
  return {
26770
26856
  name: "Diff",
@@ -26815,7 +26901,7 @@ function ZT(t) {
26815
26901
  ]
26816
26902
  };
26817
26903
  }
26818
- function QT(t) {
26904
+ function e1(t) {
26819
26905
  const i = {
26820
26906
  keyword: [
26821
26907
  "break",
@@ -26963,7 +27049,7 @@ function QT(t) {
26963
27049
  ]
26964
27050
  };
26965
27051
  }
26966
- function e1(t) {
27052
+ function t1(t) {
26967
27053
  const e = t.regex, n = /[_A-Za-z][_0-9A-Za-z]*/;
26968
27054
  return {
26969
27055
  name: "GraphQL",
@@ -27030,7 +27116,7 @@ function e1(t) {
27030
27116
  ]
27031
27117
  };
27032
27118
  }
27033
- function t1(t) {
27119
+ function n1(t) {
27034
27120
  const e = t.regex, n = {
27035
27121
  className: "number",
27036
27122
  relevance: 0,
@@ -27134,7 +27220,7 @@ function t1(t) {
27134
27220
  ]
27135
27221
  };
27136
27222
  }
27137
- var _o = "[0-9](_*[0-9])*", ls = `\\.(${_o})`, cs = "[0-9a-fA-F](_*[0-9a-fA-F])*", Tf = {
27223
+ var _o = "[0-9](_*[0-9])*", ls = `\\.(${_o})`, cs = "[0-9a-fA-F](_*[0-9a-fA-F])*", Of = {
27138
27224
  className: "number",
27139
27225
  variants: [
27140
27226
  // DecimalFloatingPointLiteral
@@ -27160,7 +27246,7 @@ var _o = "[0-9](_*[0-9])*", ls = `\\.(${_o})`, cs = "[0-9a-fA-F](_*[0-9a-fA-F])*
27160
27246
  function Xm(t, e, n) {
27161
27247
  return n === -1 ? "" : t.replace(e, (r) => Xm(t, e, n - 1));
27162
27248
  }
27163
- function n1(t) {
27249
+ function r1(t) {
27164
27250
  const e = t.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + Xm("(?:<" + n + "~~~(?:\\s*,\\s*" + n + "~~~)*>)?", /~~~/g, 2), l = {
27165
27251
  keyword: [
27166
27252
  "synchronized",
@@ -27358,7 +27444,7 @@ function n1(t) {
27358
27444
  c,
27359
27445
  t.APOS_STRING_MODE,
27360
27446
  t.QUOTE_STRING_MODE,
27361
- Tf,
27447
+ Of,
27362
27448
  t.C_BLOCK_COMMENT_MODE
27363
27449
  ]
27364
27450
  },
@@ -27366,12 +27452,12 @@ function n1(t) {
27366
27452
  t.C_BLOCK_COMMENT_MODE
27367
27453
  ]
27368
27454
  },
27369
- Tf,
27455
+ Of,
27370
27456
  c
27371
27457
  ]
27372
27458
  };
27373
27459
  }
27374
- const Of = "[A-Za-z$_][0-9A-Za-z$_]*", r1 = [
27460
+ const Nf = "[A-Za-z$_][0-9A-Za-z$_]*", o1 = [
27375
27461
  "as",
27376
27462
  // for exports
27377
27463
  "in",
@@ -27416,7 +27502,7 @@ const Of = "[A-Za-z$_][0-9A-Za-z$_]*", r1 = [
27416
27502
  "extends",
27417
27503
  // It's reached stage 3, which is "recommended for implementation":
27418
27504
  "using"
27419
- ], o1 = [
27505
+ ], i1 = [
27420
27506
  "true",
27421
27507
  "false",
27422
27508
  "null",
@@ -27500,7 +27586,7 @@ const Of = "[A-Za-z$_][0-9A-Za-z$_]*", r1 = [
27500
27586
  "encodeURIComponent",
27501
27587
  "escape",
27502
27588
  "unescape"
27503
- ], i1 = [
27589
+ ], s1 = [
27504
27590
  "arguments",
27505
27591
  "this",
27506
27592
  "super",
@@ -27512,16 +27598,16 @@ const Of = "[A-Za-z$_][0-9A-Za-z$_]*", r1 = [
27512
27598
  "module",
27513
27599
  "global"
27514
27600
  // Node.js
27515
- ], s1 = [].concat(
27601
+ ], a1 = [].concat(
27516
27602
  eg,
27517
27603
  Zm,
27518
27604
  Qm
27519
27605
  );
27520
- function a1(t) {
27606
+ function l1(t) {
27521
27607
  const e = t.regex, n = (D, { after: Y }) => {
27522
27608
  const oe = "</" + D[0].slice(1);
27523
27609
  return D.input.indexOf(oe, Y) !== -1;
27524
- }, r = Of, o = {
27610
+ }, r = Nf, o = {
27525
27611
  begin: "<>",
27526
27612
  end: "</>"
27527
27613
  }, i = /<[A-Za-z0-9\\._:-]+\s*\/>/, s = {
@@ -27557,11 +27643,11 @@ function a1(t) {
27557
27643
  }
27558
27644
  }
27559
27645
  }, a = {
27560
- $pattern: Of,
27561
- keyword: r1,
27562
- literal: o1,
27563
- built_in: s1,
27564
- "variable.language": i1
27646
+ $pattern: Nf,
27647
+ keyword: o1,
27648
+ literal: i1,
27649
+ built_in: a1,
27650
+ "variable.language": s1
27565
27651
  }, l = "[0-9](_?[0-9])*", c = `\\.(${l})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
27566
27652
  className: "number",
27567
27653
  variants: [
@@ -28026,7 +28112,7 @@ function a1(t) {
28026
28112
  ]
28027
28113
  };
28028
28114
  }
28029
- function l1(t) {
28115
+ function c1(t) {
28030
28116
  const e = {
28031
28117
  className: "attr",
28032
28118
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
@@ -28061,7 +28147,7 @@ function l1(t) {
28061
28147
  illegal: "\\S"
28062
28148
  };
28063
28149
  }
28064
- var So = "[0-9](_*[0-9])*", us = `\\.(${So})`, ds = "[0-9a-fA-F](_*[0-9a-fA-F])*", c1 = {
28150
+ var So = "[0-9](_*[0-9])*", us = `\\.(${So})`, ds = "[0-9a-fA-F](_*[0-9a-fA-F])*", u1 = {
28065
28151
  className: "number",
28066
28152
  variants: [
28067
28153
  // DecimalFloatingPointLiteral
@@ -28084,7 +28170,7 @@ var So = "[0-9](_*[0-9])*", us = `\\.(${So})`, ds = "[0-9a-fA-F](_*[0-9a-fA-F])*
28084
28170
  ],
28085
28171
  relevance: 0
28086
28172
  };
28087
- function u1(t) {
28173
+ function d1(t) {
28088
28174
  const e = {
28089
28175
  keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
28090
28176
  built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
@@ -28158,7 +28244,7 @@ function u1(t) {
28158
28244
  ]
28159
28245
  }
28160
28246
  ]
28161
- }, c = c1, u = t.COMMENT(
28247
+ }, c = u1, u = t.COMMENT(
28162
28248
  "/\\*",
28163
28249
  "\\*/",
28164
28250
  { contains: [t.C_BLOCK_COMMENT_MODE] }
@@ -28300,7 +28386,7 @@ function u1(t) {
28300
28386
  ]
28301
28387
  };
28302
28388
  }
28303
- const d1 = (t) => ({
28389
+ const f1 = (t) => ({
28304
28390
  IMPORTANT: {
28305
28391
  scope: "meta",
28306
28392
  begin: "!important"
@@ -28333,7 +28419,7 @@ const d1 = (t) => ({
28333
28419
  className: "attr",
28334
28420
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
28335
28421
  }
28336
- }), f1 = [
28422
+ }), p1 = [
28337
28423
  "a",
28338
28424
  "abbr",
28339
28425
  "address",
@@ -28411,7 +28497,7 @@ const d1 = (t) => ({
28411
28497
  "ul",
28412
28498
  "var",
28413
28499
  "video"
28414
- ], p1 = [
28500
+ ], h1 = [
28415
28501
  "defs",
28416
28502
  "g",
28417
28503
  "marker",
@@ -28453,10 +28539,10 @@ const d1 = (t) => ({
28453
28539
  "tspan",
28454
28540
  "foreignObject",
28455
28541
  "clipPath"
28456
- ], h1 = [
28457
- ...f1,
28458
- ...p1
28459
28542
  ], m1 = [
28543
+ ...p1,
28544
+ ...h1
28545
+ ], g1 = [
28460
28546
  "any-hover",
28461
28547
  "any-pointer",
28462
28548
  "aspect-ratio",
@@ -28580,7 +28666,7 @@ const d1 = (t) => ({
28580
28666
  "selection",
28581
28667
  "slotted",
28582
28668
  "spelling-error"
28583
- ].sort().reverse(), g1 = [
28669
+ ].sort().reverse(), b1 = [
28584
28670
  "accent-color",
28585
28671
  "align-content",
28586
28672
  "align-items",
@@ -29096,9 +29182,9 @@ const d1 = (t) => ({
29096
29182
  "y",
29097
29183
  "z-index",
29098
29184
  "zoom"
29099
- ].sort().reverse(), b1 = tg.concat(ng).sort().reverse();
29100
- function y1(t) {
29101
- const e = d1(t), n = b1, r = "and or not only", o = "[\\w-]+", i = "(" + o + "|@\\{" + o + "\\})", s = [], a = [], l = function(_) {
29185
+ ].sort().reverse(), y1 = tg.concat(ng).sort().reverse();
29186
+ function v1(t) {
29187
+ const e = f1(t), n = y1, r = "and or not only", o = "[\\w-]+", i = "(" + o + "|@\\{" + o + "\\})", s = [], a = [], l = function(_) {
29102
29188
  return {
29103
29189
  // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
29104
29190
  className: "string",
@@ -29113,7 +29199,7 @@ function y1(t) {
29113
29199
  }, u = {
29114
29200
  $pattern: /[a-z-]+/,
29115
29201
  keyword: r,
29116
- attribute: m1.join(" ")
29202
+ attribute: g1.join(" ")
29117
29203
  }, d = {
29118
29204
  // used only to properly balance nested parens inside mixin call, def. arg list
29119
29205
  begin: "\\(",
@@ -29174,7 +29260,7 @@ function y1(t) {
29174
29260
  e.CSS_VARIABLE,
29175
29261
  {
29176
29262
  className: "attribute",
29177
- begin: "\\b(" + g1.join("|") + ")\\b",
29263
+ begin: "\\b(" + b1.join("|") + ")\\b",
29178
29264
  end: /(?=:)/,
29179
29265
  starts: {
29180
29266
  endsWithParent: !0,
@@ -29239,7 +29325,7 @@ function y1(t) {
29239
29325
  c("variable", "@\\{" + o + "\\}"),
29240
29326
  // otherwise it’s identified as tag
29241
29327
  {
29242
- begin: "\\b(" + h1.join("|") + ")\\b",
29328
+ begin: "\\b(" + m1.join("|") + ")\\b",
29243
29329
  className: "selector-tag"
29244
29330
  },
29245
29331
  e.CSS_NUMBER_MODE,
@@ -29289,7 +29375,7 @@ function y1(t) {
29289
29375
  contains: s
29290
29376
  };
29291
29377
  }
29292
- function v1(t) {
29378
+ function E1(t) {
29293
29379
  const e = "\\[=*\\[", n = "\\]=*\\]", r = {
29294
29380
  begin: e,
29295
29381
  end: n,
@@ -29345,7 +29431,7 @@ function v1(t) {
29345
29431
  ])
29346
29432
  };
29347
29433
  }
29348
- function E1(t) {
29434
+ function k1(t) {
29349
29435
  const e = {
29350
29436
  className: "variable",
29351
29437
  variants: [
@@ -29409,7 +29495,7 @@ function E1(t) {
29409
29495
  ]
29410
29496
  };
29411
29497
  }
29412
- function k1(t) {
29498
+ function w1(t) {
29413
29499
  const e = t.regex, n = {
29414
29500
  begin: /<\/?[A-Za-z_]/,
29415
29501
  end: ">",
@@ -29622,7 +29708,7 @@ function k1(t) {
29622
29708
  ]
29623
29709
  };
29624
29710
  }
29625
- function w1(t) {
29711
+ function _1(t) {
29626
29712
  const e = {
29627
29713
  className: "built_in",
29628
29714
  begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
@@ -29856,7 +29942,7 @@ function w1(t) {
29856
29942
  ]
29857
29943
  };
29858
29944
  }
29859
- function _1(t) {
29945
+ function S1(t) {
29860
29946
  const e = t.regex, n = [
29861
29947
  "abs",
29862
29948
  "accept",
@@ -30322,7 +30408,7 @@ function _1(t) {
30322
30408
  contains: h
30323
30409
  };
30324
30410
  }
30325
- function S1(t) {
30411
+ function C1(t) {
30326
30412
  const e = t.regex, n = /(?![A-Za-z0-9])(?![$])/, r = e.concat(
30327
30413
  /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
30328
30414
  n
@@ -30885,7 +30971,7 @@ function S1(t) {
30885
30971
  ]
30886
30972
  };
30887
30973
  }
30888
- function C1(t) {
30974
+ function x1(t) {
30889
30975
  return {
30890
30976
  name: "PHP template",
30891
30977
  subLanguage: "xml",
@@ -30929,7 +31015,7 @@ function C1(t) {
30929
31015
  ]
30930
31016
  };
30931
31017
  }
30932
- function x1(t) {
31018
+ function T1(t) {
30933
31019
  return {
30934
31020
  name: "Plain text",
30935
31021
  aliases: [
@@ -30939,7 +31025,7 @@ function x1(t) {
30939
31025
  disableAutodetect: !0
30940
31026
  };
30941
31027
  }
30942
- function T1(t) {
31028
+ function O1(t) {
30943
31029
  const e = t.regex, n = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), r = [
30944
31030
  "and",
30945
31031
  "as",
@@ -31335,7 +31421,7 @@ function T1(t) {
31335
31421
  ]
31336
31422
  };
31337
31423
  }
31338
- function O1(t) {
31424
+ function N1(t) {
31339
31425
  return {
31340
31426
  aliases: ["pycon"],
31341
31427
  contains: [
@@ -31358,7 +31444,7 @@ function O1(t) {
31358
31444
  ]
31359
31445
  };
31360
31446
  }
31361
- function N1(t) {
31447
+ function A1(t) {
31362
31448
  const e = t.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = e.either(
31363
31449
  // Special case: only hexadecimal binary powers can contain fractions
31364
31450
  /0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,
@@ -31562,7 +31648,7 @@ function N1(t) {
31562
31648
  ]
31563
31649
  };
31564
31650
  }
31565
- function A1(t) {
31651
+ function M1(t) {
31566
31652
  const e = t.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = e.either(
31567
31653
  /\b([A-Z]+[a-z0-9]+)+/,
31568
31654
  // ends in caps
@@ -31947,7 +32033,7 @@ function A1(t) {
31947
32033
  contains: [t.SHEBANG({ binary: "ruby" })].concat(W).concat(c).concat(S)
31948
32034
  };
31949
32035
  }
31950
- function M1(t) {
32036
+ function R1(t) {
31951
32037
  const e = t.regex, n = /(r#)?/, r = e.concat(n, t.UNDERSCORE_IDENT_RE), o = e.concat(n, t.IDENT_RE), i = {
31952
32038
  className: "title.function.invoke",
31953
32039
  relevance: 0,
@@ -32249,7 +32335,7 @@ function M1(t) {
32249
32335
  ]
32250
32336
  };
32251
32337
  }
32252
- const R1 = (t) => ({
32338
+ const I1 = (t) => ({
32253
32339
  IMPORTANT: {
32254
32340
  scope: "meta",
32255
32341
  begin: "!important"
@@ -32282,7 +32368,7 @@ const R1 = (t) => ({
32282
32368
  className: "attr",
32283
32369
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
32284
32370
  }
32285
- }), I1 = [
32371
+ }), D1 = [
32286
32372
  "a",
32287
32373
  "abbr",
32288
32374
  "address",
@@ -32360,7 +32446,7 @@ const R1 = (t) => ({
32360
32446
  "ul",
32361
32447
  "var",
32362
32448
  "video"
32363
- ], D1 = [
32449
+ ], L1 = [
32364
32450
  "defs",
32365
32451
  "g",
32366
32452
  "marker",
@@ -32402,10 +32488,10 @@ const R1 = (t) => ({
32402
32488
  "tspan",
32403
32489
  "foreignObject",
32404
32490
  "clipPath"
32405
- ], L1 = [
32406
- ...I1,
32407
- ...D1
32408
32491
  ], P1 = [
32492
+ ...D1,
32493
+ ...L1
32494
+ ], B1 = [
32409
32495
  "any-hover",
32410
32496
  "any-pointer",
32411
32497
  "aspect-ratio",
@@ -32440,7 +32526,7 @@ const R1 = (t) => ({
32440
32526
  "max-width",
32441
32527
  "min-height",
32442
32528
  "max-height"
32443
- ].sort().reverse(), B1 = [
32529
+ ].sort().reverse(), $1 = [
32444
32530
  "active",
32445
32531
  "any-link",
32446
32532
  "blank",
@@ -32514,7 +32600,7 @@ const R1 = (t) => ({
32514
32600
  "visited",
32515
32601
  "where"
32516
32602
  // where()
32517
- ].sort().reverse(), $1 = [
32603
+ ].sort().reverse(), F1 = [
32518
32604
  "after",
32519
32605
  "backdrop",
32520
32606
  "before",
@@ -32529,7 +32615,7 @@ const R1 = (t) => ({
32529
32615
  "selection",
32530
32616
  "slotted",
32531
32617
  "spelling-error"
32532
- ].sort().reverse(), F1 = [
32618
+ ].sort().reverse(), z1 = [
32533
32619
  "accent-color",
32534
32620
  "align-content",
32535
32621
  "align-items",
@@ -33046,8 +33132,8 @@ const R1 = (t) => ({
33046
33132
  "z-index",
33047
33133
  "zoom"
33048
33134
  ].sort().reverse();
33049
- function z1(t) {
33050
- const e = R1(t), n = $1, r = B1, o = "@[a-z-]+", i = "and or not only", a = {
33135
+ function H1(t) {
33136
+ const e = I1(t), n = F1, r = $1, o = "@[a-z-]+", i = "and or not only", a = {
33051
33137
  className: "variable",
33052
33138
  begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
33053
33139
  relevance: 0
@@ -33075,7 +33161,7 @@ function z1(t) {
33075
33161
  e.ATTRIBUTE_SELECTOR_MODE,
33076
33162
  {
33077
33163
  className: "selector-tag",
33078
- begin: "\\b(" + L1.join("|") + ")\\b",
33164
+ begin: "\\b(" + P1.join("|") + ")\\b",
33079
33165
  // was there, before, but why?
33080
33166
  relevance: 0
33081
33167
  },
@@ -33097,7 +33183,7 @@ function z1(t) {
33097
33183
  e.CSS_VARIABLE,
33098
33184
  {
33099
33185
  className: "attribute",
33100
- begin: "\\b(" + F1.join("|") + ")\\b"
33186
+ begin: "\\b(" + z1.join("|") + ")\\b"
33101
33187
  },
33102
33188
  { begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
33103
33189
  {
@@ -33132,7 +33218,7 @@ function z1(t) {
33132
33218
  keywords: {
33133
33219
  $pattern: /[a-z-]+/,
33134
33220
  keyword: i,
33135
- attribute: P1.join(" ")
33221
+ attribute: B1.join(" ")
33136
33222
  },
33137
33223
  contains: [
33138
33224
  {
@@ -33154,7 +33240,7 @@ function z1(t) {
33154
33240
  ]
33155
33241
  };
33156
33242
  }
33157
- function H1(t) {
33243
+ function U1(t) {
33158
33244
  return {
33159
33245
  name: "Shell Session",
33160
33246
  aliases: [
@@ -33176,7 +33262,7 @@ function H1(t) {
33176
33262
  ]
33177
33263
  };
33178
33264
  }
33179
- function U1(t) {
33265
+ function V1(t) {
33180
33266
  const e = t.regex, n = t.COMMENT("--", "$"), r = {
33181
33267
  scope: "string",
33182
33268
  variants: [
@@ -33797,26 +33883,26 @@ function Xo(t) {
33797
33883
  function je(...t) {
33798
33884
  return t.map((n) => rg(n)).join("");
33799
33885
  }
33800
- function V1(t) {
33886
+ function W1(t) {
33801
33887
  const e = t[t.length - 1];
33802
33888
  return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
33803
33889
  }
33804
33890
  function Gt(...t) {
33805
- return "(" + (V1(t).capture ? "" : "?:") + t.map((r) => rg(r)).join("|") + ")";
33891
+ return "(" + (W1(t).capture ? "" : "?:") + t.map((r) => rg(r)).join("|") + ")";
33806
33892
  }
33807
33893
  const mu = (t) => je(
33808
33894
  /\b/,
33809
33895
  t,
33810
33896
  /\w$/.test(t) ? /\b/ : /\B/
33811
- ), W1 = [
33897
+ ), K1 = [
33812
33898
  "Protocol",
33813
33899
  // contextual
33814
33900
  "Type"
33815
33901
  // contextual
33816
- ].map(mu), Nf = [
33902
+ ].map(mu), Af = [
33817
33903
  "init",
33818
33904
  "self"
33819
- ].map(mu), K1 = [
33905
+ ].map(mu), q1 = [
33820
33906
  "Any",
33821
33907
  "Self"
33822
33908
  ], Cl = [
@@ -33955,11 +34041,11 @@ const mu = (t) => je(
33955
34041
  "while",
33956
34042
  "willSet"
33957
34043
  // contextual
33958
- ], Af = [
34044
+ ], Mf = [
33959
34045
  "false",
33960
34046
  "nil",
33961
34047
  "true"
33962
- ], q1 = [
34048
+ ], G1 = [
33963
34049
  "assignment",
33964
34050
  "associativity",
33965
34051
  "higherThan",
@@ -33967,7 +34053,7 @@ const mu = (t) => je(
33967
34053
  "lowerThan",
33968
34054
  "none",
33969
34055
  "right"
33970
- ], G1 = [
34056
+ ], j1 = [
33971
34057
  "#colorLiteral",
33972
34058
  "#column",
33973
34059
  "#dsohandle",
@@ -33987,7 +34073,7 @@ const mu = (t) => je(
33987
34073
  "#selector",
33988
34074
  "#sourceLocation",
33989
34075
  "#warning"
33990
- ], Mf = [
34076
+ ], Rf = [
33991
34077
  "abs",
33992
34078
  "all",
33993
34079
  "any",
@@ -34072,7 +34158,7 @@ const mu = (t) => je(
34072
34158
  sg,
34073
34159
  /\d/,
34074
34160
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
34075
- ), Hn = je(sg, Zs, "*"), fs = je(/[A-Z]/, Zs, "*"), j1 = [
34161
+ ), Hn = je(sg, Zs, "*"), fs = je(/[A-Z]/, Zs, "*"), Y1 = [
34076
34162
  "attached",
34077
34163
  "autoclosure",
34078
34164
  je(/convention\(/, Gt("swift", "block", "c"), /\)/),
@@ -34107,7 +34193,7 @@ const mu = (t) => je(
34107
34193
  "unknown",
34108
34194
  "usableFromInline",
34109
34195
  "warn_unqualified_access"
34110
- ], Y1 = [
34196
+ ], J1 = [
34111
34197
  "iOS",
34112
34198
  "iOSApplicationExtension",
34113
34199
  "macOS",
@@ -34120,7 +34206,7 @@ const mu = (t) => je(
34120
34206
  "tvOSApplicationExtension",
34121
34207
  "swift"
34122
34208
  ];
34123
- function J1(t) {
34209
+ function X1(t) {
34124
34210
  const e = {
34125
34211
  match: /\s+/,
34126
34212
  relevance: 0
@@ -34134,17 +34220,17 @@ function J1(t) {
34134
34220
  ], o = {
34135
34221
  match: [
34136
34222
  /\./,
34137
- Gt(...W1, ...Nf)
34223
+ Gt(...K1, ...Af)
34138
34224
  ],
34139
34225
  className: { 2: "keyword" }
34140
34226
  }, i = {
34141
34227
  // Consume .keyword to prevent highlighting properties and methods as keywords.
34142
34228
  match: je(/\./, Gt(...Cl)),
34143
34229
  relevance: 0
34144
- }, s = Cl.filter((ve) => typeof ve == "string").concat(["_|0"]), a = Cl.filter((ve) => typeof ve != "string").concat(K1).map(mu), l = { variants: [
34230
+ }, s = Cl.filter((ve) => typeof ve == "string").concat(["_|0"]), a = Cl.filter((ve) => typeof ve != "string").concat(q1).map(mu), l = { variants: [
34145
34231
  {
34146
34232
  className: "keyword",
34147
- match: Gt(...a, ...Nf)
34233
+ match: Gt(...a, ...Af)
34148
34234
  }
34149
34235
  ] }, c = {
34150
34236
  $pattern: Gt(
@@ -34153,19 +34239,19 @@ function J1(t) {
34153
34239
  /#\w+/
34154
34240
  // number keywords
34155
34241
  ),
34156
- keyword: s.concat(G1),
34157
- literal: Af
34242
+ keyword: s.concat(j1),
34243
+ literal: Mf
34158
34244
  }, u = [
34159
34245
  o,
34160
34246
  i,
34161
34247
  l
34162
34248
  ], d = {
34163
34249
  // Consume .built_in to prevent highlighting properties and methods.
34164
- match: je(/\./, Gt(...Mf)),
34250
+ match: je(/\./, Gt(...Rf)),
34165
34251
  relevance: 0
34166
34252
  }, f = {
34167
34253
  className: "built_in",
34168
- match: je(/\b/, Gt(...Mf), /(?=\()/)
34254
+ match: je(/\b/, Gt(...Rf), /(?=\()/)
34169
34255
  }, p = [
34170
34256
  d,
34171
34257
  f
@@ -34293,7 +34379,7 @@ function J1(t) {
34293
34379
  {
34294
34380
  begin: /\(/,
34295
34381
  end: /\)/,
34296
- keywords: Y1,
34382
+ keywords: J1,
34297
34383
  contains: [
34298
34384
  ...g,
34299
34385
  _,
@@ -34303,7 +34389,7 @@ function J1(t) {
34303
34389
  ] }
34304
34390
  }, Y = {
34305
34391
  scope: "keyword",
34306
- match: je(/@/, Gt(...j1), Xo(Gt(/\(/, /\s+/)))
34392
+ match: je(/@/, Gt(...Y1), Xo(Gt(/\(/, /\s+/)))
34307
34393
  }, oe = {
34308
34394
  scope: "meta",
34309
34395
  match: je(/@/, Hn)
@@ -34473,8 +34559,8 @@ function J1(t) {
34473
34559
  },
34474
34560
  contains: [Se],
34475
34561
  keywords: [
34476
- ...q1,
34477
- ...Af
34562
+ ...G1,
34563
+ ...Mf
34478
34564
  ],
34479
34565
  end: /}/
34480
34566
  }, On = {
@@ -34730,7 +34816,7 @@ const Qs = "[A-Za-z$_][0-9A-Za-z$_]*", ag = [
34730
34816
  cg,
34731
34817
  ug
34732
34818
  );
34733
- function X1(t) {
34819
+ function Z1(t) {
34734
34820
  const e = t.regex, n = (D, { after: Y }) => {
34735
34821
  const oe = "</" + D[0].slice(1);
34736
34822
  return D.input.indexOf(oe, Y) !== -1;
@@ -35239,8 +35325,8 @@ function X1(t) {
35239
35325
  ]
35240
35326
  };
35241
35327
  }
35242
- function Z1(t) {
35243
- const e = t.regex, n = X1(t), r = Qs, o = [
35328
+ function Q1(t) {
35329
+ const e = t.regex, n = Z1(t), r = Qs, o = [
35244
35330
  "any",
35245
35331
  "void",
35246
35332
  "number",
@@ -35334,7 +35420,7 @@ function Z1(t) {
35334
35420
  ]
35335
35421
  }), n;
35336
35422
  }
35337
- function Q1(t) {
35423
+ function eO(t) {
35338
35424
  const e = t.regex, n = {
35339
35425
  className: "string",
35340
35426
  begin: /"(""|[^/n])"C\b/
@@ -35453,7 +35539,7 @@ function Q1(t) {
35453
35539
  ]
35454
35540
  };
35455
35541
  }
35456
- function eO(t) {
35542
+ function tO(t) {
35457
35543
  t.regex;
35458
35544
  const e = t.COMMENT(/\(;/, /;\)/);
35459
35545
  e.contains.push("self");
@@ -35564,7 +35650,7 @@ function eO(t) {
35564
35650
  ]
35565
35651
  };
35566
35652
  }
35567
- function tO(t) {
35653
+ function nO(t) {
35568
35654
  const e = t.regex, n = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, o = {
35569
35655
  className: "symbol",
35570
35656
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
@@ -35780,7 +35866,7 @@ function tO(t) {
35780
35866
  ]
35781
35867
  };
35782
35868
  }
35783
- function nO(t) {
35869
+ function rO(t) {
35784
35870
  const e = "true false yes no null", n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", r = {
35785
35871
  className: "attr",
35786
35872
  variants: [
@@ -35960,52 +36046,52 @@ function nO(t) {
35960
36046
  contains: g
35961
36047
  };
35962
36048
  }
35963
- const rO = {
35964
- arduino: $T,
35965
- bash: FT,
35966
- c: zT,
35967
- cpp: HT,
35968
- csharp: UT,
35969
- css: XT,
35970
- diff: ZT,
35971
- go: QT,
35972
- graphql: e1,
35973
- ini: t1,
35974
- java: n1,
35975
- javascript: a1,
35976
- json: l1,
35977
- kotlin: u1,
35978
- less: y1,
35979
- lua: v1,
35980
- makefile: E1,
35981
- markdown: k1,
35982
- objectivec: w1,
35983
- perl: _1,
35984
- php: S1,
35985
- "php-template": C1,
35986
- plaintext: x1,
35987
- python: T1,
35988
- "python-repl": O1,
35989
- r: N1,
35990
- ruby: A1,
35991
- rust: M1,
35992
- scss: z1,
35993
- shell: H1,
35994
- sql: U1,
35995
- swift: J1,
35996
- typescript: Z1,
35997
- vbnet: Q1,
35998
- wasm: eO,
35999
- xml: tO,
36000
- yaml: nO
36049
+ const oO = {
36050
+ arduino: FT,
36051
+ bash: zT,
36052
+ c: HT,
36053
+ cpp: UT,
36054
+ csharp: VT,
36055
+ css: ZT,
36056
+ diff: QT,
36057
+ go: e1,
36058
+ graphql: t1,
36059
+ ini: n1,
36060
+ java: r1,
36061
+ javascript: l1,
36062
+ json: c1,
36063
+ kotlin: d1,
36064
+ less: v1,
36065
+ lua: E1,
36066
+ makefile: k1,
36067
+ markdown: w1,
36068
+ objectivec: _1,
36069
+ perl: S1,
36070
+ php: C1,
36071
+ "php-template": x1,
36072
+ plaintext: T1,
36073
+ python: O1,
36074
+ "python-repl": N1,
36075
+ r: A1,
36076
+ ruby: M1,
36077
+ rust: R1,
36078
+ scss: H1,
36079
+ shell: U1,
36080
+ sql: V1,
36081
+ swift: X1,
36082
+ typescript: Q1,
36083
+ vbnet: eO,
36084
+ wasm: tO,
36085
+ xml: nO,
36086
+ yaml: rO
36001
36087
  };
36002
- function oO(t) {
36088
+ function iO(t) {
36003
36089
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
36004
36090
  }
36005
- var Tl, Rf;
36006
- function iO() {
36007
- if (Rf) return Tl;
36008
- Rf = 1;
36091
+ var Tl, If;
36092
+ function sO() {
36093
+ if (If) return Tl;
36094
+ If = 1;
36009
36095
  function t(k) {
36010
36096
  return k instanceof Map ? k.clear = k.delete = k.set = function() {
36011
36097
  throw new Error("map is read-only");
@@ -37062,10 +37148,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), vt = z, nt = se), Me
37062
37148
  }, Zt = Go({});
37063
37149
  return Zt.newInstance = () => Go({}), Tl = Zt, Zt.HighlightJS = Zt, Zt.default = Zt, Tl;
37064
37150
  }
37065
- var sO = /* @__PURE__ */ iO();
37066
- const aO = /* @__PURE__ */ oO(sO), If = {}, lO = "hljs-";
37067
- function cO(t) {
37068
- const e = aO.newInstance();
37151
+ var aO = /* @__PURE__ */ sO();
37152
+ const lO = /* @__PURE__ */ iO(aO), Df = {}, cO = "hljs-";
37153
+ function uO(t) {
37154
+ const e = lO.newInstance();
37069
37155
  return t && i(t), {
37070
37156
  highlight: n,
37071
37157
  highlightAuto: r,
@@ -37075,10 +37161,10 @@ function cO(t) {
37075
37161
  registered: a
37076
37162
  };
37077
37163
  function n(l, c, u) {
37078
- const d = u || If, f = typeof d.prefix == "string" ? d.prefix : lO;
37164
+ const d = u || Df, f = typeof d.prefix == "string" ? d.prefix : cO;
37079
37165
  if (!e.getLanguage(l))
37080
37166
  throw new Error("Unknown language: `" + l + "` is not registered");
37081
- e.configure({ __emitter: uO, classPrefix: f });
37167
+ e.configure({ __emitter: dO, classPrefix: f });
37082
37168
  const p = (
37083
37169
  /** @type {HighlightResult & {_emitter: HastEmitter}} */
37084
37170
  e.highlight(c, { ignoreIllegals: !0, language: l })
@@ -37094,7 +37180,7 @@ function cO(t) {
37094
37180
  return m.language = p.language, m.relevance = p.relevance, h;
37095
37181
  }
37096
37182
  function r(l, c) {
37097
- const d = (c || If).subset || o();
37183
+ const d = (c || Df).subset || o();
37098
37184
  let f = -1, p = 0, h;
37099
37185
  for (; ++f < d.length; ) {
37100
37186
  const m = d[f];
@@ -37144,7 +37230,7 @@ function cO(t) {
37144
37230
  return !!e.getLanguage(l);
37145
37231
  }
37146
37232
  }
37147
- class uO {
37233
+ class dO {
37148
37234
  /**
37149
37235
  * @param {Readonly<HljsOptions>} options
37150
37236
  * Configuration.
@@ -37245,19 +37331,19 @@ class uO {
37245
37331
  return "";
37246
37332
  }
37247
37333
  }
37248
- function dO(t) {
37334
+ function fO(t) {
37249
37335
  const e = document.createElement("textarea");
37250
37336
  e.value = t, e.contentEditable = "true", e.style.position = "fixed", document.body.appendChild(e), e.focus(), e.select();
37251
37337
  const n = document.execCommand("copy");
37252
37338
  return e.remove(), n;
37253
37339
  }
37254
- function fO(t) {
37340
+ function pO(t) {
37255
37341
  return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(t) : new Promise((e, n) => {
37256
- const r = dO(t);
37342
+ const r = fO(t);
37257
37343
  r ? e(!0) : n(r);
37258
37344
  });
37259
37345
  }
37260
- const pO = { class: "code-block-toolbar" }, hO = { class: "wrap editable" }, mO = { class: "wrap" }, gO = { class: "language readonly" }, bO = /* @__PURE__ */ G({
37346
+ const hO = { class: "code-block-toolbar" }, mO = { class: "wrap editable" }, gO = { class: "wrap" }, bO = { class: "language readonly" }, yO = /* @__PURE__ */ G({
37261
37347
  __name: "view",
37262
37348
  props: Ot,
37263
37349
  setup(t) {
@@ -37281,7 +37367,7 @@ const pO = { class: "code-block-toolbar" }, hO = { class: "wrap editable" }, mO
37281
37367
  }
37282
37368
  function a() {
37283
37369
  const c = e.node.content.content[0].text;
37284
- fO(c).then(() => {
37370
+ pO(c).then(() => {
37285
37371
  n.value = "done", setTimeout(() => {
37286
37372
  n.value = "content_copy";
37287
37373
  }, 2e3);
@@ -37292,15 +37378,15 @@ const pO = { class: "code-block-toolbar" }, hO = { class: "wrap editable" }, mO
37292
37378
  }
37293
37379
  return (c, u) => (w(), P(y(mr), De(e, { class: "o-code-block-view" }), {
37294
37380
  default: C(() => [
37295
- A("div", pO, [
37296
- A("div", hO, [
37381
+ A("div", hO, [
37382
+ A("div", mO, [
37297
37383
  x(y(bS), {
37298
37384
  language: r.value,
37299
37385
  onSelect: s
37300
37386
  }, null, 8, ["language"])
37301
37387
  ]),
37302
- A("div", mO, [
37303
- A("div", gO, Ce(r.value), 1),
37388
+ A("div", gO, [
37389
+ A("div", bO, Ce(r.value), 1),
37304
37390
  x(y(Ye), {
37305
37391
  icon: i.value,
37306
37392
  "icon-class": { "rotate-270": o.value },
@@ -37325,7 +37411,7 @@ const pO = { class: "code-block-toolbar" }, hO = { class: "wrap editable" }, mO
37325
37411
  _: 1
37326
37412
  }, 16));
37327
37413
  }
37328
- }), yO = cO(rO), vO = PT.extend({
37414
+ }), vO = uO(oO), EO = BT.extend({
37329
37415
  draggable: !0,
37330
37416
  addAttributes() {
37331
37417
  var t;
@@ -37338,89 +37424,13 @@ const pO = { class: "code-block-toolbar" }, hO = { class: "wrap editable" }, mO
37338
37424
  };
37339
37425
  },
37340
37426
  addNodeView() {
37341
- return Ln(bO);
37427
+ return Ln(yO);
37342
37428
  }
37343
37429
  }).configure({
37344
37430
  languageClassPrefix: "language-",
37345
37431
  defaultLanguage: "bash",
37346
- lowlight: yO
37347
- }), Df = (t) => {
37348
- const e = /(#[0-9a-f]{3,6})\b/gi, n = [];
37349
- return t.descendants((r, o) => {
37350
- r.text && Array.from(r.text.matchAll(e)).forEach((i) => {
37351
- const s = i[0], a = i.index || 0, l = o + a, c = l + s.length, u = ht.inline(l, c, {
37352
- class: "color",
37353
- style: `--color: ${s}`
37354
- });
37355
- n.push(u);
37356
- });
37357
- }), He.create(t, n);
37358
- }, EO = Ke.create({
37359
- name: "colorHighlighter",
37360
- addProseMirrorPlugins() {
37361
- return [
37362
- new Ue({
37363
- state: {
37364
- init(t, { doc: e }) {
37365
- return Df(e);
37366
- },
37367
- apply(t, e) {
37368
- return t.docChanged ? Df(t.doc) : e;
37369
- }
37370
- },
37371
- props: {
37372
- decorations(t) {
37373
- return this.getState(t);
37374
- }
37375
- }
37376
- })
37377
- ];
37378
- }
37379
- });
37380
- Ke.create({
37381
- name: "focus",
37382
- addOptions() {
37383
- return {
37384
- className: "has-focus",
37385
- mode: "all"
37386
- };
37387
- },
37388
- addProseMirrorPlugins() {
37389
- return [
37390
- new Ue({
37391
- key: new Ze("focus"),
37392
- props: {
37393
- decorations: ({ doc: t, selection: e }) => {
37394
- const { isEditable: n, isFocused: r } = this.editor, { anchor: o } = e, i = [];
37395
- if (!n || !r)
37396
- return He.create(t, []);
37397
- let s = 0;
37398
- this.options.mode === "deepest" && t.descendants((l, c) => {
37399
- if (l.isText)
37400
- return;
37401
- if (!(o >= c && o <= c + l.nodeSize - 1))
37402
- return !1;
37403
- s += 1;
37404
- });
37405
- let a = 0;
37406
- return t.descendants((l, c) => {
37407
- if (l.isText || !(o >= c && o <= c + l.nodeSize - 1))
37408
- return !1;
37409
- if (a += 1, this.options.mode === "deepest" && s - a > 0 || this.options.mode === "shallowest" && a > 1)
37410
- return this.options.mode === "deepest";
37411
- i.push(
37412
- ht.node(c, c + l.nodeSize, {
37413
- class: this.options.className
37414
- })
37415
- );
37416
- }), He.create(t, i);
37417
- }
37418
- }
37419
- })
37420
- ];
37421
- }
37422
- });
37423
- const kO = /* @__PURE__ */ G({
37432
+ lowlight: vO
37433
+ }), kO = /* @__PURE__ */ G({
37424
37434
  __name: "view",
37425
37435
  props: Ot,
37426
37436
  setup(t) {
@@ -38390,7 +38400,7 @@ function jO(t) {
38390
38400
  }
38391
38401
  function YO(t) {
38392
38402
  return new Ue({
38393
- key: new Ze("autolink"),
38403
+ key: new Xe("autolink"),
38394
38404
  appendTransaction: (e, n, r) => {
38395
38405
  const o = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), i = e.some((c) => c.getMeta("preventAutolink"));
38396
38406
  if (!o || i)
@@ -38426,7 +38436,7 @@ function YO(t) {
38426
38436
  }
38427
38437
  function JO(t) {
38428
38438
  return new Ue({
38429
- key: new Ze("handleClickLink"),
38439
+ key: new Xe("handleClickLink"),
38430
38440
  props: {
38431
38441
  handleClick: (e, n, r) => {
38432
38442
  var o, i;
@@ -38446,7 +38456,7 @@ function JO(t) {
38446
38456
  }
38447
38457
  function XO(t) {
38448
38458
  return new Ue({
38449
- key: new Ze("handlePasteLink"),
38459
+ key: new Xe("handlePasteLink"),
38450
38460
  props: {
38451
38461
  handlePaste: (e, n, r) => {
38452
38462
  const { state: o } = e, { selection: i } = o, { empty: s } = i;
@@ -38643,7 +38653,7 @@ const Sg = _n.create({
38643
38653
  });
38644
38654
  function QO(t) {
38645
38655
  return new Ue({
38646
- key: new Ze("handleClickSelectLink"),
38656
+ key: new Xe("handleClickSelectLink"),
38647
38657
  props: {
38648
38658
  handleClick: (e, n, r) => {
38649
38659
  const { schema: o, doc: i, tr: s } = e.state, a = Vo(i.resolve(n), o.marks.link);
@@ -38703,7 +38713,7 @@ const eN = Sg.extend({
38703
38713
  addProseMirrorPlugins() {
38704
38714
  return [
38705
38715
  new Ue({
38706
- key: new Ze("placeholder"),
38716
+ key: new Xe("placeholder"),
38707
38717
  props: {
38708
38718
  decorations: ({ doc: t, selection: e }) => {
38709
38719
  const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = e, o = [];
@@ -38938,7 +38948,7 @@ function Ht(t) {
38938
38948
  }
38939
38949
  return e;
38940
38950
  }
38941
- var xr = new Ze("selectingCells");
38951
+ var xr = new Xe("selectingCells");
38942
38952
  function Ko(t) {
38943
38953
  for (let e = t.depth - 1; e > 0; e--)
38944
38954
  if (t.node(e).type.spec.tableRole == "row")
@@ -39242,7 +39252,7 @@ function gN(t, e, n) {
39242
39252
  } else r instanceof ie && hN(r) ? i = ie.create(o, r.from) : r instanceof ie && mN(r) && (i = ie.create(o, r.$from.start(), r.$from.end()));
39243
39253
  return i && (e || (e = t.tr)).setSelection(i), e;
39244
39254
  }
39245
- var bN = new Ze("fix-tables");
39255
+ var bN = new Xe("fix-tables");
39246
39256
  function Og(t, e, n, r) {
39247
39257
  const o = t.childCount, i = e.childCount;
39248
39258
  e: for (let s = 0, a = 0; s < i; s++) {
@@ -40156,7 +40166,7 @@ function kc(t, e, n, r, o, i) {
40156
40166
  l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
40157
40167
  }
40158
40168
  }
40159
- var dn = new Ze(
40169
+ var dn = new Xe(
40160
40170
  "tableColumnResizing"
40161
40171
  );
40162
40172
  function WN({
@@ -41111,7 +41121,7 @@ const bA = Ke.create({
41111
41121
  };
41112
41122
  },
41113
41123
  addProseMirrorPlugins() {
41114
- const t = new Ze(this.name), e = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
41124
+ const t = new Xe(this.name), e = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
41115
41125
  return [
41116
41126
  new Ue({
41117
41127
  key: t,
@@ -41534,7 +41544,7 @@ const _A = () => wA(), SA = Ke.create({
41534
41544
  addProseMirrorPlugins() {
41535
41545
  return [
41536
41546
  new Ue({
41537
- key: new Ze("focus"),
41547
+ key: new Xe("focus"),
41538
41548
  props: {
41539
41549
  decorations: ({ doc: t, selection: e }) => {
41540
41550
  const { isEditable: n, isFocused: r } = this.editor, { anchor: o } = e, i = [];
@@ -41977,7 +41987,7 @@ function hM(t) {
41977
41987
  text: g[0]
41978
41988
  } : null;
41979
41989
  }
41980
- const mM = new Ze("suggestion");
41990
+ const mM = new Xe("suggestion");
41981
41991
  function Fg({ pluginKey: t = mM, editor: e, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: o = !1, allowedPrefixes: i = [" "], startOfLine: s = !1, decorationTag: a = "span", decorationClass: l = "suggestion", command: c = () => null, items: u = () => [], render: d = () => ({}), allow: f = () => !0, findSuggestionMatch: p = hM }) {
41982
41992
  let h;
41983
41993
  const m = d == null ? void 0 : d(), g = new Ue({
@@ -42123,7 +42133,7 @@ const gM = Ke.create({
42123
42133
  addProseMirrorPlugins() {
42124
42134
  return [
42125
42135
  Fg({
42126
- pluginKey: new Ze("slash-zh-suggestion"),
42136
+ pluginKey: new Xe("slash-zh-suggestion"),
42127
42137
  editor: this.editor,
42128
42138
  ...this.options.suggestion
42129
42139
  })
@@ -42351,10 +42361,10 @@ const TM = /* @__PURE__ */ vM(yM, [["render", xM]]), op = {
42351
42361
  // // custom
42352
42362
  // OTOC: TOC,
42353
42363
  // OModelViewer: ModelViewer,
42354
- OBlockquote: Mx,
42355
- OCallout: Bx,
42356
- OCodeBlock: vO,
42357
- OColorHighlighter: EO,
42364
+ OBlockquote: Rx,
42365
+ OCallout: $x,
42366
+ OCodeBlock: EO,
42367
+ OColorHighlighter: Ax,
42358
42368
  OHeading: wO,
42359
42369
  OHorizontalRule: CO,
42360
42370
  OImage: AO,