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