@plumile/ui 0.1.113 → 0.1.115

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 (440) hide show
  1. package/lib/esm/_virtual/_rolldown/runtime.js +5 -5
  2. package/lib/esm/atomic/atoms/modal/Modal.js +14 -14
  3. package/lib/esm/atomic/atoms/modal/Modal.js.map +1 -1
  4. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
  5. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
  6. package/lib/esm/focus/focusable.js +1 -1
  7. package/lib/esm/focus/focusable.js.map +1 -1
  8. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
  9. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
  10. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
  11. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
  12. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
  13. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
  14. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
  15. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
  16. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
  17. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
  18. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
  19. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
  20. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
  21. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
  22. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
  23. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
  24. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
  25. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
  26. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
  27. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
  28. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
  29. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
  30. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
  31. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  32. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
  33. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  34. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  35. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  36. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  37. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
  38. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  39. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  40. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  41. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
  42. package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
  43. package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
  44. package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
  45. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
  46. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
  47. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
  48. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
  49. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
  50. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
  51. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
  52. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
  53. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
  54. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
  55. package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
  56. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
  57. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
  58. package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
  59. package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
  60. package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
  61. package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
  62. package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
  63. package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
  64. package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
  65. package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
  66. package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
  67. package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
  68. package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
  69. package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
  70. package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
  71. package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
  72. package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
  73. package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
  74. package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
  75. package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
  76. package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
  77. package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
  78. package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
  79. package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
  80. package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
  81. package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
  82. package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
  83. package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
  84. package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
  85. package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
  86. package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
  87. package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
  88. package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
  89. package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
  90. package/lib/esm/node_modules/lodash-es/isString.js +3 -3
  91. package/lib/esm/node_modules/lodash-es/keys.js +4 -4
  92. package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
  93. package/lib/esm/node_modules/lodash-es/map.js +3 -3
  94. package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
  95. package/lib/esm/node_modules/lodash-es/max.js +3 -3
  96. package/lib/esm/node_modules/lodash-es/min.js +3 -3
  97. package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
  98. package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
  99. package/lib/esm/node_modules/lodash-es/size.js +4 -4
  100. package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
  101. package/lib/esm/node_modules/lodash-es/union.js +6 -6
  102. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
  103. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
  104. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
  105. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
  106. package/lib/types/atomic/atoms/modal/Modal.d.ts.map +1 -1
  107. package/package.json +2 -2
  108. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
  109. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
  110. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
  111. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
  112. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
  113. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
  114. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  115. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
  116. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
  117. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
  118. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
  119. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
  120. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
  121. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
  122. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
  123. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
  124. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
  125. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
  126. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
  127. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
  128. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
  129. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
  130. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
  131. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
  132. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
  133. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
  134. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
  135. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
  136. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
  137. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
  138. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
  139. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
  140. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
  141. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
  142. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
  143. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
  144. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
  145. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
  146. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
  147. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
  148. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
  149. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
  150. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  151. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  152. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  153. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  154. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
  155. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  156. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  157. package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
  158. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
  159. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
  160. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
  161. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
  162. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
  163. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
  164. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
  165. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
  166. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
  167. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
  168. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
  169. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
  170. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
  171. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
  172. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
  173. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
  174. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
  175. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
  176. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
  177. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
  178. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
  179. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
  180. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
  181. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
  182. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
  183. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
  184. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
  185. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
  186. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
  187. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
  188. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
  189. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
  190. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
  191. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
  192. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
  193. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
  194. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
  195. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
  196. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
  197. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
  198. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
  199. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
  200. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
  201. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
  202. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
  203. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
  204. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
  205. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
  206. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
  207. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
  208. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
  209. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
  210. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
  211. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
  212. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
  213. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
  214. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
  215. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
  216. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
  217. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
  218. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
  219. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
  220. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
  221. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
  222. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
  223. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
  224. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
  225. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
  226. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
  227. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
  228. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
  229. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
  230. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
  231. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
  232. package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
  233. package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
  234. package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
  235. package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
  236. package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
  237. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
  238. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
  239. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
  240. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
  241. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
  242. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
  243. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
  244. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
  245. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
  246. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
  247. package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
  248. package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
  249. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
  250. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
  251. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
  252. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
  253. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
  254. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
  255. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
  256. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
  257. package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
  258. package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
  259. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
  260. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
  261. package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
  262. package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
  263. package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
  264. package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
  265. package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
  266. package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
  267. package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
  268. package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
  269. package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
  270. package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
  271. package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
  272. package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
  273. package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
  274. package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
  275. package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
  276. package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
  277. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
  278. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
  279. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
  280. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
  281. package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
  282. package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
  283. package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
  284. package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
  285. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
  286. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
  287. package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
  288. package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
  289. package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
  290. package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
  291. package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
  292. package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
  293. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
  294. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
  295. package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
  296. package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
  297. package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
  298. package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
  299. package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
  300. package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
  301. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
  302. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
  303. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
  304. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
  305. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
  306. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
  307. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
  308. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
  309. package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
  310. package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
  311. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
  312. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
  313. package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
  314. package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
  315. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
  316. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
  317. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
  318. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
  319. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
  320. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
  321. package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
  322. package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
  323. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
  324. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
  325. package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
  326. package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
  327. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
  328. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
  329. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
  330. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
  331. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
  332. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
  333. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
  334. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
  335. package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
  336. package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
  337. package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
  338. package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
  339. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  340. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  341. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  342. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  343. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  344. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  345. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  346. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  347. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
  348. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
  349. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
  350. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
  351. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
  352. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
  353. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
  354. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
  355. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
  356. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
  357. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
  358. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
  359. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
  360. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
  361. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
  362. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
  363. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
  364. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
  365. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
  366. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
  367. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
  368. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
  369. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
  370. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
  371. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
  372. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
  373. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
  374. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
  375. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
  376. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
  377. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
  378. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
  379. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
  380. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
  381. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
  382. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
  383. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
  384. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
  385. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
  386. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
  387. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
  388. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
  389. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
  390. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
  391. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
  392. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
  393. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
  394. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
  395. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
  396. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
  397. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
  398. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
  399. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
  400. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
  401. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
  402. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
  403. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
  404. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
  405. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
  406. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
  407. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
  408. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
  409. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  410. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  411. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
  412. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
  413. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
  414. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
  415. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  416. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  417. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  418. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  419. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
  420. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
  421. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
  422. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
  423. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
  424. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
  425. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
  426. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
  427. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
  428. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
  429. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  430. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  431. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
  432. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
  433. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
  434. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
  435. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
  436. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
  437. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
  438. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
  439. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
  440. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
@@ -1,279 +0,0 @@
1
- import { Alternation as e, Alternative as t, NonTerminal as n, Option as r, Repetition as i, RepetitionMandatory as a, RepetitionMandatoryWithSeparator as o, RepetitionWithSeparator as s, Terminal as c } from "../../../../../@chevrotain/gast/lib/src/model.js";
2
- import { GAstVisitor as l } from "../../../../../@chevrotain/gast/lib/src/visitor.js";
3
- import { getProductionDslName as u, isOptionalProd as d } from "../../../../../@chevrotain/gast/lib/src/helpers.js";
4
- import { tokenStructuredMatcher as f } from "../../scan/tokens.js";
5
- import { nextPossibleTokensAfter as p } from "./interpreter.js";
6
- import { containsPath as m, getLookaheadPathsForOptionalProd as h, getLookaheadPathsForOr as g, getProdType as _, isStrictPrefixOfPath as v } from "./lookahead.js";
7
- import { ParserDefinitionErrorType as y } from "../parser/parser.js";
8
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/checks.js
9
- function b(e) {
10
- return e.lookaheadStrategy.validate({
11
- rules: e.rules,
12
- tokenTypes: e.tokenTypes,
13
- grammarName: e.grammarName
14
- }).map((e) => Object.assign({ type: y.CUSTOM_LOOKAHEAD_VALIDATION }, e));
15
- }
16
- function x(e, t, n, r) {
17
- let i = e.flatMap((e) => S(e, n)), a = R(e, t, n), o = e.flatMap((e) => P(e, n)), s = e.flatMap((t) => E(t, e, r, n));
18
- return i.concat(a, o, s);
19
- }
20
- function S(e, t) {
21
- let n = new T();
22
- e.accept(n);
23
- let r = n.allProductions, i = Object.groupBy(r, C), a = Object.fromEntries(Object.entries(i).filter(([e, t]) => t.length > 1));
24
- return Object.values(a).map((n) => {
25
- let r = n[0], i = t.buildDuplicateFoundError(e, n), a = u(r), o = {
26
- message: i,
27
- type: y.DUPLICATE_PRODUCTIONS,
28
- ruleName: e.name,
29
- dslName: a,
30
- occurrence: r.idx
31
- }, s = w(r);
32
- return s && (o.parameter = s), o;
33
- });
34
- }
35
- function C(e) {
36
- return `${u(e)}_#_${e.idx}_#_${w(e)}`;
37
- }
38
- function w(e) {
39
- return e instanceof c ? e.terminalType.name : e instanceof n ? e.nonTerminalName : "";
40
- }
41
- var T = class extends l {
42
- constructor() {
43
- super(...arguments), this.allProductions = [];
44
- }
45
- visitNonTerminal(e) {
46
- this.allProductions.push(e);
47
- }
48
- visitOption(e) {
49
- this.allProductions.push(e);
50
- }
51
- visitRepetitionWithSeparator(e) {
52
- this.allProductions.push(e);
53
- }
54
- visitRepetitionMandatory(e) {
55
- this.allProductions.push(e);
56
- }
57
- visitRepetitionMandatoryWithSeparator(e) {
58
- this.allProductions.push(e);
59
- }
60
- visitRepetition(e) {
61
- this.allProductions.push(e);
62
- }
63
- visitAlternation(e) {
64
- this.allProductions.push(e);
65
- }
66
- visitTerminal(e) {
67
- this.allProductions.push(e);
68
- }
69
- };
70
- function E(e, t, n, r) {
71
- let i = [];
72
- if (t.reduce((t, n) => n.name === e.name ? t + 1 : t, 0) > 1) {
73
- let t = r.buildDuplicateRuleNameError({
74
- topLevelRule: e,
75
- grammarName: n
76
- });
77
- i.push({
78
- message: t,
79
- type: y.DUPLICATE_RULE_NAME,
80
- ruleName: e.name
81
- });
82
- }
83
- return i;
84
- }
85
- function D(e, t, n) {
86
- let r = [], i;
87
- return t.includes(e) || (i = `Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `, r.push({
88
- message: i,
89
- type: y.INVALID_RULE_OVERRIDE,
90
- ruleName: e
91
- })), r;
92
- }
93
- function O(e, t, n, r = []) {
94
- let i = [], a = k(t.definition);
95
- if (a.length === 0) return [];
96
- {
97
- let t = e.name;
98
- a.includes(e) && i.push({
99
- message: n.buildLeftRecursionError({
100
- topLevelRule: e,
101
- leftRecursionPath: r
102
- }),
103
- type: y.LEFT_RECURSION,
104
- ruleName: t
105
- });
106
- let o = r.concat([e]), s = a.filter((e) => !o.includes(e)).flatMap((t) => {
107
- let i = [...r];
108
- return i.push(t), O(e, t, n, i);
109
- });
110
- return i.concat(s);
111
- }
112
- }
113
- function k(l) {
114
- let u = [];
115
- if (l.length === 0) return u;
116
- let f = l[0];
117
- /* istanbul ignore else */
118
- if (f instanceof n) u.push(f.referencedRule);
119
- else if (f instanceof t || f instanceof r || f instanceof a || f instanceof o || f instanceof s || f instanceof i) u = u.concat(k(f.definition));
120
- else if (f instanceof e) u = f.definition.map((e) => k(e.definition)).flat();
121
- else if (!(f instanceof c)) throw Error("non exhaustive match");
122
- let p = d(f), m = l.length > 1;
123
- if (p && m) {
124
- let e = l.slice(1);
125
- return u.concat(k(e));
126
- } else return u;
127
- }
128
- var A = class extends l {
129
- constructor() {
130
- super(...arguments), this.alternations = [];
131
- }
132
- visitAlternation(e) {
133
- this.alternations.push(e);
134
- }
135
- };
136
- function j(e, t) {
137
- let n = new A();
138
- return e.accept(n), n.alternations.flatMap((n) => n.definition.slice(0, -1).flatMap((r, i) => p([r], [], f, 1).length === 0 ? [{
139
- message: t.buildEmptyAlternationError({
140
- topLevelRule: e,
141
- alternation: n,
142
- emptyChoiceIdx: i
143
- }),
144
- type: y.NONE_LAST_EMPTY_ALT,
145
- ruleName: e.name,
146
- occurrence: n.idx,
147
- alternative: i + 1
148
- }] : []));
149
- }
150
- function M(e, t, n) {
151
- let r = new A();
152
- e.accept(r);
153
- let i = r.alternations;
154
- return i = i.filter((e) => e.ignoreAmbiguities !== !0), i.flatMap((r) => {
155
- let i = r.idx, a = g(i, e, r.maxLookahead || t, r), o = I(a, r, e, n), s = L(a, r, e, n);
156
- return o.concat(s);
157
- });
158
- }
159
- var N = class extends l {
160
- constructor() {
161
- super(...arguments), this.allProductions = [];
162
- }
163
- visitRepetitionWithSeparator(e) {
164
- this.allProductions.push(e);
165
- }
166
- visitRepetitionMandatory(e) {
167
- this.allProductions.push(e);
168
- }
169
- visitRepetitionMandatoryWithSeparator(e) {
170
- this.allProductions.push(e);
171
- }
172
- visitRepetition(e) {
173
- this.allProductions.push(e);
174
- }
175
- };
176
- function P(e, t) {
177
- let n = new A();
178
- return e.accept(n), n.alternations.flatMap((n) => n.definition.length > 255 ? [{
179
- message: t.buildTooManyAlternativesError({
180
- topLevelRule: e,
181
- alternation: n
182
- }),
183
- type: y.TOO_MANY_ALTS,
184
- ruleName: e.name,
185
- occurrence: n.idx
186
- }] : []);
187
- }
188
- function F(e, t, n) {
189
- let r = [];
190
- return e.forEach((e) => {
191
- let i = new N();
192
- e.accept(i), i.allProductions.forEach((i) => {
193
- let a = _(i), o = i.maxLookahead || t, s = i.idx;
194
- if (h(s, e, a, o)[0].flat().length === 0) {
195
- let t = n.buildEmptyRepetitionError({
196
- topLevelRule: e,
197
- repetition: i
198
- });
199
- r.push({
200
- message: t,
201
- type: y.NO_NON_EMPTY_LOOKAHEAD,
202
- ruleName: e.name
203
- });
204
- }
205
- });
206
- }), r;
207
- }
208
- function I(e, t, n, r) {
209
- let i = [];
210
- return e.reduce((n, r, a) => (t.definition[a].ignoreAmbiguities === !0 || r.forEach((r) => {
211
- let o = [a];
212
- e.forEach((e, n) => {
213
- a !== n && m(e, r) && t.definition[n].ignoreAmbiguities !== !0 && o.push(n);
214
- }), o.length > 1 && !m(i, r) && (i.push(r), n.push({
215
- alts: o,
216
- path: r
217
- }));
218
- }), n), []).map((e) => {
219
- let i = e.alts.map((e) => e + 1);
220
- return {
221
- message: r.buildAlternationAmbiguityError({
222
- topLevelRule: n,
223
- alternation: t,
224
- ambiguityIndices: i,
225
- prefixPath: e.path
226
- }),
227
- type: y.AMBIGUOUS_ALTS,
228
- ruleName: n.name,
229
- occurrence: t.idx,
230
- alternatives: e.alts
231
- };
232
- });
233
- }
234
- function L(e, t, n, r) {
235
- let i = e.reduce((e, t, n) => {
236
- let r = t.map((e) => ({
237
- idx: n,
238
- path: e
239
- }));
240
- return e.concat(r);
241
- }, []);
242
- return i.flatMap((e) => {
243
- if (t.definition[e.idx].ignoreAmbiguities === !0) return [];
244
- let a = e.idx, o = e.path;
245
- return i.filter((e) => t.definition[e.idx].ignoreAmbiguities !== !0 && e.idx < a && v(e.path, o)).map((e) => {
246
- let i = [e.idx + 1, a + 1], o = t.idx === 0 ? "" : t.idx;
247
- return {
248
- message: r.buildAlternationPrefixAmbiguityError({
249
- topLevelRule: n,
250
- alternation: t,
251
- ambiguityIndices: i,
252
- prefixPath: e.path
253
- }),
254
- type: y.AMBIGUOUS_PREFIX_ALTS,
255
- ruleName: n.name,
256
- occurrence: o,
257
- alternatives: i
258
- };
259
- });
260
- });
261
- }
262
- function R(e, t, n) {
263
- let r = [], i = t.map((e) => e.name);
264
- return e.forEach((e) => {
265
- let t = e.name;
266
- if (i.includes(t)) {
267
- let i = n.buildNamespaceConflictError(e);
268
- r.push({
269
- message: i,
270
- type: y.CONFLICT_TOKENS_RULES_NAMESPACE,
271
- ruleName: t
272
- });
273
- }
274
- }), r;
275
- }
276
- //#endregion
277
- export { M as validateAmbiguousAlternationAlternatives, j as validateEmptyOrAlternative, x as validateGrammar, b as validateLookahead, O as validateNoLeftRecursion, D as validateRuleIsOverridden, F as validateSomeNonEmptyLookaheadPath };
278
-
279
- //# sourceMappingURL=checks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checks.js","names":["AlternativeGAST"],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/checks.js"],"sourcesContent":["import { ParserDefinitionErrorType, } from \"../parser/parser.js\";\nimport { Alternation, Alternative as AlternativeGAST, GAstVisitor, getProductionDslName, isOptionalProd, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal, } from \"@chevrotain/gast\";\nimport { containsPath, getLookaheadPathsForOptionalProd, getLookaheadPathsForOr, getProdType, isStrictPrefixOfPath, } from \"./lookahead.js\";\nimport { nextPossibleTokensAfter } from \"./interpreter.js\";\nimport { tokenStructuredMatcher } from \"../../scan/tokens.js\";\nexport function validateLookahead(options) {\n const lookaheadValidationErrorMessages = options.lookaheadStrategy.validate({\n rules: options.rules,\n tokenTypes: options.tokenTypes,\n grammarName: options.grammarName,\n });\n return lookaheadValidationErrorMessages.map((errorMessage) => (Object.assign({ type: ParserDefinitionErrorType.CUSTOM_LOOKAHEAD_VALIDATION }, errorMessage)));\n}\nexport function validateGrammar(topLevels, tokenTypes, errMsgProvider, grammarName) {\n const duplicateErrors = topLevels.flatMap((currTopLevel) => validateDuplicateProductions(currTopLevel, errMsgProvider));\n const termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider);\n const tooManyAltsErrors = topLevels.flatMap((curRule) => validateTooManyAlts(curRule, errMsgProvider));\n const duplicateRulesError = topLevels.flatMap((curRule) => validateRuleDoesNotAlreadyExist(curRule, topLevels, grammarName, errMsgProvider));\n return duplicateErrors.concat(termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError);\n}\nfunction validateDuplicateProductions(topLevelRule, errMsgProvider) {\n const collectorVisitor = new OccurrenceValidationCollector();\n topLevelRule.accept(collectorVisitor);\n const allRuleProductions = collectorVisitor.allProductions;\n const productionGroups = Object.groupBy(allRuleProductions, identifyProductionForDuplicates);\n const duplicates = Object.fromEntries(Object.entries(productionGroups).filter(([_k, currGroup]) => currGroup.length > 1));\n const errors = Object.values(duplicates).map((currDuplicates) => {\n const firstProd = currDuplicates[0];\n const msg = errMsgProvider.buildDuplicateFoundError(topLevelRule, currDuplicates);\n const dslName = getProductionDslName(firstProd);\n const defError = {\n message: msg,\n type: ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,\n ruleName: topLevelRule.name,\n dslName: dslName,\n occurrence: firstProd.idx,\n };\n const param = getExtraProductionArgument(firstProd);\n if (param) {\n defError.parameter = param;\n }\n return defError;\n });\n return errors;\n}\nexport function identifyProductionForDuplicates(prod) {\n return `${getProductionDslName(prod)}_#_${prod.idx}_#_${getExtraProductionArgument(prod)}`;\n}\nfunction getExtraProductionArgument(prod) {\n if (prod instanceof Terminal) {\n return prod.terminalType.name;\n }\n else if (prod instanceof NonTerminal) {\n return prod.nonTerminalName;\n }\n else {\n return \"\";\n }\n}\nexport class OccurrenceValidationCollector extends GAstVisitor {\n constructor() {\n super(...arguments);\n this.allProductions = [];\n }\n visitNonTerminal(subrule) {\n this.allProductions.push(subrule);\n }\n visitOption(option) {\n this.allProductions.push(option);\n }\n visitRepetitionWithSeparator(manySep) {\n this.allProductions.push(manySep);\n }\n visitRepetitionMandatory(atLeastOne) {\n this.allProductions.push(atLeastOne);\n }\n visitRepetitionMandatoryWithSeparator(atLeastOneSep) {\n this.allProductions.push(atLeastOneSep);\n }\n visitRepetition(many) {\n this.allProductions.push(many);\n }\n visitAlternation(or) {\n this.allProductions.push(or);\n }\n visitTerminal(terminal) {\n this.allProductions.push(terminal);\n }\n}\nexport function validateRuleDoesNotAlreadyExist(rule, allRules, className, errMsgProvider) {\n const errors = [];\n const occurrences = allRules.reduce((result, curRule) => {\n if (curRule.name === rule.name) {\n return result + 1;\n }\n return result;\n }, 0);\n if (occurrences > 1) {\n const errMsg = errMsgProvider.buildDuplicateRuleNameError({\n topLevelRule: rule,\n grammarName: className,\n });\n errors.push({\n message: errMsg,\n type: ParserDefinitionErrorType.DUPLICATE_RULE_NAME,\n ruleName: rule.name,\n });\n }\n return errors;\n}\n// TODO: is there anyway to get only the rule names of rules inherited from the super grammars?\n// This is not part of the IGrammarErrorProvider because the validation cannot be performed on\n// The grammar structure, only at runtime.\nexport function validateRuleIsOverridden(ruleName, definedRulesNames, className) {\n const errors = [];\n let errMsg;\n if (!definedRulesNames.includes(ruleName)) {\n errMsg =\n `Invalid rule override, rule: ->${ruleName}<- cannot be overridden in the grammar: ->${className}<-` +\n `as it is not defined in any of the super grammars `;\n errors.push({\n message: errMsg,\n type: ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,\n ruleName: ruleName,\n });\n }\n return errors;\n}\nexport function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path = []) {\n const errors = [];\n const nextNonTerminals = getFirstNoneTerminal(currRule.definition);\n if (nextNonTerminals.length === 0) {\n return [];\n }\n else {\n const ruleName = topRule.name;\n const foundLeftRecursion = nextNonTerminals.includes(topRule);\n if (foundLeftRecursion) {\n errors.push({\n message: errMsgProvider.buildLeftRecursionError({\n topLevelRule: topRule,\n leftRecursionPath: path,\n }),\n type: ParserDefinitionErrorType.LEFT_RECURSION,\n ruleName: ruleName,\n });\n }\n // we are only looking for cyclic paths leading back to the specific topRule\n // other cyclic paths are ignored, we still need this difference to avoid infinite loops...\n const excluded = path.concat([topRule]);\n const validNextSteps = nextNonTerminals.filter((x) => !excluded.includes(x));\n const errorsFromNextSteps = validNextSteps.flatMap((currRefRule) => {\n const newPath = [...path];\n newPath.push(currRefRule);\n return validateNoLeftRecursion(topRule, currRefRule, errMsgProvider, newPath);\n });\n return errors.concat(errorsFromNextSteps);\n }\n}\nexport function getFirstNoneTerminal(definition) {\n let result = [];\n if (definition.length === 0) {\n return result;\n }\n const firstProd = definition[0];\n /* istanbul ignore else */\n if (firstProd instanceof NonTerminal) {\n result.push(firstProd.referencedRule);\n }\n else if (firstProd instanceof AlternativeGAST ||\n firstProd instanceof Option ||\n firstProd instanceof RepetitionMandatory ||\n firstProd instanceof RepetitionMandatoryWithSeparator ||\n firstProd instanceof RepetitionWithSeparator ||\n firstProd instanceof Repetition) {\n result = result.concat(getFirstNoneTerminal(firstProd.definition));\n }\n else if (firstProd instanceof Alternation) {\n // each sub definition in alternation is a FLAT\n result = firstProd.definition\n .map((currSubDef) => getFirstNoneTerminal(currSubDef.definition))\n .flat();\n }\n else if (firstProd instanceof Terminal) {\n // nothing to see, move along\n }\n else {\n throw Error(\"non exhaustive match\");\n }\n const isFirstOptional = isOptionalProd(firstProd);\n const hasMore = definition.length > 1;\n if (isFirstOptional && hasMore) {\n const rest = definition.slice(1);\n return result.concat(getFirstNoneTerminal(rest));\n }\n else {\n return result;\n }\n}\nclass OrCollector extends GAstVisitor {\n constructor() {\n super(...arguments);\n this.alternations = [];\n }\n visitAlternation(node) {\n this.alternations.push(node);\n }\n}\nexport function validateEmptyOrAlternative(topLevelRule, errMsgProvider) {\n const orCollector = new OrCollector();\n topLevelRule.accept(orCollector);\n const ors = orCollector.alternations;\n const errors = ors.flatMap((currOr) => {\n const exceptLast = currOr.definition.slice(0, -1);\n return exceptLast.flatMap((currAlternative, currAltIdx) => {\n const possibleFirstInAlt = nextPossibleTokensAfter([currAlternative], [], tokenStructuredMatcher, 1);\n if (possibleFirstInAlt.length === 0) {\n return [\n {\n message: errMsgProvider.buildEmptyAlternationError({\n topLevelRule: topLevelRule,\n alternation: currOr,\n emptyChoiceIdx: currAltIdx,\n }),\n type: ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,\n ruleName: topLevelRule.name,\n occurrence: currOr.idx,\n alternative: currAltIdx + 1,\n },\n ];\n }\n else {\n return [];\n }\n });\n });\n return errors;\n}\nexport function validateAmbiguousAlternationAlternatives(topLevelRule, globalMaxLookahead, errMsgProvider) {\n const orCollector = new OrCollector();\n topLevelRule.accept(orCollector);\n let ors = orCollector.alternations;\n // New Handling of ignoring ambiguities\n // - https://github.com/chevrotain/chevrotain/issues/869\n ors = ors.filter((currOr) => currOr.ignoreAmbiguities !== true);\n const errors = ors.flatMap((currOr) => {\n const currOccurrence = currOr.idx;\n const actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead;\n const alternatives = getLookaheadPathsForOr(currOccurrence, topLevelRule, actualMaxLookahead, currOr);\n const altsAmbiguityErrors = checkAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider);\n const altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider);\n return altsAmbiguityErrors.concat(altsPrefixAmbiguityErrors);\n });\n return errors;\n}\nexport class RepetitionCollector extends GAstVisitor {\n constructor() {\n super(...arguments);\n this.allProductions = [];\n }\n visitRepetitionWithSeparator(manySep) {\n this.allProductions.push(manySep);\n }\n visitRepetitionMandatory(atLeastOne) {\n this.allProductions.push(atLeastOne);\n }\n visitRepetitionMandatoryWithSeparator(atLeastOneSep) {\n this.allProductions.push(atLeastOneSep);\n }\n visitRepetition(many) {\n this.allProductions.push(many);\n }\n}\nexport function validateTooManyAlts(topLevelRule, errMsgProvider) {\n const orCollector = new OrCollector();\n topLevelRule.accept(orCollector);\n const ors = orCollector.alternations;\n const errors = ors.flatMap((currOr) => {\n if (currOr.definition.length > 255) {\n return [\n {\n message: errMsgProvider.buildTooManyAlternativesError({\n topLevelRule: topLevelRule,\n alternation: currOr,\n }),\n type: ParserDefinitionErrorType.TOO_MANY_ALTS,\n ruleName: topLevelRule.name,\n occurrence: currOr.idx,\n },\n ];\n }\n else {\n return [];\n }\n });\n return errors;\n}\nexport function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgProvider) {\n const errors = [];\n topLevelRules.forEach((currTopRule) => {\n const collectorVisitor = new RepetitionCollector();\n currTopRule.accept(collectorVisitor);\n const allRuleProductions = collectorVisitor.allProductions;\n allRuleProductions.forEach((currProd) => {\n const prodType = getProdType(currProd);\n const actualMaxLookahead = currProd.maxLookahead || maxLookahead;\n const currOccurrence = currProd.idx;\n const paths = getLookaheadPathsForOptionalProd(currOccurrence, currTopRule, prodType, actualMaxLookahead);\n const pathsInsideProduction = paths[0];\n if (pathsInsideProduction.flat().length === 0) {\n const errMsg = errMsgProvider.buildEmptyRepetitionError({\n topLevelRule: currTopRule,\n repetition: currProd,\n });\n errors.push({\n message: errMsg,\n type: ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,\n ruleName: currTopRule.name,\n });\n }\n });\n });\n return errors;\n}\nfunction checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) {\n const foundAmbiguousPaths = [];\n const identicalAmbiguities = alternatives.reduce((result, currAlt, currAltIdx) => {\n // ignore (skip) ambiguities with this alternative\n if (alternation.definition[currAltIdx].ignoreAmbiguities === true) {\n return result;\n }\n currAlt.forEach((currPath) => {\n const altsCurrPathAppearsIn = [currAltIdx];\n alternatives.forEach((currOtherAlt, currOtherAltIdx) => {\n if (currAltIdx !== currOtherAltIdx &&\n containsPath(currOtherAlt, currPath) &&\n // ignore (skip) ambiguities with this \"other\" alternative\n alternation.definition[currOtherAltIdx].ignoreAmbiguities !== true) {\n altsCurrPathAppearsIn.push(currOtherAltIdx);\n }\n });\n if (altsCurrPathAppearsIn.length > 1 &&\n !containsPath(foundAmbiguousPaths, currPath)) {\n foundAmbiguousPaths.push(currPath);\n result.push({\n alts: altsCurrPathAppearsIn,\n path: currPath,\n });\n }\n });\n return result;\n }, []);\n const currErrors = identicalAmbiguities.map((currAmbDescriptor) => {\n const ambgIndices = currAmbDescriptor.alts.map((currAltIdx) => currAltIdx + 1);\n const currMessage = errMsgProvider.buildAlternationAmbiguityError({\n topLevelRule: rule,\n alternation: alternation,\n ambiguityIndices: ambgIndices,\n prefixPath: currAmbDescriptor.path,\n });\n return {\n message: currMessage,\n type: ParserDefinitionErrorType.AMBIGUOUS_ALTS,\n ruleName: rule.name,\n occurrence: alternation.idx,\n alternatives: currAmbDescriptor.alts,\n };\n });\n return currErrors;\n}\nexport function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) {\n // flatten\n const pathsAndIndices = alternatives.reduce((result, currAlt, idx) => {\n const currPathsAndIdx = currAlt.map((currPath) => {\n return { idx: idx, path: currPath };\n });\n return result.concat(currPathsAndIdx);\n }, []);\n const errors = pathsAndIndices.flatMap((currPathAndIdx) => {\n const alternativeGast = alternation.definition[currPathAndIdx.idx];\n // ignore (skip) ambiguities with this alternative\n if (alternativeGast.ignoreAmbiguities === true) {\n return [];\n }\n const targetIdx = currPathAndIdx.idx;\n const targetPath = currPathAndIdx.path;\n const prefixAmbiguitiesPathsAndIndices = pathsAndIndices.filter((searchPathAndIdx) => {\n // prefix ambiguity can only be created from lower idx (higher priority) path\n return (\n // ignore (skip) ambiguities with this \"other\" alternative\n alternation.definition[searchPathAndIdx.idx].ignoreAmbiguities !==\n true &&\n searchPathAndIdx.idx < targetIdx &&\n // checking for strict prefix because identical lookaheads\n // will be be detected using a different validation.\n isStrictPrefixOfPath(searchPathAndIdx.path, targetPath));\n });\n const currPathPrefixErrors = prefixAmbiguitiesPathsAndIndices.map((currAmbPathAndIdx) => {\n const ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1];\n const occurrence = alternation.idx === 0 ? \"\" : alternation.idx;\n const message = errMsgProvider.buildAlternationPrefixAmbiguityError({\n topLevelRule: rule,\n alternation: alternation,\n ambiguityIndices: ambgIndices,\n prefixPath: currAmbPathAndIdx.path,\n });\n return {\n message: message,\n type: ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,\n ruleName: rule.name,\n occurrence: occurrence,\n alternatives: ambgIndices,\n };\n });\n return currPathPrefixErrors;\n });\n return errors;\n}\nfunction checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider) {\n const errors = [];\n const tokenNames = tokenTypes.map((currToken) => currToken.name);\n topLevels.forEach((currRule) => {\n const currRuleName = currRule.name;\n if (tokenNames.includes(currRuleName)) {\n const errMsg = errMsgProvider.buildNamespaceConflictError(currRule);\n errors.push({\n message: errMsg,\n type: ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,\n ruleName: currRuleName,\n });\n }\n });\n return errors;\n}\n//# sourceMappingURL=checks.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAKA,SAAgB,EAAkB,GAAS;CAMvC,OALyC,EAAQ,kBAAkB,SAAS;E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C9B,IAAI,EAAW,SAAS,EAAa,EAAE;GACnC,IAAM,IAAS,EAAe,4BAA4B,EAAS;GACnE,EAAO,KAAK;IACR,SAAS;IACT,MAAM,EAA0B;IAChC,UAAU;IACb,CAAC;;GAER,EACK"}
@@ -1,27 +0,0 @@
1
- import { NonTerminal as e, Terminal as t } from "../../../../../@chevrotain/gast/lib/src/model.js";
2
- import { isBranchingProd as n, isOptionalProd as r, isSequenceProd as i } from "../../../../../@chevrotain/gast/lib/src/helpers.js";
3
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/first.js
4
- function a(r) {
5
- /* istanbul ignore else */
6
- if (r instanceof e) return a(r.referencedRule);
7
- if (r instanceof t) return c(r);
8
- if (i(r)) return o(r);
9
- if (n(r)) return s(r);
10
- throw Error("non exhaustive match");
11
- }
12
- function o(e) {
13
- let t = [], n = e.definition, i = 0, o = n.length > i, s, c = !0;
14
- for (; o && c;) s = n[i], c = r(s), t = t.concat(a(s)), i += 1, o = n.length > i;
15
- return [...new Set(t)];
16
- }
17
- function s(e) {
18
- let t = e.definition.map((e) => a(e));
19
- return [...new Set(t.flat())];
20
- }
21
- function c(e) {
22
- return [e.terminalType];
23
- }
24
- //#endregion
25
- export { a as first };
26
-
27
- //# sourceMappingURL=first.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"first.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/first.js"],"sourcesContent":["import { isBranchingProd, isOptionalProd, isSequenceProd, NonTerminal, Terminal, } from \"@chevrotain/gast\";\nexport function first(prod) {\n /* istanbul ignore else */\n if (prod instanceof NonTerminal) {\n // this could in theory cause infinite loops if\n // (1) prod A refs prod B.\n // (2) prod B refs prod A\n // (3) AB can match the empty set\n // in other words a cycle where everything is optional so the first will keep\n // looking ahead for the next optional part and will never exit\n // currently there is no safeguard for this unique edge case because\n // (1) not sure a grammar in which this can happen is useful for anything (productive)\n return first(prod.referencedRule);\n }\n else if (prod instanceof Terminal) {\n return firstForTerminal(prod);\n }\n else if (isSequenceProd(prod)) {\n return firstForSequence(prod);\n }\n else if (isBranchingProd(prod)) {\n return firstForBranching(prod);\n }\n else {\n throw Error(\"non exhaustive match\");\n }\n}\nexport function firstForSequence(prod) {\n let firstSet = [];\n const seq = prod.definition;\n let nextSubProdIdx = 0;\n let hasInnerProdsRemaining = seq.length > nextSubProdIdx;\n let currSubProd;\n // so we enter the loop at least once (if the definition is not empty\n let isLastInnerProdOptional = true;\n // scan a sequence until it's end or until we have found a NONE optional production in it\n while (hasInnerProdsRemaining && isLastInnerProdOptional) {\n currSubProd = seq[nextSubProdIdx];\n isLastInnerProdOptional = isOptionalProd(currSubProd);\n firstSet = firstSet.concat(first(currSubProd));\n nextSubProdIdx = nextSubProdIdx + 1;\n hasInnerProdsRemaining = seq.length > nextSubProdIdx;\n }\n return [...new Set(firstSet)];\n}\nexport function firstForBranching(prod) {\n const allAlternativesFirsts = prod.definition.map((innerProd) => {\n return first(innerProd);\n });\n return [...new Set(allAlternativesFirsts.flat())];\n}\nexport function firstForTerminal(terminal) {\n return [terminal.terminalType];\n}\n//# sourceMappingURL=first.js.map"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAgB,EAAM,GAAM;;CAExB,IAAI,aAAgB,GAShB,OAAO,EAAM,EAAK,eAAe;CAEhC,IAAI,aAAgB,GACrB,OAAO,EAAiB,EAAK;CAE5B,IAAI,EAAe,EAAK,EACzB,OAAO,EAAiB,EAAK;CAE5B,IAAI,EAAgB,EAAK,EAC1B,OAAO,EAAkB,EAAK;CAG9B,MAAM,MAAM,uBAAuB;;AAG3C,SAAgB,EAAiB,GAAM;CACnC,IAAI,IAAW,EAAE,EACX,IAAM,EAAK,YACb,IAAiB,GACjB,IAAyB,EAAI,SAAS,GACtC,GAEA,IAA0B;CAE9B,OAAO,KAA0B,IAK7B,AAJA,IAAc,EAAI,IAClB,IAA0B,EAAe,EAAY,EACrD,IAAW,EAAS,OAAO,EAAM,EAAY,CAAC,EAC9C,KAAkC,GAClC,IAAyB,EAAI,SAAS;CAE1C,OAAO,CAAC,GAAG,IAAI,IAAI,EAAS,CAAC;;AAEjC,SAAgB,EAAkB,GAAM;CACpC,IAAM,IAAwB,EAAK,WAAW,KAAK,MACxC,EAAM,EAAU,CACzB;CACF,OAAO,CAAC,GAAG,IAAI,IAAI,EAAsB,MAAM,CAAC,CAAC;;AAErD,SAAgB,EAAiB,GAAU;CACvC,OAAO,CAAC,EAAS,aAAa"}
@@ -1,32 +0,0 @@
1
- import { Alternative as e } from "../../../../../@chevrotain/gast/lib/src/model.js";
2
- import { RestWalker as t } from "./rest.js";
3
- import { first as n } from "./first.js";
4
- import { IN as r } from "../constants.js";
5
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/follow.js
6
- var i = class extends t {
7
- constructor(e) {
8
- super(), this.topProd = e, this.follows = {};
9
- }
10
- startWalking() {
11
- return this.walk(this.topProd), this.follows;
12
- }
13
- walkTerminal(e, t, n) {}
14
- walkProdRef(t, r, i) {
15
- let a = o(t.referencedRule, t.idx) + this.topProd.name, s = n(new e({ definition: r.concat(i) }));
16
- this.follows[a] = s;
17
- }
18
- };
19
- function a(e) {
20
- let t = {};
21
- return e.forEach((e) => {
22
- let n = new i(e).startWalking();
23
- Object.assign(t, n);
24
- }), t;
25
- }
26
- function o(e, t) {
27
- return e.name + t + r;
28
- }
29
- //#endregion
30
- export { a as computeAllProdsFollows };
31
-
32
- //# sourceMappingURL=follow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"follow.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/follow.js"],"sourcesContent":["import { RestWalker } from \"./rest.js\";\nimport { first } from \"./first.js\";\nimport { IN } from \"../constants.js\";\nimport { Alternative } from \"@chevrotain/gast\";\n// This ResyncFollowsWalker computes all of the follows required for RESYNC\n// (skipping reference production).\nexport class ResyncFollowsWalker extends RestWalker {\n constructor(topProd) {\n super();\n this.topProd = topProd;\n this.follows = {};\n }\n startWalking() {\n this.walk(this.topProd);\n return this.follows;\n }\n walkTerminal(terminal, currRest, prevRest) {\n // do nothing! just like in the public sector after 13:00\n }\n walkProdRef(refProd, currRest, prevRest) {\n const followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) +\n this.topProd.name;\n const fullRest = currRest.concat(prevRest);\n const restProd = new Alternative({ definition: fullRest });\n const t_in_topProd_follows = first(restProd);\n this.follows[followName] = t_in_topProd_follows;\n }\n}\nexport function computeAllProdsFollows(topProductions) {\n const reSyncFollows = {};\n topProductions.forEach((topProd) => {\n const currRefsFollow = new ResyncFollowsWalker(topProd).startWalking();\n Object.assign(reSyncFollows, currRefsFollow);\n });\n return reSyncFollows;\n}\nexport function buildBetweenProdsFollowPrefix(inner, occurenceInParent) {\n return inner.name + occurenceInParent + IN;\n}\nexport function buildInProdFollowPrefix(terminal) {\n const terminalName = terminal.terminalType.name;\n return terminalName + terminal.idx + IN;\n}\n//# sourceMappingURL=follow.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AAMA,IAAa,IAAb,cAAyC,EAAW;CAChD,YAAY,GAAS;EAGjB,AAFA,OAAO,EACP,KAAK,UAAU,GACf,KAAK,UAAU,EAAE;;CAErB,eAAe;EAEX,OADA,KAAK,KAAK,KAAK,QAAQ,EAChB,KAAK;;CAEhB,aAAa,GAAU,GAAU,GAAU;CAG3C,YAAY,GAAS,GAAU,GAAU;EACrC,IAAM,IAAa,EAA8B,EAAQ,gBAAgB,EAAQ,IAAI,GACjF,KAAK,QAAQ,MAGX,IAAuB,EAAM,IADd,EAAY,EAAE,YADlB,EAAS,OAAO,EACsB,EAAE,CACd,CAAC;EAC5C,KAAK,QAAQ,KAAc;;;AAGnC,SAAgB,EAAuB,GAAgB;CACnD,IAAM,IAAgB,EAAE;CAKxB,OAJA,EAAe,SAAS,MAAY;EAChC,IAAM,IAAiB,IAAI,EAAoB,EAAQ,CAAC,cAAc;EACtE,OAAO,OAAO,GAAe,EAAe;GAC9C,EACK;;AAEX,SAAgB,EAA8B,GAAO,GAAmB;CACpE,OAAO,EAAM,OAAO,IAAoB"}
@@ -1,18 +0,0 @@
1
- import { defaultGrammarResolverErrorProvider as e, defaultGrammarValidatorErrorProvider as t } from "../../errors_public.js";
2
- import { resolveGrammar as n } from "../resolver.js";
3
- import { validateGrammar as r } from "../checks.js";
4
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js
5
- function i(t) {
6
- let r = Object.assign({ errMsgProvider: e }, t), i = {};
7
- return t.rules.forEach((e) => {
8
- i[e.name] = e;
9
- }), n(i, r.errMsgProvider);
10
- }
11
- function a(e) {
12
- let n = e.errMsgProvider ?? t;
13
- return r(e.rules, e.tokenTypes, n, e.grammarName);
14
- }
15
- //#endregion
16
- export { i as resolveGrammar, a as validateGrammar };
17
-
18
- //# sourceMappingURL=gast_resolver_public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gast_resolver_public.js","names":["orgResolveGrammar","orgValidateGrammar"],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js"],"sourcesContent":["import { resolveGrammar as orgResolveGrammar } from \"../resolver.js\";\nimport { validateGrammar as orgValidateGrammar } from \"../checks.js\";\nimport { defaultGrammarResolverErrorProvider, defaultGrammarValidatorErrorProvider, } from \"../../errors_public.js\";\nexport function resolveGrammar(options) {\n const actualOptions = Object.assign({ errMsgProvider: defaultGrammarResolverErrorProvider }, options);\n const topRulesTable = {};\n options.rules.forEach((rule) => {\n topRulesTable[rule.name] = rule;\n });\n return orgResolveGrammar(topRulesTable, actualOptions.errMsgProvider);\n}\nexport function validateGrammar(options) {\n var _a;\n const errMsgProvider = (_a = options.errMsgProvider) !== null && _a !== void 0 ? _a : defaultGrammarValidatorErrorProvider;\n return orgValidateGrammar(options.rules, options.tokenTypes, errMsgProvider, options.grammarName);\n}\n//# sourceMappingURL=gast_resolver_public.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,SAAgB,EAAe,GAAS;CACpC,IAAM,IAAgB,OAAO,OAAO,EAAE,gBAAgB,GAAqC,EAAE,EAAQ,EAC/F,IAAgB,EAAE;CAIxB,OAHA,EAAQ,MAAM,SAAS,MAAS;EAC5B,EAAc,EAAK,QAAQ;GAC7B,EACKA,EAAkB,GAAe,EAAc,eAAe;;AAEzE,SAAgB,EAAgB,GAAS;CAErC,IAAM,IAAuB,EAAQ,kBAAiD;CACtF,OAAOC,EAAmB,EAAQ,OAAO,EAAQ,YAAY,GAAgB,EAAQ,YAAY"}