zudoku 0.3.0-dev.20 → 0.3.0-dev.22

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 (78) hide show
  1. package/dist/config/config.d.ts +1 -1
  2. package/dist/lib/authentication/authentication.d.ts +1 -1
  3. package/dist/lib/plugins/api-keys/index.js +1 -0
  4. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  5. package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
  6. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  7. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  8. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  9. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
  10. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  11. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  12. package/dist/lib/plugins/openapi/Route.js +8 -0
  13. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  14. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  15. package/dist/lib/plugins/openapi/context.js +11 -0
  16. package/dist/lib/plugins/openapi/context.js.map +1 -0
  17. package/dist/lib/plugins/openapi/index.d.ts +1 -19
  18. package/dist/lib/plugins/openapi/index.js +17 -18
  19. package/dist/lib/plugins/openapi/index.js.map +1 -1
  20. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  21. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  22. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  23. package/dist/vite/build.js +4 -1
  24. package/dist/vite/build.js.map +1 -1
  25. package/dist/vite/config.d.ts +7 -7
  26. package/dist/vite/config.js +33 -38
  27. package/dist/vite/config.js.map +1 -1
  28. package/dist/vite/config.test.js +6 -3
  29. package/dist/vite/config.test.js.map +1 -1
  30. package/dist/vite/dev-server.js +3 -3
  31. package/dist/vite/dev-server.js.map +1 -1
  32. package/dist/vite/plugin-api-keys.js +2 -2
  33. package/dist/vite/plugin-api-keys.js.map +1 -1
  34. package/dist/vite/plugin-api.js +2 -2
  35. package/dist/vite/plugin-api.js.map +1 -1
  36. package/dist/vite/plugin-auth.js +2 -2
  37. package/dist/vite/plugin-auth.js.map +1 -1
  38. package/dist/vite/plugin-config.d.ts +1 -1
  39. package/dist/vite/plugin-config.js +7 -6
  40. package/dist/vite/plugin-config.js.map +1 -1
  41. package/dist/vite/plugin-redirect.js +2 -2
  42. package/dist/vite/plugin-redirect.js.map +1 -1
  43. package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
  44. package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
  45. package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
  46. package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
  47. package/lib/MdxPage-DQ7lZBzE.js +216 -0
  48. package/lib/OperationList-DuIBqFNA.js +5545 -0
  49. package/lib/Route-B98Y2MdH.js +13 -0
  50. package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
  51. package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
  52. package/lib/cn-DpqTslo9.js +2341 -0
  53. package/lib/context-_fYfJFgk.js +13 -0
  54. package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
  55. package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
  56. package/lib/index-CKvOcM7w.js +712 -0
  57. package/lib/index-Cg6lXS1z.js +709 -0
  58. package/lib/index-ClDDiRmC.js +463 -0
  59. package/lib/router-DibNxKUP.js +3008 -0
  60. package/lib/util-CaVongBq.js +40 -0
  61. package/lib/zudoku.auth-openid.js +7 -6
  62. package/lib/zudoku.components.js +73 -69
  63. package/lib/zudoku.plugin-api-keys.js +26 -23
  64. package/lib/zudoku.plugin-markdown.js +33 -237
  65. package/lib/zudoku.plugin-openapi.js +5 -6238
  66. package/lib/zudoku.plugin-redirect.js +7 -6
  67. package/package.json +1 -2
  68. package/src/lib/authentication/authentication.ts +1 -1
  69. package/src/lib/plugins/api-keys/index.tsx +1 -0
  70. package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
  71. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  72. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
  73. package/src/lib/plugins/openapi/Route.tsx +21 -0
  74. package/src/lib/plugins/openapi/context.tsx +16 -0
  75. package/src/lib/plugins/openapi/index.tsx +19 -46
  76. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  77. package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
  78. package/lib/index-PyGcnQFX.js +0 -3462
@@ -1,6 +1,7 @@
1
- import { j as k } from "./index-PyGcnQFX.js";
2
- import { c as q, l as z, q as Se, J as ye, G as _e, L as Fe } from "./DevPortalProvider-CRKuwoXc.js";
3
- import { createContext as fe, useState as X, useRef as M, useEffect as G, useMemo as ne, useCallback as Z, useContext as be, createElement as Te } from "react";
1
+ import { j as k } from "./router-DibNxKUP.js";
2
+ import { c as q, b as Se, C as _e, L as Fe } from "./index-CKvOcM7w.js";
3
+ import { createContext as ye, useState as X, useRef as M, useEffect as G, useMemo as ne, useCallback as Z, useContext as fe, createElement as Te } from "react";
4
+ import { c as z, a as be } from "./cn-DpqTslo9.js";
4
5
  /**
5
6
  * @license lucide-react v0.378.0 - ISC
6
7
  *
@@ -17,7 +18,7 @@ const Re = q("Copy", [
17
18
  * This source code is licensed under the ISC license.
18
19
  * See the LICENSE file in the root directory of this source tree.
19
20
  */
20
- const ie = q("Info", [
21
+ const le = q("Info", [
21
22
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
22
23
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
23
24
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
@@ -79,7 +80,7 @@ const Ce = q("TriangleAlert", [
79
80
  iconColor: "text-gray-600 dark:text-zinc-300",
80
81
  titleColor: "text-gray-600 dark:text-zinc-300",
81
82
  textColor: "text-gray-600 dark:text-zinc-300",
82
- Icon: ie
83
+ Icon: le
83
84
  },
84
85
  tip: {
85
86
  border: "border-green-500 dark:border-green-800",
@@ -95,7 +96,7 @@ const Ce = q("TriangleAlert", [
95
96
  iconColor: "text-blue-400 dark:text-blue-200",
96
97
  titleColor: "text-blue-700 dark:text-blue-200",
97
98
  textColor: "text-blue-600 dark:text-blue-100",
98
- Icon: ie
99
+ Icon: le
99
100
  },
100
101
  caution: {
101
102
  border: "border-yellow-400 dark:border-yellow-400/25",
@@ -113,8 +114,8 @@ const Ce = q("TriangleAlert", [
113
114
  textColor: "text-rose-700 dark:text-rose-100",
114
115
  Icon: Le
115
116
  }
116
- }, j = ({ type: e, children: t, title: r, className: l }) => {
117
- const { border: i, bg: b, iconColor: c, titleColor: d, textColor: p, Icon: y } = Oe[e];
117
+ }, j = ({ type: e, children: t, title: r, className: i }) => {
118
+ const { border: l, bg: b, iconColor: c, titleColor: d, textColor: p, Icon: y } = Oe[e];
118
119
  return /* @__PURE__ */ k.jsxs(
119
120
  "div",
120
121
  {
@@ -123,9 +124,9 @@ const Ce = q("TriangleAlert", [
123
124
  "[&_a]:underline [&_a]:decoration-current [&_a]:decoration-from-font [&_a]:underline-offset-4 hover:[&_a]:decoration-1",
124
125
  "[&_code]:!bg-transparent [&_code]:!border-none",
125
126
  r && "items-center",
126
- i,
127
+ l,
127
128
  b,
128
- l
129
+ i
129
130
  ),
130
131
  children: [
131
132
  /* @__PURE__ */ k.jsx(
@@ -141,10 +142,10 @@ const Ce = q("TriangleAlert", [
141
142
  ]
142
143
  }
143
144
  );
144
- }, me = fe(
145
+ }, me = ye(
145
146
  void 0
146
147
  ), Ne = () => {
147
- const e = be(me);
148
+ const e = fe(me);
148
149
  if (!e)
149
150
  throw new Error(
150
151
  "useViewportAnchor must be used within a CurrentAnchorProvider"
@@ -153,17 +154,17 @@ const Ce = q("TriangleAlert", [
153
154
  }, De = () => {
154
155
  const e = M(null), { observe: t, unobserve: r } = Ne();
155
156
  return G(() => {
156
- const i = e.current;
157
- if (i)
158
- return t(i), () => r(i);
159
- }, [t, r]), { ref: Z((i) => {
160
- i && (e.current = i);
157
+ const l = e.current;
158
+ if (l)
159
+ return t(l), () => r(l);
160
+ }, [t, r]), { ref: Z((l) => {
161
+ l && (e.current = l);
161
162
  }, []) };
162
- }, Gt = ({
163
+ }, Zt = ({
163
164
  children: e
164
165
  }) => {
165
- const [t, r] = X(""), l = M(null), i = M(/* @__PURE__ */ new Set());
166
- G(() => (l.current = new IntersectionObserver(
166
+ const [t, r] = X(""), i = M(null), l = M(/* @__PURE__ */ new Set());
167
+ G(() => (i.current = new IntersectionObserver(
167
168
  (d) => {
168
169
  for (const p of d)
169
170
  p.isIntersecting && p.target.id && r(p.target.id);
@@ -176,9 +177,9 @@ const Ce = q("TriangleAlert", [
176
177
  }
177
178
  ), () => {
178
179
  var d;
179
- return (d = l.current) == null ? void 0 : d.disconnect();
180
+ return (d = i.current) == null ? void 0 : d.disconnect();
180
181
  }), []), G(() => {
181
- const d = i.current, p = () => {
182
+ const d = l.current, p = () => {
182
183
  const y = window.scrollY === 0, h = window.innerHeight + window.scrollY >= document.body.scrollHeight;
183
184
  y ? r("") : h && requestIdleCallback(() => {
184
185
  const g = Array.from(d).pop();
@@ -191,10 +192,10 @@ const Ce = q("TriangleAlert", [
191
192
  }, []);
192
193
  const b = ne(() => ({
193
194
  observe: (d) => {
194
- !d || !l.current || (i.current.add(d), l.current.observe(d));
195
+ !d || !i.current || (l.current.add(d), i.current.observe(d));
195
196
  },
196
197
  unobserve: (d) => {
197
- !d || !l.current || (i.current.delete(d), l.current.unobserve(d));
198
+ !d || !i.current || (l.current.delete(d), i.current.unobserve(d));
198
199
  }
199
200
  }), []), c = ne(
200
201
  () => ({ activeAnchor: t, setActiveAnchor: r, ...b }),
@@ -236,15 +237,15 @@ const Ce = q("TriangleAlert", [
236
237
  level: e,
237
238
  children: t,
238
239
  id: r,
239
- className: l,
240
- registerSidebarAnchor: i
240
+ className: i,
241
+ registerSidebarAnchor: l
241
242
  }) => {
242
243
  const b = je(e ?? 1), { ref: c } = De();
243
244
  return /* @__PURE__ */ k.jsxs(
244
245
  b,
245
246
  {
246
- className: Be({ className: l, level: e }),
247
- ref: i ? c : void 0,
247
+ className: Be({ className: i, level: e }),
248
+ ref: l ? c : void 0,
248
249
  id: r,
249
250
  children: [
250
251
  r && /* @__PURE__ */ k.jsx(
@@ -270,21 +271,21 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
270
271
  return e;
271
272
  }, J = (e, t) => Pe(e, Me(t)), ke = (e, t) => {
272
273
  var r = {};
273
- for (var l in e)
274
- oe.call(e, l) && t.indexOf(l) < 0 && (r[l] = e[l]);
274
+ for (var i in e)
275
+ oe.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
275
276
  if (e != null && K)
276
- for (var l of K(e))
277
- t.indexOf(l) < 0 && ve.call(e, l) && (r[l] = e[l]);
277
+ for (var i of K(e))
278
+ t.indexOf(i) < 0 && ve.call(e, i) && (r[i] = e[i]);
278
279
  return r;
279
280
  }, Ge = (e, t) => function() {
280
281
  return t || (0, e[he(e)[0]])((t = { exports: {} }).exports, t), t.exports;
281
282
  }, Ze = (e, t) => {
282
283
  for (var r in t)
283
284
  Q(e, r, { get: t[r], enumerable: !0 });
284
- }, qe = (e, t, r, l) => {
285
+ }, qe = (e, t, r, i) => {
285
286
  if (t && typeof t == "object" || typeof t == "function")
286
- for (let i of he(t))
287
- !oe.call(e, i) && i !== r && Q(e, i, { get: () => t[i], enumerable: !(l = ze(t, i)) || l.enumerable });
287
+ for (let l of he(t))
288
+ !oe.call(e, l) && l !== r && Q(e, l, { get: () => t[l], enumerable: !(i = ze(t, l)) || i.enumerable });
288
289
  return e;
289
290
  }, He = (e, t, r) => (r = e != null ? $e(Ue(e)) : {}, qe(
290
291
  // If the importer is in node compatibility mode or this is not an ESM
@@ -296,7 +297,7 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
296
297
  )), We = Ge({
297
298
  "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
298
299
  var r = function() {
299
- var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, b = {}, c = {
300
+ var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, l = 0, b = {}, c = {
300
301
  /**
301
302
  * A namespace for utility methods.
302
303
  *
@@ -336,7 +337,7 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
336
337
  * @returns {number}
337
338
  */
338
339
  objId: function(a) {
339
- return a.__id || Object.defineProperty(a, "__id", { value: ++i }), a.__id;
340
+ return a.__id || Object.defineProperty(a, "__id", { value: ++l }), a.__id;
340
341
  },
341
342
  /**
342
343
  * Creates a deep clone of the given object.
@@ -382,7 +383,7 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
382
383
  */
383
384
  getLanguage: function(a) {
384
385
  for (; a; ) {
385
- var n = l.exec(a.className);
386
+ var n = i.exec(a.className);
386
387
  if (n)
387
388
  return n[1].toLowerCase();
388
389
  a = a.parentElement;
@@ -397,7 +398,7 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
397
398
  * @returns {void}
398
399
  */
399
400
  setLanguage: function(a, n) {
400
- a.className = a.className.replace(RegExp(l, "gi"), ""), a.classList.add("language-" + n);
401
+ a.className = a.className.replace(RegExp(i, "gi"), ""), a.classList.add("language-" + n);
401
402
  },
402
403
  /**
403
404
  * Returns whether a given class is active for `element`.
@@ -755,12 +756,12 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
755
756
  H--, $ = a.slice(C, B), I.index -= C;
756
757
  } else if (I = p(se, 0, $, T), !I)
757
758
  continue;
758
- var W = I.index, Y = I[0], ee = $.slice(0, W), le = $.slice(W + Y.length), te = C + $.length;
759
+ var W = I.index, Y = I[0], ee = $.slice(0, W), ie = $.slice(W + Y.length), te = C + $.length;
759
760
  m && te > m.reach && (m.reach = te);
760
761
  var V = _.prev;
761
762
  ee && (V = g(n, V, ee), C += ee.length), v(n, V, H);
762
763
  var Ae = new d(w, F ? c.tokenize(Y, F) : Y, N, Y);
763
- if (_ = g(n, V, Ae), le && g(n, _, le), H > 1) {
764
+ if (_ = g(n, V, Ae), ie && g(n, _, ie), H > 1) {
764
765
  var re = {
765
766
  cause: w + "," + S,
766
767
  reach: te
@@ -797,29 +798,29 @@ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties,
797
798
  }), o = He(We());
798
799
  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) {
799
800
  e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
800
- }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, l) {
801
- var r = {}, r = (r["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[l] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), l = (r["language-" + l] = { pattern: /[\s\S]+/, inside: o.languages[l] }, {});
802
- l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
801
+ }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, i) {
802
+ 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] }, {});
803
+ i[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
803
804
  return e;
804
- }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", l);
805
+ }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", i);
805
806
  } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
806
807
  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" }, /"|'/] } } } });
807
808
  } }), 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) {
808
- 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]|.)/, l = "(?:[^\\\\-]|" + r.source + ")", l = RegExp(l + "-" + l), i = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
809
- 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: l, 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": i } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": i } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
809
+ 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), l = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
810
+ 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": l } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": l } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
810
811
  }(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) {
811
812
  var t = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
812
813
  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;
813
814
  }(o), function(e) {
814
815
  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: /[{}]/ };
815
- Object.defineProperty(t, "addSupport", { value: function(r, l) {
816
- (r = typeof r == "string" ? [r] : r).forEach(function(i) {
816
+ Object.defineProperty(t, "addSupport", { value: function(r, i) {
817
+ (r = typeof r == "string" ? [r] : r).forEach(function(l) {
817
818
  var b = function(g) {
818
- g.inside || (g.inside = {}), g.inside.rest = l;
819
+ g.inside || (g.inside = {}), g.inside.rest = i;
819
820
  }, c = "doc-comment";
820
- if (d = e.languages[i]) {
821
+ if (d = e.languages[l]) {
821
822
  var d, p = d[c];
822
- if ((p = p || (d = e.languages.insertBefore(i, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[c]) instanceof RegExp && (p = d[c] = { pattern: p }), Array.isArray(p))
823
+ if ((p = p || (d = e.languages.insertBefore(l, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[c]) instanceof RegExp && (p = d[c] = { pattern: p }), Array.isArray(p))
823
824
  for (var y = 0, h = p.length; y < h; y++)
824
825
  p[y] instanceof RegExp && (p[y] = { pattern: p[y] }), b(p[y]);
825
826
  else
@@ -834,24 +835,24 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
834
835
  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 };
835
836
  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 });
836
837
  }(o), function(e) {
837
- var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
838
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
838
839
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
839
840
  }), b = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
840
841
  function c(d, p) {
841
842
  p = (p || "").replace(/m/g, "") + "m";
842
843
  var y = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
843
- return l;
844
+ return i;
844
845
  }).replace(/<<value>>/g, function() {
845
846
  return d;
846
847
  });
847
848
  return RegExp(y, p);
848
849
  }
849
850
  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() {
850
- return l;
851
+ return i;
851
852
  })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
852
- return l;
853
+ return i;
853
854
  }).replace(/<<key>>/g, function() {
854
- return "(?:" + i + "|" + b + ")";
855
+ return "(?:" + l + "|" + b + ")";
855
856
  })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: c(/\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: c(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: c(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: c(b), lookbehind: !0, greedy: !0 }, number: { pattern: c(/[+-]?(?: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;
856
857
  }(o), function(e) {
857
858
  var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
@@ -860,9 +861,9 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
860
861
  return t;
861
862
  }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + y + ")");
862
863
  }
863
- var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, i = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
864
- return l;
865
- }), b = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (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("^" + i + b + "(?:" + i + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + i + b + ")(?:" + i + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + i + ")" + b + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + i + "$"), inside: { "table-header": { pattern: RegExp(l), 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(y) {
864
+ var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, l = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
865
+ return i;
866
+ }), b = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (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("^" + l + b + "(?:" + l + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + l + b + ")(?:" + l + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + l + ")" + b + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + l + "$"), 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(y) {
866
867
  ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(h) {
867
868
  y !== h && (e.languages.markdown[y].inside.content.inside[h] = e.languages.markdown[h]);
868
869
  });
@@ -901,9 +902,9 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
901
902
  for (var t = e.tokens.filter(function(a) {
902
903
  return typeof a != "string" && a.type !== "comment" && a.type !== "scalar";
903
904
  }), r = 0; r < t.length; ) {
904
- var l = t[r++];
905
- if (l.type === "keyword" && l.content === "mutation") {
906
- var i = [];
905
+ var i = t[r++];
906
+ if (i.type === "keyword" && i.content === "mutation") {
907
+ var l = [];
907
908
  if (g(["definition-mutation", "punctuation"]) && h(1).content === "(") {
908
909
  r += 2;
909
910
  var b = v(/^\($/, /^\)$/);
@@ -911,16 +912,16 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
911
912
  continue;
912
913
  for (; r < b; r++) {
913
914
  var c = h(0);
914
- c.type === "variable" && (x(c, "variable-input"), i.push(c.content));
915
+ c.type === "variable" && (x(c, "variable-input"), l.push(c.content));
915
916
  }
916
917
  r = b + 1;
917
918
  }
918
- if (g(["punctuation", "property-query"]) && h(0).content === "{" && (r++, x(h(0), "property-mutation"), 0 < i.length)) {
919
+ if (g(["punctuation", "property-query"]) && h(0).content === "{" && (r++, x(h(0), "property-mutation"), 0 < l.length)) {
919
920
  var d = v(/^\{$/, /^\}$/);
920
921
  if (d !== -1)
921
922
  for (var p = r; p < d; p++) {
922
923
  var y = t[p];
923
- y.type === "variable" && 0 <= i.indexOf(y.content) && x(y, "variable-input");
924
+ y.type === "variable" && 0 <= l.indexOf(y.content) && x(y, "variable-input");
924
925
  }
925
926
  }
926
927
  }
@@ -954,7 +955,7 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
954
955
  s ? Array.isArray(s) || (a.alias = s = [s]) : a.alias = s = [], s.push(n);
955
956
  }
956
957
  }), 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) {
957
- var t = e.languages.javascript["template-string"], r = t.pattern.source, l = t.inside.interpolation, i = l.inside["interpolation-punctuation"], b = l.pattern.source;
958
+ var t = e.languages.javascript["template-string"], r = t.pattern.source, i = t.inside.interpolation, l = i.inside["interpolation-punctuation"], b = i.pattern.source;
958
959
  function c(g, v) {
959
960
  if (e.languages[g])
960
961
  return { pattern: RegExp("((?:" + v + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: g } } };
@@ -975,7 +976,7 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
975
976
  if (a >= f.length)
976
977
  return;
977
978
  var E, S, A, F, T, D, N, L = m[w];
978
- typeof L == "string" || typeof L.content == "string" ? (E = f[a], (N = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++a, S = D.substring(0, N), T = n[E], A = void 0, (F = {})["interpolation-punctuation"] = i, (F = e.tokenize(T, F)).length === 3 && ((A = [1, 1]).push.apply(A, d(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, A)), A = new e.Token("interpolation", F, l.alias, T), F = D.substring(N + E.length), T = [], S && T.push(S), T.push(A), F && (u(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (m.splice.apply(m, [w, 1].concat(T)), w += T.length - 1) : L.content = T)) : (N = L.content, Array.isArray(N) ? u(N) : u([N]));
979
+ typeof L == "string" || typeof L.content == "string" ? (E = f[a], (N = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++a, S = D.substring(0, N), T = n[E], A = void 0, (F = {})["interpolation-punctuation"] = l, (F = e.tokenize(T, F)).length === 3 && ((A = [1, 1]).push.apply(A, d(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, A)), A = new e.Token("interpolation", F, i.alias, T), F = D.substring(N + E.length), T = [], S && T.push(S), T.push(A), F && (u(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (m.splice.apply(m, [w, 1].concat(T)), w += T.length - 1) : L.content = T)) : (N = L.content, Array.isArray(N) ? u(N) : u([N]));
979
980
  }
980
981
  }(s), new e.Token(x, s, "language-" + x, g);
981
982
  }
@@ -997,8 +998,8 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
997
998
  var t = e.languages.extend("typescript", {});
998
999
  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;
999
1000
  }(o), function(e) {
1000
- var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
1001
- e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\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() {
1001
+ var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, i = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
1002
+ 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() {
1002
1003
  return r;
1003
1004
  })), 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);
1004
1005
  }(o), function(e) {
@@ -1010,22 +1011,22 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
1010
1011
  }), d);
1011
1012
  }
1012
1013
  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" } });
1013
- for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < r.length; l++) {
1014
- var b = r[l], i = e.languages.javascript[b], b = (i = e.util.type(i) === "RegExp" ? e.languages.javascript[b] = { pattern: i } : i).inside || {};
1015
- (i.inside = b)["maybe-class-name"] = /^[A-Z][\s\S]*/;
1014
+ for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], i = 0; i < r.length; i++) {
1015
+ var b = r[i], l = e.languages.javascript[b], b = (l = e.util.type(l) === "RegExp" ? e.languages.javascript[b] = { pattern: l } : l).inside || {};
1016
+ (l.inside = b)["maybe-class-name"] = /^[A-Z][\s\S]*/;
1016
1017
  }
1017
1018
  }(o), function(e) {
1018
- var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, i = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
1019
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, l = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
1019
1020
  function b(p, y) {
1020
1021
  return p = p.replace(/<S>/g, function() {
1021
1022
  return r;
1022
1023
  }).replace(/<BRACES>/g, function() {
1023
- return l;
1024
- }).replace(/<SPREAD>/g, function() {
1025
1024
  return i;
1025
+ }).replace(/<SPREAD>/g, function() {
1026
+ return l;
1026
1027
  }), RegExp(p, y);
1027
1028
  }
1028
- i = b(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = b(/<\/?(?:[\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: b(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: b(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
1029
+ l = b(l).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = b(/<\/?(?:[\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: b(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: b(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
1029
1030
  function c(p) {
1030
1031
  for (var y = [], h = 0; h < p.length; h++) {
1031
1032
  var g = p[h], v = !1;
@@ -1075,7 +1076,7 @@ Ze(ae, {
1075
1076
  jettwaveLight: () => At,
1076
1077
  nightOwl: () => nt,
1077
1078
  nightOwlLight: () => ot,
1078
- oceanicNext: () => lt,
1079
+ oceanicNext: () => it,
1079
1080
  okaidia: () => ut,
1080
1081
  oneDark: () => _t,
1081
1082
  oneLight: () => Tt,
@@ -1746,7 +1747,7 @@ var Ye = {
1746
1747
  }
1747
1748
  }
1748
1749
  ]
1749
- }, lt = st, it = {
1750
+ }, it = st, lt = {
1750
1751
  plain: {
1751
1752
  color: "#f8f8f2",
1752
1753
  backgroundColor: "#272822"
@@ -1861,7 +1862,7 @@ var Ye = {
1861
1862
  }
1862
1863
  }
1863
1864
  ]
1864
- }, ut = it, ct = {
1865
+ }, ut = lt, ct = {
1865
1866
  plain: {
1866
1867
  color: "#bfc7d5",
1867
1868
  backgroundColor: "#292d3e"
@@ -2765,43 +2766,43 @@ var Ye = {
2765
2766
  }
2766
2767
  ]
2767
2768
  }, Tt = Ft, Rt = (e, t) => {
2768
- const { plain: r } = e, l = e.styles.reduce((i, b) => {
2769
+ const { plain: r } = e, i = e.styles.reduce((l, b) => {
2769
2770
  const { languages: c, style: d } = b;
2770
2771
  return c && !c.includes(t) || b.types.forEach((p) => {
2771
- const y = O(O({}, i[p]), d);
2772
- i[p] = y;
2773
- }), i;
2772
+ const y = O(O({}, l[p]), d);
2773
+ l[p] = y;
2774
+ }), l;
2774
2775
  }, {});
2775
- return l.root = r, l.plain = J(O({}, r), { backgroundColor: void 0 }), l;
2776
+ return i.root = r, i.plain = J(O({}, r), { backgroundColor: void 0 }), i;
2776
2777
  }, ce = Rt, It = (e, t) => {
2777
- const [r, l] = X(
2778
+ const [r, i] = X(
2778
2779
  ce(t, e)
2779
- ), i = M(), b = M();
2780
+ ), l = M(), b = M();
2780
2781
  return G(() => {
2781
- (t !== i.current || e !== b.current) && (i.current = t, b.current = e, l(ce(t, e)));
2782
+ (t !== l.current || e !== b.current) && (l.current = t, b.current = e, i(ce(t, e)));
2782
2783
  }, [e, t]), r;
2783
2784
  }, Lt = (e) => Z(
2784
2785
  (t) => {
2785
- var r = t, { className: l, style: i, line: b } = r, c = ke(r, ["className", "style", "line"]);
2786
+ var r = t, { className: i, style: l, line: b } = r, c = ke(r, ["className", "style", "line"]);
2786
2787
  const d = J(O({}, c), {
2787
- className: ye("token-line", l)
2788
+ className: be("token-line", i)
2788
2789
  });
2789
- return typeof e == "object" && "plain" in e && (d.style = e.plain), typeof i == "object" && (d.style = O(O({}, d.style || {}), i)), d;
2790
+ return typeof e == "object" && "plain" in e && (d.style = e.plain), typeof l == "object" && (d.style = O(O({}, d.style || {}), l)), d;
2790
2791
  },
2791
2792
  [e]
2792
2793
  ), Ct = (e) => {
2793
2794
  const t = Z(
2794
- ({ types: r, empty: l }) => {
2795
+ ({ types: r, empty: i }) => {
2795
2796
  if (e != null) {
2796
2797
  {
2797
2798
  if (r.length === 1 && r[0] === "plain")
2798
- return l != null ? { display: "inline-block" } : void 0;
2799
- if (r.length === 1 && l != null)
2799
+ return i != null ? { display: "inline-block" } : void 0;
2800
+ if (r.length === 1 && i != null)
2800
2801
  return e[r[0]];
2801
2802
  }
2802
2803
  return Object.assign(
2803
- l != null ? { display: "inline-block" } : {},
2804
- ...r.map((i) => e[i])
2804
+ i != null ? { display: "inline-block" } : {},
2805
+ ...r.map((l) => e[l])
2805
2806
  );
2806
2807
  }
2807
2808
  },
@@ -2809,11 +2810,11 @@ var Ye = {
2809
2810
  );
2810
2811
  return Z(
2811
2812
  (r) => {
2812
- var l = r, { token: i, className: b, style: c } = l, d = ke(l, ["token", "className", "style"]);
2813
+ var i = r, { token: l, className: b, style: c } = i, d = ke(i, ["token", "className", "style"]);
2813
2814
  const p = J(O({}, d), {
2814
- className: ye("token", ...i.types, b),
2815
- children: i.content,
2816
- style: t(i)
2815
+ className: be("token", ...l.types, b),
2816
+ children: l.content,
2817
+ style: t(l)
2817
2818
  });
2818
2819
  return c != null && (p.style = O(O({}, p.style || {}), c)), p;
2819
2820
  },
@@ -2831,15 +2832,15 @@ var Ye = {
2831
2832
  const r = e.length;
2832
2833
  return r > 0 && e[r - 1] === t ? e : e.concat(t);
2833
2834
  }, Nt = (e) => {
2834
- const t = [[]], r = [e], l = [0], i = [e.length];
2835
+ const t = [[]], r = [e], i = [0], l = [e.length];
2835
2836
  let b = 0, c = 0, d = [];
2836
2837
  const p = [d];
2837
2838
  for (; c > -1; ) {
2838
- for (; (b = l[c]++) < i[c]; ) {
2839
+ for (; (b = i[c]++) < l[c]; ) {
2839
2840
  let y, h = t[c];
2840
2841
  const v = r[c][b];
2841
2842
  if (typeof v == "string" ? (h = c > 0 ? h : ["plain"], y = v) : (h = de(h, v.type), v.alias && (h = de(h, v.alias)), y = v.content), typeof y != "string") {
2842
- c++, t.push(h), r.push(y), l.push(0), i.push(y.length);
2843
+ c++, t.push(h), r.push(y), i.push(0), l.push(y.length);
2843
2844
  continue;
2844
2845
  }
2845
2846
  const x = y.split(Ot), a = x.length;
@@ -2853,30 +2854,30 @@ var Ye = {
2853
2854
  content: x[n]
2854
2855
  });
2855
2856
  }
2856
- c--, t.pop(), r.pop(), l.pop(), i.pop();
2857
+ c--, t.pop(), r.pop(), i.pop(), l.pop();
2857
2858
  }
2858
2859
  return pe(d), p;
2859
- }, ge = Nt, Dt = ({ prism: e, code: t, grammar: r, language: l }) => {
2860
- const i = M(e);
2860
+ }, ge = Nt, Dt = ({ prism: e, code: t, grammar: r, language: i }) => {
2861
+ const l = M(e);
2861
2862
  return ne(() => {
2862
2863
  if (r == null)
2863
2864
  return ge([t]);
2864
2865
  const b = {
2865
2866
  code: t,
2866
2867
  grammar: r,
2867
- language: l,
2868
+ language: i,
2868
2869
  tokens: []
2869
2870
  };
2870
- return i.current.hooks.run("before-tokenize", b), b.tokens = i.current.tokenize(t, r), i.current.hooks.run("after-tokenize", b), ge(b.tokens);
2871
- }, [t, r, l]);
2871
+ return l.current.hooks.run("before-tokenize", b), b.tokens = l.current.tokenize(t, r), l.current.hooks.run("after-tokenize", b), ge(b.tokens);
2872
+ }, [t, r, i]);
2872
2873
  }, Bt = ({
2873
2874
  children: e,
2874
2875
  language: t,
2875
2876
  code: r,
2876
- theme: l,
2877
- prism: i
2877
+ theme: i,
2878
+ prism: l
2878
2879
  }) => {
2879
- const b = t.toLowerCase(), c = It(b, l), d = Lt(c), p = Ct(c), y = i.languages[b], h = Dt({ prism: i, language: b, code: r, grammar: y });
2880
+ const b = t.toLowerCase(), c = It(b, i), d = Lt(c), p = Ct(c), y = l.languages[b], h = Dt({ prism: l, language: b, code: r, grammar: y });
2880
2881
  return e({
2881
2882
  tokens: h,
2882
2883
  className: `prism-code language-${b}`,
@@ -2902,33 +2903,33 @@ prismjs/prism.js:
2902
2903
  * @public
2903
2904
  *)
2904
2905
  */
2905
- const xe = fe([
2906
+ const xe = ye([
2906
2907
  !1,
2907
2908
  () => {
2908
2909
  }
2909
2910
  ]), $t = () => {
2910
- const e = be(xe);
2911
+ const e = fe(xe);
2911
2912
  if (!e)
2912
2913
  throw new Error("useTheme must be used within a ThemeProvider");
2913
2914
  return e;
2914
- }, Zt = (e) => {
2915
+ }, qt = (e) => {
2915
2916
  const [t, r] = X(!1);
2916
2917
  G(() => {
2917
2918
  const b = localStorage.getItem("theme"), c = window.matchMedia("(prefers-color-scheme: dark)"), d = b === "dark" || !b && c.matches;
2918
2919
  r(d);
2919
2920
  }, [t]);
2920
- const l = Z(() => {
2921
+ const i = Z(() => {
2921
2922
  const b = !t;
2922
2923
  document.documentElement.classList.toggle("dark", b), localStorage.setItem("theme", b ? "dark" : "light"), r(b);
2923
- }, [t]), i = [t, l];
2924
- return /* @__PURE__ */ k.jsx(xe.Provider, { value: i, ...e });
2924
+ }, [t]), l = [t, i];
2925
+ return /* @__PURE__ */ k.jsx(xe.Provider, { value: l, ...e });
2925
2926
  };
2926
2927
  globalThis.Prism = o, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js"), import("./prism-csharp.min-Yizuc34Y.js"), import("./prism-objectivec.min-BXSWqpJJ.js");
2927
2928
  const Pt = ({
2928
2929
  copyable: e = !0,
2929
2930
  ...t
2930
2931
  }) => {
2931
- const [r] = $t(), [l, i] = X(!1);
2932
+ const [r] = $t(), [i, l] = X(!1);
2932
2933
  return t.code ? /* @__PURE__ */ k.jsx(jt, { theme: r ? ae.vsDark : ae.github, ...t, children: ({ className: b, style: c, tokens: d, getLineProps: p, getTokenProps: y }) => /* @__PURE__ */ k.jsxs(
2933
2934
  "pre",
2934
2935
  {
@@ -2947,14 +2948,14 @@ const Pt = ({
2947
2948
  type: "button",
2948
2949
  "aria-label": "Copy code",
2949
2950
  className: "absolute top-1.5 right-3 p-3 opacity-0 group-hover:opacity-100 transition hover:bg-zinc-500/10 hover:dark:bg-zinc-700/25 rounded-lg text-sm text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400",
2950
- disabled: l,
2951
+ disabled: i,
2951
2952
  onClick: () => {
2952
- i(!0), navigator.clipboard.writeText(
2953
+ l(!0), navigator.clipboard.writeText(
2953
2954
  d.map((h) => h.map(({ content: g }) => g).join("")).join(`
2954
2955
  `)
2955
- ), setTimeout(() => i(!1), 2e3);
2956
+ ), setTimeout(() => l(!1), 2e3);
2956
2957
  },
2957
- children: l ? /* @__PURE__ */ k.jsx(_e, { className: "text-emerald-600", size: 18 }) : /* @__PURE__ */ k.jsx(Re, { size: 18 })
2958
+ children: i ? /* @__PURE__ */ k.jsx(_e, { className: "text-emerald-600", size: 18 }) : /* @__PURE__ */ k.jsx(Re, { size: 18 })
2958
2959
  }
2959
2960
  ),
2960
2961
  t.showLanguageIndicator && /* @__PURE__ */ k.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t.language }),
@@ -2962,7 +2963,7 @@ const Pt = ({
2962
2963
  ]
2963
2964
  }
2964
2965
  ) }) : null;
2965
- }, qt = {
2966
+ }, Ht = {
2966
2967
  img: (e) => /\.(mp4|webm|mov|avi)$/.test(e.src ?? "") ? /* @__PURE__ */ k.jsx("video", { src: e.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ k.jsx("img", { ...e, className: "rounded-md" }),
2967
2968
  h1: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 1, id: t, children: e }),
2968
2969
  h2: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 2, id: t, children: e }),
@@ -2981,11 +2982,11 @@ const Pt = ({
2981
2982
  pre: ({ children: e }) => /* @__PURE__ */ k.jsx(k.Fragment, { children: e }),
2982
2983
  code: ({ className: e, children: t, ...r }) => {
2983
2984
  if (!r.inline) {
2984
- const i = e == null ? void 0 : e.match(/language?-(\w+)/);
2985
+ const l = e == null ? void 0 : e.match(/language?-(\w+)/);
2985
2986
  return /* @__PURE__ */ k.jsx(
2986
2987
  Pt,
2987
2988
  {
2988
- language: (i == null ? void 0 : i[1]) ?? "markup",
2989
+ language: (l == null ? void 0 : l[1]) ?? "markup",
2989
2990
  className: "rounded-xl overflow-x-auto p-4 border border-border dark:!bg-foreground/10 dark:border-transparent",
2990
2991
  showLanguageIndicator: !0,
2991
2992
  code: String(t).trim()
@@ -3007,10 +3008,10 @@ const Pt = ({
3007
3008
  export {
3008
3009
  j as C,
3009
3010
  P as H,
3010
- qt as M,
3011
+ Ht as M,
3011
3012
  Pt as S,
3012
- Zt as T,
3013
- Gt as V,
3013
+ qt as T,
3014
+ Zt as V,
3014
3015
  Ne as a,
3015
3016
  Ce as b,
3016
3017
  $t as u