@bkm016/basalt 0.1.28 → 0.1.29

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 (846) hide show
  1. package/chunk-01fz0kzx.js +2 -0
  2. package/chunk-06k5mcmy.js +4018 -0
  3. package/chunk-14pg1g7b.js +2 -0
  4. package/chunk-1cvzbvsq.js +2 -0
  5. package/chunk-1pgj58dw.js +20 -0
  6. package/chunk-200cn72d.js +16 -0
  7. package/chunk-2nd8hvf3.js +31 -0
  8. package/chunk-39wsmkd7.js +4 -0
  9. package/chunk-54qc1d5t.js +2 -0
  10. package/chunk-59enxka6.js +50 -0
  11. package/chunk-5fs3331q.js +3 -0
  12. package/chunk-674kjaqz.js +2 -0
  13. package/chunk-6pqsx156.js +12 -0
  14. package/chunk-6rw1ex78.js +2 -0
  15. package/chunk-6vz0znf6.js +8 -0
  16. package/chunk-73z1fv3d.js +9 -0
  17. package/chunk-7dnq7g8f.js +3 -0
  18. package/chunk-7emc0sy7.js +11 -0
  19. package/chunk-7nsrfrmx.js +2 -0
  20. package/chunk-8hxsap9d.js +5 -0
  21. package/chunk-8kmtns4v.js +5 -0
  22. package/chunk-9dy56agy.js +51 -0
  23. package/chunk-9mt2k1a7.js +5 -0
  24. package/chunk-9sq7yxh7.js +12 -0
  25. package/chunk-9x1yprjh.js +2 -0
  26. package/chunk-a5k24aj6.js +3 -0
  27. package/chunk-ades3qy7.js +10 -0
  28. package/chunk-ag642nqs.js +8 -0
  29. package/chunk-av3zmcd8.js +3 -0
  30. package/chunk-b1hdfsj4.js +25 -0
  31. package/chunk-b5448t3j.js +2 -0
  32. package/chunk-b6rvzkxg.js +3 -0
  33. package/chunk-b8acka7e.js +2 -0
  34. package/chunk-bh680te4.js +2 -0
  35. package/chunk-cb4rvanv.js +2 -0
  36. package/chunk-d6hcvbkh.js +3 -0
  37. package/chunk-dqxks09b.js +3 -0
  38. package/chunk-eg161ep9.js +3 -0
  39. package/chunk-exjytvzn.js +2 -0
  40. package/chunk-f6kg68bj.js +3 -0
  41. package/chunk-fcxdq1dy.js +7 -0
  42. package/chunk-fkjjadt4.js +3 -0
  43. package/chunk-fr1zvytp.js +7 -0
  44. package/chunk-fx3cc8nr.js +3 -0
  45. package/chunk-hvxc1wyv.js +3 -0
  46. package/chunk-j24fq8ss.js +2 -0
  47. package/chunk-j55tyjct.js +2 -0
  48. package/chunk-jn0dhvkp.js +2 -0
  49. package/chunk-k9dw37w2.js +3 -0
  50. package/chunk-m6bm0739.js +2 -0
  51. package/chunk-mkfdzt82.js +2 -0
  52. package/chunk-nbm1tqvg.js +3 -0
  53. package/chunk-p5ga5as0.js +25 -0
  54. package/chunk-pmefr1ak.js +490 -0
  55. package/chunk-r49sxmnc.js +3 -0
  56. package/chunk-rf6t7zeb.js +286 -0
  57. package/chunk-s0ne3yb9.js +2 -0
  58. package/chunk-s8ybq82n.js +5 -0
  59. package/chunk-spv39wem.js +7 -0
  60. package/chunk-stgqqm7m.js +59 -0
  61. package/chunk-sykaz5bf.js +18 -0
  62. package/chunk-sz0jywpb.js +39 -0
  63. package/chunk-vcngwaee.js +3 -0
  64. package/chunk-vpvznxf4.js +3 -0
  65. package/chunk-vzh6e5f2.js +2 -0
  66. package/chunk-wkvrtjtc.js +2 -0
  67. package/chunk-wzd9b2qk.js +2 -0
  68. package/chunk-x1cva1gc.js +2 -0
  69. package/chunk-x83jcg3x.js +3 -0
  70. package/chunk-xdyee71m.js +10 -0
  71. package/chunk-xdygdssk.js +3 -0
  72. package/chunk-xjcg6cxc.js +3 -0
  73. package/chunk-xran6f0c.js +2 -0
  74. package/chunk-ymn1s2xs.js +3 -0
  75. package/chunk-ysqx0ye8.js +2 -0
  76. package/chunk-z58jafcm.js +3 -0
  77. package/chunk-zf1c6rj7.js +63 -0
  78. package/chunk-zgtahh10.js +44 -0
  79. package/compiled.js +11 -11
  80. package/package.json +1 -1
  81. package/ui-test-worker.js +79 -77
  82. package/web/chunk-0nt1mz09.js +1 -0
  83. package/web/chunk-0nt1mz09.js.br +0 -0
  84. package/web/chunk-0nt1mz09.js.gz +0 -0
  85. package/web/chunk-0yye7ex1.js +1 -0
  86. package/web/chunk-0yye7ex1.js.br +0 -0
  87. package/web/chunk-0yye7ex1.js.gz +0 -0
  88. package/web/chunk-1pffd2va.js +2 -0
  89. package/web/chunk-1pffd2va.js.br +0 -0
  90. package/web/chunk-1pffd2va.js.gz +0 -0
  91. package/web/chunk-368znnfs.js +1 -0
  92. package/web/chunk-368znnfs.js.br +0 -0
  93. package/web/chunk-368znnfs.js.gz +0 -0
  94. package/web/chunk-3tx9tqfb.js +291 -0
  95. package/web/chunk-3tx9tqfb.js.br +0 -0
  96. package/web/chunk-3tx9tqfb.js.gz +0 -0
  97. package/web/chunk-46ht4dh6.js +24 -0
  98. package/web/chunk-46ht4dh6.js.br +0 -0
  99. package/web/chunk-46ht4dh6.js.gz +0 -0
  100. package/web/chunk-4c418rk9.js +1 -0
  101. package/web/chunk-4c418rk9.js.br +2 -0
  102. package/web/chunk-4c418rk9.js.gz +0 -0
  103. package/web/chunk-4p0sm8e7.js +7 -0
  104. package/web/chunk-4p0sm8e7.js.br +0 -0
  105. package/web/chunk-4p0sm8e7.js.gz +0 -0
  106. package/web/chunk-4zam960g.js +1 -0
  107. package/web/chunk-4zam960g.js.br +0 -0
  108. package/web/chunk-4zam960g.js.gz +0 -0
  109. package/web/chunk-5h63t21g.js +1 -0
  110. package/web/chunk-5h63t21g.js.br +0 -0
  111. package/web/chunk-5h63t21g.js.gz +0 -0
  112. package/web/chunk-5h7xm5mn.js +1 -0
  113. package/web/chunk-5h7xm5mn.js.br +0 -0
  114. package/web/chunk-5h7xm5mn.js.gz +0 -0
  115. package/web/chunk-6crex674.js +89 -0
  116. package/web/chunk-6crex674.js.br +0 -0
  117. package/web/chunk-6crex674.js.gz +0 -0
  118. package/web/chunk-6v031vc6.js +21 -0
  119. package/web/chunk-6v031vc6.js.br +0 -0
  120. package/web/chunk-6v031vc6.js.gz +0 -0
  121. package/web/chunk-782gfmtk.js +38 -0
  122. package/web/chunk-782gfmtk.js.br +0 -0
  123. package/web/chunk-782gfmtk.js.gz +0 -0
  124. package/web/chunk-7a6szg06.js +2 -0
  125. package/web/chunk-7a6szg06.js.br +0 -0
  126. package/web/chunk-7a6szg06.js.gz +0 -0
  127. package/web/chunk-7dvbxn34.js +4 -0
  128. package/web/chunk-7dvbxn34.js.br +0 -0
  129. package/web/chunk-7dvbxn34.js.gz +0 -0
  130. package/web/chunk-7g795nba.js +1 -0
  131. package/web/chunk-7g795nba.js.br +2 -0
  132. package/web/chunk-7g795nba.js.gz +0 -0
  133. package/web/chunk-8fymhvne.js +1 -0
  134. package/web/chunk-8fymhvne.js.br +0 -0
  135. package/web/chunk-8fymhvne.js.gz +0 -0
  136. package/web/chunk-8kcp1h63.js +1 -0
  137. package/web/chunk-8kcp1h63.js.br +0 -0
  138. package/web/chunk-8kcp1h63.js.gz +0 -0
  139. package/web/chunk-8vtr60yn.js +2 -0
  140. package/web/chunk-8vtr60yn.js.br +0 -0
  141. package/web/chunk-8vtr60yn.js.gz +0 -0
  142. package/web/chunk-8y14zggg.js +2 -0
  143. package/web/chunk-8y14zggg.js.br +0 -0
  144. package/web/chunk-8y14zggg.js.gz +0 -0
  145. package/web/chunk-8zg840m3.js +1 -0
  146. package/web/chunk-8zg840m3.js.br +0 -0
  147. package/web/chunk-8zg840m3.js.gz +0 -0
  148. package/web/chunk-940sc4ny.js +7 -0
  149. package/web/chunk-940sc4ny.js.br +0 -0
  150. package/web/chunk-940sc4ny.js.gz +0 -0
  151. package/web/chunk-94f4sz0m.js +1 -0
  152. package/web/chunk-94f4sz0m.js.br +0 -0
  153. package/web/chunk-94f4sz0m.js.gz +0 -0
  154. package/web/chunk-94jy9s3n.js +55 -0
  155. package/web/chunk-94jy9s3n.js.br +0 -0
  156. package/web/chunk-94jy9s3n.js.gz +0 -0
  157. package/web/chunk-97qfkg6n.js +30 -0
  158. package/web/chunk-97qfkg6n.js.br +0 -0
  159. package/web/chunk-97qfkg6n.js.gz +0 -0
  160. package/web/chunk-99mgkmjb.js +62 -0
  161. package/web/chunk-99mgkmjb.js.br +0 -0
  162. package/web/chunk-99mgkmjb.js.gz +0 -0
  163. package/web/chunk-9afn27bs.js +1 -0
  164. package/web/chunk-9afn27bs.js.br +2 -0
  165. package/web/chunk-9afn27bs.js.gz +0 -0
  166. package/web/chunk-aw4h94zp.js +1 -0
  167. package/web/chunk-aw4h94zp.js.br +0 -0
  168. package/web/chunk-aw4h94zp.js.gz +0 -0
  169. package/web/chunk-azdhgj11.js +40 -0
  170. package/web/chunk-azdhgj11.js.br +0 -0
  171. package/web/chunk-azdhgj11.js.gz +0 -0
  172. package/web/chunk-batey85v.js +2 -0
  173. package/web/chunk-batey85v.js.br +0 -0
  174. package/web/chunk-batey85v.js.gz +0 -0
  175. package/web/chunk-brbxfap5.js +99 -0
  176. package/web/chunk-brbxfap5.js.br +0 -0
  177. package/web/chunk-brbxfap5.js.gz +0 -0
  178. package/web/chunk-bxc8a663.js +2 -0
  179. package/web/chunk-bxc8a663.js.br +0 -0
  180. package/web/chunk-bxc8a663.js.gz +0 -0
  181. package/web/chunk-c2t7zyge.js +169 -0
  182. package/web/chunk-c2t7zyge.js.br +0 -0
  183. package/web/chunk-c2t7zyge.js.gz +0 -0
  184. package/web/chunk-c5bfa3rp.js +1 -0
  185. package/web/chunk-c5bfa3rp.js.br +0 -0
  186. package/web/chunk-c5bfa3rp.js.gz +0 -0
  187. package/web/chunk-c86a6am5.js +2 -0
  188. package/web/chunk-c86a6am5.js.br +3 -0
  189. package/web/chunk-c86a6am5.js.gz +0 -0
  190. package/web/chunk-dgtp38mj.js +1 -0
  191. package/web/chunk-dgtp38mj.js.br +0 -0
  192. package/web/chunk-dgtp38mj.js.gz +0 -0
  193. package/web/chunk-e4h4dg4y.js +303 -0
  194. package/web/chunk-e4h4dg4y.js.br +0 -0
  195. package/web/chunk-e4h4dg4y.js.gz +0 -0
  196. package/web/chunk-e5f8e2ta.js +1 -0
  197. package/web/chunk-e5f8e2ta.js.br +0 -0
  198. package/web/chunk-e5f8e2ta.js.gz +0 -0
  199. package/web/chunk-e7rwnv7e.js +1 -0
  200. package/web/chunk-e7rwnv7e.js.br +0 -0
  201. package/web/chunk-e7rwnv7e.js.gz +0 -0
  202. package/web/chunk-ef9tqrz4.js +324 -0
  203. package/web/chunk-ef9tqrz4.js.br +0 -0
  204. package/web/chunk-ef9tqrz4.js.gz +0 -0
  205. package/web/chunk-ekcnhcm0.js +1 -0
  206. package/web/chunk-ekcnhcm0.js.br +0 -0
  207. package/web/chunk-ekcnhcm0.js.gz +0 -0
  208. package/web/chunk-ekkdhece.js +41 -0
  209. package/web/chunk-ekkdhece.js.br +0 -0
  210. package/web/chunk-ekkdhece.js.gz +0 -0
  211. package/web/chunk-enbqe508.js +36 -0
  212. package/web/chunk-enbqe508.js.br +0 -0
  213. package/web/chunk-enbqe508.js.gz +0 -0
  214. package/web/chunk-ev517x0c.js +1 -0
  215. package/web/chunk-ev517x0c.js.br +0 -0
  216. package/web/chunk-ev517x0c.js.gz +0 -0
  217. package/web/chunk-ex47jeev.js +1 -0
  218. package/web/chunk-ex47jeev.js.br +0 -0
  219. package/web/chunk-ex47jeev.js.gz +0 -0
  220. package/web/chunk-ft9p7cr8.js +8 -0
  221. package/web/chunk-ft9p7cr8.js.br +0 -0
  222. package/web/chunk-ft9p7cr8.js.gz +0 -0
  223. package/web/chunk-fybmc8p1.js +1 -0
  224. package/web/chunk-fybmc8p1.js.br +0 -0
  225. package/web/chunk-fybmc8p1.js.gz +0 -0
  226. package/web/chunk-g6e50kx0.js +3 -0
  227. package/web/chunk-g6e50kx0.js.br +0 -0
  228. package/web/chunk-g6e50kx0.js.gz +0 -0
  229. package/web/chunk-g6grehr5.css +1 -0
  230. package/web/chunk-g6grehr5.css.br +0 -0
  231. package/web/chunk-g6grehr5.css.gz +0 -0
  232. package/web/chunk-gbzfq3rg.js +332 -0
  233. package/web/chunk-gbzfq3rg.js.br +0 -0
  234. package/web/chunk-gbzfq3rg.js.gz +0 -0
  235. package/web/chunk-gsg8yq3m.js +1 -0
  236. package/web/chunk-gsg8yq3m.js.br +0 -0
  237. package/web/chunk-gsg8yq3m.js.gz +0 -0
  238. package/web/chunk-hgcgbxns.js +1 -0
  239. package/web/chunk-hgcgbxns.js.br +0 -0
  240. package/web/chunk-hgcgbxns.js.gz +0 -0
  241. package/web/chunk-hh8ck7sy.js +2 -0
  242. package/web/chunk-hh8ck7sy.js.br +0 -0
  243. package/web/chunk-hh8ck7sy.js.gz +0 -0
  244. package/web/chunk-hj18pw9f.js +2 -0
  245. package/web/chunk-hj18pw9f.js.br +0 -0
  246. package/web/chunk-hj18pw9f.js.gz +0 -0
  247. package/web/chunk-hk4jd2qq.js +24 -0
  248. package/web/chunk-hk4jd2qq.js.br +0 -0
  249. package/web/chunk-hk4jd2qq.js.gz +0 -0
  250. package/web/chunk-hrnx1576.js +4 -0
  251. package/web/chunk-hrnx1576.js.br +0 -0
  252. package/web/chunk-hrnx1576.js.gz +0 -0
  253. package/web/chunk-j0ns5dyq.js +120 -0
  254. package/web/chunk-j0ns5dyq.js.br +0 -0
  255. package/web/chunk-j0ns5dyq.js.gz +0 -0
  256. package/web/chunk-j21a7pd1.js +1 -0
  257. package/web/chunk-j21a7pd1.js.br +0 -0
  258. package/web/chunk-j21a7pd1.js.gz +0 -0
  259. package/web/chunk-jbejy8k3.js +1139 -0
  260. package/web/chunk-jbejy8k3.js.br +0 -0
  261. package/web/chunk-jbejy8k3.js.gz +0 -0
  262. package/web/chunk-jeq99z4t.js +70 -0
  263. package/web/chunk-jeq99z4t.js.br +0 -0
  264. package/web/chunk-jeq99z4t.js.gz +0 -0
  265. package/web/chunk-jqq07zta.js +1 -0
  266. package/web/chunk-jqq07zta.js.br +0 -0
  267. package/web/chunk-jqq07zta.js.gz +0 -0
  268. package/web/chunk-k6m37v6k.js +1 -0
  269. package/web/chunk-k6m37v6k.js.br +0 -0
  270. package/web/chunk-k6m37v6k.js.gz +0 -0
  271. package/web/chunk-kajk2w5j.js +217 -0
  272. package/web/chunk-kajk2w5j.js.br +0 -0
  273. package/web/chunk-kajk2w5j.js.gz +0 -0
  274. package/web/chunk-kcrypnnf.js +1 -0
  275. package/web/chunk-kcrypnnf.js.br +0 -0
  276. package/web/chunk-kcrypnnf.js.gz +0 -0
  277. package/web/chunk-kyksv8an.js +1 -0
  278. package/web/chunk-kyksv8an.js.br +2 -0
  279. package/web/chunk-kyksv8an.js.gz +0 -0
  280. package/web/chunk-mkhcq6z6.js +1 -0
  281. package/web/chunk-mkhcq6z6.js.br +0 -0
  282. package/web/chunk-mkhcq6z6.js.gz +0 -0
  283. package/web/chunk-mytypet0.js +2 -0
  284. package/web/chunk-mytypet0.js.br +0 -0
  285. package/web/chunk-mytypet0.js.gz +0 -0
  286. package/web/chunk-mzb086jr.js +1 -0
  287. package/web/chunk-mzb086jr.js.br +0 -0
  288. package/web/chunk-mzb086jr.js.gz +0 -0
  289. package/web/chunk-mzevfdmp.js +1 -0
  290. package/web/chunk-mzevfdmp.js.br +0 -0
  291. package/web/chunk-mzevfdmp.js.gz +0 -0
  292. package/web/chunk-n7c5sndg.js +1 -0
  293. package/web/chunk-n7c5sndg.js.br +0 -0
  294. package/web/chunk-n7c5sndg.js.gz +0 -0
  295. package/web/chunk-ned200k0.js +84 -0
  296. package/web/chunk-ned200k0.js.br +0 -0
  297. package/web/chunk-ned200k0.js.gz +0 -0
  298. package/web/chunk-ngcd5a3c.js +1 -0
  299. package/web/chunk-ngcd5a3c.js.br +0 -0
  300. package/web/chunk-ngcd5a3c.js.gz +0 -0
  301. package/web/chunk-nx14h1a6.js +1 -0
  302. package/web/chunk-nx14h1a6.js.br +0 -0
  303. package/web/chunk-nx14h1a6.js.gz +0 -0
  304. package/web/chunk-p3fv7nbz.js +1 -0
  305. package/web/chunk-p3fv7nbz.js.br +0 -0
  306. package/web/chunk-p3fv7nbz.js.gz +0 -0
  307. package/web/chunk-pktgtyf6.js +1 -0
  308. package/web/chunk-pktgtyf6.js.br +0 -0
  309. package/web/chunk-pktgtyf6.js.gz +0 -0
  310. package/web/chunk-pm504vps.js +89 -0
  311. package/web/chunk-pm504vps.js.br +0 -0
  312. package/web/chunk-pm504vps.js.gz +0 -0
  313. package/web/chunk-pnvkphs0.js +12 -0
  314. package/web/chunk-pnvkphs0.js.br +0 -0
  315. package/web/chunk-pnvkphs0.js.gz +0 -0
  316. package/web/chunk-ptvshaa0.js +2 -0
  317. package/web/chunk-ptvshaa0.js.br +0 -0
  318. package/web/chunk-ptvshaa0.js.gz +0 -0
  319. package/web/chunk-py4737sc.js +39 -0
  320. package/web/chunk-py4737sc.js.br +0 -0
  321. package/web/chunk-py4737sc.js.gz +0 -0
  322. package/web/chunk-pz5wcbdv.js +139 -0
  323. package/web/chunk-pz5wcbdv.js.br +0 -0
  324. package/web/chunk-pz5wcbdv.js.gz +0 -0
  325. package/web/chunk-q467b529.js +1 -0
  326. package/web/chunk-q467b529.js.br +0 -0
  327. package/web/chunk-q467b529.js.gz +0 -0
  328. package/web/chunk-qbvbfpx8.js +1 -0
  329. package/web/chunk-qbvbfpx8.js.br +0 -0
  330. package/web/chunk-qbvbfpx8.js.gz +0 -0
  331. package/web/chunk-qgfc4ptt.js +7 -0
  332. package/web/chunk-qgfc4ptt.js.br +0 -0
  333. package/web/chunk-qgfc4ptt.js.gz +0 -0
  334. package/web/chunk-qmmss130.js +2 -0
  335. package/web/chunk-qmmss130.js.br +0 -0
  336. package/web/chunk-qmmss130.js.gz +0 -0
  337. package/web/chunk-qqrzr444.js +2 -0
  338. package/web/chunk-qqrzr444.js.br +0 -0
  339. package/web/chunk-qqrzr444.js.gz +0 -0
  340. package/web/chunk-r2fjprkk.js +1 -0
  341. package/web/chunk-r2fjprkk.js.br +0 -0
  342. package/web/chunk-r2fjprkk.js.gz +0 -0
  343. package/web/chunk-rcn21n5e.js +214 -0
  344. package/web/chunk-rcn21n5e.js.br +0 -0
  345. package/web/chunk-rcn21n5e.js.gz +0 -0
  346. package/web/chunk-rpnw9xwe.js +1 -0
  347. package/web/chunk-rpnw9xwe.js.br +0 -0
  348. package/web/chunk-rpnw9xwe.js.gz +0 -0
  349. package/web/chunk-rv5h4d8w.js +1 -0
  350. package/web/chunk-rv5h4d8w.js.br +0 -0
  351. package/web/chunk-rv5h4d8w.js.gz +0 -0
  352. package/web/chunk-s8e8gzvn.js +16 -0
  353. package/web/chunk-s8e8gzvn.js.br +0 -0
  354. package/web/chunk-s8e8gzvn.js.gz +0 -0
  355. package/web/chunk-sa57mndb.js +1 -0
  356. package/web/chunk-sa57mndb.js.br +0 -0
  357. package/web/chunk-sa57mndb.js.gz +0 -0
  358. package/web/chunk-sc90h9bd.js +2 -0
  359. package/web/chunk-sc90h9bd.js.br +0 -0
  360. package/web/chunk-sc90h9bd.js.gz +0 -0
  361. package/web/chunk-t44qa4yt.js +200 -0
  362. package/web/chunk-t44qa4yt.js.br +0 -0
  363. package/web/chunk-t44qa4yt.js.gz +0 -0
  364. package/web/chunk-t8b8cdak.js +2 -0
  365. package/web/chunk-t8b8cdak.js.br +0 -0
  366. package/web/chunk-t8b8cdak.js.gz +0 -0
  367. package/web/chunk-t9cgbcf2.js +1 -0
  368. package/web/chunk-t9cgbcf2.js.br +0 -0
  369. package/web/chunk-t9cgbcf2.js.gz +0 -0
  370. package/web/chunk-tk8kf0bf.js +2 -0
  371. package/web/chunk-tk8kf0bf.js.br +0 -0
  372. package/web/chunk-tk8kf0bf.js.gz +0 -0
  373. package/web/chunk-tt3v857c.js +106 -0
  374. package/web/chunk-tt3v857c.js.br +0 -0
  375. package/web/chunk-tt3v857c.js.gz +0 -0
  376. package/web/chunk-vjnmqaam.js +2 -0
  377. package/web/chunk-vjnmqaam.js.br +0 -0
  378. package/web/chunk-vjnmqaam.js.gz +0 -0
  379. package/web/chunk-vp5qf59s.js +1 -0
  380. package/web/chunk-vp5qf59s.js.br +0 -0
  381. package/web/chunk-vp5qf59s.js.gz +0 -0
  382. package/web/chunk-wrax5wt5.js +292 -0
  383. package/web/chunk-wrax5wt5.js.br +0 -0
  384. package/web/chunk-wrax5wt5.js.gz +0 -0
  385. package/web/chunk-xk8637wb.js +1 -0
  386. package/web/chunk-xk8637wb.js.br +0 -0
  387. package/web/chunk-xk8637wb.js.gz +0 -0
  388. package/web/chunk-yarejzzs.js +142 -0
  389. package/web/chunk-yarejzzs.js.br +0 -0
  390. package/web/chunk-yarejzzs.js.gz +0 -0
  391. package/web/chunk-yg6ys554.js +1 -0
  392. package/web/chunk-yg6ys554.js.br +0 -0
  393. package/web/chunk-yg6ys554.js.gz +0 -0
  394. package/web/chunk-yq6xkb5w.js +370 -0
  395. package/web/chunk-yq6xkb5w.js.br +0 -0
  396. package/web/chunk-yq6xkb5w.js.gz +0 -0
  397. package/web/chunk-yw98mr7e.js +2 -0
  398. package/web/chunk-yw98mr7e.js.br +0 -0
  399. package/web/chunk-yw98mr7e.js.gz +0 -0
  400. package/web/chunk-z07kf12w.js +78 -0
  401. package/web/chunk-z07kf12w.js.br +0 -0
  402. package/web/chunk-z07kf12w.js.gz +0 -0
  403. package/web/chunk-z5sk390b.js +2 -0
  404. package/web/chunk-z5sk390b.js.br +0 -0
  405. package/web/chunk-z5sk390b.js.gz +0 -0
  406. package/web/chunk-zh2szkjy.js +140 -0
  407. package/web/chunk-zh2szkjy.js.br +0 -0
  408. package/web/chunk-zh2szkjy.js.gz +0 -0
  409. package/web/chunk-zrmm67mx.js +34 -0
  410. package/web/chunk-zrmm67mx.js.br +0 -0
  411. package/web/chunk-zrmm67mx.js.gz +0 -0
  412. package/web/chunk-zyfr25n1.js +98 -0
  413. package/web/chunk-zyfr25n1.js.br +0 -0
  414. package/web/chunk-zyfr25n1.js.gz +0 -0
  415. package/web/chunk-zykkmwba.js +2 -0
  416. package/web/chunk-zykkmwba.js.br +0 -0
  417. package/web/chunk-zykkmwba.js.gz +0 -0
  418. package/web/chunk-zzs4h31m.js +2 -0
  419. package/web/chunk-zzs4h31m.js.br +0 -0
  420. package/web/chunk-zzs4h31m.js.gz +0 -0
  421. package/web/index.html +1 -1
  422. package/web/index.html.br +0 -0
  423. package/web/index.html.gz +0 -0
  424. package/worker.js +1 -1
  425. package/chunk-00jhevnt.js +0 -3
  426. package/chunk-04tx0etc.js +0 -2
  427. package/chunk-0r86p29p.js +0 -7
  428. package/chunk-10x1zefx.js +0 -25
  429. package/chunk-1amcz1cz.js +0 -10
  430. package/chunk-1pfdps04.js +0 -2
  431. package/chunk-206g40v9.js +0 -59
  432. package/chunk-2364s958.js +0 -7
  433. package/chunk-3fv2qcpg.js +0 -12
  434. package/chunk-3zz4a5tn.js +0 -31
  435. package/chunk-45wfmdts.js +0 -44
  436. package/chunk-4hkwjw05.js +0 -2
  437. package/chunk-4n4wn5cj.js +0 -4014
  438. package/chunk-4pq7ycp2.js +0 -5
  439. package/chunk-5e0qfdgx.js +0 -5
  440. package/chunk-78yngmvf.js +0 -51
  441. package/chunk-7hpf9qq2.js +0 -3
  442. package/chunk-82dkdvs9.js +0 -2
  443. package/chunk-8913dkey.js +0 -3
  444. package/chunk-8g1sbmwf.js +0 -3
  445. package/chunk-8hfch7d0.js +0 -2
  446. package/chunk-90arpvgz.js +0 -2
  447. package/chunk-912knnfg.js +0 -11
  448. package/chunk-97bazdk3.js +0 -20
  449. package/chunk-9akexjfn.js +0 -2
  450. package/chunk-9dgmbwcc.js +0 -2
  451. package/chunk-a454ntda.js +0 -50
  452. package/chunk-acd2cwza.js +0 -3
  453. package/chunk-ach16jbw.js +0 -2
  454. package/chunk-ax823t5v.js +0 -3
  455. package/chunk-b03hg30w.js +0 -2
  456. package/chunk-bh29df86.js +0 -5
  457. package/chunk-bhpg72c4.js +0 -2
  458. package/chunk-bwww6j2q.js +0 -2
  459. package/chunk-c126k8wc.js +0 -2
  460. package/chunk-cb3jgak9.js +0 -3
  461. package/chunk-cjeyy6da.js +0 -3
  462. package/chunk-cs4gb2hb.js +0 -2
  463. package/chunk-en5t6hwd.js +0 -3
  464. package/chunk-f4n1csz0.js +0 -3
  465. package/chunk-j16smb6d.js +0 -2
  466. package/chunk-j7eqp97m.js +0 -2
  467. package/chunk-jdrqn8m1.js +0 -2
  468. package/chunk-jp1gqkbp.js +0 -4
  469. package/chunk-jrcvxscb.js +0 -9
  470. package/chunk-k8zq95wr.js +0 -2
  471. package/chunk-ken7ras9.js +0 -8
  472. package/chunk-kqgpjmcf.js +0 -2
  473. package/chunk-krbdx24j.js +0 -3
  474. package/chunk-ky2ym708.js +0 -8
  475. package/chunk-kzfy666j.js +0 -16
  476. package/chunk-n0stnnxv.js +0 -2
  477. package/chunk-n9m2pagh.js +0 -2
  478. package/chunk-nedvy6yk.js +0 -10
  479. package/chunk-ng5g0fy3.js +0 -3
  480. package/chunk-nqeqasyt.js +0 -7
  481. package/chunk-nt30x5a7.js +0 -3
  482. package/chunk-q1s5r204.js +0 -3
  483. package/chunk-qj0vfk01.js +0 -2
  484. package/chunk-qqfdg01g.js +0 -3
  485. package/chunk-rj6qknjx.js +0 -12
  486. package/chunk-rvrj0nrs.js +0 -3
  487. package/chunk-sbhj5h2q.js +0 -2
  488. package/chunk-t71zzafh.js +0 -3
  489. package/chunk-t7fwvzmh.js +0 -3
  490. package/chunk-tpv5hz99.js +0 -5
  491. package/chunk-tx2rrrtq.js +0 -2
  492. package/chunk-tyzzbhr5.js +0 -3
  493. package/chunk-tzbefwf0.js +0 -286
  494. package/chunk-v4p8807b.js +0 -18
  495. package/chunk-vnxjcym9.js +0 -17
  496. package/chunk-w35r8v6x.js +0 -39
  497. package/chunk-wbygknv2.js +0 -3
  498. package/chunk-wk63htqy.js +0 -2
  499. package/chunk-wwazj6mz.js +0 -3
  500. package/chunk-xpc75mkw.js +0 -25
  501. package/chunk-ypxn8bec.js +0 -3
  502. package/chunk-yztc2q9q.js +0 -490
  503. package/web/chunk-02z7yrhn.js +0 -2
  504. package/web/chunk-02z7yrhn.js.br +0 -0
  505. package/web/chunk-02z7yrhn.js.gz +0 -0
  506. package/web/chunk-0an1eqtf.js +0 -1
  507. package/web/chunk-0an1eqtf.js.br +0 -0
  508. package/web/chunk-0an1eqtf.js.gz +0 -0
  509. package/web/chunk-128zy60g.js +0 -99
  510. package/web/chunk-128zy60g.js.br +0 -0
  511. package/web/chunk-128zy60g.js.gz +0 -0
  512. package/web/chunk-1e2jy7m2.js +0 -139
  513. package/web/chunk-1e2jy7m2.js.br +0 -0
  514. package/web/chunk-1e2jy7m2.js.gz +0 -0
  515. package/web/chunk-1v3e001f.js +0 -1
  516. package/web/chunk-1v3e001f.js.br +0 -0
  517. package/web/chunk-1v3e001f.js.gz +0 -0
  518. package/web/chunk-214p3rj6.js +0 -41
  519. package/web/chunk-214p3rj6.js.br +0 -0
  520. package/web/chunk-214p3rj6.js.gz +0 -0
  521. package/web/chunk-29byd5kf.js +0 -89
  522. package/web/chunk-29byd5kf.js.br +0 -0
  523. package/web/chunk-29byd5kf.js.gz +0 -0
  524. package/web/chunk-3fbh1wxk.js +0 -62
  525. package/web/chunk-3fbh1wxk.js.br +0 -0
  526. package/web/chunk-3fbh1wxk.js.gz +0 -0
  527. package/web/chunk-3fnrzj1h.js +0 -98
  528. package/web/chunk-3fnrzj1h.js.br +0 -0
  529. package/web/chunk-3fnrzj1h.js.gz +0 -0
  530. package/web/chunk-3g1095m7.js +0 -78
  531. package/web/chunk-3g1095m7.js.br +0 -0
  532. package/web/chunk-3g1095m7.js.gz +0 -0
  533. package/web/chunk-3nn7w4hw.js +0 -2
  534. package/web/chunk-3nn7w4hw.js.br +0 -0
  535. package/web/chunk-3nn7w4hw.js.gz +0 -0
  536. package/web/chunk-3qa8xcdr.js +0 -1
  537. package/web/chunk-3qa8xcdr.js.br +0 -0
  538. package/web/chunk-3qa8xcdr.js.gz +0 -0
  539. package/web/chunk-3x69jfmh.js +0 -332
  540. package/web/chunk-3x69jfmh.js.br +0 -0
  541. package/web/chunk-3x69jfmh.js.gz +0 -0
  542. package/web/chunk-4v6m77sv.css +0 -1
  543. package/web/chunk-4v6m77sv.css.br +0 -0
  544. package/web/chunk-4v6m77sv.css.gz +0 -0
  545. package/web/chunk-4vk6xma5.js +0 -1
  546. package/web/chunk-4vk6xma5.js.br +0 -0
  547. package/web/chunk-4vk6xma5.js.gz +0 -0
  548. package/web/chunk-50pdas2t.js +0 -1
  549. package/web/chunk-50pdas2t.js.br +0 -0
  550. package/web/chunk-50pdas2t.js.gz +0 -0
  551. package/web/chunk-56a6zytc.js +0 -1139
  552. package/web/chunk-56a6zytc.js.br +0 -0
  553. package/web/chunk-56a6zytc.js.gz +0 -0
  554. package/web/chunk-5ckj4zez.js +0 -1
  555. package/web/chunk-5ckj4zez.js.br +0 -2
  556. package/web/chunk-5ckj4zez.js.gz +0 -0
  557. package/web/chunk-5mr8z024.js +0 -2
  558. package/web/chunk-5mr8z024.js.br +0 -0
  559. package/web/chunk-5mr8z024.js.gz +0 -0
  560. package/web/chunk-5q4pemdh.js +0 -1
  561. package/web/chunk-5q4pemdh.js.br +0 -0
  562. package/web/chunk-5q4pemdh.js.gz +0 -0
  563. package/web/chunk-63ft76vs.js +0 -1
  564. package/web/chunk-63ft76vs.js.br +0 -0
  565. package/web/chunk-63ft76vs.js.gz +0 -0
  566. package/web/chunk-67ynxnvq.js +0 -8
  567. package/web/chunk-67ynxnvq.js.br +0 -0
  568. package/web/chunk-67ynxnvq.js.gz +0 -0
  569. package/web/chunk-6c2pv79h.js +0 -1
  570. package/web/chunk-6c2pv79h.js.br +0 -0
  571. package/web/chunk-6c2pv79h.js.gz +0 -0
  572. package/web/chunk-719tz8xw.js +0 -1
  573. package/web/chunk-719tz8xw.js.br +0 -0
  574. package/web/chunk-719tz8xw.js.gz +0 -0
  575. package/web/chunk-77nxgqqb.js +0 -4
  576. package/web/chunk-77nxgqqb.js.br +0 -0
  577. package/web/chunk-77nxgqqb.js.gz +0 -0
  578. package/web/chunk-7c59jb8d.js +0 -2
  579. package/web/chunk-7c59jb8d.js.br +0 -0
  580. package/web/chunk-7c59jb8d.js.gz +0 -0
  581. package/web/chunk-7ed5jf6e.js +0 -36
  582. package/web/chunk-7ed5jf6e.js.br +0 -0
  583. package/web/chunk-7ed5jf6e.js.gz +0 -0
  584. package/web/chunk-891bpx3c.js +0 -70
  585. package/web/chunk-891bpx3c.js.br +0 -0
  586. package/web/chunk-891bpx3c.js.gz +0 -0
  587. package/web/chunk-8h4dc48v.js +0 -292
  588. package/web/chunk-8h4dc48v.js.br +0 -0
  589. package/web/chunk-8h4dc48v.js.gz +0 -0
  590. package/web/chunk-96n00vam.js +0 -1
  591. package/web/chunk-96n00vam.js.br +0 -0
  592. package/web/chunk-96n00vam.js.gz +0 -0
  593. package/web/chunk-9bs7khrr.js +0 -24
  594. package/web/chunk-9bs7khrr.js.br +0 -0
  595. package/web/chunk-9bs7khrr.js.gz +0 -0
  596. package/web/chunk-9ctyqr3n.js +0 -169
  597. package/web/chunk-9ctyqr3n.js.br +0 -0
  598. package/web/chunk-9ctyqr3n.js.gz +0 -0
  599. package/web/chunk-9qdx0ekk.js +0 -142
  600. package/web/chunk-9qdx0ekk.js.br +0 -0
  601. package/web/chunk-9qdx0ekk.js.gz +0 -0
  602. package/web/chunk-9r0rnt6d.js +0 -214
  603. package/web/chunk-9r0rnt6d.js.br +0 -0
  604. package/web/chunk-9r0rnt6d.js.gz +0 -0
  605. package/web/chunk-a11ev6ff.js +0 -1
  606. package/web/chunk-a11ev6ff.js.br +0 -0
  607. package/web/chunk-a11ev6ff.js.gz +0 -0
  608. package/web/chunk-ac9g3w7v.js +0 -1
  609. package/web/chunk-ac9g3w7v.js.br +0 -0
  610. package/web/chunk-ac9g3w7v.js.gz +0 -0
  611. package/web/chunk-ackts7ph.js +0 -24
  612. package/web/chunk-ackts7ph.js.br +0 -0
  613. package/web/chunk-ackts7ph.js.gz +0 -0
  614. package/web/chunk-asyqrf38.js +0 -1
  615. package/web/chunk-asyqrf38.js.br +0 -0
  616. package/web/chunk-asyqrf38.js.gz +0 -0
  617. package/web/chunk-b13crsv9.js +0 -1
  618. package/web/chunk-b13crsv9.js.br +0 -0
  619. package/web/chunk-b13crsv9.js.gz +0 -0
  620. package/web/chunk-brg2zcv5.js +0 -55
  621. package/web/chunk-brg2zcv5.js.br +0 -0
  622. package/web/chunk-brg2zcv5.js.gz +0 -0
  623. package/web/chunk-bw9crrb4.js +0 -1
  624. package/web/chunk-bw9crrb4.js.br +0 -0
  625. package/web/chunk-bw9crrb4.js.gz +0 -0
  626. package/web/chunk-c3d08dw1.js +0 -1
  627. package/web/chunk-c3d08dw1.js.br +0 -0
  628. package/web/chunk-c3d08dw1.js.gz +0 -0
  629. package/web/chunk-cgwnzse1.js +0 -16
  630. package/web/chunk-cgwnzse1.js.br +0 -0
  631. package/web/chunk-cgwnzse1.js.gz +0 -0
  632. package/web/chunk-cm4fjb6j.js +0 -2
  633. package/web/chunk-cm4fjb6j.js.br +0 -0
  634. package/web/chunk-cm4fjb6j.js.gz +0 -0
  635. package/web/chunk-cys4n4sv.js +0 -1
  636. package/web/chunk-cys4n4sv.js.br +0 -0
  637. package/web/chunk-cys4n4sv.js.gz +0 -0
  638. package/web/chunk-djrvdzsb.js +0 -89
  639. package/web/chunk-djrvdzsb.js.br +0 -0
  640. package/web/chunk-djrvdzsb.js.gz +0 -0
  641. package/web/chunk-dsffzc1e.js +0 -2
  642. package/web/chunk-dsffzc1e.js.br +0 -0
  643. package/web/chunk-dsffzc1e.js.gz +0 -0
  644. package/web/chunk-e1wy8050.js +0 -370
  645. package/web/chunk-e1wy8050.js.br +0 -0
  646. package/web/chunk-e1wy8050.js.gz +0 -0
  647. package/web/chunk-ebknmxdp.js +0 -2
  648. package/web/chunk-ebknmxdp.js.br +0 -0
  649. package/web/chunk-ebknmxdp.js.gz +0 -0
  650. package/web/chunk-egjv760p.js +0 -2
  651. package/web/chunk-egjv760p.js.br +0 -0
  652. package/web/chunk-egjv760p.js.gz +0 -0
  653. package/web/chunk-etpd8y98.js +0 -1
  654. package/web/chunk-etpd8y98.js.br +0 -0
  655. package/web/chunk-etpd8y98.js.gz +0 -0
  656. package/web/chunk-f5kr9p2k.js +0 -1
  657. package/web/chunk-f5kr9p2k.js.br +0 -2
  658. package/web/chunk-f5kr9p2k.js.gz +0 -0
  659. package/web/chunk-fjhqg9ag.js +0 -2
  660. package/web/chunk-fjhqg9ag.js.br +0 -0
  661. package/web/chunk-fjhqg9ag.js.gz +0 -0
  662. package/web/chunk-fyr6rm2p.js +0 -2
  663. package/web/chunk-fyr6rm2p.js.br +0 -0
  664. package/web/chunk-fyr6rm2p.js.gz +0 -0
  665. package/web/chunk-grjq1g15.js +0 -1
  666. package/web/chunk-grjq1g15.js.br +0 -0
  667. package/web/chunk-grjq1g15.js.gz +0 -0
  668. package/web/chunk-h4bzgvbg.js +0 -303
  669. package/web/chunk-h4bzgvbg.js.br +0 -0
  670. package/web/chunk-h4bzgvbg.js.gz +0 -0
  671. package/web/chunk-heen0v5d.js +0 -12
  672. package/web/chunk-heen0v5d.js.br +0 -0
  673. package/web/chunk-heen0v5d.js.gz +0 -0
  674. package/web/chunk-henez15c.js +0 -4
  675. package/web/chunk-henez15c.js.br +0 -0
  676. package/web/chunk-henez15c.js.gz +0 -0
  677. package/web/chunk-hpcvwdkg.js +0 -1
  678. package/web/chunk-hpcvwdkg.js.br +0 -0
  679. package/web/chunk-hpcvwdkg.js.gz +0 -0
  680. package/web/chunk-hpvyk6rz.js +0 -324
  681. package/web/chunk-hpvyk6rz.js.br +0 -0
  682. package/web/chunk-hpvyk6rz.js.gz +0 -0
  683. package/web/chunk-j0dyf1g8.js +0 -2
  684. package/web/chunk-j0dyf1g8.js.br +0 -3
  685. package/web/chunk-j0dyf1g8.js.gz +0 -0
  686. package/web/chunk-jb89v31q.js +0 -1
  687. package/web/chunk-jb89v31q.js.br +0 -0
  688. package/web/chunk-jb89v31q.js.gz +0 -0
  689. package/web/chunk-jb949ewp.js +0 -217
  690. package/web/chunk-jb949ewp.js.br +0 -0
  691. package/web/chunk-jb949ewp.js.gz +0 -0
  692. package/web/chunk-je4bf95v.js +0 -1
  693. package/web/chunk-je4bf95v.js.br +0 -0
  694. package/web/chunk-je4bf95v.js.gz +0 -0
  695. package/web/chunk-js6c1973.js +0 -1
  696. package/web/chunk-js6c1973.js.br +0 -0
  697. package/web/chunk-js6c1973.js.gz +0 -0
  698. package/web/chunk-k140nr54.js +0 -1
  699. package/web/chunk-k140nr54.js.br +0 -0
  700. package/web/chunk-k140nr54.js.gz +0 -0
  701. package/web/chunk-k89686qj.js +0 -2
  702. package/web/chunk-k89686qj.js.br +0 -0
  703. package/web/chunk-k89686qj.js.gz +0 -0
  704. package/web/chunk-kknrn2wb.js +0 -84
  705. package/web/chunk-kknrn2wb.js.br +0 -0
  706. package/web/chunk-kknrn2wb.js.gz +0 -0
  707. package/web/chunk-mhtzdq9d.js +0 -140
  708. package/web/chunk-mhtzdq9d.js.br +0 -0
  709. package/web/chunk-mhtzdq9d.js.gz +0 -0
  710. package/web/chunk-mrnj2k3v.js +0 -2
  711. package/web/chunk-mrnj2k3v.js.br +0 -0
  712. package/web/chunk-mrnj2k3v.js.gz +0 -0
  713. package/web/chunk-my0k5w7f.js +0 -39
  714. package/web/chunk-my0k5w7f.js.br +0 -0
  715. package/web/chunk-my0k5w7f.js.gz +0 -0
  716. package/web/chunk-n08727ym.js +0 -34
  717. package/web/chunk-n08727ym.js.br +0 -0
  718. package/web/chunk-n08727ym.js.gz +0 -0
  719. package/web/chunk-n5ghyxwk.js +0 -38
  720. package/web/chunk-n5ghyxwk.js.br +0 -0
  721. package/web/chunk-n5ghyxwk.js.gz +0 -0
  722. package/web/chunk-nt21rjrm.js +0 -21
  723. package/web/chunk-nt21rjrm.js.br +0 -0
  724. package/web/chunk-nt21rjrm.js.gz +0 -0
  725. package/web/chunk-nzgj9qx5.js +0 -2
  726. package/web/chunk-nzgj9qx5.js.br +0 -0
  727. package/web/chunk-nzgj9qx5.js.gz +0 -0
  728. package/web/chunk-p9wm0dv3.js +0 -1
  729. package/web/chunk-p9wm0dv3.js.br +0 -0
  730. package/web/chunk-p9wm0dv3.js.gz +0 -0
  731. package/web/chunk-pqh9yszs.js +0 -106
  732. package/web/chunk-pqh9yszs.js.br +0 -0
  733. package/web/chunk-pqh9yszs.js.gz +0 -0
  734. package/web/chunk-q0vsqq43.js +0 -1
  735. package/web/chunk-q0vsqq43.js.br +0 -0
  736. package/web/chunk-q0vsqq43.js.gz +0 -0
  737. package/web/chunk-qv5d69fn.js +0 -2
  738. package/web/chunk-qv5d69fn.js.br +0 -0
  739. package/web/chunk-qv5d69fn.js.gz +0 -0
  740. package/web/chunk-r7afv22v.js +0 -2
  741. package/web/chunk-r7afv22v.js.br +0 -0
  742. package/web/chunk-r7afv22v.js.gz +0 -0
  743. package/web/chunk-rc6at4k5.js +0 -291
  744. package/web/chunk-rc6at4k5.js.br +0 -0
  745. package/web/chunk-rc6at4k5.js.gz +0 -0
  746. package/web/chunk-rnsvrehz.js +0 -30
  747. package/web/chunk-rnsvrehz.js.br +0 -0
  748. package/web/chunk-rnsvrehz.js.gz +0 -0
  749. package/web/chunk-rsmhn1fq.js +0 -1
  750. package/web/chunk-rsmhn1fq.js.br +0 -0
  751. package/web/chunk-rsmhn1fq.js.gz +0 -0
  752. package/web/chunk-s1p271av.js +0 -1
  753. package/web/chunk-s1p271av.js.br +0 -0
  754. package/web/chunk-s1p271av.js.gz +0 -0
  755. package/web/chunk-s6a13wxe.js +0 -2
  756. package/web/chunk-s6a13wxe.js.br +0 -0
  757. package/web/chunk-s6a13wxe.js.gz +0 -0
  758. package/web/chunk-sc4kwbnh.js +0 -1
  759. package/web/chunk-sc4kwbnh.js.br +0 -2
  760. package/web/chunk-sc4kwbnh.js.gz +0 -0
  761. package/web/chunk-scebh2ee.js +0 -1
  762. package/web/chunk-scebh2ee.js.br +0 -0
  763. package/web/chunk-scebh2ee.js.gz +0 -0
  764. package/web/chunk-shtkgxz6.js +0 -2
  765. package/web/chunk-shtkgxz6.js.br +0 -0
  766. package/web/chunk-shtkgxz6.js.gz +0 -0
  767. package/web/chunk-spmfwbhd.js +0 -1
  768. package/web/chunk-spmfwbhd.js.br +0 -0
  769. package/web/chunk-spmfwbhd.js.gz +0 -0
  770. package/web/chunk-svtenejf.js +0 -1
  771. package/web/chunk-svtenejf.js.br +0 -0
  772. package/web/chunk-svtenejf.js.gz +0 -0
  773. package/web/chunk-t9z1bp8j.js +0 -3
  774. package/web/chunk-t9z1bp8j.js.br +0 -0
  775. package/web/chunk-t9z1bp8j.js.gz +0 -0
  776. package/web/chunk-tbgavq0t.js +0 -2
  777. package/web/chunk-tbgavq0t.js.br +0 -0
  778. package/web/chunk-tbgavq0t.js.gz +0 -0
  779. package/web/chunk-tnttdgsc.js +0 -1
  780. package/web/chunk-tnttdgsc.js.br +0 -0
  781. package/web/chunk-tnttdgsc.js.gz +0 -0
  782. package/web/chunk-tp3fpa0t.js +0 -1
  783. package/web/chunk-tp3fpa0t.js.br +0 -0
  784. package/web/chunk-tp3fpa0t.js.gz +0 -0
  785. package/web/chunk-txdkp6yc.js +0 -7
  786. package/web/chunk-txdkp6yc.js.br +0 -0
  787. package/web/chunk-txdkp6yc.js.gz +0 -0
  788. package/web/chunk-v34mwgx8.js +0 -1
  789. package/web/chunk-v34mwgx8.js.br +0 -0
  790. package/web/chunk-v34mwgx8.js.gz +0 -0
  791. package/web/chunk-vtp01n96.js +0 -1
  792. package/web/chunk-vtp01n96.js.br +0 -0
  793. package/web/chunk-vtp01n96.js.gz +0 -0
  794. package/web/chunk-vx1qmkbm.js +0 -120
  795. package/web/chunk-vx1qmkbm.js.br +0 -0
  796. package/web/chunk-vx1qmkbm.js.gz +0 -0
  797. package/web/chunk-vxx451tt.js +0 -1
  798. package/web/chunk-vxx451tt.js.br +0 -0
  799. package/web/chunk-vxx451tt.js.gz +0 -0
  800. package/web/chunk-w8epfc0c.js +0 -1
  801. package/web/chunk-w8epfc0c.js.br +0 -0
  802. package/web/chunk-w8epfc0c.js.gz +0 -0
  803. package/web/chunk-whgh2r7d.js +0 -200
  804. package/web/chunk-whgh2r7d.js.br +0 -0
  805. package/web/chunk-whgh2r7d.js.gz +0 -0
  806. package/web/chunk-x0p1n5ws.js +0 -1
  807. package/web/chunk-x0p1n5ws.js.br +0 -2
  808. package/web/chunk-x0p1n5ws.js.gz +0 -0
  809. package/web/chunk-x2tk9zeq.js +0 -1
  810. package/web/chunk-x2tk9zeq.js.br +0 -0
  811. package/web/chunk-x2tk9zeq.js.gz +0 -0
  812. package/web/chunk-xbt045kt.js +0 -1
  813. package/web/chunk-xbt045kt.js.br +0 -2
  814. package/web/chunk-xbt045kt.js.gz +0 -0
  815. package/web/chunk-xh3agbvb.js +0 -7
  816. package/web/chunk-xh3agbvb.js.br +0 -0
  817. package/web/chunk-xh3agbvb.js.gz +0 -0
  818. package/web/chunk-xpw1spgj.js +0 -40
  819. package/web/chunk-xpw1spgj.js.br +0 -0
  820. package/web/chunk-xpw1spgj.js.gz +0 -0
  821. package/web/chunk-y2jkaf1e.js +0 -2
  822. package/web/chunk-y2jkaf1e.js.br +0 -0
  823. package/web/chunk-y2jkaf1e.js.gz +0 -0
  824. package/web/chunk-yp2jydfj.js +0 -1
  825. package/web/chunk-yp2jydfj.js.br +0 -0
  826. package/web/chunk-yp2jydfj.js.gz +0 -0
  827. package/web/chunk-yxp1es3b.js +0 -1
  828. package/web/chunk-yxp1es3b.js.br +0 -0
  829. package/web/chunk-yxp1es3b.js.gz +0 -0
  830. package/web/chunk-yzrww95m.js +0 -7
  831. package/web/chunk-yzrww95m.js.br +0 -0
  832. package/web/chunk-yzrww95m.js.gz +0 -0
  833. package/web/chunk-z502b5p0.js +0 -1
  834. package/web/chunk-z502b5p0.js.br +0 -0
  835. package/web/chunk-z502b5p0.js.gz +0 -0
  836. package/web/chunk-zny7cya7.js +0 -1
  837. package/web/chunk-zny7cya7.js.br +0 -2
  838. package/web/chunk-zny7cya7.js.gz +0 -0
  839. package/web/chunk-zq1qbaxb.js +0 -2
  840. package/web/chunk-zq1qbaxb.js.br +0 -0
  841. package/web/chunk-zq1qbaxb.js.gz +0 -0
  842. /package/{chunk-h4bvkm6p.js → chunk-2h2mvrw2.js} +0 -0
  843. /package/{chunk-51f8zbj5.js → chunk-54zpktrq.js} +0 -0
  844. /package/{chunk-fqfjjhkj.js → chunk-aq6xkc1w.js} +0 -0
  845. /package/{chunk-chfzk1fx.js → chunk-et2s8y6a.js} +0 -0
  846. /package/{chunk-pa7yh2q3.js → chunk-fgpzy3fe.js} +0 -0
@@ -0,0 +1 @@
1
+ import{ee,a,e,n,b,ge,ue}from"./chunk-jbejy8k3.js";import{Yn,na}from"./chunk-z5sk390b.js";import"./chunk-zzs4h31m.js";function B({connection:p}){let{Button:r,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=b(),c=ee(),[y,S]=a(""),i=na({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,s)=>JSON.stringify(t.models)!==JSON.stringify(s.models)||t.research!==s.research}),N=(t)=>{if(!t)return;i.edit((s)=>{if(s.models.includes(t)||s.models.length>=8)return s;return{...s,models:[...s.models,t]}}),S("")},k=(t)=>{i.edit((s)=>({...s,models:s.models.filter((o)=>o!==t)}))},l=i.settings?.models??[];return n("form",{id:c,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${l.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[l.map((t)=>{let s=i.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=s?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-ui text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(ue,{className:"size-3.5"})})]},t)}),l.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:i.modelList.models.filter((t)=>!l.includes(t.id))},value:y,onChange:N})}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.refreshing||i.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void i.load(!0),className:"text-faint hover:text-ink",children:e(ge,{className:x("size-3.5",i.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:i.settings?.research??!0,disabled:i.loading||i.saving,onCheckedChange:(t)=>{i.edit((s)=>({...s,research:t}))}})})}),e(Yn,{formID:c,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{B as CouncilSettingsSection};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Mn}from"./chunk-batey85v.js";import"./chunk-6ycpdpfj.js";export{Mn as default};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{t,i}from"./chunk-e4h4dg4y.js";import{he,Rn,Pn}from"./chunk-pm504vps.js";import{ae}from"./chunk-mytypet0.js";import{Pa,_n}from"./chunk-yarejzzs.js";var s=Pa().RailroadEbnf.parser.LangiumParser,a=t((e)=>{let r=e.alternatives.map(m);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),m=t((e)=>{let r=e.elements.map(p);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),o=t((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return a(e.element);case"EbnfOptional":return{type:"optional",element:a(e.element)};case"EbnfRepetition":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),l=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},o(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),p=t((e)=>e.postfixes.reduce((r,n)=>l(r,n),o(e.base)),"transformTerm"),f=t((e)=>({name:e.name,definition:a(e.definition)}),"transformRule"),u=t((e)=>{if(ae(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(f(r)))},"populateDb"),c={parse:t((e)=>{he.clear(),i.debug("[EBNF Parser] Starting Langium parse");let r=s.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new _n(r);let n=r.value;i.debug("[EBNF Parser] Parsed rules:",n.rules.length),u(n),i.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:he}},x={parser:c,db:he,renderer:Pn,styles:Rn};export{x as diagram};
Binary file
Binary file
@@ -0,0 +1,84 @@
1
+ import{t,rr,i,A,L,M,P,R,I,O,D,u,H,De,Ne,Me,mn,He,Ue}from"./chunk-e4h4dg4y.js";import{ze}from"./chunk-t8b8cdak.js";import{Pe}from"./chunk-c86a6am5.js";var Be=function(){var e=t(function(X,a,l,c){for(l=l||{},c=X.length;c--;l[X[c]]=a);return l},"o"),d=[1,3],f=[1,4],m=[1,5],n=[1,6],h=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],_=[1,22],q=[2,7],E=[1,26],S=[1,27],T=[1,28],x=[1,29],w=[1,33],F=[1,34],U=[1,35],Y=[1,36],B=[1,37],Q=[1,38],K=[1,24],W=[1,31],j=[1,32],G=[1,30],k=[1,39],g=[1,40],b=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],J=[1,61],ce=[89,90],Qe=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],qe=[27,29],Ke=[1,70],We=[1,71],je=[1,72],Ge=[1,73],Xe=[1,74],Je=[1,75],Ze=[1,76],ue=[1,83],Z=[1,80],me=[1,84],fe=[1,85],de=[1,86],pe=[1,87],Ee=[1,88],be=[1,89],Re=[1,90],ke=[1,91],ge=[1,92],Ce=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ee=[63,64],et=[1,101],tt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],C=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],te=[1,110],se=[1,106],ie=[1,107],re=[1,108],ne=[1,109],ae=[1,111],ye=[1,116],_e=[1,117],Se=[1,114],Ie=[1,115],xe={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(a,l,c,r,p,s,Te){var o=s.length-1;switch(p){case 4:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection("TB");break;case 18:r.setDirection("BT");break;case 19:r.setDirection("RL");break;case 20:r.setDirection("LR");break;case 21:r.addRequirement(s[o-3],s[o-4]);break;case 22:r.addRequirement(s[o-5],s[o-6]),r.setClass([s[o-5]],s[o-3]);break;case 23:r.setNewReqId(s[o-2]);break;case 24:r.setNewReqText(s[o-2]);break;case 25:r.setNewReqRisk(s[o-2]);break;case 26:r.setNewReqVerifyMethod(s[o-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(s[o-3]);break;case 43:r.addElement(s[o-5]),r.setClass([s[o-5]],s[o-3]);break;case 44:r.setNewElementType(s[o-2]);break;case 45:r.setNewElementDocRef(s[o-2]);break;case 48:r.addRelationship(s[o-2],s[o],s[o-4]);break;case 49:r.addRelationship(s[o-2],s[o-4],s[o]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=s[o-2],r.defineClass(s[o-1],s[o]);break;case 58:r.setClass(s[o-1],s[o]);break;case 59:r.setClass([s[o-2]],s[o]);break;case 60:case 62:this.$=[s[o]];break;case 61:case 63:this.$=s[o-2].concat([s[o]]);break;case 64:this.$=s[o-2],r.setCssStyle(s[o-1],s[o]);break;case 65:this.$=[s[o]];break;case 66:s[o-2].push(s[o]),this.$=s[o-2];break;case 68:this.$=s[o-1]+s[o];break}},"anonymous"),table:[{3:1,4:2,6:d,9:f,11:m,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:d,9:f,11:m,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(h,[2,6]),{3:12,4:2,6:d,9:f,11:m,13:n},{1:[2,2]},{4:17,5:_,7:13,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},e(h,[2,4]),e(h,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:_,7:42,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:43,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:44,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:45,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:46,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:47,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:48,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:49,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:50,8:q,9:f,11:m,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:S,23:T,24:x,25:23,33:25,41:w,42:F,43:U,44:Y,45:B,46:Q,54:K,72:W,74:j,77:G,89:k,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),{30:60,33:62,75:J,89:k,90:g},{30:63,33:62,75:J,89:k,90:g},{30:64,33:62,75:J,89:k,90:g},e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),e(Qe,[2,81]),e(Qe,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(qe,[2,79]),e(qe,[2,80]),{27:[1,67],29:[1,68]},e(qe,[2,85]),e(qe,[2,86]),{62:69,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{62:77,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{30:78,33:62,75:J,89:k,90:g},{73:79,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:Re,87:ke,88:ge},e(Ce,[2,60]),e(Ce,[2,62]),{73:93,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:Re,87:ke,88:ge},{30:94,33:62,75:J,76:Z,89:k,90:g},{5:[1,95]},{30:96,33:62,75:J,89:k,90:g},{5:[1,97]},{30:98,33:62,75:J,89:k,90:g},{63:[1,99]},e(ee,[2,50]),e(ee,[2,51]),e(ee,[2,52]),e(ee,[2,53]),e(ee,[2,54]),e(ee,[2,55]),e(ee,[2,56]),{64:[1,100]},e(b,[2,59],{76:Z}),e(b,[2,64],{76:et}),{33:103,75:[1,102],89:k,90:g},e(tt,[2,65],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:Re,87:ke,88:ge}),e(C,[2,67]),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(C,[2,72]),e(C,[2,73]),e(C,[2,74]),e(C,[2,75]),e(C,[2,76]),e(C,[2,77]),e(C,[2,78]),e(b,[2,57],{76:et}),e(b,[2,58],{76:Z}),{5:te,28:105,31:se,34:ie,36:re,38:ne,40:ae},{27:[1,112],76:Z},{5:ye,40:_e,56:113,57:Se,59:Ie},{27:[1,118],76:Z},{33:119,89:k,90:g},{33:120,89:k,90:g},{75:ue,78:121,79:82,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:Re,87:ke,88:ge},e(Ce,[2,61]),e(Ce,[2,63]),e(C,[2,68]),e(b,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:te,28:126,31:se,34:ie,36:re,38:ne,40:ae},e(b,[2,28]),{5:[1,127]},e(b,[2,42]),{32:[1,128]},{32:[1,129]},{5:ye,40:_e,56:130,57:Se,59:Ie},e(b,[2,47]),{5:[1,131]},e(b,[2,48]),e(b,[2,49]),e(tt,[2,66],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:Ee,85:be,86:Re,87:ke,88:ge}),{33:132,89:k,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(b,[2,27]),{5:te,28:145,31:se,34:ie,36:re,38:ne,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(b,[2,46]),{5:ye,40:_e,56:152,57:Se,59:Ie},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(b,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(b,[2,43]),{5:te,28:159,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:160,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:161,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:162,31:se,34:ie,36:re,38:ne,40:ae},{5:ye,40:_e,56:163,57:Se,59:Ie},{5:ye,40:_e,56:164,57:Se,59:Ie},e(b,[2,23]),e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,44]),e(b,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(a,l){if(l.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=l,c}},"parseError"),parse:t(function(a){var l=this,c=[0],r=[],p=[null],s=[],Te=this.table,o="",Ve=0,st=0,it=0,ct=2,rt=1,ht=s.slice.call(arguments,1),y=Object.create(this.lexer),le={yy:{}};for(var we in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,we))le.yy[we]=this.yy[we];if(y.setInput(a,le.yy),le.yy.lexer=y,le.yy.parser=this,typeof y.yylloc>"u")y.yylloc={};var Oe=y.yylloc;s.push(Oe);var ut=y.options&&y.options.ranges;if(typeof le.yy.parseError==="function")this.parseError=le.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(v){c.length=c.length-2*v,p.length=p.length-v,s.length=s.length-v}t(mt,"popStack");function nt(){var v=r.pop()||y.lex()||rt;if(typeof v!=="number"){if(v instanceof Array)r=v,v=r.pop();v=l.symbols_[v]||v}return v}t(nt,"lex");var N,Fe,oe,V,kt,$e,he={},ve,z,at,Le;while(!0){if(oe=c[c.length-1],this.defaultActions[oe])V=this.defaultActions[oe];else{if(N===null||typeof N>"u")N=nt();V=Te[oe]&&Te[oe][N]}if(typeof V>"u"||!V.length||!V[0]){var Ye="";Le=[];for(ve in Te[oe])if(this.terminals_[ve]&&ve>ct)Le.push("'"+this.terminals_[ve]+"'");if(y.showPosition)Ye="Parse error on line "+(Ve+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+Le.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Ye="Parse error on line "+(Ve+1)+": Unexpected "+(N==rt?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Ye,{text:y.match,token:this.terminals_[N]||N,line:y.yylineno,loc:Oe,expected:Le})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+oe+", token: "+N);switch(V[0]){case 1:if(c.push(N),p.push(y.yytext),s.push(y.yylloc),c.push(V[1]),N=null,!Fe){if(st=y.yyleng,o=y.yytext,Ve=y.yylineno,Oe=y.yylloc,it>0)it--}else N=Fe,Fe=null;break;case 2:if(z=this.productions_[V[1]][1],he.$=p[p.length-z],he._$={first_line:s[s.length-(z||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(z||1)].first_column,last_column:s[s.length-1].last_column},ut)he._$.range=[s[s.length-(z||1)].range[0],s[s.length-1].range[1]];if($e=this.performAction.apply(he,[o,st,Ve,le.yy,V[1],p,s].concat(ht)),typeof $e<"u")return $e;if(z)c=c.slice(0,-1*z*2),p=p.slice(0,-1*z),s=s.slice(0,-1*z);c.push(this.productions_[V[1]][0]),p.push(he.$),s.push(he._$),at=Te[c[c.length-2]][c[c.length-1]],c.push(at);break;case 3:return!0}}return!0},"parse")},ot=function(){var X={EOF:1,parseError:t(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw Error(l)},"parseError"),setInput:t(function(a,l){if(this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);if(l)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),a},"input"),unput:t(function(a){var l=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var p=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-l];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(a){this.unput(this.match.slice(a))},"less"),pastInput:t(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var a=this.match;if(a.length<20)a+=this._input.substr(0,20-a.length);return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var a=this.pastInput(),l=Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
+ `+l+"^"},"showPosition"),test_match:t(function(a,l){var c,r,p;if(this.options.backtrack_lexer){if(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)p.yylloc.range=this.yylloc.range.slice(0)}if(r=a[0].match(/(?:\r\n?|\n).*/g),r)this.yylineno+=r.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var s in p)this[s]=p[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var a,l,c,r;if(!this._more)this.yytext="",this.match="";var p=this._currentRules();for(var s=0;s<p.length;s++)if(c=this._input.match(this.rules[p[s]]),c&&(!l||c[0].length>l[0].length)){if(l=c,r=s,this.options.backtrack_lexer)if(a=this.test_match(c,p[s]),a!==!1)return a;else if(this._backtrack){l=!1;continue}else return!1;else if(!this.options.flex)break}if(l){if(a=this.test_match(l,p[r]),a!==!1)return a;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var l=this.next();if(l)return l;else return this.lex()},"lex"),begin:t(function(l){this.conditionStack.push(l)},"begin"),popState:t(function(){var l=this.conditionStack.length-1;if(l>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(l){if(l=this.conditionStack.length-1-Math.abs(l||0),l>=0)return this.conditionStack[l];else return"INITIAL"},"topState"),pushState:t(function(l){this.begin(l)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(l,c,r,p){var s=p;switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return c.yytext=c.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return X}();xe.lexer=ot;function Ae(){this.yy={}}return t(Ae,"Parser"),Ae.prototype=xe,xe.Parser=Ae,new Ae}();Be.parser=Be;var ft=Be,dt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=M,this.getAccTitle=P,this.setAccDescription=R,this.getAccDescription=I,this.setDiagramTitle=O,this.getDiagramTitle=D,this.getConfig=t(()=>u().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{t(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,d){if(!this.requirements.has(e))this.requirements.set(e,{name:e,type:d,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]});return this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0)this.latestRequirement.requirementId=e}setNewReqText(e){if(this.latestRequirement!==void 0)this.latestRequirement.text=e}setNewReqRisk(e){if(this.latestRequirement!==void 0)this.latestRequirement.risk=e}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0)this.latestRequirement.verifyMethod=e}addElement(e){if(!this.elements.has(e))this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),i.info("Added new element: ",e);return this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0)this.latestElement.type=e}setNewElementDocRef(e){if(this.latestElement!==void 0)this.latestElement.docRef=e}addRelationship(e,d,f){this.relations.push({type:e,src:d,dst:f})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,L()}setCssStyle(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(!d||!m)return;for(let n of d)if(n.includes(","))m.cssStyles.push(...n.split(","));else m.cssStyles.push(n)}}setClass(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(m)for(let n of d){m.classes.push(n);let h=this.classes.get(n)?.styles;if(h)m.cssStyles.push(...h)}}}defineClass(e,d){for(let f of e){let m=this.classes.get(f);if(m===void 0)m={id:f,styles:[],textStyles:[]},this.classes.set(f,m);if(d)d.forEach(function(n){if(/color/.exec(n)){let h=n.replace("fill","bgFill");m.textStyles.push(h)}m.styles.push(n)});this.requirements.forEach((n)=>{if(n.classes.includes(f))n.cssStyles.push(...d.flatMap((h)=>h.split(",")))}),this.elements.forEach((n)=>{if(n.classes.includes(f))n.cssStyles.push(...d.flatMap((h)=>h.split(",")))})}}getClasses(){return this.classes}getData(){let e=u(),d=[],f=[];for(let n of this.requirements.values()){let h=n;h.id=n.name,h.cssStyles=n.cssStyles,h.cssClasses=n.classes.join(" "),h.shape="requirementBox",h.look=e.look,h.colorIndex=d.length,d.push(h)}for(let n of this.elements.values()){let h=n;h.shape="requirementBox",h.look=e.look,h.id=n.name,h.cssStyles=n.cssStyles,h.cssClasses=n.classes.join(" "),h.colorIndex=d.length,d.push(h)}let m=0;for(let n of this.relations){let h=n.type===this.Relationships.CONTAINS,_={id:`${n.src}-${n.dst}-${m++}`,start:this.requirements.get(n.src)?.name??this.elements.get(n.src)?.name,end:this.requirements.get(n.dst)?.name??this.elements.get(n.dst)?.name,label:`&lt;&lt;${n.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",h?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:h?"normal":"dashed",arrowTypeStart:h?"requirement_contains":"",arrowTypeEnd:h?"":"requirement_arrow",look:e.look,labelType:"markdown"};f.push(_)}return{nodes:d,edges:f,other:{},config:e,direction:this.getDirection()}}},pt=t(()=>{let e=A(),{theme:d,themeVariables:f}=e,{bkgColorArray:m,borderColorArray:n}=f;if(!Ne(d,n))return"";let h=Me(e.look),_="",q=De(m);for(let E=0;E<mn(n);E++){let S=n[E],T=q?`fill: ${m[E%m.length]};`:"";_+=`
7
+
8
+ [data-look="${h}"][data-color-id="color-${E}"].node path {
9
+ stroke: ${S};
10
+ ${T}
11
+ }
12
+
13
+ [data-look="${h}"][data-color-id="color-${E}"].node rect {
14
+ stroke: ${S};
15
+ ${T}
16
+ }
17
+ `}return _},"genColor"),Et=t((e)=>{let d=A(),{look:f,themeVariables:m}=d,{requirementEdgeLabelBackground:n}=m;return`
18
+ ${pt()}
19
+ marker {
20
+ fill: ${e.relationColor};
21
+ stroke: ${e.relationColor};
22
+ }
23
+
24
+ marker.cross {
25
+ stroke: ${e.lineColor};
26
+ }
27
+
28
+ svg {
29
+ font-family: ${e.fontFamily};
30
+ font-size: ${e.fontSize};
31
+ }
32
+
33
+ .reqBox {
34
+ fill: ${e.requirementBackground};
35
+ fill-opacity: 1.0;
36
+ stroke: ${e.requirementBorderColor};
37
+ stroke-width: ${e.requirementBorderSize};
38
+ }
39
+
40
+ .reqTitle, .reqLabel{
41
+ fill: ${e.requirementTextColor};
42
+ }
43
+ .reqLabelBox {
44
+ fill: ${e.relationLabelBackground};
45
+ fill-opacity: 1.0;
46
+ }
47
+
48
+ .req-title-line {
49
+ stroke: ${e.requirementBorderColor};
50
+ stroke-width: ${e.requirementBorderSize};
51
+ }
52
+ .relationshipLine {
53
+ stroke: ${e.relationColor};
54
+ stroke-width: ${f==="neo"?e.strokeWidth:"1px"};
55
+ }
56
+ .relationshipLabel {
57
+ fill: ${e.relationLabelColor};
58
+ }
59
+ .edgeLabel {
60
+ background-color: ${e.edgeLabelBackground};
61
+ }
62
+ .edgeLabel .label rect {
63
+ fill: ${e.edgeLabelBackground};
64
+ }
65
+ .edgeLabel .label text {
66
+ fill: ${e.relationLabelColor};
67
+ }
68
+ .divider {
69
+ stroke: ${e.nodeBorder};
70
+ stroke-width: 1;
71
+ }
72
+ .label {
73
+ font-family: ${e.fontFamily};
74
+ color: ${e.nodeTextColor||e.textColor};
75
+ }
76
+ .label text,span {
77
+ fill: ${e.nodeTextColor||e.textColor};
78
+ color: ${e.nodeTextColor||e.textColor};
79
+ }
80
+ .labelBkg {
81
+ background-color: ${n??e.edgeLabelBackground};
82
+ }
83
+
84
+ `},"getStyles"),bt=Et,lt={};rr(lt,{draw:()=>Rt});var Rt=t(async function(e,d,f,m){i.info("REF0:"),i.info("Drawing requirement diagram (unified)",d);let{securityLevel:n,state:h,layout:_,look:q}=u(),E=m.db.getData(),S=ze(d,n);E.type=m.type,E.layoutAlgorithm=Ue(_),E.nodeSpacing=h?.nodeSpacing??50,E.rankSpacing=h?.rankSpacing??50,E.markers=q==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],E.diagramId=d,await He(E,S);let T=8;H.insertTitle(S,"requirementDiagramTitleText",h?.titleTopMargin??25,m.db.getDiagramTitle()),Pe(S,T,"requirementDiagram",h?.useMaxWidth??!0)},"draw"),Ot={parser:ft,get db(){return new dt},renderer:lt,styles:bt};export{Ot as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import"./chunk-e4h4dg4y.js";import"./chunk-ptvshaa0.js";import{Kc}from"./chunk-rcn21n5e.js";import"./chunk-s8e8gzvn.js";import"./chunk-yw98mr7e.js";import"./chunk-t8b8cdak.js";import"./chunk-c86a6am5.js";export{Kc as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{ee,e,n,b}from"./chunk-jbejy8k3.js";import{Yn,na}from"./chunk-z5sk390b.js";import"./chunk-zzs4h31m.js";function M({connection:p}){let{ModelSelector:d,Select:c,SettingGroup:s,SettingRow:l}=b(),m=ee(),i=na({connection:p,endpoint:"/api/plugins/prompt-optimizer/settings",loadError:"读取优化插件设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,primaryModel:o.primaryModel,maxClarificationRounds:o.maxClarificationRounds}),differs:(o,t)=>o.primaryModel?.providerID!==t.primaryModel?.providerID||o.primaryModel?.modelID!==t.primaryModel?.modelID||o.maxClarificationRounds!==t.maxClarificationRounds}),r=i.settings?.primaryModel??null,u=r?`${r.providerID}/${r.modelID}`:"";return n("form",{id:m,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(s,{title:"模型",children:e(l,{title:"优化模型",description:"未选择时拒绝改写,不会自动回退到其他模型",children:e("div",{className:"w-56",children:e(d,{variant:"field",models:i.modelList,value:u,onChange:(o)=>{let t=o.indexOf("/"),a=t<0?"":o.slice(0,t),g=t<0?o:o.slice(t+1);i.edit((f)=>({...f,primaryModel:{providerID:a,modelID:g}}))}})})})}),e(s,{title:"交互",children:e(l,{title:"澄清提问轮数",description:"草稿有关键歧义时,模型最多可反问几轮",children:e("div",{className:"w-56",children:e(c,{value:String(i.settings?.maxClarificationRounds??1),disabled:i.loading||i.saving,onValueChange:(o)=>{let t=o==="2"?2:1;i.edit((a)=>({...a,maxClarificationRounds:t}))},groups:[{options:[{value:"1",label:"单轮澄清(推荐)",description:"提问一次后直接输出改写结果"},{value:"2",label:"最多两轮澄清",description:"首轮澄清后可针对残留疑问追问一次"}]}]})})})}),e(Yn,{formID:m,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{M as PromptOptimizerSettingsSection};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Os}from"./chunk-yarejzzs.js";export{Os as createInfoServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{t,i}from"./chunk-e4h4dg4y.js";import{he,Rn,Pn}from"./chunk-pm504vps.js";import{ae}from"./chunk-mytypet0.js";import{Da,_n}from"./chunk-yarejzzs.js";var s=Da().RailroadPeg.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(l);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),l=t((e)=>{let r=e.elements.map(m);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),m=t((e)=>{let r=p(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${n(r)}`:`!${n(r)}`}},"transformPrefix"),n=t((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),p=t((e)=>{let r=u(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),u=t((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return o(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),c=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),f=t((e)=>{if(ae(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(c(r)))},"populateDb"),d={parse:t((e)=>{he.clear(),i.debug("[PEG Parser] Starting Langium parse");let r=s.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new _n(r);let a=r.value;i.debug("[PEG Parser] Parsed rules:",a.rules.length),f(a),i.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:he}},w={parser:d,db:he,renderer:Pn,styles:Rn};export{w as diagram};
Binary file
Binary file
@@ -0,0 +1,89 @@
1
+ import{t,i,Ke,A,q,W,L,u,J}from"./chunk-e4h4dg4y.js";var N="",M="",O="",D=[],z=new Map,v=t((e)=>q(e,u()),"sanitizeText"),y=t((e)=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),G=t(()=>{N="",M="",O="",D.length=0,z.clear(),L(),i.debug("[Railroad] Database cleared")},"clear"),Y=t((e)=>{N=v(e),i.debug("[Railroad] Title set:",e)},"setTitle"),P=t(()=>N,"getTitle"),U=t((e)=>{let a={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};if(i.debug("[Railroad] Adding rule:",a.name),z.has(a.name))i.warn(`[Railroad] Rule '${a.name}' is already defined. Overwriting.`);D.push(a),z.set(a.name,a)},"addRule"),j=t(()=>D,"getRules"),K=t((e)=>z.get(e),"getRule"),Q=t((e)=>{M=v(e).replace(/^\s+/g,""),i.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=t(()=>M,"getAccTitle"),V=t((e)=>{O=v(e).replace(/\n\s+/g,`
2
+ `),i.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=t(()=>O,"getAccDescription"),te=Y,re=P,he={clear:G,setTitle:Y,getTitle:P,addRule:U,getRules:j,getRule:K,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},T={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ie=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ne=/^[\w "',.-]+$/,ae=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=t((e)=>{if(!e)return!1;return Object.keys(e).every((a)=>a==="railroad"||ae.has(a))},"isRailroadStyleOptions"),oe=t((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return I(e)?e:{}},"extractRailroadOverrides"),le=t((e)=>{if(!e||I(e))return{};let{railroad:a,svgId:l,theme:n,look:r,...o}=e;return o},"extractThemeOverrides"),p=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ie.test(l)?l:a},"sanitizeColorValue"),X=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ne.test(l)?l:a},"sanitizeFontFamilyValue"),F=t((e,a)=>{let l=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(l)&&l>=0?l:a},"sanitizeNumberValue"),se=t((e)=>{let a=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>0?a:void 0},"parseThemeFontSize"),de=t((e)=>{let a=X(e.fontFamily,T.fontFamily),l=se(e.fontSize)??T.fontSize;return{...T,fontFamily:a,fontSize:l,terminalFill:p(e.secondBkg??e.secondaryColor,T.terminalFill),terminalStroke:p(e.secondaryBorderColor??e.lineColor,T.terminalStroke),terminalTextColor:p(e.secondaryTextColor??e.textColor,T.terminalTextColor),nonTerminalFill:p(e.mainBkg??e.background,T.nonTerminalFill),nonTerminalStroke:p(e.primaryBorderColor??e.lineColor,T.nonTerminalStroke),nonTerminalTextColor:p(e.primaryTextColor??e.textColor,T.nonTerminalTextColor),lineColor:p(e.lineColor,T.lineColor),markerFill:p(e.lineColor,T.markerFill),commentFill:p(e.labelBackground??e.tertiaryColor,T.commentFill),commentStroke:p(e.tertiaryBorderColor??e.lineColor,T.commentStroke),commentTextColor:p(e.tertiaryTextColor??e.textColor,T.commentTextColor),specialFill:p(e.tertiaryColor??e.secondaryColor,T.specialFill),specialStroke:p(e.tertiaryBorderColor??e.secondaryBorderColor,T.specialStroke),ruleNameColor:p(e.titleColor??e.textColor,T.ruleNameColor)}},"buildThemeDefaults"),E=t((e)=>{let a=A(),l={...Ke(),...a.themeVariables??{},...le(e)},n=de(l),r={...a.railroad??{},...oe(e)};return{compactMode:r.compactMode??n.compactMode,padding:F(r.padding,n.padding),verticalSeparation:F(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:F(r.horizontalSeparation,n.horizontalSeparation),arcRadius:F(r.arcRadius,n.arcRadius),fontSize:F(r.fontSize,n.fontSize),fontFamily:X(r.fontFamily,n.fontFamily),terminalFill:p(r.terminalFill,n.terminalFill),terminalStroke:p(r.terminalStroke,n.terminalStroke),terminalTextColor:p(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:p(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:p(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:p(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:p(r.lineColor,n.lineColor),strokeWidth:F(r.strokeWidth,n.strokeWidth),markerFill:p(r.markerFill,n.markerFill),commentFill:p(r.commentFill,n.commentFill),commentStroke:p(r.commentStroke,n.commentStroke),commentTextColor:p(r.commentTextColor,n.commentTextColor),specialFill:p(r.specialFill,n.specialFill),specialStroke:p(r.specialStroke,n.specialStroke),ruleNameColor:p(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:F(r.markerRadius,n.markerRadius)}},"buildRailroadStyleOptions"),Rn=t((e)=>{let{fontFamily:a,fontSize:l,terminalFill:n,terminalStroke:r,terminalTextColor:o,nonTerminalFill:g,nonTerminalStroke:c,nonTerminalTextColor:s,lineColor:f,strokeWidth:h,markerFill:m,commentFill:C,commentStroke:d,commentTextColor:x,specialFill:R,specialStroke:S,ruleNameColor:k}=E(e);return`
3
+ .railroad-diagram {
4
+ font-family: ${a};
5
+ font-size: ${l}px;
6
+ }
7
+
8
+ .railroad-terminal rect {
9
+ fill: ${n};
10
+ stroke: ${r};
11
+ stroke-width: ${h}px;
12
+ }
13
+
14
+ .railroad-terminal text {
15
+ fill: ${o};
16
+ font-family: ${a};
17
+ font-size: ${l}px;
18
+ text-anchor: middle;
19
+ dominant-baseline: middle;
20
+ }
21
+
22
+ .railroad-nonterminal rect {
23
+ fill: ${g};
24
+ stroke: ${c};
25
+ stroke-width: ${h}px;
26
+ }
27
+
28
+ .railroad-nonterminal text {
29
+ fill: ${s};
30
+ font-family: ${a};
31
+ font-size: ${l}px;
32
+ text-anchor: middle;
33
+ dominant-baseline: middle;
34
+ }
35
+
36
+ .railroad-line {
37
+ stroke: ${f};
38
+ stroke-width: ${h}px;
39
+ fill: none;
40
+ }
41
+
42
+ .railroad-start circle,
43
+ .railroad-end circle {
44
+ fill: ${m};
45
+ }
46
+
47
+ .railroad-comment ellipse {
48
+ fill: ${C};
49
+ stroke: ${d};
50
+ stroke-width: ${h}px;
51
+ }
52
+
53
+ .railroad-comment text {
54
+ fill: ${x};
55
+ font-style: italic;
56
+ font-family: ${a};
57
+ font-size: ${l}px;
58
+ text-anchor: middle;
59
+ dominant-baseline: middle;
60
+ }
61
+
62
+ .railroad-special rect {
63
+ fill: ${R};
64
+ stroke: ${S};
65
+ stroke-width: ${h}px;
66
+ stroke-dasharray: 5,3;
67
+ }
68
+
69
+ .railroad-special text {
70
+ fill: ${s};
71
+ font-family: ${a};
72
+ font-size: ${l}px;
73
+ text-anchor: middle;
74
+ dominant-baseline: middle;
75
+ }
76
+
77
+ .railroad-rule-name {
78
+ font-weight: bold;
79
+ fill: ${k};
80
+ font-family: ${a};
81
+ font-size: ${l}px;
82
+ }
83
+
84
+ .railroad-group {
85
+ /* Grouping container, no specific styles */
86
+ }
87
+ `},"getStyles"),w=class{constructor(){this.d=""}static{t(this,"PathBuilder")}moveTo(e,a){return this.d+=`M ${e} ${a} `,this}lineTo(e,a){return this.d+=`L ${e} ${a} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,a,l,n,r,o,g){return this.d+=`A ${e} ${a} ${l} ${n?1:0} ${r?1:0} ${o} ${g} `,this}build(){return this.d.trim()}},ce=class{constructor(e,a=E()){this.textCache=new Map,this.svg=e,this.config=a}static{t(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let a=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),l=a.node().getBBox(),n={width:l.width,height:l.height};return a.remove(),this.textCache.set(e,n),n}renderTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-terminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r).attr("rx",10).attr("ry",10),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderNonTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-nonterminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderSequence(e,a){let l=a.map((s)=>this.renderExpression(e,s)),n=0,r=0,o=0;for(let s of l)n+=s.dimensions.width,r=Math.max(r,s.dimensions.up),o=Math.max(o,s.dimensions.down);n+=(l.length-1)*this.config.horizontalSeparation;let g=e.append("g").attr("class","railroad-sequence"),c=0;for(let s=0;s<l.length;s++){let f=l[s],h=r-f.dimensions.up;if(g.node().appendChild(f.element).setAttribute("transform",`translate(${c}, ${h})`),s<l.length-1){let C=c+f.dimensions.width,d=C+this.config.horizontalSeparation,x=r;g.append("path").attr("class","railroad-line").attr("d",new w().moveTo(C,x).lineTo(d,x).build())}c+=f.dimensions.width+this.config.horizontalSeparation}return{element:g.node(),dimensions:{width:n,height:r+o,up:r,down:o}}}renderChoice(e,a){let l=a.map((m)=>this.renderExpression(e,m)),n=0,r=0;for(let m of l)n=Math.max(n,m.dimensions.width),r+=m.dimensions.height;r+=(l.length-1)*this.config.verticalSeparation;let o=this.config.arcRadius,g=o*4,c=n+g,s=e.append("g").attr("class","railroad-choice"),f=0,h=r/2;for(let m of l){let C=f,d=C+m.dimensions.up,x=o*2+(n-m.dimensions.width)/2;s.node().appendChild(m.element).setAttribute("transform",`translate(${x}, ${C})`);let S=new w,k=d>h;if(d===h)S.moveTo(0,h).lineTo(x,d);else S.moveTo(0,h).arcTo(o,o,0,!1,k,o,h+(k?o:-o)).lineTo(o,d-(k?o:-o)).arcTo(o,o,0,!1,!k,o*2,d).lineTo(x,d);s.append("path").attr("class","railroad-line").attr("d",S.build());let b=new w,_=x+m.dimensions.width,H=c-o*2;if(d===h)b.moveTo(_,d).lineTo(c,h);else b.moveTo(_,d).lineTo(H,d).arcTo(o,o,0,!1,!k,c-o,d+(k?-o:o)).lineTo(c-o,h+(k?o:-o)).arcTo(o,o,0,!1,k,c,h);s.append("path").attr("class","railroad-line").attr("d",b.build()),f+=m.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:c,height:r,up:h,down:r-h}}}renderOptional(e,a){let l=this.renderExpression(e,a),n=this.config.arcRadius,r=n*2,o=l.dimensions.width+n*4,g=l.dimensions.height+r,c=e.append("g").attr("class","railroad-optional"),s=n*2,f=r;c.node().appendChild(l.element).setAttribute("transform",`translate(${s}, ${f})`);let m=f+l.dimensions.up,C=new w().moveTo(0,m).lineTo(n*2,m);c.append("path").attr("class","railroad-line").attr("d",C.build());let d=new w().moveTo(s+l.dimensions.width,m).lineTo(o,m);c.append("path").attr("class","railroad-line").attr("d",d.build());let x=new w().moveTo(0,m).arcTo(n,n,0,!1,!1,n,m-n).lineTo(n,n).arcTo(n,n,0,!1,!0,n*2,0).lineTo(o-n*2,0).arcTo(n,n,0,!1,!0,o-n,n).lineTo(o-n,m-n).arcTo(n,n,0,!1,!1,o,m);return c.append("path").attr("class","railroad-line").attr("d",x.build()),{element:c.node(),dimensions:{width:o,height:g,up:m,down:g-m}}}renderRepetition(e,a,l){let n=this.renderExpression(e,a),r=this.config.arcRadius,o=r*2,g=n.dimensions.width+r*4,c=l===0,s=n.dimensions.height+o+(c?o:0),f=e.append("g").attr("class","railroad-repetition"),h=r*2,m=c?o:0;f.node().appendChild(n.element).setAttribute("transform",`translate(${h}, ${m})`);let d=m+n.dimensions.up;f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(0,d).lineTo(r*2,d).build()),f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(h+n.dimensions.width,d).lineTo(g,d).build());let x=m+n.dimensions.height+r,R=new w().moveTo(h+n.dimensions.width,d).arcTo(r,r,0,!1,!0,h+n.dimensions.width+r,d+r).lineTo(h+n.dimensions.width+r,x).arcTo(r,r,0,!1,!0,h+n.dimensions.width,x+r).lineTo(r*2,x+r).arcTo(r,r,0,!1,!0,r,x).lineTo(r,d+r).arcTo(r,r,0,!1,!0,r*2,d);if(f.append("path").attr("class","railroad-line").attr("d",R.build()),c){let S=new w().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(g-r*2,0).arcTo(r,r,0,!1,!0,g-r,r).lineTo(g-r,d-r).arcTo(r,r,0,!1,!1,g,d);f.append("path").attr("class","railroad-line").attr("d",S.build())}return{element:f.node(),dimensions:{width:g,height:s,up:d,down:s-d}}}renderSpecial(e,a){let l=this.measureText("? "+a+" ?"),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-special");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text("? "+a+" ?"),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderExpression(e,a){switch(a.type){case"terminal":return this.renderTerminal(e,a.value);case"nonterminal":return this.renderNonTerminal(e,a.name);case"sequence":return this.renderSequence(e,a.elements);case"choice":return this.renderChoice(e,a.alternatives);case"optional":return this.renderOptional(e,a.element);case"repetition":return this.renderRepetition(e,a.element,a.min);case"special":return this.renderSpecial(e,a.text);default:throw Error(`Unknown node type: ${a.type}`)}}renderRule(e,a){let l=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${a})`),n=e.name+" =",r=this.measureText(n).width+20,o=r+20,g=l.append("g"),c=this.renderExpression(g,e.definition),s=Math.max(20,c.dimensions.up),f=s-c.dimensions.up;return g.attr("transform",`translate(${o}, ${f})`),l.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(n),l.append("g").attr("class","railroad-start").append("circle").attr("cx",r).attr("cy",s).attr("r",this.config.markerRadius),l.append("g").attr("class","railroad-end").append("circle").attr("cx",o+c.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(r+this.config.markerRadius,s).lineTo(o,s).build()),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(o+c.dimensions.width,s).lineTo(o+c.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,f+c.dimensions.height+this.config.padding*2),width:o+c.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let a=this.config.padding,l=0;for(let n of e){let r=this.renderRule(n,a);a+=r.height+this.config.verticalSeparation,l=Math.max(l,r.width)}return{width:l+this.config.padding*2,height:a+this.config.padding}}},B=t((e,a,l)=>{W(e,a.height,a.width,l),e.attr("viewBox",`0 0 ${a.width} ${a.height}`)},"configureRailroadSvgSize"),me=t((e,a,l)=>{i.debug(`[Railroad] Rendering diagram
88
+ `+e);try{let n=J(a);n.attr("class","railroad-diagram");let o=A().railroad?.useMaxWidth??!0,g=he.getRules();if(i.debug(`[Railroad] Rendering ${g.length} rules`),g.length===0){i.warn("[Railroad] No rules to render"),B(n,{height:100,width:200},o);return}let s=new ce(n,E()).renderDiagram(g);B(n,s,o),i.debug("[Railroad] Render complete")}catch(n){throw i.error("[Railroad] Render error:",n),n}},"draw"),Pn={draw:me};
89
+ export{he,Rn,Pn};
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ import{ms,Er,Xi,fs,Zr,hs,gi}from"./chunk-jbejy8k3.js";var S=class extends Error{constructor(t){super(t);this.name="ShikiError"}};function tn(t){return Ne(t)}function Ne(t){if(Array.isArray(t))return nn(t);if(t instanceof RegExp)return t;if(typeof t==="object")return rn(t);return t}function nn(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=Ne(t[n]);return e}function rn(t){let e={};for(let n in t)e[n]=Ne(t[n]);return e}function Ve(t,...e){return e.forEach((n)=>{for(let r in n)t[r]=n[r]}),t}function Ye(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");if(e===0)return t;else if(~e===t.length-1)return Ye(t.substring(0,t.length-1));else return t.substr(~e+1)}var ye=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,J=class{static hasCaptures(t){if(t===null)return!1;return ye.lastIndex=0,ye.test(t)}static replaceCaptures(t,e,n){return t.replace(ye,(r,s,i,o)=>{let a=n[parseInt(s||i,10)];if(a){let c=e.substring(a.start,a.end);while(c[0]===".")c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function Je(t,e){if(t<e)return-1;if(t>e)return 1;return 0}function Qe(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let i=Je(t[s],e[s]);if(i!==0)return i}return 0}return n-r}function Fe(t){if(/^#[0-9a-f]{6}$/i.test(t))return!0;if(/^#[0-9a-f]{8}$/i.test(t))return!0;if(/^#[0-9a-f]{3}$/i.test(t))return!0;if(/^#[0-9a-f]{4}$/i.test(t))return!0;return!1}function Xe(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ze=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},M=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(an(t),e)}static createFromParsedTheme(t,e){return ln(t,e)}_cachedMatchRoot=new Ze((t)=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find((s)=>sn(t.parent,s.parentScopes));if(!r)return null;return new et(r.fontStyle,r.foreground,r.background)}},be=class t{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new t(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new t(n,e[r]);return n}push(e){return new t(this,e)}getSegments(){let e=this,n=[];while(e)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){if(this===e)return!0;if(this.parent===null)return!1;return this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function sn(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}while(t){if(on(t.scopeName,r))break;if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function on(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var et=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function an(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,i=e.length;s<i;s++){let o=e[s];if(!o.settings)continue;let a;if(typeof o.scope==="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),a=h.split(",")}else if(Array.isArray(o.scope))a=o.scope;else a=[""];let c=-1;if(typeof o.settings.fontStyle==="string"){c=0;let h=o.settings.fontStyle.split(" ");for(let d=0,f=h.length;d<f;d++)switch(h[d]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;if(typeof o.settings.foreground==="string"&&Fe(o.settings.foreground))l=o.settings.foreground;let u=null;if(typeof o.settings.background==="string"&&Fe(o.settings.background))u=o.settings.background;for(let h=0,d=a.length;h<d;h++){let m=a[h].trim().split(" "),y=m[m.length-1],_=null;if(m.length>1)_=m.slice(0,m.length-1),_.reverse();n[r++]=new cn(y,_,s,c,l,u)}}return n}var cn=class{constructor(t,e,n,r,s,i){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=i}},k=((t)=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(k||{});function ln(t,e){t.sort((c,l)=>{let u=Je(c.scope,l.scope);if(u!==0)return u;if(u=Qe(c.parentScopes,l.parentScopes),u!==0)return u;return c.index-l.index});let n=0,r="#000000",s="#ffffff";while(t.length>=1&&t[0].scope===""){let c=t.shift();if(c.fontStyle!==-1)n=c.fontStyle;if(c.foreground!==null)r=c.foreground;if(c.background!==null)s=c.background}let i=new un(e),o=new et(n,i.getId(r),i.getId(s)),a=new fn(new we(0,null,-1,0,0),[]);for(let c=0,l=t.length;c<l;c++){let u=t[c];a.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new M(i,o,a)}var un=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},hn=Object.freeze([]),we=class t{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,s,i){this.scopeDepth=e,this.parentScopes=n||hn,this.fontStyle=r,this.foreground=s,this.background=i}clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){if(this.scopeDepth>e)console.log("how did this happen?");else this.scopeDepth=e;if(n!==-1)this.fontStyle=n;if(r!==0)this.foreground=r;if(s!==0)this.background=s}},fn=class t{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;while(!0){if(e.parentScopes[r]===">")r++;if(n.parentScopes[s]===">")s++;if(r>=e.parentScopes.length||s>=n.parentScopes.length)break;let i=n.parentScopes[s].length-e.parentScopes[r].length;if(i!==0)return i;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,i;if(r===-1)s=e,i="";else s=e.substring(0,r),i=e.substring(r+1);if(this._children.hasOwnProperty(s))return this._children[s].match(i)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n}insert(e,n,r,s,i,o){if(n===""){this._doInsertHere(e,r,s,i,o);return}let a=n.indexOf("."),c,l;if(a===-1)c=n,l="";else c=n.substring(0,a),l=n.substring(a+1);let u;if(this._children.hasOwnProperty(c))u=this._children[c];else u=new t(this._mainRule.clone(),we.cloneArr(this._rulesWithParentScopes)),this._children[c]=u;u.insert(e+1,l,r,s,i,o)}_doInsertHere(e,n,r,s,i){if(n===null){this._mainRule.acceptOverwrite(e,r,s,i);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let c=this._rulesWithParentScopes[o];if(Qe(c.parentScopes,n)===0){c.acceptOverwrite(e,r,s,i);return}}if(r===-1)r=this._mainRule.fontStyle;if(s===0)s=this._mainRule.foreground;if(i===0)i=this._mainRule.background;this._rulesWithParentScopes.push(new we(e,n,r,s,i))}},x=class t{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=t.getLanguageId(e),r=t.getTokenType(e),s=t.getFontStyle(e),i=t.getForeground(e),o=t.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:i,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,s,i,o,a){let c=t.getLanguageId(e),l=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,h=t.getFontStyle(e),d=t.getForeground(e),f=t.getBackground(e);if(n!==0)c=n;if(r!==8)l=mn(r);if(s!==null)u=s?1:0;if(i!==-1)h=i;if(o!==0)d=o;if(a!==0)f=a;return(c<<0|l<<8|u<<10|h<<11|d<<15|f<<24)>>>0}};function dn(t){return t}function mn(t){return t}function X(t,e){let n=[],r=gn(t),s=r.next();while(s!==null){let c=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let l=o();if(n.push({matcher:l,priority:c}),s!==",")break;s=r.next()}return n;function i(){if(s==="-"){s=r.next();let c=i();return(l)=>!!c&&!c(l)}if(s==="("){s=r.next();let c=a();if(s===")")s=r.next();return c}if(De(s)){let c=[];do c.push(s),s=r.next();while(De(s));return(l)=>e(c,l)}return null}function o(){let c=[],l=i();while(l)c.push(l),l=i();return(u)=>c.every((h)=>h(u))}function a(){let c=[],l=o();while(l){if(c.push(l),s==="|"||s===",")do s=r.next();while(s==="|"||s===",");else break;l=o()}return(u)=>c.some((h)=>h(u))}}function De(t){return!!t&&!!t.match(/[\w\.:]+/)}function gn(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function tt(t){if(typeof t.dispose==="function")t.dispose()}var j=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},pn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_n=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){let e=t.toKey();if(this._seenReferenceKeys.has(e))return;this._seenReferenceKeys.add(e),this._references.push(t)}},yn=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new j(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let t=this.Q;this.Q=[];let e=new _n;for(let n of t)bn(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof j){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function bn(t,e,n,r){let s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw Error(`No grammar provided for <${e}>`);return}let i=n.lookup(e);if(t instanceof j)Q({baseGrammar:i,selfGrammar:s},r);else Ce(t.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},r);let o=n.injections(t.scopeName);if(o)for(let a of o)r.add(new j(a))}function Ce(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];Z([r],e,n)}}function Q(t,e){if(t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns))Z(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e);if(t.selfGrammar.injections)Z(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Z(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let s=r.repository?Ve({},e.repository,r.repository):e.repository;if(Array.isArray(r.patterns))Z(r.patterns,{...e,repository:s},n);let i=r.include;if(!i)continue;let o=nt(i);switch(o.kind){case 0:Q({...e,selfGrammar:e.baseGrammar},n);break;case 1:Q(e,n);break;case 2:Ce(o.ruleName,{...e,repository:s},n);break;case 3:case 4:let a=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){let c={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};if(o.kind===4)Ce(o.ruleName,c,n);else Q(c,n)}else if(o.kind===4)n.add(new pn(o.scopeName,o.ruleName));else n.add(new j(o.scopeName));break}}}var Sn=class{kind=0},wn=class{kind=1},Cn=class{constructor(t){this.ruleName=t}kind=2},kn=class{constructor(t){this.scopeName=t}kind=3},Rn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function nt(t){if(t==="$base")return new Sn;else if(t==="$self")return new wn;let e=t.indexOf("#");if(e===-1)return new kn(t);else if(e===0)return new Cn(t.substring(1));else{let n=t.substring(0,e),r=t.substring(e+1);return new Rn(n,r)}}var Nn=/\\(\d+)/,We=/\\(\d+)/g,Cs=Symbol("RuleId"),Tn=-1,rt=-2;function st(t){return t}function it(t){return t}var W=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=J.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=J.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${Ye(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){if(!this._nameIsCapturing||this._name===null||t===null||e===null)return this._name;return J.replaceCaptures(this._name,t,e)}getContentName(t,e){if(!this._contentNameIsCapturing||this._contentName===null)return this._contentName;return J.replaceCaptures(this._contentName,t,e)}},vn=class extends W{retokenizeCapturedWithRuleId;constructor(t,e,n,r,s){super(t,e,n,r);this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,e){throw Error("Not supported!")}compile(t,e){throw Error("Not supported!")}compileAG(t,e,n,r){throw Error("Not supported!")}},An=class extends W{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,null);this._match=new F(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},He=class extends W{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,r);this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}collectPatterns(t,e){for(let n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},ke=class extends W{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s,i,o,a,c,l){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this._end=new F(o?o:"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);if(this.applyEndPatternLast)this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end);else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}if(this._end.hasBackReferences)if(this.applyEndPatternLast)this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e);else this._cachedCompiledPatterns.setSource(0,e);return this._cachedCompiledPatterns}},ee=class extends W{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,s,i,o,a,c){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new F(o,rt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null;if(this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){if(!this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns=new D,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while);if(this._while.hasBackReferences)this._cachedCompiledWhilePatterns.setSource(0,e?e:"￿");return this._cachedCompiledWhilePatterns}},ot=class t{static createCaptureRule(e,n,r,s,i){return e.registerRule((o)=>new vn(n,o,r,s,i))}static getCompiledRuleId(e,n,r){if(!e.id)n.registerRule((s)=>{if(e.id=s,e.match)return new An(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){if(e.repository)r=Ve({},r,e.repository);let i=e.patterns;if(typeof i>"u"&&e.include)i=[{include:e.include}];return new He(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(i,n,r))}if(e.while)return new ee(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,t._compileCaptures(e.whileCaptures||e.captures,n,r),t._compilePatterns(e.patterns,n,r));return new ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,t._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,r))});return e.id}static _compileCaptures(e,n,r){let s=[];if(e){let i=0;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10);if(a>i)i=a}for(let o=0;o<=i;o++)s[o]=null;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10),c=0;if(e[o].patterns)c=t.getCompiledRuleId(e[o],n,r);s[a]=t.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let i=0,o=e.length;i<o;i++){let a=e[i],c=-1;if(a.include){let l=nt(a.include);switch(l.kind){case 0:case 1:c=t.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[l.ruleName];if(u)c=t.getCompiledRuleId(u,n,r);break;case 3:case 4:let h=l.scopeName,d=l.kind===4?l.ruleName:null,f=n.getExternalGrammar(h,r);if(f)if(d){let m=f.repository[d];if(m)c=t.getCompiledRuleId(m,n,f.repository)}else c=t.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else c=t.getCompiledRuleId(a,n,r);if(c!==-1){let l=n.getRule(c),u=!1;if(l instanceof He||l instanceof ke||l instanceof ee){if(l.hasMissingPatterns&&l.patterns.length===0)u=!0}if(u)continue;s.push(c)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},F=class t{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e==="string"){let r=e.length,s=0,i=[],o=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"){if(a+1<r){let l=e.charAt(a+1);if(l==="z")i.push(e.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2;else if(l==="A"||l==="G")o=!0;a++}}if(this.hasAnchor=o,s===0)this.source=e;else i.push(e.substring(s,r)),this.source=i.join("")}else this.hasAnchor=!1,this.source=e;if(this.hasAnchor)this._anchorCache=this._buildAnchorCache();else this._anchorCache=null;if(this.ruleId=n,typeof this.source==="string")this.hasBackReferences=Nn.test(this.source);else this.hasBackReferences=!1}clone(){return new t(this.source,this.ruleId)}setSource(e){if(this.source===e)return;if(this.source=e,this.hasAnchor)this._anchorCache=this._buildAnchorCache()}resolveBackReferences(e,n){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let r=n.map((s)=>e.substring(s.start,s.end));return We.lastIndex=0,this.source.replace(We,(s,i)=>Xe(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],i,o,a,c;for(i=0,o=this.source.length;i<o;i++)if(a=this.source.charAt(i),e[i]=a,n[i]=a,r[i]=a,s[i]=a,a==="\\"){if(i+1<o){if(c=this.source.charAt(i+1),c==="A")e[i+1]="￿",n[i+1]="￿",r[i+1]="A",s[i+1]="A";else if(c==="G")e[i+1]="￿",n[i+1]="G",r[i+1]="￿",s[i+1]="G";else e[i+1]=c,n[i+1]=c,r[i+1]=c,s[i+1]=c;i++}}return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){if(!this.hasAnchor||!this._anchorCache||typeof this.source!=="string")return this.source;if(e)if(n)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;else if(n)return this._anchorCache.A0_G1;else return this._anchorCache.A0_G0}},D=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){if(this._cached)this._cached.dispose(),this._cached=null;if(this._anchorCache.A0_G0)this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null;if(this._anchorCache.A0_G1)this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null;if(this._anchorCache.A1_G0)this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null;if(this._anchorCache.A1_G1)this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){if(this._items[t].source!==e)this._disposeCaches(),this._items[t].setSource(e)}compile(t){if(!this._cached){let e=this._items.map((n)=>n.source);this._cached=new qe(t,e,this._items.map((n)=>n.ruleId))}return this._cached}compileAG(t,e,n){if(!this._hasAnchors)return this.compile(t);else if(e)if(n){if(!this._anchorCache.A1_G1)this._anchorCache.A1_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G1}else{if(!this._anchorCache.A1_G0)this._anchorCache.A1_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G0}else if(n){if(!this._anchorCache.A0_G1)this._anchorCache.A0_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G1}else{if(!this._anchorCache.A0_G0)this._anchorCache.A0_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G0}}_resolveAnchors(t,e,n){let r=this._items.map((s)=>s.resolveAnchors(e,n));return new qe(t,r,this._items.map((s)=>s.ruleId))}},qe=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){if(typeof this.scanner.dispose==="function")this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
2
+ `)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);if(!r)return null;return{ruleId:this.rules[r.index],captureIndices:r.captureIndices}}},Se=class{constructor(t,e){this.languageId=t,this.tokenType=e}},En=class t{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new Se(e,8),this._embeddedLanguagesMatcher=new xn(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){if(e===null)return t._NULL_SCOPE_METADATA;return this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Se(0,0);_getBasicScopeAttributes=new Ze((e)=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Se(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},xn=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>Xe(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(!e)return;return this.values.get(e[1])}},ks={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},at=!1,ze=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function ct(t,e,n,r,s,i,o,a){let c=e.content.length,l=!1,u=-1;if(o){let f=In(t,e,n,r,s,i);s=f.stack,r=f.linePos,n=f.isFirstLine,u=f.anchorPosition}let h=Date.now();while(!l){if(a!==0){if(Date.now()-h>a)return new ze(s,!0)}d()}return new ze(s,!1);function d(){let f=Ln(t,e,n,r,s,u);if(!f){i.produce(s,c),l=!0;return}let{captureIndices:m,matchedRuleId:y}=f,_=m&&m.length>0?m[0].end>r:!1;if(y===Tn){let p=s.getRule(t);i.produce(s,m[0].start),s=s.withContentNameScopesList(s.nameScopesList),B(t,e,n,s,i,p.endCaptures,m),i.produce(s,m[0].end);let g=s;if(s=s.parent,u=g.getAnchorPos(),!_&&g.getEnterPos()===r){s=g,i.produce(s,c),l=!0;return}}else{let p=t.getRule(y);i.produce(s,m[0].start);let g=s,b=p.getName(e.content,m),C=s.contentNameScopesList.pushAttributed(b,t);if(s=s.push(y,r,u,m[0].end===c,null,C,C),p instanceof ke){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.endHasBackReferences)s=s.withEndRule(R.getEndWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(p instanceof ee){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.whileHasBackReferences)s=s.withEndRule(R.getWhileWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(B(t,e,n,s,i,p.captures,m),i.produce(s,m[0].end),s=s.pop(),!_){s=s.safePop(),i.produce(s,c),l=!0;return}}if(m[0].end>r)r=m[0].end,n=!1}}function In(t,e,n,r,s,i){let o=s.beginRuleCapturedEOL?0:-1,a=[];for(let c=s;c;c=c.pop()){let l=c.getRule(t);if(l instanceof ee)a.push({rule:l,stack:c})}for(let c=a.pop();c;c=a.pop()){let{ruleScanner:l,findOptions:u}=Bn(c.rule,t,c.stack.endRule,n,r===o),h=l.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==rt){s=c.stack.pop();break}if(h.captureIndices&&h.captureIndices.length){if(i.produce(c.stack,h.captureIndices[0].start),B(t,e,n,c.stack,i,c.rule.whileCaptures,h.captureIndices),i.produce(c.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>r)r=h.captureIndices[0].end,n=!1}}else{s=c.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:o,isFirstLine:n}}function Ln(t,e,n,r,s,i){let o=Pn(t,e,n,r,s,i),a=t.getInjections();if(a.length===0)return o;let c=Gn(a,t,e,n,r,s,i);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;if(u<l||c.priorityMatch&&u===l)return c;return o}function Pn(t,e,n,r,s,i){let o=s.getRule(t),{ruleScanner:a,findOptions:c}=lt(o,t,s.endRule,n,r===i),l=a.findNextMatchSync(e,r,c);if(l)return{captureIndices:l.captureIndices,matchedRuleId:l.ruleId};return null}function Gn(t,e,n,r,s,i,o){let a=Number.MAX_VALUE,c=null,l,u=0,h=i.contentNameScopesList.getScopeNames();for(let d=0,f=t.length;d<f;d++){let m=t[d];if(!m.matcher(h))continue;let y=e.getRule(m.ruleId),{ruleScanner:_,findOptions:p}=lt(y,e,null,r,s===o),g=_.findNextMatchSync(n,s,p);if(!g)continue;let b=g.captureIndices[0].start;if(b>=a)continue;if(a=b,c=g.captureIndices,l=g.ruleId,u=m.priority,a===s)break}if(c)return{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l};return null}function lt(t,e,n,r,s){if(at){let o=t.compile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function Bn(t,e,n,r,s){if(at){let o=t.compileWhile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function ut(t,e){let n=0;if(!t)n|=1;if(!e)n|=4;return n}function B(t,e,n,r,s,i,o){if(i.length===0)return;let a=e.content,c=Math.min(i.length,o.length),l=[],u=o[0].end;for(let h=0;h<c;h++){let d=i[h];if(d===null)continue;let f=o[h];if(f.length===0)continue;if(f.start>u)break;while(l.length>0&&l[l.length-1].endPos<=f.start)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0)s.produceFromScopes(l[l.length-1].scopes,f.start);else s.produce(r,f.start);if(d.retokenizeCapturedWithRuleId){let y=d.getName(a,o),_=r.contentNameScopesList.pushAttributed(y,t),p=d.getContentName(a,o),g=_.pushAttributed(p,t),b=r.push(d.retokenizeCapturedWithRuleId,f.start,-1,!1,null,_,g),C=t.createOnigString(a.substring(0,f.end));ct(t,C,n&&f.start===0,f.start,b,s,!1,0),tt(C);continue}let m=d.getName(a,o);if(m!==null){let _=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);l.push(new On(_,f.end))}}while(l.length>0)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var On=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function $n(t,e,n,r,s,i,o,a){return new jn(t,e,n,r,s,i,o,a)}function Ue(t,e,n,r,s){let i=X(e,te),o=ot.getCompiledRuleId(n,r,s.repository);for(let a of i)t.push({debugSelector:e,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function te(t,e){if(e.length<t.length)return!1;let n=0;return t.every((r)=>{for(let s=n;s<e.length;s++)if(Mn(e[s],r))return n=s+1,!0;return!1})}function Mn(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var jn=class{constructor(t,e,n,r,s,i,o,a){if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new En(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ke(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(let c of Object.keys(s)){let l=X(c,te);for(let u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)if(t)t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:(s)=>{if(s===this._rootScopeName)return this._grammar;return this.getExternalGrammar(s)},injections:(s)=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let s=r.injections;if(s)for(let o in s)Ue(e,o,s[o],this,r);let i=this._grammarRepository.injections(n);if(i)i.forEach((o)=>{let a=this.getExternalGrammar(o);if(a){let c=a.injectionSelector;if(c)Ue(e,c,a,this,a)}})}return e.sort((s,i)=>s.priority-i.priority),e}getInjections(){if(this._injections===null)this._injections=this._collectInjections();return this._injections}registerRule(t){let e=++this._lastRuleId,n=t(st(e));return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[it(t)]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];else if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Ke(n,e&&e.$base),this._includedGrammars[t]}return}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){if(this._rootId===-1)this._rootId=ot.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections();let s;if(!e||e===Re.NULL){s=!0;let l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=x.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null),f;if(d)f=O.createRootAndLookUpScopeName(d,h,this);else f=O.createRoot("unknown",h);e=new Re(null,this._rootId,-1,-1,!1,null,f,f)}else s=!1,e.reset();t=t+`
3
+ `;let i=this.createOnigString(t),o=i.content.length,a=new Dn(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ct(this,i,s,0,e,a,!0,r);return tt(i),{lineLength:o,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Ke(t,e){return t=tn(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var O=class t{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(let i of n)s=be.push(s,i.scopeNames),r=new t(r,s,i.encodedTokenAttributes);return r}static createRoot(e,n){return new t(null,new be(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let s=r.getMetadataForScope(e),i=new be(null,e),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(n,s,o);return new t(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return t.equals(this,e)}static equals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,i=0,o=0;if(r!==null)s=r.fontStyle,i=r.foregroundId,o=r.backgroundId;return x.set(e,n.languageId,n.tokenType,null,s,i,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return t._pushAttributed(this,e,n);let r=e.split(/ /g),s=this;for(let i of r)s=t._pushAttributed(s,i,n);return s}static _pushAttributed(e,n,r){let s=r.getMetadataForScope(n),i=e.scopePath.push(n),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(e.tokenAttributes,s,o);return new t(e,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},Re=class t{constructor(e,n,r,s,i,o,a,c){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new t(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){if(e===null)return!1;return t._equals(this,e)}static _equals(e,n){if(e===n)return!0;if(!this._structuralEquals(e,n))return!1;return O.equals(e.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){while(e)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){if(this.parent)return this.parent;return this}push(e,n,r,s,i,o,a){return new t(this,e,n,r,s,i,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){if(this.parent)n=this.parent._writeString(e,n);return e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){if(this.contentNameScopesList===e)return this;return this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){if(this.endRule===e)return this;return new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;while(n&&n._enterPos===e._enterPos){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:it(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=O.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new t(e,st(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,O.fromExtension(r,n.contentNameScopesList))}},Fn=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap((n)=>{if(n==="*")return this.allowAny=!0,[];return X(n,te).map((r)=>r.matcher)}),this.unbalancedBracketScopes=e.flatMap((n)=>X(n,te).map((r)=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Dn=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways)s=!0;if(this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=t?.getScopeNames()??[];for(let o of this._tokenTypeOverrides)if(o.matcher(i))r=x.set(r,0,dn(o.type),null,-1,0,0);if(this.balancedBracketSelectors)s=this.balancedBracketSelectors.match(i)}if(s)r=x.set(r,0,8,s,-1,0,0);if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){if(this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1)this._tokens.pop();if(this._tokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0;return this._tokens}getBinaryResult(t,e){if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1)this._binaryTokens.pop(),this._binaryTokens.pop();if(this._binaryTokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0;let n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Wn=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){if(this._rawGrammars.set(t.scopeName,t),e)this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,s){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,$n(t,i,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},ht=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Wn(M.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(M.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Fn(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){let i=new yn(this._syncRegistry,t);while(i.Q.length>0)i.Q.map((o)=>this._loadSingleGrammar(o.scopeName)),i.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){if(!this._ensureGrammarCache.has(t))this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0)}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections==="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},ne=Re.NULL;function q(t,e){let n=typeof t==="string"?{}:{...t.colorReplacements},r=typeof t==="string"?t:t.name;for(let[s,i]of Object.entries(e?.colorReplacements||{}))if(typeof i==="string")n[s]=i;else if(s===r)Object.assign(n,i);return n}function v(t,e){if(!t)return t;return e?.[t?.toLowerCase()]||t}function pt(t){return Array.isArray(t)?t:[t]}async function Te(t){return Promise.resolve(typeof t==="function"?t():t).then((e)=>e.default||e)}function z(t){return!t||["plaintext","txt","text","plain"].includes(t)}function _t(t){return t==="ansi"||z(t)}function U(t){return t==="none"}function yt(t){return U(t)}var Hn=/(\r?\n)/g;function P(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(Hn),r=0,s=[];for(let i=0;i<n.length;i+=2){let o=e?n[i]+(n[i+1]||""):n[i];s.push([o,r]),r+=n[i].length,r+=n[i+1]?.length||0}return s}var ft={light:"#333333",dark:"#bbbbbb"},dt={light:"#fffffe",dark:"#1e1e1e"},mt="__shiki_resolved";function re(t){if(t?.[mt])return t;let e={...t};if(e.tokenColors&&!e.settings)e.settings=e.tokenColors,delete e.tokenColors;e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){let a=e.settings?e.settings.find((c)=>!c.name&&!c.scope):void 0;if(a?.settings?.foreground)r=a.settings.foreground;if(a?.settings?.background)n=a.settings.background;if(!r&&e?.colors?.["editor.foreground"])r=e.colors["editor.foreground"];if(!n&&e?.colors?.["editor.background"])n=e.colors["editor.background"];if(!r)r=e.type==="light"?ft.light:ft.dark;if(!n)n=e.type==="light"?dt.light:dt.dark;e.fg=r,e.bg=n}if(!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope))e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0,i=new Map;function o(a){if(i.has(a))return i.get(a);s+=1;let c=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;if(e.colorReplacements?.[`#${c}`])return o(a);return i.set(a,c),c}e.settings=e.settings.map((a)=>{let c=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),l=a.settings?.background&&!a.settings.background.startsWith("#");if(!c&&!l)return a;let u={...a,settings:{...a.settings}};if(c){let h=o(a.settings.foreground);e.colorReplacements[h]=a.settings.foreground,u.settings.foreground=h}if(l){let h=o(a.settings.background);e.colorReplacements[h]=a.settings.background,u.settings.background=h}return u});for(let a of Object.keys(e.colors||{}))if(a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi")){if(!e.colors[a]?.startsWith("#")){let c=o(e.colors[a]);e.colorReplacements[c]=e.colors[a],e.colors[a]=c}}return Object.defineProperty(e,mt,{enumerable:!1,writable:!1,value:!0}),e}async function bt(t){return[...new Set((await Promise.all(t.filter((e)=>!_t(e)).map(async(e)=>await Te(e).then((n)=>Array.isArray(n)?n:[n])))).flat())]}async function St(t){return(await Promise.all(t.map(async(e)=>yt(e)?null:re(await Te(e))))).filter((e)=>!!e)}function wt(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);while(e[t]){if(t=e[t],n.has(t))throw new S(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var qn=class extends ht{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,r={}){super(t);this._resolver=t,this._themes=e,this._langs=n,this._alias=r,this._themes.map((s)=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){if(typeof t==="string")return this._resolvedThemes.get(t);else return this.loadTheme(t)}loadTheme(t){let e=re(t);if(e.name)this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null;return e}getLoadedThemes(){if(!this._loadedThemesCache)this._loadedThemesCache=[...this._resolvedThemes.keys()];return this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);if(!e)e=M.createFromRawTheme(t),this._textmateThemeCache.set(t,e);this._syncRegistry.setTheme(e)}getGrammar(t){return t=wt(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;let e=new Set([...this._langMap.values()].filter((s)=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);let n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);let r=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases)t.aliases.forEach((s)=>{this._alias[s]=t.name});if(this._loadedLanguagesCache=null,e.size)for(let s of e)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(let r of t)this.resolveEmbeddedLanguages(r);let e=[...this._langGraph.entries()],n=e.filter(([r,s])=>!s);if(n.length){let r=e.filter(([s,i])=>{if(!i)return!1;return(i.embeddedLanguages||i.embeddedLangs)?.some((o)=>n.map(([a])=>a).includes(o))}).filter((s)=>!n.includes(s));throw new S(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(let[r,s]of e)this._resolver.addLanguage(s);for(let[r,s]of e)this.loadLanguage(s)}getLoadedLanguages(){if(!this._loadedLanguagesCache)this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])];return this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);let e=t.embeddedLanguages??t.embeddedLangs;if(e)for(let n of e)this._langGraph.set(n,this._langMap.get(n))}},zn=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,e){this._onigLib={createOnigScanner:(n)=>t.createScanner(n),createOnigString:(n)=>t.createString(n)},e.forEach((n)=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){if(this._langs.set(t.name,t),t.aliases)t.aliases.forEach((e)=>{this._langs.set(e,t)});if(this._scopeToLang.set(t.scopeName,t),t.injectTo)t.injectTo.forEach((e)=>{if(!this._injections.get(e))this._injections.set(e,[]);this._injections.get(e).push(t.scopeName)})}getInjections(t){let e=t.split("."),n=[];for(let r=1;r<=e.length;r++){let s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},H=0;function ve(t){if(H+=1,t.warnings!==!1&&H>=10&&H%10===0)console.warn(`[Shiki] ${H} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new S("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(re),s=new qn(new zn(t.engine,n),r,n,t.langAlias),i;function o(g){return wt(g,t.langAlias)}function a(g){_();let b=s.getGrammar(typeof g==="string"?g:g.name);if(!b)throw new S(`Language \`${g}\` not found, you may need to load it first`);return b}function c(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();let b=s.getTheme(g);if(!b)throw new S(`Theme \`${g}\` not found, you may need to load it first`);return b}function l(g){_();let b=c(g);if(i!==g)s.setTheme(b),i=g;return{theme:b,colorMap:s.getColorMap()}}function u(){return _(),s.getLoadedThemes()}function h(){return _(),s.getLoadedLanguages()}function d(...g){_(),s.loadLanguages(g.flat(1))}async function f(...g){return d(await bt(g))}function m(...g){_();for(let b of g.flat(1))s.loadTheme(b)}async function y(...g){return _(),m(await St(g))}function _(){if(e)throw new S("Shiki instance has been disposed")}function p(){if(e)return;e=!0,s.dispose(),H-=1}return{setTheme:l,getTheme:c,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:o,loadLanguage:f,loadLanguageSync:d,loadTheme:y,loadThemeSync:m,dispose:p,[Symbol.dispose]:p}}async function Ae(t){if(!t.engine)console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([St(t.themes||[]),bt(t.langs||[]),t.engine]);return ve({...t,themes:e,langs:n,engine:r})}var Ct=new WeakMap;function K(t,e){Ct.set(t,e)}function G(t){return Ct.get(t)}var se=class t{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new t(Object.fromEntries(pt(n).map((r)=>[r,ne])),e)}constructor(...e){if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Un(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Un(t){let e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);let i=s?.nameScopesList?.scopeName;if(i)e.push(i);if(s.parent)r(s.parent)}return r(t),e}function Kn(t,e){if(!(t instanceof se))throw new S("Invalid grammar state");return t.getInternalStack(e)}var Vn=/,/,Yn=/ /;function Ee(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n;if(z(t.resolveLangAlias(n.lang||"text"))||U(r))return P(e).map((a)=>[{content:a[0],offset:a[1]}]);let{theme:s,colorMap:i}=t.setTheme(r),o=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new S(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new S(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Rt(e,o,s,i,n)}function kt(...t){if(t.length===2)return G(t[1]);let[e,n,r={}]=t,{lang:s="text",theme:i=e.getLoadedThemes()[0]}=r;if(z(s)||U(i))throw new S("Plain language does not have grammar state");if(s==="ansi")throw new S("ANSI language does not have grammar state");let{theme:o,colorMap:a}=e.setTheme(i),c=e.getLanguage(s);return new se(xe(n,c,o,a,r).stateStack,c.name,o.name)}function Rt(t,e,n,r,s){let i=xe(t,e,n,r,s),o=new se(i.stateStack,e.name,n.name);return K(i.tokens,o),i.tokens}function xe(t,e,n,r,s){let i=q(n,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:c=!1}=s,l=P(t),u=s.grammarState?Kn(s.grammarState,n.name)??ne:s.grammarContextCode!=null?xe(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ne,h=[],d=[];for(let f=0,m=l.length;f<m;f++){let[y,_]=l[f];if(y===""){h=[],d.push([]);continue}if(o>0&&y.length>=o){h=[],d.push([{content:y,offset:_,color:"",fontStyle:0}]);continue}let p,g,b;if(c&&c!=="tokenType")p=e.tokenizeLine(y,u,a),g=p.tokens,b=0;let C=e.tokenizeLine2(y,u,a),R=C.tokens.length/2;for(let N=0;N<R;N++){let E=C.tokens[2*N],ge=N+1<R?C.tokens[2*N+2]:y.length;if(E===ge)continue;let pe=C.tokens[2*N+1],Zt=v(r[x.getForeground(pe)],i),en=x.getFontStyle(pe),Y={content:y.substring(E,ge),offset:_+E,color:Zt,fontStyle:en};if(c==="tokenType")Y.type=x.getTokenType(pe);else if(c){let Me=[];if(c!=="scopeName")for(let T of n.settings){let L;switch(typeof T.scope){case"string":L=T.scope.split(Vn).map((_e)=>_e.trim());break;case"object":L=T.scope;break;default:continue}Me.push({settings:T,selectors:L.map((_e)=>_e.split(Yn))})}Y.explanation=[];let je=0;while(E+je<ge){let T=g[b],L=y.substring(T.startIndex,T.endIndex);je+=L.length,Y.explanation.push({content:L,scopes:c==="scopeName"?Jn(T.scopes):Qn(Me,T.scopes)}),b+=1}}h.push(Y)}d.push(h),h=[],u=C.ruleStack}return{tokens:d,stateStack:u}}function Jn(t){return t.map((e)=>({scopeName:e}))}function Qn(t,e){let n=[];for(let r=0,s=e.length;r<s;r++){let i=e[r];n[r]={scopeName:i,themeMatches:Zn(t,i,e.slice(0,r))}}return n}function gt(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Xn(t,e,n){if(!gt(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;while(r>=0&&s>=0){if(gt(t[r],n[s]))r-=1;s-=1}if(r===-1)return!0;return!1}function Zn(t,e,n){let r=[];for(let{selectors:s,settings:i}of t)for(let o of s)if(Xn(o,e,n)){r.push(i);break}return r}function ie(t,e,n,r=Ee){let s=Object.entries(n.themes).filter((l)=>l[1]).map((l)=>({color:l[0],theme:l[1]})),i=s.map((l)=>{let u=r(t,e,{...n,theme:l.theme});return{tokens:u,state:G(u),theme:typeof l.theme==="string"?l.theme:l.theme.name}}),o=er(...i.map((l)=>l.tokens)),a=o[0].map((l,u)=>l.map((h,d)=>{let f={content:h.content,variants:{},offset:h.offset};if("includeExplanation"in n&&n.includeExplanation)f.explanation=h.explanation;return o.forEach((m,y)=>{let{content:_,explanation:p,offset:g,...b}=m[u][d];f.variants[s[y].color]=b}),f})),c=i[0].state?new se(Object.fromEntries(i.map((l)=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;if(c)K(a,c);return a}function er(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let s=t.map((c)=>c[r]),i=e.map(()=>[]);e.forEach((c,l)=>c.push(i[l]));let o=s.map(()=>0),a=s.map((c)=>c[0]);while(a.every((c)=>c)){let c=Math.min(...a.map((l)=>l.content.length));for(let l=0;l<n;l++){let u=a[l];if(u.content.length===c)i[l].push(u),o[l]+=1,a[l]=s[l][o[l]];else i[l].push({...u,content:u.content.slice(0,c)}),a[l]={...u,content:u.content.slice(c),offset:u.offset+c}}}}return e}var Nt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Tt={}.hasOwnProperty;function vt(t,e){let n=e||{};function r(s,...i){let{invalid:o,handlers:a}=r;if(s&&Tt.call(s,t)){let c=String(s[t]);o=Tt.call(a,c)?a[c]:r.unknown}if(o)return o.call(this,s,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var tr=/["&'<>`]/g,nr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sr=/[|\\{}()[\]^$+*?.]/g,At=new WeakMap;function Et(t,e){if(t=t.replace(e.subset?ir(e.subset):tr,r),e.subset||e.escapeOnly)return t;return t.replace(nr,n).replace(rr,r);function n(s,i,o){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function r(s,i,o){return e.format(s.charCodeAt(0),o.charCodeAt(i+1),e)}}function ir(t){let e=At.get(t);if(!e)e=or(t),At.set(t,e);return e}function or(t){let e=[],n=-1;while(++n<t.length)e.push(t[n].replace(sr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var ar=/[\dA-Fa-f]/;function xt(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!ar.test(String.fromCharCode(e))?r:r+";"}var cr=/\d/;function It(t,e,n){let r="&#"+String(t);return n&&e&&!cr.test(String.fromCharCode(e))?r:r+";"}var Lt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var oe={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};var Pt=["cent","copy","divide","gt","lt","not","para","times"];var Gt={}.hasOwnProperty,Ie={},ae;for(ae in oe)if(Gt.call(oe,ae))Ie[oe[ae]]=ae;var lr=/[^\dA-Za-z]/;function Bt(t,e,n,r){let s=String.fromCharCode(t);if(Gt.call(Ie,s)){let i=Ie[s],o="&"+i;if(n&&Lt.includes(i)&&!Pt.includes(i)&&(!r||e&&e!==61&&lr.test(String.fromCharCode(e))))return o;return o+";"}return""}function Ot(t,e,n){let r=xt(t,e,n.omitOptionalSemicolons),s;if(n.useNamedReferences||n.useShortestReferences)s=Bt(t,e,n.omitOptionalSemicolons,n.attribute);if((n.useShortestReferences||!s)&&n.useShortestReferences){let i=It(t,e,n.omitOptionalSemicolons);if(i.length<r.length)r=i}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function A(t,e){return Et(t,Object.assign({format:Ot},e))}var ur=/^>|^->|<!--|-->|--!>|<!-$/g,hr=[">"],fr=["<",">"];function $t(t,e,n,r){return r.settings.bogusComments?"<?"+A(t.value,Object.assign({},r.settings.characterReferences,{subset:hr}))+">":"<!--"+t.value.replace(ur,s)+"-->";function s(i){return A(i,Object.assign({},r.settings.characterReferences,{subset:fr}))}}function Mt(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}var w=jt(1),Le=jt(-1),dr=[];function jt(t){return e;function e(n,r,s){let i=n?n.children:dr,o=(r||0)+t,a=i[o];if(!s)while(a&&Er(a))o+=t,a=i[o];return a}}var mr={}.hasOwnProperty;function ce(t){return e;function e(n,r,s){return mr.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var V=ce({body:pr,caption:Pe,colgroup:Pe,dd:Sr,dt:br,head:Pe,html:gr,li:yr,optgroup:wr,option:Cr,p:_r,rp:Ft,rt:Ft,tbody:Rr,td:Dt,tfoot:Nr,th:Dt,thead:kr,tr:Tr});function Pe(t,e,n){let r=w(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Er(r.value.charAt(0)))}function gr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function pr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function _r(t,e,n){let r=w(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function yr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="li"}function br(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Sr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ft(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function wr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Cr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function kr(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Rr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Nr(t,e,n){return!w(n,e)}function Tr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Dt(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var Wt=ce({body:xr,colgroup:Ir,head:Ar,html:vr,tbody:Lr});function vr(t){let e=w(t,-1);return!e||e.type!=="comment"}function Ar(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function xr(t){let e=w(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Er(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ir(t,e,n){let r=Le(n,e),s=w(t,-1,!0);if(n&&r&&r.type==="element"&&r.tagName==="colgroup"&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="col")}function Lr(t,e,n){let r=Le(n,e),s=w(t,-1);if(n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="tr")}var le={name:[[`
4
+ \f\r &/=>`.split(""),`
5
+ \f\r "&'/=>\``.split("")],[`\x00
6
+ \f\r "&'/<=>`.split(""),`\x00
7
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
8
+ \f\r &>`.split(""),`\x00
9
+ \f\r "&'<=>\``.split("")],[`\x00
10
+ \f\r "&'<=>\``.split(""),`\x00
11
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\x00&'".split(""),"\x00\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\x00"&'.split(""),"\x00\"&'`".split("")]]};function Ht(t,e,n,r){let s=r.schema,i=s.space==="svg"?!1:r.settings.omitOptionalTags,o=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),a=[],c;if(s.space==="html"&&t.tagName==="svg")r.schema=Zr;let l=Pr(r,t.properties),u=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);if(r.schema=s,u)o=!1;if(l||!i||!Wt(t,e,n)){if(a.push("<",t.tagName,l?" "+l:""),o&&(s.space==="svg"||r.settings.closeSelfClosing)){if(c=l.charAt(l.length-1),!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")a.push(" ");a.push("/")}a.push(">")}if(a.push(u),!o&&(!i||!V(t,e,n)))a.push("</"+t.tagName+">");return a.join("")}function Pr(t,e){let n=[],r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){let i=Gr(t,s,e[s]);if(i)n.push(i)}}while(++r<n.length){let i=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;if(r!==n.length-1&&i!=='"'&&i!=="'")n[r]+=" "}return n.join("")}function Gr(t,e,n){let r=Xi(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1,o=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n===""))n=!0;else if((r.boolean||r.overloadedBoolean)&&(typeof n!=="string"||n===r.attribute||n===""))n=Boolean(n);if(n===null||n===void 0||n===!1||typeof n==="number"&&Number.isNaN(n))return"";let c=A(r.attribute,Object.assign({},t.settings.characterReferences,{subset:le.name[s][i]}));if(n===!0)return c;if(n=Array.isArray(n)?(r.commaSeparated?ms:hs)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)return c;if(t.settings.preferUnquoted)a=A(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:le.unquoted[s][i]}));if(a!==n){if(t.settings.quoteSmart&&gi(n,o)>gi(n,t.alternative))o=t.alternative;a=o+A(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?le.single:le.double)[s][i],attribute:!0}))+o}return c+(a?"="+a:a)}var Br=["<","&"];function ue(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:A(t.value,Object.assign({},r.settings.characterReferences,{subset:Br}))}function qt(t,e,n,r){return r.settings.allowDangerousHtml?t.value:ue(t,e,n,r)}function zt(t,e,n,r){return r.all(t)}var Ut=vt("type",{invalid:Or,unknown:$r,handlers:{comment:$t,doctype:Mt,element:Ht,raw:qt,root:zt,text:ue}});function Or(t){throw Error("Expected node, not `"+t+"`")}function $r(t){throw Error("Cannot compile unknown node `"+t.type+"`")}var Mr={},jr={},Fr=[];function Ge(t,e){let n=e||Mr,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Dr,all:Wr,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Nt,characterReferences:n.characterReferences||jr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Zr:fs,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Dr(t,e,n){return Ut(t,e,n,this)}function Wr(t){let e=[],n=t&&t.children||Fr,r=-1;while(++r<n.length)e[r]=this.one(n[r],r,t);return e.join("")}var Kt=/\s+/g;function Jt(t,e){if(!e)return t;if(t.properties||={},t.properties.class||=[],typeof t.properties.class==="string")t.properties.class=t.properties.class.split(Kt);if(!Array.isArray(t.properties.class))t.properties.class=[];let n=Array.isArray(e)?e:e.split(Kt);for(let r of n)if(r&&!t.properties.class.includes(r))t.properties.class.push(r);return t}function Hr(t){let e=P(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let i=s,o=0;for(let a of e){if(i<a.length)break;i-=a.length,o++}return{line:o,character:i}}function r(s,i){let o=0;for(let a=0;a<s;a++)o+=e[a].length;return o+=i,o}return{lines:e,indexToPos:n,posToIndex:r}}var qr=["color","background-color"];function zr(t,e){let n=0,r=[];for(let s of e){if(s>n)r.push({...t,content:t.content.slice(n,s),offset:t.offset+n});n=s}if(n<t.content.length)r.push({...t,content:t.content.slice(n),offset:t.offset+n});return r}function Ur(t,e){let n=0,r=t.length;while(n<r){let s=n+(r-n>>1);if(t[s]<=e)n=s+1;else r=s}return n}function Kr(t,e){let n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);if(!n.length)return t;return t.map((r)=>r.flatMap((s)=>{let i=s.offset+s.content.length,o=Ur(n,s.offset),a=o;while(a<n.length&&n[a]<i)a++;if(o===a)return s;let c=n.slice(o,a);for(let l=0;l<c.length;l++)c[l]-=s.offset;return zr(s,c)}))}function Vr(t,e,n,r,s="css-vars"){let i={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map((u)=>he(t.variants[u])),a=new Set(o.flatMap((u)=>Object.keys(u))),c={},l=(u,h)=>{let d=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+e[u]+(h==="color"?"":d)};return o.forEach((u,h)=>{for(let d of a){let f=u[d]||"inherit";if(h===0&&r&&qr.includes(d))if(r==="light-dark()"&&o.length>1){let m=e.findIndex((g)=>g==="light"),y=e.findIndex((g)=>g==="dark");if(m===-1||y===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let _=o[m][d]||"inherit",p=o[y][d]||"inherit";if(c[d]=`light-dark(${_}, ${p})`,s==="css-vars")c[l(h,d)]=f}else c[d]=f;else if(s==="css-vars")c[l(h,d)]=f}}),i.htmlStyle=c,i}function he(t){let e={};if(t.color)e.color=t.color;if(t.bgColor)e["background-color"]=t.bgColor;if(t.fontStyle){if(t.fontStyle&k.Italic)e["font-style"]="italic";if(t.fontStyle&k.Bold)e["font-weight"]="bold";let n=[];if(t.fontStyle&k.Underline)n.push("underline");if(t.fontStyle&k.Strikethrough)n.push("line-through");if(n.length)e["text-decoration"]=n.join(" ")}return e}function Oe(t){if(typeof t==="string")return t;return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function Yr(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(o){if(typeof o==="number"){if(o<0||o>n.source.length)throw new S(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{let a=r.lines[o.line];if(a===void 0)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let c=o.character;if(c<0)c=a.length+c;if(c<0||c>a.length)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,character:c,offset:r.posToIndex(o.line,c)}}},r=Hr(n.source),i=(n.options.decorations||[]).map((o)=>({...o,start:s(o.start),end:s(o.end)}));Jr(i),t.set(n.meta,{decorations:i,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;return Kr(n,e(this).decorations.flatMap((r)=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;let r=e(this),s=[...n.children].filter((u)=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new S(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(u,h,d,f){let m=s[u],y="",_=-1,p=-1;if(h===0)_=0;if(d===0)p=0;if(d===Number.POSITIVE_INFINITY)p=m.children.length;if(_===-1||p===-1)for(let b=0;b<m.children.length;b++){if(y+=Qt(m.children[b]),_===-1&&y.length===h)_=b+1;if(p===-1&&y.length===d)p=b+1}if(_===-1)throw new S(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(p===-1)throw new S(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);let g=m.children.slice(_,p);if(!f.alwaysWrap&&g.length===m.children.length)a(m,f,"line");else if(!f.alwaysWrap&&g.length===1&&g[0].type==="element")a(g[0],f,"token");else{let b={type:"element",tagName:"span",properties:{},children:g};a(b,f,"wrapper"),m.children.splice(_,g.length,b)}}function o(u,h){s[u]=a(s[u],h,"line")}function a(u,h,d){let f=h.properties||{},m=h.transform||((y)=>y);if(u.tagName=h.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},h.properties?.class)Jt(u,h.properties.class);return u=m(u,d)||u,u}let c=[],l=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(let u of l){let{start:h,end:d}=u;if(h.line===d.line)i(h.line,h.character,d.character,u);else if(h.line<d.line){i(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let f=h.line+1;f<d.line;f++)c.unshift(()=>o(f,u));i(d.line,0,d.character,u)}}c.forEach((u)=>u())}}}function Jr(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let s=t[r],i=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,o=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,c=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(i||o||a||c){if(i&&o)continue;if(a&&c)continue;if(a&&n.start.offset===n.end.offset)continue;if(o&&s.start.offset===s.end.offset)continue;throw new S(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Qt(t){if(t.type==="text")return t.value;if(t.type==="element")return t.children.map(Qt).join("");return""}var Qr=[Yr()];function fe(t){let e=Xr(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Qr]}function Xr(t){let e=[],n=[],r=[];for(let s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var I=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Be={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function es(t,e){let n=t.indexOf("\x1B",e);if(n!==-1){if(t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}}return{position:t.length}}function Vt(t){let e=t.shift();if(e==="2"){let n=t.splice(0,3).map((r)=>Number.parseInt(r));if(n.length!==3||n.some((r)=>Number.isNaN(r)))return;return{type:"rgb",rgb:n}}else if(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ts(t){let e=[];while(t.length>0){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(Number.isNaN(r))continue;if(r===0)e.push({type:"resetAll"});else if(r<=9){if(Be[r])e.push({type:"setDecoration",value:Be[r]})}else if(r<=29){let s=Be[r-20];if(s){if(e.push({type:"resetDecoration",value:s}),s==="dim")e.push({type:"resetDecoration",value:"bold"})}}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-30]}});else if(r===38){let s=Vt(t);if(s)e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-40]}});else if(r===48){let s=Vt(t);if(s)e.push({type:"setBackgroundColor",value:s})}else if(r===49)e.push({type:"resetBackgroundColor"});else if(r===53)e.push({type:"setDecoration",value:"overline"});else if(r===55)e.push({type:"resetDecoration",value:"overline"});else if(r>=90&&r<=97)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-90+8]}});else if(r>=100&&r<=107)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-100+8]}})}return e}function ns(){let t=null,e=null,n=new Set;return{parse(r){let s=[],i=0;do{let o=es(r,i),a=o.sequence?r.substring(i,o.startPosition):r.substring(i);if(a.length>0)s.push({value:a,foreground:t,background:e,decorations:new Set(n)});if(o.sequence){let c=ts(o.sequence);for(let l of c)if(l.type==="resetAll")t=null,e=null,n.clear();else if(l.type==="resetForegroundColor")t=null;else if(l.type==="resetBackgroundColor")e=null;else if(l.type==="resetDecoration")n.delete(l.value);for(let l of c)if(l.type==="setForegroundColor")t=l.value;else if(l.type==="setBackgroundColor")e=l.value;else if(l.type==="setDecoration")n.add(l.value)}i=o.position}while(i<r.length);return s}}}var rs={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ss(t=rs){function e(a){return t[a]}function n(a){return`#${a.map((c)=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let l=0;l<I.length;l++)r.push(e(I[l]));let a=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(n([a[l],a[u],a[h]]));let c=8;for(let l=0;l<24;l++,c+=10)r.push(n([c,c,c]));return r}function i(a){return s()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return i(a.index)}}return{value:o}}var is=/#([0-9a-f]{3,8})/i,os=/var\((--[\w-]+-ansi-[\w-]+)\)/,as={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function cs(t,e,n){let r=q(t,n),s=P(e),i=ss(Object.fromEntries(I.map((a)=>{let c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,t.colors?.[c]||as[a]]}))),o=ns();return s.map((a)=>o.parse(a[0]).map((c)=>{let l,u;if(c.decorations.has("reverse"))l=c.background?i.value(c.background):t.bg,u=c.foreground?i.value(c.foreground):t.fg;else l=c.foreground?i.value(c.foreground):t.fg,u=c.background?i.value(c.background):void 0;if(l=v(l,r),u=v(u,r),c.decorations.has("dim"))l=ls(l);let h=k.None;if(c.decorations.has("bold"))h|=k.Bold;if(c.decorations.has("italic"))h|=k.Italic;if(c.decorations.has("underline"))h|=k.Underline;if(c.decorations.has("strikethrough"))h|=k.Strikethrough;return{content:c.value,offset:a[1],color:l,bgColor:u,fontStyle:h}}))}function ls(t){let e=t.match(is);if(e){let r=e[1];if(r.length===8){let s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else if(r.length===6)return`#${r}80`;else if(r.length===4){let s=r[0],i=r[1],o=r[2],a=r[3];return`#${s}${s}${i}${i}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){let s=r[0],i=r[1],o=r[2];return`#${s}${s}${i}${i}${o}${o}80`}}let n=t.match(os);if(n)return`var(${n[1]}-dim)`;return t}function $e(t,e,n={}){let r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!z(r)&&!U(s)&&r==="ansi"){let{theme:i}=t.setTheme(s);return cs(i,e,n)}return Ee(t,e,n)}function de(t,e,n){let r,s,i,o,a,c;if("themes"in n){let{defaultColor:l="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,d=Object.entries(n.themes).filter((p)=>p[1]).map((p)=>({color:p[0],theme:p[1]})).sort((p,g)=>p.color===l?-1:g.color===l?1:0);if(d.length===0)throw new S("`themes` option must not be empty");let f=ie(t,e,n,$e);if(c=G(f),l&&l!=="light-dark()"&&!d.some((p)=>p.color===l))throw new S(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=d.map((p)=>t.getTheme(p.theme)),y=d.map((p)=>p.color);if(i=f.map((p)=>p.map((g)=>Vr(g,y,u,l,h))),c)K(i,c);let _=d.map((p)=>q(p.theme,n));s=Yt(d,m,_,u,l,"fg",h),r=Yt(d,m,_,u,l,"bg",h),o=`shiki-themes ${m.map((p)=>p.name).join(" ")}`,a=l?void 0:[s,r].join(";")}else if("theme"in n){let l=q(n.theme,n);i=$e(t,e,n);let u=t.getTheme(n.theme);r=v(u.bg,l),s=v(u.fg,l),o=u.name,c=G(i)}else throw new S("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:s,bg:r,themeName:o,rootStyle:a,grammarState:c}}function Yt(t,e,n,r,s,i,o){return t.map((a,c)=>{let l=v(e[c][i],n[c])||"inherit",u=`${r+a.color}${i==="bg"?"-bg":""}:${l}`;if(c===0&&s){if(s==="light-dark()"&&t.length>1){let h=t.findIndex((f)=>f.color==="light"),d=t.findIndex((f)=>f.color==="dark");if(h===-1||d===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${v(e[h][i],n[h])||"inherit"}, ${v(e[d][i],n[d])||"inherit"});${u}`}return l}if(o==="css-vars")return u;return null}).filter((a)=>!!a).join(";")}var Xt=/^\s+$/,us=/^(\s*)(.*?)(\s*)$/;function me(t,e,n,r={meta:{},options:n,codeToHast:(s,i)=>me(t,s,i),codeToTokens:(s,i)=>de(t,s,i)}){let s=e;for(let m of fe(n))s=m.preprocess?.call(r,s,n)||s;let{tokens:i,fg:o,bg:a,themeName:c,rootStyle:l,grammarState:u}=de(t,s,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;if(h===!0)i=gs(i);else if(h==="never")i=ps(i);if(d)i=_s(i);let f={...r,get source(){return s}};for(let m of fe(n))i=m.tokens?.call(f,i)||i;return ds(i,{...n,fg:o,bg:a,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},f,u)}function ds(t,e,n,r=G(t)){let s=fe(e),i=[],o={type:"root",children:[]},{structure:a="classic",tabindex:c="0"}=e,l={class:`shiki ${e.themeName||""}`};if(e.rootStyle!==!1)if(e.rootStyle!=null)l.style=e.rootStyle;else l.style=`background-color:${e.bg};color:${e.fg}`;if(c!==!1&&c!=null)l.tabindex=c.toString();for(let[y,_]of Object.entries(e.meta||{}))if(!y.startsWith("_"))l[y]=_;let u={type:"element",tagName:"pre",properties:l,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:i},d=[],f={...n,structure:a,addClassToHast:Jt,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return u},get code(){return h},get lines(){return d}};if(t.forEach((y,_)=>{if(_){if(a==="inline")o.children.push({type:"element",tagName:"br",properties:{},children:[]});else if(a==="classic")i.push({type:"text",value:`
12
+ `})}let p={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(let b of y){let C={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},R=Oe(b.htmlStyle||he(b));if(R)C.properties.style=R;for(let N of s)C=N?.span?.call(f,C,_+1,g,p,b)||C;if(a==="inline")o.children.push(C);else if(a==="classic")p.children.push(C);g+=b.content.length}if(a==="classic"){for(let b of s)p=b?.line?.call(f,p,_+1)||p;d.push(p),i.push(p)}else if(a==="inline")d.push(p)}),a==="classic"){for(let y of s)h=y?.code?.call(f,h)||h;u.children.push(h);for(let y of s)u=y?.pre?.call(f,u)||u;o.children.push(u)}else if(a==="inline"){let y=[],_={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let g of o.children)if(g.type==="element"&&g.tagName==="br")y.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]};else if(g.type==="element"||g.type==="text")_.children.push(g);y.push(_);let p={type:"element",tagName:"code",properties:{},children:y};for(let g of s)p=g?.code?.call(f,p)||p;o.children=[];for(let g=0;g<p.children.length;g++){if(g>0)o.children.push({type:"element",tagName:"br",properties:{},children:[]});let b=p.children[g];if(b.type==="element")o.children.push(...b.children)}}let m=o;for(let y of s)m=y?.root?.call(f,m)||m;if(r)K(m,r);return m}function gs(t){return t.map((e)=>{let n=[],r="",s;return e.forEach((i,o)=>{let a=!(i.fontStyle&&(i.fontStyle&k.Underline||i.fontStyle&k.Strikethrough));if(a&&Xt.test(i.content)&&e[o+1]){if(s===void 0)s=i.offset;r+=i.content}else if(r){if(a)n.push({...i,offset:s,content:r+i.content});else n.push({content:r,offset:s},i);s=void 0,r=""}else n.push(i)}),n})}function ps(t){return t.map((e)=>e.flatMap((n)=>{if(Xt.test(n.content))return n;let r=n.content.match(us);if(!r)return n;let[,s,i,o]=r;if(!s&&!o)return n;let a=[{...n,offset:n.offset+s.length,content:i}];if(s)a.unshift({content:s,offset:n.offset});if(o)a.push({content:o,offset:n.offset+s.length+i.length});return a}))}function _s(t){return t.map((e)=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let s=n.at(-1),i=Oe(s.htmlStyle||he(s)),o=Oe(r.htmlStyle||he(r)),a=s.fontStyle&&(s.fontStyle&k.Underline||s.fontStyle&k.Strikethrough),c=r.fontStyle&&(r.fontStyle&k.Underline||r.fontStyle&k.Strikethrough);if(!a&&!c&&i===o)s.content+=r.content;else n.push({...r})}return n})}var ys=Ge;function bs(t,e,n){let r={meta:{},options:n,codeToHast:(i,o)=>me(t,i,o),codeToTokens:(i,o)=>de(t,i,o)},s=ys(me(t,e,n,r));for(let i of fe(n))s=i.postprocess?.call(r,s,n)||s;return s}async function No(t){let e=await Ae(t);return{getLastGrammarState:(...n)=>kt(e,...n),codeToTokensBase:(n,r)=>$e(e,n,r),codeToTokensWithThemes:(n,r)=>ie(e,n,r),codeToTokens:(n,r)=>de(e,n,r),codeToHast:(n,r)=>me(e,n,r),codeToHtml:(n,r)=>bs(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}export{No as createHighlighterCore};
Binary file
Binary file