@milkdown/crepe 7.3.6 → 7.5.0

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 (991) hide show
  1. package/lib/cjs/_view-N32ied53.js +27 -0
  2. package/lib/cjs/_view-N32ied53.js.map +1 -0
  3. package/lib/cjs/apl-99bWvYTf.js +145 -0
  4. package/lib/cjs/apl-99bWvYTf.js.map +1 -0
  5. package/lib/cjs/asciiarmor-cf0JLIr_.js +59 -0
  6. package/lib/cjs/asciiarmor-cf0JLIr_.js.map +1 -0
  7. package/lib/cjs/asn1-H4XzAvBS.js +195 -0
  8. package/lib/cjs/asn1-H4XzAvBS.js.map +1 -0
  9. package/lib/cjs/asterisk-0FgJEfZB.js +190 -0
  10. package/lib/cjs/asterisk-0FgJEfZB.js.map +1 -0
  11. package/lib/cjs/brainfuck-JX7vRZy7.js +73 -0
  12. package/lib/cjs/brainfuck-JX7vRZy7.js.map +1 -0
  13. package/lib/cjs/clike-ueXlMQy5.js +1034 -0
  14. package/lib/cjs/clike-ueXlMQy5.js.map +1 -0
  15. package/lib/cjs/clojure-6iDAG5oi.js +277 -0
  16. package/lib/cjs/clojure-6iDAG5oi.js.map +1 -0
  17. package/lib/cjs/clsx-dASsG01A.js +6 -0
  18. package/lib/cjs/clsx-dASsG01A.js.map +1 -0
  19. package/lib/cjs/cmake-L0RIBnfc.js +84 -0
  20. package/lib/cjs/cmake-L0RIBnfc.js.map +1 -0
  21. package/lib/cjs/cobol-oxkMh1GJ.js +238 -0
  22. package/lib/cjs/cobol-oxkMh1GJ.js.map +1 -0
  23. package/lib/cjs/coffeescript--eauIeRQ.js +332 -0
  24. package/lib/cjs/coffeescript--eauIeRQ.js.map +1 -0
  25. package/lib/cjs/commonlisp-pgSu-q6f.js +111 -0
  26. package/lib/cjs/commonlisp-pgSu-q6f.js.map +1 -0
  27. package/lib/cjs/crystal-2y3I5ibZ.js +422 -0
  28. package/lib/cjs/crystal-2y3I5ibZ.js.map +1 -0
  29. package/lib/cjs/css-WH69cXzo.js +855 -0
  30. package/lib/cjs/css-WH69cXzo.js.map +1 -0
  31. package/lib/cjs/cypher-da-dqVyQ.js +125 -0
  32. package/lib/cjs/cypher-da-dqVyQ.js.map +1 -0
  33. package/lib/cjs/d-58J7EOkP.js +208 -0
  34. package/lib/cjs/d-58J7EOkP.js.map +1 -0
  35. package/lib/cjs/diff-437Hfzqm.js +33 -0
  36. package/lib/cjs/diff-437Hfzqm.js.map +1 -0
  37. package/lib/cjs/dockerfile-7i0OoaQe.js +202 -0
  38. package/lib/cjs/dockerfile-7i0OoaQe.js.map +1 -0
  39. package/lib/cjs/dtd-AKekCPPB.js +124 -0
  40. package/lib/cjs/dtd-AKekCPPB.js.map +1 -0
  41. package/lib/cjs/dylan-DLEmvz1I.js +340 -0
  42. package/lib/cjs/dylan-DLEmvz1I.js.map +1 -0
  43. package/lib/cjs/ebnf-36cJWqxB.js +154 -0
  44. package/lib/cjs/ebnf-36cJWqxB.js.map +1 -0
  45. package/lib/cjs/ecl-UWr5vJKJ.js +193 -0
  46. package/lib/cjs/ecl-UWr5vJKJ.js.map +1 -0
  47. package/lib/cjs/eiffel-Su-C9LAY.js +149 -0
  48. package/lib/cjs/eiffel-Su-C9LAY.js.map +1 -0
  49. package/lib/cjs/elm-vNNfVJj7.js +233 -0
  50. package/lib/cjs/elm-vNNfVJj7.js.map +1 -0
  51. package/lib/cjs/erlang-NM9dgYaS.js +584 -0
  52. package/lib/cjs/erlang-NM9dgYaS.js.map +1 -0
  53. package/lib/cjs/factor-RWs-4aWg.js +68 -0
  54. package/lib/cjs/factor-RWs-4aWg.js.map +1 -0
  55. package/lib/cjs/fcl-acUhGCfs.js +157 -0
  56. package/lib/cjs/fcl-acUhGCfs.js.map +1 -0
  57. package/lib/cjs/floating-ui.dom-2cjBpir5.js +1134 -0
  58. package/lib/cjs/floating-ui.dom-2cjBpir5.js.map +1 -0
  59. package/lib/cjs/forth-sDkE6z3A.js +167 -0
  60. package/lib/cjs/forth-sDkE6z3A.js.map +1 -0
  61. package/lib/cjs/fortran-gkb4yvdk.js +175 -0
  62. package/lib/cjs/fortran-gkb4yvdk.js.map +1 -0
  63. package/lib/cjs/gas-mNA0qvkv.js +347 -0
  64. package/lib/cjs/gas-mNA0qvkv.js.map +1 -0
  65. package/lib/cjs/gherkin-5uyKpXXh.js +150 -0
  66. package/lib/cjs/gherkin-5uyKpXXh.js.map +1 -0
  67. package/lib/cjs/go-5XitXoIZ.js +167 -0
  68. package/lib/cjs/go-5XitXoIZ.js.map +1 -0
  69. package/lib/cjs/groovy-mz3pWMKN.js +233 -0
  70. package/lib/cjs/groovy-mz3pWMKN.js.map +1 -0
  71. package/lib/cjs/haskell-9KaSS7kb.js +242 -0
  72. package/lib/cjs/haskell-9KaSS7kb.js.map +1 -0
  73. package/lib/cjs/haxe-L8h6Pvni.js +494 -0
  74. package/lib/cjs/haxe-L8h6Pvni.js.map +1 -0
  75. package/lib/cjs/helper-1aludV1Z.js +15 -0
  76. package/lib/cjs/helper-1aludV1Z.js.map +1 -0
  77. package/lib/cjs/http-BFQQnRR-.js +92 -0
  78. package/lib/cjs/http-BFQQnRR-.js.map +1 -0
  79. package/lib/cjs/idl-29T-AzAy.js +277 -0
  80. package/lib/cjs/idl-29T-AzAy.js.map +1 -0
  81. package/lib/cjs/index--sa4NMpW.js +119 -0
  82. package/lib/cjs/index--sa4NMpW.js.map +1 -0
  83. package/lib/cjs/index--tnUmqZ_.js +108 -0
  84. package/lib/cjs/index--tnUmqZ_.js.map +1 -0
  85. package/lib/cjs/index-1vHyMXH8.js +203 -0
  86. package/lib/cjs/index-1vHyMXH8.js.map +1 -0
  87. package/lib/cjs/index-28q261C7.js +448 -0
  88. package/lib/cjs/index-28q261C7.js.map +1 -0
  89. package/lib/cjs/index-55VIM-52.js +156 -0
  90. package/lib/cjs/index-55VIM-52.js.map +1 -0
  91. package/lib/cjs/index-92bwto5V.js +405 -0
  92. package/lib/cjs/index-92bwto5V.js.map +1 -0
  93. package/lib/cjs/index-Buu2tD9O.js +534 -0
  94. package/lib/cjs/index-Buu2tD9O.js.map +1 -0
  95. package/lib/cjs/index-E4Ist86Z.js +532 -0
  96. package/lib/cjs/index-E4Ist86Z.js.map +1 -0
  97. package/lib/cjs/index-FbNqlZU8.js +263 -0
  98. package/lib/cjs/index-FbNqlZU8.js.map +1 -0
  99. package/lib/cjs/index-HH5lPgpj.js +443 -0
  100. package/lib/cjs/index-HH5lPgpj.js.map +1 -0
  101. package/lib/cjs/index-J1-yHn7v.js +128 -0
  102. package/lib/cjs/index-J1-yHn7v.js.map +1 -0
  103. package/lib/cjs/index-J3XY9IPt.js +78 -0
  104. package/lib/cjs/index-J3XY9IPt.js.map +1 -0
  105. package/lib/cjs/index-Jztk6JlP.js +25698 -0
  106. package/lib/cjs/index-Jztk6JlP.js.map +1 -0
  107. package/lib/cjs/index-N6pPZY61.js +191 -0
  108. package/lib/cjs/index-N6pPZY61.js.map +1 -0
  109. package/lib/cjs/index-TUJs6KKL.js +472 -0
  110. package/lib/cjs/index-TUJs6KKL.js.map +1 -0
  111. package/lib/cjs/index-Tjg8KyK7.js +398 -0
  112. package/lib/cjs/index-Tjg8KyK7.js.map +1 -0
  113. package/lib/cjs/index-VYwHTL3F.js +161 -0
  114. package/lib/cjs/index-VYwHTL3F.js.map +1 -0
  115. package/lib/cjs/index-_GOdKqUK.js +1147 -0
  116. package/lib/cjs/index-_GOdKqUK.js.map +1 -0
  117. package/lib/cjs/index-cKQcw-eu.js +386 -0
  118. package/lib/cjs/index-cKQcw-eu.js.map +1 -0
  119. package/lib/cjs/index-c_OzudR7.js +699 -0
  120. package/lib/cjs/index-c_OzudR7.js.map +1 -0
  121. package/lib/cjs/index-cb-5m0vG.js +2519 -0
  122. package/lib/cjs/index-cb-5m0vG.js.map +1 -0
  123. package/lib/cjs/index-cpC-j5Nt.js +176 -0
  124. package/lib/cjs/index-cpC-j5Nt.js.map +1 -0
  125. package/lib/cjs/index-crv_k6dv.js +1353 -0
  126. package/lib/cjs/index-crv_k6dv.js.map +1 -0
  127. package/lib/cjs/index-jlfsu92T.js +362 -0
  128. package/lib/cjs/index-jlfsu92T.js.map +1 -0
  129. package/lib/cjs/index-jn036wuh.js +1045 -0
  130. package/lib/cjs/index-jn036wuh.js.map +1 -0
  131. package/lib/cjs/index-kqz-P6o6.js +55 -0
  132. package/lib/cjs/index-kqz-P6o6.js.map +1 -0
  133. package/lib/cjs/index-lBumFRUQ.js +209 -0
  134. package/lib/cjs/index-lBumFRUQ.js.map +1 -0
  135. package/lib/cjs/index-lUNj3xuC.js +81 -0
  136. package/lib/cjs/index-lUNj3xuC.js.map +1 -0
  137. package/lib/cjs/index-mcxgNBq9.js +464 -0
  138. package/lib/cjs/index-mcxgNBq9.js.map +1 -0
  139. package/lib/cjs/index-nTfDKYYi.js +1029 -0
  140. package/lib/cjs/index-nTfDKYYi.js.map +1 -0
  141. package/lib/cjs/index-tBw4NmwY.js +33852 -0
  142. package/lib/cjs/index-tBw4NmwY.js.map +1 -0
  143. package/lib/cjs/index-vfzLCXfi.js +774 -0
  144. package/lib/cjs/index-vfzLCXfi.js.map +1 -0
  145. package/lib/cjs/index-von4W2LG.js +356 -0
  146. package/lib/cjs/index-von4W2LG.js.map +1 -0
  147. package/lib/cjs/index-z6pe2alg.js +20 -0
  148. package/lib/cjs/index-z6pe2alg.js.map +1 -0
  149. package/lib/cjs/index-zXSAHvAj.js +1877 -0
  150. package/lib/cjs/index-zXSAHvAj.js.map +1 -0
  151. package/lib/cjs/index.js +20 -0
  152. package/lib/cjs/index.js.map +1 -0
  153. package/lib/cjs/javascript-5-BTydbD.js +928 -0
  154. package/lib/cjs/javascript-5-BTydbD.js.map +1 -0
  155. package/lib/cjs/jinja2-BWMz4gPk.js +174 -0
  156. package/lib/cjs/jinja2-BWMz4gPk.js.map +1 -0
  157. package/lib/cjs/julia-dtR9J3KZ.js +372 -0
  158. package/lib/cjs/julia-dtR9J3KZ.js.map +1 -0
  159. package/lib/cjs/livescript-YxT0INe3.js +262 -0
  160. package/lib/cjs/livescript-YxT0INe3.js.map +1 -0
  161. package/lib/cjs/lua-h7_AXjy9.js +140 -0
  162. package/lib/cjs/lua-h7_AXjy9.js.map +1 -0
  163. package/lib/cjs/mathematica-Zc57fOr3.js +156 -0
  164. package/lib/cjs/mathematica-Zc57fOr3.js.map +1 -0
  165. package/lib/cjs/mbox-ltKsKgJd.js +117 -0
  166. package/lib/cjs/mbox-ltKsKgJd.js.map +1 -0
  167. package/lib/cjs/mirc-xTLeWqmy.js +179 -0
  168. package/lib/cjs/mirc-xTLeWqmy.js.map +1 -0
  169. package/lib/cjs/mllike-xukl-Kjp.js +351 -0
  170. package/lib/cjs/mllike-xukl-Kjp.js.map +1 -0
  171. package/lib/cjs/modelica-LsXtAawk.js +195 -0
  172. package/lib/cjs/modelica-LsXtAawk.js.map +1 -0
  173. package/lib/cjs/mscgen-9HooYIVW.js +154 -0
  174. package/lib/cjs/mscgen-9HooYIVW.js.map +1 -0
  175. package/lib/cjs/mumps-VXqGp84f.js +132 -0
  176. package/lib/cjs/mumps-VXqGp84f.js.map +1 -0
  177. package/lib/cjs/nginx-UrubUbn1.js +166 -0
  178. package/lib/cjs/nginx-UrubUbn1.js.map +1 -0
  179. package/lib/cjs/nsis-c2AYwqyy.js +83 -0
  180. package/lib/cjs/nsis-c2AYwqyy.js.map +1 -0
  181. package/lib/cjs/ntriples-N1nwiheD.js +144 -0
  182. package/lib/cjs/ntriples-N1nwiheD.js.map +1 -0
  183. package/lib/cjs/octave-ElonStfZ.js +115 -0
  184. package/lib/cjs/octave-ElonStfZ.js.map +1 -0
  185. package/lib/cjs/oz-7VQTnCfu.js +238 -0
  186. package/lib/cjs/oz-7VQTnCfu.js.map +1 -0
  187. package/lib/cjs/pascal-yq2Cb88Q.js +127 -0
  188. package/lib/cjs/pascal-yq2Cb88Q.js.map +1 -0
  189. package/lib/cjs/perl-hJq4byS9.js +822 -0
  190. package/lib/cjs/perl-hJq4byS9.js.map +1 -0
  191. package/lib/cjs/pig-2syuOlAa.js +152 -0
  192. package/lib/cjs/pig-2syuOlAa.js.map +1 -0
  193. package/lib/cjs/powershell-NDwxuSDg.js +384 -0
  194. package/lib/cjs/powershell-NDwxuSDg.js.map +1 -0
  195. package/lib/cjs/properties-wacODxDJ.js +65 -0
  196. package/lib/cjs/properties-wacODxDJ.js.map +1 -0
  197. package/lib/cjs/protobuf-zVHZwskk.js +57 -0
  198. package/lib/cjs/protobuf-zVHZwskk.js.map +1 -0
  199. package/lib/cjs/puppet-koQikqO-.js +208 -0
  200. package/lib/cjs/puppet-koQikqO-.js.map +1 -0
  201. package/lib/cjs/python-P3UsKHbj.js +394 -0
  202. package/lib/cjs/python-P3UsKHbj.js.map +1 -0
  203. package/lib/cjs/q-Z_d2uXoA.js +126 -0
  204. package/lib/cjs/q-Z_d2uXoA.js.map +1 -0
  205. package/lib/cjs/r-J6Jl9z1i.js +177 -0
  206. package/lib/cjs/r-J6Jl9z1i.js.map +1 -0
  207. package/lib/cjs/rpm-6C0Omumu.js +93 -0
  208. package/lib/cjs/rpm-6C0Omumu.js.map +1 -0
  209. package/lib/cjs/ruby-POVyUmsb.js +290 -0
  210. package/lib/cjs/ruby-POVyUmsb.js.map +1 -0
  211. package/lib/cjs/sas-vDtpSmFr.js +271 -0
  212. package/lib/cjs/sas-vDtpSmFr.js.map +1 -0
  213. package/lib/cjs/schema-RVrwDDcq.js +74 -0
  214. package/lib/cjs/schema-RVrwDDcq.js.map +1 -0
  215. package/lib/cjs/scheme-5AA5BH7S.js +266 -0
  216. package/lib/cjs/scheme-5AA5BH7S.js.map +1 -0
  217. package/lib/cjs/shell-_ztDMiW6.js +148 -0
  218. package/lib/cjs/shell-_ztDMiW6.js.map +1 -0
  219. package/lib/cjs/sieve-R_vzlbvH.js +181 -0
  220. package/lib/cjs/sieve-R_vzlbvH.js.map +1 -0
  221. package/lib/cjs/simple-mode-ZwmNbV0h.js +138 -0
  222. package/lib/cjs/simple-mode-ZwmNbV0h.js.map +1 -0
  223. package/lib/cjs/smalltalk-dWLp5zN8.js +156 -0
  224. package/lib/cjs/smalltalk-dWLp5zN8.js.map +1 -0
  225. package/lib/cjs/solr-wSmvjKI8.js +83 -0
  226. package/lib/cjs/solr-wSmvjKI8.js.map +1 -0
  227. package/lib/cjs/sparql-GNU_0xKB.js +173 -0
  228. package/lib/cjs/sparql-GNU_0xKB.js.map +1 -0
  229. package/lib/cjs/spreadsheet-BiqYLk6M.js +101 -0
  230. package/lib/cjs/spreadsheet-BiqYLk6M.js.map +1 -0
  231. package/lib/cjs/sql-9GpHBPsC.js +497 -0
  232. package/lib/cjs/sql-9GpHBPsC.js.map +1 -0
  233. package/lib/cjs/stex-1V41CNLk.js +250 -0
  234. package/lib/cjs/stex-1V41CNLk.js.map +1 -0
  235. package/lib/cjs/stylus-H6hn9z_G.js +753 -0
  236. package/lib/cjs/stylus-H6hn9z_G.js.map +1 -0
  237. package/lib/cjs/swift-Xv5f8zgN.js +205 -0
  238. package/lib/cjs/swift-Xv5f8zgN.js.map +1 -0
  239. package/lib/cjs/tcl-LI-LOw_t.js +128 -0
  240. package/lib/cjs/tcl-LI-LOw_t.js.map +1 -0
  241. package/lib/cjs/textile-3NvRPUgg.js +444 -0
  242. package/lib/cjs/textile-3NvRPUgg.js.map +1 -0
  243. package/lib/cjs/tiddlywiki-PkMzy8_R.js +281 -0
  244. package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +1 -0
  245. package/lib/cjs/tiki-Zk_GnEC8.js +292 -0
  246. package/lib/cjs/tiki-Zk_GnEC8.js.map +1 -0
  247. package/lib/cjs/todoList-Ze4FLMlx.js +415 -0
  248. package/lib/cjs/todoList-Ze4FLMlx.js.map +1 -0
  249. package/lib/cjs/toml-36gJ0YCq.js +78 -0
  250. package/lib/cjs/toml-36gJ0YCq.js.map +1 -0
  251. package/lib/cjs/tooltip-plugin--lhebztC.js +191 -0
  252. package/lib/cjs/tooltip-plugin--lhebztC.js.map +1 -0
  253. package/lib/cjs/troff-RLZ_o61o.js +67 -0
  254. package/lib/cjs/troff-RLZ_o61o.js.map +1 -0
  255. package/lib/cjs/ttcn-cfg-twaoJYvf.js +204 -0
  256. package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +1 -0
  257. package/lib/cjs/ttcn-kGwvGb2v.js +260 -0
  258. package/lib/cjs/ttcn-kGwvGb2v.js.map +1 -0
  259. package/lib/cjs/turtle-nnevat7b.js +144 -0
  260. package/lib/cjs/turtle-nnevat7b.js.map +1 -0
  261. package/lib/cjs/vb-fO_I9s3s.js +252 -0
  262. package/lib/cjs/vb-fO_I9s3s.js.map +1 -0
  263. package/lib/cjs/vbscript-HXnn40y4.js +324 -0
  264. package/lib/cjs/vbscript-HXnn40y4.js.map +1 -0
  265. package/lib/cjs/velocity-Wn-ZfFzr.js +189 -0
  266. package/lib/cjs/velocity-Wn-ZfFzr.js.map +1 -0
  267. package/lib/cjs/verilog-y1ev34z6.js +569 -0
  268. package/lib/cjs/verilog-y1ev34z6.js.map +1 -0
  269. package/lib/cjs/vhdl-LF0oeXxc.js +177 -0
  270. package/lib/cjs/vhdl-LF0oeXxc.js.map +1 -0
  271. package/lib/cjs/webidl-6kI5KbeC.js +182 -0
  272. package/lib/cjs/webidl-6kI5KbeC.js.map +1 -0
  273. package/lib/cjs/xquery-BavrmwsO.js +428 -0
  274. package/lib/cjs/xquery-BavrmwsO.js.map +1 -0
  275. package/lib/cjs/yacas-1g_AbTrl.js +185 -0
  276. package/lib/cjs/yacas-1g_AbTrl.js.map +1 -0
  277. package/lib/cjs/z80-QYzKAAp7.js +106 -0
  278. package/lib/cjs/z80-QYzKAAp7.js.map +1 -0
  279. package/lib/esm/_view-IlZC8FA6.js +25 -0
  280. package/lib/esm/_view-IlZC8FA6.js.map +1 -0
  281. package/lib/esm/apl-eHQxyJFn.js +143 -0
  282. package/lib/esm/apl-eHQxyJFn.js.map +1 -0
  283. package/lib/esm/asciiarmor-Z-IGYCI4.js +57 -0
  284. package/lib/esm/asciiarmor-Z-IGYCI4.js.map +1 -0
  285. package/lib/esm/asn1-gF7x-q1y.js +193 -0
  286. package/lib/esm/asn1-gF7x-q1y.js.map +1 -0
  287. package/lib/esm/asterisk-swk20ftp.js +188 -0
  288. package/lib/esm/asterisk-swk20ftp.js.map +1 -0
  289. package/lib/esm/brainfuck-IFQdiQoR.js +71 -0
  290. package/lib/esm/brainfuck-IFQdiQoR.js.map +1 -0
  291. package/lib/esm/clike-q3hUF2Cx.js +1019 -0
  292. package/lib/esm/clike-q3hUF2Cx.js.map +1 -0
  293. package/lib/esm/clojure-I2Krbr2M.js +275 -0
  294. package/lib/esm/clojure-I2Krbr2M.js.map +1 -0
  295. package/lib/esm/clsx-RxCLxYpD.js +4 -0
  296. package/lib/esm/clsx-RxCLxYpD.js.map +1 -0
  297. package/lib/esm/cmake-ewwXLeuZ.js +82 -0
  298. package/lib/esm/cmake-ewwXLeuZ.js.map +1 -0
  299. package/lib/esm/cobol-fpN1nAnR.js +236 -0
  300. package/lib/esm/cobol-fpN1nAnR.js.map +1 -0
  301. package/lib/esm/coffeescript--eTFR-bH.js +330 -0
  302. package/lib/esm/coffeescript--eTFR-bH.js.map +1 -0
  303. package/lib/esm/commonlisp-XLSwVdLc.js +109 -0
  304. package/lib/esm/commonlisp-XLSwVdLc.js.map +1 -0
  305. package/lib/esm/crystal-_r3Aa1_a.js +420 -0
  306. package/lib/esm/crystal-_r3Aa1_a.js.map +1 -0
  307. package/lib/esm/css-hgwYGMKZ.js +848 -0
  308. package/lib/esm/css-hgwYGMKZ.js.map +1 -0
  309. package/lib/esm/cypher-bbJyAa-4.js +123 -0
  310. package/lib/esm/cypher-bbJyAa-4.js.map +1 -0
  311. package/lib/esm/d-5MyulviS.js +206 -0
  312. package/lib/esm/d-5MyulviS.js.map +1 -0
  313. package/lib/esm/diff-neOaT_vk.js +31 -0
  314. package/lib/esm/diff-neOaT_vk.js.map +1 -0
  315. package/lib/esm/dockerfile-lzx42-zz.js +200 -0
  316. package/lib/esm/dockerfile-lzx42-zz.js.map +1 -0
  317. package/lib/esm/dtd-FmzPLZcQ.js +122 -0
  318. package/lib/esm/dtd-FmzPLZcQ.js.map +1 -0
  319. package/lib/esm/dylan-1HtRK4GO.js +338 -0
  320. package/lib/esm/dylan-1HtRK4GO.js.map +1 -0
  321. package/lib/esm/ebnf-Nz-pnLHy.js +152 -0
  322. package/lib/esm/ebnf-Nz-pnLHy.js.map +1 -0
  323. package/lib/esm/ecl-lQsZhQz0.js +191 -0
  324. package/lib/esm/ecl-lQsZhQz0.js.map +1 -0
  325. package/lib/esm/eiffel-R_HiEkhx.js +147 -0
  326. package/lib/esm/eiffel-R_HiEkhx.js.map +1 -0
  327. package/lib/esm/elm-KYv4VTDg.js +231 -0
  328. package/lib/esm/elm-KYv4VTDg.js.map +1 -0
  329. package/lib/esm/erlang-7YaHCBIe.js +582 -0
  330. package/lib/esm/erlang-7YaHCBIe.js.map +1 -0
  331. package/lib/esm/factor-opBU9aTK.js +66 -0
  332. package/lib/esm/factor-opBU9aTK.js.map +1 -0
  333. package/lib/esm/fcl-jm31FmFz.js +155 -0
  334. package/lib/esm/fcl-jm31FmFz.js.map +1 -0
  335. package/lib/esm/floating-ui.dom-CAYjY8Gv.js +1130 -0
  336. package/lib/esm/floating-ui.dom-CAYjY8Gv.js.map +1 -0
  337. package/lib/esm/forth-5NKbjnWh.js +165 -0
  338. package/lib/esm/forth-5NKbjnWh.js.map +1 -0
  339. package/lib/esm/fortran-dXm_-cb9.js +173 -0
  340. package/lib/esm/fortran-dXm_-cb9.js.map +1 -0
  341. package/lib/esm/gas-nsYVnsy-.js +344 -0
  342. package/lib/esm/gas-nsYVnsy-.js.map +1 -0
  343. package/lib/esm/gherkin-fzKpjm3M.js +148 -0
  344. package/lib/esm/gherkin-fzKpjm3M.js.map +1 -0
  345. package/lib/esm/go-Pn1qh7yl.js +165 -0
  346. package/lib/esm/go-Pn1qh7yl.js.map +1 -0
  347. package/lib/esm/groovy-DZY-8keZ.js +231 -0
  348. package/lib/esm/groovy-DZY-8keZ.js.map +1 -0
  349. package/lib/esm/haskell-JGh2upDd.js +240 -0
  350. package/lib/esm/haskell-JGh2upDd.js.map +1 -0
  351. package/lib/esm/haxe-1hvVK-Fy.js +491 -0
  352. package/lib/esm/haxe-1hvVK-Fy.js.map +1 -0
  353. package/lib/esm/helper-wZAtC67x.js +13 -0
  354. package/lib/esm/helper-wZAtC67x.js.map +1 -0
  355. package/lib/esm/http-mY1M77wn.js +90 -0
  356. package/lib/esm/http-mY1M77wn.js.map +1 -0
  357. package/lib/esm/idl-dy_653wH.js +275 -0
  358. package/lib/esm/idl-dy_653wH.js.map +1 -0
  359. package/lib/esm/index-0-j8Icms.js +384 -0
  360. package/lib/esm/index-0-j8Icms.js.map +1 -0
  361. package/lib/esm/index-1l-61HI-.js +358 -0
  362. package/lib/esm/index-1l-61HI-.js.map +1 -0
  363. package/lib/esm/index-3HeWs5rX.js +440 -0
  364. package/lib/esm/index-3HeWs5rX.js.map +1 -0
  365. package/lib/esm/index-3bDzhU6z.js +759 -0
  366. package/lib/esm/index-3bDzhU6z.js.map +1 -0
  367. package/lib/esm/index-6GrVnloh.js +1027 -0
  368. package/lib/esm/index-6GrVnloh.js.map +1 -0
  369. package/lib/esm/index-8QJbxTYk.js +1145 -0
  370. package/lib/esm/index-8QJbxTYk.js.map +1 -0
  371. package/lib/esm/index-9w_hdnvb.js +532 -0
  372. package/lib/esm/index-9w_hdnvb.js.map +1 -0
  373. package/lib/esm/index-A83StUe6.js +174 -0
  374. package/lib/esm/index-A83StUe6.js.map +1 -0
  375. package/lib/esm/index-AOoFzBaK.js +53 -0
  376. package/lib/esm/index-AOoFzBaK.js.map +1 -0
  377. package/lib/esm/index-DS7Z4Ach.js +686 -0
  378. package/lib/esm/index-DS7Z4Ach.js.map +1 -0
  379. package/lib/esm/index-Jvxff1vU.js +16 -0
  380. package/lib/esm/index-Jvxff1vU.js.map +1 -0
  381. package/lib/esm/index-LAdX6LsO.js +33805 -0
  382. package/lib/esm/index-LAdX6LsO.js.map +1 -0
  383. package/lib/esm/index-MB6wQe1U.js +74 -0
  384. package/lib/esm/index-MB6wQe1U.js.map +1 -0
  385. package/lib/esm/index-MxgqkRtj.js +125 -0
  386. package/lib/esm/index-MxgqkRtj.js.map +1 -0
  387. package/lib/esm/index-NZ5-xr5_.js +351 -0
  388. package/lib/esm/index-NZ5-xr5_.js.map +1 -0
  389. package/lib/esm/index-OpUb5xP6.js +1872 -0
  390. package/lib/esm/index-OpUb5xP6.js.map +1 -0
  391. package/lib/esm/index-SDPCpsD5.js +461 -0
  392. package/lib/esm/index-SDPCpsD5.js.map +1 -0
  393. package/lib/esm/index-VP76m4nW.js +157 -0
  394. package/lib/esm/index-VP76m4nW.js.map +1 -0
  395. package/lib/esm/index-Vl0W0S3h.js +259 -0
  396. package/lib/esm/index-Vl0W0S3h.js.map +1 -0
  397. package/lib/esm/index-VoX_n1l_.js +1038 -0
  398. package/lib/esm/index-VoX_n1l_.js.map +1 -0
  399. package/lib/esm/index-XH7OnwZl.js +527 -0
  400. package/lib/esm/index-XH7OnwZl.js.map +1 -0
  401. package/lib/esm/index-Yuj7sNhQ.js +105 -0
  402. package/lib/esm/index-Yuj7sNhQ.js.map +1 -0
  403. package/lib/esm/index-_4fWmRbN.js +206 -0
  404. package/lib/esm/index-_4fWmRbN.js.map +1 -0
  405. package/lib/esm/index-bexsWrgs.js +153 -0
  406. package/lib/esm/index-bexsWrgs.js.map +1 -0
  407. package/lib/esm/index-chrnjY1D.js +470 -0
  408. package/lib/esm/index-chrnjY1D.js.map +1 -0
  409. package/lib/esm/index-eqd5wtjX.js +393 -0
  410. package/lib/esm/index-eqd5wtjX.js.map +1 -0
  411. package/lib/esm/index-g_3dzLYU.js +200 -0
  412. package/lib/esm/index-g_3dzLYU.js.map +1 -0
  413. package/lib/esm/index-grT-Kuf2.js +78 -0
  414. package/lib/esm/index-grT-Kuf2.js.map +1 -0
  415. package/lib/esm/index-hF04phbf.js +189 -0
  416. package/lib/esm/index-hF04phbf.js.map +1 -0
  417. package/lib/esm/index-i79QMXpJ.js +25654 -0
  418. package/lib/esm/index-i79QMXpJ.js.map +1 -0
  419. package/lib/esm/index-rvOBAXap.js +2512 -0
  420. package/lib/esm/index-rvOBAXap.js.map +1 -0
  421. package/lib/esm/index-uP9BKsTM.js +446 -0
  422. package/lib/esm/index-uP9BKsTM.js.map +1 -0
  423. package/lib/esm/index-ueQQMSgm.js +1351 -0
  424. package/lib/esm/index-ueQQMSgm.js.map +1 -0
  425. package/lib/esm/index-x8SyiPMC.js +401 -0
  426. package/lib/esm/index-x8SyiPMC.js.map +1 -0
  427. package/lib/esm/index-zrQXXSXm.js +115 -0
  428. package/lib/esm/index-zrQXXSXm.js.map +1 -0
  429. package/lib/esm/index.js +13 -0
  430. package/lib/esm/index.js.map +1 -0
  431. package/lib/esm/javascript-TMTz-YQH.js +923 -0
  432. package/lib/esm/javascript-TMTz-YQH.js.map +1 -0
  433. package/lib/esm/jinja2-sRIdliZK.js +172 -0
  434. package/lib/esm/jinja2-sRIdliZK.js.map +1 -0
  435. package/lib/esm/julia-fK0wmpGL.js +370 -0
  436. package/lib/esm/julia-fK0wmpGL.js.map +1 -0
  437. package/lib/esm/livescript-FRbAot3D.js +260 -0
  438. package/lib/esm/livescript-FRbAot3D.js.map +1 -0
  439. package/lib/esm/lua-t4FHEjvK.js +138 -0
  440. package/lib/esm/lua-t4FHEjvK.js.map +1 -0
  441. package/lib/esm/mathematica-sn_KGlYj.js +154 -0
  442. package/lib/esm/mathematica-sn_KGlYj.js.map +1 -0
  443. package/lib/esm/mbox-KvVC319E.js +115 -0
  444. package/lib/esm/mbox-KvVC319E.js.map +1 -0
  445. package/lib/esm/mirc-PzJ0zKSk.js +177 -0
  446. package/lib/esm/mirc-PzJ0zKSk.js.map +1 -0
  447. package/lib/esm/mllike-ZK411xkN.js +347 -0
  448. package/lib/esm/mllike-ZK411xkN.js.map +1 -0
  449. package/lib/esm/modelica-ZaHlRCbp.js +193 -0
  450. package/lib/esm/modelica-ZaHlRCbp.js.map +1 -0
  451. package/lib/esm/mscgen-Kkq4o4Zm.js +150 -0
  452. package/lib/esm/mscgen-Kkq4o4Zm.js.map +1 -0
  453. package/lib/esm/mumps-M8a87-rl.js +130 -0
  454. package/lib/esm/mumps-M8a87-rl.js.map +1 -0
  455. package/lib/esm/nginx-2LJIX23E.js +164 -0
  456. package/lib/esm/nginx-2LJIX23E.js.map +1 -0
  457. package/lib/esm/nsis-zvfFgMLi.js +81 -0
  458. package/lib/esm/nsis-zvfFgMLi.js.map +1 -0
  459. package/lib/esm/ntriples-tVkHy5bk.js +142 -0
  460. package/lib/esm/ntriples-tVkHy5bk.js.map +1 -0
  461. package/lib/esm/octave-mE4T5MF5.js +113 -0
  462. package/lib/esm/octave-mE4T5MF5.js.map +1 -0
  463. package/lib/esm/oz-q-LCsuVg.js +236 -0
  464. package/lib/esm/oz-q-LCsuVg.js.map +1 -0
  465. package/lib/esm/pascal-0IgUAn4C.js +125 -0
  466. package/lib/esm/pascal-0IgUAn4C.js.map +1 -0
  467. package/lib/esm/perl-AqxdYGac.js +820 -0
  468. package/lib/esm/perl-AqxdYGac.js.map +1 -0
  469. package/lib/esm/pig-ESM-IjQj.js +150 -0
  470. package/lib/esm/pig-ESM-IjQj.js.map +1 -0
  471. package/lib/esm/powershell-CLFP0L55.js +382 -0
  472. package/lib/esm/powershell-CLFP0L55.js.map +1 -0
  473. package/lib/esm/properties-oWHNzvb9.js +63 -0
  474. package/lib/esm/properties-oWHNzvb9.js.map +1 -0
  475. package/lib/esm/protobuf-c7eMmdcc.js +55 -0
  476. package/lib/esm/protobuf-c7eMmdcc.js.map +1 -0
  477. package/lib/esm/puppet-FjzvdRJr.js +206 -0
  478. package/lib/esm/puppet-FjzvdRJr.js.map +1 -0
  479. package/lib/esm/python-3Pv0tnvt.js +390 -0
  480. package/lib/esm/python-3Pv0tnvt.js.map +1 -0
  481. package/lib/esm/q-IImW8da6.js +124 -0
  482. package/lib/esm/q-IImW8da6.js.map +1 -0
  483. package/lib/esm/r-CnEkTvR0.js +175 -0
  484. package/lib/esm/r-CnEkTvR0.js.map +1 -0
  485. package/lib/esm/rpm-Q55-fEHj.js +90 -0
  486. package/lib/esm/rpm-Q55-fEHj.js.map +1 -0
  487. package/lib/esm/ruby-zhaGB3Kh.js +288 -0
  488. package/lib/esm/ruby-zhaGB3Kh.js.map +1 -0
  489. package/lib/esm/sas-Ur9jZIOV.js +269 -0
  490. package/lib/esm/sas-Ur9jZIOV.js.map +1 -0
  491. package/lib/esm/schema-JWJqD9qa.js +71 -0
  492. package/lib/esm/schema-JWJqD9qa.js.map +1 -0
  493. package/lib/esm/scheme-daT5-Rya.js +264 -0
  494. package/lib/esm/scheme-daT5-Rya.js.map +1 -0
  495. package/lib/esm/shell-cwFL0AYP.js +146 -0
  496. package/lib/esm/shell-cwFL0AYP.js.map +1 -0
  497. package/lib/esm/sieve-MlNXFFUq.js +179 -0
  498. package/lib/esm/sieve-MlNXFFUq.js.map +1 -0
  499. package/lib/esm/simple-mode-m1rsX7Gw.js +136 -0
  500. package/lib/esm/simple-mode-m1rsX7Gw.js.map +1 -0
  501. package/lib/esm/smalltalk-xrQICp9e.js +154 -0
  502. package/lib/esm/smalltalk-xrQICp9e.js.map +1 -0
  503. package/lib/esm/solr-PU3oPgQz.js +81 -0
  504. package/lib/esm/solr-PU3oPgQz.js.map +1 -0
  505. package/lib/esm/sparql--u8NRBii.js +171 -0
  506. package/lib/esm/sparql--u8NRBii.js.map +1 -0
  507. package/lib/esm/spreadsheet-QCp0LifX.js +99 -0
  508. package/lib/esm/spreadsheet-QCp0LifX.js.map +1 -0
  509. package/lib/esm/sql-dsGfl64h.js +482 -0
  510. package/lib/esm/sql-dsGfl64h.js.map +1 -0
  511. package/lib/esm/stex-WcLBzvkD.js +247 -0
  512. package/lib/esm/stex-WcLBzvkD.js.map +1 -0
  513. package/lib/esm/stylus--A5XAqOX.js +751 -0
  514. package/lib/esm/stylus--A5XAqOX.js.map +1 -0
  515. package/lib/esm/swift-qAm73i7G.js +203 -0
  516. package/lib/esm/swift-qAm73i7G.js.map +1 -0
  517. package/lib/esm/tcl-Kdc7qxc-.js +126 -0
  518. package/lib/esm/tcl-Kdc7qxc-.js.map +1 -0
  519. package/lib/esm/textile--sz8UrIz.js +442 -0
  520. package/lib/esm/textile--sz8UrIz.js.map +1 -0
  521. package/lib/esm/tiddlywiki-xNXTeBlQ.js +279 -0
  522. package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +1 -0
  523. package/lib/esm/tiki-LCXjrNH3.js +290 -0
  524. package/lib/esm/tiki-LCXjrNH3.js.map +1 -0
  525. package/lib/esm/todoList-M-PGJKde.js +378 -0
  526. package/lib/esm/todoList-M-PGJKde.js.map +1 -0
  527. package/lib/esm/toml-Ac4tlBMn.js +76 -0
  528. package/lib/esm/toml-Ac4tlBMn.js.map +1 -0
  529. package/lib/esm/tooltip-plugin-iw2EQWIG.js +185 -0
  530. package/lib/esm/tooltip-plugin-iw2EQWIG.js.map +1 -0
  531. package/lib/esm/troff-LLW1x1Yz.js +65 -0
  532. package/lib/esm/troff-LLW1x1Yz.js.map +1 -0
  533. package/lib/esm/ttcn-ZYZ9FS3u.js +258 -0
  534. package/lib/esm/ttcn-ZYZ9FS3u.js.map +1 -0
  535. package/lib/esm/ttcn-cfg-qsvf3MfB.js +202 -0
  536. package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +1 -0
  537. package/lib/esm/turtle-wq3TqOth.js +142 -0
  538. package/lib/esm/turtle-wq3TqOth.js.map +1 -0
  539. package/lib/esm/vb-86M_JuNP.js +250 -0
  540. package/lib/esm/vb-86M_JuNP.js.map +1 -0
  541. package/lib/esm/vbscript-GueAeVug.js +321 -0
  542. package/lib/esm/vbscript-GueAeVug.js.map +1 -0
  543. package/lib/esm/velocity-7PW9GXO2.js +187 -0
  544. package/lib/esm/velocity-7PW9GXO2.js.map +1 -0
  545. package/lib/esm/verilog-PXtXH14C.js +566 -0
  546. package/lib/esm/verilog-PXtXH14C.js.map +1 -0
  547. package/lib/esm/vhdl-I8eyK83X.js +175 -0
  548. package/lib/esm/vhdl-I8eyK83X.js.map +1 -0
  549. package/lib/esm/webidl-1f8ATJ66.js +180 -0
  550. package/lib/esm/webidl-1f8ATJ66.js.map +1 -0
  551. package/lib/esm/xquery-IYp28Wx6.js +426 -0
  552. package/lib/esm/xquery-IYp28Wx6.js.map +1 -0
  553. package/lib/esm/yacas-wkENB05f.js +183 -0
  554. package/lib/esm/yacas-wkENB05f.js.map +1 -0
  555. package/lib/esm/z80-GaXiLdiV.js +103 -0
  556. package/lib/esm/z80-GaXiLdiV.js.map +1 -0
  557. package/lib/theme/_internal/classic-common.css +257 -0
  558. package/lib/theme/common/block-edit.css +120 -0
  559. package/lib/theme/common/code-mirror.css +192 -0
  560. package/lib/theme/common/cursor.css +13 -0
  561. package/lib/theme/common/image-block.css +364 -0
  562. package/lib/theme/common/link-tooltip.css +102 -0
  563. package/lib/theme/common/list-item.css +49 -0
  564. package/lib/theme/common/placeholder.css +7 -0
  565. package/lib/theme/common/prosemirror.css +1 -0
  566. package/lib/theme/common/style.css +10 -0
  567. package/lib/theme/common/table.css +217 -0
  568. package/lib/theme/common/toolbar.css +41 -0
  569. package/lib/theme/crepe/style.css +28 -0
  570. package/lib/theme/crepe-dark/style.css +28 -0
  571. package/lib/theme/frame/style.css +28 -0
  572. package/lib/theme/frame-dark/style.css +28 -0
  573. package/lib/theme/nord/style.css +28 -0
  574. package/lib/theme/nord-dark/style.css +28 -0
  575. package/lib/types/core/crepe.d.ts +21 -0
  576. package/lib/types/core/crepe.d.ts.map +1 -0
  577. package/lib/types/core/index.d.ts +2 -0
  578. package/lib/types/core/index.d.ts.map +1 -0
  579. package/lib/types/core/slice.d.ts +5 -0
  580. package/lib/types/core/slice.d.ts.map +1 -0
  581. package/lib/types/feature/block-edit/handle/component.d.ts +12 -0
  582. package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
  583. package/lib/types/feature/block-edit/handle/index.d.ts +12 -0
  584. package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
  585. package/lib/types/feature/block-edit/index.d.ts +44 -0
  586. package/lib/types/feature/block-edit/index.d.ts.map +1 -0
  587. package/lib/types/feature/block-edit/menu/component.d.ts +16 -0
  588. package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
  589. package/lib/types/feature/block-edit/menu/config.d.ts +12 -0
  590. package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
  591. package/lib/types/feature/block-edit/menu/group-builder.d.ts +29 -0
  592. package/lib/types/feature/block-edit/menu/group-builder.d.ts.map +1 -0
  593. package/lib/types/feature/block-edit/menu/index.d.ts +10 -0
  594. package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
  595. package/lib/types/feature/block-edit/menu/utils.d.ts +28 -0
  596. package/lib/types/feature/block-edit/menu/utils.d.ts.map +1 -0
  597. package/lib/types/feature/code-mirror/index.d.ts +19 -0
  598. package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
  599. package/lib/types/feature/cursor/index.d.ts +9 -0
  600. package/lib/types/feature/cursor/index.d.ts.map +1 -0
  601. package/lib/types/feature/image-block/index.d.ts +20 -0
  602. package/lib/types/feature/image-block/index.d.ts.map +1 -0
  603. package/lib/types/feature/index.d.ts +35 -0
  604. package/lib/types/feature/index.d.ts.map +1 -0
  605. package/lib/types/feature/link-tooltip/index.d.ts +13 -0
  606. package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
  607. package/lib/types/feature/list-item/index.d.ts +9 -0
  608. package/lib/types/feature/list-item/index.d.ts.map +1 -0
  609. package/lib/types/feature/placeholder/index.d.ts +11 -0
  610. package/lib/types/feature/placeholder/index.d.ts.map +1 -0
  611. package/lib/types/feature/shared.d.ts +5 -0
  612. package/lib/types/feature/shared.d.ts.map +1 -0
  613. package/lib/types/feature/table/index.d.ts +16 -0
  614. package/lib/types/feature/table/index.d.ts.map +1 -0
  615. package/lib/types/feature/toolbar/component.d.ts +15 -0
  616. package/lib/types/feature/toolbar/component.d.ts.map +1 -0
  617. package/lib/types/feature/toolbar/index.d.ts +12 -0
  618. package/lib/types/feature/toolbar/index.d.ts.map +1 -0
  619. package/lib/types/icons/alignCenter.d.ts +2 -0
  620. package/lib/types/icons/alignCenter.d.ts.map +1 -0
  621. package/lib/types/icons/alignLeft.d.ts +2 -0
  622. package/lib/types/icons/alignLeft.d.ts.map +1 -0
  623. package/lib/types/icons/alignRight.d.ts +2 -0
  624. package/lib/types/icons/alignRight.d.ts.map +1 -0
  625. package/lib/types/icons/bold.d.ts +2 -0
  626. package/lib/types/icons/bold.d.ts.map +1 -0
  627. package/lib/types/icons/bullet.d.ts +2 -0
  628. package/lib/types/icons/bullet.d.ts.map +1 -0
  629. package/lib/types/icons/bulletList.d.ts +2 -0
  630. package/lib/types/icons/bulletList.d.ts.map +1 -0
  631. package/lib/types/icons/caption.d.ts +2 -0
  632. package/lib/types/icons/caption.d.ts.map +1 -0
  633. package/lib/types/icons/checkBoxChecked.d.ts +2 -0
  634. package/lib/types/icons/checkBoxChecked.d.ts.map +1 -0
  635. package/lib/types/icons/checkBoxUnchecked.d.ts +2 -0
  636. package/lib/types/icons/checkBoxUnchecked.d.ts.map +1 -0
  637. package/lib/types/icons/chevronDown.d.ts +2 -0
  638. package/lib/types/icons/chevronDown.d.ts.map +1 -0
  639. package/lib/types/icons/clear.d.ts +2 -0
  640. package/lib/types/icons/clear.d.ts.map +1 -0
  641. package/lib/types/icons/code.d.ts +2 -0
  642. package/lib/types/icons/code.d.ts.map +1 -0
  643. package/lib/types/icons/confirm.d.ts +2 -0
  644. package/lib/types/icons/confirm.d.ts.map +1 -0
  645. package/lib/types/icons/divider.d.ts +2 -0
  646. package/lib/types/icons/divider.d.ts.map +1 -0
  647. package/lib/types/icons/dragHandle.d.ts +2 -0
  648. package/lib/types/icons/dragHandle.d.ts.map +1 -0
  649. package/lib/types/icons/edit.d.ts +2 -0
  650. package/lib/types/icons/edit.d.ts.map +1 -0
  651. package/lib/types/icons/h1.d.ts +2 -0
  652. package/lib/types/icons/h1.d.ts.map +1 -0
  653. package/lib/types/icons/h2.d.ts +2 -0
  654. package/lib/types/icons/h2.d.ts.map +1 -0
  655. package/lib/types/icons/h3.d.ts +2 -0
  656. package/lib/types/icons/h3.d.ts.map +1 -0
  657. package/lib/types/icons/h4.d.ts +2 -0
  658. package/lib/types/icons/h4.d.ts.map +1 -0
  659. package/lib/types/icons/h5.d.ts +2 -0
  660. package/lib/types/icons/h5.d.ts.map +1 -0
  661. package/lib/types/icons/h6.d.ts +2 -0
  662. package/lib/types/icons/h6.d.ts.map +1 -0
  663. package/lib/types/icons/image.d.ts +2 -0
  664. package/lib/types/icons/image.d.ts.map +1 -0
  665. package/lib/types/icons/index.d.ts +36 -0
  666. package/lib/types/icons/index.d.ts.map +1 -0
  667. package/lib/types/icons/italic.d.ts +2 -0
  668. package/lib/types/icons/italic.d.ts.map +1 -0
  669. package/lib/types/icons/link.d.ts +2 -0
  670. package/lib/types/icons/link.d.ts.map +1 -0
  671. package/lib/types/icons/menu.d.ts +2 -0
  672. package/lib/types/icons/menu.d.ts.map +1 -0
  673. package/lib/types/icons/orderedList.d.ts +2 -0
  674. package/lib/types/icons/orderedList.d.ts.map +1 -0
  675. package/lib/types/icons/plus.d.ts +2 -0
  676. package/lib/types/icons/plus.d.ts.map +1 -0
  677. package/lib/types/icons/quote.d.ts +2 -0
  678. package/lib/types/icons/quote.d.ts.map +1 -0
  679. package/lib/types/icons/remove.d.ts +2 -0
  680. package/lib/types/icons/remove.d.ts.map +1 -0
  681. package/lib/types/icons/search.d.ts +2 -0
  682. package/lib/types/icons/search.d.ts.map +1 -0
  683. package/lib/types/icons/strikethrough.d.ts +2 -0
  684. package/lib/types/icons/strikethrough.d.ts.map +1 -0
  685. package/lib/types/icons/table.d.ts +2 -0
  686. package/lib/types/icons/table.d.ts.map +1 -0
  687. package/lib/types/icons/text.d.ts +2 -0
  688. package/lib/types/icons/text.d.ts.map +1 -0
  689. package/lib/types/icons/todoList.d.ts +2 -0
  690. package/lib/types/icons/todoList.d.ts.map +1 -0
  691. package/lib/types/index.d.ts +3 -0
  692. package/lib/types/index.d.ts.map +1 -0
  693. package/lib/types/utils/index.d.ts +5 -0
  694. package/lib/types/utils/index.d.ts.map +1 -0
  695. package/package.json +25 -31
  696. package/src/core/crepe.ts +17 -17
  697. package/src/core/index.ts +0 -3
  698. package/src/core/slice.ts +2 -35
  699. package/src/feature/block-edit/handle/component.ts +13 -30
  700. package/src/feature/block-edit/handle/index.ts +39 -33
  701. package/src/feature/block-edit/index.ts +50 -9
  702. package/src/feature/block-edit/menu/component.ts +19 -12
  703. package/src/feature/block-edit/menu/config.ts +203 -275
  704. package/src/feature/block-edit/menu/group-builder.ts +50 -0
  705. package/src/feature/block-edit/menu/index.ts +20 -21
  706. package/src/feature/block-edit/menu/utils.ts +89 -0
  707. package/src/feature/code-mirror/index.ts +47 -47
  708. package/src/feature/cursor/index.ts +21 -0
  709. package/src/feature/image-block/index.ts +34 -45
  710. package/src/feature/index.ts +28 -7
  711. package/src/feature/link-tooltip/index.ts +23 -14
  712. package/src/feature/list-item/index.ts +22 -14
  713. package/src/feature/placeholder/index.ts +12 -11
  714. package/src/feature/shared.ts +5 -3
  715. package/src/feature/table/index.ts +54 -0
  716. package/src/feature/toolbar/component.ts +29 -12
  717. package/src/feature/toolbar/index.ts +31 -25
  718. package/src/icons/alignCenter.ts +7 -0
  719. package/src/icons/alignLeft.ts +7 -0
  720. package/src/icons/alignRight.ts +7 -0
  721. package/src/icons/bold.ts +7 -0
  722. package/src/icons/bullet.ts +14 -0
  723. package/src/icons/bulletList.ts +14 -0
  724. package/src/icons/caption.ts +7 -0
  725. package/src/icons/checkBoxChecked.ts +14 -0
  726. package/src/icons/checkBoxUnchecked.ts +14 -0
  727. package/src/icons/chevronDown.ts +7 -0
  728. package/src/icons/clear.ts +14 -0
  729. package/src/icons/code.ts +14 -0
  730. package/src/icons/confirm.ts +14 -0
  731. package/src/icons/divider.ts +14 -0
  732. package/src/icons/dragHandle.ts +7 -0
  733. package/src/icons/edit.ts +14 -0
  734. package/src/icons/h1.ts +14 -0
  735. package/src/icons/h2.ts +14 -0
  736. package/src/icons/h3.ts +14 -0
  737. package/src/icons/h4.ts +14 -0
  738. package/src/icons/h5.ts +14 -0
  739. package/src/icons/h6.ts +14 -0
  740. package/src/icons/image.ts +14 -0
  741. package/src/icons/index.ts +35 -0
  742. package/src/icons/italic.ts +7 -0
  743. package/src/icons/link.ts +7 -0
  744. package/src/icons/menu.ts +14 -0
  745. package/src/icons/orderedList.ts +14 -0
  746. package/src/icons/plus.ts +14 -0
  747. package/src/icons/quote.ts +14 -0
  748. package/src/icons/remove.ts +7 -0
  749. package/src/icons/search.ts +7 -0
  750. package/src/icons/strikethrough.ts +7 -0
  751. package/src/icons/table.ts +14 -0
  752. package/src/icons/text.ts +14 -0
  753. package/src/icons/todoList.ts +7 -0
  754. package/src/index.ts +0 -3
  755. package/src/theme/_internal/classic-common.css +220 -0
  756. package/src/theme/common/block-edit.css +138 -0
  757. package/src/theme/common/code-mirror.css +189 -0
  758. package/src/theme/common/cursor.css +15 -0
  759. package/src/theme/common/image-block.css +381 -0
  760. package/src/theme/common/link-tooltip.css +112 -0
  761. package/src/theme/common/list-item.css +43 -0
  762. package/src/theme/common/prosemirror.css +1 -0
  763. package/src/theme/common/style.css +10 -0
  764. package/src/theme/common/table.css +204 -0
  765. package/src/theme/common/toolbar.css +51 -0
  766. package/src/theme/crepe/style.css +28 -0
  767. package/src/theme/crepe-dark/style.css +28 -0
  768. package/src/theme/frame/style.css +28 -0
  769. package/src/theme/frame-dark/style.css +28 -0
  770. package/src/theme/nord/style.css +28 -0
  771. package/src/theme/nord-dark/style.css +28 -0
  772. package/src/utils/index.ts +6 -2
  773. package/src/vite-env.d.ts +0 -1
  774. package/lib/apl-p0IPP13W.js +0 -76
  775. package/lib/asciiarmor-lJsBxlJJ.js +0 -34
  776. package/lib/asn1-Q9v1zIy5.js +0 -102
  777. package/lib/asterisk-foNkeTjy.js +0 -273
  778. package/lib/brainfuck-0XqyXpNS.js +0 -35
  779. package/lib/clike-ak6Z6Yhe.js +0 -639
  780. package/lib/clojure-iYO8U8Sg.js +0 -810
  781. package/lib/clsx-7d8NmkQq.js +0 -21
  782. package/lib/cmake-SVzjkxV_.js +0 -28
  783. package/lib/cobol-APHEnAOX.js +0 -74
  784. package/lib/coffeescript-KqQa0SYG.js +0 -182
  785. package/lib/commonlisp-bwqNqR5V.js +0 -79
  786. package/lib/core/crepe.d.ts +0 -21
  787. package/lib/core/crepe.d.ts.map +0 -1
  788. package/lib/core/index.d.ts +0 -3
  789. package/lib/core/index.d.ts.map +0 -1
  790. package/lib/core/slice.d.ts +0 -12
  791. package/lib/core/slice.d.ts.map +0 -1
  792. package/lib/crystal-BViWuDpA.js +0 -217
  793. package/lib/css-KHXHXfXg.js +0 -1572
  794. package/lib/cypher-XpTt4zQ3.js +0 -69
  795. package/lib/d-fLig6yqY.js +0 -139
  796. package/lib/diff-WoKGLpy6.js +0 -18
  797. package/lib/dockerfile-u6f6Vw2s.js +0 -194
  798. package/lib/dtd-SIJRUW6K.js +0 -91
  799. package/lib/dylan-4HCLhpWP.js +0 -238
  800. package/lib/ebnf-h_0lged5.js +0 -77
  801. package/lib/ecl-Lf4FF0lf.js +0 -133
  802. package/lib/eiffel-qlw8KUyf.js +0 -112
  803. package/lib/elm-QRnB3zXs.js +0 -108
  804. package/lib/erlang-fyVKb7eK.js +0 -488
  805. package/lib/factor-BEeN4upY.js +0 -65
  806. package/lib/fcl-lRek3hEb.js +0 -106
  807. package/lib/feature/block-edit/handle/component.d.ts +0 -9
  808. package/lib/feature/block-edit/handle/component.d.ts.map +0 -1
  809. package/lib/feature/block-edit/handle/index.d.ts +0 -12
  810. package/lib/feature/block-edit/handle/index.d.ts.map +0 -1
  811. package/lib/feature/block-edit/index.d.ts +0 -3
  812. package/lib/feature/block-edit/index.d.ts.map +0 -1
  813. package/lib/feature/block-edit/menu/component.d.ts +0 -14
  814. package/lib/feature/block-edit/menu/component.d.ts.map +0 -1
  815. package/lib/feature/block-edit/menu/config.d.ts +0 -21
  816. package/lib/feature/block-edit/menu/config.d.ts.map +0 -1
  817. package/lib/feature/block-edit/menu/icons.d.ts +0 -14
  818. package/lib/feature/block-edit/menu/icons.d.ts.map +0 -1
  819. package/lib/feature/block-edit/menu/index.d.ts +0 -9
  820. package/lib/feature/block-edit/menu/index.d.ts.map +0 -1
  821. package/lib/feature/code-mirror/index.d.ts +0 -3
  822. package/lib/feature/code-mirror/index.d.ts.map +0 -1
  823. package/lib/feature/gap-cursor/index.d.ts +0 -3
  824. package/lib/feature/gap-cursor/index.d.ts.map +0 -1
  825. package/lib/feature/image-block/index.d.ts +0 -3
  826. package/lib/feature/image-block/index.d.ts.map +0 -1
  827. package/lib/feature/index.d.ts +0 -18
  828. package/lib/feature/index.d.ts.map +0 -1
  829. package/lib/feature/link-tooltip/consts.d.ts +0 -5
  830. package/lib/feature/link-tooltip/consts.d.ts.map +0 -1
  831. package/lib/feature/link-tooltip/index.d.ts +0 -3
  832. package/lib/feature/link-tooltip/index.d.ts.map +0 -1
  833. package/lib/feature/list-item/consts.d.ts +0 -2
  834. package/lib/feature/list-item/consts.d.ts.map +0 -1
  835. package/lib/feature/list-item/index.d.ts +0 -3
  836. package/lib/feature/list-item/index.d.ts.map +0 -1
  837. package/lib/feature/placeholder/index.d.ts +0 -10
  838. package/lib/feature/placeholder/index.d.ts.map +0 -1
  839. package/lib/feature/shared.d.ts +0 -3
  840. package/lib/feature/shared.d.ts.map +0 -1
  841. package/lib/feature/toolbar/component.d.ts +0 -13
  842. package/lib/feature/toolbar/component.d.ts.map +0 -1
  843. package/lib/feature/toolbar/consts.d.ts +0 -5
  844. package/lib/feature/toolbar/consts.d.ts.map +0 -1
  845. package/lib/feature/toolbar/index.d.ts +0 -3
  846. package/lib/feature/toolbar/index.d.ts.map +0 -1
  847. package/lib/forth-ua2bRd8T.js +0 -60
  848. package/lib/fortran-WnF7znuN.js +0 -443
  849. package/lib/gas-wowve1o7.js +0 -183
  850. package/lib/gherkin-m7GIChu3.js +0 -34
  851. package/lib/go-th443Dhb.js +0 -158
  852. package/lib/groovy-tR4RiZnc.js +0 -161
  853. package/lib/haskell-jxVBofv5.js +0 -375
  854. package/lib/haxe-kWPI2tq3.js +0 -390
  855. package/lib/hooks-82sqkbtE.js +0 -21
  856. package/lib/http-3GIFWUlG.js +0 -45
  857. package/lib/icons-HYkfuR-O.js +0 -50
  858. package/lib/idl-PvpMZg-l.js +0 -947
  859. package/lib/index-BSv6537G.js +0 -364
  860. package/lib/index-BoI246Ti.js +0 -507
  861. package/lib/index-DDSXiQ90.js +0 -552
  862. package/lib/index-ECCvmC6D.js +0 -1301
  863. package/lib/index-EI1FcaSv.js +0 -928
  864. package/lib/index-ESoQGvsE.js +0 -288
  865. package/lib/index-GOH7H2i9.js +0 -81
  866. package/lib/index-GjFRg3RJ.js +0 -8
  867. package/lib/index-GzVCh3P9.js +0 -353
  868. package/lib/index-KCykNSJx.js +0 -323
  869. package/lib/index-Ls2I7eOW.js +0 -20986
  870. package/lib/index-P4-KqpEN.js +0 -275
  871. package/lib/index-Qcks_HSE.js +0 -984
  872. package/lib/index-RKThEh9x.js +0 -517
  873. package/lib/index-UqF8o9eD.js +0 -19665
  874. package/lib/index-_VrGF4z-.js +0 -47
  875. package/lib/index-cteyPSwp.js +0 -83
  876. package/lib/index-f0pbmfJP.js +0 -64
  877. package/lib/index-gMYRN2wV.js +0 -107
  878. package/lib/index-jZuF1Iix.js +0 -146
  879. package/lib/index-kyD7hUif.js +0 -141
  880. package/lib/index-oszOFbwW.js +0 -1041
  881. package/lib/index-pC1MPpe2.js +0 -1744
  882. package/lib/index-q3iu4cef.js +0 -78
  883. package/lib/index-qMeqmZtK.js +0 -168
  884. package/lib/index-rs4SJ8Gd.js +0 -253
  885. package/lib/index-w-CiezW1.js +0 -135
  886. package/lib/index-x6C6leag.js +0 -99
  887. package/lib/index-xHADmDT3.js +0 -12
  888. package/lib/index-xa7wUurf.js +0 -8
  889. package/lib/index-xjkoF_Bn.js +0 -317
  890. package/lib/index-yrfirMbY.js +0 -551
  891. package/lib/index-zNGl_CdN.js +0 -8
  892. package/lib/index-zc51oyS8.js +0 -121
  893. package/lib/index.d.ts +0 -4
  894. package/lib/index.d.ts.map +0 -1
  895. package/lib/index.es.js +0 -7
  896. package/lib/javascript-8ZHqHagw.js +0 -758
  897. package/lib/jinja2-vsOFe0qD.js +0 -154
  898. package/lib/julia-dlp_pbN1.js +0 -241
  899. package/lib/livescript-Gf5R-LT6.js +0 -273
  900. package/lib/lua-c5Y_JsBp.js +0 -221
  901. package/lib/mathematica-iiGTGmUs.js +0 -35
  902. package/lib/mbox-ZJh86H8B.js +0 -78
  903. package/lib/meta-tAGyVRPE.js +0 -511
  904. package/lib/mirc-i0qkCa0y.js +0 -73
  905. package/lib/mllike-Dy551fZW.js +0 -275
  906. package/lib/modelica-n6tGqUT9.js +0 -94
  907. package/lib/mscgen-aKSbB7D9.js +0 -104
  908. package/lib/mumps-lNiKA6sp.js +0 -25
  909. package/lib/nginx--YmuCfDj.js +0 -93
  910. package/lib/nsis-zhS8iA09.js +0 -62
  911. package/lib/ntriples-E3jQl3MC.js +0 -79
  912. package/lib/octave-EQvkGIeG.js +0 -144
  913. package/lib/oz-W2cpqFf6.js +0 -152
  914. package/lib/pascal-lCh6ouNZ.js +0 -79
  915. package/lib/perl-PxEQBX0B.js +0 -915
  916. package/lib/pig-Y_bNcrzS.js +0 -56
  917. package/lib/powershell-GaQP-TZr.js +0 -249
  918. package/lib/properties-mbRyn54L.js +0 -26
  919. package/lib/prosemirror-noTDkx-k.js +0 -4
  920. package/lib/protobuf-8CJideyJ.js +0 -49
  921. package/lib/puppet-ABBaChNZ.js +0 -45
  922. package/lib/python-sKdHg3Ka.js +0 -321
  923. package/lib/q-_1yG40Nm.js +0 -89
  924. package/lib/r-Ziz56bHT.js +0 -108
  925. package/lib/rpm-ORjGOHaQ.js +0 -57
  926. package/lib/ruby-jlbYq0dT.js +0 -233
  927. package/lib/sas-2n7xeUuO.js +0 -107
  928. package/lib/schema-ywm7RaKF.js +0 -62
  929. package/lib/scheme-XCs-NPeU.js +0 -126
  930. package/lib/shell-0_1Um7Dq.js +0 -184
  931. package/lib/sieve-7uyJD1x1.js +0 -73
  932. package/lib/simple-mode--HIzBxba.js +0 -95
  933. package/lib/smalltalk-PEFzrlQ-.js +0 -48
  934. package/lib/solr-BLBaHahN.js +0 -41
  935. package/lib/sparql-4F9ZWf1b.js +0 -204
  936. package/lib/spreadsheet-SGSo6blj.js +0 -49
  937. package/lib/sql-tebLBzN0.js +0 -291
  938. package/lib/stex-SFJcFGOO.js +0 -130
  939. package/lib/stylus-rwwWYWFm.js +0 -256
  940. package/lib/swift-eorJ0tCv.js +0 -238
  941. package/lib/tcl-IwXMB8U4.js +0 -82
  942. package/lib/textile-ok2VyjwC.js +0 -299
  943. package/lib/theme/classic/index.d.ts +0 -3
  944. package/lib/theme/classic/index.d.ts.map +0 -1
  945. package/lib/theme/classic-dark/index.d.ts +0 -3
  946. package/lib/theme/classic-dark/index.d.ts.map +0 -1
  947. package/lib/theme/headless/index.d.ts +0 -3
  948. package/lib/theme/headless/index.d.ts.map +0 -1
  949. package/lib/theme/index.d.ts +0 -8
  950. package/lib/theme/index.d.ts.map +0 -1
  951. package/lib/theme/shared.d.ts +0 -3
  952. package/lib/theme/shared.d.ts.map +0 -1
  953. package/lib/tiddlywiki-DLhz8_pc.js +0 -156
  954. package/lib/tiki-DFAqFElY.js +0 -183
  955. package/lib/tippy.esm-4ny8MQOF.js +0 -1813
  956. package/lib/toml-ryxpTZEV.js +0 -49
  957. package/lib/tooltip-plugin-NpyG8C5u.js +0 -122
  958. package/lib/troff-ZzZyvNct.js +0 -36
  959. package/lib/ttcn-6gvkqqpW.js +0 -136
  960. package/lib/ttcn-cfg-oSu-Dq5C.js +0 -98
  961. package/lib/turtle-10ofr5au.js +0 -87
  962. package/lib/utils/index.d.ts +0 -4
  963. package/lib/utils/index.d.ts.map +0 -1
  964. package/lib/vb-a6n6fzrD.js +0 -74
  965. package/lib/vbscript-dgvo8jPt.js +0 -324
  966. package/lib/velocity-CBncCrwO.js +0 -97
  967. package/lib/verilog-KlcACt6C.js +0 -271
  968. package/lib/vhdl-NMd7Gf35.js +0 -117
  969. package/lib/webidl-z1UE5DN_.js +0 -160
  970. package/lib/xquery-hDt5jWTp.js +0 -431
  971. package/lib/yacas-ftgh_qwr.js +0 -74
  972. package/lib/z80-dA1PqWe1.js +0 -62
  973. package/src/feature/block-edit/menu/icons.ts +0 -171
  974. package/src/feature/block-edit/style.css +0 -126
  975. package/src/feature/code-mirror/style.css +0 -159
  976. package/src/feature/gap-cursor/index.ts +0 -31
  977. package/src/feature/image-block/style.css +0 -215
  978. package/src/feature/link-tooltip/consts.ts +0 -47
  979. package/src/feature/link-tooltip/style.css +0 -107
  980. package/src/feature/list-item/consts.ts +0 -15
  981. package/src/feature/list-item/style.css +0 -23
  982. package/src/feature/toolbar/consts.ts +0 -26
  983. package/src/feature/toolbar/style.css +0 -37
  984. package/src/theme/classic/index.ts +0 -12
  985. package/src/theme/classic/style.css +0 -192
  986. package/src/theme/classic-dark/index.ts +0 -12
  987. package/src/theme/classic-dark/style.css +0 -197
  988. package/src/theme/headless/index.ts +0 -9
  989. package/src/theme/index.ts +0 -26
  990. package/src/theme/shared.ts +0 -4
  991. /package/src/{feature/placeholder/style.css → theme/common/placeholder.css} +0 -0
@@ -1,1301 +0,0 @@
1
- import { P as L, m as M, N as $, H as E, l as y, n as S, I as j } from "./index-UqF8o9eD.js";
2
- class v {
3
- /**
4
- @internal
5
- */
6
- constructor(t, e, s, i, h, r, n, o, a, u = 0, f) {
7
- this.p = t, this.stack = e, this.state = s, this.reducePos = i, this.pos = h, this.score = r, this.buffer = n, this.bufferBase = o, this.curContext = a, this.lookAhead = u, this.parent = f;
8
- }
9
- /**
10
- @internal
11
- */
12
- toString() {
13
- return `[${this.stack.filter((t, e) => e % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
14
- }
15
- // Start an empty stack
16
- /**
17
- @internal
18
- */
19
- static start(t, e, s = 0) {
20
- let i = t.parser.context;
21
- return new v(t, [], e, s, s, 0, [], 0, i ? new N(i, i.start) : null, 0, null);
22
- }
23
- /**
24
- The stack's current [context](#lr.ContextTracker) value, if
25
- any. Its type will depend on the context tracker's type
26
- parameter, or it will be `null` if there is no context
27
- tracker.
28
- */
29
- get context() {
30
- return this.curContext ? this.curContext.context : null;
31
- }
32
- // Push a state onto the stack, tracking its start position as well
33
- // as the buffer base at that point.
34
- /**
35
- @internal
36
- */
37
- pushState(t, e) {
38
- this.stack.push(this.state, e, this.bufferBase + this.buffer.length), this.state = t;
39
- }
40
- // Apply a reduce action
41
- /**
42
- @internal
43
- */
44
- reduce(t) {
45
- var e;
46
- let s = t >> 19, i = t & 65535, { parser: h } = this.p, r = h.dynamicPrecedence(i);
47
- if (r && (this.score += r), s == 0) {
48
- this.pushState(h.getGoto(this.state, i, !0), this.reducePos), i < h.minRepeatTerm && this.storeNode(i, this.reducePos, this.reducePos, 4, !0), this.reduceContext(i, this.reducePos);
49
- return;
50
- }
51
- let n = this.stack.length - (s - 1) * 3 - (t & 262144 ? 6 : 0), o = n ? this.stack[n - 2] : this.p.ranges[0].from, a = this.reducePos - o;
52
- a >= 2e3 && !(!((e = this.p.parser.nodeSet.types[i]) === null || e === void 0) && e.isAnonymous) && (o == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = a) : this.p.lastBigReductionSize < a && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = o, this.p.lastBigReductionSize = a));
53
- let u = n ? this.stack[n - 1] : 0, f = this.bufferBase + this.buffer.length - u;
54
- if (i < h.minRepeatTerm || t & 131072) {
55
- let c = h.stateFlag(
56
- this.state,
57
- 1
58
- /* StateFlag.Skipped */
59
- ) ? this.pos : this.reducePos;
60
- this.storeNode(i, o, c, f + 4, !0);
61
- }
62
- if (t & 262144)
63
- this.state = this.stack[n];
64
- else {
65
- let c = this.stack[n - 3];
66
- this.state = h.getGoto(c, i, !0);
67
- }
68
- for (; this.stack.length > n; )
69
- this.stack.pop();
70
- this.reduceContext(i, o);
71
- }
72
- // Shift a value into the buffer
73
- /**
74
- @internal
75
- */
76
- storeNode(t, e, s, i = 4, h = !1) {
77
- if (t == 0 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
78
- let r = this, n = this.buffer.length;
79
- if (n == 0 && r.parent && (n = r.bufferBase - r.parent.bufferBase, r = r.parent), n > 0 && r.buffer[n - 4] == 0 && r.buffer[n - 1] > -1) {
80
- if (e == s)
81
- return;
82
- if (r.buffer[n - 2] >= e) {
83
- r.buffer[n - 2] = s;
84
- return;
85
- }
86
- }
87
- }
88
- if (!h || this.pos == s)
89
- this.buffer.push(t, e, s, i);
90
- else {
91
- let r = this.buffer.length;
92
- if (r > 0 && this.buffer[r - 4] != 0)
93
- for (; r > 0 && this.buffer[r - 2] > s; )
94
- this.buffer[r] = this.buffer[r - 4], this.buffer[r + 1] = this.buffer[r - 3], this.buffer[r + 2] = this.buffer[r - 2], this.buffer[r + 3] = this.buffer[r - 1], r -= 4, i > 4 && (i -= 4);
95
- this.buffer[r] = t, this.buffer[r + 1] = e, this.buffer[r + 2] = s, this.buffer[r + 3] = i;
96
- }
97
- }
98
- // Apply a shift action
99
- /**
100
- @internal
101
- */
102
- shift(t, e, s, i) {
103
- if (t & 131072)
104
- this.pushState(t & 65535, this.pos);
105
- else if (t & 262144)
106
- this.pos = i, this.shiftContext(e, s), e <= this.p.parser.maxNode && this.buffer.push(e, s, i, 4);
107
- else {
108
- let h = t, { parser: r } = this.p;
109
- (i > this.pos || e <= r.maxNode) && (this.pos = i, r.stateFlag(
110
- h,
111
- 1
112
- /* StateFlag.Skipped */
113
- ) || (this.reducePos = i)), this.pushState(h, s), this.shiftContext(e, s), e <= r.maxNode && this.buffer.push(e, s, i, 4);
114
- }
115
- }
116
- // Apply an action
117
- /**
118
- @internal
119
- */
120
- apply(t, e, s, i) {
121
- t & 65536 ? this.reduce(t) : this.shift(t, e, s, i);
122
- }
123
- // Add a prebuilt (reused) node into the buffer.
124
- /**
125
- @internal
126
- */
127
- useNode(t, e) {
128
- let s = this.p.reused.length - 1;
129
- (s < 0 || this.p.reused[s] != t) && (this.p.reused.push(t), s++);
130
- let i = this.pos;
131
- this.reducePos = this.pos = i + t.length, this.pushState(e, i), this.buffer.push(
132
- s,
133
- i,
134
- this.reducePos,
135
- -1
136
- /* size == -1 means this is a reused value */
137
- ), this.curContext && this.updateContext(this.curContext.tracker.reuse(this.curContext.context, t, this, this.p.stream.reset(this.pos - t.length)));
138
- }
139
- // Split the stack. Due to the buffer sharing and the fact
140
- // that `this.stack` tends to stay quite shallow, this isn't very
141
- // expensive.
142
- /**
143
- @internal
144
- */
145
- split() {
146
- let t = this, e = t.buffer.length;
147
- for (; e > 0 && t.buffer[e - 2] > t.reducePos; )
148
- e -= 4;
149
- let s = t.buffer.slice(e), i = t.bufferBase + e;
150
- for (; t && i == t.bufferBase; )
151
- t = t.parent;
152
- return new v(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, s, i, this.curContext, this.lookAhead, t);
153
- }
154
- // Try to recover from an error by 'deleting' (ignoring) one token.
155
- /**
156
- @internal
157
- */
158
- recoverByDelete(t, e) {
159
- let s = t <= this.p.parser.maxNode;
160
- s && this.storeNode(t, this.pos, e, 4), this.storeNode(0, this.pos, e, s ? 8 : 4), this.pos = this.reducePos = e, this.score -= 190;
161
- }
162
- /**
163
- Check if the given term would be able to be shifted (optionally
164
- after some reductions) on this stack. This can be useful for
165
- external tokenizers that want to make sure they only provide a
166
- given token when it applies.
167
- */
168
- canShift(t) {
169
- for (let e = new G(this); ; ) {
170
- let s = this.p.parser.stateSlot(
171
- e.state,
172
- 4
173
- /* ParseState.DefaultReduce */
174
- ) || this.p.parser.hasAction(e.state, t);
175
- if (s == 0)
176
- return !1;
177
- if (!(s & 65536))
178
- return !0;
179
- e.reduce(s);
180
- }
181
- }
182
- // Apply up to Recover.MaxNext recovery actions that conceptually
183
- // inserts some missing token or rule.
184
- /**
185
- @internal
186
- */
187
- recoverByInsert(t) {
188
- if (this.stack.length >= 300)
189
- return [];
190
- let e = this.p.parser.nextStates(this.state);
191
- if (e.length > 8 || this.stack.length >= 120) {
192
- let i = [];
193
- for (let h = 0, r; h < e.length; h += 2)
194
- (r = e[h + 1]) != this.state && this.p.parser.hasAction(r, t) && i.push(e[h], r);
195
- if (this.stack.length < 120)
196
- for (let h = 0; i.length < 8 && h < e.length; h += 2) {
197
- let r = e[h + 1];
198
- i.some((n, o) => o & 1 && n == r) || i.push(e[h], r);
199
- }
200
- e = i;
201
- }
202
- let s = [];
203
- for (let i = 0; i < e.length && s.length < 4; i += 2) {
204
- let h = e[i + 1];
205
- if (h == this.state)
206
- continue;
207
- let r = this.split();
208
- r.pushState(h, this.pos), r.storeNode(0, r.pos, r.pos, 4, !0), r.shiftContext(e[i], this.pos), r.reducePos = this.pos, r.score -= 200, s.push(r);
209
- }
210
- return s;
211
- }
212
- // Force a reduce, if possible. Return false if that can't
213
- // be done.
214
- /**
215
- @internal
216
- */
217
- forceReduce() {
218
- let { parser: t } = this.p, e = t.stateSlot(
219
- this.state,
220
- 5
221
- /* ParseState.ForcedReduce */
222
- );
223
- if (!(e & 65536))
224
- return !1;
225
- if (!t.validAction(this.state, e)) {
226
- let s = e >> 19, i = e & 65535, h = this.stack.length - s * 3;
227
- if (h < 0 || t.getGoto(this.stack[h], i, !1) < 0) {
228
- let r = this.findForcedReduction();
229
- if (r == null)
230
- return !1;
231
- e = r;
232
- }
233
- this.storeNode(0, this.pos, this.pos, 4, !0), this.score -= 100;
234
- }
235
- return this.reducePos = this.pos, this.reduce(e), !0;
236
- }
237
- /**
238
- Try to scan through the automaton to find some kind of reduction
239
- that can be applied. Used when the regular ForcedReduce field
240
- isn't a valid action. @internal
241
- */
242
- findForcedReduction() {
243
- let { parser: t } = this.p, e = [], s = (i, h) => {
244
- if (!e.includes(i))
245
- return e.push(i), t.allActions(i, (r) => {
246
- if (!(r & 393216))
247
- if (r & 65536) {
248
- let n = (r >> 19) - h;
249
- if (n > 1) {
250
- let o = r & 65535, a = this.stack.length - n * 3;
251
- if (a >= 0 && t.getGoto(this.stack[a], o, !1) >= 0)
252
- return n << 19 | 65536 | o;
253
- }
254
- } else {
255
- let n = s(r, h + 1);
256
- if (n != null)
257
- return n;
258
- }
259
- });
260
- };
261
- return s(this.state, 0);
262
- }
263
- /**
264
- @internal
265
- */
266
- forceAll() {
267
- for (; !this.p.parser.stateFlag(
268
- this.state,
269
- 2
270
- /* StateFlag.Accepting */
271
- ); )
272
- if (!this.forceReduce()) {
273
- this.storeNode(0, this.pos, this.pos, 4, !0);
274
- break;
275
- }
276
- return this;
277
- }
278
- /**
279
- Check whether this state has no further actions (assumed to be a direct descendant of the
280
- top state, since any other states must be able to continue
281
- somehow). @internal
282
- */
283
- get deadEnd() {
284
- if (this.stack.length != 3)
285
- return !1;
286
- let { parser: t } = this.p;
287
- return t.data[t.stateSlot(
288
- this.state,
289
- 1
290
- /* ParseState.Actions */
291
- )] == 65535 && !t.stateSlot(
292
- this.state,
293
- 4
294
- /* ParseState.DefaultReduce */
295
- );
296
- }
297
- /**
298
- Restart the stack (put it back in its start state). Only safe
299
- when this.stack.length == 3 (state is directly below the top
300
- state). @internal
301
- */
302
- restart() {
303
- this.storeNode(0, this.pos, this.pos, 4, !0), this.state = this.stack[0], this.stack.length = 0;
304
- }
305
- /**
306
- @internal
307
- */
308
- sameState(t) {
309
- if (this.state != t.state || this.stack.length != t.stack.length)
310
- return !1;
311
- for (let e = 0; e < this.stack.length; e += 3)
312
- if (this.stack[e] != t.stack[e])
313
- return !1;
314
- return !0;
315
- }
316
- /**
317
- Get the parser used by this stack.
318
- */
319
- get parser() {
320
- return this.p.parser;
321
- }
322
- /**
323
- Test whether a given dialect (by numeric ID, as exported from
324
- the terms file) is enabled.
325
- */
326
- dialectEnabled(t) {
327
- return this.p.parser.dialect.flags[t];
328
- }
329
- shiftContext(t, e) {
330
- this.curContext && this.updateContext(this.curContext.tracker.shift(this.curContext.context, t, this, this.p.stream.reset(e)));
331
- }
332
- reduceContext(t, e) {
333
- this.curContext && this.updateContext(this.curContext.tracker.reduce(this.curContext.context, t, this, this.p.stream.reset(e)));
334
- }
335
- /**
336
- @internal
337
- */
338
- emitContext() {
339
- let t = this.buffer.length - 1;
340
- (t < 0 || this.buffer[t] != -3) && this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);
341
- }
342
- /**
343
- @internal
344
- */
345
- emitLookAhead() {
346
- let t = this.buffer.length - 1;
347
- (t < 0 || this.buffer[t] != -4) && this.buffer.push(this.lookAhead, this.pos, this.pos, -4);
348
- }
349
- updateContext(t) {
350
- if (t != this.curContext.context) {
351
- let e = new N(this.curContext.tracker, t);
352
- e.hash != this.curContext.hash && this.emitContext(), this.curContext = e;
353
- }
354
- }
355
- /**
356
- @internal
357
- */
358
- setLookAhead(t) {
359
- t > this.lookAhead && (this.emitLookAhead(), this.lookAhead = t);
360
- }
361
- /**
362
- @internal
363
- */
364
- close() {
365
- this.curContext && this.curContext.tracker.strict && this.emitContext(), this.lookAhead > 0 && this.emitLookAhead();
366
- }
367
- }
368
- class N {
369
- constructor(t, e) {
370
- this.tracker = t, this.context = e, this.hash = t.strict ? t.hash(e) : 0;
371
- }
372
- }
373
- class G {
374
- constructor(t) {
375
- this.start = t, this.state = t.state, this.stack = t.stack, this.base = this.stack.length;
376
- }
377
- reduce(t) {
378
- let e = t & 65535, s = t >> 19;
379
- s == 0 ? (this.stack == this.start.stack && (this.stack = this.stack.slice()), this.stack.push(this.state, 0, 0), this.base += 3) : this.base -= (s - 1) * 3;
380
- let i = this.start.p.parser.getGoto(this.stack[this.base - 3], e, !0);
381
- this.state = i;
382
- }
383
- }
384
- class A {
385
- constructor(t, e, s) {
386
- this.stack = t, this.pos = e, this.index = s, this.buffer = t.buffer, this.index == 0 && this.maybeNext();
387
- }
388
- static create(t, e = t.bufferBase + t.buffer.length) {
389
- return new A(t, e, e - t.bufferBase);
390
- }
391
- maybeNext() {
392
- let t = this.stack.parent;
393
- t != null && (this.index = this.stack.bufferBase - t.bufferBase, this.stack = t, this.buffer = t.buffer);
394
- }
395
- get id() {
396
- return this.buffer[this.index - 4];
397
- }
398
- get start() {
399
- return this.buffer[this.index - 3];
400
- }
401
- get end() {
402
- return this.buffer[this.index - 2];
403
- }
404
- get size() {
405
- return this.buffer[this.index - 1];
406
- }
407
- next() {
408
- this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
409
- }
410
- fork() {
411
- return new A(this.stack, this.pos, this.index);
412
- }
413
- }
414
- function x(l, t = Uint16Array) {
415
- if (typeof l != "string")
416
- return l;
417
- let e = null;
418
- for (let s = 0, i = 0; s < l.length; ) {
419
- let h = 0;
420
- for (; ; ) {
421
- let r = l.charCodeAt(s++), n = !1;
422
- if (r == 126) {
423
- h = 65535;
424
- break;
425
- }
426
- r >= 92 && r--, r >= 34 && r--;
427
- let o = r - 32;
428
- if (o >= 46 && (o -= 46, n = !0), h += o, n)
429
- break;
430
- h *= 46;
431
- }
432
- e ? e[i++] = h : e = new t(h);
433
- }
434
- return e;
435
- }
436
- class P {
437
- constructor() {
438
- this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
439
- }
440
- }
441
- const R = new P();
442
- class U {
443
- /**
444
- @internal
445
- */
446
- constructor(t, e) {
447
- this.input = t, this.ranges = e, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = R, this.rangeIndex = 0, this.pos = this.chunkPos = e[0].from, this.range = e[0], this.end = e[e.length - 1].to, this.readNext();
448
- }
449
- /**
450
- @internal
451
- */
452
- resolveOffset(t, e) {
453
- let s = this.range, i = this.rangeIndex, h = this.pos + t;
454
- for (; h < s.from; ) {
455
- if (!i)
456
- return null;
457
- let r = this.ranges[--i];
458
- h -= s.from - r.to, s = r;
459
- }
460
- for (; e < 0 ? h > s.to : h >= s.to; ) {
461
- if (i == this.ranges.length - 1)
462
- return null;
463
- let r = this.ranges[++i];
464
- h += r.from - s.to, s = r;
465
- }
466
- return h;
467
- }
468
- /**
469
- @internal
470
- */
471
- clipPos(t) {
472
- if (t >= this.range.from && t < this.range.to)
473
- return t;
474
- for (let e of this.ranges)
475
- if (e.to > t)
476
- return Math.max(t, e.from);
477
- return this.end;
478
- }
479
- /**
480
- Look at a code unit near the stream position. `.peek(0)` equals
481
- `.next`, `.peek(-1)` gives you the previous character, and so
482
- on.
483
-
484
- Note that looking around during tokenizing creates dependencies
485
- on potentially far-away content, which may reduce the
486
- effectiveness incremental parsing—when looking forward—or even
487
- cause invalid reparses when looking backward more than 25 code
488
- units, since the library does not track lookbehind.
489
- */
490
- peek(t) {
491
- let e = this.chunkOff + t, s, i;
492
- if (e >= 0 && e < this.chunk.length)
493
- s = this.pos + t, i = this.chunk.charCodeAt(e);
494
- else {
495
- let h = this.resolveOffset(t, 1);
496
- if (h == null)
497
- return -1;
498
- if (s = h, s >= this.chunk2Pos && s < this.chunk2Pos + this.chunk2.length)
499
- i = this.chunk2.charCodeAt(s - this.chunk2Pos);
500
- else {
501
- let r = this.rangeIndex, n = this.range;
502
- for (; n.to <= s; )
503
- n = this.ranges[++r];
504
- this.chunk2 = this.input.chunk(this.chunk2Pos = s), s + this.chunk2.length > n.to && (this.chunk2 = this.chunk2.slice(0, n.to - s)), i = this.chunk2.charCodeAt(0);
505
- }
506
- }
507
- return s >= this.token.lookAhead && (this.token.lookAhead = s + 1), i;
508
- }
509
- /**
510
- Accept a token. By default, the end of the token is set to the
511
- current stream position, but you can pass an offset (relative to
512
- the stream position) to change that.
513
- */
514
- acceptToken(t, e = 0) {
515
- let s = e ? this.resolveOffset(e, -1) : this.pos;
516
- if (s == null || s < this.token.start)
517
- throw new RangeError("Token end out of bounds");
518
- this.token.value = t, this.token.end = s;
519
- }
520
- /**
521
- Accept a token ending at a specific given position.
522
- */
523
- acceptTokenTo(t, e) {
524
- this.token.value = t, this.token.end = e;
525
- }
526
- getChunk() {
527
- if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
528
- let { chunk: t, chunkPos: e } = this;
529
- this.chunk = this.chunk2, this.chunkPos = this.chunk2Pos, this.chunk2 = t, this.chunk2Pos = e, this.chunkOff = this.pos - this.chunkPos;
530
- } else {
531
- this.chunk2 = this.chunk, this.chunk2Pos = this.chunkPos;
532
- let t = this.input.chunk(this.pos), e = this.pos + t.length;
533
- this.chunk = e > this.range.to ? t.slice(0, this.range.to - this.pos) : t, this.chunkPos = this.pos, this.chunkOff = 0;
534
- }
535
- }
536
- readNext() {
537
- return this.chunkOff >= this.chunk.length && (this.getChunk(), this.chunkOff == this.chunk.length) ? this.next = -1 : this.next = this.chunk.charCodeAt(this.chunkOff);
538
- }
539
- /**
540
- Move the stream forward N (defaults to 1) code units. Returns
541
- the new value of [`next`](#lr.InputStream.next).
542
- */
543
- advance(t = 1) {
544
- for (this.chunkOff += t; this.pos + t >= this.range.to; ) {
545
- if (this.rangeIndex == this.ranges.length - 1)
546
- return this.setDone();
547
- t -= this.range.to - this.pos, this.range = this.ranges[++this.rangeIndex], this.pos = this.range.from;
548
- }
549
- return this.pos += t, this.pos >= this.token.lookAhead && (this.token.lookAhead = this.pos + 1), this.readNext();
550
- }
551
- setDone() {
552
- return this.pos = this.chunkPos = this.end, this.range = this.ranges[this.rangeIndex = this.ranges.length - 1], this.chunk = "", this.next = -1;
553
- }
554
- /**
555
- @internal
556
- */
557
- reset(t, e) {
558
- if (e ? (this.token = e, e.start = t, e.lookAhead = t + 1, e.value = e.extended = -1) : this.token = R, this.pos != t) {
559
- if (this.pos = t, t == this.end)
560
- return this.setDone(), this;
561
- for (; t < this.range.from; )
562
- this.range = this.ranges[--this.rangeIndex];
563
- for (; t >= this.range.to; )
564
- this.range = this.ranges[++this.rangeIndex];
565
- t >= this.chunkPos && t < this.chunkPos + this.chunk.length ? this.chunkOff = t - this.chunkPos : (this.chunk = "", this.chunkOff = 0), this.readNext();
566
- }
567
- return this;
568
- }
569
- /**
570
- @internal
571
- */
572
- read(t, e) {
573
- if (t >= this.chunkPos && e <= this.chunkPos + this.chunk.length)
574
- return this.chunk.slice(t - this.chunkPos, e - this.chunkPos);
575
- if (t >= this.chunk2Pos && e <= this.chunk2Pos + this.chunk2.length)
576
- return this.chunk2.slice(t - this.chunk2Pos, e - this.chunk2Pos);
577
- if (t >= this.range.from && e <= this.range.to)
578
- return this.input.read(t, e);
579
- let s = "";
580
- for (let i of this.ranges) {
581
- if (i.from >= e)
582
- break;
583
- i.to > t && (s += this.input.read(Math.max(i.from, t), Math.min(i.to, e)));
584
- }
585
- return s;
586
- }
587
- }
588
- class m {
589
- constructor(t, e) {
590
- this.data = t, this.id = e;
591
- }
592
- token(t, e) {
593
- let { parser: s } = e.p;
594
- F(this.data, t, e, this.id, s.data, s.tokenPrecTable);
595
- }
596
- }
597
- m.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
598
- class H {
599
- constructor(t, e, s) {
600
- this.precTable = e, this.elseToken = s, this.data = typeof t == "string" ? x(t) : t;
601
- }
602
- token(t, e) {
603
- let s = t.pos, i = 0;
604
- for (; ; ) {
605
- let h = t.next < 0, r = t.resolveOffset(1, 1);
606
- if (F(this.data, t, e, 0, this.data, this.precTable), t.token.value > -1)
607
- break;
608
- if (this.elseToken == null)
609
- return;
610
- if (h || i++, r == null)
611
- break;
612
- t.reset(r, t.token);
613
- }
614
- i && (t.reset(s, t.token), t.acceptToken(this.elseToken, i));
615
- }
616
- }
617
- H.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
618
- class Y {
619
- /**
620
- Create a tokenizer. The first argument is the function that,
621
- given an input stream, scans for the types of tokens it
622
- recognizes at the stream's position, and calls
623
- [`acceptToken`](#lr.InputStream.acceptToken) when it finds
624
- one.
625
- */
626
- constructor(t, e = {}) {
627
- this.token = t, this.contextual = !!e.contextual, this.fallback = !!e.fallback, this.extend = !!e.extend;
628
- }
629
- }
630
- function F(l, t, e, s, i, h) {
631
- let r = 0, n = 1 << s, { dialect: o } = e.p.parser;
632
- t:
633
- for (; n & l[r]; ) {
634
- let a = l[r + 1];
635
- for (let p = r + 3; p < a; p += 2)
636
- if ((l[p + 1] & n) > 0) {
637
- let d = l[p];
638
- if (o.allows(d) && (t.token.value == -1 || t.token.value == d || W(d, t.token.value, i, h))) {
639
- t.acceptToken(d);
640
- break;
641
- }
642
- }
643
- let u = t.next, f = 0, c = l[r + 2];
644
- if (t.next < 0 && c > f && l[a + c * 3 - 3] == 65535) {
645
- r = l[a + c * 3 - 1];
646
- continue t;
647
- }
648
- for (; f < c; ) {
649
- let p = f + c >> 1, d = a + p + (p << 1), b = l[d], O = l[d + 1] || 65536;
650
- if (u < b)
651
- c = p;
652
- else if (u >= O)
653
- f = p + 1;
654
- else {
655
- r = l[d + 2], t.advance();
656
- continue t;
657
- }
658
- }
659
- break;
660
- }
661
- }
662
- function z(l, t, e) {
663
- for (let s = t, i; (i = l[s]) != 65535; s++)
664
- if (i == e)
665
- return s - t;
666
- return -1;
667
- }
668
- function W(l, t, e, s) {
669
- let i = z(e, s, t);
670
- return i < 0 || z(e, s, l) < i;
671
- }
672
- const g = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
673
- let T = null;
674
- function I(l, t, e) {
675
- let s = l.cursor(j.IncludeAnonymous);
676
- for (s.moveTo(t); ; )
677
- if (!(e < 0 ? s.childBefore(t) : s.childAfter(t)))
678
- for (; ; ) {
679
- if ((e < 0 ? s.to < t : s.from > t) && !s.type.isError)
680
- return e < 0 ? Math.max(0, Math.min(
681
- s.to - 1,
682
- t - 25
683
- /* Safety.Margin */
684
- )) : Math.min(l.length, Math.max(
685
- s.from + 1,
686
- t + 25
687
- /* Safety.Margin */
688
- ));
689
- if (e < 0 ? s.prevSibling() : s.nextSibling())
690
- break;
691
- if (!s.parent())
692
- return e < 0 ? 0 : l.length;
693
- }
694
- }
695
- class q {
696
- constructor(t, e) {
697
- this.fragments = t, this.nodeSet = e, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
698
- }
699
- nextFragment() {
700
- let t = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];
701
- if (t) {
702
- for (this.safeFrom = t.openStart ? I(t.tree, t.from + t.offset, 1) - t.offset : t.from, this.safeTo = t.openEnd ? I(t.tree, t.to + t.offset, -1) - t.offset : t.to; this.trees.length; )
703
- this.trees.pop(), this.start.pop(), this.index.pop();
704
- this.trees.push(t.tree), this.start.push(-t.offset), this.index.push(0), this.nextStart = this.safeFrom;
705
- } else
706
- this.nextStart = 1e9;
707
- }
708
- // `pos` must be >= any previously given `pos` for this cursor
709
- nodeAt(t) {
710
- if (t < this.nextStart)
711
- return null;
712
- for (; this.fragment && this.safeTo <= t; )
713
- this.nextFragment();
714
- if (!this.fragment)
715
- return null;
716
- for (; ; ) {
717
- let e = this.trees.length - 1;
718
- if (e < 0)
719
- return this.nextFragment(), null;
720
- let s = this.trees[e], i = this.index[e];
721
- if (i == s.children.length) {
722
- this.trees.pop(), this.start.pop(), this.index.pop();
723
- continue;
724
- }
725
- let h = s.children[i], r = this.start[e] + s.positions[i];
726
- if (r > t)
727
- return this.nextStart = r, null;
728
- if (h instanceof S) {
729
- if (r == t) {
730
- if (r < this.safeFrom)
731
- return null;
732
- let n = r + h.length;
733
- if (n <= this.safeTo) {
734
- let o = h.prop(y.lookAhead);
735
- if (!o || n + o < this.fragment.to)
736
- return h;
737
- }
738
- }
739
- this.index[e]++, r + h.length >= Math.max(this.safeFrom, t) && (this.trees.push(h), this.start.push(r), this.index.push(0));
740
- } else
741
- this.index[e]++, this.nextStart = r + h.length;
742
- }
743
- }
744
- }
745
- class J {
746
- constructor(t, e) {
747
- this.stream = e, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = t.tokenizers.map((s) => new P());
748
- }
749
- getActions(t) {
750
- let e = 0, s = null, { parser: i } = t.p, { tokenizers: h } = i, r = i.stateSlot(
751
- t.state,
752
- 3
753
- /* ParseState.TokenizerMask */
754
- ), n = t.curContext ? t.curContext.hash : 0, o = 0;
755
- for (let a = 0; a < h.length; a++) {
756
- if (!(1 << a & r))
757
- continue;
758
- let u = h[a], f = this.tokens[a];
759
- if (!(s && !u.fallback) && ((u.contextual || f.start != t.pos || f.mask != r || f.context != n) && (this.updateCachedToken(f, u, t), f.mask = r, f.context = n), f.lookAhead > f.end + 25 && (o = Math.max(f.lookAhead, o)), f.value != 0)) {
760
- let c = e;
761
- if (f.extended > -1 && (e = this.addActions(t, f.extended, f.end, e)), e = this.addActions(t, f.value, f.end, e), !u.extend && (s = f, e > c))
762
- break;
763
- }
764
- }
765
- for (; this.actions.length > e; )
766
- this.actions.pop();
767
- return o && t.setLookAhead(o), !s && t.pos == this.stream.end && (s = new P(), s.value = t.p.parser.eofTerm, s.start = s.end = t.pos, e = this.addActions(t, s.value, s.end, e)), this.mainToken = s, this.actions;
768
- }
769
- getMainToken(t) {
770
- if (this.mainToken)
771
- return this.mainToken;
772
- let e = new P(), { pos: s, p: i } = t;
773
- return e.start = s, e.end = Math.min(s + 1, i.stream.end), e.value = s == i.stream.end ? i.parser.eofTerm : 0, e;
774
- }
775
- updateCachedToken(t, e, s) {
776
- let i = this.stream.clipPos(s.pos);
777
- if (e.token(this.stream.reset(i, t), s), t.value > -1) {
778
- let { parser: h } = s.p;
779
- for (let r = 0; r < h.specialized.length; r++)
780
- if (h.specialized[r] == t.value) {
781
- let n = h.specializers[r](this.stream.read(t.start, t.end), s);
782
- if (n >= 0 && s.p.parser.dialect.allows(n >> 1)) {
783
- n & 1 ? t.extended = n >> 1 : t.value = n >> 1;
784
- break;
785
- }
786
- }
787
- } else
788
- t.value = 0, t.end = this.stream.clipPos(i + 1);
789
- }
790
- putAction(t, e, s, i) {
791
- for (let h = 0; h < i; h += 3)
792
- if (this.actions[h] == t)
793
- return i;
794
- return this.actions[i++] = t, this.actions[i++] = e, this.actions[i++] = s, i;
795
- }
796
- addActions(t, e, s, i) {
797
- let { state: h } = t, { parser: r } = t.p, { data: n } = r;
798
- for (let o = 0; o < 2; o++)
799
- for (let a = r.stateSlot(
800
- h,
801
- o ? 2 : 1
802
- /* ParseState.Actions */
803
- ); ; a += 3) {
804
- if (n[a] == 65535)
805
- if (n[a + 1] == 1)
806
- a = k(n, a + 2);
807
- else {
808
- i == 0 && n[a + 1] == 2 && (i = this.putAction(k(n, a + 2), e, s, i));
809
- break;
810
- }
811
- n[a] == e && (i = this.putAction(k(n, a + 1), e, s, i));
812
- }
813
- return i;
814
- }
815
- }
816
- class K {
817
- constructor(t, e, s, i) {
818
- this.parser = t, this.input = e, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new U(e, i), this.tokens = new J(t, this.stream), this.topTerm = t.top[1];
819
- let { from: h } = i[0];
820
- this.stacks = [v.start(this, t.top[0], h)], this.fragments = s.length && this.stream.end - h > t.bufferLength * 4 ? new q(s, t.nodeSet) : null;
821
- }
822
- get parsedPos() {
823
- return this.minStackPos;
824
- }
825
- // Move the parser forward. This will process all parse stacks at
826
- // `this.pos` and try to advance them to a further position. If no
827
- // stack for such a position is found, it'll start error-recovery.
828
- //
829
- // When the parse is finished, this will return a syntax tree. When
830
- // not, it returns `null`.
831
- advance() {
832
- let t = this.stacks, e = this.minStackPos, s = this.stacks = [], i, h;
833
- if (this.bigReductionCount > 300 && t.length == 1) {
834
- let [r] = t;
835
- for (; r.forceReduce() && r.stack.length && r.stack[r.stack.length - 2] >= this.lastBigReductionStart; )
836
- ;
837
- this.bigReductionCount = this.lastBigReductionSize = 0;
838
- }
839
- for (let r = 0; r < t.length; r++) {
840
- let n = t[r];
841
- for (; ; ) {
842
- if (this.tokens.mainToken = null, n.pos > e)
843
- s.push(n);
844
- else {
845
- if (this.advanceStack(n, s, t))
846
- continue;
847
- {
848
- i || (i = [], h = []), i.push(n);
849
- let o = this.tokens.getMainToken(n);
850
- h.push(o.value, o.end);
851
- }
852
- }
853
- break;
854
- }
855
- }
856
- if (!s.length) {
857
- let r = i && V(i);
858
- if (r)
859
- return g && console.log("Finish with " + this.stackID(r)), this.stackToTree(r);
860
- if (this.parser.strict)
861
- throw g && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + e);
862
- this.recovering || (this.recovering = 5);
863
- }
864
- if (this.recovering && i) {
865
- let r = this.stoppedAt != null && i[0].pos > this.stoppedAt ? i[0] : this.runRecovery(i, h, s);
866
- if (r)
867
- return g && console.log("Force-finish " + this.stackID(r)), this.stackToTree(r.forceAll());
868
- }
869
- if (this.recovering) {
870
- let r = this.recovering == 1 ? 1 : this.recovering * 3;
871
- if (s.length > r)
872
- for (s.sort((n, o) => o.score - n.score); s.length > r; )
873
- s.pop();
874
- s.some((n) => n.reducePos > e) && this.recovering--;
875
- } else if (s.length > 1) {
876
- t:
877
- for (let r = 0; r < s.length - 1; r++) {
878
- let n = s[r];
879
- for (let o = r + 1; o < s.length; o++) {
880
- let a = s[o];
881
- if (n.sameState(a) || n.buffer.length > 500 && a.buffer.length > 500)
882
- if ((n.score - a.score || n.buffer.length - a.buffer.length) > 0)
883
- s.splice(o--, 1);
884
- else {
885
- s.splice(r--, 1);
886
- continue t;
887
- }
888
- }
889
- }
890
- s.length > 12 && s.splice(
891
- 12,
892
- s.length - 12
893
- /* Rec.MaxStackCount */
894
- );
895
- }
896
- this.minStackPos = s[0].pos;
897
- for (let r = 1; r < s.length; r++)
898
- s[r].pos < this.minStackPos && (this.minStackPos = s[r].pos);
899
- return null;
900
- }
901
- stopAt(t) {
902
- if (this.stoppedAt != null && this.stoppedAt < t)
903
- throw new RangeError("Can't move stoppedAt forward");
904
- this.stoppedAt = t;
905
- }
906
- // Returns an updated version of the given stack, or null if the
907
- // stack can't advance normally. When `split` and `stacks` are
908
- // given, stacks split off by ambiguous operations will be pushed to
909
- // `split`, or added to `stacks` if they move `pos` forward.
910
- advanceStack(t, e, s) {
911
- let i = t.pos, { parser: h } = this, r = g ? this.stackID(t) + " -> " : "";
912
- if (this.stoppedAt != null && i > this.stoppedAt)
913
- return t.forceReduce() ? t : null;
914
- if (this.fragments) {
915
- let a = t.curContext && t.curContext.tracker.strict, u = a ? t.curContext.hash : 0;
916
- for (let f = this.fragments.nodeAt(i); f; ) {
917
- let c = this.parser.nodeSet.types[f.type.id] == f.type ? h.getGoto(t.state, f.type.id) : -1;
918
- if (c > -1 && f.length && (!a || (f.prop(y.contextHash) || 0) == u))
919
- return t.useNode(f, c), g && console.log(r + this.stackID(t) + ` (via reuse of ${h.getName(f.type.id)})`), !0;
920
- if (!(f instanceof S) || f.children.length == 0 || f.positions[0] > 0)
921
- break;
922
- let p = f.children[0];
923
- if (p instanceof S && f.positions[0] == 0)
924
- f = p;
925
- else
926
- break;
927
- }
928
- }
929
- let n = h.stateSlot(
930
- t.state,
931
- 4
932
- /* ParseState.DefaultReduce */
933
- );
934
- if (n > 0)
935
- return t.reduce(n), g && console.log(r + this.stackID(t) + ` (via always-reduce ${h.getName(
936
- n & 65535
937
- /* Action.ValueMask */
938
- )})`), !0;
939
- if (t.stack.length >= 8400)
940
- for (; t.stack.length > 6e3 && t.forceReduce(); )
941
- ;
942
- let o = this.tokens.getActions(t);
943
- for (let a = 0; a < o.length; ) {
944
- let u = o[a++], f = o[a++], c = o[a++], p = a == o.length || !s, d = p ? t : t.split(), b = this.tokens.mainToken;
945
- if (d.apply(u, f, b ? b.start : d.pos, c), g && console.log(r + this.stackID(d) + ` (via ${u & 65536 ? `reduce of ${h.getName(
946
- u & 65535
947
- /* Action.ValueMask */
948
- )}` : "shift"} for ${h.getName(f)} @ ${i}${d == t ? "" : ", split"})`), p)
949
- return !0;
950
- d.pos > i ? e.push(d) : s.push(d);
951
- }
952
- return !1;
953
- }
954
- // Advance a given stack forward as far as it will go. Returns the
955
- // (possibly updated) stack if it got stuck, or null if it moved
956
- // forward and was given to `pushStackDedup`.
957
- advanceFully(t, e) {
958
- let s = t.pos;
959
- for (; ; ) {
960
- if (!this.advanceStack(t, null, null))
961
- return !1;
962
- if (t.pos > s)
963
- return D(t, e), !0;
964
- }
965
- }
966
- runRecovery(t, e, s) {
967
- let i = null, h = !1;
968
- for (let r = 0; r < t.length; r++) {
969
- let n = t[r], o = e[r << 1], a = e[(r << 1) + 1], u = g ? this.stackID(n) + " -> " : "";
970
- if (n.deadEnd && (h || (h = !0, n.restart(), g && console.log(u + this.stackID(n) + " (restarted)"), this.advanceFully(n, s))))
971
- continue;
972
- let f = n.split(), c = u;
973
- for (let p = 0; f.forceReduce() && p < 10 && (g && console.log(c + this.stackID(f) + " (via force-reduce)"), !this.advanceFully(f, s)); p++)
974
- g && (c = this.stackID(f) + " -> ");
975
- for (let p of n.recoverByInsert(o))
976
- g && console.log(u + this.stackID(p) + " (via recover-insert)"), this.advanceFully(p, s);
977
- this.stream.end > n.pos ? (a == n.pos && (a++, o = 0), n.recoverByDelete(o, a), g && console.log(u + this.stackID(n) + ` (via recover-delete ${this.parser.getName(o)})`), D(n, s)) : (!i || i.score < n.score) && (i = n);
978
- }
979
- return i;
980
- }
981
- // Convert the stack's buffer to a syntax tree.
982
- stackToTree(t) {
983
- return t.close(), S.build({
984
- buffer: A.create(t),
985
- nodeSet: this.parser.nodeSet,
986
- topID: this.topTerm,
987
- maxBufferLength: this.parser.bufferLength,
988
- reused: this.reused,
989
- start: this.ranges[0].from,
990
- length: t.pos - this.ranges[0].from,
991
- minRepeatType: this.parser.minRepeatTerm
992
- });
993
- }
994
- stackID(t) {
995
- let e = (T || (T = /* @__PURE__ */ new WeakMap())).get(t);
996
- return e || T.set(t, e = String.fromCodePoint(this.nextStackID++)), e + t;
997
- }
998
- }
999
- function D(l, t) {
1000
- for (let e = 0; e < t.length; e++) {
1001
- let s = t[e];
1002
- if (s.pos == l.pos && s.sameState(l)) {
1003
- t[e].score < l.score && (t[e] = l);
1004
- return;
1005
- }
1006
- }
1007
- t.push(l);
1008
- }
1009
- class Q {
1010
- constructor(t, e, s) {
1011
- this.source = t, this.flags = e, this.disabled = s;
1012
- }
1013
- allows(t) {
1014
- return !this.disabled || this.disabled[t] == 0;
1015
- }
1016
- }
1017
- const C = (l) => l;
1018
- class Z {
1019
- /**
1020
- Define a context tracker.
1021
- */
1022
- constructor(t) {
1023
- this.start = t.start, this.shift = t.shift || C, this.reduce = t.reduce || C, this.reuse = t.reuse || C, this.hash = t.hash || (() => 0), this.strict = t.strict !== !1;
1024
- }
1025
- }
1026
- class w extends L {
1027
- /**
1028
- @internal
1029
- */
1030
- constructor(t) {
1031
- if (super(), this.wrappers = [], t.version != 14)
1032
- throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);
1033
- let e = t.nodeNames.split(" ");
1034
- this.minRepeatTerm = e.length;
1035
- for (let n = 0; n < t.repeatNodeCount; n++)
1036
- e.push("");
1037
- let s = Object.keys(t.topRules).map((n) => t.topRules[n][1]), i = [];
1038
- for (let n = 0; n < e.length; n++)
1039
- i.push([]);
1040
- function h(n, o, a) {
1041
- i[n].push([o, o.deserialize(String(a))]);
1042
- }
1043
- if (t.nodeProps)
1044
- for (let n of t.nodeProps) {
1045
- let o = n[0];
1046
- typeof o == "string" && (o = y[o]);
1047
- for (let a = 1; a < n.length; ) {
1048
- let u = n[a++];
1049
- if (u >= 0)
1050
- h(u, o, n[a++]);
1051
- else {
1052
- let f = n[a + -u];
1053
- for (let c = -u; c > 0; c--)
1054
- h(n[a++], o, f);
1055
- a++;
1056
- }
1057
- }
1058
- }
1059
- this.nodeSet = new M(e.map((n, o) => $.define({
1060
- name: o >= this.minRepeatTerm ? void 0 : n,
1061
- id: o,
1062
- props: i[o],
1063
- top: s.indexOf(o) > -1,
1064
- error: o == 0,
1065
- skipped: t.skippedNodes && t.skippedNodes.indexOf(o) > -1
1066
- }))), t.propSources && (this.nodeSet = this.nodeSet.extend(...t.propSources)), this.strict = !1, this.bufferLength = E;
1067
- let r = x(t.tokenData);
1068
- this.context = t.context, this.specializerSpecs = t.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
1069
- for (let n = 0; n < this.specializerSpecs.length; n++)
1070
- this.specialized[n] = this.specializerSpecs[n].term;
1071
- this.specializers = this.specializerSpecs.map(B), this.states = x(t.states, Uint32Array), this.data = x(t.stateData), this.goto = x(t.goto), this.maxTerm = t.maxTerm, this.tokenizers = t.tokenizers.map((n) => typeof n == "number" ? new m(r, n) : n), this.topRules = t.topRules, this.dialects = t.dialects || {}, this.dynamicPrecedences = t.dynamicPrecedences || null, this.tokenPrecTable = t.tokenPrec, this.termNames = t.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
1072
- }
1073
- createParse(t, e, s) {
1074
- let i = new K(this, t, e, s);
1075
- for (let h of this.wrappers)
1076
- i = h(i, t, e, s);
1077
- return i;
1078
- }
1079
- /**
1080
- Get a goto table entry @internal
1081
- */
1082
- getGoto(t, e, s = !1) {
1083
- let i = this.goto;
1084
- if (e >= i[0])
1085
- return -1;
1086
- for (let h = i[e + 1]; ; ) {
1087
- let r = i[h++], n = r & 1, o = i[h++];
1088
- if (n && s)
1089
- return o;
1090
- for (let a = h + (r >> 1); h < a; h++)
1091
- if (i[h] == t)
1092
- return o;
1093
- if (n)
1094
- return -1;
1095
- }
1096
- }
1097
- /**
1098
- Check if this state has an action for a given terminal @internal
1099
- */
1100
- hasAction(t, e) {
1101
- let s = this.data;
1102
- for (let i = 0; i < 2; i++)
1103
- for (let h = this.stateSlot(
1104
- t,
1105
- i ? 2 : 1
1106
- /* ParseState.Actions */
1107
- ), r; ; h += 3) {
1108
- if ((r = s[h]) == 65535)
1109
- if (s[h + 1] == 1)
1110
- r = s[h = k(s, h + 2)];
1111
- else {
1112
- if (s[h + 1] == 2)
1113
- return k(s, h + 2);
1114
- break;
1115
- }
1116
- if (r == e || r == 0)
1117
- return k(s, h + 1);
1118
- }
1119
- return 0;
1120
- }
1121
- /**
1122
- @internal
1123
- */
1124
- stateSlot(t, e) {
1125
- return this.states[t * 6 + e];
1126
- }
1127
- /**
1128
- @internal
1129
- */
1130
- stateFlag(t, e) {
1131
- return (this.stateSlot(
1132
- t,
1133
- 0
1134
- /* ParseState.Flags */
1135
- ) & e) > 0;
1136
- }
1137
- /**
1138
- @internal
1139
- */
1140
- validAction(t, e) {
1141
- return !!this.allActions(t, (s) => s == e ? !0 : null);
1142
- }
1143
- /**
1144
- @internal
1145
- */
1146
- allActions(t, e) {
1147
- let s = this.stateSlot(
1148
- t,
1149
- 4
1150
- /* ParseState.DefaultReduce */
1151
- ), i = s ? e(s) : void 0;
1152
- for (let h = this.stateSlot(
1153
- t,
1154
- 1
1155
- /* ParseState.Actions */
1156
- ); i == null; h += 3) {
1157
- if (this.data[h] == 65535)
1158
- if (this.data[h + 1] == 1)
1159
- h = k(this.data, h + 2);
1160
- else
1161
- break;
1162
- i = e(k(this.data, h + 1));
1163
- }
1164
- return i;
1165
- }
1166
- /**
1167
- Get the states that can follow this one through shift actions or
1168
- goto jumps. @internal
1169
- */
1170
- nextStates(t) {
1171
- let e = [];
1172
- for (let s = this.stateSlot(
1173
- t,
1174
- 1
1175
- /* ParseState.Actions */
1176
- ); ; s += 3) {
1177
- if (this.data[s] == 65535)
1178
- if (this.data[s + 1] == 1)
1179
- s = k(this.data, s + 2);
1180
- else
1181
- break;
1182
- if (!(this.data[s + 2] & 1)) {
1183
- let i = this.data[s + 1];
1184
- e.some((h, r) => r & 1 && h == i) || e.push(this.data[s], i);
1185
- }
1186
- }
1187
- return e;
1188
- }
1189
- /**
1190
- Configure the parser. Returns a new parser instance that has the
1191
- given settings modified. Settings not provided in `config` are
1192
- kept from the original parser.
1193
- */
1194
- configure(t) {
1195
- let e = Object.assign(Object.create(w.prototype), this);
1196
- if (t.props && (e.nodeSet = this.nodeSet.extend(...t.props)), t.top) {
1197
- let s = this.topRules[t.top];
1198
- if (!s)
1199
- throw new RangeError(`Invalid top rule name ${t.top}`);
1200
- e.top = s;
1201
- }
1202
- return t.tokenizers && (e.tokenizers = this.tokenizers.map((s) => {
1203
- let i = t.tokenizers.find((h) => h.from == s);
1204
- return i ? i.to : s;
1205
- })), t.specializers && (e.specializers = this.specializers.slice(), e.specializerSpecs = this.specializerSpecs.map((s, i) => {
1206
- let h = t.specializers.find((n) => n.from == s.external);
1207
- if (!h)
1208
- return s;
1209
- let r = Object.assign(Object.assign({}, s), { external: h.to });
1210
- return e.specializers[i] = B(r), r;
1211
- })), t.contextTracker && (e.context = t.contextTracker), t.dialect && (e.dialect = this.parseDialect(t.dialect)), t.strict != null && (e.strict = t.strict), t.wrap && (e.wrappers = e.wrappers.concat(t.wrap)), t.bufferLength != null && (e.bufferLength = t.bufferLength), e;
1212
- }
1213
- /**
1214
- Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)
1215
- are registered for this parser.
1216
- */
1217
- hasWrappers() {
1218
- return this.wrappers.length > 0;
1219
- }
1220
- /**
1221
- Returns the name associated with a given term. This will only
1222
- work for all terms when the parser was generated with the
1223
- `--names` option. By default, only the names of tagged terms are
1224
- stored.
1225
- */
1226
- getName(t) {
1227
- return this.termNames ? this.termNames[t] : String(t <= this.maxNode && this.nodeSet.types[t].name || t);
1228
- }
1229
- /**
1230
- The eof term id is always allocated directly after the node
1231
- types. @internal
1232
- */
1233
- get eofTerm() {
1234
- return this.maxNode + 1;
1235
- }
1236
- /**
1237
- The type of top node produced by the parser.
1238
- */
1239
- get topNode() {
1240
- return this.nodeSet.types[this.top[1]];
1241
- }
1242
- /**
1243
- @internal
1244
- */
1245
- dynamicPrecedence(t) {
1246
- let e = this.dynamicPrecedences;
1247
- return e == null ? 0 : e[t] || 0;
1248
- }
1249
- /**
1250
- @internal
1251
- */
1252
- parseDialect(t) {
1253
- let e = Object.keys(this.dialects), s = e.map(() => !1);
1254
- if (t)
1255
- for (let h of t.split(" ")) {
1256
- let r = e.indexOf(h);
1257
- r >= 0 && (s[r] = !0);
1258
- }
1259
- let i = null;
1260
- for (let h = 0; h < e.length; h++)
1261
- if (!s[h])
1262
- for (let r = this.dialects[e[h]], n; (n = this.data[r++]) != 65535; )
1263
- (i || (i = new Uint8Array(this.maxTerm + 1)))[n] = 1;
1264
- return new Q(t, s, i);
1265
- }
1266
- /**
1267
- Used by the output of the parser generator. Not available to
1268
- user code. @hide
1269
- */
1270
- static deserialize(t) {
1271
- return new w(t);
1272
- }
1273
- }
1274
- function k(l, t) {
1275
- return l[t] | l[t + 1] << 16;
1276
- }
1277
- function V(l) {
1278
- let t = null;
1279
- for (let e of l) {
1280
- let s = e.p.stoppedAt;
1281
- (e.pos == e.p.stream.end || s != null && e.pos > s) && e.p.parser.stateFlag(
1282
- e.state,
1283
- 2
1284
- /* StateFlag.Accepting */
1285
- ) && (!t || t.score < e.score) && (t = e);
1286
- }
1287
- return t;
1288
- }
1289
- function B(l) {
1290
- if (l.external) {
1291
- let t = l.extend ? 1 : 0;
1292
- return (e, s) => l.external(e, s) << 1 | t;
1293
- }
1294
- return l.get;
1295
- }
1296
- export {
1297
- Z as C,
1298
- Y as E,
1299
- w as L,
1300
- H as a
1301
- };