zudoku 0.35.1 → 0.35.3

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 (70) hide show
  1. package/dist/config/validators/common.d.ts +176 -0
  2. package/dist/config/validators/common.js +1 -0
  3. package/dist/config/validators/common.js.map +1 -1
  4. package/dist/config/validators/validate.d.ts +63 -0
  5. package/dist/lib/components/InlineCode.js +2 -9
  6. package/dist/lib/components/InlineCode.js.map +1 -1
  7. package/dist/lib/components/Layout.js +1 -1
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/errors/ErrorAlert.js +6 -1
  10. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  11. package/dist/lib/plugins/openapi/OperationList.js +5 -3
  12. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  13. package/dist/lib/plugins/openapi/OperationListItem.js +3 -11
  14. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  15. package/dist/lib/plugins/openapi/ParameterListItem.js +3 -2
  16. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  17. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  18. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  19. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  20. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  21. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  22. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  23. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -0
  24. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +3 -2
  25. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  26. package/dist/lib/ui/SyntaxHighlight.js +2 -0
  27. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  28. package/dist/vite/plugin-api.js +1 -1
  29. package/dist/vite/plugin-api.js.map +1 -1
  30. package/lib/{Markdown-D1Y3cd9l.js → Markdown-hBN9vkm5.js} +1045 -1026
  31. package/lib/Markdown-hBN9vkm5.js.map +1 -0
  32. package/lib/{MdxPage-CUL_SQzW.js → MdxPage-UCWwxhzC.js} +2 -2
  33. package/lib/{MdxPage-CUL_SQzW.js.map → MdxPage-UCWwxhzC.js.map} +1 -1
  34. package/lib/{OasProvider-vimCZXXF.js → OasProvider-7Z9UwS9y.js} +2 -2
  35. package/lib/{OasProvider-vimCZXXF.js.map → OasProvider-7Z9UwS9y.js.map} +1 -1
  36. package/lib/{OperationList-C6Tumce9.js → OperationList-a7wnHdXv.js} +1859 -1835
  37. package/lib/OperationList-a7wnHdXv.js.map +1 -0
  38. package/lib/SlotletProvider-D-XPr1Wg.js +338 -0
  39. package/lib/SlotletProvider-D-XPr1Wg.js.map +1 -0
  40. package/lib/SyntaxHighlight-BEoSoPEo.js +2890 -0
  41. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  42. package/lib/{index-OD2IZ2Nn.js → index-UmhI2mj7.js} +4 -4
  43. package/lib/{index-OD2IZ2Nn.js.map → index-UmhI2mj7.js.map} +1 -1
  44. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  45. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  46. package/lib/ui/SyntaxHighlight.js +8 -2883
  47. package/lib/ui/SyntaxHighlight.js.map +1 -1
  48. package/lib/zudoku.components.js +38 -38
  49. package/lib/zudoku.components.js.map +1 -1
  50. package/lib/zudoku.plugin-api-catalog.js +1 -1
  51. package/lib/zudoku.plugin-api-keys.js +1 -1
  52. package/lib/zudoku.plugin-custom-pages.js +1 -1
  53. package/lib/zudoku.plugin-markdown.js +1 -1
  54. package/lib/zudoku.plugin-openapi.js +1 -1
  55. package/package.json +1 -1
  56. package/src/lib/components/InlineCode.tsx +11 -16
  57. package/src/lib/components/Layout.tsx +1 -1
  58. package/src/lib/errors/ErrorAlert.tsx +24 -17
  59. package/src/lib/plugins/openapi/OperationList.tsx +7 -2
  60. package/src/lib/plugins/openapi/OperationListItem.tsx +4 -16
  61. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -1
  62. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  63. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  64. package/src/lib/plugins/openapi/interfaces.ts +1 -0
  65. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +9 -2
  66. package/src/lib/ui/SyntaxHighlight.tsx +2 -0
  67. package/lib/Markdown-D1Y3cd9l.js.map +0 -1
  68. package/lib/OperationList-C6Tumce9.js.map +0 -1
  69. package/lib/SlotletProvider-iDmNlxD5.js +0 -221
  70. package/lib/SlotletProvider-iDmNlxD5.js.map +0 -1
@@ -1,2886 +1,11 @@
1
- import { j as _ } from "../jsx-runtime-CYK1ROHF.js";
2
- import { createElement as de, useCallback as K, useMemo as ye, memo as fe, useState as be } from "react";
3
- import { a as se, c as ee } from "../cn-qaFjX9_3.js";
4
- import { CheckIcon as me, CopyIcon as he } from "lucide-react";
5
- import { z as ve } from "../index-DwT-v3zK.js";
6
- import { C as te } from "../ClientOnly-E7hGysn1.js";
7
- var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties, Ee = Object.getOwnPropertyDescriptor, xe = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertyNames, G = Object.getOwnPropertySymbols, Ae = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, ie = Object.prototype.propertyIsEnumerable, ae = (e, t, r) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, N = (e, t) => {
8
- for (var r in t || (t = {}))
9
- X.call(t, r) && ae(e, r, t[r]);
10
- if (G)
11
- for (var r of G(t))
12
- ie.call(t, r) && ae(e, r, t[r]);
13
- return e;
14
- }, q = (e, t) => we(e, xe(t)), ue = (e, t) => {
15
- var r = {};
16
- for (var i in e)
17
- X.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
18
- if (e != null && G)
19
- for (var i of G(e))
20
- t.indexOf(i) < 0 && ie.call(e, i) && (r[i] = e[i]);
21
- return r;
22
- }, Se = (e, t) => function() {
23
- return t || (0, e[le(e)[0]])((t = { exports: {} }).exports, t), t.exports;
24
- }, _e = (e, t) => {
25
- for (var r in t)
26
- Z(e, r, { get: t[r], enumerable: !0 });
27
- }, Fe = (e, t, r, i) => {
28
- if (t && typeof t == "object" || typeof t == "function")
29
- for (let f of le(t))
30
- !X.call(e, f) && f !== r && Z(e, f, { get: () => t[f], enumerable: !(i = Ee(t, f)) || i.enumerable });
31
- return e;
32
- }, Te = (e, t, r) => (r = e != null ? ke(Ae(e)) : {}, Fe(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- !e || !e.__esModule ? Z(r, "default", { value: e, enumerable: !0 }) : r,
38
- e
39
- )), Re = Se({
40
- "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
41
- var r = function() {
42
- var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, f = 0, h = {}, u = {
43
- /**
44
- * A namespace for utility methods.
45
- *
46
- * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
47
- * change or disappear at any time.
48
- *
49
- * @namespace
50
- * @memberof Prism
51
- */
52
- util: {
53
- encode: function n(a) {
54
- return a instanceof m ? new m(a.type, n(a.content), a.alias) : Array.isArray(a) ? a.map(n) : a.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
55
- },
56
- /**
57
- * Returns the name of the type of the given value.
58
- *
59
- * @param {any} o
60
- * @returns {string}
61
- * @example
62
- * type(null) === 'Null'
63
- * type(undefined) === 'Undefined'
64
- * type(123) === 'Number'
65
- * type('foo') === 'String'
66
- * type(true) === 'Boolean'
67
- * type([1, 2]) === 'Array'
68
- * type({}) === 'Object'
69
- * type(String) === 'Function'
70
- * type(/abc+/) === 'RegExp'
71
- */
72
- type: function(n) {
73
- return Object.prototype.toString.call(n).slice(8, -1);
74
- },
75
- /**
76
- * Returns a unique number for the given object. Later calls will still return the same number.
77
- *
78
- * @param {Object} obj
79
- * @returns {number}
80
- */
81
- objId: function(n) {
82
- return n.__id || Object.defineProperty(n, "__id", { value: ++f }), n.__id;
83
- },
84
- /**
85
- * Creates a deep clone of the given object.
86
- *
87
- * The main intended use of this function is to clone language definitions.
88
- *
89
- * @param {T} o
90
- * @param {Record<number, any>} [visited]
91
- * @returns {T}
92
- * @template T
93
- */
94
- clone: function n(a, s) {
95
- s = s || {};
96
- var c, l;
97
- switch (u.util.type(a)) {
98
- case "Object":
99
- if (l = u.util.objId(a), s[l])
100
- return s[l];
101
- c = /** @type {Record<string, any>} */
102
- {}, s[l] = c;
103
- for (var d in a)
104
- a.hasOwnProperty(d) && (c[d] = n(a[d], s));
105
- return (
106
- /** @type {any} */
107
- c
108
- );
109
- case "Array":
110
- return l = u.util.objId(a), s[l] ? s[l] : (c = [], s[l] = c, a.forEach(function(k, E) {
111
- c[E] = n(k, s);
112
- }), /** @type {any} */
113
- c);
114
- default:
115
- return a;
116
- }
117
- },
118
- /**
119
- * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
120
- *
121
- * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
122
- *
123
- * @param {Element} element
124
- * @returns {string}
125
- */
126
- getLanguage: function(n) {
127
- for (; n; ) {
128
- var a = i.exec(n.className);
129
- if (a)
130
- return a[1].toLowerCase();
131
- n = n.parentElement;
132
- }
133
- return "none";
134
- },
135
- /**
136
- * Sets the Prism `language-xxxx` class of the given element.
137
- *
138
- * @param {Element} element
139
- * @param {string} language
140
- * @returns {void}
141
- */
142
- setLanguage: function(n, a) {
143
- n.className = n.className.replace(RegExp(i, "gi"), ""), n.classList.add("language-" + a);
144
- },
145
- /**
146
- * Returns whether a given class is active for `element`.
147
- *
148
- * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
149
- * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
150
- * given class is just the given class with a `no-` prefix.
151
- *
152
- * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
153
- * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
154
- * ancestors have the given class or the negated version of it, then the default activation will be returned.
155
- *
156
- * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
157
- * version of it, the class is considered active.
158
- *
159
- * @param {Element} element
160
- * @param {string} className
161
- * @param {boolean} [defaultActivation=false]
162
- * @returns {boolean}
163
- */
164
- isActive: function(n, a, s) {
165
- for (var c = "no-" + a; n; ) {
166
- var l = n.classList;
167
- if (l.contains(a))
168
- return !0;
169
- if (l.contains(c))
170
- return !1;
171
- n = n.parentElement;
172
- }
173
- return !!s;
174
- }
175
- },
176
- /**
177
- * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
178
- *
179
- * @namespace
180
- * @memberof Prism
181
- * @public
182
- */
183
- languages: {
184
- /**
185
- * The grammar for plain, unformatted text.
186
- */
187
- plain: h,
188
- plaintext: h,
189
- text: h,
190
- txt: h,
191
- /**
192
- * Creates a deep copy of the language with the given id and appends the given tokens.
193
- *
194
- * If a token in `redef` also appears in the copied language, then the existing token in the copied language
195
- * will be overwritten at its original position.
196
- *
197
- * ## Best practices
198
- *
199
- * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
200
- * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
201
- * understand the language definition because, normally, the order of tokens matters in Prism grammars.
202
- *
203
- * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
204
- * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
205
- *
206
- * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
207
- * @param {Grammar} redef The new tokens to append.
208
- * @returns {Grammar} The new language created.
209
- * @public
210
- * @example
211
- * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
212
- * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
213
- * // at its original position
214
- * 'comment': { ... },
215
- * // CSS doesn't have a 'color' token, so this token will be appended
216
- * 'color': /\b(?:red|green|blue)\b/
217
- * });
218
- */
219
- extend: function(n, a) {
220
- var s = u.util.clone(u.languages[n]);
221
- for (var c in a)
222
- s[c] = a[c];
223
- return s;
224
- },
225
- /**
226
- * Inserts tokens _before_ another token in a language definition or any other grammar.
227
- *
228
- * ## Usage
229
- *
230
- * This helper method makes it easy to modify existing languages. For example, the CSS language definition
231
- * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
232
- * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
233
- * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
234
- * this:
235
- *
236
- * ```js
237
- * Prism.languages.markup.style = {
238
- * // token
239
- * };
240
- * ```
241
- *
242
- * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
243
- * before existing tokens. For the CSS example above, you would use it like this:
244
- *
245
- * ```js
246
- * Prism.languages.insertBefore('markup', 'cdata', {
247
- * 'style': {
248
- * // token
249
- * }
250
- * });
251
- * ```
252
- *
253
- * ## Special cases
254
- *
255
- * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
256
- * will be ignored.
257
- *
258
- * This behavior can be used to insert tokens after `before`:
259
- *
260
- * ```js
261
- * Prism.languages.insertBefore('markup', 'comment', {
262
- * 'comment': Prism.languages.markup.comment,
263
- * // tokens after 'comment'
264
- * });
265
- * ```
266
- *
267
- * ## Limitations
268
- *
269
- * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
270
- * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
271
- * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
272
- * deleting properties which is necessary to insert at arbitrary positions.
273
- *
274
- * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
275
- * Instead, it will create a new object and replace all references to the target object with the new one. This
276
- * can be done without temporarily deleting properties, so the iteration order is well-defined.
277
- *
278
- * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
279
- * you hold the target object in a variable, then the value of the variable will not change.
280
- *
281
- * ```js
282
- * var oldMarkup = Prism.languages.markup;
283
- * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
284
- *
285
- * assert(oldMarkup !== Prism.languages.markup);
286
- * assert(newMarkup === Prism.languages.markup);
287
- * ```
288
- *
289
- * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
290
- * object to be modified.
291
- * @param {string} before The key to insert before.
292
- * @param {Grammar} insert An object containing the key-value pairs to be inserted.
293
- * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
294
- * object to be modified.
295
- *
296
- * Defaults to `Prism.languages`.
297
- * @returns {Grammar} The new grammar object.
298
- * @public
299
- */
300
- insertBefore: function(n, a, s, c) {
301
- c = c || /** @type {any} */
302
- u.languages;
303
- var l = c[n], d = {};
304
- for (var k in l)
305
- if (l.hasOwnProperty(k)) {
306
- if (k == a)
307
- for (var E in s)
308
- s.hasOwnProperty(E) && (d[E] = s[E]);
309
- s.hasOwnProperty(k) || (d[k] = l[k]);
310
- }
311
- var A = c[n];
312
- return c[n] = d, u.languages.DFS(u.languages, function(x, F) {
313
- F === A && x != n && (this[x] = d);
314
- }), d;
315
- },
316
- // Traverse a language definition with Depth First Search
317
- DFS: function n(a, s, c, l) {
318
- l = l || {};
319
- var d = u.util.objId;
320
- for (var k in a)
321
- if (a.hasOwnProperty(k)) {
322
- s.call(a, k, a[k], c || k);
323
- var E = a[k], A = u.util.type(E);
324
- A === "Object" && !l[d(E)] ? (l[d(E)] = !0, n(E, s, null, l)) : A === "Array" && !l[d(E)] && (l[d(E)] = !0, n(E, s, k, l));
325
- }
326
- }
327
- },
328
- plugins: {},
329
- /**
330
- * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
331
- * and the language definitions to use, and returns a string with the HTML produced.
332
- *
333
- * The following hooks will be run:
334
- * 1. `before-tokenize`
335
- * 2. `after-tokenize`
336
- * 3. `wrap`: On each {@link Token}.
337
- *
338
- * @param {string} text A string with the code to be highlighted.
339
- * @param {Grammar} grammar An object containing the tokens to use.
340
- *
341
- * Usually a language definition like `Prism.languages.markup`.
342
- * @param {string} language The name of the language definition passed to `grammar`.
343
- * @returns {string} The highlighted HTML.
344
- * @memberof Prism
345
- * @public
346
- * @example
347
- * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
348
- */
349
- highlight: function(n, a, s) {
350
- var c = {
351
- code: n,
352
- grammar: a,
353
- language: s
354
- };
355
- if (u.hooks.run("before-tokenize", c), !c.grammar)
356
- throw new Error('The language "' + c.language + '" has no grammar.');
357
- return c.tokens = u.tokenize(c.code, c.grammar), u.hooks.run("after-tokenize", c), m.stringify(u.util.encode(c.tokens), c.language);
358
- },
359
- /**
360
- * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
361
- * and the language definitions to use, and returns an array with the tokenized code.
362
- *
363
- * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
364
- *
365
- * This method could be useful in other contexts as well, as a very crude parser.
366
- *
367
- * @param {string} text A string with the code to be highlighted.
368
- * @param {Grammar} grammar An object containing the tokens to use.
369
- *
370
- * Usually a language definition like `Prism.languages.markup`.
371
- * @returns {TokenStream} An array of strings and tokens, a token stream.
372
- * @memberof Prism
373
- * @public
374
- * @example
375
- * let code = `var foo = 0;`;
376
- * let tokens = Prism.tokenize(code, Prism.languages.javascript);
377
- * tokens.forEach(token => {
378
- * if (token instanceof Prism.Token && token.type === 'number') {
379
- * console.log(`Found numeric literal: ${token.content}`);
380
- * }
381
- * });
382
- */
383
- tokenize: function(n, a) {
384
- var s = a.rest;
385
- if (s) {
386
- for (var c in s)
387
- a[c] = s[c];
388
- delete a.rest;
389
- }
390
- var l = new b();
391
- return y(l, l.head, n), g(n, l, a, l.head, 0), w(l);
392
- },
393
- /**
394
- * @namespace
395
- * @memberof Prism
396
- * @public
397
- */
398
- hooks: {
399
- all: {},
400
- /**
401
- * Adds the given callback to the list of callbacks for the given hook.
402
- *
403
- * The callback will be invoked when the hook it is registered for is run.
404
- * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
405
- *
406
- * One callback function can be registered to multiple hooks and the same hook multiple times.
407
- *
408
- * @param {string} name The name of the hook.
409
- * @param {HookCallback} callback The callback function which is given environment variables.
410
- * @public
411
- */
412
- add: function(n, a) {
413
- var s = u.hooks.all;
414
- s[n] = s[n] || [], s[n].push(a);
415
- },
416
- /**
417
- * Runs a hook invoking all registered callbacks with the given environment variables.
418
- *
419
- * Callbacks will be invoked synchronously and in the order in which they were registered.
420
- *
421
- * @param {string} name The name of the hook.
422
- * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
423
- * @public
424
- */
425
- run: function(n, a) {
426
- var s = u.hooks.all[n];
427
- if (!(!s || !s.length))
428
- for (var c = 0, l; l = s[c++]; )
429
- l(a);
430
- }
431
- },
432
- Token: m
433
- };
434
- function m(n, a, s, c) {
435
- this.type = n, this.content = a, this.alias = s, this.length = (c || "").length | 0;
436
- }
437
- m.stringify = function n(a, s) {
438
- if (typeof a == "string")
439
- return a;
440
- if (Array.isArray(a)) {
441
- var c = "";
442
- return a.forEach(function(A) {
443
- c += n(A, s);
444
- }), c;
445
- }
446
- var l = {
447
- type: a.type,
448
- content: n(a.content, s),
449
- tag: "span",
450
- classes: ["token", a.type],
451
- attributes: {},
452
- language: s
453
- }, d = a.alias;
454
- d && (Array.isArray(d) ? Array.prototype.push.apply(l.classes, d) : l.classes.push(d)), u.hooks.run("wrap", l);
455
- var k = "";
456
- for (var E in l.attributes)
457
- k += " " + E + '="' + (l.attributes[E] || "").replace(/"/g, "&quot;") + '"';
458
- return "<" + l.tag + ' class="' + l.classes.join(" ") + '"' + k + ">" + l.content + "</" + l.tag + ">";
459
- };
460
- function p(n, a, s, c) {
461
- n.lastIndex = a;
462
- var l = n.exec(s);
463
- if (l && c && l[1]) {
464
- var d = l[1].length;
465
- l.index += d, l[0] = l[0].slice(d);
466
- }
467
- return l;
468
- }
469
- function g(n, a, s, c, l, d) {
470
- for (var k in s)
471
- if (!(!s.hasOwnProperty(k) || !s[k])) {
472
- var E = s[k];
473
- E = Array.isArray(E) ? E : [E];
474
- for (var A = 0; A < E.length; ++A) {
475
- if (d && d.cause == k + "," + A)
476
- return;
477
- var x = E[A], F = x.inside, T = !!x.lookbehind, D = !!x.greedy, C = x.alias;
478
- if (D && !x.pattern.global) {
479
- var L = x.pattern.toString().match(/[imsuy]*$/)[0];
480
- x.pattern = RegExp(x.pattern.source, L + "g");
481
- }
482
- for (var Q = x.pattern || x, S = c.next, O = l; S !== a.tail && !(d && O >= d.reach); O += S.value.length, S = S.next) {
483
- var $ = S.value;
484
- if (a.length > n.length)
485
- return;
486
- if (!($ instanceof m)) {
487
- var j = 1, I;
488
- if (D) {
489
- if (I = p(Q, O, n, T), !I || I.index >= n.length)
490
- break;
491
- var z = I.index, pe = I.index + I[0].length, B = O;
492
- for (B += S.value.length; z >= B; )
493
- S = S.next, B += S.value.length;
494
- if (B -= S.value.length, O = B, S.value instanceof m)
495
- continue;
496
- for (var P = S; P !== a.tail && (B < pe || typeof P.value == "string"); P = P.next)
497
- j++, B += P.value.length;
498
- j--, $ = n.slice(O, B), I.index -= O;
499
- } else if (I = p(Q, 0, $, T), !I)
500
- continue;
501
- var z = I.index, M = I[0], W = $.slice(0, z), J = $.slice(z + M.length), H = O + $.length;
502
- d && H > d.reach && (d.reach = H);
503
- var U = S.prev;
504
- W && (U = y(a, U, W), O += W.length), v(a, U, j);
505
- var ge = new m(k, F ? u.tokenize(M, F) : M, C, M);
506
- if (S = y(a, U, ge), J && y(a, S, J), j > 1) {
507
- var Y = {
508
- cause: k + "," + A,
509
- reach: H
510
- };
511
- g(n, a, s, S.prev, O, Y), d && Y.reach > d.reach && (d.reach = Y.reach);
512
- }
513
- }
514
- }
515
- }
516
- }
517
- }
518
- function b() {
519
- var n = { value: null, prev: null, next: null }, a = { value: null, prev: n, next: null };
520
- n.next = a, this.head = n, this.tail = a, this.length = 0;
521
- }
522
- function y(n, a, s) {
523
- var c = a.next, l = { value: s, prev: a, next: c };
524
- return a.next = l, c.prev = l, n.length++, l;
525
- }
526
- function v(n, a, s) {
527
- for (var c = a.next, l = 0; l < s && c !== n.tail; l++)
528
- c = c.next;
529
- a.next = c, c.prev = a, n.length -= l;
530
- }
531
- function w(n) {
532
- for (var a = [], s = n.head.next; s !== n.tail; )
533
- a.push(s.value), s = s.next;
534
- return a;
535
- }
536
- return u;
537
- }();
538
- t.exports = r, r.default = r;
539
- }
540
- }), o = Te(Re());
541
- o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, o.languages.markup.tag.inside["attr-value"].inside.entity = o.languages.markup.entity, o.languages.markup.doctype.inside["internal-subset"].inside = o.languages.markup, o.hooks.add("wrap", function(e) {
542
- e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
543
- }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, i) {
544
- var r = {}, r = (r["language-" + i] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[i] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), i = (r["language-" + i] = { pattern: /[\s\S]+/, inside: o.languages[i] }, {});
545
- i[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
546
- return e;
547
- }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", i);
548
- } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
549
- o.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: o.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
550
- } }), o.languages.html = o.languages.markup, o.languages.mathml = o.languages.markup, o.languages.svg = o.languages.markup, o.languages.xml = o.languages.extend("markup", {}), o.languages.ssml = o.languages.xml, o.languages.atom = o.languages.xml, o.languages.rss = o.languages.xml, function(e) {
551
- var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, i = "(?:[^\\\\-]|" + r.source + ")", i = RegExp(i + "-" + i), f = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
552
- e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: i, inside: { escape: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": f } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": f } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
553
- }(o), o.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, o.languages.javascript = o.languages.extend("clike", { "class-name": [o.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\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/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), o.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, o.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: o.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\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*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /((?:\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*\{)/, lookbehind: !0, inside: o.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), o.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: o.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), o.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), o.languages.markup && (o.languages.markup.tag.addInlined("script", "javascript"), o.languages.markup.tag.addAttribute(/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)/.source, "javascript")), o.languages.js = o.languages.javascript, o.languages.actionscript = o.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), o.languages.actionscript["class-name"].alias = "function", delete o.languages.actionscript.parameter, delete o.languages.actionscript["literal-property"], o.languages.markup && o.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: o.languages.markup } }), function(e) {
554
- var t = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
555
- e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], keyword: /\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/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: r } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
556
- }(o), function(e) {
557
- var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
558
- Object.defineProperty(t, "addSupport", { value: function(r, i) {
559
- (r = typeof r == "string" ? [r] : r).forEach(function(f) {
560
- var h = function(y) {
561
- y.inside || (y.inside = {}), y.inside.rest = i;
562
- }, u = "doc-comment";
563
- if (m = e.languages[f]) {
564
- var m, p = m[u];
565
- if ((p = p || (m = e.languages.insertBefore(f, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[u]) instanceof RegExp && (p = m[u] = { pattern: p }), Array.isArray(p))
566
- for (var g = 0, b = p.length; g < b; g++)
567
- p[g] instanceof RegExp && (p[g] = { pattern: p[g] }), h(p[g]);
568
- else
569
- h(p);
570
- }
571
- });
572
- } }), t.addSupport(["java", "javascript", "php"], t);
573
- }(o), function(e) {
574
- var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
575
- t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
576
- }(o), function(e) {
577
- var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
578
- e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\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|RebeccaPurple|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, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: t, number: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: r });
579
- }(o), function(e) {
580
- var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", f = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
581
- return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
582
- }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
583
- function u(m, p) {
584
- p = (p || "").replace(/m/g, "") + "m";
585
- var g = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
586
- return i;
587
- }).replace(/<<value>>/g, function() {
588
- return m;
589
- });
590
- return RegExp(g, p);
591
- }
592
- e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
593
- return i;
594
- })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
595
- return i;
596
- }).replace(/<<key>>/g, function() {
597
- return "(?:" + f + "|" + h + ")";
598
- })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: u(/\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*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: u(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: u(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: u(h), lookbehind: !0, greedy: !0 }, number: { pattern: u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: r, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
599
- }(o), function(e) {
600
- var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
601
- function r(g) {
602
- return g = g.replace(/<inner>/g, function() {
603
- return t;
604
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")");
605
- }
606
- var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, f = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
607
- return i;
608
- }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, u = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + f + h + "(?:" + f + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + f + h + ")(?:" + f + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + f + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + f + "$"), inside: { "table-header": { pattern: RegExp(i), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(g) {
609
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
610
- g !== b && (e.languages.markdown[g].inside.content.inside[b] = e.languages.markdown[b]);
611
- });
612
- }), e.hooks.add("after-tokenize", function(g) {
613
- g.language !== "markdown" && g.language !== "md" || function b(y) {
614
- if (y && typeof y != "string")
615
- for (var v = 0, w = y.length; v < w; v++) {
616
- var n, a = y[v];
617
- a.type !== "code" ? b(a.content) : (n = a.content[1], a = a.content[3], n && a && n.type === "code-language" && a.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, n] : a.alias.push(n) : a.alias = [n]));
618
- }
619
- }(g.tokens);
620
- }), e.hooks.add("wrap", function(g) {
621
- if (g.type === "code-block") {
622
- for (var b = "", y = 0, v = g.classes.length; y < v; y++) {
623
- var w = g.classes[y], w = /language-(.+)/.exec(w);
624
- if (w) {
625
- b = w[1];
626
- break;
627
- }
628
- }
629
- var n, a = e.languages[b];
630
- a ? g.content = e.highlight(function(s) {
631
- return s = s.replace(u, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(c, l) {
632
- var d;
633
- return (l = l.toLowerCase())[0] === "#" ? (d = l[1] === "x" ? parseInt(l.slice(2), 16) : Number(l.slice(1)), p(d)) : m[l] || c;
634
- });
635
- }(g.content), a, b) : b && b !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), g.attributes.id = n, e.plugins.autoloader.loadLanguages(b, function() {
636
- var s = document.getElementById(n);
637
- s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
638
- }));
639
- }
640
- }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, p = String.fromCodePoint || String.fromCharCode;
641
- e.languages.md = e.languages.markdown;
642
- }(o), o.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: o.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, o.hooks.add("after-tokenize", function(e) {
643
- if (e.language === "graphql")
644
- for (var t = e.tokens.filter(function(n) {
645
- return typeof n != "string" && n.type !== "comment" && n.type !== "scalar";
646
- }), r = 0; r < t.length; ) {
647
- var i = t[r++];
648
- if (i.type === "keyword" && i.content === "mutation") {
649
- var f = [];
650
- if (y(["definition-mutation", "punctuation"]) && b(1).content === "(") {
651
- r += 2;
652
- var h = v(/^\($/, /^\)$/);
653
- if (h === -1)
654
- continue;
655
- for (; r < h; r++) {
656
- var u = b(0);
657
- u.type === "variable" && (w(u, "variable-input"), f.push(u.content));
658
- }
659
- r = h + 1;
660
- }
661
- if (y(["punctuation", "property-query"]) && b(0).content === "{" && (r++, w(b(0), "property-mutation"), 0 < f.length)) {
662
- var m = v(/^\{$/, /^\}$/);
663
- if (m !== -1)
664
- for (var p = r; p < m; p++) {
665
- var g = t[p];
666
- g.type === "variable" && 0 <= f.indexOf(g.content) && w(g, "variable-input");
667
- }
668
- }
669
- }
670
- }
671
- function b(n) {
672
- return t[r + n];
673
- }
674
- function y(n, a) {
675
- a = a || 0;
676
- for (var s = 0; s < n.length; s++) {
677
- var c = b(s + a);
678
- if (!c || c.type !== n[s])
679
- return;
680
- }
681
- return 1;
682
- }
683
- function v(n, a) {
684
- for (var s = 1, c = r; c < t.length; c++) {
685
- var l = t[c], d = l.content;
686
- if (l.type === "punctuation" && typeof d == "string") {
687
- if (n.test(d))
688
- s++;
689
- else if (a.test(d) && --s === 0)
690
- return c;
691
- }
692
- }
693
- return -1;
694
- }
695
- function w(n, a) {
696
- var s = n.alias;
697
- s ? Array.isArray(s) || (n.alias = s = [s]) : n.alias = s = [], s.push(a);
698
- }
699
- }), o.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\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, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
700
- var t = e.languages.javascript["template-string"], r = t.pattern.source, i = t.inside.interpolation, f = i.inside["interpolation-punctuation"], h = i.pattern.source;
701
- function u(y, v) {
702
- if (e.languages[y])
703
- return { pattern: RegExp("((?:" + v + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: y } } };
704
- }
705
- function m(y, v, w) {
706
- return y = { code: y, grammar: v, language: w }, e.hooks.run("before-tokenize", y), y.tokens = e.tokenize(y.code, y.grammar), e.hooks.run("after-tokenize", y), y.tokens;
707
- }
708
- function p(y, v, w) {
709
- var s = e.tokenize(y, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), n = 0, a = {}, s = m(s.map(function(l) {
710
- if (typeof l == "string")
711
- return l;
712
- for (var d, k, l = l.content; y.indexOf((k = n++, d = "___" + w.toUpperCase() + "_" + k + "___")) !== -1; )
713
- ;
714
- return a[d] = l, d;
715
- }).join(""), v, w), c = Object.keys(a);
716
- return n = 0, function l(d) {
717
- for (var k = 0; k < d.length; k++) {
718
- if (n >= c.length)
719
- return;
720
- var E, A, x, F, T, D, C, L = d[k];
721
- typeof L == "string" || typeof L.content == "string" ? (E = c[n], (C = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++n, A = D.substring(0, C), T = a[E], x = void 0, (F = {})["interpolation-punctuation"] = f, (F = e.tokenize(T, F)).length === 3 && ((x = [1, 1]).push.apply(x, m(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, x)), x = new e.Token("interpolation", F, i.alias, T), F = D.substring(C + E.length), T = [], A && T.push(A), T.push(x), F && (l(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (d.splice.apply(d, [k, 1].concat(T)), k += T.length - 1) : L.content = T)) : (C = L.content, Array.isArray(C) ? l(C) : l([C]));
722
- }
723
- }(s), new e.Token(w, s, "language-" + w, y);
724
- }
725
- e.languages.javascript["template-string"] = [u("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), u("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), u("svg", /\bsvg/.source), u("markdown", /\b(?:markdown|md)/.source), u("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), u("sql", /\bsql/.source), t].filter(Boolean);
726
- var g = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
727
- function b(y) {
728
- return typeof y == "string" ? y : Array.isArray(y) ? y.map(b).join("") : b(y.content);
729
- }
730
- e.hooks.add("after-tokenize", function(y) {
731
- y.language in g && function v(w) {
732
- for (var n = 0, a = w.length; n < a; n++) {
733
- var s, c, l, d = w[n];
734
- typeof d != "string" && (s = d.content, Array.isArray(s) ? d.type === "template-string" ? (d = s[1], s.length === 3 && typeof d != "string" && d.type === "embedded-code" && (c = b(d), d = d.alias, d = Array.isArray(d) ? d[0] : d, l = e.languages[d]) && (s[1] = p(c, l, d))) : v(s) : typeof s != "string" && v([s]));
735
- }
736
- }(y.tokens);
737
- });
738
- }(o), function(e) {
739
- e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
740
- var t = e.languages.extend("typescript", {});
741
- delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
742
- }(o), function(e) {
743
- var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, i = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
744
- e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(i + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(i + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
745
- return r;
746
- })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
747
- }(o), function(e) {
748
- e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
749
- }(o), o.languages.n4js = o.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), o.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), o.languages.n4jsd = o.languages.n4js, function(e) {
750
- function t(u, m) {
751
- return RegExp(u.replace(/<ID>/g, function() {
752
- return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
753
- }), m);
754
- }
755
- e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\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/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
756
- for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], i = 0; i < r.length; i++) {
757
- var h = r[i], f = e.languages.javascript[h], h = (f = e.util.type(f) === "RegExp" ? e.languages.javascript[h] = { pattern: f } : f).inside || {};
758
- (f.inside = h)["maybe-class-name"] = /^[A-Z][\s\S]*/;
759
- }
760
- }(o), function(e) {
761
- var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, f = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
762
- function h(p, g) {
763
- return p = p.replace(/<S>/g, function() {
764
- return r;
765
- }).replace(/<BRACES>/g, function() {
766
- return i;
767
- }).replace(/<SPREAD>/g, function() {
768
- return f;
769
- }), RegExp(p, g);
770
- }
771
- f = h(f).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: h(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: h(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
772
- function u(p) {
773
- for (var g = [], b = 0; b < p.length; b++) {
774
- var y = p[b], v = !1;
775
- typeof y != "string" && (y.type === "tag" && y.content[0] && y.content[0].type === "tag" ? y.content[0].content[0].content === "</" ? 0 < g.length && g[g.length - 1].tagName === m(y.content[0].content[1]) && g.pop() : y.content[y.content.length - 1].content !== "/>" && g.push({ tagName: m(y.content[0].content[1]), openedBraces: 0 }) : 0 < g.length && y.type === "punctuation" && y.content === "{" ? g[g.length - 1].openedBraces++ : 0 < g.length && 0 < g[g.length - 1].openedBraces && y.type === "punctuation" && y.content === "}" ? g[g.length - 1].openedBraces-- : v = !0), (v || typeof y == "string") && 0 < g.length && g[g.length - 1].openedBraces === 0 && (v = m(y), b < p.length - 1 && (typeof p[b + 1] == "string" || p[b + 1].type === "plain-text") && (v += m(p[b + 1]), p.splice(b + 1, 1)), 0 < b && (typeof p[b - 1] == "string" || p[b - 1].type === "plain-text") && (v = m(p[b - 1]) + v, p.splice(b - 1, 1), b--), p[b] = new e.Token("plain-text", v, null, v)), y.content && typeof y.content != "string" && u(y.content);
776
- }
777
- }
778
- var m = function(p) {
779
- return p ? typeof p == "string" ? p : typeof p.content == "string" ? p.content : p.content.map(m).join("") : "";
780
- };
781
- e.hooks.add("after-tokenize", function(p) {
782
- p.language !== "jsx" && p.language !== "tsx" || u(p.tokens);
783
- });
784
- }(o), function(e) {
785
- var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
786
- t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
787
- }(o), o.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, o.languages.swift["string-literal"].forEach(function(e) {
788
- e.inside.interpolation.inside = o.languages.swift;
789
- }), function(e) {
790
- e.languages.kotlin = e.languages.extend("clike", { keyword: { pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
791
- var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
792
- e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
793
- }(o), o.languages.c = o.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\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/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), o.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), o.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, o.languages.c.string], char: o.languages.c.char, comment: o.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: o.languages.c } } } }), o.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete o.languages.c.boolean, o.languages.objectivec = o.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\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/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete o.languages.objectivec["class-name"], o.languages.objc = o.languages.objectivec, o.languages.reason = o.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\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/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), o.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete o.languages.reason.function, function(e) {
794
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
795
- t = t.replace(/<self>/g, function() {
796
- return t;
797
- });
798
- t = t.replace(/<self>/g, function() {
799
- return /[^\s\S]/.source;
800
- }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
801
- }(o), o.languages.go = o.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\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/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), o.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete o.languages.go["class-name"], function(e) {
802
- var t = /\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/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
803
- return t.source;
804
- });
805
- e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
806
- return t.source;
807
- })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
808
- return r;
809
- }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
810
- }(o), o.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\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/, builtin: /\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/, boolean: /\b(?:False|None|True)\b/, number: /\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, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, o.languages.python["string-interpolation"].inside.interpolation.inside.rest = o.languages.python, o.languages.py = o.languages.python, o.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, o.languages.webmanifest = o.languages.json;
811
- var V = {};
812
- _e(V, {
813
- dracula: () => Le,
814
- duotoneDark: () => Ne,
815
- duotoneLight: () => De,
816
- github: () => $e,
817
- gruvboxMaterialDark: () => gt,
818
- gruvboxMaterialLight: () => yt,
819
- jettwaveDark: () => rt,
820
- jettwaveLight: () => st,
821
- nightOwl: () => je,
822
- nightOwlLight: () => Me,
823
- oceanicNext: () => Ge,
824
- okaidia: () => qe,
825
- oneDark: () => it,
826
- oneLight: () => ct,
827
- palenight: () => He,
828
- shadesOfPurple: () => Ke,
829
- synthwave84: () => Xe,
830
- ultramin: () => Je,
831
- vsDark: () => ce,
832
- vsLight: () => at
833
- });
834
- var Ie = {
835
- plain: {
836
- color: "#F8F8F2",
837
- backgroundColor: "#282A36"
838
- },
839
- styles: [
840
- {
841
- types: ["prolog", "constant", "builtin"],
842
- style: {
843
- color: "rgb(189, 147, 249)"
844
- }
845
- },
846
- {
847
- types: ["inserted", "function"],
848
- style: {
849
- color: "rgb(80, 250, 123)"
850
- }
851
- },
852
- {
853
- types: ["deleted"],
854
- style: {
855
- color: "rgb(255, 85, 85)"
856
- }
857
- },
858
- {
859
- types: ["changed"],
860
- style: {
861
- color: "rgb(255, 184, 108)"
862
- }
863
- },
864
- {
865
- types: ["punctuation", "symbol"],
866
- style: {
867
- color: "rgb(248, 248, 242)"
868
- }
869
- },
870
- {
871
- types: ["string", "char", "tag", "selector"],
872
- style: {
873
- color: "rgb(255, 121, 198)"
874
- }
875
- },
876
- {
877
- types: ["keyword", "variable"],
878
- style: {
879
- color: "rgb(189, 147, 249)",
880
- fontStyle: "italic"
881
- }
882
- },
883
- {
884
- types: ["comment"],
885
- style: {
886
- color: "rgb(98, 114, 164)"
887
- }
888
- },
889
- {
890
- types: ["attr-name"],
891
- style: {
892
- color: "rgb(241, 250, 140)"
893
- }
894
- }
895
- ]
896
- }, Le = Ie, Oe = {
897
- plain: {
898
- backgroundColor: "#2a2734",
899
- color: "#9a86fd"
900
- },
901
- styles: [
902
- {
903
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
904
- style: {
905
- color: "#6c6783"
906
- }
907
- },
908
- {
909
- types: ["namespace"],
910
- style: {
911
- opacity: 0.7
912
- }
913
- },
914
- {
915
- types: ["tag", "operator", "number"],
916
- style: {
917
- color: "#e09142"
918
- }
919
- },
920
- {
921
- types: ["property", "function"],
922
- style: {
923
- color: "#9a86fd"
924
- }
925
- },
926
- {
927
- types: ["tag-id", "selector", "atrule-id"],
928
- style: {
929
- color: "#eeebff"
930
- }
931
- },
932
- {
933
- types: ["attr-name"],
934
- style: {
935
- color: "#c4b9fe"
936
- }
937
- },
938
- {
939
- types: [
940
- "boolean",
941
- "string",
942
- "entity",
943
- "url",
944
- "attr-value",
945
- "keyword",
946
- "control",
947
- "directive",
948
- "unit",
949
- "statement",
950
- "regex",
951
- "atrule",
952
- "placeholder",
953
- "variable"
954
- ],
955
- style: {
956
- color: "#ffcc99"
957
- }
958
- },
959
- {
960
- types: ["deleted"],
961
- style: {
962
- textDecorationLine: "line-through"
963
- }
964
- },
965
- {
966
- types: ["inserted"],
967
- style: {
968
- textDecorationLine: "underline"
969
- }
970
- },
971
- {
972
- types: ["italic"],
973
- style: {
974
- fontStyle: "italic"
975
- }
976
- },
977
- {
978
- types: ["important", "bold"],
979
- style: {
980
- fontWeight: "bold"
981
- }
982
- },
983
- {
984
- types: ["important"],
985
- style: {
986
- color: "#c4b9fe"
987
- }
988
- }
989
- ]
990
- }, Ne = Oe, Ce = {
991
- plain: {
992
- backgroundColor: "#faf8f5",
993
- color: "#728fcb"
994
- },
995
- styles: [
996
- {
997
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
998
- style: {
999
- color: "#b6ad9a"
1000
- }
1001
- },
1002
- {
1003
- types: ["namespace"],
1004
- style: {
1005
- opacity: 0.7
1006
- }
1007
- },
1008
- {
1009
- types: ["tag", "operator", "number"],
1010
- style: {
1011
- color: "#063289"
1012
- }
1013
- },
1014
- {
1015
- types: ["property", "function"],
1016
- style: {
1017
- color: "#b29762"
1018
- }
1019
- },
1020
- {
1021
- types: ["tag-id", "selector", "atrule-id"],
1022
- style: {
1023
- color: "#2d2006"
1024
- }
1025
- },
1026
- {
1027
- types: ["attr-name"],
1028
- style: {
1029
- color: "#896724"
1030
- }
1031
- },
1032
- {
1033
- types: [
1034
- "boolean",
1035
- "string",
1036
- "entity",
1037
- "url",
1038
- "attr-value",
1039
- "keyword",
1040
- "control",
1041
- "directive",
1042
- "unit",
1043
- "statement",
1044
- "regex",
1045
- "atrule"
1046
- ],
1047
- style: {
1048
- color: "#728fcb"
1049
- }
1050
- },
1051
- {
1052
- types: ["placeholder", "variable"],
1053
- style: {
1054
- color: "#93abdc"
1055
- }
1056
- },
1057
- {
1058
- types: ["deleted"],
1059
- style: {
1060
- textDecorationLine: "line-through"
1061
- }
1062
- },
1063
- {
1064
- types: ["inserted"],
1065
- style: {
1066
- textDecorationLine: "underline"
1067
- }
1068
- },
1069
- {
1070
- types: ["italic"],
1071
- style: {
1072
- fontStyle: "italic"
1073
- }
1074
- },
1075
- {
1076
- types: ["important", "bold"],
1077
- style: {
1078
- fontWeight: "bold"
1079
- }
1080
- },
1081
- {
1082
- types: ["important"],
1083
- style: {
1084
- color: "#896724"
1085
- }
1086
- }
1087
- ]
1088
- }, De = Ce, Be = {
1089
- plain: {
1090
- color: "#393A34",
1091
- backgroundColor: "#f6f8fa"
1092
- },
1093
- styles: [
1094
- {
1095
- types: ["comment", "prolog", "doctype", "cdata"],
1096
- style: {
1097
- color: "#999988",
1098
- fontStyle: "italic"
1099
- }
1100
- },
1101
- {
1102
- types: ["namespace"],
1103
- style: {
1104
- opacity: 0.7
1105
- }
1106
- },
1107
- {
1108
- types: ["string", "attr-value"],
1109
- style: {
1110
- color: "#e3116c"
1111
- }
1112
- },
1113
- {
1114
- types: ["punctuation", "operator"],
1115
- style: {
1116
- color: "#393A34"
1117
- }
1118
- },
1119
- {
1120
- types: [
1121
- "entity",
1122
- "url",
1123
- "symbol",
1124
- "number",
1125
- "boolean",
1126
- "variable",
1127
- "constant",
1128
- "property",
1129
- "regex",
1130
- "inserted"
1131
- ],
1132
- style: {
1133
- color: "#36acaa"
1134
- }
1135
- },
1136
- {
1137
- types: ["atrule", "keyword", "attr-name", "selector"],
1138
- style: {
1139
- color: "#00a4db"
1140
- }
1141
- },
1142
- {
1143
- types: ["function", "deleted", "tag"],
1144
- style: {
1145
- color: "#d73a49"
1146
- }
1147
- },
1148
- {
1149
- types: ["function-variable"],
1150
- style: {
1151
- color: "#6f42c1"
1152
- }
1153
- },
1154
- {
1155
- types: ["tag", "selector", "keyword"],
1156
- style: {
1157
- color: "#00009f"
1158
- }
1159
- }
1160
- ]
1161
- }, $e = Be, Pe = {
1162
- plain: {
1163
- color: "#d6deeb",
1164
- backgroundColor: "#011627"
1165
- },
1166
- styles: [
1167
- {
1168
- types: ["changed"],
1169
- style: {
1170
- color: "rgb(162, 191, 252)",
1171
- fontStyle: "italic"
1172
- }
1173
- },
1174
- {
1175
- types: ["deleted"],
1176
- style: {
1177
- color: "rgba(239, 83, 80, 0.56)",
1178
- fontStyle: "italic"
1179
- }
1180
- },
1181
- {
1182
- types: ["inserted", "attr-name"],
1183
- style: {
1184
- color: "rgb(173, 219, 103)",
1185
- fontStyle: "italic"
1186
- }
1187
- },
1188
- {
1189
- types: ["comment"],
1190
- style: {
1191
- color: "rgb(99, 119, 119)",
1192
- fontStyle: "italic"
1193
- }
1194
- },
1195
- {
1196
- types: ["string", "url"],
1197
- style: {
1198
- color: "rgb(173, 219, 103)"
1199
- }
1200
- },
1201
- {
1202
- types: ["variable"],
1203
- style: {
1204
- color: "rgb(214, 222, 235)"
1205
- }
1206
- },
1207
- {
1208
- types: ["number"],
1209
- style: {
1210
- color: "rgb(247, 140, 108)"
1211
- }
1212
- },
1213
- {
1214
- types: ["builtin", "char", "constant", "function"],
1215
- style: {
1216
- color: "rgb(130, 170, 255)"
1217
- }
1218
- },
1219
- {
1220
- // This was manually added after the auto-generation
1221
- // so that punctuations are not italicised
1222
- types: ["punctuation"],
1223
- style: {
1224
- color: "rgb(199, 146, 234)"
1225
- }
1226
- },
1227
- {
1228
- types: ["selector", "doctype"],
1229
- style: {
1230
- color: "rgb(199, 146, 234)",
1231
- fontStyle: "italic"
1232
- }
1233
- },
1234
- {
1235
- types: ["class-name"],
1236
- style: {
1237
- color: "rgb(255, 203, 139)"
1238
- }
1239
- },
1240
- {
1241
- types: ["tag", "operator", "keyword"],
1242
- style: {
1243
- color: "rgb(127, 219, 202)"
1244
- }
1245
- },
1246
- {
1247
- types: ["boolean"],
1248
- style: {
1249
- color: "rgb(255, 88, 116)"
1250
- }
1251
- },
1252
- {
1253
- types: ["property"],
1254
- style: {
1255
- color: "rgb(128, 203, 196)"
1256
- }
1257
- },
1258
- {
1259
- types: ["namespace"],
1260
- style: {
1261
- color: "rgb(178, 204, 214)"
1262
- }
1263
- }
1264
- ]
1265
- }, je = Pe, ze = {
1266
- plain: {
1267
- color: "#403f53",
1268
- backgroundColor: "#FBFBFB"
1269
- },
1270
- styles: [
1271
- {
1272
- types: ["changed"],
1273
- style: {
1274
- color: "rgb(162, 191, 252)",
1275
- fontStyle: "italic"
1276
- }
1277
- },
1278
- {
1279
- types: ["deleted"],
1280
- style: {
1281
- color: "rgba(239, 83, 80, 0.56)",
1282
- fontStyle: "italic"
1283
- }
1284
- },
1285
- {
1286
- types: ["inserted", "attr-name"],
1287
- style: {
1288
- color: "rgb(72, 118, 214)",
1289
- fontStyle: "italic"
1290
- }
1291
- },
1292
- {
1293
- types: ["comment"],
1294
- style: {
1295
- color: "rgb(152, 159, 177)",
1296
- fontStyle: "italic"
1297
- }
1298
- },
1299
- {
1300
- types: ["string", "builtin", "char", "constant", "url"],
1301
- style: {
1302
- color: "rgb(72, 118, 214)"
1303
- }
1304
- },
1305
- {
1306
- types: ["variable"],
1307
- style: {
1308
- color: "rgb(201, 103, 101)"
1309
- }
1310
- },
1311
- {
1312
- types: ["number"],
1313
- style: {
1314
- color: "rgb(170, 9, 130)"
1315
- }
1316
- },
1317
- {
1318
- // This was manually added after the auto-generation
1319
- // so that punctuations are not italicised
1320
- types: ["punctuation"],
1321
- style: {
1322
- color: "rgb(153, 76, 195)"
1323
- }
1324
- },
1325
- {
1326
- types: ["function", "selector", "doctype"],
1327
- style: {
1328
- color: "rgb(153, 76, 195)",
1329
- fontStyle: "italic"
1330
- }
1331
- },
1332
- {
1333
- types: ["class-name"],
1334
- style: {
1335
- color: "rgb(17, 17, 17)"
1336
- }
1337
- },
1338
- {
1339
- types: ["tag"],
1340
- style: {
1341
- color: "rgb(153, 76, 195)"
1342
- }
1343
- },
1344
- {
1345
- types: ["operator", "property", "keyword", "namespace"],
1346
- style: {
1347
- color: "rgb(12, 150, 155)"
1348
- }
1349
- },
1350
- {
1351
- types: ["boolean"],
1352
- style: {
1353
- color: "rgb(188, 84, 84)"
1354
- }
1355
- }
1356
- ]
1357
- }, Me = ze, R = {
1358
- char: "#D8DEE9",
1359
- comment: "#999999",
1360
- keyword: "#c5a5c5",
1361
- primitive: "#5a9bcf",
1362
- string: "#8dc891",
1363
- variable: "#d7deea",
1364
- boolean: "#ff8b50",
1365
- tag: "#fc929e",
1366
- function: "#79b6f2",
1367
- className: "#FAC863"
1368
- }, Ue = {
1369
- plain: {
1370
- backgroundColor: "#282c34",
1371
- color: "#ffffff"
1372
- },
1373
- styles: [
1374
- {
1375
- types: ["attr-name"],
1376
- style: {
1377
- color: R.keyword
1378
- }
1379
- },
1380
- {
1381
- types: ["attr-value"],
1382
- style: {
1383
- color: R.string
1384
- }
1385
- },
1386
- {
1387
- types: [
1388
- "comment",
1389
- "block-comment",
1390
- "prolog",
1391
- "doctype",
1392
- "cdata",
1393
- "shebang"
1394
- ],
1395
- style: {
1396
- color: R.comment
1397
- }
1398
- },
1399
- {
1400
- types: [
1401
- "property",
1402
- "number",
1403
- "function-name",
1404
- "constant",
1405
- "symbol",
1406
- "deleted"
1407
- ],
1408
- style: {
1409
- color: R.primitive
1410
- }
1411
- },
1412
- {
1413
- types: ["boolean"],
1414
- style: {
1415
- color: R.boolean
1416
- }
1417
- },
1418
- {
1419
- types: ["tag"],
1420
- style: {
1421
- color: R.tag
1422
- }
1423
- },
1424
- {
1425
- types: ["string"],
1426
- style: {
1427
- color: R.string
1428
- }
1429
- },
1430
- {
1431
- types: ["punctuation"],
1432
- style: {
1433
- color: R.string
1434
- }
1435
- },
1436
- {
1437
- types: ["selector", "char", "builtin", "inserted"],
1438
- style: {
1439
- color: R.char
1440
- }
1441
- },
1442
- {
1443
- types: ["function"],
1444
- style: {
1445
- color: R.function
1446
- }
1447
- },
1448
- {
1449
- types: ["operator", "entity", "url", "variable"],
1450
- style: {
1451
- color: R.variable
1452
- }
1453
- },
1454
- {
1455
- types: ["keyword"],
1456
- style: {
1457
- color: R.keyword
1458
- }
1459
- },
1460
- {
1461
- types: ["atrule", "class-name"],
1462
- style: {
1463
- color: R.className
1464
- }
1465
- },
1466
- {
1467
- types: ["important"],
1468
- style: {
1469
- fontWeight: "400"
1470
- }
1471
- },
1472
- {
1473
- types: ["bold"],
1474
- style: {
1475
- fontWeight: "bold"
1476
- }
1477
- },
1478
- {
1479
- types: ["italic"],
1480
- style: {
1481
- fontStyle: "italic"
1482
- }
1483
- },
1484
- {
1485
- types: ["namespace"],
1486
- style: {
1487
- opacity: 0.7
1488
- }
1489
- }
1490
- ]
1491
- }, Ge = Ue, Ze = {
1492
- plain: {
1493
- color: "#f8f8f2",
1494
- backgroundColor: "#272822"
1495
- },
1496
- styles: [
1497
- {
1498
- types: ["changed"],
1499
- style: {
1500
- color: "rgb(162, 191, 252)",
1501
- fontStyle: "italic"
1502
- }
1503
- },
1504
- {
1505
- types: ["deleted"],
1506
- style: {
1507
- color: "#f92672",
1508
- fontStyle: "italic"
1509
- }
1510
- },
1511
- {
1512
- types: ["inserted"],
1513
- style: {
1514
- color: "rgb(173, 219, 103)",
1515
- fontStyle: "italic"
1516
- }
1517
- },
1518
- {
1519
- types: ["comment"],
1520
- style: {
1521
- color: "#8292a2",
1522
- fontStyle: "italic"
1523
- }
1524
- },
1525
- {
1526
- types: ["string", "url"],
1527
- style: {
1528
- color: "#a6e22e"
1529
- }
1530
- },
1531
- {
1532
- types: ["variable"],
1533
- style: {
1534
- color: "#f8f8f2"
1535
- }
1536
- },
1537
- {
1538
- types: ["number"],
1539
- style: {
1540
- color: "#ae81ff"
1541
- }
1542
- },
1543
- {
1544
- types: ["builtin", "char", "constant", "function", "class-name"],
1545
- style: {
1546
- color: "#e6db74"
1547
- }
1548
- },
1549
- {
1550
- types: ["punctuation"],
1551
- style: {
1552
- color: "#f8f8f2"
1553
- }
1554
- },
1555
- {
1556
- types: ["selector", "doctype"],
1557
- style: {
1558
- color: "#a6e22e",
1559
- fontStyle: "italic"
1560
- }
1561
- },
1562
- {
1563
- types: ["tag", "operator", "keyword"],
1564
- style: {
1565
- color: "#66d9ef"
1566
- }
1567
- },
1568
- {
1569
- types: ["boolean"],
1570
- style: {
1571
- color: "#ae81ff"
1572
- }
1573
- },
1574
- {
1575
- types: ["namespace"],
1576
- style: {
1577
- color: "rgb(178, 204, 214)",
1578
- opacity: 0.7
1579
- }
1580
- },
1581
- {
1582
- types: ["tag", "property"],
1583
- style: {
1584
- color: "#f92672"
1585
- }
1586
- },
1587
- {
1588
- types: ["attr-name"],
1589
- style: {
1590
- color: "#a6e22e !important"
1591
- }
1592
- },
1593
- {
1594
- types: ["doctype"],
1595
- style: {
1596
- color: "#8292a2"
1597
- }
1598
- },
1599
- {
1600
- types: ["rule"],
1601
- style: {
1602
- color: "#e6db74"
1603
- }
1604
- }
1605
- ]
1606
- }, qe = Ze, We = {
1607
- plain: {
1608
- color: "#bfc7d5",
1609
- backgroundColor: "#292d3e"
1610
- },
1611
- styles: [
1612
- {
1613
- types: ["comment"],
1614
- style: {
1615
- color: "rgb(105, 112, 152)",
1616
- fontStyle: "italic"
1617
- }
1618
- },
1619
- {
1620
- types: ["string", "inserted"],
1621
- style: {
1622
- color: "rgb(195, 232, 141)"
1623
- }
1624
- },
1625
- {
1626
- types: ["number"],
1627
- style: {
1628
- color: "rgb(247, 140, 108)"
1629
- }
1630
- },
1631
- {
1632
- types: ["builtin", "char", "constant", "function"],
1633
- style: {
1634
- color: "rgb(130, 170, 255)"
1635
- }
1636
- },
1637
- {
1638
- types: ["punctuation", "selector"],
1639
- style: {
1640
- color: "rgb(199, 146, 234)"
1641
- }
1642
- },
1643
- {
1644
- types: ["variable"],
1645
- style: {
1646
- color: "rgb(191, 199, 213)"
1647
- }
1648
- },
1649
- {
1650
- types: ["class-name", "attr-name"],
1651
- style: {
1652
- color: "rgb(255, 203, 107)"
1653
- }
1654
- },
1655
- {
1656
- types: ["tag", "deleted"],
1657
- style: {
1658
- color: "rgb(255, 85, 114)"
1659
- }
1660
- },
1661
- {
1662
- types: ["operator"],
1663
- style: {
1664
- color: "rgb(137, 221, 255)"
1665
- }
1666
- },
1667
- {
1668
- types: ["boolean"],
1669
- style: {
1670
- color: "rgb(255, 88, 116)"
1671
- }
1672
- },
1673
- {
1674
- types: ["keyword"],
1675
- style: {
1676
- fontStyle: "italic"
1677
- }
1678
- },
1679
- {
1680
- types: ["doctype"],
1681
- style: {
1682
- color: "rgb(199, 146, 234)",
1683
- fontStyle: "italic"
1684
- }
1685
- },
1686
- {
1687
- types: ["namespace"],
1688
- style: {
1689
- color: "rgb(178, 204, 214)"
1690
- }
1691
- },
1692
- {
1693
- types: ["url"],
1694
- style: {
1695
- color: "rgb(221, 221, 221)"
1696
- }
1697
- }
1698
- ]
1699
- }, He = We, Ye = {
1700
- plain: {
1701
- color: "#9EFEFF",
1702
- backgroundColor: "#2D2A55"
1703
- },
1704
- styles: [
1705
- {
1706
- types: ["changed"],
1707
- style: {
1708
- color: "rgb(255, 238, 128)"
1709
- }
1710
- },
1711
- {
1712
- types: ["deleted"],
1713
- style: {
1714
- color: "rgba(239, 83, 80, 0.56)"
1715
- }
1716
- },
1717
- {
1718
- types: ["inserted"],
1719
- style: {
1720
- color: "rgb(173, 219, 103)"
1721
- }
1722
- },
1723
- {
1724
- types: ["comment"],
1725
- style: {
1726
- color: "rgb(179, 98, 255)",
1727
- fontStyle: "italic"
1728
- }
1729
- },
1730
- {
1731
- types: ["punctuation"],
1732
- style: {
1733
- color: "rgb(255, 255, 255)"
1734
- }
1735
- },
1736
- {
1737
- types: ["constant"],
1738
- style: {
1739
- color: "rgb(255, 98, 140)"
1740
- }
1741
- },
1742
- {
1743
- types: ["string", "url"],
1744
- style: {
1745
- color: "rgb(165, 255, 144)"
1746
- }
1747
- },
1748
- {
1749
- types: ["variable"],
1750
- style: {
1751
- color: "rgb(255, 238, 128)"
1752
- }
1753
- },
1754
- {
1755
- types: ["number", "boolean"],
1756
- style: {
1757
- color: "rgb(255, 98, 140)"
1758
- }
1759
- },
1760
- {
1761
- types: ["attr-name"],
1762
- style: {
1763
- color: "rgb(255, 180, 84)"
1764
- }
1765
- },
1766
- {
1767
- types: [
1768
- "keyword",
1769
- "operator",
1770
- "property",
1771
- "namespace",
1772
- "tag",
1773
- "selector",
1774
- "doctype"
1775
- ],
1776
- style: {
1777
- color: "rgb(255, 157, 0)"
1778
- }
1779
- },
1780
- {
1781
- types: ["builtin", "char", "constant", "function", "class-name"],
1782
- style: {
1783
- color: "rgb(250, 208, 0)"
1784
- }
1785
- }
1786
- ]
1787
- }, Ke = Ye, Ve = {
1788
- plain: {
1789
- backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
1790
- backgroundImage: "#34294f",
1791
- color: "#f92aad",
1792
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1793
- },
1794
- styles: [
1795
- {
1796
- types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
1797
- style: {
1798
- color: "#495495",
1799
- fontStyle: "italic"
1800
- }
1801
- },
1802
- {
1803
- types: ["punctuation"],
1804
- style: {
1805
- color: "#ccc"
1806
- }
1807
- },
1808
- {
1809
- types: [
1810
- "tag",
1811
- "attr-name",
1812
- "namespace",
1813
- "number",
1814
- "unit",
1815
- "hexcode",
1816
- "deleted"
1817
- ],
1818
- style: {
1819
- color: "#e2777a"
1820
- }
1821
- },
1822
- {
1823
- types: ["property", "selector"],
1824
- style: {
1825
- color: "#72f1b8",
1826
- textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
1827
- }
1828
- },
1829
- {
1830
- types: ["function-name"],
1831
- style: {
1832
- color: "#6196cc"
1833
- }
1834
- },
1835
- {
1836
- types: ["boolean", "selector-id", "function"],
1837
- style: {
1838
- color: "#fdfdfd",
1839
- textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
1840
- }
1841
- },
1842
- {
1843
- types: ["class-name", "maybe-class-name", "builtin"],
1844
- style: {
1845
- color: "#fff5f6",
1846
- textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
1847
- }
1848
- },
1849
- {
1850
- types: ["constant", "symbol"],
1851
- style: {
1852
- color: "#f92aad",
1853
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1854
- }
1855
- },
1856
- {
1857
- types: ["important", "atrule", "keyword", "selector-class"],
1858
- style: {
1859
- color: "#f4eee4",
1860
- textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
1861
- }
1862
- },
1863
- {
1864
- types: ["string", "char", "attr-value", "regex", "variable"],
1865
- style: {
1866
- color: "#f87c32"
1867
- }
1868
- },
1869
- {
1870
- types: ["parameter"],
1871
- style: {
1872
- fontStyle: "italic"
1873
- }
1874
- },
1875
- {
1876
- types: ["entity", "url"],
1877
- style: {
1878
- color: "#67cdcc"
1879
- }
1880
- },
1881
- {
1882
- types: ["operator"],
1883
- style: {
1884
- color: "ffffffee"
1885
- }
1886
- },
1887
- {
1888
- types: ["important", "bold"],
1889
- style: {
1890
- fontWeight: "bold"
1891
- }
1892
- },
1893
- {
1894
- types: ["italic"],
1895
- style: {
1896
- fontStyle: "italic"
1897
- }
1898
- },
1899
- {
1900
- types: ["entity"],
1901
- style: {
1902
- cursor: "help"
1903
- }
1904
- },
1905
- {
1906
- types: ["inserted"],
1907
- style: {
1908
- color: "green"
1909
- }
1910
- }
1911
- ]
1912
- }, Xe = Ve, Qe = {
1913
- plain: {
1914
- color: "#282a2e",
1915
- backgroundColor: "#ffffff"
1916
- },
1917
- styles: [
1918
- {
1919
- types: ["comment"],
1920
- style: {
1921
- color: "rgb(197, 200, 198)"
1922
- }
1923
- },
1924
- {
1925
- types: ["string", "number", "builtin", "variable"],
1926
- style: {
1927
- color: "rgb(150, 152, 150)"
1928
- }
1929
- },
1930
- {
1931
- types: ["class-name", "function", "tag", "attr-name"],
1932
- style: {
1933
- color: "rgb(40, 42, 46)"
1934
- }
1935
- }
1936
- ]
1937
- }, Je = Qe, et = {
1938
- plain: {
1939
- color: "#9CDCFE",
1940
- backgroundColor: "#1E1E1E"
1941
- },
1942
- styles: [
1943
- {
1944
- types: ["prolog"],
1945
- style: {
1946
- color: "rgb(0, 0, 128)"
1947
- }
1948
- },
1949
- {
1950
- types: ["comment"],
1951
- style: {
1952
- color: "rgb(106, 153, 85)"
1953
- }
1954
- },
1955
- {
1956
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
1957
- style: {
1958
- color: "rgb(86, 156, 214)"
1959
- }
1960
- },
1961
- {
1962
- types: ["number", "inserted"],
1963
- style: {
1964
- color: "rgb(181, 206, 168)"
1965
- }
1966
- },
1967
- {
1968
- types: ["constant"],
1969
- style: {
1970
- color: "rgb(100, 102, 149)"
1971
- }
1972
- },
1973
- {
1974
- types: ["attr-name", "variable"],
1975
- style: {
1976
- color: "rgb(156, 220, 254)"
1977
- }
1978
- },
1979
- {
1980
- types: ["deleted", "string", "attr-value", "template-punctuation"],
1981
- style: {
1982
- color: "rgb(206, 145, 120)"
1983
- }
1984
- },
1985
- {
1986
- types: ["selector"],
1987
- style: {
1988
- color: "rgb(215, 186, 125)"
1989
- }
1990
- },
1991
- {
1992
- // Fix tag color
1993
- types: ["tag"],
1994
- style: {
1995
- color: "rgb(78, 201, 176)"
1996
- }
1997
- },
1998
- {
1999
- // Fix tag color for HTML
2000
- types: ["tag"],
2001
- languages: ["markup"],
2002
- style: {
2003
- color: "rgb(86, 156, 214)"
2004
- }
2005
- },
2006
- {
2007
- types: ["punctuation", "operator"],
2008
- style: {
2009
- color: "rgb(212, 212, 212)"
2010
- }
2011
- },
2012
- {
2013
- // Fix punctuation color for HTML
2014
- types: ["punctuation"],
2015
- languages: ["markup"],
2016
- style: {
2017
- color: "#808080"
2018
- }
2019
- },
2020
- {
2021
- types: ["function"],
2022
- style: {
2023
- color: "rgb(220, 220, 170)"
2024
- }
2025
- },
2026
- {
2027
- types: ["class-name"],
2028
- style: {
2029
- color: "rgb(78, 201, 176)"
2030
- }
2031
- },
2032
- {
2033
- types: ["char"],
2034
- style: {
2035
- color: "rgb(209, 105, 105)"
2036
- }
2037
- }
2038
- ]
2039
- }, ce = et, tt = {
2040
- plain: {
2041
- color: "#000000",
2042
- backgroundColor: "#ffffff"
2043
- },
2044
- styles: [
2045
- {
2046
- types: ["comment"],
2047
- style: {
2048
- color: "rgb(0, 128, 0)"
2049
- }
2050
- },
2051
- {
2052
- types: ["builtin"],
2053
- style: {
2054
- color: "rgb(0, 112, 193)"
2055
- }
2056
- },
2057
- {
2058
- types: ["number", "variable", "inserted"],
2059
- style: {
2060
- color: "rgb(9, 134, 88)"
2061
- }
2062
- },
2063
- {
2064
- types: ["operator"],
2065
- style: {
2066
- color: "rgb(0, 0, 0)"
2067
- }
2068
- },
2069
- {
2070
- types: ["constant", "char"],
2071
- style: {
2072
- color: "rgb(129, 31, 63)"
2073
- }
2074
- },
2075
- {
2076
- types: ["tag"],
2077
- style: {
2078
- color: "rgb(128, 0, 0)"
2079
- }
2080
- },
2081
- {
2082
- types: ["attr-name"],
2083
- style: {
2084
- color: "rgb(255, 0, 0)"
2085
- }
2086
- },
2087
- {
2088
- types: ["deleted", "string"],
2089
- style: {
2090
- color: "rgb(163, 21, 21)"
2091
- }
2092
- },
2093
- {
2094
- types: ["changed", "punctuation"],
2095
- style: {
2096
- color: "rgb(4, 81, 165)"
2097
- }
2098
- },
2099
- {
2100
- types: ["function", "keyword"],
2101
- style: {
2102
- color: "rgb(0, 0, 255)"
2103
- }
2104
- },
2105
- {
2106
- types: ["class-name"],
2107
- style: {
2108
- color: "rgb(38, 127, 153)"
2109
- }
2110
- }
2111
- ]
2112
- }, at = tt, nt = {
2113
- plain: {
2114
- color: "#f8fafc",
2115
- backgroundColor: "#011627"
2116
- },
2117
- styles: [
2118
- {
2119
- types: ["prolog"],
2120
- style: {
2121
- color: "#000080"
2122
- }
2123
- },
2124
- {
2125
- types: ["comment"],
2126
- style: {
2127
- color: "#6A9955"
2128
- }
2129
- },
2130
- {
2131
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2132
- style: {
2133
- color: "#569CD6"
2134
- }
2135
- },
2136
- {
2137
- types: ["number", "inserted"],
2138
- style: {
2139
- color: "#B5CEA8"
2140
- }
2141
- },
2142
- {
2143
- types: ["constant"],
2144
- style: {
2145
- color: "#f8fafc"
2146
- }
2147
- },
2148
- {
2149
- types: ["attr-name", "variable"],
2150
- style: {
2151
- color: "#9CDCFE"
2152
- }
2153
- },
2154
- {
2155
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2156
- style: {
2157
- color: "#cbd5e1"
2158
- }
2159
- },
2160
- {
2161
- types: ["selector"],
2162
- style: {
2163
- color: "#D7BA7D"
2164
- }
2165
- },
2166
- {
2167
- types: ["tag"],
2168
- style: {
2169
- color: "#0ea5e9"
2170
- }
2171
- },
2172
- {
2173
- types: ["tag"],
2174
- languages: ["markup"],
2175
- style: {
2176
- color: "#0ea5e9"
2177
- }
2178
- },
2179
- {
2180
- types: ["punctuation", "operator"],
2181
- style: {
2182
- color: "#D4D4D4"
2183
- }
2184
- },
2185
- {
2186
- types: ["punctuation"],
2187
- languages: ["markup"],
2188
- style: {
2189
- color: "#808080"
2190
- }
2191
- },
2192
- {
2193
- types: ["function"],
2194
- style: {
2195
- color: "#7dd3fc"
2196
- }
2197
- },
2198
- {
2199
- types: ["class-name"],
2200
- style: {
2201
- color: "#0ea5e9"
2202
- }
2203
- },
2204
- {
2205
- types: ["char"],
2206
- style: {
2207
- color: "#D16969"
2208
- }
2209
- }
2210
- ]
2211
- }, rt = nt, ot = {
2212
- plain: {
2213
- color: "#0f172a",
2214
- backgroundColor: "#f1f5f9"
2215
- },
2216
- styles: [
2217
- {
2218
- types: ["prolog"],
2219
- style: {
2220
- color: "#000080"
2221
- }
2222
- },
2223
- {
2224
- types: ["comment"],
2225
- style: {
2226
- color: "#6A9955"
2227
- }
2228
- },
2229
- {
2230
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2231
- style: {
2232
- color: "#0c4a6e"
2233
- }
2234
- },
2235
- {
2236
- types: ["number", "inserted"],
2237
- style: {
2238
- color: "#B5CEA8"
2239
- }
2240
- },
2241
- {
2242
- types: ["constant"],
2243
- style: {
2244
- color: "#0f172a"
2245
- }
2246
- },
2247
- {
2248
- types: ["attr-name", "variable"],
2249
- style: {
2250
- color: "#0c4a6e"
2251
- }
2252
- },
2253
- {
2254
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2255
- style: {
2256
- color: "#64748b"
2257
- }
2258
- },
2259
- {
2260
- types: ["selector"],
2261
- style: {
2262
- color: "#D7BA7D"
2263
- }
2264
- },
2265
- {
2266
- types: ["tag"],
2267
- style: {
2268
- color: "#0ea5e9"
2269
- }
2270
- },
2271
- {
2272
- types: ["tag"],
2273
- languages: ["markup"],
2274
- style: {
2275
- color: "#0ea5e9"
2276
- }
2277
- },
2278
- {
2279
- types: ["punctuation", "operator"],
2280
- style: {
2281
- color: "#475569"
2282
- }
2283
- },
2284
- {
2285
- types: ["punctuation"],
2286
- languages: ["markup"],
2287
- style: {
2288
- color: "#808080"
2289
- }
2290
- },
2291
- {
2292
- types: ["function"],
2293
- style: {
2294
- color: "#0e7490"
2295
- }
2296
- },
2297
- {
2298
- types: ["class-name"],
2299
- style: {
2300
- color: "#0ea5e9"
2301
- }
2302
- },
2303
- {
2304
- types: ["char"],
2305
- style: {
2306
- color: "#D16969"
2307
- }
2308
- }
2309
- ]
2310
- }, st = ot, lt = {
2311
- plain: {
2312
- backgroundColor: "hsl(220, 13%, 18%)",
2313
- color: "hsl(220, 14%, 71%)",
2314
- textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2315
- },
2316
- styles: [
2317
- {
2318
- types: ["comment", "prolog", "cdata"],
2319
- style: {
2320
- color: "hsl(220, 10%, 40%)"
2321
- }
2322
- },
2323
- {
2324
- types: ["doctype", "punctuation", "entity"],
2325
- style: {
2326
- color: "hsl(220, 14%, 71%)"
2327
- }
2328
- },
2329
- {
2330
- types: [
2331
- "attr-name",
2332
- "class-name",
2333
- "maybe-class-name",
2334
- "boolean",
2335
- "constant",
2336
- "number",
2337
- "atrule"
2338
- ],
2339
- style: { color: "hsl(29, 54%, 61%)" }
2340
- },
2341
- {
2342
- types: ["keyword"],
2343
- style: { color: "hsl(286, 60%, 67%)" }
2344
- },
2345
- {
2346
- types: ["property", "tag", "symbol", "deleted", "important"],
2347
- style: {
2348
- color: "hsl(355, 65%, 65%)"
2349
- }
2350
- },
2351
- {
2352
- types: [
2353
- "selector",
2354
- "string",
2355
- "char",
2356
- "builtin",
2357
- "inserted",
2358
- "regex",
2359
- "attr-value"
2360
- ],
2361
- style: {
2362
- color: "hsl(95, 38%, 62%)"
2363
- }
2364
- },
2365
- {
2366
- types: ["variable", "operator", "function"],
2367
- style: {
2368
- color: "hsl(207, 82%, 66%)"
2369
- }
2370
- },
2371
- {
2372
- types: ["url"],
2373
- style: {
2374
- color: "hsl(187, 47%, 55%)"
2375
- }
2376
- },
2377
- {
2378
- types: ["deleted"],
2379
- style: {
2380
- textDecorationLine: "line-through"
2381
- }
2382
- },
2383
- {
2384
- types: ["inserted"],
2385
- style: {
2386
- textDecorationLine: "underline"
2387
- }
2388
- },
2389
- {
2390
- types: ["italic"],
2391
- style: {
2392
- fontStyle: "italic"
2393
- }
2394
- },
2395
- {
2396
- types: ["important", "bold"],
2397
- style: {
2398
- fontWeight: "bold"
2399
- }
2400
- },
2401
- {
2402
- types: ["important"],
2403
- style: {
2404
- color: "hsl(220, 14%, 71%)"
2405
- }
2406
- }
2407
- ]
2408
- }, it = lt, ut = {
2409
- plain: {
2410
- backgroundColor: "hsl(230, 1%, 98%)",
2411
- color: "hsl(230, 8%, 24%)"
2412
- },
2413
- styles: [
2414
- {
2415
- types: ["comment", "prolog", "cdata"],
2416
- style: {
2417
- color: "hsl(230, 4%, 64%)"
2418
- }
2419
- },
2420
- {
2421
- types: ["doctype", "punctuation", "entity"],
2422
- style: {
2423
- color: "hsl(230, 8%, 24%)"
2424
- }
2425
- },
2426
- {
2427
- types: [
2428
- "attr-name",
2429
- "class-name",
2430
- "boolean",
2431
- "constant",
2432
- "number",
2433
- "atrule"
2434
- ],
2435
- style: {
2436
- color: "hsl(35, 99%, 36%)"
2437
- }
2438
- },
2439
- {
2440
- types: ["keyword"],
2441
- style: {
2442
- color: "hsl(301, 63%, 40%)"
2443
- }
2444
- },
2445
- {
2446
- types: ["property", "tag", "symbol", "deleted", "important"],
2447
- style: {
2448
- color: "hsl(5, 74%, 59%)"
2449
- }
2450
- },
2451
- {
2452
- types: [
2453
- "selector",
2454
- "string",
2455
- "char",
2456
- "builtin",
2457
- "inserted",
2458
- "regex",
2459
- "attr-value",
2460
- "punctuation"
2461
- ],
2462
- style: {
2463
- color: "hsl(119, 34%, 47%)"
2464
- }
2465
- },
2466
- {
2467
- types: ["variable", "operator", "function"],
2468
- style: {
2469
- color: "hsl(221, 87%, 60%)"
2470
- }
2471
- },
2472
- {
2473
- types: ["url"],
2474
- style: {
2475
- color: "hsl(198, 99%, 37%)"
2476
- }
2477
- },
2478
- {
2479
- types: ["deleted"],
2480
- style: {
2481
- textDecorationLine: "line-through"
2482
- }
2483
- },
2484
- {
2485
- types: ["inserted"],
2486
- style: {
2487
- textDecorationLine: "underline"
2488
- }
2489
- },
2490
- {
2491
- types: ["italic"],
2492
- style: {
2493
- fontStyle: "italic"
2494
- }
2495
- },
2496
- {
2497
- types: ["important", "bold"],
2498
- style: {
2499
- fontWeight: "bold"
2500
- }
2501
- },
2502
- {
2503
- types: ["important"],
2504
- style: {
2505
- color: "hsl(230, 8%, 24%)"
2506
- }
2507
- }
2508
- ]
2509
- }, ct = ut, pt = {
2510
- plain: {
2511
- color: "#ebdbb2",
2512
- backgroundColor: "#292828"
2513
- },
2514
- styles: [
2515
- {
2516
- types: [
2517
- "imports",
2518
- "class-name",
2519
- "maybe-class-name",
2520
- "constant",
2521
- "doctype",
2522
- "builtin",
2523
- "function"
2524
- ],
2525
- style: {
2526
- color: "#d8a657"
2527
- }
2528
- },
2529
- {
2530
- types: ["property-access"],
2531
- style: {
2532
- color: "#7daea3"
2533
- }
2534
- },
2535
- {
2536
- types: ["tag"],
2537
- style: {
2538
- color: "#e78a4e"
2539
- }
2540
- },
2541
- {
2542
- types: ["attr-name", "char", "url", "regex"],
2543
- style: {
2544
- color: "#a9b665"
2545
- }
2546
- },
2547
- {
2548
- types: ["attr-value", "string"],
2549
- style: {
2550
- color: "#89b482"
2551
- }
2552
- },
2553
- {
2554
- types: ["comment", "prolog", "cdata", "operator", "inserted"],
2555
- style: {
2556
- color: "#a89984"
2557
- }
2558
- },
2559
- {
2560
- types: [
2561
- "delimiter",
2562
- "boolean",
2563
- "keyword",
2564
- "selector",
2565
- "important",
2566
- "atrule",
2567
- "property",
2568
- "variable",
2569
- "deleted"
2570
- ],
2571
- style: {
2572
- color: "#ea6962"
2573
- }
2574
- },
2575
- {
2576
- types: ["entity", "number", "symbol"],
2577
- style: {
2578
- color: "#d3869b"
2579
- }
2580
- }
2581
- ]
2582
- }, gt = pt, dt = {
2583
- plain: {
2584
- color: "#654735",
2585
- backgroundColor: "#f9f5d7"
2586
- },
2587
- styles: [
2588
- {
2589
- types: [
2590
- "delimiter",
2591
- "boolean",
2592
- "keyword",
2593
- "selector",
2594
- "important",
2595
- "atrule",
2596
- "property",
2597
- "variable",
2598
- "deleted"
2599
- ],
2600
- style: {
2601
- color: "#af2528"
2602
- }
2603
- },
2604
- {
2605
- types: [
2606
- "imports",
2607
- "class-name",
2608
- "maybe-class-name",
2609
- "constant",
2610
- "doctype",
2611
- "builtin"
2612
- ],
2613
- style: {
2614
- color: "#b4730e"
2615
- }
2616
- },
2617
- {
2618
- types: ["string", "attr-value"],
2619
- style: {
2620
- color: "#477a5b"
2621
- }
2622
- },
2623
- {
2624
- types: ["property-access"],
2625
- style: {
2626
- color: "#266b79"
2627
- }
2628
- },
2629
- {
2630
- types: ["function", "attr-name", "char", "url"],
2631
- style: {
2632
- color: "#72761e"
2633
- }
2634
- },
2635
- {
2636
- types: ["tag"],
2637
- style: {
2638
- color: "#b94c07"
2639
- }
2640
- },
2641
- {
2642
- types: ["comment", "prolog", "cdata", "operator", "inserted"],
2643
- style: {
2644
- color: "#a89984"
2645
- }
2646
- },
2647
- {
2648
- types: ["entity", "number", "symbol"],
2649
- style: {
2650
- color: "#924f79"
2651
- }
2652
- }
2653
- ]
2654
- }, yt = dt, ft = (e) => K(
2655
- (t) => {
2656
- var r = t, { className: i, style: f, line: h } = r, u = ue(r, ["className", "style", "line"]);
2657
- const m = q(N({}, u), {
2658
- className: se("token-line", i)
2659
- });
2660
- return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof f == "object" && (m.style = N(N({}, m.style || {}), f)), m;
2661
- },
2662
- [e]
2663
- ), bt = (e) => {
2664
- const t = K(
2665
- ({ types: r, empty: i }) => {
2666
- if (e != null) {
2667
- {
2668
- if (r.length === 1 && r[0] === "plain")
2669
- return i != null ? { display: "inline-block" } : void 0;
2670
- if (r.length === 1 && i != null)
2671
- return e[r[0]];
2672
- }
2673
- return Object.assign(
2674
- i != null ? { display: "inline-block" } : {},
2675
- ...r.map((f) => e[f])
2676
- );
2677
- }
2678
- },
2679
- [e]
2680
- );
2681
- return K(
2682
- (r) => {
2683
- var i = r, { token: f, className: h, style: u } = i, m = ue(i, ["token", "className", "style"]);
2684
- const p = q(N({}, m), {
2685
- className: se("token", ...f.types, h),
2686
- children: f.content,
2687
- style: t(f)
2688
- });
2689
- return u != null && (p.style = N(N({}, p.style || {}), u)), p;
2690
- },
2691
- [t]
2692
- );
2693
- }, mt = /\r\n|\r|\n/, ne = (e) => {
2694
- e.length === 0 ? e.push({
2695
- types: ["plain"],
2696
- content: `
2697
- `,
2698
- empty: !0
2699
- }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2700
- `, e[0].empty = !0);
2701
- }, re = (e, t) => {
2702
- const r = e.length;
2703
- return r > 0 && e[r - 1] === t ? e : e.concat(t);
2704
- }, ht = (e) => {
2705
- const t = [[]], r = [e], i = [0], f = [e.length];
2706
- let h = 0, u = 0, m = [];
2707
- const p = [m];
2708
- for (; u > -1; ) {
2709
- for (; (h = i[u]++) < f[u]; ) {
2710
- let g, b = t[u];
2711
- const v = r[u][h];
2712
- if (typeof v == "string" ? (b = u > 0 ? b : ["plain"], g = v) : (b = re(b, v.type), v.alias && (b = re(b, v.alias)), g = v.content), typeof g != "string") {
2713
- u++, t.push(b), r.push(g), i.push(0), f.push(g.length);
2714
- continue;
2715
- }
2716
- const w = g.split(mt), n = w.length;
2717
- m.push({
2718
- types: b,
2719
- content: w[0]
2720
- });
2721
- for (let a = 1; a < n; a++)
2722
- ne(m), p.push(m = []), m.push({
2723
- types: b,
2724
- content: w[a]
2725
- });
2726
- }
2727
- u--, t.pop(), r.pop(), i.pop(), f.pop();
2728
- }
2729
- return ne(m), p;
2730
- }, oe = ht, vt = ({ prism: e, code: t, grammar: r, language: i }) => ye(() => {
2731
- if (r == null)
2732
- return oe([t]);
2733
- const f = {
2734
- code: t,
2735
- grammar: r,
2736
- language: i,
2737
- tokens: []
2738
- };
2739
- return e.hooks.run("before-tokenize", f), f.tokens = e.tokenize(t, r), e.hooks.run("after-tokenize", f), oe(f.tokens);
2740
- }, [
2741
- t,
2742
- r,
2743
- i,
2744
- // prism is a stable import
2745
- e
2746
- ]), kt = (e, t) => {
2747
- const { plain: r } = e, i = e.styles.reduce((f, h) => {
2748
- const { languages: u, style: m } = h;
2749
- return u && !u.includes(t) || h.types.forEach((p) => {
2750
- const g = N(N({}, f[p]), m);
2751
- f[p] = g;
2752
- }), f;
2753
- }, {});
2754
- return i.root = r, i.plain = q(N({}, r), { backgroundColor: void 0 }), i;
2755
- }, wt = kt, Et = ({
2756
- children: e,
2757
- language: t,
2758
- code: r,
2759
- theme: i,
2760
- prism: f
2761
- }) => {
2762
- const h = t.toLowerCase(), u = wt(i, h), m = ft(u), p = bt(u), g = f.languages[h], b = vt({ prism: f, language: h, code: r, grammar: g });
2763
- return e({
2764
- tokens: b,
2765
- className: `prism-code language-${h}`,
2766
- style: u != null ? u.root : {},
2767
- getLineProps: m,
2768
- getTokenProps: p
2769
- });
2770
- }, xt = (e) => de(Et, q(N({}, e), {
2771
- prism: e.prism || o,
2772
- theme: e.theme || ce,
2773
- code: e.code,
2774
- language: e.language
2775
- }));
2776
- /*! Bundled license information:
2777
-
2778
- prismjs/prism.js:
2779
- (**
2780
- * Prism: Lightweight, robust, elegant syntax highlighting
2781
- *
2782
- * @license MIT <https://opensource.org/licenses/MIT>
2783
- * @author Lea Verou <https://lea.verou.me>
2784
- * @namespace
2785
- * @public
2786
- *)
2787
- */
2788
- globalThis.Prism = o;
2789
- import("../prism-bash.min-HHIMdNJ_.js");
2790
- import("../prism-ruby.min-Dx9KO9ds.js").then((e) => e.p);
2791
- import("../prism-markup-BNGj0Tvm.js");
2792
- import("../prism-json.min-B1GJqK1k.js");
2793
- import("../prism-java.min-BpvsOuIa.js").then((e) => e.p);
2794
- import("../prism-csharp.min-bQAo2pmx.js").then((e) => e.p);
2795
- import("../prism-objectivec.min-BXSWqpJJ.js");
2796
- import("../prism-markdown.min-C0Qn0m-5.js");
2797
- import("../prism-javascript.min-CEqHqgbm.js");
2798
- import("../prism-typescript.min-CD7H2IYQ.js").then((e) => e.p);
2799
- const At = {
2800
- mdx: "md"
2801
- }, St = ({
2802
- language: e = "plain",
2803
- showCopy: t = "hover",
2804
- showCopyText: r,
2805
- title: i,
2806
- children: f,
2807
- disabled: h,
2808
- ...u
2809
- }) => {
2810
- const { resolvedTheme: m } = ve(), [p, g] = be(!1), b = f ?? u.code;
2811
- if (!b)
2812
- return null;
2813
- const y = m === "dark" ? V.vsDark : V.github, v = "bg-[#f6f8fa] text-[#393a34] dark:bg-[#1e1e1e] dark:text-[#9cdcfe]", w = ({
2814
- children: n,
2815
- className: a,
2816
- style: s
2817
- }) => /* @__PURE__ */ _.jsxs("div", { className: "relative group", children: [
2818
- i && /* @__PURE__ */ _.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: i }),
2819
- /* @__PURE__ */ _.jsx(
2820
- "pre",
2821
- {
2822
- className: ee(
2823
- "relative scrollbar overflow-x-auto",
2824
- u.className,
2825
- u.noBackground ? "!bg-transparent" : v,
2826
- u.wrapLines && "whitespace-pre-wrap break-words",
2827
- i && "pt-10",
2828
- a
2829
- ),
2830
- style: s,
2831
- children: n
2832
- }
2833
- ),
2834
- u.showLanguageIndicator && /* @__PURE__ */ _.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e }),
2835
- t !== "never" && /* @__PURE__ */ _.jsxs(
2836
- "button",
2837
- {
2838
- type: "button",
2839
- "aria-label": "Copy code",
2840
- title: "Copy code",
2841
- className: ee(
2842
- "absolute top-2 right-2 p-2 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-muted-foreground transition",
2843
- t === "hover" ? "opacity-0 group-hover:opacity-100 group-hover:bg-zinc-100 group-hover:dark:bg-zinc-700" : "bg-zinc-100 dark:bg-zinc-700",
2844
- r && "flex gap-2 items-center font-medium"
2845
- ),
2846
- disabled: p,
2847
- onClick: () => {
2848
- g(!0), navigator.clipboard.writeText(b), setTimeout(() => g(!1), 2e3);
2849
- },
2850
- children: [
2851
- p ? /* @__PURE__ */ _.jsx(
2852
- me,
2853
- {
2854
- className: "text-emerald-600",
2855
- size: 16,
2856
- strokeWidth: 2.5,
2857
- absoluteStrokeWidth: !0
2858
- }
2859
- ) : /* @__PURE__ */ _.jsx(he, { size: 16 }),
2860
- r && "Copy"
2861
- ]
2862
- }
2863
- )
2864
- ] });
2865
- return h ? /* @__PURE__ */ _.jsx(te, { fallback: /* @__PURE__ */ _.jsx(w, { children: b }), children: /* @__PURE__ */ _.jsx(w, { children: b }) }) : /* @__PURE__ */ _.jsx(te, { fallback: /* @__PURE__ */ _.jsx(w, { children: b }), children: /* @__PURE__ */ _.jsx(
2866
- xt,
2867
- {
2868
- theme: y,
2869
- language: At[e] ?? e,
2870
- ...u,
2871
- code: b,
2872
- children: ({ className: n, style: a, tokens: s, getLineProps: c, getTokenProps: l }) => /* @__PURE__ */ _.jsx(w, { className: n, style: a, children: s.map((d, k) => (
2873
- // eslint-disable-next-line react/no-array-index-key
2874
- /* @__PURE__ */ _.jsx("div", { ...c({ line: d }), children: d.map((E, A) => (
2875
- // eslint-disable-next-line react/no-array-index-key
2876
- /* @__PURE__ */ _.jsx("span", { ...l({ token: E }) }, A)
2877
- )) }, k)
2878
- )) })
2879
- }
2880
- ) });
2881
- }, _t = fe(St);
2882
- _t.displayName = "SyntaxHighlight";
1
+ import "../jsx-runtime-CYK1ROHF.js";
2
+ import { S as h } from "../SyntaxHighlight-BEoSoPEo.js";
3
+ import "lucide-react";
4
+ import "../index-DwT-v3zK.js";
5
+ import "react";
6
+ import "../ClientOnly-E7hGysn1.js";
7
+ import "../cn-qaFjX9_3.js";
2883
8
  export {
2884
- _t as SyntaxHighlight
9
+ h as SyntaxHighlight
2885
10
  };
2886
11
  //# sourceMappingURL=SyntaxHighlight.js.map