@bkm016/basalt 0.1.22 → 0.1.24

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 (1057) hide show
  1. package/chunk-0ecs4nme.js +18 -0
  2. package/chunk-0mrd775t.js +3 -0
  3. package/chunk-0nxcbf6d.js +472 -0
  4. package/chunk-0p12aad6.js +3 -0
  5. package/chunk-0vdz9j55.js +7 -0
  6. package/chunk-1v0dv855.js +3 -0
  7. package/chunk-2jeg8h8d.js +3 -0
  8. package/chunk-2q3tewbg.js +59 -0
  9. package/chunk-3hqka8zs.js +2 -0
  10. package/chunk-3ktcgaec.js +2 -0
  11. package/chunk-3v0ezmaw.js +39 -0
  12. package/chunk-3zv7ryz0.js +2 -0
  13. package/chunk-4x7xnfw1.js +2 -0
  14. package/chunk-5h96jz3p.js +3 -0
  15. package/chunk-5kd940f5.js +3 -0
  16. package/chunk-628vymvd.js +3 -0
  17. package/chunk-6h9dxrr4.js +2 -0
  18. package/chunk-6ka4m0ax.js +2 -0
  19. package/chunk-6q0ak8d1.js +12 -0
  20. package/chunk-768vwfc3.js +3 -0
  21. package/chunk-7k4xghss.js +5 -0
  22. package/chunk-8jv34hrx.js +7 -0
  23. package/chunk-8np9b2y8.js +3 -0
  24. package/chunk-8yv55y6g.js +3 -0
  25. package/chunk-95rqa8r8.js +2 -0
  26. package/chunk-979mxkzt.js +2 -0
  27. package/chunk-9y8v1vrt.js +15 -0
  28. package/chunk-akf8x16s.js +5 -0
  29. package/chunk-bdr1170y.js +3 -0
  30. package/chunk-bkmd5d8p.js +3 -0
  31. package/chunk-c4nxr37s.js +3566 -0
  32. package/chunk-cte9wd9x.js +4 -0
  33. package/chunk-df7ye0xb.js +9 -0
  34. package/chunk-drbd6485.js +3 -0
  35. package/chunk-dsd6pd2m.js +2 -0
  36. package/chunk-eejgn4ye.js +2 -0
  37. package/chunk-eek8fqvj.js +2 -0
  38. package/chunk-ewjrnvjb.js +10 -0
  39. package/chunk-f4tqhvff.js +3 -0
  40. package/chunk-gha8wd63.js +11 -0
  41. package/chunk-gwrpahes.js +2 -0
  42. package/chunk-hz92pdms.js +2 -0
  43. package/chunk-jepxf22f.js +7 -0
  44. package/chunk-kh4yq4rd.js +4 -0
  45. package/chunk-khdch9sx.js +25 -0
  46. package/chunk-m1w7f6d3.js +5 -0
  47. package/chunk-ma91f4qj.js +2 -0
  48. package/chunk-mah60ek9.js +3 -0
  49. package/chunk-mmm1jh57.js +20 -0
  50. package/chunk-mmt11y21.js +2 -0
  51. package/chunk-mny4xyb0.js +3 -0
  52. package/chunk-mq0p4ssz.js +3 -0
  53. package/chunk-mzta1jts.js +10 -0
  54. package/chunk-n0qwj5gm.js +12 -0
  55. package/chunk-n19ec95n.js +3 -0
  56. package/chunk-n5b822pn.js +3 -0
  57. package/chunk-nvxx397h.js +2 -0
  58. package/chunk-nwfhbcme.js +4 -0
  59. package/chunk-pcd14q8r.js +390 -0
  60. package/chunk-pr1hfw3a.js +2 -0
  61. package/chunk-q2re8mn9.js +31 -0
  62. package/chunk-qgg3wk8h.js +2 -0
  63. package/chunk-r9gkfk6f.js +16 -0
  64. package/chunk-rjfph4m5.js +3 -0
  65. package/chunk-rmy489b1.js +7 -0
  66. package/chunk-sf2cp0m6.js +8 -0
  67. package/chunk-sfwy8rqg.js +3 -0
  68. package/chunk-sj2q2amm.js +11 -0
  69. package/chunk-sqfs6z7c.js +3 -0
  70. package/chunk-sy980cjq.js +2 -0
  71. package/chunk-t64hda7b.js +2 -0
  72. package/chunk-tbhqhejq.js +2 -0
  73. package/chunk-trxaygjr.js +5 -0
  74. package/chunk-v7ehjbxx.js +2 -0
  75. package/chunk-vjegsy9q.js +2 -0
  76. package/chunk-vt4xyc4q.js +2 -0
  77. package/chunk-w430z452.js +25 -0
  78. package/chunk-xycq2q8m.js +2 -0
  79. package/chunk-y16fqzad.js +3 -0
  80. package/chunk-y6mng74k.js +2 -0
  81. package/chunk-y8aq7mb7.js +3 -0
  82. package/chunk-ynt6najh.js +3 -0
  83. package/chunk-z1y43t2s.js +3 -0
  84. package/chunk-z6v2pcc0.js +3 -0
  85. package/compiled.js +8 -8
  86. package/package.json +1 -1
  87. package/ui-test-worker.js +57 -57
  88. package/web/chunk-085ttz7c.js +84 -0
  89. package/web/chunk-085ttz7c.js.br +0 -0
  90. package/web/chunk-085ttz7c.js.gz +0 -0
  91. package/web/chunk-0g9ycv0h.js +2 -0
  92. package/web/chunk-0g9ycv0h.js.br +0 -0
  93. package/web/chunk-0g9ycv0h.js.gz +0 -0
  94. package/web/chunk-13x3xyyh.js +7 -0
  95. package/web/chunk-13x3xyyh.js.br +0 -0
  96. package/web/chunk-13x3xyyh.js.gz +0 -0
  97. package/web/chunk-172gywq4.js +214 -0
  98. package/web/chunk-172gywq4.js.br +0 -0
  99. package/web/chunk-172gywq4.js.gz +0 -0
  100. package/web/chunk-176tsg6e.js +2 -0
  101. package/web/chunk-176tsg6e.js.br +0 -0
  102. package/web/chunk-176tsg6e.js.gz +0 -0
  103. package/web/chunk-17d30546.js +38 -0
  104. package/web/chunk-17d30546.js.br +0 -0
  105. package/web/chunk-17d30546.js.gz +0 -0
  106. package/web/chunk-1k6jx4hs.js +1 -0
  107. package/web/chunk-1k6jx4hs.js.br +0 -0
  108. package/web/chunk-1k6jx4hs.js.gz +0 -0
  109. package/web/chunk-1kts05s6.css +1 -0
  110. package/web/chunk-1kts05s6.css.br +0 -0
  111. package/web/chunk-1kts05s6.css.gz +0 -0
  112. package/web/chunk-1z0x1j6q.js +1 -0
  113. package/web/chunk-1z0x1j6q.js.br +0 -0
  114. package/web/chunk-1z0x1j6q.js.gz +0 -0
  115. package/web/chunk-290wy4yk.js +1 -0
  116. package/web/chunk-290wy4yk.js.br +0 -0
  117. package/web/chunk-290wy4yk.js.gz +0 -0
  118. package/web/chunk-2cdw1299.js +1 -0
  119. package/web/chunk-2cdw1299.js.br +0 -0
  120. package/web/chunk-2cdw1299.js.gz +0 -0
  121. package/web/chunk-2fms67zg.js +332 -0
  122. package/web/chunk-2fms67zg.js.br +0 -0
  123. package/web/chunk-2fms67zg.js.gz +0 -0
  124. package/web/chunk-2jvy4y1e.js +1 -0
  125. package/web/chunk-2jvy4y1e.js.br +0 -0
  126. package/web/chunk-2jvy4y1e.js.gz +0 -0
  127. package/web/chunk-2psxv4dk.js +120 -0
  128. package/web/chunk-2psxv4dk.js.br +0 -0
  129. package/web/chunk-2psxv4dk.js.gz +0 -0
  130. package/web/chunk-2z4zhtw4.js +142 -0
  131. package/web/chunk-2z4zhtw4.js.br +0 -0
  132. package/web/chunk-2z4zhtw4.js.gz +0 -0
  133. package/web/chunk-33eqjx7d.js +2 -0
  134. package/web/chunk-33eqjx7d.js.br +0 -0
  135. package/web/chunk-33eqjx7d.js.gz +0 -0
  136. package/web/chunk-39rtp0f4.js +1 -0
  137. package/web/chunk-39rtp0f4.js.br +0 -0
  138. package/web/chunk-39rtp0f4.js.gz +0 -0
  139. package/web/chunk-3sszg3gr.js +24 -0
  140. package/web/chunk-3sszg3gr.js.br +0 -0
  141. package/web/chunk-3sszg3gr.js.gz +0 -0
  142. package/web/chunk-3vdw9nn7.js +62 -0
  143. package/web/chunk-3vdw9nn7.js.br +0 -0
  144. package/web/chunk-3vdw9nn7.js.gz +0 -0
  145. package/web/chunk-43shp7zx.js +2 -0
  146. package/web/chunk-43shp7zx.js.br +0 -0
  147. package/web/chunk-43shp7zx.js.gz +0 -0
  148. package/web/chunk-4cbcqcd2.js +1 -0
  149. package/web/chunk-4cbcqcd2.js.br +0 -0
  150. package/web/chunk-4cbcqcd2.js.gz +0 -0
  151. package/web/chunk-4v6n6b36.js +1 -0
  152. package/web/chunk-4v6n6b36.js.br +0 -0
  153. package/web/chunk-4v6n6b36.js.gz +0 -0
  154. package/web/chunk-54vdfmx0.js +2 -0
  155. package/web/chunk-54vdfmx0.js.br +0 -0
  156. package/web/chunk-54vdfmx0.js.gz +0 -0
  157. package/web/chunk-59ybhv47.js +1 -0
  158. package/web/chunk-59ybhv47.js.br +0 -0
  159. package/web/chunk-59ybhv47.js.gz +0 -0
  160. package/web/chunk-5a80hcah.js +1 -0
  161. package/web/chunk-5a80hcah.js.br +0 -0
  162. package/web/chunk-5a80hcah.js.gz +0 -0
  163. package/web/chunk-5kcmtrrk.js +2 -0
  164. package/web/chunk-5kcmtrrk.js.br +0 -0
  165. package/web/chunk-5kcmtrrk.js.gz +0 -0
  166. package/web/chunk-5zkw2kkb.js +140 -0
  167. package/web/chunk-5zkw2kkb.js.br +0 -0
  168. package/web/chunk-5zkw2kkb.js.gz +0 -0
  169. package/web/chunk-634vc92s.js +70 -0
  170. package/web/chunk-634vc92s.js.br +0 -0
  171. package/web/chunk-634vc92s.js.gz +0 -0
  172. package/web/chunk-6n3cwe1h.js +169 -0
  173. package/web/chunk-6n3cwe1h.js.br +0 -0
  174. package/web/chunk-6n3cwe1h.js.gz +0 -0
  175. package/web/chunk-6ycpdpfj.js +107 -0
  176. package/web/chunk-6ycpdpfj.js.br +0 -0
  177. package/web/chunk-6ycpdpfj.js.gz +0 -0
  178. package/web/chunk-6zr2j7xj.js +1 -0
  179. package/web/chunk-6zr2j7xj.js.br +0 -0
  180. package/web/chunk-6zr2j7xj.js.gz +0 -0
  181. package/web/chunk-713ygtrs.js +200 -0
  182. package/web/chunk-713ygtrs.js.br +0 -0
  183. package/web/chunk-713ygtrs.js.gz +0 -0
  184. package/web/chunk-7m4gmjvp.js +1 -0
  185. package/web/chunk-7m4gmjvp.js.br +0 -0
  186. package/web/chunk-7m4gmjvp.js.gz +0 -0
  187. package/web/chunk-7x90pq42.js +1 -0
  188. package/web/chunk-7x90pq42.js.br +0 -0
  189. package/web/chunk-7x90pq42.js.gz +0 -0
  190. package/web/chunk-7ycp549b.js +2 -0
  191. package/web/chunk-7ycp549b.js.br +0 -0
  192. package/web/chunk-7ycp549b.js.gz +0 -0
  193. package/web/chunk-811qc5bs.js +1 -0
  194. package/web/chunk-811qc5bs.js.br +0 -0
  195. package/web/chunk-811qc5bs.js.gz +0 -0
  196. package/web/chunk-82gjgy45.js +1 -0
  197. package/web/chunk-82gjgy45.js.br +0 -0
  198. package/web/chunk-82gjgy45.js.gz +0 -0
  199. package/web/chunk-8de69eyx.js +2 -0
  200. package/web/chunk-8de69eyx.js.br +0 -0
  201. package/web/chunk-8de69eyx.js.gz +0 -0
  202. package/web/chunk-91s1ns6b.js +55 -0
  203. package/web/chunk-91s1ns6b.js.br +0 -0
  204. package/web/chunk-91s1ns6b.js.gz +0 -0
  205. package/web/chunk-921qw2jf.js +1 -0
  206. package/web/chunk-921qw2jf.js.br +0 -0
  207. package/web/chunk-921qw2jf.js.gz +0 -0
  208. package/web/chunk-96n0nem7.js +2 -0
  209. package/web/chunk-96n0nem7.js.br +0 -0
  210. package/web/chunk-96n0nem7.js.gz +0 -0
  211. package/web/chunk-9k9p5dat.js +1 -0
  212. package/web/chunk-9k9p5dat.js.br +0 -0
  213. package/web/chunk-9k9p5dat.js.gz +0 -0
  214. package/web/chunk-9kx2s040.js +1 -0
  215. package/web/chunk-9kx2s040.js.br +0 -0
  216. package/web/chunk-9kx2s040.js.gz +0 -0
  217. package/web/chunk-a529550j.js +1 -0
  218. package/web/chunk-a529550j.js.br +0 -0
  219. package/web/chunk-a529550j.js.gz +0 -0
  220. package/web/chunk-abvtsz6z.js +2 -0
  221. package/web/chunk-abvtsz6z.js.br +0 -0
  222. package/web/chunk-abvtsz6z.js.gz +0 -0
  223. package/web/chunk-ac8vmj54.js +1 -0
  224. package/web/chunk-ac8vmj54.js.br +0 -0
  225. package/web/chunk-ac8vmj54.js.gz +0 -0
  226. package/web/chunk-amrt87c9.js +1 -0
  227. package/web/chunk-amrt87c9.js.br +0 -0
  228. package/web/chunk-amrt87c9.js.gz +0 -0
  229. package/web/chunk-b2t33c3t.js +2 -0
  230. package/web/chunk-b2t33c3t.js.br +0 -0
  231. package/web/chunk-b2t33c3t.js.gz +0 -0
  232. package/web/chunk-b9fqnzqd.js +217 -0
  233. package/web/chunk-b9fqnzqd.js.br +0 -0
  234. package/web/chunk-b9fqnzqd.js.gz +0 -0
  235. package/web/chunk-bbs6yq60.js +99 -0
  236. package/web/chunk-bbs6yq60.js.br +0 -0
  237. package/web/chunk-bbs6yq60.js.gz +0 -0
  238. package/web/chunk-bbyqcvdz.js +2 -0
  239. package/web/chunk-bbyqcvdz.js.br +0 -0
  240. package/web/chunk-bbyqcvdz.js.gz +0 -0
  241. package/web/chunk-bg2ps35t.js +2 -0
  242. package/web/chunk-bg2ps35t.js.br +0 -0
  243. package/web/chunk-bg2ps35t.js.gz +0 -0
  244. package/web/chunk-bh0a254y.js +30 -0
  245. package/web/chunk-bh0a254y.js.br +0 -0
  246. package/web/chunk-bh0a254y.js.gz +0 -0
  247. package/web/chunk-bvmvj35k.js +1 -0
  248. package/web/chunk-bvmvj35k.js.br +0 -0
  249. package/web/chunk-bvmvj35k.js.gz +0 -0
  250. package/web/chunk-c2eqwepm.js +2 -0
  251. package/web/chunk-c2eqwepm.js.br +0 -0
  252. package/web/chunk-c2eqwepm.js.gz +0 -0
  253. package/web/chunk-ca8hnmmv.js +34 -0
  254. package/web/chunk-ca8hnmmv.js.br +0 -0
  255. package/web/chunk-ca8hnmmv.js.gz +0 -0
  256. package/web/chunk-cbh6w44y.js +1 -0
  257. package/web/chunk-cbh6w44y.js.br +0 -0
  258. package/web/chunk-cbh6w44y.js.gz +0 -0
  259. package/web/chunk-ced8pdbc.js +1 -0
  260. package/web/chunk-ced8pdbc.js.br +0 -0
  261. package/web/chunk-ced8pdbc.js.gz +0 -0
  262. package/web/chunk-cj0cmvbm.js +89 -0
  263. package/web/chunk-cj0cmvbm.js.br +0 -0
  264. package/web/chunk-cj0cmvbm.js.gz +0 -0
  265. package/web/chunk-cqr2kq2c.js +1 -0
  266. package/web/chunk-cqr2kq2c.js.br +0 -0
  267. package/web/chunk-cqr2kq2c.js.gz +0 -0
  268. package/web/chunk-crhbhsrh.js +2 -0
  269. package/web/chunk-crhbhsrh.js.br +0 -0
  270. package/web/chunk-crhbhsrh.js.gz +0 -0
  271. package/web/chunk-cxhcrhqc.js +1 -0
  272. package/web/chunk-cxhcrhqc.js.br +0 -0
  273. package/web/chunk-cxhcrhqc.js.gz +0 -0
  274. package/web/chunk-ddfd1c5x.js +1 -0
  275. package/web/chunk-ddfd1c5x.js.br +0 -0
  276. package/web/chunk-ddfd1c5x.js.gz +0 -0
  277. package/web/chunk-deqy1rfx.js +1 -0
  278. package/web/chunk-deqy1rfx.js.br +0 -0
  279. package/web/chunk-deqy1rfx.js.gz +0 -0
  280. package/web/chunk-drr7mqg2.js +1 -0
  281. package/web/chunk-drr7mqg2.js.br +0 -0
  282. package/web/chunk-drr7mqg2.js.gz +0 -0
  283. package/web/chunk-e3d6kvwm.js +1 -0
  284. package/web/chunk-e3d6kvwm.js.br +0 -0
  285. package/web/chunk-e3d6kvwm.js.gz +0 -0
  286. package/web/chunk-ee67ps6t.js +1 -0
  287. package/web/chunk-ee67ps6t.js.br +0 -0
  288. package/web/chunk-ee67ps6t.js.gz +0 -0
  289. package/web/chunk-ef0wf92p.js +2 -0
  290. package/web/chunk-ef0wf92p.js.br +0 -0
  291. package/web/chunk-ef0wf92p.js.gz +0 -0
  292. package/web/chunk-ekwmp0s0.js +1 -0
  293. package/web/chunk-ekwmp0s0.js.br +0 -0
  294. package/web/chunk-ekwmp0s0.js.gz +0 -0
  295. package/web/chunk-eq28qb33.js +2 -0
  296. package/web/chunk-eq28qb33.js.br +3 -0
  297. package/web/chunk-eq28qb33.js.gz +0 -0
  298. package/web/chunk-f620k3hk.js +1 -0
  299. package/web/chunk-f620k3hk.js.br +0 -0
  300. package/web/chunk-f620k3hk.js.gz +0 -0
  301. package/web/chunk-f8ac76br.js +2 -0
  302. package/web/chunk-f8ac76br.js.br +3 -0
  303. package/web/chunk-f8ac76br.js.gz +0 -0
  304. package/web/chunk-fp7q643n.js +36 -0
  305. package/web/chunk-fp7q643n.js.br +0 -0
  306. package/web/chunk-fp7q643n.js.gz +0 -0
  307. package/web/chunk-g1penf6y.js +2 -0
  308. package/web/chunk-g1penf6y.js.br +0 -0
  309. package/web/chunk-g1penf6y.js.gz +0 -0
  310. package/web/chunk-g7t1bvvx.js +2 -0
  311. package/web/chunk-g7t1bvvx.js.br +0 -0
  312. package/web/chunk-g7t1bvvx.js.gz +0 -0
  313. package/web/chunk-gb2tkfv0.js +1 -0
  314. package/web/chunk-gb2tkfv0.js.br +0 -0
  315. package/web/chunk-gb2tkfv0.js.gz +0 -0
  316. package/web/chunk-gf4ky7tp.js +8 -0
  317. package/web/chunk-gf4ky7tp.js.br +0 -0
  318. package/web/chunk-gf4ky7tp.js.gz +0 -0
  319. package/web/chunk-gtcjwz0j.js +1 -0
  320. package/web/chunk-gtcjwz0j.js.br +2 -0
  321. package/web/chunk-gtcjwz0j.js.gz +0 -0
  322. package/web/chunk-gy2y4zfa.js +21 -0
  323. package/web/chunk-gy2y4zfa.js.br +0 -0
  324. package/web/chunk-gy2y4zfa.js.gz +0 -0
  325. package/web/chunk-h1cv1kke.js +16 -0
  326. package/web/chunk-h1cv1kke.js.br +0 -0
  327. package/web/chunk-h1cv1kke.js.gz +0 -0
  328. package/web/chunk-h6k80vqf.js +1 -0
  329. package/web/chunk-h6k80vqf.js.br +0 -0
  330. package/web/chunk-h6k80vqf.js.gz +0 -0
  331. package/web/chunk-hqtm67yw.js +24 -0
  332. package/web/chunk-hqtm67yw.js.br +0 -0
  333. package/web/chunk-hqtm67yw.js.gz +0 -0
  334. package/web/chunk-hsgtzrkh.js +1 -0
  335. package/web/chunk-hsgtzrkh.js.br +0 -0
  336. package/web/chunk-hsgtzrkh.js.gz +0 -0
  337. package/web/chunk-htn0dt64.js +2 -0
  338. package/web/chunk-htn0dt64.js.br +0 -0
  339. package/web/chunk-htn0dt64.js.gz +0 -0
  340. package/web/chunk-j7phw79h.js +1 -0
  341. package/web/chunk-j7phw79h.js.br +0 -0
  342. package/web/chunk-j7phw79h.js.gz +0 -0
  343. package/web/chunk-k69ysa0v.js +1 -0
  344. package/web/chunk-k69ysa0v.js.br +0 -0
  345. package/web/chunk-k69ysa0v.js.gz +0 -0
  346. package/web/chunk-k7h5g8qj.js +1 -0
  347. package/web/chunk-k7h5g8qj.js.br +2 -0
  348. package/web/chunk-k7h5g8qj.js.gz +0 -0
  349. package/web/chunk-k8x1xbf6.js +1 -0
  350. package/web/chunk-k8x1xbf6.js.br +0 -0
  351. package/web/chunk-k8x1xbf6.js.gz +0 -0
  352. package/web/chunk-k8yyb4wc.js +2 -0
  353. package/web/chunk-k8yyb4wc.js.br +0 -0
  354. package/web/chunk-k8yyb4wc.js.gz +0 -0
  355. package/web/chunk-kbvzxsz7.js +324 -0
  356. package/web/chunk-kbvzxsz7.js.br +0 -0
  357. package/web/chunk-kbvzxsz7.js.gz +0 -0
  358. package/web/chunk-kn9bc5z2.js +291 -0
  359. package/web/chunk-kn9bc5z2.js.br +0 -0
  360. package/web/chunk-kn9bc5z2.js.gz +0 -0
  361. package/web/chunk-ksr360js.js +4 -0
  362. package/web/chunk-ksr360js.js.br +0 -0
  363. package/web/chunk-ksr360js.js.gz +0 -0
  364. package/web/chunk-m5nt857c.js +1 -0
  365. package/web/chunk-m5nt857c.js.br +0 -0
  366. package/web/chunk-m5nt857c.js.gz +0 -0
  367. package/web/chunk-mbaw66b5.js +2 -0
  368. package/web/chunk-mbaw66b5.js.br +0 -0
  369. package/web/chunk-mbaw66b5.js.gz +0 -0
  370. package/web/chunk-ms7cscs9.js +1 -0
  371. package/web/chunk-ms7cscs9.js.br +0 -0
  372. package/web/chunk-ms7cscs9.js.gz +0 -0
  373. package/web/chunk-msn8bpe6.js +1 -0
  374. package/web/chunk-msn8bpe6.js.br +0 -0
  375. package/web/chunk-msn8bpe6.js.gz +0 -0
  376. package/web/chunk-myhtb5ps.js +2 -0
  377. package/web/chunk-myhtb5ps.js.br +0 -0
  378. package/web/chunk-myhtb5ps.js.gz +0 -0
  379. package/web/chunk-n59nyqcr.js +303 -0
  380. package/web/chunk-n59nyqcr.js.br +0 -0
  381. package/web/chunk-n59nyqcr.js.gz +0 -0
  382. package/web/chunk-n9npqkxf.js +1 -0
  383. package/web/chunk-n9npqkxf.js.br +0 -0
  384. package/web/chunk-n9npqkxf.js.gz +0 -0
  385. package/web/chunk-nb3jk1wk.js +1 -0
  386. package/web/chunk-nb3jk1wk.js.br +0 -0
  387. package/web/chunk-nb3jk1wk.js.gz +0 -0
  388. package/web/chunk-nmgy1mrz.js +1 -0
  389. package/web/chunk-nmgy1mrz.js.br +0 -0
  390. package/web/chunk-nmgy1mrz.js.gz +0 -0
  391. package/web/chunk-ny87aq2j.js +1 -0
  392. package/web/chunk-ny87aq2j.js.br +0 -0
  393. package/web/chunk-ny87aq2j.js.gz +0 -0
  394. package/web/chunk-phr7yps3.js +3 -0
  395. package/web/chunk-phr7yps3.js.br +0 -0
  396. package/web/chunk-phr7yps3.js.gz +0 -0
  397. package/web/chunk-ppccb30x.js +78 -0
  398. package/web/chunk-ppccb30x.js.br +0 -0
  399. package/web/chunk-ppccb30x.js.gz +0 -0
  400. package/web/chunk-q0kx0wyj.js +2 -0
  401. package/web/chunk-q0kx0wyj.js.br +0 -0
  402. package/web/chunk-q0kx0wyj.js.gz +0 -0
  403. package/web/chunk-q17rem99.js +89 -0
  404. package/web/chunk-q17rem99.js.br +0 -0
  405. package/web/chunk-q17rem99.js.gz +0 -0
  406. package/web/chunk-q6aqg79d.js +2 -0
  407. package/web/chunk-q6aqg79d.js.br +0 -0
  408. package/web/chunk-q6aqg79d.js.gz +0 -0
  409. package/web/chunk-qdq6wvgt.js +139 -0
  410. package/web/chunk-qdq6wvgt.js.br +0 -0
  411. package/web/chunk-qdq6wvgt.js.gz +0 -0
  412. package/web/chunk-qhr6hegh.js +1 -0
  413. package/web/chunk-qhr6hegh.js.br +0 -0
  414. package/web/chunk-qhr6hegh.js.gz +0 -0
  415. package/web/chunk-qjswcwvm.js +1 -0
  416. package/web/chunk-qjswcwvm.js.br +0 -0
  417. package/web/chunk-qjswcwvm.js.gz +0 -0
  418. package/web/chunk-qqtj88e0.js +2 -0
  419. package/web/chunk-qqtj88e0.js.br +0 -0
  420. package/web/chunk-qqtj88e0.js.gz +0 -0
  421. package/web/chunk-r165xpp5.js +1 -0
  422. package/web/chunk-r165xpp5.js.br +0 -0
  423. package/web/chunk-r165xpp5.js.gz +0 -0
  424. package/web/chunk-r4cr8rvt.js +1 -0
  425. package/web/chunk-r4cr8rvt.js.br +0 -0
  426. package/web/chunk-r4cr8rvt.js.gz +0 -0
  427. package/web/chunk-rbd2n2mr.js +1 -0
  428. package/web/chunk-rbd2n2mr.js.br +0 -0
  429. package/web/chunk-rbd2n2mr.js.gz +0 -0
  430. package/web/chunk-rbh0yrp6.js +1 -0
  431. package/web/chunk-rbh0yrp6.js.br +0 -0
  432. package/web/chunk-rbh0yrp6.js.gz +0 -0
  433. package/web/chunk-rjvdk0s6.js +1 -0
  434. package/web/chunk-rjvdk0s6.js.br +0 -0
  435. package/web/chunk-rjvdk0s6.js.gz +0 -0
  436. package/web/chunk-sapy54hm.js +106 -0
  437. package/web/chunk-sapy54hm.js.br +0 -0
  438. package/web/chunk-sapy54hm.js.gz +0 -0
  439. package/web/chunk-sarkb4p9.js +12 -0
  440. package/web/chunk-sarkb4p9.js.br +0 -0
  441. package/web/chunk-sarkb4p9.js.gz +0 -0
  442. package/web/chunk-t7vwsg9r.js +292 -0
  443. package/web/chunk-t7vwsg9r.js.br +0 -0
  444. package/web/chunk-t7vwsg9r.js.gz +0 -0
  445. package/web/chunk-ta913rgd.js +2 -0
  446. package/web/chunk-ta913rgd.js.br +0 -0
  447. package/web/chunk-ta913rgd.js.gz +0 -0
  448. package/web/chunk-tt7j0m6m.js +7 -0
  449. package/web/chunk-tt7j0m6m.js.br +0 -0
  450. package/web/chunk-tt7j0m6m.js.gz +0 -0
  451. package/web/chunk-v36p2ccs.js +2 -0
  452. package/web/chunk-v36p2ccs.js.br +0 -0
  453. package/web/chunk-v36p2ccs.js.gz +0 -0
  454. package/web/chunk-va1rkfan.js +1 -0
  455. package/web/chunk-va1rkfan.js.br +0 -0
  456. package/web/chunk-va1rkfan.js.gz +0 -0
  457. package/web/chunk-vb3sy3hv.js +39 -0
  458. package/web/chunk-vb3sy3hv.js.br +0 -0
  459. package/web/chunk-vb3sy3hv.js.gz +0 -0
  460. package/web/chunk-vgpyff03.js +41 -0
  461. package/web/chunk-vgpyff03.js.br +0 -0
  462. package/web/chunk-vgpyff03.js.gz +0 -0
  463. package/web/chunk-vmpry714.js +1 -0
  464. package/web/chunk-vmpry714.js.br +0 -0
  465. package/web/chunk-vmpry714.js.gz +0 -0
  466. package/web/chunk-vrtdjg91.js +1 -0
  467. package/web/chunk-vrtdjg91.js.br +0 -0
  468. package/web/chunk-vrtdjg91.js.gz +0 -0
  469. package/web/chunk-vx6qbmd7.js +2 -0
  470. package/web/chunk-vx6qbmd7.js.br +0 -0
  471. package/web/chunk-vx6qbmd7.js.gz +0 -0
  472. package/web/chunk-w563538j.js +370 -0
  473. package/web/chunk-w563538j.js.br +0 -0
  474. package/web/chunk-w563538j.js.gz +0 -0
  475. package/web/chunk-w71t7mes.js +1 -0
  476. package/web/chunk-w71t7mes.js.br +0 -0
  477. package/web/chunk-w71t7mes.js.gz +0 -0
  478. package/web/chunk-w96etr1w.js +1 -0
  479. package/web/chunk-w96etr1w.js.br +0 -0
  480. package/web/chunk-w96etr1w.js.gz +0 -0
  481. package/web/chunk-wrqazg2v.js +2 -0
  482. package/web/chunk-wrqazg2v.js.br +0 -0
  483. package/web/chunk-wrqazg2v.js.gz +0 -0
  484. package/web/chunk-ww5c1dmz.js +1 -0
  485. package/web/chunk-ww5c1dmz.js.br +0 -0
  486. package/web/chunk-ww5c1dmz.js.gz +0 -0
  487. package/web/chunk-xsyrxa45.js +2 -0
  488. package/web/chunk-xsyrxa45.js.br +0 -0
  489. package/web/chunk-xsyrxa45.js.gz +0 -0
  490. package/web/chunk-xv1d350x.js +1 -0
  491. package/web/chunk-xv1d350x.js.br +0 -0
  492. package/web/chunk-xv1d350x.js.gz +0 -0
  493. package/web/chunk-xw8tzrmm.js +1135 -0
  494. package/web/chunk-xw8tzrmm.js.br +0 -0
  495. package/web/chunk-xw8tzrmm.js.gz +0 -0
  496. package/web/chunk-xwsh4jx7.js +1 -0
  497. package/web/chunk-xwsh4jx7.js.br +2 -0
  498. package/web/chunk-xwsh4jx7.js.gz +0 -0
  499. package/web/chunk-xxk7xkrs.js +1 -0
  500. package/web/chunk-xxk7xkrs.js.br +0 -0
  501. package/web/chunk-xxk7xkrs.js.gz +0 -0
  502. package/web/chunk-y5zd05mz.js +40 -0
  503. package/web/chunk-y5zd05mz.js.br +0 -0
  504. package/web/chunk-y5zd05mz.js.gz +0 -0
  505. package/web/chunk-yg9a23mv.js +1 -0
  506. package/web/chunk-yg9a23mv.js.br +0 -0
  507. package/web/chunk-yg9a23mv.js.gz +0 -0
  508. package/web/chunk-ygzgrjj7.js +7 -0
  509. package/web/chunk-ygzgrjj7.js.br +0 -0
  510. package/web/chunk-ygzgrjj7.js.gz +0 -0
  511. package/web/chunk-yj85fg74.js +1 -0
  512. package/web/chunk-yj85fg74.js.br +0 -0
  513. package/web/chunk-yj85fg74.js.gz +0 -0
  514. package/web/chunk-yjvjzayn.js +1 -0
  515. package/web/chunk-yjvjzayn.js.br +0 -0
  516. package/web/chunk-yjvjzayn.js.gz +0 -0
  517. package/web/chunk-yp75a6yh.js +4 -0
  518. package/web/chunk-yp75a6yh.js.br +0 -0
  519. package/web/chunk-yp75a6yh.js.gz +0 -0
  520. package/web/chunk-yygayy5a.js +1 -0
  521. package/web/chunk-yygayy5a.js.br +0 -0
  522. package/web/chunk-yygayy5a.js.gz +0 -0
  523. package/web/chunk-za5j3w7x.js +2 -0
  524. package/web/chunk-za5j3w7x.js.br +0 -0
  525. package/web/chunk-za5j3w7x.js.gz +0 -0
  526. package/web/chunk-zs7c2db4.js +1 -0
  527. package/web/chunk-zs7c2db4.js.br +0 -0
  528. package/web/chunk-zs7c2db4.js.gz +0 -0
  529. package/web/chunk-zsae1tn8.js +98 -0
  530. package/web/chunk-zsae1tn8.js.br +0 -0
  531. package/web/chunk-zsae1tn8.js.gz +0 -0
  532. package/web/index.html +1 -1
  533. package/web/index.html.br +0 -0
  534. package/web/index.html.gz +0 -0
  535. package/worker.js +1 -1
  536. package/chunk-09tdbx7b.js +0 -3
  537. package/chunk-0b2brwjc.js +0 -3
  538. package/chunk-0rsyawz5.js +0 -8
  539. package/chunk-16yz5ebn.js +0 -2
  540. package/chunk-1kdd7xry.js +0 -2
  541. package/chunk-1td9hjn9.js +0 -25
  542. package/chunk-1xjkzzyh.js +0 -3
  543. package/chunk-38932kzp.js +0 -3
  544. package/chunk-3qxq264t.js +0 -2
  545. package/chunk-3s8rpc1w.js +0 -3
  546. package/chunk-4fbj3k59.js +0 -3
  547. package/chunk-5415fcz7.js +0 -10
  548. package/chunk-5kezbmgw.js +0 -3
  549. package/chunk-5m51j40e.js +0 -7
  550. package/chunk-5mt8xxex.js +0 -3
  551. package/chunk-5ph58x6w.js +0 -39
  552. package/chunk-6jdqe7sz.js +0 -4
  553. package/chunk-6ztgzx9s.js +0 -2
  554. package/chunk-7dzcdpdt.js +0 -2
  555. package/chunk-82djd5fk.js +0 -3
  556. package/chunk-86vhsd3y.js +0 -31
  557. package/chunk-8rfv9mm1.js +0 -15
  558. package/chunk-8tvz5ht1.js +0 -16
  559. package/chunk-9pjmwz01.js +0 -2
  560. package/chunk-9qzyn98b.js +0 -3
  561. package/chunk-9w1m9av8.js +0 -11
  562. package/chunk-9wjd9bxm.js +0 -2
  563. package/chunk-a3fpx924.js +0 -3
  564. package/chunk-b49005n2.js +0 -471
  565. package/chunk-bdz2561d.js +0 -2
  566. package/chunk-bkvhwgeb.js +0 -3
  567. package/chunk-bp9tfav3.js +0 -2
  568. package/chunk-cc9htxzx.js +0 -3557
  569. package/chunk-cr0tqn6j.js +0 -3
  570. package/chunk-cv5kdnsw.js +0 -3
  571. package/chunk-d79s1s4t.js +0 -25
  572. package/chunk-e0ytnnwt.js +0 -3
  573. package/chunk-e2m8ap8f.js +0 -3
  574. package/chunk-ec6bzt7w.js +0 -20
  575. package/chunk-enmrpjpt.js +0 -3
  576. package/chunk-eq54cmsa.js +0 -4
  577. package/chunk-fj56fznw.js +0 -3
  578. package/chunk-g54nd4fd.js +0 -5
  579. package/chunk-g8p5c4vx.js +0 -7
  580. package/chunk-g9bemxpt.js +0 -3
  581. package/chunk-gs5aebwh.js +0 -2
  582. package/chunk-hk5p2eee.js +0 -12
  583. package/chunk-jerp4pj5.js +0 -2
  584. package/chunk-jsvqp20s.js +0 -2
  585. package/chunk-k9x1r69s.js +0 -18
  586. package/chunk-kb526065.js +0 -2
  587. package/chunk-kpw1qa2n.js +0 -11
  588. package/chunk-mbvy2t23.js +0 -2
  589. package/chunk-mmnsdje8.js +0 -390
  590. package/chunk-nffwakxq.js +0 -2
  591. package/chunk-nfj8sj53.js +0 -2
  592. package/chunk-pzwaz2ew.js +0 -5
  593. package/chunk-qtgc74er.js +0 -5
  594. package/chunk-qtrd33pp.js +0 -7
  595. package/chunk-rbk6jxcr.js +0 -2
  596. package/chunk-rpbxbb92.js +0 -10
  597. package/chunk-rx812nrp.js +0 -3
  598. package/chunk-scy1p7x2.js +0 -9
  599. package/chunk-sfgw0vmt.js +0 -2
  600. package/chunk-t3mq64c8.js +0 -3
  601. package/chunk-tmefdwxy.js +0 -2
  602. package/chunk-tvg54x0x.js +0 -2
  603. package/chunk-v878x8zr.js +0 -7
  604. package/chunk-v89f2k9b.js +0 -2
  605. package/chunk-vhe16b65.js +0 -3
  606. package/chunk-vzrmdaba.js +0 -2
  607. package/chunk-w3skxmvx.js +0 -3
  608. package/chunk-w4kasz4j.js +0 -12
  609. package/chunk-w4zkgn1c.js +0 -4
  610. package/chunk-we5emq6f.js +0 -2
  611. package/chunk-x0dcabw6.js +0 -3
  612. package/chunk-xtj7b70y.js +0 -5
  613. package/chunk-xwew53k7.js +0 -59
  614. package/chunk-xyhr89y5.js +0 -3
  615. package/chunk-yce46csn.js +0 -2
  616. package/chunk-yetcb1z9.js +0 -3
  617. package/chunk-ypmpf75h.js +0 -2
  618. package/chunk-zkjnt298.js +0 -3
  619. package/chunk-zz48zvk5.js +0 -2
  620. package/web/chunk-04c54f1s.js +0 -1
  621. package/web/chunk-04c54f1s.js.br +0 -2
  622. package/web/chunk-04c54f1s.js.gz +0 -0
  623. package/web/chunk-04m1cb8w.js +0 -1
  624. package/web/chunk-04m1cb8w.js.br +0 -0
  625. package/web/chunk-04m1cb8w.js.gz +0 -0
  626. package/web/chunk-08z6mkgz.js +0 -40
  627. package/web/chunk-08z6mkgz.js.br +0 -0
  628. package/web/chunk-08z6mkgz.js.gz +0 -0
  629. package/web/chunk-0g9m3rpw.js +0 -55
  630. package/web/chunk-0g9m3rpw.js.br +0 -0
  631. package/web/chunk-0g9m3rpw.js.gz +0 -0
  632. package/web/chunk-0jccrdw3.js +0 -2
  633. package/web/chunk-0jccrdw3.js.br +0 -0
  634. package/web/chunk-0jccrdw3.js.gz +0 -0
  635. package/web/chunk-0rvx1z2b.js +0 -1
  636. package/web/chunk-0rvx1z2b.js.br +0 -0
  637. package/web/chunk-0rvx1z2b.js.gz +0 -0
  638. package/web/chunk-0vweazdh.js +0 -12
  639. package/web/chunk-0vweazdh.js.br +0 -0
  640. package/web/chunk-0vweazdh.js.gz +0 -0
  641. package/web/chunk-0wqmwnd8.js +0 -2
  642. package/web/chunk-0wqmwnd8.js.br +0 -0
  643. package/web/chunk-0wqmwnd8.js.gz +0 -0
  644. package/web/chunk-0z10aqp1.js +0 -2
  645. package/web/chunk-0z10aqp1.js.br +0 -0
  646. package/web/chunk-0z10aqp1.js.gz +0 -0
  647. package/web/chunk-12vcrj7y.js +0 -1
  648. package/web/chunk-12vcrj7y.js.br +0 -0
  649. package/web/chunk-12vcrj7y.js.gz +0 -0
  650. package/web/chunk-1vtf555r.js +0 -1
  651. package/web/chunk-1vtf555r.js.br +0 -0
  652. package/web/chunk-1vtf555r.js.gz +0 -0
  653. package/web/chunk-29z0ft67.js +0 -370
  654. package/web/chunk-29z0ft67.js.br +0 -0
  655. package/web/chunk-29z0ft67.js.gz +0 -0
  656. package/web/chunk-2q3m4btb.js +0 -1
  657. package/web/chunk-2q3m4btb.js.br +0 -0
  658. package/web/chunk-2q3m4btb.js.gz +0 -0
  659. package/web/chunk-2s6fhjjc.js +0 -1134
  660. package/web/chunk-2s6fhjjc.js.br +0 -0
  661. package/web/chunk-2s6fhjjc.js.gz +0 -0
  662. package/web/chunk-2vdx4ykn.js +0 -139
  663. package/web/chunk-2vdx4ykn.js.br +0 -0
  664. package/web/chunk-2vdx4ykn.js.gz +0 -0
  665. package/web/chunk-2zgqe8r7.js +0 -1
  666. package/web/chunk-2zgqe8r7.js.br +0 -0
  667. package/web/chunk-2zgqe8r7.js.gz +0 -0
  668. package/web/chunk-366a11ec.js +0 -1
  669. package/web/chunk-366a11ec.js.br +0 -0
  670. package/web/chunk-366a11ec.js.gz +0 -0
  671. package/web/chunk-3kqpmg83.js +0 -78
  672. package/web/chunk-3kqpmg83.js.br +0 -0
  673. package/web/chunk-3kqpmg83.js.gz +0 -0
  674. package/web/chunk-3rmqxna0.js +0 -1
  675. package/web/chunk-3rmqxna0.js.br +0 -0
  676. package/web/chunk-3rmqxna0.js.gz +0 -0
  677. package/web/chunk-3xmv2349.js +0 -21
  678. package/web/chunk-3xmv2349.js.br +0 -0
  679. package/web/chunk-3xmv2349.js.gz +0 -0
  680. package/web/chunk-46cdys11.js +0 -34
  681. package/web/chunk-46cdys11.js.br +0 -0
  682. package/web/chunk-46cdys11.js.gz +0 -0
  683. package/web/chunk-46mw23f0.js +0 -8
  684. package/web/chunk-46mw23f0.js.br +0 -0
  685. package/web/chunk-46mw23f0.js.gz +0 -0
  686. package/web/chunk-4mypk63p.js +0 -2
  687. package/web/chunk-4mypk63p.js.br +0 -0
  688. package/web/chunk-4mypk63p.js.gz +0 -0
  689. package/web/chunk-4r0dvjrr.js +0 -2
  690. package/web/chunk-4r0dvjrr.js.br +0 -0
  691. package/web/chunk-4r0dvjrr.js.gz +0 -0
  692. package/web/chunk-4v6m84pg.js +0 -3
  693. package/web/chunk-4v6m84pg.js.br +0 -0
  694. package/web/chunk-4v6m84pg.js.gz +0 -0
  695. package/web/chunk-4wd9r73y.js +0 -1
  696. package/web/chunk-4wd9r73y.js.br +0 -0
  697. package/web/chunk-4wd9r73y.js.gz +0 -0
  698. package/web/chunk-4ye31s2w.js +0 -1
  699. package/web/chunk-4ye31s2w.js.br +0 -4
  700. package/web/chunk-4ye31s2w.js.gz +0 -0
  701. package/web/chunk-52tt9qt4.js +0 -2
  702. package/web/chunk-52tt9qt4.js.br +0 -0
  703. package/web/chunk-52tt9qt4.js.gz +0 -0
  704. package/web/chunk-5cp4n5ck.js +0 -2
  705. package/web/chunk-5cp4n5ck.js.br +0 -0
  706. package/web/chunk-5cp4n5ck.js.gz +0 -0
  707. package/web/chunk-5kavsn22.js +0 -4
  708. package/web/chunk-5kavsn22.js.br +0 -0
  709. package/web/chunk-5kavsn22.js.gz +0 -0
  710. package/web/chunk-5q2h4tg8.js +0 -2
  711. package/web/chunk-5q2h4tg8.js.br +0 -4
  712. package/web/chunk-5q2h4tg8.js.gz +0 -0
  713. package/web/chunk-5tbk6dx6.js +0 -292
  714. package/web/chunk-5tbk6dx6.js.br +0 -0
  715. package/web/chunk-5tbk6dx6.js.gz +0 -0
  716. package/web/chunk-5yb0sm1r.js +0 -1
  717. package/web/chunk-5yb0sm1r.js.br +0 -0
  718. package/web/chunk-5yb0sm1r.js.gz +0 -0
  719. package/web/chunk-5yz46tjw.js +0 -2
  720. package/web/chunk-5yz46tjw.js.br +0 -0
  721. package/web/chunk-5yz46tjw.js.gz +0 -0
  722. package/web/chunk-619a8t38.js +0 -1
  723. package/web/chunk-619a8t38.js.br +0 -0
  724. package/web/chunk-619a8t38.js.gz +0 -0
  725. package/web/chunk-6areryyn.js +0 -2
  726. package/web/chunk-6areryyn.js.br +0 -0
  727. package/web/chunk-6areryyn.js.gz +0 -0
  728. package/web/chunk-6ms78sx5.js +0 -1
  729. package/web/chunk-6ms78sx5.js.br +0 -0
  730. package/web/chunk-6ms78sx5.js.gz +0 -0
  731. package/web/chunk-6ts9mtye.js +0 -2
  732. package/web/chunk-6ts9mtye.js.br +0 -0
  733. package/web/chunk-6ts9mtye.js.gz +0 -0
  734. package/web/chunk-79whhay2.js +0 -2
  735. package/web/chunk-79whhay2.js.br +0 -0
  736. package/web/chunk-79whhay2.js.gz +0 -0
  737. package/web/chunk-7cf1kk45.js +0 -1
  738. package/web/chunk-7cf1kk45.js.br +0 -2
  739. package/web/chunk-7cf1kk45.js.gz +0 -0
  740. package/web/chunk-7n1abr86.js +0 -1
  741. package/web/chunk-7n1abr86.js.br +0 -0
  742. package/web/chunk-7n1abr86.js.gz +0 -0
  743. package/web/chunk-7qxfx983.js +0 -1
  744. package/web/chunk-7qxfx983.js.br +0 -0
  745. package/web/chunk-7qxfx983.js.gz +0 -0
  746. package/web/chunk-89crtpnw.js +0 -1
  747. package/web/chunk-89crtpnw.js.br +0 -0
  748. package/web/chunk-89crtpnw.js.gz +0 -0
  749. package/web/chunk-8g239029.js +0 -1
  750. package/web/chunk-8g239029.js.br +0 -0
  751. package/web/chunk-8g239029.js.gz +0 -0
  752. package/web/chunk-91k30q92.js +0 -1
  753. package/web/chunk-91k30q92.js.br +0 -0
  754. package/web/chunk-91k30q92.js.gz +0 -0
  755. package/web/chunk-91nyvkrb.js +0 -324
  756. package/web/chunk-91nyvkrb.js.br +0 -0
  757. package/web/chunk-91nyvkrb.js.gz +0 -0
  758. package/web/chunk-9mbr6znb.js +0 -1
  759. package/web/chunk-9mbr6znb.js.br +0 -0
  760. package/web/chunk-9mbr6znb.js.gz +0 -0
  761. package/web/chunk-9mvw6a5v.js +0 -7
  762. package/web/chunk-9mvw6a5v.js.br +0 -0
  763. package/web/chunk-9mvw6a5v.js.gz +0 -0
  764. package/web/chunk-9r7nbre7.js +0 -2
  765. package/web/chunk-9r7nbre7.js.br +0 -0
  766. package/web/chunk-9r7nbre7.js.gz +0 -0
  767. package/web/chunk-9y9nwaqj.js +0 -1
  768. package/web/chunk-9y9nwaqj.js.br +0 -0
  769. package/web/chunk-9y9nwaqj.js.gz +0 -0
  770. package/web/chunk-a6hdn8tb.js +0 -169
  771. package/web/chunk-a6hdn8tb.js.br +0 -0
  772. package/web/chunk-a6hdn8tb.js.gz +0 -0
  773. package/web/chunk-ad6x47yy.js +0 -1
  774. package/web/chunk-ad6x47yy.js.br +0 -0
  775. package/web/chunk-ad6x47yy.js.gz +0 -0
  776. package/web/chunk-ar6m9fza.js +0 -7
  777. package/web/chunk-ar6m9fza.js.br +0 -0
  778. package/web/chunk-ar6m9fza.js.gz +0 -0
  779. package/web/chunk-ayqakyyq.js +0 -1
  780. package/web/chunk-ayqakyyq.js.br +0 -0
  781. package/web/chunk-ayqakyyq.js.gz +0 -0
  782. package/web/chunk-cc6hn5xv.js +0 -2
  783. package/web/chunk-cc6hn5xv.js.br +0 -0
  784. package/web/chunk-cc6hn5xv.js.gz +0 -0
  785. package/web/chunk-ccymg1hp.js +0 -1
  786. package/web/chunk-ccymg1hp.js.br +0 -0
  787. package/web/chunk-ccymg1hp.js.gz +0 -0
  788. package/web/chunk-cg9fe42b.js +0 -89
  789. package/web/chunk-cg9fe42b.js.br +0 -0
  790. package/web/chunk-cg9fe42b.js.gz +0 -0
  791. package/web/chunk-cmcgmf94.js +0 -1
  792. package/web/chunk-cmcgmf94.js.br +0 -0
  793. package/web/chunk-cmcgmf94.js.gz +0 -0
  794. package/web/chunk-cnbbvd6n.js +0 -1
  795. package/web/chunk-cnbbvd6n.js.br +0 -0
  796. package/web/chunk-cnbbvd6n.js.gz +0 -0
  797. package/web/chunk-cxp2nbtc.js +0 -106
  798. package/web/chunk-cxp2nbtc.js.br +0 -0
  799. package/web/chunk-cxp2nbtc.js.gz +0 -0
  800. package/web/chunk-d18r4m14.js +0 -141
  801. package/web/chunk-d18r4m14.js.br +0 -0
  802. package/web/chunk-d18r4m14.js.gz +0 -0
  803. package/web/chunk-dj2b64aj.js +0 -1
  804. package/web/chunk-dj2b64aj.js.br +0 -0
  805. package/web/chunk-dj2b64aj.js.gz +0 -0
  806. package/web/chunk-dmqtdeb4.js +0 -1
  807. package/web/chunk-dmqtdeb4.js.br +0 -0
  808. package/web/chunk-dmqtdeb4.js.gz +0 -0
  809. package/web/chunk-dsga6rp3.js +0 -1
  810. package/web/chunk-dsga6rp3.js.br +0 -0
  811. package/web/chunk-dsga6rp3.js.gz +0 -0
  812. package/web/chunk-e65y60v1.js +0 -2
  813. package/web/chunk-e65y60v1.js.br +0 -0
  814. package/web/chunk-e65y60v1.js.gz +0 -0
  815. package/web/chunk-ed8qqn45.js +0 -2
  816. package/web/chunk-ed8qqn45.js.br +0 -0
  817. package/web/chunk-ed8qqn45.js.gz +0 -0
  818. package/web/chunk-ef1h0tt7.js +0 -2
  819. package/web/chunk-ef1h0tt7.js.br +0 -0
  820. package/web/chunk-ef1h0tt7.js.gz +0 -0
  821. package/web/chunk-ek6q6a08.js +0 -1
  822. package/web/chunk-ek6q6a08.js.br +0 -2
  823. package/web/chunk-ek6q6a08.js.gz +0 -0
  824. package/web/chunk-et1nm6h1.js +0 -142
  825. package/web/chunk-et1nm6h1.js.br +0 -0
  826. package/web/chunk-et1nm6h1.js.gz +0 -0
  827. package/web/chunk-f1016wh6.js +0 -1
  828. package/web/chunk-f1016wh6.js.br +0 -0
  829. package/web/chunk-f1016wh6.js.gz +0 -0
  830. package/web/chunk-f42mwg61.js +0 -1
  831. package/web/chunk-f42mwg61.js.br +0 -0
  832. package/web/chunk-f42mwg61.js.gz +0 -0
  833. package/web/chunk-fk35d3bz.js +0 -332
  834. package/web/chunk-fk35d3bz.js.br +0 -0
  835. package/web/chunk-fk35d3bz.js.gz +0 -0
  836. package/web/chunk-fpwztdhn.js +0 -39
  837. package/web/chunk-fpwztdhn.js.br +0 -0
  838. package/web/chunk-fpwztdhn.js.gz +0 -0
  839. package/web/chunk-g30nqfka.js +0 -2
  840. package/web/chunk-g30nqfka.js.br +0 -0
  841. package/web/chunk-g30nqfka.js.gz +0 -0
  842. package/web/chunk-g3vbtxgy.js +0 -2
  843. package/web/chunk-g3vbtxgy.js.br +0 -0
  844. package/web/chunk-g3vbtxgy.js.gz +0 -0
  845. package/web/chunk-gbwy4pfg.css +0 -1
  846. package/web/chunk-gbwy4pfg.css.br +0 -0
  847. package/web/chunk-gbwy4pfg.css.gz +0 -0
  848. package/web/chunk-gepgx19m.js +0 -200
  849. package/web/chunk-gepgx19m.js.br +0 -0
  850. package/web/chunk-gepgx19m.js.gz +0 -0
  851. package/web/chunk-grz69q28.js +0 -36
  852. package/web/chunk-grz69q28.js.br +0 -0
  853. package/web/chunk-grz69q28.js.gz +0 -0
  854. package/web/chunk-gt62acsh.js +0 -2
  855. package/web/chunk-gt62acsh.js.br +0 -0
  856. package/web/chunk-gt62acsh.js.gz +0 -0
  857. package/web/chunk-h28xrvmg.js +0 -41
  858. package/web/chunk-h28xrvmg.js.br +0 -0
  859. package/web/chunk-h28xrvmg.js.gz +0 -0
  860. package/web/chunk-h80ypke7.js +0 -2
  861. package/web/chunk-h80ypke7.js.br +0 -0
  862. package/web/chunk-h80ypke7.js.gz +0 -0
  863. package/web/chunk-hj067dfg.js +0 -1
  864. package/web/chunk-hj067dfg.js.br +0 -2
  865. package/web/chunk-hj067dfg.js.gz +0 -0
  866. package/web/chunk-hp167dbv.js +0 -1
  867. package/web/chunk-hp167dbv.js.br +0 -0
  868. package/web/chunk-hp167dbv.js.gz +0 -0
  869. package/web/chunk-j4942vkb.js +0 -1
  870. package/web/chunk-j4942vkb.js.br +0 -0
  871. package/web/chunk-j4942vkb.js.gz +0 -0
  872. package/web/chunk-k1cd6e24.js +0 -1
  873. package/web/chunk-k1cd6e24.js.br +0 -0
  874. package/web/chunk-k1cd6e24.js.gz +0 -0
  875. package/web/chunk-k1d0y72z.js +0 -2
  876. package/web/chunk-k1d0y72z.js.br +0 -0
  877. package/web/chunk-k1d0y72z.js.gz +0 -0
  878. package/web/chunk-k9248573.js +0 -1
  879. package/web/chunk-k9248573.js.br +0 -0
  880. package/web/chunk-k9248573.js.gz +0 -0
  881. package/web/chunk-kh0xyffx.js +0 -1
  882. package/web/chunk-kh0xyffx.js.br +0 -0
  883. package/web/chunk-kh0xyffx.js.gz +0 -0
  884. package/web/chunk-kqgn9dsa.js +0 -7
  885. package/web/chunk-kqgn9dsa.js.br +0 -0
  886. package/web/chunk-kqgn9dsa.js.gz +0 -0
  887. package/web/chunk-kqngpw5m.js +0 -1
  888. package/web/chunk-kqngpw5m.js.br +0 -0
  889. package/web/chunk-kqngpw5m.js.gz +0 -0
  890. package/web/chunk-ktvxgxsd.js +0 -2
  891. package/web/chunk-ktvxgxsd.js.br +0 -0
  892. package/web/chunk-ktvxgxsd.js.gz +0 -0
  893. package/web/chunk-kzj105r1.js +0 -217
  894. package/web/chunk-kzj105r1.js.br +0 -0
  895. package/web/chunk-kzj105r1.js.gz +0 -0
  896. package/web/chunk-m14v2en1.js +0 -1
  897. package/web/chunk-m14v2en1.js.br +0 -0
  898. package/web/chunk-m14v2en1.js.gz +0 -0
  899. package/web/chunk-m34et8g4.js +0 -2
  900. package/web/chunk-m34et8g4.js.br +0 -0
  901. package/web/chunk-m34et8g4.js.gz +0 -0
  902. package/web/chunk-md1f6gmk.js +0 -1
  903. package/web/chunk-md1f6gmk.js.br +0 -0
  904. package/web/chunk-md1f6gmk.js.gz +0 -0
  905. package/web/chunk-n05xf20n.js +0 -98
  906. package/web/chunk-n05xf20n.js.br +0 -0
  907. package/web/chunk-n05xf20n.js.gz +0 -0
  908. package/web/chunk-n2k1gd6n.js +0 -84
  909. package/web/chunk-n2k1gd6n.js.br +0 -0
  910. package/web/chunk-n2k1gd6n.js.gz +0 -0
  911. package/web/chunk-n419cees.js +0 -1
  912. package/web/chunk-n419cees.js.br +0 -0
  913. package/web/chunk-n419cees.js.gz +0 -0
  914. package/web/chunk-n45fgfyt.js +0 -1
  915. package/web/chunk-n45fgfyt.js.br +0 -2
  916. package/web/chunk-n45fgfyt.js.gz +0 -0
  917. package/web/chunk-n5v71fas.js +0 -2
  918. package/web/chunk-n5v71fas.js.br +0 -0
  919. package/web/chunk-n5v71fas.js.gz +0 -0
  920. package/web/chunk-nm8yza3v.js +0 -140
  921. package/web/chunk-nm8yza3v.js.br +0 -0
  922. package/web/chunk-nm8yza3v.js.gz +0 -0
  923. package/web/chunk-nzey7cpv.js +0 -1
  924. package/web/chunk-nzey7cpv.js.br +0 -0
  925. package/web/chunk-nzey7cpv.js.gz +0 -0
  926. package/web/chunk-p76f6cf4.js +0 -2
  927. package/web/chunk-p76f6cf4.js.br +0 -0
  928. package/web/chunk-p76f6cf4.js.gz +0 -0
  929. package/web/chunk-pbg9rdwv.js +0 -1
  930. package/web/chunk-pbg9rdwv.js.br +0 -2
  931. package/web/chunk-pbg9rdwv.js.gz +0 -0
  932. package/web/chunk-qgtqwmkb.js +0 -1
  933. package/web/chunk-qgtqwmkb.js.br +0 -2
  934. package/web/chunk-qgtqwmkb.js.gz +0 -0
  935. package/web/chunk-qj9nd038.js +0 -1
  936. package/web/chunk-qj9nd038.js.br +0 -0
  937. package/web/chunk-qj9nd038.js.gz +0 -0
  938. package/web/chunk-qjaex9c0.js +0 -1
  939. package/web/chunk-qjaex9c0.js.br +0 -2
  940. package/web/chunk-qjaex9c0.js.gz +0 -0
  941. package/web/chunk-qq79vsm8.js +0 -70
  942. package/web/chunk-qq79vsm8.js.br +0 -0
  943. package/web/chunk-qq79vsm8.js.gz +0 -0
  944. package/web/chunk-qs5wnwd6.js +0 -30
  945. package/web/chunk-qs5wnwd6.js.br +0 -0
  946. package/web/chunk-qs5wnwd6.js.gz +0 -0
  947. package/web/chunk-qygjhm63.js +0 -1
  948. package/web/chunk-qygjhm63.js.br +0 -0
  949. package/web/chunk-qygjhm63.js.gz +0 -0
  950. package/web/chunk-r1dnh0s8.js +0 -1
  951. package/web/chunk-r1dnh0s8.js.br +0 -0
  952. package/web/chunk-r1dnh0s8.js.gz +0 -0
  953. package/web/chunk-r381n550.js +0 -1
  954. package/web/chunk-r381n550.js.br +0 -0
  955. package/web/chunk-r381n550.js.gz +0 -0
  956. package/web/chunk-r48vazdm.js +0 -291
  957. package/web/chunk-r48vazdm.js.br +0 -0
  958. package/web/chunk-r48vazdm.js.gz +0 -0
  959. package/web/chunk-r55seq42.js +0 -24
  960. package/web/chunk-r55seq42.js.br +0 -0
  961. package/web/chunk-r55seq42.js.gz +0 -0
  962. package/web/chunk-r5eakmw6.js +0 -1
  963. package/web/chunk-r5eakmw6.js.br +0 -0
  964. package/web/chunk-r5eakmw6.js.gz +0 -0
  965. package/web/chunk-r79zekav.js +0 -1
  966. package/web/chunk-r79zekav.js.br +0 -0
  967. package/web/chunk-r79zekav.js.gz +0 -0
  968. package/web/chunk-r8qyvcks.js +0 -89
  969. package/web/chunk-r8qyvcks.js.br +0 -0
  970. package/web/chunk-r8qyvcks.js.gz +0 -0
  971. package/web/chunk-r9dt0730.js +0 -1
  972. package/web/chunk-r9dt0730.js.br +0 -0
  973. package/web/chunk-r9dt0730.js.gz +0 -0
  974. package/web/chunk-rfsg5rke.js +0 -1
  975. package/web/chunk-rfsg5rke.js.br +0 -2
  976. package/web/chunk-rfsg5rke.js.gz +0 -0
  977. package/web/chunk-rpjzwknn.js +0 -1
  978. package/web/chunk-rpjzwknn.js.br +0 -0
  979. package/web/chunk-rpjzwknn.js.gz +0 -0
  980. package/web/chunk-s7h50avx.js +0 -2
  981. package/web/chunk-s7h50avx.js.br +0 -0
  982. package/web/chunk-s7h50avx.js.gz +0 -0
  983. package/web/chunk-sk3065js.js +0 -62
  984. package/web/chunk-sk3065js.js.br +0 -0
  985. package/web/chunk-sk3065js.js.gz +0 -0
  986. package/web/chunk-sk47kk5j.js +0 -1
  987. package/web/chunk-sk47kk5j.js.br +0 -0
  988. package/web/chunk-sk47kk5j.js.gz +0 -0
  989. package/web/chunk-smywa1zw.js +0 -2
  990. package/web/chunk-smywa1zw.js.br +0 -0
  991. package/web/chunk-smywa1zw.js.gz +0 -0
  992. package/web/chunk-t6agpn2z.js +0 -1
  993. package/web/chunk-t6agpn2z.js.br +0 -0
  994. package/web/chunk-t6agpn2z.js.gz +0 -0
  995. package/web/chunk-t9heac9a.js +0 -2
  996. package/web/chunk-t9heac9a.js.br +0 -0
  997. package/web/chunk-t9heac9a.js.gz +0 -0
  998. package/web/chunk-trssyq9a.js +0 -1
  999. package/web/chunk-trssyq9a.js.br +0 -0
  1000. package/web/chunk-trssyq9a.js.gz +0 -0
  1001. package/web/chunk-v329f8df.js +0 -24
  1002. package/web/chunk-v329f8df.js.br +0 -0
  1003. package/web/chunk-v329f8df.js.gz +0 -0
  1004. package/web/chunk-vb2feptd.js +0 -2
  1005. package/web/chunk-vb2feptd.js.br +0 -0
  1006. package/web/chunk-vb2feptd.js.gz +0 -0
  1007. package/web/chunk-vff33vj3.js +0 -1
  1008. package/web/chunk-vff33vj3.js.br +0 -2
  1009. package/web/chunk-vff33vj3.js.gz +0 -0
  1010. package/web/chunk-w9adyaze.js +0 -16
  1011. package/web/chunk-w9adyaze.js.br +0 -0
  1012. package/web/chunk-w9adyaze.js.gz +0 -0
  1013. package/web/chunk-wgc8z5jv.js +0 -1
  1014. package/web/chunk-wgc8z5jv.js.br +0 -0
  1015. package/web/chunk-wgc8z5jv.js.gz +0 -0
  1016. package/web/chunk-wvdk3w03.js +0 -2
  1017. package/web/chunk-wvdk3w03.js.br +0 -0
  1018. package/web/chunk-wvdk3w03.js.gz +0 -0
  1019. package/web/chunk-wvvrdqgb.js +0 -1
  1020. package/web/chunk-wvvrdqgb.js.br +0 -2
  1021. package/web/chunk-wvvrdqgb.js.gz +0 -0
  1022. package/web/chunk-wxmaw4ht.js +0 -1
  1023. package/web/chunk-wxmaw4ht.js.br +0 -0
  1024. package/web/chunk-wxmaw4ht.js.gz +0 -0
  1025. package/web/chunk-x19jdqnt.js +0 -38
  1026. package/web/chunk-x19jdqnt.js.br +0 -0
  1027. package/web/chunk-x19jdqnt.js.gz +0 -0
  1028. package/web/chunk-x4153gx3.js +0 -214
  1029. package/web/chunk-x4153gx3.js.br +0 -0
  1030. package/web/chunk-x4153gx3.js.gz +0 -0
  1031. package/web/chunk-x7wmb5d3.js +0 -4
  1032. package/web/chunk-x7wmb5d3.js.br +0 -0
  1033. package/web/chunk-x7wmb5d3.js.gz +0 -0
  1034. package/web/chunk-xp2zpmpp.js +0 -303
  1035. package/web/chunk-xp2zpmpp.js.br +0 -0
  1036. package/web/chunk-xp2zpmpp.js.gz +0 -0
  1037. package/web/chunk-xp9tdb5t.js +0 -1
  1038. package/web/chunk-xp9tdb5t.js.br +0 -2
  1039. package/web/chunk-xp9tdb5t.js.gz +0 -0
  1040. package/web/chunk-y09v3sz7.js +0 -1
  1041. package/web/chunk-y09v3sz7.js.br +0 -0
  1042. package/web/chunk-y09v3sz7.js.gz +0 -0
  1043. package/web/chunk-y10hsdq4.js +0 -1
  1044. package/web/chunk-y10hsdq4.js.br +0 -0
  1045. package/web/chunk-y10hsdq4.js.gz +0 -0
  1046. package/web/chunk-ywmsxe5z.js +0 -99
  1047. package/web/chunk-ywmsxe5z.js.br +0 -0
  1048. package/web/chunk-ywmsxe5z.js.gz +0 -0
  1049. package/web/chunk-yzyxa823.js +0 -2
  1050. package/web/chunk-yzyxa823.js.br +0 -0
  1051. package/web/chunk-yzyxa823.js.gz +0 -0
  1052. package/web/chunk-z09emmrb.js +0 -1
  1053. package/web/chunk-z09emmrb.js.br +0 -0
  1054. package/web/chunk-z09emmrb.js.gz +0 -0
  1055. package/web/chunk-zwx48gb8.js +0 -120
  1056. package/web/chunk-zwx48gb8.js.br +0 -0
  1057. package/web/chunk-zwx48gb8.js.gz +0 -0
@@ -1,89 +0,0 @@
1
- import{t,a,He,S,j,G,A,u,Q}from"./chunk-xp2zpmpp.js";var M="",O="",D="",E=[],b=new Map,v=t((e)=>j(e,u()),"sanitizeText"),R=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(R)};case"choice":return{...e,alternatives:e.alternatives.map(R)};case"optional":return{...e,element:R(e.element)};case"repetition":return{...e,element:R(e.element),separator:e.separator?R(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),H=t(()=>{M="",O="",D="",E.length=0,b.clear(),A(),a.debug("[Railroad] Database cleared")},"clear"),Y=t((e)=>{M=v(e),a.debug("[Railroad] Title set:",e)},"setTitle"),P=t(()=>M,"getTitle"),q=t((e)=>{let n={...e,name:v(e.name),definition:R(e.definition),comment:e.comment?v(e.comment):void 0};if(a.debug("[Railroad] Adding rule:",n.name),b.has(n.name))a.warn(`[Railroad] Rule '${n.name}' is already defined. Overwriting.`);E.push(n),b.set(n.name,n)},"addRule"),U=t(()=>E,"getRules"),K=t((e)=>b.get(e),"getRule"),J=t((e)=>{O=v(e).replace(/^\s+/g,""),a.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=t(()=>O,"getAccTitle"),V=t((e)=>{D=v(e).replace(/\n\s+/g,`
2
- `),a.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=t(()=>D,"getAccDescription"),te=Y,re=P,he={clear:H,setTitle:Y,getTitle:P,addRule:q,getRules:U,getRule:K,setAccTitle:J,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"]),L=t((e)=>{if(!e)return!1;return Object.keys(e).every((n)=>n==="railroad"||ae.has(n))},"isRailroadStyleOptions"),oe=t((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return L(e)?e:{}},"extractRailroadOverrides"),le=t((e)=>{if(!e||L(e))return{};let{railroad:n,svgId:l,theme:i,look:r,...o}=e;return o},"extractThemeOverrides"),p=t((e,n)=>{if(typeof e!=="string")return n;let l=e.trim();return ie.test(l)?l:n},"sanitizeColorValue"),I=t((e,n)=>{if(typeof e!=="string")return n;let l=e.trim();return ne.test(l)?l:n},"sanitizeFontFamilyValue"),y=t((e,n)=>{let l=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(l)&&l>=0?l:n},"sanitizeNumberValue"),se=t((e)=>{let n=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>0?n:void 0},"parseThemeFontSize"),de=t((e)=>{let n=I(e.fontFamily,T.fontFamily),l=se(e.fontSize)??T.fontSize;return{...T,fontFamily:n,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"),W=t((e)=>{let n=S(),l={...He(),...n.themeVariables??{},...le(e)},i=de(l),r={...n.railroad??{},...oe(e)};return{compactMode:r.compactMode??i.compactMode,padding:y(r.padding,i.padding),verticalSeparation:y(r.verticalSeparation,i.verticalSeparation),horizontalSeparation:y(r.horizontalSeparation,i.horizontalSeparation),arcRadius:y(r.arcRadius,i.arcRadius),fontSize:y(r.fontSize,i.fontSize),fontFamily:I(r.fontFamily,i.fontFamily),terminalFill:p(r.terminalFill,i.terminalFill),terminalStroke:p(r.terminalStroke,i.terminalStroke),terminalTextColor:p(r.terminalTextColor,i.terminalTextColor),nonTerminalFill:p(r.nonTerminalFill,i.nonTerminalFill),nonTerminalStroke:p(r.nonTerminalStroke,i.nonTerminalStroke),nonTerminalTextColor:p(r.nonTerminalTextColor,i.nonTerminalTextColor),lineColor:p(r.lineColor,i.lineColor),strokeWidth:y(r.strokeWidth,i.strokeWidth),markerFill:p(r.markerFill,i.markerFill),commentFill:p(r.commentFill,i.commentFill),commentStroke:p(r.commentStroke,i.commentStroke),commentTextColor:p(r.commentTextColor,i.commentTextColor),specialFill:p(r.specialFill,i.specialFill),specialStroke:p(r.specialStroke,i.specialStroke),ruleNameColor:p(r.ruleNameColor,i.ruleNameColor),showMarkers:r.showMarkers??i.showMarkers,markerRadius:y(r.markerRadius,i.markerRadius)}},"buildRailroadStyleOptions"),Tn=t((e)=>{let{fontFamily:n,fontSize:l,terminalFill:i,terminalStroke:r,terminalTextColor:o,nonTerminalFill:g,nonTerminalStroke:c,nonTerminalTextColor:s,lineColor:f,strokeWidth:h,markerFill:m,commentFill:C,commentStroke:d,commentTextColor:x,specialFill:z,specialStroke:F,ruleNameColor:k}=W(e);return`
3
- .railroad-diagram {
4
- font-family: ${n};
5
- font-size: ${l}px;
6
- }
7
-
8
- .railroad-terminal rect {
9
- fill: ${i};
10
- stroke: ${r};
11
- stroke-width: ${h}px;
12
- }
13
-
14
- .railroad-terminal text {
15
- fill: ${o};
16
- font-family: ${n};
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: ${n};
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: ${n};
57
- font-size: ${l}px;
58
- text-anchor: middle;
59
- dominant-baseline: middle;
60
- }
61
-
62
- .railroad-special rect {
63
- fill: ${z};
64
- stroke: ${F};
65
- stroke-width: ${h}px;
66
- stroke-dasharray: 5,3;
67
- }
68
-
69
- .railroad-special text {
70
- fill: ${s};
71
- font-family: ${n};
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: ${n};
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,n){return this.d+=`M ${e} ${n} `,this}lineTo(e,n){return this.d+=`L ${e} ${n} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,n,l,i,r,o,g){return this.d+=`A ${e} ${n} ${l} ${i?1:0} ${r?1:0} ${o} ${g} `,this}build(){return this.d.trim()}},ce=class{constructor(e,n=W()){this.textCache=new Map,this.svg=e,this.config=n}static{t(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let n=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),l=n.node().getBBox(),i={width:l.width,height:l.height};return n.remove(),this.textCache.set(e,i),i}renderTerminal(e,n){let l=this.measureText(n),i=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",i).attr("height",r).attr("rx",10).attr("ry",10),o.append("text").attr("x",i/2).attr("y",r/2).text(n),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderNonTerminal(e,n){let l=this.measureText(n),i=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",i).attr("height",r),o.append("text").attr("x",i/2).attr("y",r/2).text(n),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderSequence(e,n){let l=n.map((s)=>this.renderExpression(e,s)),i=0,r=0,o=0;for(let s of l)i+=s.dimensions.width,r=Math.max(r,s.dimensions.up),o=Math.max(o,s.dimensions.down);i+=(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:i,height:r+o,up:r,down:o}}}renderChoice(e,n){let l=n.map((m)=>this.renderExpression(e,m)),i=0,r=0;for(let m of l)i=Math.max(i,m.dimensions.width),r+=m.dimensions.height;r+=(l.length-1)*this.config.verticalSeparation;let o=this.config.arcRadius,g=o*4,c=i+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+(i-m.dimensions.width)/2;s.node().appendChild(m.element).setAttribute("transform",`translate(${x}, ${C})`);let F=new w,k=d>h;if(d===h)F.moveTo(0,h).lineTo(x,d);else F.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",F.build());let N=new w,_=x+m.dimensions.width,X=c-o*2;if(d===h)N.moveTo(_,d).lineTo(c,h);else N.moveTo(_,d).lineTo(X,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",N.build()),f+=m.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:c,height:r,up:h,down:r-h}}}renderOptional(e,n){let l=this.renderExpression(e,n),i=this.config.arcRadius,r=i*2,o=l.dimensions.width+i*4,g=l.dimensions.height+r,c=e.append("g").attr("class","railroad-optional"),s=i*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(i*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(i,i,0,!1,!1,i,m-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,m-i).arcTo(i,i,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,n,l){let i=this.renderExpression(e,n),r=this.config.arcRadius,o=r*2,g=i.dimensions.width+r*4,c=l===0,s=i.dimensions.height+o+(c?o:0),f=e.append("g").attr("class","railroad-repetition"),h=r*2,m=c?o:0;f.node().appendChild(i.element).setAttribute("transform",`translate(${h}, ${m})`);let d=m+i.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+i.dimensions.width,d).lineTo(g,d).build());let x=m+i.dimensions.height+r,z=new w().moveTo(h+i.dimensions.width,d).arcTo(r,r,0,!1,!0,h+i.dimensions.width+r,d+r).lineTo(h+i.dimensions.width+r,x).arcTo(r,r,0,!1,!0,h+i.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",z.build()),c){let F=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",F.build())}return{element:f.node(),dimensions:{width:g,height:s,up:d,down:s-d}}}renderSpecial(e,n){let l=this.measureText("? "+n+" ?"),i=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",i).attr("height",r),o.append("text").attr("x",i/2).attr("y",r/2).text("? "+n+" ?"),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderExpression(e,n){switch(n.type){case"terminal":return this.renderTerminal(e,n.value);case"nonterminal":return this.renderNonTerminal(e,n.name);case"sequence":return this.renderSequence(e,n.elements);case"choice":return this.renderChoice(e,n.alternatives);case"optional":return this.renderOptional(e,n.element);case"repetition":return this.renderRepetition(e,n.element,n.min);case"special":return this.renderSpecial(e,n.text);default:throw Error(`Unknown node type: ${n.type}`)}}renderRule(e,n){let l=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${n})`),i=e.name+" =",r=this.measureText(i).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(i),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 n=this.config.padding,l=0;for(let i of e){let r=this.renderRule(i,n);n+=r.height+this.config.verticalSeparation,l=Math.max(l,r.width)}return{width:l+this.config.padding*2,height:n+this.config.padding}}},B=t((e,n,l)=>{G(e,n.height,n.width,l),e.attr("viewBox",`0 0 ${n.width} ${n.height}`)},"configureRailroadSvgSize"),me=t((e,n,l)=>{a.debug(`[Railroad] Rendering diagram
88
- `+e);try{let i=Q(n);i.attr("class","railroad-diagram");let o=S().railroad?.useMaxWidth??!0,g=he.getRules();if(a.debug(`[Railroad] Rendering ${g.length} rules`),g.length===0){a.warn("[Railroad] No rules to render"),B(i,{height:100,width:200},o);return}let s=new ce(i,W()).renderDiagram(g);B(i,s,o),a.debug("[Railroad] Render complete")}catch(i){throw a.error("[Railroad] Render error:",i),i}},"draw"),En={draw:me};
89
- export{he,Tn,En};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Sa}from"./chunk-et1nm6h1.js";export{Sa as createRailroadPegServices};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Ss}from"./chunk-et1nm6h1.js";export{Ss as createPieServices};
Binary file
Binary file
@@ -1,106 +0,0 @@
1
- import{wr}from"./chunk-6areryyn.js";import{re}from"./chunk-4r0dvjrr.js";import{t,a,B,S,k,A,R,I,L,D,P,N,u,za,h,qs,X,F}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=B.gitGraph,V=t(()=>X({...Ce,...S().gitGraph}),"getConfig"),m=new wr(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:o}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function se(){return qs({length:7})}t(se,"getID");function pe(e,r){let o=Object.create(null);return e.reduce((c,i)=>{let l=r(i);if(!o[l])o[l]=!0,c.push(i);return c},[])}t(pe,"uniqBy");var ve=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){a.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:o,type:c,tags:i}=e;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let l=V();o=k.sanitizeText(o,l),r=k.sanitizeText(r,l),i=i?.map((s)=>k.sanitizeText(s,l));let n={id:o?o:m.records.seq+"-"+se(),message:r,seq:m.records.seq++,type:c??C.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",l.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=t(function(e){let{name:r,order:o}=e;if(r=k.sanitizeText(r,V()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:o,type:c,tags:i}=e,l=V();if(r=k.sanitizeText(r,l),o)o=k.sanitizeText(o,l);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,p=s?m.records.commits.get(s):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let y=s?s:"",f={id:o||`${m.records.seq}-${se()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,y],branch:m.records.currBranch,type:C.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:o,tags:c,parent:i}=e;a.debug("Entering cherryPick:",r,o,c);let l=V();if(r=k.sanitizeText(r,l),o=k.sanitizeText(o,l),c=c?.map((g)=>k.sanitizeText(g,l)),i=k.sanitizeText(i,l),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===C.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let p=m.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y={id:m.records.seq+"-"+se(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===C.MERGE?`|parent:${i}`:""}`]};m.records.head=y,m.records.commits.set(y.id,y),m.records.branches.set(m.records.currBranch,y.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=t(function(e){if(e=k.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function de(e,r,o){let c=e.indexOf(r);if(c===-1)e.push(o);else e.splice(c,1,o)}t(de,"upsert");function le(e){let r=e.reduce((i,l)=>{if(i.seq>l.seq)return i;return l},e[0]),o="";e.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(de(e,r,i),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);de(e,r,i)}e=pe(e,(i)=>i.id),le(e)}t(le,"prettyPrintCommitHistory");var Oe=t(function(){a.debug(m.records.commits);let e=xe()[0];le([e])},"prettyPrint"),Ie=t(function(){m.reset(),A()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),xe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){a.debug(r.id)}),e.sort((r,o)=>r.seq-o.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ue={commitType:C,getConfig:V,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:R,getAccTitle:I,getAccDescription:D,setAccDescription:L,setDiagramTitle:P,getDiagramTitle:N},He=t((e,r)=>{if(re(e,r),e.dir)r.setDirection(e.dir);for(let o of e.statements)Se(o,r)},"populate"),Se=t((e,r)=>{let c={Commit:t((i)=>r.commit(Ne(i)),"Commit"),Branch:t((i)=>r.branch(Fe(i)),"Branch"),Merge:t((i)=>r.merge(ze(i)),"Merge"),Checkout:t((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:t((i)=>r.cherryPick(je(i)),"CherryPicking")}[e.$type];if(c)c(e);else a.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?C[e.type]:C.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?C[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await fe("gitGraph",e);a.debug(r),He(r,ue)},"parse")},Y=10,j=40,W=4,H=2,K=8,ne=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),he=12,me=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),U=t((e,r,o=!1)=>{if(o&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),O=new Map,_=new Map,ae=30,Q=new Map,oe=[],z=0,b="LR",Ve=t(()=>{O.clear(),_.clear(),Q.clear(),z=0,oe=[],b="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=t((e)=>{let r,o,c;if(b==="BT")o=t((i,l)=>i<=l,"comparisonFunc"),c=1/0;else o=t((i,l)=>i>=l,"comparisonFunc"),c=0;return e.forEach((i)=>{let l=b==="TB"||b=="BT"?_.get(i)?.y:_.get(i)?.x;if(l!==void 0&&o(l,c))r=i,c=l}),r},"findClosestParent"),Ze=t((e)=>{let r="",o=1/0;return e.forEach((c)=>{let i=_.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=t((e,r,o)=>{let c=o,i=o,l=[];e.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else l.push(s);et(s,c)}),c=i,l.forEach((n)=>{tt(n,c,o)}),e.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=_.get(g).y-j,c<=i)i=c;let p=O.get(s.branch).pos,y=c-Y;_.set(s.id,{x:p,y})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let o=_.get(r)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),Qe=t((e)=>Je(e)+j,"calculateCommitPosition"),et=t((e,r)=>{let o=O.get(e.branch);if(!o)throw Error(`Branch not found for commit ${e.id}`);let c=o.pos,i=r+Y;return _.set(e.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=t((e,r,o)=>{let c=O.get(e.branch);if(!c)throw Error(`Branch not found for commit ${e.id}`);let i=r+o,l=c.pos;_.set(e.id,{x:l,y:i})},"setRootPosition"),rt=t((e,r,o,c,i,l)=>{let{theme:n}=u(),s=ne.has(n??""),g=me.has(n??""),p=Ue.has(n??"");if(l===C.HIGHLIGHT)e.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${U(i,K,g)} ${c}-outer`),e.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${U(i,K,g)} ${c}-inner`);else if(l===C.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let y=e.append("circle");if(y.attr("cx",o.x),y.attr("cy",o.y),y.attr("r",s?7:10),y.attr("class",`commit ${r.id} commit${U(i,K,g)}`),l===C.MERGE){let f=e.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}if(l===C.REVERSE){let f=e.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}}},"drawCommitBullet"),at=t((e,r,o,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.MERGE)&&i.showCommitLabel){let l=e.append("g"),n=l.insert("rect").attr("class","commit-label-bkg"),s=l.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.attr("x",o.posWithOffset-g.width/2-H).attr("y",o.y+13.5).attr("width",g.width+2*H).attr("height",g.height+2*H),b==="TB"||b==="BT")n.attr("x",o.x-(g.width+4*W+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*W)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(b==="TB"||b==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let p=-7.5-(g.width+10)/25*9.5,y=10+g.width/25*8.5;l.attr("transform","translate("+p+", "+y+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=t((e,r,o,c)=>{if(r.tags.length>0){let i=0,l=0,n=0,s=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),y=e.append("circle"),f=e.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");l=Math.max(l,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:y,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:y,yOffset:f}of s){let d=n/2,w=o.y-19.2-f;if(y.attr("class","tag-label-bkg").attr("points",`
2
- ${c-l/2-W/2},${w+H}
3
- ${c-l/2-W/2},${w-H}
4
- ${o.posWithOffset-l/2-W},${w-d-H}
5
- ${o.posWithOffset+l/2+W},${w-d-H}
6
- ${o.posWithOffset+l/2+W},${w+d+H}
7
- ${o.posWithOffset-l/2-W},${w+d+H}`),p.attr("cy",w).attr("cx",c-l/2+W/2).attr("r",1.5).attr("class","tag-hole"),b==="TB"||b==="BT"){let x=c+f;y.attr("class","tag-label-bkg").attr("points",`
8
- ${o.x},${x+2}
9
- ${o.x},${x-2}
10
- ${o.x+Y},${x-d-2}
11
- ${o.x+Y+l+4},${x-d-2}
12
- ${o.x+Y+l+4},${x+d+2}
13
- ${o.x+Y},${x+d+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),p.attr("cx",o.x+W/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),g.attr("x",o.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+c+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case C.NORMAL:return"commit-normal";case C.REVERSE:return"commit-reverse";case C.HIGHLIGHT:return"commit-highlight";case C.MERGE:return"commit-merge";case C.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,o,c)=>{let i={x:0,y:0};if(e.parents.length>0){let l=we(e.parents);if(l){let n=c.get(l)??i;if(r==="TB")return n.y+j;else if(r==="BT")return(c.get(e.id)??i).y-j;else return n.x+j}}else if(r==="TB")return ae;else if(r==="BT")return(c.get(e.id)??i).y-j;else return 0;return 0},"calculatePosition"),ct=t((e,r,o)=>{let c=b==="BT"&&o?r:r+Y,i=O.get(e.branch)?.pos,l=b==="TB"||b==="BT"?O.get(e.branch)?.pos:c;if(l===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let n=ne.has(u().theme??""),s=b==="TB"||b==="BT"?c:i+(n?he/2+1:-2);return{x:l,y:s,posWithOffset:c}},"getCommitPosition"),$e=t((e,r,o,c)=>{let i=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),n=b==="TB"||b==="BT"?ae:0,s=[...r.keys()],g=c.parallelCommits??!1,p=t((f,d)=>{let w=r.get(f)?.seq,x=r.get(d)?.seq;return w!==void 0&&x!==void 0?w-x:0},"sortKeys"),y=s.sort(p);if(b==="BT"){if(g)Xe(y,r,n);y=y.reverse()}y.forEach((f)=>{let d=r.get(f);if(!d)throw Error(`Commit not found for key ${f}`);if(g)n=nt(d,b,n,_);let w=ct(d,n,g);if(o){let x=st(d),v=d.customType??d.type,E=O.get(d.branch)?.index??0;rt(i,d,w,x,E,v),at(l,d,w,n,c),ot(l,d,w,n)}if(b==="TB"||b==="BT")_.set(d.id,{x:w.x,y:w.posWithOffset});else _.set(d.id,{x:w.posWithOffset,y:w.y});if(n=b==="BT"&&g?n+j:n+j+Y,n>z)z=n})},"drawCommits"),it=t((e,r,o,c,i)=>{let n=(b==="TB"||b==="BT"?o.x<c.x:o.y<c.y)?r.branch:e.branch,s=t((p)=>p.branch===n,"isOnBranchToGetCurve"),g=t((p)=>p.seq>e.seq&&p.seq<r.seq,"isBetweenCommits");return[...i.values()].some((p)=>g(p)&&s(p))},"shouldRerouteArrow"),ee=t((e,r,o=0)=>{let c=e+Math.abs(e-r)/2;if(o>5)return c;if(oe.every((n)=>Math.abs(n-c)>=10))return oe.push(c),c;let l=Math.abs(e-r);return ee(e,r-l/5,o+1)},"findLane"),dt=t((e,r,o,c)=>{let{theme:i}=u(),l=me.has(i??""),n=_.get(r.id),s=_.get(o.id);if(n===void 0||s===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${o.id}`);let g=it(r,o,n,s,c),p="",y="",f=0,d=0,w=O.get(o.branch)?.index;if(o.type===C.MERGE&&r.id!==o.parents[0])w=O.get(r.branch)?.index;let x;if(g){p="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",f=10,d=10;let v=n.y<s.y?ee(n.y,s.y):ee(s.y,n.y),E=n.x<s.x?ee(n.x,s.x):ee(s.x,n.x);if(b==="TB")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${y} ${E} ${n.y+d} L ${E} ${s.y-f} ${p} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${p} ${E} ${n.y+d} L ${E} ${s.y-f} ${y} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(b==="BT")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${p} ${E} ${n.y-d} L ${E} ${s.y+f} ${y} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${y} ${E} ${n.y-d} L ${E} ${s.y+f} ${p} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(n.y<s.y)x=`M ${n.x} ${n.y} L ${n.x} ${v-f} ${p} ${n.x+d} ${v} L ${s.x-f} ${v} ${y} ${s.x} ${v+d} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${n.x} ${v+f} ${y} ${n.x+d} ${v} L ${s.x-f} ${v} ${p} ${s.x} ${v-d} L ${s.x} ${s.y}`}else if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,b==="TB"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${y} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${p} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else if(b==="BT"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${p} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${y} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else{if(n.y<s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y>s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y===s.y)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+U(w,K,l))},"drawArrow"),ht=t((e,r)=>{let o=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((c)=>{let i=r.get(c);if(i.parents&&i.parents.length>0)i.parents.forEach((l)=>{dt(o,r.get(l),i,r)})})},"drawArrows"),lt=t((e,r,o,c)=>{let{look:i,theme:l,themeVariables:n}=u(),{dropShadow:s,THEME_COLOR_LIMIT:g}=n,p=ne.has(l??""),y=me.has(l??""),f=e.append("g");r.forEach((d,w)=>{let x=U(w,p?g:K,y),v=O.get(d.name)?.pos;if(v===void 0)throw Error(`Position not found for branch ${d.name}`);let E=b==="TB"||b==="BT"?v:p?v+he/2+1:v-2,T=f.append("line");if(T.attr("x1",0),T.attr("y1",E),T.attr("x2",z),T.attr("y2",E),T.attr("class","branch branch"+x),b==="TB")T.attr("y1",ae),T.attr("x1",v),T.attr("y2",z),T.attr("x2",v);else if(b==="BT")T.attr("y1",z),T.attr("x1",v),T.attr("y2",ae),T.attr("x2",v);oe.push(E);let ce=d.name,J=be(ce),G=f.insert("rect"),q=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);q.node().appendChild(J);let M=J.getBBox(),ge=p?0:4,te=p?16:0,Z=p?he:0;if(i==="neo")G.attr("data-look","neo");if(G.attr("class","branchLabelBkg label"+x).attr("style",i==="neo"?`filter:${p?`url(#${c}-drop-shadow)`:s}`:"").attr("rx",ge).attr("ry",ge).attr("x",-M.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-M.height/2+10).attr("width",M.width+18+te).attr("height",M.height+4+Z),q.attr("transform","translate("+(-M.width-14-(o.rotateCommitLabel===!0?30:0)+te/2)+", "+(E-M.height/2-2)+")"),b==="TB"){if(G.attr("x",v-M.width/2-10).attr("y",0),q.attr("transform","translate("+(v-M.width/2-5)+", 0)"),p)G.attr("transform",`translate(${-te/2-3}, ${-Z-10})`),q.attr("transform","translate("+(v-M.width/2-5)+", "+(-Z*2+7)+")")}else if(b==="BT"){if(G.attr("x",v-M.width/2-10).attr("y",z),q.attr("transform","translate("+(v-M.width/2-5)+", "+z+")"),p)G.attr("transform",`translate(${-te/2-3}, ${Z+10})`),q.attr("transform","translate("+(v-M.width/2-5)+", "+(z+Z*2+4)+")")}else G.attr("transform","translate(-19, "+(E-12-Z/2)+")")})},"drawBranches"),mt=t(function(e,r,o,c,i){return O.set(e,{pos:r,index:o}),r+=50+(i?40:0)+(b==="TB"||b==="BT"?c.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,o,c){Ve(),a.debug("in gitgraph renderer",e+`
14
- `,"id:",r,o);let i=c.db;if(!i.getConfig){a.error("getConfig method is not available on db");return}let l=i.getConfig(),n=l.rotateCommitLabel??!1;Q=i.getCommits();let s=i.getBranchesAsObjArray();b=i.getDirection();let g=h(`[id="${r}"]`),{look:p,theme:y,themeVariables:f}=u(),{useGradient:d,gradientStart:w,gradientStop:x,filterColor:v}=f;if(d){let T=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(p==="neo"&&ne.has(y??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",v);let E=0;if(s.forEach((T,ce)=>{let J=be(T.name),G=g.append("g"),ie=G.insert("g").attr("class","branchLabel"),q=ie.insert("g").attr("class","label branch-label");q.node()?.appendChild(J);let M=J.getBBox();E=mt(T.name,E,ce,M,n),q.remove(),ie.remove(),G.remove()}),$e(g,Q,!1,l),l.showBranches)lt(g,s,l,r);ht(g,Q),$e(g,Q,!0,l),F.insertTitle(g,"gitTitleText",l.titleTopMargin??0,i.getDiagramTitle()),za(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,o="";if(e.useGradient&&r)for(let c=0;c<e.THEME_COLOR_LIMIT;c++)o+=`
15
- .label${c} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
16
- `;return o},"genGitGraphGradient"),bt=t((e)=>{let r=S(),{theme:o,themeVariables:c}=r,{borderColorArray:i}=c,l=ke.has(o);if(pt.has(o)){let n="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)if(s===0)n+=`
17
- .branch-label${s} { fill: ${e.nodeBorder};}
18
- .commit${s} { stroke: ${e.nodeBorder}; }
19
- .commit-highlight${s} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
20
- .arrow${s} { stroke: ${e.nodeBorder}; }
21
- .commit-bullets { fill: ${e.nodeBorder}; }
22
- .commit-cherry-pick${s} { stroke: ${e.nodeBorder}; }
23
- ${ut(e)}`;else{let g=s%Be;n+=`
24
- .branch-label${s} { fill: ${e["gitBranchLabel"+g]}; }
25
- .commit${s} { stroke: ${e["git"+g]}; fill: ${e["git"+g]}; }
26
- .commit-highlight${s} { stroke: ${e["gitInv"+g]}; fill: ${e["gitInv"+g]}; }
27
- .arrow${s} { stroke: ${e["git"+g]}; }
28
- `}return n}else if(!$t.has(o)){let n="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)n+=`
29
- .branch-label${s} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
30
- .commit${s} { stroke: ${e.nodeBorder}; }
31
- .commit-highlight${s} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
32
- .label${s} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${l?`font-weight:${e.noteFontWeight}`:""}}
33
- .arrow${s} { stroke: ${e.nodeBorder}; }
34
- .commit-bullets { fill: ${e.nodeBorder}; }
35
- .commit-cherry-pick${s} { stroke: ${e.nodeBorder}; }
36
- `;return n}else{let n="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)if(s===0)n+=`
37
- .branch-label${s} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
38
- .commit${s} { stroke: ${e.nodeBorder}; }
39
- .commit-highlight${s} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
40
- .label${s} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${l?`font-weight:${e.noteFontWeight}`:""} }
41
- .arrow${s} { stroke: ${e.nodeBorder}; }
42
- .commit-bullets { fill: ${e.nodeBorder}; }
43
- `;else{let g=s%i.length;n+=`
44
- .branch-label${s} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
45
- .commit${s} { stroke: ${i[g]}; fill: ${i[g]}; }
46
- .commit-highlight${s} { stroke: ${i[g]}; fill: ${i[g]}; }
47
- .label${s} { fill: ${yt.has(o)?e.mainBkg:i[g]}; stroke: ${i[g]}; stroke-width: ${e.strokeWidth}; }
48
- .arrow${s} { stroke: ${i[g]}; }
49
- `}return n}},"genColor"),wt=t((e)=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,o)=>o).map((r)=>{let o=r%Be;return`
50
- .branch-label${r} { fill: ${e["gitBranchLabel"+o]}; }
51
- .commit${r} { stroke: ${e["git"+o]}; fill: ${e["git"+o]}; }
52
- .commit-highlight${r} { stroke: ${e["gitInv"+o]}; fill: ${e["gitInv"+o]}; }
53
- .label${r} { fill: ${e["git"+o]}; }
54
- .arrow${r} { stroke: ${e["git"+o]}; }
55
- `}).join(`
56
- `)}`,"normalTheme"),Bt=t((e)=>{let r=S(),{theme:o}=r,c=xt.has(o);return`
57
- .commit-id,
58
- .commit-msg,
59
- .branch-label {
60
- fill: lightgrey;
61
- color: lightgrey;
62
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
- font-family: var(--mermaid-font-family);
64
- }
65
-
66
- ${c?bt(e):wt(e)}
67
-
68
- .branch {
69
- stroke-width: ${e.strokeWidth};
70
- stroke: ${e.commitLineColor??e.lineColor};
71
- stroke-dasharray: ${c?"4 2":"2"};
72
- }
73
- .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${c?e.nodeBorder:e.commitLabelColor}; ${c?`font-weight:${e.noteFontWeight};`:""}}
74
- .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${c?"transparent":e.commitLabelBackground}; opacity: ${c?"":0.5}; }
75
- .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
76
- .tag-label-bkg { fill: ${c?e.mainBkg:e.tagLabelBackground}; stroke: ${c?e.nodeBorder:e.tagLabelBorder}; ${c?`filter:${e.dropShadow}`:""} }
77
- .tag-hole { fill: ${e.textColor}; }
78
-
79
- .commit-merge {
80
- stroke: ${c?e.mainBkg:e.primaryColor};
81
- fill: ${c?e.mainBkg:e.primaryColor};
82
- }
83
- .commit-reverse {
84
- stroke: ${c?e.mainBkg:e.primaryColor};
85
- fill: ${c?e.mainBkg:e.primaryColor};
86
- stroke-width: ${c?e.strokeWidth:3};
87
- }
88
- .commit-highlight-outer {
89
- }
90
- .commit-highlight-inner {
91
- stroke: ${c?e.mainBkg:e.primaryColor};
92
- fill: ${c?e.mainBkg:e.primaryColor};
93
- }
94
-
95
- .arrow {
96
- /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
- stroke-width: ${ke.has(o)?e.strokeWidth:8};
98
- stroke-linecap: round;
99
- fill: none
100
- }
101
- .gitTitleText {
102
- text-anchor: middle;
103
- font-size: 18px;
104
- fill: ${e.textColor};
105
- }
106
- `},"getStyles"),kt=Bt,Ot={parser:Ke,db:ue,renderer:ft,styles:kt};export{Ot as diagram};
Binary file
Binary file
@@ -1,141 +0,0 @@
1
- var Fe=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map((s)=>{if(typeof s!=="string")return s;let o=n?.get(s);if(o){if(o instanceof RegExp)return o;if(r)return null;throw o}try{let i=a(s);return n?.set(s,i),i}catch(i){if(n?.set(s,i),r)return null;throw i}})}findNextMatchSync(e,t,r){let n=typeof e==="string"?e:e.content,a=[];function s(o,i,u=0){return{index:o,captureIndices:i.indices.map((c)=>{if(c==null)return{start:4294967295,end:4294967295,length:0};return{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]}})}}for(let o=0;o<this.regexps.length;o++){let i=this.regexps[o];if(!i)continue;try{i.lastIndex=t;let u=i.exec(n);if(!u)continue;if(u.index===t)return s(o,u,0);a.push([o,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(a.length){let o=Math.min(...a.map((i)=>i[1].index));for(let[i,u,c]of a)if(u.index===o)return s(i,u,c)}return null}};function R(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Pe(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var K=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),b=String.raw;function N(e,t){if(e==null)throw Error(t??"Value expected");return e}var Te=b`\[\^?`,ze=`c.? | C(?:-.?)?|${b`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${b`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${b`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${b`o\{[^\}]*\}?`}|${b`\d{1,3}`}`,me=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ae=new RegExp(b`
2
- \\ (?:
3
- ${ze}
4
- | [gk]<[^>]*>?
5
- | [gk]'[^']*'?
6
- | .
7
- )
8
- | \( (?:
9
- \? (?:
10
- [:=!>({]
11
- | <[=!]
12
- | <[^>]*>
13
- | '[^']*'
14
- | ~\|?
15
- | #(?:[^)\\]|\\.?)*
16
- | [^:)]*[:)]
17
- )?
18
- | \*[^\)]*\)?
19
- )?
20
- | (?:${me.source})+
21
- | ${Te}
22
- | .
23
- `.replace(/\s+/g,""),"gsu"),he=new RegExp(b`
24
- \\ (?:
25
- ${ze}
26
- | .
27
- )
28
- | \[:(?:\^?\p{Alpha}+|\^):\]
29
- | ${Te}
30
- | &&
31
- | .
32
- `.replace(/\s+/g,""),"gsu");function Ve(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw Error("String expected as pattern");let n=Zr(r.flags),a=[n.extended],s={captureGroup:r.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(l){a.push(l)},replaceCurrentModX(l){a[a.length-1]=l},singleline:r.rules.singleline},o=[],i;for(ae.lastIndex=0;i=ae.exec(e);){let l=Mr(s,e,i[0],ae.lastIndex);l.tokens?o.push(...l.tokens):l.token&&o.push(l.token),l.lastIndex!==void 0&&(ae.lastIndex=l.lastIndex)}let u=[],c=0;o.filter((l)=>l.type==="GroupOpen").forEach((l)=>{l.kind==="capturing"?l.number=++c:l.raw==="("&&u.push(l)}),c||u.forEach((l,f)=>{l.kind="capturing",l.number=f+1});let p=c||u.length;return{tokens:o.map((l)=>l.type==="EscapedNumber"?qr(l,p):l).flat(),flags:n}}function Mr(e,t,r,n){let[a,s]=r;if(r==="["||r==="[^"){let o=Nr(t,r,n);return{tokens:o.tokens,lastIndex:o.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(s))return{token:Re(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:Tr(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:He(r)}}if(s==="K")return{token:je("keep",r)};if(s==="N"||s==="R")return{token:B("newline",r,{negate:s==="N"})};if(s==="O")return{token:B("any",r)};if(s==="X")return{token:B("text_segment",r)};let o=We(r,{inCharClass:!1});return Array.isArray(o)?{tokens:o}:{token:o}}if(a==="("){if(s==="*")return{token:Hr(r)};if(r==="(?{")throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:Wr(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:j("group",r)};if(r==="(?>")return{token:j("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:j(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:j("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw Error(`Unsupported absence function kind "${r}"`);return{token:j("absence_repeater",r)}}throw r==="(?("?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:Or(r)}}if(e.getCurrentModX()){if(r==="#"){let o=t.indexOf(`
33
- `,n);return{lastIndex:o===-1?t.length:o}}if(/^\s$/.test(r)){let o=/\s+/y;return o.lastIndex=n,{lastIndex:o.exec(t)?o.lastIndex:n}}}if(r===".")return{token:B("dot",r)};if(r==="^"||r==="$"){let o=e.singleline?{"^":b`\A`,$:b`\Z`}[r]:r;return{token:Re(o,r)}}return r==="|"?{token:Gr(r)}:me.test(r)?{tokens:Jr(r)}:{token:L(R(r),r)}}function Nr(e,t,r){let n=[Ue(t[1]==="^",t)],a=1,s;for(he.lastIndex=r;s=he.exec(e);){let o=s[0];if(o[0]==="["&&o[1]!==":")a++,n.push(Ue(o[1]==="^",o));else if(o==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(L(93,o));else if(a--,n.push(Fr(o)),!a)break}else{let i=Lr(o);Array.isArray(i)?n.push(...i):n.push(i)}}return{tokens:n,lastIndex:he.lastIndex||e.length}}function Lr(e){if(e[0]==="\\")return We(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!K.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return B("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Pr(e):e==="&&"?Rr(e):L(R(e),e)}function We(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return Vr(e);if("dDhHsSwW".includes(r))return jr(e);if(e.startsWith(b`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Xr(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let n=e.split(/\\x/).slice(1).map((o)=>parseInt(o,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),s=new TextEncoder;return[...a].map((o)=>{let i=[...s.encode(o)].map((u)=>`\\x${u.toString(16)}`).join("");return L(R(o),i)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return L(Qr(e),e);if(Oe.has(r))return L(Oe.get(r),e);if(/\d/.test(r))return Ur(t,e);if(e==="\\")throw Error(b`Incomplete escape "\"`);if(r==="M")throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return L(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Gr(e){return{type:"Alternator",raw:e}}function Re(e,t){return{type:"Assertion",kind:e,raw:t}}function He(e){return{type:"Backreference",raw:e}}function L(e,t){return{type:"Character",value:e,raw:t}}function Fr(e){return{type:"CharacterClassClose",raw:e}}function Pr(e){return{type:"CharacterClassHyphen",raw:e}}function Rr(e){return{type:"CharacterClassIntersector",raw:e}}function Ue(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function B(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function je(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:N(r.flags),raw:t}}function Ur(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Or(e){return{type:"GroupClose",raw:e}}function j(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Dr(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function Br(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function Tr(e){return{type:"Subroutine",raw:e}}var zr=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Oe=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Vr(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return L(R(t.toUpperCase())-64,e)}function Wr(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),s=Be(r),o=Be(n),i={};if(s&&(i.enable=s),o&&(i.disable=o),e.endsWith(")"))return t.replaceCurrentModX(a),je("flags",e,{flags:i});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,j("group",e,{...(s||o)&&{flags:i}});throw Error(`Unexpected flag modifier "${e}"`)}function Hr(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:a}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(n==="")throw Error(`Named callout tag with empty value not allowed "${e}"`);let s=a?a.split(",").filter((p)=>p!=="").map((p)=>/^[+-]?\d+$/.test(p)?+p:p):[],[o,i,u]=s,c=zr.has(r)?r.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(s.length>0)throw Error(`Named callout arguments not allowed "${s}"`);break;case"error":if(s.length>1)throw Error(`Named callout allows only one argument "${s}"`);if(typeof o=="string")throw Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!s.length||s.length>2)throw Error(`Named callout must have one or two arguments "${s}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(s.length===2&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${i}"`);break;case"count":case"total_count":if(s.length>1)throw Error(`Named callout allows only one argument "${s}"`);if(s.length===1&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(s.length!==3)throw Error(`Named callout must have three arguments "${s}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof i=="number"||!/^(?:[<>!=]=|[<>])$/.test(i))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${i}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return Dr(c,n??null,a?.split(",")??null,e)}function De(e){let t=null,r,n;if(e[0]==="{"){let{minStr:a,maxStr:s}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+a>1e5||s&&+s>1e5)throw Error("Quantifier value unsupported in Oniguruma");if(r=+a,n=s===void 0?+a:s===""?1/0:+s,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Br(t,r,n,e)}function jr(e){let t=e[1].toLowerCase();return B({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Xr(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return B("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function Be(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Zr(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function Qr(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function qr(e,t){let{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[He(r)];let s=[],o=a.match(/^[0-7]+|\d/g);for(let i=0;i<o.length;i++){let u=o[i],c;if(i===0&&u!=="8"&&u!=="9"){if(c=parseInt(u,8),c>127)throw Error(b`Octal encoded byte above 177 unsupported "${r}"`)}else c=R(u);s.push(L(c,(i===0?"\\":"")+u))}return s}function Jr(e){let t=[],r=new RegExp(me,"gy"),n;for(;n=r.exec(e);){let a=n[0];if(a[0]==="{"){let s=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(s){let{min:o,max:i}=s.groups;if(+o>+i&&a.endsWith("?")){r.lastIndex--,t.push(De(a.slice(0,-1)));continue}}}t.push(De(a))}return t}function oe(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every((n)=>t[n]===r[n])}function Xe(e){return Kr.has(e.type)}var Kr=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function ue(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=Ve(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(f,g)=>{let d=n.tokens[s.nextIndex];switch(s.parent=f,s.nextIndex++,d.type){case"Alternator":return G();case"Assertion":return Yr(d);case"Backreference":return et(d,s);case"Character":return X(d.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return rt(d,s,g);case"CharacterClassOpen":return tt(d,s,g);case"CharacterSet":return nt(d,s);case"Directive":return ct(d.kind,{flags:d.flags});case"GroupOpen":return st(d,s,g);case"NamedCallout":return pt(d.kind,d.tag,d.arguments);case"Quantifier":return at(d,s);case"Subroutine":return ot(d,s);default:throw Error(`Unexpected token type "${d.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},o=dt(lt(n.flags)),i=o.body[0];for(;s.nextIndex<n.tokens.length;){let f=a(i,{});f.type==="Alternative"?(o.body.push(f),i=f):i.body.push(f)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:p,subroutines:l}=s;if(c&&p.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:f}of l)if(typeof f=="number"){if(f>u.length)throw Error("Subroutine uses a group number that's not defined");f&&(u[f-1].isSubroutined=!0)}else if(p.has(f)){if(p.get(f).length>1)throw Error(b`Subroutine uses a duplicate group name "\g<${f}>"`);p.get(f)[0].isSubroutined=!0}else throw Error(b`Subroutine uses a group name that's not defined "\g<${f}>"`);return o}function Yr({kind:e}){return ce(N({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===b`\B`||e===b`\Y`})}function et({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(s,o=!1)=>{let i=t.capturingGroups.length,u=!1;if(s>i)if(t.skipBackrefValidation)u=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,ie(o?i+1-s:s,{orphan:u})};if(r){let s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(s)return a(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return ie(n)}return a(+n)}function rt(e,t,r){let{tokens:n,walk:a}=t,s=t.parent,o=s.body.at(-1),i=n[t.nextIndex];if(!r.isCheckingRangeEnd&&o&&o.type!=="CharacterClass"&&o.type!=="CharacterClassRange"&&i&&i.type!=="CharacterClassOpen"&&i.type!=="CharacterClassClose"&&i.type!=="CharacterClassIntersector"){let u=a(s,{...r,isCheckingRangeEnd:!0});if(o.type==="Character"&&u.type==="Character")return s.body.pop(),ut(o,u);throw Error("Invalid character class range")}return X(R("-"))}function tt({negate:e},t,r){let{tokens:n,walk:a}=t,s=[Y()],o=n[t.nextIndex],i=qe(o);for(;i.type!=="CharacterClassClose";){if(i.type==="CharacterClassIntersector")s.push(Y()),t.nextIndex++;else{let c=s.at(-1);c.body.push(a(c,r))}i=qe(n[t.nextIndex],o)}let u=Y({negate:e});return s.length===1?u.body=s[0].body:(u.kind="intersection",u.body=s.map((c)=>c.body.length===1?c.body[0]:c)),t.nextIndex++,u}function nt({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:o}=n;if(e==="property"){let i=Z(r);if(K.has(i)&&!o?.has(i))e="posix",r=i;else return T(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:o})}return e==="posix"?ft(r,{negate:t}):le(e,{negate:t})}function st(e,t,r){let{tokens:n,capturingGroups:a,namedGroupsByName:s,skipLookbehindValidation:o,walk:i}=t,u=gt(e),c=u.type==="AbsenceFunction",p=Qe(u),l=p&&u.negate;if(u.type==="CapturingGroup"&&(a.push(u),u.name&&Pe(s,u.name,[]).push(u)),c&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=Je(n[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")u.body.push(G()),t.nextIndex++;else{let g=u.body.at(-1),d=i(g,{...r,isInAbsenceFunction:r.isInAbsenceFunction||c,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||l});if(g.body.push(d),(p||r.isInLookbehind)&&!o){if(l||r.isInNegLookbehind){if(Ze(d)||d.type==="CapturingGroup")throw Error("Lookbehind includes a pattern not allowed by Oniguruma")}else if(Ze(d)||Qe(d)&&d.negate)throw Error("Lookbehind includes a pattern not allowed by Oniguruma")}}f=Je(n[t.nextIndex])}return t.nextIndex++,u}function at({kind:e,min:t,max:r},n){let a=n.parent,s=a.body.at(-1);if(!s||!Xe(s))throw Error("Quantifier requires a repeatable token");let o=ye(e,t,r,s);return a.body.pop(),o}function ot({raw:e},t){let{capturingGroups:r,subroutines:n}=t,a=e.slice(3,-1),s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(s){let i=+s.groups.num,u=r.length;if(t.hasNumberedRef=!0,a={"":i,"+":u+i,"-":u+1-i}[s.groups.sign],a<1)throw Error("Invalid subroutine number")}else a==="0"&&(a=0);let o=Ce(a);return n.push(o),o}function it(e,t){if(e!=="repeater")throw Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:ee(t?.body)}}function G(e){return{type:"Alternative",body:Ke(e?.body)}}function ce(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function ie(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function we(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!ht(r.name))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:ee(t?.body)}}function X(e,t){let r={useLastValid:!1,...t};if(e>1114111){let n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${n}}"`):Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function Y(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Ke(e?.body)}}function ut(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function le(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function ct(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:N(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function lt(e){return{type:"Flags",...e}}function v(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:ee(e?.body)}}function U(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:ee(e?.body)}}function pt(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function ft(e,t){let r=!!t?.negate;if(!K.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function ye(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function dt(e,t){return{type:"Regex",body:ee(t?.body),flags:e}}function Ce(e){return{type:"Subroutine",ref:e}}function T(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(Z(e));if(!n){if(r.normalizeUnknownPropertyNames)n=mt(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(b`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function gt({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":return it("repeater");case"atomic":return v({atomic:!0});case"capturing":return we(a,{name:r});case"group":return v({flags:e});case"lookahead":case"lookbehind":return U({behind:t==="lookbehind",negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}function ee(e){if(e===void 0)e=[G()];else if(!Array.isArray(e)||!e.length||!e.every((t)=>t.type==="Alternative"))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function Ke(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every((t)=>!!t.type))throw Error("Invalid body; expected array of nodes");return e}function Ze(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Qe(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function ht(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function mt(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,(t)=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Z(e){return e.replace(/[- _]+/g,"").toLowerCase()}function qe(e,t){let r=t;return N(e,`Unclosed character class${r?.type==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}function Je(e){return N(e,"Unclosed group")}function z(e,t,r=null){function n(s,o){for(let i=0;i<s.length;i++){let u=a(s[i],o,i,s);i=Math.max(-1,i+u)}}function a(s,o=null,i=null,u=null){let c=0,p=!1,l={node:s,parent:o,key:i,container:u,root:e,remove(){pe(u).splice(Math.max(0,Q(i)+c),1),c--,p=!0},removeAllNextSiblings(){return pe(u).splice(Q(i)+1)},removeAllPrevSiblings(){let y=Q(i)+c;return c-=y,pe(u).splice(0,Math.max(0,y))},replaceWith(y,E={}){let I=!!E.traverse;u?u[Math.max(0,Q(i)+c)]=y:N(o,"Can't replace root node")[i]=y,I&&a(y,o,i,u),p=!0},replaceWithMultiple(y,E={}){let I=!!E.traverse;if(pe(u).splice(Math.max(0,Q(i)+c),1,...y),c+=y.length-1,I){let k=0;for(let S=0;S<y.length;S++)k+=a(y[S],o,Q(i)+S+k,u)}p=!0},skip(){p=!0}},{type:f}=s,g=t["*"],d=t[f],m=typeof g=="function"?g:g?.enter,w=typeof d=="function"?d:d?.enter;if(m?.(l,r),w?.(l,r),!p)switch(f){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(s.min,s,"min"),a(s.max,s,"max");break;case"Quantifier":a(s.body,s,"body");break;case"Regex":n(s.body,s),a(s.flags,s,"flags");break;default:throw Error(`Unexpected node type "${f}"`)}return d?.exit?.(l,r),g?.exit?.(l,r),c}return a(e),e}function pe(e){if(!Array.isArray(e))throw Error("Container expected");return e}function Q(e){if(typeof e!="number")throw Error("Numeric key expected");return e}var Ye=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function er(e,t){for(let r=0;r<e.length;r++)if(e[r]>=t)e[r]++}function rr(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}var A=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function re(e,t,r,n){let a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1],o=0,i="";for(let u of e.matchAll(a)){let{0:c,groups:{$skip:p}}=u;if(!p&&(!n||n===A.DEFAULT===!o)){if(r instanceof Function)i+=r(u,{context:o?A.CHAR_CLASS:A.DEFAULT,negated:s[s.length-1]});else i+=r;continue}if(c[0]==="[")o++,s.push(c[1]==="^");else if(c==="]"&&o)o--,s.pop();i+=c}return i}function be(e,t,r,n){re(e,t,r,n)}function wt(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;let a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let s=0,o;while(o=a.exec(e)){let{0:i,groups:{$skip:u}}=o;if(!u&&(!n||n===A.DEFAULT===!s))return o;if(i==="[")s++;else if(i==="]"&&s)s--;if(a.lastIndex==o.index)a.lastIndex++}return null}function te(e,t,r){return!!wt(e,t,0,r)}function tr(e,t){let r=/\\?./gsu;r.lastIndex=t;let n=e.length,a=0,s=1,o;while(o=r.exec(e)){let[i]=o;if(i==="[")a++;else if(!a){if(i==="(")s++;else if(i===")"){if(s--,!s){n=o.index;break}}}else if(i==="]")a--}return e.slice(t,n)}var nr=new RegExp(String.raw`(?<noncapturingStart>${Ye})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function ke(e,t){let r=t?.hiddenCaptures??[],n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};let a="(?>",s="(?:(?=(",o=[0],i=[],u=0,c=0,p=NaN,l;do{l=!1;let f=0,g=0,d=!1,m;nr.lastIndex=Number.isNaN(p)?0:p+s.length;while(m=nr.exec(e)){let{0:w,index:y,groups:{capturingStart:E,noncapturingStart:I}}=m;if(w==="[")f++;else if(!f){if(w===a&&!d)p=y,d=!0;else if(d&&I)g++;else if(E)if(d)g++;else u++,o.push(u+c);else if(w===")"&&d){if(!g){c++;let k=u+c;if(e=`${e.slice(0,p)}${s}${e.slice(p+a.length,y)}))<$$${k}>)${e.slice(y+1)}`,l=!0,i.push(k),er(r,k),n.size){let S=new Map;n.forEach((se,W)=>{S.set(W>=k?W+1:W,se.map((H)=>H>=k?H+1:H))}),n=S}break}g--}}else if(w==="]")f--}}while(l);return r.push(...i),e=re(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:g,wrappedBackrefNum:d}})=>{if(g){let m=+g;if(m>o.length-1)throw Error(`Backref "${f}" greater than number of captures`);return`\\${o[m]}`}return`\\${d}`},A.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}var sr=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,xe=new RegExp(String.raw`
34
- \\(?: \d+
35
- | c[A-Za-z]
36
- | [gk]<[^>]+>
37
- | [pPu]\{[^\}]+\}
38
- | u[A-Fa-f\d]{4}
39
- | x[A-Fa-f\d]{2}
40
- )
41
- | \((?: \? (?: [:=!>]
42
- | <(?:[=!]|[^>]+>)
43
- | [A-Za-z\-]+:
44
- | \(DEFINE\)
45
- ))?
46
- | (?<qBase>${sr})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
47
- | \\?.
48
- `.replace(/\s+/g,""),"gsu");function Ee(e){if(!new RegExp(`${sr}\\+`).test(e))return{pattern:e};let t=[],r=null,n=null,a="",s=0,o;xe.lastIndex=0;while(o=xe.exec(e)){let{0:i,index:u,groups:{qBase:c,qMod:p,invalidQ:l}}=o;if(i==="["){if(!s)n=u;s++}else if(i==="]")if(s)s--;else n=null;else if(!s){if(p==="+"&&a&&!a.startsWith("(")){if(l)throw Error(`Invalid quantifier "${i}"`);let f=-1;if(/^\{\d+\}$/.test(c))e=rr(e,u+c.length,p,"");else{if(a===")"||a==="]"){let g=a===")"?r:n;if(g===null)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,g)}(?>${e.slice(g,u)}${c})${e.slice(u+i.length)}`}else e=`${e.slice(0,u-a.length)}(?>${a}${c})${e.slice(u+i.length)}`;f+=4}xe.lastIndex+=f}else if(i[0]==="(")t.push(u);else if(i===")")r=t.length?t.pop():null}a=i}return{pattern:e}}var _=String.raw,yt=_`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ie=_`\(\?R=(?<rDepth>[^\)]+)\)|${yt}`,fe=_`\(\?<(?![=!])(?<captureName>[^>]+)>`,cr=_`${fe}|(?<unnamed>\()(?!\?)`,V=new RegExp(_`${fe}|${Ie}|\(\?|\\?.`,"gsu"),Ae="Cannot use multiple overlapping recursions";function lr(e,t){let{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!new RegExp(Ie,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if(n==="plugin"&&te(e,_`\(\?\(DEFINE\)`,A.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=te(e,_`\\[1-9]`,A.DEFAULT),i=new Map,u=[],c=!1,p=0,l=0,f;V.lastIndex=0;while(f=V.exec(e)){let{0:g,groups:{captureName:d,rDepth:m,gRNameOrNum:w,gRDepth:y}}=f;if(g==="[")p++;else if(!p){if(m){if(ar(m),c)throw Error(Ae);if(o)throw Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let E=e.slice(0,f.index),I=e.slice(V.lastIndex);if(te(I,Ie,A.DEFAULT))throw Error(Ae);let k=+m-1;e=or(E,I,k,!1,r,s,l),a=ur(a,E,k,s.length,0,l);break}else if(w){ar(y);let E=!1;for(let J of u)if(J.name===w||J.num===+w){if(E=!0,J.hasRecursedWithin)throw Error(Ae);break}if(!E)throw Error(_`Recursive \g cannot be used outside the referenced group "${n==="external"?w:_`\g<${w}&R=${y}>`}"`);let I=i.get(w),k=tr(e,I);if(o&&te(k,_`${fe}|\((?!\?)`,A.DEFAULT))throw Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let S=e.slice(I,f.index),se=k.slice(S.length+g.length),W=s.length,H=+y-1,Ge=or(S,se,H,!0,r,s,l);a=ur(a,S,H,s.length-W,W,l);let Sr=e.slice(0,I),_r=e.slice(I+k.length);e=`${Sr}${Ge}${_r}`,V.lastIndex+=Ge.length-g.length-S.length-se.length,u.forEach((J)=>J.hasRecursedWithin=!0),c=!0}else if(d)l++,i.set(String(l),V.lastIndex),i.set(d,V.lastIndex),u.push({num:l,name:d});else if(g[0]==="("){let E=g==="(";if(E)l++,i.set(String(l),V.lastIndex);u.push(E?{num:l}:{})}else if(g===")")u.pop()}else if(g==="]")p--}return r.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:r}}function ar(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw Error(t);if(e=+e,e<2||e>100)throw Error(t)}function or(e,t,r,n,a,s,o){let i=new Set;if(n)be(e+t,fe,({groups:{captureName:c}})=>{i.add(c)},A.DEFAULT);let u=[r,n?i:null,a,s,o];return`${e}${ir(`(?:${e}`,"forward",...u)}(?:)${ir(`${t})`,"backward",...u)}${t}`}function ir(e,t,r,n,a,s,o){let u=(p)=>t==="forward"?p+2:r-p+2-1,c="";for(let p=0;p<r;p++){let l=u(p);c+=re(e,_`${cr}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:g,unnamed:d,backref:m}})=>{if(m&&n&&!n.has(m))return f;let w=`_$${l}`;if(d||g){let y=o+s.length+1;return s.push(y),Ct(a,y),d?f:`(?<${g}${w}>`}return _`\k<${m}${w}>`},A.DEFAULT)}return c}function Ct(e,t){for(let r=0;r<e.length;r++)if(e[r]>=t)e[r]++}function ur(e,t,r,n,a,s){if(e.size&&n){let o=0;be(t,cr,()=>o++,A.DEFAULT);let i=s-o+a,u=new Map;return e.forEach((c,p)=>{let l=(n-o*r)/r,f=o*r,g=p>i+o?p+n:p,d=[];for(let m of c)if(m<=i)d.push(m);else if(m>i+o+l)d.push(m+n);else if(m<=i+o)for(let w=0;w<=r;w++)d.push(m+o*w);else for(let w=0;w<=r;w++)d.push(m+f+l*w);u.set(g,d)}),u}return e}var{fromCodePoint:x,raw:h}=String,M={},ge=globalThis.RegExp;M.flagGroups=(()=>{try{new ge("(?i:)")}catch{return!1}return!0})();M.unicodeSets=(()=>{try{new ge("[[]]","v")}catch{return!1}return!0})();M.bugFlagVLiteralHyphenIsRange=M.unicodeSets?(()=>{try{new ge(h`[\d\-a]`,"v")}catch{return!0}return!1})():!1;M.bugNestedClassIgnoresNegation=M.unicodeSets&&new ge("[[^a]]","v").test("a");function de(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ne(e,t,r){if(!e.has(t))e.set(t,r);return e.get(t)}function Me(e,t){return pr[e]>=pr[t]}function bt(e,t){if(e==null)throw Error(t??"Value expected");return e}var pr={ES2025:2025,ES2024:2024,ES2018:2018},xt={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function mr(e={}){if({}.toString.call(e)!=="[object Object]")throw Error("Unexpected options");if(e.target!==void 0&&!xt[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};if(t.target==="auto")t.target=M.flagGroups?"ES2025":M.unicodeSets?"ES2024":"ES2018";return t}var kt="[\t-\r ]",Et=new Set([x(304),x(305)]),F=h`[\p{L}\p{M}\p{N}\p{Pc}]`;function wr(e){if(Et.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),a=$t.get(r),s=At.get(r),o=It.get(r);if([...n].length===1)t.add(n);return o&&t.add(o),a&&t.add(a),t.add(r),s&&t.add(s),[...t]}var Ne=new Map(`C Other
49
- Cc Control cntrl
50
- Cf Format
51
- Cn Unassigned
52
- Co Private_Use
53
- Cs Surrogate
54
- L Letter
55
- LC Cased_Letter
56
- Ll Lowercase_Letter
57
- Lm Modifier_Letter
58
- Lo Other_Letter
59
- Lt Titlecase_Letter
60
- Lu Uppercase_Letter
61
- M Mark Combining_Mark
62
- Mc Spacing_Mark
63
- Me Enclosing_Mark
64
- Mn Nonspacing_Mark
65
- N Number
66
- Nd Decimal_Number digit
67
- Nl Letter_Number
68
- No Other_Number
69
- P Punctuation punct
70
- Pc Connector_Punctuation
71
- Pd Dash_Punctuation
72
- Pe Close_Punctuation
73
- Pf Final_Punctuation
74
- Pi Initial_Punctuation
75
- Po Other_Punctuation
76
- Ps Open_Punctuation
77
- S Symbol
78
- Sc Currency_Symbol
79
- Sk Modifier_Symbol
80
- Sm Math_Symbol
81
- So Other_Symbol
82
- Z Separator
83
- Zl Line_Separator
84
- Zp Paragraph_Separator
85
- Zs Space_Separator
86
- ASCII
87
- ASCII_Hex_Digit AHex
88
- Alphabetic Alpha
89
- Any
90
- Assigned
91
- Bidi_Control Bidi_C
92
- Bidi_Mirrored Bidi_M
93
- Case_Ignorable CI
94
- Cased
95
- Changes_When_Casefolded CWCF
96
- Changes_When_Casemapped CWCM
97
- Changes_When_Lowercased CWL
98
- Changes_When_NFKC_Casefolded CWKCF
99
- Changes_When_Titlecased CWT
100
- Changes_When_Uppercased CWU
101
- Dash
102
- Default_Ignorable_Code_Point DI
103
- Deprecated Dep
104
- Diacritic Dia
105
- Emoji
106
- Emoji_Component EComp
107
- Emoji_Modifier EMod
108
- Emoji_Modifier_Base EBase
109
- Emoji_Presentation EPres
110
- Extended_Pictographic ExtPict
111
- Extender Ext
112
- Grapheme_Base Gr_Base
113
- Grapheme_Extend Gr_Ext
114
- Hex_Digit Hex
115
- IDS_Binary_Operator IDSB
116
- IDS_Trinary_Operator IDST
117
- ID_Continue IDC
118
- ID_Start IDS
119
- Ideographic Ideo
120
- Join_Control Join_C
121
- Logical_Order_Exception LOE
122
- Lowercase Lower
123
- Math
124
- Noncharacter_Code_Point NChar
125
- Pattern_Syntax Pat_Syn
126
- Pattern_White_Space Pat_WS
127
- Quotation_Mark QMark
128
- Radical
129
- Regional_Indicator RI
130
- Sentence_Terminal STerm
131
- Soft_Dotted SD
132
- Terminal_Punctuation Term
133
- Unified_Ideograph UIdeo
134
- Uppercase Upper
135
- Variation_Selector VS
136
- White_Space space
137
- XID_Continue XIDC
138
- XID_Start XIDS`.split(/\s/).map((e)=>[Z(e),e])),At=new Map([["s",x(383)],[x(383),"s"]]),It=new Map([[x(223),x(7838)],[x(107),x(8490)],[x(229),x(8491)],[x(969),x(8486)]]),$t=new Map([O(453),O(456),O(459),O(498),...$e(8072,8079),...$e(8088,8095),...$e(8104,8111),O(8124),O(8140),O(8188)]),vt=new Map([["alnum",h`[\p{Alpha}\p{Nd}]`],["alpha",h`\p{Alpha}`],["ascii",h`\p{ASCII}`],["blank",h`[\p{Zs}\t]`],["cntrl",h`\p{Cc}`],["digit",h`\p{Nd}`],["graph",h`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",h`\p{Lower}`],["print",h`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",h`[\p{P}\p{S}]`],["space",h`\p{space}`],["upper",h`\p{Upper}`],["word",h`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",h`\p{AHex}`]]);function St(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r}function O(e){let t=x(e);return[t.toLowerCase(),t]}function $e(e,t){return St(e,t).map((r)=>O(r))}var yr=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function _t(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Cr(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Me(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};z(e,Mt,n);let a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};z(e,Nt,s);let o={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return z(e,Lt,o),e._originMap=s.groupOriginByCopy,e._strategy=n.strategy,e}var Mt={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if(a==="repeater"){let s=v();s.body[0].body.push(U({negate:!0,body:n}),T("Any"));let o=v();o.body[0].body.push(ye("greedy",0,1/0,s)),r(C(o,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter((s)=>s.kind==="flags");for(let s=r+1;s<t.body.length;s++){let o=t.body[s];ne(n,o,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=xr(t.get(e));if(r){let n=v({flags:r});n.body[0].body=e.body,e.body=[C(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:s,replaceWith:o},i){let{kind:u,negate:c}=e,{asciiWordBoundaries:p,avoidSubclass:l,supportedGNodes:f,wordIsAscii:g}=i;if(u==="text_segment_boundary")throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);else if(u==="line_end")o(C(U({body:[G({body:[ce("string_end")]}),G({body:[X(10)]})]}),t));else if(u==="line_start")o(C(P(h`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(f.has(e))a.flags.sticky=!0,s();else{let d=n[r-1];if(d&&Ot(d))o(C(U({negate:!0}),t));else if(l)throw Error(h`Uses "\G" in a way that requires a subclass`);else o(D(ce("string_start"),t)),i.strategy="clip_search"}else if(u==="string_end"||u==="string_start");else if(u==="string_end_newline")o(C(P(h`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!g&&!p){let d=`(?:(?<=${F})(?!${F})|(?<!${F})(?=${F}))`,m=`(?:(?<=${F})(?=${F})|(?<!${F})(?!${F}))`;o(C(P(c?m:d),t))}}else throw Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;if(typeof r==="string"&&!Se(r))r=ve(r,t),e.ref=r},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;if(n&&!Se(n))n=ve(n,t),e.name=n;if(r.set(e.number,e),n)r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let n=Y({body:[e]});r(C(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:s,spaceIsAscii:o,wordIsAscii:i}){let{kind:u,negate:c,value:p}=e;if(s&&(u==="digit"||p==="digit")){r(D(le("digit",{negate:c}),t));return}if(o&&(u==="space"||p==="space")){r(C(_e(P(kt),c),t));return}if(i&&(u==="word"||p==="word")){r(D(le("word",{negate:c}),t));return}if(u==="any")r(D(T("Any"),t));else if(u==="digit")r(D(T("Nd",{negate:c}),t));else if(u==="dot");else if(u==="text_segment"){if(n==="strict")throw Error(h`Use of "\X" requires non-strict accuracy`);let l="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=h`\p{RI}{2}|${l}(?:\u200D${l})*`;r(C(P(h`(?>\r\n|${a?h`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(u==="hex")r(D(T("AHex",{negate:c}),t));else if(u==="newline")r(C(P(c?`[^
139
- ]`:`(?>\r
140
- ?|[
141
- \v\f…\u2028\u2029])`),t));else if(u==="posix")if(!a&&(p==="graph"||p==="print")){if(n==="strict")throw Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let l={graph:"!-~",print:" -~"}[p];if(c)l=`\x00-${x(l.codePointAt(0)-1)}${x(l.codePointAt(2)+1)}-\uDBFF\uDFFF`;r(C(P(`[${l}]`),t))}else r(C(_e(P(vt.get(p)),c),t));else if(u==="property"){if(!Ne.has(Z(p)))e.key="sc"}else if(u==="space")r(D(T("space",{negate:c}),t));else if(u==="word")r(C(_e(P(F),c),t));else throw Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:o}){let{kind:i,flags:u}=e;if(i==="flags")if(!u.enable&&!u.disable)n();else{let c=v({flags:u});c.body[0].body=o(),a(C(c,t),{traverse:!0})}else if(i==="keep"){let c=r.body[0],l=r.body.length===1&&oe(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:r;if(t.parent!==l||l.body.length>1)throw Error(h`Uses "\K" in a way that's unsupported`);let f=U({behind:!0});f.body[0].body=s(),a(C(f,t))}else throw Error(`Unexpected directive kind "${i}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach((r)=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;if(r==="lookbehind")t.passedLookbehind=!0},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if(n==="fail")r(C(U({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=v();t.body[0].body.push(e.body),e.body=C(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let s of e.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{let o=Er(s.body);if(o)n=!0,Array.isArray(o)?r.push(...o):r.push(o);else a=!0}if(n&&!a)r.forEach((s)=>t.add(s))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw Error(h`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;if(typeof r==="string"&&!Se(r))r=ve(r,t),e.ref=r}},Nt={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;if(!n)r.set(e,[...t.get(a).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:s,multiplexCapturesToLeftByRef:o,openRefs:i,reffedNodesByReferencer:u}){let c=a.get(e);if(c&&i.has(e.number)){let l=D(fr(e.number),t);u.set(l,i.get(e.number)),r(l);return}if(i.set(e.number,e),o.set(e.number,[]),e.name)ne(o,e.name,[]);let p=o.get(e.name??e.number);for(let l=0;l<p.length;l++){let f=p[l];if(c===f.node||c&&c===f.origin||e===f.origin){p.splice(l,1);break}}if(o.get(e.number).push({node:e,origin:c}),e.name)o.get(e.name).push({node:e,origin:c});if(e.name){let l=ne(s,e.name,new Map),f=!1;if(c)f=!0;else for(let g of l.values())if(!g.hasDuplicateNameToRemove){f=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){if(t.get(e.number)===e)t.delete(e.number)}},Group:{enter({node:e},t){if(t.prevFlags=t.currentFlags,e.flags)t.currentFlags=de(t.currentFlags,e.flags)},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:a,ref:s}=e;if(a){let p=t;while(p=p.parent)if(p.type==="CapturingGroup"&&(p.name===s||p.number===s))break;n.reffedNodesByReferencer.set(e,p);return}let o=n.subroutineRefMap.get(s),i=s===0,u=i?fr(0):br(o,n.groupOriginByCopy,null),c=u;if(!i){let p=xr(Pt(o,(f)=>f.type==="Group"&&!!f.flags)),l=p?de(n.globalFlags,p):n.globalFlags;if(!Gt(l,n.currentFlags))c=v({flags:Rt(l)}),c.body[0].body.push(u)}r(C(c,t),{traverse:!i})}},Lt={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let s=n.reffedNodesByReferencer.get(e).filter((o)=>Ft(o,e));if(!s.length)r(C(U({negate:!0}),t));else if(s.length>1){let o=v({atomic:!0,body:s.reverse().map((i)=>G({body:[ie(i.number)]}))});r(C(o,t))}else e.ref=s[0].number},CapturingGroup({node:e},t){if(e.number=++t.numCapturesToLeft,e.name){if(t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove)delete e.name}},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){let a=we();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){if(!e.isRecursive||e.ref===0)return;e.ref=t.reffedNodesByReferencer.get(e).number}};function Cr(e){z(e,{"*"({node:t,parent:r}){t.parent=r}})}function Gt(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Ft(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let n=kr(r.parent);for(let a of n){if(a===r)break;if(a===e||Ar(a,e))return!0}}while(r=r.parent);throw Error("Unexpected path")}function br(e,t,r,n){let a=Array.isArray(e)?[]:{};for(let[s,o]of Object.entries(e))if(s==="parent")a.parent=Array.isArray(r)?n:r;else if(o&&typeof o==="object")a[s]=br(o,t,a,r);else{if(s==="type"&&o==="CapturingGroup")t.set(a,t.get(e)??e);a[s]=o}return a}function fr(e){let t=Ce(e);return t.isRecursive=!0,t}function Pt(e,t){let r=[];while(e=e.parent)if(!t||t(e))r.push(e);return r}function ve(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function xr(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};if(e.forEach(({flags:n})=>{t.forEach((a)=>{if(n.enable?.[a])delete r.disable[a],r.enable[a]=!0;if(n.disable?.[a])r.disable[a]=!0})}),!Object.keys(r.enable).length)delete r.enable;if(!Object.keys(r.disable).length)delete r.disable;if(r.enable||r.disable)return r;return null}function Rt({dotAll:e,ignoreCase:t}){let r={};if(e||t)r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0);if(!e||!t)r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0);return r}function kr(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Er(e){let t=e.find((r)=>r.kind==="search_start"||Dt(r,{negate:!1})||!Ut(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let n of t.body){let a=Er(n.body);if(!a)return null;Array.isArray(a)?r.push(...a):r.push(a)}return r}return null}function Ar(e,t){let r=kr(e)??[];for(let n of r)if(n===t||Ar(n,t))return!0;return!1}function Ut({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Ot(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Dt(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&oe(e.body[0],{type:"Assertion",kind:"search_start"})}function Se(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function P(e,t){let n=ue(e,{...t,unicodePropertyMap:Ne}).body;if(n.length>1||n[0].body.length>1)return v({body:n});return n[0].body[0]}function _e(e,t){return e.negate=t,e}function D(e,t){return e.parent=t,e}function C(e,t){return Cr(e),e.parent=t,e}function Bt(e,t){let r=mr(t),n=Me(r.target,"ES2024"),a=Me(r.target,"ES2025"),s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw Error("Invalid recursionLimit; use 2-20");let o=null,i=null;if(!a){let g=[e.flags.ignoreCase];z(e,Tt,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(d){g.push(d)},setHasCasedChar(){if(g.at(-1))o=!0;else i=!0}})}let u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!i)},c=e,p={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!a&&o&&i),useFlagMods:a,useFlagV:n,verbose:r.verbose};function l(g){return p.lastNode=c,c=g,bt(zt[g.type],`Unexpected node type "${g.type}"`)(g,p,l)}let f={pattern:e.body.map(l).join("|"),flags:l(e.flags),options:{...e.options}};if(!n)delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null;return f._captureTransfers=new Map,f._hiddenCaptures=[],p.captureMap.forEach((g,d)=>{if(g.hidden)f._hiddenCaptures.push(d);if(g.transferTo)ne(f._captureTransfers,g.transferTo,[]).push(d)}),f}var Tt={"*":{enter({node:e},t){if(gr(e)){let r=t.getCurrentModI();t.pushModI(e.flags?de({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){if(gr(e))t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){if(Le(x(e.value)))t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){if(t(),Ir(e,{firstOnly:!0}).length)r.setHasCasedChar()},CharacterSet({node:e},t){if(e.kind==="property"&&yr.has(e.value))t.setHasCasedChar()}},zt={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?h`\B`:h`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=="number")throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:s}=e,o={ignoreCase:t.currentFlags.ignoreCase},i=t.originMap.get(e);if(i){if(o.hidden=!0,s>i.number)o.transferTo=i.number}return t.captureMap.set(s,o),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=x(e),n=q(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Le(r)){let a=wr(r);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:s}=e,{body:o}=e;if(n==="intersection"&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");if(M.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(hr))o=[X(45),...o.filter((c)=>!hr(c))];let i=()=>`[${a?"^":""}${o.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||M.bugNestedClassIgnoresNegation)&&!a){let p=o.filter((l)=>l.type==="CharacterClass"&&l.kind==="union"&&l.negate);if(p.length){let l=v(),f=l.body[0];if(l.parent=s,f.parent=l,o=o.filter((g)=>!p.includes(g)),e.body=o,o.length)e.parent=f,f.body.push(e);else l.body.pop();return p.forEach((g)=>{let d=G({body:[g]});g.parent=d,d.parent=l,l.body.push(d)}),r(l)}}t.inCharClass=!0;let c=i();return t.inCharClass=!1,c}let u=o[0];if(n==="union"&&!a&&u&&((!t.useFlagV||!t.verbose)&&s.kind==="union"&&!(M.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&s.kind==="intersection"&&o.length===1&&u.type!=="CharacterClassRange"))return o.map(r).join("");if(!t.useFlagV&&s.type==="CharacterClass")throw Error("Uses nested character class in a way that requires min target ES2024");return i()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=q(r,a),o=q(n,a),i=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let u=Ir(e);Xt(u).forEach((p)=>{i.add(Array.isArray(p)?`${q(p[0],a)}-${q(p[1],a)}`:q(p,a))})}return`${s}-${o}${[...i].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":h`[^\n]`;if(e==="digit")return t?h`\D`:h`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&yr.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?h`\P`:h`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?h`\W`:h`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},a,s){let o=a.currentFlags;if(r)a.currentFlags=de(o,r);let i=t.map(s).join("|"),u=!a.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!a.useFlagMods||!r)?i:`(?${Zt(e,r,a.useFlagMods)}${i})`;return a.currentFlags=o,u},LookaroundAssertion({body:e,kind:t,negate:r},n,a){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,r){return r(e.body)+Qt(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return t===0?`(?R=${n})`:h`\g<${t}&R=${n}>`}},Vt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Wt=new Set(["-","\\","]","^","["]),Ht=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),dr=new Map([[9,h`\t`],[10,h`\n`],[11,h`\v`],[12,h`\f`],[13,h`\r`],[8232,h`\u2028`],[8233,h`\u2029`],[65279,h`\uFEFF`]]),jt=/^\p{Cased}$/u;function Le(e){return jt.test(e)}function Ir(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,s=[];if(n<65&&(a===65535||a>=131071)||n===65536&&a>=131071)return s;for(let o=n;o<=a;o++){let i=x(o);if(!Le(i))continue;let u=wr(i).filter((c)=>{let p=c.codePointAt(0);return p<n||p>a});if(u.length){if(s.push(...u),r)break}}return s}function q(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(dr.has(e))return dr.get(e);if(e<32||e>126&&e<160||e>262143||t&&qt(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=r?n?Ht:Wt:Vt,s=x(e);return(a.has(s)?"\\":"")+s}function Xt(e){let t=e.map((a)=>a.codePointAt(0)).sort((a,s)=>a-s),r=[],n=null;for(let a=0;a<t.length;a++)if(t[a+1]===t[a]+1)n??=t[a];else if(n===null)r.push(t[a]);else r.push([n,t[a]]),n=null;return r}function Zt(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:a,disable:s}=t;n=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${n}:`}function Qt({kind:e,max:t,min:r}){let n;if(!r&&t===1)n="?";else if(!r&&t===1/0)n="*";else if(r===1&&t===1/0)n="+";else if(r===t)n=`{${r}}`;else n=`{${r},${t===1/0?"":t}}`;return n+{greedy:"",lazy:"?",possessive:"+"}[e]}function gr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function qt(e){return e>47&&e<58}function hr({type:e,value:t}){return e==="Character"&&t===45}var Jt=class e extends RegExp{#r=new Map;#e=null;#n;#t=null;#s=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){let a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");let s=t;super(s,r);if(this.#n=s.source,s instanceof e)this.#r=s.#r,this.#t=s.#t,this.#s=s.#s,this.rawOptions=s.rawOptions}else{let s={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r);this.#n=t,this.#r=Yt(s.hiddenCaptures,s.transfers),this.#s=s.strategy,this.rawOptions=n??{}}if(!a)this.#e=this}exec(t){if(!this.#e){let{lazyCompile:a,...s}=this.rawOptions;this.#e=new e(this.#n,this.flags,s)}let r=this.global||this.sticky,n=this.lastIndex;if(this.#s==="clip_search"&&r&&n){this.lastIndex=0;let a=this.#a(t.slice(n));if(a)Kt(a,n,t,this.hasIndices),this.lastIndex+=n;return a}return this.#a(t)}#a(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#r.size)return r;let n=[...r];r.length=1;let a;if(this.hasIndices)a=[...r.indices],r.indices.length=1;let s=[0];for(let o=1;o<n.length;o++){let{hidden:i,transferTo:u}=this.#r.get(o)??{};if(i)s.push(null);else if(s.push(r.length),r.push(n[o]),this.hasIndices)r.indices.push(a[o]);if(u&&n[o]!==void 0){let c=s[u];if(!c)throw Error(`Invalid capture transfer to "${c}"`);if(r[c]=n[o],this.hasIndices)r.indices[c]=a[o];if(r.groups){if(!this.#t)this.#t=en(this.source);let p=this.#t.get(u);if(p){if(r.groups[p]=n[o],this.hasIndices)r.indices.groups[p]=a[o]}}}}return r}};function Kt(e,t,r,n){if(e.index+=t,e.input=r,n){let a=e.indices;for(let o=0;o<a.length;o++){let i=a[o];if(i)a[o]=[i[0]+t,i[1]+t]}let s=a.groups;if(s)Object.keys(s).forEach((o)=>{let i=s[o];if(i)s[o]=[i[0]+t,i[1]+t]})}}function Yt(e,t){let r=new Map;for(let n of e)r.set(n,{hidden:!0});for(let[n,a]of t)for(let s of a)ne(r,s,{}).transferTo=n;return r}function en(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,n=0,a=0,s;while(s=t.exec(e)){let{0:o,groups:{capture:i,name:u}}=s;if(o==="[")n++;else if(!n){if(i){if(a++,u)r.set(a,u)}}else if(o==="]")n--}return r}function $r(e,t){let r=rn(e,t);if(r.options)return new Jt(r.pattern,r.flags,r.options);return new RegExp(r.pattern,r.flags)}function rn(e,t){let r=mr(t),n=ue(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Ne}),a=_t(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),s=Bt(a,r),o=lr(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),i=Ee(o.pattern),u=ke(i.pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),c={pattern:u.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let p=u.hiddenCaptures.sort((d,m)=>d-m),l=Array.from(u.captureTransfers),f=a._strategy,g=c.pattern.length>=r.lazyCompileLength;if(p.length||l.length||f||g)c.options={...p.length&&{hiddenCaptures:p},...l.length&&{transfers:l},...f&&{strategy:f},...g&&{lazyCompile:g}}}return c}function vr(e,t){return $r(e,{global:!0,hasIndices:!0,lazyCompileLength:3000,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function tn(e={}){let t={target:"auto",cache:new Map,...e};return t.regexConstructor||=(r)=>vr(r,{target:t.target}),{createScanner(r){return new Fe(r,t)},createString(r){return{content:r}}}}export{tn as createJavaScriptRegexEngine};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{ee,r,e,n,y,ye,oe}from"./chunk-2s6fhjjc.js";import{jn,Hr}from"./chunk-79whhay2.js";import"./chunk-wvdk3w03.js";function B({connection:p}){let{Button:l,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=y(),c=ee(),[S,b]=r(""),s=Hr({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,i)=>JSON.stringify(t.models)!==JSON.stringify(i.models)||t.research!==i.research}),N=(t)=>{if(!t)return;s.edit((i)=>{if(i.models.includes(t)||i.models.length>=8)return i;return{...i,models:[...i.models,t]}}),b("")},k=(t)=>{s.edit((i)=>({...i,models:i.models.filter((o)=>o!==t)}))},a=s.settings?.models??[];return n("form",{id:c,onSubmit:s.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${a.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[a.map((t)=>{let i=s.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=i?.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-[13px] text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.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(oe,{className:"size-3.5"})})]},t)}),a.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:s.modelList.models.filter((t)=>!a.includes(t.id))},value:S,onChange:N})}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.refreshing||s.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void s.load(!0),className:"text-faint hover:text-ink",children:e(ye,{className:x("size-3.5",s.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:s.settings?.research??!0,disabled:s.loading||s.saving,onCheckedChange:(t)=>{s.edit((i)=>({...i,research:t}))}})})}),e(jn,{formID:c,notice:s.notice,dirty:s.dirty,busy:s.loading||s.saving,saving:s.saving,onReset:s.reset})]})}export{B as CouncilSettingsSection};
Binary file
Binary file