@inkandswitch/patchwork-pkg-base 0.0.16 → 0.0.17

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 (383) hide show
  1. package/init.js +1 -0
  2. package/modules.json +11 -1
  3. package/package.json +1 -1
  4. package/packages/account-picker/dist/AccountPicker-7VBUJTTB.js +8860 -0
  5. package/packages/account-picker/dist/AccountPicker-7VBUJTTB.js.map +7 -0
  6. package/packages/account-picker/dist/AccountPicker-CN73XGEW.css +371 -0
  7. package/packages/account-picker/dist/AccountPicker-CN73XGEW.css.map +7 -0
  8. package/packages/account-picker/dist/chunk-5WRI5ZAA.js +31 -0
  9. package/packages/account-picker/dist/chunk-5WRI5ZAA.js.map +7 -0
  10. package/packages/account-picker/dist/tool.css +371 -0
  11. package/packages/account-picker/dist/tool.css.map +7 -0
  12. package/packages/account-picker/dist/tool.js +19 -0
  13. package/packages/account-picker/dist/tool.js.map +7 -0
  14. package/packages/account-picker/package.json +39 -0
  15. package/packages/codemirror-base/dist/chunk-KMEIRH3R.js +490 -0
  16. package/packages/codemirror-base/dist/chunk-KMEIRH3R.js.map +7 -0
  17. package/packages/codemirror-base/dist/lib/codemirror.js +7 -0
  18. package/packages/codemirror-base/dist/lib/codemirror.js.map +7 -0
  19. package/packages/codemirror-base/dist/main.js +17 -0
  20. package/packages/codemirror-base/dist/main.js.map +7 -0
  21. package/packages/codemirror-base/dist/tool.js +1799 -0
  22. package/packages/codemirror-base/dist/tool.js.map +7 -0
  23. package/packages/codemirror-base/package.json +55 -0
  24. package/packages/codemirror-markdown/dist/apl-QAIM2KBM.js +142 -0
  25. package/packages/codemirror-markdown/dist/apl-QAIM2KBM.js.map +7 -0
  26. package/packages/codemirror-markdown/dist/asciiarmor-G7UKQURA.js +58 -0
  27. package/packages/codemirror-markdown/dist/asciiarmor-G7UKQURA.js.map +7 -0
  28. package/packages/codemirror-markdown/dist/asn1-JTUXKWKT.js +144 -0
  29. package/packages/codemirror-markdown/dist/asn1-JTUXKWKT.js.map +7 -0
  30. package/packages/codemirror-markdown/dist/asterisk-NM6JCXOL.js +351 -0
  31. package/packages/codemirror-markdown/dist/asterisk-NM6JCXOL.js.map +7 -0
  32. package/packages/codemirror-markdown/dist/brainfuck-X7FFM55E.js +55 -0
  33. package/packages/codemirror-markdown/dist/brainfuck-X7FFM55E.js.map +7 -0
  34. package/packages/codemirror-markdown/dist/chunk-46Z6CXSY.js +1062 -0
  35. package/packages/codemirror-markdown/dist/chunk-46Z6CXSY.js.map +7 -0
  36. package/packages/codemirror-markdown/dist/chunk-6JT2ASRP.js +1111 -0
  37. package/packages/codemirror-markdown/dist/chunk-6JT2ASRP.js.map +7 -0
  38. package/packages/codemirror-markdown/dist/chunk-CSJO4DNL.js +1424 -0
  39. package/packages/codemirror-markdown/dist/chunk-CSJO4DNL.js.map +7 -0
  40. package/packages/codemirror-markdown/dist/chunk-FLC3A4DL.js +133 -0
  41. package/packages/codemirror-markdown/dist/chunk-FLC3A4DL.js.map +7 -0
  42. package/packages/codemirror-markdown/dist/chunk-M3X2FRO3.js +998 -0
  43. package/packages/codemirror-markdown/dist/chunk-M3X2FRO3.js.map +7 -0
  44. package/packages/codemirror-markdown/dist/chunk-MAW6NPUW.js +4930 -0
  45. package/packages/codemirror-markdown/dist/chunk-MAW6NPUW.js.map +7 -0
  46. package/packages/codemirror-markdown/dist/chunk-MBTMKYFQ.js +1779 -0
  47. package/packages/codemirror-markdown/dist/chunk-MBTMKYFQ.js.map +7 -0
  48. package/packages/codemirror-markdown/dist/chunk-NEI7FGV4.js +697 -0
  49. package/packages/codemirror-markdown/dist/chunk-NEI7FGV4.js.map +7 -0
  50. package/packages/codemirror-markdown/dist/chunk-PPGERYN5.js +2528 -0
  51. package/packages/codemirror-markdown/dist/chunk-PPGERYN5.js.map +7 -0
  52. package/packages/codemirror-markdown/dist/clike-DOBZTBQN.js +808 -0
  53. package/packages/codemirror-markdown/dist/clike-DOBZTBQN.js.map +7 -0
  54. package/packages/codemirror-markdown/dist/clojure-PTADSDNF.js +851 -0
  55. package/packages/codemirror-markdown/dist/clojure-PTADSDNF.js.map +7 -0
  56. package/packages/codemirror-markdown/dist/cmake-5HAC7YMH.js +73 -0
  57. package/packages/codemirror-markdown/dist/cmake-5HAC7YMH.js.map +7 -0
  58. package/packages/codemirror-markdown/dist/cobol-HAM4C42S.js +131 -0
  59. package/packages/codemirror-markdown/dist/cobol-HAM4C42S.js.map +7 -0
  60. package/packages/codemirror-markdown/dist/coffeescript-IBRKASSJ.js +310 -0
  61. package/packages/codemirror-markdown/dist/coffeescript-IBRKASSJ.js.map +7 -0
  62. package/packages/codemirror-markdown/dist/commonlisp-KMRPB5EW.js +132 -0
  63. package/packages/codemirror-markdown/dist/commonlisp-KMRPB5EW.js.map +7 -0
  64. package/packages/codemirror-markdown/dist/crystal-2MDF4EKJ.js +400 -0
  65. package/packages/codemirror-markdown/dist/crystal-2MDF4EKJ.js.map +7 -0
  66. package/packages/codemirror-markdown/dist/css-VQQXA3AY.js +1795 -0
  67. package/packages/codemirror-markdown/dist/css-VQQXA3AY.js.map +7 -0
  68. package/packages/codemirror-markdown/dist/cypher-ZZEGDGDJ.js +123 -0
  69. package/packages/codemirror-markdown/dist/cypher-ZZEGDGDJ.js.map +7 -0
  70. package/packages/codemirror-markdown/dist/d-5S6PJOOT.js +187 -0
  71. package/packages/codemirror-markdown/dist/d-5S6PJOOT.js.map +7 -0
  72. package/packages/codemirror-markdown/dist/datatype.js +48 -0
  73. package/packages/codemirror-markdown/dist/datatype.js.map +7 -0
  74. package/packages/codemirror-markdown/dist/diff-S77XBOWF.js +27 -0
  75. package/packages/codemirror-markdown/dist/diff-S77XBOWF.js.map +7 -0
  76. package/packages/codemirror-markdown/dist/dist-2C6IPJHB.js +98 -0
  77. package/packages/codemirror-markdown/dist/dist-2C6IPJHB.js.map +7 -0
  78. package/packages/codemirror-markdown/dist/dist-2H653DKD.js +170 -0
  79. package/packages/codemirror-markdown/dist/dist-2H653DKD.js.map +7 -0
  80. package/packages/codemirror-markdown/dist/dist-2O4EI6YQ.js +140 -0
  81. package/packages/codemirror-markdown/dist/dist-2O4EI6YQ.js.map +7 -0
  82. package/packages/codemirror-markdown/dist/dist-2UJRV4FH.js +75 -0
  83. package/packages/codemirror-markdown/dist/dist-2UJRV4FH.js.map +7 -0
  84. package/packages/codemirror-markdown/dist/dist-52S6W6Z3.js +15 -0
  85. package/packages/codemirror-markdown/dist/dist-52S6W6Z3.js.map +7 -0
  86. package/packages/codemirror-markdown/dist/dist-5KN6ODPO.js +340 -0
  87. package/packages/codemirror-markdown/dist/dist-5KN6ODPO.js.map +7 -0
  88. package/packages/codemirror-markdown/dist/dist-BOGB4NCA.js +20 -0
  89. package/packages/codemirror-markdown/dist/dist-BOGB4NCA.js.map +7 -0
  90. package/packages/codemirror-markdown/dist/dist-DZ4PW5HP.js +318 -0
  91. package/packages/codemirror-markdown/dist/dist-DZ4PW5HP.js.map +7 -0
  92. package/packages/codemirror-markdown/dist/dist-FDBKXKIA.js +100 -0
  93. package/packages/codemirror-markdown/dist/dist-FDBKXKIA.js.map +7 -0
  94. package/packages/codemirror-markdown/dist/dist-G2KVVLNT.js +381 -0
  95. package/packages/codemirror-markdown/dist/dist-G2KVVLNT.js.map +7 -0
  96. package/packages/codemirror-markdown/dist/dist-HHNZE2GE.js +193 -0
  97. package/packages/codemirror-markdown/dist/dist-HHNZE2GE.js.map +7 -0
  98. package/packages/codemirror-markdown/dist/dist-HNH74YPL.js +32 -0
  99. package/packages/codemirror-markdown/dist/dist-HNH74YPL.js.map +7 -0
  100. package/packages/codemirror-markdown/dist/dist-LBQUKRIG.js +27 -0
  101. package/packages/codemirror-markdown/dist/dist-LBQUKRIG.js.map +7 -0
  102. package/packages/codemirror-markdown/dist/dist-MFKCWPLQ.js +416 -0
  103. package/packages/codemirror-markdown/dist/dist-MFKCWPLQ.js.map +7 -0
  104. package/packages/codemirror-markdown/dist/dist-NISFJM3T.js +423 -0
  105. package/packages/codemirror-markdown/dist/dist-NISFJM3T.js.map +7 -0
  106. package/packages/codemirror-markdown/dist/dist-Q7P6VH6H.js +786 -0
  107. package/packages/codemirror-markdown/dist/dist-Q7P6VH6H.js.map +7 -0
  108. package/packages/codemirror-markdown/dist/dist-RWF5A5GN.js +451 -0
  109. package/packages/codemirror-markdown/dist/dist-RWF5A5GN.js.map +7 -0
  110. package/packages/codemirror-markdown/dist/dist-UHUU7KLC.js +748 -0
  111. package/packages/codemirror-markdown/dist/dist-UHUU7KLC.js.map +7 -0
  112. package/packages/codemirror-markdown/dist/dist-WJMBFK7W.js +360 -0
  113. package/packages/codemirror-markdown/dist/dist-WJMBFK7W.js.map +7 -0
  114. package/packages/codemirror-markdown/dist/dist-XJYSXJ7H.js +115 -0
  115. package/packages/codemirror-markdown/dist/dist-XJYSXJ7H.js.map +7 -0
  116. package/packages/codemirror-markdown/dist/dist-YY24ZXZD.js +212 -0
  117. package/packages/codemirror-markdown/dist/dist-YY24ZXZD.js.map +7 -0
  118. package/packages/codemirror-markdown/dist/dockerfile-JECCOJWP.js +209 -0
  119. package/packages/codemirror-markdown/dist/dockerfile-JECCOJWP.js.map +7 -0
  120. package/packages/codemirror-markdown/dist/dtd-MNDWTW4Z.js +116 -0
  121. package/packages/codemirror-markdown/dist/dtd-MNDWTW4Z.js.map +7 -0
  122. package/packages/codemirror-markdown/dist/dylan-VQ4IHJDS.js +317 -0
  123. package/packages/codemirror-markdown/dist/dylan-VQ4IHJDS.js.map +7 -0
  124. package/packages/codemirror-markdown/dist/ebnf-IDZBFTCG.js +142 -0
  125. package/packages/codemirror-markdown/dist/ebnf-IDZBFTCG.js.map +7 -0
  126. package/packages/codemirror-markdown/dist/ecl-X3ROY7E6.js +180 -0
  127. package/packages/codemirror-markdown/dist/ecl-X3ROY7E6.js.map +7 -0
  128. package/packages/codemirror-markdown/dist/eiffel-WB3M7Y2E.js +136 -0
  129. package/packages/codemirror-markdown/dist/eiffel-WB3M7Y2E.js.map +7 -0
  130. package/packages/codemirror-markdown/dist/elm-VHXR6ZA3.js +178 -0
  131. package/packages/codemirror-markdown/dist/elm-VHXR6ZA3.js.map +7 -0
  132. package/packages/codemirror-markdown/dist/erlang-7ZBDDQDV.js +676 -0
  133. package/packages/codemirror-markdown/dist/erlang-7ZBDDQDV.js.map +7 -0
  134. package/packages/codemirror-markdown/dist/extensions/embed.js +325 -0
  135. package/packages/codemirror-markdown/dist/extensions/embed.js.map +7 -0
  136. package/packages/codemirror-markdown/dist/extensions/links.js +118 -0
  137. package/packages/codemirror-markdown/dist/extensions/links.js.map +7 -0
  138. package/packages/codemirror-markdown/dist/extensions/markdown.js +3476 -0
  139. package/packages/codemirror-markdown/dist/extensions/markdown.js.map +7 -0
  140. package/packages/codemirror-markdown/dist/factor-IKT2GQE2.js +70 -0
  141. package/packages/codemirror-markdown/dist/factor-IKT2GQE2.js.map +7 -0
  142. package/packages/codemirror-markdown/dist/fcl-CNBUVGUC.js +143 -0
  143. package/packages/codemirror-markdown/dist/fcl-CNBUVGUC.js.map +7 -0
  144. package/packages/codemirror-markdown/dist/forth-4BTPWSFZ.js +118 -0
  145. package/packages/codemirror-markdown/dist/forth-4BTPWSFZ.js.map +7 -0
  146. package/packages/codemirror-markdown/dist/fortran-V6F5DQPK.js +469 -0
  147. package/packages/codemirror-markdown/dist/fortran-V6F5DQPK.js.map +7 -0
  148. package/packages/codemirror-markdown/dist/gas-4DLP6BC4.js +296 -0
  149. package/packages/codemirror-markdown/dist/gas-4DLP6BC4.js.map +7 -0
  150. package/packages/codemirror-markdown/dist/gherkin-OSGPX6HI.js +117 -0
  151. package/packages/codemirror-markdown/dist/gherkin-OSGPX6HI.js.map +7 -0
  152. package/packages/codemirror-markdown/dist/groovy-R2JW63QF.js +225 -0
  153. package/packages/codemirror-markdown/dist/groovy-R2JW63QF.js.map +7 -0
  154. package/packages/codemirror-markdown/dist/haskell-GG7T4J6H.js +461 -0
  155. package/packages/codemirror-markdown/dist/haskell-GG7T4J6H.js.map +7 -0
  156. package/packages/codemirror-markdown/dist/haxe-ESFUJKSE.js +521 -0
  157. package/packages/codemirror-markdown/dist/haxe-ESFUJKSE.js.map +7 -0
  158. package/packages/codemirror-markdown/dist/http-SZLSACOW.js +81 -0
  159. package/packages/codemirror-markdown/dist/http-SZLSACOW.js.map +7 -0
  160. package/packages/codemirror-markdown/dist/idl-V7UH35RP.js +987 -0
  161. package/packages/codemirror-markdown/dist/idl-V7UH35RP.js.map +7 -0
  162. package/packages/codemirror-markdown/dist/javascript-MGRPKFDN.js +13 -0
  163. package/packages/codemirror-markdown/dist/javascript-MGRPKFDN.js.map +7 -0
  164. package/packages/codemirror-markdown/dist/julia-CWCVZVPG.js +409 -0
  165. package/packages/codemirror-markdown/dist/julia-CWCVZVPG.js.map +7 -0
  166. package/packages/codemirror-markdown/dist/livescript-IGKT2FL7.js +303 -0
  167. package/packages/codemirror-markdown/dist/livescript-IGKT2FL7.js.map +7 -0
  168. package/packages/codemirror-markdown/dist/lua-GHK7GCTS.js +258 -0
  169. package/packages/codemirror-markdown/dist/lua-GHK7GCTS.js.map +7 -0
  170. package/packages/codemirror-markdown/dist/main.js +58 -0
  171. package/packages/codemirror-markdown/dist/main.js.map +7 -0
  172. package/packages/codemirror-markdown/dist/mathematica-W5LMQI3M.js +112 -0
  173. package/packages/codemirror-markdown/dist/mathematica-W5LMQI3M.js.map +7 -0
  174. package/packages/codemirror-markdown/dist/mbox-A7CXJ4HZ.js +119 -0
  175. package/packages/codemirror-markdown/dist/mbox-A7CXJ4HZ.js.map +7 -0
  176. package/packages/codemirror-markdown/dist/mirc-WYJEQUBY.js +109 -0
  177. package/packages/codemirror-markdown/dist/mirc-WYJEQUBY.js.map +7 -0
  178. package/packages/codemirror-markdown/dist/mllike-C2YS6SJI.js +340 -0
  179. package/packages/codemirror-markdown/dist/mllike-C2YS6SJI.js.map +7 -0
  180. package/packages/codemirror-markdown/dist/modelica-BMJSLZS7.js +149 -0
  181. package/packages/codemirror-markdown/dist/modelica-BMJSLZS7.js.map +7 -0
  182. package/packages/codemirror-markdown/dist/mscgen-5BORDYHW.js +137 -0
  183. package/packages/codemirror-markdown/dist/mscgen-5BORDYHW.js.map +7 -0
  184. package/packages/codemirror-markdown/dist/mumps-BYE6H7ZX.js +95 -0
  185. package/packages/codemirror-markdown/dist/mumps-BYE6H7ZX.js.map +7 -0
  186. package/packages/codemirror-markdown/dist/nginx-Y54HR7MQ.js +143 -0
  187. package/packages/codemirror-markdown/dist/nginx-Y54HR7MQ.js.map +7 -0
  188. package/packages/codemirror-markdown/dist/nsis-UZLPE2DL.js +67 -0
  189. package/packages/codemirror-markdown/dist/nsis-UZLPE2DL.js.map +7 -0
  190. package/packages/codemirror-markdown/dist/ntriples-SAI3J2VH.js +155 -0
  191. package/packages/codemirror-markdown/dist/ntriples-SAI3J2VH.js.map +7 -0
  192. package/packages/codemirror-markdown/dist/octave-TLUBYOUX.js +213 -0
  193. package/packages/codemirror-markdown/dist/octave-TLUBYOUX.js.map +7 -0
  194. package/packages/codemirror-markdown/dist/oz-F6LNIR6Q.js +233 -0
  195. package/packages/codemirror-markdown/dist/oz-F6LNIR6Q.js.map +7 -0
  196. package/packages/codemirror-markdown/dist/pascal-WINE2FE6.js +107 -0
  197. package/packages/codemirror-markdown/dist/pascal-WINE2FE6.js.map +7 -0
  198. package/packages/codemirror-markdown/dist/perl-NZG3EIBE.js +1107 -0
  199. package/packages/codemirror-markdown/dist/perl-NZG3EIBE.js.map +7 -0
  200. package/packages/codemirror-markdown/dist/pig-U7OFLRCV.js +105 -0
  201. package/packages/codemirror-markdown/dist/pig-U7OFLRCV.js.map +7 -0
  202. package/packages/codemirror-markdown/dist/powershell-ZSUS7P6D.js +330 -0
  203. package/packages/codemirror-markdown/dist/powershell-ZSUS7P6D.js.map +7 -0
  204. package/packages/codemirror-markdown/dist/properties-IJRU6UJW.js +60 -0
  205. package/packages/codemirror-markdown/dist/properties-IJRU6UJW.js.map +7 -0
  206. package/packages/codemirror-markdown/dist/protobuf-2KETQIQ5.js +80 -0
  207. package/packages/codemirror-markdown/dist/protobuf-2KETQIQ5.js.map +7 -0
  208. package/packages/codemirror-markdown/dist/pug-IQCJJAZU.js +410 -0
  209. package/packages/codemirror-markdown/dist/pug-IQCJJAZU.js.map +7 -0
  210. package/packages/codemirror-markdown/dist/puppet-YIIDDH6A.js +139 -0
  211. package/packages/codemirror-markdown/dist/puppet-YIIDDH6A.js.map +7 -0
  212. package/packages/codemirror-markdown/dist/python-A6P3XTMX.js +429 -0
  213. package/packages/codemirror-markdown/dist/python-A6P3XTMX.js.map +7 -0
  214. package/packages/codemirror-markdown/dist/q-2KXN5RX7.js +135 -0
  215. package/packages/codemirror-markdown/dist/q-2KXN5RX7.js.map +7 -0
  216. package/packages/codemirror-markdown/dist/r-BB4MIIBH.js +174 -0
  217. package/packages/codemirror-markdown/dist/r-BB4MIIBH.js.map +7 -0
  218. package/packages/codemirror-markdown/dist/rpm-LMR25AQ3.js +111 -0
  219. package/packages/codemirror-markdown/dist/rpm-LMR25AQ3.js.map +7 -0
  220. package/packages/codemirror-markdown/dist/ruby-TSD6FT73.js +333 -0
  221. package/packages/codemirror-markdown/dist/ruby-TSD6FT73.js.map +7 -0
  222. package/packages/codemirror-markdown/dist/sas-6X4WWIGV.js +209 -0
  223. package/packages/codemirror-markdown/dist/sas-6X4WWIGV.js.map +7 -0
  224. package/packages/codemirror-markdown/dist/scheme-E3I46HBL.js +230 -0
  225. package/packages/codemirror-markdown/dist/scheme-E3I46HBL.js.map +7 -0
  226. package/packages/codemirror-markdown/dist/shell-GX3PRI4I.js +224 -0
  227. package/packages/codemirror-markdown/dist/shell-GX3PRI4I.js.map +7 -0
  228. package/packages/codemirror-markdown/dist/sieve-V65ZPL4F.js +137 -0
  229. package/packages/codemirror-markdown/dist/sieve-V65ZPL4F.js.map +7 -0
  230. package/packages/codemirror-markdown/dist/smalltalk-OVKP2CVW.js +123 -0
  231. package/packages/codemirror-markdown/dist/smalltalk-OVKP2CVW.js.map +7 -0
  232. package/packages/codemirror-markdown/dist/solr-C4DLQJCF.js +71 -0
  233. package/packages/codemirror-markdown/dist/solr-C4DLQJCF.js.map +7 -0
  234. package/packages/codemirror-markdown/dist/sparql-REKUW7B3.js +251 -0
  235. package/packages/codemirror-markdown/dist/sparql-REKUW7B3.js.map +7 -0
  236. package/packages/codemirror-markdown/dist/spreadsheet-S7NN2YTQ.js +89 -0
  237. package/packages/codemirror-markdown/dist/spreadsheet-S7NN2YTQ.js.map +7 -0
  238. package/packages/codemirror-markdown/dist/sql-ML2Q43YF.js +358 -0
  239. package/packages/codemirror-markdown/dist/sql-ML2Q43YF.js.map +7 -0
  240. package/packages/codemirror-markdown/dist/stex-TCOGKBT4.js +233 -0
  241. package/packages/codemirror-markdown/dist/stex-TCOGKBT4.js.map +7 -0
  242. package/packages/codemirror-markdown/dist/stylus-3ONNYZOM.js +591 -0
  243. package/packages/codemirror-markdown/dist/stylus-3ONNYZOM.js.map +7 -0
  244. package/packages/codemirror-markdown/dist/swift-CNWGZ22Y.js +293 -0
  245. package/packages/codemirror-markdown/dist/swift-CNWGZ22Y.js.map +7 -0
  246. package/packages/codemirror-markdown/dist/tcl-77IMAZYE.js +116 -0
  247. package/packages/codemirror-markdown/dist/tcl-77IMAZYE.js.map +7 -0
  248. package/packages/codemirror-markdown/dist/textile-6IWIIKFM.js +416 -0
  249. package/packages/codemirror-markdown/dist/textile-6IWIIKFM.js.map +7 -0
  250. package/packages/codemirror-markdown/dist/tiddlywiki-IJSZMUSA.js +231 -0
  251. package/packages/codemirror-markdown/dist/tiddlywiki-IJSZMUSA.js.map +7 -0
  252. package/packages/codemirror-markdown/dist/tiki-HG37JJIT.js +276 -0
  253. package/packages/codemirror-markdown/dist/tiki-HG37JJIT.js.map +7 -0
  254. package/packages/codemirror-markdown/dist/toml-NINU2IMM.js +78 -0
  255. package/packages/codemirror-markdown/dist/toml-NINU2IMM.js.map +7 -0
  256. package/packages/codemirror-markdown/dist/troff-AOQJ4Q4C.js +63 -0
  257. package/packages/codemirror-markdown/dist/troff-AOQJ4Q4C.js.map +7 -0
  258. package/packages/codemirror-markdown/dist/ttcn-TLOZ3FX3.js +211 -0
  259. package/packages/codemirror-markdown/dist/ttcn-TLOZ3FX3.js.map +7 -0
  260. package/packages/codemirror-markdown/dist/ttcn-cfg-3B6QY7QE.js +141 -0
  261. package/packages/codemirror-markdown/dist/ttcn-cfg-3B6QY7QE.js.map +7 -0
  262. package/packages/codemirror-markdown/dist/turtle-3N5KCGXP.js +132 -0
  263. package/packages/codemirror-markdown/dist/turtle-3N5KCGXP.js.map +7 -0
  264. package/packages/codemirror-markdown/dist/vb-I7M5DRLP.js +204 -0
  265. package/packages/codemirror-markdown/dist/vb-I7M5DRLP.js.map +7 -0
  266. package/packages/codemirror-markdown/dist/vbscript-U2ARSJLD.js +482 -0
  267. package/packages/codemirror-markdown/dist/vbscript-U2ARSJLD.js.map +7 -0
  268. package/packages/codemirror-markdown/dist/velocity-R3AYP5XJ.js +151 -0
  269. package/packages/codemirror-markdown/dist/velocity-R3AYP5XJ.js.map +7 -0
  270. package/packages/codemirror-markdown/dist/verilog-7VEWVDW6.js +456 -0
  271. package/packages/codemirror-markdown/dist/verilog-7VEWVDW6.js.map +7 -0
  272. package/packages/codemirror-markdown/dist/vhdl-JZUPPGBA.js +162 -0
  273. package/packages/codemirror-markdown/dist/vhdl-JZUPPGBA.js.map +7 -0
  274. package/packages/codemirror-markdown/dist/webidl-SLQFEELK.js +206 -0
  275. package/packages/codemirror-markdown/dist/webidl-SLQFEELK.js.map +7 -0
  276. package/packages/codemirror-markdown/dist/xquery-VXP5KJ6N.js +532 -0
  277. package/packages/codemirror-markdown/dist/xquery-VXP5KJ6N.js.map +7 -0
  278. package/packages/codemirror-markdown/dist/yacas-JRBC4BEV.js +132 -0
  279. package/packages/codemirror-markdown/dist/yacas-JRBC4BEV.js.map +7 -0
  280. package/packages/codemirror-markdown/dist/z80-AJF6WLUV.js +95 -0
  281. package/packages/codemirror-markdown/dist/z80-AJF6WLUV.js.map +7 -0
  282. package/packages/codemirror-markdown/example.js +46 -0
  283. package/packages/codemirror-markdown/package.json +62 -0
  284. package/packages/commands/dist/main.js +504 -0
  285. package/packages/commands/dist/main.js.map +7 -0
  286. package/packages/commands/package.json +28 -0
  287. package/packages/contact/dist/ContactAvatar-FP32ZZH2.js +161 -0
  288. package/packages/contact/dist/ContactAvatar-FP32ZZH2.js.map +7 -0
  289. package/packages/contact/dist/ContactViewer-ZHEE6INW.js +60 -0
  290. package/packages/contact/dist/ContactViewer-ZHEE6INW.js.map +7 -0
  291. package/packages/contact/dist/InlineContactAvatar-VZDPEZV2.js +46 -0
  292. package/packages/contact/dist/InlineContactAvatar-VZDPEZV2.js.map +7 -0
  293. package/packages/contact/dist/chunk-MOZI4Y4O.js +54 -0
  294. package/packages/contact/dist/chunk-MOZI4Y4O.js.map +7 -0
  295. package/packages/contact/dist/datatype-ABVDVPWS.js +27 -0
  296. package/packages/contact/dist/datatype-ABVDVPWS.js.map +7 -0
  297. package/packages/contact/dist/tool.css +81 -0
  298. package/packages/contact/dist/tool.css.map +7 -0
  299. package/packages/contact/dist/tool.js +70 -0
  300. package/packages/contact/dist/tool.js.map +7 -0
  301. package/packages/contact/package.json +46 -0
  302. package/packages/folder/dist/datatype-HWGUFBTQ.js +27 -0
  303. package/packages/folder/dist/datatype-HWGUFBTQ.js.map +7 -0
  304. package/packages/folder/dist/index.js +27 -0
  305. package/packages/folder/dist/index.js.map +7 -0
  306. package/packages/folder/dist/tool-62JZAZRP.js +366 -0
  307. package/packages/folder/dist/tool-62JZAZRP.js.map +7 -0
  308. package/packages/folder/package.json +32 -0
  309. package/packages/sideboard/dist/account-bar-OJQC3J6W.js +2 -0
  310. package/packages/sideboard/dist/account-bar-OJQC3J6W.js.map +7 -0
  311. package/packages/sideboard/dist/chunk-32FICX7K.js +26 -0
  312. package/packages/sideboard/dist/chunk-32FICX7K.js.map +7 -0
  313. package/packages/sideboard/dist/chunk-3OYP6TVA.js +2 -0
  314. package/packages/sideboard/dist/chunk-3OYP6TVA.js.map +7 -0
  315. package/packages/sideboard/dist/chunk-FW4363Y4.js +2 -0
  316. package/packages/sideboard/dist/chunk-FW4363Y4.js.map +7 -0
  317. package/packages/sideboard/dist/chunk-QKYKEZU4.js +2 -0
  318. package/packages/sideboard/dist/chunk-QKYKEZU4.js.map +7 -0
  319. package/packages/sideboard/dist/document-list-panel-42LSXXCO.js +2 -0
  320. package/packages/sideboard/dist/document-list-panel-42LSXXCO.js.map +7 -0
  321. package/packages/sideboard/dist/index.css +2 -0
  322. package/packages/sideboard/dist/index.css.map +7 -0
  323. package/packages/sideboard/dist/index.js +2 -0
  324. package/packages/sideboard/dist/index.js.map +7 -0
  325. package/packages/sideboard/dist/sideboard/sideboard.js +2 -0
  326. package/packages/sideboard/dist/sideboard/sideboard.js.map +7 -0
  327. package/packages/sideboard/package.json +56 -0
  328. package/packages/theming/dist/active-theme-K27UXDBG.js +26 -0
  329. package/packages/theming/dist/active-theme-K27UXDBG.js.map +7 -0
  330. package/packages/theming/dist/chunk-K4OOO2TK.js +281 -0
  331. package/packages/theming/dist/chunk-K4OOO2TK.js.map +7 -0
  332. package/packages/theming/dist/chunk-RATW7VZI.js +11 -0
  333. package/packages/theming/dist/chunk-RATW7VZI.js.map +7 -0
  334. package/packages/theming/dist/chunk-U7SC4JPE.js +86 -0
  335. package/packages/theming/dist/chunk-U7SC4JPE.js.map +7 -0
  336. package/packages/theming/dist/codemirror-theme.js +2415 -0
  337. package/packages/theming/dist/codemirror-theme.js.map +7 -0
  338. package/packages/theming/dist/datatype-UUJVIZM7.js +16 -0
  339. package/packages/theming/dist/datatype-UUJVIZM7.js.map +7 -0
  340. package/packages/theming/dist/gloom-JYQPEOHI.css +102 -0
  341. package/packages/theming/dist/lychee-BMLMUNP6.css +114 -0
  342. package/packages/theming/dist/main.js +112 -0
  343. package/packages/theming/dist/main.js.map +7 -0
  344. package/packages/theming/dist/theme-RC7MV6WP.css +691 -0
  345. package/packages/theming/dist/theme-editor-datatype-CIXRKEFF.js +11 -0
  346. package/packages/theming/dist/theme-editor-datatype-CIXRKEFF.js.map +7 -0
  347. package/packages/theming/dist/theme-editor.js +576 -0
  348. package/packages/theming/dist/theme-editor.js.map +7 -0
  349. package/packages/theming/dist/theme-titlebar-P2CODQGF.js +21 -0
  350. package/packages/theming/dist/theme-titlebar-P2CODQGF.js.map +7 -0
  351. package/packages/theming/dist/theme-tray-5L2KGCGD.js +351 -0
  352. package/packages/theming/dist/theme-tray-5L2KGCGD.js.map +7 -0
  353. package/packages/theming/dist/tool.js +405 -0
  354. package/packages/theming/dist/tool.js.map +7 -0
  355. package/packages/theming/package.json +48 -0
  356. package/packages/threepane/dist/IsolatedDocumentArea-LFSDWMIY.js +2 -0
  357. package/packages/threepane/dist/IsolatedDocumentArea-LFSDWMIY.js.map +7 -0
  358. package/packages/threepane/dist/PatchworkFrame-JTNZ6365.js +2 -0
  359. package/packages/threepane/dist/PatchworkFrame-JTNZ6365.js.map +7 -0
  360. package/packages/threepane/dist/chunk-7YXO2YGV.js +2 -0
  361. package/packages/threepane/dist/chunk-7YXO2YGV.js.map +7 -0
  362. package/packages/threepane/dist/chunk-FOMAU6H2.js +972 -0
  363. package/packages/threepane/dist/chunk-FOMAU6H2.js.map +7 -0
  364. package/packages/threepane/dist/chunk-FW4363Y4.js +2 -0
  365. package/packages/threepane/dist/chunk-FW4363Y4.js.map +7 -0
  366. package/packages/threepane/dist/datatypes-FKBTWAO7.js +2 -0
  367. package/packages/threepane/dist/datatypes-FKBTWAO7.js.map +7 -0
  368. package/packages/threepane/dist/index.js +2 -0
  369. package/packages/threepane/dist/index.js.map +7 -0
  370. package/packages/threepane/package.json +42 -0
  371. package/packages/tldraw4/dist/chunk-IKZWERSR.js +38 -0
  372. package/packages/tldraw4/dist/chunk-IKZWERSR.js.map +7 -0
  373. package/packages/tldraw4/dist/chunk-VF5CY24G.js +140894 -0
  374. package/packages/tldraw4/dist/chunk-VF5CY24G.js.map +7 -0
  375. package/packages/tldraw4/dist/datatype.js +46 -0
  376. package/packages/tldraw4/dist/datatype.js.map +7 -0
  377. package/packages/tldraw4/dist/main.css +3202 -0
  378. package/packages/tldraw4/dist/main.css.map +7 -0
  379. package/packages/tldraw4/dist/main.js +42 -0
  380. package/packages/tldraw4/dist/main.js.map +7 -0
  381. package/packages/tldraw4/dist/tool.js +8767 -0
  382. package/packages/tldraw4/dist/tool.js.map +7 -0
  383. package/packages/tldraw4/package.json +62 -0
@@ -0,0 +1,2415 @@
1
+ // src/codemirror-theme.ts
2
+ import { HighlightStyle, syntaxHighlighting } from "@codemirror/language";
3
+
4
+ // ../node_modules/.pnpm/@lezer+common@1.5.2/node_modules/@lezer/common/dist/index.js
5
+ var DefaultBufferLength = 1024;
6
+ var nextPropID = 0;
7
+ var NodeProp = class {
8
+ /**
9
+ Create a new node prop type.
10
+ */
11
+ constructor(config = {}) {
12
+ this.id = nextPropID++;
13
+ this.perNode = !!config.perNode;
14
+ this.deserialize = config.deserialize || (() => {
15
+ throw new Error("This node type doesn't define a deserialize function");
16
+ });
17
+ this.combine = config.combine || null;
18
+ }
19
+ /**
20
+ This is meant to be used with
21
+ [`NodeSet.extend`](#common.NodeSet.extend) or
22
+ [`LRParser.configure`](#lr.ParserConfig.props) to compute
23
+ prop values for each node type in the set. Takes a [match
24
+ object](#common.NodeType^match) or function that returns undefined
25
+ if the node type doesn't get this prop, and the prop's value if
26
+ it does.
27
+ */
28
+ add(match) {
29
+ if (this.perNode)
30
+ throw new RangeError("Can't add per-node props to node types");
31
+ if (typeof match != "function")
32
+ match = NodeType.match(match);
33
+ return (type) => {
34
+ let result = match(type);
35
+ return result === void 0 ? null : [this, result];
36
+ };
37
+ }
38
+ };
39
+ NodeProp.closedBy = new NodeProp({ deserialize: (str) => str.split(" ") });
40
+ NodeProp.openedBy = new NodeProp({ deserialize: (str) => str.split(" ") });
41
+ NodeProp.group = new NodeProp({ deserialize: (str) => str.split(" ") });
42
+ NodeProp.isolate = new NodeProp({ deserialize: (value) => {
43
+ if (value && value != "rtl" && value != "ltr" && value != "auto")
44
+ throw new RangeError("Invalid value for isolate: " + value);
45
+ return value || "auto";
46
+ } });
47
+ NodeProp.contextHash = new NodeProp({ perNode: true });
48
+ NodeProp.lookAhead = new NodeProp({ perNode: true });
49
+ NodeProp.mounted = new NodeProp({ perNode: true });
50
+ var MountedTree = class {
51
+ constructor(tree, overlay, parser, bracketed = false) {
52
+ this.tree = tree;
53
+ this.overlay = overlay;
54
+ this.parser = parser;
55
+ this.bracketed = bracketed;
56
+ }
57
+ /**
58
+ @internal
59
+ */
60
+ static get(tree) {
61
+ return tree && tree.props && tree.props[NodeProp.mounted.id];
62
+ }
63
+ };
64
+ var noProps = /* @__PURE__ */ Object.create(null);
65
+ var NodeType = class _NodeType {
66
+ /**
67
+ @internal
68
+ */
69
+ constructor(name2, props, id, flags = 0) {
70
+ this.name = name2;
71
+ this.props = props;
72
+ this.id = id;
73
+ this.flags = flags;
74
+ }
75
+ /**
76
+ Define a node type.
77
+ */
78
+ static define(spec) {
79
+ let props = spec.props && spec.props.length ? /* @__PURE__ */ Object.create(null) : noProps;
80
+ let flags = (spec.top ? 1 : 0) | (spec.skipped ? 2 : 0) | (spec.error ? 4 : 0) | (spec.name == null ? 8 : 0);
81
+ let type = new _NodeType(spec.name || "", props, spec.id, flags);
82
+ if (spec.props)
83
+ for (let src of spec.props) {
84
+ if (!Array.isArray(src))
85
+ src = src(type);
86
+ if (src) {
87
+ if (src[0].perNode)
88
+ throw new RangeError("Can't store a per-node prop on a node type");
89
+ props[src[0].id] = src[1];
90
+ }
91
+ }
92
+ return type;
93
+ }
94
+ /**
95
+ Retrieves a node prop for this type. Will return `undefined` if
96
+ the prop isn't present on this node.
97
+ */
98
+ prop(prop) {
99
+ return this.props[prop.id];
100
+ }
101
+ /**
102
+ True when this is the top node of a grammar.
103
+ */
104
+ get isTop() {
105
+ return (this.flags & 1) > 0;
106
+ }
107
+ /**
108
+ True when this node is produced by a skip rule.
109
+ */
110
+ get isSkipped() {
111
+ return (this.flags & 2) > 0;
112
+ }
113
+ /**
114
+ Indicates whether this is an error node.
115
+ */
116
+ get isError() {
117
+ return (this.flags & 4) > 0;
118
+ }
119
+ /**
120
+ When true, this node type doesn't correspond to a user-declared
121
+ named node, for example because it is used to cache repetition.
122
+ */
123
+ get isAnonymous() {
124
+ return (this.flags & 8) > 0;
125
+ }
126
+ /**
127
+ Returns true when this node's name or one of its
128
+ [groups](#common.NodeProp^group) matches the given string.
129
+ */
130
+ is(name2) {
131
+ if (typeof name2 == "string") {
132
+ if (this.name == name2)
133
+ return true;
134
+ let group = this.prop(NodeProp.group);
135
+ return group ? group.indexOf(name2) > -1 : false;
136
+ }
137
+ return this.id == name2;
138
+ }
139
+ /**
140
+ Create a function from node types to arbitrary values by
141
+ specifying an object whose property names are node or
142
+ [group](#common.NodeProp^group) names. Often useful with
143
+ [`NodeProp.add`](#common.NodeProp.add). You can put multiple
144
+ names, separated by spaces, in a single property name to map
145
+ multiple node names to a single value.
146
+ */
147
+ static match(map) {
148
+ let direct = /* @__PURE__ */ Object.create(null);
149
+ for (let prop in map)
150
+ for (let name2 of prop.split(" "))
151
+ direct[name2] = map[prop];
152
+ return (node) => {
153
+ for (let groups = node.prop(NodeProp.group), i = -1; i < (groups ? groups.length : 0); i++) {
154
+ let found = direct[i < 0 ? node.name : groups[i]];
155
+ if (found)
156
+ return found;
157
+ }
158
+ };
159
+ }
160
+ };
161
+ NodeType.none = new NodeType(
162
+ "",
163
+ /* @__PURE__ */ Object.create(null),
164
+ 0,
165
+ 8
166
+ /* NodeFlag.Anonymous */
167
+ );
168
+ var CachedNode = /* @__PURE__ */ new WeakMap();
169
+ var CachedInnerNode = /* @__PURE__ */ new WeakMap();
170
+ var IterMode;
171
+ (function(IterMode2) {
172
+ IterMode2[IterMode2["ExcludeBuffers"] = 1] = "ExcludeBuffers";
173
+ IterMode2[IterMode2["IncludeAnonymous"] = 2] = "IncludeAnonymous";
174
+ IterMode2[IterMode2["IgnoreMounts"] = 4] = "IgnoreMounts";
175
+ IterMode2[IterMode2["IgnoreOverlays"] = 8] = "IgnoreOverlays";
176
+ IterMode2[IterMode2["EnterBracketed"] = 16] = "EnterBracketed";
177
+ })(IterMode || (IterMode = {}));
178
+ var Tree = class _Tree {
179
+ /**
180
+ Construct a new tree. See also [`Tree.build`](#common.Tree^build).
181
+ */
182
+ constructor(type, children, positions, length, props) {
183
+ this.type = type;
184
+ this.children = children;
185
+ this.positions = positions;
186
+ this.length = length;
187
+ this.props = null;
188
+ if (props && props.length) {
189
+ this.props = /* @__PURE__ */ Object.create(null);
190
+ for (let [prop, value] of props)
191
+ this.props[typeof prop == "number" ? prop : prop.id] = value;
192
+ }
193
+ }
194
+ /**
195
+ @internal
196
+ */
197
+ toString() {
198
+ let mounted = MountedTree.get(this);
199
+ if (mounted && !mounted.overlay)
200
+ return mounted.tree.toString();
201
+ let children = "";
202
+ for (let ch of this.children) {
203
+ let str = ch.toString();
204
+ if (str) {
205
+ if (children)
206
+ children += ",";
207
+ children += str;
208
+ }
209
+ }
210
+ return !this.type.name ? children : (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (children.length ? "(" + children + ")" : "");
211
+ }
212
+ /**
213
+ Get a [tree cursor](#common.TreeCursor) positioned at the top of
214
+ the tree. Mode can be used to [control](#common.IterMode) which
215
+ nodes the cursor visits.
216
+ */
217
+ cursor(mode = 0) {
218
+ return new TreeCursor(this.topNode, mode);
219
+ }
220
+ /**
221
+ Get a [tree cursor](#common.TreeCursor) pointing into this tree
222
+ at the given position and side (see
223
+ [`moveTo`](#common.TreeCursor.moveTo).
224
+ */
225
+ cursorAt(pos, side = 0, mode = 0) {
226
+ let scope = CachedNode.get(this) || this.topNode;
227
+ let cursor = new TreeCursor(scope);
228
+ cursor.moveTo(pos, side);
229
+ CachedNode.set(this, cursor._tree);
230
+ return cursor;
231
+ }
232
+ /**
233
+ Get a [syntax node](#common.SyntaxNode) object for the top of the
234
+ tree.
235
+ */
236
+ get topNode() {
237
+ return new TreeNode(this, 0, 0, null);
238
+ }
239
+ /**
240
+ Get the [syntax node](#common.SyntaxNode) at the given position.
241
+ If `side` is -1, this will move into nodes that end at the
242
+ position. If 1, it'll move into nodes that start at the
243
+ position. With 0, it'll only enter nodes that cover the position
244
+ from both sides.
245
+
246
+ Note that this will not enter
247
+ [overlays](#common.MountedTree.overlay), and you often want
248
+ [`resolveInner`](#common.Tree.resolveInner) instead.
249
+ */
250
+ resolve(pos, side = 0) {
251
+ let node = resolveNode(CachedNode.get(this) || this.topNode, pos, side, false);
252
+ CachedNode.set(this, node);
253
+ return node;
254
+ }
255
+ /**
256
+ Like [`resolve`](#common.Tree.resolve), but will enter
257
+ [overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
258
+ pointing into the innermost overlaid tree at the given position
259
+ (with parent links going through all parent structure, including
260
+ the host trees).
261
+ */
262
+ resolveInner(pos, side = 0) {
263
+ let node = resolveNode(CachedInnerNode.get(this) || this.topNode, pos, side, true);
264
+ CachedInnerNode.set(this, node);
265
+ return node;
266
+ }
267
+ /**
268
+ In some situations, it can be useful to iterate through all
269
+ nodes around a position, including those in overlays that don't
270
+ directly cover the position. This method gives you an iterator
271
+ that will produce all nodes, from small to big, around the given
272
+ position.
273
+ */
274
+ resolveStack(pos, side = 0) {
275
+ return stackIterator(this, pos, side);
276
+ }
277
+ /**
278
+ Iterate over the tree and its children, calling `enter` for any
279
+ node that touches the `from`/`to` region (if given) before
280
+ running over such a node's children, and `leave` (if given) when
281
+ leaving the node. When `enter` returns `false`, that node will
282
+ not have its children iterated over (or `leave` called).
283
+ */
284
+ iterate(spec) {
285
+ let { enter, leave, from = 0, to = this.length } = spec;
286
+ let mode = spec.mode || 0, anon = (mode & IterMode.IncludeAnonymous) > 0;
287
+ for (let c = this.cursor(mode | IterMode.IncludeAnonymous); ; ) {
288
+ let entered = false;
289
+ if (c.from <= to && c.to >= from && (!anon && c.type.isAnonymous || enter(c) !== false)) {
290
+ if (c.firstChild())
291
+ continue;
292
+ entered = true;
293
+ }
294
+ for (; ; ) {
295
+ if (entered && leave && (anon || !c.type.isAnonymous))
296
+ leave(c);
297
+ if (c.nextSibling())
298
+ break;
299
+ if (!c.parent())
300
+ return;
301
+ entered = true;
302
+ }
303
+ }
304
+ }
305
+ /**
306
+ Get the value of the given [node prop](#common.NodeProp) for this
307
+ node. Works with both per-node and per-type props.
308
+ */
309
+ prop(prop) {
310
+ return !prop.perNode ? this.type.prop(prop) : this.props ? this.props[prop.id] : void 0;
311
+ }
312
+ /**
313
+ Returns the node's [per-node props](#common.NodeProp.perNode) in a
314
+ format that can be passed to the [`Tree`](#common.Tree)
315
+ constructor.
316
+ */
317
+ get propValues() {
318
+ let result = [];
319
+ if (this.props)
320
+ for (let id in this.props)
321
+ result.push([+id, this.props[id]]);
322
+ return result;
323
+ }
324
+ /**
325
+ Balance the direct children of this tree, producing a copy of
326
+ which may have children grouped into subtrees with type
327
+ [`NodeType.none`](#common.NodeType^none).
328
+ */
329
+ balance(config = {}) {
330
+ return this.children.length <= 8 ? this : balanceRange(NodeType.none, this.children, this.positions, 0, this.children.length, 0, this.length, (children, positions, length) => new _Tree(this.type, children, positions, length, this.propValues), config.makeTree || ((children, positions, length) => new _Tree(NodeType.none, children, positions, length)));
331
+ }
332
+ /**
333
+ Build a tree from a postfix-ordered buffer of node information,
334
+ or a cursor over such a buffer.
335
+ */
336
+ static build(data) {
337
+ return buildTree(data);
338
+ }
339
+ };
340
+ Tree.empty = new Tree(NodeType.none, [], [], 0);
341
+ var FlatBufferCursor = class _FlatBufferCursor {
342
+ constructor(buffer, index) {
343
+ this.buffer = buffer;
344
+ this.index = index;
345
+ }
346
+ get id() {
347
+ return this.buffer[this.index - 4];
348
+ }
349
+ get start() {
350
+ return this.buffer[this.index - 3];
351
+ }
352
+ get end() {
353
+ return this.buffer[this.index - 2];
354
+ }
355
+ get size() {
356
+ return this.buffer[this.index - 1];
357
+ }
358
+ get pos() {
359
+ return this.index;
360
+ }
361
+ next() {
362
+ this.index -= 4;
363
+ }
364
+ fork() {
365
+ return new _FlatBufferCursor(this.buffer, this.index);
366
+ }
367
+ };
368
+ var TreeBuffer = class _TreeBuffer {
369
+ /**
370
+ Create a tree buffer.
371
+ */
372
+ constructor(buffer, length, set) {
373
+ this.buffer = buffer;
374
+ this.length = length;
375
+ this.set = set;
376
+ }
377
+ /**
378
+ @internal
379
+ */
380
+ get type() {
381
+ return NodeType.none;
382
+ }
383
+ /**
384
+ @internal
385
+ */
386
+ toString() {
387
+ let result = [];
388
+ for (let index = 0; index < this.buffer.length; ) {
389
+ result.push(this.childString(index));
390
+ index = this.buffer[index + 3];
391
+ }
392
+ return result.join(",");
393
+ }
394
+ /**
395
+ @internal
396
+ */
397
+ childString(index) {
398
+ let id = this.buffer[index], endIndex = this.buffer[index + 3];
399
+ let type = this.set.types[id], result = type.name;
400
+ if (/\W/.test(result) && !type.isError)
401
+ result = JSON.stringify(result);
402
+ index += 4;
403
+ if (endIndex == index)
404
+ return result;
405
+ let children = [];
406
+ while (index < endIndex) {
407
+ children.push(this.childString(index));
408
+ index = this.buffer[index + 3];
409
+ }
410
+ return result + "(" + children.join(",") + ")";
411
+ }
412
+ /**
413
+ @internal
414
+ */
415
+ findChild(startIndex, endIndex, dir, pos, side) {
416
+ let { buffer } = this, pick = -1;
417
+ for (let i = startIndex; i != endIndex; i = buffer[i + 3]) {
418
+ if (checkSide(side, pos, buffer[i + 1], buffer[i + 2])) {
419
+ pick = i;
420
+ if (dir > 0)
421
+ break;
422
+ }
423
+ }
424
+ return pick;
425
+ }
426
+ /**
427
+ @internal
428
+ */
429
+ slice(startI, endI, from) {
430
+ let b = this.buffer;
431
+ let copy = new Uint16Array(endI - startI), len = 0;
432
+ for (let i = startI, j = 0; i < endI; ) {
433
+ copy[j++] = b[i++];
434
+ copy[j++] = b[i++] - from;
435
+ let to = copy[j++] = b[i++] - from;
436
+ copy[j++] = b[i++] - startI;
437
+ len = Math.max(len, to);
438
+ }
439
+ return new _TreeBuffer(copy, len, this.set);
440
+ }
441
+ };
442
+ function checkSide(side, pos, from, to) {
443
+ switch (side) {
444
+ case -2:
445
+ return from < pos;
446
+ case -1:
447
+ return to >= pos && from < pos;
448
+ case 0:
449
+ return from < pos && to > pos;
450
+ case 1:
451
+ return from <= pos && to > pos;
452
+ case 2:
453
+ return to > pos;
454
+ case 4:
455
+ return true;
456
+ }
457
+ }
458
+ function resolveNode(node, pos, side, overlays) {
459
+ var _a;
460
+ while (node.from == node.to || (side < 1 ? node.from >= pos : node.from > pos) || (side > -1 ? node.to <= pos : node.to < pos)) {
461
+ let parent = !overlays && node instanceof TreeNode && node.index < 0 ? null : node.parent;
462
+ if (!parent)
463
+ return node;
464
+ node = parent;
465
+ }
466
+ let mode = overlays ? 0 : IterMode.IgnoreOverlays;
467
+ if (overlays)
468
+ for (let scan = node, parent = scan.parent; parent; scan = parent, parent = scan.parent) {
469
+ if (scan instanceof TreeNode && scan.index < 0 && ((_a = parent.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from)
470
+ node = parent;
471
+ }
472
+ for (; ; ) {
473
+ let inner = node.enter(pos, side, mode);
474
+ if (!inner)
475
+ return node;
476
+ node = inner;
477
+ }
478
+ }
479
+ var BaseNode = class {
480
+ cursor(mode = 0) {
481
+ return new TreeCursor(this, mode);
482
+ }
483
+ getChild(type, before = null, after = null) {
484
+ let r = getChildren(this, type, before, after);
485
+ return r.length ? r[0] : null;
486
+ }
487
+ getChildren(type, before = null, after = null) {
488
+ return getChildren(this, type, before, after);
489
+ }
490
+ resolve(pos, side = 0) {
491
+ return resolveNode(this, pos, side, false);
492
+ }
493
+ resolveInner(pos, side = 0) {
494
+ return resolveNode(this, pos, side, true);
495
+ }
496
+ matchContext(context) {
497
+ return matchNodeContext(this.parent, context);
498
+ }
499
+ enterUnfinishedNodesBefore(pos) {
500
+ let scan = this.childBefore(pos), node = this;
501
+ while (scan) {
502
+ let last = scan.lastChild;
503
+ if (!last || last.to != scan.to)
504
+ break;
505
+ if (last.type.isError && last.from == last.to) {
506
+ node = scan;
507
+ scan = last.prevSibling;
508
+ } else {
509
+ scan = last;
510
+ }
511
+ }
512
+ return node;
513
+ }
514
+ get node() {
515
+ return this;
516
+ }
517
+ get next() {
518
+ return this.parent;
519
+ }
520
+ };
521
+ var TreeNode = class _TreeNode extends BaseNode {
522
+ constructor(_tree, from, index, _parent) {
523
+ super();
524
+ this._tree = _tree;
525
+ this.from = from;
526
+ this.index = index;
527
+ this._parent = _parent;
528
+ }
529
+ get type() {
530
+ return this._tree.type;
531
+ }
532
+ get name() {
533
+ return this._tree.type.name;
534
+ }
535
+ get to() {
536
+ return this.from + this._tree.length;
537
+ }
538
+ nextChild(i, dir, pos, side, mode = 0) {
539
+ for (let parent = this; ; ) {
540
+ for (let { children, positions } = parent._tree, e = dir > 0 ? children.length : -1; i != e; i += dir) {
541
+ let next = children[i], start = positions[i] + parent.from, mounted;
542
+ if (!(mode & IterMode.EnterBracketed && next instanceof Tree && (mounted = MountedTree.get(next)) && !mounted.overlay && mounted.bracketed && pos >= start && pos <= start + next.length) && !checkSide(side, pos, start, start + next.length))
543
+ continue;
544
+ if (next instanceof TreeBuffer) {
545
+ if (mode & IterMode.ExcludeBuffers)
546
+ continue;
547
+ let index = next.findChild(0, next.buffer.length, dir, pos - start, side);
548
+ if (index > -1)
549
+ return new BufferNode(new BufferContext(parent, next, i, start), null, index);
550
+ } else if (mode & IterMode.IncludeAnonymous || (!next.type.isAnonymous || hasChild(next))) {
551
+ let mounted2;
552
+ if (!(mode & IterMode.IgnoreMounts) && (mounted2 = MountedTree.get(next)) && !mounted2.overlay)
553
+ return new _TreeNode(mounted2.tree, start, i, parent);
554
+ let inner = new _TreeNode(next, start, i, parent);
555
+ return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
556
+ }
557
+ }
558
+ if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous)
559
+ return null;
560
+ if (parent.index >= 0)
561
+ i = parent.index + dir;
562
+ else
563
+ i = dir < 0 ? -1 : parent._parent._tree.children.length;
564
+ parent = parent._parent;
565
+ if (!parent)
566
+ return null;
567
+ }
568
+ }
569
+ get firstChild() {
570
+ return this.nextChild(
571
+ 0,
572
+ 1,
573
+ 0,
574
+ 4
575
+ /* Side.DontCare */
576
+ );
577
+ }
578
+ get lastChild() {
579
+ return this.nextChild(
580
+ this._tree.children.length - 1,
581
+ -1,
582
+ 0,
583
+ 4
584
+ /* Side.DontCare */
585
+ );
586
+ }
587
+ childAfter(pos) {
588
+ return this.nextChild(
589
+ 0,
590
+ 1,
591
+ pos,
592
+ 2
593
+ /* Side.After */
594
+ );
595
+ }
596
+ childBefore(pos) {
597
+ return this.nextChild(
598
+ this._tree.children.length - 1,
599
+ -1,
600
+ pos,
601
+ -2
602
+ /* Side.Before */
603
+ );
604
+ }
605
+ prop(prop) {
606
+ return this._tree.prop(prop);
607
+ }
608
+ enter(pos, side, mode = 0) {
609
+ let mounted;
610
+ if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
611
+ let rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
612
+ for (let { from, to } of mounted.overlay) {
613
+ if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to >= rPos : to > rPos))
614
+ return new _TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
615
+ }
616
+ }
617
+ return this.nextChild(0, 1, pos, side, mode);
618
+ }
619
+ nextSignificantParent() {
620
+ let val = this;
621
+ while (val.type.isAnonymous && val._parent)
622
+ val = val._parent;
623
+ return val;
624
+ }
625
+ get parent() {
626
+ return this._parent ? this._parent.nextSignificantParent() : null;
627
+ }
628
+ get nextSibling() {
629
+ return this._parent && this.index >= 0 ? this._parent.nextChild(
630
+ this.index + 1,
631
+ 1,
632
+ 0,
633
+ 4
634
+ /* Side.DontCare */
635
+ ) : null;
636
+ }
637
+ get prevSibling() {
638
+ return this._parent && this.index >= 0 ? this._parent.nextChild(
639
+ this.index - 1,
640
+ -1,
641
+ 0,
642
+ 4
643
+ /* Side.DontCare */
644
+ ) : null;
645
+ }
646
+ get tree() {
647
+ return this._tree;
648
+ }
649
+ toTree() {
650
+ return this._tree;
651
+ }
652
+ /**
653
+ @internal
654
+ */
655
+ toString() {
656
+ return this._tree.toString();
657
+ }
658
+ };
659
+ function getChildren(node, type, before, after) {
660
+ let cur = node.cursor(), result = [];
661
+ if (!cur.firstChild())
662
+ return result;
663
+ if (before != null)
664
+ for (let found = false; !found; ) {
665
+ found = cur.type.is(before);
666
+ if (!cur.nextSibling())
667
+ return result;
668
+ }
669
+ for (; ; ) {
670
+ if (after != null && cur.type.is(after))
671
+ return result;
672
+ if (cur.type.is(type))
673
+ result.push(cur.node);
674
+ if (!cur.nextSibling())
675
+ return after == null ? result : [];
676
+ }
677
+ }
678
+ function matchNodeContext(node, context, i = context.length - 1) {
679
+ for (let p = node; i >= 0; p = p.parent) {
680
+ if (!p)
681
+ return false;
682
+ if (!p.type.isAnonymous) {
683
+ if (context[i] && context[i] != p.name)
684
+ return false;
685
+ i--;
686
+ }
687
+ }
688
+ return true;
689
+ }
690
+ var BufferContext = class {
691
+ constructor(parent, buffer, index, start) {
692
+ this.parent = parent;
693
+ this.buffer = buffer;
694
+ this.index = index;
695
+ this.start = start;
696
+ }
697
+ };
698
+ var BufferNode = class _BufferNode extends BaseNode {
699
+ get name() {
700
+ return this.type.name;
701
+ }
702
+ get from() {
703
+ return this.context.start + this.context.buffer.buffer[this.index + 1];
704
+ }
705
+ get to() {
706
+ return this.context.start + this.context.buffer.buffer[this.index + 2];
707
+ }
708
+ constructor(context, _parent, index) {
709
+ super();
710
+ this.context = context;
711
+ this._parent = _parent;
712
+ this.index = index;
713
+ this.type = context.buffer.set.types[context.buffer.buffer[index]];
714
+ }
715
+ child(dir, pos, side) {
716
+ let { buffer } = this.context;
717
+ let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.context.start, side);
718
+ return index < 0 ? null : new _BufferNode(this.context, this, index);
719
+ }
720
+ get firstChild() {
721
+ return this.child(
722
+ 1,
723
+ 0,
724
+ 4
725
+ /* Side.DontCare */
726
+ );
727
+ }
728
+ get lastChild() {
729
+ return this.child(
730
+ -1,
731
+ 0,
732
+ 4
733
+ /* Side.DontCare */
734
+ );
735
+ }
736
+ childAfter(pos) {
737
+ return this.child(
738
+ 1,
739
+ pos,
740
+ 2
741
+ /* Side.After */
742
+ );
743
+ }
744
+ childBefore(pos) {
745
+ return this.child(
746
+ -1,
747
+ pos,
748
+ -2
749
+ /* Side.Before */
750
+ );
751
+ }
752
+ prop(prop) {
753
+ return this.type.prop(prop);
754
+ }
755
+ enter(pos, side, mode = 0) {
756
+ if (mode & IterMode.ExcludeBuffers)
757
+ return null;
758
+ let { buffer } = this.context;
759
+ let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], side > 0 ? 1 : -1, pos - this.context.start, side);
760
+ return index < 0 ? null : new _BufferNode(this.context, this, index);
761
+ }
762
+ get parent() {
763
+ return this._parent || this.context.parent.nextSignificantParent();
764
+ }
765
+ externalSibling(dir) {
766
+ return this._parent ? null : this.context.parent.nextChild(
767
+ this.context.index + dir,
768
+ dir,
769
+ 0,
770
+ 4
771
+ /* Side.DontCare */
772
+ );
773
+ }
774
+ get nextSibling() {
775
+ let { buffer } = this.context;
776
+ let after = buffer.buffer[this.index + 3];
777
+ if (after < (this._parent ? buffer.buffer[this._parent.index + 3] : buffer.buffer.length))
778
+ return new _BufferNode(this.context, this._parent, after);
779
+ return this.externalSibling(1);
780
+ }
781
+ get prevSibling() {
782
+ let { buffer } = this.context;
783
+ let parentStart = this._parent ? this._parent.index + 4 : 0;
784
+ if (this.index == parentStart)
785
+ return this.externalSibling(-1);
786
+ return new _BufferNode(this.context, this._parent, buffer.findChild(
787
+ parentStart,
788
+ this.index,
789
+ -1,
790
+ 0,
791
+ 4
792
+ /* Side.DontCare */
793
+ ));
794
+ }
795
+ get tree() {
796
+ return null;
797
+ }
798
+ toTree() {
799
+ let children = [], positions = [];
800
+ let { buffer } = this.context;
801
+ let startI = this.index + 4, endI = buffer.buffer[this.index + 3];
802
+ if (endI > startI) {
803
+ let from = buffer.buffer[this.index + 1];
804
+ children.push(buffer.slice(startI, endI, from));
805
+ positions.push(0);
806
+ }
807
+ return new Tree(this.type, children, positions, this.to - this.from);
808
+ }
809
+ /**
810
+ @internal
811
+ */
812
+ toString() {
813
+ return this.context.buffer.childString(this.index);
814
+ }
815
+ };
816
+ function iterStack(heads) {
817
+ if (!heads.length)
818
+ return null;
819
+ let pick = 0, picked = heads[0];
820
+ for (let i = 1; i < heads.length; i++) {
821
+ let node = heads[i];
822
+ if (node.from > picked.from || node.to < picked.to) {
823
+ picked = node;
824
+ pick = i;
825
+ }
826
+ }
827
+ let next = picked instanceof TreeNode && picked.index < 0 ? null : picked.parent;
828
+ let newHeads = heads.slice();
829
+ if (next)
830
+ newHeads[pick] = next;
831
+ else
832
+ newHeads.splice(pick, 1);
833
+ return new StackIterator(newHeads, picked);
834
+ }
835
+ var StackIterator = class {
836
+ constructor(heads, node) {
837
+ this.heads = heads;
838
+ this.node = node;
839
+ }
840
+ get next() {
841
+ return iterStack(this.heads);
842
+ }
843
+ };
844
+ function stackIterator(tree, pos, side) {
845
+ let inner = tree.resolveInner(pos, side), layers = null;
846
+ for (let scan = inner instanceof TreeNode ? inner : inner.context.parent; scan; scan = scan.parent) {
847
+ if (scan.index < 0) {
848
+ let parent = scan.parent;
849
+ (layers || (layers = [inner])).push(parent.resolve(pos, side));
850
+ scan = parent;
851
+ } else {
852
+ let mount = MountedTree.get(scan.tree);
853
+ if (mount && mount.overlay && mount.overlay[0].from <= pos && mount.overlay[mount.overlay.length - 1].to >= pos) {
854
+ let root = new TreeNode(mount.tree, mount.overlay[0].from + scan.from, -1, scan);
855
+ (layers || (layers = [inner])).push(resolveNode(root, pos, side, false));
856
+ }
857
+ }
858
+ }
859
+ return layers ? iterStack(layers) : inner;
860
+ }
861
+ var TreeCursor = class {
862
+ /**
863
+ Shorthand for `.type.name`.
864
+ */
865
+ get name() {
866
+ return this.type.name;
867
+ }
868
+ /**
869
+ @internal
870
+ */
871
+ constructor(node, mode = 0) {
872
+ this.buffer = null;
873
+ this.stack = [];
874
+ this.index = 0;
875
+ this.bufferNode = null;
876
+ this.mode = mode & ~IterMode.EnterBracketed;
877
+ if (node instanceof TreeNode) {
878
+ this.yieldNode(node);
879
+ } else {
880
+ this._tree = node.context.parent;
881
+ this.buffer = node.context;
882
+ for (let n = node._parent; n; n = n._parent)
883
+ this.stack.unshift(n.index);
884
+ this.bufferNode = node;
885
+ this.yieldBuf(node.index);
886
+ }
887
+ }
888
+ yieldNode(node) {
889
+ if (!node)
890
+ return false;
891
+ this._tree = node;
892
+ this.type = node.type;
893
+ this.from = node.from;
894
+ this.to = node.to;
895
+ return true;
896
+ }
897
+ yieldBuf(index, type) {
898
+ this.index = index;
899
+ let { start, buffer } = this.buffer;
900
+ this.type = type || buffer.set.types[buffer.buffer[index]];
901
+ this.from = start + buffer.buffer[index + 1];
902
+ this.to = start + buffer.buffer[index + 2];
903
+ return true;
904
+ }
905
+ /**
906
+ @internal
907
+ */
908
+ yield(node) {
909
+ if (!node)
910
+ return false;
911
+ if (node instanceof TreeNode) {
912
+ this.buffer = null;
913
+ return this.yieldNode(node);
914
+ }
915
+ this.buffer = node.context;
916
+ return this.yieldBuf(node.index, node.type);
917
+ }
918
+ /**
919
+ @internal
920
+ */
921
+ toString() {
922
+ return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
923
+ }
924
+ /**
925
+ @internal
926
+ */
927
+ enterChild(dir, pos, side) {
928
+ if (!this.buffer)
929
+ return this.yield(this._tree.nextChild(dir < 0 ? this._tree._tree.children.length - 1 : 0, dir, pos, side, this.mode));
930
+ let { buffer } = this.buffer;
931
+ let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.buffer.start, side);
932
+ if (index < 0)
933
+ return false;
934
+ this.stack.push(this.index);
935
+ return this.yieldBuf(index);
936
+ }
937
+ /**
938
+ Move the cursor to this node's first child. When this returns
939
+ false, the node has no child, and the cursor has not been moved.
940
+ */
941
+ firstChild() {
942
+ return this.enterChild(
943
+ 1,
944
+ 0,
945
+ 4
946
+ /* Side.DontCare */
947
+ );
948
+ }
949
+ /**
950
+ Move the cursor to this node's last child.
951
+ */
952
+ lastChild() {
953
+ return this.enterChild(
954
+ -1,
955
+ 0,
956
+ 4
957
+ /* Side.DontCare */
958
+ );
959
+ }
960
+ /**
961
+ Move the cursor to the first child that ends after `pos`.
962
+ */
963
+ childAfter(pos) {
964
+ return this.enterChild(
965
+ 1,
966
+ pos,
967
+ 2
968
+ /* Side.After */
969
+ );
970
+ }
971
+ /**
972
+ Move to the last child that starts before `pos`.
973
+ */
974
+ childBefore(pos) {
975
+ return this.enterChild(
976
+ -1,
977
+ pos,
978
+ -2
979
+ /* Side.Before */
980
+ );
981
+ }
982
+ /**
983
+ Move the cursor to the child around `pos`. If side is -1 the
984
+ child may end at that position, when 1 it may start there. This
985
+ will also enter [overlaid](#common.MountedTree.overlay)
986
+ [mounted](#common.NodeProp^mounted) trees unless `overlays` is
987
+ set to false.
988
+ */
989
+ enter(pos, side, mode = this.mode) {
990
+ if (!this.buffer)
991
+ return this.yield(this._tree.enter(pos, side, mode));
992
+ return mode & IterMode.ExcludeBuffers ? false : this.enterChild(1, pos, side);
993
+ }
994
+ /**
995
+ Move to the node's parent node, if this isn't the top node.
996
+ */
997
+ parent() {
998
+ if (!this.buffer)
999
+ return this.yieldNode(this.mode & IterMode.IncludeAnonymous ? this._tree._parent : this._tree.parent);
1000
+ if (this.stack.length)
1001
+ return this.yieldBuf(this.stack.pop());
1002
+ let parent = this.mode & IterMode.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
1003
+ this.buffer = null;
1004
+ return this.yieldNode(parent);
1005
+ }
1006
+ /**
1007
+ @internal
1008
+ */
1009
+ sibling(dir) {
1010
+ if (!this.buffer)
1011
+ return !this._tree._parent ? false : this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + dir, dir, 0, 4, this.mode));
1012
+ let { buffer } = this.buffer, d = this.stack.length - 1;
1013
+ if (dir < 0) {
1014
+ let parentStart = d < 0 ? 0 : this.stack[d] + 4;
1015
+ if (this.index != parentStart)
1016
+ return this.yieldBuf(buffer.findChild(
1017
+ parentStart,
1018
+ this.index,
1019
+ -1,
1020
+ 0,
1021
+ 4
1022
+ /* Side.DontCare */
1023
+ ));
1024
+ } else {
1025
+ let after = buffer.buffer[this.index + 3];
1026
+ if (after < (d < 0 ? buffer.buffer.length : buffer.buffer[this.stack[d] + 3]))
1027
+ return this.yieldBuf(after);
1028
+ }
1029
+ return d < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + dir, dir, 0, 4, this.mode)) : false;
1030
+ }
1031
+ /**
1032
+ Move to this node's next sibling, if any.
1033
+ */
1034
+ nextSibling() {
1035
+ return this.sibling(1);
1036
+ }
1037
+ /**
1038
+ Move to this node's previous sibling, if any.
1039
+ */
1040
+ prevSibling() {
1041
+ return this.sibling(-1);
1042
+ }
1043
+ atLastNode(dir) {
1044
+ let index, parent, { buffer } = this;
1045
+ if (buffer) {
1046
+ if (dir > 0) {
1047
+ if (this.index < buffer.buffer.buffer.length)
1048
+ return false;
1049
+ } else {
1050
+ for (let i = 0; i < this.index; i++)
1051
+ if (buffer.buffer.buffer[i + 3] < this.index)
1052
+ return false;
1053
+ }
1054
+ ({ index, parent } = buffer);
1055
+ } else {
1056
+ ({ index, _parent: parent } = this._tree);
1057
+ }
1058
+ for (; parent; { index, _parent: parent } = parent) {
1059
+ if (index > -1)
1060
+ for (let i = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i != e; i += dir) {
1061
+ let child = parent._tree.children[i];
1062
+ if (this.mode & IterMode.IncludeAnonymous || child instanceof TreeBuffer || !child.type.isAnonymous || hasChild(child))
1063
+ return false;
1064
+ }
1065
+ }
1066
+ return true;
1067
+ }
1068
+ move(dir, enter) {
1069
+ if (enter && this.enterChild(
1070
+ dir,
1071
+ 0,
1072
+ 4
1073
+ /* Side.DontCare */
1074
+ ))
1075
+ return true;
1076
+ for (; ; ) {
1077
+ if (this.sibling(dir))
1078
+ return true;
1079
+ if (this.atLastNode(dir) || !this.parent())
1080
+ return false;
1081
+ }
1082
+ }
1083
+ /**
1084
+ Move to the next node in a
1085
+ [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
1086
+ traversal, going from a node to its first child or, if the
1087
+ current node is empty or `enter` is false, its next sibling or
1088
+ the next sibling of the first parent node that has one.
1089
+ */
1090
+ next(enter = true) {
1091
+ return this.move(1, enter);
1092
+ }
1093
+ /**
1094
+ Move to the next node in a last-to-first pre-order traversal. A
1095
+ node is followed by its last child or, if it has none, its
1096
+ previous sibling or the previous sibling of the first parent
1097
+ node that has one.
1098
+ */
1099
+ prev(enter = true) {
1100
+ return this.move(-1, enter);
1101
+ }
1102
+ /**
1103
+ Move the cursor to the innermost node that covers `pos`. If
1104
+ `side` is -1, it will enter nodes that end at `pos`. If it is 1,
1105
+ it will enter nodes that start at `pos`.
1106
+ */
1107
+ moveTo(pos, side = 0) {
1108
+ while (this.from == this.to || (side < 1 ? this.from >= pos : this.from > pos) || (side > -1 ? this.to <= pos : this.to < pos))
1109
+ if (!this.parent())
1110
+ break;
1111
+ while (this.enterChild(1, pos, side)) {
1112
+ }
1113
+ return this;
1114
+ }
1115
+ /**
1116
+ Get a [syntax node](#common.SyntaxNode) at the cursor's current
1117
+ position.
1118
+ */
1119
+ get node() {
1120
+ if (!this.buffer)
1121
+ return this._tree;
1122
+ let cache = this.bufferNode, result = null, depth = 0;
1123
+ if (cache && cache.context == this.buffer) {
1124
+ scan: for (let index = this.index, d = this.stack.length; d >= 0; ) {
1125
+ for (let c = cache; c; c = c._parent)
1126
+ if (c.index == index) {
1127
+ if (index == this.index)
1128
+ return c;
1129
+ result = c;
1130
+ depth = d + 1;
1131
+ break scan;
1132
+ }
1133
+ index = this.stack[--d];
1134
+ }
1135
+ }
1136
+ for (let i = depth; i < this.stack.length; i++)
1137
+ result = new BufferNode(this.buffer, result, this.stack[i]);
1138
+ return this.bufferNode = new BufferNode(this.buffer, result, this.index);
1139
+ }
1140
+ /**
1141
+ Get the [tree](#common.Tree) that represents the current node, if
1142
+ any. Will return null when the node is in a [tree
1143
+ buffer](#common.TreeBuffer).
1144
+ */
1145
+ get tree() {
1146
+ return this.buffer ? null : this._tree._tree;
1147
+ }
1148
+ /**
1149
+ Iterate over the current node and all its descendants, calling
1150
+ `enter` when entering a node and `leave`, if given, when leaving
1151
+ one. When `enter` returns `false`, any children of that node are
1152
+ skipped, and `leave` isn't called for it.
1153
+ */
1154
+ iterate(enter, leave) {
1155
+ for (let depth = 0; ; ) {
1156
+ let mustLeave = false;
1157
+ if (this.type.isAnonymous || enter(this) !== false) {
1158
+ if (this.firstChild()) {
1159
+ depth++;
1160
+ continue;
1161
+ }
1162
+ if (!this.type.isAnonymous)
1163
+ mustLeave = true;
1164
+ }
1165
+ for (; ; ) {
1166
+ if (mustLeave && leave)
1167
+ leave(this);
1168
+ mustLeave = this.type.isAnonymous;
1169
+ if (!depth)
1170
+ return;
1171
+ if (this.nextSibling())
1172
+ break;
1173
+ this.parent();
1174
+ depth--;
1175
+ mustLeave = true;
1176
+ }
1177
+ }
1178
+ }
1179
+ /**
1180
+ Test whether the current node matches a given context—a sequence
1181
+ of direct parent node names. Empty strings in the context array
1182
+ are treated as wildcards.
1183
+ */
1184
+ matchContext(context) {
1185
+ if (!this.buffer)
1186
+ return matchNodeContext(this.node.parent, context);
1187
+ let { buffer } = this.buffer, { types } = buffer.set;
1188
+ for (let i = context.length - 1, d = this.stack.length - 1; i >= 0; d--) {
1189
+ if (d < 0)
1190
+ return matchNodeContext(this._tree, context, i);
1191
+ let type = types[buffer.buffer[this.stack[d]]];
1192
+ if (!type.isAnonymous) {
1193
+ if (context[i] && context[i] != type.name)
1194
+ return false;
1195
+ i--;
1196
+ }
1197
+ }
1198
+ return true;
1199
+ }
1200
+ };
1201
+ function hasChild(tree) {
1202
+ return tree.children.some((ch) => ch instanceof TreeBuffer || !ch.type.isAnonymous || hasChild(ch));
1203
+ }
1204
+ function buildTree(data) {
1205
+ var _a;
1206
+ let { buffer, nodeSet, maxBufferLength = DefaultBufferLength, reused = [], minRepeatType = nodeSet.types.length } = data;
1207
+ let cursor = Array.isArray(buffer) ? new FlatBufferCursor(buffer, buffer.length) : buffer;
1208
+ let types = nodeSet.types;
1209
+ let contextHash = 0, lookAhead = 0;
1210
+ function takeNode(parentStart, minPos, children2, positions2, inRepeat, depth) {
1211
+ let { id, start, end, size } = cursor;
1212
+ let lookAheadAtStart = lookAhead, contextAtStart = contextHash;
1213
+ if (size < 0) {
1214
+ cursor.next();
1215
+ if (size == -1) {
1216
+ let node2 = reused[id];
1217
+ children2.push(node2);
1218
+ positions2.push(start - parentStart);
1219
+ return;
1220
+ } else if (size == -3) {
1221
+ contextHash = id;
1222
+ return;
1223
+ } else if (size == -4) {
1224
+ lookAhead = id;
1225
+ return;
1226
+ } else {
1227
+ throw new RangeError(`Unrecognized record size: ${size}`);
1228
+ }
1229
+ }
1230
+ let type = types[id], node, buffer2;
1231
+ let startPos = start - parentStart;
1232
+ if (end - start <= maxBufferLength && (buffer2 = findBufferSize(cursor.pos - minPos, inRepeat))) {
1233
+ let data2 = new Uint16Array(buffer2.size - buffer2.skip);
1234
+ let endPos = cursor.pos - buffer2.size, index = data2.length;
1235
+ while (cursor.pos > endPos)
1236
+ index = copyToBuffer(buffer2.start, data2, index);
1237
+ node = new TreeBuffer(data2, end - buffer2.start, nodeSet);
1238
+ startPos = buffer2.start - parentStart;
1239
+ } else {
1240
+ let endPos = cursor.pos - size;
1241
+ cursor.next();
1242
+ let localChildren = [], localPositions = [];
1243
+ let localInRepeat = id >= minRepeatType ? id : -1;
1244
+ let lastGroup = 0, lastEnd = end;
1245
+ while (cursor.pos > endPos) {
1246
+ if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {
1247
+ if (cursor.end <= lastEnd - maxBufferLength) {
1248
+ makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart, contextAtStart);
1249
+ lastGroup = localChildren.length;
1250
+ lastEnd = cursor.end;
1251
+ }
1252
+ cursor.next();
1253
+ } else if (depth > 2500) {
1254
+ takeFlatNode(start, endPos, localChildren, localPositions);
1255
+ } else {
1256
+ takeNode(start, endPos, localChildren, localPositions, localInRepeat, depth + 1);
1257
+ }
1258
+ }
1259
+ if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)
1260
+ makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart, contextAtStart);
1261
+ localChildren.reverse();
1262
+ localPositions.reverse();
1263
+ if (localInRepeat > -1 && lastGroup > 0) {
1264
+ let make = makeBalanced(type, contextAtStart);
1265
+ node = balanceRange(type, localChildren, localPositions, 0, localChildren.length, 0, end - start, make, make);
1266
+ } else {
1267
+ node = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end, contextAtStart);
1268
+ }
1269
+ }
1270
+ children2.push(node);
1271
+ positions2.push(startPos);
1272
+ }
1273
+ function takeFlatNode(parentStart, minPos, children2, positions2) {
1274
+ let nodes = [];
1275
+ let nodeCount = 0, stopAt = -1;
1276
+ while (cursor.pos > minPos) {
1277
+ let { id, start, end, size } = cursor;
1278
+ if (size > 4) {
1279
+ cursor.next();
1280
+ } else if (stopAt > -1 && start < stopAt) {
1281
+ break;
1282
+ } else {
1283
+ if (stopAt < 0)
1284
+ stopAt = end - maxBufferLength;
1285
+ nodes.push(id, start, end);
1286
+ nodeCount++;
1287
+ cursor.next();
1288
+ }
1289
+ }
1290
+ if (nodeCount) {
1291
+ let buffer2 = new Uint16Array(nodeCount * 4);
1292
+ let start = nodes[nodes.length - 2];
1293
+ for (let i = nodes.length - 3, j = 0; i >= 0; i -= 3) {
1294
+ buffer2[j++] = nodes[i];
1295
+ buffer2[j++] = nodes[i + 1] - start;
1296
+ buffer2[j++] = nodes[i + 2] - start;
1297
+ buffer2[j++] = j;
1298
+ }
1299
+ children2.push(new TreeBuffer(buffer2, nodes[2] - start, nodeSet));
1300
+ positions2.push(start - parentStart);
1301
+ }
1302
+ }
1303
+ function makeBalanced(type, contextHash2) {
1304
+ return (children2, positions2, length2) => {
1305
+ let lookAhead2 = 0, lastI = children2.length - 1, last, lookAheadProp;
1306
+ if (lastI >= 0 && (last = children2[lastI]) instanceof Tree) {
1307
+ if (!lastI && last.type == type && last.length == length2)
1308
+ return last;
1309
+ if (lookAheadProp = last.prop(NodeProp.lookAhead))
1310
+ lookAhead2 = positions2[lastI] + last.length + lookAheadProp;
1311
+ }
1312
+ return makeTree(type, children2, positions2, length2, lookAhead2, contextHash2);
1313
+ };
1314
+ }
1315
+ function makeRepeatLeaf(children2, positions2, base, i, from, to, type, lookAhead2, contextHash2) {
1316
+ let localChildren = [], localPositions = [];
1317
+ while (children2.length > i) {
1318
+ localChildren.push(children2.pop());
1319
+ localPositions.push(positions2.pop() + base - from);
1320
+ }
1321
+ children2.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead2 - to, contextHash2));
1322
+ positions2.push(from - base);
1323
+ }
1324
+ function makeTree(type, children2, positions2, length2, lookAhead2, contextHash2, props) {
1325
+ if (contextHash2) {
1326
+ let pair = [NodeProp.contextHash, contextHash2];
1327
+ props = props ? [pair].concat(props) : [pair];
1328
+ }
1329
+ if (lookAhead2 > 25) {
1330
+ let pair = [NodeProp.lookAhead, lookAhead2];
1331
+ props = props ? [pair].concat(props) : [pair];
1332
+ }
1333
+ return new Tree(type, children2, positions2, length2, props);
1334
+ }
1335
+ function findBufferSize(maxSize, inRepeat) {
1336
+ let fork = cursor.fork();
1337
+ let size = 0, start = 0, skip = 0, minStart = fork.end - maxBufferLength;
1338
+ let result = { size: 0, start: 0, skip: 0 };
1339
+ scan: for (let minPos = fork.pos - maxSize; fork.pos > minPos; ) {
1340
+ let nodeSize2 = fork.size;
1341
+ if (fork.id == inRepeat && nodeSize2 >= 0) {
1342
+ result.size = size;
1343
+ result.start = start;
1344
+ result.skip = skip;
1345
+ skip += 4;
1346
+ size += 4;
1347
+ fork.next();
1348
+ continue;
1349
+ }
1350
+ let startPos = fork.pos - nodeSize2;
1351
+ if (nodeSize2 < 0 || startPos < minPos || fork.start < minStart)
1352
+ break;
1353
+ let localSkipped = fork.id >= minRepeatType ? 4 : 0;
1354
+ let nodeStart = fork.start;
1355
+ fork.next();
1356
+ while (fork.pos > startPos) {
1357
+ if (fork.size < 0) {
1358
+ if (fork.size == -3 || fork.size == -4)
1359
+ localSkipped += 4;
1360
+ else
1361
+ break scan;
1362
+ } else if (fork.id >= minRepeatType) {
1363
+ localSkipped += 4;
1364
+ }
1365
+ fork.next();
1366
+ }
1367
+ start = nodeStart;
1368
+ size += nodeSize2;
1369
+ skip += localSkipped;
1370
+ }
1371
+ if (inRepeat < 0 || size == maxSize) {
1372
+ result.size = size;
1373
+ result.start = start;
1374
+ result.skip = skip;
1375
+ }
1376
+ return result.size > 4 ? result : void 0;
1377
+ }
1378
+ function copyToBuffer(bufferStart, buffer2, index) {
1379
+ let { id, start, end, size } = cursor;
1380
+ cursor.next();
1381
+ if (size >= 0 && id < minRepeatType) {
1382
+ let startIndex = index;
1383
+ if (size > 4) {
1384
+ let endPos = cursor.pos - (size - 4);
1385
+ while (cursor.pos > endPos)
1386
+ index = copyToBuffer(bufferStart, buffer2, index);
1387
+ }
1388
+ buffer2[--index] = startIndex;
1389
+ buffer2[--index] = end - bufferStart;
1390
+ buffer2[--index] = start - bufferStart;
1391
+ buffer2[--index] = id;
1392
+ } else if (size == -3) {
1393
+ contextHash = id;
1394
+ } else if (size == -4) {
1395
+ lookAhead = id;
1396
+ }
1397
+ return index;
1398
+ }
1399
+ let children = [], positions = [];
1400
+ while (cursor.pos > 0)
1401
+ takeNode(data.start || 0, data.bufferStart || 0, children, positions, -1, 0);
1402
+ let length = (_a = data.length) !== null && _a !== void 0 ? _a : children.length ? positions[0] + children[0].length : 0;
1403
+ return new Tree(types[data.topID], children.reverse(), positions.reverse(), length);
1404
+ }
1405
+ var nodeSizeCache = /* @__PURE__ */ new WeakMap();
1406
+ function nodeSize(balanceType, node) {
1407
+ if (!balanceType.isAnonymous || node instanceof TreeBuffer || node.type != balanceType)
1408
+ return 1;
1409
+ let size = nodeSizeCache.get(node);
1410
+ if (size == null) {
1411
+ size = 1;
1412
+ for (let child of node.children) {
1413
+ if (child.type != balanceType || !(child instanceof Tree)) {
1414
+ size = 1;
1415
+ break;
1416
+ }
1417
+ size += nodeSize(balanceType, child);
1418
+ }
1419
+ nodeSizeCache.set(node, size);
1420
+ }
1421
+ return size;
1422
+ }
1423
+ function balanceRange(balanceType, children, positions, from, to, start, length, mkTop, mkTree) {
1424
+ let total = 0;
1425
+ for (let i = from; i < to; i++)
1426
+ total += nodeSize(balanceType, children[i]);
1427
+ let maxChild = Math.ceil(
1428
+ total * 1.5 / 8
1429
+ /* Balance.BranchFactor */
1430
+ );
1431
+ let localChildren = [], localPositions = [];
1432
+ function divide(children2, positions2, from2, to2, offset) {
1433
+ for (let i = from2; i < to2; ) {
1434
+ let groupFrom = i, groupStart = positions2[i], groupSize = nodeSize(balanceType, children2[i]);
1435
+ i++;
1436
+ for (; i < to2; i++) {
1437
+ let nextSize = nodeSize(balanceType, children2[i]);
1438
+ if (groupSize + nextSize >= maxChild)
1439
+ break;
1440
+ groupSize += nextSize;
1441
+ }
1442
+ if (i == groupFrom + 1) {
1443
+ if (groupSize > maxChild) {
1444
+ let only = children2[groupFrom];
1445
+ divide(only.children, only.positions, 0, only.children.length, positions2[groupFrom] + offset);
1446
+ continue;
1447
+ }
1448
+ localChildren.push(children2[groupFrom]);
1449
+ } else {
1450
+ let length2 = positions2[i - 1] + children2[i - 1].length - groupStart;
1451
+ localChildren.push(balanceRange(balanceType, children2, positions2, groupFrom, i, groupStart, length2, null, mkTree));
1452
+ }
1453
+ localPositions.push(groupStart + offset - start);
1454
+ }
1455
+ }
1456
+ divide(children, positions, from, to, 0);
1457
+ return (mkTop || mkTree)(localChildren, localPositions, length);
1458
+ }
1459
+ var stoppedInner = new NodeProp({ perNode: true });
1460
+
1461
+ // ../node_modules/.pnpm/@lezer+highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js
1462
+ var nextTagID = 0;
1463
+ var Tag = class _Tag {
1464
+ /**
1465
+ @internal
1466
+ */
1467
+ constructor(name2, set, base, modified) {
1468
+ this.name = name2;
1469
+ this.set = set;
1470
+ this.base = base;
1471
+ this.modified = modified;
1472
+ this.id = nextTagID++;
1473
+ }
1474
+ toString() {
1475
+ let { name: name2 } = this;
1476
+ for (let mod of this.modified)
1477
+ if (mod.name)
1478
+ name2 = `${mod.name}(${name2})`;
1479
+ return name2;
1480
+ }
1481
+ static define(nameOrParent, parent) {
1482
+ let name2 = typeof nameOrParent == "string" ? nameOrParent : "?";
1483
+ if (nameOrParent instanceof _Tag)
1484
+ parent = nameOrParent;
1485
+ if (parent === null || parent === void 0 ? void 0 : parent.base)
1486
+ throw new Error("Can not derive from a modified tag");
1487
+ let tag = new _Tag(name2, [], null, []);
1488
+ tag.set.push(tag);
1489
+ if (parent)
1490
+ for (let t2 of parent.set)
1491
+ tag.set.push(t2);
1492
+ return tag;
1493
+ }
1494
+ /**
1495
+ Define a tag _modifier_, which is a function that, given a tag,
1496
+ will return a tag that is a subtag of the original. Applying the
1497
+ same modifier to a twice tag will return the same value (`m1(t1)
1498
+ == m1(t1)`) and applying multiple modifiers will, regardless or
1499
+ order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
1500
+
1501
+ When multiple modifiers are applied to a given base tag, each
1502
+ smaller set of modifiers is registered as a parent, so that for
1503
+ example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
1504
+ `m1(m3(t1)`, and so on.
1505
+ */
1506
+ static defineModifier(name2) {
1507
+ let mod = new Modifier(name2);
1508
+ return (tag) => {
1509
+ if (tag.modified.indexOf(mod) > -1)
1510
+ return tag;
1511
+ return Modifier.get(tag.base || tag, tag.modified.concat(mod).sort((a, b) => a.id - b.id));
1512
+ };
1513
+ }
1514
+ };
1515
+ var nextModifierID = 0;
1516
+ var Modifier = class _Modifier {
1517
+ constructor(name2) {
1518
+ this.name = name2;
1519
+ this.instances = [];
1520
+ this.id = nextModifierID++;
1521
+ }
1522
+ static get(base, mods) {
1523
+ if (!mods.length)
1524
+ return base;
1525
+ let exists = mods[0].instances.find((t2) => t2.base == base && sameArray(mods, t2.modified));
1526
+ if (exists)
1527
+ return exists;
1528
+ let set = [], tag = new Tag(base.name, set, base, mods);
1529
+ for (let m of mods)
1530
+ m.instances.push(tag);
1531
+ let configs = powerSet(mods);
1532
+ for (let parent of base.set)
1533
+ if (!parent.modified.length)
1534
+ for (let config of configs)
1535
+ set.push(_Modifier.get(parent, config));
1536
+ return tag;
1537
+ }
1538
+ };
1539
+ function sameArray(a, b) {
1540
+ return a.length == b.length && a.every((x, i) => x == b[i]);
1541
+ }
1542
+ function powerSet(array) {
1543
+ let sets = [[]];
1544
+ for (let i = 0; i < array.length; i++) {
1545
+ for (let j = 0, e = sets.length; j < e; j++) {
1546
+ sets.push(sets[j].concat(array[i]));
1547
+ }
1548
+ }
1549
+ return sets.sort((a, b) => b.length - a.length);
1550
+ }
1551
+ var ruleNodeProp = new NodeProp({
1552
+ combine(a, b) {
1553
+ let cur, root, take;
1554
+ while (a || b) {
1555
+ if (!a || b && a.depth >= b.depth) {
1556
+ take = b;
1557
+ b = b.next;
1558
+ } else {
1559
+ take = a;
1560
+ a = a.next;
1561
+ }
1562
+ if (cur && cur.mode == take.mode && !take.context && !cur.context)
1563
+ continue;
1564
+ let copy = new Rule(take.tags, take.mode, take.context);
1565
+ if (cur)
1566
+ cur.next = copy;
1567
+ else
1568
+ root = copy;
1569
+ cur = copy;
1570
+ }
1571
+ return root;
1572
+ }
1573
+ });
1574
+ var Rule = class {
1575
+ constructor(tags2, mode, context, next) {
1576
+ this.tags = tags2;
1577
+ this.mode = mode;
1578
+ this.context = context;
1579
+ this.next = next;
1580
+ }
1581
+ get opaque() {
1582
+ return this.mode == 0;
1583
+ }
1584
+ get inherit() {
1585
+ return this.mode == 1;
1586
+ }
1587
+ sort(other) {
1588
+ if (!other || other.depth < this.depth) {
1589
+ this.next = other;
1590
+ return this;
1591
+ }
1592
+ other.next = this.sort(other.next);
1593
+ return other;
1594
+ }
1595
+ get depth() {
1596
+ return this.context ? this.context.length : 0;
1597
+ }
1598
+ };
1599
+ Rule.empty = new Rule([], 2, null);
1600
+ function tagHighlighter(tags2, options) {
1601
+ let map = /* @__PURE__ */ Object.create(null);
1602
+ for (let style of tags2) {
1603
+ if (!Array.isArray(style.tag))
1604
+ map[style.tag.id] = style.class;
1605
+ else
1606
+ for (let tag of style.tag)
1607
+ map[tag.id] = style.class;
1608
+ }
1609
+ let { scope, all = null } = options || {};
1610
+ return {
1611
+ style: (tags3) => {
1612
+ let cls = all;
1613
+ for (let tag of tags3) {
1614
+ for (let sub of tag.set) {
1615
+ let tagClass = map[sub.id];
1616
+ if (tagClass) {
1617
+ cls = cls ? cls + " " + tagClass : tagClass;
1618
+ break;
1619
+ }
1620
+ }
1621
+ }
1622
+ return cls;
1623
+ },
1624
+ scope
1625
+ };
1626
+ }
1627
+ var t = Tag.define;
1628
+ var comment = t();
1629
+ var name = t();
1630
+ var typeName = t(name);
1631
+ var propertyName = t(name);
1632
+ var literal = t();
1633
+ var string = t(literal);
1634
+ var number = t(literal);
1635
+ var content = t();
1636
+ var heading = t(content);
1637
+ var keyword = t();
1638
+ var operator = t();
1639
+ var punctuation = t();
1640
+ var bracket = t(punctuation);
1641
+ var meta = t();
1642
+ var tags = {
1643
+ /**
1644
+ A comment.
1645
+ */
1646
+ comment,
1647
+ /**
1648
+ A line [comment](#highlight.tags.comment).
1649
+ */
1650
+ lineComment: t(comment),
1651
+ /**
1652
+ A block [comment](#highlight.tags.comment).
1653
+ */
1654
+ blockComment: t(comment),
1655
+ /**
1656
+ A documentation [comment](#highlight.tags.comment).
1657
+ */
1658
+ docComment: t(comment),
1659
+ /**
1660
+ Any kind of identifier.
1661
+ */
1662
+ name,
1663
+ /**
1664
+ The [name](#highlight.tags.name) of a variable.
1665
+ */
1666
+ variableName: t(name),
1667
+ /**
1668
+ A type [name](#highlight.tags.name).
1669
+ */
1670
+ typeName,
1671
+ /**
1672
+ A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
1673
+ */
1674
+ tagName: t(typeName),
1675
+ /**
1676
+ A property or field [name](#highlight.tags.name).
1677
+ */
1678
+ propertyName,
1679
+ /**
1680
+ An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
1681
+ */
1682
+ attributeName: t(propertyName),
1683
+ /**
1684
+ The [name](#highlight.tags.name) of a class.
1685
+ */
1686
+ className: t(name),
1687
+ /**
1688
+ A label [name](#highlight.tags.name).
1689
+ */
1690
+ labelName: t(name),
1691
+ /**
1692
+ A namespace [name](#highlight.tags.name).
1693
+ */
1694
+ namespace: t(name),
1695
+ /**
1696
+ The [name](#highlight.tags.name) of a macro.
1697
+ */
1698
+ macroName: t(name),
1699
+ /**
1700
+ A literal value.
1701
+ */
1702
+ literal,
1703
+ /**
1704
+ A string [literal](#highlight.tags.literal).
1705
+ */
1706
+ string,
1707
+ /**
1708
+ A documentation [string](#highlight.tags.string).
1709
+ */
1710
+ docString: t(string),
1711
+ /**
1712
+ A character literal (subtag of [string](#highlight.tags.string)).
1713
+ */
1714
+ character: t(string),
1715
+ /**
1716
+ An attribute value (subtag of [string](#highlight.tags.string)).
1717
+ */
1718
+ attributeValue: t(string),
1719
+ /**
1720
+ A number [literal](#highlight.tags.literal).
1721
+ */
1722
+ number,
1723
+ /**
1724
+ An integer [number](#highlight.tags.number) literal.
1725
+ */
1726
+ integer: t(number),
1727
+ /**
1728
+ A floating-point [number](#highlight.tags.number) literal.
1729
+ */
1730
+ float: t(number),
1731
+ /**
1732
+ A boolean [literal](#highlight.tags.literal).
1733
+ */
1734
+ bool: t(literal),
1735
+ /**
1736
+ Regular expression [literal](#highlight.tags.literal).
1737
+ */
1738
+ regexp: t(literal),
1739
+ /**
1740
+ An escape [literal](#highlight.tags.literal), for example a
1741
+ backslash escape in a string.
1742
+ */
1743
+ escape: t(literal),
1744
+ /**
1745
+ A color [literal](#highlight.tags.literal).
1746
+ */
1747
+ color: t(literal),
1748
+ /**
1749
+ A URL [literal](#highlight.tags.literal).
1750
+ */
1751
+ url: t(literal),
1752
+ /**
1753
+ A language keyword.
1754
+ */
1755
+ keyword,
1756
+ /**
1757
+ The [keyword](#highlight.tags.keyword) for the self or this
1758
+ object.
1759
+ */
1760
+ self: t(keyword),
1761
+ /**
1762
+ The [keyword](#highlight.tags.keyword) for null.
1763
+ */
1764
+ null: t(keyword),
1765
+ /**
1766
+ A [keyword](#highlight.tags.keyword) denoting some atomic value.
1767
+ */
1768
+ atom: t(keyword),
1769
+ /**
1770
+ A [keyword](#highlight.tags.keyword) that represents a unit.
1771
+ */
1772
+ unit: t(keyword),
1773
+ /**
1774
+ A modifier [keyword](#highlight.tags.keyword).
1775
+ */
1776
+ modifier: t(keyword),
1777
+ /**
1778
+ A [keyword](#highlight.tags.keyword) that acts as an operator.
1779
+ */
1780
+ operatorKeyword: t(keyword),
1781
+ /**
1782
+ A control-flow related [keyword](#highlight.tags.keyword).
1783
+ */
1784
+ controlKeyword: t(keyword),
1785
+ /**
1786
+ A [keyword](#highlight.tags.keyword) that defines something.
1787
+ */
1788
+ definitionKeyword: t(keyword),
1789
+ /**
1790
+ A [keyword](#highlight.tags.keyword) related to defining or
1791
+ interfacing with modules.
1792
+ */
1793
+ moduleKeyword: t(keyword),
1794
+ /**
1795
+ An operator.
1796
+ */
1797
+ operator,
1798
+ /**
1799
+ An [operator](#highlight.tags.operator) that dereferences something.
1800
+ */
1801
+ derefOperator: t(operator),
1802
+ /**
1803
+ Arithmetic-related [operator](#highlight.tags.operator).
1804
+ */
1805
+ arithmeticOperator: t(operator),
1806
+ /**
1807
+ Logical [operator](#highlight.tags.operator).
1808
+ */
1809
+ logicOperator: t(operator),
1810
+ /**
1811
+ Bit [operator](#highlight.tags.operator).
1812
+ */
1813
+ bitwiseOperator: t(operator),
1814
+ /**
1815
+ Comparison [operator](#highlight.tags.operator).
1816
+ */
1817
+ compareOperator: t(operator),
1818
+ /**
1819
+ [Operator](#highlight.tags.operator) that updates its operand.
1820
+ */
1821
+ updateOperator: t(operator),
1822
+ /**
1823
+ [Operator](#highlight.tags.operator) that defines something.
1824
+ */
1825
+ definitionOperator: t(operator),
1826
+ /**
1827
+ Type-related [operator](#highlight.tags.operator).
1828
+ */
1829
+ typeOperator: t(operator),
1830
+ /**
1831
+ Control-flow [operator](#highlight.tags.operator).
1832
+ */
1833
+ controlOperator: t(operator),
1834
+ /**
1835
+ Program or markup punctuation.
1836
+ */
1837
+ punctuation,
1838
+ /**
1839
+ [Punctuation](#highlight.tags.punctuation) that separates
1840
+ things.
1841
+ */
1842
+ separator: t(punctuation),
1843
+ /**
1844
+ Bracket-style [punctuation](#highlight.tags.punctuation).
1845
+ */
1846
+ bracket,
1847
+ /**
1848
+ Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
1849
+ tokens).
1850
+ */
1851
+ angleBracket: t(bracket),
1852
+ /**
1853
+ Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
1854
+ tokens).
1855
+ */
1856
+ squareBracket: t(bracket),
1857
+ /**
1858
+ Parentheses (usually `(` and `)` tokens). Subtag of
1859
+ [bracket](#highlight.tags.bracket).
1860
+ */
1861
+ paren: t(bracket),
1862
+ /**
1863
+ Braces (usually `{` and `}` tokens). Subtag of
1864
+ [bracket](#highlight.tags.bracket).
1865
+ */
1866
+ brace: t(bracket),
1867
+ /**
1868
+ Content, for example plain text in XML or markup documents.
1869
+ */
1870
+ content,
1871
+ /**
1872
+ [Content](#highlight.tags.content) that represents a heading.
1873
+ */
1874
+ heading,
1875
+ /**
1876
+ A level 1 [heading](#highlight.tags.heading).
1877
+ */
1878
+ heading1: t(heading),
1879
+ /**
1880
+ A level 2 [heading](#highlight.tags.heading).
1881
+ */
1882
+ heading2: t(heading),
1883
+ /**
1884
+ A level 3 [heading](#highlight.tags.heading).
1885
+ */
1886
+ heading3: t(heading),
1887
+ /**
1888
+ A level 4 [heading](#highlight.tags.heading).
1889
+ */
1890
+ heading4: t(heading),
1891
+ /**
1892
+ A level 5 [heading](#highlight.tags.heading).
1893
+ */
1894
+ heading5: t(heading),
1895
+ /**
1896
+ A level 6 [heading](#highlight.tags.heading).
1897
+ */
1898
+ heading6: t(heading),
1899
+ /**
1900
+ A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
1901
+ */
1902
+ contentSeparator: t(content),
1903
+ /**
1904
+ [Content](#highlight.tags.content) that represents a list.
1905
+ */
1906
+ list: t(content),
1907
+ /**
1908
+ [Content](#highlight.tags.content) that represents a quote.
1909
+ */
1910
+ quote: t(content),
1911
+ /**
1912
+ [Content](#highlight.tags.content) that is emphasized.
1913
+ */
1914
+ emphasis: t(content),
1915
+ /**
1916
+ [Content](#highlight.tags.content) that is styled strong.
1917
+ */
1918
+ strong: t(content),
1919
+ /**
1920
+ [Content](#highlight.tags.content) that is part of a link.
1921
+ */
1922
+ link: t(content),
1923
+ /**
1924
+ [Content](#highlight.tags.content) that is styled as code or
1925
+ monospace.
1926
+ */
1927
+ monospace: t(content),
1928
+ /**
1929
+ [Content](#highlight.tags.content) that has a strike-through
1930
+ style.
1931
+ */
1932
+ strikethrough: t(content),
1933
+ /**
1934
+ Inserted text in a change-tracking format.
1935
+ */
1936
+ inserted: t(),
1937
+ /**
1938
+ Deleted text.
1939
+ */
1940
+ deleted: t(),
1941
+ /**
1942
+ Changed text.
1943
+ */
1944
+ changed: t(),
1945
+ /**
1946
+ An invalid or unsyntactic element.
1947
+ */
1948
+ invalid: t(),
1949
+ /**
1950
+ Metadata or meta-instruction.
1951
+ */
1952
+ meta,
1953
+ /**
1954
+ [Metadata](#highlight.tags.meta) that applies to the entire
1955
+ document.
1956
+ */
1957
+ documentMeta: t(meta),
1958
+ /**
1959
+ [Metadata](#highlight.tags.meta) that annotates or adds
1960
+ attributes to a given syntactic element.
1961
+ */
1962
+ annotation: t(meta),
1963
+ /**
1964
+ Processing instruction or preprocessor directive. Subtag of
1965
+ [meta](#highlight.tags.meta).
1966
+ */
1967
+ processingInstruction: t(meta),
1968
+ /**
1969
+ [Modifier](#highlight.Tag^defineModifier) that indicates that a
1970
+ given element is being defined. Expected to be used with the
1971
+ various [name](#highlight.tags.name) tags.
1972
+ */
1973
+ definition: Tag.defineModifier("definition"),
1974
+ /**
1975
+ [Modifier](#highlight.Tag^defineModifier) that indicates that
1976
+ something is constant. Mostly expected to be used with
1977
+ [variable names](#highlight.tags.variableName).
1978
+ */
1979
+ constant: Tag.defineModifier("constant"),
1980
+ /**
1981
+ [Modifier](#highlight.Tag^defineModifier) used to indicate that
1982
+ a [variable](#highlight.tags.variableName) or [property
1983
+ name](#highlight.tags.propertyName) is being called or defined
1984
+ as a function.
1985
+ */
1986
+ function: Tag.defineModifier("function"),
1987
+ /**
1988
+ [Modifier](#highlight.Tag^defineModifier) that can be applied to
1989
+ [names](#highlight.tags.name) to indicate that they belong to
1990
+ the language's standard environment.
1991
+ */
1992
+ standard: Tag.defineModifier("standard"),
1993
+ /**
1994
+ [Modifier](#highlight.Tag^defineModifier) that indicates a given
1995
+ [names](#highlight.tags.name) is local to some scope.
1996
+ */
1997
+ local: Tag.defineModifier("local"),
1998
+ /**
1999
+ A generic variant [modifier](#highlight.Tag^defineModifier) that
2000
+ can be used to tag language-specific alternative variants of
2001
+ some common tag. It is recommended for themes to define special
2002
+ forms of at least the [string](#highlight.tags.string) and
2003
+ [variable name](#highlight.tags.variableName) tags, since those
2004
+ come up a lot.
2005
+ */
2006
+ special: Tag.defineModifier("special")
2007
+ };
2008
+ for (let name2 in tags) {
2009
+ let val = tags[name2];
2010
+ if (val instanceof Tag)
2011
+ val.name = name2;
2012
+ }
2013
+ var classHighlighter = tagHighlighter([
2014
+ { tag: tags.link, class: "tok-link" },
2015
+ { tag: tags.heading, class: "tok-heading" },
2016
+ { tag: tags.emphasis, class: "tok-emphasis" },
2017
+ { tag: tags.strong, class: "tok-strong" },
2018
+ { tag: tags.keyword, class: "tok-keyword" },
2019
+ { tag: tags.atom, class: "tok-atom" },
2020
+ { tag: tags.bool, class: "tok-bool" },
2021
+ { tag: tags.url, class: "tok-url" },
2022
+ { tag: tags.labelName, class: "tok-labelName" },
2023
+ { tag: tags.inserted, class: "tok-inserted" },
2024
+ { tag: tags.deleted, class: "tok-deleted" },
2025
+ { tag: tags.literal, class: "tok-literal" },
2026
+ { tag: tags.string, class: "tok-string" },
2027
+ { tag: tags.number, class: "tok-number" },
2028
+ { tag: [tags.regexp, tags.escape, tags.special(tags.string)], class: "tok-string2" },
2029
+ { tag: tags.variableName, class: "tok-variableName" },
2030
+ { tag: tags.local(tags.variableName), class: "tok-variableName tok-local" },
2031
+ { tag: tags.definition(tags.variableName), class: "tok-variableName tok-definition" },
2032
+ { tag: tags.special(tags.variableName), class: "tok-variableName2" },
2033
+ { tag: tags.definition(tags.propertyName), class: "tok-propertyName tok-definition" },
2034
+ { tag: tags.typeName, class: "tok-typeName" },
2035
+ { tag: tags.namespace, class: "tok-namespace" },
2036
+ { tag: tags.className, class: "tok-className" },
2037
+ { tag: tags.macroName, class: "tok-macroName" },
2038
+ { tag: tags.propertyName, class: "tok-propertyName" },
2039
+ { tag: tags.operator, class: "tok-operator" },
2040
+ { tag: tags.comment, class: "tok-comment" },
2041
+ { tag: tags.meta, class: "tok-meta" },
2042
+ { tag: tags.invalid, class: "tok-invalid" },
2043
+ { tag: tags.punctuation, class: "tok-punctuation" }
2044
+ ]);
2045
+
2046
+ // src/codemirror-theme.ts
2047
+ import { EditorView } from "@codemirror/view";
2048
+ var ui = {
2049
+ "&": {
2050
+ color: "var(--text-editor-line)",
2051
+ backgroundColor: "var(--text-editor-fill)",
2052
+ fontFamily: "var(--text-editor-family-code)",
2053
+ fontSize: "var(--text-editor-font-size)",
2054
+ height: "100%"
2055
+ },
2056
+ ".cm-content": {
2057
+ caretColor: "var(--text-editor-cursor-fill)",
2058
+ fontFamily: "var(--editor-family-code)"
2059
+ },
2060
+ ".cm-cursor, .cm-dropCursor": {
2061
+ borderLeft: "1px solid var(--text-editor-cursor-fill)"
2062
+ },
2063
+ ".cm-selectionBackground, .cm-content ::selection": {
2064
+ backgroundColor: "var(--text-editor-selection-fill)",
2065
+ color: "var(--text-editor-selection-line)"
2066
+ },
2067
+ ".cm-activeLine": {
2068
+ backgroundColor: "var(--text-editor-active-line-fill)",
2069
+ color: "var(--text-editor-active-line-line)"
2070
+ },
2071
+ ".cm-activeLineGutter": {
2072
+ backgroundColor: "var(--text-editor-active-line-fill--gutter)",
2073
+ color: "var(--text-editor-active-line-line--gutter)"
2074
+ },
2075
+ ".cm-gutters": {
2076
+ userSelect: "none",
2077
+ background: "var(--text-editor-gutter-fill)",
2078
+ color: "var(--text-editor-gutter-line)",
2079
+ border: "var(--text-editor-gutter-border)",
2080
+ fontSize: "var(--text-editor-gutter-font-size)"
2081
+ },
2082
+ ".cm-gutterElement": {
2083
+ userSelect: "none",
2084
+ background: "var(--text-editor-gutter-fill--line-numbers)",
2085
+ color: "var(--text-editor-gutter-line--line-numbers)",
2086
+ fontSize: "var(--text-editor-gutter-font-size--line-numbers)",
2087
+ display: "flex",
2088
+ placeItems: "center",
2089
+ placeContent: "center"
2090
+ },
2091
+ ".cm-tooltip": {
2092
+ backgroundColor: "var(--text-editor-tooltip-fill)",
2093
+ color: "var(--text-editor-tooltip-color)"
2094
+ },
2095
+ ".cm-panel.cm-search": {
2096
+ backgroundColor: "#e3f6ff"
2097
+ },
2098
+ ".cm-scroller": {
2099
+ fontFamily: "var(--text-editor-family)",
2100
+ lineHeight: "var(--text-editor-line-height)"
2101
+ },
2102
+ ".cm-highlightTab": {},
2103
+ ".cm-highlightSpace": {}
2104
+ };
2105
+ var syntax = [
2106
+ {
2107
+ tag: tags.comment,
2108
+ color: "var(--syntax-comment)",
2109
+ fontStyle: "var(--syntax-style-comment)",
2110
+ backgroundColor: "var(--syntax-fill-comment)",
2111
+ fontWeight: "var(--syntax-weight-comment)"
2112
+ },
2113
+ {
2114
+ tag: tags.lineComment,
2115
+ color: "var(--syntax-line-comment)",
2116
+ fontStyle: "var(--syntax-style-line-comment)",
2117
+ backgroundColor: "var(--syntax-fill-line-comment)",
2118
+ fontWeight: "var(--syntax-weight-line-comment)"
2119
+ },
2120
+ {
2121
+ tag: tags.blockComment,
2122
+ color: "var(--syntax-block-comment)",
2123
+ fontStyle: "var(--syntax-style-block-comment)",
2124
+ backgroundColor: "var(--syntax-fill-block-comment)",
2125
+ fontWeight: "var(--syntax-weight-block-comment)"
2126
+ },
2127
+ {
2128
+ tag: tags.docComment,
2129
+ color: "var(--syntax-doc-comment)",
2130
+ fontStyle: "var(--syntax-style-doc-comment)",
2131
+ backgroundColor: "var(--syntax-fill-doc-comment)",
2132
+ fontWeight: "var(--syntax-weight-doc-comment)"
2133
+ },
2134
+ {
2135
+ tag: tags.meta,
2136
+ color: "var(--syntax-meta)",
2137
+ fontStyle: "var(--syntax-style-meta)",
2138
+ backgroundColor: "var(--syntax-fill-meta)",
2139
+ fontWeight: "var(--syntax-weight-meta)"
2140
+ },
2141
+ {
2142
+ tag: tags.invalid,
2143
+ color: "var(--syntax-invalid)",
2144
+ fontStyle: "var(--syntax-style-invalid)",
2145
+ backgroundColor: "var(--syntax-fill-invalid)",
2146
+ fontWeight: "var(--syntax-weight-invalid)"
2147
+ },
2148
+ {
2149
+ tag: tags.operator,
2150
+ color: "var(--syntax-operator)",
2151
+ fontStyle: "var(--syntax-style-operator)",
2152
+ backgroundColor: "var(--syntax-fill-operator)",
2153
+ fontWeight: "var(--syntax-weight-operator)"
2154
+ },
2155
+ {
2156
+ tag: tags.punctuation,
2157
+ color: "var(--syntax-punctuation)",
2158
+ fontStyle: "var(--syntax-style-punctuation)",
2159
+ backgroundColor: "var(--syntax-fill-punctuation)",
2160
+ fontWeight: "var(--syntax-weight-punctuation)"
2161
+ },
2162
+ {
2163
+ tag: tags.bool,
2164
+ color: "var(--syntax-bool)",
2165
+ fontStyle: "var(--syntax-style-bool)",
2166
+ backgroundColor: "var(--syntax-fill-bool)",
2167
+ fontWeight: "var(--syntax-weight-bool)"
2168
+ },
2169
+ {
2170
+ tag: tags.atom,
2171
+ color: "var(--syntax-atom)",
2172
+ fontStyle: "var(--syntax-style-atom)",
2173
+ backgroundColor: "var(--syntax-fill-atom)",
2174
+ fontWeight: "var(--syntax-weight-atom)"
2175
+ },
2176
+ {
2177
+ tag: tags.special(tags.variableName),
2178
+ color: "var(--syntax-special--variable-name)",
2179
+ fontStyle: "var(--syntax-style-special--variable-name)",
2180
+ backgroundColor: "var(--syntax-fill-special--variable-name)",
2181
+ fontWeight: "var(--syntax-weight-special--variable-name)"
2182
+ },
2183
+ {
2184
+ tag: tags.keyword,
2185
+ color: "var(--syntax-keyword)",
2186
+ fontStyle: "var(--syntax-style-keyword)",
2187
+ backgroundColor: "var(--syntax-fill-keyword)",
2188
+ fontWeight: "var(--syntax-weight-keyword)"
2189
+ },
2190
+ {
2191
+ tag: tags.controlKeyword,
2192
+ color: "var(--syntax-control-keyword)",
2193
+ fontStyle: "var(--syntax-style-control-keyword)",
2194
+ backgroundColor: "var(--syntax-fill-control-keyword)",
2195
+ fontWeight: "var(--syntax-weight-control-keyword)"
2196
+ },
2197
+ {
2198
+ tag: tags.moduleKeyword,
2199
+ color: "var(--syntax-module-keyword)",
2200
+ fontStyle: "var(--syntax-style-module-keyword)",
2201
+ backgroundColor: "var(--syntax-fill-module-keyword)",
2202
+ fontWeight: "var(--syntax-weight-module-keyword)"
2203
+ },
2204
+ {
2205
+ tag: tags.typeName,
2206
+ color: "var(--syntax-type-name)",
2207
+ fontStyle: "var(--syntax-style-type-name)",
2208
+ backgroundColor: "var(--syntax-fill-type-name)",
2209
+ fontWeight: "var(--syntax-weight-type-name)"
2210
+ },
2211
+ {
2212
+ tag: tags.className,
2213
+ color: "var(--syntax-class-name)",
2214
+ fontStyle: "var(--syntax-style-class-name)",
2215
+ backgroundColor: "var(--syntax-fill-class-name)",
2216
+ fontWeight: "var(--syntax-weight-class-name)"
2217
+ },
2218
+ {
2219
+ tag: tags.typeOperator,
2220
+ color: "var(--syntax-type-operator)",
2221
+ fontStyle: "var(--syntax-style-type-operator)",
2222
+ backgroundColor: "var(--syntax-fill-type-operator)",
2223
+ fontWeight: "var(--syntax-weight-type-operator)"
2224
+ },
2225
+ {
2226
+ tag: tags.function(tags.variableName),
2227
+ color: "var(--syntax-function--variable-name)",
2228
+ fontStyle: "var(--syntax-style-function--variable-name)",
2229
+ backgroundColor: "var(--syntax-fill-function--variableName)",
2230
+ fontWeight: "var(--syntax-weight-function--variableName)"
2231
+ },
2232
+ {
2233
+ tag: tags.function(tags.propertyName),
2234
+ color: "var(--syntax-function--property-name)",
2235
+ fontStyle: "var(--syntax-style-function--property-name)",
2236
+ backgroundColor: "var(--syntax-fill-function--property-name)",
2237
+ fontWeight: "var(--syntax-weight-function--property-name)"
2238
+ },
2239
+ {
2240
+ tag: tags.variableName,
2241
+ color: "var(--syntax-variable-name)",
2242
+ fontStyle: "var(--syntax-style-variable-name)",
2243
+ backgroundColor: "var(--syntax-fill-variable-name)",
2244
+ fontWeight: "var(--syntax-weight-variable-name)"
2245
+ },
2246
+ {
2247
+ tag: tags.definition(tags.variableName),
2248
+ color: "var(--syntax-definition--variable-name)",
2249
+ fontStyle: "var(--syntax-style-definition--variable-name)",
2250
+ backgroundColor: "var(--syntax-fill-definition--variable-name)",
2251
+ fontWeight: "var(--syntax-weight-definition--variable-name)"
2252
+ },
2253
+ {
2254
+ tag: tags.string,
2255
+ color: "var(--syntax-string)",
2256
+ backgroundColor: "var(--syntax-fill-string)",
2257
+ fontStyle: "var(--syntax-style-string)",
2258
+ fontWeight: "var(--syntax-weight-string)"
2259
+ },
2260
+ {
2261
+ tag: tags.number,
2262
+ color: "var(--syntax-number)",
2263
+ backgroundColor: "var(--syntax-fill-number)",
2264
+ fontStyle: "var(--syntax-style-number)",
2265
+ fontWeight: "var(--syntax-weight-number)"
2266
+ },
2267
+ {
2268
+ tag: tags.integer,
2269
+ color: "var(--syntax-integer)",
2270
+ backgroundColor: "var(--syntax-fill-integer)",
2271
+ fontStyle: "var(--syntax-style-integer)",
2272
+ fontWeight: "var(--syntax-weight-integer)"
2273
+ },
2274
+ {
2275
+ tag: tags.float,
2276
+ color: "var(--syntax-float)",
2277
+ backgroundColor: "var(--syntax-fill-float)",
2278
+ fontStyle: "var(--syntax-style-float)",
2279
+ fontWeight: "var(--syntax-weight-float)"
2280
+ },
2281
+ {
2282
+ tag: tags.escape,
2283
+ color: "var(--syntax-escape)",
2284
+ fontStyle: "var(--syntax-style-escape)",
2285
+ backgroundColor: "var(--syntax-fill-escape)",
2286
+ fontWeight: "var(--syntax-weight-escape)"
2287
+ },
2288
+ {
2289
+ tag: tags.regexp,
2290
+ color: "var(--syntax-regexp)",
2291
+ fontStyle: "var(--syntax-style-regexp)",
2292
+ backgroundColor: "var(--syntax-fill-regexp)",
2293
+ fontWeight: "var(--syntax-weight-regexp)"
2294
+ },
2295
+ {
2296
+ tag: tags.special(tags.string),
2297
+ color: "var(--syntax-special--string)",
2298
+ fontStyle: "var(--syntax-style-special--string)",
2299
+ backgroundColor: "var(--syntax-fill-special--string)",
2300
+ fontWeight: "var(--syntax-weight-special--string)"
2301
+ },
2302
+ {
2303
+ tag: tags.tagName,
2304
+ color: "var(--syntax-tag-name)",
2305
+ fontStyle: "var(--syntax-style-tag-name)",
2306
+ backgroundColor: "var(--syntax-fill-tag-name)",
2307
+ fontWeight: "var(--syntax-weight-tag-name)"
2308
+ },
2309
+ {
2310
+ tag: tags.angleBracket,
2311
+ color: "var(--syntax-angle-bracket)",
2312
+ fontStyle: "var(--syntax-style-angle-bracket)",
2313
+ backgroundColor: "var(--syntax-fill-angle-bracket)",
2314
+ fontWeight: "var(--syntax-weight-angle-bracket)"
2315
+ },
2316
+ {
2317
+ tag: tags.attributeName,
2318
+ color: "var(--syntax-attribute-name)",
2319
+ backgroundColor: "var(--syntax-fill-attribute-name)",
2320
+ fontWeight: "var(--syntax-weight-attribute-name)",
2321
+ fontStyle: "var(--syntax-style-attribute-name)"
2322
+ },
2323
+ {
2324
+ tag: tags.namespace,
2325
+ color: "var(--syntax-namespace)",
2326
+ fontStyle: "var(--syntax-style-namespace)",
2327
+ backgroundColor: "var(--syntax-fill-namespace)",
2328
+ fontWeight: "var(--syntax-weight-namespace)"
2329
+ },
2330
+ {
2331
+ tag: tags.strong,
2332
+ color: "var(--syntax-strong)",
2333
+ backgroundColor: "var(--syntax-fill-strong)",
2334
+ fontStyle: "var(--syntax-style-strong)",
2335
+ fontWeight: "var(--syntax-weight-strong)"
2336
+ },
2337
+ {
2338
+ tag: tags.emphasis,
2339
+ color: "var(--syntax-emphasis)",
2340
+ backgroundColor: "var(--syntax-fill-emphasis)",
2341
+ fontWeight: "var(--syntax-weight-emphasis)",
2342
+ fontStyle: "var(--syntax-style-emphasis)"
2343
+ },
2344
+ {
2345
+ tag: tags.heading,
2346
+ color: "var(--syntax-heading)",
2347
+ backgroundColor: "var(--syntax-fill-heading)",
2348
+ fontStyle: "var(--syntax-style-heading)",
2349
+ fontWeight: "var(--syntax-weight-heading)"
2350
+ },
2351
+ {
2352
+ tag: tags.link,
2353
+ color: "var(--syntax-link)",
2354
+ backgroundColor: "var(--syntax-fill-link)",
2355
+ fontStyle: "var(--syntax-style-link)",
2356
+ fontWeight: "var(--syntax-weight-link)",
2357
+ textDecoration: "underline"
2358
+ },
2359
+ {
2360
+ tag: tags.quote,
2361
+ color: "var(--syntax-quote)",
2362
+ backgroundColor: "var(--syntax-fill-quote)",
2363
+ fontStyle: "var(--syntax-style-quote)",
2364
+ fontWeight: "var(--syntax-weight-quote)"
2365
+ },
2366
+ {
2367
+ tag: tags.list,
2368
+ color: "var(--syntax-list)",
2369
+ backgroundColor: "var(--syntax-fill-list)",
2370
+ fontStyle: "var(--syntax-style-list)",
2371
+ fontWeight: "var(--syntax-weight-list)"
2372
+ },
2373
+ {
2374
+ tag: tags.inserted,
2375
+ color: "var(--syntax-inserted)",
2376
+ backgroundColor: "var(--syntax-fill-inserted)",
2377
+ fontStyle: "var(--syntax-style-inserted)",
2378
+ fontWeight: "var(--syntax-weight-inserted)"
2379
+ },
2380
+ {
2381
+ tag: tags.deleted,
2382
+ color: "var(--syntax-deleted)",
2383
+ backgroundColor: "var(--syntax-fill-deleted)",
2384
+ fontStyle: "var(--syntax-style-deleted)",
2385
+ fontWeight: "var(--syntax-weight-deleted)"
2386
+ },
2387
+ {
2388
+ tag: tags.changed,
2389
+ color: "var(--syntax-changed)",
2390
+ backgroundColor: "var(--syntax-fill-changed)",
2391
+ fontStyle: "var(--syntax-style-changed)",
2392
+ fontWeight: "var(--syntax-weight-changed)"
2393
+ },
2394
+ {
2395
+ tag: tags.contentSeparator,
2396
+ color: "var(--syntax-content-separator)",
2397
+ backgroundColor: "var(--syntax-fill-content-separator)",
2398
+ fontStyle: "var(--syntax-style-content-separator)",
2399
+ fontWeight: "var(--syntax-weight-content-separator)"
2400
+ }
2401
+ ];
2402
+ var codemirror_theme_default = [
2403
+ EditorView.theme(ui, {
2404
+ get dark() {
2405
+ return false;
2406
+ }
2407
+ }),
2408
+ syntaxHighlighting(HighlightStyle.define(syntax))
2409
+ ];
2410
+ export {
2411
+ codemirror_theme_default as default,
2412
+ syntax,
2413
+ ui
2414
+ };
2415
+ //# sourceMappingURL=codemirror-theme.js.map