react-email 1.0.8 → 1.0.9

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 (117) hide show
  1. package/package.json +2 -2
  2. package/preview/.next/BUILD_ID +1 -0
  3. package/preview/.next/build-manifest.json +42 -0
  4. package/preview/.next/cache/.tsbuildinfo +1 -0
  5. package/preview/.next/cache/next-server.js.nft.json +290 -0
  6. package/preview/.next/cache/webpack/client-development/0.pack +0 -0
  7. package/preview/.next/cache/webpack/client-development/1.pack +0 -0
  8. package/preview/.next/cache/webpack/client-development/10.pack +0 -0
  9. package/preview/.next/cache/webpack/client-development/11.pack +0 -0
  10. package/preview/.next/cache/webpack/client-development/12.pack +0 -0
  11. package/preview/.next/cache/webpack/client-development/13.pack +0 -0
  12. package/preview/.next/cache/webpack/client-development/14.pack +0 -0
  13. package/preview/.next/cache/webpack/client-development/15.pack +0 -0
  14. package/preview/.next/cache/webpack/client-development/16.pack +0 -0
  15. package/preview/.next/cache/webpack/client-development/2.pack +0 -0
  16. package/preview/.next/cache/webpack/client-development/3.pack +0 -0
  17. package/preview/.next/cache/webpack/client-development/4.pack +0 -0
  18. package/preview/.next/cache/webpack/client-development/5.pack +0 -0
  19. package/preview/.next/cache/webpack/client-development/6.pack +0 -0
  20. package/preview/.next/cache/webpack/client-development/7.pack +0 -0
  21. package/preview/.next/cache/webpack/client-development/8.pack +0 -0
  22. package/preview/.next/cache/webpack/client-development/9.pack +0 -0
  23. package/preview/.next/cache/webpack/client-development/index.pack +0 -0
  24. package/preview/.next/cache/webpack/client-development/index.pack.old +0 -0
  25. package/preview/.next/cache/webpack/client-production/0.pack +0 -0
  26. package/preview/.next/cache/webpack/client-production/index.pack +0 -0
  27. package/preview/.next/cache/webpack/server-development/0.pack +0 -0
  28. package/preview/.next/cache/webpack/server-development/1.pack +0 -0
  29. package/preview/.next/cache/webpack/server-development/10.pack +0 -0
  30. package/preview/.next/cache/webpack/server-development/11.pack +0 -0
  31. package/preview/.next/cache/webpack/server-development/12.pack +0 -0
  32. package/preview/.next/cache/webpack/server-development/13.pack +0 -0
  33. package/preview/.next/cache/webpack/server-development/14.pack +0 -0
  34. package/preview/.next/cache/webpack/server-development/15.pack +0 -0
  35. package/preview/.next/cache/webpack/server-development/16.pack +0 -0
  36. package/preview/.next/cache/webpack/server-development/2.pack +0 -0
  37. package/preview/.next/cache/webpack/server-development/3.pack +0 -0
  38. package/preview/.next/cache/webpack/server-development/4.pack +0 -0
  39. package/preview/.next/cache/webpack/server-development/5.pack +0 -0
  40. package/preview/.next/cache/webpack/server-development/6.pack +0 -0
  41. package/preview/.next/cache/webpack/server-development/7.pack +0 -0
  42. package/preview/.next/cache/webpack/server-development/8.pack +0 -0
  43. package/preview/.next/cache/webpack/server-development/9.pack +0 -0
  44. package/preview/.next/cache/webpack/server-development/index.pack +0 -0
  45. package/preview/.next/cache/webpack/server-development/index.pack.old +0 -0
  46. package/preview/.next/cache/webpack/server-production/0.pack +0 -0
  47. package/preview/.next/cache/webpack/server-production/index.pack +0 -0
  48. package/preview/.next/export-marker.json +6 -0
  49. package/preview/.next/images-manifest.json +22 -0
  50. package/preview/.next/next-server.js.nft.json +290 -0
  51. package/preview/.next/package.json +3 -0
  52. package/preview/.next/prerender-manifest.json +24 -0
  53. package/preview/.next/react-loadable-manifest.json +1 -0
  54. package/preview/.next/required-server-files.json +113 -0
  55. package/preview/.next/routes-manifest.json +48 -0
  56. package/preview/.next/server/chunks/664.js +3836 -0
  57. package/preview/.next/server/chunks/676.js +35 -0
  58. package/preview/.next/server/chunks/759.js +1548 -0
  59. package/preview/.next/server/chunks/font-manifest.json +6 -0
  60. package/preview/.next/server/font-loader-manifest.js +4 -0
  61. package/preview/.next/server/font-loader-manifest.json +6 -0
  62. package/preview/.next/server/font-manifest.json +6 -0
  63. package/preview/.next/server/middleware-build-manifest.js +42 -0
  64. package/preview/.next/server/middleware-manifest.json +6 -0
  65. package/preview/.next/server/middleware-react-loadable-manifest.js +1 -0
  66. package/preview/.next/server/pages/404.html +12 -0
  67. package/preview/.next/server/pages/500.html +12 -0
  68. package/preview/.next/server/pages/_app.js +115 -0
  69. package/preview/.next/server/pages/_app.js.nft.json +29 -0
  70. package/preview/.next/server/pages/_document.js +1335 -0
  71. package/preview/.next/server/pages/_document.js.nft.json +33 -0
  72. package/preview/.next/server/pages/_error.js +195 -0
  73. package/preview/.next/server/pages/_error.js.nft.json +23 -0
  74. package/preview/.next/server/pages/index.html +1 -0
  75. package/preview/.next/server/pages/index.js +310 -0
  76. package/preview/.next/server/pages/index.js.nft.json +132 -0
  77. package/preview/.next/server/pages/index.json +1 -0
  78. package/preview/.next/server/pages/preview/[slug].html +1 -0
  79. package/preview/.next/server/pages/preview/[slug].js +388 -0
  80. package/preview/.next/server/pages/preview/[slug].js.nft.json +179 -0
  81. package/preview/.next/server/pages-manifest.json +8 -0
  82. package/preview/.next/server/webpack-runtime.js +213 -0
  83. package/preview/.next/static/cY9PAzmXyKOoOW2gY4i5N/_buildManifest.js +17 -0
  84. package/preview/.next/static/cY9PAzmXyKOoOW2gY4i5N/_ssgManifest.js +2 -0
  85. package/preview/.next/static/chunks/727-0b09744222e89df8.js +4402 -0
  86. package/preview/.next/static/chunks/759-cdb5c7b41d03d871.js +1135 -0
  87. package/preview/.next/static/chunks/framework-3b5a00d5d7e8d93b.js +9188 -0
  88. package/preview/.next/static/chunks/main-50de763069eba4b2.js +5078 -0
  89. package/preview/.next/static/chunks/pages/_app-76f7305c0a91d681.js +116 -0
  90. package/preview/.next/static/chunks/pages/_error-8353112a01355ec2.js +19 -0
  91. package/preview/.next/static/chunks/pages/index-cd725955236a17bd.js +44 -0
  92. package/preview/.next/static/chunks/pages/preview/[slug]-e24c537be91754b2.js +57 -0
  93. package/preview/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +6342 -0
  94. package/preview/.next/static/chunks/webpack-0b5d8249fb15f5f3.js +141 -0
  95. package/preview/.next/static/css/8543b02f1dad7784.css +3 -0
  96. package/preview/.next/static/media/2aaf0723e720e8b9.p.woff2 +0 -0
  97. package/preview/.next/static/media/9c4f34569c9b36ca.woff2 +0 -0
  98. package/preview/.next/static/media/ae9ae6716d4f8bf8.woff2 +0 -0
  99. package/preview/.next/static/media/b1db3e28af9ef94a.woff2 +0 -0
  100. package/preview/.next/static/media/b967158bc7d7a9fb.woff2 +0 -0
  101. package/preview/.next/static/media/c0f5ec5bbf5913b7.woff2 +0 -0
  102. package/preview/.next/static/media/d1d9458b69004127.woff2 +0 -0
  103. package/preview/.next/trace +7 -0
  104. package/preview/yarn.lock +1434 -0
  105. package/.eslintrc.js +0 -4
  106. package/dist/index.d.ts +0 -2
  107. package/dist/utils/check-directory-exist.d.ts +0 -1
  108. package/dist/utils/check-directory-exist.js +0 -9
  109. package/dist/utils/check-empty-directory.d.ts +0 -1
  110. package/dist/utils/check-empty-directory.js +0 -12
  111. package/dist/utils/contants.d.ts +0 -10
  112. package/dist/utils/contants.js +0 -18
  113. package/dist/utils/copy-files.d.ts +0 -1
  114. package/dist/utils/copy-files.js +0 -30
  115. package/dist/utils/watcher.d.ts +0 -2
  116. package/dist/utils/watcher.js +0 -22
  117. package/tsconfig.json +0 -36
@@ -0,0 +1,4402 @@
1
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
2
+ [727],
3
+ {
4
+ 6652: function (e, t, n) {
5
+ 'use strict';
6
+ function a(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
7
+ return function (a) {
8
+ if ((null == e || e(a), !1 === n || !a.defaultPrevented))
9
+ return null == t ? void 0 : t(a);
10
+ };
11
+ }
12
+ n.d(t, {
13
+ M: function () {
14
+ return a;
15
+ },
16
+ });
17
+ },
18
+ 6413: function (e, t, n) {
19
+ 'use strict';
20
+ n.d(t, {
21
+ VY: function () {
22
+ return I;
23
+ },
24
+ fC: function () {
25
+ return T;
26
+ },
27
+ xz: function () {
28
+ return R;
29
+ },
30
+ });
31
+ var a = n(7462),
32
+ r = n(7294),
33
+ o = n(6652),
34
+ i = n(2707),
35
+ s = n(9920),
36
+ l = n(9563),
37
+ u = n(7255),
38
+ c = n(192),
39
+ d = n(3935);
40
+ let p = (e) => {
41
+ let { present: t, children: n } = e,
42
+ a = (function (e) {
43
+ var t;
44
+ let [n, a] = (0, r.useState)(),
45
+ o = (0, r.useRef)({}),
46
+ i = (0, r.useRef)(e),
47
+ s = (0, r.useRef)('none'),
48
+ [u, c] =
49
+ ((t = {
50
+ mounted: {
51
+ UNMOUNT: 'unmounted',
52
+ ANIMATION_OUT: 'unmountSuspended',
53
+ },
54
+ unmountSuspended: {
55
+ MOUNT: 'mounted',
56
+ ANIMATION_END: 'unmounted',
57
+ },
58
+ unmounted: { MOUNT: 'mounted' },
59
+ }),
60
+ (0, r.useReducer)(
61
+ (e, n) => {
62
+ let a = t[e][n];
63
+ return null != a ? a : e;
64
+ },
65
+ e ? 'mounted' : 'unmounted',
66
+ ));
67
+ return (
68
+ (0, r.useEffect)(() => {
69
+ let e = g(o.current);
70
+ s.current = 'mounted' === u ? e : 'none';
71
+ }, [u]),
72
+ (0, l.b)(() => {
73
+ let t = o.current,
74
+ n = i.current;
75
+ if (n !== e) {
76
+ let a = s.current,
77
+ r = g(t);
78
+ e
79
+ ? c('MOUNT')
80
+ : 'none' === r ||
81
+ (null == t ? void 0 : t.display) === 'none'
82
+ ? c('UNMOUNT')
83
+ : n && a !== r
84
+ ? c('ANIMATION_OUT')
85
+ : c('UNMOUNT'),
86
+ (i.current = e);
87
+ }
88
+ }, [e, c]),
89
+ (0, l.b)(() => {
90
+ if (n) {
91
+ let e = (e) => {
92
+ let t = g(o.current),
93
+ a = t.includes(e.animationName);
94
+ e.target === n &&
95
+ a &&
96
+ (0, d.flushSync)(() => c('ANIMATION_END'));
97
+ },
98
+ t = (e) => {
99
+ e.target === n && (s.current = g(o.current));
100
+ };
101
+ return (
102
+ n.addEventListener('animationstart', t),
103
+ n.addEventListener('animationcancel', e),
104
+ n.addEventListener('animationend', e),
105
+ () => {
106
+ n.removeEventListener('animationstart', t),
107
+ n.removeEventListener('animationcancel', e),
108
+ n.removeEventListener('animationend', e);
109
+ }
110
+ );
111
+ }
112
+ c('ANIMATION_END');
113
+ }, [n, c]),
114
+ {
115
+ isPresent: ['mounted', 'unmountSuspended'].includes(u),
116
+ ref: (0, r.useCallback)((e) => {
117
+ e && (o.current = getComputedStyle(e)), a(e);
118
+ }, []),
119
+ }
120
+ );
121
+ })(t),
122
+ o =
123
+ 'function' == typeof n
124
+ ? n({ present: a.isPresent })
125
+ : r.Children.only(n),
126
+ i = (0, u.e)(a.ref, o.ref);
127
+ return 'function' == typeof n || a.isPresent
128
+ ? (0, r.cloneElement)(o, { ref: i })
129
+ : null;
130
+ };
131
+ function g(e) {
132
+ return (null == e ? void 0 : e.animationName) || 'none';
133
+ }
134
+ p.displayName = 'Presence';
135
+ var f = n(6195);
136
+ let m = 'Collapsible',
137
+ [b, h] = (0, i.b)(m),
138
+ [y, v] = b(m),
139
+ E = (0, r.forwardRef)((e, t) => {
140
+ let {
141
+ __scopeCollapsible: n,
142
+ open: o,
143
+ defaultOpen: i,
144
+ disabled: l,
145
+ onOpenChange: u,
146
+ ...d
147
+ } = e,
148
+ [p = !1, g] = (0, s.T)({ prop: o, defaultProp: i, onChange: u });
149
+ return (0, r.createElement)(
150
+ y,
151
+ {
152
+ scope: n,
153
+ disabled: l,
154
+ contentId: (0, f.M)(),
155
+ open: p,
156
+ onOpenToggle: (0, r.useCallback)(() => g((e) => !e), [g]),
157
+ },
158
+ (0, r.createElement)(
159
+ c.WV.div,
160
+ (0, a.Z)(
161
+ { 'data-state': _(p), 'data-disabled': l ? '' : void 0 },
162
+ d,
163
+ { ref: t },
164
+ ),
165
+ ),
166
+ );
167
+ }),
168
+ k = (0, r.forwardRef)((e, t) => {
169
+ let { __scopeCollapsible: n, ...i } = e,
170
+ s = v('CollapsibleTrigger', n);
171
+ return (0, r.createElement)(
172
+ c.WV.button,
173
+ (0, a.Z)(
174
+ {
175
+ 'type': 'button',
176
+ 'aria-controls': s.contentId,
177
+ 'aria-expanded': s.open || !1,
178
+ 'data-state': _(s.open),
179
+ 'data-disabled': s.disabled ? '' : void 0,
180
+ 'disabled': s.disabled,
181
+ },
182
+ i,
183
+ { ref: t, onClick: (0, o.M)(e.onClick, s.onOpenToggle) },
184
+ ),
185
+ );
186
+ }),
187
+ S = 'CollapsibleContent',
188
+ w = (0, r.forwardRef)((e, t) => {
189
+ let { forceMount: n, ...o } = e,
190
+ i = v(S, e.__scopeCollapsible);
191
+ return (0, r.createElement)(
192
+ p,
193
+ { present: n || i.open },
194
+ ({ present: e }) =>
195
+ (0, r.createElement)(A, (0, a.Z)({}, o, { ref: t, present: e })),
196
+ );
197
+ }),
198
+ A = (0, r.forwardRef)((e, t) => {
199
+ let { __scopeCollapsible: n, present: o, children: i, ...s } = e,
200
+ d = v(S, n),
201
+ [p, g] = (0, r.useState)(o),
202
+ f = (0, r.useRef)(null),
203
+ m = (0, u.e)(t, f),
204
+ b = (0, r.useRef)(0),
205
+ h = b.current,
206
+ y = (0, r.useRef)(0),
207
+ E = y.current,
208
+ k = d.open || p,
209
+ w = (0, r.useRef)(k),
210
+ A = (0, r.useRef)();
211
+ return (
212
+ (0, r.useEffect)(() => {
213
+ let e = requestAnimationFrame(() => (w.current = !1));
214
+ return () => cancelAnimationFrame(e);
215
+ }, []),
216
+ (0, l.b)(() => {
217
+ let e = f.current;
218
+ if (e) {
219
+ (A.current = A.current || {
220
+ transitionDuration: e.style.transitionDuration,
221
+ animationName: e.style.animationName,
222
+ }),
223
+ (e.style.transitionDuration = '0s'),
224
+ (e.style.animationName = 'none');
225
+ let t = e.getBoundingClientRect();
226
+ (b.current = t.height),
227
+ (y.current = t.width),
228
+ w.current ||
229
+ ((e.style.transitionDuration =
230
+ A.current.transitionDuration),
231
+ (e.style.animationName = A.current.animationName)),
232
+ g(o);
233
+ }
234
+ }, [d.open, o]),
235
+ (0, r.createElement)(
236
+ c.WV.div,
237
+ (0, a.Z)(
238
+ {
239
+ 'data-state': _(d.open),
240
+ 'data-disabled': d.disabled ? '' : void 0,
241
+ 'id': d.contentId,
242
+ 'hidden': !k,
243
+ },
244
+ s,
245
+ {
246
+ ref: m,
247
+ style: {
248
+ '--radix-collapsible-content-height': h ? `${h}px` : void 0,
249
+ '--radix-collapsible-content-width': E ? `${E}px` : void 0,
250
+ ...e.style,
251
+ },
252
+ },
253
+ ),
254
+ k && i,
255
+ )
256
+ );
257
+ });
258
+ function _(e) {
259
+ return e ? 'open' : 'closed';
260
+ }
261
+ let T = E,
262
+ R = k,
263
+ I = w;
264
+ },
265
+ 7255: function (e, t, n) {
266
+ 'use strict';
267
+ n.d(t, {
268
+ F: function () {
269
+ return r;
270
+ },
271
+ e: function () {
272
+ return o;
273
+ },
274
+ });
275
+ var a = n(7294);
276
+ function r(...e) {
277
+ return (t) =>
278
+ e.forEach((e) => {
279
+ var n;
280
+ 'function' == typeof (n = e) ? n(t) : null != n && (n.current = t);
281
+ });
282
+ }
283
+ function o(...e) {
284
+ return (0, a.useCallback)(r(...e), e);
285
+ }
286
+ },
287
+ 2707: function (e, t, n) {
288
+ 'use strict';
289
+ n.d(t, {
290
+ b: function () {
291
+ return r;
292
+ },
293
+ });
294
+ var a = n(7294);
295
+ function r(e, t = []) {
296
+ let n = [],
297
+ r = () => {
298
+ let t = n.map((e) => (0, a.createContext)(e));
299
+ return function (n) {
300
+ let r = (null == n ? void 0 : n[e]) || t;
301
+ return (0, a.useMemo)(
302
+ () => ({ [`__scope${e}`]: { ...n, [e]: r } }),
303
+ [n, r],
304
+ );
305
+ };
306
+ };
307
+ return (
308
+ (r.scopeName = e),
309
+ [
310
+ function (t, r) {
311
+ let o = (0, a.createContext)(r),
312
+ i = n.length;
313
+ function s(t) {
314
+ let { scope: n, children: r, ...s } = t,
315
+ l = (null == n ? void 0 : n[e][i]) || o,
316
+ u = (0, a.useMemo)(() => s, Object.values(s));
317
+ return (0, a.createElement)(l.Provider, { value: u }, r);
318
+ }
319
+ return (
320
+ (n = [...n, r]),
321
+ (s.displayName = t + 'Provider'),
322
+ [
323
+ s,
324
+ function (n, s) {
325
+ let l = (null == s ? void 0 : s[e][i]) || o,
326
+ u = (0, a.useContext)(l);
327
+ if (u) return u;
328
+ if (void 0 !== r) return r;
329
+ throw Error(`\`${n}\` must be used within \`${t}\``);
330
+ },
331
+ ]
332
+ );
333
+ },
334
+ (function (...e) {
335
+ let t = e[0];
336
+ if (1 === e.length) return t;
337
+ let n = () => {
338
+ let n = e.map((e) => ({
339
+ useScope: e(),
340
+ scopeName: e.scopeName,
341
+ }));
342
+ return function (e) {
343
+ let r = n.reduce((t, { useScope: n, scopeName: a }) => {
344
+ let r = n(e),
345
+ o = r[`__scope${a}`];
346
+ return { ...t, ...o };
347
+ }, {});
348
+ return (0, a.useMemo)(
349
+ () => ({ [`__scope${t.scopeName}`]: r }),
350
+ [r],
351
+ );
352
+ };
353
+ };
354
+ return (n.scopeName = t.scopeName), n;
355
+ })(r, ...t),
356
+ ]
357
+ );
358
+ }
359
+ },
360
+ 6195: function (e, t, n) {
361
+ 'use strict';
362
+ n.d(t, {
363
+ M: function () {
364
+ return l;
365
+ },
366
+ });
367
+ var a,
368
+ r = n(7294),
369
+ o = n(9563);
370
+ let i = (a || (a = n.t(r, 2)))['useId'.toString()] || (() => void 0),
371
+ s = 0;
372
+ function l(e) {
373
+ let [t, n] = r.useState(i());
374
+ return (
375
+ (0, o.b)(() => {
376
+ e || n((e) => (null != e ? e : String(s++)));
377
+ }, [e]),
378
+ e || (t ? `radix-${t}` : '')
379
+ );
380
+ }
381
+ },
382
+ 192: function (e, t, n) {
383
+ 'use strict';
384
+ n.d(t, {
385
+ WV: function () {
386
+ return i;
387
+ },
388
+ });
389
+ var a = n(7462),
390
+ r = n(7294);
391
+ n(3935);
392
+ var o = n(8820);
393
+ let i = [
394
+ 'a',
395
+ 'button',
396
+ 'div',
397
+ 'h2',
398
+ 'h3',
399
+ 'img',
400
+ 'label',
401
+ 'li',
402
+ 'nav',
403
+ 'ol',
404
+ 'p',
405
+ 'span',
406
+ 'svg',
407
+ 'ul',
408
+ ].reduce((e, t) => {
409
+ let n = (0, r.forwardRef)((e, n) => {
410
+ let { asChild: i, ...s } = e,
411
+ l = i ? o.g7 : t;
412
+ return (
413
+ (0, r.useEffect)(() => {
414
+ window[Symbol.for('radix-ui')] = !0;
415
+ }, []),
416
+ (0, r.createElement)(l, (0, a.Z)({}, s, { ref: n }))
417
+ );
418
+ });
419
+ return (n.displayName = `Primitive.${t}`), { ...e, [t]: n };
420
+ }, {});
421
+ },
422
+ 8820: function (e, t, n) {
423
+ 'use strict';
424
+ n.d(t, {
425
+ A4: function () {
426
+ return l;
427
+ },
428
+ g7: function () {
429
+ return i;
430
+ },
431
+ });
432
+ var a = n(7462),
433
+ r = n(7294),
434
+ o = n(7255);
435
+ let i = (0, r.forwardRef)((e, t) => {
436
+ let { children: n, ...o } = e,
437
+ i = r.Children.toArray(n),
438
+ l = i.find(u);
439
+ if (l) {
440
+ let c = l.props.children,
441
+ d = i.map((e) =>
442
+ e !== l
443
+ ? e
444
+ : r.Children.count(c) > 1
445
+ ? r.Children.only(null)
446
+ : (0, r.isValidElement)(c)
447
+ ? c.props.children
448
+ : null,
449
+ );
450
+ return (0, r.createElement)(
451
+ s,
452
+ (0, a.Z)({}, o, { ref: t }),
453
+ (0, r.isValidElement)(c) ? (0, r.cloneElement)(c, void 0, d) : null,
454
+ );
455
+ }
456
+ return (0, r.createElement)(s, (0, a.Z)({}, o, { ref: t }), n);
457
+ });
458
+ i.displayName = 'Slot';
459
+ let s = (0, r.forwardRef)((e, t) => {
460
+ let { children: n, ...a } = e;
461
+ return (0, r.isValidElement)(n)
462
+ ? (0, r.cloneElement)(n, {
463
+ ...(function (e, t) {
464
+ let n = { ...t };
465
+ for (let a in t) {
466
+ let r = e[a],
467
+ o = t[a],
468
+ i = /^on[A-Z]/.test(a);
469
+ i
470
+ ? r && o
471
+ ? (n[a] = (...e) => {
472
+ o(...e), r(...e);
473
+ })
474
+ : r && (n[a] = r)
475
+ : 'style' === a
476
+ ? (n[a] = { ...r, ...o })
477
+ : 'className' === a &&
478
+ (n[a] = [r, o].filter(Boolean).join(' '));
479
+ }
480
+ return { ...e, ...n };
481
+ })(a, n.props),
482
+ ref: (0, o.F)(t, n.ref),
483
+ })
484
+ : r.Children.count(n) > 1
485
+ ? r.Children.only(null)
486
+ : null;
487
+ });
488
+ s.displayName = 'SlotClone';
489
+ let l = ({ children: e }) => (0, r.createElement)(r.Fragment, null, e);
490
+ function u(e) {
491
+ return (0, r.isValidElement)(e) && e.type === l;
492
+ }
493
+ },
494
+ 3273: function (e, t, n) {
495
+ 'use strict';
496
+ n.d(t, {
497
+ ck: function () {
498
+ return q;
499
+ },
500
+ fC: function () {
501
+ return W;
502
+ },
503
+ });
504
+ var a = n(7462),
505
+ r = n(7294),
506
+ o = n(2707),
507
+ i = n(192),
508
+ s = n(6652),
509
+ l = n(7255),
510
+ u = n(8820),
511
+ c = n(6195),
512
+ d = n(5355),
513
+ p = n(9920);
514
+ let g = (0, r.createContext)(void 0);
515
+ function f(e) {
516
+ let t = (0, r.useContext)(g);
517
+ return e || t || 'ltr';
518
+ }
519
+ let m = 'rovingFocusGroup.onEntryFocus',
520
+ b = { bubbles: !1, cancelable: !0 },
521
+ h = 'RovingFocusGroup',
522
+ [y, v, E] = (function (e) {
523
+ let t = e + 'CollectionProvider',
524
+ [n, a] = (0, o.b)(t),
525
+ [i, s] = n(t, {
526
+ collectionRef: { current: null },
527
+ itemMap: new Map(),
528
+ }),
529
+ c = (e) => {
530
+ let { scope: t, children: n } = e,
531
+ a = r.useRef(null),
532
+ o = r.useRef(new Map()).current;
533
+ return r.createElement(
534
+ i,
535
+ { scope: t, itemMap: o, collectionRef: a },
536
+ n,
537
+ );
538
+ },
539
+ d = e + 'CollectionSlot',
540
+ p = r.forwardRef((e, t) => {
541
+ let { scope: n, children: a } = e,
542
+ o = s(d, n),
543
+ i = (0, l.e)(t, o.collectionRef);
544
+ return r.createElement(u.g7, { ref: i }, a);
545
+ }),
546
+ g = e + 'CollectionItemSlot',
547
+ f = 'data-radix-collection-item',
548
+ m = r.forwardRef((e, t) => {
549
+ let { scope: n, children: a, ...o } = e,
550
+ i = r.useRef(null),
551
+ c = (0, l.e)(t, i),
552
+ d = s(g, n);
553
+ return (
554
+ r.useEffect(
555
+ () => (
556
+ d.itemMap.set(i, { ref: i, ...o }),
557
+ () => void d.itemMap.delete(i)
558
+ ),
559
+ ),
560
+ r.createElement(u.g7, { [f]: '', ref: c }, a)
561
+ );
562
+ });
563
+ return [
564
+ { Provider: c, Slot: p, ItemSlot: m },
565
+ function (t) {
566
+ let n = s(e + 'CollectionConsumer', t),
567
+ a = r.useCallback(() => {
568
+ let e = n.collectionRef.current;
569
+ if (!e) return [];
570
+ let t = Array.from(e.querySelectorAll(`[${f}]`)),
571
+ a = Array.from(n.itemMap.values()),
572
+ r = a.sort(
573
+ (e, n) =>
574
+ t.indexOf(e.ref.current) - t.indexOf(n.ref.current),
575
+ );
576
+ return r;
577
+ }, [n.collectionRef, n.itemMap]);
578
+ return a;
579
+ },
580
+ a,
581
+ ];
582
+ })(h),
583
+ [k, S] = (0, o.b)(h, [E]),
584
+ [w, A] = k(h),
585
+ _ = (0, r.forwardRef)((e, t) =>
586
+ (0, r.createElement)(
587
+ y.Provider,
588
+ { scope: e.__scopeRovingFocusGroup },
589
+ (0, r.createElement)(
590
+ y.Slot,
591
+ { scope: e.__scopeRovingFocusGroup },
592
+ (0, r.createElement)(T, (0, a.Z)({}, e, { ref: t })),
593
+ ),
594
+ ),
595
+ ),
596
+ T = (0, r.forwardRef)((e, t) => {
597
+ let {
598
+ __scopeRovingFocusGroup: n,
599
+ orientation: o,
600
+ loop: u = !1,
601
+ dir: c,
602
+ currentTabStopId: g,
603
+ defaultCurrentTabStopId: h,
604
+ onCurrentTabStopIdChange: y,
605
+ onEntryFocus: E,
606
+ ...k
607
+ } = e,
608
+ S = (0, r.useRef)(null),
609
+ A = (0, l.e)(t, S),
610
+ _ = f(c),
611
+ [T = null, R] = (0, p.T)({ prop: g, defaultProp: h, onChange: y }),
612
+ [I, O] = (0, r.useState)(!1),
613
+ N = (0, d.W)(E),
614
+ F = v(n),
615
+ C = (0, r.useRef)(!1),
616
+ [L, D] = (0, r.useState)(0);
617
+ return (
618
+ (0, r.useEffect)(() => {
619
+ let e = S.current;
620
+ if (e)
621
+ return (
622
+ e.addEventListener(m, N), () => e.removeEventListener(m, N)
623
+ );
624
+ }, [N]),
625
+ (0, r.createElement)(
626
+ w,
627
+ {
628
+ scope: n,
629
+ orientation: o,
630
+ dir: _,
631
+ loop: u,
632
+ currentTabStopId: T,
633
+ onItemFocus: (0, r.useCallback)((e) => R(e), [R]),
634
+ onItemShiftTab: (0, r.useCallback)(() => O(!0), []),
635
+ onFocusableItemAdd: (0, r.useCallback)(
636
+ () => D((e) => e + 1),
637
+ [],
638
+ ),
639
+ onFocusableItemRemove: (0, r.useCallback)(
640
+ () => D((e) => e - 1),
641
+ [],
642
+ ),
643
+ },
644
+ (0, r.createElement)(
645
+ i.WV.div,
646
+ (0, a.Z)(
647
+ { 'tabIndex': I || 0 === L ? -1 : 0, 'data-orientation': o },
648
+ k,
649
+ {
650
+ ref: A,
651
+ style: { outline: 'none', ...e.style },
652
+ onMouseDown: (0, s.M)(e.onMouseDown, () => {
653
+ C.current = !0;
654
+ }),
655
+ onFocus: (0, s.M)(e.onFocus, (e) => {
656
+ let t = !C.current;
657
+ if (e.target === e.currentTarget && t && !I) {
658
+ let n = new CustomEvent(m, b);
659
+ if (
660
+ (e.currentTarget.dispatchEvent(n),
661
+ !n.defaultPrevented)
662
+ ) {
663
+ let a = F().filter((e) => e.focusable),
664
+ r = a.find((e) => e.active),
665
+ o = a.find((e) => e.id === T),
666
+ i = [r, o, ...a].filter(Boolean),
667
+ s = i.map((e) => e.ref.current);
668
+ x(s);
669
+ }
670
+ }
671
+ C.current = !1;
672
+ }),
673
+ onBlur: (0, s.M)(e.onBlur, () => O(!1)),
674
+ },
675
+ ),
676
+ ),
677
+ )
678
+ );
679
+ }),
680
+ R = (0, r.forwardRef)((e, t) => {
681
+ let {
682
+ __scopeRovingFocusGroup: n,
683
+ focusable: o = !0,
684
+ active: l = !1,
685
+ ...u
686
+ } = e,
687
+ d = (0, c.M)(),
688
+ p = A('RovingFocusGroupItem', n),
689
+ g = p.currentTabStopId === d,
690
+ f = v(n),
691
+ { onFocusableItemAdd: m, onFocusableItemRemove: b } = p;
692
+ return (
693
+ (0, r.useEffect)(() => {
694
+ if (o) return m(), () => b();
695
+ }, [o, m, b]),
696
+ (0, r.createElement)(
697
+ y.ItemSlot,
698
+ { scope: n, id: d, focusable: o, active: l },
699
+ (0, r.createElement)(
700
+ i.WV.span,
701
+ (0, a.Z)(
702
+ { 'tabIndex': g ? 0 : -1, 'data-orientation': p.orientation },
703
+ u,
704
+ {
705
+ ref: t,
706
+ onMouseDown: (0, s.M)(e.onMouseDown, (e) => {
707
+ o ? p.onItemFocus(d) : e.preventDefault();
708
+ }),
709
+ onFocus: (0, s.M)(e.onFocus, () => p.onItemFocus(d)),
710
+ onKeyDown: (0, s.M)(e.onKeyDown, (e) => {
711
+ if ('Tab' === e.key && e.shiftKey) {
712
+ p.onItemShiftTab();
713
+ return;
714
+ }
715
+ if (e.target !== e.currentTarget) return;
716
+ let t = (function (e, t, n) {
717
+ var a;
718
+ let r =
719
+ ((a = e.key),
720
+ 'rtl' !== n
721
+ ? a
722
+ : 'ArrowLeft' === a
723
+ ? 'ArrowRight'
724
+ : 'ArrowRight' === a
725
+ ? 'ArrowLeft'
726
+ : a);
727
+ if (
728
+ !(
729
+ 'vertical' === t &&
730
+ ['ArrowLeft', 'ArrowRight'].includes(r)
731
+ ) &&
732
+ !(
733
+ 'horizontal' === t &&
734
+ ['ArrowUp', 'ArrowDown'].includes(r)
735
+ )
736
+ )
737
+ return I[r];
738
+ })(e, p.orientation, p.dir);
739
+ if (void 0 !== t) {
740
+ e.preventDefault();
741
+ let n = f().filter((e) => e.focusable),
742
+ a = n.map((e) => e.ref.current);
743
+ if ('last' === t) a.reverse();
744
+ else if ('prev' === t || 'next' === t) {
745
+ var r, o;
746
+ 'prev' === t && a.reverse();
747
+ let i = a.indexOf(e.currentTarget);
748
+ a = p.loop
749
+ ? ((r = a),
750
+ (o = i + 1),
751
+ r.map((e, t) => r[(o + t) % r.length]))
752
+ : a.slice(i + 1);
753
+ }
754
+ setTimeout(() => x(a));
755
+ }
756
+ }),
757
+ },
758
+ ),
759
+ ),
760
+ )
761
+ );
762
+ }),
763
+ I = {
764
+ ArrowLeft: 'prev',
765
+ ArrowUp: 'prev',
766
+ ArrowRight: 'next',
767
+ ArrowDown: 'next',
768
+ PageUp: 'first',
769
+ Home: 'first',
770
+ PageDown: 'last',
771
+ End: 'last',
772
+ };
773
+ function x(e) {
774
+ let t = document.activeElement;
775
+ for (let n of e)
776
+ if (n === t || (n.focus(), document.activeElement !== t)) return;
777
+ }
778
+ let O = (0, r.forwardRef)((e, t) => {
779
+ let {
780
+ pressed: n,
781
+ defaultPressed: o = !1,
782
+ onPressedChange: l,
783
+ ...u
784
+ } = e,
785
+ [c = !1, d] = (0, p.T)({ prop: n, onChange: l, defaultProp: o });
786
+ return (0, r.createElement)(
787
+ i.WV.button,
788
+ (0, a.Z)(
789
+ {
790
+ 'type': 'button',
791
+ 'aria-pressed': c,
792
+ 'data-state': c ? 'on' : 'off',
793
+ 'data-disabled': e.disabled ? '' : void 0,
794
+ },
795
+ u,
796
+ {
797
+ ref: t,
798
+ onClick: (0, s.M)(e.onClick, () => {
799
+ e.disabled || d(!c);
800
+ }),
801
+ },
802
+ ),
803
+ );
804
+ }),
805
+ N = 'ToggleGroup',
806
+ [F, C] = (0, o.b)(N, [S]),
807
+ L = S(),
808
+ D = r.forwardRef((e, t) => {
809
+ let { type: n, ...o } = e;
810
+ if ('single' === n)
811
+ return r.createElement(M, (0, a.Z)({}, o, { ref: t }));
812
+ if ('multiple' === n)
813
+ return r.createElement($, (0, a.Z)({}, o, { ref: t }));
814
+ throw Error(`Missing prop \`type\` expected on \`${N}\``);
815
+ }),
816
+ [P, B] = F(N),
817
+ M = r.forwardRef((e, t) => {
818
+ let {
819
+ value: n,
820
+ defaultValue: o,
821
+ onValueChange: i = () => {},
822
+ ...s
823
+ } = e,
824
+ [l, u] = (0, p.T)({ prop: n, defaultProp: o, onChange: i });
825
+ return r.createElement(
826
+ P,
827
+ {
828
+ scope: e.__scopeToggleGroup,
829
+ type: 'single',
830
+ value: l ? [l] : [],
831
+ onItemActivate: u,
832
+ onItemDeactivate: r.useCallback(() => u(''), [u]),
833
+ },
834
+ r.createElement(j, (0, a.Z)({}, s, { ref: t })),
835
+ );
836
+ }),
837
+ $ = r.forwardRef((e, t) => {
838
+ let {
839
+ value: n,
840
+ defaultValue: o,
841
+ onValueChange: i = () => {},
842
+ ...s
843
+ } = e,
844
+ [l = [], u] = (0, p.T)({ prop: n, defaultProp: o, onChange: i }),
845
+ c = r.useCallback((e) => u((t = []) => [...t, e]), [u]),
846
+ d = r.useCallback(
847
+ (e) => u((t = []) => t.filter((t) => t !== e)),
848
+ [u],
849
+ );
850
+ return r.createElement(
851
+ P,
852
+ {
853
+ scope: e.__scopeToggleGroup,
854
+ type: 'multiple',
855
+ value: l,
856
+ onItemActivate: c,
857
+ onItemDeactivate: d,
858
+ },
859
+ r.createElement(j, (0, a.Z)({}, s, { ref: t })),
860
+ );
861
+ }),
862
+ [G, U] = F(N),
863
+ j = r.forwardRef((e, t) => {
864
+ let {
865
+ __scopeToggleGroup: n,
866
+ disabled: o = !1,
867
+ rovingFocus: s = !0,
868
+ orientation: l,
869
+ dir: u,
870
+ loop: c = !0,
871
+ ...d
872
+ } = e,
873
+ p = L(n),
874
+ g = f(u),
875
+ m = { role: 'group', dir: g, ...d };
876
+ return r.createElement(
877
+ G,
878
+ { scope: n, rovingFocus: s, disabled: o },
879
+ s
880
+ ? r.createElement(
881
+ _,
882
+ (0, a.Z)({ asChild: !0 }, p, {
883
+ orientation: l,
884
+ dir: g,
885
+ loop: c,
886
+ }),
887
+ r.createElement(i.WV.div, (0, a.Z)({}, m, { ref: t })),
888
+ )
889
+ : r.createElement(i.WV.div, (0, a.Z)({}, m, { ref: t })),
890
+ );
891
+ }),
892
+ z = 'ToggleGroupItem',
893
+ H = r.forwardRef((e, t) => {
894
+ let n = B(z, e.__scopeToggleGroup),
895
+ o = U(z, e.__scopeToggleGroup),
896
+ i = L(e.__scopeToggleGroup),
897
+ s = n.value.includes(e.value),
898
+ l = o.disabled || e.disabled,
899
+ u = { ...e, pressed: s, disabled: l },
900
+ c = r.useRef(null);
901
+ return o.rovingFocus
902
+ ? r.createElement(
903
+ R,
904
+ (0, a.Z)({ asChild: !0 }, i, {
905
+ focusable: !l,
906
+ active: s,
907
+ ref: c,
908
+ }),
909
+ r.createElement(Z, (0, a.Z)({}, u, { ref: t })),
910
+ )
911
+ : r.createElement(Z, (0, a.Z)({}, u, { ref: t }));
912
+ }),
913
+ Z = r.forwardRef((e, t) => {
914
+ let { __scopeToggleGroup: n, value: o, ...i } = e,
915
+ s = B(z, n),
916
+ l = {
917
+ 'role': 'radio',
918
+ 'aria-checked': e.pressed,
919
+ 'aria-pressed': void 0,
920
+ },
921
+ u = 'single' === s.type ? l : void 0;
922
+ return r.createElement(
923
+ O,
924
+ (0, a.Z)({}, u, i, {
925
+ ref: t,
926
+ onPressedChange(e) {
927
+ e ? s.onItemActivate(o) : s.onItemDeactivate(o);
928
+ },
929
+ }),
930
+ );
931
+ }),
932
+ W = D,
933
+ q = H;
934
+ },
935
+ 5355: function (e, t, n) {
936
+ 'use strict';
937
+ n.d(t, {
938
+ W: function () {
939
+ return r;
940
+ },
941
+ });
942
+ var a = n(7294);
943
+ function r(e) {
944
+ let t = (0, a.useRef)(e);
945
+ return (
946
+ (0, a.useEffect)(() => {
947
+ t.current = e;
948
+ }),
949
+ (0, a.useMemo)(
950
+ () =>
951
+ (...e) => {
952
+ var n;
953
+ return null === (n = t.current) || void 0 === n
954
+ ? void 0
955
+ : n.call(t, ...e);
956
+ },
957
+ [],
958
+ )
959
+ );
960
+ }
961
+ },
962
+ 9920: function (e, t, n) {
963
+ 'use strict';
964
+ n.d(t, {
965
+ T: function () {
966
+ return o;
967
+ },
968
+ });
969
+ var a = n(7294),
970
+ r = n(5355);
971
+ function o({ prop: e, defaultProp: t, onChange: n = () => {} }) {
972
+ let [o, i] = (function ({ defaultProp: e, onChange: t }) {
973
+ let n = (0, a.useState)(e),
974
+ [o] = n,
975
+ i = (0, a.useRef)(o),
976
+ s = (0, r.W)(t);
977
+ return (
978
+ (0, a.useEffect)(() => {
979
+ i.current !== o && (s(o), (i.current = o));
980
+ }, [o, i, s]),
981
+ n
982
+ );
983
+ })({ defaultProp: t, onChange: n }),
984
+ s = void 0 !== e,
985
+ l = (0, r.W)(n),
986
+ u = (0, a.useCallback)(
987
+ (t) => {
988
+ if (s) {
989
+ let n = 'function' == typeof t ? t(e) : t;
990
+ n !== e && l(n);
991
+ } else i(t);
992
+ },
993
+ [s, e, i, l],
994
+ );
995
+ return [s ? e : o, u];
996
+ }
997
+ },
998
+ 9563: function (e, t, n) {
999
+ 'use strict';
1000
+ n.d(t, {
1001
+ b: function () {
1002
+ return r;
1003
+ },
1004
+ });
1005
+ var a = n(7294);
1006
+ let r = Boolean(null == globalThis ? void 0 : globalThis.document)
1007
+ ? a.useLayoutEffect
1008
+ : () => {};
1009
+ },
1010
+ 227: function (e, t) {
1011
+ 'use strict';
1012
+ Object.defineProperty(t, '__esModule', { value: !0 }),
1013
+ (t.getDomainLocale = function (e, t, n, a) {
1014
+ return !1;
1015
+ }),
1016
+ ('function' == typeof t.default ||
1017
+ ('object' == typeof t.default && null !== t.default)) &&
1018
+ void 0 === t.default.__esModule &&
1019
+ (Object.defineProperty(t.default, '__esModule', { value: !0 }),
1020
+ Object.assign(t.default, t),
1021
+ (e.exports = t.default));
1022
+ },
1023
+ 1551: function (e, t, n) {
1024
+ 'use strict';
1025
+ Object.defineProperty(t, '__esModule', { value: !0 }),
1026
+ (t.default = void 0);
1027
+ var a = n(2648).Z,
1028
+ r = n(7273).Z,
1029
+ o = a(n(7294)),
1030
+ i = n(1003),
1031
+ s = n(7795),
1032
+ l = n(4465),
1033
+ u = n(2692),
1034
+ c = n(8245),
1035
+ d = n(9246),
1036
+ p = n(227),
1037
+ g = n(3468);
1038
+ let f = new Set();
1039
+ function m(e, t, n, a) {
1040
+ if (i.isLocalURL(t)) {
1041
+ if (!a.bypassPrefetchedCheck) {
1042
+ let r =
1043
+ void 0 !== a.locale
1044
+ ? a.locale
1045
+ : 'locale' in e
1046
+ ? e.locale
1047
+ : void 0,
1048
+ o = t + '%' + n + '%' + r;
1049
+ if (f.has(o)) return;
1050
+ f.add(o);
1051
+ }
1052
+ Promise.resolve(e.prefetch(t, n, a)).catch((e) => {});
1053
+ }
1054
+ }
1055
+ function b(e) {
1056
+ return 'string' == typeof e ? e : s.formatUrl(e);
1057
+ }
1058
+ let h = o.default.forwardRef(function (e, t) {
1059
+ let n, a;
1060
+ let {
1061
+ href: s,
1062
+ as: f,
1063
+ children: h,
1064
+ prefetch: y,
1065
+ passHref: v,
1066
+ replace: E,
1067
+ shallow: k,
1068
+ scroll: S,
1069
+ locale: w,
1070
+ onClick: A,
1071
+ onMouseEnter: _,
1072
+ onTouchStart: T,
1073
+ legacyBehavior: R = !0 !== Boolean(!0),
1074
+ } = e,
1075
+ I = r(e, [
1076
+ 'href',
1077
+ 'as',
1078
+ 'children',
1079
+ 'prefetch',
1080
+ 'passHref',
1081
+ 'replace',
1082
+ 'shallow',
1083
+ 'scroll',
1084
+ 'locale',
1085
+ 'onClick',
1086
+ 'onMouseEnter',
1087
+ 'onTouchStart',
1088
+ 'legacyBehavior',
1089
+ ]);
1090
+ (n = h),
1091
+ R &&
1092
+ ('string' == typeof n || 'number' == typeof n) &&
1093
+ (n = o.default.createElement('a', null, n));
1094
+ let x = !1 !== y,
1095
+ O = o.default.useContext(u.RouterContext),
1096
+ N = o.default.useContext(c.AppRouterContext),
1097
+ F = null != O ? O : N,
1098
+ C = !O,
1099
+ { href: L, as: D } = o.default.useMemo(() => {
1100
+ if (!O) {
1101
+ let e = b(s);
1102
+ return { href: e, as: f ? b(f) : e };
1103
+ }
1104
+ let [t, n] = i.resolveHref(O, s, !0);
1105
+ return { href: t, as: f ? i.resolveHref(O, f) : n || t };
1106
+ }, [O, s, f]),
1107
+ P = o.default.useRef(L),
1108
+ B = o.default.useRef(D);
1109
+ R && (a = o.default.Children.only(n));
1110
+ let M = R ? a && 'object' == typeof a && a.ref : t,
1111
+ [$, G, U] = d.useIntersection({ rootMargin: '200px' }),
1112
+ j = o.default.useCallback(
1113
+ (e) => {
1114
+ (B.current !== D || P.current !== L) &&
1115
+ (U(), (B.current = D), (P.current = L)),
1116
+ $(e),
1117
+ M &&
1118
+ ('function' == typeof M
1119
+ ? M(e)
1120
+ : 'object' == typeof M && (M.current = e));
1121
+ },
1122
+ [D, M, L, U, $],
1123
+ );
1124
+ o.default.useEffect(() => {
1125
+ F && G && x && m(F, L, D, { locale: w });
1126
+ }, [D, L, G, w, x, null == O ? void 0 : O.locale, F]);
1127
+ let z = {
1128
+ ref: j,
1129
+ onClick(e) {
1130
+ R || 'function' != typeof A || A(e),
1131
+ R &&
1132
+ a.props &&
1133
+ 'function' == typeof a.props.onClick &&
1134
+ a.props.onClick(e),
1135
+ F &&
1136
+ !e.defaultPrevented &&
1137
+ (function (e, t, n, a, r, s, l, u, c, d) {
1138
+ let { nodeName: p } = e.currentTarget,
1139
+ g = 'A' === p.toUpperCase();
1140
+ if (
1141
+ g &&
1142
+ ((function (e) {
1143
+ let { target: t } = e.currentTarget;
1144
+ return (
1145
+ (t && '_self' !== t) ||
1146
+ e.metaKey ||
1147
+ e.ctrlKey ||
1148
+ e.shiftKey ||
1149
+ e.altKey ||
1150
+ (e.nativeEvent && 2 === e.nativeEvent.which)
1151
+ );
1152
+ })(e) ||
1153
+ !i.isLocalURL(n))
1154
+ )
1155
+ return;
1156
+ e.preventDefault();
1157
+ let f = () => {
1158
+ 'beforePopState' in t
1159
+ ? t[r ? 'replace' : 'push'](n, a, {
1160
+ shallow: s,
1161
+ locale: u,
1162
+ scroll: l,
1163
+ })
1164
+ : t[r ? 'replace' : 'push'](a || n, {
1165
+ forceOptimisticNavigation: !d,
1166
+ });
1167
+ };
1168
+ c ? o.default.startTransition(f) : f();
1169
+ })(e, F, L, D, E, k, S, w, C, x);
1170
+ },
1171
+ onMouseEnter(e) {
1172
+ R || 'function' != typeof _ || _(e),
1173
+ R &&
1174
+ a.props &&
1175
+ 'function' == typeof a.props.onMouseEnter &&
1176
+ a.props.onMouseEnter(e),
1177
+ F &&
1178
+ (x || !C) &&
1179
+ m(F, L, D, {
1180
+ locale: w,
1181
+ priority: !0,
1182
+ bypassPrefetchedCheck: !0,
1183
+ });
1184
+ },
1185
+ onTouchStart(e) {
1186
+ R || 'function' != typeof T || T(e),
1187
+ R &&
1188
+ a.props &&
1189
+ 'function' == typeof a.props.onTouchStart &&
1190
+ a.props.onTouchStart(e),
1191
+ F &&
1192
+ (x || !C) &&
1193
+ m(F, L, D, {
1194
+ locale: w,
1195
+ priority: !0,
1196
+ bypassPrefetchedCheck: !0,
1197
+ });
1198
+ },
1199
+ };
1200
+ if (!R || v || ('a' === a.type && !('href' in a.props))) {
1201
+ let H = void 0 !== w ? w : null == O ? void 0 : O.locale,
1202
+ Z =
1203
+ (null == O ? void 0 : O.isLocaleDomain) &&
1204
+ p.getDomainLocale(
1205
+ D,
1206
+ H,
1207
+ null == O ? void 0 : O.locales,
1208
+ null == O ? void 0 : O.domainLocales,
1209
+ );
1210
+ z.href =
1211
+ Z ||
1212
+ g.addBasePath(
1213
+ l.addLocale(D, H, null == O ? void 0 : O.defaultLocale),
1214
+ );
1215
+ }
1216
+ return R
1217
+ ? o.default.cloneElement(a, z)
1218
+ : o.default.createElement('a', Object.assign({}, I, z), n);
1219
+ });
1220
+ (t.default = h),
1221
+ ('function' == typeof t.default ||
1222
+ ('object' == typeof t.default && null !== t.default)) &&
1223
+ void 0 === t.default.__esModule &&
1224
+ (Object.defineProperty(t.default, '__esModule', { value: !0 }),
1225
+ Object.assign(t.default, t),
1226
+ (e.exports = t.default));
1227
+ },
1228
+ 9246: function (e, t, n) {
1229
+ 'use strict';
1230
+ Object.defineProperty(t, '__esModule', { value: !0 }),
1231
+ (t.useIntersection = function (e) {
1232
+ let { rootRef: t, rootMargin: n, disabled: l } = e,
1233
+ u = l || !o,
1234
+ [c, d] = a.useState(!1),
1235
+ [p, g] = a.useState(null);
1236
+ a.useEffect(() => {
1237
+ if (o) {
1238
+ if (!u && !c && p && p.tagName) {
1239
+ let e = (function (e, t, n) {
1240
+ let {
1241
+ id: a,
1242
+ observer: r,
1243
+ elements: o,
1244
+ } = (function (e) {
1245
+ let t;
1246
+ let n = {
1247
+ root: e.root || null,
1248
+ margin: e.rootMargin || '',
1249
+ },
1250
+ a = s.find(
1251
+ (e) => e.root === n.root && e.margin === n.margin,
1252
+ );
1253
+ if (a && (t = i.get(a))) return t;
1254
+ let r = new Map(),
1255
+ o = new IntersectionObserver((e) => {
1256
+ e.forEach((e) => {
1257
+ let t = r.get(e.target),
1258
+ n = e.isIntersecting || e.intersectionRatio > 0;
1259
+ t && n && t(n);
1260
+ });
1261
+ }, e);
1262
+ return (
1263
+ (t = { id: n, observer: o, elements: r }),
1264
+ s.push(n),
1265
+ i.set(n, t),
1266
+ t
1267
+ );
1268
+ })(n);
1269
+ return (
1270
+ o.set(e, t),
1271
+ r.observe(e),
1272
+ function () {
1273
+ if ((o.delete(e), r.unobserve(e), 0 === o.size)) {
1274
+ r.disconnect(), i.delete(a);
1275
+ let t = s.findIndex(
1276
+ (e) => e.root === a.root && e.margin === a.margin,
1277
+ );
1278
+ t > -1 && s.splice(t, 1);
1279
+ }
1280
+ }
1281
+ );
1282
+ })(p, (e) => e && d(e), {
1283
+ root: null == t ? void 0 : t.current,
1284
+ rootMargin: n,
1285
+ });
1286
+ return e;
1287
+ }
1288
+ } else if (!c) {
1289
+ let a = r.requestIdleCallback(() => d(!0));
1290
+ return () => r.cancelIdleCallback(a);
1291
+ }
1292
+ }, [p, u, n, t, c]);
1293
+ let f = a.useCallback(() => {
1294
+ d(!1);
1295
+ }, []);
1296
+ return [g, c, f];
1297
+ });
1298
+ var a = n(7294),
1299
+ r = n(4686);
1300
+ let o = 'function' == typeof IntersectionObserver,
1301
+ i = new Map(),
1302
+ s = [];
1303
+ ('function' == typeof t.default ||
1304
+ ('object' == typeof t.default && null !== t.default)) &&
1305
+ void 0 === t.default.__esModule &&
1306
+ (Object.defineProperty(t.default, '__esModule', { value: !0 }),
1307
+ Object.assign(t.default, t),
1308
+ (e.exports = t.default));
1309
+ },
1310
+ 1664: function (e, t, n) {
1311
+ e.exports = n(1551);
1312
+ },
1313
+ 1163: function (e, t, n) {
1314
+ e.exports = n(880);
1315
+ },
1316
+ 7087: function (e, t, n) {
1317
+ 'use strict';
1318
+ n.d(t, {
1319
+ ZP: function () {
1320
+ return $;
1321
+ },
1322
+ lG: function () {
1323
+ return O;
1324
+ },
1325
+ });
1326
+ /**
1327
+ * Prism: Lightweight, robust, elegant syntax highlighting
1328
+ *
1329
+ * @license MIT <https://opensource.org/licenses/MIT>
1330
+ * @author Lea Verou <https://lea.verou.me>
1331
+ * @namespace
1332
+ * @public
1333
+ */ var a,
1334
+ r,
1335
+ o,
1336
+ i,
1337
+ s,
1338
+ l,
1339
+ u,
1340
+ c,
1341
+ d,
1342
+ p,
1343
+ g,
1344
+ f,
1345
+ m,
1346
+ b,
1347
+ h,
1348
+ y,
1349
+ v,
1350
+ E,
1351
+ k,
1352
+ S,
1353
+ w,
1354
+ A,
1355
+ _,
1356
+ T,
1357
+ R = (function () {
1358
+ var e = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
1359
+ t = 0,
1360
+ n = {},
1361
+ a = {
1362
+ util: {
1363
+ encode: function e(t) {
1364
+ return t instanceof r
1365
+ ? new r(t.type, e(t.content), t.alias)
1366
+ : Array.isArray(t)
1367
+ ? t.map(e)
1368
+ : t
1369
+ .replace(/&/g, '&amp;')
1370
+ .replace(/</g, '&lt;')
1371
+ .replace(/\u00a0/g, ' ');
1372
+ },
1373
+ type: function (e) {
1374
+ return Object.prototype.toString.call(e).slice(8, -1);
1375
+ },
1376
+ objId: function (e) {
1377
+ return (
1378
+ e.__id || Object.defineProperty(e, '__id', { value: ++t }),
1379
+ e.__id
1380
+ );
1381
+ },
1382
+ clone: function e(t, n) {
1383
+ var r, o;
1384
+ switch (((n = n || {}), a.util.type(t))) {
1385
+ case 'Object':
1386
+ if (n[(o = a.util.objId(t))]) return n[o];
1387
+ for (var i in ((r = {}), (n[o] = r), t))
1388
+ t.hasOwnProperty(i) && (r[i] = e(t[i], n));
1389
+ return r;
1390
+ case 'Array':
1391
+ if (n[(o = a.util.objId(t))]) return n[o];
1392
+ return (
1393
+ (r = []),
1394
+ (n[o] = r),
1395
+ t.forEach(function (t, a) {
1396
+ r[a] = e(t, n);
1397
+ }),
1398
+ r
1399
+ );
1400
+ default:
1401
+ return t;
1402
+ }
1403
+ },
1404
+ getLanguage: function (t) {
1405
+ for (; t; ) {
1406
+ var n = e.exec(t.className);
1407
+ if (n) return n[1].toLowerCase();
1408
+ t = t.parentElement;
1409
+ }
1410
+ return 'none';
1411
+ },
1412
+ setLanguage: function (t, n) {
1413
+ (t.className = t.className.replace(RegExp(e, 'gi'), '')),
1414
+ t.classList.add('language-' + n);
1415
+ },
1416
+ isActive: function (e, t, n) {
1417
+ for (var a = 'no-' + t; e; ) {
1418
+ var r = e.classList;
1419
+ if (r.contains(t)) return !0;
1420
+ if (r.contains(a)) return !1;
1421
+ e = e.parentElement;
1422
+ }
1423
+ return !!n;
1424
+ },
1425
+ },
1426
+ languages: {
1427
+ plain: n,
1428
+ plaintext: n,
1429
+ text: n,
1430
+ txt: n,
1431
+ extend: function (e, t) {
1432
+ var n = a.util.clone(a.languages[e]);
1433
+ for (var r in t) n[r] = t[r];
1434
+ return n;
1435
+ },
1436
+ insertBefore: function (e, t, n, r) {
1437
+ var o = (r = r || a.languages)[e],
1438
+ i = {};
1439
+ for (var s in o)
1440
+ if (o.hasOwnProperty(s)) {
1441
+ if (s == t)
1442
+ for (var l in n) n.hasOwnProperty(l) && (i[l] = n[l]);
1443
+ n.hasOwnProperty(s) || (i[s] = o[s]);
1444
+ }
1445
+ var u = r[e];
1446
+ return (
1447
+ (r[e] = i),
1448
+ a.languages.DFS(a.languages, function (t, n) {
1449
+ n === u && t != e && (this[t] = i);
1450
+ }),
1451
+ i
1452
+ );
1453
+ },
1454
+ DFS: function e(t, n, r, o) {
1455
+ o = o || {};
1456
+ var i = a.util.objId;
1457
+ for (var s in t)
1458
+ if (t.hasOwnProperty(s)) {
1459
+ n.call(t, s, t[s], r || s);
1460
+ var l = t[s],
1461
+ u = a.util.type(l);
1462
+ 'Object' !== u || o[i(l)]
1463
+ ? 'Array' !== u ||
1464
+ o[i(l)] ||
1465
+ ((o[i(l)] = !0), e(l, n, s, o))
1466
+ : ((o[i(l)] = !0), e(l, n, null, o));
1467
+ }
1468
+ },
1469
+ },
1470
+ plugins: {},
1471
+ highlight: function (e, t, n) {
1472
+ var o = { code: e, grammar: t, language: n };
1473
+ return (
1474
+ a.hooks.run('before-tokenize', o),
1475
+ (o.tokens = a.tokenize(o.code, o.grammar)),
1476
+ a.hooks.run('after-tokenize', o),
1477
+ r.stringify(a.util.encode(o.tokens), o.language)
1478
+ );
1479
+ },
1480
+ tokenize: function (e, t) {
1481
+ var n = t.rest;
1482
+ if (n) {
1483
+ for (var l in n) t[l] = n[l];
1484
+ delete t.rest;
1485
+ }
1486
+ var u = new i();
1487
+ return (
1488
+ s(u, u.head, e),
1489
+ (function e(t, n, i, l, u, c) {
1490
+ for (var d in i)
1491
+ if (i.hasOwnProperty(d) && i[d]) {
1492
+ var p = i[d];
1493
+ p = Array.isArray(p) ? p : [p];
1494
+ for (var g = 0; g < p.length; ++g) {
1495
+ if (c && c.cause == d + ',' + g) return;
1496
+ var f = p[g],
1497
+ m = f.inside,
1498
+ b = !!f.lookbehind,
1499
+ h = !!f.greedy,
1500
+ y = f.alias;
1501
+ if (h && !f.pattern.global) {
1502
+ var v = f.pattern.toString().match(/[imsuy]*$/)[0];
1503
+ f.pattern = RegExp(f.pattern.source, v + 'g');
1504
+ }
1505
+ for (
1506
+ var E = f.pattern || f, k = l.next, S = u;
1507
+ k !== n.tail && (!c || !(S >= c.reach));
1508
+ S += k.value.length, k = k.next
1509
+ ) {
1510
+ var w,
1511
+ A = k.value;
1512
+ if (n.length > t.length) return;
1513
+ if (!(A instanceof r)) {
1514
+ var _ = 1;
1515
+ if (h) {
1516
+ if (!(w = o(E, S, t, b)) || w.index >= t.length)
1517
+ break;
1518
+ var T = w.index,
1519
+ R = w.index + w[0].length,
1520
+ I = S;
1521
+ for (I += k.value.length; T >= I; )
1522
+ I += (k = k.next).value.length;
1523
+ if (
1524
+ ((I -= k.value.length),
1525
+ (S = I),
1526
+ k.value instanceof r)
1527
+ )
1528
+ continue;
1529
+ for (
1530
+ var x = k;
1531
+ x !== n.tail &&
1532
+ (I < R || 'string' == typeof x.value);
1533
+ x = x.next
1534
+ )
1535
+ _++, (I += x.value.length);
1536
+ _--, (A = t.slice(S, I)), (w.index -= S);
1537
+ } else if (!(w = o(E, 0, A, b))) continue;
1538
+ var T = w.index,
1539
+ O = w[0],
1540
+ N = A.slice(0, T),
1541
+ F = A.slice(T + O.length),
1542
+ C = S + A.length;
1543
+ c && C > c.reach && (c.reach = C);
1544
+ var L = k.prev;
1545
+ N && ((L = s(n, L, N)), (S += N.length)),
1546
+ (function (e, t, n) {
1547
+ for (
1548
+ var a = t.next, r = 0;
1549
+ r < n && a !== e.tail;
1550
+ r++
1551
+ )
1552
+ a = a.next;
1553
+ (t.next = a), (a.prev = t), (e.length -= r);
1554
+ })(n, L, _);
1555
+ var D = new r(d, m ? a.tokenize(O, m) : O, y, O);
1556
+ if (((k = s(n, L, D)), F && s(n, k, F), _ > 1)) {
1557
+ var P = { cause: d + ',' + g, reach: C };
1558
+ e(t, n, i, k.prev, S, P),
1559
+ c && P.reach > c.reach && (c.reach = P.reach);
1560
+ }
1561
+ }
1562
+ }
1563
+ }
1564
+ }
1565
+ })(e, u, t, u.head, 0),
1566
+ (function (e) {
1567
+ for (var t = [], n = e.head.next; n !== e.tail; )
1568
+ t.push(n.value), (n = n.next);
1569
+ return t;
1570
+ })(u)
1571
+ );
1572
+ },
1573
+ hooks: {
1574
+ all: {},
1575
+ add: function (e, t) {
1576
+ var n = a.hooks.all;
1577
+ (n[e] = n[e] || []), n[e].push(t);
1578
+ },
1579
+ run: function (e, t) {
1580
+ var n = a.hooks.all[e];
1581
+ if (n && n.length) for (var r, o = 0; (r = n[o++]); ) r(t);
1582
+ },
1583
+ },
1584
+ Token: r,
1585
+ };
1586
+ function r(e, t, n, a) {
1587
+ (this.type = e),
1588
+ (this.content = t),
1589
+ (this.alias = n),
1590
+ (this.length = 0 | (a || '').length);
1591
+ }
1592
+ function o(e, t, n, a) {
1593
+ e.lastIndex = t;
1594
+ var r = e.exec(n);
1595
+ if (r && a && r[1]) {
1596
+ var o = r[1].length;
1597
+ (r.index += o), (r[0] = r[0].slice(o));
1598
+ }
1599
+ return r;
1600
+ }
1601
+ function i() {
1602
+ var e = { value: null, prev: null, next: null },
1603
+ t = { value: null, prev: e, next: null };
1604
+ (e.next = t), (this.head = e), (this.tail = t), (this.length = 0);
1605
+ }
1606
+ function s(e, t, n) {
1607
+ var a = t.next,
1608
+ r = { value: n, prev: t, next: a };
1609
+ return (t.next = r), (a.prev = r), e.length++, r;
1610
+ }
1611
+ return (
1612
+ (r.stringify = function e(t, n) {
1613
+ if ('string' == typeof t) return t;
1614
+ if (Array.isArray(t)) {
1615
+ var r = '';
1616
+ return (
1617
+ t.forEach(function (t) {
1618
+ r += e(t, n);
1619
+ }),
1620
+ r
1621
+ );
1622
+ }
1623
+ var o = {
1624
+ type: t.type,
1625
+ content: e(t.content, n),
1626
+ tag: 'span',
1627
+ classes: ['token', t.type],
1628
+ attributes: {},
1629
+ language: n,
1630
+ },
1631
+ i = t.alias;
1632
+ i &&
1633
+ (Array.isArray(i)
1634
+ ? Array.prototype.push.apply(o.classes, i)
1635
+ : o.classes.push(i)),
1636
+ a.hooks.run('wrap', o);
1637
+ var s = '';
1638
+ for (var l in o.attributes)
1639
+ s +=
1640
+ ' ' +
1641
+ l +
1642
+ '="' +
1643
+ (o.attributes[l] || '').replace(/"/g, '&quot;') +
1644
+ '"';
1645
+ return (
1646
+ '<' +
1647
+ o.tag +
1648
+ ' class="' +
1649
+ o.classes.join(' ') +
1650
+ '"' +
1651
+ s +
1652
+ '>' +
1653
+ o.content +
1654
+ '</' +
1655
+ o.tag +
1656
+ '>'
1657
+ );
1658
+ }),
1659
+ a
1660
+ );
1661
+ })(),
1662
+ I = R;
1663
+ (R.default = R),
1664
+ (I.languages.markup = {
1665
+ comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 },
1666
+ prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 },
1667
+ doctype: {
1668
+ pattern:
1669
+ /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1670
+ greedy: !0,
1671
+ inside: {
1672
+ 'internal-subset': {
1673
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1674
+ lookbehind: !0,
1675
+ greedy: !0,
1676
+ inside: null,
1677
+ },
1678
+ 'string': { pattern: /"[^"]*"|'[^']*'/, greedy: !0 },
1679
+ 'punctuation': /^<!|>$|[[\]]/,
1680
+ 'doctype-tag': /^DOCTYPE/i,
1681
+ 'name': /[^\s<>'"]+/,
1682
+ },
1683
+ },
1684
+ cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 },
1685
+ tag: {
1686
+ pattern:
1687
+ /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1688
+ greedy: !0,
1689
+ inside: {
1690
+ 'tag': {
1691
+ pattern: /^<\/?[^\s>\/]+/,
1692
+ inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ },
1693
+ },
1694
+ 'special-attr': [],
1695
+ 'attr-value': {
1696
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1697
+ inside: {
1698
+ punctuation: [{ pattern: /^=/, alias: 'attr-equals' }, /"|'/],
1699
+ },
1700
+ },
1701
+ 'punctuation': /\/?>/,
1702
+ 'attr-name': {
1703
+ pattern: /[^\s>\/]+/,
1704
+ inside: { namespace: /^[^\s>\/:]+:/ },
1705
+ },
1706
+ },
1707
+ },
1708
+ entity: [
1709
+ { pattern: /&[\da-z]{1,8};/i, alias: 'named-entity' },
1710
+ /&#x?[\da-f]{1,8};/i,
1711
+ ],
1712
+ }),
1713
+ (I.languages.markup.tag.inside['attr-value'].inside.entity =
1714
+ I.languages.markup.entity),
1715
+ (I.languages.markup.doctype.inside['internal-subset'].inside =
1716
+ I.languages.markup),
1717
+ I.hooks.add('wrap', function (e) {
1718
+ 'entity' === e.type &&
1719
+ (e.attributes.title = e.content.replace(/&amp;/, '&'));
1720
+ }),
1721
+ Object.defineProperty(I.languages.markup.tag, 'addInlined', {
1722
+ value: function (e, t) {
1723
+ var n = {};
1724
+ (n['language-' + t] = {
1725
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1726
+ lookbehind: !0,
1727
+ inside: I.languages[t],
1728
+ }),
1729
+ (n.cdata = /^<!\[CDATA\[|\]\]>$/i);
1730
+ var a = {
1731
+ 'included-cdata': {
1732
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1733
+ inside: n,
1734
+ },
1735
+ };
1736
+ a['language-' + t] = { pattern: /[\s\S]+/, inside: I.languages[t] };
1737
+ var r = {};
1738
+ (r[e] = {
1739
+ pattern: RegExp(
1740
+ /(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
1741
+ /__/g,
1742
+ function () {
1743
+ return e;
1744
+ },
1745
+ ),
1746
+ 'i',
1747
+ ),
1748
+ lookbehind: !0,
1749
+ greedy: !0,
1750
+ inside: a,
1751
+ }),
1752
+ I.languages.insertBefore('markup', 'cdata', r);
1753
+ },
1754
+ }),
1755
+ Object.defineProperty(I.languages.markup.tag, 'addAttribute', {
1756
+ value: function (e, t) {
1757
+ I.languages.markup.tag.inside['special-attr'].push({
1758
+ pattern: RegExp(
1759
+ /(^|["'\s])/.source +
1760
+ '(?:' +
1761
+ e +
1762
+ ')' +
1763
+ /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1764
+ 'i',
1765
+ ),
1766
+ lookbehind: !0,
1767
+ inside: {
1768
+ 'attr-name': /^[^\s=]+/,
1769
+ 'attr-value': {
1770
+ pattern: /=[\s\S]+/,
1771
+ inside: {
1772
+ value: {
1773
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1774
+ lookbehind: !0,
1775
+ alias: [t, 'language-' + t],
1776
+ inside: I.languages[t],
1777
+ },
1778
+ punctuation: [
1779
+ { pattern: /^=/, alias: 'attr-equals' },
1780
+ /"|'/,
1781
+ ],
1782
+ },
1783
+ },
1784
+ },
1785
+ });
1786
+ },
1787
+ }),
1788
+ (I.languages.html = I.languages.markup),
1789
+ (I.languages.mathml = I.languages.markup),
1790
+ (I.languages.svg = I.languages.markup),
1791
+ (I.languages.xml = I.languages.extend('markup', {})),
1792
+ (I.languages.ssml = I.languages.xml),
1793
+ (I.languages.atom = I.languages.xml),
1794
+ (I.languages.rss = I.languages.xml),
1795
+ (function (e) {
1796
+ var t =
1797
+ '\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|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|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b',
1798
+ n = {
1799
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
1800
+ lookbehind: !0,
1801
+ alias: 'punctuation',
1802
+ inside: null,
1803
+ },
1804
+ a = {
1805
+ bash: n,
1806
+ environment: { pattern: RegExp('\\$' + t), alias: 'constant' },
1807
+ variable: [
1808
+ {
1809
+ pattern: /\$?\(\([\s\S]+?\)\)/,
1810
+ greedy: !0,
1811
+ inside: {
1812
+ variable: [
1813
+ { pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 },
1814
+ /^\$\(\(/,
1815
+ ],
1816
+ number:
1817
+ /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
1818
+ operator:
1819
+ /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
1820
+ punctuation: /\(\(?|\)\)?|,|;/,
1821
+ },
1822
+ },
1823
+ {
1824
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
1825
+ greedy: !0,
1826
+ inside: { variable: /^\$\(|^`|\)$|`$/ },
1827
+ },
1828
+ {
1829
+ pattern: /\$\{[^}]+\}/,
1830
+ greedy: !0,
1831
+ inside: {
1832
+ operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
1833
+ punctuation: /[\[\]]/,
1834
+ environment: {
1835
+ pattern: RegExp('(\\{)' + t),
1836
+ lookbehind: !0,
1837
+ alias: 'constant',
1838
+ },
1839
+ },
1840
+ },
1841
+ /\$(?:\w+|[#?*!@$])/,
1842
+ ],
1843
+ entity:
1844
+ /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/,
1845
+ };
1846
+ (e.languages.bash = {
1847
+ 'shebang': { pattern: /^#!\s*\/.*/, alias: 'important' },
1848
+ 'comment': { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 },
1849
+ 'function-name': [
1850
+ {
1851
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
1852
+ lookbehind: !0,
1853
+ alias: 'function',
1854
+ },
1855
+ { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: 'function' },
1856
+ ],
1857
+ 'for-or-select': {
1858
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
1859
+ alias: 'variable',
1860
+ lookbehind: !0,
1861
+ },
1862
+ 'assign-left': {
1863
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
1864
+ inside: {
1865
+ environment: {
1866
+ pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + t),
1867
+ lookbehind: !0,
1868
+ alias: 'constant',
1869
+ },
1870
+ },
1871
+ alias: 'variable',
1872
+ lookbehind: !0,
1873
+ },
1874
+ 'string': [
1875
+ {
1876
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
1877
+ lookbehind: !0,
1878
+ greedy: !0,
1879
+ inside: a,
1880
+ },
1881
+ {
1882
+ pattern:
1883
+ /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
1884
+ lookbehind: !0,
1885
+ greedy: !0,
1886
+ inside: { bash: n },
1887
+ },
1888
+ {
1889
+ pattern:
1890
+ /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
1891
+ lookbehind: !0,
1892
+ greedy: !0,
1893
+ inside: a,
1894
+ },
1895
+ { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 },
1896
+ {
1897
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
1898
+ greedy: !0,
1899
+ inside: { entity: a.entity },
1900
+ },
1901
+ ],
1902
+ 'environment': { pattern: RegExp('\\$?' + t), alias: 'constant' },
1903
+ 'variable': a.variable,
1904
+ 'function': {
1905
+ pattern:
1906
+ /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
1907
+ lookbehind: !0,
1908
+ },
1909
+ 'keyword': {
1910
+ pattern:
1911
+ /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
1912
+ lookbehind: !0,
1913
+ },
1914
+ 'builtin': {
1915
+ pattern:
1916
+ /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
1917
+ lookbehind: !0,
1918
+ alias: 'class-name',
1919
+ },
1920
+ 'boolean': {
1921
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
1922
+ lookbehind: !0,
1923
+ },
1924
+ 'file-descriptor': { pattern: /\B&\d\b/, alias: 'important' },
1925
+ 'operator': {
1926
+ pattern:
1927
+ /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
1928
+ inside: {
1929
+ 'file-descriptor': { pattern: /^\d/, alias: 'important' },
1930
+ },
1931
+ },
1932
+ 'punctuation': /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
1933
+ 'number': {
1934
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
1935
+ lookbehind: !0,
1936
+ },
1937
+ }),
1938
+ (n.inside = e.languages.bash);
1939
+ for (
1940
+ var r = [
1941
+ 'comment',
1942
+ 'function-name',
1943
+ 'for-or-select',
1944
+ 'assign-left',
1945
+ 'string',
1946
+ 'environment',
1947
+ 'function',
1948
+ 'keyword',
1949
+ 'builtin',
1950
+ 'boolean',
1951
+ 'file-descriptor',
1952
+ 'operator',
1953
+ 'punctuation',
1954
+ 'number',
1955
+ ],
1956
+ o = a.variable[1].inside,
1957
+ i = 0;
1958
+ i < r.length;
1959
+ i++
1960
+ )
1961
+ o[r[i]] = e.languages.bash[r[i]];
1962
+ e.languages.shell = e.languages.bash;
1963
+ })(I),
1964
+ (I.languages.clike = {
1965
+ 'comment': [
1966
+ {
1967
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
1968
+ lookbehind: !0,
1969
+ greedy: !0,
1970
+ },
1971
+ { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 },
1972
+ ],
1973
+ 'string': {
1974
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
1975
+ greedy: !0,
1976
+ },
1977
+ 'class-name': {
1978
+ pattern:
1979
+ /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1980
+ lookbehind: !0,
1981
+ inside: { punctuation: /[.\\]/ },
1982
+ },
1983
+ 'keyword':
1984
+ /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1985
+ 'boolean': /\b(?:false|true)\b/,
1986
+ 'function': /\b\w+(?=\()/,
1987
+ 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
1988
+ 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1989
+ 'punctuation': /[{}[\];(),.:]/,
1990
+ }),
1991
+ (I.languages.c = I.languages.extend('clike', {
1992
+ 'comment': {
1993
+ pattern:
1994
+ /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
1995
+ greedy: !0,
1996
+ },
1997
+ 'string': {
1998
+ pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
1999
+ greedy: !0,
2000
+ },
2001
+ 'class-name': {
2002
+ pattern:
2003
+ /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
2004
+ lookbehind: !0,
2005
+ },
2006
+ 'keyword':
2007
+ /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,
2008
+ 'function': /\b[a-z_]\w*(?=\s*\()/i,
2009
+ 'number':
2010
+ /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
2011
+ 'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/,
2012
+ })),
2013
+ I.languages.insertBefore('c', 'string', {
2014
+ char: {
2015
+ pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,
2016
+ greedy: !0,
2017
+ },
2018
+ }),
2019
+ I.languages.insertBefore('c', 'string', {
2020
+ macro: {
2021
+ pattern:
2022
+ /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
2023
+ lookbehind: !0,
2024
+ greedy: !0,
2025
+ alias: 'property',
2026
+ inside: {
2027
+ 'string': [
2028
+ { pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 },
2029
+ I.languages.c.string,
2030
+ ],
2031
+ 'char': I.languages.c.char,
2032
+ 'comment': I.languages.c.comment,
2033
+ 'macro-name': [
2034
+ { pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 },
2035
+ {
2036
+ pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
2037
+ lookbehind: !0,
2038
+ alias: 'function',
2039
+ },
2040
+ ],
2041
+ 'directive': {
2042
+ pattern: /^(#\s*)[a-z]+/,
2043
+ lookbehind: !0,
2044
+ alias: 'keyword',
2045
+ },
2046
+ 'directive-hash': /^#/,
2047
+ 'punctuation': /##|\\(?=[\r\n])/,
2048
+ 'expression': { pattern: /\S[\s\S]*/, inside: I.languages.c },
2049
+ },
2050
+ },
2051
+ }),
2052
+ I.languages.insertBefore('c', 'function', {
2053
+ constant:
2054
+ /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/,
2055
+ }),
2056
+ delete I.languages.c.boolean,
2057
+ (a = I),
2058
+ (r =
2059
+ /\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/),
2060
+ (o = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(
2061
+ /<keyword>/g,
2062
+ function () {
2063
+ return r.source;
2064
+ },
2065
+ )),
2066
+ (a.languages.cpp = a.languages.extend('c', {
2067
+ 'class-name': [
2068
+ {
2069
+ pattern: RegExp(
2070
+ /(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(
2071
+ /<keyword>/g,
2072
+ function () {
2073
+ return r.source;
2074
+ },
2075
+ ),
2076
+ ),
2077
+ lookbehind: !0,
2078
+ },
2079
+ /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
2080
+ /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
2081
+ /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/,
2082
+ ],
2083
+ 'keyword': r,
2084
+ 'number': {
2085
+ pattern:
2086
+ /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
2087
+ greedy: !0,
2088
+ },
2089
+ 'operator':
2090
+ />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
2091
+ 'boolean': /\b(?:false|true)\b/,
2092
+ })),
2093
+ a.languages.insertBefore('cpp', 'string', {
2094
+ 'module': {
2095
+ pattern: RegExp(
2096
+ /(\b(?:import|module)\s+)/.source +
2097
+ '(?:' +
2098
+ /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source +
2099
+ '|' +
2100
+ /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(
2101
+ /<mod-name>/g,
2102
+ function () {
2103
+ return o;
2104
+ },
2105
+ ) +
2106
+ ')',
2107
+ ),
2108
+ lookbehind: !0,
2109
+ greedy: !0,
2110
+ inside: {
2111
+ string: /^[<"][\s\S]+/,
2112
+ operator: /:/,
2113
+ punctuation: /\./,
2114
+ },
2115
+ },
2116
+ 'raw-string': {
2117
+ pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
2118
+ alias: 'string',
2119
+ greedy: !0,
2120
+ },
2121
+ }),
2122
+ a.languages.insertBefore('cpp', 'keyword', {
2123
+ 'generic-function': {
2124
+ pattern:
2125
+ /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
2126
+ inside: {
2127
+ function: /^\w+/,
2128
+ generic: {
2129
+ pattern: /<[\s\S]+/,
2130
+ alias: 'class-name',
2131
+ inside: a.languages.cpp,
2132
+ },
2133
+ },
2134
+ },
2135
+ }),
2136
+ a.languages.insertBefore('cpp', 'operator', {
2137
+ 'double-colon': { pattern: /::/, alias: 'punctuation' },
2138
+ }),
2139
+ a.languages.insertBefore('cpp', 'class-name', {
2140
+ 'base-clause': {
2141
+ pattern:
2142
+ /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
2143
+ lookbehind: !0,
2144
+ greedy: !0,
2145
+ inside: a.languages.extend('cpp', {}),
2146
+ },
2147
+ }),
2148
+ a.languages.insertBefore(
2149
+ 'inside',
2150
+ 'double-colon',
2151
+ { 'class-name': /\b[a-z_]\w*\b(?!\s*::)/i },
2152
+ a.languages.cpp['base-clause'],
2153
+ ),
2154
+ (s =
2155
+ /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/),
2156
+ ((i = I).languages.css = {
2157
+ comment: /\/\*[\s\S]*?\*\//,
2158
+ atrule: {
2159
+ pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
2160
+ inside: {
2161
+ 'rule': /^@[\w-]+/,
2162
+ 'selector-function-argument': {
2163
+ pattern:
2164
+ /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
2165
+ lookbehind: !0,
2166
+ alias: 'selector',
2167
+ },
2168
+ 'keyword': {
2169
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
2170
+ lookbehind: !0,
2171
+ },
2172
+ },
2173
+ },
2174
+ url: {
2175
+ pattern: RegExp(
2176
+ '\\burl\\((?:' +
2177
+ s.source +
2178
+ '|' +
2179
+ /(?:[^\\\r\n()"']|\\[\s\S])*/.source +
2180
+ ')\\)',
2181
+ 'i',
2182
+ ),
2183
+ greedy: !0,
2184
+ inside: {
2185
+ function: /^url/i,
2186
+ punctuation: /^\(|\)$/,
2187
+ string: { pattern: RegExp('^' + s.source + '$'), alias: 'url' },
2188
+ },
2189
+ },
2190
+ selector: {
2191
+ pattern: RegExp(
2192
+ '(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' +
2193
+ s.source +
2194
+ ')*(?=\\s*\\{)',
2195
+ ),
2196
+ lookbehind: !0,
2197
+ },
2198
+ string: { pattern: s, greedy: !0 },
2199
+ property: {
2200
+ pattern:
2201
+ /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
2202
+ lookbehind: !0,
2203
+ },
2204
+ important: /!important\b/i,
2205
+ function: {
2206
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
2207
+ lookbehind: !0,
2208
+ },
2209
+ punctuation: /[(){};:,]/,
2210
+ }),
2211
+ (i.languages.css.atrule.inside.rest = i.languages.css),
2212
+ (l = i.languages.markup) &&
2213
+ (l.tag.addInlined('style', 'css'),
2214
+ l.tag.addAttribute('style', 'css')),
2215
+ (function (e) {
2216
+ var t,
2217
+ n = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
2218
+ (e.languages.css.selector = {
2219
+ pattern: e.languages.css.selector.pattern,
2220
+ lookbehind: !0,
2221
+ inside: (t = {
2222
+ 'pseudo-element':
2223
+ /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
2224
+ 'pseudo-class': /:[-\w]+/,
2225
+ 'class': /\.[-\w]+/,
2226
+ 'id': /#[-\w]+/,
2227
+ 'attribute': {
2228
+ pattern: RegExp('\\[(?:[^[\\]"\']|' + n.source + ')*\\]'),
2229
+ greedy: !0,
2230
+ inside: {
2231
+ 'punctuation': /^\[|\]$/,
2232
+ 'case-sensitivity': {
2233
+ pattern: /(\s)[si]$/i,
2234
+ lookbehind: !0,
2235
+ alias: 'keyword',
2236
+ },
2237
+ 'namespace': {
2238
+ pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,
2239
+ lookbehind: !0,
2240
+ inside: { punctuation: /\|$/ },
2241
+ },
2242
+ 'attr-name': {
2243
+ pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,
2244
+ lookbehind: !0,
2245
+ },
2246
+ 'attr-value': [
2247
+ n,
2248
+ {
2249
+ pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,
2250
+ lookbehind: !0,
2251
+ },
2252
+ ],
2253
+ 'operator': /[|~*^$]?=/,
2254
+ },
2255
+ },
2256
+ 'n-th': [
2257
+ {
2258
+ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,
2259
+ lookbehind: !0,
2260
+ inside: { number: /[\dn]+/, operator: /[+-]/ },
2261
+ },
2262
+ { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 },
2263
+ ],
2264
+ 'combinator': />|\+|~|\|\|/,
2265
+ 'punctuation': /[(),]/,
2266
+ }),
2267
+ }),
2268
+ (e.languages.css.atrule.inside[
2269
+ 'selector-function-argument'
2270
+ ].inside = t),
2271
+ e.languages.insertBefore('css', 'property', {
2272
+ variable: {
2273
+ pattern:
2274
+ /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,
2275
+ lookbehind: !0,
2276
+ },
2277
+ });
2278
+ var a = { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 },
2279
+ r = {
2280
+ pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
2281
+ lookbehind: !0,
2282
+ };
2283
+ e.languages.insertBefore('css', 'function', {
2284
+ operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 },
2285
+ hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: 'color' },
2286
+ color: [
2287
+ {
2288
+ pattern:
2289
+ /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,
2290
+ lookbehind: !0,
2291
+ },
2292
+ {
2293
+ pattern:
2294
+ /\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,
2295
+ inside: {
2296
+ unit: a,
2297
+ number: r,
2298
+ function: /[\w-]+(?=\()/,
2299
+ punctuation: /[(),]/,
2300
+ },
2301
+ },
2302
+ ],
2303
+ entity: /\\[\da-f]{1,8}/i,
2304
+ unit: a,
2305
+ number: r,
2306
+ });
2307
+ })(I),
2308
+ (I.languages.javascript = I.languages.extend('clike', {
2309
+ 'class-name': [
2310
+ I.languages.clike['class-name'],
2311
+ {
2312
+ pattern:
2313
+ /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
2314
+ lookbehind: !0,
2315
+ },
2316
+ ],
2317
+ 'keyword': [
2318
+ { pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 },
2319
+ {
2320
+ pattern:
2321
+ /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
2322
+ lookbehind: !0,
2323
+ },
2324
+ ],
2325
+ 'function':
2326
+ /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
2327
+ 'number': {
2328
+ pattern: RegExp(
2329
+ /(^|[^\w$])/.source +
2330
+ '(?:' +
2331
+ (/NaN|Infinity/.source +
2332
+ '|' +
2333
+ /0[bB][01]+(?:_[01]+)*n?/.source +
2334
+ '|' +
2335
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source +
2336
+ '|' +
2337
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
2338
+ '|') +
2339
+ /\d+(?:_\d+)*n/.source +
2340
+ '|' +
2341
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/
2342
+ .source +
2343
+ ')' +
2344
+ /(?![\w$])/.source,
2345
+ ),
2346
+ lookbehind: !0,
2347
+ },
2348
+ 'operator':
2349
+ /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,
2350
+ })),
2351
+ (I.languages.javascript['class-name'][0].pattern =
2352
+ /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/),
2353
+ I.languages.insertBefore('javascript', 'keyword', {
2354
+ 'regex': {
2355
+ pattern:
2356
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
2357
+ lookbehind: !0,
2358
+ greedy: !0,
2359
+ inside: {
2360
+ 'regex-source': {
2361
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
2362
+ lookbehind: !0,
2363
+ alias: 'language-regex',
2364
+ inside: I.languages.regex,
2365
+ },
2366
+ 'regex-delimiter': /^\/|\/$/,
2367
+ 'regex-flags': /^[a-z]+$/,
2368
+ },
2369
+ },
2370
+ 'function-variable': {
2371
+ pattern:
2372
+ /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
2373
+ alias: 'function',
2374
+ },
2375
+ 'parameter': [
2376
+ {
2377
+ pattern:
2378
+ /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
2379
+ lookbehind: !0,
2380
+ inside: I.languages.javascript,
2381
+ },
2382
+ {
2383
+ pattern:
2384
+ /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
2385
+ lookbehind: !0,
2386
+ inside: I.languages.javascript,
2387
+ },
2388
+ {
2389
+ pattern:
2390
+ /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
2391
+ lookbehind: !0,
2392
+ inside: I.languages.javascript,
2393
+ },
2394
+ {
2395
+ pattern:
2396
+ /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
2397
+ lookbehind: !0,
2398
+ inside: I.languages.javascript,
2399
+ },
2400
+ ],
2401
+ 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
2402
+ }),
2403
+ I.languages.insertBefore('javascript', 'string', {
2404
+ 'hashbang': { pattern: /^#!.*/, greedy: !0, alias: 'comment' },
2405
+ 'template-string': {
2406
+ pattern:
2407
+ /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
2408
+ greedy: !0,
2409
+ inside: {
2410
+ 'template-punctuation': { pattern: /^`|`$/, alias: 'string' },
2411
+ 'interpolation': {
2412
+ pattern:
2413
+ /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
2414
+ lookbehind: !0,
2415
+ inside: {
2416
+ 'interpolation-punctuation': {
2417
+ pattern: /^\$\{|\}$/,
2418
+ alias: 'punctuation',
2419
+ },
2420
+ 'rest': I.languages.javascript,
2421
+ },
2422
+ },
2423
+ 'string': /[\s\S]+/,
2424
+ },
2425
+ },
2426
+ 'string-property': {
2427
+ pattern:
2428
+ /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
2429
+ lookbehind: !0,
2430
+ greedy: !0,
2431
+ alias: 'property',
2432
+ },
2433
+ }),
2434
+ I.languages.insertBefore('javascript', 'operator', {
2435
+ 'literal-property': {
2436
+ pattern:
2437
+ /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
2438
+ lookbehind: !0,
2439
+ alias: 'property',
2440
+ },
2441
+ }),
2442
+ I.languages.markup &&
2443
+ (I.languages.markup.tag.addInlined('script', 'javascript'),
2444
+ I.languages.markup.tag.addAttribute(
2445
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/
2446
+ .source,
2447
+ 'javascript',
2448
+ )),
2449
+ (I.languages.js = I.languages.javascript),
2450
+ (c = /#(?!\{).+/),
2451
+ (d = { pattern: /#\{[^}]+\}/, alias: 'variable' }),
2452
+ ((u = I).languages.coffeescript = u.languages.extend('javascript', {
2453
+ 'comment': c,
2454
+ 'string': [
2455
+ { pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 },
2456
+ {
2457
+ pattern: /"(?:\\[\s\S]|[^\\"])*"/,
2458
+ greedy: !0,
2459
+ inside: { interpolation: d },
2460
+ },
2461
+ ],
2462
+ 'keyword':
2463
+ /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,
2464
+ 'class-member': { pattern: /@(?!\d)\w+/, alias: 'variable' },
2465
+ })),
2466
+ u.languages.insertBefore('coffeescript', 'comment', {
2467
+ 'multiline-comment': { pattern: /###[\s\S]+?###/, alias: 'comment' },
2468
+ 'block-regex': {
2469
+ pattern: /\/{3}[\s\S]*?\/{3}/,
2470
+ alias: 'regex',
2471
+ inside: { comment: c, interpolation: d },
2472
+ },
2473
+ }),
2474
+ u.languages.insertBefore('coffeescript', 'string', {
2475
+ 'inline-javascript': {
2476
+ pattern: /`(?:\\[\s\S]|[^\\`])*`/,
2477
+ inside: {
2478
+ delimiter: { pattern: /^`|`$/, alias: 'punctuation' },
2479
+ script: {
2480
+ pattern: /[\s\S]+/,
2481
+ alias: 'language-javascript',
2482
+ inside: u.languages.javascript,
2483
+ },
2484
+ },
2485
+ },
2486
+ 'multiline-string': [
2487
+ { pattern: /'''[\s\S]*?'''/, greedy: !0, alias: 'string' },
2488
+ {
2489
+ pattern: /"""[\s\S]*?"""/,
2490
+ greedy: !0,
2491
+ alias: 'string',
2492
+ inside: { interpolation: d },
2493
+ },
2494
+ ],
2495
+ }),
2496
+ u.languages.insertBefore('coffeescript', 'keyword', {
2497
+ property: /(?!\d)\w+(?=\s*:(?!:))/,
2498
+ }),
2499
+ delete u.languages.coffeescript['template-string'],
2500
+ (u.languages.coffee = u.languages.coffeescript),
2501
+ (function (e) {
2502
+ var t = /[*&][^\s[\]{},]+/,
2503
+ n =
2504
+ /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,
2505
+ a =
2506
+ '(?:' +
2507
+ n.source +
2508
+ '(?:[ ]+' +
2509
+ t.source +
2510
+ ')?|' +
2511
+ t.source +
2512
+ '(?:[ ]+' +
2513
+ n.source +
2514
+ ')?)',
2515
+ r =
2516
+ /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
2517
+ /<PLAIN>/g,
2518
+ function () {
2519
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/
2520
+ .source;
2521
+ },
2522
+ ),
2523
+ o = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2524
+ function i(e, t) {
2525
+ return (
2526
+ (t = (t || '').replace(/m/g, '') + 'm'),
2527
+ RegExp(
2528
+ /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source
2529
+ .replace(/<<prop>>/g, function () {
2530
+ return a;
2531
+ })
2532
+ .replace(/<<value>>/g, function () {
2533
+ return e;
2534
+ }),
2535
+ t,
2536
+ )
2537
+ );
2538
+ }
2539
+ (e.languages.yaml = {
2540
+ scalar: {
2541
+ pattern: RegExp(
2542
+ /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(
2543
+ /<<prop>>/g,
2544
+ function () {
2545
+ return a;
2546
+ },
2547
+ ),
2548
+ ),
2549
+ lookbehind: !0,
2550
+ alias: 'string',
2551
+ },
2552
+ comment: /#.*/,
2553
+ key: {
2554
+ pattern: RegExp(
2555
+ /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source
2556
+ .replace(/<<prop>>/g, function () {
2557
+ return a;
2558
+ })
2559
+ .replace(/<<key>>/g, function () {
2560
+ return '(?:' + r + '|' + o + ')';
2561
+ }),
2562
+ ),
2563
+ lookbehind: !0,
2564
+ greedy: !0,
2565
+ alias: 'atrule',
2566
+ },
2567
+ directive: {
2568
+ pattern: /(^[ \t]*)%.+/m,
2569
+ lookbehind: !0,
2570
+ alias: 'important',
2571
+ },
2572
+ datetime: {
2573
+ pattern: i(
2574
+ /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/
2575
+ .source,
2576
+ ),
2577
+ lookbehind: !0,
2578
+ alias: 'number',
2579
+ },
2580
+ boolean: {
2581
+ pattern: i(/false|true/.source, 'i'),
2582
+ lookbehind: !0,
2583
+ alias: 'important',
2584
+ },
2585
+ null: {
2586
+ pattern: i(/null|~/.source, 'i'),
2587
+ lookbehind: !0,
2588
+ alias: 'important',
2589
+ },
2590
+ string: { pattern: i(o), lookbehind: !0, greedy: !0 },
2591
+ number: {
2592
+ pattern: i(
2593
+ /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/
2594
+ .source,
2595
+ 'i',
2596
+ ),
2597
+ lookbehind: !0,
2598
+ },
2599
+ tag: n,
2600
+ important: t,
2601
+ punctuation: /---|[:[\]{}\-,|>?]|\.\.\./,
2602
+ }),
2603
+ (e.languages.yml = e.languages.yaml);
2604
+ })(I),
2605
+ (function (e) {
2606
+ var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
2607
+ function n(e) {
2608
+ return (
2609
+ (e = e.replace(/<inner>/g, function () {
2610
+ return t;
2611
+ })),
2612
+ RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + '(?:' + e + ')')
2613
+ );
2614
+ }
2615
+ var a = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/
2616
+ .source,
2617
+ r = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
2618
+ /__/g,
2619
+ function () {
2620
+ return a;
2621
+ },
2622
+ ),
2623
+ o =
2624
+ /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/
2625
+ .source;
2626
+ (e.languages.markdown = e.languages.extend('markup', {})),
2627
+ e.languages.insertBefore('markdown', 'prolog', {
2628
+ 'front-matter-block': {
2629
+ pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
2630
+ lookbehind: !0,
2631
+ greedy: !0,
2632
+ inside: {
2633
+ 'punctuation': /^---|---$/,
2634
+ 'front-matter': {
2635
+ pattern: /\S+(?:\s+\S+)*/,
2636
+ alias: ['yaml', 'language-yaml'],
2637
+ inside: e.languages.yaml,
2638
+ },
2639
+ },
2640
+ },
2641
+ 'blockquote': {
2642
+ pattern: /^>(?:[\t ]*>)*/m,
2643
+ alias: 'punctuation',
2644
+ },
2645
+ 'table': {
2646
+ pattern: RegExp('^' + r + o + '(?:' + r + ')*', 'm'),
2647
+ inside: {
2648
+ 'table-data-rows': {
2649
+ pattern: RegExp('^(' + r + o + ')(?:' + r + ')*$'),
2650
+ lookbehind: !0,
2651
+ inside: {
2652
+ 'table-data': {
2653
+ pattern: RegExp(a),
2654
+ inside: e.languages.markdown,
2655
+ },
2656
+ 'punctuation': /\|/,
2657
+ },
2658
+ },
2659
+ 'table-line': {
2660
+ pattern: RegExp('^(' + r + ')' + o + '$'),
2661
+ lookbehind: !0,
2662
+ inside: { punctuation: /\||:?-{3,}:?/ },
2663
+ },
2664
+ 'table-header-row': {
2665
+ pattern: RegExp('^' + r + '$'),
2666
+ inside: {
2667
+ 'table-header': {
2668
+ pattern: RegExp(a),
2669
+ alias: 'important',
2670
+ inside: e.languages.markdown,
2671
+ },
2672
+ 'punctuation': /\|/,
2673
+ },
2674
+ },
2675
+ },
2676
+ },
2677
+ 'code': [
2678
+ {
2679
+ pattern:
2680
+ /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
2681
+ lookbehind: !0,
2682
+ alias: 'keyword',
2683
+ },
2684
+ {
2685
+ pattern: /^```[\s\S]*?^```$/m,
2686
+ greedy: !0,
2687
+ inside: {
2688
+ 'code-block': {
2689
+ pattern:
2690
+ /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
2691
+ lookbehind: !0,
2692
+ },
2693
+ 'code-language': { pattern: /^(```).+/, lookbehind: !0 },
2694
+ 'punctuation': /```/,
2695
+ },
2696
+ },
2697
+ ],
2698
+ 'title': [
2699
+ {
2700
+ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
2701
+ alias: 'important',
2702
+ inside: { punctuation: /==+$|--+$/ },
2703
+ },
2704
+ {
2705
+ pattern: /(^\s*)#.+/m,
2706
+ lookbehind: !0,
2707
+ alias: 'important',
2708
+ inside: { punctuation: /^#+|#+$/ },
2709
+ },
2710
+ ],
2711
+ 'hr': {
2712
+ pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
2713
+ lookbehind: !0,
2714
+ alias: 'punctuation',
2715
+ },
2716
+ 'list': {
2717
+ pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
2718
+ lookbehind: !0,
2719
+ alias: 'punctuation',
2720
+ },
2721
+ 'url-reference': {
2722
+ pattern:
2723
+ /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
2724
+ inside: {
2725
+ variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 },
2726
+ string:
2727
+ /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
2728
+ punctuation: /^[\[\]!:]|[<>]/,
2729
+ },
2730
+ alias: 'url',
2731
+ },
2732
+ 'bold': {
2733
+ pattern: n(
2734
+ /\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/
2735
+ .source,
2736
+ ),
2737
+ lookbehind: !0,
2738
+ greedy: !0,
2739
+ inside: {
2740
+ content: {
2741
+ pattern: /(^..)[\s\S]+(?=..$)/,
2742
+ lookbehind: !0,
2743
+ inside: {},
2744
+ },
2745
+ punctuation: /\*\*|__/,
2746
+ },
2747
+ },
2748
+ 'italic': {
2749
+ pattern: n(
2750
+ /\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/
2751
+ .source,
2752
+ ),
2753
+ lookbehind: !0,
2754
+ greedy: !0,
2755
+ inside: {
2756
+ content: {
2757
+ pattern: /(^.)[\s\S]+(?=.$)/,
2758
+ lookbehind: !0,
2759
+ inside: {},
2760
+ },
2761
+ punctuation: /[*_]/,
2762
+ },
2763
+ },
2764
+ 'strike': {
2765
+ pattern: n(/(~~?)(?:(?!~)<inner>)+\2/.source),
2766
+ lookbehind: !0,
2767
+ greedy: !0,
2768
+ inside: {
2769
+ content: {
2770
+ pattern: /(^~~?)[\s\S]+(?=\1$)/,
2771
+ lookbehind: !0,
2772
+ inside: {},
2773
+ },
2774
+ punctuation: /~~?/,
2775
+ },
2776
+ },
2777
+ 'code-snippet': {
2778
+ pattern:
2779
+ /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
2780
+ lookbehind: !0,
2781
+ greedy: !0,
2782
+ alias: ['code', 'keyword'],
2783
+ },
2784
+ 'url': {
2785
+ pattern: n(
2786
+ /!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/
2787
+ .source,
2788
+ ),
2789
+ lookbehind: !0,
2790
+ greedy: !0,
2791
+ inside: {
2792
+ operator: /^!/,
2793
+ content: {
2794
+ pattern: /(^\[)[^\]]+(?=\])/,
2795
+ lookbehind: !0,
2796
+ inside: {},
2797
+ },
2798
+ variable: {
2799
+ pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
2800
+ lookbehind: !0,
2801
+ },
2802
+ url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 },
2803
+ string: {
2804
+ pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
2805
+ lookbehind: !0,
2806
+ },
2807
+ },
2808
+ },
2809
+ }),
2810
+ ['url', 'bold', 'italic', 'strike'].forEach(function (t) {
2811
+ ['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(
2812
+ function (n) {
2813
+ t !== n &&
2814
+ (e.languages.markdown[t].inside.content.inside[n] =
2815
+ e.languages.markdown[n]);
2816
+ },
2817
+ );
2818
+ }),
2819
+ e.hooks.add('after-tokenize', function (e) {
2820
+ ('markdown' === e.language || 'md' === e.language) &&
2821
+ (function e(t) {
2822
+ if (t && 'string' != typeof t)
2823
+ for (var n = 0, a = t.length; n < a; n++) {
2824
+ var r = t[n];
2825
+ if ('code' !== r.type) {
2826
+ e(r.content);
2827
+ continue;
2828
+ }
2829
+ var o = r.content[1],
2830
+ i = r.content[3];
2831
+ if (
2832
+ o &&
2833
+ i &&
2834
+ 'code-language' === o.type &&
2835
+ 'code-block' === i.type &&
2836
+ 'string' == typeof o.content
2837
+ ) {
2838
+ var s = o.content
2839
+ .replace(/\b#/g, 'sharp')
2840
+ .replace(/\b\+\+/g, 'pp'),
2841
+ l =
2842
+ 'language-' +
2843
+ (s = (/[a-z][\w-]*/i.exec(s) || [
2844
+ '',
2845
+ ])[0].toLowerCase());
2846
+ i.alias
2847
+ ? 'string' == typeof i.alias
2848
+ ? (i.alias = [i.alias, l])
2849
+ : i.alias.push(l)
2850
+ : (i.alias = [l]);
2851
+ }
2852
+ }
2853
+ })(e.tokens);
2854
+ }),
2855
+ e.hooks.add('wrap', function (t) {
2856
+ if ('code-block' === t.type) {
2857
+ for (var n, a = '', r = 0, o = t.classes.length; r < o; r++) {
2858
+ var u = t.classes[r],
2859
+ c = /language-(.+)/.exec(u);
2860
+ if (c) {
2861
+ a = c[1];
2862
+ break;
2863
+ }
2864
+ }
2865
+ var d = e.languages[a];
2866
+ if (d)
2867
+ t.content = e.highlight(
2868
+ t.content
2869
+ .replace(i, '')
2870
+ .replace(
2871
+ /&(\w{1,8}|#x?[\da-f]{1,8});/gi,
2872
+ function (e, t) {
2873
+ return '#' === (t = t.toLowerCase())[0]
2874
+ ? l(
2875
+ 'x' === t[1]
2876
+ ? parseInt(t.slice(2), 16)
2877
+ : Number(t.slice(1)),
2878
+ )
2879
+ : s[t] || e;
2880
+ },
2881
+ ),
2882
+ d,
2883
+ a,
2884
+ );
2885
+ else if (a && 'none' !== a && e.plugins.autoloader) {
2886
+ var p =
2887
+ 'md-' +
2888
+ new Date().valueOf() +
2889
+ '-' +
2890
+ Math.floor(1e16 * Math.random());
2891
+ (t.attributes.id = p),
2892
+ e.plugins.autoloader.loadLanguages(a, function () {
2893
+ var t = document.getElementById(p);
2894
+ t &&
2895
+ (t.innerHTML = e.highlight(
2896
+ t.textContent,
2897
+ e.languages[a],
2898
+ a,
2899
+ ));
2900
+ });
2901
+ }
2902
+ }
2903
+ });
2904
+ var i = RegExp(e.languages.markup.tag.pattern.source, 'gi'),
2905
+ s = { amp: '&', lt: '<', gt: '>', quot: '"' },
2906
+ l = String.fromCodePoint || String.fromCharCode;
2907
+ e.languages.md = e.languages.markdown;
2908
+ })(I),
2909
+ (I.languages.graphql = {
2910
+ 'comment': /#.*/,
2911
+ 'description': {
2912
+ pattern:
2913
+ /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,
2914
+ greedy: !0,
2915
+ alias: 'string',
2916
+ inside: {
2917
+ 'language-markdown': {
2918
+ pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,
2919
+ lookbehind: !0,
2920
+ inside: I.languages.markdown,
2921
+ },
2922
+ },
2923
+ },
2924
+ 'string': {
2925
+ pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,
2926
+ greedy: !0,
2927
+ },
2928
+ 'number': /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2929
+ 'boolean': /\b(?:false|true)\b/,
2930
+ 'variable': /\$[a-z_]\w*/i,
2931
+ 'directive': { pattern: /@[a-z_]\w*/i, alias: 'function' },
2932
+ 'attr-name': {
2933
+ pattern:
2934
+ /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,
2935
+ greedy: !0,
2936
+ },
2937
+ 'atom-input': { pattern: /\b[A-Z]\w*Input\b/, alias: 'class-name' },
2938
+ 'scalar': /\b(?:Boolean|Float|ID|Int|String)\b/,
2939
+ 'constant': /\b[A-Z][A-Z_\d]*\b/,
2940
+ 'class-name': {
2941
+ pattern:
2942
+ /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,
2943
+ lookbehind: !0,
2944
+ },
2945
+ 'fragment': {
2946
+ pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,
2947
+ lookbehind: !0,
2948
+ alias: 'function',
2949
+ },
2950
+ 'definition-mutation': {
2951
+ pattern: /(\bmutation\s+)[a-zA-Z_]\w*/,
2952
+ lookbehind: !0,
2953
+ alias: 'function',
2954
+ },
2955
+ 'definition-query': {
2956
+ pattern: /(\bquery\s+)[a-zA-Z_]\w*/,
2957
+ lookbehind: !0,
2958
+ alias: 'function',
2959
+ },
2960
+ 'keyword':
2961
+ /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,
2962
+ 'operator': /[!=|&]|\.{3}/,
2963
+ 'property-query': /\w+(?=\s*\()/,
2964
+ 'object': /\w+(?=\s*\{)/,
2965
+ 'punctuation': /[!(){}\[\]:=,]/,
2966
+ 'property': /\w+/,
2967
+ }),
2968
+ I.hooks.add('after-tokenize', function (e) {
2969
+ if ('graphql' === e.language)
2970
+ for (
2971
+ var t = e.tokens.filter(function (e) {
2972
+ return (
2973
+ 'string' != typeof e &&
2974
+ 'comment' !== e.type &&
2975
+ 'scalar' !== e.type
2976
+ );
2977
+ }),
2978
+ n = 0;
2979
+ n < t.length;
2980
+
2981
+ ) {
2982
+ var a = t[n++];
2983
+ if ('keyword' === a.type && 'mutation' === a.content) {
2984
+ var r = [];
2985
+ if (
2986
+ c(['definition-mutation', 'punctuation']) &&
2987
+ '(' === t[n + 1].content
2988
+ ) {
2989
+ n += 2;
2990
+ var o = d(/^\($/, /^\)$/);
2991
+ if (-1 === o) continue;
2992
+ for (; n < o; n++) {
2993
+ var i = t[n + 0];
2994
+ 'variable' === i.type &&
2995
+ (p(i, 'variable-input'), r.push(i.content));
2996
+ }
2997
+ n = o + 1;
2998
+ }
2999
+ if (
3000
+ c(['punctuation', 'property-query']) &&
3001
+ '{' === t[n + 0].content &&
3002
+ (p(t[++n + 0], 'property-mutation'), r.length > 0)
3003
+ ) {
3004
+ var s = d(/^\{$/, /^\}$/);
3005
+ if (-1 === s) continue;
3006
+ for (var l = n; l < s; l++) {
3007
+ var u = t[l];
3008
+ 'variable' === u.type &&
3009
+ r.indexOf(u.content) >= 0 &&
3010
+ p(u, 'variable-input');
3011
+ }
3012
+ }
3013
+ }
3014
+ }
3015
+ function c(e, a) {
3016
+ a = a || 0;
3017
+ for (var r = 0; r < e.length; r++) {
3018
+ var o = t[n + (r + a)];
3019
+ if (!o || o.type !== e[r]) return !1;
3020
+ }
3021
+ return !0;
3022
+ }
3023
+ function d(e, a) {
3024
+ for (var r = 1, o = n; o < t.length; o++) {
3025
+ var i = t[o],
3026
+ s = i.content;
3027
+ if ('punctuation' === i.type && 'string' == typeof s) {
3028
+ if (e.test(s)) r++;
3029
+ else if (a.test(s) && 0 == --r) return o;
3030
+ }
3031
+ }
3032
+ return -1;
3033
+ }
3034
+ function p(e, t) {
3035
+ var n = e.alias;
3036
+ n ? Array.isArray(n) || (e.alias = n = [n]) : (e.alias = n = []),
3037
+ n.push(t);
3038
+ }
3039
+ }),
3040
+ (I.languages.sql = {
3041
+ comment: {
3042
+ pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
3043
+ lookbehind: !0,
3044
+ },
3045
+ variable: [
3046
+ { pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 },
3047
+ /@[\w.$]+/,
3048
+ ],
3049
+ string: {
3050
+ pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
3051
+ greedy: !0,
3052
+ lookbehind: !0,
3053
+ },
3054
+ identifier: {
3055
+ pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
3056
+ greedy: !0,
3057
+ lookbehind: !0,
3058
+ inside: { punctuation: /^`|`$/ },
3059
+ },
3060
+ function:
3061
+ /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
3062
+ keyword:
3063
+ /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
3064
+ boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
3065
+ number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
3066
+ operator:
3067
+ /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
3068
+ punctuation: /[;[\]()`,.]/,
3069
+ }),
3070
+ (function (e) {
3071
+ var t = e.languages.javascript['template-string'],
3072
+ n = t.pattern.source,
3073
+ a = t.inside.interpolation,
3074
+ r = a.inside['interpolation-punctuation'],
3075
+ o = a.pattern.source;
3076
+ function i(t, a) {
3077
+ if (e.languages[t])
3078
+ return {
3079
+ pattern: RegExp('((?:' + a + ')\\s*)' + n),
3080
+ lookbehind: !0,
3081
+ greedy: !0,
3082
+ inside: {
3083
+ 'template-punctuation': { pattern: /^`|`$/, alias: 'string' },
3084
+ 'embedded-code': { pattern: /[\s\S]+/, alias: t },
3085
+ },
3086
+ };
3087
+ }
3088
+ function s(t, n, a) {
3089
+ var r = { code: t, grammar: n, language: a };
3090
+ return (
3091
+ e.hooks.run('before-tokenize', r),
3092
+ (r.tokens = e.tokenize(r.code, r.grammar)),
3093
+ e.hooks.run('after-tokenize', r),
3094
+ r.tokens
3095
+ );
3096
+ }
3097
+ e.languages.javascript['template-string'] = [
3098
+ i(
3099
+ 'css',
3100
+ /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/
3101
+ .source,
3102
+ ),
3103
+ i('html', /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),
3104
+ i('svg', /\bsvg/.source),
3105
+ i('markdown', /\b(?:markdown|md)/.source),
3106
+ i('graphql', /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),
3107
+ i('sql', /\bsql/.source),
3108
+ t,
3109
+ ].filter(Boolean);
3110
+ var l = {
3111
+ javascript: !0,
3112
+ js: !0,
3113
+ typescript: !0,
3114
+ ts: !0,
3115
+ jsx: !0,
3116
+ tsx: !0,
3117
+ };
3118
+ e.hooks.add('after-tokenize', function (t) {
3119
+ t.language in l &&
3120
+ (function t(n) {
3121
+ for (var i = 0, l = n.length; i < l; i++) {
3122
+ var u = n[i];
3123
+ if ('string' != typeof u) {
3124
+ var c = u.content;
3125
+ if (!Array.isArray(c)) {
3126
+ 'string' != typeof c && t([c]);
3127
+ continue;
3128
+ }
3129
+ if ('template-string' === u.type) {
3130
+ var d = c[1];
3131
+ if (
3132
+ 3 === c.length &&
3133
+ 'string' != typeof d &&
3134
+ 'embedded-code' === d.type
3135
+ ) {
3136
+ var p = (function e(t) {
3137
+ return 'string' == typeof t
3138
+ ? t
3139
+ : Array.isArray(t)
3140
+ ? t.map(e).join('')
3141
+ : e(t.content);
3142
+ })(d),
3143
+ g = d.alias,
3144
+ f = Array.isArray(g) ? g[0] : g,
3145
+ m = e.languages[f];
3146
+ if (!m) continue;
3147
+ c[1] = (function (t, n, i) {
3148
+ var l = e.tokenize(t, {
3149
+ interpolation: {
3150
+ pattern: RegExp(o),
3151
+ lookbehind: !0,
3152
+ },
3153
+ }),
3154
+ u = 0,
3155
+ c = {},
3156
+ d = s(
3157
+ l
3158
+ .map(function (e) {
3159
+ if ('string' == typeof e) return e;
3160
+ for (
3161
+ var n, a, r = e.content;
3162
+ -1 !==
3163
+ t.indexOf(
3164
+ ((n = u++),
3165
+ (a =
3166
+ '___' +
3167
+ i.toUpperCase() +
3168
+ '_' +
3169
+ n +
3170
+ '___')),
3171
+ );
3172
+
3173
+ );
3174
+ return (c[a] = r), a;
3175
+ })
3176
+ .join(''),
3177
+ n,
3178
+ i,
3179
+ ),
3180
+ p = Object.keys(c);
3181
+ return (
3182
+ (u = 0),
3183
+ (function t(n) {
3184
+ for (var o = 0; o < n.length; o++) {
3185
+ if (u >= p.length) return;
3186
+ var i = n[o];
3187
+ if (
3188
+ 'string' == typeof i ||
3189
+ 'string' == typeof i.content
3190
+ ) {
3191
+ var l = p[u],
3192
+ d = 'string' == typeof i ? i : i.content,
3193
+ g = d.indexOf(l);
3194
+ if (-1 !== g) {
3195
+ ++u;
3196
+ var f = d.substring(0, g),
3197
+ m = (function (t) {
3198
+ var n = {};
3199
+ n['interpolation-punctuation'] = r;
3200
+ var o = e.tokenize(t, n);
3201
+ if (3 === o.length) {
3202
+ var i = [1, 1];
3203
+ i.push.apply(
3204
+ i,
3205
+ s(
3206
+ o[1],
3207
+ e.languages.javascript,
3208
+ 'javascript',
3209
+ ),
3210
+ ),
3211
+ o.splice.apply(o, i);
3212
+ }
3213
+ return new e.Token(
3214
+ 'interpolation',
3215
+ o,
3216
+ a.alias,
3217
+ t,
3218
+ );
3219
+ })(c[l]),
3220
+ b = d.substring(g + l.length),
3221
+ h = [];
3222
+ if ((f && h.push(f), h.push(m), b)) {
3223
+ var y = [b];
3224
+ t(y), h.push.apply(h, y);
3225
+ }
3226
+ 'string' == typeof i
3227
+ ? (n.splice.apply(n, [o, 1].concat(h)),
3228
+ (o += h.length - 1))
3229
+ : (i.content = h);
3230
+ }
3231
+ } else {
3232
+ var v = i.content;
3233
+ Array.isArray(v) ? t(v) : t([v]);
3234
+ }
3235
+ }
3236
+ })(d),
3237
+ new e.Token(i, d, 'language-' + i, t)
3238
+ );
3239
+ })(p, m, f);
3240
+ }
3241
+ } else t(c);
3242
+ }
3243
+ }
3244
+ })(t.tokens);
3245
+ });
3246
+ })(I),
3247
+ ((p = I).languages.typescript = p.languages.extend('javascript', {
3248
+ 'class-name': {
3249
+ pattern:
3250
+ /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
3251
+ lookbehind: !0,
3252
+ greedy: !0,
3253
+ inside: null,
3254
+ },
3255
+ 'builtin':
3256
+ /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/,
3257
+ })),
3258
+ p.languages.typescript.keyword.push(
3259
+ /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
3260
+ /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
3261
+ /\btype\b(?=\s*(?:[\{*]|$))/,
3262
+ ),
3263
+ delete p.languages.typescript.parameter,
3264
+ delete p.languages.typescript['literal-property'],
3265
+ delete (g = p.languages.extend('typescript', {}))['class-name'],
3266
+ (p.languages.typescript['class-name'].inside = g),
3267
+ p.languages.insertBefore('typescript', 'function', {
3268
+ 'decorator': {
3269
+ pattern: /@[$\w\xA0-\uFFFF]+/,
3270
+ inside: {
3271
+ at: { pattern: /^@/, alias: 'operator' },
3272
+ function: /^[\s\S]+/,
3273
+ },
3274
+ },
3275
+ 'generic-function': {
3276
+ pattern:
3277
+ /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
3278
+ greedy: !0,
3279
+ inside: {
3280
+ function:
3281
+ /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
3282
+ generic: { pattern: /<[\s\S]+/, alias: 'class-name', inside: g },
3283
+ },
3284
+ },
3285
+ }),
3286
+ (p.languages.ts = p.languages.typescript),
3287
+ (function (e) {
3288
+ function t(e, t) {
3289
+ return RegExp(
3290
+ e.replace(/<ID>/g, function () {
3291
+ return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/
3292
+ .source;
3293
+ }),
3294
+ t,
3295
+ );
3296
+ }
3297
+ e.languages.insertBefore('javascript', 'function-variable', {
3298
+ 'method-variable': {
3299
+ pattern: RegExp(
3300
+ '(\\.\\s*)' +
3301
+ e.languages.javascript['function-variable'].pattern.source,
3302
+ ),
3303
+ lookbehind: !0,
3304
+ alias: [
3305
+ 'function-variable',
3306
+ 'method',
3307
+ 'function',
3308
+ 'property-access',
3309
+ ],
3310
+ },
3311
+ }),
3312
+ e.languages.insertBefore('javascript', 'function', {
3313
+ method: {
3314
+ pattern: RegExp(
3315
+ '(\\.\\s*)' + e.languages.javascript.function.source,
3316
+ ),
3317
+ lookbehind: !0,
3318
+ alias: ['function', 'property-access'],
3319
+ },
3320
+ }),
3321
+ e.languages.insertBefore('javascript', 'constant', {
3322
+ 'known-class-name': [
3323
+ {
3324
+ pattern:
3325
+ /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,
3326
+ alias: 'class-name',
3327
+ },
3328
+ { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: 'class-name' },
3329
+ ],
3330
+ }),
3331
+ e.languages.insertBefore('javascript', 'keyword', {
3332
+ imports: {
3333
+ pattern: t(
3334
+ /(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/
3335
+ .source,
3336
+ ),
3337
+ lookbehind: !0,
3338
+ inside: e.languages.javascript,
3339
+ },
3340
+ exports: {
3341
+ pattern: t(
3342
+ /(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/
3343
+ .source,
3344
+ ),
3345
+ lookbehind: !0,
3346
+ inside: e.languages.javascript,
3347
+ },
3348
+ }),
3349
+ e.languages.javascript.keyword.unshift(
3350
+ {
3351
+ pattern: /\b(?:as|default|export|from|import)\b/,
3352
+ alias: 'module',
3353
+ },
3354
+ {
3355
+ pattern:
3356
+ /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,
3357
+ alias: 'control-flow',
3358
+ },
3359
+ { pattern: /\bnull\b/, alias: ['null', 'nil'] },
3360
+ { pattern: /\bundefined\b/, alias: 'nil' },
3361
+ ),
3362
+ e.languages.insertBefore('javascript', 'operator', {
3363
+ spread: { pattern: /\.{3}/, alias: 'operator' },
3364
+ arrow: { pattern: /=>/, alias: 'operator' },
3365
+ }),
3366
+ e.languages.insertBefore('javascript', 'punctuation', {
3367
+ 'property-access': {
3368
+ pattern: t(/(\.\s*)#?<ID>/.source),
3369
+ lookbehind: !0,
3370
+ },
3371
+ 'maybe-class-name': {
3372
+ pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,
3373
+ lookbehind: !0,
3374
+ },
3375
+ 'dom': {
3376
+ pattern:
3377
+ /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,
3378
+ alias: 'variable',
3379
+ },
3380
+ 'console': { pattern: /\bconsole(?=\s*\.)/, alias: 'class-name' },
3381
+ });
3382
+ for (
3383
+ var n = [
3384
+ 'function',
3385
+ 'function-variable',
3386
+ 'method',
3387
+ 'method-variable',
3388
+ 'property-access',
3389
+ ],
3390
+ a = 0;
3391
+ a < n.length;
3392
+ a++
3393
+ ) {
3394
+ var r = n[a],
3395
+ o = e.languages.javascript[r];
3396
+ 'RegExp' === e.util.type(o) &&
3397
+ (o = e.languages.javascript[r] = { pattern: o });
3398
+ var i = o.inside || {};
3399
+ (o.inside = i), (i['maybe-class-name'] = /^[A-Z][\s\S]*/);
3400
+ }
3401
+ })(I),
3402
+ (function (e) {
3403
+ var t = e.util.clone(e.languages.javascript),
3404
+ n = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,
3405
+ a = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,
3406
+ r = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
3407
+ function o(e, t) {
3408
+ return RegExp(
3409
+ (e = e
3410
+ .replace(/<S>/g, function () {
3411
+ return n;
3412
+ })
3413
+ .replace(/<BRACES>/g, function () {
3414
+ return a;
3415
+ })
3416
+ .replace(/<SPREAD>/g, function () {
3417
+ return r;
3418
+ })),
3419
+ t,
3420
+ );
3421
+ }
3422
+ (r = o(r).source),
3423
+ (e.languages.jsx = e.languages.extend('markup', t)),
3424
+ (e.languages.jsx.tag.pattern = o(
3425
+ /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/
3426
+ .source,
3427
+ )),
3428
+ (e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/),
3429
+ (e.languages.jsx.tag.inside['attr-value'].pattern =
3430
+ /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/),
3431
+ (e.languages.jsx.tag.inside.tag.inside['class-name'] =
3432
+ /^[A-Z]\w*(?:\.[A-Z]\w*)*$/),
3433
+ (e.languages.jsx.tag.inside.comment = t.comment),
3434
+ e.languages.insertBefore(
3435
+ 'inside',
3436
+ 'attr-name',
3437
+ {
3438
+ spread: {
3439
+ pattern: o(/<SPREAD>/.source),
3440
+ inside: e.languages.jsx,
3441
+ },
3442
+ },
3443
+ e.languages.jsx.tag,
3444
+ ),
3445
+ e.languages.insertBefore(
3446
+ 'inside',
3447
+ 'special-attr',
3448
+ {
3449
+ script: {
3450
+ pattern: o(/=<BRACES>/.source),
3451
+ alias: 'language-javascript',
3452
+ inside: {
3453
+ 'script-punctuation': {
3454
+ pattern: /^=(?=\{)/,
3455
+ alias: 'punctuation',
3456
+ },
3457
+ 'rest': e.languages.jsx,
3458
+ },
3459
+ },
3460
+ },
3461
+ e.languages.jsx.tag,
3462
+ );
3463
+ var i = function (e) {
3464
+ return e
3465
+ ? 'string' == typeof e
3466
+ ? e
3467
+ : 'string' == typeof e.content
3468
+ ? e.content
3469
+ : e.content.map(i).join('')
3470
+ : '';
3471
+ },
3472
+ s = function (t) {
3473
+ for (var n = [], a = 0; a < t.length; a++) {
3474
+ var r = t[a],
3475
+ o = !1;
3476
+ if (
3477
+ ('string' != typeof r &&
3478
+ ('tag' === r.type &&
3479
+ r.content[0] &&
3480
+ 'tag' === r.content[0].type
3481
+ ? '</' === r.content[0].content[0].content
3482
+ ? n.length > 0 &&
3483
+ n[n.length - 1].tagName ===
3484
+ i(r.content[0].content[1]) &&
3485
+ n.pop()
3486
+ : '/>' === r.content[r.content.length - 1].content ||
3487
+ n.push({
3488
+ tagName: i(r.content[0].content[1]),
3489
+ openedBraces: 0,
3490
+ })
3491
+ : n.length > 0 &&
3492
+ 'punctuation' === r.type &&
3493
+ '{' === r.content
3494
+ ? n[n.length - 1].openedBraces++
3495
+ : n.length > 0 &&
3496
+ n[n.length - 1].openedBraces > 0 &&
3497
+ 'punctuation' === r.type &&
3498
+ '}' === r.content
3499
+ ? n[n.length - 1].openedBraces--
3500
+ : (o = !0)),
3501
+ (o || 'string' == typeof r) &&
3502
+ n.length > 0 &&
3503
+ 0 === n[n.length - 1].openedBraces)
3504
+ ) {
3505
+ var l = i(r);
3506
+ a < t.length - 1 &&
3507
+ ('string' == typeof t[a + 1] ||
3508
+ 'plain-text' === t[a + 1].type) &&
3509
+ ((l += i(t[a + 1])), t.splice(a + 1, 1)),
3510
+ a > 0 &&
3511
+ ('string' == typeof t[a - 1] ||
3512
+ 'plain-text' === t[a - 1].type) &&
3513
+ ((l = i(t[a - 1]) + l), t.splice(a - 1, 1), a--),
3514
+ (t[a] = new e.Token('plain-text', l, null, l));
3515
+ }
3516
+ r.content && 'string' != typeof r.content && s(r.content);
3517
+ }
3518
+ };
3519
+ e.hooks.add('after-tokenize', function (e) {
3520
+ ('jsx' === e.language || 'tsx' === e.language) && s(e.tokens);
3521
+ });
3522
+ })(I),
3523
+ ((f = I).languages.diff = {
3524
+ coord: [/^(?:\*{3}|-{3}|\+{3}).*$/m, /^@@.*@@$/m, /^\d.*$/m],
3525
+ }),
3526
+ Object.keys(
3527
+ (m = {
3528
+ 'deleted-sign': '-',
3529
+ 'deleted-arrow': '<',
3530
+ 'inserted-sign': '+',
3531
+ 'inserted-arrow': '>',
3532
+ 'unchanged': ' ',
3533
+ 'diff': '!',
3534
+ }),
3535
+ ).forEach(function (e) {
3536
+ var t = m[e],
3537
+ n = [];
3538
+ /^\w+$/.test(e) || n.push(/\w+/.exec(e)[0]),
3539
+ 'diff' === e && n.push('bold'),
3540
+ (f.languages.diff[e] = {
3541
+ pattern: RegExp(
3542
+ '^(?:[' + t + '].*(?:\r\n?|\n|(?![\\s\\S])))+',
3543
+ 'm',
3544
+ ),
3545
+ alias: n,
3546
+ inside: {
3547
+ line: {
3548
+ pattern: /(.)(?=[\s\S]).*(?:\r\n?|\n)?/,
3549
+ lookbehind: !0,
3550
+ },
3551
+ prefix: { pattern: /[\s\S]/, alias: /\w+/.exec(e)[0] },
3552
+ },
3553
+ });
3554
+ }),
3555
+ Object.defineProperty(f.languages.diff, 'PREFIXES', { value: m }),
3556
+ (I.languages.git = {
3557
+ 'comment': /^#.*/m,
3558
+ 'deleted': /^[-–].*/m,
3559
+ 'inserted': /^\+.*/m,
3560
+ 'string': /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
3561
+ 'command': {
3562
+ pattern: /^.*\$ git .*$/m,
3563
+ inside: { parameter: /\s--?\w+/ },
3564
+ },
3565
+ 'coord': /^@@.*@@$/m,
3566
+ 'commit-sha1': /^commit \w{40}$/m,
3567
+ }),
3568
+ (I.languages.go = I.languages.extend('clike', {
3569
+ string: {
3570
+ pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
3571
+ lookbehind: !0,
3572
+ greedy: !0,
3573
+ },
3574
+ keyword:
3575
+ /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
3576
+ boolean: /\b(?:_|false|iota|nil|true)\b/,
3577
+ number: [
3578
+ /\b0(?:b[01_]+|o[0-7_]+)i?\b/i,
3579
+ /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,
3580
+ /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i,
3581
+ ],
3582
+ operator:
3583
+ /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
3584
+ builtin:
3585
+ /\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/,
3586
+ })),
3587
+ I.languages.insertBefore('go', 'string', {
3588
+ char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 },
3589
+ }),
3590
+ delete I.languages.go['class-name'],
3591
+ (function (e) {
3592
+ function t(e, t) {
3593
+ return '___' + e.toUpperCase() + t + '___';
3594
+ }
3595
+ Object.defineProperties((e.languages['markup-templating'] = {}), {
3596
+ buildPlaceholders: {
3597
+ value: function (n, a, r, o) {
3598
+ if (n.language === a) {
3599
+ var i = (n.tokenStack = []);
3600
+ (n.code = n.code.replace(r, function (e) {
3601
+ if ('function' == typeof o && !o(e)) return e;
3602
+ for (
3603
+ var r, s = i.length;
3604
+ -1 !== n.code.indexOf((r = t(a, s)));
3605
+
3606
+ )
3607
+ ++s;
3608
+ return (i[s] = e), r;
3609
+ })),
3610
+ (n.grammar = e.languages.markup);
3611
+ }
3612
+ },
3613
+ },
3614
+ tokenizePlaceholders: {
3615
+ value: function (n, a) {
3616
+ if (n.language === a && n.tokenStack) {
3617
+ n.grammar = e.languages[a];
3618
+ var r = 0,
3619
+ o = Object.keys(n.tokenStack);
3620
+ !(function i(s) {
3621
+ for (var l = 0; l < s.length && !(r >= o.length); l++) {
3622
+ var u = s[l];
3623
+ if (
3624
+ 'string' == typeof u ||
3625
+ (u.content && 'string' == typeof u.content)
3626
+ ) {
3627
+ var c = o[r],
3628
+ d = n.tokenStack[c],
3629
+ p = 'string' == typeof u ? u : u.content,
3630
+ g = t(a, c),
3631
+ f = p.indexOf(g);
3632
+ if (f > -1) {
3633
+ ++r;
3634
+ var m = p.substring(0, f),
3635
+ b = new e.Token(
3636
+ a,
3637
+ e.tokenize(d, n.grammar),
3638
+ 'language-' + a,
3639
+ d,
3640
+ ),
3641
+ h = p.substring(f + g.length),
3642
+ y = [];
3643
+ m && y.push.apply(y, i([m])),
3644
+ y.push(b),
3645
+ h && y.push.apply(y, i([h])),
3646
+ 'string' == typeof u
3647
+ ? s.splice.apply(s, [l, 1].concat(y))
3648
+ : (u.content = y);
3649
+ }
3650
+ } else u.content && i(u.content);
3651
+ }
3652
+ return s;
3653
+ })(n.tokens);
3654
+ }
3655
+ },
3656
+ },
3657
+ });
3658
+ })(I),
3659
+ ((b = I).languages.handlebars = {
3660
+ comment: /\{\{![\s\S]*?\}\}/,
3661
+ delimiter: { pattern: /^\{\{\{?|\}\}\}?$/, alias: 'punctuation' },
3662
+ string: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
3663
+ number:
3664
+ /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,
3665
+ boolean: /\b(?:false|true)\b/,
3666
+ block: {
3667
+ pattern: /^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,
3668
+ lookbehind: !0,
3669
+ alias: 'keyword',
3670
+ },
3671
+ brackets: {
3672
+ pattern: /\[[^\]]+\]/,
3673
+ inside: { punctuation: /\[|\]/, variable: /[\s\S]+/ },
3674
+ },
3675
+ punctuation: /[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,
3676
+ variable: /[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/,
3677
+ }),
3678
+ b.hooks.add('before-tokenize', function (e) {
3679
+ b.languages['markup-templating'].buildPlaceholders(
3680
+ e,
3681
+ 'handlebars',
3682
+ /\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g,
3683
+ );
3684
+ }),
3685
+ b.hooks.add('after-tokenize', function (e) {
3686
+ b.languages['markup-templating'].tokenizePlaceholders(
3687
+ e,
3688
+ 'handlebars',
3689
+ );
3690
+ }),
3691
+ (b.languages.hbs = b.languages.handlebars),
3692
+ (I.languages.json = {
3693
+ property: {
3694
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
3695
+ lookbehind: !0,
3696
+ greedy: !0,
3697
+ },
3698
+ string: {
3699
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
3700
+ lookbehind: !0,
3701
+ greedy: !0,
3702
+ },
3703
+ comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 },
3704
+ number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
3705
+ punctuation: /[{}[\],]/,
3706
+ operator: /:/,
3707
+ boolean: /\b(?:false|true)\b/,
3708
+ null: { pattern: /\bnull\b/, alias: 'keyword' },
3709
+ }),
3710
+ (I.languages.webmanifest = I.languages.json),
3711
+ (I.languages.less = I.languages.extend('css', {
3712
+ comment: [
3713
+ /\/\*[\s\S]*?\*\//,
3714
+ { pattern: /(^|[^\\])\/\/.*/, lookbehind: !0 },
3715
+ ],
3716
+ atrule: {
3717
+ pattern:
3718
+ /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
3719
+ inside: { punctuation: /[:()]/ },
3720
+ },
3721
+ selector: {
3722
+ pattern:
3723
+ /(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,
3724
+ inside: { variable: /@+[\w-]+/ },
3725
+ },
3726
+ property: /(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,
3727
+ operator: /[+\-*\/]/,
3728
+ })),
3729
+ I.languages.insertBefore('less', 'property', {
3730
+ 'variable': [
3731
+ { pattern: /@[\w-]+\s*:/, inside: { punctuation: /:/ } },
3732
+ /@@?[\w-]+/,
3733
+ ],
3734
+ 'mixin-usage': {
3735
+ pattern: /([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,
3736
+ lookbehind: !0,
3737
+ alias: 'function',
3738
+ },
3739
+ }),
3740
+ (I.languages.makefile = {
3741
+ 'comment': {
3742
+ pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
3743
+ lookbehind: !0,
3744
+ },
3745
+ 'string': {
3746
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
3747
+ greedy: !0,
3748
+ },
3749
+ 'builtin-target': {
3750
+ pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
3751
+ alias: 'builtin',
3752
+ },
3753
+ 'target': {
3754
+ pattern: /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,
3755
+ alias: 'symbol',
3756
+ inside: { variable: /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/ },
3757
+ },
3758
+ 'variable': /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
3759
+ 'keyword':
3760
+ /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
3761
+ 'function': {
3762
+ pattern:
3763
+ /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,
3764
+ lookbehind: !0,
3765
+ },
3766
+ 'operator': /(?:::|[?:+!])?=|[|@]/,
3767
+ 'punctuation': /[:;(){}]/,
3768
+ }),
3769
+ (I.languages.objectivec = I.languages.extend('c', {
3770
+ string: {
3771
+ pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
3772
+ greedy: !0,
3773
+ },
3774
+ keyword:
3775
+ /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|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/,
3776
+ operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/,
3777
+ })),
3778
+ delete I.languages.objectivec['class-name'],
3779
+ (I.languages.objc = I.languages.objectivec),
3780
+ (I.languages.ocaml = {
3781
+ 'comment': { pattern: /\(\*[\s\S]*?\*\)/, greedy: !0 },
3782
+ 'char': {
3783
+ pattern: /'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,
3784
+ greedy: !0,
3785
+ },
3786
+ 'string': [
3787
+ { pattern: /"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/, greedy: !0 },
3788
+ { pattern: /\{([a-z_]*)\|[\s\S]*?\|\1\}/, greedy: !0 },
3789
+ ],
3790
+ 'number': [
3791
+ /\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,
3792
+ /\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,
3793
+ /\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i,
3794
+ ],
3795
+ 'directive': { pattern: /\B#\w+/, alias: 'property' },
3796
+ 'label': { pattern: /\B~\w+/, alias: 'property' },
3797
+ 'type-variable': { pattern: /\B'\w+/, alias: 'function' },
3798
+ 'variant': { pattern: /`\w+/, alias: 'symbol' },
3799
+ 'keyword':
3800
+ /\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,
3801
+ 'boolean': /\b(?:false|true)\b/,
3802
+ 'operator-like-punctuation': {
3803
+ pattern: /\[[<>|]|[>|]\]|\{<|>\}/,
3804
+ alias: 'punctuation',
3805
+ },
3806
+ 'operator':
3807
+ /\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,
3808
+ 'punctuation': /;;|::|[(){}\[\].,:;#]|\b_\b/,
3809
+ }),
3810
+ (I.languages.python = {
3811
+ 'comment': { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 },
3812
+ 'string-interpolation': {
3813
+ pattern:
3814
+ /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
3815
+ greedy: !0,
3816
+ inside: {
3817
+ interpolation: {
3818
+ pattern:
3819
+ /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
3820
+ lookbehind: !0,
3821
+ inside: {
3822
+ 'format-spec': {
3823
+ pattern: /(:)[^:(){}]+(?=\}$)/,
3824
+ lookbehind: !0,
3825
+ },
3826
+ 'conversion-option': {
3827
+ pattern: /![sra](?=[:}]$)/,
3828
+ alias: 'punctuation',
3829
+ },
3830
+ 'rest': null,
3831
+ },
3832
+ },
3833
+ string: /[\s\S]+/,
3834
+ },
3835
+ },
3836
+ 'triple-quoted-string': {
3837
+ pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
3838
+ greedy: !0,
3839
+ alias: 'string',
3840
+ },
3841
+ 'string': {
3842
+ pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
3843
+ greedy: !0,
3844
+ },
3845
+ 'function': {
3846
+ pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
3847
+ lookbehind: !0,
3848
+ },
3849
+ 'class-name': { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 },
3850
+ 'decorator': {
3851
+ pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
3852
+ lookbehind: !0,
3853
+ alias: ['annotation', 'punctuation'],
3854
+ inside: { punctuation: /\./ },
3855
+ },
3856
+ 'keyword':
3857
+ /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
3858
+ 'builtin':
3859
+ /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
3860
+ 'boolean': /\b(?:False|None|True)\b/,
3861
+ 'number':
3862
+ /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
3863
+ 'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
3864
+ 'punctuation': /[{}[\];(),.:]/,
3865
+ }),
3866
+ (I.languages.python[
3867
+ 'string-interpolation'
3868
+ ].inside.interpolation.inside.rest = I.languages.python),
3869
+ (I.languages.py = I.languages.python),
3870
+ (I.languages.reason = I.languages.extend('clike', {
3871
+ 'string': {
3872
+ pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
3873
+ greedy: !0,
3874
+ },
3875
+ 'class-name': /\b[A-Z]\w*/,
3876
+ 'keyword':
3877
+ /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,
3878
+ 'operator':
3879
+ /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,
3880
+ })),
3881
+ I.languages.insertBefore('reason', 'class-name', {
3882
+ char: {
3883
+ pattern:
3884
+ /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,
3885
+ greedy: !0,
3886
+ },
3887
+ constructor: /\b[A-Z]\w*\b(?!\s*\.)/,
3888
+ label: { pattern: /\b[a-z]\w*(?=::)/, alias: 'symbol' },
3889
+ }),
3890
+ delete I.languages.reason.function,
3891
+ ((h = I).languages.sass = h.languages.extend('css', {
3892
+ comment: {
3893
+ pattern: /^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,
3894
+ lookbehind: !0,
3895
+ greedy: !0,
3896
+ },
3897
+ })),
3898
+ h.languages.insertBefore('sass', 'atrule', {
3899
+ 'atrule-line': {
3900
+ pattern: /^(?:[ \t]*)[@+=].+/m,
3901
+ greedy: !0,
3902
+ inside: { atrule: /(?:@[\w-]+|[+=])/ },
3903
+ },
3904
+ }),
3905
+ delete h.languages.sass.atrule,
3906
+ (y = /\$[-\w]+|#\{\$[-\w]+\}/),
3907
+ (v = [
3908
+ /[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,
3909
+ { pattern: /(\s)-(?=\s)/, lookbehind: !0 },
3910
+ ]),
3911
+ h.languages.insertBefore('sass', 'property', {
3912
+ 'variable-line': {
3913
+ pattern: /^[ \t]*\$.+/m,
3914
+ greedy: !0,
3915
+ inside: { punctuation: /:/, variable: y, operator: v },
3916
+ },
3917
+ 'property-line': {
3918
+ pattern: /^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,
3919
+ greedy: !0,
3920
+ inside: {
3921
+ property: [
3922
+ /[^:\s]+(?=\s*:)/,
3923
+ { pattern: /(:)[^:\s]+/, lookbehind: !0 },
3924
+ ],
3925
+ punctuation: /:/,
3926
+ variable: y,
3927
+ operator: v,
3928
+ important: h.languages.sass.important,
3929
+ },
3930
+ },
3931
+ }),
3932
+ delete h.languages.sass.property,
3933
+ delete h.languages.sass.important,
3934
+ h.languages.insertBefore('sass', 'punctuation', {
3935
+ selector: {
3936
+ pattern:
3937
+ /^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,
3938
+ lookbehind: !0,
3939
+ greedy: !0,
3940
+ },
3941
+ }),
3942
+ (I.languages.scss = I.languages.extend('css', {
3943
+ comment: {
3944
+ pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
3945
+ lookbehind: !0,
3946
+ },
3947
+ atrule: {
3948
+ pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
3949
+ inside: { rule: /@[\w-]+/ },
3950
+ },
3951
+ url: /(?:[-a-z]+-)?url(?=\()/i,
3952
+ selector: {
3953
+ pattern:
3954
+ /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,
3955
+ inside: {
3956
+ parent: { pattern: /&/, alias: 'important' },
3957
+ placeholder: /%[-\w]+/,
3958
+ variable: /\$[-\w]+|#\{\$[-\w]+\}/,
3959
+ },
3960
+ },
3961
+ property: {
3962
+ pattern: /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,
3963
+ inside: { variable: /\$[-\w]+|#\{\$[-\w]+\}/ },
3964
+ },
3965
+ })),
3966
+ I.languages.insertBefore('scss', 'atrule', {
3967
+ keyword: [
3968
+ /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
3969
+ { pattern: /( )(?:from|through)(?= )/, lookbehind: !0 },
3970
+ ],
3971
+ }),
3972
+ I.languages.insertBefore('scss', 'important', {
3973
+ variable: /\$[-\w]+|#\{\$[-\w]+\}/,
3974
+ }),
3975
+ I.languages.insertBefore('scss', 'function', {
3976
+ 'module-modifier': {
3977
+ pattern: /\b(?:as|hide|show|with)\b/i,
3978
+ alias: 'keyword',
3979
+ },
3980
+ 'placeholder': { pattern: /%[-\w]+/, alias: 'selector' },
3981
+ 'statement': {
3982
+ pattern: /\B!(?:default|optional)\b/i,
3983
+ alias: 'keyword',
3984
+ },
3985
+ 'boolean': /\b(?:false|true)\b/,
3986
+ 'null': { pattern: /\bnull\b/, alias: 'keyword' },
3987
+ 'operator': {
3988
+ pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,
3989
+ lookbehind: !0,
3990
+ },
3991
+ }),
3992
+ (I.languages.scss.atrule.inside.rest = I.languages.scss),
3993
+ (E = I),
3994
+ ((w = {
3995
+ comment: {
3996
+ pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
3997
+ lookbehind: !0,
3998
+ },
3999
+ url: { pattern: /\burl\((["']?).*?\1\)/i, greedy: !0 },
4000
+ string: {
4001
+ pattern: /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,
4002
+ greedy: !0,
4003
+ },
4004
+ interpolation: null,
4005
+ func: null,
4006
+ important: /\B!(?:important|optional)\b/i,
4007
+ keyword: {
4008
+ pattern: /(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,
4009
+ lookbehind: !0,
4010
+ },
4011
+ hexcode: /#[\da-f]{3,6}/i,
4012
+ color: [
4013
+ /\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,
4014
+ {
4015
+ pattern:
4016
+ /\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,
4017
+ inside: {
4018
+ unit: (k = { pattern: /(\b\d+)(?:%|[a-z]+)/, lookbehind: !0 }),
4019
+ number: (S = {
4020
+ pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
4021
+ lookbehind: !0,
4022
+ }),
4023
+ function: /[\w-]+(?=\()/,
4024
+ punctuation: /[(),]/,
4025
+ },
4026
+ },
4027
+ ],
4028
+ entity: /\\[\da-f]{1,8}/i,
4029
+ unit: k,
4030
+ boolean: /\b(?:false|true)\b/,
4031
+ operator: [
4032
+ /~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/,
4033
+ ],
4034
+ number: S,
4035
+ punctuation: /[{}()\[\];:,]/,
4036
+ }).interpolation = {
4037
+ pattern: /\{[^\r\n}:]+\}/,
4038
+ alias: 'variable',
4039
+ inside: {
4040
+ delimiter: { pattern: /^\{|\}$/, alias: 'punctuation' },
4041
+ rest: w,
4042
+ },
4043
+ }),
4044
+ (w.func = {
4045
+ pattern: /[\w-]+\([^)]*\).*/,
4046
+ inside: { function: /^[^(]+/, rest: w },
4047
+ }),
4048
+ (E.languages.stylus = {
4049
+ 'atrule-declaration': {
4050
+ pattern: /(^[ \t]*)@.+/m,
4051
+ lookbehind: !0,
4052
+ inside: { atrule: /^@[\w-]+/, rest: w },
4053
+ },
4054
+ 'variable-declaration': {
4055
+ pattern: /(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,
4056
+ lookbehind: !0,
4057
+ inside: { variable: /^\S+/, rest: w },
4058
+ },
4059
+ 'statement': {
4060
+ pattern: /(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,
4061
+ lookbehind: !0,
4062
+ inside: { keyword: /^\S+/, rest: w },
4063
+ },
4064
+ 'property-declaration': {
4065
+ pattern:
4066
+ /((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,
4067
+ lookbehind: !0,
4068
+ inside: {
4069
+ property: {
4070
+ pattern: /^[^\s:]+/,
4071
+ inside: { interpolation: w.interpolation },
4072
+ },
4073
+ rest: w,
4074
+ },
4075
+ },
4076
+ 'selector': {
4077
+ pattern:
4078
+ /(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,
4079
+ lookbehind: !0,
4080
+ inside: {
4081
+ interpolation: w.interpolation,
4082
+ comment: w.comment,
4083
+ punctuation: /[{},]/,
4084
+ },
4085
+ },
4086
+ 'func': w.func,
4087
+ 'string': w.string,
4088
+ 'comment': {
4089
+ pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
4090
+ lookbehind: !0,
4091
+ greedy: !0,
4092
+ },
4093
+ 'interpolation': w.interpolation,
4094
+ 'punctuation': /[{}()\[\];:.]/,
4095
+ }),
4096
+ (_ = (A = I).util.clone(A.languages.typescript)),
4097
+ (A.languages.tsx = A.languages.extend('jsx', _)),
4098
+ delete A.languages.tsx.parameter,
4099
+ delete A.languages.tsx['literal-property'],
4100
+ ((T = A.languages.tsx.tag).pattern = RegExp(
4101
+ /(^|[^\w$]|(?=<\/))/.source + '(?:' + T.pattern.source + ')',
4102
+ T.pattern.flags,
4103
+ )),
4104
+ (T.lookbehind = !0),
4105
+ (I.languages.wasm = {
4106
+ comment: [/\(;[\s\S]*?;\)/, { pattern: /;;.*/, greedy: !0 }],
4107
+ string: { pattern: /"(?:\\[\s\S]|[^"\\])*"/, greedy: !0 },
4108
+ keyword: [
4109
+ { pattern: /\b(?:align|offset)=/, inside: { operator: /=/ } },
4110
+ {
4111
+ pattern:
4112
+ /\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,
4113
+ inside: { punctuation: /\./ },
4114
+ },
4115
+ /\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/,
4116
+ ],
4117
+ variable: /\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,
4118
+ number:
4119
+ /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
4120
+ punctuation: /[()]/,
4121
+ });
4122
+ var x = n(7294),
4123
+ O = {
4124
+ Prism: I,
4125
+ theme: {
4126
+ plain: { backgroundColor: '#2a2734', color: '#9a86fd' },
4127
+ styles: [
4128
+ {
4129
+ types: ['comment', 'prolog', 'doctype', 'cdata', 'punctuation'],
4130
+ style: { color: '#6c6783' },
4131
+ },
4132
+ { types: ['namespace'], style: { opacity: 0.7 } },
4133
+ {
4134
+ types: ['tag', 'operator', 'number'],
4135
+ style: { color: '#e09142' },
4136
+ },
4137
+ { types: ['property', 'function'], style: { color: '#9a86fd' } },
4138
+ {
4139
+ types: ['tag-id', 'selector', 'atrule-id'],
4140
+ style: { color: '#eeebff' },
4141
+ },
4142
+ { types: ['attr-name'], style: { color: '#c4b9fe' } },
4143
+ {
4144
+ types: [
4145
+ 'boolean',
4146
+ 'string',
4147
+ 'entity',
4148
+ 'url',
4149
+ 'attr-value',
4150
+ 'keyword',
4151
+ 'control',
4152
+ 'directive',
4153
+ 'unit',
4154
+ 'statement',
4155
+ 'regex',
4156
+ 'atrule',
4157
+ 'placeholder',
4158
+ 'variable',
4159
+ ],
4160
+ style: { color: '#ffcc99' },
4161
+ },
4162
+ {
4163
+ types: ['deleted'],
4164
+ style: { textDecorationLine: 'line-through' },
4165
+ },
4166
+ {
4167
+ types: ['inserted'],
4168
+ style: { textDecorationLine: 'underline' },
4169
+ },
4170
+ { types: ['italic'], style: { fontStyle: 'italic' } },
4171
+ { types: ['important', 'bold'], style: { fontWeight: 'bold' } },
4172
+ { types: ['important'], style: { color: '#c4b9fe' } },
4173
+ ],
4174
+ },
4175
+ };
4176
+ function N(e, t, n) {
4177
+ return (
4178
+ t in e
4179
+ ? Object.defineProperty(e, t, {
4180
+ value: n,
4181
+ enumerable: !0,
4182
+ configurable: !0,
4183
+ writable: !0,
4184
+ })
4185
+ : (e[t] = n),
4186
+ e
4187
+ );
4188
+ }
4189
+ function F() {
4190
+ return (F =
4191
+ Object.assign ||
4192
+ function (e) {
4193
+ for (var t = 1; t < arguments.length; t++) {
4194
+ var n = arguments[t];
4195
+ for (var a in n)
4196
+ Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
4197
+ }
4198
+ return e;
4199
+ }).apply(this, arguments);
4200
+ }
4201
+ var C = /\r\n|\r|\n/,
4202
+ L = function (e) {
4203
+ 0 === e.length
4204
+ ? e.push({ types: ['plain'], content: '\n', empty: !0 })
4205
+ : 1 === e.length &&
4206
+ '' === e[0].content &&
4207
+ ((e[0].content = '\n'), (e[0].empty = !0));
4208
+ },
4209
+ D = function (e, t) {
4210
+ var n = e.length;
4211
+ return n > 0 && e[n - 1] === t ? e : e.concat(t);
4212
+ },
4213
+ P = function (e) {
4214
+ for (
4215
+ var t = [[]],
4216
+ n = [e],
4217
+ a = [0],
4218
+ r = [e.length],
4219
+ o = 0,
4220
+ i = 0,
4221
+ s = [],
4222
+ l = [s];
4223
+ i > -1;
4224
+
4225
+ ) {
4226
+ for (; (o = a[i]++) < r[i]; ) {
4227
+ var u = void 0,
4228
+ c = t[i],
4229
+ d = n[i][o];
4230
+ if (
4231
+ ('string' == typeof d
4232
+ ? ((c = i > 0 ? c : ['plain']), (u = d))
4233
+ : ((c = D(c, d.type)),
4234
+ d.alias && (c = D(c, d.alias)),
4235
+ (u = d.content)),
4236
+ 'string' != typeof u)
4237
+ ) {
4238
+ i++, t.push(c), n.push(u), a.push(0), r.push(u.length);
4239
+ continue;
4240
+ }
4241
+ var p = u.split(C),
4242
+ g = p.length;
4243
+ s.push({ types: c, content: p[0] });
4244
+ for (var f = 1; f < g; f++)
4245
+ L(s), l.push((s = [])), s.push({ types: c, content: p[f] });
4246
+ }
4247
+ i--, t.pop(), n.pop(), a.pop(), r.pop();
4248
+ }
4249
+ return L(s), l;
4250
+ },
4251
+ B = function (e, t) {
4252
+ var n = e.plain,
4253
+ a = Object.create(null),
4254
+ r = e.styles.reduce(function (e, n) {
4255
+ var a = n.languages,
4256
+ r = n.style;
4257
+ return (
4258
+ (a && !a.includes(t)) ||
4259
+ n.types.forEach(function (t) {
4260
+ var n = F({}, e[t], r);
4261
+ e[t] = n;
4262
+ }),
4263
+ e
4264
+ );
4265
+ }, a);
4266
+ return (
4267
+ (r.root = n), (r.plain = F({}, n, { backgroundColor: null })), r
4268
+ );
4269
+ };
4270
+ function M(e, t) {
4271
+ var n = {};
4272
+ for (var a in e)
4273
+ Object.prototype.hasOwnProperty.call(e, a) &&
4274
+ -1 === t.indexOf(a) &&
4275
+ (n[a] = e[a]);
4276
+ return n;
4277
+ }
4278
+ var $ = (function (e) {
4279
+ function t() {
4280
+ for (var t = this, n = [], a = arguments.length; a--; )
4281
+ n[a] = arguments[a];
4282
+ e.apply(this, n),
4283
+ N(this, 'getThemeDict', function (e) {
4284
+ if (
4285
+ void 0 !== t.themeDict &&
4286
+ e.theme === t.prevTheme &&
4287
+ e.language === t.prevLanguage
4288
+ )
4289
+ return t.themeDict;
4290
+ (t.prevTheme = e.theme), (t.prevLanguage = e.language);
4291
+ var n = e.theme ? B(e.theme, e.language) : void 0;
4292
+ return (t.themeDict = n);
4293
+ }),
4294
+ N(this, 'getLineProps', function (e) {
4295
+ var n = e.key,
4296
+ a = e.className,
4297
+ r = e.style,
4298
+ o = F({}, M(e, ['key', 'className', 'style', 'line']), {
4299
+ className: 'token-line',
4300
+ style: void 0,
4301
+ key: void 0,
4302
+ }),
4303
+ i = t.getThemeDict(t.props);
4304
+ return (
4305
+ void 0 !== i && (o.style = i.plain),
4306
+ void 0 !== r &&
4307
+ (o.style = void 0 !== o.style ? F({}, o.style, r) : r),
4308
+ void 0 !== n && (o.key = n),
4309
+ a && (o.className += ' ' + a),
4310
+ o
4311
+ );
4312
+ }),
4313
+ N(this, 'getStyleForToken', function (e) {
4314
+ var n = e.types,
4315
+ a = e.empty,
4316
+ r = n.length,
4317
+ o = t.getThemeDict(t.props);
4318
+ if (void 0 !== o) {
4319
+ if (1 === r && 'plain' === n[0])
4320
+ return a ? { display: 'inline-block' } : void 0;
4321
+ if (1 === r && !a) return o[n[0]];
4322
+ var i = n.map(function (e) {
4323
+ return o[e];
4324
+ });
4325
+ return Object.assign.apply(
4326
+ Object,
4327
+ [a ? { display: 'inline-block' } : {}].concat(i),
4328
+ );
4329
+ }
4330
+ }),
4331
+ N(this, 'getTokenProps', function (e) {
4332
+ var n = e.key,
4333
+ a = e.className,
4334
+ r = e.style,
4335
+ o = e.token,
4336
+ i = F({}, M(e, ['key', 'className', 'style', 'token']), {
4337
+ className: 'token ' + o.types.join(' '),
4338
+ children: o.content,
4339
+ style: t.getStyleForToken(o),
4340
+ key: void 0,
4341
+ });
4342
+ return (
4343
+ void 0 !== r &&
4344
+ (i.style = void 0 !== i.style ? F({}, i.style, r) : r),
4345
+ void 0 !== n && (i.key = n),
4346
+ a && (i.className += ' ' + a),
4347
+ i
4348
+ );
4349
+ }),
4350
+ N(this, 'tokenize', function (e, t, n, a) {
4351
+ var r = { code: t, grammar: n, language: a, tokens: [] };
4352
+ e.hooks.run('before-tokenize', r);
4353
+ var o = (r.tokens = e.tokenize(r.code, r.grammar, r.language));
4354
+ return e.hooks.run('after-tokenize', r), o;
4355
+ });
4356
+ }
4357
+ return (
4358
+ e && (t.__proto__ = e),
4359
+ (t.prototype = Object.create(e && e.prototype)),
4360
+ (t.prototype.constructor = t),
4361
+ (t.prototype.render = function () {
4362
+ var e = this.props,
4363
+ t = e.Prism,
4364
+ n = e.language,
4365
+ a = e.code,
4366
+ r = e.children,
4367
+ o = this.getThemeDict(this.props),
4368
+ i = t.languages[n];
4369
+ return r({
4370
+ tokens: P(void 0 !== i ? this.tokenize(t, a, i, n) : [a]),
4371
+ className: 'prism-code language-' + n,
4372
+ style: void 0 !== o ? o.root : {},
4373
+ getLineProps: this.getLineProps,
4374
+ getTokenProps: this.getTokenProps,
4375
+ });
4376
+ }),
4377
+ t
4378
+ );
4379
+ })(x.Component);
4380
+ },
4381
+ 7462: function (e, t, n) {
4382
+ 'use strict';
4383
+ function a() {
4384
+ return (a = Object.assign
4385
+ ? Object.assign.bind()
4386
+ : function (e) {
4387
+ for (var t = 1; t < arguments.length; t++) {
4388
+ var n = arguments[t];
4389
+ for (var a in n)
4390
+ Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
4391
+ }
4392
+ return e;
4393
+ }).apply(this, arguments);
4394
+ }
4395
+ n.d(t, {
4396
+ Z: function () {
4397
+ return a;
4398
+ },
4399
+ });
4400
+ },
4401
+ },
4402
+ ]);