reactjs-tiptap-editor 0.3.15 → 0.3.17

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 (122) hide show
  1. package/lib/{ActionMenuButton-cLs916Iz.js → ActionMenuButton-BrCaG1xk.js} +1 -1
  2. package/lib/{ActionMenuButton-BiJA06nt.cjs → ActionMenuButton-KFJKTwTF.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +2 -2
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +1 -1
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +1 -1
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +1 -1
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +1 -1
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +1 -1
  15. package/lib/CodeBlock.cjs +26 -26
  16. package/lib/CodeBlock.js +660 -643
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +1 -1
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +1 -1
  21. package/lib/{Drawer-mxoHuP24.js → Drawer-BoMVb5A7.js} +2 -2
  22. package/lib/{Drawer-Ctp3RrUF.cjs → Drawer-DIGVbwK_.cjs} +1 -1
  23. package/lib/Drawer.cjs +1 -1
  24. package/lib/Drawer.js +2 -2
  25. package/lib/Emoji.cjs +1 -1
  26. package/lib/Emoji.js +2 -2
  27. package/lib/{Excalidraw-D2cIInsp.cjs → Excalidraw-36ndx1gh.cjs} +1 -1
  28. package/lib/{Excalidraw-BIN8ca6O.js → Excalidraw-DhvtW1HZ.js} +2 -2
  29. package/lib/Excalidraw.cjs +1 -1
  30. package/lib/Excalidraw.js +1 -1
  31. package/lib/ExportPdf.cjs +1 -1
  32. package/lib/ExportPdf.js +1 -1
  33. package/lib/ExportWord.cjs +1 -1
  34. package/lib/ExportWord.js +1 -1
  35. package/lib/FontFamily.cjs +1 -1
  36. package/lib/FontFamily.js +3 -3
  37. package/lib/FontSize.cjs +1 -1
  38. package/lib/FontSize.js +3 -3
  39. package/lib/FormatPainter.cjs +1 -1
  40. package/lib/FormatPainter.js +1 -1
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +2 -2
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +1 -1
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +1 -1
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +1 -1
  49. package/lib/Iframe.cjs +1 -1
  50. package/lib/Iframe.js +1 -1
  51. package/lib/Image.cjs +1 -1
  52. package/lib/Image.d.cts +7 -0
  53. package/lib/Image.d.ts +7 -0
  54. package/lib/Image.js +1 -1
  55. package/lib/ImageGif.cjs +1 -1
  56. package/lib/ImageGif.js +1 -1
  57. package/lib/ImportWord.cjs +1 -1
  58. package/lib/ImportWord.js +2 -2
  59. package/lib/Indent.cjs +1 -1
  60. package/lib/Indent.js +1 -1
  61. package/lib/Italic.cjs +1 -1
  62. package/lib/Italic.js +1 -1
  63. package/lib/Katex.cjs +1 -1
  64. package/lib/Katex.js +3 -3
  65. package/lib/LineHeight.cjs +1 -1
  66. package/lib/LineHeight.js +2 -2
  67. package/lib/Link.cjs +1 -1
  68. package/lib/Link.js +1 -1
  69. package/lib/Mermaid.cjs +1 -1
  70. package/lib/Mermaid.js +3 -3
  71. package/lib/MoreMark.cjs +1 -1
  72. package/lib/MoreMark.js +1 -1
  73. package/lib/MultiColumn.cjs +1 -1
  74. package/lib/MultiColumn.js +1 -1
  75. package/lib/OrderedList.cjs +1 -1
  76. package/lib/OrderedList.js +1 -1
  77. package/lib/RichTextEditor-B7GWBCUZ.cjs +141 -0
  78. package/lib/{RichTextEditor-1N7Gl9vo.js → RichTextEditor-Coaq773Y.js} +2982 -2820
  79. package/lib/SearchAndReplace.cjs +1 -1
  80. package/lib/SearchAndReplace.js +2 -2
  81. package/lib/SlashCommand.cjs +1 -1
  82. package/lib/SlashCommand.js +2 -2
  83. package/lib/Strike.cjs +1 -1
  84. package/lib/Strike.js +1 -1
  85. package/lib/SubAndSuperScript.cjs +1 -1
  86. package/lib/SubAndSuperScript.js +1 -1
  87. package/lib/Table.cjs +1 -1
  88. package/lib/Table.js +2 -2
  89. package/lib/TableOfContent.cjs +1 -1
  90. package/lib/TableOfContent.js +2 -2
  91. package/lib/TaskList.cjs +1 -1
  92. package/lib/TaskList.js +1 -1
  93. package/lib/TextAlign.cjs +1 -1
  94. package/lib/TextAlign.js +1 -1
  95. package/lib/TextBubble.cjs +1 -1
  96. package/lib/TextBubble.js +2 -2
  97. package/lib/TextDirection.cjs +1 -1
  98. package/lib/TextDirection.js +1 -1
  99. package/lib/TextUnderline.cjs +1 -1
  100. package/lib/TextUnderline.js +1 -1
  101. package/lib/{Twitter-ClB1gNOp.js → Twitter-4jWZEzW-.js} +2 -2
  102. package/lib/{Twitter-CvLMjYUZ.cjs → Twitter-D9TEh74u.cjs} +1 -1
  103. package/lib/Twitter.cjs +1 -1
  104. package/lib/Twitter.js +1 -1
  105. package/lib/Video.cjs +1 -1
  106. package/lib/Video.js +2 -2
  107. package/lib/bubble-extra.cjs +1 -1
  108. package/lib/bubble-extra.js +6 -6
  109. package/lib/index-jEB3jXoa.cjs +1 -0
  110. package/lib/{index-D-DR0FPY.js → index-zcKfSGd5.js} +317 -295
  111. package/lib/index.cjs +1 -1
  112. package/lib/index.js +3 -3
  113. package/lib/locale-bundle.cjs +1 -1
  114. package/lib/locale-bundle.d.cts +21 -1
  115. package/lib/locale-bundle.d.ts +21 -1
  116. package/lib/locale-bundle.js +1 -1
  117. package/lib/style.css +1 -1
  118. package/lib/{textarea-rOG4VKVx.js → textarea-D432J9HA.js} +1 -1
  119. package/lib/{textarea-BIoxUMDS.cjs → textarea-hHZqZb43.cjs} +1 -1
  120. package/package.json +1 -1
  121. package/lib/RichTextEditor-B_I3q8FW.cjs +0 -141
  122. package/lib/index-Dz3YxLE7.cjs +0 -1
package/lib/CodeBlock.js CHANGED
@@ -1,12 +1,12 @@
1
- import { N as ia, t as Bt, m as sa } from "./index-BWx1Mchx.js";
2
- import { N as oa, c as Le, R as la } from "./dom-dataset-CHDbKz5J.js";
1
+ import { N as sa, t as Gt, m as oa } from "./index-BWx1Mchx.js";
2
+ import { N as la, c as Le, R as ca } from "./dom-dataset-CHDbKz5J.js";
3
3
  import { jsxs as _e, jsx as k } from "react/jsx-runtime";
4
- import { d as ne, A as ca, Z as da, a3 as ua, k as xe } from "./RichTextEditor-1N7Gl9vo.js";
4
+ import { d as ne, A as da, Z as ua, a3 as pa, k as xe } from "./RichTextEditor-Coaq773Y.js";
5
5
  import * as ue from "react";
6
- import { useRef as Gt, useCallback as pa, useEffect as zt } from "react";
6
+ import { useRef as zt, useCallback as it, useEffect as Ht } from "react";
7
7
  import * as F from "@radix-ui/react-select";
8
- import { ChevronDown as Tn, ChevronUp as fa, Check as ba } from "lucide-react";
9
- const Ht = F.Root, ga = F.Value, bt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
8
+ import { ChevronDown as Nn, ChevronUp as fa, Check as ba } from "lucide-react";
9
+ const Vt = F.Root, ga = F.Value, gt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
10
10
  F.Trigger,
11
11
  {
12
12
  ref: i,
@@ -17,12 +17,12 @@ const Ht = F.Root, ga = F.Value, bt = ue.forwardRef(({ className: e, children: t
17
17
  ...n,
18
18
  children: [
19
19
  t,
20
- /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Tn, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
20
+ /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Nn, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
21
21
  ]
22
22
  }
23
23
  ));
24
- bt.displayName = F.Trigger.displayName;
25
- const Nn = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
24
+ gt.displayName = F.Trigger.displayName;
25
+ const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
26
26
  F.ScrollUpButton,
27
27
  {
28
28
  ref: n,
@@ -34,8 +34,8 @@ const Nn = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
34
34
  children: /* @__PURE__ */ k(fa, { className: "richtext-h-4 richtext-w-4" })
35
35
  }
36
36
  ));
37
- Nn.displayName = F.ScrollUpButton.displayName;
38
- const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
37
+ On.displayName = F.ScrollUpButton.displayName;
38
+ const Ln = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
39
39
  F.ScrollDownButton,
40
40
  {
41
41
  ref: n,
@@ -44,14 +44,14 @@ const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
44
44
  e
45
45
  ),
46
46
  ...t,
47
- children: /* @__PURE__ */ k(Tn, { className: "richtext-h-4 richtext-w-4" })
47
+ children: /* @__PURE__ */ k(Nn, { className: "richtext-h-4 richtext-w-4" })
48
48
  }
49
49
  ));
50
- On.displayName = F.ScrollDownButton.displayName;
51
- const gt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, d) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
50
+ Ln.displayName = F.ScrollDownButton.displayName;
51
+ const mt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, l) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
52
52
  F.Content,
53
53
  {
54
- ref: d,
54
+ ref: l,
55
55
  className: ne(
56
56
  "richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
57
57
  n === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
@@ -60,7 +60,7 @@ const gt = ue.forwardRef(({ className: e, children: t, position: n = "popper", .
60
60
  position: n,
61
61
  ...i,
62
62
  children: [
63
- /* @__PURE__ */ k(Nn, {}),
63
+ /* @__PURE__ */ k(On, {}),
64
64
  /* @__PURE__ */ k(
65
65
  F.Viewport,
66
66
  {
@@ -71,11 +71,11 @@ const gt = ue.forwardRef(({ className: e, children: t, position: n = "popper", .
71
71
  children: t
72
72
  }
73
73
  ),
74
- /* @__PURE__ */ k(On, {})
74
+ /* @__PURE__ */ k(Ln, {})
75
75
  ]
76
76
  }
77
77
  ) }));
78
- gt.displayName = F.Content.displayName;
78
+ mt.displayName = F.Content.displayName;
79
79
  const ma = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
80
80
  F.Label,
81
81
  {
@@ -85,7 +85,7 @@ const ma = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
85
85
  }
86
86
  ));
87
87
  ma.displayName = F.Label.displayName;
88
- const mt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
88
+ const ht = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
89
89
  F.Item,
90
90
  {
91
91
  ref: i,
@@ -100,7 +100,7 @@ const mt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE_
100
100
  ]
101
101
  }
102
102
  ));
103
- mt.displayName = F.Item.displayName;
103
+ ht.displayName = F.Item.displayName;
104
104
  const ha = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
105
105
  F.Separator,
106
106
  {
@@ -112,7 +112,7 @@ const ha = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
112
112
  ha.displayName = F.Separator.displayName;
113
113
  function _a({ action: e, ...t }) {
114
114
  return /* @__PURE__ */ k(
115
- ca,
115
+ da,
116
116
  {
117
117
  action: e,
118
118
  disabled: t == null ? void 0 : t.disabled,
@@ -121,51 +121,51 @@ function _a({ action: e, ...t }) {
121
121
  }
122
122
  );
123
123
  }
124
- var Ce = {}, Y = Symbol(), ee = Symbol(), Lt = (e) => typeof e == "string" ? b[e] : e, b = {
124
+ var Ce = {}, Y = Symbol(), ee = Symbol(), Ct = (e) => typeof e == "string" ? _[e] : e, _ = {
125
125
  plain: Ce,
126
126
  plaintext: Ce,
127
127
  text: Ce,
128
128
  txt: Ce
129
129
  }, Ne = (e, t) => (t[ee] || Oe)(e, t), Oe = (e, t) => {
130
- for (var n = [e], i, d = [], p = 0; i = Lt(t[Y]); )
130
+ for (var n = [e], i, l = [], u = 0; i = Ct(t[Y]); )
131
131
  delete t[Y], Object.assign(t, i);
132
- for (Mn(e, t, n, 0); d[p++] = n[0], n = n[1]; ) ;
133
- return d;
134
- }, Vt = "</span>", Me = "", Ae = "", Ln = (e) => {
135
- for (var t = "", n = e.length, i = 0; i < n; ) t += Cn(e[i++]);
132
+ for (Pn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
133
+ return l;
134
+ }, Zt = "</span>", Me = "", Ae = "", Cn = (e) => {
135
+ for (var t = "", n = e.length, i = 0; i < n; ) t += Mn(e[i++]);
136
136
  return t;
137
- }, Cn = (e) => {
137
+ }, Mn = (e) => {
138
138
  if (e instanceof be) {
139
- var { type: t, alias: n, content: i } = e, d = Me, p = Ae, g = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof i == "string" ? " keyword-" + i : "")}">`;
140
- Ae += Vt, Me += g;
141
- var h = Cn(i);
142
- return Me = d, Ae = p, g + h + Vt;
139
+ var { type: t, alias: n, content: i } = e, l = Me, u = Ae, b = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof i == "string" ? " keyword-" + i : "")}">`;
140
+ Ae += Zt, Me += b;
141
+ var E = Mn(i);
142
+ return Me = l, Ae = u, b + E + Zt;
143
143
  }
144
- return typeof e != "string" ? Ln(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
144
+ return typeof e != "string" ? Cn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
145
145
  `) ? e.replace(/\n/g, Ae + `
146
146
  ` + Me) : e);
147
- }, Mn = (e, t, n, i, d) => {
148
- for (var p in t)
149
- if (t[p]) for (var g = 0, h = t[p], E = Array.isArray(h) ? h : [h]; g < E.length; ++g) {
150
- if (d && d[0] == p && d[1] == g)
147
+ }, Pn = (e, t, n, i, l) => {
148
+ for (var u in t)
149
+ if (t[u]) for (var b = 0, E = t[u], y = Array.isArray(E) ? E : [E]; b < y.length; ++b) {
150
+ if (l && l[0] == u && l[1] == b)
151
151
  return;
152
- for (var y = E[g], l = y.pattern || y, c = Lt(y.inside), w = y.lookbehind, m = y.greedy && l.global, _ = y.alias, a = n, r = i; a && (!d || r < d[2]); r += a[0].length, a = a[1]) {
153
- var u = a[0], o = 0, s, f;
154
- if (!(u instanceof be)) {
155
- if (l.lastIndex = m ? r : 0, s = l.exec(m ? e : u), s && w && s[1] && (f = s[1].length, s.index += f, s[0] = s[0].slice(f)), m) {
152
+ for (var w = y[b], m = w.pattern || w, p = Ct(w.inside), c = w.lookbehind, f = w.greedy && m.global, g = w.alias, a = n, r = i; a && (!l || r < l[2]); r += a[0].length, a = a[1]) {
153
+ var d = a[0], o = 0, s, h;
154
+ if (!(d instanceof be)) {
155
+ if (m.lastIndex = f ? r : 0, s = m.exec(f ? e : d), s && c && s[1] && (h = s[1].length, s.index += h, s[0] = s[0].slice(h)), f) {
156
156
  if (!s)
157
157
  break;
158
158
  if (s[0]) {
159
159
  for (var S = s.index, R = S + s[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
160
160
  if (a[0] instanceof be)
161
161
  continue;
162
- for (var v = a, h = r; (h += v[0].length) < R; v = v[1], o++) ;
163
- u = e.slice(r, h), s.index -= r;
162
+ for (var v = a, E = r; (E += v[0].length) < R; v = v[1], o++) ;
163
+ d = e.slice(r, E), s.index -= r;
164
164
  }
165
165
  }
166
166
  if (s && s[0]) {
167
- for (var S = s.index, N = s[0], T = u.slice(S + N.length), L = r + u.length, P = new be(p, c ? Ne(N, c) : N, N, _), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
168
- T && (!M || M[0] instanceof be ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? u.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (Mn(e, t, a, r, H = [p, g, L]), L = H[2]), d && L > d[2] && (d[2] = L);
167
+ for (var S = s.index, N = s[0], T = d.slice(S + N.length), L = r + d.length, P = new be(u, p ? Ne(N, p) : N, N, g), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
168
+ T && (!M || M[0] instanceof be ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? d.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (Pn(e, t, a, r, H = [u, b, L]), L = H[2]), l && L > l[2] && (l[2] = L);
169
169
  }
170
170
  }
171
171
  }
@@ -174,15 +174,15 @@ var Ce = {}, Y = Symbol(), ee = Symbol(), Lt = (e) => typeof e == "string" ? b[e
174
174
  function be(e, t, n, i) {
175
175
  this.type = e, this.content = t, this.alias = i, this.length = n.length;
176
176
  }
177
- var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", ht = {
177
+ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", _t = {
178
178
  pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
179
179
  lookbehind: !0,
180
180
  alias: "punctuation"
181
181
  // this looks reasonably well in all themes
182
- }, Pn = {
182
+ }, $n = {
183
183
  variable: /^\$\(|^`|\)$|`$/
184
184
  }, Pe = {
185
- bash: ht,
185
+ bash: _t,
186
186
  environment: {
187
187
  pattern: RegExp("\\$" + Ze),
188
188
  alias: "constant"
@@ -212,7 +212,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
212
212
  {
213
213
  pattern: /\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,
214
214
  greedy: !0,
215
- inside: Pn
215
+ inside: $n
216
216
  },
217
217
  // [2]: Brace expansion
218
218
  {
@@ -232,7 +232,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
232
232
  ],
233
233
  // Escape sequences from echo and printf's manuals, and escaped quotes.
234
234
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[a-fA-F\d]{8}|u[a-fA-F\d]{4}|x[a-fA-F\d]{1,2})/
235
- }, Ea = ht.inside = b.sh = b.shell = b.bash = {
235
+ }, Ea = _t.inside = _.sh = _.shell = _.bash = {
236
236
  shebang: {
237
237
  pattern: /^#!\s*\/.*/,
238
238
  alias: "important"
@@ -299,7 +299,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
299
299
  lookbehind: !0,
300
300
  greedy: !0,
301
301
  inside: {
302
- bash: ht
302
+ bash: _t
303
303
  }
304
304
  },
305
305
  // “Normal” string
@@ -385,8 +385,8 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
385
385
  "operator",
386
386
  "punctuation",
387
387
  "number"
388
- ].forEach((e) => Pn[e] = Ea[e]);
389
- var $n = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = $n.source, Zt = {
388
+ ].forEach((e) => $n[e] = Ea[e]);
389
+ var Dn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = Dn.source, qt = {
390
390
  rule: /^@[\w-]+/,
391
391
  "selector-function-argument": {
392
392
  pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,
@@ -399,11 +399,11 @@ var $n = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = $n.source, Zt
399
399
  }
400
400
  // See rest below
401
401
  };
402
- Zt[Y] = b.css = {
402
+ qt[Y] = _.css = {
403
403
  comment: /\/\*[^]*?\*\//,
404
404
  atrule: {
405
405
  pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),
406
- inside: Zt
406
+ inside: qt
407
407
  },
408
408
  url: {
409
409
  // https://drafts.csswg.org/css-values-3/#urls
@@ -424,7 +424,7 @@ Zt[Y] = b.css = {
424
424
  lookbehind: !0
425
425
  },
426
426
  string: {
427
- pattern: $n,
427
+ pattern: Dn,
428
428
  greedy: !0
429
429
  },
430
430
  property: {
@@ -443,25 +443,25 @@ var Be = (e, t) => {
443
443
  var n = e, i = ya.call(e).slice(8, -1);
444
444
  if (i == "Object") {
445
445
  t.set(e, n = {});
446
- for (var d in e)
447
- n[d] = Be(e[d], t);
446
+ for (var l in e)
447
+ n[l] = Be(e[l], t);
448
448
  e[Y] && (n[Y] = Be(e[Y], t)), e[ee] && (n[ee] = e[ee]);
449
449
  } else if (i == "Array") {
450
450
  t.set(e, n = []);
451
- for (var p = 0, g = e.length; p < g; p++)
452
- n[p] = Be(e[p], t);
451
+ for (var u = 0, b = e.length; u < b; u++)
452
+ n[u] = Be(e[u], t);
453
453
  }
454
454
  return n;
455
- }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(b[e]), t), $ = (e, t, n) => {
455
+ }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(_[e]), t), $ = (e, t, n) => {
456
456
  var i = {};
457
- for (var d in e)
458
- i[d] = e[d], delete e[d];
459
- for (var d in i)
460
- d == t && Object.assign(e, n), n.hasOwnProperty(d) || (e[d] = i[d]);
461
- }, ya = {}.toString, qe = b.css, qt = {
457
+ for (var l in e)
458
+ i[l] = e[l], delete e[l];
459
+ for (var l in i)
460
+ l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = i[l]);
461
+ }, ya = {}.toString, qe = _.css, Kt = {
462
462
  pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/,
463
463
  lookbehind: !0
464
- }, Kt = {
464
+ }, Wt = {
465
465
  pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
466
466
  lookbehind: !0
467
467
  };
@@ -544,18 +544,18 @@ $(qe, "function", {
544
544
  pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,
545
545
  inside: {
546
546
  function: /^[^(]+/,
547
- unit: qt,
548
- number: Kt,
547
+ unit: Kt,
548
+ number: Wt,
549
549
  punctuation: /[(),]/
550
550
  }
551
551
  }
552
552
  ],
553
553
  // it's important that there is no boundary assertion after the hex digits
554
554
  entity: /\\[a-f\d]{1,8}/i,
555
- unit: qt,
556
- number: Kt
555
+ unit: Kt,
556
+ number: Wt
557
557
  });
558
- b.ini = {
558
+ _.ini = {
559
559
  /**
560
560
  * The component mimics the behavior of the Win32 API parser.
561
561
  *
@@ -598,10 +598,10 @@ b.ini = {
598
598
  var se = () => ({
599
599
  pattern: /\/\/.*|\/\*[^]*?(?:\*\/|$)/g,
600
600
  greedy: !0
601
- }), Ct = () => ({
601
+ }), Mt = () => ({
602
602
  pattern: /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,
603
603
  greedy: !0
604
- }), Dn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, it = {
604
+ }), Fn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, st = {
605
605
  "interpolation-punctuation": {
606
606
  pattern: /^\$\{?|\}$/,
607
607
  alias: "punctuation"
@@ -610,7 +610,7 @@ var se = () => ({
610
610
  pattern: /[^]+/
611
611
  }
612
612
  };
613
- it.expression.inside = b.kts = b.kt = b.kotlin = {
613
+ st.expression.inside = _.kts = _.kt = _.kotlin = {
614
614
  // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
615
615
  "string-literal": [
616
616
  {
@@ -619,7 +619,7 @@ it.expression.inside = b.kts = b.kt = b.kotlin = {
619
619
  inside: {
620
620
  interpolation: {
621
621
  pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i,
622
- inside: it
622
+ inside: st
623
623
  },
624
624
  string: /[^]+/
625
625
  }
@@ -631,7 +631,7 @@ it.expression.inside = b.kts = b.kt = b.kotlin = {
631
631
  interpolation: {
632
632
  pattern: /((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,
633
633
  lookbehind: !0,
634
- inside: it
634
+ inside: st
635
635
  },
636
636
  string: /[^]+/
637
637
  }
@@ -666,7 +666,7 @@ it.expression.inside = b.kts = b.kt = b.kotlin = {
666
666
  operator: /--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,
667
667
  punctuation: ae
668
668
  };
669
- var Fn = [
669
+ var Un = [
670
670
  {
671
671
  pattern: /&[a-z\d]{1,8};/i,
672
672
  alias: "named-entity"
@@ -689,7 +689,7 @@ var Fn = [
689
689
  greedy: !0,
690
690
  inside: {
691
691
  punctuation: /^["']|["']$/,
692
- entity: Fn
692
+ entity: Un
693
693
  }
694
694
  }],
695
695
  "attr-equals": /=/,
@@ -701,7 +701,7 @@ var Fn = [
701
701
  }
702
702
  }
703
703
  };
704
- b.rss = b.atom = b.ssml = b.xml = {
704
+ _.rss = _.atom = _.ssml = _.xml = {
705
705
  comment: {
706
706
  pattern: /<!--(?:(?!<!--)[^])*?-->/g,
707
707
  greedy: !0
@@ -731,44 +731,44 @@ b.rss = b.atom = b.ssml = b.xml = {
731
731
  greedy: !0
732
732
  },
733
733
  tag: va,
734
- entity: Fn,
734
+ entity: Un,
735
735
  "markup-bracket": {
736
736
  pattern: /[()[\]{}]/,
737
737
  alias: "punctuation"
738
738
  }
739
739
  };
740
- var _t = (e, t) => (e["language-" + t] = {
740
+ var Et = (e, t) => (e["language-" + t] = {
741
741
  pattern: /[^]+/,
742
742
  inside: t
743
- }, e), Wt = (e, t) => ({
743
+ }, e), jt = (e, t) => ({
744
744
  pattern: RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`, "gi"),
745
745
  lookbehind: !0,
746
746
  greedy: !0,
747
- inside: _t({
747
+ inside: Et({
748
748
  "included-cdata": {
749
749
  pattern: /<!\[CDATA\[[^]*?\]\]>/i,
750
- inside: _t({
750
+ inside: Et({
751
751
  cdata: /^<!\[CDATA\[|\]\]>$/i
752
752
  }, t)
753
753
  }
754
754
  }, t)
755
- }), jt = (e, t) => ({
755
+ }), Yt = (e, t) => ({
756
756
  pattern: RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`, "gi"),
757
757
  lookbehind: !0,
758
758
  greedy: !0,
759
- inside: _t({
759
+ inside: Et({
760
760
  punctuation: /^["']|["']$/
761
761
  }, t)
762
- }), Un = b.svg = b.mathml = b.html = b.markup = et(b.xml);
763
- Un.tag.inside["attr-value"].unshift(
764
- jt("style", "css"),
765
- jt("on[a-z]+", "javascript")
762
+ }), Bn = _.svg = _.mathml = _.html = _.markup = et(_.xml);
763
+ Bn.tag.inside["attr-value"].unshift(
764
+ Yt("style", "css"),
765
+ Yt("on[a-z]+", "javascript")
766
766
  );
767
- $(Un, "cdata", {
768
- style: Wt("style", "css"),
769
- script: Wt("script", "javascript")
767
+ $(Bn, "cdata", {
768
+ style: jt("style", "css"),
769
+ script: jt("script", "javascript")
770
770
  });
771
- b.r = {
771
+ _.r = {
772
772
  comment: /#.*/,
773
773
  string: {
774
774
  pattern: /(["'])(?:\\.|(?!\1)[^\\\n])*\1/g,
@@ -790,7 +790,7 @@ b.r = {
790
790
  operator: /->>?|<=|<<?-|[!=<>]=?|::?|&&?|\|\|?|[~^$@/*+-]/,
791
791
  punctuation: /[()[\]{},;]/
792
792
  };
793
- b.basic = {
793
+ _.basic = {
794
794
  comment: {
795
795
  pattern: /(?:!|rem\b).+/i,
796
796
  inside: {
@@ -807,7 +807,7 @@ b.basic = {
807
807
  operator: /<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,
808
808
  punctuation: /[(),:;]/
809
809
  };
810
- b.vbnet = ie("basic", {
810
+ _.vbnet = ie("basic", {
811
811
  comment: {
812
812
  pattern: /(?:!|'|rem\b).*/i,
813
813
  inside: {
@@ -822,23 +822,23 @@ b.vbnet = ie("basic", {
822
822
  keyword: /(?:\b(?:addhandler|addressof|alias|and|andalso|as|beep|bload|boolean|bsave|byref|byval|call absolute|call|case|catch|cbool|c?byte|cc?har|c?date|cdbl|cdec|chain|chdir|cu?int|class|clear|close|cls|cobj|com|common|const|continue|c?sbyte|c?u?short|c?sng|cstr|c?type|cu?lng|data|decimal|declare|def(?: fn| seg|dbl|int|lng|sng|str)|default|delegate|dim|directcast|do|double|else|elseif|enum|environ|erase|error|event|exit|false|true|field|files|finally|for each|for|friend|function|[gls]et|gettype|getxmlnamespace|global|gosub|goto|handles|i[fns]|implements|imports|inherits|input|interface|ioctl|isnot|key|kill|lib|like|line input|locate|lock|loop|[lr]set|me|mkdir|mod|module|mustinherit|mustoverride|mybase|myclass|name|namespace|narrowing|new|next|not|nothing|notinheritable|notoverridable|object|off?|on (?:com|error|key|timer)|on|open|operator|option base|option|optional|orelse|out|overloads|overridable|overrides|paramarray|partial|poke|private|property|protected|public|put|raiseevent|read|readonly|redim|removehandler|restore|resume|return|rmdir|run|select case|select|shadows|shared|shell|single|sleep|static|step|stop|string|structure|sub|swap|synclock|system|[tw]hen|throw|timer|to|troff|tron|try|trycast|typeof|u?integer|u?long|unlock|until|using|view print|wait|w?end|while|widening|with|withevents|write|writeonly|x?or)|\B#(?:const|else|elseif|end|if))(?:\$|\b)/i,
823
823
  punctuation: /[(){},:;]/
824
824
  });
825
- var Yt = {
825
+ var Xt = {
826
826
  // https://en.cppreference.com/w/c/language/character_constant
827
827
  pattern: /'(?:\\[^]|[^\\\n']){0,32}'/g,
828
828
  greedy: !0
829
- }, Xt = {
829
+ }, Qt = {
830
830
  pattern: /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,
831
831
  greedy: !0
832
- }, Qt = {
832
+ }, Jt = {
833
833
  // https://en.cppreference.com/w/c/language/string_literal
834
834
  pattern: /"(?:\\[^]|[^\\\n"])*"/g,
835
835
  greedy: !0
836
- }, Jt = {
836
+ }, en = {
837
837
  pattern: /\S[^]*/
838
838
  };
839
- Jt.inside = b.c = {
840
- comment: Xt,
841
- char: Yt,
839
+ en.inside = _.c = {
840
+ comment: Qt,
841
+ char: Xt,
842
842
  macro: {
843
843
  // allow for multiline macro definitions
844
844
  // spaces after the # character compile fine with gcc
@@ -853,10 +853,10 @@ Jt.inside = b.c = {
853
853
  pattern: /^(#\s*include\s*)<[^>]+>/,
854
854
  lookbehind: !0
855
855
  },
856
- Qt
856
+ Jt
857
857
  ],
858
- char: Yt,
859
- comment: Xt,
858
+ char: Xt,
859
+ comment: Qt,
860
860
  "macro-name": [
861
861
  {
862
862
  pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
@@ -876,10 +876,10 @@ Jt.inside = b.c = {
876
876
  },
877
877
  "directive-hash": /^#/,
878
878
  punctuation: /##|\\(?=\n)/,
879
- expression: Jt
879
+ expression: en
880
880
  }
881
881
  },
882
- string: Qt,
882
+ string: Jt,
883
883
  "class-name": {
884
884
  pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
885
885
  lookbehind: !0
@@ -893,7 +893,7 @@ Jt.inside = b.c = {
893
893
  punctuation: ae
894
894
  };
895
895
  $(
896
- b.opencl = ie("c", {
896
+ _.opencl = ie("c", {
897
897
  // Extracted from the official specs (2.0) and http://streamcomputing.eu/downloads/?opencl.lang (opencl-keywords, opencl-types) and http://sourceforge.net/tracker/?func=detail&aid=2957794&group_id=95717&atid=612384 (Words2, partly Words3)
898
898
  keyword: /\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,
899
899
  // Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
@@ -916,7 +916,7 @@ $(
916
916
  }
917
917
  }
918
918
  );
919
- var Et = {
919
+ var yt = {
920
920
  // Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
921
921
  "type-opencl-host": {
922
922
  pattern: /\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:[2348]|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,
@@ -937,18 +937,18 @@ var Et = {
937
937
  alias: "function"
938
938
  }
939
939
  };
940
- $(b.c, "keyword", Et);
941
- b.cpp && (Et["type-opencl-host-cpp"] = {
940
+ $(_.c, "keyword", yt);
941
+ _.cpp && (yt["type-opencl-host-cpp"] = {
942
942
  pattern: /\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image(?:[123]D|[12]DArray|1DBuffer|[23]DGL|Format|GL)?|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTrait(?:Atomic|Coarse|Fine|ReadOnly|ReadWrite|WriteOnly)|Sampler|UserEvent)\b/,
943
943
  alias: "keyword"
944
- }, $(b.cpp, "keyword", Et));
945
- var wa = b.diff = {
944
+ }, $(_.cpp, "keyword", yt));
945
+ var wa = _.diff = {
946
946
  // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
947
947
  // Match "@@ ... @@" coord lines in unified diff.
948
948
  // Match coord lines in normal diff (starts with a number).
949
949
  coord: /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m
950
950
  // deleted, inserted, unchanged, diff
951
- }, st = {
951
+ }, ot = {
952
952
  "deleted-sign": "-",
953
953
  "deleted-arrow": "<",
954
954
  "inserted-sign": "+",
@@ -956,35 +956,35 @@ var wa = b.diff = {
956
956
  unchanged: " ",
957
957
  diff: "!"
958
958
  };
959
- for (var pe in st) {
960
- var ot = pe.split("-")[0];
959
+ for (var pe in ot) {
960
+ var lt = pe.split("-")[0];
961
961
  wa[pe] = {
962
- pattern: RegExp("^(?:[" + st[pe] + `].*$
962
+ pattern: RegExp("^(?:[" + ot[pe] + `].*$
963
963
  ?)+`, "m"),
964
- alias: ot != pe ? ot : pe == "diff" ? "bold" : void 0,
964
+ alias: lt != pe ? lt : pe == "diff" ? "bold" : void 0,
965
965
  inside: {
966
966
  prefix: {
967
- pattern: RegExp("^[" + st[pe] + "]", "mg"),
967
+ pattern: RegExp("^[" + ot[pe] + "]", "mg"),
968
968
  greedy: !0,
969
- alias: ot
969
+ alias: lt
970
970
  }
971
971
  }
972
972
  };
973
973
  }
974
- var lt = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Se = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", yt = {
974
+ var ct = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Se = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", vt = {
975
975
  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
976
976
  inside: {
977
977
  punctuation: /\./
978
978
  }
979
- }, vt = {
980
- namespace: yt,
979
+ }, wt = {
980
+ namespace: vt,
981
981
  punctuation: /\./
982
- }, en = {
982
+ }, tn = {
983
983
  pattern: RegExp(`(^|[^\\w.])${Se}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
984
984
  lookbehind: !0,
985
- inside: vt
985
+ inside: wt
986
986
  };
987
- b.java = {
987
+ _.java = {
988
988
  "doc-comment": {
989
989
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
990
990
  greedy: !0,
@@ -1015,8 +1015,8 @@ b.java = {
1015
1015
  generics: {
1016
1016
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1017
1017
  inside: {
1018
- "class-name": en,
1019
- keyword: lt,
1018
+ "class-name": tn,
1019
+ keyword: ct,
1020
1020
  punctuation: /[().,:<>]/,
1021
1021
  operator: /[?&|]/
1022
1022
  }
@@ -1026,7 +1026,7 @@ b.java = {
1026
1026
  pattern: RegExp(`(\\bimport\\s+)${Se}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1027
1027
  lookbehind: !0,
1028
1028
  inside: {
1029
- namespace: yt,
1029
+ namespace: vt,
1030
1030
  punctuation: /\./,
1031
1031
  operator: /\*/,
1032
1032
  "class-name": /\w+/
@@ -1037,7 +1037,7 @@ b.java = {
1037
1037
  lookbehind: !0,
1038
1038
  alias: "static",
1039
1039
  inside: {
1040
- namespace: yt,
1040
+ namespace: vt,
1041
1041
  static: /\b\w+$/,
1042
1042
  punctuation: /\./,
1043
1043
  operator: /\*/,
@@ -1047,7 +1047,7 @@ b.java = {
1047
1047
  ],
1048
1048
  namespace: {
1049
1049
  pattern: RegExp(
1050
- `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${lt.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1050
+ `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${ct.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1051
1051
  ),
1052
1052
  lookbehind: !0,
1053
1053
  inside: {
@@ -1055,23 +1055,23 @@ b.java = {
1055
1055
  }
1056
1056
  },
1057
1057
  "class-name": [
1058
- en,
1058
+ tn,
1059
1059
  {
1060
1060
  // variables, parameters, and constructor references
1061
1061
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1062
1062
  pattern: RegExp(`(^|[^\\w.])${Se}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1063
1063
  lookbehind: !0,
1064
- inside: vt
1064
+ inside: wt
1065
1065
  },
1066
1066
  {
1067
1067
  // class names based on keyword
1068
1068
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1069
1069
  pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Se}[A-Z]\\w*\\b`),
1070
1070
  lookbehind: !0,
1071
- inside: vt
1071
+ inside: wt
1072
1072
  }
1073
1073
  ],
1074
- keyword: lt,
1074
+ keyword: ct,
1075
1075
  boolean: K,
1076
1076
  function: {
1077
1077
  pattern: /\b\w+(?=\()|(::\s*)[a-z_]\w*/,
@@ -1086,7 +1086,7 @@ b.java = {
1086
1086
  punctuation: ae
1087
1087
  };
1088
1088
  $(
1089
- b.less = ie("css", {
1089
+ _.less = ie("css", {
1090
1090
  comment: se(),
1091
1091
  atrule: {
1092
1092
  pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
@@ -1125,7 +1125,7 @@ $(
1125
1125
  }
1126
1126
  }
1127
1127
  );
1128
- b.objc = b.objectivec = ie("c", {
1128
+ _.objc = _.objectivec = ie("c", {
1129
1129
  string: {
1130
1130
  pattern: /@?"(?:\\[^]|[^\\\n"])*"/g,
1131
1131
  greedy: !0
@@ -1133,30 +1133,30 @@ b.objc = b.objectivec = ie("c", {
1133
1133
  keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int?|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
1134
1134
  operator: /-[->]?|\+\+?|!=?|==?|>>?=?|<<?=?|&&?|\|\|?|[~^@%?/*]/
1135
1135
  });
1136
- delete b.objc["class-name"];
1137
- var Bn = {
1136
+ delete _.objc["class-name"];
1137
+ var Gn = {
1138
1138
  pattern: /^(..)[^]+(?=.)/,
1139
1139
  lookbehind: !0
1140
- }, ct = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", tn = `(?:"(?:\\\\.|[^\\\\
1140
+ }, dt = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", nn = `(?:"(?:\\\\.|[^\\\\
1141
1141
  "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, oe = {
1142
1142
  pattern: /((?:^|[^\\])(?:\\\\)*)#\{(?:[^{}]|\{[^}]*\})*\}/,
1143
1143
  lookbehind: !0,
1144
1144
  inside: {
1145
- content: Bn,
1145
+ content: Gn,
1146
1146
  delimiter: {
1147
1147
  pattern: /.+/,
1148
1148
  alias: "punctuation"
1149
1149
  }
1150
1150
  }
1151
1151
  };
1152
- Bn.inside = b.rb = b.ruby = {
1152
+ Gn.inside = _.rb = _.ruby = {
1153
1153
  comment: {
1154
1154
  pattern: /#.*|^=begin\s[^]*?^=end/mg,
1155
1155
  greedy: !0
1156
1156
  },
1157
1157
  "string-literal": [
1158
1158
  {
1159
- pattern: RegExp("%[qQiIwWs]?" + ct, "g"),
1159
+ pattern: RegExp("%[qQiIwWs]?" + dt, "g"),
1160
1160
  greedy: !0,
1161
1161
  inside: {
1162
1162
  interpolation: oe,
@@ -1205,7 +1205,7 @@ Bn.inside = b.rb = b.ruby = {
1205
1205
  ],
1206
1206
  "command-literal": [
1207
1207
  {
1208
- pattern: RegExp("%x" + ct, "g"),
1208
+ pattern: RegExp("%x" + dt, "g"),
1209
1209
  greedy: !0,
1210
1210
  inside: {
1211
1211
  interpolation: oe,
@@ -1236,7 +1236,7 @@ Bn.inside = b.rb = b.ruby = {
1236
1236
  },
1237
1237
  "regex-literal": [
1238
1238
  {
1239
- pattern: RegExp(`%r${ct}[egimnosux]{0,6}`, "g"),
1239
+ pattern: RegExp(`%r${dt}[egimnosux]{0,6}`, "g"),
1240
1240
  greedy: !0,
1241
1241
  inside: {
1242
1242
  interpolation: oe,
@@ -1256,13 +1256,13 @@ Bn.inside = b.rb = b.ruby = {
1256
1256
  variable: /[@$]+(?!\d)\w+(?:[?!]|\b)/,
1257
1257
  symbol: [
1258
1258
  {
1259
- pattern: RegExp("(^|[^:]):" + tn, "g"),
1259
+ pattern: RegExp("(^|[^:]):" + nn, "g"),
1260
1260
  lookbehind: !0,
1261
1261
  greedy: !0
1262
1262
  },
1263
1263
  {
1264
1264
  pattern: RegExp(`([
1265
- {(,][ ]*)` + tn + "(?=:(?!:))", "g"),
1265
+ {(,][ ]*)` + nn + "(?=:(?!:))", "g"),
1266
1266
  lookbehind: !0,
1267
1267
  greedy: !0
1268
1268
  }
@@ -1281,7 +1281,7 @@ Bn.inside = b.rb = b.ruby = {
1281
1281
  boolean: K,
1282
1282
  builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
1283
1283
  constant: /\b[A-Z][A-Z\d_]*(?:[?!]|\b)/,
1284
- number: Dn,
1284
+ number: Fn,
1285
1285
  "double-colon": {
1286
1286
  pattern: /::/,
1287
1287
  alias: "punctuation"
@@ -1289,7 +1289,7 @@ Bn.inside = b.rb = b.ruby = {
1289
1289
  operator: /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[%&|^!=<>/*+-])=?|[?:]/,
1290
1290
  punctuation: /[()[\]{}.,;]/
1291
1291
  };
1292
- b.sql = {
1292
+ _.sql = {
1293
1293
  comment: /\/\*[^]*?\*\/|(?:--|\/\/|#).*/,
1294
1294
  variable: [
1295
1295
  {
@@ -1319,7 +1319,7 @@ b.sql = {
1319
1319
  operator: /[=%~^/*+-]|&&?|\|\|?|!=?|<<|<=?>?|>[>=]?|\b(?:and|between|div|[ir]?like|in|is|not|x?or|regexp|sounds like)\b/i,
1320
1320
  punctuation: /[()[\].,;`]/
1321
1321
  };
1322
- b.wasm = {
1322
+ _.wasm = {
1323
1323
  comment: /\(;[^]*?;\)|;;.*/,
1324
1324
  string: {
1325
1325
  pattern: /"(?:\\[^]|[^\\"])*"/g,
@@ -1348,10 +1348,10 @@ var ye = (e, t) => {
1348
1348
  for (var n = 0; n < t; n++)
1349
1349
  e = e.replace(/<self>/g, `(?:${e})`);
1350
1350
  return e.replace(/<self>/g, "[]");
1351
- }, U = (e, t) => e.replace(/<(\d+)>/g, (n, i) => `(?:${t[+i]})`), O = (e, t, n) => RegExp(U(e, t), n), wt = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, Ee = b.cpp = ie("c", {
1351
+ }, U = (e, t) => e.replace(/<(\d+)>/g, (n, i) => `(?:${t[+i]})`), O = (e, t, n) => RegExp(U(e, t), n), xt = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, Ee = _.cpp = ie("c", {
1352
1352
  "class-name": [
1353
1353
  {
1354
- pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${wt.source})\\w+`),
1354
+ pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${xt.source})\\w+`),
1355
1355
  lookbehind: !0
1356
1356
  },
1357
1357
  // This is intended to capture the class name of method implementations like:
@@ -1366,7 +1366,7 @@ var ye = (e, t) => {
1366
1366
  // parameters, so it can't be a namespace (until C++ adds generic namespaces).
1367
1367
  /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1368
1368
  ],
1369
- keyword: wt,
1369
+ keyword: xt,
1370
1370
  number: {
1371
1371
  pattern: /(?:\b0b[01']+|\b0x(?:[a-f\d']+(?:\.[a-f\d']*)?|\.[a-f\d']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/gi,
1372
1372
  greedy: !0
@@ -1381,7 +1381,7 @@ $(Ee, "string", {
1381
1381
  `(\\b(?:import|module)\\s+)(?:"(?:\\\\[\\s\\S]|[^\\\\
1382
1382
  "])*"|<[^<>
1383
1383
  ]*>|<0>(?:\\s*:\\s*<0>)?|:\\s*<0>)`,
1384
- [`\\b(?!${wt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1384
+ [`\\b(?!${xt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1385
1385
  "g"
1386
1386
  ),
1387
1387
  lookbehind: !0,
@@ -1417,7 +1417,7 @@ $(Ee, "operator", {
1417
1417
  alias: "punctuation"
1418
1418
  }
1419
1419
  });
1420
- var Gn = Object.assign({}, Ee);
1420
+ var zn = Object.assign({}, Ee);
1421
1421
  $(Ee, "class-name", {
1422
1422
  // the base clause is an optional list of parent classes
1423
1423
  // https://en.cppreference.com/w/cpp/language/class
@@ -1425,14 +1425,14 @@ $(Ee, "class-name", {
1425
1425
  pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/g,
1426
1426
  lookbehind: !0,
1427
1427
  greedy: !0,
1428
- inside: Gn
1428
+ inside: zn
1429
1429
  }
1430
1430
  });
1431
- $(Gn, "double-colon", {
1431
+ $(zn, "double-colon", {
1432
1432
  // All untokenized words that are not namespaces should be class names
1433
1433
  "class-name": /\b[a-z_]\w*\b(?!\s*::)/i
1434
1434
  });
1435
- b.go = {
1435
+ _.go = {
1436
1436
  comment: se(),
1437
1437
  char: {
1438
1438
  pattern: /'(?:\\.|[^\\\n']){0,10}'/g,
@@ -1458,8 +1458,8 @@ b.go = {
1458
1458
  punctuation: ae,
1459
1459
  builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
1460
1460
  };
1461
- var dt = {};
1462
- b.js = b.javascript = Object.assign(dt, {
1461
+ var ut = {};
1462
+ _.js = _.javascript = Object.assign(ut, {
1463
1463
  "doc-comment": {
1464
1464
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
1465
1465
  greedy: !0,
@@ -1488,7 +1488,7 @@ b.js = b.javascript = Object.assign(dt, {
1488
1488
  pattern: /^\$\{|\}$/,
1489
1489
  alias: "punctuation"
1490
1490
  },
1491
- [Y]: dt
1491
+ [Y]: ut
1492
1492
  }
1493
1493
  },
1494
1494
  string: /[^]+/
@@ -1500,7 +1500,7 @@ b.js = b.javascript = Object.assign(dt, {
1500
1500
  greedy: !0,
1501
1501
  alias: "property"
1502
1502
  },
1503
- string: Ct(),
1503
+ string: Mt(),
1504
1504
  regex: {
1505
1505
  pattern: /((?:^|[^$\w\xa0-\uffff"'`.)\]\s]|\b(?:return|yield))\s*)\/(?:(?:\[(?:\\.|[^\\\n\]])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}|(?:\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]])*\])*\])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?!\/\*|[^()[\]{}.,:;?`\n%&|^!=<>/*+-]))/g,
1506
1506
  lookbehind: !0,
@@ -1544,7 +1544,7 @@ b.js = b.javascript = Object.assign(dt, {
1544
1544
  ].map((e) => ({
1545
1545
  pattern: e,
1546
1546
  lookbehind: !0,
1547
- inside: dt
1547
+ inside: ut
1548
1548
  })),
1549
1549
  constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
1550
1550
  keyword: [
@@ -1600,25 +1600,25 @@ b.js = b.javascript = Object.assign(dt, {
1600
1600
  },
1601
1601
  punctuation: /\?\.|[()[\]{}.,:;]/
1602
1602
  });
1603
- var zn = (e) => (t, n) => {
1604
- for (var i = Lt(e), d = "", p = [], g = 0, h = Oe(t, n), E = 0, y = h.length, _ = 0; E < y; ) {
1605
- var l = h[E++], c = l.length, w = l.type;
1606
- w && w.slice(0, 6) != "ignore" ? (p[g++] = [_, l], d += " ".repeat(c)) : d += t.slice(_, _ + c), _ += c;
1603
+ var Hn = (e) => (t, n) => {
1604
+ for (var i = Ct(e), l = "", u = [], b = 0, E = Oe(t, n), y = 0, w = E.length, g = 0; y < w; ) {
1605
+ var m = E[y++], p = m.length, c = m.type;
1606
+ c && c.slice(0, 6) != "ignore" ? (u[b++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1607
1607
  }
1608
- var m = 0, _ = 0, a = (u) => {
1609
- for (var o = 0; m < g && o < u.length; o++) {
1610
- var s = u[o], f = s.content;
1611
- if (Array.isArray(f))
1612
- a(f);
1608
+ var f = 0, g = 0, a = (d) => {
1609
+ for (var o = 0; f < b && o < d.length; o++) {
1610
+ var s = d[o], h = s.content;
1611
+ if (Array.isArray(h))
1612
+ a(h);
1613
1613
  else {
1614
- for (var R = s.length, A = [], v, S, N = 0, T = _; ([v, S] = p[m], v >= _ && v < _ + R) && (T < v && (A[N++] = d.slice(T, v)), T = v + S.length, A[N++] = S, ++m != g); )
1614
+ for (var R = s.length, A = [], v, S, N = 0, T = g; ([v, S] = u[f], v >= g && v < g + R) && (T < v && (A[N++] = l.slice(T, v)), T = v + S.length, A[N++] = S, ++f != b); )
1615
1615
  ;
1616
- _ += R, N && (T < _ && (A[N++] = d.slice(T, _)), f ? s.content = A : (u.splice(o, 1, ...A), o += N - 1));
1616
+ g += R, N && (T < g && (A[N++] = l.slice(T, g)), h ? s.content = A : (d.splice(o, 1, ...A), o += N - 1));
1617
1617
  }
1618
1618
  }
1619
- }, r = i ? Ne(d, i) : [d];
1619
+ }, r = i ? Ne(l, i) : [l];
1620
1620
  return a(r), r;
1621
- }, Hn = b.js, Mt = Hn["template-string"], xa = Mt.pattern.source, Aa = Mt.inside.interpolation.pattern, fe = (e, t) => ({
1621
+ }, Vn = _.js, Pt = Vn["template-string"], xa = Pt.pattern.source, Aa = Pt.inside.interpolation.pattern, fe = (e, t) => ({
1622
1622
  pattern: RegExp("((?:" + t + ")\\s*)" + xa, "g"),
1623
1623
  lookbehind: !0,
1624
1624
  greedy: !0,
@@ -1642,12 +1642,12 @@ var zn = (e) => (t, n) => {
1642
1642
  [Y]: "js"
1643
1643
  }
1644
1644
  },
1645
- [ee]: zn(e)
1645
+ [ee]: Hn(e)
1646
1646
  }
1647
1647
  }
1648
1648
  }
1649
1649
  });
1650
- Hn["template-string"] = [
1650
+ Vn["template-string"] = [
1651
1651
  // styled-jsx:
1652
1652
  // css`a { color: #25F; }`
1653
1653
  // styled-components:
@@ -1665,20 +1665,20 @@ Hn["template-string"] = [
1665
1665
  // sql`...`
1666
1666
  fe("sql", "\\bsql"),
1667
1667
  // vanilla template string
1668
- Mt
1668
+ Pt
1669
1669
  ];
1670
- var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", xt = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", nn = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, xt]), an = (e) => e && (!e.type || e.type == "plain-text"), Ia = (e, t, n) => {
1671
- for (var i = 0, d = [], p = 0; i < e.length; i++) {
1672
- var g = e[i], h = g.length, E = g.type, y = !E, l, c, w, m, _;
1673
- E && (_ = g.content, E == "tag" ? (w = _[0].length, c = _[2] ? t.substr(n + w, _[1].length) : "", w > 1 ? p && d[p - 1][0] == c && p-- : _[_.length - 1].length < 2 && (d[p++] = [c, 0])) : p && E == "punctuation" ? (l = d[p - 1], _ == "{" ? l[1]++ : l[1] && _ == "}" ? l[1]-- : y = !"}()[]".includes(_)) : y = !0), y && p && !d[p - 1][1] && (w = n, an(e[i + 1]) && (h += e[i + 1].length, e.splice(i + 1, 1)), an(e[i - 1]) && (w -= e[--i].length, e.splice(i, 1)), m = t.slice(w, n + h), e[i] = new be("plain-text", m, m)), n += h;
1670
+ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", an = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, At]), rn = (e) => e && (!e.type || e.type == "plain-text"), Ia = (e, t, n) => {
1671
+ for (var i = 0, l = [], u = 0; i < e.length; i++) {
1672
+ var b = e[i], E = b.length, y = b.type, w = !y, m, p, c, f, g;
1673
+ y && (g = b.content, y == "tag" ? (c = g[0].length, p = g[2] ? t.substr(n + c, g[1].length) : "", c > 1 ? u && l[u - 1][0] == p && u-- : g[g.length - 1].length < 2 && (l[u++] = [p, 0])) : u && y == "punctuation" ? (m = l[u - 1], g == "{" ? m[1]++ : m[1] && g == "}" ? m[1]-- : w = !"}()[]".includes(g)) : w = !0), w && u && !l[u - 1][1] && (c = n, rn(e[i + 1]) && (E += e[i + 1].length, e.splice(i + 1, 1)), rn(e[i - 1]) && (c -= e[--i].length, e.splice(i, 1)), f = t.slice(c, n + E), e[i] = new be("plain-text", f, f)), n += E;
1674
1674
  }
1675
1675
  return e;
1676
- }, Vn = (e, t) => {
1677
- $(b[t] = e = et(e), "regex", {
1676
+ }, Zn = (e, t) => {
1677
+ $(_[t] = e = et(e), "regex", {
1678
1678
  tag: {
1679
1679
  pattern: O(
1680
1680
  `</?(?:(?!\\d)[^\\s/=><%]+(?:<0>(?:<0>*(?:[^\\s<>/={*]+(?:<0>*=<0>*(?!\\s)(?:"[^"]*"|'[^']*'|<1>)?|(?=[\\s/>]))|<2>))+)?<0>*/?)?>`,
1681
- [Ge, xt, nn],
1681
+ [Ge, At, an],
1682
1682
  "g"
1683
1683
  ),
1684
1684
  greedy: !0,
@@ -1693,13 +1693,13 @@ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", xt = "\\{(?:[^{}]|\\{(?:[^{
1693
1693
  },
1694
1694
  script: {
1695
1695
  // Allow for two levels of nesting
1696
- pattern: O("(=<0>*)<1>", [Ge, xt]),
1696
+ pattern: O("(=<0>*)<1>", [Ge, At]),
1697
1697
  lookbehind: !0,
1698
1698
  alias: t = "language-" + t,
1699
1699
  inside: e
1700
1700
  },
1701
1701
  spread: {
1702
- pattern: RegExp(nn),
1702
+ pattern: RegExp(an),
1703
1703
  alias: t,
1704
1704
  inside: e
1705
1705
  },
@@ -1722,8 +1722,8 @@ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", xt = "\\{(?:[^{}]|\\{(?:[^{
1722
1722
  }
1723
1723
  }), e[ee] = (n, i) => Ia(Oe(n, i), n, 0);
1724
1724
  };
1725
- Vn(b.js, "jsx");
1726
- b.lua = {
1725
+ Zn(_.js, "jsx");
1726
+ _.lua = {
1727
1727
  comment: /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
1728
1728
  // \z may be used to skip the following space
1729
1729
  string: {
@@ -1740,8 +1740,8 @@ b.lua = {
1740
1740
  },
1741
1741
  punctuation: /[()[\]{},;]|\.+|:+/
1742
1742
  };
1743
- var De = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", rn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1744
- b.perl = {
1743
+ var De = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", sn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1744
+ _.perl = {
1745
1745
  comment: [
1746
1746
  {
1747
1747
  // POD
@@ -1758,7 +1758,7 @@ b.perl = {
1758
1758
  // TODO Could be nice to handle Heredoc too.
1759
1759
  string: {
1760
1760
  pattern: RegExp(
1761
- `\\bq[qwx]?${rn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1761
+ `\\bq[qwx]?${sn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1762
1762
  '])*'`,
1763
1763
  "g"
1764
1764
  ),
@@ -1767,7 +1767,7 @@ b.perl = {
1767
1767
  regex: [
1768
1768
  {
1769
1769
  pattern: RegExp(
1770
- `\\b(?:m|qr)${rn}|${De})[msixpodualngc]*`,
1770
+ `\\b(?:m|qr)${sn}|${De})[msixpodualngc]*`,
1771
1771
  "g"
1772
1772
  ),
1773
1773
  greedy: !0
@@ -1811,7 +1811,7 @@ b.perl = {
1811
1811
  operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|->|=>|=~|~~|<=>?|!~|--|\+\+|(?:\*\*|\/\/|&&|\|\||<<|>>|[~%&|^!=<>/*+-])=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|[gl][et]|ne|not|x?or)\b/,
1812
1812
  punctuation: /[()[\]{},:;]/
1813
1813
  };
1814
- var sn = {
1814
+ var on = {
1815
1815
  "format-spec": {
1816
1816
  pattern: /(:)[^(){}:]+(?=\}$)/,
1817
1817
  lookbehind: !0
@@ -1821,7 +1821,7 @@ var sn = {
1821
1821
  alias: "punctuation"
1822
1822
  }
1823
1823
  };
1824
- sn[Y] = b.py = b.python = {
1824
+ on[Y] = _.py = _.python = {
1825
1825
  comment: {
1826
1826
  pattern: /#.*/g,
1827
1827
  greedy: !0
@@ -1834,7 +1834,7 @@ sn[Y] = b.py = b.python = {
1834
1834
  // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
1835
1835
  pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}/,
1836
1836
  lookbehind: !0,
1837
- inside: sn
1837
+ inside: on
1838
1838
  },
1839
1839
  string: /[^]+/
1840
1840
  }
@@ -1871,21 +1871,21 @@ sn[Y] = b.py = b.python = {
1871
1871
  operator: /!=|:=|\*\*=?|\/\/=?|<>|>>|<<|[%=<>/*+-]=?|[&|^~]/,
1872
1872
  punctuation: ae
1873
1873
  };
1874
- var Ra = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), on = {
1874
+ var Ra = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), ln = {
1875
1875
  pattern: /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g,
1876
1876
  greedy: !0
1877
- }, ln = {
1877
+ }, cn = {
1878
1878
  "closure-punctuation": {
1879
1879
  pattern: /^\||\|$/,
1880
1880
  alias: "punctuation"
1881
1881
  }
1882
1882
  };
1883
- ln[Y] = b.rust = {
1883
+ cn[Y] = _.rust = {
1884
1884
  comment: {
1885
1885
  pattern: RegExp("//.*|" + Ra, "g"),
1886
1886
  greedy: !0
1887
1887
  },
1888
- string: on,
1888
+ string: ln,
1889
1889
  char: {
1890
1890
  pattern: /b?'(?:\\(?:x[0-7][a-fA-F\d]|u\{(?:[a-fA-F\d]_*){1,6}\}|.)|[^\\\n '])'/g,
1891
1891
  greedy: !0
@@ -1895,7 +1895,7 @@ ln[Y] = b.rust = {
1895
1895
  greedy: !0,
1896
1896
  alias: "attr-name",
1897
1897
  inside: {
1898
- string: on
1898
+ string: ln
1899
1899
  }
1900
1900
  },
1901
1901
  // Closure params should not be confused with bitwise OR |
@@ -1903,7 +1903,7 @@ ln[Y] = b.rust = {
1903
1903
  pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/g,
1904
1904
  lookbehind: !0,
1905
1905
  greedy: !0,
1906
- inside: ln
1906
+ inside: cn
1907
1907
  },
1908
1908
  "lifetime-annotation": {
1909
1909
  pattern: /'\w+/,
@@ -1966,7 +1966,7 @@ ln[Y] = b.rust = {
1966
1966
  punctuation: /->|\.\.=|\.{1,3}|::|[()[\]{},:;]/,
1967
1967
  operator: /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
1968
1968
  };
1969
- var cn = b.swift = {
1969
+ var dn = _.swift = {
1970
1970
  comment: {
1971
1971
  // Nested comments are supported up to 2 levels
1972
1972
  pattern: /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
@@ -2065,12 +2065,12 @@ var cn = b.swift = {
2065
2065
  operator: /[~?%&|^!=<>/*+-]+|\.[.~?%&|^!=<>/*+-]+/,
2066
2066
  punctuation: /[()[\]{}.,:;\\]/
2067
2067
  };
2068
- cn["string-literal"].forEach((e) => {
2069
- e.inside.interpolation.inside = cn;
2068
+ dn["string-literal"].forEach((e) => {
2069
+ e.inside.interpolation.inside = dn;
2070
2070
  });
2071
- b.clike = {
2071
+ _.clike = {
2072
2072
  comment: se(),
2073
- string: Ct(),
2073
+ string: Mt(),
2074
2074
  "class-name": {
2075
2075
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
2076
2076
  lookbehind: !0,
@@ -2081,16 +2081,16 @@ b.clike = {
2081
2081
  keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
2082
2082
  boolean: K,
2083
2083
  function: /\b\w+(?=\()/,
2084
- number: Dn,
2084
+ number: Fn,
2085
2085
  operator: /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
2086
2086
  punctuation: ae
2087
2087
  };
2088
- var tt = (e) => `\\b(?:${e})\\b`, Zn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", nt = "class|enum|interface|record|struct", qn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", Pt = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", Kn = tt(nt), Ke = RegExp(tt(Zn + "|" + nt + "|" + qn + "|" + Pt)), Sa = tt(nt + "|" + qn + "|" + Pt), ka = tt(Zn + "|" + nt + "|" + Pt), We = ye("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), ze = ye("\\((?:[^()]|<self>)*\\)", 2), J = "@?\\b(?!\\d)\\w+\\b", je = U("<0>(?:\\s*<1>)?", [J, We]), de = U("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [Sa, je]), $t = "\\[\\s*(?:,\\s*)*\\]", Ta = U("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [de, $t]), Na = U("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [We, ze, $t]), Oa = U("\\(<0>+(?:,<0>+)+\\)", [Na]), ge = U("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Oa, de, $t]), j = {
2088
+ var tt = (e) => `\\b(?:${e})\\b`, qn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", nt = "class|enum|interface|record|struct", Kn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", $t = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", Wn = tt(nt), Ke = RegExp(tt(qn + "|" + nt + "|" + Kn + "|" + $t)), Sa = tt(nt + "|" + Kn + "|" + $t), ka = tt(qn + "|" + nt + "|" + $t), We = ye("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), ze = ye("\\((?:[^()]|<self>)*\\)", 2), J = "@?\\b(?!\\d)\\w+\\b", je = U("<0>(?:\\s*<1>)?", [J, We]), de = U("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [Sa, je]), Dt = "\\[\\s*(?:,\\s*)*\\]", Ta = U("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [de, Dt]), Na = U("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [We, ze, Dt]), Oa = U("\\(<0>+(?:,<0>+)+\\)", [Na]), ge = U("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Oa, de, Dt]), j = {
2089
2089
  keyword: Ke,
2090
2090
  punctuation: /[()[\].,:<>?]/
2091
- }, Wn = `'(?:\\\\.|[^
2092
- '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, jn = `"(?:\\\\.|[^\\\\
2093
- "])*"`, La = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = b.dotnet = b.cs = b.csharp = ie("clike", {
2091
+ }, jn = `'(?:\\\\.|[^
2092
+ '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Yn = `"(?:\\\\.|[^\\\\
2093
+ "])*"`, La = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = _.dotnet = _.cs = _.csharp = ie("clike", {
2094
2094
  string: [
2095
2095
  {
2096
2096
  pattern: O("(^|[^$\\\\])<0>", [La], "g"),
@@ -2098,7 +2098,7 @@ var tt = (e) => `\\b(?:${e})\\b`, Zn = "bool|char|decimal|double|dynamic|float|o
2098
2098
  greedy: !0
2099
2099
  },
2100
2100
  {
2101
- pattern: O("(^|[^@$\\\\])<0>", [jn], "g"),
2101
+ pattern: O("(^|[^@$\\\\])<0>", [Yn], "g"),
2102
2102
  lookbehind: !0,
2103
2103
  greedy: !0
2104
2104
  }
@@ -2128,7 +2128,7 @@ var tt = (e) => `\\b(?:${e})\\b`, Zn = "bool|char|decimal|double|dynamic|float|o
2128
2128
  // Type declarations
2129
2129
  // class Foo<A, B>
2130
2130
  // interface Foo<out A, B>
2131
- pattern: O("(\\b<0>\\s+)<1>", [Kn, je]),
2131
+ pattern: O("(\\b<0>\\s+)<1>", [Wn, je]),
2132
2132
  lookbehind: !0,
2133
2133
  inside: j
2134
2134
  },
@@ -2236,7 +2236,7 @@ $(re, "class-name", {
2236
2236
  // where F : Bar, IList<int>
2237
2237
  pattern: O(
2238
2238
  "\\b((?:<0>\\s+<1>|record\\s+<1>\\s*<5>|where\\s+<2>)\\s*:\\s*)(?:<3>|<4>|<1>\\s*<5>|<6>)(?:\\s*,\\s*(?:<3>|<4>|<6>))*(?=\\s*(?:where|[{;]|=>|$))",
2239
- [Kn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2239
+ [Wn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2240
2240
  ),
2241
2241
  lookbehind: !0,
2242
2242
  inside: {
@@ -2269,16 +2269,16 @@ $(re, "class-name", {
2269
2269
  }
2270
2270
  }
2271
2271
  });
2272
- var Yn = jn + "|" + Wn, Xn = U(`/(?![*/])|//[^
2272
+ var Xn = Yn + "|" + jn, Qn = U(`/(?![*/])|//[^
2273
2273
  ]*
2274
- |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Yn]), Qn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Xn]), 2), dn = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", Ca = U("<0>(?:\\s*\\(<1>*\\))?", [de, Qn]), Dt = `:[^
2275
- }]+`, Jn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Xn]), 2), un = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [Jn, Dt]), ea = ye(U(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Yn]), 2), pn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ea, Dt]), fn = (e, t) => ({
2274
+ |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Xn]), Jn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), un = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", Ca = U("<0>(?:\\s*\\(<1>*\\))?", [de, Jn]), Ft = `:[^
2275
+ }]+`, ea = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), pn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ea, Ft]), ta = ye(U(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Xn]), 2), fn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ta, Ft]), bn = (e, t) => ({
2276
2276
  interpolation: {
2277
2277
  pattern: O("((?:^|[^{])(?:\\{\\{)*)<0>", [e]),
2278
2278
  lookbehind: !0,
2279
2279
  inside: {
2280
2280
  "format-string": {
2281
- pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Dt]),
2281
+ pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Ft]),
2282
2282
  lookbehind: !0,
2283
2283
  inside: {
2284
2284
  punctuation: /^:/
@@ -2298,16 +2298,16 @@ $(re, "class-name", {
2298
2298
  attribute: {
2299
2299
  // Attributes
2300
2300
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
2301
- pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [dn, Ca], "g"),
2301
+ pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [un, Ca], "g"),
2302
2302
  lookbehind: !0,
2303
2303
  greedy: !0,
2304
2304
  inside: {
2305
2305
  target: {
2306
- pattern: O("^<0>(?=\\s*:)", [dn]),
2306
+ pattern: O("^<0>(?=\\s*:)", [un]),
2307
2307
  alias: "keyword"
2308
2308
  },
2309
2309
  "attribute-arguments": {
2310
- pattern: O("\\(<0>*\\)", [Qn]),
2310
+ pattern: O("\\(<0>*\\)", [Jn]),
2311
2311
  inside: re
2312
2312
  },
2313
2313
  "class-name": {
@@ -2323,24 +2323,24 @@ $(re, "class-name", {
2323
2323
  $(re, "string", {
2324
2324
  "interpolation-string": [
2325
2325
  {
2326
- pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [un], "g"),
2326
+ pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [pn], "g"),
2327
2327
  lookbehind: !0,
2328
2328
  greedy: !0,
2329
- inside: fn(un, Jn)
2329
+ inside: bn(pn, ea)
2330
2330
  },
2331
2331
  {
2332
- pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [pn], "g"),
2332
+ pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [fn], "g"),
2333
2333
  lookbehind: !0,
2334
2334
  greedy: !0,
2335
- inside: fn(pn, ea)
2335
+ inside: bn(fn, ta)
2336
2336
  }
2337
2337
  ],
2338
2338
  char: {
2339
- pattern: RegExp(Wn, "g"),
2339
+ pattern: RegExp(jn, "g"),
2340
2340
  greedy: !0
2341
2341
  }
2342
2342
  });
2343
- b.graphql = {
2343
+ _.graphql = {
2344
2344
  comment: /#.*/,
2345
2345
  description: {
2346
2346
  pattern: /(?:"""(?:[^"]|"(?!""))*"""|"(?:\\.|[^\\\n"])*")(?=\s*[a-z_])/gi,
@@ -2401,39 +2401,39 @@ b.graphql = {
2401
2401
  punctuation: /[()[\]{},:!=]/,
2402
2402
  property: /\w+/,
2403
2403
  [ee](e, t) {
2404
- for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), d = i.length, p = 0, g = (a) => {
2404
+ for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = i.length, u = 0, b = (a) => {
2405
2405
  for (var r = 0; r < a.length; r++)
2406
- if (p + r == d || i[p + r].type != a[r])
2406
+ if (u + r == l || i[u + r].type != a[r])
2407
2407
  return !0;
2408
- }, h = (a, r) => {
2409
- for (var u = 1, o = p; o < d; o++) {
2410
- var s = i[o], f = s.content;
2408
+ }, E = (a, r) => {
2409
+ for (var d = 1, o = u; o < l; o++) {
2410
+ var s = i[o], h = s.content;
2411
2411
  if (s.type == "punctuation") {
2412
- if (a == f)
2413
- u++;
2414
- else if (r == f && !--u)
2412
+ if (a == h)
2413
+ d++;
2414
+ else if (r == h && !--d)
2415
2415
  return o;
2416
2416
  }
2417
2417
  }
2418
- }; p < d; ) {
2419
- var E = i[p++];
2420
- if (E.type == "keyword" && E.content == "mutation") {
2421
- var y = [];
2422
- if (!g(["definition-mutation", "punctuation"]) && i[p + 1].content == "(") {
2423
- p += 2;
2424
- var l = h("(", ")");
2425
- if (!l) continue;
2426
- for (; p < l; p++) {
2427
- var c = i[p];
2428
- c.type == "variable" && (c.alias = "variable-input", y.push(c.content));
2418
+ }; u < l; ) {
2419
+ var y = i[u++];
2420
+ if (y.type == "keyword" && y.content == "mutation") {
2421
+ var w = [];
2422
+ if (!b(["definition-mutation", "punctuation"]) && i[u + 1].content == "(") {
2423
+ u += 2;
2424
+ var m = E("(", ")");
2425
+ if (!m) continue;
2426
+ for (; u < m; u++) {
2427
+ var p = i[u];
2428
+ p.type == "variable" && (p.alias = "variable-input", w.push(p.content));
2429
2429
  }
2430
- p = l + 1;
2430
+ u = m + 1;
2431
2431
  }
2432
- if (!g(["punctuation", "property-query"]) && i[p].content == "{" && (i[++p].alias = "property-mutation", y[0])) {
2433
- var w = h("{", "}");
2434
- if (w) for (var m = p; m < w; m++) {
2435
- var _ = i[m];
2436
- _.type == "variable" && y.indexOf(_.content) >= 0 && (_.alias = "variable-input");
2432
+ if (!b(["punctuation", "property-query"]) && i[u].content == "{" && (i[++u].alias = "property-mutation", w[0])) {
2433
+ var c = E("{", "}");
2434
+ if (c) for (var f = u; f < c; f++) {
2435
+ var g = i[f];
2436
+ g.type == "variable" && w.indexOf(g.content) >= 0 && (g.alias = "variable-input");
2437
2437
  }
2438
2438
  }
2439
2439
  }
@@ -2441,7 +2441,7 @@ b.graphql = {
2441
2441
  return n;
2442
2442
  }
2443
2443
  };
2444
- b.webmanifest = b.json = {
2444
+ _.webmanifest = _.json = {
2445
2445
  property: {
2446
2446
  pattern: /"(?:\\.|[^\\\n"])*"(?=\s*:)/g,
2447
2447
  greedy: !0
@@ -2460,9 +2460,9 @@ b.webmanifest = b.json = {
2460
2460
  alias: "keyword"
2461
2461
  }
2462
2462
  };
2463
- b.makefile = {
2463
+ _.makefile = {
2464
2464
  comment: /#(?:\\[^]|[^\\\n])*/,
2465
- string: Ct(),
2465
+ string: Mt(),
2466
2466
  "builtin-target": {
2467
2467
  pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
2468
2468
  alias: "builtin"
@@ -2484,7 +2484,7 @@ b.makefile = {
2484
2484
  operator: /(?:::|[?:+!])?=|[|@]/,
2485
2485
  punctuation: /[:;(){}]/
2486
2486
  };
2487
- var Ft = b.scss = ie("css", {
2487
+ var Ut = _.scss = ie("css", {
2488
2488
  comment: se(),
2489
2489
  atrule: {
2490
2490
  pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
@@ -2521,7 +2521,7 @@ var Ft = b.scss = ie("css", {
2521
2521
  }
2522
2522
  }
2523
2523
  });
2524
- $(Ft, "atrule", {
2524
+ $(Ut, "atrule", {
2525
2525
  keyword: [
2526
2526
  /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
2527
2527
  {
@@ -2530,11 +2530,11 @@ $(Ft, "atrule", {
2530
2530
  }
2531
2531
  ]
2532
2532
  });
2533
- $(Ft, "important", {
2533
+ $(Ut, "important", {
2534
2534
  // var and interpolated vars
2535
2535
  variable: /\$[-\w]+|#\{\$[-\w]+\}/
2536
2536
  });
2537
- $(Ft, "function", {
2537
+ $(Ut, "function", {
2538
2538
  "module-modifier": {
2539
2539
  pattern: /\b(?:as|hide|show|with)\b/i,
2540
2540
  alias: "keyword"
@@ -2557,12 +2557,12 @@ $(Ft, "function", {
2557
2557
  lookbehind: !0
2558
2558
  }
2559
2559
  });
2560
- var ta = {
2560
+ var na = {
2561
2561
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
2562
2562
  lookbehind: !0,
2563
2563
  greedy: !0
2564
- }, ve = b.ts = b.typescript = ie("js", {
2565
- "class-name": ta
2564
+ }, ve = _.ts = _.typescript = ie("js", {
2565
+ "class-name": na
2566
2566
  });
2567
2567
  $(ve, "operator", {
2568
2568
  builtin: /\b(?:Array|Function|Promise|any|boolean|never|number|string|symbol|unknown)\b/
@@ -2572,9 +2572,9 @@ ve.keyword.push(
2572
2572
  );
2573
2573
  delete ve.parameter;
2574
2574
  delete ve["literal-property"];
2575
- var Ut = ta.inside = Object.assign({}, ve);
2576
- delete Ut["class-name"];
2577
- delete Ut["maybe-class-name"];
2575
+ var Bt = na.inside = Object.assign({}, ve);
2576
+ delete Bt["class-name"];
2577
+ delete Bt["maybe-class-name"];
2578
2578
  $(ve, "function", {
2579
2579
  decorator: {
2580
2580
  pattern: /@[$\w\xa0-\uffff]+/,
@@ -2595,35 +2595,35 @@ $(ve, "function", {
2595
2595
  pattern: /<[^]+/,
2596
2596
  // everything after the first <
2597
2597
  alias: "class-name",
2598
- inside: Ut
2598
+ inside: Bt
2599
2599
  },
2600
2600
  function: /\S+/
2601
2601
  }
2602
2602
  }
2603
2603
  });
2604
- Vn(b.ts, "tsx");
2605
- var At = b.tsx.tag, na = "(?:^|(";
2604
+ Zn(_.ts, "tsx");
2605
+ var It = _.tsx.tag, aa = "(?:^|(";
2606
2606
  try {
2607
- RegExp("(?<=)"), na += "?<=";
2607
+ RegExp("(?<=)"), aa += "?<=";
2608
2608
  } catch {
2609
- At.lookbehind = !0;
2609
+ It.lookbehind = !0;
2610
2610
  }
2611
- At.pattern = RegExp(na + `[^\\w$])|(?=</))${At.pattern.source}`, "g");
2612
- var It = /[*&][^\s[\]{},]+/, Rt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, St = `(?:${Rt.source}(?:[ ]+${It.source})?|${It.source}(?:[ ]+${Rt.source})?)`, Ma = U(
2611
+ It.pattern = RegExp(aa + `[^\\w$])|(?=</))${It.pattern.source}`, "g");
2612
+ var Rt = /[*&][^\s[\]{},]+/, St = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, kt = `(?:${St.source}(?:[ ]+${Rt.source})?|${Rt.source}(?:[ ]+${St.source})?)`, Ma = U(
2613
2613
  "(?:[^\\s\0-\\x08\\x0e-\\x1f!\"#%&'*,:>?@[\\]{}`|\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff-]|[?:-]<0>)(?:[ ]*(?:(?![#:])<0>|:<0>))*",
2614
2614
  ["[^\\s\0-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"]
2615
- ), bn = `"(?:\\\\.|[^\\\\
2615
+ ), gn = `"(?:\\\\.|[^\\\\
2616
2616
  "])*"|'(?:\\\\.|[^\\\\
2617
2617
  '])*'`, Ie = (e, t) => O(
2618
2618
  `([:,[{-]\\s*(?:\\s<0>[ ]+)?)<1>(?=[ ]*(?:$|,|\\]|\\}|(?:
2619
2619
  \\s*)?#))`,
2620
- [St, e],
2620
+ [kt, e],
2621
2621
  t
2622
2622
  );
2623
- b.yml = b.yaml = {
2623
+ _.yml = _.yaml = {
2624
2624
  scalar: {
2625
2625
  pattern: O(`([:-]\\s*(?:\\s<0>[ ]+)?[|>])[ ]*(?:(
2626
- [ ]+)\\S.*(?:\\2.+)*)`, [St]),
2626
+ [ ]+)\\S.*(?:\\2.+)*)`, [kt]),
2627
2627
  lookbehind: !0,
2628
2628
  alias: "string"
2629
2629
  },
@@ -2632,7 +2632,7 @@ b.yml = b.yaml = {
2632
2632
  pattern: O(
2633
2633
  `((?:^|[:,[{
2634
2634
  ?-])[ ]*(?:<0>[ ]+)?)<1>(?=\\s*:\\s)`,
2635
- [St, "(?:" + Ma + "|" + bn + ")"],
2635
+ [kt, "(?:" + Ma + "|" + gn + ")"],
2636
2636
  "g"
2637
2637
  ),
2638
2638
  lookbehind: !0,
@@ -2660,7 +2660,7 @@ b.yml = b.yaml = {
2660
2660
  alias: "important"
2661
2661
  },
2662
2662
  string: {
2663
- pattern: Ie(bn, "mg"),
2663
+ pattern: Ie(gn, "mg"),
2664
2664
  lookbehind: !0,
2665
2665
  greedy: !0
2666
2666
  },
@@ -2668,11 +2668,11 @@ b.yml = b.yaml = {
2668
2668
  pattern: Ie("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2669
2669
  lookbehind: !0
2670
2670
  },
2671
- tag: Rt,
2672
- important: It,
2671
+ tag: St,
2672
+ important: Rt,
2673
2673
  punctuation: /---|[:[\]{},|>?-]|\.{3}/
2674
2674
  };
2675
- var gn = {
2675
+ var mn = {
2676
2676
  pattern: /\\[\\()[\]{}^$+*?|.]/,
2677
2677
  alias: "escape"
2678
2678
  }, He = /\\(?:x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|u\{[a-fA-F\d]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, Pa = {
@@ -2681,12 +2681,12 @@ var gn = {
2681
2681
  }, $a = {
2682
2682
  pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
2683
2683
  alias: "class-name"
2684
- }, mn = "(?:[^\\\\-]|" + He.source + ")", Da = RegExp(mn + "-" + mn), hn = {
2684
+ }, hn = "(?:[^\\\\-]|" + He.source + ")", Da = RegExp(hn + "-" + hn), _n = {
2685
2685
  pattern: /(<|')[^<>']+(?=[>']$)/,
2686
2686
  lookbehind: !0,
2687
2687
  alias: "variable"
2688
2688
  };
2689
- b.regex = {
2689
+ _.regex = {
2690
2690
  "char-class": {
2691
2691
  pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:\\[^]|[^\\\]])*\]/,
2692
2692
  lookbehind: !0,
@@ -2710,12 +2710,12 @@ b.regex = {
2710
2710
  }
2711
2711
  }
2712
2712
  },
2713
- "special-escape": gn,
2713
+ "special-escape": mn,
2714
2714
  "char-set": $a,
2715
2715
  escape: He
2716
2716
  }
2717
2717
  },
2718
- "special-escape": gn,
2718
+ "special-escape": mn,
2719
2719
  "char-set": Pa,
2720
2720
  backreference: [
2721
2721
  {
@@ -2727,7 +2727,7 @@ b.regex = {
2727
2727
  pattern: /\\k<[^<>']+>/,
2728
2728
  alias: "keyword",
2729
2729
  inside: {
2730
- "group-name": hn
2730
+ "group-name": _n
2731
2731
  }
2732
2732
  }
2733
2733
  ],
@@ -2744,7 +2744,7 @@ b.regex = {
2744
2744
  pattern: /(\()\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[!=]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?)/,
2745
2745
  lookbehind: !0,
2746
2746
  inside: {
2747
- "group-name": hn
2747
+ "group-name": _n
2748
2748
  }
2749
2749
  },
2750
2750
  {
@@ -2761,7 +2761,7 @@ b.regex = {
2761
2761
  alias: "keyword"
2762
2762
  }
2763
2763
  };
2764
- var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2764
+ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2765
2765
  {
2766
2766
  pattern: /\b(?:false|true)\b/i,
2767
2767
  alias: "boolean"
@@ -2778,10 +2778,10 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2778
2778
  },
2779
2779
  /\b(?:null)\b/i,
2780
2780
  /\b[A-Z_][A-Z\d_]*\b(?!\s*\()/
2781
- ], yn = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, vn = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, kt = {
2781
+ ], vn = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, wn = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, Tt = {
2782
2782
  pattern: /\{\$(?:[^{}]|\{(?:[^{}]|\{[^}]+\})*\})*\}|(^|[^\\{])\$+(?:\w+(?:\[[^\n[\]]*\]|->\w+)?)/,
2783
2783
  lookbehind: !0
2784
- }, wn = [
2784
+ }, xn = [
2785
2785
  {
2786
2786
  pattern: /<<<'([^']+)'\n(?:.*\n)*?\1;/g,
2787
2787
  alias: "nowdoc-string",
@@ -2808,7 +2808,7 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2808
2808
  punctuation: /^<<<"?|[";]$/
2809
2809
  }
2810
2810
  },
2811
- interpolation: kt
2811
+ interpolation: Tt
2812
2812
  }
2813
2813
  },
2814
2814
  {
@@ -2826,10 +2826,10 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2826
2826
  greedy: !0,
2827
2827
  alias: "double-quoted-string",
2828
2828
  inside: {
2829
- interpolation: kt
2829
+ interpolation: Tt
2830
2830
  }
2831
2831
  }
2832
- ], xn = kt.inside = {
2832
+ ], An = Tt.inside = {
2833
2833
  delimiter: {
2834
2834
  pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
2835
2835
  alias: "important"
@@ -2840,8 +2840,8 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2840
2840
  alias: "comment",
2841
2841
  inside: "phpdoc"
2842
2842
  },
2843
- comment: _n,
2844
- string: wn,
2843
+ comment: En,
2844
+ string: xn,
2845
2845
  attribute: {
2846
2846
  pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*')+\](?=\s*[a-z$#])/img,
2847
2847
  greedy: !0,
@@ -2851,8 +2851,8 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2851
2851
  lookbehind: !0,
2852
2852
  // inside can appear subset of php
2853
2853
  inside: {
2854
- comment: _n,
2855
- string: wn,
2854
+ comment: En,
2855
+ string: xn,
2856
2856
  "attribute-class-name": [
2857
2857
  {
2858
2858
  pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/gi,
@@ -2870,9 +2870,9 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2870
2870
  }
2871
2871
  }
2872
2872
  ],
2873
- constant: En,
2874
- number: yn,
2875
- operator: vn,
2873
+ constant: yn,
2874
+ number: vn,
2875
+ operator: wn,
2876
2876
  punctuation: ae
2877
2877
  }
2878
2878
  },
@@ -3053,7 +3053,7 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
3053
3053
  }
3054
3054
  }
3055
3055
  ],
3056
- constant: En,
3056
+ constant: yn,
3057
3057
  function: {
3058
3058
  pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
3059
3059
  lookbehind: !0,
@@ -3065,24 +3065,24 @@ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
3065
3065
  pattern: /(->\s*)\w+/,
3066
3066
  lookbehind: !0
3067
3067
  },
3068
- number: yn,
3069
- operator: vn,
3068
+ number: vn,
3069
+ operator: wn,
3070
3070
  punctuation: ae
3071
- }, Fa = zn("html");
3072
- b.php = {
3071
+ }, Fa = Hn("html");
3072
+ _.php = {
3073
3073
  php: {
3074
3074
  pattern: /<\?(?:[^"'/#]|\/(?![*/])|(["'])(?:\\[^]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^\n?]|\?(?!>))*(?=$|\?>|\n)|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/,
3075
3075
  alias: "language-php",
3076
- inside: xn
3076
+ inside: An
3077
3077
  },
3078
- [ee]: (e, t) => e.includes("<?") ? Fa(e, t) : Ne(e, xn)
3078
+ [ee]: (e, t) => e.includes("<?") ? Fa(e, t) : Ne(e, An)
3079
3079
  };
3080
3080
  var Ua = [`(?:\\\\.|[^\\\\
3081
3081
  ]|
3082
3082
  (?!
3083
- ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, Ua, "g"), Tt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, An = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3084
- |(?![\\s\\S]))`, [Tt.source]), Ba = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3085
- `, me = b.md = b.markdown = et(b.html);
3083
+ ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, Ua, "g"), Nt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, In = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3084
+ |(?![\\s\\S]))`, [Nt.source]), Ba = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3085
+ `, me = _.md = _.markdown = et(_.html);
3086
3086
  $(me, "prolog", {
3087
3087
  "front-matter-block": {
3088
3088
  pattern: /(^(?:\s*\n)?)---(?!.)[^]*?\n---(?!.)/g,
@@ -3103,13 +3103,13 @@ $(me, "prolog", {
3103
3103
  alias: "punctuation"
3104
3104
  },
3105
3105
  table: {
3106
- pattern: RegExp("^" + An + Ba + "(?:" + An + ")*", "m"),
3106
+ pattern: RegExp("^" + In + Ba + "(?:" + In + ")*", "m"),
3107
3107
  inside: {
3108
3108
  "table-header-row": {
3109
3109
  pattern: /^.+/,
3110
3110
  inside: {
3111
3111
  "table-header": {
3112
- pattern: Tt,
3112
+ pattern: Nt,
3113
3113
  alias: "important",
3114
3114
  inside: me
3115
3115
  },
@@ -3121,7 +3121,7 @@ $(me, "prolog", {
3121
3121
  lookbehind: !0,
3122
3122
  inside: {
3123
3123
  "table-data": {
3124
- pattern: Tt,
3124
+ pattern: Nt,
3125
3125
  inside: me
3126
3126
  },
3127
3127
  punctuation: /\|/
@@ -3156,7 +3156,7 @@ $(me, "prolog", {
3156
3156
  var n = Oe(e, t), i;
3157
3157
  return n[5] && (i = (/[a-z][\w-]*/i.exec(
3158
3158
  n[1].content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp")
3159
- ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = b[i]) && (n[3].content = Ne(n[3].content, t))), n;
3159
+ ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = _[i]) && (n[3].content = Ne(n[3].content, t))), n;
3160
3160
  }
3161
3161
  }
3162
3162
  }
@@ -3313,36 +3313,36 @@ $(me, "prolog", {
3313
3313
  });
3314
3314
  const Ga = (e, t, ...n) => {
3315
3315
  var X;
3316
- let i, d, p = [], g, h = "", E, y = !1, l = !1, c = !0, w = [], m, _ = 0;
3317
- const a = Ha(), r = a.firstChild, u = r.children, o = u[0], s = o.firstChild, f = { language: "text", value: h }, R = new Set(n), A = {}, v = (x) => {
3318
- if (Object.assign(f, x), h = x.value ?? h, i = f.language, !b[i]) throw Error(`Language '${i}' has no grammar.`);
3319
- m = !!f.readOnly, a.style.tabSize = f.tabSize || 2, s.inputMode = m ? "none" : "", s.setAttribute("aria-readonly", m), T(), N(), (d != (d = b[i]) || h != s.value) && (Z(), s.value = h, s.selectionEnd = 0, S());
3316
+ let i, l, u = [], b, E = "", y, w = !1, m = !1, p = !0, c = [], f, g = 0;
3317
+ const a = Ha(), r = a.firstChild, d = r.children, o = d[0], s = o.firstChild, h = { language: "text", value: E }, R = new Set(n), A = {}, v = (x) => {
3318
+ if (Object.assign(h, x), E = x.value ?? E, i = h.language, !_[i]) throw Error(`Language '${i}' has no grammar.`);
3319
+ f = !!h.readOnly, a.style.tabSize = h.tabSize || 2, s.inputMode = f ? "none" : "", s.setAttribute("aria-readonly", f), T(), N(), (l != (l = _[i]) || E != s.value) && (Z(), s.value = E, s.selectionEnd = 0, S());
3320
3320
  }, S = () => {
3321
- w = Ne(h = s.value, d), H("tokenize", w, i, h);
3322
- let x = Ln(w).split(`
3323
- `), I = 0, C = _, q = _ = x.length;
3324
- for (; x[I] == p[I] && I < q; ) ++I;
3325
- for (; q && x[--q] == p[--C]; ) ;
3326
- if (I == q && I == C) u[I + 1].innerHTML = x[I] + `
3321
+ c = Ne(E = s.value, l), H("tokenize", c, i, E);
3322
+ let x = Cn(c).split(`
3323
+ `), I = 0, C = g, q = g = x.length;
3324
+ for (; x[I] == u[I] && I < q; ) ++I;
3325
+ for (; q && x[--q] == u[--C]; ) ;
3326
+ if (I == q && I == C) d[I + 1].innerHTML = x[I] + `
3327
3327
  `;
3328
3328
  else {
3329
3329
  let Q = C < I ? C : I - 1, W = Q, we = "";
3330
3330
  for (; W < q; ) we += `<div class=pce-line aria-hidden=true>${x[++W]}
3331
3331
  </div>`;
3332
- for (W = q < I ? q : I - 1; W < C; W++) u[I + 1].remove();
3333
- for (we && u[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < _; ) u[++W].setAttribute("data-line", W);
3332
+ for (W = q < I ? q : I - 1; W < C; W++) d[I + 1].remove();
3333
+ for (we && d[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < g; ) d[++W].setAttribute("data-line", W);
3334
3334
  a.style.setProperty(
3335
3335
  "--number-width",
3336
- Math.ceil(Math.log10(_ + 1)) + ".001ch"
3336
+ Math.ceil(Math.log10(g + 1)) + ".001ch"
3337
3337
  );
3338
3338
  }
3339
- H("update", h), B(!0), c && setTimeout(setTimeout, 0, () => c = !0), p = x, c = !1;
3339
+ H("update", E), B(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = x, p = !1;
3340
3340
  }, N = (x) => {
3341
3341
  (x || R).forEach((I) => {
3342
- typeof I == "object" ? (I.update(D, f), x && R.add(I)) : (I(D, f), x || R.delete(I));
3342
+ typeof I == "object" ? (I.update(D, h), x && R.add(I)) : (I(D, h), x || R.delete(I));
3343
3343
  });
3344
3344
  }, T = ([x, I] = L()) => {
3345
- a.className = `prism-code-editor language-${i}${f.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${f.wordWrap ? "" : "no"}wrap${f.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${l ? " pce-focus" : ""}${m ? " pce-readonly" : ""}`;
3345
+ a.className = `prism-code-editor language-${i}${h.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${h.wordWrap ? "" : "no"}wrap${h.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${m ? " pce-focus" : ""}${f ? " pce-readonly" : ""}`;
3346
3346
  }, L = () => [
3347
3347
  s.selectionStart,
3348
3348
  s.selectionEnd,
@@ -3351,7 +3351,7 @@ const Ga = (e, t, ...n) => {
3351
3351
  Escape() {
3352
3352
  s.blur();
3353
3353
  }
3354
- }, M = {}, Z = () => Ve && !l && z(
3354
+ }, M = {}, Z = () => Ve && !m && z(
3355
3355
  D,
3356
3356
  "focus",
3357
3357
  (x) => {
@@ -3361,11 +3361,11 @@ const Ga = (e, t, ...n) => {
3361
3361
  { once: !0 }
3362
3362
  ), H = (x, ...I) => {
3363
3363
  var C, q;
3364
- (C = A[x]) == null || C.forEach((Q) => Q.apply(D, I)), (q = f["on" + x[0].toUpperCase() + x.slice(1)]) == null || q.apply(D, I);
3364
+ (C = A[x]) == null || C.forEach((Q) => Q.apply(D, I)), (q = h["on" + x[0].toUpperCase() + x.slice(1)]) == null || q.apply(D, I);
3365
3365
  }, B = (x) => {
3366
- if (x || c) {
3367
- const I = L(), C = u[E = ra(h, 0, I[I[2] < "f" ? 0 : 1])];
3368
- C != g && (g == null || g.classList.remove("active-line"), C.classList.add("active-line"), g = C), T(I), H("selectionChange", I, h);
3366
+ if (x || p) {
3367
+ const I = L(), C = d[y = ia(E, 0, I[I[2] < "f" ? 0 : 1])];
3368
+ C != b && (b == null || b.classList.remove("active-line"), C.classList.add("active-line"), b = C), T(I), H("selectionChange", I, E);
3369
3369
  }
3370
3370
  }, D = {
3371
3371
  scrollContainer: a,
@@ -3373,23 +3373,23 @@ const Ga = (e, t, ...n) => {
3373
3373
  overlays: o,
3374
3374
  textarea: s,
3375
3375
  get activeLine() {
3376
- return g;
3376
+ return b;
3377
3377
  },
3378
3378
  get activeLineNumber() {
3379
- return E;
3379
+ return y;
3380
3380
  },
3381
3381
  get value() {
3382
- return h;
3382
+ return E;
3383
3383
  },
3384
- options: f,
3384
+ options: h,
3385
3385
  get focused() {
3386
- return l;
3386
+ return m;
3387
3387
  },
3388
3388
  get removed() {
3389
- return y;
3389
+ return w;
3390
3390
  },
3391
3391
  get tokens() {
3392
- return w;
3392
+ return c;
3393
3393
  },
3394
3394
  inputCommandMap: M,
3395
3395
  keyCommandMap: P,
@@ -3411,32 +3411,32 @@ const Ga = (e, t, ...n) => {
3411
3411
  (C = A[x]) == null || C.delete(I);
3412
3412
  },
3413
3413
  remove() {
3414
- a.remove(), y = !0;
3414
+ a.remove(), w = !0;
3415
3415
  }
3416
3416
  };
3417
3417
  return z(D, "keydown", (x) => {
3418
3418
  var I;
3419
- (I = P[x.key]) != null && I.call(P, x, L(), h) && G(x);
3419
+ (I = P[x.key]) != null && I.call(P, x, L(), E) && G(x);
3420
3420
  }), z(D, "beforeinput", (x) => {
3421
3421
  var I;
3422
- (m || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), h))) && G(x);
3422
+ (f || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), E))) && G(x);
3423
3423
  }), z(D, "input", S), z(D, "blur", () => {
3424
- Te = null, l = !1, T();
3424
+ Te = null, m = !1, T();
3425
3425
  }), z(D, "focus", () => {
3426
- Te = B, l = !0, T();
3426
+ Te = B, m = !0, T();
3427
3427
  }), z(D, "selectionchange", (x) => {
3428
3428
  B(), G(x);
3429
3429
  }), (X = za(e)) == null || X.append(a), t && v(t), D;
3430
- }, In = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3431
- In.innerHTML = e;
3432
- const t = In.firstChild;
3430
+ }, Rn = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3431
+ Rn.innerHTML = e;
3432
+ const t = Rn.firstChild;
3433
3433
  return () => t.cloneNode(!0);
3434
- }, z = (e, t, n, i) => e.textarea.addEventListener(t, n, i), za = (e) => typeof e == "string" ? document.querySelector(e) : e, aa = navigator.userAgent, Ye = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Xe = /Chrome\//.test(aa), Ve = !Xe && /AppleWebKit\//.test(aa), ra = (e, t = 0, n = 1 / 0) => {
3434
+ }, z = (e, t, n, i) => e.textarea.addEventListener(t, n, i), za = (e) => typeof e == "string" ? document.querySelector(e) : e, ra = navigator.userAgent, Ye = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Xe = /Chrome\//.test(ra), Ve = !Xe && /AppleWebKit\//.test(ra), ia = (e, t = 0, n = 1 / 0) => {
3435
3435
  let i = 1;
3436
3436
  for (; (t = e.indexOf(`
3437
3437
  `, t) + 1) && t <= n; i++) ;
3438
3438
  return i;
3439
- }, ut = {}, Ha = /* @__PURE__ */ at(
3439
+ }, pt = {}, Ha = /* @__PURE__ */ at(
3440
3440
  "<div><div class=pce-wrapper><div class=pce-overlays><textarea spellcheck=false autocapitalize=off autocomplete=off>"
3441
3441
  ), G = (e) => {
3442
3442
  e.preventDefault(), e.stopImmediatePropagation();
@@ -3444,139 +3444,139 @@ const Ga = (e, t, ...n) => {
3444
3444
  let Te;
3445
3445
  document.addEventListener("selectionchange", () => Te == null ? void 0 : Te());
3446
3446
  const Va = (e, t, n = 0) => {
3447
- const i = e.scrollContainer.style, d = document.documentElement.style;
3448
- i.scrollPaddingBlock = d.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = d.scrollPaddingBlock = "";
3447
+ const i = e.scrollContainer.style, l = document.documentElement.style;
3448
+ i.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = l.scrollPaddingBlock = "";
3449
3449
  }, Qe = (e, t) => t ? e.lastIndexOf(`
3450
3450
  `, t - 1) + 1 : 0, rt = (e, t) => (t = e.indexOf(`
3451
3451
  `, t)) + 1 ? t : e.length, Za = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), qa = (e, t) => parseFloat(getComputedStyle(e)[t]);
3452
3452
  let he;
3453
- const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Nt = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3453
+ const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Ot = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3454
3454
  e.slice(t = Qe(e, t), n = rt(e, n)).split(`
3455
3455
  `),
3456
3456
  t,
3457
3457
  n
3458
- ], Je = (e, t, n = 0, i = n, d = e.getSelection()[0]) => {
3459
- var l;
3460
- const p = e.value, g = e.wrapper.children[ra(p, 0, d)], h = document.createTreeWalker(g, 5);
3461
- let E = h.lastChild(), y = rt(p, d) + 1 - d - E.length;
3462
- for (; -y <= i && (E = h.previousNode()); )
3463
- if (!E.lastChild && (y -= E.length || 0, y <= n)) {
3464
- for (; E != g; E = E.parentNode)
3465
- if ((l = E.matches) != null && l.call(E, t)) return E;
3458
+ ], Je = (e, t, n = 0, i = n, l = e.getSelection()[0]) => {
3459
+ var m;
3460
+ const u = e.value, b = e.wrapper.children[ia(u, 0, l)], E = document.createTreeWalker(b, 5);
3461
+ let y = E.lastChild(), w = rt(u, l) + 1 - l - y.length;
3462
+ for (; -w <= i && (y = E.previousNode()); )
3463
+ if (!y.lastChild && (w -= y.length || 0, w <= n)) {
3464
+ for (; y != b; y = y.parentNode)
3465
+ if ((m = y.matches) != null && m.call(y, t)) return y;
3466
3466
  }
3467
- }, pt = (e, t) => {
3467
+ }, ft = (e, t) => {
3468
3468
  var n;
3469
3469
  return ((n = Je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3470
3470
  /language-(\S*)/
3471
3471
  )[1]) || e.options.language;
3472
- }, V = (e, t, n, i, d, p) => {
3472
+ }, V = (e, t, n, i, l, u) => {
3473
3473
  if (e.options.readOnly) return;
3474
3474
  he = e.getSelection(), i ?? (i = n);
3475
- let g = e.textarea, h = e.value, E = Xe && !h[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(h), y;
3476
- e.focused || g.focus(), n != null && g.setSelectionRange(n, i), d != null && (y = Za(e, "update", () => {
3477
- g.setSelectionRange(
3478
- d,
3479
- p ?? d,
3475
+ let b = e.textarea, E = e.value, y = Xe && !E[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(E), w;
3476
+ e.focused || b.focus(), n != null && b.setSelectionRange(n, i), l != null && (w = Za(e, "update", () => {
3477
+ b.setSelectionRange(
3478
+ l,
3479
+ u ?? l,
3480
3480
  he[2]
3481
- ), y();
3482
- })), Ve || g.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (E && (g.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
3481
+ ), w();
3482
+ })), Ve || b.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (y && (b.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
3483
3483
  `), document.execCommand(
3484
3484
  t ? "insertHTML" : "delete",
3485
3485
  !1,
3486
3486
  t.replace(/&/g, "&amp;").replace(/</g, "&lt;")
3487
- ), E && g.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3487
+ ), y && b.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3488
3488
  }, ke = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3489
- let Ot = !1;
3490
- const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) => e.search(/\S|$/), Wa = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, i) => {
3491
- let d;
3492
- const { keyCommandMap: p, inputCommandMap: g, getSelection: h, scrollContainer: E } = n, y = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], l = () => {
3489
+ let Lt = !1;
3490
+ const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Lt = e, le = (e) => e.search(/\S|$/), Wa = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, i) => {
3491
+ let l;
3492
+ const { keyCommandMap: u, inputCommandMap: b, getSelection: E, scrollContainer: y } = n, w = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3493
3493
  var a;
3494
3494
  return !i.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3495
- }, c = ([a, r], [u, o], s, f) => (a < r || !f && t.test((s[r - 1] || " ") + u + (s[r] || " "))) && !V(n, u + s.slice(a, r) + o, null, null, a + 1, r + 1), w = ([a, r], u, o) => a == r && o[r] == u && !n.setSelection(a + 1), m = (a, r, u, o, s, f) => {
3495
+ }, p = ([a, r], [d, o], s, h) => (a < r || !h && t.test((s[r - 1] || " ") + d + (s[r] || " "))) && !V(n, d + s.slice(a, r) + o, null, null, a + 1, r + 1), c = ([a, r], d, o) => a == r && o[r] == d && !n.setSelection(a + 1), f = (a, r, d, o, s, h) => {
3496
3496
  let R = r.join(`
3497
3497
  `);
3498
3498
  if (R != a.join(`
3499
3499
  `)) {
3500
- const A = a.length - 1, v = r[A], S = a[A], N = S.length - v.length, T = r[0].length - a[0].length, L = u + le((T < 0 ? r : a)[0]), P = o - S.length + le(N > 0 ? v : S), M = u - o + R.length + N, Z = L > s ? s : Math.max(L, s + T), H = f + u - o + R.length;
3500
+ const A = a.length - 1, v = r[A], S = a[A], N = S.length - v.length, T = r[0].length - a[0].length, L = d + le((T < 0 ? r : a)[0]), P = o - S.length + le(N > 0 ? v : S), M = d - o + R.length + N, Z = L > s ? s : Math.max(L, s + T), H = h + d - o + R.length;
3501
3501
  V(
3502
3502
  n,
3503
3503
  R,
3504
- u,
3504
+ d,
3505
3505
  o,
3506
3506
  Z,
3507
- f < P ? H + N : Math.max(P + M, H)
3507
+ h < P ? H + N : Math.max(P + M, H)
3508
3508
  );
3509
3509
  }
3510
- }, _ = (a, r, u, o, s, f, R, A) => {
3511
- m(
3510
+ }, g = (a, r, d, o, s, h, R, A) => {
3511
+ f(
3512
3512
  r,
3513
3513
  r.map(
3514
3514
  a ? (v) => v.slice(le(v) ? A - le(v) % A : 0) : (v) => v && R.repeat(A - le(v) % A) + v
3515
3515
  ),
3516
- u,
3516
+ d,
3517
3517
  o,
3518
3518
  s,
3519
- f
3519
+ h
3520
3520
  );
3521
3521
  };
3522
- g["<"] = (a, r, u) => c(r, "<>", u, !0), e.forEach(([a, r]) => {
3523
- const u = a == r;
3524
- g[a] = (o, s, f) => (u && w(s, r, f) || c(s, a + r, f)) && l(), u || (g[r] = (o, s, f) => w(s, r, f) && l());
3525
- }), g[">"] = (a, r, u) => {
3526
- var s, f;
3527
- const o = (f = (s = ut[pt(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : f.call(s, r, u, n);
3522
+ b["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3523
+ const d = a == r;
3524
+ b[a] = (o, s, h) => (d && c(s, r, h) || p(s, a + r, h)) && m(), d || (b[r] = (o, s, h) => c(s, r, h) && m());
3525
+ }), b[">"] = (a, r, d) => {
3526
+ var s, h;
3527
+ const o = (h = (s = pt[ft(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : h.call(s, r, d, n);
3528
3528
  o && (V(n, ">" + o, null, null, r[0] + 1), G(a));
3529
- }, p.Tab = (a, [r, u], o) => {
3530
- if (Ot || i.readOnly || ke(a) & 6) return;
3531
- const [s, f] = y(i), R = a.shiftKey, [A, v, S] = te(o, r, u);
3532
- return r < u || R ? _(R, A, v, S, r, u, s, f) : V(n, s.repeat(f - (r - v) % f)), l();
3533
- }, p.Enter = (a, r, u) => {
3534
- var s, f, R;
3529
+ }, u.Tab = (a, [r, d], o) => {
3530
+ if (Lt || i.readOnly || ke(a) & 6) return;
3531
+ const [s, h] = w(i), R = a.shiftKey, [A, v, S] = te(o, r, d);
3532
+ return r < d || R ? g(R, A, v, S, r, d, s, h) : V(n, s.repeat(h - (r - v) % h)), m();
3533
+ }, u.Enter = (a, r, d) => {
3534
+ var s, h, R;
3535
3535
  const o = ke(a) & 7;
3536
3536
  if (!o || o == ce) {
3537
- o && (r[0] = r[1] = te(u, r[1])[2]);
3538
- const [A, v] = y(), [S, N] = r, T = (s = ut[pt(n)]) == null ? void 0 : s.autoIndent, L = Math.floor(le(Nt(u, S)) / v) * v, P = (f = T == null ? void 0 : T[0]) != null && f.call(T, r, u, n) ? v : 0, M = (R = T == null ? void 0 : T[1]) == null ? void 0 : R.call(T, r, u, n), Z = `
3537
+ o && (r[0] = r[1] = te(d, r[1])[2]);
3538
+ const [A, v] = w(), [S, N] = r, T = (s = pt[ft(n)]) == null ? void 0 : s.autoIndent, L = Math.floor(le(Ot(d, S)) / v) * v, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? v : 0, M = (R = T == null ? void 0 : T[1]) == null ? void 0 : R.call(T, r, d, n), Z = `
3539
3539
  ` + A.repeat(L + P) + (M ? `
3540
3540
  ` + A.repeat(L) : "");
3541
- if (Z[1] || u[N])
3542
- return V(n, Z, S, N, S + L + P + 1), l();
3541
+ if (Z[1] || d[N])
3542
+ return V(n, Z, S, N, S + L + P + 1), m();
3543
3543
  }
3544
- }, p.Backspace = (a, [r, u], o) => {
3545
- if (r == u) {
3546
- const s = Nt(o, r), f = i.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(s) ? 0 : (s.length - 1) % f + 1;
3544
+ }, u.Backspace = (a, [r, d], o) => {
3545
+ if (r == d) {
3546
+ const s = Ot(o, r), h = i.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(s) ? 0 : (s.length - 1) % h + 1;
3547
3547
  if (R || A > 1)
3548
- return V(n, "", r - (R ? 1 : A), r + R), l();
3548
+ return V(n, "", r - (R ? 1 : A), r + R), m();
3549
3549
  }
3550
3550
  };
3551
3551
  for (let a = 0; a < 2; a++)
3552
- p[a ? "ArrowDown" : "ArrowUp"] = (r, [u, o], s) => {
3553
- const f = ke(r);
3554
- if (f == 1) {
3555
- const R = a ? u : Qe(s, u) - 1, A = a ? s.indexOf(`
3552
+ u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], s) => {
3553
+ const h = ke(r);
3554
+ if (h == 1) {
3555
+ const R = a ? d : Qe(s, d) - 1, A = a ? s.indexOf(`
3556
3556
  `, o) + 1 : o;
3557
3557
  if (R > -1 && A > 0) {
3558
3558
  const [v, S, N] = te(s, R, A), T = v[a ? "pop" : "shift"](), L = (T.length + 1) * (a ? 1 : -1);
3559
3559
  v[a ? "unshift" : "push"](T), V(n, v.join(`
3560
- `), S, N, u + L, o + L);
3560
+ `), S, N, d + L, o + L);
3561
3561
  }
3562
- return l();
3563
- } else if (f == 9) {
3564
- const [R, A, v] = te(s, u, o), S = R.join(`
3562
+ return m();
3563
+ } else if (h == 9) {
3564
+ const [R, A, v] = te(s, d, o), S = R.join(`
3565
3565
  `), N = a ? S.length + 1 : 0;
3566
3566
  return V(n, S + `
3567
- ` + S, A, v, u + N, o + N), l();
3568
- } else if (f == 2 && !Ye)
3569
- return E.scrollBy(0, qa(E, "lineHeight") * (a ? 1 : -1)), !0;
3567
+ ` + S, A, v, d + N, o + N), m();
3568
+ } else if (h == 2 && !Ye)
3569
+ return y.scrollBy(0, qa(y, "lineHeight") * (a ? 1 : -1)), !0;
3570
3570
  };
3571
3571
  z(n, "keydown", (a) => {
3572
3572
  var R;
3573
- const r = ke(a), u = a.keyCode, [o, s, f] = h();
3574
- if (r == ce && (u == 221 || u == 219))
3575
- _(u == 219, ...te(n.value, o, s), o, s, ...y()), l(), G(a);
3576
- else if (r == (Ye ? 10 : 2) && u == 77)
3577
- Ka(!Ot), G(a);
3578
- else if (u == 191 && r == ce || u == 65 && r == 9) {
3579
- const A = n.value, v = r == 9, S = v ? o : Qe(A, o), N = ut[pt(n, S)] || {}, { line: T, block: L } = ((R = N.getComments) == null ? void 0 : R.call(N, n, S, A)) || N.comments || {}, [P, M, Z] = te(A, o, s), H = P.length - 1;
3573
+ const r = ke(a), d = a.keyCode, [o, s, h] = E();
3574
+ if (r == ce && (d == 221 || d == 219))
3575
+ g(d == 219, ...te(n.value, o, s), o, s, ...w()), m(), G(a);
3576
+ else if (r == (Ye ? 10 : 2) && d == 77)
3577
+ Ka(!Lt), G(a);
3578
+ else if (d == 191 && r == ce || d == 65 && r == 9) {
3579
+ const A = n.value, v = r == 9, S = v ? o : Qe(A, o), N = pt[ft(n, S)] || {}, { line: T, block: L } = ((R = N.getComments) == null ? void 0 : R.call(N, n, S, A)) || N.comments || {}, [P, M, Z] = te(A, o, s), H = P.length - 1;
3580
3580
  if (v) {
3581
3581
  if (L) {
3582
3582
  const [B, D] = L, X = A.slice(o, s), x = A.slice(0, o).search(Re(B) + " ?$"), I = RegExp("^ ?" + Re(D)).test(A.slice(s));
@@ -3594,13 +3594,13 @@ const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) =>
3594
3594
  s,
3595
3595
  o + B.length + 1,
3596
3596
  s + B.length + 1
3597
- ), l(), G(a);
3597
+ ), m(), G(a);
3598
3598
  }
3599
3599
  } else if (T) {
3600
3600
  const B = Re(T), D = RegExp(`^\\s*(${B} ?|$)`), X = RegExp(B + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3601
3601
  P.every((C) => D.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${T} `) : C
3602
3602
  );
3603
- m(P, I, M, Z, o, s), l(), G(a);
3603
+ f(P, I, M, Z, o, s), m(), G(a);
3604
3604
  } else if (L) {
3605
3605
  const [B, D] = L, X = le(P[0]), x = P[0].startsWith(B, X) && P[H].endsWith(D), I = P.slice();
3606
3606
  I[0] = P[0].replace(
@@ -3611,224 +3611,224 @@ const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) =>
3611
3611
  I[H] = x ? I[H].replace(RegExp(`( ?${Re(D)})?$`), "") : I[H] + " " + D;
3612
3612
  let q = I.join(`
3613
3613
  `), Q = X + M, W = Q > o ? o : Math.max(o + C, Q), we = Q > s - (o != s) ? s : Math.min(Math.max(Q, s + C), M + q.length);
3614
- V(n, q, M, Z, W, Math.max(W, we)), l(), G(a);
3614
+ V(n, q, M, Z, W, Math.max(W, we)), m(), G(a);
3615
3615
  }
3616
- } else if (r == 8 + ce && u == 75) {
3617
- const A = n.value, [v, S, N] = te(A, o, s), T = f > "f" ? s - N + v.pop().length : o - S, L = rt(A, N + 1) - N - 1;
3616
+ } else if (r == 8 + ce && d == 75) {
3617
+ const A = n.value, [v, S, N] = te(A, o, s), T = h > "f" ? s - N + v.pop().length : o - S, L = rt(A, N + 1) - N - 1;
3618
3618
  V(
3619
3619
  n,
3620
3620
  "",
3621
3621
  S - !!S,
3622
3622
  N + !S,
3623
3623
  S + Math.min(T, L)
3624
- ), l(), G(a);
3624
+ ), m(), G(a);
3625
3625
  }
3626
3626
  }), ["copy", "cut", "paste"].forEach(
3627
3627
  (a) => z(n, a, (r) => {
3628
- const [u, o] = h();
3629
- if (u == o && Rn) {
3630
- const [[s], f, R] = te(n.value, u, o);
3631
- a == "paste" ? r.clipboardData.getData("text/plain") == d && (V(n, d + `
3632
- `, f, f, u + d.length + 1), l(), G(r)) : (Rn.writeText(d = s), a == "cut" && (V(n, "", f, R + 1), l()), G(r));
3628
+ const [d, o] = E();
3629
+ if (d == o && Sn) {
3630
+ const [[s], h, R] = te(n.value, d, o);
3631
+ a == "paste" ? r.clipboardData.getData("text/plain") == l && (V(n, l + `
3632
+ `, h, h, d + l.length + 1), m(), G(r)) : (Sn.writeText(l = s), a == "cut" && (V(n, "", h, R + 1), m()), G(r));
3633
3633
  }
3634
3634
  })
3635
3635
  );
3636
3636
  }, ja = (e = 999) => {
3637
- let t = 0, n, i, d = !1, p, g, h, E, y, l;
3638
- const c = [], w = (a) => {
3639
- a >= e && (a--, c.shift()), c.splice(t = a, e, [n.value, l(), l()]);
3640
- }, m = (a) => {
3637
+ let t = 0, n, i, l = !1, u, b, E, y, w, m;
3638
+ const p = [], c = (a) => {
3639
+ a >= e && (a--, p.shift()), p.splice(t = a, e, [n.value, m(), m()]);
3640
+ }, f = (a) => {
3641
3641
  var r;
3642
- c[a] && (y.value = c[a][0], y.setSelectionRange(...c[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, i = !1);
3643
- }, _ = (a, r) => {
3644
- a.extensions.history = _, n = a, l = a.getSelection, y || w(0), y = a.textarea, a.addListener("selectionChange", () => {
3645
- i = d, d = !1;
3646
- }), z(a, "beforeinput", (u) => {
3647
- let o = u.data, s = u.inputType, f = u.timeStamp;
3648
- /history/.test(s) ? (m(t + (s[7] == "U" ? -1 : 1)), G(u)) : (E = i && (p == s || f - h < 99 && s.slice(-4) == "Drop") && !he && (o != " " || g == o)) || (c[t][2] = he || l()), d = !0, g = o, h = f, p = s;
3649
- }), z(a, "input", () => w(t + !E)), z(a, "keydown", (u) => {
3642
+ p[a] && (w.value = p[a][0], w.setSelectionRange(...p[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, i = !1);
3643
+ }, g = (a, r) => {
3644
+ a.extensions.history = g, n = a, m = a.getSelection, w || c(0), w = a.textarea, a.addListener("selectionChange", () => {
3645
+ i = l, l = !1;
3646
+ }), z(a, "beforeinput", (d) => {
3647
+ let o = d.data, s = d.inputType, h = d.timeStamp;
3648
+ /history/.test(s) ? (f(t + (s[7] == "U" ? -1 : 1)), G(d)) : (y = i && (u == s || h - E < 99 && s.slice(-4) == "Drop") && !he && (o != " " || b == o)) || (p[t][2] = he || m()), l = !0, b = o, E = h, u = s;
3649
+ }), z(a, "input", () => c(t + !y)), z(a, "keydown", (d) => {
3650
3650
  if (!r.readOnly) {
3651
- const o = ke(u), s = u.keyCode, f = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3652
- f ? (m(t - 1), G(u)) : R && (m(t + 1), G(u));
3651
+ const o = ke(d), s = d.keyCode, h = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3652
+ h ? (f(t - 1), G(d)) : R && (f(t + 1), G(d));
3653
3653
  }
3654
3654
  });
3655
3655
  };
3656
- return _.clear = () => {
3657
- w(0), i = !1;
3658
- }, _.has = (a) => t + a in c, _.go = (a) => m(t + a), _;
3656
+ return g.clear = () => {
3657
+ c(0), i = !1;
3658
+ }, g.has = (a) => t + a in p, g.go = (a) => f(t + a), g;
3659
3659
  }, Ya = at(
3660
3660
  "<div style=position:absolute;top:0;opacity:0;padding:inherit> <span><span></span> "
3661
3661
  ), Xa = () => {
3662
3662
  let e, t = " ", n = " ";
3663
- const i = Ya(), [d, p] = i.childNodes, [g, h] = p.childNodes, E = (c) => {
3664
- let { value: w, activeLine: m } = e, _ = c[c[2] < "f" ? 0 : 1], a = Nt(w, _), r = w.slice(_, rt(w, _));
3665
- !a && !r && (r = " "), t != a && (d.data = t = a), n != r && (h.data = n = r), i.parentNode != m && m.prepend(i);
3666
- }, y = () => Va(e, g), l = (c) => {
3667
- c.addListener("selectionChange", E), e = c, c.extensions.cursor = l, z(c, "input", (w) => {
3668
- /history/.test(w.inputType) && y();
3669
- }), c.activeLine && E(c.getSelection());
3663
+ const i = Ya(), [l, u] = i.childNodes, [b, E] = u.childNodes, y = (p) => {
3664
+ let { value: c, activeLine: f } = e, g = p[p[2] < "f" ? 0 : 1], a = Ot(c, g), r = c.slice(g, rt(c, g));
3665
+ !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), i.parentNode != f && f.prepend(i);
3666
+ }, w = () => Va(e, b), m = (p) => {
3667
+ p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, z(p, "input", (c) => {
3668
+ /history/.test(c.inputType) && w();
3669
+ }), p.activeLine && y(p.getSelection());
3670
3670
  };
3671
- return l.getPosition = () => {
3672
- const c = g.getBoundingClientRect(), w = e.overlays.getBoundingClientRect();
3671
+ return m.getPosition = () => {
3672
+ const p = b.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3673
3673
  return {
3674
- top: c.y - w.y,
3675
- bottom: w.bottom - c.bottom,
3676
- left: c.x - w.x,
3677
- right: w.right - c.x,
3678
- height: c.height
3674
+ top: p.y - c.y,
3675
+ bottom: c.bottom - p.bottom,
3676
+ left: p.x - c.x,
3677
+ right: c.right - p.x,
3678
+ height: p.height
3679
3679
  };
3680
- }, l.scrollIntoView = y, l.element = g, l;
3680
+ }, m.scrollIntoView = w, m.element = b, m;
3681
3681
  }, Qa = at(
3682
3682
  "<div class=guide-indents style=left:var(--padding-left);bottom:auto;right:auto> "
3683
3683
  ), Ja = at(
3684
3684
  "<div style=width:1px;position:absolute;background:var(--bg-guide-indent)>"
3685
3685
  ), er = () => {
3686
- let e, t = 0, n, i = -1, d;
3687
- const p = [], g = [], h = Qa(), E = [], y = (m) => {
3686
+ let e, t = 0, n, i = -1, l;
3687
+ const u = [], b = [], E = Qa(), y = [], w = (f) => {
3688
3688
  n = [];
3689
- const _ = c(m.split(`
3690
- `)), a = _.length;
3691
- for (let r = 0, u = [], o = _[0]; o; r++) {
3692
- const s = (p[r] || (p[r] = Ja())).style, [f, R, A] = o, v = g[r];
3693
- o = _[r + 1], f != (v == null ? void 0 : v[0]) && (s.top = f + "00%"), R != (v == null ? void 0 : v[1]) && (s.height = R + "00%"), A != (v == null ? void 0 : v[2]) && (s.left = A * 100 + "%");
3694
- const S = u[0] != f && (o == null ? void 0 : o[0]) != f, N = u[0] + u[1] != f + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != f + R;
3689
+ const g = p(f.split(`
3690
+ `)), a = g.length;
3691
+ for (let r = 0, d = [], o = g[0]; o; r++) {
3692
+ const s = (u[r] || (u[r] = Ja())).style, [h, R, A] = o, v = b[r];
3693
+ o = g[r + 1], h != (v == null ? void 0 : v[0]) && (s.top = h + "00%"), R != (v == null ? void 0 : v[1]) && (s.height = R + "00%"), A != (v == null ? void 0 : v[2]) && (s.left = A * 100 + "%");
3694
+ const S = d[0] != h && (o == null ? void 0 : o[0]) != h, N = d[0] + d[1] != h + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + R;
3695
3695
  for (let T = -S, L = R + N; T < L; T++)
3696
- n[T + f] = r;
3697
- u = g[r] = _[r];
3696
+ n[T + h] = r;
3697
+ d = b[r] = g[r];
3698
3698
  }
3699
- for (let r = t; r > a; ) p[--r].remove();
3700
- h.append(...p.slice(t, t = a));
3701
- }, l = () => {
3702
- const m = n[d.activeLineNumber - 1] ?? -1;
3703
- m != i && (i > -1 && (p[i].className = ""), m > -1 && (p[m].className = "active")), i = m;
3704
- }, c = (m) => {
3705
- const _ = m.length, a = [], r = [];
3706
- for (let u = 0, o = -1, s = 0, f = 0; ; s++) {
3707
- const R = s == _, A = R ? 0 : E[s] = w(m[s]);
3699
+ for (let r = t; r > a; ) u[--r].remove();
3700
+ E.append(...u.slice(t, t = a));
3701
+ }, m = () => {
3702
+ const f = n[l.activeLineNumber - 1] ?? -1;
3703
+ f != i && (i > -1 && (u[i].className = ""), f > -1 && (u[f].className = "active")), i = f;
3704
+ }, p = (f) => {
3705
+ const g = f.length, a = [], r = [];
3706
+ for (let d = 0, o = -1, s = 0, h = 0; ; s++) {
3707
+ const R = s == g, A = R ? 0 : y[s] = c(f[s]);
3708
3708
  if (A < 0)
3709
3709
  o < 0 && (o = s);
3710
3710
  else {
3711
- for (let v = A; v < u; v++)
3711
+ for (let v = A; v < d; v++)
3712
3712
  a[v][1] = (o < 0 || v == A && !R ? s : o) - a[v][0];
3713
- for (let v = u; v < A; )
3714
- r[f++] = a[v] = [
3715
- o < 0 || v > u ? s : o,
3713
+ for (let v = d; v < A; )
3714
+ r[h++] = a[v] = [
3715
+ o < 0 || v > d ? s : o,
3716
3716
  0,
3717
3717
  v++ * e
3718
3718
  ];
3719
- o = -1, u = A;
3719
+ o = -1, d = A;
3720
3720
  }
3721
3721
  if (R) break;
3722
3722
  }
3723
- return E.length = _, r;
3724
- }, w = (m) => {
3725
- let _ = m.search(/\S/), a = 0;
3726
- if (_ < 0) return _;
3727
- for (let r = 0; r < _; )
3728
- a += m[r++] == " " ? e - a % e : 1;
3723
+ return y.length = g, r;
3724
+ }, c = (f) => {
3725
+ let g = f.search(/\S/), a = 0;
3726
+ if (g < 0) return g;
3727
+ for (let r = 0; r < g; )
3728
+ a += f[r++] == " " ? e - a % e : 1;
3729
3729
  return Math.ceil(a / e);
3730
3730
  };
3731
3731
  return {
3732
- lines: h.children,
3733
- indentLevels: E,
3734
- update(m, _) {
3735
- d || (d = m, m.extensions.indentGuides = this, m.overlays.append(h), m.addListener("update", y), m.addListener("selectionChange", l)), h.style.display = _.wordWrap ? "none" : "", e != (e = _.tabSize || 2) && (y(m.value), l());
3732
+ lines: E.children,
3733
+ indentLevels: y,
3734
+ update(f, g) {
3735
+ l || (l = f, f.extensions.indentGuides = this, f.overlays.append(E), f.addListener("update", w), f.addListener("selectionChange", m)), E.style.display = g.wordWrap ? "none" : "", e != (e = g.tabSize || 2) && (w(f.value), m());
3736
3736
  }
3737
3737
  };
3738
3738
  }, tr = () => (e) => {
3739
- let t, n, i, d = -1, p = [], g = () => {
3739
+ let t, n, i, l = -1, u = [], b = () => {
3740
3740
  n || (n = e.extensions.matchBrackets);
3741
- let [y, l] = e.getSelection(), c = y == l && e.focused && n && h(l) || -1;
3742
- if (c != d) {
3743
- if (E(), c + 1) {
3744
- let w = t[i[c]], m = t[c];
3745
- p = [w, m].map(
3746
- (_) => Je(e, ".punctuation", 0, -1, _[1])
3747
- ), p[0] != p[1] && w[1] + w[3].length == m[1] && (p[0].textContent += p[1].textContent, p[1].textContent = "", p[1] = p[0]), E(!0);
3748
- } else p = [];
3749
- d = c;
3741
+ let [w, m] = e.getSelection(), p = w == m && e.focused && n && E(m) || -1;
3742
+ if (p != l) {
3743
+ if (y(), p + 1) {
3744
+ let c = t[i[p]], f = t[p];
3745
+ u = [c, f].map(
3746
+ (g) => Je(e, ".punctuation", 0, -1, g[1])
3747
+ ), u[0] != u[1] && c[1] + c[3].length == f[1] && (u[0].textContent += u[1].textContent, u[1].textContent = "", u[1] = u[0]), y(!0);
3748
+ } else u = [];
3749
+ l = p;
3750
3750
  }
3751
- }, h = (y) => {
3752
- var l;
3751
+ }, E = (w) => {
3752
+ var m;
3753
3753
  ({ brackets: t, pairs: i } = n);
3754
- for (let c = 0, w; w = t[++c]; )
3755
- if (!w[4] && w[5] >= y && ((l = t[i[c]]) == null ? void 0 : l[1]) <= y)
3756
- return c;
3757
- }, E = (y) => p.forEach((l) => l.classList.toggle("active-bracket", !!y));
3758
- z(e, "focus", g), z(e, "blur", g), e.addListener("selectionChange", g), e.addListener("update", () => {
3759
- E(), d = -1;
3754
+ for (let p = 0, c; c = t[++p]; )
3755
+ if (!c[4] && c[5] >= w && ((m = t[i[p]]) == null ? void 0 : m[1]) <= w)
3756
+ return p;
3757
+ }, y = (w) => u.forEach((m) => m.classList.toggle("active-bracket", !!w));
3758
+ z(e, "focus", b), z(e, "blur", b), e.addListener("selectionChange", b), e.addListener("update", () => {
3759
+ y(), l = -1;
3760
3760
  });
3761
3761
  }, nr = (e = !0, t = "([{", n = ")]}") => {
3762
- let i, d;
3763
- const p = [], g = (c) => {
3764
- c.extensions.matchBrackets = g, c.addListener("tokenize", y), e && c.tokens[0] ? c.update() : y(c.tokens);
3765
- }, h = g.brackets = [], E = g.pairs = [], y = (c) => {
3766
- if (E.length = h.length = d = i = 0, l(c, 0), e)
3767
- for (let w = 0, m; m = h[w]; ) {
3768
- let _ = m[0].alias;
3769
- m[0].alias = (_ ? _ + " " : "") + `bracket-${w++ in E ? "level-" + m[2] % 12 : "error"}`;
3762
+ let i, l;
3763
+ const u = [], b = (p) => {
3764
+ p.extensions.matchBrackets = b, p.addListener("tokenize", w), e && p.tokens[0] ? p.update() : w(p.tokens);
3765
+ }, E = b.brackets = [], y = b.pairs = [], w = (p) => {
3766
+ if (y.length = E.length = l = i = 0, m(p, 0), e)
3767
+ for (let c = 0, f; f = E[c]; ) {
3768
+ let g = f[0].alias;
3769
+ f[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + f[2] % 12 : "error"}`;
3770
3770
  }
3771
- }, l = (c, w) => {
3772
- let m, _ = 0;
3773
- for (; m = c[_++]; ) {
3774
- let a = m.length;
3775
- if (typeof m != "string") {
3776
- let r = m.content;
3771
+ }, m = (p, c) => {
3772
+ let f, g = 0;
3773
+ for (; f = p[g++]; ) {
3774
+ let a = f.length;
3775
+ if (typeof f != "string") {
3776
+ let r = f.content;
3777
3777
  if (Array.isArray(r))
3778
- l(r, w);
3779
- else if ((m.alias || m.type) == "punctuation") {
3780
- let u = Sn(r, t, a - 1), o = u || Sn(r, n, a - 1);
3778
+ m(r, c);
3779
+ else if ((f.alias || f.type) == "punctuation") {
3780
+ let d = kn(r, t, a - 1), o = d || kn(r, n, a - 1);
3781
3781
  if (o) {
3782
- if (h[i] = [m, w, 0, r, !!u, w + a], u) p[d++] = [i, u];
3782
+ if (E[i] = [f, c, 0, r, !!d, c + a], d) u[l++] = [i, d];
3783
3783
  else
3784
- for (let s = d; s; ) {
3785
- let [f, R] = p[--s];
3786
- o == R && (E[E[i] = f] = i, h[i][2] = h[f][2] = d = s, s = 0);
3784
+ for (let s = l; s; ) {
3785
+ let [h, R] = u[--s];
3786
+ o == R && (y[y[i] = h] = i, E[i][2] = E[h][2] = l = s, s = 0);
3787
3787
  }
3788
3788
  i++;
3789
3789
  }
3790
3790
  }
3791
3791
  }
3792
- w += a;
3792
+ c += a;
3793
3793
  }
3794
3794
  };
3795
- return g;
3796
- }, Sn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, ar = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), rr = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, ir = (e) => {
3797
- let t = [], n, i = [], d, p, g = [], h = (y, l, c) => {
3798
- n = c, i.length = t.length = d = p = 0, E(y, l, 0);
3799
- }, E = (y, l, c) => {
3800
- let w = ar.includes(l), m = 0, _ = y.length;
3801
- for (; m < _; ) {
3802
- const a = y[m++], r = a.content, u = a.length;
3795
+ return b;
3796
+ }, kn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, ar = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), rr = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, ir = (e) => {
3797
+ let t = [], n, i = [], l, u, b = [], E = (w, m, p) => {
3798
+ n = p, i.length = t.length = l = u = 0, y(w, m, 0);
3799
+ }, y = (w, m, p) => {
3800
+ let c = ar.includes(m), f = 0, g = w.length;
3801
+ for (; f < g; ) {
3802
+ const a = w[f++], r = a.content, d = a.length;
3803
3803
  if (Array.isArray(r))
3804
- if (a.type == "tag" && n[c] == "<") {
3805
- const o = r[0].length, s = r[2] ? n.substr(c + o, r[1].length) : "", f = r[r.length - 1].length < 2 && (w || !rr.test(s));
3806
- if (r[2] && w && E(r, l, c), f)
3804
+ if (a.type == "tag" && n[p] == "<") {
3805
+ const o = r[0].length, s = r[2] ? n.substr(p + o, r[1].length) : "", h = r[r.length - 1].length < 2 && (c || !rr.test(s));
3806
+ if (r[2] && c && y(r, m, p), h)
3807
3807
  if (o > 1)
3808
- for (let R = p; R; )
3809
- s == g[--R][1] && (t[t[d] = g[p = R][0]] = d, R = 0);
3808
+ for (let R = u; R; )
3809
+ s == b[--R][1] && (t[t[l] = b[u = R][0]] = l, R = 0);
3810
3810
  else
3811
- g[p++] = [d, s];
3812
- i[d++] = [
3811
+ b[u++] = [l, s];
3812
+ i[l++] = [
3813
3813
  a,
3814
- c,
3815
- c + u,
3814
+ p,
3815
+ p + d,
3816
3816
  s,
3817
3817
  o > 1,
3818
- f
3818
+ h
3819
3819
  ];
3820
3820
  } else {
3821
3821
  let o = a.alias || a.type;
3822
- E(
3822
+ y(
3823
3823
  r,
3824
- o.slice(0, 9) == "language-" ? o.slice(9) : l,
3825
- c
3824
+ o.slice(0, 9) == "language-" ? o.slice(9) : m,
3825
+ p
3826
3826
  );
3827
3827
  }
3828
- c += u;
3828
+ p += d;
3829
3829
  }
3830
3830
  };
3831
- return e.addListener("tokenize", h), h(e.tokens, e.options.language, e.value), {
3831
+ return e.addListener("tokenize", E), E(e.tokens, e.options.language, e.value), {
3832
3832
  tags: i,
3833
3833
  pairs: t
3834
3834
  };
@@ -3837,14 +3837,14 @@ const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) =>
3837
3837
  }, or = () => (e) => {
3838
3838
  var t;
3839
3839
  let n, i;
3840
- const { tags: d, pairs: p } = (t = e.extensions).matchTags || (t.matchTags = ir(e)), g = (h) => [n, i].forEach((E) => {
3841
- E && E.classList.toggle("active-tagname", !h);
3840
+ const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = ir(e)), b = (E) => [n, i].forEach((y) => {
3841
+ y && y.classList.toggle("active-tagname", !E);
3842
3842
  });
3843
- e.addListener("selectionChange", ([h, E]) => {
3844
- let y, l, c;
3845
- h == E && e.focused && (c = sr(h, d), c + 1 && (c = p[c], c + 1 && (y = Je(e, ".tag>.tag")) && (l = Je(e, ".tag>.tag", 2, 0, d[c][1])))), n != y && (g(!0), n = y, i = l, g());
3843
+ e.addListener("selectionChange", ([E, y]) => {
3844
+ let w, m, p;
3845
+ E == y && e.focused && (p = sr(E, l), p + 1 && (p = u[p], p + 1 && (w = Je(e, ".tag>.tag")) && (m = Je(e, ".tag>.tag", 2, 0, l[p][1])))), n != w && (b(!0), n = w, i = m, b());
3846
3846
  });
3847
- }, lr = "_wrap_1x3wi_1", cr = "_blockInfoEditable_1x3wi_30", kn = {
3847
+ }, lr = "_wrap_1x3wi_1", cr = "_blockInfoEditable_1x3wi_30", Tn = {
3848
3848
  wrap: lr,
3849
3849
  blockInfoEditable: cr
3850
3850
  }, Ue = [
@@ -3864,43 +3864,60 @@ const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) =>
3864
3864
  { value: "markdown", label: "Markdown" },
3865
3865
  { value: "bash", label: "Bash" },
3866
3866
  { value: "php", label: "PHP" }
3867
- ], ft = [2, 4, 8];
3867
+ ], bt = [2, 4, 8];
3868
3868
  function dr(e) {
3869
- const t = da(), n = Gt(null), i = pa(() => ua(fr.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), d = Gt(null), p = e.node.attrs.code || e.node.textContent || "", g = () => {
3870
- p && navigator.clipboard.writeText(p).then(() => {
3871
- console.log("Copy Success");
3872
- }).catch((l) => {
3873
- console.error("Error:", l);
3874
- });
3875
- }, h = () => {
3869
+ const t = ua(), n = zt(null), i = it(() => pa(fr.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = zt(null), u = e.node.attrs.code || e.node.textContent || "", b = it((c) => {
3870
+ c == null || c.stopPropagation(), setTimeout(() => {
3871
+ var f, g, a;
3872
+ (a = (g = (f = l.current) == null ? void 0 : f.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3873
+ }, 0);
3874
+ }, []), E = async () => {
3875
+ if (u)
3876
+ try {
3877
+ if (navigator.clipboard)
3878
+ await navigator.clipboard.writeText(u), console.log("Copy Success");
3879
+ else {
3880
+ const c = document.createElement("textarea");
3881
+ c.value = u, document.body.appendChild(c), c.select(), document.execCommand("copy"), document.body.removeChild(c), console.log("Copy Success (fallback)");
3882
+ }
3883
+ } catch (c) {
3884
+ console.error("Error:", c);
3885
+ } finally {
3886
+ b();
3887
+ }
3888
+ }, y = () => {
3876
3889
  e.updateAttributes({
3877
3890
  lineNumbers: !e.node.attrs.lineNumbers
3878
- });
3879
- }, E = () => {
3891
+ }), b();
3892
+ }, w = () => {
3880
3893
  e.updateAttributes({
3881
3894
  wordWrap: !e.node.attrs.wordWrap
3882
- });
3883
- }, y = (l) => {
3884
- const c = { ...l };
3885
- return c.language && !Ue.some((w) => w.value === c.language) && (c.language = "plaintext", e.updateAttributes({
3895
+ }), b();
3896
+ }, m = (c) => {
3897
+ const f = { ...c };
3898
+ return f.language && !Ue.some((g) => g.value === f.language) && (f.language = "plaintext", e.updateAttributes({
3886
3899
  language: "plaintext"
3887
- })), c;
3888
- };
3889
- return zt(() => {
3900
+ })), f;
3901
+ }, p = it((c) => {
3902
+ b(c);
3903
+ }, [b]);
3904
+ return Ht(() => {
3890
3905
  if (n.current) {
3891
- const l = y(e.node.attrs);
3892
- d.current = Ga(n.current, {
3906
+ const c = m(e.node.attrs);
3907
+ l.current = Ga(n.current, {
3893
3908
  readOnly: !e.editor.isEditable,
3894
- language: l.language || "plaintext",
3895
- tabSize: l.tabSize ?? 2,
3896
- lineNumbers: l.lineNumbers ?? !0,
3897
- wordWrap: l.wordWrap ?? !1,
3898
- value: p,
3909
+ language: c.language || "plaintext",
3910
+ tabSize: c.tabSize ?? 2,
3911
+ lineNumbers: c.lineNumbers ?? !0,
3912
+ wordWrap: c.wordWrap ?? !1,
3913
+ value: u,
3899
3914
  rtl: !1,
3900
- onUpdate(c) {
3901
- e.updateAttributes({ code: c });
3915
+ onUpdate(f) {
3916
+ queueMicrotask(() => {
3917
+ e.updateAttributes({ code: f });
3918
+ });
3902
3919
  }
3903
- }), d.current.addExtensions(
3920
+ }), l.current.addExtensions(
3904
3921
  nr(),
3905
3922
  or(),
3906
3923
  er(),
@@ -3909,55 +3926,55 @@ function dr(e) {
3909
3926
  Wa(),
3910
3927
  ja()
3911
3928
  ), e.node.attrs.shouldFocus && setTimeout(() => {
3912
- var c;
3913
- (c = d.current) == null || c.textarea.focus(), e.updateAttributes({
3929
+ b(), e.updateAttributes({
3914
3930
  shouldFocus: !1
3915
3931
  });
3916
3932
  }, 0);
3917
3933
  }
3918
3934
  return () => {
3919
- var l, c;
3920
- (l = d.current) != null && l.remove && ((c = d.current) == null || c.remove());
3935
+ var c, f;
3936
+ (c = l.current) != null && c.remove && ((f = l.current) == null || f.remove());
3921
3937
  };
3922
- }, [n]), zt(() => {
3923
- var l, c;
3924
- if ((l = d.current) != null && l.setOptions) {
3925
- const w = y(e.node.attrs);
3926
- (c = d.current) == null || c.setOptions(w);
3938
+ }, [n]), Ht(() => {
3939
+ var c, f;
3940
+ if ((c = l.current) != null && c.setOptions) {
3941
+ const g = m(e.node.attrs);
3942
+ (f = l.current) == null || f.setOptions(g);
3927
3943
  }
3928
- }, [d, e.node.attrs]), /* @__PURE__ */ k(oa, { className: Le(kn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3944
+ }, [l, e.node.attrs]), /* @__PURE__ */ k(la, { className: Le(Tn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3929
3945
  "div",
3930
3946
  {
3947
+ onClick: p,
3931
3948
  ref: n,
3932
3949
  className: Le("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3933
- [kn.blockInfoEditable]: !t
3950
+ [Tn.blockInfoEditable]: !t
3934
3951
  }),
3935
3952
  children: /* @__PURE__ */ _e("div", { className: "richtext-code-block-toolbar", children: [
3936
3953
  /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
3937
- Ht,
3954
+ Vt,
3938
3955
  {
3939
3956
  defaultValue: e.node.attrs.language,
3940
3957
  disabled: !t,
3941
- onValueChange: (l) => {
3958
+ onValueChange: (c) => {
3942
3959
  e.updateAttributes({
3943
- language: l
3944
- });
3960
+ language: c
3961
+ }), b();
3945
3962
  },
3946
3963
  children: [
3947
- /* @__PURE__ */ k(bt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(ga, { placeholder: "Select language" }) }),
3964
+ /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(ga, { placeholder: "Select language" }) }),
3948
3965
  /* @__PURE__ */ k(
3949
- gt,
3966
+ mt,
3950
3967
  {
3951
3968
  className: "richtext-border-[#3a3f4b] richtext-bg-[#21252b] richtext-text-[#ccc]",
3952
- onCloseAutoFocus: (l) => l.preventDefault(),
3969
+ onCloseAutoFocus: (c) => c.preventDefault(),
3953
3970
  children: Ue == null ? void 0 : Ue.map(
3954
- (l) => /* @__PURE__ */ k(
3955
- mt,
3971
+ (c) => /* @__PURE__ */ k(
3972
+ ht,
3956
3973
  {
3957
- value: l.value,
3958
- children: l.label
3974
+ value: c.value,
3975
+ children: c.label
3959
3976
  },
3960
- l.value
3977
+ c.value
3961
3978
  )
3962
3979
  )
3963
3980
  }
@@ -3970,7 +3987,7 @@ function dr(e) {
3970
3987
  "div",
3971
3988
  {
3972
3989
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3973
- onClick: g,
3990
+ onClick: E,
3974
3991
  children: /* @__PURE__ */ k(
3975
3992
  xe,
3976
3993
  {
@@ -3984,7 +4001,7 @@ function dr(e) {
3984
4001
  /* @__PURE__ */ k(
3985
4002
  "div",
3986
4003
  {
3987
- onClick: h,
4004
+ onClick: y,
3988
4005
  className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3989
4006
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.lineNumbers
3990
4007
  }),
@@ -4001,7 +4018,7 @@ function dr(e) {
4001
4018
  /* @__PURE__ */ k(
4002
4019
  "div",
4003
4020
  {
4004
- onClick: E,
4021
+ onClick: w,
4005
4022
  className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4006
4023
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.wordWrap
4007
4024
  }),
@@ -4016,17 +4033,17 @@ function dr(e) {
4016
4033
  ),
4017
4034
  /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4018
4035
  /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
4019
- Ht,
4036
+ Vt,
4020
4037
  {
4021
4038
  defaultValue: e.node.attrs.tabSize,
4022
4039
  disabled: !t,
4023
- onValueChange: (l) => {
4040
+ onValueChange: (c) => {
4024
4041
  e.updateAttributes({
4025
- tabSize: l
4026
- });
4042
+ tabSize: c
4043
+ }), b();
4027
4044
  },
4028
4045
  children: [
4029
- /* @__PURE__ */ k(bt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(
4046
+ /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(
4030
4047
  xe,
4031
4048
  {
4032
4049
  className: "richtext-size-4",
@@ -4034,17 +4051,17 @@ function dr(e) {
4034
4051
  }
4035
4052
  ) }),
4036
4053
  /* @__PURE__ */ k(
4037
- gt,
4054
+ mt,
4038
4055
  {
4039
4056
  className: "richtext-border-[#3a3f4b] richtext-bg-[#21252b] richtext-text-[#ccc]",
4040
- onCloseAutoFocus: (l) => l.preventDefault(),
4041
- children: ft == null ? void 0 : ft.map((l) => /* @__PURE__ */ k(
4042
- mt,
4057
+ onCloseAutoFocus: (c) => c.preventDefault(),
4058
+ children: bt == null ? void 0 : bt.map((c) => /* @__PURE__ */ k(
4059
+ ht,
4043
4060
  {
4044
- value: l,
4045
- children: l
4061
+ value: c,
4062
+ children: c
4046
4063
  },
4047
- l
4064
+ c
4048
4065
  ))
4049
4066
  }
4050
4067
  )
@@ -4070,7 +4087,7 @@ function dr(e) {
4070
4087
  }
4071
4088
  ) });
4072
4089
  }
4073
- const ur = /^`{3}([a-z]+)?\s$/, pr = /^~{3}([a-z]+)?\s$/, fr = /* @__PURE__ */ ia.create({
4090
+ const ur = /^`{3}([a-z]+)?\s$/, pr = /^~{3}([a-z]+)?\s$/, fr = /* @__PURE__ */ sa.create({
4074
4091
  name: "codeBlock",
4075
4092
  group: "block",
4076
4093
  atom: !0,
@@ -4140,12 +4157,12 @@ const ur = /^`{3}([a-z]+)?\s$/, pr = /^~{3}([a-z]+)?\s$/, fr = /* @__PURE__ */ i
4140
4157
  const n = t.attrs.code || ((i = t.content.firstChild) == null ? void 0 : i.text) || "";
4141
4158
  return [
4142
4159
  "pre",
4143
- sa(this.options.HTMLAttributes, e),
4160
+ oa(this.options.HTMLAttributes, e),
4144
4161
  ["code", {}, n]
4145
4162
  ];
4146
4163
  },
4147
4164
  addNodeView() {
4148
- return la(dr);
4165
+ return ca(dr);
4149
4166
  },
4150
4167
  addCommands() {
4151
4168
  return {
@@ -4165,14 +4182,14 @@ const ur = /^`{3}([a-z]+)?\s$/, pr = /^~{3}([a-z]+)?\s$/, fr = /* @__PURE__ */ i
4165
4182
  },
4166
4183
  addInputRules() {
4167
4184
  return [
4168
- Bt({
4185
+ Gt({
4169
4186
  find: ur,
4170
4187
  type: this.type,
4171
4188
  getAttributes: (e) => ({
4172
4189
  language: e[1]
4173
4190
  })
4174
4191
  }),
4175
- Bt({
4192
+ Gt({
4176
4193
  find: pr,
4177
4194
  type: this.type,
4178
4195
  getAttributes: (e) => ({