@bkm016/basalt 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1057) hide show
  1. package/chunk-01g872ez.js +3 -0
  2. package/chunk-078td1r4.js +7 -0
  3. package/chunk-1mhv12a5.js +3 -0
  4. package/chunk-1zrht78t.js +2 -0
  5. package/chunk-2e4xds74.js +18 -0
  6. package/chunk-2hkpqjqj.js +3 -0
  7. package/chunk-2mhpgb4t.js +2 -0
  8. package/chunk-3nwqng5t.js +59 -0
  9. package/chunk-3zm1ejmh.js +3 -0
  10. package/chunk-4d9p68s9.js +3 -0
  11. package/chunk-5h96jz3p.js +3 -0
  12. package/chunk-5znfck4s.js +5 -0
  13. package/chunk-6048rq29.js +8 -0
  14. package/chunk-61zk13qr.js +3 -0
  15. package/chunk-62ty404c.js +2 -0
  16. package/chunk-6vp2nqbj.js +2 -0
  17. package/chunk-7a5derff.js +25 -0
  18. package/chunk-7qhbff72.js +5 -0
  19. package/chunk-7xw6fpx3.js +3 -0
  20. package/chunk-84rk4tew.js +2 -0
  21. package/chunk-8np9b2y8.js +3 -0
  22. package/chunk-8wb8yr7d.js +12 -0
  23. package/chunk-93b76hhg.js +11 -0
  24. package/chunk-9h05aqdd.js +25 -0
  25. package/chunk-a2jsx2ew.js +3 -0
  26. package/chunk-a2qwx6cr.js +2 -0
  27. package/chunk-a7h459z1.js +2 -0
  28. package/chunk-atjwde1c.js +2 -0
  29. package/chunk-bk20awc9.js +10 -0
  30. package/chunk-bm2jhkqt.js +3 -0
  31. package/chunk-bp4zk5ch.js +3 -0
  32. package/chunk-c5ess8kd.js +3 -0
  33. package/chunk-cj7yhgnd.js +2 -0
  34. package/chunk-cjq2bzkf.js +3 -0
  35. package/chunk-csrpxzn7.js +3 -0
  36. package/chunk-cwesdh51.js +39 -0
  37. package/chunk-drbd6485.js +3 -0
  38. package/chunk-dt594v3d.js +9 -0
  39. package/chunk-dwxp0gtf.js +4 -0
  40. package/chunk-ejdewe04.js +3 -0
  41. package/chunk-fkzk83xs.js +2 -0
  42. package/chunk-fsnc2sja.js +3 -0
  43. package/chunk-g18hxgdr.js +12 -0
  44. package/chunk-hfwy0rzt.js +10 -0
  45. package/chunk-hg5wmrfb.js +3 -0
  46. package/chunk-hvex6qjc.js +5 -0
  47. package/chunk-hw8xknv5.js +2 -0
  48. package/chunk-j91wgfzj.js +2 -0
  49. package/chunk-jyx4ynyp.js +3 -0
  50. package/chunk-jz1pavma.js +20 -0
  51. package/chunk-kjjrmfmt.js +2 -0
  52. package/chunk-kz1ja7t7.js +31 -0
  53. package/chunk-mh4s6m7e.js +2 -0
  54. package/chunk-n0g6w24y.js +3 -0
  55. package/chunk-nnp82zvz.js +5 -0
  56. package/chunk-p34keb5j.js +3 -0
  57. package/chunk-pcxaycc3.js +3560 -0
  58. package/chunk-pdwexj34.js +16 -0
  59. package/chunk-phpse938.js +3 -0
  60. package/chunk-pt14ba7d.js +15 -0
  61. package/chunk-q0hvv6bh.js +390 -0
  62. package/chunk-qd4xtknk.js +2 -0
  63. package/chunk-qfg0dr8f.js +2 -0
  64. package/chunk-qnrkh3ca.js +7 -0
  65. package/chunk-r1t5yhee.js +7 -0
  66. package/chunk-r5na5qx5.js +2 -0
  67. package/chunk-r7a6q57s.js +2 -0
  68. package/chunk-smsn4ebc.js +4 -0
  69. package/chunk-sqr8tx1m.js +471 -0
  70. package/chunk-t4twa09y.js +2 -0
  71. package/chunk-tjs6h6zk.js +4 -0
  72. package/chunk-tvbh69tm.js +3 -0
  73. package/chunk-tvv9yfqv.js +11 -0
  74. package/chunk-vbdf5psp.js +2 -0
  75. package/chunk-vr60qwyg.js +2 -0
  76. package/chunk-w509y6w6.js +2 -0
  77. package/chunk-w7n83ye7.js +7 -0
  78. package/chunk-wacjm9ww.js +3 -0
  79. package/chunk-xex050bc.js +3 -0
  80. package/chunk-y0fgbrkc.js +2 -0
  81. package/chunk-ysfpdxjy.js +3 -0
  82. package/chunk-ytsnns2n.js +2 -0
  83. package/chunk-zwgdbrbg.js +2 -0
  84. package/chunk-zz7qjanc.js +2 -0
  85. package/compiled.js +8 -8
  86. package/package.json +1 -1
  87. package/ui-test-worker.js +57 -57
  88. package/web/chunk-07q4pdkf.js +1 -0
  89. package/web/chunk-07q4pdkf.js.br +0 -0
  90. package/web/chunk-07q4pdkf.js.gz +0 -0
  91. package/web/chunk-0s237vb2.js +2 -0
  92. package/web/chunk-0s237vb2.js.br +0 -0
  93. package/web/chunk-0s237vb2.js.gz +0 -0
  94. package/web/chunk-0zbmaspt.js +24 -0
  95. package/web/chunk-0zbmaspt.js.br +0 -0
  96. package/web/chunk-0zbmaspt.js.gz +0 -0
  97. package/web/chunk-11p8z5sv.js +8 -0
  98. package/web/chunk-11p8z5sv.js.br +0 -0
  99. package/web/chunk-11p8z5sv.js.gz +0 -0
  100. package/web/chunk-1axadk7j.js +2 -0
  101. package/web/chunk-1axadk7j.js.br +0 -0
  102. package/web/chunk-1axadk7j.js.gz +0 -0
  103. package/web/chunk-1ebz6hbk.js +1 -0
  104. package/web/chunk-1ebz6hbk.js.br +0 -0
  105. package/web/chunk-1ebz6hbk.js.gz +0 -0
  106. package/web/chunk-1pg22vjr.js +38 -0
  107. package/web/chunk-1pg22vjr.js.br +0 -0
  108. package/web/chunk-1pg22vjr.js.gz +0 -0
  109. package/web/chunk-1ys90q5s.js +1 -0
  110. package/web/chunk-1ys90q5s.js.br +0 -0
  111. package/web/chunk-1ys90q5s.js.gz +0 -0
  112. package/web/chunk-1zd8azrg.js +34 -0
  113. package/web/chunk-1zd8azrg.js.br +0 -0
  114. package/web/chunk-1zd8azrg.js.gz +0 -0
  115. package/web/chunk-22rjbwxp.js +303 -0
  116. package/web/chunk-22rjbwxp.js.br +0 -0
  117. package/web/chunk-22rjbwxp.js.gz +0 -0
  118. package/web/chunk-2eg9t1mz.js +2 -0
  119. package/web/chunk-2eg9t1mz.js.br +0 -0
  120. package/web/chunk-2eg9t1mz.js.gz +0 -0
  121. package/web/chunk-2emc5sd7.js +12 -0
  122. package/web/chunk-2emc5sd7.js.br +0 -0
  123. package/web/chunk-2emc5sd7.js.gz +0 -0
  124. package/web/chunk-2gj9yydt.js +2 -0
  125. package/web/chunk-2gj9yydt.js.br +0 -0
  126. package/web/chunk-2gj9yydt.js.gz +0 -0
  127. package/web/chunk-2jvy4y1e.js +1 -0
  128. package/web/chunk-2jvy4y1e.js.br +0 -0
  129. package/web/chunk-2jvy4y1e.js.gz +0 -0
  130. package/web/chunk-2kwn5gsx.js +1 -0
  131. package/web/chunk-2kwn5gsx.js.br +0 -0
  132. package/web/chunk-2kwn5gsx.js.gz +0 -0
  133. package/web/chunk-2r84nrwk.js +99 -0
  134. package/web/chunk-2r84nrwk.js.br +0 -0
  135. package/web/chunk-2r84nrwk.js.gz +0 -0
  136. package/web/chunk-3abhxhtv.js +2 -0
  137. package/web/chunk-3abhxhtv.js.br +0 -0
  138. package/web/chunk-3abhxhtv.js.gz +0 -0
  139. package/web/chunk-3cgxntbk.js +2 -0
  140. package/web/chunk-3cgxntbk.js.br +0 -0
  141. package/web/chunk-3cgxntbk.js.gz +0 -0
  142. package/web/chunk-3g3n9pc5.js +332 -0
  143. package/web/chunk-3g3n9pc5.js.br +0 -0
  144. package/web/chunk-3g3n9pc5.js.gz +0 -0
  145. package/web/chunk-3qmpdzq2.js +1 -0
  146. package/web/chunk-3qmpdzq2.js.br +0 -0
  147. package/web/chunk-3qmpdzq2.js.gz +0 -0
  148. package/web/chunk-3rxjewe5.js +2 -0
  149. package/web/chunk-3rxjewe5.js.br +0 -0
  150. package/web/chunk-3rxjewe5.js.gz +0 -0
  151. package/web/chunk-3vh17h7n.js +62 -0
  152. package/web/chunk-3vh17h7n.js.br +0 -0
  153. package/web/chunk-3vh17h7n.js.gz +0 -0
  154. package/web/chunk-49ywdzda.js +36 -0
  155. package/web/chunk-49ywdzda.js.br +0 -0
  156. package/web/chunk-49ywdzda.js.gz +0 -0
  157. package/web/chunk-5ch8rwjz.js +2 -0
  158. package/web/chunk-5ch8rwjz.js.br +0 -0
  159. package/web/chunk-5ch8rwjz.js.gz +0 -0
  160. package/web/chunk-5k1xca5m.js +324 -0
  161. package/web/chunk-5k1xca5m.js.br +0 -0
  162. package/web/chunk-5k1xca5m.js.gz +0 -0
  163. package/web/chunk-5kcmtrrk.js +2 -0
  164. package/web/chunk-5kcmtrrk.js.br +0 -0
  165. package/web/chunk-5kcmtrrk.js.gz +0 -0
  166. package/web/chunk-5t1yv276.js +1 -0
  167. package/web/chunk-5t1yv276.js.br +0 -0
  168. package/web/chunk-5t1yv276.js.gz +0 -0
  169. package/web/chunk-612xftnp.js +1 -0
  170. package/web/chunk-612xftnp.js.br +0 -0
  171. package/web/chunk-612xftnp.js.gz +0 -0
  172. package/web/chunk-6183jmyq.js +2 -0
  173. package/web/chunk-6183jmyq.js.br +0 -0
  174. package/web/chunk-6183jmyq.js.gz +0 -0
  175. package/web/chunk-66zp24sf.js +2 -0
  176. package/web/chunk-66zp24sf.js.br +0 -0
  177. package/web/chunk-66zp24sf.js.gz +0 -0
  178. package/web/chunk-67wywbgr.js +2 -0
  179. package/web/chunk-67wywbgr.js.br +0 -0
  180. package/web/chunk-67wywbgr.js.gz +0 -0
  181. package/web/chunk-6j0d6131.js +1 -0
  182. package/web/chunk-6j0d6131.js.br +0 -0
  183. package/web/chunk-6j0d6131.js.gz +0 -0
  184. package/web/chunk-6ycpdpfj.js +107 -0
  185. package/web/chunk-6ycpdpfj.js.br +0 -0
  186. package/web/chunk-6ycpdpfj.js.gz +0 -0
  187. package/web/chunk-79tbvvqj.js +1 -0
  188. package/web/chunk-79tbvvqj.js.br +0 -0
  189. package/web/chunk-79tbvvqj.js.gz +0 -0
  190. package/web/chunk-7bcksmqx.js +2 -0
  191. package/web/chunk-7bcksmqx.js.br +0 -0
  192. package/web/chunk-7bcksmqx.js.gz +0 -0
  193. package/web/chunk-7c2zkqgd.js +89 -0
  194. package/web/chunk-7c2zkqgd.js.br +0 -0
  195. package/web/chunk-7c2zkqgd.js.gz +0 -0
  196. package/web/chunk-7ed42dqv.js +1 -0
  197. package/web/chunk-7ed42dqv.js.br +0 -0
  198. package/web/chunk-7ed42dqv.js.gz +0 -0
  199. package/web/chunk-7mzdjjha.js +1 -0
  200. package/web/chunk-7mzdjjha.js.br +0 -0
  201. package/web/chunk-7mzdjjha.js.gz +0 -0
  202. package/web/chunk-7t1sb86g.js +2 -0
  203. package/web/chunk-7t1sb86g.js.br +0 -0
  204. package/web/chunk-7t1sb86g.js.gz +0 -0
  205. package/web/chunk-7t5kzbp1.js +1 -0
  206. package/web/chunk-7t5kzbp1.js.br +0 -0
  207. package/web/chunk-7t5kzbp1.js.gz +0 -0
  208. package/web/chunk-7tmzvm05.js +2 -0
  209. package/web/chunk-7tmzvm05.js.br +0 -0
  210. package/web/chunk-7tmzvm05.js.gz +0 -0
  211. package/web/chunk-80k4k6aw.js +7 -0
  212. package/web/chunk-80k4k6aw.js.br +0 -0
  213. package/web/chunk-80k4k6aw.js.gz +0 -0
  214. package/web/chunk-8tvy5xbr.js +217 -0
  215. package/web/chunk-8tvy5xbr.js.br +0 -0
  216. package/web/chunk-8tvy5xbr.js.gz +0 -0
  217. package/web/chunk-95jr0f0q.js +139 -0
  218. package/web/chunk-95jr0f0q.js.br +0 -0
  219. package/web/chunk-95jr0f0q.js.gz +0 -0
  220. package/web/chunk-9h6ayn54.js +16 -0
  221. package/web/chunk-9h6ayn54.js.br +0 -0
  222. package/web/chunk-9h6ayn54.js.gz +0 -0
  223. package/web/chunk-9jzpxvwa.js +106 -0
  224. package/web/chunk-9jzpxvwa.js.br +0 -0
  225. package/web/chunk-9jzpxvwa.js.gz +0 -0
  226. package/web/chunk-9kx2s040.js +1 -0
  227. package/web/chunk-9kx2s040.js.br +0 -0
  228. package/web/chunk-9kx2s040.js.gz +0 -0
  229. package/web/chunk-9mdbahpr.js +2 -0
  230. package/web/chunk-9mdbahpr.js.br +0 -0
  231. package/web/chunk-9mdbahpr.js.gz +0 -0
  232. package/web/chunk-9w6mjqgp.js +1 -0
  233. package/web/chunk-9w6mjqgp.js.br +0 -0
  234. package/web/chunk-9w6mjqgp.js.gz +0 -0
  235. package/web/chunk-9xb3j03w.js +142 -0
  236. package/web/chunk-9xb3j03w.js.br +0 -0
  237. package/web/chunk-9xb3j03w.js.gz +0 -0
  238. package/web/chunk-abzt3tzj.js +1 -0
  239. package/web/chunk-abzt3tzj.js.br +0 -0
  240. package/web/chunk-abzt3tzj.js.gz +0 -0
  241. package/web/chunk-ahebswgf.js +1 -0
  242. package/web/chunk-ahebswgf.js.br +0 -0
  243. package/web/chunk-ahebswgf.js.gz +0 -0
  244. package/web/chunk-ahsw5yz2.js +2 -0
  245. package/web/chunk-ahsw5yz2.js.br +0 -0
  246. package/web/chunk-ahsw5yz2.js.gz +0 -0
  247. package/web/chunk-b21jhnc3.js +1 -0
  248. package/web/chunk-b21jhnc3.js.br +2 -0
  249. package/web/chunk-b21jhnc3.js.gz +0 -0
  250. package/web/chunk-b3cn4qmw.js +1 -0
  251. package/web/chunk-b3cn4qmw.js.br +0 -0
  252. package/web/chunk-b3cn4qmw.js.gz +0 -0
  253. package/web/chunk-b4qxx7jx.js +2 -0
  254. package/web/chunk-b4qxx7jx.js.br +0 -0
  255. package/web/chunk-b4qxx7jx.js.gz +0 -0
  256. package/web/chunk-b79d9r5v.js +98 -0
  257. package/web/chunk-b79d9r5v.js.br +0 -0
  258. package/web/chunk-b79d9r5v.js.gz +0 -0
  259. package/web/chunk-b9x115jw.css +1 -0
  260. package/web/chunk-b9x115jw.css.br +0 -0
  261. package/web/chunk-b9x115jw.css.gz +0 -0
  262. package/web/chunk-bbnamv1j.js +1 -0
  263. package/web/chunk-bbnamv1j.js.br +2 -0
  264. package/web/chunk-bbnamv1j.js.gz +0 -0
  265. package/web/chunk-bgqfryh2.js +1 -0
  266. package/web/chunk-bgqfryh2.js.br +0 -0
  267. package/web/chunk-bgqfryh2.js.gz +0 -0
  268. package/web/chunk-bjrnqvf4.js +1 -0
  269. package/web/chunk-bjrnqvf4.js.br +0 -0
  270. package/web/chunk-bjrnqvf4.js.gz +0 -0
  271. package/web/chunk-cbh6w44y.js +1 -0
  272. package/web/chunk-cbh6w44y.js.br +0 -0
  273. package/web/chunk-cbh6w44y.js.gz +0 -0
  274. package/web/chunk-d0bt1ypq.js +140 -0
  275. package/web/chunk-d0bt1ypq.js.br +0 -0
  276. package/web/chunk-d0bt1ypq.js.gz +0 -0
  277. package/web/chunk-ddfd1c5x.js +1 -0
  278. package/web/chunk-ddfd1c5x.js.br +0 -0
  279. package/web/chunk-ddfd1c5x.js.gz +0 -0
  280. package/web/chunk-deqy1rfx.js +1 -0
  281. package/web/chunk-deqy1rfx.js.br +0 -0
  282. package/web/chunk-deqy1rfx.js.gz +0 -0
  283. package/web/chunk-dk3dpdnc.js +4 -0
  284. package/web/chunk-dk3dpdnc.js.br +0 -0
  285. package/web/chunk-dk3dpdnc.js.gz +0 -0
  286. package/web/chunk-dr35dsw5.js +1 -0
  287. package/web/chunk-dr35dsw5.js.br +0 -0
  288. package/web/chunk-dr35dsw5.js.gz +0 -0
  289. package/web/chunk-drr7mqg2.js +1 -0
  290. package/web/chunk-drr7mqg2.js.br +0 -0
  291. package/web/chunk-drr7mqg2.js.gz +0 -0
  292. package/web/chunk-dy9amqbz.js +1 -0
  293. package/web/chunk-dy9amqbz.js.br +0 -0
  294. package/web/chunk-dy9amqbz.js.gz +0 -0
  295. package/web/chunk-e039ekp7.js +89 -0
  296. package/web/chunk-e039ekp7.js.br +0 -0
  297. package/web/chunk-e039ekp7.js.gz +0 -0
  298. package/web/chunk-e2e2fdwq.js +30 -0
  299. package/web/chunk-e2e2fdwq.js.br +0 -0
  300. package/web/chunk-e2e2fdwq.js.gz +0 -0
  301. package/web/chunk-e5j1v42p.js +7 -0
  302. package/web/chunk-e5j1v42p.js.br +0 -0
  303. package/web/chunk-e5j1v42p.js.gz +0 -0
  304. package/web/chunk-ef0wf92p.js +2 -0
  305. package/web/chunk-ef0wf92p.js.br +0 -0
  306. package/web/chunk-ef0wf92p.js.gz +0 -0
  307. package/web/chunk-emsyqa1e.js +1 -0
  308. package/web/chunk-emsyqa1e.js.br +0 -0
  309. package/web/chunk-emsyqa1e.js.gz +0 -0
  310. package/web/chunk-en7n9d1p.js +41 -0
  311. package/web/chunk-en7n9d1p.js.br +0 -0
  312. package/web/chunk-en7n9d1p.js.gz +0 -0
  313. package/web/chunk-ez4yt1s1.js +1 -0
  314. package/web/chunk-ez4yt1s1.js.br +0 -0
  315. package/web/chunk-ez4yt1s1.js.gz +0 -0
  316. package/web/chunk-f620k3hk.js +1 -0
  317. package/web/chunk-f620k3hk.js.br +0 -0
  318. package/web/chunk-f620k3hk.js.gz +0 -0
  319. package/web/chunk-fe2hpamc.js +200 -0
  320. package/web/chunk-fe2hpamc.js.br +0 -0
  321. package/web/chunk-fe2hpamc.js.gz +0 -0
  322. package/web/chunk-fm7saxzr.js +1 -0
  323. package/web/chunk-fm7saxzr.js.br +0 -0
  324. package/web/chunk-fm7saxzr.js.gz +0 -0
  325. package/web/chunk-fz5d3ayq.js +2 -0
  326. package/web/chunk-fz5d3ayq.js.br +0 -0
  327. package/web/chunk-fz5d3ayq.js.gz +0 -0
  328. package/web/chunk-gb2tkfv0.js +1 -0
  329. package/web/chunk-gb2tkfv0.js.br +0 -0
  330. package/web/chunk-gb2tkfv0.js.gz +0 -0
  331. package/web/chunk-gc1ypgy4.js +1 -0
  332. package/web/chunk-gc1ypgy4.js.br +0 -0
  333. package/web/chunk-gc1ypgy4.js.gz +0 -0
  334. package/web/chunk-h23pczjh.js +40 -0
  335. package/web/chunk-h23pczjh.js.br +0 -0
  336. package/web/chunk-h23pczjh.js.gz +0 -0
  337. package/web/chunk-h2sttxfn.js +1 -0
  338. package/web/chunk-h2sttxfn.js.br +2 -0
  339. package/web/chunk-h2sttxfn.js.gz +0 -0
  340. package/web/chunk-h5m9ggsm.js +2 -0
  341. package/web/chunk-h5m9ggsm.js.br +0 -0
  342. package/web/chunk-h5m9ggsm.js.gz +0 -0
  343. package/web/chunk-h5zc1hw5.js +1 -0
  344. package/web/chunk-h5zc1hw5.js.br +0 -0
  345. package/web/chunk-h5zc1hw5.js.gz +0 -0
  346. package/web/chunk-hkg6bts9.js +1 -0
  347. package/web/chunk-hkg6bts9.js.br +0 -0
  348. package/web/chunk-hkg6bts9.js.gz +0 -0
  349. package/web/chunk-hncdpeer.js +120 -0
  350. package/web/chunk-hncdpeer.js.br +0 -0
  351. package/web/chunk-hncdpeer.js.gz +0 -0
  352. package/web/chunk-j40wechd.js +2 -0
  353. package/web/chunk-j40wechd.js.br +0 -0
  354. package/web/chunk-j40wechd.js.gz +0 -0
  355. package/web/chunk-jddmse74.js +169 -0
  356. package/web/chunk-jddmse74.js.br +0 -0
  357. package/web/chunk-jddmse74.js.gz +0 -0
  358. package/web/chunk-jdvdg38q.js +3 -0
  359. package/web/chunk-jdvdg38q.js.br +0 -0
  360. package/web/chunk-jdvdg38q.js.gz +0 -0
  361. package/web/chunk-jf6q93m9.js +1 -0
  362. package/web/chunk-jf6q93m9.js.br +0 -0
  363. package/web/chunk-jf6q93m9.js.gz +0 -0
  364. package/web/chunk-jfd1gybx.js +39 -0
  365. package/web/chunk-jfd1gybx.js.br +0 -0
  366. package/web/chunk-jfd1gybx.js.gz +0 -0
  367. package/web/chunk-jkgkt722.js +1 -0
  368. package/web/chunk-jkgkt722.js.br +0 -0
  369. package/web/chunk-jkgkt722.js.gz +0 -0
  370. package/web/chunk-k427fwgp.js +1 -0
  371. package/web/chunk-k427fwgp.js.br +0 -0
  372. package/web/chunk-k427fwgp.js.gz +0 -0
  373. package/web/chunk-k8pezbya.js +2 -0
  374. package/web/chunk-k8pezbya.js.br +3 -0
  375. package/web/chunk-k8pezbya.js.gz +0 -0
  376. package/web/chunk-k9t941fj.js +1 -0
  377. package/web/chunk-k9t941fj.js.br +0 -0
  378. package/web/chunk-k9t941fj.js.gz +0 -0
  379. package/web/chunk-kkzwvnft.js +1 -0
  380. package/web/chunk-kkzwvnft.js.br +0 -0
  381. package/web/chunk-kkzwvnft.js.gz +0 -0
  382. package/web/chunk-kpm8gp4z.js +292 -0
  383. package/web/chunk-kpm8gp4z.js.br +0 -0
  384. package/web/chunk-kpm8gp4z.js.gz +0 -0
  385. package/web/chunk-kqyk2an3.js +214 -0
  386. package/web/chunk-kqyk2an3.js.br +0 -0
  387. package/web/chunk-kqyk2an3.js.gz +0 -0
  388. package/web/chunk-m3gryxba.js +2 -0
  389. package/web/chunk-m3gryxba.js.br +0 -0
  390. package/web/chunk-m3gryxba.js.gz +0 -0
  391. package/web/chunk-m8h3c5x3.js +1 -0
  392. package/web/chunk-m8h3c5x3.js.br +0 -0
  393. package/web/chunk-m8h3c5x3.js.gz +0 -0
  394. package/web/chunk-mb7sr4tf.js +55 -0
  395. package/web/chunk-mb7sr4tf.js.br +0 -0
  396. package/web/chunk-mb7sr4tf.js.gz +0 -0
  397. package/web/chunk-meqcd10n.js +1 -0
  398. package/web/chunk-meqcd10n.js.br +0 -0
  399. package/web/chunk-meqcd10n.js.gz +0 -0
  400. package/web/chunk-msrq7vsz.js +7 -0
  401. package/web/chunk-msrq7vsz.js.br +0 -0
  402. package/web/chunk-msrq7vsz.js.gz +0 -0
  403. package/web/chunk-myhtb5ps.js +2 -0
  404. package/web/chunk-myhtb5ps.js.br +0 -0
  405. package/web/chunk-myhtb5ps.js.gz +0 -0
  406. package/web/chunk-n1n55yt8.js +84 -0
  407. package/web/chunk-n1n55yt8.js.br +0 -0
  408. package/web/chunk-n1n55yt8.js.gz +0 -0
  409. package/web/chunk-nmgy1mrz.js +1 -0
  410. package/web/chunk-nmgy1mrz.js.br +0 -0
  411. package/web/chunk-nmgy1mrz.js.gz +0 -0
  412. package/web/chunk-nmnyaawa.js +24 -0
  413. package/web/chunk-nmnyaawa.js.br +0 -0
  414. package/web/chunk-nmnyaawa.js.gz +0 -0
  415. package/web/chunk-nwepnbvn.js +70 -0
  416. package/web/chunk-nwepnbvn.js.br +0 -0
  417. package/web/chunk-nwepnbvn.js.gz +0 -0
  418. package/web/chunk-p2cmfhpz.js +2 -0
  419. package/web/chunk-p2cmfhpz.js.br +0 -0
  420. package/web/chunk-p2cmfhpz.js.gz +0 -0
  421. package/web/chunk-pac9nyhp.js +2 -0
  422. package/web/chunk-pac9nyhp.js.br +0 -0
  423. package/web/chunk-pac9nyhp.js.gz +0 -0
  424. package/web/chunk-pdt40dj7.js +1 -0
  425. package/web/chunk-pdt40dj7.js.br +2 -0
  426. package/web/chunk-pdt40dj7.js.gz +0 -0
  427. package/web/chunk-phs38wt7.js +2 -0
  428. package/web/chunk-phs38wt7.js.br +0 -0
  429. package/web/chunk-phs38wt7.js.gz +0 -0
  430. package/web/chunk-prc7b9xh.js +1 -0
  431. package/web/chunk-prc7b9xh.js.br +0 -0
  432. package/web/chunk-prc7b9xh.js.gz +0 -0
  433. package/web/chunk-q1e80chw.js +1 -0
  434. package/web/chunk-q1e80chw.js.br +2 -0
  435. package/web/chunk-q1e80chw.js.gz +0 -0
  436. package/web/chunk-q6aqg79d.js +2 -0
  437. package/web/chunk-q6aqg79d.js.br +0 -0
  438. package/web/chunk-q6aqg79d.js.gz +0 -0
  439. package/web/chunk-q6sv3fhe.js +2 -0
  440. package/web/chunk-q6sv3fhe.js.br +0 -0
  441. package/web/chunk-q6sv3fhe.js.gz +0 -0
  442. package/web/chunk-rbd2n2mr.js +1 -0
  443. package/web/chunk-rbd2n2mr.js.br +0 -0
  444. package/web/chunk-rbd2n2mr.js.gz +0 -0
  445. package/web/chunk-rbh0yrp6.js +1 -0
  446. package/web/chunk-rbh0yrp6.js.br +0 -0
  447. package/web/chunk-rbh0yrp6.js.gz +0 -0
  448. package/web/chunk-rdarpbhd.js +2 -0
  449. package/web/chunk-rdarpbhd.js.br +0 -0
  450. package/web/chunk-rdarpbhd.js.gz +0 -0
  451. package/web/chunk-rf93p28v.js +1 -0
  452. package/web/chunk-rf93p28v.js.br +0 -0
  453. package/web/chunk-rf93p28v.js.gz +0 -0
  454. package/web/chunk-rjvdk0s6.js +1 -0
  455. package/web/chunk-rjvdk0s6.js.br +0 -0
  456. package/web/chunk-rjvdk0s6.js.gz +0 -0
  457. package/web/chunk-rvmk483c.js +1 -0
  458. package/web/chunk-rvmk483c.js.br +0 -0
  459. package/web/chunk-rvmk483c.js.gz +0 -0
  460. package/web/chunk-s99vfrrz.js +1 -0
  461. package/web/chunk-s99vfrrz.js.br +0 -0
  462. package/web/chunk-s99vfrrz.js.gz +0 -0
  463. package/web/chunk-saem11tv.js +2 -0
  464. package/web/chunk-saem11tv.js.br +0 -0
  465. package/web/chunk-saem11tv.js.gz +0 -0
  466. package/web/chunk-scv8t4m6.js +1 -0
  467. package/web/chunk-scv8t4m6.js.br +0 -0
  468. package/web/chunk-scv8t4m6.js.gz +0 -0
  469. package/web/chunk-stsmcqxe.js +1 -0
  470. package/web/chunk-stsmcqxe.js.br +0 -0
  471. package/web/chunk-stsmcqxe.js.gz +0 -0
  472. package/web/chunk-svaq7f3c.js +1134 -0
  473. package/web/chunk-svaq7f3c.js.br +0 -0
  474. package/web/chunk-svaq7f3c.js.gz +0 -0
  475. package/web/chunk-sy099zt8.js +1 -0
  476. package/web/chunk-sy099zt8.js.br +0 -0
  477. package/web/chunk-sy099zt8.js.gz +0 -0
  478. package/web/chunk-thqrbjwn.js +1 -0
  479. package/web/chunk-thqrbjwn.js.br +2 -0
  480. package/web/chunk-thqrbjwn.js.gz +0 -0
  481. package/web/chunk-ty1m1k6b.js +1 -0
  482. package/web/chunk-ty1m1k6b.js.br +0 -0
  483. package/web/chunk-ty1m1k6b.js.gz +0 -0
  484. package/web/chunk-w54qcqk3.js +1 -0
  485. package/web/chunk-w54qcqk3.js.br +0 -0
  486. package/web/chunk-w54qcqk3.js.gz +0 -0
  487. package/web/chunk-wgf4paqc.js +1 -0
  488. package/web/chunk-wgf4paqc.js.br +0 -0
  489. package/web/chunk-wgf4paqc.js.gz +0 -0
  490. package/web/chunk-ww5c1dmz.js +1 -0
  491. package/web/chunk-ww5c1dmz.js.br +0 -0
  492. package/web/chunk-ww5c1dmz.js.gz +0 -0
  493. package/web/chunk-x5m7phbb.js +1 -0
  494. package/web/chunk-x5m7phbb.js.br +0 -0
  495. package/web/chunk-x5m7phbb.js.gz +0 -0
  496. package/web/chunk-x9wzj52f.js +2 -0
  497. package/web/chunk-x9wzj52f.js.br +0 -0
  498. package/web/chunk-x9wzj52f.js.gz +0 -0
  499. package/web/chunk-xgfam7bx.js +1 -0
  500. package/web/chunk-xgfam7bx.js.br +0 -0
  501. package/web/chunk-xgfam7bx.js.gz +0 -0
  502. package/web/chunk-xnn07hr4.js +21 -0
  503. package/web/chunk-xnn07hr4.js.br +0 -0
  504. package/web/chunk-xnn07hr4.js.gz +0 -0
  505. package/web/chunk-xreg1e03.js +78 -0
  506. package/web/chunk-xreg1e03.js.br +0 -0
  507. package/web/chunk-xreg1e03.js.gz +0 -0
  508. package/web/chunk-xsxd3wsv.js +4 -0
  509. package/web/chunk-xsxd3wsv.js.br +0 -0
  510. package/web/chunk-xsxd3wsv.js.gz +0 -0
  511. package/web/chunk-y7jebh1j.js +1 -0
  512. package/web/chunk-y7jebh1j.js.br +0 -0
  513. package/web/chunk-y7jebh1j.js.gz +0 -0
  514. package/web/chunk-yhn2mwnb.js +291 -0
  515. package/web/chunk-yhn2mwnb.js.br +0 -0
  516. package/web/chunk-yhn2mwnb.js.gz +0 -0
  517. package/web/chunk-yj85fg74.js +1 -0
  518. package/web/chunk-yj85fg74.js.br +0 -0
  519. package/web/chunk-yj85fg74.js.gz +0 -0
  520. package/web/chunk-yjvjzayn.js +1 -0
  521. package/web/chunk-yjvjzayn.js.br +0 -0
  522. package/web/chunk-yjvjzayn.js.gz +0 -0
  523. package/web/chunk-yqwvedf5.js +370 -0
  524. package/web/chunk-yqwvedf5.js.br +0 -0
  525. package/web/chunk-yqwvedf5.js.gz +0 -0
  526. package/web/chunk-z3tr221x.js +1 -0
  527. package/web/chunk-z3tr221x.js.br +0 -0
  528. package/web/chunk-z3tr221x.js.gz +0 -0
  529. package/web/chunk-z4n3tx0q.js +1 -0
  530. package/web/chunk-z4n3tx0q.js.br +0 -0
  531. package/web/chunk-z4n3tx0q.js.gz +0 -0
  532. package/web/index.html +1 -1
  533. package/web/index.html.br +0 -0
  534. package/web/index.html.gz +0 -0
  535. package/worker.js +1 -1
  536. package/chunk-09tdbx7b.js +0 -3
  537. package/chunk-0b2brwjc.js +0 -3
  538. package/chunk-0rsyawz5.js +0 -8
  539. package/chunk-16yz5ebn.js +0 -2
  540. package/chunk-1kdd7xry.js +0 -2
  541. package/chunk-1td9hjn9.js +0 -25
  542. package/chunk-1xjkzzyh.js +0 -3
  543. package/chunk-38932kzp.js +0 -3
  544. package/chunk-3qxq264t.js +0 -2
  545. package/chunk-3s8rpc1w.js +0 -3
  546. package/chunk-4fbj3k59.js +0 -3
  547. package/chunk-5415fcz7.js +0 -10
  548. package/chunk-5kezbmgw.js +0 -3
  549. package/chunk-5m51j40e.js +0 -7
  550. package/chunk-5mt8xxex.js +0 -3
  551. package/chunk-5ph58x6w.js +0 -39
  552. package/chunk-6jdqe7sz.js +0 -4
  553. package/chunk-6ztgzx9s.js +0 -2
  554. package/chunk-7dzcdpdt.js +0 -2
  555. package/chunk-82djd5fk.js +0 -3
  556. package/chunk-86vhsd3y.js +0 -31
  557. package/chunk-8rfv9mm1.js +0 -15
  558. package/chunk-8tvz5ht1.js +0 -16
  559. package/chunk-9pjmwz01.js +0 -2
  560. package/chunk-9qzyn98b.js +0 -3
  561. package/chunk-9w1m9av8.js +0 -11
  562. package/chunk-9wjd9bxm.js +0 -2
  563. package/chunk-a3fpx924.js +0 -3
  564. package/chunk-b49005n2.js +0 -471
  565. package/chunk-bdz2561d.js +0 -2
  566. package/chunk-bkvhwgeb.js +0 -3
  567. package/chunk-bp9tfav3.js +0 -2
  568. package/chunk-cc9htxzx.js +0 -3557
  569. package/chunk-cr0tqn6j.js +0 -3
  570. package/chunk-cv5kdnsw.js +0 -3
  571. package/chunk-d79s1s4t.js +0 -25
  572. package/chunk-e0ytnnwt.js +0 -3
  573. package/chunk-e2m8ap8f.js +0 -3
  574. package/chunk-ec6bzt7w.js +0 -20
  575. package/chunk-enmrpjpt.js +0 -3
  576. package/chunk-eq54cmsa.js +0 -4
  577. package/chunk-fj56fznw.js +0 -3
  578. package/chunk-g54nd4fd.js +0 -5
  579. package/chunk-g8p5c4vx.js +0 -7
  580. package/chunk-g9bemxpt.js +0 -3
  581. package/chunk-gs5aebwh.js +0 -2
  582. package/chunk-hk5p2eee.js +0 -12
  583. package/chunk-jerp4pj5.js +0 -2
  584. package/chunk-jsvqp20s.js +0 -2
  585. package/chunk-k9x1r69s.js +0 -18
  586. package/chunk-kb526065.js +0 -2
  587. package/chunk-kpw1qa2n.js +0 -11
  588. package/chunk-mbvy2t23.js +0 -2
  589. package/chunk-mmnsdje8.js +0 -390
  590. package/chunk-nffwakxq.js +0 -2
  591. package/chunk-nfj8sj53.js +0 -2
  592. package/chunk-pzwaz2ew.js +0 -5
  593. package/chunk-qtgc74er.js +0 -5
  594. package/chunk-qtrd33pp.js +0 -7
  595. package/chunk-rbk6jxcr.js +0 -2
  596. package/chunk-rpbxbb92.js +0 -10
  597. package/chunk-rx812nrp.js +0 -3
  598. package/chunk-scy1p7x2.js +0 -9
  599. package/chunk-sfgw0vmt.js +0 -2
  600. package/chunk-t3mq64c8.js +0 -3
  601. package/chunk-tmefdwxy.js +0 -2
  602. package/chunk-tvg54x0x.js +0 -2
  603. package/chunk-v878x8zr.js +0 -7
  604. package/chunk-v89f2k9b.js +0 -2
  605. package/chunk-vhe16b65.js +0 -3
  606. package/chunk-vzrmdaba.js +0 -2
  607. package/chunk-w3skxmvx.js +0 -3
  608. package/chunk-w4kasz4j.js +0 -12
  609. package/chunk-w4zkgn1c.js +0 -4
  610. package/chunk-we5emq6f.js +0 -2
  611. package/chunk-x0dcabw6.js +0 -3
  612. package/chunk-xtj7b70y.js +0 -5
  613. package/chunk-xwew53k7.js +0 -59
  614. package/chunk-xyhr89y5.js +0 -3
  615. package/chunk-yce46csn.js +0 -2
  616. package/chunk-yetcb1z9.js +0 -3
  617. package/chunk-ypmpf75h.js +0 -2
  618. package/chunk-zkjnt298.js +0 -3
  619. package/chunk-zz48zvk5.js +0 -2
  620. package/web/chunk-04c54f1s.js +0 -1
  621. package/web/chunk-04c54f1s.js.br +0 -2
  622. package/web/chunk-04c54f1s.js.gz +0 -0
  623. package/web/chunk-04m1cb8w.js +0 -1
  624. package/web/chunk-04m1cb8w.js.br +0 -0
  625. package/web/chunk-04m1cb8w.js.gz +0 -0
  626. package/web/chunk-08z6mkgz.js +0 -40
  627. package/web/chunk-08z6mkgz.js.br +0 -0
  628. package/web/chunk-08z6mkgz.js.gz +0 -0
  629. package/web/chunk-0g9m3rpw.js +0 -55
  630. package/web/chunk-0g9m3rpw.js.br +0 -0
  631. package/web/chunk-0g9m3rpw.js.gz +0 -0
  632. package/web/chunk-0jccrdw3.js +0 -2
  633. package/web/chunk-0jccrdw3.js.br +0 -0
  634. package/web/chunk-0jccrdw3.js.gz +0 -0
  635. package/web/chunk-0rvx1z2b.js +0 -1
  636. package/web/chunk-0rvx1z2b.js.br +0 -0
  637. package/web/chunk-0rvx1z2b.js.gz +0 -0
  638. package/web/chunk-0vweazdh.js +0 -12
  639. package/web/chunk-0vweazdh.js.br +0 -0
  640. package/web/chunk-0vweazdh.js.gz +0 -0
  641. package/web/chunk-0wqmwnd8.js +0 -2
  642. package/web/chunk-0wqmwnd8.js.br +0 -0
  643. package/web/chunk-0wqmwnd8.js.gz +0 -0
  644. package/web/chunk-0z10aqp1.js +0 -2
  645. package/web/chunk-0z10aqp1.js.br +0 -0
  646. package/web/chunk-0z10aqp1.js.gz +0 -0
  647. package/web/chunk-12vcrj7y.js +0 -1
  648. package/web/chunk-12vcrj7y.js.br +0 -0
  649. package/web/chunk-12vcrj7y.js.gz +0 -0
  650. package/web/chunk-1vtf555r.js +0 -1
  651. package/web/chunk-1vtf555r.js.br +0 -0
  652. package/web/chunk-1vtf555r.js.gz +0 -0
  653. package/web/chunk-29z0ft67.js +0 -370
  654. package/web/chunk-29z0ft67.js.br +0 -0
  655. package/web/chunk-29z0ft67.js.gz +0 -0
  656. package/web/chunk-2q3m4btb.js +0 -1
  657. package/web/chunk-2q3m4btb.js.br +0 -0
  658. package/web/chunk-2q3m4btb.js.gz +0 -0
  659. package/web/chunk-2s6fhjjc.js +0 -1134
  660. package/web/chunk-2s6fhjjc.js.br +0 -0
  661. package/web/chunk-2s6fhjjc.js.gz +0 -0
  662. package/web/chunk-2vdx4ykn.js +0 -139
  663. package/web/chunk-2vdx4ykn.js.br +0 -0
  664. package/web/chunk-2vdx4ykn.js.gz +0 -0
  665. package/web/chunk-2zgqe8r7.js +0 -1
  666. package/web/chunk-2zgqe8r7.js.br +0 -0
  667. package/web/chunk-2zgqe8r7.js.gz +0 -0
  668. package/web/chunk-366a11ec.js +0 -1
  669. package/web/chunk-366a11ec.js.br +0 -0
  670. package/web/chunk-366a11ec.js.gz +0 -0
  671. package/web/chunk-3kqpmg83.js +0 -78
  672. package/web/chunk-3kqpmg83.js.br +0 -0
  673. package/web/chunk-3kqpmg83.js.gz +0 -0
  674. package/web/chunk-3rmqxna0.js +0 -1
  675. package/web/chunk-3rmqxna0.js.br +0 -0
  676. package/web/chunk-3rmqxna0.js.gz +0 -0
  677. package/web/chunk-3xmv2349.js +0 -21
  678. package/web/chunk-3xmv2349.js.br +0 -0
  679. package/web/chunk-3xmv2349.js.gz +0 -0
  680. package/web/chunk-46cdys11.js +0 -34
  681. package/web/chunk-46cdys11.js.br +0 -0
  682. package/web/chunk-46cdys11.js.gz +0 -0
  683. package/web/chunk-46mw23f0.js +0 -8
  684. package/web/chunk-46mw23f0.js.br +0 -0
  685. package/web/chunk-46mw23f0.js.gz +0 -0
  686. package/web/chunk-4mypk63p.js +0 -2
  687. package/web/chunk-4mypk63p.js.br +0 -0
  688. package/web/chunk-4mypk63p.js.gz +0 -0
  689. package/web/chunk-4r0dvjrr.js +0 -2
  690. package/web/chunk-4r0dvjrr.js.br +0 -0
  691. package/web/chunk-4r0dvjrr.js.gz +0 -0
  692. package/web/chunk-4v6m84pg.js +0 -3
  693. package/web/chunk-4v6m84pg.js.br +0 -0
  694. package/web/chunk-4v6m84pg.js.gz +0 -0
  695. package/web/chunk-4wd9r73y.js +0 -1
  696. package/web/chunk-4wd9r73y.js.br +0 -0
  697. package/web/chunk-4wd9r73y.js.gz +0 -0
  698. package/web/chunk-4ye31s2w.js +0 -1
  699. package/web/chunk-4ye31s2w.js.br +0 -4
  700. package/web/chunk-4ye31s2w.js.gz +0 -0
  701. package/web/chunk-52tt9qt4.js +0 -2
  702. package/web/chunk-52tt9qt4.js.br +0 -0
  703. package/web/chunk-52tt9qt4.js.gz +0 -0
  704. package/web/chunk-5cp4n5ck.js +0 -2
  705. package/web/chunk-5cp4n5ck.js.br +0 -0
  706. package/web/chunk-5cp4n5ck.js.gz +0 -0
  707. package/web/chunk-5kavsn22.js +0 -4
  708. package/web/chunk-5kavsn22.js.br +0 -0
  709. package/web/chunk-5kavsn22.js.gz +0 -0
  710. package/web/chunk-5q2h4tg8.js +0 -2
  711. package/web/chunk-5q2h4tg8.js.br +0 -4
  712. package/web/chunk-5q2h4tg8.js.gz +0 -0
  713. package/web/chunk-5tbk6dx6.js +0 -292
  714. package/web/chunk-5tbk6dx6.js.br +0 -0
  715. package/web/chunk-5tbk6dx6.js.gz +0 -0
  716. package/web/chunk-5yb0sm1r.js +0 -1
  717. package/web/chunk-5yb0sm1r.js.br +0 -0
  718. package/web/chunk-5yb0sm1r.js.gz +0 -0
  719. package/web/chunk-5yz46tjw.js +0 -2
  720. package/web/chunk-5yz46tjw.js.br +0 -0
  721. package/web/chunk-5yz46tjw.js.gz +0 -0
  722. package/web/chunk-619a8t38.js +0 -1
  723. package/web/chunk-619a8t38.js.br +0 -0
  724. package/web/chunk-619a8t38.js.gz +0 -0
  725. package/web/chunk-6areryyn.js +0 -2
  726. package/web/chunk-6areryyn.js.br +0 -0
  727. package/web/chunk-6areryyn.js.gz +0 -0
  728. package/web/chunk-6ms78sx5.js +0 -1
  729. package/web/chunk-6ms78sx5.js.br +0 -0
  730. package/web/chunk-6ms78sx5.js.gz +0 -0
  731. package/web/chunk-6ts9mtye.js +0 -2
  732. package/web/chunk-6ts9mtye.js.br +0 -0
  733. package/web/chunk-6ts9mtye.js.gz +0 -0
  734. package/web/chunk-79whhay2.js +0 -2
  735. package/web/chunk-79whhay2.js.br +0 -0
  736. package/web/chunk-79whhay2.js.gz +0 -0
  737. package/web/chunk-7cf1kk45.js +0 -1
  738. package/web/chunk-7cf1kk45.js.br +0 -2
  739. package/web/chunk-7cf1kk45.js.gz +0 -0
  740. package/web/chunk-7n1abr86.js +0 -1
  741. package/web/chunk-7n1abr86.js.br +0 -0
  742. package/web/chunk-7n1abr86.js.gz +0 -0
  743. package/web/chunk-7qxfx983.js +0 -1
  744. package/web/chunk-7qxfx983.js.br +0 -0
  745. package/web/chunk-7qxfx983.js.gz +0 -0
  746. package/web/chunk-89crtpnw.js +0 -1
  747. package/web/chunk-89crtpnw.js.br +0 -0
  748. package/web/chunk-89crtpnw.js.gz +0 -0
  749. package/web/chunk-8g239029.js +0 -1
  750. package/web/chunk-8g239029.js.br +0 -0
  751. package/web/chunk-8g239029.js.gz +0 -0
  752. package/web/chunk-91k30q92.js +0 -1
  753. package/web/chunk-91k30q92.js.br +0 -0
  754. package/web/chunk-91k30q92.js.gz +0 -0
  755. package/web/chunk-91nyvkrb.js +0 -324
  756. package/web/chunk-91nyvkrb.js.br +0 -0
  757. package/web/chunk-91nyvkrb.js.gz +0 -0
  758. package/web/chunk-9mbr6znb.js +0 -1
  759. package/web/chunk-9mbr6znb.js.br +0 -0
  760. package/web/chunk-9mbr6znb.js.gz +0 -0
  761. package/web/chunk-9mvw6a5v.js +0 -7
  762. package/web/chunk-9mvw6a5v.js.br +0 -0
  763. package/web/chunk-9mvw6a5v.js.gz +0 -0
  764. package/web/chunk-9r7nbre7.js +0 -2
  765. package/web/chunk-9r7nbre7.js.br +0 -0
  766. package/web/chunk-9r7nbre7.js.gz +0 -0
  767. package/web/chunk-9y9nwaqj.js +0 -1
  768. package/web/chunk-9y9nwaqj.js.br +0 -0
  769. package/web/chunk-9y9nwaqj.js.gz +0 -0
  770. package/web/chunk-a6hdn8tb.js +0 -169
  771. package/web/chunk-a6hdn8tb.js.br +0 -0
  772. package/web/chunk-a6hdn8tb.js.gz +0 -0
  773. package/web/chunk-ad6x47yy.js +0 -1
  774. package/web/chunk-ad6x47yy.js.br +0 -0
  775. package/web/chunk-ad6x47yy.js.gz +0 -0
  776. package/web/chunk-ar6m9fza.js +0 -7
  777. package/web/chunk-ar6m9fza.js.br +0 -0
  778. package/web/chunk-ar6m9fza.js.gz +0 -0
  779. package/web/chunk-ayqakyyq.js +0 -1
  780. package/web/chunk-ayqakyyq.js.br +0 -0
  781. package/web/chunk-ayqakyyq.js.gz +0 -0
  782. package/web/chunk-cc6hn5xv.js +0 -2
  783. package/web/chunk-cc6hn5xv.js.br +0 -0
  784. package/web/chunk-cc6hn5xv.js.gz +0 -0
  785. package/web/chunk-ccymg1hp.js +0 -1
  786. package/web/chunk-ccymg1hp.js.br +0 -0
  787. package/web/chunk-ccymg1hp.js.gz +0 -0
  788. package/web/chunk-cg9fe42b.js +0 -89
  789. package/web/chunk-cg9fe42b.js.br +0 -0
  790. package/web/chunk-cg9fe42b.js.gz +0 -0
  791. package/web/chunk-cmcgmf94.js +0 -1
  792. package/web/chunk-cmcgmf94.js.br +0 -0
  793. package/web/chunk-cmcgmf94.js.gz +0 -0
  794. package/web/chunk-cnbbvd6n.js +0 -1
  795. package/web/chunk-cnbbvd6n.js.br +0 -0
  796. package/web/chunk-cnbbvd6n.js.gz +0 -0
  797. package/web/chunk-cxp2nbtc.js +0 -106
  798. package/web/chunk-cxp2nbtc.js.br +0 -0
  799. package/web/chunk-cxp2nbtc.js.gz +0 -0
  800. package/web/chunk-d18r4m14.js +0 -141
  801. package/web/chunk-d18r4m14.js.br +0 -0
  802. package/web/chunk-d18r4m14.js.gz +0 -0
  803. package/web/chunk-dj2b64aj.js +0 -1
  804. package/web/chunk-dj2b64aj.js.br +0 -0
  805. package/web/chunk-dj2b64aj.js.gz +0 -0
  806. package/web/chunk-dmqtdeb4.js +0 -1
  807. package/web/chunk-dmqtdeb4.js.br +0 -0
  808. package/web/chunk-dmqtdeb4.js.gz +0 -0
  809. package/web/chunk-dsga6rp3.js +0 -1
  810. package/web/chunk-dsga6rp3.js.br +0 -0
  811. package/web/chunk-dsga6rp3.js.gz +0 -0
  812. package/web/chunk-e65y60v1.js +0 -2
  813. package/web/chunk-e65y60v1.js.br +0 -0
  814. package/web/chunk-e65y60v1.js.gz +0 -0
  815. package/web/chunk-ed8qqn45.js +0 -2
  816. package/web/chunk-ed8qqn45.js.br +0 -0
  817. package/web/chunk-ed8qqn45.js.gz +0 -0
  818. package/web/chunk-ef1h0tt7.js +0 -2
  819. package/web/chunk-ef1h0tt7.js.br +0 -0
  820. package/web/chunk-ef1h0tt7.js.gz +0 -0
  821. package/web/chunk-ek6q6a08.js +0 -1
  822. package/web/chunk-ek6q6a08.js.br +0 -2
  823. package/web/chunk-ek6q6a08.js.gz +0 -0
  824. package/web/chunk-et1nm6h1.js +0 -142
  825. package/web/chunk-et1nm6h1.js.br +0 -0
  826. package/web/chunk-et1nm6h1.js.gz +0 -0
  827. package/web/chunk-f1016wh6.js +0 -1
  828. package/web/chunk-f1016wh6.js.br +0 -0
  829. package/web/chunk-f1016wh6.js.gz +0 -0
  830. package/web/chunk-f42mwg61.js +0 -1
  831. package/web/chunk-f42mwg61.js.br +0 -0
  832. package/web/chunk-f42mwg61.js.gz +0 -0
  833. package/web/chunk-fk35d3bz.js +0 -332
  834. package/web/chunk-fk35d3bz.js.br +0 -0
  835. package/web/chunk-fk35d3bz.js.gz +0 -0
  836. package/web/chunk-fpwztdhn.js +0 -39
  837. package/web/chunk-fpwztdhn.js.br +0 -0
  838. package/web/chunk-fpwztdhn.js.gz +0 -0
  839. package/web/chunk-g30nqfka.js +0 -2
  840. package/web/chunk-g30nqfka.js.br +0 -0
  841. package/web/chunk-g30nqfka.js.gz +0 -0
  842. package/web/chunk-g3vbtxgy.js +0 -2
  843. package/web/chunk-g3vbtxgy.js.br +0 -0
  844. package/web/chunk-g3vbtxgy.js.gz +0 -0
  845. package/web/chunk-gbwy4pfg.css +0 -1
  846. package/web/chunk-gbwy4pfg.css.br +0 -0
  847. package/web/chunk-gbwy4pfg.css.gz +0 -0
  848. package/web/chunk-gepgx19m.js +0 -200
  849. package/web/chunk-gepgx19m.js.br +0 -0
  850. package/web/chunk-gepgx19m.js.gz +0 -0
  851. package/web/chunk-grz69q28.js +0 -36
  852. package/web/chunk-grz69q28.js.br +0 -0
  853. package/web/chunk-grz69q28.js.gz +0 -0
  854. package/web/chunk-gt62acsh.js +0 -2
  855. package/web/chunk-gt62acsh.js.br +0 -0
  856. package/web/chunk-gt62acsh.js.gz +0 -0
  857. package/web/chunk-h28xrvmg.js +0 -41
  858. package/web/chunk-h28xrvmg.js.br +0 -0
  859. package/web/chunk-h28xrvmg.js.gz +0 -0
  860. package/web/chunk-h80ypke7.js +0 -2
  861. package/web/chunk-h80ypke7.js.br +0 -0
  862. package/web/chunk-h80ypke7.js.gz +0 -0
  863. package/web/chunk-hj067dfg.js +0 -1
  864. package/web/chunk-hj067dfg.js.br +0 -2
  865. package/web/chunk-hj067dfg.js.gz +0 -0
  866. package/web/chunk-hp167dbv.js +0 -1
  867. package/web/chunk-hp167dbv.js.br +0 -0
  868. package/web/chunk-hp167dbv.js.gz +0 -0
  869. package/web/chunk-j4942vkb.js +0 -1
  870. package/web/chunk-j4942vkb.js.br +0 -0
  871. package/web/chunk-j4942vkb.js.gz +0 -0
  872. package/web/chunk-k1cd6e24.js +0 -1
  873. package/web/chunk-k1cd6e24.js.br +0 -0
  874. package/web/chunk-k1cd6e24.js.gz +0 -0
  875. package/web/chunk-k1d0y72z.js +0 -2
  876. package/web/chunk-k1d0y72z.js.br +0 -0
  877. package/web/chunk-k1d0y72z.js.gz +0 -0
  878. package/web/chunk-k9248573.js +0 -1
  879. package/web/chunk-k9248573.js.br +0 -0
  880. package/web/chunk-k9248573.js.gz +0 -0
  881. package/web/chunk-kh0xyffx.js +0 -1
  882. package/web/chunk-kh0xyffx.js.br +0 -0
  883. package/web/chunk-kh0xyffx.js.gz +0 -0
  884. package/web/chunk-kqgn9dsa.js +0 -7
  885. package/web/chunk-kqgn9dsa.js.br +0 -0
  886. package/web/chunk-kqgn9dsa.js.gz +0 -0
  887. package/web/chunk-kqngpw5m.js +0 -1
  888. package/web/chunk-kqngpw5m.js.br +0 -0
  889. package/web/chunk-kqngpw5m.js.gz +0 -0
  890. package/web/chunk-ktvxgxsd.js +0 -2
  891. package/web/chunk-ktvxgxsd.js.br +0 -0
  892. package/web/chunk-ktvxgxsd.js.gz +0 -0
  893. package/web/chunk-kzj105r1.js +0 -217
  894. package/web/chunk-kzj105r1.js.br +0 -0
  895. package/web/chunk-kzj105r1.js.gz +0 -0
  896. package/web/chunk-m14v2en1.js +0 -1
  897. package/web/chunk-m14v2en1.js.br +0 -0
  898. package/web/chunk-m14v2en1.js.gz +0 -0
  899. package/web/chunk-m34et8g4.js +0 -2
  900. package/web/chunk-m34et8g4.js.br +0 -0
  901. package/web/chunk-m34et8g4.js.gz +0 -0
  902. package/web/chunk-md1f6gmk.js +0 -1
  903. package/web/chunk-md1f6gmk.js.br +0 -0
  904. package/web/chunk-md1f6gmk.js.gz +0 -0
  905. package/web/chunk-n05xf20n.js +0 -98
  906. package/web/chunk-n05xf20n.js.br +0 -0
  907. package/web/chunk-n05xf20n.js.gz +0 -0
  908. package/web/chunk-n2k1gd6n.js +0 -84
  909. package/web/chunk-n2k1gd6n.js.br +0 -0
  910. package/web/chunk-n2k1gd6n.js.gz +0 -0
  911. package/web/chunk-n419cees.js +0 -1
  912. package/web/chunk-n419cees.js.br +0 -0
  913. package/web/chunk-n419cees.js.gz +0 -0
  914. package/web/chunk-n45fgfyt.js +0 -1
  915. package/web/chunk-n45fgfyt.js.br +0 -2
  916. package/web/chunk-n45fgfyt.js.gz +0 -0
  917. package/web/chunk-n5v71fas.js +0 -2
  918. package/web/chunk-n5v71fas.js.br +0 -0
  919. package/web/chunk-n5v71fas.js.gz +0 -0
  920. package/web/chunk-nm8yza3v.js +0 -140
  921. package/web/chunk-nm8yza3v.js.br +0 -0
  922. package/web/chunk-nm8yza3v.js.gz +0 -0
  923. package/web/chunk-nzey7cpv.js +0 -1
  924. package/web/chunk-nzey7cpv.js.br +0 -0
  925. package/web/chunk-nzey7cpv.js.gz +0 -0
  926. package/web/chunk-p76f6cf4.js +0 -2
  927. package/web/chunk-p76f6cf4.js.br +0 -0
  928. package/web/chunk-p76f6cf4.js.gz +0 -0
  929. package/web/chunk-pbg9rdwv.js +0 -1
  930. package/web/chunk-pbg9rdwv.js.br +0 -2
  931. package/web/chunk-pbg9rdwv.js.gz +0 -0
  932. package/web/chunk-qgtqwmkb.js +0 -1
  933. package/web/chunk-qgtqwmkb.js.br +0 -2
  934. package/web/chunk-qgtqwmkb.js.gz +0 -0
  935. package/web/chunk-qj9nd038.js +0 -1
  936. package/web/chunk-qj9nd038.js.br +0 -0
  937. package/web/chunk-qj9nd038.js.gz +0 -0
  938. package/web/chunk-qjaex9c0.js +0 -1
  939. package/web/chunk-qjaex9c0.js.br +0 -2
  940. package/web/chunk-qjaex9c0.js.gz +0 -0
  941. package/web/chunk-qq79vsm8.js +0 -70
  942. package/web/chunk-qq79vsm8.js.br +0 -0
  943. package/web/chunk-qq79vsm8.js.gz +0 -0
  944. package/web/chunk-qs5wnwd6.js +0 -30
  945. package/web/chunk-qs5wnwd6.js.br +0 -0
  946. package/web/chunk-qs5wnwd6.js.gz +0 -0
  947. package/web/chunk-qygjhm63.js +0 -1
  948. package/web/chunk-qygjhm63.js.br +0 -0
  949. package/web/chunk-qygjhm63.js.gz +0 -0
  950. package/web/chunk-r1dnh0s8.js +0 -1
  951. package/web/chunk-r1dnh0s8.js.br +0 -0
  952. package/web/chunk-r1dnh0s8.js.gz +0 -0
  953. package/web/chunk-r381n550.js +0 -1
  954. package/web/chunk-r381n550.js.br +0 -0
  955. package/web/chunk-r381n550.js.gz +0 -0
  956. package/web/chunk-r48vazdm.js +0 -291
  957. package/web/chunk-r48vazdm.js.br +0 -0
  958. package/web/chunk-r48vazdm.js.gz +0 -0
  959. package/web/chunk-r55seq42.js +0 -24
  960. package/web/chunk-r55seq42.js.br +0 -0
  961. package/web/chunk-r55seq42.js.gz +0 -0
  962. package/web/chunk-r5eakmw6.js +0 -1
  963. package/web/chunk-r5eakmw6.js.br +0 -0
  964. package/web/chunk-r5eakmw6.js.gz +0 -0
  965. package/web/chunk-r79zekav.js +0 -1
  966. package/web/chunk-r79zekav.js.br +0 -0
  967. package/web/chunk-r79zekav.js.gz +0 -0
  968. package/web/chunk-r8qyvcks.js +0 -89
  969. package/web/chunk-r8qyvcks.js.br +0 -0
  970. package/web/chunk-r8qyvcks.js.gz +0 -0
  971. package/web/chunk-r9dt0730.js +0 -1
  972. package/web/chunk-r9dt0730.js.br +0 -0
  973. package/web/chunk-r9dt0730.js.gz +0 -0
  974. package/web/chunk-rfsg5rke.js +0 -1
  975. package/web/chunk-rfsg5rke.js.br +0 -2
  976. package/web/chunk-rfsg5rke.js.gz +0 -0
  977. package/web/chunk-rpjzwknn.js +0 -1
  978. package/web/chunk-rpjzwknn.js.br +0 -0
  979. package/web/chunk-rpjzwknn.js.gz +0 -0
  980. package/web/chunk-s7h50avx.js +0 -2
  981. package/web/chunk-s7h50avx.js.br +0 -0
  982. package/web/chunk-s7h50avx.js.gz +0 -0
  983. package/web/chunk-sk3065js.js +0 -62
  984. package/web/chunk-sk3065js.js.br +0 -0
  985. package/web/chunk-sk3065js.js.gz +0 -0
  986. package/web/chunk-sk47kk5j.js +0 -1
  987. package/web/chunk-sk47kk5j.js.br +0 -0
  988. package/web/chunk-sk47kk5j.js.gz +0 -0
  989. package/web/chunk-smywa1zw.js +0 -2
  990. package/web/chunk-smywa1zw.js.br +0 -0
  991. package/web/chunk-smywa1zw.js.gz +0 -0
  992. package/web/chunk-t6agpn2z.js +0 -1
  993. package/web/chunk-t6agpn2z.js.br +0 -0
  994. package/web/chunk-t6agpn2z.js.gz +0 -0
  995. package/web/chunk-t9heac9a.js +0 -2
  996. package/web/chunk-t9heac9a.js.br +0 -0
  997. package/web/chunk-t9heac9a.js.gz +0 -0
  998. package/web/chunk-trssyq9a.js +0 -1
  999. package/web/chunk-trssyq9a.js.br +0 -0
  1000. package/web/chunk-trssyq9a.js.gz +0 -0
  1001. package/web/chunk-v329f8df.js +0 -24
  1002. package/web/chunk-v329f8df.js.br +0 -0
  1003. package/web/chunk-v329f8df.js.gz +0 -0
  1004. package/web/chunk-vb2feptd.js +0 -2
  1005. package/web/chunk-vb2feptd.js.br +0 -0
  1006. package/web/chunk-vb2feptd.js.gz +0 -0
  1007. package/web/chunk-vff33vj3.js +0 -1
  1008. package/web/chunk-vff33vj3.js.br +0 -2
  1009. package/web/chunk-vff33vj3.js.gz +0 -0
  1010. package/web/chunk-w9adyaze.js +0 -16
  1011. package/web/chunk-w9adyaze.js.br +0 -0
  1012. package/web/chunk-w9adyaze.js.gz +0 -0
  1013. package/web/chunk-wgc8z5jv.js +0 -1
  1014. package/web/chunk-wgc8z5jv.js.br +0 -0
  1015. package/web/chunk-wgc8z5jv.js.gz +0 -0
  1016. package/web/chunk-wvdk3w03.js +0 -2
  1017. package/web/chunk-wvdk3w03.js.br +0 -0
  1018. package/web/chunk-wvdk3w03.js.gz +0 -0
  1019. package/web/chunk-wvvrdqgb.js +0 -1
  1020. package/web/chunk-wvvrdqgb.js.br +0 -2
  1021. package/web/chunk-wvvrdqgb.js.gz +0 -0
  1022. package/web/chunk-wxmaw4ht.js +0 -1
  1023. package/web/chunk-wxmaw4ht.js.br +0 -0
  1024. package/web/chunk-wxmaw4ht.js.gz +0 -0
  1025. package/web/chunk-x19jdqnt.js +0 -38
  1026. package/web/chunk-x19jdqnt.js.br +0 -0
  1027. package/web/chunk-x19jdqnt.js.gz +0 -0
  1028. package/web/chunk-x4153gx3.js +0 -214
  1029. package/web/chunk-x4153gx3.js.br +0 -0
  1030. package/web/chunk-x4153gx3.js.gz +0 -0
  1031. package/web/chunk-x7wmb5d3.js +0 -4
  1032. package/web/chunk-x7wmb5d3.js.br +0 -0
  1033. package/web/chunk-x7wmb5d3.js.gz +0 -0
  1034. package/web/chunk-xp2zpmpp.js +0 -303
  1035. package/web/chunk-xp2zpmpp.js.br +0 -0
  1036. package/web/chunk-xp2zpmpp.js.gz +0 -0
  1037. package/web/chunk-xp9tdb5t.js +0 -1
  1038. package/web/chunk-xp9tdb5t.js.br +0 -2
  1039. package/web/chunk-xp9tdb5t.js.gz +0 -0
  1040. package/web/chunk-y09v3sz7.js +0 -1
  1041. package/web/chunk-y09v3sz7.js.br +0 -0
  1042. package/web/chunk-y09v3sz7.js.gz +0 -0
  1043. package/web/chunk-y10hsdq4.js +0 -1
  1044. package/web/chunk-y10hsdq4.js.br +0 -0
  1045. package/web/chunk-y10hsdq4.js.gz +0 -0
  1046. package/web/chunk-ywmsxe5z.js +0 -99
  1047. package/web/chunk-ywmsxe5z.js.br +0 -0
  1048. package/web/chunk-ywmsxe5z.js.gz +0 -0
  1049. package/web/chunk-yzyxa823.js +0 -2
  1050. package/web/chunk-yzyxa823.js.br +0 -0
  1051. package/web/chunk-yzyxa823.js.gz +0 -0
  1052. package/web/chunk-z09emmrb.js +0 -1
  1053. package/web/chunk-z09emmrb.js.br +0 -0
  1054. package/web/chunk-z09emmrb.js.gz +0 -0
  1055. package/web/chunk-zwx48gb8.js +0 -120
  1056. package/web/chunk-zwx48gb8.js.br +0 -0
  1057. package/web/chunk-zwx48gb8.js.gz +0 -0
@@ -0,0 +1 @@
1
+ import{s,o,a,Wt,m,e,n,y,oi,l,le,lr,wt,ve,fa,se}from"./chunk-svaq7f3c.js";var ke=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ke);var Ce=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",Ce);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],pe=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ue=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let u=V(t.status);return{busy:u,text:u&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let u=t.members.filter((b)=>b.verdict==="approve").length,f=t.members.filter((b)=>b.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(u===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>u)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let u=Math.max(1,Math.round(t/1000));if(u<60)return`${u}s`;return`${Math.floor(u/60)}m ${String(u%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:u}=y(),{room:f}=t,b=te(f),g=f.state==="running",v=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?v.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,h=[...v.map((d,p)=>({key:d,label:De[d],done:!g||p<i,active:p===i})),{key:"closed",label:g?"结论":b.label,done:!g,active:!1}];return e("ol",{className:u("flex min-w-0 gap-1",t.className),children:h.map((d,p)=>{let c=p===h.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:u("block h-[3px] rounded-full transition-colors duration-300",c?ee[b.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:u("mt-1.5 block truncate text-[11px]",c?u("font-medium",F[b.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:u,CollapsibleContent:f,Composer:b,Markdown:g,ModelIcon:v,ScrollArea:i,SessionView:h,cn:d,confirm:p}=y(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[N,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[ae,A]=a(!1),oe=o(!1);oe.current=U!==void 0;let ie=(r)=>{A(!1),X(r)},re=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(oe.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let ce=c.messages.length;s(()=>{let r=Y.current;if(!r||!N||ce===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[ce,N]);let be=async(r)=>{await t.onPost(r),I(!0)},he=async()=>{if(R)return;if(!await p({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>re.current?.focus())},Ne=c.members.filter((r)=>r.verdict==="approve").length,ye=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return Wt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(u,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-[15px] leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(ve,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(se,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-[13px] leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:Ne})," / ",e("span",{className:"text-danger",children:ye})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):ie(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!ae||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",ae?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-[13px] text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(lr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[13px] font-medium",children:[e(v,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(wt,{className:"size-4"})})]}),e(h,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(le,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-[13px] leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-[13px] text-danger",children:_}),e(b,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:re,onSend:be,onAbort:()=>void he()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),ie(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:u,cn:f}=y(),{member:b}=t,g=w[b.verdict]??w.pending,{busy:v}=K(b);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${b.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(u,{modelID:b.model,className:"size-4",size:16}),v&&e(le,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-[13px] font-medium",children:b.name}),e("span",{className:f("block text-[11px]",g.text),children:g.label})]})]})}function Oe(t){let{Button:u,Dialog:f,Markdown:b,ModelIcon:g,cn:v}=y(),{member:i}=t,h=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(p)=>!p&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:v("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",h.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:v("shrink-0 rounded px-1.5 py-px text-[11px] font-medium",h.soft),children:h.label})]}),description:i.model,footer:n(m,{children:[n(u,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(u,{variant:"secondary",onClick:t.onOpen,children:[e(wt,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-[13px]",children:[n("span",{className:v("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(le,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-[13px] leading-relaxed text-dim",children:e(b,{text:i.notes})})]}):e("p",{className:"text-[13px] text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:u,CollapsibleContent:f,Markdown:b,ModelIcon:g,cn:v}=y(),{member:i}=t,[h,d]=a(!1),p=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(u,{open:h,onOpenChange:d,className:v("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:v("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",p.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-[13px] font-medium",title:i.model,children:i.name}),e("span",{className:v("shrink-0 rounded px-1 text-[10.5px] font-medium",p.soft),children:p.label})]}),n("div",{className:v("flex min-w-0 items-center gap-1 text-[11px]",c?"text-accent":"text-faint"),children:[c&&e(le,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-[11px] text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":h,onClick:()=>d((M)=>!M),className:v("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",h&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(b,{text:i.notes})})})]})}function Te(t){let{Code:u,Collapsible:f,CollapsibleContent:b,Markdown:g,cn:v}=y(),{message:i}=t,[h,d]=a(!1),p=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:p,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:p,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-[11px] text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:v("rounded px-1.5 py-px text-[10.5px] font-medium",c.soft),children:c.label}),!p&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-[11px] text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-[11px] text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(fa,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-[14px] leading-relaxed text-ink/90 md:text-[13.5px] [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:h,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":h,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-[11px] text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!h&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(ve,{className:v("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!h&&"-rotate-90")})]}),e(b,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-[11px] text-dim",children:x.label}),x.snippet&&e(u,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-[11.5px]"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:u,cn:f}=y();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(u,{modelID:t.message.senderModel,className:"size-4",size:16}):e(ue,{className:"size-4"})})}function ot(t){let{ModelIcon:u,cn:f,useTheme:b}=y();b();let{connection:g,sessionID:v,payload:i,onOpen:h}=t,d=i,[p,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(oi)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(oi)===d.roomID)sessionStorage.removeItem(oi)}catch{}},[C,d.roomID]);let D=p.state==="running",R=`/api/sessions/${encodeURIComponent(v)}/council/${encodeURIComponent(p.roomID)}`;s(()=>{if(!D)return;let N=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!N&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!N)J(Date.now())},1200);return()=>{N=!0,clearInterval(T)}},[g,R,D]);let H=async(N)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:N})});c(I)},_=async()=>{let N=await g.request(`${R}/kill`,{method:"POST"});c(N)},E=(D?x:p.updatedAt)-p.createdAt,S=p.messages.at(-1),B=p.members.filter((N)=>V(N.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${p.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-[11px] text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[p.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:p.topic,children:p.topic})]}),e(G,{room:p,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:p.members.map((N)=>{let I=w[N.verdict]??w.pending,T=V(N.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:N.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(u,{modelID:N.model,className:"size-3.5",size:14}),T&&e(le,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:N.name}),e("span",{className:f("shrink-0 text-[11px]",I.text),children:I.label})]},N.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${p.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[p.messages.length>0&&n("span",{className:"tabular-nums",children:[p.messages.length," 条"]}),e(pe,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:p,elapsedMs:E,onClose:()=>M(!1),onOpenMember:h,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ import{X,pt}from"./chunk-22rjbwxp.js";var n=(r,o)=>X.lang.round(pt.parse(r)[o]),Dn=n;
2
+ export{Dn};
Binary file
Binary file
@@ -0,0 +1,24 @@
1
+ import{ae}from"./chunk-h5m9ggsm.js";import{t,i,F,A,W,L,N,P,M,R,O,D,J,Z}from"./chunk-22rjbwxp.js";import{he}from"./chunk-9xb3j03w.js";var z=F.packet,B=class{constructor(){this.packet=[],this.setAccTitle=N,this.getAccTitle=P,this.setDiagramTitle=O,this.getDiagramTitle=D,this.getAccDescription=R,this.setAccDescription=M}static{t(this,"PacketDB")}getConfig(){let e=Z({...z,...A().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){L(),this.packet=[]}},E=1e4,_=t((e,r)=>{ae(e,r);let o=-1,s=[],l=1,{bitsPerRow:d}=r.getConfig();for(let{start:a,end:n,bits:g,label:f}of e.blocks){if(a!==void 0&&n!==void 0&&n<a)throw Error(`Packet block ${a} - ${n} is invalid. End must be greater than start.`);if(a??=o+1,a!==o+1)throw Error(`Packet block ${a} - ${n??a} is not contiguous. It should start from ${o+1}.`);if(g===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);n??=a+(g??1)-1,g??=n-a+1,o=n,i.debug(`Packet block ${a} - ${o} with label ${f}`);while(s.length<=d+1&&r.getPacket().length<E){let[p,h]=Y({start:a,end:n,bits:g,label:f},l,d);if(s.push(p),p.end+1===l*d)r.pushWord(s),s=[],l++;if(!h)break;({start:a,end:n,bits:g,label:f}=h)}}r.pushWord(s)},"populate"),Y=t((e,r,o)=>{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*o)return[e,void 0];let s=r*o-1,l=r*o;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),C={parser:{yy:void 0},parse:t(async(e)=>{let r=await he("packet",e),o=C.parser?.yy;if(!(o instanceof B))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");i.debug(r),_(r,o)},"parse")},I=t((e,r,o,s)=>{let l=s.db,d=l.getConfig(),{rowHeight:a,paddingY:n,bitWidth:g,bitsPerRow:f}=d,p=l.getPacket(),h=l.getDiagramTitle(),b=a+n,c=b*(p.length+1)-(h?0:a),k=g*f+2,m=J(r);m.attr("viewBox",`0 0 ${k} ${c}`),W(m,c,k,d.useMaxWidth);for(let[x,u]of p.entries())j(m,u,x,d);m.append("text").text(h).attr("x",k/2).attr("y",c-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=t((e,r,o,{rowHeight:s,paddingX:l,paddingY:d,bitWidth:a,bitsPerRow:n,showBits:g,bitOrder:f})=>{let p=e.append("g"),h=o*(s+d)+d,b=f==="descending";for(let c of r){let k=c.end-c.start+1,m=c.start%n,u=(b?n-m-k:m)*a+1,w=k*a-l;if(p.append("rect").attr("x",u).attr("y",h).attr("width",w).attr("height",s).attr("class","packetBlock"),p.append("text").attr("x",u+w/2).attr("y",h+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),!g)continue;let[S,T]=b?[c.end,c.start]:[c.start,c.end],v=k===1,y=h-2;if(p.append("text").attr("x",u+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(S),!v)p.append("text").attr("x",u+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),G={draw:I},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},K=t(({packet:e}={})=>{let r=Z(H,e);return`
2
+ .packetByte {
3
+ font-size: ${r.byteFontSize};
4
+ }
5
+ .packetByte.start {
6
+ fill: ${r.startByteColor};
7
+ }
8
+ .packetByte.end {
9
+ fill: ${r.endByteColor};
10
+ }
11
+ .packetLabel {
12
+ fill: ${r.labelColor};
13
+ font-size: ${r.labelFontSize};
14
+ }
15
+ .packetTitle {
16
+ fill: ${r.titleColor};
17
+ font-size: ${r.titleFontSize};
18
+ }
19
+ .packetBlock {
20
+ stroke: ${r.blockStrokeColor};
21
+ stroke-width: ${r.blockStrokeWidth};
22
+ fill: ${r.blockFillColor};
23
+ }
24
+ `},"styles"),rt={parser:C,get db(){return new B},renderer:G,styles:K};export{rt as diagram};
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ import{t}from"./chunk-22rjbwxp.js";import"./chunk-9mdbahpr.js";import{Os,$s}from"./chunk-kqyk2an3.js";import"./chunk-9h6ayn54.js";import"./chunk-0s237vb2.js";import"./chunk-3cgxntbk.js";import"./chunk-7tmzvm05.js";var o=t((r)=>`${Os(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=$s({styles:m});export{D as diagram};
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ var n=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.array.begin.json"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:/,/dgv,name:"punctuation.separator.array.json"},{match:/[^\]\p{space}]/dgv,name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:/\/\*\*(?!\/)/dgv,captures:{"0":{name:"punctuation.definition.comment.json"}},end:/\*\//dgv,name:"comment.block.documentation.json"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.json"}},end:/\*\//dgv,name:"comment.block.json"},{captures:{"1":{name:"punctuation.definition.comment.json"}},match:/(\/\/)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.double-slash.js"}]},constant:{match:/\b(?:true|false|null)\b/dgv,name:"constant.language.json"},number:{match:/-?(?:0|[1-9]\p{Nd}*)(?:(?:\.\p{Nd}+)?(?:[Ee][\-\+]?\p{Nd}+)?)?/dgv,name:"constant.numeric.json"},object:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.dictionary.begin.json"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.dictionary.end.json"}},name:"meta.structure.dictionary.json",patterns:[{include:"#objectkey"},{include:"#comments"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.dictionary.key-value.json"}},end:/(,)|(?=\})/dgv,endCaptures:{"1":{name:"punctuation.separator.dictionary.pair.json"}},name:"meta.structure.dictionary.value.json",patterns:[{include:"#value"},{match:/[^\,\p{space}]/dgv,name:"invalid.illegal.expected-dictionary-separator.json"}]},{match:/[^\}\p{space}]/dgv,name:"invalid.illegal.expected-dictionary-separator.json"}]},objectkey:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.support.type.property-name.begin.json"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.support.type.property-name.end.json"}},name:"string.json support.type.property-name.json",patterns:[{include:"#stringcontent"}]},string:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.json"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.json"}},name:"string.quoted.double.json",patterns:[{include:"#stringcontent"}]},stringcontent:{patterns:[{match:/\\(?:["\/\\bfnrt]|u\p{AHex}{4})/dgv,name:"constant.character.escape.json"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.json"}]},value:{patterns:[{include:"#constant"},{include:"#number"},{include:"#string"},{include:"#array"},{include:"#object"},{include:"#comments"}]}},scopeName:"source.json",embeddedLangs:void 0,aliases:void 0}),ws=[n];
2
+ export{ws};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{b,s,o,a,m,e,n,y,cr,ye}from"./chunk-svaq7f3c.js";import{hi,gi,yi}from"./chunk-66zp24sf.js";var te={global:"全局",project:"项目",custom:"自定义",builtin:"内置"};function F({skill:i,issue:x,connection:v}){let{Button:E,CopyButton:C,style:u,useTheme:R}=y();R();let[l,k]=a(),[L,P]=a(),[f,O]=a(0);return s(()=>{let p=!0;P(void 0),k(void 0);let S=new URLSearchParams;if(i.projectID)S.set("projectID",i.projectID);if(i.location)S.set("location",i.location);let N=S.toString()?`?${S.toString()}`:"";return Promise.all([v.request(`/api/skills/${encodeURIComponent(i.name)}/content${N}`),v.request(`/api/skills/${encodeURIComponent(i.name)}/files${N}`)]).then(([g,D])=>{if(p)k({text:g.text,files:D.files})}).catch((g)=>{if(p)P(g instanceof Error?g.message:"读取失败")}),()=>{p=!1}},[v,i.name,i.projectID,i.location,f]),n("div",{className:"min-w-0 space-y-5 text-sm text-ink",children:[e("p",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-dim",children:i.description||"暂无描述"}),n("div",{children:[n("p",{className:"break-all text-xs text-dim",children:[te[i.scope],i.projectName?` · ${i.projectName}`:""]}),n("div",{className:"mt-1 flex min-w-0 items-center gap-2",children:[e("code",{className:u("markdown.inlineCode","min-w-0 flex-1 break-all text-xs"),children:i.location}),e(C,{text:i.location,label:"复制完整路径",className:"size-10"})]})]}),n("ul",{className:"space-y-1 break-words text-xs text-dim",children:[e("li",{children:"启用状态按名称生效,影响同名技能在新会话与压缩刷新后的可用性。"}),i.disableModelInvocation&&e("li",{children:"仅手动:可由用户调用,不向模型自动提供。"}),i.platforms&&n("li",{children:["平台限制:",i.platforms.join("、")]}),i.disabled&&e("li",{children:"已禁用:不会提供给新会话或压缩刷新后的会话。"}),x?.overriddenBy&&n("li",{className:"break-all",children:["被覆盖:同名技能优先使用 ",x.overriddenBy]})]}),i.commands?.length?n("div",{children:[e("h3",{className:"font-medium",children:"bin 命令"}),e("p",{className:"mt-1 text-xs text-dim",children:"技能目录中的可执行命令。"}),e("ul",{className:"mt-2 space-y-1 font-mono text-xs",children:i.commands.map((p)=>e("li",{className:"break-all",children:p},p))})]}):null,L?n("div",{role:"alert",className:"space-y-2",children:[n("p",{className:"break-words text-danger",children:["读取失败:",L]}),e(E,{className:"h-10",onClick:()=>O(f+1),children:"重试"})]}):!l?e("p",{role:"status",className:"text-dim",children:"正在读取文件…"}):n(m,{children:[n("section",{children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("h3",{className:"font-medium",children:"SKILL.md 原文"}),e(C,{text:l.text,label:"复制 SKILL.md 原文",className:"size-10"})]}),n("p",{className:"mb-2 text-xs text-faint",children:[l.text.length.toLocaleString()," 字符 · 约 ",Math.ceil(l.text.length/4).toLocaleString()," ","tokens(估算)"]}),e("pre",{className:u("surface.subtle",u("chat.toolOutput"),"rounded-lg bg-raised p-3 text-xs leading-5 break-all"),children:l.text})]}),n("section",{children:[n("h3",{className:"font-medium",children:["目录文件 · ",l.files.length,l.files.length===200?"(最多显示 200 个)":""]}),e("ul",{className:"mt-2 space-y-1 font-mono text-xs text-dim",children:l.files.map((p)=>e("li",{className:"break-all",children:p},p))})]})]})]})}var A="all",G="non-project";function me({connection:i}){let{Button:x,Select:v,Dialog:E,CatalogRow:C,style:u,useTheme:R}=y();R();let[l,k]=a([]),[L,P]=a([]),[f,O]=a(A),[p,S]=a([]),[N,g]=a(),[D,H]=a(""),[w,B]=a(),[h,q]=a(!0),[K,z]=a(),[W,Q]=a(),d=o(0),I=o(!1),j=b(async(t=!1)=>{let r=++d.current;I.current=!0,q(!0);try{if(t)await i.request("/api/skills/rescan",{method:"POST"});let[c,U,T]=await Promise.all([i.request("/api/skills?all=true"),i.request("/api/skills/settings"),i.request("/api/projects")]);if(r!==d.current)return;k(c.skills),P(T),S(c.issues),g(U),Q(new Date),z(void 0)}catch(c){if(r===d.current)z(c instanceof Error?c.message:"读取失败")}finally{if(r===d.current)I.current=!1,q(!1)}},[i]);s(()=>(j(),()=>{d.current++}),[j]);async function V(t){if(I.current)return;I.current=!0;let r=++d.current;q(!0);try{let c=await i.request("/api/skills/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(r!==d.current)return;g(c),await j()}catch(c){if(r!==d.current)return;z(c instanceof Error?c.message:"保存设置失败"),I.current=!1,q(!1)}}let X=D.trim().toLocaleLowerCase(),Y=L.filter((t)=>l.some((r)=>r.projectID===t.id)),J=f===A?l:l.filter((t)=>{if(t.scope!=="project")return!0;return f!==G&&t.projectID===f}),M=J.filter((t)=>`${t.name} ${t.description??""}`.toLocaleLowerCase().includes(X)),_=(t)=>p.find((r)=>r.kind==="overridden"&&(r.path==="<built-in>"?t.scope==="builtin":r.path.replace(/\\/g,"/")===`${t.location.replace(/\\/g,"/")}/SKILL.md`));return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:u("settings.groupTitle"),children:"技能"}),e("p",{"aria-live":"polite",className:u("settings.groupDesc"),children:W&&`找到 ${J.length} 个 · ${W.toLocaleTimeString("zh-CN",{hour12:!1})}`})]}),n("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[e(v,{value:f,disabled:h,onValueChange:(t)=>{B(void 0),O(t)},groups:[{options:[{value:A,label:"全部来源"},{value:G,label:"非项目技能"}]},...hi(Y)],className:"w-44"}),n(x,{variant:"ghost",disabled:h,onClick:()=>j(!0),className:"h-9 px-2.5 text-xs",children:[e(ye,{className:`size-3.5 ${h?"animate-spin":""}`}),e("span",{className:"ml-1",children:"重新扫描"})]})]})]}),K&&n("div",{role:"alert",className:"mb-3 flex flex-wrap items-center gap-2 rounded-xl border border-line p-3",children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法更新技能:",K]}),e(x,{disabled:h,onClick:()=>j(),children:"重试"})]}),e(gi,{label:"搜索技能",placeholder:"搜索技能",value:D,onChange:H}),e("div",{className:u("settings.groupBox"),children:h&&!l.length?e(yi,{}):M.length===0?e("p",{className:"p-4 text-sm text-dim",children:"没有找到匹配的技能"}):e("ul",{className:"divide-y divide-line",children:M.map((t)=>{let r=_(t),c=t.disabled;return e("li",{children:e(C,{name:t.name,selectLabel:`查看技能 ${t.name}`,onSelect:()=>B(t),description:t.description,inactive:c,aside:n(m,{children:[r&&n("span",{className:"flex items-center gap-1 text-xs text-warning",children:[e(cr,{className:"size-3.5"}),"被覆盖"]}),e("span",{className:u("control.badge"),children:t.scope==="project"?"项目":t.scope==="builtin"?"内置":"全局"})]}),toggle:{checked:!c,label:`启用技能 ${t.name}`,disabled:h,onCheckedChange:(U)=>{if(!N)return;let T=N.disabled??[],Z=U?T.filter((ee)=>ee!==t.name):[...T,t.name];V({...N,disabled:Z})}}})},`${t.scope}:${t.projectID??""}:${t.name}`)})})})]}),e(E,{open:Boolean(w),onOpenChange:(t)=>{if(!t)B(void 0)},title:w?.name??"",size:"lg",footer:e("div",{className:"flex w-full justify-end",children:e(x,{variant:"primary",onClick:()=>B(void 0),children:"关闭"})}),children:w&&e(F,{skill:w,issue:_(w),connection:i})})]})}export{me as SkillsSection};
Binary file
Binary file
@@ -0,0 +1,38 @@
1
+ import{t,i,Se,j,C,W,N,P,M,R,u,g,Vr,Ri,Pt,T,Oi}from"./chunk-22rjbwxp.js";import{dr}from"./chunk-9mdbahpr.js";var Jt=function(){var e=t(function(wt,v,E,w){for(E=E||{},w=wt.length;w--;E[wt[w]]=v);return E},"o"),n=[1,24],a=[1,25],o=[1,26],p=[1,27],l=[1,28],r=[1,63],d=[1,64],s=[1,65],f=[1,66],b=[1,67],_=[1,68],x=[1,69],S=[1,29],B=[1,30],U=[1,31],V=[1,32],Y=[1,33],H=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],Rt=[1,60],Vt=[14,42],te=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ft=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],O=[1,82],D=[1,83],A=[1,84],L=[1,85],I=[12,14,42],ye=[12,14,33,42],qt=[12,14,33,42,76,77,79,80],At=[12,33],ee=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ne={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(v,E,w,m,F,h,Ut){var y=h.length-1;switch(F){case 3:m.setDirection("TB");break;case 4:m.setDirection("BT");break;case 5:m.setDirection("RL");break;case 6:m.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:m.setC4Type(h[y-3]);break;case 19:m.setTitle(h[y].substring(6)),this.$=h[y].substring(6);break;case 20:m.setAccDescription(h[y].substring(15)),this.$=h[y].substring(15);break;case 21:this.$=h[y].trim(),m.setTitle(this.$);break;case 22:case 23:this.$=h[y].trim(),m.setAccDescription(this.$);break;case 28:h[y].splice(2,0,"ENTERPRISE"),m.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 29:h[y].splice(2,0,"SYSTEM"),m.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 30:m.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 31:h[y].splice(2,0,"CONTAINER"),m.addContainerBoundary(...h[y]),this.$=h[y];break;case 32:m.addDeploymentNode("node",...h[y]),this.$=h[y];break;case 33:m.addDeploymentNode("nodeL",...h[y]),this.$=h[y];break;case 34:m.addDeploymentNode("nodeR",...h[y]),this.$=h[y];break;case 35:m.popBoundaryParseStack();break;case 39:m.addPersonOrSystem("person",...h[y]),this.$=h[y];break;case 40:m.addPersonOrSystem("external_person",...h[y]),this.$=h[y];break;case 41:m.addPersonOrSystem("system",...h[y]),this.$=h[y];break;case 42:m.addPersonOrSystem("system_db",...h[y]),this.$=h[y];break;case 43:m.addPersonOrSystem("system_queue",...h[y]),this.$=h[y];break;case 44:m.addPersonOrSystem("external_system",...h[y]),this.$=h[y];break;case 45:m.addPersonOrSystem("external_system_db",...h[y]),this.$=h[y];break;case 46:m.addPersonOrSystem("external_system_queue",...h[y]),this.$=h[y];break;case 47:m.addContainer("container",...h[y]),this.$=h[y];break;case 48:m.addContainer("container_db",...h[y]),this.$=h[y];break;case 49:m.addContainer("container_queue",...h[y]),this.$=h[y];break;case 50:m.addContainer("external_container",...h[y]),this.$=h[y];break;case 51:m.addContainer("external_container_db",...h[y]),this.$=h[y];break;case 52:m.addContainer("external_container_queue",...h[y]),this.$=h[y];break;case 53:m.addComponent("component",...h[y]),this.$=h[y];break;case 54:m.addComponent("component_db",...h[y]),this.$=h[y];break;case 55:m.addComponent("component_queue",...h[y]),this.$=h[y];break;case 56:m.addComponent("external_component",...h[y]),this.$=h[y];break;case 57:m.addComponent("external_component_db",...h[y]),this.$=h[y];break;case 58:m.addComponent("external_component_queue",...h[y]),this.$=h[y];break;case 60:m.addRel("rel",...h[y]),this.$=h[y];break;case 61:m.addRel("birel",...h[y]),this.$=h[y];break;case 62:m.addRel("rel_u",...h[y]),this.$=h[y];break;case 63:m.addRel("rel_d",...h[y]),this.$=h[y];break;case 64:m.addRel("rel_l",...h[y]),this.$=h[y];break;case 65:m.addRel("rel_r",...h[y]),this.$=h[y];break;case 66:m.addRel("rel_b",...h[y]),this.$=h[y];break;case 67:h[y].splice(0,1),m.addRel("rel",...h[y]),this.$=h[y];break;case 68:m.updateElStyle("update_el_style",...h[y]),this.$=h[y];break;case 69:m.updateRelStyle("update_rel_style",...h[y]),this.$=h[y];break;case 70:m.updateLayoutConfig("update_layout_config",...h[y]),this.$=h[y];break;case 71:this.$=[h[y]];break;case 72:h[y].unshift(h[y-1]),this.$=h[y];break;case 73:case 75:this.$=h[y].trim();break;case 74:let Lt={};Lt[h[y-1].trim()]=h[y].trim(),this.$=Lt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:70,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:71,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:72,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:73,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{14:[1,74]},e(Vt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:d,37:s,38:f,39:b,40:_,41:x,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Vt,[2,14]),e(te,[2,16],{12:[1,76]}),e(Vt,[2,36],{12:[1,77]}),e(Ft,[2,19]),e(Ft,[2,20]),{25:[1,78]},{27:[1,79]},e(Ft,[2,23]),{35:80,75:81,76:O,77:D,79:A,80:L},{35:86,75:81,76:O,77:D,79:A,80:L},{35:87,75:81,76:O,77:D,79:A,80:L},{35:88,75:81,76:O,77:D,79:A,80:L},{35:89,75:81,76:O,77:D,79:A,80:L},{35:90,75:81,76:O,77:D,79:A,80:L},{35:91,75:81,76:O,77:D,79:A,80:L},{35:92,75:81,76:O,77:D,79:A,80:L},{35:93,75:81,76:O,77:D,79:A,80:L},{35:94,75:81,76:O,77:D,79:A,80:L},{35:95,75:81,76:O,77:D,79:A,80:L},{35:96,75:81,76:O,77:D,79:A,80:L},{35:97,75:81,76:O,77:D,79:A,80:L},{35:98,75:81,76:O,77:D,79:A,80:L},{35:99,75:81,76:O,77:D,79:A,80:L},{35:100,75:81,76:O,77:D,79:A,80:L},{35:101,75:81,76:O,77:D,79:A,80:L},{35:102,75:81,76:O,77:D,79:A,80:L},{35:103,75:81,76:O,77:D,79:A,80:L},{35:104,75:81,76:O,77:D,79:A,80:L},e(I,[2,59]),{35:105,75:81,76:O,77:D,79:A,80:L},{35:106,75:81,76:O,77:D,79:A,80:L},{35:107,75:81,76:O,77:D,79:A,80:L},{35:108,75:81,76:O,77:D,79:A,80:L},{35:109,75:81,76:O,77:D,79:A,80:L},{35:110,75:81,76:O,77:D,79:A,80:L},{35:111,75:81,76:O,77:D,79:A,80:L},{35:112,75:81,76:O,77:D,79:A,80:L},{35:113,75:81,76:O,77:D,79:A,80:L},{35:114,75:81,76:O,77:D,79:A,80:L},{35:115,75:81,76:O,77:D,79:A,80:L},{20:116,29:49,30:61,32:62,34:r,36:d,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{12:[1,118],33:[1,117]},{35:119,75:81,76:O,77:D,79:A,80:L},{35:120,75:81,76:O,77:D,79:A,80:L},{35:121,75:81,76:O,77:D,79:A,80:L},{35:122,75:81,76:O,77:D,79:A,80:L},{35:123,75:81,76:O,77:D,79:A,80:L},{35:124,75:81,76:O,77:D,79:A,80:L},{35:125,75:81,76:O,77:D,79:A,80:L},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Vt,[2,15]),e(te,[2,17],{21:22,19:130,22:n,23:a,24:o,26:p,28:l}),e(Vt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:a,24:o,26:p,28:l,34:r,36:d,37:s,38:f,39:b,40:_,41:x,44:S,45:B,46:U,47:V,48:Y,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Ft,[2,21]),e(Ft,[2,22]),e(I,[2,39]),e(ye,[2,71],{75:81,35:132,76:O,77:D,79:A,80:L}),e(qt,[2,73]),{78:[1,133]},e(qt,[2,75]),e(qt,[2,76]),e(I,[2,40]),e(I,[2,41]),e(I,[2,42]),e(I,[2,43]),e(I,[2,44]),e(I,[2,45]),e(I,[2,46]),e(I,[2,47]),e(I,[2,48]),e(I,[2,49]),e(I,[2,50]),e(I,[2,51]),e(I,[2,52]),e(I,[2,53]),e(I,[2,54]),e(I,[2,55]),e(I,[2,56]),e(I,[2,57]),e(I,[2,58]),e(I,[2,60]),e(I,[2,61]),e(I,[2,62]),e(I,[2,63]),e(I,[2,64]),e(I,[2,65]),e(I,[2,66]),e(I,[2,67]),e(I,[2,68]),e(I,[2,69]),e(I,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(At,[2,28]),e(At,[2,29]),e(At,[2,30]),e(At,[2,31]),e(At,[2,32]),e(At,[2,33]),e(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(te,[2,18]),e(Vt,[2,38]),e(ye,[2,72]),e(qt,[2,74]),e(I,[2,24]),e(I,[2,35]),e(ee,[2,25]),e(ee,[2,26],{12:[1,138]}),e(ee,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(v,E){if(E.recoverable)this.trace(v);else{var w=Error(v);throw w.hash=E,w}},"parseError"),parse:t(function(v){var E=this,w=[0],m=[],F=[null],h=[],Ut=this.table,y="",Lt=0,_e=0,be=0,Ve=2,me=1,Ye=h.slice.call(arguments,1),z=Object.create(this.lexer),It={yy:{}};for(var re in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,re))It.yy[re]=this.yy[re];if(z.setInput(v,It.yy),It.yy.lexer=z,It.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var se=z.yylloc;h.push(se);var Fe=z.options&&z.options.ranges;if(typeof It.yy.parseError==="function")this.parseError=It.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(K){w.length=w.length-2*K,F.length=F.length-K,h.length=h.length-K}t(Ue,"popStack");function ge(){var K=m.pop()||z.lex()||me;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=E.symbols_[K]||K}return K}t(ge,"lex");var X,ae,Mt,Q,X0,ie,Yt={},Qt,et,xe,Kt;while(!0){if(Mt=w[w.length-1],this.defaultActions[Mt])Q=this.defaultActions[Mt];else{if(X===null||typeof X>"u")X=ge();Q=Ut[Mt]&&Ut[Mt][X]}if(typeof Q>"u"||!Q.length||!Q[0]){var oe="";Kt=[];for(Qt in Ut[Mt])if(this.terminals_[Qt]&&Qt>Ve)Kt.push("'"+this.terminals_[Qt]+"'");if(z.showPosition)oe="Parse error on line "+(Lt+1)+`:
2
+ `+z.showPosition()+`
3
+ Expecting `+Kt.join(", ")+", got '"+(this.terminals_[X]||X)+"'";else oe="Parse error on line "+(Lt+1)+": Unexpected "+(X==me?"end of input":"'"+(this.terminals_[X]||X)+"'");this.parseError(oe,{text:z.match,token:this.terminals_[X]||X,line:z.yylineno,loc:se,expected:Kt})}if(Q[0]instanceof Array&&Q.length>1)throw Error("Parse Error: multiple actions possible at state: "+Mt+", token: "+X);switch(Q[0]){case 1:if(w.push(X),F.push(z.yytext),h.push(z.yylloc),w.push(Q[1]),X=null,!ae){if(_e=z.yyleng,y=z.yytext,Lt=z.yylineno,se=z.yylloc,be>0)be--}else X=ae,ae=null;break;case 2:if(et=this.productions_[Q[1]][1],Yt.$=F[F.length-et],Yt._$={first_line:h[h.length-(et||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(et||1)].first_column,last_column:h[h.length-1].last_column},Fe)Yt._$.range=[h[h.length-(et||1)].range[0],h[h.length-1].range[1]];if(ie=this.performAction.apply(Yt,[y,_e,Lt,It.yy,Q[1],F,h].concat(Ye)),typeof ie<"u")return ie;if(et)w=w.slice(0,-1*et*2),F=F.slice(0,-1*et),h=h.slice(0,-1*et);w.push(this.productions_[Q[1]][0]),F.push(Yt.$),h.push(Yt._$),xe=Ut[w[w.length-2]][w[w.length-1]],w.push(xe);break;case 3:return!0}}return!0},"parse")},Be=function(){var wt={EOF:1,parseError:t(function(E,w){if(this.yy.parser)this.yy.parser.parseError(E,w);else throw Error(E)},"parseError"),setInput:t(function(v,E){if(this.yy=E||this.yy||{},this._input=v,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 v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var E=v.match(/(?:\r\n?|\n).*/g);if(E)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),v},"input"),unput:t(function(v){var E=v.length,w=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var m=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),w.length-1)this.yylineno-=w.length-1;var F=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:w?(w.length===m.length?this.yylloc.first_column:0)+m[m.length-w.length].length-w[0].length:this.yylloc.first_column-E},this.options.ranges)this.yylloc.range=[F[0],F[0]+this.yyleng-E];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(v){this.unput(this.match.slice(v))},"less"),pastInput:t(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var v=this.match;if(v.length<20)v+=this._input.substr(0,20-v.length);return(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var v=this.pastInput(),E=Array(v.length+1).join("-");return v+this.upcomingInput()+`
5
+ `+E+"^"},"showPosition"),test_match:t(function(v,E){var w,m,F;if(this.options.backtrack_lexer){if(F={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)F.yylloc.range=this.yylloc.range.slice(0)}if(m=v[0].match(/(?:\r\n?|\n).*/g),m)this.yylineno+=m.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,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(v[0].length),this.matched+=v[0],w=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(w)return w;else if(this._backtrack){for(var h in F)this[h]=F[h];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var v,E,w,m;if(!this._more)this.yytext="",this.match="";var F=this._currentRules();for(var h=0;h<F.length;h++)if(w=this._input.match(this.rules[F[h]]),w&&(!E||w[0].length>E[0].length)){if(E=w,m=h,this.options.backtrack_lexer)if(v=this.test_match(w,F[h]),v!==!1)return v;else if(this._backtrack){E=!1;continue}else return!1;else if(!this.options.flex)break}if(E){if(v=this.test_match(E,F[m]),v!==!1)return v;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var E=this.next();if(E)return E;else return this.lex()},"lex"),begin:t(function(E){this.conditionStack.push(E)},"begin"),popState:t(function(){var E=this.conditionStack.length-1;if(E>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(E){if(E=this.conditionStack.length-1-Math.abs(E||0),E>=0)return this.conditionStack[E];else return"INITIAL"},"topState"),pushState:t(function(E){this.begin(E)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(E,w,m,F){var h=F;switch(m){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return wt}();ne.lexer=Be;function Ht(){this.yy={}}return t(Ht,"Parser"),Ht.prototype=ne,ne.Parser=Ht,new Ht}();Jt.parser=Jt;var je=Jt,Ce=t((e)=>u()[e],"getRequiredConfig"),G=new Set(["label","descr","techn","type"]),Bt=t((e,n)=>{for(let[a,o]of Object.entries(n)){if(o===void 0)continue;if(typeof o==="object"){let[p,l]=Object.entries(o)[0];e[p]=G.has(p)?{text:l}:l}else e[a]=o}},"assignAttributes"),Re=t(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),Z=[],Ot=[""],q="global",J="",tt=[Re()],Xt=[],de="",pe=!1,Zt=4,$t=2,we,ze=t(function(){return we},"getC4Type"),We=t(function(e){we=j(e,u())},"setC4Type"),Xe=t(function(e,n,a,o,p,l,r,d,s){if(e===void 0||e===null||n===void 0||n===null||a===void 0||a===null||o===void 0||o===null)return;let f={},b=Xt.find((_)=>_.from===n&&_.to===a);if(b)f=b;else Xt.push(f);if(f.type=e,f.from=n,f.to=a,f.label={text:o},p===void 0||p===null)f.techn??={text:""};else if(typeof p==="object"){let[_,x]=Object.entries(p)[0];f[_]=G.has(_)?{text:x}:x}else f.techn={text:p};if(l===void 0||l===null)f.descr??={text:""};else if(typeof l==="object"){let[_,x]=Object.entries(l)[0];f[_]=G.has(_)?{text:x}:x}else f.descr={text:l};Bt(f,{sprite:r,tags:d,link:s}),f.wrap=Nt()},"addRel"),qe=t(function(e,n,a,o,p,l,r){if(n===null||a===null)return;let d={},s=Z.find((f)=>f.alias===n);if(s&&n===s.alias)d=s;else d.alias=n,Z.push(d);if(a===void 0||a===null)d.label={text:""};else d.label={text:a};if(o===void 0||o===null)d.descr??={text:""};else if(typeof o==="object"){let[f,b]=Object.entries(o)[0];d[f]=G.has(f)?{text:b}:b}else d.descr={text:o};Bt(d,{sprite:p,tags:l,link:r}),d.typeC4Shape={text:e},d.parentBoundary=q,d.wrap=Nt()},"addPersonOrSystem"),He=t(function(e,n,a,o,p,l,r,d){if(n===null||a===null)return;let s={},f=Z.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,Z.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.techn={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{sprite:l,tags:r,link:d}),s.wrap=Nt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addContainer"),Qe=t(function(e,n,a,o,p,l,r,d){if(n===null||a===null)return;let s={},f=Z.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,Z.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.techn={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{sprite:l,tags:r,link:d}),s.wrap=Nt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addComponent"),Ke=t(function(e,n,a,o,p){if(e===null||n===null)return;let l={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)l=r;else l.alias=e,tt.push(l);if(n===void 0||n===null)l.label={text:""};else l.label={text:n};if(a===void 0||a===null)l.type={text:"system"};else if(typeof a==="object"){let[d,s]=Object.entries(a)[0];l[d]=G.has(d)?{text:s}:s}else l.type={text:a};Bt(l,{tags:o,link:p}),l.parentBoundary=q,l.wrap=Nt(),J=q,q=e,Ot.push(J)},"addPersonOrSystemBoundary"),Ge=t(function(e,n,a,o,p){if(e===null||n===null)return;let l={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)l=r;else l.alias=e,tt.push(l);if(n===void 0||n===null)l.label={text:""};else l.label={text:n};if(a===void 0||a===null)l.type={text:"container"};else if(typeof a==="object"){let[d,s]=Object.entries(a)[0];l[d]=G.has(d)?{text:s}:s}else l.type={text:a};Bt(l,{tags:o,link:p}),l.parentBoundary=q,l.wrap=Nt(),J=q,q=e,Ot.push(J)},"addContainerBoundary"),Je=t(function(e,n,a,o,p,l,r,d){if(n===null||a===null)return;let s={},f=tt.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,tt.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.type={text:"node"};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.type={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{tags:r,link:d}),s.nodeType=e,s.parentBoundary=q,s.wrap=Nt(),J=q,q=n,Ot.push(J)},"addDeploymentNode"),Ze=t(function(){q=J,Ot.pop(),J=Ot.pop(),Ot.push(J)},"popBoundaryParseStack"),$e=t(function(e,n,a,o,p,l,r,d,s,f,b){let _=Z.find((x)=>x.alias===n);if(_===void 0){if(_=tt.find((x)=>x.alias===n),_===void 0)return}if(a!==void 0&&a!==null)if(typeof a==="object"){let[x,S]=Object.entries(a)[0];_[x]=S}else _.bgColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[x,S]=Object.entries(o)[0];_[x]=S}else _.fontColor=o;if(p!==void 0&&p!==null)if(typeof p==="object"){let[x,S]=Object.entries(p)[0];_[x]=S}else _.borderColor=p;if(l!==void 0&&l!==null)if(typeof l==="object"){let[x,S]=Object.entries(l)[0];_[x]=S}else _.shadowing=l;if(r!==void 0&&r!==null)if(typeof r==="object"){let[x,S]=Object.entries(r)[0];_[x]=S}else _.shape=r;if(d!==void 0&&d!==null)if(typeof d==="object"){let[x,S]=Object.entries(d)[0];_[x]=S}else _.sprite=d;if(s!==void 0&&s!==null)if(typeof s==="object"){let[x,S]=Object.entries(s)[0];_[x]=S}else _.techn=s;if(f!==void 0&&f!==null)if(typeof f==="object"){let[x,S]=Object.entries(f)[0];_[x]=S}else _.legendText=f;if(b!==void 0&&b!==null)if(typeof b==="object"){let[x,S]=Object.entries(b)[0];_[x]=S}else _.legendSprite=b},"updateElStyle"),t0=t(function(e,n,a,o,p,l,r){let d=Xt.find((s)=>s.from===n&&s.to===a);if(d===void 0)return;if(o!==void 0&&o!==null)if(typeof o==="object"){let[s,f]=Object.entries(o)[0];d[s]=f}else d.textColor=o;if(p!==void 0&&p!==null)if(typeof p==="object"){let[s,f]=Object.entries(p)[0];d[s]=f}else d.lineColor=p;if(l!==void 0&&l!==null)if(typeof l==="object"){let[s,f]=Object.entries(l)[0];d[s]=parseInt(f)}else d.offsetX=parseInt(l);if(r!==void 0&&r!==null)if(typeof r==="object"){let[s,f]=Object.entries(r)[0];d[s]=parseInt(f)}else d.offsetY=parseInt(r)},"updateRelStyle"),e0=t(function(e,n,a){let o=Zt,p=$t;if(typeof n==="object"){let l=Object.values(n)[0];o=parseInt(l)}else o=parseInt(n);if(typeof a==="object"){let l=Object.values(a)[0];p=parseInt(l)}else p=parseInt(a);if(o>=1)Zt=o;if(p>=1)$t=p},"updateLayoutConfig"),n0=t(function(){return Zt},"getC4ShapeInRow"),r0=t(function(){return $t},"getC4BoundaryInRow"),s0=t(function(){return q},"getCurrentBoundaryParse"),a0=t(function(){return J},"getParentBoundaryParse"),Oe=t(function(e){if(e===void 0||e===null)return Z;else return Z.filter((n)=>n.parentBoundary===e)},"getC4ShapeArray"),i0=t(function(e){return Z.find((n)=>n.alias===e)??tt.find((n)=>n.alias===e)},"getC4Shape"),o0=t(function(e){return Object.keys(Oe(e))},"getC4ShapeKeys"),Pe=t(function(e){if(e===void 0||e===null)return tt;else return tt.filter((n)=>n.parentBoundary===e)},"getBoundaries"),l0=Pe,c0=t(function(){return Xt},"getRels"),u0=t(function(){return de},"getTitle"),h0=t(function(e){pe=e},"setWrap"),Nt=t(function(){return pe},"autoWrap"),d0=t(function(){Z=[],tt=[Re()],J="",q="global",Ot=[""],Xt=[],Ot=[""],de="",pe=!1,Zt=4,$t=2},"clear"),p0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},f0={FILLED:0,OPEN:1},y0={LEFTOF:0,RIGHTOF:1,OVER:2},_0=t(function(e){de=j(e,u())},"setTitle"),ce={addPersonOrSystem:qe,addPersonOrSystemBoundary:Ke,addContainer:He,addContainerBoundary:Ge,addComponent:Qe,addDeploymentNode:Je,popBoundaryParseStack:Ze,addRel:Xe,updateElStyle:$e,updateRelStyle:t0,updateLayoutConfig:e0,autoWrap:Nt,setWrap:h0,getC4ShapeArray:Oe,getC4Shape:i0,getC4ShapeKeys:o0,getBoundaries:Pe,getBoundarys:l0,getCurrentBoundaryParse:s0,getParentBoundaryParse:a0,getRels:c0,getTitle:u0,getC4Type:ze,getC4ShapeInRow:n0,getC4BoundaryInRow:r0,setAccTitle:N,getAccTitle:P,getAccDescription:R,setAccDescription:M,getConfig:t(()=>Ce("c4"),"getConfig"),clear:d0,LINETYPE:p0,ARROWTYPE:f0,PLACEMENT:y0,setTitle:_0,setC4Type:We},De=t(function(e,n){return dr(e,n)},"drawRect"),b0=t((e,n,a,o)=>{let p=e.append("g"),l=0;for(let r of n){let d=r.textColor?r.textColor:"#444444",s=r.lineColor?r.lineColor:"#444444",f=r.offsetX?parseInt(String(r.offsetX)):0,b=r.offsetY?parseInt(String(r.offsetY)):0,_="";if(l===0){let B=p.append("line");if(B.attr("x1",r.startPoint.x),B.attr("y1",r.startPoint.y),B.attr("x2",r.endPoint.x),B.attr("y2",r.endPoint.y),B.attr("stroke-width","1"),B.attr("stroke",s),B.style("fill","none"),r.type!=="rel_b")B.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")B.attr("marker-start","url(#"+o+"-arrowend)");l=-1}else{let B=p.append("path");if(B.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),r.type!=="rel_b")B.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")B.attr("marker-start","url(#"+o+"-arrowend)")}let x=r.label.width,S=a.messageFont();if(jt(a)(r.label.text,p,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+f,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+b,x,r.label.height,{fill:d},S),r.techn&&r.techn.text!=="")S=a.messageFont(),jt(a)("["+r.techn.text+"]",p,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+f,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+a.messageFontSize+5+b,Math.max(x,r.techn.width),r.techn.height,{fill:d,"font-style":"italic"},S)}},"drawRels"),m0=t(function(e,n,a){let o=e.append("g"),p=n.bgColor?n.bgColor:"none",l=n.borderColor?n.borderColor:"#444444",r=n.fontColor?n.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(n.nodeType)d={"stroke-width":1};let s={x:n.x,y:n.y,fill:p,stroke:l,width:n.width,height:n.height,rx:2.5,ry:2.5,attrs:d};De(o,s);let f=a.boundaryFont();if(f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=r,jt(a)(n.label.text,o,n.x,n.y+n.label.Y,n.width,n.height,{fill:"#444444"},f),n.type&&n.type.text!=="")f=a.boundaryFont(),f.fontColor=r,jt(a)(n.type.text,o,n.x,n.y+n.type.Y,n.width,n.height,{fill:"#444444"},f);if(n.descr&&n.descr.text!=="")f=a.boundaryFont(),f.fontSize=f.fontSize-2,f.fontColor=r,jt(a)(n.descr.text,o,n.x,n.y+n.descr.Y,n.width,n.height,{fill:"#444444"},f)},"drawBoundary"),g0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),x0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),v0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),k0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),T0=t(function(e,n){let o=e.append("defs").append("marker").attr("id",n+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),jt=function(){function e(p,l,r,d,s,f,b){let _=l.append("text").attr("x",r+s/2).attr("y",d+f/2+5).style("text-anchor","middle").text(p);o(_,b)}t(e,"byText");function n(p,l,r,d,s,f,b,_){let{fontSize:x,fontFamily:S,fontWeight:B}=_,U=p.split(C.lineBreakRegex);for(let V=0;V<U.length;V++){let Y=V*x-x*(U.length-1)/2,H=l.append("text").attr("x",r+s/2).attr("y",d).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",x).style("font-weight",B).style("font-family",S);H.append("tspan").attr("dy",Y).text(U[V]).attr("alignment-baseline","mathematical"),o(H,b)}}t(n,"byTspan");function a(p,l,r,d,s,f,b,_){let x=l.append("switch"),B=x.append("foreignObject").attr("x",r).attr("y",d).attr("width",s).attr("height",f).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");B.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(p),n(p,x,r,d,s,f,b,_),o(B,b)}t(a,"byFo");function o(p,l){for(let r in l)if(l.hasOwnProperty(r))p.attr(r,l[r])}return t(o,"_setTextAttrs"),function(p){return p.textPlacement==="fo"?a:p.textPlacement==="old"?e:n}}(),nt={drawRect:De,drawBoundary:m0,drawRels:b0,insertArrowHead:k0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertArrowCrossHead:T0,insertDatabaseIcon:g0,insertComputerIcon:x0,insertClockIcon:v0},C0=t((e,n)=>{if(n==="sandbox"){let o=g("#i"+e).node()?.contentDocument;if(!o)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:g(o.body),doc:o}}return{root:g("body"),doc:document}},"getDiagramRoot"),R0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),w0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),O0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},le=t((e)=>e?O0[e.toLowerCase()]:void 0,"keywordShape"),P0=t((e)=>{let n=le(e.shape)??le(e.sprite);if(n)return n;if(e.tags)for(let o of e.tags.split(",")){let p=le(o.trim());if(p)return p}let a=e.typeC4Shape.text;if(a==="person"||a==="external_person")return"person";if(w0.has(a))return"cylinder";if(R0.has(a))return"h-cyl";return"rounded"},"resolveNodeShape"),D0={person:"Person",system:"Software System",container:"Container",component:"Component"},N0=t((e)=>{let n=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return D0[n]??n.replace(/_/g," ")},"stereotypeLabel"),A0=t((e)=>e.startsWith("external_"),"isExternal"),L0=t((e)=>{let n=N0(e.typeC4Shape.text);return e.techn?.text?`[${n}: ${e.techn.text}]`:`[${n}]`},"stereotypeText"),Ne=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),I0=new Set(Ne),ve=t((e)=>I0.has(e),"isC4ElementType"),M0=t((e,n)=>{let a=e.typeC4Shape.text,o=e.bgColor??(ve(a)&&n[`${a}_bg_color`]),p=e.borderColor??(ve(a)&&n[`${a}_border_color`]),l=[];if(o)l.push(`fill:${o}`);if(p)l.push(`stroke:${p}`);return l.push(`color:${e.fontColor??"#FFFFFF"}`),l},"elementCssStyles"),ke=t((e,n,a,o,p)=>{let l=e.typeC4Shape.text,r=["c4-shape",`c4-${l}`];if(A0(l))r.push("c4-external");let d=P0(e),s=M0(e,n);if(d==="rounded"||d==="fr-rect")s.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:L0(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:r.join(" "),cssStyles:s,padding:a,look:o,useHtmlLabels:!1,width:p}},"buildC4Node"),zt=0,Wt=0,Ae=4,ue=2;Jt.yy=ce;var k={},Le=class{static{t(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,he(e.db.getConfig())}setData(e,n,a,o){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=n,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=o}updateVal(e,n,a,o){if(e[n]===void 0)e[n]=a;else e[n]=o(a,e[n])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let n=this.nextData.stopx,a=this.data.widthLimit,o=this.nextData.startx===this.nextData.stopx?n+e.margin:n+e.margin*2,p=o+e.width,l=this.nextData.starty+e.margin*2,r=l+e.height;if(o>=a||p>=a||this.nextData.cnt>Ae)o=this.nextData.startx+e.margin+k.nextLinePaddingX,l=this.nextData.stopy+e.margin*2,this.nextData.stopx=p=o+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=l+e.height,this.nextData.cnt=1;e.x=o,e.y=l,this.updateVal(this.data,"startx",o,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",p,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",o,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",p,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},he(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},he=t(function(e){if(Se(k,e),e?.fontFamily)k.personFontFamily=k.systemFontFamily=k.messageFontFamily=e.fontFamily;if(e?.fontSize)k.personFontSize=k.systemFontSize=k.messageFontSize=e.fontSize;if(e?.fontWeight)k.personFontWeight=k.systemFontWeight=k.messageFontWeight=e.fontWeight},"setConf"),Gt=t((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),B0=t((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Dt(e,n,a,o,p){let l=n[e];if(!l.width)if(a)l.text=Vr(l.text,p,o),l.textLines=l.text.split(C.lineBreakRegex).length,l.width=p,l.height=Ri(l.text,o);else{let r=l.text.split(C.lineBreakRegex);l.textLines=r.length;let d=0;l.height=0,l.width=0;for(let s of r)l.width=Math.max(Pt(s,o),l.width),d=Ri(s,o),l.height=l.height+d}return l}t(Dt,"calcC4ShapeTextWH");var Ie=t(function(e,n,a){let o=a.data.startx,p=a.data.starty;n.x=o,n.y=p,n.width=a.data.stopx-o,n.height=a.data.stopy-p,n.intersect=(s)=>T.rect({x:n.x+n.width/2,y:n.y+n.height/2,width:n.width,height:n.height},s),n.label.y=k.c4ShapeMargin-35;let l=n.wrap&&k.wrap,r=Gt(k);r.fontSize=r.fontSize+2,r.fontWeight="bold";let d=Pt(n.label.text,r);Dt("label",n,l,r,d),nt.drawBoundary(e,n,k)},"drawBoundary"),Me=t(async function(e,n,a,o){let p=u(),l=p.look??"classic",r={config:p},d=n.attr("id")??"",s=o.map((b)=>a[Number(b)]),f=t((b)=>{let _=b.shape?Oi[b.shape]:void 0;if(!_)throw Error(`C4: no shape handler for "${b.shape}"`);return _},"shapeHandlerFor");await Promise.all(s.map(async(b)=>{let _=ke(b,k,k.c4ShapePadding,l,k.width);_.domId=`${d}-${_.id}`;let x=await f(_)(n,_,r);b.width=_.width??k.width,b.height=_.height??k.height,b.margin=k.c4ShapeMargin,x.remove()}));for(let b of s)e.insert(b);await Promise.all(s.map(async(b)=>{let _=ke(b,k,k.c4ShapePadding,l,k.width);_.domId=`${d}-${_.id}`,_.x=b.x+b.width/2,_.y=b.y+b.height/2;let x=n.append("g").attr("transform",`translate(${b.x+b.width/2}, ${b.y+b.height/2})`);await f(_)(x,_,r),b.intersect=_.intersect})),e.bumpLastMargin(k.c4ShapeMargin)},"drawC4ShapeArray"),V0=class{static{t(this,"Point")}constructor(e,n){this.x=e,this.y=n}},Ee=t(function(e,n){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:a,y:o}=e.intersect(n);return new V0(a,o)},"getIntersectPoint"),Y0=t(function(e,n){let a={x:0,y:0};a.x=n.x+n.width/2,a.y=n.y+n.height/2;let o=Ee(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let p=Ee(n,a);return{startPoint:o,endPoint:p}},"getIntersectPoints"),F0=t(function(e,n,a,o,p){let l=o.db.getC4Type(),r=0;for(let d of n){r=r+1;let s=d.wrap&&k.wrap,f=B0(k);if(l==="C4Dynamic")d.label.text=r+": "+d.label.text;let b=Pt(d.label.text,f);if(Dt("label",d,s,f,b),d.techn&&d.techn.text!=="")b=Pt(d.techn.text,f),Dt("techn",d,s,f,b);if(d.descr&&d.descr.text!=="")b=Pt(d.descr.text,f),Dt("descr",d,s,f,b);let _=a(d.from),x=a(d.to);if(!_||!x)throw Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let S=Y0(_,x);if(!S.startPoint||!S.endPoint)throw Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=S.startPoint,d.endPoint=S.endPoint}nt.drawRels(e,n,k,p)},"drawRels");async function fe(e,n,a,o,p){let l=p.db,r=new Le(p);r.data.widthLimit=a.data.widthLimit/Math.min(ue,o.length);for(let[d,s]of o.entries()){let f=0;if(s.image={width:0,height:0,Y:0},s.sprite)s.image.width=48,s.image.height=48,s.image.Y=f,f=s.image.Y+s.image.height;let b=s.wrap&&k.wrap,_=Gt(k);_.fontSize=_.fontSize+2,_.fontWeight="bold";let x=Dt("label",s,b,_,r.data.widthLimit);if(x.Y=f+8,f=x.Y+x.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let V=Gt(k),Y=Dt("type",s,b,V,r.data.widthLimit);Y.Y=f+5,f=Y.Y+Y.height}if(s.descr&&s.descr.text!==""){let V=Gt(k);V.fontSize=V.fontSize-2;let Y=Dt("descr",s,b,V,r.data.widthLimit);Y.Y=f+20,f=Y.Y+Y.height}if(d==0||d%ue===0){let V=a.data.startx+k.diagramMarginX,Y=a.data.stopy+k.diagramMarginY+f;r.setData(V,V,Y,Y)}else{let V=r.data.stopx!==r.data.startx?r.data.stopx+k.diagramMarginX:r.data.startx,Y=r.data.starty;r.setData(V,V,Y,Y)}r.name=s.alias;let S=l.getC4ShapeArray(s.alias),B=l.getC4ShapeKeys(s.alias);if(B.length>0)await Me(r,e,S,B);n=s.alias;let U=l.getBoundaries(n);if(U.length>0)await fe(e,n,r,U,p);if(s.alias!=="global")Ie(e,s,r);a.data.stopy=Math.max(r.data.stopy+k.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(r.data.stopx+k.c4ShapeMargin,a.data.stopx),zt=Math.max(zt,a.data.stopx),Wt=Math.max(Wt,a.data.stopy)}}t(fe,"drawInsideBoundary");var U0=t(async function(e,n,a,o){k=Ce("c4");let p=u().securityLevel,{root:l}=C0(n,p),r=o.db;r.setWrap(k.wrap),Ae=r.getC4ShapeInRow(),ue=r.getC4BoundaryInRow(),i.debug(`C:${JSON.stringify(k,null,2)}`);let d=l.select(`[id="${n}"]`);nt.insertComputerIcon(d,n),nt.insertDatabaseIcon(d,n),nt.insertClockIcon(d,n);let s=new Le(o);s.setData(k.diagramMarginX,k.diagramMarginX,k.diagramMarginY,k.diagramMarginY),s.data.widthLimit=screen.availWidth,zt=k.diagramMarginX,Wt=k.diagramMarginY;let f=r.getTitle(),b=r.getBoundaries("");await fe(d,"",s,b,o),nt.insertArrowHead(d,n),nt.insertArrowEnd(d,n),nt.insertArrowCrossHead(d,n),nt.insertArrowFilledHead(d,n),F0(d,r.getRels(),r.getC4Shape,o,n),s.data.stopx=zt,s.data.stopy=Wt;let _=s.data,{startx:x,starty:S}=_,U=Wt-S+2*k.diagramMarginY,V=zt-x,Y=V+2*k.diagramMarginX;if(f)d.append("text").text(f).attr("x",V/2-4*k.diagramMarginX).attr("y",S+k.diagramMarginY);W(d,U,Y,k.useMaxWidth);let H=f?60:0;d.attr("viewBox",x-k.diagramMarginX+" -"+(k.diagramMarginY+H)+" "+Y+" "+(U+H)),i.debug("models:",_)},"draw"),Te={drawPersonOrSystemArray:Me,drawBoundary:Ie,setConf:he,draw:U0},j0=t(()=>{let e=u().c4??{},n=new CSSStyleSheet;for(let a of Ne){let o=n.cssRules[n.insertRule(`.c4-shape.c4-${a} .label {}`,n.cssRules.length)],p=e[`${a}FontFamily`],l=e[`${a}FontSize`],r=e[`${a}FontWeight`];if(p)o.style.setProperty("font-family",p);if(l)o.style.setProperty("font-size",typeof l==="number"?`${l}px`:l);if(r)o.style.setProperty("font-weight",String(r))}return[...n.cssRules].filter((a)=>a.style.length>0).map((a)=>` ${a.cssText}`).join(`
7
+ `)},"elementFontStyles"),z0=t((e)=>`.person {
8
+ stroke: ${e.personBorder};
9
+ fill: ${e.personBkg};
10
+ }
11
+ ${j0()}
12
+
13
+ /* The element font colour is set inline per element (default white); the
14
+ label text takes it via currentColor. */
15
+ .c4-shape .label,
16
+ .c4-shape .label text {
17
+ color: inherit;
18
+ fill: currentColor;
19
+ }
20
+ /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
21
+ .c4-shape .label .c4-name {
22
+ font-weight: bold;
23
+ }
24
+ .c4-shape .label .c4-type {
25
+ font-size: 0.75em;
26
+ }
27
+ .c4-shape .label .c4-descr {
28
+ font-size: 0.82em;
29
+ }
30
+ .c4-shape .basic,
31
+ .c4-shape rect,
32
+ .c4-shape path,
33
+ .c4-shape circle,
34
+ .c4-shape ellipse,
35
+ .c4-shape line {
36
+ stroke-width: 2px;
37
+ }
38
+ `,"getStyles"),W0=z0,r1={parser:je,db:ce,renderer:Te,styles:W0,init:t(({c4:e,wrap:n})=>{Te.setConf(e),ce.setWrap(n)},"init")};export{r1 as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Ds}from"./chunk-9xb3j03w.js";export{Ds as createEventModelingServices};
Binary file
Binary file
@@ -0,0 +1,34 @@
1
+ import{t,pe,Ua,f,h,F,A,W,L,N,P,M,R,O,D,g,J,Z,v}from"./chunk-22rjbwxp.js";var ue=(e,s)=>Ua(e,"a",-s),St=ue;function kt(e,s){let i=he(e),n=i.filter((c)=>fe(c,e)),r=0,o=0,a=[];if(n.length>1){let c=Wt(n);for(let d=0;d<n.length;++d){let l=n[d];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((d,l)=>l.angle-d.angle);let x=n[n.length-1];for(let d=0;d<n.length;++d){let l=n[d];o+=(x.x+l.x)*(l.y-x.y);let k={x:(l.x+x.x)/2,y:(l.y+x.y)/2},p=null;for(let w=0;w<l.parentIndex.length;++w)if(x.parentIndex.includes(l.parentIndex[w])){let I=e[l.parentIndex[w]],z=Math.atan2(l.x-I.x,l.y-I.y),B=Math.atan2(x.x-I.x,x.y-I.y),j=B-z;if(j<0)j+=2*Math.PI;let C=B-j/2,m=ot(k,{x:I.x+I.radius*Math.sin(C),y:I.y+I.radius*Math.cos(C)});if(m>I.radius*2)m=I.radius*2;if(p==null||p.width>m)p={circle:I,width:m,p1:l,p2:x,large:m>I.radius,sweep:!0}}if(p!=null)a.push(p),r+=Et(p.circle.radius,p.width),x=l}}else{let c=e[0];for(let d=1;d<e.length;++d)if(e[d].radius<c.radius)c=e[d];let x=!1;for(let d=0;d<e.length;++d)if(ot(e[d],c)>Math.abs(c.radius-e[d].radius)){x=!0;break}if(x)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function fe(e,s){return s.every((i)=>ot(e,i)<i.radius+0.0000000001)}function he(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Gt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function Et(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function ot(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function Rt(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return Et(e,n)+Et(s,r)}function Gt(e,s){let i=ot(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,x=e.y+o*(s.y-e.y)/i,d=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+d,y:x-l},{x:c-d,y:x+l}]}function Wt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function de(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),x=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let d=0;d<r;++d){x/=2;let l=s+x,k=e(l);if(k*a>=0)s=l;if(Math.abs(x)<o||k===0)return l}return s+x}function Tt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function qt(e,s){return Tt(e).map(()=>Tt(s))}function pt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function zt(e){return Math.sqrt(pt(e,e))}function At(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function gt(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Kt(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,x=i.rho!==void 0?i.rho:1,d=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,k=i.sigma!==void 0?i.sigma:0.5,p,w=s.length,I=Array(w+1);I[0]=s,I[0].fx=e(s),I[0].id=0;for(let _=0;_<w;++_){let u=s.slice();u[_]=u[_]?u[_]*r:o,I[_+1]=u,I[_+1].fx=e(u),I[_+1].id=_+1}function z(_){for(let u=0;u<_.length;u++)I[w][u]=_[u];I[w].fx=_.fx}let B=(_,u)=>_.fx-u.fx,j=s.slice(),C=s.slice(),m=s.slice(),S=s.slice();for(let _=0;_<n;++_){if(I.sort(B),i.history){let b=I.map((y)=>{let G=y.slice();return G.fx=y.fx,G.id=y.id,G});b.sort((y,G)=>y.id-G.id),i.history.push({x:I[0].slice(),fx:I[0].fx,simplex:b})}p=0;for(let b=0;b<w;++b)p=Math.max(p,Math.abs(I[0][b]-I[1][b]));if(Math.abs(I[0].fx-I[w].fx)<a&&p<c)break;for(let b=0;b<w;++b){j[b]=0;for(let y=0;y<w;++y)j[b]+=I[y][b];j[b]/=w}let u=I[w];if(gt(C,1+x,j,-x,u),C.fx=e(C),C.fx<I[0].fx)if(gt(S,1+d,j,-d,u),S.fx=e(S),S.fx<C.fx)z(S);else z(C);else if(C.fx>=I[w-1].fx){let b=!1;if(C.fx>u.fx)if(gt(m,1+l,j,-l,u),m.fx=e(m),m.fx<u.fx)z(m);else b=!0;else if(gt(m,1-l*x,j,l*x,u),m.fx=e(m),m.fx<C.fx)z(m);else b=!0;if(b){if(k>=1)break;for(let y=1;y<I.length;++y)gt(I[y],1-k,I[0],k,I[y]),I[y].fx=e(I[y])}}else z(C)}return I.sort(B),{fx:I[0].fx,x:I[0]}}function ge(e,s,i,n,r,o,a){let c=i.fx,x=pt(i.fxprime,s),d=c,l=c,k=x,p=0;r=r||1,o=o||0.000001,a=a||0.1;function w(I,z,B){for(let j=0;j<16;++j)if(r=(I+z)/2,gt(n.x,1,i.x,r,s),d=n.fx=e(n.x,n.fxprime),k=pt(n.fxprime,s),d>c+o*r*x||d>=B)z=r;else{if(Math.abs(k)<=-a*x)return r;if(k*(z-I)>=0)z=I;I=r,B=d}return 0}for(let I=0;I<10;++I){if(gt(n.x,1,i.x,r,s),d=n.fx=e(n.x,n.fxprime),k=pt(n.fxprime,s),d>c+o*r*x||I&&d>=l)return w(p,r,l);if(Math.abs(k)<=-a*x)return r;if(k>=0)return w(r,p,d);l=d,p=r,r*=2}return r}function xe(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,x=1,d;i=i||{},d=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),At(a,n.fxprime,-1);for(let l=0;l<d;++l){if(x=ge(e,a,n,r,x),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:x});if(!x)At(a,n.fxprime,-1);else{gt(o,1,r.fxprime,-1,n.fxprime);let k=pt(n.fxprime,n.fxprime),p=Math.max(0,pt(o,r.fxprime)/k);gt(a,p,a,-1,r.fxprime),c=n,n=r,r=c}if(zt(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:x});return n}function Ht(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||ve,n=s.lossFunction||mt,r=ye(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let d=Kt((l)=>{let k={};for(let p=0;p<a.length;++p){let w=a[p];k[w]={x:l[2*p],y:l[2*p+1],radius:o[w].radius}}return n(k,r)},c,s).x;for(let l=0;l<a.length;++l){let k=a[l];o[k].x=d[2*l],o[k].y=d[2*l+1]}return o}var Yt=0.0000000001;function Ct(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Yt)return Math.abs(e-s);return de((n)=>Rt(e,s,n)-i,0,e+s)}function ye(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let x of n)for(let d=0;d<x.sets.length;d++){let l=String(x.sets[d]);c.set(l,x.size+(c.get(l)||0));for(let k=d+1;k<x.sets.length;k++){let p=String(x.sets[k]),w=`${l};${p}`,I=`${p};${l}`;c.set(w,x.size+(c.get(w)||0)),c.set(I,x.size+(c.get(I)||0))}}for(let x of n)if(x.sets.length<3)x.size=c.get(r(x.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let x=c.sets[0],d=c.sets[1];a.add(r(c.sets)),a.add(r([d,x]))}o.sort((c,x)=>c===x?0:c<x?-1:1);for(let c=0;c<o.length;++c){let x=o[c];for(let d=c+1;d<o.length;++d){let l=o[d];if(!a.has(r([x,l])))n.push({sets:[x,l],size:0})}}return n}function me(e,s,i){let n=qt(s.length,s.length),r=qt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],x=Math.sqrt(s[a].size/Math.PI),d=Math.sqrt(s[c].size/Math.PI),l=Ct(x,d,o.size);n[a][c]=n[c][a]=l;let k=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))k=1;else if(o.size<=0.0000000001)k=-1;r[a][c]=r[c][a]=k}),{distances:n,constraints:r}}function be(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let x=o+1;x<i.length;++x){let d=e[2*x],l=e[2*x+1],k=i[o][x],p=n[o][x],w=(d-a)*(d-a)+(l-c)*(l-c),I=Math.sqrt(w),z=w-k*k;if(p>0&&I<=k||p<0&&I>=k)continue;r+=2*z*z,s[2*o]+=4*z*(a-d),s[2*o+1]+=4*z*(c-l),s[2*x]+=4*z*(d-a),s[2*x+1]+=4*z*(l-c)}}return r}function ve(e,s={}){let i=Ie(e,s),n=s.lossFunction||mt;if(e.length>=8){let r=ke(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ke(e,s={}){let i=s.restarts||10,n=[],r={};for(let p of e)if(p.sets.length===1)r[p.sets[0]]=n.length,n.push(p);let{distances:o,constraints:a}=me(e,n,r),c=zt(o.map(zt))/o.length;o=o.map((p)=>p.map((w)=>w/c));let x=(p,w)=>be(p,w,o,a),d=null;for(let p=0;p<i;++p){let w=Tt(o.length*2).map(Math.random),I=xe(x,w,s);if(!d||I.fx<d.fx)d=I}let l=d.x,k={};for(let p=0;p<n.length;++p){let w=n[p];k[w.sets[0]]={x:l[2*p]*c,y:l[2*p+1]*c,radius:Math.sqrt(w.size/Math.PI)}}if(s.history)for(let p of s.history)At(p.x,c);return k}function Ie(e,s){let i=s&&s.lossFunction?s.lossFunction:mt,n={},r={};for(let k of e)if(k.sets.length===1){let p=k.sets[0];n[p]={x:10000000000,y:10000000000,rowid:n.length,size:k.size,radius:Math.sqrt(k.size/Math.PI)},r[p]=[]}e=e.filter((k)=>k.sets.length===2);for(let k of e){let p=k.weight!=null?k.weight:1,w=k.sets[0],I=k.sets[1];if(k.size+Yt>=Math.min(n[w].size,n[I].size))p=0;r[w].push({set:I,size:k.size,weight:p}),r[I].push({set:w,size:k.size,weight:p})}let o=[];Object.keys(r).forEach((k)=>{let p=0;for(let w=0;w<r[k].length;++w)p+=r[k][w].size*r[k][w].weight;o.push({set:k,size:p})});function a(k,p){return p.size-k.size}o.sort(a);let c={};function x(k){return k.set in c}function d(k,p){n[p].x=k.x,n[p].y=k.y,c[p]=!0}d({x:0,y:0},o[0].set);for(let k=1;k<o.length;++k){let p=o[k].set,w=r[p].filter(x),I=n[p];if(w.sort(a),w.length===0)throw"ERROR: missing pairwise overlap information";let z=[];for(var l=0;l<w.length;++l){let C=n[w[l].set],m=Ct(I.radius,C.radius,w[l].size);z.push({x:C.x+m,y:C.y}),z.push({x:C.x-m,y:C.y}),z.push({y:C.y+m,x:C.x}),z.push({y:C.y-m,x:C.x});for(let S=l+1;S<w.length;++S){let _=n[w[S].set],u=Ct(I.radius,_.radius,w[S].size),b=Gt({x:C.x,y:C.y,radius:m},{x:_.x,y:_.y,radius:u});z.push(...b)}}let B=100000000000000000000000000000000000000000000000000,j=z[0];for(let C of z){n[p].x=C.x,n[p].y=C.y;let m=i(n,e);if(m<B)B=m,j=C}d(j,p)}return n}function mt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=Rt(a.radius,c.radius,ot(a,c))}else r=kt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],x=e[n.sets[1]];r=Rt(c.radius,x.radius,ot(c,x))}else r=kt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Me(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(ot(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x,y:d}=c;c.x=o*x-a*d,c.y=a*x+o*d}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Se(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(ot(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function Dt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Zt(e,s,i){if(s==null)s=Math.PI/2;let n=$t(e).map((d)=>Object.assign({},d)),r=Se(n);for(let d of r){Me(d,s,i);let l=Dt(d);d.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),d.bounds=l}r.sort((d,l)=>l.size-d.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(d,l,k){if(!d)return;let p=d.bounds,w,I;if(l)w=o.xRange.max-p.xRange.min+a;else{w=o.xRange.max-p.xRange.max;let z=(p.xRange.max-p.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(z<0)w+=z}if(k)I=o.yRange.max-p.yRange.min+a;else{I=o.yRange.max-p.yRange.max;let z=(p.yRange.max-p.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(z<0)I+=z}for(let z of d)z.x+=w,z.y+=I,n.push(z)}let x=1;while(x<r.length)c(r[x],!0,!1),c(r[x+1],!1,!0),c(r[x+2],!0,!0),x+=3,o=Dt(n);return Qt(n)}function Jt(e,s,i,n,r){let o=$t(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=Dt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let x,d;if(r){let w=Math.sqrt(r/Math.PI)*2;x=s/w,d=i/w}else x=s/(a.max-a.min),d=i/(c.max-c.min);let l=Math.min(d,x),k=(s-(a.max-a.min)*l)/2,p=(i-(c.max-c.min)*l)/2;return Qt(o.map((w)=>({radius:l*w.radius,x:n+k+(w.x-a.min)*l,y:n+p+(w.y-c.min)*l,setid:w.setid})))}function Qt(e){let s={};for(let i of e)s[i.setid]=i;return s}function $t(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function te(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,x=null,d=!0,l=!0,k=null,p=null,w=!1,I=null,z=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,B={},j=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],C=0,m=function(b){if(b in B)return B[b];var y=B[b]=j[C];if(C+=1,C>=j.length)C=0;return y},S=Ht,_=mt;function u(b){let y=b.datum(),G=new Set;y.forEach((E)=>{if(E.size==0&&E.sets.length==1)G.add(E.sets[0])}),y=y.filter((E)=>!E.sets.some((X)=>G.has(X)));let T={},K={};if(y.length>0){let E=S(y,{lossFunction:_,distinct:w});if(c)E=Zt(E,a,p);T=Jt(E,i,n,r,x),K=ne(T,y,z)}let at={};y.forEach((E)=>{if(E.label)at[E.sets]=E.label});function nt(E){if(E.sets in at)return at[E.sets];if(E.sets.length==1)return""+E.sets[0]}b.selectAll("svg").data([T]).enter().append("svg");let Y=b.select("svg");if(s)Y.attr("viewBox",`0 0 ${i} ${n}`);else Y.attr("width",i).attr("height",n);let U={},H=!1;Y.selectAll(".venn-area path").each(function(E){let X=this.getAttribute("d");if(E.sets.length==1&&X&&!w)H=!0,U[E.sets[0]]=Ee(X)});function V(E){return(X)=>{let yt=E.sets.map((dt)=>{let ht=U[dt],rt=T[dt];if(!ht)ht={x:i/2,y:n/2,radius:1};if(!rt)rt={x:i/2,y:n/2,radius:1};return{x:ht.x*(1-X)+rt.x*X,y:ht.y*(1-X)+rt.y*X,radius:ht.radius*(1-X)+rt.radius*X}});return Ut(yt,I)}}let Q=Y.selectAll(".venn-area").data(y,(E)=>E.sets),st=Q.enter().append("g").attr("class",(E)=>`venn-area venn-${E.sets.length==1?"circle":"intersection"}${E.colour||E.color?" venn-coloured":""}`).attr("data-venn-sets",(E)=>E.sets.join("_")),tt=st.append("path"),lt=st.append("text").attr("class","label").text((E)=>nt(E)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)tt.style("fill-opacity","0").filter((E)=>E.sets.length==1).style("fill",(E)=>E.colour?E.colour:E.color?E.color:m(E.sets)).style("fill-opacity",".25"),lt.style("fill",(E)=>{if(E.colour||E.color)return"#FFF";if(e.textFill)return e.textFill;return E.sets.length==1?m(E.sets):"#444"});function it(E){if(typeof E.transition==="function")return E.transition("venn").duration(o);return E}let et=b;if(H&&typeof et.transition==="function")et=it(b),et.selectAll("path").attrTween("d",V);else et.selectAll("path").attr("d",(E)=>Ut(E.sets.map((X)=>T[X])),I);let q=et.selectAll("text").filter((E)=>(E.sets in K)).text((E)=>nt(E)).attr("x",(E)=>Math.floor(K[E.sets].x)).attr("y",(E)=>Math.floor(K[E.sets].y));if(d)if(H)if("on"in q)q.on("end",wt(T,nt));else q.each("end",wt(T,nt));else q.each(wt(T,nt));let ft=it(Q.exit()).remove();if(typeof Q.transition==="function")ft.selectAll("path").attrTween("d",V);let ut=ft.selectAll("text").attr("x",i/2).attr("y",n/2);if(k!==null)lt.style("font-size","0px"),q.style("font-size",k),ut.style("font-size","0px");return{circles:T,textCentres:K,nodes:Q,enter:st,update:et,exit:ft}}return u.wrap=function(b){if(!arguments.length)return d;return d=b,u},u.useViewBox=function(){return s=!0,u},u.width=function(b){if(!arguments.length)return i;return i=b,u},u.height=function(b){if(!arguments.length)return n;return n=b,u},u.padding=function(b){if(!arguments.length)return r;return r=b,u},u.distinct=function(b){if(!arguments.length)return w;return w=b,u},u.colours=function(b){if(!arguments.length)return m;return m=b,u},u.colors=function(b){if(!arguments.length)return m;return m=b,u},u.fontSize=function(b){if(!arguments.length)return k;return k=b,u},u.round=function(b){if(!arguments.length)return I;return I=b,u},u.duration=function(b){if(!arguments.length)return o;return o=b,u},u.layoutFunction=function(b){if(!arguments.length)return S;return S=b,u},u.normalize=function(b){if(!arguments.length)return c;return c=b,u},u.scaleToFit=function(b){if(!arguments.length)return x;return x=b,u},u.styled=function(b){if(!arguments.length)return l;return l=b,u},u.orientation=function(b){if(!arguments.length)return a;return a=b,u},u.orientationOrder=function(b){if(!arguments.length)return p;return p=b,u},u.lossFunction=function(b){if(!arguments.length)return _;return _=b==="default"?mt:b==="logRatio"?Xt:b,u},u}function wt(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,x=(o.length+a.length)/3,d=a.pop(),l=[d],k=0,p=1.1;n.textContent=null;let w=[];function I(m){let S=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return S.textContent=m,w.push(S),n.append(S),S}let z=I(d);while(!0){if(d=a.pop(),!d)break;l.push(d);let m=l.join(" ");if(z.textContent=m,m.length>x&&z.getComputedTextLength()>r)l.pop(),z.textContent=l.join(" "),l=[d],z=I(d),k++}let B=0.35-k*p/2,j=n.getAttribute("x"),C=n.getAttribute("y");w.forEach((m,S)=>{m.setAttribute("x",j),m.setAttribute("y",C),m.setAttribute("dy",`${B+S*p}em`)})}}function _t(e,s,i){let n=s[0].radius-ot(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-ot(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=ot(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function ee(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=_t(n[0],e,s);for(let l=1;l<n.length;++l){let k=_t(n[l],e,s);if(k>=o)r=n[l],o=k}let a=Kt((l)=>-1*_t({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},x=!0;for(let l of e)if(ot(c,l)>l.radius){x=!1;break}for(let l of s)if(ot(c,l)<l.radius){x=!1;break}if(x)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let d={};if(kt(e,d),d.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(d.arcs.length==1)return{x:d.arcs[0].circle.x,y:d.arcs[0].circle.y};if(s.length)return ee(e,[]);return Wt(d.arcs.map((l)=>l.p1))}function we(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],x=e[c],d=ot(o,x);if(d+x.radius<=o.radius+0.0000000001)s[c].push(r);else if(d+o.radius<=x.radius+0.0000000001)s[r].push(c)}}return s}function ne(e,s,i){let n={},r=we(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},x={};for(let p=0;p<a.length;++p){c[a[p]]=!0;let w=r[a[p]];for(let I=0;I<w.length;++I)x[w[I]]=!0}let d=[],l=[];for(let p in e)if(p in c)d.push(e[p]);else if(!(p in x))l.push(e[p]);let k=ee(d,l,i);if(n[a]=k,k.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function _e(e,s,i){let n=[];return n.push(`
2
+ M`,e,s),n.push(`
3
+ m`,-i,0),n.push(`
4
+ a`,i,i,0,1,0,i*2,0),n.push(`
5
+ a`,i,i,0,1,0,-i*2,0),n.join(" ")}function Ee(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function se(e){if(e.length===0)return[];let s={};return kt(e,s),s.arcs}function ie(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return _e(n(o.x),n(o.y),n(o.radius))}let r=[`
6
+ M`,n(e[0].p2.x),n(e[0].p2.y)];for(let o of e){let a=n(o.circle.radius);r.push(`
7
+ A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Ut(e,s){return ie(se(e),s)}function re(e,s={}){let{lossFunction:i,layoutFunction:n=Ht,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:x=350,padding:d=15,scaleToFit:l=!1,symmetricalTextCentre:k=!1,distinct:p,round:w=2}=s,I=n(e,{lossFunction:i==="default"||!i?mt:i==="logRatio"?Xt:i,distinct:p});if(r)I=Zt(I,o,a);let z=Jt(I,c,x,d,l),B=ne(z,e,k),j=new Map(Object.keys(z).map((S)=>[S,{set:S,x:z[S].x,y:z[S].y,radius:z[S].radius}])),C=e.map((S)=>{let _=S.sets.map((y)=>j.get(y)),u=se(_),b=ie(u,w);return{circles:_,arcs:u,path:b,area:S,has:new Set(S.sets)}});function m(S){let _="";for(let u of C)if(u.has.size>S.length&&S.every((b)=>u.has.has(b)))_+=" "+u.path;return _}return C.map(({circles:S,arcs:_,path:u,area:b})=>({data:b,text:B[b.sets],circles:S,arcs:_,path:u,distinctPath:u+m(b.sets)}))}var Nt=function(){var e=t(function(C,m,S,_){for(S=S||{},_=C.length;_--;S[C[_]]=m);return S},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],x=[7,8,11,12,17,19,22,24,27],d=[1,57],l=[1,56],k=[1,58],p=[1,59],w=[1,60],I=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],z={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(m,S,_,u,b,y,G){var T=y.length-1;switch(b){case 1:return y[T-1];case 2:case 3:case 4:this.$=[];break;case 5:y[T-1].push(y[T]),this.$=y[T-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=y[T];break;case 8:u.setDiagramTitle(y[T].substr(6)),this.$=y[T].substr(6);break;case 9:if(u.addSubsetData([y[T]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([y[T-1]],y[T],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([y[T-2]],void 0,parseFloat(y[T])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([y[T-3]],y[T-2],parseFloat(y[T])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(y[T].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[T]);if(u.addSubsetData(y[T],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(y[T-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[T-1]);if(u.addSubsetData(y[T-1],y[T],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(y[T-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[T-2]);if(u.addSubsetData(y[T-2],void 0,parseFloat(y[T])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(y[T-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[T-3]);if(u.addSubsetData(y[T-3],y[T-2],parseFloat(y[T])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(y[T-1],y[T],void 0);break;case 20:case 21:u.addTextData(y[T-2],y[T-1],y[T]);break;case 23:u.addStyleData(y[T-1],y[T]);break;case 24:case 25:case 26:var K=u.getCurrentSets();if(!K)throw Error("text requires set");u.addTextData(K,y[T],void 0);break;case 27:case 28:var K=u.getCurrentSets();if(!K)throw Error("text requires set");u.addTextData(K,y[T-1],y[T]);break;case 29:case 41:this.$=[y[T]];break;case 30:case 42:this.$=[...y[T-2],y[T]];break;case 31:this.$=[y[T-2],y[T]];break;case 33:this.$=y[T].join(" ");break;case 34:this.$=[y[T]];break;case 35:y[T-1].push(y[T]),this.$=y[T-1];break;case 43:case 44:this.$=y[T];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(x,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:d,20:l,21:[1,53],28:52,29:54,30:55,31:k,32:p,33:w},e(i,[2,12]),e(i,[2,16]),e(x,[2,30]),e(x,[2,31]),e(x,[2,32]),e(x,[2,33],{30:61,16:d,20:l,31:k,32:p,33:w}),e(I,[2,34]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),e(I,[2,40]),e(I,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(m,S){if(S.recoverable)this.trace(m);else{var _=Error(m);throw _.hash=S,_}},"parseError"),parse:t(function(m){var S=this,_=[0],u=[],b=[null],y=[],G=this.table,T="",K=0,at=0,nt=0,Y=2,U=1,H=y.slice.call(arguments,1),V=Object.create(this.lexer),Q={yy:{}};for(var st in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,st))Q.yy[st]=this.yy[st];if(V.setInput(m,Q.yy),Q.yy.lexer=V,Q.yy.parser=this,typeof V.yylloc>"u")V.yylloc={};var tt=V.yylloc;y.push(tt);var lt=V.options&&V.options.ranges;if(typeof Q.yy.parseError==="function")this.parseError=Q.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function it(ct){_.length=_.length-2*ct,b.length=b.length-ct,y.length=y.length-ct}t(it,"popStack");function et(){var ct=u.pop()||V.lex()||U;if(typeof ct!=="number"){if(ct instanceof Array)u=ct,ct=u.pop();ct=S.symbols_[ct]||ct}return ct}t(et,"lex");var q,ft,ut,E,X,yt,dt={},ht,rt,Bt,vt;while(!0){if(ut=_[_.length-1],this.defaultActions[ut])E=this.defaultActions[ut];else{if(q===null||typeof q>"u")q=et();E=G[ut]&&G[ut][q]}if(typeof E>"u"||!E.length||!E[0]){var Mt="";vt=[];for(ht in G[ut])if(this.terminals_[ht]&&ht>Y)vt.push("'"+this.terminals_[ht]+"'");if(V.showPosition)Mt="Parse error on line "+(K+1)+`:
8
+ `+V.showPosition()+`
9
+ Expecting `+vt.join(", ")+", got '"+(this.terminals_[q]||q)+"'";else Mt="Parse error on line "+(K+1)+": Unexpected "+(q==U?"end of input":"'"+(this.terminals_[q]||q)+"'");this.parseError(Mt,{text:V.match,token:this.terminals_[q]||q,line:V.yylineno,loc:tt,expected:vt})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+ut+", token: "+q);switch(E[0]){case 1:if(_.push(q),b.push(V.yytext),y.push(V.yylloc),_.push(E[1]),q=null,!ft){if(at=V.yyleng,T=V.yytext,K=V.yylineno,tt=V.yylloc,nt>0)nt--}else q=ft,ft=null;break;case 2:if(rt=this.productions_[E[1]][1],dt.$=b[b.length-rt],dt._$={first_line:y[y.length-(rt||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(rt||1)].first_column,last_column:y[y.length-1].last_column},lt)dt._$.range=[y[y.length-(rt||1)].range[0],y[y.length-1].range[1]];if(yt=this.performAction.apply(dt,[T,at,K,Q.yy,E[1],b,y].concat(H)),typeof yt<"u")return yt;if(rt)_=_.slice(0,-1*rt*2),b=b.slice(0,-1*rt),y=y.slice(0,-1*rt);_.push(this.productions_[E[1]][0]),b.push(dt.$),y.push(dt._$),Bt=G[_[_.length-2]][_[_.length-1]],_.push(Bt);break;case 3:return!0}}return!0},"parse")},B=function(){var C={EOF:1,parseError:t(function(S,_){if(this.yy.parser)this.yy.parser.parseError(S,_);else throw Error(S)},"parseError"),setInput:t(function(m,S){if(this.yy=S||this.yy||{},this._input=m,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 m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var S=m.match(/(?:\r\n?|\n).*/g);if(S)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),m},"input"),unput:t(function(m){var S=m.length,_=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var u=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 b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===u.length?this.yylloc.first_column:0)+u[u.length-_.length].length-_[0].length:this.yylloc.first_column-S},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-S];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
10
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(m){this.unput(this.match.slice(m))},"less"),pastInput:t(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var m=this.match;if(m.length<20)m+=this._input.substr(0,20-m.length);return(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var m=this.pastInput(),S=Array(m.length+1).join("-");return m+this.upcomingInput()+`
11
+ `+S+"^"},"showPosition"),test_match:t(function(m,S){var _,u,b;if(this.options.backtrack_lexer){if(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)b.yylloc.range=this.yylloc.range.slice(0)}if(u=m[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],_=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(_)return _;else if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var m,S,_,u;if(!this._more)this.yytext="",this.match="";var b=this._currentRules();for(var y=0;y<b.length;y++)if(_=this._input.match(this.rules[b[y]]),_&&(!S||_[0].length>S[0].length)){if(S=_,u=y,this.options.backtrack_lexer)if(m=this.test_match(_,b[y]),m!==!1)return m;else if(this._backtrack){S=!1;continue}else return!1;else if(!this.options.flex)break}if(S){if(m=this.test_match(S,b[u]),m!==!1)return m;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var S=this.next();if(S)return S;else return this.lex()},"lex"),begin:t(function(S){this.conditionStack.push(S)},"begin"),popState:t(function(){var S=this.conditionStack.length-1;if(S>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(S){if(S=this.conditionStack.length-1-Math.abs(S||0),S>=0)return this.conditionStack[S];else return"INITIAL"},"topState"),pushState:t(function(S){this.begin(S)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(S,_,u,b){var y=b;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(S.getIndentMode&&S.getIndentMode())return S.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(S.setIndentMode)S.setIndentMode(!1);this.begin("INITIAL"),this.unput(_.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(S.consumeIndentText)S.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return _.yytext=_.yytext.slice(2,-2),14;break;case 17:return _.yytext=_.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return C}();z.lexer=B;function j(){this.yy={}}return t(j,"Parser"),j.prototype=z,z.Parser=j,new j}();Nt.parser=Nt;var ze=Nt,Ot=[],Lt=[],jt=[],Ft=new Set,Pt,Vt=!1,Ae=t((e,s,i)=>{let n=It(e).sort(),r=i??10/Math.pow(e.length,2);if(Pt=n,n.length===1)Ft.add(n[0]);Ot.push({sets:n,size:r,label:s?bt(s):void 0})},"addSubsetData"),Ce=t(()=>Ot,"getSubsetData"),bt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?bt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=bt(s);Lt.push({sets:It(e).sort(),id:n,label:i?bt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=It(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;jt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>jt,"getStyleData"),It=t((e)=>e.map((s)=>bt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=It(e).filter((n)=>!Ft.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Lt,"getTextData"),Fe=t(()=>Pt,"getCurrentSets"),Pe=t(()=>Vt,"getIndentMode"),Ve=t((e)=>{Vt=e},"setIndentMode"),Be=F.venn;function oe(){return Z(Be,A().venn)}t(oe,"getConfig");var qe=t(()=>{L(),Ot.length=0,Lt.length=0,jt.length=0,Ft.clear(),Pt=void 0,Vt=!1},"customClear"),Ue={getConfig:oe,clear:qe,setAccTitle:N,getAccTitle:P,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:R,setAccDescription:M,addSubsetData:Ae,getSubsetData:Ce,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
13
+ .venn-title {
14
+ font-size: 32px;
15
+ fill: ${e.vennTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+
19
+ .venn-circle text {
20
+ font-size: 48px;
21
+ font-family: ${e.fontFamily};
22
+ }
23
+
24
+ .venn-intersection text {
25
+ font-size: 48px;
26
+ fill: ${e.vennSetTextColor};
27
+ font-family: ${e.fontFamily};
28
+ }
29
+
30
+ .venn-text-node {
31
+ font-family: ${e.fontFamily};
32
+ color: ${e.vennSetTextColor};
33
+ }
34
+ `,"getStyles"),We=Ge;function ae(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(ae,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:x}=A(),d=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),k=r.getDiagramTitle?.(),p=r.getSubsetData(),w=r.getTextData(),I=ae(r.getStyleData()),z=ce(p),B=o?.width??800,j=o?.height??450,C=1600,m=B/1600,S=k?48*m:0,_=a.primaryTextColor??a.textColor,u=J(s);if(u.attr("viewBox",`0 0 ${B} ${j}`),k)u.append("text").text(k).attr("class","venn-title").attr("font-size",`${32*m}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*m).style("fill",a.vennTitleTextColor||a.titleColor);let b=g(document.createElement("div")),y=te().width(B).height(j-S);b.datum(z).call(y);let G=d?v.svg(b.select("svg").node()):void 0,T=re(z,{width:B,height:j-S,padding:o?.padding??15}),K=new Map;for(let U of T){let H=xt([...U.data.sets].sort());K.set(H,U)}if(w.length>0)le(o,K,b,w,m,I);let at=pe(a.background||"#f4f4f4");if(b.selectAll(".venn-circle").each(function(U,H){let V=g(this),st=xt([...U.sets].sort()),tt=I.get(st),lt=l.length>0?l[H%l.length]:void 0,it=tt?.fill||lt||a.primaryColor;V.classed(`venn-set-${H%8}`,!0);let et=tt?.["fill-opacity"]??0.1,q=tt?.stroke||it,ft=tt?.["stroke-width"]||`${5*m}`;if(d&&G){let E=K.get(st);if(E&&E.circles.length>0){let X=E.circles[0],yt=G.circle(X.x,X.y,X.radius*2,{roughness:0.7,seed:x,fill:St(it,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+H*60,stroke:q,strokeWidth:parseFloat(String(ft))});V.select("path").remove(),V.node()?.insertBefore(yt,V.select("text").node())}}else V.select("path").style("fill",it).style("fill-opacity",et).style("stroke",q).style("stroke-width",ft).style("stroke-opacity",0.95);let ut=tt?.color||(at?f(it,30):h(it,30));V.select("text").style("font-size",`${48*m}px`).style("fill",ut)}),d&&G)b.selectAll(".venn-intersection").each(function(U){let H=g(this),Q=xt([...U.sets].sort()),st=I.get(Q),tt=st?.fill;if(tt){let lt=H.select("path"),it=lt.attr("d");if(it){let et=G.path(it,{roughness:0.7,seed:x,fill:St(tt,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),q=lt.node();q?.parentNode?.insertBefore(et,q),lt.remove()}}else H.select("path").style("fill-opacity",0);H.select("text").style("font-size",`${48*m}px`).style("fill",st?.color??a.vennSetTextColor??_)});else b.selectAll(".venn-intersection text").style("font-size",`${48*m}px`).style("fill",(U)=>{let V=xt([...U.sets].sort());return I.get(V)?.color??a.vennSetTextColor??_}),b.selectAll(".venn-intersection path").style("fill-opacity",(U)=>{let V=xt([...U.sets].sort());return I.get(V)?.fill?1:0}).style("fill",(U)=>{let V=xt([...U.sets].sort());return I.get(V)?.fill??"transparent"});let nt=u.append("g").attr("transform",`translate(0, ${S})`),Y=b.select("svg").node();if(Y&&"childNodes"in Y)for(let U of[...Y.childNodes])nt.node()?.appendChild(U);W(u,j,B,o?.useMaxWidth??!0)},"draw");function xt(e){return e.join("|")}t(xt,"stableSetsKey");function le(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,x=i.select("svg").append("g").attr("class","venn-text-nodes"),d=new Map;for(let l of n){let k=xt(l.sets),p=d.get(k);if(p)p.push(l);else d.set(k,[l])}for(let[l,k]of d.entries()){let p=s.get(l);if(!p?.text)continue;let w=p.text.x,I=p.text.y,z=Math.min(...p.circles.map((Y)=>Y.radius)),B=Math.min(...p.circles.map((Y)=>Y.radius-Math.hypot(w-Y.x,I-Y.y))),j=Number.isFinite(B)?Math.max(0,B):0;if(j===0&&Number.isFinite(z))j=z*0.6;let C=x.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)C.append("circle").attr("class","venn-text-debug-circle").attr("cx",w).attr("cy",I).attr("r",j).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let m=Math.max(80*r,j*2*0.95),S=Math.max(60*r,j*2*0.95),b=(p.data.label&&p.data.label.length>0?Math.min(32*r,j*0.25):0)+(k.length<=2?30*r:0),y=w-m/2,G=I-S/2+b,T=Math.max(1,Math.ceil(Math.sqrt(k.length))),K=Math.max(1,Math.ceil(k.length/T)),at=m/T,nt=S/K;for(let[Y,U]of k.entries()){let H=Y%T,V=Math.floor(Y/T),Q=y+at*(H+0.5),st=G+nt*(V+0.5);if(a)C.append("rect").attr("class","venn-text-debug-cell").attr("x",y+at*H).attr("y",G+nt*V).attr("width",at).attr("height",nt).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let tt=at*0.9,lt=nt*0.9,it=C.append("foreignObject").attr("class","venn-text-node-fo").attr("width",tt).attr("height",lt).attr("x",Q-tt/2).attr("y",st-lt/2).attr("overflow","visible"),et=o.get(U.id)?.color,q=it.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(U.label??U.id);if(et)q.style("color",et)}}}t(le,"renderTextNodes");function ce(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let x=[o[a],o[c]],d=x.join("|");if(!s.has(d)){s.add(d);let l=i.get(x[0]),k=i.get(x[1]),p=l!==void 0&&k!==void 0?Math.min(l,k)/4:2.5;n.push({sets:x,size:p,label:""})}}}return n.length>0?[...e,...n]:e}t(ce,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:ze,db:Ue,renderer:He,styles:We};export{rn as diagram};
Binary file
Binary file