@bkm016/basalt 0.1.13 → 0.1.15
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.
- package/README.md +3 -2
- package/{chunk-bng72094.js → chunk-03wzwnn6.js} +1 -1
- package/{chunk-9e8vhzy7.js → chunk-0crbhhna.js} +1 -1
- package/{chunk-h9zxqeqr.js → chunk-0rasqm8y.js} +2 -2
- package/{chunk-0x9netvr.js → chunk-1w4nh5t6.js} +1 -1
- package/{chunk-dk6fgprw.js → chunk-2eaehpp6.js} +1 -1
- package/{chunk-6sea12mw.js → chunk-30dxcr91.js} +1 -1
- package/{chunk-2zbj8ny6.js → chunk-343jsm46.js} +2 -2
- package/chunk-38g4jd6v.js +5 -0
- package/{chunk-zx75vnw8.js → chunk-39mh7h58.js} +22 -22
- package/chunk-44b9yx79.js +2 -0
- package/{chunk-r1jn77q6.js → chunk-4f6p4n7k.js} +2 -2
- package/{chunk-sgz87ht5.js → chunk-4w8j6n7z.js} +1 -1
- package/{chunk-szj85dqe.js → chunk-4yxd2kg1.js} +2 -2
- package/{chunk-bp61xdsc.js → chunk-59hg9a84.js} +1 -1
- package/{chunk-yy1f9jxc.js → chunk-5n1qra6k.js} +429 -310
- package/{chunk-bq54argx.js → chunk-62ebm0bn.js} +1 -1
- package/{chunk-6d9r9p91.js → chunk-6ef085c1.js} +4 -4
- package/{chunk-zk91579b.js → chunk-6hx9y86d.js} +2 -2
- package/chunk-73t051r6.js +2 -0
- package/{chunk-pryvvs96.js → chunk-7mgkpn94.js} +22 -22
- package/{chunk-2q56egb8.js → chunk-81x8r8w4.js} +1 -1
- package/{chunk-rn3jwyh1.js → chunk-8np9b2y8.js} +2 -2
- package/{chunk-1q6e3mj7.js → chunk-9ew8cap5.js} +2 -2
- package/chunk-9v3b7jjv.js +2 -0
- package/{chunk-tjg0gcks.js → chunk-9vam83py.js} +1 -1
- package/{chunk-ct77cdg7.js → chunk-9xjecw6c.js} +1 -1
- package/{chunk-8cgz8xv7.js → chunk-b2wpj81x.js} +2 -2
- package/{chunk-302n9g7p.js → chunk-bjvv3403.js} +1 -1
- package/{chunk-tfhze1vq.js → chunk-c8g9jjqs.js} +2 -2
- package/{chunk-0a7ft50x.js → chunk-cs91rmbf.js} +8 -8
- package/{chunk-gpnqmtbk.js → chunk-edcf97ka.js} +1 -1
- package/{chunk-74wwdx3y.js → chunk-en7z6ne5.js} +2 -2
- package/{chunk-f0h2bv11.js → chunk-evnqkyt7.js} +10 -10
- package/{chunk-4rnmxtpx.js → chunk-ge38dhv9.js} +2 -2
- package/chunk-hggam3je.js +2 -0
- package/{chunk-mf04h0yy.js → chunk-k38jaz6c.js} +4 -4
- package/{chunk-jjtt9aq8.js → chunk-kcn05erf.js} +3 -3
- package/{chunk-y23dpz5e.js → chunk-m5km74eq.js} +2 -2
- package/{chunk-095adzn5.js → chunk-mfb3dgs8.js} +2 -2
- package/{chunk-0nedq669.js → chunk-mh4bjtfs.js} +3 -3
- package/{chunk-bja7p3em.js → chunk-p886jr17.js} +13 -13
- package/{chunk-xvm0y99b.js → chunk-pdt65s31.js} +2 -2
- package/{chunk-ymg7mtcx.js → chunk-pjgt1bdx.js} +2 -2
- package/{chunk-959z9efn.js → chunk-pyj6avd5.js} +2 -2
- package/chunk-qd2enpr2.js +3 -0
- package/{chunk-tnj2kqb8.js → chunk-qe76naq9.js} +1 -1
- package/{chunk-z0c8ek0j.js → chunk-qjnx4fsn.js} +2 -2
- package/{chunk-2tf7qfbx.js → chunk-qs161f2q.js} +2 -2
- package/{chunk-nbjnwd54.js → chunk-rghqprav.js} +1 -1
- package/{chunk-7chv3knf.js → chunk-t33bm5aa.js} +1 -1
- package/chunk-tszctb17.js +482 -0
- package/chunk-vd5332ps.js +2 -0
- package/{chunk-22az84sh.js → chunk-w55cnj0f.js} +2 -2
- package/{chunk-4k9t9jvx.js → chunk-wnd3y4c0.js} +1 -1
- package/{chunk-snz19yc2.js → chunk-xafx1p7z.js} +2 -2
- package/{chunk-15ve3nmv.js → chunk-xf7zw32f.js} +12 -12
- package/{chunk-kbpbrr11.js → chunk-xq74x4gc.js} +2 -2
- package/{chunk-mdkfm1ak.js → chunk-y0274xr2.js} +3 -3
- package/{chunk-y4pvhes1.js → chunk-z9p6s986.js} +6 -6
- package/{chunk-41das1ty.js → chunk-zcwz44db.js} +1 -1
- package/{chunk-77c2cqp2.js → chunk-zhyzhekt.js} +1 -1
- package/compiled.js +12 -12
- package/package.json +1 -1
- package/ui-test-worker.js +51 -51
- package/web/chunk-00swes3c.js +1 -0
- package/web/{chunk-s935z8er.js → chunk-01nbc18z.js} +2 -2
- package/web/chunk-0e995hjg.js +1 -0
- package/web/{chunk-16jc5m0f.js → chunk-17wwzrp4.js} +1 -1
- package/web/{chunk-8j4tzff5.js → chunk-1bhpfsvr.js} +3 -3
- package/web/{chunk-qb8mbptk.js → chunk-1v6hhgc6.js} +1 -1
- package/web/chunk-1y387f45.js +1 -0
- package/web/{chunk-ddg8rz82.js → chunk-251yw6f2.js} +1 -1
- package/web/{chunk-mykrm8ba.js → chunk-25sn840r.js} +2 -2
- package/web/{chunk-b4gcpsbg.js → chunk-27cntdyk.js} +5 -5
- package/web/chunk-2tm4xe0j.js +2 -0
- package/web/chunk-3egthz5k.js +2 -0
- package/web/{chunk-p7pa02k9.js → chunk-3f8fjee5.js} +2 -2
- package/web/chunk-3fjzgpaw.js +1 -0
- package/web/{chunk-zqcg6frm.js → chunk-3hy2gsgf.js} +1 -1
- package/web/chunk-3mgzqbc8.js +1 -0
- package/web/chunk-3yvanftw.js +1 -0
- package/web/{chunk-xk1vkcj4.js → chunk-3zs2v6b4.js} +4 -4
- package/web/{chunk-9k7fkx80.js → chunk-43194184.js} +1 -1
- package/web/{chunk-vk7ch6fh.js → chunk-43bczb21.js} +2 -2
- package/web/{chunk-0rhx7qb8.js → chunk-4m9mgdaa.js} +1 -1
- package/web/{chunk-jpem3qvs.js → chunk-4q2jtvwn.js} +5 -5
- package/web/{chunk-w28dn4dw.js → chunk-4tbhxtnm.js} +1 -1
- package/web/{chunk-q4vy3dkk.js → chunk-50vgq2nk.js} +2 -2
- package/web/{chunk-atppv8fk.js → chunk-57b8j192.js} +1 -1
- package/web/{chunk-h6k1x096.js → chunk-5d9veaef.js} +2 -2
- package/web/chunk-5fzmk43v.js +1 -0
- package/web/{chunk-97t3ngqf.js → chunk-5rwg3qqd.js} +7 -7
- package/web/{chunk-xe121vg7.js → chunk-62gj74fq.js} +1 -1
- package/web/chunk-64h7k870.js +1 -0
- package/web/{chunk-3p9w8sg5.js → chunk-65ay0j1t.js} +3 -3
- package/web/{chunk-mkxeenph.js → chunk-66164wmv.js} +1 -1
- package/web/chunk-6ehecat3.js +1 -0
- package/web/{chunk-a6g3nqp0.js → chunk-6s1vjny7.js} +2 -2
- package/web/{chunk-ga07tv37.js → chunk-6x1hfjb9.js} +1 -1
- package/web/{chunk-dmha2y9c.js → chunk-6xfbh4z5.js} +18 -18
- package/web/chunk-73941p08.js +1 -0
- package/web/{chunk-t82sngk9.js → chunk-7frnjms9.js} +7 -7
- package/web/chunk-7jh6zxg3.js +1 -0
- package/web/chunk-7mgwejn4.js +1 -0
- package/web/chunk-7qq1ypvj.js +1 -0
- package/web/{chunk-awkdw9rw.js → chunk-7wzszsf5.js} +2 -2
- package/web/{chunk-c57f714b.js → chunk-7zfqppsx.js} +2 -2
- package/web/{chunk-wpxtkxjt.js → chunk-8nm0mghm.js} +2 -2
- package/web/{chunk-980zhtht.js → chunk-8qzsxg1q.js} +1 -1
- package/web/chunk-8zg89764.js +1 -0
- package/web/{chunk-sq75q603.js → chunk-937ndmh1.js} +6 -6
- package/web/chunk-95gbcs8j.js +1 -0
- package/web/{chunk-eqxy6535.js → chunk-a205cj09.js} +2 -2
- package/web/chunk-at0xtfhy.js +1 -0
- package/web/{chunk-jh3k7xex.js → chunk-aw6wg8fe.js} +3 -3
- package/web/{chunk-g0be12na.js → chunk-b323qea5.js} +1 -1
- package/web/{chunk-3ctmehg4.js → chunk-bcx7xges.js} +1 -1
- package/web/{chunk-ke8dffnk.js → chunk-bzdn9sxz.js} +2 -2
- package/web/{chunk-w4tfad6c.js → chunk-cq1f20k6.js} +1 -1
- package/web/{chunk-zb61mf0a.js → chunk-dde64qjd.js} +1 -1
- package/web/{chunk-a9er7a7c.js → chunk-dgepxev9.js} +19 -19
- package/web/{chunk-6rsr2cyw.js → chunk-djnq1w1e.js} +8 -8
- package/web/{chunk-2y1avvqj.js → chunk-ea6b8b50.js} +3 -3
- package/web/{chunk-xxmaqj1m.js → chunk-ed5xfgxb.js} +2 -2
- package/web/{chunk-0jbf73pr.js → chunk-ehz9m6g4.js} +3 -3
- package/web/chunk-evp6t44y.js +8 -0
- package/web/chunk-eyg28s83.js +1 -0
- package/web/{chunk-mnf4ngj9.js → chunk-fttdbcqv.js} +2 -2
- package/web/chunk-g7bcntpm.js +1 -0
- package/web/chunk-g9bqacq1.js +1 -0
- package/web/chunk-gh8kjzdj.js +1 -0
- package/web/{chunk-2sef2wft.js → chunk-hbwxtbq3.js} +2 -2
- package/web/{chunk-6e87m0nm.js → chunk-hdtvrh0f.js} +2 -2
- package/web/chunk-j031r08w.js +1 -0
- package/web/{chunk-zh7193nq.js → chunk-jab2p5zv.js} +2 -2
- package/web/{chunk-2x7vmhm0.js → chunk-jca9xbe0.js} +3 -3
- package/web/{chunk-jccz14ye.js → chunk-jdx7qp2w.js} +2 -2
- package/web/chunk-jpf8x9tm.js +1 -0
- package/web/{chunk-5cwxhhae.js → chunk-jx3z63tq.js} +2 -2
- package/web/chunk-jy448465.js +1142 -0
- package/web/chunk-jy8zat04.js +1 -0
- package/web/{chunk-b9jry5a3.js → chunk-k3ah0513.js} +1 -1
- package/web/{chunk-qq6m2my8.js → chunk-k4qrqmdk.js} +2 -2
- package/web/chunk-k8s7kye3.js +1 -0
- package/web/chunk-k9zn1n6d.js +1 -0
- package/web/{chunk-v4cqc9f9.js → chunk-ksnsfqrn.js} +1 -1
- package/web/{chunk-cr04125j.js → chunk-kxr473dw.js} +12 -12
- package/web/{chunk-3wpxymxa.js → chunk-m5psa69k.js} +3 -3
- package/web/chunk-md9j949p.js +1 -0
- package/web/{chunk-4py9sndw.js → chunk-mss6eg27.js} +6 -6
- package/web/{chunk-3jjksgze.js → chunk-mv9q8jrm.js} +1 -1
- package/web/{chunk-ze6azq7z.js → chunk-n0ezfa12.js} +4 -4
- package/web/chunk-nbcpbqq4.js +1 -0
- package/web/{chunk-qq06x2ce.js → chunk-p1bb9xp8.js} +2 -2
- package/web/{chunk-14vmr99v.js → chunk-pa82db2e.js} +3 -3
- package/web/{chunk-frnh4zqf.js → chunk-pafw34vg.js} +2 -2
- package/web/{chunk-1xm9x7d6.js → chunk-pdmcr6d4.js} +2 -2
- package/web/{chunk-ct90yf8z.js → chunk-pf65cank.js} +2 -2
- package/web/{chunk-jh33m2mq.js → chunk-phj4pcx4.js} +3 -3
- package/web/{chunk-fnvgdvrg.js → chunk-pma5pats.js} +4 -4
- package/web/{chunk-g7hqafb8.js → chunk-pmghe7rh.js} +1 -1
- package/web/{chunk-xcyqd7cn.js → chunk-ppfhtyxt.js} +1 -1
- package/web/chunk-pze2v3v1.js +2 -0
- package/web/{chunk-e57h40qa.js → chunk-q6j2e8a1.js} +2 -2
- package/web/chunk-q6jf3zc1.js +1 -0
- package/web/{chunk-9wz8jne3.js → chunk-qdn3hmfy.js} +1 -1
- package/web/{chunk-cr05dttm.js → chunk-qdsg8wp0.js} +1 -1
- package/web/{chunk-yn4t5s9r.js → chunk-qf2kb7zj.js} +1 -1
- package/web/{chunk-eqndhs21.js → chunk-qv1w36ja.js} +2 -2
- package/web/{chunk-k0cg4n2k.js → chunk-s0xy00v5.js} +2 -2
- package/web/{chunk-zxrbbbtp.js → chunk-s6bc73n3.js} +2 -2
- package/web/{chunk-qh62nkem.js → chunk-sd3cdqcm.js} +2 -2
- package/web/chunk-sdtesqbb.js +1 -0
- package/web/chunk-t0z8ygx4.js +1 -0
- package/web/chunk-t2v01k4z.js +1 -0
- package/web/{chunk-c6m4vfn5.js → chunk-t5ke9cyg.js} +68 -68
- package/web/{chunk-5ym5ffd5.js → chunk-t72z2ww3.js} +2 -2
- package/web/{chunk-0rvwj2wh.js → chunk-t78qm9gs.js} +2 -2
- package/web/{chunk-xvm66b7v.js → chunk-te15yhn5.js} +4 -4
- package/web/{chunk-et1rsgmp.js → chunk-tvaxyhh0.js} +2 -2
- package/web/{chunk-pzg25qqe.js → chunk-vvvd3grf.js} +2 -2
- package/web/{chunk-ss96cz1f.js → chunk-vwv6pqy7.js} +1 -1
- package/web/{chunk-p6e2vr51.js → chunk-vypfy030.js} +6 -6
- package/web/chunk-w7cyrbk2.js +1 -0
- package/web/chunk-w9nkvcjr.js +1 -0
- package/web/{chunk-20jxvmbw.js → chunk-wfgrdabk.js} +1 -1
- package/web/chunk-x2f8bwd2.js +1 -0
- package/web/chunk-xq8x7dvr.js +1 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-ba9qy65y.js → chunk-yeh77fvq.js} +1 -1
- package/web/{chunk-y9waq403.js → chunk-ymtq18z6.js} +2 -2
- package/web/{chunk-h1k2kqbs.js → chunk-yzmrbssn.js} +4 -4
- package/web/{chunk-ct7z7bea.js → chunk-z5h046zm.js} +3 -3
- package/web/{chunk-qbmtah1x.js → chunk-zf4b8jb9.js} +1 -1
- package/web/index.html +1 -1
- package/web/sw.js +17 -1
- package/chunk-1dbfmejf.js +0 -2
- package/chunk-4w9zqv0k.js +0 -2
- package/chunk-6f4ht2hw.js +0 -2
- package/chunk-edbq461k.js +0 -5
- package/chunk-m71pj3g1.js +0 -2
- package/chunk-n22vd4at.js +0 -2
- package/chunk-sgrrxsnz.js +0 -482
- package/chunk-ydzag81d.js +0 -3
- package/web/chunk-12qf1r6m.js +0 -1
- package/web/chunk-1m6fx2h7.js +0 -2
- package/web/chunk-2n5xbnrt.js +0 -1
- package/web/chunk-36s08nye.js +0 -1
- package/web/chunk-4swea9sn.js +0 -1
- package/web/chunk-4zz5a483.js +0 -1
- package/web/chunk-6y55gk1n.js +0 -1
- package/web/chunk-7aep7k4v.js +0 -1
- package/web/chunk-8tgavnwx.js +0 -1
- package/web/chunk-a00vg115.js +0 -1
- package/web/chunk-a4gbxnm3.js +0 -1
- package/web/chunk-bq6mep6p.js +0 -2
- package/web/chunk-bwy3e58v.js +0 -1
- package/web/chunk-de29pe57.js +0 -1
- package/web/chunk-eeesa5q1.js +0 -1
- package/web/chunk-f7jpakwh.js +0 -1
- package/web/chunk-fp62avjh.js +0 -1
- package/web/chunk-gr163fex.js +0 -1
- package/web/chunk-gx340asc.js +0 -1
- package/web/chunk-gxtz10wf.js +0 -1
- package/web/chunk-k9qnvx86.js +0 -2
- package/web/chunk-kcnj0gan.js +0 -1
- package/web/chunk-kpp5xqsb.js +0 -1
- package/web/chunk-m33yted6.js +0 -1
- package/web/chunk-me5jqqn6.js +0 -1
- package/web/chunk-mzqqwbmr.js +0 -1
- package/web/chunk-mzzaet63.js +0 -1
- package/web/chunk-q34as3v6.js +0 -1
- package/web/chunk-q6c8p73w.js +0 -1
- package/web/chunk-qn93we3a.js +0 -1
- package/web/chunk-r1f1egve.js +0 -1
- package/web/chunk-tt9410zw.js +0 -8
- package/web/chunk-ve8gy05p.js +0 -1142
- package/web/chunk-vg1ebkce.js +0 -1
- package/web/chunk-vnt34mkb.js +0 -1
- package/web/chunk-xh4xn1az.js +0 -1
- package/web/chunk-xrk5ewsn.js +0 -1
- package/web/chunk-xzwxcxb4.js +0 -1
- package/web/chunk-ydhnkws0.js +0 -1
- package/web/chunk-ys2tns0p.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Si}from"./chunk-hdtvrh0f.js";export{Si as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{da}from"./chunk-qv1w36ja.js";export{da as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
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`
|
|
1
|
+
import{H}from"./chunk-yeh77fvq.js";import{t,a,we,N,x,F,C,S,E,T,A,L,R,p,V,Qr,k,j}from"./chunk-t5ke9cyg.js";import{Pt}from"./chunk-vwv6pqy7.js";import{J}from"./chunk-dgepxev9.js";import{Qe}from"./chunk-1zwc09e8.js";import{ue}from"./chunk-k3ah0513.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 j({...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(Qr(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),U=c.node();if(U.getComputedTextLength()>v){let K=y;while(K.length>0){if(K=y.substring(0,K.length-1),K.length===0){if(c.text("..."),U.getComputedTextLength()>v)c.text("");break}if(c.text(K+"..."),U.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,Z=P-2*he;if(B<Ve||Z<Ve){c.style("display","none");return}let v=parseInt(c.style("font-size"),10),U=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*U))),O=v+me+I;while(O>Z&&v>te){if(v--,I=Math.max(ae,Math.min(pe,Math.round(v*U))),I<ae&&v===te)break;if(c.style("font-size",`${v}px`),O=v+me+I,I<=ae&&O>Z);}if(c.style("font-size",`${v}px`),G){if(v<te||Z<te)c.style("display","none")}else if(W.getComputedTextLength()>B||v<te||Z<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=j(n,l.themeVariables),s=j(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};
|