@bkm016/basalt 0.1.12 → 0.1.13

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 (271) hide show
  1. package/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
  2. package/{chunk-jpnf71q7.js → chunk-095adzn5.js} +2 -2
  3. package/chunk-0a7ft50x.js +18 -0
  4. package/{chunk-vjne04dp.js → chunk-0nedq669.js} +4 -4
  5. package/chunk-0x9netvr.js +5 -0
  6. package/{chunk-9as0p561.js → chunk-15ve3nmv.js} +11 -11
  7. package/chunk-1dbfmejf.js +2 -0
  8. package/{chunk-hbnmymaq.js → chunk-1q6e3mj7.js} +2 -2
  9. package/{chunk-85v69h91.js → chunk-22az84sh.js} +2 -2
  10. package/{chunk-w0rr66z7.js → chunk-2q56egb8.js} +1 -1
  11. package/{chunk-fhxy6y34.js → chunk-2tf7qfbx.js} +2 -2
  12. package/{chunk-nw1xpt3s.js → chunk-2zbj8ny6.js} +2 -2
  13. package/chunk-302n9g7p.js +2 -0
  14. package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
  15. package/chunk-41das1ty.js +2 -0
  16. package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
  17. package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
  18. package/{chunk-1zj3zvw5.js → chunk-4k9t9jvx.js} +4 -4
  19. package/{chunk-eq4wqxzt.js → chunk-4rnmxtpx.js} +2 -2
  20. package/{chunk-1xfv4bd7.js → chunk-4w9zqv0k.js} +1 -1
  21. package/chunk-6d9r9p91.js +20 -0
  22. package/chunk-6f4ht2hw.js +2 -0
  23. package/{chunk-jj4hqbrx.js → chunk-6sea12mw.js} +3 -3
  24. package/chunk-74wwdx3y.js +3 -0
  25. package/{chunk-w6f2r052.js → chunk-77c2cqp2.js} +1 -1
  26. package/chunk-7chv3knf.js +2 -0
  27. package/chunk-86yr2c0r.js +3 -0
  28. package/{chunk-6sz5q3df.js → chunk-8cgz8xv7.js} +2 -2
  29. package/{chunk-tvm4zmgj.js → chunk-959z9efn.js} +2 -2
  30. package/{chunk-eyrtbbdd.js → chunk-9e8vhzy7.js} +1 -1
  31. package/chunk-b516bp7n.js +3 -0
  32. package/chunk-bja7p3em.js +25 -0
  33. package/chunk-bng72094.js +2 -0
  34. package/{chunk-ksk49hv0.js → chunk-bp61xdsc.js} +1 -1
  35. package/chunk-bq54argx.js +2 -0
  36. package/chunk-ct77cdg7.js +2 -0
  37. package/{chunk-02d3x4mj.js → chunk-dk6fgprw.js} +3 -3
  38. package/chunk-drett6hb.js +2 -0
  39. package/{chunk-4gtgqcct.js → chunk-edbq461k.js} +3 -3
  40. package/{chunk-p2pmdbt2.js → chunk-f0h2bv11.js} +12 -12
  41. package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
  42. package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
  43. package/{chunk-fy82qxa1.js → chunk-gpnqmtbk.js} +1 -1
  44. package/{chunk-kpe7pnhy.js → chunk-h9zxqeqr.js} +4 -4
  45. package/{chunk-qfcr5g35.js → chunk-jjtt9aq8.js} +3 -3
  46. package/{chunk-5wnmbc1b.js → chunk-kbpbrr11.js} +2 -2
  47. package/chunk-m71pj3g1.js +2 -0
  48. package/chunk-mdkfm1ak.js +7 -0
  49. package/chunk-mf04h0yy.js +7 -0
  50. package/chunk-n22vd4at.js +2 -0
  51. package/{chunk-v7wcchy2.js → chunk-nbjnwd54.js} +1 -1
  52. package/{chunk-1h34mzh7.js → chunk-pryvvs96.js} +22 -22
  53. package/{chunk-2kxnw7vs.js → chunk-r1jn77q6.js} +2 -2
  54. package/{chunk-ypqjfv3a.js → chunk-rn3jwyh1.js} +2 -2
  55. package/chunk-sgrrxsnz.js +482 -0
  56. package/chunk-sgz87ht5.js +2 -0
  57. package/{chunk-stj493dn.js → chunk-snz19yc2.js} +2 -2
  58. package/{chunk-qs8zzg50.js → chunk-szj85dqe.js} +2 -2
  59. package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
  60. package/{chunk-hc300148.js → chunk-tfhze1vq.js} +2 -2
  61. package/{chunk-01nve4qy.js → chunk-tjg0gcks.js} +1 -1
  62. package/{chunk-cbgpymt4.js → chunk-tnj2kqb8.js} +1 -1
  63. package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
  64. package/{chunk-82v8jh1h.js → chunk-xvm0y99b.js} +2 -2
  65. package/{chunk-rwks9zaw.js → chunk-y23dpz5e.js} +2 -2
  66. package/{chunk-ejjem0tc.js → chunk-y4pvhes1.js} +6 -6
  67. package/{chunk-bwawt15q.js → chunk-ydzag81d.js} +2 -2
  68. package/chunk-ymg7mtcx.js +3 -0
  69. package/chunk-yy1f9jxc.js +4044 -0
  70. package/{chunk-ntks40jd.js → chunk-z0c8ek0j.js} +5 -5
  71. package/chunk-zk91579b.js +3 -0
  72. package/{chunk-0fc9apfn.js → chunk-zx75vnw8.js} +18 -18
  73. package/compiled.js +85 -12
  74. package/package.json +1 -1
  75. package/ui-test-worker.js +53 -53
  76. package/web/{chunk-aeymdtm1.js → chunk-0jbf73pr.js} +3 -3
  77. package/web/{chunk-7vgh17es.js → chunk-0rhx7qb8.js} +1 -1
  78. package/web/{chunk-7adsmqv6.js → chunk-0rvwj2wh.js} +2 -2
  79. package/web/chunk-12qf1r6m.js +1 -0
  80. package/web/{chunk-dndd757x.js → chunk-14vmr99v.js} +3 -3
  81. package/web/{chunk-4f6a8dsk.js → chunk-16jc5m0f.js} +1 -1
  82. package/web/{chunk-bra33pt0.js → chunk-1m6fx2h7.js} +2 -2
  83. package/web/{chunk-hva7xyne.js → chunk-1xm9x7d6.js} +1 -1
  84. package/web/{chunk-8539865x.js → chunk-20jxvmbw.js} +1 -1
  85. package/web/chunk-2n5xbnrt.js +1 -0
  86. package/web/{chunk-bygwbpvq.js → chunk-2sef2wft.js} +2 -2
  87. package/web/{chunk-w9gnqkez.js → chunk-2x7vmhm0.js} +2 -2
  88. package/web/{chunk-19zd0tye.js → chunk-2y1avvqj.js} +8 -8
  89. package/web/chunk-36s08nye.js +1 -0
  90. package/web/chunk-3ctmehg4.js +1 -0
  91. package/web/{chunk-ncfzmf2g.js → chunk-3jjksgze.js} +1 -1
  92. package/web/{chunk-aebrw6cv.js → chunk-3p9w8sg5.js} +2 -2
  93. package/web/{chunk-sdr5wa4z.js → chunk-3wpxymxa.js} +3 -3
  94. package/web/{chunk-v34mr9ky.js → chunk-4py9sndw.js} +3 -3
  95. package/web/chunk-4swea9sn.js +1 -0
  96. package/web/chunk-4zz5a483.js +1 -0
  97. package/web/{chunk-3rkkp6ed.js → chunk-5cwxhhae.js} +5 -5
  98. package/web/{chunk-d57fm7k0.js → chunk-5ym5ffd5.js} +2 -2
  99. package/web/{chunk-gten0rpx.js → chunk-6e87m0nm.js} +2 -2
  100. package/web/{chunk-b99k8q22.js → chunk-6rsr2cyw.js} +8 -8
  101. package/web/chunk-6y55gk1n.js +1 -0
  102. package/web/chunk-7aep7k4v.js +1 -0
  103. package/web/{chunk-yf8ykk4v.js → chunk-8j4tzff5.js} +3 -3
  104. package/web/{chunk-ny436sqg.js → chunk-8tgavnwx.js} +1 -1
  105. package/web/{chunk-xvfeq8v2.js → chunk-97t3ngqf.js} +12 -12
  106. package/web/{chunk-gkmaryr4.js → chunk-980zhtht.js} +1 -1
  107. package/web/chunk-9k7fkx80.js +1 -0
  108. package/web/{chunk-hxbfkdjd.js → chunk-9wz8jne3.js} +1 -1
  109. package/web/chunk-a00vg115.js +1 -0
  110. package/web/chunk-a4gbxnm3.js +1 -0
  111. package/web/{chunk-6f2sz84q.js → chunk-a6g3nqp0.js} +1 -1
  112. package/web/{chunk-n9v14vyd.js → chunk-a9er7a7c.js} +22 -22
  113. package/web/chunk-atppv8fk.js +1 -0
  114. package/web/{chunk-xbyrgyy0.js → chunk-awkdw9rw.js} +2 -2
  115. package/web/{chunk-hqxc9m07.js → chunk-b4gcpsbg.js} +10 -10
  116. package/web/{chunk-qdd3bx8q.js → chunk-b9jry5a3.js} +1 -1
  117. package/web/{chunk-jyf7a7yp.js → chunk-ba9qy65y.js} +1 -1
  118. package/web/chunk-bq6mep6p.js +2 -0
  119. package/web/chunk-bwy3e58v.js +1 -0
  120. package/web/{chunk-aa46mrgh.js → chunk-c57f714b.js} +2 -2
  121. package/web/{chunk-b5zf1hs3.js → chunk-c6m4vfn5.js} +101 -101
  122. package/web/{chunk-5np514v5.js → chunk-cr04125j.js} +4 -4
  123. package/web/{chunk-ym7kv2hs.js → chunk-cr05dttm.js} +1 -1
  124. package/web/{chunk-2cyzaqjy.js → chunk-ct7z7bea.js} +3 -3
  125. package/web/{chunk-y2rzeb4v.js → chunk-ct90yf8z.js} +2 -2
  126. package/web/{chunk-yjs6jmdb.js → chunk-ddg8rz82.js} +3 -3
  127. package/web/{chunk-8cnjd0f2.js → chunk-dmha2y9c.js} +18 -18
  128. package/web/{chunk-jeafmjsm.js → chunk-e57h40qa.js} +6 -6
  129. package/web/chunk-eeesa5q1.js +1 -0
  130. package/web/{chunk-4wwd3pfz.js → chunk-eqndhs21.js} +2 -2
  131. package/web/{chunk-td83xf12.js → chunk-eqxy6535.js} +2 -2
  132. package/web/{chunk-wvrs986a.js → chunk-et1rsgmp.js} +3 -3
  133. package/web/chunk-f7jpakwh.js +1 -0
  134. package/web/{chunk-v1hfbjz9.js → chunk-fnvgdvrg.js} +4 -4
  135. package/web/chunk-fp62avjh.js +1 -0
  136. package/web/{chunk-6jb2zyp6.js → chunk-frnh4zqf.js} +2 -2
  137. package/web/chunk-g0be12na.js +1 -0
  138. package/web/{chunk-60mym60n.js → chunk-g7hqafb8.js} +1 -1
  139. package/web/{chunk-wqzbxzk3.js → chunk-ga07tv37.js} +1 -1
  140. package/web/chunk-gr163fex.js +1 -0
  141. package/web/chunk-gxtz10wf.js +1 -0
  142. package/web/{chunk-pjpre6de.js → chunk-h1k2kqbs.js} +6 -6
  143. package/web/{chunk-7tkgbbf9.js → chunk-h6k1x096.js} +2 -2
  144. package/web/{chunk-885kpj14.js → chunk-jccz14ye.js} +2 -2
  145. package/web/{chunk-d73zkc4q.js → chunk-jh33m2mq.js} +2 -2
  146. package/web/{chunk-g488hxx0.js → chunk-jh3k7xex.js} +3 -3
  147. package/web/{chunk-3qxxrwsp.js → chunk-jpem3qvs.js} +10 -10
  148. package/web/chunk-k9qnvx86.js +2 -0
  149. package/web/chunk-kcnj0gan.js +1 -0
  150. package/web/{chunk-2jfesv7m.js → chunk-ke8dffnk.js} +2 -2
  151. package/web/chunk-kpp5xqsb.js +1 -0
  152. package/web/chunk-m33yted6.js +1 -0
  153. package/web/chunk-me5jqqn6.js +1 -0
  154. package/web/{chunk-7v85yvb2.js → chunk-mkxeenph.js} +1 -1
  155. package/web/{chunk-mxkbmgcv.js → chunk-mnf4ngj9.js} +1 -1
  156. package/web/{chunk-30aeb767.js → chunk-mykrm8ba.js} +2 -2
  157. package/web/chunk-mzqqwbmr.js +1 -0
  158. package/web/chunk-npyrdsf8.css +1 -0
  159. package/web/chunk-p6e2vr51.js +34 -0
  160. package/web/{chunk-3n9ypydh.js → chunk-p7pa02k9.js} +2 -2
  161. package/web/chunk-q34as3v6.js +1 -0
  162. package/web/{chunk-7ksg3ccg.js → chunk-q4vy3dkk.js} +2 -2
  163. package/web/chunk-q6c8p73w.js +1 -0
  164. package/web/{chunk-h754ntg7.js → chunk-qb8mbptk.js} +1 -1
  165. package/web/{chunk-g4zm0crw.js → chunk-qbmtah1x.js} +1 -1
  166. package/web/chunk-qn93we3a.js +1 -0
  167. package/web/{chunk-c3fty2c2.js → chunk-qq06x2ce.js} +7 -7
  168. package/web/{chunk-fj753yzt.js → chunk-qq6m2my8.js} +2 -2
  169. package/web/chunk-r1f1egve.js +1 -0
  170. package/web/{chunk-80z8s8zb.js → chunk-s935z8er.js} +1 -1
  171. package/web/{chunk-3psgr0q8.js → chunk-sq75q603.js} +20 -20
  172. package/web/{chunk-qp3tjhaq.js → chunk-ss96cz1f.js} +1 -1
  173. package/web/{chunk-hn8m1vsg.js → chunk-t82sngk9.js} +7 -7
  174. package/web/chunk-tt9410zw.js +8 -0
  175. package/web/{chunk-act3rr85.js → chunk-v4cqc9f9.js} +1 -1
  176. package/web/chunk-ve8gy05p.js +1142 -0
  177. package/web/chunk-vg1ebkce.js +1 -0
  178. package/web/{chunk-k4dnjf8n.js → chunk-vk7ch6fh.js} +3 -3
  179. package/web/chunk-vnt34mkb.js +1 -0
  180. package/web/{chunk-kerfb21g.js → chunk-w28dn4dw.js} +1 -1
  181. package/web/{chunk-rdr6wt22.js → chunk-w4tfad6c.js} +4 -4
  182. package/web/{chunk-81s15c2e.js → chunk-wpxtkxjt.js} +2 -2
  183. package/web/{chunk-h24ybwp6.js → chunk-xcyqd7cn.js} +1 -1
  184. package/web/chunk-xe121vg7.js +1 -0
  185. package/web/chunk-xh4xn1az.js +1 -0
  186. package/web/{chunk-e94pd9rr.js → chunk-xk1vkcj4.js} +9 -9
  187. package/web/chunk-xrk5ewsn.js +1 -0
  188. package/web/{chunk-5g8md2wg.js → chunk-xvm66b7v.js} +4 -4
  189. package/web/{chunk-q1zxvjhs.js → chunk-xxmaqj1m.js} +2 -2
  190. package/web/chunk-xzwxcxb4.js +1 -0
  191. package/web/{chunk-xpecre7w.js → chunk-y9waq403.js} +4 -4
  192. package/web/chunk-ydhnkws0.js +1 -0
  193. package/web/{chunk-ar6jnhm5.js → chunk-yn4t5s9r.js} +1 -1
  194. package/web/chunk-ys2tns0p.js +1 -0
  195. package/web/chunk-zb61mf0a.js +1 -0
  196. package/web/{chunk-r6kk4vp1.js → chunk-ze6azq7z.js} +4 -4
  197. package/web/chunk-zh7193nq.js +2 -0
  198. package/web/chunk-zqcg6frm.js +1 -0
  199. package/web/{chunk-enwfd8d5.js → chunk-zxrbbbtp.js} +2 -2
  200. package/web/index.html +1 -1
  201. package/worker.js +1 -1
  202. package/chunk-2fyjph3f.js +0 -2
  203. package/chunk-37zystxb.js +0 -25
  204. package/chunk-3k627vf2.js +0 -3
  205. package/chunk-7er5pz7s.js +0 -479
  206. package/chunk-7g5smgjj.js +0 -2
  207. package/chunk-7m3jagqn.js +0 -2
  208. package/chunk-9c4gdg1q.js +0 -3
  209. package/chunk-b2bxqeb4.js +0 -2
  210. package/chunk-bpw6q7g0.js +0 -3
  211. package/chunk-cdw03j4t.js +0 -20
  212. package/chunk-ch1r3ted.js +0 -2
  213. package/chunk-cmwdjes8.js +0 -18
  214. package/chunk-db7ws33a.js +0 -7
  215. package/chunk-e1x629v0.js +0 -5
  216. package/chunk-j64dc767.js +0 -3
  217. package/chunk-m4bg1apa.js +0 -7
  218. package/chunk-nhm9z3d8.js +0 -2
  219. package/chunk-pnspvnyd.js +0 -2
  220. package/chunk-qnkrrwmg.js +0 -2
  221. package/chunk-r4gm8ngh.js +0 -2
  222. package/chunk-rks90mh1.js +0 -2
  223. package/chunk-t7te60m7.js +0 -2
  224. package/chunk-tv52xajf.js +0 -2
  225. package/chunk-wqqjzsjt.js +0 -3983
  226. package/chunk-xef4642x.js +0 -3
  227. package/web/chunk-04drx71p.js +0 -1
  228. package/web/chunk-0mdf1qja.js +0 -1
  229. package/web/chunk-0rdgt4jb.css +0 -1
  230. package/web/chunk-1m0kp0g3.js +0 -8
  231. package/web/chunk-3j2tcphs.js +0 -1
  232. package/web/chunk-3k9h7a73.js +0 -1142
  233. package/web/chunk-3m1bb2fw.js +0 -1
  234. package/web/chunk-55nvm2mj.js +0 -1
  235. package/web/chunk-5dkqfnh7.js +0 -2
  236. package/web/chunk-7ky5nrrr.js +0 -1
  237. package/web/chunk-8sdjgv3k.js +0 -1
  238. package/web/chunk-9bxtzwtc.js +0 -1
  239. package/web/chunk-9jy8nc4r.js +0 -1
  240. package/web/chunk-bcjgzwef.js +0 -1
  241. package/web/chunk-cxpnj495.js +0 -2
  242. package/web/chunk-d1btrqmw.js +0 -1
  243. package/web/chunk-d94t9z70.js +0 -1
  244. package/web/chunk-e68jw0bg.js +0 -1
  245. package/web/chunk-fr4fft89.js +0 -1
  246. package/web/chunk-gckmcef6.js +0 -1
  247. package/web/chunk-gnb09wmx.js +0 -1
  248. package/web/chunk-hrgqc1vr.js +0 -1
  249. package/web/chunk-j9c8fa82.js +0 -1
  250. package/web/chunk-jz5mmp64.js +0 -1
  251. package/web/chunk-kxeaj44h.js +0 -1
  252. package/web/chunk-m0136xav.js +0 -1
  253. package/web/chunk-m1rdyvb5.js +0 -1
  254. package/web/chunk-m6vyvgm5.js +0 -1
  255. package/web/chunk-my0ec787.js +0 -1
  256. package/web/chunk-nkpdd9hw.js +0 -1
  257. package/web/chunk-pbp1p5ex.js +0 -1
  258. package/web/chunk-ph75hddv.js +0 -1
  259. package/web/chunk-phdfyqaa.js +0 -1
  260. package/web/chunk-phxa5krt.js +0 -1
  261. package/web/chunk-r4zbw4zj.js +0 -2
  262. package/web/chunk-ry4ycah9.js +0 -1
  263. package/web/chunk-sqm16fat.js +0 -1
  264. package/web/chunk-tj1fn8v2.js +0 -1
  265. package/web/chunk-v0wtk059.js +0 -34
  266. package/web/chunk-v1qt3gq4.js +0 -1
  267. package/web/chunk-v854w9yn.js +0 -1
  268. package/web/chunk-ve56gxq0.js +0 -1
  269. package/web/chunk-w573ym17.js +0 -1
  270. package/web/chunk-x0mjydtp.js +0 -1
  271. package/web/chunk-zhybh04p.js +0 -1
@@ -0,0 +1,8 @@
1
+ import{t}from"./chunk-c6m4vfn5.js";import"./chunk-ke8dffnk.js";import{Pi,Oi}from"./chunk-b4gcpsbg.js";import"./chunk-qb8mbptk.js";import"./chunk-bq6mep6p.js";import"./chunk-mkxeenph.js";import"./chunk-b9jry5a3.js";var o=t((r)=>`${Pi(r)}
2
+ .swimlane.cluster:not([data-color-id]) rect {
3
+ stroke: ${r.clusterBorder} !important;
4
+ }
5
+ [data-look="neo"].cluster rect {
6
+ filter: none;
7
+ }
8
+ `,"getStyles"),m=o,D=Oi({styles:m});export{D as diagram};
@@ -1,4 +1,4 @@
1
- import{H}from"./chunk-jyf7a7yp.js";import{t,a,we,M,x,F,C,S,E,T,A,L,R,p,V,Yr,k,U}from"./chunk-b5zf1hs3.js";import{Pt}from"./chunk-qp3tjhaq.js";import{Q}from"./chunk-n9v14vyd.js";import{Qe}from"./chunk-1zwc09e8.js";import{ue}from"./chunk-qdd3bx8q.js";function Ye(e){var n=0,l=e.children,o=l&&l.length;if(!o)n=1;else while(--o>=0)n+=l[o].value;e.value=n}function ge(){return this.eachAfter(Ye)}function ye(e,n){let l=-1;for(let o of this)e.call(n,o,++l,this);return this}function xe(e,n){var l=this,o=[l],s,d,f=-1;while(l=o.pop())if(e.call(n,l,++f,this),s=l.children)for(d=s.length-1;d>=0;--d)o.push(s[d]);return this}function Se(e,n){var l=this,o=[l],s=[],d,f,h,b=-1;while(l=o.pop())if(s.push(l),d=l.children)for(f=0,h=d.length;f<h;++f)o.push(d[f]);while(l=s.pop())e.call(n,l,++b,this);return this}function ve(e,n){let l=-1;for(let o of this)if(e.call(n,o,++l,this))return o}function be(e){return this.eachAfter(function(n){var l=+e(n.data)||0,o=n.children,s=o&&o.length;while(--s>=0)l+=o[s].value;n.value=l})}function Ce(e){return this.eachBefore(function(n){if(n.children)n.children.sort(e)})}function Te(e){var n=this,l=je(n,e),o=[n];while(n!==l)n=n.parent,o.push(n);var s=o.length;while(e!==l)o.splice(s,0,e),e=e.parent;return o}function je(e,n){if(e===n)return e;var l=e.ancestors(),o=n.ancestors(),s=null;e=l.pop(),n=o.pop();while(e===n)s=e,e=l.pop(),n=o.pop();return s}function Le(){var e=this,n=[e];while(e=e.parent)n.push(e);return n}function $e(){return Array.from(this)}function Ae(){var e=[];return this.eachBefore(function(n){if(!n.children)e.push(n)}),e}function Fe(){var e=this,n=[];return e.each(function(l){if(l!==e)n.push({source:l.parent,target:l})}),n}function*Ne(){var e=this,n,l=[e],o,s,d;do{n=l.reverse(),l=[];while(e=n.pop())if(yield e,o=e.children)for(s=0,d=o.length;s<d;++s)l.push(o[s])}while(l.length)}function re(e,n){if(e instanceof Map){if(e=[void 0,e],n===void 0)n=Je}else if(n===void 0)n=Ue;var l=new ie(e),o,s=[l],d,f,h,b;while(o=s.pop())if((f=n(o.data))&&(b=(f=Array.from(f)).length)){o.children=f;for(h=b-1;h>=0;--h)s.push(d=f[h]=new ie(f[h])),d.parent=o,d.depth=o.depth+1}return l.eachBefore(et)}function Ze(){return re(this).eachBefore(Ke)}function Ue(e){return e.children}function Je(e){return Array.isArray(e)?e[1]:null}function Ke(e){if(e.data.value!==void 0)e.value=e.data.value;e.data=e.data.data}function et(e){var n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function ie(e){this.data=e,this.depth=this.height=0,this.parent=null}ie.prototype=re.prototype={constructor:ie,count:ge,each:ye,eachAfter:Se,eachBefore:xe,find:ve,sum:be,sort:Ce,path:Te,ancestors:Le,descendants:$e,leaves:Ae,links:Fe,copy:Ze,[Symbol.iterator]:Ne};function Be(e){if(typeof e!=="function")throw Error();return e}function ne(){return 0}function K(e){return function(){return e}}function ke(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Me(e,n,l,o,s){var d=e.children,f,h=-1,b=d.length,u=e.value&&(o-n)/e.value;while(++h<b)f=d[h],f.y0=l,f.y1=s,f.x0=n,f.x1=n+=f.value*u}function _e(e,n,l,o,s){var d=e.children,f,h=-1,b=d.length,u=e.value&&(s-l)/e.value;while(++h<b)f=d[h],f.x0=n,f.x1=o,f.y0=l,f.y1=l+=f.value*u}var tt=(1+Math.sqrt(5))/2;function at(e,n,l,o,s,d){var f=[],h=n.children,b,u,m=0,D=0,i=h.length,z,N,_=n.value,g,w,X,q,ee,oe,Y;while(m<i){z=s-l,N=d-o;do g=h[D++].value;while(!g&&D<i);w=X=g,oe=Math.max(N/z,z/N)/(_*e),Y=g*g*oe,ee=Math.max(X/Y,Y/w);for(;D<i;++D){if(g+=u=h[D].value,u<w)w=u;if(u>X)X=u;if(Y=g*g*oe,q=Math.max(X/Y,Y/w),q>ee){g-=u;break}ee=q}if(f.push(b={value:g,dice:z<N,children:h.slice(m,D)}),b.dice)Me(b,l,o,s,_?o+=N*g/_:d);else _e(b,l,o,_?l+=z*g/_:s,d);_-=g,m=D}return f}var Ee=function e(n){function l(o,s,d,f,h){at(n,o,s,d,f,h)}return l.ratio=function(o){return e((o=+o)>1?o:1)},l}(tt);function fe(){var e=Ee,n=!1,l=1,o=1,s=[0],d=ne,f=ne,h=ne,b=ne,u=ne;function m(i){if(i.x0=i.y0=0,i.x1=l,i.y1=o,i.eachBefore(D),s=[0],n)i.eachBefore(ke);return i}function D(i){var z=s[i.depth],N=i.x0+z,_=i.y0+z,g=i.x1-z,w=i.y1-z;if(g<N)N=g=(N+g)/2;if(w<_)_=w=(_+w)/2;if(i.x0=N,i.y0=_,i.x1=g,i.y1=w,i.children){if(z=s[i.depth+1]=d(i)/2,N+=u(i)-z,_+=f(i)-z,g-=h(i)-z,w-=b(i)-z,g<N)N=g=(N+g)/2;if(w<_)_=w=(_+w)/2;e(i,N,_,g,w)}}return m.round=function(i){return arguments.length?(n=!!i,m):n},m.size=function(i){return arguments.length?(l=+i[0],o=+i[1],m):[l,o]},m.tile=function(i){return arguments.length?(e=Be(i),m):e},m.padding=function(i){return arguments.length?m.paddingInner(i).paddingOuter(i):m.paddingInner()},m.paddingInner=function(i){return arguments.length?(d=typeof i==="function"?i:K(+i),m):d},m.paddingOuter=function(i){return arguments.length?m.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):m.paddingTop()},m.paddingTop=function(i){return arguments.length?(f=typeof i==="function"?i:K(+i),m):f},m.paddingRight=function(i){return arguments.length?(h=typeof i==="function"?i:K(+i),m):h},m.paddingBottom=function(i){return arguments.length?(b=typeof i==="function"?i:K(+i),m):b},m.paddingLeft=function(i){return arguments.length?(u=typeof i==="function"?i:K(+i),m):u},m}var Re=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=S,this.getAccTitle=E,this.setDiagramTitle=L,this.getDiagramTitle=R,this.getAccDescription=A,this.setAccDescription=T}static{t(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=M,n=x();return U({...e.treemap,...n.treemap??{}})}addNode(e,n){if(this.nodes.push(e),this.levels.set(e,n),n===0)this.outerNodes.push(e),this.root??=e}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,n){let l=this.classes.get(e)??{id:e,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");if(o)o.forEach((s)=>{if(Yr(s))if(l?.textStyles)l.textStyles.push(s);else l.textStyles=[s];if(l?.styles)l.styles.push(s);else l.styles=[s]});this.classes.set(e,l)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){C(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function We(e){if(!e.length)return[];let n=[],l=[];return e.forEach((o)=>{let s={name:o.name,children:o.type==="Leaf"?void 0:[]};if(s.classSelector=o?.classSelector,o?.cssCompiledStyles)s.cssCompiledStyles=o.cssCompiledStyles;if(o.type==="Leaf"&&o.value!==void 0)s.value=o.value;while(l.length>0&&l[l.length-1].level>=o.level)l.pop();if(l.length===0)n.push(s);else{let d=l[l.length-1].node;if(d.children)d.children.push(s);else d.children=[s]}if(o.type!=="Leaf")l.push({node:s,level:o.level})}),n}t(We,"buildHierarchy");var rt=t((e,n)=>{H(e,n);let l=[];for(let d of e.TreemapRows??[])if(d.$type==="ClassDefStatement")n.addClass(d.className??"",d.styleText??"");for(let d of e.TreemapRows??[]){let f=d.item;if(!f)continue;let h=d.indent?parseInt(d.indent):0,b=nt(f),u=f.classSelector?n.getStylesForClass(f.classSelector):[],m=u.length>0?u:void 0,D={level:h,name:b,type:f.$type,value:f.value,classSelector:f.classSelector,cssCompiledStyles:m};l.push(D)}let o=We(l),s=t((d,f)=>{for(let h of d)if(n.addNode(h,f),h.children&&h.children.length>0)s(h.children,f+1)},"addNodesRecursively");s(o,0)},"populate"),nt=t((e)=>e.name?String(e.name):"","getItemName"),He={parser:{yy:void 0},parse:t(async(e)=>{try{let l=await Q("treemap",e);a.debug("Treemap AST:",l);let o=He.parser?.yy;if(!(o instanceof Re))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");rt(l,o)}catch(n){throw a.error("Error parsing treemap:",n),n}},"parse")},lt=10,le=10,ce=25,ot=t((e,n,l,o)=>{let s=o.db,d=s.getConfig(),f=d.padding??lt,h=s.getDiagramTitle(),b=s.getRoot(),{themeVariables:u}=x();if(!b)return;let m=h?30:0,D=V(n),i=d.nodeWidth?d.nodeWidth*le:960,z=d.nodeHeight?d.nodeHeight*le:500,N=i,_=z+m;D.attr("viewBox",`0 0 ${N} ${_}`),F(D,_,N,d.useMaxWidth);let g;try{let r=d.valueFormat||",";if(r==="$0,0")g=t((c)=>"$"+Pt(",")(c),"valueFormat");else if(r.startsWith("$")&&r.includes(",")){let c=/\.\d+/.exec(r),y=c?c[0]:"";g=t((P)=>"$"+Pt(","+y)(P),"valueFormat")}else if(r.startsWith("$")){let c=r.substring(1);g=t((y)=>"$"+Pt(c||"")(y),"valueFormat")}else g=Pt(r)}catch(r){a.error("Error creating format function:",r),g=Pt(",")}let w=Qe().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),X=Qe().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),q=Qe().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);if(h)D.append("text").attr("x",N/2).attr("y",m/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);let ee=D.append("g").attr("transform",`translate(0, ${m})`).attr("class","treemapContainer"),oe=re(b).sum((r)=>r.value??0).sort((r,c)=>(c.value??0)-(r.value??0)),ze=fe().size([i,z]).paddingTop((r)=>r.children&&r.children.length>0?ce+le:0).paddingInner(f).paddingLeft((r)=>r.children&&r.children.length>0?le:0).paddingRight((r)=>r.children&&r.children.length>0?le:0).paddingBottom((r)=>r.children&&r.children.length>0?le:0).round(!0)(oe),Ie=ze.descendants().filter((r)=>r.children&&r.children.length>0),se=ee.selectAll(".treemapSection").data(Ie).enter().append("g").attr("class","treemapSection").attr("transform",(r)=>`translate(${r.x0},${r.y0})`);if(se.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",ce).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",0.6).attr("stroke-width",0.6).attr("style",(r)=>{if(r.depth===0)return"display: none;";return""}),se.append("clipPath").attr("id",(r,c)=>`clip-section-${n}-${c}`).append("rect").attr("width",(r)=>Math.max(0,r.x1-r.x0-12)).attr("height",ce),se.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",(r)=>r.y1-r.y0).attr("class",(r,c)=>`treemapSection section${c}`).attr("fill",(r)=>w(r.data.name)).attr("fill-opacity",0.6).attr("stroke",(r)=>X(r.data.name)).attr("stroke-width",2).attr("stroke-opacity",0.4).attr("style",(r)=>{if(r.depth===0)return"display: none;";let c=k({cssCompiledStyles:r.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),se.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",ce/2).attr("dominant-baseline","middle").text((r)=>r.depth===0?"":r.data.name).attr("font-weight","bold").attr("clip-path",(r,c)=>`url(#clip-section-${n}-${c})`).attr("style",(r)=>{if(r.depth===0)return"display: none;";let c="dominant-baseline: middle; font-size: 12px; fill:"+q(r.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")}).each(function(r){if(r.depth===0)return;let c=p(this),y=r.data.name;c.text(y);let P=r.x1-r.x0,W=6,B;if(d.showValues!==!1&&r.value){let O=P-10,J=30,Ge=10;B=O-30-10-W}else B=P-W-6;let v=Math.max(15,B),Z=c.node();if(Z.getComputedTextLength()>v){let J=y;while(J.length>0){if(J=y.substring(0,J.length-1),J.length===0){if(c.text("..."),Z.getComputedTextLength()>v)c.text("");break}if(c.text(J+"..."),Z.getComputedTextLength()<=v)break}}}),d.showValues!==!1)se.append("text").attr("class","treemapSectionValue").attr("x",(r)=>r.x1-r.x0-10).attr("y",ce/2).attr("text-anchor","end").attr("dominant-baseline","middle").text((r)=>r.value?g(r.value):"").attr("font-style","italic").attr("style",(r)=>{if(r.depth===0)return"display: none;";let c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+q(r.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")});let De=ze.leaves(),G=De.length>20,Oe=G?16:38,pe=G?14:28,te=G?4:8,ae=G?4:6,he=G?2:4,Ve=G?8:10,me=G?1:2,de=ee.selectAll(".treemapLeafGroup").data(De).enter().append("g").attr("class",(r,c)=>`treemapNode treemapLeafGroup leaf${c}${r.data.classSelector?` ${r.data.classSelector}`:""}x`).attr("transform",(r)=>`translate(${r.x0},${r.y0})`);if(de.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",(r)=>r.y1-r.y0).attr("class","treemapLeaf").attr("fill",(r)=>r.parent?w(r.parent.data.name):w(r.data.name)).attr("style",(r)=>k({cssCompiledStyles:r.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",0.3).attr("stroke",(r)=>r.parent?w(r.parent.data.name):w(r.data.name)).attr("stroke-width",3),de.append("clipPath").attr("id",(r,c)=>`clip-${n}-${c}`).append("rect").attr("width",(r)=>Math.max(0,r.x1-r.x0-4)).attr("height",(r)=>Math.max(0,r.y1-r.y0-4)),de.append("text").attr("class","treemapLabel").attr("x",(r)=>(r.x1-r.x0)/2).attr("y",(r)=>(r.y1-r.y0)/2).attr("style",(r)=>{let c=`text-anchor: middle; dominant-baseline: middle; font-size: ${Oe}px;fill:`+q(r.data.name)+";",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")}).attr("clip-path",(r,c)=>`url(#clip-${n}-${c})`).text((r)=>r.data.name).each(function(r){let c=p(this),y=r.x1-r.x0,P=r.y1-r.y0,W=c.node(),B=y-2*he,j=P-2*he;if(B<Ve||j<Ve){c.style("display","none");return}let v=parseInt(c.style("font-size"),10),Z=0.6;while(W.getComputedTextLength()>B&&v>te)v--,c.style("font-size",`${v}px`);let I=Math.max(ae,Math.min(pe,Math.round(v*Z))),O=v+me+I;while(O>j&&v>te){if(v--,I=Math.max(ae,Math.min(pe,Math.round(v*Z))),I<ae&&v===te)break;if(c.style("font-size",`${v}px`),O=v+me+I,I<=ae&&O>j);}if(c.style("font-size",`${v}px`),G){if(v<te||j<te)c.style("display","none")}else if(W.getComputedTextLength()>B||v<te||j<v)c.style("display","none")}),d.showValues!==!1)de.append("text").attr("class","treemapValue").attr("x",(c)=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",(c)=>{let y=`text-anchor: middle; dominant-baseline: hanging; font-size: ${pe}px;fill:`+q(c.data.name)+";",P=k({cssCompiledStyles:c.data.cssCompiledStyles});return y+P.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,y)=>`url(#clip-${n}-${y})`).text((c)=>c.value?g(c.value):"").each(function(c){let y=p(this),P=this.parentNode;if(!P){y.style("display","none");return}let W=p(P).select(".treemapLabel");if(W.empty()||W.style("display")==="none"){y.style("display","none");return}let B=parseFloat(W.style("font-size")),v=Math.max(ae,Math.min(pe,Math.round(B*0.6)));y.style("font-size",`${v}px`);let I=(c.y1-c.y0)/2+B/2+me;y.attr("y",I);let O=c.x1-c.x0,Pe=c.y1-c.y0-4,Xe=O-2*he;if(y.node().getComputedTextLength()>Xe||I+v>Pe||v<ae)y.style("display","none");else y.style("display",null)});let qe=d.diagramPadding??8;ue(D,qe,"flowchart",d?.useMaxWidth||!1)},"draw"),st=t(function(e,n){return n.db.getClasses()},"getClasses"),it={draw:ot,getClasses:st},ct={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},pt=t(({treemap:e}={})=>{let n=we(),l=x(),o=U(n,l.themeVariables),s=U(ct,e),d=s.titleColor??o.titleColor,f=s.labelColor??o.textColor,h=s.valueColor??o.textColor;return`
1
+ import{H}from"./chunk-ba9qy65y.js";import{t,a,we,N,x,F,C,S,E,T,A,L,R,p,V,Xr,k,U}from"./chunk-c6m4vfn5.js";import{Pt}from"./chunk-ss96cz1f.js";import{J}from"./chunk-a9er7a7c.js";import{Qe}from"./chunk-1zwc09e8.js";import{ue}from"./chunk-b9jry5a3.js";function Ye(e){var n=0,l=e.children,o=l&&l.length;if(!o)n=1;else while(--o>=0)n+=l[o].value;e.value=n}function ge(){return this.eachAfter(Ye)}function ye(e,n){let l=-1;for(let o of this)e.call(n,o,++l,this);return this}function xe(e,n){var l=this,o=[l],s,d,f=-1;while(l=o.pop())if(e.call(n,l,++f,this),s=l.children)for(d=s.length-1;d>=0;--d)o.push(s[d]);return this}function Se(e,n){var l=this,o=[l],s=[],d,f,h,b=-1;while(l=o.pop())if(s.push(l),d=l.children)for(f=0,h=d.length;f<h;++f)o.push(d[f]);while(l=s.pop())e.call(n,l,++b,this);return this}function ve(e,n){let l=-1;for(let o of this)if(e.call(n,o,++l,this))return o}function be(e){return this.eachAfter(function(n){var l=+e(n.data)||0,o=n.children,s=o&&o.length;while(--s>=0)l+=o[s].value;n.value=l})}function Ce(e){return this.eachBefore(function(n){if(n.children)n.children.sort(e)})}function Te(e){var n=this,l=je(n,e),o=[n];while(n!==l)n=n.parent,o.push(n);var s=o.length;while(e!==l)o.splice(s,0,e),e=e.parent;return o}function je(e,n){if(e===n)return e;var l=e.ancestors(),o=n.ancestors(),s=null;e=l.pop(),n=o.pop();while(e===n)s=e,e=l.pop(),n=o.pop();return s}function Le(){var e=this,n=[e];while(e=e.parent)n.push(e);return n}function $e(){return Array.from(this)}function Ae(){var e=[];return this.eachBefore(function(n){if(!n.children)e.push(n)}),e}function Fe(){var e=this,n=[];return e.each(function(l){if(l!==e)n.push({source:l.parent,target:l})}),n}function*Ne(){var e=this,n,l=[e],o,s,d;do{n=l.reverse(),l=[];while(e=n.pop())if(yield e,o=e.children)for(s=0,d=o.length;s<d;++s)l.push(o[s])}while(l.length)}function re(e,n){if(e instanceof Map){if(e=[void 0,e],n===void 0)n=Je}else if(n===void 0)n=Ue;var l=new ie(e),o,s=[l],d,f,h,b;while(o=s.pop())if((f=n(o.data))&&(b=(f=Array.from(f)).length)){o.children=f;for(h=b-1;h>=0;--h)s.push(d=f[h]=new ie(f[h])),d.parent=o,d.depth=o.depth+1}return l.eachBefore(et)}function Ze(){return re(this).eachBefore(Ke)}function Ue(e){return e.children}function Je(e){return Array.isArray(e)?e[1]:null}function Ke(e){if(e.data.value!==void 0)e.value=e.data.value;e.data=e.data.data}function et(e){var n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function ie(e){this.data=e,this.depth=this.height=0,this.parent=null}ie.prototype=re.prototype={constructor:ie,count:ge,each:ye,eachAfter:Se,eachBefore:xe,find:ve,sum:be,sort:Ce,path:Te,ancestors:Le,descendants:$e,leaves:Ae,links:Fe,copy:Ze,[Symbol.iterator]:Ne};function Be(e){if(typeof e!=="function")throw Error();return e}function ne(){return 0}function Q(e){return function(){return e}}function ke(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Me(e,n,l,o,s){var d=e.children,f,h=-1,b=d.length,u=e.value&&(o-n)/e.value;while(++h<b)f=d[h],f.y0=l,f.y1=s,f.x0=n,f.x1=n+=f.value*u}function _e(e,n,l,o,s){var d=e.children,f,h=-1,b=d.length,u=e.value&&(s-l)/e.value;while(++h<b)f=d[h],f.x0=n,f.x1=o,f.y0=l,f.y1=l+=f.value*u}var tt=(1+Math.sqrt(5))/2;function at(e,n,l,o,s,d){var f=[],h=n.children,b,u,m=0,D=0,i=h.length,z,M,_=n.value,g,w,X,q,ee,oe,Y;while(m<i){z=s-l,M=d-o;do g=h[D++].value;while(!g&&D<i);w=X=g,oe=Math.max(M/z,z/M)/(_*e),Y=g*g*oe,ee=Math.max(X/Y,Y/w);for(;D<i;++D){if(g+=u=h[D].value,u<w)w=u;if(u>X)X=u;if(Y=g*g*oe,q=Math.max(X/Y,Y/w),q>ee){g-=u;break}ee=q}if(f.push(b={value:g,dice:z<M,children:h.slice(m,D)}),b.dice)Me(b,l,o,s,_?o+=M*g/_:d);else _e(b,l,o,_?l+=z*g/_:s,d);_-=g,m=D}return f}var Ee=function e(n){function l(o,s,d,f,h){at(n,o,s,d,f,h)}return l.ratio=function(o){return e((o=+o)>1?o:1)},l}(tt);function fe(){var e=Ee,n=!1,l=1,o=1,s=[0],d=ne,f=ne,h=ne,b=ne,u=ne;function m(i){if(i.x0=i.y0=0,i.x1=l,i.y1=o,i.eachBefore(D),s=[0],n)i.eachBefore(ke);return i}function D(i){var z=s[i.depth],M=i.x0+z,_=i.y0+z,g=i.x1-z,w=i.y1-z;if(g<M)M=g=(M+g)/2;if(w<_)_=w=(_+w)/2;if(i.x0=M,i.y0=_,i.x1=g,i.y1=w,i.children){if(z=s[i.depth+1]=d(i)/2,M+=u(i)-z,_+=f(i)-z,g-=h(i)-z,w-=b(i)-z,g<M)M=g=(M+g)/2;if(w<_)_=w=(_+w)/2;e(i,M,_,g,w)}}return m.round=function(i){return arguments.length?(n=!!i,m):n},m.size=function(i){return arguments.length?(l=+i[0],o=+i[1],m):[l,o]},m.tile=function(i){return arguments.length?(e=Be(i),m):e},m.padding=function(i){return arguments.length?m.paddingInner(i).paddingOuter(i):m.paddingInner()},m.paddingInner=function(i){return arguments.length?(d=typeof i==="function"?i:Q(+i),m):d},m.paddingOuter=function(i){return arguments.length?m.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):m.paddingTop()},m.paddingTop=function(i){return arguments.length?(f=typeof i==="function"?i:Q(+i),m):f},m.paddingRight=function(i){return arguments.length?(h=typeof i==="function"?i:Q(+i),m):h},m.paddingBottom=function(i){return arguments.length?(b=typeof i==="function"?i:Q(+i),m):b},m.paddingLeft=function(i){return arguments.length?(u=typeof i==="function"?i:Q(+i),m):u},m}var Re=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=S,this.getAccTitle=E,this.setDiagramTitle=L,this.getDiagramTitle=R,this.getAccDescription=A,this.setAccDescription=T}static{t(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=N,n=x();return U({...e.treemap,...n.treemap??{}})}addNode(e,n){if(this.nodes.push(e),this.levels.set(e,n),n===0)this.outerNodes.push(e),this.root??=e}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,n){let l=this.classes.get(e)??{id:e,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");if(o)o.forEach((s)=>{if(Xr(s))if(l?.textStyles)l.textStyles.push(s);else l.textStyles=[s];if(l?.styles)l.styles.push(s);else l.styles=[s]});this.classes.set(e,l)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){C(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function We(e){if(!e.length)return[];let n=[],l=[];return e.forEach((o)=>{let s={name:o.name,children:o.type==="Leaf"?void 0:[]};if(s.classSelector=o?.classSelector,o?.cssCompiledStyles)s.cssCompiledStyles=o.cssCompiledStyles;if(o.type==="Leaf"&&o.value!==void 0)s.value=o.value;while(l.length>0&&l[l.length-1].level>=o.level)l.pop();if(l.length===0)n.push(s);else{let d=l[l.length-1].node;if(d.children)d.children.push(s);else d.children=[s]}if(o.type!=="Leaf")l.push({node:s,level:o.level})}),n}t(We,"buildHierarchy");var rt=t((e,n)=>{H(e,n);let l=[];for(let d of e.TreemapRows??[])if(d.$type==="ClassDefStatement")n.addClass(d.className??"",d.styleText??"");for(let d of e.TreemapRows??[]){let f=d.item;if(!f)continue;let h=d.indent?parseInt(d.indent):0,b=nt(f),u=f.classSelector?n.getStylesForClass(f.classSelector):[],m=u.length>0?u:void 0,D={level:h,name:b,type:f.$type,value:f.value,classSelector:f.classSelector,cssCompiledStyles:m};l.push(D)}let o=We(l),s=t((d,f)=>{for(let h of d)if(n.addNode(h,f),h.children&&h.children.length>0)s(h.children,f+1)},"addNodesRecursively");s(o,0)},"populate"),nt=t((e)=>e.name?String(e.name):"","getItemName"),He={parser:{yy:void 0},parse:t(async(e)=>{try{let l=await J("treemap",e);a.debug("Treemap AST:",l);let o=He.parser?.yy;if(!(o instanceof Re))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");rt(l,o)}catch(n){throw a.error("Error parsing treemap:",n),n}},"parse")},lt=10,le=10,ce=25,ot=t((e,n,l,o)=>{let s=o.db,d=s.getConfig(),f=d.padding??lt,h=s.getDiagramTitle(),b=s.getRoot(),{themeVariables:u}=x();if(!b)return;let m=h?30:0,D=V(n),i=d.nodeWidth?d.nodeWidth*le:960,z=d.nodeHeight?d.nodeHeight*le:500,M=i,_=z+m;D.attr("viewBox",`0 0 ${M} ${_}`),F(D,_,M,d.useMaxWidth);let g;try{let r=d.valueFormat||",";if(r==="$0,0")g=t((c)=>"$"+Pt(",")(c),"valueFormat");else if(r.startsWith("$")&&r.includes(",")){let c=/\.\d+/.exec(r),y=c?c[0]:"";g=t((P)=>"$"+Pt(","+y)(P),"valueFormat")}else if(r.startsWith("$")){let c=r.substring(1);g=t((y)=>"$"+Pt(c||"")(y),"valueFormat")}else g=Pt(r)}catch(r){a.error("Error creating format function:",r),g=Pt(",")}let w=Qe().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),X=Qe().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),q=Qe().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);if(h)D.append("text").attr("x",M/2).attr("y",m/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);let ee=D.append("g").attr("transform",`translate(0, ${m})`).attr("class","treemapContainer"),oe=re(b).sum((r)=>r.value??0).sort((r,c)=>(c.value??0)-(r.value??0)),ze=fe().size([i,z]).paddingTop((r)=>r.children&&r.children.length>0?ce+le:0).paddingInner(f).paddingLeft((r)=>r.children&&r.children.length>0?le:0).paddingRight((r)=>r.children&&r.children.length>0?le:0).paddingBottom((r)=>r.children&&r.children.length>0?le:0).round(!0)(oe),Ie=ze.descendants().filter((r)=>r.children&&r.children.length>0),se=ee.selectAll(".treemapSection").data(Ie).enter().append("g").attr("class","treemapSection").attr("transform",(r)=>`translate(${r.x0},${r.y0})`);if(se.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",ce).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",0.6).attr("stroke-width",0.6).attr("style",(r)=>{if(r.depth===0)return"display: none;";return""}),se.append("clipPath").attr("id",(r,c)=>`clip-section-${n}-${c}`).append("rect").attr("width",(r)=>Math.max(0,r.x1-r.x0-12)).attr("height",ce),se.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",(r)=>r.y1-r.y0).attr("class",(r,c)=>`treemapSection section${c}`).attr("fill",(r)=>w(r.data.name)).attr("fill-opacity",0.6).attr("stroke",(r)=>X(r.data.name)).attr("stroke-width",2).attr("stroke-opacity",0.4).attr("style",(r)=>{if(r.depth===0)return"display: none;";let c=k({cssCompiledStyles:r.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),se.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",ce/2).attr("dominant-baseline","middle").text((r)=>r.depth===0?"":r.data.name).attr("font-weight","bold").attr("clip-path",(r,c)=>`url(#clip-section-${n}-${c})`).attr("style",(r)=>{if(r.depth===0)return"display: none;";let c="dominant-baseline: middle; font-size: 12px; fill:"+q(r.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")}).each(function(r){if(r.depth===0)return;let c=p(this),y=r.data.name;c.text(y);let P=r.x1-r.x0,W=6,B;if(d.showValues!==!1&&r.value){let O=P-10,K=30,Ge=10;B=O-30-10-W}else B=P-W-6;let v=Math.max(15,B),Z=c.node();if(Z.getComputedTextLength()>v){let K=y;while(K.length>0){if(K=y.substring(0,K.length-1),K.length===0){if(c.text("..."),Z.getComputedTextLength()>v)c.text("");break}if(c.text(K+"..."),Z.getComputedTextLength()<=v)break}}}),d.showValues!==!1)se.append("text").attr("class","treemapSectionValue").attr("x",(r)=>r.x1-r.x0-10).attr("y",ce/2).attr("text-anchor","end").attr("dominant-baseline","middle").text((r)=>r.value?g(r.value):"").attr("font-style","italic").attr("style",(r)=>{if(r.depth===0)return"display: none;";let c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+q(r.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")});let De=ze.leaves(),G=De.length>20,Oe=G?16:38,pe=G?14:28,te=G?4:8,ae=G?4:6,he=G?2:4,Ve=G?8:10,me=G?1:2,de=ee.selectAll(".treemapLeafGroup").data(De).enter().append("g").attr("class",(r,c)=>`treemapNode treemapLeafGroup leaf${c}${r.data.classSelector?` ${r.data.classSelector}`:""}x`).attr("transform",(r)=>`translate(${r.x0},${r.y0})`);if(de.append("rect").attr("width",(r)=>r.x1-r.x0).attr("height",(r)=>r.y1-r.y0).attr("class","treemapLeaf").attr("fill",(r)=>r.parent?w(r.parent.data.name):w(r.data.name)).attr("style",(r)=>k({cssCompiledStyles:r.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",0.3).attr("stroke",(r)=>r.parent?w(r.parent.data.name):w(r.data.name)).attr("stroke-width",3),de.append("clipPath").attr("id",(r,c)=>`clip-${n}-${c}`).append("rect").attr("width",(r)=>Math.max(0,r.x1-r.x0-4)).attr("height",(r)=>Math.max(0,r.y1-r.y0-4)),de.append("text").attr("class","treemapLabel").attr("x",(r)=>(r.x1-r.x0)/2).attr("y",(r)=>(r.y1-r.y0)/2).attr("style",(r)=>{let c=`text-anchor: middle; dominant-baseline: middle; font-size: ${Oe}px;fill:`+q(r.data.name)+";",y=k({cssCompiledStyles:r.data.cssCompiledStyles});return c+y.labelStyles.replace("color:","fill:")}).attr("clip-path",(r,c)=>`url(#clip-${n}-${c})`).text((r)=>r.data.name).each(function(r){let c=p(this),y=r.x1-r.x0,P=r.y1-r.y0,W=c.node(),B=y-2*he,j=P-2*he;if(B<Ve||j<Ve){c.style("display","none");return}let v=parseInt(c.style("font-size"),10),Z=0.6;while(W.getComputedTextLength()>B&&v>te)v--,c.style("font-size",`${v}px`);let I=Math.max(ae,Math.min(pe,Math.round(v*Z))),O=v+me+I;while(O>j&&v>te){if(v--,I=Math.max(ae,Math.min(pe,Math.round(v*Z))),I<ae&&v===te)break;if(c.style("font-size",`${v}px`),O=v+me+I,I<=ae&&O>j);}if(c.style("font-size",`${v}px`),G){if(v<te||j<te)c.style("display","none")}else if(W.getComputedTextLength()>B||v<te||j<v)c.style("display","none")}),d.showValues!==!1)de.append("text").attr("class","treemapValue").attr("x",(c)=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",(c)=>{let y=`text-anchor: middle; dominant-baseline: hanging; font-size: ${pe}px;fill:`+q(c.data.name)+";",P=k({cssCompiledStyles:c.data.cssCompiledStyles});return y+P.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,y)=>`url(#clip-${n}-${y})`).text((c)=>c.value?g(c.value):"").each(function(c){let y=p(this),P=this.parentNode;if(!P){y.style("display","none");return}let W=p(P).select(".treemapLabel");if(W.empty()||W.style("display")==="none"){y.style("display","none");return}let B=parseFloat(W.style("font-size")),v=Math.max(ae,Math.min(pe,Math.round(B*0.6)));y.style("font-size",`${v}px`);let I=(c.y1-c.y0)/2+B/2+me;y.attr("y",I);let O=c.x1-c.x0,Pe=c.y1-c.y0-4,Xe=O-2*he;if(y.node().getComputedTextLength()>Xe||I+v>Pe||v<ae)y.style("display","none");else y.style("display",null)});let qe=d.diagramPadding??8;ue(D,qe,"flowchart",d?.useMaxWidth||!1)},"draw"),st=t(function(e,n){return n.db.getClasses()},"getClasses"),it={draw:ot,getClasses:st},ct={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},pt=t(({treemap:e}={})=>{let n=we(),l=x(),o=U(n,l.themeVariables),s=U(ct,e),d=s.titleColor??o.titleColor,f=s.labelColor??o.textColor,h=s.valueColor??o.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${s.sectionStrokeColor};
4
4
  stroke-width: ${s.sectionStrokeWidth};