markdown-flow-ui 0.3.4 → 0.3.5

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 (1184) hide show
  1. package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
  2. package/dist/_virtual/advancedFormat2.es.js.map +1 -0
  3. package/dist/_virtual/core.cjs +1 -1
  4. package/dist/_virtual/core.es.js +1 -1
  5. package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
  6. package/dist/_virtual/cose-base2.es.js.map +1 -0
  7. package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
  8. package/dist/_virtual/customParseFormat2.es.js.map +1 -0
  9. package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
  10. package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
  11. package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
  12. package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
  13. package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
  14. package/dist/_virtual/dayjs2.min.cjs.map +1 -0
  15. package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
  16. package/dist/_virtual/dayjs2.min.es.js.map +1 -0
  17. package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
  18. package/dist/_virtual/duration2.es.js.map +1 -0
  19. package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
  20. package/dist/_virtual/index10.es.js.map +1 -0
  21. package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
  22. package/dist/_virtual/index11.es.js.map +1 -0
  23. package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
  24. package/dist/_virtual/index12.es.js.map +1 -0
  25. package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
  26. package/dist/_virtual/index2.es.js.map +1 -0
  27. package/dist/_virtual/index3.cjs +1 -1
  28. package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
  29. package/dist/_virtual/index3.es.js.map +1 -0
  30. package/dist/_virtual/index4.cjs +1 -1
  31. package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
  32. package/dist/_virtual/index4.es.js.map +1 -0
  33. package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
  34. package/dist/_virtual/index5.es.js.map +1 -0
  35. package/dist/_virtual/index6.cjs +1 -1
  36. package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
  37. package/dist/_virtual/index6.es.js.map +1 -0
  38. package/dist/_virtual/index7.cjs +1 -1
  39. package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
  40. package/dist/_virtual/index7.es.js.map +1 -0
  41. package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
  42. package/dist/_virtual/index8.es.js.map +1 -0
  43. package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
  44. package/dist/_virtual/index9.es.js.map +1 -0
  45. package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
  46. package/dist/_virtual/isoWeek2.es.js.map +1 -0
  47. package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
  48. package/dist/_virtual/layout-base2.es.js.map +1 -0
  49. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  50. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  51. package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
  52. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  53. package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
  54. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
  55. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  56. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
  57. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  58. package/dist/components/Slide/Slide.es.js +3 -3
  59. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  60. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  61. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  62. package/dist/components/ui/tooltip.cjs +1 -1
  63. package/dist/components/ui/tooltip.cjs.map +1 -1
  64. package/dist/components/ui/tooltip.es.js +12 -12
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.es.js +3 -3
  67. package/dist/markdown-flow-ui-lib.css +2 -2
  68. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  69. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
  70. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
  71. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
  72. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  73. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
  74. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
  75. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
  76. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
  77. package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
  78. package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
  79. package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
  80. package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
  81. package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
  82. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
  83. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
  84. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
  85. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
  86. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
  87. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
  88. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
  89. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
  90. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
  91. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
  92. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
  93. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
  94. package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
  95. package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
  96. package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
  97. package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
  98. package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
  99. package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
  100. package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
  101. package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
  102. package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
  103. package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
  104. package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
  105. package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
  106. package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
  107. package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
  108. package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
  109. package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
  110. package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
  111. package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
  112. package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
  113. package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
  114. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
  115. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  116. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
  117. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
  118. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
  119. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  120. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
  121. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
  122. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
  123. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  124. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
  125. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  126. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
  127. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
  128. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
  129. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
  130. package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
  131. package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
  132. package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
  133. package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
  134. package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
  135. package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
  136. package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
  137. package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
  138. package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
  139. package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
  140. package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
  141. package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
  142. package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
  143. package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
  144. package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
  145. package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
  146. package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
  147. package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
  148. package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
  149. package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
  150. package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
  151. package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
  152. package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
  153. package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
  154. package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
  155. package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
  156. package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
  157. package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
  158. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
  159. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
  160. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
  161. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
  162. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
  163. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
  164. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
  165. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
  166. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
  167. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
  168. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
  169. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
  170. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
  171. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
  172. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
  173. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
  174. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
  175. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
  176. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
  177. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
  178. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
  179. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
  180. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
  181. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
  182. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
  183. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
  184. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
  185. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
  186. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
  187. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
  188. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
  189. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
  190. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
  191. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
  192. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
  193. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
  194. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
  195. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
  196. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
  197. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
  198. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
  199. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
  200. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
  201. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
  202. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
  203. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
  204. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
  205. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
  206. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
  207. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
  208. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  209. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
  210. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
  211. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  212. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
  214. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  216. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
  218. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
  220. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
  222. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  223. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  224. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
  225. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  226. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  227. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  228. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
  229. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  230. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
  232. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  233. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  234. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  235. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
  236. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  237. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
  238. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  239. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
  240. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
  241. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  242. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  243. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
  244. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  245. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  246. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  247. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
  248. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  249. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  250. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
  251. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  252. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  253. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  254. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  255. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  256. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  257. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  258. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  259. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  260. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  261. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  262. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
  263. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  264. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  265. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  266. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
  267. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  268. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  269. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  270. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
  271. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  272. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  273. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  274. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
  275. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  276. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  277. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  278. package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  279. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  281. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  282. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
  283. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  284. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  285. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  286. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
  287. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  288. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  289. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  290. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
  291. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  292. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  293. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  294. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
  295. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  296. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
  297. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  298. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
  299. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
  300. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  302. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  303. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
  304. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
  305. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  306. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
  307. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
  308. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  309. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  310. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
  311. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  312. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  313. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  314. package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  315. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  316. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  317. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  318. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
  319. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  320. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
  321. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
  322. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
  323. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
  324. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
  325. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
  326. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
  327. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
  328. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  329. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  330. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
  331. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  332. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
  333. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
  334. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
  335. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
  336. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
  337. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
  338. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
  339. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
  340. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
  341. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
  342. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
  343. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  344. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
  345. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
  346. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
  347. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  348. package/dist/node_modules/classnames/index.es.js +1 -1
  349. package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
  350. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  351. package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
  352. package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
  353. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  354. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
  355. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
  356. package/dist/node_modules/d3-color/src/lab.cjs +1 -1
  357. package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
  358. package/dist/node_modules/d3-color/src/lab.es.js +4 -5
  359. package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
  360. package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
  361. package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
  362. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
  363. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
  364. package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
  365. package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
  366. package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
  367. package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
  368. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
  369. package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
  370. package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
  371. package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
  372. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
  373. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
  374. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
  375. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
  376. package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
  377. package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
  378. package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
  379. package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
  380. package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
  381. package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
  382. package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
  383. package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
  384. package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
  385. package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
  386. package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  387. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  388. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  389. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
  390. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
  391. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
  392. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
  393. package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
  394. package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
  395. package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
  396. package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
  397. package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
  398. package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
  399. package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
  400. package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
  401. package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
  402. package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
  403. package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
  404. package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
  405. package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
  406. package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
  407. package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
  408. package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
  409. package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
  410. package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
  411. package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
  412. package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
  413. package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
  414. package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
  415. package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
  416. package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
  417. package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
  418. package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
  419. package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
  420. package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
  421. package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
  422. package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
  423. package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
  424. package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
  425. package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
  426. package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
  427. package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
  428. package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
  429. package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
  430. package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
  431. package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
  432. package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
  433. package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
  434. package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
  435. package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
  436. package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
  437. package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
  438. package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
  439. package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
  440. package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
  441. package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
  442. package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
  443. package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
  444. package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
  445. package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
  446. package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
  447. package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
  448. package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
  449. package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
  450. package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
  451. package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
  452. package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
  453. package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
  454. package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
  455. package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
  456. package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
  457. package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
  458. package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
  459. package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
  460. package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
  461. package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
  462. package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
  463. package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
  464. package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
  465. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  466. package/dist/node_modules/lowlight/lib/common.cjs +1 -1
  467. package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
  468. package/dist/node_modules/lowlight/lib/common.es.js +37 -37
  469. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
  470. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
  471. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
  472. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
  473. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
  474. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
  475. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
  476. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
  477. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
  478. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
  479. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
  480. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
  481. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
  482. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
  483. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
  484. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
  485. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
  486. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
  487. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
  488. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
  489. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
  490. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
  491. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
  492. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
  493. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
  494. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
  495. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
  496. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
  497. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
  498. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
  499. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
  500. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
  501. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
  502. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
  503. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
  504. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
  505. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
  506. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
  507. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
  508. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
  509. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
  510. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
  511. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
  512. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
  513. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
  514. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
  515. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
  516. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
  517. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
  518. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
  519. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
  520. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
  521. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
  522. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
  523. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
  524. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
  525. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
  526. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
  527. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
  528. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
  529. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
  530. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
  531. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
  532. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
  533. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
  534. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
  535. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
  536. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
  537. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
  538. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
  539. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
  540. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
  541. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
  542. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
  543. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
  544. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
  545. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
  546. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
  547. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
  548. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
  549. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
  550. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
  551. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
  552. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
  553. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
  554. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
  555. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
  556. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
  557. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
  558. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
  559. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
  560. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
  561. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
  562. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
  563. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
  564. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
  565. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
  566. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
  567. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
  568. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
  569. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
  570. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
  571. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
  572. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
  573. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
  574. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
  575. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
  576. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
  577. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
  578. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
  579. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
  580. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
  581. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
  582. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
  583. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
  584. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
  585. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
  586. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
  587. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
  588. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
  589. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
  590. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
  591. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
  592. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
  593. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
  594. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
  595. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
  596. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
  597. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
  598. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
  599. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
  600. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
  601. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  602. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
  603. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
  604. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
  605. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  606. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
  607. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
  608. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
  609. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  610. package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
  611. package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  612. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
  613. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  614. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
  615. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  616. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
  617. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
  618. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
  619. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  620. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
  621. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  622. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
  623. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  624. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
  625. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  626. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
  627. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  628. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
  629. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  630. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
  631. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  632. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
  633. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  634. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
  635. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  636. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
  637. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  638. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
  639. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  640. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
  641. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  642. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
  643. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  644. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
  645. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  646. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
  647. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  648. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
  649. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  650. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
  651. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  652. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
  653. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  654. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
  655. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  656. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
  657. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  658. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
  659. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  660. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
  661. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  662. package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
  663. package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  664. package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
  665. package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  666. package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
  667. package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  668. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
  669. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  670. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
  671. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
  672. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
  673. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  674. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
  675. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
  676. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
  677. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  678. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
  679. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  680. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
  681. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
  682. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
  683. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  684. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
  685. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
  686. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
  687. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  688. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
  689. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  690. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
  691. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
  692. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
  693. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  694. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
  695. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  696. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
  697. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
  698. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
  699. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  700. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
  701. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
  702. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
  703. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  704. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
  705. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
  706. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
  707. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  708. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
  709. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  710. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
  711. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  712. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
  713. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  714. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
  715. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
  716. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  717. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  718. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
  719. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
  720. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
  721. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  722. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
  723. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
  724. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
  725. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  726. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
  727. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  728. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
  729. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
  730. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
  731. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
  732. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
  733. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  734. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
  735. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  736. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
  737. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  738. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
  739. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  740. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
  741. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  742. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
  743. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  744. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
  745. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  746. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
  747. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  748. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
  749. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  750. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
  751. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  752. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
  753. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
  754. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
  755. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
  756. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
  757. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  758. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
  759. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
  760. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
  761. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  762. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
  763. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  764. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
  765. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
  766. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
  767. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  768. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
  769. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
  770. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
  771. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
  772. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
  773. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  774. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
  775. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
  776. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  777. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  778. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  779. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  780. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
  781. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
  782. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  783. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  784. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
  785. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  786. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  787. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  788. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  789. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
  790. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
  791. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
  792. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
  793. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  794. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
  795. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
  796. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  797. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
  798. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
  799. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
  800. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
  801. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
  802. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
  803. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
  804. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
  805. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  806. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  807. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  808. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  809. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  810. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  811. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  812. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  813. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
  814. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
  815. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
  816. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
  817. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
  818. package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
  819. package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
  820. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  821. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  822. package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
  823. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  824. package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
  825. package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
  826. package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
  827. package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
  828. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  829. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
  830. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  831. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
  832. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  833. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
  834. package/dist/node_modules/property-information/lib/html.cjs +1 -1
  835. package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
  836. package/dist/node_modules/property-information/lib/html.es.js +16 -6
  837. package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
  838. package/dist/node_modules/property-information/lib/svg.cjs +1 -1
  839. package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
  840. package/dist/node_modules/property-information/lib/svg.es.js +4 -2
  841. package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
  842. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  843. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  844. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  845. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  846. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  847. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  848. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  849. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  850. package/dist/node_modules/rc-util/es/ref.es.js +1 -1
  851. package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
  852. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  853. package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
  854. package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
  855. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  856. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
  857. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  858. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  859. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  860. package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
  861. package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
  862. package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
  863. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  864. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  865. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  866. package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
  867. package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  868. package/dist/node_modules/stylis/src/Parser.cjs +1 -1
  869. package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
  870. package/dist/node_modules/stylis/src/Parser.es.js +63 -52
  871. package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
  872. package/dist/node_modules/stylis/src/Utility.cjs +1 -1
  873. package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
  874. package/dist/node_modules/stylis/src/Utility.es.js +20 -24
  875. package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
  876. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  877. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  878. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
  879. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
  880. package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
  881. package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
  882. package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
  883. package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
  884. package/dist/node_modules/unified/lib/index.es.js +1 -1
  885. package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
  886. package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
  887. package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  888. package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
  889. package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
  890. package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
  891. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  892. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
  893. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  894. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
  895. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
  896. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
  897. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  898. package/dist/node_modules/uuid/dist/rng.cjs +2 -0
  899. package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
  900. package/dist/node_modules/uuid/dist/rng.es.js +8 -0
  901. package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
  902. package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
  903. package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
  904. package/dist/node_modules/uuid/dist/v4.cjs +2 -0
  905. package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
  906. package/dist/node_modules/uuid/dist/v4.es.js +16 -0
  907. package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
  908. package/dist/renderer.cjs +1 -1
  909. package/dist/renderer.es.js +3 -3
  910. package/dist/scroll.cjs +1 -1
  911. package/dist/scroll.es.js +2 -2
  912. package/package.json +18 -14
  913. package/dist/_virtual/advancedFormat.es2.js.map +0 -1
  914. package/dist/_virtual/cose-base.es2.js.map +0 -1
  915. package/dist/_virtual/customParseFormat.es2.js.map +0 -1
  916. package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
  917. package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
  918. package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
  919. package/dist/_virtual/dayjs.min.es2.js.map +0 -1
  920. package/dist/_virtual/dayjs.min2.cjs.map +0 -1
  921. package/dist/_virtual/duration.es2.js.map +0 -1
  922. package/dist/_virtual/index.es10.js.map +0 -1
  923. package/dist/_virtual/index.es11.js.map +0 -1
  924. package/dist/_virtual/index.es12.js.map +0 -1
  925. package/dist/_virtual/index.es2.js.map +0 -1
  926. package/dist/_virtual/index.es3.js.map +0 -1
  927. package/dist/_virtual/index.es4.js.map +0 -1
  928. package/dist/_virtual/index.es5.js.map +0 -1
  929. package/dist/_virtual/index.es6.js.map +0 -1
  930. package/dist/_virtual/index.es7.js.map +0 -1
  931. package/dist/_virtual/index.es8.js.map +0 -1
  932. package/dist/_virtual/index.es9.js.map +0 -1
  933. package/dist/_virtual/isoWeek.es2.js.map +0 -1
  934. package/dist/_virtual/layout-base.es2.js.map +0 -1
  935. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
  936. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  937. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
  938. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  939. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  940. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  941. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  942. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  943. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  944. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  945. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  946. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  947. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  948. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  949. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  950. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
  951. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
  952. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
  953. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
  954. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  955. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  956. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  957. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
  958. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
  959. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
  960. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
  961. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  962. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  963. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  964. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  965. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  966. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  967. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  968. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  969. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  970. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  971. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
  972. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
  973. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
  974. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
  975. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
  976. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
  977. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  978. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  979. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  980. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  981. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  982. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  983. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  984. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  985. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  986. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  987. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  988. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  989. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  990. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
  991. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  992. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  993. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  994. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
  995. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  996. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  997. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  998. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  999. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1000. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
  1001. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
  1002. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
  1003. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
  1004. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
  1005. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  1006. package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
  1007. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  1008. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
  1009. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  1010. package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
  1011. package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  1012. package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
  1013. package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
  1014. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
  1015. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
  1016. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  1017. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  1018. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
  1019. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
  1020. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  1021. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  1022. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
  1023. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
  1024. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  1025. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  1026. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
  1027. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
  1028. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  1029. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  1030. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
  1031. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
  1032. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  1033. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  1034. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
  1035. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
  1036. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  1037. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  1038. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
  1039. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  1040. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  1041. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  1042. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
  1043. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  1044. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  1045. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  1046. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
  1047. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
  1048. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
  1049. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  1050. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
  1051. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  1052. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
  1053. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  1054. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
  1055. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
  1056. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
  1057. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  1058. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
  1059. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
  1060. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
  1061. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  1062. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
  1063. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
  1064. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
  1065. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  1066. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
  1067. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
  1068. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  1069. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  1070. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
  1071. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
  1072. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  1073. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  1074. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
  1075. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
  1076. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  1077. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  1078. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
  1079. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
  1080. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  1081. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  1082. package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
  1083. package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
  1084. package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
  1085. package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
  1086. package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
  1087. package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
  1088. package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
  1089. package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
  1090. package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
  1091. package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
  1092. package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
  1093. package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
  1094. package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
  1095. package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
  1096. package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
  1097. package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
  1098. package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
  1099. package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
  1100. package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
  1101. package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
  1102. package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
  1103. package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
  1104. package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
  1105. package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
  1106. package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
  1107. package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
  1108. package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
  1109. package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
  1110. package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
  1111. package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
  1112. package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
  1113. package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
  1114. package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
  1115. package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
  1116. package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
  1117. package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
  1118. package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
  1119. package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
  1120. package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
  1121. package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
  1122. package/dist/node_modules/inline-style-parser/index.cjs +0 -3
  1123. package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
  1124. package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
  1125. package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
  1126. package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
  1127. package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
  1128. package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
  1129. package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
  1130. package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
  1131. package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
  1132. package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  1133. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
  1134. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
  1135. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
  1136. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  1137. package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
  1138. package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  1139. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
  1140. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
  1141. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
  1142. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  1143. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
  1144. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
  1145. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
  1146. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
  1147. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
  1148. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
  1149. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
  1150. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
  1151. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
  1152. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
  1153. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
  1154. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
  1155. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
  1156. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
  1157. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
  1158. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
  1159. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
  1160. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
  1161. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
  1162. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
  1163. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
  1164. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
  1165. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
  1166. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
  1167. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
  1168. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
  1169. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
  1170. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
  1171. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
  1172. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
  1173. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
  1174. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
  1175. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
  1176. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
  1177. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
  1178. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
  1179. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
  1180. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
  1181. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
  1182. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
  1183. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
  1184. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@codemirror/autocomplete/dist/index.js"],"sourcesContent":["import { Annotation, StateEffect, EditorSelection, codePointAt, codePointSize, fromCodePoint, Facet, combineConfig, StateField, Prec, Text, Transaction, MapMode, RangeValue, RangeSet, CharCategory } from '@codemirror/state';\nimport { Direction, logException, showTooltip, EditorView, ViewPlugin, getTooltip, Decoration, WidgetType, keymap } from '@codemirror/view';\nimport { syntaxTree, indentUnit } from '@codemirror/language';\n\n/**\nAn instance of this is passed to completion source functions.\n*/\nclass CompletionContext {\n /**\n Create a new completion context. (Mostly useful for testing\n completion sources—in the editor, the extension will create\n these for you.)\n */\n constructor(\n /**\n The editor state that the completion happens in.\n */\n state, \n /**\n The position at which the completion is happening.\n */\n pos, \n /**\n Indicates whether completion was activated explicitly, or\n implicitly by typing. The usual way to respond to this is to\n only return completions when either there is part of a\n completable entity before the cursor, or `explicit` is true.\n */\n explicit, \n /**\n The editor view. May be undefined if the context was created\n in a situation where there is no such view available, such as\n in synchronous updates via\n [`CompletionResult.update`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.update)\n or when called by test code.\n */\n view) {\n this.state = state;\n this.pos = pos;\n this.explicit = explicit;\n this.view = view;\n /**\n @internal\n */\n this.abortListeners = [];\n /**\n @internal\n */\n this.abortOnDocChange = false;\n }\n /**\n Get the extent, content, and (if there is a token) type of the\n token before `this.pos`.\n */\n tokenBefore(types) {\n let token = syntaxTree(this.state).resolveInner(this.pos, -1);\n while (token && types.indexOf(token.name) < 0)\n token = token.parent;\n return token ? { from: token.from, to: this.pos,\n text: this.state.sliceDoc(token.from, this.pos),\n type: token.type } : null;\n }\n /**\n Get the match of the given expression directly before the\n cursor.\n */\n matchBefore(expr) {\n let line = this.state.doc.lineAt(this.pos);\n let start = Math.max(line.from, this.pos - 250);\n let str = line.text.slice(start - line.from, this.pos - line.from);\n let found = str.search(ensureAnchor(expr, false));\n return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };\n }\n /**\n Yields true when the query has been aborted. Can be useful in\n asynchronous queries to avoid doing work that will be ignored.\n */\n get aborted() { return this.abortListeners == null; }\n /**\n Allows you to register abort handlers, which will be called when\n the query is\n [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).\n \n By default, running queries will not be aborted for regular\n typing or backspacing, on the assumption that they are likely to\n return a result with a\n [`validFor`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.validFor) field that\n allows the result to be used after all. Passing `onDocChange:\n true` will cause this query to be aborted for any document\n change.\n */\n addEventListener(type, listener, options) {\n if (type == \"abort\" && this.abortListeners) {\n this.abortListeners.push(listener);\n if (options && options.onDocChange)\n this.abortOnDocChange = true;\n }\n }\n}\nfunction toSet(chars) {\n let flat = Object.keys(chars).join(\"\");\n let words = /\\w/.test(flat);\n if (words)\n flat = flat.replace(/\\w/g, \"\");\n return `[${words ? \"\\\\w\" : \"\"}${flat.replace(/[^\\w\\s]/g, \"\\\\$&\")}]`;\n}\nfunction prefixMatch(options) {\n let first = Object.create(null), rest = Object.create(null);\n for (let { label } of options) {\n first[label[0]] = true;\n for (let i = 1; i < label.length; i++)\n rest[label[i]] = true;\n }\n let source = toSet(first) + toSet(rest) + \"*$\";\n return [new RegExp(\"^\" + source), new RegExp(source)];\n}\n/**\nGiven a a fixed array of options, return an autocompleter that\ncompletes them.\n*/\nfunction completeFromList(list) {\n let options = list.map(o => typeof o == \"string\" ? { label: o } : o);\n let [validFor, match] = options.every(o => /^\\w+$/.test(o.label)) ? [/\\w*$/, /\\w+$/] : prefixMatch(options);\n return (context) => {\n let token = context.matchBefore(match);\n return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;\n };\n}\n/**\nWrap the given completion source so that it will only fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return source(context);\n if (pos.type.isTop)\n break;\n }\n return null;\n };\n}\n/**\nWrap the given completion source so that it will not fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifNotIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return null;\n if (pos.type.isTop)\n break;\n }\n return source(context);\n };\n}\nclass Option {\n constructor(completion, source, match, score) {\n this.completion = completion;\n this.source = source;\n this.match = match;\n this.score = score;\n }\n}\nfunction cur(state) { return state.selection.main.from; }\n// Make sure the given regexp has a $ at its end and, if `start` is\n// true, a ^ at its start.\nfunction ensureAnchor(expr, start) {\n var _a;\n let { source } = expr;\n let addStart = start && source[0] != \"^\", addEnd = source[source.length - 1] != \"$\";\n if (!addStart && !addEnd)\n return expr;\n return new RegExp(`${addStart ? \"^\" : \"\"}(?:${source})${addEnd ? \"$\" : \"\"}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? \"i\" : \"\"));\n}\n/**\nThis annotation is added to transactions that are produced by\npicking a completion.\n*/\nconst pickedCompletion = /*@__PURE__*/Annotation.define();\n/**\nHelper function that returns a transaction spec which inserts a\ncompletion's text in the main selection range, and any other\nselection range that has the same text in front of it.\n*/\nfunction insertCompletionText(state, text, from, to) {\n let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;\n return {\n ...state.changeByRange(range => {\n if (range != main && from != to &&\n state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))\n return { range };\n let lines = state.toText(text);\n return {\n changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: lines },\n range: EditorSelection.cursor(range.from + fromOff + lines.length)\n };\n }),\n scrollIntoView: true,\n userEvent: \"input.complete\"\n };\n}\nconst SourceCache = /*@__PURE__*/new WeakMap();\nfunction asSource(source) {\n if (!Array.isArray(source))\n return source;\n let known = SourceCache.get(source);\n if (!known)\n SourceCache.set(source, known = completeFromList(source));\n return known;\n}\nconst startCompletionEffect = /*@__PURE__*/StateEffect.define();\nconst closeCompletionEffect = /*@__PURE__*/StateEffect.define();\n\n// A pattern matcher for fuzzy completion matching. Create an instance\n// once for a pattern, and then use that to match any number of\n// completions.\nclass FuzzyMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.chars = [];\n this.folded = [];\n // Buffers reused by calls to `match` to track matched character\n // positions.\n this.any = [];\n this.precise = [];\n this.byWord = [];\n this.score = 0;\n this.matched = [];\n for (let p = 0; p < pattern.length;) {\n let char = codePointAt(pattern, p), size = codePointSize(char);\n this.chars.push(char);\n let part = pattern.slice(p, p + size), upper = part.toUpperCase();\n this.folded.push(codePointAt(upper == part ? part.toLowerCase() : upper, 0));\n p += size;\n }\n this.astral = pattern.length != this.chars.length;\n }\n ret(score, matched) {\n this.score = score;\n this.matched = matched;\n return this;\n }\n // Matches a given word (completion) against the pattern (input).\n // Will return a boolean indicating whether there was a match and,\n // on success, set `this.score` to the score, `this.matched` to an\n // array of `from, to` pairs indicating the matched parts of `word`.\n //\n // The score is a number that is more negative the worse the match\n // is. See `Penalty` above.\n match(word) {\n if (this.pattern.length == 0)\n return this.ret(-100 /* Penalty.NotFull */, []);\n if (word.length < this.pattern.length)\n return null;\n let { chars, folded, any, precise, byWord } = this;\n // For single-character queries, only match when they occur right\n // at the start\n if (chars.length == 1) {\n let first = codePointAt(word, 0), firstSize = codePointSize(first);\n let score = firstSize == word.length ? 0 : -100 /* Penalty.NotFull */;\n if (first == chars[0]) ;\n else if (first == folded[0])\n score += -200 /* Penalty.CaseFold */;\n else\n return null;\n return this.ret(score, [0, firstSize]);\n }\n let direct = word.indexOf(this.pattern);\n if (direct == 0)\n return this.ret(word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */, [0, this.pattern.length]);\n let len = chars.length, anyTo = 0;\n if (direct < 0) {\n for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {\n let next = codePointAt(word, i);\n if (next == chars[anyTo] || next == folded[anyTo])\n any[anyTo++] = i;\n i += codePointSize(next);\n }\n // No match, exit immediately\n if (anyTo < len)\n return null;\n }\n // This tracks the extent of the precise (non-folded, not\n // necessarily adjacent) match\n let preciseTo = 0;\n // Tracks whether there is a match that hits only characters that\n // appear to be starting words. `byWordFolded` is set to true when\n // a case folded character is encountered in such a match\n let byWordTo = 0, byWordFolded = false;\n // If we've found a partial adjacent match, these track its state\n let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;\n let hasLower = /[a-z]/.test(word), wordAdjacent = true;\n // Go over the option's text, scanning for the various kinds of matches\n for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* Tp.NonWord */; i < e && byWordTo < len;) {\n let next = codePointAt(word, i);\n if (direct < 0) {\n if (preciseTo < len && next == chars[preciseTo])\n precise[preciseTo++] = i;\n if (adjacentTo < len) {\n if (next == chars[adjacentTo] || next == folded[adjacentTo]) {\n if (adjacentTo == 0)\n adjacentStart = i;\n adjacentEnd = i + 1;\n adjacentTo++;\n }\n else {\n adjacentTo = 0;\n }\n }\n }\n let ch, type = next < 0xff\n ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Tp.Lower */ : next >= 65 && next <= 90 ? 1 /* Tp.Upper */ : 0 /* Tp.NonWord */)\n : ((ch = fromCodePoint(next)) != ch.toLowerCase() ? 1 /* Tp.Upper */ : ch != ch.toUpperCase() ? 2 /* Tp.Lower */ : 0 /* Tp.NonWord */);\n if (!i || type == 1 /* Tp.Upper */ && hasLower || prevType == 0 /* Tp.NonWord */ && type != 0 /* Tp.NonWord */) {\n if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))\n byWord[byWordTo++] = i;\n else if (byWord.length)\n wordAdjacent = false;\n }\n prevType = type;\n i += codePointSize(next);\n }\n if (byWordTo == len && byWord[0] == 0 && wordAdjacent)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0), byWord, word);\n if (adjacentTo == len && adjacentStart == 0)\n return this.ret(-200 /* Penalty.CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* Penalty.NotFull */), [0, adjacentEnd]);\n if (direct > -1)\n return this.ret(-700 /* Penalty.NotStart */ - word.length, [direct, direct + this.pattern.length]);\n if (adjacentTo == len)\n return this.ret(-200 /* Penalty.CaseFold */ + -700 /* Penalty.NotStart */ - word.length, [adjacentStart, adjacentEnd]);\n if (byWordTo == len)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0) + -700 /* Penalty.NotStart */ +\n (wordAdjacent ? 0 : -1100 /* Penalty.Gap */), byWord, word);\n return chars.length == 2 ? null\n : this.result((any[0] ? -700 /* Penalty.NotStart */ : 0) + -200 /* Penalty.CaseFold */ + -1100 /* Penalty.Gap */, any, word);\n }\n result(score, positions, word) {\n let result = [], i = 0;\n for (let pos of positions) {\n let to = pos + (this.astral ? codePointSize(codePointAt(word, pos)) : 1);\n if (i && result[i - 1] == pos)\n result[i - 1] = to;\n else {\n result[i++] = pos;\n result[i++] = to;\n }\n }\n return this.ret(score - word.length, result);\n }\n}\nclass StrictMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.matched = [];\n this.score = 0;\n this.folded = pattern.toLowerCase();\n }\n match(word) {\n if (word.length < this.pattern.length)\n return null;\n let start = word.slice(0, this.pattern.length);\n let match = start == this.pattern ? 0 : start.toLowerCase() == this.folded ? -200 /* Penalty.CaseFold */ : null;\n if (match == null)\n return null;\n this.matched = [0, start.length];\n this.score = match + (word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */);\n return this;\n }\n}\n\nconst completionConfig = /*@__PURE__*/Facet.define({\n combine(configs) {\n return combineConfig(configs, {\n activateOnTyping: true,\n activateOnCompletion: () => false,\n activateOnTypingDelay: 100,\n selectOnOpen: true,\n override: null,\n closeOnBlur: true,\n maxRenderedOptions: 100,\n defaultKeymap: true,\n tooltipClass: () => \"\",\n optionClass: () => \"\",\n aboveCursor: false,\n icons: true,\n addToOptions: [],\n positionInfo: defaultPositionInfo,\n filterStrict: false,\n compareCompletions: (a, b) => a.label.localeCompare(b.label),\n interactionDelay: 75,\n updateSyncTime: 100\n }, {\n defaultKeymap: (a, b) => a && b,\n closeOnBlur: (a, b) => a && b,\n icons: (a, b) => a && b,\n tooltipClass: (a, b) => c => joinClass(a(c), b(c)),\n optionClass: (a, b) => c => joinClass(a(c), b(c)),\n addToOptions: (a, b) => a.concat(b),\n filterStrict: (a, b) => a || b,\n });\n }\n});\nfunction joinClass(a, b) {\n return a ? b ? a + \" \" + b : a : b;\n}\nfunction defaultPositionInfo(view, list, option, info, space, tooltip) {\n let rtl = view.textDirection == Direction.RTL, left = rtl, narrow = false;\n let side = \"top\", offset, maxWidth;\n let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;\n let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;\n if (left && spaceLeft < Math.min(infoWidth, spaceRight))\n left = false;\n else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))\n left = true;\n if (infoWidth <= (left ? spaceLeft : spaceRight)) {\n offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;\n maxWidth = Math.min(400 /* Info.Width */, left ? spaceLeft : spaceRight);\n }\n else {\n narrow = true;\n maxWidth = Math.min(400 /* Info.Width */, (rtl ? list.right : space.right - list.left) - 30 /* Info.Margin */);\n let spaceBelow = space.bottom - list.bottom;\n if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion\n offset = option.bottom - list.top;\n }\n else { // Above it\n side = \"bottom\";\n offset = list.bottom - option.top;\n }\n }\n let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;\n let scaleX = (list.right - list.left) / tooltip.offsetWidth;\n return {\n style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,\n class: \"cm-completionInfo-\" + (narrow ? (rtl ? \"left-narrow\" : \"right-narrow\") : left ? \"left\" : \"right\")\n };\n}\n\nfunction optionContent(config) {\n let content = config.addToOptions.slice();\n if (config.icons)\n content.push({\n render(completion) {\n let icon = document.createElement(\"div\");\n icon.classList.add(\"cm-completionIcon\");\n if (completion.type)\n icon.classList.add(...completion.type.split(/\\s+/g).map(cls => \"cm-completionIcon-\" + cls));\n icon.setAttribute(\"aria-hidden\", \"true\");\n return icon;\n },\n position: 20\n });\n content.push({\n render(completion, _s, _v, match) {\n let labelElt = document.createElement(\"span\");\n labelElt.className = \"cm-completionLabel\";\n let label = completion.displayLabel || completion.label, off = 0;\n for (let j = 0; j < match.length;) {\n let from = match[j++], to = match[j++];\n if (from > off)\n labelElt.appendChild(document.createTextNode(label.slice(off, from)));\n let span = labelElt.appendChild(document.createElement(\"span\"));\n span.appendChild(document.createTextNode(label.slice(from, to)));\n span.className = \"cm-completionMatchedText\";\n off = to;\n }\n if (off < label.length)\n labelElt.appendChild(document.createTextNode(label.slice(off)));\n return labelElt;\n },\n position: 50\n }, {\n render(completion) {\n if (!completion.detail)\n return null;\n let detailElt = document.createElement(\"span\");\n detailElt.className = \"cm-completionDetail\";\n detailElt.textContent = completion.detail;\n return detailElt;\n },\n position: 80\n });\n return content.sort((a, b) => a.position - b.position).map(a => a.render);\n}\nfunction rangeAroundSelected(total, selected, max) {\n if (total <= max)\n return { from: 0, to: total };\n if (selected < 0)\n selected = 0;\n if (selected <= (total >> 1)) {\n let off = Math.floor(selected / max);\n return { from: off * max, to: (off + 1) * max };\n }\n let off = Math.floor((total - selected) / max);\n return { from: total - (off + 1) * max, to: total - off * max };\n}\nclass CompletionTooltip {\n constructor(view, stateField, applyCompletion) {\n this.view = view;\n this.stateField = stateField;\n this.applyCompletion = applyCompletion;\n this.info = null;\n this.infoDestroy = null;\n this.placeInfoReq = {\n read: () => this.measureInfo(),\n write: (pos) => this.placeInfo(pos),\n key: this\n };\n this.space = null;\n this.currentClass = \"\";\n let cState = view.state.field(stateField);\n let { options, selected } = cState.open;\n let config = view.state.facet(completionConfig);\n this.optionContent = optionContent(config);\n this.optionClass = config.optionClass;\n this.tooltipClass = config.tooltipClass;\n this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-tooltip-autocomplete\";\n this.updateTooltipClass(view.state);\n this.dom.addEventListener(\"mousedown\", (e) => {\n let { options } = view.state.field(stateField).open;\n for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {\n if (dom.nodeName == \"LI\" && (match = /-(\\d+)$/.exec(dom.id)) && +match[1] < options.length) {\n this.applyCompletion(view, options[+match[1]]);\n e.preventDefault();\n return;\n }\n }\n });\n this.dom.addEventListener(\"focusout\", (e) => {\n let state = view.state.field(this.stateField, false);\n if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&\n e.relatedTarget != view.contentDOM)\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n });\n this.showOptions(options, cState.id);\n }\n mount() { this.updateSel(); }\n showOptions(options, id) {\n if (this.list)\n this.list.remove();\n this.list = this.dom.appendChild(this.createListBox(options, id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n update(update) {\n var _a;\n let cState = update.state.field(this.stateField);\n let prevState = update.startState.field(this.stateField);\n this.updateTooltipClass(update.state);\n if (cState != prevState) {\n let { options, selected, disabled } = cState.open;\n if (!prevState.open || prevState.open.options != options) {\n this.range = rangeAroundSelected(options.length, selected, update.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(options, cState.id);\n }\n this.updateSel();\n if (disabled != ((_a = prevState.open) === null || _a === void 0 ? void 0 : _a.disabled))\n this.dom.classList.toggle(\"cm-tooltip-autocomplete-disabled\", !!disabled);\n }\n }\n updateTooltipClass(state) {\n let cls = this.tooltipClass(state);\n if (cls != this.currentClass) {\n for (let c of this.currentClass.split(\" \"))\n if (c)\n this.dom.classList.remove(c);\n for (let c of cls.split(\" \"))\n if (c)\n this.dom.classList.add(c);\n this.currentClass = cls;\n }\n }\n positioned(space) {\n this.space = space;\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSel() {\n let cState = this.view.state.field(this.stateField), open = cState.open;\n if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {\n this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(open.options, cState.id);\n }\n if (this.updateSelectedOption(open.selected)) {\n this.destroyInfo();\n let { completion } = open.options[open.selected];\n let { info } = completion;\n if (!info)\n return;\n let infoResult = typeof info === \"string\" ? document.createTextNode(info) : info(completion);\n if (!infoResult)\n return;\n if (\"then\" in infoResult) {\n infoResult.then(obj => {\n if (obj && this.view.state.field(this.stateField, false) == cState)\n this.addInfoPane(obj, completion);\n }).catch(e => logException(this.view.state, e, \"completion info\"));\n }\n else {\n this.addInfoPane(infoResult, completion);\n }\n }\n }\n addInfoPane(content, completion) {\n this.destroyInfo();\n let wrap = this.info = document.createElement(\"div\");\n wrap.className = \"cm-tooltip cm-completionInfo\";\n if (content.nodeType != null) {\n wrap.appendChild(content);\n this.infoDestroy = null;\n }\n else {\n let { dom, destroy } = content;\n wrap.appendChild(dom);\n this.infoDestroy = destroy || null;\n }\n this.dom.appendChild(wrap);\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSelectedOption(selected) {\n let set = null;\n for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {\n if (opt.nodeName != \"LI\" || !opt.id) {\n i--; // A section header\n }\n else if (i == selected) {\n if (!opt.hasAttribute(\"aria-selected\")) {\n opt.setAttribute(\"aria-selected\", \"true\");\n set = opt;\n }\n }\n else {\n if (opt.hasAttribute(\"aria-selected\"))\n opt.removeAttribute(\"aria-selected\");\n }\n }\n if (set)\n scrollIntoView(this.list, set);\n return set;\n }\n measureInfo() {\n let sel = this.dom.querySelector(\"[aria-selected]\");\n if (!sel || !this.info)\n return null;\n let listRect = this.dom.getBoundingClientRect();\n let infoRect = this.info.getBoundingClientRect();\n let selRect = sel.getBoundingClientRect();\n let space = this.space;\n if (!space) {\n let docElt = this.dom.ownerDocument.documentElement;\n space = { left: 0, top: 0, right: docElt.clientWidth, bottom: docElt.clientHeight };\n }\n if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||\n selRect.bottom < Math.max(space.top, listRect.top) + 10)\n return null;\n return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space, this.dom);\n }\n placeInfo(pos) {\n if (this.info) {\n if (pos) {\n if (pos.style)\n this.info.style.cssText = pos.style;\n this.info.className = \"cm-tooltip cm-completionInfo \" + (pos.class || \"\");\n }\n else {\n this.info.style.cssText = \"top: -1e6px\";\n }\n }\n }\n createListBox(options, id, range) {\n const ul = document.createElement(\"ul\");\n ul.id = id;\n ul.setAttribute(\"role\", \"listbox\");\n ul.setAttribute(\"aria-expanded\", \"true\");\n ul.setAttribute(\"aria-label\", this.view.state.phrase(\"Completions\"));\n ul.addEventListener(\"mousedown\", e => {\n // Prevent focus change when clicking the scrollbar\n if (e.target == ul)\n e.preventDefault();\n });\n let curSection = null;\n for (let i = range.from; i < range.to; i++) {\n let { completion, match } = options[i], { section } = completion;\n if (section) {\n let name = typeof section == \"string\" ? section : section.name;\n if (name != curSection && (i > range.from || range.from == 0)) {\n curSection = name;\n if (typeof section != \"string\" && section.header) {\n ul.appendChild(section.header(section));\n }\n else {\n let header = ul.appendChild(document.createElement(\"completion-section\"));\n header.textContent = name;\n }\n }\n }\n const li = ul.appendChild(document.createElement(\"li\"));\n li.id = id + \"-\" + i;\n li.setAttribute(\"role\", \"option\");\n let cls = this.optionClass(completion);\n if (cls)\n li.className = cls;\n for (let source of this.optionContent) {\n let node = source(completion, this.view.state, this.view, match);\n if (node)\n li.appendChild(node);\n }\n }\n if (range.from)\n ul.classList.add(\"cm-completionListIncompleteTop\");\n if (range.to < options.length)\n ul.classList.add(\"cm-completionListIncompleteBottom\");\n return ul;\n }\n destroyInfo() {\n if (this.info) {\n if (this.infoDestroy)\n this.infoDestroy();\n this.info.remove();\n this.info = null;\n }\n }\n destroy() {\n this.destroyInfo();\n }\n}\nfunction completionTooltip(stateField, applyCompletion) {\n return (view) => new CompletionTooltip(view, stateField, applyCompletion);\n}\nfunction scrollIntoView(container, element) {\n let parent = container.getBoundingClientRect();\n let self = element.getBoundingClientRect();\n let scaleY = parent.height / container.offsetHeight;\n if (self.top < parent.top)\n container.scrollTop -= (parent.top - self.top) / scaleY;\n else if (self.bottom > parent.bottom)\n container.scrollTop += (self.bottom - parent.bottom) / scaleY;\n}\n\n// Used to pick a preferred option when two options with the same\n// label occur in the result.\nfunction score(option) {\n return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +\n (option.type ? 1 : 0);\n}\nfunction sortOptions(active, state) {\n let options = [];\n let sections = null, dynamicSectionScore = null;\n let addOption = (option) => {\n options.push(option);\n let { section } = option.completion;\n if (section) {\n if (!sections)\n sections = [];\n let name = typeof section == \"string\" ? section : section.name;\n if (!sections.some(s => s.name == name))\n sections.push(typeof section == \"string\" ? { name } : section);\n }\n };\n let conf = state.facet(completionConfig);\n for (let a of active)\n if (a.hasResult()) {\n let getMatch = a.result.getMatch;\n if (a.result.filter === false) {\n for (let option of a.result.options) {\n addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));\n }\n }\n else {\n let pattern = state.sliceDoc(a.from, a.to), match;\n let matcher = conf.filterStrict ? new StrictMatcher(pattern) : new FuzzyMatcher(pattern);\n for (let option of a.result.options)\n if (match = matcher.match(option.label)) {\n let matched = !option.displayLabel ? match.matched : getMatch ? getMatch(option, match.matched) : [];\n let score = match.score + (option.boost || 0);\n addOption(new Option(option, a.source, matched, score));\n if (typeof option.section == \"object\" && option.section.rank === \"dynamic\") {\n let { name } = option.section;\n if (!dynamicSectionScore)\n dynamicSectionScore = Object.create(null);\n dynamicSectionScore[name] = Math.max(score, dynamicSectionScore[name] || -1e9);\n }\n }\n }\n }\n if (sections) {\n let sectionOrder = Object.create(null), pos = 0;\n let cmp = (a, b) => {\n return (a.rank === \"dynamic\" && b.rank === \"dynamic\" ? dynamicSectionScore[b.name] - dynamicSectionScore[a.name] : 0) ||\n (typeof a.rank == \"number\" ? a.rank : 1e9) - (typeof b.rank == \"number\" ? b.rank : 1e9) ||\n (a.name < b.name ? -1 : 1);\n };\n for (let s of sections.sort(cmp)) {\n pos -= 1e5;\n sectionOrder[s.name] = pos;\n }\n for (let option of options) {\n let { section } = option.completion;\n if (section)\n option.score += sectionOrder[typeof section == \"string\" ? section : section.name];\n }\n }\n let result = [], prev = null;\n let compare = conf.compareCompletions;\n for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {\n let cur = opt.completion;\n if (!prev || prev.label != cur.label || prev.detail != cur.detail ||\n (prev.type != null && cur.type != null && prev.type != cur.type) ||\n prev.apply != cur.apply || prev.boost != cur.boost)\n result.push(opt);\n else if (score(opt.completion) > score(prev))\n result[result.length - 1] = opt;\n prev = opt.completion;\n }\n return result;\n}\nclass CompletionDialog {\n constructor(options, attrs, tooltip, timestamp, selected, disabled) {\n this.options = options;\n this.attrs = attrs;\n this.tooltip = tooltip;\n this.timestamp = timestamp;\n this.selected = selected;\n this.disabled = disabled;\n }\n setSelected(selected, id) {\n return selected == this.selected || selected >= this.options.length ? this\n : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);\n }\n static build(active, state, id, prev, conf, didSetActive) {\n if (prev && !didSetActive && active.some(s => s.isPending))\n return prev.setDisabled();\n let options = sortOptions(active, state);\n if (!options.length)\n return prev && active.some(a => a.isPending) ? prev.setDisabled() : null;\n let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;\n if (prev && prev.selected != selected && prev.selected != -1) {\n let selectedValue = prev.options[prev.selected].completion;\n for (let i = 0; i < options.length; i++)\n if (options[i].completion == selectedValue) {\n selected = i;\n break;\n }\n }\n return new CompletionDialog(options, makeAttrs(id, selected), {\n pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),\n create: createTooltip,\n above: conf.aboveCursor,\n }, prev ? prev.timestamp : Date.now(), selected, false);\n }\n map(changes) {\n return new CompletionDialog(this.options, this.attrs, { ...this.tooltip, pos: changes.mapPos(this.tooltip.pos) }, this.timestamp, this.selected, this.disabled);\n }\n setDisabled() {\n return new CompletionDialog(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, true);\n }\n}\nclass CompletionState {\n constructor(active, id, open) {\n this.active = active;\n this.id = id;\n this.open = open;\n }\n static start() {\n return new CompletionState(none, \"cm-ac-\" + Math.floor(Math.random() * 2e6).toString(36), null);\n }\n update(tr) {\n let { state } = tr, conf = state.facet(completionConfig);\n let sources = conf.override ||\n state.languageDataAt(\"autocomplete\", cur(state)).map(asSource);\n let active = sources.map(source => {\n let value = this.active.find(s => s.source == source) ||\n new ActiveSource(source, this.active.some(a => a.state != 0 /* State.Inactive */) ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n return value.update(tr, conf);\n });\n if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))\n active = this.active;\n let open = this.open, didSet = tr.effects.some(e => e.is(setActiveEffect));\n if (open && tr.docChanged)\n open = open.map(tr.changes);\n if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||\n !sameResults(active, this.active) || didSet)\n open = CompletionDialog.build(active, state, this.id, open, conf, didSet);\n else if (open && open.disabled && !active.some(a => a.isPending))\n open = null;\n if (!open && active.every(a => !a.isPending) && active.some(a => a.hasResult()))\n active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* State.Inactive */) : a);\n for (let effect of tr.effects)\n if (effect.is(setSelectedEffect))\n open = open && open.setSelected(effect.value, this.id);\n return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);\n }\n get tooltip() { return this.open ? this.open.tooltip : null; }\n get attrs() { return this.open ? this.open.attrs : this.active.length ? baseAttrs : noAttrs; }\n}\nfunction sameResults(a, b) {\n if (a == b)\n return true;\n for (let iA = 0, iB = 0;;) {\n while (iA < a.length && !a[iA].hasResult())\n iA++;\n while (iB < b.length && !b[iB].hasResult())\n iB++;\n let endA = iA == a.length, endB = iB == b.length;\n if (endA || endB)\n return endA == endB;\n if (a[iA++].result != b[iB++].result)\n return false;\n }\n}\nconst baseAttrs = {\n \"aria-autocomplete\": \"list\"\n};\nconst noAttrs = {};\nfunction makeAttrs(id, selected) {\n let result = {\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": id\n };\n if (selected > -1)\n result[\"aria-activedescendant\"] = id + \"-\" + selected;\n return result;\n}\nconst none = [];\nfunction getUpdateType(tr, conf) {\n if (tr.isUserEvent(\"input.complete\")) {\n let completion = tr.annotation(pickedCompletion);\n if (completion && conf.activateOnCompletion(completion))\n return 4 /* UpdateType.Activate */ | 8 /* UpdateType.Reset */;\n }\n let typing = tr.isUserEvent(\"input.type\");\n return typing && conf.activateOnTyping ? 4 /* UpdateType.Activate */ | 1 /* UpdateType.Typing */\n : typing ? 1 /* UpdateType.Typing */\n : tr.isUserEvent(\"delete.backward\") ? 2 /* UpdateType.Backspacing */\n : tr.selection ? 8 /* UpdateType.Reset */\n : tr.docChanged ? 16 /* UpdateType.ResetIfTouching */ : 0 /* UpdateType.None */;\n}\nclass ActiveSource {\n constructor(source, state, explicit = false) {\n this.source = source;\n this.state = state;\n this.explicit = explicit;\n }\n hasResult() { return false; }\n get isPending() { return this.state == 1 /* State.Pending */; }\n update(tr, conf) {\n let type = getUpdateType(tr, conf), value = this;\n if ((type & 8 /* UpdateType.Reset */) || (type & 16 /* UpdateType.ResetIfTouching */) && this.touches(tr))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n if ((type & 4 /* UpdateType.Activate */) && value.state == 0 /* State.Inactive */)\n value = new ActiveSource(this.source, 1 /* State.Pending */);\n value = value.updateFor(tr, type);\n for (let effect of tr.effects) {\n if (effect.is(startCompletionEffect))\n value = new ActiveSource(value.source, 1 /* State.Pending */, effect.value);\n else if (effect.is(closeCompletionEffect))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n else if (effect.is(setActiveEffect))\n for (let active of effect.value)\n if (active.source == value.source)\n value = active;\n }\n return value;\n }\n updateFor(tr, type) { return this.map(tr.changes); }\n map(changes) { return this; }\n touches(tr) {\n return tr.changes.touchesRange(cur(tr.state));\n }\n}\nclass ActiveResult extends ActiveSource {\n constructor(source, explicit, limit, result, from, to) {\n super(source, 3 /* State.Result */, explicit);\n this.limit = limit;\n this.result = result;\n this.from = from;\n this.to = to;\n }\n hasResult() { return true; }\n updateFor(tr, type) {\n var _a;\n if (!(type & 3 /* UpdateType.SimpleInteraction */))\n return this.map(tr.changes);\n let result = this.result;\n if (result.map && !tr.changes.empty)\n result = result.map(result, tr.changes);\n let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);\n let pos = cur(tr.state);\n if (pos > to || !result ||\n (type & 2 /* UpdateType.Backspacing */) && (cur(tr.startState) == this.from || pos < this.limit))\n return new ActiveSource(this.source, type & 4 /* UpdateType.Activate */ ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n let limit = tr.changes.mapPos(this.limit);\n if (checkValid(result.validFor, tr.state, from, to))\n return new ActiveResult(this.source, this.explicit, limit, result, from, to);\n if (result.update &&\n (result = result.update(result, from, to, new CompletionContext(tr.state, pos, false))))\n return new ActiveResult(this.source, this.explicit, limit, result, result.from, (_a = result.to) !== null && _a !== void 0 ? _a : cur(tr.state));\n return new ActiveSource(this.source, 1 /* State.Pending */, this.explicit);\n }\n map(mapping) {\n if (mapping.empty)\n return this;\n let result = this.result.map ? this.result.map(this.result, mapping) : this.result;\n if (!result)\n return new ActiveSource(this.source, 0 /* State.Inactive */);\n return new ActiveResult(this.source, this.explicit, mapping.mapPos(this.limit), this.result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));\n }\n touches(tr) {\n return tr.changes.touchesRange(this.from, this.to);\n }\n}\nfunction checkValid(validFor, state, from, to) {\n if (!validFor)\n return false;\n let text = state.sliceDoc(from, to);\n return typeof validFor == \"function\" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);\n}\nconst setActiveEffect = /*@__PURE__*/StateEffect.define({\n map(sources, mapping) { return sources.map(s => s.map(mapping)); }\n});\nconst setSelectedEffect = /*@__PURE__*/StateEffect.define();\nconst completionState = /*@__PURE__*/StateField.define({\n create() { return CompletionState.start(); },\n update(value, tr) { return value.update(tr); },\n provide: f => [\n showTooltip.from(f, val => val.tooltip),\n EditorView.contentAttributes.from(f, state => state.attrs)\n ]\n});\nfunction applyCompletion(view, option) {\n const apply = option.completion.apply || option.completion.label;\n let result = view.state.field(completionState).active.find(a => a.source == option.source);\n if (!(result instanceof ActiveResult))\n return false;\n if (typeof apply == \"string\")\n view.dispatch({\n ...insertCompletionText(view.state, apply, result.from, result.to),\n annotations: pickedCompletion.of(option.completion)\n });\n else\n apply(view, option.completion, result.from, result.to);\n return true;\n}\nconst createTooltip = /*@__PURE__*/completionTooltip(completionState, applyCompletion);\n\n/**\nReturns a command that moves the completion selection forward or\nbackward by the given amount.\n*/\nfunction moveCompletionSelection(forward, by = \"option\") {\n return (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.open || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n let step = 1, tooltip;\n if (by == \"page\" && (tooltip = getTooltip(view, cState.open.tooltip)))\n step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /\n tooltip.dom.querySelector(\"li\").offsetHeight) - 1);\n let { length } = cState.open.options;\n let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;\n if (selected < 0)\n selected = by == \"page\" ? 0 : length - 1;\n else if (selected >= length)\n selected = by == \"page\" ? length - 1 : 0;\n view.dispatch({ effects: setSelectedEffect.of(selected) });\n return true;\n };\n}\n/**\nAccept the current completion.\n*/\nconst acceptCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n return applyCompletion(view, cState.open.options[cState.open.selected]);\n};\n/**\nExplicitly start autocompletion.\n*/\nconst startCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState)\n return false;\n view.dispatch({ effects: startCompletionEffect.of(true) });\n return true;\n};\n/**\nClose the currently active completion.\n*/\nconst closeCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.active.some(a => a.state != 0 /* State.Inactive */))\n return false;\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n return true;\n};\nclass RunningQuery {\n constructor(active, context) {\n this.active = active;\n this.context = context;\n this.time = Date.now();\n this.updates = [];\n // Note that 'undefined' means 'not done yet', whereas 'null' means\n // 'query returned null'.\n this.done = undefined;\n }\n}\nconst MaxUpdateCount = 50, MinAbortTime = 1000;\nconst completionPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.debounceUpdate = -1;\n this.running = [];\n this.debounceAccept = -1;\n this.pendingStart = false;\n this.composing = 0 /* CompositionState.None */;\n for (let active of view.state.field(completionState).active)\n if (active.isPending)\n this.startQuery(active);\n }\n update(update) {\n let cState = update.state.field(completionState);\n let conf = update.state.facet(completionConfig);\n if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)\n return;\n let doesReset = update.transactions.some(tr => {\n let type = getUpdateType(tr, conf);\n return (type & 8 /* UpdateType.Reset */) || (tr.selection || tr.docChanged) && !(type & 3 /* UpdateType.SimpleInteraction */);\n });\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (doesReset ||\n query.context.abortOnDocChange && update.docChanged ||\n query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {\n for (let handler of query.context.abortListeners) {\n try {\n handler();\n }\n catch (e) {\n logException(this.view.state, e);\n }\n }\n query.context.abortListeners = null;\n this.running.splice(i--, 1);\n }\n else {\n query.updates.push(...update.transactions);\n }\n }\n if (this.debounceUpdate > -1)\n clearTimeout(this.debounceUpdate);\n if (update.transactions.some(tr => tr.effects.some(e => e.is(startCompletionEffect))))\n this.pendingStart = true;\n let delay = this.pendingStart ? 50 : conf.activateOnTypingDelay;\n this.debounceUpdate = cState.active.some(a => a.isPending && !this.running.some(q => q.active.source == a.source))\n ? setTimeout(() => this.startUpdate(), delay) : -1;\n if (this.composing != 0 /* CompositionState.None */)\n for (let tr of update.transactions) {\n if (tr.isUserEvent(\"input.type\"))\n this.composing = 2 /* CompositionState.Changed */;\n else if (this.composing == 2 /* CompositionState.Changed */ && tr.selection)\n this.composing = 3 /* CompositionState.ChangedAndMoved */;\n }\n }\n startUpdate() {\n this.debounceUpdate = -1;\n this.pendingStart = false;\n let { state } = this.view, cState = state.field(completionState);\n for (let active of cState.active) {\n if (active.isPending && !this.running.some(r => r.active.source == active.source))\n this.startQuery(active);\n }\n if (this.running.length && cState.open && cState.open.disabled)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n startQuery(active) {\n let { state } = this.view, pos = cur(state);\n let context = new CompletionContext(state, pos, active.explicit, this.view);\n let pending = new RunningQuery(active, context);\n this.running.push(pending);\n Promise.resolve(active.source(context)).then(result => {\n if (!pending.context.aborted) {\n pending.done = result || null;\n this.scheduleAccept();\n }\n }, err => {\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n logException(this.view.state, err);\n });\n }\n scheduleAccept() {\n if (this.running.every(q => q.done !== undefined))\n this.accept();\n else if (this.debounceAccept < 0)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n // For each finished query in this.running, try to create a result\n // or, if appropriate, restart the query.\n accept() {\n var _a;\n if (this.debounceAccept > -1)\n clearTimeout(this.debounceAccept);\n this.debounceAccept = -1;\n let updated = [];\n let conf = this.view.state.facet(completionConfig), cState = this.view.state.field(completionState);\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (query.done === undefined)\n continue;\n this.running.splice(i--, 1);\n if (query.done) {\n let pos = cur(query.updates.length ? query.updates[0].startState : this.view.state);\n let limit = Math.min(pos, query.done.from + (query.active.explicit ? 0 : 1));\n let active = new ActiveResult(query.active.source, query.active.explicit, limit, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : pos);\n // Replay the transactions that happened since the start of\n // the request and see if that preserves the result\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.hasResult()) {\n updated.push(active);\n continue;\n }\n }\n let current = cState.active.find(a => a.source == query.active.source);\n if (current && current.isPending) {\n if (query.done == null) {\n // Explicitly failed. Should clear the pending status if it\n // hasn't been re-set in the meantime.\n let active = new ActiveSource(query.active.source, 0 /* State.Inactive */);\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (!active.isPending)\n updated.push(active);\n }\n else {\n // Cleared by subsequent transactions. Restart.\n this.startQuery(current);\n }\n }\n }\n if (updated.length || cState.open && cState.open.disabled)\n this.view.dispatch({ effects: setActiveEffect.of(updated) });\n }\n}, {\n eventHandlers: {\n blur(event) {\n let state = this.view.state.field(completionState, false);\n if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {\n let dialog = state.open && getTooltip(this.view, state.open.tooltip);\n if (!dialog || !dialog.dom.contains(event.relatedTarget))\n setTimeout(() => this.view.dispatch({ effects: closeCompletionEffect.of(null) }), 10);\n }\n },\n compositionstart() {\n this.composing = 1 /* CompositionState.Started */;\n },\n compositionend() {\n if (this.composing == 3 /* CompositionState.ChangedAndMoved */) {\n // Safari fires compositionend events synchronously, possibly\n // from inside an update, so dispatch asynchronously to avoid reentrancy\n setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);\n }\n this.composing = 0 /* CompositionState.None */;\n }\n }\n});\nconst windows = typeof navigator == \"object\" && /*@__PURE__*//Win/.test(navigator.platform);\nconst commitCharacters = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.domEventHandlers({\n keydown(event, view) {\n let field = view.state.field(completionState, false);\n if (!field || !field.open || field.open.disabled || field.open.selected < 0 ||\n event.key.length > 1 || event.ctrlKey && !(windows && event.altKey) || event.metaKey)\n return false;\n let option = field.open.options[field.open.selected];\n let result = field.active.find(a => a.source == option.source);\n let commitChars = option.completion.commitCharacters || result.result.commitCharacters;\n if (commitChars && commitChars.indexOf(event.key) > -1)\n applyCompletion(view, option);\n return false;\n }\n}));\n\nconst baseTheme = /*@__PURE__*/EditorView.baseTheme({\n \".cm-tooltip.cm-tooltip-autocomplete\": {\n \"& > ul\": {\n fontFamily: \"monospace\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden auto\",\n maxWidth_fallback: \"700px\",\n maxWidth: \"min(700px, 95vw)\",\n minWidth: \"250px\",\n maxHeight: \"10em\",\n height: \"100%\",\n listStyle: \"none\",\n margin: 0,\n padding: 0,\n \"& > li, & > completion-section\": {\n padding: \"1px 3px\",\n lineHeight: 1.2\n },\n \"& > li\": {\n overflowX: \"hidden\",\n textOverflow: \"ellipsis\",\n cursor: \"pointer\"\n },\n \"& > completion-section\": {\n display: \"list-item\",\n borderBottom: \"1px solid silver\",\n paddingLeft: \"0.5em\",\n opacity: 0.7\n }\n }\n },\n \"&light .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#17c\",\n color: \"white\",\n },\n \"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#777\",\n },\n \"&dark .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#347\",\n color: \"white\",\n },\n \"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#444\",\n },\n \".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after\": {\n content: '\"···\"',\n opacity: 0.5,\n display: \"block\",\n textAlign: \"center\"\n },\n \".cm-tooltip.cm-completionInfo\": {\n position: \"absolute\",\n padding: \"3px 9px\",\n width: \"max-content\",\n maxWidth: `${400 /* Info.Width */}px`,\n boxSizing: \"border-box\",\n whiteSpace: \"pre-line\"\n },\n \".cm-completionInfo.cm-completionInfo-left\": { right: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-right\": { left: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-left-narrow\": { right: `${30 /* Info.Margin */}px` },\n \".cm-completionInfo.cm-completionInfo-right-narrow\": { left: `${30 /* Info.Margin */}px` },\n \"&light .cm-snippetField\": { backgroundColor: \"#00000022\" },\n \"&dark .cm-snippetField\": { backgroundColor: \"#ffffff22\" },\n \".cm-snippetFieldPosition\": {\n verticalAlign: \"text-top\",\n width: 0,\n height: \"1.15em\",\n display: \"inline-block\",\n margin: \"0 -0.7px -.7em\",\n borderLeft: \"1.4px dotted #888\"\n },\n \".cm-completionMatchedText\": {\n textDecoration: \"underline\"\n },\n \".cm-completionDetail\": {\n marginLeft: \"0.5em\",\n fontStyle: \"italic\"\n },\n \".cm-completionIcon\": {\n fontSize: \"90%\",\n width: \".8em\",\n display: \"inline-block\",\n textAlign: \"center\",\n paddingRight: \".6em\",\n opacity: \"0.6\",\n boxSizing: \"content-box\"\n },\n \".cm-completionIcon-function, .cm-completionIcon-method\": {\n \"&:after\": { content: \"'ƒ'\" }\n },\n \".cm-completionIcon-class\": {\n \"&:after\": { content: \"'○'\" }\n },\n \".cm-completionIcon-interface\": {\n \"&:after\": { content: \"'◌'\" }\n },\n \".cm-completionIcon-variable\": {\n \"&:after\": { content: \"'𝑥'\" }\n },\n \".cm-completionIcon-constant\": {\n \"&:after\": { content: \"'𝐶'\" }\n },\n \".cm-completionIcon-type\": {\n \"&:after\": { content: \"'𝑡'\" }\n },\n \".cm-completionIcon-enum\": {\n \"&:after\": { content: \"'∪'\" }\n },\n \".cm-completionIcon-property\": {\n \"&:after\": { content: \"'□'\" }\n },\n \".cm-completionIcon-keyword\": {\n \"&:after\": { content: \"'🔑\\uFE0E'\" } // Disable emoji rendering\n },\n \".cm-completionIcon-namespace\": {\n \"&:after\": { content: \"'▢'\" }\n },\n \".cm-completionIcon-text\": {\n \"&:after\": { content: \"'abc'\", fontSize: \"50%\", verticalAlign: \"middle\" }\n }\n});\n\nclass FieldPos {\n constructor(field, line, from, to) {\n this.field = field;\n this.line = line;\n this.from = from;\n this.to = to;\n }\n}\nclass FieldRange {\n constructor(field, from, to) {\n this.field = field;\n this.from = from;\n this.to = to;\n }\n map(changes) {\n let from = changes.mapPos(this.from, -1, MapMode.TrackDel);\n let to = changes.mapPos(this.to, 1, MapMode.TrackDel);\n return from == null || to == null ? null : new FieldRange(this.field, from, to);\n }\n}\nclass Snippet {\n constructor(lines, fieldPositions) {\n this.lines = lines;\n this.fieldPositions = fieldPositions;\n }\n instantiate(state, pos) {\n let text = [], lineStart = [pos];\n let lineObj = state.doc.lineAt(pos), baseIndent = /^\\s*/.exec(lineObj.text)[0];\n for (let line of this.lines) {\n if (text.length) {\n let indent = baseIndent, tabs = /^\\t*/.exec(line)[0].length;\n for (let i = 0; i < tabs; i++)\n indent += state.facet(indentUnit);\n lineStart.push(pos + indent.length - tabs);\n line = indent + line.slice(tabs);\n }\n text.push(line);\n pos += line.length + 1;\n }\n let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));\n return { text, ranges };\n }\n static parse(template) {\n let fields = [];\n let lines = [], positions = [], m;\n for (let line of template.split(/\\r\\n?|\\n/)) {\n while (m = /[#$]\\{(?:(\\d+)(?::([^{}]*))?|((?:\\\\[{}]|[^{}])*))\\}/.exec(line)) {\n let seq = m[1] ? +m[1] : null, rawName = m[2] || m[3] || \"\", found = -1;\n let name = rawName.replace(/\\\\[{}]/g, m => m[1]);\n for (let i = 0; i < fields.length; i++) {\n if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)\n found = i;\n }\n if (found < 0) {\n let i = 0;\n while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))\n i++;\n fields.splice(i, 0, { seq, name });\n found = i;\n for (let pos of positions)\n if (pos.field >= found)\n pos.field++;\n }\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > m.index) {\n let snip = m[2] ? 3 + (m[1] || \"\").length : 2;\n pos.from -= snip;\n pos.to -= snip;\n }\n positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));\n line = line.slice(0, m.index) + rawName + line.slice(m.index + m[0].length);\n }\n line = line.replace(/\\\\([{}])/g, (_, brace, index) => {\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > index) {\n pos.from--;\n pos.to--;\n }\n return brace;\n });\n lines.push(line);\n }\n return new Snippet(lines, positions);\n }\n}\nlet fieldMarker = /*@__PURE__*/Decoration.widget({ widget: /*@__PURE__*/new class extends WidgetType {\n toDOM() {\n let span = document.createElement(\"span\");\n span.className = \"cm-snippetFieldPosition\";\n return span;\n }\n ignoreEvent() { return false; }\n } });\nlet fieldRange = /*@__PURE__*/Decoration.mark({ class: \"cm-snippetField\" });\nclass ActiveSnippet {\n constructor(ranges, active) {\n this.ranges = ranges;\n this.active = active;\n this.deco = Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)), true);\n }\n map(changes) {\n let ranges = [];\n for (let r of this.ranges) {\n let mapped = r.map(changes);\n if (!mapped)\n return null;\n ranges.push(mapped);\n }\n return new ActiveSnippet(ranges, this.active);\n }\n selectionInsideField(sel) {\n return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));\n }\n}\nconst setActive = /*@__PURE__*/StateEffect.define({\n map(value, changes) { return value && value.map(changes); }\n});\nconst moveToField = /*@__PURE__*/StateEffect.define();\nconst snippetState = /*@__PURE__*/StateField.define({\n create() { return null; },\n update(value, tr) {\n for (let effect of tr.effects) {\n if (effect.is(setActive))\n return effect.value;\n if (effect.is(moveToField) && value)\n return new ActiveSnippet(value.ranges, effect.value);\n }\n if (value && tr.docChanged)\n value = value.map(tr.changes);\n if (value && tr.selection && !value.selectionInsideField(tr.selection))\n value = null;\n return value;\n },\n provide: f => EditorView.decorations.from(f, val => val ? val.deco : Decoration.none)\n});\nfunction fieldSelection(ranges, field) {\n return EditorSelection.create(ranges.filter(r => r.field == field).map(r => EditorSelection.range(r.from, r.to)));\n}\n/**\nConvert a snippet template to a function that can\n[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written\nusing syntax like this:\n\n \"for (let ${index} = 0; ${index} < ${end}; ${index}++) {\\n\\t${}\\n}\"\n\nEach `${}` placeholder (you may also use `#{}`) indicates a field\nthat the user can fill in. Its name, if any, will be the default\ncontent for the field.\n\nWhen the snippet is activated by calling the returned function,\nthe code is inserted at the given position. Newlines in the\ntemplate are indented by the indentation of the start line, plus\none [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after\nthe newline.\n\nOn activation, (all instances of) the first field are selected.\nThe user can move between fields with Tab and Shift-Tab as long as\nthe fields are active. Moving to the last field or moving the\ncursor out of the current field deactivates the fields.\n\nThe order of fields defaults to textual order, but you can add\nnumbers to placeholders (`${1}` or `${1:defaultText}`) to provide\na custom order.\n\nTo include a literal `{` or `}` in your template, put a backslash\nin front of it. This will be removed and the brace will not be\ninterpreted as indicating a placeholder.\n*/\nfunction snippet(template) {\n let snippet = Snippet.parse(template);\n return (editor, completion, from, to) => {\n let { text, ranges } = snippet.instantiate(editor.state, from);\n let { main } = editor.state.selection;\n let spec = {\n changes: { from, to: to == main.from ? main.to : to, insert: Text.of(text) },\n scrollIntoView: true,\n annotations: completion ? [pickedCompletion.of(completion), Transaction.userEvent.of(\"input.complete\")] : undefined\n };\n if (ranges.length)\n spec.selection = fieldSelection(ranges, 0);\n if (ranges.some(r => r.field > 0)) {\n let active = new ActiveSnippet(ranges, 0);\n let effects = spec.effects = [setActive.of(active)];\n if (editor.state.field(snippetState, false) === undefined)\n effects.push(StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme]));\n }\n editor.dispatch(editor.state.update(spec));\n };\n}\nfunction moveField(dir) {\n return ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active || dir < 0 && active.active == 0)\n return false;\n let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);\n dispatch(state.update({\n selection: fieldSelection(active.ranges, next),\n effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next)),\n scrollIntoView: true\n }));\n return true;\n };\n}\n/**\nA command that clears the active snippet, if any.\n*/\nconst clearSnippet = ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active)\n return false;\n dispatch(state.update({ effects: setActive.of(null) }));\n return true;\n};\n/**\nMove to the next snippet field, if available.\n*/\nconst nextSnippetField = /*@__PURE__*/moveField(1);\n/**\nMove to the previous snippet field, if available.\n*/\nconst prevSnippetField = /*@__PURE__*/moveField(-1);\n/**\nCheck if there is an active snippet with a next field for\n`nextSnippetField` to move to.\n*/\nfunction hasNextSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.ranges.some(r => r.field == active.active + 1));\n}\n/**\nReturns true if there is an active snippet and a previous field\nfor `prevSnippetField` to move to.\n*/\nfunction hasPrevSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.active > 0);\n}\nconst defaultSnippetKeymap = [\n { key: \"Tab\", run: nextSnippetField, shift: prevSnippetField },\n { key: \"Escape\", run: clearSnippet }\n];\n/**\nA facet that can be used to configure the key bindings used by\nsnippets. The default binds Tab to\n[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to\n[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape\nto [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).\n*/\nconst snippetKeymap = /*@__PURE__*/Facet.define({\n combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }\n});\nconst addSnippetKeymap = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));\n/**\nCreate a completion from a snippet. Returns an object with the\nproperties from `completion`, plus an `apply` function that\napplies the snippet.\n*/\nfunction snippetCompletion(template, completion) {\n return { ...completion, apply: snippet(template) };\n}\nconst snippetPointerHandler = /*@__PURE__*/EditorView.domEventHandlers({\n mousedown(event, view) {\n let active = view.state.field(snippetState, false), pos;\n if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)\n return false;\n let match = active.ranges.find(r => r.from <= pos && r.to >= pos);\n if (!match || match.field == active.active)\n return false;\n view.dispatch({\n selection: fieldSelection(active.ranges, match.field),\n effects: setActive.of(active.ranges.some(r => r.field > match.field)\n ? new ActiveSnippet(active.ranges, match.field) : null),\n scrollIntoView: true\n });\n return true;\n }\n});\n\nfunction wordRE(wordChars) {\n let escaped = wordChars.replace(/[\\]\\-\\\\]/g, \"\\\\$&\");\n try {\n return new RegExp(`[\\\\p{Alphabetic}\\\\p{Number}_${escaped}]+`, \"ug\");\n }\n catch (_a) {\n return new RegExp(`[\\w${escaped}]`, \"g\");\n }\n}\nfunction mapRE(re, f) {\n return new RegExp(f(re.source), re.unicode ? \"u\" : \"\");\n}\nconst wordCaches = /*@__PURE__*/Object.create(null);\nfunction wordCache(wordChars) {\n return wordCaches[wordChars] || (wordCaches[wordChars] = new WeakMap);\n}\nfunction storeWords(doc, wordRE, result, seen, ignoreAt) {\n for (let lines = doc.iterLines(), pos = 0; !lines.next().done;) {\n let { value } = lines, m;\n wordRE.lastIndex = 0;\n while (m = wordRE.exec(value)) {\n if (!seen[m[0]] && pos + m.index != ignoreAt) {\n result.push({ type: \"text\", label: m[0] });\n seen[m[0]] = true;\n if (result.length >= 2000 /* C.MaxList */)\n return;\n }\n }\n pos += value.length + 1;\n }\n}\nfunction collectWords(doc, cache, wordRE, to, ignoreAt) {\n let big = doc.length >= 1000 /* C.MinCacheLen */;\n let cached = big && cache.get(doc);\n if (cached)\n return cached;\n let result = [], seen = Object.create(null);\n if (doc.children) {\n let pos = 0;\n for (let ch of doc.children) {\n if (ch.length >= 1000 /* C.MinCacheLen */) {\n for (let c of collectWords(ch, cache, wordRE, to - pos, ignoreAt - pos)) {\n if (!seen[c.label]) {\n seen[c.label] = true;\n result.push(c);\n }\n }\n }\n else {\n storeWords(ch, wordRE, result, seen, ignoreAt - pos);\n }\n pos += ch.length + 1;\n }\n }\n else {\n storeWords(doc, wordRE, result, seen, ignoreAt);\n }\n if (big && result.length < 2000 /* C.MaxList */)\n cache.set(doc, result);\n return result;\n}\n/**\nA completion source that will scan the document for words (using a\n[character categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer)), and\nreturn those as completions.\n*/\nconst completeAnyWord = context => {\n let wordChars = context.state.languageDataAt(\"wordChars\", context.pos).join(\"\");\n let re = wordRE(wordChars);\n let token = context.matchBefore(mapRE(re, s => s + \"$\"));\n if (!token && !context.explicit)\n return null;\n let from = token ? token.from : context.pos;\n let options = collectWords(context.state.doc, wordCache(wordChars), re, 50000 /* C.Range */, from);\n return { from, options, validFor: mapRE(re, s => \"^\" + s) };\n};\n\nconst defaults = {\n brackets: [\"(\", \"[\", \"{\", \"'\", '\"'],\n before: \")]}:;>\",\n stringPrefixes: []\n};\nconst closeBracketEffect = /*@__PURE__*/StateEffect.define({\n map(value, mapping) {\n let mapped = mapping.mapPos(value, -1, MapMode.TrackAfter);\n return mapped == null ? undefined : mapped;\n }\n});\nconst closedBracket = /*@__PURE__*/new class extends RangeValue {\n};\nclosedBracket.startSide = 1;\nclosedBracket.endSide = -1;\nconst bracketState = /*@__PURE__*/StateField.define({\n create() { return RangeSet.empty; },\n update(value, tr) {\n value = value.map(tr.changes);\n if (tr.selection) {\n let line = tr.state.doc.lineAt(tr.selection.main.head);\n value = value.update({ filter: from => from >= line.from && from <= line.to });\n }\n for (let effect of tr.effects)\n if (effect.is(closeBracketEffect))\n value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });\n return value;\n }\n});\n/**\nExtension to enable bracket-closing behavior. When a closeable\nbracket is typed, its closing bracket is immediately inserted\nafter the cursor. When closing a bracket directly in front of a\nclosing bracket inserted by the extension, the cursor moves over\nthat bracket.\n*/\nfunction closeBrackets() {\n return [inputHandler, bracketState];\n}\nconst definedClosing = \"()[]{}<>«»»«[]{}\";\nfunction closing(ch) {\n for (let i = 0; i < definedClosing.length; i += 2)\n if (definedClosing.charCodeAt(i) == ch)\n return definedClosing.charAt(i + 1);\n return fromCodePoint(ch < 128 ? ch : ch + 1);\n}\nfunction config(state, pos) {\n return state.languageDataAt(\"closeBrackets\", pos)[0] || defaults;\n}\nconst android = typeof navigator == \"object\" && /*@__PURE__*//Android\\b/.test(navigator.userAgent);\nconst inputHandler = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, insert) => {\n if ((android ? view.composing : view.compositionStarted) || view.state.readOnly)\n return false;\n let sel = view.state.selection.main;\n if (insert.length > 2 || insert.length == 2 && codePointSize(codePointAt(insert, 0)) == 1 ||\n from != sel.from || to != sel.to)\n return false;\n let tr = insertBracket(view.state, insert);\n if (!tr)\n return false;\n view.dispatch(tr);\n return true;\n});\n/**\nCommand that implements deleting a pair of matching brackets when\nthe cursor is between them.\n*/\nconst deleteBracketPair = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty) {\n let before = prevChar(state.doc, range.head);\n for (let token of tokens) {\n if (token == before && nextChar(state.doc, range.head) == closing(codePointAt(token, 0)))\n return { changes: { from: range.head - token.length, to: range.head + token.length },\n range: EditorSelection.cursor(range.head - token.length) };\n }\n }\n return { range: dont = range };\n });\n if (!dont)\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete.backward\" }));\n return !dont;\n};\n/**\nClose-brackets related key bindings. Binds Backspace to\n[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).\n*/\nconst closeBracketsKeymap = [\n { key: \"Backspace\", run: deleteBracketPair }\n];\n/**\nImplements the extension's behavior on text insertion. If the\ngiven string counts as a bracket in the language around the\nselection, and replacing the selection with it requires custom\nbehavior (inserting a closing version or skipping past a\npreviously-closed bracket), this function returns a transaction\nrepresenting that custom behavior. (You only need this if you want\nto programmatically insert brackets—the\n[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will\ntake care of running this for user input.)\n*/\nfunction insertBracket(state, bracket) {\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n for (let tok of tokens) {\n let closed = closing(codePointAt(tok, 0));\n if (bracket == tok)\n return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)\n : handleOpen(state, tok, closed, conf.before || defaults.before);\n if (bracket == closed && closedBracketAt(state, state.selection.main.from))\n return handleClose(state, tok, closed);\n }\n return null;\n}\nfunction closedBracketAt(state, pos) {\n let found = false;\n state.field(bracketState).between(0, state.doc.length, from => {\n if (from == pos)\n found = true;\n });\n return found;\n}\nfunction nextChar(doc, pos) {\n let next = doc.sliceString(pos, pos + 2);\n return next.slice(0, codePointSize(codePointAt(next, 0)));\n}\nfunction prevChar(doc, pos) {\n let prev = doc.sliceString(pos - 2, pos);\n return codePointSize(codePointAt(prev, 0)) == prev.length ? prev : prev.slice(1);\n}\nfunction handleOpen(state, open, close, closeBefore) {\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],\n effects: closeBracketEffect.of(range.to + open.length),\n range: EditorSelection.range(range.anchor + open.length, range.head + open.length) };\n let next = nextChar(state.doc, range.head);\n if (!next || /\\s/.test(next) || closeBefore.indexOf(next) > -1)\n return { changes: { insert: open + close, from: range.head },\n effects: closeBracketEffect.of(range.head + open.length),\n range: EditorSelection.cursor(range.head + open.length) };\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction handleClose(state, _open, close) {\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty && nextChar(state.doc, range.head) == close)\n return { changes: { from: range.head, to: range.head + close.length, insert: close },\n range: EditorSelection.cursor(range.head + close.length) };\n return dont = { range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\n// Handles cases where the open and close token are the same, and\n// possibly triple quotes (as in `\"\"\"abc\"\"\"`-style quoting).\nfunction handleSame(state, token, allowTriple, config) {\n let stringPrefixes = config.stringPrefixes || defaults.stringPrefixes;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],\n effects: closeBracketEffect.of(range.to + token.length),\n range: EditorSelection.range(range.anchor + token.length, range.head + token.length) };\n let pos = range.head, next = nextChar(state.doc, pos), start;\n if (next == token) {\n if (nodeStart(state, pos)) {\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (closedBracketAt(state, pos)) {\n let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;\n let content = isTriple ? token + token + token : token;\n return { changes: { from: pos, to: pos + content.length, insert: content },\n range: EditorSelection.cursor(pos + content.length) };\n }\n }\n else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&\n (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&\n nodeStart(state, start)) {\n return { changes: { insert: token + token + token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (state.charCategorizer(pos)(next) != CharCategory.Word) {\n if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction nodeStart(state, pos) {\n let tree = syntaxTree(state).resolveInner(pos + 1);\n return tree.parent && tree.from == pos;\n}\nfunction probablyInString(state, pos, quoteToken, prefixes) {\n let node = syntaxTree(state).resolveInner(pos, -1);\n let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);\n for (let i = 0; i < 5; i++) {\n let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));\n let quotePos = start.indexOf(quoteToken);\n if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {\n let first = node.firstChild;\n while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {\n if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)\n return false;\n first = first.firstChild;\n }\n return true;\n }\n let parent = node.to == pos && node.parent;\n if (!parent)\n break;\n node = parent;\n }\n return false;\n}\nfunction canStartStringAt(state, pos, prefixes) {\n let charCat = state.charCategorizer(pos);\n if (charCat(state.sliceDoc(pos - 1, pos)) != CharCategory.Word)\n return pos;\n for (let prefix of prefixes) {\n let start = pos - prefix.length;\n if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != CharCategory.Word)\n return start;\n }\n return -1;\n}\n\n/**\nReturns an extension that enables autocompletion.\n*/\nfunction autocompletion(config = {}) {\n return [\n commitCharacters,\n completionState,\n completionConfig.of(config),\n completionPlugin,\n completionKeymapExt,\n baseTheme\n ];\n}\n/**\nBasic keybindings for autocompletion.\n\n - Ctrl-Space (and Alt-\\` or Alt-i on macOS): [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)\n - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)\n - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`\n - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - PageUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false, \"page\")`\n - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)\n*/\nconst completionKeymap = [\n { key: \"Ctrl-Space\", run: startCompletion },\n { mac: \"Alt-`\", run: startCompletion },\n { mac: \"Alt-i\", run: startCompletion },\n { key: \"Escape\", run: closeCompletion },\n { key: \"ArrowDown\", run: /*@__PURE__*/moveCompletionSelection(true) },\n { key: \"ArrowUp\", run: /*@__PURE__*/moveCompletionSelection(false) },\n { key: \"PageDown\", run: /*@__PURE__*/moveCompletionSelection(true, \"page\") },\n { key: \"PageUp\", run: /*@__PURE__*/moveCompletionSelection(false, \"page\") },\n { key: \"Enter\", run: acceptCompletion }\n];\nconst completionKeymapExt = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));\n/**\nGet the current completion status. When completions are available,\nthis will return `\"active\"`. When completions are pending (in the\nprocess of being queried), this returns `\"pending\"`. Otherwise, it\nreturns `null`.\n*/\nfunction completionStatus(state) {\n let cState = state.field(completionState, false);\n return cState && cState.active.some(a => a.isPending) ? \"pending\"\n : cState && cState.active.some(a => a.state != 0 /* State.Inactive */) ? \"active\" : null;\n}\nconst completionArrayCache = /*@__PURE__*/new WeakMap;\n/**\nReturns the available completions as an array.\n*/\nfunction currentCompletions(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n if (!open || open.disabled)\n return [];\n let completions = completionArrayCache.get(open.options);\n if (!completions)\n completionArrayCache.set(open.options, completions = open.options.map(o => o.completion));\n return completions;\n}\n/**\nReturn the currently selected completion, if any.\n*/\nfunction selectedCompletion(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.options[open.selected].completion : null;\n}\n/**\nReturns the currently selected position in the active completion\nlist, or null if no completions are active.\n*/\nfunction selectedCompletionIndex(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.selected : null;\n}\n/**\nCreate an effect that can be attached to a transaction to change\nthe currently selected completion.\n*/\nfunction setSelectedCompletion(index) {\n return setSelectedEffect.of(index);\n}\n\nexport { CompletionContext, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion };\n"],"names":["CompletionContext","state","pos","explicit","view","types","token","syntaxTree","expr","line","start","str","found","ensureAnchor","type","listener","options","toSet","chars","flat","words","prefixMatch","first","rest","label","i","source","completeFromList","list","validFor","match","context","ifNotIn","nodes","Option","completion","score","cur","_a","addStart","addEnd","pickedCompletion","Annotation","insertCompletionText","text","from","to","main","fromOff","toOff","range","lines","EditorSelection","SourceCache","asSource","known","startCompletionEffect","StateEffect","closeCompletionEffect","FuzzyMatcher","pattern","p","char","codePointAt","size","codePointSize","part","upper","matched","word","folded","any","precise","byWord","firstSize","direct","len","anyTo","e","next","preciseTo","byWordTo","byWordFolded","adjacentTo","adjacentStart","adjacentEnd","hasLower","wordAdjacent","prevType","ch","fromCodePoint","positions","result","StrictMatcher","completionConfig","Facet","configs","combineConfig","defaultPositionInfo","a","b","c","joinClass","option","info","space","tooltip","rtl","Direction","left","narrow","side","offset","maxWidth","spaceLeft","spaceRight","infoWidth","infoHeight","spaceBelow","scaleY","scaleX","optionContent","config","content","icon","cls","_s","_v","labelElt","off","j","span","detailElt","rangeAroundSelected","total","selected","max","CompletionTooltip","stateField","applyCompletion","cState","dom","id","update","prevState","disabled","open","infoResult","obj","logException","wrap","destroy","set","opt","scrollIntoView","sel","listRect","infoRect","selRect","docElt","ul","curSection","section","name","header","li","node","completionTooltip","container","element","parent","self","sortOptions","active","sections","dynamicSectionScore","addOption","s","conf","getMatch","matcher","sectionOrder","cmp","prev","compare","CompletionDialog","attrs","timestamp","makeAttrs","didSetActive","selectedValue","createTooltip","changes","CompletionState","none","tr","ActiveSource","didSet","setActiveEffect","sameResults","effect","setSelectedEffect","baseAttrs","noAttrs","iA","iB","endA","endB","getUpdateType","typing","value","ActiveResult","limit","checkValid","mapping","sources","completionState","StateField","f","showTooltip","val","EditorView","apply","moveCompletionSelection","forward","by","step","getTooltip","length","acceptCompletion","startCompletion","closeCompletion","RunningQuery","MaxUpdateCount","MinAbortTime","completionPlugin","ViewPlugin","doesReset","query","handler","delay","q","r","pending","err","updated","current","event","dialog","windows","commitCharacters","Prec","field","commitChars","baseTheme","FieldPos","FieldRange","MapMode","Snippet","fieldPositions","lineStart","lineObj","baseIndent","indent","tabs","indentUnit","ranges","template","fields","m","seq","rawName","snip","_","brace","index","fieldMarker","Decoration","WidgetType","fieldRange","ActiveSnippet","mapped","setActive","moveToField","snippetState","fieldSelection","snippet","editor","spec","Text","Transaction","effects","addSnippetKeymap","snippetPointerHandler","moveField","dir","dispatch","last","clearSnippet","nextSnippetField","prevSnippetField","defaultSnippetKeymap","snippetKeymap","maps","keymap","snippetCompletion","defaults","closeBracketEffect","closedBracket","RangeValue","bracketState","RangeSet","closeBrackets","inputHandler","definedClosing","closing","android","insert","insertBracket","deleteBracketPair","tokens","dont","before","prevChar","nextChar","closeBracketsKeymap","bracket","tok","closed","handleSame","handleOpen","closedBracketAt","handleClose","doc","close","closeBefore","_open","allowTriple","stringPrefixes","nodeStart","canStartStringAt","CharCategory","probablyInString","tree","quoteToken","prefixes","maxPrefix","quotePos","charCat","prefix","autocompletion","completionKeymapExt","completionKeymap"],"mappings":"gNAOA,MAAMA,CAAkB,CAMpB,YAIAC,EAIAC,EAOAC,EAQAC,EAAM,CACF,KAAK,MAAQH,EACb,KAAK,IAAMC,EACX,KAAK,SAAWC,EAChB,KAAK,KAAOC,EAIZ,KAAK,eAAiB,CAAA,EAItB,KAAK,iBAAmB,EAC5B,CAKA,YAAYC,EAAO,CACf,IAAIC,EAAQC,EAAAA,WAAW,KAAK,KAAK,EAAE,aAAa,KAAK,IAAK,EAAE,EAC5D,KAAOD,GAASD,EAAM,QAAQC,EAAM,IAAI,EAAI,GACxCA,EAAQA,EAAM,OAClB,OAAOA,EAAQ,CAAE,KAAMA,EAAM,KAAM,GAAI,KAAK,IACxC,KAAM,KAAK,MAAM,SAASA,EAAM,KAAM,KAAK,GAAG,EAC9C,KAAMA,EAAM,IAAI,EAAK,IAC7B,CAKA,YAAYE,EAAM,CACd,IAAIC,EAAO,KAAK,MAAM,IAAI,OAAO,KAAK,GAAG,EACrCC,EAAQ,KAAK,IAAID,EAAK,KAAM,KAAK,IAAM,GAAG,EAC1CE,EAAMF,EAAK,KAAK,MAAMC,EAAQD,EAAK,KAAM,KAAK,IAAMA,EAAK,IAAI,EAC7DG,EAAQD,EAAI,OAAOE,GAAaL,EAAM,EAAK,CAAC,EAChD,OAAOI,E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E,IAAK,QAAS,IAAKA,CAAe,EACpC,CAAE,IAAK,QAAS,IAAKA,CAAe,EACpC,CAAE,IAAK,SAAU,IAAKC,EAAe,EACrC,CAAE,IAAK,YAAa,IAAkBR,EAAwB,EAAI,CAAC,EACnE,CAAE,IAAK,UAAW,IAAkBA,EAAwB,EAAK,CAAC,EAClE,CAAE,IAAK,WAAY,IAAkBA,EAAwB,GAAM,MAAM,CAAC,EAC1E,CAAE,IAAK,SAAU,IAAkBA,EAAwB,GAAO,MAAM,CAAC,EACzE,CAAE,IAAK,QAAS,IAAKM,EAAgB,CACzC,EACM0H,GAAmCpG,EAAAA,KAAK,QAAqBqD,EAAAA,OAAO,SAAS,CAAClN,CAAgB,EAAG7F,GAASA,EAAM,MAAM6F,CAAgB,EAAE,cAAgB,CAACkQ,EAAgB,EAAI,CAAA,CAAE,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@codemirror/autocomplete/dist/index.js"],"sourcesContent":["import { Annotation, StateEffect, EditorSelection, codePointAt, codePointSize, fromCodePoint, Facet, combineConfig, StateField, Prec, Transaction, Text, MapMode, RangeValue, RangeSet, CharCategory } from '@codemirror/state';\nimport { Direction, logException, showTooltip, EditorView, ViewPlugin, getTooltip, Decoration, WidgetType, keymap } from '@codemirror/view';\nimport { syntaxTree, indentUnit } from '@codemirror/language';\n\n/**\nAn instance of this is passed to completion source functions.\n*/\nclass CompletionContext {\n /**\n Create a new completion context. (Mostly useful for testing\n completion sources—in the editor, the extension will create\n these for you.)\n */\n constructor(\n /**\n The editor state that the completion happens in.\n */\n state, \n /**\n The position at which the completion is happening.\n */\n pos, \n /**\n Indicates whether completion was activated explicitly, or\n implicitly by typing. The usual way to respond to this is to\n only return completions when either there is part of a\n completable entity before the cursor, or `explicit` is true.\n */\n explicit, \n /**\n The editor view. May be undefined if the context was created\n in a situation where there is no such view available, such as\n in synchronous updates via\n [`CompletionResult.update`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.update)\n or when called by test code.\n */\n view) {\n this.state = state;\n this.pos = pos;\n this.explicit = explicit;\n this.view = view;\n /**\n @internal\n */\n this.abortListeners = [];\n /**\n @internal\n */\n this.abortOnDocChange = false;\n }\n /**\n Get the extent, content, and (if there is a token) type of the\n token before `this.pos`.\n */\n tokenBefore(types) {\n let token = syntaxTree(this.state).resolveInner(this.pos, -1);\n while (token && types.indexOf(token.name) < 0)\n token = token.parent;\n return token ? { from: token.from, to: this.pos,\n text: this.state.sliceDoc(token.from, this.pos),\n type: token.type } : null;\n }\n /**\n Get the match of the given expression directly before the\n cursor.\n */\n matchBefore(expr) {\n let line = this.state.doc.lineAt(this.pos);\n let start = Math.max(line.from, this.pos - 250);\n let str = line.text.slice(start - line.from, this.pos - line.from);\n let found = str.search(ensureAnchor(expr, false));\n return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };\n }\n /**\n Yields true when the query has been aborted. Can be useful in\n asynchronous queries to avoid doing work that will be ignored.\n */\n get aborted() { return this.abortListeners == null; }\n /**\n Allows you to register abort handlers, which will be called when\n the query is\n [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).\n \n By default, running queries will not be aborted for regular\n typing or backspacing, on the assumption that they are likely to\n return a result with a\n [`validFor`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.validFor) field that\n allows the result to be used after all. Passing `onDocChange:\n true` will cause this query to be aborted for any document\n change.\n */\n addEventListener(type, listener, options) {\n if (type == \"abort\" && this.abortListeners) {\n this.abortListeners.push(listener);\n if (options && options.onDocChange)\n this.abortOnDocChange = true;\n }\n }\n}\nfunction toSet(chars) {\n let flat = Object.keys(chars).join(\"\");\n let words = /\\w/.test(flat);\n if (words)\n flat = flat.replace(/\\w/g, \"\");\n return `[${words ? \"\\\\w\" : \"\"}${flat.replace(/[^\\w\\s]/g, \"\\\\$&\")}]`;\n}\nfunction prefixMatch(options) {\n let first = Object.create(null), rest = Object.create(null);\n for (let { label } of options) {\n first[label[0]] = true;\n for (let i = 1; i < label.length; i++)\n rest[label[i]] = true;\n }\n let source = toSet(first) + toSet(rest) + \"*$\";\n return [new RegExp(\"^\" + source), new RegExp(source)];\n}\n/**\nGiven a a fixed array of options, return an autocompleter that\ncompletes them.\n*/\nfunction completeFromList(list) {\n let options = list.map(o => typeof o == \"string\" ? { label: o } : o);\n let [validFor, match] = options.every(o => /^\\w+$/.test(o.label)) ? [/\\w*$/, /\\w+$/] : prefixMatch(options);\n return (context) => {\n let token = context.matchBefore(match);\n return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;\n };\n}\n/**\nWrap the given completion source so that it will only fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return source(context);\n if (pos.type.isTop)\n break;\n }\n return null;\n };\n}\n/**\nWrap the given completion source so that it will not fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifNotIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return null;\n if (pos.type.isTop)\n break;\n }\n return source(context);\n };\n}\nclass Option {\n constructor(completion, source, match, score) {\n this.completion = completion;\n this.source = source;\n this.match = match;\n this.score = score;\n }\n}\nfunction cur(state) { return state.selection.main.from; }\n// Make sure the given regexp has a $ at its end and, if `start` is\n// true, a ^ at its start.\nfunction ensureAnchor(expr, start) {\n var _a;\n let { source } = expr;\n let addStart = start && source[0] != \"^\", addEnd = source[source.length - 1] != \"$\";\n if (!addStart && !addEnd)\n return expr;\n return new RegExp(`${addStart ? \"^\" : \"\"}(?:${source})${addEnd ? \"$\" : \"\"}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? \"i\" : \"\"));\n}\n/**\nThis annotation is added to transactions that are produced by\npicking a completion.\n*/\nconst pickedCompletion = /*@__PURE__*/Annotation.define();\n/**\nHelper function that returns a transaction spec which inserts a\ncompletion's text in the main selection range, and any other\nselection range that has the same text in front of it.\n*/\nfunction insertCompletionText(state, text, from, to) {\n let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;\n return {\n ...state.changeByRange(range => {\n if (range != main && from != to &&\n state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))\n return { range };\n let lines = state.toText(text);\n return {\n changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: lines },\n range: EditorSelection.cursor(range.from + fromOff + lines.length)\n };\n }),\n scrollIntoView: true,\n userEvent: \"input.complete\"\n };\n}\nconst SourceCache = /*@__PURE__*/new WeakMap();\nfunction asSource(source) {\n if (!Array.isArray(source))\n return source;\n let known = SourceCache.get(source);\n if (!known)\n SourceCache.set(source, known = completeFromList(source));\n return known;\n}\nconst startCompletionEffect = /*@__PURE__*/StateEffect.define();\nconst closeCompletionEffect = /*@__PURE__*/StateEffect.define();\n\n// A pattern matcher for fuzzy completion matching. Create an instance\n// once for a pattern, and then use that to match any number of\n// completions.\nclass FuzzyMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.chars = [];\n this.folded = [];\n // Buffers reused by calls to `match` to track matched character\n // positions.\n this.any = [];\n this.precise = [];\n this.byWord = [];\n this.score = 0;\n this.matched = [];\n for (let p = 0; p < pattern.length;) {\n let char = codePointAt(pattern, p), size = codePointSize(char);\n this.chars.push(char);\n let part = pattern.slice(p, p + size), upper = part.toUpperCase();\n this.folded.push(codePointAt(upper == part ? part.toLowerCase() : upper, 0));\n p += size;\n }\n this.astral = pattern.length != this.chars.length;\n }\n ret(score, matched) {\n this.score = score;\n this.matched = matched;\n return this;\n }\n // Matches a given word (completion) against the pattern (input).\n // Will return a boolean indicating whether there was a match and,\n // on success, set `this.score` to the score, `this.matched` to an\n // array of `from, to` pairs indicating the matched parts of `word`.\n //\n // The score is a number that is more negative the worse the match\n // is. See `Penalty` above.\n match(word) {\n if (this.pattern.length == 0)\n return this.ret(-100 /* Penalty.NotFull */, []);\n if (word.length < this.pattern.length)\n return null;\n let { chars, folded, any, precise, byWord } = this;\n // For single-character queries, only match when they occur right\n // at the start\n if (chars.length == 1) {\n let first = codePointAt(word, 0), firstSize = codePointSize(first);\n let score = firstSize == word.length ? 0 : -100 /* Penalty.NotFull */;\n if (first == chars[0]) ;\n else if (first == folded[0])\n score += -200 /* Penalty.CaseFold */;\n else\n return null;\n return this.ret(score, [0, firstSize]);\n }\n let direct = word.indexOf(this.pattern);\n if (direct == 0)\n return this.ret(word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */, [0, this.pattern.length]);\n let len = chars.length, anyTo = 0;\n if (direct < 0) {\n for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {\n let next = codePointAt(word, i);\n if (next == chars[anyTo] || next == folded[anyTo])\n any[anyTo++] = i;\n i += codePointSize(next);\n }\n // No match, exit immediately\n if (anyTo < len)\n return null;\n }\n // This tracks the extent of the precise (non-folded, not\n // necessarily adjacent) match\n let preciseTo = 0;\n // Tracks whether there is a match that hits only characters that\n // appear to be starting words. `byWordFolded` is set to true when\n // a case folded character is encountered in such a match\n let byWordTo = 0, byWordFolded = false;\n // If we've found a partial adjacent match, these track its state\n let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;\n let hasLower = /[a-z]/.test(word), wordAdjacent = true;\n // Go over the option's text, scanning for the various kinds of matches\n for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* Tp.NonWord */; i < e && byWordTo < len;) {\n let next = codePointAt(word, i);\n if (direct < 0) {\n if (preciseTo < len && next == chars[preciseTo])\n precise[preciseTo++] = i;\n if (adjacentTo < len) {\n if (next == chars[adjacentTo] || next == folded[adjacentTo]) {\n if (adjacentTo == 0)\n adjacentStart = i;\n adjacentEnd = i + 1;\n adjacentTo++;\n }\n else {\n adjacentTo = 0;\n }\n }\n }\n let ch, type = next < 0xff\n ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Tp.Lower */ : next >= 65 && next <= 90 ? 1 /* Tp.Upper */ : 0 /* Tp.NonWord */)\n : ((ch = fromCodePoint(next)) != ch.toLowerCase() ? 1 /* Tp.Upper */ : ch != ch.toUpperCase() ? 2 /* Tp.Lower */ : 0 /* Tp.NonWord */);\n if (!i || type == 1 /* Tp.Upper */ && hasLower || prevType == 0 /* Tp.NonWord */ && type != 0 /* Tp.NonWord */) {\n if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))\n byWord[byWordTo++] = i;\n else if (byWord.length)\n wordAdjacent = false;\n }\n prevType = type;\n i += codePointSize(next);\n }\n if (byWordTo == len && byWord[0] == 0 && wordAdjacent)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0), byWord, word);\n if (adjacentTo == len && adjacentStart == 0)\n return this.ret(-200 /* Penalty.CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* Penalty.NotFull */), [0, adjacentEnd]);\n if (direct > -1)\n return this.ret(-700 /* Penalty.NotStart */ - word.length, [direct, direct + this.pattern.length]);\n if (adjacentTo == len)\n return this.ret(-200 /* Penalty.CaseFold */ + -700 /* Penalty.NotStart */ - word.length, [adjacentStart, adjacentEnd]);\n if (byWordTo == len)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0) + -700 /* Penalty.NotStart */ +\n (wordAdjacent ? 0 : -1100 /* Penalty.Gap */), byWord, word);\n return chars.length == 2 ? null\n : this.result((any[0] ? -700 /* Penalty.NotStart */ : 0) + -200 /* Penalty.CaseFold */ + -1100 /* Penalty.Gap */, any, word);\n }\n result(score, positions, word) {\n let result = [], i = 0;\n for (let pos of positions) {\n let to = pos + (this.astral ? codePointSize(codePointAt(word, pos)) : 1);\n if (i && result[i - 1] == pos)\n result[i - 1] = to;\n else {\n result[i++] = pos;\n result[i++] = to;\n }\n }\n return this.ret(score - word.length, result);\n }\n}\nclass StrictMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.matched = [];\n this.score = 0;\n this.folded = pattern.toLowerCase();\n }\n match(word) {\n if (word.length < this.pattern.length)\n return null;\n let start = word.slice(0, this.pattern.length);\n let match = start == this.pattern ? 0 : start.toLowerCase() == this.folded ? -200 /* Penalty.CaseFold */ : null;\n if (match == null)\n return null;\n this.matched = [0, start.length];\n this.score = match + (word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */);\n return this;\n }\n}\n\nconst completionConfig = /*@__PURE__*/Facet.define({\n combine(configs) {\n return combineConfig(configs, {\n activateOnTyping: true,\n activateOnCompletion: () => false,\n activateOnTypingDelay: 100,\n selectOnOpen: true,\n override: null,\n closeOnBlur: true,\n maxRenderedOptions: 100,\n defaultKeymap: true,\n tooltipClass: () => \"\",\n optionClass: () => \"\",\n aboveCursor: false,\n icons: true,\n addToOptions: [],\n positionInfo: defaultPositionInfo,\n filterStrict: false,\n compareCompletions: (a, b) => (a.sortText || a.label).localeCompare(b.sortText || b.label),\n interactionDelay: 75,\n updateSyncTime: 100\n }, {\n defaultKeymap: (a, b) => a && b,\n closeOnBlur: (a, b) => a && b,\n icons: (a, b) => a && b,\n tooltipClass: (a, b) => c => joinClass(a(c), b(c)),\n optionClass: (a, b) => c => joinClass(a(c), b(c)),\n addToOptions: (a, b) => a.concat(b),\n filterStrict: (a, b) => a || b,\n });\n }\n});\nfunction joinClass(a, b) {\n return a ? b ? a + \" \" + b : a : b;\n}\nfunction defaultPositionInfo(view, list, option, info, space, tooltip) {\n let rtl = view.textDirection == Direction.RTL, left = rtl, narrow = false;\n let side = \"top\", offset, maxWidth;\n let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;\n let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;\n if (left && spaceLeft < Math.min(infoWidth, spaceRight))\n left = false;\n else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))\n left = true;\n if (infoWidth <= (left ? spaceLeft : spaceRight)) {\n offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;\n maxWidth = Math.min(400 /* Info.Width */, left ? spaceLeft : spaceRight);\n }\n else {\n narrow = true;\n maxWidth = Math.min(400 /* Info.Width */, (rtl ? list.right : space.right - list.left) - 30 /* Info.Margin */);\n let spaceBelow = space.bottom - list.bottom;\n if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion\n offset = option.bottom - list.top;\n }\n else { // Above it\n side = \"bottom\";\n offset = list.bottom - option.top;\n }\n }\n let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;\n let scaleX = (list.right - list.left) / tooltip.offsetWidth;\n return {\n style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,\n class: \"cm-completionInfo-\" + (narrow ? (rtl ? \"left-narrow\" : \"right-narrow\") : left ? \"left\" : \"right\")\n };\n}\n\nconst setSelectedEffect = /*@__PURE__*/StateEffect.define();\nfunction optionContent(config) {\n let content = config.addToOptions.slice();\n if (config.icons)\n content.push({\n render(completion) {\n let icon = document.createElement(\"div\");\n icon.classList.add(\"cm-completionIcon\");\n if (completion.type)\n icon.classList.add(...completion.type.split(/\\s+/g).map(cls => \"cm-completionIcon-\" + cls));\n icon.setAttribute(\"aria-hidden\", \"true\");\n return icon;\n },\n position: 20\n });\n content.push({\n render(completion, _s, _v, match) {\n let labelElt = document.createElement(\"span\");\n labelElt.className = \"cm-completionLabel\";\n let label = completion.displayLabel || completion.label, off = 0;\n for (let j = 0; j < match.length;) {\n let from = match[j++], to = match[j++];\n if (from > off)\n labelElt.appendChild(document.createTextNode(label.slice(off, from)));\n let span = labelElt.appendChild(document.createElement(\"span\"));\n span.appendChild(document.createTextNode(label.slice(from, to)));\n span.className = \"cm-completionMatchedText\";\n off = to;\n }\n if (off < label.length)\n labelElt.appendChild(document.createTextNode(label.slice(off)));\n return labelElt;\n },\n position: 50\n }, {\n render(completion) {\n if (!completion.detail)\n return null;\n let detailElt = document.createElement(\"span\");\n detailElt.className = \"cm-completionDetail\";\n detailElt.textContent = completion.detail;\n return detailElt;\n },\n position: 80\n });\n return content.sort((a, b) => a.position - b.position).map(a => a.render);\n}\nfunction rangeAroundSelected(total, selected, max) {\n if (total <= max)\n return { from: 0, to: total };\n if (selected < 0)\n selected = 0;\n if (selected <= (total >> 1)) {\n let off = Math.floor(selected / max);\n return { from: off * max, to: (off + 1) * max };\n }\n let off = Math.ceil((total - selected) / max);\n return { from: total - off * max, to: total - (off - 1) * max };\n}\nclass CompletionTooltip {\n constructor(view, stateField, applyCompletion) {\n this.view = view;\n this.stateField = stateField;\n this.applyCompletion = applyCompletion;\n this.info = null;\n this.infoDestroy = null;\n this.placeInfoReq = {\n read: () => this.measureInfo(),\n write: (pos) => this.placeInfo(pos),\n key: this\n };\n this.space = null;\n this.currentClass = \"\";\n let cState = view.state.field(stateField);\n let { options, selected } = cState.open;\n let config = view.state.facet(completionConfig);\n this.optionContent = optionContent(config);\n this.optionClass = config.optionClass;\n this.tooltipClass = config.tooltipClass;\n this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-tooltip-autocomplete\";\n this.updateTooltipClass(view.state);\n this.dom.addEventListener(\"mousedown\", (e) => {\n let { options } = view.state.field(stateField).open;\n for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {\n if (dom.nodeName == \"LI\" && (match = /-(\\d+)$/.exec(dom.id)) && +match[1] < options.length) {\n this.applyCompletion(view, options[+match[1]]);\n e.preventDefault();\n return;\n }\n }\n if (e.target == this.list) {\n let move = this.list.classList.contains(\"cm-completionListIncompleteTop\") &&\n e.clientY < this.list.firstChild.getBoundingClientRect().top ? this.range.from - 1 :\n this.list.classList.contains(\"cm-completionListIncompleteBottom\") &&\n e.clientY > this.list.lastChild.getBoundingClientRect().bottom ? this.range.to : null;\n if (move != null) {\n view.dispatch({ effects: setSelectedEffect.of(move) });\n e.preventDefault();\n }\n }\n });\n this.dom.addEventListener(\"focusout\", (e) => {\n let state = view.state.field(this.stateField, false);\n if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&\n e.relatedTarget != view.contentDOM)\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n });\n this.showOptions(options, cState.id);\n }\n mount() { this.updateSel(); }\n showOptions(options, id) {\n if (this.list)\n this.list.remove();\n this.list = this.dom.appendChild(this.createListBox(options, id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n update(update) {\n var _a;\n let cState = update.state.field(this.stateField);\n let prevState = update.startState.field(this.stateField);\n this.updateTooltipClass(update.state);\n if (cState != prevState) {\n let { options, selected, disabled } = cState.open;\n if (!prevState.open || prevState.open.options != options) {\n this.range = rangeAroundSelected(options.length, selected, update.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(options, cState.id);\n }\n this.updateSel();\n if (disabled != ((_a = prevState.open) === null || _a === void 0 ? void 0 : _a.disabled))\n this.dom.classList.toggle(\"cm-tooltip-autocomplete-disabled\", !!disabled);\n }\n }\n updateTooltipClass(state) {\n let cls = this.tooltipClass(state);\n if (cls != this.currentClass) {\n for (let c of this.currentClass.split(\" \"))\n if (c)\n this.dom.classList.remove(c);\n for (let c of cls.split(\" \"))\n if (c)\n this.dom.classList.add(c);\n this.currentClass = cls;\n }\n }\n positioned(space) {\n this.space = space;\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSel() {\n let cState = this.view.state.field(this.stateField), open = cState.open;\n if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {\n this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(open.options, cState.id);\n }\n let newSel = this.updateSelectedOption(open.selected);\n if (newSel) {\n this.destroyInfo();\n let { completion } = open.options[open.selected];\n let { info } = completion;\n if (!info)\n return;\n let infoResult = typeof info === \"string\" ? document.createTextNode(info) : info(completion);\n if (!infoResult)\n return;\n if (\"then\" in infoResult) {\n infoResult.then(obj => {\n if (obj && this.view.state.field(this.stateField, false) == cState)\n this.addInfoPane(obj, completion);\n }).catch(e => logException(this.view.state, e, \"completion info\"));\n }\n else {\n this.addInfoPane(infoResult, completion);\n newSel.setAttribute(\"aria-describedby\", this.info.id);\n }\n }\n }\n addInfoPane(content, completion) {\n this.destroyInfo();\n let wrap = this.info = document.createElement(\"div\");\n wrap.className = \"cm-tooltip cm-completionInfo\";\n wrap.id = \"cm-completionInfo-\" + Math.floor(Math.random() * 0xffff).toString(16);\n if (content.nodeType != null) {\n wrap.appendChild(content);\n this.infoDestroy = null;\n }\n else {\n let { dom, destroy } = content;\n wrap.appendChild(dom);\n this.infoDestroy = destroy || null;\n }\n this.dom.appendChild(wrap);\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSelectedOption(selected) {\n let set = null;\n for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {\n if (opt.nodeName != \"LI\" || !opt.id) {\n i--; // A section header\n }\n else if (i == selected) {\n if (!opt.hasAttribute(\"aria-selected\")) {\n opt.setAttribute(\"aria-selected\", \"true\");\n set = opt;\n }\n }\n else {\n if (opt.hasAttribute(\"aria-selected\")) {\n opt.removeAttribute(\"aria-selected\");\n opt.removeAttribute(\"aria-describedby\");\n }\n }\n }\n if (set)\n scrollIntoView(this.list, set);\n return set;\n }\n measureInfo() {\n let sel = this.dom.querySelector(\"[aria-selected]\");\n if (!sel || !this.info)\n return null;\n let listRect = this.dom.getBoundingClientRect();\n let infoRect = this.info.getBoundingClientRect();\n let selRect = sel.getBoundingClientRect();\n let space = this.space;\n if (!space) {\n let docElt = this.dom.ownerDocument.documentElement;\n space = { left: 0, top: 0, right: docElt.clientWidth, bottom: docElt.clientHeight };\n }\n if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||\n selRect.bottom < Math.max(space.top, listRect.top) + 10)\n return null;\n return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space, this.dom);\n }\n placeInfo(pos) {\n if (this.info) {\n if (pos) {\n if (pos.style)\n this.info.style.cssText = pos.style;\n this.info.className = \"cm-tooltip cm-completionInfo \" + (pos.class || \"\");\n }\n else {\n this.info.style.cssText = \"top: -1e6px\";\n }\n }\n }\n createListBox(options, id, range) {\n const ul = document.createElement(\"ul\");\n ul.id = id;\n ul.setAttribute(\"role\", \"listbox\");\n ul.setAttribute(\"aria-expanded\", \"true\");\n ul.setAttribute(\"aria-label\", this.view.state.phrase(\"Completions\"));\n ul.addEventListener(\"mousedown\", e => {\n // Prevent focus change when clicking the scrollbar\n if (e.target == ul)\n e.preventDefault();\n });\n let curSection = null;\n for (let i = range.from; i < range.to; i++) {\n let { completion, match } = options[i], { section } = completion;\n if (section) {\n let name = typeof section == \"string\" ? section : section.name;\n if (name != curSection && (i > range.from || range.from == 0)) {\n curSection = name;\n if (typeof section != \"string\" && section.header) {\n ul.appendChild(section.header(section));\n }\n else {\n let header = ul.appendChild(document.createElement(\"completion-section\"));\n header.textContent = name;\n }\n }\n }\n const li = ul.appendChild(document.createElement(\"li\"));\n li.id = id + \"-\" + i;\n li.setAttribute(\"role\", \"option\");\n let cls = this.optionClass(completion);\n if (cls)\n li.className = cls;\n for (let source of this.optionContent) {\n let node = source(completion, this.view.state, this.view, match);\n if (node)\n li.appendChild(node);\n }\n }\n if (range.from)\n ul.classList.add(\"cm-completionListIncompleteTop\");\n if (range.to < options.length)\n ul.classList.add(\"cm-completionListIncompleteBottom\");\n return ul;\n }\n destroyInfo() {\n if (this.info) {\n if (this.infoDestroy)\n this.infoDestroy();\n this.info.remove();\n this.info = null;\n }\n }\n destroy() {\n this.destroyInfo();\n }\n}\nfunction completionTooltip(stateField, applyCompletion) {\n return (view) => new CompletionTooltip(view, stateField, applyCompletion);\n}\nfunction scrollIntoView(container, element) {\n let parent = container.getBoundingClientRect();\n let self = element.getBoundingClientRect();\n let scaleY = parent.height / container.offsetHeight;\n if (self.top < parent.top)\n container.scrollTop -= (parent.top - self.top) / scaleY;\n else if (self.bottom > parent.bottom)\n container.scrollTop += (self.bottom - parent.bottom) / scaleY;\n}\n\n// Used to pick a preferred option when two options with the same\n// label occur in the result.\nfunction score(option) {\n return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +\n (option.type ? 1 : 0);\n}\nfunction sortOptions(active, state) {\n let options = [];\n let sections = null, dynamicSectionScore = null;\n let addOption = (option) => {\n options.push(option);\n let { section } = option.completion;\n if (section) {\n if (!sections)\n sections = [];\n let name = typeof section == \"string\" ? section : section.name;\n if (!sections.some(s => s.name == name))\n sections.push(typeof section == \"string\" ? { name } : section);\n }\n };\n let conf = state.facet(completionConfig);\n for (let a of active)\n if (a.hasResult()) {\n let getMatch = a.result.getMatch;\n if (a.result.filter === false) {\n for (let option of a.result.options) {\n addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));\n }\n }\n else {\n let pattern = state.sliceDoc(a.from, a.to), match;\n let matcher = conf.filterStrict ? new StrictMatcher(pattern) : new FuzzyMatcher(pattern);\n for (let option of a.result.options)\n if (match = matcher.match(option.label)) {\n let matched = !option.displayLabel ? match.matched : getMatch ? getMatch(option, match.matched) : [];\n let score = match.score + (option.boost || 0);\n addOption(new Option(option, a.source, matched, score));\n if (typeof option.section == \"object\" && option.section.rank === \"dynamic\") {\n let { name } = option.section;\n if (!dynamicSectionScore)\n dynamicSectionScore = Object.create(null);\n dynamicSectionScore[name] = Math.max(score, dynamicSectionScore[name] || -1e9);\n }\n }\n }\n }\n if (sections) {\n let sectionOrder = Object.create(null), pos = 0;\n let cmp = (a, b) => {\n return (a.rank === \"dynamic\" && b.rank === \"dynamic\" ? dynamicSectionScore[b.name] - dynamicSectionScore[a.name] : 0) ||\n (typeof a.rank == \"number\" ? a.rank : 1e9) - (typeof b.rank == \"number\" ? b.rank : 1e9) ||\n (a.name < b.name ? -1 : 1);\n };\n for (let s of sections.sort(cmp)) {\n pos -= 1e5;\n sectionOrder[s.name] = pos;\n }\n for (let option of options) {\n let { section } = option.completion;\n if (section)\n option.score += sectionOrder[typeof section == \"string\" ? section : section.name];\n }\n }\n let result = [], prev = null;\n let compare = conf.compareCompletions;\n for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {\n let cur = opt.completion;\n if (!prev || prev.label != cur.label || prev.detail != cur.detail ||\n (prev.type != null && cur.type != null && prev.type != cur.type) ||\n prev.apply != cur.apply || prev.boost != cur.boost)\n result.push(opt);\n else if (score(opt.completion) > score(prev))\n result[result.length - 1] = opt;\n prev = opt.completion;\n }\n return result;\n}\nclass CompletionDialog {\n constructor(options, attrs, tooltip, timestamp, selected, disabled) {\n this.options = options;\n this.attrs = attrs;\n this.tooltip = tooltip;\n this.timestamp = timestamp;\n this.selected = selected;\n this.disabled = disabled;\n }\n setSelected(selected, id) {\n return selected == this.selected || selected >= this.options.length ? this\n : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);\n }\n static build(active, state, id, prev, conf, didSetActive) {\n if (prev && !didSetActive && active.some(s => s.isPending))\n return prev.setDisabled();\n let options = sortOptions(active, state);\n if (!options.length)\n return prev && active.some(a => a.isPending) ? prev.setDisabled() : null;\n let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;\n if (prev && prev.selected != selected && prev.selected != -1) {\n let selectedValue = prev.options[prev.selected].completion;\n for (let i = 0; i < options.length; i++)\n if (options[i].completion == selectedValue) {\n selected = i;\n break;\n }\n }\n return new CompletionDialog(options, makeAttrs(id, selected), {\n pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),\n create: createTooltip,\n above: conf.aboveCursor,\n }, prev ? prev.timestamp : Date.now(), selected, false);\n }\n map(changes) {\n return new CompletionDialog(this.options, this.attrs, { ...this.tooltip, pos: changes.mapPos(this.tooltip.pos) }, this.timestamp, this.selected, this.disabled);\n }\n setDisabled() {\n return new CompletionDialog(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, true);\n }\n}\nclass CompletionState {\n constructor(active, id, open) {\n this.active = active;\n this.id = id;\n this.open = open;\n }\n static start() {\n return new CompletionState(none, \"cm-ac-\" + Math.floor(Math.random() * 2e6).toString(36), null);\n }\n update(tr) {\n let { state } = tr, conf = state.facet(completionConfig);\n let sources = conf.override ||\n state.languageDataAt(\"autocomplete\", cur(state)).map(asSource);\n let active = sources.map(source => {\n let value = this.active.find(s => s.source == source) ||\n new ActiveSource(source, this.active.some(a => a.state != 0 /* State.Inactive */) ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n return value.update(tr, conf);\n });\n if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))\n active = this.active;\n let open = this.open, didSet = tr.effects.some(e => e.is(setActiveEffect));\n if (open && tr.docChanged)\n open = open.map(tr.changes);\n if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||\n !sameResults(active, this.active) || didSet)\n open = CompletionDialog.build(active, state, this.id, open, conf, didSet);\n else if (open && open.disabled && !active.some(a => a.isPending))\n open = null;\n if (!open && active.every(a => !a.isPending) && active.some(a => a.hasResult()))\n active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* State.Inactive */) : a);\n for (let effect of tr.effects)\n if (effect.is(setSelectedEffect))\n open = open && open.setSelected(effect.value, this.id);\n return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);\n }\n get tooltip() { return this.open ? this.open.tooltip : null; }\n get attrs() { return this.open ? this.open.attrs : this.active.length ? baseAttrs : noAttrs; }\n}\nfunction sameResults(a, b) {\n if (a == b)\n return true;\n for (let iA = 0, iB = 0;;) {\n while (iA < a.length && !a[iA].hasResult())\n iA++;\n while (iB < b.length && !b[iB].hasResult())\n iB++;\n let endA = iA == a.length, endB = iB == b.length;\n if (endA || endB)\n return endA == endB;\n if (a[iA++].result != b[iB++].result)\n return false;\n }\n}\nconst baseAttrs = {\n \"aria-autocomplete\": \"list\"\n};\nconst noAttrs = {};\nfunction makeAttrs(id, selected) {\n let result = {\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": id\n };\n if (selected > -1)\n result[\"aria-activedescendant\"] = id + \"-\" + selected;\n return result;\n}\nconst none = [];\nfunction getUpdateType(tr, conf) {\n if (tr.isUserEvent(\"input.complete\")) {\n let completion = tr.annotation(pickedCompletion);\n if (completion && conf.activateOnCompletion(completion))\n return 4 /* UpdateType.Activate */ | 8 /* UpdateType.Reset */;\n }\n let typing = tr.isUserEvent(\"input.type\");\n return typing && conf.activateOnTyping ? 4 /* UpdateType.Activate */ | 1 /* UpdateType.Typing */\n : typing ? 1 /* UpdateType.Typing */\n : tr.isUserEvent(\"delete.backward\") ? 2 /* UpdateType.Backspacing */\n : tr.selection ? 8 /* UpdateType.Reset */\n : tr.docChanged ? 16 /* UpdateType.ResetIfTouching */ : 0 /* UpdateType.None */;\n}\nclass ActiveSource {\n constructor(source, state, explicit = false) {\n this.source = source;\n this.state = state;\n this.explicit = explicit;\n }\n hasResult() { return false; }\n get isPending() { return this.state == 1 /* State.Pending */; }\n update(tr, conf) {\n let type = getUpdateType(tr, conf), value = this;\n if ((type & 8 /* UpdateType.Reset */) || (type & 16 /* UpdateType.ResetIfTouching */) && this.touches(tr))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n if ((type & 4 /* UpdateType.Activate */) && value.state == 0 /* State.Inactive */)\n value = new ActiveSource(this.source, 1 /* State.Pending */);\n value = value.updateFor(tr, type);\n for (let effect of tr.effects) {\n if (effect.is(startCompletionEffect))\n value = new ActiveSource(value.source, 1 /* State.Pending */, effect.value);\n else if (effect.is(closeCompletionEffect))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n else if (effect.is(setActiveEffect))\n for (let active of effect.value)\n if (active.source == value.source)\n value = active;\n }\n return value;\n }\n updateFor(tr, type) { return this.map(tr.changes); }\n map(changes) { return this; }\n touches(tr) {\n return tr.changes.touchesRange(cur(tr.state));\n }\n}\nclass ActiveResult extends ActiveSource {\n constructor(source, explicit, limit, result, from, to) {\n super(source, 3 /* State.Result */, explicit);\n this.limit = limit;\n this.result = result;\n this.from = from;\n this.to = to;\n }\n hasResult() { return true; }\n updateFor(tr, type) {\n var _a;\n if (!(type & 3 /* UpdateType.SimpleInteraction */))\n return this.map(tr.changes);\n let result = this.result;\n if (result.map && !tr.changes.empty)\n result = result.map(result, tr.changes);\n let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);\n let pos = cur(tr.state);\n if (pos > to || !result ||\n (type & 2 /* UpdateType.Backspacing */) && (cur(tr.startState) == this.from || pos < this.limit))\n return new ActiveSource(this.source, type & 4 /* UpdateType.Activate */ ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n let limit = tr.changes.mapPos(this.limit);\n if (checkValid(result.validFor, tr.state, from, to))\n return new ActiveResult(this.source, this.explicit, limit, result, from, to);\n if (result.update &&\n (result = result.update(result, from, to, new CompletionContext(tr.state, pos, false))))\n return new ActiveResult(this.source, this.explicit, limit, result, result.from, (_a = result.to) !== null && _a !== void 0 ? _a : cur(tr.state));\n return new ActiveSource(this.source, 1 /* State.Pending */, this.explicit);\n }\n map(mapping) {\n if (mapping.empty)\n return this;\n let result = this.result.map ? this.result.map(this.result, mapping) : this.result;\n if (!result)\n return new ActiveSource(this.source, 0 /* State.Inactive */);\n return new ActiveResult(this.source, this.explicit, mapping.mapPos(this.limit), result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));\n }\n touches(tr) {\n return tr.changes.touchesRange(this.from, this.to);\n }\n}\nfunction checkValid(validFor, state, from, to) {\n if (!validFor)\n return false;\n let text = state.sliceDoc(from, to);\n return typeof validFor == \"function\" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);\n}\nconst setActiveEffect = /*@__PURE__*/StateEffect.define({\n map(sources, mapping) { return sources.map(s => s.map(mapping)); }\n});\nconst completionState = /*@__PURE__*/StateField.define({\n create() { return CompletionState.start(); },\n update(value, tr) { return value.update(tr); },\n provide: f => [\n showTooltip.from(f, val => val.tooltip),\n EditorView.contentAttributes.from(f, state => state.attrs)\n ]\n});\nfunction applyCompletion(view, option) {\n const apply = option.completion.apply || option.completion.label;\n let result = view.state.field(completionState).active.find(a => a.source == option.source);\n if (!(result instanceof ActiveResult))\n return false;\n if (typeof apply == \"string\")\n view.dispatch({\n ...insertCompletionText(view.state, apply, result.from, result.to),\n annotations: pickedCompletion.of(option.completion)\n });\n else\n apply(view, option.completion, result.from, result.to);\n return true;\n}\nconst createTooltip = /*@__PURE__*/completionTooltip(completionState, applyCompletion);\n\n/**\nReturns a command that moves the completion selection forward or\nbackward by the given amount.\n*/\nfunction moveCompletionSelection(forward, by = \"option\") {\n return (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.open || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n let step = 1, tooltip;\n if (by == \"page\" && (tooltip = getTooltip(view, cState.open.tooltip)))\n step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /\n tooltip.dom.querySelector(\"li\").offsetHeight) - 1);\n let { length } = cState.open.options;\n let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;\n if (selected < 0)\n selected = by == \"page\" ? 0 : length - 1;\n else if (selected >= length)\n selected = by == \"page\" ? length - 1 : 0;\n view.dispatch({ effects: setSelectedEffect.of(selected) });\n return true;\n };\n}\n/**\nAccept the current completion.\n*/\nconst acceptCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n return applyCompletion(view, cState.open.options[cState.open.selected]);\n};\n/**\nExplicitly start autocompletion.\n*/\nconst startCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState)\n return false;\n view.dispatch({ effects: startCompletionEffect.of(true) });\n return true;\n};\n/**\nClose the currently active completion.\n*/\nconst closeCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.active.some(a => a.state != 0 /* State.Inactive */))\n return false;\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n return true;\n};\nclass RunningQuery {\n constructor(active, context) {\n this.active = active;\n this.context = context;\n this.time = Date.now();\n this.updates = [];\n // Note that 'undefined' means 'not done yet', whereas 'null' means\n // 'query returned null'.\n this.done = undefined;\n }\n}\nconst MaxUpdateCount = 50, MinAbortTime = 1000;\nconst completionPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.debounceUpdate = -1;\n this.running = [];\n this.debounceAccept = -1;\n this.pendingStart = false;\n this.composing = 0 /* CompositionState.None */;\n for (let active of view.state.field(completionState).active)\n if (active.isPending)\n this.startQuery(active);\n }\n update(update) {\n let cState = update.state.field(completionState);\n let conf = update.state.facet(completionConfig);\n if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)\n return;\n let doesReset = update.transactions.some(tr => {\n let type = getUpdateType(tr, conf);\n return (type & 8 /* UpdateType.Reset */) || (tr.selection || tr.docChanged) && !(type & 3 /* UpdateType.SimpleInteraction */);\n });\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (doesReset ||\n query.context.abortOnDocChange && update.docChanged ||\n query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {\n for (let handler of query.context.abortListeners) {\n try {\n handler();\n }\n catch (e) {\n logException(this.view.state, e);\n }\n }\n query.context.abortListeners = null;\n this.running.splice(i--, 1);\n }\n else {\n query.updates.push(...update.transactions);\n }\n }\n if (this.debounceUpdate > -1)\n clearTimeout(this.debounceUpdate);\n if (update.transactions.some(tr => tr.effects.some(e => e.is(startCompletionEffect))))\n this.pendingStart = true;\n let delay = this.pendingStart ? 50 : conf.activateOnTypingDelay;\n this.debounceUpdate = cState.active.some(a => a.isPending && !this.running.some(q => q.active.source == a.source))\n ? setTimeout(() => this.startUpdate(), delay) : -1;\n if (this.composing != 0 /* CompositionState.None */)\n for (let tr of update.transactions) {\n if (tr.isUserEvent(\"input.type\"))\n this.composing = 2 /* CompositionState.Changed */;\n else if (this.composing == 2 /* CompositionState.Changed */ && tr.selection)\n this.composing = 3 /* CompositionState.ChangedAndMoved */;\n }\n }\n startUpdate() {\n this.debounceUpdate = -1;\n this.pendingStart = false;\n let { state } = this.view, cState = state.field(completionState);\n for (let active of cState.active) {\n if (active.isPending && !this.running.some(r => r.active.source == active.source))\n this.startQuery(active);\n }\n if (this.running.length && cState.open && cState.open.disabled)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n startQuery(active) {\n let { state } = this.view, pos = cur(state);\n let context = new CompletionContext(state, pos, active.explicit, this.view);\n let pending = new RunningQuery(active, context);\n this.running.push(pending);\n Promise.resolve(active.source(context)).then(result => {\n if (!pending.context.aborted) {\n pending.done = result || null;\n this.scheduleAccept();\n }\n }, err => {\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n logException(this.view.state, err);\n });\n }\n scheduleAccept() {\n if (this.running.every(q => q.done !== undefined))\n this.accept();\n else if (this.debounceAccept < 0)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n // For each finished query in this.running, try to create a result\n // or, if appropriate, restart the query.\n accept() {\n var _a;\n if (this.debounceAccept > -1)\n clearTimeout(this.debounceAccept);\n this.debounceAccept = -1;\n let updated = [];\n let conf = this.view.state.facet(completionConfig), cState = this.view.state.field(completionState);\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (query.done === undefined)\n continue;\n this.running.splice(i--, 1);\n if (query.done) {\n let pos = cur(query.updates.length ? query.updates[0].startState : this.view.state);\n let limit = Math.min(pos, query.done.from + (query.active.explicit ? 0 : 1));\n let active = new ActiveResult(query.active.source, query.active.explicit, limit, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : pos);\n // Replay the transactions that happened since the start of\n // the request and see if that preserves the result\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.hasResult()) {\n updated.push(active);\n continue;\n }\n }\n let current = cState.active.find(a => a.source == query.active.source);\n if (current && current.isPending) {\n if (query.done == null) {\n // Explicitly failed. Should clear the pending status if it\n // hasn't been re-set in the meantime.\n let active = new ActiveSource(query.active.source, 0 /* State.Inactive */);\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (!active.isPending)\n updated.push(active);\n }\n else {\n // Cleared by subsequent transactions. Restart.\n this.startQuery(current);\n }\n }\n }\n if (updated.length || cState.open && cState.open.disabled)\n this.view.dispatch({ effects: setActiveEffect.of(updated) });\n }\n}, {\n eventHandlers: {\n blur(event) {\n let state = this.view.state.field(completionState, false);\n if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {\n let dialog = state.open && getTooltip(this.view, state.open.tooltip);\n if (!dialog || !dialog.dom.contains(event.relatedTarget))\n setTimeout(() => this.view.dispatch({ effects: closeCompletionEffect.of(null) }), 10);\n }\n },\n compositionstart() {\n this.composing = 1 /* CompositionState.Started */;\n },\n compositionend() {\n if (this.composing == 3 /* CompositionState.ChangedAndMoved */) {\n // Safari fires compositionend events synchronously, possibly\n // from inside an update, so dispatch asynchronously to avoid reentrancy\n setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);\n }\n this.composing = 0 /* CompositionState.None */;\n }\n }\n});\nconst windows = typeof navigator == \"object\" && /*@__PURE__*//Win/.test(navigator.platform);\nconst commitCharacters = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.domEventHandlers({\n keydown(event, view) {\n let field = view.state.field(completionState, false);\n if (!field || !field.open || field.open.disabled || field.open.selected < 0 ||\n !event.key || event.key.length > 1 || event.ctrlKey && !(windows && event.altKey) || event.metaKey)\n return false;\n let option = field.open.options[field.open.selected];\n let result = field.active.find(a => a.source == option.source);\n let commitChars = option.completion.commitCharacters || result.result.commitCharacters;\n if (commitChars && commitChars.indexOf(event.key) > -1)\n applyCompletion(view, option);\n return false;\n }\n}));\n\nconst baseTheme = /*@__PURE__*/EditorView.baseTheme({\n \".cm-tooltip.cm-tooltip-autocomplete\": {\n \"& > ul\": {\n fontFamily: \"monospace\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden auto\",\n maxWidth_fallback: \"700px\",\n maxWidth: \"min(700px, 95vw)\",\n minWidth: \"250px\",\n maxHeight: \"10em\",\n height: \"100%\",\n listStyle: \"none\",\n margin: 0,\n padding: 0,\n \"& > li, & > completion-section\": {\n padding: \"1px 3px\",\n lineHeight: 1.2\n },\n \"& > li\": {\n overflowX: \"hidden\",\n textOverflow: \"ellipsis\",\n cursor: \"pointer\"\n },\n \"& > completion-section\": {\n display: \"list-item\",\n borderBottom: \"1px solid silver\",\n paddingLeft: \"0.5em\",\n opacity: 0.7\n }\n }\n },\n \"&light .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#17c\",\n color: \"white\",\n },\n \"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#777\",\n },\n \"&dark .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#347\",\n color: \"white\",\n },\n \"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#444\",\n },\n \".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after\": {\n content: '\"···\"',\n opacity: 0.5,\n display: \"block\",\n textAlign: \"center\",\n cursor: \"pointer\",\n },\n \".cm-tooltip.cm-completionInfo\": {\n position: \"absolute\",\n padding: \"3px 9px\",\n width: \"max-content\",\n maxWidth: `${400 /* Info.Width */}px`,\n boxSizing: \"border-box\",\n whiteSpace: \"pre-line\"\n },\n \".cm-completionInfo.cm-completionInfo-left\": { right: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-right\": { left: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-left-narrow\": { right: `${30 /* Info.Margin */}px` },\n \".cm-completionInfo.cm-completionInfo-right-narrow\": { left: `${30 /* Info.Margin */}px` },\n \"&light .cm-snippetField\": { backgroundColor: \"#00000022\" },\n \"&dark .cm-snippetField\": { backgroundColor: \"#ffffff22\" },\n \".cm-snippetFieldPosition\": {\n verticalAlign: \"text-top\",\n width: 0,\n height: \"1.15em\",\n display: \"inline-block\",\n margin: \"0 -0.7px -.7em\",\n borderLeft: \"1.4px dotted #888\"\n },\n \".cm-completionMatchedText\": {\n textDecoration: \"underline\"\n },\n \".cm-completionDetail\": {\n marginLeft: \"0.5em\",\n fontStyle: \"italic\"\n },\n \".cm-completionIcon\": {\n fontSize: \"90%\",\n width: \".8em\",\n display: \"inline-block\",\n textAlign: \"center\",\n paddingRight: \".6em\",\n opacity: \"0.6\",\n boxSizing: \"content-box\"\n },\n \".cm-completionIcon-function, .cm-completionIcon-method\": {\n \"&:after\": { content: \"'ƒ'\" }\n },\n \".cm-completionIcon-class\": {\n \"&:after\": { content: \"'○'\" }\n },\n \".cm-completionIcon-interface\": {\n \"&:after\": { content: \"'◌'\" }\n },\n \".cm-completionIcon-variable\": {\n \"&:after\": { content: \"'𝑥'\" }\n },\n \".cm-completionIcon-constant\": {\n \"&:after\": { content: \"'𝐶'\" }\n },\n \".cm-completionIcon-type\": {\n \"&:after\": { content: \"'𝑡'\" }\n },\n \".cm-completionIcon-enum\": {\n \"&:after\": { content: \"'∪'\" }\n },\n \".cm-completionIcon-property\": {\n \"&:after\": { content: \"'□'\" }\n },\n \".cm-completionIcon-keyword\": {\n \"&:after\": { content: \"'🔑\\uFE0E'\" } // Disable emoji rendering\n },\n \".cm-completionIcon-namespace\": {\n \"&:after\": { content: \"'▢'\" }\n },\n \".cm-completionIcon-text\": {\n \"&:after\": { content: \"'abc'\", fontSize: \"50%\", verticalAlign: \"middle\" }\n }\n});\n\nclass FieldPos {\n constructor(field, line, from, to) {\n this.field = field;\n this.line = line;\n this.from = from;\n this.to = to;\n }\n}\nclass FieldRange {\n constructor(field, from, to) {\n this.field = field;\n this.from = from;\n this.to = to;\n }\n map(changes) {\n let from = changes.mapPos(this.from, -1, MapMode.TrackDel);\n let to = changes.mapPos(this.to, 1, MapMode.TrackDel);\n return from == null || to == null ? null : new FieldRange(this.field, from, to);\n }\n}\nclass Snippet {\n constructor(lines, fieldPositions) {\n this.lines = lines;\n this.fieldPositions = fieldPositions;\n }\n instantiate(state, pos) {\n let text = [], lineStart = [pos];\n let lineObj = state.doc.lineAt(pos), baseIndent = /^\\s*/.exec(lineObj.text)[0];\n for (let line of this.lines) {\n if (text.length) {\n let indent = baseIndent, tabs = /^\\t*/.exec(line)[0].length;\n for (let i = 0; i < tabs; i++)\n indent += state.facet(indentUnit);\n lineStart.push(pos + indent.length - tabs);\n line = indent + line.slice(tabs);\n }\n text.push(line);\n pos += line.length + 1;\n }\n let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));\n return { text, ranges };\n }\n static parse(template) {\n let fields = [];\n let lines = [], positions = [], m;\n for (let line of template.split(/\\r\\n?|\\n/)) {\n while (m = /[#$]\\{(?:(\\d+)(?::([^{}]*))?|((?:\\\\[{}]|[^{}])*))\\}/.exec(line)) {\n let seq = m[1] ? +m[1] : null, rawName = m[2] || m[3] || \"\", found = -1;\n // `${0}` is the cursor's final position, after every other tab stop.\n if (seq === 0)\n seq = 1e9;\n let name = rawName.replace(/\\\\[{}]/g, m => m[1]);\n for (let i = 0; i < fields.length; i++) {\n if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)\n found = i;\n }\n if (found < 0) {\n let i = 0;\n while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))\n i++;\n fields.splice(i, 0, { seq, name });\n found = i;\n for (let pos of positions)\n if (pos.field >= found)\n pos.field++;\n }\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > m.index) {\n let snip = m[2] ? 3 + (m[1] || \"\").length : 2;\n pos.from -= snip;\n pos.to -= snip;\n }\n positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));\n line = line.slice(0, m.index) + rawName + line.slice(m.index + m[0].length);\n }\n line = line.replace(/\\\\([{}])/g, (_, brace, index) => {\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > index) {\n pos.from--;\n pos.to--;\n }\n return brace;\n });\n lines.push(line);\n }\n return new Snippet(lines, positions);\n }\n}\nlet fieldMarker = /*@__PURE__*/Decoration.widget({ widget: /*@__PURE__*/new class extends WidgetType {\n toDOM() {\n let span = document.createElement(\"span\");\n span.className = \"cm-snippetFieldPosition\";\n return span;\n }\n ignoreEvent() { return false; }\n } });\nlet fieldRange = /*@__PURE__*/Decoration.mark({ class: \"cm-snippetField\" });\nclass ActiveSnippet {\n constructor(ranges, active) {\n this.ranges = ranges;\n this.active = active;\n this.deco = Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)), true);\n }\n map(changes) {\n let ranges = [];\n for (let r of this.ranges) {\n let mapped = r.map(changes);\n if (!mapped)\n return null;\n ranges.push(mapped);\n }\n return new ActiveSnippet(ranges, this.active);\n }\n selectionInsideField(sel) {\n return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));\n }\n}\nconst setActive = /*@__PURE__*/StateEffect.define({\n map(value, changes) { return value && value.map(changes); }\n});\nconst moveToField = /*@__PURE__*/StateEffect.define();\nconst snippetState = /*@__PURE__*/StateField.define({\n create() { return null; },\n update(value, tr) {\n for (let effect of tr.effects) {\n if (effect.is(setActive))\n return effect.value;\n if (effect.is(moveToField) && value)\n return new ActiveSnippet(value.ranges, effect.value);\n }\n if (value && tr.docChanged)\n value = value.map(tr.changes);\n if (value && tr.selection && !value.selectionInsideField(tr.selection))\n value = null;\n return value;\n },\n provide: f => EditorView.decorations.from(f, val => val ? val.deco : Decoration.none)\n});\nfunction fieldSelection(ranges, field) {\n return EditorSelection.create(ranges.filter(r => r.field == field).map(r => EditorSelection.range(r.from, r.to)));\n}\n/**\nConvert a snippet template to a function that can\n[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written\nusing syntax like this:\n\n \"for (let ${index} = 0; ${index} < ${end}; ${index}++) {\\n\\t${}\\n}\"\n\nEach `${}` placeholder (you may also use `#{}`) indicates a field\nthat the user can fill in. Its name, if any, will be the default\ncontent for the field.\n\nWhen the snippet is activated by calling the returned function,\nthe code is inserted at the given position. Newlines in the\ntemplate are indented by the indentation of the start line, plus\none [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after\nthe newline.\n\nOn activation, (all instances of) the first field are selected.\nThe user can move between fields with Tab and Shift-Tab as long as\nthe fields are active. Moving to the last field or moving the\ncursor out of the current field deactivates the fields.\n\nThe order of fields defaults to textual order, but you can add\nnumbers to placeholders (`${1}` or `${1:defaultText}`) to provide\na custom order. `${0}` is special—it is always the last stop, where\nthe cursor ends up after tabbing through the other fields.\n\nTo include a literal `{` or `}` in your template, put a backslash\nin front of it. This will be removed and the brace will not be\ninterpreted as indicating a placeholder.\n*/\nfunction snippet(template) {\n let snippet = Snippet.parse(template);\n return (editor, completion, from, to) => {\n let { text, ranges } = snippet.instantiate(editor.state, from);\n let { main } = editor.state.selection;\n let spec = {\n changes: { from, to: to == main.from ? main.to : to, insert: Text.of(text) },\n scrollIntoView: true,\n annotations: completion ? [pickedCompletion.of(completion), Transaction.userEvent.of(\"input.complete\")] : undefined\n };\n if (ranges.length)\n spec.selection = fieldSelection(ranges, 0);\n if (ranges.some(r => r.field > 0)) {\n let active = new ActiveSnippet(ranges, 0);\n let effects = spec.effects = [setActive.of(active)];\n if (editor.state.field(snippetState, false) === undefined)\n effects.push(StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme]));\n }\n editor.dispatch(editor.state.update(spec));\n };\n}\nfunction moveField(dir) {\n return ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active || dir < 0 && active.active == 0)\n return false;\n let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);\n dispatch(state.update({\n selection: fieldSelection(active.ranges, next),\n effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next)),\n scrollIntoView: true\n }));\n return true;\n };\n}\n/**\nA command that clears the active snippet, if any.\n*/\nconst clearSnippet = ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active)\n return false;\n dispatch(state.update({ effects: setActive.of(null) }));\n return true;\n};\n/**\nMove to the next snippet field, if available.\n*/\nconst nextSnippetField = /*@__PURE__*/moveField(1);\n/**\nMove to the previous snippet field, if available.\n*/\nconst prevSnippetField = /*@__PURE__*/moveField(-1);\n/**\nCheck if there is an active snippet with a next field for\n`nextSnippetField` to move to.\n*/\nfunction hasNextSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.ranges.some(r => r.field == active.active + 1));\n}\n/**\nReturns true if there is an active snippet and a previous field\nfor `prevSnippetField` to move to.\n*/\nfunction hasPrevSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.active > 0);\n}\nconst defaultSnippetKeymap = [\n { key: \"Tab\", run: nextSnippetField, shift: prevSnippetField },\n { key: \"Escape\", run: clearSnippet }\n];\n/**\nA facet that can be used to configure the key bindings used by\nsnippets. The default binds Tab to\n[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to\n[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape\nto [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).\n*/\nconst snippetKeymap = /*@__PURE__*/Facet.define({\n combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }\n});\nconst addSnippetKeymap = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));\n/**\nCreate a completion from a snippet. Returns an object with the\nproperties from `completion`, plus an `apply` function that\napplies the snippet.\n*/\nfunction snippetCompletion(template, completion) {\n return { ...completion, apply: snippet(template) };\n}\nconst snippetPointerHandler = /*@__PURE__*/EditorView.domEventHandlers({\n mousedown(event, view) {\n let active = view.state.field(snippetState, false), pos;\n if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)\n return false;\n let match = active.ranges.find(r => r.from <= pos && r.to >= pos);\n if (!match || match.field == active.active)\n return false;\n view.dispatch({\n selection: fieldSelection(active.ranges, match.field),\n effects: setActive.of(active.ranges.some(r => r.field > match.field)\n ? new ActiveSnippet(active.ranges, match.field) : null),\n scrollIntoView: true\n });\n return true;\n }\n});\n\nfunction wordRE(wordChars) {\n let escaped = wordChars.replace(/[\\]\\-\\\\]/g, \"\\\\$&\");\n try {\n return new RegExp(`[\\\\p{Alphabetic}\\\\p{Number}_${escaped}]+`, \"ug\");\n }\n catch (_a) {\n return new RegExp(`[\\w${escaped}]`, \"g\");\n }\n}\nfunction mapRE(re, f) {\n return new RegExp(f(re.source), re.unicode ? \"u\" : \"\");\n}\nconst wordCaches = /*@__PURE__*/Object.create(null);\nfunction wordCache(wordChars) {\n return wordCaches[wordChars] || (wordCaches[wordChars] = new WeakMap);\n}\nfunction storeWords(doc, wordRE, result, seen, ignoreAt) {\n for (let lines = doc.iterLines(), pos = 0; !lines.next().done;) {\n let { value } = lines, m;\n wordRE.lastIndex = 0;\n while (m = wordRE.exec(value)) {\n if (!seen[m[0]] && pos + m.index != ignoreAt) {\n result.push({ type: \"text\", label: m[0] });\n seen[m[0]] = true;\n if (result.length >= 2000 /* C.MaxList */)\n return;\n }\n }\n pos += value.length + 1;\n }\n}\nfunction collectWords(doc, cache, wordRE, to, ignoreAt) {\n let big = doc.length >= 1000 /* C.MinCacheLen */;\n let cached = big && cache.get(doc);\n if (cached)\n return cached;\n let result = [], seen = Object.create(null);\n if (doc.children) {\n let pos = 0;\n for (let ch of doc.children) {\n if (ch.length >= 1000 /* C.MinCacheLen */) {\n for (let c of collectWords(ch, cache, wordRE, to - pos, ignoreAt - pos)) {\n if (!seen[c.label]) {\n seen[c.label] = true;\n result.push(c);\n }\n }\n }\n else {\n storeWords(ch, wordRE, result, seen, ignoreAt - pos);\n }\n pos += ch.length + 1;\n }\n }\n else {\n storeWords(doc, wordRE, result, seen, ignoreAt);\n }\n if (big && result.length < 2000 /* C.MaxList */)\n cache.set(doc, result);\n return result;\n}\n/**\nA completion source that will scan the document for words (using a\n[character categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer)), and\nreturn those as completions.\n*/\nconst completeAnyWord = context => {\n var _a;\n let wordChars = (_a = context.state.languageDataAt(\"wordChars\", context.pos)[0]) !== null && _a !== void 0 ? _a : \"\";\n let re = wordRE(wordChars);\n let token = context.matchBefore(mapRE(re, s => s + \"$\"));\n if (!token && !context.explicit)\n return null;\n let from = token ? token.from : context.pos;\n let options = collectWords(context.state.doc, wordCache(wordChars), re, 50000 /* C.Range */, from);\n return { from, options, validFor: mapRE(re, s => \"^\" + s) };\n};\n\nconst defaults = {\n brackets: [\"(\", \"[\", \"{\", \"'\", '\"'],\n before: \")]}:;>\",\n stringPrefixes: []\n};\nconst closeBracketEffect = /*@__PURE__*/StateEffect.define({\n map(value, mapping) {\n let mapped = mapping.mapPos(value, -1, MapMode.TrackAfter);\n return mapped == null ? undefined : mapped;\n }\n});\nconst closedBracket = /*@__PURE__*/new class extends RangeValue {\n};\nclosedBracket.startSide = 1;\nclosedBracket.endSide = -1;\nconst bracketState = /*@__PURE__*/StateField.define({\n create() { return RangeSet.empty; },\n update(value, tr) {\n value = value.map(tr.changes);\n if (tr.selection) {\n let line = tr.state.doc.lineAt(tr.selection.main.head);\n value = value.update({ filter: from => from >= line.from && from <= line.to });\n }\n for (let effect of tr.effects)\n if (effect.is(closeBracketEffect))\n value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });\n return value;\n }\n});\n/**\nExtension to enable bracket-closing behavior. When a closeable\nbracket is typed, its closing bracket is immediately inserted\nafter the cursor. When closing a bracket directly in front of a\nclosing bracket inserted by the extension, the cursor moves over\nthat bracket.\n*/\nfunction closeBrackets() {\n return [inputHandler, bracketState];\n}\nconst definedClosing = \"()[]{}<>«»»«[]{}\";\nfunction closing(ch) {\n for (let i = 0; i < definedClosing.length; i += 2)\n if (definedClosing.charCodeAt(i) == ch)\n return definedClosing.charAt(i + 1);\n return fromCodePoint(ch < 128 ? ch : ch + 1);\n}\nfunction config(state, pos) {\n return state.languageDataAt(\"closeBrackets\", pos)[0] || defaults;\n}\nconst android = typeof navigator == \"object\" && /*@__PURE__*//Android\\b/.test(navigator.userAgent);\nconst inputHandler = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, insert) => {\n if ((android ? view.composing : view.compositionStarted) || view.state.readOnly)\n return false;\n let sel = view.state.selection.main;\n if (insert.length > 2 || insert.length == 2 && codePointSize(codePointAt(insert, 0)) == 1 ||\n from != sel.from || to != sel.to)\n return false;\n let tr = insertBracket(view.state, insert);\n if (!tr)\n return false;\n view.dispatch(tr);\n return true;\n});\n/**\nCommand that implements deleting a pair of matching brackets when\nthe cursor is between them.\n*/\nconst deleteBracketPair = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty) {\n let before = prevChar(state.doc, range.head);\n for (let token of tokens) {\n if (token == before && nextChar(state.doc, range.head) == closing(codePointAt(token, 0)))\n return { changes: { from: range.head - token.length, to: range.head + token.length },\n range: EditorSelection.cursor(range.head - token.length) };\n }\n }\n return { range: dont = range };\n });\n if (!dont)\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete.backward\" }));\n return !dont;\n};\n/**\nClose-brackets related key bindings. Binds Backspace to\n[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).\n*/\nconst closeBracketsKeymap = [\n { key: \"Backspace\", run: deleteBracketPair }\n];\n/**\nImplements the extension's behavior on text insertion. If the\ngiven string counts as a bracket in the language around the\nselection, and replacing the selection with it requires custom\nbehavior (inserting a closing version or skipping past a\npreviously-closed bracket), this function returns a transaction\nrepresenting that custom behavior. (You only need this if you want\nto programmatically insert brackets—the\n[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will\ntake care of running this for user input.)\n*/\nfunction insertBracket(state, bracket) {\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n for (let tok of tokens) {\n let closed = closing(codePointAt(tok, 0));\n if (bracket == tok)\n return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)\n : handleOpen(state, tok, closed, conf.before || defaults.before);\n if (bracket == closed && closedBracketAt(state, state.selection.main.from))\n return handleClose(state, tok, closed);\n }\n return null;\n}\nfunction closedBracketAt(state, pos) {\n let found = false;\n state.field(bracketState).between(0, state.doc.length, from => {\n if (from == pos)\n found = true;\n });\n return found;\n}\nfunction nextChar(doc, pos) {\n let next = doc.sliceString(pos, pos + 2);\n return next.slice(0, codePointSize(codePointAt(next, 0)));\n}\nfunction prevChar(doc, pos) {\n let prev = doc.sliceString(pos - 2, pos);\n return codePointSize(codePointAt(prev, 0)) == prev.length ? prev : prev.slice(1);\n}\nfunction handleOpen(state, open, close, closeBefore) {\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],\n effects: closeBracketEffect.of(range.to + open.length),\n range: EditorSelection.range(range.anchor + open.length, range.head + open.length) };\n let next = nextChar(state.doc, range.head);\n if (!next || /\\s/.test(next) || closeBefore.indexOf(next) > -1)\n return { changes: { insert: open + close, from: range.head },\n effects: closeBracketEffect.of(range.head + open.length),\n range: EditorSelection.cursor(range.head + open.length) };\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction handleClose(state, _open, close) {\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty && nextChar(state.doc, range.head) == close)\n return { changes: { from: range.head, to: range.head + close.length, insert: close },\n range: EditorSelection.cursor(range.head + close.length) };\n return dont = { range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\n// Handles cases where the open and close token are the same, and\n// possibly triple quotes (as in `\"\"\"abc\"\"\"`-style quoting).\nfunction handleSame(state, token, allowTriple, config) {\n let stringPrefixes = config.stringPrefixes || defaults.stringPrefixes;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],\n effects: closeBracketEffect.of(range.to + token.length),\n range: EditorSelection.range(range.anchor + token.length, range.head + token.length) };\n let pos = range.head, next = nextChar(state.doc, pos), start;\n if (next == token) {\n if (nodeStart(state, pos)) {\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (closedBracketAt(state, pos)) {\n let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;\n let content = isTriple ? token + token + token : token;\n return { changes: { from: pos, to: pos + content.length, insert: content },\n range: EditorSelection.cursor(pos + content.length) };\n }\n }\n else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&\n (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&\n nodeStart(state, start)) {\n return { changes: { insert: token + token + token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (state.charCategorizer(pos)(next) != CharCategory.Word) {\n if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction nodeStart(state, pos) {\n let tree = syntaxTree(state).resolveInner(pos + 1);\n return tree.parent && tree.from == pos;\n}\nfunction probablyInString(state, pos, quoteToken, prefixes) {\n let node = syntaxTree(state).resolveInner(pos, -1);\n let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);\n for (let i = 0; i < 5; i++) {\n let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));\n let quotePos = start.indexOf(quoteToken);\n if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {\n let first = node.firstChild;\n while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {\n if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)\n return false;\n first = first.firstChild;\n }\n return true;\n }\n let parent = node.to == pos && node.parent;\n if (!parent)\n break;\n node = parent;\n }\n return false;\n}\nfunction canStartStringAt(state, pos, prefixes) {\n let charCat = state.charCategorizer(pos);\n if (charCat(state.sliceDoc(pos - 1, pos)) != CharCategory.Word)\n return pos;\n for (let prefix of prefixes) {\n let start = pos - prefix.length;\n if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != CharCategory.Word)\n return start;\n }\n return -1;\n}\n\n/**\nReturns an extension that enables autocompletion.\n*/\nfunction autocompletion(config = {}) {\n return [\n commitCharacters,\n completionState,\n completionConfig.of(config),\n completionPlugin,\n completionKeymapExt,\n baseTheme\n ];\n}\n/**\nBasic keybindings for autocompletion.\n\n - Ctrl-Space (and Alt-\\` or Alt-i on macOS): [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)\n - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)\n - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`\n - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - PageUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false, \"page\")`\n - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)\n*/\nconst completionKeymap = [\n { key: \"Ctrl-Space\", run: startCompletion },\n { mac: \"Alt-`\", run: startCompletion },\n { mac: \"Alt-i\", run: startCompletion },\n { key: \"Escape\", run: closeCompletion },\n { key: \"ArrowDown\", run: /*@__PURE__*/moveCompletionSelection(true) },\n { key: \"ArrowUp\", run: /*@__PURE__*/moveCompletionSelection(false) },\n { key: \"PageDown\", run: /*@__PURE__*/moveCompletionSelection(true, \"page\") },\n { key: \"PageUp\", run: /*@__PURE__*/moveCompletionSelection(false, \"page\") },\n { key: \"Enter\", run: acceptCompletion }\n];\nconst completionKeymapExt = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));\n/**\nGet the current completion status. When completions are available,\nthis will return `\"active\"`. When completions are pending (in the\nprocess of being queried), this returns `\"pending\"`. Otherwise, it\nreturns `null`.\n*/\nfunction completionStatus(state) {\n let cState = state.field(completionState, false);\n return cState && cState.active.some(a => a.isPending) ? \"pending\"\n : cState && cState.active.some(a => a.state != 0 /* State.Inactive */) ? \"active\" : null;\n}\nconst completionArrayCache = /*@__PURE__*/new WeakMap;\n/**\nReturns the available completions as an array.\n*/\nfunction currentCompletions(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n if (!open || open.disabled)\n return [];\n let completions = completionArrayCache.get(open.options);\n if (!completions)\n completionArrayCache.set(open.options, completions = open.options.map(o => o.completion));\n return completions;\n}\n/**\nReturn the currently selected completion, if any.\n*/\nfunction selectedCompletion(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.options[open.selected].completion : null;\n}\n/**\nReturns the currently selected position in the active completion\nlist, or null if no completions are active.\n*/\nfunction selectedCompletionIndex(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.selected : null;\n}\n/**\nCreate an effect that can be attached to a transaction to change\nthe currently selected completion.\n*/\nfunction setSelectedCompletion(index) {\n return setSelectedEffect.of(index);\n}\n\nexport { CompletionContext, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion };\n"],"names":["CompletionContext","state","pos","explicit","view","types","token","syntaxTree","expr","line","start","str","found","ensureAnchor","type","listener","options","toSet","chars","flat","words","prefixMatch","first","rest","label","i","source","completeFromList","list","validFor","match","context","ifNotIn","nodes","Option","completion","score","cur","_a","addStart","addEnd","pickedCompletion","Annotation","insertCompletionText","text","from","to","main","fromOff","toOff","range","lines","EditorSelection","SourceCache","asSource","known","startCompletionEffect","StateEffect","closeCompletionEffect","FuzzyMatcher","pattern","p","char","codePointAt","size","codePointSize","part","upper","matched","word","folded","any","precise","byWord","firstSize","direct","len","anyTo","e","next","preciseTo","byWordTo","byWordFolded","adjacentTo","adjacentStart","adjacentEnd","hasLower","wordAdjacent","prevType","ch","fromCodePoint","positions","result","StrictMatcher","completionConfig","Facet","configs","combineConfig","defaultPositionInfo","a","b","c","joinClass","option","info","space","tooltip","rtl","Direction","left","narrow","side","offset","maxWidth","spaceLeft","spaceRight","infoWidth","infoHeight","spaceBelow","scaleY","scaleX","setSelectedEffect","optionContent","config","content","icon","cls","_s","_v","labelElt","off","j","span","detailElt","rangeAroundSelected","total","selected","max","CompletionTooltip","stateField","applyCompletion","cState","dom","move","id","update","prevState","disabled","open","newSel","infoResult","obj","logException","wrap","destroy","set","opt","scrollIntoView","sel","listRect","infoRect","selRect","docElt","ul","curSection","section","name","header","li","node","completionTooltip","container","element","parent","self","sortOptions","active","sections","dynamicSectionScore","addOption","s","conf","getMatch","matcher","sectionOrder","cmp","prev","compare","CompletionDialog","attrs","timestamp","makeAttrs","didSetActive","selectedValue","createTooltip","changes","CompletionState","none","tr","ActiveSource","didSet","setActiveEffect","sameResults","effect","baseAttrs","noAttrs","iA","iB","endA","endB","getUpdateType","typing","value","ActiveResult","limit","checkValid","mapping","sources","completionState","StateField","f","showTooltip","val","EditorView","apply","moveCompletionSelection","forward","by","step","getTooltip","length","acceptCompletion","startCompletion","closeCompletion","RunningQuery","MaxUpdateCount","MinAbortTime","completionPlugin","ViewPlugin","doesReset","query","handler","delay","q","r","pending","err","updated","current","event","dialog","windows","commitCharacters","Prec","field","commitChars","baseTheme","FieldPos","FieldRange","MapMode","Snippet","fieldPositions","lineStart","lineObj","baseIndent","indent","tabs","indentUnit","ranges","template","fields","m","seq","rawName","snip","_","brace","index","fieldMarker","Decoration","WidgetType","fieldRange","ActiveSnippet","mapped","setActive","moveToField","snippetState","fieldSelection","snippet","editor","spec","Text","Transaction","effects","addSnippetKeymap","snippetPointerHandler","moveField","dir","dispatch","last","clearSnippet","nextSnippetField","prevSnippetField","defaultSnippetKeymap","snippetKeymap","maps","keymap","snippetCompletion","defaults","closeBracketEffect","closedBracket","RangeValue","bracketState","RangeSet","closeBrackets","inputHandler","definedClosing","closing","android","insert","insertBracket","deleteBracketPair","tokens","dont","before","prevChar","nextChar","closeBracketsKeymap","bracket","tok","closed","handleSame","handleOpen","closedBracketAt","handleClose","doc","close","closeBefore","_open","allowTriple","stringPrefixes","nodeStart","canStartStringAt","CharCategory","probablyInString","tree","quoteToken","prefixes","maxPrefix","quotePos","charCat","prefix","autocompletion","completionKeymapExt","completionKeymap"],"mappings":"gNAOA,MAAMA,CAAkB,CAMpB,YAIAC,EAIAC,EAOAC,EAQAC,EAAM,CACF,KAAK,MAAQH,EACb,KAAK,IAAM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