@covalent/components 6.4.0 → 6.4.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.
Files changed (173) hide show
  1. package/action-ribbon.js +6 -6
  2. package/action-ribbon.mjs +24 -23
  3. package/alert.js +4 -4
  4. package/alert.mjs +28 -27
  5. package/app-shell.js +4 -4
  6. package/app-shell.mjs +10 -10
  7. package/{base-element-67ae173f.mjs → base-element-c3dc926e.mjs} +2 -2
  8. package/{base-element-58a3f9ea.js → base-element-d5abe37a.js} +1 -1
  9. package/button.js +4 -4
  10. package/button.mjs +13 -13
  11. package/card.js +8 -8
  12. package/card.mjs +4 -4
  13. package/check-list-item.js +3 -3
  14. package/check-list-item.mjs +16 -16
  15. package/checkbox.js +1 -1
  16. package/checkbox.mjs +15 -15
  17. package/circular-progress.js +7 -7
  18. package/circular-progress.mjs +6 -6
  19. package/class-map-08c84aeb.mjs +62 -0
  20. package/class-map-50b8edb4.js +9 -0
  21. package/code-snippet.js +9 -9
  22. package/code-snippet.mjs +1213 -1276
  23. package/{dialog-9ac44447.mjs → dialog-85c21333.mjs} +39 -39
  24. package/{dialog-79036d60.js → dialog-8ee07177.js} +4 -4
  25. package/dialog.js +1 -1
  26. package/dialog.mjs +8 -8
  27. package/{directive-helpers-e3ea6592.mjs → directive-helpers-725a181d.mjs} +3 -3
  28. package/{directive-helpers-0ce1f995.js → directive-helpers-fce8cf91.js} +2 -2
  29. package/drawer.js +1 -1
  30. package/drawer.mjs +8 -8
  31. package/empty-state.js +7 -7
  32. package/empty-state.mjs +4 -4
  33. package/{event-options-78d6cf94.mjs → event-options-3937d997.mjs} +1 -1
  34. package/{event-options-3f5eb195.js → event-options-7bc382d8.js} +1 -1
  35. package/{form-element-bd973124.mjs → form-element-6dbd7afa.mjs} +4 -4
  36. package/{form-element-ead758d4.js → form-element-d4e7bcdb.js} +2 -2
  37. package/foundation-2334d146.mjs +60 -0
  38. package/{foundation-62d4413d.js → foundation-3f55a9dc.js} +3 -24
  39. package/{foundation-3f556da7.mjs → foundation-c580100a.mjs} +28 -78
  40. package/foundation-e830bd94.js +22 -0
  41. package/icon-button.js +5 -5
  42. package/icon-button.mjs +12 -12
  43. package/icon-check-toggle.js +5 -5
  44. package/icon-check-toggle.mjs +15 -15
  45. package/icon-radio-toggle.js +4 -4
  46. package/icon-radio-toggle.mjs +15 -15
  47. package/icon.js +1 -1
  48. package/icon.mjs +3 -3
  49. package/{if-defined-c367f208.mjs → if-defined-639ed018.mjs} +1 -1
  50. package/if-defined-cb12d481.js +5 -0
  51. package/index.js +1 -1
  52. package/index.mjs +121 -120
  53. package/linear-progress.js +6 -6
  54. package/linear-progress.mjs +13 -13
  55. package/{list-066f5de4.mjs → list-d616957b.mjs} +3 -3
  56. package/{list-05db7fed.js → list-defdaa3b.js} +2 -2
  57. package/list-expansion.js +4 -4
  58. package/list-expansion.mjs +25 -25
  59. package/{list-item-8da7ba96.js → list-item-3fa66f09.js} +3 -3
  60. package/{list-item-ba77097d.mjs → list-item-d5c05e10.mjs} +6 -6
  61. package/list-item.js +1 -1
  62. package/list-item.mjs +13 -13
  63. package/list.js +1 -1
  64. package/list.mjs +15 -15
  65. package/menu.js +1 -1
  66. package/menu.mjs +15 -15
  67. package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-10e977f2.mjs} +21 -21
  68. package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-435c1f1d.js} +9 -9
  69. package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-956e3d6c.js} +1 -1
  70. package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-b7abc7fd.mjs} +1 -1
  71. package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-b2b772c3.mjs} +10 -10
  72. package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-f44fcf34.js} +6 -6
  73. package/{mwc-icon-8c9cd0c9.js → mwc-icon-b96fb867.js} +2 -2
  74. package/{mwc-icon-ba18383d.mjs → mwc-icon-c7013880.mjs} +2 -2
  75. package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a97ce725.js} +3 -3
  76. package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-c3e1f04a.mjs} +6 -6
  77. package/{mwc-list-base-cb3500b4.js → mwc-list-base-7d5f7278.js} +4 -4
  78. package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-c0f8af1c.mjs} +9 -9
  79. package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-803b9771.js} +8 -8
  80. package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-acef0223.mjs} +7 -7
  81. package/{mwc-list-item.css-25adc0c4.js → mwc-list-item.css-401e2407.js} +1 -1
  82. package/{mwc-list-item.css-b0009fc7.mjs → mwc-list-item.css-b5481d96.mjs} +1 -1
  83. package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-8970b43d.mjs} +11 -11
  84. package/{mwc-menu-base-f14ec544.js → mwc-menu-base-ac49fe54.js} +17 -17
  85. package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-442d495a.js} +4 -4
  86. package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-c29e6f42.mjs} +11 -11
  87. package/{mwc-radio.css-4e140252.js → mwc-radio.css-388ad26d.js} +1 -1
  88. package/{mwc-radio.css-7454bb11.mjs → mwc-radio.css-4694aa9c.mjs} +1 -1
  89. package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-336f809b.mjs} +12 -12
  90. package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-48f02f1e.js} +11 -11
  91. package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-1a19b299.js} +13 -13
  92. package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-7fb3d339.mjs} +14 -14
  93. package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-14e0a018.js} +8 -8
  94. package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-79c87e69.mjs} +24 -22
  95. package/nav-list-item.js +2 -2
  96. package/nav-list-item.mjs +13 -13
  97. package/package.json +1 -1
  98. package/{property-57f6f6fe.js → property-074570d1.js} +1 -1
  99. package/{property-9b6ea53b.mjs → property-ca27685b.mjs} +9 -9
  100. package/{query-d843aa92.mjs → query-1e7846ea.mjs} +1 -1
  101. package/{query-680f1868.js → query-2ba749b7.js} +1 -1
  102. package/query-assigned-elements-07e38f46.js +33 -0
  103. package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-514e5265.mjs} +152 -153
  104. package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-9ec0fa5f.js} +1 -1
  105. package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-bea12e0c.mjs} +1 -1
  106. package/radio-list-item.js +3 -3
  107. package/radio-list-item.mjs +18 -18
  108. package/radio.js +1 -1
  109. package/radio.mjs +15 -15
  110. package/{ripple-handlers-c82b1232.js → ripple-handlers-2176f137.js} +5 -5
  111. package/{ripple-handlers-321219b8.mjs → ripple-handlers-227497d3.mjs} +10 -10
  112. package/select.js +10 -10
  113. package/select.mjs +20 -20
  114. package/side-sheet.js +2 -2
  115. package/side-sheet.mjs +21 -21
  116. package/slider-range.js +7 -7
  117. package/slider-range.mjs +13 -13
  118. package/slider.js +3 -3
  119. package/slider.mjs +15 -15
  120. package/snackbar.js +6 -6
  121. package/snackbar.mjs +12 -12
  122. package/{state-b5e865db.mjs → state-6f7e570d.mjs} +1 -1
  123. package/state-949232e6.js +5 -0
  124. package/status-header-item.js +3 -3
  125. package/status-header-item.mjs +15 -15
  126. package/status-header.js +2 -2
  127. package/status-header.mjs +3 -3
  128. package/style-map-2cb0fb63.mjs +40 -0
  129. package/style-map-3056a771.js +5 -0
  130. package/style.css +1 -1
  131. package/switch.js +8 -8
  132. package/switch.mjs +13 -13
  133. package/tab-bar.js +5 -5
  134. package/tab-bar.mjs +16 -16
  135. package/tab.js +1 -1
  136. package/tab.mjs +12 -12
  137. package/text-lockup.js +4 -4
  138. package/text-lockup.mjs +7 -7
  139. package/textarea.js +4 -4
  140. package/textarea.mjs +26 -26
  141. package/{textfield-2cee5a1a.mjs → textfield-276b0ded.mjs} +14 -14
  142. package/{textfield-0993c163.js → textfield-507c6a06.js} +12 -12
  143. package/textfield.js +1 -1
  144. package/textfield.mjs +14 -14
  145. package/toolbar.js +1 -1
  146. package/toolbar.mjs +8 -8
  147. package/tooltip/tooltip.d.ts.map +1 -1
  148. package/tooltip.js +11 -32
  149. package/tooltip.mjs +516 -611
  150. package/{top-app-bar-a531c1b4.js → top-app-bar-34e85527.js} +1 -1
  151. package/{top-app-bar-f83386e0.mjs → top-app-bar-a236c3bc.mjs} +1 -1
  152. package/top-app-bar-fixed.js +5 -89
  153. package/top-app-bar-fixed.mjs +37 -279
  154. package/top-app-bar.js +1 -1
  155. package/top-app-bar.mjs +9 -9
  156. package/tree-list-item.js +7 -7
  157. package/tree-list-item.mjs +6 -6
  158. package/tree-list.js +2 -2
  159. package/tree-list.mjs +1 -1
  160. package/tslib.es6-6b53b818.js +1 -0
  161. package/tslib.es6-b5e819a6.mjs +82 -0
  162. package/typography.js +3 -3
  163. package/typography.mjs +2 -2
  164. package/{utils-2932417c.mjs → utils-dc65fdc9.mjs} +2 -2
  165. package/class-map-4b94b017.mjs +0 -62
  166. package/class-map-b5efe8da.js +0 -9
  167. package/if-defined-f1c45245.js +0 -5
  168. package/query-assigned-elements-f623705d.js +0 -31
  169. package/state-0974a8e5.js +0 -5
  170. package/style-map-88d2563f.js +0 -5
  171. package/style-map-bc3ed3e0.mjs +0 -44
  172. package/tslib.es6-e6a11c8a.js +0 -1
  173. package/tslib.es6-f1eaf65c.mjs +0 -82
package/code-snippet.mjs CHANGED
@@ -1,23 +1,23 @@
1
- import { i as Tt, r as St, s as Ot, x as Ae, e as wt } 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
- function Mt(n) {
6
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
7
- }
8
- 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 Tt, r as St, s as wt, y as Se, e as Ot } from "./query-assigned-elements-514e5265.mjs";
2
+ import { e as ve } from "./property-ca27685b.mjs";
3
+ import { o as Rt } from "./query-assigned-nodes-bea12e0c.mjs";
4
+ import { o as At } from "./class-map-08c84aeb.mjs";
5
+ const Mt = `: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}
9
6
  `;
10
- function dt(n) {
7
+ var _n = { exports: {} };
8
+ function mn(n) {
11
9
  return n instanceof Map ? n.clear = n.delete = n.set = function() {
12
10
  throw new Error("map is read-only");
13
11
  } : n instanceof Set && (n.add = n.clear = n.delete = function() {
14
12
  throw new Error("set is read-only");
15
- }), Object.freeze(n), Object.getOwnPropertyNames(n).forEach((e) => {
16
- const t = n[e], s = typeof t;
17
- (s === "object" || s === "function") && !Object.isFrozen(t) && dt(t);
13
+ }), Object.freeze(n), Object.getOwnPropertyNames(n).forEach(function(e) {
14
+ var t = n[e];
15
+ typeof t == "object" && !Object.isFrozen(t) && mn(t);
18
16
  }), n;
19
17
  }
20
- class yn {
18
+ _n.exports = mn;
19
+ _n.exports.default = mn;
20
+ class Tn {
21
21
  /**
22
22
  * @param {CompiledMode} mode
23
23
  */
@@ -28,10 +28,10 @@ class yn {
28
28
  this.isMatchIgnored = !0;
29
29
  }
30
30
  }
31
- function ut(n) {
31
+ function gt(n) {
32
32
  return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
33
33
  }
34
- function de(n, ...e) {
34
+ function ue(n, ...e) {
35
35
  const t = /* @__PURE__ */ Object.create(null);
36
36
  for (const s in n)
37
37
  t[s] = n[s];
@@ -41,9 +41,7 @@ function de(n, ...e) {
41
41
  }), /** @type {T} */
42
42
  t;
43
43
  }
44
- const Ct = "</span>", vn = (n) => !!n.scope, kt = (n, { prefix: e }) => {
45
- if (n.startsWith("language:"))
46
- return n.replace("language:", "language-");
44
+ const It = "</span>", Sn = (n) => !!n.scope || n.sublanguage && n.language, Ct = (n, { prefix: e }) => {
47
45
  if (n.includes(".")) {
48
46
  const t = n.split(".");
49
47
  return [
@@ -53,7 +51,7 @@ const Ct = "</span>", vn = (n) => !!n.scope, kt = (n, { prefix: e }) => {
53
51
  }
54
52
  return `${e}${n}`;
55
53
  };
56
- class xt {
54
+ class kt {
57
55
  /**
58
56
  * Creates a new HTMLRenderer
59
57
  *
@@ -68,27 +66,24 @@ class xt {
68
66
  *
69
67
  * @param {string} text */
70
68
  addText(e) {
71
- this.buffer += ut(e);
69
+ this.buffer += gt(e);
72
70
  }
73
71
  /**
74
72
  * Adds a node open to the output stream (if needed)
75
73
  *
76
74
  * @param {Node} node */
77
75
  openNode(e) {
78
- if (!vn(e))
76
+ if (!Sn(e))
79
77
  return;
80
- const t = kt(
81
- e.scope,
82
- { prefix: this.classPrefix }
83
- );
84
- this.span(t);
78
+ let t = "";
79
+ e.sublanguage ? t = `language-${e.language}` : t = Ct(e.scope, { prefix: this.classPrefix }), this.span(t);
85
80
  }
86
81
  /**
87
82
  * Adds a node close to the output stream (if needed)
88
83
  *
89
84
  * @param {Node} node */
90
85
  closeNode(e) {
91
- vn(e) && (this.buffer += Ct);
86
+ Sn(e) && (this.buffer += It);
92
87
  }
93
88
  /**
94
89
  * returns the accumulated buffer
@@ -105,13 +100,13 @@ class xt {
105
100
  this.buffer += `<span class="${e}">`;
106
101
  }
107
102
  }
108
- const Tn = (n = {}) => {
103
+ const wn = (n = {}) => {
109
104
  const e = { children: [] };
110
105
  return Object.assign(e, n), e;
111
106
  };
112
- class mn {
107
+ class En {
113
108
  constructor() {
114
- this.rootNode = Tn(), this.stack = [this.rootNode];
109
+ this.rootNode = wn(), this.stack = [this.rootNode];
115
110
  }
116
111
  get top() {
117
112
  return this.stack[this.stack.length - 1];
@@ -125,7 +120,7 @@ class mn {
125
120
  }
126
121
  /** @param {string} scope */
127
122
  openNode(e) {
128
- const t = Tn({ scope: e });
123
+ const t = wn({ scope: e });
129
124
  this.add(t), this.stack.push(t);
130
125
  }
131
126
  closeNode() {
@@ -158,83 +153,83 @@ class mn {
158
153
  */
159
154
  static _collapse(e) {
160
155
  typeof e != "string" && e.children && (e.children.every((t) => typeof t == "string") ? e.children = [e.children.join("")] : e.children.forEach((t) => {
161
- mn._collapse(t);
156
+ En._collapse(t);
162
157
  }));
163
158
  }
164
159
  }
165
- class Dt extends mn {
160
+ class xt extends En {
166
161
  /**
167
162
  * @param {*} options
168
163
  */
169
164
  constructor(e) {
170
165
  super(), this.options = e;
171
166
  }
167
+ /**
168
+ * @param {string} text
169
+ * @param {string} scope
170
+ */
171
+ addKeyword(e, t) {
172
+ e !== "" && (this.openNode(t), this.addText(e), this.closeNode());
173
+ }
172
174
  /**
173
175
  * @param {string} text
174
176
  */
175
177
  addText(e) {
176
178
  e !== "" && this.add(e);
177
179
  }
178
- /** @param {string} scope */
179
- startScope(e) {
180
- this.openNode(e);
181
- }
182
- endScope() {
183
- this.closeNode();
184
- }
185
180
  /**
186
181
  * @param {Emitter & {root: DataNode}} emitter
187
182
  * @param {string} name
188
183
  */
189
- __addSublanguage(e, t) {
184
+ addSublanguage(e, t) {
190
185
  const s = e.root;
191
- t && (s.scope = `language:${t}`), this.add(s);
186
+ s.sublanguage = !0, s.language = t, this.add(s);
192
187
  }
193
188
  toHTML() {
194
- return new xt(this, this.options).value();
189
+ return new kt(this, this.options).value();
195
190
  }
196
191
  finalize() {
197
- return this.closeAllNodes(), !0;
192
+ return !0;
198
193
  }
199
194
  }
200
- function ve(n) {
195
+ function he(n) {
201
196
  return n ? typeof n == "string" ? n : n.source : null;
202
197
  }
203
- function gt(n) {
198
+ function bt(n) {
204
199
  return be("(?=", n, ")");
205
200
  }
206
- function Lt(n) {
201
+ function Dt(n) {
207
202
  return be("(?:", n, ")*");
208
203
  }
209
- function Bt(n) {
204
+ function Lt(n) {
210
205
  return be("(?:", n, ")?");
211
206
  }
212
207
  function be(...n) {
213
- return n.map((t) => ve(t)).join("");
208
+ return n.map((t) => he(t)).join("");
214
209
  }
215
- function Ut(n) {
210
+ function Bt(n) {
216
211
  const e = n[n.length - 1];
217
212
  return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
218
213
  }
219
- function En(...n) {
220
- return "(" + (Ut(n).capture ? "" : "?:") + n.map((s) => ve(s)).join("|") + ")";
214
+ function fn(...n) {
215
+ return "(" + (Bt(n).capture ? "" : "?:") + n.map((s) => he(s)).join("|") + ")";
221
216
  }
222
- function bt(n) {
217
+ function pt(n) {
223
218
  return new RegExp(n.toString() + "|").exec("").length - 1;
224
219
  }
225
- function Pt(n, e) {
220
+ function Ut(n, e) {
226
221
  const t = n && n.exec(e);
227
222
  return t && t.index === 0;
228
223
  }
229
- const Ft = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
230
- function fn(n, { joinWith: e }) {
224
+ const Pt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
225
+ function hn(n, { joinWith: e }) {
231
226
  let t = 0;
232
227
  return n.map((s) => {
233
228
  t += 1;
234
229
  const c = t;
235
- let o = ve(s), a = "";
230
+ let o = he(s), a = "";
236
231
  for (; o.length > 0; ) {
237
- const r = Ft.exec(o);
232
+ const r = Pt.exec(o);
238
233
  if (!r) {
239
234
  a += o;
240
235
  break;
@@ -244,14 +239,14 @@ function fn(n, { joinWith: e }) {
244
239
  return a;
245
240
  }).map((s) => `(${s})`).join(e);
246
241
  }
247
- 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 = {}) => {
242
+ const Ft = /\b\B/, _t = "[a-zA-Z]\\w*", Nn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\\d+)?", Et = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ft = "\\b(0b[01]+)", $t = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", zt = (n = {}) => {
248
243
  const e = /^#![ ]*\//;
249
244
  return n.binary && (n.begin = be(
250
245
  e,
251
246
  /.*\b/,
252
247
  n.binary,
253
248
  /\b.*/
254
- )), de({
249
+ )), ue({
255
250
  scope: "meta",
256
251
  begin: e,
257
252
  end: /$/,
@@ -261,25 +256,25 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
261
256
  t.index !== 0 && s.ignoreMatch();
262
257
  }
263
258
  }, n);
264
- }, Te = {
259
+ }, Ne = {
265
260
  begin: "\\\\[\\s\\S]",
266
261
  relevance: 0
267
- }, qt = {
262
+ }, Kt = {
268
263
  scope: "string",
269
264
  begin: "'",
270
265
  end: "'",
271
266
  illegal: "\\n",
272
- contains: [Te]
273
- }, Ht = {
267
+ contains: [Ne]
268
+ }, qt = {
274
269
  scope: "string",
275
270
  begin: '"',
276
271
  end: '"',
277
272
  illegal: "\\n",
278
- contains: [Te]
273
+ contains: [Ne]
279
274
  }, Gt = {
280
275
  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/
281
- }, Ce = function(n, e, t = {}) {
282
- const s = de(
276
+ }, Re = function(n, e, t = {}) {
277
+ const s = ue(
283
278
  {
284
279
  scope: "comment",
285
280
  begin: n,
@@ -297,7 +292,7 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
297
292
  excludeBegin: !0,
298
293
  relevance: 0
299
294
  });
300
- const c = En(
295
+ const c = fn(
301
296
  // list of common 1 and 2 letter words in English
302
297
  "I",
303
298
  "a",
@@ -344,19 +339,19 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
344
339
  // look for 3 words in a row
345
340
  }
346
341
  ), s;
347
- }, Wt = Ce("//", "$"), Yt = Ce("/\\*", "\\*/"), Zt = Ce("#", "$"), Vt = {
348
- scope: "number",
349
- begin: _t,
350
- relevance: 0
351
- }, Xt = {
342
+ }, Ht = Re("//", "$"), Wt = Re("/\\*", "\\*/"), Yt = Re("#", "$"), Zt = {
352
343
  scope: "number",
353
344
  begin: mt,
354
345
  relevance: 0
355
- }, Qt = {
346
+ }, Vt = {
356
347
  scope: "number",
357
348
  begin: Et,
358
349
  relevance: 0
359
- }, Jt = {
350
+ }, Xt = {
351
+ scope: "number",
352
+ begin: ft,
353
+ relevance: 0
354
+ }, Qt = {
360
355
  // this outer rule makes sure we actually have a WHOLE regex and not simply
361
356
  // an expression such as:
362
357
  //
@@ -370,28 +365,28 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
370
365
  end: /\/[gimuy]*/,
371
366
  illegal: /\n/,
372
367
  contains: [
373
- Te,
368
+ Ne,
374
369
  {
375
370
  begin: /\[/,
376
371
  end: /\]/,
377
372
  relevance: 0,
378
- contains: [Te]
373
+ contains: [Ne]
379
374
  }
380
375
  ]
381
376
  }]
382
- }, jt = {
377
+ }, Jt = {
383
378
  scope: "title",
384
- begin: pt,
379
+ begin: _t,
385
380
  relevance: 0
386
- }, er = {
381
+ }, jt = {
387
382
  scope: "title",
388
- begin: hn,
383
+ begin: Nn,
389
384
  relevance: 0
390
- }, nr = {
385
+ }, er = {
391
386
  // excludes method names from keyword processing
392
- begin: "\\.\\s*" + hn,
387
+ begin: "\\.\\s*" + Nn,
393
388
  relevance: 0
394
- }, tr = function(n) {
389
+ }, nr = function(n) {
395
390
  return Object.assign(
396
391
  n,
397
392
  {
@@ -406,56 +401,56 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
406
401
  }
407
402
  );
408
403
  };
409
- var Me = /* @__PURE__ */ Object.freeze({
404
+ var we = /* @__PURE__ */ Object.freeze({
410
405
  __proto__: null,
411
- MATCH_NOTHING_RE: $t,
412
- IDENT_RE: pt,
413
- UNDERSCORE_IDENT_RE: hn,
414
- NUMBER_RE: _t,
415
- C_NUMBER_RE: mt,
416
- BINARY_NUMBER_RE: Et,
417
- RE_STARTERS_RE: zt,
418
- SHEBANG: Kt,
419
- BACKSLASH_ESCAPE: Te,
420
- APOS_STRING_MODE: qt,
421
- QUOTE_STRING_MODE: Ht,
406
+ MATCH_NOTHING_RE: Ft,
407
+ IDENT_RE: _t,
408
+ UNDERSCORE_IDENT_RE: Nn,
409
+ NUMBER_RE: mt,
410
+ C_NUMBER_RE: Et,
411
+ BINARY_NUMBER_RE: ft,
412
+ RE_STARTERS_RE: $t,
413
+ SHEBANG: zt,
414
+ BACKSLASH_ESCAPE: Ne,
415
+ APOS_STRING_MODE: Kt,
416
+ QUOTE_STRING_MODE: qt,
422
417
  PHRASAL_WORDS_MODE: Gt,
423
- COMMENT: Ce,
424
- C_LINE_COMMENT_MODE: Wt,
425
- C_BLOCK_COMMENT_MODE: Yt,
426
- HASH_COMMENT_MODE: Zt,
427
- NUMBER_MODE: Vt,
428
- C_NUMBER_MODE: Xt,
429
- BINARY_NUMBER_MODE: Qt,
430
- REGEXP_MODE: Jt,
431
- TITLE_MODE: jt,
432
- UNDERSCORE_TITLE_MODE: er,
433
- METHOD_GUARD: nr,
434
- END_SAME_AS_BEGIN: tr
418
+ COMMENT: Re,
419
+ C_LINE_COMMENT_MODE: Ht,
420
+ C_BLOCK_COMMENT_MODE: Wt,
421
+ HASH_COMMENT_MODE: Yt,
422
+ NUMBER_MODE: Zt,
423
+ C_NUMBER_MODE: Vt,
424
+ BINARY_NUMBER_MODE: Xt,
425
+ REGEXP_MODE: Qt,
426
+ TITLE_MODE: Jt,
427
+ UNDERSCORE_TITLE_MODE: jt,
428
+ METHOD_GUARD: er,
429
+ END_SAME_AS_BEGIN: nr
435
430
  });
436
- function rr(n, e) {
431
+ function tr(n, e) {
437
432
  n.input[n.index - 1] === "." && e.ignoreMatch();
438
433
  }
439
- function ar(n, e) {
434
+ function rr(n, e) {
440
435
  n.className !== void 0 && (n.scope = n.className, delete n.className);
441
436
  }
437
+ function ar(n, e) {
438
+ e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = tr, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
439
+ }
442
440
  function ir(n, e) {
443
- 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));
441
+ Array.isArray(n.illegal) && (n.illegal = fn(...n.illegal));
444
442
  }
445
443
  function sr(n, e) {
446
- Array.isArray(n.illegal) && (n.illegal = En(...n.illegal));
447
- }
448
- function or(n, e) {
449
444
  if (n.match) {
450
445
  if (n.begin || n.end)
451
446
  throw new Error("begin & end are not supported with match");
452
447
  n.begin = n.match, delete n.match;
453
448
  }
454
449
  }
455
- function cr(n, e) {
450
+ function or(n, e) {
456
451
  n.relevance === void 0 && (n.relevance = 1);
457
452
  }
458
- const lr = (n, e) => {
453
+ const cr = (n, e) => {
459
454
  if (!n.beforeMatch)
460
455
  return;
461
456
  if (n.starts)
@@ -463,13 +458,13 @@ const lr = (n, e) => {
463
458
  const t = Object.assign({}, n);
464
459
  Object.keys(n).forEach((s) => {
465
460
  delete n[s];
466
- }), n.keywords = t.keywords, n.begin = be(t.beforeMatch, gt(t.begin)), n.starts = {
461
+ }), n.keywords = t.keywords, n.begin = be(t.beforeMatch, bt(t.begin)), n.starts = {
467
462
  relevance: 0,
468
463
  contains: [
469
464
  Object.assign(t, { endsParent: !0 })
470
465
  ]
471
466
  }, n.relevance = 0, delete t.beforeMatch;
472
- }, dr = [
467
+ }, lr = [
473
468
  "of",
474
469
  "and",
475
470
  "for",
@@ -484,70 +479,70 @@ const lr = (n, e) => {
484
479
  // common variable name
485
480
  "value"
486
481
  // common variable name
487
- ], ur = "keyword";
488
- function ft(n, e, t = ur) {
482
+ ], dr = "keyword";
483
+ function ht(n, e, t = dr) {
489
484
  const s = /* @__PURE__ */ Object.create(null);
490
485
  return typeof n == "string" ? c(t, n.split(" ")) : Array.isArray(n) ? c(t, n) : Object.keys(n).forEach(function(o) {
491
486
  Object.assign(
492
487
  s,
493
- ft(n[o], e, o)
488
+ ht(n[o], e, o)
494
489
  );
495
490
  }), s;
496
491
  function c(o, a) {
497
492
  e && (a = a.map((r) => r.toLowerCase())), a.forEach(function(r) {
498
493
  const i = r.split("|");
499
- s[i[0]] = [o, gr(i[0], i[1])];
494
+ s[i[0]] = [o, ur(i[0], i[1])];
500
495
  });
501
496
  }
502
497
  }
503
- function gr(n, e) {
504
- return e ? Number(e) : br(n) ? 0 : 1;
498
+ function ur(n, e) {
499
+ return e ? Number(e) : gr(n) ? 0 : 1;
505
500
  }
506
- function br(n) {
507
- return dr.includes(n.toLowerCase());
501
+ function gr(n) {
502
+ return lr.includes(n.toLowerCase());
508
503
  }
509
- const Sn = {}, ge = (n) => {
504
+ const On = {}, ge = (n) => {
510
505
  console.error(n);
511
- }, On = (n, ...e) => {
506
+ }, Rn = (n, ...e) => {
512
507
  console.log(`WARN: ${n}`, ...e);
513
- }, fe = (n, e) => {
514
- Sn[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), Sn[`${n}/${e}`] = !0);
515
- }, Ie = new Error();
516
- function ht(n, e, { key: t }) {
508
+ }, _e = (n, e) => {
509
+ On[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), On[`${n}/${e}`] = !0);
510
+ }, Oe = new Error();
511
+ function Nt(n, e, { key: t }) {
517
512
  let s = 0;
518
513
  const c = n[t], o = {}, a = {};
519
514
  for (let r = 1; r <= e.length; r++)
520
- a[r + s] = c[r], o[r + s] = !0, s += bt(e[r - 1]);
515
+ a[r + s] = c[r], o[r + s] = !0, s += pt(e[r - 1]);
521
516
  n[t] = a, n[t]._emit = o, n[t]._multi = !0;
522
517
  }
523
- function pr(n) {
518
+ function br(n) {
524
519
  if (Array.isArray(n.begin)) {
525
520
  if (n.skip || n.excludeBegin || n.returnBegin)
526
- throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ie;
521
+ throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Oe;
527
522
  if (typeof n.beginScope != "object" || n.beginScope === null)
528
- throw ge("beginScope must be object"), Ie;
529
- ht(n, n.begin, { key: "beginScope" }), n.begin = fn(n.begin, { joinWith: "" });
523
+ throw ge("beginScope must be object"), Oe;
524
+ Nt(n, n.begin, { key: "beginScope" }), n.begin = hn(n.begin, { joinWith: "" });
530
525
  }
531
526
  }
532
- function _r(n) {
527
+ function pr(n) {
533
528
  if (Array.isArray(n.end)) {
534
529
  if (n.skip || n.excludeEnd || n.returnEnd)
535
- throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ie;
530
+ throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Oe;
536
531
  if (typeof n.endScope != "object" || n.endScope === null)
537
- throw ge("endScope must be object"), Ie;
538
- ht(n, n.end, { key: "endScope" }), n.end = fn(n.end, { joinWith: "" });
532
+ throw ge("endScope must be object"), Oe;
533
+ Nt(n, n.end, { key: "endScope" }), n.end = hn(n.end, { joinWith: "" });
539
534
  }
540
535
  }
541
- function mr(n) {
536
+ function _r(n) {
542
537
  n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
543
538
  }
544
- function Er(n) {
545
- mr(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), pr(n), _r(n);
539
+ function mr(n) {
540
+ _r(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), br(n), pr(n);
546
541
  }
547
- function fr(n) {
542
+ function Er(n) {
548
543
  function e(a, r) {
549
544
  return new RegExp(
550
- ve(a),
545
+ he(a),
551
546
  "m" + (n.case_insensitive ? "i" : "") + (n.unicodeRegex ? "u" : "") + (r ? "g" : "")
552
547
  );
553
548
  }
@@ -557,12 +552,12 @@ function fr(n) {
557
552
  }
558
553
  // @ts-ignore
559
554
  addRule(r, i) {
560
- i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt += bt(r) + 1;
555
+ i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt += pt(r) + 1;
561
556
  }
562
557
  compile() {
563
558
  this.regexes.length === 0 && (this.exec = () => null);
564
559
  const r = this.regexes.map((i) => i[1]);
565
- this.matcherRe = e(fn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
560
+ this.matcherRe = e(hn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
566
561
  }
567
562
  /** @param {string} s */
568
563
  exec(r) {
@@ -570,7 +565,7 @@ function fr(n) {
570
565
  const i = this.matcherRe.exec(r);
571
566
  if (!i)
572
567
  return null;
573
- const d = i.findIndex((g, b) => b > 0 && g !== void 0), l = this.matchIndexes[d];
568
+ const d = i.findIndex((u, b) => b > 0 && u !== void 0), l = this.matchIndexes[d];
574
569
  return i.splice(0, d), Object.assign(i, l);
575
570
  }
576
571
  }
@@ -619,26 +614,26 @@ function fr(n) {
619
614
  if (a.isCompiled)
620
615
  return i;
621
616
  [
622
- ar,
617
+ rr,
623
618
  // do this early so compiler extensions generally don't have to worry about
624
619
  // the distinction between match/begin
625
- or,
626
- Er,
627
- lr
620
+ sr,
621
+ mr,
622
+ cr
628
623
  ].forEach((l) => l(a, r)), n.compilerExtensions.forEach((l) => l(a, r)), a.__beforeBegin = null, [
629
- ir,
624
+ ar,
630
625
  // do this later so compiler extensions that come earlier have access to the
631
626
  // raw array if they wanted to perhaps manipulate it, etc.
632
- sr,
627
+ ir,
633
628
  // default to 1 relevance if not specified
634
- cr
629
+ or
635
630
  ].forEach((l) => l(a, r)), a.isCompiled = !0;
636
631
  let d = null;
637
- 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(
632
+ 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 = ht(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 = he(i.end) || "", a.endsWithParent && r.terminatorEnd && (i.terminatorEnd += (a.end ? "|" : "") + r.terminatorEnd)), a.illegal && (i.illegalRe = e(
638
633
  /** @type {RegExp | string} */
639
634
  a.illegal
640
635
  )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(l) {
641
- return hr(l === "self" ? a : l);
636
+ return fr(l === "self" ? a : l);
642
637
  })), a.contains.forEach(function(l) {
643
638
  o(
644
639
  /** @type Mode */
@@ -649,26 +644,26 @@ function fr(n) {
649
644
  }
650
645
  if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
651
646
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
652
- return n.classNameAliases = de(n.classNameAliases || {}), o(
647
+ return n.classNameAliases = ue(n.classNameAliases || {}), o(
653
648
  /** @type Mode */
654
649
  n
655
650
  );
656
651
  }
657
- function Nt(n) {
658
- return n ? n.endsWithParent || Nt(n.starts) : !1;
652
+ function yt(n) {
653
+ return n ? n.endsWithParent || yt(n.starts) : !1;
659
654
  }
660
- function hr(n) {
655
+ function fr(n) {
661
656
  return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
662
- return de(n, { variants: null }, e);
663
- })), n.cachedVariants ? n.cachedVariants : Nt(n) ? de(n, { starts: n.starts ? de(n.starts) : null }) : Object.isFrozen(n) ? de(n) : n;
657
+ return ue(n, { variants: null }, e);
658
+ })), n.cachedVariants ? n.cachedVariants : yt(n) ? ue(n, { starts: n.starts ? ue(n.starts) : null }) : Object.isFrozen(n) ? ue(n) : n;
664
659
  }
665
- var Nr = "11.8.0";
666
- class yr extends Error {
660
+ var hr = "11.7.0";
661
+ class Nr extends Error {
667
662
  constructor(e, t) {
668
663
  super(e), this.name = "HTMLInjectionError", this.html = t;
669
664
  }
670
665
  }
671
- const ke = ut, wn = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
666
+ const Ce = gt, An = ue, Mn = Symbol("nomatch"), yr = 7, vr = function(n) {
672
667
  const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
673
668
  let c = !0;
674
669
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -682,411 +677,397 @@ const ke = ut, wn = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
682
677
  languages: null,
683
678
  // beta configuration options, subject to change, welcome to discuss
684
679
  // https://github.com/highlightjs/highlight.js/issues/1086
685
- __emitter: Dt
680
+ __emitter: xt
686
681
  };
687
- function i(u) {
688
- return r.noHighlightRe.test(u);
682
+ function i(g) {
683
+ return r.noHighlightRe.test(g);
689
684
  }
690
- function d(u) {
691
- let f = u.className + " ";
692
- f += u.parentNode ? u.parentNode.className : "";
693
- const O = r.languageDetectRe.exec(f);
694
- if (O) {
695
- const x = C(O[1]);
696
- return x || (On(o.replace("{}", O[1])), On("Falling back to no-highlight mode for this block.", u)), x ? O[1] : "no-highlight";
685
+ function d(g) {
686
+ let N = g.className + " ";
687
+ N += g.parentNode ? g.parentNode.className : "";
688
+ const S = r.languageDetectRe.exec(N);
689
+ if (S) {
690
+ const k = C(S[1]);
691
+ return k || (Rn(o.replace("{}", S[1])), Rn("Falling back to no-highlight mode for this block.", g)), k ? S[1] : "no-highlight";
697
692
  }
698
- return f.split(/\s+/).find((x) => i(x) || C(x));
693
+ return N.split(/\s+/).find((k) => i(k) || C(k));
699
694
  }
700
- function l(u, f, O) {
701
- let x = "", P = "";
702
- typeof f == "object" ? (x = u, O = 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.
703
- https://github.com/highlightjs/highlight.js/issues/2277`), P = u, x = f), O === void 0 && (O = !0);
704
- const Y = {
705
- code: x,
706
- language: P
695
+ function l(g, N, S) {
696
+ let k = "", F = "";
697
+ typeof N == "object" ? (k = g, S = N.ignoreIllegals, F = N.language) : (_e("10.7.0", "highlight(lang, code, ...args) has been deprecated."), _e("10.7.0", `Please use highlight(code, options) instead.
698
+ https://github.com/highlightjs/highlight.js/issues/2277`), F = g, k = N), S === void 0 && (S = !0);
699
+ const H = {
700
+ code: k,
701
+ language: F
707
702
  };
708
- U("before:highlight", Y);
709
- const ne = Y.result ? Y.result : g(Y.language, Y.code, O);
710
- return ne.code = Y.code, U("after:highlight", ne), ne;
703
+ z("before:highlight", H);
704
+ const J = H.result ? H.result : u(H.language, H.code, S);
705
+ return J.code = H.code, z("after:highlight", J), J;
711
706
  }
712
- function g(u, f, O, x) {
713
- const P = /* @__PURE__ */ Object.create(null);
714
- function Y(_, y) {
707
+ function u(g, N, S, k) {
708
+ const F = /* @__PURE__ */ Object.create(null);
709
+ function H(_, y) {
715
710
  return _.keywords[y];
716
711
  }
717
- function ne() {
712
+ function J() {
718
713
  if (!T.keywords) {
719
- q.addText(k);
714
+ G.addText(U);
720
715
  return;
721
716
  }
722
717
  let _ = 0;
723
718
  T.keywordPatternRe.lastIndex = 0;
724
- let y = T.keywordPatternRe.exec(k), w = "";
719
+ let y = T.keywordPatternRe.exec(U), w = "";
725
720
  for (; y; ) {
726
- w += k.substring(_, y.index);
727
- const D = ie.case_insensitive ? y[0].toLowerCase() : y[0], V = Y(T, D);
728
- if (V) {
729
- const [oe, $] = V;
730
- if (q.addText(w), w = "", P[D] = (P[D] || 0) + 1, P[D] <= vr && (_e += $), oe.startsWith("_"))
721
+ w += U.substring(_, y.index);
722
+ const x = ie.case_insensitive ? y[0].toLowerCase() : y[0], Z = H(T, x);
723
+ if (Z) {
724
+ const [se, Me] = Z;
725
+ if (G.addText(w), w = "", F[x] = (F[x] || 0) + 1, F[x] <= yr && (de += Me), se.startsWith("_"))
731
726
  w += y[0];
732
727
  else {
733
- const Re = ie.classNameAliases[oe] || oe;
734
- Z(y[0], Re);
728
+ const Ie = ie.classNameAliases[se] || se;
729
+ G.addKeyword(y[0], Ie);
735
730
  }
736
731
  } else
737
732
  w += y[0];
738
- _ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(k);
733
+ _ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(U);
739
734
  }
740
- w += k.substring(_), q.addText(w);
735
+ w += U.substring(_), G.addText(w);
741
736
  }
742
- function te() {
743
- if (k === "")
737
+ function oe() {
738
+ if (U === "")
744
739
  return;
745
740
  let _ = null;
746
741
  if (typeof T.subLanguage == "string") {
747
742
  if (!e[T.subLanguage]) {
748
- q.addText(k);
743
+ G.addText(U);
749
744
  return;
750
745
  }
751
- _ = g(T.subLanguage, k, !0, we[T.subLanguage]), we[T.subLanguage] = /** @type {CompiledMode} */
746
+ _ = u(T.subLanguage, U, !0, Te[T.subLanguage]), Te[T.subLanguage] = /** @type {CompiledMode} */
752
747
  _._top;
753
748
  } else
754
- _ = p(k, T.subLanguage.length ? T.subLanguage : null);
755
- T.relevance > 0 && (_e += _.relevance), q.__addSublanguage(_._emitter, _.language);
749
+ _ = p(U, T.subLanguage.length ? T.subLanguage : null);
750
+ T.relevance > 0 && (de += _.relevance), G.addSublanguage(_._emitter, _.language);
756
751
  }
757
- function z() {
758
- T.subLanguage != null ? te() : ne(), k = "";
752
+ function $() {
753
+ T.subLanguage != null ? oe() : J(), U = "";
759
754
  }
760
- function Z(_, y) {
761
- _ !== "" && (q.startScope(y), q.addText(_), q.endScope());
762
- }
763
- function H(_, y) {
755
+ function W(_, y) {
764
756
  let w = 1;
765
- const D = y.length - 1;
766
- for (; w <= D; ) {
757
+ const x = y.length - 1;
758
+ for (; w <= x; ) {
767
759
  if (!_._emit[w]) {
768
760
  w++;
769
761
  continue;
770
762
  }
771
- const V = ie.classNameAliases[_[w]] || _[w], oe = y[w];
772
- V ? Z(oe, V) : (k = oe, ne(), k = ""), w++;
763
+ const Z = ie.classNameAliases[_[w]] || _[w], se = y[w];
764
+ Z ? G.addKeyword(se, Z) : (U = se, J(), U = ""), w++;
773
765
  }
774
766
  }
775
- function K(_, y) {
776
- 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;
767
+ function Y(_, y) {
768
+ return _.scope && typeof _.scope == "string" && G.openNode(ie.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (G.addKeyword(U, ie.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), U = "") : _.beginScope._multi && (W(_.beginScope, y), U = "")), T = Object.create(_, { parent: { value: T } }), T;
777
769
  }
778
- function Q(_, y, w) {
779
- let D = Pt(_.endRe, w);
780
- if (D) {
770
+ function P(_, y, w) {
771
+ let x = Ut(_.endRe, w);
772
+ if (x) {
781
773
  if (_["on:end"]) {
782
- const V = new yn(_);
783
- _["on:end"](y, V), V.isMatchIgnored && (D = !1);
774
+ const Z = new Tn(_);
775
+ _["on:end"](y, Z), Z.isMatchIgnored && (x = !1);
784
776
  }
785
- if (D) {
777
+ if (x) {
786
778
  for (; _.endsParent && _.parent; )
787
779
  _ = _.parent;
788
780
  return _;
789
781
  }
790
782
  }
791
783
  if (_.endsWithParent)
792
- return Q(_.parent, y, w);
784
+ return P(_.parent, y, w);
793
785
  }
794
- function j(_) {
795
- return T.matcher.regexIndex === 0 ? (k += _[0], 1) : (Ee = !0, 0);
786
+ function X(_) {
787
+ return T.matcher.regexIndex === 0 ? (U += _[0], 1) : (fe = !0, 0);
796
788
  }
797
789
  function ee(_) {
798
- const y = _[0], w = _.rule, D = new yn(w), V = [w.__beforeBegin, w["on:begin"]];
799
- for (const oe of V)
800
- if (oe && (oe(_, D), D.isMatchIgnored))
801
- return j(y);
802
- return w.skip ? k += y : (w.excludeBegin && (k += y), z(), !w.returnBegin && !w.excludeBegin && (k = y)), K(w, _), w.returnBegin ? 0 : y.length;
790
+ const y = _[0], w = _.rule, x = new Tn(w), Z = [w.__beforeBegin, w["on:begin"]];
791
+ for (const se of Z)
792
+ if (se && (se(_, x), x.isMatchIgnored))
793
+ return X(y);
794
+ return w.skip ? U += y : (w.excludeBegin && (U += y), $(), !w.returnBegin && !w.excludeBegin && (U = y)), Y(w, _), w.returnBegin ? 0 : y.length;
803
795
  }
804
- function ae(_) {
805
- const y = _[0], w = f.substring(_.index), D = Q(T, _, w);
806
- if (!D)
807
- return Rn;
808
- const V = T;
809
- 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));
796
+ function te(_) {
797
+ const y = _[0], w = N.substring(_.index), x = P(T, _, w);
798
+ if (!x)
799
+ return Mn;
800
+ const Z = T;
801
+ T.endScope && T.endScope._wrap ? ($(), G.addKeyword(y, T.endScope._wrap)) : T.endScope && T.endScope._multi ? ($(), W(T.endScope, _)) : Z.skip ? U += y : (Z.returnEnd || Z.excludeEnd || (U += y), $(), Z.excludeEnd && (U = y));
810
802
  do
811
- T.scope && q.closeNode(), !T.skip && !T.subLanguage && (_e += T.relevance), T = T.parent;
812
- while (T !== D.parent);
813
- return D.starts && K(D.starts, _), V.returnEnd ? 0 : y.length;
803
+ T.scope && G.closeNode(), !T.skip && !T.subLanguage && (de += T.relevance), T = T.parent;
804
+ while (T !== x.parent);
805
+ return x.starts && Y(x.starts, _), Z.returnEnd ? 0 : y.length;
814
806
  }
815
- function se() {
807
+ function re() {
816
808
  const _ = [];
817
809
  for (let y = T; y !== ie; y = y.parent)
818
810
  y.scope && _.unshift(y.scope);
819
- _.forEach((y) => q.openNode(y));
811
+ _.forEach((y) => G.openNode(y));
820
812
  }
821
- let ue = {};
822
- function Oe(_, y) {
813
+ let ae = {};
814
+ function le(_, y) {
823
815
  const w = y && y[0];
824
- if (k += _, w == null)
825
- return z(), 0;
826
- if (ue.type === "begin" && y.type === "end" && ue.index === y.index && w === "") {
827
- if (k += f.slice(y.index, y.index + 1), !c) {
828
- const D = new Error(`0 width match regex (${u})`);
829
- throw D.languageName = u, D.badRule = ue.rule, D;
816
+ if (U += _, w == null)
817
+ return $(), 0;
818
+ if (ae.type === "begin" && y.type === "end" && ae.index === y.index && w === "") {
819
+ if (U += N.slice(y.index, y.index + 1), !c) {
820
+ const x = new Error(`0 width match regex (${g})`);
821
+ throw x.languageName = g, x.badRule = ae.rule, x;
830
822
  }
831
823
  return 1;
832
824
  }
833
- if (ue = y, y.type === "begin")
825
+ if (ae = y, y.type === "begin")
834
826
  return ee(y);
835
- if (y.type === "illegal" && !O) {
836
- const D = new Error('Illegal lexeme "' + w + '" for mode "' + (T.scope || "<unnamed>") + '"');
837
- throw D.mode = T, D;
827
+ if (y.type === "illegal" && !S) {
828
+ const x = new Error('Illegal lexeme "' + w + '" for mode "' + (T.scope || "<unnamed>") + '"');
829
+ throw x.mode = T, x;
838
830
  } else if (y.type === "end") {
839
- const D = ae(y);
840
- if (D !== Rn)
841
- return D;
831
+ const x = te(y);
832
+ if (x !== Mn)
833
+ return x;
842
834
  }
843
835
  if (y.type === "illegal" && w === "")
844
836
  return 1;
845
- if (me > 1e5 && me > y.index * 3)
837
+ if (Ee > 1e5 && Ee > y.index * 3)
846
838
  throw new Error("potential infinite loop, way more iterations than matches");
847
- return k += w, w.length;
839
+ return U += w, w.length;
848
840
  }
849
- const ie = C(u);
841
+ const ie = C(g);
850
842
  if (!ie)
851
- throw ge(o.replace("{}", u)), new Error('Unknown language: "' + u + '"');
852
- const Ne = fr(ie);
853
- let ye = "", T = x || Ne;
854
- const we = {}, q = new r.__emitter(r);
855
- se();
856
- let k = "", _e = 0, le = 0, me = 0, Ee = !1;
843
+ throw ge(o.replace("{}", g)), new Error('Unknown language: "' + g + '"');
844
+ const Ae = Er(ie);
845
+ let me = "", T = k || Ae;
846
+ const Te = {}, G = new r.__emitter(r);
847
+ re();
848
+ let U = "", de = 0, j = 0, Ee = 0, fe = !1;
857
849
  try {
858
- if (ie.__emitTokens)
859
- ie.__emitTokens(f, q);
860
- else {
861
- for (T.matcher.considerAll(); ; ) {
862
- me++, Ee ? Ee = !1 : T.matcher.considerAll(), T.matcher.lastIndex = le;
863
- const _ = T.matcher.exec(f);
864
- if (!_)
865
- break;
866
- const y = f.substring(le, _.index), w = Oe(y, _);
867
- le = _.index + w;
868
- }
869
- Oe(f.substring(le));
850
+ for (T.matcher.considerAll(); ; ) {
851
+ Ee++, fe ? fe = !1 : T.matcher.considerAll(), T.matcher.lastIndex = j;
852
+ const _ = T.matcher.exec(N);
853
+ if (!_)
854
+ break;
855
+ const y = N.substring(j, _.index), w = le(y, _);
856
+ j = _.index + w;
870
857
  }
871
- return q.finalize(), ye = q.toHTML(), {
872
- language: u,
873
- value: ye,
874
- relevance: _e,
858
+ return le(N.substring(j)), G.closeAllNodes(), G.finalize(), me = G.toHTML(), {
859
+ language: g,
860
+ value: me,
861
+ relevance: de,
875
862
  illegal: !1,
876
- _emitter: q,
863
+ _emitter: G,
877
864
  _top: T
878
865
  };
879
866
  } catch (_) {
880
867
  if (_.message && _.message.includes("Illegal"))
881
868
  return {
882
- language: u,
883
- value: ke(f),
869
+ language: g,
870
+ value: Ce(N),
884
871
  illegal: !0,
885
872
  relevance: 0,
886
873
  _illegalBy: {
887
874
  message: _.message,
888
- index: le,
889
- context: f.slice(le - 100, le + 100),
875
+ index: j,
876
+ context: N.slice(j - 100, j + 100),
890
877
  mode: _.mode,
891
- resultSoFar: ye
878
+ resultSoFar: me
892
879
  },
893
- _emitter: q
880
+ _emitter: G
894
881
  };
895
882
  if (c)
896
883
  return {
897
- language: u,
898
- value: ke(f),
884
+ language: g,
885
+ value: Ce(N),
899
886
  illegal: !1,
900
887
  relevance: 0,
901
888
  errorRaised: _,
902
- _emitter: q,
889
+ _emitter: G,
903
890
  _top: T
904
891
  };
905
892
  throw _;
906
893
  }
907
894
  }
908
- function b(u) {
909
- const f = {
910
- value: ke(u),
895
+ function b(g) {
896
+ const N = {
897
+ value: Ce(g),
911
898
  illegal: !1,
912
899
  relevance: 0,
913
900
  _top: a,
914
901
  _emitter: new r.__emitter(r)
915
902
  };
916
- return f._emitter.addText(u), f;
903
+ return N._emitter.addText(g), N;
917
904
  }
918
- function p(u, f) {
919
- f = f || r.languages || Object.keys(e);
920
- const O = b(u), x = f.filter(C).filter(F).map(
921
- (z) => g(z, u, !1)
905
+ function p(g, N) {
906
+ N = N || r.languages || Object.keys(e);
907
+ const S = b(g), k = N.filter(C).filter(B).map(
908
+ ($) => u($, g, !1)
922
909
  );
923
- x.unshift(O);
924
- const P = x.sort((z, Z) => {
925
- if (z.relevance !== Z.relevance)
926
- return Z.relevance - z.relevance;
927
- if (z.language && Z.language) {
928
- if (C(z.language).supersetOf === Z.language)
910
+ k.unshift(S);
911
+ const F = k.sort(($, W) => {
912
+ if ($.relevance !== W.relevance)
913
+ return W.relevance - $.relevance;
914
+ if ($.language && W.language) {
915
+ if (C($.language).supersetOf === W.language)
929
916
  return 1;
930
- if (C(Z.language).supersetOf === z.language)
917
+ if (C(W.language).supersetOf === $.language)
931
918
  return -1;
932
919
  }
933
920
  return 0;
934
- }), [Y, ne] = P, te = Y;
935
- return te.secondBest = ne, te;
921
+ }), [H, J] = F, oe = H;
922
+ return oe.secondBest = J, oe;
936
923
  }
937
- function m(u, f, O) {
938
- const x = f && t[f] || O;
939
- u.classList.add("hljs"), u.classList.add(`language-${x}`);
924
+ function m(g, N, S) {
925
+ const k = N && t[N] || S;
926
+ g.classList.add("hljs"), g.classList.add(`language-${k}`);
940
927
  }
941
- function E(u) {
942
- let f = null;
943
- const O = d(u);
944
- if (i(O))
928
+ function E(g) {
929
+ let N = null;
930
+ const S = d(g);
931
+ if (i(S))
945
932
  return;
946
- if (U(
933
+ if (z(
947
934
  "before:highlightElement",
948
- { el: u, language: O }
949
- ), 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))
950
- throw new yr(
935
+ { el: g, language: S }
936
+ ), g.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(g)), r.throwUnescapedHTML))
937
+ throw new Nr(
951
938
  "One of your code blocks includes unescaped HTML.",
952
- u.innerHTML
939
+ g.innerHTML
953
940
  );
954
- f = u;
955
- const x = f.textContent, P = O ? l(x, { language: O, ignoreIllegals: !0 }) : p(x);
956
- u.innerHTML = P.value, m(u, O, P.language), u.result = {
957
- language: P.language,
941
+ N = g;
942
+ const k = N.textContent, F = S ? l(k, { language: S, ignoreIllegals: !0 }) : p(k);
943
+ g.innerHTML = F.value, m(g, S, F.language), g.result = {
944
+ language: F.language,
958
945
  // TODO: remove with version 11.0
959
- re: P.relevance,
960
- relevance: P.relevance
961
- }, P.secondBest && (u.secondBest = {
962
- language: P.secondBest.language,
963
- relevance: P.secondBest.relevance
964
- }), U("after:highlightElement", { el: u, result: P, text: x });
946
+ re: F.relevance,
947
+ relevance: F.relevance
948
+ }, F.secondBest && (g.secondBest = {
949
+ language: F.secondBest.language,
950
+ relevance: F.secondBest.relevance
951
+ }), z("after:highlightElement", { el: g, result: F, text: k });
965
952
  }
966
- function N(u) {
967
- r = wn(r, u);
953
+ function h(g) {
954
+ r = An(r, g);
968
955
  }
969
- const h = () => {
970
- A(), fe("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
956
+ const f = () => {
957
+ M(), _e("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
971
958
  };
972
- function S() {
973
- A(), fe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
974
- }
975
- let I = !1;
976
959
  function A() {
960
+ M(), _e("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
961
+ }
962
+ let R = !1;
963
+ function M() {
977
964
  if (document.readyState === "loading") {
978
- I = !0;
965
+ R = !0;
979
966
  return;
980
967
  }
981
968
  document.querySelectorAll(r.cssSelector).forEach(E);
982
969
  }
983
- function M() {
984
- I && A();
970
+ function I() {
971
+ R && M();
985
972
  }
986
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", M, !1);
987
- function L(u, f) {
988
- let O = null;
973
+ typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", I, !1);
974
+ function L(g, N) {
975
+ let S = null;
989
976
  try {
990
- O = f(n);
991
- } catch (x) {
992
- if (ge("Language definition for '{}' could not be registered.".replace("{}", u)), c)
993
- ge(x);
977
+ S = N(n);
978
+ } catch (k) {
979
+ if (ge("Language definition for '{}' could not be registered.".replace("{}", g)), c)
980
+ ge(k);
994
981
  else
995
- throw x;
996
- O = a;
982
+ throw k;
983
+ S = a;
997
984
  }
998
- O.name || (O.name = u), e[u] = O, O.rawDefinition = f.bind(null, n), O.aliases && G(O.aliases, { languageName: u });
985
+ S.name || (S.name = g), e[g] = S, S.rawDefinition = N.bind(null, n), S.aliases && q(S.aliases, { languageName: g });
999
986
  }
1000
- function B(u) {
1001
- delete e[u];
1002
- for (const f of Object.keys(t))
1003
- t[f] === u && delete t[f];
987
+ function D(g) {
988
+ delete e[g];
989
+ for (const N of Object.keys(t))
990
+ t[N] === g && delete t[N];
1004
991
  }
1005
992
  function v() {
1006
993
  return Object.keys(e);
1007
994
  }
1008
- function C(u) {
1009
- return u = (u || "").toLowerCase(), e[u] || e[t[u]];
995
+ function C(g) {
996
+ return g = (g || "").toLowerCase(), e[g] || e[t[g]];
1010
997
  }
1011
- function G(u, { languageName: f }) {
1012
- typeof u == "string" && (u = [u]), u.forEach((O) => {
1013
- t[O.toLowerCase()] = f;
998
+ function q(g, { languageName: N }) {
999
+ typeof g == "string" && (g = [g]), g.forEach((S) => {
1000
+ t[S.toLowerCase()] = N;
1014
1001
  });
1015
1002
  }
1016
- function F(u) {
1017
- const f = C(u);
1018
- return f && !f.disableAutodetect;
1003
+ function B(g) {
1004
+ const N = C(g);
1005
+ return N && !N.disableAutodetect;
1019
1006
  }
1020
- function J(u) {
1021
- u["before:highlightBlock"] && !u["before:highlightElement"] && (u["before:highlightElement"] = (f) => {
1022
- u["before:highlightBlock"](
1023
- Object.assign({ block: f.el }, f)
1007
+ function ne(g) {
1008
+ g["before:highlightBlock"] && !g["before:highlightElement"] && (g["before:highlightElement"] = (N) => {
1009
+ g["before:highlightBlock"](
1010
+ Object.assign({ block: N.el }, N)
1024
1011
  );
1025
- }), u["after:highlightBlock"] && !u["after:highlightElement"] && (u["after:highlightElement"] = (f) => {
1026
- u["after:highlightBlock"](
1027
- Object.assign({ block: f.el }, f)
1012
+ }), g["after:highlightBlock"] && !g["after:highlightElement"] && (g["after:highlightElement"] = (N) => {
1013
+ g["after:highlightBlock"](
1014
+ Object.assign({ block: N.el }, N)
1028
1015
  );
1029
1016
  });
1030
1017
  }
1031
- function re(u) {
1032
- J(u), s.push(u);
1018
+ function Q(g) {
1019
+ ne(g), s.push(g);
1033
1020
  }
1034
- function W(u) {
1035
- const f = s.indexOf(u);
1036
- f !== -1 && s.splice(f, 1);
1037
- }
1038
- function U(u, f) {
1039
- const O = u;
1040
- s.forEach(function(x) {
1041
- x[O] && x[O](f);
1021
+ function z(g, N) {
1022
+ const S = g;
1023
+ s.forEach(function(k) {
1024
+ k[S] && k[S](N);
1042
1025
  });
1043
1026
  }
1044
- function X(u) {
1045
- return fe("10.7.0", "highlightBlock will be removed entirely in v12.0"), fe("10.7.0", "Please use highlightElement now."), E(u);
1027
+ function V(g) {
1028
+ return _e("10.7.0", "highlightBlock will be removed entirely in v12.0"), _e("10.7.0", "Please use highlightElement now."), E(g);
1046
1029
  }
1047
1030
  Object.assign(n, {
1048
1031
  highlight: l,
1049
1032
  highlightAuto: p,
1050
- highlightAll: A,
1033
+ highlightAll: M,
1051
1034
  highlightElement: E,
1052
1035
  // TODO: Remove with v12 API
1053
- highlightBlock: X,
1054
- configure: N,
1055
- initHighlighting: h,
1056
- initHighlightingOnLoad: S,
1036
+ highlightBlock: V,
1037
+ configure: h,
1038
+ initHighlighting: f,
1039
+ initHighlightingOnLoad: A,
1057
1040
  registerLanguage: L,
1058
- unregisterLanguage: B,
1041
+ unregisterLanguage: D,
1059
1042
  listLanguages: v,
1060
1043
  getLanguage: C,
1061
- registerAliases: G,
1062
- autoDetection: F,
1063
- inherit: wn,
1064
- addPlugin: re,
1065
- removePlugin: W
1044
+ registerAliases: q,
1045
+ autoDetection: B,
1046
+ inherit: An,
1047
+ addPlugin: Q
1066
1048
  }), n.debugMode = function() {
1067
1049
  c = !1;
1068
1050
  }, n.safeMode = function() {
1069
1051
  c = !0;
1070
- }, n.versionString = Nr, n.regex = {
1052
+ }, n.versionString = hr, n.regex = {
1071
1053
  concat: be,
1072
- lookahead: gt,
1073
- either: En,
1074
- optional: Bt,
1075
- anyNumberOfTimes: Lt
1054
+ lookahead: bt,
1055
+ either: fn,
1056
+ optional: Lt,
1057
+ anyNumberOfTimes: Dt
1076
1058
  };
1077
- for (const u in Me)
1078
- typeof Me[u] == "object" && dt(Me[u]);
1079
- return Object.assign(n, Me), n;
1080
- }, he = yt({});
1081
- he.newInstance = () => yt({});
1082
- var Tr = he;
1083
- he.HighlightJS = he;
1084
- he.default = he;
1085
- var xe, An;
1059
+ for (const g in we)
1060
+ typeof we[g] == "object" && _n.exports(we[g]);
1061
+ return Object.assign(n, we), n;
1062
+ };
1063
+ var ye = vr({}), Tr = ye;
1064
+ ye.HighlightJS = ye;
1065
+ ye.default = ye;
1066
+ var ke, In;
1086
1067
  function Sr() {
1087
- if (An)
1088
- return xe;
1089
- An = 1;
1068
+ if (In)
1069
+ return ke;
1070
+ In = 1;
1090
1071
  function n(e) {
1091
1072
  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 = {
1092
1073
  className: "symbol",
@@ -1303,13 +1284,13 @@ function Sr() {
1303
1284
  ]
1304
1285
  };
1305
1286
  }
1306
- return xe = n, xe;
1287
+ return ke = n, ke;
1307
1288
  }
1308
- var De, Mn;
1309
- function Or() {
1310
- if (Mn)
1311
- return De;
1312
- Mn = 1;
1289
+ var xe, Cn;
1290
+ function wr() {
1291
+ if (Cn)
1292
+ return xe;
1293
+ Cn = 1;
1313
1294
  function n(e) {
1314
1295
  const t = e.regex, s = {}, c = {
1315
1296
  begin: /\$\{/,
@@ -1378,7 +1359,7 @@ function Or() {
1378
1359
  e.NUMBER_MODE,
1379
1360
  s
1380
1361
  ]
1381
- }, g = [
1362
+ }, u = [
1382
1363
  "fish",
1383
1364
  "bash",
1384
1365
  "zsh",
@@ -1389,7 +1370,7 @@ function Or() {
1389
1370
  "dash",
1390
1371
  "scsh"
1391
1372
  ], b = e.SHEBANG({
1392
- binary: `(${g.join("|")})`,
1373
+ binary: `(${u.join("|")})`,
1393
1374
  relevance: 10
1394
1375
  }), p = {
1395
1376
  className: "function",
@@ -1405,18 +1386,16 @@ function Or() {
1405
1386
  "fi",
1406
1387
  "for",
1407
1388
  "while",
1408
- "until",
1409
1389
  "in",
1410
1390
  "do",
1411
1391
  "done",
1412
1392
  "case",
1413
1393
  "esac",
1414
- "function",
1415
- "select"
1394
+ "function"
1416
1395
  ], E = [
1417
1396
  "true",
1418
1397
  "false"
1419
- ], N = { match: /(\/[a-z._-]+)+/ }, h = [
1398
+ ], h = { match: /(\/[a-z._-]+)+/ }, f = [
1420
1399
  "break",
1421
1400
  "cd",
1422
1401
  "continue",
@@ -1435,7 +1414,7 @@ function Or() {
1435
1414
  "trap",
1436
1415
  "umask",
1437
1416
  "unset"
1438
- ], S = [
1417
+ ], A = [
1439
1418
  "alias",
1440
1419
  "bind",
1441
1420
  "builtin",
@@ -1457,7 +1436,7 @@ function Or() {
1457
1436
  "typeset",
1458
1437
  "ulimit",
1459
1438
  "unalias"
1460
- ], I = [
1439
+ ], R = [
1461
1440
  "autoload",
1462
1441
  "bg",
1463
1442
  "bindkey",
@@ -1526,7 +1505,7 @@ function Or() {
1526
1505
  "zsocket",
1527
1506
  "zstyle",
1528
1507
  "ztcp"
1529
- ], A = [
1508
+ ], M = [
1530
1509
  "chcon",
1531
1510
  "chgrp",
1532
1511
  "chown",
@@ -1639,13 +1618,13 @@ function Or() {
1639
1618
  keyword: m,
1640
1619
  literal: E,
1641
1620
  built_in: [
1642
- ...h,
1643
- ...S,
1621
+ ...f,
1622
+ ...A,
1644
1623
  // Shell modifiers
1645
1624
  "set",
1646
1625
  "shopt",
1647
- ...I,
1648
- ...A
1626
+ ...R,
1627
+ ...M
1649
1628
  ]
1650
1629
  },
1651
1630
  contains: [
@@ -1657,7 +1636,7 @@ function Or() {
1657
1636
  l,
1658
1637
  e.HASH_COMMENT_MODE,
1659
1638
  a,
1660
- N,
1639
+ h,
1661
1640
  r,
1662
1641
  i,
1663
1642
  d,
@@ -1665,13 +1644,13 @@ function Or() {
1665
1644
  ]
1666
1645
  };
1667
1646
  }
1668
- return De = n, De;
1647
+ return xe = n, xe;
1669
1648
  }
1670
- var Le, In;
1671
- function wr() {
1672
- if (In)
1673
- return Le;
1674
- In = 1;
1649
+ var De, kn;
1650
+ function Or() {
1651
+ if (kn)
1652
+ return De;
1653
+ kn = 1;
1675
1654
  function n(e) {
1676
1655
  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 = {
1677
1656
  className: "type",
@@ -1698,7 +1677,7 @@ function wr() {
1698
1677
  end: /\)([^()\\ ]{0,16})"/
1699
1678
  })
1700
1679
  ]
1701
- }, g = {
1680
+ }, u = {
1702
1681
  className: "number",
1703
1682
  variants: [
1704
1683
  { begin: "\\b(0b[01']+)" },
@@ -1728,7 +1707,7 @@ function wr() {
1728
1707
  className: "title",
1729
1708
  begin: t.optional(o) + e.IDENT_RE,
1730
1709
  relevance: 0
1731
- }, m = t.optional(o) + e.IDENT_RE + "\\s*\\(", h = {
1710
+ }, m = t.optional(o) + e.IDENT_RE + "\\s*\\(", f = {
1732
1711
  keyword: [
1733
1712
  "asm",
1734
1713
  "auto",
@@ -1798,14 +1777,14 @@ function wr() {
1798
1777
  literal: "true false NULL",
1799
1778
  // TODO: apply hinting work similar to what was done in cpp.js
1800
1779
  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"
1801
- }, S = [
1780
+ }, A = [
1802
1781
  b,
1803
1782
  i,
1804
1783
  s,
1805
1784
  e.C_BLOCK_COMMENT_MODE,
1806
- g,
1785
+ u,
1807
1786
  l
1808
- ], I = {
1787
+ ], R = {
1809
1788
  // This mode covers expression context where we can't expect a function
1810
1789
  // definition and shouldn't highlight anything that looks like one:
1811
1790
  // `return some()`, `else if()`, `(x*sum(1, 2))`
@@ -1823,29 +1802,29 @@ function wr() {
1823
1802
  end: /;/
1824
1803
  }
1825
1804
  ],
1826
- keywords: h,
1827
- contains: S.concat([
1805
+ keywords: f,
1806
+ contains: A.concat([
1828
1807
  {
1829
1808
  begin: /\(/,
1830
1809
  end: /\)/,
1831
- keywords: h,
1832
- contains: S.concat(["self"]),
1810
+ keywords: f,
1811
+ contains: A.concat(["self"]),
1833
1812
  relevance: 0
1834
1813
  }
1835
1814
  ]),
1836
1815
  relevance: 0
1837
- }, A = {
1816
+ }, M = {
1838
1817
  begin: "(" + r + "[\\*&\\s]+)+" + m,
1839
1818
  returnBegin: !0,
1840
1819
  end: /[{;=]/,
1841
1820
  excludeEnd: !0,
1842
- keywords: h,
1821
+ keywords: f,
1843
1822
  illegal: /[^\w\s\*&:<>.]/,
1844
1823
  contains: [
1845
1824
  {
1846
1825
  // to prevent it from being confused as the function title
1847
1826
  begin: c,
1848
- keywords: h,
1827
+ keywords: f,
1849
1828
  relevance: 0
1850
1829
  },
1851
1830
  {
@@ -1864,26 +1843,26 @@ function wr() {
1864
1843
  className: "params",
1865
1844
  begin: /\(/,
1866
1845
  end: /\)/,
1867
- keywords: h,
1846
+ keywords: f,
1868
1847
  relevance: 0,
1869
1848
  contains: [
1870
1849
  s,
1871
1850
  e.C_BLOCK_COMMENT_MODE,
1872
1851
  l,
1873
- g,
1852
+ u,
1874
1853
  i,
1875
1854
  // Count matching parentheses.
1876
1855
  {
1877
1856
  begin: /\(/,
1878
1857
  end: /\)/,
1879
- keywords: h,
1858
+ keywords: f,
1880
1859
  relevance: 0,
1881
1860
  contains: [
1882
1861
  "self",
1883
1862
  s,
1884
1863
  e.C_BLOCK_COMMENT_MODE,
1885
1864
  l,
1886
- g,
1865
+ u,
1887
1866
  i
1888
1867
  ]
1889
1868
  }
@@ -1898,20 +1877,20 @@ function wr() {
1898
1877
  return {
1899
1878
  name: "C",
1900
1879
  aliases: ["h"],
1901
- keywords: h,
1880
+ keywords: f,
1902
1881
  // Until differentiations are added between `c` and `cpp`, `c` will
1903
1882
  // not be auto-detected to avoid auto-detect conflicts between C and C++
1904
1883
  disableAutodetect: !0,
1905
1884
  illegal: "</",
1906
1885
  contains: [].concat(
1907
- I,
1886
+ R,
1887
+ M,
1908
1888
  A,
1909
- S,
1910
1889
  [
1911
1890
  b,
1912
1891
  {
1913
1892
  begin: e.IDENT_RE + "::",
1914
- keywords: h
1893
+ keywords: f
1915
1894
  },
1916
1895
  {
1917
1896
  className: "class",
@@ -1927,17 +1906,17 @@ function wr() {
1927
1906
  exports: {
1928
1907
  preprocessor: b,
1929
1908
  strings: l,
1930
- keywords: h
1909
+ keywords: f
1931
1910
  }
1932
1911
  };
1933
1912
  }
1934
- return Le = n, Le;
1913
+ return De = n, De;
1935
1914
  }
1936
- var Be, Cn;
1915
+ var Le, xn;
1937
1916
  function Rr() {
1938
- if (Cn)
1939
- return Be;
1940
- Cn = 1;
1917
+ if (xn)
1918
+ return Le;
1919
+ xn = 1;
1941
1920
  function n(e) {
1942
1921
  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 = {
1943
1922
  className: "type",
@@ -1961,7 +1940,7 @@ function Rr() {
1961
1940
  end: /\)([^()\\ ]{0,16})"/
1962
1941
  })
1963
1942
  ]
1964
- }, g = {
1943
+ }, u = {
1965
1944
  className: "number",
1966
1945
  variants: [
1967
1946
  { begin: "\\b(0b[01']+)" },
@@ -2079,7 +2058,7 @@ function Rr() {
2079
2058
  "while",
2080
2059
  "xor",
2081
2060
  "xor_eq"
2082
- ], N = [
2061
+ ], h = [
2083
2062
  "bool",
2084
2063
  "char",
2085
2064
  "char16_t",
@@ -2096,7 +2075,7 @@ function Rr() {
2096
2075
  "signed",
2097
2076
  "const",
2098
2077
  "static"
2099
- ], h = [
2078
+ ], f = [
2100
2079
  "any",
2101
2080
  "auto_ptr",
2102
2081
  "barrier",
@@ -2152,7 +2131,7 @@ function Rr() {
2152
2131
  "weak_ptr",
2153
2132
  "wstring",
2154
2133
  "wstring_view"
2155
- ], S = [
2134
+ ], A = [
2156
2135
  "abort",
2157
2136
  "abs",
2158
2137
  "acos",
@@ -2253,8 +2232,8 @@ function Rr() {
2253
2232
  "visit",
2254
2233
  "vprintf",
2255
2234
  "vsprintf"
2256
- ], M = {
2257
- type: N,
2235
+ ], I = {
2236
+ type: h,
2258
2237
  keyword: E,
2259
2238
  literal: [
2260
2239
  "NULL",
@@ -2264,13 +2243,13 @@ function Rr() {
2264
2243
  "true"
2265
2244
  ],
2266
2245
  built_in: ["_Pragma"],
2267
- _type_hints: h
2246
+ _type_hints: f
2268
2247
  }, L = {
2269
2248
  className: "function.dispatch",
2270
2249
  relevance: 0,
2271
2250
  keywords: {
2272
2251
  // Only for relevance, not highlighting.
2273
- _hint: S
2252
+ _hint: A
2274
2253
  },
2275
2254
  begin: t.concat(
2276
2255
  /\b/,
@@ -2282,13 +2261,13 @@ function Rr() {
2282
2261
  e.IDENT_RE,
2283
2262
  t.lookahead(/(<[^<>]+>|)\s*\(/)
2284
2263
  )
2285
- }, B = [
2264
+ }, D = [
2286
2265
  L,
2287
2266
  b,
2288
2267
  i,
2289
2268
  s,
2290
2269
  e.C_BLOCK_COMMENT_MODE,
2291
- g,
2270
+ u,
2292
2271
  l
2293
2272
  ], v = {
2294
2273
  // This mode covers expression context where we can't expect a function
@@ -2308,13 +2287,13 @@ function Rr() {
2308
2287
  end: /;/
2309
2288
  }
2310
2289
  ],
2311
- keywords: M,
2312
- contains: B.concat([
2290
+ keywords: I,
2291
+ contains: D.concat([
2313
2292
  {
2314
2293
  begin: /\(/,
2315
2294
  end: /\)/,
2316
- keywords: M,
2317
- contains: B.concat(["self"]),
2295
+ keywords: I,
2296
+ contains: D.concat(["self"]),
2318
2297
  relevance: 0
2319
2298
  }
2320
2299
  ]),
@@ -2325,13 +2304,13 @@ function Rr() {
2325
2304
  returnBegin: !0,
2326
2305
  end: /[{;=]/,
2327
2306
  excludeEnd: !0,
2328
- keywords: M,
2307
+ keywords: I,
2329
2308
  illegal: /[^\w\s\*&:<>.]/,
2330
2309
  contains: [
2331
2310
  {
2332
2311
  // to prevent it from being confused as the function title
2333
2312
  begin: c,
2334
- keywords: M,
2313
+ keywords: I,
2335
2314
  relevance: 0
2336
2315
  },
2337
2316
  {
@@ -2352,7 +2331,7 @@ function Rr() {
2352
2331
  endsWithParent: !0,
2353
2332
  contains: [
2354
2333
  l,
2355
- g
2334
+ u
2356
2335
  ]
2357
2336
  },
2358
2337
  // allow for multiple declarations, e.g.:
@@ -2365,26 +2344,26 @@ function Rr() {
2365
2344
  className: "params",
2366
2345
  begin: /\(/,
2367
2346
  end: /\)/,
2368
- keywords: M,
2347
+ keywords: I,
2369
2348
  relevance: 0,
2370
2349
  contains: [
2371
2350
  s,
2372
2351
  e.C_BLOCK_COMMENT_MODE,
2373
2352
  l,
2374
- g,
2353
+ u,
2375
2354
  i,
2376
2355
  // Count matching parentheses.
2377
2356
  {
2378
2357
  begin: /\(/,
2379
2358
  end: /\)/,
2380
- keywords: M,
2359
+ keywords: I,
2381
2360
  relevance: 0,
2382
2361
  contains: [
2383
2362
  "self",
2384
2363
  s,
2385
2364
  e.C_BLOCK_COMMENT_MODE,
2386
2365
  l,
2387
- g,
2366
+ u,
2388
2367
  i
2389
2368
  ]
2390
2369
  }
@@ -2407,21 +2386,21 @@ function Rr() {
2407
2386
  "hxx",
2408
2387
  "cxx"
2409
2388
  ],
2410
- keywords: M,
2389
+ keywords: I,
2411
2390
  illegal: "</",
2412
2391
  classNameAliases: { "function.dispatch": "built_in" },
2413
2392
  contains: [].concat(
2414
2393
  v,
2415
2394
  C,
2416
2395
  L,
2417
- B,
2396
+ D,
2418
2397
  [
2419
2398
  b,
2420
2399
  {
2421
2400
  // containers: ie, `vector <int> rooms (9);`
2422
2401
  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*<(?!<)",
2423
2402
  end: ">",
2424
- keywords: M,
2403
+ keywords: I,
2425
2404
  contains: [
2426
2405
  "self",
2427
2406
  i
@@ -2429,7 +2408,7 @@ function Rr() {
2429
2408
  },
2430
2409
  {
2431
2410
  begin: e.IDENT_RE + "::",
2432
- keywords: M
2411
+ keywords: I
2433
2412
  },
2434
2413
  {
2435
2414
  match: [
@@ -2447,13 +2426,13 @@ function Rr() {
2447
2426
  )
2448
2427
  };
2449
2428
  }
2450
- return Be = n, Be;
2429
+ return Le = n, Le;
2451
2430
  }
2452
- var Ue, kn;
2431
+ var Be, Dn;
2453
2432
  function Ar() {
2454
- if (kn)
2455
- return Ue;
2456
- kn = 1;
2433
+ if (Dn)
2434
+ return Be;
2435
+ Dn = 1;
2457
2436
  function n(e) {
2458
2437
  const t = [
2459
2438
  "bool",
@@ -2607,7 +2586,7 @@ function Ar() {
2607
2586
  begin: '@"',
2608
2587
  end: '"',
2609
2588
  contains: [{ begin: '""' }]
2610
- }, g = e.inherit(l, { illegal: /\n/ }), b = {
2589
+ }, u = e.inherit(l, { illegal: /\n/ }), b = {
2611
2590
  className: "subst",
2612
2591
  begin: /\{/,
2613
2592
  end: /\}/,
@@ -2633,7 +2612,7 @@ function Ar() {
2633
2612
  { begin: '""' },
2634
2613
  b
2635
2614
  ]
2636
- }, N = e.inherit(E, {
2615
+ }, h = e.inherit(E, {
2637
2616
  illegal: /\n/,
2638
2617
  contains: [
2639
2618
  { begin: /\{\{/ },
@@ -2651,28 +2630,28 @@ function Ar() {
2651
2630
  d,
2652
2631
  e.C_BLOCK_COMMENT_MODE
2653
2632
  ], p.contains = [
2654
- N,
2633
+ h,
2655
2634
  m,
2656
- g,
2635
+ u,
2657
2636
  e.APOS_STRING_MODE,
2658
2637
  e.QUOTE_STRING_MODE,
2659
2638
  d,
2660
2639
  e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
2661
2640
  ];
2662
- const h = { variants: [
2641
+ const f = { variants: [
2663
2642
  E,
2664
2643
  m,
2665
2644
  l,
2666
2645
  e.APOS_STRING_MODE,
2667
2646
  e.QUOTE_STRING_MODE
2668
- ] }, S = {
2647
+ ] }, A = {
2669
2648
  begin: "<",
2670
2649
  end: ">",
2671
2650
  contains: [
2672
2651
  { beginKeywords: "in out" },
2673
2652
  i
2674
2653
  ]
2675
- }, I = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", A = {
2654
+ }, R = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", M = {
2676
2655
  // prevents expressions like `@class` from incorrect flagging
2677
2656
  // `class` as a keyword
2678
2657
  begin: "@" + e.IDENT_RE,
@@ -2718,7 +2697,7 @@ function Ar() {
2718
2697
  end: "$",
2719
2698
  keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
2720
2699
  },
2721
- h,
2700
+ f,
2722
2701
  d,
2723
2702
  {
2724
2703
  beginKeywords: "class interface",
@@ -2728,7 +2707,7 @@ function Ar() {
2728
2707
  contains: [
2729
2708
  { beginKeywords: "where class" },
2730
2709
  i,
2731
- S,
2710
+ A,
2732
2711
  e.C_LINE_COMMENT_MODE,
2733
2712
  e.C_BLOCK_COMMENT_MODE
2734
2713
  ]
@@ -2751,7 +2730,7 @@ function Ar() {
2751
2730
  illegal: /[^\s:]/,
2752
2731
  contains: [
2753
2732
  i,
2754
- S,
2733
+ A,
2755
2734
  e.C_LINE_COMMENT_MODE,
2756
2735
  e.C_BLOCK_COMMENT_MODE
2757
2736
  ]
@@ -2779,7 +2758,7 @@ function Ar() {
2779
2758
  },
2780
2759
  {
2781
2760
  className: "function",
2782
- begin: "(" + I + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
2761
+ begin: "(" + R + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
2783
2762
  returnBegin: !0,
2784
2763
  end: /\s*[{;=]/,
2785
2764
  excludeEnd: !0,
@@ -2795,7 +2774,7 @@ function Ar() {
2795
2774
  returnBegin: !0,
2796
2775
  contains: [
2797
2776
  e.TITLE_MODE,
2798
- S
2777
+ A
2799
2778
  ],
2800
2779
  relevance: 0
2801
2780
  },
@@ -2809,7 +2788,7 @@ function Ar() {
2809
2788
  keywords: r,
2810
2789
  relevance: 0,
2811
2790
  contains: [
2812
- h,
2791
+ f,
2813
2792
  d,
2814
2793
  e.C_BLOCK_COMMENT_MODE
2815
2794
  ]
@@ -2818,17 +2797,17 @@ function Ar() {
2818
2797
  e.C_BLOCK_COMMENT_MODE
2819
2798
  ]
2820
2799
  },
2821
- A
2800
+ M
2822
2801
  ]
2823
2802
  };
2824
2803
  }
2825
- return Ue = n, Ue;
2804
+ return Be = n, Be;
2826
2805
  }
2827
- var Pe, xn;
2806
+ var Ue, Ln;
2828
2807
  function Mr() {
2829
- if (xn)
2830
- return Pe;
2831
- xn = 1;
2808
+ if (Ln)
2809
+ return Ue;
2810
+ Ln = 1;
2832
2811
  const n = (r) => ({
2833
2812
  IMPORTANT: {
2834
2813
  scope: "meta",
@@ -3423,7 +3402,7 @@ function Mr() {
3423
3402
  // instead of getting false positives on say `font`
3424
3403
  ].reverse();
3425
3404
  function a(r) {
3426
- const i = r.regex, d = n(r), l = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, g = "and or not only", b = /@-?\w[\w]*(-\w+)*/, p = "[a-zA-Z-][a-zA-Z0-9_-]*", m = [
3405
+ const i = r.regex, d = n(r), l = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, u = "and or not only", b = /@-?\w[\w]*(-\w+)*/, p = "[a-zA-Z-][a-zA-Z0-9_-]*", m = [
3427
3406
  r.APOS_STRING_MODE,
3428
3407
  r.QUOTE_STRING_MODE
3429
3408
  ];
@@ -3524,7 +3503,7 @@ function Mr() {
3524
3503
  relevance: 0,
3525
3504
  keywords: {
3526
3505
  $pattern: /[a-z-]+/,
3527
- keyword: g,
3506
+ keyword: u,
3528
3507
  attribute: t.join(" ")
3529
3508
  },
3530
3509
  contains: [
@@ -3545,13 +3524,13 @@ function Mr() {
3545
3524
  ]
3546
3525
  };
3547
3526
  }
3548
- return Pe = a, Pe;
3527
+ return Ue = a, Ue;
3549
3528
  }
3550
- var Fe, Dn;
3529
+ var Pe, Bn;
3551
3530
  function Ir() {
3552
- if (Dn)
3553
- return Fe;
3554
- Dn = 1;
3531
+ if (Bn)
3532
+ return Pe;
3533
+ Bn = 1;
3555
3534
  function n(e) {
3556
3535
  const t = e.regex, s = {
3557
3536
  begin: /<\/?[A-Za-z_]/,
@@ -3686,7 +3665,7 @@ function Ir() {
3686
3665
  end: /\*{2}/
3687
3666
  }
3688
3667
  ]
3689
- }, g = {
3668
+ }, u = {
3690
3669
  className: "emphasis",
3691
3670
  contains: [],
3692
3671
  // defined later
@@ -3701,20 +3680,20 @@ function Ir() {
3701
3680
  relevance: 0
3702
3681
  }
3703
3682
  ]
3704
- }, b = e.inherit(l, { contains: [] }), p = e.inherit(g, { contains: [] });
3705
- l.contains.push(p), g.contains.push(b);
3683
+ }, b = e.inherit(l, { contains: [] }), p = e.inherit(u, { contains: [] });
3684
+ l.contains.push(p), u.contains.push(b);
3706
3685
  let m = [
3707
3686
  s,
3708
3687
  d
3709
3688
  ];
3710
3689
  return [
3711
3690
  l,
3712
- g,
3691
+ u,
3713
3692
  b,
3714
3693
  p
3715
- ].forEach((h) => {
3716
- h.contains = h.contains.concat(m);
3717
- }), m = m.concat(l, g), {
3694
+ ].forEach((f) => {
3695
+ f.contains = f.contains.concat(m);
3696
+ }), m = m.concat(l, u), {
3718
3697
  name: "Markdown",
3719
3698
  aliases: [
3720
3699
  "md",
@@ -3746,7 +3725,7 @@ function Ir() {
3746
3725
  s,
3747
3726
  a,
3748
3727
  l,
3749
- g,
3728
+ u,
3750
3729
  {
3751
3730
  className: "quote",
3752
3731
  begin: "^>\\s+",
@@ -3760,13 +3739,13 @@ function Ir() {
3760
3739
  ]
3761
3740
  };
3762
3741
  }
3763
- return Fe = n, Fe;
3742
+ return Pe = n, Pe;
3764
3743
  }
3765
- var $e, Ln;
3744
+ var Fe, Un;
3766
3745
  function Cr() {
3767
- if (Ln)
3768
- return $e;
3769
- Ln = 1;
3746
+ if (Un)
3747
+ return Fe;
3748
+ Un = 1;
3770
3749
  function n(e) {
3771
3750
  const t = e.regex;
3772
3751
  return {
@@ -3818,13 +3797,13 @@ function Cr() {
3818
3797
  ]
3819
3798
  };
3820
3799
  }
3821
- return $e = n, $e;
3800
+ return Fe = n, Fe;
3822
3801
  }
3823
- var ze, Bn;
3802
+ var $e, Pn;
3824
3803
  function kr() {
3825
- if (Bn)
3826
- return ze;
3827
- Bn = 1;
3804
+ if (Pn)
3805
+ return $e;
3806
+ Pn = 1;
3828
3807
  function n(e) {
3829
3808
  const t = e.regex, s = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", c = t.either(
3830
3809
  /\b([A-Z]+[a-z0-9]+)+/,
@@ -3921,7 +3900,7 @@ function kr() {
3921
3900
  }
3922
3901
  ),
3923
3902
  e.COMMENT("^__END__", e.MATCH_NOTHING_RE)
3924
- ], g = {
3903
+ ], u = {
3925
3904
  className: "subst",
3926
3905
  begin: /#\{/,
3927
3906
  end: /\}/,
@@ -3930,7 +3909,7 @@ function kr() {
3930
3909
  className: "string",
3931
3910
  contains: [
3932
3911
  e.BACKSLASH_ESCAPE,
3933
- g
3912
+ u
3934
3913
  ],
3935
3914
  variants: [
3936
3915
  {
@@ -3999,7 +3978,7 @@ function kr() {
3999
3978
  end: /(\w+)/,
4000
3979
  contains: [
4001
3980
  e.BACKSLASH_ESCAPE,
4002
- g
3981
+ u
4003
3982
  ]
4004
3983
  })
4005
3984
  ]
@@ -4020,7 +3999,7 @@ function kr() {
4020
3999
  // 0-prefixed implicit octal integer, optionally rational and/or imaginary
4021
4000
  { begin: "\\b0(_?[0-7])+r?i?\\b" }
4022
4001
  ]
4023
- }, N = {
4002
+ }, h = {
4024
4003
  variants: [
4025
4004
  {
4026
4005
  match: /\(\)/
@@ -4034,7 +4013,7 @@ function kr() {
4034
4013
  keywords: r
4035
4014
  }
4036
4015
  ]
4037
- }, B = [
4016
+ }, D = [
4038
4017
  b,
4039
4018
  {
4040
4019
  variants: [
@@ -4100,7 +4079,7 @@ function kr() {
4100
4079
  3: "title.function"
4101
4080
  },
4102
4081
  contains: [
4103
- N
4082
+ h
4104
4083
  ]
4105
4084
  },
4106
4085
  {
@@ -4147,7 +4126,7 @@ function kr() {
4147
4126
  className: "regexp",
4148
4127
  contains: [
4149
4128
  e.BACKSLASH_ESCAPE,
4150
- g
4129
+ u
4151
4130
  ],
4152
4131
  illegal: /\n/,
4153
4132
  variants: [
@@ -4177,22 +4156,22 @@ function kr() {
4177
4156
  relevance: 0
4178
4157
  }
4179
4158
  ].concat(d, l);
4180
- g.contains = B, N.contains = B;
4181
- const v = "[>?]>", C = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", G = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", F = [
4159
+ u.contains = D, h.contains = D;
4160
+ const v = "[>?]>", C = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", q = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", B = [
4182
4161
  {
4183
4162
  begin: /^\s*=>/,
4184
4163
  starts: {
4185
4164
  end: "$",
4186
- contains: B
4165
+ contains: D
4187
4166
  }
4188
4167
  },
4189
4168
  {
4190
4169
  className: "meta.prompt",
4191
- begin: "^(" + v + "|" + C + "|" + G + ")(?=[ ])",
4170
+ begin: "^(" + v + "|" + C + "|" + q + ")(?=[ ])",
4192
4171
  starts: {
4193
4172
  end: "$",
4194
4173
  keywords: r,
4195
- contains: B
4174
+ contains: D
4196
4175
  }
4197
4176
  }
4198
4177
  ];
@@ -4207,16 +4186,16 @@ function kr() {
4207
4186
  ],
4208
4187
  keywords: r,
4209
4188
  illegal: /\/\*/,
4210
- contains: [e.SHEBANG({ binary: "ruby" })].concat(F).concat(l).concat(B)
4189
+ contains: [e.SHEBANG({ binary: "ruby" })].concat(B).concat(l).concat(D)
4211
4190
  };
4212
4191
  }
4213
- return ze = n, ze;
4192
+ return $e = n, $e;
4214
4193
  }
4215
- var Ke, Un;
4194
+ var ze, Fn;
4216
4195
  function xr() {
4217
- if (Un)
4218
- return Ke;
4219
- Un = 1;
4196
+ if (Fn)
4197
+ return ze;
4198
+ Fn = 1;
4220
4199
  function n(e) {
4221
4200
  const a = {
4222
4201
  keyword: [
@@ -4345,13 +4324,13 @@ function xr() {
4345
4324
  ]
4346
4325
  };
4347
4326
  }
4348
- return Ke = n, Ke;
4327
+ return ze = n, ze;
4349
4328
  }
4350
- var qe, Pn;
4329
+ var Ke, $n;
4351
4330
  function Dr() {
4352
- if (Pn)
4353
- return qe;
4354
- Pn = 1;
4331
+ if ($n)
4332
+ return Ke;
4333
+ $n = 1;
4355
4334
  function n(e) {
4356
4335
  const t = e.regex, s = /[_A-Za-z][_0-9A-Za-z]*/;
4357
4336
  return {
@@ -4419,13 +4398,13 @@ function Dr() {
4419
4398
  ]
4420
4399
  };
4421
4400
  }
4422
- return qe = n, qe;
4401
+ return Ke = n, Ke;
4423
4402
  }
4424
- var He, Fn;
4403
+ var qe, zn;
4425
4404
  function Lr() {
4426
- if (Fn)
4427
- return He;
4428
- Fn = 1;
4405
+ if (zn)
4406
+ return qe;
4407
+ zn = 1;
4429
4408
  function n(e) {
4430
4409
  const t = e.regex, s = {
4431
4410
  className: "number",
@@ -4489,10 +4468,10 @@ function Lr() {
4489
4468
  "self"
4490
4469
  ],
4491
4470
  relevance: 0
4492
- }, d = /[A-Za-z0-9_-]+/, l = /"(\\"|[^"])*"/, g = /'[^']*'/, b = t.either(
4471
+ }, d = /[A-Za-z0-9_-]+/, l = /"(\\"|[^"])*"/, u = /'[^']*'/, b = t.either(
4493
4472
  d,
4494
4473
  l,
4495
- g
4474
+ u
4496
4475
  ), p = t.concat(
4497
4476
  b,
4498
4477
  "(\\s*\\.\\s*",
@@ -4530,13 +4509,13 @@ function Lr() {
4530
4509
  ]
4531
4510
  };
4532
4511
  }
4533
- return He = n, He;
4512
+ return qe = n, qe;
4534
4513
  }
4535
- var Ge, $n;
4514
+ var Ge, Kn;
4536
4515
  function Br() {
4537
- if ($n)
4516
+ if (Kn)
4538
4517
  return Ge;
4539
- $n = 1;
4518
+ Kn = 1;
4540
4519
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
4541
4520
  className: "number",
4542
4521
  variants: [
@@ -4639,7 +4618,7 @@ function Br() {
4639
4618
  // allow nested () inside our annotation
4640
4619
  }
4641
4620
  ]
4642
- }, N = {
4621
+ }, h = {
4643
4622
  className: "params",
4644
4623
  begin: /\(/,
4645
4624
  end: /\)/,
@@ -4729,7 +4708,7 @@ function Br() {
4729
4708
  3: "title.class"
4730
4709
  },
4731
4710
  contains: [
4732
- N,
4711
+ h,
4733
4712
  a.C_LINE_COMMENT_MODE,
4734
4713
  a.C_BLOCK_COMMENT_MODE
4735
4714
  ]
@@ -4774,11 +4753,11 @@ function Br() {
4774
4753
  }
4775
4754
  return Ge = o, Ge;
4776
4755
  }
4777
- var We, zn;
4756
+ var He, qn;
4778
4757
  function Ur() {
4779
- if (zn)
4780
- return We;
4781
- zn = 1;
4758
+ if (qn)
4759
+ return He;
4760
+ qn = 1;
4782
4761
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
4783
4762
  "as",
4784
4763
  // for exports
@@ -4914,7 +4893,6 @@ function Ur() {
4914
4893
  "window",
4915
4894
  "document",
4916
4895
  "localStorage",
4917
- "sessionStorage",
4918
4896
  "module",
4919
4897
  "global"
4920
4898
  // Node.js
@@ -4924,9 +4902,9 @@ function Ur() {
4924
4902
  c
4925
4903
  );
4926
4904
  function i(d) {
4927
- const l = d.regex, g = (H, { after: K }) => {
4928
- const Q = "</" + H[0].slice(1);
4929
- return H.input.indexOf(Q, K) !== -1;
4905
+ const l = d.regex, u = (Y, { after: P }) => {
4906
+ const X = "</" + Y[0].slice(1);
4907
+ return Y.input.indexOf(X, P) !== -1;
4930
4908
  }, b = n, p = {
4931
4909
  begin: "<>",
4932
4910
  end: "</>"
@@ -4937,43 +4915,43 @@ function Ur() {
4937
4915
  * @param {RegExpMatchArray} match
4938
4916
  * @param {CallbackResponse} response
4939
4917
  */
4940
- isTrulyOpeningTag: (H, K) => {
4941
- const Q = H[0].length + H.index, j = H.input[Q];
4918
+ isTrulyOpeningTag: (Y, P) => {
4919
+ const X = Y[0].length + Y.index, ee = Y.input[X];
4942
4920
  if (
4943
4921
  // HTML should not include another raw `<` inside a tag
4944
4922
  // nested type?
4945
4923
  // `<Array<Array<number>>`, etc.
4946
- j === "<" || // the , gives away that this is not HTML
4924
+ ee === "<" || // the , gives away that this is not HTML
4947
4925
  // `<T, A extends keyof T, V>`
4948
- j === ","
4926
+ ee === ","
4949
4927
  ) {
4950
- K.ignoreMatch();
4928
+ P.ignoreMatch();
4951
4929
  return;
4952
4930
  }
4953
- j === ">" && (g(H, { after: Q }) || K.ignoreMatch());
4954
- let ee;
4955
- const ae = H.input.substring(Q);
4956
- if (ee = ae.match(/^\s*=/)) {
4957
- K.ignoreMatch();
4931
+ ee === ">" && (u(Y, { after: X }) || P.ignoreMatch());
4932
+ let te;
4933
+ const re = Y.input.substring(X);
4934
+ if (te = re.match(/^\s*=/)) {
4935
+ P.ignoreMatch();
4958
4936
  return;
4959
4937
  }
4960
- if ((ee = ae.match(/^\s+extends\s+/)) && ee.index === 0) {
4961
- K.ignoreMatch();
4938
+ if ((te = re.match(/^\s+extends\s+/)) && te.index === 0) {
4939
+ P.ignoreMatch();
4962
4940
  return;
4963
4941
  }
4964
4942
  }
4965
- }, N = {
4943
+ }, h = {
4966
4944
  $pattern: n,
4967
4945
  keyword: e,
4968
4946
  literal: t,
4969
4947
  built_in: r,
4970
4948
  "variable.language": a
4971
- }, h = "[0-9](_?[0-9])*", S = `\\.(${h})`, I = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
4949
+ }, f = "[0-9](_?[0-9])*", A = `\\.(${f})`, R = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
4972
4950
  className: "number",
4973
4951
  variants: [
4974
4952
  // DecimalLiteral
4975
- { begin: `(\\b(${I})((${S})|\\.)?|(${S}))[eE][+-]?(${h})\\b` },
4976
- { begin: `\\b(${I})\\b((${S})\\b|\\.)?|(${S})\\b` },
4953
+ { begin: `(\\b(${R})((${A})|\\.)?|(${A}))[eE][+-]?(${f})\\b` },
4954
+ { begin: `\\b(${R})\\b((${A})\\b|\\.)?|(${A})\\b` },
4977
4955
  // DecimalBigIntegerLiteral
4978
4956
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
4979
4957
  // NonDecimalIntegerLiteral
@@ -4985,11 +4963,11 @@ function Ur() {
4985
4963
  { begin: "\\b0[0-7]+n?\\b" }
4986
4964
  ],
4987
4965
  relevance: 0
4988
- }, M = {
4966
+ }, I = {
4989
4967
  className: "subst",
4990
4968
  begin: "\\$\\{",
4991
4969
  end: "\\}",
4992
- keywords: N,
4970
+ keywords: h,
4993
4971
  contains: []
4994
4972
  // defined later
4995
4973
  }, L = {
@@ -5000,11 +4978,11 @@ function Ur() {
5000
4978
  returnEnd: !1,
5001
4979
  contains: [
5002
4980
  d.BACKSLASH_ESCAPE,
5003
- M
4981
+ I
5004
4982
  ],
5005
4983
  subLanguage: "xml"
5006
4984
  }
5007
- }, B = {
4985
+ }, D = {
5008
4986
  begin: "css`",
5009
4987
  end: "",
5010
4988
  starts: {
@@ -5012,31 +4990,19 @@ function Ur() {
5012
4990
  returnEnd: !1,
5013
4991
  contains: [
5014
4992
  d.BACKSLASH_ESCAPE,
5015
- M
4993
+ I
5016
4994
  ],
5017
4995
  subLanguage: "css"
5018
4996
  }
5019
4997
  }, v = {
5020
- begin: "gql`",
5021
- end: "",
5022
- starts: {
5023
- end: "`",
5024
- returnEnd: !1,
5025
- contains: [
5026
- d.BACKSLASH_ESCAPE,
5027
- M
5028
- ],
5029
- subLanguage: "graphql"
5030
- }
5031
- }, C = {
5032
4998
  className: "string",
5033
4999
  begin: "`",
5034
5000
  end: "`",
5035
5001
  contains: [
5036
5002
  d.BACKSLASH_ESCAPE,
5037
- M
5003
+ I
5038
5004
  ]
5039
- }, F = {
5005
+ }, q = {
5040
5006
  className: "comment",
5041
5007
  variants: [
5042
5008
  d.COMMENT(
@@ -5081,47 +5047,46 @@ function Ur() {
5081
5047
  d.C_BLOCK_COMMENT_MODE,
5082
5048
  d.C_LINE_COMMENT_MODE
5083
5049
  ]
5084
- }, J = [
5050
+ }, B = [
5085
5051
  d.APOS_STRING_MODE,
5086
5052
  d.QUOTE_STRING_MODE,
5087
5053
  L,
5088
- B,
5054
+ D,
5089
5055
  v,
5090
- C,
5091
5056
  // Skip numbers when they are part of a variable name
5092
5057
  { match: /\$\d+/ },
5093
- A
5058
+ M
5094
5059
  // This is intentional:
5095
5060
  // See https://github.com/highlightjs/highlight.js/issues/3288
5096
5061
  // hljs.REGEXP_MODE
5097
5062
  ];
5098
- M.contains = J.concat({
5063
+ I.contains = B.concat({
5099
5064
  // we need to pair up {} inside our subst to prevent
5100
5065
  // it from ending too early by matching another }
5101
5066
  begin: /\{/,
5102
5067
  end: /\}/,
5103
- keywords: N,
5068
+ keywords: h,
5104
5069
  contains: [
5105
5070
  "self"
5106
- ].concat(J)
5071
+ ].concat(B)
5107
5072
  });
5108
- const re = [].concat(F, M.contains), W = re.concat([
5073
+ const ne = [].concat(q, I.contains), Q = ne.concat([
5109
5074
  // eat recursive parens in sub expressions
5110
5075
  {
5111
5076
  begin: /\(/,
5112
5077
  end: /\)/,
5113
- keywords: N,
5114
- contains: ["self"].concat(re)
5078
+ keywords: h,
5079
+ contains: ["self"].concat(ne)
5115
5080
  }
5116
- ]), U = {
5081
+ ]), z = {
5117
5082
  className: "params",
5118
5083
  begin: /\(/,
5119
5084
  end: /\)/,
5120
5085
  excludeBegin: !0,
5121
5086
  excludeEnd: !0,
5122
- keywords: N,
5123
- contains: W
5124
- }, X = {
5087
+ keywords: h,
5088
+ contains: Q
5089
+ }, V = {
5125
5090
  variants: [
5126
5091
  // class Car extends vehicle
5127
5092
  {
@@ -5154,7 +5119,7 @@ function Ur() {
5154
5119
  }
5155
5120
  }
5156
5121
  ]
5157
- }, u = {
5122
+ }, g = {
5158
5123
  relevance: 0,
5159
5124
  match: l.either(
5160
5125
  // Hard coded exceptions
@@ -5178,12 +5143,12 @@ function Ur() {
5178
5143
  ...c
5179
5144
  ]
5180
5145
  }
5181
- }, f = {
5146
+ }, N = {
5182
5147
  label: "use_strict",
5183
5148
  className: "meta",
5184
5149
  relevance: 10,
5185
5150
  begin: /^\s*['"]use (strict|asm)['"]/
5186
- }, O = {
5151
+ }, S = {
5187
5152
  variants: [
5188
5153
  {
5189
5154
  match: [
@@ -5206,20 +5171,20 @@ function Ur() {
5206
5171
  3: "title.function"
5207
5172
  },
5208
5173
  label: "func.def",
5209
- contains: [U],
5174
+ contains: [z],
5210
5175
  illegal: /%/
5211
- }, x = {
5176
+ }, k = {
5212
5177
  relevance: 0,
5213
5178
  match: /\b[A-Z][A-Z_0-9]+\b/,
5214
5179
  className: "variable.constant"
5215
5180
  };
5216
- function P(H) {
5217
- return l.concat("(?!", H.join("|"), ")");
5181
+ function F(Y) {
5182
+ return l.concat("(?!", Y.join("|"), ")");
5218
5183
  }
5219
- const Y = {
5184
+ const H = {
5220
5185
  match: l.concat(
5221
5186
  /\b/,
5222
- P([
5187
+ F([
5223
5188
  ...o,
5224
5189
  "super",
5225
5190
  "import"
@@ -5229,7 +5194,7 @@ function Ur() {
5229
5194
  ),
5230
5195
  className: "title.function",
5231
5196
  relevance: 0
5232
- }, ne = {
5197
+ }, J = {
5233
5198
  begin: l.concat(/\./, l.lookahead(
5234
5199
  l.concat(b, /(?![0-9A-Za-z$_(])/)
5235
5200
  )),
@@ -5238,7 +5203,7 @@ function Ur() {
5238
5203
  keywords: "prototype",
5239
5204
  className: "property",
5240
5205
  relevance: 0
5241
- }, te = {
5206
+ }, oe = {
5242
5207
  match: [
5243
5208
  /get|set/,
5244
5209
  /\s+/,
@@ -5254,9 +5219,9 @@ function Ur() {
5254
5219
  // eat to avoid empty params
5255
5220
  begin: /\(\)/
5256
5221
  },
5257
- U
5222
+ z
5258
5223
  ]
5259
- }, z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", Z = {
5224
+ }, $ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", W = {
5260
5225
  match: [
5261
5226
  /const|var|let/,
5262
5227
  /\s+/,
@@ -5265,7 +5230,7 @@ function Ur() {
5265
5230
  /=\s*/,
5266
5231
  /(async\s*)?/,
5267
5232
  // async is optional
5268
- l.lookahead(z)
5233
+ l.lookahead($)
5269
5234
  ],
5270
5235
  keywords: "async",
5271
5236
  className: {
@@ -5273,15 +5238,15 @@ function Ur() {
5273
5238
  3: "title.function"
5274
5239
  },
5275
5240
  contains: [
5276
- U
5241
+ z
5277
5242
  ]
5278
5243
  };
5279
5244
  return {
5280
- name: "JavaScript",
5245
+ name: "Javascript",
5281
5246
  aliases: ["js", "jsx", "mjs", "cjs"],
5282
- keywords: N,
5247
+ keywords: h,
5283
5248
  // this will be extended by TypeScript
5284
- exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: u },
5249
+ exports: { PARAMS_CONTAINS: Q, CLASS_REFERENCE: g },
5285
5250
  illegal: /#(?![$_A-z])/,
5286
5251
  contains: [
5287
5252
  d.SHEBANG({
@@ -5289,38 +5254,37 @@ function Ur() {
5289
5254
  binary: "node",
5290
5255
  relevance: 5
5291
5256
  }),
5292
- f,
5257
+ N,
5293
5258
  d.APOS_STRING_MODE,
5294
5259
  d.QUOTE_STRING_MODE,
5295
5260
  L,
5296
- B,
5261
+ D,
5297
5262
  v,
5298
- C,
5299
- F,
5263
+ q,
5300
5264
  // Skip numbers when they are part of a variable name
5301
5265
  { match: /\$\d+/ },
5302
- A,
5303
- u,
5266
+ M,
5267
+ g,
5304
5268
  {
5305
5269
  className: "attr",
5306
5270
  begin: b + l.lookahead(":"),
5307
5271
  relevance: 0
5308
5272
  },
5309
- Z,
5273
+ W,
5310
5274
  {
5311
5275
  // "value" container
5312
5276
  begin: "(" + d.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
5313
5277
  keywords: "return throw case",
5314
5278
  relevance: 0,
5315
5279
  contains: [
5316
- F,
5280
+ q,
5317
5281
  d.REGEXP_MODE,
5318
5282
  {
5319
5283
  className: "function",
5320
5284
  // we have to count the parens to make sure we actually have the
5321
5285
  // correct bounding ( ) before the =>. There could be any number of
5322
5286
  // sub-expressions inside also surrounded by parens.
5323
- begin: z,
5287
+ begin: $,
5324
5288
  returnBegin: !0,
5325
5289
  end: "\\s*=>",
5326
5290
  contains: [
@@ -5341,8 +5305,8 @@ function Ur() {
5341
5305
  end: /\)/,
5342
5306
  excludeBegin: !0,
5343
5307
  excludeEnd: !0,
5344
- keywords: N,
5345
- contains: W
5308
+ keywords: h,
5309
+ contains: Q
5346
5310
  }
5347
5311
  ]
5348
5312
  }
@@ -5382,7 +5346,7 @@ function Ur() {
5382
5346
  }
5383
5347
  ]
5384
5348
  },
5385
- O,
5349
+ S,
5386
5350
  {
5387
5351
  // prevent this from getting swallowed up by function
5388
5352
  // since they appear "function like"
@@ -5397,7 +5361,7 @@ function Ur() {
5397
5361
  returnBegin: !0,
5398
5362
  label: "func.def",
5399
5363
  contains: [
5400
- U,
5364
+ z,
5401
5365
  d.inherit(d.TITLE_MODE, { begin: b, className: "title.function" })
5402
5366
  ]
5403
5367
  },
@@ -5406,7 +5370,7 @@ function Ur() {
5406
5370
  match: /\.\.\./,
5407
5371
  relevance: 0
5408
5372
  },
5409
- ne,
5373
+ J,
5410
5374
  // hack: prevents detection of keywords in some circumstances
5411
5375
  // .keyword()
5412
5376
  // $keyword = x
@@ -5417,12 +5381,12 @@ function Ur() {
5417
5381
  {
5418
5382
  match: [/\bconstructor(?=\s*\()/],
5419
5383
  className: { 1: "title.function" },
5420
- contains: [U]
5384
+ contains: [z]
5421
5385
  },
5422
- Y,
5423
- x,
5424
- X,
5425
- te,
5386
+ H,
5387
+ k,
5388
+ V,
5389
+ oe,
5426
5390
  {
5427
5391
  match: /\$[(.]/
5428
5392
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -5430,13 +5394,13 @@ function Ur() {
5430
5394
  ]
5431
5395
  };
5432
5396
  }
5433
- return We = i, We;
5397
+ return He = i, He;
5434
5398
  }
5435
- var Ye, Kn;
5399
+ var We, Gn;
5436
5400
  function Pr() {
5437
- if (Kn)
5438
- return Ye;
5439
- Kn = 1;
5401
+ if (Gn)
5402
+ return We;
5403
+ Gn = 1;
5440
5404
  function n(e) {
5441
5405
  const t = {
5442
5406
  className: "attr",
@@ -5471,13 +5435,13 @@ function Pr() {
5471
5435
  illegal: "\\S"
5472
5436
  };
5473
5437
  }
5474
- return Ye = n, Ye;
5438
+ return We = n, We;
5475
5439
  }
5476
- var Ze, qn;
5440
+ var Ye, Hn;
5477
5441
  function Fr() {
5478
- if (qn)
5479
- return Ze;
5480
- qn = 1;
5442
+ if (Hn)
5443
+ return Ye;
5444
+ Hn = 1;
5481
5445
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
5482
5446
  className: "number",
5483
5447
  variants: [
@@ -5526,7 +5490,7 @@ function Fr() {
5526
5490
  }, l = {
5527
5491
  className: "variable",
5528
5492
  begin: "\\$" + o.UNDERSCORE_IDENT_RE
5529
- }, g = {
5493
+ }, u = {
5530
5494
  className: "string",
5531
5495
  variants: [
5532
5496
  {
@@ -5558,7 +5522,7 @@ function Fr() {
5558
5522
  }
5559
5523
  ]
5560
5524
  };
5561
- d.contains.push(g);
5525
+ d.contains.push(u);
5562
5526
  const b = {
5563
5527
  className: "meta",
5564
5528
  begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + o.UNDERSCORE_IDENT_RE + ")?"
@@ -5570,7 +5534,7 @@ function Fr() {
5570
5534
  begin: /\(/,
5571
5535
  end: /\)/,
5572
5536
  contains: [
5573
- o.inherit(g, { className: "string" }),
5537
+ o.inherit(u, { className: "string" }),
5574
5538
  "self"
5575
5539
  ]
5576
5540
  }
@@ -5579,7 +5543,7 @@ function Fr() {
5579
5543
  "/\\*",
5580
5544
  "\\*/",
5581
5545
  { contains: [o.C_BLOCK_COMMENT_MODE] }
5582
- ), N = { variants: [
5546
+ ), h = { variants: [
5583
5547
  {
5584
5548
  className: "type",
5585
5549
  begin: o.UNDERSCORE_IDENT_RE
@@ -5590,8 +5554,8 @@ function Fr() {
5590
5554
  contains: []
5591
5555
  // defined later
5592
5556
  }
5593
- ] }, h = N;
5594
- return h.variants[1].contains = [N], N.variants[1].contains = [h], {
5557
+ ] }, f = h;
5558
+ return f.variants[1].contains = [h], h.variants[1].contains = [f], {
5595
5559
  name: "Kotlin",
5596
5560
  aliases: [
5597
5561
  "kt",
@@ -5653,7 +5617,7 @@ function Fr() {
5653
5617
  end: /[=,\/]/,
5654
5618
  endsWithParent: !0,
5655
5619
  contains: [
5656
- N,
5620
+ h,
5657
5621
  o.C_LINE_COMMENT_MODE,
5658
5622
  E
5659
5623
  ],
@@ -5663,7 +5627,7 @@ function Fr() {
5663
5627
  E,
5664
5628
  b,
5665
5629
  p,
5666
- g,
5630
+ u,
5667
5631
  o.C_NUMBER_MODE
5668
5632
  ]
5669
5633
  },
@@ -5705,7 +5669,7 @@ function Fr() {
5705
5669
  p
5706
5670
  ]
5707
5671
  },
5708
- g,
5672
+ u,
5709
5673
  {
5710
5674
  className: "meta",
5711
5675
  begin: "^#!/usr/bin/env",
@@ -5717,13 +5681,13 @@ function Fr() {
5717
5681
  ]
5718
5682
  };
5719
5683
  }
5720
- return Ze = c, Ze;
5684
+ return Ye = c, Ye;
5721
5685
  }
5722
- var Ve, Hn;
5686
+ var Ze, Wn;
5723
5687
  function $r() {
5724
- if (Hn)
5725
- return Ve;
5726
- Hn = 1;
5688
+ if (Wn)
5689
+ return Ze;
5690
+ Wn = 1;
5727
5691
  const n = (i) => ({
5728
5692
  IMPORTANT: {
5729
5693
  scope: "meta",
@@ -6318,35 +6282,35 @@ function $r() {
6318
6282
  // instead of getting false positives on say `font`
6319
6283
  ].reverse(), a = s.concat(c);
6320
6284
  function r(i) {
6321
- const d = n(i), l = a, g = "and or not only", b = "[\\w-]+", p = "(" + b + "|@\\{" + b + "\\})", m = [], E = [], N = function(F) {
6285
+ const d = n(i), l = a, u = "and or not only", b = "[\\w-]+", p = "(" + b + "|@\\{" + b + "\\})", m = [], E = [], h = function(B) {
6322
6286
  return {
6323
6287
  // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
6324
6288
  className: "string",
6325
- begin: "~?" + F + ".*?" + F
6289
+ begin: "~?" + B + ".*?" + B
6326
6290
  };
6327
- }, h = function(F, J, re) {
6291
+ }, f = function(B, ne, Q) {
6328
6292
  return {
6329
- className: F,
6330
- begin: J,
6331
- relevance: re
6293
+ className: B,
6294
+ begin: ne,
6295
+ relevance: Q
6332
6296
  };
6333
- }, S = {
6297
+ }, A = {
6334
6298
  $pattern: /[a-z-]+/,
6335
- keyword: g,
6299
+ keyword: u,
6336
6300
  attribute: t.join(" ")
6337
- }, I = {
6301
+ }, R = {
6338
6302
  // used only to properly balance nested parens inside mixin call, def. arg list
6339
6303
  begin: "\\(",
6340
6304
  end: "\\)",
6341
6305
  contains: E,
6342
- keywords: S,
6306
+ keywords: A,
6343
6307
  relevance: 0
6344
6308
  };
6345
6309
  E.push(
6346
6310
  i.C_LINE_COMMENT_MODE,
6347
6311
  i.C_BLOCK_COMMENT_MODE,
6348
- N("'"),
6349
- N('"'),
6312
+ h("'"),
6313
+ h('"'),
6350
6314
  d.CSS_NUMBER_MODE,
6351
6315
  // fixme: it does not include dot for numbers like .5em :(
6352
6316
  {
@@ -6358,10 +6322,10 @@ function $r() {
6358
6322
  }
6359
6323
  },
6360
6324
  d.HEXCOLOR,
6361
- I,
6362
- h("variable", "@@?" + b, 10),
6363
- h("variable", "@\\{" + b + "\\}"),
6364
- h("built_in", "~?`[^`]*?`"),
6325
+ R,
6326
+ f("variable", "@@?" + b, 10),
6327
+ f("variable", "@\\{" + b + "\\}"),
6328
+ f("built_in", "~?`[^`]*?`"),
6365
6329
  // inline javascript (or whatever host language) *multiline* string
6366
6330
  {
6367
6331
  // @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding):
@@ -6375,11 +6339,11 @@ function $r() {
6375
6339
  { beginKeywords: "and not" },
6376
6340
  d.FUNCTION_DISPATCH
6377
6341
  );
6378
- const A = E.concat({
6342
+ const M = E.concat({
6379
6343
  begin: /\{/,
6380
6344
  end: /\}/,
6381
6345
  contains: m
6382
- }), M = {
6346
+ }), I = {
6383
6347
  beginKeywords: "when",
6384
6348
  endsWithParent: !0,
6385
6349
  contains: [{ beginKeywords: "and not" }].concat(E)
@@ -6404,12 +6368,12 @@ function $r() {
6404
6368
  }
6405
6369
  }
6406
6370
  ]
6407
- }, B = {
6371
+ }, D = {
6408
6372
  className: "keyword",
6409
6373
  begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
6410
6374
  starts: {
6411
6375
  end: "[;{}]",
6412
- keywords: S,
6376
+ keywords: A,
6413
6377
  returnEnd: !0,
6414
6378
  contains: E,
6415
6379
  relevance: 0
@@ -6430,7 +6394,7 @@ function $r() {
6430
6394
  starts: {
6431
6395
  end: "[;}]",
6432
6396
  returnEnd: !0,
6433
- contains: A
6397
+ contains: M
6434
6398
  }
6435
6399
  }, C = {
6436
6400
  // first parse unambiguous selectors (i.e. those not starting with tag)
@@ -6454,19 +6418,19 @@ function $r() {
6454
6418
  contains: [
6455
6419
  i.C_LINE_COMMENT_MODE,
6456
6420
  i.C_BLOCK_COMMENT_MODE,
6457
- M,
6458
- h("keyword", "all\\b"),
6459
- h("variable", "@\\{" + b + "\\}"),
6421
+ I,
6422
+ f("keyword", "all\\b"),
6423
+ f("variable", "@\\{" + b + "\\}"),
6460
6424
  // otherwise it’s identified as tag
6461
6425
  {
6462
6426
  begin: "\\b(" + e.join("|") + ")\\b",
6463
6427
  className: "selector-tag"
6464
6428
  },
6465
6429
  d.CSS_NUMBER_MODE,
6466
- h("selector-tag", p, 0),
6467
- h("selector-id", "#" + p),
6468
- h("selector-class", "\\." + p, 0),
6469
- h("selector-tag", "&", 0),
6430
+ f("selector-tag", p, 0),
6431
+ f("selector-id", "#" + p),
6432
+ f("selector-class", "\\." + p, 0),
6433
+ f("selector-tag", "&", 0),
6470
6434
  d.ATTRIBUTE_SELECTOR_MODE,
6471
6435
  {
6472
6436
  className: "selector-pseudo",
@@ -6480,14 +6444,14 @@ function $r() {
6480
6444
  begin: /\(/,
6481
6445
  end: /\)/,
6482
6446
  relevance: 0,
6483
- contains: A
6447
+ contains: M
6484
6448
  },
6485
6449
  // argument list of parametric mixins
6486
6450
  { begin: "!important" },
6487
6451
  // eat !important after mixin call or it will be colored as tag
6488
6452
  d.FUNCTION_DISPATCH
6489
6453
  ]
6490
- }, G = {
6454
+ }, q = {
6491
6455
  begin: b + `:(:)?(${l.join("|")})`,
6492
6456
  returnBegin: !0,
6493
6457
  contains: [C]
@@ -6495,12 +6459,12 @@ function $r() {
6495
6459
  return m.push(
6496
6460
  i.C_LINE_COMMENT_MODE,
6497
6461
  i.C_BLOCK_COMMENT_MODE,
6498
- B,
6462
+ D,
6499
6463
  v,
6500
- G,
6464
+ q,
6501
6465
  L,
6502
6466
  C,
6503
- M,
6467
+ I,
6504
6468
  d.FUNCTION_DISPATCH
6505
6469
  ), {
6506
6470
  name: "Less",
@@ -6509,13 +6473,13 @@ function $r() {
6509
6473
  contains: m
6510
6474
  };
6511
6475
  }
6512
- return Ve = r, Ve;
6476
+ return Ze = r, Ze;
6513
6477
  }
6514
- var Xe, Gn;
6478
+ var Ve, Yn;
6515
6479
  function zr() {
6516
- if (Gn)
6517
- return Xe;
6518
- Gn = 1;
6480
+ if (Yn)
6481
+ return Ve;
6482
+ Yn = 1;
6519
6483
  function n(e) {
6520
6484
  const t = "\\[=*\\[", s = "\\]=*\\]", c = {
6521
6485
  begin: t,
@@ -6571,13 +6535,13 @@ function zr() {
6571
6535
  ])
6572
6536
  };
6573
6537
  }
6574
- return Xe = n, Xe;
6538
+ return Ve = n, Ve;
6575
6539
  }
6576
- var Qe, Wn;
6540
+ var Xe, Zn;
6577
6541
  function Kr() {
6578
- if (Wn)
6579
- return Qe;
6580
- Wn = 1;
6542
+ if (Zn)
6543
+ return Xe;
6544
+ Zn = 1;
6581
6545
  function n(e) {
6582
6546
  const t = {
6583
6547
  className: "variable",
@@ -6638,13 +6602,13 @@ function Kr() {
6638
6602
  ]
6639
6603
  };
6640
6604
  }
6641
- return Qe = n, Qe;
6605
+ return Xe = n, Xe;
6642
6606
  }
6643
- var Je, Yn;
6607
+ var Qe, Vn;
6644
6608
  function qr() {
6645
- if (Yn)
6646
- return Je;
6647
- Yn = 1;
6609
+ if (Vn)
6610
+ return Qe;
6611
+ Vn = 1;
6648
6612
  function n(e) {
6649
6613
  const t = e.regex, s = [
6650
6614
  "abs",
@@ -6915,22 +6879,22 @@ function qr() {
6915
6879
  // valid but infrequent and weird
6916
6880
  /#/
6917
6881
  // valid but infrequent and weird
6918
- ], g = (m, E, N = "\\1") => {
6919
- const h = N === "\\1" ? N : t.concat(N, E);
6882
+ ], u = (m, E, h = "\\1") => {
6883
+ const f = h === "\\1" ? h : t.concat(h, E);
6920
6884
  return t.concat(
6921
6885
  t.concat("(?:", m, ")"),
6922
6886
  E,
6923
6887
  /(?:\\.|[^\\\/])*?/,
6924
- h,
6888
+ f,
6925
6889
  /(?:\\.|[^\\\/])*?/,
6926
- N,
6890
+ h,
6927
6891
  c
6928
6892
  );
6929
- }, b = (m, E, N) => t.concat(
6893
+ }, b = (m, E, h) => t.concat(
6930
6894
  t.concat("(?:", m, ")"),
6931
6895
  E,
6932
6896
  /(?:\\.|[^\\\/])*?/,
6933
- N,
6897
+ h,
6934
6898
  c
6935
6899
  ), p = [
6936
6900
  i,
@@ -7015,11 +6979,11 @@ function qr() {
7015
6979
  className: "regexp",
7016
6980
  variants: [
7017
6981
  // allow matching common delimiters
7018
- { begin: g("s|tr|y", t.either(...l, { capture: !0 })) },
6982
+ { begin: u("s|tr|y", t.either(...l, { capture: !0 })) },
7019
6983
  // and then paired delmis
7020
- { begin: g("s|tr|y", "\\(", "\\)") },
7021
- { begin: g("s|tr|y", "\\[", "\\]") },
7022
- { begin: g("s|tr|y", "\\{", "\\}") }
6984
+ { begin: u("s|tr|y", "\\(", "\\)") },
6985
+ { begin: u("s|tr|y", "\\[", "\\]") },
6986
+ { begin: u("s|tr|y", "\\{", "\\}") }
7023
6987
  ],
7024
6988
  relevance: 2
7025
6989
  },
@@ -7079,13 +7043,13 @@ function qr() {
7079
7043
  contains: p
7080
7044
  };
7081
7045
  }
7082
- return Je = n, Je;
7046
+ return Qe = n, Qe;
7083
7047
  }
7084
- var je, Zn;
7085
- function Hr() {
7086
- if (Zn)
7087
- return je;
7088
- Zn = 1;
7048
+ var Je, Xn;
7049
+ function Gr() {
7050
+ if (Xn)
7051
+ return Je;
7052
+ Xn = 1;
7089
7053
  function n(e) {
7090
7054
  const t = {
7091
7055
  className: "built_in",
@@ -7320,13 +7284,13 @@ function Hr() {
7320
7284
  ]
7321
7285
  };
7322
7286
  }
7323
- return je = n, je;
7287
+ return Je = n, Je;
7324
7288
  }
7325
- var en, Vn;
7326
- function Gr() {
7327
- if (Vn)
7328
- return en;
7329
- Vn = 1;
7289
+ var je, Qn;
7290
+ function Hr() {
7291
+ if (Qn)
7292
+ return je;
7293
+ Qn = 1;
7330
7294
  function n(e) {
7331
7295
  const t = e.regex, s = /(?![A-Za-z0-9])(?![$])/, c = t.concat(
7332
7296
  /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
@@ -7360,29 +7324,19 @@ function Gr() {
7360
7324
  }, d = e.inherit(e.APOS_STRING_MODE, { illegal: null }), l = e.inherit(e.QUOTE_STRING_MODE, {
7361
7325
  illegal: null,
7362
7326
  contains: e.QUOTE_STRING_MODE.contains.concat(i)
7363
- }), g = {
7364
- begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
7327
+ }), u = e.END_SAME_AS_BEGIN({
7328
+ begin: /<<<[ \t]*(\w+)\n/,
7365
7329
  end: /[ \t]*(\w+)\b/,
7366
- contains: e.QUOTE_STRING_MODE.contains.concat(i),
7367
- "on:begin": (W, U) => {
7368
- U.data._beginMatch = W[1] || W[2];
7369
- },
7370
- "on:end": (W, U) => {
7371
- U.data._beginMatch !== W[1] && U.ignoreMatch();
7372
- }
7373
- }, b = e.END_SAME_AS_BEGIN({
7374
- begin: /<<<[ \t]*'(\w+)'\n/,
7375
- end: /[ \t]*(\w+)\b/
7376
- }), p = `[
7377
- ]`, m = {
7330
+ contains: e.QUOTE_STRING_MODE.contains.concat(i)
7331
+ }), b = `[
7332
+ ]`, p = {
7378
7333
  scope: "string",
7379
7334
  variants: [
7380
7335
  l,
7381
7336
  d,
7382
- g,
7383
- b
7337
+ u
7384
7338
  ]
7385
- }, E = {
7339
+ }, m = {
7386
7340
  scope: "number",
7387
7341
  variants: [
7388
7342
  { begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
@@ -7395,7 +7349,7 @@ function Gr() {
7395
7349
  { begin: "(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" }
7396
7350
  ],
7397
7351
  relevance: 0
7398
- }, N = [
7352
+ }, E = [
7399
7353
  "false",
7400
7354
  "null",
7401
7355
  "true"
@@ -7499,7 +7453,7 @@ function Gr() {
7499
7453
  "while",
7500
7454
  "xor",
7501
7455
  "yield"
7502
- ], S = [
7456
+ ], f = [
7503
7457
  // Standard PHP library:
7504
7458
  // <https://www.php.net/manual/en/book.spl.php>
7505
7459
  "Error|0",
@@ -7594,22 +7548,22 @@ function Gr() {
7594
7548
  "self",
7595
7549
  "static",
7596
7550
  "stdClass"
7597
- ], A = {
7551
+ ], R = {
7598
7552
  keyword: h,
7599
- literal: ((W) => {
7600
- const U = [];
7601
- return W.forEach((X) => {
7602
- U.push(X), X.toLowerCase() === X ? U.push(X.toUpperCase()) : U.push(X.toLowerCase());
7603
- }), U;
7604
- })(N),
7605
- built_in: S
7606
- }, M = (W) => W.map((U) => U.replace(/\|\d+$/, "")), L = { variants: [
7553
+ literal: ((Q) => {
7554
+ const z = [];
7555
+ return Q.forEach((V) => {
7556
+ z.push(V), V.toLowerCase() === V ? z.push(V.toUpperCase()) : z.push(V.toLowerCase());
7557
+ }), z;
7558
+ })(E),
7559
+ built_in: f
7560
+ }, M = (Q) => Q.map((z) => z.replace(/\|\d+$/, "")), I = { variants: [
7607
7561
  {
7608
7562
  match: [
7609
7563
  /new/,
7610
- t.concat(p, "+"),
7564
+ t.concat(b, "+"),
7611
7565
  // to prevent built ins from being confused as the class constructor call
7612
- t.concat("(?!", M(S).join("\\b|"), "\\b)"),
7566
+ t.concat("(?!", M(f).join("\\b|"), "\\b)"),
7613
7567
  o
7614
7568
  ],
7615
7569
  scope: {
@@ -7617,14 +7571,14 @@ function Gr() {
7617
7571
  4: "title.class"
7618
7572
  }
7619
7573
  }
7620
- ] }, B = t.concat(c, "\\b(?!\\()"), v = { variants: [
7574
+ ] }, L = t.concat(c, "\\b(?!\\()"), D = { variants: [
7621
7575
  {
7622
7576
  match: [
7623
7577
  t.concat(
7624
7578
  /::/,
7625
7579
  t.lookahead(/(?!class\b)/)
7626
7580
  ),
7627
- B
7581
+ L
7628
7582
  ],
7629
7583
  scope: { 2: "variable.constant" }
7630
7584
  },
@@ -7642,7 +7596,7 @@ function Gr() {
7642
7596
  /::/,
7643
7597
  t.lookahead(/(?!class\b)/)
7644
7598
  ),
7645
- B
7599
+ L
7646
7600
  ],
7647
7601
  scope: {
7648
7602
  1: "title.class",
@@ -7670,51 +7624,51 @@ function Gr() {
7670
7624
  3: "variable.language"
7671
7625
  }
7672
7626
  }
7673
- ] }, C = {
7627
+ ] }, v = {
7674
7628
  scope: "attr",
7675
7629
  match: t.concat(c, t.lookahead(":"), t.lookahead(/(?!::)/))
7676
- }, G = {
7630
+ }, C = {
7677
7631
  relevance: 0,
7678
7632
  begin: /\(/,
7679
7633
  end: /\)/,
7680
- keywords: A,
7634
+ keywords: R,
7681
7635
  contains: [
7682
- C,
7683
- a,
7684
7636
  v,
7637
+ a,
7638
+ D,
7685
7639
  e.C_BLOCK_COMMENT_MODE,
7640
+ p,
7686
7641
  m,
7687
- E,
7688
- L
7642
+ I
7689
7643
  ]
7690
- }, F = {
7644
+ }, q = {
7691
7645
  relevance: 0,
7692
7646
  match: [
7693
7647
  /\b/,
7694
7648
  // to prevent keywords from being confused as the function title
7695
- t.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(S).join("\\b|"), "\\b)"),
7649
+ t.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(f).join("\\b|"), "\\b)"),
7696
7650
  c,
7697
- t.concat(p, "*"),
7651
+ t.concat(b, "*"),
7698
7652
  t.lookahead(/(?=\()/)
7699
7653
  ],
7700
7654
  scope: { 3: "title.function.invoke" },
7701
- contains: [G]
7655
+ contains: [C]
7702
7656
  };
7703
- G.contains.push(F);
7704
- const J = [
7705
- C,
7657
+ C.contains.push(q);
7658
+ const B = [
7706
7659
  v,
7660
+ D,
7707
7661
  e.C_BLOCK_COMMENT_MODE,
7662
+ p,
7708
7663
  m,
7709
- E,
7710
- L
7711
- ], re = {
7664
+ I
7665
+ ], ne = {
7712
7666
  begin: t.concat(/#\[\s*/, o),
7713
7667
  beginScope: "meta",
7714
7668
  end: /]/,
7715
7669
  endScope: "meta",
7716
7670
  keywords: {
7717
- literal: N,
7671
+ literal: E,
7718
7672
  keyword: [
7719
7673
  "new",
7720
7674
  "array"
@@ -7725,7 +7679,7 @@ function Gr() {
7725
7679
  begin: /\[/,
7726
7680
  end: /]/,
7727
7681
  keywords: {
7728
- literal: N,
7682
+ literal: E,
7729
7683
  keyword: [
7730
7684
  "new",
7731
7685
  "array"
@@ -7733,10 +7687,10 @@ function Gr() {
7733
7687
  },
7734
7688
  contains: [
7735
7689
  "self",
7736
- ...J
7690
+ ...B
7737
7691
  ]
7738
7692
  },
7739
- ...J,
7693
+ ...B,
7740
7694
  {
7741
7695
  scope: "meta",
7742
7696
  match: o
@@ -7745,9 +7699,9 @@ function Gr() {
7745
7699
  };
7746
7700
  return {
7747
7701
  case_insensitive: !1,
7748
- keywords: A,
7702
+ keywords: R,
7749
7703
  contains: [
7750
- re,
7704
+ ne,
7751
7705
  e.HASH_COMMENT_MODE,
7752
7706
  e.COMMENT("//", "$"),
7753
7707
  e.COMMENT(
@@ -7781,8 +7735,8 @@ function Gr() {
7781
7735
  match: /\$this\b/
7782
7736
  },
7783
7737
  a,
7784
- F,
7785
- v,
7738
+ q,
7739
+ D,
7786
7740
  {
7787
7741
  match: [
7788
7742
  /const/,
@@ -7794,7 +7748,7 @@ function Gr() {
7794
7748
  3: "variable.constant"
7795
7749
  }
7796
7750
  },
7797
- L,
7751
+ I,
7798
7752
  {
7799
7753
  scope: "function",
7800
7754
  relevance: 0,
@@ -7816,14 +7770,14 @@ function Gr() {
7816
7770
  end: "\\)",
7817
7771
  excludeBegin: !0,
7818
7772
  excludeEnd: !0,
7819
- keywords: A,
7773
+ keywords: R,
7820
7774
  contains: [
7821
7775
  "self",
7822
7776
  a,
7823
- v,
7777
+ D,
7824
7778
  e.C_BLOCK_COMMENT_MODE,
7825
- m,
7826
- E
7779
+ p,
7780
+ m
7827
7781
  ]
7828
7782
  }
7829
7783
  ]
@@ -7872,18 +7826,18 @@ function Gr() {
7872
7826
  e.UNDERSCORE_TITLE_MODE
7873
7827
  ]
7874
7828
  },
7875
- m,
7876
- E
7829
+ p,
7830
+ m
7877
7831
  ]
7878
7832
  };
7879
7833
  }
7880
- return en = n, en;
7834
+ return je = n, je;
7881
7835
  }
7882
- var nn, Xn;
7836
+ var en, Jn;
7883
7837
  function Wr() {
7884
- if (Xn)
7885
- return nn;
7886
- Xn = 1;
7838
+ if (Jn)
7839
+ return en;
7840
+ Jn = 1;
7887
7841
  function n(e) {
7888
7842
  return {
7889
7843
  name: "PHP template",
@@ -7928,13 +7882,13 @@ function Wr() {
7928
7882
  ]
7929
7883
  };
7930
7884
  }
7931
- return nn = n, nn;
7885
+ return en = n, en;
7932
7886
  }
7933
- var tn, Qn;
7887
+ var nn, jn;
7934
7888
  function Yr() {
7935
- if (Qn)
7936
- return tn;
7937
- Qn = 1;
7889
+ if (jn)
7890
+ return nn;
7891
+ jn = 1;
7938
7892
  function n(e) {
7939
7893
  return {
7940
7894
  name: "Plain text",
@@ -7945,13 +7899,13 @@ function Yr() {
7945
7899
  disableAutodetect: !0
7946
7900
  };
7947
7901
  }
7948
- return tn = n, tn;
7902
+ return nn = n, nn;
7949
7903
  }
7950
- var rn, Jn;
7904
+ var tn, et;
7951
7905
  function Zr() {
7952
- if (Jn)
7953
- return rn;
7954
- Jn = 1;
7906
+ if (et)
7907
+ return tn;
7908
+ et = 1;
7955
7909
  function n(e) {
7956
7910
  const t = e.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, c = [
7957
7911
  "and",
@@ -8094,7 +8048,7 @@ function Zr() {
8094
8048
  end: /\}/,
8095
8049
  keywords: i,
8096
8050
  illegal: /#/
8097
- }, g = {
8051
+ }, u = {
8098
8052
  begin: /\{\{/,
8099
8053
  relevance: 0
8100
8054
  }, b = {
@@ -8125,7 +8079,7 @@ function Zr() {
8125
8079
  contains: [
8126
8080
  e.BACKSLASH_ESCAPE,
8127
8081
  d,
8128
- g,
8082
+ u,
8129
8083
  l
8130
8084
  ]
8131
8085
  },
@@ -8135,7 +8089,7 @@ function Zr() {
8135
8089
  contains: [
8136
8090
  e.BACKSLASH_ESCAPE,
8137
8091
  d,
8138
- g,
8092
+ u,
8139
8093
  l
8140
8094
  ]
8141
8095
  },
@@ -8162,7 +8116,7 @@ function Zr() {
8162
8116
  end: /'/,
8163
8117
  contains: [
8164
8118
  e.BACKSLASH_ESCAPE,
8165
- g,
8119
+ u,
8166
8120
  l
8167
8121
  ]
8168
8122
  },
@@ -8171,14 +8125,14 @@ function Zr() {
8171
8125
  end: /"/,
8172
8126
  contains: [
8173
8127
  e.BACKSLASH_ESCAPE,
8174
- g,
8128
+ u,
8175
8129
  l
8176
8130
  ]
8177
8131
  },
8178
8132
  e.APOS_STRING_MODE,
8179
8133
  e.QUOTE_STRING_MODE
8180
8134
  ]
8181
- }, p = "[0-9](_?[0-9])*", m = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, E = `\\b|${c.join("|")}`, N = {
8135
+ }, p = "[0-9](_?[0-9])*", m = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, E = `\\b|${c.join("|")}`, h = {
8182
8136
  className: "number",
8183
8137
  relevance: 0,
8184
8138
  variants: [
@@ -8222,7 +8176,7 @@ function Zr() {
8222
8176
  begin: `\\b(${p})[jJ](?=${E})`
8223
8177
  }
8224
8178
  ]
8225
- }, h = {
8179
+ }, f = {
8226
8180
  className: "comment",
8227
8181
  begin: t.lookahead(/# type:/),
8228
8182
  end: /$/,
@@ -8239,7 +8193,7 @@ function Zr() {
8239
8193
  endsWithParent: !0
8240
8194
  }
8241
8195
  ]
8242
- }, S = {
8196
+ }, A = {
8243
8197
  className: "params",
8244
8198
  variants: [
8245
8199
  // Exclude params in functions without params
@@ -8257,7 +8211,7 @@ function Zr() {
8257
8211
  contains: [
8258
8212
  "self",
8259
8213
  d,
8260
- N,
8214
+ h,
8261
8215
  b,
8262
8216
  e.HASH_COMMENT_MODE
8263
8217
  ]
@@ -8266,7 +8220,7 @@ function Zr() {
8266
8220
  };
8267
8221
  return l.contains = [
8268
8222
  b,
8269
- N,
8223
+ h,
8270
8224
  d
8271
8225
  ], {
8272
8226
  name: "Python",
@@ -8277,10 +8231,10 @@ function Zr() {
8277
8231
  ],
8278
8232
  unicodeRegex: !0,
8279
8233
  keywords: i,
8280
- illegal: /(<\/|\?)|=>/,
8234
+ illegal: /(<\/|->|\?)|=>/,
8281
8235
  contains: [
8282
8236
  d,
8283
- N,
8237
+ h,
8284
8238
  {
8285
8239
  // very common convention
8286
8240
  begin: /\bself\b/
@@ -8292,7 +8246,7 @@ function Zr() {
8292
8246
  relevance: 0
8293
8247
  },
8294
8248
  b,
8295
- h,
8249
+ f,
8296
8250
  e.HASH_COMMENT_MODE,
8297
8251
  {
8298
8252
  match: [
@@ -8304,7 +8258,7 @@ function Zr() {
8304
8258
  1: "keyword",
8305
8259
  3: "title.function"
8306
8260
  },
8307
- contains: [S]
8261
+ contains: [A]
8308
8262
  },
8309
8263
  {
8310
8264
  variants: [
@@ -8338,21 +8292,21 @@ function Zr() {
8338
8292
  begin: /^[\t ]*@/,
8339
8293
  end: /(?=#)|$/,
8340
8294
  contains: [
8341
- N,
8342
- S,
8295
+ h,
8296
+ A,
8343
8297
  b
8344
8298
  ]
8345
8299
  }
8346
8300
  ]
8347
8301
  };
8348
8302
  }
8349
- return rn = n, rn;
8303
+ return tn = n, tn;
8350
8304
  }
8351
- var an, jn;
8305
+ var rn, nt;
8352
8306
  function Vr() {
8353
- if (jn)
8354
- return an;
8355
- jn = 1;
8307
+ if (nt)
8308
+ return rn;
8309
+ nt = 1;
8356
8310
  function n(e) {
8357
8311
  return {
8358
8312
  aliases: ["pycon"],
@@ -8376,13 +8330,13 @@ function Vr() {
8376
8330
  ]
8377
8331
  };
8378
8332
  }
8379
- return an = n, an;
8333
+ return rn = n, rn;
8380
8334
  }
8381
- var sn, et;
8335
+ var an, tt;
8382
8336
  function Xr() {
8383
- if (et)
8384
- return sn;
8385
- et = 1;
8337
+ if (tt)
8338
+ return an;
8339
+ tt = 1;
8386
8340
  function n(e) {
8387
8341
  const t = e.regex, s = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, c = t.either(
8388
8342
  // Special case: only hexadecimal binary powers can contain fractions
@@ -8587,13 +8541,13 @@ function Xr() {
8587
8541
  ]
8588
8542
  };
8589
8543
  }
8590
- return sn = n, sn;
8544
+ return an = n, an;
8591
8545
  }
8592
- var on, nt;
8546
+ var sn, rt;
8593
8547
  function Qr() {
8594
- if (nt)
8595
- return on;
8596
- nt = 1;
8548
+ if (rt)
8549
+ return sn;
8550
+ rt = 1;
8597
8551
  function n(e) {
8598
8552
  const t = e.regex, s = {
8599
8553
  className: "title.function.invoke",
@@ -8881,13 +8835,13 @@ function Qr() {
8881
8835
  ]
8882
8836
  };
8883
8837
  }
8884
- return on = n, on;
8838
+ return sn = n, sn;
8885
8839
  }
8886
- var cn, tt;
8840
+ var on, at;
8887
8841
  function Jr() {
8888
- if (tt)
8889
- return cn;
8890
- tt = 1;
8842
+ if (at)
8843
+ return on;
8844
+ at = 1;
8891
8845
  const n = (r) => ({
8892
8846
  IMPORTANT: {
8893
8847
  scope: "meta",
@@ -9482,7 +9436,7 @@ function Jr() {
9482
9436
  // instead of getting false positives on say `font`
9483
9437
  ].reverse();
9484
9438
  function a(r) {
9485
- const i = n(r), d = c, l = s, g = "@[a-z-]+", b = "and or not only", m = {
9439
+ const i = n(r), d = c, l = s, u = "@[a-z-]+", b = "and or not only", m = {
9486
9440
  className: "variable",
9487
9441
  begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
9488
9442
  relevance: 0
@@ -9556,7 +9510,7 @@ function Jr() {
9556
9510
  {
9557
9511
  begin: "@(page|font-face)",
9558
9512
  keywords: {
9559
- $pattern: g,
9513
+ $pattern: u,
9560
9514
  keyword: "@page @font-face"
9561
9515
  }
9562
9516
  },
@@ -9571,7 +9525,7 @@ function Jr() {
9571
9525
  },
9572
9526
  contains: [
9573
9527
  {
9574
- begin: g,
9528
+ begin: u,
9575
9529
  className: "keyword"
9576
9530
  },
9577
9531
  {
@@ -9589,13 +9543,13 @@ function Jr() {
9589
9543
  ]
9590
9544
  };
9591
9545
  }
9592
- return cn = a, cn;
9546
+ return on = a, on;
9593
9547
  }
9594
- var ln, rt;
9548
+ var cn, it;
9595
9549
  function jr() {
9596
- if (rt)
9597
- return ln;
9598
- rt = 1;
9550
+ if (it)
9551
+ return cn;
9552
+ it = 1;
9599
9553
  function n(e) {
9600
9554
  return {
9601
9555
  name: "Shell Session",
@@ -9618,13 +9572,13 @@ function jr() {
9618
9572
  ]
9619
9573
  };
9620
9574
  }
9621
- return ln = n, ln;
9575
+ return cn = n, cn;
9622
9576
  }
9623
- var dn, at;
9577
+ var ln, st;
9624
9578
  function ea() {
9625
- if (at)
9626
- return dn;
9627
- at = 1;
9579
+ if (st)
9580
+ return ln;
9581
+ st = 1;
9628
9582
  function n(e) {
9629
9583
  const t = e.regex, s = e.COMMENT("--", "$"), c = {
9630
9584
  className: "string",
@@ -10055,7 +10009,7 @@ function ea() {
10055
10009
  "within",
10056
10010
  "without",
10057
10011
  "year"
10058
- ], g = [
10012
+ ], u = [
10059
10013
  "abs",
10060
10014
  "acos",
10061
10015
  "array_agg",
@@ -10174,27 +10128,27 @@ function ea() {
10174
10128
  "nulls last",
10175
10129
  "depth first",
10176
10130
  "breadth first"
10177
- ], m = g, E = [
10131
+ ], m = u, E = [
10178
10132
  ...l,
10179
10133
  ...d
10180
- ].filter((A) => !g.includes(A)), N = {
10134
+ ].filter((M) => !u.includes(M)), h = {
10181
10135
  className: "variable",
10182
- begin: /@[a-z0-9][a-z0-9_]*/
10183
- }, h = {
10136
+ begin: /@[a-z0-9]+/
10137
+ }, f = {
10184
10138
  className: "operator",
10185
10139
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
10186
10140
  relevance: 0
10187
- }, S = {
10141
+ }, A = {
10188
10142
  begin: t.concat(/\b/, t.either(...m), /\s*\(/),
10189
10143
  relevance: 0,
10190
10144
  keywords: { built_in: m }
10191
10145
  };
10192
- function I(A, {
10193
- exceptions: M,
10146
+ function R(M, {
10147
+ exceptions: I,
10194
10148
  when: L
10195
10149
  } = {}) {
10196
- const B = L;
10197
- return M = M || [], A.map((v) => v.match(/\|\d+$/) || M.includes(v) ? v : B(v) ? `${v}|0` : v);
10150
+ const D = L;
10151
+ return I = I || [], M.map((v) => v.match(/\|\d+$/) || I.includes(v) ? v : D(v) ? `${v}|0` : v);
10198
10152
  }
10199
10153
  return {
10200
10154
  name: "SQL",
@@ -10203,7 +10157,7 @@ function ea() {
10203
10157
  illegal: /[{}]|<\//,
10204
10158
  keywords: {
10205
10159
  $pattern: /\b[\w\.]+/,
10206
- keyword: I(E, { when: (A) => A.length < 3 }),
10160
+ keyword: R(E, { when: (M) => M.length < 3 }),
10207
10161
  literal: a,
10208
10162
  type: i,
10209
10163
  built_in: b
@@ -10223,24 +10177,24 @@ function ea() {
10223
10177
  className: "type",
10224
10178
  begin: t.either(...r)
10225
10179
  },
10226
- S,
10227
- N,
10180
+ A,
10181
+ h,
10228
10182
  c,
10229
10183
  o,
10230
10184
  e.C_NUMBER_MODE,
10231
10185
  e.C_BLOCK_COMMENT_MODE,
10232
10186
  s,
10233
- h
10187
+ f
10234
10188
  ]
10235
10189
  };
10236
10190
  }
10237
- return dn = n, dn;
10191
+ return ln = n, ln;
10238
10192
  }
10239
- var un, it;
10193
+ var dn, ot;
10240
10194
  function na() {
10241
- if (it)
10242
- return un;
10243
- it = 1;
10195
+ if (ot)
10196
+ return dn;
10197
+ ot = 1;
10244
10198
  function n(v) {
10245
10199
  return v ? typeof v == "string" ? v : v.source : null;
10246
10200
  }
@@ -10248,14 +10202,14 @@ function na() {
10248
10202
  return t("(?=", v, ")");
10249
10203
  }
10250
10204
  function t(...v) {
10251
- return v.map((G) => n(G)).join("");
10205
+ return v.map((q) => n(q)).join("");
10252
10206
  }
10253
10207
  function s(v) {
10254
10208
  const C = v[v.length - 1];
10255
10209
  return typeof C == "object" && C.constructor === Object ? (v.splice(v.length - 1, 1), C) : {};
10256
10210
  }
10257
10211
  function c(...v) {
10258
- return "(" + (s(v).capture ? "" : "?:") + v.map((F) => n(F)).join("|") + ")";
10212
+ return "(" + (s(v).capture ? "" : "?:") + v.map((B) => n(B)).join("|") + ")";
10259
10213
  }
10260
10214
  const o = (v) => t(
10261
10215
  /\b/,
@@ -10401,7 +10355,7 @@ function na() {
10401
10355
  "false",
10402
10356
  "nil",
10403
10357
  "true"
10404
- ], g = [
10358
+ ], u = [
10405
10359
  "assignment",
10406
10360
  "associativity",
10407
10361
  "higherThan",
@@ -10493,7 +10447,7 @@ function na() {
10493
10447
  /[\uFE20-\uFE2F]/
10494
10448
  // TODO: The following characters are also allowed, but the regex isn't supported yet.
10495
10449
  // /[\u{E0100}-\u{E01EF}]/u
10496
- ), N = t(m, E, "*"), h = c(
10450
+ ), h = t(m, E, "*"), f = c(
10497
10451
  /[a-zA-Z_]/,
10498
10452
  /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
10499
10453
  /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
@@ -10511,11 +10465,11 @@ function na() {
10511
10465
  // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
10512
10466
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
10513
10467
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
10514
- ), S = c(
10515
- h,
10468
+ ), A = c(
10469
+ f,
10516
10470
  /\d/,
10517
10471
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
10518
- ), I = t(h, S, "*"), A = t(/[A-Z]/, S, "*"), M = [
10472
+ ), R = t(f, A, "*"), M = t(/[A-Z]/, A, "*"), I = [
10519
10473
  "autoclosure",
10520
10474
  t(/convention\(/, c("swift", "block", "c"), /\)/),
10521
10475
  "discardableResult",
@@ -10535,7 +10489,7 @@ function na() {
10535
10489
  "NSApplicationMain",
10536
10490
  "NSCopying",
10537
10491
  "NSManaged",
10538
- t(/objc\(/, I, /\)/),
10492
+ t(/objc\(/, R, /\)/),
10539
10493
  "objc",
10540
10494
  "objcMembers",
10541
10495
  "propertyWrapper",
@@ -10558,64 +10512,64 @@ function na() {
10558
10512
  "tvOSApplicationExtension",
10559
10513
  "swift"
10560
10514
  ];
10561
- function B(v) {
10515
+ function D(v) {
10562
10516
  const C = {
10563
10517
  match: /\s+/,
10564
10518
  relevance: 0
10565
- }, G = v.COMMENT(
10519
+ }, q = v.COMMENT(
10566
10520
  "/\\*",
10567
10521
  "\\*/",
10568
10522
  { contains: ["self"] }
10569
- ), F = [
10523
+ ), B = [
10570
10524
  v.C_LINE_COMMENT_MODE,
10571
- G
10572
- ], J = {
10525
+ q
10526
+ ], ne = {
10573
10527
  match: [
10574
10528
  /\./,
10575
10529
  c(...a, ...r)
10576
10530
  ],
10577
10531
  className: { 2: "keyword" }
10578
- }, re = {
10532
+ }, Q = {
10579
10533
  // Consume .keyword to prevent highlighting properties and methods as keywords.
10580
10534
  match: t(/\./, c(...d)),
10581
10535
  relevance: 0
10582
- }, W = d.filter(($) => typeof $ == "string").concat(["_|0"]), U = d.filter(($) => typeof $ != "string").concat(i).map(o), X = { variants: [
10536
+ }, z = d.filter((K) => typeof K == "string").concat(["_|0"]), V = d.filter((K) => typeof K != "string").concat(i).map(o), g = { variants: [
10583
10537
  {
10584
10538
  className: "keyword",
10585
- match: c(...U, ...r)
10539
+ match: c(...V, ...r)
10586
10540
  }
10587
- ] }, u = {
10541
+ ] }, N = {
10588
10542
  $pattern: c(
10589
10543
  /\b\w+/,
10590
10544
  // regular keywords
10591
10545
  /#\w+/
10592
10546
  // number keywords
10593
10547
  ),
10594
- keyword: W.concat(b),
10548
+ keyword: z.concat(b),
10595
10549
  literal: l
10596
- }, f = [
10597
- J,
10598
- re,
10599
- X
10600
- ], O = {
10550
+ }, S = [
10551
+ ne,
10552
+ Q,
10553
+ g
10554
+ ], k = {
10601
10555
  // Consume .built_in to prevent highlighting properties and methods.
10602
10556
  match: t(/\./, c(...p)),
10603
10557
  relevance: 0
10604
- }, x = {
10558
+ }, F = {
10605
10559
  className: "built_in",
10606
10560
  match: t(/\b/, c(...p), /(?=\()/)
10607
- }, P = [
10608
- O,
10609
- x
10610
- ], Y = {
10561
+ }, H = [
10562
+ k,
10563
+ F
10564
+ ], J = {
10611
10565
  // Prevent -> from being highlighting as an operator.
10612
10566
  match: /->/,
10613
10567
  relevance: 0
10614
- }, ne = {
10568
+ }, oe = {
10615
10569
  className: "operator",
10616
10570
  relevance: 0,
10617
10571
  variants: [
10618
- { match: N },
10572
+ { match: h },
10619
10573
  {
10620
10574
  // dot-operator: only operators that start with a dot are allowed to use dots as
10621
10575
  // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
@@ -10623,74 +10577,74 @@ function na() {
10623
10577
  match: `\\.(\\.|${E})+`
10624
10578
  }
10625
10579
  ]
10626
- }, te = [
10627
- Y,
10628
- ne
10629
- ], z = "([0-9]_*)+", Z = "([0-9a-fA-F]_*)+", H = {
10580
+ }, $ = [
10581
+ J,
10582
+ oe
10583
+ ], W = "([0-9]_*)+", Y = "([0-9a-fA-F]_*)+", P = {
10630
10584
  className: "number",
10631
10585
  relevance: 0,
10632
10586
  variants: [
10633
10587
  // decimal floating-point-literal (subsumes decimal-literal)
10634
- { match: `\\b(${z})(\\.(${z}))?([eE][+-]?(${z}))?\\b` },
10588
+ { match: `\\b(${W})(\\.(${W}))?([eE][+-]?(${W}))?\\b` },
10635
10589
  // hexadecimal floating-point-literal (subsumes hexadecimal-literal)
10636
- { match: `\\b0x(${Z})(\\.(${Z}))?([pP][+-]?(${z}))?\\b` },
10590
+ { match: `\\b0x(${Y})(\\.(${Y}))?([pP][+-]?(${W}))?\\b` },
10637
10591
  // octal-literal
10638
10592
  { match: /\b0o([0-7]_*)+\b/ },
10639
10593
  // binary-literal
10640
10594
  { match: /\b0b([01]_*)+\b/ }
10641
10595
  ]
10642
- }, K = ($ = "") => ({
10596
+ }, X = (K = "") => ({
10643
10597
  className: "subst",
10644
10598
  variants: [
10645
- { match: t(/\\/, $, /[0\\tnr"']/) },
10646
- { match: t(/\\/, $, /u\{[0-9a-fA-F]{1,8}\}/) }
10599
+ { match: t(/\\/, K, /[0\\tnr"']/) },
10600
+ { match: t(/\\/, K, /u\{[0-9a-fA-F]{1,8}\}/) }
10647
10601
  ]
10648
- }), Q = ($ = "") => ({
10602
+ }), ee = (K = "") => ({
10649
10603
  className: "subst",
10650
- match: t(/\\/, $, /[\t ]*(?:[\r\n]|\r\n)/)
10651
- }), j = ($ = "") => ({
10604
+ match: t(/\\/, K, /[\t ]*(?:[\r\n]|\r\n)/)
10605
+ }), te = (K = "") => ({
10652
10606
  className: "subst",
10653
10607
  label: "interpol",
10654
- begin: t(/\\/, $, /\(/),
10608
+ begin: t(/\\/, K, /\(/),
10655
10609
  end: /\)/
10656
- }), ee = ($ = "") => ({
10657
- begin: t($, /"""/),
10658
- end: t(/"""/, $),
10610
+ }), re = (K = "") => ({
10611
+ begin: t(K, /"""/),
10612
+ end: t(/"""/, K),
10659
10613
  contains: [
10660
- K($),
10661
- Q($),
10662
- j($)
10614
+ X(K),
10615
+ ee(K),
10616
+ te(K)
10663
10617
  ]
10664
- }), ae = ($ = "") => ({
10665
- begin: t($, /"/),
10666
- end: t(/"/, $),
10618
+ }), ae = (K = "") => ({
10619
+ begin: t(K, /"/),
10620
+ end: t(/"/, K),
10667
10621
  contains: [
10668
- K($),
10669
- j($)
10622
+ X(K),
10623
+ te(K)
10670
10624
  ]
10671
- }), se = {
10625
+ }), le = {
10672
10626
  className: "string",
10673
10627
  variants: [
10674
- ee(),
10675
- ee("#"),
10676
- ee("##"),
10677
- ee("###"),
10628
+ re(),
10629
+ re("#"),
10630
+ re("##"),
10631
+ re("###"),
10678
10632
  ae(),
10679
10633
  ae("#"),
10680
10634
  ae("##"),
10681
10635
  ae("###")
10682
10636
  ]
10683
- }, ue = { match: t(/`/, I, /`/) }, Oe = {
10637
+ }, ie = { match: t(/`/, R, /`/) }, Ae = {
10684
10638
  className: "variable",
10685
10639
  match: /\$\d+/
10686
- }, ie = {
10640
+ }, me = {
10687
10641
  className: "variable",
10688
- match: `\\$${S}+`
10689
- }, Ne = [
10690
- ue,
10691
- Oe,
10692
- ie
10693
- ], ye = {
10642
+ match: `\\$${A}+`
10643
+ }, T = [
10644
+ ie,
10645
+ Ae,
10646
+ me
10647
+ ], Te = {
10694
10648
  match: /(@|#(un)?)available/,
10695
10649
  className: "keyword",
10696
10650
  starts: { contains: [
@@ -10699,35 +10653,35 @@ function na() {
10699
10653
  end: /\)/,
10700
10654
  keywords: L,
10701
10655
  contains: [
10702
- ...te,
10703
- H,
10704
- se
10656
+ ...$,
10657
+ P,
10658
+ le
10705
10659
  ]
10706
10660
  }
10707
10661
  ] }
10708
- }, T = {
10662
+ }, G = {
10709
10663
  className: "keyword",
10710
- match: t(/@/, c(...M))
10711
- }, we = {
10664
+ match: t(/@/, c(...I))
10665
+ }, U = {
10712
10666
  className: "meta",
10713
- match: t(/@/, I)
10714
- }, q = [
10715
- ye,
10716
- T,
10717
- we
10718
- ], k = {
10667
+ match: t(/@/, R)
10668
+ }, de = [
10669
+ Te,
10670
+ G,
10671
+ U
10672
+ ], j = {
10719
10673
  match: e(/\b[A-Z]/),
10720
10674
  relevance: 0,
10721
10675
  contains: [
10722
10676
  {
10723
10677
  // Common Apple frameworks, for relevance boost
10724
10678
  className: "type",
10725
- match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, S, "+")
10679
+ match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, A, "+")
10726
10680
  },
10727
10681
  {
10728
10682
  // Type identifier
10729
10683
  className: "type",
10730
- match: A,
10684
+ match: M,
10731
10685
  relevance: 0
10732
10686
  },
10733
10687
  {
@@ -10742,56 +10696,56 @@ function na() {
10742
10696
  },
10743
10697
  {
10744
10698
  // Protocol composition
10745
- match: t(/\s+&\s+/, e(A)),
10699
+ match: t(/\s+&\s+/, e(M)),
10746
10700
  relevance: 0
10747
10701
  }
10748
10702
  ]
10749
- }, _e = {
10703
+ }, Ee = {
10750
10704
  begin: /</,
10751
10705
  end: />/,
10752
- keywords: u,
10706
+ keywords: N,
10753
10707
  contains: [
10754
- ...F,
10755
- ...f,
10756
- ...q,
10757
- Y,
10758
- k
10708
+ ...B,
10709
+ ...S,
10710
+ ...de,
10711
+ J,
10712
+ j
10759
10713
  ]
10760
10714
  };
10761
- k.contains.push(_e);
10762
- const le = {
10763
- match: t(I, /\s*:/),
10715
+ j.contains.push(Ee);
10716
+ const fe = {
10717
+ match: t(R, /\s*:/),
10764
10718
  keywords: "_|0",
10765
10719
  relevance: 0
10766
- }, me = {
10720
+ }, _ = {
10767
10721
  begin: /\(/,
10768
10722
  end: /\)/,
10769
10723
  relevance: 0,
10770
- keywords: u,
10724
+ keywords: N,
10771
10725
  contains: [
10772
10726
  "self",
10727
+ fe,
10728
+ ...B,
10729
+ ...S,
10730
+ ...H,
10731
+ ...$,
10732
+ P,
10773
10733
  le,
10774
- ...F,
10775
- ...f,
10776
- ...P,
10777
- ...te,
10778
- H,
10779
- se,
10780
- ...Ne,
10781
- ...q,
10782
- k
10734
+ ...T,
10735
+ ...de,
10736
+ j
10783
10737
  ]
10784
- }, Ee = {
10738
+ }, y = {
10785
10739
  begin: /</,
10786
10740
  end: />/,
10787
10741
  contains: [
10788
- ...F,
10789
- k
10742
+ ...B,
10743
+ j
10790
10744
  ]
10791
- }, _ = {
10745
+ }, w = {
10792
10746
  begin: c(
10793
- e(t(I, /\s*:/)),
10794
- e(t(I, /\s+/, I, /\s*:/))
10747
+ e(t(R, /\s*:/)),
10748
+ e(t(R, /\s+/, R, /\s*:/))
10795
10749
  ),
10796
10750
  end: /:/,
10797
10751
  relevance: 0,
@@ -10802,154 +10756,154 @@ function na() {
10802
10756
  },
10803
10757
  {
10804
10758
  className: "params",
10805
- match: I
10759
+ match: R
10806
10760
  }
10807
10761
  ]
10808
- }, y = {
10762
+ }, x = {
10809
10763
  begin: /\(/,
10810
10764
  end: /\)/,
10811
- keywords: u,
10765
+ keywords: N,
10812
10766
  contains: [
10813
- _,
10814
- ...F,
10815
- ...f,
10816
- ...te,
10817
- H,
10818
- se,
10819
- ...q,
10820
- k,
10821
- me
10767
+ w,
10768
+ ...B,
10769
+ ...S,
10770
+ ...$,
10771
+ P,
10772
+ le,
10773
+ ...de,
10774
+ j,
10775
+ _
10822
10776
  ],
10823
10777
  endsParent: !0,
10824
10778
  illegal: /["']/
10825
- }, w = {
10779
+ }, Z = {
10826
10780
  match: [
10827
10781
  /func/,
10828
10782
  /\s+/,
10829
- c(ue.match, I, N)
10783
+ c(ie.match, R, h)
10830
10784
  ],
10831
10785
  className: {
10832
10786
  1: "keyword",
10833
10787
  3: "title.function"
10834
10788
  },
10835
10789
  contains: [
10836
- Ee,
10837
10790
  y,
10791
+ x,
10838
10792
  C
10839
10793
  ],
10840
10794
  illegal: [
10841
10795
  /\[/,
10842
10796
  /%/
10843
10797
  ]
10844
- }, D = {
10798
+ }, se = {
10845
10799
  match: [
10846
10800
  /\b(?:subscript|init[?!]?)/,
10847
10801
  /\s*(?=[<(])/
10848
10802
  ],
10849
10803
  className: { 1: "keyword" },
10850
10804
  contains: [
10851
- Ee,
10852
10805
  y,
10806
+ x,
10853
10807
  C
10854
10808
  ],
10855
10809
  illegal: /\[|%/
10856
- }, V = {
10810
+ }, Me = {
10857
10811
  match: [
10858
10812
  /operator/,
10859
10813
  /\s+/,
10860
- N
10814
+ h
10861
10815
  ],
10862
10816
  className: {
10863
10817
  1: "keyword",
10864
10818
  3: "title"
10865
10819
  }
10866
- }, oe = {
10820
+ }, Ie = {
10867
10821
  begin: [
10868
10822
  /precedencegroup/,
10869
10823
  /\s+/,
10870
- A
10824
+ M
10871
10825
  ],
10872
10826
  className: {
10873
10827
  1: "keyword",
10874
10828
  3: "title"
10875
10829
  },
10876
- contains: [k],
10830
+ contains: [j],
10877
10831
  keywords: [
10878
- ...g,
10832
+ ...u,
10879
10833
  ...l
10880
10834
  ],
10881
10835
  end: /}/
10882
10836
  };
10883
- for (const $ of se.variants) {
10884
- const Re = $.contains.find((vt) => vt.label === "interpol");
10885
- Re.keywords = u;
10886
- const Nn = [
10887
- ...f,
10888
- ...P,
10889
- ...te,
10890
- H,
10891
- se,
10892
- ...Ne
10837
+ for (const K of le.variants) {
10838
+ const yn = K.contains.find((vt) => vt.label === "interpol");
10839
+ yn.keywords = N;
10840
+ const vn = [
10841
+ ...S,
10842
+ ...H,
10843
+ ...$,
10844
+ P,
10845
+ le,
10846
+ ...T
10893
10847
  ];
10894
- Re.contains = [
10895
- ...Nn,
10848
+ yn.contains = [
10849
+ ...vn,
10896
10850
  {
10897
10851
  begin: /\(/,
10898
10852
  end: /\)/,
10899
10853
  contains: [
10900
10854
  "self",
10901
- ...Nn
10855
+ ...vn
10902
10856
  ]
10903
10857
  }
10904
10858
  ];
10905
10859
  }
10906
10860
  return {
10907
10861
  name: "Swift",
10908
- keywords: u,
10862
+ keywords: N,
10909
10863
  contains: [
10910
- ...F,
10911
- w,
10912
- D,
10864
+ ...B,
10865
+ Z,
10866
+ se,
10913
10867
  {
10914
10868
  beginKeywords: "struct protocol class extension enum actor",
10915
10869
  end: "\\{",
10916
10870
  excludeEnd: !0,
10917
- keywords: u,
10871
+ keywords: N,
10918
10872
  contains: [
10919
10873
  v.inherit(v.TITLE_MODE, {
10920
10874
  className: "title.class",
10921
10875
  begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
10922
10876
  }),
10923
- ...f
10877
+ ...S
10924
10878
  ]
10925
10879
  },
10926
- V,
10927
- oe,
10880
+ Me,
10881
+ Ie,
10928
10882
  {
10929
10883
  beginKeywords: "import",
10930
10884
  end: /$/,
10931
- contains: [...F],
10885
+ contains: [...B],
10932
10886
  relevance: 0
10933
10887
  },
10934
- ...f,
10935
- ...P,
10936
- ...te,
10937
- H,
10938
- se,
10939
- ...Ne,
10940
- ...q,
10941
- k,
10942
- me
10888
+ ...S,
10889
+ ...H,
10890
+ ...$,
10891
+ P,
10892
+ le,
10893
+ ...T,
10894
+ ...de,
10895
+ j,
10896
+ _
10943
10897
  ]
10944
10898
  };
10945
10899
  }
10946
- return un = B, un;
10900
+ return dn = D, dn;
10947
10901
  }
10948
- var gn, st;
10902
+ var un, ct;
10949
10903
  function ta() {
10950
- if (st)
10951
- return gn;
10952
- st = 1;
10904
+ if (ct)
10905
+ return un;
10906
+ ct = 1;
10953
10907
  function n(e) {
10954
10908
  const t = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", c = {
10955
10909
  className: "attr",
@@ -11006,9 +10960,9 @@ function ta() {
11006
10960
  end: /"/
11007
10961
  },
11008
10962
  { begin: /[^\s,{}[\]]+/ }
11009
- ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", d = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", l = "(\\.[0-9]*)?", g = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", b = {
10963
+ ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", d = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", l = "(\\.[0-9]*)?", u = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", b = {
11010
10964
  className: "number",
11011
- begin: "\\b" + i + d + l + g + "\\b"
10965
+ begin: "\\b" + i + d + l + u + "\\b"
11012
10966
  }, p = {
11013
10967
  end: ",",
11014
10968
  endsWithParent: !0,
@@ -11027,7 +10981,7 @@ function ta() {
11027
10981
  contains: [p],
11028
10982
  illegal: "\\n",
11029
10983
  relevance: 0
11030
- }, N = [
10984
+ }, h = [
11031
10985
  c,
11032
10986
  {
11033
10987
  className: "meta",
@@ -11106,21 +11060,21 @@ function ta() {
11106
11060
  m,
11107
11061
  E,
11108
11062
  a
11109
- ], h = [...N];
11110
- return h.pop(), h.push(r), p.contains = h, {
11063
+ ], f = [...h];
11064
+ return f.pop(), f.push(r), p.contains = f, {
11111
11065
  name: "YAML",
11112
11066
  case_insensitive: !0,
11113
11067
  aliases: ["yml"],
11114
- contains: N
11068
+ contains: h
11115
11069
  };
11116
11070
  }
11117
- return gn = n, gn;
11071
+ return un = n, un;
11118
11072
  }
11119
- var bn, ot;
11073
+ var gn, lt;
11120
11074
  function ra() {
11121
- if (ot)
11122
- return bn;
11123
- ot = 1;
11075
+ if (lt)
11076
+ return gn;
11077
+ lt = 1;
11124
11078
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
11125
11079
  "as",
11126
11080
  // for exports
@@ -11256,7 +11210,6 @@ function ra() {
11256
11210
  "window",
11257
11211
  "document",
11258
11212
  "localStorage",
11259
- "sessionStorage",
11260
11213
  "module",
11261
11214
  "global"
11262
11215
  // Node.js
@@ -11266,56 +11219,56 @@ function ra() {
11266
11219
  c
11267
11220
  );
11268
11221
  function i(l) {
11269
- const g = l.regex, b = (K, { after: Q }) => {
11270
- const j = "</" + K[0].slice(1);
11271
- return K.input.indexOf(j, Q) !== -1;
11222
+ const u = l.regex, b = (P, { after: X }) => {
11223
+ const ee = "</" + P[0].slice(1);
11224
+ return P.input.indexOf(ee, X) !== -1;
11272
11225
  }, p = n, m = {
11273
11226
  begin: "<>",
11274
11227
  end: "</>"
11275
- }, E = /<[A-Za-z0-9\\._:-]+\s*\/>/, N = {
11228
+ }, E = /<[A-Za-z0-9\\._:-]+\s*\/>/, h = {
11276
11229
  begin: /<[A-Za-z0-9\\._:-]+/,
11277
11230
  end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
11278
11231
  /**
11279
11232
  * @param {RegExpMatchArray} match
11280
11233
  * @param {CallbackResponse} response
11281
11234
  */
11282
- isTrulyOpeningTag: (K, Q) => {
11283
- const j = K[0].length + K.index, ee = K.input[j];
11235
+ isTrulyOpeningTag: (P, X) => {
11236
+ const ee = P[0].length + P.index, te = P.input[ee];
11284
11237
  if (
11285
11238
  // HTML should not include another raw `<` inside a tag
11286
11239
  // nested type?
11287
11240
  // `<Array<Array<number>>`, etc.
11288
- ee === "<" || // the , gives away that this is not HTML
11241
+ te === "<" || // the , gives away that this is not HTML
11289
11242
  // `<T, A extends keyof T, V>`
11290
- ee === ","
11243
+ te === ","
11291
11244
  ) {
11292
- Q.ignoreMatch();
11245
+ X.ignoreMatch();
11293
11246
  return;
11294
11247
  }
11295
- ee === ">" && (b(K, { after: j }) || Q.ignoreMatch());
11296
- let ae;
11297
- const se = K.input.substring(j);
11298
- if (ae = se.match(/^\s*=/)) {
11299
- Q.ignoreMatch();
11248
+ te === ">" && (b(P, { after: ee }) || X.ignoreMatch());
11249
+ let re;
11250
+ const ae = P.input.substring(ee);
11251
+ if (re = ae.match(/^\s*=/)) {
11252
+ X.ignoreMatch();
11300
11253
  return;
11301
11254
  }
11302
- if ((ae = se.match(/^\s+extends\s+/)) && ae.index === 0) {
11303
- Q.ignoreMatch();
11255
+ if ((re = ae.match(/^\s+extends\s+/)) && re.index === 0) {
11256
+ X.ignoreMatch();
11304
11257
  return;
11305
11258
  }
11306
11259
  }
11307
- }, h = {
11260
+ }, f = {
11308
11261
  $pattern: n,
11309
11262
  keyword: e,
11310
11263
  literal: t,
11311
11264
  built_in: r,
11312
11265
  "variable.language": a
11313
- }, S = "[0-9](_?[0-9])*", I = `\\.(${S})`, A = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
11266
+ }, A = "[0-9](_?[0-9])*", R = `\\.(${A})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", I = {
11314
11267
  className: "number",
11315
11268
  variants: [
11316
11269
  // DecimalLiteral
11317
- { begin: `(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${S})\\b` },
11318
- { begin: `\\b(${A})\\b((${I})\\b|\\.)?|(${I})\\b` },
11270
+ { begin: `(\\b(${M})((${R})|\\.)?|(${R}))[eE][+-]?(${A})\\b` },
11271
+ { begin: `\\b(${M})\\b((${R})\\b|\\.)?|(${R})\\b` },
11319
11272
  // DecimalBigIntegerLiteral
11320
11273
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
11321
11274
  // NonDecimalIntegerLiteral
@@ -11331,10 +11284,10 @@ function ra() {
11331
11284
  className: "subst",
11332
11285
  begin: "\\$\\{",
11333
11286
  end: "\\}",
11334
- keywords: h,
11287
+ keywords: f,
11335
11288
  contains: []
11336
11289
  // defined later
11337
- }, B = {
11290
+ }, D = {
11338
11291
  begin: "html`",
11339
11292
  end: "",
11340
11293
  starts: {
@@ -11359,18 +11312,6 @@ function ra() {
11359
11312
  subLanguage: "css"
11360
11313
  }
11361
11314
  }, C = {
11362
- begin: "gql`",
11363
- end: "",
11364
- starts: {
11365
- end: "`",
11366
- returnEnd: !1,
11367
- contains: [
11368
- l.BACKSLASH_ESCAPE,
11369
- L
11370
- ],
11371
- subLanguage: "graphql"
11372
- }
11373
- }, G = {
11374
11315
  className: "string",
11375
11316
  begin: "`",
11376
11317
  end: "`",
@@ -11378,7 +11319,7 @@ function ra() {
11378
11319
  l.BACKSLASH_ESCAPE,
11379
11320
  L
11380
11321
  ]
11381
- }, J = {
11322
+ }, B = {
11382
11323
  className: "comment",
11383
11324
  variants: [
11384
11325
  l.COMMENT(
@@ -11423,47 +11364,46 @@ function ra() {
11423
11364
  l.C_BLOCK_COMMENT_MODE,
11424
11365
  l.C_LINE_COMMENT_MODE
11425
11366
  ]
11426
- }, re = [
11367
+ }, ne = [
11427
11368
  l.APOS_STRING_MODE,
11428
11369
  l.QUOTE_STRING_MODE,
11429
- B,
11370
+ D,
11430
11371
  v,
11431
11372
  C,
11432
- G,
11433
11373
  // Skip numbers when they are part of a variable name
11434
11374
  { match: /\$\d+/ },
11435
- M
11375
+ I
11436
11376
  // This is intentional:
11437
11377
  // See https://github.com/highlightjs/highlight.js/issues/3288
11438
11378
  // hljs.REGEXP_MODE
11439
11379
  ];
11440
- L.contains = re.concat({
11380
+ L.contains = ne.concat({
11441
11381
  // we need to pair up {} inside our subst to prevent
11442
11382
  // it from ending too early by matching another }
11443
11383
  begin: /\{/,
11444
11384
  end: /\}/,
11445
- keywords: h,
11385
+ keywords: f,
11446
11386
  contains: [
11447
11387
  "self"
11448
- ].concat(re)
11388
+ ].concat(ne)
11449
11389
  });
11450
- const W = [].concat(J, L.contains), U = W.concat([
11390
+ const Q = [].concat(B, L.contains), z = Q.concat([
11451
11391
  // eat recursive parens in sub expressions
11452
11392
  {
11453
11393
  begin: /\(/,
11454
11394
  end: /\)/,
11455
- keywords: h,
11456
- contains: ["self"].concat(W)
11395
+ keywords: f,
11396
+ contains: ["self"].concat(Q)
11457
11397
  }
11458
- ]), X = {
11398
+ ]), V = {
11459
11399
  className: "params",
11460
11400
  begin: /\(/,
11461
11401
  end: /\)/,
11462
11402
  excludeBegin: !0,
11463
11403
  excludeEnd: !0,
11464
- keywords: h,
11465
- contains: U
11466
- }, u = {
11404
+ keywords: f,
11405
+ contains: z
11406
+ }, g = {
11467
11407
  variants: [
11468
11408
  // class Car extends vehicle
11469
11409
  {
@@ -11474,7 +11414,7 @@ function ra() {
11474
11414
  /\s+/,
11475
11415
  /extends/,
11476
11416
  /\s+/,
11477
- g.concat(p, "(", g.concat(/\./, p), ")*")
11417
+ u.concat(p, "(", u.concat(/\./, p), ")*")
11478
11418
  ],
11479
11419
  scope: {
11480
11420
  1: "keyword",
@@ -11496,9 +11436,9 @@ function ra() {
11496
11436
  }
11497
11437
  }
11498
11438
  ]
11499
- }, f = {
11439
+ }, N = {
11500
11440
  relevance: 0,
11501
- match: g.either(
11441
+ match: u.either(
11502
11442
  // Hard coded exceptions
11503
11443
  /\bJSON/,
11504
11444
  // Float32Array, OutT
@@ -11520,12 +11460,12 @@ function ra() {
11520
11460
  ...c
11521
11461
  ]
11522
11462
  }
11523
- }, O = {
11463
+ }, S = {
11524
11464
  label: "use_strict",
11525
11465
  className: "meta",
11526
11466
  relevance: 10,
11527
11467
  begin: /^\s*['"]use (strict|asm)['"]/
11528
- }, x = {
11468
+ }, k = {
11529
11469
  variants: [
11530
11470
  {
11531
11471
  match: [
@@ -11548,39 +11488,39 @@ function ra() {
11548
11488
  3: "title.function"
11549
11489
  },
11550
11490
  label: "func.def",
11551
- contains: [X],
11491
+ contains: [V],
11552
11492
  illegal: /%/
11553
- }, P = {
11493
+ }, F = {
11554
11494
  relevance: 0,
11555
11495
  match: /\b[A-Z][A-Z_0-9]+\b/,
11556
11496
  className: "variable.constant"
11557
11497
  };
11558
- function Y(K) {
11559
- return g.concat("(?!", K.join("|"), ")");
11498
+ function H(P) {
11499
+ return u.concat("(?!", P.join("|"), ")");
11560
11500
  }
11561
- const ne = {
11562
- match: g.concat(
11501
+ const J = {
11502
+ match: u.concat(
11563
11503
  /\b/,
11564
- Y([
11504
+ H([
11565
11505
  ...o,
11566
11506
  "super",
11567
11507
  "import"
11568
11508
  ]),
11569
11509
  p,
11570
- g.lookahead(/\(/)
11510
+ u.lookahead(/\(/)
11571
11511
  ),
11572
11512
  className: "title.function",
11573
11513
  relevance: 0
11574
- }, te = {
11575
- begin: g.concat(/\./, g.lookahead(
11576
- g.concat(p, /(?![0-9A-Za-z$_(])/)
11514
+ }, oe = {
11515
+ begin: u.concat(/\./, u.lookahead(
11516
+ u.concat(p, /(?![0-9A-Za-z$_(])/)
11577
11517
  )),
11578
11518
  end: p,
11579
11519
  excludeBegin: !0,
11580
11520
  keywords: "prototype",
11581
11521
  className: "property",
11582
11522
  relevance: 0
11583
- }, z = {
11523
+ }, $ = {
11584
11524
  match: [
11585
11525
  /get|set/,
11586
11526
  /\s+/,
@@ -11596,9 +11536,9 @@ function ra() {
11596
11536
  // eat to avoid empty params
11597
11537
  begin: /\(\)/
11598
11538
  },
11599
- X
11539
+ V
11600
11540
  ]
11601
- }, Z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + l.UNDERSCORE_IDENT_RE + ")\\s*=>", H = {
11541
+ }, W = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + l.UNDERSCORE_IDENT_RE + ")\\s*=>", Y = {
11602
11542
  match: [
11603
11543
  /const|var|let/,
11604
11544
  /\s+/,
@@ -11607,7 +11547,7 @@ function ra() {
11607
11547
  /=\s*/,
11608
11548
  /(async\s*)?/,
11609
11549
  // async is optional
11610
- g.lookahead(Z)
11550
+ u.lookahead(W)
11611
11551
  ],
11612
11552
  keywords: "async",
11613
11553
  className: {
@@ -11615,15 +11555,15 @@ function ra() {
11615
11555
  3: "title.function"
11616
11556
  },
11617
11557
  contains: [
11618
- X
11558
+ V
11619
11559
  ]
11620
11560
  };
11621
11561
  return {
11622
- name: "JavaScript",
11562
+ name: "Javascript",
11623
11563
  aliases: ["js", "jsx", "mjs", "cjs"],
11624
- keywords: h,
11564
+ keywords: f,
11625
11565
  // this will be extended by TypeScript
11626
- exports: { PARAMS_CONTAINS: U, CLASS_REFERENCE: f },
11566
+ exports: { PARAMS_CONTAINS: z, CLASS_REFERENCE: N },
11627
11567
  illegal: /#(?![$_A-z])/,
11628
11568
  contains: [
11629
11569
  l.SHEBANG({
@@ -11631,38 +11571,37 @@ function ra() {
11631
11571
  binary: "node",
11632
11572
  relevance: 5
11633
11573
  }),
11634
- O,
11574
+ S,
11635
11575
  l.APOS_STRING_MODE,
11636
11576
  l.QUOTE_STRING_MODE,
11637
- B,
11577
+ D,
11638
11578
  v,
11639
11579
  C,
11640
- G,
11641
- J,
11580
+ B,
11642
11581
  // Skip numbers when they are part of a variable name
11643
11582
  { match: /\$\d+/ },
11644
- M,
11645
- f,
11583
+ I,
11584
+ N,
11646
11585
  {
11647
11586
  className: "attr",
11648
- begin: p + g.lookahead(":"),
11587
+ begin: p + u.lookahead(":"),
11649
11588
  relevance: 0
11650
11589
  },
11651
- H,
11590
+ Y,
11652
11591
  {
11653
11592
  // "value" container
11654
11593
  begin: "(" + l.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
11655
11594
  keywords: "return throw case",
11656
11595
  relevance: 0,
11657
11596
  contains: [
11658
- J,
11597
+ B,
11659
11598
  l.REGEXP_MODE,
11660
11599
  {
11661
11600
  className: "function",
11662
11601
  // we have to count the parens to make sure we actually have the
11663
11602
  // correct bounding ( ) before the =>. There could be any number of
11664
11603
  // sub-expressions inside also surrounded by parens.
11665
- begin: Z,
11604
+ begin: W,
11666
11605
  returnBegin: !0,
11667
11606
  end: "\\s*=>",
11668
11607
  contains: [
@@ -11683,8 +11622,8 @@ function ra() {
11683
11622
  end: /\)/,
11684
11623
  excludeBegin: !0,
11685
11624
  excludeEnd: !0,
11686
- keywords: h,
11687
- contains: U
11625
+ keywords: f,
11626
+ contains: z
11688
11627
  }
11689
11628
  ]
11690
11629
  }
@@ -11705,18 +11644,18 @@ function ra() {
11705
11644
  { begin: m.begin, end: m.end },
11706
11645
  { match: E },
11707
11646
  {
11708
- begin: N.begin,
11647
+ begin: h.begin,
11709
11648
  // we carefully check the opening tag to see if it truly
11710
11649
  // is a tag and not a false positive
11711
- "on:begin": N.isTrulyOpeningTag,
11712
- end: N.end
11650
+ "on:begin": h.isTrulyOpeningTag,
11651
+ end: h.end
11713
11652
  }
11714
11653
  ],
11715
11654
  subLanguage: "xml",
11716
11655
  contains: [
11717
11656
  {
11718
- begin: N.begin,
11719
- end: N.end,
11657
+ begin: h.begin,
11658
+ end: h.end,
11720
11659
  skip: !0,
11721
11660
  contains: ["self"]
11722
11661
  }
@@ -11724,7 +11663,7 @@ function ra() {
11724
11663
  }
11725
11664
  ]
11726
11665
  },
11727
- x,
11666
+ k,
11728
11667
  {
11729
11668
  // prevent this from getting swallowed up by function
11730
11669
  // since they appear "function like"
@@ -11739,7 +11678,7 @@ function ra() {
11739
11678
  returnBegin: !0,
11740
11679
  label: "func.def",
11741
11680
  contains: [
11742
- X,
11681
+ V,
11743
11682
  l.inherit(l.TITLE_MODE, { begin: p, className: "title.function" })
11744
11683
  ]
11745
11684
  },
@@ -11748,7 +11687,7 @@ function ra() {
11748
11687
  match: /\.\.\./,
11749
11688
  relevance: 0
11750
11689
  },
11751
- te,
11690
+ oe,
11752
11691
  // hack: prevents detection of keywords in some circumstances
11753
11692
  // .keyword()
11754
11693
  // $keyword = x
@@ -11759,12 +11698,12 @@ function ra() {
11759
11698
  {
11760
11699
  match: [/\bconstructor(?=\s*\()/],
11761
11700
  className: { 1: "title.function" },
11762
- contains: [X]
11701
+ contains: [V]
11763
11702
  },
11764
- ne,
11765
- P,
11766
- u,
11767
- z,
11703
+ J,
11704
+ F,
11705
+ g,
11706
+ $,
11768
11707
  {
11769
11708
  match: /\$[(.]/
11770
11709
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -11773,7 +11712,7 @@ function ra() {
11773
11712
  };
11774
11713
  }
11775
11714
  function d(l) {
11776
- const g = i(l), b = n, p = [
11715
+ const u = i(l), b = n, p = [
11777
11716
  "any",
11778
11717
  "void",
11779
11718
  "number",
@@ -11788,7 +11727,7 @@ function ra() {
11788
11727
  beginKeywords: "namespace",
11789
11728
  end: /\{/,
11790
11729
  excludeEnd: !0,
11791
- contains: [g.exports.CLASS_REFERENCE]
11730
+ contains: [u.exports.CLASS_REFERENCE]
11792
11731
  }, E = {
11793
11732
  beginKeywords: "interface",
11794
11733
  end: /\{/,
@@ -11797,12 +11736,12 @@ function ra() {
11797
11736
  keyword: "interface extends",
11798
11737
  built_in: p
11799
11738
  },
11800
- contains: [g.exports.CLASS_REFERENCE]
11801
- }, N = {
11739
+ contains: [u.exports.CLASS_REFERENCE]
11740
+ }, h = {
11802
11741
  className: "meta",
11803
11742
  relevance: 10,
11804
11743
  begin: /^\s*['"]use strict['"]/
11805
- }, h = [
11744
+ }, f = [
11806
11745
  "type",
11807
11746
  "namespace",
11808
11747
  "interface",
@@ -11815,44 +11754,42 @@ function ra() {
11815
11754
  "readonly",
11816
11755
  "enum",
11817
11756
  "override"
11818
- ], S = {
11757
+ ], A = {
11819
11758
  $pattern: n,
11820
- keyword: e.concat(h),
11759
+ keyword: e.concat(f),
11821
11760
  literal: t,
11822
11761
  built_in: r.concat(p),
11823
11762
  "variable.language": a
11824
- }, I = {
11763
+ }, R = {
11825
11764
  className: "meta",
11826
11765
  begin: "@" + b
11827
- }, A = (L, B, v) => {
11828
- const C = L.contains.findIndex((G) => G.label === B);
11766
+ }, M = (L, D, v) => {
11767
+ const C = L.contains.findIndex((q) => q.label === D);
11829
11768
  if (C === -1)
11830
11769
  throw new Error("can not find mode to replace");
11831
11770
  L.contains.splice(C, 1, v);
11832
11771
  };
11833
- Object.assign(g.keywords, S), g.exports.PARAMS_CONTAINS.push(I), g.contains = g.contains.concat([
11834
- I,
11772
+ Object.assign(u.keywords, A), u.exports.PARAMS_CONTAINS.push(R), u.contains = u.contains.concat([
11773
+ R,
11835
11774
  m,
11836
11775
  E
11837
- ]), A(g, "shebang", l.SHEBANG()), A(g, "use_strict", N);
11838
- const M = g.contains.find((L) => L.label === "func.def");
11839
- return M.relevance = 0, Object.assign(g, {
11776
+ ]), M(u, "shebang", l.SHEBANG()), M(u, "use_strict", h);
11777
+ const I = u.contains.find((L) => L.label === "func.def");
11778
+ return I.relevance = 0, Object.assign(u, {
11840
11779
  name: "TypeScript",
11841
11780
  aliases: [
11842
11781
  "ts",
11843
- "tsx",
11844
- "mts",
11845
- "cts"
11782
+ "tsx"
11846
11783
  ]
11847
- }), g;
11784
+ }), u;
11848
11785
  }
11849
- return bn = d, bn;
11786
+ return gn = d, gn;
11850
11787
  }
11851
- var pn, ct;
11788
+ var bn, dt;
11852
11789
  function aa() {
11853
- if (ct)
11854
- return pn;
11855
- ct = 1;
11790
+ if (dt)
11791
+ return bn;
11792
+ dt = 1;
11856
11793
  function n(e) {
11857
11794
  const t = e.regex, s = {
11858
11795
  className: "string",
@@ -11919,7 +11856,7 @@ function aa() {
11919
11856
  begin: /&B[01_]+((U?[SIL])|[%&])?/
11920
11857
  }
11921
11858
  ]
11922
- }, g = {
11859
+ }, u = {
11923
11860
  className: "label",
11924
11861
  begin: /^\w+:/
11925
11862
  }, b = e.COMMENT(/'''/, /$/, { contains: [
@@ -11958,7 +11895,7 @@ function aa() {
11958
11895
  c,
11959
11896
  d,
11960
11897
  l,
11961
- g,
11898
+ u,
11962
11899
  b,
11963
11900
  p,
11964
11901
  {
@@ -11972,13 +11909,13 @@ function aa() {
11972
11909
  ]
11973
11910
  };
11974
11911
  }
11975
- return pn = n, pn;
11912
+ return bn = n, bn;
11976
11913
  }
11977
- var _n, lt;
11914
+ var pn, ut;
11978
11915
  function ia() {
11979
- if (lt)
11980
- return _n;
11981
- lt = 1;
11916
+ if (ut)
11917
+ return pn;
11918
+ ut = 1;
11982
11919
  function n(e) {
11983
11920
  e.regex;
11984
11921
  const t = e.COMMENT(/\(;/, /;\)/);
@@ -12090,55 +12027,55 @@ function ia() {
12090
12027
  ]
12091
12028
  };
12092
12029
  }
12093
- return _n = n, _n;
12030
+ return pn = n, pn;
12094
12031
  }
12095
- var R = Tr;
12096
- R.registerLanguage("xml", Sr());
12097
- R.registerLanguage("bash", Or());
12098
- R.registerLanguage("c", wr());
12099
- R.registerLanguage("cpp", Rr());
12100
- R.registerLanguage("csharp", Ar());
12101
- R.registerLanguage("css", Mr());
12102
- R.registerLanguage("markdown", Ir());
12103
- R.registerLanguage("diff", Cr());
12104
- R.registerLanguage("ruby", kr());
12105
- R.registerLanguage("go", xr());
12106
- R.registerLanguage("graphql", Dr());
12107
- R.registerLanguage("ini", Lr());
12108
- R.registerLanguage("java", Br());
12109
- R.registerLanguage("javascript", Ur());
12110
- R.registerLanguage("json", Pr());
12111
- R.registerLanguage("kotlin", Fr());
12112
- R.registerLanguage("less", $r());
12113
- R.registerLanguage("lua", zr());
12114
- R.registerLanguage("makefile", Kr());
12115
- R.registerLanguage("perl", qr());
12116
- R.registerLanguage("objectivec", Hr());
12117
- R.registerLanguage("php", Gr());
12118
- R.registerLanguage("php-template", Wr());
12119
- R.registerLanguage("plaintext", Yr());
12120
- R.registerLanguage("python", Zr());
12121
- R.registerLanguage("python-repl", Vr());
12122
- R.registerLanguage("r", Xr());
12123
- R.registerLanguage("rust", Qr());
12124
- R.registerLanguage("scss", Jr());
12125
- R.registerLanguage("shell", jr());
12126
- R.registerLanguage("sql", ea());
12127
- R.registerLanguage("swift", na());
12128
- R.registerLanguage("yaml", ta());
12129
- R.registerLanguage("typescript", ra());
12130
- R.registerLanguage("vbnet", aa());
12131
- R.registerLanguage("wasm", ia());
12132
- R.HighlightJS = R;
12133
- R.default = R;
12134
- var sa = R;
12135
- const oa = /* @__PURE__ */ Mt(sa);
12032
+ var O = Tr;
12033
+ O.registerLanguage("xml", Sr());
12034
+ O.registerLanguage("bash", wr());
12035
+ O.registerLanguage("c", Or());
12036
+ O.registerLanguage("cpp", Rr());
12037
+ O.registerLanguage("csharp", Ar());
12038
+ O.registerLanguage("css", Mr());
12039
+ O.registerLanguage("markdown", Ir());
12040
+ O.registerLanguage("diff", Cr());
12041
+ O.registerLanguage("ruby", kr());
12042
+ O.registerLanguage("go", xr());
12043
+ O.registerLanguage("graphql", Dr());
12044
+ O.registerLanguage("ini", Lr());
12045
+ O.registerLanguage("java", Br());
12046
+ O.registerLanguage("javascript", Ur());
12047
+ O.registerLanguage("json", Pr());
12048
+ O.registerLanguage("kotlin", Fr());
12049
+ O.registerLanguage("less", $r());
12050
+ O.registerLanguage("lua", zr());
12051
+ O.registerLanguage("makefile", Kr());
12052
+ O.registerLanguage("perl", qr());
12053
+ O.registerLanguage("objectivec", Gr());
12054
+ O.registerLanguage("php", Hr());
12055
+ O.registerLanguage("php-template", Wr());
12056
+ O.registerLanguage("plaintext", Yr());
12057
+ O.registerLanguage("python", Zr());
12058
+ O.registerLanguage("python-repl", Vr());
12059
+ O.registerLanguage("r", Xr());
12060
+ O.registerLanguage("rust", Qr());
12061
+ O.registerLanguage("scss", Jr());
12062
+ O.registerLanguage("shell", jr());
12063
+ O.registerLanguage("sql", ea());
12064
+ O.registerLanguage("swift", na());
12065
+ O.registerLanguage("yaml", ta());
12066
+ O.registerLanguage("typescript", ra());
12067
+ O.registerLanguage("vbnet", aa());
12068
+ O.registerLanguage("wasm", ia());
12069
+ O.HighlightJS = O;
12070
+ O.default = O;
12071
+ var sa = O;
12072
+ const oa = sa;
12136
12073
  var ca = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (n, e, t, s) => {
12137
12074
  for (var c = s > 1 ? void 0 : s ? la(e, t) : e, o = n.length - 1, a; o >= 0; o--)
12138
12075
  (a = n[o]) && (c = (s ? a(e, t, c) : a(c)) || c);
12139
12076
  return s && c && ca(e, t, c), c;
12140
12077
  };
12141
- let ce = class extends Ot {
12078
+ let ce = class extends wt {
12142
12079
  constructor() {
12143
12080
  super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
12144
12081
  }
@@ -12150,8 +12087,8 @@ let ce = class extends Ot {
12150
12087
  });
12151
12088
  }
12152
12089
  render() {
12153
- let n = Ae`${this.renderContainer()}`;
12154
- return this.hideHeader || (n = Ae`${this.renderHeader()}${this.renderContainer()}`), n;
12090
+ let n = Se`${this.renderContainer()}`;
12091
+ return this.hideHeader || (n = Se`${this.renderHeader()}${this.renderContainer()}`), n;
12155
12092
  }
12156
12093
  renderContainer() {
12157
12094
  const n = {
@@ -12163,13 +12100,13 @@ let ce = class extends Ot {
12163
12100
  const e = document.createElement("div");
12164
12101
  e.innerHTML = this._code ? this._code.trim() : "<slot></slot>";
12165
12102
  let t;
12166
- return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Ae`<pre
12103
+ return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Se`<pre
12167
12104
  style="${t}"
12168
12105
  part="container"
12169
12106
  ><code class="${At(n)}">${e}</code></pre>`;
12170
12107
  }
12171
12108
  renderHeader() {
12172
- return Ae`<div class="header" part="header">
12109
+ return Se`<div class="header" part="header">
12173
12110
  <div class="title">${this.label}</div>
12174
12111
  <span><slot name="actionItems"></slot></span>
12175
12112
  </div>`;
@@ -12177,29 +12114,29 @@ let ce = class extends Ot {
12177
12114
  };
12178
12115
  ce.styles = [
12179
12116
  Tt`
12180
- ${St(It)}
12117
+ ${St(Mt)}
12181
12118
  `
12182
12119
  ];
12183
12120
  pe([
12184
- Se()
12121
+ ve()
12185
12122
  ], ce.prototype, "language", 2);
12186
12123
  pe([
12187
- Se()
12124
+ ve()
12188
12125
  ], ce.prototype, "label", 2);
12189
12126
  pe([
12190
- Se({ type: Boolean, reflect: !0 })
12127
+ ve({ type: Boolean, reflect: !0 })
12191
12128
  ], ce.prototype, "inline", 2);
12192
12129
  pe([
12193
- Se({ type: Boolean, reflect: !0 })
12130
+ ve({ type: Boolean, reflect: !0 })
12194
12131
  ], ce.prototype, "hideHeader", 2);
12195
12132
  pe([
12196
12133
  Rt({})
12197
12134
  ], ce.prototype, "_codeItems", 2);
12198
12135
  pe([
12199
- Se()
12136
+ ve()
12200
12137
  ], ce.prototype, "maxHeight", 2);
12201
12138
  ce = pe([
12202
- wt("cv-code-snippet")
12139
+ Ot("cv-code-snippet")
12203
12140
  ], ce);
12204
12141
  const pa = ce;
12205
12142
  export {