@bkm016/basalt 0.1.28 → 0.1.30

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 (972) hide show
  1. package/README.md +2 -2
  2. package/chunk-01xyv3ct.js +7 -0
  3. package/chunk-06gjy5s2.js +5 -0
  4. package/chunk-0pztrs5x.js +11 -0
  5. package/chunk-0v6seb9q.js +20 -0
  6. package/chunk-0z138vnr.js +12 -0
  7. package/chunk-1c8yqctx.js +3 -0
  8. package/chunk-1wt8pbns.js +2 -0
  9. package/chunk-1yvgmxew.js +2 -0
  10. package/chunk-229men2n.js +31 -0
  11. package/chunk-29x35nj4.js +5 -0
  12. package/chunk-3ee7dyh4.js +18 -0
  13. package/chunk-3gf3g0xt.js +3 -0
  14. package/chunk-3gts3ja0.js +8 -0
  15. package/chunk-4stj480w.js +3 -0
  16. package/chunk-4t2t0hcp.js +3 -0
  17. package/chunk-57b764s0.js +5 -0
  18. package/chunk-63mr2aa2.js +50 -0
  19. package/chunk-64h4gw8d.js +3 -0
  20. package/chunk-7gxx6829.js +2 -0
  21. package/chunk-898tss1j.js +51 -0
  22. package/chunk-9em1sne5.js +2 -0
  23. package/chunk-9p8n1xjn.js +4048 -0
  24. package/chunk-a0h0x1dn.js +3 -0
  25. package/chunk-a2r89pk2.js +12 -0
  26. package/chunk-a5mtw4y5.js +2 -0
  27. package/chunk-bbqhx91f.js +3 -0
  28. package/chunk-c9q0y8hp.js +4 -0
  29. package/chunk-cgzez9a5.js +2 -0
  30. package/chunk-drjajr57.js +3 -0
  31. package/chunk-dsnz6mzt.js +25 -0
  32. package/chunk-ee18zzzv.js +3 -0
  33. package/chunk-eg161ep9.js +3 -0
  34. package/chunk-ej42zg82.js +2 -0
  35. package/chunk-ejw7k7nn.js +2 -0
  36. package/chunk-f95j1a8x.js +3 -0
  37. package/chunk-fdgrayj5.js +3 -0
  38. package/chunk-fnxstmm5.js +2 -0
  39. package/chunk-gtjtkfjk.js +3 -0
  40. package/chunk-h4rve6x4.js +63 -0
  41. package/chunk-hp9bcx4x.js +2 -0
  42. package/chunk-hvxc1wyv.js +3 -0
  43. package/chunk-je4cjwhm.js +3 -0
  44. package/chunk-jn1zdamp.js +9 -0
  45. package/chunk-jpah46d1.js +2 -0
  46. package/chunk-jvsrda4n.js +16 -0
  47. package/chunk-jyhsae16.js +2 -0
  48. package/chunk-k7n6bhkz.js +3 -0
  49. package/chunk-kvv3mvk5.js +2 -0
  50. package/chunk-kzv5cgqz.js +286 -0
  51. package/chunk-mz3zt06w.js +7 -0
  52. package/chunk-n4crb1x3.js +2 -0
  53. package/chunk-nmmf0w14.js +5 -0
  54. package/chunk-nr5p4pvp.js +3 -0
  55. package/chunk-p39fex1r.js +2 -0
  56. package/chunk-pefgy360.js +7 -0
  57. package/chunk-psr71nf8.js +2 -0
  58. package/chunk-qsgc7b7x.js +3 -0
  59. package/chunk-qygv2jqa.js +2 -0
  60. package/chunk-r0gsb1qs.js +3 -0
  61. package/chunk-r449z8pj.js +2 -0
  62. package/chunk-r49sxmnc.js +3 -0
  63. package/chunk-rd52y45c.js +8 -0
  64. package/chunk-repjnwda.js +10 -0
  65. package/chunk-rh6yvdwz.js +3 -0
  66. package/chunk-s2d5zp37.js +44 -0
  67. package/chunk-s68eamf1.js +2 -0
  68. package/chunk-sacdpkwc.js +3 -0
  69. package/chunk-tey1hftz.js +490 -0
  70. package/chunk-vhvzyxx5.js +25 -0
  71. package/chunk-vytm86v0.js +2 -0
  72. package/chunk-x4bc1xkx.js +39 -0
  73. package/chunk-xa23zmzv.js +2 -0
  74. package/chunk-xq7zspqs.js +3 -0
  75. package/chunk-xqz8ac7j.js +2 -0
  76. package/chunk-ycce2a81.js +2 -0
  77. package/chunk-z99s31w5.js +2 -0
  78. package/chunk-zs6ytk7b.js +59 -0
  79. package/chunk-ztm5hqwh.js +2 -0
  80. package/chunk-zv29qg1q.js +10 -0
  81. package/compiled.js +9 -9
  82. package/package.json +4 -1
  83. package/ui-test-worker.js +79 -77
  84. package/web/chunk-02z3bqps.js +1 -0
  85. package/web/chunk-02z3bqps.js.br +0 -0
  86. package/web/chunk-02z3bqps.js.gz +0 -0
  87. package/web/chunk-0dg4qqe3.js +1 -0
  88. package/web/chunk-0dg4qqe3.js.br +2 -0
  89. package/web/chunk-0dg4qqe3.js.gz +0 -0
  90. package/web/chunk-0qar8vwc.js +2 -0
  91. package/web/chunk-0qar8vwc.js.br +0 -0
  92. package/web/chunk-0qar8vwc.js.gz +0 -0
  93. package/web/chunk-0qmgmqzd.js +2 -0
  94. package/web/chunk-0qmgmqzd.js.br +0 -0
  95. package/web/chunk-0qmgmqzd.js.gz +0 -0
  96. package/web/chunk-1pffd2va.js +2 -0
  97. package/web/chunk-1pffd2va.js.br +0 -0
  98. package/web/chunk-1pffd2va.js.gz +0 -0
  99. package/web/chunk-1q82849a.js +1 -0
  100. package/web/chunk-1q82849a.js.br +0 -0
  101. package/web/chunk-1q82849a.js.gz +0 -0
  102. package/web/chunk-2ajkzs3d.js +12 -0
  103. package/web/chunk-2ajkzs3d.js.br +0 -0
  104. package/web/chunk-2ajkzs3d.js.gz +0 -0
  105. package/web/chunk-2ttatv42.js +2 -0
  106. package/web/chunk-2ttatv42.js.br +0 -0
  107. package/web/chunk-2ttatv42.js.gz +0 -0
  108. package/web/chunk-2xrkfj8n.js +291 -0
  109. package/web/chunk-2xrkfj8n.js.br +0 -0
  110. package/web/chunk-2xrkfj8n.js.gz +0 -0
  111. package/web/chunk-45xqp3dn.js +1 -0
  112. package/web/chunk-45xqp3dn.js.br +0 -0
  113. package/web/chunk-45xqp3dn.js.gz +0 -0
  114. package/web/chunk-4fdgpye3.js +2 -0
  115. package/web/chunk-4fdgpye3.js.br +0 -0
  116. package/web/chunk-4fdgpye3.js.gz +0 -0
  117. package/web/chunk-4fzpmw3f.js +89 -0
  118. package/web/chunk-4fzpmw3f.js.br +0 -0
  119. package/web/chunk-4fzpmw3f.js.gz +0 -0
  120. package/web/chunk-51njd9f8.js +89 -0
  121. package/web/chunk-51njd9f8.js.br +0 -0
  122. package/web/chunk-51njd9f8.js.gz +0 -0
  123. package/web/chunk-66zw8mqe.js +2 -0
  124. package/web/chunk-66zw8mqe.js.br +0 -0
  125. package/web/chunk-66zw8mqe.js.gz +0 -0
  126. package/web/chunk-6f9btq4p.js +1 -0
  127. package/web/chunk-6f9btq4p.js.br +0 -0
  128. package/web/chunk-6f9btq4p.js.gz +0 -0
  129. package/web/chunk-6x73jtw7.js +7 -0
  130. package/web/chunk-6x73jtw7.js.br +0 -0
  131. package/web/chunk-6x73jtw7.js.gz +0 -0
  132. package/web/chunk-6y389kg6.js +1 -0
  133. package/web/chunk-6y389kg6.js.br +0 -0
  134. package/web/chunk-6y389kg6.js.gz +0 -0
  135. package/web/chunk-73peavw3.js +1 -0
  136. package/web/chunk-73peavw3.js.br +0 -0
  137. package/web/chunk-73peavw3.js.gz +0 -0
  138. package/web/chunk-7p7qtp6d.js +1 -0
  139. package/web/chunk-7p7qtp6d.js.br +0 -0
  140. package/web/chunk-7p7qtp6d.js.gz +0 -0
  141. package/web/chunk-81zj375g.js +1 -0
  142. package/web/chunk-81zj375g.js.br +0 -0
  143. package/web/chunk-81zj375g.js.gz +0 -0
  144. package/web/chunk-89dwrkrr.js +1 -0
  145. package/web/chunk-89dwrkrr.js.br +0 -0
  146. package/web/chunk-89dwrkrr.js.gz +0 -0
  147. package/web/chunk-8e829p0a.css +1 -0
  148. package/web/chunk-8e829p0a.css.br +0 -0
  149. package/web/chunk-8e829p0a.css.gz +0 -0
  150. package/web/chunk-9j7v0e4v.js +2 -0
  151. package/web/chunk-9j7v0e4v.js.br +0 -0
  152. package/web/chunk-9j7v0e4v.js.gz +0 -0
  153. package/web/chunk-9mgqrwwh.js +1 -0
  154. package/web/chunk-9mgqrwwh.js.br +0 -0
  155. package/web/chunk-9mgqrwwh.js.gz +0 -0
  156. package/web/chunk-ag97fhx1.js +1 -0
  157. package/web/chunk-ag97fhx1.js.br +0 -0
  158. package/web/chunk-ag97fhx1.js.gz +0 -0
  159. package/web/chunk-anm2706b.js +139 -0
  160. package/web/chunk-anm2706b.js.br +0 -0
  161. package/web/chunk-anm2706b.js.gz +0 -0
  162. package/web/chunk-aqz2exas.js +142 -0
  163. package/web/chunk-aqz2exas.js.br +0 -0
  164. package/web/chunk-aqz2exas.js.gz +0 -0
  165. package/web/chunk-at6wp72y.js +1 -0
  166. package/web/chunk-at6wp72y.js.br +0 -0
  167. package/web/chunk-at6wp72y.js.gz +0 -0
  168. package/web/chunk-ayfqxte8.js +1 -0
  169. package/web/chunk-ayfqxte8.js.br +2 -0
  170. package/web/chunk-ayfqxte8.js.gz +0 -0
  171. package/web/chunk-b564qxgk.js +98 -0
  172. package/web/chunk-b564qxgk.js.br +0 -0
  173. package/web/chunk-b564qxgk.js.gz +0 -0
  174. package/web/chunk-b9atg5sw.js +1 -0
  175. package/web/chunk-b9atg5sw.js.br +0 -0
  176. package/web/chunk-b9atg5sw.js.gz +0 -0
  177. package/web/chunk-bg2k54a5.js +70 -0
  178. package/web/chunk-bg2k54a5.js.br +0 -0
  179. package/web/chunk-bg2k54a5.js.gz +0 -0
  180. package/web/chunk-c2vtzhbs.js +1 -0
  181. package/web/chunk-c2vtzhbs.js.br +0 -0
  182. package/web/chunk-c2vtzhbs.js.gz +0 -0
  183. package/web/chunk-cb0g87b5.js +2 -0
  184. package/web/chunk-cb0g87b5.js.br +3 -0
  185. package/web/chunk-cb0g87b5.js.gz +0 -0
  186. package/web/chunk-cgm44rx8.js +2 -0
  187. package/web/chunk-cgm44rx8.js.br +0 -0
  188. package/web/chunk-cgm44rx8.js.gz +0 -0
  189. package/web/chunk-ctckn7gz.js +2 -0
  190. package/web/chunk-ctckn7gz.js.br +0 -0
  191. package/web/chunk-ctckn7gz.js.gz +0 -0
  192. package/web/chunk-def5mk0w.js +2 -0
  193. package/web/chunk-def5mk0w.js.br +0 -0
  194. package/web/chunk-def5mk0w.js.gz +0 -0
  195. package/web/chunk-e2nhv6bb.js +2 -0
  196. package/web/chunk-e2nhv6bb.js.br +0 -0
  197. package/web/chunk-e2nhv6bb.js.gz +0 -0
  198. package/web/chunk-e7djq8rb.js +2 -0
  199. package/web/chunk-e7djq8rb.js.br +0 -0
  200. package/web/chunk-e7djq8rb.js.gz +0 -0
  201. package/web/chunk-eagbq8k2.js +1 -0
  202. package/web/chunk-eagbq8k2.js.br +0 -0
  203. package/web/chunk-eagbq8k2.js.gz +0 -0
  204. package/web/chunk-fbxw7w0z.js +1 -0
  205. package/web/chunk-fbxw7w0z.js.br +0 -0
  206. package/web/chunk-fbxw7w0z.js.gz +0 -0
  207. package/web/chunk-fn95dxq2.js +1 -0
  208. package/web/chunk-fn95dxq2.js.br +0 -0
  209. package/web/chunk-fn95dxq2.js.gz +0 -0
  210. package/web/chunk-g3n4tbbv.js +1 -0
  211. package/web/chunk-g3n4tbbv.js.br +2 -0
  212. package/web/chunk-g3n4tbbv.js.gz +0 -0
  213. package/web/chunk-gp0xqyh2.js +62 -0
  214. package/web/chunk-gp0xqyh2.js.br +0 -0
  215. package/web/chunk-gp0xqyh2.js.gz +0 -0
  216. package/web/chunk-h2rv3exr.js +84 -0
  217. package/web/chunk-h2rv3exr.js.br +0 -0
  218. package/web/chunk-h2rv3exr.js.gz +0 -0
  219. package/web/chunk-h47k4j7f.js +1 -0
  220. package/web/chunk-h47k4j7f.js.br +0 -0
  221. package/web/chunk-h47k4j7f.js.gz +0 -0
  222. package/web/chunk-h888hb33.js +41 -0
  223. package/web/chunk-h888hb33.js.br +0 -0
  224. package/web/chunk-h888hb33.js.gz +0 -0
  225. package/web/chunk-hc9ep8b0.js +4 -0
  226. package/web/chunk-hc9ep8b0.js.br +0 -0
  227. package/web/chunk-hc9ep8b0.js.gz +0 -0
  228. package/web/chunk-hp0jfbty.js +1 -0
  229. package/web/chunk-hp0jfbty.js.br +0 -0
  230. package/web/chunk-hp0jfbty.js.gz +0 -0
  231. package/web/chunk-hx7rh5c1.js +2 -0
  232. package/web/chunk-hx7rh5c1.js.br +0 -0
  233. package/web/chunk-hx7rh5c1.js.gz +0 -0
  234. package/web/chunk-hzxz7smg.js +24 -0
  235. package/web/chunk-hzxz7smg.js.br +0 -0
  236. package/web/chunk-hzxz7smg.js.gz +0 -0
  237. package/web/chunk-j4w9gj2v.js +1 -0
  238. package/web/chunk-j4w9gj2v.js.br +0 -0
  239. package/web/chunk-j4w9gj2v.js.gz +0 -0
  240. package/web/chunk-j8m3c1s4.js +2 -0
  241. package/web/chunk-j8m3c1s4.js.br +0 -0
  242. package/web/chunk-j8m3c1s4.js.gz +0 -0
  243. package/web/chunk-jamb9e79.js +1 -0
  244. package/web/chunk-jamb9e79.js.br +0 -0
  245. package/web/chunk-jamb9e79.js.gz +0 -0
  246. package/web/chunk-jg19frxn.js +55 -0
  247. package/web/chunk-jg19frxn.js.br +0 -0
  248. package/web/chunk-jg19frxn.js.gz +0 -0
  249. package/web/chunk-jm2pevt8.js +1 -0
  250. package/web/chunk-jm2pevt8.js.br +0 -0
  251. package/web/chunk-jm2pevt8.js.gz +0 -0
  252. package/web/chunk-jmr00kdm.js +214 -0
  253. package/web/chunk-jmr00kdm.js.br +0 -0
  254. package/web/chunk-jmr00kdm.js.gz +0 -0
  255. package/web/chunk-jsff72z2.js +1 -0
  256. package/web/chunk-jsff72z2.js.br +0 -0
  257. package/web/chunk-jsff72z2.js.gz +0 -0
  258. package/web/chunk-jv83dscd.js +1 -0
  259. package/web/chunk-jv83dscd.js.br +0 -0
  260. package/web/chunk-jv83dscd.js.gz +0 -0
  261. package/web/chunk-k0da3cb3.js +1 -0
  262. package/web/chunk-k0da3cb3.js.br +0 -0
  263. package/web/chunk-k0da3cb3.js.gz +0 -0
  264. package/web/chunk-k6ks8zqg.js +1 -0
  265. package/web/chunk-k6ks8zqg.js.br +0 -0
  266. package/web/chunk-k6ks8zqg.js.gz +0 -0
  267. package/web/chunk-kdzew6g1.js +1 -0
  268. package/web/chunk-kdzew6g1.js.br +2 -0
  269. package/web/chunk-kdzew6g1.js.gz +0 -0
  270. package/web/chunk-ktmnzrpf.js +1 -0
  271. package/web/chunk-ktmnzrpf.js.br +2 -0
  272. package/web/chunk-ktmnzrpf.js.gz +0 -0
  273. package/web/chunk-kxezmcn5.js +30 -0
  274. package/web/chunk-kxezmcn5.js.br +0 -0
  275. package/web/chunk-kxezmcn5.js.gz +0 -0
  276. package/web/chunk-kyj99nqq.js +2 -0
  277. package/web/chunk-kyj99nqq.js.br +0 -0
  278. package/web/chunk-kyj99nqq.js.gz +0 -0
  279. package/web/chunk-m1009k4x.js +16 -0
  280. package/web/chunk-m1009k4x.js.br +0 -0
  281. package/web/chunk-m1009k4x.js.gz +0 -0
  282. package/web/chunk-mfsdyw6v.js +2 -0
  283. package/web/chunk-mfsdyw6v.js.br +0 -0
  284. package/web/chunk-mfsdyw6v.js.gz +0 -0
  285. package/web/chunk-mgr8wt71.js +370 -0
  286. package/web/chunk-mgr8wt71.js.br +0 -0
  287. package/web/chunk-mgr8wt71.js.gz +0 -0
  288. package/web/chunk-mya0w8tm.js +1 -0
  289. package/web/chunk-mya0w8tm.js.br +0 -0
  290. package/web/chunk-mya0w8tm.js.gz +0 -0
  291. package/web/chunk-n1wgda90.js +7 -0
  292. package/web/chunk-n1wgda90.js.br +0 -0
  293. package/web/chunk-n1wgda90.js.gz +0 -0
  294. package/web/chunk-n7hk5sxm.js +120 -0
  295. package/web/chunk-n7hk5sxm.js.br +0 -0
  296. package/web/chunk-n7hk5sxm.js.gz +0 -0
  297. package/web/chunk-n99yz498.js +36 -0
  298. package/web/chunk-n99yz498.js.br +0 -0
  299. package/web/chunk-n99yz498.js.gz +0 -0
  300. package/web/chunk-nnvqz2dh.js +1 -0
  301. package/web/chunk-nnvqz2dh.js.br +0 -0
  302. package/web/chunk-nnvqz2dh.js.gz +0 -0
  303. package/web/chunk-nx439rde.js +1 -0
  304. package/web/chunk-nx439rde.js.br +0 -0
  305. package/web/chunk-nx439rde.js.gz +0 -0
  306. package/web/chunk-pn50cj2y.js +1 -0
  307. package/web/chunk-pn50cj2y.js.br +0 -0
  308. package/web/chunk-pn50cj2y.js.gz +0 -0
  309. package/web/chunk-pph3x232.js +38 -0
  310. package/web/chunk-pph3x232.js.br +0 -0
  311. package/web/chunk-pph3x232.js.gz +0 -0
  312. package/web/chunk-pt2vfgkr.js +1 -0
  313. package/web/chunk-pt2vfgkr.js.br +0 -0
  314. package/web/chunk-pt2vfgkr.js.gz +0 -0
  315. package/web/chunk-pzvg5xnk.js +21 -0
  316. package/web/chunk-pzvg5xnk.js.br +0 -0
  317. package/web/chunk-pzvg5xnk.js.gz +0 -0
  318. package/web/chunk-q5hj3y5k.js +2 -0
  319. package/web/chunk-q5hj3y5k.js.br +0 -0
  320. package/web/chunk-q5hj3y5k.js.gz +0 -0
  321. package/web/chunk-qafnz668.js +1 -0
  322. package/web/chunk-qafnz668.js.br +0 -0
  323. package/web/chunk-qafnz668.js.gz +0 -0
  324. package/web/chunk-qkfqcr10.js +1 -0
  325. package/web/chunk-qkfqcr10.js.br +0 -0
  326. package/web/chunk-qkfqcr10.js.gz +0 -0
  327. package/web/chunk-qkgp0da2.js +1 -0
  328. package/web/chunk-qkgp0da2.js.br +0 -0
  329. package/web/chunk-qkgp0da2.js.gz +0 -0
  330. package/web/chunk-qpqdn0a8.js +1 -0
  331. package/web/chunk-qpqdn0a8.js.br +0 -0
  332. package/web/chunk-qpqdn0a8.js.gz +0 -0
  333. package/web/chunk-r0ch05x8.js +3 -0
  334. package/web/chunk-r0ch05x8.js.br +0 -0
  335. package/web/chunk-r0ch05x8.js.gz +0 -0
  336. package/web/chunk-r6s2vcby.js +8 -0
  337. package/web/chunk-r6s2vcby.js.br +6 -0
  338. package/web/chunk-r6s2vcby.js.gz +0 -0
  339. package/web/chunk-r71mdnq3.js +1 -0
  340. package/web/chunk-r71mdnq3.js.br +0 -0
  341. package/web/chunk-r71mdnq3.js.gz +0 -0
  342. package/web/chunk-r9m8jh7x.js +2 -0
  343. package/web/chunk-r9m8jh7x.js.br +0 -0
  344. package/web/chunk-r9m8jh7x.js.gz +0 -0
  345. package/web/chunk-rd60971b.js +2 -0
  346. package/web/chunk-rd60971b.js.br +0 -0
  347. package/web/chunk-rd60971b.js.gz +0 -0
  348. package/web/chunk-rdz21xd5.js +99 -0
  349. package/web/chunk-rdz21xd5.js.br +0 -0
  350. package/web/chunk-rdz21xd5.js.gz +0 -0
  351. package/web/chunk-rmzb9edh.js +303 -0
  352. package/web/chunk-rmzb9edh.js.br +0 -0
  353. package/web/chunk-rmzb9edh.js.gz +0 -0
  354. package/web/chunk-rqkd1h2n.js +2 -0
  355. package/web/chunk-rqkd1h2n.js.br +0 -0
  356. package/web/chunk-rqkd1h2n.js.gz +0 -0
  357. package/web/chunk-rz2cq4g2.js +2 -0
  358. package/web/chunk-rz2cq4g2.js.br +0 -0
  359. package/web/chunk-rz2cq4g2.js.gz +0 -0
  360. package/web/chunk-rzeh9b1q.js +2 -0
  361. package/web/chunk-rzeh9b1q.js.br +0 -0
  362. package/web/chunk-rzeh9b1q.js.gz +0 -0
  363. package/web/chunk-s6ax6yty.js +1 -0
  364. package/web/chunk-s6ax6yty.js.br +0 -0
  365. package/web/chunk-s6ax6yty.js.gz +0 -0
  366. package/web/chunk-s75zvbh9.js +1 -0
  367. package/web/chunk-s75zvbh9.js.br +0 -0
  368. package/web/chunk-s75zvbh9.js.gz +0 -0
  369. package/web/chunk-s7cz1q7g.js +324 -0
  370. package/web/chunk-s7cz1q7g.js.br +0 -0
  371. package/web/chunk-s7cz1q7g.js.gz +0 -0
  372. package/web/chunk-sh6xh1kh.js +1 -0
  373. package/web/chunk-sh6xh1kh.js.br +0 -0
  374. package/web/chunk-sh6xh1kh.js.gz +0 -0
  375. package/web/chunk-shc8bv2k.js +2 -0
  376. package/web/chunk-shc8bv2k.js.br +0 -0
  377. package/web/chunk-shc8bv2k.js.gz +0 -0
  378. package/web/chunk-sqa50cfh.js +2 -0
  379. package/web/chunk-sqa50cfh.js.br +0 -0
  380. package/web/chunk-sqa50cfh.js.gz +0 -0
  381. package/web/chunk-stp6j8y9.js +39 -0
  382. package/web/chunk-stp6j8y9.js.br +0 -0
  383. package/web/chunk-stp6j8y9.js.gz +0 -0
  384. package/web/chunk-t7wae2xz.js +332 -0
  385. package/web/chunk-t7wae2xz.js.br +0 -0
  386. package/web/chunk-t7wae2xz.js.gz +0 -0
  387. package/web/chunk-t8p7d5vk.js +2 -0
  388. package/web/chunk-t8p7d5vk.js.br +0 -0
  389. package/web/chunk-t8p7d5vk.js.gz +0 -0
  390. package/web/chunk-t9twwgfe.js +1 -0
  391. package/web/chunk-t9twwgfe.js.br +0 -0
  392. package/web/chunk-t9twwgfe.js.gz +0 -0
  393. package/web/chunk-tbj4d6qe.js +292 -0
  394. package/web/chunk-tbj4d6qe.js.br +0 -0
  395. package/web/chunk-tbj4d6qe.js.gz +0 -0
  396. package/web/chunk-v0wb751t.js +2 -0
  397. package/web/chunk-v0wb751t.js.br +0 -0
  398. package/web/chunk-v0wb751t.js.gz +0 -0
  399. package/web/chunk-v1vghfec.js +1 -0
  400. package/web/chunk-v1vghfec.js.br +0 -0
  401. package/web/chunk-v1vghfec.js.gz +0 -0
  402. package/web/chunk-v890rh1e.js +2 -0
  403. package/web/chunk-v890rh1e.js.br +0 -0
  404. package/web/chunk-v890rh1e.js.gz +0 -0
  405. package/web/chunk-vd2kng8p.js +4 -0
  406. package/web/chunk-vd2kng8p.js.br +0 -0
  407. package/web/chunk-vd2kng8p.js.gz +0 -0
  408. package/web/chunk-vfqmec16.js +217 -0
  409. package/web/chunk-vfqmec16.js.br +0 -0
  410. package/web/chunk-vfqmec16.js.gz +0 -0
  411. package/web/chunk-vhmcx472.js +1 -0
  412. package/web/chunk-vhmcx472.js.br +0 -0
  413. package/web/chunk-vhmcx472.js.gz +0 -0
  414. package/web/chunk-vtvf1x6b.js +2 -0
  415. package/web/chunk-vtvf1x6b.js.br +0 -0
  416. package/web/chunk-vtvf1x6b.js.gz +0 -0
  417. package/web/chunk-w0ae9ggt.js +40 -0
  418. package/web/chunk-w0ae9ggt.js.br +0 -0
  419. package/web/chunk-w0ae9ggt.js.gz +0 -0
  420. package/web/chunk-ws8rv0tb.js +1141 -0
  421. package/web/chunk-ws8rv0tb.js.br +0 -0
  422. package/web/chunk-ws8rv0tb.js.gz +0 -0
  423. package/web/chunk-wvnvh4a5.js +78 -0
  424. package/web/chunk-wvnvh4a5.js.br +0 -0
  425. package/web/chunk-wvnvh4a5.js.gz +0 -0
  426. package/web/chunk-x11ewabg.js +1 -0
  427. package/web/chunk-x11ewabg.js.br +0 -0
  428. package/web/chunk-x11ewabg.js.gz +0 -0
  429. package/web/chunk-x2tcf0r1.js +1 -0
  430. package/web/chunk-x2tcf0r1.js.br +2 -0
  431. package/web/chunk-x2tcf0r1.js.gz +0 -0
  432. package/web/chunk-x9mexzav.js +2 -0
  433. package/web/chunk-x9mexzav.js.br +0 -0
  434. package/web/chunk-x9mexzav.js.gz +0 -0
  435. package/web/chunk-xbrj4mk1.js +140 -0
  436. package/web/chunk-xbrj4mk1.js.br +0 -0
  437. package/web/chunk-xbrj4mk1.js.gz +0 -0
  438. package/web/chunk-xh8q1bcj.js +34 -0
  439. package/web/chunk-xh8q1bcj.js.br +0 -0
  440. package/web/chunk-xh8q1bcj.js.gz +0 -0
  441. package/web/chunk-xha3t633.js +1 -0
  442. package/web/chunk-xha3t633.js.br +0 -0
  443. package/web/chunk-xha3t633.js.gz +0 -0
  444. package/web/chunk-xk8637wb.js +1 -0
  445. package/web/chunk-xk8637wb.js.br +0 -0
  446. package/web/chunk-xk8637wb.js.gz +0 -0
  447. package/web/chunk-xmr18f18.js +1 -0
  448. package/web/chunk-xmr18f18.js.br +0 -0
  449. package/web/chunk-xmr18f18.js.gz +0 -0
  450. package/web/chunk-y372dg1e.js +7 -0
  451. package/web/chunk-y372dg1e.js.br +0 -0
  452. package/web/chunk-y372dg1e.js.gz +0 -0
  453. package/web/chunk-y48mj5d7.js +1 -0
  454. package/web/chunk-y48mj5d7.js.br +0 -0
  455. package/web/chunk-y48mj5d7.js.gz +0 -0
  456. package/web/chunk-y778wckc.js +24 -0
  457. package/web/chunk-y778wckc.js.br +0 -0
  458. package/web/chunk-y778wckc.js.gz +0 -0
  459. package/web/chunk-yerpvhym.js +169 -0
  460. package/web/chunk-yerpvhym.js.br +0 -0
  461. package/web/chunk-yerpvhym.js.gz +0 -0
  462. package/web/chunk-yrhe7a7c.js +106 -0
  463. package/web/chunk-yrhe7a7c.js.br +0 -0
  464. package/web/chunk-yrhe7a7c.js.gz +0 -0
  465. package/web/chunk-z2aazpzj.js +2 -0
  466. package/web/chunk-z2aazpzj.js.br +0 -0
  467. package/web/chunk-z2aazpzj.js.gz +0 -0
  468. package/web/chunk-z43td5ad.js +1 -0
  469. package/web/chunk-z43td5ad.js.br +0 -0
  470. package/web/chunk-z43td5ad.js.gz +0 -0
  471. package/web/chunk-z8fgdsx5.js +1 -0
  472. package/web/chunk-z8fgdsx5.js.br +0 -0
  473. package/web/chunk-z8fgdsx5.js.gz +0 -0
  474. package/web/chunk-zf42y65m.js +1 -0
  475. package/web/chunk-zf42y65m.js.br +0 -0
  476. package/web/chunk-zf42y65m.js.gz +0 -0
  477. package/web/chunk-zj2rhf4b.js +200 -0
  478. package/web/chunk-zj2rhf4b.js.br +0 -0
  479. package/web/chunk-zj2rhf4b.js.gz +0 -0
  480. package/web/chunk-zkn84jhm.js +2 -0
  481. package/web/chunk-zkn84jhm.js.br +0 -0
  482. package/web/chunk-zkn84jhm.js.gz +0 -0
  483. package/web/index.html +27 -2
  484. package/web/index.html.br +0 -0
  485. package/web/index.html.gz +0 -0
  486. package/web/sw.js +39 -24
  487. package/web/sw.js.br +0 -0
  488. package/web/sw.js.gz +0 -0
  489. package/worker.js +1 -1
  490. package/chunk-00jhevnt.js +0 -3
  491. package/chunk-04tx0etc.js +0 -2
  492. package/chunk-0r86p29p.js +0 -7
  493. package/chunk-10x1zefx.js +0 -25
  494. package/chunk-1amcz1cz.js +0 -10
  495. package/chunk-1pfdps04.js +0 -2
  496. package/chunk-206g40v9.js +0 -59
  497. package/chunk-2364s958.js +0 -7
  498. package/chunk-3fv2qcpg.js +0 -12
  499. package/chunk-3zz4a5tn.js +0 -31
  500. package/chunk-45wfmdts.js +0 -44
  501. package/chunk-4hkwjw05.js +0 -2
  502. package/chunk-4n4wn5cj.js +0 -4014
  503. package/chunk-4pq7ycp2.js +0 -5
  504. package/chunk-5e0qfdgx.js +0 -5
  505. package/chunk-78yngmvf.js +0 -51
  506. package/chunk-7hpf9qq2.js +0 -3
  507. package/chunk-82dkdvs9.js +0 -2
  508. package/chunk-8913dkey.js +0 -3
  509. package/chunk-8g1sbmwf.js +0 -3
  510. package/chunk-8hfch7d0.js +0 -2
  511. package/chunk-90arpvgz.js +0 -2
  512. package/chunk-912knnfg.js +0 -11
  513. package/chunk-97bazdk3.js +0 -20
  514. package/chunk-9akexjfn.js +0 -2
  515. package/chunk-9dgmbwcc.js +0 -2
  516. package/chunk-a454ntda.js +0 -50
  517. package/chunk-acd2cwza.js +0 -3
  518. package/chunk-ach16jbw.js +0 -2
  519. package/chunk-ax823t5v.js +0 -3
  520. package/chunk-b03hg30w.js +0 -2
  521. package/chunk-bh29df86.js +0 -5
  522. package/chunk-bhpg72c4.js +0 -2
  523. package/chunk-bwww6j2q.js +0 -2
  524. package/chunk-c126k8wc.js +0 -2
  525. package/chunk-cb3jgak9.js +0 -3
  526. package/chunk-cjeyy6da.js +0 -3
  527. package/chunk-cs4gb2hb.js +0 -2
  528. package/chunk-en5t6hwd.js +0 -3
  529. package/chunk-f4n1csz0.js +0 -3
  530. package/chunk-j01t6mnq.js +0 -3
  531. package/chunk-j16smb6d.js +0 -2
  532. package/chunk-j7eqp97m.js +0 -2
  533. package/chunk-jdrqn8m1.js +0 -2
  534. package/chunk-jp1gqkbp.js +0 -4
  535. package/chunk-jrcvxscb.js +0 -9
  536. package/chunk-k8zq95wr.js +0 -2
  537. package/chunk-ken7ras9.js +0 -8
  538. package/chunk-kqgpjmcf.js +0 -2
  539. package/chunk-krbdx24j.js +0 -3
  540. package/chunk-ky2ym708.js +0 -8
  541. package/chunk-kzfy666j.js +0 -16
  542. package/chunk-n0stnnxv.js +0 -2
  543. package/chunk-n9m2pagh.js +0 -2
  544. package/chunk-nedvy6yk.js +0 -10
  545. package/chunk-ng5g0fy3.js +0 -3
  546. package/chunk-nqeqasyt.js +0 -7
  547. package/chunk-nt30x5a7.js +0 -3
  548. package/chunk-q1s5r204.js +0 -3
  549. package/chunk-qj0vfk01.js +0 -2
  550. package/chunk-qqfdg01g.js +0 -3
  551. package/chunk-rj6qknjx.js +0 -12
  552. package/chunk-rvrj0nrs.js +0 -3
  553. package/chunk-sbhj5h2q.js +0 -2
  554. package/chunk-t71zzafh.js +0 -3
  555. package/chunk-t7fwvzmh.js +0 -3
  556. package/chunk-tpv5hz99.js +0 -5
  557. package/chunk-tx2rrrtq.js +0 -2
  558. package/chunk-tyzzbhr5.js +0 -3
  559. package/chunk-tzbefwf0.js +0 -286
  560. package/chunk-v4p8807b.js +0 -18
  561. package/chunk-vnxjcym9.js +0 -17
  562. package/chunk-w35r8v6x.js +0 -39
  563. package/chunk-wbygknv2.js +0 -3
  564. package/chunk-wk63htqy.js +0 -2
  565. package/chunk-wwazj6mz.js +0 -3
  566. package/chunk-xpc75mkw.js +0 -25
  567. package/chunk-ypxn8bec.js +0 -3
  568. package/chunk-yztc2q9q.js +0 -490
  569. package/web/chunk-02z7yrhn.js +0 -2
  570. package/web/chunk-02z7yrhn.js.br +0 -0
  571. package/web/chunk-02z7yrhn.js.gz +0 -0
  572. package/web/chunk-0an1eqtf.js +0 -1
  573. package/web/chunk-0an1eqtf.js.br +0 -0
  574. package/web/chunk-0an1eqtf.js.gz +0 -0
  575. package/web/chunk-128zy60g.js +0 -99
  576. package/web/chunk-128zy60g.js.br +0 -0
  577. package/web/chunk-128zy60g.js.gz +0 -0
  578. package/web/chunk-1e2jy7m2.js +0 -139
  579. package/web/chunk-1e2jy7m2.js.br +0 -0
  580. package/web/chunk-1e2jy7m2.js.gz +0 -0
  581. package/web/chunk-1hmw1eaw.js +0 -1
  582. package/web/chunk-1hmw1eaw.js.br +0 -0
  583. package/web/chunk-1hmw1eaw.js.gz +0 -0
  584. package/web/chunk-1v3e001f.js +0 -1
  585. package/web/chunk-1v3e001f.js.br +0 -0
  586. package/web/chunk-1v3e001f.js.gz +0 -0
  587. package/web/chunk-20gcnbgn.js +0 -2
  588. package/web/chunk-20gcnbgn.js.br +0 -0
  589. package/web/chunk-20gcnbgn.js.gz +0 -0
  590. package/web/chunk-214p3rj6.js +0 -41
  591. package/web/chunk-214p3rj6.js.br +0 -0
  592. package/web/chunk-214p3rj6.js.gz +0 -0
  593. package/web/chunk-29byd5kf.js +0 -89
  594. package/web/chunk-29byd5kf.js.br +0 -0
  595. package/web/chunk-29byd5kf.js.gz +0 -0
  596. package/web/chunk-2nwvdqxm.js +0 -1
  597. package/web/chunk-2nwvdqxm.js.br +0 -0
  598. package/web/chunk-2nwvdqxm.js.gz +0 -0
  599. package/web/chunk-2wvgy7f4.js +0 -1
  600. package/web/chunk-2wvgy7f4.js.br +0 -0
  601. package/web/chunk-2wvgy7f4.js.gz +0 -0
  602. package/web/chunk-3fbh1wxk.js +0 -62
  603. package/web/chunk-3fbh1wxk.js.br +0 -0
  604. package/web/chunk-3fbh1wxk.js.gz +0 -0
  605. package/web/chunk-3fnrzj1h.js +0 -98
  606. package/web/chunk-3fnrzj1h.js.br +0 -0
  607. package/web/chunk-3fnrzj1h.js.gz +0 -0
  608. package/web/chunk-3g1095m7.js +0 -78
  609. package/web/chunk-3g1095m7.js.br +0 -0
  610. package/web/chunk-3g1095m7.js.gz +0 -0
  611. package/web/chunk-3nn7w4hw.js +0 -2
  612. package/web/chunk-3nn7w4hw.js.br +0 -0
  613. package/web/chunk-3nn7w4hw.js.gz +0 -0
  614. package/web/chunk-3qa8xcdr.js +0 -1
  615. package/web/chunk-3qa8xcdr.js.br +0 -0
  616. package/web/chunk-3qa8xcdr.js.gz +0 -0
  617. package/web/chunk-3x69jfmh.js +0 -332
  618. package/web/chunk-3x69jfmh.js.br +0 -0
  619. package/web/chunk-3x69jfmh.js.gz +0 -0
  620. package/web/chunk-414npx47.js +0 -1
  621. package/web/chunk-414npx47.js.br +0 -0
  622. package/web/chunk-414npx47.js.gz +0 -0
  623. package/web/chunk-4v6m77sv.css +0 -1
  624. package/web/chunk-4v6m77sv.css.br +0 -0
  625. package/web/chunk-4v6m77sv.css.gz +0 -0
  626. package/web/chunk-4vk6xma5.js +0 -1
  627. package/web/chunk-4vk6xma5.js.br +0 -0
  628. package/web/chunk-4vk6xma5.js.gz +0 -0
  629. package/web/chunk-50pdas2t.js +0 -1
  630. package/web/chunk-50pdas2t.js.br +0 -0
  631. package/web/chunk-50pdas2t.js.gz +0 -0
  632. package/web/chunk-56a6zytc.js +0 -1139
  633. package/web/chunk-56a6zytc.js.br +0 -0
  634. package/web/chunk-56a6zytc.js.gz +0 -0
  635. package/web/chunk-5ckj4zez.js +0 -1
  636. package/web/chunk-5ckj4zez.js.br +0 -2
  637. package/web/chunk-5ckj4zez.js.gz +0 -0
  638. package/web/chunk-5mr8z024.js +0 -2
  639. package/web/chunk-5mr8z024.js.br +0 -0
  640. package/web/chunk-5mr8z024.js.gz +0 -0
  641. package/web/chunk-5q4pemdh.js +0 -1
  642. package/web/chunk-5q4pemdh.js.br +0 -0
  643. package/web/chunk-5q4pemdh.js.gz +0 -0
  644. package/web/chunk-63ft76vs.js +0 -1
  645. package/web/chunk-63ft76vs.js.br +0 -0
  646. package/web/chunk-63ft76vs.js.gz +0 -0
  647. package/web/chunk-67ynxnvq.js +0 -8
  648. package/web/chunk-67ynxnvq.js.br +0 -0
  649. package/web/chunk-67ynxnvq.js.gz +0 -0
  650. package/web/chunk-6c2pv79h.js +0 -1
  651. package/web/chunk-6c2pv79h.js.br +0 -0
  652. package/web/chunk-6c2pv79h.js.gz +0 -0
  653. package/web/chunk-719tz8xw.js +0 -1
  654. package/web/chunk-719tz8xw.js.br +0 -0
  655. package/web/chunk-719tz8xw.js.gz +0 -0
  656. package/web/chunk-77nxgqqb.js +0 -4
  657. package/web/chunk-77nxgqqb.js.br +0 -0
  658. package/web/chunk-77nxgqqb.js.gz +0 -0
  659. package/web/chunk-7c59jb8d.js +0 -2
  660. package/web/chunk-7c59jb8d.js.br +0 -0
  661. package/web/chunk-7c59jb8d.js.gz +0 -0
  662. package/web/chunk-7ed5jf6e.js +0 -36
  663. package/web/chunk-7ed5jf6e.js.br +0 -0
  664. package/web/chunk-7ed5jf6e.js.gz +0 -0
  665. package/web/chunk-891bpx3c.js +0 -70
  666. package/web/chunk-891bpx3c.js.br +0 -0
  667. package/web/chunk-891bpx3c.js.gz +0 -0
  668. package/web/chunk-8h4dc48v.js +0 -292
  669. package/web/chunk-8h4dc48v.js.br +0 -0
  670. package/web/chunk-8h4dc48v.js.gz +0 -0
  671. package/web/chunk-96n00vam.js +0 -1
  672. package/web/chunk-96n00vam.js.br +0 -0
  673. package/web/chunk-96n00vam.js.gz +0 -0
  674. package/web/chunk-99c0h3v7.js +0 -1
  675. package/web/chunk-99c0h3v7.js.br +0 -0
  676. package/web/chunk-99c0h3v7.js.gz +0 -0
  677. package/web/chunk-9bs7khrr.js +0 -24
  678. package/web/chunk-9bs7khrr.js.br +0 -0
  679. package/web/chunk-9bs7khrr.js.gz +0 -0
  680. package/web/chunk-9ctyqr3n.js +0 -169
  681. package/web/chunk-9ctyqr3n.js.br +0 -0
  682. package/web/chunk-9ctyqr3n.js.gz +0 -0
  683. package/web/chunk-9qdx0ekk.js +0 -142
  684. package/web/chunk-9qdx0ekk.js.br +0 -0
  685. package/web/chunk-9qdx0ekk.js.gz +0 -0
  686. package/web/chunk-9r0rnt6d.js +0 -214
  687. package/web/chunk-9r0rnt6d.js.br +0 -0
  688. package/web/chunk-9r0rnt6d.js.gz +0 -0
  689. package/web/chunk-aan5qk6x.js +0 -1
  690. package/web/chunk-aan5qk6x.js.br +0 -0
  691. package/web/chunk-aan5qk6x.js.gz +0 -0
  692. package/web/chunk-ac9g3w7v.js +0 -1
  693. package/web/chunk-ac9g3w7v.js.br +0 -0
  694. package/web/chunk-ac9g3w7v.js.gz +0 -0
  695. package/web/chunk-ackts7ph.js +0 -24
  696. package/web/chunk-ackts7ph.js.br +0 -0
  697. package/web/chunk-ackts7ph.js.gz +0 -0
  698. package/web/chunk-asyqrf38.js +0 -1
  699. package/web/chunk-asyqrf38.js.br +0 -0
  700. package/web/chunk-asyqrf38.js.gz +0 -0
  701. package/web/chunk-b13crsv9.js +0 -1
  702. package/web/chunk-b13crsv9.js.br +0 -0
  703. package/web/chunk-b13crsv9.js.gz +0 -0
  704. package/web/chunk-brg2zcv5.js +0 -55
  705. package/web/chunk-brg2zcv5.js.br +0 -0
  706. package/web/chunk-brg2zcv5.js.gz +0 -0
  707. package/web/chunk-c3d08dw1.js +0 -1
  708. package/web/chunk-c3d08dw1.js.br +0 -0
  709. package/web/chunk-c3d08dw1.js.gz +0 -0
  710. package/web/chunk-cgwnzse1.js +0 -16
  711. package/web/chunk-cgwnzse1.js.br +0 -0
  712. package/web/chunk-cgwnzse1.js.gz +0 -0
  713. package/web/chunk-cm4fjb6j.js +0 -2
  714. package/web/chunk-cm4fjb6j.js.br +0 -0
  715. package/web/chunk-cm4fjb6j.js.gz +0 -0
  716. package/web/chunk-cys4n4sv.js +0 -1
  717. package/web/chunk-cys4n4sv.js.br +0 -0
  718. package/web/chunk-cys4n4sv.js.gz +0 -0
  719. package/web/chunk-d5n2yz4e.js +0 -2
  720. package/web/chunk-d5n2yz4e.js.br +0 -0
  721. package/web/chunk-d5n2yz4e.js.gz +0 -0
  722. package/web/chunk-djrvdzsb.js +0 -89
  723. package/web/chunk-djrvdzsb.js.br +0 -0
  724. package/web/chunk-djrvdzsb.js.gz +0 -0
  725. package/web/chunk-dsffzc1e.js +0 -2
  726. package/web/chunk-dsffzc1e.js.br +0 -0
  727. package/web/chunk-dsffzc1e.js.gz +0 -0
  728. package/web/chunk-e1wy8050.js +0 -370
  729. package/web/chunk-e1wy8050.js.br +0 -0
  730. package/web/chunk-e1wy8050.js.gz +0 -0
  731. package/web/chunk-e4cwyn1g.js +0 -2
  732. package/web/chunk-e4cwyn1g.js.br +0 -0
  733. package/web/chunk-e4cwyn1g.js.gz +0 -0
  734. package/web/chunk-ebknmxdp.js +0 -2
  735. package/web/chunk-ebknmxdp.js.br +0 -0
  736. package/web/chunk-ebknmxdp.js.gz +0 -0
  737. package/web/chunk-efjc9mga.js +0 -2
  738. package/web/chunk-efjc9mga.js.br +0 -0
  739. package/web/chunk-efjc9mga.js.gz +0 -0
  740. package/web/chunk-egjv760p.js +0 -2
  741. package/web/chunk-egjv760p.js.br +0 -0
  742. package/web/chunk-egjv760p.js.gz +0 -0
  743. package/web/chunk-etpd8y98.js +0 -1
  744. package/web/chunk-etpd8y98.js.br +0 -0
  745. package/web/chunk-etpd8y98.js.gz +0 -0
  746. package/web/chunk-f5kr9p2k.js +0 -1
  747. package/web/chunk-f5kr9p2k.js.br +0 -2
  748. package/web/chunk-f5kr9p2k.js.gz +0 -0
  749. package/web/chunk-f5wyg9zh.js +0 -2
  750. package/web/chunk-f5wyg9zh.js.br +0 -0
  751. package/web/chunk-f5wyg9zh.js.gz +0 -0
  752. package/web/chunk-fjhqg9ag.js +0 -2
  753. package/web/chunk-fjhqg9ag.js.br +0 -0
  754. package/web/chunk-fjhqg9ag.js.gz +0 -0
  755. package/web/chunk-ftdzs90e.js +0 -1
  756. package/web/chunk-ftdzs90e.js.br +0 -0
  757. package/web/chunk-ftdzs90e.js.gz +0 -0
  758. package/web/chunk-fyr6rm2p.js +0 -2
  759. package/web/chunk-fyr6rm2p.js.br +0 -0
  760. package/web/chunk-fyr6rm2p.js.gz +0 -0
  761. package/web/chunk-grjq1g15.js +0 -1
  762. package/web/chunk-grjq1g15.js.br +0 -0
  763. package/web/chunk-grjq1g15.js.gz +0 -0
  764. package/web/chunk-gvndjaan.js +0 -2
  765. package/web/chunk-gvndjaan.js.br +0 -0
  766. package/web/chunk-gvndjaan.js.gz +0 -0
  767. package/web/chunk-h4bzgvbg.js +0 -303
  768. package/web/chunk-h4bzgvbg.js.br +0 -0
  769. package/web/chunk-h4bzgvbg.js.gz +0 -0
  770. package/web/chunk-heen0v5d.js +0 -12
  771. package/web/chunk-heen0v5d.js.br +0 -0
  772. package/web/chunk-heen0v5d.js.gz +0 -0
  773. package/web/chunk-henez15c.js +0 -4
  774. package/web/chunk-henez15c.js.br +0 -0
  775. package/web/chunk-henez15c.js.gz +0 -0
  776. package/web/chunk-hpcvwdkg.js +0 -1
  777. package/web/chunk-hpcvwdkg.js.br +0 -0
  778. package/web/chunk-hpcvwdkg.js.gz +0 -0
  779. package/web/chunk-hpvyk6rz.js +0 -324
  780. package/web/chunk-hpvyk6rz.js.br +0 -0
  781. package/web/chunk-hpvyk6rz.js.gz +0 -0
  782. package/web/chunk-hzvff525.js +0 -2
  783. package/web/chunk-hzvff525.js.br +0 -0
  784. package/web/chunk-hzvff525.js.gz +0 -0
  785. package/web/chunk-j0dyf1g8.js +0 -2
  786. package/web/chunk-j0dyf1g8.js.br +0 -3
  787. package/web/chunk-j0dyf1g8.js.gz +0 -0
  788. package/web/chunk-jb89v31q.js +0 -1
  789. package/web/chunk-jb89v31q.js.br +0 -0
  790. package/web/chunk-jb89v31q.js.gz +0 -0
  791. package/web/chunk-jb949ewp.js +0 -217
  792. package/web/chunk-jb949ewp.js.br +0 -0
  793. package/web/chunk-jb949ewp.js.gz +0 -0
  794. package/web/chunk-je4bf95v.js +0 -1
  795. package/web/chunk-je4bf95v.js.br +0 -0
  796. package/web/chunk-je4bf95v.js.gz +0 -0
  797. package/web/chunk-js6c1973.js +0 -1
  798. package/web/chunk-js6c1973.js.br +0 -0
  799. package/web/chunk-js6c1973.js.gz +0 -0
  800. package/web/chunk-k140nr54.js +0 -1
  801. package/web/chunk-k140nr54.js.br +0 -0
  802. package/web/chunk-k140nr54.js.gz +0 -0
  803. package/web/chunk-k89686qj.js +0 -2
  804. package/web/chunk-k89686qj.js.br +0 -0
  805. package/web/chunk-k89686qj.js.gz +0 -0
  806. package/web/chunk-kknrn2wb.js +0 -84
  807. package/web/chunk-kknrn2wb.js.br +0 -0
  808. package/web/chunk-kknrn2wb.js.gz +0 -0
  809. package/web/chunk-mhtzdq9d.js +0 -140
  810. package/web/chunk-mhtzdq9d.js.br +0 -0
  811. package/web/chunk-mhtzdq9d.js.gz +0 -0
  812. package/web/chunk-mqdvg55y.js +0 -2
  813. package/web/chunk-mqdvg55y.js.br +0 -0
  814. package/web/chunk-mqdvg55y.js.gz +0 -0
  815. package/web/chunk-mrnj2k3v.js +0 -2
  816. package/web/chunk-mrnj2k3v.js.br +0 -0
  817. package/web/chunk-mrnj2k3v.js.gz +0 -0
  818. package/web/chunk-my0k5w7f.js +0 -39
  819. package/web/chunk-my0k5w7f.js.br +0 -0
  820. package/web/chunk-my0k5w7f.js.gz +0 -0
  821. package/web/chunk-n08727ym.js +0 -34
  822. package/web/chunk-n08727ym.js.br +0 -0
  823. package/web/chunk-n08727ym.js.gz +0 -0
  824. package/web/chunk-n5ghyxwk.js +0 -38
  825. package/web/chunk-n5ghyxwk.js.br +0 -0
  826. package/web/chunk-n5ghyxwk.js.gz +0 -0
  827. package/web/chunk-ngsv0xfb.js +0 -1
  828. package/web/chunk-ngsv0xfb.js.br +0 -0
  829. package/web/chunk-ngsv0xfb.js.gz +0 -0
  830. package/web/chunk-nt21rjrm.js +0 -21
  831. package/web/chunk-nt21rjrm.js.br +0 -0
  832. package/web/chunk-nt21rjrm.js.gz +0 -0
  833. package/web/chunk-nzgj9qx5.js +0 -2
  834. package/web/chunk-nzgj9qx5.js.br +0 -0
  835. package/web/chunk-nzgj9qx5.js.gz +0 -0
  836. package/web/chunk-p9wm0dv3.js +0 -1
  837. package/web/chunk-p9wm0dv3.js.br +0 -0
  838. package/web/chunk-p9wm0dv3.js.gz +0 -0
  839. package/web/chunk-pqh9yszs.js +0 -106
  840. package/web/chunk-pqh9yszs.js.br +0 -0
  841. package/web/chunk-pqh9yszs.js.gz +0 -0
  842. package/web/chunk-q0vsqq43.js +0 -1
  843. package/web/chunk-q0vsqq43.js.br +0 -0
  844. package/web/chunk-q0vsqq43.js.gz +0 -0
  845. package/web/chunk-qv5d69fn.js +0 -2
  846. package/web/chunk-qv5d69fn.js.br +0 -0
  847. package/web/chunk-qv5d69fn.js.gz +0 -0
  848. package/web/chunk-r7afv22v.js +0 -2
  849. package/web/chunk-r7afv22v.js.br +0 -0
  850. package/web/chunk-r7afv22v.js.gz +0 -0
  851. package/web/chunk-rc6at4k5.js +0 -291
  852. package/web/chunk-rc6at4k5.js.br +0 -0
  853. package/web/chunk-rc6at4k5.js.gz +0 -0
  854. package/web/chunk-rj1rp0tc.js +0 -1
  855. package/web/chunk-rj1rp0tc.js.br +0 -0
  856. package/web/chunk-rj1rp0tc.js.gz +0 -0
  857. package/web/chunk-rnsvrehz.js +0 -30
  858. package/web/chunk-rnsvrehz.js.br +0 -0
  859. package/web/chunk-rnsvrehz.js.gz +0 -0
  860. package/web/chunk-rsmhn1fq.js +0 -1
  861. package/web/chunk-rsmhn1fq.js.br +0 -0
  862. package/web/chunk-rsmhn1fq.js.gz +0 -0
  863. package/web/chunk-s00gxcxn.js +0 -2
  864. package/web/chunk-s00gxcxn.js.br +0 -0
  865. package/web/chunk-s00gxcxn.js.gz +0 -0
  866. package/web/chunk-s1p271av.js +0 -1
  867. package/web/chunk-s1p271av.js.br +0 -0
  868. package/web/chunk-s1p271av.js.gz +0 -0
  869. package/web/chunk-s6a13wxe.js +0 -2
  870. package/web/chunk-s6a13wxe.js.br +0 -0
  871. package/web/chunk-s6a13wxe.js.gz +0 -0
  872. package/web/chunk-sc4kwbnh.js +0 -1
  873. package/web/chunk-sc4kwbnh.js.br +0 -2
  874. package/web/chunk-sc4kwbnh.js.gz +0 -0
  875. package/web/chunk-scebh2ee.js +0 -1
  876. package/web/chunk-scebh2ee.js.br +0 -0
  877. package/web/chunk-scebh2ee.js.gz +0 -0
  878. package/web/chunk-shtkgxz6.js +0 -2
  879. package/web/chunk-shtkgxz6.js.br +0 -0
  880. package/web/chunk-shtkgxz6.js.gz +0 -0
  881. package/web/chunk-spmfwbhd.js +0 -1
  882. package/web/chunk-spmfwbhd.js.br +0 -0
  883. package/web/chunk-spmfwbhd.js.gz +0 -0
  884. package/web/chunk-svtenejf.js +0 -1
  885. package/web/chunk-svtenejf.js.br +0 -0
  886. package/web/chunk-svtenejf.js.gz +0 -0
  887. package/web/chunk-szwh742y.js +0 -2
  888. package/web/chunk-szwh742y.js.br +0 -0
  889. package/web/chunk-szwh742y.js.gz +0 -0
  890. package/web/chunk-t9z1bp8j.js +0 -3
  891. package/web/chunk-t9z1bp8j.js.br +0 -0
  892. package/web/chunk-t9z1bp8j.js.gz +0 -0
  893. package/web/chunk-tnttdgsc.js +0 -1
  894. package/web/chunk-tnttdgsc.js.br +0 -0
  895. package/web/chunk-tnttdgsc.js.gz +0 -0
  896. package/web/chunk-tntwwpyh.js +0 -2
  897. package/web/chunk-tntwwpyh.js.br +0 -0
  898. package/web/chunk-tntwwpyh.js.gz +0 -0
  899. package/web/chunk-tp3fpa0t.js +0 -1
  900. package/web/chunk-tp3fpa0t.js.br +0 -0
  901. package/web/chunk-tp3fpa0t.js.gz +0 -0
  902. package/web/chunk-txdkp6yc.js +0 -7
  903. package/web/chunk-txdkp6yc.js.br +0 -0
  904. package/web/chunk-txdkp6yc.js.gz +0 -0
  905. package/web/chunk-v34mwgx8.js +0 -1
  906. package/web/chunk-v34mwgx8.js.br +0 -0
  907. package/web/chunk-v34mwgx8.js.gz +0 -0
  908. package/web/chunk-vayamfxv.js +0 -1
  909. package/web/chunk-vayamfxv.js.br +0 -0
  910. package/web/chunk-vayamfxv.js.gz +0 -0
  911. package/web/chunk-vndrjeyr.js +0 -2
  912. package/web/chunk-vndrjeyr.js.br +0 -0
  913. package/web/chunk-vndrjeyr.js.gz +0 -0
  914. package/web/chunk-vtp01n96.js +0 -1
  915. package/web/chunk-vtp01n96.js.br +0 -0
  916. package/web/chunk-vtp01n96.js.gz +0 -0
  917. package/web/chunk-vx1qmkbm.js +0 -120
  918. package/web/chunk-vx1qmkbm.js.br +0 -0
  919. package/web/chunk-vx1qmkbm.js.gz +0 -0
  920. package/web/chunk-vxx451tt.js +0 -1
  921. package/web/chunk-vxx451tt.js.br +0 -0
  922. package/web/chunk-vxx451tt.js.gz +0 -0
  923. package/web/chunk-w8epfc0c.js +0 -1
  924. package/web/chunk-w8epfc0c.js.br +0 -0
  925. package/web/chunk-w8epfc0c.js.gz +0 -0
  926. package/web/chunk-wdd9pasx.js +0 -1
  927. package/web/chunk-wdd9pasx.js.br +0 -0
  928. package/web/chunk-wdd9pasx.js.gz +0 -0
  929. package/web/chunk-whgh2r7d.js +0 -200
  930. package/web/chunk-whgh2r7d.js.br +0 -0
  931. package/web/chunk-whgh2r7d.js.gz +0 -0
  932. package/web/chunk-x0p1n5ws.js +0 -1
  933. package/web/chunk-x0p1n5ws.js.br +0 -2
  934. package/web/chunk-x0p1n5ws.js.gz +0 -0
  935. package/web/chunk-x2tk9zeq.js +0 -1
  936. package/web/chunk-x2tk9zeq.js.br +0 -0
  937. package/web/chunk-x2tk9zeq.js.gz +0 -0
  938. package/web/chunk-xbt045kt.js +0 -1
  939. package/web/chunk-xbt045kt.js.br +0 -2
  940. package/web/chunk-xbt045kt.js.gz +0 -0
  941. package/web/chunk-xh3agbvb.js +0 -7
  942. package/web/chunk-xh3agbvb.js.br +0 -0
  943. package/web/chunk-xh3agbvb.js.gz +0 -0
  944. package/web/chunk-xpw1spgj.js +0 -40
  945. package/web/chunk-xpw1spgj.js.br +0 -0
  946. package/web/chunk-xpw1spgj.js.gz +0 -0
  947. package/web/chunk-y2jkaf1e.js +0 -2
  948. package/web/chunk-y2jkaf1e.js.br +0 -0
  949. package/web/chunk-y2jkaf1e.js.gz +0 -0
  950. package/web/chunk-yp2jydfj.js +0 -1
  951. package/web/chunk-yp2jydfj.js.br +0 -0
  952. package/web/chunk-yp2jydfj.js.gz +0 -0
  953. package/web/chunk-yxp1es3b.js +0 -1
  954. package/web/chunk-yxp1es3b.js.br +0 -0
  955. package/web/chunk-yxp1es3b.js.gz +0 -0
  956. package/web/chunk-yzrww95m.js +0 -7
  957. package/web/chunk-yzrww95m.js.br +0 -0
  958. package/web/chunk-yzrww95m.js.gz +0 -0
  959. package/web/chunk-z502b5p0.js +0 -1
  960. package/web/chunk-z502b5p0.js.br +0 -0
  961. package/web/chunk-z502b5p0.js.gz +0 -0
  962. package/web/chunk-zny7cya7.js +0 -1
  963. package/web/chunk-zny7cya7.js.br +0 -2
  964. package/web/chunk-zny7cya7.js.gz +0 -0
  965. package/web/chunk-zq1qbaxb.js +0 -2
  966. package/web/chunk-zq1qbaxb.js.br +0 -0
  967. package/web/chunk-zq1qbaxb.js.gz +0 -0
  968. /package/{chunk-h4bvkm6p.js → chunk-2h2mvrw2.js} +0 -0
  969. /package/{chunk-51f8zbj5.js → chunk-54zpktrq.js} +0 -0
  970. /package/{chunk-fqfjjhkj.js → chunk-aq6xkc1w.js} +0 -0
  971. /package/{chunk-chfzk1fx.js → chunk-et2s8y6a.js} +0 -0
  972. /package/{chunk-pa7yh2q3.js → chunk-fgpzy3fe.js} +0 -0
@@ -1,89 +0,0 @@
1
- import{t,i,Xe,A,q,Y,L,d,J}from"./chunk-h4bzgvbg.js";var N="",M="",O="",D=[],z=new Map,v=t((e)=>q(e,d()),"sanitizeText"),y=t((e)=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),G=t(()=>{N="",M="",O="",D.length=0,z.clear(),L(),i.debug("[Railroad] Database cleared")},"clear"),B=t((e)=>{N=v(e),i.debug("[Railroad] Title set:",e)},"setTitle"),P=t(()=>N,"getTitle"),U=t((e)=>{let a={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};if(i.debug("[Railroad] Adding rule:",a.name),z.has(a.name))i.warn(`[Railroad] Rule '${a.name}' is already defined. Overwriting.`);D.push(a),z.set(a.name,a)},"addRule"),j=t(()=>D,"getRules"),K=t((e)=>z.get(e),"getRule"),Q=t((e)=>{M=v(e).replace(/^\s+/g,""),i.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=t(()=>M,"getAccTitle"),V=t((e)=>{O=v(e).replace(/\n\s+/g,`
2
- `),i.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=t(()=>O,"getAccDescription"),te=B,re=P,ve={clear:G,setTitle:B,getTitle:P,addRule:U,getRules:j,getRule:K,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},T={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ie=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ne=/^[\w "',.-]+$/,ae=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=t((e)=>{if(!e)return!1;return Object.keys(e).every((a)=>a==="railroad"||ae.has(a))},"isRailroadStyleOptions"),oe=t((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return I(e)?e:{}},"extractRailroadOverrides"),le=t((e)=>{if(!e||I(e))return{};let{railroad:a,svgId:l,theme:n,look:r,...o}=e;return o},"extractThemeOverrides"),u=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ie.test(l)?l:a},"sanitizeColorValue"),X=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ne.test(l)?l:a},"sanitizeFontFamilyValue"),F=t((e,a)=>{let l=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(l)&&l>=0?l:a},"sanitizeNumberValue"),se=t((e)=>{let a=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>0?a:void 0},"parseThemeFontSize"),de=t((e)=>{let a=X(e.fontFamily,T.fontFamily),l=se(e.fontSize)??T.fontSize;return{...T,fontFamily:a,fontSize:l,terminalFill:u(e.secondBkg??e.secondaryColor,T.terminalFill),terminalStroke:u(e.secondaryBorderColor??e.lineColor,T.terminalStroke),terminalTextColor:u(e.secondaryTextColor??e.textColor,T.terminalTextColor),nonTerminalFill:u(e.mainBkg??e.background,T.nonTerminalFill),nonTerminalStroke:u(e.primaryBorderColor??e.lineColor,T.nonTerminalStroke),nonTerminalTextColor:u(e.primaryTextColor??e.textColor,T.nonTerminalTextColor),lineColor:u(e.lineColor,T.lineColor),markerFill:u(e.lineColor,T.markerFill),commentFill:u(e.labelBackground??e.tertiaryColor,T.commentFill),commentStroke:u(e.tertiaryBorderColor??e.lineColor,T.commentStroke),commentTextColor:u(e.tertiaryTextColor??e.textColor,T.commentTextColor),specialFill:u(e.tertiaryColor??e.secondaryColor,T.specialFill),specialStroke:u(e.tertiaryBorderColor??e.secondaryBorderColor,T.specialStroke),ruleNameColor:u(e.titleColor??e.textColor,T.ruleNameColor)}},"buildThemeDefaults"),E=t((e)=>{let a=A(),l={...Xe(),...a.themeVariables??{},...le(e)},n=de(l),r={...a.railroad??{},...oe(e)};return{compactMode:r.compactMode??n.compactMode,padding:F(r.padding,n.padding),verticalSeparation:F(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:F(r.horizontalSeparation,n.horizontalSeparation),arcRadius:F(r.arcRadius,n.arcRadius),fontSize:F(r.fontSize,n.fontSize),fontFamily:X(r.fontFamily,n.fontFamily),terminalFill:u(r.terminalFill,n.terminalFill),terminalStroke:u(r.terminalStroke,n.terminalStroke),terminalTextColor:u(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:u(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:u(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:u(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:u(r.lineColor,n.lineColor),strokeWidth:F(r.strokeWidth,n.strokeWidth),markerFill:u(r.markerFill,n.markerFill),commentFill:u(r.commentFill,n.commentFill),commentStroke:u(r.commentStroke,n.commentStroke),commentTextColor:u(r.commentTextColor,n.commentTextColor),specialFill:u(r.specialFill,n.specialFill),specialStroke:u(r.specialStroke,n.specialStroke),ruleNameColor:u(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:F(r.markerRadius,n.markerRadius)}},"buildRailroadStyleOptions"),Mn=t((e)=>{let{fontFamily:a,fontSize:l,terminalFill:n,terminalStroke:r,terminalTextColor:o,nonTerminalFill:g,nonTerminalStroke:m,nonTerminalTextColor:s,lineColor:f,strokeWidth:p,markerFill:h,commentFill:C,commentStroke:c,commentTextColor:x,specialFill:R,specialStroke:S,ruleNameColor:k}=E(e);return`
3
- .railroad-diagram {
4
- font-family: ${a};
5
- font-size: ${l}px;
6
- }
7
-
8
- .railroad-terminal rect {
9
- fill: ${n};
10
- stroke: ${r};
11
- stroke-width: ${p}px;
12
- }
13
-
14
- .railroad-terminal text {
15
- fill: ${o};
16
- font-family: ${a};
17
- font-size: ${l}px;
18
- text-anchor: middle;
19
- dominant-baseline: middle;
20
- }
21
-
22
- .railroad-nonterminal rect {
23
- fill: ${g};
24
- stroke: ${m};
25
- stroke-width: ${p}px;
26
- }
27
-
28
- .railroad-nonterminal text {
29
- fill: ${s};
30
- font-family: ${a};
31
- font-size: ${l}px;
32
- text-anchor: middle;
33
- dominant-baseline: middle;
34
- }
35
-
36
- .railroad-line {
37
- stroke: ${f};
38
- stroke-width: ${p}px;
39
- fill: none;
40
- }
41
-
42
- .railroad-start circle,
43
- .railroad-end circle {
44
- fill: ${h};
45
- }
46
-
47
- .railroad-comment ellipse {
48
- fill: ${C};
49
- stroke: ${c};
50
- stroke-width: ${p}px;
51
- }
52
-
53
- .railroad-comment text {
54
- fill: ${x};
55
- font-style: italic;
56
- font-family: ${a};
57
- font-size: ${l}px;
58
- text-anchor: middle;
59
- dominant-baseline: middle;
60
- }
61
-
62
- .railroad-special rect {
63
- fill: ${R};
64
- stroke: ${S};
65
- stroke-width: ${p}px;
66
- stroke-dasharray: 5,3;
67
- }
68
-
69
- .railroad-special text {
70
- fill: ${s};
71
- font-family: ${a};
72
- font-size: ${l}px;
73
- text-anchor: middle;
74
- dominant-baseline: middle;
75
- }
76
-
77
- .railroad-rule-name {
78
- font-weight: bold;
79
- fill: ${k};
80
- font-family: ${a};
81
- font-size: ${l}px;
82
- }
83
-
84
- .railroad-group {
85
- /* Grouping container, no specific styles */
86
- }
87
- `},"getStyles"),w=class{constructor(){this.d=""}static{t(this,"PathBuilder")}moveTo(e,a){return this.d+=`M ${e} ${a} `,this}lineTo(e,a){return this.d+=`L ${e} ${a} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,a,l,n,r,o,g){return this.d+=`A ${e} ${a} ${l} ${n?1:0} ${r?1:0} ${o} ${g} `,this}build(){return this.d.trim()}},ce=class{constructor(e,a=E()){this.textCache=new Map,this.svg=e,this.config=a}static{t(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let a=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),l=a.node().getBBox(),n={width:l.width,height:l.height};return a.remove(),this.textCache.set(e,n),n}renderTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-terminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r).attr("rx",10).attr("ry",10),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderNonTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-nonterminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderSequence(e,a){let l=a.map((s)=>this.renderExpression(e,s)),n=0,r=0,o=0;for(let s of l)n+=s.dimensions.width,r=Math.max(r,s.dimensions.up),o=Math.max(o,s.dimensions.down);n+=(l.length-1)*this.config.horizontalSeparation;let g=e.append("g").attr("class","railroad-sequence"),m=0;for(let s=0;s<l.length;s++){let f=l[s],p=r-f.dimensions.up;if(g.node().appendChild(f.element).setAttribute("transform",`translate(${m}, ${p})`),s<l.length-1){let C=m+f.dimensions.width,c=C+this.config.horizontalSeparation,x=r;g.append("path").attr("class","railroad-line").attr("d",new w().moveTo(C,x).lineTo(c,x).build())}m+=f.dimensions.width+this.config.horizontalSeparation}return{element:g.node(),dimensions:{width:n,height:r+o,up:r,down:o}}}renderChoice(e,a){let l=a.map((h)=>this.renderExpression(e,h)),n=0,r=0;for(let h of l)n=Math.max(n,h.dimensions.width),r+=h.dimensions.height;r+=(l.length-1)*this.config.verticalSeparation;let o=this.config.arcRadius,g=o*4,m=n+g,s=e.append("g").attr("class","railroad-choice"),f=0,p=r/2;for(let h of l){let C=f,c=C+h.dimensions.up,x=o*2+(n-h.dimensions.width)/2;s.node().appendChild(h.element).setAttribute("transform",`translate(${x}, ${C})`);let S=new w,k=c>p;if(c===p)S.moveTo(0,p).lineTo(x,c);else S.moveTo(0,p).arcTo(o,o,0,!1,k,o,p+(k?o:-o)).lineTo(o,c-(k?o:-o)).arcTo(o,o,0,!1,!k,o*2,c).lineTo(x,c);s.append("path").attr("class","railroad-line").attr("d",S.build());let b=new w,W=x+h.dimensions.width,H=m-o*2;if(c===p)b.moveTo(W,c).lineTo(m,p);else b.moveTo(W,c).lineTo(H,c).arcTo(o,o,0,!1,!k,m-o,c+(k?-o:o)).lineTo(m-o,p+(k?o:-o)).arcTo(o,o,0,!1,k,m,p);s.append("path").attr("class","railroad-line").attr("d",b.build()),f+=h.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:m,height:r,up:p,down:r-p}}}renderOptional(e,a){let l=this.renderExpression(e,a),n=this.config.arcRadius,r=n*2,o=l.dimensions.width+n*4,g=l.dimensions.height+r,m=e.append("g").attr("class","railroad-optional"),s=n*2,f=r;m.node().appendChild(l.element).setAttribute("transform",`translate(${s}, ${f})`);let h=f+l.dimensions.up,C=new w().moveTo(0,h).lineTo(n*2,h);m.append("path").attr("class","railroad-line").attr("d",C.build());let c=new w().moveTo(s+l.dimensions.width,h).lineTo(o,h);m.append("path").attr("class","railroad-line").attr("d",c.build());let x=new w().moveTo(0,h).arcTo(n,n,0,!1,!1,n,h-n).lineTo(n,n).arcTo(n,n,0,!1,!0,n*2,0).lineTo(o-n*2,0).arcTo(n,n,0,!1,!0,o-n,n).lineTo(o-n,h-n).arcTo(n,n,0,!1,!1,o,h);return m.append("path").attr("class","railroad-line").attr("d",x.build()),{element:m.node(),dimensions:{width:o,height:g,up:h,down:g-h}}}renderRepetition(e,a,l){let n=this.renderExpression(e,a),r=this.config.arcRadius,o=r*2,g=n.dimensions.width+r*4,m=l===0,s=n.dimensions.height+o+(m?o:0),f=e.append("g").attr("class","railroad-repetition"),p=r*2,h=m?o:0;f.node().appendChild(n.element).setAttribute("transform",`translate(${p}, ${h})`);let c=h+n.dimensions.up;f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(0,c).lineTo(r*2,c).build()),f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(p+n.dimensions.width,c).lineTo(g,c).build());let x=h+n.dimensions.height+r,R=new w().moveTo(p+n.dimensions.width,c).arcTo(r,r,0,!1,!0,p+n.dimensions.width+r,c+r).lineTo(p+n.dimensions.width+r,x).arcTo(r,r,0,!1,!0,p+n.dimensions.width,x+r).lineTo(r*2,x+r).arcTo(r,r,0,!1,!0,r,x).lineTo(r,c+r).arcTo(r,r,0,!1,!0,r*2,c);if(f.append("path").attr("class","railroad-line").attr("d",R.build()),m){let S=new w().moveTo(0,c).arcTo(r,r,0,!1,!1,r,c-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,c-r).arcTo(r,r,0,!1,!1,g,c);f.append("path").attr("class","railroad-line").attr("d",S.build())}return{element:f.node(),dimensions:{width:g,height:s,up:c,down:s-c}}}renderSpecial(e,a){let l=this.measureText("? "+a+" ?"),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-special");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text("? "+a+" ?"),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderExpression(e,a){switch(a.type){case"terminal":return this.renderTerminal(e,a.value);case"nonterminal":return this.renderNonTerminal(e,a.name);case"sequence":return this.renderSequence(e,a.elements);case"choice":return this.renderChoice(e,a.alternatives);case"optional":return this.renderOptional(e,a.element);case"repetition":return this.renderRepetition(e,a.element,a.min);case"special":return this.renderSpecial(e,a.text);default:throw Error(`Unknown node type: ${a.type}`)}}renderRule(e,a){let l=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${a})`),n=e.name+" =",r=this.measureText(n).width+20,o=r+20,g=l.append("g"),m=this.renderExpression(g,e.definition),s=Math.max(20,m.dimensions.up),f=s-m.dimensions.up;return g.attr("transform",`translate(${o}, ${f})`),l.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(n),l.append("g").attr("class","railroad-start").append("circle").attr("cx",r).attr("cy",s).attr("r",this.config.markerRadius),l.append("g").attr("class","railroad-end").append("circle").attr("cx",o+m.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+m.dimensions.width,s).lineTo(o+m.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,f+m.dimensions.height+this.config.padding*2),width:o+m.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let a=this.config.padding,l=0;for(let n of e){let r=this.renderRule(n,a);a+=r.height+this.config.verticalSeparation,l=Math.max(l,r.width)}return{width:l+this.config.padding*2,height:a+this.config.padding}}},_=t((e,a,l)=>{Y(e,a.height,a.width,l),e.attr("viewBox",`0 0 ${a.width} ${a.height}`)},"configureRailroadSvgSize"),me=t((e,a,l)=>{i.debug(`[Railroad] Rendering diagram
88
- `+e);try{let n=J(a);n.attr("class","railroad-diagram");let o=A().railroad?.useMaxWidth??!0,g=ve.getRules();if(i.debug(`[Railroad] Rendering ${g.length} rules`),g.length===0){i.warn("[Railroad] No rules to render"),_(n,{height:100,width:200},o);return}let s=new ce(n,E()).renderDiagram(g);_(n,s,o),i.debug("[Railroad] Render complete")}catch(n){throw i.error("[Railroad] Render error:",n),n}},"draw"),Pn={draw:me};
89
- export{ve,Mn,Pn};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Ss}from"./chunk-f5wyg9zh.js";import"./chunk-6ycpdpfj.js";export{Ss as default};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import"./chunk-6ycpdpfj.js";import{eo}from"./chunk-mqdvg55y.js";export{eo as default};
Binary file
Binary file
@@ -1,62 +0,0 @@
1
- import{ie}from"./chunk-nzgj9qx5.js";import{t,i,Xe,F,A,Y,L,M,R,P,I,O,D,J,Q}from"./chunk-h4bzgvbg.js";import{ge}from"./chunk-9qdx0ekk.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,a=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:a})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return i.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>Q({...F.cynefin,...A().cynefin}),"getConfig"),Lt=t(()=>{L(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:M,getAccTitle:R,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:P},Nt=t((e)=>{ie(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await ge("cynefin",e);i.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let a=e.charCodeAt(o);n=(n<<5)-n+a,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,a){let l=e/2,p=a??e*0.015,nt=7,j=n/7,f=[];for(let r=0;r<=7;r++){let y=tt(o+r*17)*p*2-p;f.push({x:l+y,y:r*j})}let T=`M${f[0].x},${f[0].y}`;for(let r=0;r<f.length-1;r++){let y=f[r],c=f[r+1],m=(y.y+c.y)/2,C=r%2===0?1:-1,h=p*1.5*C*tt(o+r*31+7),q=y.x+h,U=m,Z=c.x-h;T+=` C${q},${U} ${Z},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,a){let l=n/2,p=a??n*0.015,nt=7,j=e/7,f=[];for(let r=0;r<=7;r++){let y=tt(o+r*23)*p*2-p;f.push({x:r*j,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let r=0;r<f.length-1;r++){let y=f[r],c=f[r+1],m=(y.x+c.x)/2,C=r%2===0?1:-1,h=p*1.5*C*tt(o+r*37+11),q=m,U=y.y+h,Z=m,_=c.y-h;T+=` C${q},${U} ${Z},${_} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,a=n*0.5,l=n,p=e*0.03;return[`M${o},${a}`,`C${o+p},${a+(l-a)*0.2}`,`${o-p*1.5},${a+(l-a)*0.55}`,`${o+p*0.5},${a+(l-a)*0.75}`,`C${o-p},${a+(l-a)*0.85}`,`${o+p*0.3},${a+(l-a)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,a){return[`M${e-o},${n}`,`A${o},${a} 0 1,1 ${e+o},${n}`,`A${o},${a} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,a=n/2;return{complex:{cx:o/2,cy:a/2,x:0,y:0,w:o,h:a},complicated:{cx:o+o/2,cy:a/2,x:o,y:0,w:o,h:a},chaotic:{cx:o/2,cy:a+a/2,x:0,y:a,w:o,h:a},clear:{cx:o+o/2,cy:a+a/2,x:o,y:a,w:o,h:a},confusion:{cx:o,cy:a,x:o*0.7,y:a*0.7,w:o*0.6,h:a*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=Xe(),n=A();return Q(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,a)=>{let l=a.db,p=l.getDomains(),nt=l.getTransitions(),j=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),r=l.getConfig(),y=Wt();i.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:q}=r,U=c+C*2,Z=m+C*2,_={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},B=J(n);if(Y(B,Z,U,r.useMaxWidth??!0),B.attr("viewBox",`0 0 ${U} ${Z}`),f)B.append("title").text(f);if(T)B.append("desc").text(T);let S=B.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(r.seed,n),Ct=S.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",_[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=S.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,q)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,q)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;S.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",_.confusion).attr("fill-opacity",0.5);let lt=S.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=S.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=S.append("g").attr("class","cynefin-items"),z=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",E=s.items,H=0;if(u&&s.items.length>st)H=s.items.length-st,E=s.items.slice(0,st);let N;if(u){let b=h?22:14;N=g.cy+b}else N=g.cy+(h?25:15);if([...E].forEach((b,W)=>{let v=N+W*(z+4),V=dt.append("g"),G=V.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=G.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,X=g.cx-k/2;V.attr("transform",`translate(${X}, ${v})`),V.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",z).attr("rx",4).attr("ry",4).attr("fill",_[d]).attr("fill-opacity",0.95),G.attr("x",k/2).attr("y",z/2)}),H>0){let b=N+E.length*(z+4),W=`+${H} more`,v=dt.append("g"),V=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(W),G=W.length*7,w=V.node();if(w&&typeof w.getBBox==="function"){let X=w.getBBox();if(X.width>0)G=X.width}let x=G+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",z).attr("rx",4).attr("ry",4).attr("fill",_[d]).attr("fill-opacity",0.6),V.attr("x",x/2).attr("y",z/2)}}if(nt.length>0){let d=B.select("defs").empty()?B.append("defs"):B.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=S.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let E=K[u.from],H=K[u.to];if(!E||!H)return;if(u.from===u.to){i.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:N,cy:b}=E,{cx:W,cy:v}=H,V=(N+W)/2,G=(b+v)/2,w=W-N,x=v-b,k=Math.sqrt(w*w+x*x),X=k*0.15,ot=-x/k,Tt=w/k,mt=V+ot*X,pt=G+Tt*X;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${N},${b} Q${mt},${pt} ${W},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(j)S.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(j)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=Xe(),n=A();return Q(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
2
- .cynefinDomain {
3
- stroke: none;
4
- }
5
- .cynefinDomainLabel {
6
- font-size: ${e.domainFontSize}px;
7
- font-weight: bold;
8
- fill: ${e.labelColor};
9
- }
10
- .cynefinSubtitle {
11
- font-size: ${e.itemFontSize-1}px;
12
- fill: ${e.textColor};
13
- font-style: italic;
14
- }
15
- .cynefinItem {
16
- fill-opacity: 0.95;
17
- stroke: ${e.boundaryColor};
18
- stroke-width: 1;
19
- }
20
- .cynefinItemText {
21
- font-size: ${e.itemFontSize}px;
22
- fill: ${e.textColor};
23
- }
24
- .cynefinItemOverflow {
25
- fill-opacity: 0.6;
26
- stroke: ${e.boundaryColor};
27
- stroke-width: 1;
28
- stroke-dasharray: 3 2;
29
- }
30
- .cynefinBoundary {
31
- stroke: ${e.boundaryColor};
32
- stroke-width: ${e.boundaryWidth};
33
- stroke-dasharray: 6 3;
34
- }
35
- .cynefinCliff {
36
- stroke: ${e.cliffColor};
37
- stroke-width: ${e.cliffWidth};
38
- }
39
- .cynefinConfusion {
40
- stroke: ${e.boundaryColor};
41
- stroke-width: 1.5;
42
- stroke-dasharray: 4 2;
43
- }
44
- .cynefinArrowLine {
45
- stroke: ${e.arrowColor};
46
- stroke-width: ${e.arrowWidth};
47
- fill: none;
48
- }
49
- .cynefinArrowHead {
50
- fill: ${e.arrowColor};
51
- stroke: none;
52
- }
53
- .cynefinArrowLabel {
54
- font-size: ${e.itemFontSize-1}px;
55
- fill: ${e.textColor};
56
- }
57
- .cynefinTitle {
58
- font-size: ${e.domainFontSize+2}px;
59
- font-weight: bold;
60
- fill: ${e.labelColor};
61
- }
62
- `},"styles"),Et=_t,Ut={parser:Pt,db:at,renderer:Ft,styles:Et};export{Ut as diagram};
Binary file
Binary file
@@ -1,98 +0,0 @@
1
- import{t,i,de,f,h,F,A,Ac,q,d,He,Ue}from"./chunk-h4bzgvbg.js";import{ze}from"./chunk-r7afv22v.js";import{Re}from"./chunk-qv5d69fn.js";var ye=new Uint8Array(16);function Z(){return crypto.getRandomValues(ye)}var S=[];for(let e=0;e<256;++e)S.push((e+256).toString(16).slice(1));function le(e,r=0){return(S[e[r+0]]+S[e[r+1]]+S[e[r+2]]+S[e[r+3]]+"-"+S[e[r+4]]+S[e[r+5]]+"-"+S[e[r+6]]+S[e[r+7]]+"-"+S[e[r+8]]+S[e[r+9]]+"-"+S[e[r+10]]+S[e[r+11]]+S[e[r+12]]+S[e[r+13]]+S[e[r+14]]+S[e[r+15]]).toLowerCase()}function ke(e,r,u){if(!r&&!e&&crypto.randomUUID)return crypto.randomUUID();return be(e,r,u)}function be(e,r,u){e=e||{};let l=e.random??e.rng?.()??Z();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,r){if(u=u||0,u<0||u+16>r.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let n=0;n<16;++n)r[u+n]=l[n];return r}return le(l)}var ee=ke;var te=function(){var e=t(function(O,a,s,c){for(s=s||{},c=O.length;c--;s[O[c]]=a);return s},"o"),r=[1,4],u=[1,13],l=[1,12],n=[1,15],p=[1,16],k=[1,20],E=[1,19],x=[6,7,8],w=[1,26],U=[1,24],B=[1,25],m=[6,7,11],M=[1,6,13,15,16,19,22],ne=[1,33],ie=[1,34],P=[1,6,7,11,13,15,16,19,22],X={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(a,s,c,g,b,o,V){var y=o.length-1;switch(b){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",o[y].id),g.addNode(o[y-1].length,o[y].id,o[y].descr,o[y].type);break;case 16:g.getLogger().trace("Icon: ",o[y]),g.decorateNode({icon:o[y]});break;case 17:case 21:g.decorateNode({class:o[y]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",o[y].id),g.addNode(0,o[y].id,o[y].descr,o[y].type);break;case 20:g.decorateNode({icon:o[y]});break;case 25:g.getLogger().trace("node found ..",o[y-2]),this.$={id:o[y-1],descr:o[y-1],type:g.getType(o[y-2],o[y])};break;case 26:this.$={id:o[y],descr:o[y],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",o[y-3]),this.$={id:o[y-3],descr:o[y-1],type:g.getType(o[y-2],o[y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:u,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},e(x,[2,3]),{1:[2,2]},e(x,[2,4]),e(x,[2,5]),{1:[2,6],6:u,12:21,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},{6:u,9:22,12:11,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},{6:w,7:U,10:23,11:B},e(m,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:k,22:E}),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,23]),e(m,[2,24]),e(m,[2,26],{19:[1,30]}),{20:[1,31]},{6:w,7:U,10:32,11:B},{1:[2,7],6:u,12:21,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},e(M,[2,14],{7:ne,11:ie}),e(P,[2,8]),e(P,[2,9]),e(P,[2,10]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),{20:[1,35]},{21:[1,36]},e(M,[2,13],{7:ne,11:ie}),e(P,[2,11]),e(P,[2,12]),{21:[1,37]},e(m,[2,25]),e(m,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(a,s){if(s.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=s,c}},"parseError"),parse:t(function(a){var s=this,c=[0],g=[],b=[null],o=[],V=this.table,y="",j=0,re=0,se=0,ue=2,oe=1,pe=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var z in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,z))I.yy[z]=this.yy[z];if(_.setInput(a,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var Y=_.yylloc;o.push(Y);var fe=_.options&&_.options.ranges;if(typeof I.yy.parseError==="function")this.parseError=I.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function me(D){c.length=c.length-2*D,b.length=b.length-D,o.length=o.length-D}t(me,"popStack");function ae(){var D=g.pop()||_.lex()||oe;if(typeof D!=="number"){if(D instanceof Array)g=D,D=g.pop();D=s.symbols_[D]||D}return D}t(ae,"lex");var N,J,C,L,Te,K,R={},H,v,ce,W;while(!0){if(C=c[c.length-1],this.defaultActions[C])L=this.defaultActions[C];else{if(N===null||typeof N>"u")N=ae();L=V[C]&&V[C][N]}if(typeof L>"u"||!L.length||!L[0]){var Q="";W=[];for(H in V[C])if(this.terminals_[H]&&H>ue)W.push("'"+this.terminals_[H]+"'");if(_.showPosition)Q="Parse error on line "+(j+1)+`:
2
- `+_.showPosition()+`
3
- Expecting `+W.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Q="Parse error on line "+(j+1)+": Unexpected "+(N==oe?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Q,{text:_.match,token:this.terminals_[N]||N,line:_.yylineno,loc:Y,expected:W})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+C+", token: "+N);switch(L[0]){case 1:if(c.push(N),b.push(_.yytext),o.push(_.yylloc),c.push(L[1]),N=null,!J){if(re=_.yyleng,y=_.yytext,j=_.yylineno,Y=_.yylloc,se>0)se--}else N=J,J=null;break;case 2:if(v=this.productions_[L[1]][1],R.$=b[b.length-v],R._$={first_line:o[o.length-(v||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(v||1)].first_column,last_column:o[o.length-1].last_column},fe)R._$.range=[o[o.length-(v||1)].range[0],o[o.length-1].range[1]];if(K=this.performAction.apply(R,[y,re,j,I.yy,L[1],b,o].concat(pe)),typeof K<"u")return K;if(v)c=c.slice(0,-1*v*2),b=b.slice(0,-1*v),o=o.slice(0,-1*v);c.push(this.productions_[L[1]][0]),b.push(R.$),o.push(R._$),ce=V[c[c.length-2]][c[c.length-1]],c.push(ce);break;case 3:return!0}}return!0},"parse")},ge=function(){var O={EOF:1,parseError:t(function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw Error(s)},"parseError"),setInput:t(function(a,s){if(this.yy=s||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var s=a.match(/(?:\r\n?|\n).*/g);if(s)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),a},"input"),unput:t(function(a){var s=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var g=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(a){this.unput(this.match.slice(a))},"less"),pastInput:t(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var a=this.match;if(a.length<20)a+=this._input.substr(0,20-a.length);return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var a=this.pastInput(),s=Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
- `+s+"^"},"showPosition"),test_match:t(function(a,s){var c,g,b;if(this.options.backtrack_lexer){if(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)b.yylloc.range=this.yylloc.range.slice(0)}if(g=a[0].match(/(?:\r\n?|\n).*/g),g)this.yylineno+=g.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var o in b)this[o]=b[o];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var a,s,c,g;if(!this._more)this.yytext="",this.match="";var b=this._currentRules();for(var o=0;o<b.length;o++)if(c=this._input.match(this.rules[b[o]]),c&&(!s||c[0].length>s[0].length)){if(s=c,g=o,this.options.backtrack_lexer)if(a=this.test_match(c,b[o]),a!==!1)return a;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(a=this.test_match(s,b[g]),a!==!1)return a;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,c,g,b){var o=b;switch(g){case 0:return s.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:s.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return s.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:s.getLogger().trace("end icon"),this.popState();break;case 10:return s.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return s.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return s.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return s.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:s.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return s.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),s.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),s.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),s.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),s.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),s.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return s.getLogger().trace("Long description:",c.yytext),20;break;case 36:return s.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return O}();X.lexer=ge;function G(){this.yy={}}return t(G,"Parser"),G.prototype=X,X.Parser=G,new G}();te.parser=te;var Ee=te,he=12,T={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},_e=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=T,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level<e)return this.nodes[r];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,r,u,l){i.info("addNode",e,r,u,l);let n=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,n=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,n=!1;let p=d(),k=p.mindmap?.padding??F.mindmap.padding;switch(l){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:k*=2;break}let E={id:this.count++,nodeId:q(r,p),level:e,descr:q(u,p),type:l,children:[],width:p.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:k,isRoot:n},x=this.getParent(e);if(x)x.children.push(E),this.nodes.push(E);else if(n)this.nodes.push(E);else throw Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,r){switch(i.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let r=d(),u=this.nodes[this.nodes.length-1];if(e.icon)u.icon=q(e.icon,r);if(e.class)u.class=q(e.class,r)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r,u=0,l=!1){if(e.level===0)e.section=void 0;else e.section=l?(u-1)%(he-1):r;if(e.children)for(let[n,p]of e.children.entries()){let k=e.level===0?n%(he-1):r;this.assignSections(p,k,u+1,l)}}flattenNodes(e,r){let u=d(),l=["mindmap-node"];if(e.isRoot===!0)l.push("section-root","section--1");else if(e.section!==void 0)l.push(`section-${e.section}`);if(e.class)l.push(e.class);let n=l.join(" "),p=t((E)=>{let w=(u.theme?.toLowerCase()??"").includes("redux");switch(E){case T.CIRCLE:return"mindmapCircle";case T.RECT:return"rect";case T.ROUNDED_RECT:return"rounded";case T.CLOUD:return"cloud";case T.BANG:return"bang";case T.HEXAGON:return"hexagon";case T.DEFAULT:return w?"rounded":"defaultMindmapNode";case T.NO_BORDER:default:return"rect"}},"getShapeFromType"),k={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:p(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:n,cssStyles:[],centerLabel:!0,look:u.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(k),e.children)for(let E of e.children)this.flattenNodes(E,r)}generateEdges(e,r){if(!e.children)return;let u=d();for(let l of e.children){let n="edge";if(l.section!==void 0)n+=` section-edge-${l.section}`;let p=e.level+1;n+=` edge-depth-${p}`;let k={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:u.look,classes:n,depth:e.level,section:l.section};r.push(k),this.generateEdges(l,r)}}getData(){let e=this.getMindmap(),r=d(),l=Ac().layout!==void 0,n=r;if(!l)n.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:n};i.debug("getData: mindmapRoot",e,r),this.assignSections(e,void 0,0,r.mindmap?.colorBy==="depth");let p=[],k=[];this.flattenNodes(e,p),this.generateEdges(e,k),i.debug(`getData: processed ${p.length} nodes and ${k.length} edges`);let E=new Map;for(let x of p)E.set(x.id,{shape:x.shape,width:x.width,height:x.height,padding:x.padding});return{nodes:p,edges:k,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+ee()}}getLogger(){return i}},Se=t(async(e,r,u,l)=>{i.debug(`Rendering mindmap diagram
7
- `+e);let n=l.db,p=n.getData(),k=ze(r,p.config.securityLevel);if(p.type=l.type,p.layoutAlgorithm=Ue(p.config.layout,{fallback:"cose-bilkent"}),p.diagramId=r,!n.getMindmap())return;p.nodes.forEach((m)=>{if(m.shape==="rounded")m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15;else if(m.shape==="circle")m.padding=10;else if(m.shape==="rect")m.width=0,m.padding=10;else if(m.shape==="hexagon")m.width=0,m.height=0}),await He(p,k);let{themeVariables:x}=A(),{useGradient:w,gradientStart:U,gradientStop:B}=x;if(w&&U&&B){let m=k.attr("id"),M=k.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",U).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",B).attr("stop-opacity",1)}Re(k,p.config.mindmap?.padding??F.mindmap.padding,"mindmapDiagram",p.config.mindmap?.useMaxWidth??F.mindmap.useMaxWidth)},"draw"),xe={draw:Se},Ne=t((e)=>{let{theme:r,look:u}=e,l="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],de(e["lineColor"+n]))e["lineColor"+n]=f(e["lineColor"+n],20);else e["lineColor"+n]=h(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let p=""+(u==="neo"?Math.max(10-(n-1)*2,2):17-3*n),k=r==="redux"||r==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:n)];l+=`
8
- .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
- fill: ${e["cScale"+n]};
10
- }
11
- .section-${n-1} text {
12
- fill: ${e["cScaleLabel"+n]};
13
- }
14
- .section-${n-1} span {
15
- color: ${e["cScaleLabel"+n]};
16
- }
17
- .node-icon-${n-1} {
18
- font-size: 40px;
19
- color: ${e["cScaleLabel"+n]};
20
- }
21
- .section-edge-${n-1}{
22
- stroke: ${e["cScale"+n]};
23
- }
24
- .edge-depth-${n-1}{
25
- stroke-width: ${p};
26
- }
27
- .section-${n-1} line {
28
- stroke: ${e["cScaleInv"+n]} ;
29
- stroke-width: 3;
30
- }
31
-
32
- .disabled, .disabled circle, .disabled text {
33
- fill: lightgray;
34
- }
35
- .disabled text {
36
- fill: #efefef;
37
- }
38
- [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
39
- fill: ${r==="redux"||r==="redux-dark"||r==="neutral"?e.mainBkg:e["cScale"+n]};
40
- stroke: ${r==="redux"||r==="redux-dark"?e.nodeBorder:e["cScale"+n]};
41
- stroke-width: ${e.strokeWidth??2}px;
42
- }
43
- [data-look="neo"].section-edge-${n-1}{
44
- stroke: ${r?.includes("redux")||r==="neo-dark"?e.nodeBorder:e["cScale"+n]};
45
- }
46
- [data-look="neo"].mindmap-node.section-${n-1} text, [data-look="neo"].mindmap-node.section-${n-1} span {
47
- fill: ${k};
48
- color: ${k};
49
- }
50
- `}return l},"genSections"),Le=t((e,r,u)=>{let l="";for(let n=0;n<e;n++)l+=`
51
- [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
52
- stroke: url(${r}-gradient);
53
- fill: ${u};
54
- }
55
- .section-${n-1} line {
56
- stroke-width: 0;
57
- }`;return l},"genGradient"),De=t((e)=>{let{theme:r}=e,u=e.svgId,l=r?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:0)],n=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${u}-drop-shadow)`):"none";return`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${Ne(e)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${e.git0};
64
- }
65
- .section-root text {
66
- fill: ${e.gitBranchLabel0};
67
- }
68
- .section-root span {
69
- color: ${r?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
70
- }
71
- .icon-container {
72
- height:100%;
73
- display: flex;
74
- justify-content: center;
75
- align-items: center;
76
- }
77
- .edge {
78
- fill: none;
79
- }
80
- .mindmap-node-label {
81
- dy: 1em;
82
- alignment-baseline: middle;
83
- text-anchor: middle;
84
- dominant-baseline: middle;
85
- text-align: center;
86
- }
87
- [data-look="neo"].mindmap-node {
88
- filter: ${n};
89
- }
90
- [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
91
- fill: ${r?.includes("redux")?e.mainBkg:e.git0};
92
- }
93
- [data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
94
- fill: ${l};
95
- color: ${l};
96
- }
97
- ${e.useGradient&&u&&e.mainBkg?Le(e.THEME_COLOR_LIMIT,u,e.mainBkg):""}
98
- `},"getStyles"),ve=De,It={get db(){return new _e},renderer:xe,parser:Ee,styles:ve};export{It as diagram};
Binary file
Binary file
@@ -1,78 +0,0 @@
1
- import{ie}from"./chunk-nzgj9qx5.js";import{t,i,Xe,A,Y,L,M,R,P,I,O,D,d,J,Q}from"./chunk-h4bzgvbg.js";import{ge}from"./chunk-9qdx0ekk.js";var at=t((a,s)=>{let o=a<=1?a*100:a;if(o<0||o>100)throw Error(`${s} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return o},"toPercent"),G=t((a,s,o)=>({x:at(s,`${o} evolution`),y:at(a,`${o} visibility`)}),"toCoordinates"),lt=t((a)=>{if(!a)return;if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward";return},"getFlowFromPort"),Yt=t((a)=>{if(!a?.startsWith("+"))return{};let o=/^\+'([^']*)'/.exec(a)?.[1];if(a.includes("<>"))return{flow:"bidirectional",label:o};if(a.includes("<"))return{flow:"backward",label:o};if(a.includes(">"))return{flow:"forward",label:o};return{label:o}},"extractFlowFromArrow"),It=t((a,s)=>{if(ie(a,s),a.size)s.setSize(a.size.width,a.size.height);if(a.evolution){let o=a.evolution.stages.map((r)=>{if(r.secondName)return`${r.name.trim()} / ${r.secondName.trim()}`;return r.name.trim()}),y=a.evolution.stages.filter((r)=>r.boundary!==void 0).map((r)=>r.boundary);s.updateAxes({stages:o,stageBoundaries:y})}if(a.anchors.forEach((o)=>{let y=G(o.visibility,o.evolution,`Anchor "${o.name}"`);s.addNode(o.name,o.name,y.x,y.y,"anchor")}),a.components.forEach((o)=>{let y=G(o.visibility,o.evolution,`Component "${o.name}"`),r=o.label?(o.label.negX?-1:1)*o.label.offsetX:void 0,p=o.label?(o.label.negY?-1:1)*o.label.offsetY:void 0,k=o.decorator?.strategy;s.addNode(o.name,o.name,y.x,y.y,"component",r,p,o.inertia,k)}),a.notes.forEach((o)=>{let y=G(o.visibility,o.evolution,`Note "${o.text}"`);s.addNote(o.text,y.x,y.y)}),a.pipelines.forEach((o)=>{let y=s.getNode(o.parent);if(!y||typeof y.y!=="number")throw Error(`Pipeline "${o.parent}" must reference an existing component with coordinates.`);let r=y.y;s.startPipeline(o.parent),o.components.forEach((p)=>{let k=`${o.parent}_${p.name}`,T=p.label?(p.label.negX?-1:1)*p.label.offsetX:void 0,w=p.label?(p.label.negY?-1:1)*p.label.offsetY:void 0,U=at(p.evolution,`Pipeline component "${p.name}" evolution`);s.addNode(k,p.name,U,r,"pipeline-component",T,w),s.addPipelineComponent(o.parent,k)})}),a.links.forEach((o)=>{let y=!!o.arrow&&(o.arrow.includes("-.->")||o.arrow.includes(".-.")),r=lt(o.fromPort)??lt(o.toPort),{flow:p,label:k}=Yt(o.arrow);if(!r&&p)r=p;let T=o.linkLabel,w=k??T;s.addLink(s.resolveNodeId(o.from),s.resolveNodeId(o.to),y,w,r)}),a.evolves.forEach((o)=>{let y=s.getNode(o.component);if(y?.y!==void 0){let r=at(o.target,`Evolve target for "${o.component}"`);s.addTrend(o.component,r,y.y)}}),a.annotations.length>0){let o=a.annotations[0],y=G(o.x,o.y,"Annotations box");s.setAnnotationsBox(y.x,y.y)}a.annotation.forEach((o)=>{let y=G(o.x,o.y,`Annotation ${o.number}`);s.addAnnotation(o.number,[{x:y.x,y:y.y}],o.text)}),a.accelerators.forEach((o)=>{let y=G(o.x,o.y,`Accelerator "${o.name}"`);s.addAccelerator(o.name,y.x,y.y)}),a.deaccelerators.forEach((o)=>{let y=G(o.x,o.y,`Deaccelerator "${o.name}"`);s.addDeaccelerator(o.name,y.x,y.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(a)=>{let s=await ge("wardley",a);i.debug(s);let o=ct.parser?.yy;if(!o||typeof o.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");It(s,o)},"parse")},Bt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(a){let s=this.nodes.get(a.id)??{id:a.id,label:a.label},o={...s,...a,className:a.className??s.className,labelOffsetX:a.labelOffsetX??s.labelOffsetX,labelOffsetY:a.labelOffsetY??s.labelOffsetY};this.nodes.set(a.id,o)}addLink(a){this.links.push(a)}addTrend(a){this.trends.set(a.nodeId,a)}startPipeline(a){this.pipelines.set(a,{nodeId:a,componentIds:[]});let s=this.nodes.get(a);if(s)s.isPipelineParent=!0}addPipelineComponent(a,s){let o=this.pipelines.get(a);if(o)o.componentIds.push(s);let y=this.nodes.get(s);if(y)y.inPipeline=!0}addAnnotation(a){this.annotations.push(a)}addNote(a){this.notes.push(a)}addAccelerator(a){this.accelerators.push(a)}addDeaccelerator(a){this.deaccelerators.push(a)}setAnnotationsBox(a,s){this.annotationsBox={x:a,y:s}}setAxes(a){this.axes={...this.axes,...a}}setSize(a,s){this.size={width:a,height:s}}getNode(a){return this.nodes.get(a)}resolveNodeId(a){if(this.nodes.has(a))return a;for(let[s,o]of this.nodes)if(o.label===a)return s;return a}build(){let a=[];for(let s of this.nodes.values()){if(typeof s.x!=="number"||typeof s.y!=="number")throw Error(`Node "${s.label}" is missing coordinates`);a.push(s)}return{nodes:a,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},v=new Bt;function pt(){return d()["wardley-beta"]}t(pt,"getConfig");function ht(a,s,o,y,r,p,k,T,w){v.addNode({id:a,label:s,x:o,y,className:r,labelOffsetX:p,labelOffsetY:k,inertia:T,sourceStrategy:w})}t(ht,"addNode");function ft(a,s,o=!1,y,r){v.addLink({source:a,target:s,dashed:o,label:y,flow:r})}t(ft,"addLink");function xt(a,s,o){v.addTrend({nodeId:a,targetX:s,targetY:o})}t(xt,"addTrend");function gt(a,s,o){v.addAnnotation({number:a,coordinates:s,text:o})}t(gt,"addAnnotation");function yt(a,s,o){v.addNote({text:a,x:s,y:o})}t(yt,"addNote");function ut(a,s,o){v.addAccelerator({name:a,x:s,y:o})}t(ut,"addAccelerator");function wt(a,s,o){v.addDeaccelerator({name:a,x:s,y:o})}t(wt,"addDeaccelerator");function mt(a,s){v.setAnnotationsBox(a,s)}t(mt,"setAnnotationsBox");function kt(a,s){v.setSize(a,s)}t(kt,"setSize");function bt(a){v.startPipeline(a)}t(bt,"startPipeline");function $t(a,s){v.addPipelineComponent(a,s)}t($t,"addPipelineComponent");function vt(a){v.setAxes(a)}t(vt,"updateAxes");function Pt(a){return v.getNode(a)}t(Pt,"getNode");function Ct(a){return v.resolveNodeId(a)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),L()}t(Mt,"clear");var Ft={getConfig:pt,addNode:ht,addLink:ft,addTrend:xt,addAnnotation:gt,addNote:yt,addAccelerator:ut,addDeaccelerator:wt,setAnnotationsBox:mt,setSize:kt,startPipeline:bt,addPipelineComponent:$t,updateAxes:vt,getNode:Pt,resolveNodeId:Ct,getWardleyData:St,clear:Mt,setAccTitle:M,getAccTitle:R,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:P},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:a}=d();return{backgroundColor:a.wardley?.backgroundColor??a.background??"#fff",axisColor:a.wardley?.axisColor??"#000",axisTextColor:a.wardley?.axisTextColor??a.primaryTextColor??"#222",gridColor:a.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:a.wardley?.componentFill??"#fff",componentStroke:a.wardley?.componentStroke??"#000",componentLabelColor:a.wardley?.componentLabelColor??a.primaryTextColor??"#222",linkStroke:a.wardley?.linkStroke??"#000",evolutionStroke:a.wardley?.evolutionStroke??"#dc3545",annotationStroke:a.wardley?.annotationStroke??"#000",annotationTextColor:a.wardley?.annotationTextColor??a.primaryTextColor??"#222",annotationFill:a.wardley?.annotationFill??a.background??"#fff"}},"getTheme"),Dt=t(()=>{let a=d()["wardley-beta"];return{width:a?.width??900,height:a?.height??600,padding:a?.padding??48,nodeRadius:a?.nodeRadius??6,nodeLabelOffset:a?.nodeLabelOffset??8,axisFontSize:a?.axisFontSize??12,labelFontSize:a?.labelFontSize??10,showGrid:a?.showGrid??!1,useMaxWidth:a?.useMaxWidth??!0}},"getConfigValues"),Gt=t((a,s,o,y)=>{i.debug(`Rendering Wardley map
2
- `+a);let r=Dt(),p=Ot(),k=r.nodeRadius*1.6,T=y.db,w=T.getWardleyData(),U=T.getDiagramTitle(),W=w.size?.width??r.width,C=w.size?.height??r.height,j=J(s);j.selectAll("*").remove(),Y(j,C,W,r.useMaxWidth),j.attr("viewBox",`0 0 ${W} ${C}`);let N=j.append("g").attr("class","wardley-map"),rt=j.append("defs");rt.append("marker").attr("id",`arrow-${s}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.evolutionStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-end-${s}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.linkStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-start-${s}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",p.linkStroke).attr("stroke","none"),N.append("rect").attr("class","wardley-background").attr("width",W).attr("height",C).attr("fill",p.backgroundColor);let V=W-r.padding*2,_=C-r.padding*2;if(U)N.append("text").attr("class","wardley-title").attr("x",W/2).attr("y",r.padding/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(U);let H=t((e)=>r.padding+e/100*V,"projectX"),B=t((e)=>C-r.padding-e/100*_,"projectY"),K=N.append("g").attr("class","wardley-axes");K.append("line").attr("x1",r.padding).attr("x2",W-r.padding).attr("y1",C-r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1),K.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1);let Nt=w.axes.xLabel??"Evolution",zt=w.axes.yLabel??"Visibility";K.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+V/2).attr("y",C-r.padding/4).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Nt),K.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+_/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+_/2})`).text(zt);let Z=w.axes.stages&&w.axes.stages.length>0?w.axes.stages:Rt;if(Z.length>0){let e=N.append("g").attr("class","wardley-stages"),l=w.axes.stageBoundaries,n=[];if(l&&l.length===Z.length){let c=0;l.forEach((f)=>{n.push({start:c,end:f}),c=f})}else{let c=1/Z.length;Z.forEach((f,x)=>{n.push({start:x*c,end:(x+1)*c})})}Z.forEach((c,f)=>{let x=n[f],u=r.padding+x.start*V,g=r.padding+x.end*V,m=(u+g)/2;if(f>0)e.append("line").attr("x1",u).attr("x2",u).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);e.append("text").attr("class","wardley-stage-label").attr("x",m).attr("y",C-r.padding/1.5).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(c)})}if(r.showGrid){let e=N.append("g").attr("class","wardley-grid");for(let l=1;l<4;l++){let n=l/4,c=r.padding+V*n;e.append("line").attr("x1",c).attr("x2",c).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",r.padding).attr("x2",W-r.padding).attr("y1",C-r.padding-_*n).attr("y2",C-r.padding-_*n).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6")}}let h=new Map;if(w.nodes.forEach((e)=>{h.set(e.id,{x:H(e.x),y:B(e.y),node:e})}),w.pipelines.length>0){let e=N.append("g").attr("class","wardley-pipelines"),l=N.append("g").attr("class","wardley-pipeline-links");w.pipelines.forEach((n)=>{if(n.componentIds.length===0)return;let c=n.componentIds.map((g)=>({id:g,pos:h.get(g),node:w.nodes.find((m)=>m.id===g)})).filter((g)=>g.pos&&g.node).sort((g,m)=>g.node.x-m.node.x);for(let g=0;g<c.length-1;g++){let m=c[g],b=c[g+1];l.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",b.pos.x).attr("y2",b.pos.y).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let f=1/0,x=-1/0,u=0;if(n.componentIds.forEach((g)=>{let m=h.get(g);if(m)f=Math.min(f,m.x),x=Math.max(x,m.x),u=m.y}),f!==1/0&&x!==-1/0){let m=r.nodeRadius*4,b=u-m/2,z=h.get(n.nodeId);if(z){let E=(f+x)/2;z.x=E,z.y=b-k/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",f-15).attr("y",b).attr("width",x-f+30).attr("height",m).attr("fill","none").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let st=N.append("g").attr("class","wardley-links"),it=new Map;w.pipelines.forEach((e)=>{it.set(e.nodeId,new Set(e.componentIds))});let dt=w.links.filter((e)=>{if(!h.has(e.source)||!h.has(e.target))return!1;if(it.get(e.target)?.has(e.source))return!1;return!0});st.selectAll("line").data(dt).enter().append("line").attr("class",(e)=>`wardley-link${e.dashed?" wardley-link--dashed":""}`).attr("x1",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.x+x/g*f}).attr("y1",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.y+u/g*f}).attr("x2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.x+x/g*f}).attr("y2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.y+u/g*f}).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(e)=>e.dashed?"6 6":null).attr("marker-end",(e)=>{if(e.flow==="forward"||e.flow==="bidirectional")return`url(#link-arrow-end-${s})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${s})`;return null}),st.selectAll("text").data(dt.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=n.y-l.y,x=n.x-l.x,u=Math.sqrt(x*x+f*f),g=8,m=f/u;return c+m*8}).attr("y",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.y+n.y)/2,f=n.x-l.x,x=n.y-l.y,u=Math.sqrt(f*f+x*x),g=8,m=-f/u;return c+m*8}).attr("fill",p.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=(l.y+n.y)/2,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u),m=8,b=u/g,z=-x/g,E=c+b*8,tt=f+z*8,q=Math.atan2(u,x)*180/Math.PI;if(q>90||q<-90)q+=180;return`rotate(${q} ${E} ${tt})`}).text((e)=>e.label);let Lt=N.append("g").attr("class","wardley-trends"),Tt=w.trends.map((e)=>{let l=h.get(e.nodeId);if(!l)return null;let n=H(e.targetX),c=B(e.targetY),f=n-l.x,x=c-l.y,u=Math.sqrt(f*f+x*x),g=r.nodeRadius+2,m=u>g?n-f/u*g:n,b=u>g?c-x/u*g:c;return{origin:l,targetX:n,targetY:c,adjustedX2:m,adjustedY2:b}}).filter((e)=>e!==null);Lt.selectAll("line").data(Tt).enter().append("line").attr("class","wardley-trend").attr("x1",(e)=>e.origin.x).attr("y1",(e)=>e.origin.y).attr("x2",(e)=>e.adjustedX2).attr("y2",(e)=>e.adjustedY2).attr("stroke",p.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${s})`);let X=N.append("g").attr("class","wardley-nodes").selectAll("g").data(w.nodes).enter().append("g").attr("class",(e)=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));X.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",p.componentStroke).attr("stroke-width",1),X.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",p.componentStroke).attr("stroke-width",1),X.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let F=X.filter((e)=>e.sourceStrategy==="market");F.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),X.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1);let ot=r.nodeRadius*0.7,S=r.nodeRadius*1.2;if(F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x).attr("y1",(e)=>h.get(e.id).y-S).attr("x2",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x).attr("y2",(e)=>h.get(e.id).y-S).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y-S).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),X.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>h.get(e.id).x-k/2).attr("y",(e)=>h.get(e.id).y-k/2).attr("width",k).attr("height",k).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1),X.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y-n/2}).attr("x2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y+n/2}).attr("stroke",p.componentStroke).attr("stroke-width",6),X.append("text").attr("x",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?l.x+e.labelOffsetX:l.x;let n=r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)n+=10;let c=e.labelOffsetX??n;return l.x+c}).attr("y",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?l.y+e.labelOffsetY:l.y-3;let n=-r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)n-=10;let c=e.labelOffsetY??n;return l.y+c}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return p.evolutionStroke;if(e.className==="anchor")return"#000";return p.componentLabelColor}).attr("font-size",r.labelFontSize).attr("font-weight",(e)=>e.className==="anchor"?"bold":"normal").attr("text-anchor",(e)=>e.className==="anchor"?"middle":"start").attr("dominant-baseline",(e)=>e.className==="anchor"?"middle":"auto").text((e)=>e.label),w.annotations.length>0){let e=N.append("g").attr("class","wardley-annotations");if(w.annotations.forEach((l)=>{let n=l.coordinates.map((c)=>({x:H(c.x),y:B(c.y)}));if(n.length>1)for(let c=0;c<n.length-1;c++)e.append("line").attr("class","wardley-annotation-line").attr("x1",n[c].x).attr("y1",n[c].y).attr("x2",n[c+1].x).attr("y2",n[c+1].y).attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach((c)=>{let f=e.append("g").attr("class","wardley-annotation");f.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",10).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5),f.append("text").attr("x",c.x).attr("y",c.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.number)})}),w.annotationsBox){let l=H(w.annotationsBox.x),n=B(w.annotationsBox.y),c=10,f=16,x=11,u=e.append("g").attr("class","wardley-annotations-box"),g=[...w.annotations].filter((b)=>b.text).sort((b,z)=>b.number-z.number),m=[];if(g.forEach((b,z)=>{let E=u.append("text").attr("x",l+c).attr("y",n+c+(z+1)*f).attr("font-size",x).attr("fill",p.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${b.number}. ${b.text}`);m.push(E)}),m.length>0){let b=0,z=0;m.forEach((nt)=>{let et=nt.node(),Et=et.getComputedTextLength();b=Math.max(b,Et);let Ht=et.getBBox();z=Math.max(z,Ht.height)});let E=b+c*2+105,tt=g.length*f+c*2+z/2,q=r.padding,Wt=W-r.padding-E,At=r.padding,Xt=C-r.padding-tt;l=Math.max(q,Math.min(l,Wt)),n=Math.max(At,Math.min(n,Xt)),m.forEach((nt,et)=>{nt.attr("x",l+c).attr("y",n+c+(et+1)*f)}),u.insert("rect","text").attr("x",l).attr("y",n).attr("width",E).attr("height",tt).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(w.notes.length>0){let e=N.append("g").attr("class","wardley-notes");w.notes.forEach((l)=>{let n=H(l.x),c=B(l.y);e.append("text").attr("x",n).attr("y",c).attr("text-anchor","start").attr("font-size",11).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.text)})}if(w.accelerators.length>0){let e=N.append("g").attr("class","wardley-accelerators");w.accelerators.forEach((l)=>{let n=H(l.x),c=B(l.y),f=60,x=30,u=20,g=`
3
- M ${n} ${c-15}
4
- L ${n+60-20} ${c-15}
5
- L ${n+60-20} ${c-15-8}
6
- L ${n+60} ${c}
7
- L ${n+60-20} ${c+15+8}
8
- L ${n+60-20} ${c+15}
9
- L ${n} ${c+15}
10
- Z
11
- `;e.append("path").attr("d",g).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.name)})}if(w.deaccelerators.length>0){let e=N.append("g").attr("class","wardley-deaccelerators");w.deaccelerators.forEach((l)=>{let n=H(l.x),c=B(l.y),f=60,x=30,u=20,g=`
12
- M ${n+60} ${c-15}
13
- L ${n+20} ${c-15}
14
- L ${n+20} ${c-15-8}
15
- L ${n} ${c}
16
- L ${n+20} ${c+15+8}
17
- L ${n+20} ${c+15}
18
- L ${n+60} ${c+15}
19
- Z
20
- `;e.append("path").attr("d",g).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.name)})}},"draw"),qt={draw:Gt},jt=t(({wardley:a}={})=>{let s=Xe(),o=A(),y=Q(s,o.themeVariables),r=Q(y.wardley,a);return`
21
- .wardley-background {
22
- fill: ${r.backgroundColor};
23
- }
24
- .wardley-axes line, .wardley-axes path {
25
- stroke: ${r.axisColor};
26
- }
27
- .wardley-axis-label {
28
- fill: ${r.axisTextColor};
29
- }
30
- .wardley-stage-label {
31
- fill: ${r.axisTextColor};
32
- }
33
- .wardley-grid line {
34
- stroke: ${r.gridColor};
35
- }
36
- .wardley-node circle {
37
- fill: ${r.componentFill};
38
- stroke: ${r.componentStroke};
39
- }
40
- .wardley-node-label {
41
- fill: ${r.componentLabelColor};
42
- }
43
- .wardley-link {
44
- stroke: ${r.linkStroke};
45
- }
46
- .wardley-link--dashed {
47
- stroke-dasharray: 4 4;
48
- }
49
- .wardley-link-label {
50
- fill: ${r.axisTextColor};
51
- }
52
- .wardley-trend line {
53
- stroke: ${r.evolutionStroke};
54
- }
55
- .wardley-annotation-line {
56
- stroke: ${r.annotationStroke};
57
- }
58
- .wardley-annotation circle {
59
- fill: ${r.annotationFill};
60
- stroke: ${r.annotationStroke};
61
- }
62
- .wardley-annotation text {
63
- fill: ${r.annotationTextColor};
64
- }
65
- .wardley-annotations-box rect {
66
- fill: ${r.annotationFill};
67
- stroke: ${r.annotationStroke};
68
- }
69
- .wardley-annotations-box text {
70
- fill: ${r.annotationTextColor};
71
- }
72
- .wardley-pipeline-box {
73
- stroke: ${r.componentStroke};
74
- }
75
- .wardley-notes text {
76
- fill: ${r.axisTextColor};
77
- }
78
- `},"styles"),ee={parser:ct,db:Ft,renderer:qt,styles:jt};export{ee as diagram};
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- import{Rn,Pr,In,no}from"./chunk-96n00vam.js";import{Dn}from"./chunk-bw9crrb4.js";import{Fn,Ja,oa,_t,ei}from"./chunk-h4bzgvbg.js";function s(r,n){return r==null||n==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function x(r,n){return r==null||n==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function Ma(r){let n,e,t;if(r.length!==2)n=s,e=(f,c)=>s(r(f),c),t=(f,c)=>r(f)-c;else n=r===s||r===x?r:O,e=r,t=r;function o(f,c,i=0,p=f.length){if(i<p){if(n(c,c)!==0)return p;do{let l=i+p>>>1;if(e(f[l],c)<0)i=l+1;else p=l}while(i<p)}return i}function a(f,c,i=0,p=f.length){if(i<p){if(n(c,c)!==0)return p;do{let l=i+p>>>1;if(e(f[l],c)<=0)i=l+1;else p=l}while(i<p)}return i}function u(f,c,i=0,p=f.length){let l=o(f,c,i,p-1);return l>i&&t(f[l-1],c)>-t(f[l],c)?l-1:l}return{left:o,center:u,right:a}}function O(){return 0}function y(r){return r===null?NaN:+r}var V=Ma(s),{right:T,left:ir}=V,or=Ma(y).center,z=T;var E=Math.sqrt(50),G=Math.sqrt(10),H=Math.sqrt(2);function g(r,n,e){let t=(n-r)/Math.max(0,e),o=Math.floor(Math.log10(t)),a=t/Math.pow(10,o),u=a>=E?10:a>=G?5:a>=H?2:1,f,c,i;if(o<0){if(i=Math.pow(10,-o)/u,f=Math.round(r*i),c=Math.round(n*i),f/i<r)++f;if(c/i>n)--c;i=-i}else{if(i=Math.pow(10,o)*u,f=Math.round(r/i),c=Math.round(n/i),f*i<r)++f;if(c*i>n)--c}if(c<f&&0.5<=e&&e<2)return g(r,n,e*2);return[f,c,i]}function v(r,n,e){if(n=+n,r=+r,e=+e,!(e>0))return[];if(r===n)return[r];let t=n<r,[o,a,u]=t?g(n,r,e):g(r,n,e);if(!(a>=o))return[];let f=a-o+1,c=Array(f);if(t)if(u<0)for(let i=0;i<f;++i)c[i]=(a-i)/-u;else for(let i=0;i<f;++i)c[i]=(a-i)*u;else if(u<0)for(let i=0;i<f;++i)c[i]=(o+i)/-u;else for(let i=0;i<f;++i)c[i]=(o+i)*u;return c}function M(r,n,e){return n=+n,r=+r,e=+e,g(r,n,e)[2]}function Si(r,n,e){n=+n,r=+r,e=+e;let t=n<r,o=t?M(n,r,e):M(r,n,e);return(t?-1:1)*(o<0?1/-o:o)}function N(r,n){if(!n)n=[];var e=r?Math.min(n.length,r.length):0,t=n.slice(),o;return function(a){for(o=0;o<e;++o)t[o]=r[o]*(1-a)+n[o]*a;return t}}function B(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function P(r,n){var e=n?n.length:0,t=r?Math.min(e,r.length):0,o=Array(t),a=Array(e),u;for(u=0;u<t;++u)o[u]=h(r[u],n[u]);for(;u<e;++u)a[u]=n[u];return function(f){for(u=0;u<t;++u)a[u]=o[u](f);return a}}function w(r,n){var e=new Date;return r=+r,n=+n,function(t){return e.setTime(r*(1-t)+n*t),e}}function k(r,n){var e={},t={},o;if(r===null||typeof r!=="object")r={};if(n===null||typeof n!=="object")n={};for(o in n)if(o in r)e[o]=h(r[o],n[o]);else t[o]=n[o];return function(a){for(o in e)t[o]=e[o](a);return t}}function h(r,n){var e=typeof n,t;return n==null||e==="boolean"?Ja(n):(e==="number"?_t:e==="string"?(t=Fn(n))?(n=t,oa):ei:n instanceof Fn?oa:n instanceof Date?w:B(n)?N:Array.isArray(n)?P:typeof n.valueOf!=="function"&&typeof n.toString!=="function"||isNaN(n)?k:_t)(r,n)}function A(r,n){return r=+r,n=+n,function(e){return Math.round(r*(1-e)+n*e)}}function R(r){return Math.max(0,-Rn(Math.abs(r)))}function S(r,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rn(n)/3)))*3-Rn(Math.abs(r)))}function j(r,n){return r=Math.abs(r),n=Math.abs(n)-r,Math.max(0,Rn(n)-Rn(r))+1}function F(r){return function(){return r}}function q(r){return+r}var C=[0,1];function d(r){return r}function D(r,n){return(n-=r=+r)?function(e){return(e-r)/n}:F(isNaN(n)?NaN:0.5)}function J(r,n){var e;if(r>n)e=r,r=n,n=e;return function(t){return Math.max(r,Math.min(n,t))}}function K(r,n,e){var t=r[0],o=r[1],a=n[0],u=n[1];if(o<t)t=D(o,t),a=e(u,a);else t=D(t,o),a=e(a,u);return function(f){return a(t(f))}}function Q(r,n,e){var t=Math.min(r.length,n.length)-1,o=Array(t),a=Array(t),u=-1;if(r[t]<r[0])r=r.slice().reverse(),n=n.slice().reverse();while(++u<t)o[u]=D(r[u],r[u+1]),a[u]=e(n[u],n[u+1]);return function(f){var c=z(r,f,1,t)-1;return a[c](o[c](f))}}function to(r,n){return n.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())}function U(){var r=C,n=C,e=h,t,o,a,u=d,f,c,i;function p(){var m=Math.min(r.length,n.length);if(u!==d)u=J(r[0],r[m-1]);return f=m>2?Q:K,c=i=null,l}function l(m){return m==null||isNaN(m=+m)?a:(c||(c=f(r.map(t),n,e)))(t(u(m)))}return l.invert=function(m){return u(o((i||(i=f(n,r.map(t),_t)))(m)))},l.domain=function(m){return arguments.length?(r=Array.from(m,q),p()):r.slice()},l.range=function(m){return arguments.length?(n=Array.from(m),p()):n.slice()},l.rangeRound=function(m){return n=Array.from(m),e=A,p()},l.clamp=function(m){return arguments.length?(u=m?!0:d,p()):u!==d},l.interpolate=function(m){return arguments.length?(e=m,p()):e},l.unknown=function(m){return arguments.length?(a=m,l):a},function(m,L){return t=m,o=L,p()}}function Ai(){return U()(d,d)}function I(r,n,e,t){var o=Si(r,n,e),a;switch(t=Pr(t==null?",f":t),t.type){case"s":{var u=Math.max(Math.abs(r),Math.abs(n));if(t.precision==null&&!isNaN(a=S(o,u)))t.precision=a;return no(t,u)}case"":case"e":case"g":case"p":case"r":{if(t.precision==null&&!isNaN(a=j(o,Math.max(Math.abs(r),Math.abs(n)))))t.precision=a-(t.type==="e");break}case"f":case"%":{if(t.precision==null&&!isNaN(a=R(o)))t.precision=a-(t.type==="%")*2;break}}return In(t)}function W(r){var n=r.domain;return r.ticks=function(e){var t=n();return v(t[0],t[t.length-1],e==null?10:e)},r.tickFormat=function(e,t){var o=n();return I(o[0],o[o.length-1],e==null?10:e,t)},r.nice=function(e){if(e==null)e=10;var t=n(),o=0,a=t.length-1,u=t[o],f=t[a],c,i,p=10;if(f<u)i=u,u=f,f=i,i=o,o=a,a=i;while(p-- >0){if(i=M(u,f,e),i===c)return t[o]=u,t[a]=f,n(t);else if(i>0)u=Math.floor(u/i)*i,f=Math.ceil(f/i)*i;else if(i<0)u=Math.ceil(u*i)/i,f=Math.floor(f*i)/i;else break;c=i}return r},r}function vn(){var r=Ai();return r.copy=function(){return to(r,vn())},Dn.apply(r,arguments),W(r)}
2
- export{Ma,Si,to,Ai,vn};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{y,s,te,o,a,m,e,n,b,dr,va,ht,Xr,rt,kr,ke,me,ji,qc,qi}from"./chunk-56a6zytc.js";function le(d){let{Button:h,confirm:L,PageLayout:x,Switch:_,cn:F,style:z}=b(),{connection:f,onOpen:O}=d,[D,p]=a([]),[w,H]=a([]),[q,J]=a([]),[I,T]=a(),[B,U]=a([]),[A,V]=a(!0),[k,N]=a(),[C,R]=a(),[W,P]=a(!1),[G,c]=a({}),i=o(0),E=y(async()=>{let t=++i.current;try{let[r,l,u,g]=await Promise.all([f.request("/api/automations"),f.request("/api/projects").catch(()=>[]),f.request("/api/info").catch(()=>{return}),f.request("/api/models").catch(()=>({models:[]}))]),Z=[...new Set(r.flatMap((v)=>v.lastSessionID?[v.lastSessionID]:[]))],ee=(await Promise.all(Z.map(async(v)=>f.request(`/api/sessions/${encodeURIComponent(v)}`).catch((j)=>{if(j instanceof Error&&"status"in j&&j.status===404)return;throw j})))).filter((v)=>v!==void 0);if(t!==i.current)return;if(p(r.sort((v,j)=>v.created-j.created)),H(l),J(ee),T(u),g?.models)U(g.models.map((v)=>v.id));N(void 0)}catch(r){if(t===i.current)N(r instanceof Error?r.message:"加载失败")}finally{if(t===i.current)V(!1)}},[f]);s(()=>(E(),()=>{i.current++}),[E]);let S=(t)=>{R(t),P(!0)},Q=async(t)=>{c((r)=>({...r,[t.id]:!0}));try{let r=await f.request(`/api/automations/${t.id}/run`,{method:"POST"});O(r.id)}catch(r){N(r instanceof Error?r.message:"运行失败")}finally{c((r)=>({...r,[t.id]:!1}))}},X=async(t)=>{if(!await L({title:`删除自动化「${t.name}」?`,description:"已经跑出来的会话会保留。",action:"删除",danger:!0}))return;try{await f.request(`/api/automations/${t.id}`,{method:"DELETE"}),p((l)=>l.filter((u)=>u.id!==t.id))}catch(l){N(l instanceof Error?l.message:"删除失败")}},Y=async(t,r)=>{try{let l=await f.request(`/api/automations/${t.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:r})});p((u)=>u.map((g)=>g.id===t.id?l:g))}catch(l){N(l instanceof Error?l.message:"状态切换失败")}};return n(x,{title:"自动化",description:n(m,{children:["到点自动开一个新会话执行提示词,跑完的结果在会话里查看。",I?.timezone&&n("span",{className:"text-faint",children:["按服务器时区 ",I.timezone,"。"]})]}),actions:n(h,{variant:"primary",onClick:()=>S(null),children:[e(ke,{className:"size-4"}),"新建"]}),children:[k&&e("div",{className:"mb-4 rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:k}),A?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载自动化…"}):D.length===0?n("div",{className:z("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e(dr,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-md font-medium",children:"还没有自动化"}),e("p",{className:"mt-1 text-sm text-dim",children:"比如「每个工作日 9 点总结昨天的提交」。"})]}),n(h,{size:"sm",onClick:()=>S(null),className:"mt-1",children:[e(ke,{className:"size-3.5"}),"新建自动化"]})]}):e("ul",{className:"flex animate-fade flex-col gap-3",children:D.map((t)=>{let r=t.projectID?w.find((g)=>g.id===t.projectID):void 0,l=t.lastSessionID?q.find((g)=>g.id===t.lastSessionID):void 0,u=Boolean(G[t.id]);return e("li",{children:n("article",{className:z("surface.card","group p-4 transition-[border-color,box-shadow] duration-200 hover:border-line-strong hover:shadow-composer"),children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:F("min-w-0 flex-1 transition-opacity duration-200",!t.enabled&&"opacity-55"),children:[e("h2",{className:"truncate text-md font-medium",children:t.name}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3.5 gap-y-1 text-ui text-dim",children:[n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(dr,{}),qc(t.schedule)]}),n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[r?e(ht,{}):e(Xr,{}),r?r.name:"聊天"]}),t.enabled&&t.nextRun!==null&&n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(va,{}),"下次 ",qi(t.nextRun)]})]})]}),e(_,{checked:t.enabled,label:t.enabled?"停用":"启用",onCheckedChange:(g)=>Y(t,g),className:"mt-0.5"})]}),e("p",{className:F("mt-3 line-clamp-2 text-sm leading-6 whitespace-pre-wrap text-faint transition-opacity duration-200",!t.enabled&&"opacity-55"),children:t.prompt}),n("div",{className:"mt-3 -mb-1 flex items-center gap-1",children:[n(h,{size:"sm",onClick:()=>Q(t),disabled:u,children:[e(kr,{className:"size-3.5"}),u?"正在启动…":"立即运行"]}),n(h,{size:"sm",variant:"ghost",onClick:()=>S(t),children:[e(rt,{className:"size-3.5"}),"编辑"]}),n(h,{size:"sm",variant:"danger-ghost",onClick:()=>X(t),children:[e(me,{className:"size-3.5"}),"删除"]}),e("div",{className:"flex-1"}),t.lastRun!==null&&n("button",{type:"button",disabled:!l,onClick:()=>l&&O(l.id),className:"rounded-md px-1.5 py-1 text-ui text-faint transition-colors enabled:hover:bg-raised enabled:hover:text-ink",children:["上次运行 ",qi(t.lastRun),l?.archivedAt!=null?" · 已归档":"",!l?" · 会话已删除":""]})]})]})},t.id)})}),C!==void 0&&e(ne,{open:W,onOpenChange:P,automation:C??void 0,projects:w,models:B,timezone:I?.timezone,onSaved:(t)=>{p((r)=>{let l=r.findIndex((u)=>u.id===t.id);if(l>=0){let u=[...r];return u[l]=t,u}return[...r,t].sort((u,g)=>u.created-g.created)}),P(!1)},connection:f},C?.id??"new")]})}var M="custom",K="chat";function ne(d){let{Button:h,Dialog:L,Field:x,Form:_,FormError:F,Input:z,Select:f,Textarea:O}=b(),D=te(),p=d.automation,[w,H]=a(p?.name??""),[q,J]=a(p?.prompt??""),[I,T]=a(p?.schedule??ji[0]?.cron??"0 9 * * *"),[B,U]=a(()=>!ji.some((c)=>c.cron===I)),[A,V]=a(p?.projectID??K),[k,N]=a(p?.model??""),[C,R]=a(!1),[W,P]=a();async function G(c){c.preventDefault(),R(!0),P(void 0);try{let i=A===K?void 0:A,E={name:w,prompt:q,schedule:I,model:k||void 0},S;if(p)S=await d.connection.request(`/api/automations/${p.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:i??null})});else S=await d.connection.request("/api/automations",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:i})});d.onSaved(S)}catch(i){P(i instanceof Error?i.message:"保存失败")}finally{R(!1)}}return e(L,{open:d.open,onOpenChange:d.onOpenChange,title:d.automation?"编辑自动化":"新建自动化",size:"lg",footer:n(m,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(h,{onClick:()=>d.onOpenChange(!1),children:"取消"}),e(h,{type:"submit",form:D,variant:"primary",disabled:C,children:C?"正在保存…":d.automation?"保存":"创建"})]}),children:n(_,{id:D,onSubmit:G,children:[e(x,{label:"名称",children:(c)=>e(z,{id:c,autoFocus:!p,required:!0,value:w,onChange:(i)=>H(i.target.value),placeholder:"例如:每日提交总结"})}),e(x,{label:"提示词",hint:"没人盯着运行,写清楚要做什么、结果怎么汇报。",children:(c)=>e(O,{id:c,required:!0,value:q,onChange:(i)=>J(i.target.value),rows:5,placeholder:"总结昨天到现在的 git 提交,按模块分组,列出需要我关注的改动。"})}),n("div",{className:"grid gap-x-3 gap-y-4 sm:grid-cols-2",children:[e(x,{label:"时间",children:(c)=>e(f,{id:c,value:B?M:I,onValueChange:(i)=>{if(U(i===M),i!==M)T(i)},groups:[{options:ji.map((i)=>({value:i.cron,label:i.label}))},{options:[{value:M,label:"自定义(cron)"}]}]})}),e(x,{label:"在哪里运行",children:(c)=>e(f,{id:c,value:A,onValueChange:V,groups:[{options:[{value:K,label:"聊天",description:"不绑定目录",icon:e(Xr,{})}]},...d.projects.length?[{label:"项目",options:d.projects.map((i)=>({value:i.id,label:i.name,icon:e(ht,{})}))}]:[]]})})]}),B&&e(x,{label:"cron 表达式",hint:`分 时 日 月 周,例如 30 8 * * 1-5 是工作日 8:30。${d.timezone?`按 ${d.timezone} 时间。`:""}`,children:(c)=>e(z,{id:c,required:!0,value:I,onChange:(i)=>T(i.target.value),spellCheck:!1,className:"font-mono"})}),d.models.length>0&&e(x,{label:"模型",children:(c)=>e(f,{id:c,value:k||"default",onValueChange:(i)=>N(i==="default"?"":i),groups:[{options:[{value:"default",label:"默认模型"},...d.models.map((i)=>({value:i,label:i}))]}]})}),e(F,{children:W})]})})}export{le as AutomationsPage};
Binary file
Binary file