@bkm016/basalt 0.1.30 → 0.1.31

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 (861) hide show
  1. package/README.md +1 -0
  2. package/chunk-04326385.js +39 -0
  3. package/chunk-0er07d2g.js +51 -0
  4. package/chunk-0ge4k9gq.js +2 -0
  5. package/chunk-11zc1b2w.js +3 -0
  6. package/chunk-12203fgm.js +2 -0
  7. package/chunk-194d4z7x.js +7 -0
  8. package/chunk-1apm7p2e.js +2 -0
  9. package/chunk-1t0yzkg7.js +4 -0
  10. package/chunk-2csz31nh.js +2 -0
  11. package/chunk-2rqpfv4h.js +3 -0
  12. package/chunk-39cfcar4.js +3 -0
  13. package/chunk-3gw871zb.js +2 -0
  14. package/chunk-4a5xttdp.js +3 -0
  15. package/chunk-4st5xeee.js +2 -0
  16. package/chunk-5h17n6g1.js +3 -0
  17. package/chunk-5rn18vrq.js +5 -0
  18. package/chunk-5tdnvdmz.js +2 -0
  19. package/chunk-6gzvp0f6.js +50 -0
  20. package/chunk-6qavr39k.js +2 -0
  21. package/chunk-6xn0r0dd.js +3 -0
  22. package/chunk-71pz02bd.js +8 -0
  23. package/chunk-7h76jrss.js +7 -0
  24. package/chunk-7hss4hs3.js +7 -0
  25. package/chunk-7vdq0wye.js +2 -0
  26. package/chunk-7w187ycz.js +10 -0
  27. package/chunk-81s7mvf2.js +16 -0
  28. package/chunk-8j8acxde.js +2 -0
  29. package/chunk-9nfz04yr.js +2 -0
  30. package/chunk-9nkb5q43.js +3 -0
  31. package/chunk-9zcfam20.js +2 -0
  32. package/chunk-a6zvmsbh.js +12 -0
  33. package/chunk-anr8aghq.js +59 -0
  34. package/chunk-av8zh9yp.js +2 -0
  35. package/chunk-bwv97dtf.js +2 -0
  36. package/chunk-cjy4rssa.js +10 -0
  37. package/chunk-dmdyqq1k.js +2 -0
  38. package/chunk-dzvq7vt6.js +2 -0
  39. package/chunk-ejrksf6g.js +3 -0
  40. package/chunk-erxka5vh.js +18 -0
  41. package/chunk-fc41dvhp.js +12 -0
  42. package/chunk-fsekbhqb.js +3 -0
  43. package/chunk-fwcqcecb.js +8 -0
  44. package/chunk-hhwnmhbb.js +2 -0
  45. package/chunk-jm2bn5mq.js +3 -0
  46. package/chunk-jm5j5jfy.js +3 -0
  47. package/chunk-jsvr3s4q.js +5 -0
  48. package/chunk-jwk5a5tk.js +25 -0
  49. package/chunk-khy3j5kp.js +63 -0
  50. package/chunk-mwc59w50.js +31 -0
  51. package/chunk-mypbpphn.js +3 -0
  52. package/chunk-ng5ncy65.js +2 -0
  53. package/chunk-nmvayfq3.js +3 -0
  54. package/chunk-nw4h0wm9.js +2 -0
  55. package/chunk-pxsgm6ff.js +2 -0
  56. package/chunk-rbfpa63e.js +3 -0
  57. package/chunk-rsrh5dgx.js +2 -0
  58. package/chunk-s2pm97nk.js +286 -0
  59. package/chunk-s6tnmg6x.js +3 -0
  60. package/chunk-se548edt.js +20 -0
  61. package/chunk-tsdeeqb8.js +3 -0
  62. package/chunk-vnv3a6t2.js +3 -0
  63. package/chunk-vrsh8cx1.js +3 -0
  64. package/chunk-vx4v71t4.js +498 -0
  65. package/chunk-w3v8zahw.js +2 -0
  66. package/chunk-w6m8c4vf.js +11 -0
  67. package/chunk-wd7sj5cv.js +2 -0
  68. package/chunk-we8v9wkw.js +9 -0
  69. package/chunk-wvn68m5f.js +4058 -0
  70. package/chunk-x055cas0.js +5 -0
  71. package/chunk-x2ry671h.js +44 -0
  72. package/chunk-x5vrtxkj.js +3 -0
  73. package/chunk-xedzsj31.js +5 -0
  74. package/chunk-xp83v3zm.js +2 -0
  75. package/chunk-ykzm5g1b.js +25 -0
  76. package/chunk-yq2bwebb.js +3 -0
  77. package/chunk-yygcpnwc.js +3 -0
  78. package/chunk-zjf34acb.js +2 -0
  79. package/compiled.js +8 -8
  80. package/package.json +1 -1
  81. package/ui-test-worker.js +18 -18
  82. package/web/chunk-01mrggts.js +1 -0
  83. package/web/chunk-01mrggts.js.br +0 -0
  84. package/web/chunk-01mrggts.js.gz +0 -0
  85. package/web/chunk-0b25tje3.js +1 -0
  86. package/web/chunk-0b25tje3.js.br +0 -0
  87. package/web/chunk-0b25tje3.js.gz +0 -0
  88. package/web/chunk-0g46ww9d.js +1 -0
  89. package/web/chunk-0g46ww9d.js.br +0 -0
  90. package/web/chunk-0g46ww9d.js.gz +0 -0
  91. package/web/chunk-0grg8w51.js +200 -0
  92. package/web/chunk-0grg8w51.js.br +0 -0
  93. package/web/chunk-0grg8w51.js.gz +0 -0
  94. package/web/chunk-0qf3m69c.js +24 -0
  95. package/web/chunk-0qf3m69c.js.br +0 -0
  96. package/web/chunk-0qf3m69c.js.gz +0 -0
  97. package/web/chunk-14yejkcn.js +7 -0
  98. package/web/chunk-14yejkcn.js.br +0 -0
  99. package/web/chunk-14yejkcn.js.gz +0 -0
  100. package/web/chunk-1ffzwm6m.js +106 -0
  101. package/web/chunk-1ffzwm6m.js.br +0 -0
  102. package/web/chunk-1ffzwm6m.js.gz +0 -0
  103. package/web/chunk-1ncaw3hk.js +3 -0
  104. package/web/chunk-1ncaw3hk.js.br +0 -0
  105. package/web/chunk-1ncaw3hk.js.gz +0 -0
  106. package/web/chunk-1x2kh4he.js +1 -0
  107. package/web/chunk-1x2kh4he.js.br +0 -0
  108. package/web/chunk-1x2kh4he.js.gz +0 -0
  109. package/web/chunk-23atmwvk.js +2 -0
  110. package/web/chunk-23atmwvk.js.br +0 -0
  111. package/web/chunk-23atmwvk.js.gz +0 -0
  112. package/web/chunk-2gfgrjy6.js +142 -0
  113. package/web/chunk-2gfgrjy6.js.br +0 -0
  114. package/web/chunk-2gfgrjy6.js.gz +0 -0
  115. package/web/chunk-2vqn82nw.js +139 -0
  116. package/web/chunk-2vqn82nw.js.br +0 -0
  117. package/web/chunk-2vqn82nw.js.gz +0 -0
  118. package/web/chunk-2wzvn2ne.js +1 -0
  119. package/web/chunk-2wzvn2ne.js.br +0 -0
  120. package/web/chunk-2wzvn2ne.js.gz +0 -0
  121. package/web/chunk-3at8qbcv.js +89 -0
  122. package/web/chunk-3at8qbcv.js.br +0 -0
  123. package/web/chunk-3at8qbcv.js.gz +0 -0
  124. package/web/chunk-3b97pd97.js +120 -0
  125. package/web/chunk-3b97pd97.js.br +0 -0
  126. package/web/chunk-3b97pd97.js.gz +0 -0
  127. package/web/chunk-3q5j14ah.js +1 -0
  128. package/web/chunk-3q5j14ah.js.br +0 -0
  129. package/web/chunk-3q5j14ah.js.gz +0 -0
  130. package/web/chunk-4wpvkw6b.js +1141 -0
  131. package/web/chunk-4wpvkw6b.js.br +0 -0
  132. package/web/chunk-4wpvkw6b.js.gz +0 -0
  133. package/web/chunk-51m79xhr.js +2 -0
  134. package/web/chunk-51m79xhr.js.br +2 -0
  135. package/web/chunk-51m79xhr.js.gz +0 -0
  136. package/web/chunk-5c6q7asc.js +1 -0
  137. package/web/chunk-5c6q7asc.js.br +0 -0
  138. package/web/chunk-5c6q7asc.js.gz +0 -0
  139. package/web/chunk-5vbnqhs0.js +38 -0
  140. package/web/chunk-5vbnqhs0.js.br +0 -0
  141. package/web/chunk-5vbnqhs0.js.gz +0 -0
  142. package/web/chunk-688a15p4.js +2 -0
  143. package/web/chunk-688a15p4.js.br +0 -0
  144. package/web/chunk-688a15p4.js.gz +0 -0
  145. package/web/chunk-6geede02.js +217 -0
  146. package/web/chunk-6geede02.js.br +0 -0
  147. package/web/chunk-6geede02.js.gz +0 -0
  148. package/web/chunk-6j37ynfq.js +1 -0
  149. package/web/chunk-6j37ynfq.js.br +0 -0
  150. package/web/chunk-6j37ynfq.js.gz +0 -0
  151. package/web/chunk-7j7btfha.js +292 -0
  152. package/web/chunk-7j7btfha.js.br +0 -0
  153. package/web/chunk-7j7btfha.js.gz +0 -0
  154. package/web/chunk-8299qcyc.js +1 -0
  155. package/web/chunk-8299qcyc.js.br +0 -0
  156. package/web/chunk-8299qcyc.js.gz +0 -0
  157. package/web/chunk-8mncz9c6.js +89 -0
  158. package/web/chunk-8mncz9c6.js.br +0 -0
  159. package/web/chunk-8mncz9c6.js.gz +0 -0
  160. package/web/chunk-8pygn7wf.js +1 -0
  161. package/web/chunk-8pygn7wf.js.br +0 -0
  162. package/web/chunk-8pygn7wf.js.gz +0 -0
  163. package/web/chunk-8ye62j8m.js +2 -0
  164. package/web/chunk-8ye62j8m.js.br +3 -0
  165. package/web/chunk-8ye62j8m.js.gz +0 -0
  166. package/web/chunk-982457hh.js +1 -0
  167. package/web/chunk-982457hh.js.br +2 -0
  168. package/web/chunk-982457hh.js.gz +0 -0
  169. package/web/chunk-9f9pp12b.js +1 -0
  170. package/web/chunk-9f9pp12b.js.br +0 -0
  171. package/web/chunk-9f9pp12b.js.gz +0 -0
  172. package/web/chunk-9k6d95ab.js +1 -0
  173. package/web/chunk-9k6d95ab.js.br +0 -0
  174. package/web/chunk-9k6d95ab.js.gz +0 -0
  175. package/web/chunk-9z4tf6fd.js +1 -0
  176. package/web/chunk-9z4tf6fd.js.br +0 -0
  177. package/web/chunk-9z4tf6fd.js.gz +0 -0
  178. package/web/chunk-ayamka39.js +1 -0
  179. package/web/chunk-ayamka39.js.br +0 -0
  180. package/web/chunk-ayamka39.js.gz +0 -0
  181. package/web/chunk-b6k80wbw.js +1 -0
  182. package/web/chunk-b6k80wbw.js.br +0 -0
  183. package/web/chunk-b6k80wbw.js.gz +0 -0
  184. package/web/chunk-b6w2gmw0.js +2 -0
  185. package/web/chunk-b6w2gmw0.js.br +0 -0
  186. package/web/chunk-b6w2gmw0.js.gz +0 -0
  187. package/web/chunk-ba22js10.js +84 -0
  188. package/web/chunk-ba22js10.js.br +0 -0
  189. package/web/chunk-ba22js10.js.gz +0 -0
  190. package/web/chunk-bq7y294e.js +34 -0
  191. package/web/chunk-bq7y294e.js.br +0 -0
  192. package/web/chunk-bq7y294e.js.gz +0 -0
  193. package/web/chunk-c0vc50pd.js +4 -0
  194. package/web/chunk-c0vc50pd.js.br +0 -0
  195. package/web/chunk-c0vc50pd.js.gz +0 -0
  196. package/web/chunk-cf9886tj.js +2 -0
  197. package/web/chunk-cf9886tj.js.br +0 -0
  198. package/web/chunk-cf9886tj.js.gz +0 -0
  199. package/web/chunk-cqf4fzk6.js +16 -0
  200. package/web/chunk-cqf4fzk6.js.br +0 -0
  201. package/web/chunk-cqf4fzk6.js.gz +0 -0
  202. package/web/chunk-ct9sq4ka.js +1 -0
  203. package/web/chunk-ct9sq4ka.js.br +0 -0
  204. package/web/chunk-ct9sq4ka.js.gz +0 -0
  205. package/web/chunk-cy60hc6q.js +2 -0
  206. package/web/chunk-cy60hc6q.js.br +0 -0
  207. package/web/chunk-cy60hc6q.js.gz +0 -0
  208. package/web/chunk-cygtgz2r.js +2 -0
  209. package/web/chunk-cygtgz2r.js.br +0 -0
  210. package/web/chunk-cygtgz2r.js.gz +0 -0
  211. package/web/chunk-dgf0f0er.js +214 -0
  212. package/web/chunk-dgf0f0er.js.br +0 -0
  213. package/web/chunk-dgf0f0er.js.gz +0 -0
  214. package/web/chunk-dscn4mpq.js +4 -0
  215. package/web/chunk-dscn4mpq.js.br +0 -0
  216. package/web/chunk-dscn4mpq.js.gz +0 -0
  217. package/web/chunk-e7683p83.js +1 -0
  218. package/web/chunk-e7683p83.js.br +0 -0
  219. package/web/chunk-e7683p83.js.gz +0 -0
  220. package/web/chunk-eanfvatc.js +1 -0
  221. package/web/chunk-eanfvatc.js.br +0 -0
  222. package/web/chunk-eanfvatc.js.gz +0 -0
  223. package/web/chunk-egfn5522.js +1 -0
  224. package/web/chunk-egfn5522.js.br +3 -0
  225. package/web/chunk-egfn5522.js.gz +0 -0
  226. package/web/chunk-ejk5ec5n.js +1 -0
  227. package/web/chunk-ejk5ec5n.js.br +0 -0
  228. package/web/chunk-ejk5ec5n.js.gz +0 -0
  229. package/web/chunk-en5n60qw.js +2 -0
  230. package/web/chunk-en5n60qw.js.br +0 -0
  231. package/web/chunk-en5n60qw.js.gz +0 -0
  232. package/web/chunk-fzffxer1.js +41 -0
  233. package/web/chunk-fzffxer1.js.br +0 -0
  234. package/web/chunk-fzffxer1.js.gz +0 -0
  235. package/web/chunk-g19dt2gr.js +55 -0
  236. package/web/chunk-g19dt2gr.js.br +0 -0
  237. package/web/chunk-g19dt2gr.js.gz +0 -0
  238. package/web/chunk-g6cj4czr.js +2 -0
  239. package/web/chunk-g6cj4czr.js.br +0 -0
  240. package/web/chunk-g6cj4czr.js.gz +0 -0
  241. package/web/chunk-gbv8v3z7.js +78 -0
  242. package/web/chunk-gbv8v3z7.js.br +0 -0
  243. package/web/chunk-gbv8v3z7.js.gz +0 -0
  244. package/web/chunk-h1w081tm.js +12 -0
  245. package/web/chunk-h1w081tm.js.br +0 -0
  246. package/web/chunk-h1w081tm.js.gz +0 -0
  247. package/web/chunk-h87t8gsr.js +1 -0
  248. package/web/chunk-h87t8gsr.js.br +0 -0
  249. package/web/chunk-h87t8gsr.js.gz +0 -0
  250. package/web/chunk-haewrbm7.js +1 -0
  251. package/web/chunk-haewrbm7.js.br +0 -0
  252. package/web/chunk-haewrbm7.js.gz +0 -0
  253. package/web/chunk-hahz28y7.js +2 -0
  254. package/web/chunk-hahz28y7.js.br +0 -0
  255. package/web/chunk-hahz28y7.js.gz +0 -0
  256. package/web/chunk-hqz75fkz.js +1 -0
  257. package/web/chunk-hqz75fkz.js.br +0 -0
  258. package/web/chunk-hqz75fkz.js.gz +0 -0
  259. package/web/chunk-hr4fa514.js +2 -0
  260. package/web/chunk-hr4fa514.js.br +0 -0
  261. package/web/chunk-hr4fa514.js.gz +0 -0
  262. package/web/chunk-j7vtqbbc.js +1 -0
  263. package/web/chunk-j7vtqbbc.js.br +0 -0
  264. package/web/chunk-j7vtqbbc.js.gz +0 -0
  265. package/web/chunk-jt33d37t.js +1 -0
  266. package/web/chunk-jt33d37t.js.br +0 -0
  267. package/web/chunk-jt33d37t.js.gz +0 -0
  268. package/web/chunk-k3qt0rx5.js +2 -0
  269. package/web/chunk-k3qt0rx5.js.br +0 -0
  270. package/web/chunk-k3qt0rx5.js.gz +0 -0
  271. package/web/chunk-kgmw7sh4.js +1 -0
  272. package/web/chunk-kgmw7sh4.js.br +0 -0
  273. package/web/chunk-kgmw7sh4.js.gz +0 -0
  274. package/web/chunk-kjvk8prw.js +1 -0
  275. package/web/chunk-kjvk8prw.js.br +0 -0
  276. package/web/chunk-kjvk8prw.js.gz +0 -0
  277. package/web/chunk-kq7snx3t.js +1 -0
  278. package/web/chunk-kq7snx3t.js.br +0 -0
  279. package/web/chunk-kq7snx3t.js.gz +0 -0
  280. package/web/chunk-kvteqhz2.js +1 -0
  281. package/web/chunk-kvteqhz2.js.br +2 -0
  282. package/web/chunk-kvteqhz2.js.gz +0 -0
  283. package/web/chunk-kypct03a.js +169 -0
  284. package/web/chunk-kypct03a.js.br +0 -0
  285. package/web/chunk-kypct03a.js.gz +0 -0
  286. package/web/chunk-m4hz4v80.js +370 -0
  287. package/web/chunk-m4hz4v80.js.br +0 -0
  288. package/web/chunk-m4hz4v80.js.gz +0 -0
  289. package/web/chunk-m5k8jhya.js +40 -0
  290. package/web/chunk-m5k8jhya.js.br +0 -0
  291. package/web/chunk-m5k8jhya.js.gz +0 -0
  292. package/web/chunk-mr38k717.js +140 -0
  293. package/web/chunk-mr38k717.js.br +0 -0
  294. package/web/chunk-mr38k717.js.gz +0 -0
  295. package/web/chunk-mtcet6gc.js +2 -0
  296. package/web/chunk-mtcet6gc.js.br +0 -0
  297. package/web/chunk-mtcet6gc.js.gz +0 -0
  298. package/web/chunk-mtfv8gjh.js +291 -0
  299. package/web/chunk-mtfv8gjh.js.br +0 -0
  300. package/web/chunk-mtfv8gjh.js.gz +0 -0
  301. package/web/chunk-nnyjx4ef.js +1 -0
  302. package/web/chunk-nnyjx4ef.js.br +0 -0
  303. package/web/chunk-nnyjx4ef.js.gz +0 -0
  304. package/web/chunk-npn3fk69.js +1 -0
  305. package/web/chunk-npn3fk69.js.br +2 -0
  306. package/web/chunk-npn3fk69.js.gz +0 -0
  307. package/web/chunk-p2gdfpjs.js +2 -0
  308. package/web/chunk-p2gdfpjs.js.br +0 -0
  309. package/web/chunk-p2gdfpjs.js.gz +0 -0
  310. package/web/chunk-q0by2m1w.js +21 -0
  311. package/web/chunk-q0by2m1w.js.br +0 -0
  312. package/web/chunk-q0by2m1w.js.gz +0 -0
  313. package/web/chunk-q6k872kv.js +7 -0
  314. package/web/chunk-q6k872kv.js.br +0 -0
  315. package/web/chunk-q6k872kv.js.gz +0 -0
  316. package/web/chunk-q7krdwy7.js +332 -0
  317. package/web/chunk-q7krdwy7.js.br +0 -0
  318. package/web/chunk-q7krdwy7.js.gz +0 -0
  319. package/web/chunk-q7wbksg4.js +1 -0
  320. package/web/chunk-q7wbksg4.js.br +0 -0
  321. package/web/chunk-q7wbksg4.js.gz +0 -0
  322. package/web/chunk-qdxa0c4c.js +1 -0
  323. package/web/chunk-qdxa0c4c.js.br +0 -0
  324. package/web/chunk-qdxa0c4c.js.gz +0 -0
  325. package/web/chunk-r76we294.js +1 -0
  326. package/web/chunk-r76we294.js.br +0 -0
  327. package/web/chunk-r76we294.js.gz +0 -0
  328. package/web/chunk-rnhbck1h.js +99 -0
  329. package/web/chunk-rnhbck1h.js.br +0 -0
  330. package/web/chunk-rnhbck1h.js.gz +0 -0
  331. package/web/chunk-rxtzde6n.js +62 -0
  332. package/web/chunk-rxtzde6n.js.br +0 -0
  333. package/web/chunk-rxtzde6n.js.gz +0 -0
  334. package/web/chunk-ryds6qnb.js +2 -0
  335. package/web/chunk-ryds6qnb.js.br +0 -0
  336. package/web/chunk-ryds6qnb.js.gz +0 -0
  337. package/web/chunk-stnwzrqv.js +98 -0
  338. package/web/chunk-stnwzrqv.js.br +0 -0
  339. package/web/chunk-stnwzrqv.js.gz +0 -0
  340. package/web/chunk-sy28z9pe.js +2 -0
  341. package/web/chunk-sy28z9pe.js.br +2 -0
  342. package/web/chunk-sy28z9pe.js.gz +0 -0
  343. package/web/chunk-szwh742y.js +2 -0
  344. package/web/chunk-szwh742y.js.br +0 -0
  345. package/web/chunk-szwh742y.js.gz +0 -0
  346. package/web/chunk-t60hp0qs.js +36 -0
  347. package/web/chunk-t60hp0qs.js.br +0 -0
  348. package/web/chunk-t60hp0qs.js.gz +0 -0
  349. package/web/chunk-tjma3e4d.js +7 -0
  350. package/web/chunk-tjma3e4d.js.br +0 -0
  351. package/web/chunk-tjma3e4d.js.gz +0 -0
  352. package/web/chunk-tn39vbcz.js +2 -0
  353. package/web/chunk-tn39vbcz.js.br +0 -0
  354. package/web/chunk-tn39vbcz.js.gz +0 -0
  355. package/web/chunk-tv9rz73h.js +30 -0
  356. package/web/chunk-tv9rz73h.js.br +0 -0
  357. package/web/chunk-tv9rz73h.js.gz +0 -0
  358. package/web/chunk-twgzayjk.js +1 -0
  359. package/web/chunk-twgzayjk.js.br +0 -0
  360. package/web/chunk-twgzayjk.js.gz +0 -0
  361. package/web/chunk-tz4w2nh2.js +303 -0
  362. package/web/chunk-tz4w2nh2.js.br +0 -0
  363. package/web/chunk-tz4w2nh2.js.gz +0 -0
  364. package/web/chunk-v0egh6d3.js +1 -0
  365. package/web/chunk-v0egh6d3.js.br +0 -0
  366. package/web/chunk-v0egh6d3.js.gz +0 -0
  367. package/web/chunk-vayamfxv.js +1 -0
  368. package/web/chunk-vayamfxv.js.br +0 -0
  369. package/web/chunk-vayamfxv.js.gz +0 -0
  370. package/web/chunk-vcawg8d2.js +1 -0
  371. package/web/chunk-vcawg8d2.js.br +0 -0
  372. package/web/chunk-vcawg8d2.js.gz +0 -0
  373. package/web/chunk-vh8s2rek.js +1 -0
  374. package/web/chunk-vh8s2rek.js.br +2 -0
  375. package/web/chunk-vh8s2rek.js.gz +0 -0
  376. package/web/chunk-vns6bpqm.js +2 -0
  377. package/web/chunk-vns6bpqm.js.br +0 -0
  378. package/web/chunk-vns6bpqm.js.gz +0 -0
  379. package/web/chunk-vvbte0a5.css +1 -0
  380. package/web/chunk-vvbte0a5.css.br +0 -0
  381. package/web/chunk-vvbte0a5.css.gz +0 -0
  382. package/web/chunk-vxzw2t1r.js +1 -0
  383. package/web/chunk-vxzw2t1r.js.br +0 -0
  384. package/web/chunk-vxzw2t1r.js.gz +0 -0
  385. package/web/chunk-w40atygt.js +2 -0
  386. package/web/chunk-w40atygt.js.br +0 -0
  387. package/web/chunk-w40atygt.js.gz +0 -0
  388. package/web/chunk-w4bxgcwm.js +1 -0
  389. package/web/chunk-w4bxgcwm.js.br +0 -0
  390. package/web/chunk-w4bxgcwm.js.gz +0 -0
  391. package/web/chunk-w5t00pns.js +70 -0
  392. package/web/chunk-w5t00pns.js.br +0 -0
  393. package/web/chunk-w5t00pns.js.gz +0 -0
  394. package/web/chunk-wpmzdqba.js +324 -0
  395. package/web/chunk-wpmzdqba.js.br +0 -0
  396. package/web/chunk-wpmzdqba.js.gz +0 -0
  397. package/web/chunk-xc74f1nj.js +1 -0
  398. package/web/chunk-xc74f1nj.js.br +0 -0
  399. package/web/chunk-xc74f1nj.js.gz +0 -0
  400. package/web/chunk-xs4cyb71.js +1 -0
  401. package/web/chunk-xs4cyb71.js.br +0 -0
  402. package/web/chunk-xs4cyb71.js.gz +0 -0
  403. package/web/chunk-xthg4efe.js +1 -0
  404. package/web/chunk-xthg4efe.js.br +0 -0
  405. package/web/chunk-xthg4efe.js.gz +0 -0
  406. package/web/chunk-yet0bbyh.js +1 -0
  407. package/web/chunk-yet0bbyh.js.br +0 -0
  408. package/web/chunk-yet0bbyh.js.gz +0 -0
  409. package/web/chunk-yzcxmqy3.js +1 -0
  410. package/web/chunk-yzcxmqy3.js.br +0 -0
  411. package/web/chunk-yzcxmqy3.js.gz +0 -0
  412. package/web/chunk-z2a9zwwx.js +24 -0
  413. package/web/chunk-z2a9zwwx.js.br +0 -0
  414. package/web/chunk-z2a9zwwx.js.gz +0 -0
  415. package/web/chunk-zeyw59b9.js +2 -0
  416. package/web/chunk-zeyw59b9.js.br +0 -0
  417. package/web/chunk-zeyw59b9.js.gz +0 -0
  418. package/web/chunk-zftk5ww7.js +8 -0
  419. package/web/chunk-zftk5ww7.js.br +0 -0
  420. package/web/chunk-zftk5ww7.js.gz +0 -0
  421. package/web/chunk-zmbp3phd.js +2 -0
  422. package/web/chunk-zmbp3phd.js.br +0 -0
  423. package/web/chunk-zmbp3phd.js.gz +0 -0
  424. package/web/chunk-zpxh70dj.js +1 -0
  425. package/web/chunk-zpxh70dj.js.br +0 -0
  426. package/web/chunk-zpxh70dj.js.gz +0 -0
  427. package/web/chunk-zqhdf12s.js +39 -0
  428. package/web/chunk-zqhdf12s.js.br +0 -0
  429. package/web/chunk-zqhdf12s.js.gz +0 -0
  430. package/web/chunk-zr2xst5w.js +1 -0
  431. package/web/chunk-zr2xst5w.js.br +0 -0
  432. package/web/chunk-zr2xst5w.js.gz +0 -0
  433. package/web/index.html +1 -1
  434. package/web/index.html.br +0 -0
  435. package/web/index.html.gz +0 -0
  436. package/worker.js +1 -1
  437. package/chunk-01xyv3ct.js +0 -7
  438. package/chunk-06gjy5s2.js +0 -5
  439. package/chunk-0pztrs5x.js +0 -11
  440. package/chunk-0v6seb9q.js +0 -20
  441. package/chunk-0z138vnr.js +0 -12
  442. package/chunk-1c8yqctx.js +0 -3
  443. package/chunk-1wt8pbns.js +0 -2
  444. package/chunk-1yvgmxew.js +0 -2
  445. package/chunk-229men2n.js +0 -31
  446. package/chunk-29x35nj4.js +0 -5
  447. package/chunk-3ee7dyh4.js +0 -18
  448. package/chunk-3gf3g0xt.js +0 -3
  449. package/chunk-3gts3ja0.js +0 -8
  450. package/chunk-4stj480w.js +0 -3
  451. package/chunk-4t2t0hcp.js +0 -3
  452. package/chunk-57b764s0.js +0 -5
  453. package/chunk-63mr2aa2.js +0 -50
  454. package/chunk-64h4gw8d.js +0 -3
  455. package/chunk-7gxx6829.js +0 -2
  456. package/chunk-898tss1j.js +0 -51
  457. package/chunk-9em1sne5.js +0 -2
  458. package/chunk-9p8n1xjn.js +0 -4048
  459. package/chunk-a0h0x1dn.js +0 -3
  460. package/chunk-a2r89pk2.js +0 -12
  461. package/chunk-a5mtw4y5.js +0 -2
  462. package/chunk-aq6xkc1w.js +0 -3
  463. package/chunk-bbqhx91f.js +0 -3
  464. package/chunk-c9q0y8hp.js +0 -4
  465. package/chunk-cgzez9a5.js +0 -2
  466. package/chunk-drjajr57.js +0 -3
  467. package/chunk-dsnz6mzt.js +0 -25
  468. package/chunk-ee18zzzv.js +0 -3
  469. package/chunk-eg161ep9.js +0 -3
  470. package/chunk-ej42zg82.js +0 -2
  471. package/chunk-ejw7k7nn.js +0 -2
  472. package/chunk-et2s8y6a.js +0 -3
  473. package/chunk-f95j1a8x.js +0 -3
  474. package/chunk-fnxstmm5.js +0 -2
  475. package/chunk-gtjtkfjk.js +0 -3
  476. package/chunk-h4rve6x4.js +0 -63
  477. package/chunk-hp9bcx4x.js +0 -2
  478. package/chunk-je4cjwhm.js +0 -3
  479. package/chunk-jn1zdamp.js +0 -9
  480. package/chunk-jpah46d1.js +0 -2
  481. package/chunk-jvsrda4n.js +0 -16
  482. package/chunk-jyhsae16.js +0 -2
  483. package/chunk-k7n6bhkz.js +0 -3
  484. package/chunk-kvv3mvk5.js +0 -2
  485. package/chunk-kzv5cgqz.js +0 -286
  486. package/chunk-mz3zt06w.js +0 -7
  487. package/chunk-n4crb1x3.js +0 -2
  488. package/chunk-nmmf0w14.js +0 -5
  489. package/chunk-nr5p4pvp.js +0 -3
  490. package/chunk-p39fex1r.js +0 -2
  491. package/chunk-pefgy360.js +0 -7
  492. package/chunk-psr71nf8.js +0 -2
  493. package/chunk-qsgc7b7x.js +0 -3
  494. package/chunk-qygv2jqa.js +0 -2
  495. package/chunk-r449z8pj.js +0 -2
  496. package/chunk-rd52y45c.js +0 -8
  497. package/chunk-repjnwda.js +0 -10
  498. package/chunk-rh6yvdwz.js +0 -3
  499. package/chunk-s2d5zp37.js +0 -44
  500. package/chunk-s68eamf1.js +0 -2
  501. package/chunk-sacdpkwc.js +0 -3
  502. package/chunk-tey1hftz.js +0 -490
  503. package/chunk-vhvzyxx5.js +0 -25
  504. package/chunk-vytm86v0.js +0 -2
  505. package/chunk-x4bc1xkx.js +0 -39
  506. package/chunk-xa23zmzv.js +0 -2
  507. package/chunk-xq7zspqs.js +0 -3
  508. package/chunk-xqz8ac7j.js +0 -2
  509. package/chunk-ycce2a81.js +0 -2
  510. package/chunk-z99s31w5.js +0 -2
  511. package/chunk-zs6ytk7b.js +0 -59
  512. package/chunk-ztm5hqwh.js +0 -2
  513. package/chunk-zv29qg1q.js +0 -10
  514. package/web/chunk-02z3bqps.js +0 -1
  515. package/web/chunk-02z3bqps.js.br +0 -0
  516. package/web/chunk-02z3bqps.js.gz +0 -0
  517. package/web/chunk-0dg4qqe3.js +0 -1
  518. package/web/chunk-0dg4qqe3.js.br +0 -2
  519. package/web/chunk-0dg4qqe3.js.gz +0 -0
  520. package/web/chunk-0qar8vwc.js +0 -2
  521. package/web/chunk-0qar8vwc.js.br +0 -0
  522. package/web/chunk-0qar8vwc.js.gz +0 -0
  523. package/web/chunk-0qmgmqzd.js +0 -2
  524. package/web/chunk-0qmgmqzd.js.br +0 -0
  525. package/web/chunk-0qmgmqzd.js.gz +0 -0
  526. package/web/chunk-1q82849a.js +0 -1
  527. package/web/chunk-1q82849a.js.br +0 -0
  528. package/web/chunk-1q82849a.js.gz +0 -0
  529. package/web/chunk-2ajkzs3d.js +0 -12
  530. package/web/chunk-2ajkzs3d.js.br +0 -0
  531. package/web/chunk-2ajkzs3d.js.gz +0 -0
  532. package/web/chunk-2xrkfj8n.js +0 -291
  533. package/web/chunk-2xrkfj8n.js.br +0 -0
  534. package/web/chunk-2xrkfj8n.js.gz +0 -0
  535. package/web/chunk-4fzpmw3f.js +0 -89
  536. package/web/chunk-4fzpmw3f.js.br +0 -0
  537. package/web/chunk-4fzpmw3f.js.gz +0 -0
  538. package/web/chunk-51njd9f8.js +0 -89
  539. package/web/chunk-51njd9f8.js.br +0 -0
  540. package/web/chunk-51njd9f8.js.gz +0 -0
  541. package/web/chunk-66zw8mqe.js +0 -2
  542. package/web/chunk-66zw8mqe.js.br +0 -0
  543. package/web/chunk-66zw8mqe.js.gz +0 -0
  544. package/web/chunk-6x73jtw7.js +0 -7
  545. package/web/chunk-6x73jtw7.js.br +0 -0
  546. package/web/chunk-6x73jtw7.js.gz +0 -0
  547. package/web/chunk-6y389kg6.js +0 -1
  548. package/web/chunk-6y389kg6.js.br +0 -0
  549. package/web/chunk-6y389kg6.js.gz +0 -0
  550. package/web/chunk-73peavw3.js +0 -1
  551. package/web/chunk-73peavw3.js.br +0 -0
  552. package/web/chunk-73peavw3.js.gz +0 -0
  553. package/web/chunk-7p7qtp6d.js +0 -1
  554. package/web/chunk-7p7qtp6d.js.br +0 -0
  555. package/web/chunk-7p7qtp6d.js.gz +0 -0
  556. package/web/chunk-81zj375g.js +0 -1
  557. package/web/chunk-81zj375g.js.br +0 -0
  558. package/web/chunk-81zj375g.js.gz +0 -0
  559. package/web/chunk-89dwrkrr.js +0 -1
  560. package/web/chunk-89dwrkrr.js.br +0 -0
  561. package/web/chunk-89dwrkrr.js.gz +0 -0
  562. package/web/chunk-8e829p0a.css +0 -1
  563. package/web/chunk-8e829p0a.css.br +0 -0
  564. package/web/chunk-8e829p0a.css.gz +0 -0
  565. package/web/chunk-9mgqrwwh.js +0 -1
  566. package/web/chunk-9mgqrwwh.js.br +0 -0
  567. package/web/chunk-9mgqrwwh.js.gz +0 -0
  568. package/web/chunk-ag97fhx1.js +0 -1
  569. package/web/chunk-ag97fhx1.js.br +0 -0
  570. package/web/chunk-ag97fhx1.js.gz +0 -0
  571. package/web/chunk-anm2706b.js +0 -139
  572. package/web/chunk-anm2706b.js.br +0 -0
  573. package/web/chunk-anm2706b.js.gz +0 -0
  574. package/web/chunk-aqz2exas.js +0 -142
  575. package/web/chunk-aqz2exas.js.br +0 -0
  576. package/web/chunk-aqz2exas.js.gz +0 -0
  577. package/web/chunk-at6wp72y.js +0 -1
  578. package/web/chunk-at6wp72y.js.br +0 -0
  579. package/web/chunk-at6wp72y.js.gz +0 -0
  580. package/web/chunk-ayfqxte8.js +0 -1
  581. package/web/chunk-ayfqxte8.js.br +0 -2
  582. package/web/chunk-ayfqxte8.js.gz +0 -0
  583. package/web/chunk-b564qxgk.js +0 -98
  584. package/web/chunk-b564qxgk.js.br +0 -0
  585. package/web/chunk-b564qxgk.js.gz +0 -0
  586. package/web/chunk-b9atg5sw.js +0 -1
  587. package/web/chunk-b9atg5sw.js.br +0 -0
  588. package/web/chunk-b9atg5sw.js.gz +0 -0
  589. package/web/chunk-bg2k54a5.js +0 -70
  590. package/web/chunk-bg2k54a5.js.br +0 -0
  591. package/web/chunk-bg2k54a5.js.gz +0 -0
  592. package/web/chunk-cb0g87b5.js +0 -2
  593. package/web/chunk-cb0g87b5.js.br +0 -3
  594. package/web/chunk-cb0g87b5.js.gz +0 -0
  595. package/web/chunk-cgm44rx8.js +0 -2
  596. package/web/chunk-cgm44rx8.js.br +0 -0
  597. package/web/chunk-cgm44rx8.js.gz +0 -0
  598. package/web/chunk-ctckn7gz.js +0 -2
  599. package/web/chunk-ctckn7gz.js.br +0 -0
  600. package/web/chunk-ctckn7gz.js.gz +0 -0
  601. package/web/chunk-def5mk0w.js +0 -2
  602. package/web/chunk-def5mk0w.js.br +0 -0
  603. package/web/chunk-def5mk0w.js.gz +0 -0
  604. package/web/chunk-e2nhv6bb.js +0 -2
  605. package/web/chunk-e2nhv6bb.js.br +0 -0
  606. package/web/chunk-e2nhv6bb.js.gz +0 -0
  607. package/web/chunk-e7djq8rb.js +0 -2
  608. package/web/chunk-e7djq8rb.js.br +0 -0
  609. package/web/chunk-e7djq8rb.js.gz +0 -0
  610. package/web/chunk-eagbq8k2.js +0 -1
  611. package/web/chunk-eagbq8k2.js.br +0 -0
  612. package/web/chunk-eagbq8k2.js.gz +0 -0
  613. package/web/chunk-fbxw7w0z.js +0 -1
  614. package/web/chunk-fbxw7w0z.js.br +0 -0
  615. package/web/chunk-fbxw7w0z.js.gz +0 -0
  616. package/web/chunk-fn95dxq2.js +0 -1
  617. package/web/chunk-fn95dxq2.js.br +0 -0
  618. package/web/chunk-fn95dxq2.js.gz +0 -0
  619. package/web/chunk-g3n4tbbv.js +0 -1
  620. package/web/chunk-g3n4tbbv.js.br +0 -2
  621. package/web/chunk-g3n4tbbv.js.gz +0 -0
  622. package/web/chunk-gp0xqyh2.js +0 -62
  623. package/web/chunk-gp0xqyh2.js.br +0 -0
  624. package/web/chunk-gp0xqyh2.js.gz +0 -0
  625. package/web/chunk-h2rv3exr.js +0 -84
  626. package/web/chunk-h2rv3exr.js.br +0 -0
  627. package/web/chunk-h2rv3exr.js.gz +0 -0
  628. package/web/chunk-h888hb33.js +0 -41
  629. package/web/chunk-h888hb33.js.br +0 -0
  630. package/web/chunk-h888hb33.js.gz +0 -0
  631. package/web/chunk-hc9ep8b0.js +0 -4
  632. package/web/chunk-hc9ep8b0.js.br +0 -0
  633. package/web/chunk-hc9ep8b0.js.gz +0 -0
  634. package/web/chunk-hp0jfbty.js +0 -1
  635. package/web/chunk-hp0jfbty.js.br +0 -0
  636. package/web/chunk-hp0jfbty.js.gz +0 -0
  637. package/web/chunk-hx7rh5c1.js +0 -2
  638. package/web/chunk-hx7rh5c1.js.br +0 -0
  639. package/web/chunk-hx7rh5c1.js.gz +0 -0
  640. package/web/chunk-hzxz7smg.js +0 -24
  641. package/web/chunk-hzxz7smg.js.br +0 -0
  642. package/web/chunk-hzxz7smg.js.gz +0 -0
  643. package/web/chunk-j4w9gj2v.js +0 -1
  644. package/web/chunk-j4w9gj2v.js.br +0 -0
  645. package/web/chunk-j4w9gj2v.js.gz +0 -0
  646. package/web/chunk-j8m3c1s4.js +0 -2
  647. package/web/chunk-j8m3c1s4.js.br +0 -0
  648. package/web/chunk-j8m3c1s4.js.gz +0 -0
  649. package/web/chunk-jamb9e79.js +0 -1
  650. package/web/chunk-jamb9e79.js.br +0 -0
  651. package/web/chunk-jamb9e79.js.gz +0 -0
  652. package/web/chunk-jg19frxn.js +0 -55
  653. package/web/chunk-jg19frxn.js.br +0 -0
  654. package/web/chunk-jg19frxn.js.gz +0 -0
  655. package/web/chunk-jm2pevt8.js +0 -1
  656. package/web/chunk-jm2pevt8.js.br +0 -0
  657. package/web/chunk-jm2pevt8.js.gz +0 -0
  658. package/web/chunk-jmr00kdm.js +0 -214
  659. package/web/chunk-jmr00kdm.js.br +0 -0
  660. package/web/chunk-jmr00kdm.js.gz +0 -0
  661. package/web/chunk-jsff72z2.js +0 -1
  662. package/web/chunk-jsff72z2.js.br +0 -0
  663. package/web/chunk-jsff72z2.js.gz +0 -0
  664. package/web/chunk-jv83dscd.js +0 -1
  665. package/web/chunk-jv83dscd.js.br +0 -0
  666. package/web/chunk-jv83dscd.js.gz +0 -0
  667. package/web/chunk-k0da3cb3.js +0 -1
  668. package/web/chunk-k0da3cb3.js.br +0 -0
  669. package/web/chunk-k0da3cb3.js.gz +0 -0
  670. package/web/chunk-k6ks8zqg.js +0 -1
  671. package/web/chunk-k6ks8zqg.js.br +0 -0
  672. package/web/chunk-k6ks8zqg.js.gz +0 -0
  673. package/web/chunk-kdzew6g1.js +0 -1
  674. package/web/chunk-kdzew6g1.js.br +0 -2
  675. package/web/chunk-kdzew6g1.js.gz +0 -0
  676. package/web/chunk-ktmnzrpf.js +0 -1
  677. package/web/chunk-ktmnzrpf.js.br +0 -2
  678. package/web/chunk-ktmnzrpf.js.gz +0 -0
  679. package/web/chunk-kxezmcn5.js +0 -30
  680. package/web/chunk-kxezmcn5.js.br +0 -0
  681. package/web/chunk-kxezmcn5.js.gz +0 -0
  682. package/web/chunk-kyj99nqq.js +0 -2
  683. package/web/chunk-kyj99nqq.js.br +0 -0
  684. package/web/chunk-kyj99nqq.js.gz +0 -0
  685. package/web/chunk-m1009k4x.js +0 -16
  686. package/web/chunk-m1009k4x.js.br +0 -0
  687. package/web/chunk-m1009k4x.js.gz +0 -0
  688. package/web/chunk-mgr8wt71.js +0 -370
  689. package/web/chunk-mgr8wt71.js.br +0 -0
  690. package/web/chunk-mgr8wt71.js.gz +0 -0
  691. package/web/chunk-mya0w8tm.js +0 -1
  692. package/web/chunk-mya0w8tm.js.br +0 -0
  693. package/web/chunk-mya0w8tm.js.gz +0 -0
  694. package/web/chunk-n1wgda90.js +0 -7
  695. package/web/chunk-n1wgda90.js.br +0 -0
  696. package/web/chunk-n1wgda90.js.gz +0 -0
  697. package/web/chunk-n7hk5sxm.js +0 -120
  698. package/web/chunk-n7hk5sxm.js.br +0 -0
  699. package/web/chunk-n7hk5sxm.js.gz +0 -0
  700. package/web/chunk-n99yz498.js +0 -36
  701. package/web/chunk-n99yz498.js.br +0 -0
  702. package/web/chunk-n99yz498.js.gz +0 -0
  703. package/web/chunk-nnvqz2dh.js +0 -1
  704. package/web/chunk-nnvqz2dh.js.br +0 -0
  705. package/web/chunk-nnvqz2dh.js.gz +0 -0
  706. package/web/chunk-nx439rde.js +0 -1
  707. package/web/chunk-nx439rde.js.br +0 -0
  708. package/web/chunk-nx439rde.js.gz +0 -0
  709. package/web/chunk-pn50cj2y.js +0 -1
  710. package/web/chunk-pn50cj2y.js.br +0 -0
  711. package/web/chunk-pn50cj2y.js.gz +0 -0
  712. package/web/chunk-pph3x232.js +0 -38
  713. package/web/chunk-pph3x232.js.br +0 -0
  714. package/web/chunk-pph3x232.js.gz +0 -0
  715. package/web/chunk-pt2vfgkr.js +0 -1
  716. package/web/chunk-pt2vfgkr.js.br +0 -0
  717. package/web/chunk-pt2vfgkr.js.gz +0 -0
  718. package/web/chunk-pzvg5xnk.js +0 -21
  719. package/web/chunk-pzvg5xnk.js.br +0 -0
  720. package/web/chunk-pzvg5xnk.js.gz +0 -0
  721. package/web/chunk-qafnz668.js +0 -1
  722. package/web/chunk-qafnz668.js.br +0 -0
  723. package/web/chunk-qafnz668.js.gz +0 -0
  724. package/web/chunk-qkfqcr10.js +0 -1
  725. package/web/chunk-qkfqcr10.js.br +0 -0
  726. package/web/chunk-qkfqcr10.js.gz +0 -0
  727. package/web/chunk-qkgp0da2.js +0 -1
  728. package/web/chunk-qkgp0da2.js.br +0 -0
  729. package/web/chunk-qkgp0da2.js.gz +0 -0
  730. package/web/chunk-qpqdn0a8.js +0 -1
  731. package/web/chunk-qpqdn0a8.js.br +0 -0
  732. package/web/chunk-qpqdn0a8.js.gz +0 -0
  733. package/web/chunk-r0ch05x8.js +0 -3
  734. package/web/chunk-r0ch05x8.js.br +0 -0
  735. package/web/chunk-r0ch05x8.js.gz +0 -0
  736. package/web/chunk-r6s2vcby.js +0 -8
  737. package/web/chunk-r6s2vcby.js.br +0 -6
  738. package/web/chunk-r6s2vcby.js.gz +0 -0
  739. package/web/chunk-r71mdnq3.js +0 -1
  740. package/web/chunk-r71mdnq3.js.br +0 -0
  741. package/web/chunk-r71mdnq3.js.gz +0 -0
  742. package/web/chunk-rd60971b.js +0 -2
  743. package/web/chunk-rd60971b.js.br +0 -0
  744. package/web/chunk-rd60971b.js.gz +0 -0
  745. package/web/chunk-rdz21xd5.js +0 -99
  746. package/web/chunk-rdz21xd5.js.br +0 -0
  747. package/web/chunk-rdz21xd5.js.gz +0 -0
  748. package/web/chunk-rmzb9edh.js +0 -303
  749. package/web/chunk-rmzb9edh.js.br +0 -0
  750. package/web/chunk-rmzb9edh.js.gz +0 -0
  751. package/web/chunk-rqkd1h2n.js +0 -2
  752. package/web/chunk-rqkd1h2n.js.br +0 -0
  753. package/web/chunk-rqkd1h2n.js.gz +0 -0
  754. package/web/chunk-rz2cq4g2.js +0 -2
  755. package/web/chunk-rz2cq4g2.js.br +0 -0
  756. package/web/chunk-rz2cq4g2.js.gz +0 -0
  757. package/web/chunk-rzeh9b1q.js +0 -2
  758. package/web/chunk-rzeh9b1q.js.br +0 -0
  759. package/web/chunk-rzeh9b1q.js.gz +0 -0
  760. package/web/chunk-s6ax6yty.js +0 -1
  761. package/web/chunk-s6ax6yty.js.br +0 -0
  762. package/web/chunk-s6ax6yty.js.gz +0 -0
  763. package/web/chunk-s75zvbh9.js +0 -1
  764. package/web/chunk-s75zvbh9.js.br +0 -0
  765. package/web/chunk-s75zvbh9.js.gz +0 -0
  766. package/web/chunk-s7cz1q7g.js +0 -324
  767. package/web/chunk-s7cz1q7g.js.br +0 -0
  768. package/web/chunk-s7cz1q7g.js.gz +0 -0
  769. package/web/chunk-sh6xh1kh.js +0 -1
  770. package/web/chunk-sh6xh1kh.js.br +0 -0
  771. package/web/chunk-sh6xh1kh.js.gz +0 -0
  772. package/web/chunk-sqa50cfh.js +0 -2
  773. package/web/chunk-sqa50cfh.js.br +0 -0
  774. package/web/chunk-sqa50cfh.js.gz +0 -0
  775. package/web/chunk-stp6j8y9.js +0 -39
  776. package/web/chunk-stp6j8y9.js.br +0 -0
  777. package/web/chunk-stp6j8y9.js.gz +0 -0
  778. package/web/chunk-t7wae2xz.js +0 -332
  779. package/web/chunk-t7wae2xz.js.br +0 -0
  780. package/web/chunk-t7wae2xz.js.gz +0 -0
  781. package/web/chunk-t8p7d5vk.js +0 -2
  782. package/web/chunk-t8p7d5vk.js.br +0 -0
  783. package/web/chunk-t8p7d5vk.js.gz +0 -0
  784. package/web/chunk-tbj4d6qe.js +0 -292
  785. package/web/chunk-tbj4d6qe.js.br +0 -0
  786. package/web/chunk-tbj4d6qe.js.gz +0 -0
  787. package/web/chunk-v0wb751t.js +0 -2
  788. package/web/chunk-v0wb751t.js.br +0 -0
  789. package/web/chunk-v0wb751t.js.gz +0 -0
  790. package/web/chunk-v1vghfec.js +0 -1
  791. package/web/chunk-v1vghfec.js.br +0 -0
  792. package/web/chunk-v1vghfec.js.gz +0 -0
  793. package/web/chunk-v890rh1e.js +0 -2
  794. package/web/chunk-v890rh1e.js.br +0 -0
  795. package/web/chunk-v890rh1e.js.gz +0 -0
  796. package/web/chunk-vd2kng8p.js +0 -4
  797. package/web/chunk-vd2kng8p.js.br +0 -0
  798. package/web/chunk-vd2kng8p.js.gz +0 -0
  799. package/web/chunk-vfqmec16.js +0 -217
  800. package/web/chunk-vfqmec16.js.br +0 -0
  801. package/web/chunk-vfqmec16.js.gz +0 -0
  802. package/web/chunk-vhmcx472.js +0 -1
  803. package/web/chunk-vhmcx472.js.br +0 -0
  804. package/web/chunk-vhmcx472.js.gz +0 -0
  805. package/web/chunk-vtvf1x6b.js +0 -2
  806. package/web/chunk-vtvf1x6b.js.br +0 -0
  807. package/web/chunk-vtvf1x6b.js.gz +0 -0
  808. package/web/chunk-w0ae9ggt.js +0 -40
  809. package/web/chunk-w0ae9ggt.js.br +0 -0
  810. package/web/chunk-w0ae9ggt.js.gz +0 -0
  811. package/web/chunk-ws8rv0tb.js +0 -1141
  812. package/web/chunk-ws8rv0tb.js.br +0 -0
  813. package/web/chunk-ws8rv0tb.js.gz +0 -0
  814. package/web/chunk-wvnvh4a5.js +0 -78
  815. package/web/chunk-wvnvh4a5.js.br +0 -0
  816. package/web/chunk-wvnvh4a5.js.gz +0 -0
  817. package/web/chunk-x11ewabg.js +0 -1
  818. package/web/chunk-x11ewabg.js.br +0 -0
  819. package/web/chunk-x11ewabg.js.gz +0 -0
  820. package/web/chunk-x2tcf0r1.js +0 -1
  821. package/web/chunk-x2tcf0r1.js.br +0 -2
  822. package/web/chunk-x2tcf0r1.js.gz +0 -0
  823. package/web/chunk-xbrj4mk1.js +0 -140
  824. package/web/chunk-xbrj4mk1.js.br +0 -0
  825. package/web/chunk-xbrj4mk1.js.gz +0 -0
  826. package/web/chunk-xh8q1bcj.js +0 -34
  827. package/web/chunk-xh8q1bcj.js.br +0 -0
  828. package/web/chunk-xh8q1bcj.js.gz +0 -0
  829. package/web/chunk-xha3t633.js +0 -1
  830. package/web/chunk-xha3t633.js.br +0 -0
  831. package/web/chunk-xha3t633.js.gz +0 -0
  832. package/web/chunk-xmr18f18.js +0 -1
  833. package/web/chunk-xmr18f18.js.br +0 -0
  834. package/web/chunk-xmr18f18.js.gz +0 -0
  835. package/web/chunk-y372dg1e.js +0 -7
  836. package/web/chunk-y372dg1e.js.br +0 -0
  837. package/web/chunk-y372dg1e.js.gz +0 -0
  838. package/web/chunk-y778wckc.js +0 -24
  839. package/web/chunk-y778wckc.js.br +0 -0
  840. package/web/chunk-y778wckc.js.gz +0 -0
  841. package/web/chunk-yerpvhym.js +0 -169
  842. package/web/chunk-yerpvhym.js.br +0 -0
  843. package/web/chunk-yerpvhym.js.gz +0 -0
  844. package/web/chunk-yrhe7a7c.js +0 -106
  845. package/web/chunk-yrhe7a7c.js.br +0 -0
  846. package/web/chunk-yrhe7a7c.js.gz +0 -0
  847. package/web/chunk-z2aazpzj.js +0 -2
  848. package/web/chunk-z2aazpzj.js.br +0 -0
  849. package/web/chunk-z2aazpzj.js.gz +0 -0
  850. package/web/chunk-z43td5ad.js +0 -1
  851. package/web/chunk-z43td5ad.js.br +0 -0
  852. package/web/chunk-z43td5ad.js.gz +0 -0
  853. package/web/chunk-zf42y65m.js +0 -1
  854. package/web/chunk-zf42y65m.js.br +0 -0
  855. package/web/chunk-zf42y65m.js.gz +0 -0
  856. package/web/chunk-zj2rhf4b.js +0 -200
  857. package/web/chunk-zj2rhf4b.js.br +0 -0
  858. package/web/chunk-zj2rhf4b.js.gz +0 -0
  859. package/web/chunk-zkn84jhm.js +0 -2
  860. package/web/chunk-zkn84jhm.js.br +0 -0
  861. package/web/chunk-zkn84jhm.js.gz +0 -0
Binary file
Binary file
@@ -1 +0,0 @@
1
- function C(t){return Math.abs(t=Math.round(t))>=1000000000000000000000?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function g(t,r){if(!isFinite(t)||t===0)return null;var i=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"),e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function Pn(t){return t=g(Math.abs(t)),t?t[1]:NaN}function G(t,r){return function(i,e){var o=i.length,a=[],c=0,u=t[0],M=0;while(o>0&&u>0){if(M+u+1>e)u=Math.max(1,e-M);if(a.push(i.substring(o-=u,o+u)),(M+=u+1)>e)break;u=t[c=(c+1)%t.length]}return a.reverse().join(r)}}function I(t){return function(r){return r.replace(/[0-9]/g,function(i){return t[+i]})}}var tt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mr(t){if(!(r=tt.exec(t)))throw Error("invalid format: "+t);var r;return new E({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}Mr.prototype=E.prototype;function E(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}E.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function R(t){t:for(var r=t.length,i=1,e=-1,o;i<r;++i)switch(t[i]){case".":e=o=i;break;case"0":if(e===0)e=i;o=i;break;default:if(!+t[i])break t;if(e>0)e=0;break}return e>0?t.slice(0,e)+t.slice(o+1):t}var P;function X(t,r){var i=g(t,r);if(!i)return P=void 0,t.toPrecision(r);var e=i[0],o=i[1],a=o-(P=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=e.length;return a===c?e:a>c?e+Array(a-c+1).join("0"):a>0?e.slice(0,a)+"."+e.slice(a):"0."+Array(1-a).join("0")+g(t,Math.max(0,r+a-1))[0]}function F(t,r){var i=g(t,r);if(!i)return t+"";var e=i[0],o=i[1];return o<0?"0."+Array(-o).join("0")+e:e.length>o+1?e.slice(0,o+1)+"."+e.slice(o+1):e+Array(o-e.length+2).join("0")}var O={"%":(t,r)=>(t*100).toFixed(r),b:(t)=>Math.round(t).toString(2),c:(t)=>t+"",d:C,e:(t,r)=>t.toExponential(r),f:(t,r)=>t.toFixed(r),g:(t,r)=>t.toPrecision(r),o:(t)=>Math.round(t).toString(8),p:(t,r)=>F(t*100,r),r:F,s:X,X:(t)=>Math.round(t).toString(16).toUpperCase(),x:(t)=>Math.round(t).toString(16)};function N(t){return t}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U(t){var r=t.grouping===void 0||t.thousands===void 0?N:G(K.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",e=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?N:I(K.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"−":t.minus+"",M=t.nan===void 0?"NaN":t.nan+"";function Z(f,p){f=Mr(f);var y=f.fill,w=f.align,s=f.sign,S=f.symbol,k=f.zero,L=f.width,T=f.comma,x=f.precision,q=f.trim,m=f.type;if(m==="n")T=!0,m="g";else if(!O[m])x===void 0&&(x=12),q=!0,m="g";if(k||y==="0"&&w==="=")k=!0,y="0",w="=";var W=(p&&p.prefix!==void 0?p.prefix:"")+(S==="$"?i:S==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),_=(S==="$"?e:/[%p]/.test(m)?c:"")+(p&&p.suffix!==void 0?p.suffix:""),B=O[m],v=/[defgprs%]/.test(m);x=x===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function H(n){var l=W,d=_,b,J,z;if(m==="c")d=B(n)+d,n="";else{n=+n;var A=n<0||1/n<0;if(n=isNaN(n)?M:B(Math.abs(n),x),q)n=R(n);if(A&&+n===0&&s!=="+")A=!1;if(l=(A?s==="("?s:u:s==="-"||s==="("?"":s)+l,d=(m==="s"&&!isNaN(n)&&P!==void 0?Q[8+P/3]:"")+d+(A&&s==="("?")":""),v){b=-1,J=n.length;while(++b<J)if(z=n.charCodeAt(b),48>z||z>57){d=(z===46?o+n.slice(b+1):n.slice(b))+d,n=n.slice(0,b);break}}}if(T&&!k)n=r(n,1/0);var j=l.length+n.length+d.length,h=j<L?Array(L-j+1).join(y):"";if(T&&k)n=r(h+n,h.length?L-d.length:1/0),h="";switch(w){case"<":n=l+n+d+h;break;case"=":n=l+h+n+d;break;case"^":n=h.slice(0,j=h.length>>1)+l+n+d+h.slice(j);break;default:n=h+l+n+d;break}return a(n)}return H.toString=function(){return f+""},H}function V(f,p){var y=Math.max(-8,Math.min(8,Math.floor(Pn(p)/3)))*3,w=Math.pow(10,-y),s=Z((f=Mr(f),f.type="f",f),{suffix:Q[8+y/3]});return function(S){return s(w*S)}}return{format:Z,formatPrefix:V}}var D,In,to;Y({thousands:",",grouping:[3],currency:["$",""]});function Y(t){return D=U(t),In=D.format,to=D.formatPrefix,D}export{Pn,Mr,In,to};
Binary file
Binary file
@@ -1,7 +0,0 @@
1
- import{v,s,w,o,a,f,e,n,b,Ft}from"./chunk-ws8rv0tb.js";import{bt,Xn,Et,fc,Kn,Da,Li,js,hc}from"./chunk-rz2cq4g2.js";var z="__chat__";function E(d){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${d.percent}%`}})})}function _(d){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:d.children})}function B(d){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:d.children})}function V(d){return n(B,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:bt(d.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:bt(d.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:bt(d.stat.cacheReadTokens)}),d.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",Kn(d.cacheHitRate),")"]})]})]})}function Q(d){let{projects:h,selectedProjectID:D,onSelectProject:k}=d,{style:l}=b();if(h.length===0)return e("div",{className:l("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:h.map((t)=>{let p=t.projectID??z,x=D===p,j=Math.max(t.tokenShare>0?1:0,t.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:t.name}),e("span",{className:l("control.badge","font-mono truncate max-w-[240px]"),title:t.directory||"未绑定项目目录",children:t.directory||"独立会话"}),e("button",{type:"button",onClick:()=>k(x?null:p),className:"rounded px-1.5 py-0.5 text-2xs text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:x?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:Xn(t.totalTokens),children:bt(t.totalTokens)}),n("span",{className:"text-2xs text-faint",children:["(",Kn(t.tokenShare),")"]})]})]}),e(E,{percent:j}),n(_,{children:[e(V,{stat:t,cacheHitRate:t.cacheHitRate}),n(B,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(t.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:t.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:t.toolCalls.toLocaleString()})," 次"]})]})]})]},p)})})}function Z(d){let{models:h}=d,{ModelIcon:D,style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:h.map((l)=>{let t=Math.max(l.share>0?1:0,l.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(D,{modelID:l.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:l.shortName}),e("span",{className:k("control.badge","font-mono shrink-0"),children:l.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[l.avgTps!==null&&n("span",{className:"text-2xs text-dim",children:[l.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:Xn(l.totalTokens),children:[bt(l.totalTokens)," ",n("span",{className:"text-2xs font-normal text-faint",children:["(",Kn(l.share),")"]})]})]})]}),e(E,{percent:t}),n(_,{children:[e(V,{stat:l,cacheHitRate:l.cacheHitRate}),n(B,{children:[n("span",{children:[e("span",{className:"text-ink",children:l.turns.toLocaleString()})," 轮",l.errors>0?n("span",{className:"text-danger",children:[" (",l.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:l.toolCalls.toLocaleString()})," 次"]}),l.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:fc(l.generationMs)})]})]})]})]},l.model)})})}function J(d){let{tools:h}=d,{StatusChip:D,style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:h.map((l)=>{let t=Math.max(l.share>0?1:0,l.share*100),p=l.successRate>=0.95?"success":l.successRate>=0.8?"warning":"danger",x=Math.max(0,l.calls-l.errors),j=l.calls>0?Math.round(l.outputBytes/l.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:l.name}),n(D,{tone:p,children:["成功率 ",Kn(l.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[l.calls.toLocaleString()," 次"]}),n("span",{className:"text-2xs text-faint",children:["(",Kn(l.share),")"]})]})]}),e(E,{percent:t}),n(_,{children:[n(B,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:x.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:l.errors>0?"text-danger":"text-ink",children:l.errors.toLocaleString()})," 次"]})]}),n(B,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Da(l.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Da(j)})]})]})]})]},l.name)})})}function X(d){let{sessions:h,onOpenSession:D}=d,{style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无高消耗会话记录"});let l=Math.max(1,...h.map((t)=>t.totalTokens));return e("div",{className:"divide-y divide-line",children:h.map((t)=>{let p=l>0?Math.max(1,t.totalTokens/l*100):0,x=t.model.split("/").pop()??t.model;return n("button",{type:"button",onClick:()=>D(t.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:t.title.trim()||"新会话"}),e("span",{className:k("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:t.projectName,children:t.projectName}),t.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-2xs text-accent shrink-0",children:"子代理"}),t.archivedAt!==null&&e("span",{className:k("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:Xn(t.totalTokens),children:bt(t.totalTokens)}),e(Ft,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(E,{percent:p}),n(_,{children:[e(V,{stat:t}),n(B,{children:[e("span",{className:"text-ink",children:x}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(t.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:t.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:hc(t.updated)})]})]})]},t.id)})})}var ee=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function te(d){let{cn:h,Segmented:D,SettingGroup:k,style:l}=b(),{daily:t}=d,[p,x]=a("tokens"),[j,P]=a(null),R=w(()=>t.some((r)=>r.totalTokens>0||r.activeDurationMs>0||r.runs>0),[t]),C=w(()=>{if(t.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(p==="tokens"){let N=t.reduce((M,H)=>M+H.totalTokens,0),S=t.filter((M)=>M.totalTokens>0).length,T=t[0];for(let M of t)if(!T||M.totalTokens>T.totalTokens)T=M;return{totalText:bt(N),totalFullText:Xn(N),avgText:S>0?bt(Math.round(N/S)):"0",peakDate:T&&T.totalTokens>0?Li(T.date):"—",peakValueText:T&&T.totalTokens>0?bt(T.totalTokens):"0"}}if(p==="duration"){let N=t.reduce((M,H)=>M+H.activeDurationMs,0),S=t.filter((M)=>M.activeDurationMs>0).length,T=t[0];for(let M of t)if(!T||M.activeDurationMs>T.activeDurationMs)T=M;return{totalText:Et(N),totalFullText:Et(N),avgText:S>0?Et(Math.round(N/S)):"0s",peakDate:T&&T.activeDurationMs>0?Li(T.date):"—",peakValueText:T&&T.activeDurationMs>0?Et(T.activeDurationMs):"0s"}}let r=t.reduce((N,S)=>N+S.assistantTurns,0),i=t.reduce((N,S)=>N+S.userMessages,0),u=r+i,g=t.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,m=t[0];for(let N of t){let S=m?m.assistantTurns+m.userMessages:0;if(!m||N.assistantTurns+N.userMessages>S)m=N}let L=m?m.assistantTurns+m.userMessages:0;return{totalText:`${u.toLocaleString()} 轮`,totalFullText:`助手 ${r.toLocaleString()} 轮 · 用户 ${i.toLocaleString()} 问`,avgText:g>0?`${(u/g).toFixed(1)} 轮/天`:"0 轮/天",peakDate:m&&L>0?Li(m.date):"—",peakValueText:m&&L>0?`${L.toLocaleString()} 轮`:"0 轮"}},[t,p]),y=w(()=>{if(j){let r=t.find((i)=>i.date===j);if(r)return r}for(let r=t.length-1;r>=0;r--){let i=t[r];if(i&&(i.totalTokens>0||i.activeDurationMs>0||i.runs>0))return i}return t[t.length-1]},[t,j]),O=w(()=>{if(p==="tokens")return Math.max(1,...t.map((r)=>r.totalTokens));if(p==="duration")return Math.max(1000,...t.map((r)=>r.activeDurationMs));return Math.max(1,...t.map((r)=>r.assistantTurns+r.userMessages))},[t,p]),c=w(()=>{if(t.length<=7)return t.map((u)=>u.date);let r=6,i=[];for(let u=0;u<r;u++){let g=Math.round(u*(t.length-1)/(r-1)),m=t[g];if(m)i.push(m.date)}return i},[t]);if(!R)return e(k,{title:"每日趋势",action:e(D,{value:p,onChange:(r)=>x(r),options:ee}),children:e("div",{className:l("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(k,{title:"每日趋势",action:e(D,{value:p,onChange:(r)=>x(r),options:ee}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:C.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:C.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:C.peakValueText}),C.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",C.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-2xs text-dim",children:[p==="tokens"&&n(f,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),p==="duration"&&n(f,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),p==="activity"&&n(f,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-3xs text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>P(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:t.map((r)=>{let i=r.totalTokens;if(p==="duration")i=r.activeDurationMs;else if(p==="activity")i=r.assistantTurns+r.userMessages;let u=i<=0,g=u?0:Math.max(3,Math.min(100,i/O*100)),m=y?.date===r.date;return n("button",{type:"button","aria-label":`${r.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>P(r.date),onFocus:()=>P(r.date),onClick:()=>P(r.date),children:[e("div",{className:h("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",m?"bg-accent/10":"group-hover:bg-raised/60")}),u?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${g}%`},children:[p==="tokens"&&n(f,{children:[r.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${r.outputTokens/r.totalTokens*100}%`}}),r.inputTokens+r.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(r.inputTokens+r.cacheWriteTokens)/r.totalTokens*100}%`}}),r.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${r.cacheReadTokens/r.totalTokens*100}%`}})]}),p==="duration"&&n(f,{children:[r.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,r.generationMs/Math.max(1,r.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),p==="activity"&&n(f,{children:[r.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${r.userMessages/Math.max(1,r.assistantTurns+r.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),m&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},r.date)})}),e("div",{className:h("flex items-center pt-1.5 text-3xs text-faint font-mono tabular-nums",t.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:c.map((r)=>e("div",{className:h("whitespace-nowrap",t.length<=7&&"flex-1 text-center"),children:Li(r)},r))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:y?n(f,{children:[e("span",{className:"text-ink",children:js(y.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:bt(y.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(y.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[y.assistantTurns+y.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[y.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function se(d){let{cn:h,SettingGroup:D}=b(),{daily:k,hourly:l}=d,[t,p]=a(null),x=w(()=>{let i=new Map;for(let g of l)i.set(g.hour,g);let u=[];for(let g=0;g<24;g++){let m=i.get(g);if(m)u.push(m);else u.push({hour:g,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return u},[l]),j=w(()=>{let i=x[0];for(let u of x)if(!i||u.totalTokens>i.totalTokens)i=u;return i&&i.totalTokens>0?i:null},[x]),P=w(()=>x.reduce((i,u)=>i+u.totalTokens,0),[x]),R=w(()=>Math.max(1,...x.map((i)=>i.totalTokens)),[x]),C=w(()=>{if(P<=0)return 0;return x.filter((u)=>u.hour>=8&&u.hour<20).reduce((u,g)=>u+g.totalTokens,0)/P},[x,P]),y=w(()=>Math.max(1,...k.map((i)=>i.totalTokens)),[k]),O=w(()=>{let i=0,u=0;for(let g of k)if(g.totalTokens>0||g.activeDurationMs>0||g.runs>0){if(u++,u>i)i=u}else u=0;return i},[k]),c=w(()=>k.filter((i)=>i.totalTokens>0||i.activeDurationMs>0||i.runs>0).length,[k]),r=t!==null?x[t]:j;return n(D,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",Kn(C)]}),n("span",{children:["连续活跃 ",O," 天"]}),n("span",{children:["活跃 ",c,"/",k.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),r?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[t!==null?"时段 ":"高峰 ",String(r.hour).padStart(2,"0"),":00 -"," ",String((r.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:bt(r.totalTokens)}),r.activeDurationMs>0&&e("span",{children:Et(r.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>p(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:x.map((i)=>{let u=j?.hour===i.hour,g=t===i.hour,m=i.totalTokens>0?Math.max(6,i.totalTokens/R*100):0,L=`${String(i.hour).padStart(2,"0")}:00 - ${String((i.hour+1)%24).padStart(2,"0")}:00
2
- 消耗: ${Xn(i.totalTokens)} Token
3
- 耗时: ${Et(i.activeDurationMs)}
4
- 助手轮次: ${i.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(i.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:L,onMouseEnter:()=>p(i.hour),onFocus:()=>p(i.hour),onClick:()=>p(i.hour),children:m>0?e("div",{className:h("w-full max-w-[20px] rounded-t-xs transition-all duration-200",u||g?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${m}%`}}):e("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},i.hour)})}),n("div",{className:"flex justify-between items-center text-3xs text-faint font-mono pt-1.5 border-t border-line/40",children:[e("span",{children:"00:00"}),e("span",{children:"04:00"}),e("span",{children:"08:00"}),e("span",{children:"12:00"}),e("span",{children:"16:00"}),e("span",{children:"20:00"}),e("span",{children:"23:00"})]})]})]}),n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"text-xs text-dim",children:["自然日热力 (",k.length," 天)"]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:k.map((i)=>{let u="bg-raised";if(i.totalTokens>0){let m=i.totalTokens/y;if(m<=0.33)u="bg-accent/30";else if(m<=0.66)u="bg-accent/60";else u="bg-accent"}let g=`${js(i.date)}
5
- 消耗: ${Xn(i.totalTokens)} Token
6
- 耗时: ${Et(i.activeDurationMs)}
7
- 助手轮次: ${i.assistantTurns} 轮`;return e("div",{className:h("size-3.5 rounded-xs transition-transform hover:scale-125 cursor-pointer",u),title:g},i.date)})})]})]})}var re=[{value:"7d",label:"近 7 天"},{value:"30d",label:"近 30 天"},{value:"90d",label:"近 90 天"},{value:"all",label:"全部"}],W=new Map,ae=[];function K(d,h){return`${d}:${h??"all"}`}function we(d){let{connection:h,onOpen:D}=d,{Button:k,PageLayout:l,Segmented:t,SettingGroup:p,style:x}=b(),[j,P]=a("30d"),[R,C]=a(null),[y,O]=a("projects"),[c,r]=a(()=>W.get(K("30d",null))??null),[i,u]=a(()=>!W.has(K("30d",null))),[g,m]=a(null),[L,N]=a(()=>ae),S=o(0),T=v(async()=>{let H=++S.current,I=K(j,R),U=W.get(I);if(U)r(U);u(!0);try{let F=new URLSearchParams({range:j,tzOffset:String(new Date().getTimezoneOffset())});if(R)F.set("projectID",R);let G=await h.request(`/api/stats?${F.toString()}`);if(H!==S.current)return;if(W.set(I,G),r(G),m(null),G.projects)N((ne)=>{let Y=new Map(ne.map((A)=>[A.id,A.name]));for(let A of G.projects)if(A.projectID)Y.set(A.projectID,A.name);let q=Array.from(Y.entries()).map(([A,oe])=>({id:A,name:oe}));return ae=q,q})}catch(F){if(H===S.current)m(F instanceof Error?F.message:"加载统计数据失败")}finally{if(H===S.current)u(!1)}},[h,j,R]);s(()=>(T(),()=>{S.current++}),[T]);let M=w(()=>{if(!R)return null;if(R===z)return"独立聊天";return(L.find((I)=>I.id===R)??c?.projects.find((I)=>I.projectID===R))?.name??"指定项目"},[R,L,c]);return n(l,{title:M?n(f,{children:["统计 ",n("span",{className:"text-dim",children:["· ",M]})]}):"统计",description:"按项目、模型与工具统计活跃耗时与 Token 消耗。",actions:n(f,{children:[R&&e(k,{size:"sm",variant:"ghost",onClick:()=>C(null),children:"返回全部"}),e(t,{value:j,onChange:P,options:re})]}),children:[g&&n("div",{className:"mb-4 flex items-center justify-between rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:[e("span",{children:g}),e(k,{size:"sm",variant:"ghost",onClick:()=>{T()},className:"text-danger hover:text-danger",children:"重试"})]}),i&&!c?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载统计…"}):!c?e("div",{className:x("surface.card","p-12 text-center text-sm text-dim"),children:"暂无统计数据"}):n("div",{className:"space-y-8",children:[e(p,{title:"核心总览",unboxed:!0,children:n("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"总 Token 消耗"}),n("span",{className:"font-mono tabular-nums",children:["缓存命中 ",Kn(c.overview.cacheHitRate)]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",title:`${Xn(c.overview.totalTokens)} Token`,children:bt(c.overview.totalTokens)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:["输入 ",bt(c.overview.inputTokens)]}),n("span",{children:["输出 ",bt(c.overview.outputTokens)]}),n("span",{children:["缓存读 ",bt(c.overview.cacheReadTokens)]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"活跃工作耗时"}),n("span",{className:"font-mono tabular-nums",children:["日均"," ",c.overview.activeDays>0?Et(c.overview.activeDurationMs/c.overview.activeDays):"0s"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:Et(c.overview.activeDurationMs)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:["模型推理 ",Et(c.overview.generationMs)]}),n("span",{children:["并发累计 ",Et(c.overview.cumulativeRunDurationMs)]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"会话与工作流"}),n("span",{className:"font-mono tabular-nums",children:[c.overview.activeProjects,"/",c.overview.totalProjects," 活跃项目"]})]}),n("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:[c.overview.sessionCount.toLocaleString()," 个会话"]}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:[c.overview.mainSessionCount," 主会话 / ",c.overview.subSessionCount," 子代理"]}),n("span",{children:[c.overview.userMessages," 提问 / ",c.overview.assistantTurns," 回复"]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"吞吐效率与调用"}),n("span",{className:"font-mono tabular-nums",children:[c.overview.compactions," 次折叠"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:c.overview.avgTps!==null?`${c.overview.avgTps.toFixed(1)} tok/s`:`${c.overview.toolCalls.toLocaleString()} 次调用`}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:[c.overview.toolCalls.toLocaleString()," 次工具调用"]}),n("span",{children:[c.overview.runCount.toLocaleString()," 次运行"]})]})]})]})}),e(te,{daily:c.daily}),e(se,{daily:c.daily,hourly:c.hourly}),e(p,{title:"分类明细",action:e(t,{value:y,onChange:O,options:[{value:"projects",label:`项目消耗 (${c.projects.length})`},{value:"models",label:`模型分析 (${c.models.length})`},{value:"tools",label:`工具调用 (${c.tools.length})`},{value:"sessions",label:`高消耗会话 (${c.topSessions.length})`}]}),children:n("div",{className:"animate-fade",children:[y==="projects"&&e(Q,{projects:c.projects,selectedProjectID:R,onSelectProject:C,onOpenSession:D}),y==="models"&&e(Z,{models:c.models}),y==="tools"&&e(J,{tools:c.tools}),y==="sessions"&&e(X,{sessions:c.topSessions,onOpenSession:D})]},y)})]})]})}export{we as StatsPage};
Binary file
Binary file
@@ -1,120 +0,0 @@
1
- import{t,rr,i,de,m,h,A,dn,Ao,N,u,g,J,Mt,Ne,Dt}from"./chunk-rmzb9edh.js";import{xn}from"./chunk-vtvf1x6b.js";var ct=function(){var r=t(function(S,o,f,d){for(f=f||{},d=S.length;d--;f[S[d]]=o);return f},"o"),e=[6,11,13,14,15,17,19,20,23,24],a=[1,12],s=[1,13],n=[1,14],p=[1,15],c=[1,16],l=[1,19],v=[1,20],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(o,f,d,k,_,y,I){var E=y.length-1;switch(_){case 1:return y[E-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:y[E-1].push(y[E]),this.$=y[E-1];break;case 7:case 8:this.$=y[E];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(y[E].substr(6)),this.$=y[E].substr(6);break;case 12:this.$=y[E].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=y[E].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(y[E].substr(8)),this.$=y[E].substr(8);break;case 18:k.addTask(y[E],0,""),this.$=y[E];break;case 19:k.addEvent(y[E].substr(2)),this.$=y[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(e,[2,5],{5:6}),r(e,[2,2]),r(e,[2,3]),r(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:a,15:s,17:n,19:p,20:c,21:17,22:18,23:l,24:v},r(e,[2,10],{1:[2,1]}),r(e,[2,6]),{12:21,14:a,15:s,17:n,19:p,20:c,21:17,22:18,23:l,24:v},r(e,[2,8]),r(e,[2,9]),r(e,[2,11]),{16:[1,22]},{18:[1,23]},r(e,[2,14]),r(e,[2,15]),r(e,[2,16]),r(e,[2,17]),r(e,[2,18]),r(e,[2,19]),r(e,[2,7]),r(e,[2,12]),r(e,[2,13])],defaultActions:{},parseError:t(function(o,f){if(f.recoverable)this.trace(o);else{var d=Error(o);throw d.hash=f,d}},"parseError"),parse:t(function(o){var f=this,d=[0],k=[],_=[null],y=[],I=this.table,E="",W=0,G=0,D=0,q=2,B=1,O=y.slice.call(arguments,1),L=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(L.setInput(o,F.yy),F.yy.lexer=L,F.yy.parser=this,typeof L.yylloc>"u")L.yylloc={};var Q=L.yylloc;y.push(Q);var C=L.options&&L.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function T(K){d.length=d.length-2*K,_.length=_.length-K,y.length=y.length-K}t(T,"popStack");function M(){var K=k.pop()||L.lex()||B;if(typeof K!=="number"){if(K instanceof Array)k=K,K=k.pop();K=f.symbols_[K]||K}return K}t(M,"lex");var H,P,V,R,ot,et,j={},rt,X,yt,nt;while(!0){if(V=d[d.length-1],this.defaultActions[V])R=this.defaultActions[V];else{if(H===null||typeof H>"u")H=M();R=I[V]&&I[V][H]}if(typeof R>"u"||!R.length||!R[0]){var lt="";nt=[];for(rt in I[V])if(this.terminals_[rt]&&rt>q)nt.push("'"+this.terminals_[rt]+"'");if(L.showPosition)lt="Parse error on line "+(W+1)+`:
2
- `+L.showPosition()+`
3
- Expecting `+nt.join(", ")+", got '"+(this.terminals_[H]||H)+"'";else lt="Parse error on line "+(W+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'");this.parseError(lt,{text:L.match,token:this.terminals_[H]||H,line:L.yylineno,loc:Q,expected:nt})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+H);switch(R[0]){case 1:if(d.push(H),_.push(L.yytext),y.push(L.yylloc),d.push(R[1]),H=null,!P){if(G=L.yyleng,E=L.yytext,W=L.yylineno,Q=L.yylloc,D>0)D--}else H=P,P=null;break;case 2:if(X=this.productions_[R[1]][1],j.$=_[_.length-X],j._$={first_line:y[y.length-(X||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(X||1)].first_column,last_column:y[y.length-1].last_column},C)j._$.range=[y[y.length-(X||1)].range[0],y[y.length-1].range[1]];if(et=this.performAction.apply(j,[E,G,W,F.yy,R[1],_,y].concat(O)),typeof et<"u")return et;if(X)d=d.slice(0,-1*X*2),_=_.slice(0,-1*X),y=y.slice(0,-1*X);d.push(this.productions_[R[1]][0]),_.push(j.$),y.push(j._$),yt=I[d[d.length-2]][d[d.length-1]],d.push(yt);break;case 3:return!0}}return!0},"parse")},w=function(){var S={EOF:1,parseError:t(function(f,d){if(this.yy.parser)this.yy.parser.parseError(f,d);else throw Error(f)},"parseError"),setInput:t(function(o,f){if(this.yy=f||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);if(f)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),o},"input"),unput:t(function(o){var f=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var k=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),d.length-1)this.yylineno-=d.length-1;var _=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:d?(d.length===k.length?this.yylloc.first_column:0)+k[k.length-d.length].length-d[0].length:this.yylloc.first_column-f},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-f];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(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),f=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+f+"^"},"showPosition"),test_match:t(function(o,f){var d,k,_;if(this.options.backtrack_lexer){if(_={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)_.yylloc.range=this.yylloc.range.slice(0)}if(k=o[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],d=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(d)return d;else if(this._backtrack){for(var y in _)this[y]=_[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,f,d,k;if(!this._more)this.yytext="",this.match="";var _=this._currentRules();for(var y=0;y<_.length;y++)if(d=this._input.match(this.rules[_[y]]),d&&(!f||d[0].length>f[0].length)){if(f=d,k=y,this.options.backtrack_lexer)if(o=this.test_match(d,_[y]),o!==!1)return o;else if(this._backtrack){f=!1;continue}else return!1;else if(!this.options.flex)break}if(f){if(o=this.test_match(f,_[k]),o!==!1)return o;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 f=this.next();if(f)return f;else return this.lex()},"lex"),begin:t(function(f){this.conditionStack.push(f)},"begin"),popState:t(function(){var f=this.conditionStack.length-1;if(f>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(f){if(f=this.conditionStack.length-1-Math.abs(f||0),f>=0)return this.conditionStack[f];else return"INITIAL"},"topState"),pushState:t(function(f){this.begin(f)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(f,d,k,_){var y=_;switch(k){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return S}();x.lexer=w;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();ct.parser=ct;var zt=ct,_t={};rr(_t,{addEvent:()=>At,addSection:()=>Nt,addTask:()=>Lt,addTaskOrg:()=>Ct,clear:()=>Et,default:()=>Ot,getCommonDb:()=>St,getDirection:()=>$t,getSections:()=>It,getTasks:()=>Ht,setDirection:()=>Tt});var Y="",wt=0,dt="LR",ut=[],it=[],tt=[],St=t(()=>Ao,"getCommonDb"),Et=t(function(){ut.length=0,it.length=0,Y="",tt.length=0,dt="LR",N()},"clear"),Tt=t(function(r){dt=r},"setDirection"),$t=t(function(){return dt},"getDirection"),Nt=t(function(r){Y=r,ut.push(r)},"addSection"),It=t(function(){return ut},"getSections"),Ht=t(function(){let r=mt(),e=100,a=0;while(!r&&a<e)r=mt(),a++;return it.push(...tt),it},"getTasks"),Lt=t(function(r,e,a){let s={id:wt++,section:Y,type:Y,task:r,score:e?e:0,events:a?[a]:[]};tt.push(s)},"addTask"),At=t(function(r){tt.find((a)=>a.id===wt-1).events.push(r)},"addEvent"),Ct=t(function(r){let e={section:Y,type:Y,description:r,task:r,classes:[]};it.push(e)},"addTaskOrg"),mt=t(function(){let r=t(function(a){return tt[a].processed},"compileTask"),e=!0;for(let[a,s]of tt.entries())r(a),e=e&&s.processed;return e},"compileTasks"),Ot={clear:Et,getCommonDb:St,getDirection:$t,setDirection:Tt,addSection:Nt,getSections:It,getTasks:Ht,addTask:Lt,addTaskOrg:Ct,addEvent:At},Rt=0,st=t(function(r,e){let a=r.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),a.attr("rx",e.rx),a.attr("ry",e.ry),e.class!==void 0)a.attr("class",e.class);return a},"drawRect"),Gt=t(function(r,e){let s=r.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=r.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function p(v){let x=xn().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}t(p,"smile");function c(v){let x=xn().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}t(c,"sad");function l(v){v.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(l,"ambivalent"),e.score>3)p(n);else if(e.score<3)c(n);else l(n);return s},"drawFace"),Kt=t(function(r,e){let a=r.append("circle");if(a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0)a.attr("class",a.class);if(e.title!==void 0)a.append("title").text(e.title);return a},"drawCircle"),Wt=t(function(r,e){let a=e.text.replace(/<br\s*\/?>/gi," "),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(a),s},"drawText"),Ut=t(function(r,e){function a(n,p,c,l,v){return n+","+p+" "+(n+c)+","+p+" "+(n+c)+","+(p+l-v)+" "+(n+c-v*1.2)+","+(p+l)+" "+n+","+(p+l)}t(a,"genPoints");let s=r.append("polygon");s.attr("points",a(e.x,e.y,50,20,7)),s.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+0.5*e.labelMargin,Wt(r,e)},"drawLabel"),Xt=t(function(r,e,a){let s=r.append("g"),n=pt();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=a.width,n.height=a.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,st(s,n),Pt(a)(e.text,s,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),ht=-1,Zt=t(function(r,e,a,s){let n=e.x+a.width/2,p=r.append("g");ht++;let c=450;p.append("line").attr("id",s+"-task"+ht).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",c).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Gt(p,{cx:n,cy:300+(5-e.score)*30,score:e.score});let l=pt();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=a.width,l.height=a.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,st(p,l),Pt(a)(e.task,p,l.x,l.y,l.width,l.height,{class:"task"},a,e.colour)},"drawTask"),jt=t(function(r,e){st(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),qt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),pt=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Pt=function(){function r(n,p,c,l,v,x,w,b){let S=p.append("text").attr("x",c+v/2).attr("y",l+x/2+5).style("font-color",b).style("text-anchor","middle").text(n);s(S,w)}t(r,"byText");function e(n,p,c,l,v,x,w,b,S){let{taskFontSize:o,taskFontFamily:f}=b,d=n.split(/<br\s*\/?>/gi);for(let k=0;k<d.length;k++){let _=k*o-o*(d.length-1)/2,y=p.append("text").attr("x",c+v/2).attr("y",l).attr("fill",S).style("text-anchor","middle").style("font-size",o).style("font-family",f);y.append("tspan").attr("x",c+v/2).attr("dy",_).text(d[k]),y.attr("y",l+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(y,w)}}t(e,"byTspan");function a(n,p,c,l,v,x,w,b){let S=p.append("switch"),f=S.append("foreignObject").attr("x",c).attr("y",l).attr("width",v).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");f.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,S,c,l,v,x,w,b),s(f,w)}t(a,"byFo");function s(n,p){for(let c in p)if(c in p)n.attr(c,p[c])}return t(s,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?a:n.textPlacement==="old"?r:e}}(),Jt=t(function(r,e){Rt=0,ht=-1,r.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function gt(r,e){r.each(function(){var a=g(this),s=a.text().split(/(\s+|<br>)/).reverse(),n,p=[],c=1.1,l=a.attr("y"),v=parseFloat(a.attr("dy")),x=a.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",v+"em");for(let w=0;w<s.length;w++)if(n=s[s.length-1-w],p.push(n),x.text(p.join(" ").trim()),x.node().getComputedTextLength()>e||n==="<br>"){if(p.pop(),x.text(p.join(" ").trim()),n==="<br>")p=[""];else p=[n];x=a.append("tspan").attr("x",0).attr("y",l).attr("dy",c+"em").text(n)}})}t(gt,"wrap");var Qt=t(function(r,e,a,s,n,p=!1){let{theme:c,look:l}=s,v=c?.includes("redux"),x=s?.themeVariables?.THEME_COLOR_LIMIT??12,w=a%x-1,b=r.append("g");e.section=w,b.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+w));let S=b.append("g"),o=b.append("g"),d=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),k=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;if(e.height=d.height+k*1.1*0.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,o.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),v)o.attr("transform",`translate(${e.width/2}, ${p?e.padding/2+3:e.padding})`);if(te(S,e,w,n,s),l==="neo"){if(b.attr("data-look","neo"),v){let _=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),I=g(y),E=I.attr("id")??"",W=E?`${E}-drop-shadow`:"drop-shadow";if(I.select(`#${W}`).empty()){let G=I.select("defs");(G.empty()?I.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",_?"0.2":"0.06").attr("flood-color",_?"#FFFFFF":"#000000")}}}return e},"drawNode"),Yt=t(function(r,e,a){let s=r.append("g"),p=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),c=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;return s.remove(),p.height+c*1.1*0.5+e.padding},"getVirtualNodeHeight"),te=t(function(r,e,a,s,n){let{theme:p}=n,c=p?.includes("redux")?0:5,l=5,v=c>0?`M0 ${e.height-5} v${-e.height+10} q0,-${c},${c},-${c} h${e.width-10} q${c},0,${c},${c} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;if(r.append("path").attr("id",s+"-node-"+Rt++).attr("class","node-bkg node-"+e.type).attr("d",v),!p?.includes("redux"))r.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),z={drawRect:st,drawCircle:Kt,drawSection:Xt,drawText:Wt,drawLabel:Ut,drawTask:Zt,drawBackgroundRect:jt,getTextObj:qt,getNoteRect:pt,initGraphics:Jt,drawNode:Qt,getVirtualNodeHeight:Yt},ee=t(function(r,e,a,s){let n=u(),{look:p,theme:c,themeVariables:l}=n,{useGradient:v,gradientStart:x,gradientStop:w}=l,b=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let S=n.securityLevel,o;if(S==="sandbox")o=g("#i"+e);let d=(S==="sandbox"?g(o.nodes()[0].contentDocument.body):g("body")).select("#"+e);d.append("g");let k=s.db.getTasks(),_=s.db.getCommonDb().getDiagramTitle();i.debug("task",k),z.initGraphics(d,e);let y=s.db.getSections();i.debug("sections",y);let I=0,E=0,W=0,G=0,D=50+b,q=50;G=50;let B=0,O=!0;y.forEach(function(C){let T={number:B,descr:C,section:B,width:150,padding:20,maxHeight:I},M=z.getVirtualNodeHeight(d,T,n);i.debug("sectionHeight before draw",M),I=Math.max(I,M+20)});let L=0,F=0;i.debug("tasks.length",k.length);for(let[C,T]of k.entries()){let M={number:C,descr:T,section:T.section,width:150,padding:20,maxHeight:E},H=z.getVirtualNodeHeight(d,M,n);i.debug("taskHeight before draw",H),E=Math.max(E,H+20),L=Math.max(L,T.events.length);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(d,R,n)}if(T.events.length>0)P+=(T.events.length-1)*10;F=Math.max(F,P)}if(i.debug("maxSectionHeight before draw",I),i.debug("maxTaskHeight before draw",E),y&&y.length>0)y.forEach((C)=>{let T=k.filter((V)=>V.section===C),M={number:B,descr:C,section:B,width:200*Math.max(T.length,1)-50,padding:20,maxHeight:I};i.debug("sectionNode",M);let H=d.append("g"),P=z.drawNode(H,M,B,n,e);if(i.debug("sectionNode output",P),H.attr("transform",`translate(${D}, ${G})`),q+=I+50,T.length>0)kt(d,T,B,D,q,E,n,L,F,I,!1,e);D+=200*Math.max(T.length,1),q=G,B++});else O=!1,kt(d,k,B,D,q,E,n,L,F,I,!0,e);let U=d.node().getBBox();if(i.debug("bounds",U),_)d.append("text").text(_).attr("x",p==="neo"?U.x*2+b:U.width/2-b).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?I+E+150:E+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",b).attr("y1",W).attr("x2",U.width+3*b).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),p==="neo"&&v&&c!=="neutral"){let C=d.select("defs"),M=(C.empty()?d.append("defs"):C).append("linearGradient").attr("id",d.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}dn(void 0,d,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),kt=t(function(r,e,a,s,n,p,c,l,v,x,w,b){for(let S of e){let o={descr:S.task,section:a,number:a,width:150,padding:20,maxHeight:p};i.debug("taskNode",o);let f=r.append("g").attr("class","taskWrapper"),k=z.drawNode(f,o,a,c,b).height;if(i.debug("taskHeight after draw",k),f.attr("transform",`translate(${s}, ${n})`),p=Math.max(p,k),S.events){let _=r.append("g").attr("class","lineWrapper"),y=p;n+=100,y=y+re(r,S.events,a,s,n,c,b),n-=100,_.append("line").attr("x1",s+95).attr("y1",n+p).attr("x2",s+95).attr("y2",n+p+100+v+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${b}-arrowhead)`).attr("stroke-dasharray","5,5")}if(s=s+200,w&&!c.timeline?.disableMulticolor)a++}n=n-10},"drawTasks"),re=t(function(r,e,a,s,n,p,c){let l=0,v=n;n=n+100;for(let x of e){let w={descr:x,section:a,number:a,width:150,padding:20,maxHeight:50};i.debug("eventNode",w);let b=r.append("g").attr("class","eventWrapper"),o=z.drawNode(b,w,a,p,c,!0).height;l=l+o,b.attr("transform",`translate(${s}, ${n})`),n=n+10+o}return n=v,l},"drawEvents"),ne={setConf:t(()=>{},"setConf"),draw:ee},at=200,Z=5,ie=at+Z*2,ft=at+100,se=ft+Z*2,Bt=10,ae=0,xt=20,Vt=20,bt=30,Ft=50,oe=t(function(r,e,a,s){let n=u(),p=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let c=J(e);c.append("g");let l=s.db.getTasks(),v=s.db.getCommonDb().getDiagramTitle();i.debug("task",l),z.initGraphics(c);let x=s.db.getSections();i.debug("sections",x);let w=0,b=0,S=50+p,o=50,f=o,d=S,k=ie+Vt,_=se+Ft,y=d+k,I=0,E=x&&x.length>0,W=E?y:S+k,G=Math.max(50,k+_-Z*2);x.forEach(function(C){let T={number:I,descr:C,section:I,width:G,padding:Z,maxHeight:w},M=z.getVirtualNodeHeight(c,T,n);i.debug("sectionHeight before draw",M),w=Math.max(w,M)});let D=0;i.debug("tasks.length",l.length);for(let[C,T]of l.entries()){let M={number:C,descr:T,section:T.section,width:at,padding:Z,maxHeight:b},H=z.getVirtualNodeHeight(c,M,n);i.debug("taskHeight before draw",H),b=Math.max(b,H);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:ft,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,R,n)}if(T.events.length>0)P+=(T.events.length-1)*Bt;D=Math.max(D,P)+ae}i.debug("maxSectionHeight before draw",w),i.debug("maxTaskHeight before draw",b);let B=Math.max(b,D)+bt;if(E)x.forEach((C)=>{let T=l.filter((j)=>j.section===C),M={number:I,descr:C,section:I,width:G,padding:Z,maxHeight:w};i.debug("sectionNode",M);let H=c.append("g"),P=z.drawNode(H,M,I,n);i.debug("sectionNode output",P);let V=W-k;H.attr("transform",`translate(${V}, ${o})`);let R=o+P.height+xt;if(T.length>0)vt(c,T,I,W,R,b,n,B,!1);let ot=T.length,et=P.height+xt+B*Math.max(ot,1)-(ot>0?bt*2:0);o+=et,I++});else vt(c,l,I,W,o,b,n,B,!0);let O=c.node()?.getBBox();if(!O)throw Error("bbox not found");if(i.debug("bounds",O),v){if(c.append("text").text(v).attr("x",O.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=c.node()?.getBBox(),!O)throw Error("bbox not found");i.debug("bounds after title",O)}let[L]=Mt(n.fontSize),F=(L??16)*2,U=(L??16)*0.5+20,Q=c.append("g").attr("class","lineWrapper");Q.append("line").attr("x1",W).attr("y1",f-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Q.lower(),dn(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),vt=t(function(r,e,a,s,n,p,c,l,v){for(let x of e){let w={descr:x.task,section:a,number:a,width:at,padding:Z,maxHeight:p};i.debug("taskNode",w);let b=r.append("g").attr("class","taskWrapper"),S=z.drawNode(b,w,a,c),o=S.height;i.debug("taskHeight after draw",o);let f=s-Vt-S.width;if(b.attr("transform",`translate(${f}, ${n})`),p=Math.max(p,o),x.events&&x.events.length>0){let d=n,k=s+Ft;le(r,x.events,a,s,k,d,c)}if(n=n+l,v&&!c.timeline?.disableMulticolor)a++}},"drawTasks"),le=t(function(r,e,a,s,n,p,c){let l=p;for(let v of e){let x={descr:v,section:a,number:a,width:ft,padding:Z,maxHeight:0};i.debug("eventNode",x);let w=r.append("g").attr("class","eventWrapper"),S=z.drawNode(w,x,a,c).height;w.attr("transform",`translate(${n}, ${l})`);let o=r.append("g").attr("class","lineWrapper"),f=l+S/2;o.append("line").attr("x1",s).attr("y1",f).attr("x2",n).attr("y2",f).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+S+Bt}return l-p},"drawEvents"),ce={setConf:t(()=>{},"setConf"),draw:oe},he=t((r)=>{let{theme:e}=A(),a=e?.includes("dark"),s=Ne(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",p=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let l=0;l<Dt(r.THEME_COLOR_LIMIT);l++){let v=`${17-3*l}`,x=s?r.borderColorArray[l%r.borderColorArray.length]:void 0,w=x??r.mainBkg,b=x??r.nodeBorder;c+=`
7
- .section-${l-1} rect,
8
- .section-${l-1} path,
9
- .section-${l-1} circle {
10
- fill: ${a&&s?r.mainBkg:w};
11
- stroke: ${b};
12
- stroke-width: ${r.strokeWidth};
13
- filter: ${p};
14
- }
15
-
16
- .section-${l-1} text {
17
- fill: ${r.nodeBorder};
18
- font-weight: ${r.fontWeight}
19
- }
20
-
21
- .node-icon-${l-1} {
22
- font-size: 40px;
23
- color: ${r["cScaleLabel"+l]};
24
- }
25
-
26
- .section-edge-${l-1} {
27
- stroke: ${r["cScale"+l]};
28
- }
29
-
30
- .edge-depth-${l-1} {
31
- stroke-width: ${v};
32
- }
33
-
34
- .section-${l-1} line {
35
- stroke: ${r["cScaleInv"+l]};
36
- stroke-width: 3;
37
- }
38
-
39
- .lineWrapper line {
40
- stroke: ${r.nodeBorder};
41
- stroke-width:${r.strokeWidth}
42
- }
43
-
44
- .disabled,
45
- .disabled circle,
46
- .disabled text {
47
- fill: ${r.tertiaryColor??"lightgray"};
48
- }
49
-
50
- .disabled text {
51
- fill: ${r.clusterBorder??"#efefef"};
52
- }
53
- `}return c},"genReduxSections"),ue=t((r)=>{let e="",a=Dt(r.THEME_COLOR_LIMIT);for(let s=0;s<a;s++)if(r["lineColor"+s]=r["lineColor"+s]??r["cScaleInv"+s],de(r["lineColor"+s]))r["lineColor"+s]=m(r["lineColor"+s],20);else r["lineColor"+s]=h(r["lineColor"+s],20);for(let s=0;s<a;s++){let n=""+(17-3*s);e+=`
54
- .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} path {
55
- fill: ${r["cScale"+s]};
56
- }
57
- .section-${s-1} text {
58
- fill: ${r["cScaleLabel"+s]};
59
- }
60
- .node-icon-${s-1} {
61
- font-size: 40px;
62
- color: ${r["cScaleLabel"+s]};
63
- }
64
- .section-edge-${s-1}{
65
- stroke: ${r["cScale"+s]};
66
- }
67
- .edge-depth-${s-1}{
68
- stroke-width: ${n};
69
- }
70
- .section-${s-1} line {
71
- stroke: ${r["cScaleInv"+s]} ;
72
- stroke-width: 3;
73
- }
74
-
75
- .lineWrapper line{
76
- stroke: ${r["cScaleLabel"+s]} ;
77
- }
78
-
79
- .disabled, .disabled circle, .disabled text {
80
- fill: ${r.tertiaryColor??"lightgray"};
81
- }
82
- .disabled text {
83
- fill: ${r.clusterBorder??"#efefef"};
84
- }
85
- `}return e},"genSections"),pe=t((r)=>{let{theme:e}=A(),a=e?.includes("redux"),s=e==="neutral",n=r.svgId?.replace(/^#/,"")??"",p="";if(r.useGradient&&n&&r.THEME_COLOR_LIMIT&&!s){let c=Dt(r.THEME_COLOR_LIMIT);for(let l=0;l<c;l++)p+=`
86
- .section-${l-1}[data-look="neo"] rect,
87
- .section-${l-1}[data-look="neo"] path,
88
- .section-${l-1}[data-look="neo"] circle {
89
- fill: ${r.mainBkg};
90
- stroke: url(#${n}-gradient);
91
- stroke-width: 2;
92
- }
93
- .section-${l-1}[data-look="neo"] line {
94
- stroke: url(#${n}-gradient);
95
- stroke-width: 2;
96
- }`}return`
97
- .edge {
98
- stroke-width: 3;
99
- }
100
- ${a?he(r):ue(r)}
101
- ${p}
102
- .section-root rect, .section-root path, .section-root circle {
103
- fill: ${r.git0};
104
- }
105
- .section-root text {
106
- fill: ${r.gitBranchLabel0};
107
- }
108
- .icon-container {
109
- height:100%;
110
- display: flex;
111
- justify-content: center;
112
- align-items: center;
113
- }
114
- .edge {
115
- fill: none;
116
- }
117
- .eventWrapper {
118
- filter: brightness(120%);
119
- }
120
- `},"getStyles"),ge=pe,fe={setConf:t(()=>{},"setConf"),draw:t((r,e,a,s)=>{if((s?.db?.getDirection?.()??"LR")==="TD")return ce.draw(r,e,a,s);return ne.draw(r,e,a,s)},"draw")},Ee={db:_t,renderer:fe,parser:zt,styles:ge};export{Ee as diagram};
Binary file
Binary file
@@ -1,36 +0,0 @@
1
- import{ae}from"./chunk-ctckn7gz.js";import{t,i,F,A,q,dn,N,M,P,R,I,O,D,u,g,J,Js,Vr,Xt,Z,Ct,ct}from"./chunk-rmzb9edh.js";import{fe}from"./chunk-aqz2exas.js";import{hn,si}from"./chunk-t7wae2xz.js";import{Qe,Je}from"./chunk-ws8rv0tb.js";var lt=Je(function(et,nt){(function(n,s){if(typeof et==="object"&&typeof nt==="object")nt.exports=s(si());else if(typeof define==="function"&&define.amd)define(["cose-base"],s);else if(typeof et==="object")et.cytoscapeFcose=s(si());else n.cytoscapeFcose=s(n.coseBase)})(et,function(e){return(()=>{var n={658:(T)=>{T.exports=Object.assign!=null?Object.assign.bind(Object):function(G){for(var p=arguments.length,x=Array(p>1?p-1:0),l=1;l<p;l++)x[l-1]=arguments[l];return x.forEach(function(y){Object.keys(y).forEach(function(c){return G[c]=y[c]})}),G}},548:(T,G,p)=>{var x=function(){function c(d,f){var h=[],r=!0,z=!1,b=void 0;try{for(var o=d[Symbol.iterator](),v;!(r=(v=o.next()).done);r=!0)if(h.push(v.value),f&&h.length===f)break}catch(L){z=!0,b=L}finally{try{if(!r&&o.return)o.return()}finally{if(z)throw b}}return h}return function(d,f){if(Array.isArray(d))return d;else if(Symbol.iterator in Object(d))return c(d,f);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=p(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(c){var d={};for(var f=0;f<c.length;f++)d[c[f].id()]=!0;var h=c.filter(function(r,z){if(typeof r==="number")r=z;var b=r.parent()[0];while(b!=null){if(d[b.id()])return!1;b=b.parent()[0]}return!0});return h},y.connectComponents=function(c,d,f,h){var r=new l,z=new Set,b=[],o=void 0,v=void 0,L=void 0,a=!1,S=1,Y=[],C=[],U=function(){var w=c.collection();C.push(w);var _=f[0],X=c.collection();X.merge(_).merge(_.descendants().intersection(d)),b.push(_),X.forEach(function(ee){r.push(ee),z.add(ee),w.merge(ee)});var j=function(){_=r.shift();var ue=c.collection();_.neighborhood().nodes().forEach(function(H){if(d.intersection(_.edgesWith(H)).length>0)ue.merge(H)});for(var Ae=0;Ae<ue.length;Ae++){var Re=ue[Ae];if(o=f.intersection(Re.union(Re.ancestors())),o!=null&&!z.has(o[0])){var ce=o.union(o.descendants());ce.forEach(function(H){if(r.push(H),z.add(H),w.merge(H),f.has(H))b.push(H)})}}};while(r.length!=0)j();if(w.forEach(function(ee){d.intersection(ee.connectedEdges()).forEach(function(ue){if(w.has(ue.source())&&w.has(ue.target()))w.merge(ue)})}),b.length==f.length)a=!0;if(!a||a&&S>1){v=b[0],L=v.connectedEdges().length,b.forEach(function(ee){if(ee.connectedEdges().length<L)L=ee.connectedEdges().length,v=ee}),Y.push(v.id());var oe=c.collection();oe.merge(b[0]),b.forEach(function(ee){oe.merge(ee)}),b=[],f=f.difference(oe),S++}};do U();while(!a);if(h){if(Y.length>0)h.set("dummy"+(h.size+1),Y)}return C},y.relocateComponent=function(c,d,f){if(!f.fixedNodeConstraint){var{POSITIVE_INFINITY:h,NEGATIVE_INFINITY:r,POSITIVE_INFINITY:z,NEGATIVE_INFINITY:b}=Number;if(f.quality=="draft"){var o=!0,v=!1,L=void 0;try{for(var a=d.nodeIndexes[Symbol.iterator](),S;!(o=(S=a.next()).done);o=!0){var Y=S.value,C=x(Y,2),U=C[0],B=C[1],w=f.cy.getElementById(U);if(w){var _=w.boundingBox(),X=d.xCoords[B]-_.w/2,j=d.xCoords[B]+_.w/2,oe=d.yCoords[B]-_.h/2,ee=d.yCoords[B]+_.h/2;if(X<h)h=X;if(j>r)r=j;if(oe<z)z=oe;if(ee>b)b=ee}}}catch(H){v=!0,L=H}finally{try{if(!o&&a.return)a.return()}finally{if(v)throw L}}var ue=c.x-(r+h)/2,Ae=c.y-(b+z)/2;d.xCoords=d.xCoords.map(function(H){return H+ue}),d.yCoords=d.yCoords.map(function(H){return H+Ae})}else{Object.keys(d).forEach(function(H){var ne=d[H],Ie=ne.getRect().x,be=ne.getRect().x+ne.getRect().width,Ne=ne.getRect().y,xe=ne.getRect().y+ne.getRect().height;if(Ie<h)h=Ie;if(be>r)r=be;if(Ne<z)z=Ne;if(xe>b)b=xe});var Re=c.x-(r+h)/2,ce=c.y-(b+z)/2;Object.keys(d).forEach(function(H){var ne=d[H];ne.setCenter(ne.getCenterX()+Re,ne.getCenterY()+ce)})}}},y.calcBoundingBox=function(c,d,f,h){var{MAX_SAFE_INTEGER:r,MIN_SAFE_INTEGER:z,MAX_SAFE_INTEGER:b,MIN_SAFE_INTEGER:o}=Number,v=void 0,L=void 0,a=void 0,S=void 0,Y=c.descendants().not(":parent"),C=Y.length;for(var U=0;U<C;U++){var B=Y[U];if(v=d[h.get(B.id())]-B.width()/2,L=d[h.get(B.id())]+B.width()/2,a=f[h.get(B.id())]-B.height()/2,S=f[h.get(B.id())]+B.height()/2,r>v)r=v;if(z<L)z=L;if(b>a)b=a;if(o<S)o=S}var w={};return w.topLeftX=r,w.topLeftY=b,w.width=z-r,w.height=o-b,w},y.calcParentsWithoutChildren=function(c,d){var f=c.collection();return d.nodes(":parent").forEach(function(h){var r=!1;if(h.children().forEach(function(z){if(z.css("display")!="none")r=!0}),!r)f.merge(h)}),f},T.exports=y},816:(T,G,p)=>{var x=p(548),l=p(140).CoSELayout,y=p(140).CoSENode,c=p(140).layoutBase.PointD,d=p(140).layoutBase.DimensionD,f=p(140).layoutBase.LayoutConstants,h=p(140).layoutBase.FDLayoutConstants,r=p(140).CoSEConstants,z=function(o,v){var{cy:L,eles:a}=o,S=a.nodes(),Y=a.edges(),C=void 0,U=void 0,B=void 0,w={};if(o.randomize)C=v.nodeIndexes,U=v.xCoords,B=v.yCoords;var _=function(H){return typeof H==="function"},X=function(H,ne){if(_(H))return H(ne);else return H},j=x.calcParentsWithoutChildren(L,a),oe=function ce(H,ne,Ie,be){var Ne=ne.length;for(var xe=0;xe<Ne;xe++){var V=ne[xe],Te=null;if(V.intersection(j).length==0)Te=V.children();var te=void 0,ve=V.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(V.outerWidth()!=null&&V.outerHeight()!=null)if(be.randomize)if(!V.isParent())te=H.add(new y(Ie.graphManager,new c(U[C.get(V.id())]-ve.w/2,B[C.get(V.id())]-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else{var ke=x.calcBoundingBox(V,U,B,C);if(V.intersection(j).length==0)te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(ke.width,ke.height)));else te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(parseFloat(ve.w),parseFloat(ve.h))))}else te=H.add(new y(Ie.graphManager,new c(V.position("x")-ve.w/2,V.position("y")-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else te=H.add(new y(this.graphManager));if(te.id=V.data("id"),te.nodeRepulsion=X(be.nodeRepulsion,V),te.paddingLeft=parseInt(V.css("padding")),te.paddingTop=parseInt(V.css("padding")),te.paddingRight=parseInt(V.css("padding")),te.paddingBottom=parseInt(V.css("padding")),be.nodeDimensionsIncludeLabels)te.labelWidth=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,te.labelHeight=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,te.labelPosVertical=V.css("text-valign"),te.labelPosHorizontal=V.css("text-halign");if(w[V.data("id")]=te,isNaN(te.rect.x))te.rect.x=0;if(isNaN(te.rect.y))te.rect.y=0;if(Te!=null&&Te.length>0){var $e=void 0;$e=Ie.getGraphManager().add(Ie.newGraph(),te),ce($e,Te,Ie,be)}}},ee=function(H,ne,Ie){var be=0,Ne=0;for(var xe=0;xe<Ie.length;xe++){var V=Ie[xe],Te=w[V.data("source")],te=w[V.data("target")];if(Te&&te&&Te!==te&&Te.getEdgesBetween(te).length==0){var ve=ne.add(H.newEdge(),Te,te);ve.id=V.id(),ve.idealLength=X(o.idealEdgeLength,V),ve.edgeElasticity=X(o.edgeElasticity,V),be+=ve.idealLength,Ne++}}if(o.idealEdgeLength!=null){if(Ne>0)r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=be/Ne;else if(!_(o.idealEdgeLength))r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=50;r.MIN_REPULSION_DIST=h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,r.DEFAULT_RADIAL_SEPARATION=h.DEFAULT_EDGE_LENGTH}},ue=function(H,ne){if(ne.fixedNodeConstraint)H.constraints.fixedNodeConstraint=ne.fixedNodeConstraint;if(ne.alignmentConstraint)H.constraints.alignmentConstraint=ne.alignmentConstraint;if(ne.relativePlacementConstraint)H.constraints.relativePlacementConstraint=ne.relativePlacementConstraint};if(o.nestingFactor!=null)r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)r.DEFAULT_GRAVITY_STRENGTH=h.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)r.MAX_ITERATIONS=h.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)r.DEFAULT_GRAVITY_RANGE_FACTOR=h.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)r.DEFAULT_COOLING_FACTOR_INCREMENTAL=h.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)r.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")f.QUALITY=2;else f.QUALITY=0;if(r.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!o.randomize,r.ANIMATE=h.ANIMATE=f.ANIMATE=o.animate,r.TILE=o.tile,r.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!0,r.PURE_INCREMENTAL=!o.randomize,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!1;if(o.step=="enforced")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!1;if(o.step=="cose")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)r.TREE_REDUCTION_ON_INCREMENTAL=!1;else r.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new l,Re=Ae.newGraphManager();return oe(Re.addRoot(),x.getTopMostNodes(S),Ae,o),ee(Ae,Re,Y),ue(Ae,o),Ae.runLayout(),w};T.exports={coseLayout:z}},212:(T,G,p)=>{var x=function(){function o(v,L){for(var a=0;a<L.length;a++){var S=L[a];if(S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S)S.writable=!0;Object.defineProperty(v,S.key,S)}}return function(v,L,a){if(L)o(v.prototype,L);if(a)o(v,a);return v}}();function l(o,v){if(!(o instanceof v))throw TypeError("Cannot call a class as a function")}var y=p(658),c=p(548),d=p(657),f=d.spectralLayout,h=p(816),r=h.coseLayout,z=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(v){return 4500},idealEdgeLength:function(v){return 50},edgeElasticity:function(v){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),b=function(){function o(v){l(this,o),this.options=y({},z,v)}return x(o,[{key:"run",value:function(){var L=this,a=this.options,{cy:S,eles:Y}=a,C=[],U=void 0,B=void 0,w=[],_=void 0,X=[];if(a.fixedNodeConstraint&&(!Array.isArray(a.fixedNodeConstraint)||a.fixedNodeConstraint.length==0))a.fixedNodeConstraint=void 0;if(a.alignmentConstraint){if(a.alignmentConstraint.vertical&&(!Array.isArray(a.alignmentConstraint.vertical)||a.alignmentConstraint.vertical.length==0))a.alignmentConstraint.vertical=void 0;if(a.alignmentConstraint.horizontal&&(!Array.isArray(a.alignmentConstraint.horizontal)||a.alignmentConstraint.horizontal.length==0))a.alignmentConstraint.horizontal=void 0}if(a.relativePlacementConstraint&&(!Array.isArray(a.relativePlacementConstraint)||a.relativePlacementConstraint.length==0))a.relativePlacementConstraint=void 0;var j=a.fixedNodeConstraint||a.alignmentConstraint||a.relativePlacementConstraint;if(j)a.tile=!1,a.packComponents=!1;var oe=void 0,ee=!1;if(S.layoutUtilities&&a.packComponents){if(oe=S.layoutUtilities("get"),!oe)oe=S.layoutUtilities();ee=!0}if(Y.nodes().length>0)if(!ee){var ue=a.eles.boundingBox();if(X.push({x:ue.x1+ue.w/2,y:ue.y1+ue.h/2}),a.randomize){var Ae=f(a);C.push(Ae)}if(a.quality=="default"||a.quality=="proof")w.push(r(a,C[0])),c.relocateComponent(X[0],w[0],a);else c.relocateComponent(X[0],C[0],a)}else{var Re=c.getTopMostNodes(a.eles.nodes());if(_=c.connectComponents(S,a.eles,Re),_.forEach(function(W){var k=W.boundingBox();X.push({x:k.x1+k.w/2,y:k.y1+k.h/2})}),a.randomize)_.forEach(function(W){a.eles=W,C.push(f(a))});if(a.quality=="default"||a.quality=="proof"){var ce=S.collection();if(a.tile){var H=new Map,ne=[],Ie=[],be=0,Ne={nodeIndexes:H,xCoords:ne,yCoords:Ie},xe=[];if(_.forEach(function(W,k){if(W.edges().length==0)W.nodes().forEach(function(pe,se){if(ce.merge(W.nodes()[se]),!pe.isParent())Ne.nodeIndexes.set(W.nodes()[se].id(),be++),Ne.xCoords.push(W.nodes()[0].position().x),Ne.yCoords.push(W.nodes()[0].position().y)}),xe.push(k)}),ce.length>1){var V=ce.boundingBox();X.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),_.push(ce),C.push(Ne);for(var Te=xe.length-1;Te>=0;Te--)_.splice(xe[Te],1),C.splice(xe[Te],1),X.splice(xe[Te],1)}}_.forEach(function(W,k){a.eles=W,w.push(r(a,C[k])),c.relocateComponent(X[k],w[k],a)})}else _.forEach(function(W,k){c.relocateComponent(X[k],C[k],a)});var te=new Set;if(_.length>1){var ve=[],ke=Y.filter(function(W){return W.css("display")=="none"});_.forEach(function(W,k){var pe=void 0;if(a.quality=="draft")pe=C[k].nodeIndexes;if(W.nodes().not(ke).length>0){var se={};se.edges=[],se.nodes=[];var me=void 0;if(W.nodes().not(ke).forEach(function(de){if(a.quality=="draft")if(!de.isParent())me=pe.get(de.id()),se.nodes.push({x:C[k].xCoords[me]-de.boundingbox().w/2,y:C[k].yCoords[me]-de.boundingbox().h/2,width:de.boundingbox().w,height:de.boundingbox().h});else{var he=c.calcBoundingBox(de,C[k].xCoords,C[k].yCoords,pe);se.nodes.push({x:he.topLeftX,y:he.topLeftY,width:he.width,height:he.height})}else if(w[k][de.id()])se.nodes.push({x:w[k][de.id()].getLeft(),y:w[k][de.id()].getTop(),width:w[k][de.id()].getWidth(),height:w[k][de.id()].getHeight()})}),W.edges().forEach(function(de){var he=de.source(),Ee=de.target();if(he.css("display")!="none"&&Ee.css("display")!="none"){if(a.quality=="draft"){var Pe=pe.get(he.id()),Ze=pe.get(Ee.id()),Me=[],Ge=[];if(he.isParent()){var Ve=c.calcBoundingBox(he,C[k].xCoords,C[k].yCoords,pe);Me.push(Ve.topLeftX+Ve.width/2),Me.push(Ve.topLeftY+Ve.height/2)}else Me.push(C[k].xCoords[Pe]),Me.push(C[k].yCoords[Pe]);if(Ee.isParent()){var Xe=c.calcBoundingBox(Ee,C[k].xCoords,C[k].yCoords,pe);Ge.push(Xe.topLeftX+Xe.width/2),Ge.push(Xe.topLeftY+Xe.height/2)}else Ge.push(C[k].xCoords[Ze]),Ge.push(C[k].yCoords[Ze]);se.edges.push({startX:Me[0],startY:Me[1],endX:Ge[0],endY:Ge[1]})}else if(w[k][he.id()]&&w[k][Ee.id()])se.edges.push({startX:w[k][he.id()].getCenterX(),startY:w[k][he.id()].getCenterY(),endX:w[k][Ee.id()].getCenterX(),endY:w[k][Ee.id()].getCenterY()})}}),se.nodes.length>0)ve.push(se),te.add(k)}});var $e=oe.packComponents(ve,a.randomize).shifts;if(a.quality=="draft")C.forEach(function(W,k){var pe=W.xCoords.map(function(me){return me+$e[k].dx}),se=W.yCoords.map(function(me){return me+$e[k].dy});W.xCoords=pe,W.yCoords=se});else{var We=0;te.forEach(function(W){Object.keys(w[W]).forEach(function(k){var pe=w[W][k];pe.setCenter(pe.getCenterX()+$e[We].dx,pe.getCenterY()+$e[We].dy)}),We++})}}}var Ue=function(k,pe){if(a.quality=="default"||a.quality=="proof"){if(typeof k==="number")k=pe;var se=void 0,me=void 0,de=k.data("id");if(w.forEach(function(Ee){if(de in Ee)se={x:Ee[de].getRect().getCenterX(),y:Ee[de].getRect().getCenterY()},me=Ee[de]}),a.nodeDimensionsIncludeLabels){if(me.labelWidth){if(me.labelPosHorizontal=="left")se.x+=me.labelWidth/2;else if(me.labelPosHorizontal=="right")se.x-=me.labelWidth/2}if(me.labelHeight){if(me.labelPosVertical=="top")se.y+=me.labelHeight/2;else if(me.labelPosVertical=="bottom")se.y-=me.labelHeight/2}}if(se==null)se={x:k.position("x"),y:k.position("y")};return{x:se.x,y:se.y}}else{var he=void 0;if(C.forEach(function(Ee){var Pe=Ee.nodeIndexes.get(k.id());if(Pe!=null)he={x:Ee.xCoords[Pe],y:Ee.yCoords[Pe]}}),he==null)he={x:k.position("x"),y:k.position("y")};return{x:he.x,y:he.y}}};if(a.quality=="default"||a.quality=="proof"||a.randomize){var rt=c.calcParentsWithoutChildren(S,Y),He=Y.filter(function(W){return W.css("display")=="none"});if(a.eles=Y.not(He),Y.nodes().not(":parent").not(He).layoutPositions(L,a,Ue),rt.length>0)rt.forEach(function(W){W.position(Ue(W))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();T.exports=b},657:(T,G,p)=>{var x=p(548),l=p(140).layoutBase.Matrix,y=p(140).layoutBase.SVD,c=function(f){var{cy:h,eles:r}=f,z=r.nodes(),b=r.nodes(":parent"),o=new Map,v=new Map,L=new Map,a=[],S=[],Y=[],C=[],U=[],B=[],w=[],_=[],X=void 0,j=void 0,oe=1e8,ee=0.000000001,{piTol:ue,samplingType:Ae,nodeSeparation:Re}=f,ce=void 0,H=function(){var Q=0,K=0,re=!1;while(K<ce){Q=Math.floor(Math.random()*j),re=!1;for(var ie=0;ie<K;ie++)if(C[ie]==Q){re=!0;break}if(!re)C[K]=Q,K++;else continue}},ne=function(Q,K,re){var ie=[],we=0,ge=0,le=0,Le=void 0,Ce=[],De=0,Oe=1;for(var ze=0;ze<j;ze++)Ce[ze]=oe;ie[ge]=Q,Ce[Q]=0;while(ge>=we){le=ie[we++];var Ye=a[le];for(var Be=0;Be<Ye.length;Be++)if(Le=v.get(Ye[Be]),Ce[Le]==oe)Ce[Le]=Ce[le]+1,ie[++ge]=Le;B[le][K]=Ce[le]*Re}if(re){for(var Fe=0;Fe<j;Fe++)if(B[Fe][K]<U[Fe])U[Fe]=B[Fe][K];for(var Ke=0;Ke<j;Ke++)if(U[Ke]>De)De=U[Ke],Oe=Ke}return Oe},Ie=function(Q){var K=void 0;if(!Q){H();for(var re=0;re<ce;re++)ne(C[re],re,Q,!1)}else{K=Math.floor(Math.random()*j),X=K;for(var ie=0;ie<j;ie++)U[ie]=oe;for(var we=0;we<ce;we++)C[we]=K,K=ne(K,we,Q)}for(var ge=0;ge<j;ge++)for(var le=0;le<ce;le++)B[ge][le]*=B[ge][le];for(var Le=0;Le<ce;Le++)w[Le]=[];for(var Ce=0;Ce<ce;Ce++)for(var De=0;De<ce;De++)w[Ce][De]=B[C[De]][Ce]},be=function(){var Q=y.svd(w),{S:K,U:re,V:ie}=Q,we=K[0]*K[0]*K[0],ge=[];for(var le=0;le<ce;le++){ge[le]=[];for(var Le=0;Le<ce;Le++)if(ge[le][Le]=0,le==Le)ge[le][Le]=K[le]/(K[le]*K[le]+we/(K[le]*K[le]))}_=l.multMat(l.multMat(ie,ge),l.transpose(re))},Ne=function(){var Q=void 0,K=void 0,re=[],ie=[],we=[],ge=[];for(var le=0;le<j;le++)re[le]=Math.random(),ie[le]=Math.random();re=l.normalize(re),ie=l.normalize(ie);var Le=0,Ce=ee,De=ee,Oe=void 0;while(!0){Le++;for(var ze=0;ze<j;ze++)we[ze]=re[ze];if(re=l.multGamma(l.multL(l.multGamma(we),B,_)),Q=l.dotProduct(we,re),re=l.normalize(re),Ce=l.dotProduct(we,re),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Ye=0;Ye<j;Ye++)we[Ye]=re[Ye];Le=0,De=ee;while(!0){Le++;for(var Be=0;Be<j;Be++)ge[Be]=ie[Be];if(ge=l.minusOp(ge,l.multCons(we,l.dotProduct(we,ge))),ie=l.multGamma(l.multL(l.multGamma(ge),B,_)),K=l.dotProduct(ge,ie),ie=l.normalize(ie),Ce=l.dotProduct(ge,ie),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Fe=0;Fe<j;Fe++)ge[Fe]=ie[Fe];S=l.multCons(we,Math.sqrt(Math.abs(Q))),Y=l.multCons(ge,Math.sqrt(Math.abs(K)))};x.connectComponents(h,r,x.getTopMostNodes(z),o),b.forEach(function(ye){x.connectComponents(h,r,x.getTopMostNodes(ye.descendants().intersection(r)),o)});var xe=0;for(var V=0;V<z.length;V++)if(!z[V].isParent())v.set(z[V].id(),xe++);var Te=!0,te=!1,ve=void 0;try{for(var ke=o.keys()[Symbol.iterator](),$e;!(Te=($e=ke.next()).done);Te=!0){var We=$e.value;v.set(We,xe++)}}catch(ye){te=!0,ve=ye}finally{try{if(!Te&&ke.return)ke.return()}finally{if(te)throw ve}}for(var Ue=0;Ue<v.size;Ue++)a[Ue]=[];b.forEach(function(ye){var Q=ye.children().intersection(r);while(Q.nodes(":childless").length==0)Q=Q.nodes()[0].children().intersection(r);var K=0,re=Q.nodes(":childless")[0].connectedEdges().length;Q.nodes(":childless").forEach(function(ie,we){if(ie.connectedEdges().length<re)re=ie.connectedEdges().length,K=we}),L.set(ye.id(),Q.nodes(":childless")[K].id())}),z.forEach(function(ye){var Q=void 0;if(ye.isParent())Q=v.get(L.get(ye.id()));else Q=v.get(ye.id());ye.neighborhood().nodes().forEach(function(K){if(r.intersection(ye.edgesWith(K)).length>0)if(K.isParent())a[Q].push(L.get(K.id()));else a[Q].push(K.id())})});var rt=function(Q){var K=v.get(Q),re=void 0;o.get(Q).forEach(function(ie){if(h.getElementById(ie).isParent())re=L.get(ie);else re=ie;a[K].push(re),a[v.get(re)].push(Q)})},He=!0,W=!1,k=void 0;try{for(var pe=o.keys()[Symbol.iterator](),se;!(He=(se=pe.next()).done);He=!0){var me=se.value;rt(me)}}catch(ye){W=!0,k=ye}finally{try{if(!He&&pe.return)pe.return()}finally{if(W)throw k}}j=v.size;var de=void 0;if(j>2){ce=j<f.sampleSize?j:f.sampleSize;for(var he=0;he<j;he++)B[he]=[];for(var Ee=0;Ee<ce;Ee++)_[Ee]=[];if(f.quality=="draft"||f.step=="all")Ie(Ae),be(),Ne(),de={nodeIndexes:v,xCoords:S,yCoords:Y};else v.forEach(function(ye,Q){S.push(h.getElementById(Q).position("x")),Y.push(h.getElementById(Q).position("y"))}),de={nodeIndexes:v,xCoords:S,yCoords:Y};return de}else{var Pe=v.keys(),Ze=h.getElementById(Pe.next().value),Me=Ze.position(),Ge=Ze.outerWidth();if(S.push(Me.x),Y.push(Me.y),j==2){var Ve=h.getElementById(Pe.next().value),Xe=Ve.outerWidth();S.push(Me.x+Ge/2+Xe/2+f.idealEdgeLength),Y.push(Me.y)}return de={nodeIndexes:v,xCoords:S,yCoords:Y},de}};T.exports={spectralLayout:c}},579:(T,G,p)=>{var x=p(212),l=function(c){if(!c)return;c("layout","fcose",x)};if(typeof cytoscape<"u")l(cytoscape);T.exports=l},140:(T)=>{T.exports=e}},s={};function E(T){var G=s[T];if(G!==void 0)return G.exports;var p=s[T]={exports:{}};return n[T](p,p.exports,E),p.exports}var m=E(579);return m})()})});var mt=Qe(lt(),1);var dt={L:"left",R:"right",T:"top",B:"bottom"},ft={L:t((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:t((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:t((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:t((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},it={L:t((e,n)=>e-n+2,"L"),R:t((e,n)=>e-2,"R"),T:t((e,n)=>e-n+2,"T"),B:t((e,n)=>e-2,"B")},bt=t(function(e){if(Se(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),ut=t(function(e){let n=e;return n==="L"||n==="R"||n==="T"||n==="B"},"isArchitectureDirection"),Se=t(function(e){let n=e;return n==="L"||n==="R"},"isArchitectureDirectionX"),_e=t(function(e){let n=e;return n==="T"||n==="B"},"isArchitectureDirectionY"),st=t(function(e,n){let s=Se(e)&&_e(n),E=_e(e)&&Se(n);return s||E},"isArchitectureDirectionXY"),Nt=t(function(e){let n=e[0],s=e[1],E=Se(n)&&_e(s),m=_e(n)&&Se(s);return E||m},"isArchitecturePairXY"),St=t(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),at=t(function(e,n){let s=`${e}${n}`;return St(s)?s:void 0},"getArchitectureDirectionPair"),kt=t(function([e,n],s){let E=s[0],m=s[1];if(Se(E))if(_e(m))return[e+(E==="L"?-1:1),n+(m==="T"?1:-1)];else return[e+(E==="L"?-1:1),n];else if(Se(m))return[e+(m==="L"?1:-1),n+(E==="T"?1:-1)];else return[e,n+(E==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dt=t(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),Rt=t(function(e,n){if(st(e,n))return"bend";else if(Se(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Mt=t(function(e){return e.type==="service"},"isArchitectureService"),Ft=t(function(e){return e.type==="junction"},"isArchitectureJunction"),gt=t((e,n)=>{let[s,E]=[e,n].sort();return`${JSON.stringify(s)}-${JSON.stringify(E)}`},"architectureGroupAlignmentKey"),ht=t((e)=>e.data(),"edgeData"),qe=t((e)=>e.data(),"nodeData"),$t=F.architecture,vt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=M,this.getAccTitle=P,this.setDiagramTitle=O,this.getDiagramTitle=D,this.getAccDescription=I,this.setAccDescription=R,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",N()}addService({id:e,icon:n,in:s,title:E,iconText:m}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:n,iconText:m,title:E,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(Mt)}addJunction({id:e,in:n}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(n)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:n})}getJunctions(){return[...this.nodes.values()].filter(Ft)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:n,in:s,title:E}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:n,title:E,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:n,lhsDir:s,rhsDir:E,lhsInto:m,rhsInto:T,lhsGroup:G,rhsGroup:p,title:x}){if(!ut(s))throw Error(`Invalid direction given for left hand side of edge ${e}--${n}. Expected (L,R,T,B) got ${String(s)}`);if(!ut(E))throw Error(`Invalid direction given for right hand side of edge ${e}--${n}. Expected (L,R,T,B) got ${String(E)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(n)&&!this.groups.has(n))throw Error(`The right-hand id [${n}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(e).in,y=this.nodes.get(n).in;if(G&&l&&y&&l==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(p&&l&&y&&l==y)throw Error(`The right-hand id [${n}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let c={lhsId:e,lhsDir:s,lhsInto:m,lhsGroup:G,rhsId:n,rhsDir:E,rhsInto:T,rhsGroup:p,title:x};this.edges.push(c);let d=this.nodes.get(e),f=this.nodes.get(n);if(d&&f)d.edges.push(this.edges[this.edges.length-1]),f.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let n=new Set;e.members.forEach((s)=>{if(this.registeredIds.get(s)!=="node")throw Error(`align ${e.direction} references [${s}], which is not a service or junction`);if(n.has(s))throw Error(`align ${e.direction} lists [${s}] more than once`);n.add(s)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,n=new Map;for(let[G,p]of this.nodes.entries()){let x=new Map;for(let l of p.edges){let y=this.getNode(l.lhsId)?.in,c=this.getNode(l.rhsId)?.in;if(y&&c&&y!==c){let d=Rt(l.lhsDir,l.rhsDir);if(d!=="bend")e.set(gt(y,c),d)}if(l.lhsId===G){let d=at(l.lhsDir,l.rhsDir);if(d)x.set(d,l.rhsId)}else{let d=at(l.rhsDir,l.lhsDir);if(d)x.set(d,l.lhsId)}}n.set(G,x)}let s=new Set,E=new Set(n.keys()),m=t((G)=>{let p=new Map([[G,[0,0]]]),x=[G];while(x.length>0){let l=x.shift();if(l){s.add(l),E.delete(l);let y=n.get(l);if(!y)throw Error(`BFS error: adjacency list for id ${l} not found. Please report this as a bug.`);let c=p.get(l);if(!c)throw Error(`BFS error: position for id ${l} not found in spatial map. Please report this as a bug.`);let[d,f]=c;y.forEach((h,r)=>{if(!s.has(h))p.set(h,kt([d,f],r)),x.push(h)})}}return p},"BFS"),T=[];while(E.size>0){let G=E.values().next().value;T.push(m(G))}this.dataStructures={adjList:n,spatialMaps:T,groupAlignments:e}}return this.dataStructures}setElementForId(e,n){this.elements.set(e,n)}getElementById(e){return this.elements.get(e)}getConfig(){return Z({...$t,...A().architecture})}getConfigField(e){return this.getConfig()[e]}},Pt=t((e,n)=>{ae(e,n),e.groups.map((s)=>n.addGroup(s)),e.services.map((s)=>n.addService({...s,type:"service"})),e.junctions.map((s)=>n.addJunction({...s,type:"junction"})),e.edges.map((s)=>n.addEdge(s)),e.alignments?.map((s)=>n.addLayoutHint({direction:s.direction,members:[...s.members]}))},"populateDb"),pt={parser:{yy:void 0},parse:t(async(e)=>{let n=await fe("architecture",e);i.debug(n);let s=pt.parser?.yy;if(!(s instanceof vt))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pt(n,s)},"parse")},Ot=t((e)=>`
2
- .edge {
3
- stroke-width: ${e.archEdgeWidth};
4
- stroke: ${e.archEdgeColor};
5
- fill: none;
6
- }
7
-
8
- .arrow {
9
- fill: ${e.archEdgeArrowColor};
10
- }
11
-
12
- .node-bkg {
13
- fill: none;
14
- stroke: ${e.archGroupBorderColor};
15
- stroke-width: ${e.archGroupBorderWidth};
16
- stroke-dasharray: 8;
17
- }
18
- .node-icon-text {
19
- display: flex;
20
- align-items: center;
21
- }
22
-
23
- .node-icon-text > div {
24
- color: #fff;
25
- margin: 1px;
26
- height: fit-content;
27
- text-align: center;
28
- overflow: hidden;
29
- display: -webkit-box;
30
- -webkit-box-orient: vertical;
31
- }
32
- `,"getStyles"),Gt=Ot;function ot(e,n){if(e===0)return n();let s=Math.random,E=e>>>0;Math.random=function(){E=E+1831565813>>>0;let m=E;return m=Math.imul(m^m>>>15,m|1),m^=m+Math.imul(m^m>>>7,m|61),((m^m>>>14)>>>0)/4294967296};try{return n()}finally{Math.random=s}}t(ot,"withSeededRandom");var je=t((e)=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),tt={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:je('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:je('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:je('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:je('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:je('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Js,blank:{body:je("")}}},zt=t(async function(e,n,s,E){let m=s.getConfigField("padding"),T=s.getConfigField("iconSize"),G=T/2,p=T/6,x=p/2;await Promise.all(n.edges().map(async(l)=>{let{source:y,sourceDir:c,sourceArrow:d,sourceGroup:f,target:h,targetDir:r,targetArrow:z,targetGroup:b,label:o}=ht(l),{x:v,y:L}=l[0].sourceEndpoint(),{x:a,y:S}=l[0].midpoint(),{x:Y,y:C}=l[0].targetEndpoint(),U=m+4;if(f)if(Se(c))v+=c==="L"?-U:U;else L+=c==="T"?-U:U+18;if(b)if(Se(r))Y+=r==="L"?-U:U;else C+=r==="T"?-U:U+18;if(!f&&s.getNode(y)?.type==="junction")if(Se(c))v+=c==="L"?G:-G;else L+=c==="T"?G:-G;if(!b&&s.getNode(h)?.type==="junction")if(Se(r))Y+=r==="L"?G:-G;else C+=r==="T"?G:-G;if(l[0]._private.rscratch){let B=e.insert("g");if(B.insert("path").attr("d",`M ${v},${L} L ${a},${S} L${Y},${C} `).attr("class","edge").attr("id",`${E}-${Ct(y,h,{prefix:"L"})}`),d){let w=Se(c)?it[c](v,p):v-x,_=_e(c)?it[c](L,p):L-x;B.insert("polygon").attr("points",ft[c](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(z){let w=Se(r)?it[r](Y,p):Y-x,_=_e(r)?it[r](C,p):C-x;B.insert("polygon").attr("points",ft[r](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(o){let w=!st(c,r)?Se(c)?"X":"Y":"XY",_=0;if(w==="X")_=Math.abs(v-Y);else if(w==="Y")_=Math.abs(L-C)/1.5;else _=Math.abs(v-Y)/2;let X=B.append("g");if(await ct(X,o,{useHtmlLabels:!1,width:_,classes:"architecture-service-label"},u()),X.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),w==="X")X.attr("transform","translate("+a+", "+S+")");else if(w==="Y")X.attr("transform","translate("+a+", "+S+") rotate(-90)");else if(w==="XY"){let j=at(c,r);if(j&&Nt(j)){let oe=X.node().getBoundingClientRect(),[ee,ue]=Dt(j);X.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*ee*ue*45})`);let Ae=X.node().getBoundingClientRect();X.attr("transform",`
33
- translate(${a}, ${S-oe.height/2})
34
- translate(${ee*Ae.width/2}, ${ue*Ae.height/2})
35
- rotate(${-1*ee*ue*45}, 0, ${oe.height/2})
36
- `)}}}}}))},"drawEdges"),Bt=t(async function(e,n,s,E){let T=s.getConfigField("padding")*0.75,G=s.getConfigField("fontSize"),x=s.getConfigField("iconSize")/2;await Promise.all(n.nodes().map(async(l)=>{let y=qe(l);if(y.type==="group"){let{h:c,w:d,x1:f,y1:h}=l.boundingBox(),r=e.append("rect");r.attr("id",`${E}-group-${y.id}`).attr("x",f+x).attr("y",h+x).attr("width",d).attr("height",c).attr("class","node-bkg");let z=e.append("g"),b=f,o=h;if(y.icon){let v=z.append("g");v.html(`<g>${await Xt(y.icon,{height:T,width:T,fallbackPrefix:tt.prefix})}</g>`),v.attr("transform","translate("+(b+x+1)+", "+(o+x+1)+")"),b+=T,o+=G/2-1-2}if(y.label){let v=z.append("g");await ct(v,y.label,{useHtmlLabels:!1,width:d,classes:"architecture-service-label"},u()),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),v.attr("transform","translate("+(b+x+4)+", "+(o+x+2)+")")}s.setElementForId(y.id,r)}}))},"drawGroups"),_t=t(async function(e,n,s,E){let m=u();for(let T of s){let G=n.append("g"),p=e.getConfigField("iconSize");if(T.title){let c=G.append("g");await ct(c,T.title,{useHtmlLabels:!1,width:p*1.5,classes:"architecture-service-label"},m),c.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),c.attr("transform","translate("+p/2+", "+p+")")}let x=G.append("g");if(T.icon)x.html(`<g>${await Xt(T.icon,{height:p,width:p,fallbackPrefix:tt.prefix})}</g>`);else if(T.iconText){x.html(`<g>${await Xt("blank",{height:p,width:p,fallbackPrefix:tt.prefix})}</g>`);let f=x.append("g").append("foreignObject").attr("width",p).attr("height",p).append("div").attr("class","node-icon-text").attr("style",`height: ${p}px;`).append("div").html(q(T.iconText,m)),h=parseInt(window.getComputedStyle(f.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;f.attr("style",`-webkit-line-clamp: ${Math.floor((p-2)/h)};`)}else x.append("path").attr("class","node-bkg").attr("id",`${E}-node-${T.id}`).attr("d",`M0,${p} V5 Q0,0 5,0 H${p-5} Q${p},0 ${p},5 V${p} Z`);G.attr("id",`${E}-service-${T.id}`).attr("class","architecture-service");let{width:l,height:y}=G.node().getBBox();T.width=l,T.height=y,e.setElementForId(T.id,G)}return 0},"drawServices"),Yt=t(function(e,n,s,E){s.forEach((m)=>{let T=n.append("g"),G=e.getConfigField("iconSize");T.append("g").append("rect").attr("id",`${E}-node-${m.id}`).attr("fill-opacity","0").attr("width",G).attr("height",G),T.attr("class","architecture-junction");let{width:x,height:l}=T._groups[0][0].getBBox();T.width=x,T.height=l,e.setElementForId(m.id,T)})},"drawJunctions");Vr([{name:tt.prefix,icons:tt}]);hn.use(mt.default);function yt(e,n,s){e.forEach((E)=>{n.add({group:"nodes",data:{type:"service",id:E.id,icon:E.icon,label:E.title,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-service"})})}t(yt,"addServices");function Et(e,n,s){e.forEach((E)=>{n.add({group:"nodes",data:{type:"junction",id:E.id,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-junction"})})}t(Et,"addJunctions");function wt(e,n){n.nodes().map((s)=>{let E=qe(s);if(E.type==="group")return;E.x=s.position().x,E.y=s.position().y,e.getElementById(E.id).attr("transform","translate("+(E.x||0)+","+(E.y||0)+")")})}t(wt,"positionNodes");function xt(e,n){e.forEach((s)=>{n.add({group:"nodes",data:{type:"group",id:s.id,icon:s.icon,label:s.title,parent:s.in},classes:"node-group"})})}t(xt,"addGroups");function Tt(e,n){e.forEach((s)=>{let{lhsId:E,rhsId:m,lhsInto:T,lhsGroup:G,rhsInto:p,lhsDir:x,rhsDir:l,rhsGroup:y,title:c}=s,d=st(s.lhsDir,s.rhsDir)?"segments":"straight",f={id:`${E}-${m}`,label:c,source:E,sourceDir:x,sourceArrow:T,sourceGroup:G,sourceEndpoint:x==="L"?"0 50%":x==="R"?"100% 50%":x==="T"?"50% 0":"50% 100%",target:m,targetDir:l,targetArrow:p,targetGroup:y,targetEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%"};n.add({group:"edges",data:f,classes:d})})}t(Tt,"addEdges");function At(e,n,s,E=[]){let m=t((d,f)=>{let h=new Map;for(let[r,z]of d.entries()){let b=`${r}`,o=0,v=[...z.entries()];if(v.length===1){h.set(b,v[0][1]);continue}for(let L=0;L<v.length-1;L++)for(let a=L+1;a<v.length;a++){let[S,Y]=v[L],[C,U]=v[a];if(s.get(gt(S,C))===f)h.set(b,[...h.get(b)??[],...Y,...U]);else if(S==="default"||C==="default")h.set(b,[...h.get(b)??[],...Y,...U]);else{let w=`${b}-${o++}`;h.set(w,Y);let _=`${b}-${o++}`;h.set(_,U)}}}return h},"flattenAlignments"),T=n.map((d)=>{let f=new Map,h=new Map;return d.forEach(([r,z],b)=>{let o=e.getNode(b)?.in??"default",v=f.get(z)??new Map;if(!f.has(z))f.set(z,v);let L=h.get(r)??new Map;if(!h.has(r))h.set(r,L);for(let a of[v,L]){let S=a.get(o)??[];if(!a.has(o))a.set(o,S);S.push(b)}}),{horiz:[...m(f,"horizontal").values()].filter((r)=>r.length>1),vert:[...m(h,"vertical").values()].filter((r)=>r.length>1)}}),[G,p]=T.reduce(([d,f],{horiz:h,vert:r})=>[[...d,...h],[...f,...r]],[[],[]]),x=new Set;E.forEach((d)=>d.members.forEach((f)=>x.add(f)));let l=t((d)=>d.filter((f)=>!f.some((h)=>x.has(h))),"dropOverlapping"),y=l(G),c=l(p);return E.forEach((d)=>{if(d.members.length<2)return;if(d.direction==="row")y.push([...d.members]);else c.push([...d.members])}),{horizontal:y,vertical:c}}t(At,"getAlignments");function Lt(e,n,s=[]){let E=[],m=n.getConfigField("iconSize"),T=n.getConfigField("idealEdgeLengthMultiplier"),G=T*m,p=new Set;s.forEach((y)=>{for(let c=0;c<y.members.length-1;c++){let d=y.members[c],f=y.members[c+1];if(p.add(`${d}|${f}`),p.add(`${f}|${d}`),y.direction==="row")E.push({left:d,right:f,gap:G});else E.push({top:d,bottom:f,gap:G})}});let x=t((y)=>`${y[0]},${y[1]}`,"posToStr"),l=t((y)=>y.split(",").map((c)=>parseInt(c)),"strToPos");return e.forEach((y)=>{let c=new Map([...y.entries()].map(([r,z])=>[x(z),r])),d=[x([0,0])],f={},h={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(d.length>0){let r=d.shift();if(r){f[r]=1;let z=c.get(r);if(z){let b=l(r);Object.entries(h).forEach(([o,v])=>{let L=x([b[0]+v[0],b[1]+v[1]]),a=c.get(L);if(a&&!f[L]){if(d.push(L),p.has(`${z}|${a}`))return;E.push({[dt[o]]:a,[dt[bt(o)]]:z,gap:T*m})}})}}}}),E}t(Lt,"getRelativeConstraints");function It(e,n,s,E,m,{spatialMaps:T,groupAlignments:G}){return new Promise((p)=>{let x=g("body").append("div").attr("id","cy").attr("style","display:none"),l=hn({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${m.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${m.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});x.remove(),xt(s,l),yt(e,l,m),Et(n,l,m),Tt(E,l);let y=m.getLayoutHints(),c=At(m,T,G,y),d=Lt(T,m,y),f=m.getConfigField("iconSize"),h=m.getConfigField("idealEdgeLengthMultiplier")*f,r=0.5*f,z=m.getConfigField("edgeElasticity"),b=m.getConfigField("seed"),o=l.layout({name:"fcose",quality:"proof",randomize:m.getConfigField("randomize"),nodeSeparation:m.getConfigField("nodeSeparation"),numIter:m.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){let[L,a]=v.connectedNodes(),{parent:S}=qe(L),{parent:Y}=qe(a);return S===Y?h:r},edgeElasticity(v){let[L,a]=v.connectedNodes(),{parent:S}=qe(L),{parent:Y}=qe(a);return S===Y?z:0.001},alignmentConstraint:c,relativePlacementConstraint:d});o.one("layoutstop",()=>{function v(L,a,S,Y){let C,U,{x:B,y:w}=L,{x:_,y:X}=a;U=(Y-w+(B-S)*(w-X)/(B-_))/Math.sqrt(1+Math.pow((w-X)/(B-_),2)),C=Math.sqrt(Math.pow(Y-w,2)+Math.pow(S-B,2)-Math.pow(U,2));let j=Math.sqrt(Math.pow(_-B,2)+Math.pow(X-w,2));C=C/j;let oe=(_-B)*(Y-w)-(X-w)*(S-B);switch(!0){case oe>=0:oe=1;break;case oe<0:oe=-1;break}let ee=(_-B)*(S-B)+(X-w)*(Y-w);switch(!0){case ee>=0:ee=1;break;case ee<0:ee=-1;break}return U=Math.abs(U)*oe,C=C*ee,{distances:U,weights:C}}t(v,"getSegmentWeights"),l.startBatch();for(let L of Object.values(l.edges()))if(L.data?.()){let{x:a,y:S}=L.source().position(),{x:Y,y:C}=L.target().position();if(a!==Y&&S!==C){let U=L.sourceEndpoint(),B=L.targetEndpoint(),{sourceDir:w}=ht(L),[_,X]=_e(w)?[U.x,B.y]:[B.x,U.y],{weights:j,distances:oe}=v(U,B,_,X);L.style("segment-distances",oe),L.style("segment-weights",j)}}l.endBatch(),ot(b,()=>o.run())});try{ot(b,()=>o.run())}catch(v){if(v instanceof RangeError&&v.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw v}l.ready((v)=>{i.info("Ready",v),p(l)})})}t(It,"layoutArchitecture");var Ut=t(async(e,n,s,E)=>{let m=E.db;m.setDiagramId(n);let T=m.getServices(),G=m.getJunctions(),p=m.getGroups(),x=m.getEdges(),l=m.getDataStructures(),y=J(n),c=y.append("g");c.attr("class","architecture-edges");let d=y.append("g");d.attr("class","architecture-services");let f=y.append("g");f.attr("class","architecture-groups"),await _t(m,d,T,n),Yt(m,d,G,n);let h=await It(T,G,p,x,m,l);await zt(c,h,m,n),await Bt(f,h,m,n),wt(m,h),dn(void 0,y,m.getConfigField("padding"),m.getConfigField("useMaxWidth"))},"draw"),Ht={draw:Ut},ir={parser:pt,get db(){return new vt},renderer:Ht,styles:Gt};export{ir as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{ee,e,n,b}from"./chunk-ws8rv0tb.js";import{Yn,ta}from"./chunk-v0wb751t.js";import"./chunk-0qar8vwc.js";var s="session";function f({connection:d}){let{ModelSelector:a,SettingGroup:m,SettingRow:g}=b(),r=ee(),t=ta({connection:d,endpoint:"/api/plugins/title-generator/settings",loadError:"读取标题生成设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,model:o.model}),differs:(o,i)=>o.model!==i.model}),l=t.settings?.model??null,c={models:[{id:s,name:"跟随会话模型"},...t.modelList.models.filter((o)=>o.available===!0||o.id===l)]};return n("form",{id:r,onSubmit:t.save,className:"min-w-0 space-y-5",children:[e(m,{title:"标题生成",children:e(g,{title:"标题模型",description:"首次输入直接命名;后续输入识别为独立需求时自动改名。请求始终使用 None 思考。",children:e("div",{className:"w-56",children:e(a,{variant:"field",models:c,value:l??s,onChange:(o)=>t.edit((i)=>({...i,model:o===s?null:o}))})})})}),e(Yn,{formID:r,notice:t.notice,dirty:t.dirty,busy:t.loading||t.saving,saving:t.saving,onReset:t.reset})]})}export{f as TitleGeneratorSettingsSection};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{v,s,ee,o,a,f,e,n,b,_r,ge}from"./chunk-ws8rv0tb.js";import{Yn}from"./chunk-v0wb751t.js";import"./chunk-0qar8vwc.js";var H={config:"自定义路径",env:"环境变量",system:"系统预装"},E="chrome://inspect/#remote-debugging";function M({connection:m}){let{Button:S,Input:N,Switch:y,SettingGroup:C,SettingRow:p,cn:B}=b(),R=ee(),[w,k]=a({}),[r,g]=a({}),[i,x]=a(null),[u,I]=a(!0),[O,P]=a(!1),[d,G]=a(!1),[D,c]=a(null),T=o(null),q=(r.executable??"")!==(w.executable??"")||Boolean(r.noSandbox)!==Boolean(w.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(w.ignoreCertErrors)||Boolean(r.userBrowser)!==Boolean(w.userBrowser)||(r.cdpEndpoint??"")!==(w.cdpEndpoint??""),z=v(async(t)=>{P(!0);try{let l=await m.request("/api/plugins/browser/status",{signal:t});x(l)}catch(l){if(!t?.aborted)x({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)P(!1)}},[m]);s(()=>{let t=new AbortController;return T.current=t,Promise.all([m.request("/api/plugins/browser/settings",{signal:t.signal}),m.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,h])=>{if(!t.signal.aborted)k(l),g(l),x(h)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)I(!1)}),()=>t.abort()},[m]);let U=async(t)=>{if(t?.preventDefault(),d||u)return;let l=new AbortController;G(!0),c(null);try{if(await m.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)k(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await z(l.signal)}catch(h){if(!l.signal.aborted)c({type:"error",text:h instanceof Error?h.message:"保存设置失败"})}finally{if(!l.signal.aborted)G(!1)}},L=()=>{g(w),c(null)},_=async()=>{try{await navigator.clipboard.writeText(E),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${E}`})}},F=i?.user?.available===!1,A="首次连接时在 Chrome 弹窗中点「允许」";if(F)A=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:R,onSubmit:U,className:"min-w-0 space-y-5",children:[e(C,{title:"运行环境",children:e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${H[i.source]??i.source}`:void 0,children:n(S,{type:"button",size:"sm",variant:"ghost",disabled:u||O,onClick:()=>void z(),className:"text-dim",children:[e(ge,{className:B("size-3.5",O&&"animate-spin")}),"重新检测"]})})}),n(C,{title:"用户浏览器",children:[e(p,{title:"启用远程调试连接",description:"允许通过 Chrome 远程调试连接你的浏览器(默认关闭)",children:e(y,{label:"启用远程调试连接",disabled:u||d,checked:r.userBrowser??!1,onCheckedChange:(t)=>{g({...r,userBrowser:t}),c(null)}})}),r.userBrowser&&n(f,{children:[e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.user?i.user.available?"bg-success":"bg-danger":"bg-dim")}),i?.user?i.user.available?"可以连接":"暂不可连接":"待保存后检测"]}),description:i?.user?A:"点击下方保存后将检测远程调试连接状态",children:!r.cdpEndpoint&&n(S,{type:"button",size:"sm",variant:"secondary",title:E,onClick:()=>void _(),children:[e(_r,{className:"size-3.5"}),"复制远程调试地址"]})}),e(p,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(N,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||d,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]})]}),n(C,{title:"启动参数",children:[e(p,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(N,{id:"browser-executable",disabled:u||d,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(S,{type:"button",variant:"ghost",size:"sm",disabled:u||d,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(p,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(y,{label:"禁用沙箱",disabled:u||d,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(p,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(y,{label:"忽略证书错误",disabled:u||d,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Yn,{formID:R,notice:D,dirty:q,busy:u||d,saving:d,onReset:L})]})}export{M as default};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{t,i,g}from"./chunk-rmzb9edh.js";import{hn,si}from"./chunk-t7wae2xz.js";import{Qe,Je}from"./chunk-ws8rv0tb.js";var k=Je(function(F,Y){(function(f,r){if(typeof F==="object"&&typeof Y==="object")Y.exports=r(si());else if(typeof define==="function"&&define.amd)define(["cose-base"],r);else if(typeof F==="object")F.cytoscapeCoseBilkent=r(si());else f.cytoscapeCoseBilkent=r(f.coseBase)})(F,function(u){return function(f){var r={};function n(o){if(r[o])return r[o].exports;var d=r[o]={i:o,l:!1,exports:{}};return f[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=f,n.c=r,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(f,r){f.exports=u},function(f,r,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(p,e){var y={};for(var s in p)y[s]=p[s];for(var s in e)y[s]=e[s];return y}function I(p){this.options=D(_,p),U(this.options)}var U=function(e){if(e.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion;if(e.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;if(e.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=e.edgeElasticity;if(e.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.quality=="draft")o.QUALITY=0;else if(e.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!e.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=e.animate,l.TILE=e.tile,l.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};I.prototype.run=function(){var p,e,y=this.options,s=this.idToLNode={},c=this.layout=new L,a=this;a.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=c.newGraphManager();this.gm=E;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=E.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=a.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(y.fit)y.cy.fit(y.eles,y.padding);if(!p)p=!0,a.cy.one("layoutready",y.ready),a.cy.trigger({type:"layoutready",layout:a})},B=a.options.refresh,C;for(var G=0;G<B&&!C;G++)C=a.stopped||a.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,a.options.eles.nodes().positions(V),R(),a.cy.one("layoutstop",a.options.stop),a.cy.trigger({type:"layoutstop",layout:a}),e)cancelAnimationFrame(e);p=!1;return}var M=a.layout.getPositionsData();y.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),e=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(a.options.animate==="during")e=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")a.options.eles.nodes().not(":parent").layoutPositions(a,a.options,V),p=!1;return this},I.prototype.getTopMostNodes=function(p){var e={};for(var y=0;y<p.length;y++)e[p[y].id()]=!0;var s=p.filter(function(c,a){if(typeof c==="number")c=a;var E=c.parent()[0];while(E!=null){if(e[E.id()])return!1;E=E.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(p,e,y){var s=e.length;for(var c=0;c<s;c++){var a=e[c],E=a.children(),T,m=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(a.outerWidth()!=null&&a.outerHeight()!=null)T=p.add(new b(y.graphManager,new H(a.position("x")-m.w/2,a.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=p.add(new b(this.graphManager));if(T.id=a.data("id"),T.paddingLeft=parseInt(a.css("padding")),T.paddingTop=parseInt(a.css("padding")),T.paddingRight=parseInt(a.css("padding")),T.paddingBottom=parseInt(a.css("padding")),this.options.nodeDimensionsIncludeLabels){if(a.isParent()){var h=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=a.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[a.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(E!=null&&E.length>0){var O=y.getGraphManager().add(y.newGraph(),T);this.processChildrenList(O,E,y)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(e){e("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);f.exports=S}])})});var z=Qe(k(),1);hn.use(z.default);function q(u,f){u.forEach((r)=>{let n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=r[o]}),f.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}t(q,"addNodes");function W(u,f){u.forEach((r)=>{let n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=r[o]}),f.add({group:"edges",data:n})})}t(W,"addEdges");function Q(u){return new Promise((f)=>{let r=g("body").append("div").attr("id","cy").attr("style","display:none"),n=hn({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{i.info("Cytoscape ready",d),f(n)})})}t(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((f)=>{let r=f.data(),n=f.position(),o={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach((d)=>{if(d!=="id")o[d]=r[d]}),o})}t(Z,"extractPositionedNodes");function J(u){return u.edges().map((f)=>{let r=f.data(),n=f._private.rscratch,o={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=r[d]}),o})}t(J,"extractPositionedEdges");async function K(u,f){i.debug("Starting cose-bilkent layout algorithm");try{tt(u);let r=await Q(u),n=Z(r),o=J(r);return i.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(r){throw i.error("Error in cose-bilkent layout algorithm:",r),r}}t(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}t(tt,"validateLayoutData");var at=t(async(u,f,{insertCluster:r,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=f.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),p=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await r(I,s)}else{let c={...s};v[s.id]=c;let a=await l(p,s,{config:u.config,dir:u.direction||"TB"}),E=a.node().getBBox();c.width=E.width,c.height=E.height,c.domId=a,L.debug(`Node ${s.id} dimensions: ${E.width}x${E.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let e={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},y=await K(e,u.config);L.debug("Positioning nodes based on layout results"),y.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),y.edges.forEach((s)=>{let c=u.edges.find((a)=>a.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),a=v[s.start??""],E=v[s.end??""];if(a&&E){let T=y.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}else{let m={...s,points:[{x:a.x||0,y:a.y||0},{x:E.x||0,y:E.y||0}]},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};
Binary file
Binary file