@covalent/components 7.5.0-beta.5 → 8.1.0-beta.1

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/code-snippet.mjs CHANGED
@@ -1,21 +1,21 @@
1
- import { i as Tt, r as St, s as wt, x as Ae, e as Ot } from "./query-assigned-elements-4a39219d.mjs";
2
- import { n as Se } from "./property-9b6ea53b.mjs";
3
- import { o as Rt } from "./query-assigned-nodes-df691e78.mjs";
4
- import { o as At } from "./class-map-4b94b017.mjs";
5
- import { a as Mt } from "./_commonjsHelpers-de2741aa.mjs";
6
- const It = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host pre{margin:0;padding:16px 0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:0 16px;display:block;overflow-x:auto}:host .hljs{color:var(--cov-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cov-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cov-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cov-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cov-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cov-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cov-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cov-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cov-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
1
+ import { i as Rt, r as At, s as Mt, x as Me, e as Ct } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { n as Te } from "./property-9b6ea53b.mjs";
3
+ import { o as It } from "./query-assigned-nodes-df691e78.mjs";
4
+ import { o as kt } from "./class-map-4b94b017.mjs";
5
+ import { a as xt } from "./_commonjsHelpers-de2741aa.mjs";
6
+ const Dt = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host pre{margin:0;padding:16px 0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:0 16px;display:block;overflow-x:auto}:host .hljs{color:var(--cov-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cov-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cov-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cov-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cov-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cov-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cov-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cov-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cov-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
7
7
  `;
8
- function dt(n) {
8
+ function gt(n) {
9
9
  return n instanceof Map ? n.clear = n.delete = n.set = function() {
10
10
  throw new Error("map is read-only");
11
11
  } : n instanceof Set && (n.add = n.clear = n.delete = function() {
12
12
  throw new Error("set is read-only");
13
13
  }), Object.freeze(n), Object.getOwnPropertyNames(n).forEach((e) => {
14
14
  const t = n[e], s = typeof t;
15
- (s === "object" || s === "function") && !Object.isFrozen(t) && dt(t);
15
+ (s === "object" || s === "function") && !Object.isFrozen(t) && gt(t);
16
16
  }), n;
17
17
  }
18
- class yn {
18
+ class Sn {
19
19
  /**
20
20
  * @param {CompiledMode} mode
21
21
  */
@@ -26,10 +26,10 @@ class yn {
26
26
  this.isMatchIgnored = !0;
27
27
  }
28
28
  }
29
- function ut(n) {
29
+ function bt(n) {
30
30
  return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
31
31
  }
32
- function de(n, ...e) {
32
+ function ge(n, ...e) {
33
33
  const t = /* @__PURE__ */ Object.create(null);
34
34
  for (const s in n)
35
35
  t[s] = n[s];
@@ -39,7 +39,7 @@ function de(n, ...e) {
39
39
  }), /** @type {T} */
40
40
  t;
41
41
  }
42
- const Ct = "</span>", vn = (n) => !!n.scope, kt = (n, { prefix: e }) => {
42
+ const Lt = "</span>", Tn = (n) => !!n.scope, Bt = (n, { prefix: e }) => {
43
43
  if (n.startsWith("language:"))
44
44
  return n.replace("language:", "language-");
45
45
  if (n.includes(".")) {
@@ -51,7 +51,7 @@ const Ct = "</span>", vn = (n) => !!n.scope, kt = (n, { prefix: e }) => {
51
51
  }
52
52
  return `${e}${n}`;
53
53
  };
54
- class xt {
54
+ class Ut {
55
55
  /**
56
56
  * Creates a new HTMLRenderer
57
57
  *
@@ -66,16 +66,16 @@ class xt {
66
66
  *
67
67
  * @param {string} text */
68
68
  addText(e) {
69
- this.buffer += ut(e);
69
+ this.buffer += bt(e);
70
70
  }
71
71
  /**
72
72
  * Adds a node open to the output stream (if needed)
73
73
  *
74
74
  * @param {Node} node */
75
75
  openNode(e) {
76
- if (!vn(e))
76
+ if (!Tn(e))
77
77
  return;
78
- const t = kt(
78
+ const t = Bt(
79
79
  e.scope,
80
80
  { prefix: this.classPrefix }
81
81
  );
@@ -86,7 +86,7 @@ class xt {
86
86
  *
87
87
  * @param {Node} node */
88
88
  closeNode(e) {
89
- vn(e) && (this.buffer += Ct);
89
+ Tn(e) && (this.buffer += Lt);
90
90
  }
91
91
  /**
92
92
  * returns the accumulated buffer
@@ -103,13 +103,13 @@ class xt {
103
103
  this.buffer += `<span class="${e}">`;
104
104
  }
105
105
  }
106
- const Tn = (n = {}) => {
106
+ const On = (n = {}) => {
107
107
  const e = { children: [] };
108
108
  return Object.assign(e, n), e;
109
109
  };
110
- class mn {
110
+ class hn {
111
111
  constructor() {
112
- this.rootNode = Tn(), this.stack = [this.rootNode];
112
+ this.rootNode = On(), this.stack = [this.rootNode];
113
113
  }
114
114
  get top() {
115
115
  return this.stack[this.stack.length - 1];
@@ -123,7 +123,7 @@ class mn {
123
123
  }
124
124
  /** @param {string} scope */
125
125
  openNode(e) {
126
- const t = Tn({ scope: e });
126
+ const t = On({ scope: e });
127
127
  this.add(t), this.stack.push(t);
128
128
  }
129
129
  closeNode() {
@@ -156,11 +156,11 @@ class mn {
156
156
  */
157
157
  static _collapse(e) {
158
158
  typeof e != "string" && e.children && (e.children.every((t) => typeof t == "string") ? e.children = [e.children.join("")] : e.children.forEach((t) => {
159
- mn._collapse(t);
159
+ hn._collapse(t);
160
160
  }));
161
161
  }
162
162
  }
163
- class Dt extends mn {
163
+ class Pt extends hn {
164
164
  /**
165
165
  * @param {*} options
166
166
  */
@@ -189,7 +189,7 @@ class Dt extends mn {
189
189
  t && (s.scope = `language:${t}`), this.add(s);
190
190
  }
191
191
  toHTML() {
192
- return new xt(this, this.options).value();
192
+ return new Ut(this, this.options).value();
193
193
  }
194
194
  finalize() {
195
195
  return this.closeAllNodes(), !0;
@@ -198,41 +198,41 @@ class Dt extends mn {
198
198
  function ve(n) {
199
199
  return n ? typeof n == "string" ? n : n.source : null;
200
200
  }
201
- function gt(n) {
202
- return be("(?=", n, ")");
201
+ function pt(n) {
202
+ return _e("(?=", n, ")");
203
203
  }
204
- function Lt(n) {
205
- return be("(?:", n, ")*");
204
+ function Ft(n) {
205
+ return _e("(?:", n, ")*");
206
206
  }
207
- function Bt(n) {
208
- return be("(?:", n, ")?");
207
+ function $t(n) {
208
+ return _e("(?:", n, ")?");
209
209
  }
210
- function be(...n) {
210
+ function _e(...n) {
211
211
  return n.map((t) => ve(t)).join("");
212
212
  }
213
- function Ut(n) {
213
+ function zt(n) {
214
214
  const e = n[n.length - 1];
215
215
  return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
216
216
  }
217
- function En(...n) {
218
- return "(" + (Ut(n).capture ? "" : "?:") + n.map((s) => ve(s)).join("|") + ")";
217
+ function Nn(...n) {
218
+ return "(" + (zt(n).capture ? "" : "?:") + n.map((s) => ve(s)).join("|") + ")";
219
219
  }
220
- function bt(n) {
220
+ function _t(n) {
221
221
  return new RegExp(n.toString() + "|").exec("").length - 1;
222
222
  }
223
- function Pt(n, e) {
223
+ function Kt(n, e) {
224
224
  const t = n && n.exec(e);
225
225
  return t && t.index === 0;
226
226
  }
227
- const Ft = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
228
- function fn(n, { joinWith: e }) {
227
+ const qt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
228
+ function yn(n, { joinWith: e }) {
229
229
  let t = 0;
230
230
  return n.map((s) => {
231
231
  t += 1;
232
232
  const c = t;
233
233
  let o = ve(s), a = "";
234
234
  for (; o.length > 0; ) {
235
- const r = Ft.exec(o);
235
+ const r = qt.exec(o);
236
236
  if (!r) {
237
237
  a += o;
238
238
  break;
@@ -242,14 +242,14 @@ function fn(n, { joinWith: e }) {
242
242
  return a;
243
243
  }).map((s) => `(${s})`).join(e);
244
244
  }
245
- const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\\d+)?", mt = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Et = "\\b(0b[01]+)", zt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Kt = (n = {}) => {
245
+ const Gt = /\b\B/, mt = "[a-zA-Z]\\w*", vn = "[a-zA-Z_]\\w*", Et = "\\b\\d+(\\.\\d+)?", ft = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ht = "\\b(0b[01]+)", Ht = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Wt = (n = {}) => {
246
246
  const e = /^#![ ]*\//;
247
- return n.binary && (n.begin = be(
247
+ return n.binary && (n.begin = _e(
248
248
  e,
249
249
  /.*\b/,
250
250
  n.binary,
251
251
  /\b.*/
252
- )), de({
252
+ )), ge({
253
253
  scope: "meta",
254
254
  begin: e,
255
255
  end: /$/,
@@ -259,25 +259,25 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
259
259
  t.index !== 0 && s.ignoreMatch();
260
260
  }
261
261
  }, n);
262
- }, Te = {
262
+ }, Se = {
263
263
  begin: "\\\\[\\s\\S]",
264
264
  relevance: 0
265
- }, qt = {
265
+ }, Yt = {
266
266
  scope: "string",
267
267
  begin: "'",
268
268
  end: "'",
269
269
  illegal: "\\n",
270
- contains: [Te]
271
- }, Ht = {
270
+ contains: [Se]
271
+ }, Zt = {
272
272
  scope: "string",
273
273
  begin: '"',
274
274
  end: '"',
275
275
  illegal: "\\n",
276
- contains: [Te]
277
- }, Gt = {
276
+ contains: [Se]
277
+ }, Xt = {
278
278
  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/
279
- }, Ce = function(n, e, t = {}) {
280
- const s = de(
279
+ }, ke = function(n, e, t = {}) {
280
+ const s = ge(
281
281
  {
282
282
  scope: "comment",
283
283
  begin: n,
@@ -295,7 +295,7 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
295
295
  excludeBegin: !0,
296
296
  relevance: 0
297
297
  });
298
- const c = En(
298
+ const c = Nn(
299
299
  // list of common 1 and 2 letter words in English
300
300
  "I",
301
301
  "a",
@@ -331,7 +331,7 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
331
331
  //
332
332
  // for a visual example please see:
333
333
  // https://github.com/highlightjs/highlight.js/issues/2827
334
- begin: be(
334
+ begin: _e(
335
335
  /[ ]+/,
336
336
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
337
337
  "(",
@@ -342,54 +342,44 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
342
342
  // look for 3 words in a row
343
343
  }
344
344
  ), s;
345
- }, Wt = Ce("//", "$"), Yt = Ce("/\\*", "\\*/"), Zt = Ce("#", "$"), Vt = {
345
+ }, Vt = ke("//", "$"), Qt = ke("/\\*", "\\*/"), Jt = ke("#", "$"), jt = {
346
346
  scope: "number",
347
- begin: _t,
347
+ begin: Et,
348
348
  relevance: 0
349
- }, Xt = {
349
+ }, er = {
350
350
  scope: "number",
351
- begin: mt,
351
+ begin: ft,
352
352
  relevance: 0
353
- }, Qt = {
353
+ }, nr = {
354
354
  scope: "number",
355
- begin: Et,
355
+ begin: ht,
356
356
  relevance: 0
357
- }, Jt = {
358
- // this outer rule makes sure we actually have a WHOLE regex and not simply
359
- // an expression such as:
360
- //
361
- // 3 / something
362
- //
363
- // (which will then blow up when regex's `illegal` sees the newline)
364
- begin: /(?=\/[^/\n]*\/)/,
365
- contains: [{
366
- scope: "regexp",
367
- begin: /\//,
368
- end: /\/[gimuy]*/,
369
- illegal: /\n/,
370
- contains: [
371
- Te,
372
- {
373
- begin: /\[/,
374
- end: /\]/,
375
- relevance: 0,
376
- contains: [Te]
377
- }
378
- ]
379
- }]
380
- }, jt = {
357
+ }, tr = {
358
+ scope: "regexp",
359
+ begin: /\/(?=[^/\n]*\/)/,
360
+ end: /\/[gimuy]*/,
361
+ contains: [
362
+ Se,
363
+ {
364
+ begin: /\[/,
365
+ end: /\]/,
366
+ relevance: 0,
367
+ contains: [Se]
368
+ }
369
+ ]
370
+ }, rr = {
381
371
  scope: "title",
382
- begin: pt,
372
+ begin: mt,
383
373
  relevance: 0
384
- }, er = {
374
+ }, ar = {
385
375
  scope: "title",
386
- begin: hn,
376
+ begin: vn,
387
377
  relevance: 0
388
- }, nr = {
378
+ }, ir = {
389
379
  // excludes method names from keyword processing
390
- begin: "\\.\\s*" + hn,
380
+ begin: "\\.\\s*" + vn,
391
381
  relevance: 0
392
- }, tr = function(n) {
382
+ }, sr = function(n) {
393
383
  return Object.assign(
394
384
  n,
395
385
  {
@@ -404,56 +394,56 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
404
394
  }
405
395
  );
406
396
  };
407
- var Me = /* @__PURE__ */ Object.freeze({
397
+ var Ce = /* @__PURE__ */ Object.freeze({
408
398
  __proto__: null,
409
- MATCH_NOTHING_RE: $t,
410
- IDENT_RE: pt,
411
- UNDERSCORE_IDENT_RE: hn,
412
- NUMBER_RE: _t,
413
- C_NUMBER_RE: mt,
414
- BINARY_NUMBER_RE: Et,
415
- RE_STARTERS_RE: zt,
416
- SHEBANG: Kt,
417
- BACKSLASH_ESCAPE: Te,
418
- APOS_STRING_MODE: qt,
419
- QUOTE_STRING_MODE: Ht,
420
- PHRASAL_WORDS_MODE: Gt,
421
- COMMENT: Ce,
422
- C_LINE_COMMENT_MODE: Wt,
423
- C_BLOCK_COMMENT_MODE: Yt,
424
- HASH_COMMENT_MODE: Zt,
425
- NUMBER_MODE: Vt,
426
- C_NUMBER_MODE: Xt,
427
- BINARY_NUMBER_MODE: Qt,
428
- REGEXP_MODE: Jt,
429
- TITLE_MODE: jt,
430
- UNDERSCORE_TITLE_MODE: er,
431
- METHOD_GUARD: nr,
432
- END_SAME_AS_BEGIN: tr
399
+ APOS_STRING_MODE: Yt,
400
+ BACKSLASH_ESCAPE: Se,
401
+ BINARY_NUMBER_MODE: nr,
402
+ BINARY_NUMBER_RE: ht,
403
+ COMMENT: ke,
404
+ C_BLOCK_COMMENT_MODE: Qt,
405
+ C_LINE_COMMENT_MODE: Vt,
406
+ C_NUMBER_MODE: er,
407
+ C_NUMBER_RE: ft,
408
+ END_SAME_AS_BEGIN: sr,
409
+ HASH_COMMENT_MODE: Jt,
410
+ IDENT_RE: mt,
411
+ MATCH_NOTHING_RE: Gt,
412
+ METHOD_GUARD: ir,
413
+ NUMBER_MODE: jt,
414
+ NUMBER_RE: Et,
415
+ PHRASAL_WORDS_MODE: Xt,
416
+ QUOTE_STRING_MODE: Zt,
417
+ REGEXP_MODE: tr,
418
+ RE_STARTERS_RE: Ht,
419
+ SHEBANG: Wt,
420
+ TITLE_MODE: rr,
421
+ UNDERSCORE_IDENT_RE: vn,
422
+ UNDERSCORE_TITLE_MODE: ar
433
423
  });
434
- function rr(n, e) {
424
+ function or(n, e) {
435
425
  n.input[n.index - 1] === "." && e.ignoreMatch();
436
426
  }
437
- function ar(n, e) {
427
+ function cr(n, e) {
438
428
  n.className !== void 0 && (n.scope = n.className, delete n.className);
439
429
  }
440
- function ir(n, e) {
441
- e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = rr, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
430
+ function lr(n, e) {
431
+ e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = or, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
442
432
  }
443
- function sr(n, e) {
444
- Array.isArray(n.illegal) && (n.illegal = En(...n.illegal));
433
+ function dr(n, e) {
434
+ Array.isArray(n.illegal) && (n.illegal = Nn(...n.illegal));
445
435
  }
446
- function or(n, e) {
436
+ function ur(n, e) {
447
437
  if (n.match) {
448
438
  if (n.begin || n.end)
449
439
  throw new Error("begin & end are not supported with match");
450
440
  n.begin = n.match, delete n.match;
451
441
  }
452
442
  }
453
- function cr(n, e) {
443
+ function gr(n, e) {
454
444
  n.relevance === void 0 && (n.relevance = 1);
455
445
  }
456
- const lr = (n, e) => {
446
+ const br = (n, e) => {
457
447
  if (!n.beforeMatch)
458
448
  return;
459
449
  if (n.starts)
@@ -461,13 +451,13 @@ const lr = (n, e) => {
461
451
  const t = Object.assign({}, n);
462
452
  Object.keys(n).forEach((s) => {
463
453
  delete n[s];
464
- }), n.keywords = t.keywords, n.begin = be(t.beforeMatch, gt(t.begin)), n.starts = {
454
+ }), n.keywords = t.keywords, n.begin = _e(t.beforeMatch, pt(t.begin)), n.starts = {
465
455
  relevance: 0,
466
456
  contains: [
467
457
  Object.assign(t, { endsParent: !0 })
468
458
  ]
469
459
  }, n.relevance = 0, delete t.beforeMatch;
470
- }, dr = [
460
+ }, pr = [
471
461
  "of",
472
462
  "and",
473
463
  "for",
@@ -482,67 +472,67 @@ const lr = (n, e) => {
482
472
  // common variable name
483
473
  "value"
484
474
  // common variable name
485
- ], ur = "keyword";
486
- function ft(n, e, t = ur) {
475
+ ], _r = "keyword";
476
+ function Nt(n, e, t = _r) {
487
477
  const s = /* @__PURE__ */ Object.create(null);
488
478
  return typeof n == "string" ? c(t, n.split(" ")) : Array.isArray(n) ? c(t, n) : Object.keys(n).forEach(function(o) {
489
479
  Object.assign(
490
480
  s,
491
- ft(n[o], e, o)
481
+ Nt(n[o], e, o)
492
482
  );
493
483
  }), s;
494
484
  function c(o, a) {
495
485
  e && (a = a.map((r) => r.toLowerCase())), a.forEach(function(r) {
496
486
  const i = r.split("|");
497
- s[i[0]] = [o, gr(i[0], i[1])];
487
+ s[i[0]] = [o, mr(i[0], i[1])];
498
488
  });
499
489
  }
500
490
  }
501
- function gr(n, e) {
502
- return e ? Number(e) : br(n) ? 0 : 1;
491
+ function mr(n, e) {
492
+ return e ? Number(e) : Er(n) ? 0 : 1;
503
493
  }
504
- function br(n) {
505
- return dr.includes(n.toLowerCase());
494
+ function Er(n) {
495
+ return pr.includes(n.toLowerCase());
506
496
  }
507
- const Sn = {}, ge = (n) => {
497
+ const wn = {}, pe = (n) => {
508
498
  console.error(n);
509
- }, wn = (n, ...e) => {
499
+ }, Rn = (n, ...e) => {
510
500
  console.log(`WARN: ${n}`, ...e);
511
- }, fe = (n, e) => {
512
- Sn[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), Sn[`${n}/${e}`] = !0);
501
+ }, he = (n, e) => {
502
+ wn[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), wn[`${n}/${e}`] = !0);
513
503
  }, Ie = new Error();
514
- function ht(n, e, { key: t }) {
504
+ function yt(n, e, { key: t }) {
515
505
  let s = 0;
516
506
  const c = n[t], o = {}, a = {};
517
507
  for (let r = 1; r <= e.length; r++)
518
- a[r + s] = c[r], o[r + s] = !0, s += bt(e[r - 1]);
508
+ a[r + s] = c[r], o[r + s] = !0, s += _t(e[r - 1]);
519
509
  n[t] = a, n[t]._emit = o, n[t]._multi = !0;
520
510
  }
521
- function pr(n) {
511
+ function fr(n) {
522
512
  if (Array.isArray(n.begin)) {
523
513
  if (n.skip || n.excludeBegin || n.returnBegin)
524
- throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ie;
514
+ throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ie;
525
515
  if (typeof n.beginScope != "object" || n.beginScope === null)
526
- throw ge("beginScope must be object"), Ie;
527
- ht(n, n.begin, { key: "beginScope" }), n.begin = fn(n.begin, { joinWith: "" });
516
+ throw pe("beginScope must be object"), Ie;
517
+ yt(n, n.begin, { key: "beginScope" }), n.begin = yn(n.begin, { joinWith: "" });
528
518
  }
529
519
  }
530
- function _r(n) {
520
+ function hr(n) {
531
521
  if (Array.isArray(n.end)) {
532
522
  if (n.skip || n.excludeEnd || n.returnEnd)
533
- throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ie;
523
+ throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ie;
534
524
  if (typeof n.endScope != "object" || n.endScope === null)
535
- throw ge("endScope must be object"), Ie;
536
- ht(n, n.end, { key: "endScope" }), n.end = fn(n.end, { joinWith: "" });
525
+ throw pe("endScope must be object"), Ie;
526
+ yt(n, n.end, { key: "endScope" }), n.end = yn(n.end, { joinWith: "" });
537
527
  }
538
528
  }
539
- function mr(n) {
529
+ function Nr(n) {
540
530
  n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
541
531
  }
542
- function Er(n) {
543
- mr(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), pr(n), _r(n);
532
+ function yr(n) {
533
+ Nr(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), fr(n), hr(n);
544
534
  }
545
- function fr(n) {
535
+ function vr(n) {
546
536
  function e(a, r) {
547
537
  return new RegExp(
548
538
  ve(a),
@@ -555,12 +545,12 @@ function fr(n) {
555
545
  }
556
546
  // @ts-ignore
557
547
  addRule(r, i) {
558
- i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt += bt(r) + 1;
548
+ i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt += _t(r) + 1;
559
549
  }
560
550
  compile() {
561
551
  this.regexes.length === 0 && (this.exec = () => null);
562
552
  const r = this.regexes.map((i) => i[1]);
563
- this.matcherRe = e(fn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
553
+ this.matcherRe = e(yn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
564
554
  }
565
555
  /** @param {string} s */
566
556
  exec(r) {
@@ -617,26 +607,26 @@ function fr(n) {
617
607
  if (a.isCompiled)
618
608
  return i;
619
609
  [
620
- ar,
610
+ cr,
621
611
  // do this early so compiler extensions generally don't have to worry about
622
612
  // the distinction between match/begin
623
- or,
624
- Er,
625
- lr
613
+ ur,
614
+ yr,
615
+ br
626
616
  ].forEach((l) => l(a, r)), n.compilerExtensions.forEach((l) => l(a, r)), a.__beforeBegin = null, [
627
- ir,
617
+ lr,
628
618
  // do this later so compiler extensions that come earlier have access to the
629
619
  // raw array if they wanted to perhaps manipulate it, etc.
630
- sr,
620
+ dr,
631
621
  // default to 1 relevance if not specified
632
- cr
622
+ gr
633
623
  ].forEach((l) => l(a, r)), a.isCompiled = !0;
634
624
  let d = null;
635
- return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), d = a.keywords.$pattern, delete a.keywords.$pattern), d = d || /\w+/, a.keywords && (a.keywords = ft(a.keywords, n.case_insensitive)), i.keywordPatternRe = e(d, !0), r && (a.begin || (a.begin = /\B|\b/), i.beginRe = e(i.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (i.endRe = e(i.end)), i.terminatorEnd = ve(i.end) || "", a.endsWithParent && r.terminatorEnd && (i.terminatorEnd += (a.end ? "|" : "") + r.terminatorEnd)), a.illegal && (i.illegalRe = e(
625
+ return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), d = a.keywords.$pattern, delete a.keywords.$pattern), d = d || /\w+/, a.keywords && (a.keywords = Nt(a.keywords, n.case_insensitive)), i.keywordPatternRe = e(d, !0), r && (a.begin || (a.begin = /\B|\b/), i.beginRe = e(i.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (i.endRe = e(i.end)), i.terminatorEnd = ve(i.end) || "", a.endsWithParent && r.terminatorEnd && (i.terminatorEnd += (a.end ? "|" : "") + r.terminatorEnd)), a.illegal && (i.illegalRe = e(
636
626
  /** @type {RegExp | string} */
637
627
  a.illegal
638
628
  )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(l) {
639
- return hr(l === "self" ? a : l);
629
+ return Sr(l === "self" ? a : l);
640
630
  })), a.contains.forEach(function(l) {
641
631
  o(
642
632
  /** @type Mode */
@@ -647,26 +637,26 @@ function fr(n) {
647
637
  }
648
638
  if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
649
639
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
650
- return n.classNameAliases = de(n.classNameAliases || {}), o(
640
+ return n.classNameAliases = ge(n.classNameAliases || {}), o(
651
641
  /** @type Mode */
652
642
  n
653
643
  );
654
644
  }
655
- function Nt(n) {
656
- return n ? n.endsWithParent || Nt(n.starts) : !1;
645
+ function vt(n) {
646
+ return n ? n.endsWithParent || vt(n.starts) : !1;
657
647
  }
658
- function hr(n) {
648
+ function Sr(n) {
659
649
  return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
660
- return de(n, { variants: null }, e);
661
- })), n.cachedVariants ? n.cachedVariants : Nt(n) ? de(n, { starts: n.starts ? de(n.starts) : null }) : Object.isFrozen(n) ? de(n) : n;
650
+ return ge(n, { variants: null }, e);
651
+ })), n.cachedVariants ? n.cachedVariants : vt(n) ? ge(n, { starts: n.starts ? ge(n.starts) : null }) : Object.isFrozen(n) ? ge(n) : n;
662
652
  }
663
- var Nr = "11.8.0";
664
- class yr extends Error {
653
+ var Tr = "11.9.0";
654
+ class Or extends Error {
665
655
  constructor(e, t) {
666
656
  super(e), this.name = "HTMLInjectionError", this.html = t;
667
657
  }
668
658
  }
669
- const ke = ut, On = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
659
+ const Le = bt, An = ge, Mn = Symbol("nomatch"), wr = 7, St = function(n) {
670
660
  const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
671
661
  let c = !0;
672
662
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -680,7 +670,7 @@ const ke = ut, On = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
680
670
  languages: null,
681
671
  // beta configuration options, subject to change, welcome to discuss
682
672
  // https://github.com/highlightjs/highlight.js/issues/1086
683
- __emitter: Dt
673
+ __emitter: Pt
684
674
  };
685
675
  function i(u) {
686
676
  return r.noHighlightRe.test(u);
@@ -690,222 +680,222 @@ const ke = ut, On = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
690
680
  f += u.parentNode ? u.parentNode.className : "";
691
681
  const w = r.languageDetectRe.exec(f);
692
682
  if (w) {
693
- const x = C(w[1]);
694
- return x || (wn(o.replace("{}", w[1])), wn("Falling back to no-highlight mode for this block.", u)), x ? w[1] : "no-highlight";
683
+ const k = I(w[1]);
684
+ return k || (Rn(o.replace("{}", w[1])), Rn("Falling back to no-highlight mode for this block.", u)), k ? w[1] : "no-highlight";
695
685
  }
696
- return f.split(/\s+/).find((x) => i(x) || C(x));
686
+ return f.split(/\s+/).find((k) => i(k) || I(k));
697
687
  }
698
688
  function l(u, f, w) {
699
- let x = "", P = "";
700
- typeof f == "object" ? (x = u, w = f.ignoreIllegals, P = f.language) : (fe("10.7.0", "highlight(lang, code, ...args) has been deprecated."), fe("10.7.0", `Please use highlight(code, options) instead.
701
- https://github.com/highlightjs/highlight.js/issues/2277`), P = u, x = f), w === void 0 && (w = !0);
689
+ let k = "", U = "";
690
+ typeof f == "object" ? (k = u, w = f.ignoreIllegals, U = f.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
691
+ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w === void 0 && (w = !0);
702
692
  const Y = {
703
- code: x,
704
- language: P
693
+ code: k,
694
+ language: U
705
695
  };
706
- U("before:highlight", Y);
696
+ B("before:highlight", Y);
707
697
  const ne = Y.result ? Y.result : g(Y.language, Y.code, w);
708
- return ne.code = Y.code, U("after:highlight", ne), ne;
698
+ return ne.code = Y.code, B("after:highlight", ne), ne;
709
699
  }
710
- function g(u, f, w, x) {
711
- const P = /* @__PURE__ */ Object.create(null);
700
+ function g(u, f, w, k) {
701
+ const U = /* @__PURE__ */ Object.create(null);
712
702
  function Y(_, y) {
713
703
  return _.keywords[y];
714
704
  }
715
705
  function ne() {
716
- if (!T.keywords) {
717
- q.addText(k);
706
+ if (!S.keywords) {
707
+ G.addText(P);
718
708
  return;
719
709
  }
720
710
  let _ = 0;
721
- T.keywordPatternRe.lastIndex = 0;
722
- let y = T.keywordPatternRe.exec(k), O = "";
711
+ S.keywordPatternRe.lastIndex = 0;
712
+ let y = S.keywordPatternRe.exec(P), T = "";
723
713
  for (; y; ) {
724
- O += k.substring(_, y.index);
725
- const D = ie.case_insensitive ? y[0].toLowerCase() : y[0], V = Y(T, D);
726
- if (V) {
727
- const [oe, $] = V;
728
- if (q.addText(O), O = "", P[D] = (P[D] || 0) + 1, P[D] <= vr && (_e += $), oe.startsWith("_"))
729
- O += y[0];
714
+ T += P.substring(_, y.index);
715
+ const x = re.case_insensitive ? y[0].toLowerCase() : y[0], X = Y(S, x);
716
+ if (X) {
717
+ const [se, xe] = X;
718
+ if (G.addText(T), T = "", U[x] = (U[x] || 0) + 1, U[x] <= wr && (fe += xe), se.startsWith("_"))
719
+ T += y[0];
730
720
  else {
731
- const Re = ie.classNameAliases[oe] || oe;
732
- Z(y[0], Re);
721
+ const De = re.classNameAliases[se] || se;
722
+ Z(y[0], De);
733
723
  }
734
724
  } else
735
- O += y[0];
736
- _ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(k);
725
+ T += y[0];
726
+ _ = S.keywordPatternRe.lastIndex, y = S.keywordPatternRe.exec(P);
737
727
  }
738
- O += k.substring(_), q.addText(O);
728
+ T += P.substring(_), G.addText(T);
739
729
  }
740
730
  function te() {
741
- if (k === "")
731
+ if (P === "")
742
732
  return;
743
733
  let _ = null;
744
- if (typeof T.subLanguage == "string") {
745
- if (!e[T.subLanguage]) {
746
- q.addText(k);
734
+ if (typeof S.subLanguage == "string") {
735
+ if (!e[S.subLanguage]) {
736
+ G.addText(P);
747
737
  return;
748
738
  }
749
- _ = g(T.subLanguage, k, !0, Oe[T.subLanguage]), Oe[T.subLanguage] = /** @type {CompiledMode} */
739
+ _ = g(S.subLanguage, P, !0, Re[S.subLanguage]), Re[S.subLanguage] = /** @type {CompiledMode} */
750
740
  _._top;
751
741
  } else
752
- _ = p(k, T.subLanguage.length ? T.subLanguage : null);
753
- T.relevance > 0 && (_e += _.relevance), q.__addSublanguage(_._emitter, _.language);
742
+ _ = p(P, S.subLanguage.length ? S.subLanguage : null);
743
+ S.relevance > 0 && (fe += _.relevance), G.__addSublanguage(_._emitter, _.language);
754
744
  }
755
745
  function z() {
756
- T.subLanguage != null ? te() : ne(), k = "";
746
+ S.subLanguage != null ? te() : ne(), P = "";
757
747
  }
758
748
  function Z(_, y) {
759
- _ !== "" && (q.startScope(y), q.addText(_), q.endScope());
749
+ _ !== "" && (G.startScope(y), G.addText(_), G.endScope());
760
750
  }
761
- function H(_, y) {
762
- let O = 1;
763
- const D = y.length - 1;
764
- for (; O <= D; ) {
765
- if (!_._emit[O]) {
766
- O++;
751
+ function q(_, y) {
752
+ let T = 1;
753
+ const x = y.length - 1;
754
+ for (; T <= x; ) {
755
+ if (!_._emit[T]) {
756
+ T++;
767
757
  continue;
768
758
  }
769
- const V = ie.classNameAliases[_[O]] || _[O], oe = y[O];
770
- V ? Z(oe, V) : (k = oe, ne(), k = ""), O++;
759
+ const X = re.classNameAliases[_[T]] || _[T], se = y[T];
760
+ X ? Z(se, X) : (P = se, ne(), P = ""), T++;
771
761
  }
772
762
  }
773
763
  function K(_, y) {
774
- return _.scope && typeof _.scope == "string" && q.openNode(ie.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (Z(k, ie.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), k = "") : _.beginScope._multi && (H(_.beginScope, y), k = "")), T = Object.create(_, { parent: { value: T } }), T;
764
+ return _.scope && typeof _.scope == "string" && G.openNode(re.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (Z(P, re.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), P = "") : _.beginScope._multi && (q(_.beginScope, y), P = "")), S = Object.create(_, { parent: { value: S } }), S;
775
765
  }
776
- function Q(_, y, O) {
777
- let D = Pt(_.endRe, O);
778
- if (D) {
766
+ function Q(_, y, T) {
767
+ let x = Kt(_.endRe, T);
768
+ if (x) {
779
769
  if (_["on:end"]) {
780
- const V = new yn(_);
781
- _["on:end"](y, V), V.isMatchIgnored && (D = !1);
770
+ const X = new Sn(_);
771
+ _["on:end"](y, X), X.isMatchIgnored && (x = !1);
782
772
  }
783
- if (D) {
773
+ if (x) {
784
774
  for (; _.endsParent && _.parent; )
785
775
  _ = _.parent;
786
776
  return _;
787
777
  }
788
778
  }
789
779
  if (_.endsWithParent)
790
- return Q(_.parent, y, O);
780
+ return Q(_.parent, y, T);
791
781
  }
792
782
  function j(_) {
793
- return T.matcher.regexIndex === 0 ? (k += _[0], 1) : (Ee = !0, 0);
783
+ return S.matcher.regexIndex === 0 ? (P += _[0], 1) : (ce = !0, 0);
794
784
  }
795
785
  function ee(_) {
796
- const y = _[0], O = _.rule, D = new yn(O), V = [O.__beforeBegin, O["on:begin"]];
797
- for (const oe of V)
798
- if (oe && (oe(_, D), D.isMatchIgnored))
786
+ const y = _[0], T = _.rule, x = new Sn(T), X = [T.__beforeBegin, T["on:begin"]];
787
+ for (const se of X)
788
+ if (se && (se(_, x), x.isMatchIgnored))
799
789
  return j(y);
800
- return O.skip ? k += y : (O.excludeBegin && (k += y), z(), !O.returnBegin && !O.excludeBegin && (k = y)), K(O, _), O.returnBegin ? 0 : y.length;
790
+ return T.skip ? P += y : (T.excludeBegin && (P += y), z(), !T.returnBegin && !T.excludeBegin && (P = y)), K(T, _), T.returnBegin ? 0 : y.length;
801
791
  }
802
- function ae(_) {
803
- const y = _[0], O = f.substring(_.index), D = Q(T, _, O);
804
- if (!D)
805
- return Rn;
806
- const V = T;
807
- T.endScope && T.endScope._wrap ? (z(), Z(y, T.endScope._wrap)) : T.endScope && T.endScope._multi ? (z(), H(T.endScope, _)) : V.skip ? k += y : (V.returnEnd || V.excludeEnd || (k += y), z(), V.excludeEnd && (k = y));
792
+ function ie(_) {
793
+ const y = _[0], T = f.substring(_.index), x = Q(S, _, T);
794
+ if (!x)
795
+ return Mn;
796
+ const X = S;
797
+ S.endScope && S.endScope._wrap ? (z(), Z(y, S.endScope._wrap)) : S.endScope && S.endScope._multi ? (z(), q(S.endScope, _)) : X.skip ? P += y : (X.returnEnd || X.excludeEnd || (P += y), z(), X.excludeEnd && (P = y));
808
798
  do
809
- T.scope && q.closeNode(), !T.skip && !T.subLanguage && (_e += T.relevance), T = T.parent;
810
- while (T !== D.parent);
811
- return D.starts && K(D.starts, _), V.returnEnd ? 0 : y.length;
799
+ S.scope && G.closeNode(), !S.skip && !S.subLanguage && (fe += S.relevance), S = S.parent;
800
+ while (S !== x.parent);
801
+ return x.starts && K(x.starts, _), X.returnEnd ? 0 : y.length;
812
802
  }
813
- function se() {
803
+ function oe() {
814
804
  const _ = [];
815
- for (let y = T; y !== ie; y = y.parent)
805
+ for (let y = S; y !== re; y = y.parent)
816
806
  y.scope && _.unshift(y.scope);
817
- _.forEach((y) => q.openNode(y));
807
+ _.forEach((y) => G.openNode(y));
818
808
  }
819
- let ue = {};
820
- function we(_, y) {
821
- const O = y && y[0];
822
- if (k += _, O == null)
809
+ let be = {};
810
+ function Oe(_, y) {
811
+ const T = y && y[0];
812
+ if (P += _, T == null)
823
813
  return z(), 0;
824
- if (ue.type === "begin" && y.type === "end" && ue.index === y.index && O === "") {
825
- if (k += f.slice(y.index, y.index + 1), !c) {
826
- const D = new Error(`0 width match regex (${u})`);
827
- throw D.languageName = u, D.badRule = ue.rule, D;
814
+ if (be.type === "begin" && y.type === "end" && be.index === y.index && T === "") {
815
+ if (P += f.slice(y.index, y.index + 1), !c) {
816
+ const x = new Error(`0 width match regex (${u})`);
817
+ throw x.languageName = u, x.badRule = be.rule, x;
828
818
  }
829
819
  return 1;
830
820
  }
831
- if (ue = y, y.type === "begin")
821
+ if (be = y, y.type === "begin")
832
822
  return ee(y);
833
823
  if (y.type === "illegal" && !w) {
834
- const D = new Error('Illegal lexeme "' + O + '" for mode "' + (T.scope || "<unnamed>") + '"');
835
- throw D.mode = T, D;
824
+ const x = new Error('Illegal lexeme "' + T + '" for mode "' + (S.scope || "<unnamed>") + '"');
825
+ throw x.mode = S, x;
836
826
  } else if (y.type === "end") {
837
- const D = ae(y);
838
- if (D !== Rn)
839
- return D;
827
+ const x = ie(y);
828
+ if (x !== Mn)
829
+ return x;
840
830
  }
841
- if (y.type === "illegal" && O === "")
831
+ if (y.type === "illegal" && T === "")
842
832
  return 1;
843
- if (me > 1e5 && me > y.index * 3)
833
+ if (ue > 1e5 && ue > y.index * 3)
844
834
  throw new Error("potential infinite loop, way more iterations than matches");
845
- return k += O, O.length;
835
+ return P += T, T.length;
846
836
  }
847
- const ie = C(u);
848
- if (!ie)
849
- throw ge(o.replace("{}", u)), new Error('Unknown language: "' + u + '"');
850
- const Ne = fr(ie);
851
- let ye = "", T = x || Ne;
852
- const Oe = {}, q = new r.__emitter(r);
853
- se();
854
- let k = "", _e = 0, le = 0, me = 0, Ee = !1;
837
+ const re = I(u);
838
+ if (!re)
839
+ throw pe(o.replace("{}", u)), new Error('Unknown language: "' + u + '"');
840
+ const we = vr(re);
841
+ let Ee = "", S = k || we;
842
+ const Re = {}, G = new r.__emitter(r);
843
+ oe();
844
+ let P = "", fe = 0, de = 0, ue = 0, ce = !1;
855
845
  try {
856
- if (ie.__emitTokens)
857
- ie.__emitTokens(f, q);
846
+ if (re.__emitTokens)
847
+ re.__emitTokens(f, G);
858
848
  else {
859
- for (T.matcher.considerAll(); ; ) {
860
- me++, Ee ? Ee = !1 : T.matcher.considerAll(), T.matcher.lastIndex = le;
861
- const _ = T.matcher.exec(f);
849
+ for (S.matcher.considerAll(); ; ) {
850
+ ue++, ce ? ce = !1 : S.matcher.considerAll(), S.matcher.lastIndex = de;
851
+ const _ = S.matcher.exec(f);
862
852
  if (!_)
863
853
  break;
864
- const y = f.substring(le, _.index), O = we(y, _);
865
- le = _.index + O;
854
+ const y = f.substring(de, _.index), T = Oe(y, _);
855
+ de = _.index + T;
866
856
  }
867
- we(f.substring(le));
857
+ Oe(f.substring(de));
868
858
  }
869
- return q.finalize(), ye = q.toHTML(), {
859
+ return G.finalize(), Ee = G.toHTML(), {
870
860
  language: u,
871
- value: ye,
872
- relevance: _e,
861
+ value: Ee,
862
+ relevance: fe,
873
863
  illegal: !1,
874
- _emitter: q,
875
- _top: T
864
+ _emitter: G,
865
+ _top: S
876
866
  };
877
867
  } catch (_) {
878
868
  if (_.message && _.message.includes("Illegal"))
879
869
  return {
880
870
  language: u,
881
- value: ke(f),
871
+ value: Le(f),
882
872
  illegal: !0,
883
873
  relevance: 0,
884
874
  _illegalBy: {
885
875
  message: _.message,
886
- index: le,
887
- context: f.slice(le - 100, le + 100),
876
+ index: de,
877
+ context: f.slice(de - 100, de + 100),
888
878
  mode: _.mode,
889
- resultSoFar: ye
879
+ resultSoFar: Ee
890
880
  },
891
- _emitter: q
881
+ _emitter: G
892
882
  };
893
883
  if (c)
894
884
  return {
895
885
  language: u,
896
- value: ke(f),
886
+ value: Le(f),
897
887
  illegal: !1,
898
888
  relevance: 0,
899
889
  errorRaised: _,
900
- _emitter: q,
901
- _top: T
890
+ _emitter: G,
891
+ _top: S
902
892
  };
903
893
  throw _;
904
894
  }
905
895
  }
906
896
  function b(u) {
907
897
  const f = {
908
- value: ke(u),
898
+ value: Le(u),
909
899
  illegal: !1,
910
900
  relevance: 0,
911
901
  _top: a,
@@ -915,87 +905,91 @@ https://github.com/highlightjs/highlight.js/issues/2277`), P = u, x = f), w ===
915
905
  }
916
906
  function p(u, f) {
917
907
  f = f || r.languages || Object.keys(e);
918
- const w = b(u), x = f.filter(C).filter(F).map(
908
+ const w = b(u), k = f.filter(I).filter(F).map(
919
909
  (z) => g(z, u, !1)
920
910
  );
921
- x.unshift(w);
922
- const P = x.sort((z, Z) => {
911
+ k.unshift(w);
912
+ const U = k.sort((z, Z) => {
923
913
  if (z.relevance !== Z.relevance)
924
914
  return Z.relevance - z.relevance;
925
915
  if (z.language && Z.language) {
926
- if (C(z.language).supersetOf === Z.language)
916
+ if (I(z.language).supersetOf === Z.language)
927
917
  return 1;
928
- if (C(Z.language).supersetOf === z.language)
918
+ if (I(Z.language).supersetOf === z.language)
929
919
  return -1;
930
920
  }
931
921
  return 0;
932
- }), [Y, ne] = P, te = Y;
922
+ }), [Y, ne] = U, te = Y;
933
923
  return te.secondBest = ne, te;
934
924
  }
935
925
  function m(u, f, w) {
936
- const x = f && t[f] || w;
937
- u.classList.add("hljs"), u.classList.add(`language-${x}`);
926
+ const k = f && t[f] || w;
927
+ u.classList.add("hljs"), u.classList.add(`language-${k}`);
938
928
  }
939
929
  function E(u) {
940
930
  let f = null;
941
931
  const w = d(u);
942
932
  if (i(w))
943
933
  return;
944
- if (U(
934
+ if (B(
945
935
  "before:highlightElement",
946
936
  { el: u, language: w }
947
- ), u.children.length > 0 && (r.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(u)), r.throwUnescapedHTML))
948
- throw new yr(
937
+ ), u.dataset.highlighted) {
938
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", u);
939
+ return;
940
+ }
941
+ if (u.children.length > 0 && (r.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(u)), r.throwUnescapedHTML))
942
+ throw new Or(
949
943
  "One of your code blocks includes unescaped HTML.",
950
944
  u.innerHTML
951
945
  );
952
946
  f = u;
953
- const x = f.textContent, P = w ? l(x, { language: w, ignoreIllegals: !0 }) : p(x);
954
- u.innerHTML = P.value, m(u, w, P.language), u.result = {
955
- language: P.language,
947
+ const k = f.textContent, U = w ? l(k, { language: w, ignoreIllegals: !0 }) : p(k);
948
+ u.innerHTML = U.value, u.dataset.highlighted = "yes", m(u, w, U.language), u.result = {
949
+ language: U.language,
956
950
  // TODO: remove with version 11.0
957
- re: P.relevance,
958
- relevance: P.relevance
959
- }, P.secondBest && (u.secondBest = {
960
- language: P.secondBest.language,
961
- relevance: P.secondBest.relevance
962
- }), U("after:highlightElement", { el: u, result: P, text: x });
951
+ re: U.relevance,
952
+ relevance: U.relevance
953
+ }, U.secondBest && (u.secondBest = {
954
+ language: U.secondBest.language,
955
+ relevance: U.secondBest.relevance
956
+ }), B("after:highlightElement", { el: u, result: U, text: k });
963
957
  }
964
958
  function N(u) {
965
- r = On(r, u);
959
+ r = An(r, u);
966
960
  }
967
961
  const h = () => {
968
- A(), fe("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
962
+ M(), he("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
969
963
  };
970
- function S() {
971
- A(), fe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
964
+ function O() {
965
+ M(), he("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
972
966
  }
973
- let I = !1;
974
- function A() {
967
+ let C = !1;
968
+ function M() {
975
969
  if (document.readyState === "loading") {
976
- I = !0;
970
+ C = !0;
977
971
  return;
978
972
  }
979
973
  document.querySelectorAll(r.cssSelector).forEach(E);
980
974
  }
981
- function M() {
982
- I && A();
975
+ function A() {
976
+ C && M();
983
977
  }
984
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", M, !1);
985
- function L(u, f) {
978
+ typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", A, !1);
979
+ function D(u, f) {
986
980
  let w = null;
987
981
  try {
988
982
  w = f(n);
989
- } catch (x) {
990
- if (ge("Language definition for '{}' could not be registered.".replace("{}", u)), c)
991
- ge(x);
983
+ } catch (k) {
984
+ if (pe("Language definition for '{}' could not be registered.".replace("{}", u)), c)
985
+ pe(k);
992
986
  else
993
- throw x;
987
+ throw k;
994
988
  w = a;
995
989
  }
996
- w.name || (w.name = u), e[u] = w, w.rawDefinition = f.bind(null, n), w.aliases && G(w.aliases, { languageName: u });
990
+ w.name || (w.name = u), e[u] = w, w.rawDefinition = f.bind(null, n), w.aliases && H(w.aliases, { languageName: u });
997
991
  }
998
- function B(u) {
992
+ function L(u) {
999
993
  delete e[u];
1000
994
  for (const f of Object.keys(t))
1001
995
  t[f] === u && delete t[f];
@@ -1003,16 +997,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), P = u, x = f), w ===
1003
997
  function v() {
1004
998
  return Object.keys(e);
1005
999
  }
1006
- function C(u) {
1000
+ function I(u) {
1007
1001
  return u = (u || "").toLowerCase(), e[u] || e[t[u]];
1008
1002
  }
1009
- function G(u, { languageName: f }) {
1003
+ function H(u, { languageName: f }) {
1010
1004
  typeof u == "string" && (u = [u]), u.forEach((w) => {
1011
1005
  t[w.toLowerCase()] = f;
1012
1006
  });
1013
1007
  }
1014
1008
  function F(u) {
1015
- const f = C(u);
1009
+ const f = I(u);
1016
1010
  return f && !f.disableAutodetect;
1017
1011
  }
1018
1012
  function J(u) {
@@ -1026,65 +1020,65 @@ https://github.com/highlightjs/highlight.js/issues/2277`), P = u, x = f), w ===
1026
1020
  );
1027
1021
  });
1028
1022
  }
1029
- function re(u) {
1023
+ function ae(u) {
1030
1024
  J(u), s.push(u);
1031
1025
  }
1032
1026
  function W(u) {
1033
1027
  const f = s.indexOf(u);
1034
1028
  f !== -1 && s.splice(f, 1);
1035
1029
  }
1036
- function U(u, f) {
1030
+ function B(u, f) {
1037
1031
  const w = u;
1038
- s.forEach(function(x) {
1039
- x[w] && x[w](f);
1032
+ s.forEach(function(k) {
1033
+ k[w] && k[w](f);
1040
1034
  });
1041
1035
  }
1042
- function X(u) {
1043
- return fe("10.7.0", "highlightBlock will be removed entirely in v12.0"), fe("10.7.0", "Please use highlightElement now."), E(u);
1036
+ function V(u) {
1037
+ return he("10.7.0", "highlightBlock will be removed entirely in v12.0"), he("10.7.0", "Please use highlightElement now."), E(u);
1044
1038
  }
1045
1039
  Object.assign(n, {
1046
1040
  highlight: l,
1047
1041
  highlightAuto: p,
1048
- highlightAll: A,
1042
+ highlightAll: M,
1049
1043
  highlightElement: E,
1050
1044
  // TODO: Remove with v12 API
1051
- highlightBlock: X,
1045
+ highlightBlock: V,
1052
1046
  configure: N,
1053
1047
  initHighlighting: h,
1054
- initHighlightingOnLoad: S,
1055
- registerLanguage: L,
1056
- unregisterLanguage: B,
1048
+ initHighlightingOnLoad: O,
1049
+ registerLanguage: D,
1050
+ unregisterLanguage: L,
1057
1051
  listLanguages: v,
1058
- getLanguage: C,
1059
- registerAliases: G,
1052
+ getLanguage: I,
1053
+ registerAliases: H,
1060
1054
  autoDetection: F,
1061
- inherit: On,
1062
- addPlugin: re,
1055
+ inherit: An,
1056
+ addPlugin: ae,
1063
1057
  removePlugin: W
1064
1058
  }), n.debugMode = function() {
1065
1059
  c = !1;
1066
1060
  }, n.safeMode = function() {
1067
1061
  c = !0;
1068
- }, n.versionString = Nr, n.regex = {
1069
- concat: be,
1070
- lookahead: gt,
1071
- either: En,
1072
- optional: Bt,
1073
- anyNumberOfTimes: Lt
1062
+ }, n.versionString = Tr, n.regex = {
1063
+ concat: _e,
1064
+ lookahead: pt,
1065
+ either: Nn,
1066
+ optional: $t,
1067
+ anyNumberOfTimes: Ft
1074
1068
  };
1075
- for (const u in Me)
1076
- typeof Me[u] == "object" && dt(Me[u]);
1077
- return Object.assign(n, Me), n;
1078
- }, he = yt({});
1079
- he.newInstance = () => yt({});
1080
- var Tr = he;
1081
- he.HighlightJS = he;
1082
- he.default = he;
1083
- var xe, An;
1084
- function Sr() {
1085
- if (An)
1086
- return xe;
1087
- An = 1;
1069
+ for (const u in Ce)
1070
+ typeof Ce[u] == "object" && gt(Ce[u]);
1071
+ return Object.assign(n, Ce), n;
1072
+ }, Ne = St({});
1073
+ Ne.newInstance = () => St({});
1074
+ var Rr = Ne;
1075
+ Ne.HighlightJS = Ne;
1076
+ Ne.default = Ne;
1077
+ var Be, Cn;
1078
+ function Ar() {
1079
+ if (Cn)
1080
+ return Be;
1081
+ Cn = 1;
1088
1082
  function n(e) {
1089
1083
  const t = e.regex, s = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), c = /[\p{L}0-9._:-]+/u, o = {
1090
1084
  className: "symbol",
@@ -1301,13 +1295,13 @@ function Sr() {
1301
1295
  ]
1302
1296
  };
1303
1297
  }
1304
- return xe = n, xe;
1298
+ return Be = n, Be;
1305
1299
  }
1306
- var De, Mn;
1307
- function wr() {
1308
- if (Mn)
1309
- return De;
1310
- Mn = 1;
1300
+ var Ue, In;
1301
+ function Mr() {
1302
+ if (In)
1303
+ return Ue;
1304
+ In = 1;
1311
1305
  function n(e) {
1312
1306
  const t = e.regex, s = {}, c = {
1313
1307
  begin: /\$\{/,
@@ -1359,13 +1353,14 @@ function wr() {
1359
1353
  };
1360
1354
  o.contains.push(r);
1361
1355
  const i = {
1362
- className: "",
1363
- begin: /\\"/
1356
+ match: /\\"/
1364
1357
  }, d = {
1365
1358
  className: "string",
1366
1359
  begin: /'/,
1367
1360
  end: /'/
1368
1361
  }, l = {
1362
+ match: /\\'/
1363
+ }, g = {
1369
1364
  begin: /\$?\(\(/,
1370
1365
  end: /\)\)/,
1371
1366
  contains: [
@@ -1376,7 +1371,7 @@ function wr() {
1376
1371
  e.NUMBER_MODE,
1377
1372
  s
1378
1373
  ]
1379
- }, g = [
1374
+ }, b = [
1380
1375
  "fish",
1381
1376
  "bash",
1382
1377
  "zsh",
@@ -1386,16 +1381,16 @@ function wr() {
1386
1381
  "tcsh",
1387
1382
  "dash",
1388
1383
  "scsh"
1389
- ], b = e.SHEBANG({
1390
- binary: `(${g.join("|")})`,
1384
+ ], p = e.SHEBANG({
1385
+ binary: `(${b.join("|")})`,
1391
1386
  relevance: 10
1392
- }), p = {
1387
+ }), m = {
1393
1388
  className: "function",
1394
1389
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
1395
1390
  returnBegin: !0,
1396
1391
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
1397
1392
  relevance: 0
1398
- }, m = [
1393
+ }, E = [
1399
1394
  "if",
1400
1395
  "then",
1401
1396
  "else",
@@ -1411,10 +1406,10 @@ function wr() {
1411
1406
  "esac",
1412
1407
  "function",
1413
1408
  "select"
1414
- ], E = [
1409
+ ], N = [
1415
1410
  "true",
1416
1411
  "false"
1417
- ], N = { match: /(\/[a-z._-]+)+/ }, h = [
1412
+ ], h = { match: /(\/[a-z._-]+)+/ }, O = [
1418
1413
  "break",
1419
1414
  "cd",
1420
1415
  "continue",
@@ -1433,7 +1428,7 @@ function wr() {
1433
1428
  "trap",
1434
1429
  "umask",
1435
1430
  "unset"
1436
- ], S = [
1431
+ ], C = [
1437
1432
  "alias",
1438
1433
  "bind",
1439
1434
  "builtin",
@@ -1455,7 +1450,7 @@ function wr() {
1455
1450
  "typeset",
1456
1451
  "ulimit",
1457
1452
  "unalias"
1458
- ], I = [
1453
+ ], M = [
1459
1454
  "autoload",
1460
1455
  "bg",
1461
1456
  "bindkey",
@@ -1634,42 +1629,43 @@ function wr() {
1634
1629
  aliases: ["sh"],
1635
1630
  keywords: {
1636
1631
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
1637
- keyword: m,
1638
- literal: E,
1632
+ keyword: E,
1633
+ literal: N,
1639
1634
  built_in: [
1640
- ...h,
1641
- ...S,
1635
+ ...O,
1636
+ ...C,
1642
1637
  // Shell modifiers
1643
1638
  "set",
1644
1639
  "shopt",
1645
- ...I,
1640
+ ...M,
1646
1641
  ...A
1647
1642
  ]
1648
1643
  },
1649
1644
  contains: [
1650
- b,
1645
+ p,
1651
1646
  // to catch known shells and boost relevancy
1652
1647
  e.SHEBANG(),
1653
1648
  // to catch unknown shells but still highlight the shebang
1654
- p,
1655
- l,
1649
+ m,
1650
+ g,
1656
1651
  e.HASH_COMMENT_MODE,
1657
1652
  a,
1658
- N,
1653
+ h,
1659
1654
  r,
1660
1655
  i,
1661
1656
  d,
1657
+ l,
1662
1658
  s
1663
1659
  ]
1664
1660
  };
1665
1661
  }
1666
- return De = n, De;
1662
+ return Ue = n, Ue;
1667
1663
  }
1668
- var Le, In;
1669
- function Or() {
1670
- if (In)
1671
- return Le;
1672
- In = 1;
1664
+ var Pe, kn;
1665
+ function Cr() {
1666
+ if (kn)
1667
+ return Pe;
1668
+ kn = 1;
1673
1669
  function n(e) {
1674
1670
  const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
1675
1671
  className: "type",
@@ -1796,14 +1792,14 @@ function Or() {
1796
1792
  literal: "true false NULL",
1797
1793
  // TODO: apply hinting work similar to what was done in cpp.js
1798
1794
  built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
1799
- }, S = [
1795
+ }, O = [
1800
1796
  b,
1801
1797
  i,
1802
1798
  s,
1803
1799
  e.C_BLOCK_COMMENT_MODE,
1804
1800
  g,
1805
1801
  l
1806
- ], I = {
1802
+ ], C = {
1807
1803
  // This mode covers expression context where we can't expect a function
1808
1804
  // definition and shouldn't highlight anything that looks like one:
1809
1805
  // `return some()`, `else if()`, `(x*sum(1, 2))`
@@ -1822,17 +1818,17 @@ function Or() {
1822
1818
  }
1823
1819
  ],
1824
1820
  keywords: h,
1825
- contains: S.concat([
1821
+ contains: O.concat([
1826
1822
  {
1827
1823
  begin: /\(/,
1828
1824
  end: /\)/,
1829
1825
  keywords: h,
1830
- contains: S.concat(["self"]),
1826
+ contains: O.concat(["self"]),
1831
1827
  relevance: 0
1832
1828
  }
1833
1829
  ]),
1834
1830
  relevance: 0
1835
- }, A = {
1831
+ }, M = {
1836
1832
  begin: "(" + r + "[\\*&\\s]+)+" + m,
1837
1833
  returnBegin: !0,
1838
1834
  end: /[{;=]/,
@@ -1902,9 +1898,9 @@ function Or() {
1902
1898
  disableAutodetect: !0,
1903
1899
  illegal: "</",
1904
1900
  contains: [].concat(
1905
- I,
1906
- A,
1907
- S,
1901
+ C,
1902
+ M,
1903
+ O,
1908
1904
  [
1909
1905
  b,
1910
1906
  {
@@ -1929,13 +1925,13 @@ function Or() {
1929
1925
  }
1930
1926
  };
1931
1927
  }
1932
- return Le = n, Le;
1928
+ return Pe = n, Pe;
1933
1929
  }
1934
- var Be, Cn;
1935
- function Rr() {
1936
- if (Cn)
1937
- return Be;
1938
- Cn = 1;
1930
+ var Fe, xn;
1931
+ function Ir() {
1932
+ if (xn)
1933
+ return Fe;
1934
+ xn = 1;
1939
1935
  function n(e) {
1940
1936
  const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(?!struct)(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
1941
1937
  className: "type",
@@ -2150,7 +2146,7 @@ function Rr() {
2150
2146
  "weak_ptr",
2151
2147
  "wstring",
2152
2148
  "wstring_view"
2153
- ], S = [
2149
+ ], O = [
2154
2150
  "abort",
2155
2151
  "abs",
2156
2152
  "acos",
@@ -2251,7 +2247,7 @@ function Rr() {
2251
2247
  "visit",
2252
2248
  "vprintf",
2253
2249
  "vsprintf"
2254
- ], M = {
2250
+ ], A = {
2255
2251
  type: N,
2256
2252
  keyword: E,
2257
2253
  literal: [
@@ -2263,12 +2259,12 @@ function Rr() {
2263
2259
  ],
2264
2260
  built_in: ["_Pragma"],
2265
2261
  _type_hints: h
2266
- }, L = {
2262
+ }, D = {
2267
2263
  className: "function.dispatch",
2268
2264
  relevance: 0,
2269
2265
  keywords: {
2270
2266
  // Only for relevance, not highlighting.
2271
- _hint: S
2267
+ _hint: O
2272
2268
  },
2273
2269
  begin: t.concat(
2274
2270
  /\b/,
@@ -2280,8 +2276,8 @@ function Rr() {
2280
2276
  e.IDENT_RE,
2281
2277
  t.lookahead(/(<[^<>]+>|)\s*\(/)
2282
2278
  )
2283
- }, B = [
2284
- L,
2279
+ }, L = [
2280
+ D,
2285
2281
  b,
2286
2282
  i,
2287
2283
  s,
@@ -2306,30 +2302,30 @@ function Rr() {
2306
2302
  end: /;/
2307
2303
  }
2308
2304
  ],
2309
- keywords: M,
2310
- contains: B.concat([
2305
+ keywords: A,
2306
+ contains: L.concat([
2311
2307
  {
2312
2308
  begin: /\(/,
2313
2309
  end: /\)/,
2314
- keywords: M,
2315
- contains: B.concat(["self"]),
2310
+ keywords: A,
2311
+ contains: L.concat(["self"]),
2316
2312
  relevance: 0
2317
2313
  }
2318
2314
  ]),
2319
2315
  relevance: 0
2320
- }, C = {
2316
+ }, I = {
2321
2317
  className: "function",
2322
2318
  begin: "(" + r + "[\\*&\\s]+)+" + m,
2323
2319
  returnBegin: !0,
2324
2320
  end: /[{;=]/,
2325
2321
  excludeEnd: !0,
2326
- keywords: M,
2322
+ keywords: A,
2327
2323
  illegal: /[^\w\s\*&:<>.]/,
2328
2324
  contains: [
2329
2325
  {
2330
2326
  // to prevent it from being confused as the function title
2331
2327
  begin: c,
2332
- keywords: M,
2328
+ keywords: A,
2333
2329
  relevance: 0
2334
2330
  },
2335
2331
  {
@@ -2363,7 +2359,7 @@ function Rr() {
2363
2359
  className: "params",
2364
2360
  begin: /\(/,
2365
2361
  end: /\)/,
2366
- keywords: M,
2362
+ keywords: A,
2367
2363
  relevance: 0,
2368
2364
  contains: [
2369
2365
  s,
@@ -2375,7 +2371,7 @@ function Rr() {
2375
2371
  {
2376
2372
  begin: /\(/,
2377
2373
  end: /\)/,
2378
- keywords: M,
2374
+ keywords: A,
2379
2375
  relevance: 0,
2380
2376
  contains: [
2381
2377
  "self",
@@ -2405,21 +2401,21 @@ function Rr() {
2405
2401
  "hxx",
2406
2402
  "cxx"
2407
2403
  ],
2408
- keywords: M,
2404
+ keywords: A,
2409
2405
  illegal: "</",
2410
2406
  classNameAliases: { "function.dispatch": "built_in" },
2411
2407
  contains: [].concat(
2412
2408
  v,
2413
- C,
2409
+ I,
2410
+ D,
2414
2411
  L,
2415
- B,
2416
2412
  [
2417
2413
  b,
2418
2414
  {
2419
2415
  // containers: ie, `vector <int> rooms (9);`
2420
2416
  begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",
2421
2417
  end: ">",
2422
- keywords: M,
2418
+ keywords: A,
2423
2419
  contains: [
2424
2420
  "self",
2425
2421
  i
@@ -2427,7 +2423,7 @@ function Rr() {
2427
2423
  },
2428
2424
  {
2429
2425
  begin: e.IDENT_RE + "::",
2430
- keywords: M
2426
+ keywords: A
2431
2427
  },
2432
2428
  {
2433
2429
  match: [
@@ -2445,13 +2441,13 @@ function Rr() {
2445
2441
  )
2446
2442
  };
2447
2443
  }
2448
- return Be = n, Be;
2444
+ return Fe = n, Fe;
2449
2445
  }
2450
- var Ue, kn;
2451
- function Ar() {
2452
- if (kn)
2453
- return Ue;
2454
- kn = 1;
2446
+ var $e, Dn;
2447
+ function kr() {
2448
+ if (Dn)
2449
+ return $e;
2450
+ Dn = 1;
2455
2451
  function n(e) {
2456
2452
  const t = [
2457
2453
  "bool",
@@ -2663,14 +2659,14 @@ function Ar() {
2663
2659
  l,
2664
2660
  e.APOS_STRING_MODE,
2665
2661
  e.QUOTE_STRING_MODE
2666
- ] }, S = {
2662
+ ] }, O = {
2667
2663
  begin: "<",
2668
2664
  end: ">",
2669
2665
  contains: [
2670
2666
  { beginKeywords: "in out" },
2671
2667
  i
2672
2668
  ]
2673
- }, I = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", A = {
2669
+ }, C = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", M = {
2674
2670
  // prevents expressions like `@class` from incorrect flagging
2675
2671
  // `class` as a keyword
2676
2672
  begin: "@" + e.IDENT_RE,
@@ -2726,7 +2722,7 @@ function Ar() {
2726
2722
  contains: [
2727
2723
  { beginKeywords: "where class" },
2728
2724
  i,
2729
- S,
2725
+ O,
2730
2726
  e.C_LINE_COMMENT_MODE,
2731
2727
  e.C_BLOCK_COMMENT_MODE
2732
2728
  ]
@@ -2749,7 +2745,7 @@ function Ar() {
2749
2745
  illegal: /[^\s:]/,
2750
2746
  contains: [
2751
2747
  i,
2752
- S,
2748
+ O,
2753
2749
  e.C_LINE_COMMENT_MODE,
2754
2750
  e.C_BLOCK_COMMENT_MODE
2755
2751
  ]
@@ -2777,7 +2773,7 @@ function Ar() {
2777
2773
  },
2778
2774
  {
2779
2775
  className: "function",
2780
- begin: "(" + I + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
2776
+ begin: "(" + C + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
2781
2777
  returnBegin: !0,
2782
2778
  end: /\s*[{;=]/,
2783
2779
  excludeEnd: !0,
@@ -2793,7 +2789,7 @@ function Ar() {
2793
2789
  returnBegin: !0,
2794
2790
  contains: [
2795
2791
  e.TITLE_MODE,
2796
- S
2792
+ O
2797
2793
  ],
2798
2794
  relevance: 0
2799
2795
  },
@@ -2816,17 +2812,17 @@ function Ar() {
2816
2812
  e.C_BLOCK_COMMENT_MODE
2817
2813
  ]
2818
2814
  },
2819
- A
2815
+ M
2820
2816
  ]
2821
2817
  };
2822
2818
  }
2823
- return Ue = n, Ue;
2819
+ return $e = n, $e;
2824
2820
  }
2825
- var Pe, xn;
2826
- function Mr() {
2827
- if (xn)
2828
- return Pe;
2829
- xn = 1;
2821
+ var ze, Ln;
2822
+ function xr() {
2823
+ if (Ln)
2824
+ return ze;
2825
+ Ln = 1;
2830
2826
  const n = (r) => ({
2831
2827
  IMPORTANT: {
2832
2828
  scope: "meta",
@@ -2858,7 +2854,7 @@ function Mr() {
2858
2854
  },
2859
2855
  CSS_VARIABLE: {
2860
2856
  className: "attr",
2861
- begin: /--[A-Za-z][A-Za-z0-9_-]*/
2857
+ begin: /--[A-Za-z_][A-Za-z0-9_-]*/
2862
2858
  }
2863
2859
  }), e = [
2864
2860
  "a",
@@ -3543,13 +3539,13 @@ function Mr() {
3543
3539
  ]
3544
3540
  };
3545
3541
  }
3546
- return Pe = a, Pe;
3542
+ return ze = a, ze;
3547
3543
  }
3548
- var Fe, Dn;
3549
- function Ir() {
3550
- if (Dn)
3551
- return Fe;
3552
- Dn = 1;
3544
+ var Ke, Bn;
3545
+ function Dr() {
3546
+ if (Bn)
3547
+ return Ke;
3548
+ Bn = 1;
3553
3549
  function n(e) {
3554
3550
  const t = e.regex, s = {
3555
3551
  begin: /<\/?[A-Za-z_]/,
@@ -3758,13 +3754,13 @@ function Ir() {
3758
3754
  ]
3759
3755
  };
3760
3756
  }
3761
- return Fe = n, Fe;
3757
+ return Ke = n, Ke;
3762
3758
  }
3763
- var $e, Ln;
3764
- function Cr() {
3765
- if (Ln)
3766
- return $e;
3767
- Ln = 1;
3759
+ var qe, Un;
3760
+ function Lr() {
3761
+ if (Un)
3762
+ return qe;
3763
+ Un = 1;
3768
3764
  function n(e) {
3769
3765
  const t = e.regex;
3770
3766
  return {
@@ -3816,13 +3812,13 @@ function Cr() {
3816
3812
  ]
3817
3813
  };
3818
3814
  }
3819
- return $e = n, $e;
3815
+ return qe = n, qe;
3820
3816
  }
3821
- var ze, Bn;
3822
- function kr() {
3823
- if (Bn)
3824
- return ze;
3825
- Bn = 1;
3817
+ var Ge, Pn;
3818
+ function Br() {
3819
+ if (Pn)
3820
+ return Ge;
3821
+ Pn = 1;
3826
3822
  function n(e) {
3827
3823
  const t = e.regex, s = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", c = t.either(
3828
3824
  /\b([A-Z]+[a-z0-9]+)+/,
@@ -4032,7 +4028,7 @@ function kr() {
4032
4028
  keywords: r
4033
4029
  }
4034
4030
  ]
4035
- }, B = [
4031
+ }, L = [
4036
4032
  b,
4037
4033
  {
4038
4034
  variants: [
@@ -4175,22 +4171,22 @@ function kr() {
4175
4171
  relevance: 0
4176
4172
  }
4177
4173
  ].concat(d, l);
4178
- g.contains = B, N.contains = B;
4179
- const v = "[>?]>", C = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", G = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", F = [
4174
+ g.contains = L, N.contains = L;
4175
+ const v = "[>?]>", I = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", H = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", F = [
4180
4176
  {
4181
4177
  begin: /^\s*=>/,
4182
4178
  starts: {
4183
4179
  end: "$",
4184
- contains: B
4180
+ contains: L
4185
4181
  }
4186
4182
  },
4187
4183
  {
4188
4184
  className: "meta.prompt",
4189
- begin: "^(" + v + "|" + C + "|" + G + ")(?=[ ])",
4185
+ begin: "^(" + v + "|" + I + "|" + H + ")(?=[ ])",
4190
4186
  starts: {
4191
4187
  end: "$",
4192
4188
  keywords: r,
4193
- contains: B
4189
+ contains: L
4194
4190
  }
4195
4191
  }
4196
4192
  ];
@@ -4205,16 +4201,16 @@ function kr() {
4205
4201
  ],
4206
4202
  keywords: r,
4207
4203
  illegal: /\/\*/,
4208
- contains: [e.SHEBANG({ binary: "ruby" })].concat(F).concat(l).concat(B)
4204
+ contains: [e.SHEBANG({ binary: "ruby" })].concat(F).concat(l).concat(L)
4209
4205
  };
4210
4206
  }
4211
- return ze = n, ze;
4207
+ return Ge = n, Ge;
4212
4208
  }
4213
- var Ke, Un;
4214
- function xr() {
4215
- if (Un)
4216
- return Ke;
4217
- Un = 1;
4209
+ var He, Fn;
4210
+ function Ur() {
4211
+ if (Fn)
4212
+ return He;
4213
+ Fn = 1;
4218
4214
  function n(e) {
4219
4215
  const a = {
4220
4216
  keyword: [
@@ -4343,13 +4339,13 @@ function xr() {
4343
4339
  ]
4344
4340
  };
4345
4341
  }
4346
- return Ke = n, Ke;
4342
+ return He = n, He;
4347
4343
  }
4348
- var qe, Pn;
4349
- function Dr() {
4350
- if (Pn)
4351
- return qe;
4352
- Pn = 1;
4344
+ var We, $n;
4345
+ function Pr() {
4346
+ if ($n)
4347
+ return We;
4348
+ $n = 1;
4353
4349
  function n(e) {
4354
4350
  const t = e.regex, s = /[_A-Za-z][_0-9A-Za-z]*/;
4355
4351
  return {
@@ -4417,13 +4413,13 @@ function Dr() {
4417
4413
  ]
4418
4414
  };
4419
4415
  }
4420
- return qe = n, qe;
4416
+ return We = n, We;
4421
4417
  }
4422
- var He, Fn;
4423
- function Lr() {
4424
- if (Fn)
4425
- return He;
4426
- Fn = 1;
4418
+ var Ye, zn;
4419
+ function Fr() {
4420
+ if (zn)
4421
+ return Ye;
4422
+ zn = 1;
4427
4423
  function n(e) {
4428
4424
  const t = e.regex, s = {
4429
4425
  className: "number",
@@ -4528,13 +4524,13 @@ function Lr() {
4528
4524
  ]
4529
4525
  };
4530
4526
  }
4531
- return He = n, He;
4527
+ return Ye = n, Ye;
4532
4528
  }
4533
- var Ge, $n;
4534
- function Br() {
4535
- if ($n)
4536
- return Ge;
4537
- $n = 1;
4529
+ var Ze, Kn;
4530
+ function $r() {
4531
+ if (Kn)
4532
+ return Ze;
4533
+ Kn = 1;
4538
4534
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
4539
4535
  className: "number",
4540
4536
  variants: [
@@ -4770,13 +4766,13 @@ function Br() {
4770
4766
  ]
4771
4767
  };
4772
4768
  }
4773
- return Ge = o, Ge;
4769
+ return Ze = o, Ze;
4774
4770
  }
4775
- var We, zn;
4776
- function Ur() {
4777
- if (zn)
4778
- return We;
4779
- zn = 1;
4771
+ var Xe, qn;
4772
+ function zr() {
4773
+ if (qn)
4774
+ return Xe;
4775
+ qn = 1;
4780
4776
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
4781
4777
  "as",
4782
4778
  // for exports
@@ -4922,9 +4918,9 @@ function Ur() {
4922
4918
  c
4923
4919
  );
4924
4920
  function i(d) {
4925
- const l = d.regex, g = (H, { after: K }) => {
4926
- const Q = "</" + H[0].slice(1);
4927
- return H.input.indexOf(Q, K) !== -1;
4921
+ const l = d.regex, g = (q, { after: K }) => {
4922
+ const Q = "</" + q[0].slice(1);
4923
+ return q.input.indexOf(Q, K) !== -1;
4928
4924
  }, b = n, p = {
4929
4925
  begin: "<>",
4930
4926
  end: "</>"
@@ -4935,8 +4931,8 @@ function Ur() {
4935
4931
  * @param {RegExpMatchArray} match
4936
4932
  * @param {CallbackResponse} response
4937
4933
  */
4938
- isTrulyOpeningTag: (H, K) => {
4939
- const Q = H[0].length + H.index, j = H.input[Q];
4934
+ isTrulyOpeningTag: (q, K) => {
4935
+ const Q = q[0].length + q.index, j = q.input[Q];
4940
4936
  if (
4941
4937
  // HTML should not include another raw `<` inside a tag
4942
4938
  // nested type?
@@ -4948,14 +4944,14 @@ function Ur() {
4948
4944
  K.ignoreMatch();
4949
4945
  return;
4950
4946
  }
4951
- j === ">" && (g(H, { after: Q }) || K.ignoreMatch());
4947
+ j === ">" && (g(q, { after: Q }) || K.ignoreMatch());
4952
4948
  let ee;
4953
- const ae = H.input.substring(Q);
4954
- if (ee = ae.match(/^\s*=/)) {
4949
+ const ie = q.input.substring(Q);
4950
+ if (ee = ie.match(/^\s*=/)) {
4955
4951
  K.ignoreMatch();
4956
4952
  return;
4957
4953
  }
4958
- if ((ee = ae.match(/^\s+extends\s+/)) && ee.index === 0) {
4954
+ if ((ee = ie.match(/^\s+extends\s+/)) && ee.index === 0) {
4959
4955
  K.ignoreMatch();
4960
4956
  return;
4961
4957
  }
@@ -4966,12 +4962,12 @@ function Ur() {
4966
4962
  literal: t,
4967
4963
  built_in: r,
4968
4964
  "variable.language": a
4969
- }, h = "[0-9](_?[0-9])*", S = `\\.(${h})`, I = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
4965
+ }, h = "[0-9](_?[0-9])*", O = `\\.(${h})`, C = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
4970
4966
  className: "number",
4971
4967
  variants: [
4972
4968
  // DecimalLiteral
4973
- { begin: `(\\b(${I})((${S})|\\.)?|(${S}))[eE][+-]?(${h})\\b` },
4974
- { begin: `\\b(${I})\\b((${S})\\b|\\.)?|(${S})\\b` },
4969
+ { begin: `(\\b(${C})((${O})|\\.)?|(${O}))[eE][+-]?(${h})\\b` },
4970
+ { begin: `\\b(${C})\\b((${O})\\b|\\.)?|(${O})\\b` },
4975
4971
  // DecimalBigIntegerLiteral
4976
4972
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
4977
4973
  // NonDecimalIntegerLiteral
@@ -4983,14 +4979,14 @@ function Ur() {
4983
4979
  { begin: "\\b0[0-7]+n?\\b" }
4984
4980
  ],
4985
4981
  relevance: 0
4986
- }, M = {
4982
+ }, A = {
4987
4983
  className: "subst",
4988
4984
  begin: "\\$\\{",
4989
4985
  end: "\\}",
4990
4986
  keywords: N,
4991
4987
  contains: []
4992
4988
  // defined later
4993
- }, L = {
4989
+ }, D = {
4994
4990
  begin: "html`",
4995
4991
  end: "",
4996
4992
  starts: {
@@ -4998,11 +4994,11 @@ function Ur() {
4998
4994
  returnEnd: !1,
4999
4995
  contains: [
5000
4996
  d.BACKSLASH_ESCAPE,
5001
- M
4997
+ A
5002
4998
  ],
5003
4999
  subLanguage: "xml"
5004
5000
  }
5005
- }, B = {
5001
+ }, L = {
5006
5002
  begin: "css`",
5007
5003
  end: "",
5008
5004
  starts: {
@@ -5010,7 +5006,7 @@ function Ur() {
5010
5006
  returnEnd: !1,
5011
5007
  contains: [
5012
5008
  d.BACKSLASH_ESCAPE,
5013
- M
5009
+ A
5014
5010
  ],
5015
5011
  subLanguage: "css"
5016
5012
  }
@@ -5022,17 +5018,17 @@ function Ur() {
5022
5018
  returnEnd: !1,
5023
5019
  contains: [
5024
5020
  d.BACKSLASH_ESCAPE,
5025
- M
5021
+ A
5026
5022
  ],
5027
5023
  subLanguage: "graphql"
5028
5024
  }
5029
- }, C = {
5025
+ }, I = {
5030
5026
  className: "string",
5031
5027
  begin: "`",
5032
5028
  end: "`",
5033
5029
  contains: [
5034
5030
  d.BACKSLASH_ESCAPE,
5035
- M
5031
+ A
5036
5032
  ]
5037
5033
  }, F = {
5038
5034
  className: "comment",
@@ -5082,18 +5078,18 @@ function Ur() {
5082
5078
  }, J = [
5083
5079
  d.APOS_STRING_MODE,
5084
5080
  d.QUOTE_STRING_MODE,
5081
+ D,
5085
5082
  L,
5086
- B,
5087
5083
  v,
5088
- C,
5084
+ I,
5089
5085
  // Skip numbers when they are part of a variable name
5090
5086
  { match: /\$\d+/ },
5091
- A
5087
+ M
5092
5088
  // This is intentional:
5093
5089
  // See https://github.com/highlightjs/highlight.js/issues/3288
5094
5090
  // hljs.REGEXP_MODE
5095
5091
  ];
5096
- M.contains = J.concat({
5092
+ A.contains = J.concat({
5097
5093
  // we need to pair up {} inside our subst to prevent
5098
5094
  // it from ending too early by matching another }
5099
5095
  begin: /\{/,
@@ -5103,15 +5099,15 @@ function Ur() {
5103
5099
  "self"
5104
5100
  ].concat(J)
5105
5101
  });
5106
- const re = [].concat(F, M.contains), W = re.concat([
5102
+ const ae = [].concat(F, A.contains), W = ae.concat([
5107
5103
  // eat recursive parens in sub expressions
5108
5104
  {
5109
5105
  begin: /\(/,
5110
5106
  end: /\)/,
5111
5107
  keywords: N,
5112
- contains: ["self"].concat(re)
5108
+ contains: ["self"].concat(ae)
5113
5109
  }
5114
- ]), U = {
5110
+ ]), B = {
5115
5111
  className: "params",
5116
5112
  begin: /\(/,
5117
5113
  end: /\)/,
@@ -5119,7 +5115,7 @@ function Ur() {
5119
5115
  excludeEnd: !0,
5120
5116
  keywords: N,
5121
5117
  contains: W
5122
- }, X = {
5118
+ }, V = {
5123
5119
  variants: [
5124
5120
  // class Car extends vehicle
5125
5121
  {
@@ -5204,20 +5200,20 @@ function Ur() {
5204
5200
  3: "title.function"
5205
5201
  },
5206
5202
  label: "func.def",
5207
- contains: [U],
5203
+ contains: [B],
5208
5204
  illegal: /%/
5209
- }, x = {
5205
+ }, k = {
5210
5206
  relevance: 0,
5211
5207
  match: /\b[A-Z][A-Z_0-9]+\b/,
5212
5208
  className: "variable.constant"
5213
5209
  };
5214
- function P(H) {
5215
- return l.concat("(?!", H.join("|"), ")");
5210
+ function U(q) {
5211
+ return l.concat("(?!", q.join("|"), ")");
5216
5212
  }
5217
5213
  const Y = {
5218
5214
  match: l.concat(
5219
5215
  /\b/,
5220
- P([
5216
+ U([
5221
5217
  ...o,
5222
5218
  "super",
5223
5219
  "import"
@@ -5252,7 +5248,7 @@ function Ur() {
5252
5248
  // eat to avoid empty params
5253
5249
  begin: /\(\)/
5254
5250
  },
5255
- U
5251
+ B
5256
5252
  ]
5257
5253
  }, z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", Z = {
5258
5254
  match: [
@@ -5271,7 +5267,7 @@ function Ur() {
5271
5267
  3: "title.function"
5272
5268
  },
5273
5269
  contains: [
5274
- U
5270
+ B
5275
5271
  ]
5276
5272
  };
5277
5273
  return {
@@ -5290,14 +5286,14 @@ function Ur() {
5290
5286
  f,
5291
5287
  d.APOS_STRING_MODE,
5292
5288
  d.QUOTE_STRING_MODE,
5289
+ D,
5293
5290
  L,
5294
- B,
5295
5291
  v,
5296
- C,
5292
+ I,
5297
5293
  F,
5298
5294
  // Skip numbers when they are part of a variable name
5299
5295
  { match: /\$\d+/ },
5300
- A,
5296
+ M,
5301
5297
  u,
5302
5298
  {
5303
5299
  className: "attr",
@@ -5395,7 +5391,7 @@ function Ur() {
5395
5391
  returnBegin: !0,
5396
5392
  label: "func.def",
5397
5393
  contains: [
5398
- U,
5394
+ B,
5399
5395
  d.inherit(d.TITLE_MODE, { begin: b, className: "title.function" })
5400
5396
  ]
5401
5397
  },
@@ -5415,11 +5411,11 @@ function Ur() {
5415
5411
  {
5416
5412
  match: [/\bconstructor(?=\s*\()/],
5417
5413
  className: { 1: "title.function" },
5418
- contains: [U]
5414
+ contains: [B]
5419
5415
  },
5420
5416
  Y,
5421
- x,
5422
- X,
5417
+ k,
5418
+ V,
5423
5419
  te,
5424
5420
  {
5425
5421
  match: /\$[(.]/
@@ -5428,13 +5424,13 @@ function Ur() {
5428
5424
  ]
5429
5425
  };
5430
5426
  }
5431
- return We = i, We;
5427
+ return Xe = i, Xe;
5432
5428
  }
5433
- var Ye, Kn;
5434
- function Pr() {
5435
- if (Kn)
5436
- return Ye;
5437
- Kn = 1;
5429
+ var Ve, Gn;
5430
+ function Kr() {
5431
+ if (Gn)
5432
+ return Ve;
5433
+ Gn = 1;
5438
5434
  function n(e) {
5439
5435
  const t = {
5440
5436
  className: "attr",
@@ -5469,13 +5465,13 @@ function Pr() {
5469
5465
  illegal: "\\S"
5470
5466
  };
5471
5467
  }
5472
- return Ye = n, Ye;
5468
+ return Ve = n, Ve;
5473
5469
  }
5474
- var Ze, qn;
5475
- function Fr() {
5476
- if (qn)
5477
- return Ze;
5478
- qn = 1;
5470
+ var Qe, Hn;
5471
+ function qr() {
5472
+ if (Hn)
5473
+ return Qe;
5474
+ Hn = 1;
5479
5475
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
5480
5476
  className: "number",
5481
5477
  variants: [
@@ -5715,13 +5711,13 @@ function Fr() {
5715
5711
  ]
5716
5712
  };
5717
5713
  }
5718
- return Ze = c, Ze;
5714
+ return Qe = c, Qe;
5719
5715
  }
5720
- var Ve, Hn;
5721
- function $r() {
5722
- if (Hn)
5723
- return Ve;
5724
- Hn = 1;
5716
+ var Je, Wn;
5717
+ function Gr() {
5718
+ if (Wn)
5719
+ return Je;
5720
+ Wn = 1;
5725
5721
  const n = (i) => ({
5726
5722
  IMPORTANT: {
5727
5723
  scope: "meta",
@@ -5753,7 +5749,7 @@ function $r() {
5753
5749
  },
5754
5750
  CSS_VARIABLE: {
5755
5751
  className: "attr",
5756
- begin: /--[A-Za-z][A-Za-z0-9_-]*/
5752
+ begin: /--[A-Za-z_][A-Za-z0-9_-]*/
5757
5753
  }
5758
5754
  }), e = [
5759
5755
  "a",
@@ -6322,22 +6318,22 @@ function $r() {
6322
6318
  className: "string",
6323
6319
  begin: "~?" + F + ".*?" + F
6324
6320
  };
6325
- }, h = function(F, J, re) {
6321
+ }, h = function(F, J, ae) {
6326
6322
  return {
6327
6323
  className: F,
6328
6324
  begin: J,
6329
- relevance: re
6325
+ relevance: ae
6330
6326
  };
6331
- }, S = {
6327
+ }, O = {
6332
6328
  $pattern: /[a-z-]+/,
6333
6329
  keyword: g,
6334
6330
  attribute: t.join(" ")
6335
- }, I = {
6331
+ }, C = {
6336
6332
  // used only to properly balance nested parens inside mixin call, def. arg list
6337
6333
  begin: "\\(",
6338
6334
  end: "\\)",
6339
6335
  contains: E,
6340
- keywords: S,
6336
+ keywords: O,
6341
6337
  relevance: 0
6342
6338
  };
6343
6339
  E.push(
@@ -6356,7 +6352,7 @@ function $r() {
6356
6352
  }
6357
6353
  },
6358
6354
  d.HEXCOLOR,
6359
- I,
6355
+ C,
6360
6356
  h("variable", "@@?" + b, 10),
6361
6357
  h("variable", "@\\{" + b + "\\}"),
6362
6358
  h("built_in", "~?`[^`]*?`"),
@@ -6373,16 +6369,16 @@ function $r() {
6373
6369
  { beginKeywords: "and not" },
6374
6370
  d.FUNCTION_DISPATCH
6375
6371
  );
6376
- const A = E.concat({
6372
+ const M = E.concat({
6377
6373
  begin: /\{/,
6378
6374
  end: /\}/,
6379
6375
  contains: m
6380
- }), M = {
6376
+ }), A = {
6381
6377
  beginKeywords: "when",
6382
6378
  endsWithParent: !0,
6383
6379
  contains: [{ beginKeywords: "and not" }].concat(E)
6384
6380
  // using this form to override VALUE’s 'function' match
6385
- }, L = {
6381
+ }, D = {
6386
6382
  begin: p + "\\s*:",
6387
6383
  returnBegin: !0,
6388
6384
  end: /[;}]/,
@@ -6402,12 +6398,12 @@ function $r() {
6402
6398
  }
6403
6399
  }
6404
6400
  ]
6405
- }, B = {
6401
+ }, L = {
6406
6402
  className: "keyword",
6407
6403
  begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
6408
6404
  starts: {
6409
6405
  end: "[;{}]",
6410
- keywords: S,
6406
+ keywords: O,
6411
6407
  returnEnd: !0,
6412
6408
  contains: E,
6413
6409
  relevance: 0
@@ -6428,9 +6424,9 @@ function $r() {
6428
6424
  starts: {
6429
6425
  end: "[;}]",
6430
6426
  returnEnd: !0,
6431
- contains: A
6427
+ contains: M
6432
6428
  }
6433
- }, C = {
6429
+ }, I = {
6434
6430
  // first parse unambiguous selectors (i.e. those not starting with tag)
6435
6431
  // then fall into the scary lookahead-discriminator variant.
6436
6432
  // this mode also handles mixin definitions and calls
@@ -6452,7 +6448,7 @@ function $r() {
6452
6448
  contains: [
6453
6449
  i.C_LINE_COMMENT_MODE,
6454
6450
  i.C_BLOCK_COMMENT_MODE,
6455
- M,
6451
+ A,
6456
6452
  h("keyword", "all\\b"),
6457
6453
  h("variable", "@\\{" + b + "\\}"),
6458
6454
  // otherwise it’s identified as tag
@@ -6478,27 +6474,27 @@ function $r() {
6478
6474
  begin: /\(/,
6479
6475
  end: /\)/,
6480
6476
  relevance: 0,
6481
- contains: A
6477
+ contains: M
6482
6478
  },
6483
6479
  // argument list of parametric mixins
6484
6480
  { begin: "!important" },
6485
6481
  // eat !important after mixin call or it will be colored as tag
6486
6482
  d.FUNCTION_DISPATCH
6487
6483
  ]
6488
- }, G = {
6484
+ }, H = {
6489
6485
  begin: b + `:(:)?(${l.join("|")})`,
6490
6486
  returnBegin: !0,
6491
- contains: [C]
6487
+ contains: [I]
6492
6488
  };
6493
6489
  return m.push(
6494
6490
  i.C_LINE_COMMENT_MODE,
6495
6491
  i.C_BLOCK_COMMENT_MODE,
6496
- B,
6497
- v,
6498
- G,
6499
6492
  L,
6500
- C,
6501
- M,
6493
+ v,
6494
+ H,
6495
+ D,
6496
+ I,
6497
+ A,
6502
6498
  d.FUNCTION_DISPATCH
6503
6499
  ), {
6504
6500
  name: "Less",
@@ -6507,13 +6503,13 @@ function $r() {
6507
6503
  contains: m
6508
6504
  };
6509
6505
  }
6510
- return Ve = r, Ve;
6506
+ return Je = r, Je;
6511
6507
  }
6512
- var Xe, Gn;
6513
- function zr() {
6514
- if (Gn)
6515
- return Xe;
6516
- Gn = 1;
6508
+ var je, Yn;
6509
+ function Hr() {
6510
+ if (Yn)
6511
+ return je;
6512
+ Yn = 1;
6517
6513
  function n(e) {
6518
6514
  const t = "\\[=*\\[", s = "\\]=*\\]", c = {
6519
6515
  begin: t,
@@ -6569,13 +6565,13 @@ function zr() {
6569
6565
  ])
6570
6566
  };
6571
6567
  }
6572
- return Xe = n, Xe;
6568
+ return je = n, je;
6573
6569
  }
6574
- var Qe, Wn;
6575
- function Kr() {
6576
- if (Wn)
6577
- return Qe;
6578
- Wn = 1;
6570
+ var en, Zn;
6571
+ function Wr() {
6572
+ if (Zn)
6573
+ return en;
6574
+ Zn = 1;
6579
6575
  function n(e) {
6580
6576
  const t = {
6581
6577
  className: "variable",
@@ -6636,13 +6632,13 @@ function Kr() {
6636
6632
  ]
6637
6633
  };
6638
6634
  }
6639
- return Qe = n, Qe;
6635
+ return en = n, en;
6640
6636
  }
6641
- var Je, Yn;
6642
- function qr() {
6643
- if (Yn)
6644
- return Je;
6645
- Yn = 1;
6637
+ var nn, Xn;
6638
+ function Yr() {
6639
+ if (Xn)
6640
+ return nn;
6641
+ Xn = 1;
6646
6642
  function n(e) {
6647
6643
  const t = e.regex, s = [
6648
6644
  "abs",
@@ -7077,13 +7073,13 @@ function qr() {
7077
7073
  contains: p
7078
7074
  };
7079
7075
  }
7080
- return Je = n, Je;
7076
+ return nn = n, nn;
7081
7077
  }
7082
- var je, Zn;
7083
- function Hr() {
7084
- if (Zn)
7085
- return je;
7086
- Zn = 1;
7078
+ var tn, Vn;
7079
+ function Zr() {
7080
+ if (Vn)
7081
+ return tn;
7082
+ Vn = 1;
7087
7083
  function n(e) {
7088
7084
  const t = {
7089
7085
  className: "built_in",
@@ -7318,13 +7314,13 @@ function Hr() {
7318
7314
  ]
7319
7315
  };
7320
7316
  }
7321
- return je = n, je;
7317
+ return tn = n, tn;
7322
7318
  }
7323
- var en, Vn;
7324
- function Gr() {
7325
- if (Vn)
7326
- return en;
7327
- Vn = 1;
7319
+ var rn, Qn;
7320
+ function Xr() {
7321
+ if (Qn)
7322
+ return rn;
7323
+ Qn = 1;
7328
7324
  function n(e) {
7329
7325
  const t = e.regex, s = /(?![A-Za-z0-9])(?![$])/, c = t.concat(
7330
7326
  /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
@@ -7362,11 +7358,11 @@ function Gr() {
7362
7358
  begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
7363
7359
  end: /[ \t]*(\w+)\b/,
7364
7360
  contains: e.QUOTE_STRING_MODE.contains.concat(i),
7365
- "on:begin": (W, U) => {
7366
- U.data._beginMatch = W[1] || W[2];
7361
+ "on:begin": (W, B) => {
7362
+ B.data._beginMatch = W[1] || W[2];
7367
7363
  },
7368
- "on:end": (W, U) => {
7369
- U.data._beginMatch !== W[1] && U.ignoreMatch();
7364
+ "on:end": (W, B) => {
7365
+ B.data._beginMatch !== W[1] && B.ignoreMatch();
7370
7366
  }
7371
7367
  }, b = e.END_SAME_AS_BEGIN({
7372
7368
  begin: /<<<[ \t]*'(\w+)'\n/,
@@ -7497,7 +7493,7 @@ function Gr() {
7497
7493
  "while",
7498
7494
  "xor",
7499
7495
  "yield"
7500
- ], S = [
7496
+ ], O = [
7501
7497
  // Standard PHP library:
7502
7498
  // <https://www.php.net/manual/en/book.spl.php>
7503
7499
  "Error|0",
@@ -7592,22 +7588,22 @@ function Gr() {
7592
7588
  "self",
7593
7589
  "static",
7594
7590
  "stdClass"
7595
- ], A = {
7591
+ ], M = {
7596
7592
  keyword: h,
7597
7593
  literal: ((W) => {
7598
- const U = [];
7599
- return W.forEach((X) => {
7600
- U.push(X), X.toLowerCase() === X ? U.push(X.toUpperCase()) : U.push(X.toLowerCase());
7601
- }), U;
7594
+ const B = [];
7595
+ return W.forEach((V) => {
7596
+ B.push(V), V.toLowerCase() === V ? B.push(V.toUpperCase()) : B.push(V.toLowerCase());
7597
+ }), B;
7602
7598
  })(N),
7603
- built_in: S
7604
- }, M = (W) => W.map((U) => U.replace(/\|\d+$/, "")), L = { variants: [
7599
+ built_in: O
7600
+ }, A = (W) => W.map((B) => B.replace(/\|\d+$/, "")), D = { variants: [
7605
7601
  {
7606
7602
  match: [
7607
7603
  /new/,
7608
7604
  t.concat(p, "+"),
7609
7605
  // to prevent built ins from being confused as the class constructor call
7610
- t.concat("(?!", M(S).join("\\b|"), "\\b)"),
7606
+ t.concat("(?!", A(O).join("\\b|"), "\\b)"),
7611
7607
  o
7612
7608
  ],
7613
7609
  scope: {
@@ -7615,14 +7611,14 @@ function Gr() {
7615
7611
  4: "title.class"
7616
7612
  }
7617
7613
  }
7618
- ] }, B = t.concat(c, "\\b(?!\\()"), v = { variants: [
7614
+ ] }, L = t.concat(c, "\\b(?!\\()"), v = { variants: [
7619
7615
  {
7620
7616
  match: [
7621
7617
  t.concat(
7622
7618
  /::/,
7623
7619
  t.lookahead(/(?!class\b)/)
7624
7620
  ),
7625
- B
7621
+ L
7626
7622
  ],
7627
7623
  scope: { 2: "variable.constant" }
7628
7624
  },
@@ -7640,7 +7636,7 @@ function Gr() {
7640
7636
  /::/,
7641
7637
  t.lookahead(/(?!class\b)/)
7642
7638
  ),
7643
- B
7639
+ L
7644
7640
  ],
7645
7641
  scope: {
7646
7642
  1: "title.class",
@@ -7668,45 +7664,45 @@ function Gr() {
7668
7664
  3: "variable.language"
7669
7665
  }
7670
7666
  }
7671
- ] }, C = {
7667
+ ] }, I = {
7672
7668
  scope: "attr",
7673
7669
  match: t.concat(c, t.lookahead(":"), t.lookahead(/(?!::)/))
7674
- }, G = {
7670
+ }, H = {
7675
7671
  relevance: 0,
7676
7672
  begin: /\(/,
7677
7673
  end: /\)/,
7678
- keywords: A,
7674
+ keywords: M,
7679
7675
  contains: [
7680
- C,
7676
+ I,
7681
7677
  a,
7682
7678
  v,
7683
7679
  e.C_BLOCK_COMMENT_MODE,
7684
7680
  m,
7685
7681
  E,
7686
- L
7682
+ D
7687
7683
  ]
7688
7684
  }, F = {
7689
7685
  relevance: 0,
7690
7686
  match: [
7691
7687
  /\b/,
7692
7688
  // to prevent keywords from being confused as the function title
7693
- t.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(S).join("\\b|"), "\\b)"),
7689
+ t.concat("(?!fn\\b|function\\b|", A(h).join("\\b|"), "|", A(O).join("\\b|"), "\\b)"),
7694
7690
  c,
7695
7691
  t.concat(p, "*"),
7696
7692
  t.lookahead(/(?=\()/)
7697
7693
  ],
7698
7694
  scope: { 3: "title.function.invoke" },
7699
- contains: [G]
7695
+ contains: [H]
7700
7696
  };
7701
- G.contains.push(F);
7697
+ H.contains.push(F);
7702
7698
  const J = [
7703
- C,
7699
+ I,
7704
7700
  v,
7705
7701
  e.C_BLOCK_COMMENT_MODE,
7706
7702
  m,
7707
7703
  E,
7708
- L
7709
- ], re = {
7704
+ D
7705
+ ], ae = {
7710
7706
  begin: t.concat(/#\[\s*/, o),
7711
7707
  beginScope: "meta",
7712
7708
  end: /]/,
@@ -7743,9 +7739,9 @@ function Gr() {
7743
7739
  };
7744
7740
  return {
7745
7741
  case_insensitive: !1,
7746
- keywords: A,
7742
+ keywords: M,
7747
7743
  contains: [
7748
- re,
7744
+ ae,
7749
7745
  e.HASH_COMMENT_MODE,
7750
7746
  e.COMMENT("//", "$"),
7751
7747
  e.COMMENT(
@@ -7792,7 +7788,7 @@ function Gr() {
7792
7788
  3: "variable.constant"
7793
7789
  }
7794
7790
  },
7795
- L,
7791
+ D,
7796
7792
  {
7797
7793
  scope: "function",
7798
7794
  relevance: 0,
@@ -7814,7 +7810,7 @@ function Gr() {
7814
7810
  end: "\\)",
7815
7811
  excludeBegin: !0,
7816
7812
  excludeEnd: !0,
7817
- keywords: A,
7813
+ keywords: M,
7818
7814
  contains: [
7819
7815
  "self",
7820
7816
  a,
@@ -7875,13 +7871,13 @@ function Gr() {
7875
7871
  ]
7876
7872
  };
7877
7873
  }
7878
- return en = n, en;
7874
+ return rn = n, rn;
7879
7875
  }
7880
- var nn, Xn;
7881
- function Wr() {
7882
- if (Xn)
7883
- return nn;
7884
- Xn = 1;
7876
+ var an, Jn;
7877
+ function Vr() {
7878
+ if (Jn)
7879
+ return an;
7880
+ Jn = 1;
7885
7881
  function n(e) {
7886
7882
  return {
7887
7883
  name: "PHP template",
@@ -7926,13 +7922,13 @@ function Wr() {
7926
7922
  ]
7927
7923
  };
7928
7924
  }
7929
- return nn = n, nn;
7925
+ return an = n, an;
7930
7926
  }
7931
- var tn, Qn;
7932
- function Yr() {
7933
- if (Qn)
7934
- return tn;
7935
- Qn = 1;
7927
+ var sn, jn;
7928
+ function Qr() {
7929
+ if (jn)
7930
+ return sn;
7931
+ jn = 1;
7936
7932
  function n(e) {
7937
7933
  return {
7938
7934
  name: "Plain text",
@@ -7943,13 +7939,13 @@ function Yr() {
7943
7939
  disableAutodetect: !0
7944
7940
  };
7945
7941
  }
7946
- return tn = n, tn;
7942
+ return sn = n, sn;
7947
7943
  }
7948
- var rn, Jn;
7949
- function Zr() {
7950
- if (Jn)
7951
- return rn;
7952
- Jn = 1;
7944
+ var on, et;
7945
+ function Jr() {
7946
+ if (et)
7947
+ return on;
7948
+ et = 1;
7953
7949
  function n(e) {
7954
7950
  const t = e.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, c = [
7955
7951
  "and",
@@ -8237,7 +8233,7 @@ function Zr() {
8237
8233
  endsWithParent: !0
8238
8234
  }
8239
8235
  ]
8240
- }, S = {
8236
+ }, O = {
8241
8237
  className: "params",
8242
8238
  variants: [
8243
8239
  // Exclude params in functions without params
@@ -8302,7 +8298,7 @@ function Zr() {
8302
8298
  1: "keyword",
8303
8299
  3: "title.function"
8304
8300
  },
8305
- contains: [S]
8301
+ contains: [O]
8306
8302
  },
8307
8303
  {
8308
8304
  variants: [
@@ -8337,20 +8333,20 @@ function Zr() {
8337
8333
  end: /(?=#)|$/,
8338
8334
  contains: [
8339
8335
  N,
8340
- S,
8336
+ O,
8341
8337
  b
8342
8338
  ]
8343
8339
  }
8344
8340
  ]
8345
8341
  };
8346
8342
  }
8347
- return rn = n, rn;
8343
+ return on = n, on;
8348
8344
  }
8349
- var an, jn;
8350
- function Vr() {
8351
- if (jn)
8352
- return an;
8353
- jn = 1;
8345
+ var cn, nt;
8346
+ function jr() {
8347
+ if (nt)
8348
+ return cn;
8349
+ nt = 1;
8354
8350
  function n(e) {
8355
8351
  return {
8356
8352
  aliases: ["pycon"],
@@ -8374,13 +8370,13 @@ function Vr() {
8374
8370
  ]
8375
8371
  };
8376
8372
  }
8377
- return an = n, an;
8373
+ return cn = n, cn;
8378
8374
  }
8379
- var sn, et;
8380
- function Xr() {
8381
- if (et)
8382
- return sn;
8383
- et = 1;
8375
+ var ln, tt;
8376
+ function ea() {
8377
+ if (tt)
8378
+ return ln;
8379
+ tt = 1;
8384
8380
  function n(e) {
8385
8381
  const t = e.regex, s = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, c = t.either(
8386
8382
  // Special case: only hexadecimal binary powers can contain fractions
@@ -8585,20 +8581,20 @@ function Xr() {
8585
8581
  ]
8586
8582
  };
8587
8583
  }
8588
- return sn = n, sn;
8584
+ return ln = n, ln;
8589
8585
  }
8590
- var on, nt;
8591
- function Qr() {
8592
- if (nt)
8593
- return on;
8594
- nt = 1;
8586
+ var dn, rt;
8587
+ function na() {
8588
+ if (rt)
8589
+ return dn;
8590
+ rt = 1;
8595
8591
  function n(e) {
8596
8592
  const t = e.regex, s = {
8597
8593
  className: "title.function.invoke",
8598
8594
  relevance: 0,
8599
8595
  begin: t.concat(
8600
8596
  /\b/,
8601
- /(?!let\b)/,
8597
+ /(?!let|for|while|if|else|match\b)/,
8602
8598
  e.IDENT_RE,
8603
8599
  t.lookahead(/\s*\(/)
8604
8600
  )
@@ -8704,6 +8700,7 @@ function Qr() {
8704
8700
  "debug_assert!",
8705
8701
  "debug_assert_eq!",
8706
8702
  "env!",
8703
+ "eprintln!",
8707
8704
  "panic!",
8708
8705
  "file!",
8709
8706
  "format!",
@@ -8879,13 +8876,13 @@ function Qr() {
8879
8876
  ]
8880
8877
  };
8881
8878
  }
8882
- return on = n, on;
8879
+ return dn = n, dn;
8883
8880
  }
8884
- var cn, tt;
8885
- function Jr() {
8886
- if (tt)
8887
- return cn;
8888
- tt = 1;
8881
+ var un, at;
8882
+ function ta() {
8883
+ if (at)
8884
+ return un;
8885
+ at = 1;
8889
8886
  const n = (r) => ({
8890
8887
  IMPORTANT: {
8891
8888
  scope: "meta",
@@ -8917,7 +8914,7 @@ function Jr() {
8917
8914
  },
8918
8915
  CSS_VARIABLE: {
8919
8916
  className: "attr",
8920
- begin: /--[A-Za-z][A-Za-z0-9_-]*/
8917
+ begin: /--[A-Za-z_][A-Za-z0-9_-]*/
8921
8918
  }
8922
8919
  }), e = [
8923
8920
  "a",
@@ -9587,13 +9584,13 @@ function Jr() {
9587
9584
  ]
9588
9585
  };
9589
9586
  }
9590
- return cn = a, cn;
9587
+ return un = a, un;
9591
9588
  }
9592
- var ln, rt;
9593
- function jr() {
9594
- if (rt)
9595
- return ln;
9596
- rt = 1;
9589
+ var gn, it;
9590
+ function ra() {
9591
+ if (it)
9592
+ return gn;
9593
+ it = 1;
9597
9594
  function n(e) {
9598
9595
  return {
9599
9596
  name: "Shell Session",
@@ -9616,13 +9613,13 @@ function jr() {
9616
9613
  ]
9617
9614
  };
9618
9615
  }
9619
- return ln = n, ln;
9616
+ return gn = n, gn;
9620
9617
  }
9621
- var dn, at;
9622
- function ea() {
9623
- if (at)
9624
- return dn;
9625
- at = 1;
9618
+ var bn, st;
9619
+ function aa() {
9620
+ if (st)
9621
+ return bn;
9622
+ st = 1;
9626
9623
  function n(e) {
9627
9624
  const t = e.regex, s = e.COMMENT("--", "$"), c = {
9628
9625
  className: "string",
@@ -10175,24 +10172,24 @@ function ea() {
10175
10172
  ], m = g, E = [
10176
10173
  ...l,
10177
10174
  ...d
10178
- ].filter((A) => !g.includes(A)), N = {
10175
+ ].filter((M) => !g.includes(M)), N = {
10179
10176
  className: "variable",
10180
10177
  begin: /@[a-z0-9][a-z0-9_]*/
10181
10178
  }, h = {
10182
10179
  className: "operator",
10183
10180
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
10184
10181
  relevance: 0
10185
- }, S = {
10182
+ }, O = {
10186
10183
  begin: t.concat(/\b/, t.either(...m), /\s*\(/),
10187
10184
  relevance: 0,
10188
10185
  keywords: { built_in: m }
10189
10186
  };
10190
- function I(A, {
10191
- exceptions: M,
10192
- when: L
10187
+ function C(M, {
10188
+ exceptions: A,
10189
+ when: D
10193
10190
  } = {}) {
10194
- const B = L;
10195
- return M = M || [], A.map((v) => v.match(/\|\d+$/) || M.includes(v) ? v : B(v) ? `${v}|0` : v);
10191
+ const L = D;
10192
+ return A = A || [], M.map((v) => v.match(/\|\d+$/) || A.includes(v) ? v : L(v) ? `${v}|0` : v);
10196
10193
  }
10197
10194
  return {
10198
10195
  name: "SQL",
@@ -10201,7 +10198,7 @@ function ea() {
10201
10198
  illegal: /[{}]|<\//,
10202
10199
  keywords: {
10203
10200
  $pattern: /\b[\w\.]+/,
10204
- keyword: I(E, { when: (A) => A.length < 3 }),
10201
+ keyword: C(E, { when: (M) => M.length < 3 }),
10205
10202
  literal: a,
10206
10203
  type: i,
10207
10204
  built_in: b
@@ -10221,7 +10218,7 @@ function ea() {
10221
10218
  className: "type",
10222
10219
  begin: t.either(...r)
10223
10220
  },
10224
- S,
10221
+ O,
10225
10222
  N,
10226
10223
  c,
10227
10224
  o,
@@ -10232,13 +10229,13 @@ function ea() {
10232
10229
  ]
10233
10230
  };
10234
10231
  }
10235
- return dn = n, dn;
10232
+ return bn = n, bn;
10236
10233
  }
10237
- var un, it;
10238
- function na() {
10239
- if (it)
10240
- return un;
10241
- it = 1;
10234
+ var pn, ot;
10235
+ function ia() {
10236
+ if (ot)
10237
+ return pn;
10238
+ ot = 1;
10242
10239
  function n(v) {
10243
10240
  return v ? typeof v == "string" ? v : v.source : null;
10244
10241
  }
@@ -10246,11 +10243,11 @@ function na() {
10246
10243
  return t("(?=", v, ")");
10247
10244
  }
10248
10245
  function t(...v) {
10249
- return v.map((G) => n(G)).join("");
10246
+ return v.map((H) => n(H)).join("");
10250
10247
  }
10251
10248
  function s(v) {
10252
- const C = v[v.length - 1];
10253
- return typeof C == "object" && C.constructor === Object ? (v.splice(v.length - 1, 1), C) : {};
10249
+ const I = v[v.length - 1];
10250
+ return typeof I == "object" && I.constructor === Object ? (v.splice(v.length - 1, 1), I) : {};
10254
10251
  }
10255
10252
  function c(...v) {
10256
10253
  return "(" + (s(v).capture ? "" : "?:") + v.map((F) => n(F)).join("|") + ")";
@@ -10286,13 +10283,21 @@ function na() {
10286
10283
  // operator
10287
10284
  "as",
10288
10285
  // operator
10286
+ "borrowing",
10287
+ // contextual
10289
10288
  "break",
10290
10289
  "case",
10291
10290
  "catch",
10292
10291
  "class",
10292
+ "consume",
10293
+ // contextual
10294
+ "consuming",
10295
+ // contextual
10293
10296
  "continue",
10294
10297
  "convenience",
10295
10298
  // contextual
10299
+ "copy",
10300
+ // contextual
10296
10301
  "default",
10297
10302
  "defer",
10298
10303
  "deinit",
@@ -10302,6 +10307,7 @@ function na() {
10302
10307
  "do",
10303
10308
  "dynamic",
10304
10309
  // contextual
10310
+ "each",
10305
10311
  "else",
10306
10312
  "enum",
10307
10313
  "extension",
@@ -10336,6 +10342,7 @@ function na() {
10336
10342
  "lazy",
10337
10343
  // contextual
10338
10344
  "let",
10345
+ "macro",
10339
10346
  "mutating",
10340
10347
  // contextual
10341
10348
  "nonmutating",
@@ -10426,7 +10433,6 @@ function na() {
10426
10433
  "#line",
10427
10434
  "#selector",
10428
10435
  "#sourceLocation",
10429
- "#warn_unqualified_access",
10430
10436
  "#warning"
10431
10437
  ], p = [
10432
10438
  "abs",
@@ -10509,17 +10515,19 @@ function na() {
10509
10515
  // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
10510
10516
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
10511
10517
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
10512
- ), S = c(
10518
+ ), O = c(
10513
10519
  h,
10514
10520
  /\d/,
10515
10521
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
10516
- ), I = t(h, S, "*"), A = t(/[A-Z]/, S, "*"), M = [
10522
+ ), C = t(h, O, "*"), M = t(/[A-Z]/, O, "*"), A = [
10523
+ "attached",
10517
10524
  "autoclosure",
10518
10525
  t(/convention\(/, c("swift", "block", "c"), /\)/),
10519
10526
  "discardableResult",
10520
10527
  "dynamicCallable",
10521
10528
  "dynamicMemberLookup",
10522
10529
  "escaping",
10530
+ "freestanding",
10523
10531
  "frozen",
10524
10532
  "GKInspectable",
10525
10533
  "IBAction",
@@ -10533,17 +10541,20 @@ function na() {
10533
10541
  "NSApplicationMain",
10534
10542
  "NSCopying",
10535
10543
  "NSManaged",
10536
- t(/objc\(/, I, /\)/),
10544
+ t(/objc\(/, C, /\)/),
10537
10545
  "objc",
10538
10546
  "objcMembers",
10539
10547
  "propertyWrapper",
10540
10548
  "requires_stored_property_inits",
10541
10549
  "resultBuilder",
10550
+ "Sendable",
10542
10551
  "testable",
10543
10552
  "UIApplicationMain",
10553
+ "unchecked",
10544
10554
  "unknown",
10545
- "usableFromInline"
10546
- ], L = [
10555
+ "usableFromInline",
10556
+ "warn_unqualified_access"
10557
+ ], D = [
10547
10558
  "iOS",
10548
10559
  "iOSApplicationExtension",
10549
10560
  "macOS",
@@ -10556,31 +10567,31 @@ function na() {
10556
10567
  "tvOSApplicationExtension",
10557
10568
  "swift"
10558
10569
  ];
10559
- function B(v) {
10560
- const C = {
10570
+ function L(v) {
10571
+ const I = {
10561
10572
  match: /\s+/,
10562
10573
  relevance: 0
10563
- }, G = v.COMMENT(
10574
+ }, H = v.COMMENT(
10564
10575
  "/\\*",
10565
10576
  "\\*/",
10566
10577
  { contains: ["self"] }
10567
10578
  ), F = [
10568
10579
  v.C_LINE_COMMENT_MODE,
10569
- G
10580
+ H
10570
10581
  ], J = {
10571
10582
  match: [
10572
10583
  /\./,
10573
10584
  c(...a, ...r)
10574
10585
  ],
10575
10586
  className: { 2: "keyword" }
10576
- }, re = {
10587
+ }, ae = {
10577
10588
  // Consume .keyword to prevent highlighting properties and methods as keywords.
10578
10589
  match: t(/\./, c(...d)),
10579
10590
  relevance: 0
10580
- }, W = d.filter(($) => typeof $ == "string").concat(["_|0"]), U = d.filter(($) => typeof $ != "string").concat(i).map(o), X = { variants: [
10591
+ }, W = d.filter(($) => typeof $ == "string").concat(["_|0"]), B = d.filter(($) => typeof $ != "string").concat(i).map(o), V = { variants: [
10581
10592
  {
10582
10593
  className: "keyword",
10583
- match: c(...U, ...r)
10594
+ match: c(...B, ...r)
10584
10595
  }
10585
10596
  ] }, u = {
10586
10597
  $pattern: c(
@@ -10593,18 +10604,18 @@ function na() {
10593
10604
  literal: l
10594
10605
  }, f = [
10595
10606
  J,
10596
- re,
10597
- X
10607
+ ae,
10608
+ V
10598
10609
  ], w = {
10599
10610
  // Consume .built_in to prevent highlighting properties and methods.
10600
10611
  match: t(/\./, c(...p)),
10601
10612
  relevance: 0
10602
- }, x = {
10613
+ }, k = {
10603
10614
  className: "built_in",
10604
10615
  match: t(/\b/, c(...p), /(?=\()/)
10605
- }, P = [
10616
+ }, U = [
10606
10617
  w,
10607
- x
10618
+ k
10608
10619
  ], Y = {
10609
10620
  // Prevent -> from being highlighting as an operator.
10610
10621
  match: /->/,
@@ -10624,7 +10635,7 @@ function na() {
10624
10635
  }, te = [
10625
10636
  Y,
10626
10637
  ne
10627
- ], z = "([0-9]_*)+", Z = "([0-9a-fA-F]_*)+", H = {
10638
+ ], z = "([0-9]_*)+", Z = "([0-9a-fA-F]_*)+", q = {
10628
10639
  className: "number",
10629
10640
  relevance: 0,
10630
10641
  variants: [
@@ -10659,73 +10670,107 @@ function na() {
10659
10670
  Q($),
10660
10671
  j($)
10661
10672
  ]
10662
- }), ae = ($ = "") => ({
10673
+ }), ie = ($ = "") => ({
10663
10674
  begin: t($, /"/),
10664
10675
  end: t(/"/, $),
10665
10676
  contains: [
10666
10677
  K($),
10667
10678
  j($)
10668
10679
  ]
10669
- }), se = {
10680
+ }), oe = {
10670
10681
  className: "string",
10671
10682
  variants: [
10672
10683
  ee(),
10673
10684
  ee("#"),
10674
10685
  ee("##"),
10675
10686
  ee("###"),
10676
- ae(),
10677
- ae("#"),
10678
- ae("##"),
10679
- ae("###")
10687
+ ie(),
10688
+ ie("#"),
10689
+ ie("##"),
10690
+ ie("###")
10691
+ ]
10692
+ }, be = [
10693
+ v.BACKSLASH_ESCAPE,
10694
+ {
10695
+ begin: /\[/,
10696
+ end: /\]/,
10697
+ relevance: 0,
10698
+ contains: [v.BACKSLASH_ESCAPE]
10699
+ }
10700
+ ], Oe = {
10701
+ begin: /\/[^\s](?=[^/\n]*\/)/,
10702
+ end: /\//,
10703
+ contains: be
10704
+ }, re = ($) => {
10705
+ const Ae = t($, /\//), ye = t(/\//, $);
10706
+ return {
10707
+ begin: Ae,
10708
+ end: ye,
10709
+ contains: [
10710
+ ...be,
10711
+ {
10712
+ scope: "comment",
10713
+ begin: `#(?!.*${ye})`,
10714
+ end: /$/
10715
+ }
10716
+ ]
10717
+ };
10718
+ }, we = {
10719
+ scope: "regexp",
10720
+ variants: [
10721
+ re("###"),
10722
+ re("##"),
10723
+ re("#"),
10724
+ Oe
10680
10725
  ]
10681
- }, ue = { match: t(/`/, I, /`/) }, we = {
10726
+ }, Ee = { match: t(/`/, C, /`/) }, S = {
10682
10727
  className: "variable",
10683
10728
  match: /\$\d+/
10684
- }, ie = {
10729
+ }, Re = {
10685
10730
  className: "variable",
10686
- match: `\\$${S}+`
10687
- }, Ne = [
10688
- ue,
10689
- we,
10690
- ie
10691
- ], ye = {
10731
+ match: `\\$${O}+`
10732
+ }, G = [
10733
+ Ee,
10734
+ S,
10735
+ Re
10736
+ ], P = {
10692
10737
  match: /(@|#(un)?)available/,
10693
- className: "keyword",
10738
+ scope: "keyword",
10694
10739
  starts: { contains: [
10695
10740
  {
10696
10741
  begin: /\(/,
10697
10742
  end: /\)/,
10698
- keywords: L,
10743
+ keywords: D,
10699
10744
  contains: [
10700
10745
  ...te,
10701
- H,
10702
- se
10746
+ q,
10747
+ oe
10703
10748
  ]
10704
10749
  }
10705
10750
  ] }
10706
- }, T = {
10707
- className: "keyword",
10708
- match: t(/@/, c(...M))
10709
- }, Oe = {
10710
- className: "meta",
10711
- match: t(/@/, I)
10712
- }, q = [
10713
- ye,
10714
- T,
10715
- Oe
10716
- ], k = {
10751
+ }, fe = {
10752
+ scope: "keyword",
10753
+ match: t(/@/, c(...A))
10754
+ }, de = {
10755
+ scope: "meta",
10756
+ match: t(/@/, C)
10757
+ }, ue = [
10758
+ P,
10759
+ fe,
10760
+ de
10761
+ ], ce = {
10717
10762
  match: e(/\b[A-Z]/),
10718
10763
  relevance: 0,
10719
10764
  contains: [
10720
10765
  {
10721
10766
  // Common Apple frameworks, for relevance boost
10722
10767
  className: "type",
10723
- match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, S, "+")
10768
+ match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, O, "+")
10724
10769
  },
10725
10770
  {
10726
10771
  // Type identifier
10727
10772
  className: "type",
10728
- match: A,
10773
+ match: M,
10729
10774
  relevance: 0
10730
10775
  },
10731
10776
  {
@@ -10740,56 +10785,58 @@ function na() {
10740
10785
  },
10741
10786
  {
10742
10787
  // Protocol composition
10743
- match: t(/\s+&\s+/, e(A)),
10788
+ match: t(/\s+&\s+/, e(M)),
10744
10789
  relevance: 0
10745
10790
  }
10746
10791
  ]
10747
- }, _e = {
10792
+ }, _ = {
10748
10793
  begin: /</,
10749
10794
  end: />/,
10750
10795
  keywords: u,
10751
10796
  contains: [
10752
10797
  ...F,
10753
10798
  ...f,
10754
- ...q,
10799
+ ...ue,
10755
10800
  Y,
10756
- k
10801
+ ce
10757
10802
  ]
10758
10803
  };
10759
- k.contains.push(_e);
10760
- const le = {
10761
- match: t(I, /\s*:/),
10804
+ ce.contains.push(_);
10805
+ const y = {
10806
+ match: t(C, /\s*:/),
10762
10807
  keywords: "_|0",
10763
10808
  relevance: 0
10764
- }, me = {
10809
+ }, T = {
10765
10810
  begin: /\(/,
10766
10811
  end: /\)/,
10767
10812
  relevance: 0,
10768
10813
  keywords: u,
10769
10814
  contains: [
10770
10815
  "self",
10771
- le,
10816
+ y,
10772
10817
  ...F,
10818
+ we,
10773
10819
  ...f,
10774
- ...P,
10820
+ ...U,
10775
10821
  ...te,
10776
- H,
10777
- se,
10778
- ...Ne,
10779
- ...q,
10780
- k
10822
+ q,
10823
+ oe,
10824
+ ...G,
10825
+ ...ue,
10826
+ ce
10781
10827
  ]
10782
- }, Ee = {
10828
+ }, x = {
10783
10829
  begin: /</,
10784
10830
  end: />/,
10831
+ keywords: "repeat each",
10785
10832
  contains: [
10786
10833
  ...F,
10787
- k
10834
+ ce
10788
10835
  ]
10789
- }, _ = {
10836
+ }, X = {
10790
10837
  begin: c(
10791
- e(t(I, /\s*:/)),
10792
- e(t(I, /\s+/, I, /\s*:/))
10838
+ e(t(C, /\s*:/)),
10839
+ e(t(C, /\s+/, C, /\s*:/))
10793
10840
  ),
10794
10841
  end: /:/,
10795
10842
  relevance: 0,
@@ -10800,58 +10847,58 @@ function na() {
10800
10847
  },
10801
10848
  {
10802
10849
  className: "params",
10803
- match: I
10850
+ match: C
10804
10851
  }
10805
10852
  ]
10806
- }, y = {
10853
+ }, se = {
10807
10854
  begin: /\(/,
10808
10855
  end: /\)/,
10809
10856
  keywords: u,
10810
10857
  contains: [
10811
- _,
10858
+ X,
10812
10859
  ...F,
10813
10860
  ...f,
10814
10861
  ...te,
10815
- H,
10816
- se,
10817
- ...q,
10818
- k,
10819
- me
10862
+ q,
10863
+ oe,
10864
+ ...ue,
10865
+ ce,
10866
+ T
10820
10867
  ],
10821
10868
  endsParent: !0,
10822
10869
  illegal: /["']/
10823
- }, O = {
10870
+ }, xe = {
10824
10871
  match: [
10825
- /func/,
10872
+ /(func|macro)/,
10826
10873
  /\s+/,
10827
- c(ue.match, I, N)
10874
+ c(Ee.match, C, N)
10828
10875
  ],
10829
10876
  className: {
10830
10877
  1: "keyword",
10831
10878
  3: "title.function"
10832
10879
  },
10833
10880
  contains: [
10834
- Ee,
10835
- y,
10836
- C
10881
+ x,
10882
+ se,
10883
+ I
10837
10884
  ],
10838
10885
  illegal: [
10839
10886
  /\[/,
10840
10887
  /%/
10841
10888
  ]
10842
- }, D = {
10889
+ }, De = {
10843
10890
  match: [
10844
10891
  /\b(?:subscript|init[?!]?)/,
10845
10892
  /\s*(?=[<(])/
10846
10893
  ],
10847
10894
  className: { 1: "keyword" },
10848
10895
  contains: [
10849
- Ee,
10850
- y,
10851
- C
10896
+ x,
10897
+ se,
10898
+ I
10852
10899
  ],
10853
10900
  illegal: /\[|%/
10854
- }, V = {
10901
+ }, Tt = {
10855
10902
  match: [
10856
10903
  /operator/,
10857
10904
  /\s+/,
@@ -10861,42 +10908,42 @@ function na() {
10861
10908
  1: "keyword",
10862
10909
  3: "title"
10863
10910
  }
10864
- }, oe = {
10911
+ }, Ot = {
10865
10912
  begin: [
10866
10913
  /precedencegroup/,
10867
10914
  /\s+/,
10868
- A
10915
+ M
10869
10916
  ],
10870
10917
  className: {
10871
10918
  1: "keyword",
10872
10919
  3: "title"
10873
10920
  },
10874
- contains: [k],
10921
+ contains: [ce],
10875
10922
  keywords: [
10876
10923
  ...g,
10877
10924
  ...l
10878
10925
  ],
10879
10926
  end: /}/
10880
10927
  };
10881
- for (const $ of se.variants) {
10882
- const Re = $.contains.find((vt) => vt.label === "interpol");
10883
- Re.keywords = u;
10884
- const Nn = [
10928
+ for (const $ of oe.variants) {
10929
+ const Ae = $.contains.find((wt) => wt.label === "interpol");
10930
+ Ae.keywords = u;
10931
+ const ye = [
10885
10932
  ...f,
10886
- ...P,
10933
+ ...U,
10887
10934
  ...te,
10888
- H,
10889
- se,
10890
- ...Ne
10935
+ q,
10936
+ oe,
10937
+ ...G
10891
10938
  ];
10892
- Re.contains = [
10893
- ...Nn,
10939
+ Ae.contains = [
10940
+ ...ye,
10894
10941
  {
10895
10942
  begin: /\(/,
10896
10943
  end: /\)/,
10897
10944
  contains: [
10898
10945
  "self",
10899
- ...Nn
10946
+ ...ye
10900
10947
  ]
10901
10948
  }
10902
10949
  ];
@@ -10906,8 +10953,8 @@ function na() {
10906
10953
  keywords: u,
10907
10954
  contains: [
10908
10955
  ...F,
10909
- O,
10910
- D,
10956
+ xe,
10957
+ De,
10911
10958
  {
10912
10959
  beginKeywords: "struct protocol class extension enum actor",
10913
10960
  end: "\\{",
@@ -10921,33 +10968,34 @@ function na() {
10921
10968
  ...f
10922
10969
  ]
10923
10970
  },
10924
- V,
10925
- oe,
10971
+ Tt,
10972
+ Ot,
10926
10973
  {
10927
10974
  beginKeywords: "import",
10928
10975
  end: /$/,
10929
10976
  contains: [...F],
10930
10977
  relevance: 0
10931
10978
  },
10979
+ we,
10932
10980
  ...f,
10933
- ...P,
10981
+ ...U,
10934
10982
  ...te,
10935
- H,
10936
- se,
10937
- ...Ne,
10938
- ...q,
10939
- k,
10940
- me
10983
+ q,
10984
+ oe,
10985
+ ...G,
10986
+ ...ue,
10987
+ ce,
10988
+ T
10941
10989
  ]
10942
10990
  };
10943
10991
  }
10944
- return un = B, un;
10992
+ return pn = L, pn;
10945
10993
  }
10946
- var gn, st;
10947
- function ta() {
10948
- if (st)
10949
- return gn;
10950
- st = 1;
10994
+ var _n, ct;
10995
+ function sa() {
10996
+ if (ct)
10997
+ return _n;
10998
+ ct = 1;
10951
10999
  function n(e) {
10952
11000
  const t = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", c = {
10953
11001
  className: "attr",
@@ -11112,13 +11160,13 @@ function ta() {
11112
11160
  contains: N
11113
11161
  };
11114
11162
  }
11115
- return gn = n, gn;
11163
+ return _n = n, _n;
11116
11164
  }
11117
- var bn, ot;
11118
- function ra() {
11119
- if (ot)
11120
- return bn;
11121
- ot = 1;
11165
+ var mn, lt;
11166
+ function oa() {
11167
+ if (lt)
11168
+ return mn;
11169
+ lt = 1;
11122
11170
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
11123
11171
  "as",
11124
11172
  // for exports
@@ -11291,13 +11339,13 @@ function ra() {
11291
11339
  return;
11292
11340
  }
11293
11341
  ee === ">" && (b(K, { after: j }) || Q.ignoreMatch());
11294
- let ae;
11295
- const se = K.input.substring(j);
11296
- if (ae = se.match(/^\s*=/)) {
11342
+ let ie;
11343
+ const oe = K.input.substring(j);
11344
+ if (ie = oe.match(/^\s*=/)) {
11297
11345
  Q.ignoreMatch();
11298
11346
  return;
11299
11347
  }
11300
- if ((ae = se.match(/^\s+extends\s+/)) && ae.index === 0) {
11348
+ if ((ie = oe.match(/^\s+extends\s+/)) && ie.index === 0) {
11301
11349
  Q.ignoreMatch();
11302
11350
  return;
11303
11351
  }
@@ -11308,12 +11356,12 @@ function ra() {
11308
11356
  literal: t,
11309
11357
  built_in: r,
11310
11358
  "variable.language": a
11311
- }, S = "[0-9](_?[0-9])*", I = `\\.(${S})`, A = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
11359
+ }, O = "[0-9](_?[0-9])*", C = `\\.(${O})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
11312
11360
  className: "number",
11313
11361
  variants: [
11314
11362
  // DecimalLiteral
11315
- { begin: `(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${S})\\b` },
11316
- { begin: `\\b(${A})\\b((${I})\\b|\\.)?|(${I})\\b` },
11363
+ { begin: `(\\b(${M})((${C})|\\.)?|(${C}))[eE][+-]?(${O})\\b` },
11364
+ { begin: `\\b(${M})\\b((${C})\\b|\\.)?|(${C})\\b` },
11317
11365
  // DecimalBigIntegerLiteral
11318
11366
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
11319
11367
  // NonDecimalIntegerLiteral
@@ -11325,14 +11373,14 @@ function ra() {
11325
11373
  { begin: "\\b0[0-7]+n?\\b" }
11326
11374
  ],
11327
11375
  relevance: 0
11328
- }, L = {
11376
+ }, D = {
11329
11377
  className: "subst",
11330
11378
  begin: "\\$\\{",
11331
11379
  end: "\\}",
11332
11380
  keywords: h,
11333
11381
  contains: []
11334
11382
  // defined later
11335
- }, B = {
11383
+ }, L = {
11336
11384
  begin: "html`",
11337
11385
  end: "",
11338
11386
  starts: {
@@ -11340,7 +11388,7 @@ function ra() {
11340
11388
  returnEnd: !1,
11341
11389
  contains: [
11342
11390
  l.BACKSLASH_ESCAPE,
11343
- L
11391
+ D
11344
11392
  ],
11345
11393
  subLanguage: "xml"
11346
11394
  }
@@ -11352,11 +11400,11 @@ function ra() {
11352
11400
  returnEnd: !1,
11353
11401
  contains: [
11354
11402
  l.BACKSLASH_ESCAPE,
11355
- L
11403
+ D
11356
11404
  ],
11357
11405
  subLanguage: "css"
11358
11406
  }
11359
- }, C = {
11407
+ }, I = {
11360
11408
  begin: "gql`",
11361
11409
  end: "",
11362
11410
  starts: {
@@ -11364,17 +11412,17 @@ function ra() {
11364
11412
  returnEnd: !1,
11365
11413
  contains: [
11366
11414
  l.BACKSLASH_ESCAPE,
11367
- L
11415
+ D
11368
11416
  ],
11369
11417
  subLanguage: "graphql"
11370
11418
  }
11371
- }, G = {
11419
+ }, H = {
11372
11420
  className: "string",
11373
11421
  begin: "`",
11374
11422
  end: "`",
11375
11423
  contains: [
11376
11424
  l.BACKSLASH_ESCAPE,
11377
- L
11425
+ D
11378
11426
  ]
11379
11427
  }, J = {
11380
11428
  className: "comment",
@@ -11421,21 +11469,21 @@ function ra() {
11421
11469
  l.C_BLOCK_COMMENT_MODE,
11422
11470
  l.C_LINE_COMMENT_MODE
11423
11471
  ]
11424
- }, re = [
11472
+ }, ae = [
11425
11473
  l.APOS_STRING_MODE,
11426
11474
  l.QUOTE_STRING_MODE,
11427
- B,
11475
+ L,
11428
11476
  v,
11429
- C,
11430
- G,
11477
+ I,
11478
+ H,
11431
11479
  // Skip numbers when they are part of a variable name
11432
11480
  { match: /\$\d+/ },
11433
- M
11481
+ A
11434
11482
  // This is intentional:
11435
11483
  // See https://github.com/highlightjs/highlight.js/issues/3288
11436
11484
  // hljs.REGEXP_MODE
11437
11485
  ];
11438
- L.contains = re.concat({
11486
+ D.contains = ae.concat({
11439
11487
  // we need to pair up {} inside our subst to prevent
11440
11488
  // it from ending too early by matching another }
11441
11489
  begin: /\{/,
@@ -11443,9 +11491,9 @@ function ra() {
11443
11491
  keywords: h,
11444
11492
  contains: [
11445
11493
  "self"
11446
- ].concat(re)
11494
+ ].concat(ae)
11447
11495
  });
11448
- const W = [].concat(J, L.contains), U = W.concat([
11496
+ const W = [].concat(J, D.contains), B = W.concat([
11449
11497
  // eat recursive parens in sub expressions
11450
11498
  {
11451
11499
  begin: /\(/,
@@ -11453,14 +11501,14 @@ function ra() {
11453
11501
  keywords: h,
11454
11502
  contains: ["self"].concat(W)
11455
11503
  }
11456
- ]), X = {
11504
+ ]), V = {
11457
11505
  className: "params",
11458
11506
  begin: /\(/,
11459
11507
  end: /\)/,
11460
11508
  excludeBegin: !0,
11461
11509
  excludeEnd: !0,
11462
11510
  keywords: h,
11463
- contains: U
11511
+ contains: B
11464
11512
  }, u = {
11465
11513
  variants: [
11466
11514
  // class Car extends vehicle
@@ -11523,7 +11571,7 @@ function ra() {
11523
11571
  className: "meta",
11524
11572
  relevance: 10,
11525
11573
  begin: /^\s*['"]use (strict|asm)['"]/
11526
- }, x = {
11574
+ }, k = {
11527
11575
  variants: [
11528
11576
  {
11529
11577
  match: [
@@ -11546,9 +11594,9 @@ function ra() {
11546
11594
  3: "title.function"
11547
11595
  },
11548
11596
  label: "func.def",
11549
- contains: [X],
11597
+ contains: [V],
11550
11598
  illegal: /%/
11551
- }, P = {
11599
+ }, U = {
11552
11600
  relevance: 0,
11553
11601
  match: /\b[A-Z][A-Z_0-9]+\b/,
11554
11602
  className: "variable.constant"
@@ -11594,9 +11642,9 @@ function ra() {
11594
11642
  // eat to avoid empty params
11595
11643
  begin: /\(\)/
11596
11644
  },
11597
- X
11645
+ V
11598
11646
  ]
11599
- }, Z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + l.UNDERSCORE_IDENT_RE + ")\\s*=>", H = {
11647
+ }, Z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + l.UNDERSCORE_IDENT_RE + ")\\s*=>", q = {
11600
11648
  match: [
11601
11649
  /const|var|let/,
11602
11650
  /\s+/,
@@ -11613,7 +11661,7 @@ function ra() {
11613
11661
  3: "title.function"
11614
11662
  },
11615
11663
  contains: [
11616
- X
11664
+ V
11617
11665
  ]
11618
11666
  };
11619
11667
  return {
@@ -11621,7 +11669,7 @@ function ra() {
11621
11669
  aliases: ["js", "jsx", "mjs", "cjs"],
11622
11670
  keywords: h,
11623
11671
  // this will be extended by TypeScript
11624
- exports: { PARAMS_CONTAINS: U, CLASS_REFERENCE: f },
11672
+ exports: { PARAMS_CONTAINS: B, CLASS_REFERENCE: f },
11625
11673
  illegal: /#(?![$_A-z])/,
11626
11674
  contains: [
11627
11675
  l.SHEBANG({
@@ -11632,21 +11680,21 @@ function ra() {
11632
11680
  w,
11633
11681
  l.APOS_STRING_MODE,
11634
11682
  l.QUOTE_STRING_MODE,
11635
- B,
11683
+ L,
11636
11684
  v,
11637
- C,
11638
- G,
11685
+ I,
11686
+ H,
11639
11687
  J,
11640
11688
  // Skip numbers when they are part of a variable name
11641
11689
  { match: /\$\d+/ },
11642
- M,
11690
+ A,
11643
11691
  f,
11644
11692
  {
11645
11693
  className: "attr",
11646
11694
  begin: p + g.lookahead(":"),
11647
11695
  relevance: 0
11648
11696
  },
11649
- H,
11697
+ q,
11650
11698
  {
11651
11699
  // "value" container
11652
11700
  begin: "(" + l.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
@@ -11682,7 +11730,7 @@ function ra() {
11682
11730
  excludeBegin: !0,
11683
11731
  excludeEnd: !0,
11684
11732
  keywords: h,
11685
- contains: U
11733
+ contains: B
11686
11734
  }
11687
11735
  ]
11688
11736
  }
@@ -11722,7 +11770,7 @@ function ra() {
11722
11770
  }
11723
11771
  ]
11724
11772
  },
11725
- x,
11773
+ k,
11726
11774
  {
11727
11775
  // prevent this from getting swallowed up by function
11728
11776
  // since they appear "function like"
@@ -11737,7 +11785,7 @@ function ra() {
11737
11785
  returnBegin: !0,
11738
11786
  label: "func.def",
11739
11787
  contains: [
11740
- X,
11788
+ V,
11741
11789
  l.inherit(l.TITLE_MODE, { begin: p, className: "title.function" })
11742
11790
  ]
11743
11791
  },
@@ -11757,10 +11805,10 @@ function ra() {
11757
11805
  {
11758
11806
  match: [/\bconstructor(?=\s*\()/],
11759
11807
  className: { 1: "title.function" },
11760
- contains: [X]
11808
+ contains: [V]
11761
11809
  },
11762
11810
  ne,
11763
- P,
11811
+ U,
11764
11812
  u,
11765
11813
  z,
11766
11814
  {
@@ -11813,28 +11861,28 @@ function ra() {
11813
11861
  "readonly",
11814
11862
  "enum",
11815
11863
  "override"
11816
- ], S = {
11864
+ ], O = {
11817
11865
  $pattern: n,
11818
11866
  keyword: e.concat(h),
11819
11867
  literal: t,
11820
11868
  built_in: r.concat(p),
11821
11869
  "variable.language": a
11822
- }, I = {
11870
+ }, C = {
11823
11871
  className: "meta",
11824
11872
  begin: "@" + b
11825
- }, A = (L, B, v) => {
11826
- const C = L.contains.findIndex((G) => G.label === B);
11827
- if (C === -1)
11873
+ }, M = (D, L, v) => {
11874
+ const I = D.contains.findIndex((H) => H.label === L);
11875
+ if (I === -1)
11828
11876
  throw new Error("can not find mode to replace");
11829
- L.contains.splice(C, 1, v);
11877
+ D.contains.splice(I, 1, v);
11830
11878
  };
11831
- Object.assign(g.keywords, S), g.exports.PARAMS_CONTAINS.push(I), g.contains = g.contains.concat([
11832
- I,
11879
+ Object.assign(g.keywords, O), g.exports.PARAMS_CONTAINS.push(C), g.contains = g.contains.concat([
11880
+ C,
11833
11881
  m,
11834
11882
  E
11835
- ]), A(g, "shebang", l.SHEBANG()), A(g, "use_strict", N);
11836
- const M = g.contains.find((L) => L.label === "func.def");
11837
- return M.relevance = 0, Object.assign(g, {
11883
+ ]), M(g, "shebang", l.SHEBANG()), M(g, "use_strict", N);
11884
+ const A = g.contains.find((D) => D.label === "func.def");
11885
+ return A.relevance = 0, Object.assign(g, {
11838
11886
  name: "TypeScript",
11839
11887
  aliases: [
11840
11888
  "ts",
@@ -11844,13 +11892,13 @@ function ra() {
11844
11892
  ]
11845
11893
  }), g;
11846
11894
  }
11847
- return bn = d, bn;
11895
+ return mn = d, mn;
11848
11896
  }
11849
- var pn, ct;
11850
- function aa() {
11851
- if (ct)
11852
- return pn;
11853
- ct = 1;
11897
+ var En, dt;
11898
+ function ca() {
11899
+ if (dt)
11900
+ return En;
11901
+ dt = 1;
11854
11902
  function n(e) {
11855
11903
  const t = e.regex, s = {
11856
11904
  className: "string",
@@ -11970,13 +12018,13 @@ function aa() {
11970
12018
  ]
11971
12019
  };
11972
12020
  }
11973
- return pn = n, pn;
12021
+ return En = n, En;
11974
12022
  }
11975
- var _n, lt;
11976
- function ia() {
11977
- if (lt)
11978
- return _n;
11979
- lt = 1;
12023
+ var fn, ut;
12024
+ function la() {
12025
+ if (ut)
12026
+ return fn;
12027
+ ut = 1;
11980
12028
  function n(e) {
11981
12029
  e.regex;
11982
12030
  const t = e.COMMENT(/\(;/, /;\)/);
@@ -12088,68 +12136,68 @@ function ia() {
12088
12136
  ]
12089
12137
  };
12090
12138
  }
12091
- return _n = n, _n;
12139
+ return fn = n, fn;
12092
12140
  }
12093
- var R = Tr;
12094
- R.registerLanguage("xml", Sr());
12095
- R.registerLanguage("bash", wr());
12096
- R.registerLanguage("c", Or());
12097
- R.registerLanguage("cpp", Rr());
12098
- R.registerLanguage("csharp", Ar());
12099
- R.registerLanguage("css", Mr());
12100
- R.registerLanguage("markdown", Ir());
12101
- R.registerLanguage("diff", Cr());
12102
- R.registerLanguage("ruby", kr());
12103
- R.registerLanguage("go", xr());
12104
- R.registerLanguage("graphql", Dr());
12105
- R.registerLanguage("ini", Lr());
12106
- R.registerLanguage("java", Br());
12107
- R.registerLanguage("javascript", Ur());
12108
- R.registerLanguage("json", Pr());
12109
- R.registerLanguage("kotlin", Fr());
12110
- R.registerLanguage("less", $r());
12111
- R.registerLanguage("lua", zr());
12112
- R.registerLanguage("makefile", Kr());
12113
- R.registerLanguage("perl", qr());
12114
- R.registerLanguage("objectivec", Hr());
12115
- R.registerLanguage("php", Gr());
12116
- R.registerLanguage("php-template", Wr());
12117
- R.registerLanguage("plaintext", Yr());
12118
- R.registerLanguage("python", Zr());
12119
- R.registerLanguage("python-repl", Vr());
12120
- R.registerLanguage("r", Xr());
12121
- R.registerLanguage("rust", Qr());
12122
- R.registerLanguage("scss", Jr());
12123
- R.registerLanguage("shell", jr());
12124
- R.registerLanguage("sql", ea());
12125
- R.registerLanguage("swift", na());
12126
- R.registerLanguage("yaml", ta());
12127
- R.registerLanguage("typescript", ra());
12128
- R.registerLanguage("vbnet", aa());
12129
- R.registerLanguage("wasm", ia());
12141
+ var R = Rr;
12142
+ R.registerLanguage("xml", Ar());
12143
+ R.registerLanguage("bash", Mr());
12144
+ R.registerLanguage("c", Cr());
12145
+ R.registerLanguage("cpp", Ir());
12146
+ R.registerLanguage("csharp", kr());
12147
+ R.registerLanguage("css", xr());
12148
+ R.registerLanguage("markdown", Dr());
12149
+ R.registerLanguage("diff", Lr());
12150
+ R.registerLanguage("ruby", Br());
12151
+ R.registerLanguage("go", Ur());
12152
+ R.registerLanguage("graphql", Pr());
12153
+ R.registerLanguage("ini", Fr());
12154
+ R.registerLanguage("java", $r());
12155
+ R.registerLanguage("javascript", zr());
12156
+ R.registerLanguage("json", Kr());
12157
+ R.registerLanguage("kotlin", qr());
12158
+ R.registerLanguage("less", Gr());
12159
+ R.registerLanguage("lua", Hr());
12160
+ R.registerLanguage("makefile", Wr());
12161
+ R.registerLanguage("perl", Yr());
12162
+ R.registerLanguage("objectivec", Zr());
12163
+ R.registerLanguage("php", Xr());
12164
+ R.registerLanguage("php-template", Vr());
12165
+ R.registerLanguage("plaintext", Qr());
12166
+ R.registerLanguage("python", Jr());
12167
+ R.registerLanguage("python-repl", jr());
12168
+ R.registerLanguage("r", ea());
12169
+ R.registerLanguage("rust", na());
12170
+ R.registerLanguage("scss", ta());
12171
+ R.registerLanguage("shell", ra());
12172
+ R.registerLanguage("sql", aa());
12173
+ R.registerLanguage("swift", ia());
12174
+ R.registerLanguage("yaml", sa());
12175
+ R.registerLanguage("typescript", oa());
12176
+ R.registerLanguage("vbnet", ca());
12177
+ R.registerLanguage("wasm", la());
12130
12178
  R.HighlightJS = R;
12131
12179
  R.default = R;
12132
- var sa = R;
12133
- const oa = /* @__PURE__ */ Mt(sa);
12134
- var ca = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (n, e, t, s) => {
12135
- for (var c = s > 1 ? void 0 : s ? la(e, t) : e, o = n.length - 1, a; o >= 0; o--)
12180
+ var da = R;
12181
+ const ua = /* @__PURE__ */ xt(da);
12182
+ var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, me = (n, e, t, s) => {
12183
+ for (var c = s > 1 ? void 0 : s ? ba(e, t) : e, o = n.length - 1, a; o >= 0; o--)
12136
12184
  (a = n[o]) && (c = (s ? a(e, t, c) : a(c)) || c);
12137
- return s && c && ca(e, t, c), c;
12185
+ return s && c && ga(e, t, c), c;
12138
12186
  };
12139
- let ce = class extends wt {
12187
+ let le = class extends Mt {
12140
12188
  constructor() {
12141
12189
  super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
12142
12190
  }
12143
12191
  firstUpdated() {
12144
12192
  this._codeItems.forEach((n) => {
12145
- this._code += oa.highlight(n.textContent ?? "", {
12193
+ this._code += ua.highlight(n.textContent ?? "", {
12146
12194
  language: this.language ?? ""
12147
12195
  }).value, this.requestUpdate();
12148
12196
  });
12149
12197
  }
12150
12198
  render() {
12151
- let n = Ae`${this.renderContainer()}`;
12152
- return this.hideHeader || (n = Ae`${this.renderHeader()}${this.renderContainer()}`), n;
12199
+ let n = Me`${this.renderContainer()}`;
12200
+ return this.hideHeader || (n = Me`${this.renderHeader()}${this.renderContainer()}`), n;
12153
12201
  }
12154
12202
  renderContainer() {
12155
12203
  const n = {
@@ -12161,46 +12209,46 @@ let ce = class extends wt {
12161
12209
  const e = document.createElement("div");
12162
12210
  e.innerHTML = this._code ? this._code.trim() : "<slot></slot>";
12163
12211
  let t;
12164
- return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Ae`<pre
12212
+ return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Me`<pre
12165
12213
  style="${t}"
12166
12214
  part="container"
12167
- ><code class="${At(n)}">${e}</code></pre>`;
12215
+ ><code class="${kt(n)}">${e}</code></pre>`;
12168
12216
  }
12169
12217
  renderHeader() {
12170
- return Ae`<div class="header" part="header">
12218
+ return Me`<div class="header" part="header">
12171
12219
  <div class="title">${this.label}</div>
12172
12220
  <span><slot name="actionItems"></slot></span>
12173
12221
  </div>`;
12174
12222
  }
12175
12223
  };
12176
- ce.styles = [
12177
- Tt`
12178
- ${St(It)}
12224
+ le.styles = [
12225
+ Rt`
12226
+ ${At(Dt)}
12179
12227
  `
12180
12228
  ];
12181
- pe([
12182
- Se()
12183
- ], ce.prototype, "language", 2);
12184
- pe([
12185
- Se()
12186
- ], ce.prototype, "label", 2);
12187
- pe([
12188
- Se({ type: Boolean, reflect: !0 })
12189
- ], ce.prototype, "inline", 2);
12190
- pe([
12191
- Se({ type: Boolean, reflect: !0 })
12192
- ], ce.prototype, "hideHeader", 2);
12193
- pe([
12194
- Rt({})
12195
- ], ce.prototype, "_codeItems", 2);
12196
- pe([
12197
- Se()
12198
- ], ce.prototype, "maxHeight", 2);
12199
- ce = pe([
12200
- Ot("cv-code-snippet")
12201
- ], ce);
12202
- const _a = ce;
12229
+ me([
12230
+ Te()
12231
+ ], le.prototype, "language", 2);
12232
+ me([
12233
+ Te()
12234
+ ], le.prototype, "label", 2);
12235
+ me([
12236
+ Te({ type: Boolean, reflect: !0 })
12237
+ ], le.prototype, "inline", 2);
12238
+ me([
12239
+ Te({ type: Boolean, reflect: !0 })
12240
+ ], le.prototype, "hideHeader", 2);
12241
+ me([
12242
+ It({})
12243
+ ], le.prototype, "_codeItems", 2);
12244
+ me([
12245
+ Te()
12246
+ ], le.prototype, "maxHeight", 2);
12247
+ le = me([
12248
+ Ct("cv-code-snippet")
12249
+ ], le);
12250
+ const ha = le;
12203
12251
  export {
12204
- ce as CovalentCodeSnippet,
12205
- _a as default
12252
+ le as CovalentCodeSnippet,
12253
+ ha as default
12206
12254
  };