@veracity/ai 1.0.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{ChatCompletionSSE.d.ts → ChatClient.d.ts} +22 -13
  2. package/dist/ChatClient.d.ts.map +1 -0
  3. package/dist/ChatMessageItem.d.ts +1 -1
  4. package/dist/ClientFunctionInvocation.d.ts +14 -0
  5. package/dist/ClientFunctionInvocation.d.ts.map +1 -0
  6. package/dist/ClientFunctionInvocationContext.d.ts +10 -0
  7. package/dist/ClientFunctionInvocationContext.d.ts.map +1 -0
  8. package/dist/Markdown/index.d.ts +2 -2
  9. package/dist/Markdown/index.d.ts.map +1 -1
  10. package/dist/Markdown/math.d.ts.map +1 -1
  11. package/dist/MaxInputLimitReachedError.d.ts +4 -0
  12. package/dist/MaxInputLimitReachedError.d.ts.map +1 -0
  13. package/dist/Pyodide.d.ts +1 -1
  14. package/dist/Pyodide.d.ts.map +1 -1
  15. package/dist/ToolCallBuilder.d.ts +13 -0
  16. package/dist/ToolCallBuilder.d.ts.map +1 -0
  17. package/dist/UnexpectedEndOfStreamError.d.ts +4 -0
  18. package/dist/UnexpectedEndOfStreamError.d.ts.map +1 -0
  19. package/dist/components/Button.d.ts +1 -0
  20. package/dist/components/Button.d.ts.map +1 -1
  21. package/dist/components/ButtonOptionsDialog.d.ts +27 -0
  22. package/dist/components/ButtonOptionsDialog.d.ts.map +1 -0
  23. package/dist/components/Chat/index.d.ts +39 -0
  24. package/dist/components/Chat/index.d.ts.map +1 -0
  25. package/dist/components/Conversation.d.ts +54 -0
  26. package/dist/components/Conversation.d.ts.map +1 -0
  27. package/dist/components/ConversationMessage.d.ts +53 -0
  28. package/dist/components/ConversationMessage.d.ts.map +1 -0
  29. package/dist/components/PythonCodeInterpreter.d.ts +38 -0
  30. package/dist/components/PythonCodeInterpreter.d.ts.map +1 -0
  31. package/dist/components/Search.d.ts +16 -0
  32. package/dist/components/Search.d.ts.map +1 -0
  33. package/dist/components/icons/AngleDown.d.ts +3 -0
  34. package/dist/components/icons/AngleDown.d.ts.map +1 -0
  35. package/dist/components/icons/ArrowDown.d.ts +1 -1
  36. package/dist/components/icons/Check.d.ts +1 -1
  37. package/dist/components/icons/CheckCircle.d.ts +3 -0
  38. package/dist/components/icons/CheckCircle.d.ts.map +1 -0
  39. package/dist/components/icons/ExclamationCircle.d.ts +1 -1
  40. package/dist/components/icons/ExclamationTriangle.d.ts +1 -1
  41. package/dist/components/icons/InfoCircle.d.ts +1 -1
  42. package/dist/components/icons/QuestionCircle.d.ts +1 -1
  43. package/dist/components/icons/SearchIcon.d.ts +3 -0
  44. package/dist/components/icons/SearchIcon.d.ts.map +1 -0
  45. package/dist/components/icons/Spinner.d.ts +1 -1
  46. package/dist/components/icons/Times.d.ts +3 -0
  47. package/dist/components/icons/Times.d.ts.map +1 -0
  48. package/dist/components/icons/TimesCircle.d.ts +1 -1
  49. package/dist/core-CdG-ENX3.js +1069 -0
  50. package/dist/{csharp-Cigc7XMa.js → csharp-EkcwwkCa.js} +18 -13
  51. package/dist/{css-B-yPI1XM.js → css-CJS6IEi0.js} +127 -18
  52. package/dist/dtos.d.ts +34 -4
  53. package/dist/dtos.d.ts.map +1 -1
  54. package/dist/enums.d.ts +13 -29
  55. package/dist/enums.d.ts.map +1 -1
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/{javascript-CDslspYb.js → javascript-B2FVNeJt.js} +26 -24
  59. package/dist/{katex-Cj8zHzei.js → katex-c21813vb.js} +454 -428
  60. package/dist/{python-CzH_tl5q.js → python-CymlFLB0.js} +21 -19
  61. package/dist/{typescript-Bx5cZccb.js → typescript-Cg8DWaxm.js} +163 -148
  62. package/dist/utils/CancellationToken.d.ts.map +1 -1
  63. package/dist/utils/Channel.d.ts +42 -1
  64. package/dist/utils/Channel.d.ts.map +1 -1
  65. package/dist/utils/animateAsync.d.ts +1 -1
  66. package/dist/utils/createDeferred.d.ts.map +1 -1
  67. package/dist/utils/parsePartialJSON.d.ts +1 -1
  68. package/dist/utils/parsePartialJSON.d.ts.map +1 -1
  69. package/dist/veracity-ai.es.js +5359 -5416
  70. package/dist/veracity-ai.umd.js +37 -40
  71. package/package.json +28 -20
  72. package/dist/ChatCompletionSSE.d.ts.map +0 -1
  73. package/dist/Markdown copy.d.ts +0 -2
  74. package/dist/Markdown copy.d.ts.map +0 -1
  75. package/dist/MessageLimitExceededError.d.ts +0 -6
  76. package/dist/MessageLimitExceededError.d.ts.map +0 -1
  77. package/dist/Pyodide_test.d.ts +0 -1
  78. package/dist/Pyodide_test.d.ts.map +0 -1
  79. package/dist/components/AIChat/index.d.ts +0 -42
  80. package/dist/components/AIChat/index.d.ts.map +0 -1
  81. package/dist/components/AIChatAgentMessage.d.ts +0 -28
  82. package/dist/components/AIChatAgentMessage.d.ts.map +0 -1
  83. package/dist/components/AIChatMessage.d.ts +0 -1
  84. package/dist/components/AIChatMessage.d.ts.map +0 -1
  85. package/dist/components/AIChatToolCallGroup.d.ts +0 -21
  86. package/dist/components/AIChatToolCallGroup.d.ts.map +0 -1
  87. package/dist/components/AIChatUserMessage.d.ts +0 -14
  88. package/dist/components/AIChatUserMessage.d.ts.map +0 -1
  89. package/dist/components/AIConversation.d.ts +0 -8
  90. package/dist/components/AIConversation.d.ts.map +0 -1
  91. package/dist/components/AIParent.d.ts +0 -8
  92. package/dist/components/AIParent.d.ts.map +0 -1
  93. package/dist/components/ErrorNotification.d.ts +0 -2
  94. package/dist/components/ErrorNotification.d.ts.map +0 -1
  95. package/dist/components/ToolCallComponent/TaskItemComponent.d.ts +0 -14
  96. package/dist/components/ToolCallComponent/TaskItemComponent.d.ts.map +0 -1
  97. package/dist/components/ToolCallComponent/index.d.ts +0 -86
  98. package/dist/components/ToolCallComponent/index.d.ts.map +0 -1
  99. package/dist/components/VeracityAvatar.d.ts +0 -3
  100. package/dist/components/VeracityAvatar.d.ts.map +0 -1
  101. package/dist/components/VeracityLogoSquare.d.ts +0 -3
  102. package/dist/components/VeracityLogoSquare.d.ts.map +0 -1
  103. package/dist/core-Diwflo5W.js +0 -1077
  104. package/dist/modals.d.ts +0 -9
  105. package/dist/modals.d.ts.map +0 -1
  106. package/dist/utils/decodePythonTripleQuotedString.d.ts +0 -2
  107. package/dist/utils/decodePythonTripleQuotedString.d.ts.map +0 -1
  108. package/dist/utils/generateAvatarLetter.d.ts +0 -2
  109. package/dist/utils/generateAvatarLetter.d.ts.map +0 -1
  110. package/dist/utils/getElementTextPreserveNewlines.d.ts +0 -2
  111. package/dist/utils/getElementTextPreserveNewlines.d.ts.map +0 -1
@@ -1,1077 +0,0 @@
1
- function qe(e) {
2
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
- }
4
- function we(e) {
5
- return e instanceof Map ? e.clear = e.delete = e.set = function() {
6
- throw new Error("map is read-only");
7
- } : e instanceof Set && (e.add = e.clear = e.delete = function() {
8
- throw new Error("set is read-only");
9
- }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((t) => {
10
- const i = e[t], u = typeof i;
11
- (u === "object" || u === "function") && !Object.isFrozen(i) && we(i);
12
- }), e;
13
- }
14
- class he {
15
- /**
16
- * @param {CompiledMode} mode
17
- */
18
- constructor(t) {
19
- t.data === void 0 && (t.data = {}), this.data = t.data, this.isMatchIgnored = !1;
20
- }
21
- ignoreMatch() {
22
- this.isMatchIgnored = !0;
23
- }
24
- }
25
- function xe(e) {
26
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
27
- }
28
- function B(e, ...t) {
29
- const i = /* @__PURE__ */ Object.create(null);
30
- for (const u in e)
31
- i[u] = e[u];
32
- return t.forEach(function(u) {
33
- for (const b in u)
34
- i[b] = u[b];
35
- }), /** @type {T} */
36
- i;
37
- }
38
- const Qe = "</span>", de = (e) => !!e.scope, me = (e, { prefix: t }) => {
39
- if (e.startsWith("language:"))
40
- return e.replace("language:", "language-");
41
- if (e.includes(".")) {
42
- const i = e.split(".");
43
- return [
44
- `${t}${i.shift()}`,
45
- ...i.map((u, b) => `${u}${"_".repeat(b + 1)}`)
46
- ].join(" ");
47
- }
48
- return `${t}${e}`;
49
- };
50
- class et {
51
- /**
52
- * Creates a new HTMLRenderer
53
- *
54
- * @param {Tree} parseTree - the parse tree (must support `walk` API)
55
- * @param {{classPrefix: string}} options
56
- */
57
- constructor(t, i) {
58
- this.buffer = "", this.classPrefix = i.classPrefix, t.walk(this);
59
- }
60
- /**
61
- * Adds texts to the output stream
62
- *
63
- * @param {string} text */
64
- addText(t) {
65
- this.buffer += xe(t);
66
- }
67
- /**
68
- * Adds a node open to the output stream (if needed)
69
- *
70
- * @param {Node} node */
71
- openNode(t) {
72
- if (!de(t))
73
- return;
74
- const i = me(
75
- t.scope,
76
- { prefix: this.classPrefix }
77
- );
78
- this.span(i);
79
- }
80
- /**
81
- * Adds a node close to the output stream (if needed)
82
- *
83
- * @param {Node} node */
84
- closeNode(t) {
85
- de(t) && (this.buffer += Qe);
86
- }
87
- /**
88
- * returns the accumulated buffer
89
- */
90
- value() {
91
- return this.buffer;
92
- }
93
- // helpers
94
- /**
95
- * Builds a span element
96
- *
97
- * @param {string} className */
98
- span(t) {
99
- this.buffer += `<span class="${t}">`;
100
- }
101
- }
102
- const pe = (e = {}) => {
103
- const t = { children: [] };
104
- return Object.assign(t, e), t;
105
- };
106
- class te {
107
- constructor() {
108
- this.rootNode = pe(), this.stack = [this.rootNode];
109
- }
110
- get top() {
111
- return this.stack[this.stack.length - 1];
112
- }
113
- get root() {
114
- return this.rootNode;
115
- }
116
- /** @param {Node} node */
117
- add(t) {
118
- this.top.children.push(t);
119
- }
120
- /** @param {string} scope */
121
- openNode(t) {
122
- const i = pe({ scope: t });
123
- this.add(i), this.stack.push(i);
124
- }
125
- closeNode() {
126
- if (this.stack.length > 1)
127
- return this.stack.pop();
128
- }
129
- closeAllNodes() {
130
- for (; this.closeNode(); )
131
- ;
132
- }
133
- toJSON() {
134
- return JSON.stringify(this.rootNode, null, 4);
135
- }
136
- /**
137
- * @typedef { import("./html_renderer").Renderer } Renderer
138
- * @param {Renderer} builder
139
- */
140
- walk(t) {
141
- return this.constructor._walk(t, this.rootNode);
142
- }
143
- /**
144
- * @param {Renderer} builder
145
- * @param {Node} node
146
- */
147
- static _walk(t, i) {
148
- return typeof i == "string" ? t.addText(i) : i.children && (t.openNode(i), i.children.forEach((u) => this._walk(t, u)), t.closeNode(i)), t;
149
- }
150
- /**
151
- * @param {Node} node
152
- */
153
- static _collapse(t) {
154
- typeof t != "string" && t.children && (t.children.every((i) => typeof i == "string") ? t.children = [t.children.join("")] : t.children.forEach((i) => {
155
- te._collapse(i);
156
- }));
157
- }
158
- }
159
- class tt extends te {
160
- /**
161
- * @param {*} options
162
- */
163
- constructor(t) {
164
- super(), this.options = t;
165
- }
166
- /**
167
- * @param {string} text
168
- */
169
- addText(t) {
170
- t !== "" && this.add(t);
171
- }
172
- /** @param {string} scope */
173
- startScope(t) {
174
- this.openNode(t);
175
- }
176
- endScope() {
177
- this.closeNode();
178
- }
179
- /**
180
- * @param {Emitter & {root: DataNode}} emitter
181
- * @param {string} name
182
- */
183
- __addSublanguage(t, i) {
184
- const u = t.root;
185
- i && (u.scope = `language:${i}`), this.add(u);
186
- }
187
- toHTML() {
188
- return new et(this, this.options).value();
189
- }
190
- finalize() {
191
- return this.closeAllNodes(), !0;
192
- }
193
- }
194
- function P(e) {
195
- return e ? typeof e == "string" ? e : e.source : null;
196
- }
197
- function Oe(e) {
198
- return C("(?=", e, ")");
199
- }
200
- function nt(e) {
201
- return C("(?:", e, ")*");
202
- }
203
- function it(e) {
204
- return C("(?:", e, ")?");
205
- }
206
- function C(...e) {
207
- return e.map((i) => P(i)).join("");
208
- }
209
- function st(e) {
210
- const t = e[e.length - 1];
211
- return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
212
- }
213
- function ne(...e) {
214
- return "(" + (st(e).capture ? "" : "?:") + e.map((u) => P(u)).join("|") + ")";
215
- }
216
- function ye(e) {
217
- return new RegExp(e.toString() + "|").exec("").length - 1;
218
- }
219
- function rt(e, t) {
220
- const i = e && e.exec(t);
221
- return i && i.index === 0;
222
- }
223
- const ct = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
224
- function ie(e, { joinWith: t }) {
225
- let i = 0;
226
- return e.map((u) => {
227
- i += 1;
228
- const b = i;
229
- let _ = P(u), c = "";
230
- for (; _.length > 0; ) {
231
- const r = ct.exec(_);
232
- if (!r) {
233
- c += _;
234
- break;
235
- }
236
- c += _.substring(0, r.index), _ = _.substring(r.index + r[0].length), r[0][0] === "\\" && r[1] ? c += "\\" + String(Number(r[1]) + b) : (c += r[0], r[0] === "(" && i++);
237
- }
238
- return c;
239
- }).map((u) => `(${u})`).join(t);
240
- }
241
- const ot = /\b\B/, Re = "[a-zA-Z]\\w*", se = "[a-zA-Z_]\\w*", Se = "\\b\\d+(\\.\\d+)?", Ne = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Ae = "\\b(0b[01]+)", at = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", lt = (e = {}) => {
242
- const t = /^#![ ]*\//;
243
- return e.binary && (e.begin = C(
244
- t,
245
- /.*\b/,
246
- e.binary,
247
- /\b.*/
248
- )), B({
249
- scope: "meta",
250
- begin: t,
251
- end: /$/,
252
- relevance: 0,
253
- /** @type {ModeCallback} */
254
- "on:begin": (i, u) => {
255
- i.index !== 0 && u.ignoreMatch();
256
- }
257
- }, e);
258
- }, U = {
259
- begin: "\\\\[\\s\\S]",
260
- relevance: 0
261
- }, ut = {
262
- scope: "string",
263
- begin: "'",
264
- end: "'",
265
- illegal: "\\n",
266
- contains: [U]
267
- }, ft = {
268
- scope: "string",
269
- begin: '"',
270
- end: '"',
271
- illegal: "\\n",
272
- contains: [U]
273
- }, gt = {
274
- begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
275
- }, Y = function(e, t, i = {}) {
276
- const u = B(
277
- {
278
- scope: "comment",
279
- begin: e,
280
- end: t,
281
- contains: []
282
- },
283
- i
284
- );
285
- u.contains.push({
286
- scope: "doctag",
287
- // hack to avoid the space from being included. the space is necessary to
288
- // match here to prevent the plain text rule below from gobbling up doctags
289
- begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
290
- end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
291
- excludeBegin: !0,
292
- relevance: 0
293
- });
294
- const b = ne(
295
- // list of common 1 and 2 letter words in English
296
- "I",
297
- "a",
298
- "is",
299
- "so",
300
- "us",
301
- "to",
302
- "at",
303
- "if",
304
- "in",
305
- "it",
306
- "on",
307
- // note: this is not an exhaustive list of contractions, just popular ones
308
- /[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
309
- // contractions - can't we'd they're let's, etc
310
- /[A-Za-z]+[-][a-z]+/,
311
- // `no-way`, etc.
312
- /[A-Za-z][a-z]{2,}/
313
- // allow capitalized words at beginning of sentences
314
- );
315
- return u.contains.push(
316
- {
317
- // TODO: how to include ", (, ) without breaking grammars that use these for
318
- // comment delimiters?
319
- // begin: /[ ]+([()"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()":]?([.][ ]|[ ]|\))){3}/
320
- // ---
321
- // this tries to find sequences of 3 english words in a row (without any
322
- // "programming" type syntax) this gives us a strong signal that we've
323
- // TRULY found a comment - vs perhaps scanning with the wrong language.
324
- // It's possible to find something that LOOKS like the start of the
325
- // comment - but then if there is no readable text - good chance it is a
326
- // false match and not a comment.
327
- //
328
- // for a visual example please see:
329
- // https://github.com/highlightjs/highlight.js/issues/2827
330
- begin: C(
331
- /[ ]+/,
332
- // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
333
- "(",
334
- b,
335
- /[.]?[:]?([.][ ]|[ ])/,
336
- "){3}"
337
- )
338
- // look for 3 words in a row
339
- }
340
- ), u;
341
- }, ht = Y("//", "$"), dt = Y("/\\*", "\\*/"), pt = Y("#", "$"), Et = {
342
- scope: "number",
343
- begin: Se,
344
- relevance: 0
345
- }, bt = {
346
- scope: "number",
347
- begin: Ne,
348
- relevance: 0
349
- }, _t = {
350
- scope: "number",
351
- begin: Ae,
352
- relevance: 0
353
- }, Mt = {
354
- scope: "regexp",
355
- begin: /\/(?=[^/\n]*\/)/,
356
- end: /\/[gimuy]*/,
357
- contains: [
358
- U,
359
- {
360
- begin: /\[/,
361
- end: /\]/,
362
- relevance: 0,
363
- contains: [U]
364
- }
365
- ]
366
- }, wt = {
367
- scope: "title",
368
- begin: Re,
369
- relevance: 0
370
- }, xt = {
371
- scope: "title",
372
- begin: se,
373
- relevance: 0
374
- }, Ot = {
375
- // excludes method names from keyword processing
376
- begin: "\\.\\s*" + se,
377
- relevance: 0
378
- }, yt = function(e) {
379
- return Object.assign(
380
- e,
381
- {
382
- /** @type {ModeCallback} */
383
- "on:begin": (t, i) => {
384
- i.data._beginMatch = t[1];
385
- },
386
- /** @type {ModeCallback} */
387
- "on:end": (t, i) => {
388
- i.data._beginMatch !== t[1] && i.ignoreMatch();
389
- }
390
- }
391
- );
392
- };
393
- var z = /* @__PURE__ */ Object.freeze({
394
- __proto__: null,
395
- APOS_STRING_MODE: ut,
396
- BACKSLASH_ESCAPE: U,
397
- BINARY_NUMBER_MODE: _t,
398
- BINARY_NUMBER_RE: Ae,
399
- COMMENT: Y,
400
- C_BLOCK_COMMENT_MODE: dt,
401
- C_LINE_COMMENT_MODE: ht,
402
- C_NUMBER_MODE: bt,
403
- C_NUMBER_RE: Ne,
404
- END_SAME_AS_BEGIN: yt,
405
- HASH_COMMENT_MODE: pt,
406
- IDENT_RE: Re,
407
- MATCH_NOTHING_RE: ot,
408
- METHOD_GUARD: Ot,
409
- NUMBER_MODE: Et,
410
- NUMBER_RE: Se,
411
- PHRASAL_WORDS_MODE: gt,
412
- QUOTE_STRING_MODE: ft,
413
- REGEXP_MODE: Mt,
414
- RE_STARTERS_RE: at,
415
- SHEBANG: lt,
416
- TITLE_MODE: wt,
417
- UNDERSCORE_IDENT_RE: se,
418
- UNDERSCORE_TITLE_MODE: xt
419
- });
420
- function Rt(e, t) {
421
- e.input[e.index - 1] === "." && t.ignoreMatch();
422
- }
423
- function St(e, t) {
424
- e.className !== void 0 && (e.scope = e.className, delete e.className);
425
- }
426
- function Nt(e, t) {
427
- t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Rt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
428
- }
429
- function At(e, t) {
430
- Array.isArray(e.illegal) && (e.illegal = ne(...e.illegal));
431
- }
432
- function kt(e, t) {
433
- if (e.match) {
434
- if (e.begin || e.end)
435
- throw new Error("begin & end are not supported with match");
436
- e.begin = e.match, delete e.match;
437
- }
438
- }
439
- function Tt(e, t) {
440
- e.relevance === void 0 && (e.relevance = 1);
441
- }
442
- const It = (e, t) => {
443
- if (!e.beforeMatch)
444
- return;
445
- if (e.starts)
446
- throw new Error("beforeMatch cannot be used with starts");
447
- const i = Object.assign({}, e);
448
- Object.keys(e).forEach((u) => {
449
- delete e[u];
450
- }), e.keywords = i.keywords, e.begin = C(i.beforeMatch, Oe(i.begin)), e.starts = {
451
- relevance: 0,
452
- contains: [
453
- Object.assign(i, { endsParent: !0 })
454
- ]
455
- }, e.relevance = 0, delete i.beforeMatch;
456
- }, Bt = [
457
- "of",
458
- "and",
459
- "for",
460
- "in",
461
- "not",
462
- "or",
463
- "if",
464
- "then",
465
- "parent",
466
- // common variable name
467
- "list",
468
- // common variable name
469
- "value"
470
- // common variable name
471
- ], Dt = "keyword";
472
- function ke(e, t, i = Dt) {
473
- const u = /* @__PURE__ */ Object.create(null);
474
- return typeof e == "string" ? b(i, e.split(" ")) : Array.isArray(e) ? b(i, e) : Object.keys(e).forEach(function(_) {
475
- Object.assign(
476
- u,
477
- ke(e[_], t, _)
478
- );
479
- }), u;
480
- function b(_, c) {
481
- t && (c = c.map((r) => r.toLowerCase())), c.forEach(function(r) {
482
- const l = r.split("|");
483
- u[l[0]] = [_, vt(l[0], l[1])];
484
- });
485
- }
486
- }
487
- function vt(e, t) {
488
- return t ? Number(t) : Ct(e) ? 0 : 1;
489
- }
490
- function Ct(e) {
491
- return Bt.includes(e.toLowerCase());
492
- }
493
- const Ee = {}, v = (e) => {
494
- console.error(e);
495
- }, be = (e, ...t) => {
496
- console.log(`WARN: ${e}`, ...t);
497
- }, L = (e, t) => {
498
- Ee[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Ee[`${e}/${t}`] = !0);
499
- }, X = new Error();
500
- function Te(e, t, { key: i }) {
501
- let u = 0;
502
- const b = e[i], _ = {}, c = {};
503
- for (let r = 1; r <= t.length; r++)
504
- c[r + u] = b[r], _[r + u] = !0, u += ye(t[r - 1]);
505
- e[i] = c, e[i]._emit = _, e[i]._multi = !0;
506
- }
507
- function Lt(e) {
508
- if (Array.isArray(e.begin)) {
509
- if (e.skip || e.excludeBegin || e.returnBegin)
510
- throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), X;
511
- if (typeof e.beginScope != "object" || e.beginScope === null)
512
- throw v("beginScope must be object"), X;
513
- Te(e, e.begin, { key: "beginScope" }), e.begin = ie(e.begin, { joinWith: "" });
514
- }
515
- }
516
- function jt(e) {
517
- if (Array.isArray(e.end)) {
518
- if (e.skip || e.excludeEnd || e.returnEnd)
519
- throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"), X;
520
- if (typeof e.endScope != "object" || e.endScope === null)
521
- throw v("endScope must be object"), X;
522
- Te(e, e.end, { key: "endScope" }), e.end = ie(e.end, { joinWith: "" });
523
- }
524
- }
525
- function Ht(e) {
526
- e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
527
- }
528
- function Pt(e) {
529
- Ht(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Lt(e), jt(e);
530
- }
531
- function Ut(e) {
532
- function t(c, r) {
533
- return new RegExp(
534
- P(c),
535
- "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : "")
536
- );
537
- }
538
- class i {
539
- constructor() {
540
- this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
541
- }
542
- // @ts-ignore
543
- addRule(r, l) {
544
- l.position = this.position++, this.matchIndexes[this.matchAt] = l, this.regexes.push([l, r]), this.matchAt += ye(r) + 1;
545
- }
546
- compile() {
547
- this.regexes.length === 0 && (this.exec = () => null);
548
- const r = this.regexes.map((l) => l[1]);
549
- this.matcherRe = t(ie(r, { joinWith: "|" }), !0), this.lastIndex = 0;
550
- }
551
- /** @param {string} s */
552
- exec(r) {
553
- this.matcherRe.lastIndex = this.lastIndex;
554
- const l = this.matcherRe.exec(r);
555
- if (!l)
556
- return null;
557
- const x = l.findIndex((H, Z) => Z > 0 && H !== void 0), M = this.matchIndexes[x];
558
- return l.splice(0, x), Object.assign(l, M);
559
- }
560
- }
561
- class u {
562
- constructor() {
563
- this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
564
- }
565
- // @ts-ignore
566
- getMatcher(r) {
567
- if (this.multiRegexes[r])
568
- return this.multiRegexes[r];
569
- const l = new i();
570
- return this.rules.slice(r).forEach(([x, M]) => l.addRule(x, M)), l.compile(), this.multiRegexes[r] = l, l;
571
- }
572
- resumingScanAtSamePosition() {
573
- return this.regexIndex !== 0;
574
- }
575
- considerAll() {
576
- this.regexIndex = 0;
577
- }
578
- // @ts-ignore
579
- addRule(r, l) {
580
- this.rules.push([r, l]), l.type === "begin" && this.count++;
581
- }
582
- /** @param {string} s */
583
- exec(r) {
584
- const l = this.getMatcher(this.regexIndex);
585
- l.lastIndex = this.lastIndex;
586
- let x = l.exec(r);
587
- if (this.resumingScanAtSamePosition() && !(x && x.index === this.lastIndex)) {
588
- const M = this.getMatcher(0);
589
- M.lastIndex = this.lastIndex + 1, x = M.exec(r);
590
- }
591
- return x && (this.regexIndex += x.position + 1, this.regexIndex === this.count && this.considerAll()), x;
592
- }
593
- }
594
- function b(c) {
595
- const r = new u();
596
- return c.contains.forEach((l) => r.addRule(l.begin, { rule: l, type: "begin" })), c.terminatorEnd && r.addRule(c.terminatorEnd, { type: "end" }), c.illegal && r.addRule(c.illegal, { type: "illegal" }), r;
597
- }
598
- function _(c, r) {
599
- const l = (
600
- /** @type CompiledMode */
601
- c
602
- );
603
- if (c.isCompiled)
604
- return l;
605
- [
606
- St,
607
- // do this early so compiler extensions generally don't have to worry about
608
- // the distinction between match/begin
609
- kt,
610
- Pt,
611
- It
612
- ].forEach((M) => M(c, r)), e.compilerExtensions.forEach((M) => M(c, r)), c.__beforeBegin = null, [
613
- Nt,
614
- // do this later so compiler extensions that come earlier have access to the
615
- // raw array if they wanted to perhaps manipulate it, etc.
616
- At,
617
- // default to 1 relevance if not specified
618
- Tt
619
- ].forEach((M) => M(c, r)), c.isCompiled = !0;
620
- let x = null;
621
- return typeof c.keywords == "object" && c.keywords.$pattern && (c.keywords = Object.assign({}, c.keywords), x = c.keywords.$pattern, delete c.keywords.$pattern), x = x || /\w+/, c.keywords && (c.keywords = ke(c.keywords, e.case_insensitive)), l.keywordPatternRe = t(x, !0), r && (c.begin || (c.begin = /\B|\b/), l.beginRe = t(l.begin), !c.end && !c.endsWithParent && (c.end = /\B|\b/), c.end && (l.endRe = t(l.end)), l.terminatorEnd = P(l.end) || "", c.endsWithParent && r.terminatorEnd && (l.terminatorEnd += (c.end ? "|" : "") + r.terminatorEnd)), c.illegal && (l.illegalRe = t(
622
- /** @type {RegExp | string} */
623
- c.illegal
624
- )), c.contains || (c.contains = []), c.contains = [].concat(...c.contains.map(function(M) {
625
- return $t(M === "self" ? c : M);
626
- })), c.contains.forEach(function(M) {
627
- _(
628
- /** @type Mode */
629
- M,
630
- l
631
- );
632
- }), c.starts && _(c.starts, r), l.matcher = b(l), l;
633
- }
634
- if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
635
- throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
636
- return e.classNameAliases = B(e.classNameAliases || {}), _(
637
- /** @type Mode */
638
- e
639
- );
640
- }
641
- function Ie(e) {
642
- return e ? e.endsWithParent || Ie(e.starts) : !1;
643
- }
644
- function $t(e) {
645
- return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
646
- return B(e, { variants: null }, t);
647
- })), e.cachedVariants ? e.cachedVariants : Ie(e) ? B(e, { starts: e.starts ? B(e.starts) : null }) : Object.isFrozen(e) ? B(e) : e;
648
- }
649
- var Gt = "11.9.0";
650
- class Wt extends Error {
651
- constructor(t, i) {
652
- super(t), this.name = "HTMLInjectionError", this.html = i;
653
- }
654
- }
655
- const ee = xe, _e = B, Me = Symbol("nomatch"), Kt = 7, Be = function(e) {
656
- const t = /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null), u = [];
657
- let b = !0;
658
- const _ = "Could not find the language '{}', did you forget to load/include a language module?", c = { disableAutodetect: !0, name: "Plain text", contains: [] };
659
- let r = {
660
- ignoreUnescapedHTML: !1,
661
- throwUnescapedHTML: !1,
662
- noHighlightRe: /^(no-?highlight)$/i,
663
- languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
664
- classPrefix: "hljs-",
665
- cssSelector: "pre code",
666
- languages: null,
667
- // beta configuration options, subject to change, welcome to discuss
668
- // https://github.com/highlightjs/highlight.js/issues/1086
669
- __emitter: tt
670
- };
671
- function l(n) {
672
- return r.noHighlightRe.test(n);
673
- }
674
- function x(n) {
675
- let a = n.className + " ";
676
- a += n.parentNode ? n.parentNode.className : "";
677
- const h = r.languageDetectRe.exec(a);
678
- if (h) {
679
- const p = T(h[1]);
680
- return p || (be(_.replace("{}", h[1])), be("Falling back to no-highlight mode for this block.", n)), p ? h[1] : "no-highlight";
681
- }
682
- return a.split(/\s+/).find((p) => l(p) || T(p));
683
- }
684
- function M(n, a, h) {
685
- let p = "", w = "";
686
- typeof a == "object" ? (p = n, h = a.ignoreIllegals, w = a.language) : (L("10.7.0", "highlight(lang, code, ...args) has been deprecated."), L("10.7.0", `Please use highlight(code, options) instead.
687
- https://github.com/highlightjs/highlight.js/issues/2277`), w = n, p = a), h === void 0 && (h = !0);
688
- const S = {
689
- code: p,
690
- language: w
691
- };
692
- G("before:highlight", S);
693
- const I = S.result ? S.result : H(S.language, S.code, h);
694
- return I.code = S.code, G("after:highlight", I), I;
695
- }
696
- function H(n, a, h, p) {
697
- const w = /* @__PURE__ */ Object.create(null);
698
- function S(s, o) {
699
- return s.keywords[o];
700
- }
701
- function I() {
702
- if (!f.keywords) {
703
- O.addText(E);
704
- return;
705
- }
706
- let s = 0;
707
- f.keywordPatternRe.lastIndex = 0;
708
- let o = f.keywordPatternRe.exec(E), g = "";
709
- for (; o; ) {
710
- g += E.substring(s, o.index);
711
- const d = A.case_insensitive ? o[0].toLowerCase() : o[0], y = S(f, d);
712
- if (y) {
713
- const [k, Je] = y;
714
- if (O.addText(g), g = "", w[d] = (w[d] || 0) + 1, w[d] <= Kt && (F += Je), k.startsWith("_"))
715
- g += o[0];
716
- else {
717
- const Ve = A.classNameAliases[k] || k;
718
- N(o[0], Ve);
719
- }
720
- } else
721
- g += o[0];
722
- s = f.keywordPatternRe.lastIndex, o = f.keywordPatternRe.exec(E);
723
- }
724
- g += E.substring(s), O.addText(g);
725
- }
726
- function W() {
727
- if (E === "")
728
- return;
729
- let s = null;
730
- if (typeof f.subLanguage == "string") {
731
- if (!t[f.subLanguage]) {
732
- O.addText(E);
733
- return;
734
- }
735
- s = H(f.subLanguage, E, !0, ge[f.subLanguage]), ge[f.subLanguage] = /** @type {CompiledMode} */
736
- s._top;
737
- } else
738
- s = J(E, f.subLanguage.length ? f.subLanguage : null);
739
- f.relevance > 0 && (F += s.relevance), O.__addSublanguage(s._emitter, s.language);
740
- }
741
- function R() {
742
- f.subLanguage != null ? W() : I(), E = "";
743
- }
744
- function N(s, o) {
745
- s !== "" && (O.startScope(o), O.addText(s), O.endScope());
746
- }
747
- function ae(s, o) {
748
- let g = 1;
749
- const d = o.length - 1;
750
- for (; g <= d; ) {
751
- if (!s._emit[g]) {
752
- g++;
753
- continue;
754
- }
755
- const y = A.classNameAliases[s[g]] || s[g], k = o[g];
756
- y ? N(k, y) : (E = k, I(), E = ""), g++;
757
- }
758
- }
759
- function le(s, o) {
760
- return s.scope && typeof s.scope == "string" && O.openNode(A.classNameAliases[s.scope] || s.scope), s.beginScope && (s.beginScope._wrap ? (N(E, A.classNameAliases[s.beginScope._wrap] || s.beginScope._wrap), E = "") : s.beginScope._multi && (ae(s.beginScope, o), E = "")), f = Object.create(s, { parent: { value: f } }), f;
761
- }
762
- function ue(s, o, g) {
763
- let d = rt(s.endRe, g);
764
- if (d) {
765
- if (s["on:end"]) {
766
- const y = new he(s);
767
- s["on:end"](o, y), y.isMatchIgnored && (d = !1);
768
- }
769
- if (d) {
770
- for (; s.endsParent && s.parent; )
771
- s = s.parent;
772
- return s;
773
- }
774
- }
775
- if (s.endsWithParent)
776
- return ue(s.parent, o, g);
777
- }
778
- function Fe(s) {
779
- return f.matcher.regexIndex === 0 ? (E += s[0], 1) : (m = !0, 0);
780
- }
781
- function ze(s) {
782
- const o = s[0], g = s.rule, d = new he(g), y = [g.__beforeBegin, g["on:begin"]];
783
- for (const k of y)
784
- if (k && (k(s, d), d.isMatchIgnored))
785
- return Fe(o);
786
- return g.skip ? E += o : (g.excludeBegin && (E += o), R(), !g.returnBegin && !g.excludeBegin && (E = o)), le(g, s), g.returnBegin ? 0 : o.length;
787
- }
788
- function Xe(s) {
789
- const o = s[0], g = a.substring(s.index), d = ue(f, s, g);
790
- if (!d)
791
- return Me;
792
- const y = f;
793
- f.endScope && f.endScope._wrap ? (R(), N(o, f.endScope._wrap)) : f.endScope && f.endScope._multi ? (R(), ae(f.endScope, s)) : y.skip ? E += o : (y.returnEnd || y.excludeEnd || (E += o), R(), y.excludeEnd && (E = o));
794
- do
795
- f.scope && O.closeNode(), !f.skip && !f.subLanguage && (F += f.relevance), f = f.parent;
796
- while (f !== d.parent);
797
- return d.starts && le(d.starts, s), y.returnEnd ? 0 : o.length;
798
- }
799
- function Ye() {
800
- const s = [];
801
- for (let o = f; o !== A; o = o.parent)
802
- o.scope && s.unshift(o.scope);
803
- s.forEach((o) => O.openNode(o));
804
- }
805
- let K = {};
806
- function fe(s, o) {
807
- const g = o && o[0];
808
- if (E += s, g == null)
809
- return R(), 0;
810
- if (K.type === "begin" && o.type === "end" && K.index === o.index && g === "") {
811
- if (E += a.slice(o.index, o.index + 1), !b) {
812
- const d = new Error(`0 width match regex (${n})`);
813
- throw d.languageName = n, d.badRule = K.rule, d;
814
- }
815
- return 1;
816
- }
817
- if (K = o, o.type === "begin")
818
- return ze(o);
819
- if (o.type === "illegal" && !h) {
820
- const d = new Error('Illegal lexeme "' + g + '" for mode "' + (f.scope || "<unnamed>") + '"');
821
- throw d.mode = f, d;
822
- } else if (o.type === "end") {
823
- const d = Xe(o);
824
- if (d !== Me)
825
- return d;
826
- }
827
- if (o.type === "illegal" && g === "")
828
- return 1;
829
- if (Q > 1e5 && Q > o.index * 3)
830
- throw new Error("potential infinite loop, way more iterations than matches");
831
- return E += g, g.length;
832
- }
833
- const A = T(n);
834
- if (!A)
835
- throw v(_.replace("{}", n)), new Error('Unknown language: "' + n + '"');
836
- const Ze = Ut(A);
837
- let q = "", f = p || Ze;
838
- const ge = {}, O = new r.__emitter(r);
839
- Ye();
840
- let E = "", F = 0, D = 0, Q = 0, m = !1;
841
- try {
842
- if (A.__emitTokens)
843
- A.__emitTokens(a, O);
844
- else {
845
- for (f.matcher.considerAll(); ; ) {
846
- Q++, m ? m = !1 : f.matcher.considerAll(), f.matcher.lastIndex = D;
847
- const s = f.matcher.exec(a);
848
- if (!s)
849
- break;
850
- const o = a.substring(D, s.index), g = fe(o, s);
851
- D = s.index + g;
852
- }
853
- fe(a.substring(D));
854
- }
855
- return O.finalize(), q = O.toHTML(), {
856
- language: n,
857
- value: q,
858
- relevance: F,
859
- illegal: !1,
860
- _emitter: O,
861
- _top: f
862
- };
863
- } catch (s) {
864
- if (s.message && s.message.includes("Illegal"))
865
- return {
866
- language: n,
867
- value: ee(a),
868
- illegal: !0,
869
- relevance: 0,
870
- _illegalBy: {
871
- message: s.message,
872
- index: D,
873
- context: a.slice(D - 100, D + 100),
874
- mode: s.mode,
875
- resultSoFar: q
876
- },
877
- _emitter: O
878
- };
879
- if (b)
880
- return {
881
- language: n,
882
- value: ee(a),
883
- illegal: !1,
884
- relevance: 0,
885
- errorRaised: s,
886
- _emitter: O,
887
- _top: f
888
- };
889
- throw s;
890
- }
891
- }
892
- function Z(n) {
893
- const a = {
894
- value: ee(n),
895
- illegal: !1,
896
- relevance: 0,
897
- _top: c,
898
- _emitter: new r.__emitter(r)
899
- };
900
- return a._emitter.addText(n), a;
901
- }
902
- function J(n, a) {
903
- a = a || r.languages || Object.keys(t);
904
- const h = Z(n), p = a.filter(T).filter(oe).map(
905
- (R) => H(R, n, !1)
906
- );
907
- p.unshift(h);
908
- const w = p.sort((R, N) => {
909
- if (R.relevance !== N.relevance)
910
- return N.relevance - R.relevance;
911
- if (R.language && N.language) {
912
- if (T(R.language).supersetOf === N.language)
913
- return 1;
914
- if (T(N.language).supersetOf === R.language)
915
- return -1;
916
- }
917
- return 0;
918
- }), [S, I] = w, W = S;
919
- return W.secondBest = I, W;
920
- }
921
- function De(n, a, h) {
922
- const p = a && i[a] || h;
923
- n.classList.add("hljs"), n.classList.add(`language-${p}`);
924
- }
925
- function V(n) {
926
- let a = null;
927
- const h = x(n);
928
- if (l(h))
929
- return;
930
- if (G(
931
- "before:highlightElement",
932
- { el: n, language: h }
933
- ), n.dataset.highlighted) {
934
- console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", n);
935
- return;
936
- }
937
- if (n.children.length > 0 && (r.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(n)), r.throwUnescapedHTML))
938
- throw new Wt(
939
- "One of your code blocks includes unescaped HTML.",
940
- n.innerHTML
941
- );
942
- a = n;
943
- const p = a.textContent, w = h ? M(p, { language: h, ignoreIllegals: !0 }) : J(p);
944
- n.innerHTML = w.value, n.dataset.highlighted = "yes", De(n, h, w.language), n.result = {
945
- language: w.language,
946
- // TODO: remove with version 11.0
947
- re: w.relevance,
948
- relevance: w.relevance
949
- }, w.secondBest && (n.secondBest = {
950
- language: w.secondBest.language,
951
- relevance: w.secondBest.relevance
952
- }), G("after:highlightElement", { el: n, result: w, text: p });
953
- }
954
- function ve(n) {
955
- r = _e(r, n);
956
- }
957
- const Ce = () => {
958
- $(), L("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
959
- };
960
- function Le() {
961
- $(), L("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
962
- }
963
- let re = !1;
964
- function $() {
965
- if (document.readyState === "loading") {
966
- re = !0;
967
- return;
968
- }
969
- document.querySelectorAll(r.cssSelector).forEach(V);
970
- }
971
- function je() {
972
- re && $();
973
- }
974
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", je, !1);
975
- function He(n, a) {
976
- let h = null;
977
- try {
978
- h = a(e);
979
- } catch (p) {
980
- if (v("Language definition for '{}' could not be registered.".replace("{}", n)), b)
981
- v(p);
982
- else
983
- throw p;
984
- h = c;
985
- }
986
- h.name || (h.name = n), t[n] = h, h.rawDefinition = a.bind(null, e), h.aliases && ce(h.aliases, { languageName: n });
987
- }
988
- function Pe(n) {
989
- delete t[n];
990
- for (const a of Object.keys(i))
991
- i[a] === n && delete i[a];
992
- }
993
- function Ue() {
994
- return Object.keys(t);
995
- }
996
- function T(n) {
997
- return n = (n || "").toLowerCase(), t[n] || t[i[n]];
998
- }
999
- function ce(n, { languageName: a }) {
1000
- typeof n == "string" && (n = [n]), n.forEach((h) => {
1001
- i[h.toLowerCase()] = a;
1002
- });
1003
- }
1004
- function oe(n) {
1005
- const a = T(n);
1006
- return a && !a.disableAutodetect;
1007
- }
1008
- function $e(n) {
1009
- n["before:highlightBlock"] && !n["before:highlightElement"] && (n["before:highlightElement"] = (a) => {
1010
- n["before:highlightBlock"](
1011
- Object.assign({ block: a.el }, a)
1012
- );
1013
- }), n["after:highlightBlock"] && !n["after:highlightElement"] && (n["after:highlightElement"] = (a) => {
1014
- n["after:highlightBlock"](
1015
- Object.assign({ block: a.el }, a)
1016
- );
1017
- });
1018
- }
1019
- function Ge(n) {
1020
- $e(n), u.push(n);
1021
- }
1022
- function We(n) {
1023
- const a = u.indexOf(n);
1024
- a !== -1 && u.splice(a, 1);
1025
- }
1026
- function G(n, a) {
1027
- const h = n;
1028
- u.forEach(function(p) {
1029
- p[h] && p[h](a);
1030
- });
1031
- }
1032
- function Ke(n) {
1033
- return L("10.7.0", "highlightBlock will be removed entirely in v12.0"), L("10.7.0", "Please use highlightElement now."), V(n);
1034
- }
1035
- Object.assign(e, {
1036
- highlight: M,
1037
- highlightAuto: J,
1038
- highlightAll: $,
1039
- highlightElement: V,
1040
- // TODO: Remove with v12 API
1041
- highlightBlock: Ke,
1042
- configure: ve,
1043
- initHighlighting: Ce,
1044
- initHighlightingOnLoad: Le,
1045
- registerLanguage: He,
1046
- unregisterLanguage: Pe,
1047
- listLanguages: Ue,
1048
- getLanguage: T,
1049
- registerAliases: ce,
1050
- autoDetection: oe,
1051
- inherit: _e,
1052
- addPlugin: Ge,
1053
- removePlugin: We
1054
- }), e.debugMode = function() {
1055
- b = !1;
1056
- }, e.safeMode = function() {
1057
- b = !0;
1058
- }, e.versionString = Gt, e.regex = {
1059
- concat: C,
1060
- lookahead: Oe,
1061
- either: ne,
1062
- optional: it,
1063
- anyNumberOfTimes: nt
1064
- };
1065
- for (const n in z)
1066
- typeof z[n] == "object" && we(z[n]);
1067
- return Object.assign(e, z), e;
1068
- }, j = Be({});
1069
- j.newInstance = () => Be({});
1070
- var Ft = j;
1071
- j.HighlightJS = j;
1072
- j.default = j;
1073
- const zt = /* @__PURE__ */ qe(Ft);
1074
- export {
1075
- zt as HighlightJS,
1076
- zt as default
1077
- };