@bkm016/basalt 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-01g872ez.js +3 -0
- package/chunk-078td1r4.js +7 -0
- package/chunk-1mhv12a5.js +3 -0
- package/chunk-1zrht78t.js +2 -0
- package/chunk-2e4xds74.js +18 -0
- package/chunk-2hkpqjqj.js +3 -0
- package/chunk-2mhpgb4t.js +2 -0
- package/chunk-3nwqng5t.js +59 -0
- package/chunk-3zm1ejmh.js +3 -0
- package/chunk-4d9p68s9.js +3 -0
- package/chunk-5h96jz3p.js +3 -0
- package/chunk-5znfck4s.js +5 -0
- package/chunk-6048rq29.js +8 -0
- package/chunk-61zk13qr.js +3 -0
- package/chunk-62ty404c.js +2 -0
- package/chunk-6vp2nqbj.js +2 -0
- package/chunk-7a5derff.js +25 -0
- package/chunk-7qhbff72.js +5 -0
- package/chunk-7xw6fpx3.js +3 -0
- package/chunk-84rk4tew.js +2 -0
- package/chunk-8np9b2y8.js +3 -0
- package/chunk-8wb8yr7d.js +12 -0
- package/chunk-93b76hhg.js +11 -0
- package/chunk-9h05aqdd.js +25 -0
- package/chunk-a2jsx2ew.js +3 -0
- package/chunk-a2qwx6cr.js +2 -0
- package/chunk-a7h459z1.js +2 -0
- package/chunk-atjwde1c.js +2 -0
- package/chunk-bk20awc9.js +10 -0
- package/chunk-bm2jhkqt.js +3 -0
- package/chunk-bp4zk5ch.js +3 -0
- package/chunk-c5ess8kd.js +3 -0
- package/chunk-cj7yhgnd.js +2 -0
- package/chunk-cjq2bzkf.js +3 -0
- package/chunk-csrpxzn7.js +3 -0
- package/chunk-cwesdh51.js +39 -0
- package/chunk-drbd6485.js +3 -0
- package/chunk-dt594v3d.js +9 -0
- package/chunk-dwxp0gtf.js +4 -0
- package/chunk-ejdewe04.js +3 -0
- package/chunk-fkzk83xs.js +2 -0
- package/chunk-fsnc2sja.js +3 -0
- package/chunk-g18hxgdr.js +12 -0
- package/chunk-hfwy0rzt.js +10 -0
- package/chunk-hg5wmrfb.js +3 -0
- package/chunk-hvex6qjc.js +5 -0
- package/chunk-hw8xknv5.js +2 -0
- package/chunk-j91wgfzj.js +2 -0
- package/chunk-jyx4ynyp.js +3 -0
- package/chunk-jz1pavma.js +20 -0
- package/chunk-kjjrmfmt.js +2 -0
- package/chunk-kz1ja7t7.js +31 -0
- package/chunk-mh4s6m7e.js +2 -0
- package/chunk-n0g6w24y.js +3 -0
- package/chunk-nnp82zvz.js +5 -0
- package/chunk-p34keb5j.js +3 -0
- package/chunk-pcxaycc3.js +3560 -0
- package/chunk-pdwexj34.js +16 -0
- package/chunk-phpse938.js +3 -0
- package/chunk-pt14ba7d.js +15 -0
- package/chunk-q0hvv6bh.js +390 -0
- package/chunk-qd4xtknk.js +2 -0
- package/chunk-qfg0dr8f.js +2 -0
- package/chunk-qnrkh3ca.js +7 -0
- package/chunk-r1t5yhee.js +7 -0
- package/chunk-r5na5qx5.js +2 -0
- package/chunk-r7a6q57s.js +2 -0
- package/chunk-smsn4ebc.js +4 -0
- package/chunk-sqr8tx1m.js +471 -0
- package/chunk-t4twa09y.js +2 -0
- package/chunk-tjs6h6zk.js +4 -0
- package/chunk-tvbh69tm.js +3 -0
- package/chunk-tvv9yfqv.js +11 -0
- package/chunk-vbdf5psp.js +2 -0
- package/chunk-vr60qwyg.js +2 -0
- package/chunk-w509y6w6.js +2 -0
- package/chunk-w7n83ye7.js +7 -0
- package/chunk-wacjm9ww.js +3 -0
- package/chunk-xex050bc.js +3 -0
- package/chunk-y0fgbrkc.js +2 -0
- package/chunk-ysfpdxjy.js +3 -0
- package/chunk-ytsnns2n.js +2 -0
- package/chunk-zwgdbrbg.js +2 -0
- package/chunk-zz7qjanc.js +2 -0
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +57 -57
- package/web/chunk-07q4pdkf.js +1 -0
- package/web/chunk-07q4pdkf.js.br +0 -0
- package/web/chunk-07q4pdkf.js.gz +0 -0
- package/web/chunk-0s237vb2.js +2 -0
- package/web/chunk-0s237vb2.js.br +0 -0
- package/web/chunk-0s237vb2.js.gz +0 -0
- package/web/chunk-0zbmaspt.js +24 -0
- package/web/chunk-0zbmaspt.js.br +0 -0
- package/web/chunk-0zbmaspt.js.gz +0 -0
- package/web/chunk-11p8z5sv.js +8 -0
- package/web/chunk-11p8z5sv.js.br +0 -0
- package/web/chunk-11p8z5sv.js.gz +0 -0
- package/web/chunk-1axadk7j.js +2 -0
- package/web/chunk-1axadk7j.js.br +0 -0
- package/web/chunk-1axadk7j.js.gz +0 -0
- package/web/chunk-1ebz6hbk.js +1 -0
- package/web/chunk-1ebz6hbk.js.br +0 -0
- package/web/chunk-1ebz6hbk.js.gz +0 -0
- package/web/chunk-1pg22vjr.js +38 -0
- package/web/chunk-1pg22vjr.js.br +0 -0
- package/web/chunk-1pg22vjr.js.gz +0 -0
- package/web/chunk-1ys90q5s.js +1 -0
- package/web/chunk-1ys90q5s.js.br +0 -0
- package/web/chunk-1ys90q5s.js.gz +0 -0
- package/web/chunk-1zd8azrg.js +34 -0
- package/web/chunk-1zd8azrg.js.br +0 -0
- package/web/chunk-1zd8azrg.js.gz +0 -0
- package/web/chunk-22rjbwxp.js +303 -0
- package/web/chunk-22rjbwxp.js.br +0 -0
- package/web/chunk-22rjbwxp.js.gz +0 -0
- package/web/chunk-2eg9t1mz.js +2 -0
- package/web/chunk-2eg9t1mz.js.br +0 -0
- package/web/chunk-2eg9t1mz.js.gz +0 -0
- package/web/chunk-2emc5sd7.js +12 -0
- package/web/chunk-2emc5sd7.js.br +0 -0
- package/web/chunk-2emc5sd7.js.gz +0 -0
- package/web/chunk-2gj9yydt.js +2 -0
- package/web/chunk-2gj9yydt.js.br +0 -0
- package/web/chunk-2gj9yydt.js.gz +0 -0
- package/web/chunk-2jvy4y1e.js +1 -0
- package/web/chunk-2jvy4y1e.js.br +0 -0
- package/web/chunk-2jvy4y1e.js.gz +0 -0
- package/web/chunk-2kwn5gsx.js +1 -0
- package/web/chunk-2kwn5gsx.js.br +0 -0
- package/web/chunk-2kwn5gsx.js.gz +0 -0
- package/web/chunk-2r84nrwk.js +99 -0
- package/web/chunk-2r84nrwk.js.br +0 -0
- package/web/chunk-2r84nrwk.js.gz +0 -0
- package/web/chunk-3abhxhtv.js +2 -0
- package/web/chunk-3abhxhtv.js.br +0 -0
- package/web/chunk-3abhxhtv.js.gz +0 -0
- package/web/chunk-3cgxntbk.js +2 -0
- package/web/chunk-3cgxntbk.js.br +0 -0
- package/web/chunk-3cgxntbk.js.gz +0 -0
- package/web/chunk-3g3n9pc5.js +332 -0
- package/web/chunk-3g3n9pc5.js.br +0 -0
- package/web/chunk-3g3n9pc5.js.gz +0 -0
- package/web/chunk-3qmpdzq2.js +1 -0
- package/web/chunk-3qmpdzq2.js.br +0 -0
- package/web/chunk-3qmpdzq2.js.gz +0 -0
- package/web/chunk-3rxjewe5.js +2 -0
- package/web/chunk-3rxjewe5.js.br +0 -0
- package/web/chunk-3rxjewe5.js.gz +0 -0
- package/web/chunk-3vh17h7n.js +62 -0
- package/web/chunk-3vh17h7n.js.br +0 -0
- package/web/chunk-3vh17h7n.js.gz +0 -0
- package/web/chunk-49ywdzda.js +36 -0
- package/web/chunk-49ywdzda.js.br +0 -0
- package/web/chunk-49ywdzda.js.gz +0 -0
- package/web/chunk-5ch8rwjz.js +2 -0
- package/web/chunk-5ch8rwjz.js.br +0 -0
- package/web/chunk-5ch8rwjz.js.gz +0 -0
- package/web/chunk-5k1xca5m.js +324 -0
- package/web/chunk-5k1xca5m.js.br +0 -0
- package/web/chunk-5k1xca5m.js.gz +0 -0
- package/web/chunk-5kcmtrrk.js +2 -0
- package/web/chunk-5kcmtrrk.js.br +0 -0
- package/web/chunk-5kcmtrrk.js.gz +0 -0
- package/web/chunk-5t1yv276.js +1 -0
- package/web/chunk-5t1yv276.js.br +0 -0
- package/web/chunk-5t1yv276.js.gz +0 -0
- package/web/chunk-612xftnp.js +1 -0
- package/web/chunk-612xftnp.js.br +0 -0
- package/web/chunk-612xftnp.js.gz +0 -0
- package/web/chunk-6183jmyq.js +2 -0
- package/web/chunk-6183jmyq.js.br +0 -0
- package/web/chunk-6183jmyq.js.gz +0 -0
- package/web/chunk-66zp24sf.js +2 -0
- package/web/chunk-66zp24sf.js.br +0 -0
- package/web/chunk-66zp24sf.js.gz +0 -0
- package/web/chunk-67wywbgr.js +2 -0
- package/web/chunk-67wywbgr.js.br +0 -0
- package/web/chunk-67wywbgr.js.gz +0 -0
- package/web/chunk-6j0d6131.js +1 -0
- package/web/chunk-6j0d6131.js.br +0 -0
- package/web/chunk-6j0d6131.js.gz +0 -0
- package/web/chunk-6ycpdpfj.js +107 -0
- package/web/chunk-6ycpdpfj.js.br +0 -0
- package/web/chunk-6ycpdpfj.js.gz +0 -0
- package/web/chunk-79tbvvqj.js +1 -0
- package/web/chunk-79tbvvqj.js.br +0 -0
- package/web/chunk-79tbvvqj.js.gz +0 -0
- package/web/chunk-7bcksmqx.js +2 -0
- package/web/chunk-7bcksmqx.js.br +0 -0
- package/web/chunk-7bcksmqx.js.gz +0 -0
- package/web/chunk-7c2zkqgd.js +89 -0
- package/web/chunk-7c2zkqgd.js.br +0 -0
- package/web/chunk-7c2zkqgd.js.gz +0 -0
- package/web/chunk-7ed42dqv.js +1 -0
- package/web/chunk-7ed42dqv.js.br +0 -0
- package/web/chunk-7ed42dqv.js.gz +0 -0
- package/web/chunk-7mzdjjha.js +1 -0
- package/web/chunk-7mzdjjha.js.br +0 -0
- package/web/chunk-7mzdjjha.js.gz +0 -0
- package/web/chunk-7t1sb86g.js +2 -0
- package/web/chunk-7t1sb86g.js.br +0 -0
- package/web/chunk-7t1sb86g.js.gz +0 -0
- package/web/chunk-7t5kzbp1.js +1 -0
- package/web/chunk-7t5kzbp1.js.br +0 -0
- package/web/chunk-7t5kzbp1.js.gz +0 -0
- package/web/chunk-7tmzvm05.js +2 -0
- package/web/chunk-7tmzvm05.js.br +0 -0
- package/web/chunk-7tmzvm05.js.gz +0 -0
- package/web/chunk-80k4k6aw.js +7 -0
- package/web/chunk-80k4k6aw.js.br +0 -0
- package/web/chunk-80k4k6aw.js.gz +0 -0
- package/web/chunk-8tvy5xbr.js +217 -0
- package/web/chunk-8tvy5xbr.js.br +0 -0
- package/web/chunk-8tvy5xbr.js.gz +0 -0
- package/web/chunk-95jr0f0q.js +139 -0
- package/web/chunk-95jr0f0q.js.br +0 -0
- package/web/chunk-95jr0f0q.js.gz +0 -0
- package/web/chunk-9h6ayn54.js +16 -0
- package/web/chunk-9h6ayn54.js.br +0 -0
- package/web/chunk-9h6ayn54.js.gz +0 -0
- package/web/chunk-9jzpxvwa.js +106 -0
- package/web/chunk-9jzpxvwa.js.br +0 -0
- package/web/chunk-9jzpxvwa.js.gz +0 -0
- package/web/chunk-9kx2s040.js +1 -0
- package/web/chunk-9kx2s040.js.br +0 -0
- package/web/chunk-9kx2s040.js.gz +0 -0
- package/web/chunk-9mdbahpr.js +2 -0
- package/web/chunk-9mdbahpr.js.br +0 -0
- package/web/chunk-9mdbahpr.js.gz +0 -0
- package/web/chunk-9w6mjqgp.js +1 -0
- package/web/chunk-9w6mjqgp.js.br +0 -0
- package/web/chunk-9w6mjqgp.js.gz +0 -0
- package/web/chunk-9xb3j03w.js +142 -0
- package/web/chunk-9xb3j03w.js.br +0 -0
- package/web/chunk-9xb3j03w.js.gz +0 -0
- package/web/chunk-abzt3tzj.js +1 -0
- package/web/chunk-abzt3tzj.js.br +0 -0
- package/web/chunk-abzt3tzj.js.gz +0 -0
- package/web/chunk-ahebswgf.js +1 -0
- package/web/chunk-ahebswgf.js.br +0 -0
- package/web/chunk-ahebswgf.js.gz +0 -0
- package/web/chunk-ahsw5yz2.js +2 -0
- package/web/chunk-ahsw5yz2.js.br +0 -0
- package/web/chunk-ahsw5yz2.js.gz +0 -0
- package/web/chunk-b21jhnc3.js +1 -0
- package/web/chunk-b21jhnc3.js.br +2 -0
- package/web/chunk-b21jhnc3.js.gz +0 -0
- package/web/chunk-b3cn4qmw.js +1 -0
- package/web/chunk-b3cn4qmw.js.br +0 -0
- package/web/chunk-b3cn4qmw.js.gz +0 -0
- package/web/chunk-b4qxx7jx.js +2 -0
- package/web/chunk-b4qxx7jx.js.br +0 -0
- package/web/chunk-b4qxx7jx.js.gz +0 -0
- package/web/chunk-b79d9r5v.js +98 -0
- package/web/chunk-b79d9r5v.js.br +0 -0
- package/web/chunk-b79d9r5v.js.gz +0 -0
- package/web/chunk-b9x115jw.css +1 -0
- package/web/chunk-b9x115jw.css.br +0 -0
- package/web/chunk-b9x115jw.css.gz +0 -0
- package/web/chunk-bbnamv1j.js +1 -0
- package/web/chunk-bbnamv1j.js.br +2 -0
- package/web/chunk-bbnamv1j.js.gz +0 -0
- package/web/chunk-bgqfryh2.js +1 -0
- package/web/chunk-bgqfryh2.js.br +0 -0
- package/web/chunk-bgqfryh2.js.gz +0 -0
- package/web/chunk-bjrnqvf4.js +1 -0
- package/web/chunk-bjrnqvf4.js.br +0 -0
- package/web/chunk-bjrnqvf4.js.gz +0 -0
- package/web/chunk-cbh6w44y.js +1 -0
- package/web/chunk-cbh6w44y.js.br +0 -0
- package/web/chunk-cbh6w44y.js.gz +0 -0
- package/web/chunk-d0bt1ypq.js +140 -0
- package/web/chunk-d0bt1ypq.js.br +0 -0
- package/web/chunk-d0bt1ypq.js.gz +0 -0
- package/web/chunk-ddfd1c5x.js +1 -0
- package/web/chunk-ddfd1c5x.js.br +0 -0
- package/web/chunk-ddfd1c5x.js.gz +0 -0
- package/web/chunk-deqy1rfx.js +1 -0
- package/web/chunk-deqy1rfx.js.br +0 -0
- package/web/chunk-deqy1rfx.js.gz +0 -0
- package/web/chunk-dk3dpdnc.js +4 -0
- package/web/chunk-dk3dpdnc.js.br +0 -0
- package/web/chunk-dk3dpdnc.js.gz +0 -0
- package/web/chunk-dr35dsw5.js +1 -0
- package/web/chunk-dr35dsw5.js.br +0 -0
- package/web/chunk-dr35dsw5.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/chunk-dy9amqbz.js +1 -0
- package/web/chunk-dy9amqbz.js.br +0 -0
- package/web/chunk-dy9amqbz.js.gz +0 -0
- package/web/chunk-e039ekp7.js +89 -0
- package/web/chunk-e039ekp7.js.br +0 -0
- package/web/chunk-e039ekp7.js.gz +0 -0
- package/web/chunk-e2e2fdwq.js +30 -0
- package/web/chunk-e2e2fdwq.js.br +0 -0
- package/web/chunk-e2e2fdwq.js.gz +0 -0
- package/web/chunk-e5j1v42p.js +7 -0
- package/web/chunk-e5j1v42p.js.br +0 -0
- package/web/chunk-e5j1v42p.js.gz +0 -0
- package/web/chunk-ef0wf92p.js +2 -0
- package/web/chunk-ef0wf92p.js.br +0 -0
- package/web/chunk-ef0wf92p.js.gz +0 -0
- package/web/chunk-emsyqa1e.js +1 -0
- package/web/chunk-emsyqa1e.js.br +0 -0
- package/web/chunk-emsyqa1e.js.gz +0 -0
- package/web/chunk-en7n9d1p.js +41 -0
- package/web/chunk-en7n9d1p.js.br +0 -0
- package/web/chunk-en7n9d1p.js.gz +0 -0
- package/web/chunk-ez4yt1s1.js +1 -0
- package/web/chunk-ez4yt1s1.js.br +0 -0
- package/web/chunk-ez4yt1s1.js.gz +0 -0
- package/web/chunk-f620k3hk.js +1 -0
- package/web/chunk-f620k3hk.js.br +0 -0
- package/web/chunk-f620k3hk.js.gz +0 -0
- package/web/chunk-fe2hpamc.js +200 -0
- package/web/chunk-fe2hpamc.js.br +0 -0
- package/web/chunk-fe2hpamc.js.gz +0 -0
- package/web/chunk-fm7saxzr.js +1 -0
- package/web/chunk-fm7saxzr.js.br +0 -0
- package/web/chunk-fm7saxzr.js.gz +0 -0
- package/web/chunk-fz5d3ayq.js +2 -0
- package/web/chunk-fz5d3ayq.js.br +0 -0
- package/web/chunk-fz5d3ayq.js.gz +0 -0
- package/web/chunk-gb2tkfv0.js +1 -0
- package/web/chunk-gb2tkfv0.js.br +0 -0
- package/web/chunk-gb2tkfv0.js.gz +0 -0
- package/web/chunk-gc1ypgy4.js +1 -0
- package/web/chunk-gc1ypgy4.js.br +0 -0
- package/web/chunk-gc1ypgy4.js.gz +0 -0
- package/web/chunk-h23pczjh.js +40 -0
- package/web/chunk-h23pczjh.js.br +0 -0
- package/web/chunk-h23pczjh.js.gz +0 -0
- package/web/chunk-h2sttxfn.js +1 -0
- package/web/chunk-h2sttxfn.js.br +2 -0
- package/web/chunk-h2sttxfn.js.gz +0 -0
- package/web/chunk-h5m9ggsm.js +2 -0
- package/web/chunk-h5m9ggsm.js.br +0 -0
- package/web/chunk-h5m9ggsm.js.gz +0 -0
- package/web/chunk-h5zc1hw5.js +1 -0
- package/web/chunk-h5zc1hw5.js.br +0 -0
- package/web/chunk-h5zc1hw5.js.gz +0 -0
- package/web/chunk-hkg6bts9.js +1 -0
- package/web/chunk-hkg6bts9.js.br +0 -0
- package/web/chunk-hkg6bts9.js.gz +0 -0
- package/web/chunk-hncdpeer.js +120 -0
- package/web/chunk-hncdpeer.js.br +0 -0
- package/web/chunk-hncdpeer.js.gz +0 -0
- package/web/chunk-j40wechd.js +2 -0
- package/web/chunk-j40wechd.js.br +0 -0
- package/web/chunk-j40wechd.js.gz +0 -0
- package/web/chunk-jddmse74.js +169 -0
- package/web/chunk-jddmse74.js.br +0 -0
- package/web/chunk-jddmse74.js.gz +0 -0
- package/web/chunk-jdvdg38q.js +3 -0
- package/web/chunk-jdvdg38q.js.br +0 -0
- package/web/chunk-jdvdg38q.js.gz +0 -0
- package/web/chunk-jf6q93m9.js +1 -0
- package/web/chunk-jf6q93m9.js.br +0 -0
- package/web/chunk-jf6q93m9.js.gz +0 -0
- package/web/chunk-jfd1gybx.js +39 -0
- package/web/chunk-jfd1gybx.js.br +0 -0
- package/web/chunk-jfd1gybx.js.gz +0 -0
- package/web/chunk-jkgkt722.js +1 -0
- package/web/chunk-jkgkt722.js.br +0 -0
- package/web/chunk-jkgkt722.js.gz +0 -0
- package/web/chunk-k427fwgp.js +1 -0
- package/web/chunk-k427fwgp.js.br +0 -0
- package/web/chunk-k427fwgp.js.gz +0 -0
- package/web/chunk-k8pezbya.js +2 -0
- package/web/chunk-k8pezbya.js.br +3 -0
- package/web/chunk-k8pezbya.js.gz +0 -0
- package/web/chunk-k9t941fj.js +1 -0
- package/web/chunk-k9t941fj.js.br +0 -0
- package/web/chunk-k9t941fj.js.gz +0 -0
- package/web/chunk-kkzwvnft.js +1 -0
- package/web/chunk-kkzwvnft.js.br +0 -0
- package/web/chunk-kkzwvnft.js.gz +0 -0
- package/web/chunk-kpm8gp4z.js +292 -0
- package/web/chunk-kpm8gp4z.js.br +0 -0
- package/web/chunk-kpm8gp4z.js.gz +0 -0
- package/web/chunk-kqyk2an3.js +214 -0
- package/web/chunk-kqyk2an3.js.br +0 -0
- package/web/chunk-kqyk2an3.js.gz +0 -0
- package/web/chunk-m3gryxba.js +2 -0
- package/web/chunk-m3gryxba.js.br +0 -0
- package/web/chunk-m3gryxba.js.gz +0 -0
- package/web/chunk-m8h3c5x3.js +1 -0
- package/web/chunk-m8h3c5x3.js.br +0 -0
- package/web/chunk-m8h3c5x3.js.gz +0 -0
- package/web/chunk-mb7sr4tf.js +55 -0
- package/web/chunk-mb7sr4tf.js.br +0 -0
- package/web/chunk-mb7sr4tf.js.gz +0 -0
- package/web/chunk-meqcd10n.js +1 -0
- package/web/chunk-meqcd10n.js.br +0 -0
- package/web/chunk-meqcd10n.js.gz +0 -0
- package/web/chunk-msrq7vsz.js +7 -0
- package/web/chunk-msrq7vsz.js.br +0 -0
- package/web/chunk-msrq7vsz.js.gz +0 -0
- package/web/chunk-myhtb5ps.js +2 -0
- package/web/chunk-myhtb5ps.js.br +0 -0
- package/web/chunk-myhtb5ps.js.gz +0 -0
- package/web/chunk-n1n55yt8.js +84 -0
- package/web/chunk-n1n55yt8.js.br +0 -0
- package/web/chunk-n1n55yt8.js.gz +0 -0
- package/web/chunk-nmgy1mrz.js +1 -0
- package/web/chunk-nmgy1mrz.js.br +0 -0
- package/web/chunk-nmgy1mrz.js.gz +0 -0
- package/web/chunk-nmnyaawa.js +24 -0
- package/web/chunk-nmnyaawa.js.br +0 -0
- package/web/chunk-nmnyaawa.js.gz +0 -0
- package/web/chunk-nwepnbvn.js +70 -0
- package/web/chunk-nwepnbvn.js.br +0 -0
- package/web/chunk-nwepnbvn.js.gz +0 -0
- package/web/chunk-p2cmfhpz.js +2 -0
- package/web/chunk-p2cmfhpz.js.br +0 -0
- package/web/chunk-p2cmfhpz.js.gz +0 -0
- package/web/chunk-pac9nyhp.js +2 -0
- package/web/chunk-pac9nyhp.js.br +0 -0
- package/web/chunk-pac9nyhp.js.gz +0 -0
- package/web/chunk-pdt40dj7.js +1 -0
- package/web/chunk-pdt40dj7.js.br +2 -0
- package/web/chunk-pdt40dj7.js.gz +0 -0
- package/web/chunk-phs38wt7.js +2 -0
- package/web/chunk-phs38wt7.js.br +0 -0
- package/web/chunk-phs38wt7.js.gz +0 -0
- package/web/chunk-prc7b9xh.js +1 -0
- package/web/chunk-prc7b9xh.js.br +0 -0
- package/web/chunk-prc7b9xh.js.gz +0 -0
- package/web/chunk-q1e80chw.js +1 -0
- package/web/chunk-q1e80chw.js.br +2 -0
- package/web/chunk-q1e80chw.js.gz +0 -0
- package/web/chunk-q6aqg79d.js +2 -0
- package/web/chunk-q6aqg79d.js.br +0 -0
- package/web/chunk-q6aqg79d.js.gz +0 -0
- package/web/chunk-q6sv3fhe.js +2 -0
- package/web/chunk-q6sv3fhe.js.br +0 -0
- package/web/chunk-q6sv3fhe.js.gz +0 -0
- package/web/chunk-rbd2n2mr.js +1 -0
- package/web/chunk-rbd2n2mr.js.br +0 -0
- package/web/chunk-rbd2n2mr.js.gz +0 -0
- package/web/chunk-rbh0yrp6.js +1 -0
- package/web/chunk-rbh0yrp6.js.br +0 -0
- package/web/chunk-rbh0yrp6.js.gz +0 -0
- package/web/chunk-rdarpbhd.js +2 -0
- package/web/chunk-rdarpbhd.js.br +0 -0
- package/web/chunk-rdarpbhd.js.gz +0 -0
- package/web/chunk-rf93p28v.js +1 -0
- package/web/chunk-rf93p28v.js.br +0 -0
- package/web/chunk-rf93p28v.js.gz +0 -0
- package/web/chunk-rjvdk0s6.js +1 -0
- package/web/chunk-rjvdk0s6.js.br +0 -0
- package/web/chunk-rjvdk0s6.js.gz +0 -0
- package/web/chunk-rvmk483c.js +1 -0
- package/web/chunk-rvmk483c.js.br +0 -0
- package/web/chunk-rvmk483c.js.gz +0 -0
- package/web/chunk-s99vfrrz.js +1 -0
- package/web/chunk-s99vfrrz.js.br +0 -0
- package/web/chunk-s99vfrrz.js.gz +0 -0
- package/web/chunk-saem11tv.js +2 -0
- package/web/chunk-saem11tv.js.br +0 -0
- package/web/chunk-saem11tv.js.gz +0 -0
- package/web/chunk-scv8t4m6.js +1 -0
- package/web/chunk-scv8t4m6.js.br +0 -0
- package/web/chunk-scv8t4m6.js.gz +0 -0
- package/web/chunk-stsmcqxe.js +1 -0
- package/web/chunk-stsmcqxe.js.br +0 -0
- package/web/chunk-stsmcqxe.js.gz +0 -0
- package/web/chunk-svaq7f3c.js +1134 -0
- package/web/chunk-svaq7f3c.js.br +0 -0
- package/web/chunk-svaq7f3c.js.gz +0 -0
- package/web/chunk-sy099zt8.js +1 -0
- package/web/chunk-sy099zt8.js.br +0 -0
- package/web/chunk-sy099zt8.js.gz +0 -0
- package/web/chunk-thqrbjwn.js +1 -0
- package/web/chunk-thqrbjwn.js.br +2 -0
- package/web/chunk-thqrbjwn.js.gz +0 -0
- package/web/chunk-ty1m1k6b.js +1 -0
- package/web/chunk-ty1m1k6b.js.br +0 -0
- package/web/chunk-ty1m1k6b.js.gz +0 -0
- package/web/chunk-w54qcqk3.js +1 -0
- package/web/chunk-w54qcqk3.js.br +0 -0
- package/web/chunk-w54qcqk3.js.gz +0 -0
- package/web/chunk-wgf4paqc.js +1 -0
- package/web/chunk-wgf4paqc.js.br +0 -0
- package/web/chunk-wgf4paqc.js.gz +0 -0
- package/web/chunk-ww5c1dmz.js +1 -0
- package/web/chunk-ww5c1dmz.js.br +0 -0
- package/web/chunk-ww5c1dmz.js.gz +0 -0
- package/web/chunk-x5m7phbb.js +1 -0
- package/web/chunk-x5m7phbb.js.br +0 -0
- package/web/chunk-x5m7phbb.js.gz +0 -0
- package/web/chunk-x9wzj52f.js +2 -0
- package/web/chunk-x9wzj52f.js.br +0 -0
- package/web/chunk-x9wzj52f.js.gz +0 -0
- package/web/chunk-xgfam7bx.js +1 -0
- package/web/chunk-xgfam7bx.js.br +0 -0
- package/web/chunk-xgfam7bx.js.gz +0 -0
- package/web/chunk-xnn07hr4.js +21 -0
- package/web/chunk-xnn07hr4.js.br +0 -0
- package/web/chunk-xnn07hr4.js.gz +0 -0
- package/web/chunk-xreg1e03.js +78 -0
- package/web/chunk-xreg1e03.js.br +0 -0
- package/web/chunk-xreg1e03.js.gz +0 -0
- package/web/chunk-xsxd3wsv.js +4 -0
- package/web/chunk-xsxd3wsv.js.br +0 -0
- package/web/chunk-xsxd3wsv.js.gz +0 -0
- package/web/chunk-y7jebh1j.js +1 -0
- package/web/chunk-y7jebh1j.js.br +0 -0
- package/web/chunk-y7jebh1j.js.gz +0 -0
- package/web/chunk-yhn2mwnb.js +291 -0
- package/web/chunk-yhn2mwnb.js.br +0 -0
- package/web/chunk-yhn2mwnb.js.gz +0 -0
- package/web/chunk-yj85fg74.js +1 -0
- package/web/chunk-yj85fg74.js.br +0 -0
- package/web/chunk-yj85fg74.js.gz +0 -0
- package/web/chunk-yjvjzayn.js +1 -0
- package/web/chunk-yjvjzayn.js.br +0 -0
- package/web/chunk-yjvjzayn.js.gz +0 -0
- package/web/chunk-yqwvedf5.js +370 -0
- package/web/chunk-yqwvedf5.js.br +0 -0
- package/web/chunk-yqwvedf5.js.gz +0 -0
- package/web/chunk-z3tr221x.js +1 -0
- package/web/chunk-z3tr221x.js.br +0 -0
- package/web/chunk-z3tr221x.js.gz +0 -0
- package/web/chunk-z4n3tx0q.js +1 -0
- package/web/chunk-z4n3tx0q.js.br +0 -0
- package/web/chunk-z4n3tx0q.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-09tdbx7b.js +0 -3
- package/chunk-0b2brwjc.js +0 -3
- package/chunk-0rsyawz5.js +0 -8
- package/chunk-16yz5ebn.js +0 -2
- package/chunk-1kdd7xry.js +0 -2
- package/chunk-1td9hjn9.js +0 -25
- package/chunk-1xjkzzyh.js +0 -3
- package/chunk-38932kzp.js +0 -3
- package/chunk-3qxq264t.js +0 -2
- package/chunk-3s8rpc1w.js +0 -3
- package/chunk-4fbj3k59.js +0 -3
- package/chunk-5415fcz7.js +0 -10
- package/chunk-5kezbmgw.js +0 -3
- package/chunk-5m51j40e.js +0 -7
- package/chunk-5mt8xxex.js +0 -3
- package/chunk-5ph58x6w.js +0 -39
- package/chunk-6jdqe7sz.js +0 -4
- package/chunk-6ztgzx9s.js +0 -2
- package/chunk-7dzcdpdt.js +0 -2
- package/chunk-82djd5fk.js +0 -3
- package/chunk-86vhsd3y.js +0 -31
- package/chunk-8rfv9mm1.js +0 -15
- package/chunk-8tvz5ht1.js +0 -16
- package/chunk-9pjmwz01.js +0 -2
- package/chunk-9qzyn98b.js +0 -3
- package/chunk-9w1m9av8.js +0 -11
- package/chunk-9wjd9bxm.js +0 -2
- package/chunk-a3fpx924.js +0 -3
- package/chunk-b49005n2.js +0 -471
- package/chunk-bdz2561d.js +0 -2
- package/chunk-bkvhwgeb.js +0 -3
- package/chunk-bp9tfav3.js +0 -2
- package/chunk-cc9htxzx.js +0 -3557
- package/chunk-cr0tqn6j.js +0 -3
- package/chunk-cv5kdnsw.js +0 -3
- package/chunk-d79s1s4t.js +0 -25
- package/chunk-e0ytnnwt.js +0 -3
- package/chunk-e2m8ap8f.js +0 -3
- package/chunk-ec6bzt7w.js +0 -20
- package/chunk-enmrpjpt.js +0 -3
- package/chunk-eq54cmsa.js +0 -4
- package/chunk-fj56fznw.js +0 -3
- package/chunk-g54nd4fd.js +0 -5
- package/chunk-g8p5c4vx.js +0 -7
- package/chunk-g9bemxpt.js +0 -3
- package/chunk-gs5aebwh.js +0 -2
- package/chunk-hk5p2eee.js +0 -12
- package/chunk-jerp4pj5.js +0 -2
- package/chunk-jsvqp20s.js +0 -2
- package/chunk-k9x1r69s.js +0 -18
- package/chunk-kb526065.js +0 -2
- package/chunk-kpw1qa2n.js +0 -11
- package/chunk-mbvy2t23.js +0 -2
- package/chunk-mmnsdje8.js +0 -390
- package/chunk-nffwakxq.js +0 -2
- package/chunk-nfj8sj53.js +0 -2
- package/chunk-pzwaz2ew.js +0 -5
- package/chunk-qtgc74er.js +0 -5
- package/chunk-qtrd33pp.js +0 -7
- package/chunk-rbk6jxcr.js +0 -2
- package/chunk-rpbxbb92.js +0 -10
- package/chunk-rx812nrp.js +0 -3
- package/chunk-scy1p7x2.js +0 -9
- package/chunk-sfgw0vmt.js +0 -2
- package/chunk-t3mq64c8.js +0 -3
- package/chunk-tmefdwxy.js +0 -2
- package/chunk-tvg54x0x.js +0 -2
- package/chunk-v878x8zr.js +0 -7
- package/chunk-v89f2k9b.js +0 -2
- package/chunk-vhe16b65.js +0 -3
- package/chunk-vzrmdaba.js +0 -2
- package/chunk-w3skxmvx.js +0 -3
- package/chunk-w4kasz4j.js +0 -12
- package/chunk-w4zkgn1c.js +0 -4
- package/chunk-we5emq6f.js +0 -2
- package/chunk-x0dcabw6.js +0 -3
- package/chunk-xtj7b70y.js +0 -5
- package/chunk-xwew53k7.js +0 -59
- package/chunk-xyhr89y5.js +0 -3
- package/chunk-yce46csn.js +0 -2
- package/chunk-yetcb1z9.js +0 -3
- package/chunk-ypmpf75h.js +0 -2
- package/chunk-zkjnt298.js +0 -3
- package/chunk-zz48zvk5.js +0 -2
- package/web/chunk-04c54f1s.js +0 -1
- package/web/chunk-04c54f1s.js.br +0 -2
- package/web/chunk-04c54f1s.js.gz +0 -0
- package/web/chunk-04m1cb8w.js +0 -1
- package/web/chunk-04m1cb8w.js.br +0 -0
- package/web/chunk-04m1cb8w.js.gz +0 -0
- package/web/chunk-08z6mkgz.js +0 -40
- package/web/chunk-08z6mkgz.js.br +0 -0
- package/web/chunk-08z6mkgz.js.gz +0 -0
- package/web/chunk-0g9m3rpw.js +0 -55
- package/web/chunk-0g9m3rpw.js.br +0 -0
- package/web/chunk-0g9m3rpw.js.gz +0 -0
- package/web/chunk-0jccrdw3.js +0 -2
- package/web/chunk-0jccrdw3.js.br +0 -0
- package/web/chunk-0jccrdw3.js.gz +0 -0
- package/web/chunk-0rvx1z2b.js +0 -1
- package/web/chunk-0rvx1z2b.js.br +0 -0
- package/web/chunk-0rvx1z2b.js.gz +0 -0
- package/web/chunk-0vweazdh.js +0 -12
- package/web/chunk-0vweazdh.js.br +0 -0
- package/web/chunk-0vweazdh.js.gz +0 -0
- package/web/chunk-0wqmwnd8.js +0 -2
- package/web/chunk-0wqmwnd8.js.br +0 -0
- package/web/chunk-0wqmwnd8.js.gz +0 -0
- package/web/chunk-0z10aqp1.js +0 -2
- package/web/chunk-0z10aqp1.js.br +0 -0
- package/web/chunk-0z10aqp1.js.gz +0 -0
- package/web/chunk-12vcrj7y.js +0 -1
- package/web/chunk-12vcrj7y.js.br +0 -0
- package/web/chunk-12vcrj7y.js.gz +0 -0
- package/web/chunk-1vtf555r.js +0 -1
- package/web/chunk-1vtf555r.js.br +0 -0
- package/web/chunk-1vtf555r.js.gz +0 -0
- package/web/chunk-29z0ft67.js +0 -370
- package/web/chunk-29z0ft67.js.br +0 -0
- package/web/chunk-29z0ft67.js.gz +0 -0
- package/web/chunk-2q3m4btb.js +0 -1
- package/web/chunk-2q3m4btb.js.br +0 -0
- package/web/chunk-2q3m4btb.js.gz +0 -0
- package/web/chunk-2s6fhjjc.js +0 -1134
- package/web/chunk-2s6fhjjc.js.br +0 -0
- package/web/chunk-2s6fhjjc.js.gz +0 -0
- package/web/chunk-2vdx4ykn.js +0 -139
- package/web/chunk-2vdx4ykn.js.br +0 -0
- package/web/chunk-2vdx4ykn.js.gz +0 -0
- package/web/chunk-2zgqe8r7.js +0 -1
- package/web/chunk-2zgqe8r7.js.br +0 -0
- package/web/chunk-2zgqe8r7.js.gz +0 -0
- package/web/chunk-366a11ec.js +0 -1
- package/web/chunk-366a11ec.js.br +0 -0
- package/web/chunk-366a11ec.js.gz +0 -0
- package/web/chunk-3kqpmg83.js +0 -78
- package/web/chunk-3kqpmg83.js.br +0 -0
- package/web/chunk-3kqpmg83.js.gz +0 -0
- package/web/chunk-3rmqxna0.js +0 -1
- package/web/chunk-3rmqxna0.js.br +0 -0
- package/web/chunk-3rmqxna0.js.gz +0 -0
- package/web/chunk-3xmv2349.js +0 -21
- package/web/chunk-3xmv2349.js.br +0 -0
- package/web/chunk-3xmv2349.js.gz +0 -0
- package/web/chunk-46cdys11.js +0 -34
- package/web/chunk-46cdys11.js.br +0 -0
- package/web/chunk-46cdys11.js.gz +0 -0
- package/web/chunk-46mw23f0.js +0 -8
- package/web/chunk-46mw23f0.js.br +0 -0
- package/web/chunk-46mw23f0.js.gz +0 -0
- package/web/chunk-4mypk63p.js +0 -2
- package/web/chunk-4mypk63p.js.br +0 -0
- package/web/chunk-4mypk63p.js.gz +0 -0
- package/web/chunk-4r0dvjrr.js +0 -2
- package/web/chunk-4r0dvjrr.js.br +0 -0
- package/web/chunk-4r0dvjrr.js.gz +0 -0
- package/web/chunk-4v6m84pg.js +0 -3
- package/web/chunk-4v6m84pg.js.br +0 -0
- package/web/chunk-4v6m84pg.js.gz +0 -0
- package/web/chunk-4wd9r73y.js +0 -1
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-4ye31s2w.js +0 -1
- package/web/chunk-4ye31s2w.js.br +0 -4
- package/web/chunk-4ye31s2w.js.gz +0 -0
- package/web/chunk-52tt9qt4.js +0 -2
- package/web/chunk-52tt9qt4.js.br +0 -0
- package/web/chunk-52tt9qt4.js.gz +0 -0
- package/web/chunk-5cp4n5ck.js +0 -2
- package/web/chunk-5cp4n5ck.js.br +0 -0
- package/web/chunk-5cp4n5ck.js.gz +0 -0
- package/web/chunk-5kavsn22.js +0 -4
- package/web/chunk-5kavsn22.js.br +0 -0
- package/web/chunk-5kavsn22.js.gz +0 -0
- package/web/chunk-5q2h4tg8.js +0 -2
- package/web/chunk-5q2h4tg8.js.br +0 -4
- package/web/chunk-5q2h4tg8.js.gz +0 -0
- package/web/chunk-5tbk6dx6.js +0 -292
- package/web/chunk-5tbk6dx6.js.br +0 -0
- package/web/chunk-5tbk6dx6.js.gz +0 -0
- package/web/chunk-5yb0sm1r.js +0 -1
- package/web/chunk-5yb0sm1r.js.br +0 -0
- package/web/chunk-5yb0sm1r.js.gz +0 -0
- package/web/chunk-5yz46tjw.js +0 -2
- package/web/chunk-5yz46tjw.js.br +0 -0
- package/web/chunk-5yz46tjw.js.gz +0 -0
- package/web/chunk-619a8t38.js +0 -1
- package/web/chunk-619a8t38.js.br +0 -0
- package/web/chunk-619a8t38.js.gz +0 -0
- package/web/chunk-6areryyn.js +0 -2
- package/web/chunk-6areryyn.js.br +0 -0
- package/web/chunk-6areryyn.js.gz +0 -0
- package/web/chunk-6ms78sx5.js +0 -1
- package/web/chunk-6ms78sx5.js.br +0 -0
- package/web/chunk-6ms78sx5.js.gz +0 -0
- package/web/chunk-6ts9mtye.js +0 -2
- package/web/chunk-6ts9mtye.js.br +0 -0
- package/web/chunk-6ts9mtye.js.gz +0 -0
- package/web/chunk-79whhay2.js +0 -2
- package/web/chunk-79whhay2.js.br +0 -0
- package/web/chunk-79whhay2.js.gz +0 -0
- package/web/chunk-7cf1kk45.js +0 -1
- package/web/chunk-7cf1kk45.js.br +0 -2
- package/web/chunk-7cf1kk45.js.gz +0 -0
- package/web/chunk-7n1abr86.js +0 -1
- package/web/chunk-7n1abr86.js.br +0 -0
- package/web/chunk-7n1abr86.js.gz +0 -0
- package/web/chunk-7qxfx983.js +0 -1
- package/web/chunk-7qxfx983.js.br +0 -0
- package/web/chunk-7qxfx983.js.gz +0 -0
- package/web/chunk-89crtpnw.js +0 -1
- package/web/chunk-89crtpnw.js.br +0 -0
- package/web/chunk-89crtpnw.js.gz +0 -0
- package/web/chunk-8g239029.js +0 -1
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/chunk-91k30q92.js +0 -1
- package/web/chunk-91k30q92.js.br +0 -0
- package/web/chunk-91k30q92.js.gz +0 -0
- package/web/chunk-91nyvkrb.js +0 -324
- package/web/chunk-91nyvkrb.js.br +0 -0
- package/web/chunk-91nyvkrb.js.gz +0 -0
- package/web/chunk-9mbr6znb.js +0 -1
- package/web/chunk-9mbr6znb.js.br +0 -0
- package/web/chunk-9mbr6znb.js.gz +0 -0
- package/web/chunk-9mvw6a5v.js +0 -7
- package/web/chunk-9mvw6a5v.js.br +0 -0
- package/web/chunk-9mvw6a5v.js.gz +0 -0
- package/web/chunk-9r7nbre7.js +0 -2
- package/web/chunk-9r7nbre7.js.br +0 -0
- package/web/chunk-9r7nbre7.js.gz +0 -0
- package/web/chunk-9y9nwaqj.js +0 -1
- package/web/chunk-9y9nwaqj.js.br +0 -0
- package/web/chunk-9y9nwaqj.js.gz +0 -0
- package/web/chunk-a6hdn8tb.js +0 -169
- package/web/chunk-a6hdn8tb.js.br +0 -0
- package/web/chunk-a6hdn8tb.js.gz +0 -0
- package/web/chunk-ad6x47yy.js +0 -1
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-ar6m9fza.js +0 -7
- package/web/chunk-ar6m9fza.js.br +0 -0
- package/web/chunk-ar6m9fza.js.gz +0 -0
- package/web/chunk-ayqakyyq.js +0 -1
- package/web/chunk-ayqakyyq.js.br +0 -0
- package/web/chunk-ayqakyyq.js.gz +0 -0
- package/web/chunk-cc6hn5xv.js +0 -2
- package/web/chunk-cc6hn5xv.js.br +0 -0
- package/web/chunk-cc6hn5xv.js.gz +0 -0
- package/web/chunk-ccymg1hp.js +0 -1
- package/web/chunk-ccymg1hp.js.br +0 -0
- package/web/chunk-ccymg1hp.js.gz +0 -0
- package/web/chunk-cg9fe42b.js +0 -89
- package/web/chunk-cg9fe42b.js.br +0 -0
- package/web/chunk-cg9fe42b.js.gz +0 -0
- package/web/chunk-cmcgmf94.js +0 -1
- package/web/chunk-cmcgmf94.js.br +0 -0
- package/web/chunk-cmcgmf94.js.gz +0 -0
- package/web/chunk-cnbbvd6n.js +0 -1
- package/web/chunk-cnbbvd6n.js.br +0 -0
- package/web/chunk-cnbbvd6n.js.gz +0 -0
- package/web/chunk-cxp2nbtc.js +0 -106
- package/web/chunk-cxp2nbtc.js.br +0 -0
- package/web/chunk-cxp2nbtc.js.gz +0 -0
- package/web/chunk-d18r4m14.js +0 -141
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dj2b64aj.js +0 -1
- package/web/chunk-dj2b64aj.js.br +0 -0
- package/web/chunk-dj2b64aj.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js +0 -1
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-dsga6rp3.js +0 -1
- package/web/chunk-dsga6rp3.js.br +0 -0
- package/web/chunk-dsga6rp3.js.gz +0 -0
- package/web/chunk-e65y60v1.js +0 -2
- package/web/chunk-e65y60v1.js.br +0 -0
- package/web/chunk-e65y60v1.js.gz +0 -0
- package/web/chunk-ed8qqn45.js +0 -2
- package/web/chunk-ed8qqn45.js.br +0 -0
- package/web/chunk-ed8qqn45.js.gz +0 -0
- package/web/chunk-ef1h0tt7.js +0 -2
- package/web/chunk-ef1h0tt7.js.br +0 -0
- package/web/chunk-ef1h0tt7.js.gz +0 -0
- package/web/chunk-ek6q6a08.js +0 -1
- package/web/chunk-ek6q6a08.js.br +0 -2
- package/web/chunk-ek6q6a08.js.gz +0 -0
- package/web/chunk-et1nm6h1.js +0 -142
- package/web/chunk-et1nm6h1.js.br +0 -0
- package/web/chunk-et1nm6h1.js.gz +0 -0
- package/web/chunk-f1016wh6.js +0 -1
- package/web/chunk-f1016wh6.js.br +0 -0
- package/web/chunk-f1016wh6.js.gz +0 -0
- package/web/chunk-f42mwg61.js +0 -1
- package/web/chunk-f42mwg61.js.br +0 -0
- package/web/chunk-f42mwg61.js.gz +0 -0
- package/web/chunk-fk35d3bz.js +0 -332
- package/web/chunk-fk35d3bz.js.br +0 -0
- package/web/chunk-fk35d3bz.js.gz +0 -0
- package/web/chunk-fpwztdhn.js +0 -39
- package/web/chunk-fpwztdhn.js.br +0 -0
- package/web/chunk-fpwztdhn.js.gz +0 -0
- package/web/chunk-g30nqfka.js +0 -2
- package/web/chunk-g30nqfka.js.br +0 -0
- package/web/chunk-g30nqfka.js.gz +0 -0
- package/web/chunk-g3vbtxgy.js +0 -2
- package/web/chunk-g3vbtxgy.js.br +0 -0
- package/web/chunk-g3vbtxgy.js.gz +0 -0
- package/web/chunk-gbwy4pfg.css +0 -1
- package/web/chunk-gbwy4pfg.css.br +0 -0
- package/web/chunk-gbwy4pfg.css.gz +0 -0
- package/web/chunk-gepgx19m.js +0 -200
- package/web/chunk-gepgx19m.js.br +0 -0
- package/web/chunk-gepgx19m.js.gz +0 -0
- package/web/chunk-grz69q28.js +0 -36
- package/web/chunk-grz69q28.js.br +0 -0
- package/web/chunk-grz69q28.js.gz +0 -0
- package/web/chunk-gt62acsh.js +0 -2
- package/web/chunk-gt62acsh.js.br +0 -0
- package/web/chunk-gt62acsh.js.gz +0 -0
- package/web/chunk-h28xrvmg.js +0 -41
- package/web/chunk-h28xrvmg.js.br +0 -0
- package/web/chunk-h28xrvmg.js.gz +0 -0
- package/web/chunk-h80ypke7.js +0 -2
- package/web/chunk-h80ypke7.js.br +0 -0
- package/web/chunk-h80ypke7.js.gz +0 -0
- package/web/chunk-hj067dfg.js +0 -1
- package/web/chunk-hj067dfg.js.br +0 -2
- package/web/chunk-hj067dfg.js.gz +0 -0
- package/web/chunk-hp167dbv.js +0 -1
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/chunk-j4942vkb.js +0 -1
- package/web/chunk-j4942vkb.js.br +0 -0
- package/web/chunk-j4942vkb.js.gz +0 -0
- package/web/chunk-k1cd6e24.js +0 -1
- package/web/chunk-k1cd6e24.js.br +0 -0
- package/web/chunk-k1cd6e24.js.gz +0 -0
- package/web/chunk-k1d0y72z.js +0 -2
- package/web/chunk-k1d0y72z.js.br +0 -0
- package/web/chunk-k1d0y72z.js.gz +0 -0
- package/web/chunk-k9248573.js +0 -1
- package/web/chunk-k9248573.js.br +0 -0
- package/web/chunk-k9248573.js.gz +0 -0
- package/web/chunk-kh0xyffx.js +0 -1
- package/web/chunk-kh0xyffx.js.br +0 -0
- package/web/chunk-kh0xyffx.js.gz +0 -0
- package/web/chunk-kqgn9dsa.js +0 -7
- package/web/chunk-kqgn9dsa.js.br +0 -0
- package/web/chunk-kqgn9dsa.js.gz +0 -0
- package/web/chunk-kqngpw5m.js +0 -1
- package/web/chunk-kqngpw5m.js.br +0 -0
- package/web/chunk-kqngpw5m.js.gz +0 -0
- package/web/chunk-ktvxgxsd.js +0 -2
- package/web/chunk-ktvxgxsd.js.br +0 -0
- package/web/chunk-ktvxgxsd.js.gz +0 -0
- package/web/chunk-kzj105r1.js +0 -217
- package/web/chunk-kzj105r1.js.br +0 -0
- package/web/chunk-kzj105r1.js.gz +0 -0
- package/web/chunk-m14v2en1.js +0 -1
- package/web/chunk-m14v2en1.js.br +0 -0
- package/web/chunk-m14v2en1.js.gz +0 -0
- package/web/chunk-m34et8g4.js +0 -2
- package/web/chunk-m34et8g4.js.br +0 -0
- package/web/chunk-m34et8g4.js.gz +0 -0
- package/web/chunk-md1f6gmk.js +0 -1
- package/web/chunk-md1f6gmk.js.br +0 -0
- package/web/chunk-md1f6gmk.js.gz +0 -0
- package/web/chunk-n05xf20n.js +0 -98
- package/web/chunk-n05xf20n.js.br +0 -0
- package/web/chunk-n05xf20n.js.gz +0 -0
- package/web/chunk-n2k1gd6n.js +0 -84
- package/web/chunk-n2k1gd6n.js.br +0 -0
- package/web/chunk-n2k1gd6n.js.gz +0 -0
- package/web/chunk-n419cees.js +0 -1
- package/web/chunk-n419cees.js.br +0 -0
- package/web/chunk-n419cees.js.gz +0 -0
- package/web/chunk-n45fgfyt.js +0 -1
- package/web/chunk-n45fgfyt.js.br +0 -2
- package/web/chunk-n45fgfyt.js.gz +0 -0
- package/web/chunk-n5v71fas.js +0 -2
- package/web/chunk-n5v71fas.js.br +0 -0
- package/web/chunk-n5v71fas.js.gz +0 -0
- package/web/chunk-nm8yza3v.js +0 -140
- package/web/chunk-nm8yza3v.js.br +0 -0
- package/web/chunk-nm8yza3v.js.gz +0 -0
- package/web/chunk-nzey7cpv.js +0 -1
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/chunk-p76f6cf4.js +0 -2
- package/web/chunk-p76f6cf4.js.br +0 -0
- package/web/chunk-p76f6cf4.js.gz +0 -0
- package/web/chunk-pbg9rdwv.js +0 -1
- package/web/chunk-pbg9rdwv.js.br +0 -2
- package/web/chunk-pbg9rdwv.js.gz +0 -0
- package/web/chunk-qgtqwmkb.js +0 -1
- package/web/chunk-qgtqwmkb.js.br +0 -2
- package/web/chunk-qgtqwmkb.js.gz +0 -0
- package/web/chunk-qj9nd038.js +0 -1
- package/web/chunk-qj9nd038.js.br +0 -0
- package/web/chunk-qj9nd038.js.gz +0 -0
- package/web/chunk-qjaex9c0.js +0 -1
- package/web/chunk-qjaex9c0.js.br +0 -2
- package/web/chunk-qjaex9c0.js.gz +0 -0
- package/web/chunk-qq79vsm8.js +0 -70
- package/web/chunk-qq79vsm8.js.br +0 -0
- package/web/chunk-qq79vsm8.js.gz +0 -0
- package/web/chunk-qs5wnwd6.js +0 -30
- package/web/chunk-qs5wnwd6.js.br +0 -0
- package/web/chunk-qs5wnwd6.js.gz +0 -0
- package/web/chunk-qygjhm63.js +0 -1
- package/web/chunk-qygjhm63.js.br +0 -0
- package/web/chunk-qygjhm63.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js +0 -1
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r381n550.js +0 -1
- package/web/chunk-r381n550.js.br +0 -0
- package/web/chunk-r381n550.js.gz +0 -0
- package/web/chunk-r48vazdm.js +0 -291
- package/web/chunk-r48vazdm.js.br +0 -0
- package/web/chunk-r48vazdm.js.gz +0 -0
- package/web/chunk-r55seq42.js +0 -24
- package/web/chunk-r55seq42.js.br +0 -0
- package/web/chunk-r55seq42.js.gz +0 -0
- package/web/chunk-r5eakmw6.js +0 -1
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-r79zekav.js +0 -1
- package/web/chunk-r79zekav.js.br +0 -0
- package/web/chunk-r79zekav.js.gz +0 -0
- package/web/chunk-r8qyvcks.js +0 -89
- package/web/chunk-r8qyvcks.js.br +0 -0
- package/web/chunk-r8qyvcks.js.gz +0 -0
- package/web/chunk-r9dt0730.js +0 -1
- package/web/chunk-r9dt0730.js.br +0 -0
- package/web/chunk-r9dt0730.js.gz +0 -0
- package/web/chunk-rfsg5rke.js +0 -1
- package/web/chunk-rfsg5rke.js.br +0 -2
- package/web/chunk-rfsg5rke.js.gz +0 -0
- package/web/chunk-rpjzwknn.js +0 -1
- package/web/chunk-rpjzwknn.js.br +0 -0
- package/web/chunk-rpjzwknn.js.gz +0 -0
- package/web/chunk-s7h50avx.js +0 -2
- package/web/chunk-s7h50avx.js.br +0 -0
- package/web/chunk-s7h50avx.js.gz +0 -0
- package/web/chunk-sk3065js.js +0 -62
- package/web/chunk-sk3065js.js.br +0 -0
- package/web/chunk-sk3065js.js.gz +0 -0
- package/web/chunk-sk47kk5j.js +0 -1
- package/web/chunk-sk47kk5j.js.br +0 -0
- package/web/chunk-sk47kk5j.js.gz +0 -0
- package/web/chunk-smywa1zw.js +0 -2
- package/web/chunk-smywa1zw.js.br +0 -0
- package/web/chunk-smywa1zw.js.gz +0 -0
- package/web/chunk-t6agpn2z.js +0 -1
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/chunk-t9heac9a.js +0 -2
- package/web/chunk-t9heac9a.js.br +0 -0
- package/web/chunk-t9heac9a.js.gz +0 -0
- package/web/chunk-trssyq9a.js +0 -1
- package/web/chunk-trssyq9a.js.br +0 -0
- package/web/chunk-trssyq9a.js.gz +0 -0
- package/web/chunk-v329f8df.js +0 -24
- package/web/chunk-v329f8df.js.br +0 -0
- package/web/chunk-v329f8df.js.gz +0 -0
- package/web/chunk-vb2feptd.js +0 -2
- package/web/chunk-vb2feptd.js.br +0 -0
- package/web/chunk-vb2feptd.js.gz +0 -0
- package/web/chunk-vff33vj3.js +0 -1
- package/web/chunk-vff33vj3.js.br +0 -2
- package/web/chunk-vff33vj3.js.gz +0 -0
- package/web/chunk-w9adyaze.js +0 -16
- package/web/chunk-w9adyaze.js.br +0 -0
- package/web/chunk-w9adyaze.js.gz +0 -0
- package/web/chunk-wgc8z5jv.js +0 -1
- package/web/chunk-wgc8z5jv.js.br +0 -0
- package/web/chunk-wgc8z5jv.js.gz +0 -0
- package/web/chunk-wvdk3w03.js +0 -2
- package/web/chunk-wvdk3w03.js.br +0 -0
- package/web/chunk-wvdk3w03.js.gz +0 -0
- package/web/chunk-wvvrdqgb.js +0 -1
- package/web/chunk-wvvrdqgb.js.br +0 -2
- package/web/chunk-wvvrdqgb.js.gz +0 -0
- package/web/chunk-wxmaw4ht.js +0 -1
- package/web/chunk-wxmaw4ht.js.br +0 -0
- package/web/chunk-wxmaw4ht.js.gz +0 -0
- package/web/chunk-x19jdqnt.js +0 -38
- package/web/chunk-x19jdqnt.js.br +0 -0
- package/web/chunk-x19jdqnt.js.gz +0 -0
- package/web/chunk-x4153gx3.js +0 -214
- package/web/chunk-x4153gx3.js.br +0 -0
- package/web/chunk-x4153gx3.js.gz +0 -0
- package/web/chunk-x7wmb5d3.js +0 -4
- package/web/chunk-x7wmb5d3.js.br +0 -0
- package/web/chunk-x7wmb5d3.js.gz +0 -0
- package/web/chunk-xp2zpmpp.js +0 -303
- package/web/chunk-xp2zpmpp.js.br +0 -0
- package/web/chunk-xp2zpmpp.js.gz +0 -0
- package/web/chunk-xp9tdb5t.js +0 -1
- package/web/chunk-xp9tdb5t.js.br +0 -2
- package/web/chunk-xp9tdb5t.js.gz +0 -0
- package/web/chunk-y09v3sz7.js +0 -1
- package/web/chunk-y09v3sz7.js.br +0 -0
- package/web/chunk-y09v3sz7.js.gz +0 -0
- package/web/chunk-y10hsdq4.js +0 -1
- package/web/chunk-y10hsdq4.js.br +0 -0
- package/web/chunk-y10hsdq4.js.gz +0 -0
- package/web/chunk-ywmsxe5z.js +0 -99
- package/web/chunk-ywmsxe5z.js.br +0 -0
- package/web/chunk-ywmsxe5z.js.gz +0 -0
- package/web/chunk-yzyxa823.js +0 -2
- package/web/chunk-yzyxa823.js.br +0 -0
- package/web/chunk-yzyxa823.js.gz +0 -0
- package/web/chunk-z09emmrb.js +0 -1
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-zwx48gb8.js +0 -120
- package/web/chunk-zwx48gb8.js.br +0 -0
- package/web/chunk-zwx48gb8.js.gz +0 -0
package/web/chunk-xp2zpmpp.js
DELETED
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import{Ze,Xe,C}from"./chunk-2s6fhjjc.js";var vo=Xe(function(Sh,Th){(function(r,e){typeof Sh=="object"&&typeof Th<"u"?Th.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Sh,function(){var r=1000,e=60000,i=3600000,s="millisecond",o="second",n="minute",c="hour",l="day",p="week",y="month",d="quarter",x="year",b="date",_="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ct){var rt=["th","st","nd","rd"],ot=Ct%100;return"["+Ct+(rt[(ot-20)%10]||rt[ot]||rt[0])+"]"}},W=function(Ct,rt,ot){var gt=String(Ct);return!gt||gt.length>=rt?Ct:""+Array(rt+1-gt.length).join(ot)+Ct},H={s:W,z:function(Ct){var rt=-Ct.utcOffset(),ot=Math.abs(rt),gt=Math.floor(ot/60),et=ot%60;return(rt<=0?"+":"-")+W(gt,2,"0")+":"+W(et,2,"0")},m:function Ct(rt,ot){if(rt.date()<ot.date())return-Ct(ot,rt);var gt=12*(ot.year()-rt.year())+(ot.month()-rt.month()),et=rt.clone().add(gt,y),wt=ot-et<0,At=rt.clone().add(gt+(wt?-1:1),y);return+(-(gt+(ot-et)/(wt?et-At:At-et))||0)},a:function(Ct){return Ct<0?Math.ceil(Ct)||0:Math.floor(Ct)},p:function(Ct){return{M:y,y:x,w:p,d:l,D:b,h:c,m:n,s:o,ms:s,Q:d}[Ct]||String(Ct||"").toLowerCase().replace(/s$/,"")},u:function(Ct){return Ct===void 0}},K="en",J={};J[K]=q;var tt="$isDayjsObject",nt=function(Ct){return Ct instanceof Ft||!(!Ct||!Ct[tt])},st=function Ct(rt,ot,gt){var et;if(!rt)return K;if(typeof rt=="string"){var wt=rt.toLowerCase();J[wt]&&(et=wt),ot&&(J[wt]=ot,et=wt);var At=rt.split("-");if(!et&&At.length>1)return Ct(At[0])}else{var Vt=rt.name;J[Vt]=rt,et=Vt}return!gt&&et&&(K=et),et||!gt&&K},ft=function(Ct,rt){if(nt(Ct))return Ct.clone();var ot=typeof rt=="object"?rt:{};return ot.date=Ct,ot.args=arguments,new Ft(ot)},xt=H;xt.l=st,xt.i=nt,xt.w=function(Ct,rt){return ft(Ct,{locale:rt.$L,utc:rt.$u,x:rt.$x,$offset:rt.$offset})};var Ft=function(){function Ct(ot){this.$L=st(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[tt]=!0}var rt=Ct.prototype;return rt.parse=function(ot){this.$d=function(gt){var{date:et,utc:wt}=gt;if(et===null)return new Date(NaN);if(xt.u(et))return new Date;if(et instanceof Date)return new Date(et);if(typeof et=="string"&&!/Z$/i.test(et)){var At=et.match(v);if(At){var Vt=At[2]-1||0,Xt=(At[7]||"0").substring(0,3);return wt?new Date(Date.UTC(At[1],Vt,At[3]||1,At[4]||0,At[5]||0,At[6]||0,Xt)):new Date(At[1],Vt,At[3]||1,At[4]||0,At[5]||0,At[6]||0,Xt)}}return new Date(et)}(ot),this.init()},rt.init=function(){var ot=this.$d;this.$y=ot.getFullYear(),this.$M=ot.getMonth(),this.$D=ot.getDate(),this.$W=ot.getDay(),this.$H=ot.getHours(),this.$m=ot.getMinutes(),this.$s=ot.getSeconds(),this.$ms=ot.getMilliseconds()},rt.$utils=function(){return xt},rt.isValid=function(){return this.$d.toString()!==_},rt.isSame=function(ot,gt){var et=ft(ot);return this.startOf(gt)<=et&&et<=this.endOf(gt)},rt.isAfter=function(ot,gt){return ft(ot)<this.startOf(gt)},rt.isBefore=function(ot,gt){return this.endOf(gt)<ft(ot)},rt.$g=function(ot,gt,et){return xt.u(ot)?this[gt]:this.set(et,ot)},rt.unix=function(){return Math.floor(this.valueOf()/1000)},rt.valueOf=function(){return this.$d.getTime()},rt.startOf=function(ot,gt){var et=this,wt=!!xt.u(gt)||gt,At=xt.p(ot),Vt=function(re,ae){var ne=xt.w(et.$u?Date.UTC(et.$y,ae,re):new Date(et.$y,ae,re),et);return wt?ne:ne.endOf(l)},Xt=function(re,ae){return xt.w(et.toDate()[re].apply(et.toDate("s"),(wt?[0,0,0,0]:[23,59,59,999]).slice(ae)),et)},se=this.$W,oe=this.$M,de=this.$D,ge="set"+(this.$u?"UTC":"");switch(At){case x:return wt?Vt(1,0):Vt(31,11);case y:return wt?Vt(1,oe):Vt(0,oe+1);case p:var he=this.$locale().weekStart||0,Gt=(se<he?se+7:se)-he;return Vt(wt?de-Gt:de+(6-Gt),oe);case l:case b:return Xt(ge+"Hours",0);case c:return Xt(ge+"Minutes",1);case n:return Xt(ge+"Seconds",2);case o:return Xt(ge+"Milliseconds",3);default:return this.clone()}},rt.endOf=function(ot){return this.startOf(ot,!1)},rt.$set=function(ot,gt){var et,wt=xt.p(ot),At="set"+(this.$u?"UTC":""),Vt=(et={},et[l]=At+"Date",et[b]=At+"Date",et[y]=At+"Month",et[x]=At+"FullYear",et[c]=At+"Hours",et[n]=At+"Minutes",et[o]=At+"Seconds",et[s]=At+"Milliseconds",et)[wt],Xt=wt===l?this.$D+(gt-this.$W):gt;if(wt===y||wt===x){var se=this.clone().set(b,1);se.$d[Vt](Xt),se.init(),this.$d=se.set(b,Math.min(this.$D,se.daysInMonth())).$d}else Vt&&this.$d[Vt](Xt);return this.init(),this},rt.set=function(ot,gt){return this.clone().$set(ot,gt)},rt.get=function(ot){return this[xt.p(ot)]()},rt.add=function(ot,gt){var et,wt=this;ot=Number(ot);var At=xt.p(gt),Vt=function(oe){var de=ft(wt);return xt.w(de.date(de.date()+Math.round(oe*ot)),wt)};if(At===y)return this.set(y,this.$M+ot);if(At===x)return this.set(x,this.$y+ot);if(At===l)return Vt(1);if(At===p)return Vt(7);var Xt=(et={},et[n]=e,et[c]=i,et[o]=r,et)[At]||1,se=this.$d.getTime()+ot*Xt;return xt.w(se,this)},rt.subtract=function(ot,gt){return this.add(-1*ot,gt)},rt.format=function(ot){var gt=this,et=this.$locale();if(!this.isValid())return et.invalidDate||_;var wt=ot||"YYYY-MM-DDTHH:mm:ssZ",At=xt.z(this),Vt=this.$H,Xt=this.$m,se=this.$M,{weekdays:oe,months:de,meridiem:ge}=et,he=function(ae,ne,Le,ve){return ae&&(ae[ne]||ae(gt,wt))||Le[ne].slice(0,ve)},Gt=function(ae){return xt.s(Vt%12||12,ae,"0")},re=ge||function(ae,ne,Le){var ve=ae<12?"AM":"PM";return Le?ve.toLowerCase():ve};return wt.replace(M,function(ae,ne){return ne||function(Le){switch(Le){case"YY":return String(gt.$y).slice(-2);case"YYYY":return xt.s(gt.$y,4,"0");case"M":return se+1;case"MM":return xt.s(se+1,2,"0");case"MMM":return he(et.monthsShort,se,de,3);case"MMMM":return he(de,se);case"D":return gt.$D;case"DD":return xt.s(gt.$D,2,"0");case"d":return String(gt.$W);case"dd":return he(et.weekdaysMin,gt.$W,oe,2);case"ddd":return he(et.weekdaysShort,gt.$W,oe,3);case"dddd":return oe[gt.$W];case"H":return String(Vt);case"HH":return xt.s(Vt,2,"0");case"h":return Gt(1);case"hh":return Gt(2);case"a":return re(Vt,Xt,!0);case"A":return re(Vt,Xt,!1);case"m":return String(Xt);case"mm":return xt.s(Xt,2,"0");case"s":return String(gt.$s);case"ss":return xt.s(gt.$s,2,"0");case"SSS":return xt.s(gt.$ms,3,"0");case"Z":return At}return null}(ae)||At.replace(":","")})},rt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},rt.diff=function(ot,gt,et){var wt,At=this,Vt=xt.p(gt),Xt=ft(ot),se=(Xt.utcOffset()-this.utcOffset())*e,oe=this-Xt,de=function(){return xt.m(At,Xt)};switch(Vt){case x:wt=de()/12;break;case y:wt=de();break;case d:wt=de()/3;break;case p:wt=(oe-se)/604800000;break;case l:wt=(oe-se)/86400000;break;case c:wt=oe/i;break;case n:wt=oe/e;break;case o:wt=oe/r;break;default:wt=oe}return et?wt:xt.a(wt)},rt.daysInMonth=function(){return this.endOf(y).$D},rt.$locale=function(){return J[this.$L]},rt.locale=function(ot,gt){if(!ot)return this.$L;var et=this.clone(),wt=st(ot,gt,!0);return wt&&(et.$L=wt),et},rt.clone=function(){return xt.w(this.$d,this)},rt.toDate=function(){return new Date(this.valueOf())},rt.toJSON=function(){return this.isValid()?this.toISOString():null},rt.toISOString=function(){return this.$d.toISOString()},rt.toString=function(){return this.$d.toUTCString()},Ct}(),kt=Ft.prototype;return ft.prototype=kt,[["$ms",s],["$s",o],["$m",n],["$H",c],["$W",l],["$M",y],["$y",x],["$D",b]].forEach(function(Ct){kt[Ct[1]]=function(rt){return this.$g(rt,Ct[0],Ct[1])}}),ft.extend=function(Ct,rt){return Ct.$i||(Ct(rt,Ft,ft),Ct.$i=!0),ft},ft.locale=st,ft.isDayjs=nt,ft.unix=function(Ct){return ft(1000*Ct)},ft.en=J[K],ft.Ls=J,ft.p={},ft})});var sm=Xe(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|:)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var oa=Xe(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var sr=sm();function k2(r){return sr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(sr.ctrlCharactersRegex,"");return e.replace(sr.htmlEntitiesRegex,function(i,s){return String.fromCharCode(s)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return sr.BLANK_URL;var e,i=am(r.trim());do i=w2(i).replace(sr.htmlCtrlEntityRegex,"").replace(sr.ctrlCharactersRegex,"").replace(sr.whitespaceEscapeCharsRegex,"").trim(),i=am(i),e=i.match(sr.ctrlCharactersRegex)||i.match(sr.htmlEntitiesRegex)||i.match(sr.htmlCtrlEntityRegex)||i.match(sr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var s=i;if(!s)return sr.BLANK_URL;if(k2(s))return s;var o=s.trimStart(),n=o.match(sr.urlSchemeRegex);if(!n)return s;var c=n[0].toLowerCase().trim();if(sr.invalidProtocolRegex.test(c))return sr.BLANK_URL;var l=o.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return l;if(c==="http:"||c==="https:"){if(!S2(l))return sr.BLANK_URL;var p=new URL(l);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return l}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),Zn=(r,e)=>{for(var i in e)_d(r,i,{get:e[i],enumerable:!0})};var Bd=Ze(vo(),1),hi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},a={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},xi=t(function(r="fatal"){let e=hi.fatal;if(typeof r==="string"){if(r.toLowerCase()in hi)e=hi[r]}else if(typeof r==="number")e=r;if(a.trace=()=>{},a.debug=()=>{},a.info=()=>{},a.warn=()=>{},a.error=()=>{},a.fatal=()=>{},e<=hi.fatal)a.fatal=console.error?console.error.bind(console,vr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",vr("FATAL"));if(e<=hi.error)a.error=console.error?console.error.bind(console,vr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",vr("ERROR"));if(e<=hi.warn)a.warn=console.warn?console.warn.bind(console,vr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",vr("WARN"));if(e<=hi.info)a.info=console.info?console.info.bind(console,vr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",vr("INFO"));if(e<=hi.debug)a.debug=console.debug?console.debug.bind(console,vr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vr("DEBUG"));if(e<=hi.trace)a.trace=console.debug?console.debug.bind(console,vr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vr("TRACE"))},"setLogLevel"),vr=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var Cn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,i)=>{if(i<0)i+=1;if(i>1)i-=1;if(i<0.16666666666666666)return r+(e-r)*6*i;if(i<0.5)return e;if(i<0.6666666666666666)return r+(e-r)*(0.6666666666666666-i)*6;return r},hsl2rgb:({h:r,s:e,l:i},s)=>{if(!e)return i*2.55;r/=360,e/=100,i/=100;let o=i<0.5?i*(1+e):i+e-i*e,n=2*i-o;switch(s){case"r":return Cn.hue2rgb(n,o,r+0.3333333333333333)*255;case"g":return Cn.hue2rgb(n,o,r)*255;case"b":return Cn.hue2rgb(n,o,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:i},s)=>{r/=255,e/=255,i/=255;let o=Math.max(r,e,i),n=Math.min(r,e,i),c=(o+n)/2;if(s==="l")return c*100;if(o===n)return 0;let l=o-n,p=c>0.5?l/(2-o-n):l/(o+n);if(s==="s")return p*100;switch(o){case r:return((e-i)/l+(e<i?6:0))*60;case e:return((i-r)/l+2)*60;case i:return((r-e)/l+4)*60;default:return-1}}},vd=Cn;var rC={clamp:(r,e,i)=>{if(e>i)return Math.min(e,Math.max(i,r));return Math.min(i,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},Y=oC;var ci={};for(let r=0;r<=255;r++)ci[r]=Y.unit.dec2hex(r);var Ge={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=Ge.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Ge.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=Ge.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:i,l:s}=r;if(e===void 0)r.h=Y.channel.rgb2hsl(r,"h");if(i===void 0)r.s=Y.channel.rgb2hsl(r,"s");if(s===void 0)r.l=Y.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:i,b:s}=r;if(e===void 0)r.r=Y.channel.hsl2rgb(r,"r");if(i===void 0)r.g=Y.channel.hsl2rgb(r,"g");if(s===void 0)r.b=Y.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(Ge.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(Ge.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(Ge.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(Ge.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(Ge.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(Ge.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(Ge.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Ge.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Ge.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Ge.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Ge.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Ge.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),Pi=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let i=e[1],s=parseInt(i,16),o=i.length,n=o%4===0,c=o>4,l=c?1:17,p=c?8:4,y=n?0:-1,d=c?255:15;return Pi.set({r:(s>>p*(y+3)&d)*l,g:(s>>p*(y+2)&d)*l,b:(s>>p*(y+1)&d)*l,a:n?(s&d)*l/255:1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`#${ci[Math.round(e)]}${ci[Math.round(i)]}${ci[Math.round(s)]}${ci[Math.round(o*255)]}`;else return`#${ci[Math.round(e)]}${ci[Math.round(i)]}${ci[Math.round(s)]}`}},ji=Id;var kn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(kn.hueRe);if(e){let[,i,s]=e;switch(s){case"grad":return Y.channel.clamp.h(parseFloat(i)*0.9);case"rad":return Y.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return Y.channel.clamp.h(parseFloat(i)*360)}}return Y.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let i=r.match(kn.re);if(!i)return;let[,s,o,n,c,l]=i;return Pi.set({h:kn._hue2deg(s),s:Y.channel.clamp.s(parseFloat(o)),l:Y.channel.clamp.l(parseFloat(n)),a:c?Y.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:e,s:i,l:s,a:o}=r;if(o<1)return`hsla(${Y.lang.round(e)}, ${Y.lang.round(i)}%, ${Y.lang.round(s)}%, ${o})`;else return`hsl(${Y.lang.round(e)}, ${Y.lang.round(i)}%, ${Y.lang.round(s)}%)`}},bs=kn;var wn={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=wn.colors[r];if(!e)return;return ji.parse(e)},stringify:(r)=>{let e=ji.stringify(r);for(let i in wn.colors)if(wn.colors[i]===e)return i;return}},_h=wn;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let i=r.match($d.re);if(!i)return;let[,s,o,n,c,l,p,y,d]=i;return Pi.set({r:Y.channel.clamp.r(o?parseFloat(s)*2.55:parseFloat(s)),g:Y.channel.clamp.g(c?parseFloat(n)*2.55:parseFloat(n)),b:Y.channel.clamp.b(p?parseFloat(l)*2.55:parseFloat(l)),a:y?Y.channel.clamp.a(d?parseFloat(y)/100:parseFloat(y)):1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`rgba(${Y.lang.round(e)}, ${Y.lang.round(i)}, ${Y.lang.round(s)}, ${Y.lang.round(o)})`;else return`rgb(${Y.lang.round(e)}, ${Y.lang.round(i)}, ${Y.lang.round(s)})`}},ks=$d;var aC={format:{keyword:_h,hex:ji,rgb:ks,rgba:ks,hsl:bs,hsla:bs},parse:(r)=>{if(typeof r!=="string")return r;let e=ji.parse(r)||ks.parse(r)||bs.parse(r)||_h.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(Ge.HSL)||r.data.r===void 0)return bs.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return ks.stringify(r);else return ji.stringify(r)}},ct=aC;var nC=(r,e)=>{let i=ct.parse(r);for(let s in e)i[s]=Y.channel.clamp[s](e[s]);return ct.stringify(i)},Sn=nC;var lC=(r,e,i=0,s=1)=>{if(typeof r!=="number")return Sn(r,{a:e});let o=Pi.set({r:Y.channel.clamp.r(r),g:Y.channel.clamp.g(e),b:Y.channel.clamp.b(i),a:Y.channel.clamp.a(s)});return ct.stringify(o)},Ie=lC;var hC=(r)=>{let{r:e,g:i,b:s}=ct.parse(r),o=0.2126*Y.channel.toLinear(e)+0.7152*Y.channel.toLinear(i)+0.0722*Y.channel.toLinear(s);return Y.lang.round(o)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),ce=uC;var fC=(r,e,i)=>{let s=ct.parse(r),o=s[e],n=Y.channel.clamp[e](o+i);if(o!==n)s[e]=n;return ct.stringify(s)},Oa=fC;var dC=(r,e)=>Oa(r,"l",e),m=dC;var pC=(r,e)=>Oa(r,"l",-e),f=pC;var gC=(r,e)=>{let i=ct.parse(r),s={};for(let o in e){if(!e[o])continue;s[o]=i[o]+e[o]}return Sn(r,s)},z=gC;var mC=(r,e,i=50)=>{let{r:s,g:o,b:n,a:c}=ct.parse(r),{r:l,g:p,b:y,a:d}=ct.parse(e),x=i/100,b=x*2-1,_=c-d,M=((b*_===-1?b:(b+_)/(1+b*_))+1)/2,q=1-M,W=s*M+l*q,H=o*M+p*q,K=n*M+y*q,J=c*x+d*(1-x);return Ie(W,H,K,J)},Rd=mC;var yC=(r,e=100)=>{let i=ct.parse(r);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Rd(i,r,e)},lt=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,s=Array(e);i<e;i++)s[i]=r[i];return s}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var s,o,n,c,l=[],p=!0,y=!1;try{if(n=(i=i.call(r)).next,e===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(s=n.call(i)).done)&&(l.push(s.value),l.length!==e);p=!0);}catch(d){y=!0,o=d}finally{try{if(!p&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(y)throw o}}return l}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function wC(r,e){return CC(r)||bC(r,e)||SC(r,e)||kC()}function SC(r,e){if(r){if(typeof r=="string")return qd(r,e);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?qd(r,e):void 0}}function Tn(r){var e,i;function s(n,c){try{var l=r[n](c),p=l.value,y=p instanceof xC;Promise.resolve(y?p.v:p).then(function(d){if(y){var x=n==="return"&&p.k?n:"next";if(!p.k||d.done)return s(x,d);d=r[x](d).value}o(!!l.done,d)},function(d){s("throw",d)})}catch(d){o(2,d)}}function o(n,c){n===2?e.reject(c):e.resolve({value:c,done:n}),(e=e.next)?s(e.key,e.arg):i=null}this._invoke=function(n,c){return new Promise(function(l,p){var y={key:n,arg:c,resolve:l,reject:p,next:null};i?i=i.next=y:(e=i=y,s(n,c))})},typeof r.return!="function"&&(this.return=void 0)}Tn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Tn.prototype.next=function(r){return this._invoke("next",r)},Tn.prototype.throw=function(r){return this._invoke("throw",r)},Tn.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:Ke,seal:tr,create:ho}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:$h,construct:Dh}=ip;if(!Ke)Ke=function(e){return e};if(!tr)tr=function(e){return e};if(!$h)$h=function(e,i){for(var s=arguments.length,o=Array(s>2?s-2:0),n=2;n<s;n++)o[n-2]=arguments[n];return e.apply(i,o)};if(!Dh)Dh=function(e){for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return new e(...s)};var ui=Fe(Array.prototype.forEach);Array.prototype.indexOf;var _C=Fe(Array.prototype.lastIndexOf),Wd=Fe(Array.prototype.pop),ws=Fe(Array.prototype.push),BC=Fe(Array.prototype.slice),vC=Fe(Array.prototype.splice),co=Array.isArray,Bh=op(Set),vh=Fe(Set.prototype.add),Ss=Fe(Set.prototype.has),Gi=Fe(String.prototype.toLowerCase),Lh=Fe(String.prototype.toString),zd=Fe(String.prototype.match),Ts=Fe(String.prototype.replace),Hd=Fe(String.prototype.indexOf),LC=Fe(String.prototype.trim),FC=Fe(Number.prototype.toString),AC=Fe(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Fe(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Fe(Symbol.prototype.toString),xr=Fe(Object.prototype.hasOwnProperty),_s=Fe(Object.prototype.toString),Je=Fe(RegExp.prototype.test),fi=op(TypeError);function Fe(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return $h(r,e,s)}}function op(r){return function(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];return Dh(r,i)}}function xe(r,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gi;if(Nd)Nd(r,null);if(!co(e))return r;let s=e.length;while(s--){let o=e[s];if(typeof o==="string"){let n=i(o);if(n!==o){if(!TC(e))e[s]=n;o=n}}r[o]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!xr(r,e))r[e]=null;return r}function kr(r){let e=ho(null);for(let s of tp(r)){var i=wC(s,2);let o=i[0],n=i[1];if(xr(r,o))if(co(n))e[o]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[o]=kr(n);else e[o]=n}return e}function EC(r){switch(typeof r){case"string":return r;case"number":return FC(r);case"boolean":return AC(r);case"bigint":return Yd?Yd(r):"0";case"symbol":return Ud?Ud(r):"Symbol()";case"undefined":return _s(r);case"function":case"object":{if(r===null)return _s(r);let e=r,i=Lr(e,"toString");if(typeof i==="function"){let s=i(e);return typeof s==="string"?s:_s(s)}return _s(r)}default:return _s(r)}}function Lr(r,e){while(r!==null){let s=rp(r,e);if(s){if(s.get)return Fe(s.get);if(typeof s.value==="function")return Fe(s.value)}r=ep(r)}function i(){return null}return i}function OC(r,e){while(r!==null){let i=rp(r,e);if(i)return i.get?Fe(i.get):null;r=ep(r)}return null}function IC(r){try{return Je(r,""),!0}catch(e){return!1}}var jd=Ke(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fh=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ah=Ke(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$C=Ke(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mh=Ke(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DC=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=Ke(["#text"]),Xd=Ke(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Eh=Ke(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=Ke(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bn=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PC=tr(/{{[\w\W]*|^[\w\W]*}}/g),RC=tr(/<%[\w\W]*|^[\w\W]*%>/g),qC=tr(/\${[\w\W]*/g),NC=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),WC=tr(/^aria-[\-\w]+$/),Kd=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zC=tr(/^(?:\w+script|data):/i),HC=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=tr(/^html$/i),UC=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Oh=tr(/<[/\w!]/g),Zd=tr(/<[/\w]/g),jC=tr(/<\/no(script|embed|frames)/i),Qd=tr(/\/>/i),We={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GC=Ke(xe({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,i){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let s=null,o="data-tt-policy-suffix";if(i&&i.hasAttribute(o))s=i.getAttribute(o);let n="dompurify"+(s?"#"+s:"");try{return e.createPolicy(n,{createHTML(c){return c},createScriptURL(c){return c}})}catch(c){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},qi=function(e,i,s,o){return xr(e,i)&&co(e[i])?xe(o.base?kr(o.base):{},e[i],o.transform):s},Ih=function(e,i,s){let o=xr(e,i)?e[i]:void 0;return o&&typeof o==="object"?kr(o):s()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(zt)=>sp(zt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==We.document||!r.Element)return e.isSupported=!1,e;let i=r.document,s=i,o=s.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:c,Element:l,NodeFilter:p}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:y,trustedTypes:d}=r,x=l.prototype,b=Lr(x,"cloneNode"),_=Lr(x,"remove"),v=Lr(x,"removeAttributeNode"),M=Lr(x,"nextSibling"),q=Lr(x,"childNodes"),W=Lr(x,"parentNode"),H=Lr(x,"shadowRoot"),K=Lr(x,"attributes"),J=c&&c.prototype?Lr(c.prototype,"nodeType"):null,tt=c&&c.prototype?Lr(c.prototype,"nodeName"):null,nt=c&&c.prototype?Lr(c.prototype,"ownerDocument"):null,st=function(Z){return J?J(Z):Z.nodeType},ft=function(Z){return tt?tt(Z):Z.nodeName},xt=OC(x,"namespaceURI"),Ft=function(Z){return xt?xt(Z):Z.namespaceURI};if(typeof n==="function"){let zt=i.createElement("template");if(zt.content&&zt.content.ownerDocument)i=zt.content.ownerDocument}let kt,Ct="",rt,ot=!1,gt=0,et=function(){if(gt>0)throw fi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},wt=function(Z){et(),gt++;try{return kt.createHTML(Z)}finally{gt--}},At=function(Z){et(),gt++;try{return kt.createScriptURL(Z)}finally{gt--}},Vt=function(){if(!ot)rt=VC(d,o),ot=!0;return rt},Xt=i,{implementation:se,createNodeIterator:oe,createDocumentFragment:de,getElementsByTagName:ge}=Xt,he=s.importNode,Gt=Jd();e.isSupported=typeof tp==="function"&&typeof W==="function"&&se&&se.createHTMLDocument!==void 0;let re=PC,ae=RC,ne=qC,Le=NC,ve=WC,Er=zC,si=HC,Tr=UC,vi=Kd,Se=null,fr=xe({},[...jd,...Fh,...Ah,...Mh,...Gd]),ke=null,ai=xe({},[...Xd,...Eh,...Vd,...Bn]),Qe=Object.seal(ho(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_r=null,Fi=null,Ne=Object.seal(ho(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Mi=!0,Yr=!0,ni=!1,li=!0,w=!1,pt=!0,Bt=!1,Ot=!1,_t=null,Yt=null,V=!1,mt=!1,Nt=!1,Mt=!1,$t=!0,Ht=!1,Wt="user-content-",Qt=!0,Zt=!1,Jt=null,ee={},pe=null,Be=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ms=null,Oi=xe({},["audio","video","img","source","image","track"]),Ii=null,ld=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",pn="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",oo=Ur,hh=!1,ch=null,D0=xe({},[dn,pn,Ur],Lh),hd=Ke(["mi","mo","mn","ms","mtext"]),uh=xe({},hd),cd=Ke(["annotation-xml"]),fh=xe({},cd),P0=xe({},["title","style","font","a","script"]),ys=null,R0=["application/xhtml+xml","text/html"],q0="text/html",Re=null,so=null,N0=i.createElement("form"),ud=function(Z){return Z instanceof RegExp||Z instanceof Function},dh=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(so&&so===Z)return;if(!Z||typeof Z!=="object")Z={};Z=kr(Z),ys=R0.indexOf(Z.PARSER_MEDIA_TYPE)===-1?q0:Z.PARSER_MEDIA_TYPE,Re=ys==="application/xhtml+xml"?Lh:Gi,Se=qi(Z,"ALLOWED_TAGS",fr,{transform:Re}),ke=qi(Z,"ALLOWED_ATTR",ai,{transform:Re}),ch=qi(Z,"ALLOWED_NAMESPACES",D0,{transform:Lh}),Ii=qi(Z,"ADD_URI_SAFE_ATTR",ld,{transform:Re,base:ld}),ms=qi(Z,"ADD_DATA_URI_TAGS",Oi,{transform:Re,base:Oi}),pe=qi(Z,"FORBID_CONTENTS",Be,{transform:Re}),_r=qi(Z,"FORBID_TAGS",kr({}),{transform:Re}),Fi=qi(Z,"FORBID_ATTR",kr({}),{transform:Re}),ee=xr(Z,"USE_PROFILES")?Z.USE_PROFILES&&typeof Z.USE_PROFILES==="object"?kr(Z.USE_PROFILES):Z.USE_PROFILES:!1,Mi=Z.ALLOW_ARIA_ATTR!==!1,Yr=Z.ALLOW_DATA_ATTR!==!1,ni=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,li=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,w=Z.SAFE_FOR_TEMPLATES||!1,pt=Z.SAFE_FOR_XML!==!1,Bt=Z.WHOLE_DOCUMENT||!1,mt=Z.RETURN_DOM||!1,Nt=Z.RETURN_DOM_FRAGMENT||!1,Mt=Z.RETURN_TRUSTED_TYPE||!1,V=Z.FORCE_BODY||!1,$t=Z.SANITIZE_DOM!==!1,Ht=Z.SANITIZE_NAMED_PROPS||!1,Qt=Z.KEEP_CONTENT!==!1,Zt=Z.IN_PLACE||!1,vi=IC(Z.ALLOWED_URI_REGEXP)?Z.ALLOWED_URI_REGEXP:Kd,oo=typeof Z.NAMESPACE==="string"?Z.NAMESPACE:Ur,uh=Ih(Z,"MATHML_TEXT_INTEGRATION_POINTS",()=>xe({},hd)),fh=Ih(Z,"HTML_INTEGRATION_POINTS",()=>xe({},cd));let ht=Ih(Z,"CUSTOM_ELEMENT_HANDLING",()=>ho(null));if(Qe=ho(null),xr(ht,"tagNameCheck")&&ud(ht.tagNameCheck))Qe.tagNameCheck=ht.tagNameCheck;if(xr(ht,"attributeNameCheck")&&ud(ht.attributeNameCheck))Qe.attributeNameCheck=ht.attributeNameCheck;if(xr(ht,"allowCustomizedBuiltInElements")&&typeof ht.allowCustomizedBuiltInElements==="boolean")Qe.allowCustomizedBuiltInElements=ht.allowCustomizedBuiltInElements;if(tr(Qe),w)Yr=!1;if(Nt)mt=!0;if(ee){if(Se=xe({},Gd),ke=ho(null),ee.html===!0)xe(Se,jd),xe(ke,Xd);if(ee.svg===!0)xe(Se,Fh),xe(ke,Eh),xe(ke,Bn);if(ee.svgFilters===!0)xe(Se,Ah),xe(ke,Eh),xe(ke,Bn);if(ee.mathMl===!0)xe(Se,Mh),xe(ke,Vd),xe(ke,Bn)}if(Ne.tagCheck=null,Ne.attributeCheck=null,xr(Z,"ADD_TAGS")){if(typeof Z.ADD_TAGS==="function")Ne.tagCheck=Z.ADD_TAGS;else if(co(Z.ADD_TAGS)){if(Se===fr)Se=kr(Se);xe(Se,Z.ADD_TAGS,Re)}}if(xr(Z,"ADD_ATTR")){if(typeof Z.ADD_ATTR==="function")Ne.attributeCheck=Z.ADD_ATTR;else if(co(Z.ADD_ATTR)){if(ke===ai)ke=kr(ke);xe(ke,Z.ADD_ATTR,Re)}}if(xr(Z,"ADD_FORBID_CONTENTS")&&co(Z.ADD_FORBID_CONTENTS)){if(pe===Be)pe=kr(pe);xe(pe,Z.ADD_FORBID_CONTENTS,Re)}if(Qt)Se["#text"]=!0;if(Bt)xe(Se,["html","head","body"]);if(Se.table)xe(Se,["tbody"]),delete _r.tbody;if(Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!=="function")throw fi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw fi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Dt=kt;kt=Z.TRUSTED_TYPES_POLICY;try{Ct=wt("")}catch(Pt){throw kt=Dt,Pt}}else if(Z.TRUSTED_TYPES_POLICY===null)kt=void 0,Ct="";else{if(kt===void 0)kt=Vt();if(kt&&typeof Ct==="string")Ct=wt("")}if(Ke)Ke(Z);so=Z},fd=xe({},[...Fh,...Ah,...$C]),dd=xe({},[...Mh,...DC]),W0=function(Z,ht,Dt){if(ht.namespaceURI===Ur)return Z==="svg";if(ht.namespaceURI===dn)return Z==="svg"&&(Dt==="annotation-xml"||uh[Dt]);return Boolean(fd[Z])},z0=function(Z,ht,Dt){if(ht.namespaceURI===Ur)return Z==="math";if(ht.namespaceURI===pn)return Z==="math"&&fh[Dt];return Boolean(dd[Z])},H0=function(Z,ht,Dt){if(ht.namespaceURI===pn&&!fh[Dt])return!1;if(ht.namespaceURI===dn&&!uh[Dt])return!1;return!dd[Z]&&(P0[Z]||!fd[Z])},Y0=function(Z){let ht=Ft(Z),Dt=Gi(ft(Z)),Pt=W(Z),ie,fe;if(Pt&&st(Pt)===We.element)ie={namespaceURI:Ft(Pt)},fe=Gi(ft(Pt));else ie={namespaceURI:oo},fe="template";if(!ch[ht])return!1;if(ht===pn)return W0(Dt,ie,fe);if(ht===dn)return z0(Dt,ie,fe);if(ht===Ur)return H0(Dt,ie,fe);if(ys==="application/xhtml+xml"&&ch[ht])return!0;return!1},$i=function(Z){ws(e.removed,{element:Z});try{W(Z).removeChild(Z)}catch(ht){if(_(Z),!W(Z))throw fi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(Z,ht,Dt){try{v(Z,ht)}catch(Pt){try{Z.removeAttribute(Dt)}catch(ie){}}},ph=function(Z){mh(Z);let ht=q(Z);if(ht)ui(BC(ht),(Pt)=>{try{_(Pt)}catch(ie){}});let Dt=st(Z)===We.element?K(Z):null;if(Dt)for(let Pt=Dt.length-1;Pt>=0;--Pt){let ie=Dt[Pt],fe=ie&&ie.name;if(typeof fe==="string")pd(Z,ie,fe)}},ao=function(Z,ht,Dt){if(!Dt)try{Dt=ht.getAttributeNode(Z)}catch(Pt){Dt=null}ws(e.removed,{attribute:Dt||null,from:ht});try{if(Dt)v(ht,Dt);else ht.removeAttribute(Z)}catch(Pt){try{ht.removeAttribute(Z)}catch(ie){}}if(Z==="is")if(mt||Nt)try{$i(ht)}catch(Pt){}else try{ht.setAttribute(Z,"")}catch(Pt){}},gd=function(Z){let ht=K(Z);if(!ht)return;for(let Dt=ht.length-1;Dt>=0;--Dt){let Pt=ht[Dt],ie=Pt&&Pt.name;if(typeof ie!=="string"||ke[Re(ie)])continue;pd(Z,Pt,ie)}},gh=function(Z,ht){let Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=[Z];while(Pt.length>0){let ie=Pt.pop();if(ht(ie)===!1)continue;if(Dt&&st(ie)===We.element){let me=H(ie);if(Di(me))Pt.push(me)}let fe=q(ie);if(fe)for(let me=fe.length-1;me>=0;--me)Pt.push(fe[me])}},mh=function(Z){gh(Z,(ht)=>{if(st(ht)===We.element)gd(ht)})},yh=function(Z){let ht=[];return gh(Z,(Dt)=>{ht.push(Dt)},!0),ht},U0=function(Z,ht){let Dt=Bh();ui(yh(Z),(Pt)=>{if(st(Pt)===We.element)vh(Dt,Pt)}),ui(ht,(Pt)=>{if(st(Pt)===We.element&&!Ss(Dt,Pt))gd(Pt)})},md=function(Z,ht){let Dt=!1;return ui(e.removed,(Pt)=>{if(Pt.element)Dt=Dt||Pt.element===Z,mh(Pt.element)}),U0(Z,ht),Dt},j0=8,G0=function(Z,ht){let Dt=Jt,Pt=null,ie=()=>{if(!Pt)Pt=Bh(),ui(ht,(fe)=>{vh(Pt,fe)});return Pt};for(let fe=0;;fe++){let me=yh(Z),je=[Z],jr=!1;if(ui(me,(ar)=>{if(st(ar)===We.documentFragment)ws(je,ar);else if(!jr&&!Ss(Dt,ar))jr=Ss(ie(),ar)}),!jr)return;if(fe>=j0)throw fi("the tree kept changing during in-place sanitization; refusing to return it");ui(je,(ar,gr)=>{X0(ar,gr>0,Z,ie())})}},X0=function(Z,ht,Dt,Pt){let ie=xh(Z),fe;while(fe=ie.nextNode()){if(!Ss(Pt,fe)||Ss(Jt,fe))continue;if(ht)Ir(Gt.uponSanitizeShadowNode,fe,null);if(bh(fe,Dt),kh(fe,Dt),Di(fe.content))Cs(fe.content)}},V0=function(Z){if(Jt)vh(Jt,Z)},yd=function(Z,ht){if(!pt)return!1;if(Z==="patchsrc")return!0;return Z==="for"&&ht!=="label"&&ht!=="output"},K0=function(Z){if(!pt)return;gh(Z,(ht)=>{let Dt=st(ht);if(Dt===We.processingInstruction||Dt===We.comment&&Je(Zd,ht.data)){try{_(ht)}catch(Pt){}return!1}if(Dt===We.element){let Pt=ht,ie=Re(ft(ht));try{if(Pt.hasAttribute&&Pt.hasAttribute("patchsrc"))Pt.removeAttribute("patchsrc");if(Pt.hasAttribute&&Pt.hasAttribute("for")&&yd("for",ie))Pt.removeAttribute("for")}catch(fe){}}return!0})},xd=function(Z){let ht=null,Dt=null;if(V)Z="<remove></remove>"+Z;else{let fe=zd(Z,/^[\r\n\t ]+/);Dt=fe&&fe[0]}if(ys==="application/xhtml+xml"&&oo===Ur)Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>";let Pt=kt?wt(Z):Z;if(oo===Ur)try{ht=new y().parseFromString(Pt,ys)}catch(fe){}if(!ht||!ht.documentElement){ht=se.createDocument(oo,"template",null);try{ht.documentElement.innerHTML=hh?Ct:Pt}catch(fe){}}let ie=ht.body||ht.documentElement;if(Z&&Dt)ie.insertBefore(i.createTextNode(Dt),ie.childNodes[0]||null);if(oo===Ur)return ge.call(ht,Bt?"html":"body")[0];return Bt?ht.documentElement:ie},xh=function(Z){let ht=nt?nt(Z):Z.ownerDocument;return oe.call(ht||Z,Z,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},gn=function(Z){return Z=Ts(Z,re," "),Z=Ts(Z,ae," "),Z=Ts(Z,ne," "),Z},Ch=function(Z){var ht;Cd(Z);let Dt=(ht=Z.querySelectorAll)===null||ht===void 0?void 0:ht.call(Z,"template");if(Dt)ui(Dt,(Pt)=>{if(Di(Pt.content))Ch(Pt.content)})},Cd=function(Z){Z.normalize();let ht=nt?nt(Z):Z.ownerDocument,Dt=oe.call(ht||Z,Z,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null),Pt=Dt.nextNode();while(Pt)Pt.data=gn(Pt.data),Pt=Dt.nextNode()},mn=function(Z){let ht=tt?tt(Z):null;if(typeof ht!=="string")return!1;if(Re(ht)!=="form")return!1;return typeof Z.nodeName!=="string"||typeof Z.textContent!=="string"||typeof Z.removeChild!=="function"||Z.attributes!==K(Z)||typeof Z.removeAttribute!=="function"||typeof Z.removeAttributeNode!=="function"||typeof Z.getAttributeNode!=="function"||typeof Z.setAttribute!=="function"||typeof Z.namespaceURI!=="string"||typeof Z.insertBefore!=="function"||typeof Z.hasChildNodes!=="function"||Z.nodeType!==J(Z)||Z.childNodes!==q(Z)},Di=function(Z){if(!J||typeof Z!=="object"||Z===null)return!1;try{return J(Z)===We.documentFragment}catch(ht){return!1}},xs=function(Z){if(!J||typeof Z!=="object"||Z===null)return!1;try{return typeof J(Z)==="number"}catch(ht){return!1}};function Ir(zt,Z,ht){if(zt.length===0)return;ui(zt,(Dt)=>{Dt.call(e,Z,ht,so)})}let Z0=function(Z,ht){if(pt&&Z.hasChildNodes()&&!xs(Z.firstElementChild)&&Je(Oh,Z.textContent)&&Je(Oh,Z.innerHTML))return!0;if(pt&&GC[ht]&&st(Z)===We.element&&Ft(Z)===Ur&&(xs(Z.firstElementChild)||typeof Z.textContent==="string"&&Je(Oh,Z.textContent)))return!0;if(Z.nodeType===We.processingInstruction)return!0;if(pt&&Z.nodeType===We.comment&&Je(Zd,Z.data))return!0;return!1},yn=function(Z,ht){if(Z instanceof RegExp)return Je(Z,ht);if(Z instanceof Function){for(var Dt=arguments.length,Pt=Array(Dt>2?Dt-2:0),ie=2;ie<Dt;ie++)Pt[ie-2]=arguments[ie];return Boolean(Z(ht,...Pt))}return!1},Q0=function(Z,ht,Dt){if(!_r[ht]&&wd(ht)&&yn(Qe.tagNameCheck,ht))return!1;if(Qt&&!pe[ht]&&!pe[Gi(ht)]){let Pt=W(Z),ie=q(Z);if(ie&&Pt){let fe=ie.length;for(let me=fe-1;me>=0;--me){let je=Z===Dt?b(ie[me],!0):ie[me];Pt.insertBefore(je,M(Z))}}}return $i(Z),!0},bd=function(Z,ht,Dt,Pt){if(Z.length===0)return ht;return ht===Dt||ht===Pt?kr(ht):ht},no=function(Z,ht){if(Z===ht||W(Z)!==null)return!1;if(Zt)mh(Z);return!0},bh=function(Z,ht){if(V0(Z),Ir(Gt.beforeSanitizeElements,Z,null),no(Z,ht))return!0;if(mn(Z))return $i(Z),!0;let Dt=Re(ft(Z));if(Se=bd(Gt.uponSanitizeElement,Se,fr,_t),Ir(Gt.uponSanitizeElement,Z,{tagName:Dt,allowedTags:Se}),no(Z,ht))return!0;if(Z0(Z,Dt))return $i(Z),!0;if(_r[Dt]||!(Ne.tagCheck instanceof Function&&Ne.tagCheck(Dt))&&!Se[Dt]){let Pt=Q0(Z,Dt,ht);if(Pt===!1){if(Ir(Gt.afterSanitizeElements,Z,null),no(Z,ht))return!0}return Pt}if(st(Z)===We.element&&!Y0(Z))return $i(Z),!0;if((Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Je(jC,Z.innerHTML))return $i(Z),!0;if(w&&Z.nodeType===We.text){let Pt=gn(Z.textContent);if(Z.textContent!==Pt)ws(e.removed,{element:Z.cloneNode()}),Z.textContent=Pt}return Ir(Gt.afterSanitizeElements,Z,null),no(Z,ht)},kd=function(Z,ht,Dt){if(Fi[ht])return!1;if(yd(ht,Z))return!1;if($t&&(ht==="id"||ht==="name")&&((Dt in i)||(Dt in N0)))return!1;let Pt=ke[ht]||Ne.attributeCheck instanceof Function&&Ne.attributeCheck(ht,Z);if(Yr&&Je(Le,ht))return!0;if(Mi&&Je(ve,ht))return!0;if(!Pt)return wd(Z)&&yn(Qe.tagNameCheck,Z)&&yn(Qe.attributeNameCheck,ht,Z)||ht==="is"&&Qe.allowCustomizedBuiltInElements&&yn(Qe.tagNameCheck,Dt);if(Ii[ht])return!0;if(Je(vi,Ts(Dt,si,"")))return!0;if((ht==="src"||ht==="xlink:href"||ht==="href")&&Z!=="script"&&Hd(Dt,"data:")===0&&ms[Z])return!0;if(ni&&!Je(Er,Ts(Dt,si,"")))return!0;return!Dt},J0=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(Z){return!J0[Gi(Z)]&&Je(Tr,Z)},tC=function(Z,ht,Dt,Pt){if(kt&&typeof d==="object"&&typeof d.getAttributeType==="function"&&!Dt)switch(d.getAttributeType(Z,ht)){case"TrustedHTML":return wt(Pt);case"TrustedScriptURL":return At(Pt)}return Pt},eC=function(Z,ht,Dt,Pt){try{if(Dt)Z.setAttributeNS(Dt,ht,Pt);else Z.setAttribute(ht,Pt);if(mn(Z))return $i(Z),!1;return!0}catch(ie){return ao(ht,Z),!1}},Sd=function(Z,ht){if(pt&&Je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ht))return!0;return Gi(Z)==="attributename"&&zd(ht,"href")!==null},kh=function(Z,ht){if(Ir(Gt.beforeSanitizeAttributes,Z,null),no(Z,ht))return;let Dt=Z.attributes;if(!Dt||mn(Z))return;ke=bd(Gt.uponSanitizeAttribute,ke,ai,Yt);let Pt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0},ie=Dt.length,fe=Re(Z.nodeName);while(ie--){let me=Dt[ie],{name:je,namespaceURI:jr,value:ar}=me,gr=Re(je),lo=ar,yr=je==="value"?lo:LC(lo),Td=!1;if(Pt.attrName=gr,Pt.attrValue=yr,Pt.keepAttr=!0,Pt.forceKeepAttr=void 0,Ir(Gt.uponSanitizeAttribute,Z,Pt),yr=Pt.attrValue,Ht&&(gr==="id"||gr==="name")&&Hd(yr,Wt)!==0)ao(je,Z,me),yr=Wt+yr,Td=!0;if(Sd(je,yr)){ao(je,Z,me);continue}if(Pt.forceKeepAttr)continue;if(!Pt.keepAttr){ao(je,Z,me);continue}if(!li&&Je(Qd,yr)){ao(je,Z,me);continue}if(w)yr=gn(yr);if(!kd(fe,gr,yr)){ao(je,Z,me);continue}if(yr=tC(fe,gr,jr,yr),yr!==lo){if(eC(Z,je,jr,yr)&&Td)Wd(e.removed)}}Ir(Gt.afterSanitizeAttributes,Z,null),no(Z,ht)},Cs=function(Z){let ht=null,Dt=xh(Z);Ir(Gt.beforeSanitizeShadowDOM,Z,null);while(ht=Dt.nextNode()){if(Ir(Gt.uponSanitizeShadowNode,ht,null),bh(ht,Z),kh(ht,Z),Di(ht.content))Cs(ht.content);if(st(ht)===We.element){let Pt=H(ht);if(Di(Pt))wh(Pt),Cs(Pt)}}if(w)Cd(Z);Ir(Gt.afterSanitizeShadowDOM,Z,null)},wh=function(Z){let ht=[{node:Z,shadow:null}];while(ht.length>0){let Dt=ht.pop();if(Dt.shadow){Cs(Dt.shadow);continue}let Pt=Dt.node,ie=st(Pt)===We.element,fe=q(Pt);if(fe)for(let me=fe.length-1;me>=0;--me)ht.push({node:fe[me],shadow:null});if(ie){let me=tt?tt(Pt):null;if(typeof me==="string"&&Re(me)==="template"){let je=Pt.content;if(Di(je))ht.push({node:je,shadow:null})}}if(ie){let me=H(Pt);if(Di(me))ht.push({node:null,shadow:me},{node:me,shadow:null})}}};return e.sanitize=function(zt){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ht=null,Dt=null,Pt=null,ie=null;if(hh=!zt,hh)zt="<!-->";if(typeof zt!=="string"&&!xs(zt)){if(zt=EC(zt),typeof zt!=="string")throw fi("dirty is not a string, aborting")}if(!e.isSupported)return zt;if(Ot)Se=_t,ke=Yt;else dh(Z);if(Gt.uponSanitizeElement.length>0||Gt.uponSanitizeAttribute.length>0)Se=kr(Se);if(Gt.uponSanitizeAttribute.length>0)ke=kr(ke);e.removed=[];let fe=Zt&&typeof zt!=="string"&&xs(zt),me=[],je=Jt;if(fe){K0(zt);let gr=ft(zt);if(typeof gr==="string"){let lo=Re(gr);if(!Se[lo]||_r[lo])throw ph(zt),fi("root node is forbidden and cannot be sanitized in-place")}if(mn(zt))throw ph(zt),fi("root node is clobbered and cannot be sanitized in-place");me=yh(zt),Jt=Bh()}else if(xs(zt)){if(ht=xd("<!---->"),Dt=ht.ownerDocument.importNode(zt,!0),Dt.nodeType===We.element&&Dt.nodeName==="BODY")ht=Dt;else if(Dt.nodeName==="HTML")ht=Dt;else ht.appendChild(Dt);wh(ht)}else{if(!mt&&!w&&!Bt&&zt.indexOf("<")===-1)return kt&&Mt?wt(zt):zt;if(ht=xd(zt),!ht)return mt?null:Mt?Ct:""}if(ht&&V)$i(ht.firstChild);let jr=fe?zt:ht;try{if(fe)wh(zt);let gr=xh(jr);while(Pt=gr.nextNode())if(bh(Pt,jr),kh(Pt,jr),Di(Pt.content))Cs(Pt.content);if(fe)G0(zt,me)}catch(gr){if(fe)ph(zt),md(zt,me);throw gr}finally{Jt=je}if(fe){if(md(zt,me))throw fi("a node selected for removal could not be safely returned; refusing to sanitize in place");if(w)Ch(zt);return zt}if(mt){if(w)Ch(ht);if(Nt){ie=de.call(ht.ownerDocument);while(ht.firstChild)ie.appendChild(ht.firstChild)}else ie=ht;if(ke.shadowroot||ke.shadowrootmode)ie=he.call(s,ie,!0);return ie}let ar=Bt?ht.outerHTML:ht.innerHTML;if(Bt&&Se["!doctype"]&&ht.ownerDocument&&ht.ownerDocument.doctype&&ht.ownerDocument.doctype.name&&Je(YC,ht.ownerDocument.doctype.name))ar="<!DOCTYPE "+ht.ownerDocument.doctype.name+`>
|
|
3
|
-
`+ar;if(w)ar=gn(ar);return kt&&Mt?wt(ar):ar},e.setConfig=function(){let zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dh(zt),Ot=!0,_t=Se,Yt=ke},e.clearConfig=function(){so=null,Ot=!1,_t=null,Yt=null,kt=rt,Ct=""},e.isValidAttribute=function(zt,Z,ht){if(!so)dh({});let Dt=Re(zt),Pt=Re(Z);if(typeof ht==="string"&&(Sd(Z,ht)||!li&&Je(Qd,ht)))return!1;return kd(Dt,Pt,ht)},e.addHook=function(zt,Z){if(typeof Z!=="function")return;if(!xr(Gt,zt))return;ws(Gt[zt],Z)},e.removeHook=function(zt,Z){if(!xr(Gt,zt))return;if(Z!==void 0){let ht=_C(Gt[zt],Z);return ht===-1?void 0:vC(Gt[zt],ht,1)[0]}return Wd(Gt[zt])},e.removeHooks=function(zt){if(!xr(Gt,zt))return;Gt[zt]=[]},e.removeAllHooks=function(){Gt=Jd()},e}var at=sp();var uo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,An=/\s/,KC=t((r)=>{let e="",i=0,s=0;while(s<r.length){let o=r.indexOf("%%",s);if(o===-1)break;let n=r.indexOf(`
|
|
4
|
-
`,o);if(n===-1)break;let c=o;while(c>i&&An.test(r[c-1]))c--;e+=r.slice(i,c)+`
|
|
5
|
-
`,i=n+1,s=i}return e+r.slice(i)},"stripAnyComments"),vn=t((r)=>r===`
|
|
6
|
-
`||r==="\r","isLineBreak"),ZC=t((r,e)=>{let i=-1;for(let s=e;s<r.length&&An.test(r[s]);s++)if(vn(r[s]))i=s;return i},"lastLineBreakInWhitespaceRun"),Is=t((r)=>{let e=0;while(e<r.length&&An.test(r[e])&&!vn(r[e]))e++;let i=r.slice(0,e);if(!r.startsWith("---",e))return;let s=[];for(let d=e+3;d<r.length&&An.test(r[d]);d++)if(vn(r[d]))s.push(d);if(s.length===0)return;let o=`${i}---`,n=t((d)=>vn(r[d])&&r.startsWith(o,d+1)?ZC(r,d+1+o.length):-1,"closingEnd"),c=s[0]+1,l=-1;for(let d=c;d<r.length;d++)if(n(d)!==-1)l=d;if(l===-1)return;let p=s[0];for(let d of s)if(d<l)p=d;let y=p+1;for(let d=y;d<=l;d++){let x=n(d);if(x!==-1)return{indent:i,body:r.slice(y,d),length:x+1}}return},"matchFrontMatter"),Ds=class extends Error{static{t(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Nr={},$a=t(function(r,e){let i=Is(r);r=KC((i?r.slice(i.length):r).replace(uo,""));for(let[s,{detector:o}]of Object.entries(Nr))if(o(r,e))return s;throw new Ds(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),bo=t((...r)=>{for(let{id:e,detector:i,loader:s}of r)up(e,i,s)},"registerLazyLoadedDiagrams"),up=t((r,e,i)=>{if(Nr[r])a.warn(`Detector with key ${r} already exists. Overwriting.`);Nr[r]={detector:e,loader:i},a.debug(`Detector with key ${r} added${i?" with loader":""}`)},"addDetector"),il=t((r)=>Nr[r].loader,"getDiagramLoader"),Ph=t((r,e,{depth:i=2}={})=>{let s={depth:i};if(Array.isArray(e)&&!Array.isArray(r))return e.forEach((o)=>Ph(r,o,s)),r;else if(Array.isArray(e)&&Array.isArray(r))return e.forEach((o)=>{if(!r.includes(o))r.push(o)}),r;if(r===void 0||r===null||i<=0)if(r!==void 0&&r!==null&&typeof r==="object"&&typeof e==="object")return Object.assign(r,e);else return e;if(e!==void 0&&e!==null&&typeof r==="object"&&typeof e==="object"){let o=r;Object.entries(e).forEach(([n,c])=>{if(typeof c==="object"){if(c===null)return;if(!Object.hasOwn(r,n))Object.defineProperty(r,n,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(o[n]===void 0)o[n]=Array.isArray(c)?[]:{};if(typeof o[n]==="object")o[n]=Ph(o[n],c,{depth:i-1})}else if(typeof o[n]!=="object")if(Object.hasOwn(r,n))o[n]=c;else Object.defineProperty(r,n,{value:c,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),Ce=Ph,Gr="#ffffff",Xr="#f2f2f2",ue=t((r,e)=>e?z(r,{s:-40,l:10}):z(r,{s:-40,l:-10}),"mkBorder"),ap=t((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),Dr=t((r,e)=>ap(r)&&ap(e)?{...r,...e}:e,"applyOverride"),QC=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||m(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode)this.rowOdd=this.rowOdd||f(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||f(this.mainBkg,10);else this.rowOdd=this.rowOdd||m(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||m(this.mainBkg,5);if(this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||lt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);if(e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])}),Object.hasOwn(r,"nodeBorder")&&!Object.hasOwn(r,"useGradient"))this.useGradient=!1}},JC=t((r)=>{let e=new QC;return e.calculate(r),e},"getThemeVariables"),tb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=m(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=m(lt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ie(255,255,255,0.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=f("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=f(this.sectionBkgColor,10),this.taskBorderColor=Ie(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ie(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||m(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||f(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=m(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=m(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=m(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=lt(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||lt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||m(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,s:-30,l:-(-7+r*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??m(this["cScale"+r],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=m(this.secondaryColor,20),this.git1=m(this.pie2||this.secondaryColor,20),this.git2=m(this.pie3||this.tertiaryColor,20),this.git3=m(this.pie4||z(this.primaryColor,{h:-30}),20),this.git4=m(this.pie5||z(this.primaryColor,{h:-60}),20),this.git5=m(this.pie6||z(this.primaryColor,{h:-90}),10),this.git6=m(this.pie7||z(this.primaryColor,{h:60}),10),this.git7=m(this.pie8||z(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||lt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||lt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||m("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||m("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||m("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||m("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||m(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||m(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||m(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||m(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},eb=t((r)=>{let e=new tb;return e.calculate(r),e},"getThemeVariables"),rb=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=z(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Ie(102,102,255,0.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||f(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||f(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=f(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||f(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||z(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,l:-(7+r*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||lt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||lt(this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.labelTextColor}if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||m(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||m(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||z(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||z(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||f(lt(this.git0),25),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||lt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||lt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(Object.keys(this).forEach((i)=>{if(this[i]==="calculated")this[i]=void 0}),typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},He=t((r)=>{let e=new rb;return e.calculate(r),e},"getThemeVariables"),ib=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=m("#cde498",10),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.primaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=f(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||f(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||f(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=f(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||f(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||z(this["cScale"+r],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,s:-30,l:-(8+r*5)});if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||m(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||m(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-30}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||lt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||lt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},ob=t((r)=>{let e=new ib;return e.calculate(r),e},"getThemeVariables"),sb=class{static{t(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=m(this.contrast,55),this.background="#ffffff",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||m(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=m(this.contrast,55),this.border2=this.contrast,this.actorBorder=m(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||lt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||m(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||f(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{l:-(8+r*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=m(this.contrast,30),this.sectionBkgColor2=m(this.contrast,30),this.taskBorderColor=f(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=m(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=f(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??this["cScale"+r];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=f(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||z(this.primaryColor,{h:-30}),this.git4=this.pie5||z(this.primaryColor,{h:-60}),this.git5=this.pie6||z(this.primaryColor,{h:-90}),this.git6=this.pie7||z(this.primaryColor,{h:60}),this.git7=this.pie8||z(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},ab=t((r)=>{let e=new sb;return e.calculate(r),e},"getThemeVariables"),nb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?m(this.background,4):f(this.background,4));let r="#ECECFE",e="#E9E9F1",i=z(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||m(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||r,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||z(r,{h:30}),this.cScale4=this.cScale4||z(r,{h:60}),this.cScale5=this.cScale5||z(r,{h:90}),this.cScale6=this.cScale6||z(r,{h:120}),this.cScale7=this.cScale7||z(r,{h:150}),this.cScale8=this.cScale8||z(r,{h:210,l:150}),this.cScale9=this.cScale9||z(r,{h:270}),this.cScale10=this.cScale10||z(r,{h:300}),this.cScale11=this.cScale11||z(r,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=f(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=f(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||lt(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||f(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||z(r,{h:64}),this.fillType3=this.fillType3||z(e,{h:64}),this.fillType4=this.fillType4||z(r,{h:-64}),this.fillType5=this.fillType5||z(e,{h:-64}),this.fillType6=this.fillType6||z(r,{h:128}),this.fillType7=this.fillType7||z(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||i,this.pie4=this.pie4||z(r,{l:-10}),this.pie5=this.pie5||z(e,{l:-10}),this.pie6=this.pie6||z(i,{l:-10}),this.pie7=this.pie7||z(r,{h:60,l:-10}),this.pie8=this.pie8||z(r,{h:-60,l:-10}),this.pie9=this.pie9||z(r,{h:120,l:0}),this.pie10=this.pie10||z(r,{h:60,l:-20}),this.pie11=this.pie11||z(r,{h:-60,l:-20}),this.pie12=this.pie12||z(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},lb=t((r)=>{let e=new nb;return e.calculate(r),e},"getThemeVariables"),hb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=m(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=m(lt("#323D47"),10),this.border1="#ccc",this.border2=Ie(255,255,255,0.25),this.arrowheadColor=lt(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?m(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||m(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||lt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}};var cb=t((r)=>{let e=new hb;return e.calculate(r),e},"getThemeVariables"),ub=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ue("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?m(this.background,4):f(this.background,4));let r="#ECECFE",e="#E9E9F1",i=z(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||m(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=this.mainBkg;if(this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=f(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=f(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||lt(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||f(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||z(r,{h:64}),this.fillType3=this.fillType3||z(e,{h:64}),this.fillType4=this.fillType4||z(r,{h:-64}),this.fillType5=this.fillType5||z(e,{h:-64}),this.fillType6=this.fillType6||z(r,{h:128}),this.fillType7=this.fillType7||z(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||i,this.pie4=this.pie4||z(r,{l:-10}),this.pie5=this.pie5||z(e,{l:-10}),this.pie6=this.pie6||z(i,{l:-10}),this.pie7=this.pie7||z(r,{h:60,l:-10}),this.pie8=this.pie8||z(r,{h:-60,l:-10}),this.pie9=this.pie9||z(r,{h:120,l:0}),this.pie10=this.pie10||z(r,{h:60,l:-20}),this.pie11=this.pie11||z(r,{h:-60,l:-20}),this.pie12=this.pie12||z(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},fb=t((r)=>{let e=new ub;return e.calculate(r),e},"getThemeVariables"),db=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=m(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=m(lt("#323D47"),10),this.border1="#ccc",this.border2=Ie(255,255,255,0.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?m(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||m(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=f(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||lt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},pb=t((r)=>{let e=new db;return e.calculate(r),e},"getThemeVariables"),gb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ue("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?m(this.background,4):f(this.background,4));let r="#ECECFE",e="#E9E9F1",i=z(r,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||m(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||lt(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||f(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||z(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor;for(let o=0;o<8;o++)this["fillType"+o]=this["fillType"+o]||this.bkgColorArray[o];for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["pie"+(o+1)]=this["pie"+(o+1)]||this["cScale"+o];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let o=0;o<8;o++)this["venn"+(o+1)]=this["venn"+(o+1)]??this.borderColorArray[o%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},mb=t((r)=>{let e=new gb;return e.calculate(r),e},"getThemeVariables"),yb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=m(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=m(lt("#323D47"),10),this.border1="#ccc",this.border2=Ie(255,255,255,0.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?m(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||f(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||m(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||lt(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)if(this.darkMode)this["cScalePeer"+i]=this["cScalePeer"+i]||m(this["cScale"+i],10);else this["cScalePeer"+i]=this["cScalePeer"+i]||f(this["cScale"+i],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=f(this["cScale"+i],75);let r=this.darkMode?-4:-1;for(let i=0;i<5;i++)this["surface"+i]=this["surface"+i]||z(this.mainBkg,{h:180,s:-15,l:r*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||z(this.mainBkg,{h:180,s:-15,l:r*(8+i*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((i,s)=>{this["fillType"+s]=this["fillType"+s]||i});for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["pie"+(i+1)]=this["pie"+(i+1)]||this["cScale"+i];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let i=0;i<8;i++)this["venn"+(i+1)]=this["venn"+(i+1)]??this.borderColorArray[i%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?m(this.quadrant1Fill):f(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?f(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);else this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);this.gitInv0=this.gitInv0||lt(this.git0),this.gitInv1=this.gitInv1||lt(this.git1),this.gitInv2=this.gitInv2||lt(this.git2),this.gitInv3=this.gitInv3||lt(this.git3),this.gitInv4=this.gitInv4||lt(this.git4),this.gitInv5=this.gitInv5||lt(this.git5),this.gitInv6=this.gitInv6||lt(this.git6),this.gitInv7=this.gitInv7||lt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=Dr(this[i],r[i])})}},xb=t((r)=>{let e=new yb;return e.calculate(r),e},"getThemeVariables"),Xn={base:{getThemeVariables:JC},dark:{getThemeVariables:eb},default:{getThemeVariables:He},forest:{getThemeVariables:ob},neutral:{getThemeVariables:ab},neo:{getThemeVariables:lb},"neo-dark":{getThemeVariables:cb},redux:{getThemeVariables:fb},"redux-dark":{getThemeVariables:pb},"redux-color":{getThemeVariables:mb},"redux-dark-color":{getThemeVariables:xb}},qe={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},fp={...qe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:Xn.default.getThemeVariables(),sequence:{...qe.sequence,messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:t(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:t(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:qe.class?.theme,look:qe.class?.look,layout:qe.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...qe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...qe.c4,useWidth:void 0,personFont:t(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...qe.flowchart,inheritDir:!1},external_personFont:t(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:t(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:t(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:t(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:t(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:t(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:t(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:t(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:t(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:t(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:t(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:t(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:t(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:t(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:t(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:t(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:t(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:t(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:t(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:t(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...qe.pie,useWidth:984},xyChart:{...qe.xyChart,useWidth:void 0},requirement:{...qe.requirement,useWidth:void 0},packet:{...qe.packet},eventmodeling:{...qe.eventmodeling},treeView:{...qe.treeView,useWidth:void 0},radar:{...qe.radar},usecase:{...qe.usecase},railroad:{...qe.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...qe.ishikawa},sankey:{...qe.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...qe.venn},cynefin:{...qe.cynefin}},dp=t((r,e="")=>Object.keys(r).reduce((i,s)=>{if(Array.isArray(r[s]))return i;else if(typeof r[s]==="object"&&r[s]!==null)return[...i,e+s,...dp(r[s],"")];return[...i,e+s]},[]),"keyify"),Cb=new Set(dp(fp,"")),B=fp,bb={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},kb=t((r)=>bb[r]??r,"getDiagramConfigKey"),wb={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Sb=t((r,e)=>{for(let i of Object.keys(r)){let s=r[i];if(i.startsWith("__")||i.includes("proto")||i.includes("constr")||typeof s!=="string"||!e.test(s))a.debug("sanitize deleting dictionary entry:",i,s),delete r[i]}},"sanitizeDictionaryConfig"),As=t((r)=>{if(a.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((e)=>As(e));return}for(let e of Object.keys(r)){if(a.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cb.has(e)||r[e]==null){a.debug("sanitize deleting key: ",e),delete r[e];continue}if(typeof r[e]==="object"){let s=wb[e];if(s)Sb(r[e],s);else a.debug("sanitizing object",e),As(r[e]);continue}let i=["themeCSS","fontFamily","altFontFamily"];for(let s of i)if(e.includes(s))a.debug("sanitizing css option",e),r[e]=Ns(r[e])}if(r.themeVariables)for(let e of Object.keys(r.themeVariables)){let i=r.themeVariables[e];if(i?.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[e]=""}a.debug("After sanitization",r)},"sanitizeDirective"),Ns=t((r)=>{let e=0,i=0;for(let s of r){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";if(s==="{")e++;else if(s==="}")i++}if(e!==i)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),cr=Object.freeze(B),Tb=["theme","look","layout"],_b=new Set(["classic","handDrawn","neo"]),Bb=t((r,e)=>{if(r==="theme")return e==="null"||Object.hasOwn(Xn,e);return r!=="look"||_b.has(e)},"isUsableAppearance"),vb=t((r,e,i)=>{if(!r)return;return[r[e]?.[i],r[i]].find((o)=>o!==void 0&&Bb(i,o))},"readAppearance"),on=t((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),nr=Ce({},cr),En,In={},di=[],vs=Ce({},cr),Ls,Lb=t((r,e)=>{if(!Ls)return;let i=[e,...[...di].reverse(),In,cr],s=r[Ls];for(let o of Tb)for(let n of i){let c=vb(n,Ls,o);if(c===void 0)continue;if(r[o]=c,s?.[o]!==void 0)s[o]=c;break}},"resolveAppearance"),fo=t((r,e)=>{let i=Ce({},r),s={};for(let n of e)pp(n),s=Ce(s,n);if(i=Ce(i,s),Lb(i,s),(Boolean(s.theme)||i.theme!==r.theme)&&i.theme&&Object.hasOwn(Xn,i.theme)){let n=Ce({},En),c=Ce(n.themeVariables||{},s.themeVariables);i.themeVariables=Xn[i.theme].getThemeVariables(c)}return vs=i,Ab(vs),vs},"updateCurrentConfig"),xo=t((r)=>{Ls=r===void 0?void 0:kb(r),fo(nr,di)},"setDiagramConfigScope"),ol=t((r)=>{if(nr=Ce({},cr),nr=Ce(nr,r),In=Ce({},r),r.theme&&Object.hasOwn(Xn,r.theme))nr.themeVariables=Xn[r.theme].getThemeVariables(r.themeVariables);return fo(nr,di),nr},"setSiteConfig"),sl=t((r)=>{En=Ce({},r)},"saveConfigFromInitialize"),ll=t((r)=>(nr=Ce(nr,r),In=Ce(In,r),fo(nr,di),nr),"updateSiteConfig"),Ms=t(()=>Ce({},nr),"getSiteConfig"),Ps=t((r)=>(fo(vs,[r]),S()),"setConfig"),S=t(()=>Ce({},vs),"getConfig"),pp=t((r)=>{if(!r)return;["secure",...nr.secure??[]].forEach((e)=>{if(Object.hasOwn(r,e))a.debug(`Denied attempt to modify a secure key ${e}`,r[e]),delete r[e]}),Object.keys(r).forEach((e)=>{if(e.startsWith("__"))delete r[e]}),Object.keys(r).forEach((e)=>{if(typeof r[e]==="string"&&(r[e].includes("<")||r[e].includes(">")||r[e].includes("url(data:")))delete r[e];if(typeof r[e]==="object")pp(r[e])})},"sanitize"),cl=t((r)=>{if(As(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};di.push(r),fo(nr,di)},"addDirective"),_i=t((r=nr)=>{di=[],Ls=void 0,fo(r,di)},"reset"),Fb={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},np={},gp=t((r)=>{if(np[r])return;a.warn(Fb[r]),np[r]=!0},"issueWarning"),Ab=t((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)gp("LAZY_LOAD_DEPRECATED")},"checkConfig"),ul=t(()=>{let r={};if(En)r=Ce(r,En);for(let e of di)r=Ce(r,e);return r},"getUserDefinedConfig"),Ye=t((r)=>{if(r.flowchart?.htmlLabels!=null)gp("FLOWCHART_HTML_LABELS_DEPRECATED");return on(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),Jr=/<\/?br\s*\/?>/gi,Mb=new RegExp(Jr.source,"i"),Eb=t((r)=>{if(!r)return[""];return xp(r).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Ob=(()=>{let r=!1;return()=>{if(!r)mp(),r=!0}})();function mp(){at.addHook("beforeSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("target"))e.setAttribute("data-temp-href-target",e.getAttribute("target")??"")}),at.addHook("afterSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("data-temp-href-target")){if(e.setAttribute("target",e.getAttribute("data-temp-href-target")??""),e.removeAttribute("data-temp-href-target"),e.getAttribute("target")==="_blank")e.setAttribute("rel","noopener")}})}t(mp,"setupDompurifyHooks");var yp=t((r)=>(Ob(),at.sanitize(r)),"removeScript"),lp=t((r,e)=>{if(Ye(e)){let i=e.securityLevel;if(i==="antiscript"||i==="strict"||i==="sandbox")r=yp(r);else if(i!=="loose")r=xp(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=Pb(r)}return r},"sanitizeMore"),j=t((r,e)=>{if(!r)return r;if(e.dompurifyConfig)r=at.sanitize(lp(r,e),e.dompurifyConfig).toString();else r=at.sanitize(lp(r,e),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),Ib=t((r,e)=>{if(typeof r==="string")return j(r,e);return r.flat().map((i)=>j(i,e))},"sanitizeTextOrArray"),$b=t((r)=>Mb.test(r),"hasBreaks"),Db=t((r)=>r.split(Jr),"splitBreaks"),Pb=t((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xp=t((r)=>r.replace(Jr,"#br#"),"breakToPlaceholder"),Os=t((r)=>{let e="";if(r)e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e);return e},"getUrl"),Rb=t(function(...r){let e=r.filter((i)=>!isNaN(i));return Math.max(...e)},"getMax"),qb=t(function(...r){let e=r.filter((i)=>!isNaN(i));return Math.min(...e)},"getMin"),Kn=t(function(r){let e=r.split(/(,)/),i=[];for(let s=0;s<e.length;s++){let o=e[s];if(o===","&&s>0&&s+1<e.length){let n=e[s-1],c=e[s+1];if(Nb(n,c))o=n+","+c,s++,i.pop()}i.push(Wb(o))}return i.join("")},"parseGenericTypes"),Rh=t((r,e)=>Math.max(0,r.split(e).length-1),"countOccurrence"),Nb=t((r,e)=>{let i=Rh(r,"~"),s=Rh(e,"~");return i===1&&s===1},"shouldCombineSets"),Wb=t((r)=>{let e=Rh(r,"~"),i=!1;if(e<=1)return r;if(e%2!==0&&r.startsWith("~"))r=r.substring(1),i=!0;let s=[...r],o=s.indexOf("~"),n=s.lastIndexOf("~");while(o!==-1&&n!==-1&&o!==n)s[o]="<",s[n]=">",o=s.indexOf("~"),n=s.lastIndexOf("~");if(i)s.unshift("~");return s.join("")},"processSet"),hp=t(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Ln=/\$\$(.*?)\$\$/g,Oe=t((r)=>(r.match(Ln)?.length??0)>0,"hasKatex"),Ba=t(async(r,e)=>{let i=document.createElement("div");i.innerHTML=await Fa(r,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",i);let o={width:i.clientWidth,height:i.clientHeight};return i.remove(),o},"calculateMathMLDimensions"),zb=t(async(r,e)=>{if(!Oe(r))return r;if(!(hp()||e.legacyMathML||e.forceLegacyMathML))return r.replace(Ln,"MathML is unsupported in this environment.");{let{default:i}=await (C("nj0cv1cq"),import("./chunk-nj0cv1cq.js")),s=e.forceLegacyMathML||!hp()&&e.legacyMathML?"htmlAndMathml":"mathml";return r.split(Jr).map((o)=>Oe(o)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${o}</div>`:`<div>${o}</div>`).join("").replace(Ln,(o,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:s}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(Ln,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),Fa=t(async(r,e)=>j(await zb(r,e),e),"renderKatexSanitized"),k={getRows:Eb,sanitizeText:j,sanitizeTextOrArray:Ib,hasBreaks:$b,splitBreaks:Db,lineBreakRegex:Jr,removeScript:yp,getUrl:Os,evaluate:on,getMax:Rb,getMin:qb},Hb=t(function(r,e){for(let i of e)r.attr(i[0],i[1])},"d3Attrs"),Yb=t(function(r,e,i){let s=new Map;if(i)s.set("width","100%"),s.set("style",`max-width: ${e}px;`);else s.set("height",r),s.set("width",e);return s},"calculateSvgSizeAttrs"),G=t(function(r,e,i,s){let o=Yb(e,i,s);Hb(r,o)},"configureSvgSize"),sn=t(function(r,e,i,s){let o=e.node().getBBox(),{width:n,height:c}=o;a.info(`SVG bounds: ${n}x${c}`,o);let l=0,p=0;a.info(`Graph bounds: ${l}x${p}`,r),l=n+i*2,p=c+i*2,a.info(`Calculated bounds: ${l}x${p}`),G(e,p,l,s);let y=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;e.attr("viewBox",y)},"setupGraphViewbox"),Fn={};function _o(r){return[...r.cssRules].map((e)=>e.cssText).join(`
|
|
7
|
-
`)}t(_o,"cssStyleSheetToString");var Ub=t((r,e,i,s)=>{let o="";if(r in Fn&&Fn[r])o=Fn[r]({...i,svgId:s});else a.warn(`No theme found for ${r}`);return`& {
|
|
8
|
-
font-family: ${i.fontFamily};
|
|
9
|
-
font-size: ${i.fontSize};
|
|
10
|
-
fill: ${i.textColor}
|
|
11
|
-
}
|
|
12
|
-
@keyframes edge-animation-frame {
|
|
13
|
-
from {
|
|
14
|
-
stroke-dashoffset: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
@keyframes dash {
|
|
18
|
-
to {
|
|
19
|
-
stroke-dashoffset: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
& .edge-animation-slow {
|
|
23
|
-
stroke-dasharray: 9,5 !important;
|
|
24
|
-
stroke-dashoffset: 900;
|
|
25
|
-
animation: dash 50s linear infinite;
|
|
26
|
-
stroke-linecap: round;
|
|
27
|
-
}
|
|
28
|
-
& .edge-animation-fast {
|
|
29
|
-
stroke-dasharray: 9,5 !important;
|
|
30
|
-
stroke-dashoffset: 900;
|
|
31
|
-
animation: dash 20s linear infinite;
|
|
32
|
-
stroke-linecap: round;
|
|
33
|
-
}
|
|
34
|
-
/* Classes common for multiple diagrams */
|
|
35
|
-
|
|
36
|
-
& .error-icon {
|
|
37
|
-
fill: ${i.errorBkgColor};
|
|
38
|
-
}
|
|
39
|
-
& .error-text {
|
|
40
|
-
fill: ${i.errorTextColor};
|
|
41
|
-
stroke: ${i.errorTextColor};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& .edge-thickness-normal {
|
|
45
|
-
stroke-width: ${i.strokeWidth??1}px;
|
|
46
|
-
}
|
|
47
|
-
& .edge-thickness-thick {
|
|
48
|
-
stroke-width: 3.5px
|
|
49
|
-
}
|
|
50
|
-
& .edge-pattern-solid {
|
|
51
|
-
stroke-dasharray: 0;
|
|
52
|
-
}
|
|
53
|
-
& .edge-thickness-invisible {
|
|
54
|
-
stroke-width: 0;
|
|
55
|
-
fill: none;
|
|
56
|
-
}
|
|
57
|
-
& .edge-pattern-dashed{
|
|
58
|
-
stroke-dasharray: 3;
|
|
59
|
-
}
|
|
60
|
-
.edge-pattern-dotted {
|
|
61
|
-
stroke-dasharray: 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& .marker {
|
|
65
|
-
fill: ${i.lineColor};
|
|
66
|
-
stroke: ${i.lineColor};
|
|
67
|
-
}
|
|
68
|
-
& .marker.cross {
|
|
69
|
-
stroke: ${i.lineColor};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
& svg {
|
|
73
|
-
font-family: ${i.fontFamily};
|
|
74
|
-
font-size: ${i.fontSize};
|
|
75
|
-
}
|
|
76
|
-
& p {
|
|
77
|
-
margin: 0
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
${o}
|
|
81
|
-
.node .neo-node {
|
|
82
|
-
stroke: ${i.nodeBorder};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
86
|
-
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
87
|
-
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
88
|
-
}
|
|
89
|
-
[data-look="neo"].swimlane.cluster rect {
|
|
90
|
-
filter: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
[data-look="neo"].node path {
|
|
95
|
-
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
96
|
-
stroke-width: ${i.strokeWidth??1}px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
[data-look="neo"].node .outer-path {
|
|
100
|
-
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[data-look="neo"].node .neo-line path {
|
|
104
|
-
stroke: ${i.nodeBorder};
|
|
105
|
-
filter: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[data-look="neo"].node circle{
|
|
109
|
-
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
110
|
-
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[data-look="neo"].node circle .state-start{
|
|
114
|
-
fill: #000000;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
[data-look="neo"].icon-shape .icon {
|
|
118
|
-
fill: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
119
|
-
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
[data-look="neo"].icon-shape .icon-neo path {
|
|
123
|
-
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
124
|
-
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
${e}
|
|
128
|
-
`},"getStyles"),jb=t((r,e)=>{if(e!==void 0)Fn[r]=e},"addStylesForDiagram"),dl=Ub,wo={};Zn(wo,{clear:()=>A,getAccDescription:()=>D,getAccTitle:()=>I,getDiagramTitle:()=>N,setAccDescription:()=>L,setAccTitle:()=>R,setDiagramTitle:()=>P});var qh="",Nh="",Wh="",zh=t((r)=>j(r,S()),"sanitizeText"),A=t(()=>{qh="",Wh="",Nh=""},"clear"),R=t((r)=>{qh=zh(r).replace(/^\s+/g,"")},"setAccTitle"),I=t(()=>qh,"getAccTitle"),L=t((r)=>{Wh=zh(r).replace(/\n\s+/g,`
|
|
129
|
-
`)},"setAccDescription"),D=t(()=>Wh,"getAccDescription"),P=t((r)=>{Nh=zh(r)},"setDiagramTitle"),N=t(()=>Nh,"getDiagramTitle"),cp=a,Gb=xi,u=S,ur=Ps,Mr=cr,Dn=t((r)=>j(r,u()),"sanitizeText"),za=sn,Xb=t(()=>wo,"getCommonDb"),$n={},wi=t((r,e,i)=>{if($n[r])cp.warn(`Diagram with id ${r} already registered. Overwriting.`);if($n[r]=e,i)up(r,i);jb(r,e.styles),e.injectUtils?.(cp,Gb,u,Dn,za,Xb(),()=>{})},"registerDiagram"),ko=t((r)=>{if(r in $n)return $n[r];throw new Vb(r)},"getDiagram"),Vb=class extends Error{static{t(this,"DiagramNotFoundError")}constructor(r){super(`Diagram ${r} not found.`)}};var Kb={value:()=>{}};function bp(){for(var r=0,e=arguments.length,i={},s;r<e;++r){if(!(s=arguments[r]+"")||s in i||/[\s.]/.test(s))throw Error("illegal type: "+s);i[s]=[]}return new Rn(i)}function Rn(r){this._=r}function Zb(r,e){return r.trim().split(/^|\s+/).map(function(i){var s="",o=i.indexOf(".");if(o>=0)s=i.slice(o+1),i=i.slice(0,o);if(i&&!e.hasOwnProperty(i))throw Error("unknown type: "+i);return{type:i,name:s}})}Rn.prototype=bp.prototype={constructor:Rn,on:function(r,e){var i=this._,s=Zb(r+"",i),o,n=-1,c=s.length;if(arguments.length<2){while(++n<c)if((o=(r=s[n]).type)&&(o=Qb(i[o],r.name)))return o;return}if(e!=null&&typeof e!=="function")throw Error("invalid callback: "+e);while(++n<c)if(o=(r=s[n]).type)i[o]=Cp(i[o],r.name,e);else if(e==null)for(o in i)i[o]=Cp(i[o],r.name,null);return this},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new Rn(r)},call:function(r,e){if((o=arguments.length-2)>0)for(var i=Array(o),s=0,o,n;s<o;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(n=this._[r],s=0,o=n.length;s<o;++s)n[s].value.apply(e,i)},apply:function(r,e,i){if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(var s=this._[r],o=0,n=s.length;o<n;++o)s[o].value.apply(e,i)}};function Qb(r,e){for(var i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===e)return o.value}function Cp(r,e,i){for(var s=0,o=r.length;s<o;++s)if(r[s].name===e){r[s]=Kb,r=r.slice(0,s).concat(r.slice(s+1));break}if(i!=null)r.push({name:e,value:i});return r}var Hh=bp;var qn="http://www.w3.org/1999/xhtml",Yh={svg:"http://www.w3.org/2000/svg",xhtml:qn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vr(r){var e=r+="",i=e.indexOf(":");if(i>=0&&(e=r.slice(0,i))!=="xmlns")r=r.slice(i+1);return Yh.hasOwnProperty(e)?{space:Yh[e],local:r}:r}function Jb(r){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===qn&&e.documentElement.namespaceURI===qn?e.createElement(r):e.createElementNS(i,r)}}function tk(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Es(r){var e=Vr(r);return(e.local?tk:Jb)(e)}function ek(){}function Ni(r){return r==null?ek:function(){return this.querySelector(r)}}function Uh(r){if(typeof r!=="function")r=Ni(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],c=n.length,l=s[o]=Array(c),p,y,d=0;d<c;++d)if((p=n[d])&&(y=r.call(p,p.__data__,d,n))){if("__data__"in p)y.__data__=p.__data__;l[d]=y}return new $e(s,this._parents)}function jh(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function rk(){return[]}function po(r){return r==null?rk:function(){return this.querySelectorAll(r)}}function ik(r){return function(){return jh(r.apply(this,arguments))}}function Gh(r){if(typeof r==="function")r=ik(r);else r=po(r);for(var e=this._groups,i=e.length,s=[],o=[],n=0;n<i;++n)for(var c=e[n],l=c.length,p,y=0;y<l;++y)if(p=c[y])s.push(r.call(p,p.__data__,y,c)),o.push(p);return new $e(s,o)}function go(r){return function(){return this.matches(r)}}function Nn(r){return function(e){return e.matches(r)}}var ok=Array.prototype.find;function sk(r){return function(){return ok.call(this.children,r)}}function ak(){return this.firstElementChild}function Xh(r){return this.select(r==null?ak:sk(typeof r==="function"?r:Nn(r)))}var nk=Array.prototype.filter;function lk(){return Array.from(this.children)}function hk(r){return function(){return nk.call(this.children,r)}}function Vh(r){return this.selectAll(r==null?lk:hk(typeof r==="function"?r:Nn(r)))}function Kh(r){if(typeof r!=="function")r=go(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],c=n.length,l=s[o]=[],p,y=0;y<c;++y)if((p=n[y])&&r.call(p,p.__data__,y,n))l.push(p);return new $e(s,this._parents)}function Rs(r){return Array(r.length)}function Zh(){return new $e(this._enter||this._groups.map(Rs),this._parents)}function Xs(r,e){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=e}Xs.prototype={constructor:Xs,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Qh(r){return function(){return r}}function ck(r,e,i,s,o,n){var c=0,l,p=e.length,y=n.length;for(;c<y;++c)if(l=e[c])l.__data__=n[c],s[c]=l;else i[c]=new Xs(r,n[c]);for(;c<p;++c)if(l=e[c])o[c]=l}function uk(r,e,i,s,o,n,c){var l,p,y=new Map,d=e.length,x=n.length,b=Array(d),_;for(l=0;l<d;++l)if(p=e[l])if(b[l]=_=c.call(p,p.__data__,l,e)+"",y.has(_))o[l]=p;else y.set(_,p);for(l=0;l<x;++l)if(_=c.call(r,n[l],l,n)+"",p=y.get(_))s[l]=p,p.__data__=n[l],y.delete(_);else i[l]=new Xs(r,n[l]);for(l=0;l<d;++l)if((p=e[l])&&y.get(b[l])===p)o[l]=p}function fk(r){return r.__data__}function Jh(r,e){if(!arguments.length)return Array.from(this,fk);var i=e?uk:ck,s=this._parents,o=this._groups;if(typeof r!=="function")r=Qh(r);for(var n=o.length,c=Array(n),l=Array(n),p=Array(n),y=0;y<n;++y){var d=s[y],x=o[y],b=x.length,_=dk(r.call(d,d&&d.__data__,y,s)),v=_.length,M=l[y]=Array(v),q=c[y]=Array(v),W=p[y]=Array(b);i(d,x,M,q,W,_,e);for(var H=0,K=0,J,tt;H<v;++H)if(J=M[H]){if(H>=K)K=H+1;while(!(tt=q[K])&&++K<v);J._next=tt||null}}return c=new $e(c,s),c._enter=l,c._exit=p,c}function dk(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function tc(){return new $e(this._exit||this._groups.map(Rs),this._parents)}function ec(r,e,i){var s=this.enter(),o=this,n=this.exit();if(typeof r==="function"){if(s=r(s),s)s=s.selection()}else s=s.append(r+"");if(e!=null){if(o=e(o),o)o=o.selection()}if(i==null)n.remove();else i(n);return s&&o?s.merge(o).order():o}function rc(r){var e=r.selection?r.selection():r;for(var i=this._groups,s=e._groups,o=i.length,n=s.length,c=Math.min(o,n),l=Array(o),p=0;p<c;++p)for(var y=i[p],d=s[p],x=y.length,b=l[p]=Array(x),_,v=0;v<x;++v)if(_=y[v]||d[v])b[v]=_;for(;p<o;++p)l[p]=i[p];return new $e(l,this._parents)}function ic(){for(var r=this._groups,e=-1,i=r.length;++e<i;)for(var s=r[e],o=s.length-1,n=s[o],c;--o>=0;)if(c=s[o]){if(n&&c.compareDocumentPosition(n)^4)n.parentNode.insertBefore(c,n);n=c}return this}function oc(r){if(!r)r=pk;function e(x,b){return x&&b?r(x.__data__,b.__data__):!x-!b}for(var i=this._groups,s=i.length,o=Array(s),n=0;n<s;++n){for(var c=i[n],l=c.length,p=o[n]=Array(l),y,d=0;d<l;++d)if(y=c[d])p[d]=y;p.sort(e)}return new $e(o,this._parents).order()}function pk(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}function sc(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function ac(){return Array.from(this)}function nc(){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var s=r[e],o=0,n=s.length;o<n;++o){var c=s[o];if(c)return c}return null}function lc(){let r=0;for(let e of this)++r;return r}function hc(){return!this.node()}function cc(r){for(var e=this._groups,i=0,s=e.length;i<s;++i)for(var o=e[i],n=0,c=o.length,l;n<c;++n)if(l=o[n])r.call(l,l.__data__,n,o);return this}function gk(r){return function(){this.removeAttribute(r)}}function mk(r){return function(){this.removeAttributeNS(r.space,r.local)}}function yk(r,e){return function(){this.setAttribute(r,e)}}function xk(r,e){return function(){this.setAttributeNS(r.space,r.local,e)}}function Ck(r,e){return function(){var i=e.apply(this,arguments);if(i==null)this.removeAttribute(r);else this.setAttribute(r,i)}}function bk(r,e){return function(){var i=e.apply(this,arguments);if(i==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,i)}}function uc(r,e){var i=Vr(r);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((e==null?i.local?mk:gk:typeof e==="function"?i.local?bk:Ck:i.local?xk:yk)(i,e))}function Ks(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function kk(r){return function(){this.style.removeProperty(r)}}function wk(r,e,i){return function(){this.style.setProperty(r,e,i)}}function Sk(r,e,i){return function(){var s=e.apply(this,arguments);if(s==null)this.style.removeProperty(r);else this.style.setProperty(r,s,i)}}function fc(r,e,i){return arguments.length>1?this.each((e==null?kk:typeof e==="function"?Sk:wk)(r,e,i==null?"":i)):Wi(this.node(),r)}function Wi(r,e){return r.style.getPropertyValue(e)||Ks(r).getComputedStyle(r,null).getPropertyValue(e)}function Tk(r){return function(){delete this[r]}}function _k(r,e){return function(){this[r]=e}}function Bk(r,e){return function(){var i=e.apply(this,arguments);if(i==null)delete this[r];else this[r]=i}}function dc(r,e){return arguments.length>1?this.each((e==null?Tk:typeof e==="function"?Bk:_k)(r,e)):this.node()[r]}function kp(r){return r.trim().split(/^|\s+/)}function pc(r){return r.classList||new wp(r)}function wp(r){this._node=r,this._names=kp(r.getAttribute("class")||"")}wp.prototype={add:function(r){var e=this._names.indexOf(r);if(e<0)this._names.push(r),this._node.setAttribute("class",this._names.join(" "))},remove:function(r){var e=this._names.indexOf(r);if(e>=0)this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(r){return this._names.indexOf(r)>=0}};function Sp(r,e){var i=pc(r),s=-1,o=e.length;while(++s<o)i.add(e[s])}function Tp(r,e){var i=pc(r),s=-1,o=e.length;while(++s<o)i.remove(e[s])}function vk(r){return function(){Sp(this,r)}}function Lk(r){return function(){Tp(this,r)}}function Fk(r,e){return function(){(e.apply(this,arguments)?Sp:Tp)(this,r)}}function gc(r,e){var i=kp(r+"");if(arguments.length<2){var s=pc(this.node()),o=-1,n=i.length;while(++o<n)if(!s.contains(i[o]))return!1;return!0}return this.each((typeof e==="function"?Fk:e?vk:Lk)(i,e))}function Ak(){this.textContent=""}function Mk(r){return function(){this.textContent=r}}function Ek(r){return function(){var e=r.apply(this,arguments);this.textContent=e==null?"":e}}function mc(r){return arguments.length?this.each(r==null?Ak:(typeof r==="function"?Ek:Mk)(r)):this.node().textContent}function Ok(){this.innerHTML=""}function Ik(r){return function(){this.innerHTML=r}}function $k(r){return function(){var e=r.apply(this,arguments);this.innerHTML=e==null?"":e}}function yc(r){return arguments.length?this.each(r==null?Ok:(typeof r==="function"?$k:Ik)(r)):this.node().innerHTML}function Dk(){if(this.nextSibling)this.parentNode.appendChild(this)}function xc(){return this.each(Dk)}function Pk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Cc(){return this.each(Pk)}function bc(r){var e=typeof r==="function"?r:Es(r);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Rk(){return null}function kc(r,e){var i=typeof r==="function"?r:Es(r),s=e==null?Rk:typeof e==="function"?e:Ni(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function qk(){var r=this.parentNode;if(r)r.removeChild(this)}function wc(){return this.each(qk)}function Nk(){var r=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Wk(){var r=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Sc(r){return this.select(r?Wk:Nk)}function Tc(r){return arguments.length?this.property("__data__",r):this.node().__data__}function zk(r){return function(e){r.call(this,e,this.__data__)}}function Hk(r){return r.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0)i=e.slice(s+1),e=e.slice(0,s);return{type:e,name:i}})}function Yk(r){return function(){var e=this.__on;if(!e)return;for(var i=0,s=-1,o=e.length,n;i<o;++i)if(n=e[i],(!r.type||n.type===r.type)&&n.name===r.name)this.removeEventListener(n.type,n.listener,n.options);else e[++s]=n;if(++s)e.length=s;else delete this.__on}}function Uk(r,e,i){return function(){var s=this.__on,o,n=zk(e);if(s){for(var c=0,l=s.length;c<l;++c)if((o=s[c]).type===r.type&&o.name===r.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=n,o.options=i),o.value=e;return}}if(this.addEventListener(r.type,n,i),o={type:r.type,name:r.name,value:e,listener:n,options:i},!s)this.__on=[o];else s.push(o)}}function _c(r,e,i){var s=Hk(r+""),o,n=s.length,c;if(arguments.length<2){var l=this.node().__on;if(l){for(var p=0,y=l.length,d;p<y;++p)for(o=0,d=l[p];o<n;++o)if((c=s[o]).type===d.type&&c.name===d.name)return d.value}return}l=e?Uk:Yk;for(o=0;o<n;++o)this.each(l(s[o],e,i));return this}function _p(r,e,i){var s=Ks(r),o=s.CustomEvent;if(typeof o==="function")o=new o(e,i);else if(o=s.document.createEvent("Event"),i)o.initEvent(e,i.bubbles,i.cancelable),o.detail=i.detail;else o.initEvent(e,!1,!1);r.dispatchEvent(o)}function jk(r,e){return function(){return _p(this,r,e)}}function Gk(r,e){return function(){return _p(this,r,e.apply(this,arguments))}}function Bc(r,e){return this.each((typeof e==="function"?Gk:jk)(r,e))}function*vc(){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var s=r[e],o=0,n=s.length,c;o<n;++o)if(c=s[o])yield c}var Lc=[null];function $e(r,e){this._groups=r,this._parents=e}function Bp(){return new $e([[document.documentElement]],Lc)}function Xk(){return this}$e.prototype=Bp.prototype={constructor:$e,select:Uh,selectAll:Gh,selectChild:Xh,selectChildren:Vh,filter:Kh,data:Jh,enter:Zh,exit:tc,join:ec,merge:rc,selection:Xk,order:ic,sort:oc,call:sc,nodes:ac,node:nc,size:lc,empty:hc,each:cc,attr:uc,style:fc,property:dc,classed:gc,text:mc,html:yc,raise:xc,lower:Cc,append:bc,insert:kc,remove:wc,clone:Sc,datum:Tc,on:_c,dispatch:Bc,[Symbol.iterator]:vc};var pi=Bp;function h(r){return typeof r==="string"?new $e([[document.querySelector(r)]],[document.documentElement]):new $e([[r]],Lc)}function Pr(r,e,i){r.prototype=e.prototype=i,i.constructor=r}function Ua(r,e){var i=Object.create(r.prototype);for(var s in e)i[s]=e[s];return i}function Or(){}var Zs=0.7,Hn=1/Zs,mo="\\s*([+-]?\\d+)\\s*",Qs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${mo},${mo},${mo}\\)$`),Zk=new RegExp(`^rgb\\(${Kr},${Kr},${Kr}\\)$`),Qk=new RegExp(`^rgba\\(${mo},${mo},${mo},${Qs}\\)$`),Jk=new RegExp(`^rgba\\(${Kr},${Kr},${Kr},${Qs}\\)$`),t1=new RegExp(`^hsl\\(${Qs},${Kr},${Kr}\\)$`),e1=new RegExp(`^hsla\\(${Qs},${Kr},${Kr},${Qs}\\)$`),vp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Pr(Or,Mn,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Lp,formatHex:Lp,formatHex8:r1,formatHsl:i1,formatRgb:Fp,toString:Fp});function Lp(){return this.rgb().formatHex()}function r1(){return this.rgb().formatHex8()}function i1(){return $p(this).formatHsl()}function Fp(){return this.rgb().formatRgb()}function Mn(r){var e,i;return r=(r+"").trim().toLowerCase(),(e=Vk.exec(r))?(i=e[1].length,e=parseInt(e[1],16),i===6?Ap(e):i===3?new St(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Wn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Wn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Kk.exec(r))?new St(e[1],e[2],e[3],1):(e=Zk.exec(r))?new St(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qk.exec(r))?Wn(e[1],e[2],e[3],e[4]):(e=Jk.exec(r))?Wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=t1.exec(r))?Op(e[1],e[2]/100,e[3]/100,1):(e=e1.exec(r))?Op(e[1],e[2]/100,e[3]/100,e[4]):vp.hasOwnProperty(r)?Ap(vp[r]):r==="transparent"?new St(NaN,NaN,NaN,0):null}function Ap(r){return new St(r>>16&255,r>>8&255,r&255,1)}function Wn(r,e,i,s){if(s<=0)r=e=i=NaN;return new St(r,e,i,s)}function $s(r){if(!(r instanceof Or))r=Mn(r);if(!r)return new St;return r=r.rgb(),new St(r.r,r.g,r.b,r.opacity)}function yo(r,e,i,s){return arguments.length===1?$s(r):new St(r,e,i,s==null?1:s)}function St(r,e,i,s){this.r=+r,this.g=+e,this.b=+i,this.opacity=+s}Pr(St,yo,Ua(Or,{brighter(r){return r=r==null?Hn:Math.pow(Hn,r),new St(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Zs:Math.pow(Zs,r),new St(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new St(Vi(this.r),Vi(this.g),Vi(this.b),Yn(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Mp,formatHex:Mp,formatHex8:o1,formatRgb:Ep,toString:Ep}));function Mp(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}`}function o1(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}${Xi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ep(){let r=Yn(this.opacity);return`${r===1?"rgb(":"rgba("}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${r===1?")":`, ${r})`}`}function Yn(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Vi(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Xi(r){return r=Vi(r),(r<16?"0":"")+r.toString(16)}function Op(r,e,i,s){if(s<=0)r=e=i=NaN;else if(i<=0||i>=1)r=e=NaN;else if(e<=0)r=NaN;return new Rr(r,e,i,s)}function $p(r){if(r instanceof Rr)return new Rr(r.h,r.s,r.l,r.opacity);if(!(r instanceof Or))r=Mn(r);if(!r)return new Rr;if(r instanceof Rr)return r;r=r.rgb();var e=r.r/255,i=r.g/255,s=r.b/255,o=Math.min(e,i,s),n=Math.max(e,i,s),c=NaN,l=n-o,p=(n+o)/2;if(l){if(e===n)c=(i-s)/l+(i<s)*6;else if(i===n)c=(s-e)/l+2;else c=(e-i)/l+4;l/=p<0.5?n+o:2-n-o,c*=60}else l=p>0&&p<1?0:c;return new Rr(c,l,p,r.opacity)}function Dp(r,e,i,s){return arguments.length===1?$p(r):new Rr(r,e,i,s==null?1:s)}function Rr(r,e,i,s){this.h=+r,this.s=+e,this.l=+i,this.opacity=+s}Pr(Rr,Dp,Ua(Or,{brighter(r){return r=r==null?Hn:Math.pow(Hn,r),new Rr(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Zs:Math.pow(Zs,r),new Rr(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<0.5?i:1-i)*e,o=2*i-s;return new St(Fc(r>=240?r-240:r+120,o,s),Fc(r,o,s),Fc(r<120?r+240:r-120,o,s),this.opacity)},clamp(){return new Rr(Ip(this.h),zn(this.s),zn(this.l),Yn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let r=Yn(this.opacity);return`${r===1?"hsl(":"hsla("}${Ip(this.h)}, ${zn(this.s)*100}%, ${zn(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Ip(r){return r=(r||0)%360,r<0?r+360:r}function zn(r){return Math.max(0,Math.min(1,r||0))}function Fc(r,e,i){return(r<60?e+(i-e)*r/60:r<180?i:r<240?e+(i-e)*(240-r)/60:e)*255}function Ac(r,e,i,s,o){var n=r*r,c=n*r;return((1-3*r+3*n-c)*e+(4-6*n+3*c)*i+(1+3*r+3*n-3*c)*s+c*o)/6}function Mc(r){var e=r.length-1;return function(i){var s=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),o=r[s],n=r[s+1],c=s>0?r[s-1]:2*o-n,l=s<e-1?r[s+2]:2*n-o;return Ac((i-s/e)*e,c,o,n,l)}}function Ec(r){var e=r.length;return function(i){var s=Math.floor(((i%=1)<0?++i:i)*e),o=r[(s+e-1)%e],n=r[s%e],c=r[(s+1)%e],l=r[(s+2)%e];return Ac((i-s/e)*e,o,n,c,l)}}var ja=(r)=>()=>r;function Pp(r,e){return function(i){return r+i*e}}function s1(r,e,i){return r=Math.pow(r,i),e=Math.pow(e,i)-r,i=1/i,function(s){return Math.pow(r+s*e,i)}}function pl(r,e){var i=e-r;return i?Pp(r,i>180||i<-180?i-360*Math.round(i/360):i):ja(isNaN(r)?e:r)}function Rp(r){return(r=+r)===1?dr:function(e,i){return i-e?s1(e,i,r):ja(isNaN(e)?i:e)}}function dr(r,e){var i=e-r;return i?Pp(r,i):ja(isNaN(r)?e:r)}var ea=function r(e){var i=Rp(e);function s(o,n){var c=i((o=yo(o)).r,(n=yo(n)).r),l=i(o.g,n.g),p=i(o.b,n.b),y=dr(o.opacity,n.opacity);return function(d){return o.r=c(d),o.g=l(d),o.b=p(d),o.opacity=y(d),o+""}}return s.gamma=r,s}(1);function qp(r){return function(e){var i=e.length,s=Array(i),o=Array(i),n=Array(i),c,l;for(c=0;c<i;++c)l=yo(e[c]),s[c]=l.r||0,o[c]=l.g||0,n[c]=l.b||0;return s=r(s),o=r(o),n=r(n),l.opacity=1,function(p){return l.r=s(p),l.g=o(p),l.b=n(p),l+""}}}var a1=qp(Mc),n1=qp(Ec);function yt(r,e){return r=+r,e=+e,function(i){return r*(1-i)+e*i}}var Ic=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oc=new RegExp(Ic.source,"g");function l1(r){return function(){return r}}function h1(r){return function(e){return r(e)+""}}function qa(r,e){var i=Ic.lastIndex=Oc.lastIndex=0,s,o,n,c=-1,l=[],p=[];r=r+"",e=e+"";while((s=Ic.exec(r))&&(o=Oc.exec(e))){if((n=o.index)>i)if(n=e.slice(i,n),l[c])l[c]+=n;else l[++c]=n;if((s=s[0])===(o=o[0]))if(l[c])l[c]+=o;else l[++c]=o;else l[++c]=null,p.push({i:c,x:yt(s,o)});i=Oc.lastIndex}if(i<e.length)if(n=e.slice(i),l[c])l[c]+=n;else l[++c]=n;return l.length<2?p[0]?h1(p[0].x):l1(e):(e=p.length,function(y){for(var d=0,x;d<e;++d)l[(x=p[d]).i]=x.x(y);return l.join("")})}var Np=180/Math.PI,Un={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jn(r,e,i,s,o,n){var c,l,p;if(c=Math.sqrt(r*r+e*e))r/=c,e/=c;if(p=r*i+e*s)i-=r*p,s-=e*p;if(l=Math.sqrt(i*i+s*s))i/=l,s/=l,p/=l;if(r*s<e*i)r=-r,e=-e,p=-p,c=-c;return{translateX:o,translateY:n,rotate:Math.atan2(e,r)*Np,skewX:Math.atan(p)*Np,scaleX:c,scaleY:l}}var Gn;function Wp(r){let e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return e.isIdentity?Un:jn(e.a,e.b,e.c,e.d,e.e,e.f)}function zp(r){if(r==null)return Un;if(!Gn)Gn=document.createElementNS("http://www.w3.org/2000/svg","g");if(Gn.setAttribute("transform",r),!(r=Gn.transform.baseVal.consolidate()))return Un;return r=r.matrix,jn(r.a,r.b,r.c,r.d,r.e,r.f)}function Hp(r,e,i,s){function o(y){return y.length?y.pop()+" ":""}function n(y,d,x,b,_,v){if(y!==x||d!==b){var M=_.push("translate(",null,e,null,i);v.push({i:M-4,x:yt(y,x)},{i:M-2,x:yt(d,b)})}else if(x||b)_.push("translate("+x+e+b+i)}function c(y,d,x,b){if(y!==d){if(y-d>180)d+=360;else if(d-y>180)y+=360;b.push({i:x.push(o(x)+"rotate(",null,s)-2,x:yt(y,d)})}else if(d)x.push(o(x)+"rotate("+d+s)}function l(y,d,x,b){if(y!==d)b.push({i:x.push(o(x)+"skewX(",null,s)-2,x:yt(y,d)});else if(d)x.push(o(x)+"skewX("+d+s)}function p(y,d,x,b,_,v){if(y!==x||d!==b){var M=_.push(o(_)+"scale(",null,",",null,")");v.push({i:M-4,x:yt(y,x)},{i:M-2,x:yt(d,b)})}else if(x!==1||b!==1)_.push(o(_)+"scale("+x+","+b+")")}return function(y,d){var x=[],b=[];return y=r(y),d=r(d),n(y.translateX,y.translateY,d.translateX,d.translateY,x,b),c(y.rotate,d.rotate,x,b),l(y.skewX,d.skewX,x,b),p(y.scaleX,y.scaleY,d.scaleX,d.scaleY,x,b),y=d=null,function(_){var v=-1,M=b.length,q;while(++v<M)x[(q=b[v]).i]=q.x(_);return x.join("")}}}var $c=Hp(Wp,"px, ","px)","deg)"),Dc=Hp(zp,", ",")",")");var Ko=0,ha=0,Js=0,Up=1000,Vn,ua,tl=0,Ki=0,el=0,fa=typeof performance==="object"&&performance.now?performance:Date,jp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function pa(){return Ki||(jp(c1),Ki=fa.now()+el)}function c1(){Ki=0}function da(){this._call=this._time=this._next=null}da.prototype=rl.prototype={constructor:da,restart:function(r,e,i){if(typeof r!=="function")throw TypeError("callback is not a function");if(i=(i==null?pa():+i)+(e==null?0:+e),!this._next&&ua!==this){if(ua)ua._next=this;else Vn=this;ua=this}this._call=r,this._time=i,Pc()},stop:function(){if(this._call)this._call=null,this._time=1/0,Pc()}};function rl(r,e,i){var s=new da;return s.restart(r,e,i),s}function Gp(){pa(),++Ko;var r=Vn,e;while(r){if((e=Ki-r._time)>=0)r._call.call(void 0,e);r=r._next}--Ko}function Yp(){Ki=(tl=fa.now())+el,Ko=ha=0;try{Gp()}finally{Ko=0,f1(),Ki=0}}function u1(){var r=fa.now(),e=r-tl;if(e>Up)el-=e,tl=r}function f1(){var r,e=Vn,i,s=1/0;while(e)if(e._call){if(s>e._time)s=e._time;r=e,e=e._next}else i=e._next,e._next=null,e=r?r._next=i:Vn=i;ua=r,Pc(s)}function Pc(r){if(Ko)return;if(ha)ha=clearTimeout(ha);var e=r-Ki;if(e>24){if(r<1/0)ha=setTimeout(Yp,r-fa.now()-el);if(Js)Js=clearInterval(Js)}else{if(!Js)tl=fa.now(),Js=setInterval(u1,Up);Ko=1,jp(Yp)}}function ga(r,e,i){var s=new da;return e=e==null?0:+e,s.restart((o)=>{s.stop(),r(o+e)},e,i),s}var d1=Hh("start","end","cancel","interrupt"),p1=[],Kp=0,Xp=1,nl=2,al=3,Vp=4,Cl=5,ma=6;function gi(r,e,i,s,o,n){var c=r.__transition;if(!c)r.__transition={};else if(i in c)return;g1(r,i,{name:e,index:s,group:o,on:d1,tween:p1,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Kp})}function ya(r,e){var i=Ve(r,e);if(i.state>Kp)throw Error("too late; already scheduled");return i}function er(r,e){var i=Ve(r,e);if(i.state>al)throw Error("too late; already running");return i}function Ve(r,e){var i=r.__transition;if(!i||!(i=i[e]))throw Error("transition not found");return i}function g1(r,e,i){var s=r.__transition,o;s[e]=i,i.timer=rl(n,0,i.time);function n(y){if(i.state=Xp,i.timer.restart(c,i.delay,i.time),i.delay<=y)c(y-i.delay)}function c(y){var d,x,b,_;if(i.state!==Xp)return p();for(d in s){if(_=s[d],_.name!==i.name)continue;if(_.state===al)return ga(c);if(_.state===Vp)_.state=ma,_.timer.stop(),_.on.call("interrupt",r,r.__data__,_.index,_.group),delete s[d];else if(+d<e)_.state=ma,_.timer.stop(),_.on.call("cancel",r,r.__data__,_.index,_.group),delete s[d]}if(ga(function(){if(i.state===al)i.state=Vp,i.timer.restart(l,i.delay,i.time),l(y)}),i.state=nl,i.on.call("start",r,r.__data__,i.index,i.group),i.state!==nl)return;i.state=al,o=Array(b=i.tween.length);for(d=0,x=-1;d<b;++d)if(_=i.tween[d].value.call(r,r.__data__,i.index,i.group))o[++x]=_;o.length=x+1}function l(y){var d=y<i.duration?i.ease.call(null,y/i.duration):(i.timer.restart(p),i.state=Cl,1),x=-1,b=o.length;while(++x<b)o[x].call(r,d);if(i.state===Cl)i.on.call("end",r,r.__data__,i.index,i.group),p()}function p(){i.state=ma,i.timer.stop(),delete s[e];for(var y in s)return;delete r.__transition}}function xa(r,e){var i=r.__transition,s,o,n=!0,c;if(!i)return;e=e==null?null:e+"";for(c in i){if((s=i[c]).name!==e){n=!1;continue}o=s.state>nl&&s.state<Cl,s.state=ma,s.timer.stop(),s.on.call(o?"interrupt":"cancel",r,r.__data__,s.index,s.group),delete i[c]}if(n)delete r.__transition}function Rc(r){return this.each(function(){xa(this,r)})}function m1(r,e){var i,s;return function(){var o=er(this,r),n=o.tween;if(n!==i){s=i=n;for(var c=0,l=s.length;c<l;++c)if(s[c].name===e){s=s.slice(),s.splice(c,1);break}}o.tween=s}}function y1(r,e,i){var s,o;if(typeof i!=="function")throw Error();return function(){var n=er(this,r),c=n.tween;if(c!==s){o=(s=c).slice();for(var l={name:e,value:i},p=0,y=o.length;p<y;++p)if(o[p].name===e){o[p]=l;break}if(p===y)o.push(l)}n.tween=o}}function qc(r,e){var i=this._id;if(r+="",arguments.length<2){var s=Ve(this.node(),i).tween;for(var o=0,n=s.length,c;o<n;++o)if((c=s[o]).name===r)return c.value;return null}return this.each((e==null?m1:y1)(i,r,e))}function Qo(r,e,i){var s=r._id;return r.each(function(){var o=er(this,s);(o.value||(o.value={}))[e]=i.apply(this,arguments)}),function(o){return Ve(o,s).value[e]}}function Ca(r,e){var i;return(typeof e==="number"?yt:e instanceof Mn?ea:(i=Mn(e))?(e=i,ea):qa)(r,e)}function x1(r){return function(){this.removeAttribute(r)}}function C1(r){return function(){this.removeAttributeNS(r.space,r.local)}}function b1(r,e,i){var s,o=i+"",n;return function(){var c=this.getAttribute(r);return c===o?null:c===s?n:n=e(s=c,i)}}function k1(r,e,i){var s,o=i+"",n;return function(){var c=this.getAttributeNS(r.space,r.local);return c===o?null:c===s?n:n=e(s=c,i)}}function w1(r,e,i){var s,o,n;return function(){var c,l=i(this),p;if(l==null)return void this.removeAttribute(r);return c=this.getAttribute(r),p=l+"",c===p?null:c===s&&p===o?n:(o=p,n=e(s=c,l))}}function S1(r,e,i){var s,o,n;return function(){var c,l=i(this),p;if(l==null)return void this.removeAttributeNS(r.space,r.local);return c=this.getAttributeNS(r.space,r.local),p=l+"",c===p?null:c===s&&p===o?n:(o=p,n=e(s=c,l))}}function Nc(r,e){var i=Vr(r),s=i==="transform"?Dc:Ca;return this.attrTween(r,typeof e==="function"?(i.local?S1:w1)(i,s,Qo(this,"attr."+r,e)):e==null?(i.local?C1:x1)(i):(i.local?k1:b1)(i,s,e))}function T1(r,e){return function(i){this.setAttribute(r,e.call(this,i))}}function _1(r,e){return function(i){this.setAttributeNS(r.space,r.local,e.call(this,i))}}function B1(r,e){var i,s;function o(){var n=e.apply(this,arguments);if(n!==s)i=(s=n)&&_1(r,n);return i}return o._value=e,o}function v1(r,e){var i,s;function o(){var n=e.apply(this,arguments);if(n!==s)i=(s=n)&&T1(r,n);return i}return o._value=e,o}function Wc(r,e){var i="attr."+r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!=="function")throw Error();var s=Vr(r);return this.tween(i,(s.local?B1:v1)(s,e))}function L1(r,e){return function(){ya(this,r).delay=+e.apply(this,arguments)}}function F1(r,e){return e=+e,function(){ya(this,r).delay=e}}function zc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?L1:F1)(e,r)):Ve(this.node(),e).delay}function A1(r,e){return function(){er(this,r).duration=+e.apply(this,arguments)}}function M1(r,e){return e=+e,function(){er(this,r).duration=e}}function Hc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?A1:M1)(e,r)):Ve(this.node(),e).duration}function E1(r,e){if(typeof e!=="function")throw Error();return function(){er(this,r).ease=e}}function Yc(r){var e=this._id;return arguments.length?this.each(E1(e,r)):Ve(this.node(),e).ease}function O1(r,e){return function(){var i=e.apply(this,arguments);if(typeof i!=="function")throw Error();er(this,r).ease=i}}function Uc(r){if(typeof r!=="function")throw Error();return this.each(O1(this._id,r))}function jc(r){if(typeof r!=="function")r=go(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],c=n.length,l=s[o]=[],p,y=0;y<c;++y)if((p=n[y])&&r.call(p,p.__data__,y,n))l.push(p);return new lr(s,this._parents,this._name,this._id)}function Gc(r){if(r._id!==this._id)throw Error();for(var e=this._groups,i=r._groups,s=e.length,o=i.length,n=Math.min(s,o),c=Array(s),l=0;l<n;++l)for(var p=e[l],y=i[l],d=p.length,x=c[l]=Array(d),b,_=0;_<d;++_)if(b=p[_]||y[_])x[_]=b;for(;l<s;++l)c[l]=e[l];return new lr(c,this._parents,this._name,this._id)}function I1(r){return(r+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");if(i>=0)e=e.slice(0,i);return!e||e==="start"})}function $1(r,e,i){var s,o,n=I1(e)?ya:er;return function(){var c=n(this,r),l=c.on;if(l!==s)(o=(s=l).copy()).on(e,i);c.on=o}}function Xc(r,e){var i=this._id;return arguments.length<2?Ve(this.node(),i).on.on(r):this.each($1(i,r,e))}function D1(r){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==r)return;if(e)e.removeChild(this)}}function Vc(){return this.on("end.remove",D1(this._id))}function Kc(r){var e=this._name,i=this._id;if(typeof r!=="function")r=Ni(r);for(var s=this._groups,o=s.length,n=Array(o),c=0;c<o;++c)for(var l=s[c],p=l.length,y=n[c]=Array(p),d,x,b=0;b<p;++b)if((d=l[b])&&(x=r.call(d,d.__data__,b,l))){if("__data__"in d)x.__data__=d.__data__;y[b]=x,gi(y[b],e,i,b,y,Ve(d,i))}return new lr(n,this._parents,e,i)}function Zc(r){var e=this._name,i=this._id;if(typeof r!=="function")r=po(r);for(var s=this._groups,o=s.length,n=[],c=[],l=0;l<o;++l)for(var p=s[l],y=p.length,d,x=0;x<y;++x)if(d=p[x]){for(var b=r.call(d,d.__data__,x,p),_,v=Ve(d,i),M=0,q=b.length;M<q;++M)if(_=b[M])gi(_,e,i,M,b,v);n.push(b),c.push(d)}return new lr(n,c,e,i)}var P1=pi.prototype.constructor;function Qc(){return new P1(this._groups,this._parents)}function R1(r,e){var i,s,o;return function(){var n=Wi(this,r),c=(this.style.removeProperty(r),Wi(this,r));return n===c?null:n===i&&c===s?o:o=e(i=n,s=c)}}function Zp(r){return function(){this.style.removeProperty(r)}}function q1(r,e,i){var s,o=i+"",n;return function(){var c=Wi(this,r);return c===o?null:c===s?n:n=e(s=c,i)}}function N1(r,e,i){var s,o,n;return function(){var c=Wi(this,r),l=i(this),p=l+"";if(l==null)p=l=(this.style.removeProperty(r),Wi(this,r));return c===p?null:c===s&&p===o?n:(o=p,n=e(s=c,l))}}function W1(r,e){var i,s,o,n="style."+e,c="end."+n,l;return function(){var p=er(this,r),y=p.on,d=p.value[n]==null?l||(l=Zp(e)):void 0;if(y!==i||o!==d)(s=(i=y).copy()).on(c,o=d);p.on=s}}function Jc(r,e,i){var s=(r+="")==="transform"?$c:Ca;return e==null?this.styleTween(r,R1(r,s)).on("end.style."+r,Zp(r)):typeof e==="function"?this.styleTween(r,N1(r,s,Qo(this,"style."+r,e))).each(W1(this._id,r)):this.styleTween(r,q1(r,s,e),i).on("end.style."+r,null)}function z1(r,e,i){return function(s){this.style.setProperty(r,e.call(this,s),i)}}function H1(r,e,i){var s,o;function n(){var c=e.apply(this,arguments);if(c!==o)s=(o=c)&&z1(r,c,i);return s}return n._value=e,n}function tu(r,e,i){var s="style."+(r+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(e==null)return this.tween(s,null);if(typeof e!=="function")throw Error();return this.tween(s,H1(r,e,i==null?"":i))}function Y1(r){return function(){this.textContent=r}}function U1(r){return function(){var e=r(this);this.textContent=e==null?"":e}}function eu(r){return this.tween("text",typeof r==="function"?U1(Qo(this,"text",r)):Y1(r==null?"":r+""))}function j1(r){return function(e){this.textContent=r.call(this,e)}}function G1(r){var e,i;function s(){var o=r.apply(this,arguments);if(o!==i)e=(i=o)&&j1(o);return e}return s._value=r,s}function ru(r){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!=="function")throw Error();return this.tween(e,G1(r))}function iu(){var r=this._name,e=this._id,i=kl();for(var s=this._groups,o=s.length,n=0;n<o;++n)for(var c=s[n],l=c.length,p,y=0;y<l;++y)if(p=c[y]){var d=Ve(p,e);gi(p,r,i,y,c,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new lr(s,this._parents,r,i)}function ou(){var r,e,i=this,s=i._id,o=i.size();return new Promise(function(n,c){var l={value:c},p={value:function(){if(--o===0)n()}};if(i.each(function(){var y=er(this,s),d=y.on;if(d!==r)e=(r=d).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(p);y.on=e}),o===0)n()})}var X1=0;function lr(r,e,i,s){this._groups=r,this._parents=e,this._name=i,this._id=s}function Qp(r){return pi().transition(r)}function kl(){return++X1}var mi=pi.prototype;lr.prototype=Qp.prototype={constructor:lr,select:Kc,selectAll:Zc,selectChild:mi.selectChild,selectChildren:mi.selectChildren,filter:jc,merge:Gc,selection:Qc,transition:iu,call:mi.call,nodes:mi.nodes,node:mi.node,size:mi.size,empty:mi.empty,each:mi.each,on:Xc,attr:Nc,attrTween:Wc,style:Jc,styleTween:tu,text:eu,textTween:ru,remove:Vc,tween:qc,delay:zc,duration:Hc,ease:Yc,easeVarying:Uc,end:ou,[Symbol.iterator]:mi[Symbol.iterator]};function wl(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var V1={time:null,delay:0,duration:250,ease:wl};function K1(r,e){var i;while(!(i=r.__transition)||!(i=i[e]))if(!(r=r.parentNode))throw Error(`transition ${e} not found`);return i}function su(r){var e,i;if(r instanceof lr)e=r._id,r=r._name;else e=kl(),(i=V1).time=pa(),r=r==null?null:r+"";for(var s=this._groups,o=s.length,n=0;n<o;++n)for(var c=s[n],l=c.length,p,y=0;y<l;++y)if(p=c[y])gi(p,r,e,y,c,i||K1(p,e));return new lr(s,this._parents,r,e)}pi.prototype.interrupt=Rc;pi.prototype.transition=su;var{abs:tE,max:eE,min:rE}=Math;function Jp(r){return[+r[0],+r[1]]}function Z1(r){return[Jp(r[0]),Jp(r[1])]}var iE={name:"x",handles:["w","e"].map(au),input:function(r,e){return r==null?null:[[+r[0],e[0][1]],[+r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},oE={name:"y",handles:["n","s"].map(au),input:function(r,e){return r==null?null:[[e[0][0],+r[0]],[e[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},sE={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(au),input:function(r){return r==null?null:Z1(r)},output:function(r){return r}};function au(r){return{type:r}}var nu=Math.PI,lu=2*nu;var Q1=lu-0.000001;function tg(r){this._+=r[0];for(let e=1,i=r.length;e<i;++e)this._+=arguments[e]+r[e]}function J1(r){let e=Math.floor(r);if(!(e>=0))throw Error(`invalid digits: ${r}`);if(e>15)return tg;let i=10**e;return function(s){this._+=s[0];for(let o=1,n=s.length;o<n;++o)this._+=Math.round(arguments[o]*i)/i+s[o]}}class Jo{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?tg:J1(r)}moveTo(r,e){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._append`Z`}lineTo(r,e){this._append`L${this._x1=+r},${this._y1=+e}`}quadraticCurveTo(r,e,i,s){this._append`Q${+r},${+e},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(r,e,i,s,o,n){this._append`C${+r},${+e},${+i},${+s},${this._x1=+o},${this._y1=+n}`}arcTo(r,e,i,s,o){if(r=+r,e=+e,i=+i,s=+s,o=+o,o<0)throw Error(`negative radius: ${o}`);let n=this._x1,c=this._y1,l=i-r,p=s-e,y=n-r,d=c-e,x=y*y+d*d;if(this._x1===null)this._append`M${this._x1=r},${this._y1=e}`;else if(!(x>0.000001));else if(!(Math.abs(d*l-p*y)>0.000001)||!o)this._append`L${this._x1=r},${this._y1=e}`;else{let b=i-n,_=s-c,v=l*l+p*p,M=b*b+_*_,q=Math.sqrt(v),W=Math.sqrt(x),H=o*Math.tan((nu-Math.acos((v+x-M)/(2*q*W)))/2),K=H/W,J=H/q;if(Math.abs(K-1)>0.000001)this._append`L${r+K*y},${e+K*d}`;this._append`A${o},${o},0,0,${+(d*b>y*_)},${this._x1=r+J*l},${this._y1=e+J*p}`}}arc(r,e,i,s,o,n){if(r=+r,e=+e,i=+i,n=!!n,i<0)throw Error(`negative radius: ${i}`);let c=i*Math.cos(s),l=i*Math.sin(s),p=r+c,y=e+l,d=1^n,x=n?s-o:o-s;if(this._x1===null)this._append`M${p},${y}`;else if(Math.abs(this._x1-p)>0.000001||Math.abs(this._y1-y)>0.000001)this._append`L${p},${y}`;if(!i)return;if(x<0)x=x%lu+lu;if(x>Q1)this._append`A${i},${i},0,1,${d},${r-c},${e-l}A${i},${i},0,1,${d},${this._x1=p},${this._y1=y}`;else if(x>0.000001)this._append`A${i},${i},0,${+(x>=nu)},${d},${this._x1=r+i*Math.cos(o)},${this._y1=e+i*Math.sin(o)}`}rect(r,e,i,s){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function eg(){return new Jo}eg.prototype=Jo.prototype;function _e(r){return function(){return r}}var{abs:Bs,atan2:Tt,cos:$r,max:ml,min:Co,sin:Pn,sqrt:ta}=Math,vt=0.000000000001,Va=Math.PI,ki=Va/2,na=2*Va;function fl(r){return r>1?0:r<-1?Va:Math.acos(r)}function Fs(r){return r>=1?ki:r<=-1?-ki:Math.asin(r)}function ra(r){let e=3;return r.digits=function(i){if(!arguments.length)return e;if(i==null)e=null;else{let s=Math.floor(i);if(!(s>=0))throw RangeError(`invalid digits: ${i}`);e=s}return r},()=>new Jo(e)}var hl=Array.prototype.slice;function Ci(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function rg(r){this._context=r}rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e);break}}};function Zr(r){return new rg(r)}function So(r){return r[0]}function To(r){return r[1]}function aa(r,e){var i=_e(!0),s=null,o=Zr,n=null,c=ra(l);r=typeof r==="function"?r:r===void 0?So:_e(r),e=typeof e==="function"?e:e===void 0?To:_e(e);function l(p){var y,d=(p=Ci(p)).length,x,b=!1,_;if(s==null)n=o(_=c());for(y=0;y<=d;++y){if(!(y<d&&i(x=p[y],y,p))===b)if(b=!b)n.lineStart();else n.lineEnd();if(b)n.point(+r(x,y,p),+e(x,y,p))}if(_)return n=null,_+""||null}return l.x=function(p){return arguments.length?(r=typeof p==="function"?p:_e(+p),l):r},l.y=function(p){return arguments.length?(e=typeof p==="function"?p:_e(+p),l):e},l.defined=function(p){return arguments.length?(i=typeof p==="function"?p:_e(!!p),l):i},l.curve=function(p){return arguments.length?(o=p,s!=null&&(n=o(s)),l):o},l.context=function(p){return arguments.length?(p==null?s=n=null:n=o(s=p),l):s},l}class hu{constructor(r,e){this._context=r,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(r,e){switch(r=+r,e=+e,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(r,e);else this._context.moveTo(r,e);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,e,r,e);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,r,this._y0,r,e);break}}this._x0=r,this._y0=e}}function ia(r){return new hu(r,!0)}function ba(r){return new hu(r,!1)}function wr(){}function ts(r,e,i){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+e)/6,(r._y0+4*r._y1+i)/6)}function ka(r){this._context=r}ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ts(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ts(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Zi(r){return new ka(r)}function ig(r){this._context=r}ig.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:ts(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Sl(r){return new ig(r)}function og(r){this._context=r}og.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,s=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);break;case 3:this._point=4;default:ts(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Tl(r){return new og(r)}function sg(r,e){this._basis=new ka(r),this._beta=e}sg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0){var s=r[0],o=e[0],n=r[i]-s,c=e[i]-o,l=-1,p;while(++l<=i)p=l/i,this._basis.point(this._beta*r[l]+(1-this._beta)*(s+p*n),this._beta*e[l]+(1-this._beta)*(o+p*c))}this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var cu=function r(e){function i(s){return e===1?new ka(s):new sg(s,e)}return i.beta=function(s){return r(+s)},i}(0.85);function es(r,e,i){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-e),r._y2+r._k*(r._y1-i),r._x2,r._y2)}function Bl(r,e){this._context=r,this._k=(1-e)/6}Bl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:es(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:es(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var wa=function r(e){function i(s){return new Bl(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Ll(r,e){this._context=r,this._k=(1-e)/6}Ll.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:es(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uu=function r(e){function i(s){return new Ll(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Fl(r,e){this._context=r,this._k=(1-e)/6}Fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:es(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fu=function r(e){function i(s){return new Fl(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Sa(r,e,i){var{_x1:s,_y1:o,_x2:n,_y2:c}=r;if(r._l01_a>vt){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,p=3*r._l01_a*(r._l01_a+r._l12_a);s=(s*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/p,o=(o*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/p}if(r._l23_a>vt){var y=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,d=3*r._l23_a*(r._l23_a+r._l12_a);n=(n*y+r._x1*r._l23_2a-e*r._l12_2a)/d,c=(c*y+r._y1*r._l23_2a-i*r._l12_2a)/d}r._context.bezierCurveTo(s,o,n,c,r._x2,r._y2)}function ag(r,e){this._context=r,this._alpha=e}ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ta=function r(e){function i(s){return e?new ag(s,e):new Bl(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function ng(r,e){this._context=r,this._alpha=e}ng.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var du=function r(e){function i(s){return e?new ng(s,e):new Ll(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function lg(r,e){this._context=r,this._alpha=e}lg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pu=function r(e){function i(s){return e?new lg(s,e):new Fl(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function hg(r){this._context=r}hg.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(r,e){if(r=+r,e=+e,this._point)this._context.lineTo(r,e);else this._point=1,this._context.moveTo(r,e)}};function Al(r){return new hg(r)}function cg(r){return r<0?-1:1}function ug(r,e,i){var s=r._x1-r._x0,o=e-r._x1,n=(r._y1-r._y0)/(s||o<0&&-0),c=(i-r._y1)/(o||s<0&&-0),l=(n*o+c*s)/(s+o);return(cg(n)+cg(c))*Math.min(Math.abs(n),Math.abs(c),0.5*Math.abs(l))||0}function fg(r,e){var i=r._x1-r._x0;return i?(3*(r._y1-r._y0)/i-e)/2:e}function gu(r,e,i){var{_x0:s,_y0:o,_x1:n,_y1:c}=r,l=(n-s)/3;r._context.bezierCurveTo(s+l,o+l*e,n-l,c-l*i,n,c)}function Ml(r){this._context=r}Ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gu(this,this._t0,fg(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){var i=NaN;if(r=+r,e=+e,r===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,gu(this,fg(this,i=ug(this,r,e)),i);break;default:gu(this,this._t0,i=ug(this,r,e));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}};function dg(r){this._context=new pg(r)}(dg.prototype=Object.create(Ml.prototype)).point=function(r,e){Ml.prototype.point.call(this,e,r)};function pg(r){this._context=r}pg.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,i,s,o,n){this._context.bezierCurveTo(e,r,s,i,n,o)}};function _a(r){return new Ml(r)}function va(r){return new dg(r)}function mg(r){this._context=r}mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),i===2)this._context.lineTo(r[1],e[1]);else{var s=gg(r),o=gg(e);for(var n=0,c=1;c<i;++n,++c)this._context.bezierCurveTo(s[0][n],o[0][n],s[1][n],o[1][n],r[c],e[c])}if(this._line||this._line!==0&&i===1)this._context.closePath();this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}};function gg(r){var e,i=r.length-1,s,o=Array(i),n=Array(i),c=Array(i);o[0]=0,n[0]=2,c[0]=r[0]+2*r[1];for(e=1;e<i-1;++e)o[e]=1,n[e]=4,c[e]=4*r[e]+2*r[e+1];o[i-1]=2,n[i-1]=7,c[i-1]=8*r[i-1]+r[i];for(e=1;e<i;++e)s=o[e]/n[e-1],n[e]-=s,c[e]-=s*c[e-1];o[i-1]=c[i-1]/n[i-1];for(e=i-2;e>=0;--e)o[e]=(c[e]-o[e+1])/n[e];n[i-1]=(r[i]+o[i-1])/2;for(e=0;e<i-1;++e)n[e]=2*r[e+1]-o[e+1];return[o,n]}function rs(r){return new mg(r)}function El(r,e){this._context=r,this._t=e}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=r,this._y=e}};function is(r){return new El(r,0.5)}function La(r){return new El(r,0)}function Aa(r){return new El(r,1)}function zi(r,e,i){this.k=r,this.x=e,this.y=i}zi.prototype={constructor:zi,scale:function(r){return r===1?this:new zi(this.k*r,this.x,this.y)},translate:function(r,e){return r===0&e===0?this:new zi(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mu=new zi(1,0,0);yu.prototype=zi.prototype;function yu(r){while(!r.__zoom)if(!(r=r.parentNode))return mu;return r.__zoom}var Q=t((r)=>{let{securityLevel:e}=u(),i=h("body");if(e==="sandbox"){let n=h(`#i${r}`).node()?.contentDocument??document;i=h(n.body)}return i.select(`#${r}`)},"selectSvgElement");function zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}t(zg,"getDefaultExportFromCjs");var ir={},Ol={},Hi={},yg;function os(){if(yg)return Hi;yg=1;function r(c){return typeof c>"u"||c===null}t(r,"isNothing");function e(c){return typeof c==="object"&&c!==null}t(e,"isObject");function i(c){if(Array.isArray(c))return c;else if(r(c))return[];return[c]}t(i,"toArray");function s(c,l){if(l){let p=Object.keys(l);for(let y=0,d=p.length;y<d;y+=1){let x=p[y];c[x]=l[x]}}return c}t(s,"extend");function o(c,l){let p="";for(let y=0;y<l;y+=1)p+=c;return p}t(o,"repeat");function n(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}return t(n,"isNegativeZero"),Hi.isNothing=r,Hi.isObject=e,Hi.toArray=i,Hi.repeat=o,Hi.isNegativeZero=n,Hi.extend=s,Hi}t(os,"requireCommon");var xu,xg;function ss(){if(xg)return xu;xg=1;function r(i,s){let o="",n=i.reason||"(unknown reason)";if(!i.mark)return n;if(i.mark.name)o+='in "'+i.mark.name+'" ';if(o+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!s&&i.mark.snippet)o+=`
|
|
130
|
-
|
|
131
|
-
`+i.mark.snippet;return n+" "+o}t(r,"formatError");function e(i,s){if(Error.call(this),this.name="YAMLException",this.reason=i,this.mark=s,this.message=r(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}return t(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=t(function(s){return this.name+": "+r(this,s)},"toString"),xu=e,xu}t(ss,"requireException");var Cu,Cg;function Hg(){if(Cg)return Cu;Cg=1;let r=os();function e(o,n,c,l,p){let y="",d="",x=Math.floor(p/2)-1;if(l-n>x)y=" ... ",n=l-x+y.length;if(c-l>x)d=" ...",c=l+x-d.length;return{str:y+o.slice(n,c).replace(/\t/g,"→")+d,pos:l-n+y.length}}t(e,"getLine");function i(o,n){return r.repeat(" ",n-o.length)+o}t(i,"padStart");function s(o,n){if(n=Object.create(n||null),!o.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;let c=/\r?\n|\r|\0/g,l=[0],p=[],y,d=-1;while(y=c.exec(o.buffer))if(p.push(y.index),l.push(y.index+y[0].length),o.position<=y.index&&d<0)d=l.length-2;if(d<0)d=l.length-1;let x="",b=Math.min(o.line+n.linesAfter,p.length).toString().length,_=n.maxLength-(n.indent+b+3);for(let M=1;M<=n.linesBefore;M++){if(d-M<0)break;let q=e(o.buffer,l[d-M],p[d-M],o.position-(l[d]-l[d-M]),_);x=r.repeat(" ",n.indent)+i((o.line-M+1).toString(),b)+" | "+q.str+`
|
|
132
|
-
`+x}let v=e(o.buffer,l[d],p[d],o.position,_);x+=r.repeat(" ",n.indent)+i((o.line+1).toString(),b)+" | "+v.str+`
|
|
133
|
-
`,x+=r.repeat("-",n.indent+b+3+v.pos)+`^
|
|
134
|
-
`;for(let M=1;M<=n.linesAfter;M++){if(d+M>=p.length)break;let q=e(o.buffer,l[d+M],p[d+M],o.position-(l[d]-l[d+M]),_);x+=r.repeat(" ",n.indent)+i((o.line+M+1).toString(),b)+" | "+q.str+`
|
|
135
|
-
`}return x.replace(/\n$/,"")}return t(s,"makeSnippet"),Cu=s,Cu}t(Hg,"requireSnippet");var bu,bg;function or(){if(bg)return bu;bg=1;let r=ss(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function s(n){let c={};if(n!==null)Object.keys(n).forEach(function(l){n[l].forEach(function(p){c[String(p)]=l})});return c}t(s,"compileStyleAliases");function o(n,c){if(c=c||{},Object.keys(c).forEach(function(l){if(e.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+n+'" YAML type.')}),this.options=c,this.tag=n,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=s(c.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}return t(o,"Type2"),bu=o,bu}t(or,"requireType");var ku,kg;function Nu(){if(kg)return ku;kg=1;let r=ss(),e=or();function i(n,c){let l=[];return n[c].forEach(function(p){let y=l.length;l.forEach(function(d,x){if(d.tag===p.tag&&d.kind===p.kind&&d.multi===p.multi)y=x}),l[y]=p}),l}t(i,"compileList");function s(){let n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){if(l.multi)n.multi[l.kind].push(l),n.multi.fallback.push(l);else n[l.kind][l.tag]=n.fallback[l.tag]=l}t(c,"collectType");for(let l=0,p=arguments.length;l<p;l+=1)arguments[l].forEach(c);return n}t(s,"compileMap");function o(n){return this.extend(n)}return t(o,"Schema2"),o.prototype.extend=t(function(c){let l=[],p=[];if(c instanceof e)p.push(c);else if(Array.isArray(c))p=p.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit))){if(c.implicit)l=l.concat(c.implicit);if(c.explicit)p=p.concat(c.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(d){if(!(d instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(d.loadKind&&d.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(d.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),p.forEach(function(d){if(!(d instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let y=Object.create(o.prototype);return y.implicit=(this.implicit||[]).concat(l),y.explicit=(this.explicit||[]).concat(p),y.compiledImplicit=i(y,"implicit"),y.compiledExplicit=i(y,"explicit"),y.compiledTypeMap=s(y.compiledImplicit,y.compiledExplicit),y},"extend"),ku=o,ku}t(Nu,"requireSchema");var wu,wg;function Wu(){if(wg)return wu;return wg=1,wu=new(or())("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(e){return e!==null?e:""},"construct")}),wu}t(Wu,"requireStr");var Su,Sg;function zu(){if(Sg)return Su;return Sg=1,Su=new(or())("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(e){return e!==null?e:[]},"construct")}),Su}t(zu,"requireSeq");var Tu,Tg;function Hu(){if(Tg)return Tu;return Tg=1,Tu=new(or())("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(e){return e!==null?e:{}},"construct")}),Tu}t(Hu,"requireMap");var _u,_g;function Yu(){if(_g)return _u;return _g=1,_u=new(Nu())({explicit:[Wu(),zu(),Hu()]}),_u}t(Yu,"requireFailsafe");var Bu,Bg;function Uu(){if(Bg)return Bu;Bg=1;let r=or();function e(o){if(o===null)return!0;let n=o.length;return n===1&&o==="~"||n===4&&(o==="null"||o==="Null"||o==="NULL")}t(e,"resolveYamlNull");function i(){return null}t(i,"constructYamlNull");function s(o){return o===null}return t(s,"isNull"),Bu=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:i,predicate:s,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"}),Bu}t(Uu,"require_null");var vu,vg;function ju(){if(vg)return vu;vg=1;let r=or();function e(o){if(o===null)return!1;let n=o.length;return n===4&&(o==="true"||o==="True"||o==="TRUE")||n===5&&(o==="false"||o==="False"||o==="FALSE")}t(e,"resolveYamlBoolean");function i(o){return o==="true"||o==="True"||o==="TRUE"}t(i,"constructYamlBoolean");function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return t(s,"isBoolean"),vu=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:i,predicate:s,represent:{lowercase:t(function(o){return o?"true":"false"},"lowercase"),uppercase:t(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vu}t(ju,"requireBool");var Lu,Lg;function Gu(){if(Lg)return Lu;Lg=1;let r=os(),e=or();function i(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}t(i,"isHexCode");function s(y){return y>=48&&y<=55}t(s,"isOctCode");function o(y){return y>=48&&y<=57}t(o,"isDecCode");function n(y){if(y===null)return!1;let d=y.length,x=0,b=!1;if(!d)return!1;let _=y[x];if(_==="-"||_==="+")_=y[++x];if(_==="0"){if(x+1===d)return!0;if(_=y[++x],_==="b"){x++;for(;x<d;x++){if(_=y[x],_!=="0"&&_!=="1")return!1;b=!0}return b&&isFinite(c(y))}if(_==="x"){x++;for(;x<d;x++){if(!i(y.charCodeAt(x)))return!1;b=!0}return b&&isFinite(c(y))}if(_==="o"){x++;for(;x<d;x++){if(!s(y.charCodeAt(x)))return!1;b=!0}return b&&isFinite(c(y))}}for(;x<d;x++){if(!o(y.charCodeAt(x)))return!1;b=!0}if(!b)return!1;return isFinite(c(y))}t(n,"resolveYamlInteger");function c(y){let d=y,x=1,b=d[0];if(b==="-"||b==="+"){if(b==="-")x=-1;d=d.slice(1),b=d[0]}if(d==="0")return 0;if(b==="0"){if(d[1]==="b")return x*parseInt(d.slice(2),2);if(d[1]==="x")return x*parseInt(d.slice(2),16);if(d[1]==="o")return x*parseInt(d.slice(2),8)}return x*parseInt(d,10)}t(c,"parseYamlInteger");function l(y){return c(y)}t(l,"constructYamlInteger");function p(y){return Object.prototype.toString.call(y)==="[object Number]"&&(y%1===0&&!r.isNegativeZero(y))}return t(p,"isInteger"),Lu=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:n,construct:l,predicate:p,represent:{binary:t(function(y){return y>=0?"0b"+y.toString(2):"-0b"+y.toString(2).slice(1)},"binary"),octal:t(function(y){return y>=0?"0o"+y.toString(8):"-0o"+y.toString(8).slice(1)},"octal"),decimal:t(function(y){return y.toString(10)},"decimal"),hexadecimal:t(function(y){return y>=0?"0x"+y.toString(16).toUpperCase():"-0x"+y.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lu}t(Gu,"requireInt");var Fu,Fg;function Xu(){if(Fg)return Fu;Fg=1;let r=os(),e=or(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(y){if(y===null)return!1;if(!i.test(y))return!1;if(isFinite(parseFloat(y,10)))return!0;return s.test(y)}t(o,"resolveYamlFloat");function n(y){let d=y.toLowerCase(),x=d[0]==="-"?-1:1;if("+-".indexOf(d[0])>=0)d=d.slice(1);if(d===".inf")return x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(d===".nan")return NaN;return x*parseFloat(d,10)}t(n,"constructYamlFloat");let c=/^[-+]?[0-9]+e/;function l(y,d){if(isNaN(y))switch(d){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===y)switch(d){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===y)switch(d){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(y))return"-0.0";let x=y.toString(10);return c.test(x)?x.replace("e",".e"):x}t(l,"representYamlFloat");function p(y){return Object.prototype.toString.call(y)==="[object Number]"&&(y%1!==0||r.isNegativeZero(y))}return t(p,"isFloat"),Fu=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:n,predicate:p,represent:l,defaultStyle:"lowercase"}),Fu}t(Xu,"requireFloat");var Au,Ag;function Vu(){if(Ag)return Au;return Ag=1,Au=Yu().extend({implicit:[Uu(),ju(),Gu(),Xu()]}),Au}t(Vu,"requireJson");var Mu,Mg;function Ku(){if(Mg)return Mu;return Mg=1,Mu=Vu(),Mu}t(Ku,"requireCore");var Eu,Eg;function Zu(){if(Eg)return Eu;Eg=1;let r=or(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(c){if(c===null)return!1;if(e.exec(c)!==null)return!0;if(i.exec(c)!==null)return!0;return!1}t(s,"resolveYamlTimestamp");function o(c){let l=0,p=null,y=e.exec(c);if(y===null)y=i.exec(c);if(y===null)throw Error("Date resolve error");let d=+y[1],x=+y[2]-1,b=+y[3];if(!y[4])return new Date(Date.UTC(d,x,b));let _=+y[4],v=+y[5],M=+y[6];if(y[7]){l=y[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(y[9]){let W=+y[10],H=+(y[11]||0);if(p=(W*60+H)*60000,y[9]==="-")p=-p}let q=new Date(Date.UTC(d,x,b,_,v,M,l));if(p)q.setTime(q.getTime()-p);return q}t(o,"constructYamlTimestamp");function n(c){return c.toISOString()}return t(n,"representYamlTimestamp"),Eu=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:o,instanceOf:Date,represent:n}),Eu}t(Zu,"requireTimestamp");var Ou,Og;function Qu(){if(Og)return Ou;Og=1;let r=or();function e(i){return i==="<<"||i===null}return t(e,"resolveYamlMerge"),Ou=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e}),Ou}t(Qu,"requireMerge");var Iu,Ig;function Ju(){if(Ig)return Iu;Ig=1;let r=or(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
136
|
-
\r`;function i(c){if(c===null)return!1;let l=0,p=c.length,y=e;for(let d=0;d<p;d++){let x=y.indexOf(c.charAt(d));if(x>64)continue;if(x<0)return!1;l+=6}return l%8===0}t(i,"resolveYamlBinary");function s(c){let l=c.replace(/[\r\n=]/g,""),p=l.length,y=e,d=0,x=[];for(let _=0;_<p;_++){if(_%4===0&&_)x.push(d>>16&255),x.push(d>>8&255),x.push(d&255);d=d<<6|y.indexOf(l.charAt(_))}let b=p%4*6;if(b===0)x.push(d>>16&255),x.push(d>>8&255),x.push(d&255);else if(b===18)x.push(d>>10&255),x.push(d>>2&255);else if(b===12)x.push(d>>4&255);return new Uint8Array(x)}t(s,"constructYamlBinary");function o(c){let l="",p=0,y=c.length,d=e;for(let b=0;b<y;b++){if(b%3===0&&b)l+=d[p>>18&63],l+=d[p>>12&63],l+=d[p>>6&63],l+=d[p&63];p=(p<<8)+c[b]}let x=y%3;if(x===0)l+=d[p>>18&63],l+=d[p>>12&63],l+=d[p>>6&63],l+=d[p&63];else if(x===2)l+=d[p>>10&63],l+=d[p>>4&63],l+=d[p<<2&63],l+=d[64];else if(x===1)l+=d[p>>2&63],l+=d[p<<4&63],l+=d[64],l+=d[64];return l}t(o,"representYamlBinary");function n(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}return t(n,"isBinary"),Iu=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:s,predicate:n,represent:o}),Iu}t(Ju,"requireBinary");var $u,$g;function tf(){if($g)return $u;$g=1;let r=or(),e=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function s(n){if(n===null)return!0;let c=[],l=n;for(let p=0,y=l.length;p<y;p+=1){let d=l[p],x=!1;if(i.call(d)!=="[object Object]")return!1;let b;for(b in d)if(e.call(d,b))if(!x)x=!0;else return!1;if(!x)return!1;if(c.indexOf(b)===-1)c.push(b);else return!1}return!0}t(s,"resolveYamlOmap");function o(n){return n!==null?n:[]}return t(o,"constructYamlOmap"),$u=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:o}),$u}t(tf,"requireOmap");var Du,Dg;function ef(){if(Dg)return Du;Dg=1;let r=or(),e=Object.prototype.toString;function i(o){if(o===null)return!0;let n=o,c=Array(n.length);for(let l=0,p=n.length;l<p;l+=1){let y=n[l];if(e.call(y)!=="[object Object]")return!1;let d=Object.keys(y);if(d.length!==1)return!1;c[l]=[d[0],y[d[0]]]}return!0}t(i,"resolveYamlPairs");function s(o){if(o===null)return[];let n=o,c=Array(n.length);for(let l=0,p=n.length;l<p;l+=1){let y=n[l],d=Object.keys(y);c[l]=[d[0],y[d[0]]]}return c}return t(s,"constructYamlPairs"),Du=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:s}),Du}t(ef,"requirePairs");var Pu,Pg;function rf(){if(Pg)return Pu;Pg=1;let r=or(),e=Object.prototype.hasOwnProperty;function i(o){if(o===null)return!0;let n=o;for(let c in n)if(e.call(n,c)){if(n[c]!==null)return!1}return!0}t(i,"resolveYamlSet");function s(o){return o!==null?o:{}}return t(s,"constructYamlSet"),Pu=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:s}),Pu}t(rf,"requireSet");var Ru,Rg;function Il(){if(Rg)return Ru;return Rg=1,Ru=Ku().extend({implicit:[Zu(),Qu()],explicit:[Ju(),tf(),ef(),rf()]}),Ru}t(Il,"require_default");var qg;function Yg(){if(qg)return Ol;qg=1;let r=os(),e=ss(),i=Hg(),s=Il(),o=Object.prototype.hasOwnProperty,n=1,c=2,l=3,p=4,y=1,d=2,x=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\x85\u2028\u2029]/,v=/[,\[\]{}]/,M=/^(?:!|!!|![0-9A-Za-z-]+!)$/,q=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function W(w){return Object.prototype.toString.call(w)}t(W,"_class");function H(w){return w===10||w===13}t(H,"isEol");function K(w){return w===9||w===32}t(K,"isWhiteSpace");function J(w){return w===9||w===32||w===10||w===13}t(J,"isWsOrEol");function tt(w){return w===44||w===91||w===93||w===123||w===125}t(tt,"isFlowIndicator");function nt(w){if(w>=48&&w<=57)return w-48;let pt=w|32;if(pt>=97&&pt<=102)return pt-97+10;return-1}t(nt,"fromHexCode");function st(w){if(w===120)return 2;if(w===117)return 4;if(w===85)return 8;return 0}t(st,"escapedHexLen");function ft(w){if(w>=48&&w<=57)return w-48;return-1}t(ft,"fromDecimalCode");function xt(w){switch(w){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
|
|
137
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(xt,"simpleEscapeSequence");function Ft(w){if(w<=65535)return String.fromCharCode(w);return String.fromCharCode((w-65536>>10)+55296,(w-65536&1023)+56320)}t(Ft,"charFromCodepoint");function kt(w,pt,Bt){if(pt==="__proto__")Object.defineProperty(w,pt,{configurable:!0,enumerable:!0,writable:!0,value:Bt});else w[pt]=Bt}t(kt,"setProperty");let Ct=Array(256),rt=Array(256);for(let w=0;w<256;w++)Ct[w]=xt(w)?1:0,rt[w]=xt(w);function ot(w,pt){this.input=w,this.filename=pt.filename||null,this.schema=pt.schema||s,this.onWarning=pt.onWarning||null,this.legacy=pt.legacy||!1,this.json=pt.json||!1,this.listener=pt.listener||null,this.maxDepth=typeof pt.maxDepth==="number"?pt.maxDepth:100,this.maxTotalMergeKeys=typeof pt.maxTotalMergeKeys==="number"?pt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=w.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(ot,"State");function gt(w,pt){let Bt={name:w.filename,buffer:w.input.slice(0,-1),position:w.position,line:w.line,column:w.position-w.lineStart};return Bt.snippet=i(Bt),new e(pt,Bt)}t(gt,"generateError");function et(w,pt){throw gt(w,pt)}t(et,"throwError");function wt(w,pt){if(w.onWarning)w.onWarning.call(null,gt(w,pt))}t(wt,"throwWarning");function At(w,pt,Bt){let Ot=w.anchorMapTransactions;if(Ot.length!==0){let _t=Ot[Ot.length-1];if(!o.call(_t,pt))_t[pt]={existed:o.call(w.anchorMap,pt),value:w.anchorMap[pt]}}w.anchorMap[pt]=Bt}t(At,"storeAnchor");function Vt(w){w.anchorMapTransactions.push(Object.create(null))}t(Vt,"beginAnchorTransaction");function Xt(w){let pt=w.anchorMapTransactions.pop(),Bt=w.anchorMapTransactions;if(Bt.length===0)return;let Ot=Bt[Bt.length-1],_t=Object.keys(pt);for(let Yt=0,V=_t.length;Yt<V;Yt+=1){let mt=_t[Yt];if(!o.call(Ot,mt))Ot[mt]=pt[mt]}}t(Xt,"commitAnchorTransaction");function se(w){let pt=w.anchorMapTransactions.pop(),Bt=Object.keys(pt);for(let Ot=Bt.length-1;Ot>=0;Ot-=1){let _t=pt[Bt[Ot]];if(_t.existed)w.anchorMap[Bt[Ot]]=_t.value;else delete w.anchorMap[Bt[Ot]]}}t(se,"rollbackAnchorTransaction");function oe(w){return{position:w.position,line:w.line,lineStart:w.lineStart,lineIndent:w.lineIndent,firstTabInLine:w.firstTabInLine,tag:w.tag,anchor:w.anchor,kind:w.kind,result:w.result}}t(oe,"snapshotState");function de(w,pt){w.position=pt.position,w.line=pt.line,w.lineStart=pt.lineStart,w.lineIndent=pt.lineIndent,w.firstTabInLine=pt.firstTabInLine,w.tag=pt.tag,w.anchor=pt.anchor,w.kind=pt.kind,w.result=pt.result}t(de,"restoreState");let ge={YAML:t(function(pt,Bt,Ot){if(pt.version!==null)et(pt,"duplication of %YAML directive");if(Ot.length!==1)et(pt,"YAML directive accepts exactly one argument");let _t=/^([0-9]+)\.([0-9]+)$/.exec(Ot[0]);if(_t===null)et(pt,"ill-formed argument of the YAML directive");let Yt=parseInt(_t[1],10),V=parseInt(_t[2],10);if(Yt!==1)et(pt,"unacceptable YAML version of the document");if(pt.version=Ot[0],pt.checkLineBreaks=V<2,V!==1&&V!==2)wt(pt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(pt,Bt,Ot){let _t;if(Ot.length!==2)et(pt,"TAG directive accepts exactly two arguments");let Yt=Ot[0];if(_t=Ot[1],!M.test(Yt))et(pt,"ill-formed tag handle (first argument) of the TAG directive");if(o.call(pt.tagMap,Yt))et(pt,'there is a previously declared suffix for "'+Yt+'" tag handle');if(!q.test(_t))et(pt,"ill-formed tag prefix (second argument) of the TAG directive");try{_t=decodeURIComponent(_t)}catch(V){et(pt,"tag prefix is malformed: "+_t)}pt.tagMap[Yt]=_t},"handleTagDirective")};function he(w,pt,Bt,Ot){if(pt<Bt){let _t=w.input.slice(pt,Bt);if(Ot)for(let Yt=0,V=_t.length;Yt<V;Yt+=1){let mt=_t.charCodeAt(Yt);if(!(mt===9||mt>=32&&mt<=1114111))et(w,"expected valid JSON character")}else if(b.test(_t))et(w,"the stream contains non-printable characters");w.result+=_t}}t(he,"captureSegment");function Gt(w,pt,Bt,Ot){if(!r.isObject(Bt))et(w,"cannot merge mappings; the provided source object is unacceptable");let _t=Object.keys(Bt);for(let Yt=0,V=_t.length;Yt<V;Yt+=1){let mt=_t[Yt];if(w.maxTotalMergeKeys!==-1&&++w.totalMergeKeys>w.maxTotalMergeKeys)et(w,"merge keys exceeded maxTotalMergeKeys ("+w.maxTotalMergeKeys+")");if(!o.call(pt,mt))kt(pt,mt,Bt[mt]),Ot[mt]=!0}}t(Gt,"mergeMappings");function re(w,pt,Bt,Ot,_t,Yt,V,mt,Nt){if(Array.isArray(_t)){_t=Array.prototype.slice.call(_t);for(let Mt=0,$t=_t.length;Mt<$t;Mt+=1){if(Array.isArray(_t[Mt]))et(w,"nested arrays are not supported inside keys");if(typeof _t==="object"&&W(_t[Mt])==="[object Object]")_t[Mt]="[object Object]"}}if(typeof _t==="object"&&W(_t)==="[object Object]")_t="[object Object]";if(_t=String(_t),pt===null)pt={};if(Ot==="tag:yaml.org,2002:merge")if(Array.isArray(Yt))for(let Mt=0,$t=Yt.length;Mt<$t;Mt+=1)Gt(w,pt,Yt[Mt],Bt);else Gt(w,pt,Yt,Bt);else{if(!w.json&&!o.call(Bt,_t)&&o.call(pt,_t))w.line=V||w.line,w.lineStart=mt||w.lineStart,w.position=Nt||w.position,et(w,"duplicated mapping key");kt(pt,_t,Yt),delete Bt[_t]}return pt}t(re,"storeMappingPair");function ae(w){let pt=w.input.charCodeAt(w.position);if(pt===10)w.position++;else if(pt===13){if(w.position++,w.input.charCodeAt(w.position)===10)w.position++}else et(w,"a line break is expected");w.line+=1,w.lineStart=w.position,w.firstTabInLine=-1}t(ae,"readLineBreak");function ne(w,pt,Bt){let Ot=0,_t=w.input.charCodeAt(w.position);while(_t!==0){while(K(_t)){if(_t===9&&w.firstTabInLine===-1)w.firstTabInLine=w.position;_t=w.input.charCodeAt(++w.position)}if(pt&&_t===35)do _t=w.input.charCodeAt(++w.position);while(_t!==10&&_t!==13&&_t!==0);if(H(_t)){ae(w),_t=w.input.charCodeAt(w.position),Ot++,w.lineIndent=0;while(_t===32)w.lineIndent++,_t=w.input.charCodeAt(++w.position)}else break}if(Bt!==-1&&Ot!==0&&w.lineIndent<Bt)wt(w,"deficient indentation");return Ot}t(ne,"skipSeparationSpace");function Le(w){let pt=w.position,Bt=w.input.charCodeAt(pt);if((Bt===45||Bt===46)&&Bt===w.input.charCodeAt(pt+1)&&Bt===w.input.charCodeAt(pt+2)){if(pt+=3,Bt=w.input.charCodeAt(pt),Bt===0||J(Bt))return!0}return!1}t(Le,"testDocumentSeparator");function ve(w,pt){if(pt===1)w.result+=" ";else if(pt>1)w.result+=r.repeat(`
|
|
138
|
-
`,pt-1)}t(ve,"writeFoldedLines");function Er(w,pt,Bt){let Ot,_t,Yt,V,mt,Nt,{kind:Mt,result:$t}=w,Ht=w.input.charCodeAt(w.position);if(J(Ht)||tt(Ht)||Ht===35||Ht===38||Ht===42||Ht===33||Ht===124||Ht===62||Ht===39||Ht===34||Ht===37||Ht===64||Ht===96)return!1;if(Ht===63||Ht===45){let Wt=w.input.charCodeAt(w.position+1);if(J(Wt)||Bt&&tt(Wt))return!1}w.kind="scalar",w.result="",Ot=_t=w.position,Yt=!1;while(Ht!==0){if(Ht===58){let Wt=w.input.charCodeAt(w.position+1);if(J(Wt)||Bt&&tt(Wt))break}else if(Ht===35){let Wt=w.input.charCodeAt(w.position-1);if(J(Wt))break}else if(w.position===w.lineStart&&Le(w)||Bt&&tt(Ht))break;else if(H(Ht))if(V=w.line,mt=w.lineStart,Nt=w.lineIndent,ne(w,!1,-1),w.lineIndent>=pt){Yt=!0,Ht=w.input.charCodeAt(w.position);continue}else{w.position=_t,w.line=V,w.lineStart=mt,w.lineIndent=Nt;break}if(Yt)he(w,Ot,_t,!1),ve(w,w.line-V),Ot=_t=w.position,Yt=!1;if(!K(Ht))_t=w.position+1;Ht=w.input.charCodeAt(++w.position)}if(he(w,Ot,_t,!1),w.result)return!0;return w.kind=Mt,w.result=$t,!1}t(Er,"readPlainScalar");function si(w,pt){let Bt,Ot,_t=w.input.charCodeAt(w.position);if(_t!==39)return!1;w.kind="scalar",w.result="",w.position++,Bt=Ot=w.position;while((_t=w.input.charCodeAt(w.position))!==0)if(_t===39)if(he(w,Bt,w.position,!0),_t=w.input.charCodeAt(++w.position),_t===39)Bt=w.position,w.position++,Ot=w.position;else return!0;else if(H(_t))he(w,Bt,Ot,!0),ve(w,ne(w,!1,pt)),Bt=Ot=w.position;else if(w.position===w.lineStart&&Le(w))et(w,"unexpected end of the document within a single quoted scalar");else if(w.position++,!K(_t))Ot=w.position;et(w,"unexpected end of the stream within a single quoted scalar")}t(si,"readSingleQuotedScalar");function Tr(w,pt){let Bt,Ot,_t,Yt=w.input.charCodeAt(w.position);if(Yt!==34)return!1;w.kind="scalar",w.result="",w.position++,Bt=Ot=w.position;while((Yt=w.input.charCodeAt(w.position))!==0)if(Yt===34)return he(w,Bt,w.position,!0),w.position++,!0;else if(Yt===92){if(he(w,Bt,w.position,!0),Yt=w.input.charCodeAt(++w.position),H(Yt))ne(w,!1,pt);else if(Yt<256&&Ct[Yt])w.result+=rt[Yt],w.position++;else if((_t=st(Yt))>0){let V=_t,mt=0;for(;V>0;V--)if(Yt=w.input.charCodeAt(++w.position),(_t=nt(Yt))>=0)mt=(mt<<4)+_t;else et(w,"expected hexadecimal character");w.result+=Ft(mt),w.position++}else et(w,"unknown escape sequence");Bt=Ot=w.position}else if(H(Yt))he(w,Bt,Ot,!0),ve(w,ne(w,!1,pt)),Bt=Ot=w.position;else if(w.position===w.lineStart&&Le(w))et(w,"unexpected end of the document within a double quoted scalar");else if(w.position++,!K(Yt))Ot=w.position;et(w,"unexpected end of the stream within a double quoted scalar")}t(Tr,"readDoubleQuotedScalar");function vi(w,pt){let Bt=!0,Ot,_t,Yt,V=w.tag,mt,Nt=w.anchor,Mt,$t,Ht,Wt,Qt=Object.create(null),Zt,Jt,ee,pe=w.input.charCodeAt(w.position);if(pe===91)Mt=93,Wt=!1,mt=[];else if(pe===123)Mt=125,Wt=!0,mt={};else return!1;if(w.anchor!==null)At(w,w.anchor,mt);pe=w.input.charCodeAt(++w.position);while(pe!==0){if(ne(w,!0,pt),pe=w.input.charCodeAt(w.position),pe===Mt)return w.position++,w.tag=V,w.anchor=Nt,w.kind=Wt?"mapping":"sequence",w.result=mt,!0;else if(!Bt)et(w,"missed comma between flow collection entries");else if(pe===44)et(w,"expected the node content, but found ','");if(Jt=Zt=ee=null,$t=Ht=!1,pe===63){let Be=w.input.charCodeAt(w.position+1);if(J(Be))$t=Ht=!0,w.position++,ne(w,!0,pt)}if(Ot=w.line,_t=w.lineStart,Yt=w.position,Ne(w,pt,n,!1,!0),Jt=w.tag,Zt=w.result,ne(w,!0,pt),pe=w.input.charCodeAt(w.position),(Ht||w.line===Ot)&&pe===58)$t=!0,pe=w.input.charCodeAt(++w.position),ne(w,!0,pt),Ne(w,pt,n,!1,!0),ee=w.result;if(Wt)re(w,mt,Qt,Jt,Zt,ee,Ot,_t,Yt);else if($t)mt.push(re(w,null,Qt,Jt,Zt,ee,Ot,_t,Yt));else mt.push(Zt);if(ne(w,!0,pt),pe=w.input.charCodeAt(w.position),pe===44)Bt=!0,pe=w.input.charCodeAt(++w.position);else Bt=!1}et(w,"unexpected end of the stream within a flow collection")}t(vi,"readFlowCollection");function Se(w,pt){let Bt,Ot=y,_t=!1,Yt=!1,V=pt,mt=0,Nt=!1,Mt,$t=w.input.charCodeAt(w.position);if($t===124)Bt=!1;else if($t===62)Bt=!0;else return!1;w.kind="scalar",w.result="";while($t!==0)if($t=w.input.charCodeAt(++w.position),$t===43||$t===45)if(y===Ot)Ot=$t===43?x:d;else et(w,"repeat of a chomping mode identifier");else if((Mt=ft($t))>=0)if(Mt===0)et(w,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Yt)V=pt+Mt-1,Yt=!0;else et(w,"repeat of an indentation width identifier");else break;if(K($t)){do $t=w.input.charCodeAt(++w.position);while(K($t));if($t===35)do $t=w.input.charCodeAt(++w.position);while(!H($t)&&$t!==0)}while($t!==0){ae(w),w.lineIndent=0,$t=w.input.charCodeAt(w.position);while((!Yt||w.lineIndent<V)&&$t===32)w.lineIndent++,$t=w.input.charCodeAt(++w.position);if(!Yt&&w.lineIndent>V)V=w.lineIndent;if(H($t)){mt++;continue}if(!Yt&&V===0)et(w,"missing indentation for block scalar");if(w.lineIndent<V){if(Ot===x)w.result+=r.repeat(`
|
|
139
|
-
`,_t?1+mt:mt);else if(Ot===y){if(_t)w.result+=`
|
|
140
|
-
`}break}if(Bt)if(K($t))Nt=!0,w.result+=r.repeat(`
|
|
141
|
-
`,_t?1+mt:mt);else if(Nt)Nt=!1,w.result+=r.repeat(`
|
|
142
|
-
`,mt+1);else if(mt===0){if(_t)w.result+=" "}else w.result+=r.repeat(`
|
|
143
|
-
`,mt);else w.result+=r.repeat(`
|
|
144
|
-
`,_t?1+mt:mt);_t=!0,Yt=!0,mt=0;let Ht=w.position;while(!H($t)&&$t!==0)$t=w.input.charCodeAt(++w.position);he(w,Ht,w.position,!1)}return!0}t(Se,"readBlockScalar");function fr(w,pt){let{tag:Bt,anchor:Ot}=w,_t=[],Yt=!1;if(w.firstTabInLine!==-1)return!1;if(w.anchor!==null)At(w,w.anchor,_t);let V=w.input.charCodeAt(w.position);while(V!==0){if(w.firstTabInLine!==-1)w.position=w.firstTabInLine,et(w,"tab characters must not be used in indentation");if(V!==45)break;let mt=w.input.charCodeAt(w.position+1);if(!J(mt))break;if(Yt=!0,w.position++,ne(w,!0,-1)){if(w.lineIndent<=pt){_t.push(null),V=w.input.charCodeAt(w.position);continue}}let Nt=w.line;if(Ne(w,pt,l,!1,!0),_t.push(w.result),ne(w,!0,-1),V=w.input.charCodeAt(w.position),(w.line===Nt||w.lineIndent>pt)&&V!==0)et(w,"bad indentation of a sequence entry");else if(w.lineIndent<pt)break}if(Yt)return w.tag=Bt,w.anchor=Ot,w.kind="sequence",w.result=_t,!0;return!1}t(fr,"readBlockSequence");function ke(w,pt,Bt){let Ot,_t,Yt,V,{tag:mt,anchor:Nt}=w,Mt={},$t=Object.create(null),Ht=null,Wt=null,Qt=null,Zt=!1,Jt=!1;if(w.firstTabInLine!==-1)return!1;if(w.anchor!==null)At(w,w.anchor,Mt);let ee=w.input.charCodeAt(w.position);while(ee!==0){if(!Zt&&w.firstTabInLine!==-1)w.position=w.firstTabInLine,et(w,"tab characters must not be used in indentation");let pe=w.input.charCodeAt(w.position+1),Be=w.line;if((ee===63||ee===58)&&J(pe)){if(ee===63){if(Zt)re(w,Mt,$t,Ht,Wt,null,_t,Yt,V),Ht=Wt=Qt=null;Jt=!0,Zt=!0,Ot=!0}else if(Zt)Zt=!1,Ot=!0;else et(w,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");w.position+=1,ee=pe}else{if(_t=w.line,Yt=w.lineStart,V=w.position,!Ne(w,Bt,c,!1,!0))break;if(w.line===Be){ee=w.input.charCodeAt(w.position);while(K(ee))ee=w.input.charCodeAt(++w.position);if(ee===58){if(ee=w.input.charCodeAt(++w.position),!J(ee))et(w,"a whitespace character is expected after the key-value separator within a block mapping");if(Zt)re(w,Mt,$t,Ht,Wt,null,_t,Yt,V),Ht=Wt=Qt=null;Jt=!0,Zt=!1,Ot=!1,Ht=w.tag,Wt=w.result}else if(Jt)et(w,"can not read an implicit mapping pair; a colon is missed");else return w.tag=mt,w.anchor=Nt,!0}else if(Jt)et(w,"can not read a block mapping entry; a multiline key may not be an implicit key");else return w.tag=mt,w.anchor=Nt,!0}if(w.line===Be||w.lineIndent>pt){if(Zt)_t=w.line,Yt=w.lineStart,V=w.position;if(Ne(w,pt,p,!0,Ot))if(Zt)Wt=w.result;else Qt=w.result;if(!Zt)re(w,Mt,$t,Ht,Wt,Qt,_t,Yt,V),Ht=Wt=Qt=null;ne(w,!0,-1),ee=w.input.charCodeAt(w.position)}if((w.line===Be||w.lineIndent>pt)&&ee!==0)et(w,"bad indentation of a mapping entry");else if(w.lineIndent<pt)break}if(Zt)re(w,Mt,$t,Ht,Wt,null,_t,Yt,V);if(Jt)w.tag=mt,w.anchor=Nt,w.kind="mapping",w.result=Mt;return Jt}t(ke,"readBlockMapping");function ai(w){let pt=!1,Bt=!1,Ot,_t,Yt=w.input.charCodeAt(w.position);if(Yt!==33)return!1;if(w.tag!==null)et(w,"duplication of a tag property");if(Yt=w.input.charCodeAt(++w.position),Yt===60)pt=!0,Yt=w.input.charCodeAt(++w.position);else if(Yt===33)Bt=!0,Ot="!!",Yt=w.input.charCodeAt(++w.position);else Ot="!";let V=w.position;if(pt){do Yt=w.input.charCodeAt(++w.position);while(Yt!==0&&Yt!==62);if(w.position<w.length)_t=w.input.slice(V,w.position),Yt=w.input.charCodeAt(++w.position);else et(w,"unexpected end of the stream within a verbatim tag")}else{while(Yt!==0&&!J(Yt)){if(Yt===33)if(!Bt){if(Ot=w.input.slice(V-1,w.position+1),!M.test(Ot))et(w,"named tag handle cannot contain such characters");Bt=!0,V=w.position+1}else et(w,"tag suffix cannot contain exclamation marks");Yt=w.input.charCodeAt(++w.position)}if(_t=w.input.slice(V,w.position),v.test(_t))et(w,"tag suffix cannot contain flow indicator characters")}if(_t&&!q.test(_t))et(w,"tag name cannot contain such characters: "+_t);try{_t=decodeURIComponent(_t)}catch(mt){et(w,"tag name is malformed: "+_t)}if(pt)w.tag=_t;else if(o.call(w.tagMap,Ot))w.tag=w.tagMap[Ot]+_t;else if(Ot==="!")w.tag="!"+_t;else if(Ot==="!!")w.tag="tag:yaml.org,2002:"+_t;else et(w,'undeclared tag handle "'+Ot+'"');return!0}t(ai,"readTagProperty");function Qe(w){let pt=w.input.charCodeAt(w.position);if(pt!==38)return!1;if(w.anchor!==null)et(w,"duplication of an anchor property");pt=w.input.charCodeAt(++w.position);let Bt=w.position;while(pt!==0&&!J(pt)&&!tt(pt))pt=w.input.charCodeAt(++w.position);if(w.position===Bt)et(w,"name of an anchor node must contain at least one character");return w.anchor=w.input.slice(Bt,w.position),!0}t(Qe,"readAnchorProperty");function _r(w){let pt=w.input.charCodeAt(w.position);if(pt!==42)return!1;pt=w.input.charCodeAt(++w.position);let Bt=w.position;while(pt!==0&&!J(pt)&&!tt(pt))pt=w.input.charCodeAt(++w.position);if(w.position===Bt)et(w,"name of an alias node must contain at least one character");let Ot=w.input.slice(Bt,w.position);if(!o.call(w.anchorMap,Ot))et(w,'unidentified alias "'+Ot+'"');return w.result=w.anchorMap[Ot],ne(w,!0,-1),!0}t(_r,"readAlias");function Fi(w,pt,Bt,Ot){let _t=oe(w);if(Vt(w),de(w,pt),w.tag=null,w.anchor=null,w.kind=null,w.result=null,ke(w,Bt,Ot)&&w.kind==="mapping")return Xt(w),!0;return se(w),de(w,_t),!1}t(Fi,"tryReadBlockMappingFromProperty");function Ne(w,pt,Bt,Ot,_t){let Yt,V,mt=1,Nt=!1,Mt=!1,$t=null,Ht,Wt,Qt;if(w.depth>=w.maxDepth)et(w,"nesting exceeded maxDepth ("+w.maxDepth+")");if(w.depth+=1,w.listener!==null)w.listener("open",w);w.tag=null,w.anchor=null,w.kind=null,w.result=null;let Zt=Yt=V=p===Bt||l===Bt;if(Ot){if(ne(w,!0,-1)){if(Nt=!0,w.lineIndent>pt)mt=1;else if(w.lineIndent===pt)mt=0;else if(w.lineIndent<pt)mt=-1}}if(mt===1)while(!0){let Jt=w.input.charCodeAt(w.position),ee=oe(w);if(Nt&&(Jt===33&&w.tag!==null||Jt===38&&w.anchor!==null))break;if(!ai(w)&&!Qe(w))break;if($t===null)$t=ee;if(ne(w,!0,-1)){if(Nt=!0,V=Zt,w.lineIndent>pt)mt=1;else if(w.lineIndent===pt)mt=0;else if(w.lineIndent<pt)mt=-1}else V=!1}if(V)V=Nt||_t;if(mt===1||p===Bt){if(n===Bt||c===Bt)Wt=pt;else Wt=pt+1;if(Qt=w.position-w.lineStart,mt===1)if(V&&(fr(w,Qt)||ke(w,Qt,Wt))||vi(w,Wt))Mt=!0;else{let Jt=w.input.charCodeAt(w.position);if($t!==null&&Zt&&!V&&Jt!==124&&Jt!==62&&Fi(w,$t,$t.position-$t.lineStart,Wt))Mt=!0;else if(Yt&&Se(w,Wt)||si(w,Wt)||Tr(w,Wt))Mt=!0;else if(_r(w)){if(Mt=!0,w.tag!==null||w.anchor!==null)et(w,"alias node should not have any properties")}else if(Er(w,Wt,n===Bt)){if(Mt=!0,w.tag===null)w.tag="?"}if(w.anchor!==null)At(w,w.anchor,w.result)}else if(mt===0)Mt=V&&fr(w,Qt)}if(w.tag===null){if(w.anchor!==null)At(w,w.anchor,w.result)}else if(w.tag==="?"){if(w.result!==null&&w.kind!=="scalar")et(w,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+w.kind+'"');for(let Jt=0,ee=w.implicitTypes.length;Jt<ee;Jt+=1)if(Ht=w.implicitTypes[Jt],Ht.resolve(w.result)){if(w.result=Ht.construct(w.result),w.tag=Ht.tag,w.anchor!==null)At(w,w.anchor,w.result);break}}else if(w.tag!=="!"){if(o.call(w.typeMap[w.kind||"fallback"],w.tag))Ht=w.typeMap[w.kind||"fallback"][w.tag];else{Ht=null;let Jt=w.typeMap.multi[w.kind||"fallback"];for(let ee=0,pe=Jt.length;ee<pe;ee+=1)if(w.tag.slice(0,Jt[ee].tag.length)===Jt[ee].tag){Ht=Jt[ee];break}}if(!Ht)et(w,"unknown tag !<"+w.tag+">");if(w.result!==null&&Ht.kind!==w.kind)et(w,"unacceptable node kind for !<"+w.tag+'> tag; it should be "'+Ht.kind+'", not "'+w.kind+'"');if(!Ht.resolve(w.result,w.tag))et(w,"cannot resolve a node with !<"+w.tag+"> explicit tag");else if(w.result=Ht.construct(w.result,w.tag),w.anchor!==null)At(w,w.anchor,w.result)}if(w.listener!==null)w.listener("close",w);return w.depth-=1,w.tag!==null||w.anchor!==null||Mt}t(Ne,"composeNode");function Mi(w){let pt=w.position,Bt=!1,Ot;w.version=null,w.checkLineBreaks=w.legacy,w.tagMap=Object.create(null),w.anchorMap=Object.create(null);while((Ot=w.input.charCodeAt(w.position))!==0){if(ne(w,!0,-1),Ot=w.input.charCodeAt(w.position),w.lineIndent>0||Ot!==37)break;Bt=!0,Ot=w.input.charCodeAt(++w.position);let _t=w.position;while(Ot!==0&&!J(Ot))Ot=w.input.charCodeAt(++w.position);let Yt=w.input.slice(_t,w.position),V=[];if(Yt.length<1)et(w,"directive name must not be less than one character in length");while(Ot!==0){while(K(Ot))Ot=w.input.charCodeAt(++w.position);if(Ot===35){do Ot=w.input.charCodeAt(++w.position);while(Ot!==0&&!H(Ot));break}if(H(Ot))break;_t=w.position;while(Ot!==0&&!J(Ot))Ot=w.input.charCodeAt(++w.position);V.push(w.input.slice(_t,w.position))}if(Ot!==0)ae(w);if(o.call(ge,Yt))ge[Yt](w,Yt,V);else wt(w,'unknown document directive "'+Yt+'"')}if(ne(w,!0,-1),w.lineIndent===0&&w.input.charCodeAt(w.position)===45&&w.input.charCodeAt(w.position+1)===45&&w.input.charCodeAt(w.position+2)===45)w.position+=3,ne(w,!0,-1);else if(Bt)et(w,"directives end mark is expected");if(Ne(w,w.lineIndent-1,p,!1,!0),ne(w,!0,-1),w.checkLineBreaks&&_.test(w.input.slice(pt,w.position)))wt(w,"non-ASCII line breaks are interpreted as content");if(w.documents.push(w.result),w.position===w.lineStart&&Le(w)){if(w.input.charCodeAt(w.position)===46)w.position+=3,ne(w,!0,-1);return}if(w.position<w.length-1)et(w,"end of the stream or a document separator is expected")}t(Mi,"readDocument");function Yr(w,pt){if(w=String(w),pt=pt||{},w.length!==0){if(w.charCodeAt(w.length-1)!==10&&w.charCodeAt(w.length-1)!==13)w+=`
|
|
145
|
-
`;if(w.charCodeAt(0)===65279)w=w.slice(1)}let Bt=new ot(w,pt),Ot=w.indexOf("\x00");if(Ot!==-1)Bt.position=Ot,et(Bt,"null byte is not allowed in input");Bt.input+="\x00";while(Bt.input.charCodeAt(Bt.position)===32)Bt.lineIndent+=1,Bt.position+=1;while(Bt.position<Bt.length-1)Mi(Bt);return Bt.documents}t(Yr,"loadDocuments");function ni(w,pt,Bt){if(pt!==null&&typeof pt==="object"&&typeof Bt>"u")Bt=pt,pt=null;let Ot=Yr(w,Bt);if(typeof pt!=="function")return Ot;for(let _t=0,Yt=Ot.length;_t<Yt;_t+=1)pt(Ot[_t])}t(ni,"loadAll2");function li(w,pt){let Bt=Yr(w,pt);if(Bt.length===0)return;else if(Bt.length===1)return Bt[0];throw new e("expected a single document in the stream, but found more")}return t(li,"load2"),Ol.loadAll=ni,Ol.load=li,Ol}t(Yg,"requireLoader");var qu={},Ng;function Ug(){if(Ng)return qu;Ng=1;let r=os(),e=ss(),i=Il(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,n=65279,c=9,l=10,p=13,y=32,d=33,x=34,b=35,_=37,v=38,M=39,q=42,W=44,H=45,K=58,J=61,tt=62,nt=63,st=64,ft=91,xt=93,Ft=96,kt=123,Ct=124,rt=125,ot={};ot[0]="\\0",ot[7]="\\a",ot[8]="\\b",ot[9]="\\t",ot[10]="\\n",ot[11]="\\v",ot[12]="\\f",ot[13]="\\r",ot[27]="\\e",ot[34]="\\\"",ot[92]="\\\\",ot[133]="\\N",ot[160]="\\_",ot[8232]="\\L",ot[8233]="\\P";let gt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function wt(V,mt){if(mt===null)return{};let Nt={},Mt=Object.keys(mt);for(let $t=0,Ht=Mt.length;$t<Ht;$t+=1){let Wt=Mt[$t],Qt=String(mt[Wt]);if(Wt.slice(0,2)==="!!")Wt="tag:yaml.org,2002:"+Wt.slice(2);let Zt=V.compiledTypeMap.fallback[Wt];if(Zt&&o.call(Zt.styleAliases,Qt))Qt=Zt.styleAliases[Qt];Nt[Wt]=Qt}return Nt}t(wt,"compileStyleMap");function At(V){let mt,Nt,Mt=V.toString(16).toUpperCase();if(V<=255)mt="x",Nt=2;else if(V<=65535)mt="u",Nt=4;else if(V<=4294967295)mt="U",Nt=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+mt+r.repeat("0",Nt-Mt.length)+Mt}t(At,"encodeHex");let Vt=1,Xt=2;function se(V){this.schema=V.schema||i,this.indent=Math.max(1,V.indent||2),this.noArrayIndent=V.noArrayIndent||!1,this.skipInvalid=V.skipInvalid||!1,this.flowLevel=r.isNothing(V.flowLevel)?-1:V.flowLevel,this.styleMap=wt(this.schema,V.styles||null),this.sortKeys=V.sortKeys||!1,this.lineWidth=V.lineWidth||80,this.noRefs=V.noRefs||!1,this.noCompatMode=V.noCompatMode||!1,this.condenseFlow=V.condenseFlow||!1,this.quotingType=V.quotingType==='"'?Xt:Vt,this.forceQuotes=V.forceQuotes||!1,this.replacer=typeof V.replacer==="function"?V.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(se,"State");function oe(V,mt){let Nt=r.repeat(" ",mt),Mt=0,$t="",Ht=V.length;while(Mt<Ht){let Wt,Qt=V.indexOf(`
|
|
146
|
-
`,Mt);if(Qt===-1)Wt=V.slice(Mt),Mt=Ht;else Wt=V.slice(Mt,Qt+1),Mt=Qt+1;if(Wt.length&&Wt!==`
|
|
147
|
-
`)$t+=Nt;$t+=Wt}return $t}t(oe,"indentString");function de(V,mt){return`
|
|
148
|
-
`+r.repeat(" ",V.indent*mt)}t(de,"generateNextLine");function ge(V,mt){for(let Nt=0,Mt=V.implicitTypes.length;Nt<Mt;Nt+=1)if(V.implicitTypes[Nt].resolve(mt))return!0;return!1}t(ge,"testImplicitResolving");function he(V){return V===y||V===c}t(he,"isWhitespace");function Gt(V){return V>=32&&V<=126||V>=161&&V<=55295&&V!==8232&&V!==8233||V>=57344&&V<=65533&&V!==n||V>=65536&&V<=1114111}t(Gt,"isPrintable");function re(V){return Gt(V)&&V!==n&&V!==p&&V!==l}t(re,"isNsCharOrWhitespace");function ae(V,mt,Nt){let Mt=re(V),$t=Mt&&!he(V);return(Nt?Mt:Mt&&V!==W&&V!==ft&&V!==xt&&V!==kt&&V!==rt)&&V!==b&&!(mt===K&&!$t)||re(mt)&&!he(mt)&&V===b||mt===K&&$t}t(ae,"isPlainSafe");function ne(V){return Gt(V)&&V!==n&&!he(V)&&V!==H&&V!==nt&&V!==K&&V!==W&&V!==ft&&V!==xt&&V!==kt&&V!==rt&&V!==b&&V!==v&&V!==q&&V!==d&&V!==Ct&&V!==J&&V!==tt&&V!==M&&V!==x&&V!==_&&V!==st&&V!==Ft}t(ne,"isPlainSafeFirst");function Le(V){return!he(V)&&V!==K}t(Le,"isPlainSafeLast");function ve(V,mt){let Nt=V.charCodeAt(mt),Mt;if(Nt>=55296&&Nt<=56319&&mt+1<V.length){if(Mt=V.charCodeAt(mt+1),Mt>=56320&&Mt<=57343)return(Nt-55296)*1024+Mt-56320+65536}return Nt}t(ve,"codePointAt");function Er(V){return/^\n* /.test(V)}t(Er,"needIndentIndicator");let si=1,Tr=2,vi=3,Se=4,fr=5;function ke(V,mt,Nt,Mt,$t,Ht,Wt,Qt){let Zt,Jt=0,ee=null,pe=!1,Be=!1,ms=Mt!==-1,Oi=-1,Ii=ne(ve(V,0))&&Le(ve(V,V.length-1));if(mt||Wt)for(Zt=0;Zt<V.length;Jt>=65536?Zt+=2:Zt++){if(Jt=ve(V,Zt),!Gt(Jt))return fr;Ii=Ii&&ae(Jt,ee,Qt),ee=Jt}else{for(Zt=0;Zt<V.length;Jt>=65536?Zt+=2:Zt++){if(Jt=ve(V,Zt),Jt===l){if(pe=!0,ms)Be=Be||Zt-Oi-1>Mt&&V[Oi+1]!==" ",Oi=Zt}else if(!Gt(Jt))return fr;Ii=Ii&&ae(Jt,ee,Qt),ee=Jt}Be=Be||ms&&(Zt-Oi-1>Mt&&V[Oi+1]!==" ")}if(!pe&&!Be){if(Ii&&!Wt&&!$t(V))return si;return Ht===Xt?fr:Tr}if(Nt>9&&Er(V))return fr;if(!Wt)return Be?Se:vi;return Ht===Xt?fr:Tr}t(ke,"chooseScalarStyle");function ai(V,mt,Nt,Mt,$t){V.dump=function(){if(mt.length===0)return V.quotingType===Xt?'""':"''";if(!V.noCompatMode){if(gt.indexOf(mt)!==-1||et.test(mt))return V.quotingType===Xt?'"'+mt+'"':"'"+mt+"'"}let Ht=V.indent*Math.max(1,Nt),Wt=V.lineWidth===-1?-1:Math.max(Math.min(V.lineWidth,40),V.lineWidth-Ht),Qt=Mt||V.flowLevel>-1&&Nt>=V.flowLevel;function Zt(Jt){return ge(V,Jt)}switch(t(Zt,"testAmbiguity"),ke(mt,Qt,V.indent,Wt,Zt,V.quotingType,V.forceQuotes&&!Mt,$t)){case si:return mt;case Tr:return"'"+mt.replace(/'/g,"''")+"'";case vi:return"|"+Qe(mt,V.indent)+_r(oe(mt,Ht));case Se:return">"+Qe(mt,V.indent)+_r(oe(Fi(mt,Wt),Ht));case fr:return'"'+Mi(mt)+'"';default:throw new e("impossible error: invalid scalar style")}}()}t(ai,"writeScalar");function Qe(V,mt){let Nt=Er(V)?String(mt):"",Mt=V[V.length-1]===`
|
|
149
|
-
`,Ht=Mt&&(V[V.length-2]===`
|
|
150
|
-
`||V===`
|
|
151
|
-
`)?"+":Mt?"":"-";return Nt+Ht+`
|
|
152
|
-
`}t(Qe,"blockHeader");function _r(V){return V[V.length-1]===`
|
|
153
|
-
`?V.slice(0,-1):V}t(_r,"dropEndingNewline");function Fi(V,mt){let Nt=/(\n+)([^\n]*)/g,Mt=function(){let Qt=V.indexOf(`
|
|
154
|
-
`);return Qt=Qt!==-1?Qt:V.length,Nt.lastIndex=Qt,Ne(V.slice(0,Qt),mt)}(),$t=V[0]===`
|
|
155
|
-
`||V[0]===" ",Ht,Wt;while(Wt=Nt.exec(V)){let Qt=Wt[1],Zt=Wt[2];Ht=Zt[0]===" ",Mt+=Qt+(!$t&&!Ht&&Zt!==""?`
|
|
156
|
-
`:"")+Ne(Zt,mt),$t=Ht}return Mt}t(Fi,"foldString");function Ne(V,mt){if(V===""||V[0]===" ")return V;let Nt=/ [^ ]/g,Mt,$t=0,Ht,Wt=0,Qt=0,Zt="";while(Mt=Nt.exec(V)){if(Qt=Mt.index,Qt-$t>mt)Ht=Wt>$t?Wt:Qt,Zt+=`
|
|
157
|
-
`+V.slice($t,Ht),$t=Ht+1;Wt=Qt}if(Zt+=`
|
|
158
|
-
`,V.length-$t>mt&&Wt>$t)Zt+=V.slice($t,Wt)+`
|
|
159
|
-
`+V.slice(Wt+1);else Zt+=V.slice($t);return Zt.slice(1)}t(Ne,"foldLine");function Mi(V){let mt="",Nt=0;for(let Mt=0;Mt<V.length;Nt>=65536?Mt+=2:Mt++){Nt=ve(V,Mt);let $t=ot[Nt];if(!$t&&Gt(Nt)){if(mt+=V[Mt],Nt>=65536)mt+=V[Mt+1]}else mt+=$t||At(Nt)}return mt}t(Mi,"escapeString");function Yr(V,mt,Nt){let Mt="",$t=V.tag;for(let Ht=0,Wt=Nt.length;Ht<Wt;Ht+=1){let Qt=Nt[Ht];if(V.replacer)Qt=V.replacer.call(Nt,String(Ht),Qt);if(Bt(V,mt,Qt,!1,!1)||typeof Qt>"u"&&Bt(V,mt,null,!1,!1)){if(Mt!=="")Mt+=","+(!V.condenseFlow?" ":"");Mt+=V.dump}}V.tag=$t,V.dump="["+Mt+"]"}t(Yr,"writeFlowSequence");function ni(V,mt,Nt,Mt){let $t="",Ht=V.tag;for(let Wt=0,Qt=Nt.length;Wt<Qt;Wt+=1){let Zt=Nt[Wt];if(V.replacer)Zt=V.replacer.call(Nt,String(Wt),Zt);if(Bt(V,mt+1,Zt,!0,!0,!1,!0)||typeof Zt>"u"&&Bt(V,mt+1,null,!0,!0,!1,!0)){if(!Mt||$t!=="")$t+=de(V,mt);if(V.dump&&l===V.dump.charCodeAt(0))$t+="-";else $t+="- ";$t+=V.dump}}V.tag=Ht,V.dump=$t||"[]"}t(ni,"writeBlockSequence");function li(V,mt,Nt){let Mt="",$t=V.tag,Ht=Object.keys(Nt);for(let Wt=0,Qt=Ht.length;Wt<Qt;Wt+=1){let Zt="";if(Mt!=="")Zt+=", ";if(V.condenseFlow)Zt+='"';let Jt=Ht[Wt],ee=Nt[Jt];if(V.replacer)ee=V.replacer.call(Nt,Jt,ee);if(!Bt(V,mt,Jt,!1,!1))continue;if(V.dump.length>1024)Zt+="? ";if(Zt+=V.dump+(V.condenseFlow?'"':"")+":"+(V.condenseFlow?"":" "),!Bt(V,mt,ee,!1,!1))continue;Zt+=V.dump,Mt+=Zt}V.tag=$t,V.dump="{"+Mt+"}"}t(li,"writeFlowMapping");function w(V,mt,Nt,Mt){let $t="",Ht=V.tag,Wt=Object.keys(Nt);if(V.sortKeys===!0)Wt.sort();else if(typeof V.sortKeys==="function")Wt.sort(V.sortKeys);else if(V.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let Qt=0,Zt=Wt.length;Qt<Zt;Qt+=1){let Jt="";if(!Mt||$t!=="")Jt+=de(V,mt);let ee=Wt[Qt],pe=Nt[ee];if(V.replacer)pe=V.replacer.call(Nt,ee,pe);if(!Bt(V,mt+1,ee,!0,!0,!0))continue;let Be=V.tag!==null&&V.tag!=="?"||V.dump&&V.dump.length>1024;if(Be)if(V.dump&&l===V.dump.charCodeAt(0))Jt+="?";else Jt+="? ";if(Jt+=V.dump,Be)Jt+=de(V,mt);if(!Bt(V,mt+1,pe,!0,Be))continue;if(V.dump&&l===V.dump.charCodeAt(0))Jt+=":";else Jt+=": ";Jt+=V.dump,$t+=Jt}V.tag=Ht,V.dump=$t||"{}"}t(w,"writeBlockMapping");function pt(V,mt,Nt){let Mt=Nt?V.explicitTypes:V.implicitTypes;for(let $t=0,Ht=Mt.length;$t<Ht;$t+=1){let Wt=Mt[$t];if((Wt.instanceOf||Wt.predicate)&&(!Wt.instanceOf||typeof mt==="object"&&mt instanceof Wt.instanceOf)&&(!Wt.predicate||Wt.predicate(mt))){if(Nt)if(Wt.multi&&Wt.representName)V.tag=Wt.representName(mt);else V.tag=Wt.tag;else V.tag="?";if(Wt.represent){let Qt=V.styleMap[Wt.tag]||Wt.defaultStyle,Zt;if(s.call(Wt.represent)==="[object Function]")Zt=Wt.represent(mt,Qt);else if(o.call(Wt.represent,Qt))Zt=Wt.represent[Qt](mt,Qt);else throw new e("!<"+Wt.tag+'> tag resolver accepts not "'+Qt+'" style');V.dump=Zt}return!0}}return!1}t(pt,"detectType");function Bt(V,mt,Nt,Mt,$t,Ht,Wt){if(V.tag=null,V.dump=Nt,!pt(V,Nt,!1))pt(V,Nt,!0);let Qt=s.call(V.dump),Zt=Mt;if(Mt)Mt=V.flowLevel<0||V.flowLevel>mt;let Jt=Qt==="[object Object]"||Qt==="[object Array]",ee,pe;if(Jt)ee=V.duplicates.indexOf(Nt),pe=ee!==-1;if(V.tag!==null&&V.tag!=="?"||pe||V.indent!==2&&mt>0)$t=!1;if(pe&&V.usedDuplicates[ee])V.dump="*ref_"+ee;else{if(Jt&&pe&&!V.usedDuplicates[ee])V.usedDuplicates[ee]=!0;if(Qt==="[object Object]"){if(Mt&&Object.keys(V.dump).length!==0){if(w(V,mt,V.dump,$t),pe)V.dump="&ref_"+ee+V.dump}else if(li(V,mt,V.dump),pe)V.dump="&ref_"+ee+" "+V.dump}else if(Qt==="[object Array]"){if(Mt&&V.dump.length!==0){if(V.noArrayIndent&&!Wt&&mt>0)ni(V,mt-1,V.dump,$t);else ni(V,mt,V.dump,$t);if(pe)V.dump="&ref_"+ee+V.dump}else if(Yr(V,mt,V.dump),pe)V.dump="&ref_"+ee+" "+V.dump}else if(Qt==="[object String]"){if(V.tag!=="?")ai(V,V.dump,mt,Ht,Zt)}else if(Qt==="[object Undefined]")return!1;else{if(V.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Qt)}if(V.tag!==null&&V.tag!=="?"){let Be=encodeURI(V.tag[0]==="!"?V.tag.slice(1):V.tag).replace(/!/g,"%21");if(V.tag[0]==="!")Be="!"+Be;else if(Be.slice(0,18)==="tag:yaml.org,2002:")Be="!!"+Be.slice(18);else Be="!<"+Be+">";V.dump=Be+" "+V.dump}}return!0}t(Bt,"writeNode");function Ot(V,mt){let Nt=[],Mt=[];_t(V,Nt,Mt);let $t=Mt.length;for(let Ht=0;Ht<$t;Ht+=1)mt.duplicates.push(Nt[Mt[Ht]]);mt.usedDuplicates=Array($t)}t(Ot,"getDuplicateReferences");function _t(V,mt,Nt){if(V!==null&&typeof V==="object"){let Mt=mt.indexOf(V);if(Mt!==-1){if(Nt.indexOf(Mt)===-1)Nt.push(Mt)}else if(mt.push(V),Array.isArray(V))for(let $t=0,Ht=V.length;$t<Ht;$t+=1)_t(V[$t],mt,Nt);else{let $t=Object.keys(V);for(let Ht=0,Wt=$t.length;Ht<Wt;Ht+=1)_t(V[$t[Ht]],mt,Nt)}}}t(_t,"inspectNode");function Yt(V,mt){mt=mt||{};let Nt=new se(mt);if(!Nt.noRefs)Ot(V,Nt);let Mt=V;if(Nt.replacer)Mt=Nt.replacer.call({"":Mt},"",Mt);if(Bt(Nt,0,Mt,!0,!0))return Nt.dump+`
|
|
160
|
-
`;return""}return t(Yt,"dump2"),qu.dump=Yt,qu}t(Ug,"requireDumper");var Wg;function jg(){if(Wg)return ir;Wg=1;let r=Yg(),e=Ug();function i(s,o){return function(){throw Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}return t(i,"renamed"),ir.Type=or(),ir.Schema=Nu(),ir.FAILSAFE_SCHEMA=Yu(),ir.JSON_SCHEMA=Vu(),ir.CORE_SCHEMA=Ku(),ir.DEFAULT_SCHEMA=Il(),ir.load=r.load,ir.loadAll=r.loadAll,ir.dump=e.dump,ir.YAMLException=ss(),ir.types={binary:Ju(),float:Xu(),map:Hu(),null:Uu(),pairs:ef(),set:rf(),timestamp:Zu(),bool:ju(),int:Gu(),merge:Qu(),omap:tf(),seq:zu(),str:Wu()},ir.safeLoad=i("safeLoad","load"),ir.safeLoadAll=i("safeLoadAll","loadAll"),ir.safeDump=i("safeDump","dump"),ir}t(jg,"requireJsYaml");var t2=jg(),e2=zg(t2),{Type:I3,Schema:$3,FAILSAFE_SCHEMA:D3,JSON_SCHEMA:Ut,CORE_SCHEMA:P3,DEFAULT_SCHEMA:R3,load:jt,loadAll:q3,dump:N3,YAMLException:W3,types:z3,safeLoad:H3,safeLoadAll:Y3,safeDump:U3}=e2;var Eo=t((r,e)=>{let{theme:i,themeVariables:s}=e,{useGradient:o,gradientStart:n,gradientStop:c}=s??{},l=r.attr("id"),p=i?.includes("dark")?"#FFFFFF":"#000000",y=t((x,b,_)=>r.append("defs").append("filter").attr("id",x).attr("height",b).attr("width",b).append("feDropShadow").attr("dx",_).attr("dy",_).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p),"dropShadow");if(y(`${l}-drop-shadow`,"130%","4"),y(`${l}-drop-shadow-small`,"150%","2"),!o)return;let d=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)},"insertLookDefs");var Gg=t((r)=>{let{handDrawnSeed:e}=u();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:r,seed:e}},"solidStateFill"),r2=t((r)=>{if(Array.isArray(r))return r;if(!r)return[];return r.split(";").map((e)=>e.trim()).filter(Boolean)},"normalizeStyleList"),Qr=t((r)=>{let e=i2([...r.cssCompiledStyles||[],...r.cssStyles||[],...r2(r.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),i2=t((r)=>{let e=new Map;return r.forEach((i)=>{let[s,o]=i.split(":");e.set(s.trim(),o?.trim())}),e},"styles2Map"),Si=t((r)=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),E=t((r)=>{let{stylesArray:e}=Qr(r),i=[],s=[],o=[],n=[];return e.forEach((c)=>{let l=c[0];if(Si(l))i.push(c.join(":")+" !important");else{if(s.push(c.join(":")+" !important"),l.includes("stroke"))o.push(c.join(":")+" !important");if(l==="fill")n.push(c.join(":")+" !important")}}),{labelStyles:i.join(";"),nodeStyles:s.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:n}},"styles2String"),Kt=t((r,e)=>{let{themeVariables:i,handDrawnSeed:s}=u(),{nodeBorder:o,mainBkg:n}=i,{stylesMap:c}=Qr(r);return Object.assign({roughness:0.7,fill:c.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:c.get("stroke")||o,seed:s,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o2(c.get("stroke-dasharray"))},e)},"userNodeOverrides"),o2=t((r)=>{if(!r)return[0,0];let e=r.trim().split(/\s+/).map(Number);if(e.length===1){let o=isNaN(e[0])?0:e[0];return[o,o]}let i=isNaN(e[0])?0:e[0],s=isNaN(e[1])?0:e[1];return[i,s]},"getStrokeDashArray");var of=(r,e,i,s="")=>{let o=r.split(":");if(r.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let l=o.pop(),p=o.pop(),y={provider:o.length>0?o[0]:s,prefix:p,name:l};return e&&!$l(y)?null:y}let n=o[0],c=n.split("-");if(c.length>1){let l={provider:s,prefix:c.shift(),name:c.join("-")};return e&&!$l(l)?null:l}if(i&&s===""){let l={provider:s,prefix:"",name:n};return e&&!$l(l,i)?null:l}return null},$l=(r,e)=>{if(!r)return!1;return!!((e&&r.prefix===""||!!r.prefix)&&!!r.name)};var s2=Object.freeze({left:0,top:0,width:16,height:16}),as=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),sf=Object.freeze({...s2,...as}),Xg=Object.freeze({...sf,body:"",hidden:!1});function Vg(r,e){let i={};if(!r.hFlip!==!e.hFlip)i.hFlip=!0;if(!r.vFlip!==!e.vFlip)i.vFlip=!0;let s=((r.rotate||0)+(e.rotate||0))%4;if(s)i.rotate=s;return i}function af(r,e){let i=Vg(r,e);for(let s in Xg)if(s in as){if(s in r&&!(s in i))i[s]=as[s]}else if(s in e)i[s]=e[s];else if(s in r)i[s]=r[s];return i}function Kg(r,e){let i=r.icons,s=r.aliases||Object.create(null),o=Object.create(null);function n(c){if(i[c])return o[c]=[];if(!(c in o)){o[c]=null;let l=s[c]&&s[c].parent,p=l&&n(l);if(p)o[c]=[l].concat(p)}return o[c]}return(e||Object.keys(i).concat(Object.keys(s))).forEach(n),o}function Zg(r,e,i){let s=r.icons,o=r.aliases||Object.create(null),n={};function c(l){n=af(s[l]||o[l],n)}return c(e),i.forEach(c),af(r,n)}function nf(r,e){if(r.icons[e])return Zg(r,e,[]);let i=Kg(r,[e])[e];return i?Zg(r,e,i):null}var a2=Object.freeze({width:null,height:null}),Qg=Object.freeze({...a2,...as});var n2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lf(r,e,i){if(e===1)return r;if(i=i||100,typeof r==="number")return Math.ceil(r*e*i)/i;if(typeof r!=="string")return r;let s=r.split(n2);if(s===null||!s.length)return r;let o=[],n=s.shift(),c=l2.test(n);while(!0){if(c){let l=parseFloat(n);if(isNaN(l))o.push(n);else o.push(Math.ceil(l*e*i)/i)}else o.push(n);if(n=s.shift(),n===void 0)return o.join("");c=!c}}function h2(r,e="defs"){let i="",s=r.indexOf("<"+e);while(s>=0){let o=r.indexOf(">",s),n=r.indexOf("</"+e);if(o===-1||n===-1)break;let c=r.indexOf(">",n);if(c===-1)break;i+=r.slice(o+1,n).trim(),r=r.slice(0,s).trim()+r.slice(c+1)}return{defs:i,content:r}}function c2(r,e){return r?"<defs>"+r+"</defs>"+e:e}function Jg(r,e,i){let s=h2(r);return c2(s.defs,e+s.content+i)}var u2=(r)=>r==="unset"||r==="undefined"||r==="none";function hf(r,e){let i={...sf,...r},s={...Qg,...e},o={left:i.left,top:i.top,width:i.width,height:i.height},n=i.body;[i,s].forEach((M)=>{let q=[],{hFlip:W,vFlip:H,rotate:K}=M;if(W)if(H)K+=2;else q.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),q.push("scale(-1 1)"),o.top=o.left=0;else if(H)q.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),q.push("scale(1 -1)"),o.top=o.left=0;let J;if(K<0)K-=Math.floor(K/4)*4;switch(K=K%4,K){case 1:J=o.height/2+o.top,q.unshift("rotate(90 "+J.toString()+" "+J.toString()+")");break;case 2:q.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:J=o.width/2+o.left,q.unshift("rotate(-90 "+J.toString()+" "+J.toString()+")")}if(K%2===1){if(o.left!==o.top)J=o.left,o.left=o.top,o.top=J;if(o.width!==o.height)J=o.width,o.width=o.height,o.height=J}if(q.length)n=Jg(n,'<g transform="'+q.join(" ")+'">',"</g>")});let{width:c,height:l}=s,{width:p,height:y}=o,d,x;if(c===null)x=l===null?"1em":l==="auto"?y:l,d=lf(x,p/y);else d=c==="auto"?p:c,x=l===null?lf(d,y/p):l==="auto"?y:l;let b={},_=(M,q)=>{if(!u2(q))b[M]=q.toString()};_("width",d),_("height",x);let v=[o.left,o.top,p,y];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:n}}var f2=/\sid="(\S+)"/g,tm=new Map;function d2(r){r=r.replace(/[0-9]+$/,"")||"a";let e=tm.get(r)||0;return tm.set(r,e+1),e?`${r}${e}`:r}function cf(r){let e=[],i;while(i=f2.exec(r))e.push(i[1]);if(!e.length)return r;let s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach((o)=>{let n=d2(o),c=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+n+s+"$3")}),r=r.replace(new RegExp(s,"g"),""),r}function uf(r,e){let i=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let s in e)i+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+r+"</svg>"}var zs={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},ff=new Map,em=new Map,Br=t((r)=>{for(let e of r){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.debug("Registering icon pack:",e.name),"loader"in e)em.set(e.name,e.loader);else if("icons"in e)ff.set(e.name,e.icons);else throw a.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),rm=t(async(r,e)=>{let i=of(r,!0,e!==void 0);if(!i)throw Error(`Invalid icon name: ${r}`);let s=i.prefix||e;if(!s)throw Error(`Icon name must contain a prefix: ${r}`);let o=ff.get(s);if(!o){let c=em.get(s);if(!c)throw Error(`Icon set not found: ${i.prefix}`);try{o={...await c(),prefix:s},ff.set(s,o)}catch(l){throw a.error(l),Error(`Failed to load icon set: ${i.prefix}`)}}let n=nf(o,i.name);if(!n)throw Error(`Icon not found: ${r}`);return n},"getRegisteredIconData"),Dl=t(async(r)=>{try{return await rm(r),!0}catch{return!1}},"isIconAvailable"),qt=t(async(r,e,i)=>{let s;try{s=await rm(r,e?.fallbackPrefix)}catch(c){a.error(c),s=zs}let o=hf(s,e),n=uf(cf(o.body),{...o.attributes,...i});return j(n,S())},"getIconSVG");var xm=Ze(oa(),1);function Qi(r,e){if(typeof r!=="function"||e!=null&&typeof e!=="function")throw TypeError("Expected a function");let i=function(...s){let o=e?e.apply(this,s):s[0],n=i.cache;if(n.has(o))return n.get(o);let c=r.apply(this,s);return i.cache=n.set(o,c)||n,c};return i.cache=new(Qi.Cache||Map),i}Qi.Cache=Map;function Fr(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function pr(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var Ao="[object RegExp]",Wa="[object String]",Ga="[object Number]",Ha="[object Boolean]",Ya="[object Arguments]",Ro="[object Symbol]",Lo="[object Date]",Io="[object Map]",Do="[object Set]",No="[object Array]";var Mo="[object ArrayBuffer]",Po="[object Object]";var Oo="[object DataView]",$o="[object Uint8Array]",Bo="[object Uint8ClampedArray]",Fo="[object Uint16Array]",zo="[object Uint32Array]";var Uo="[object Int8Array]",jo="[object Int16Array]",qo="[object Int32Array]";var Vo="[object Float32Array]",Wo="[object Float64Array]";function ns(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function mr(r){return ns(r)}function lm(){}function hm(r){if(Fr(r))return r;if(Array.isArray(r)||ns(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let e=Object.getPrototypeOf(r);if(e==null)return Object.assign(Object.create(e),r);let i=e.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let s=new i(r);return s.lastIndex=r.lastIndex,s}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let s;if(r instanceof AggregateError)s=new i(r.errors,r.message,{cause:r.cause});else s=new i(r.message,{cause:r.cause});return s.stack=r.stack,Object.assign(s,r),s}if(typeof File<"u"&&r instanceof File)return new i([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object")return Object.assign(Object.create(e),r);return r}function Pl(r){return Object.getOwnPropertySymbols(r).filter((e)=>Object.prototype.propertyIsEnumerable.call(r,e))}var df=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}();function Za(r){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(r)}function cm(r){return r==="__proto__"}function Rl(r){if(typeof r!=="object")return!1;if(r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];if(i==null)return!1;if(!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable)return!1;return r.toString()===`[object ${i}]`}let e=r;while(Object.getPrototypeOf(e)!==null)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function um(r,e){return ls(r,void 0,r,new Map,e)}function ls(r,e,i,s=new Map,o=void 0){let n=o?.(r,e,i,s);if(n!==void 0)return n;if(Fr(r))return r;if(s.has(r))return s.get(r);if(Array.isArray(r)){let c=Array(r.length);s.set(r,c);for(let l=0;l<r.length;l++)c[l]=ls(r[l],l,i,s,o);if(Object.hasOwn(r,"index"))c.index=r.index;if(Object.hasOwn(r,"input"))c.input=r.input;return c}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let c=new RegExp(r.source,r.flags);return c.lastIndex=r.lastIndex,c}if(r instanceof Map){let c=new Map;s.set(r,c);for(let[l,p]of r)c.set(l,ls(p,l,i,s,o));return c}if(r instanceof Set){let c=new Set;s.set(r,c);for(let l of r)c.add(ls(l,void 0,i,s,o));return c}if(Za(r))return r.subarray();if(ns(r)){let c=new(Object.getPrototypeOf(r)).constructor(r.length);s.set(r,c);for(let l=0;l<r.length;l++)c[l]=ls(r[l],l,i,s,o);return c}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let c=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return s.set(r,c),Ar(c,r,i,s,o),c}if(typeof File<"u"&&r instanceof File){let c=new File([r],r.name,{type:r.type});return s.set(r,c),Ar(c,r,i,s,o),c}if(typeof Blob<"u"&&r instanceof Blob){let c=new Blob([r],{type:r.type});return s.set(r,c),Ar(c,r,i,s,o),c}if(r instanceof Error){let c=structuredClone(r);return s.set(r,c),c.message=r.message,c.name=r.name,c.stack=r.stack,c.cause=r.cause,c.constructor=r.constructor,Ar(c,r,i,s,o),c}if(r instanceof Boolean){let c=new Boolean(r.valueOf());return s.set(r,c),Ar(c,r,i,s,o),c}if(r instanceof Number){let c=new Number(r.valueOf());return s.set(r,c),Ar(c,r,i,s,o),c}if(r instanceof String){let c=new String(r.valueOf());return s.set(r,c),Ar(c,r,i,s,o),c}if(typeof r==="object"&&B2(r)){let c=Object.create(Object.getPrototypeOf(r));return s.set(r,c),Ar(c,r,i,s,o),c}return r}function Ar(r,e,i=r,s,o){let n=[...Object.keys(e),...Pl(e)];for(let c=0;c<n.length;c++){let l=n[c],p=Object.getOwnPropertyDescriptor(r,l);if(p==null||p.writable)r[l]=ls(e[l],l,i,s,o)}}function B2(r){switch(pr(r)){case Ya:case No:case Mo:case Oo:case Ha:case Lo:case Vo:case Wo:case Uo:case jo:case qo:case Io:case Ga:case Po:case Ao:case Do:case Wa:case Ro:case $o:case Bo:case Fo:case zo:return!0;default:return!1}}function fm(r,e){return um(r,(i,s,o,n)=>{let c=e?.(i,s,o,n);if(c!==void 0)return c;if(typeof r!=="object")return;if(pr(r)==="[object Object]"&&typeof r.constructor!=="function"){let l={};return n.set(r,l),Ar(l,r,o,n),l}switch(Object.prototype.toString.call(r)){case Ga:case Wa:case Ha:{let l=new r.constructor(r?.valueOf());return Ar(l,r),l}case Ya:{let l={};return Ar(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}default:return}})}function pf(r){return fm(r)}function Ti(r){return r!==null&&typeof r==="object"&&pr(r)==="[object Arguments]"}function Ma(r){return typeof r==="object"&&r!==null}function dm(r){return Number.isSafeInteger(r)&&r>=0}function Go(r){return r!=null&&typeof r!=="function"&&dm(r.length)}function pm(r){return Ma(r)&&Go(r)}function gm(r,...e){let i=e.slice(0,-1),s=e[e.length-1],o=r;for(let n=0;n<i.length;n++){let c=i[n];o=ql(o,c,s,new Map)}return o}function ql(r,e,i,s){if(Fr(r))r=Object(r);if(e==null||typeof e!=="object")return r;if(s.has(e))return hm(s.get(e));if(s.set(e,r),Array.isArray(e)){e=e.slice();for(let n=0;n<e.length;n++)if(!(n in e))e[n]=void 0}let o=[...Object.keys(e),...Pl(e)];for(let n=0;n<o.length;n++){let c=o[n];if(cm(c))continue;let l=e[c],p=r[c];if(Ti(l))l={...l};if(Ti(p))p={...p};if(Za(l))l=pf(l);if(Array.isArray(l))if(Array.isArray(p)){let d=[],x=Reflect.ownKeys(p);for(let b=0;b<x.length;b++){let _=x[b];d[_]=p[_]}p=d}else if(pm(p)){let d=[];for(let x=0;x<p.length;x++)d[x]=p[x];p=d}else p=[];let y=i(p,l,c,r,e,s);if(y!==void 0)r[c]=y;else if(Array.isArray(l))r[c]=ql(p,l,i,s);else if(Ma(p)&&Ma(l)&&(Rl(p)||Rl(l)||mr(p)||mr(l)))r[c]=ql(p,l,i,s);else if(p==null&&Rl(l))r[c]=ql({},l,i,s);else if(p==null&&mr(l))r[c]=pf(l);else if(p===void 0||l!==void 0)r[c]=l}return r}function gf(r,...e){return gm(r,...e,lm)}var Us="",v2={curveBasis:Zi,curveBasisClosed:Sl,curveBasisOpen:Tl,curveBumpX:ia,curveBumpY:ba,curveBundle:cu,curveCardinalClosed:uu,curveCardinalOpen:fu,curveCardinal:wa,curveCatmullRomClosed:du,curveCatmullRomOpen:pu,curveCatmullRom:Ta,curveLinear:Zr,curveLinearClosed:Al,curveMonotoneX:_a,curveMonotoneY:va,curveNatural:rs,curveStep:is,curveStepAfter:Aa,curveStepBefore:La},L2=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F2=t(function(r,e){let i=Cm(r,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(i)){let c=i.map((l)=>l.args);As(c),s=Ce(s,[...c])}else s=i.args;if(!s)return;let o=$a(r,e),n="config";if(s[n]!==void 0){if(o==="flowchart-v2")o="flowchart";s[o]=s[n],delete s[n]}return s},"detectInit"),Cm=t(function(r,e=null){try{let i=new RegExp(`[%]{2}(?![{]${L2.source})(?=[}][%]{2}).*
|
|
161
|
-
`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),a.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${r}`);let s,o=[];while((s=uo.exec(r))!==null){if(s.index===uo.lastIndex)uo.lastIndex++;if(s&&!e||e&&s[1]?.match(e)||e&&s[2]?.match(e)){let n=s[1]?s[1]:s[2],c=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:n,args:c})}}if(o.length===0)return{type:r,args:null};return o.length===1?o[0]:o}catch(i){return a.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),gl=t(function(r){return r.replace(uo,"")},"removeDirectives"),A2=t(function(r,e){for(let[i,s]of e.entries())if(s.match(r))return i;return-1},"isSubstringInArray");function Wl(r,e){if(!r)return e;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return v2[i]??e}t(Wl,"interpolateToCurve");function bm(r,e){let i=r.trim();if(!i)return;if(e.securityLevel!=="loose")return xm.sanitizeUrl(i);return i}t(bm,"formatUrl");var M2=t((r,...e)=>{let i=r.split("."),s=i.length-1,o=i[s],n=window;for(let c=0;c<s;c++)if(n=n[i[c]],!n){a.error(`Function name: ${r} not found in window`);return}n[o](...e)},"runFunc");function mf(r,e){if(!r||!e)return 0;return Math.sqrt(Math.pow(e.x-r.x,2)+Math.pow(e.y-r.y,2))}t(mf,"distance");function km(r){let e,i=0;r.forEach((o)=>{i+=mf(o,e),e=o});let s=i/2;return yf(r,s)}t(km,"traverseEdge");function wm(r){if(r.length===1)return r[0];return km(r)}t(wm,"calcLabelPosition");var mm=t((r,e=2)=>{let i=Math.pow(10,e);return Math.round(r*i)/i},"roundNumber"),yf=t((r,e)=>{let i=void 0,s=e;for(let o of r){if(i){let n=mf(o,i);if(n===0)return i;if(n<s)s-=n;else{let c=s/n;if(c<=0)return i;if(c>=1)return{x:o.x,y:o.y};if(c>0&&c<1)return{x:mm((1-c)*i.x+c*o.x,5),y:mm((1-c)*i.y+c*o.y,5)}}}i=o}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),E2=t((r,e,i)=>{if(a.info(`our points ${JSON.stringify(e)}`),e[0]!==i)e=e.reverse();let o=yf(e,25),n=r?10:5,c=Math.atan2(e[0].y-o.y,e[0].x-o.x),l={x:0,y:0};return l.x=Math.sin(c)*n+(e[0].x+o.x)/2,l.y=-Math.cos(c)*n+(e[0].y+o.y)/2,l},"calcCardinalityPosition");function Sm(r,e,i){let s=structuredClone(i);if(a.info("our points",s),e!=="start_left"&&e!=="start_right")s.reverse();let o=25+r,n=yf(s,o),c=10+r*0.5,l=Math.atan2(s[0].y-n.y,s[0].x-n.x),p={x:0,y:0};if(e==="start_left")p.x=Math.sin(l+Math.PI)*c+(s[0].x+n.x)/2,p.y=-Math.cos(l+Math.PI)*c+(s[0].y+n.y)/2;else if(e==="end_right")p.x=Math.sin(l-Math.PI)*c+(s[0].x+n.x)/2,p.y=-Math.cos(l-Math.PI)*c+(s[0].y+n.y)/2;else if(e==="end_left")p.x=Math.sin(l)*c+(s[0].x+n.x)/2,p.y=-Math.cos(l)*c+(s[0].y+n.y)/2;else p.x=Math.sin(l)*c+(s[0].x+n.x)/2,p.y=-Math.cos(l)*c+(s[0].y+n.y)/2;return p}t(Sm,"calcTerminalLabelPosition");function Ho(r){let e="",i="";for(let s of r)if(s!==void 0)if(s.startsWith("color:")||s.startsWith("text-align:"))i=i+s+";";else e=e+s+";";return{style:e,labelStyle:i}}t(Ho,"getStylesFromArray");var ym=0,js=t(()=>(ym++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ym),"generateId");function Tm(r){let e="",i="0123456789abcdef",s=i.length;for(let o=0;o<r;o++)e+=i.charAt(Math.floor(Math.random()*s));return e}t(Tm,"makeRandomHex");var qs=t((r)=>Tm(r.length),"random"),O2=t(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),I2=t(function(r,e){let i=e.text.replace(k.lineBreakRegex," "),[,s]=Et(e.fontSize),o=r.append("text");if(o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",s),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0)o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(i),o},"drawSimpleText"),zr=Qi((r,e,i)=>{if(!r)return r;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),k.hasBreaks(r))return r;let s=r.split(" ").filter(Boolean),o=[],n="";return s.forEach((c,l)=>{let p=Rt(`${c} `,i),y=Rt(n,i);if(p>e){let{hyphenatedStrings:b,remainingWord:_}=$2(c,e,"-",i);o.push(n,...b),n=_}else if(y+p>=e)o.push(n),n=c;else n=[n,c].filter(Boolean).join(" ");if(l+1===s.length)o.push(n)}),o.filter((c)=>c!=="").join(i.joinWith)},(r,e,i)=>`${r}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),$2=Qi((r,e,i="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let o=[...r],n=[],c="";return o.forEach((l,p)=>{let y=`${c}${l}`;if(Rt(y,s)>=e){let x=p+1,b=o.length===x,_=`${y}${i}`;n.push(b?y:_),c=""}else c=y}),{hyphenatedStrings:n,remainingWord:c}},(r,e,i="-",s)=>`${r}${e}${i}${s.fontSize}${s.fontWeight}${s.fontFamily}`);function Ei(r,e){return Ai(r,e).height}t(Ei,"calculateTextHeight");function Rt(r,e){return Ai(r,e).width}t(Rt,"calculateTextWidth");var Ai=Qi((r,e)=>{let{fontSize:i=12,fontFamily:s="Arial",fontWeight:o=400}=e;if(!r)return{width:0,height:0};let[,n]=Et(i),c=["sans-serif",s],l=r.split(k.lineBreakRegex),p=[],y=h("body");if(!y.remove)return{width:0,height:0,lineHeight:0};let d=y.append("svg");for(let b of c){let _=0,v={width:0,height:0,lineHeight:0};for(let M of l){let q=O2();q.text=M||Us;let W=I2(d,q).style("font-size",n).style("font-weight",o).style("font-family",b),H=(W._groups||W)[0][0].getBBox();if(H.width===0&&H.height===0)throw Error("svg element not in render tree");v.width=Math.round(Math.max(v.width,H.width)),_=Math.round(H.height),v.height+=_,v.lineHeight=Math.round(Math.max(v.lineHeight,_))}p.push(v)}d.remove();let x=isNaN(p[1].height)||isNaN(p[1].width)||isNaN(p[1].lineHeight)||p[0].height>p[1].height&&p[0].width>p[1].width&&p[0].lineHeight>p[1].lineHeight?0:1;return p[x]},(r,e)=>`${r}${e.fontSize}${e.fontWeight}${e.fontFamily}`),D2=class{constructor(r=!1,e){this.count=0,this.count=e?e.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{t(this,"InitIDGenerator")}},Nl,P2=t(function(r){return Nl=Nl||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Nl.innerHTML=r,unescape(Nl.textContent)},"entityDecode");function Yo(r){return"str"in r}t(Yo,"isDetailedError");function Vs(r){if(r instanceof Error)return r.message;return String(r)}t(Vs,"getErrorMessage");var R2=t((r,e,i,s)=>{if(!s)return;let o=r.node()?.getBBox();if(!o)return;r.append("text").text(s).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},"insertTitle"),Et=t((r)=>{if(typeof r==="number")return[r,r+"px"];let e=parseInt(r??"",10);if(Number.isNaN(e))return[void 0,void 0];else if(r===String(e))return[e,r+"px"];else return[e,r]},"parseFontSize");function X(r,e){return gf({},r,e)}t(X,"cleanAndMerge");var F={assignWithDepth:Ce,wrapLabel:zr,calculateTextHeight:Ei,calculateTextWidth:Rt,calculateTextDimensions:Ai,cleanAndMerge:X,detectInit:F2,detectDirective:Cm,isSubstringInArray:A2,interpolateToCurve:Wl,calcLabelPosition:wm,calcCardinalityPosition:E2,calcTerminalLabelPosition:Sm,formatUrl:bm,getStylesFromArray:Ho,generateId:js,random:qs,runFunc:M2,entityDecode:P2,insertTitle:R2,isLabelCoordinateInPath:_m,parseFontSize:Et,InitIDGenerator:D2},yl=t(function(r){let e=r;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){let s=i.substring(1,i.length-1);if(/^\+?\d+$/.test(s))return"fl°°"+s+"¶ß";else return"fl°"+s+"¶ß"}),e},"encodeEntities"),On=t(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),bt=t((r,e,{counter:i=0,prefix:s,suffix:o},n)=>{if(n)return n;return`${s?`${s}_`:""}${r}_${e}_${i}${o?`_${o}`:""}`},"getEdgeId");function Me(r){return r??null}t(Me,"handleUndefinedAttr");function _m(r,e){let i=Math.round(r.x),s=Math.round(r.y),o=e.replace(/(\d+\.\d+)/g,(n)=>Math.round(parseFloat(n)).toString());return o.includes(i.toString())||o.includes(s.toString())}t(_m,"isLabelCoordinateInPath");function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var to=Cf();function Em(r){to=r}var Pa={exec:()=>null};function be(r,e=""){let i=typeof r=="string"?r:r.source,s={replace:(o,n)=>{let c=typeof n=="string"?n:n.source;return c=c.replace(hr.caret,"$1"),i=i.replace(o,c),s},getRegex:()=>new RegExp(i,e)};return s}var q2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),hr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(r)=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},N2=/^(?:[ \t]*(?:\n|$))+/,W2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,z2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ra=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bf=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Im=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Y2=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U2=/^[^\n]+/,wf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j2=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G2=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),jl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,X2=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Sf).replace("tag",jl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$m=be(kf).replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex(),V2=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$m).getRegex(),Tf={blockquote:V2,code:W2,def:j2,fences:z2,heading:H2,hr:Ra,html:X2,lheading:Im,list:G2,newline:N2,paragraph:$m,table:Pa,text:U2},Bm=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex(),K2={...Tf,lheading:Y2,table:Bm,paragraph:be(kf).replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex()},Z2={...Tf,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(kf).replace("hr",Ra).replace("heading",` *#{1,6} *[^
|
|
162
|
-
]`).replace("lheading",Im).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,J2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dm=/^( {2,}|\\)\n(?!\s*$)/,tw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Gl=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Pm=/[^\s\p{P}\p{S}]/u,ew=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_f).getRegex(),Rm=/(?!~)[\p{P}\p{S}]/u,rw=/(?!~)[\s\p{P}\p{S}]/u,iw=/(?:[^\s\p{P}\p{S}]|~)/u,ow=be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",q2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,sw=be(qm,"u").replace(/punct/g,Gl).getRegex(),aw=be(qm,"u").replace(/punct/g,Rm).getRegex(),Nm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nw=be(Nm,"gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Gl).getRegex(),lw=be(Nm,"gu").replace(/notPunctSpace/g,iw).replace(/punctSpace/g,rw).replace(/punct/g,Rm).getRegex(),hw=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Gl).getRegex(),cw=be(/\\(punct)/,"gu").replace(/punct/g,Gl).getRegex(),uw=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fw=be(Sf).replace("(?:-->|$)","-->").getRegex(),dw=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pw=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wm=be(/^!?\[(label)\]\[(ref)\]/).replace("label",Hl).replace("ref",wf).getRegex(),zm=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",wf).getRegex(),gw=be("reflink|nolink(?!\\()","g").replace("reflink",Wm).replace("nolink",zm).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bf={_backpedal:Pa,anyPunctuation:cw,autolink:uw,blockSkip:ow,br:Dm,code:J2,del:Pa,emStrongLDelim:sw,emStrongRDelimAst:nw,emStrongRDelimUnd:hw,escape:Q2,link:pw,nolink:zm,punctuation:ew,reflink:Wm,reflinkSearch:gw,tag:dw,text:tw,url:Pa},mw={...Bf,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",Hl).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hl).getRegex()},xf={...Bf,emStrongRDelimAst:lw,emStrongLDelim:aw,url:be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},yw={...xf,br:be(Dm).replace("{2,}","*").getRegex(),text:be(xf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zl={normal:Tf,gfm:K2,pedantic:Z2},Ea={normal:Bf,gfm:xf,breaks:yw,pedantic:mw},xw={"&":"&","<":"<",">":">",'"':""","'":"'"},Lm=(r)=>xw[r];function ti(r,e){if(e){if(hr.escapeTest.test(r))return r.replace(hr.escapeReplace,Lm)}else if(hr.escapeTestNoEncode.test(r))return r.replace(hr.escapeReplaceNoEncode,Lm);return r}function Fm(r){try{r=encodeURI(r).replace(hr.percentDecode,"%")}catch{return null}return r}function Am(r,e){let i=r.replace(hr.findPipe,(n,c,l)=>{let p=!1,y=c;for(;--y>=0&&l[y]==="\\";)p=!p;return p?"|":" |"}),s=i.split(hr.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(hr.slashPipe,"|");return s}function Ia(r,e,i){let s=r.length;if(s===0)return"";let o=0;for(;o<s;){let n=r.charAt(s-o-1);if(n===e&&!i)o++;else if(n!==e&&i)o++;else break}return r.slice(0,s-o)}function Cw(r,e){if(r.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])i++;else if(r[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Mm(r,e,i,s,o){let n=e.href,c=e.title||null,l=r[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let p={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:n,title:c,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,p}function bw(r,e,i){let s=r.match(i.other.indentCodeCompensation);if(s===null)return e;let o=s[1];return e.split(`
|
|
163
|
-
`).map((n)=>{let c=n.match(i.other.beginningSpace);if(c===null)return n;let[l]=c;return l.length>=o.length?n.slice(o.length):n}).join(`
|
|
164
|
-
`)}var Yl=class{options;rules;lexer;constructor(r){this.options=r||to}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ia(i,`
|
|
165
|
-
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let i=e[0],s=bw(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ia(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:Ia(e[0],`
|
|
166
|
-
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let i=Ia(e[0],`
|
|
167
|
-
`).split(`
|
|
168
|
-
`),s="",o="",n=[];for(;i.length>0;){let c=!1,l=[],p;for(p=0;p<i.length;p++)if(this.rules.other.blockquoteStart.test(i[p]))l.push(i[p]),c=!0;else if(!c)l.push(i[p]);else break;i=i.slice(p);let y=l.join(`
|
|
169
|
-
`),d=y.replace(this.rules.other.blockquoteSetextReplace,`
|
|
170
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
171
|
-
${y}`:y,o=o?`${o}
|
|
172
|
-
${d}`:d;let x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,n,!0),this.lexer.state.top=x,i.length===0)break;let b=n.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){let _=b,v=_.raw+`
|
|
173
|
-
`+i.join(`
|
|
174
|
-
`),M=this.blockquote(v);n[n.length-1]=M,s=s.substring(0,s.length-_.raw.length)+M.raw,o=o.substring(0,o.length-_.text.length)+M.text;break}else if(b?.type==="list"){let _=b,v=_.raw+`
|
|
175
|
-
`+i.join(`
|
|
176
|
-
`),M=this.list(v);n[n.length-1]=M,s=s.substring(0,s.length-b.raw.length)+M.raw,o=o.substring(0,o.length-_.raw.length)+M.raw,i=v.substring(n.at(-1).raw.length).split(`
|
|
177
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:n,text:o}}}list(r){let e=this.rules.block.list.exec(r);if(e){let i=e[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let n=this.rules.other.listItemRegex(i),c=!1;for(;r;){let p=!1,y="",d="";if(!(e=n.exec(r))||this.rules.block.hr.test(r))break;y=e[0],r=r.substring(y.length);let x=e[2].split(`
|
|
178
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,(W)=>" ".repeat(3*W.length)),b=r.split(`
|
|
179
|
-
`,1)[0],_=!x.trim(),v=0;if(this.options.pedantic?(v=2,d=x.trimStart()):_?v=e[1].length+1:(v=e[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,d=x.slice(v),v+=e[1].length),_&&this.rules.other.blankLine.test(b)&&(y+=b+`
|
|
180
|
-
`,r=r.substring(b.length+1),p=!0),!p){let W=this.rules.other.nextBulletRegex(v),H=this.rules.other.hrRegex(v),K=this.rules.other.fencesBeginRegex(v),J=this.rules.other.headingBeginRegex(v),tt=this.rules.other.htmlBeginRegex(v);for(;r;){let nt=r.split(`
|
|
181
|
-
`,1)[0],st;if(b=nt,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),st=b):st=b.replace(this.rules.other.tabCharGlobal," "),K.test(b)||J.test(b)||tt.test(b)||W.test(b)||H.test(b))break;if(st.search(this.rules.other.nonSpaceChar)>=v||!b.trim())d+=`
|
|
182
|
-
`+st.slice(v);else{if(_||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(x)||J.test(x)||H.test(x))break;d+=`
|
|
183
|
-
`+b}!_&&!b.trim()&&(_=!0),y+=nt+`
|
|
184
|
-
`,r=r.substring(nt.length+1),x=st.slice(v)}}o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(c=!0));let M=null,q;this.options.gfm&&(M=this.rules.other.listIsTask.exec(d),M&&(q=M[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:y,task:!!M,checked:q,loose:!1,text:d,tokens:[]}),o.raw+=y}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p=0;p<o.items.length;p++)if(this.lexer.state.top=!1,o.items[p].tokens=this.lexer.blockTokens(o.items[p].text,[]),!o.loose){let y=o.items[p].tokens.filter((x)=>x.type==="space"),d=y.length>0&&y.some((x)=>this.rules.other.anyLine.test(x.raw));o.loose=d}if(o.loose)for(let p=0;p<o.items.length;p++)o.items[p].loose=!0;return o}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:o}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=Am(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
185
|
-
`):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let c of s)this.rules.other.tableAlignRight.test(c)?n.align.push("right"):this.rules.other.tableAlignCenter.test(c)?n.align.push("center"):this.rules.other.tableAlignLeft.test(c)?n.align.push("left"):n.align.push(null);for(let c=0;c<i.length;c++)n.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:n.align[c]});for(let c of o)n.rows.push(Am(c,n.header.length).map((l,p)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[p]})));return n}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let i=e[1].charAt(e[1].length-1)===`
|
|
186
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let n=Ia(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{let n=Cw(e[2],"()");if(n===-2)return;if(n>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let s=e[2],o="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(s);n&&(s=n[1],o=n[3])}else o=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Mm(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let i;if((i=this.rules.inline.reflink.exec(r))||(i=this.rules.inline.nolink.exec(r))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=e[s.toLowerCase()];if(!o){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return Mm(i,o,i[0],this.lexer,this.rules)}}emStrong(r,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...s[0]].length-1,n,c,l=o,p=0,y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,e=e.slice(-1*r.length+o);(s=y.exec(e))!=null;){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(c=[...n].length,s[3]||s[4]){l+=c;continue}else if((s[5]||s[6])&&o%3&&!((o+c)%3)){p+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+p);let d=[...s[0]][0].length,x=r.slice(0,o+s.index+d+c);if(Math.min(o,c)%2){let _=x.slice(1,-1);return{type:"em",raw:x,text:_,tokens:this.lexer.inlineTokens(_)}}let b=x.slice(2,-2);return{type:"strong",raw:x,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let i,s;if(e[2]==="@")i=e[0],s="mailto:"+i;else{let o;do o=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(o!==e[0]);i=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},qr=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||to,this.options.tokenizer=this.options.tokenizer||new Yl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:hr,block:zl.normal,inline:Ea.normal};this.options.pedantic?(i.block=zl.pedantic,i.inline=Ea.pedantic):this.options.gfm&&(i.block=zl.gfm,this.options.breaks?i.inline=Ea.breaks:i.inline=Ea.gfm),this.tokenizer.rules=i}static get rules(){return{block:zl,inline:Ea}}static lex(e,i){return new r(i).lex(e)}static lexInline(e,i){return new r(i).inlineTokens(e)}lex(e){e=e.replace(hr.carriageReturn,`
|
|
187
|
-
`),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){for(this.options.pedantic&&(e=e.replace(hr.tabCharGlobal," ").replace(hr.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some((c)=>(o=c.call({lexer:this},e,i))?(e=e.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let c=i.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
|
188
|
-
`:i.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
189
|
-
`)?"":`
|
|
190
|
-
`)+o.raw,c.text+=`
|
|
191
|
-
`+o.text,this.inlineQueue.at(-1).src=c.text):i.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
192
|
-
`)?"":`
|
|
193
|
-
`)+o.raw,c.text+=`
|
|
194
|
-
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),i.push(o);continue}let n=e;if(this.options.extensions?.startBlock){let c=1/0,l=e.slice(1),p;this.options.extensions.startBlock.forEach((y)=>{p=y.call({lexer:this},l),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(n=e.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let c=i.at(-1);s&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
195
|
-
`)?"":`
|
|
196
|
-
`)+o.raw,c.text+=`
|
|
197
|
-
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(o),s=n.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let c=i.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
198
|
-
`)?"":`
|
|
199
|
-
`)+o.raw,c.text+=`
|
|
200
|
-
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(o);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){let s=e,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let n;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)n=o[2]?o[2].length:0,s=s.slice(0,o.index+n)+"["+"a".repeat(o[0].length-n-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let c=!1,l="";for(;e;){c||(l=""),c=!1;let p;if(this.options.extensions?.inline?.some((d)=>(p=d.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let d=i.at(-1);p.type==="text"&&d?.type==="text"?(d.raw+=p.raw,d.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,l)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let y=e;if(this.options.extensions?.startInline){let d=1/0,x=e.slice(1),b;this.options.extensions.startInline.forEach((_)=>{b=_.call({lexer:this},x),typeof b=="number"&&b>=0&&(d=Math.min(d,b))}),d<1/0&&d>=0&&(y=e.substring(0,d+1))}if(p=this.tokenizer.inlineText(y)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),c=!0;let d=i.at(-1);d?.type==="text"?(d.raw+=p.raw,d.text+=p.text):i.push(p);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw Error(d)}}return i}},Ul=class{options;parser;constructor(r){this.options=r||to}space(r){return""}code({text:r,lang:e,escaped:i}){let s=(e||"").match(hr.notSpaceStart)?.[0],o=r.replace(hr.endingNewline,"")+`
|
|
201
|
-
`;return s?'<pre><code class="language-'+ti(s)+'">'+(i?o:ti(o,!0))+`</code></pre>
|
|
202
|
-
`:"<pre><code>"+(i?o:ti(o,!0))+`</code></pre>
|
|
203
|
-
`}blockquote({tokens:r}){return`<blockquote>
|
|
204
|
-
${this.parser.parse(r)}</blockquote>
|
|
205
|
-
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
|
|
206
|
-
`}hr(r){return`<hr>
|
|
207
|
-
`}list(r){let{ordered:e,start:i}=r,s="";for(let c=0;c<r.items.length;c++){let l=r.items[c];s+=this.listitem(l)}let o=e?"ol":"ul",n=e&&i!==1?' start="'+i+'"':"";return"<"+o+n+`>
|
|
208
|
-
`+s+"</"+o+`>
|
|
209
|
-
`}listitem(r){let e="";if(r.task){let i=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=i+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=i+" "+ti(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):e+=i+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
|
|
210
|
-
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
211
|
-
`}table(r){let e="",i="";for(let o=0;o<r.header.length;o++)i+=this.tablecell(r.header[o]);e+=this.tablerow({text:i});let s="";for(let o=0;o<r.rows.length;o++){let n=r.rows[o];i="";for(let c=0;c<n.length;c++)i+=this.tablecell(n[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
212
|
-
<thead>
|
|
213
|
-
`+e+`</thead>
|
|
214
|
-
`+s+`</table>
|
|
215
|
-
`}tablerow({text:r}){return`<tr>
|
|
216
|
-
${r}</tr>
|
|
217
|
-
`}tablecell(r){let e=this.parser.parseInline(r.tokens),i=r.header?"th":"td";return(r.align?`<${i} align="${r.align}">`:`<${i}>`)+e+`</${i}>
|
|
218
|
-
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${ti(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:i}){let s=this.parser.parseInline(i),o=Fm(r);if(o===null)return s;r=o;let n='<a href="'+r+'"';return e&&(n+=' title="'+ti(e)+'"'),n+=">"+s+"</a>",n}image({href:r,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=Fm(r);if(o===null)return ti(i);r=o;let n=`<img src="${r}" alt="${i}"`;return e&&(n+=` title="${ti(e)}"`),n+=">",n}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:ti(r.text)}},vf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},Wr=class r{options;renderer;textRenderer;constructor(e){this.options=e||to,this.options.renderer=this.options.renderer||new Ul,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vf}static parse(e,i){return new r(i).parse(e)}static parseInline(e,i){return new r(i).parseInline(e)}parse(e,i=!0){let s="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let l=n,p=this.options.extensions.renderers[l.type].call({parser:this},l);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=p||"";continue}}let c=n;switch(c.type){case"space":{s+=this.renderer.space(c);continue}case"hr":{s+=this.renderer.hr(c);continue}case"heading":{s+=this.renderer.heading(c);continue}case"code":{s+=this.renderer.code(c);continue}case"table":{s+=this.renderer.table(c);continue}case"blockquote":{s+=this.renderer.blockquote(c);continue}case"list":{s+=this.renderer.list(c);continue}case"html":{s+=this.renderer.html(c);continue}case"def":{s+=this.renderer.def(c);continue}case"paragraph":{s+=this.renderer.paragraph(c);continue}case"text":{let l=c,p=this.renderer.text(l);for(;o+1<e.length&&e[o+1].type==="text";)l=e[++o],p+=`
|
|
219
|
-
`+this.renderer.text(l);i?s+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):s+=p;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}parseInline(e,i=this.renderer){let s="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){s+=l||"";continue}}let c=n;switch(c.type){case"escape":{s+=i.text(c);break}case"html":{s+=i.html(c);break}case"link":{s+=i.link(c);break}case"image":{s+=i.image(c);break}case"strong":{s+=i.strong(c);break}case"em":{s+=i.em(c);break}case"codespan":{s+=i.codespan(c);break}case"br":{s+=i.br(c);break}case"del":{s+=i.del(c);break}case"text":{s+=i.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}},Da=class{options;block;constructor(r){this.options=r||to}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?qr.lex:qr.lexInline}provideParser(){return this.block?Wr.parse:Wr.parseInline}},kw=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Wr;Renderer=Ul;TextRenderer=vf;Lexer=qr;Tokenizer=Yl;Hooks=Da;constructor(...r){this.use(...r)}walkTokens(r,e){let i=[];for(let s of r)switch(i=i.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let n of o.header)i=i.concat(this.walkTokens(n.tokens,e));for(let n of o.rows)for(let c of n)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,e));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach((n)=>{let c=o[n].flat(1/0);i=i.concat(this.walkTokens(c,e))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,e)))}}return i}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((i)=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let n=e.renderers[o.name];n?e.renderers[o.name]=function(...c){let l=o.renderer.apply(this,c);return l===!1&&(l=n.apply(this,c)),l}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let n=e[o.level];n?n.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),s.extensions=e),i.renderer){let o=this.defaults.renderer||new Ul(this.defaults);for(let n in i.renderer){if(!(n in o))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let c=n,l=i.renderer[c],p=o[c];o[c]=(...y)=>{let d=l.apply(o,y);return d===!1&&(d=p.apply(o,y)),d||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new Yl(this.defaults);for(let n in i.tokenizer){if(!(n in o))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let c=n,l=i.tokenizer[c],p=o[c];o[c]=(...y)=>{let d=l.apply(o,y);return d===!1&&(d=p.apply(o,y)),d}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Da;for(let n in i.hooks){if(!(n in o))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let c=n,l=i.hooks[c],p=o[c];Da.passThroughHooks.has(n)?o[c]=(y)=>{if(this.defaults.async&&Da.passThroughHooksRespectAsync.has(n))return(async()=>{let x=await l.call(o,y);return p.call(o,x)})();let d=l.call(o,y);return p.call(o,d)}:o[c]=(...y)=>{if(this.defaults.async)return(async()=>{let x=await l.apply(o,y);return x===!1&&(x=await p.apply(o,y)),x})();let d=l.apply(o,y);return d===!1&&(d=p.apply(o,y)),d}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,n=i.walkTokens;s.walkTokens=function(c){let l=[];return l.push(n.call(this,c)),o&&(l=l.concat(o.call(this,c))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return qr.lex(r,e??this.defaults)}parser(r,e){return Wr.parse(r,e??this.defaults)}parseMarkdown(r){return(e,i)=>{let s={...i},o={...this.defaults,...s},n=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return n(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=r),o.async)return(async()=>{let c=o.hooks?await o.hooks.preprocess(e):e,l=await(o.hooks?await o.hooks.provideLexer():r?qr.lex:qr.lexInline)(c,o),p=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let y=await(o.hooks?await o.hooks.provideParser():r?Wr.parse:Wr.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(y):y})().catch(n);try{o.hooks&&(e=o.hooks.preprocess(e));let c=(o.hooks?o.hooks.provideLexer():r?qr.lex:qr.lexInline)(e,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():r?Wr.parse:Wr.parseInline)(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return n(c)}}}onError(r,e){return(i)=>{if(i.message+=`
|
|
220
|
-
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+ti(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}},Ji=new kw;function we(r,e){return Ji.parse(r,e)}we.options=we.setOptions=function(r){return Ji.setOptions(r),we.defaults=Ji.defaults,Em(we.defaults),we};we.getDefaults=Cf;we.defaults=to;we.use=function(...r){return Ji.use(...r),we.defaults=Ji.defaults,Em(we.defaults),we};we.walkTokens=function(r,e){return Ji.walkTokens(r,e)};we.parseInline=Ji.parseInline;we.Parser=Wr;we.parser=Wr.parse;we.Renderer=Ul;we.TextRenderer=vf;we.Lexer=qr;we.lexer=qr.lex;we.Tokenizer=Yl;we.Hooks=Da;we.parse=we;var{options:jH,setOptions:GH,use:XH,walkTokens:VH,parseInline:KH}=we;var ZH=Wr.parse,QH=qr.lex;function Zo(r){var e=[];for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];var s=Array.from(typeof r==="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var o=s.reduce(function(l,p){var y=p.match(/\n([\t ]+|(?!\s).)/g);if(y)return l.concat(y.map(function(d){var x,b;return(b=(x=d.match(/[\t ]/g))===null||x===void 0?void 0:x.length)!==null&&b!==void 0?b:0}));return l},[]);if(o.length){var n=new RegExp(`
|
|
221
|
-
[ ]{`.concat(Math.min.apply(Math,o),"}"),"g");s=s.map(function(l){return l.replace(n,`
|
|
222
|
-
`)})}s[0]=s[0].replace(/^\r?\n/,"");var c=s[0];return e.forEach(function(l,p){var y=c.match(/(?:^|\n)( *)$/),d=y?y[1]:"",x=l;if(typeof l==="string"&&l.includes(`
|
|
223
|
-
`))x=String(l).split(`
|
|
224
|
-
`).map(function(b,_){return _===0?b:"".concat(d).concat(b)}).join(`
|
|
225
|
-
`);c+=x+s[p+1]}),c}var Ff=typeof performance<"u"&&typeof performance.now==="function",hs=t(()=>Ff?performance.now():0,"now"),Lf="\uD83E\uDDDC ",ww="Mermaid render",Sw="Mermaid",Tw={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},u9=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{t(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(r)}tickSync(r,e){if(!this.enabled)return e();let i=hs();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(hs()-i)}}async tick(r,e){if(!this.enabled)return e();let i=hs();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(hs()-i)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let r=this.roots.at(-1),e=this.runLabel??r?.name;if(r){if(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(r,e)}return this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let e={name:r,start:hs(),duration:-1,children:[]},i=this.stack.at(-1);if(i)i.children.push(e);else this.roots.push(e);if(this.stack.push(e),Ff&&typeof performance.mark==="function")try{performance.mark(`${Lf}${r} ▶`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let e=hs();if(r.duration=e-r.start,Ff&&typeof performance.measure==="function")try{performance.measure(`${Lf}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:ww,trackGroup:Sw,color:Tw[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;let i=r.duration,s=e&&e!==r.name?`${r.name} [${e}]`:r.name,o=["ms % phase"],n=t((l,p)=>{let y=" ".repeat(p),d=l.duration.toFixed(1).padStart(8),x=i>0?`${(l.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${d} ${x} ${y}${l.name}`);for(let b of l.children)n(b,p+1);if(l.children.length>0){let b=l.children.reduce((v,M)=>v+M.duration,0),_=l.duration-b;if(_>0.5){let v=_.toFixed(1).padStart(8);o.push(`${v} ${y} (self)`)}}},"walk");n(r,0);let c=Object.keys(this.buckets);if(c.length>0){o.push("—— buckets (summed) ——");for(let l of c)o.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Lf}mermaid render profile · ${s}
|
|
226
|
-
${o.join(`
|
|
227
|
-
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function Ym(r,{markdownAutoWrap:e}){let s=r.replace(/<br\/>/g,`
|
|
228
|
-
`).replace(/\n{2,}/g,`
|
|
229
|
-
`);return Zo(s)}t(Ym,"preprocessMarkdown");function Um(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((e)=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((i)=>({content:i,type:"normal"}))??[])}t(Um,"nonMarkdownToLines");function Xo(r,e={}){let i=Ym(r,e),s=we.lexer(i),o=[[]],n=0;function c(l,p="normal"){if(l.type==="text")l.text.split(`
|
|
230
|
-
`).forEach((d,x)=>{if(x!==0)n++,o.push([]);d.split(" ").forEach((b)=>{if(b=b.replace(/'/g,"'"),b)o[n].push({content:b,type:p})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((y)=>{c(y,l.type)});else if(l.type==="html")o[n].push({content:l.text,type:"normal"})}return t(c,"processNode"),s.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((p)=>{c(p)});else if(l.type==="html")o[n].push({content:l.text,type:"normal"});else o[n].push({content:l.raw,type:"normal"})}),o}t(Xo,"markdownToLines");function jm(r){if(!r)return"";return`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`}t(jm,"nonMarkdownToHTML");function Gm(r,{markdownAutoWrap:e}={}){let i=we.lexer(r);function s(o){if(o.type==="text"){if(e===!1)return o.text.replace(/\n */g,"<br/>").replace(/ /g," ");return o.text.replace(/\n */g,"<br/>")}else if(o.type==="strong")return`<strong>${o.tokens?.map(s).join("")}</strong>`;else if(o.type==="em")return`<em>${o.tokens?.map(s).join("")}</em>`;else if(o.type==="paragraph")return`<p>${o.tokens?.map(s).join("")}</p>`;else if(o.type==="space")return"";else if(o.type==="html")return`${o.text}`;else if(o.type==="escape")return o.text;return a.warn(`Unsupported markdown: ${o.type}`),o.raw}return t(s,"output"),i.map(s).join("")}t(Gm,"markdownToHTML");var _w=function(r){var e=function(){},i=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(y){return setTimeout(y,16)};function s(){var y=this;y.reads=[],y.writes=[],y.raf=i.bind(r),e("initialized",y)}t(s,"FastDom"),s.prototype={constructor:s,runTasks:t(function(y){e("run tasks");var d;while(d=y.shift())d()},"runTasks"),measure:t(function(y,d){e("measure");var x=!d?y:y.bind(d);return this.reads.push(x),o(this),x},"measure"),mutate:t(function(y,d){e("mutate");var x=!d?y:y.bind(d);return this.writes.push(x),o(this),x},"mutate"),clear:t(function(y){return e("clear",y),c(this.reads,y)||c(this.writes,y)},"clear"),extend:t(function(y){if(e("extend",y),typeof y!="object")throw Error("expected object");var d=Object.create(this);if(l(d,y),d.fastdom=this,d.initialize)d.initialize();return d},"extend"),catch:null};function o(y){if(!y.scheduled)y.scheduled=!0,y.raf(n.bind(null,y)),e("flush scheduled")}t(o,"scheduleFlush");function n(y){e("flush");var{writes:d,reads:x}=y,b;try{e("flushing reads",x.length),y.runTasks(x),e("flushing writes",d.length),y.runTasks(d)}catch(_){b=_}if(y.scheduled=!1,x.length||d.length)o(y);if(b)if(e("task errored",b.message),y.catch)y.catch(b);else throw b}t(n,"flush");function c(y,d){var x=y.indexOf(d);return!!~x&&!!y.splice(x,1)}t(c,"remove");function l(y,d){for(var x in d)if(d.hasOwnProperty(x))y[x]=d[x]}t(l,"mixin");var p=r.fastdom=r.fastdom||new s;return p}(typeof window<"u"?window:globalThis),Xm={initialize:t(function(){this._tasks=new Map},"initialize"),mutate:t(function(r,e){return Af(this,"mutate",r,e)},"mutate"),measure:t(function(r,e){return Af(this,"measure",r,e)},"measure"),clear:t(function(r){var e=this._tasks,i=e.get(r);this.fastdom.clear(i),e.delete(r)},"clear")};function Af(r,e,i,s){var{_tasks:o,fastdom:n}=r,c,l=new Promise(function(p,y){c=n[e](function(){o.delete(l);try{p(s?i.call(s):i())}catch(d){y(d)}},s)});return o.set(l,c),l}t(Af,"create");var{initialize:p9,mutate:g9,measure:m9,clear:y9}=Xm,Bw=Xm,vw=_w.extend({raf(r){if(typeof queueMicrotask==="function")queueMicrotask(r);else setTimeout(r,0)}}).extend(Bw),yi=vw;function Vm(r){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(r)].map((e)=>e.segment);return[...r]}t(Vm,"splitTextToChars");function Km(r,e){let i=Vm(e.content);return Of(r,[],i,e.type)}t(Km,"splitWordToFitWidth");function Of(r,e,i,s){if(i.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];let[o,...n]=i,c=[...e,o];if(r([{content:c.join(""),type:s}]))return Of(r,c,n,s);if(e.length===0&&o)e.push(o),i.shift();return[{content:e.join(""),type:s},{content:i.join(""),type:s}]}t(Of,"splitWordToFitWidthRecursion");function Zm(r,e){if(r.some(({content:i})=>i.includes(`
|
|
231
|
-
`)))throw Error("splitLineToFitWidth does not support newlines in the line");return Xl(r,e)}t(Zm,"splitLineToFitWidth");function Xl(r,e,i=[],s=[]){if(r.length===0){if(s.length>0)i.push(s);return i.length>0?i:[]}let o="";if(r[0].content===" ")o=" ",r.shift();let n=r.shift()??{content:" ",type:"normal"},c=[...s];if(o!=="")c.push({content:o,type:"normal"});if(c.push(n),e(c))return Xl(r,e,i,c);if(s.length>0)i.push(s),r.unshift(n);else if(n.content){let[l,p]=Km(e,n);if(i.push([l]),p.content)r.unshift(p)}return Xl(r,e,i)}t(Xl,"splitLineToFitWidthRecursion");function Mf(r,e){if(e)r.attr("style",e)}t(Mf,"applyStyle");var Hm=16384;async function Qm(r,e,i,s,o=!1,n=S(),c=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*i,Hm)}px`),l.attr("height",`${Math.min(10*i,Hm)}px`);let p=l.append("xhtml:div"),y=Oe(e.label)?await Fa(e.label.replace(k.lineBreakRegex,`
|
|
232
|
-
`),n):j(e.label,n),d=e.isNode?"nodeLabel":"edgeLabel",x=p.append("span");if(x.html(y),Mf(x,e.labelStyle),x.attr("class",`${d} ${s}`),Mf(p,e.labelStyle),p.style("display","table-cell"),p.style("white-space","nowrap"),p.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY)p.style("max-width",i+"px"),p.style("text-align","center");if(p.attr("xmlns","http://www.w3.org/1999/xhtml"),o)p.attr("class","labelBkg");let b=await yi.measure(()=>p.node().getBoundingClientRect());if(b.width===i)p.style("display","table"),p.style("white-space","break-spaces"),p.style("width",i+"px");else if(b.width<c)p.style("display","table"),p.style("width",c+"px"),p.style("text-align","center");return l.node()}t(Qm,"addHtmlSpan");function Vl(r,e,i,s=!1){let o=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*i-0.1+"em").attr("dy",i+"em");if(s)o.attr("text-anchor","middle");return o}t(Vl,"createTspan");function Jm(r,e,i){let s=r.append("text"),o=Vl(s,1,e);Kl(o,i);let n=o.node().getComputedTextLength();return s.remove(),n}t(Jm,"computeWidthOfText");function Ws(r,e,i){let s=r.append("text"),o=Vl(s,1,e);Kl(o,[{content:i,type:"normal"}]);let n=o.node()?.getBoundingClientRect();if(n)s.remove();return n}t(Ws,"computeDimensionOfText");function ty(r,e,i,s=!1,o=!1){let c=e.append("g"),l=c.insert("rect").attr("class","background").attr("style","stroke: none"),p=c.append("text").attr("y","-10.1");if(o)p.attr("text-anchor","middle");let y=0;for(let d of i){let x=t((_)=>Jm(c,1.1,_)<=r,"checkWidth"),b=x(d)?[d]:Zm(d,x);for(let _ of b){let v=Vl(p,y,1.1,o);Kl(v,_),y++}}if(s){let d=p.node().getBBox(),x=2;return l.attr("x",d.x-2).attr("y",d.y-2).attr("width",d.width+4).attr("height",d.height+4),c.node()}else return p.node()}t(ty,"createFormattedText");function Ef(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(i,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return i}})}t(Ef,"decodeHTMLEntities");function Kl(r,e){r.text(""),e.forEach((i,s)=>{let o=r.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");if(s===0)o.text(Ef(i.content));else o.text(" "+Ef(i.content))})}t(Kl,"updateTextContentAndStyles");async function ey(r,e={}){let i=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,n,c)=>(i.push((async()=>{let l=`${n}:${c}`;if(await Dl(l))return await qt(l,void 0,{class:"label-icon"});else return`<i class='${j(o,e).replace(":"," ")}'></i>`})()),o));let s=await Promise.all(i);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}t(ey,"replaceIconSubstring");var it=t(async(r,e="",{style:i="",isTitle:s=!1,classes:o="",useHtmlLabels:n=!0,markdown:c=!0,isNode:l=!0,width:p=200,minWidth:y=0,addSvgBackground:d=!1}={},x)=>{if(a.debug("XYZ createText",e,i,s,o,n,l,"addSvgBackground: ",d),n){let b=c?Gm(e,x):jm(e),_=await ey(On(b),x),v=e.replace(/\\\\/g,"\\"),M={isNode:l,label:Oe(e)?v:_,labelStyle:i.replace("fill:","color:")};return await Qm(r,M,p,o,d,x,y)}else{let b=On(e.replace(/<br\s*\/?>/g,"<br/>")),_=c?Xo(b.replace("<br>","<br/>"),x):Um(b),v=ty(p,r,_,e?d:!1,!l);if(l){if(/stroke:/.exec(i))i=i.replace("stroke:","lineColor:");let M=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");h(v).attr("style",M)}else{let M=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");h(v).select("rect").attr("style",M.replace(/background:/g,"fill:"));let q=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");h(v).select("text").attr("style",q)}if(s)h(v).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else h(v).selectAll("tspan.text-outer-tspan").classed("row",!0);return v}},"createText");var Ri=new Set(["redux-color","redux-dark-color"]),Lw=12,Fw=64,De=t((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),Te=t((r,e)=>r!=null&&Ri.has(r)&&De(e),"isColorTheme"),Aw=/^[\w-]+$/,Ee=t((r)=>{let e=typeof r==="string"||typeof r==="number"?String(r):"";return Aw.test(e)?e:"classic"},"safeLook"),ln=t((r)=>De(r)?r.length:0,"paletteSlotCount"),Lt=t((r,e)=>{if(De(e))return ln(e);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Fw?r:Lw},"colorSlotCount"),It=t((r,e,i,s)=>{if(e===void 0||!Te(i,s))return;let o=e%ln(s);r.attr("data-color-id",`color-${o}`)},"stampColorSlot");function If(r,e,i){if(r&&r.length){let[s,o]=e,n=Math.PI/180*i,c=Math.cos(n),l=Math.sin(n);for(let p of r){let[y,d]=p;p[0]=(y-s)*c-(d-o)*l+s,p[1]=(y-s)*l+(d-o)*c+o}}}function Mw(r,e){return r[0]===e[0]&&r[1]===e[1]}function Ew(r,e,i,s=1){let o=i,n=Math.max(e,0.1),c=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(o)for(let y of c)If(y,l,o);let p=function(y,d,x){let b=[];for(let H of y){let K=[...H];Mw(K[0],K[K.length-1])||K.push([K[0][0],K[0][1]]),K.length>2&&b.push(K)}let _=[];d=Math.max(d,0.1);let v=[];for(let H of b)for(let K=0;K<H.length-1;K++){let J=H[K],tt=H[K+1];if(J[1]!==tt[1]){let nt=Math.min(J[1],tt[1]);v.push({ymin:nt,ymax:Math.max(J[1],tt[1]),x:nt===J[1]?J[0]:tt[0],islope:(tt[0]-J[0])/(tt[1]-J[1])})}}if(v.sort((H,K)=>H.ymin<K.ymin?-1:H.ymin>K.ymin?1:H.x<K.x?-1:H.x>K.x?1:H.ymax===K.ymax?0:(H.ymax-K.ymax)/Math.abs(H.ymax-K.ymax)),!v.length)return _;let M=[],q=v[0].ymin,W=0;for(;M.length||v.length;){if(v.length){let H=-1;for(let K=0;K<v.length&&!(v[K].ymin>q);K++)H=K;v.splice(0,H+1).forEach((K)=>{M.push({s:q,edge:K})})}if(M=M.filter((H)=>!(H.edge.ymax<=q)),M.sort((H,K)=>H.edge.x===K.edge.x?0:(H.edge.x-K.edge.x)/Math.abs(H.edge.x-K.edge.x)),(x!==1||W%d==0)&&M.length>1)for(let H=0;H<M.length;H+=2){let K=H+1;if(K>=M.length)break;let J=M[H].edge,tt=M[K].edge;_.push([[Math.round(J.x),q],[Math.round(tt.x),q]])}q+=x,M.forEach((H)=>{H.edge.x=H.edge.x+x*H.edge.islope}),W++}return _}(c,n,s);if(o){for(let y of c)If(y,l,-o);(function(y,d,x){let b=[];y.forEach((_)=>b.push(..._)),If(b,d,x)})(p,l,-o)}return p}function Ja(r,e){var i;let s=e.hachureAngle+90,o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,0.1));let n=1;return e.roughness>=1&&(((i=e.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>0.7&&(n=o),Ew(r,o,s,n||1)}class sh{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let i=Ja(r,e);return{type:"fillSketch",ops:this.renderLines(i,e)}}renderLines(r,e){let i=[];for(let s of r)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],e));return i}}function ah(r){let e=r[0],i=r[1];return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}class cy extends sh{fillPolygons(r,e){let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,0.1);let s=Ja(r,Object.assign({},e,{hachureGap:i})),o=Math.PI/180*e.hachureAngle,n=[],c=0.5*i*Math.cos(o),l=0.5*i*Math.sin(o);for(let[p,y]of s)ah([p,y])&&n.push([[p[0]-c,p[1]+l],[...y]],[[p[0]+c,p[1]-l],[...y]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class uy extends sh{fillPolygons(r,e){let i=this._fillPolygons(r,e),s=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),o=this._fillPolygons(r,s);return i.ops=i.ops.concat(o.ops),i}}class fy{constructor(r){this.helper=r}fillPolygons(r,e){let i=Ja(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(i,e)}dotsOnLines(r,e){let i=[],s=e.hachureGap;s<0&&(s=4*e.strokeWidth),s=Math.max(s,0.1);let o=e.fillWeight;o<0&&(o=e.strokeWidth/2);let n=s/4;for(let c of r){let l=ah(c),p=l/s,y=Math.ceil(p)-1,d=l-y*s,x=(c[0][0]+c[1][0])/2-s/4,b=Math.min(c[0][1],c[1][1]);for(let _=0;_<y;_++){let v=b+d+_*s,M=x-n+2*Math.random()*n,q=v-n+2*Math.random()*n,W=this.helper.ellipse(M,q,o,o,e);i.push(...W.ops)}}return{type:"fillSketch",ops:i}}}class dy{constructor(r){this.helper=r}fillPolygons(r,e){let i=Ja(r,e);return{type:"fillSketch",ops:this.dashedLine(i,e)}}dashedLine(r,e){let i=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,s=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return r.forEach((n)=>{let c=ah(n),l=Math.floor(c/(i+s)),p=(c+s-l*(i+s))/2,y=n[0],d=n[1];y[0]>d[0]&&(y=n[1],d=n[0]);let x=Math.atan((d[1]-y[1])/(d[0]-y[0]));for(let b=0;b<l;b++){let _=b*(i+s),v=_+i,M=[y[0]+_*Math.cos(x)+p*Math.cos(x),y[1]+_*Math.sin(x)+p*Math.sin(x)],q=[y[0]+v*Math.cos(x)+p*Math.cos(x),y[1]+v*Math.sin(x)+p*Math.sin(x)];o.push(...this.helper.doubleLineOps(M[0],M[1],q[0],q[1],e))}}),o}}class py{constructor(r){this.helper=r}fillPolygons(r,e){let i=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,s=e.zigzagOffset<0?i:e.zigzagOffset,o=Ja(r,e=Object.assign({},e,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,e)}}zigzagLines(r,e,i){let s=[];return r.forEach((o)=>{let n=ah(o),c=Math.round(n/(2*e)),l=o[0],p=o[1];l[0]>p[0]&&(l=o[1],p=o[0]);let y=Math.atan((p[1]-l[1])/(p[0]-l[0]));for(let d=0;d<c;d++){let x=2*d*e,b=2*(d+1)*e,_=Math.sqrt(2*Math.pow(e,2)),v=[l[0]+x*Math.cos(y),l[1]+x*Math.sin(y)],M=[l[0]+b*Math.cos(y),l[1]+b*Math.sin(y)],q=[v[0]+_*Math.cos(y+Math.PI/4),v[1]+_*Math.sin(y+Math.PI/4)];s.push(...this.helper.doubleLineOps(v[0],v[1],q[0],q[1],i),...this.helper.doubleLineOps(q[0],q[1],M[0],M[1],i))}}),s}}var Cr={};class gy{constructor(r){this.seed=r}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}var Ow=0,$f=1,ry=2,Zl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Df(r,e){return r.type===e}function zf(r){let e=[],i=function(c){let l=[];for(;c!=="";)if(c.match(/^([ \t\r\n,]+)/))c=c.substr(RegExp.$1.length);else if(c.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Ow,text:RegExp.$1},c=c.substr(RegExp.$1.length);else{if(!c.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:$f,text:`${parseFloat(RegExp.$1)}`},c=c.substr(RegExp.$1.length)}return l[l.length]={type:ry,text:""},l}(r),s="BOD",o=0,n=i[o];for(;!Df(n,ry);){let c=0,l=[];if(s==="BOD"){if(n.text!=="M"&&n.text!=="m")return zf("M0,0"+r);o++,c=Zl[n.text],s=n.text}else Df(n,$f)?c=Zl[s]:(o++,c=Zl[n.text],s=n.text);if(!(o+c<i.length))throw Error("Path data ended short");for(let p=o;p<o+c;p++){let y=i[p];if(!Df(y,$f))throw Error("Param not a number: "+s+","+y.text);l[l.length]=+y.text}if(typeof Zl[s]!="number")throw Error("Bad segment: "+s);{let p={key:s,data:l};e.push(p),o+=c,n=i[o],s==="M"&&(s="L"),s==="m"&&(s="l")}}return e}function my(r){let e=0,i=0,s=0,o=0,n=[];for(let{key:c,data:l}of r)switch(c){case"M":n.push({key:"M",data:[...l]}),[e,i]=l,[s,o]=l;break;case"m":e+=l[0],i+=l[1],n.push({key:"M",data:[e,i]}),s=e,o=i;break;case"L":n.push({key:"L",data:[...l]}),[e,i]=l;break;case"l":e+=l[0],i+=l[1],n.push({key:"L",data:[e,i]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],i=l[5];break;case"c":{let p=l.map((y,d)=>d%2?y+i:y+e);n.push({key:"C",data:p}),e=p[4],i=p[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],i=l[3];break;case"q":{let p=l.map((y,d)=>d%2?y+i:y+e);n.push({key:"Q",data:p}),e=p[2],i=p[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],i=l[6];break;case"a":e+=l[5],i+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,i]});break;case"H":n.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...l]}),i=l[0];break;case"v":i+=l[0],n.push({key:"V",data:[i]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],i=l[3];break;case"s":{let p=l.map((y,d)=>d%2?y+i:y+e);n.push({key:"S",data:p}),e=p[2],i=p[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],i=l[1];break;case"t":e+=l[0],i+=l[1],n.push({key:"T",data:[e,i]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=s,i=o}return n}function yy(r){let e=[],i="",s=0,o=0,n=0,c=0,l=0,p=0;for(let{key:y,data:d}of r){switch(y){case"M":e.push({key:"M",data:[...d]}),[s,o]=d,[n,c]=d;break;case"C":e.push({key:"C",data:[...d]}),s=d[4],o=d[5],l=d[2],p=d[3];break;case"L":e.push({key:"L",data:[...d]}),[s,o]=d;break;case"H":s=d[0],e.push({key:"L",data:[s,o]});break;case"V":o=d[0],e.push({key:"L",data:[s,o]});break;case"S":{let x=0,b=0;i==="C"||i==="S"?(x=s+(s-l),b=o+(o-p)):(x=s,b=o),e.push({key:"C",data:[x,b,...d]}),l=d[0],p=d[1],s=d[2],o=d[3];break}case"T":{let[x,b]=d,_=0,v=0;i==="Q"||i==="T"?(_=s+(s-l),v=o+(o-p)):(_=s,v=o);let M=s+2*(_-s)/3,q=o+2*(v-o)/3,W=x+2*(_-x)/3,H=b+2*(v-b)/3;e.push({key:"C",data:[M,q,W,H,x,b]}),l=_,p=v,s=x,o=b;break}case"Q":{let[x,b,_,v]=d,M=s+2*(x-s)/3,q=o+2*(b-o)/3,W=_+2*(x-_)/3,H=v+2*(b-v)/3;e.push({key:"C",data:[M,q,W,H,_,v]}),l=x,p=b,s=_,o=v;break}case"A":{let x=Math.abs(d[0]),b=Math.abs(d[1]),_=d[2],v=d[3],M=d[4],q=d[5],W=d[6];if(x===0||b===0)e.push({key:"C",data:[s,o,q,W,q,W]}),s=q,o=W;else if(s!==q||o!==W)xy(s,o,q,W,x,b,_,v,M).forEach(function(H){e.push({key:"C",data:H})}),s=q,o=W;break}case"Z":e.push({key:"Z",data:[]}),s=n,o=c}i=y}return e}function Na(r,e,i){return[r*Math.cos(i)-e*Math.sin(i),r*Math.sin(i)+e*Math.cos(i)]}function xy(r,e,i,s,o,n,c,l,p,y){let d=(x=c,Math.PI*x/180);var x;let b=[],_=0,v=0,M=0,q=0;if(y)[_,v,M,q]=y;else{[r,e]=Na(r,e,-d),[i,s]=Na(i,s,-d);let rt=(r-i)/2,ot=(e-s)/2,gt=rt*rt/(o*o)+ot*ot/(n*n);gt>1&&(gt=Math.sqrt(gt),o*=gt,n*=gt);let et=o*o,wt=n*n,At=et*wt-et*ot*ot-wt*rt*rt,Vt=et*ot*ot+wt*rt*rt,Xt=(l===p?-1:1)*Math.sqrt(Math.abs(At/Vt));M=Xt*o*ot/n+(r+i)/2,q=Xt*-n*rt/o+(e+s)/2,_=Math.asin(parseFloat(((e-q)/n).toFixed(9))),v=Math.asin(parseFloat(((s-q)/n).toFixed(9))),r<M&&(_=Math.PI-_),i<M&&(v=Math.PI-v),_<0&&(_=2*Math.PI+_),v<0&&(v=2*Math.PI+v),p&&_>v&&(_-=2*Math.PI),!p&&v>_&&(v-=2*Math.PI)}let W=v-_;if(Math.abs(W)>120*Math.PI/180){let rt=v,ot=i,gt=s;v=p&&v>_?_+120*Math.PI/180*1:_+120*Math.PI/180*-1,b=xy(i=M+o*Math.cos(v),s=q+n*Math.sin(v),ot,gt,o,n,c,0,p,[v,rt,M,q])}W=v-_;let H=Math.cos(_),K=Math.sin(_),J=Math.cos(v),tt=Math.sin(v),nt=Math.tan(W/4),st=1.3333333333333333*o*nt,ft=1.3333333333333333*n*nt,xt=[r,e],Ft=[r+st*K,e-ft*H],kt=[i+st*tt,s-ft*J],Ct=[i,s];if(Ft[0]=2*xt[0]-Ft[0],Ft[1]=2*xt[1]-Ft[1],y)return[Ft,kt,Ct].concat(b);{b=[Ft,kt,Ct].concat(b);let rt=[];for(let ot=0;ot<b.length;ot+=3){let gt=Na(b[ot][0],b[ot][1],d),et=Na(b[ot+1][0],b[ot+1][1],d),wt=Na(b[ot+2][0],b[ot+2][1],d);rt.push([gt[0],gt[1],et[0],et[1],wt[0],wt[1]])}return rt}}var Iw={randOffset:function(r,e){return le(r,e)},randOffsetWithRange:function(r,e,i){return rh(r,e,i)},ellipse:function(r,e,i,s,o){let n=by(i,s,o);return qf(r,e,o,n).opset},doubleLineOps:function(r,e,i,s,o){return Yi(r,e,i,s,o,!0)}};function Cy(r,e,i,s,o){return{type:"path",ops:Yi(r,e,i,s,o)}}function th(r,e,i){let s=(r||[]).length;if(s>2){let o=[];for(let n=0;n<s-1;n++)o.push(...Yi(r[n][0],r[n][1],r[n+1][0],r[n+1][1],i));return e&&o.push(...Yi(r[s-1][0],r[s-1][1],r[0][0],r[0][1],i)),{type:"path",ops:o}}return s===2?Cy(r[0][0],r[0][1],r[1][0],r[1][1],i):{type:"path",ops:[]}}function $w(r,e,i,s,o){return function(n,c){return th(n,!0,c)}([[r,e],[r+i,e],[r+i,e+s],[r,e+s]],o)}function iy(r,e){if(r.length){let i=typeof r[0][0]=="number"?[r]:r,s=Ql(i[0],1*(1+0.2*e.roughness),e),o=e.disableMultiStroke?[]:Ql(i[0],1.5*(1+0.22*e.roughness),ay(e));for(let n=1;n<i.length;n++){let c=i[n];if(c.length){let l=Ql(c,1*(1+0.2*e.roughness),e),p=e.disableMultiStroke?[]:Ql(c,1.5*(1+0.22*e.roughness),ay(e));for(let y of l)y.op!=="move"&&s.push(y);for(let y of p)y.op!=="move"&&o.push(y)}}return{type:"path",ops:s.concat(o)}}return{type:"path",ops:[]}}function by(r,e,i){let s=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*s)),n=2*Math.PI/o,c=Math.abs(r/2),l=Math.abs(e/2),p=1-i.curveFitting;return c+=le(c*p,i),l+=le(l*p,i),{increment:n,rx:c,ry:l}}function qf(r,e,i,s){let[o,n]=ny(s.increment,r,e,s.rx,s.ry,1,s.increment*rh(0.1,rh(0.4,1,i),i),i),c=ih(o,null,i);if(!i.disableMultiStroke&&i.roughness!==0){let[l]=ny(s.increment,r,e,s.rx,s.ry,1.5,0,i),p=ih(l,null,i);c=c.concat(p)}return{estimatedPoints:n,opset:{type:"path",ops:c}}}function oy(r,e,i,s,o,n,c,l,p){let y=r,d=e,x=Math.abs(i/2),b=Math.abs(s/2);x+=le(0.01*x,p),b+=le(0.01*b,p);let _=o,v=n;for(;_<0;)_+=2*Math.PI,v+=2*Math.PI;v-_>2*Math.PI&&(_=0,v=2*Math.PI);let M=2*Math.PI/p.curveStepCount,q=Math.min(M/2,(v-_)/2),W=ly(q,y,d,x,b,_,v,1,p);if(!p.disableMultiStroke){let H=ly(q,y,d,x,b,_,v,1.5,p);W.push(...H)}return c&&(l?W.push(...Yi(y,d,y+x*Math.cos(_),d+b*Math.sin(_),p),...Yi(y,d,y+x*Math.cos(v),d+b*Math.sin(v),p)):W.push({op:"lineTo",data:[y,d]},{op:"lineTo",data:[y+x*Math.cos(_),d+b*Math.sin(_)]})),{type:"path",ops:W}}function sy(r,e){let i=yy(my(zf(r))),s=[],o=[0,0],n=[0,0];for(let{key:c,data:l}of i)switch(c){case"M":n=[l[0],l[1]],o=[l[0],l[1]];break;case"L":s.push(...Yi(n[0],n[1],l[0],l[1],e)),n=[l[0],l[1]];break;case"C":{let[p,y,d,x,b,_]=l;s.push(...Dw(p,y,d,x,b,_,n,e)),n=[b,_];break}case"Z":s.push(...Yi(n[0],n[1],o[0],o[1],e)),n=[o[0],o[1]]}return{type:"path",ops:s}}function Pf(r,e){let i=[];for(let s of r)if(s.length){let o=e.maxRandomnessOffset||0,n=s.length;if(n>2){i.push({op:"move",data:[s[0][0]+le(o,e),s[0][1]+le(o,e)]});for(let c=1;c<n;c++)i.push({op:"lineTo",data:[s[c][0]+le(o,e),s[c][1]+le(o,e)]})}}return{type:"fillPath",ops:i}}function cs(r,e){return function(i,s){let o=i.fillStyle||"hachure";if(!Cr[o])switch(o){case"zigzag":Cr[o]||(Cr[o]=new cy(s));break;case"cross-hatch":Cr[o]||(Cr[o]=new uy(s));break;case"dots":Cr[o]||(Cr[o]=new fy(s));break;case"dashed":Cr[o]||(Cr[o]=new dy(s));break;case"zigzag-line":Cr[o]||(Cr[o]=new py(s));break;default:o="hachure",Cr[o]||(Cr[o]=new sh(s))}return Cr[o]}(e,Iw).fillPolygons(r,e)}function ay(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function ky(r){return r.randomizer||(r.randomizer=new gy(r.seed||0)),r.randomizer.next()}function rh(r,e,i,s=1){return i.roughness*s*(ky(i)*(e-r)+r)}function le(r,e,i=1){return rh(-r,r,e,i)}function Yi(r,e,i,s,o,n=!1){let c=n?o.disableMultiStrokeFill:o.disableMultiStroke,l=Nf(r,e,i,s,o,!0,!1);if(c)return l;let p=Nf(r,e,i,s,o,!0,!0);return l.concat(p)}function Nf(r,e,i,s,o,n,c){let l=Math.pow(r-i,2)+Math.pow(e-s,2),p=Math.sqrt(l),y=1;y=p<200?1:p>500?0.4:-0.0016668*p+1.233334;let d=o.maxRandomnessOffset||0;d*d*100>l&&(d=p/10);let x=d/2,b=0.2+0.2*ky(o),_=o.bowing*o.maxRandomnessOffset*(s-e)/200,v=o.bowing*o.maxRandomnessOffset*(r-i)/200;_=le(_,o,y),v=le(v,o,y);let M=[],q=()=>le(x,o,y),W=()=>le(d,o,y),H=o.preserveVertices;return n&&(c?M.push({op:"move",data:[r+(H?0:q()),e+(H?0:q())]}):M.push({op:"move",data:[r+(H?0:le(d,o,y)),e+(H?0:le(d,o,y))]})),c?M.push({op:"bcurveTo",data:[_+r+(i-r)*b+q(),v+e+(s-e)*b+q(),_+r+2*(i-r)*b+q(),v+e+2*(s-e)*b+q(),i+(H?0:q()),s+(H?0:q())]}):M.push({op:"bcurveTo",data:[_+r+(i-r)*b+W(),v+e+(s-e)*b+W(),_+r+2*(i-r)*b+W(),v+e+2*(s-e)*b+W(),i+(H?0:W()),s+(H?0:W())]}),M}function Ql(r,e,i){if(!r.length)return[];let s=[];s.push([r[0][0]+le(e,i),r[0][1]+le(e,i)]),s.push([r[0][0]+le(e,i),r[0][1]+le(e,i)]);for(let o=1;o<r.length;o++)s.push([r[o][0]+le(e,i),r[o][1]+le(e,i)]),o===r.length-1&&s.push([r[o][0]+le(e,i),r[o][1]+le(e,i)]);return ih(s,null,i)}function ih(r,e,i){let s=r.length,o=[];if(s>3){let n=[],c=1-i.curveTightness;o.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<s;l++){let p=r[l];n[0]=[p[0],p[1]],n[1]=[p[0]+(c*r[l+1][0]-c*r[l-1][0])/6,p[1]+(c*r[l+1][1]-c*r[l-1][1])/6],n[2]=[r[l+1][0]+(c*r[l][0]-c*r[l+2][0])/6,r[l+1][1]+(c*r[l][1]-c*r[l+2][1])/6],n[3]=[r[l+1][0],r[l+1][1]],o.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&e.length===2){let l=i.maxRandomnessOffset;o.push({op:"lineTo",data:[e[0]+le(l,i),e[1]+le(l,i)]})}}else s===3?(o.push({op:"move",data:[r[1][0],r[1][1]]}),o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):s===2&&o.push(...Nf(r[0][0],r[0][1],r[1][0],r[1][1],i,!0,!0));return o}function ny(r,e,i,s,o,n,c,l){let p=[],y=[];if(l.roughness===0){r/=4,y.push([e+s*Math.cos(-r),i+o*Math.sin(-r)]);for(let d=0;d<=2*Math.PI;d+=r){let x=[e+s*Math.cos(d),i+o*Math.sin(d)];p.push(x),y.push(x)}y.push([e+s*Math.cos(0),i+o*Math.sin(0)]),y.push([e+s*Math.cos(r),i+o*Math.sin(r)])}else{let d=le(0.5,l)-Math.PI/2;y.push([le(n,l)+e+0.9*s*Math.cos(d-r),le(n,l)+i+0.9*o*Math.sin(d-r)]);let x=2*Math.PI+d-0.01;for(let b=d;b<x;b+=r){let _=[le(n,l)+e+s*Math.cos(b),le(n,l)+i+o*Math.sin(b)];p.push(_),y.push(_)}y.push([le(n,l)+e+s*Math.cos(d+2*Math.PI+0.5*c),le(n,l)+i+o*Math.sin(d+2*Math.PI+0.5*c)]),y.push([le(n,l)+e+0.98*s*Math.cos(d+c),le(n,l)+i+0.98*o*Math.sin(d+c)]),y.push([le(n,l)+e+0.9*s*Math.cos(d+0.5*c),le(n,l)+i+0.9*o*Math.sin(d+0.5*c)])}return[y,p]}function ly(r,e,i,s,o,n,c,l,p){let y=n+le(0.1,p),d=[];d.push([le(l,p)+e+0.9*s*Math.cos(y-r),le(l,p)+i+0.9*o*Math.sin(y-r)]);for(let x=y;x<=c;x+=r)d.push([le(l,p)+e+s*Math.cos(x),le(l,p)+i+o*Math.sin(x)]);return d.push([e+s*Math.cos(c),i+o*Math.sin(c)]),d.push([e+s*Math.cos(c),i+o*Math.sin(c)]),ih(d,null,p)}function Dw(r,e,i,s,o,n,c,l){let p=[],y=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],d=[0,0],x=l.disableMultiStroke?1:2,b=l.preserveVertices;for(let _=0;_<x;_++)_===0?p.push({op:"move",data:[c[0],c[1]]}):p.push({op:"move",data:[c[0]+(b?0:le(y[0],l)),c[1]+(b?0:le(y[0],l))]}),d=b?[o,n]:[o+le(y[_],l),n+le(y[_],l)],p.push({op:"bcurveTo",data:[r+le(y[_],l),e+le(y[_],l),i+le(y[_],l),s+le(y[_],l),d[0],d[1]]});return p}function Ka(r){return[...r]}function hy(r,e=0){let i=r.length;if(i<3)throw Error("A curve must have at least three points.");let s=[];if(i===3)s.push(Ka(r[0]),Ka(r[1]),Ka(r[2]),Ka(r[2]));else{let o=[];o.push(r[0],r[0]);for(let l=1;l<r.length;l++)o.push(r[l]),l===r.length-1&&o.push(r[l]);let n=[],c=1-e;s.push(Ka(o[0]));for(let l=1;l+2<o.length;l++){let p=o[l];n[0]=[p[0],p[1]],n[1]=[p[0]+(c*o[l+1][0]-c*o[l-1][0])/6,p[1]+(c*o[l+1][1]-c*o[l-1][1])/6],n[2]=[o[l+1][0]+(c*o[l][0]-c*o[l+2][0])/6,o[l+1][1]+(c*o[l][1]-c*o[l+2][1])/6],n[3]=[o[l+1][0],o[l+1][1]],s.push(n[1],n[2],n[3])}}return s}function eh(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)}function Pw(r,e,i){let s=eh(e,i);if(s===0)return eh(r,e);let o=((r[0]-e[0])*(i[0]-e[0])+(r[1]-e[1])*(i[1]-e[1]))/s;return o=Math.max(0,Math.min(1,o)),eh(r,eo(e,i,o))}function eo(r,e,i){return[r[0]+(e[0]-r[0])*i,r[1]+(e[1]-r[1])*i]}function Wf(r,e,i,s){let o=s||[];if(function(l,p){let y=l[p+0],d=l[p+1],x=l[p+2],b=l[p+3],_=3*d[0]-2*y[0]-b[0];_*=_;let v=3*d[1]-2*y[1]-b[1];v*=v;let M=3*x[0]-2*b[0]-y[0];M*=M;let q=3*x[1]-2*b[1]-y[1];return q*=q,_<M&&(_=M),v<q&&(v=q),_+v}(r,e)<i){let l=r[e+0];if(o.length)(n=o[o.length-1],c=l,Math.sqrt(eh(n,c)))>1&&o.push(l);else o.push(l);o.push(r[e+3])}else{let p=r[e+0],y=r[e+1],d=r[e+2],x=r[e+3],b=eo(p,y,0.5),_=eo(y,d,0.5),v=eo(d,x,0.5),M=eo(b,_,0.5),q=eo(_,v,0.5),W=eo(M,q,0.5);Wf([p,b,M,W],0,i,o),Wf([W,q,v,x],0,i,o)}var n,c;return o}function Rw(r,e){return oh(r,0,r.length,e)}function oh(r,e,i,s,o){let n=o||[],c=r[e],l=r[i-1],p=0,y=1;for(let d=e+1;d<i-1;++d){let x=Pw(r[d],c,l);x>p&&(p=x,y=d)}return Math.sqrt(p)>s?(oh(r,e,y+1,s,n),oh(r,y,i,s,n)):(n.length||n.push(c),n.push(l)),n}function Rf(r,e=0.15,i){let s=[],o=(r.length-1)/3;for(let n=0;n<o;n++)Wf(r,3*n,e,s);return i&&i>0?oh(s,0,s.length,i):s}var Sr="none";class Qa{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,i){return{shape:r,sets:e||[],options:i||this.defaultOptions}}line(r,e,i,s,o){let n=this._o(o);return this._d("line",[Cy(r,e,i,s,n)],n)}rectangle(r,e,i,s,o){let n=this._o(o),c=[],l=$w(r,e,i,s,n);if(n.fill){let p=[[r,e],[r+i,e],[r+i,e+s],[r,e+s]];n.fillStyle==="solid"?c.push(Pf([p],n)):c.push(cs([p],n))}return n.stroke!==Sr&&c.push(l),this._d("rectangle",c,n)}ellipse(r,e,i,s,o){let n=this._o(o),c=[],l=by(i,s,n),p=qf(r,e,n,l);if(n.fill)if(n.fillStyle==="solid"){let y=qf(r,e,n,l).opset;y.type="fillPath",c.push(y)}else c.push(cs([p.estimatedPoints],n));return n.stroke!==Sr&&c.push(p.opset),this._d("ellipse",c,n)}circle(r,e,i,s){let o=this.ellipse(r,e,i,i,s);return o.shape="circle",o}linearPath(r,e){let i=this._o(e);return this._d("linearPath",[th(r,!1,i)],i)}arc(r,e,i,s,o,n,c=!1,l){let p=this._o(l),y=[],d=oy(r,e,i,s,o,n,c,!0,p);if(c&&p.fill)if(p.fillStyle==="solid"){let x=Object.assign({},p);x.disableMultiStroke=!0;let b=oy(r,e,i,s,o,n,!0,!1,x);b.type="fillPath",y.push(b)}else y.push(function(x,b,_,v,M,q,W){let H=x,K=b,J=Math.abs(_/2),tt=Math.abs(v/2);J+=le(0.01*J,W),tt+=le(0.01*tt,W);let nt=M,st=q;for(;nt<0;)nt+=2*Math.PI,st+=2*Math.PI;st-nt>2*Math.PI&&(nt=0,st=2*Math.PI);let ft=(st-nt)/W.curveStepCount,xt=[];for(let Ft=nt;Ft<=st;Ft+=ft)xt.push([H+J*Math.cos(Ft),K+tt*Math.sin(Ft)]);return xt.push([H+J*Math.cos(st),K+tt*Math.sin(st)]),xt.push([H,K]),cs([xt],W)}(r,e,i,s,o,n,p));return p.stroke!==Sr&&y.push(d),this._d("arc",y,p)}curve(r,e){let i=this._o(e),s=[],o=iy(r,i);if(i.fill&&i.fill!==Sr)if(i.fillStyle==="solid"){let n=iy(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(n.ops)})}else{let n=[],c=r;if(c.length){let l=typeof c[0][0]=="number"?[c]:c;for(let p of l)p.length<3?n.push(...p):p.length===3?n.push(...Rf(hy([p[0],p[0],p[1],p[2]]),10,(1+i.roughness)/2)):n.push(...Rf(hy(p),10,(1+i.roughness)/2))}n.length&&s.push(cs([n],i))}return i.stroke!==Sr&&s.push(o),this._d("curve",s,i)}polygon(r,e){let i=this._o(e),s=[],o=th(r,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(Pf([r],i)):s.push(cs([r],i))),i.stroke!==Sr&&s.push(o),this._d("polygon",s,i)}path(r,e){let i=this._o(e),s=[];if(!r)return this._d("path",s,i);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==Sr,n=i.stroke!==Sr,c=!!(i.simplification&&i.simplification<1),l=function(y,d,x){let b=yy(my(zf(y))),_=[],v=[],M=[0,0],q=[],W=()=>{q.length>=4&&v.push(...Rf(q,d)),q=[]},H=()=>{W(),v.length&&(_.push(v),v=[])};for(let{key:J,data:tt}of b)switch(J){case"M":H(),M=[tt[0],tt[1]],v.push(M);break;case"L":W(),v.push([tt[0],tt[1]]);break;case"C":if(!q.length){let nt=v.length?v[v.length-1]:M;q.push([nt[0],nt[1]])}q.push([tt[0],tt[1]]),q.push([tt[2],tt[3]]),q.push([tt[4],tt[5]]);break;case"Z":W(),v.push([M[0],M[1]])}if(H(),!x)return _;let K=[];for(let J of _){let tt=Rw(J,x);tt.length&&K.push(tt)}return K}(r,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),p=sy(r,i);if(o)if(i.fillStyle==="solid")if(l.length===1){let y=sy(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(y.ops)})}else s.push(Pf(l,i));else s.push(cs(l,i));return n&&(c?l.forEach((y)=>{s.push(th(y,!1,i))}):s.push(p)),this._d("path",s,i)}opsToPath(r,e){let i="";for(let s of r.ops){let o=typeof e=="number"&&e>=0?s.data.map((n)=>+n.toFixed(e)):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(r){let e=r.sets||[],i=r.options||this.defaultOptions,s=[];for(let o of e){let n=null;switch(o.type){case"path":n={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Sr};break;case"fillPath":n={d:this.opsToPath(o),stroke:Sr,strokeWidth:0,fill:i.fill||Sr};break;case"fillSketch":n=this.fillSketch(o,i)}n&&s.push(n)}return s}fillSketch(r,e){let i=e.fillWeight;return i<0&&(i=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||Sr,strokeWidth:i,fill:Sr}}_mergedShape(r){return r.filter((e,i)=>i===0||e.op!=="move")}}class wy{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new Qa(e)}draw(r){let e=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.ctx,o=r.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,n,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";let c=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,n,o,c),s.restore();break}case"fillSketch":this.fillSketch(s,n,i)}}fillSketch(r,e,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),r.save(),i.fillLineDash&&r.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(r.lineDashOffset=i.fillLineDashOffset),r.strokeStyle=i.fill||"",r.lineWidth=s,this._drawToContext(r,e,i.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,i,s="nonzero"){r.beginPath();for(let o of e.ops){let n=typeof i=="number"&&i>=0?o.data.map((c)=>+c.toFixed(i)):o.data;switch(o.op){case"move":r.moveTo(n[0],n[1]);break;case"bcurveTo":r.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"lineTo":r.lineTo(n[0],n[1])}}e.type==="fillPath"?r.fill(s):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,i,s,o){let n=this.gen.line(r,e,i,s,o);return this.draw(n),n}rectangle(r,e,i,s,o){let n=this.gen.rectangle(r,e,i,s,o);return this.draw(n),n}ellipse(r,e,i,s,o){let n=this.gen.ellipse(r,e,i,s,o);return this.draw(n),n}circle(r,e,i,s){let o=this.gen.circle(r,e,i,s);return this.draw(o),o}linearPath(r,e){let i=this.gen.linearPath(r,e);return this.draw(i),i}polygon(r,e){let i=this.gen.polygon(r,e);return this.draw(i),i}arc(r,e,i,s,o,n,c=!1,l){let p=this.gen.arc(r,e,i,s,o,n,c,l);return this.draw(p),p}curve(r,e){let i=this.gen.curve(r,e);return this.draw(i),i}path(r,e){let i=this.gen.path(r,e);return this.draw(i),i}}var Jl="http://www.w3.org/2000/svg";class Sy{constructor(r,e){this.svg=r,this.gen=new Qa(e)}draw(r){let e=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(Jl,"g"),n=r.options.fixedDecimalPlaceDigits;for(let c of e){let l=null;switch(c.type){case"path":l=s.createElementNS(Jl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(Jl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,c,i)}l&&o.appendChild(l)}return o}fillSketch(r,e,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);let o=r.createElementNS(Jl,"path");return o.setAttribute("d",this.opsToPath(e,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,i,s,o){let n=this.gen.line(r,e,i,s,o);return this.draw(n)}rectangle(r,e,i,s,o){let n=this.gen.rectangle(r,e,i,s,o);return this.draw(n)}ellipse(r,e,i,s,o){let n=this.gen.ellipse(r,e,i,s,o);return this.draw(n)}circle(r,e,i,s){let o=this.gen.circle(r,e,i,s);return this.draw(o)}linearPath(r,e){let i=this.gen.linearPath(r,e);return this.draw(i)}polygon(r,e){let i=this.gen.polygon(r,e);return this.draw(i)}arc(r,e,i,s,o,n,c=!1,l){let p=this.gen.arc(r,e,i,s,o,n,c,l);return this.draw(p)}curve(r,e){let i=this.gen.curve(r,e);return this.draw(i)}path(r,e){let i=this.gen.path(r,e);return this.draw(i)}}var g={canvas:(r,e)=>new wy(r,e),svg:(r,e)=>new Sy(r,e),generator:(r)=>new Qa(r),newSeed:()=>Qa.newSeed()};var qw=1,Nw=3;async function td(r){let e=r.getElementsByTagName("img");if(!e||e.length===0)return;let i=!ed(r);await Promise.all([...e].map((s)=>new Promise((o)=>{function n(){if(s.style.display="flex",s.style.flexDirection="column",i){let c=u().fontSize?u().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[p=B.fontSize]=Et(c),y=p*5+"px";s.style.minWidth=y,s.style.maxWidth=y}else s.style.width="100%";o(s)}t(n,"setupImage"),setTimeout(()=>{if(s.complete)n()}),s.addEventListener("error",n),s.addEventListener("load",n)})))}t(td,"configureLabelImages");function ed(r){if(r.nodeType===Nw)return r.textContent?.trim()!=="";if(r.nodeType!==qw)return!1;if(r.tagName.toLowerCase()==="img")return!1;return[...r.childNodes].some(ed)}t(ed,"hasTextBesidesImages");var Ty=3,Ww=32,zw=t(async(r,e,i)=>{let s=u(),o=r.insert("g").attr("class",i??"node default").attr("id",e.domId||e.id),n=o.insert("g").attr("class","label").attr("style",Me(e.labelStyle)),l=[{text:typeof e.label==="string"?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map((W)=>({text:W,cssClass:"c4-descr"}))].filter((W)=>W.text),p=e.width?Math.max(e.width-2*(e.padding??0),Ww):u().flowchart?.wrappingWidth??200,d=s.c4?.wrap??!0?p:Number.POSITIVE_INFINITY,x=await Promise.all(l.map(async(W)=>{let H=n.append("g").attr("class",W.cssClass),K=await it(H,j(On(W.text??""),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:d,style:e.labelStyle},s);return h(K).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),h(K).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:H,box:H.node().getBBox()}})),b=Math.max(...x.map(({box:W})=>W.width),0),_=0;for(let{el:W,box:H}of x)W.attr("transform",`translate(${b/2-H.x-H.width/2}, ${_-H.y})`),_+=H.height+Ty;let v=x.length>0?_-Ty:0;n.insert("rect",":first-child"),n.attr("transform",`translate(${-b/2}, ${-v/2})`);let M=n.node().getBBox(),q=(e.padding??0)/2;return{shapeSvg:o,bbox:M,halfPadding:q,label:n}},"c4LabelHelper"),_y=t((r,e)=>{let{x:i,y:s,width:o,height:n}=r;if(o>=e)return r;if(!("left"in r))return{x:i-(e-o)/2,y:s,width:e,height:n};return{x:i,y:s,width:e,height:n,top:s,left:i,bottom:s+n,right:i+e,toJSON:t(()=>({}),"toJSON")}},"withMinWidth"),U=t(async(r,e,i,{ignoreMinWidth:s=!1}={})=>{if(e.stereotype!==void 0)return zw(r,e,i);let o,n=e.useHtmlLabels||on(u()?.htmlLabels);if(!i)o="node default";else o=i;let c=r.insert("g").attr("class",o).attr("id",e.domId||e.id),l=c.insert("g").attr("class","label").attr("style",Me(e.labelStyle)),p;if(e.label===void 0)p="";else p=typeof e.label==="string"?e.label:e.label[0];let y=!!e.icon||!!e.img,d=e.labelType==="markdown",x=p&&!e.width&&!s?e.minWidth??0:0,b=await it(l,j(On(p),u()),{useHtmlLabels:n,width:e.width||e.wrappingWidth||u().flowchart?.wrappingWidth,minWidth:x,classes:d?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:y,markdown:d},u()),_=(e?.padding??0)/2,v;if(n){let M=b.children[0],q=h(b);await td(M),v=await yi.measure(()=>M.getBoundingClientRect()),v=_y(v,x),q.attr("width",v.width),q.attr("height",v.height)}else v=await yi.measure(()=>b.getBBox()),v=_y(v,x);if(n)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");else l.attr("transform","translate(0, "+-v.height/2+")");if(e.centerLabel)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:c,bbox:v,halfPadding:_,label:l}},"labelHelper"),io=t(async(r,e,i)=>{let s=i.useHtmlLabels??Ye(u()),o=r.insert("g").attr("class","label").attr("style",i.labelStyle||""),n=await it(o,j(On(e),u()),{useHtmlLabels:s,width:i.width||u()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),c=i.padding/2,l;if(Ye(u())){let p=n.children[0],y=h(n);l=await yi.measure(()=>p.getBoundingClientRect()),y.attr("width",l.width),y.attr("height",l.height)}else l=await yi.measure(()=>n.getBBox());if(s)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else o.attr("transform","translate(0, "+-l.height/2+")");if(i.centerLabel)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return o.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:c,label:o}},"insertLabel"),O=t((r,e,i)=>{if(i){r.width=i.width,r.height=i.height;return}let s=e.node().getBBox();r.width=s.width,r.height=s.height},"updateNodeBounds"),te=t((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function ye(r){let e=r.map((i,s)=>`${s===0?"M":"L"}${i.x},${i.y}`);return e.push("Z"),e.join(" ")}t(ye,"createPathFromPoints");function Ui(r,e,i,s,o,n){let c=[],l=50,p=i-r,y=s-e,d=p/n,x=2*Math.PI/d,b=e+y/2;for(let _=0;_<=50;_++){let v=_/50,M=r+v*p,q=b+o*Math.sin(x*(M-r));c.push({x:M,y:q})}return c}t(Ui,"generateFullSineWavePoints");function ri(r,e,i,s,o,n){let c=[],l=o*Math.PI/180,d=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*d,_=r+i*Math.cos(b),v=e+i*Math.sin(b);c.push({x:-_,y:-v})}return c}t(ri,"generateCirclePoints");function Kf(r){let e=Array.from(r.childNodes).filter((p)=>p.tagName==="path"),i=document.createElementNS("http://www.w3.org/2000/svg","path"),s=e.map((p)=>p.getAttribute("d")).filter((p)=>p!==null).join(" ");i.setAttribute("d",s);let o=e.find((p)=>p.getAttribute("fill")!=="none"),n=e.find((p)=>p.getAttribute("stroke")!=="none"),c=t((p,y)=>p?.getAttribute(y)??void 0,"getAttr");if(o){let p={fill:c(o,"fill"),"fill-opacity":c(o,"fill-opacity")??"1"};Object.entries(p).forEach(([y,d])=>{if(d)i.setAttribute(y,d)})}if(n){let p={stroke:c(n,"stroke"),"stroke-width":c(n,"stroke-width")??"1","stroke-opacity":c(n,"stroke-opacity")??"1"};Object.entries(p).forEach(([y,d])=>{if(d)i.setAttribute(y,d)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(i),l}t(Kf,"mergePaths");var Hw=t((r,e)=>{var{x:i,y:s}=r,o=e.x-i,n=e.y-s,c=r.width/2,l=r.height/2,p,y;if(Math.abs(n)*c>Math.abs(o)*l){if(n<0)l=-l;p=n===0?0:l*o/n,y=l}else{if(o<0)c=-c;p=c,y=o===0?0:c*n/o}return{x:i+p,y:s+y}},"intersectRect"),ii=Hw;function Gy(r,e){return r.intersect(e)}t(Gy,"intersectNode");var Yw=Gy;function Xy(r,e,i,s){var{x:o,y:n}=r,c=o-s.x,l=n-s.y,p=Math.sqrt(e*e*l*l+i*i*c*c),y=Math.abs(e*i*c/p);if(s.x<o)y=-y;var d=Math.abs(e*i*l/p);if(s.y<n)d=-d;return{x:o+y,y:n+d}}t(Xy,"intersectEllipse");var Vy=Xy;function Ky(r,e,i){return Vy(r,e,e,i)}t(Ky,"intersectCircle");var Uw=Ky;function Zy(r,e,i,s){{let o=e.y-r.y,n=r.x-e.x,c=e.x*r.y-r.x*e.y,l=o*i.x+n*i.y+c,p=o*s.x+n*s.y+c,y=0.000001;if(l!==0&&p!==0&&Zf(l,p))return;let d=s.y-i.y,x=i.x-s.x,b=s.x*i.y-i.x*s.y,_=d*r.x+x*r.y+b,v=d*e.x+x*e.y+b;if(Math.abs(_)<0.000001&&Math.abs(v)<0.000001&&Zf(_,v))return;let M=o*x-d*n;if(M===0)return;let q=(n*b-x*c)/M,W=(d*c-o*b)/M;return{x:q,y:W}}}t(Zy,"intersectLine");function Zf(r,e){return r*e>0}t(Zf,"sameSign");var jw=Zy;function Qy(r,e,i){let{x:s,y:o}=r,n=[],{POSITIVE_INFINITY:c,POSITIVE_INFINITY:l}=Number;if(typeof e.forEach==="function")e.forEach(function(d){c=Math.min(c,d.x),l=Math.min(l,d.y)});else c=Math.min(c,e.x),l=Math.min(l,e.y);let p=s-r.width/2-c,y=o-r.height/2-l;for(let d=0;d<e.length;d++){let x=e[d],b=e[d<e.length-1?d+1:0],_=jw(r,i,{x:p+x.x,y:y+x.y},{x:p+b.x,y:y+b.y});if(_)n.push(_)}if(!n.length)return r;if(n.length>1)n.sort(function(d,x){let b=d.x-i.x,_=d.y-i.y,v=Math.sqrt(b*b+_*_),M=x.x-i.x,q=x.y-i.y,W=Math.sqrt(M*M+q*q);return v<W?-1:v===W?0:1});return n[0]}t(Qy,"intersectPolygon");var Gw=Qy,T={node:Yw,circle:Uw,ellipse:Vy,polygon:Gw,rect:ii},br=t((r,e,i,s,o)=>["M",r+o,e,"H",r+i-o,"A",o,o,0,0,1,r+i,e+o,"V",e+s-o,"A",o,o,0,0,1,r+i-o,e+s,"H",r+o,"A",o,o,0,0,1,r,e+s-o,"V",e+o,"A",o,o,0,0,1,r+o,e,"Z"].join(" "),"createRoundedRectPathD"),Xw=t(async(r,e,i,s=!1,o=!1)=>{let n=e||"";if(typeof n==="object")n=n[0];let c=u(),l=Ye(c);return await it(r,n,{style:i,isTitle:s,useHtmlLabels:l,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},c)},"createLabel"),Hr=Xw;function Jy(r,e){let{labelStyles:i}=E(e);e.labelStyle=i;let s=te(e),o=s;if(!s)o="anchor";let n=r.insert("g").attr("class",o).attr("id",e.domId||e.id),c=1,{cssStyles:l}=e,p=g.svg(n),y=Kt(e,{fill:"black",stroke:"none",fillStyle:"solid"});if(e.look!=="handDrawn")y.roughness=0;let d=p.circle(0,0,c*2,y),x=n.insert(()=>d,":first-child");return x.attr("class","anchor").attr("style",Me(l)),O(e,x),e.intersect=function(b){return a.info("Circle intersect",e,c,b),T.circle(e,c,b)},n}t(Jy,"anchor");function Qf(r,e,i,s,o,n,c){let p=(r+i)/2,y=(e+s)/2,d=Math.atan2(s-e,i-r),x=(i-r)/2,b=(s-e)/2,_=x/o,v=b/n,M=Math.sqrt(_**2+v**2);if(M>1)throw Error("The given radii are too small to create an arc between the points.");let q=Math.sqrt(1-M**2),W=p+q*n*Math.sin(d)*(c?-1:1),H=y-q*o*Math.cos(d)*(c?-1:1),K=Math.atan2((e-H)/n,(r-W)/o),tt=Math.atan2((s-H)/n,(i-W)/o)-K;if(c&&tt<0)tt+=2*Math.PI;if(!c&&tt>0)tt-=2*Math.PI;let nt=[];for(let st=0;st<20;st++){let ft=st/19,xt=K+ft*tt,Ft=W+o*Math.cos(xt),kt=H+n*Math.sin(xt);nt.push({x:Ft,y:kt})}return nt}t(Qf,"generateArcPoints");function tx(r,e,i){let[s,o]=[e,i].sort((n,c)=>c-n);return o*(1-Math.sqrt(1-(r/s/2)**2))}t(tx,"calculateArcSagitta");async function ex(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o,l=t((xt)=>xt+c,"calcTotalHeight"),p=t((xt)=>{let Ft=xt/2;return[Ft/(2.5+xt/50),Ft]},"calcEllipseRadius"),{shapeSvg:y,bbox:d}=await U(r,e,te(e)),x=l(e?.height?e?.height:d.height),[b,_]=p(x),v=tx(x,b,_),q=(e?.width?e?.width:d.width)+n*2+v-v,W=x,{cssStyles:H}=e,K=[{x:q/2,y:-W/2},{x:-q/2,y:-W/2},...Qf(-q/2,-W/2,-q/2,W/2,b,_,!1),{x:q/2,y:W/2},...Qf(q/2,W/2,q/2,-W/2,b,_,!0)],J=g.svg(y),tt=Kt(e,{});if(e.look!=="handDrawn")tt.roughness=0,tt.fillStyle="solid";let nt=ye(K),st=J.path(nt,tt),ft=y.insert(()=>st,":first-child");if(ft.attr("class","basic label-container outer-path"),H&&e.look!=="handDrawn")ft.selectAll("path").attr("style",H);if(s&&e.look!=="handDrawn")ft.selectAll("path").attr("style",s);return ft.attr("transform",`translate(${b/2}, 0)`),O(e,ft),e.intersect=function(xt){return T.polygon(e,K,xt)},y}t(ex,"bowTieRect");async function rx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:c,label:l}=await U(r,e,te(e)),p=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,d=Math.max(c.width+y*2,e.width??0,80),x=Math.max(Math.min(d*0.08,12),5),b=Math.max(c.height+y*2+x,e.height??0),_=-b/2+x,v=b/2,M=d*0.72,q=[`M${-d/2},${_}`,`L${-M/2},${v}`,`A${M/2},${x} 0 0 0 ${M/2},${v}`,`L${d/2},${_}`,`A${d/2},${x} 0 0 0 ${-d/2},${_}`,"Z"].join(" "),{cssStyles:W}=e,H=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let ft=g.svg(n).path(q,Kt(e,{}));if(H.node()?.appendChild(ft),W)H.attr("style",W)}else H.append("path").attr("d",q).attr("style",o);H.append("ellipse").attr("cx",0).attr("cy",_).attr("rx",d/2).attr("ry",x).attr("style",`fill:none;stroke:${p};stroke-width:1px`),O(e,H);let K=_+(v-_)/2;l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${K-c.height/2-(c.y-(c.top??0))})`);let J=12,tt=t((st,ft,xt)=>Array.from({length:J+1},(Ft,kt)=>{let Ct=Math.PI-kt*Math.PI/J;return{x:st*Math.cos(Ct),y:ft+xt*x*Math.sin(Ct)}}),"arc"),nt=[...tt(d/2,_,-1),...tt(M/2,v,1).reverse()];return e.intersect=function(st){return T.polygon(e,nt,st)},n}t(rx,"bucket");var Hf=20,Yf=8,Vw=80,Kw=8;function ix(r){let{themeVariables:e}=u(),{clusterBkg:i,clusterBorder:s}=e;switch(r){case"flow":return{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:Kw,fill:i,stroke:s,cssClass:"collapsed-group"}}}t(ix,"getCollapsedStyle");async function ox(r,e){let i=ix(e.metadata?.containerType),{fill:s,stroke:o}=i,{nodeStyles:n}=E(e),{shapeSvg:c,bbox:l}=await U(r,e,te(e)),{theme:p,themeVariables:y}=u();It(c,e.colorIndex,p,y.borderColorArray);let d=e.padding??8,x=l.height,b=Math.max(l.width+d*2,Vw,e?.width??0),_=Math.max(x+Yf+Hf+d*2,e?.height??0),v=-b/2,M=-_/2,q=-(Yf+Hf)/2,W=c.select(".label");if(W)if(e.useHtmlLabels??Ye(u()))W.attr("transform",`translate(${-l.width/2}, ${-l.height/2+q})`);else W.attr("transform",`translate(0, ${-l.height/2+q})`);let H;if(e.look==="handDrawn"){let st=g.svg(c),ft=Kt(e,{fill:s,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...s==="none"?{fillWeight:0}:{fillStyle:"solid"}}),xt=st.path(br(v,M,b,_,i.rx),ft);H=c.insert(()=>xt,":first-child"),H.attr("class","basic label-container "+i.cssClass).attr("style",Me(e.cssStyles))}else if(H=c.insert("rect",":first-child"),H.attr("class","basic label-container "+i.cssClass).attr("style",n).attr("rx",i.rx).attr("ry",i.rx).attr("x",v).attr("y",M).attr("width",b).attr("height",_).attr("fill",s).attr("stroke",o),i.strokeWidth!==void 0)H.attr("stroke-width",i.strokeWidth+"px");let K=M+d+x+Yf;c.append("line").attr("class","collapsed-separator").attr("x1",v+8).attr("y1",K).attr("x2",v+b-8).attr("y2",K).attr("stroke",o).attr("stroke-dasharray","3, 3");let J=K+Hf/2,tt=2.5,nt=10;for(let st=-1;st<=1;st++)c.append("circle").attr("class","collapsed-indicator").attr("cx",st*nt).attr("cy",J).attr("r",tt).attr("fill",o);return O(e,H),e.calcIntersect=function(st,ft){return T.rect(st,ft)},e.intersect=function(st){return T.rect(e,st)},c}t(ox,"collapsedGroup");function oi(r,e,i,s){return r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+i/2+")")}t(oi,"insertPolygonShape");var Zw=["right","left","up","down"],rd="point",Qw=t((r)=>{let e=new Set;for(let i of r)switch(i){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(i);break}return e},"expandAndDeduplicateDirections"),Jw=t((r)=>Zw.filter((e)=>r.has(e)).join("|")||rd,"getDirectionKey"),By={"right|left|up|down":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:0,y:0},{x:e,y:0},{x:s/2,y:2*i},{x:s-e,y:0},{x:s,y:0},{x:s,y:-r/3},{x:s+2*i,y:-r/2},{x:s,y:-2*r/3},{x:s,y:-r},{x:s-e,y:-r},{x:s/2,y:-r-2*i},{x:e,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*i,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":t(({height:r,midpoint:e,width:i})=>[{x:e,y:0},{x:i-e,y:0},{x:i,y:-r/2},{x:i-e,y:-r},{x:e,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i,y:0}],"right|left|down"),"right|up|down":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:i,y:-e},{x:i,y:-r+e},{x:0,y:-r}],"right|up|down"),"left|up|down":t(({height:r,midpoint:e,width:i})=>[{x:i,y:0},{x:0,y:-e},{x:0,y:-r+e},{x:i,y:-r}],"left|up|down"),"right|left":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:0},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:0},{x:s,y:-r/2},{x:s-e,y:-r},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:e,y:-i},{x:e,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i},{x:s,y:-i}],"up|down"),"right|up":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:i,y:-e},{x:0,y:-r}],"right|up"),"right|down":t(({height:r,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-r}],"right|down"),"left|up":t(({height:r,midpoint:e,width:i})=>[{x:i,y:0},{x:0,y:-e},{x:i,y:-r}],"left|up"),"left|down":t(({height:r,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-r}],"left|down"),right:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:-i},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:0},{x:s,y:-r/2},{x:s-e,y:-r},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r+i}],"right"),left:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:0},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r},{x:0,y:-r/2}],"left"),up:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:-i},{x:e,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i}],"up"),down:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:e,y:-i},{x:e,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i},{x:s,y:-i}],"down"),[rd]:()=>[{x:0,y:0}]},tS=t((r,e,i,s)=>{let o=Qw(r),n=(i.padding??0)/2,c=e.height+4*n,l=c/2,p=s??e.width+2*l+2*n,y=Jw(o);return(By[y]??By[rd])({height:c,midpoint:l,padding:n,width:p})},"getArrowPoints");async function sx(r,e){let i=e,{shapeSvg:s,bbox:o}=await U(r,i,te(i)),n=i.padding??0,c=o.height+2*n,l=c/2,p=o.width+2*l+n,y=i.width??0,x=i.positioned&&(i.widthInColumns??1)>1&&y>p?y:p,b=tS(i.directions??[],o,i,x),_=oi(s,x,c,b);return _.attr("style",i.style??null),O(i,_),i.intersect=function(v){return T.polygon(i,b,v)},s}t(sx,"block_arrow");async function ax(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:c,label:l}=await U(r,e,te(e)),p=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,d=18,x=12,b=Math.max(c.width+y*2,e.width??0,90),_=Math.max(c.height+y*2+d,e.height??0),v=-_/2,{cssStyles:M}=e,q=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let K=g.svg(n).path(br(-b/2,v,b,_,x),Kt(e,{}));if(q.node()?.appendChild(K),M)q.attr("style",M)}else q.append("rect").attr("x",-b/2).attr("y",v).attr("width",b).attr("height",_).attr("rx",x).attr("ry",x).attr("style",o);q.append("line").attr("x1",-b/2).attr("y1",v+d).attr("x2",b/2).attr("y2",v+d).attr("style",`stroke:${p};stroke-width:1px`);for(let H=0;H<3;H++)q.append("circle").attr("cx",-b/2+12+H*9).attr("cy",v+d/2).attr("r",2.5).attr("style",`fill:${p};stroke:none`);q.append("rect").attr("class","browser-address-bar").attr("x",-b/2+44).attr("y",v+4).attr("width",Math.max(b-56,10)).attr("height",d-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${p};stroke-width:1px;opacity:0.6`),O(e,q);let W=v+d+(_-d)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${W-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(H){return T.rect(e,H)},n}t(ax,"browser");var nh=12;async function nx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?28:o,c=e.look==="neo"?24:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=(e?.width??p.width)+(e.look==="neo"?n*2:n+nh),d=(e?.height??p.height)+(e.look==="neo"?c*2:c),x=0,b=y,_=-d,v=0,M=[{x:x+nh,y:_},{x:b,y:_},{x:b,y:v},{x,y:v},{x,y:_+nh},{x:x+nh,y:_}],q,{cssStyles:W}=e;if(e.look==="handDrawn"){let H=g.svg(l),K=Kt(e,{}),J=ye(M),tt=H.path(J,K);if(q=l.insert(()=>tt,":first-child").attr("transform",`translate(${-y/2}, ${d/2})`),W)q.attr("style",W)}else q=oi(l,y,d,M);if(s)q.attr("style",s);return O(e,q),e.intersect=function(H){return T.polygon(e,M,H)},l}t(nx,"card");function lx(r,e){let{nodeStyles:i}=E(e);e.label="";let s=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,n=Math.max(28,e.width??0),c=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=g.svg(s),p=Kt(e,{});if(e.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let y=ye(c),d=l.path(y,p),x=s.insert(()=>d,":first-child");if(o&&e.look!=="handDrawn")x.selectAll("path").attr("style",o);if(i&&e.look!=="handDrawn")x.selectAll("path").attr("style",i);return e.width=28,e.height=28,e.intersect=function(b){return T.polygon(e,c,b)},s}t(lx,"choice");async function id(r,e,i){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:c,halfPadding:l}=await U(r,e,te(e),{ignoreMinWidth:!0}),p=16,y=i?.padding??l,d=Math.sqrt(c.width**2+c.height**2)/2,x=e.look==="neo"?d+p:d+y,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(n),M=Kt(e,{}),q=v.circle(0,0,x*2,M);b=n.insert(()=>q,":first-child"),b.attr("class","basic label-container").attr("style",Me(_))}else b=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",x).attr("cx",0).attr("cy",0);return O(e,b),e.calcIntersect=function(v,M){let q=v.width/2;return T.circle(v,q,M)},e.intersect=function(v){return a.info("Circle intersect",e,x,v),T.circle(e,x,v)},n}t(id,"circle");async function hx(r,e){let i=e,s=["node",i.cssClasses,i.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:n,halfPadding:c}=await U(r,i,s),l=o.insert("rect",":first-child"),p=i.padding??0,y=i.positioned?i.width??0:n.width+p,d=i.positioned?i.height??0:n.height+p,x=i.positioned?-y/2:-n.width/2-c,b=i.positioned?-d/2:-n.height/2-c;return l.attr("class","basic cluster composite label-container").attr("style",i.style??null).attr("rx",i.rx??null).attr("ry",i.ry??null).attr("x",x).attr("y",b).attr("width",y).attr("height",d),O(i,l),i.intersect=function(_){return T.rect(i,_)},o}t(hx,"composite");async function cx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:c,label:l}=await U(r,e,te(e)),p=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,d=20,x=12,b=Math.max(c.width+y*2,e.width??0,90),_=Math.max(c.height+y*2+d,e.height??0),v=-_/2,{cssStyles:M}=e,q=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let K=g.svg(n).path(br(-b/2,v,b,_,x),Kt(e,{}));if(q.node()?.appendChild(K),M)q.attr("style",M)}else q.append("rect").attr("x",-b/2).attr("y",v).attr("width",b).attr("height",_).attr("rx",x).attr("ry",x).attr("style",o);q.append("text").attr("x",-b/2+12).attr("y",v+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${p}`).text(">_"),O(e,q);let W=v+d+(_-d)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${W-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(H){return T.rect(e,H)},n}t(cx,"consoleWindow");function ux(r){let e=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),s=r*2,o={x:s/2*e,y:s/2*i},n={x:-(s/2)*e,y:s/2*i},c={x:-(s/2)*e,y:-(s/2)*i},l={x:s/2*e,y:-(s/2)*i};return`M ${n.x},${n.y} L ${l.x},${l.y}
|
|
233
|
-
M ${o.x},${o.y} L ${c.x},${c.y}`}t(ux,"createLine");function fx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i,e.label="";let o=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:c}=e,l=g.svg(o),p=Kt(e,{});if(e.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let y=l.circle(0,0,n*2,p),d=ux(n),x=l.path(d,p),b=o.insert(()=>y,":first-child");if(b.insert(()=>x),b.attr("class","outer-path"),c&&e.look!=="handDrawn")b.selectAll("path").attr("style",c);if(s&&e.look!=="handDrawn")b.selectAll("path").attr("style",s);return O(e,b),e.intersect=function(_){return a.info("crossedCircle intersect",e,{radius:n,point:_}),T.circle(e,n,_)},o}t(fx,"crossedCircle");function bi(r,e,i,s=100,o=0,n=180){let c=[],l=o*Math.PI/180,d=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*d,_=r+i*Math.cos(b),v=e+i*Math.sin(b);c.push({x:-_,y:-v})}return c}t(bi,"generateCirclePoints");async function dx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,p=e.look==="neo"?12:e.padding??0,y=n.width+l,d=n.height+p,x=Math.max(5,d*0.1),{cssStyles:b}=e,_=[...bi(y/2,-d/2,x,30,-90,0),{x:-y/2-x,y:x},...bi(y/2+x*2,-x,x,20,-180,-270),...bi(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:-d/2},...bi(y/2,d/2,x,20,0,90)],v=[{x:y/2,y:-d/2-x},{x:-y/2,y:-d/2-x},...bi(y/2,-d/2,x,20,-90,0),{x:-y/2-x,y:-x},...bi(y/2+y*0.1,-x,x,20,-180,-270),...bi(y/2+y*0.1,x,x,20,-90,-180),{x:-y/2-x,y:d/2},...bi(y/2,d/2,x,20,0,90),{x:-y/2,y:d/2+x},{x:y/2,y:d/2+x}],M=g.svg(o),q=Kt(e,{fill:"none"});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let H=ye(_).replace("Z",""),K=M.path(H,q),J=ye(v),tt=M.path(J,{...q}),nt=o.insert("g",":first-child");if(nt.insert(()=>tt,":first-child").attr("stroke-opacity",0),nt.insert(()=>K,":first-child"),nt.attr("class","text"),b&&e.look!=="handDrawn")nt.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")nt.selectAll("path").attr("style",s);return nt.attr("transform",`translate(${x}, 0)`),c.attr("transform",`translate(${-y/2+x-(n.x-(n.left??0))},${-d/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,nt),e.intersect=function(st){return T.polygon(e,v,st)},o}t(dx,"curlyBraceLeft");function Bi(r,e,i,s=100,o=0,n=180){let c=[],l=o*Math.PI/180,d=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*d,_=r+i*Math.cos(b),v=e+i*Math.sin(b);c.push({x:_,y:v})}return c}t(Bi,"generateCirclePoints");async function px(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,p=e.look==="neo"?12:e.padding??0,y=n.width+(e.look==="neo"?l*2:l),d=n.height+(e.look==="neo"?p*2:p),x=Math.max(5,d*0.1),{cssStyles:b}=e,_=[...Bi(y/2,-d/2,x,20,-90,0),{x:y/2+x,y:-x},...Bi(y/2+x*2,-x,x,20,-180,-270),...Bi(y/2+x*2,x,x,20,-90,-180),{x:y/2+x,y:d/2},...Bi(y/2,d/2,x,20,0,90)],v=[{x:-y/2,y:-d/2-x},{x:y/2,y:-d/2-x},...Bi(y/2,-d/2,x,20,-90,0),{x:y/2+x,y:-x},...Bi(y/2+x*2,-x,x,20,-180,-270),...Bi(y/2+x*2,x,x,20,-90,-180),{x:y/2+x,y:d/2},...Bi(y/2,d/2,x,20,0,90),{x:y/2,y:d/2+x},{x:-y/2,y:d/2+x}],M=g.svg(o),q=Kt(e,{fill:"none"});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let H=ye(_).replace("Z",""),K=M.path(H,q),J=ye(v),tt=M.path(J,{...q}),nt=o.insert("g",":first-child");if(nt.insert(()=>tt,":first-child").attr("stroke-opacity",0),nt.insert(()=>K,":first-child"),nt.attr("class","text"),b&&e.look!=="handDrawn")nt.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")nt.selectAll("path").attr("style",s);return nt.attr("transform",`translate(${-x}, 0)`),c.attr("transform",`translate(${-y/2+(e.padding??0)/2-(n.x-(n.left??0))},${-d/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,nt),e.intersect=function(st){return T.polygon(e,v,st)},o}t(px,"curlyBraceRight");function rr(r,e,i,s=100,o=0,n=180){let c=[],l=o*Math.PI/180,d=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*d,_=r+i*Math.cos(b),v=e+i*Math.sin(b);c.push({x:-_,y:-v})}return c}t(rr,"generateCirclePoints");async function gx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,p=e.look==="neo"?12:e.padding??0,y=n.width+(e.look==="neo"?l*2:l),d=n.height+(e.look==="neo"?p*2:p),x=Math.max(5,d*0.1),{cssStyles:b}=e,_=[...rr(y/2,-d/2,x,30,-90,0),{x:-y/2-x,y:x},...rr(y/2+x*2,-x,x,20,-180,-270),...rr(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:-d/2},...rr(y/2,d/2,x,20,0,90)],v=[...rr(-y/2+x+x/2,-d/2,x,20,-90,-180),{x:y/2-x/2,y:x},...rr(-y/2-x/2,-x,x,20,0,90),...rr(-y/2-x/2,x,x,20,-90,0),{x:y/2-x/2,y:-x},...rr(-y/2+x+x/2,d/2,x,30,-180,-270)],M=[{x:y/2,y:-d/2-x},{x:-y/2,y:-d/2-x},...rr(y/2,-d/2,x,20,-90,0),{x:-y/2-x,y:-x},...rr(y/2+x*2,-x,x,20,-180,-270),...rr(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:d/2},...rr(y/2,d/2,x,20,0,90),{x:-y/2,y:d/2+x},{x:y/2-x-x/2,y:d/2+x},...rr(-y/2+x+x/2,-d/2,x,20,-90,-180),{x:y/2-x/2,y:x},...rr(-y/2-x/2,-x,x,20,0,90),...rr(-y/2-x/2,x,x,20,-90,0),{x:y/2-x/2,y:-x},...rr(-y/2+x+x/2,d/2,x,30,-180,-270)],q=g.svg(o),W=Kt(e,{fill:"none"});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let K=ye(_).replace("Z",""),J=q.path(K,W),nt=ye(v).replace("Z",""),st=q.path(nt,W),ft=ye(M),xt=q.path(ft,{...W}),Ft=o.insert("g",":first-child");if(Ft.insert(()=>xt,":first-child").attr("stroke-opacity",0),Ft.insert(()=>J,":first-child"),Ft.insert(()=>st,":first-child"),Ft.attr("class","text"),b&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",s);return Ft.attr("transform",`translate(${x-x/4}, 0)`),c.attr("transform",`translate(${-y/2+(e.padding??0)/2-(n.x-(n.left??0))},${-d/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,Ft),e.intersect=function(kt){return T.polygon(e,M,kt)},o}t(gx,"curlyBraces");async function mx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o,l=20,p=5,{shapeSvg:y,bbox:d}=await U(r,e,te(e)),x=Math.max(p,d.height+c*2,e?.height??0),b=x/2,_=b-Math.sqrt(Math.max(0,b**2-(d.height/2)**2)),v=Math.max(x/4,_),M=Math.max(l,d.width+n*2+v*2,(d.width+n*2)*1.25,e?.width??0),{cssStyles:q}=e,W=g.svg(y),H=Kt(e,{});if(e.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let K=M,J=x,tt=K-b,nt=J/4,st=[{x:tt,y:0},{x:nt,y:0},{x:0,y:J/2},{x:nt,y:J},{x:tt,y:J},...ri(-tt,-J/2,b,50,270,90)],ft=ye(st),xt=W.path(ft,H),Ft=y.insert(()=>xt,":first-child");if(Ft.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")Ft.selectChildren("path").attr("style",q);if(s&&e.look!=="handDrawn")Ft.selectChildren("path").attr("style",s);return Ft.attr("transform",`translate(${-M/2}, ${-x/2})`),O(e,Ft),e.intersect=function(kt){return T.polygon(e,st,kt)},y}t(mx,"curvedTrapezoid");async function yx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.padding??20,p=Math.max(n.width+l*2,e.width??0,100),y=Math.min(Math.max(p*0.23,16),56),d=y*0.27,x=Math.max(n.height+l*2,e.height?e.height-(2*y-d):0),b=Math.min(p*0.177,x*0.45),_=x+2*y-d,v=-_/2,M=v+2*y-d,q=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:W}=e;if(e.look==="handDrawn"){let ft=g.svg(o),xt=Kt(e,{}),Ft=ft.path(br(-p/2,M,p,x,b),xt),kt=ft.circle(0,v+y,y*2,xt);if(q.insert(()=>kt,":first-child"),q.insert(()=>Ft,":first-child"),W)q.attr("style",W)}else q.append("rect").attr("x",-p/2).attr("y",M).attr("width",p).attr("height",x).attr("rx",b).attr("ry",b).attr("style",s),q.append("circle").attr("cx",0).attr("cy",v+y).attr("r",y).attr("style",s);O(e,q);let H=M+x/2;c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${H-n.height/2-(n.y-(n.top??0))})`);let K=v+y,J=Math.asin(Math.min(1,(M-K)/y))*180/Math.PI,tt=24,st=[...ri(0,-K,y,tt,180+J,-J),...ri(-(-p/2+b),-(M+b),b,12,90,0),...ri(-(-p/2+b),-(_/2-b),b,12,360,270),...ri(-(p/2-b),-(_/2-b),b,12,270,180),...ri(-(p/2-b),-(M+b),b,12,180,90)];return e.intersect=function(ft){return T.polygon(e,st,ft)},o}t(yx,"person");var eS=t((r,e,i,s,o,n)=>[`M${r},${e+n}`,`a${o},${n} 0,0,0 ${i},0`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createCylinderPathD"),rS=t((r,e,i,s,o,n)=>[`M${r},${e+n}`,`M${r+i},${e+n}`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createOuterCylinderPathD"),iS=t((r,e,i,s,o,n)=>[`M${r-i/2},${-s/2}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),vy=8,Ly=8;async function xx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?24:o,c=e.look==="neo"?24:o,l=e.width??0;if(e.width){if(e.width=e.width-c,e.width<Ly)e.width=Ly}if(e.height){let H=l/2/(2.5+l/50);if(e.height=e.height-n-H*3,e.height<vy)e.height=vy}let{shapeSvg:p,bbox:y,label:d}=await U(r,e,te(e)),x=Math.max(e.width??0,y.width)+c,b=x/2,_=b/(2.5+x/50),v=Math.max(e.height??0,y.height)+n+_,M,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=g.svg(p),H=rS(0,0,x,v,b,_),K=iS(0,_,x,v,b,_),J=Kt(e,{}),tt=W.path(H,J),nt=W.path(K,Kt(e,{fill:"none"}));if(M=p.insert(()=>nt,":first-child"),M=p.insert(()=>tt,":first-child"),M.attr("class","basic label-container"),q)M.attr("style",q)}else{let W=eS(0,0,x,v,b,_);M=p.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",Me(q)).attr("style",s)}return M.attr("label-offset-y",_),M.attr("transform",`translate(${-x/2}, ${-(v/2+_)})`),O(e,M),d.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(W){let H=T.rect(e,W),K=H.x-(e.x??0);if(b!=0&&(Math.abs(K)<(e.width??0)/2||Math.abs(K)==(e.width??0)/2&&Math.abs(H.y-(e.y??0))>(e.height??0)/2-_)){let J=_*_*(1-K*K/(b*b));if(J>0)J=Math.sqrt(J);if(J=_-J,W.y-(e.y??0)>0)J=-J;H.y+=J}return H},p}t(xx,"cylinder");async function gs(r,e,i){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:c}=await U(r,e,te(e)),l=Math.max(c.width+i.labelPaddingX*2,e?.width||0),p=Math.max(c.height+i.labelPaddingY*2,e?.height||0),y=-l/2,d=-p/2,x,{rx:b,ry:_}=e,{cssStyles:v}=e;if(i?.rx&&i.ry)b=i.rx,_=i.ry;if(e.look==="handDrawn"){let M=g.svg(n),q=Kt(e,{}),W=b||_?M.path(br(y,d,l,p,b||0),q):M.rectangle(y,d,l,p,q);x=n.insert(()=>W,":first-child"),x.attr("class","basic label-container").attr("style",Me(v))}else x=n.insert("rect",":first-child"),x.attr("class","basic label-container").attr("style",o).attr("rx",Me(b)).attr("ry",Me(_)).attr("x",y).attr("y",d).attr("width",l).attr("height",p);return O(e,x,e.look==="handDrawn"?void 0:{width:l,height:p}),e.calcIntersect=function(M,q){return T.rect(M,q)},e.intersect=function(M){return T.rect(e,M)},n}t(gs,"drawRect");async function Cx(r,e){let{cssClasses:i,labelPaddingX:s,labelPaddingY:o,padding:n,width:c,height:l}=e,p={rx:0,ry:0,classes:i??"",labelPaddingX:s??(n??0)*2,labelPaddingY:o??n??0},y=await gs(r,e,p);if(e.look==="handDrawn"){let _=g.svg(y),v=Kt(e,{}),M=y.select(".basic.label-container > path:nth-child(2)"),q=M.node();if(!q)return y;let W=null;if(q instanceof SVGGraphicsElement)W=q.getBBox();else return y;return y.insert(()=>_.line(W.x,W.y,W.x+W.width,W.y,v),".basic.label-container g.label"),y.insert(()=>_.line(W.x,W.y+W.height,W.x+W.width,W.y+W.height,v),".basic.label-container g.label"),M.remove(),y}let d=y.select(".basic.label-container"),x=(Number(d.attr("width"))||c)??0,b=(Number(d.attr("height"))||l)??0;if(x>0&&b>0)d.attr("stroke-dasharray",`${x} ${b}`);return y}t(Cx,"datastore");async function bx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?16:e.padding??0,{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=l.width+o,d=l.height+n,x=d*0.2,b=-y/2,_=-d/2-x/2,{cssStyles:v}=e,M=g.svg(c),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:b,y:_+x},{x:-b,y:_+x},{x:-b,y:-_},{x:b,y:-_},{x:b,y:_},{x:-b,y:_},{x:-b,y:_+x}],H=M.polygon(W.map((J)=>[J.x,J.y]),q),K=c.insert(()=>H,":first-child");if(K.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")K.selectAll("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return p.attr("transform",`translate(${b+(e.padding??0)/2-(l.x-(l.left??0))}, ${_+x+(e.padding??0)/2-(l.y-(l.top??0))})`),O(e,K),e.intersect=function(J){return T.rect(e,J)},c}t(bx,"dividedRectangle");async function kx(r,e){let{labelStyles:i,nodeStyles:s}=E(e),o=e.look==="neo"?12:5;e.labelStyle=i;let n=e.padding??0,c=e.look==="neo"?16:n,{shapeSvg:l,bbox:p}=await U(r,e,te(e),{ignoreMinWidth:!0}),y=Math.sqrt(p.width**2+p.height**2)/2,d=(e?.width?e?.width/2:y)+(c??0),x=d+o,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{roughness:0.2,strokeWidth:2.5}),q=Kt(e,{roughness:0.2,strokeWidth:1.5}),W=v.circle(0,0,x*2,M),H=v.circle(0,0,d*2,q);b=l.insert("g",":first-child"),b.attr("class",Me(e.cssClasses)).attr("style",Me(_)),b.node()?.appendChild(W),b.node()?.appendChild(H)}else{b=l.insert("g",":first-child");let v=b.insert("circle",":first-child"),M=b.insert("circle");b.attr("class","basic label-container").attr("style",s),v.attr("class","outer-circle").attr("style",s).attr("r",x).attr("cx",0).attr("cy",0),M.attr("class","inner-circle").attr("style",s).attr("r",d).attr("cx",0).attr("cy",0)}return O(e,b),e.intersect=function(v){return a.info("DoubleCircle intersect",e,x,v),T.circle(e,x,v)},l}t(kx,"doublecircle");async function wx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:c}=await U(r,e,te(e)),{theme:l,themeVariables:p}=u();It(o,e.colorIndex,l,p.borderColorArray);let y=c??10,d=n.width/2+y*2,x=n.height/2+y*2,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(o),M=Kt(e,{}),q=v.ellipse(0,0,d*2,x*2,M);if(b=o.insert(()=>q,":first-child"),b.attr("class","basic label-container"),_)b.attr("style",_)}else b=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",s).attr("rx",d).attr("ry",x).attr("cx",0).attr("cy",0);return e.width=d*2,e.height=x*2,O(e,b),e.calcIntersect=function(v,M){let q=v.width/2,W=v.height/2;return T.ellipse(v,q,W,M)},e.intersect=function(v){return T.ellipse(e,d,x,v)},o}t(wx,"usecaseEllipse");function Sx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.label="",e.labelStyle=s;let n=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),c=7,{cssStyles:l}=e,p=g.svg(n),{nodeBorder:y}=i,d=Kt(e,{fillStyle:"solid"});if(e.look!=="handDrawn")d.roughness=0;let x=p.circle(0,0,c*2,d),b=n.insert(()=>x,":first-child");if(b.selectAll("path").attr("style",`fill: ${y} !important;`),l&&l.length>0&&e.look!=="handDrawn")b.selectAll("path").attr("style",l);if(o&&e.look!=="handDrawn")b.selectAll("path").attr("style",o);return O(e,b),e.intersect=function(_){return a.info("filledCircle intersect",e,{radius:c,point:_}),T.circle(e,c,_)},n}t(Sx,"filledCircle");var Fy=10,Ay=10;async function Tx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o*2:o;if(e.width||e.height){if(e.height=e?.height??0,e.height<Fy)e.height=Fy;if(e.width=(e?.width??0)-n-n/2,e.width<Ay)e.width=Ay}let{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=(e?.width?e?.width:l.width)+(n??0),d=e?.height?e?.height:y+l.height,x=d,b=[{x:0,y:-d},{x,y:-d},{x:x/2,y:0}],{cssStyles:_}=e,v=g.svg(c),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=ye(b),W=v.path(q,M),H=c.insert(()=>W,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");if(_&&e.look!=="handDrawn")H.selectChildren("path").attr("style",_);if(s&&e.look!=="handDrawn")H.selectChildren("path").attr("style",s);return e.width=y,e.height=d,O(e,H),p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-d/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(K){return a.info("Triangle intersect",e,b,K),T.polygon(e,b,K)},c}t(Tx,"flippedTriangle");async function _x(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.padding??12,p=Math.max(n.width+l*2,e.width??0,90),y=n.height+l*2,d=Math.max(Math.min(y*0.16,14),8),x=Math.max(y+d,e.height??0),b=x-d,_=Math.max(p*0.38,28),v=-x/2,M=[{x:-p/2,y:v},{x:-p/2+_,y:v},{x:-p/2+_,y:v+d},{x:p/2,y:v+d},{x:p/2,y:x/2},{x:-p/2,y:x/2}],q=[`M${M[0].x},${M[0].y}`,...M.slice(1).map((J)=>`L${J.x},${J.y}`),"Z"].join(" "),{cssStyles:W}=e,H;if(e.look==="handDrawn"){let tt=g.svg(o).path(q,Kt(e,{}));if(H=o.insert(()=>tt,":first-child").attr("class","basic label-container"),W)H.attr("style",W)}else H=o.insert("path",":first-child").attr("d",q).attr("class","basic label-container").attr("style",s);if(e.look==="handDrawn")O(e,H);else O(e,H,{width:p,height:x});let K=v+d+b/2;return c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${K-n.height/2-(n.y-(n.top??0))})`),e.intersect=function(J){return T.polygon(e,M,J)},o}t(_x,"folder");function Bx(r,e,{dir:i,config:{state:s,themeVariables:o}}){let{nodeStyles:n}=E(e);e.label="";let c=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,p=Math.max(70,e?.width??0),y=Math.max(10,e?.height??0);if(i==="LR"||i==="RL")p=Math.max(10,e?.width??0),y=Math.max(70,e?.height??0);let d=-1*p/2,x=-1*y/2,b=g.svg(c),_=Kt(e,{stroke:o.lineColor,fill:o.lineColor});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=b.rectangle(d,x,p,y,_),M=c.insert(()=>v,":first-child");if(l&&e.look!=="handDrawn")M.selectAll("path").attr("style",l);if(n&&e.look!=="handDrawn")M.selectAll("path").attr("style",n);O(e,M);let q=s?.padding??0;if(e.width&&e.height)e.width+=q/2||0,e.height+=q/2||0;return e.intersect=function(W){return T.rect(e,W)},c}t(Bx,"forkJoin");async function vx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=15,n=10,c=e.look==="neo"?16:e.padding??0,l=e.look==="neo"?12:e.padding??0;if(e.width||e.height){if(e.height=(e?.height??0)-l*2,e.height<n)e.height=n;if(e.width=(e?.width??0)-c*2,e.width<o)e.width=o}let{shapeSvg:p,bbox:y}=await U(r,e,te(e)),d=(e?.height?e?.height:Math.max(n,y.height))+l*2,x=d/2,b=x-Math.sqrt(Math.max(0,x**2-(y.height/2)**2)),_=(e?.width?e?.width:Math.max(o,y.width)+b*2)+c*2,{cssStyles:v}=e,M=g.svg(p),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:-_/2,y:-d/2},{x:_/2-x,y:-d/2},...ri(-_/2+x,0,x,50,90,270),{x:_/2-x,y:d/2},{x:-_/2,y:d/2}],H=ye(W),K=M.path(H,q),J=p.insert(()=>K,":first-child");if(J.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")J.selectChildren("path").attr("style",v);if(s&&e.look!=="handDrawn")J.selectChildren("path").attr("style",s);return O(e,J),e.intersect=function(tt){return a.info("Pill intersect",e,{radius:x,point:tt}),T.polygon(e,W,tt)},p}t(vx,"halfRoundedRectangle");var oS=t((r,e,i,s,o)=>[`M${r+o},${e}`,`L${r+i-o},${e}`,`L${r+i},${e-s/2}`,`L${r+i-o},${e-s}`,`L${r+o},${e-s}`,`L${r},${e-s/2}`,"Z"].join(" "),"createHexagonPathD");async function Lx(r,e){let{labelStyles:i,nodeStyles:s}=E(e),o=e.look==="neo"?3.5:4;e.labelStyle=i;let n=e.padding??0,c=70,l=32,p=e.look==="neo"?c:n,y=e.look==="neo"?l:n;if(e.width||e.height){let K=(e.height??0)/o;e.width=(e?.width??0)-2*K-y,e.height=(e.height??0)-p}let{shapeSvg:d,bbox:x}=await U(r,e,te(e)),b=(e?.height?e?.height:x.height)+p,_=b/o,v=(e?.width?e?.width:x.width)+2*_+y,M=[{x:_,y:0},{x:v-_,y:0},{x:v,y:-b/2},{x:v-_,y:-b},{x:_,y:-b},{x:0,y:-b/2}],q,{cssStyles:W}=e;if(e.look==="handDrawn"){let H=g.svg(d),K=Kt(e,{}),J=oS(0,0,v,b,_),tt=H.path(J,K);if(q=d.insert(()=>tt,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),W)q.attr("style",W)}else q=oi(d,v,b,M);if(s)q.attr("style",s);return e.width=v,e.height=b,O(e,q),e.intersect=function(H){return T.polygon(e,M,H)},d}t(Lx,"hexagon");async function Fx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.label="",e.labelStyle=i;let{shapeSvg:o}=await U(r,e,te(e)),n=Math.max(30,e?.width??0),c=Math.max(30,e?.height??0),{cssStyles:l}=e,p=g.svg(o),y=Kt(e,{});if(e.look!=="handDrawn")y.roughness=0,y.fillStyle="solid";let d=[{x:0,y:0},{x:n,y:0},{x:0,y:c},{x:n,y:c}],x=ye(d),b=p.path(x,y),_=o.insert(()=>b,":first-child");if(_.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn")_.selectChildren("path").attr("style",l);if(s&&e.look!=="handDrawn")_.selectChildren("path").attr("style",s);return _.attr("transform",`translate(${-n/2}, ${-c/2})`),O(e,_),e.intersect=function(v){return a.info("Pill intersect",e,{points:d}),T.polygon(e,d,v)},o}t(Fx,"hourglass");async function Ax(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),p=s?.wrappingWidth;e.width=Math.max(l,p??0);let{shapeSvg:y,bbox:d,label:x}=await U(r,e,"icon-shape default"),b=e.pos==="t",_=l,v=l,{nodeBorder:M}=i,{stylesMap:q}=Qr(e),W=-v/2,H=-_/2,K=e.label?8:0,J=g.svg(y),tt=Kt(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn")tt.roughness=0,tt.fillStyle="solid";let nt=J.rectangle(W,H,v,_,tt),st=Math.max(v,d.width),ft=_+d.height+K,xt=J.rectangle(-st/2,-ft/2,st,ft,{...tt,fill:"transparent",stroke:"none"}),Ft=y.insert(()=>nt,":first-child"),kt=y.insert(()=>xt);if(e.icon){let Ct=y.append("g");Ct.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let rt=Ct.node().getBBox(),{width:ot,height:gt,x:et,y:wt}=rt;Ct.attr("transform",`translate(${-ot/2-et},${b?d.height/2+K/2-gt/2-wt:-d.height/2-K/2-gt/2-wt})`),Ct.attr("style",`color: ${q.get("stroke")??M};`)}return x.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${b?-ft/2:ft/2-d.height})`),Ft.attr("transform",`translate(0,${b?d.height/2+K/2:-d.height/2-K/2})`),O(e,kt),e.intersect=function(Ct){if(a.info("iconSquare intersect",e,Ct),!e.label)return T.rect(e,Ct);let rt=e.x??0,ot=e.y??0,gt=e.height??0,et=[];if(b)et=[{x:rt-d.width/2,y:ot-gt/2},{x:rt+d.width/2,y:ot-gt/2},{x:rt+d.width/2,y:ot-gt/2+d.height+K},{x:rt+v/2,y:ot-gt/2+d.height+K},{x:rt+v/2,y:ot+gt/2},{x:rt-v/2,y:ot+gt/2},{x:rt-v/2,y:ot-gt/2+d.height+K},{x:rt-d.width/2,y:ot-gt/2+d.height+K}];else et=[{x:rt-v/2,y:ot-gt/2},{x:rt+v/2,y:ot-gt/2},{x:rt+v/2,y:ot-gt/2+_},{x:rt+d.width/2,y:ot-gt/2+_},{x:rt+d.width/2/2,y:ot+gt/2},{x:rt-d.width/2,y:ot+gt/2},{x:rt-d.width/2,y:ot-gt/2+_},{x:rt-v/2,y:ot-gt/2+_}];return T.polygon(e,et,Ct)},y}t(Ax,"icon");async function Mx(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),p=s?.wrappingWidth;e.width=Math.max(l,p??0);let{shapeSvg:y,bbox:d,label:x}=await U(r,e,"icon-shape default"),b=20,_=e.label?8:0,v=e.pos==="t",{nodeBorder:M,mainBkg:q}=i,{stylesMap:W}=Qr(e),H=g.svg(y),K=Kt(e,{});if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let J=W.get("fill");K.stroke=J??q;let tt=y.append("g");if(e.icon)tt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let nt=tt.node().getBBox(),{width:st,height:ft,x:xt,y:Ft}=nt,kt=Math.max(st,ft)*Math.SQRT2+b*2,Ct=H.circle(0,0,kt,K),rt=Math.max(kt,d.width),ot=kt+d.height+_,gt=H.rectangle(-rt/2,-ot/2,rt,ot,{...K,fill:"transparent",stroke:"none"}),et=y.insert(()=>Ct,":first-child"),wt=y.insert(()=>gt);return tt.attr("transform",`translate(${-st/2-xt},${v?d.height/2+_/2-ft/2-Ft:-d.height/2-_/2-ft/2-Ft})`),tt.attr("style",`color: ${W.get("stroke")??M};`),x.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${v?-ot/2:ot/2-d.height})`),et.attr("transform",`translate(0,${v?d.height/2+_/2:-d.height/2-_/2})`),O(e,wt),e.intersect=function(At){return a.info("iconSquare intersect",e,At),T.rect(e,At)},y}t(Mx,"iconCircle");async function Ex(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),p=s?.wrappingWidth;e.width=Math.max(l,p??0);let{shapeSvg:y,bbox:d,halfPadding:x,label:b}=await U(r,e,"icon-shape default"),_=e.pos==="t",v=l+x*2,M=l+x*2,{nodeBorder:q,mainBkg:W}=i,{stylesMap:H}=Qr(e),K=-M/2,J=-v/2,tt=e.label?8:0,nt=g.svg(y),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let ft=H.get("fill");st.stroke=ft??W;let xt=nt.path(br(K,J,M,v,5),st),Ft=Math.max(M,d.width),kt=v+d.height+tt,Ct=nt.rectangle(-Ft/2,-kt/2,Ft,kt,{...st,fill:"transparent",stroke:"none"}),rt=y.insert(()=>xt,":first-child").attr("class","icon-shape2"),ot=y.insert(()=>Ct);if(e.icon){let gt=y.append("g");gt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=gt.node().getBBox(),{width:wt,height:At,x:Vt,y:Xt}=et;gt.attr("transform",`translate(${-wt/2-Vt},${_?d.height/2+tt/2-At/2-Xt:-d.height/2-tt/2-At/2-Xt})`),gt.attr("style",`color: ${H.get("stroke")??q};`)}return b.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${_?-kt/2:kt/2-d.height})`),rt.attr("transform",`translate(0,${_?d.height/2+tt/2:-d.height/2-tt/2})`),O(e,ot),e.intersect=function(gt){if(a.info("iconSquare intersect",e,gt),!e.label)return T.rect(e,gt);let et=e.x??0,wt=e.y??0,At=e.height??0,Vt=[];if(_)Vt=[{x:et-d.width/2,y:wt-At/2},{x:et+d.width/2,y:wt-At/2},{x:et+d.width/2,y:wt-At/2+d.height+tt},{x:et+M/2,y:wt-At/2+d.height+tt},{x:et+M/2,y:wt+At/2},{x:et-M/2,y:wt+At/2},{x:et-M/2,y:wt-At/2+d.height+tt},{x:et-d.width/2,y:wt-At/2+d.height+tt}];else Vt=[{x:et-M/2,y:wt-At/2},{x:et+M/2,y:wt-At/2},{x:et+M/2,y:wt-At/2+v},{x:et+d.width/2,y:wt-At/2+v},{x:et+d.width/2/2,y:wt+At/2},{x:et-d.width/2,y:wt+At/2},{x:et-d.width/2,y:wt-At/2+v},{x:et-M/2,y:wt-At/2+v}];return T.polygon(e,Vt,gt)},y}t(Ex,"iconRounded");async function Ox(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),p=s?.wrappingWidth;e.width=Math.max(l,p??0);let{shapeSvg:y,bbox:d,halfPadding:x,label:b}=await U(r,e,"icon-shape default"),_=e.pos==="t",v=l+x*2,M=l+x*2,{nodeBorder:q,mainBkg:W}=i,{stylesMap:H}=Qr(e),K=-M/2,J=-v/2,tt=e.label?8:0,nt=g.svg(y),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let ft=H.get("fill");st.stroke=ft??W;let xt=nt.path(br(K,J,M,v,0.1),st),Ft=Math.max(M,d.width),kt=v+d.height+tt,Ct=nt.rectangle(-Ft/2,-kt/2,Ft,kt,{...st,fill:"transparent",stroke:"none"}),rt=y.insert(()=>xt,":first-child"),ot=y.insert(()=>Ct);if(e.icon){let gt=y.append("g");gt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=gt.node().getBBox(),{width:wt,height:At,x:Vt,y:Xt}=et;gt.attr("transform",`translate(${-wt/2-Vt},${_?d.height/2+tt/2-At/2-Xt:-d.height/2-tt/2-At/2-Xt})`),gt.attr("style",`color: ${H.get("stroke")??q};`)}return b.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${_?-kt/2:kt/2-d.height})`),rt.attr("transform",`translate(0,${_?d.height/2+tt/2:-d.height/2-tt/2})`),O(e,ot),e.intersect=function(gt){if(a.info("iconSquare intersect",e,gt),!e.label)return T.rect(e,gt);let et=e.x??0,wt=e.y??0,At=e.height??0,Vt=[];if(_)Vt=[{x:et-d.width/2,y:wt-At/2},{x:et+d.width/2,y:wt-At/2},{x:et+d.width/2,y:wt-At/2+d.height+tt},{x:et+M/2,y:wt-At/2+d.height+tt},{x:et+M/2,y:wt+At/2},{x:et-M/2,y:wt+At/2},{x:et-M/2,y:wt-At/2+d.height+tt},{x:et-d.width/2,y:wt-At/2+d.height+tt}];else Vt=[{x:et-M/2,y:wt-At/2},{x:et+M/2,y:wt-At/2},{x:et+M/2,y:wt-At/2+v},{x:et+d.width/2,y:wt-At/2+v},{x:et+d.width/2/2,y:wt+At/2},{x:et-d.width/2,y:wt+At/2},{x:et-d.width/2,y:wt-At/2+v},{x:et-M/2,y:wt-At/2+v}];return T.polygon(e,Vt,gt)},y}t(Ox,"iconSquare");async function Ix(r,e,{config:{flowchart:i}}){let s=new Image;s.src=e?.img??"",await s.decode();let o=Number(s.naturalWidth.toString().replace("px","")),n=Number(s.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/n;let{labelStyles:c}=E(e);e.labelStyle=c;let l=i?.wrappingWidth;e.defaultWidth=i?.wrappingWidth;let p=Math.max(e.label?l??0:0,e?.assetWidth??o),y=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:p:p,d=e.constraint==="on"?y/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(y,l??0);let{shapeSvg:x,bbox:b,label:_}=await U(r,e,"image-shape default"),v=e.pos==="t",M=-y/2,q=-d/2,W=e.label?8:0,H=g.svg(x),K=Kt(e,{});if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let J=H.rectangle(M,q,y,d,K),tt=Math.max(y,b.width),nt=d+b.height+W,st=H.rectangle(-tt/2,-nt/2,tt,nt,{...K,fill:"none",stroke:"none"}),ft=x.insert(()=>J,":first-child"),xt=x.insert(()=>st);if(e.img){let Ft=x.append("image");Ft.attr("href",e.img),Ft.attr("width",y),Ft.attr("height",d),Ft.attr("preserveAspectRatio","none"),Ft.attr("transform",`translate(${-y/2},${v?nt/2-d:-nt/2})`)}return _.attr("transform",`translate(${-b.width/2-(b.x-(b.left??0))},${v?-d/2-b.height/2-W/2:d/2-b.height/2+W/2})`),ft.attr("transform",`translate(0,${v?b.height/2+W/2:-b.height/2-W/2})`),O(e,xt),e.intersect=function(Ft){if(a.info("iconSquare intersect",e,Ft),!e.label)return T.rect(e,Ft);let kt=e.x??0,Ct=e.y??0,rt=e.height??0,ot=[];if(v)ot=[{x:kt-b.width/2,y:Ct-rt/2},{x:kt+b.width/2,y:Ct-rt/2},{x:kt+b.width/2,y:Ct-rt/2+b.height+W},{x:kt+y/2,y:Ct-rt/2+b.height+W},{x:kt+y/2,y:Ct+rt/2},{x:kt-y/2,y:Ct+rt/2},{x:kt-y/2,y:Ct-rt/2+b.height+W},{x:kt-b.width/2,y:Ct-rt/2+b.height+W}];else ot=[{x:kt-y/2,y:Ct-rt/2},{x:kt+y/2,y:Ct-rt/2},{x:kt+y/2,y:Ct-rt/2+d},{x:kt+b.width/2,y:Ct-rt/2+d},{x:kt+b.width/2/2,y:Ct+rt/2},{x:kt-b.width/2,y:Ct+rt/2},{x:kt-b.width/2,y:Ct-rt/2+d},{x:kt-y/2,y:Ct-rt/2+d}];return T.polygon(e,ot,Ft)},x}t(Ix,"imageSquare");async function $x(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,c=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=Math.max(p.height+n*2,e.height??0),d=Math.max(p.width+c*2,(e.width??0)-y),x=[{x:0,y:0},{x:d,y:0},{x:d+3*y/6,y:-y},{x:-3*y/6,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-d/2}, ${y/2})`),_)b.attr("style",_)}else b=oi(l,d,y,x);if(s)b.attr("style",s);return e.width=d,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t($x,"inv_trapezoid");async function Dx(r,e){let{shapeSvg:i,bbox:s,label:o}=await U(r,e,"label"),n=i.insert("rect",":first-child"),c=0.1,l=0.1;return n.attr("width",0.1).attr("height",0.1),i.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),O(e,n),e.intersect=function(p){return T.rect(e,p)},i}t(Dx,"labelRect");async function Px(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,c=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=Math.max(p.height+n,e.height??0),d=Math.max(p.width+c,(e.width??0)-y),x=[{x:0,y:0},{x:d+3*y/6,y:0},{x:d,y:-y},{x:-(3*y)/6,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-d/2}, ${y/2})`),_)b.attr("style",_)}else b=oi(l,d,y,x);if(s)b.attr("style",s);return e.width=d,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(Px,"lean_left");async function Rx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,c=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=Math.max(p.height+n,e.height??0),d=Math.max(p.width+c,(e.width??0)-y),x=[{x:-3*y/6,y:0},{x:d,y:0},{x:d+3*y/6,y:-y},{x:0,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-d/2}, ${y/2})`),_)b.attr("style",_)}else b=oi(l,d,y,x);if(s)b.attr("style",s);return e.width=d,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(Rx,"lean_right");function qx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.label="",e.labelStyle=i;let o=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,c=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),p=7,y=[{x:c,y:0},{x:0,y:l+p/2},{x:c-2*p,y:l+p/2},{x:0,y:2*l},{x:c,y:l-p/2},{x:2*p,y:l-p/2}],d=g.svg(o),x=Kt(e,{});if(e.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let b=ye(y),_=d.path(b,x),v=o.insert(()=>_,":first-child");if(v.attr("class","outer-path"),n&&e.look!=="handDrawn")v.selectAll("path").attr("style",n);if(s&&e.look!=="handDrawn")v.selectAll("path").attr("style",s);return v.attr("transform",`translate(-${c/2},${-l})`),O(e,v),e.intersect=function(M){return a.info("lightningBolt intersect",e,M),T.polygon(e,y,M)},o}t(qx,"lightningBolt");var sS=t((r,e,i,s,o,n,c)=>[`M${r},${e+n}`,`a${o},${n} 0,0,0 ${i},0`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${e+n+c}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),aS=t((r,e,i,s,o,n,c)=>[`M${r},${e+n}`,`M${r+i},${e+n}`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${e+n+c}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),nS=t((r,e,i,s,o,n)=>[`M${r-i/2},${-s/2}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),My=10,Ey=10;async function Nx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?24:o;if(e.width||e.height){let W=e.width??0;if(e.width=(e.width??0)-n,e.width<Ey)e.width=Ey;let K=W/2/(2.5+W/50);if(e.height=(e.height??0)-c-K*3,e.height<My)e.height=My}let{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=(e?.width?e?.width:p.width)+n*2,x=d/2,b=x/(2.5+d/50),_=(e?.height?e?.height:p.height)+b+c*2,v=_*0.1,M,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=g.svg(l),H=aS(0,0,d,_,x,b,v),K=nS(0,b,d,_,x,b),J=Kt(e,{}),tt=W.path(H,J),nt=W.path(K,J);if(l.insert(()=>nt,":first-child").attr("class","line"),M=l.insert(()=>tt,":first-child"),M.attr("class","basic label-container"),q)M.attr("style",q)}else{let W=sS(0,0,d,_,x,b,v);M=l.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",Me(q)).attr("style",s)}return M.attr("label-offset-y",b),M.attr("transform",`translate(${-d/2}, ${-(_/2+b)})`),O(e,M),y.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+b-(p.y-(p.top??0))})`),e.intersect=function(W){let H=T.rect(e,W),K=H.x-(e.x??0);if(x!=0&&(Math.abs(K)<(e.width??0)/2||Math.abs(K)==(e.width??0)/2&&Math.abs(H.y-(e.y??0))>(e.height??0)/2-b)){let J=b*b*(1-K*K/(x*x));if(J>0)J=Math.sqrt(J);if(J=b-J,W.y-(e.y??0)>0)J=-J;H.y+=J}return H},l}t(Nx,"linedCylinder");async function Wx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o;if(e.width||e.height){let J=e.width;if(e.width=(J??0)*10/11-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-c*2,e.height<10)e.height=10}let{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=(e?.width?e?.width:p.width)+(n??0)*2,x=(e?.height?e?.height:p.height)+(c??0)*2,b=e.look==="neo"?x/4:x/8,_=x+b,{cssStyles:v}=e,M=g.svg(l),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:-d/2-d/2*0.1,y:-_/2},{x:-d/2-d/2*0.1,y:_/2},...Ui(-d/2-d/2*0.1,_/2,d/2+d/2*0.1,_/2,b,0.8),{x:d/2+d/2*0.1,y:-_/2},{x:-d/2-d/2*0.1,y:-_/2},{x:-d/2,y:-_/2},{x:-d/2,y:_/2*1.1},{x:-d/2,y:-_/2}],H=M.polygon(W.map((J)=>[J.x,J.y]),q),K=l.insert(()=>H,":first-child");if(K.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")K.selectAll("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return K.attr("transform",`translate(0,${-b/2})`),y.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*0.1/2-(p.x-(p.left??0))},${-x/2+(e.padding??0)-b-(p.y-(p.top??0))})`),O(e,K),e.intersect=function(J){return T.polygon(e,W,J)},l}t(Wx,"linedWaveEdgedRect");var lS=56,Uf=72,Oy=8,Iy=2,hS=8,cS={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},$y=Math.PI/3,Dy=0.6,jf=t((r,e)=>{let i=e*Dy,s=e*Math.sqrt(1-Dy**2),o=Math.cos($y),n=-Math.sin($y),c=i*-n,l=r+i*o,p=s*o,y=s*n;return`M ${c-p} ${l-y} L ${c+p} ${l+y}`},"businessMarkerPathForCircle"),uS={normal:jf(-24,12),hollow:jf(-23,9),awesome:jf(-21,13),icon:"M 12 -8 L 26 -26"},Py=t((r,e,i)=>{let s=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-s},${i-e.height/2-o})`)},"positionLabel"),od=t((r,e,i,s,o=!1)=>{if(e.look==="handDrawn"){let l=g.svg(r).path(i,Kt(e,o?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",s)}let n=r.append("path").attr("class",s).attr("d",i);if(o)n.attr("fill","none");return n},"appendActorPath"),fS=t((r,e,i,s,o,n,c=!1)=>{if(e.look==="handDrawn"){let y=g.svg(r).circle(i,s,o*2,Kt(e,c?{fill:"none"}:{}));return r.insert(()=>y,":first-child").attr("class",n)}let l=r.append("circle").attr("class",n).attr("cx",i).attr("cy",s).attr("r",o);if(c)l.attr("fill","none");return l},"appendActorCircle");var dS=t((r,e,i)=>{if(!e.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",uS[i]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function en(r,e,i,s){let{labelStyles:o,nodeStyles:n}=E(e);e.labelStyle=o;let c=i==="icon"||e.stereotype!==void 0?{...e,icon:i==="icon"?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:l,bbox:p,label:y}=await U(r,c,te(e,`usecase-actor-variant usecase-actor-${i}`)),d=e.accessibleName??e.label;if(d)l.attr("role","img").attr("aria-label",d);y.attr("class","label actor-label usecase-actor-label");let{theme:x,themeVariables:b}=u();It(l,e.colorIndex,x,b.borderColorArray);let _,v;if(e.stereotype){let ft=await io(l,`«${e.stereotype}»`,{labelStyle:o,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});_=ft.label.attr("class","label usecase-stereotype"),v=ft.bbox}let M=l.append("g").attr("class",`usecase-actor-glyph ${cS[i]}`).attr("style",n||null);await s(M,e),dS(M,e,i);let q=e.padding??hS,W=v?.height??0,H=Uf+Oy+p.height+(v?W+Iy:0),K=Math.max(lS,p.width,v?.width??0)+q*2,J=H+q*2,tt=-H/2;M.attr("transform",`translate(0,${tt+Uf/2})`);let nt=tt+Uf+Oy;if(_&&v)nt+=W/2,Py(_,v,nt),nt+=W/2+Iy;Py(y,p,nt+p.height/2);let st=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-K/2).attr("y",-J/2).attr("width",K).attr("height",J).attr("opacity",0).attr("aria-hidden","true");return O(e,st),e.intersect=(ft)=>T.rect(e,ft),l}t(en,"renderUsecaseActor");var pS=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function zx(r,e){return en(r,e,"normal",(i,s)=>{od(i,s,pS,"usecase-actor-stick")})}t(zx,"usecaseActor");var gS=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Hx(r,e){return en(r,e,"awesome",(i,s)=>{od(i,s,gS,"usecase-actor-awesome-silhouette")})}t(Hx,"usecaseActorAwesome");var mS=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Yx(r,e){return en(r,e,"hollow",(i,s)=>{fS(i,s,0,-23,9,"usecase-actor-hollow-head",!0),od(i,s,mS,"usecase-actor-hollow-body",!0)})}t(Yx,"usecaseActorHollow");var us=52,Ry=42,qy=-2,yS=t(async(r,e)=>{let i=-us/2,s=qy-us/2;if(e.look==="handDrawn"){let d=g.svg(r).rectangle(i,s,us,us,Kt(e,{}));r.insert(()=>d,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",i).attr("y",s).attr("width",us).attr("height",us).attr("rx",4).attr("ry",4);let o=e.icon??"",n=await Dl(o.includes(":")?o:`fa:${o}`),c=await qt(o,{height:Ry,width:Ry,fallbackPrefix:"fa"}),l=r.append("g").attr("class",`usecase-actor-icon-symbol${n?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${c}</g>`),p=l.node()?.getBBox();if(p)l.attr("transform",`translate(${-p.width/2-p.x},${qy-p.height/2-p.y})`)},"drawIconActor");async function Ux(r,e){return en(r,e,"icon",yS)}t(Ux,"usecaseActorIcon");var Ny=t((r,e,i)=>{let s=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-s},${i-e.height/2-o})`)},"positionLabel");async function jx(r,e){let i=e,{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let n=i.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:l,halfPadding:p,label:y}=await U(r,n,te(e,"usecase-business-shape"));y.attr("class","label usecase-label");let{theme:d,themeVariables:x}=u();It(c,e.colorIndex,d,x.borderColorArray);let b,_;if(i.stereotype){let rt=await io(c,`«${i.stereotype}»`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});b=rt.label.attr("class","label usecase-stereotype"),_=rt.bbox}let v=_?2:0,M=l.height+(_?.height??0)+v,q=Math.max(l.width,_?.width??0),W=p??10,H=q/2+W*2,K=M/2+W*2,J=Math.min(Math.max(W/5,1),W/2),tt=q/2+J,nt=H-J,st=tt/H,ft=nt/H,xt=K*Math.sqrt(Math.max(0,1-st*st)),Ft=-K*Math.sqrt(Math.max(0,1-ft*ft));if(b&&_)Ny(b,_,-M/2+_.height/2);Ny(y,l,M/2-l.height/2);let kt;if(e.look==="handDrawn"){let ot=g.svg(c).ellipse(0,0,H*2,K*2,Kt(e,{}));kt=c.insert(()=>ot,":first-child").attr("class","basic label-container usecase-business-ellipse")}else kt=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",H).attr("ry",K).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${tt} ${xt} L ${nt} ${Ft}`).attr("fill","none").attr("style",o||null);let Ct=i.accessibleName??i.label;if(Ct)c.attr("role","img").attr("aria-label",Ct);return O(e,kt),e.calcIntersect=(rt,ot)=>T.ellipse(rt,rt.width/2,rt.height/2,ot),e.intersect=(rt)=>T.ellipse(e,H,K,rt),c}t(jx,"usecaseBusiness");var Gf=8,Wy=4,xS=1,Xf=t((r,e,i,s)=>{let o=(e.x??0)-(e.left??0),n=(e.y??0)-(e.top??0);r.attr("transform",`translate(${i-e.width/2-o},${s-e.height/2-n})`)},"positionLabel"),CS=t((r)=>{let e=Number.parseFloat(r??"");return Number.isFinite(e)&&e>=0?e:xS},"numericStrokeWidth");async function Gx(r,e){let i=e,{labelStyles:s,nodeStyles:o}=E(e),{stylesMap:n}=Qr(e);e.labelStyle=s;let{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e,"usecase-json-table"));if(c.attr("role","img"),i.accessibleName)c.attr("aria-label",i.accessibleName);p.attr("class","label usecase-json-title");let y=c.append("g").attr("class","usecase-json-table-grid"),d=[];for(let rt of i.jsonRows??[]){let ot=await io(y,rt.key,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),gt=await io(y,rt.value,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});d.push({key:{label:ot.label.attr("class","label usecase-json-key"),bbox:ot.bbox},value:{label:gt.label.attr("class","label usecase-json-value"),bbox:gt.bbox}})}let x=Math.max(0,...d.map(({key:rt})=>rt.bbox.width))+Gf*2,b=Math.max(0,...d.map(({value:rt})=>rt.bbox.width))+Gf*2,_=l.width+Gf*2,v=Math.max(_,x+b),M=b+Math.max(0,v-x-b),q=l.height+Wy*2,W=d.map(({key:rt,value:ot})=>Math.max(rt.bbox.height,ot.bbox.height)+Wy*2),H=q+W.reduce((rt,ot)=>rt+ot,0),K=CS(n.get("stroke-width")),J=v+K*2,tt=H+K*2,nt=-v/2,st=-H/2,ft=e.look==="handDrawn"?g.svg(c):void 0,xt=ft?Kt(e,{}):void 0,Ft=t((rt,ot,gt,et,wt,At)=>{if(ft&&xt){let Vt=ft.rectangle(gt,et,wt,At,xt);return rt.insert(()=>Vt,":first-child").attr("class",ot)}return rt.insert("rect",":first-child").attr("class",ot).attr("x",gt).attr("y",et).attr("width",wt).attr("height",At).attr("style",o)},"insertCell"),kt=Ft(c,"label-container usecase-json-border",-J/2,-tt/2,J,tt);Ft(y,"usecase-json-cell usecase-json-title-cell",nt,st,v,q),y.node()?.append(p.node()),Xf(p,l,0,st+q/2);let Ct=st+q;return d.forEach(({key:rt,value:ot},gt)=>{let et=W[gt],wt=y.append("g").attr("class","usecase-json-row").attr("data-row-index",gt).attr("transform",`translate(0,${Ct})`);Ft(wt,"usecase-json-cell usecase-json-key-cell",nt,0,x,et),Ft(wt,"usecase-json-cell usecase-json-value-cell",nt+x,0,M,et),wt.node()?.append(rt.label.node(),ot.label.node()),Xf(rt.label,rt.bbox,nt+x/2,et/2),Xf(ot.label,ot.bbox,nt+x+M/2,et/2),Ct+=et}),O(e,kt),e.intersect=(rt)=>T.rect(e,rt),c}t(Gx,"usecaseJsonTable");async function Xx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o,l=e.look==="neo"?10:5;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2-2*l,10),e.height=Math.max((e?.height??0)-c*2-2*l,10);let{shapeSvg:p,bbox:y,label:d}=await U(r,e,te(e)),x=(e?.width?e?.width:y.width)+n*2+2*l,b=(e?.height?e?.height:y.height)+c*2+2*l,_=x-2*l,v=b-2*l,M=-_/2,q=-v/2,{cssStyles:W}=e,H=g.svg(p),K=Kt(e,{}),J=[{x:M-l,y:q+l},{x:M-l,y:q+v+l},{x:M+_-l,y:q+v+l},{x:M+_-l,y:q+v},{x:M+_,y:q+v},{x:M+_,y:q+v-l},{x:M+_+l,y:q+v-l},{x:M+_+l,y:q-l},{x:M+l,y:q-l},{x:M+l,y:q},{x:M,y:q},{x:M,y:q+l}],tt=[{x:M,y:q+l},{x:M+_-l,y:q+l},{x:M+_-l,y:q+v},{x:M+_,y:q+v},{x:M+_,y:q},{x:M,y:q}];if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let nt=ye(J),st=H.path(nt,K),ft=ye(tt),xt=H.path(ft,K);if(e.look!=="handDrawn")st=Kf(st),xt=Kf(xt);let Ft=p.insert("g",":first-child");if(Ft.insert(()=>st),Ft.insert(()=>xt),Ft.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",W);if(s&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",s);return d.attr("transform",`translate(${-(y.width/2)-l-(y.x-(y.left??0))}, ${-(y.height/2)+l-(y.y-(y.top??0))})`),O(e,Ft),e.intersect=function(kt){return T.polygon(e,J,kt)},p}t(Xx,"multiRect");async function Vx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=e.padding??0,p=e.look==="neo"?16:l,y=e.look==="neo"?12:l,d=!0;if(e.width||e.height)d=!1,e.width=(e?.width??0)-p*2,e.height=(e?.height??0)-y*3;let x=Math.max(n.width,e?.width??0)+p*2,b=Math.max(n.height,e?.height??0)+y*3,_=e.look==="neo"?b/4:b/8,v=b+(d?_/2:-_/2),M=-x/2,q=-v/2,W=10,{cssStyles:H}=e,K=Ui(M-W,q+v+W,M+x-W,q+v+W,_,0.8),J=K?.[K.length-1],tt=[{x:M-W,y:q+W},{x:M-W,y:q+v+W},...K,{x:M+x-W,y:J.y-W},{x:M+x,y:J.y-W},{x:M+x,y:J.y-2*W},{x:M+x+W,y:J.y-2*W},{x:M+x+W,y:q-W},{x:M+W,y:q-W},{x:M+W,y:q},{x:M,y:q},{x:M,y:q+W}],nt=[{x:M,y:q+W},{x:M+x-W,y:q+W},{x:M+x-W,y:J.y-W},{x:M+x,y:J.y-W},{x:M+x,y:q},{x:M,y:q}],st=g.svg(o),ft=Kt(e,{});if(e.look!=="handDrawn")ft.roughness=0,ft.fillStyle="solid";let xt=ye(tt),Ft=st.path(xt,ft),kt=ye(nt),Ct=st.path(kt,ft),rt=o.insert(()=>Ft,":first-child");if(rt.insert(()=>Ct),rt.attr("class","basic label-container outer-path"),H&&e.look!=="handDrawn")rt.selectAll("path").attr("style",H);if(s&&e.look!=="handDrawn")rt.selectAll("path").attr("style",s);return rt.attr("transform",`translate(0,${-_/2})`),c.attr("transform",`translate(${-(n.width/2)-W-(n.x-(n.left??0))}, ${-(n.height/2)+W-_-(n.y-(n.top??0))})`),O(e,rt),e.intersect=function(ot){return T.polygon(e,tt,ot)},o}t(Vx,"multiWaveEdgedRectangle");async function Kx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);if(e.labelStyle=s,!(e.useHtmlLabels||Ye(S())))e.centerLabel=!0;let{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=Math.max(l.width+(e.padding??0)*2,e?.width??0),d=Math.max(l.height+(e.padding??0)*2,e?.height??0),x=-y/2,b=-d/2,{cssStyles:_}=e,v=g.svg(c),M=Kt(e,{fill:i.noteBkgColor,stroke:i.noteBorderColor});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=v.rectangle(x,b,y,d,M),W=c.insert(()=>q,":first-child");if(W.attr("class","basic label-container outer-path"),p.attr("class","label noteLabel"),_&&e.look!=="handDrawn")W.selectAll("path").attr("style",_);if(o&&e.look!=="handDrawn")W.selectAll("path").attr("style",o);return p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),O(e,W),e.intersect=function(H){return T.rect(e,H)},c}t(Kx,"note");var bS=t((r,e,i)=>[`M${r+i/2},${e}`,`L${r+i},${e-i/2}`,`L${r+i/2},${e-i}`,`L${r},${e-i/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Zx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n}=await U(r,e,te(e)),c=n.width+(e.padding??0),l=n.height+(e.padding??0),p=c+l,y=0.5,d=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],x,{cssStyles:b}=e;if(e.look==="handDrawn"){let _=g.svg(o),v=Kt(e,{}),M=bS(0,0,p),q=_.path(M,v);if(x=o.insert(()=>q,":first-child").attr("transform",`translate(${-p/2+y}, ${p/2})`),b)x.attr("style",b)}else x=oi(o,p,p,d),x.attr("transform",`translate(${-p/2+y}, ${p/2})`);if(s)x.attr("style",s);return O(e,x),e.calcIntersect=function(_,v){let M=_.width,q=[{x:M/2,y:0},{x:M,y:-M/2},{x:M/2,y:-M},{x:0,y:-M/2}];return T.polygon(_,q,v)},e.intersect=function(_){return this.calcIntersect(e,_)},o}t(Zx,"question");async function Qx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?21:o??0,c=e.look==="neo"?12:o??0,{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=p.width+(e.look==="neo"?n*2:n),x=Math.max(p.height+(e.look==="neo"?c*2:c),e.height??0),b=x/4,v=-Math.max(d,(e.width??0)-b)/2,M=-x/2,q=M/2,W=[{x:v+q,y:M},{x:v,y:0},{x:v+q,y:-M},{x:-v,y:-M},{x:-v,y:M}],{cssStyles:H}=e,K=g.svg(l),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let tt=ye(W),nt=K.path(tt,J),st=l.insert(()=>nt,":first-child");if(st.attr("class","basic label-container outer-path"),H&&e.look!=="handDrawn")st.selectAll("path").attr("style",H);if(s&&e.look!=="handDrawn")st.selectAll("path").attr("style",s);return st.attr("transform",`translate(${-q/2},0)`),y.attr("transform",`translate(${-q/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),O(e,st),e.intersect=function(ft){return T.polygon(e,W,ft)},l}t(Qx,"rect_left_inv_arrow");async function Jx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o;if(!e.cssClasses)o="node default";else o="node "+e.cssClasses;let n=r.insert("g").attr("class",o).attr("id",e.domId||e.id),c=n.insert("g"),l=n.insert("g").attr("class","label").attr("style",s),{description:p,label:y}=e,d=await Hr(l,y,e.labelStyle,!0,!0),x={width:0,height:0};if(Ye(u())){let ft=d.children[0],xt=h(d);x=ft.getBoundingClientRect(),xt.attr("width",x.width),xt.attr("height",x.height)}a.info("Text 2",p);let b=p||[],_=d.getBBox(),v=await Hr(l,Array.isArray(b)?b.join("<br/>"):b,e.labelStyle,!0,!0),M=v.children[0],q=h(v);x=M.getBoundingClientRect(),q.attr("width",x.width),q.attr("height",x.height);let W=(e.padding||0)/2;h(v).attr("transform","translate( "+(x.width>_.width?0:(_.width-x.width)/2)+", "+(_.height+W+5)+")"),h(d).attr("transform","translate( "+(x.width<_.width?0:-(_.width-x.width)/2)+", 0)"),x=l.node().getBBox(),l.attr("transform","translate("+-x.width/2+", "+(-x.height/2-W+3)+")");let H=x.width+(e.padding||0),K=x.height+(e.padding||0),J=-x.width/2-W,tt=-x.height/2-W,nt,st;if(e.look==="handDrawn"){let ft=g.svg(n),xt=Kt(e,{}),Ft=ft.path(br(J,tt,H,K,e.rx||0),xt),kt=ft.line(-x.width/2-W,-x.height/2-W+_.height+W,x.width/2+W,-x.height/2-W+_.height+W,xt);st=n.insert(()=>(a.debug("Rough node insert CXC",Ft),kt),":first-child"),nt=n.insert(()=>(a.debug("Rough node insert CXC",Ft),Ft),":first-child")}else nt=c.insert("rect",":first-child"),st=c.insert("line"),nt.attr("class","outer title-state").attr("style",s).attr("x",-x.width/2-W).attr("y",-x.height/2-W).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),st.attr("class","divider").attr("x1",-x.width/2-W).attr("x2",x.width/2+W).attr("y1",-x.height/2-W+_.height+W).attr("y2",-x.height/2-W+_.height+W);return O(e,nt),e.intersect=function(ft){return T.rect(e,ft)},n}t(Jx,"rectWithTitle");async function t0(r,e,{config:{themeVariables:i}}){let s=i?.radius??5,o={rx:s,ry:s,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return gs(r,e,o)}t(t0,"roundedRect");var ro=8;async function e0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0,{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=(e?.width??l.width)+o*2+(e.look==="neo"?ro:ro*2),d=(e?.height??l.height)+n*2,x=y-ro,b=d,_=ro-y/2,v=-d/2,{cssStyles:M}=e,q=g.svg(c),W=Kt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let H=[{x:_,y:v},{x:_+x,y:v},{x:_+x,y:v+b},{x:_-ro,y:v+b},{x:_-ro,y:v},{x:_,y:v},{x:_,y:v+b}],K=q.polygon(H.map((tt)=>[tt.x,tt.y]),W),J=c.insert(()=>K,":first-child");if(J.attr("class","basic label-container outer-path").attr("style",Me(M)),s&&e.look!=="handDrawn")J.selectAll("path").attr("style",s);if(M&&e.look!=="handDrawn")J.selectAll("path").attr("style",s);return p.attr("transform",`translate(${ro/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),O(e,J),e.intersect=function(tt){return T.rect(e,tt)},c}t(e0,"shadedProcess");async function r0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2,10),e.height=Math.max((e?.height??0)/1.5-c*2,10);let{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=(e?.width?e?.width:p.width)+n*2,x=((e?.height?e?.height:p.height)+c*2)*1.5,b=d,_=x/1.5,v=-b/2,M=-_/2,{cssStyles:q}=e,W=g.svg(l),H=Kt(e,{});if(e.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let K=[{x:v,y:M},{x:v,y:M+_},{x:v+b,y:M+_},{x:v+b,y:M-_/2}],J=ye(K),tt=W.path(J,H),nt=l.insert(()=>tt,":first-child");if(nt.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")nt.selectChildren("path").attr("style",q);if(s&&e.look!=="handDrawn")nt.selectChildren("path").attr("style",s);return nt.attr("transform",`translate(0, ${_/4})`),y.attr("transform",`translate(${-b/2+(e.padding??0)-(p.x-(p.left??0))}, ${-_/4+(e.padding??0)-(p.y-(p.top??0))})`),O(e,nt),e.intersect=function(st){return T.polygon(e,K,st)},l}t(r0,"slopedRect");async function i0(r,e){let i=e.padding??0,s=e.look==="neo"?16:i*2,o=e.look==="neo"?12:i,n={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??s,labelPaddingY:o},c=await gs(r,e,n);if(e.colorIndex!==void 0){let{theme:l,themeVariables:p}=u();It(c,e.colorIndex,l,p.borderColorArray)}return c}t(i0,"squareRect");var Jf=50,kS=t((r,e,i)=>{let s=r.height+i,o=s*Math.cos(Math.PI/(2*(Jf-1))),n=Math.sqrt(Math.max(0,o**2-r.height**2));return{w:Math.max(r.width+s/4+e,1.5*s+(s-o),r.width+e+s-n),h:s}},"stadiumDimensions");async function o0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?40:o,c=e.look==="neo"?24:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),{w:y,h:d}=kS(p,n,c),x=d/2,{cssStyles:b}=e,_=g.svg(l),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let M=[{x:-y/2+x,y:-d/2},{x:y/2-x,y:-d/2},...ri(-y/2+x,0,x,Jf,90,270),{x:y/2-x,y:d/2},...ri(y/2-x,0,x,Jf,270,450)],q=ye(M),W=_.path(q,v),H=l.insert(()=>W,":first-child");if(H.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn")H.selectChildren("path").attr("style",b);if(s&&e.look!=="handDrawn")H.selectChildren("path").attr("style",s);return O(e,H),e.intersect=function(K){return T.polygon(e,M,K)},l}t(o0,"stadium");async function s0(r,e){let i={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return gs(r,e,i)}t(s0,"state");function a0(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{cssStyles:n}=e,{lineColor:c,stateBorder:l,nodeBorder:p,nodeShadow:y}=i;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let d=r.insert("g").attr("class","node default").attr("id",e.domId??e.id),x=g.svg(d),b=Kt(e,{});if(e.look!=="handDrawn")b.roughness=0,b.fillStyle="solid";let _=x.circle(0,0,e.width,{...b,stroke:c,strokeWidth:2}),v=l??p,M=(e.width??0)*5/14,q=x.circle(0,0,M,{...b,fill:v,stroke:v,strokeWidth:2,fillStyle:"solid"}),W=d.insert(()=>_,":first-child");if(W.insert(()=>q),e.look!=="handDrawn")W.attr("class","outer-path");if(n)W.selectAll("path").attr("style",n);if(o)W.selectAll("path").attr("style",o);if(e.width<25&&y&&e.look!=="handDrawn"){let H=r.node()?.ownerSVGElement?.id??"",K=H?`${H}-drop-shadow-small`:"drop-shadow-small";W.attr("style",`filter:url(#${K})`)}return O(e,W),e.intersect=function(H){return T.circle(e,(e.width??0)/2,H)},d}t(a0,"stateEnd");function n0(r,e,{config:{themeVariables:i}}){let{lineColor:s,nodeShadow:o}=i;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let n=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),c;if(e.look==="handDrawn"){let p=g.svg(n).circle(0,0,e.width,Gg(s));c=n.insert(()=>p),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else c=n.insert("circle",":first-child"),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&o&&e.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",p=l?`${l}-drop-shadow-small`:"drop-shadow-small";c.attr("style",`filter:url(#${p})`)}return O(e,c),e.intersect=function(l){return T.circle(e,(e.width??7)/2,l)},n}t(n0,"stateStart");var fs=8;async function l0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e?.padding??8,n=e.look==="neo"?28:o,c=e.look==="neo"?12:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=Math.max(p.width+2*fs+n,e.width??0),d=Math.max(p.height+c,e.height??0),x=y-2*fs,b=d,_=-y/2,v=-d/2,M=[{x:0,y:0},{x,y:0},{x,y:-b},{x:0,y:-b},{x:0,y:0},{x:-8,y:0},{x:x+8,y:0},{x:x+8,y:-b},{x:-8,y:-b},{x:-8,y:0}];if(e.look==="handDrawn"){let q=g.svg(l),W=Kt(e,{}),H=q.rectangle(_,v,x+16,b,W),K=q.line(_+fs,v,_+fs,v+b,W),J=q.line(_+fs+x,v,_+fs+x,v+b,W);l.insert(()=>K,":first-child"),l.insert(()=>J,":first-child");let tt=l.insert(()=>H,":first-child"),{cssStyles:nt}=e;tt.attr("class","basic label-container").attr("style",Me(nt)),O(e,tt)}else{let q=oi(l,x,b,M);if(s)q.attr("style",s);O(e,q)}return e.intersect=function(q){return T.polygon(e,M,q)},l}t(l0,"subroutine");var Vf=0.2;async function h0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o;if(e.width||e.height)e.height=Math.max((e?.height??0)-c*2,10),e.width=Math.max((e?.width??0)-n*2-Vf*(e.height+c*2),10);let{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=(e?.height?e?.height:p.height)+c*2,d=Vf*y,x=Vf*y,_=(e?.width?e?.width:p.width)+n*2+d-d,v=y,M=-_/2,q=-v/2,{cssStyles:W}=e,H=g.svg(l),K=Kt(e,{}),J=[{x:M-d/2,y:q},{x:M+_+d/2,y:q},{x:M+_+d/2,y:q+v},{x:M-d/2,y:q+v}],tt=[{x:M+_-d/2,y:q+v},{x:M+_+d/2,y:q+v},{x:M+_+d/2,y:q+v-x}];if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let nt=ye(J),st=H.path(nt,K),ft=ye(tt),xt=H.path(ft,{...K,fillStyle:"solid"}),Ft=l.insert(()=>xt,":first-child");if(Ft.insert(()=>st,":first-child"),Ft.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",W);if(s&&e.look!=="handDrawn")Ft.selectAll("path").attr("style",s);return O(e,Ft),e.intersect=function(kt){return T.polygon(e,J,kt)},l}t(h0,"taggedRect");async function c0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:c}=await U(r,e,te(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),p=Math.max(n.height+(e.padding??0)*2,e?.height??0),y=p/8,d=0.2*l,x=0.2*p,b=p+y,{cssStyles:_}=e,v=g.svg(o),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-l/2-l/2*0.1,y:b/2},...Ui(-l/2-l/2*0.1,b/2,l/2+l/2*0.1,b/2,y,0.8),{x:l/2+l/2*0.1,y:-b/2},{x:-l/2-l/2*0.1,y:-b/2}],W=-l/2+l/2*0.1,H=-b/2-x*0.4,K=[{x:W+l-d,y:(H+p)*1.3},{x:W+l,y:H+p-x},{x:W+l,y:(H+p)*0.9},...Ui(W+l,(H+p)*1.25,W+l-d,(H+p)*1.3,-p*0.02,0.5)],J=ye(q),tt=v.path(J,M),nt=ye(K),st=v.path(nt,{...M,fillStyle:"solid"}),ft=o.insert(()=>st,":first-child");if(ft.insert(()=>tt,":first-child"),ft.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")ft.selectAll("path").attr("style",_);if(s&&e.look!=="handDrawn")ft.selectAll("path").attr("style",s);return ft.attr("transform",`translate(0,${-y/2})`),c.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-p/2+(e.padding??0)-y/2-(n.y-(n.top??0))})`),O(e,ft),e.intersect=function(xt){return T.polygon(e,q,xt)},o}t(c0,"taggedWaveEdgedRectangle");async function u0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n}=await U(r,e,te(e)),c=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),p=-c/2,y=-l/2,d=o.insert("rect",":first-child");return d.attr("class","text").attr("style",s).attr("rx",0).attr("ry",0).attr("x",p).attr("y",y).attr("width",c).attr("height",l),O(e,d),e.intersect=function(x){return T.rect(e,x)},o}t(u0,"text");var wS=t((r,e,i,s,o,n)=>`M${r},${e}
|
|
234
|
-
a${o},${n} 0,0,1 0,${-s}
|
|
235
|
-
l${i},0
|
|
236
|
-
a${o},${n} 0,0,1 0,${s}
|
|
237
|
-
M${i},${-s}
|
|
238
|
-
a${o},${n} 0,0,0 0,${s}
|
|
239
|
-
l${-i},0`,"createCylinderPathD"),SS=t((r,e,i,s,o,n)=>[`M${r},${e}`,`M${r+i},${e}`,`a${o},${n} 0,0,0 0,${-s}`,`l${-i},0`,`a${o},${n} 0,0,0 0,${s}`,`l${i},0`].join(" "),"createOuterCylinderPathD"),TS=t((r,e,i,s,o,n)=>[`M${r+i/2},${-s/2}`,`a${o},${n} 0,0,0 0,${s}`].join(" "),"createInnerCylinderPathD"),zy=5,Hy=10;async function f0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?12:o/2,c=e.height??0;if(e.height){if(e.height=e.height-n,e.height<zy)e.height=zy}if(e.width){let W=c/2/(2.5+c/50);if(e.width=e.width-n-W*3,e.width<Hy)e.width=Hy}let{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=Math.max(e.height??0,p.height)+n,x=d/2,b=x/(2.5+d/50),_=Math.max(e.width??0,p.width)+b+n,{cssStyles:v}=e,M;if(e.look==="handDrawn"){let q=g.svg(l),W=SS(0,0,_,d,b,x),H=TS(0,0,_,d,b,x),K=q.path(W,Kt(e,{})),J=q.path(H,Kt(e,{fill:"none"}));if(M=l.insert(()=>J,":first-child"),M=l.insert(()=>K,":first-child"),M.attr("class","basic label-container"),v)M.attr("style",v)}else{let q=wS(0,0,_,d,b,x);if(M=l.insert("path",":first-child").attr("d",q).attr("class","basic label-container").attr("style",Me(v)).attr("style",s),M.attr("class","basic label-container outer-path"),v)M.selectAll("path").attr("style",v);if(s)M.selectAll("path").attr("style",s)}return M.attr("label-offset-x",b),M.attr("transform",`translate(${-_/2}, ${d/2} )`),y.attr("transform",`translate(${-(p.width/2)-b-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),O(e,M),e.intersect=function(q){let W=T.rect(e,q),H=W.y-(e.y??0);if(x!=0&&(Math.abs(H)<(e.height??0)/2||Math.abs(H)==(e.height??0)/2&&Math.abs(W.x-(e.x??0))>(e.width??0)/2-b)){let K=b*b*(1-H*H/(x*x));if(K!=0)K=Math.sqrt(Math.abs(K));if(K=b-K,q.x-(e.x??0)>0)K=-K;W.x+=K}return W},l}t(f0,"tiltedCylinder");async function d0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o:o,c=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=Math.max(p.height+n,e.height??0),d=Math.max(p.width+c,(e.width??0)-y),x=[{x:-3*y/6,y:0},{x:d+3*y/6,y:0},{x:d,y:-y},{x:0,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-d/2}, ${y/2})`),_)b.attr("style",_)}else b=oi(l,d,y,x);if(s)b.attr("style",s);return e.width=d,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(d0,"trapezoid");async function p0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o,l=15,p=5;if(e.width||e.height){if(e.height=(e.height??0)-c*2,e.height<p)e.height=p;if(e.width=(e.width??0)-n*2,e.width<l)e.width=l}let{shapeSvg:y,bbox:d}=await U(r,e,te(e)),x=(e?.width?e?.width:d.width)+n*2,b=(e?.height?e?.height:d.height)+c*2,{cssStyles:_}=e,v=g.svg(y),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-x/2*0.8,y:-b/2},{x:x/2*0.8,y:-b/2},{x:x/2,y:-b/2*0.6},{x:x/2,y:b/2},{x:-x/2,y:b/2},{x:-x/2,y:-b/2*0.6}],W=ye(q),H=v.path(W,M),K=y.insert(()=>H,":first-child");if(K.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")K.selectChildren("path").attr("style",_);if(s&&e.look!=="handDrawn")K.selectChildren("path").attr("style",s);return O(e,K),e.intersect=function(J){return T.polygon(e,q,J)},y}t(p0,"trapezoidalPentagon");var Yy=10,Uy=10;async function g0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o*2:o;if(e.width||e.height){if(e.width=((e?.width??0)-n)/2,e.width<Uy)e.width=Uy;if(e.height=e?.height??0,e.height<Yy)e.height=Yy}let{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=on(u().flowchart?.htmlLabels),d=(e?.width?e?.width:l.width)+n,x=e?.height?e?.height:d+l.height,b=x,_=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-x}],{cssStyles:v}=e,M=g.svg(c),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=ye(_),H=M.path(W,q),K=c.insert(()=>H,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");if(v&&e.look!=="handDrawn")K.selectChildren("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectChildren("path").attr("style",s);return e.width=d,e.height=x,O(e,K),p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${x/2-(l.height+(e.padding??0)/(y?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(J){return a.info("Triangle intersect",e,_,J),T.polygon(e,_,J)},c}t(g0,"triangle");async function m0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?12:o,l=!0;if(e.width||e.height){if(l=!1,e.width=(e?.width??0)-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-c*2,e.height<10)e.height=10}let{shapeSvg:p,bbox:y,label:d}=await U(r,e,te(e)),x=(e?.width?e?.width:y.width)+(n??0)*2,b=(e?.height?e?.height:y.height)+(c??0)*2,_=e.look==="neo"?b/4:b/8,v=b+(l?_:-_),{cssStyles:M}=e,W=14-x,H=W>0?W/2:0,K=g.svg(p),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let tt=[{x:-x/2-H,y:v/2},...Ui(-x/2-H,v/2,x/2+H,v/2,_,0.8),{x:x/2+H,y:-v/2},{x:-x/2-H,y:-v/2}],nt=ye(tt),st=K.path(nt,J),ft=p.insert(()=>st,":first-child");if(ft.attr("class","basic label-container outer-path"),M&&e.look!=="handDrawn")ft.selectAll("path").attr("style",M);if(s&&e.look!=="handDrawn")ft.selectAll("path").attr("style",s);return ft.attr("transform",`translate(0,${-_/2})`),d.attr("transform",`translate(${-x/2+(e.padding??0)-(y.x-(y.left??0))},${-b/2+(e.padding??0)-_-(y.y-(y.top??0))})`),O(e,ft),e.intersect=function(xt){return T.polygon(e,tt,xt)},p}t(m0,"waveEdgedRectangle");async function y0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,c=e.look==="neo"?20:o;if(e.width||e.height){if(e.width=e?.width??0,e.width<20)e.width=20;if(e.height=e?.height??0,e.height<10)e.height=10;let J=Math.min(e.height*0.2,e.height/4);e.height=Math.ceil(e.height-c-J*2.2222222222222223),e.width=e.width-n*2}let{shapeSvg:l,bbox:p}=await U(r,e,te(e)),y=(e?.width?e?.width:p.width)+n*2,d=(e?.height?e?.height:p.height)+c,x=d/8,b=d+x*2,{cssStyles:_}=e,v=g.svg(l),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-y/2,y:b/2},...Ui(-y/2,b/2,y/2,b/2,x,1),{x:y/2,y:-b/2},...Ui(y/2,-b/2,-y/2,-b/2,x,-1)],W=ye(q),H=v.path(W,M),K=l.insert(()=>H,":first-child");if(K.attr("class","basic label-container"),_&&e.look!=="handDrawn")K.selectAll("path").attr("style",_);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return O(e,K),e.intersect=function(J){return T.polygon(e,q,J)},l}t(y0,"waveRectangle");var Pe=10;async function x0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0;if(e.width||e.height)e.width=Math.max((e?.width??0)-o*2-Pe,10),e.height=Math.max((e?.height??0)-n*2-Pe,10);let{shapeSvg:c,bbox:l,label:p}=await U(r,e,te(e)),y=(e?.width?e?.width:l.width)+o*2+Pe,d=(e?.height?e?.height:l.height)+n*2+Pe,x=y-Pe,b=d-Pe,_=-x/2,v=-b/2,{cssStyles:M}=e,q=g.svg(c),W=Kt(e,{}),H=[{x:_-Pe,y:v-Pe},{x:_-Pe,y:v+b},{x:_+x,y:v+b},{x:_+x,y:v-Pe}],K=`M${_-Pe},${v-Pe} L${_+x},${v-Pe} L${_+x},${v+b} L${_-Pe},${v+b} L${_-Pe},${v-Pe}
|
|
240
|
-
M${_-Pe},${v} L${_+x},${v}
|
|
241
|
-
M${_},${v-Pe} L${_},${v+b}`;if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let J=q.path(K,W),tt=c.insert(()=>J,":first-child");if(tt.attr("transform",`translate(${Pe/2}, ${Pe/2})`),tt.attr("class","basic label-container outer-path"),M&&e.look!=="handDrawn")tt.selectAll("path").attr("style",M);if(s&&e.look!=="handDrawn")tt.selectAll("path").attr("style",s);return p.attr("transform",`translate(${-(l.width/2)+Pe/2-(l.x-(l.left??0))}, ${-(l.height/2)+Pe/2-(l.y-(l.top??0))})`),O(e,tt),e.intersect=function(nt){return T.polygon(e,H,nt)},c}t(x0,"windowPane");var jy=new Set(["redux-color","redux-dark-color"]),_S=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function sd(r,e){let i=e;if(i.alias)e.label=i.alias;let{theme:s,themeVariables:o}=S(),{rowEven:n,rowOdd:c,nodeBorder:l,borderColorArray:p}=o;if(e.look==="handDrawn"){let{themeVariables:Gt}=S(),{background:re}=Gt,ae={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${re}`]};await sd(r,ae)}let y=S();e.useHtmlLabels=y.htmlLabels;let d=y.er?.diagramPadding??10,x=y.er?.entityPadding??6,{cssStyles:b}=e,{labelStyles:_,nodeStyles:v}=E(e);if(i.attributes.length===0&&e.label){let Gt={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:""};if(Rt(e.label,y)+Gt.labelPaddingX*2<y.er.minEntityWidth)e.width=y.er.minEntityWidth;let re=await gs(r,e,Gt);if(s!=null&&jy.has(s)){let ae=i.colorIndex??0;re.attr("data-color-id",`color-${ae%p.length}`)}if(!on(y.htmlLabels)){let ae=re.select("text"),ne=ae.node()?.getBBox();ae.attr("transform",`translate(${-ne.width/2}, 0)`)}return re}if(!y.htmlLabels)d*=1.25,x*=1.25;let M=te(e);if(!M)M="node default";let q=r.insert("g").attr("class",M).attr("id",e.domId||e.id),W=await ds(q,e.label??"",y,0,0,["name"],_);W.height+=x;let H=0,K=[],J=[],tt=0,nt=0,st=0,ft=0,xt=!0,Ft=!0;for(let Gt of i.attributes){let re=await ds(q,Gt.type,y,0,H,["attribute-type"],_);tt=Math.max(tt,re.width+d);let ae=await ds(q,Gt.name,y,0,H,["attribute-name"],_);nt=Math.max(nt,ae.width+d);let ne=await ds(q,Gt.keys.join(),y,0,H,["attribute-keys"],_);st=Math.max(st,ne.width+d);let Le=await ds(q,Gt.comment,y,0,H,["attribute-comment"],_);ft=Math.max(ft,Le.width+d);let ve=Math.max(re.height,ae.height,ne.height,Le.height)+x;J.push({yOffset:H,rowHeight:ve}),H+=ve}let kt=4;if(st<=d)xt=!1,st=0,kt--;if(ft<=d)Ft=!1,ft=0,kt--;let Ct=q.node().getBBox();if(W.width+d*2-(tt+nt+st+ft)>0){let Gt=W.width+d*2-(tt+nt+st+ft);if(tt+=Gt/kt,nt+=Gt/kt,st>0)st+=Gt/kt;if(ft>0)ft+=Gt/kt}let rt=tt+nt+st+ft,ot=g.svg(q),gt=Kt(e,{});if(e.look!=="handDrawn")gt.roughness=0,gt.fillStyle="solid";let et=0;if(J.length>0)et=J.reduce((Gt,re)=>Gt+(re?.rowHeight??0),0);let wt=Math.max(Ct.width+d*2,e?.width||0,rt),At=Math.max((et??0)+W.height,e?.height||0),Vt=-wt/2,Xt=-At/2;if(q.selectAll("g:not(:first-child)").each((Gt,re,ae)=>{let ne=h(ae[re]),Le=ne.attr("transform"),ve=0,Er=0;if(Le){let Tr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Le);if(Tr){if(ve=parseFloat(Tr[1]),Er=parseFloat(Tr[2]),ne.attr("class").includes("attribute-name"))ve+=tt;else if(ne.attr("class").includes("attribute-keys"))ve+=tt+nt;else if(ne.attr("class").includes("attribute-comment"))ve+=tt+nt+st}}ne.attr("transform",`translate(${Vt+d/2+ve}, ${Er+Xt+W.height+x/2})`)}),q.select(".name").attr("transform","translate("+-W.width/2+", "+(Xt+x/2)+")"),s!=null&&jy.has(s)){let Gt=i.colorIndex??0;q.attr("data-color-id",`color-${Gt%p.length}`)}let se=ot.rectangle(Vt,Xt,wt,At,gt),oe=q.insert(()=>se,":first-child").attr("class","outer-path").attr("style",b.join(""));K.push(0);for(let[Gt,re]of J.entries()){let ne=(Gt+1)%2===0&&re.yOffset!==0,Le=ot.rectangle(Vt,W.height+Xt+re?.yOffset,wt,re?.rowHeight,{...gt,fill:ne?n:c,stroke:l});q.insert(()=>Le,"g.label").attr("style",b.join("")).attr("class",`row-rect-${ne?"even":"odd"}`)}let de=0.0001,ge=ps(Vt,W.height+Xt,wt+Vt,W.height+Xt,de),he=ot.polygon(ge.map((Gt)=>[Gt.x,Gt.y]),gt);if(q.insert(()=>he).attr("class","divider"),ge=ps(tt+Vt,W.height+Xt,tt+Vt,At+Xt,de),he=ot.polygon(ge.map((Gt)=>[Gt.x,Gt.y]),gt),q.insert(()=>he).attr("class","divider"),xt){let Gt=tt+nt+Vt;ge=ps(Gt,W.height+Xt,Gt,At+Xt,de),he=ot.polygon(ge.map((re)=>[re.x,re.y]),gt),q.insert(()=>he).attr("class","divider")}if(Ft){let Gt=tt+nt+st+Vt;ge=ps(Gt,W.height+Xt,Gt,At+Xt,de),he=ot.polygon(ge.map((re)=>[re.x,re.y]),gt),q.insert(()=>he).attr("class","divider")}for(let Gt of K){let re=W.height+Xt+Gt;ge=ps(Vt,re,wt+Vt,re,de),he=ot.polygon(ge.map((ae)=>[ae.x,ae.y]),gt),q.insert(()=>he).attr("class","divider")}if(O(e,oe),v&&e.look!=="handDrawn")if(s!=null&&_S.has(s))q.selectAll("path").attr("style",v);else{let re=v.split(";")?.filter((ae)=>ae.includes("stroke"))?.map((ae)=>`${ae}`).join("; ");q.selectAll("path").attr("style",re??""),q.selectAll(".row-rect-even path").attr("style",v)}return e.intersect=function(Gt){return T.rect(e,Gt)},q}t(sd,"erBox");async function ds(r,e,i,s=0,o=0,n=[],c=""){let l=r.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${s}, ${o})`).attr("style",c);if(e!==Kn(e))e=Kn(e),e=e.replaceAll("<","<").replaceAll(">",">");let p=l.node().appendChild(await it(l,e,{width:Rt(e,i)+100,style:c,useHtmlLabels:i.htmlLabels},i));if(e.includes("<")||e.includes(">")){let d=p.children[0];d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");while(d.childNodes[0])d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let y=p.getBBox();if(on(i.htmlLabels)){let d=p.children[0];d.style.textAlign="start";let x=h(p);y=d.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return y}t(ds,"addText");function ps(r,e,i,s,o){if(r===i)return[{x:r-o/2,y:e},{x:r+o/2,y:e},{x:i+o/2,y:s},{x:i-o/2,y:s}];return[{x:r,y:e-o/2},{x:r,y:e+o/2},{x:i,y:s+o/2},{x:i,y:s-o/2}]}t(ps,"lineToPolygon");async function C0(r,e,i,s,o=i.class.padding??12){let n=!s?3:0,c=r.insert("g").attr("class",te(e)).attr("id",e.domId||e.id),l=null,p=null,y=null,d=null,x=0,b=0,_=0;if(l=c.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let H=e.annotations[0];await tn(l,{text:`«${H}»`},0),x=l.node().getBBox().height}p=c.insert("g").attr("class","label-group text"),await tn(p,e,0,["font-weight: bolder"]);let v=p.node().getBBox();b=v.height,y=c.insert("g").attr("class","members-group text");let M=0;for(let H of e.members){let K=await tn(y,H,M,[H.parseClassifier()]);M+=K+n}if(_=y.node().getBBox().height,_<=0)_=o/2;d=c.insert("g").attr("class","methods-group text");let q=0;for(let H of e.methods){let K=await tn(d,H,q,[H.parseClassifier()]);q+=K+n}let W=c.node().getBBox();if(l!==null){let H=l.node().getBBox();l.attr("transform",`translate(${-H.width/2})`)}return p.attr("transform",`translate(${-v.width/2}, ${x})`),W=c.node().getBBox(),y.attr("transform",`translate(0, ${x+b+o*2})`),W=c.node().getBBox(),d.attr("transform",`translate(0, ${x+b+(_?_+o*4:o*2)})`),W=c.node().getBBox(),{shapeSvg:c,bbox:W}}t(C0,"textHelper");async function tn(r,e,i,s=[]){let o=r.insert("g").attr("class","label").attr("style",s.join("; ")),n=S(),c="useHtmlLabels"in e?e.useHtmlLabels:on(n.htmlLabels)??!0,l="";if("text"in e)l=e.text;else l=e.label;if(!c&&l.startsWith("\\"))l=l.substring(1);if(Oe(l))c=!0;let p=await it(o,Dn(On(l)),{width:Rt(l,n)+50,classes:"markdown-node-label",useHtmlLabels:c},n),y,d=1;if(!c){if(s.includes("font-weight: bolder"))h(p).selectAll("tspan").attr("font-weight","");d=p.children.length;let x=p.children[0];if(p.textContent===""||p.textContent.includes(">")){if(x.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" ")x.textContent=x.textContent[0]+" "+x.textContent.substring(1)}if(x.textContent==="undefined")x.textContent="";y=p.getBBox()}else{let x=p.children[0],b=h(p);if(d=x.innerHTML.split("<br>").length,x.innerHTML.includes("</math>"))d+=x.innerHTML.split("<mrow>").length-1;await td(x),y=x.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}return o.attr("transform","translate(0,"+(-y.height/(2*d)+i)+")"),y.height}t(tn,"addText");async function b0(r,e){let i=u(),{theme:s,themeVariables:o}=i,{useGradient:n,borderColorArray:c}=o,l=i.class.padding??12,p=l,y=e.useHtmlLabels??on(i.htmlLabels)??!0,d=e;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:x,bbox:b}=await C0(r,e,i,y,p);It(x,e.colorIndex,s,c);let{labelStyles:_,nodeStyles:v}=E(e);e.labelStyle=_,e.cssStyles=d.styles||"";let M=d.styles?.join(";")||v||"";if(!e.cssStyles)e.cssStyles=M.replaceAll("!important","").split(";");let q=d.members.length===0&&d.methods.length===0&&!i.class?.hideEmptyMembersBox,W=g.svg(x),H=Kt(e,{});if(e.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let K=Math.max(e.width??0,b.width),J=Math.max(e.height??0,b.height),tt=(e.height??0)>b.height;if(d.members.length===0&&d.methods.length===0)J+=p;else if(d.members.length>0&&d.methods.length===0)J+=p*2;let nt=-K/2,st=-J/2,ft=q?l*2:d.members.length===0&&d.methods.length===0?-l:0;if(tt)ft=l*2;let xt=W.rectangle(nt-l,st-l-(q?l:d.members.length===0&&d.methods.length===0?-l/2:0),K+2*l,J+2*l+ft,H),Ft=x.insert(()=>xt,":first-child");Ft.attr("class","basic label-container outer-path");let kt=Ft.node().getBBox(),Ct=x.select(".annotation-group").node().getBBox().height-(q?l/2:0)||0,rt=x.select(".label-group").node().getBBox().height-(q?l/2:0)||0,ot=x.select(".members-group").node().getBBox().height-(q?l/2:0)||0,gt=(Ct+rt+st+l-(st-l-(q?l:d.members.length===0&&d.methods.length===0?-l/2:0)))/2;if(x.selectAll(".text").each((et,wt,At)=>{let Vt=h(At[wt]),Xt=Vt.attr("transform"),se=0;if(Xt){let he=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xt);if(he)se=parseFloat(he[2])}let oe=se+st+l-(q?l:d.members.length===0&&d.methods.length===0?-l/2:0);if(Vt.attr("class").includes("methods-group")){let ge=Math.max(ot,p/2);if(tt)oe=Math.max(gt,Ct+rt+ge+st+p*2+l)+p*2;else oe=Ct+rt+ge+st+p*4+l}if(d.members.length===0&&d.methods.length===0&&i.class?.hideEmptyMembersBox)if(d.annotations.length>0)oe=se-p;else oe=se;if(!y)oe-=4;let de=nt;if(Vt.attr("class").includes("label-group")||Vt.attr("class").includes("annotation-group"))de=-Vt.node()?.getBBox().width/2||0,x.selectAll("text").each(function(ge,he,Gt){if(window.getComputedStyle(Gt[he]).textAnchor==="middle")de=0});Vt.attr("transform",`translate(${de}, ${oe})`)}),d.members.length>0||d.methods.length>0||q){let et=Ct+rt+st+l,wt=W.line(kt.x,et,kt.x+kt.width,et+0.001,H);x.insert(()=>wt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",M)}if(q||d.members.length>0||d.methods.length>0){let et=Ct+rt+ot+st+p*2+l,wt=W.line(kt.x,tt?Math.max(gt,et):et,kt.x+kt.width,(tt?Math.max(gt,et):et)+0.001,H);x.insert(()=>wt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",M)}if(d.look!=="handDrawn")x.selectAll("path").attr("style",M);if(Ft.select(":nth-child(2)").attr("style",M),x.selectAll(".divider").select("path").attr("style",M),e.labelStyle)x.selectAll("span").attr("style",e.labelStyle);else x.selectAll("span").attr("style",M);if(!y){let et=RegExp(/color\s*:\s*([^;]*)/),wt=et.exec(M);if(wt){let At=wt[0].replace("color","fill");x.selectAll("tspan").attr("style",At)}else if(_){let At=et.exec(_);if(At){let Vt=At[0].replace("color","fill");x.selectAll("tspan").attr("style",Vt)}}}return O(e,Ft),e.intersect=function(et){return T.rect(e,et)},x}t(b0,"classBox");async function k0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e,n=e,c=20,l=20,p="verifyMethod"in e,y=te(e),d=u(),{themeVariables:x}=d,{borderColorArray:b,requirementEdgeLabelBackground:_}=x,v=d.layout==="elk"?"start":"center",M=r.insert("g").attr("class",y).attr("id",e.domId??e.id),q;if(p)q=await ei(M,`<<${o.type}>>`,0,e.labelStyle);else q=await ei(M,"<<Element>>",0,e.labelStyle);let W=q,H=await ei(M,o.name,W,e.labelStyle+"; font-weight: bold;");if(W+=H+l,p){let kt=await ei(M,`${o.requirementId?`ID: ${o.requirementId}`:""}`,W,e.labelStyle,v);W+=kt;let Ct=await ei(M,`${o.text?`Text: ${o.text}`:""}`,W,e.labelStyle,v);W+=Ct;let rt=await ei(M,`${o.risk?`Risk: ${o.risk}`:""}`,W,e.labelStyle,v);W+=rt,await ei(M,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,W,e.labelStyle,v)}else{let kt=await ei(M,`${n.type?`Type: ${n.type}`:""}`,W,e.labelStyle,v);W+=kt,await ei(M,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,W,e.labelStyle,v)}let K=(M.node()?.getBBox().width??200)+c,J=(M.node()?.getBBox().height??200)+c,tt=-K/2,nt=-J/2,st=g.svg(M),ft=Kt(e,{});if(e.look!=="handDrawn")ft.roughness=0,ft.fillStyle="solid";let xt=st.rectangle(tt,nt,K,J,ft),Ft=M.insert(()=>xt,":first-child");if(Ft.attr("class","basic label-container outer-path").attr("style",s),b?.length){let kt=e.colorIndex??0;M.attr("data-color-id",`color-${kt%b.length}`)}if(M.selectAll(".label").each((kt,Ct,rt)=>{let ot=h(rt[Ct]),gt=ot.attr("transform"),et=0,wt=0;if(gt){let se=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(gt);if(se)et=parseFloat(se[1]),wt=parseFloat(se[2])}let At=wt-J/2,Vt=tt+c/2;if(Ct===0||Ct===1)Vt=et;ot.attr("transform",`translate(${Vt}, ${At+c})`)}),W>q+H+l){let kt=nt+q+H+l,Ct;if(e.look==="neo"){let gt=[[tt,kt],[tt+K,kt],[tt+K,kt+0.001],[tt,kt+0.001]];Ct=st.polygon(gt,ft)}else Ct=st.line(tt,kt,tt+K,kt,ft);M.insert(()=>Ct).attr("class","divider")}if(O(e,Ft),e.intersect=function(kt){return T.rect(e,kt)},s&&e.look!=="handDrawn"&&(_||b?.length))M.selectAll("path").attr("style",s);return M}t(k0,"requirementBox");async function ei(r,e,i,s="",o="center"){if(e==="")return 0;let n=r.insert("g").attr("class","label").attr("style",s),c=u(),l=c.htmlLabels??!0,p=await it(n,Dn(On(e)),{width:Rt(e,c)+50,classes:"markdown-node-label",useHtmlLabels:l,style:s},c),y;if(!l){let d=p.children[0];for(let x of d.children)if(s)x.setAttribute("style",s);if(o==="start"){d.setAttribute("text-anchor","start");for(let x of d.children)x.setAttribute("text-anchor","start")}y=p.getBBox(),y.height+=6}else{let d=p.children[0],x=h(p);if(o==="start")h(d).style("text-align","left");y=d.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return n.attr("transform",`translate(${-y.width/2},${-y.height/2+i})`),y.height}t(ei,"addText");var BS=t((r)=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function w0(r,e,{config:i}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s||"";let n=10,c=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:p,label:y}=await U(r,e,te(e)),d=e.padding||10,x="",b;if("ticket"in e&&e.ticket&&i?.kanban?.ticketBaseUrl)x=i?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),b=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",x).attr("target","_blank");let _={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},v,M;if(b)({label:v,bbox:M}=await io(b,"ticket"in e&&e.ticket||"",_));else({label:v,bbox:M}=await io(l,"ticket"in e&&e.ticket||"",_));let{label:q,bbox:W}=await io(l,"assigned"in e&&e.assigned||"",_);e.width=c;let H=10,K=e?.width||0,J=Math.max(M.height,W.height)/2,tt=Math.max(p.height+H*2,e?.height||0)+J,nt=-K/2,st=-tt/2;y.attr("transform","translate("+(d-K/2)+", "+(-J-p.height/2)+")"),v.attr("transform","translate("+(d-K/2)+", "+(-J+p.height/2)+")"),q.attr("transform","translate("+(d+K/2-W.width-2*n)+", "+(-J+p.height/2)+")");let ft,{rx:xt,ry:Ft}=e,{cssStyles:kt}=e;if(e.look==="handDrawn"){let Ct=g.svg(l),rt=Kt(e,{}),ot=xt||Ft?Ct.path(br(nt,st,K,tt,xt||0),rt):Ct.rectangle(nt,st,K,tt,rt);ft=l.insert(()=>ot,":first-child"),ft.attr("class","basic label-container").attr("style",kt?kt:null)}else{ft=l.insert("rect",":first-child"),ft.attr("class","basic label-container __APA__").attr("style",o).attr("rx",xt??5).attr("ry",Ft??5).attr("x",nt).attr("y",st).attr("width",K).attr("height",tt);let Ct="priority"in e&&e.priority;if(Ct){let rt=l.append("line"),ot=nt+2,gt=st+Math.floor((xt??0)/2),et=st+tt-Math.floor((xt??0)/2);rt.attr("x1",ot).attr("y1",gt).attr("x2",ot).attr("y2",et).attr("stroke-width","4").attr("stroke",BS(Ct))}}return O(e,ft),e.height=tt,e.intersect=function(Ct){return T.rect(e,Ct)},l}t(w0,"kanbanItem");async function S0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:c,label:l}=await U(r,e,te(e)),p=n.width+10*c,y=n.height+8*c,d=0.15*p,{cssStyles:x}=e,b=n.width+20,_=n.height+20,v=Math.max(p,b),M=Math.max(y,_);l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let q,W=`M0 0
|
|
242
|
-
a${d},${d} 1 0,0 ${v*0.25},${-1*M*0.1}
|
|
243
|
-
a${d},${d} 1 0,0 ${v*0.25},0
|
|
244
|
-
a${d},${d} 1 0,0 ${v*0.25},0
|
|
245
|
-
a${d},${d} 1 0,0 ${v*0.25},${M*0.1}
|
|
246
|
-
|
|
247
|
-
a${d},${d} 1 0,0 ${v*0.15},${M*0.33}
|
|
248
|
-
a${d*0.8},${d*0.8} 1 0,0 0,${M*0.34}
|
|
249
|
-
a${d},${d} 1 0,0 ${-1*v*0.15},${M*0.33}
|
|
250
|
-
|
|
251
|
-
a${d},${d} 1 0,0 ${-1*v*0.25},${M*0.15}
|
|
252
|
-
a${d},${d} 1 0,0 ${-1*v*0.25},0
|
|
253
|
-
a${d},${d} 1 0,0 ${-1*v*0.25},0
|
|
254
|
-
a${d},${d} 1 0,0 ${-1*v*0.25},${-1*M*0.15}
|
|
255
|
-
|
|
256
|
-
a${d},${d} 1 0,0 ${-1*v*0.1},${-1*M*0.33}
|
|
257
|
-
a${d*0.8},${d*0.8} 1 0,0 0,${-1*M*0.34}
|
|
258
|
-
a${d},${d} 1 0,0 ${v*0.1},${-1*M*0.33}
|
|
259
|
-
H0 V0 Z`;if(e.look==="handDrawn"){let H=g.svg(o),K=Kt(e,{}),J=H.path(W,K);q=o.insert(()=>J,":first-child"),q.attr("class","basic label-container").attr("style",Me(x))}else q=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",W);return q.attr("transform",`translate(${-v/2}, ${-M/2})`),O(e,q),e.calcIntersect=function(H,K){return T.rect(H,K)},e.intersect=function(H){return a.info("Bang intersect",e,H),T.rect(e,H)},o}t(S0,"bang");async function T0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:c,label:l}=await U(r,e,te(e)),p=n.width+2*c,y=n.height+2*c,d=0.15*p,x=0.25*p,b=0.35*p,_=0.2*p,{cssStyles:v}=e,M,q=`M0 0
|
|
260
|
-
a${d},${d} 0 0,1 ${p*0.25},${-1*p*0.1}
|
|
261
|
-
a${b},${b} 1 0,1 ${p*0.4},${-1*p*0.1}
|
|
262
|
-
a${x},${x} 1 0,1 ${p*0.35},${p*0.2}
|
|
263
|
-
|
|
264
|
-
a${d},${d} 1 0,1 ${p*0.15},${y*0.35}
|
|
265
|
-
a${_},${_} 1 0,1 ${-1*p*0.15},${y*0.65}
|
|
266
|
-
|
|
267
|
-
a${x},${d} 1 0,1 ${-1*p*0.25},${p*0.15}
|
|
268
|
-
a${b},${b} 1 0,1 ${-1*p*0.5},0
|
|
269
|
-
a${d},${d} 1 0,1 ${-1*p*0.25},${-1*p*0.15}
|
|
270
|
-
|
|
271
|
-
a${d},${d} 1 0,1 ${-1*p*0.1},${-1*y*0.35}
|
|
272
|
-
a${_},${_} 1 0,1 ${p*0.1},${-1*y*0.65}
|
|
273
|
-
H0 V0 Z`;if(e.look==="handDrawn"){let W=g.svg(o),H=Kt(e,{}),K=W.path(q,H);M=o.insert(()=>K,":first-child"),M.attr("class","basic label-container").attr("style",Me(v))}else M=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",q);return l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),M.attr("transform",`translate(${-p/2}, ${-y/2})`),O(e,M),e.calcIntersect=function(W,H){return T.rect(W,H)},e.intersect=function(W){return a.info("Cloud intersect",e,W),T.rect(e,W)},o}t(T0,"cloud");async function _0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:c,label:l}=await U(r,e,te(e)),p=n.width+8*c,y=n.height+2*c,d=5,x=e.look==="neo"?`
|
|
274
|
-
M${-p/2} ${y/2-d}
|
|
275
|
-
v${-y+2*d}
|
|
276
|
-
q0,-${d} ${d},-${d}
|
|
277
|
-
h${p-2*d}
|
|
278
|
-
q${d},0 ${d},${d}
|
|
279
|
-
v${y-d}
|
|
280
|
-
H${-p/2}
|
|
281
|
-
Z
|
|
282
|
-
`:`
|
|
283
|
-
M${-p/2} ${y/2-d}
|
|
284
|
-
v${-y+2*d}
|
|
285
|
-
q0,-${d} ${d},-${d}
|
|
286
|
-
h${p-2*d}
|
|
287
|
-
q${d},0 ${d},${d}
|
|
288
|
-
v${y-2*d}
|
|
289
|
-
q0,${d} ${-d},${d}
|
|
290
|
-
h${-(p-2*d)}
|
|
291
|
-
q${-d},0 ${-d},${-d}
|
|
292
|
-
Z
|
|
293
|
-
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let b=o.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",s).attr("d",x);return o.append("line").attr("class","node-line-").attr("x1",-p/2).attr("y1",y/2).attr("x2",p/2).attr("y2",y/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),o.append(()=>l.node()),O(e,b),e.calcIntersect=function(_,v){return T.rect(_,v)},e.intersect=function(_){return T.rect(e,_)},o}t(_0,"defaultMindmapNode");async function B0(r,e){let i={padding:e.padding??0};return id(r,e,i)}t(B0,"mindmapCircle");var vS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:i0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:t0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:o0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:l0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:xx},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Cx},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:_x},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:rx},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:cx},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:ax},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:yx},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:S0},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:T0},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Zx},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Lx},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Rx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Px},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:d0},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:$x},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:kx},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:u0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:nx},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:e0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:n0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:a0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bx},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Fx},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:dx},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:px},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:gx},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qx},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:m0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:vx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:f0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Nx},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:mx},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:bx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:g0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:x0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Sx},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:p0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:r0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Vx},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Xx},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:ex},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:fx},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:c0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:h0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:y0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Qx},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Wx}],LS=t(()=>{let e=[...Object.entries({state:s0,choice:lx,note:Kx,composite:hx,rectWithTitle:Jx,labelRect:Dx,block_arrow:sx,collapsedGroup:ox,iconSquare:Ox,iconCircle:Mx,icon:Ax,iconRounded:Ex,imageSquare:Ix,anchor:Jy,kanbanItem:w0,mindmapCircle:B0,defaultMindmapNode:_0,classBox:b0,erBox:sd,requirementBox:k0,usecaseActor:zx,usecaseActorHollow:Yx,usecaseActorAwesome:Hx,usecaseActorIcon:Ux,usecaseBusiness:jx,usecaseEllipse:wx,usecaseJsonTable:Gx}),...vS.flatMap((i)=>[i.shortName,..."aliases"in i?i.aliases:[],..."internalAliases"in i?i.internalAliases:[]].map((o)=>[o,i.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Li=LS();function Xa(r){return r in Li}t(Xa,"isValidShape");var bn=t(({flowchart:r})=>{let e=r?.subGraphTitleMargin?.top??0,i=r?.subGraphTitleMargin?.bottom??0,s=e+i;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:s}},"getSubGraphTitleMargins"),lh=new Map;async function xn(r,e,i){let s,o;if(e.shape==="rect")if(e.rx&&e.ry)e.shape="roundedRect";else e.shape="squareRect";let n=e.shape?Li[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let c;if(i.config.securityLevel==="sandbox")c="_top";else if(e.linkTarget)c=e.linkTarget||"_blank";s=r.insert("svg:a").attr("xlink:href",e.link).attr("target",c??null),o=await n(s,e,i)}else o=await n(r,e,i),s=o;if(s.attr("data-look",Me(e.look)),e.tooltip)o.attr("title",e.tooltip);if(lh.set(e.id,s),e.haveCallback)s.attr("class",s.attr("class")+" clickable");return s}t(xn,"insertNode");var vl=t((r,e)=>{lh.set(e.id,r)},"setNodeElem"),bl=t(()=>{lh.clear()},"clear"),cn=t((r)=>{let e=lh.get(r.id);a.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let i=8,s=r.diff||0;if(r.clusterNode)e.attr("transform","translate("+(r.x+s-r.width/2)+", "+(r.y-r.height/2-i)+")");else e.attr("transform","translate("+r.x+", "+r.y+")");return s},"positionNode");var FS=t(async(r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:c,clusterBorder:l,borderColorArray:p}=o,y=l,{labelStyles:d,nodeStyles:x,borderStyles:b,backgroundStyles:_}=E(e),v=r.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);It(v,e.colorIndex,s,p);let M=on(i.flowchart.htmlLabels),q=e.direction==="LR",W=v.insert("g").attr("class","cluster-label swimlane-label"),H=await it(W,e.label,{style:e.labelStyle,useHtmlLabels:M,isNode:!0,width:e.width}),K=H.getBBox();if(M){let gt=H.children[0],et=h(H);K=gt.getBoundingClientRect(),et.attr("width",K.width),et.attr("height",K.height)}let J=e.padding??0,tt=e.width<=K.width+J?K.width+J:e.width;if(e.width<=K.width+J)e.diff=(tt-e.width)/2-J;else e.diff=-J;let nt=e.height,st=e.y-nt/2,ft=e.y+nt/2,xt=e.x-tt/2,Ft=e.swimlaneContentTop!==void 0?e.swimlaneContentTop:st+nt/3,kt=q?4:0,Ct=K.height+2*kt,rt,ot;if(q){let gt=Math.max(Ct,K.height+2*kt),et=xt+gt,wt=Math.max(0,tt-gt);if(e.look==="handDrawn"){let Xt=g.svg(v),se=Kt(e,{roughness:0.7,fill:c,stroke:y,seed:n}),oe=Kt(e,{roughness:0.7,fill:"none",stroke:y,seed:n}),de=Xt.rectangle(xt,st,gt,nt,se);rt=v.insert(()=>de,":first-child").attr("class","swimlane-title");let ge=Xt.rectangle(et,st,wt,nt,oe);ot=v.insert(()=>ge,":first-child").attr("class","swimlane-body"),rt.select("path:nth-child(2)").attr("style",b.join(";")),rt.select("path").attr("style",_.join(";").replace("fill","stroke"))}else rt=v.insert("rect",":first-child"),ot=v.insert("rect",":first-child"),rt.attr("class","swimlane-title").attr("style",x).attr("x",xt).attr("y",st).attr("width",gt).attr("height",nt).attr("fill",c).attr("stroke",y),ot.attr("class","swimlane-body").attr("style",x).attr("x",et).attr("y",st).attr("width",wt).attr("height",nt).attr("fill","none").attr("stroke",y);let At=xt+gt/2,Vt=e.y;W.attr("transform",`translate(${At}, ${Vt}) rotate(-90) translate(${-K.width/2}, ${-K.height/2})`)}else{let gt=Math.max(0,Ft-st),et=Math.min(Ct,gt),wt=st+et,At=Math.max(0,ft-wt),Vt=e.x-tt/2;if(e.look==="handDrawn"){let oe=g.svg(v),de=Kt(e,{roughness:0.7,fill:c,stroke:y,fillWeight:3,seed:n}),ge=Kt(e,{roughness:0.7,fill:"none",stroke:y,seed:n}),he=oe.rectangle(Vt,st,tt,et,de);rt=v.insert(()=>he,":first-child").attr("class","swimlane-title");let Gt=oe.rectangle(Vt,wt,tt,At,ge);ot=v.insert(()=>Gt,":first-child").attr("class","swimlane-body"),rt.select("path:nth-child(2)").attr("style",b.join(";")),rt.select("path").attr("style",_.join(";").replace("fill","stroke"))}else rt=v.insert("rect",":first-child"),ot=v.insert("rect",":first-child"),rt.attr("class","swimlane-title").attr("style",x).attr("x",Vt).attr("y",st).attr("width",tt).attr("height",et).attr("fill",c).attr("stroke",y),ot.attr("class","swimlane-body").attr("style",x).attr("x",Vt).attr("y",wt).attr("width",tt).attr("height",At).attr("fill","none").attr("stroke",y);let Xt=e.x-K.width/2,se=st+(et-K.height)/2;W.attr("transform",`translate(${Xt}, ${se})`)}if(a.trace("Swimlane data ",e,JSON.stringify(e)),d){let gt=W.select("span");if(gt)gt.attr("style",d)}return e.offsetX=0,e.width=tt,e.height=nt,e.offsetY=K.height-J/2,e.intersect=function(gt){return ii(e,gt)},{cluster:v,labelBBox:K}},"swimlane"),v0=t(async(r,e)=>{a.info("Creating subgraph rect for ",e.id,e);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:c,clusterBorder:l,borderColorArray:p}=o,{labelStyles:y,nodeStyles:d,borderStyles:x,backgroundStyles:b}=E(e),_=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);It(_,e.colorIndex,s,p);let v=Ye(i),M=_.insert("g").attr("class","cluster-label "),q;if(e.labelType==="markdown")q=await it(M,e.label,{style:e.labelStyle,useHtmlLabels:v,isNode:!0,width:e.width});else q=await Hr(M,e.label,e.labelStyle||"",!1,!0);let W=q.getBBox();if(Ye(i)){let xt=q.children[0],Ft=h(q);W=xt.getBoundingClientRect(),Ft.attr("width",W.width),Ft.attr("height",W.height)}let H=e.width<=W.width+e.padding?W.width+e.padding:e.width;if(e.width<=W.width+e.padding)e.diff=(H-e.width)/2-e.padding;else e.diff=-e.padding;let K=e.height,J=e.x-H/2,tt=e.y-K/2;a.trace("Data ",e,JSON.stringify(e));let nt;if(e.look==="handDrawn"){let xt=g.svg(_),Ft=Kt(e,{roughness:0.7,fill:c,stroke:l,fillWeight:3,seed:n}),kt=xt.path(br(J,tt,H,K,0),Ft);nt=_.insert(()=>(a.debug("Rough node insert CXC",kt),kt),":first-child"),nt.select("path:nth-child(2)").attr("style",x.join(";")),nt.select("path").attr("style",b.join(";").replace("fill","stroke"))}else nt=_.insert("rect",":first-child"),nt.attr("style",d).attr("rx",e.rx).attr("ry",e.ry).attr("x",J).attr("y",tt).attr("width",H).attr("height",K);let{subGraphTitleTopMargin:st}=bn(i);if(M.attr("transform",`translate(${e.x-W.width/2}, ${e.y-e.height/2+st})`),y){let xt=M.select("span");if(xt)xt.attr("style",y)}let ft=nt.node().getBBox();return e.offsetX=0,e.width=ft.width,e.height=ft.height,e.offsetY=W.height-e.padding/2,e.intersect=function(xt){return ii(e,xt)},{cluster:_,labelBBox:W}},"rect"),AS=t((r,e)=>{let i=r.insert("g").attr("class","note-cluster").attr("id",e.domId),s=i.insert("rect",":first-child"),o=0*e.padding,n=o/2;s.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");let c=s.node().getBBox();return e.width=c.width,e.height=c.height,e.intersect=function(l){return ii(e,l)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),MS=t(async(r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{altBackground:c,borderColorArray:l,compositeBackground:p,compositeTitleBackground:y,nodeBorder:d}=o,x=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);It(x,e.colorIndex,s,l);let b=x.insert("g",":first-child"),_=x.insert("g").attr("class","cluster-label"),v=x.append("rect"),M=await Hr(_,e.label,e.labelStyle,void 0,!0),q=M.getBBox();if(Ye(i)){let kt=M.children[0],Ct=h(M);q=kt.getBoundingClientRect(),Ct.attr("width",q.width),Ct.attr("height",q.height)}let W=0*e.padding,H=W/2,K=(e.width<=q.width+e.padding?q.width+e.padding:e.width)+W;if(e.width<=q.width+e.padding)e.diff=(K-e.width)/2-e.padding;else e.diff=-e.padding;let J=e.height+W,tt=e.height+W-q.height-6,nt=e.x-K/2,st=e.y-J/2;e.width=K;let ft=e.y-e.height/2-H+q.height+2,xt;if(e.look==="handDrawn"){let kt=e.cssClasses.includes("statediagram-cluster-alt"),Ct=g.svg(x),rt=e.rx||e.ry?Ct.path(br(nt,st,K,J,10),{roughness:0.7,fill:y,fillStyle:"solid",stroke:d,seed:n}):Ct.rectangle(nt,st,K,J,{seed:n});xt=x.insert(()=>rt,":first-child");let ot=Ct.rectangle(nt,ft,K,tt,{fill:kt?c:p,fillStyle:kt?"hachure":"solid",stroke:d,seed:n});xt=x.insert(()=>rt,":first-child"),v=x.insert(()=>ot),xt.attr("class","outer"),v.attr("class","inner")}else{xt=b.insert("rect",":first-child");let kt="outer";xt.attr("class",kt).attr("x",nt).attr("y",st).attr("width",K).attr("height",J).attr("data-look",e.look),v.attr("class","inner").attr("x",nt).attr("y",ft).attr("width",K).attr("height",tt)}_.attr("transform",`translate(${e.x-q.width/2}, ${st+1-(Ye(i)?0:3)})`);let Ft=xt.node().getBBox();return e.height=Ft.height,e.offsetX=0,e.offsetY=q.height-e.padding/2,e.labelBBox=q,e.intersect=function(kt){return ii(e,kt)},{cluster:x,labelBBox:q}},"roundedWithTitle"),ES=t(async(r,e)=>{a.info("Creating subgraph rect for ",e.id,e);let i=u(),{themeVariables:s,handDrawnSeed:o}=i,{clusterBkg:n,clusterBorder:c}=s,{labelStyles:l,nodeStyles:p,borderStyles:y,backgroundStyles:d}=E(e),x=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),b=Ye(i),_=x.insert("g").attr("class","cluster-label "),v=await it(_,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0,width:e.width}),M=v.getBBox();if(Ye(i)){let st=v.children[0],ft=h(v);M=st.getBoundingClientRect(),ft.attr("width",M.width),ft.attr("height",M.height)}let q=e.width<=M.width+e.padding?M.width+e.padding:e.width;if(e.width<=M.width+e.padding)e.diff=(q-e.width)/2-e.padding;else e.diff=-e.padding;let W=e.height,H=e.x-q/2,K=e.y-W/2;a.trace("Data ",e,JSON.stringify(e));let J;if(e.look==="handDrawn"){let st=g.svg(x),ft=Kt(e,{roughness:0.7,fill:n,stroke:c,fillWeight:4,seed:o}),xt=st.path(br(H,K,q,W,e.rx),ft);J=x.insert(()=>(a.debug("Rough node insert CXC",xt),xt),":first-child"),J.select("path:nth-child(2)").attr("style",y.join(";")),J.select("path").attr("style",d.join(";").replace("fill","stroke"))}else J=x.insert("rect",":first-child"),J.attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",H).attr("y",K).attr("width",q).attr("height",W);let{subGraphTitleTopMargin:tt}=bn(i);if(_.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+tt})`),l){let st=_.select("span");if(st)st.attr("style",l)}let nt=J.node().getBBox();return e.offsetX=0,e.width=nt.width,e.height=nt.height,e.offsetY=M.height-e.padding/2,e.intersect=function(st){return ii(e,st)},{cluster:x,labelBBox:M}},"kanbanSection"),OS=t((r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{altBackground:c,nodeBorder:l,borderColorArray:p}=o,y=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);It(y,e.colorIndex,s,p);let d=y.insert("g",":first-child"),x=0*e.padding,b=e.width+x;e.diff=-e.padding;let _=e.height+x,v=e.x-b/2,M=e.y-_/2;e.width=b;let q;if(e.look==="handDrawn"){let K=g.svg(y).rectangle(v,M,b,_,{fill:c??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:n});q=y.insert(()=>K,":first-child").attr("class","divider")}else{q=d.insert("rect",":first-child");let H="outer";if(e.look==="neo")H="divider";else H="divider";q.attr("class",H).attr("x",v).attr("y",M).attr("width",b).attr("height",_).attr("data-look",e.look)}let W=q.node().getBBox();return e.height=W.height,e.offsetX=0,e.offsetY=0,e.intersect=function(H){return ii(e,H)},{cluster:y,labelBBox:{}}},"divider"),IS=t(async(r,e,i)=>{a.info(`Creating ${i.cssClass} for `,e.id,e);let s=u(),{theme:o,themeVariables:n,handDrawnSeed:c}=s,{borderColorArray:l}=n,{labelStyles:p,borderStyles:y}=E(e),d=r.insert("g").attr("class","cluster "+i.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);It(d,e.colorIndex,o,l);let x=Ye(s),b=d.insert("g").attr("class","cluster-label"),_={width:0,height:0},v=e.label?.trim();if(v){let tt;if(e.labelType==="markdown")tt=await it(b,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width});else tt=await Hr(b,e.label,e.labelStyle||"",!1,!0);if(_=tt.getBBox(),x){let nt=tt.children[0],st=h(tt);_=nt.getBoundingClientRect(),st.attr("width",_.width),st.attr("height",_.height)}}let M=e.width<=_.width+e.padding?_.width+e.padding:e.width;if(e.width<=_.width+e.padding)e.diff=(M-e.width)/2-e.padding;else e.diff=-e.padding;let q=e.height,W=e.x-M/2,H=e.y-q/2,K;if(e.look==="handDrawn"){let tt=g.svg(d),nt=Kt(e,{roughness:i.roughness,fill:i.fill,stroke:i.stroke,strokeWidth:i.strokeWidth,seed:c,...i.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...i.strokeDash?{strokeLineDash:i.strokeDash}:{}}),st=tt.path(br(W,H,M,q,i.rx),nt);K=d.insert(()=>st,":first-child"),K.select("path:nth-child(2)").attr("style",y.join(";"))}else if(K=d.insert("rect",":first-child"),K.attr("rx",i.rx).attr("ry",i.rx).attr("x",W).attr("y",H).attr("width",M).attr("height",q).attr("fill",i.fill).attr("stroke",i.stroke).attr("stroke-width",i.strokeWidth+"px"),i.strokeDash)K.attr("stroke-dasharray",i.strokeDash.join(", "));if(v){let{subGraphTitleTopMargin:tt}=bn(s);if(b.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+tt})`),p){let nt=b.select("span");if(nt)nt.attr("style",p)}}let J=K.node().getBBox();return e.offsetX=0,e.width=J.width,e.height=J.height,e.offsetY=_.height-e.padding/2,e.intersect=function(tt){return ii(e,tt)},{cluster:d,labelBBox:_}},"createContainerGroup"),$S=t(async(r,e)=>{let{themeVariables:i}=u(),s=i.flowContainerStroke||i.secondaryBorderColor;return IS(r,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:s,strokeWidth:0.75,roughness:0.7})},"flowGroup"),DS=t((r,e)=>{let i=r.boundaryType||"rect",s=i==="package"?20:r.padding,o=i==="package"?e.height+10:0,n=Math.max(r.width,e.width+s),c=i==="package"?Math.max(r.height,o+r.padding*2):r.height,l=r.x-n/2,p=r.y-c/2;return{boundaryType:i,width:n,height:c,x:l,y:p,bodyY:p+o,bodyHeight:c-o,tabHeight:o,tabWidth:i==="package"?Math.min(n,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),PS=t(async(r,e)=>{a.info("Creating usecase system boundary for ",e.id,e);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:c,clusterBorder:l,borderColorArray:p}=o,{labelStyles:y,nodeStyles:d}=E(e),{stylesMap:x}=Qr(e),b=e.boundaryType||"rect",_=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${b} ${e.cssClasses}`).attr("id",typeof e.domId==="string"?e.domId:e.id).attr("data-boundary-type",b).attr("data-look",e.look);It(_,e.colorIndex,s,p);let v=Ye(i),M=_.insert("g").attr("class","cluster-label system-boundary-title"),q=await it(M,e.label,{style:y,useHtmlLabels:v,isNode:!0}),W=q.getBBox();if(v){let rt=q.children[0],ot=h(q);W=rt.getBoundingClientRect(),ot.attr("width",W.width),ot.attr("height",W.height)}let H=DS(e,W),{width:K,height:J,x:tt,y:nt,bodyY:st,bodyHeight:ft,tabHeight:xt,tabWidth:Ft}=H;e.diff=e.width<=W.width+e.padding?(K-e.width)/2-e.padding:-e.padding;let kt=Kt(e,{fill:x.get("fill")||c,stroke:x.get("stroke")||l,strokeWidth:x.get("stroke-width")?.replace("px","")||1,seed:n});if(e.look==="handDrawn"){let rt=g.svg(_),ot=rt.rectangle(tt,st,K,ft,kt);if(_.insert(()=>ot,":first-child").attr("class","boundary-body label-container"),b==="package"){let gt=rt.rectangle(tt,nt,Ft,xt,kt);_.insert(()=>gt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(_.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",d).attr("x",tt).attr("y",st).attr("width",K).attr("height",ft),b==="package")_.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",d).attr("x",tt).attr("y",nt).attr("width",Ft).attr("height",xt);let{subGraphTitleTopMargin:Ct}=bn(i);if(b==="package")M.attr("transform",`translate(${tt+(Ft-W.width)/2}, ${nt+(xt-W.height)/2})`);else M.attr("transform",`translate(${e.x-W.width/2}, ${nt+Ct})`);if(y)M.attr("style",y),M.select("span").attr("style",y);return e.offsetX=0,e.width=K,e.height=J,e.offsetY=W.height-e.padding/2,e.labelBBox=W,e.intersect=function(rt){return ii(e,rt)},{cluster:_,labelBBox:W}},"usecaseSystemBoundary"),RS=v0,qS={rect:v0,squareRect:RS,roundedWithTitle:MS,noteGroup:AS,divider:OS,kanbanSection:ES,flowGroup:$S,usecaseSystemBoundary:PS,swimlane:FS};var L0=new Map,Qn=t(async(r,e)=>{let i=e.shape||"rect",s=await qS[i](r,e);return L0.set(e.id,s),s},"insertCluster"),xl=t(()=>{L0=new Map},"clear");var rn=t((r,e)=>{if(e)return"translate("+-r.width/2+", "+-r.height/2+")";let i=r.x??0,s=r.y??0;return"translate("+-(i+r.width/2)+", "+-(s+r.height/2)+")"},"computeLabelTransform"),ut={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},F0={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function nn(r,e){if(r===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};r=Ae(r),e=Ae(e);let[i,s]=[r.x,r.y],[o,n]=[e.x,e.y],c=o-i,l=n-s;return{angle:Math.atan(l/c),deltaX:c,deltaY:l}}t(nn,"calculateDeltaAndAngle");var Ae=t((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),NS=t((r)=>({x:t(function(e,i,s){let o=0,n=Ae(s[0]).x<Ae(s[s.length-1]).x?"left":"right";if(i===0&&Object.hasOwn(ut,r.arrowTypeStart)){let{angle:_,deltaX:v}=nn(s[0],s[1]);o=ut[r.arrowTypeStart]*Math.cos(_)*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(ut,r.arrowTypeEnd)){let{angle:_,deltaX:v}=nn(s[s.length-1],s[s.length-2]);o=ut[r.arrowTypeEnd]*Math.cos(_)*(v>=0?1:-1)}let c=Math.abs(Ae(e).x-Ae(s[s.length-1]).x),l=Math.abs(Ae(e).y-Ae(s[s.length-1]).y),p=Math.abs(Ae(e).x-Ae(s[0]).x),y=Math.abs(Ae(e).y-Ae(s[0]).y),d=ut[r.arrowTypeStart],x=ut[r.arrowTypeEnd],b=1;if(c<x&&c>0&&l<x){let _=x+b-c;_*=n==="right"?-1:1,o-=_}if(p<d&&p>0&&y<d){let _=d+b-p;_*=n==="right"?-1:1,o+=_}return Ae(e).x+o},"x"),y:t(function(e,i,s){let o=0,n=Ae(s[0]).y<Ae(s[s.length-1]).y?"down":"up";if(i===0&&Object.hasOwn(ut,r.arrowTypeStart)){let{angle:_,deltaY:v}=nn(s[0],s[1]);o=ut[r.arrowTypeStart]*Math.abs(Math.sin(_))*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(ut,r.arrowTypeEnd)){let{angle:_,deltaY:v}=nn(s[s.length-1],s[s.length-2]);o=ut[r.arrowTypeEnd]*Math.abs(Math.sin(_))*(v>=0?1:-1)}let c=Math.abs(Ae(e).y-Ae(s[s.length-1]).y),l=Math.abs(Ae(e).x-Ae(s[s.length-1]).x),p=Math.abs(Ae(e).y-Ae(s[0]).y),y=Math.abs(Ae(e).x-Ae(s[0]).x),d=ut[r.arrowTypeStart],x=ut[r.arrowTypeEnd],b=1;if(c<x&&c>0&&l<x){let _=x+b-c;_*=n==="up"?-1:1,o-=_}if(p<d&&p>0&&y<d){let _=d+b-p;_*=n==="up"?-1:1,o+=_}return Ae(e).y+o},"y")}),"getLineFunctionsWithOffset"),WS=t((r,e,i,s,o,n=!1,c)=>{if(e.arrowTypeStart)A0(r,"start",e.arrowTypeStart,i,s,o,n,c);if(e.arrowTypeEnd)A0(r,"end",e.arrowTypeEnd,i,s,o,n,c)},"addEdgeMarkers"),zS={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},HS=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],A0=t((r,e,i,s,o,n,c=!1,l)=>{if(!i||i==="none")return;let p=zS[i],y=p&&HS.includes(p.type);if(!p){a.warn(`Unknown arrow type: ${i}`);return}let d=p.type,_=`${o}_${n}-${d}${e==="start"?"Start":"End"}${c&&y?"-margin":""}`;if(l&&l.trim()!==""){let v=l.replace(/[^\dA-Za-z]/g,"_"),M=`${_}_${v}`;if(!document.getElementById(M)){let q=document.getElementById(_);if(q){let W=q.cloneNode(!0);W.id=M,W.querySelectorAll("path, circle, line").forEach((K)=>{if(K.setAttribute("stroke",l),p.fill)K.setAttribute("fill",l)}),q.parentNode?.appendChild(W)}}r.attr(`marker-${e}`,`url(${s}#${M})`)}else r.attr(`marker-${e}`,`url(${s}#${_})`)},"addEdgeMarker"),YS=t((r)=>typeof r==="string"?r:u()?.flowchart?.curve,"resolveEdgeCurveType"),sa=new Map,dt=new Map,_l=t(()=>{sa.clear(),dt.clear()},"clear"),Gs=t((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),an=t((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((e,i)=>e+";"+i,"")},"getLabelStyles"),_n=t(async(r,e)=>{let i=u(),s=Ye(i),{labelStyles:o}=E(e);e.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),c=n.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",p=void 0,y=await it(r,e.label,{style:an(e.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:l,width:l?p:void 0},i);c.node().appendChild(y),a.info("abc82",e,e.labelType);let d,x;if(s){let _=y.children[0],v=h(y);d=await yi.measure(()=>_.getBoundingClientRect()),x=d,v.attr("width",d.width),v.attr("height",d.height)}else{let _=h(y).select("text").node();await yi.measure(()=>{if(d=y.getBBox(),_&&typeof _.getBBox==="function")x=_.getBBox();else x=d})}c.attr("transform",rn(x,s)),sa.set(e.id,n),e.width=d.width,e.height=d.height;let b;if(e.startLabelLeft){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.startLabelLeft,an(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],H=h(M);q=W.getBoundingClientRect(),H.attr("width",q.width),H.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!dt.get(e.id))dt.set(e.id,{});dt.get(e.id).startLeft=_,un(b,e.startLabelLeft,q),hn(e,"startLeft",q)}if(e.startLabelRight){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.startLabelRight,an(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],H=h(M);q=W.getBoundingClientRect(),H.attr("width",q.width),H.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!dt.get(e.id))dt.set(e.id,{});dt.get(e.id).startRight=_,un(b,e.startLabelRight,q),hn(e,"startRight",q)}if(e.endLabelLeft){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.endLabelLeft,an(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],H=h(M);q=W.getBoundingClientRect(),H.attr("width",q.width),H.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!dt.get(e.id))dt.set(e.id,{});dt.get(e.id).endLeft=_,un(b,e.endLabelLeft,q),hn(e,"endLeft",q)}if(e.endLabelRight){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.endLabelRight,an(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],H=h(M);q=W.getBoundingClientRect(),H.attr("width",q.width),H.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!dt.get(e.id))dt.set(e.id,{});dt.get(e.id).endRight=_,un(b,e.endLabelRight,q),hn(e,"endRight",q)}return y},"insertEdgeLabel");function hn(r,e,i){r.terminalLabelSizes??={},r.terminalLabelSizes[e]={width:i.width,height:i.height}}t(hn,"recordTerminalLabelSize");function un(r,e,i){if(Ye(u())&&r)r.style.width=Math.max(e.length*9,i.width)+"px",r.style.height=i.height+"px"}t(un,"setTerminalWidth");var Hs=t((r,e)=>{let{x:i,y:s}=r;if(e?.updatedPath){let o=F.calcLabelPosition(e.updatedPath);if(e.originalPath){let n=F.calcLabelPosition(e.originalPath);i=r.x+(o.x-n.x),s=r.y+(o.y-n.y)}else i=o.x,s=o.y}return{x:i,y:s}},"resolveEdgeLabelPosition"),la=t((r,e)=>{a.debug("Moving label abc88 ",r.id,r.label,sa.get(r.id),e);let i=u(),{subGraphTitleTotalMargin:s}=bn(i);if(r.label){let n=sa.get(r.id),{x:c,y:l}=Hs(r,e);a.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",c,",",l,") abc88"),n.attr("transform",`translate(${c}, ${l+s/2})`)}let o=e.updatedPath?e.updatedPath:e.originalPath;if(r.startLabelLeft){let n=dt.get(r.id).startLeft,{x:c,y:l}=r;if(o){let p=F.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",o);c=p.x,l=p.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.startLabelRight){let n=dt.get(r.id).startRight,{x:c,y:l}=r;if(o){let p=F.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",o);c=p.x,l=p.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelLeft){let n=dt.get(r.id).endLeft,{x:c,y:l}=r;if(o){let p=F.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",o);c=p.x,l=p.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelRight){let n=dt.get(r.id).endRight,{x:c,y:l}=r;if(o){let p=F.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",o);c=p.x,l=p.y}n.attr("transform",`translate(${c}, ${l})`)}},"positionEdgeLabel"),US=t((r,e)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(e))return e;if(e.length!==2)return e;let[i,s]=e,o=Math.abs(s.x-i.x),n=Math.abs(s.y-i.y);if(o<0.001||n<0.001)return e;if(n>=o)return[i,{x:i.x,y:s.y},s];return[i,{x:s.x,y:i.y},s]},"orthogonalizeToLabelClippedPoints"),jS=t((r,e)=>{let{x:i,y:s}=r,o=Math.abs(e.x-i),n=Math.abs(e.y-s),c=r.width/2,l=r.height/2;return o>=c||n>=l},"outsideNode"),GS=t((r,e,i)=>{a.debug(`intersection calc abc89:
|
|
294
|
-
outsidePoint: ${JSON.stringify(e)}
|
|
295
|
-
insidePoint : ${JSON.stringify(i)}
|
|
296
|
-
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:s,y:o}=r,n=Math.abs(s-i.x),c=r.width/2,l=i.x<e.x?c-n:c+n,p=r.height/2,y=Math.abs(e.y-i.y),d=Math.abs(e.x-i.x);if(Math.abs(o-e.y)*c>Math.abs(s-e.x)*p){let x=i.y<e.y?e.y-p-o:o-p-e.y;l=d*x/y;let b={x:i.x<e.x?i.x+l:i.x-d+l,y:i.y<e.y?i.y+y-x:i.y-y+x};if(l===0)b.x=e.x,b.y=e.y;if(d===0)b.x=e.x;if(y===0)b.y=e.y;return a.debug(`abc89 top/bottom calc, Q ${y}, q ${x}, R ${d}, r ${l}`,b),b}else{if(i.x<e.x)l=e.x-c-s;else l=s-c-e.x;let x=y*l/d,b=i.x<e.x?i.x+d-l:i.x-d+l,_=i.y<e.y?i.y+x:i.y-x;if(a.debug(`sides calc abc89, Q ${y}, q ${x}, R ${d}, r ${l}`,{_x:b,_y:_}),l===0)b=e.x,_=e.y;if(d===0)b=e.x;if(y===0)_=e.y;return{x:b,y:_}}},"intersection"),M0=t((r,e)=>{a.warn("abc88 cutPathAtIntersect",r,e);let i=[],s=r[0],o=!1;return r.forEach((n)=>{if(a.info("abc88 checking point",n,e),!jS(e,n)&&!o){let c=GS(e,s,n);a.debug("abc88 inside",n,s,c),a.debug("abc88 intersection",c,e);let l=!1;if(i.forEach((p)=>{l=l||p.x===c.x&&p.y===c.y}),!i.some((p)=>p.x===c.x&&p.y===c.y))i.push(c);else a.warn("abc88 no intersect",c,i);o=!0}else if(a.warn("abc88 outside",n,s),s=n,!o)i.push(n)}),a.debug("returning points",i),i},"cutPathAtIntersect");function O0(r){let e=[],i=[];for(let s=1;s<r.length-1;s++){let o=r[s-1],n=r[s],c=r[s+1];if(o.x===n.x&&n.y===c.y&&Math.abs(n.x-c.x)>5&&Math.abs(n.y-o.y)>5)e.push(n),i.push(s);else if(o.y===n.y&&n.x===c.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-c.y)>5)e.push(n),i.push(s)}return{cornerPoints:e,cornerPointPositions:i}}t(O0,"extractCornerPoints");var E0=t(function(r,e,i){let s=e.x-r.x,o=e.y-r.y,n=Math.sqrt(s*s+o*o),c=i/n;return{x:e.x-c*s,y:e.y-c*o}},"findAdjacentPoint"),XS=t(function(r){let{cornerPointPositions:e}=O0(r),i=[];for(let s=0;s<r.length;s++)if(e.includes(s)){let o=r[s-1],n=r[s+1],c=r[s],l=E0(o,c,5),p=E0(n,c,5),y=p.x-l.x,d=p.y-l.y;i.push(l);let x=Math.sqrt(2)*2,b={x:c.x,y:c.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){a.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let _=5;if(c.x===l.x)b={x:y<0?l.x-_+x:l.x+_-x,y:d<0?l.y-x:l.y+x};else b={x:y<0?l.x-x:l.x+x,y:d<0?l.y-_+x:l.y+_-x}}else a.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));i.push(b,p)}else i.push(r[s]);return i},"fixCorners"),VS=t((r,e,i)=>{let s=r-e-i,o=2,n=2,c=4,l=Math.floor(s/4),p=Number.isFinite(l)?Math.max(0,l):0,y=Array(p).fill("2 2").join(" ");return`0 ${e} ${y} ${i}`},"generateDashArray"),Jn=t(function(r,e,i,s,o,n,c,l=!1,p=void 0){if(!c)throw Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:y,layout:d}=u(),x=p??d,b=e.points,_=!1,v=o;var M=n;let q=[];for(let Xt in e.cssCompiledStyles){if(Si(Xt))continue;q.push(e.cssCompiledStyles[Xt])}if(x==="swimlane"){if(!l&&M.intersect&&v.intersect&&Array.isArray(b)&&b.length>=2)if(b.length===2)b=[v.intersect(b[0]),M.intersect(b[1])];else{let Xt=b.slice(1,-1),se=Xt[0],oe=Xt[Xt.length-1],de=0.5,ge=Math.abs(b[b.length-1].x-oe.x)<0.5&&Math.abs(b[b.length-1].y-oe.y)<0.5,he=v.intersect(se),Gt=ge?oe:M.intersect(oe),re=Math.abs(Gt.x-oe.x)<0.5&&Math.abs(Gt.y-oe.y)<0.5,ne=Math.abs(he.x-se.x)<0.5&&Math.abs(he.y-se.y)<0.5?[]:[he],Le=re?[]:[Gt];b=[...ne,...Xt,...Le]}b=US(e,b)}else if(M.intersect&&v.intersect&&!l)b=b.slice(1,e.points.length-1),b.unshift(v.intersect(b[0])),b.push(M.intersect(b[b.length-1]));let W=btoa(JSON.stringify(b));if(e.toCluster)a.info("to cluster abc88",i.get(e.toCluster)),b=M0(e.points,i.get(e.toCluster).node),_=!0;if(e.fromCluster)a.debug("from cluster abc88",i.get(e.fromCluster),JSON.stringify(b,null,2)),b=M0(b.reverse(),i.get(e.fromCluster).node).reverse(),_=!0;let H=b.filter((Xt)=>!Number.isNaN(Xt.y)),K=YS(e.curve);if(K!=="rounded")H=XS(H);let J=Zr;switch(K){case"linear":J=Zr;break;case"basis":J=Zi;break;case"cardinal":J=wa;break;case"bumpX":J=ia;break;case"bumpY":J=ba;break;case"catmullRom":J=Ta;break;case"monotoneX":J=_a;break;case"monotoneY":J=va;break;case"natural":J=rs;break;case"step":J=is;break;case"stepAfter":J=Aa;break;case"stepBefore":J=La;break;case"rounded":J=Zr;break;default:J=Zi}let{x:tt,y:nt}=NS(e),st=aa().x(tt).y(nt).curve(J),ft;switch(e.thickness){case"normal":ft="edge-thickness-normal";break;case"thick":ft="edge-thickness-thick";break;case"invisible":ft="edge-thickness-invisible";break;default:ft="edge-thickness-normal"}switch(e.pattern){case"solid":ft+=" edge-pattern-solid";break;case"dotted":ft+=" edge-pattern-dotted";break;case"dashed":ft+=" edge-pattern-dashed";break;default:ft+=" edge-pattern-solid"}let xt,Ft=K==="rounded"?I0($0(H,e),5):st(H),kt=Array.isArray(e.style)?e.style:[e.style],Ct=kt.find((Xt)=>Xt?.startsWith("stroke:")),rt="";if(e.animate)rt="edge-animation-fast";if(e.animation)rt="edge-animation-"+e.animation;let ot=!1;if(e.look==="handDrawn"){let Xt=g.svg(r);Object.assign([],H);let se=Xt.path(Ft,{roughness:0.3,seed:y});ft+=" transition",xt=h(se).select("path").attr("id",`${c}-${e.id}`).attr("class"," "+ft+(e.classes?" "+e.classes:"")+(rt?" "+rt:"")).attr("style",kt?kt.reduce((de,ge)=>de+";"+ge,""):"");let oe=xt.attr("d");xt.attr("d",oe),r.node().appendChild(xt.node())}else{let Xt=q.join(";"),se=kt?kt.reduce((re,ae)=>re+ae+";",""):"",oe=(Xt?Xt+";"+se+";":se)+";"+(kt?kt.reduce((re,ae)=>re+";"+ae,""):"");xt=r.append("path").attr("d",Ft).attr("id",`${c}-${e.id}`).attr("class"," "+ft+(e.classes?" "+e.classes:"")+(rt?" "+rt:"")).attr("style",oe),Ct=oe.match(/stroke:([^;]+)/)?.[1],ot=e.animate===!0||!!e.animation||Xt.includes("animation");let de=xt.node(),ge=typeof de.getTotalLength==="function"?de.getTotalLength():0,he=F0[e.arrowTypeStart]||0,Gt=F0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!ot){let ae=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?VS(ge,he,Gt):`0 ${he} ${ge-he-Gt} ${Gt}`}; stroke-dashoffset: 0;`;xt.attr("style",ae+xt.attr("style"))}}if(xt.attr("data-edge",!0),xt.attr("data-et","edge"),xt.attr("data-id",e.id),xt.attr("data-points",W),xt.attr("data-look",Me(e.look)),e.showPoints)H.forEach((Xt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Xt.x).attr("cy",Xt.y)});let gt="";if(u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)gt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,gt=gt.replace(/\(/g,"\\(").replace(/\)/g,"\\)");a.info("arrowTypeStart",e.arrowTypeStart),a.info("arrowTypeEnd",e.arrowTypeEnd);let et=!ot&&e?.look==="neo";WS(xt,e,gt,c,s,et,Ct);let wt=Math.floor(b.length/2),At=b[wt];if(!F.isLabelCoordinateInPath(At,xt.attr("d")))_=!0;let Vt={};if(_)Vt.updatedPath=b;return Vt.originalPath=e.points,Vt},"insertEdge");function I0(r,e){if(r.length<2)return"";let i="",s=r.length,o=0.00001;for(let n=0;n<s;n++){let c=r[n],l=r[n-1],p=r[n+1];if(n===0)i+=`M${c.x},${c.y}`;else if(n===s-1)i+=`L${c.x},${c.y}`;else{let y=c.x-l.x,d=c.y-l.y,x=p.x-c.x,b=p.y-c.y,_=Math.hypot(y,d),v=Math.hypot(x,b);if(_<o||v<o){i+=`L${c.x},${c.y}`;continue}let M=y/_,q=d/_,W=x/v,H=b/v,K=M*W+q*H,J=Math.max(-1,Math.min(1,K)),tt=Math.acos(J);if(tt<o||Math.abs(Math.PI-tt)<o){i+=`L${c.x},${c.y}`;continue}let nt=Math.min(e/Math.sin(tt/2),_/2,v/2),st=c.x-M*nt,ft=c.y-q*nt,xt=c.x+W*nt,Ft=c.y+H*nt;i+=`L${st},${ft}`,i+=`Q${c.x},${c.y} ${xt},${Ft}`}}return i}t(I0,"generateRoundedPath");function ad(r,e){if(!r||!e)return{angle:0,deltaX:0,deltaY:0};let i=e.x-r.x,s=e.y-r.y;return{angle:Math.atan2(s,i),deltaX:i,deltaY:s}}t(ad,"calculateDeltaAndAngle");function $0(r,e){let i=r.map((o)=>({...o}));if(r.length>=2&&ut[e.arrowTypeStart]){let o=ut[e.arrowTypeStart],n=r[0],c=r[1],{angle:l}=ad(n,c),p=o*Math.cos(l),y=o*Math.sin(l);i[0].x=n.x+p,i[0].y=n.y+y}let s=r.length;if(s>=2&&ut[e.arrowTypeEnd]){let o=ut[e.arrowTypeEnd],n=r[s-1],c=r[s-2],{angle:l}=ad(c,n),p=o*Math.cos(l),y=o*Math.sin(l);i[s-1].x=n.x-p,i[s-1].y=n.y-y}return i}t($0,"applyMarkerOffsetsToPoints");var KS=t((r,e,i,s)=>{e.forEach((o)=>{bT[o](r,i,s)})},"insertMarkers"),ZS=t((r,e,i)=>{a.trace("Making markers for ",i),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",i+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),QS=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),JS=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),tT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),eT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),rT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),iT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),oT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",i+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),sT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),aT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),nT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),lT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),cT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),fT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:c}=o,l=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",c??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let p=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");p.append("circle").attr("fill",c??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),p.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),dT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),pT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:c}=o,l=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",c??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let p=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");p.append("circle").attr("fill",c??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),p.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),gT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
297
|
-
L20,10
|
|
298
|
-
M20,10
|
|
299
|
-
L0,20`)},"requirement_arrow"),mT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
300
|
-
L20,10
|
|
301
|
-
M20,10
|
|
302
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o,c=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},ca=KS;var kT={common:k,getConfig:S,insertCluster:Qn,insertEdge:Jn,insertEdgeLabel:_n,insertMarkers:ca,insertNode:xn,interpolateToCurve:Wl,labelHelper:U,log:a,positionEdgeLabel:la},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],fn=Object.create(null),Ys=t((r)=>{for(let e of r)fn[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (C("7qxfx983"),import("./chunk-7qxfx983.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{Ys([{name:"dagre",loader:t(async()=>await (C("k1cd6e24"),import("./chunk-k1cd6e24.js")),"loader")},{name:"swimlane",loader:t(async()=>await (C("md1f6gmk"),import("./chunk-md1f6gmk.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (C("2q3m4btb"),import("./chunk-2q3m4btb.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var ze=t(async(r,e)=>{if(!Object.hasOwn(fn,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let o of r.nodes){let n=o.domId||o.id;o.domId=`${r.diagramId}-${n}`}let i=fn[r.layoutAlgorithm],s=await i.loader();return Eo(e,r.config),s.render(r,e,kT,{algorithm:i.algorithm})},"render"),nd="dagre",Ue=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(fn,r))return r;for(let i of[e,nd])if(Object.hasOwn(fn,i))return a.warn(`Layout algorithm ${r} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
|
|
303
|
-
export{t,Zn,vo,a,xi,Y,ct,Ie,ce,Oa,m,f,at,Is,Ds,Nr,$a,bo,il,Ce,He,Xn,B,Ns,cr,on,xo,ol,sl,ll,Ms,Ps,S,cl,_i,ul,Ye,Jr,j,Os,Kn,Oe,Ba,Fa,k,G,sn,_o,dl,wo,A,R,I,L,D,P,N,u,ur,Mr,za,wi,ko,h,Pr,Ua,Or,Mn,$s,St,ja,pl,dr,ea,yt,qa,_e,Bs,Tt,$r,ml,Co,Pn,ta,vt,Va,ki,na,fl,Fs,ra,hl,Ci,So,To,aa,ia,Q,Ut,jt,Eo,Si,E,zs,Br,qt,oa,Fr,pr,Ao,Wa,Ga,Ha,Ya,Ro,Lo,Io,Do,No,Mo,Po,Oo,$o,Bo,Fo,zo,Uo,jo,qo,Vo,Wo,mr,Za,Ti,Go,Us,gl,Ho,js,qs,zr,Ei,Rt,Ai,Yo,Vs,Et,X,F,yl,On,bt,Zo,Xo,Ws,it,Ri,De,Te,Ee,ln,Lt,It,g,U,O,T,Li,Xa,bn,xn,vl,bl,cn,Qn,xl,ut,sa,dt,_l,Gs,_n,Hs,la,Jn,ca,Ys,ze,Ue};
|