@bkm016/basalt 0.1.32 → 0.1.34

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 (973) hide show
  1. package/README.md +23 -0
  2. package/chunk-0tr0cc6f.js +3 -0
  3. package/chunk-1f0mnggp.js +3 -0
  4. package/chunk-1ntcq7ed.js +2 -0
  5. package/chunk-1xkxfddg.js +286 -0
  6. package/chunk-1zz6akcm.js +3 -0
  7. package/chunk-2cd3qzny.js +3 -0
  8. package/chunk-2sbmy31t.js +2 -0
  9. package/chunk-32s6agaj.js +2 -0
  10. package/chunk-37n62c4c.js +3 -0
  11. package/chunk-3w2902kg.js +9 -0
  12. package/chunk-43q7hq53.js +2 -0
  13. package/chunk-4ewh67qf.js +25 -0
  14. package/chunk-5277mfp2.js +44 -0
  15. package/chunk-6f1zc4g6.js +2 -0
  16. package/chunk-6r4kw9x9.js +60 -0
  17. package/chunk-7qaavsga.js +2 -0
  18. package/chunk-88s6d1bz.js +3 -0
  19. package/chunk-9jw0km9r.js +13 -0
  20. package/chunk-a3h0mng1.js +8 -0
  21. package/chunk-acmtkg1q.js +20 -0
  22. package/chunk-adn9jbzj.js +2 -0
  23. package/chunk-anfhjdgv.js +2 -0
  24. package/chunk-apn5amfe.js +498 -0
  25. package/chunk-bsp6e8cv.js +2 -0
  26. package/chunk-bw2h35jd.js +2 -0
  27. package/chunk-bwx9m3ex.js +51 -0
  28. package/chunk-cezgvpja.js +3 -0
  29. package/chunk-cfhtmr6g.js +31 -0
  30. package/chunk-d5w3ntc3.js +7 -0
  31. package/chunk-dtks8c7v.js +2 -0
  32. package/chunk-e01g2yf9.js +3 -0
  33. package/chunk-e1rfd7jn.js +3 -0
  34. package/chunk-e8ehznx7.js +2 -0
  35. package/chunk-edp0svhf.js +3 -0
  36. package/chunk-evaew46c.js +2 -0
  37. package/chunk-ewhpfrgj.js +3 -0
  38. package/chunk-f7q6p7tp.js +7 -0
  39. package/chunk-fm482h25.js +3 -0
  40. package/chunk-g3j6jdht.js +39 -0
  41. package/chunk-gejre6z5.js +7 -0
  42. package/chunk-gz5ssvjh.js +3 -0
  43. package/chunk-h32ca6cs.js +11 -0
  44. package/chunk-hab25nd9.js +3 -0
  45. package/chunk-jbfkv490.js +8 -0
  46. package/chunk-jem2kqdt.js +3 -0
  47. package/chunk-jrwezx0r.js +16 -0
  48. package/chunk-ka5dtn3w.js +3 -0
  49. package/chunk-kxmws6zx.js +4068 -0
  50. package/chunk-m0gk2b1f.js +3 -0
  51. package/chunk-mekgrca0.js +25 -0
  52. package/chunk-mkp20bwr.js +2 -0
  53. package/chunk-n4qxf40m.js +2 -0
  54. package/chunk-n9r9zzr4.js +59 -0
  55. package/chunk-ndca35jt.js +5 -0
  56. package/chunk-ng9vq9hy.js +2 -0
  57. package/chunk-nx1997s8.js +2 -0
  58. package/chunk-p99dt6kf.js +12 -0
  59. package/chunk-pnctvz58.js +3 -0
  60. package/chunk-ppgn9exm.js +2 -0
  61. package/chunk-pqq5znyp.js +2 -0
  62. package/chunk-q2429jd1.js +3 -0
  63. package/chunk-q3nmdtk4.js +3 -0
  64. package/chunk-q4r4nger.js +3 -0
  65. package/chunk-q6gq7g7m.js +4 -0
  66. package/chunk-qnejy3qp.js +2 -0
  67. package/chunk-sj0fqgjf.js +10 -0
  68. package/chunk-t5y3dqv3.js +3 -0
  69. package/chunk-t6vw73nv.js +2 -0
  70. package/chunk-t9zpdekw.js +5 -0
  71. package/chunk-v0xs5sy0.js +2 -0
  72. package/chunk-v8v2exqg.js +2 -0
  73. package/chunk-wgff8n0r.js +2 -0
  74. package/chunk-wpv679r1.js +3 -0
  75. package/chunk-wrw806wb.js +3 -0
  76. package/chunk-wsby70ce.js +12 -0
  77. package/chunk-xdbgpht7.js +2 -0
  78. package/chunk-y1b98tfk.js +5 -0
  79. package/chunk-y3m3w19s.js +3 -0
  80. package/chunk-y5p5jq48.js +63 -0
  81. package/chunk-ynf5sz68.js +10 -0
  82. package/chunk-zfk9az7y.js +5 -0
  83. package/chunk-zwse6b6t.js +18 -0
  84. package/compiled.js +9 -9
  85. package/package.json +1 -1
  86. package/ui-test-worker.js +24 -24
  87. package/web/chunk-016nkjwe.js +2 -0
  88. package/web/chunk-016nkjwe.js.br +0 -0
  89. package/web/chunk-016nkjwe.js.gz +0 -0
  90. package/web/chunk-0er8vdaw.js +2 -0
  91. package/web/chunk-0er8vdaw.js.br +0 -0
  92. package/web/chunk-0er8vdaw.js.gz +0 -0
  93. package/web/chunk-0sq0ed2h.js +12 -0
  94. package/web/chunk-0sq0ed2h.js.br +0 -0
  95. package/web/chunk-0sq0ed2h.js.gz +0 -0
  96. package/web/chunk-0w8swe64.js +2 -0
  97. package/web/chunk-0w8swe64.js.br +0 -0
  98. package/web/chunk-0w8swe64.js.gz +0 -0
  99. package/web/chunk-15pxdcz7.js +1 -0
  100. package/web/chunk-15pxdcz7.js.br +0 -0
  101. package/web/chunk-15pxdcz7.js.gz +0 -0
  102. package/web/chunk-1a1w9rth.js +4 -0
  103. package/web/chunk-1a1w9rth.js.br +0 -0
  104. package/web/chunk-1a1w9rth.js.gz +0 -0
  105. package/web/chunk-1e8tsn4c.js +1 -0
  106. package/web/chunk-1e8tsn4c.js.br +0 -0
  107. package/web/chunk-1e8tsn4c.js.gz +0 -0
  108. package/web/chunk-1jwp193e.js +78 -0
  109. package/web/chunk-1jwp193e.js.br +0 -0
  110. package/web/chunk-1jwp193e.js.gz +0 -0
  111. package/web/chunk-1wz0tepc.js +106 -0
  112. package/web/chunk-1wz0tepc.js.br +0 -0
  113. package/web/chunk-1wz0tepc.js.gz +0 -0
  114. package/web/chunk-20gcnbgn.js +2 -0
  115. package/web/chunk-20gcnbgn.js.br +0 -0
  116. package/web/chunk-20gcnbgn.js.gz +0 -0
  117. package/web/chunk-213m58wn.js +1 -0
  118. package/web/chunk-213m58wn.js.br +0 -0
  119. package/web/chunk-213m58wn.js.gz +0 -0
  120. package/web/chunk-2hat8cth.js +1 -0
  121. package/web/chunk-2hat8cth.js.br +0 -0
  122. package/web/chunk-2hat8cth.js.gz +0 -0
  123. package/web/chunk-2nwvdqxm.js +1 -0
  124. package/web/chunk-2nwvdqxm.js.br +0 -0
  125. package/web/chunk-2nwvdqxm.js.gz +0 -0
  126. package/web/chunk-3dj31vfh.js +292 -0
  127. package/web/chunk-3dj31vfh.js.br +0 -0
  128. package/web/chunk-3dj31vfh.js.gz +0 -0
  129. package/web/chunk-3g7waf75.js +70 -0
  130. package/web/chunk-3g7waf75.js.br +0 -0
  131. package/web/chunk-3g7waf75.js.gz +0 -0
  132. package/web/chunk-3x1zg1hk.js +1 -0
  133. package/web/chunk-3x1zg1hk.js.br +0 -0
  134. package/web/chunk-3x1zg1hk.js.gz +0 -0
  135. package/web/chunk-414npx47.js +1 -0
  136. package/web/chunk-414npx47.js.br +0 -0
  137. package/web/chunk-414npx47.js.gz +0 -0
  138. package/web/chunk-416ts17x.js +2 -0
  139. package/web/chunk-416ts17x.js.br +0 -0
  140. package/web/chunk-416ts17x.js.gz +0 -0
  141. package/web/chunk-47qwqp4f.js +7 -0
  142. package/web/chunk-47qwqp4f.js.br +0 -0
  143. package/web/chunk-47qwqp4f.js.gz +0 -0
  144. package/web/chunk-4k4c2se1.js +2 -0
  145. package/web/chunk-4k4c2se1.js.br +0 -0
  146. package/web/chunk-4k4c2se1.js.gz +0 -0
  147. package/web/chunk-4vsg8d4c.js +4 -0
  148. package/web/chunk-4vsg8d4c.js.br +0 -0
  149. package/web/chunk-4vsg8d4c.js.gz +0 -0
  150. package/web/chunk-53ag9hyw.js +40 -0
  151. package/web/chunk-53ag9hyw.js.br +0 -0
  152. package/web/chunk-53ag9hyw.js.gz +0 -0
  153. package/web/chunk-545zx869.js +2 -0
  154. package/web/chunk-545zx869.js.br +0 -0
  155. package/web/chunk-545zx869.js.gz +0 -0
  156. package/web/chunk-55mx05jg.js +2 -0
  157. package/web/chunk-55mx05jg.js.br +0 -0
  158. package/web/chunk-55mx05jg.js.gz +0 -0
  159. package/web/chunk-55phnzd7.js +1 -0
  160. package/web/chunk-55phnzd7.js.br +0 -0
  161. package/web/chunk-55phnzd7.js.gz +0 -0
  162. package/web/chunk-56a6njsk.js +1 -0
  163. package/web/chunk-56a6njsk.js.br +0 -0
  164. package/web/chunk-56a6njsk.js.gz +0 -0
  165. package/web/chunk-5hvs5kyx.js +1 -0
  166. package/web/chunk-5hvs5kyx.js.br +0 -0
  167. package/web/chunk-5hvs5kyx.js.gz +0 -0
  168. package/web/chunk-5nbyvd4t.js +1 -0
  169. package/web/chunk-5nbyvd4t.js.br +0 -0
  170. package/web/chunk-5nbyvd4t.js.gz +0 -0
  171. package/web/chunk-690qxds4.js +1 -0
  172. package/web/chunk-690qxds4.js.br +0 -0
  173. package/web/chunk-690qxds4.js.gz +0 -0
  174. package/web/chunk-6dr6eazd.js +2 -0
  175. package/web/chunk-6dr6eazd.js.br +0 -0
  176. package/web/chunk-6dr6eazd.js.gz +0 -0
  177. package/web/chunk-6nkegqxk.js +139 -0
  178. package/web/chunk-6nkegqxk.js.br +0 -0
  179. package/web/chunk-6nkegqxk.js.gz +0 -0
  180. package/web/chunk-6ypf5nq6.js +140 -0
  181. package/web/chunk-6ypf5nq6.js.br +0 -0
  182. package/web/chunk-6ypf5nq6.js.gz +0 -0
  183. package/web/chunk-70kws32b.js +2 -0
  184. package/web/chunk-70kws32b.js.br +0 -0
  185. package/web/chunk-70kws32b.js.gz +0 -0
  186. package/web/chunk-71tshjjr.js +16 -0
  187. package/web/chunk-71tshjjr.js.br +0 -0
  188. package/web/chunk-71tshjjr.js.gz +0 -0
  189. package/web/chunk-7fh9k75p.js +1 -0
  190. package/web/chunk-7fh9k75p.js.br +0 -0
  191. package/web/chunk-7fh9k75p.js.gz +0 -0
  192. package/web/chunk-7k8azd8z.js +1 -0
  193. package/web/chunk-7k8azd8z.js.br +0 -0
  194. package/web/chunk-7k8azd8z.js.gz +0 -0
  195. package/web/chunk-7mmebce4.js +1 -0
  196. package/web/chunk-7mmebce4.js.br +0 -0
  197. package/web/chunk-7mmebce4.js.gz +0 -0
  198. package/web/chunk-7mwghj09.js +89 -0
  199. package/web/chunk-7mwghj09.js.br +0 -0
  200. package/web/chunk-7mwghj09.js.gz +0 -0
  201. package/web/chunk-7y5kr56m.js +1 -0
  202. package/web/chunk-7y5kr56m.js.br +0 -0
  203. package/web/chunk-7y5kr56m.js.gz +0 -0
  204. package/web/chunk-8esqhp64.js +1 -0
  205. package/web/chunk-8esqhp64.js.br +0 -0
  206. package/web/chunk-8esqhp64.js.gz +0 -0
  207. package/web/chunk-8gxgpr3n.js +214 -0
  208. package/web/chunk-8gxgpr3n.js.br +0 -0
  209. package/web/chunk-8gxgpr3n.js.gz +0 -0
  210. package/web/chunk-8vnmk3y7.js +1 -0
  211. package/web/chunk-8vnmk3y7.js.br +0 -0
  212. package/web/chunk-8vnmk3y7.js.gz +0 -0
  213. package/web/chunk-99r862t8.js +30 -0
  214. package/web/chunk-99r862t8.js.br +0 -0
  215. package/web/chunk-99r862t8.js.gz +0 -0
  216. package/web/chunk-9cznsyf4.js +7 -0
  217. package/web/chunk-9cznsyf4.js.br +0 -0
  218. package/web/chunk-9cznsyf4.js.gz +0 -0
  219. package/web/chunk-9hmw91e9.js +1 -0
  220. package/web/chunk-9hmw91e9.js.br +0 -0
  221. package/web/chunk-9hmw91e9.js.gz +0 -0
  222. package/web/chunk-9j7v0e4v.js +2 -0
  223. package/web/chunk-9j7v0e4v.js.br +0 -0
  224. package/web/chunk-9j7v0e4v.js.gz +0 -0
  225. package/web/chunk-9pyad3tv.js +1 -0
  226. package/web/chunk-9pyad3tv.js.br +0 -0
  227. package/web/chunk-9pyad3tv.js.gz +0 -0
  228. package/web/chunk-9rf2smk2.js +1142 -0
  229. package/web/chunk-9rf2smk2.js.br +0 -0
  230. package/web/chunk-9rf2smk2.js.gz +0 -0
  231. package/web/chunk-aan5qk6x.js +1 -0
  232. package/web/chunk-aan5qk6x.js.br +0 -0
  233. package/web/chunk-aan5qk6x.js.gz +0 -0
  234. package/web/chunk-aaz4msca.js +89 -0
  235. package/web/chunk-aaz4msca.js.br +0 -0
  236. package/web/chunk-aaz4msca.js.gz +0 -0
  237. package/web/chunk-ag0ng2nt.js +24 -0
  238. package/web/chunk-ag0ng2nt.js.br +0 -0
  239. package/web/chunk-ag0ng2nt.js.gz +0 -0
  240. package/web/chunk-an9b0mhe.js +55 -0
  241. package/web/chunk-an9b0mhe.js.br +0 -0
  242. package/web/chunk-an9b0mhe.js.gz +0 -0
  243. package/web/chunk-apgvrfc2.js +41 -0
  244. package/web/chunk-apgvrfc2.js.br +0 -0
  245. package/web/chunk-apgvrfc2.js.gz +0 -0
  246. package/web/chunk-aq09zt1h.js +332 -0
  247. package/web/chunk-aq09zt1h.js.br +0 -0
  248. package/web/chunk-aq09zt1h.js.gz +0 -0
  249. package/web/chunk-ayy6rwm5.js +1 -0
  250. package/web/chunk-ayy6rwm5.js.br +0 -0
  251. package/web/chunk-ayy6rwm5.js.gz +0 -0
  252. package/web/chunk-azhw80d1.js +1 -0
  253. package/web/chunk-azhw80d1.js.br +0 -0
  254. package/web/chunk-azhw80d1.js.gz +0 -0
  255. package/web/chunk-b4bty1ns.js +8 -0
  256. package/web/chunk-b4bty1ns.js.br +1 -0
  257. package/web/chunk-b4bty1ns.js.gz +0 -0
  258. package/web/chunk-bs9934z7.js +200 -0
  259. package/web/chunk-bs9934z7.js.br +0 -0
  260. package/web/chunk-bs9934z7.js.gz +0 -0
  261. package/web/chunk-c9nwfxrp.js +1 -0
  262. package/web/chunk-c9nwfxrp.js.br +0 -0
  263. package/web/chunk-c9nwfxrp.js.gz +0 -0
  264. package/web/chunk-capfyqch.js +1 -0
  265. package/web/chunk-capfyqch.js.br +0 -0
  266. package/web/chunk-capfyqch.js.gz +0 -0
  267. package/web/chunk-ckev38zc.js +36 -0
  268. package/web/chunk-ckev38zc.js.br +0 -0
  269. package/web/chunk-ckev38zc.js.gz +0 -0
  270. package/web/chunk-cnkerjp4.js +370 -0
  271. package/web/chunk-cnkerjp4.js.br +0 -0
  272. package/web/chunk-cnkerjp4.js.gz +0 -0
  273. package/web/chunk-d3bgcz6q.js +1 -0
  274. package/web/chunk-d3bgcz6q.js.br +0 -0
  275. package/web/chunk-d3bgcz6q.js.gz +0 -0
  276. package/web/chunk-d5n2yz4e.js +2 -0
  277. package/web/chunk-d5n2yz4e.js.br +0 -0
  278. package/web/chunk-d5n2yz4e.js.gz +0 -0
  279. package/web/chunk-d5xqtvb1.js +2 -0
  280. package/web/chunk-d5xqtvb1.js.br +0 -0
  281. package/web/chunk-d5xqtvb1.js.gz +0 -0
  282. package/web/chunk-daqfnvaw.js +1 -0
  283. package/web/chunk-daqfnvaw.js.br +0 -0
  284. package/web/chunk-daqfnvaw.js.gz +0 -0
  285. package/web/chunk-dqz580pg.js +1 -0
  286. package/web/chunk-dqz580pg.js.br +0 -0
  287. package/web/chunk-dqz580pg.js.gz +0 -0
  288. package/web/chunk-e54b48p5.js +2 -0
  289. package/web/chunk-e54b48p5.js.br +0 -0
  290. package/web/chunk-e54b48p5.js.gz +0 -0
  291. package/web/chunk-e8bgrjps.js +2 -0
  292. package/web/chunk-e8bgrjps.js.br +0 -0
  293. package/web/chunk-e8bgrjps.js.gz +0 -0
  294. package/web/chunk-efdg5mjf.js +217 -0
  295. package/web/chunk-efdg5mjf.js.br +0 -0
  296. package/web/chunk-efdg5mjf.js.gz +0 -0
  297. package/web/chunk-efhyygba.js +7 -0
  298. package/web/chunk-efhyygba.js.br +0 -0
  299. package/web/chunk-efhyygba.js.gz +0 -0
  300. package/web/chunk-eq0vm9vw.js +2 -0
  301. package/web/chunk-eq0vm9vw.js.br +0 -0
  302. package/web/chunk-eq0vm9vw.js.gz +0 -0
  303. package/web/chunk-eznkbqms.js +1 -0
  304. package/web/chunk-eznkbqms.js.br +0 -0
  305. package/web/chunk-eznkbqms.js.gz +0 -0
  306. package/web/chunk-f5wyg9zh.js +2 -0
  307. package/web/chunk-f5wyg9zh.js.br +0 -0
  308. package/web/chunk-f5wyg9zh.js.gz +0 -0
  309. package/web/chunk-f9rv8b13.js +1 -0
  310. package/web/chunk-f9rv8b13.js.br +0 -0
  311. package/web/chunk-f9rv8b13.js.gz +0 -0
  312. package/web/chunk-fnzyprme.js +142 -0
  313. package/web/chunk-fnzyprme.js.br +0 -0
  314. package/web/chunk-fnzyprme.js.gz +0 -0
  315. package/web/chunk-g63m3g5y.js +1 -0
  316. package/web/chunk-g63m3g5y.js.br +2 -0
  317. package/web/chunk-g63m3g5y.js.gz +0 -0
  318. package/web/chunk-g6gb3wz7.js +1 -0
  319. package/web/chunk-g6gb3wz7.js.br +2 -0
  320. package/web/chunk-g6gb3wz7.js.gz +0 -0
  321. package/web/chunk-g7ec62te.js +2 -0
  322. package/web/chunk-g7ec62te.js.br +0 -0
  323. package/web/chunk-g7ec62te.js.gz +0 -0
  324. package/web/chunk-gkj2bbdx.js +1 -0
  325. package/web/chunk-gkj2bbdx.js.br +0 -0
  326. package/web/chunk-gkj2bbdx.js.gz +0 -0
  327. package/web/chunk-gnx30bed.css +1 -0
  328. package/web/chunk-gnx30bed.css.br +0 -0
  329. package/web/chunk-gnx30bed.css.gz +0 -0
  330. package/web/chunk-gvndjaan.js +2 -0
  331. package/web/chunk-gvndjaan.js.br +0 -0
  332. package/web/chunk-gvndjaan.js.gz +0 -0
  333. package/web/chunk-h391pq6j.js +1 -0
  334. package/web/chunk-h391pq6j.js.br +0 -0
  335. package/web/chunk-h391pq6j.js.gz +0 -0
  336. package/web/chunk-h3kdr5mz.js +21 -0
  337. package/web/chunk-h3kdr5mz.js.br +0 -0
  338. package/web/chunk-h3kdr5mz.js.gz +0 -0
  339. package/web/chunk-hjs5pyye.js +1 -0
  340. package/web/chunk-hjs5pyye.js.br +0 -0
  341. package/web/chunk-hjs5pyye.js.gz +0 -0
  342. package/web/chunk-hxgtek0e.js +2 -0
  343. package/web/chunk-hxgtek0e.js.br +0 -0
  344. package/web/chunk-hxgtek0e.js.gz +0 -0
  345. package/web/chunk-j5a3jhp0.js +120 -0
  346. package/web/chunk-j5a3jhp0.js.br +0 -0
  347. package/web/chunk-j5a3jhp0.js.gz +0 -0
  348. package/web/chunk-jgdways6.js +39 -0
  349. package/web/chunk-jgdways6.js.br +0 -0
  350. package/web/chunk-jgdways6.js.gz +0 -0
  351. package/web/chunk-jybmjakj.js +1 -0
  352. package/web/chunk-jybmjakj.js.br +2 -0
  353. package/web/chunk-jybmjakj.js.gz +0 -0
  354. package/web/chunk-kasv56qe.js +303 -0
  355. package/web/chunk-kasv56qe.js.br +0 -0
  356. package/web/chunk-kasv56qe.js.gz +0 -0
  357. package/web/chunk-kmhbkjqx.js +2 -0
  358. package/web/chunk-kmhbkjqx.js.br +0 -0
  359. package/web/chunk-kmhbkjqx.js.gz +0 -0
  360. package/web/chunk-m06zdhdz.js +1 -0
  361. package/web/chunk-m06zdhdz.js.br +0 -0
  362. package/web/chunk-m06zdhdz.js.gz +0 -0
  363. package/web/chunk-mrnnq8dv.js +1 -0
  364. package/web/chunk-mrnnq8dv.js.br +0 -0
  365. package/web/chunk-mrnnq8dv.js.gz +0 -0
  366. package/web/chunk-mx1e3jgh.js +1 -0
  367. package/web/chunk-mx1e3jgh.js.br +0 -0
  368. package/web/chunk-mx1e3jgh.js.gz +0 -0
  369. package/web/chunk-n0tehchs.js +3 -0
  370. package/web/chunk-n0tehchs.js.br +0 -0
  371. package/web/chunk-n0tehchs.js.gz +0 -0
  372. package/web/chunk-n449ebhn.js +38 -0
  373. package/web/chunk-n449ebhn.js.br +0 -0
  374. package/web/chunk-n449ebhn.js.gz +0 -0
  375. package/web/chunk-ngsv0xfb.js +1 -0
  376. package/web/chunk-ngsv0xfb.js.br +0 -0
  377. package/web/chunk-ngsv0xfb.js.gz +0 -0
  378. package/web/chunk-ngy730n0.js +1 -0
  379. package/web/chunk-ngy730n0.js.br +0 -0
  380. package/web/chunk-ngy730n0.js.gz +0 -0
  381. package/web/chunk-nj9dtqyd.js +2 -0
  382. package/web/chunk-nj9dtqyd.js.br +0 -0
  383. package/web/chunk-nj9dtqyd.js.gz +0 -0
  384. package/web/chunk-nzaq0yae.js +2 -0
  385. package/web/chunk-nzaq0yae.js.br +0 -0
  386. package/web/chunk-nzaq0yae.js.gz +0 -0
  387. package/web/chunk-pgnfj8ea.js +2 -0
  388. package/web/chunk-pgnfj8ea.js.br +0 -0
  389. package/web/chunk-pgnfj8ea.js.gz +0 -0
  390. package/web/chunk-qtgen5c5.js +24 -0
  391. package/web/chunk-qtgen5c5.js.br +0 -0
  392. package/web/chunk-qtgen5c5.js.gz +0 -0
  393. package/web/chunk-qzn05afn.js +169 -0
  394. package/web/chunk-qzn05afn.js.br +0 -0
  395. package/web/chunk-qzn05afn.js.gz +0 -0
  396. package/web/chunk-r7st369j.js +1 -0
  397. package/web/chunk-r7st369j.js.br +0 -0
  398. package/web/chunk-r7st369j.js.gz +0 -0
  399. package/web/chunk-rj1rp0tc.js +1 -0
  400. package/web/chunk-rj1rp0tc.js.br +0 -0
  401. package/web/chunk-rj1rp0tc.js.gz +0 -0
  402. package/web/chunk-sgy3c5m7.js +62 -0
  403. package/web/chunk-sgy3c5m7.js.br +0 -0
  404. package/web/chunk-sgy3c5m7.js.gz +0 -0
  405. package/web/chunk-t7s9xrxt.js +34 -0
  406. package/web/chunk-t7s9xrxt.js.br +0 -0
  407. package/web/chunk-t7s9xrxt.js.gz +0 -0
  408. package/web/chunk-tmf1jnqz.js +2 -0
  409. package/web/chunk-tmf1jnqz.js.br +0 -0
  410. package/web/chunk-tmf1jnqz.js.gz +0 -0
  411. package/web/chunk-tntwwpyh.js +2 -0
  412. package/web/chunk-tntwwpyh.js.br +0 -0
  413. package/web/chunk-tntwwpyh.js.gz +0 -0
  414. package/web/chunk-tpzyyc2z.js +2 -0
  415. package/web/chunk-tpzyyc2z.js.br +0 -0
  416. package/web/chunk-tpzyyc2z.js.gz +0 -0
  417. package/web/chunk-v95eqx92.js +84 -0
  418. package/web/chunk-v95eqx92.js.br +0 -0
  419. package/web/chunk-v95eqx92.js.gz +0 -0
  420. package/web/chunk-vcj5m1xb.js +1 -0
  421. package/web/chunk-vcj5m1xb.js.br +0 -0
  422. package/web/chunk-vcj5m1xb.js.gz +0 -0
  423. package/web/chunk-vndrjeyr.js +2 -0
  424. package/web/chunk-vndrjeyr.js.br +0 -0
  425. package/web/chunk-vndrjeyr.js.gz +0 -0
  426. package/web/chunk-vq0zf16h.js +1 -0
  427. package/web/chunk-vq0zf16h.js.br +0 -0
  428. package/web/chunk-vq0zf16h.js.gz +0 -0
  429. package/web/chunk-vqhtph6r.js +1 -0
  430. package/web/chunk-vqhtph6r.js.br +0 -0
  431. package/web/chunk-vqhtph6r.js.gz +0 -0
  432. package/web/chunk-vvsfwjrg.js +1 -0
  433. package/web/chunk-vvsfwjrg.js.br +0 -0
  434. package/web/chunk-vvsfwjrg.js.gz +0 -0
  435. package/web/chunk-vz2mgxs7.js +1 -0
  436. package/web/chunk-vz2mgxs7.js.br +0 -0
  437. package/web/chunk-vz2mgxs7.js.gz +0 -0
  438. package/web/chunk-wdd9pasx.js +1 -0
  439. package/web/chunk-wdd9pasx.js.br +0 -0
  440. package/web/chunk-wdd9pasx.js.gz +0 -0
  441. package/web/chunk-wry3q68j.js +1 -0
  442. package/web/chunk-wry3q68j.js.br +2 -0
  443. package/web/chunk-wry3q68j.js.gz +0 -0
  444. package/web/chunk-wrz0gqnv.js +1 -0
  445. package/web/chunk-wrz0gqnv.js.br +0 -0
  446. package/web/chunk-wrz0gqnv.js.gz +0 -0
  447. package/web/chunk-wvapb3r6.js +98 -0
  448. package/web/chunk-wvapb3r6.js.br +0 -0
  449. package/web/chunk-wvapb3r6.js.gz +0 -0
  450. package/web/chunk-x6qva9zc.js +324 -0
  451. package/web/chunk-x6qva9zc.js.br +0 -0
  452. package/web/chunk-x6qva9zc.js.gz +0 -0
  453. package/web/chunk-xa2ngtyg.js +2 -0
  454. package/web/chunk-xa2ngtyg.js.br +0 -0
  455. package/web/chunk-xa2ngtyg.js.gz +0 -0
  456. package/web/chunk-xhjf5ye0.js +1 -0
  457. package/web/chunk-xhjf5ye0.js.br +0 -0
  458. package/web/chunk-xhjf5ye0.js.gz +0 -0
  459. package/web/chunk-xkqekh81.js +2 -0
  460. package/web/chunk-xkqekh81.js.br +0 -0
  461. package/web/chunk-xkqekh81.js.gz +0 -0
  462. package/web/chunk-xsjvamcy.js +1 -0
  463. package/web/chunk-xsjvamcy.js.br +0 -0
  464. package/web/chunk-xsjvamcy.js.gz +0 -0
  465. package/web/chunk-xyfnr395.js +1 -0
  466. package/web/chunk-xyfnr395.js.br +0 -0
  467. package/web/chunk-xyfnr395.js.gz +0 -0
  468. package/web/chunk-y48mj5d7.js +1 -0
  469. package/web/chunk-y48mj5d7.js.br +0 -0
  470. package/web/chunk-y48mj5d7.js.gz +0 -0
  471. package/web/chunk-y4x1g94q.js +1 -0
  472. package/web/chunk-y4x1g94q.js.br +0 -0
  473. package/web/chunk-y4x1g94q.js.gz +0 -0
  474. package/web/chunk-yzbp4vpe.js +1 -0
  475. package/web/chunk-yzbp4vpe.js.br +0 -0
  476. package/web/chunk-yzbp4vpe.js.gz +0 -0
  477. package/web/chunk-z601k790.js +291 -0
  478. package/web/chunk-z601k790.js.br +0 -0
  479. package/web/chunk-z601k790.js.gz +0 -0
  480. package/web/chunk-zc9mxd01.js +99 -0
  481. package/web/chunk-zc9mxd01.js.br +0 -0
  482. package/web/chunk-zc9mxd01.js.gz +0 -0
  483. package/web/chunk-zm1jfkcz.js +2 -0
  484. package/web/chunk-zm1jfkcz.js.br +0 -0
  485. package/web/chunk-zm1jfkcz.js.gz +0 -0
  486. package/web/chunk-zz0d7377.js +2 -0
  487. package/web/chunk-zz0d7377.js.br +0 -0
  488. package/web/chunk-zz0d7377.js.gz +0 -0
  489. package/web/index.html +1 -1
  490. package/web/index.html.br +0 -0
  491. package/web/index.html.gz +0 -0
  492. package/worker.js +1 -1
  493. package/chunk-04326385.js +0 -39
  494. package/chunk-11zc1b2w.js +0 -3
  495. package/chunk-12203fgm.js +0 -2
  496. package/chunk-194d4z7x.js +0 -7
  497. package/chunk-1apm7p2e.js +0 -2
  498. package/chunk-2csz31nh.js +0 -2
  499. package/chunk-2rqpfv4h.js +0 -3
  500. package/chunk-39cfcar4.js +0 -3
  501. package/chunk-3dtgkgam.js +0 -4064
  502. package/chunk-4a5xttdp.js +0 -3
  503. package/chunk-4st5xeee.js +0 -2
  504. package/chunk-54qzhq9t.js +0 -50
  505. package/chunk-5h17n6g1.js +0 -3
  506. package/chunk-5rn18vrq.js +0 -5
  507. package/chunk-5tdnvdmz.js +0 -2
  508. package/chunk-6qavr39k.js +0 -2
  509. package/chunk-6xn0r0dd.js +0 -3
  510. package/chunk-7h76jrss.js +0 -7
  511. package/chunk-7hss4hs3.js +0 -7
  512. package/chunk-7vdq0wye.js +0 -2
  513. package/chunk-7w187ycz.js +0 -10
  514. package/chunk-81s7mvf2.js +0 -16
  515. package/chunk-8j8acxde.js +0 -2
  516. package/chunk-9nfz04yr.js +0 -2
  517. package/chunk-9vth0w8q.js +0 -2
  518. package/chunk-9zcfam20.js +0 -2
  519. package/chunk-a6zvmsbh.js +0 -12
  520. package/chunk-anr8aghq.js +0 -59
  521. package/chunk-av8zh9yp.js +0 -2
  522. package/chunk-bwv97dtf.js +0 -2
  523. package/chunk-cjy4rssa.js +0 -10
  524. package/chunk-dmdyqq1k.js +0 -2
  525. package/chunk-dzvq7vt6.js +0 -2
  526. package/chunk-ejrksf6g.js +0 -3
  527. package/chunk-erxka5vh.js +0 -18
  528. package/chunk-fc41dvhp.js +0 -12
  529. package/chunk-fdgrayj5.js +0 -3
  530. package/chunk-fwcqcecb.js +0 -8
  531. package/chunk-hhwnmhbb.js +0 -2
  532. package/chunk-hvxc1wyv.js +0 -3
  533. package/chunk-jm2bn5mq.js +0 -3
  534. package/chunk-jm5j5jfy.js +0 -3
  535. package/chunk-jqtdf0ym.js +0 -63
  536. package/chunk-jsvr3s4q.js +0 -5
  537. package/chunk-jwk5a5tk.js +0 -25
  538. package/chunk-mwc59w50.js +0 -31
  539. package/chunk-mypbpphn.js +0 -3
  540. package/chunk-n3hfhbe4.js +0 -498
  541. package/chunk-ng5ncy65.js +0 -2
  542. package/chunk-nmvayfq3.js +0 -3
  543. package/chunk-nw4h0wm9.js +0 -2
  544. package/chunk-nzpzjbpp.js +0 -51
  545. package/chunk-p23eqet9.js +0 -2
  546. package/chunk-pxsgm6ff.js +0 -2
  547. package/chunk-qqs9fqsy.js +0 -4
  548. package/chunk-r0gsb1qs.js +0 -3
  549. package/chunk-r49sxmnc.js +0 -3
  550. package/chunk-rbfpa63e.js +0 -3
  551. package/chunk-rsrh5dgx.js +0 -2
  552. package/chunk-s2pm97nk.js +0 -286
  553. package/chunk-s6tnmg6x.js +0 -3
  554. package/chunk-scq1dz62.js +0 -8
  555. package/chunk-se548edt.js +0 -20
  556. package/chunk-tsdeeqb8.js +0 -3
  557. package/chunk-vnv3a6t2.js +0 -3
  558. package/chunk-vrsh8cx1.js +0 -3
  559. package/chunk-w3v8zahw.js +0 -2
  560. package/chunk-w6m8c4vf.js +0 -11
  561. package/chunk-wd7sj5cv.js +0 -2
  562. package/chunk-we8v9wkw.js +0 -9
  563. package/chunk-x055cas0.js +0 -5
  564. package/chunk-x5vrtxkj.js +0 -3
  565. package/chunk-x83syrhw.js +0 -44
  566. package/chunk-xedzsj31.js +0 -5
  567. package/chunk-xp83v3zm.js +0 -2
  568. package/chunk-ykzm5g1b.js +0 -25
  569. package/chunk-yq2bwebb.js +0 -3
  570. package/chunk-yygcpnwc.js +0 -3
  571. package/chunk-zjf34acb.js +0 -2
  572. package/web/chunk-02v1btpv.js +0 -2
  573. package/web/chunk-02v1btpv.js.br +0 -0
  574. package/web/chunk-02v1btpv.js.gz +0 -0
  575. package/web/chunk-02xgh26g.js +0 -1
  576. package/web/chunk-02xgh26g.js.br +0 -0
  577. package/web/chunk-02xgh26g.js.gz +0 -0
  578. package/web/chunk-0n134mev.js +0 -140
  579. package/web/chunk-0n134mev.js.br +0 -0
  580. package/web/chunk-0n134mev.js.gz +0 -0
  581. package/web/chunk-14t6ms50.js +0 -16
  582. package/web/chunk-14t6ms50.js.br +0 -0
  583. package/web/chunk-14t6ms50.js.gz +0 -0
  584. package/web/chunk-17j1pnvx.js +0 -1
  585. package/web/chunk-17j1pnvx.js.br +0 -0
  586. package/web/chunk-17j1pnvx.js.gz +0 -0
  587. package/web/chunk-19qs8qhf.js +0 -2
  588. package/web/chunk-19qs8qhf.js.br +0 -0
  589. package/web/chunk-19qs8qhf.js.gz +0 -0
  590. package/web/chunk-1c1jdx2r.js +0 -332
  591. package/web/chunk-1c1jdx2r.js.br +0 -0
  592. package/web/chunk-1c1jdx2r.js.gz +0 -0
  593. package/web/chunk-1fp0r6da.js +0 -2
  594. package/web/chunk-1fp0r6da.js.br +0 -0
  595. package/web/chunk-1fp0r6da.js.gz +0 -0
  596. package/web/chunk-1fv6rp41.js +0 -2
  597. package/web/chunk-1fv6rp41.js.br +0 -0
  598. package/web/chunk-1fv6rp41.js.gz +0 -0
  599. package/web/chunk-1mkzfr1m.js +0 -2
  600. package/web/chunk-1mkzfr1m.js.br +0 -0
  601. package/web/chunk-1mkzfr1m.js.gz +0 -0
  602. package/web/chunk-1r8npw1h.js +0 -1
  603. package/web/chunk-1r8npw1h.js.br +0 -0
  604. package/web/chunk-1r8npw1h.js.gz +0 -0
  605. package/web/chunk-215gszpx.js +0 -1
  606. package/web/chunk-215gszpx.js.br +0 -0
  607. package/web/chunk-215gszpx.js.gz +0 -0
  608. package/web/chunk-2372y9qw.css +0 -1
  609. package/web/chunk-2372y9qw.css.br +0 -0
  610. package/web/chunk-2372y9qw.css.gz +0 -0
  611. package/web/chunk-24syb9ar.js +0 -1
  612. package/web/chunk-24syb9ar.js.br +0 -0
  613. package/web/chunk-24syb9ar.js.gz +0 -0
  614. package/web/chunk-26y868vk.js +0 -214
  615. package/web/chunk-26y868vk.js.br +0 -0
  616. package/web/chunk-26y868vk.js.gz +0 -0
  617. package/web/chunk-29mff7z7.js +0 -34
  618. package/web/chunk-29mff7z7.js.br +0 -0
  619. package/web/chunk-29mff7z7.js.gz +0 -0
  620. package/web/chunk-2vh05ags.js +0 -2
  621. package/web/chunk-2vh05ags.js.br +0 -0
  622. package/web/chunk-2vh05ags.js.gz +0 -0
  623. package/web/chunk-2z5tpzd0.js +0 -2
  624. package/web/chunk-2z5tpzd0.js.br +0 -2
  625. package/web/chunk-2z5tpzd0.js.gz +0 -0
  626. package/web/chunk-35zjz7ms.js +0 -99
  627. package/web/chunk-35zjz7ms.js.br +0 -0
  628. package/web/chunk-35zjz7ms.js.gz +0 -0
  629. package/web/chunk-3q8tjjp1.js +0 -1
  630. package/web/chunk-3q8tjjp1.js.br +0 -2
  631. package/web/chunk-3q8tjjp1.js.gz +0 -0
  632. package/web/chunk-3s4mqjna.js +0 -4
  633. package/web/chunk-3s4mqjna.js.br +0 -0
  634. package/web/chunk-3s4mqjna.js.gz +0 -0
  635. package/web/chunk-3srybd24.js +0 -41
  636. package/web/chunk-3srybd24.js.br +0 -0
  637. package/web/chunk-3srybd24.js.gz +0 -0
  638. package/web/chunk-3zsfd0hv.js +0 -1
  639. package/web/chunk-3zsfd0hv.js.br +0 -0
  640. package/web/chunk-3zsfd0hv.js.gz +0 -0
  641. package/web/chunk-43h0rwsj.js +0 -1
  642. package/web/chunk-43h0rwsj.js.br +0 -0
  643. package/web/chunk-43h0rwsj.js.gz +0 -0
  644. package/web/chunk-4gehgwdn.js +0 -1
  645. package/web/chunk-4gehgwdn.js.br +0 -0
  646. package/web/chunk-4gehgwdn.js.gz +0 -0
  647. package/web/chunk-4q1j0ehq.js +0 -1
  648. package/web/chunk-4q1j0ehq.js.br +0 -2
  649. package/web/chunk-4q1j0ehq.js.gz +0 -0
  650. package/web/chunk-4rbzcphw.js +0 -7
  651. package/web/chunk-4rbzcphw.js.br +0 -0
  652. package/web/chunk-4rbzcphw.js.gz +0 -0
  653. package/web/chunk-4xvh57dr.js +0 -1
  654. package/web/chunk-4xvh57dr.js.br +0 -0
  655. package/web/chunk-4xvh57dr.js.gz +0 -0
  656. package/web/chunk-54cy79n2.js +0 -291
  657. package/web/chunk-54cy79n2.js.br +0 -0
  658. package/web/chunk-54cy79n2.js.gz +0 -0
  659. package/web/chunk-5v7dyp6t.js +0 -2
  660. package/web/chunk-5v7dyp6t.js.br +0 -0
  661. package/web/chunk-5v7dyp6t.js.gz +0 -0
  662. package/web/chunk-5xm6c0r0.js +0 -1
  663. package/web/chunk-5xm6c0r0.js.br +0 -0
  664. package/web/chunk-5xm6c0r0.js.gz +0 -0
  665. package/web/chunk-67pmbk1h.js +0 -324
  666. package/web/chunk-67pmbk1h.js.br +0 -0
  667. package/web/chunk-67pmbk1h.js.gz +0 -0
  668. package/web/chunk-6ebp7qd7.js +0 -169
  669. package/web/chunk-6ebp7qd7.js.br +0 -0
  670. package/web/chunk-6ebp7qd7.js.gz +0 -0
  671. package/web/chunk-6k8me9kr.js +0 -1
  672. package/web/chunk-6k8me9kr.js.br +0 -0
  673. package/web/chunk-6k8me9kr.js.gz +0 -0
  674. package/web/chunk-7aqr59hm.js +0 -1
  675. package/web/chunk-7aqr59hm.js.br +0 -0
  676. package/web/chunk-7aqr59hm.js.gz +0 -0
  677. package/web/chunk-7qnxv6xx.js +0 -1
  678. package/web/chunk-7qnxv6xx.js.br +0 -0
  679. package/web/chunk-7qnxv6xx.js.gz +0 -0
  680. package/web/chunk-7yb2g5zs.js +0 -1
  681. package/web/chunk-7yb2g5zs.js.br +0 -0
  682. package/web/chunk-7yb2g5zs.js.gz +0 -0
  683. package/web/chunk-86f9x5fs.js +0 -24
  684. package/web/chunk-86f9x5fs.js.br +0 -0
  685. package/web/chunk-86f9x5fs.js.gz +0 -0
  686. package/web/chunk-8gvxttsz.js +0 -39
  687. package/web/chunk-8gvxttsz.js.br +0 -0
  688. package/web/chunk-8gvxttsz.js.gz +0 -0
  689. package/web/chunk-8kjx7nve.js +0 -1
  690. package/web/chunk-8kjx7nve.js.br +0 -0
  691. package/web/chunk-8kjx7nve.js.gz +0 -0
  692. package/web/chunk-8qda1pw3.js +0 -2
  693. package/web/chunk-8qda1pw3.js.br +0 -0
  694. package/web/chunk-8qda1pw3.js.gz +0 -0
  695. package/web/chunk-98zd6fb7.js +0 -40
  696. package/web/chunk-98zd6fb7.js.br +0 -0
  697. package/web/chunk-98zd6fb7.js.gz +0 -0
  698. package/web/chunk-9b43td2b.js +0 -24
  699. package/web/chunk-9b43td2b.js.br +0 -0
  700. package/web/chunk-9b43td2b.js.gz +0 -0
  701. package/web/chunk-9hkz2jgq.js +0 -303
  702. package/web/chunk-9hkz2jgq.js.br +0 -0
  703. package/web/chunk-9hkz2jgq.js.gz +0 -0
  704. package/web/chunk-a3qa5c8q.js +0 -292
  705. package/web/chunk-a3qa5c8q.js.br +0 -0
  706. package/web/chunk-a3qa5c8q.js.gz +0 -0
  707. package/web/chunk-ads3r60t.js +0 -70
  708. package/web/chunk-ads3r60t.js.br +0 -0
  709. package/web/chunk-ads3r60t.js.gz +0 -0
  710. package/web/chunk-ax4wvgv9.js +0 -38
  711. package/web/chunk-ax4wvgv9.js.br +0 -0
  712. package/web/chunk-ax4wvgv9.js.gz +0 -0
  713. package/web/chunk-b9knvs0r.js +0 -1
  714. package/web/chunk-b9knvs0r.js.br +0 -0
  715. package/web/chunk-b9knvs0r.js.gz +0 -0
  716. package/web/chunk-batey85v.js +0 -2
  717. package/web/chunk-batey85v.js.br +0 -0
  718. package/web/chunk-batey85v.js.gz +0 -0
  719. package/web/chunk-ccdww2gj.js +0 -2
  720. package/web/chunk-ccdww2gj.js.br +0 -0
  721. package/web/chunk-ccdww2gj.js.gz +0 -0
  722. package/web/chunk-cgbz97dr.js +0 -2
  723. package/web/chunk-cgbz97dr.js.br +0 -0
  724. package/web/chunk-cgbz97dr.js.gz +0 -0
  725. package/web/chunk-cjbqey5q.js +0 -1
  726. package/web/chunk-cjbqey5q.js.br +0 -0
  727. package/web/chunk-cjbqey5q.js.gz +0 -0
  728. package/web/chunk-cm5cmpxr.js +0 -1
  729. package/web/chunk-cm5cmpxr.js.br +0 -0
  730. package/web/chunk-cm5cmpxr.js.gz +0 -0
  731. package/web/chunk-cqce094e.js +0 -55
  732. package/web/chunk-cqce094e.js.br +0 -0
  733. package/web/chunk-cqce094e.js.gz +0 -0
  734. package/web/chunk-ct6hkz49.js +0 -7
  735. package/web/chunk-ct6hkz49.js.br +0 -0
  736. package/web/chunk-ct6hkz49.js.gz +0 -0
  737. package/web/chunk-d0qb5kr7.js +0 -1
  738. package/web/chunk-d0qb5kr7.js.br +0 -0
  739. package/web/chunk-d0qb5kr7.js.gz +0 -0
  740. package/web/chunk-d9c65yrg.js +0 -1
  741. package/web/chunk-d9c65yrg.js.br +0 -0
  742. package/web/chunk-d9c65yrg.js.gz +0 -0
  743. package/web/chunk-dfv95z6w.js +0 -1
  744. package/web/chunk-dfv95z6w.js.br +0 -0
  745. package/web/chunk-dfv95z6w.js.gz +0 -0
  746. package/web/chunk-ece0ex2b.js +0 -2
  747. package/web/chunk-ece0ex2b.js.br +0 -0
  748. package/web/chunk-ece0ex2b.js.gz +0 -0
  749. package/web/chunk-ejrsh0nz.js +0 -1
  750. package/web/chunk-ejrsh0nz.js.br +0 -2
  751. package/web/chunk-ejrsh0nz.js.gz +0 -0
  752. package/web/chunk-ekcnhcm0.js +0 -1
  753. package/web/chunk-ekcnhcm0.js.br +0 -0
  754. package/web/chunk-ekcnhcm0.js.gz +0 -0
  755. package/web/chunk-eq4skc30.js +0 -1
  756. package/web/chunk-eq4skc30.js.br +0 -0
  757. package/web/chunk-eq4skc30.js.gz +0 -0
  758. package/web/chunk-ev6xj0qs.js +0 -1142
  759. package/web/chunk-ev6xj0qs.js.br +0 -0
  760. package/web/chunk-ev6xj0qs.js.gz +0 -0
  761. package/web/chunk-ezx3f7hw.js +0 -1
  762. package/web/chunk-ezx3f7hw.js.br +0 -0
  763. package/web/chunk-ezx3f7hw.js.gz +0 -0
  764. package/web/chunk-f0kc6vf9.js +0 -2
  765. package/web/chunk-f0kc6vf9.js.br +0 -0
  766. package/web/chunk-f0kc6vf9.js.gz +0 -0
  767. package/web/chunk-fabemrkx.js +0 -1
  768. package/web/chunk-fabemrkx.js.br +0 -0
  769. package/web/chunk-fabemrkx.js.gz +0 -0
  770. package/web/chunk-faestmhg.js +0 -89
  771. package/web/chunk-faestmhg.js.br +0 -0
  772. package/web/chunk-faestmhg.js.gz +0 -0
  773. package/web/chunk-g5ngaf53.js +0 -2
  774. package/web/chunk-g5ngaf53.js.br +0 -0
  775. package/web/chunk-g5ngaf53.js.gz +0 -0
  776. package/web/chunk-gcyhcbej.js +0 -1
  777. package/web/chunk-gcyhcbej.js.br +0 -2
  778. package/web/chunk-gcyhcbej.js.gz +0 -0
  779. package/web/chunk-ggfwnr7a.js +0 -1
  780. package/web/chunk-ggfwnr7a.js.br +0 -0
  781. package/web/chunk-ggfwnr7a.js.gz +0 -0
  782. package/web/chunk-gp3356tf.js +0 -2
  783. package/web/chunk-gp3356tf.js.br +0 -0
  784. package/web/chunk-gp3356tf.js.gz +0 -0
  785. package/web/chunk-gw1d4wmd.js +0 -1
  786. package/web/chunk-gw1d4wmd.js.br +0 -0
  787. package/web/chunk-gw1d4wmd.js.gz +0 -0
  788. package/web/chunk-hmc93mm5.js +0 -1
  789. package/web/chunk-hmc93mm5.js.br +0 -0
  790. package/web/chunk-hmc93mm5.js.gz +0 -0
  791. package/web/chunk-hn9rxtn8.js +0 -8
  792. package/web/chunk-hn9rxtn8.js.br +0 -0
  793. package/web/chunk-hn9rxtn8.js.gz +0 -0
  794. package/web/chunk-hrng3h6w.js +0 -1
  795. package/web/chunk-hrng3h6w.js.br +0 -2
  796. package/web/chunk-hrng3h6w.js.gz +0 -0
  797. package/web/chunk-hxyxfhhs.js +0 -1
  798. package/web/chunk-hxyxfhhs.js.br +0 -2
  799. package/web/chunk-hxyxfhhs.js.gz +0 -0
  800. package/web/chunk-j94hffw3.js +0 -2
  801. package/web/chunk-j94hffw3.js.br +0 -0
  802. package/web/chunk-j94hffw3.js.gz +0 -0
  803. package/web/chunk-jrh3s3f5.js +0 -370
  804. package/web/chunk-jrh3s3f5.js.br +0 -0
  805. package/web/chunk-jrh3s3f5.js.gz +0 -0
  806. package/web/chunk-jw830br8.js +0 -106
  807. package/web/chunk-jw830br8.js.br +0 -0
  808. package/web/chunk-jw830br8.js.gz +0 -0
  809. package/web/chunk-k3whmjng.js +0 -1
  810. package/web/chunk-k3whmjng.js.br +0 -0
  811. package/web/chunk-k3whmjng.js.gz +0 -0
  812. package/web/chunk-kgfzf3q8.js +0 -1
  813. package/web/chunk-kgfzf3q8.js.br +0 -0
  814. package/web/chunk-kgfzf3q8.js.gz +0 -0
  815. package/web/chunk-kqpj6dnm.js +0 -2
  816. package/web/chunk-kqpj6dnm.js.br +0 -0
  817. package/web/chunk-kqpj6dnm.js.gz +0 -0
  818. package/web/chunk-kvz46sd7.js +0 -2
  819. package/web/chunk-kvz46sd7.js.br +0 -0
  820. package/web/chunk-kvz46sd7.js.gz +0 -0
  821. package/web/chunk-magq6xms.js +0 -36
  822. package/web/chunk-magq6xms.js.br +0 -0
  823. package/web/chunk-magq6xms.js.gz +0 -0
  824. package/web/chunk-mtzj1zyw.js +0 -2
  825. package/web/chunk-mtzj1zyw.js.br +0 -0
  826. package/web/chunk-mtzj1zyw.js.gz +0 -0
  827. package/web/chunk-my778zsk.js +0 -1
  828. package/web/chunk-my778zsk.js.br +0 -0
  829. package/web/chunk-my778zsk.js.gz +0 -0
  830. package/web/chunk-mzevfdmp.js +0 -1
  831. package/web/chunk-mzevfdmp.js.br +0 -0
  832. package/web/chunk-mzevfdmp.js.gz +0 -0
  833. package/web/chunk-n5hvbjdt.js +0 -3
  834. package/web/chunk-n5hvbjdt.js.br +0 -0
  835. package/web/chunk-n5hvbjdt.js.gz +0 -0
  836. package/web/chunk-n6wz1xv2.js +0 -84
  837. package/web/chunk-n6wz1xv2.js.br +0 -0
  838. package/web/chunk-n6wz1xv2.js.gz +0 -0
  839. package/web/chunk-nfz5qmem.js +0 -1
  840. package/web/chunk-nfz5qmem.js.br +0 -0
  841. package/web/chunk-nfz5qmem.js.gz +0 -0
  842. package/web/chunk-p01t2t8w.js +0 -1
  843. package/web/chunk-p01t2t8w.js.br +0 -0
  844. package/web/chunk-p01t2t8w.js.gz +0 -0
  845. package/web/chunk-pa0sqjjk.js +0 -1
  846. package/web/chunk-pa0sqjjk.js.br +0 -0
  847. package/web/chunk-pa0sqjjk.js.gz +0 -0
  848. package/web/chunk-pczbf6w0.js +0 -200
  849. package/web/chunk-pczbf6w0.js.br +0 -0
  850. package/web/chunk-pczbf6w0.js.gz +0 -0
  851. package/web/chunk-pss11x84.js +0 -7
  852. package/web/chunk-pss11x84.js.br +0 -0
  853. package/web/chunk-pss11x84.js.gz +0 -0
  854. package/web/chunk-psymen6a.js +0 -1
  855. package/web/chunk-psymen6a.js.br +0 -0
  856. package/web/chunk-psymen6a.js.gz +0 -0
  857. package/web/chunk-q5rd9d4z.js +0 -1
  858. package/web/chunk-q5rd9d4z.js.br +0 -0
  859. package/web/chunk-q5rd9d4z.js.gz +0 -0
  860. package/web/chunk-qb820yv8.js +0 -1
  861. package/web/chunk-qb820yv8.js.br +0 -0
  862. package/web/chunk-qb820yv8.js.gz +0 -0
  863. package/web/chunk-qcacb7rs.js +0 -1
  864. package/web/chunk-qcacb7rs.js.br +0 -0
  865. package/web/chunk-qcacb7rs.js.gz +0 -0
  866. package/web/chunk-qhwsegs1.js +0 -1
  867. package/web/chunk-qhwsegs1.js.br +0 -0
  868. package/web/chunk-qhwsegs1.js.gz +0 -0
  869. package/web/chunk-qm88s0at.js +0 -30
  870. package/web/chunk-qm88s0at.js.br +0 -0
  871. package/web/chunk-qm88s0at.js.gz +0 -0
  872. package/web/chunk-qpmyxj27.js +0 -1
  873. package/web/chunk-qpmyxj27.js.br +0 -0
  874. package/web/chunk-qpmyxj27.js.gz +0 -0
  875. package/web/chunk-qxyanf4n.js +0 -98
  876. package/web/chunk-qxyanf4n.js.br +0 -0
  877. package/web/chunk-qxyanf4n.js.gz +0 -0
  878. package/web/chunk-qz8yct8b.js +0 -62
  879. package/web/chunk-qz8yct8b.js.br +0 -0
  880. package/web/chunk-qz8yct8b.js.gz +0 -0
  881. package/web/chunk-qzeb7kj6.js +0 -78
  882. package/web/chunk-qzeb7kj6.js.br +0 -0
  883. package/web/chunk-qzeb7kj6.js.gz +0 -0
  884. package/web/chunk-r827h2kc.js +0 -1
  885. package/web/chunk-r827h2kc.js.br +0 -2
  886. package/web/chunk-r827h2kc.js.gz +0 -0
  887. package/web/chunk-r992px5p.js +0 -4
  888. package/web/chunk-r992px5p.js.br +0 -0
  889. package/web/chunk-r992px5p.js.gz +0 -0
  890. package/web/chunk-rvgx4jhr.js +0 -1
  891. package/web/chunk-rvgx4jhr.js.br +0 -0
  892. package/web/chunk-rvgx4jhr.js.gz +0 -0
  893. package/web/chunk-rxadtk6j.js +0 -12
  894. package/web/chunk-rxadtk6j.js.br +0 -0
  895. package/web/chunk-rxadtk6j.js.gz +0 -0
  896. package/web/chunk-sk3ssmwp.js +0 -2
  897. package/web/chunk-sk3ssmwp.js.br +0 -0
  898. package/web/chunk-sk3ssmwp.js.gz +0 -0
  899. package/web/chunk-snvwfzxt.js +0 -2
  900. package/web/chunk-snvwfzxt.js.br +0 -0
  901. package/web/chunk-snvwfzxt.js.gz +0 -0
  902. package/web/chunk-szfzt9ph.js +0 -217
  903. package/web/chunk-szfzt9ph.js.br +0 -0
  904. package/web/chunk-szfzt9ph.js.gz +0 -0
  905. package/web/chunk-szwh742y.js +0 -2
  906. package/web/chunk-szwh742y.js.br +0 -0
  907. package/web/chunk-szwh742y.js.gz +0 -0
  908. package/web/chunk-t9hnp1zd.js +0 -2
  909. package/web/chunk-t9hnp1zd.js.br +0 -3
  910. package/web/chunk-t9hnp1zd.js.gz +0 -0
  911. package/web/chunk-tanv869p.js +0 -120
  912. package/web/chunk-tanv869p.js.br +0 -0
  913. package/web/chunk-tanv869p.js.gz +0 -0
  914. package/web/chunk-tpps3mfw.js +0 -139
  915. package/web/chunk-tpps3mfw.js.br +0 -0
  916. package/web/chunk-tpps3mfw.js.gz +0 -0
  917. package/web/chunk-txb5yf8n.js +0 -1
  918. package/web/chunk-txb5yf8n.js.br +0 -0
  919. package/web/chunk-txb5yf8n.js.gz +0 -0
  920. package/web/chunk-v3vqv74s.js +0 -1
  921. package/web/chunk-v3vqv74s.js.br +0 -0
  922. package/web/chunk-v3vqv74s.js.gz +0 -0
  923. package/web/chunk-v5q92q5d.js +0 -1
  924. package/web/chunk-v5q92q5d.js.br +0 -0
  925. package/web/chunk-v5q92q5d.js.gz +0 -0
  926. package/web/chunk-vayamfxv.js +0 -1
  927. package/web/chunk-vayamfxv.js.br +0 -0
  928. package/web/chunk-vayamfxv.js.gz +0 -0
  929. package/web/chunk-vrakntde.js +0 -21
  930. package/web/chunk-vrakntde.js.br +0 -0
  931. package/web/chunk-vrakntde.js.gz +0 -0
  932. package/web/chunk-we9q8a9q.js +0 -2
  933. package/web/chunk-we9q8a9q.js.br +0 -0
  934. package/web/chunk-we9q8a9q.js.gz +0 -0
  935. package/web/chunk-wgezeg5k.js +0 -2
  936. package/web/chunk-wgezeg5k.js.br +0 -0
  937. package/web/chunk-wgezeg5k.js.gz +0 -0
  938. package/web/chunk-wh028xj6.js +0 -142
  939. package/web/chunk-wh028xj6.js.br +0 -0
  940. package/web/chunk-wh028xj6.js.gz +0 -0
  941. package/web/chunk-whprx2wg.js +0 -1
  942. package/web/chunk-whprx2wg.js.br +0 -0
  943. package/web/chunk-whprx2wg.js.gz +0 -0
  944. package/web/chunk-wjv2q7b1.js +0 -2
  945. package/web/chunk-wjv2q7b1.js.br +0 -0
  946. package/web/chunk-wjv2q7b1.js.gz +0 -0
  947. package/web/chunk-wydnkdtp.js +0 -89
  948. package/web/chunk-wydnkdtp.js.br +0 -0
  949. package/web/chunk-wydnkdtp.js.gz +0 -0
  950. package/web/chunk-x0zvwdq6.js +0 -2
  951. package/web/chunk-x0zvwdq6.js.br +0 -0
  952. package/web/chunk-x0zvwdq6.js.gz +0 -0
  953. package/web/chunk-x9b1052x.js +0 -2
  954. package/web/chunk-x9b1052x.js.br +0 -0
  955. package/web/chunk-x9b1052x.js.gz +0 -0
  956. package/web/chunk-xwyvptzt.js +0 -2
  957. package/web/chunk-xwyvptzt.js.br +0 -0
  958. package/web/chunk-xwyvptzt.js.gz +0 -0
  959. package/web/chunk-ya7gs2bv.js +0 -1
  960. package/web/chunk-ya7gs2bv.js.br +0 -0
  961. package/web/chunk-ya7gs2bv.js.gz +0 -0
  962. package/web/chunk-yjan9xfw.js +0 -2
  963. package/web/chunk-yjan9xfw.js.br +0 -0
  964. package/web/chunk-yjan9xfw.js.gz +0 -0
  965. package/web/chunk-yqzsx086.js +0 -2
  966. package/web/chunk-yqzsx086.js.br +0 -0
  967. package/web/chunk-yqzsx086.js.gz +0 -0
  968. package/web/chunk-zcetrm2j.js +0 -1
  969. package/web/chunk-zcetrm2j.js.br +0 -3
  970. package/web/chunk-zcetrm2j.js.gz +0 -0
  971. package/web/chunk-zk1ddepw.js +0 -1
  972. package/web/chunk-zk1ddepw.js.br +0 -0
  973. package/web/chunk-zk1ddepw.js.gz +0 -0
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Ds}from"./chunk-fnzyprme.js";export{Ds as createGitGraphServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Os}from"./chunk-fnzyprme.js";export{Os as createInfoServices};
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ import{t}from"./chunk-kasv56qe.js";import"./chunk-g7ec62te.js";import{Us,js}from"./chunk-8gxgpr3n.js";import"./chunk-71tshjjr.js";import"./chunk-xa2ngtyg.js";import"./chunk-6dr6eazd.js";import"./chunk-kmhbkjqx.js";var o=t((r)=>`${Us(r)}
2
+ .swimlane.cluster:not([data-color-id]) rect {
3
+ stroke: ${r.clusterBorder} !important;
4
+ }
5
+ [data-look="neo"].cluster rect {
6
+ filter: none;
7
+ }
8
+ `,"getStyles"),m=o,D=js({styles:m});export{D as diagram};
@@ -0,0 +1 @@
1
+ � ��8ܤ+�4u���%A�B]��4��K˛��$�w�.~֌B(�VUQ4�n��Gm &�4���a������H����]����a�/�B~��M��Ĥe!��V�Q,:Z�FI�q��E��!��76|�����7M�{x(O�6���&�k�eGXc�g��7�IEٱ���������C�u�@]S�������Ұ *3���u�P�TG�&�X�`��x�ג�sb~*��)iٵ��~�s����Ӣ��X
Binary file
@@ -0,0 +1,200 @@
1
+ import{t,i,Ie,ct,C,N,M,P,R,I,O,D,d,xr,jr,g,Xt,Kt,H,St,De,Ne,Me,Ot,si,He,Ue}from"./chunk-kasv56qe.js";import{Fn}from"./chunk-g7ec62te.js";import{Tt}from"./chunk-71tshjjr.js";import{zn}from"./chunk-xa2ngtyg.js";import{ze}from"./chunk-6dr6eazd.js";import{Pe}from"./chunk-kmhbkjqx.js";var Et={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},P1=new Set([Et.SHAPE_UNSUPPORTED,Et.SHAPE_REMOVED,Et.CONTAINMENT_VIOLATION]),xs=new Set(Object.values(Et).filter((e)=>!P1.has(e))),G1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),U1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),j1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),mt="roundedRect";function At(e){if(!e)return e;return G1.get(e)??e}t(At,"resolveShapeAlias");function D1(e,n){for(let a of e){if(a.isGroup)continue;if(!a.shape||a.shape==="squareRect"||a.shape==="rect")a.shape=mt;if(U1.has(a.shape)){let o=`shape "${a.shape}" was removed in v0.8.1, using "${mt}"`;if(n?.emitError)n.emitError("SHAPE_REMOVED",o,{nodeId:a.id});else i.warn(`agentflow: ${o}`);a.shape=mt;continue}if(!j1.has(a.shape)){let o=`shape "${a.shape}" is not supported, using "${mt}"`;if(n?.emitWarning)n.emitWarning("SHAPE_UNSUPPORTED",o,{nodeId:a.id});else i.warn(`agentflow: ${o}`);a.shape=mt}}}t(D1,"normaliseNodeShapes");var t1=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),_1=t1.size,v1=t((e)=>`af-kind-${e}`,"kindClass"),z1=[...t1.keys()],F1=t((e)=>Math.max(1,e-_1),"containerSlotCount"),V1=t((e,n)=>{let a=_1+e%F1(n);return n>0?a%n:a},"containerSlot");function I1(e,n,a){let o=d().themeVariables?.borderColorArray,c=Array.isArray(o)?o.length:0,h=a.size;for(let u of e??[]){if(u.isGroup||u.shape==="collapsedGroup"){let m=a.get(String(u.id))??h++;u.colorIndex=V1(m,c);continue}let p=n(String(u.id));if(p&&t1.has(p))u.cssClasses=`${u.cssClasses??""} ${v1(p)}`.replace(/\s+/g," ").trim()}}t(I1,"assignColorSlots");var T1="agentflow-",u1=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),W1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),K1={flow:"flowGroup"};function e1(e){if(Array.isArray(e))return e.map((a)=>e1(a));if(e===null||typeof e!=="object")return e;let n={};for(let a of Object.keys(e)){if(a==="__proto__"||a==="constructor"||a==="prototype")continue;n[a]=e1(e[a])}return n}t(e1,"stripPrototypeKeys");function L1(e){let n=!1,a=!1,o=0,c,h=[];for(let u of e.split(`
2
+ `)){if(c!==void 0){let A=u.length-u.trimStart().length;if(u.trim()===""||A>c){h.push(u);continue}c=void 0}let p=-1;for(let A=0;A<u.length;A++){let S=u[A];if(a){if(S==="\\")A++;else if(S==='"')a=!1}else if(n){if(S==="'")n=!1}else if(S==='"')a=!0;else if(S==="'")n=!0;else if(S==="#"&&(A===0||u[A-1]===" "||u[A-1]==="\t")){p=A;break}else if(S==="["||S==="{")o++;else if(S==="]"||S==="}")o=Math.max(0,o-1)}if(n||a||o>0){h.push(u);continue}let m=p>=0?u.slice(0,p):u,k=p>=0?u.slice(p):"";if(/:\s*[>|][\d+-]*\s*$/.test(m)){c=u.length-u.trimStart().length,h.push(u);continue}h.push(m.replace(/,([\t ]*)$/,"$1")+k)}return h.join(`
3
+ `)}t(L1,"stripLineTrailingCommas");var H1=class{constructor(){this.vertexCounter=0,this.config=d(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=M,this.setAccDescription=R,this.setDiagramTitle=O,this.getAccTitle=P,this.getAccDescription=I,this.getDiagramTitle=D,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{t(this,"AgentFlowDB")}sanitizeText(e){return C.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let n of this.vertices.values())if(n.id===e)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,n,a,o,c,h,u={},p,m){if(!e||e.trim().length===0)return;let k;if(p!==void 0){let E;if(!p.includes(`
4
+ `))E=`{
5
+ `+p+`
6
+ }`;else E=p+`
7
+ `;try{k=Kt(E,{schema:Xt})??{}}catch(f){let b=p.includes(`
8
+ `)?L1(p):p;if(b!==p)try{k=Kt(b+`
9
+ `,{schema:Xt})??{}}catch{this.rethrowMetadataYamlError(f,p,m)}else this.rethrowMetadataYamlError(f,p,m)}k=e1(k)}let A;if(k&&typeof k.shape==="string"){let E=k;A=E.shape;let f=At(A);if(f&&f!==A)E.shape=f}let S=this.subGraphLookup.get(e);if(S&&k){S.metadata={...S.metadata,...k};return}let y=this.connectors.get(e);if(y&&k){y.metadata={...y.metadata,...k};return}if(e==="connectors")return;let v=this.edges.find((E)=>E.id===e);if(v){let E=k;if(E?.animate!==void 0)v.animate=E.animate;if(E?.animation!==void 0)v.animation=E.animation;if(E?.curve!==void 0)v.interpolate=E.curve;if(k)v.metadata={...v.metadata,...k};return}let z,V=this.vertices.get(e);if(V===void 0)V={id:e,labelType:"text",domId:T1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,V);if(this.vertexCounter++,n!==void 0){if(this.config=d(),z=this.sanitizeText(n.text.trim()),V.labelType=n.type,z.startsWith('"')&&z.endsWith('"'))z=z.substring(1,z.length-1);V.text=z}else if(V.text===void 0)V.text=e;if(a!==void 0)V.type=a;if(o!==void 0&&o!==null)o.forEach((E)=>{V.styles.push(E)});if(c!==void 0&&c!==null)c.forEach((E)=>{V.classes.push(E)});if(h!==void 0)V.dir=h;if(V.props===void 0)V.props=u;else if(u!==void 0)Object.assign(V.props,u);if(k){if(V.metadata={...V.metadata,...k},k.shape){let E=A??k.shape;if(typeof E!=="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(E)}.`,m);if(E!==E.toLowerCase()||E.includes("_"))throw this.positionedShapeError(`No such shape: ${E}. Shape names should be lowercase.`,m);else if(!si(k.shape))throw this.positionedShapeError(`No such shape: ${k.shape}.`,m);V.type=k?.shape}if(k?.label)V.text=this.sanitizeText(k.label),V.labelType=this.sanitizeNodeLabelType(k?.labelType)}}positionedShapeError(e,n){let a=Error(e);if(!n)return a;let o=n.first_line+this.frontmatterLineOffset;return Object.assign(a,{hash:{text:"",token:null,line:o-1,loc:{first_line:o,last_line:n.last_line+this.frontmatterLineOffset,first_column:n.first_column,last_column:n.last_column},expected:[]}}),a}rethrowMetadataYamlError(e,n,a){let o=e;if(!o||o.name!=="YAMLException"||!o.mark||!a)throw e;let c;try{let h=!n.includes(`
10
+ `),u=h?`{
11
+ `+n+`
12
+ }`:n+`
13
+ `,p=a.first_line+this.frontmatterLineOffset,m=a.first_column+2,k=t((E,f)=>{if(h)return{line:p,column:m+(E===1?f:0)};return{line:p+E,column:E===0?m+f:f}},"toSource"),A=k(o.mark.line,o.mark.column),S=o.reason??(o.message??"").split(`
14
+ `)[0].replace(/\s*\(\d+:\d+\)\s*$/,""),y=u.split(`
15
+ `),v=[];if(h)v.push(1);else for(let E=o.mark.line-1;E<=o.mark.line+1;E++){if(E<0||E>=y.length)continue;if(E===y.length-1&&y[E]===""&&E!==o.mark.line)continue;v.push(E)}let z=Math.max(...v.map((E)=>String(k(E,0).line).length)),V=[];for(let E of v){let f=k(E,0).line,b=` ${String(f).padStart(z)} | `;if(V.push(b+y[E].replace(/\t/g,"→")),E===o.mark.line)V.push("-".repeat(b.length+o.mark.column)+"^")}c={message:`${S} (${A.line}:${A.column+1})
16
+
17
+ ${V.join(`
18
+ `)}`,markLine:A.line-1,markColumn:A.column,hash:{text:"",token:null,line:A.line-1,loc:{first_line:A.line,last_line:A.line,first_column:A.column,last_column:A.column+1},expected:[]}}}catch{}if(c)o.message=c.message,o.mark.line=c.markLine,o.mark.column=c.markColumn,o.hash=c.hash;throw o}addSingleLink(e,n,a,o){let u={start:e,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};i.info("abc78 Got edge...",u);let p=a.text;if(p!==void 0){if(u.text=this.sanitizeText(p.text.trim()),u.text.startsWith('"')&&u.text.endsWith('"'))u.text=u.text.substring(1,u.text.length-1);u.labelType=this.sanitizeNodeLabelType(p.type)}if(a!==void 0){if(u.type=a.type,u.stroke=a.stroke,u.length=a.length>10?10:a.length,a.edgeSemantic)u.edgeSemantic=a.edgeSemantic}if(o&&!this.edges.some((m)=>m.id===o))u.id=o,u.isUserDefinedId=!0;else{let m=this.edges.filter((k)=>k.start===u.start&&k.end===u.end);if(m.length===0)u.id=St(u.start,u.end,{counter:0,prefix:"L"});else u.id=St(u.start,u.end,{counter:m.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))i.info("Pushing edge..."),this.edges.push(u);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
19
+
20
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
21
+ You cannot set this config via configuration inside the diagram as it is a secure config.
22
+ You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,n,a){let o=this.isLinkData(a)?a.id.replace("@",""):void 0;i.info("addLink",e,n,o);for(let c of e)for(let h of n){let u=c===e[e.length-1],p=h===n[0];if(u&&p)this.addSingleLink(c,h,a,o);else this.addSingleLink(c,h,a,void 0)}}updateLinkInterpolate(e,n){e.forEach((a)=>{if(a==="default"){this.edges.defaultInterpolate=n;return}if(typeof a==="number"&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[a].interpolate=n})}updateLink(e,n){e.forEach((a)=>{if(typeof a==="number"&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(a==="default")this.edges.defaultStyle=n;else if(this.edges[a].style=n,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some((o)=>o?.startsWith("fill")))this.edges[a]?.style?.push("fill:none")})}addClass(e,n){let a=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(a!==void 0&&a!==null)a.forEach((h)=>{if(/color/.exec(h)){let u=h.replace("fill","bgFill");c.textStyles.push(u)}c.styles.push(h)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,n){for(let a of e.split(",")){let o=this.vertices.get(a);if(o)o.classes.push(n);let c=this.edges.find((u)=>u.id===a);if(c)c.classes.push(n);let h=this.subGraphLookup.get(a);if(h)h.classes.push(n)}}setTooltip(e,n){if(n===void 0)return;n=this.sanitizeText(n);for(let a of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,n)}setClickFun(e,n,a){if(d().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof a==="string"){o=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<o.length;h++){let u=o[h].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);o[h]=u}}if(o.length===0)o.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let h=this.lookUpDomId(e),u=document.querySelector(`[id="${h}"]`);if(u!==null)u.addEventListener("click",()=>{H.runFunc(n,...o)},!1)})}setLink(e,n,a){e.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=H.formatUrl(n,this.config),c.linkTarget=a}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,n,a){e.split(",").forEach((o)=>{this.setClickFun(o,n,a)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((n)=>{n(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return W1.has(e.type)}getTools(){let e=[];for(let n of this.vertices.values())if(this.isToolDefinition(n))e.push(n);return e}getClasses(){return this.classes}setupToolTips(e){let n=Fn();g(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let h=g(c.currentTarget),u=h.attr("title");if(u===null)return;let p=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(h.attr("title")).style("left",window.scrollX+p.left+(p.right-p.left)/2+"px").style("top",window.scrollY+p.bottom+"px"),n.html(ct.sanitize(u)),h.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),g(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=d(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,N()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,n,a,o){let c=e?.text?.trim(),h=a?.text;if(e===a&&a?.text&&/\s/.exec(a.text))c=void 0;let p=t((v)=>{let z={boolean:{},number:{},string:{}},V=[],E;return{nodeList:v.filter(function(b){let F=typeof b;if(b.stmt&&b.stmt==="dir")return E=b.value,!1;if(b.trim()==="")return!1;if(F in z)return z[F].hasOwnProperty(b)?!1:z[F][b]=!0;else return V.includes(b)?!1:V.push(b)}),dir:E}},"uniq")(n.flat()),{nodeList:m,dir:k}=p,A=d().flowchart??{};if(k=k??(A.inheritDir?this.getDirection()??d().direction??void 0:void 0),this.version==="gen-1")for(let v=0;v<m.length;v++)m[v]=this.lookUpDomId(m[v]);c=c??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let S={id:c,nodes:m.filter((v)=>v!==c&&!this.globalNodes.has(v)),title:h.trim(),classes:[],dir:k,labelType:this.sanitizeNodeLabelType(a?.type),type:o??"flow"};i.info("Adding",S.id,S.nodes,S.dir),S.nodes=this.makeUniq(S,this.subGraphs).nodes;let y=this.getPosForId(c);if(y!==-1){let v=this.subGraphs[y];for(let z of S.nodes)if(!v.nodes.includes(z))v.nodes.push(z);if(S.title)v.title=S.title;if(S.dir)v.dir=S.dir;if(S.type)v.type=S.type;this.subGraphLookup.set(c,v)}else this.subGraphs.push(S),this.subGraphLookup.set(c,S);return c}addGlobal(e){for(let n of e.flat()){if(typeof n!=="string")continue;let a=n.trim();if(a!=="")this.globalNodes.add(a)}for(let n of this.subGraphs)n.nodes=n.nodes.filter((a)=>!this.globalNodes.has(a))}getPosForId(e){for(let[n,a]of this.subGraphs.entries())if(a.id===e)return n;return-1}indexNodes2(e,n){let a=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===e)return{result:!0,count:0};let o=0,c=1;while(o<a.length){let h=this.getPosForId(a[o]);if(h>=0){let u=this.indexNodes2(e,h);if(u.result)return{result:!0,count:c+u.count};else c=c+u.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,n){let a=e?.text?.trim();if(!a)return"";let o=n?.text?.trim()??"",c=o.length>0?this.sanitizeText(o):a,h=this.connectors.get(a);if(!h)h={id:a,labelType:"text",domId:T1+a+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:c},this.connectors.set(a,h),this.vertices.set(a,h),this.vertexCounter++;else if(o.length>0)h.text=c;return a}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}computeEdgeSemantic(e,n){if(e==="arrow_point"&&n==="normal")return"sequence";if(e==="arrow_cross"&&n==="normal")return"failure";if(e==="arrow_open"&&n==="dotted")return"reference";return}destructStartLink(e){let n=e.trim(),a="arrow_open",o="normal";if(n.includes("."))o="dotted";return{type:"arrow_open",stroke:o}}countChar(e,n){let a=n.length,o=0;for(let c=0;c<a;++c)if(n[c]===e)++o;return o}destructEndLink(e){let n=e.trim(),a=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":o="arrow_cross";break;case">":o="arrow_point";break;case"-":case".":o="arrow_open",a=n;break}let c="normal",h=a.length-1,u=this.countChar(".",a);if(u>0)c="dotted",h=u;return{type:o,stroke:c,length:h}}destructLink(e,n){let a=this.destructEndLink(e),o;if(n){if(o=this.destructStartLink(n),o.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};return o.type=a.type,o.length=a.length,{...o,edgeSemantic:this.computeEdgeSemantic(o.type,o.stroke)}}return{...a,edgeSemantic:this.computeEdgeSemantic(a.type,a.stroke)}}exists(e,n){for(let a of e)if(a.nodes.includes(n))return!0;return!1}makeUniq(e,n){let a=[];return e.nodes.forEach((o,c)=>{if(!this.exists(n,o))a.push(e.nodes[c])}),{nodes:a}}getTypeFromVertex(e){let n=typeof e.type==="string"?At(e.type):e.type;switch(n){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return n}}findNode(e,n){return e.find((a)=>a.id===n)}destructEdgeType(e){let n="none",a="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":a=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=e.replace("double_",""),a=n;break}return{arrowTypeStart:n,arrowTypeEnd:a}}addNodeFromVertex(e,n,a,o,c,h){let u=a.get(e.id),p=o.get(e.id)??!1,m=this.findNode(n,e.id);if(m)m.cssStyles=e.styles,m.cssCompiledStyles=this.getCompiledStyles(e.classes),m.cssClasses=e.classes.join(" ");else{let k={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:u,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:h,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};if(p)n.push({...k,isGroup:!0,shape:"rect"});else n.push({...k,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:c.agentflow?.wrappingWidth,minWidth:c.agentflow?.minNodeWidth})}}getCompiledStyles(e){let n=[];for(let a of e){let o=this.classes.get(a);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}runPostParseValidators(){if(this.postParseValidationRun)return;this.postParseValidationRun=!0}getData(){this.runPostParseValidators();let e=d(),n=[],a=[],o=this.getSubGraphs(),c=new Map,h=new Map,u=new Set,p=new Map,m=t((f,b,F=new Set)=>{if(F.has(f))return;F.add(f);let q=this.subGraphLookup.get(f);if(!q)return;for(let fe of q.nodes){if(fe===b||F.has(fe))continue;u.add(fe),p.set(fe,b),m(fe,b,F)}},"collectDescendants");for(let f of o)if(f.metadata?.view==="collapsed"&&!u.has(f.id))m(f.id,f.id);let k=t((f,b)=>{let F=new Set,q=b;while(q!==void 0&&!F.has(q)){if(q===f)return!0;F.add(q),q=c.get(q)}return!1},"wouldCloseContainmentCycle");for(let f=o.length-1;f>=0;f--){let b=o[f];if(u.has(b.id))continue;if(b.nodes.length>0)h.set(b.id,!0);for(let F of b.nodes){if(k(F,b.id)){this.emitWarning(Et.CONTAINMENT_VIOLATION,`Container "${b.id}" cannot contain "${F}" because "${F}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:F});continue}c.set(F,b.id)}}for(let f=o.length-1;f>=0;f--){let b=o[f];if(u.has(b.id))continue;if(b.metadata?.view==="collapsed"){let q={...b.metadata,containerType:b.type};n.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:c.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"collapsedGroup",dir:b.dir,isGroup:!1,look:e.look,metadata:q})}else n.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:c.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:K1[b.type??"flow"],dir:b.dir,isGroup:!0,look:e.look,metadata:b.metadata})}this.getVertices().forEach((f)=>{if(u.has(f.id))return;this.addNodeFromVertex(f,n,c,h,e,e.look||"classic")});let S=this.getEdges();S.forEach((f,b)=>{let F=p.get(f.start)??f.start,q=p.get(f.end)??f.end;if(F===q&&f.start!==f.end)return;let{arrowTypeStart:fe,arrowTypeEnd:Se}=this.destructEdgeType(f.type),Ee=[...S.defaultStyle??[]];if(f.style)Ee.push(...f.style);let xe={id:St(F,q,{counter:b,prefix:"L"},f.id),isUserDefinedId:f.isUserDefinedId,start:F,end:q,type:f.type??"normal",label:f.text,labelType:f.labelType,labelpos:"c",thickness:f.stroke,minlen:f.length,classes:f?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:f?.stroke==="invisible"||f?.type==="arrow_open"?"none":fe,arrowTypeEnd:f?.stroke==="invisible"||f?.type==="arrow_open"?"none":Se,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(f.classes),labelStyle:Ee,style:Ee,pattern:f.stroke,look:e.look,animate:f.animate,animation:f.animation,curve:f.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:f.metadata};a.push(xe)}),D1(n,this);let y=new Map,v=new Map;for(let f of o){let b=c.get(f.id);if(b!==void 0)v.set(b,[...v.get(b)??[],f.id])}let z=0,V=t((f)=>{if(y.has(f))return;y.set(f,z++);for(let b of v.get(f)??[])V(b)},"walkContainers");for(let f of o)if(c.get(f.id)===void 0)V(f.id);let E=new Set(this.getConnectors().map((f)=>f.id));return I1(n,(f)=>{if(E.has(f))return"connector";let b=this.vertices.get(f);return b?this.deriveVertexKind(b,At(b.type)):void 0},y),{nodes:n,edges:a,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return jr.flowchart}deriveVertexKind(e,n){if(this.isToolDefinition(e))return"tool";if(n==="hexagon"||n==="hex")return"action";if(n==="lean-right"||n==="lean_right")return"input";if(n==="lin-doc"||n==="lined-document")return"refdoc";if(n==="diamond")return"decision";return"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map((u)=>u.id)),n=[],a=[];for(let[u,p]of this.vertices){if(e.has(u))continue;if(p.isConnector){let A={id:u};if(p.text!==void 0&&p.text!==u)A.title=p.text;if(p.metadata&&Object.keys(p.metadata).length>0){let S={};for(let[y,v]of Object.entries(p.metadata)){if(u1.has(y))continue;S[y]=v}if(Object.keys(S).length>0)A.metadata=S}a.push(A);continue}let m={id:u};if(p.text!==void 0)m.label=p.text;let k=typeof p.type==="string"?At(p.type):p.type;if(k!==void 0)m.shape=k;if(m.vertexKind=this.deriveVertexKind(p,k),p.metadata&&Object.keys(p.metadata).length>0){let A={};for(let[S,y]of Object.entries(p.metadata)){if(u1.has(S))continue;A[S]=y}if(Object.keys(A).length>0)m.metadata=A}n.push(m)}let o=this.edges.map((u)=>{let p={start:u.start,end:u.end};if(u.id!==void 0)p.id=u.id;if(typeof u.text==="string"&&u.text.length>0)p.label=u.text;if(u.type!==void 0)p.type=u.type;if(u.stroke!==void 0)p.stroke=u.stroke;if(u.edgeSemantic!==void 0)p.edgeSemantic=u.edgeSemantic;if(u.length!==void 0)p.length=u.length;if(u.metadata&&Object.keys(u.metadata).length>0)p.metadata={...u.metadata};return p}),c=this.subGraphs.map((u)=>{let p={id:u.id,nodes:[...u.nodes]};if(u.type!==void 0)p.type=u.type;if(u.title!==void 0)p.title=u.title;if(u.dir!==void 0)p.direction=u.dir;if(u.metadata&&Object.keys(u.metadata).length>0){let m={};for(let[k,A]of Object.entries(u.metadata)){if(u1.has(k))continue;m[k]=A}if(Object.keys(m).length>0)p.metadata=m}return p}),h={vertices:n,edges:o,subGraphs:c,connectors:a,diagnostics:this.diagnostics};if(this.direction!==void 0)h.direction=this.direction;return h}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let n=e?.first_line??0,a=e?.first_column??0,o=e?.last_line??n,c=e?.last_column??a,[h,u]=e?.range??[0,0];return{startLine:n+this.frontmatterLineOffset,startColumn:a,endLine:o+this.frontmatterLineOffset,endColumn:c,startIndex:h,endIndex:u}}pushMapping(e,n,a){if(!e)return;let o={id:e,type:n,position:this.toElementPosition(a)};return this.elementMappings.push(o),o}addVertexMapping(e,n,a,o){let c=this.pushMapping(e,"vertex",o);if(c&&a==null)this.bareVertexMappings.add(c)}extendVertexMapping(e,n){if(!e||!n)return;let a=this.toElementPosition(n);for(let o=this.elementMappings.length-1;o>=0;o--){let c=this.elementMappings[o];if(c.type==="vertex"&&c.id===e){if(this.bareVertexMappings.has(c))c.type="attachment",this.bareVertexMappings.delete(c);if(a.endLine>c.position.endLine||a.endLine===c.position.endLine&&a.endColumn>c.position.endColumn)c.position.endLine=a.endLine,c.position.endColumn=a.endColumn,c.position.endIndex=a.endIndex;return}}this.pushMapping(e,"attachment",n)}addEdgeMapping(e,n,a,o){let c=Array.isArray(n)?n.map((u)=>typeof u==="string"?u:u?.id??"").filter(Boolean):[],h=c.length>0?c.join(">"):"edge";this.pushMapping(h,"edge",o)}addSubgraphMapping(e,n,a,o){let c=(typeof e==="string"?e:e?.text)??"",h=this.toElementPosition(a),u=o?this.toElementPosition(o):h;if(!c)return;this.elementMappings.push({id:c,type:"subgraph",position:{startLine:h.startLine,startColumn:h.startColumn,endLine:u.endLine,endColumn:u.endColumn,startIndex:h.startIndex,endIndex:u.endIndex}})}addConnectorMapping(e,n,a,o){let c=e?.text?.trim()??"";if(!c)return;let h=this.toElementPosition(a),u=o?this.toElementPosition(o):h;this.elementMappings.push({id:c,type:"connector",position:{startLine:h.startLine,startColumn:h.startColumn,endLine:u.endLine,endColumn:u.endColumn,startIndex:h.startIndex,endIndex:u.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find((n)=>n.id===e)}getElementsOnLine(e){return this.elementMappings.filter((n)=>e>=n.position.startLine&&e<=n.position.endLine)}getElementAtPosition(e,n){let a=this.elementMappings.filter((c)=>{let{startLine:h,startColumn:u,endLine:p,endColumn:m}=c.position;if(e<h||e>p)return!1;if(e===h&&n<u)return!1;if(e===p&&n>m)return!1;return!0});if(a.length===0)return;let o=t(({position:c})=>[c.endLine-c.startLine,c.endColumn-c.startColumn],"span");return a.reduce((c,h)=>{let[u,p]=o(c),[m,k]=o(h);if(m!==u)return m<u?h:c;return k<p?h:c})}getMappingStats(){let e=0,n=0,a=0,o=0,c=0;for(let h of this.elementMappings)if(h.type==="vertex")e++;else if(h.type==="edge")n++;else if(h.type==="subgraph")a++;else if(h.type==="connector")o++;else if(h.type==="attachment")c++;return{vertices:e,edges:n,subgraphs:a,connectors:o,attachments:c,totalElements:this.elementMappings.length}}emitDiagnostic(e,n,a,o){let c=o?.nodeId??o?.edgeId,h=c?this.getElementById(c):void 0,u={id:e,severity:n,message:a,...o?.nodeId?{nodeId:o.nodeId}:{},...o?.edgeId&&!o?.nodeId?{edgeId:o.edgeId}:{},...h?{position:h.position}:{}};if(this.diagnostics.some((k)=>k.id===u.id&&k.severity===u.severity&&k.message===u.message&&k.nodeId===u.nodeId&&k.edgeId===u.edgeId))return;this.diagnostics.push(u);let m=`agentflow[${e}]: ${a}`;if(n==="error")i.error(m);else i.warn(m)}emitWarning(e,n,a){this.emitDiagnostic(e,"warning",n,a)}emitError(e,n,a){this.emitDiagnostic(e,"error",n,a)}getDiagnostics(){return[...this.diagnostics]}},Y1=t(function(e,n){return n.db.getClasses()},"getClasses"),q1=t(async function(e,n,a,o){i.debug("Drawing agentflow diagram",n);let{securityLevel:c,agentflow:h,layout:u}=d();o.db.setDiagramId(n),i.debug("Before getData: ");let p=o.db.getData();i.debug("Data: ",p);let m=ze(n,c),k=o.db.getDirection();if(p.type=o.type,p.layoutAlgorithm=Ue(u),p.layoutAlgorithm==="dagre"&&u==="elk")i.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.");p.direction=k,p.nodeSpacing=h?.nodeSpacing||50,p.rankSpacing=h?.rankSpacing||50,p.markers=["point","circle","cross","hierarchy"],p.diagramId=n,i.debug("REF1:",p),await He(p,m);let A=h?.diagramPadding??8;H.insertTitle(m,"agentflowTitleText",h?.titleTopMargin??0,o.db.getDiagramTitle()),Pe(m,A,"agentflow",h?.useMaxWidth??!0)},"draw"),X1={getClasses:Y1,draw:q1},l1=function(){var e=t(function(Ge,x,T,_){for(T=T||{},_=Ge.length;_--;T[Ge[_]]=x);return T},"o"),n=[1,5],a=[1,4],o=[1,3],c=[1,6],h=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],u=[2,2],p=[1,15],m=[1,16],k=[1,17],A=[1,18],S=[1,19],y=[1,26],v=[1,27],z=[1,28],V=[1,30],E=[1,31],f=[1,32],b=[1,55],F=[1,54],q=[1,34],fe=[1,35],Se=[1,36],Ee=[1,37],xe=[1,38],Q=[1,50],J=[1,52],Z=[1,48],ee=[1,53],te=[1,49],se=[1,56],ie=[1,51],re=[1,57],ne=[1,58],je=[1,39],We=[1,40],Ke=[1,41],Ye=[1,42],qe=[1,43],Re=[1,64],L=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],ce=[1,70],de=[1,68],he=[1,67],pe=[1,69],Ze=[8,9,10,12,78,80,81],$e=[1,88],et=[1,101],tt=[1,106],st=[1,105],it=[1,102],rt=[1,98],nt=[1,104],at=[1,100],ot=[1,107],ut=[1,103],lt=[1,108],dt=[1,99],Xe=[8,9,10,11,12,43,78,80,81],oe=[8,9,10,11,12,43,49,78,80,81],be=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],c1=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],ht=[47,63,92,105,108,109,112,114,117,118,119],d1=[1,131],h1=[1,132],Ct=[1,134],xt=[1,133],p1=[47,63,65,77,92,105,108,109,112,114,117,118,119],Dt=[1,143],_t=[1,157],vt=[1,158],Ft=[1,159],Vt=[1,162],It=[1,161],Lt=[1,160],Bt=[1,145],Mt=[1,147],yt=[1,151],f1=[1,139],g1=[1,140],wt=[1,152],Nt=[1,153],Rt=[1,154],Pt=[1,155],Gt=[1,156],Ut=[1,163],jt=[1,164],zt=[1,141],Wt=[1,142],Ht=[1,149],Yt=[1,144],qt=[1,148],Qt=[1,146],pt=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],b1=[1,168],ft=[1,170],X=[8,9,10,12],ke=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],w=[1,190],ue=[1,186],le=[1,187],G=[1,191],U=[1,188],j=[1,189],gt=[80,119,122],W=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],k1=[11,109],Oe=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],Te=[1,269],_e=[1,267],ve=[1,271],Fe=[1,265],Ve=[1,266],Le=[1,268],Be=[1,270],ye=[1,272],bt=[1,292],m1=[8,9,10,12,109],Ce=[8,9,10,11,12,63,87,108,109,112,113,114,115],s1={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:t(function(x,T,_,l,K,s,B){var r=s.length-1;switch(K){case 2:this.$=[];break;case 3:if(!Array.isArray(s[r])||s[r].length>0)s[r-1].push(s[r]);this.$=s[r-1];break;case 4:case 198:this.$=s[r];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:l.setDirection("TB"),this.$="TB";break;case 14:l.setDirection(s[r-1]),this.$=s[r-1];break;case 32:this.$=s[r-1].nodes;break;case 38:if(this.$=l.addSubGraph(s[r-6],s[r-1],s[r-4],"flow"),l.addSubgraphMapping)l.addSubgraphMapping(s[r-6],s[r-4],B[r-8],B[r]);break;case 39:if(this.$=l.addSubGraph(s[r-7],s[r-1],s[r-5],"flow"),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-3],B[r-3]),l.addSubgraphMapping)l.addSubgraphMapping(s[r-7],s[r-5],B[r-9],B[r]);break;case 40:if(this.$=l.addSubGraph(s[r-3],s[r-1],{text:"",type:"text"},"flow"),l.addSubgraphMapping)l.addSubgraphMapping(s[r-3],{text:"",type:"text"},B[r-5],B[r]);break;case 41:if(this.$=l.addSubGraph(s[r-4],s[r-1],{text:"",type:"text"},"flow"),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-3],B[r-3]),l.addSubgraphMapping)l.addSubgraphMapping(s[r-4],{text:"",type:"text"},B[r-6],B[r]);break;case 42:if(this.$=l.addSubGraph(void 0,s[r-1],void 0,"flow"),l.addSubgraphMapping)l.addSubgraphMapping(void 0,void 0,B[r-3],B[r]);break;case 43:l.addGlobal(s[r-1]),this.$=[];break;case 44:if(this.$=l.addConnector(s[r-4],s[r-2]),l.addConnectorMapping)l.addConnectorMapping(s[r-4],s[r-2],B[r-6],B[r]);break;case 45:if(this.$=l.addConnector(s[r-5],s[r-3]),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-1],B[r-1]),l.addConnectorMapping)l.addConnectorMapping(s[r-5],s[r-3],B[r-7],B[r]);break;case 46:if(this.$=l.addConnector(s[r-1],{text:"",type:"text"}),l.addConnectorMapping)l.addConnectorMapping(s[r-1],{text:"",type:"text"},B[r-3],B[r]);break;case 47:if(this.$=l.addConnector(s[r-2],{text:"",type:"text"}),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-1],B[r-1]),l.addConnectorMapping)l.addConnectorMapping(s[r-2],{text:"",type:"text"},B[r-4],B[r]);break;case 49:this.$=s[r].trim(),l.setAccTitle(this.$);break;case 50:case 51:this.$=s[r].trim(),l.setAccDescription(this.$);break;case 56:this.$=s[r-1]+s[r];break;case 57:this.$=s[r];break;case 58:if(l.addVertex(s[r-1][s[r-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r],B[r]),l.extendVertexMapping)l.extendVertexMapping(s[r-1][s[r-1].length-1],B[r]);if(l.addLink(s[r-3].stmt,s[r-1],s[r-2]),l.addEdgeMapping)l.addEdgeMapping(s[r-3].stmt,s[r-1],s[r-2],this._$);this.$={stmt:s[r-1],nodes:s[r-1].concat(s[r-3].nodes)};break;case 59:if(l.addLink(s[r-2].stmt,s[r],s[r-1]),l.addEdgeMapping)l.addEdgeMapping(s[r-2].stmt,s[r],s[r-1],this._$);this.$={stmt:s[r],nodes:s[r].concat(s[r-2].nodes)};break;case 60:if(l.addLink(s[r-3].stmt,s[r-1],s[r-2]),l.addEdgeMapping)l.addEdgeMapping(s[r-3].stmt,s[r-1],s[r-2],this._$);this.$={stmt:s[r-1],nodes:s[r-1].concat(s[r-3].nodes)};break;case 61:this.$={stmt:s[r-1],nodes:s[r-1]};break;case 62:if(l.addVertex(s[r-1][s[r-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r],B[r]),l.extendVertexMapping)l.extendVertexMapping(s[r-1][s[r-1].length-1],B[r]);this.$={stmt:s[r-1],nodes:s[r-1],shapeData:s[r]};break;case 63:this.$={stmt:s[r],nodes:s[r]};break;case 64:this.$=[s[r]];break;case 65:if(l.addVertex(s[r-5][s[r-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r-4],B[r-4]),l.extendVertexMapping)l.extendVertexMapping(s[r-5][s[r-5].length-1],B[r-4]);this.$=s[r-5].concat(s[r]);break;case 66:this.$=s[r-4].concat(s[r]);break;case 67:this.$=s[r];break;case 68:this.$=s[r-2],l.setClass(s[r-2],s[r]);break;case 69:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"square"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"square",this._$);break;case 70:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"doublecircle"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"doublecircle",this._$);break;case 71:if(this.$=s[r-5],l.addVertex(s[r-5],s[r-2],"circle"),l.addVertexMapping)l.addVertexMapping(s[r-5],s[r-2],"circle",this._$);break;case 72:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"ellipse"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"ellipse",this._$);break;case 73:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"stadium"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"stadium",this._$);break;case 74:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"subroutine"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"subroutine",this._$);break;case 75:if(this.$=s[r-7],l.addVertex(s[r-7],s[r-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[r-5],s[r-3]]])),l.addVertexMapping)l.addVertexMapping(s[r-7],s[r-1],"rect",this._$);break;case 76:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"cylinder"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"cylinder",this._$);break;case 77:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"round"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"round",this._$);break;case 78:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"diamond"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"diamond",this._$);break;case 79:if(this.$=s[r-5],l.addVertex(s[r-5],s[r-2],"hexagon"),l.addVertexMapping)l.addVertexMapping(s[r-5],s[r-2],"hexagon",this._$);break;case 80:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"odd"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"odd",this._$);break;case 81:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"trapezoid"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"trapezoid",this._$);break;case 82:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"inv_trapezoid"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"inv_trapezoid",this._$);break;case 83:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"lean_right"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"lean_right",this._$);break;case 84:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"lean_left"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"lean_left",this._$);break;case 85:if(this.$=s[r],l.addVertex(s[r]),l.addVertexMapping)l.addVertexMapping(s[r],void 0,void 0,this._$);break;case 86:s[r-1].text=s[r],this.$=s[r-1];break;case 87:case 88:s[r-2].text=s[r-1],this.$=s[r-2];break;case 89:this.$=s[r];break;case 90:var Y=l.destructLink(s[r],s[r-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,text:s[r-1]};break;case 91:var Y=l.destructLink(s[r],s[r-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,text:s[r-1],id:s[r-3]};break;case 92:this.$={text:s[r],type:"text"};break;case 93:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 94:this.$={text:s[r],type:"string"};break;case 95:this.$={text:s[r],type:"markdown"};break;case 96:var Y=l.destructLink(s[r]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic};break;case 97:var Y=l.destructLink(s[r]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,id:s[r-1]};break;case 98:this.$=s[r-1];break;case 99:this.$={text:s[r],type:"text"};break;case 100:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 101:this.$={text:s[r],type:"string"};break;case 102:case 119:this.$={text:s[r],type:"markdown"};break;case 116:this.$={text:s[r],type:"text"};break;case 117:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 118:this.$={text:s[r],type:"text"};break;case 120:this.$=s[r-4],l.addClass(s[r-2],s[r]);break;case 121:this.$=s[r-4],l.setClass(s[r-2],s[r]);break;case 122:case 130:this.$=s[r-1],l.setClickEvent(s[r-1],s[r]);break;case 123:case 131:this.$=s[r-3],l.setClickEvent(s[r-3],s[r-2]),l.setTooltip(s[r-3],s[r]);break;case 124:this.$=s[r-2],l.setClickEvent(s[r-2],s[r-1],s[r]);break;case 125:this.$=s[r-4],l.setClickEvent(s[r-4],s[r-3],s[r-2]),l.setTooltip(s[r-4],s[r]);break;case 126:this.$=s[r-2],l.setLink(s[r-2],s[r]);break;case 127:this.$=s[r-4],l.setLink(s[r-4],s[r-2]),l.setTooltip(s[r-4],s[r]);break;case 128:this.$=s[r-4],l.setLink(s[r-4],s[r-2],s[r]);break;case 129:this.$=s[r-6],l.setLink(s[r-6],s[r-4],s[r]),l.setTooltip(s[r-6],s[r-2]);break;case 132:this.$=s[r-1],l.setLink(s[r-1],s[r]);break;case 133:this.$=s[r-3],l.setLink(s[r-3],s[r-2]),l.setTooltip(s[r-3],s[r]);break;case 134:this.$=s[r-3],l.setLink(s[r-3],s[r-2],s[r]);break;case 135:this.$=s[r-5],l.setLink(s[r-5],s[r-4],s[r]),l.setTooltip(s[r-5],s[r-2]);break;case 136:this.$=s[r-4],l.addVertex(s[r-2],void 0,void 0,s[r]);break;case 137:this.$=s[r-4],l.updateLink([s[r-2]],s[r]);break;case 138:this.$=s[r-4],l.updateLink(s[r-2],s[r]);break;case 139:this.$=s[r-8],l.updateLinkInterpolate([s[r-6]],s[r-2]),l.updateLink([s[r-6]],s[r]);break;case 140:this.$=s[r-8],l.updateLinkInterpolate(s[r-6],s[r-2]),l.updateLink(s[r-6],s[r]);break;case 141:this.$=s[r-6],l.updateLinkInterpolate([s[r-4]],s[r]);break;case 142:this.$=s[r-6],l.updateLinkInterpolate(s[r-4],s[r]);break;case 143:case 145:this.$=[s[r]];break;case 144:case 146:s[r-2].push(s[r]),this.$=s[r-2];break;case 148:this.$=s[r-1]+s[r];break;case 196:this.$=s[r];break;case 197:this.$=s[r-1]+""+s[r];break;case 199:this.$=s[r-1]+""+s[r];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:n,10:a,11:o,13:c},{1:[3]},e(h,u,{5:7}),{4:8,8:n,10:a,11:o,13:c},{4:9,8:n,10:a,11:o,13:c},{4:10,8:n,10:a,11:o,13:c},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(h,[2,10]),e(h,[2,11]),e(h,[2,12]),e(h,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:Re,16:59,19:62},e(L,[2,3]),e(L,[2,4]),e(L,[2,5]),e(L,[2,6]),e(L,[2,7]),e(L,[2,8]),e(L,[2,9]),{8:ce,9:de,10:he,12:pe,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:ce,9:de,10:he,12:pe,22:75},{8:ce,9:de,10:he,12:pe,22:76},{8:ce,9:de,10:he,12:pe,22:77},{8:ce,9:de,10:he,12:pe,22:78},{8:ce,9:de,10:he,12:pe,22:79},{8:ce,9:de,10:he,11:[1,80],12:pe,22:81},{8:ce,9:de,10:he,12:pe,22:82},{11:[1,83]},e(L,[2,48]),{39:[1,84]},{41:[1,85]},e(L,[2,51]),e(Ze,[2,63],{19:86,34:87,11:Re,43:$e}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:et,47:tt,63:st,83:[1,96],92:it,98:[1,93],100:[1,94],104:95,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt,123:97},e(L,[2,200]),e(L,[2,201]),e(L,[2,202]),e(L,[2,203]),e(L,[2,204]),e(Xe,[2,64]),e(Xe,[2,67],{49:[1,109]}),e(oe,[2,85],{116:122,30:[1,110],47:b,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:F,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),e(be,[2,196]),e(be,[2,157]),e(be,[2,158]),e(be,[2,159]),e(be,[2,160]),e(be,[2,161]),e(be,[2,162]),e(be,[2,163]),e(be,[2,164]),e(be,[2,165]),e(be,[2,166]),e(be,[2,167]),e(h,[2,14]),e(h,[2,20]),e(h,[2,21]),{10:[1,123]},e(h,[2,23]),e(c1,[2,31],{19:124,11:Re}),e(L,[2,32]),{45:125,46:44,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(L,[2,52]),e(L,[2,53]),e(L,[2,54]),e(L,[2,55]),e(ht,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:d1,84:h1,119:Ct,122:xt},{78:[1,135],80:[1,136]},e(p1,[2,96]),e(L,[2,33]),e(L,[2,34]),e(L,[2,35]),e(L,[2,36]),e(L,[2,37]),{11:Dt,13:_t,15:vt,28:Ft,29:137,33:Vt,35:It,36:Lt,47:Bt,63:Mt,78:yt,83:f1,84:g1,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Gt,92:Ut,93:jt,94:138,108:zt,112:Wt,114:Ht,117:Yt,118:qt,119:Qt},e(pt,u,{5:165}),e(pt,u,{5:166}),{11:Dt,13:_t,15:vt,28:Ft,29:167,33:Vt,35:It,36:Lt,47:Bt,63:Mt,78:yt,83:f1,84:g1,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Gt,92:Ut,93:jt,94:138,108:zt,112:Wt,114:Ht,117:Yt,118:qt,119:Qt},e(L,[2,49]),e(L,[2,50]),e(Ze,[2,61],{47:b1}),e(Ze,[2,62],{19:169,11:Re,43:ft}),e(Xe,[2,57]),{47:b,50:171,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{105:[1,172],106:173,108:[1,174]},{47:b,50:175,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{47:b,50:176,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(X,[2,130],{123:181,11:[1,180],15:et,47:tt,63:st,92:it,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt}),e(X,[2,132],{11:[1,182]}),e(ke,[2,198]),e(ke,[2,185]),e(ke,[2,186]),e(ke,[2,187]),e(ke,[2,188]),e(ke,[2,189]),e(ke,[2,190]),e(ke,[2,191]),e(ke,[2,192]),e(ke,[2,193]),e(ke,[2,194]),e(ke,[2,195]),{47:b,50:183,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{31:184,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:192,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:194,53:[1,193],70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:195,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:196,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:197,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{112:[1,198]},{31:199,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:200,68:[1,201],70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:202,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:203,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{31:204,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},e(be,[2,197]),e(h,[2,22]),e(c1,[2,30]),e(Ze,[2,59],{34:205,19:206,11:Re,43:$e}),e(ht,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{80:[1,210],82:211,119:Ct,122:xt},e(gt,[2,92]),e(gt,[2,94]),e(gt,[2,95]),e(gt,[2,183]),e(gt,[2,184]),{79:212,82:130,83:d1,84:h1,119:Ct,122:xt},e(p1,[2,97]),{8:ce,9:de,10:he,11:Dt,12:pe,13:_t,15:vt,22:214,28:Ft,30:[1,213],33:Vt,34:215,35:It,36:Lt,43:$e,47:Bt,63:Mt,78:yt,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Gt,92:Ut,93:jt,94:216,108:zt,112:Wt,114:Ht,117:Yt,118:qt,119:Qt},e(W,[2,116]),e(W,[2,118]),e(W,[2,119]),e(W,[2,172]),e(W,[2,173]),e(W,[2,174]),e(W,[2,175]),e(W,[2,176]),e(W,[2,177]),e(W,[2,178]),e(W,[2,179]),e(W,[2,180]),e(W,[2,181]),e(W,[2,182]),e(W,[2,103]),e(W,[2,104]),e(W,[2,105]),e(W,[2,106]),e(W,[2,107]),e(W,[2,108]),e(W,[2,109]),e(W,[2,110]),e(W,[2,111]),e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,217],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,218],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{8:ce,9:de,10:he,11:Dt,12:pe,13:_t,15:vt,22:220,28:Ft,30:[1,219],33:Vt,34:221,35:It,36:Lt,43:$e,47:Bt,63:Mt,78:yt,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Gt,92:Ut,93:jt,94:216,108:zt,112:Wt,114:Ht,117:Yt,118:qt,119:Qt},{11:Re,19:222},{47:[1,223]},e(Xe,[2,56]),{11:[1,224],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{11:[1,225]},{11:[1,226],109:[1,227]},e(k1,[2,143]),{11:[1,228],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{11:[1,229],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{83:[1,230]},e(X,[2,124],{11:[1,231]}),e(X,[2,126],{11:[1,232]}),{83:[1,233]},e(ke,[2,199]),{83:[1,234],101:[1,235]},e(Xe,[2,68],{116:122,47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),{32:[1,236],70:w,85:237,119:G,120:U,121:j},e(Oe,[2,99]),e(Oe,[2,101]),e(Oe,[2,102]),e(Oe,[2,168]),e(Oe,[2,169]),e(Oe,[2,170]),e(Oe,[2,171]),{52:[1,238],70:w,85:237,119:G,120:U,121:j},{31:239,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{54:[1,240],70:w,85:237,119:G,120:U,121:j},{56:[1,241],70:w,85:237,119:G,120:U,121:j},{58:[1,242],70:w,85:237,119:G,120:U,121:j},{60:[1,243],70:w,85:237,119:G,120:U,121:j},{63:[1,244]},{67:[1,245],70:w,85:237,119:G,120:U,121:j},{69:[1,246],70:w,85:237,119:G,120:U,121:j},{31:247,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},{32:[1,248],70:w,85:237,119:G,120:U,121:j},{70:w,72:[1,249],74:[1,250],85:237,119:G,120:U,121:j},{70:w,72:[1,252],74:[1,251],85:237,119:G,120:U,121:j},e(Ze,[2,58],{19:169,11:Re,43:ft}),e(Ze,[2,60],{47:b1}),e(ht,[2,88]),e(ht,[2,87]),{65:[1,253],70:w,85:237,119:G,120:U,121:j},e(ht,[2,90]),e(gt,[2,93]),{80:[1,254],82:211,119:Ct,122:xt},{31:255,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},e(pt,u,{5:256}),{8:ce,9:de,10:he,12:pe,22:257,43:ft},e(W,[2,117]),e(L,[2,42]),e(L,[2,43]),{31:258,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},e(L,[2,46]),{8:ce,9:de,10:he,12:pe,22:259,43:ft},{46:260,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{11:Re,19:261},{11:Te,63:_e,87:ve,95:262,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:273,107:[1,274],108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:275,107:[1,276],108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{108:[1,277]},{11:Te,63:_e,87:ve,95:278,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{47:b,50:279,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(X,[2,131]),e(X,[2,133],{11:[1,283]}),e(X,[2,134]),e(oe,[2,69]),e(Oe,[2,100]),e(oe,[2,70]),{54:[1,284],70:w,85:237,119:G,120:U,121:j},e(oe,[2,77]),e(oe,[2,72]),e(oe,[2,73]),e(oe,[2,74]),{112:[1,285]},e(oe,[2,76]),e(oe,[2,78]),{69:[1,286],70:w,85:237,119:G,120:U,121:j},e(oe,[2,80]),e(oe,[2,81]),e(oe,[2,83]),e(oe,[2,82]),e(oe,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(ht,[2,91]),{32:[1,287],70:w,85:237,119:G,120:U,121:j},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,288],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(pt,u,{5:289}),{32:[1,290],70:w,85:237,119:G,120:U,121:j},e(L,[2,47]),e(Xe,[2,66]),{46:291,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,136],{109:bt}),e(m1,[2,145],{111:293,11:Te,63:_e,87:ve,108:Fe,112:Ve,113:Le,114:Be,115:ye}),e(Ce,[2,147]),e(Ce,[2,149]),e(Ce,[2,150]),e(Ce,[2,151]),e(Ce,[2,152]),e(Ce,[2,153]),e(Ce,[2,154]),e(Ce,[2,155]),e(Ce,[2,156]),e(X,[2,137],{109:bt}),{11:[1,294]},e(X,[2,138],{109:bt}),{11:[1,295]},e(k1,[2,144]),e(X,[2,120],{109:bt}),e(X,[2,121],{116:122,47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),e(X,[2,125]),e(X,[2,127],{11:[1,296]}),e(X,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:ce,9:de,10:he,12:pe,22:301,34:302,43:$e},e(L,[2,40]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,303],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{8:ce,9:de,10:he,12:pe,22:304,34:305,43:$e},e(Xe,[2,65]),{11:Te,63:_e,87:ve,108:Fe,110:306,111:264,112:Ve,113:Le,114:Be,115:ye},e(Ce,[2,148]),{15:et,47:tt,63:st,92:it,104:307,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt,123:97},{15:et,47:tt,63:st,92:it,104:308,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt,123:97},{101:[1,309]},e(X,[2,135]),e(oe,[2,71]),{31:310,70:w,83:ue,84:le,85:185,119:G,120:U,121:j},e(oe,[2,79]),e(pt,u,{5:311}),{8:ce,9:de,10:he,12:pe,22:312,43:ft},e(L,[2,41]),e(L,[2,44]),{8:ce,9:de,10:he,12:pe,22:313,43:ft},e(m1,[2,146],{111:293,11:Te,63:_e,87:ve,108:Fe,112:Ve,113:Le,114:Be,115:ye}),e(X,[2,141],{123:181,11:[1,314],15:et,47:tt,63:st,92:it,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt}),e(X,[2,142],{123:181,11:[1,315],15:et,47:tt,63:st,92:it,108:rt,109:nt,112:at,114:ot,117:ut,118:lt,119:dt}),e(X,[2,129]),{32:[1,316],70:w,85:237,119:G,120:U,121:j},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,317],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(pt,u,{5:318}),e(L,[2,45]),{11:Te,63:_e,87:ve,95:319,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:320,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},e(oe,[2,75]),e(L,[2,38]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:y,33:[1,321],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(X,[2,139],{109:bt}),e(X,[2,140],{109:bt}),e(L,[2,39])],defaultActions:{},parseError:t(function(x,T){if(T.recoverable)this.trace(x);else{var _=Error(x);throw _.hash=T,_}},"parseError"),parse:t(function(x){var T=this,_=[0],l=[],K=[null],s=[],B=this.table,r="",Y=0,A1=0,E1=0,w1=2,C1=1,N1=s.slice.call(arguments,1),ae=Object.create(this.lexer),Qe={yy:{}};for(var i1 in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,i1))Qe.yy[i1]=this.yy[i1];if(ae.setInput(x,Qe.yy),Qe.yy.lexer=ae,Qe.yy.parser=this,typeof ae.yylloc>"u")ae.yylloc={};var r1=ae.yylloc;s.push(r1);var R1=ae.options&&ae.options.ranges;if(typeof Qe.yy.parseError==="function")this.parseError=Qe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function O1(Ae){_.length=_.length-2*Ae,K.length=K.length-Ae,s.length=s.length-Ae}t(O1,"popStack");function S1(){var Ae=l.pop()||ae.lex()||C1;if(typeof Ae!=="number"){if(Ae instanceof Array)l=Ae,Ae=l.pop();Ae=T.symbols_[Ae]||Ae}return Ae}t(S1,"lex");var ge,n1,Je,me,ts,a1,kt={},Zt,we,x1,$t;while(!0){if(Je=_[_.length-1],this.defaultActions[Je])me=this.defaultActions[Je];else{if(ge===null||typeof ge>"u")ge=S1();me=B[Je]&&B[Je][ge]}if(typeof me>"u"||!me.length||!me[0]){var o1="";$t=[];for(Zt in B[Je])if(this.terminals_[Zt]&&Zt>w1)$t.push("'"+this.terminals_[Zt]+"'");if(ae.showPosition)o1="Parse error on line "+(Y+1)+`:
23
+ `+ae.showPosition()+`
24
+ Expecting `+$t.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'";else o1="Parse error on line "+(Y+1)+": Unexpected "+(ge==C1?"end of input":"'"+(this.terminals_[ge]||ge)+"'");this.parseError(o1,{text:ae.match,token:this.terminals_[ge]||ge,line:ae.yylineno,loc:r1,expected:$t})}if(me[0]instanceof Array&&me.length>1)throw Error("Parse Error: multiple actions possible at state: "+Je+", token: "+ge);switch(me[0]){case 1:if(_.push(ge),K.push(ae.yytext),s.push(ae.yylloc),_.push(me[1]),ge=null,!n1){if(A1=ae.yyleng,r=ae.yytext,Y=ae.yylineno,r1=ae.yylloc,E1>0)E1--}else ge=n1,n1=null;break;case 2:if(we=this.productions_[me[1]][1],kt.$=K[K.length-we],kt._$={first_line:s[s.length-(we||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(we||1)].first_column,last_column:s[s.length-1].last_column},R1)kt._$.range=[s[s.length-(we||1)].range[0],s[s.length-1].range[1]];if(a1=this.performAction.apply(kt,[r,A1,Y,Qe.yy,me[1],K,s].concat(N1)),typeof a1<"u")return a1;if(we)_=_.slice(0,-1*we*2),K=K.slice(0,-1*we),s=s.slice(0,-1*we);_.push(this.productions_[me[1]][0]),K.push(kt.$),s.push(kt._$),x1=B[_[_.length-2]][_[_.length-1]],_.push(x1);break;case 3:return!0}}return!0},"parse")},y1=function(){var Ge={EOF:1,parseError:t(function(T,_){if(this.yy.parser)this.yy.parser.parseError(T,_);else throw Error(T)},"parseError"),setInput:t(function(x,T){if(this.yy=T||this.yy||{},this._input=x,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 x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var T=x.match(/(?:\r\n?|\n).*/g);if(T)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),x},"input"),unput:t(function(x){var T=x.length,_=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var l=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),_.length-1)this.yylineno-=_.length-1;var K=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:_?(_.length===l.length?this.yylloc.first_column:0)+l[l.length-_.length].length-_[0].length:this.yylloc.first_column-T},this.options.ranges)this.yylloc.range=[K[0],K[0]+this.yyleng-T];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).
25
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(x){this.unput(this.match.slice(x))},"less"),pastInput:t(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var x=this.match;if(x.length<20)x+=this._input.substr(0,20-x.length);return(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var x=this.pastInput(),T=Array(x.length+1).join("-");return x+this.upcomingInput()+`
26
+ `+T+"^"},"showPosition"),test_match:t(function(x,T){var _,l,K;if(this.options.backtrack_lexer){if(K={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)K.yylloc.range=this.yylloc.range.slice(0)}if(l=x[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,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(x[0].length),this.matched+=x[0],_=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(_)return _;else if(this._backtrack){for(var s in K)this[s]=K[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var x,T,_,l;if(!this._more)this.yytext="",this.match="";var K=this._currentRules();for(var s=0;s<K.length;s++)if(_=this._input.match(this.rules[K[s]]),_&&(!T||_[0].length>T[0].length)){if(T=_,l=s,this.options.backtrack_lexer)if(x=this.test_match(_,K[s]),x!==!1)return x;else if(this._backtrack){T=!1;continue}else return!1;else if(!this.options.flex)break}if(T){if(x=this.test_match(T,K[l]),x!==!1)return x;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
27
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var T=this.next();if(T)return T;else return this.lex()},"lex"),begin:t(function(T){this.conditionStack.push(T)},"begin"),popState:t(function(){var T=this.conditionStack.length-1;if(T>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(T){if(T=this.conditionStack.length-1-Math.abs(T||0),T>=0)return this.conditionStack[T];else return"INITIAL"},"topState"),pushState:t(function(T){this.begin(T)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(T,_,l,K){var s=K;switch(l){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),_.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let B=/\n\s*/g;return _.yytext=_.yytext.replace(B,"<br/>"),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:if(T.lex.firstGraph())this.begin("dir");return 13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return Ge}();s1.lexer=y1;function Jt(){this.yy={}}return t(Jt,"Parser"),Jt.prototype=s1,s1.Parser=Jt,new Jt}();l1.parser=l1;var B1=l1,M1=Object.assign({},B1);M1.parse=(e)=>{let n=e.replace(/}[^\S\n]*\n/g,`}
28
+ `);return B1.parse(n)};var Q1=M1,J1=t((e)=>{let{theme:n,bkgColorArray:a,borderColorArray:o}=e;if(!Ne(n,o))return"";let c=Me(e.look),h=De(a),u=Ot(e.THEME_COLOR_LIMIT,o),p=t((A)=>o[A%o.length],"border"),m=t((A)=>h?`fill: ${a[A%a.length]};`:"","fill"),k="";for(let A of z1){let S=t1.get(A),y=`[data-look="${c}"].node.${v1(A)}`;k+=`
29
+
30
+ ${y} rect,
31
+ ${y} path,
32
+ ${y} polygon {
33
+ stroke: ${p(S)};
34
+ ${m(S)}
35
+ }
36
+ `}for(let A=0;A<F1(u);A++){let S=V1(A,u),y=`[data-look="${c}"][data-color-id="color-${S}"].cluster`,v=`[data-look="${c}"][data-color-id="color-${S}"].node`,z=t((V)=>`${y} ${V}, ${v} ${V}`,"rule");k+=`
37
+
38
+ ${z("rect")},
39
+ ${z("path")} {
40
+ stroke: ${p(S)};
41
+ ${m(S)}
42
+ }
43
+ `}return k},"genColor"),Z1=t((e,n)=>{let a=zn,o=a(e,"r"),c=a(e,"g"),h=a(e,"b");return Ie(o,c,h,n)},"fade"),$1=t((e)=>`${J1(e)}
44
+ .label {
45
+ font-family: ${e.fontFamily};
46
+ color: ${e.nodeTextColor||e.textColor};
47
+ }
48
+ .cluster-label text {
49
+ fill: ${e.titleColor};
50
+ }
51
+ .cluster-label span {
52
+ color: ${e.titleColor};
53
+ }
54
+ .cluster-label span p {
55
+ background-color: transparent;
56
+ }
57
+
58
+ .label text,span {
59
+ fill: ${e.nodeTextColor||e.textColor};
60
+ color: ${e.nodeTextColor||e.textColor};
61
+ }
62
+
63
+ .node rect,
64
+ .node circle,
65
+ .node ellipse,
66
+ .node polygon,
67
+ .node path {
68
+ fill: ${e.mainBkg};
69
+ stroke: ${e.nodeBorder};
70
+ stroke-width: ${e.strokeWidth??1}px;
71
+ }
72
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
73
+ text-anchor: middle;
74
+ }
75
+ .node .katex path {
76
+ fill: ${e.nodeTextColor||e.textColor};
77
+ stroke: ${e.nodeTextColor||e.textColor};
78
+ stroke-width: 1px;
79
+ }
80
+
81
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
82
+ text-align: center;
83
+ }
84
+ .node.clickable {
85
+ cursor: pointer;
86
+ }
87
+
88
+
89
+ .root .anchor path {
90
+ fill: ${e.lineColor} !important;
91
+ stroke-width: 0;
92
+ stroke: ${e.lineColor};
93
+ }
94
+
95
+ .arrowheadPath {
96
+ fill: ${e.arrowheadColor};
97
+ }
98
+
99
+ .edgePaths .path {
100
+ stroke: ${e.lineColor};
101
+ stroke-width: ${e.strokeWidth??2}px;
102
+ }
103
+
104
+ .flowchart-link {
105
+ stroke: ${e.lineColor};
106
+ fill: none;
107
+ }
108
+
109
+ .edgeLabel {
110
+ background-color: ${e.edgeLabelBackground};
111
+ p {
112
+ background-color: ${e.edgeLabelBackground};
113
+ }
114
+ rect {
115
+ opacity: 0.5;
116
+ background-color: ${e.edgeLabelBackground};
117
+ fill: ${e.edgeLabelBackground};
118
+ }
119
+ text-align: center;
120
+ }
121
+
122
+ /* For html labels only */
123
+ .labelBkg {
124
+ background-color: ${Z1(e.edgeLabelBackground,0.5)};
125
+ }
126
+
127
+ .cluster rect {
128
+ fill: ${e.clusterBkg};
129
+ stroke: ${e.clusterBorder};
130
+ stroke-width: 1px;
131
+ }
132
+
133
+ .flow-cluster rect {
134
+ fill: none;
135
+ stroke: ${e.clusterBorder};
136
+ stroke-width: 0.75px;
137
+ }
138
+
139
+ .node .collapsed-indicator {
140
+ fill: ${e.nodeBorder};
141
+ stroke: none;
142
+ stroke-width: 0;
143
+ opacity: 0.5;
144
+ }
145
+
146
+ .node .collapsed-separator {
147
+ stroke-width: 0.75px;
148
+ }
149
+
150
+ .cluster text {
151
+ fill: ${e.titleColor};
152
+ }
153
+
154
+ .cluster span {
155
+ color: ${e.titleColor};
156
+ }
157
+ /* .cluster div {
158
+ color: ${e.titleColor};
159
+ } */
160
+
161
+ div.mermaidTooltip {
162
+ position: absolute;
163
+ text-align: center;
164
+ max-width: 200px;
165
+ padding: 2px;
166
+ font-family: ${e.fontFamily};
167
+ font-size: 12px;
168
+ background: ${e.tertiaryColor};
169
+ border: 1px solid ${e.border2};
170
+ border-radius: 2px;
171
+ pointer-events: none;
172
+ z-index: 100;
173
+ }
174
+
175
+ .agentflowTitleText {
176
+ text-anchor: middle;
177
+ font-size: 18px;
178
+ fill: ${e.textColor};
179
+ }
180
+
181
+ rect.text {
182
+ fill: none;
183
+ stroke-width: 0;
184
+ }
185
+
186
+ .icon-shape, .image-shape {
187
+ background-color: ${e.edgeLabelBackground};
188
+ p {
189
+ background-color: ${e.edgeLabelBackground};
190
+ padding: 2px;
191
+ }
192
+ .label rect {
193
+ opacity: 0.5;
194
+ background-color: ${e.edgeLabelBackground};
195
+ fill: ${e.edgeLabelBackground};
196
+ }
197
+ text-align: center;
198
+ }
199
+ ${Tt()}
200
+ `,"getStyles"),es=$1,Ds={parser:Q1,get db(){return new H1},renderer:X1,styles:es,init:t((e)=>{if(e.agentflow??={},e.layout)xr({layout:e.layout});e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,xr({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};export{Ds as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import"./chunk-kasv56qe.js";import"./chunk-g7ec62te.js";import{Zc}from"./chunk-8gxgpr3n.js";import"./chunk-71tshjjr.js";import"./chunk-xa2ngtyg.js";import"./chunk-6dr6eazd.js";import"./chunk-kmhbkjqx.js";export{Zc as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{vc,Qc,yc,Jc,el,bc}from"./chunk-1a1w9rth.js";import"./chunk-zz0d7377.js";import"./chunk-e8bgrjps.js";import"./chunk-kasv56qe.js";export{Qc as applyDagreLayoutResult,vc as getEdgesToRender,Jc as measureDagreLayout,yc as prepareLayoutForDagre,bc as render,el as runDagreLayoutCore};
Binary file
Binary file
@@ -0,0 +1,36 @@
1
+ import{ie}from"./chunk-e54b48p5.js";import{t,i,F,A,q,fn,N,M,P,R,I,O,D,d,g,J,ec,Wr,Zt,Z,St,lt}from"./chunk-kasv56qe.js";import{fe}from"./chunk-fnzyprme.js";import{vn,ci}from"./chunk-aq09zt1h.js";import{et,tt}from"./chunk-9rf2smk2.js";var ct=tt(function(Qe,nt){(function(n,s){if(typeof Qe==="object"&&typeof nt==="object")nt.exports=s(ci());else if(typeof define==="function"&&define.amd)define(["cose-base"],s);else if(typeof Qe==="object")Qe.cytoscapeFcose=s(ci());else n.cytoscapeFcose=s(n.coseBase)})(Qe,function(e){return(()=>{var n={658:(T)=>{T.exports=Object.assign!=null?Object.assign.bind(Object):function(G){for(var p=arguments.length,x=Array(p>1?p-1:0),l=1;l<p;l++)x[l-1]=arguments[l];return x.forEach(function(y){Object.keys(y).forEach(function(c){return G[c]=y[c]})}),G}},548:(T,G,p)=>{var x=function(){function c(f,u){var h=[],r=!0,z=!1,b=void 0;try{for(var o=f[Symbol.iterator](),v;!(r=(v=o.next()).done);r=!0)if(h.push(v.value),u&&h.length===u)break}catch(L){z=!0,b=L}finally{try{if(!r&&o.return)o.return()}finally{if(z)throw b}}return h}return function(f,u){if(Array.isArray(f))return f;else if(Symbol.iterator in Object(f))return c(f,u);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=p(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(c){var f={};for(var u=0;u<c.length;u++)f[c[u].id()]=!0;var h=c.filter(function(r,z){if(typeof r==="number")r=z;var b=r.parent()[0];while(b!=null){if(f[b.id()])return!1;b=b.parent()[0]}return!0});return h},y.connectComponents=function(c,f,u,h){var r=new l,z=new Set,b=[],o=void 0,v=void 0,L=void 0,a=!1,S=1,Y=[],C=[],U=function(){var w=c.collection();C.push(w);var _=u[0],X=c.collection();X.merge(_).merge(_.descendants().intersection(f)),b.push(_),X.forEach(function(ee){r.push(ee),z.add(ee),w.merge(ee)});var j=function(){_=r.shift();var ue=c.collection();_.neighborhood().nodes().forEach(function(H){if(f.intersection(_.edgesWith(H)).length>0)ue.merge(H)});for(var Ae=0;Ae<ue.length;Ae++){var Re=ue[Ae];if(o=u.intersection(Re.union(Re.ancestors())),o!=null&&!z.has(o[0])){var ce=o.union(o.descendants());ce.forEach(function(H){if(r.push(H),z.add(H),w.merge(H),u.has(H))b.push(H)})}}};while(r.length!=0)j();if(w.forEach(function(ee){f.intersection(ee.connectedEdges()).forEach(function(ue){if(w.has(ue.source())&&w.has(ue.target()))w.merge(ue)})}),b.length==u.length)a=!0;if(!a||a&&S>1){v=b[0],L=v.connectedEdges().length,b.forEach(function(ee){if(ee.connectedEdges().length<L)L=ee.connectedEdges().length,v=ee}),Y.push(v.id());var oe=c.collection();oe.merge(b[0]),b.forEach(function(ee){oe.merge(ee)}),b=[],u=u.difference(oe),S++}};do U();while(!a);if(h){if(Y.length>0)h.set("dummy"+(h.size+1),Y)}return C},y.relocateComponent=function(c,f,u){if(!u.fixedNodeConstraint){var{POSITIVE_INFINITY:h,NEGATIVE_INFINITY:r,POSITIVE_INFINITY:z,NEGATIVE_INFINITY:b}=Number;if(u.quality=="draft"){var o=!0,v=!1,L=void 0;try{for(var a=f.nodeIndexes[Symbol.iterator](),S;!(o=(S=a.next()).done);o=!0){var Y=S.value,C=x(Y,2),U=C[0],B=C[1],w=u.cy.getElementById(U);if(w){var _=w.boundingBox(),X=f.xCoords[B]-_.w/2,j=f.xCoords[B]+_.w/2,oe=f.yCoords[B]-_.h/2,ee=f.yCoords[B]+_.h/2;if(X<h)h=X;if(j>r)r=j;if(oe<z)z=oe;if(ee>b)b=ee}}}catch(H){v=!0,L=H}finally{try{if(!o&&a.return)a.return()}finally{if(v)throw L}}var ue=c.x-(r+h)/2,Ae=c.y-(b+z)/2;f.xCoords=f.xCoords.map(function(H){return H+ue}),f.yCoords=f.yCoords.map(function(H){return H+Ae})}else{Object.keys(f).forEach(function(H){var ae=f[H],Ie=ae.getRect().x,be=ae.getRect().x+ae.getRect().width,Ne=ae.getRect().y,xe=ae.getRect().y+ae.getRect().height;if(Ie<h)h=Ie;if(be>r)r=be;if(Ne<z)z=Ne;if(xe>b)b=xe});var Re=c.x-(r+h)/2,ce=c.y-(b+z)/2;Object.keys(f).forEach(function(H){var ae=f[H];ae.setCenter(ae.getCenterX()+Re,ae.getCenterY()+ce)})}}},y.calcBoundingBox=function(c,f,u,h){var{MAX_SAFE_INTEGER:r,MIN_SAFE_INTEGER:z,MAX_SAFE_INTEGER:b,MIN_SAFE_INTEGER:o}=Number,v=void 0,L=void 0,a=void 0,S=void 0,Y=c.descendants().not(":parent"),C=Y.length;for(var U=0;U<C;U++){var B=Y[U];if(v=f[h.get(B.id())]-B.width()/2,L=f[h.get(B.id())]+B.width()/2,a=u[h.get(B.id())]-B.height()/2,S=u[h.get(B.id())]+B.height()/2,r>v)r=v;if(z<L)z=L;if(b>a)b=a;if(o<S)o=S}var w={};return w.topLeftX=r,w.topLeftY=b,w.width=z-r,w.height=o-b,w},y.calcParentsWithoutChildren=function(c,f){var u=c.collection();return f.nodes(":parent").forEach(function(h){var r=!1;if(h.children().forEach(function(z){if(z.css("display")!="none")r=!0}),!r)u.merge(h)}),u},T.exports=y},816:(T,G,p)=>{var x=p(548),l=p(140).CoSELayout,y=p(140).CoSENode,c=p(140).layoutBase.PointD,f=p(140).layoutBase.DimensionD,u=p(140).layoutBase.LayoutConstants,h=p(140).layoutBase.FDLayoutConstants,r=p(140).CoSEConstants,z=function(o,v){var{cy:L,eles:a}=o,S=a.nodes(),Y=a.edges(),C=void 0,U=void 0,B=void 0,w={};if(o.randomize)C=v.nodeIndexes,U=v.xCoords,B=v.yCoords;var _=function(H){return typeof H==="function"},X=function(H,ae){if(_(H))return H(ae);else return H},j=x.calcParentsWithoutChildren(L,a),oe=function ce(H,ae,Ie,be){var Ne=ae.length;for(var xe=0;xe<Ne;xe++){var V=ae[xe],Te=null;if(V.intersection(j).length==0)Te=V.children();var te=void 0,ve=V.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(V.outerWidth()!=null&&V.outerHeight()!=null)if(be.randomize)if(!V.isParent())te=H.add(new y(Ie.graphManager,new c(U[C.get(V.id())]-ve.w/2,B[C.get(V.id())]-ve.h/2),new f(parseFloat(ve.w),parseFloat(ve.h))));else{var ke=x.calcBoundingBox(V,U,B,C);if(V.intersection(j).length==0)te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new f(ke.width,ke.height)));else te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new f(parseFloat(ve.w),parseFloat(ve.h))))}else te=H.add(new y(Ie.graphManager,new c(V.position("x")-ve.w/2,V.position("y")-ve.h/2),new f(parseFloat(ve.w),parseFloat(ve.h))));else te=H.add(new y(this.graphManager));if(te.id=V.data("id"),te.nodeRepulsion=X(be.nodeRepulsion,V),te.paddingLeft=parseInt(V.css("padding")),te.paddingTop=parseInt(V.css("padding")),te.paddingRight=parseInt(V.css("padding")),te.paddingBottom=parseInt(V.css("padding")),be.nodeDimensionsIncludeLabels)te.labelWidth=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,te.labelHeight=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,te.labelPosVertical=V.css("text-valign"),te.labelPosHorizontal=V.css("text-halign");if(w[V.data("id")]=te,isNaN(te.rect.x))te.rect.x=0;if(isNaN(te.rect.y))te.rect.y=0;if(Te!=null&&Te.length>0){var $e=void 0;$e=Ie.getGraphManager().add(Ie.newGraph(),te),ce($e,Te,Ie,be)}}},ee=function(H,ae,Ie){var be=0,Ne=0;for(var xe=0;xe<Ie.length;xe++){var V=Ie[xe],Te=w[V.data("source")],te=w[V.data("target")];if(Te&&te&&Te!==te&&Te.getEdgesBetween(te).length==0){var ve=ae.add(H.newEdge(),Te,te);ve.id=V.id(),ve.idealLength=X(o.idealEdgeLength,V),ve.edgeElasticity=X(o.edgeElasticity,V),be+=ve.idealLength,Ne++}}if(o.idealEdgeLength!=null){if(Ne>0)r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=be/Ne;else if(!_(o.idealEdgeLength))r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=50;r.MIN_REPULSION_DIST=h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,r.DEFAULT_RADIAL_SEPARATION=h.DEFAULT_EDGE_LENGTH}},ue=function(H,ae){if(ae.fixedNodeConstraint)H.constraints.fixedNodeConstraint=ae.fixedNodeConstraint;if(ae.alignmentConstraint)H.constraints.alignmentConstraint=ae.alignmentConstraint;if(ae.relativePlacementConstraint)H.constraints.relativePlacementConstraint=ae.relativePlacementConstraint};if(o.nestingFactor!=null)r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)r.DEFAULT_GRAVITY_STRENGTH=h.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)r.MAX_ITERATIONS=h.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)r.DEFAULT_GRAVITY_RANGE_FACTOR=h.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)r.DEFAULT_COOLING_FACTOR_INCREMENTAL=h.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)r.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")u.QUALITY=2;else u.QUALITY=0;if(r.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=!o.randomize,r.ANIMATE=h.ANIMATE=u.ANIMATE=o.animate,r.TILE=o.tile,r.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=!0,r.PURE_INCREMENTAL=!o.randomize,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!1;if(o.step=="enforced")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!1;if(o.step=="cose")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)r.TREE_REDUCTION_ON_INCREMENTAL=!1;else r.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new l,Re=Ae.newGraphManager();return oe(Re.addRoot(),x.getTopMostNodes(S),Ae,o),ee(Ae,Re,Y),ue(Ae,o),Ae.runLayout(),w};T.exports={coseLayout:z}},212:(T,G,p)=>{var x=function(){function o(v,L){for(var a=0;a<L.length;a++){var S=L[a];if(S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S)S.writable=!0;Object.defineProperty(v,S.key,S)}}return function(v,L,a){if(L)o(v.prototype,L);if(a)o(v,a);return v}}();function l(o,v){if(!(o instanceof v))throw TypeError("Cannot call a class as a function")}var y=p(658),c=p(548),f=p(657),u=f.spectralLayout,h=p(816),r=h.coseLayout,z=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(v){return 4500},idealEdgeLength:function(v){return 50},edgeElasticity:function(v){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),b=function(){function o(v){l(this,o),this.options=y({},z,v)}return x(o,[{key:"run",value:function(){var L=this,a=this.options,{cy:S,eles:Y}=a,C=[],U=void 0,B=void 0,w=[],_=void 0,X=[];if(a.fixedNodeConstraint&&(!Array.isArray(a.fixedNodeConstraint)||a.fixedNodeConstraint.length==0))a.fixedNodeConstraint=void 0;if(a.alignmentConstraint){if(a.alignmentConstraint.vertical&&(!Array.isArray(a.alignmentConstraint.vertical)||a.alignmentConstraint.vertical.length==0))a.alignmentConstraint.vertical=void 0;if(a.alignmentConstraint.horizontal&&(!Array.isArray(a.alignmentConstraint.horizontal)||a.alignmentConstraint.horizontal.length==0))a.alignmentConstraint.horizontal=void 0}if(a.relativePlacementConstraint&&(!Array.isArray(a.relativePlacementConstraint)||a.relativePlacementConstraint.length==0))a.relativePlacementConstraint=void 0;var j=a.fixedNodeConstraint||a.alignmentConstraint||a.relativePlacementConstraint;if(j)a.tile=!1,a.packComponents=!1;var oe=void 0,ee=!1;if(S.layoutUtilities&&a.packComponents){if(oe=S.layoutUtilities("get"),!oe)oe=S.layoutUtilities();ee=!0}if(Y.nodes().length>0)if(!ee){var ue=a.eles.boundingBox();if(X.push({x:ue.x1+ue.w/2,y:ue.y1+ue.h/2}),a.randomize){var Ae=u(a);C.push(Ae)}if(a.quality=="default"||a.quality=="proof")w.push(r(a,C[0])),c.relocateComponent(X[0],w[0],a);else c.relocateComponent(X[0],C[0],a)}else{var Re=c.getTopMostNodes(a.eles.nodes());if(_=c.connectComponents(S,a.eles,Re),_.forEach(function(W){var k=W.boundingBox();X.push({x:k.x1+k.w/2,y:k.y1+k.h/2})}),a.randomize)_.forEach(function(W){a.eles=W,C.push(u(a))});if(a.quality=="default"||a.quality=="proof"){var ce=S.collection();if(a.tile){var H=new Map,ae=[],Ie=[],be=0,Ne={nodeIndexes:H,xCoords:ae,yCoords:Ie},xe=[];if(_.forEach(function(W,k){if(W.edges().length==0)W.nodes().forEach(function(pe,se){if(ce.merge(W.nodes()[se]),!pe.isParent())Ne.nodeIndexes.set(W.nodes()[se].id(),be++),Ne.xCoords.push(W.nodes()[0].position().x),Ne.yCoords.push(W.nodes()[0].position().y)}),xe.push(k)}),ce.length>1){var V=ce.boundingBox();X.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),_.push(ce),C.push(Ne);for(var Te=xe.length-1;Te>=0;Te--)_.splice(xe[Te],1),C.splice(xe[Te],1),X.splice(xe[Te],1)}}_.forEach(function(W,k){a.eles=W,w.push(r(a,C[k])),c.relocateComponent(X[k],w[k],a)})}else _.forEach(function(W,k){c.relocateComponent(X[k],C[k],a)});var te=new Set;if(_.length>1){var ve=[],ke=Y.filter(function(W){return W.css("display")=="none"});_.forEach(function(W,k){var pe=void 0;if(a.quality=="draft")pe=C[k].nodeIndexes;if(W.nodes().not(ke).length>0){var se={};se.edges=[],se.nodes=[];var me=void 0;if(W.nodes().not(ke).forEach(function(de){if(a.quality=="draft")if(!de.isParent())me=pe.get(de.id()),se.nodes.push({x:C[k].xCoords[me]-de.boundingbox().w/2,y:C[k].yCoords[me]-de.boundingbox().h/2,width:de.boundingbox().w,height:de.boundingbox().h});else{var he=c.calcBoundingBox(de,C[k].xCoords,C[k].yCoords,pe);se.nodes.push({x:he.topLeftX,y:he.topLeftY,width:he.width,height:he.height})}else if(w[k][de.id()])se.nodes.push({x:w[k][de.id()].getLeft(),y:w[k][de.id()].getTop(),width:w[k][de.id()].getWidth(),height:w[k][de.id()].getHeight()})}),W.edges().forEach(function(de){var he=de.source(),Ee=de.target();if(he.css("display")!="none"&&Ee.css("display")!="none"){if(a.quality=="draft"){var Pe=pe.get(he.id()),Je=pe.get(Ee.id()),Me=[],Ge=[];if(he.isParent()){var Ve=c.calcBoundingBox(he,C[k].xCoords,C[k].yCoords,pe);Me.push(Ve.topLeftX+Ve.width/2),Me.push(Ve.topLeftY+Ve.height/2)}else Me.push(C[k].xCoords[Pe]),Me.push(C[k].yCoords[Pe]);if(Ee.isParent()){var Xe=c.calcBoundingBox(Ee,C[k].xCoords,C[k].yCoords,pe);Ge.push(Xe.topLeftX+Xe.width/2),Ge.push(Xe.topLeftY+Xe.height/2)}else Ge.push(C[k].xCoords[Je]),Ge.push(C[k].yCoords[Je]);se.edges.push({startX:Me[0],startY:Me[1],endX:Ge[0],endY:Ge[1]})}else if(w[k][he.id()]&&w[k][Ee.id()])se.edges.push({startX:w[k][he.id()].getCenterX(),startY:w[k][he.id()].getCenterY(),endX:w[k][Ee.id()].getCenterX(),endY:w[k][Ee.id()].getCenterY()})}}),se.nodes.length>0)ve.push(se),te.add(k)}});var $e=oe.packComponents(ve,a.randomize).shifts;if(a.quality=="draft")C.forEach(function(W,k){var pe=W.xCoords.map(function(me){return me+$e[k].dx}),se=W.yCoords.map(function(me){return me+$e[k].dy});W.xCoords=pe,W.yCoords=se});else{var We=0;te.forEach(function(W){Object.keys(w[W]).forEach(function(k){var pe=w[W][k];pe.setCenter(pe.getCenterX()+$e[We].dx,pe.getCenterY()+$e[We].dy)}),We++})}}}var Ue=function(k,pe){if(a.quality=="default"||a.quality=="proof"){if(typeof k==="number")k=pe;var se=void 0,me=void 0,de=k.data("id");if(w.forEach(function(Ee){if(de in Ee)se={x:Ee[de].getRect().getCenterX(),y:Ee[de].getRect().getCenterY()},me=Ee[de]}),a.nodeDimensionsIncludeLabels){if(me.labelWidth){if(me.labelPosHorizontal=="left")se.x+=me.labelWidth/2;else if(me.labelPosHorizontal=="right")se.x-=me.labelWidth/2}if(me.labelHeight){if(me.labelPosVertical=="top")se.y+=me.labelHeight/2;else if(me.labelPosVertical=="bottom")se.y-=me.labelHeight/2}}if(se==null)se={x:k.position("x"),y:k.position("y")};return{x:se.x,y:se.y}}else{var he=void 0;if(C.forEach(function(Ee){var Pe=Ee.nodeIndexes.get(k.id());if(Pe!=null)he={x:Ee.xCoords[Pe],y:Ee.yCoords[Pe]}}),he==null)he={x:k.position("x"),y:k.position("y")};return{x:he.x,y:he.y}}};if(a.quality=="default"||a.quality=="proof"||a.randomize){var rt=c.calcParentsWithoutChildren(S,Y),He=Y.filter(function(W){return W.css("display")=="none"});if(a.eles=Y.not(He),Y.nodes().not(":parent").not(He).layoutPositions(L,a,Ue),rt.length>0)rt.forEach(function(W){W.position(Ue(W))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();T.exports=b},657:(T,G,p)=>{var x=p(548),l=p(140).layoutBase.Matrix,y=p(140).layoutBase.SVD,c=function(u){var{cy:h,eles:r}=u,z=r.nodes(),b=r.nodes(":parent"),o=new Map,v=new Map,L=new Map,a=[],S=[],Y=[],C=[],U=[],B=[],w=[],_=[],X=void 0,j=void 0,oe=1e8,ee=0.000000001,{piTol:ue,samplingType:Ae,nodeSeparation:Re}=u,ce=void 0,H=function(){var Q=0,K=0,re=!1;while(K<ce){Q=Math.floor(Math.random()*j),re=!1;for(var ne=0;ne<K;ne++)if(C[ne]==Q){re=!0;break}if(!re)C[K]=Q,K++;else continue}},ae=function(Q,K,re){var ne=[],we=0,ge=0,le=0,Le=void 0,Ce=[],De=0,Oe=1;for(var ze=0;ze<j;ze++)Ce[ze]=oe;ne[ge]=Q,Ce[Q]=0;while(ge>=we){le=ne[we++];var Ye=a[le];for(var Be=0;Be<Ye.length;Be++)if(Le=v.get(Ye[Be]),Ce[Le]==oe)Ce[Le]=Ce[le]+1,ne[++ge]=Le;B[le][K]=Ce[le]*Re}if(re){for(var Fe=0;Fe<j;Fe++)if(B[Fe][K]<U[Fe])U[Fe]=B[Fe][K];for(var Ze=0;Ze<j;Ze++)if(U[Ze]>De)De=U[Ze],Oe=Ze}return Oe},Ie=function(Q){var K=void 0;if(!Q){H();for(var re=0;re<ce;re++)ae(C[re],re,Q,!1)}else{K=Math.floor(Math.random()*j),X=K;for(var ne=0;ne<j;ne++)U[ne]=oe;for(var we=0;we<ce;we++)C[we]=K,K=ae(K,we,Q)}for(var ge=0;ge<j;ge++)for(var le=0;le<ce;le++)B[ge][le]*=B[ge][le];for(var Le=0;Le<ce;Le++)w[Le]=[];for(var Ce=0;Ce<ce;Ce++)for(var De=0;De<ce;De++)w[Ce][De]=B[C[De]][Ce]},be=function(){var Q=y.svd(w),{S:K,U:re,V:ne}=Q,we=K[0]*K[0]*K[0],ge=[];for(var le=0;le<ce;le++){ge[le]=[];for(var Le=0;Le<ce;Le++)if(ge[le][Le]=0,le==Le)ge[le][Le]=K[le]/(K[le]*K[le]+we/(K[le]*K[le]))}_=l.multMat(l.multMat(ne,ge),l.transpose(re))},Ne=function(){var Q=void 0,K=void 0,re=[],ne=[],we=[],ge=[];for(var le=0;le<j;le++)re[le]=Math.random(),ne[le]=Math.random();re=l.normalize(re),ne=l.normalize(ne);var Le=0,Ce=ee,De=ee,Oe=void 0;while(!0){Le++;for(var ze=0;ze<j;ze++)we[ze]=re[ze];if(re=l.multGamma(l.multL(l.multGamma(we),B,_)),Q=l.dotProduct(we,re),re=l.normalize(re),Ce=l.dotProduct(we,re),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Ye=0;Ye<j;Ye++)we[Ye]=re[Ye];Le=0,De=ee;while(!0){Le++;for(var Be=0;Be<j;Be++)ge[Be]=ne[Be];if(ge=l.minusOp(ge,l.multCons(we,l.dotProduct(we,ge))),ne=l.multGamma(l.multL(l.multGamma(ge),B,_)),K=l.dotProduct(ge,ne),ne=l.normalize(ne),Ce=l.dotProduct(ge,ne),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Fe=0;Fe<j;Fe++)ge[Fe]=ne[Fe];S=l.multCons(we,Math.sqrt(Math.abs(Q))),Y=l.multCons(ge,Math.sqrt(Math.abs(K)))};x.connectComponents(h,r,x.getTopMostNodes(z),o),b.forEach(function(ye){x.connectComponents(h,r,x.getTopMostNodes(ye.descendants().intersection(r)),o)});var xe=0;for(var V=0;V<z.length;V++)if(!z[V].isParent())v.set(z[V].id(),xe++);var Te=!0,te=!1,ve=void 0;try{for(var ke=o.keys()[Symbol.iterator](),$e;!(Te=($e=ke.next()).done);Te=!0){var We=$e.value;v.set(We,xe++)}}catch(ye){te=!0,ve=ye}finally{try{if(!Te&&ke.return)ke.return()}finally{if(te)throw ve}}for(var Ue=0;Ue<v.size;Ue++)a[Ue]=[];b.forEach(function(ye){var Q=ye.children().intersection(r);while(Q.nodes(":childless").length==0)Q=Q.nodes()[0].children().intersection(r);var K=0,re=Q.nodes(":childless")[0].connectedEdges().length;Q.nodes(":childless").forEach(function(ne,we){if(ne.connectedEdges().length<re)re=ne.connectedEdges().length,K=we}),L.set(ye.id(),Q.nodes(":childless")[K].id())}),z.forEach(function(ye){var Q=void 0;if(ye.isParent())Q=v.get(L.get(ye.id()));else Q=v.get(ye.id());ye.neighborhood().nodes().forEach(function(K){if(r.intersection(ye.edgesWith(K)).length>0)if(K.isParent())a[Q].push(L.get(K.id()));else a[Q].push(K.id())})});var rt=function(Q){var K=v.get(Q),re=void 0;o.get(Q).forEach(function(ne){if(h.getElementById(ne).isParent())re=L.get(ne);else re=ne;a[K].push(re),a[v.get(re)].push(Q)})},He=!0,W=!1,k=void 0;try{for(var pe=o.keys()[Symbol.iterator](),se;!(He=(se=pe.next()).done);He=!0){var me=se.value;rt(me)}}catch(ye){W=!0,k=ye}finally{try{if(!He&&pe.return)pe.return()}finally{if(W)throw k}}j=v.size;var de=void 0;if(j>2){ce=j<u.sampleSize?j:u.sampleSize;for(var he=0;he<j;he++)B[he]=[];for(var Ee=0;Ee<ce;Ee++)_[Ee]=[];if(u.quality=="draft"||u.step=="all")Ie(Ae),be(),Ne(),de={nodeIndexes:v,xCoords:S,yCoords:Y};else v.forEach(function(ye,Q){S.push(h.getElementById(Q).position("x")),Y.push(h.getElementById(Q).position("y"))}),de={nodeIndexes:v,xCoords:S,yCoords:Y};return de}else{var Pe=v.keys(),Je=h.getElementById(Pe.next().value),Me=Je.position(),Ge=Je.outerWidth();if(S.push(Me.x),Y.push(Me.y),j==2){var Ve=h.getElementById(Pe.next().value),Xe=Ve.outerWidth();S.push(Me.x+Ge/2+Xe/2+u.idealEdgeLength),Y.push(Me.y)}return de={nodeIndexes:v,xCoords:S,yCoords:Y},de}};T.exports={spectralLayout:c}},579:(T,G,p)=>{var x=p(212),l=function(c){if(!c)return;c("layout","fcose",x)};if(typeof cytoscape<"u")l(cytoscape);T.exports=l},140:(T)=>{T.exports=e}},s={};function E(T){var G=s[T];if(G!==void 0)return G.exports;var p=s[T]={exports:{}};return n[T](p,p.exports,E),p.exports}var m=E(579);return m})()})});var mt=et(ct(),1);var dt={L:"left",R:"right",T:"top",B:"bottom"},ft={L:t((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:t((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:t((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:t((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},it={L:t((e,n)=>e-n+2,"L"),R:t((e,n)=>e-2,"R"),T:t((e,n)=>e-n+2,"T"),B:t((e,n)=>e-2,"B")},It=t(function(e){if(Se(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),ut=t(function(e){let n=e;return n==="L"||n==="R"||n==="T"||n==="B"},"isArchitectureDirection"),Se=t(function(e){let n=e;return n==="L"||n==="R"},"isArchitectureDirectionX"),_e=t(function(e){let n=e;return n==="T"||n==="B"},"isArchitectureDirectionY"),st=t(function(e,n){let s=Se(e)&&_e(n),E=_e(e)&&Se(n);return s||E},"isArchitectureDirectionXY"),bt=t(function(e){let n=e[0],s=e[1],E=Se(n)&&_e(s),m=_e(n)&&Se(s);return E||m},"isArchitecturePairXY"),Nt=t(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),at=t(function(e,n){let s=`${e}${n}`;return Nt(s)?s:void 0},"getArchitectureDirectionPair"),kt=t(function([e,n],s){let E=s[0],m=s[1];if(Se(E))if(_e(m))return[e+(E==="L"?-1:1),n+(m==="T"?1:-1)];else return[e+(E==="L"?-1:1),n];else if(Se(m))return[e+(m==="L"?1:-1),n+(E==="T"?1:-1)];else return[e,n+(E==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dt=t(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),Rt=t(function(e,n){if(st(e,n))return"bend";else if(Se(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Mt=t(function(e){return e.type==="service"},"isArchitectureService"),Ft=t(function(e){return e.type==="junction"},"isArchitectureJunction"),gt=t((e,n)=>{let[s,E]=[e,n].sort();return`${JSON.stringify(s)}-${JSON.stringify(E)}`},"architectureGroupAlignmentKey"),ht=t((e)=>e.data(),"edgeData"),qe=t((e)=>e.data(),"nodeData"),$t=F.architecture,vt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=M,this.getAccTitle=P,this.setDiagramTitle=O,this.getDiagramTitle=D,this.getAccDescription=I,this.setAccDescription=R,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",N()}addService({id:e,icon:n,in:s,title:E,iconText:m}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:n,iconText:m,title:E,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(Mt)}addJunction({id:e,in:n}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(n)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:n})}getJunctions(){return[...this.nodes.values()].filter(Ft)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:n,in:s,title:E}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:n,title:E,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:n,lhsDir:s,rhsDir:E,lhsInto:m,rhsInto:T,lhsGroup:G,rhsGroup:p,title:x}){if(!ut(s))throw Error(`Invalid direction given for left hand side of edge ${e}--${n}. Expected (L,R,T,B) got ${String(s)}`);if(!ut(E))throw Error(`Invalid direction given for right hand side of edge ${e}--${n}. Expected (L,R,T,B) got ${String(E)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(n)&&!this.groups.has(n))throw Error(`The right-hand id [${n}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(e).in,y=this.nodes.get(n).in;if(G&&l&&y&&l==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(p&&l&&y&&l==y)throw Error(`The right-hand id [${n}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let c={lhsId:e,lhsDir:s,lhsInto:m,lhsGroup:G,rhsId:n,rhsDir:E,rhsInto:T,rhsGroup:p,title:x};this.edges.push(c);let f=this.nodes.get(e),u=this.nodes.get(n);if(f&&u)f.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let n=new Set;e.members.forEach((s)=>{if(this.registeredIds.get(s)!=="node")throw Error(`align ${e.direction} references [${s}], which is not a service or junction`);if(n.has(s))throw Error(`align ${e.direction} lists [${s}] more than once`);n.add(s)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,n=new Map;for(let[G,p]of this.nodes.entries()){let x=new Map;for(let l of p.edges){let y=this.getNode(l.lhsId)?.in,c=this.getNode(l.rhsId)?.in;if(y&&c&&y!==c){let f=Rt(l.lhsDir,l.rhsDir);if(f!=="bend")e.set(gt(y,c),f)}if(l.lhsId===G){let f=at(l.lhsDir,l.rhsDir);if(f)x.set(f,l.rhsId)}else{let f=at(l.rhsDir,l.lhsDir);if(f)x.set(f,l.lhsId)}}n.set(G,x)}let s=new Set,E=new Set(n.keys()),m=t((G)=>{let p=new Map([[G,[0,0]]]),x=[G];while(x.length>0){let l=x.shift();if(l){s.add(l),E.delete(l);let y=n.get(l);if(!y)throw Error(`BFS error: adjacency list for id ${l} not found. Please report this as a bug.`);let c=p.get(l);if(!c)throw Error(`BFS error: position for id ${l} not found in spatial map. Please report this as a bug.`);let[f,u]=c;y.forEach((h,r)=>{if(!s.has(h))p.set(h,kt([f,u],r)),x.push(h)})}}return p},"BFS"),T=[];while(E.size>0){let G=E.values().next().value;T.push(m(G))}this.dataStructures={adjList:n,spatialMaps:T,groupAlignments:e}}return this.dataStructures}setElementForId(e,n){this.elements.set(e,n)}getElementById(e){return this.elements.get(e)}getConfig(){return Z({...$t,...A().architecture})}getConfigField(e){return this.getConfig()[e]}},Pt=t((e,n)=>{ie(e,n),e.groups.map((s)=>n.addGroup(s)),e.services.map((s)=>n.addService({...s,type:"service"})),e.junctions.map((s)=>n.addJunction({...s,type:"junction"})),e.edges.map((s)=>n.addEdge(s)),e.alignments?.map((s)=>n.addLayoutHint({direction:s.direction,members:[...s.members]}))},"populateDb"),pt={parser:{yy:void 0},parse:t(async(e)=>{let n=await fe("architecture",e);i.debug(n);let s=pt.parser?.yy;if(!(s instanceof vt))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pt(n,s)},"parse")},Ot=t((e)=>`
2
+ .edge {
3
+ stroke-width: ${e.archEdgeWidth};
4
+ stroke: ${e.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${e.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${e.archGroupBorderColor};
15
+ stroke-width: ${e.archGroupBorderWidth};
16
+ stroke-dasharray: 8;
17
+ }
18
+ .node-icon-text {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .node-icon-text > div {
24
+ color: #fff;
25
+ margin: 1px;
26
+ height: fit-content;
27
+ text-align: center;
28
+ overflow: hidden;
29
+ display: -webkit-box;
30
+ -webkit-box-orient: vertical;
31
+ }
32
+ `,"getStyles"),Gt=Ot;function ot(e,n){if(e===0)return n();let s=Math.random,E=e>>>0;Math.random=function(){E=E+1831565813>>>0;let m=E;return m=Math.imul(m^m>>>15,m|1),m^=m+Math.imul(m^m>>>7,m|61),((m^m>>>14)>>>0)/4294967296};try{return n()}finally{Math.random=s}}t(ot,"withSeededRandom");var je=t((e)=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),Ke={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:je('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:je('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:je('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:je('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:je('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:ec,blank:{body:je("")}}},zt=t(async function(e,n,s,E){let m=s.getConfigField("padding"),T=s.getConfigField("iconSize"),G=T/2,p=T/6,x=p/2;await Promise.all(n.edges().map(async(l)=>{let{source:y,sourceDir:c,sourceArrow:f,sourceGroup:u,target:h,targetDir:r,targetArrow:z,targetGroup:b,label:o}=ht(l),{x:v,y:L}=l[0].sourceEndpoint(),{x:a,y:S}=l[0].midpoint(),{x:Y,y:C}=l[0].targetEndpoint(),U=m+4;if(u)if(Se(c))v+=c==="L"?-U:U;else L+=c==="T"?-U:U+18;if(b)if(Se(r))Y+=r==="L"?-U:U;else C+=r==="T"?-U:U+18;if(!u&&s.getNode(y)?.type==="junction")if(Se(c))v+=c==="L"?G:-G;else L+=c==="T"?G:-G;if(!b&&s.getNode(h)?.type==="junction")if(Se(r))Y+=r==="L"?G:-G;else C+=r==="T"?G:-G;if(l[0]._private.rscratch){let B=e.insert("g");if(B.insert("path").attr("d",`M ${v},${L} L ${a},${S} L${Y},${C} `).attr("class","edge").attr("id",`${E}-${St(y,h,{prefix:"L"})}`),f){let w=Se(c)?it[c](v,p):v-x,_=_e(c)?it[c](L,p):L-x;B.insert("polygon").attr("points",ft[c](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(z){let w=Se(r)?it[r](Y,p):Y-x,_=_e(r)?it[r](C,p):C-x;B.insert("polygon").attr("points",ft[r](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(o){let w=!st(c,r)?Se(c)?"X":"Y":"XY",_=0;if(w==="X")_=Math.abs(v-Y);else if(w==="Y")_=Math.abs(L-C)/1.5;else _=Math.abs(v-Y)/2;let X=B.append("g");if(await lt(X,o,{useHtmlLabels:!1,width:_,classes:"architecture-service-label"},d()),X.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),w==="X")X.attr("transform","translate("+a+", "+S+")");else if(w==="Y")X.attr("transform","translate("+a+", "+S+") rotate(-90)");else if(w==="XY"){let j=at(c,r);if(j&&bt(j)){let oe=X.node().getBoundingClientRect(),[ee,ue]=Dt(j);X.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*ee*ue*45})`);let Ae=X.node().getBoundingClientRect();X.attr("transform",`
33
+ translate(${a}, ${S-oe.height/2})
34
+ translate(${ee*Ae.width/2}, ${ue*Ae.height/2})
35
+ rotate(${-1*ee*ue*45}, 0, ${oe.height/2})
36
+ `)}}}}}))},"drawEdges"),Bt=t(async function(e,n,s,E){let T=s.getConfigField("padding")*0.75,G=s.getConfigField("fontSize"),x=s.getConfigField("iconSize")/2;await Promise.all(n.nodes().map(async(l)=>{let y=qe(l);if(y.type==="group"){let{h:c,w:f,x1:u,y1:h}=l.boundingBox(),r=e.append("rect");r.attr("id",`${E}-group-${y.id}`).attr("x",u+x).attr("y",h+x).attr("width",f).attr("height",c).attr("class","node-bkg");let z=e.append("g"),b=u,o=h;if(y.icon){let v=z.append("g");v.html(`<g>${await Zt(y.icon,{height:T,width:T,fallbackPrefix:Ke.prefix})}</g>`),v.attr("transform","translate("+(b+x+1)+", "+(o+x+1)+")"),b+=T,o+=G/2-1-2}if(y.label){let v=z.append("g");await lt(v,y.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},d()),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),v.attr("transform","translate("+(b+x+4)+", "+(o+x+2)+")")}s.setElementForId(y.id,r)}}))},"drawGroups"),_t=t(async function(e,n,s,E){let m=d();for(let T of s){let G=n.append("g"),p=e.getConfigField("iconSize");if(T.title){let c=G.append("g");await lt(c,T.title,{useHtmlLabels:!1,width:p*1.5,classes:"architecture-service-label"},m),c.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),c.attr("transform","translate("+p/2+", "+p+")")}let x=G.append("g");if(T.icon)x.html(`<g>${await Zt(T.icon,{height:p,width:p,fallbackPrefix:Ke.prefix})}</g>`);else if(T.iconText){x.html(`<g>${await Zt("blank",{height:p,width:p,fallbackPrefix:Ke.prefix})}</g>`);let u=x.append("g").append("foreignObject").attr("width",p).attr("height",p).append("div").attr("class","node-icon-text").attr("style",`height: ${p}px;`).append("div").html(q(T.iconText,m)),h=parseInt(window.getComputedStyle(u.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;u.attr("style",`-webkit-line-clamp: ${Math.floor((p-2)/h)};`)}else x.append("path").attr("class","node-bkg").attr("id",`${E}-node-${T.id}`).attr("d",`M0,${p} V5 Q0,0 5,0 H${p-5} Q${p},0 ${p},5 V${p} Z`);G.attr("id",`${E}-service-${T.id}`).attr("class","architecture-service");let{width:l,height:y}=G.node().getBBox();T.width=l,T.height=y,e.setElementForId(T.id,G)}return 0},"drawServices"),Yt=t(function(e,n,s,E){s.forEach((m)=>{let T=n.append("g"),G=e.getConfigField("iconSize");T.append("g").append("rect").attr("id",`${E}-node-${m.id}`).attr("fill-opacity","0").attr("width",G).attr("height",G),T.attr("class","architecture-junction");let{width:x,height:l}=T._groups[0][0].getBBox();T.width=x,T.height=l,e.setElementForId(m.id,T)})},"drawJunctions");Wr([{name:Ke.prefix,icons:Ke}]);vn.use(mt.default);function yt(e,n,s){e.forEach((E)=>{n.add({group:"nodes",data:{type:"service",id:E.id,icon:E.icon,label:E.title,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-service"})})}t(yt,"addServices");function Et(e,n,s){e.forEach((E)=>{n.add({group:"nodes",data:{type:"junction",id:E.id,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-junction"})})}t(Et,"addJunctions");function wt(e,n){n.nodes().map((s)=>{let E=qe(s);if(E.type==="group")return;E.x=s.position().x,E.y=s.position().y,e.getElementById(E.id).attr("transform","translate("+(E.x||0)+","+(E.y||0)+")")})}t(wt,"positionNodes");function xt(e,n){e.forEach((s)=>{n.add({group:"nodes",data:{type:"group",id:s.id,icon:s.icon,label:s.title,parent:s.in},classes:"node-group"})})}t(xt,"addGroups");function Tt(e,n){e.forEach((s)=>{let{lhsId:E,rhsId:m,lhsInto:T,lhsGroup:G,rhsInto:p,lhsDir:x,rhsDir:l,rhsGroup:y,title:c}=s,f=st(s.lhsDir,s.rhsDir)?"segments":"straight",u={id:`${E}-${m}`,label:c,source:E,sourceDir:x,sourceArrow:T,sourceGroup:G,sourceEndpoint:x==="L"?"0 50%":x==="R"?"100% 50%":x==="T"?"50% 0":"50% 100%",target:m,targetDir:l,targetArrow:p,targetGroup:y,targetEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%"};n.add({group:"edges",data:u,classes:f})})}t(Tt,"addEdges");function At(e,n,s,E=[]){let m=t((f,u)=>{let h=new Map;for(let[r,z]of f.entries()){let b=`${r}`,o=0,v=[...z.entries()];if(v.length===1){h.set(b,v[0][1]);continue}for(let L=0;L<v.length-1;L++)for(let a=L+1;a<v.length;a++){let[S,Y]=v[L],[C,U]=v[a];if(s.get(gt(S,C))===u)h.set(b,[...h.get(b)??[],...Y,...U]);else if(S==="default"||C==="default")h.set(b,[...h.get(b)??[],...Y,...U]);else{let w=`${b}-${o++}`;h.set(w,Y);let _=`${b}-${o++}`;h.set(_,U)}}}return h},"flattenAlignments"),T=n.map((f)=>{let u=new Map,h=new Map;return f.forEach(([r,z],b)=>{let o=e.getNode(b)?.in??"default",v=u.get(z)??new Map;if(!u.has(z))u.set(z,v);let L=h.get(r)??new Map;if(!h.has(r))h.set(r,L);for(let a of[v,L]){let S=a.get(o)??[];if(!a.has(o))a.set(o,S);S.push(b)}}),{horiz:[...m(u,"horizontal").values()].filter((r)=>r.length>1),vert:[...m(h,"vertical").values()].filter((r)=>r.length>1)}}),[G,p]=T.reduce(([f,u],{horiz:h,vert:r})=>[[...f,...h],[...u,...r]],[[],[]]),x=new Set;E.forEach((f)=>f.members.forEach((u)=>x.add(u)));let l=t((f)=>f.filter((u)=>!u.some((h)=>x.has(h))),"dropOverlapping"),y=l(G),c=l(p);return E.forEach((f)=>{if(f.members.length<2)return;if(f.direction==="row")y.push([...f.members]);else c.push([...f.members])}),{horizontal:y,vertical:c}}t(At,"getAlignments");function Lt(e,n,s=[]){let E=[],m=n.getConfigField("iconSize"),T=n.getConfigField("idealEdgeLengthMultiplier"),G=T*m,p=new Set;s.forEach((y)=>{for(let c=0;c<y.members.length-1;c++){let f=y.members[c],u=y.members[c+1];if(p.add(`${f}|${u}`),p.add(`${u}|${f}`),y.direction==="row")E.push({left:f,right:u,gap:G});else E.push({top:f,bottom:u,gap:G})}});let x=t((y)=>`${y[0]},${y[1]}`,"posToStr"),l=t((y)=>y.split(",").map((c)=>parseInt(c)),"strToPos");return e.forEach((y)=>{let c=new Map([...y.entries()].map(([r,z])=>[x(z),r])),f=[x([0,0])],u={},h={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(f.length>0){let r=f.shift();if(r){u[r]=1;let z=c.get(r);if(z){let b=l(r);Object.entries(h).forEach(([o,v])=>{let L=x([b[0]+v[0],b[1]+v[1]]),a=c.get(L);if(a&&!u[L]){if(f.push(L),p.has(`${z}|${a}`))return;E.push({[dt[o]]:a,[dt[It(o)]]:z,gap:T*m})}})}}}}),E}t(Lt,"getRelativeConstraints");function Ct(e,n,s,E,m,{spatialMaps:T,groupAlignments:G}){return new Promise((p)=>{let x=g("body").append("div").attr("id","cy").attr("style","display:none"),l=vn({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${m.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${m.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});x.remove(),xt(s,l),yt(e,l,m),Et(n,l,m),Tt(E,l);let y=m.getLayoutHints(),c=At(m,T,G,y),f=Lt(T,m,y),u=m.getConfigField("iconSize"),h=m.getConfigField("idealEdgeLengthMultiplier")*u,r=0.5*u,z=m.getConfigField("edgeElasticity"),b=m.getConfigField("seed"),o=l.layout({name:"fcose",quality:"proof",randomize:m.getConfigField("randomize"),nodeSeparation:m.getConfigField("nodeSeparation"),numIter:m.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){let[L,a]=v.connectedNodes(),{parent:S}=qe(L),{parent:Y}=qe(a);return S===Y?h:r},edgeElasticity(v){let[L,a]=v.connectedNodes(),{parent:S}=qe(L),{parent:Y}=qe(a);return S===Y?z:0.001},alignmentConstraint:c,relativePlacementConstraint:f});o.one("layoutstop",()=>{function v(L,a,S,Y){let C,U,{x:B,y:w}=L,{x:_,y:X}=a;U=(Y-w+(B-S)*(w-X)/(B-_))/Math.sqrt(1+Math.pow((w-X)/(B-_),2)),C=Math.sqrt(Math.pow(Y-w,2)+Math.pow(S-B,2)-Math.pow(U,2));let j=Math.sqrt(Math.pow(_-B,2)+Math.pow(X-w,2));C=C/j;let oe=(_-B)*(Y-w)-(X-w)*(S-B);switch(!0){case oe>=0:oe=1;break;case oe<0:oe=-1;break}let ee=(_-B)*(S-B)+(X-w)*(Y-w);switch(!0){case ee>=0:ee=1;break;case ee<0:ee=-1;break}return U=Math.abs(U)*oe,C=C*ee,{distances:U,weights:C}}t(v,"getSegmentWeights"),l.startBatch();for(let L of Object.values(l.edges()))if(L.data?.()){let{x:a,y:S}=L.source().position(),{x:Y,y:C}=L.target().position();if(a!==Y&&S!==C){let U=L.sourceEndpoint(),B=L.targetEndpoint(),{sourceDir:w}=ht(L),[_,X]=_e(w)?[U.x,B.y]:[B.x,U.y],{weights:j,distances:oe}=v(U,B,_,X);L.style("segment-distances",oe),L.style("segment-weights",j)}}l.endBatch(),ot(b,()=>o.run())});try{ot(b,()=>o.run())}catch(v){if(v instanceof RangeError&&v.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw v}l.ready((v)=>{i.info("Ready",v),p(l)})})}t(Ct,"layoutArchitecture");var Ut=t(async(e,n,s,E)=>{let m=E.db;m.setDiagramId(n);let T=m.getServices(),G=m.getJunctions(),p=m.getGroups(),x=m.getEdges(),l=m.getDataStructures(),y=J(n),c=y.append("g");c.attr("class","architecture-edges");let f=y.append("g");f.attr("class","architecture-services");let u=y.append("g");u.attr("class","architecture-groups"),await _t(m,f,T,n),Yt(m,f,G,n);let h=await Ct(T,G,p,x,m,l);await zt(c,h,m,n),await Bt(u,h,m,n),wt(m,h),fn(void 0,y,m.getConfigField("padding"),m.getConfigField("useMaxWidth"))},"draw"),Ht={draw:Ut},ir={parser:pt,get db(){return new vt},renderer:Ht,styles:Gt};export{ir as diagram};
Binary file
Binary file