@oscloudlab/knowledge-card 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (673) hide show
  1. package/README.md +4 -2
  2. package/dist/abap-Cfp0fjYn.js +93 -0
  3. package/dist/abap-Cfp0fjYn.js.map +1 -0
  4. package/dist/abnf-FKTf_Ovx.js +96 -0
  5. package/dist/abnf-FKTf_Ovx.js.map +1 -0
  6. package/dist/actionscript-CumNIZH6.js +58 -0
  7. package/dist/actionscript-CumNIZH6.js.map +1 -0
  8. package/dist/ada-D8_m6Ahq.js +61 -0
  9. package/dist/ada-D8_m6Ahq.js.map +1 -0
  10. package/dist/agda-Cg6uD_n1.js +65 -0
  11. package/dist/agda-Cg6uD_n1.js.map +1 -0
  12. package/dist/al-CQsmgJAM.js +65 -0
  13. package/dist/al-CQsmgJAM.js.map +1 -0
  14. package/dist/antlr4-Ck9aVoJH.js +106 -0
  15. package/dist/antlr4-Ck9aVoJH.js.map +1 -0
  16. package/dist/apacheconf-DBGfZedy.js +89 -0
  17. package/dist/apacheconf-DBGfZedy.js.map +1 -0
  18. package/dist/apex-D4r2Amvo.js +114 -0
  19. package/dist/apex-D4r2Amvo.js.map +1 -0
  20. package/dist/apl-BM6mKY64.js +74 -0
  21. package/dist/apl-BM6mKY64.js.map +1 -0
  22. package/dist/applescript-DujfJxru.js +59 -0
  23. package/dist/applescript-DujfJxru.js.map +1 -0
  24. package/dist/aql-DTKzt4rD.js +91 -0
  25. package/dist/aql-DTKzt4rD.js.map +1 -0
  26. package/dist/arduino-DQpK0mOy.js +51 -0
  27. package/dist/arduino-DQpK0mOy.js.map +1 -0
  28. package/dist/arff-CZyZx7M1.js +52 -0
  29. package/dist/arff-CZyZx7M1.js.map +1 -0
  30. package/dist/asciidoc-BjLaQWhN.js +261 -0
  31. package/dist/asciidoc-BjLaQWhN.js.map +1 -0
  32. package/dist/asm6502-DvgLdsYO.js +71 -0
  33. package/dist/asm6502-DvgLdsYO.js.map +1 -0
  34. package/dist/asmatmel-1aYhJV3z.js +83 -0
  35. package/dist/asmatmel-1aYhJV3z.js.map +1 -0
  36. package/dist/aspnet-Dv_vDfSt.js +96 -0
  37. package/dist/aspnet-Dv_vDfSt.js.map +1 -0
  38. package/dist/autohotkey-Bjc9k_aB.js +73 -0
  39. package/dist/autohotkey-Bjc9k_aB.js.gz +0 -0
  40. package/dist/autohotkey-Bjc9k_aB.js.map +1 -0
  41. package/dist/autoit-B21cn0xq.js +76 -0
  42. package/dist/autoit-B21cn0xq.js.map +1 -0
  43. package/dist/avisynth-CJF7qhVC.js +209 -0
  44. package/dist/avisynth-CJF7qhVC.js.map +1 -0
  45. package/dist/avro-idl-Bl1Ik3zn.js +84 -0
  46. package/dist/avro-idl-Bl1Ik3zn.js.map +1 -0
  47. package/dist/bash-ClZjbGxa.js +234 -0
  48. package/dist/bash-ClZjbGxa.js.gz +0 -0
  49. package/dist/bash-ClZjbGxa.js.map +1 -0
  50. package/dist/bash-Dv2YHHn4.js +31 -0
  51. package/dist/bash-Dv2YHHn4.js.map +1 -0
  52. package/dist/basic-CC_Y_pyN.js +33 -0
  53. package/dist/basic-CC_Y_pyN.js.map +1 -0
  54. package/dist/basic-yzjTqvn0.js +31 -0
  55. package/dist/basic-yzjTqvn0.js.map +1 -0
  56. package/dist/batch-DUGXaAjg.js +137 -0
  57. package/dist/batch-DUGXaAjg.js.map +1 -0
  58. package/dist/bbcode-CSHwieWu.js +70 -0
  59. package/dist/bbcode-CSHwieWu.js.map +1 -0
  60. package/dist/bicep-BwxVpPmv.js +112 -0
  61. package/dist/bicep-BwxVpPmv.js.map +1 -0
  62. package/dist/birb-Dp5KrheP.js +63 -0
  63. package/dist/birb-Dp5KrheP.js.map +1 -0
  64. package/dist/bison-B1WUA3Lb.js +83 -0
  65. package/dist/bison-B1WUA3Lb.js.map +1 -0
  66. package/dist/bnf-CkBBKIdz.js +62 -0
  67. package/dist/bnf-CkBBKIdz.js.map +1 -0
  68. package/dist/brainfuck-BHZ27ioU.js +62 -0
  69. package/dist/brainfuck-BHZ27ioU.js.map +1 -0
  70. package/dist/brightscript-2BFaZ-4V.js +86 -0
  71. package/dist/brightscript-2BFaZ-4V.js.map +1 -0
  72. package/dist/bro-DjlYNDbW.js +69 -0
  73. package/dist/bro-DjlYNDbW.js.map +1 -0
  74. package/dist/bsl-ByW2HOhn.js +111 -0
  75. package/dist/bsl-ByW2HOhn.js.map +1 -0
  76. package/dist/c-BM9zQzkN.js +92 -0
  77. package/dist/c-BM9zQzkN.js.map +1 -0
  78. package/dist/c-cAp-Ncnf.js +31 -0
  79. package/dist/c-cAp-Ncnf.js.map +1 -0
  80. package/dist/cfscript-ClYSy-ov.js +83 -0
  81. package/dist/cfscript-ClYSy-ov.js.map +1 -0
  82. package/dist/chaiscript-CgvIxGxT.js +100 -0
  83. package/dist/chaiscript-CgvIxGxT.js.map +1 -0
  84. package/dist/cil-e0ortwSX.js +61 -0
  85. package/dist/cil-e0ortwSX.js.map +1 -0
  86. package/dist/clike-Dqh9Naar.js +66 -0
  87. package/dist/clike-Dqh9Naar.js.map +1 -0
  88. package/dist/clojure-DlFxB4rb.js +72 -0
  89. package/dist/clojure-DlFxB4rb.js.map +1 -0
  90. package/dist/cmake-Bb1ushD1.js +71 -0
  91. package/dist/cmake-Bb1ushD1.js.gz +0 -0
  92. package/dist/cmake-Bb1ushD1.js.map +1 -0
  93. package/dist/cobol-DlzbU0dJ.js +91 -0
  94. package/dist/cobol-DlzbU0dJ.js.map +1 -0
  95. package/dist/coffeescript-BLrcg8zK.js +125 -0
  96. package/dist/coffeescript-BLrcg8zK.js.map +1 -0
  97. package/dist/concurnas-CODY3JnQ.js +101 -0
  98. package/dist/concurnas-CODY3JnQ.js.map +1 -0
  99. package/dist/coq-DI-eGbiB.js +93 -0
  100. package/dist/coq-DI-eGbiB.js.map +1 -0
  101. package/dist/core-QGfjITFA.js +2575 -0
  102. package/dist/core-QGfjITFA.js.gz +0 -0
  103. package/dist/core-QGfjITFA.js.map +1 -0
  104. package/dist/cpp-B7WH6XXz.js +126 -0
  105. package/dist/cpp-B7WH6XXz.js.map +1 -0
  106. package/dist/cpp-D9y2ziiJ.js +31 -0
  107. package/dist/cpp-D9y2ziiJ.js.map +1 -0
  108. package/dist/crystal-DwMwycbo.js +97 -0
  109. package/dist/crystal-DwMwycbo.js.map +1 -0
  110. package/dist/csharp-CYOFBHK2.js +31 -0
  111. package/dist/csharp-CYOFBHK2.js.map +1 -0
  112. package/dist/csharp-iD8vdCRX.js +423 -0
  113. package/dist/csharp-iD8vdCRX.js.gz +0 -0
  114. package/dist/csharp-iD8vdCRX.js.map +1 -0
  115. package/dist/cshtml-BReYgwaV.js +153 -0
  116. package/dist/cshtml-BReYgwaV.js.map +1 -0
  117. package/dist/csp-DVgyVGcW.js +99 -0
  118. package/dist/csp-DVgyVGcW.js.map +1 -0
  119. package/dist/css-DTluOMkY.js +99 -0
  120. package/dist/css-DTluOMkY.js.map +1 -0
  121. package/dist/css-extras-DN54TOmZ.js +152 -0
  122. package/dist/css-extras-DN54TOmZ.js.map +1 -0
  123. package/dist/csv-T3FMhbPI.js +46 -0
  124. package/dist/csv-T3FMhbPI.js.map +1 -0
  125. package/dist/cypher-BoDFwlqd.js +74 -0
  126. package/dist/cypher-BoDFwlqd.js.map +1 -0
  127. package/dist/d-Bndf98Nv.js +121 -0
  128. package/dist/d-Bndf98Nv.js.map +1 -0
  129. package/dist/dart-jl0mTVlC.js +115 -0
  130. package/dist/dart-jl0mTVlC.js.map +1 -0
  131. package/dist/dataweave-Dt9eUXRS.js +82 -0
  132. package/dist/dataweave-Dt9eUXRS.js.map +1 -0
  133. package/dist/dax-BvxTEJli.js +69 -0
  134. package/dist/dax-BvxTEJli.js.map +1 -0
  135. package/dist/dhall-C0GoopUA.js +105 -0
  136. package/dist/dhall-C0GoopUA.js.map +1 -0
  137. package/dist/diff-CqT5EC82.js +93 -0
  138. package/dist/diff-CqT5EC82.js.map +1 -0
  139. package/dist/django-BjABROZv.js +95 -0
  140. package/dist/django-BjABROZv.js.map +1 -0
  141. package/dist/dns-zone-file-BfTi9SPs.js +74 -0
  142. package/dist/dns-zone-file-BfTi9SPs.js.map +1 -0
  143. package/dist/docker-DDTt3tR_.js +143 -0
  144. package/dist/docker-DDTt3tR_.js.map +1 -0
  145. package/dist/dot-DUY9dVTQ.js +113 -0
  146. package/dist/dot-DUY9dVTQ.js.map +1 -0
  147. package/dist/ebnf-BxqkoGjT.js +62 -0
  148. package/dist/ebnf-BxqkoGjT.js.map +1 -0
  149. package/dist/editorconfig-DzKbkLiP.js +69 -0
  150. package/dist/editorconfig-DzKbkLiP.js.map +1 -0
  151. package/dist/eiffel-BZwp--FL.js +76 -0
  152. package/dist/eiffel-BZwp--FL.js.map +1 -0
  153. package/dist/ejs-C0LfHd6n.js +70 -0
  154. package/dist/ejs-C0LfHd6n.js.map +1 -0
  155. package/dist/elixir-UYcL6AXW.js +139 -0
  156. package/dist/elixir-UYcL6AXW.js.map +1 -0
  157. package/dist/elm-C9_r2OCV.js +87 -0
  158. package/dist/elm-C9_r2OCV.js.map +1 -0
  159. package/dist/erb-D5FMQg7S.js +73 -0
  160. package/dist/erb-D5FMQg7S.js.map +1 -0
  161. package/dist/erlang-CblSVls5.js +85 -0
  162. package/dist/erlang-CblSVls5.js.map +1 -0
  163. package/dist/etlua-Cao9i-Hl.js +71 -0
  164. package/dist/etlua-Cao9i-Hl.js.map +1 -0
  165. package/dist/excel-formula-BPoAvRWl.js +105 -0
  166. package/dist/excel-formula-BPoAvRWl.js.map +1 -0
  167. package/dist/factor-eWYbYxdO.js +964 -0
  168. package/dist/factor-eWYbYxdO.js.gz +0 -0
  169. package/dist/factor-eWYbYxdO.js.map +1 -0
  170. package/dist/false-B8KV5uY_.js +69 -0
  171. package/dist/false-B8KV5uY_.js.map +1 -0
  172. package/dist/firestore-security-rules-B1NAnSrT.js +78 -0
  173. package/dist/firestore-security-rules-B1NAnSrT.js.map +1 -0
  174. package/dist/flow-CYR7efwS.js +74 -0
  175. package/dist/flow-CYR7efwS.js.map +1 -0
  176. package/dist/fortran-DtOrpwzh.js +82 -0
  177. package/dist/fortran-DtOrpwzh.js.map +1 -0
  178. package/dist/fsharp-B_X0iD2N.js +117 -0
  179. package/dist/fsharp-B_X0iD2N.js.map +1 -0
  180. package/dist/ftl-Djg69CSP.js +160 -0
  181. package/dist/ftl-Djg69CSP.js.map +1 -0
  182. package/dist/gap-uDi4CfkY.js +88 -0
  183. package/dist/gap-uDi4CfkY.js.map +1 -0
  184. package/dist/gcode-D5YoXoie.js +58 -0
  185. package/dist/gcode-D5YoXoie.js.map +1 -0
  186. package/dist/gdscript-BfUuae9R.js +69 -0
  187. package/dist/gdscript-BfUuae9R.js.map +1 -0
  188. package/dist/gedcom-B8lxfIBQ.js +70 -0
  189. package/dist/gedcom-B8lxfIBQ.js.map +1 -0
  190. package/dist/gherkin-CanPsj5V.js +124 -0
  191. package/dist/gherkin-CanPsj5V.js.gz +0 -0
  192. package/dist/gherkin-CanPsj5V.js.map +1 -0
  193. package/dist/git-Cem60Klr.js +105 -0
  194. package/dist/git-Cem60Klr.js.map +1 -0
  195. package/dist/glsl-BzqIJKew.js +48 -0
  196. package/dist/glsl-BzqIJKew.js.map +1 -0
  197. package/dist/gml-Ci7GQXES.js +49 -0
  198. package/dist/gml-Ci7GQXES.js.map +1 -0
  199. package/dist/gn-CaiRkpcH.js +87 -0
  200. package/dist/gn-CaiRkpcH.js.map +1 -0
  201. package/dist/go-Chpyf2Ol.js +68 -0
  202. package/dist/go-Chpyf2Ol.js.map +1 -0
  203. package/dist/go-module-DFm2DXA5.js +64 -0
  204. package/dist/go-module-DFm2DXA5.js.map +1 -0
  205. package/dist/graphql-CyglQi10.js +189 -0
  206. package/dist/graphql-CyglQi10.js.map +1 -0
  207. package/dist/groovy-DyYa2Q97.js +100 -0
  208. package/dist/groovy-DyYa2Q97.js.map +1 -0
  209. package/dist/haml-DMNl1y2c.js +187 -0
  210. package/dist/haml-DMNl1y2c.js.map +1 -0
  211. package/dist/handlebars-DjusewrR.js +86 -0
  212. package/dist/handlebars-DjusewrR.js.map +1 -0
  213. package/dist/haskell-D7nTVCb2.js +31 -0
  214. package/dist/haskell-D7nTVCb2.js.map +1 -0
  215. package/dist/haskell-JxV6F6a2.js +81 -0
  216. package/dist/haskell-JxV6F6a2.js.map +1 -0
  217. package/dist/haxe-BQPNsaSA.js +117 -0
  218. package/dist/haxe-BQPNsaSA.js.map +1 -0
  219. package/dist/hcl-BFcSNAbz.js +102 -0
  220. package/dist/hcl-BFcSNAbz.js.map +1 -0
  221. package/dist/hlsl-CWAVevgo.js +64 -0
  222. package/dist/hlsl-CWAVevgo.js.map +1 -0
  223. package/dist/hoon-DD1GwSyQ.js +56 -0
  224. package/dist/hoon-DD1GwSyQ.js.map +1 -0
  225. package/dist/hpkp-BXgITrts.js +50 -0
  226. package/dist/hpkp-BXgITrts.js.map +1 -0
  227. package/dist/hsts-CvhvgkPH.js +50 -0
  228. package/dist/hsts-CvhvgkPH.js.map +1 -0
  229. package/dist/http-CaopWVDH.js +170 -0
  230. package/dist/http-CaopWVDH.js.map +1 -0
  231. package/dist/ichigojam-B2n3nEtO.js +55 -0
  232. package/dist/ichigojam-B2n3nEtO.js.map +1 -0
  233. package/dist/icon-C2Tsx7bx.js +62 -0
  234. package/dist/icon-C2Tsx7bx.js.map +1 -0
  235. package/dist/icu-message-format-Di068T_I.js +184 -0
  236. package/dist/icu-message-format-Di068T_I.js.map +1 -0
  237. package/dist/idris-0lPcDKiH.js +62 -0
  238. package/dist/idris-0lPcDKiH.js.map +1 -0
  239. package/dist/iecst-Dr9NKVuq.js +74 -0
  240. package/dist/iecst-Dr9NKVuq.js.map +1 -0
  241. package/dist/ignore-MZ20GOE6.js +63 -0
  242. package/dist/ignore-MZ20GOE6.js.map +1 -0
  243. package/dist/index-Cdd6oM-q.js +167852 -0
  244. package/dist/index-Cdd6oM-q.js.gz +0 -0
  245. package/dist/index-Cdd6oM-q.js.map +1 -0
  246. package/dist/inform7-Cv9KA6Zb.js +101 -0
  247. package/dist/inform7-Cv9KA6Zb.js.map +1 -0
  248. package/dist/ini-DuHoOm8Y.js +82 -0
  249. package/dist/ini-DuHoOm8Y.js.map +1 -0
  250. package/dist/io-BH3DxprO.js +64 -0
  251. package/dist/io-BH3DxprO.js.map +1 -0
  252. package/dist/j-DbaWHNVB.js +70 -0
  253. package/dist/j-DbaWHNVB.js.map +1 -0
  254. package/dist/java-5aEEoeSl.js +31 -0
  255. package/dist/java-5aEEoeSl.js.map +1 -0
  256. package/dist/java-M3oaxAC_.js +107 -0
  257. package/dist/java-M3oaxAC_.js.map +1 -0
  258. package/dist/javadoc-D2aGgPp2.js +133 -0
  259. package/dist/javadoc-D2aGgPp2.js.map +1 -0
  260. package/dist/javadoclike-BdPr_VnG.js +83 -0
  261. package/dist/javadoclike-BdPr_VnG.js.map +1 -0
  262. package/dist/javadoclike-Bha2ZL8T.js +31 -0
  263. package/dist/javadoclike-Bha2ZL8T.js.map +1 -0
  264. package/dist/javascript-CCmiAiN7.js +166 -0
  265. package/dist/javascript-CCmiAiN7.js.map +1 -0
  266. package/dist/javastacktrace-Ca6rhDmr.js +176 -0
  267. package/dist/javastacktrace-Ca6rhDmr.js.map +1 -0
  268. package/dist/jexl-DAgMUZy4.js +56 -0
  269. package/dist/jexl-DAgMUZy4.js.map +1 -0
  270. package/dist/jolie-Qbbnf2Y8.js +82 -0
  271. package/dist/jolie-Qbbnf2Y8.js.map +1 -0
  272. package/dist/jq-EEM9FnQy.js +112 -0
  273. package/dist/jq-EEM9FnQy.js.map +1 -0
  274. package/dist/js-extras-CFriKWFZ.js +169 -0
  275. package/dist/js-extras-CFriKWFZ.js.map +1 -0
  276. package/dist/js-templates-CJ8FEAj5.js +262 -0
  277. package/dist/js-templates-CJ8FEAj5.js.map +1 -0
  278. package/dist/jsdoc-DijqtatY.js +131 -0
  279. package/dist/jsdoc-DijqtatY.js.map +1 -0
  280. package/dist/json-BgFPXYLn.js +41 -0
  281. package/dist/json-BgFPXYLn.js.map +1 -0
  282. package/dist/json-D3q_XThH.js +31 -0
  283. package/dist/json-D3q_XThH.js.map +1 -0
  284. package/dist/json5-CoA-xk2S.js +65 -0
  285. package/dist/json5-CoA-xk2S.js.map +1 -0
  286. package/dist/jsonp-DLkSVFJy.js +51 -0
  287. package/dist/jsonp-DLkSVFJy.js.map +1 -0
  288. package/dist/jsstacktrace-D-msLyV4.js +83 -0
  289. package/dist/jsstacktrace-D-msLyV4.js.map +1 -0
  290. package/dist/jsx-C1qRCugV.js +142 -0
  291. package/dist/jsx-C1qRCugV.js.map +1 -0
  292. package/dist/jsx-DcN9MSyC.js +31 -0
  293. package/dist/jsx-DcN9MSyC.js.map +1 -0
  294. package/dist/julia-DeXfzNLZ.js +77 -0
  295. package/dist/julia-DeXfzNLZ.js.map +1 -0
  296. package/dist/keepalived-CrTH7wjB.js +90 -0
  297. package/dist/keepalived-CrTH7wjB.js.map +1 -0
  298. package/dist/keyman-BAoDklhc.js +85 -0
  299. package/dist/keyman-BAoDklhc.js.map +1 -0
  300. package/dist/knowledge-card.es.js +5 -0
  301. package/dist/knowledge-card.es.js.map +1 -0
  302. package/dist/kotlin-RTqkPnSA.js +123 -0
  303. package/dist/kotlin-RTqkPnSA.js.map +1 -0
  304. package/dist/kumir-DZat-rOT.js +130 -0
  305. package/dist/kumir-DZat-rOT.js.map +1 -0
  306. package/dist/kusto-Rp4enH3h.js +80 -0
  307. package/dist/kusto-Rp4enH3h.js.map +1 -0
  308. package/dist/latex-DNFHXG7b.js +104 -0
  309. package/dist/latex-DNFHXG7b.js.map +1 -0
  310. package/dist/latte-CSKquiW8.js +116 -0
  311. package/dist/latte-CSKquiW8.js.map +1 -0
  312. package/dist/less-AcrwgCri.js +85 -0
  313. package/dist/less-AcrwgCri.js.map +1 -0
  314. package/dist/lilypond-D9l9sq_L.js +117 -0
  315. package/dist/lilypond-D9l9sq_L.js.map +1 -0
  316. package/dist/liquid-Dkf7-nlZ.js +112 -0
  317. package/dist/liquid-Dkf7-nlZ.js.map +1 -0
  318. package/dist/lisp-6nO02uCM.js +218 -0
  319. package/dist/lisp-6nO02uCM.js.map +1 -0
  320. package/dist/livescript-d9m7SG0F.js +160 -0
  321. package/dist/livescript-d9m7SG0F.js.map +1 -0
  322. package/dist/llvm-CD37xxmR.js +61 -0
  323. package/dist/llvm-CD37xxmR.js.map +1 -0
  324. package/dist/log-VEfJitaY.js +142 -0
  325. package/dist/log-VEfJitaY.js.map +1 -0
  326. package/dist/lolcode-DsVapdHo.js +90 -0
  327. package/dist/lolcode-DsVapdHo.js.map +1 -0
  328. package/dist/lua-J1sbiTxE.js +31 -0
  329. package/dist/lua-J1sbiTxE.js.map +1 -0
  330. package/dist/lua-RL-GTNsS.js +36 -0
  331. package/dist/lua-RL-GTNsS.js.map +1 -0
  332. package/dist/magma-DHxwMnrh.js +72 -0
  333. package/dist/magma-DHxwMnrh.js.map +1 -0
  334. package/dist/makefile-D9bOM9tF.js +72 -0
  335. package/dist/makefile-D9bOM9tF.js.map +1 -0
  336. package/dist/markdown-BSMT-VS7.js +403 -0
  337. package/dist/markdown-BSMT-VS7.js.gz +0 -0
  338. package/dist/markdown-BSMT-VS7.js.map +1 -0
  339. package/dist/markup-Bqvqt98t.js +215 -0
  340. package/dist/markup-Bqvqt98t.js.map +1 -0
  341. package/dist/markup-templating-DYVJBYwf.js +31 -0
  342. package/dist/markup-templating-DYVJBYwf.js.map +1 -0
  343. package/dist/markup-templating-hY-QSL53.js +114 -0
  344. package/dist/markup-templating-hY-QSL53.js.map +1 -0
  345. package/dist/matlab-BXBO4HvY.js +55 -0
  346. package/dist/matlab-BXBO4HvY.js.map +1 -0
  347. package/dist/maxscript-B9Wkt9gS.js +106 -0
  348. package/dist/maxscript-B9Wkt9gS.js.map +1 -0
  349. package/dist/mel-DzVrwSvo.js +84 -0
  350. package/dist/mel-DzVrwSvo.js.gz +0 -0
  351. package/dist/mel-DzVrwSvo.js.map +1 -0
  352. package/dist/mermaid-Czy7xu8b.js +146 -0
  353. package/dist/mermaid-Czy7xu8b.js.map +1 -0
  354. package/dist/mizar-B__trUOc.js +54 -0
  355. package/dist/mizar-B__trUOc.js.map +1 -0
  356. package/dist/mongodb-D4BU38GZ.js +334 -0
  357. package/dist/mongodb-D4BU38GZ.js.map +1 -0
  358. package/dist/monkey-BfN3KHxQ.js +70 -0
  359. package/dist/monkey-BfN3KHxQ.js.map +1 -0
  360. package/dist/moonscript-Czhm161R.js +98 -0
  361. package/dist/moonscript-Czhm161R.js.map +1 -0
  362. package/dist/n1ql-DVNXi6hD.js +64 -0
  363. package/dist/n1ql-DVNXi6hD.js.map +1 -0
  364. package/dist/n4js-Cfstl6Ac.js +54 -0
  365. package/dist/n4js-Cfstl6Ac.js.map +1 -0
  366. package/dist/nand2tetris-hdl-B7HC94zZ.js +51 -0
  367. package/dist/nand2tetris-hdl-B7HC94zZ.js.map +1 -0
  368. package/dist/naniscript-CIypYI5Y.js +190 -0
  369. package/dist/naniscript-CIypYI5Y.js.map +1 -0
  370. package/dist/nasm-DbAe9Bp_.js +66 -0
  371. package/dist/nasm-DbAe9Bp_.js.map +1 -0
  372. package/dist/neon-ETXY_3sS.js +82 -0
  373. package/dist/neon-ETXY_3sS.js.map +1 -0
  374. package/dist/nevod-eCi5zt3g.js +167 -0
  375. package/dist/nevod-eCi5zt3g.js.map +1 -0
  376. package/dist/nginx-CUfBlJ_4.js +91 -0
  377. package/dist/nginx-CUfBlJ_4.js.map +1 -0
  378. package/dist/nim-bGnOtnQ9.js +84 -0
  379. package/dist/nim-bGnOtnQ9.js.map +1 -0
  380. package/dist/nix--T1_wsUf.js +79 -0
  381. package/dist/nix--T1_wsUf.js.map +1 -0
  382. package/dist/nsis-CE9xzj15.js +67 -0
  383. package/dist/nsis-CE9xzj15.js.map +1 -0
  384. package/dist/objectivec-A6iAVkeB.js +55 -0
  385. package/dist/objectivec-A6iAVkeB.js.map +1 -0
  386. package/dist/ocaml-BC-lHJZA.js +97 -0
  387. package/dist/ocaml-BC-lHJZA.js.map +1 -0
  388. package/dist/opencl-CnCCtMKL.js +97 -0
  389. package/dist/opencl-CnCCtMKL.js.gz +0 -0
  390. package/dist/opencl-CnCCtMKL.js.map +1 -0
  391. package/dist/openqasm-Dt9JdOFJ.js +60 -0
  392. package/dist/openqasm-Dt9JdOFJ.js.map +1 -0
  393. package/dist/oz-aFL2Iy8B.js +70 -0
  394. package/dist/oz-aFL2Iy8B.js.map +1 -0
  395. package/dist/parigp-CUhy_bwG.js +91 -0
  396. package/dist/parigp-CUhy_bwG.js.map +1 -0
  397. package/dist/parser-MpmiC_7b.js +116 -0
  398. package/dist/parser-MpmiC_7b.js.map +1 -0
  399. package/dist/pascal-CiRpum9a.js +106 -0
  400. package/dist/pascal-CiRpum9a.js.map +1 -0
  401. package/dist/pascaligo-BFBF5rf7.js +128 -0
  402. package/dist/pascaligo-BFBF5rf7.js.map +1 -0
  403. package/dist/pcaxis-B3ZWwa4E.js +94 -0
  404. package/dist/pcaxis-B3ZWwa4E.js.map +1 -0
  405. package/dist/peoplecode-CnXb4DxE.js +84 -0
  406. package/dist/peoplecode-CnXb4DxE.js.map +1 -0
  407. package/dist/perl-B5ZO0bi4.js +173 -0
  408. package/dist/perl-B5ZO0bi4.js.map +1 -0
  409. package/dist/php-BBLqus8v.js +347 -0
  410. package/dist/php-BBLqus8v.js.gz +0 -0
  411. package/dist/php-BBLqus8v.js.map +1 -0
  412. package/dist/php-extras-thTLo46T.js +59 -0
  413. package/dist/php-extras-thTLo46T.js.map +1 -0
  414. package/dist/php-qWlIPrSK.js +31 -0
  415. package/dist/php-qWlIPrSK.js.map +1 -0
  416. package/dist/phpdoc-Zd1gQNLg.js +74 -0
  417. package/dist/phpdoc-Zd1gQNLg.js.map +1 -0
  418. package/dist/plsql-oivgB6a0.js +61 -0
  419. package/dist/plsql-oivgB6a0.js.map +1 -0
  420. package/dist/powerquery-BgH699y4.js +94 -0
  421. package/dist/powerquery-BgH699y4.js.map +1 -0
  422. package/dist/powershell-D4c11US9.js +97 -0
  423. package/dist/powershell-D4c11US9.js.map +1 -0
  424. package/dist/processing-Dxz0m36k.js +56 -0
  425. package/dist/processing-Dxz0m36k.js.map +1 -0
  426. package/dist/prolog-B6WRUPN0.js +61 -0
  427. package/dist/prolog-B6WRUPN0.js.map +1 -0
  428. package/dist/promql-F9ca9EAm.js +132 -0
  429. package/dist/promql-F9ca9EAm.js.map +1 -0
  430. package/dist/properties-CRZCME4s.js +51 -0
  431. package/dist/properties-CRZCME4s.js.map +1 -0
  432. package/dist/protobuf-C2f7QC99.js +81 -0
  433. package/dist/protobuf-C2f7QC99.js.map +1 -0
  434. package/dist/psl-BuM8q5hK.js +77 -0
  435. package/dist/psl-BuM8q5hK.js.map +1 -0
  436. package/dist/pug-D8RezS0m.js +227 -0
  437. package/dist/pug-D8RezS0m.js.map +1 -0
  438. package/dist/puppet-CB-VBKbq.js +177 -0
  439. package/dist/puppet-CB-VBKbq.js.map +1 -0
  440. package/dist/pure-CSevquAM.js +130 -0
  441. package/dist/pure-CSevquAM.js.map +1 -0
  442. package/dist/purebasic-DlD9-uDd.js +100 -0
  443. package/dist/purebasic-DlD9-uDd.js.map +1 -0
  444. package/dist/purescript-Bb15-_Rv.js +72 -0
  445. package/dist/purescript-Bb15-_Rv.js.map +1 -0
  446. package/dist/python-Bg8LtX77.js +105 -0
  447. package/dist/python-Bg8LtX77.js.map +1 -0
  448. package/dist/q-DF7uK_-J.js +92 -0
  449. package/dist/q-DF7uK_-J.js.map +1 -0
  450. package/dist/qml-x1CtwKwT.js +117 -0
  451. package/dist/qml-x1CtwKwT.js.map +1 -0
  452. package/dist/qore-HS8qEv8g.js +62 -0
  453. package/dist/qore-HS8qEv8g.js.map +1 -0
  454. package/dist/qsharp-rtfe_NYv.js +144 -0
  455. package/dist/qsharp-rtfe_NYv.js.map +1 -0
  456. package/dist/r-CqF54G5x.js +64 -0
  457. package/dist/r-CqF54G5x.js.map +1 -0
  458. package/dist/racket-CCoPKUn5.js +61 -0
  459. package/dist/racket-CCoPKUn5.js.map +1 -0
  460. package/dist/reason-CHBEgDgk.js +65 -0
  461. package/dist/reason-CHBEgDgk.js.map +1 -0
  462. package/dist/regex-wHof4onn.js +139 -0
  463. package/dist/regex-wHof4onn.js.map +1 -0
  464. package/dist/rego-ClQwoJuz.js +67 -0
  465. package/dist/rego-ClQwoJuz.js.map +1 -0
  466. package/dist/renpy-CJmFfTdl.js +61 -0
  467. package/dist/renpy-CJmFfTdl.js.map +1 -0
  468. package/dist/rest-Dky1Xv7c.js +240 -0
  469. package/dist/rest-Dky1Xv7c.js.map +1 -0
  470. package/dist/rip-BRcFUXbs.js +71 -0
  471. package/dist/rip-BRcFUXbs.js.map +1 -0
  472. package/dist/roboconf-5wCnh43b.js +69 -0
  473. package/dist/roboconf-5wCnh43b.js.map +1 -0
  474. package/dist/robotframework-DdHKRAKu.js +139 -0
  475. package/dist/robotframework-DdHKRAKu.js.map +1 -0
  476. package/dist/ruby-BhyE9auN.js +193 -0
  477. package/dist/ruby-BhyE9auN.js.map +1 -0
  478. package/dist/ruby-DU9_tFYO.js +31 -0
  479. package/dist/ruby-DU9_tFYO.js.map +1 -0
  480. package/dist/rust-DKq7JDkC.js +163 -0
  481. package/dist/rust-DKq7JDkC.js.map +1 -0
  482. package/dist/sas-Cg6Nq1SA.js +388 -0
  483. package/dist/sas-Cg6Nq1SA.js.gz +0 -0
  484. package/dist/sas-Cg6Nq1SA.js.map +1 -0
  485. package/dist/sass-DL-aJtj8.js +111 -0
  486. package/dist/sass-DL-aJtj8.js.map +1 -0
  487. package/dist/scala-WHMwIvSH.js +92 -0
  488. package/dist/scala-WHMwIvSH.js.map +1 -0
  489. package/dist/scheme-BIkXa0-K.js +128 -0
  490. package/dist/scheme-BIkXa0-K.js.map +1 -0
  491. package/dist/scheme-_Y1FSeBk.js +31 -0
  492. package/dist/scheme-_Y1FSeBk.js.map +1 -0
  493. package/dist/scss-CQBD009x.js +119 -0
  494. package/dist/scss-CQBD009x.js.map +1 -0
  495. package/dist/shell-session-B_8HhSQY.js +103 -0
  496. package/dist/shell-session-B_8HhSQY.js.map +1 -0
  497. package/dist/smali-3ybSF7DU.js +121 -0
  498. package/dist/smali-3ybSF7DU.js.map +1 -0
  499. package/dist/smalltalk-7LMs95g7.js +80 -0
  500. package/dist/smalltalk-7LMs95g7.js.map +1 -0
  501. package/dist/smarty-CNnHhPeW.js +171 -0
  502. package/dist/smarty-CNnHhPeW.js.map +1 -0
  503. package/dist/sml-D0AOYgn7.js +102 -0
  504. package/dist/sml-D0AOYgn7.js.map +1 -0
  505. package/dist/solidity-wNxM4SRR.js +61 -0
  506. package/dist/solidity-wNxM4SRR.js.map +1 -0
  507. package/dist/solution-file-DGyaXqLI.js +89 -0
  508. package/dist/solution-file-DGyaXqLI.js.map +1 -0
  509. package/dist/soy-31Xz5sto.js +136 -0
  510. package/dist/soy-31Xz5sto.js.map +1 -0
  511. package/dist/sparql-B1uA2bE0.js +60 -0
  512. package/dist/sparql-B1uA2bE0.js.map +1 -0
  513. package/dist/splunk-spl-BxA5Z3OD.js +66 -0
  514. package/dist/splunk-spl-BxA5Z3OD.js.map +1 -0
  515. package/dist/sqf-DOD-CNNV.js +74 -0
  516. package/dist/sqf-DOD-CNNV.js.gz +0 -0
  517. package/dist/sqf-DOD-CNNV.js.map +1 -0
  518. package/dist/sql-C3TUcweP.js +49 -0
  519. package/dist/sql-C3TUcweP.js.map +1 -0
  520. package/dist/sql-C4zIkQDG.js +31 -0
  521. package/dist/sql-C4zIkQDG.js.map +1 -0
  522. package/dist/squirrel-SoAt6CtU.js +85 -0
  523. package/dist/squirrel-SoAt6CtU.js.map +1 -0
  524. package/dist/stan-Bv8grJQZ.js +96 -0
  525. package/dist/stan-Bv8grJQZ.js.map +1 -0
  526. package/dist/style.css +1 -1
  527. package/dist/style.css.gz +0 -0
  528. package/dist/stylus-BOalQNmv.js +178 -0
  529. package/dist/stylus-BOalQNmv.js.map +1 -0
  530. package/dist/swift-B7UDjEPv.js +162 -0
  531. package/dist/swift-B7UDjEPv.js.map +1 -0
  532. package/dist/systemd-Bd53Ny4S.js +97 -0
  533. package/dist/systemd-Bd53Ny4S.js.map +1 -0
  534. package/dist/t4-cs-Dw98XrIw.js +49 -0
  535. package/dist/t4-cs-Dw98XrIw.js.map +1 -0
  536. package/dist/t4-templating-BGmVz2pK.js +62 -0
  537. package/dist/t4-templating-BGmVz2pK.js.map +1 -0
  538. package/dist/t4-templating-CQ3kgiQu.js +31 -0
  539. package/dist/t4-templating-CQ3kgiQu.js.map +1 -0
  540. package/dist/t4-vb-ByKd44S2.js +49 -0
  541. package/dist/t4-vb-ByKd44S2.js.map +1 -0
  542. package/dist/tap-CRJigZER.js +65 -0
  543. package/dist/tap-CRJigZER.js.map +1 -0
  544. package/dist/tcl-nTdHwEfu.js +88 -0
  545. package/dist/tcl-nTdHwEfu.js.map +1 -0
  546. package/dist/textile-B3LIn7fY.js +311 -0
  547. package/dist/textile-B3LIn7fY.js.gz +0 -0
  548. package/dist/textile-B3LIn7fY.js.map +1 -0
  549. package/dist/toml-BFIv8R_U.js +95 -0
  550. package/dist/toml-BFIv8R_U.js.map +1 -0
  551. package/dist/tremor-BhknNNX8.js +101 -0
  552. package/dist/tremor-BhknNNX8.js.map +1 -0
  553. package/dist/tsx-DEAPEmtC.js +60 -0
  554. package/dist/tsx-DEAPEmtC.js.map +1 -0
  555. package/dist/tt2-Ctlii8nr.js +93 -0
  556. package/dist/tt2-Ctlii8nr.js.map +1 -0
  557. package/dist/turtle-CcRzQOZ0.js +31 -0
  558. package/dist/turtle-CcRzQOZ0.js.map +1 -0
  559. package/dist/turtle-D3qNu8kc.js +67 -0
  560. package/dist/turtle-D3qNu8kc.js.map +1 -0
  561. package/dist/twig-BkShu8ft.js +84 -0
  562. package/dist/twig-BkShu8ft.js.map +1 -0
  563. package/dist/types/assets/svg/index.d.ts +11 -0
  564. package/dist/types/components/KnowledgeCard/index.d.ts +54 -0
  565. package/dist/types/components/MyReactMarkdown/index.d.ts +4 -0
  566. package/dist/types/components/QuestionRender/QuestionTypeComponent/AnswerQuestion/answerEditor.d.ts +5 -0
  567. package/dist/types/components/QuestionRender/QuestionTypeComponent/AnswerQuestion/index.d.ts +5 -0
  568. package/dist/types/components/QuestionRender/QuestionTypeComponent/ChoiceQuestion/ChoiceEditor.d.ts +12 -0
  569. package/dist/types/components/QuestionRender/QuestionTypeComponent/ChoiceQuestion/index.d.ts +9 -0
  570. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/CcmQuizItem/index.d.ts +9 -0
  571. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/Code.d.ts +10 -0
  572. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/CodeEditor.d.ts +5 -0
  573. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/CodeRunner/index.d.ts +8 -0
  574. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/Content.d.ts +14 -0
  575. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/Debug.d.ts +11 -0
  576. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/ListItem.d.ts +9 -0
  577. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/Step/index.d.ts +14 -0
  578. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/components/Verify.d.ts +10 -0
  579. package/dist/types/components/QuestionRender/QuestionTypeComponent/CodeQuestion/index.d.ts +10 -0
  580. package/dist/types/components/QuestionRender/QuestionTypeComponent/CompletionQuestion/CompletionEditor.d.ts +5 -0
  581. package/dist/types/components/QuestionRender/QuestionTypeComponent/CompletionQuestion/index.d.ts +8 -0
  582. package/dist/types/components/QuestionRender/QuestionTypeComponent/CompositeQuestion/CompositeEditor.d.ts +5 -0
  583. package/dist/types/components/QuestionRender/QuestionTypeComponent/CompositeQuestion/index.d.ts +5 -0
  584. package/dist/types/components/QuestionRender/QuestionTypeComponent/DrawQuestion/DrawEditor.d.ts +5 -0
  585. package/dist/types/components/QuestionRender/QuestionTypeComponent/DrawQuestion/DrawItem.d.ts +13 -0
  586. package/dist/types/components/QuestionRender/QuestionTypeComponent/DrawQuestion/index.d.ts +5 -0
  587. package/dist/types/components/QuestionRender/components/Drawx6/CellPanel.d.ts +9 -0
  588. package/dist/types/components/QuestionRender/components/Drawx6/Editor.d.ts +21 -0
  589. package/dist/types/components/QuestionRender/components/Drawx6/KeyBordModal.d.ts +7 -0
  590. package/dist/types/components/QuestionRender/components/Drawx6/Show.d.ts +13 -0
  591. package/dist/types/components/QuestionRender/components/Drawx6/index.d.ts +21 -0
  592. package/dist/types/components/QuestionRender/components/Drawx6/plugins/EdgeDnd/index.d.ts +50 -0
  593. package/dist/types/components/QuestionRender/components/Drawx6/plugins/EdgeDnd/style.d.ts +1 -0
  594. package/dist/types/components/QuestionRender/components/Drawx6/register.d.ts +1 -0
  595. package/dist/types/components/QuestionRender/components/MiniCodeEditor/index.d.ts +10 -0
  596. package/dist/types/components/QuestionRender/components/QuesstionHeader/index.d.ts +14 -0
  597. package/dist/types/components/QuestionRender/components/RichEditor/FillBlank/index.d.ts +4 -0
  598. package/dist/types/components/QuestionRender/components/RichEditor/FillBlank/menu.d.ts +12 -0
  599. package/dist/types/components/QuestionRender/components/RichEditor/FillBlank/plugin.d.ts +4 -0
  600. package/dist/types/components/QuestionRender/components/RichEditor/index.d.ts +21 -0
  601. package/dist/types/components/QuestionRender/components/TipsAbility/index.d.ts +11 -0
  602. package/dist/types/components/QuestionRender/context/index.d.ts +10 -0
  603. package/dist/types/components/QuestionRender/types/index.d.ts +253 -0
  604. package/dist/types/components/QuestionRender/utils/const.d.ts +47 -0
  605. package/dist/types/components/QuestionRender/utils/verifyTools.d.ts +4 -0
  606. package/dist/types/components/VideoPlayer/index.d.ts +13 -0
  607. package/dist/types/main.d.ts +1 -0
  608. package/dist/types/utils/const.d.ts +10 -0
  609. package/dist/types/utils/index.d.ts +8 -0
  610. package/dist/types/utils/verifyTools.d.ts +4 -0
  611. package/dist/typescript-D7v9jkvH.js +31 -0
  612. package/dist/typescript-D7v9jkvH.js.map +1 -0
  613. package/dist/typescript-e-gwqYt9.js +67 -0
  614. package/dist/typescript-e-gwqYt9.js.map +1 -0
  615. package/dist/typoscript-BWkGPboI.js +119 -0
  616. package/dist/typoscript-BWkGPboI.js.map +1 -0
  617. package/dist/unrealscript-CIznoo8Y.js +81 -0
  618. package/dist/unrealscript-CIznoo8Y.js.map +1 -0
  619. package/dist/uorazor-BzGPu0Bj.js +90 -0
  620. package/dist/uorazor-BzGPu0Bj.js.map +1 -0
  621. package/dist/uri-DDzI07Zc.js +126 -0
  622. package/dist/uri-DDzI07Zc.js.map +1 -0
  623. package/dist/v-Drqq3Yy-.js +119 -0
  624. package/dist/v-Drqq3Yy-.js.map +1 -0
  625. package/dist/vala-lkpPg3Px.js +124 -0
  626. package/dist/vala-lkpPg3Px.js.map +1 -0
  627. package/dist/vbnet-BPbdotHX.js +31 -0
  628. package/dist/vbnet-BPbdotHX.js.map +1 -0
  629. package/dist/vbnet-D0GSTx4W.js +41 -0
  630. package/dist/vbnet-D0GSTx4W.js.map +1 -0
  631. package/dist/velocity-oFW7dwFg.js +110 -0
  632. package/dist/velocity-oFW7dwFg.js.map +1 -0
  633. package/dist/verilog-DVjHPNj8.js +68 -0
  634. package/dist/verilog-DVjHPNj8.js.map +1 -0
  635. package/dist/vhdl-BDjxPEck.js +65 -0
  636. package/dist/vhdl-BDjxPEck.js.map +1 -0
  637. package/dist/vim-rlQTyVcH.js +52 -0
  638. package/dist/vim-rlQTyVcH.js.gz +0 -0
  639. package/dist/vim-rlQTyVcH.js.map +1 -0
  640. package/dist/visual-basic-D5q0LX_r.js +70 -0
  641. package/dist/visual-basic-D5q0LX_r.js.map +1 -0
  642. package/dist/warpscript-RxU40iJr.js +63 -0
  643. package/dist/warpscript-RxU40iJr.js.map +1 -0
  644. package/dist/wasm-HbJer3Oi.js +73 -0
  645. package/dist/wasm-HbJer3Oi.js.map +1 -0
  646. package/dist/web-idl-CZbxRc4B.js +132 -0
  647. package/dist/web-idl-CZbxRc4B.js.map +1 -0
  648. package/dist/wiki-BhokOJ04.js +120 -0
  649. package/dist/wiki-BhokOJ04.js.map +1 -0
  650. package/dist/wolfram-CDSJLgDd.js +70 -0
  651. package/dist/wolfram-CDSJLgDd.js.map +1 -0
  652. package/dist/wren-C3O5Qi9Z.js +131 -0
  653. package/dist/wren-C3O5Qi9Z.js.map +1 -0
  654. package/dist/xeora-Bxq5guzy.js +158 -0
  655. package/dist/xeora-Bxq5guzy.js.map +1 -0
  656. package/dist/xml-doc-Dq9Dh3YI.js +71 -0
  657. package/dist/xml-doc-Dq9Dh3YI.js.map +1 -0
  658. package/dist/xojo-DFqRRxk7.js +60 -0
  659. package/dist/xojo-DFqRRxk7.js.map +1 -0
  660. package/dist/xquery-ZAnNGmG2.js +180 -0
  661. package/dist/xquery-ZAnNGmG2.js.map +1 -0
  662. package/dist/yaml-DsQF0ll0.js +31 -0
  663. package/dist/yaml-DsQF0ll0.js.map +1 -0
  664. package/dist/yaml-hSvfQRm2.js +102 -0
  665. package/dist/yaml-hSvfQRm2.js.map +1 -0
  666. package/dist/yang-1vvc-BiB.js +62 -0
  667. package/dist/yang-1vvc-BiB.js.map +1 -0
  668. package/dist/zig-CpLbdj14.js +134 -0
  669. package/dist/zig-CpLbdj14.js.map +1 -0
  670. package/package.json +30 -3
  671. package/dist/index.esm.js +0 -685
  672. package/dist/index.umd.js +0 -30
  673. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -0,0 +1,2575 @@
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-Cdd6oM-q.js";
2
+ import { a as markup_1 } from "./markup-Bqvqt98t.js";
3
+ import { a as css_1 } from "./css-DTluOMkY.js";
4
+ import { a as clike_1 } from "./clike-Dqh9Naar.js";
5
+ import { a as javascript_1 } from "./javascript-CCmiAiN7.js";
6
+ function _mergeNamespaces(n, m) {
7
+ for (var i = 0; i < m.length; i++) {
8
+ const e = m[i];
9
+ if (typeof e !== "string" && !Array.isArray(e)) {
10
+ for (const k in e) {
11
+ if (k !== "default" && !(k in n)) {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ if (d) {
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: () => e[k]
17
+ });
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
24
+ }
25
+ var immutable = extend;
26
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
27
+ function extend() {
28
+ var target = {};
29
+ for (var i = 0; i < arguments.length; i++) {
30
+ var source = arguments[i];
31
+ for (var key in source) {
32
+ if (hasOwnProperty.call(source, key)) {
33
+ target[key] = source[key];
34
+ }
35
+ }
36
+ }
37
+ return target;
38
+ }
39
+ var schema$1 = Schema$2;
40
+ var proto$1 = Schema$2.prototype;
41
+ proto$1.space = null;
42
+ proto$1.normal = {};
43
+ proto$1.property = {};
44
+ function Schema$2(property, normal, space2) {
45
+ this.property = property;
46
+ this.normal = normal;
47
+ if (space2) {
48
+ this.space = space2;
49
+ }
50
+ }
51
+ var xtend = immutable;
52
+ var Schema$1 = schema$1;
53
+ var merge_1 = merge$1;
54
+ function merge$1(definitions) {
55
+ var length = definitions.length;
56
+ var property = [];
57
+ var normal = [];
58
+ var index = -1;
59
+ var info2;
60
+ var space2;
61
+ while (++index < length) {
62
+ info2 = definitions[index];
63
+ property.push(info2.property);
64
+ normal.push(info2.normal);
65
+ space2 = info2.space;
66
+ }
67
+ return new Schema$1(
68
+ xtend.apply(null, property),
69
+ xtend.apply(null, normal),
70
+ space2
71
+ );
72
+ }
73
+ var normalize_1 = normalize$3;
74
+ function normalize$3(value) {
75
+ return value.toLowerCase();
76
+ }
77
+ var info = Info$2;
78
+ var proto = Info$2.prototype;
79
+ proto.space = null;
80
+ proto.attribute = null;
81
+ proto.property = null;
82
+ proto.boolean = false;
83
+ proto.booleanish = false;
84
+ proto.overloadedBoolean = false;
85
+ proto.number = false;
86
+ proto.commaSeparated = false;
87
+ proto.spaceSeparated = false;
88
+ proto.commaOrSpaceSeparated = false;
89
+ proto.mustUseProperty = false;
90
+ proto.defined = false;
91
+ function Info$2(property, attribute) {
92
+ this.property = property;
93
+ this.attribute = attribute;
94
+ }
95
+ var types$3 = {};
96
+ var powers = 0;
97
+ types$3.boolean = increment();
98
+ types$3.booleanish = increment();
99
+ types$3.overloadedBoolean = increment();
100
+ types$3.number = increment();
101
+ types$3.spaceSeparated = increment();
102
+ types$3.commaSeparated = increment();
103
+ types$3.commaOrSpaceSeparated = increment();
104
+ function increment() {
105
+ return Math.pow(2, ++powers);
106
+ }
107
+ var Info$1 = info;
108
+ var types$2 = types$3;
109
+ var definedInfo = DefinedInfo$2;
110
+ DefinedInfo$2.prototype = new Info$1();
111
+ DefinedInfo$2.prototype.defined = true;
112
+ var checks = [
113
+ "boolean",
114
+ "booleanish",
115
+ "overloadedBoolean",
116
+ "number",
117
+ "commaSeparated",
118
+ "spaceSeparated",
119
+ "commaOrSpaceSeparated"
120
+ ];
121
+ var checksLength = checks.length;
122
+ function DefinedInfo$2(property, attribute, mask, space2) {
123
+ var index = -1;
124
+ var check;
125
+ mark(this, "space", space2);
126
+ Info$1.call(this, property, attribute);
127
+ while (++index < checksLength) {
128
+ check = checks[index];
129
+ mark(this, check, (mask & types$2[check]) === types$2[check]);
130
+ }
131
+ }
132
+ function mark(values, key, value) {
133
+ if (value) {
134
+ values[key] = value;
135
+ }
136
+ }
137
+ var normalize$2 = normalize_1;
138
+ var Schema = schema$1;
139
+ var DefinedInfo$1 = definedInfo;
140
+ var create_1 = create$5;
141
+ function create$5(definition) {
142
+ var space2 = definition.space;
143
+ var mustUseProperty = definition.mustUseProperty || [];
144
+ var attributes2 = definition.attributes || {};
145
+ var props = definition.properties;
146
+ var transform = definition.transform;
147
+ var property = {};
148
+ var normal = {};
149
+ var prop;
150
+ var info2;
151
+ for (prop in props) {
152
+ info2 = new DefinedInfo$1(
153
+ prop,
154
+ transform(attributes2, prop),
155
+ props[prop],
156
+ space2
157
+ );
158
+ if (mustUseProperty.indexOf(prop) !== -1) {
159
+ info2.mustUseProperty = true;
160
+ }
161
+ property[prop] = info2;
162
+ normal[normalize$2(prop)] = prop;
163
+ normal[normalize$2(info2.attribute)] = prop;
164
+ }
165
+ return new Schema(property, normal, space2);
166
+ }
167
+ var create$4 = create_1;
168
+ var xlink$1 = create$4({
169
+ space: "xlink",
170
+ transform: xlinkTransform,
171
+ properties: {
172
+ xLinkActuate: null,
173
+ xLinkArcRole: null,
174
+ xLinkHref: null,
175
+ xLinkRole: null,
176
+ xLinkShow: null,
177
+ xLinkTitle: null,
178
+ xLinkType: null
179
+ }
180
+ });
181
+ function xlinkTransform(_, prop) {
182
+ return "xlink:" + prop.slice(5).toLowerCase();
183
+ }
184
+ var create$3 = create_1;
185
+ var xml$1 = create$3({
186
+ space: "xml",
187
+ transform: xmlTransform,
188
+ properties: {
189
+ xmlLang: null,
190
+ xmlBase: null,
191
+ xmlSpace: null
192
+ }
193
+ });
194
+ function xmlTransform(_, prop) {
195
+ return "xml:" + prop.slice(3).toLowerCase();
196
+ }
197
+ var caseSensitiveTransform_1 = caseSensitiveTransform$1;
198
+ function caseSensitiveTransform$1(attributes2, attribute) {
199
+ return attribute in attributes2 ? attributes2[attribute] : attribute;
200
+ }
201
+ var caseSensitiveTransform = caseSensitiveTransform_1;
202
+ var caseInsensitiveTransform_1 = caseInsensitiveTransform$2;
203
+ function caseInsensitiveTransform$2(attributes2, property) {
204
+ return caseSensitiveTransform(attributes2, property.toLowerCase());
205
+ }
206
+ var create$2 = create_1;
207
+ var caseInsensitiveTransform$1 = caseInsensitiveTransform_1;
208
+ var xmlns$1 = create$2({
209
+ space: "xmlns",
210
+ attributes: {
211
+ xmlnsxlink: "xmlns:xlink"
212
+ },
213
+ transform: caseInsensitiveTransform$1,
214
+ properties: {
215
+ xmlns: null,
216
+ xmlnsXLink: null
217
+ }
218
+ });
219
+ var types$1 = types$3;
220
+ var create$1 = create_1;
221
+ var booleanish$1 = types$1.booleanish;
222
+ var number$1 = types$1.number;
223
+ var spaceSeparated$1 = types$1.spaceSeparated;
224
+ var aria$1 = create$1({
225
+ transform: ariaTransform,
226
+ properties: {
227
+ ariaActiveDescendant: null,
228
+ ariaAtomic: booleanish$1,
229
+ ariaAutoComplete: null,
230
+ ariaBusy: booleanish$1,
231
+ ariaChecked: booleanish$1,
232
+ ariaColCount: number$1,
233
+ ariaColIndex: number$1,
234
+ ariaColSpan: number$1,
235
+ ariaControls: spaceSeparated$1,
236
+ ariaCurrent: null,
237
+ ariaDescribedBy: spaceSeparated$1,
238
+ ariaDetails: null,
239
+ ariaDisabled: booleanish$1,
240
+ ariaDropEffect: spaceSeparated$1,
241
+ ariaErrorMessage: null,
242
+ ariaExpanded: booleanish$1,
243
+ ariaFlowTo: spaceSeparated$1,
244
+ ariaGrabbed: booleanish$1,
245
+ ariaHasPopup: null,
246
+ ariaHidden: booleanish$1,
247
+ ariaInvalid: null,
248
+ ariaKeyShortcuts: null,
249
+ ariaLabel: null,
250
+ ariaLabelledBy: spaceSeparated$1,
251
+ ariaLevel: number$1,
252
+ ariaLive: null,
253
+ ariaModal: booleanish$1,
254
+ ariaMultiLine: booleanish$1,
255
+ ariaMultiSelectable: booleanish$1,
256
+ ariaOrientation: null,
257
+ ariaOwns: spaceSeparated$1,
258
+ ariaPlaceholder: null,
259
+ ariaPosInSet: number$1,
260
+ ariaPressed: booleanish$1,
261
+ ariaReadOnly: booleanish$1,
262
+ ariaRelevant: null,
263
+ ariaRequired: booleanish$1,
264
+ ariaRoleDescription: spaceSeparated$1,
265
+ ariaRowCount: number$1,
266
+ ariaRowIndex: number$1,
267
+ ariaRowSpan: number$1,
268
+ ariaSelected: booleanish$1,
269
+ ariaSetSize: number$1,
270
+ ariaSort: null,
271
+ ariaValueMax: number$1,
272
+ ariaValueMin: number$1,
273
+ ariaValueNow: number$1,
274
+ ariaValueText: null,
275
+ role: null
276
+ }
277
+ });
278
+ function ariaTransform(_, prop) {
279
+ return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
280
+ }
281
+ var types = types$3;
282
+ var create = create_1;
283
+ var caseInsensitiveTransform = caseInsensitiveTransform_1;
284
+ var boolean = types.boolean;
285
+ var overloadedBoolean = types.overloadedBoolean;
286
+ var booleanish = types.booleanish;
287
+ var number = types.number;
288
+ var spaceSeparated = types.spaceSeparated;
289
+ var commaSeparated = types.commaSeparated;
290
+ var html$2 = create({
291
+ space: "html",
292
+ attributes: {
293
+ acceptcharset: "accept-charset",
294
+ classname: "class",
295
+ htmlfor: "for",
296
+ httpequiv: "http-equiv"
297
+ },
298
+ transform: caseInsensitiveTransform,
299
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
300
+ properties: {
301
+ // Standard Properties.
302
+ abbr: null,
303
+ accept: commaSeparated,
304
+ acceptCharset: spaceSeparated,
305
+ accessKey: spaceSeparated,
306
+ action: null,
307
+ allow: null,
308
+ allowFullScreen: boolean,
309
+ allowPaymentRequest: boolean,
310
+ allowUserMedia: boolean,
311
+ alt: null,
312
+ as: null,
313
+ async: boolean,
314
+ autoCapitalize: null,
315
+ autoComplete: spaceSeparated,
316
+ autoFocus: boolean,
317
+ autoPlay: boolean,
318
+ capture: boolean,
319
+ charSet: null,
320
+ checked: boolean,
321
+ cite: null,
322
+ className: spaceSeparated,
323
+ cols: number,
324
+ colSpan: null,
325
+ content: null,
326
+ contentEditable: booleanish,
327
+ controls: boolean,
328
+ controlsList: spaceSeparated,
329
+ coords: number | commaSeparated,
330
+ crossOrigin: null,
331
+ data: null,
332
+ dateTime: null,
333
+ decoding: null,
334
+ default: boolean,
335
+ defer: boolean,
336
+ dir: null,
337
+ dirName: null,
338
+ disabled: boolean,
339
+ download: overloadedBoolean,
340
+ draggable: booleanish,
341
+ encType: null,
342
+ enterKeyHint: null,
343
+ form: null,
344
+ formAction: null,
345
+ formEncType: null,
346
+ formMethod: null,
347
+ formNoValidate: boolean,
348
+ formTarget: null,
349
+ headers: spaceSeparated,
350
+ height: number,
351
+ hidden: boolean,
352
+ high: number,
353
+ href: null,
354
+ hrefLang: null,
355
+ htmlFor: spaceSeparated,
356
+ httpEquiv: spaceSeparated,
357
+ id: null,
358
+ imageSizes: null,
359
+ imageSrcSet: commaSeparated,
360
+ inputMode: null,
361
+ integrity: null,
362
+ is: null,
363
+ isMap: boolean,
364
+ itemId: null,
365
+ itemProp: spaceSeparated,
366
+ itemRef: spaceSeparated,
367
+ itemScope: boolean,
368
+ itemType: spaceSeparated,
369
+ kind: null,
370
+ label: null,
371
+ lang: null,
372
+ language: null,
373
+ list: null,
374
+ loading: null,
375
+ loop: boolean,
376
+ low: number,
377
+ manifest: null,
378
+ max: null,
379
+ maxLength: number,
380
+ media: null,
381
+ method: null,
382
+ min: null,
383
+ minLength: number,
384
+ multiple: boolean,
385
+ muted: boolean,
386
+ name: null,
387
+ nonce: null,
388
+ noModule: boolean,
389
+ noValidate: boolean,
390
+ onAbort: null,
391
+ onAfterPrint: null,
392
+ onAuxClick: null,
393
+ onBeforePrint: null,
394
+ onBeforeUnload: null,
395
+ onBlur: null,
396
+ onCancel: null,
397
+ onCanPlay: null,
398
+ onCanPlayThrough: null,
399
+ onChange: null,
400
+ onClick: null,
401
+ onClose: null,
402
+ onContextMenu: null,
403
+ onCopy: null,
404
+ onCueChange: null,
405
+ onCut: null,
406
+ onDblClick: null,
407
+ onDrag: null,
408
+ onDragEnd: null,
409
+ onDragEnter: null,
410
+ onDragExit: null,
411
+ onDragLeave: null,
412
+ onDragOver: null,
413
+ onDragStart: null,
414
+ onDrop: null,
415
+ onDurationChange: null,
416
+ onEmptied: null,
417
+ onEnded: null,
418
+ onError: null,
419
+ onFocus: null,
420
+ onFormData: null,
421
+ onHashChange: null,
422
+ onInput: null,
423
+ onInvalid: null,
424
+ onKeyDown: null,
425
+ onKeyPress: null,
426
+ onKeyUp: null,
427
+ onLanguageChange: null,
428
+ onLoad: null,
429
+ onLoadedData: null,
430
+ onLoadedMetadata: null,
431
+ onLoadEnd: null,
432
+ onLoadStart: null,
433
+ onMessage: null,
434
+ onMessageError: null,
435
+ onMouseDown: null,
436
+ onMouseEnter: null,
437
+ onMouseLeave: null,
438
+ onMouseMove: null,
439
+ onMouseOut: null,
440
+ onMouseOver: null,
441
+ onMouseUp: null,
442
+ onOffline: null,
443
+ onOnline: null,
444
+ onPageHide: null,
445
+ onPageShow: null,
446
+ onPaste: null,
447
+ onPause: null,
448
+ onPlay: null,
449
+ onPlaying: null,
450
+ onPopState: null,
451
+ onProgress: null,
452
+ onRateChange: null,
453
+ onRejectionHandled: null,
454
+ onReset: null,
455
+ onResize: null,
456
+ onScroll: null,
457
+ onSecurityPolicyViolation: null,
458
+ onSeeked: null,
459
+ onSeeking: null,
460
+ onSelect: null,
461
+ onSlotChange: null,
462
+ onStalled: null,
463
+ onStorage: null,
464
+ onSubmit: null,
465
+ onSuspend: null,
466
+ onTimeUpdate: null,
467
+ onToggle: null,
468
+ onUnhandledRejection: null,
469
+ onUnload: null,
470
+ onVolumeChange: null,
471
+ onWaiting: null,
472
+ onWheel: null,
473
+ open: boolean,
474
+ optimum: number,
475
+ pattern: null,
476
+ ping: spaceSeparated,
477
+ placeholder: null,
478
+ playsInline: boolean,
479
+ poster: null,
480
+ preload: null,
481
+ readOnly: boolean,
482
+ referrerPolicy: null,
483
+ rel: spaceSeparated,
484
+ required: boolean,
485
+ reversed: boolean,
486
+ rows: number,
487
+ rowSpan: number,
488
+ sandbox: spaceSeparated,
489
+ scope: null,
490
+ scoped: boolean,
491
+ seamless: boolean,
492
+ selected: boolean,
493
+ shape: null,
494
+ size: number,
495
+ sizes: null,
496
+ slot: null,
497
+ span: number,
498
+ spellCheck: booleanish,
499
+ src: null,
500
+ srcDoc: null,
501
+ srcLang: null,
502
+ srcSet: commaSeparated,
503
+ start: number,
504
+ step: null,
505
+ style: null,
506
+ tabIndex: number,
507
+ target: null,
508
+ title: null,
509
+ translate: null,
510
+ type: null,
511
+ typeMustMatch: boolean,
512
+ useMap: null,
513
+ value: booleanish,
514
+ width: number,
515
+ wrap: null,
516
+ // Legacy.
517
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
518
+ align: null,
519
+ // Several. Use CSS `text-align` instead,
520
+ aLink: null,
521
+ // `<body>`. Use CSS `a:active {color}` instead
522
+ archive: spaceSeparated,
523
+ // `<object>`. List of URIs to archives
524
+ axis: null,
525
+ // `<td>` and `<th>`. Use `scope` on `<th>`
526
+ background: null,
527
+ // `<body>`. Use CSS `background-image` instead
528
+ bgColor: null,
529
+ // `<body>` and table elements. Use CSS `background-color` instead
530
+ border: number,
531
+ // `<table>`. Use CSS `border-width` instead,
532
+ borderColor: null,
533
+ // `<table>`. Use CSS `border-color` instead,
534
+ bottomMargin: number,
535
+ // `<body>`
536
+ cellPadding: null,
537
+ // `<table>`
538
+ cellSpacing: null,
539
+ // `<table>`
540
+ char: null,
541
+ // Several table elements. When `align=char`, sets the character to align on
542
+ charOff: null,
543
+ // Several table elements. When `char`, offsets the alignment
544
+ classId: null,
545
+ // `<object>`
546
+ clear: null,
547
+ // `<br>`. Use CSS `clear` instead
548
+ code: null,
549
+ // `<object>`
550
+ codeBase: null,
551
+ // `<object>`
552
+ codeType: null,
553
+ // `<object>`
554
+ color: null,
555
+ // `<font>` and `<hr>`. Use CSS instead
556
+ compact: boolean,
557
+ // Lists. Use CSS to reduce space between items instead
558
+ declare: boolean,
559
+ // `<object>`
560
+ event: null,
561
+ // `<script>`
562
+ face: null,
563
+ // `<font>`. Use CSS instead
564
+ frame: null,
565
+ // `<table>`
566
+ frameBorder: null,
567
+ // `<iframe>`. Use CSS `border` instead
568
+ hSpace: number,
569
+ // `<img>` and `<object>`
570
+ leftMargin: number,
571
+ // `<body>`
572
+ link: null,
573
+ // `<body>`. Use CSS `a:link {color: *}` instead
574
+ longDesc: null,
575
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
576
+ lowSrc: null,
577
+ // `<img>`. Use a `<picture>`
578
+ marginHeight: number,
579
+ // `<body>`
580
+ marginWidth: number,
581
+ // `<body>`
582
+ noResize: boolean,
583
+ // `<frame>`
584
+ noHref: boolean,
585
+ // `<area>`. Use no href instead of an explicit `nohref`
586
+ noShade: boolean,
587
+ // `<hr>`. Use background-color and height instead of borders
588
+ noWrap: boolean,
589
+ // `<td>` and `<th>`
590
+ object: null,
591
+ // `<applet>`
592
+ profile: null,
593
+ // `<head>`
594
+ prompt: null,
595
+ // `<isindex>`
596
+ rev: null,
597
+ // `<link>`
598
+ rightMargin: number,
599
+ // `<body>`
600
+ rules: null,
601
+ // `<table>`
602
+ scheme: null,
603
+ // `<meta>`
604
+ scrolling: booleanish,
605
+ // `<frame>`. Use overflow in the child context
606
+ standby: null,
607
+ // `<object>`
608
+ summary: null,
609
+ // `<table>`
610
+ text: null,
611
+ // `<body>`. Use CSS `color` instead
612
+ topMargin: number,
613
+ // `<body>`
614
+ valueType: null,
615
+ // `<param>`
616
+ version: null,
617
+ // `<html>`. Use a doctype.
618
+ vAlign: null,
619
+ // Several. Use CSS `vertical-align` instead
620
+ vLink: null,
621
+ // `<body>`. Use CSS `a:visited {color}` instead
622
+ vSpace: number,
623
+ // `<img>` and `<object>`
624
+ // Non-standard Properties.
625
+ allowTransparency: null,
626
+ autoCorrect: null,
627
+ autoSave: null,
628
+ disablePictureInPicture: boolean,
629
+ disableRemotePlayback: boolean,
630
+ prefix: null,
631
+ property: null,
632
+ results: number,
633
+ security: null,
634
+ unselectable: null
635
+ }
636
+ });
637
+ var merge = merge_1;
638
+ var xlink = xlink$1;
639
+ var xml = xml$1;
640
+ var xmlns = xmlns$1;
641
+ var aria = aria$1;
642
+ var html$1 = html$2;
643
+ var html_1$1 = merge([xml, xlink, xmlns, aria, html$1]);
644
+ var normalize$1 = normalize_1;
645
+ var DefinedInfo = definedInfo;
646
+ var Info = info;
647
+ var data = "data";
648
+ var find_1 = find$1;
649
+ var valid = /^data[-\w.:]+$/i;
650
+ var dash = /-[a-z]/g;
651
+ var cap = /[A-Z]/g;
652
+ function find$1(schema2, value) {
653
+ var normal = normalize$1(value);
654
+ var prop = value;
655
+ var Type = Info;
656
+ if (normal in schema2.normal) {
657
+ return schema2.property[schema2.normal[normal]];
658
+ }
659
+ if (normal.length > 4 && normal.slice(0, 4) === data && valid.test(value)) {
660
+ if (value.charAt(4) === "-") {
661
+ prop = datasetToProperty(value);
662
+ } else {
663
+ value = datasetToAttribute(value);
664
+ }
665
+ Type = DefinedInfo;
666
+ }
667
+ return new Type(prop, value);
668
+ }
669
+ function datasetToProperty(attribute) {
670
+ var value = attribute.slice(5).replace(dash, camelcase);
671
+ return data + value.charAt(0).toUpperCase() + value.slice(1);
672
+ }
673
+ function datasetToAttribute(property) {
674
+ var value = property.slice(4);
675
+ if (dash.test(value)) {
676
+ return property;
677
+ }
678
+ value = value.replace(cap, kebab);
679
+ if (value.charAt(0) !== "-") {
680
+ value = "-" + value;
681
+ }
682
+ return data + value;
683
+ }
684
+ function kebab($0) {
685
+ return "-" + $0.toLowerCase();
686
+ }
687
+ function camelcase($0) {
688
+ return $0.charAt(1).toUpperCase();
689
+ }
690
+ var hastUtilParseSelector = parse$3;
691
+ var search = /[#.]/g;
692
+ function parse$3(selector, defaultTagName) {
693
+ var value = selector || "";
694
+ var name2 = defaultTagName || "div";
695
+ var props = {};
696
+ var start = 0;
697
+ var subvalue;
698
+ var previous;
699
+ var match;
700
+ while (start < value.length) {
701
+ search.lastIndex = start;
702
+ match = search.exec(value);
703
+ subvalue = value.slice(start, match ? match.index : value.length);
704
+ if (subvalue) {
705
+ if (!previous) {
706
+ name2 = subvalue;
707
+ } else if (previous === "#") {
708
+ props.id = subvalue;
709
+ } else if (props.className) {
710
+ props.className.push(subvalue);
711
+ } else {
712
+ props.className = [subvalue];
713
+ }
714
+ start += subvalue.length;
715
+ }
716
+ if (match) {
717
+ previous = match[0];
718
+ start++;
719
+ }
720
+ }
721
+ return { type: "element", tagName: name2, properties: props, children: [] };
722
+ }
723
+ var spaceSeparatedTokens = {};
724
+ spaceSeparatedTokens.parse = parse$2;
725
+ spaceSeparatedTokens.stringify = stringify$2;
726
+ var empty$1 = "";
727
+ var space$2 = " ";
728
+ var whiteSpace = /[ \t\n\r\f]+/g;
729
+ function parse$2(value) {
730
+ var input = String(value || empty$1).trim();
731
+ return input === empty$1 ? [] : input.split(whiteSpace);
732
+ }
733
+ function stringify$2(values) {
734
+ return values.join(space$2).trim();
735
+ }
736
+ var commaSeparatedTokens = {};
737
+ commaSeparatedTokens.parse = parse$1;
738
+ commaSeparatedTokens.stringify = stringify$1;
739
+ var comma = ",";
740
+ var space$1 = " ";
741
+ var empty = "";
742
+ function parse$1(value) {
743
+ var values = [];
744
+ var input = String(value || empty);
745
+ var index = input.indexOf(comma);
746
+ var lastIndex = 0;
747
+ var end = false;
748
+ var val;
749
+ while (!end) {
750
+ if (index === -1) {
751
+ index = input.length;
752
+ end = true;
753
+ }
754
+ val = input.slice(lastIndex, index).trim();
755
+ if (val || !end) {
756
+ values.push(val);
757
+ }
758
+ lastIndex = index + 1;
759
+ index = input.indexOf(comma, lastIndex);
760
+ }
761
+ return values;
762
+ }
763
+ function stringify$1(values, options) {
764
+ var settings = options || {};
765
+ var left = settings.padLeft === false ? empty : space$1;
766
+ var right = settings.padRight ? space$1 : empty;
767
+ if (values[values.length - 1] === empty) {
768
+ values = values.concat(empty);
769
+ }
770
+ return values.join(right + comma + left).trim();
771
+ }
772
+ var find = find_1;
773
+ var normalize = normalize_1;
774
+ var parseSelector = hastUtilParseSelector;
775
+ var spaces = spaceSeparatedTokens.parse;
776
+ var commas = commaSeparatedTokens.parse;
777
+ var factory_1 = factory$1;
778
+ var own$2 = {}.hasOwnProperty;
779
+ function factory$1(schema2, defaultTagName, caseSensitive) {
780
+ var adjust = caseSensitive ? createAdjustMap(caseSensitive) : null;
781
+ return h2;
782
+ function h2(selector, properties) {
783
+ var node = parseSelector(selector, defaultTagName);
784
+ var children = Array.prototype.slice.call(arguments, 2);
785
+ var name2 = node.tagName.toLowerCase();
786
+ var property;
787
+ node.tagName = adjust && own$2.call(adjust, name2) ? adjust[name2] : name2;
788
+ if (properties && isChildren(properties, node)) {
789
+ children.unshift(properties);
790
+ properties = null;
791
+ }
792
+ if (properties) {
793
+ for (property in properties) {
794
+ addProperty(node.properties, property, properties[property]);
795
+ }
796
+ }
797
+ addChild(node.children, children);
798
+ if (node.tagName === "template") {
799
+ node.content = { type: "root", children: node.children };
800
+ node.children = [];
801
+ }
802
+ return node;
803
+ }
804
+ function addProperty(properties, key, value) {
805
+ var info2;
806
+ var property;
807
+ var result;
808
+ if (value === null || value === void 0 || value !== value) {
809
+ return;
810
+ }
811
+ info2 = find(schema2, key);
812
+ property = info2.property;
813
+ result = value;
814
+ if (typeof result === "string") {
815
+ if (info2.spaceSeparated) {
816
+ result = spaces(result);
817
+ } else if (info2.commaSeparated) {
818
+ result = commas(result);
819
+ } else if (info2.commaOrSpaceSeparated) {
820
+ result = spaces(commas(result).join(" "));
821
+ }
822
+ }
823
+ if (property === "style" && typeof value !== "string") {
824
+ result = style(result);
825
+ }
826
+ if (property === "className" && properties.className) {
827
+ result = properties.className.concat(result);
828
+ }
829
+ properties[property] = parsePrimitives(info2, property, result);
830
+ }
831
+ }
832
+ function isChildren(value, node) {
833
+ return typeof value === "string" || "length" in value || isNode(node.tagName, value);
834
+ }
835
+ function isNode(tagName, value) {
836
+ var type = value.type;
837
+ if (tagName === "input" || !type || typeof type !== "string") {
838
+ return false;
839
+ }
840
+ if (typeof value.children === "object" && "length" in value.children) {
841
+ return true;
842
+ }
843
+ type = type.toLowerCase();
844
+ if (tagName === "button") {
845
+ return type !== "menu" && type !== "submit" && type !== "reset" && type !== "button";
846
+ }
847
+ return "value" in value;
848
+ }
849
+ function addChild(nodes, value) {
850
+ var index;
851
+ var length;
852
+ if (typeof value === "string" || typeof value === "number") {
853
+ nodes.push({ type: "text", value: String(value) });
854
+ return;
855
+ }
856
+ if (typeof value === "object" && "length" in value) {
857
+ index = -1;
858
+ length = value.length;
859
+ while (++index < length) {
860
+ addChild(nodes, value[index]);
861
+ }
862
+ return;
863
+ }
864
+ if (typeof value !== "object" || !("type" in value)) {
865
+ throw new Error("Expected node, nodes, or string, got `" + value + "`");
866
+ }
867
+ nodes.push(value);
868
+ }
869
+ function parsePrimitives(info2, name2, value) {
870
+ var index;
871
+ var length;
872
+ var result;
873
+ if (typeof value !== "object" || !("length" in value)) {
874
+ return parsePrimitive(info2, name2, value);
875
+ }
876
+ length = value.length;
877
+ index = -1;
878
+ result = [];
879
+ while (++index < length) {
880
+ result[index] = parsePrimitive(info2, name2, value[index]);
881
+ }
882
+ return result;
883
+ }
884
+ function parsePrimitive(info2, name2, value) {
885
+ var result = value;
886
+ if (info2.number || info2.positiveNumber) {
887
+ if (!isNaN(result) && result !== "") {
888
+ result = Number(result);
889
+ }
890
+ } else if (info2.boolean || info2.overloadedBoolean) {
891
+ if (typeof result === "string" && (result === "" || normalize(value) === normalize(name2))) {
892
+ result = true;
893
+ }
894
+ }
895
+ return result;
896
+ }
897
+ function style(value) {
898
+ var result = [];
899
+ var key;
900
+ for (key in value) {
901
+ result.push([key, value[key]].join(": "));
902
+ }
903
+ return result.join("; ");
904
+ }
905
+ function createAdjustMap(values) {
906
+ var length = values.length;
907
+ var index = -1;
908
+ var result = {};
909
+ var value;
910
+ while (++index < length) {
911
+ value = values[index];
912
+ result[value.toLowerCase()] = value;
913
+ }
914
+ return result;
915
+ }
916
+ var schema = html_1$1;
917
+ var factory = factory_1;
918
+ var html = factory(schema, "div");
919
+ html.displayName = "html";
920
+ var html_1 = html;
921
+ var hastscript = html_1;
922
+ const AElig = "Æ";
923
+ const AMP = "&";
924
+ const Aacute = "Á";
925
+ const Acirc = "Â";
926
+ const Agrave = "À";
927
+ const Aring = "Å";
928
+ const Atilde = "Ã";
929
+ const Auml = "Ä";
930
+ const COPY = "©";
931
+ const Ccedil = "Ç";
932
+ const ETH = "Ð";
933
+ const Eacute = "É";
934
+ const Ecirc = "Ê";
935
+ const Egrave = "È";
936
+ const Euml = "Ë";
937
+ const GT = ">";
938
+ const Iacute = "Í";
939
+ const Icirc = "Î";
940
+ const Igrave = "Ì";
941
+ const Iuml = "Ï";
942
+ const LT = "<";
943
+ const Ntilde = "Ñ";
944
+ const Oacute = "Ó";
945
+ const Ocirc = "Ô";
946
+ const Ograve = "Ò";
947
+ const Oslash = "Ø";
948
+ const Otilde = "Õ";
949
+ const Ouml = "Ö";
950
+ const QUOT = '"';
951
+ const REG = "®";
952
+ const THORN = "Þ";
953
+ const Uacute = "Ú";
954
+ const Ucirc = "Û";
955
+ const Ugrave = "Ù";
956
+ const Uuml = "Ü";
957
+ const Yacute = "Ý";
958
+ const aacute = "á";
959
+ const acirc = "â";
960
+ const acute = "´";
961
+ const aelig = "æ";
962
+ const agrave = "à";
963
+ const amp = "&";
964
+ const aring = "å";
965
+ const atilde = "ã";
966
+ const auml = "ä";
967
+ const brvbar = "¦";
968
+ const ccedil = "ç";
969
+ const cedil = "¸";
970
+ const cent = "¢";
971
+ const copy = "©";
972
+ const curren = "¤";
973
+ const deg = "°";
974
+ const divide = "÷";
975
+ const eacute = "é";
976
+ const ecirc = "ê";
977
+ const egrave = "è";
978
+ const eth = "ð";
979
+ const euml = "ë";
980
+ const frac12 = "½";
981
+ const frac14 = "¼";
982
+ const frac34 = "¾";
983
+ const gt = ">";
984
+ const iacute = "í";
985
+ const icirc = "î";
986
+ const iexcl = "¡";
987
+ const igrave = "ì";
988
+ const iquest = "¿";
989
+ const iuml = "ï";
990
+ const laquo = "«";
991
+ const lt = "<";
992
+ const macr = "¯";
993
+ const micro = "µ";
994
+ const middot = "·";
995
+ const nbsp = " ";
996
+ const not = "¬";
997
+ const ntilde = "ñ";
998
+ const oacute = "ó";
999
+ const ocirc = "ô";
1000
+ const ograve = "ò";
1001
+ const ordf = "ª";
1002
+ const ordm = "º";
1003
+ const oslash = "ø";
1004
+ const otilde = "õ";
1005
+ const ouml = "ö";
1006
+ const para = "¶";
1007
+ const plusmn = "±";
1008
+ const pound = "£";
1009
+ const quot = '"';
1010
+ const raquo = "»";
1011
+ const reg = "®";
1012
+ const sect = "§";
1013
+ const shy = "­";
1014
+ const sup1 = "¹";
1015
+ const sup2 = "²";
1016
+ const sup3 = "³";
1017
+ const szlig = "ß";
1018
+ const thorn = "þ";
1019
+ const times = "×";
1020
+ const uacute = "ú";
1021
+ const ucirc = "û";
1022
+ const ugrave = "ù";
1023
+ const uml = "¨";
1024
+ const uuml = "ü";
1025
+ const yacute = "ý";
1026
+ const yen = "¥";
1027
+ const yuml = "ÿ";
1028
+ const require$$0 = {
1029
+ AElig,
1030
+ AMP,
1031
+ Aacute,
1032
+ Acirc,
1033
+ Agrave,
1034
+ Aring,
1035
+ Atilde,
1036
+ Auml,
1037
+ COPY,
1038
+ Ccedil,
1039
+ ETH,
1040
+ Eacute,
1041
+ Ecirc,
1042
+ Egrave,
1043
+ Euml,
1044
+ GT,
1045
+ Iacute,
1046
+ Icirc,
1047
+ Igrave,
1048
+ Iuml,
1049
+ LT,
1050
+ Ntilde,
1051
+ Oacute,
1052
+ Ocirc,
1053
+ Ograve,
1054
+ Oslash,
1055
+ Otilde,
1056
+ Ouml,
1057
+ QUOT,
1058
+ REG,
1059
+ THORN,
1060
+ Uacute,
1061
+ Ucirc,
1062
+ Ugrave,
1063
+ Uuml,
1064
+ Yacute,
1065
+ aacute,
1066
+ acirc,
1067
+ acute,
1068
+ aelig,
1069
+ agrave,
1070
+ amp,
1071
+ aring,
1072
+ atilde,
1073
+ auml,
1074
+ brvbar,
1075
+ ccedil,
1076
+ cedil,
1077
+ cent,
1078
+ copy,
1079
+ curren,
1080
+ deg,
1081
+ divide,
1082
+ eacute,
1083
+ ecirc,
1084
+ egrave,
1085
+ eth,
1086
+ euml,
1087
+ frac12,
1088
+ frac14,
1089
+ frac34,
1090
+ gt,
1091
+ iacute,
1092
+ icirc,
1093
+ iexcl,
1094
+ igrave,
1095
+ iquest,
1096
+ iuml,
1097
+ laquo,
1098
+ lt,
1099
+ macr,
1100
+ micro,
1101
+ middot,
1102
+ nbsp,
1103
+ not,
1104
+ ntilde,
1105
+ oacute,
1106
+ ocirc,
1107
+ ograve,
1108
+ ordf,
1109
+ ordm,
1110
+ oslash,
1111
+ otilde,
1112
+ ouml,
1113
+ para,
1114
+ plusmn,
1115
+ pound,
1116
+ quot,
1117
+ raquo,
1118
+ reg,
1119
+ sect,
1120
+ shy,
1121
+ sup1,
1122
+ sup2,
1123
+ sup3,
1124
+ szlig,
1125
+ thorn,
1126
+ times,
1127
+ uacute,
1128
+ ucirc,
1129
+ ugrave,
1130
+ uml,
1131
+ uuml,
1132
+ yacute,
1133
+ yen,
1134
+ yuml
1135
+ };
1136
+ const require$$1 = {
1137
+ "0": "�",
1138
+ "128": "€",
1139
+ "130": "‚",
1140
+ "131": "ƒ",
1141
+ "132": "„",
1142
+ "133": "…",
1143
+ "134": "†",
1144
+ "135": "‡",
1145
+ "136": "ˆ",
1146
+ "137": "‰",
1147
+ "138": "Š",
1148
+ "139": "‹",
1149
+ "140": "Œ",
1150
+ "142": "Ž",
1151
+ "145": "‘",
1152
+ "146": "’",
1153
+ "147": "“",
1154
+ "148": "”",
1155
+ "149": "•",
1156
+ "150": "–",
1157
+ "151": "—",
1158
+ "152": "˜",
1159
+ "153": "™",
1160
+ "154": "š",
1161
+ "155": "›",
1162
+ "156": "œ",
1163
+ "158": "ž",
1164
+ "159": "Ÿ"
1165
+ };
1166
+ var isDecimal = decimal$2;
1167
+ function decimal$2(character) {
1168
+ var code = typeof character === "string" ? character.charCodeAt(0) : character;
1169
+ return code >= 48 && code <= 57;
1170
+ }
1171
+ var isHexadecimal = hexadecimal$1;
1172
+ function hexadecimal$1(character) {
1173
+ var code = typeof character === "string" ? character.charCodeAt(0) : character;
1174
+ return code >= 97 && code <= 102 || code >= 65 && code <= 70 || code >= 48 && code <= 57;
1175
+ }
1176
+ var isAlphabetical = alphabetical$1;
1177
+ function alphabetical$1(character) {
1178
+ var code = typeof character === "string" ? character.charCodeAt(0) : character;
1179
+ return code >= 97 && code <= 122 || code >= 65 && code <= 90;
1180
+ }
1181
+ var alphabetical = isAlphabetical;
1182
+ var decimal$1 = isDecimal;
1183
+ var isAlphanumerical = alphanumerical$1;
1184
+ function alphanumerical$1(character) {
1185
+ return alphabetical(character) || decimal$1(character);
1186
+ }
1187
+ var el;
1188
+ var semicolon$1 = 59;
1189
+ var decodeEntity_browser = decodeEntity$1;
1190
+ function decodeEntity$1(characters) {
1191
+ var entity = "&" + characters + ";";
1192
+ var char;
1193
+ el = el || document.createElement("i");
1194
+ el.innerHTML = entity;
1195
+ char = el.textContent;
1196
+ if (char.charCodeAt(char.length - 1) === semicolon$1 && characters !== "semi") {
1197
+ return false;
1198
+ }
1199
+ return char === entity ? false : char;
1200
+ }
1201
+ var legacy = require$$0;
1202
+ var invalid = require$$1;
1203
+ var decimal = isDecimal;
1204
+ var hexadecimal = isHexadecimal;
1205
+ var alphanumerical = isAlphanumerical;
1206
+ var decodeEntity = decodeEntity_browser;
1207
+ var parseEntities_1 = parseEntities;
1208
+ var own$1 = {}.hasOwnProperty;
1209
+ var fromCharCode = String.fromCharCode;
1210
+ var noop = Function.prototype;
1211
+ var defaults = {
1212
+ warning: null,
1213
+ reference: null,
1214
+ text: null,
1215
+ warningContext: null,
1216
+ referenceContext: null,
1217
+ textContext: null,
1218
+ position: {},
1219
+ additional: null,
1220
+ attribute: false,
1221
+ nonTerminated: true
1222
+ };
1223
+ var tab = 9;
1224
+ var lineFeed = 10;
1225
+ var formFeed = 12;
1226
+ var space = 32;
1227
+ var ampersand = 38;
1228
+ var semicolon = 59;
1229
+ var lessThan = 60;
1230
+ var equalsTo = 61;
1231
+ var numberSign = 35;
1232
+ var uppercaseX = 88;
1233
+ var lowercaseX = 120;
1234
+ var replacementCharacter = 65533;
1235
+ var name = "named";
1236
+ var hexa = "hexadecimal";
1237
+ var deci = "decimal";
1238
+ var bases = {};
1239
+ bases[hexa] = 16;
1240
+ bases[deci] = 10;
1241
+ var tests = {};
1242
+ tests[name] = alphanumerical;
1243
+ tests[deci] = decimal;
1244
+ tests[hexa] = hexadecimal;
1245
+ var namedNotTerminated = 1;
1246
+ var numericNotTerminated = 2;
1247
+ var namedEmpty = 3;
1248
+ var numericEmpty = 4;
1249
+ var namedUnknown = 5;
1250
+ var numericDisallowed = 6;
1251
+ var numericProhibited = 7;
1252
+ var messages = {};
1253
+ messages[namedNotTerminated] = "Named character references must be terminated by a semicolon";
1254
+ messages[numericNotTerminated] = "Numeric character references must be terminated by a semicolon";
1255
+ messages[namedEmpty] = "Named character references cannot be empty";
1256
+ messages[numericEmpty] = "Numeric character references cannot be empty";
1257
+ messages[namedUnknown] = "Named character references must be known";
1258
+ messages[numericDisallowed] = "Numeric character references cannot be disallowed";
1259
+ messages[numericProhibited] = "Numeric character references cannot be outside the permissible Unicode range";
1260
+ function parseEntities(value, options) {
1261
+ var settings = {};
1262
+ var option;
1263
+ var key;
1264
+ if (!options) {
1265
+ options = {};
1266
+ }
1267
+ for (key in defaults) {
1268
+ option = options[key];
1269
+ settings[key] = option === null || option === void 0 ? defaults[key] : option;
1270
+ }
1271
+ if (settings.position.indent || settings.position.start) {
1272
+ settings.indent = settings.position.indent || [];
1273
+ settings.position = settings.position.start;
1274
+ }
1275
+ return parse(value, settings);
1276
+ }
1277
+ function parse(value, settings) {
1278
+ var additional = settings.additional;
1279
+ var nonTerminated = settings.nonTerminated;
1280
+ var handleText = settings.text;
1281
+ var handleReference = settings.reference;
1282
+ var handleWarning = settings.warning;
1283
+ var textContext = settings.textContext;
1284
+ var referenceContext = settings.referenceContext;
1285
+ var warningContext = settings.warningContext;
1286
+ var pos = settings.position;
1287
+ var indent = settings.indent || [];
1288
+ var length = value.length;
1289
+ var index = 0;
1290
+ var lines = -1;
1291
+ var column = pos.column || 1;
1292
+ var line = pos.line || 1;
1293
+ var queue = "";
1294
+ var result = [];
1295
+ var entityCharacters;
1296
+ var namedEntity;
1297
+ var terminated;
1298
+ var characters;
1299
+ var character;
1300
+ var reference;
1301
+ var following;
1302
+ var warning;
1303
+ var reason;
1304
+ var output;
1305
+ var entity;
1306
+ var begin;
1307
+ var start;
1308
+ var type;
1309
+ var test;
1310
+ var prev;
1311
+ var next;
1312
+ var diff;
1313
+ var end;
1314
+ if (typeof additional === "string") {
1315
+ additional = additional.charCodeAt(0);
1316
+ }
1317
+ prev = now();
1318
+ warning = handleWarning ? parseError : noop;
1319
+ index--;
1320
+ length++;
1321
+ while (++index < length) {
1322
+ if (character === lineFeed) {
1323
+ column = indent[lines] || 1;
1324
+ }
1325
+ character = value.charCodeAt(index);
1326
+ if (character === ampersand) {
1327
+ following = value.charCodeAt(index + 1);
1328
+ if (following === tab || following === lineFeed || following === formFeed || following === space || following === ampersand || following === lessThan || following !== following || additional && following === additional) {
1329
+ queue += fromCharCode(character);
1330
+ column++;
1331
+ continue;
1332
+ }
1333
+ start = index + 1;
1334
+ begin = start;
1335
+ end = start;
1336
+ if (following === numberSign) {
1337
+ end = ++begin;
1338
+ following = value.charCodeAt(end);
1339
+ if (following === uppercaseX || following === lowercaseX) {
1340
+ type = hexa;
1341
+ end = ++begin;
1342
+ } else {
1343
+ type = deci;
1344
+ }
1345
+ } else {
1346
+ type = name;
1347
+ }
1348
+ entityCharacters = "";
1349
+ entity = "";
1350
+ characters = "";
1351
+ test = tests[type];
1352
+ end--;
1353
+ while (++end < length) {
1354
+ following = value.charCodeAt(end);
1355
+ if (!test(following)) {
1356
+ break;
1357
+ }
1358
+ characters += fromCharCode(following);
1359
+ if (type === name && own$1.call(legacy, characters)) {
1360
+ entityCharacters = characters;
1361
+ entity = legacy[characters];
1362
+ }
1363
+ }
1364
+ terminated = value.charCodeAt(end) === semicolon;
1365
+ if (terminated) {
1366
+ end++;
1367
+ namedEntity = type === name ? decodeEntity(characters) : false;
1368
+ if (namedEntity) {
1369
+ entityCharacters = characters;
1370
+ entity = namedEntity;
1371
+ }
1372
+ }
1373
+ diff = 1 + end - start;
1374
+ if (!terminated && !nonTerminated) ;
1375
+ else if (!characters) {
1376
+ if (type !== name) {
1377
+ warning(numericEmpty, diff);
1378
+ }
1379
+ } else if (type === name) {
1380
+ if (terminated && !entity) {
1381
+ warning(namedUnknown, 1);
1382
+ } else {
1383
+ if (entityCharacters !== characters) {
1384
+ end = begin + entityCharacters.length;
1385
+ diff = 1 + end - begin;
1386
+ terminated = false;
1387
+ }
1388
+ if (!terminated) {
1389
+ reason = entityCharacters ? namedNotTerminated : namedEmpty;
1390
+ if (settings.attribute) {
1391
+ following = value.charCodeAt(end);
1392
+ if (following === equalsTo) {
1393
+ warning(reason, diff);
1394
+ entity = null;
1395
+ } else if (alphanumerical(following)) {
1396
+ entity = null;
1397
+ } else {
1398
+ warning(reason, diff);
1399
+ }
1400
+ } else {
1401
+ warning(reason, diff);
1402
+ }
1403
+ }
1404
+ }
1405
+ reference = entity;
1406
+ } else {
1407
+ if (!terminated) {
1408
+ warning(numericNotTerminated, diff);
1409
+ }
1410
+ reference = parseInt(characters, bases[type]);
1411
+ if (prohibited(reference)) {
1412
+ warning(numericProhibited, diff);
1413
+ reference = fromCharCode(replacementCharacter);
1414
+ } else if (reference in invalid) {
1415
+ warning(numericDisallowed, diff);
1416
+ reference = invalid[reference];
1417
+ } else {
1418
+ output = "";
1419
+ if (disallowed(reference)) {
1420
+ warning(numericDisallowed, diff);
1421
+ }
1422
+ if (reference > 65535) {
1423
+ reference -= 65536;
1424
+ output += fromCharCode(reference >>> (10 & 1023) | 55296);
1425
+ reference = 56320 | reference & 1023;
1426
+ }
1427
+ reference = output + fromCharCode(reference);
1428
+ }
1429
+ }
1430
+ if (reference) {
1431
+ flush();
1432
+ prev = now();
1433
+ index = end - 1;
1434
+ column += end - start + 1;
1435
+ result.push(reference);
1436
+ next = now();
1437
+ next.offset++;
1438
+ if (handleReference) {
1439
+ handleReference.call(
1440
+ referenceContext,
1441
+ reference,
1442
+ { start: prev, end: next },
1443
+ value.slice(start - 1, end)
1444
+ );
1445
+ }
1446
+ prev = next;
1447
+ } else {
1448
+ characters = value.slice(start - 1, end);
1449
+ queue += characters;
1450
+ column += characters.length;
1451
+ index = end - 1;
1452
+ }
1453
+ } else {
1454
+ if (character === 10) {
1455
+ line++;
1456
+ lines++;
1457
+ column = 0;
1458
+ }
1459
+ if (character === character) {
1460
+ queue += fromCharCode(character);
1461
+ column++;
1462
+ } else {
1463
+ flush();
1464
+ }
1465
+ }
1466
+ }
1467
+ return result.join("");
1468
+ function now() {
1469
+ return {
1470
+ line,
1471
+ column,
1472
+ offset: index + (pos.offset || 0)
1473
+ };
1474
+ }
1475
+ function parseError(code, offset) {
1476
+ var position = now();
1477
+ position.column += offset;
1478
+ position.offset += offset;
1479
+ handleWarning.call(warningContext, messages[code], position, code);
1480
+ }
1481
+ function flush() {
1482
+ if (queue) {
1483
+ result.push(queue);
1484
+ if (handleText) {
1485
+ handleText.call(textContext, queue, { start: prev, end: now() });
1486
+ }
1487
+ queue = "";
1488
+ }
1489
+ }
1490
+ }
1491
+ function prohibited(code) {
1492
+ return code >= 55296 && code <= 57343 || code > 1114111;
1493
+ }
1494
+ function disallowed(code) {
1495
+ return code >= 1 && code <= 8 || code === 11 || code >= 13 && code <= 31 || code >= 127 && code <= 159 || code >= 64976 && code <= 65007 || (code & 65535) === 65535 || (code & 65535) === 65534;
1496
+ }
1497
+ var prismCore = { exports: {} };
1498
+ (function(module) {
1499
+ var _self = typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope ? self : {};
1500
+ /**
1501
+ * Prism: Lightweight, robust, elegant syntax highlighting
1502
+ *
1503
+ * @license MIT <https://opensource.org/licenses/MIT>
1504
+ * @author Lea Verou <https://lea.verou.me>
1505
+ * @namespace
1506
+ * @public
1507
+ */
1508
+ var Prism2 = function(_self2) {
1509
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
1510
+ var uniqueId = 0;
1511
+ var plainTextGrammar = {};
1512
+ var _ = {
1513
+ /**
1514
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
1515
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
1516
+ * additional languages or plugins yourself.
1517
+ *
1518
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
1519
+ *
1520
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
1521
+ * empty Prism object into the global scope before loading the Prism script like this:
1522
+ *
1523
+ * ```js
1524
+ * window.Prism = window.Prism || {};
1525
+ * Prism.manual = true;
1526
+ * // add a new <script> to load Prism's script
1527
+ * ```
1528
+ *
1529
+ * @default false
1530
+ * @type {boolean}
1531
+ * @memberof Prism
1532
+ * @public
1533
+ */
1534
+ manual: _self2.Prism && _self2.Prism.manual,
1535
+ /**
1536
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
1537
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
1538
+ * own worker, you don't want it to do this.
1539
+ *
1540
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
1541
+ *
1542
+ * You obviously have to change this value before Prism executes. To do this, you can add an
1543
+ * empty Prism object into the global scope before loading the Prism script like this:
1544
+ *
1545
+ * ```js
1546
+ * window.Prism = window.Prism || {};
1547
+ * Prism.disableWorkerMessageHandler = true;
1548
+ * // Load Prism's script
1549
+ * ```
1550
+ *
1551
+ * @default false
1552
+ * @type {boolean}
1553
+ * @memberof Prism
1554
+ * @public
1555
+ */
1556
+ disableWorkerMessageHandler: _self2.Prism && _self2.Prism.disableWorkerMessageHandler,
1557
+ /**
1558
+ * A namespace for utility methods.
1559
+ *
1560
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
1561
+ * change or disappear at any time.
1562
+ *
1563
+ * @namespace
1564
+ * @memberof Prism
1565
+ */
1566
+ util: {
1567
+ encode: function encode2(tokens) {
1568
+ if (tokens instanceof Token) {
1569
+ return new Token(tokens.type, encode2(tokens.content), tokens.alias);
1570
+ } else if (Array.isArray(tokens)) {
1571
+ return tokens.map(encode2);
1572
+ } else {
1573
+ return tokens.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
1574
+ }
1575
+ },
1576
+ /**
1577
+ * Returns the name of the type of the given value.
1578
+ *
1579
+ * @param {any} o
1580
+ * @returns {string}
1581
+ * @example
1582
+ * type(null) === 'Null'
1583
+ * type(undefined) === 'Undefined'
1584
+ * type(123) === 'Number'
1585
+ * type('foo') === 'String'
1586
+ * type(true) === 'Boolean'
1587
+ * type([1, 2]) === 'Array'
1588
+ * type({}) === 'Object'
1589
+ * type(String) === 'Function'
1590
+ * type(/abc+/) === 'RegExp'
1591
+ */
1592
+ type: function(o) {
1593
+ return Object.prototype.toString.call(o).slice(8, -1);
1594
+ },
1595
+ /**
1596
+ * Returns a unique number for the given object. Later calls will still return the same number.
1597
+ *
1598
+ * @param {Object} obj
1599
+ * @returns {number}
1600
+ */
1601
+ objId: function(obj) {
1602
+ if (!obj["__id"]) {
1603
+ Object.defineProperty(obj, "__id", { value: ++uniqueId });
1604
+ }
1605
+ return obj["__id"];
1606
+ },
1607
+ /**
1608
+ * Creates a deep clone of the given object.
1609
+ *
1610
+ * The main intended use of this function is to clone language definitions.
1611
+ *
1612
+ * @param {T} o
1613
+ * @param {Record<number, any>} [visited]
1614
+ * @returns {T}
1615
+ * @template T
1616
+ */
1617
+ clone: function deepClone(o, visited) {
1618
+ visited = visited || {};
1619
+ var clone;
1620
+ var id;
1621
+ switch (_.util.type(o)) {
1622
+ case "Object":
1623
+ id = _.util.objId(o);
1624
+ if (visited[id]) {
1625
+ return visited[id];
1626
+ }
1627
+ clone = /** @type {Record<string, any>} */
1628
+ {};
1629
+ visited[id] = clone;
1630
+ for (var key in o) {
1631
+ if (o.hasOwnProperty(key)) {
1632
+ clone[key] = deepClone(o[key], visited);
1633
+ }
1634
+ }
1635
+ return (
1636
+ /** @type {any} */
1637
+ clone
1638
+ );
1639
+ case "Array":
1640
+ id = _.util.objId(o);
1641
+ if (visited[id]) {
1642
+ return visited[id];
1643
+ }
1644
+ clone = [];
1645
+ visited[id] = clone;
1646
+ /** @type {Array} */
1647
+ /** @type {any} */
1648
+ o.forEach(function(v, i) {
1649
+ clone[i] = deepClone(v, visited);
1650
+ });
1651
+ return (
1652
+ /** @type {any} */
1653
+ clone
1654
+ );
1655
+ default:
1656
+ return o;
1657
+ }
1658
+ },
1659
+ /**
1660
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
1661
+ *
1662
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
1663
+ *
1664
+ * @param {Element} element
1665
+ * @returns {string}
1666
+ */
1667
+ getLanguage: function(element) {
1668
+ while (element) {
1669
+ var m = lang.exec(element.className);
1670
+ if (m) {
1671
+ return m[1].toLowerCase();
1672
+ }
1673
+ element = element.parentElement;
1674
+ }
1675
+ return "none";
1676
+ },
1677
+ /**
1678
+ * Sets the Prism `language-xxxx` class of the given element.
1679
+ *
1680
+ * @param {Element} element
1681
+ * @param {string} language
1682
+ * @returns {void}
1683
+ */
1684
+ setLanguage: function(element, language) {
1685
+ element.className = element.className.replace(RegExp(lang, "gi"), "");
1686
+ element.classList.add("language-" + language);
1687
+ },
1688
+ /**
1689
+ * Returns the script element that is currently executing.
1690
+ *
1691
+ * This does __not__ work for line script element.
1692
+ *
1693
+ * @returns {HTMLScriptElement | null}
1694
+ */
1695
+ currentScript: function() {
1696
+ if (typeof document === "undefined") {
1697
+ return null;
1698
+ }
1699
+ if ("currentScript" in document && 1 < 2) {
1700
+ return (
1701
+ /** @type {any} */
1702
+ document.currentScript
1703
+ );
1704
+ }
1705
+ try {
1706
+ throw new Error();
1707
+ } catch (err) {
1708
+ var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
1709
+ if (src) {
1710
+ var scripts = document.getElementsByTagName("script");
1711
+ for (var i in scripts) {
1712
+ if (scripts[i].src == src) {
1713
+ return scripts[i];
1714
+ }
1715
+ }
1716
+ }
1717
+ return null;
1718
+ }
1719
+ },
1720
+ /**
1721
+ * Returns whether a given class is active for `element`.
1722
+ *
1723
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
1724
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
1725
+ * given class is just the given class with a `no-` prefix.
1726
+ *
1727
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
1728
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
1729
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
1730
+ *
1731
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
1732
+ * version of it, the class is considered active.
1733
+ *
1734
+ * @param {Element} element
1735
+ * @param {string} className
1736
+ * @param {boolean} [defaultActivation=false]
1737
+ * @returns {boolean}
1738
+ */
1739
+ isActive: function(element, className, defaultActivation) {
1740
+ var no = "no-" + className;
1741
+ while (element) {
1742
+ var classList = element.classList;
1743
+ if (classList.contains(className)) {
1744
+ return true;
1745
+ }
1746
+ if (classList.contains(no)) {
1747
+ return false;
1748
+ }
1749
+ element = element.parentElement;
1750
+ }
1751
+ return !!defaultActivation;
1752
+ }
1753
+ },
1754
+ /**
1755
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
1756
+ *
1757
+ * @namespace
1758
+ * @memberof Prism
1759
+ * @public
1760
+ */
1761
+ languages: {
1762
+ /**
1763
+ * The grammar for plain, unformatted text.
1764
+ */
1765
+ plain: plainTextGrammar,
1766
+ plaintext: plainTextGrammar,
1767
+ text: plainTextGrammar,
1768
+ txt: plainTextGrammar,
1769
+ /**
1770
+ * Creates a deep copy of the language with the given id and appends the given tokens.
1771
+ *
1772
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
1773
+ * will be overwritten at its original position.
1774
+ *
1775
+ * ## Best practices
1776
+ *
1777
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
1778
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
1779
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
1780
+ *
1781
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
1782
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
1783
+ *
1784
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
1785
+ * @param {Grammar} redef The new tokens to append.
1786
+ * @returns {Grammar} The new language created.
1787
+ * @public
1788
+ * @example
1789
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
1790
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
1791
+ * // at its original position
1792
+ * 'comment': { ... },
1793
+ * // CSS doesn't have a 'color' token, so this token will be appended
1794
+ * 'color': /\b(?:red|green|blue)\b/
1795
+ * });
1796
+ */
1797
+ extend: function(id, redef) {
1798
+ var lang2 = _.util.clone(_.languages[id]);
1799
+ for (var key in redef) {
1800
+ lang2[key] = redef[key];
1801
+ }
1802
+ return lang2;
1803
+ },
1804
+ /**
1805
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
1806
+ *
1807
+ * ## Usage
1808
+ *
1809
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
1810
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
1811
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
1812
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
1813
+ * this:
1814
+ *
1815
+ * ```js
1816
+ * Prism.languages.markup.style = {
1817
+ * // token
1818
+ * };
1819
+ * ```
1820
+ *
1821
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
1822
+ * before existing tokens. For the CSS example above, you would use it like this:
1823
+ *
1824
+ * ```js
1825
+ * Prism.languages.insertBefore('markup', 'cdata', {
1826
+ * 'style': {
1827
+ * // token
1828
+ * }
1829
+ * });
1830
+ * ```
1831
+ *
1832
+ * ## Special cases
1833
+ *
1834
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
1835
+ * will be ignored.
1836
+ *
1837
+ * This behavior can be used to insert tokens after `before`:
1838
+ *
1839
+ * ```js
1840
+ * Prism.languages.insertBefore('markup', 'comment', {
1841
+ * 'comment': Prism.languages.markup.comment,
1842
+ * // tokens after 'comment'
1843
+ * });
1844
+ * ```
1845
+ *
1846
+ * ## Limitations
1847
+ *
1848
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
1849
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
1850
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
1851
+ * deleting properties which is necessary to insert at arbitrary positions.
1852
+ *
1853
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
1854
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
1855
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
1856
+ *
1857
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
1858
+ * you hold the target object in a variable, then the value of the variable will not change.
1859
+ *
1860
+ * ```js
1861
+ * var oldMarkup = Prism.languages.markup;
1862
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
1863
+ *
1864
+ * assert(oldMarkup !== Prism.languages.markup);
1865
+ * assert(newMarkup === Prism.languages.markup);
1866
+ * ```
1867
+ *
1868
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
1869
+ * object to be modified.
1870
+ * @param {string} before The key to insert before.
1871
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
1872
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
1873
+ * object to be modified.
1874
+ *
1875
+ * Defaults to `Prism.languages`.
1876
+ * @returns {Grammar} The new grammar object.
1877
+ * @public
1878
+ */
1879
+ insertBefore: function(inside, before, insert, root) {
1880
+ root = root || /** @type {any} */
1881
+ _.languages;
1882
+ var grammar = root[inside];
1883
+ var ret = {};
1884
+ for (var token in grammar) {
1885
+ if (grammar.hasOwnProperty(token)) {
1886
+ if (token == before) {
1887
+ for (var newToken in insert) {
1888
+ if (insert.hasOwnProperty(newToken)) {
1889
+ ret[newToken] = insert[newToken];
1890
+ }
1891
+ }
1892
+ }
1893
+ if (!insert.hasOwnProperty(token)) {
1894
+ ret[token] = grammar[token];
1895
+ }
1896
+ }
1897
+ }
1898
+ var old = root[inside];
1899
+ root[inside] = ret;
1900
+ _.languages.DFS(_.languages, function(key, value) {
1901
+ if (value === old && key != inside) {
1902
+ this[key] = ret;
1903
+ }
1904
+ });
1905
+ return ret;
1906
+ },
1907
+ // Traverse a language definition with Depth First Search
1908
+ DFS: function DFS(o, callback, type, visited) {
1909
+ visited = visited || {};
1910
+ var objId = _.util.objId;
1911
+ for (var i in o) {
1912
+ if (o.hasOwnProperty(i)) {
1913
+ callback.call(o, i, o[i], type || i);
1914
+ var property = o[i];
1915
+ var propertyType = _.util.type(property);
1916
+ if (propertyType === "Object" && !visited[objId(property)]) {
1917
+ visited[objId(property)] = true;
1918
+ DFS(property, callback, null, visited);
1919
+ } else if (propertyType === "Array" && !visited[objId(property)]) {
1920
+ visited[objId(property)] = true;
1921
+ DFS(property, callback, i, visited);
1922
+ }
1923
+ }
1924
+ }
1925
+ }
1926
+ },
1927
+ plugins: {},
1928
+ /**
1929
+ * This is the most high-level function in Prism’s API.
1930
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
1931
+ * each one of them.
1932
+ *
1933
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
1934
+ *
1935
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
1936
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
1937
+ * @memberof Prism
1938
+ * @public
1939
+ */
1940
+ highlightAll: function(async, callback) {
1941
+ _.highlightAllUnder(document, async, callback);
1942
+ },
1943
+ /**
1944
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
1945
+ * {@link Prism.highlightElement} on each one of them.
1946
+ *
1947
+ * The following hooks will be run:
1948
+ * 1. `before-highlightall`
1949
+ * 2. `before-all-elements-highlight`
1950
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
1951
+ *
1952
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
1953
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
1954
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
1955
+ * @memberof Prism
1956
+ * @public
1957
+ */
1958
+ highlightAllUnder: function(container, async, callback) {
1959
+ var env = {
1960
+ callback,
1961
+ container,
1962
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
1963
+ };
1964
+ _.hooks.run("before-highlightall", env);
1965
+ env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
1966
+ _.hooks.run("before-all-elements-highlight", env);
1967
+ for (var i = 0, element; element = env.elements[i++]; ) {
1968
+ _.highlightElement(element, async === true, env.callback);
1969
+ }
1970
+ },
1971
+ /**
1972
+ * Highlights the code inside a single element.
1973
+ *
1974
+ * The following hooks will be run:
1975
+ * 1. `before-sanity-check`
1976
+ * 2. `before-highlight`
1977
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
1978
+ * 4. `before-insert`
1979
+ * 5. `after-highlight`
1980
+ * 6. `complete`
1981
+ *
1982
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
1983
+ * the element's language.
1984
+ *
1985
+ * @param {Element} element The element containing the code.
1986
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
1987
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
1988
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
1989
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
1990
+ *
1991
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
1992
+ * asynchronous highlighting to work. You can build your own bundle on the
1993
+ * [Download page](https://prismjs.com/download.html).
1994
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
1995
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
1996
+ * @memberof Prism
1997
+ * @public
1998
+ */
1999
+ highlightElement: function(element, async, callback) {
2000
+ var language = _.util.getLanguage(element);
2001
+ var grammar = _.languages[language];
2002
+ _.util.setLanguage(element, language);
2003
+ var parent = element.parentElement;
2004
+ if (parent && parent.nodeName.toLowerCase() === "pre") {
2005
+ _.util.setLanguage(parent, language);
2006
+ }
2007
+ var code = element.textContent;
2008
+ var env = {
2009
+ element,
2010
+ language,
2011
+ grammar,
2012
+ code
2013
+ };
2014
+ function insertHighlightedCode(highlightedCode) {
2015
+ env.highlightedCode = highlightedCode;
2016
+ _.hooks.run("before-insert", env);
2017
+ env.element.innerHTML = env.highlightedCode;
2018
+ _.hooks.run("after-highlight", env);
2019
+ _.hooks.run("complete", env);
2020
+ callback && callback.call(env.element);
2021
+ }
2022
+ _.hooks.run("before-sanity-check", env);
2023
+ parent = env.element.parentElement;
2024
+ if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
2025
+ parent.setAttribute("tabindex", "0");
2026
+ }
2027
+ if (!env.code) {
2028
+ _.hooks.run("complete", env);
2029
+ callback && callback.call(env.element);
2030
+ return;
2031
+ }
2032
+ _.hooks.run("before-highlight", env);
2033
+ if (!env.grammar) {
2034
+ insertHighlightedCode(_.util.encode(env.code));
2035
+ return;
2036
+ }
2037
+ if (async && _self2.Worker) {
2038
+ var worker = new Worker(_.filename);
2039
+ worker.onmessage = function(evt) {
2040
+ insertHighlightedCode(evt.data);
2041
+ };
2042
+ worker.postMessage(JSON.stringify({
2043
+ language: env.language,
2044
+ code: env.code,
2045
+ immediateClose: true
2046
+ }));
2047
+ } else {
2048
+ insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
2049
+ }
2050
+ },
2051
+ /**
2052
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
2053
+ * and the language definitions to use, and returns a string with the HTML produced.
2054
+ *
2055
+ * The following hooks will be run:
2056
+ * 1. `before-tokenize`
2057
+ * 2. `after-tokenize`
2058
+ * 3. `wrap`: On each {@link Token}.
2059
+ *
2060
+ * @param {string} text A string with the code to be highlighted.
2061
+ * @param {Grammar} grammar An object containing the tokens to use.
2062
+ *
2063
+ * Usually a language definition like `Prism.languages.markup`.
2064
+ * @param {string} language The name of the language definition passed to `grammar`.
2065
+ * @returns {string} The highlighted HTML.
2066
+ * @memberof Prism
2067
+ * @public
2068
+ * @example
2069
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
2070
+ */
2071
+ highlight: function(text, grammar, language) {
2072
+ var env = {
2073
+ code: text,
2074
+ grammar,
2075
+ language
2076
+ };
2077
+ _.hooks.run("before-tokenize", env);
2078
+ if (!env.grammar) {
2079
+ throw new Error('The language "' + env.language + '" has no grammar.');
2080
+ }
2081
+ env.tokens = _.tokenize(env.code, env.grammar);
2082
+ _.hooks.run("after-tokenize", env);
2083
+ return Token.stringify(_.util.encode(env.tokens), env.language);
2084
+ },
2085
+ /**
2086
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
2087
+ * and the language definitions to use, and returns an array with the tokenized code.
2088
+ *
2089
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
2090
+ *
2091
+ * This method could be useful in other contexts as well, as a very crude parser.
2092
+ *
2093
+ * @param {string} text A string with the code to be highlighted.
2094
+ * @param {Grammar} grammar An object containing the tokens to use.
2095
+ *
2096
+ * Usually a language definition like `Prism.languages.markup`.
2097
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
2098
+ * @memberof Prism
2099
+ * @public
2100
+ * @example
2101
+ * let code = `var foo = 0;`;
2102
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
2103
+ * tokens.forEach(token => {
2104
+ * if (token instanceof Prism.Token && token.type === 'number') {
2105
+ * console.log(`Found numeric literal: ${token.content}`);
2106
+ * }
2107
+ * });
2108
+ */
2109
+ tokenize: function(text, grammar) {
2110
+ var rest = grammar.rest;
2111
+ if (rest) {
2112
+ for (var token in rest) {
2113
+ grammar[token] = rest[token];
2114
+ }
2115
+ delete grammar.rest;
2116
+ }
2117
+ var tokenList = new LinkedList();
2118
+ addAfter(tokenList, tokenList.head, text);
2119
+ matchGrammar(text, tokenList, grammar, tokenList.head, 0);
2120
+ return toArray(tokenList);
2121
+ },
2122
+ /**
2123
+ * @namespace
2124
+ * @memberof Prism
2125
+ * @public
2126
+ */
2127
+ hooks: {
2128
+ all: {},
2129
+ /**
2130
+ * Adds the given callback to the list of callbacks for the given hook.
2131
+ *
2132
+ * The callback will be invoked when the hook it is registered for is run.
2133
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
2134
+ *
2135
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
2136
+ *
2137
+ * @param {string} name The name of the hook.
2138
+ * @param {HookCallback} callback The callback function which is given environment variables.
2139
+ * @public
2140
+ */
2141
+ add: function(name2, callback) {
2142
+ var hooks = _.hooks.all;
2143
+ hooks[name2] = hooks[name2] || [];
2144
+ hooks[name2].push(callback);
2145
+ },
2146
+ /**
2147
+ * Runs a hook invoking all registered callbacks with the given environment variables.
2148
+ *
2149
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
2150
+ *
2151
+ * @param {string} name The name of the hook.
2152
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
2153
+ * @public
2154
+ */
2155
+ run: function(name2, env) {
2156
+ var callbacks = _.hooks.all[name2];
2157
+ if (!callbacks || !callbacks.length) {
2158
+ return;
2159
+ }
2160
+ for (var i = 0, callback; callback = callbacks[i++]; ) {
2161
+ callback(env);
2162
+ }
2163
+ }
2164
+ },
2165
+ Token
2166
+ };
2167
+ _self2.Prism = _;
2168
+ function Token(type, content, alias2, matchedStr) {
2169
+ this.type = type;
2170
+ this.content = content;
2171
+ this.alias = alias2;
2172
+ this.length = (matchedStr || "").length | 0;
2173
+ }
2174
+ Token.stringify = function stringify2(o, language) {
2175
+ if (typeof o == "string") {
2176
+ return o;
2177
+ }
2178
+ if (Array.isArray(o)) {
2179
+ var s = "";
2180
+ o.forEach(function(e) {
2181
+ s += stringify2(e, language);
2182
+ });
2183
+ return s;
2184
+ }
2185
+ var env = {
2186
+ type: o.type,
2187
+ content: stringify2(o.content, language),
2188
+ tag: "span",
2189
+ classes: ["token", o.type],
2190
+ attributes: {},
2191
+ language
2192
+ };
2193
+ var aliases = o.alias;
2194
+ if (aliases) {
2195
+ if (Array.isArray(aliases)) {
2196
+ Array.prototype.push.apply(env.classes, aliases);
2197
+ } else {
2198
+ env.classes.push(aliases);
2199
+ }
2200
+ }
2201
+ _.hooks.run("wrap", env);
2202
+ var attributes2 = "";
2203
+ for (var name2 in env.attributes) {
2204
+ attributes2 += " " + name2 + '="' + (env.attributes[name2] || "").replace(/"/g, "&quot;") + '"';
2205
+ }
2206
+ return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes2 + ">" + env.content + "</" + env.tag + ">";
2207
+ };
2208
+ function matchPattern(pattern, pos, text, lookbehind) {
2209
+ pattern.lastIndex = pos;
2210
+ var match = pattern.exec(text);
2211
+ if (match && lookbehind && match[1]) {
2212
+ var lookbehindLength = match[1].length;
2213
+ match.index += lookbehindLength;
2214
+ match[0] = match[0].slice(lookbehindLength);
2215
+ }
2216
+ return match;
2217
+ }
2218
+ function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
2219
+ for (var token in grammar) {
2220
+ if (!grammar.hasOwnProperty(token) || !grammar[token]) {
2221
+ continue;
2222
+ }
2223
+ var patterns = grammar[token];
2224
+ patterns = Array.isArray(patterns) ? patterns : [patterns];
2225
+ for (var j = 0; j < patterns.length; ++j) {
2226
+ if (rematch && rematch.cause == token + "," + j) {
2227
+ return;
2228
+ }
2229
+ var patternObj = patterns[j];
2230
+ var inside = patternObj.inside;
2231
+ var lookbehind = !!patternObj.lookbehind;
2232
+ var greedy = !!patternObj.greedy;
2233
+ var alias2 = patternObj.alias;
2234
+ if (greedy && !patternObj.pattern.global) {
2235
+ var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
2236
+ patternObj.pattern = RegExp(patternObj.pattern.source, flags + "g");
2237
+ }
2238
+ var pattern = patternObj.pattern || patternObj;
2239
+ for (var currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail; pos += currentNode.value.length, currentNode = currentNode.next) {
2240
+ if (rematch && pos >= rematch.reach) {
2241
+ break;
2242
+ }
2243
+ var str = currentNode.value;
2244
+ if (tokenList.length > text.length) {
2245
+ return;
2246
+ }
2247
+ if (str instanceof Token) {
2248
+ continue;
2249
+ }
2250
+ var removeCount = 1;
2251
+ var match;
2252
+ if (greedy) {
2253
+ match = matchPattern(pattern, pos, text, lookbehind);
2254
+ if (!match || match.index >= text.length) {
2255
+ break;
2256
+ }
2257
+ var from = match.index;
2258
+ var to = match.index + match[0].length;
2259
+ var p = pos;
2260
+ p += currentNode.value.length;
2261
+ while (from >= p) {
2262
+ currentNode = currentNode.next;
2263
+ p += currentNode.value.length;
2264
+ }
2265
+ p -= currentNode.value.length;
2266
+ pos = p;
2267
+ if (currentNode.value instanceof Token) {
2268
+ continue;
2269
+ }
2270
+ for (var k = currentNode; k !== tokenList.tail && (p < to || typeof k.value === "string"); k = k.next) {
2271
+ removeCount++;
2272
+ p += k.value.length;
2273
+ }
2274
+ removeCount--;
2275
+ str = text.slice(pos, p);
2276
+ match.index -= pos;
2277
+ } else {
2278
+ match = matchPattern(pattern, 0, str, lookbehind);
2279
+ if (!match) {
2280
+ continue;
2281
+ }
2282
+ }
2283
+ var from = match.index;
2284
+ var matchStr = match[0];
2285
+ var before = str.slice(0, from);
2286
+ var after = str.slice(from + matchStr.length);
2287
+ var reach = pos + str.length;
2288
+ if (rematch && reach > rematch.reach) {
2289
+ rematch.reach = reach;
2290
+ }
2291
+ var removeFrom = currentNode.prev;
2292
+ if (before) {
2293
+ removeFrom = addAfter(tokenList, removeFrom, before);
2294
+ pos += before.length;
2295
+ }
2296
+ removeRange(tokenList, removeFrom, removeCount);
2297
+ var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias2, matchStr);
2298
+ currentNode = addAfter(tokenList, removeFrom, wrapped);
2299
+ if (after) {
2300
+ addAfter(tokenList, currentNode, after);
2301
+ }
2302
+ if (removeCount > 1) {
2303
+ var nestedRematch = {
2304
+ cause: token + "," + j,
2305
+ reach
2306
+ };
2307
+ matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
2308
+ if (rematch && nestedRematch.reach > rematch.reach) {
2309
+ rematch.reach = nestedRematch.reach;
2310
+ }
2311
+ }
2312
+ }
2313
+ }
2314
+ }
2315
+ }
2316
+ function LinkedList() {
2317
+ var head = { value: null, prev: null, next: null };
2318
+ var tail = { value: null, prev: head, next: null };
2319
+ head.next = tail;
2320
+ this.head = head;
2321
+ this.tail = tail;
2322
+ this.length = 0;
2323
+ }
2324
+ function addAfter(list, node, value) {
2325
+ var next = node.next;
2326
+ var newNode = { value, prev: node, next };
2327
+ node.next = newNode;
2328
+ next.prev = newNode;
2329
+ list.length++;
2330
+ return newNode;
2331
+ }
2332
+ function removeRange(list, node, count) {
2333
+ var next = node.next;
2334
+ for (var i = 0; i < count && next !== list.tail; i++) {
2335
+ next = next.next;
2336
+ }
2337
+ node.next = next;
2338
+ next.prev = node;
2339
+ list.length -= i;
2340
+ }
2341
+ function toArray(list) {
2342
+ var array = [];
2343
+ var node = list.head.next;
2344
+ while (node !== list.tail) {
2345
+ array.push(node.value);
2346
+ node = node.next;
2347
+ }
2348
+ return array;
2349
+ }
2350
+ if (!_self2.document) {
2351
+ if (!_self2.addEventListener) {
2352
+ return _;
2353
+ }
2354
+ if (!_.disableWorkerMessageHandler) {
2355
+ _self2.addEventListener("message", function(evt) {
2356
+ var message = JSON.parse(evt.data);
2357
+ var lang2 = message.language;
2358
+ var code = message.code;
2359
+ var immediateClose = message.immediateClose;
2360
+ _self2.postMessage(_.highlight(code, _.languages[lang2], lang2));
2361
+ if (immediateClose) {
2362
+ _self2.close();
2363
+ }
2364
+ }, false);
2365
+ }
2366
+ return _;
2367
+ }
2368
+ var script = _.util.currentScript();
2369
+ if (script) {
2370
+ _.filename = script.src;
2371
+ if (script.hasAttribute("data-manual")) {
2372
+ _.manual = true;
2373
+ }
2374
+ }
2375
+ function highlightAutomaticallyCallback() {
2376
+ if (!_.manual) {
2377
+ _.highlightAll();
2378
+ }
2379
+ }
2380
+ if (!_.manual) {
2381
+ var readyState = document.readyState;
2382
+ if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
2383
+ document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
2384
+ } else {
2385
+ if (window.requestAnimationFrame) {
2386
+ window.requestAnimationFrame(highlightAutomaticallyCallback);
2387
+ } else {
2388
+ window.setTimeout(highlightAutomaticallyCallback, 16);
2389
+ }
2390
+ }
2391
+ }
2392
+ return _;
2393
+ }(_self);
2394
+ if (module.exports) {
2395
+ module.exports = Prism2;
2396
+ }
2397
+ if (typeof commonjsGlobal !== "undefined") {
2398
+ commonjsGlobal.Prism = Prism2;
2399
+ }
2400
+ })(prismCore);
2401
+ var prismCoreExports = prismCore.exports;
2402
+ var ctx = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof commonjsGlobal === "object" ? commonjsGlobal : {};
2403
+ var restore = capture();
2404
+ ctx.Prism = { manual: true, disableWorkerMessageHandler: true };
2405
+ var h = hastscript;
2406
+ var decode = parseEntities_1;
2407
+ var Prism = prismCoreExports;
2408
+ var markup = markup_1;
2409
+ var css = css_1;
2410
+ var clike = clike_1;
2411
+ var js = javascript_1;
2412
+ restore();
2413
+ var own = {}.hasOwnProperty;
2414
+ function Refractor() {
2415
+ }
2416
+ Refractor.prototype = Prism;
2417
+ var refract = new Refractor();
2418
+ var core = refract;
2419
+ refract.highlight = highlight;
2420
+ refract.register = register;
2421
+ refract.alias = alias;
2422
+ refract.registered = registered;
2423
+ refract.listLanguages = listLanguages;
2424
+ register(markup);
2425
+ register(css);
2426
+ register(clike);
2427
+ register(js);
2428
+ refract.util.encode = encode;
2429
+ refract.Token.stringify = stringify;
2430
+ function register(grammar) {
2431
+ if (typeof grammar !== "function" || !grammar.displayName) {
2432
+ throw new Error("Expected `function` for `grammar`, got `" + grammar + "`");
2433
+ }
2434
+ if (refract.languages[grammar.displayName] === void 0) {
2435
+ grammar(refract);
2436
+ }
2437
+ }
2438
+ function alias(name2, alias2) {
2439
+ var languages = refract.languages;
2440
+ var map = name2;
2441
+ var key;
2442
+ var list;
2443
+ var length;
2444
+ var index;
2445
+ if (alias2) {
2446
+ map = {};
2447
+ map[name2] = alias2;
2448
+ }
2449
+ for (key in map) {
2450
+ list = map[key];
2451
+ list = typeof list === "string" ? [list] : list;
2452
+ length = list.length;
2453
+ index = -1;
2454
+ while (++index < length) {
2455
+ languages[list[index]] = languages[key];
2456
+ }
2457
+ }
2458
+ }
2459
+ function highlight(value, name2) {
2460
+ var sup = Prism.highlight;
2461
+ var grammar;
2462
+ if (typeof value !== "string") {
2463
+ throw new Error("Expected `string` for `value`, got `" + value + "`");
2464
+ }
2465
+ if (refract.util.type(name2) === "Object") {
2466
+ grammar = name2;
2467
+ name2 = null;
2468
+ } else {
2469
+ if (typeof name2 !== "string") {
2470
+ throw new Error("Expected `string` for `name`, got `" + name2 + "`");
2471
+ }
2472
+ if (own.call(refract.languages, name2)) {
2473
+ grammar = refract.languages[name2];
2474
+ } else {
2475
+ throw new Error("Unknown language: `" + name2 + "` is not registered");
2476
+ }
2477
+ }
2478
+ return sup.call(this, value, grammar, name2);
2479
+ }
2480
+ function registered(language) {
2481
+ if (typeof language !== "string") {
2482
+ throw new Error("Expected `string` for `language`, got `" + language + "`");
2483
+ }
2484
+ return own.call(refract.languages, language);
2485
+ }
2486
+ function listLanguages() {
2487
+ var languages = refract.languages;
2488
+ var list = [];
2489
+ var language;
2490
+ for (language in languages) {
2491
+ if (own.call(languages, language) && typeof languages[language] === "object") {
2492
+ list.push(language);
2493
+ }
2494
+ }
2495
+ return list;
2496
+ }
2497
+ function stringify(value, language, parent) {
2498
+ var env;
2499
+ if (typeof value === "string") {
2500
+ return { type: "text", value };
2501
+ }
2502
+ if (refract.util.type(value) === "Array") {
2503
+ return stringifyAll(value, language);
2504
+ }
2505
+ env = {
2506
+ type: value.type,
2507
+ content: refract.Token.stringify(value.content, language, parent),
2508
+ tag: "span",
2509
+ classes: ["token", value.type],
2510
+ attributes: {},
2511
+ language,
2512
+ parent
2513
+ };
2514
+ if (value.alias) {
2515
+ env.classes = env.classes.concat(value.alias);
2516
+ }
2517
+ refract.hooks.run("wrap", env);
2518
+ return h(
2519
+ env.tag + "." + env.classes.join("."),
2520
+ attributes(env.attributes),
2521
+ env.content
2522
+ );
2523
+ }
2524
+ function stringifyAll(values, language) {
2525
+ var result = [];
2526
+ var length = values.length;
2527
+ var index = -1;
2528
+ var value;
2529
+ while (++index < length) {
2530
+ value = values[index];
2531
+ if (value !== "" && value !== null && value !== void 0) {
2532
+ result.push(value);
2533
+ }
2534
+ }
2535
+ index = -1;
2536
+ length = result.length;
2537
+ while (++index < length) {
2538
+ value = result[index];
2539
+ result[index] = refract.Token.stringify(value, language, result);
2540
+ }
2541
+ return result;
2542
+ }
2543
+ function encode(tokens) {
2544
+ return tokens;
2545
+ }
2546
+ function attributes(attrs) {
2547
+ var key;
2548
+ for (key in attrs) {
2549
+ attrs[key] = decode(attrs[key]);
2550
+ }
2551
+ return attrs;
2552
+ }
2553
+ function capture() {
2554
+ var defined = "Prism" in ctx;
2555
+ var current = defined ? ctx.Prism : void 0;
2556
+ return restore2;
2557
+ function restore2() {
2558
+ if (defined) {
2559
+ ctx.Prism = current;
2560
+ } else {
2561
+ delete ctx.Prism;
2562
+ }
2563
+ defined = void 0;
2564
+ current = void 0;
2565
+ }
2566
+ }
2567
+ const refractor = /* @__PURE__ */ getDefaultExportFromCjs(core);
2568
+ const core$1 = /* @__PURE__ */ _mergeNamespaces({
2569
+ __proto__: null,
2570
+ default: refractor
2571
+ }, [core]);
2572
+ export {
2573
+ core$1 as c
2574
+ };
2575
+ //# sourceMappingURL=core-QGfjITFA.js.map