@bkm016/basalt 0.1.16 → 0.1.17
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-9ymm1gge.js → chunk-9jtvj8md.js} +202 -202
- package/compiled.js +1 -1
- package/package.json +1 -1
- package/web/{chunk-75meb0dh.js → chunk-013et20n.js} +2 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +1 -0
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +1 -0
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +1 -0
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +1 -0
- package/web/chunk-0wbdd74r.js.br +2 -0
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +1 -0
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/{chunk-75kzvpf3.js → chunk-1q2kmv35.js} +18 -18
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/{chunk-36e78034.js → chunk-1tfrm3pk.js} +2 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +1 -0
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +1 -0
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +1 -0
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/{chunk-5sss3r97.js → chunk-2wwj27b9.js} +3 -3
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +1 -0
- package/web/chunk-33mmrjdp.js.br +2 -0
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +2 -0
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +1 -0
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/{chunk-n3f5a91k.js → chunk-3xgfsx7y.js} +2 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +2 -0
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/{chunk-mcm3t5wr.js → chunk-41vh5n86.js} +1 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-5kz048x3.js +2 -0
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +3 -0
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +30 -0
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +2 -0
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +1 -0
- package/web/chunk-6q3p851n.js.br +2 -0
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/{chunk-qbhv18t0.js → chunk-74g3wh08.js} +2 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/{chunk-vcnsvj49.js → chunk-78akzkgs.js} +14 -14
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +62 -0
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +1 -0
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +21 -0
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +78 -0
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +1 -0
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/{chunk-t89tfrpj.js → chunk-823etvc3.js} +19 -19
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/{chunk-ps489yjy.js → chunk-8ec53vjd.js} +1 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/{chunk-p0jghn6b.js → chunk-8g55ytgz.js} +1 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8nxjthxc.js +1 -0
- package/web/chunk-8nxjthxc.js.br +0 -0
- package/web/chunk-8nxjthxc.js.gz +0 -0
- package/web/chunk-8q76yd76.js +291 -0
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +1 -0
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +40 -0
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
- package/web/chunk-9vf3zy3d.js.br +0 -0
- package/web/chunk-9vf3zy3d.js.gz +0 -0
- package/web/{chunk-ef03t1mb.js → chunk-a449xjq6.js} +6 -6
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-b05eay33.js +1 -0
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/{chunk-tfsrk2rc.js → chunk-bdypt5mj.js} +55 -55
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +14 -0
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/{chunk-ctmxm4qd.js → chunk-ccy2q2z0.js} +2 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/{chunk-wvt76598.js → chunk-ceg13tma.js} +2 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/{chunk-z2hvvkf5.js → chunk-ch60a61d.js} +2 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +1 -0
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.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-chh8bg2h.js → chunk-dsa5m3h6.js} +34 -34
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +24 -0
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +1 -0
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
- package/web/chunk-emxa4wv3.js.br +0 -0
- package/web/chunk-emxa4wv3.js.gz +0 -0
- package/web/{chunk-gjchc4kg.js → chunk-ey0zwvbx.js} +1 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +2 -0
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +1132 -0
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +39 -0
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +169 -0
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +303 -0
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/{chunk-ybqt106a.js → chunk-gbt7asd7.js} +2 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +1 -0
- package/web/chunk-gh9fkn3t.js.br +2 -0
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/{chunk-mv5axm2y.js → chunk-h7byk4z3.js} +12 -12
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +1 -0
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +1 -0
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/{chunk-qwwqdmhv.js → chunk-hpjzy5ww.js} +1 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/{chunk-1np2aamb.js → chunk-hzfp8kqx.js} +11 -11
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
- package/web/chunk-j6jjk46a.js.br +0 -0
- package/web/chunk-j6jjk46a.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +1 -0
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/{chunk-t9pg7qf8.js → chunk-jc178ad5.js} +2 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +41 -0
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +139 -0
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +7 -0
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +2 -0
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +1 -0
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +34 -0
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/{chunk-vb2z2azk.js → chunk-k295x81w.js} +79 -79
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/{chunk-wcj3bxdf.js → chunk-k3aa37pw.js} +2 -2
- package/web/chunk-k3aa37pw.js.br +0 -0
- package/web/chunk-k3aa37pw.js.gz +0 -0
- package/web/{chunk-wgmwgaw4.js → chunk-k6wxwgp1.js} +26 -26
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +292 -0
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +1 -0
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/{chunk-c0hdp2zj.js → chunk-mcgf645h.js} +1 -1
- package/web/chunk-mcgf645h.js.br +4 -0
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/{chunk-3gj2t10x.js → chunk-mj3tshy8.js} +31 -31
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +24 -0
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +1 -0
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +2 -0
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nj0cv1cq.js.br +0 -0
- package/web/chunk-nj0cv1cq.js.gz +0 -0
- package/web/{chunk-0zyekjym.js → chunk-nwxjdetb.js} +1 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +106 -0
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/{chunk-g8wy9sa6.js → chunk-pcfjcy3a.js} +23 -23
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +1 -0
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +2 -0
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/{chunk-ffn1a0zw.js → chunk-q3njnnef.js} +2 -2
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-qxvqkkmw.js +1 -0
- package/web/chunk-qxvqkkmw.js.br +0 -0
- package/web/chunk-qxvqkkmw.js.gz +0 -0
- package/web/chunk-qych3sbs.js +1 -0
- package/web/chunk-qych3sbs.js.br +0 -0
- package/web/chunk-qych3sbs.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +1 -0
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +1 -0
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +89 -0
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +1 -0
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/{chunk-1hx4xtdk.js → chunk-sbbmy02e.js} +2 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
- package/web/chunk-sgbc835w.js.br +0 -0
- package/web/chunk-sgbc835w.js.gz +0 -0
- package/web/chunk-sydy10mb.js +1 -0
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +1 -0
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/{chunk-hhnhgthx.js → chunk-t72jq97z.js} +2 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/{chunk-6ty9vw27.js → chunk-tfcc9bcz.js} +3 -3
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/{chunk-27tchdxd.js → chunk-v2bvbgfc.js} +2 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/{chunk-madrcnm1.js → chunk-v7zq4vc9.js} +5 -5
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +1 -0
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
- package/web/chunk-vszya05r.js.br +0 -0
- package/web/chunk-vszya05r.js.gz +0 -0
- package/web/chunk-was9xf03.js +8 -0
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +2 -0
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wfa1c8dn.js +1 -0
- package/web/chunk-wfa1c8dn.js.br +0 -0
- package/web/chunk-wfa1c8dn.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +1 -0
- package/web/chunk-wg2exnxe.js.br +2 -0
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +70 -0
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +1 -0
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +1 -0
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/{chunk-0qnetvsc.js → chunk-x8ps0p82.js} +14 -14
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/{chunk-y2ykn1gm.js → chunk-xea3snym.js} +1 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xet1jjy9.js.br +0 -0
- package/web/chunk-xet1jjy9.js.gz +0 -0
- package/web/{chunk-vjnvfb8z.js → chunk-xg4v60m7.js} +1 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +89 -0
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +36 -0
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/{chunk-e229cr90.js → chunk-xs1g97qa.js} +2 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +1 -0
- package/web/chunk-xyk1wpr4.js.br +3 -0
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +1 -0
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +4 -0
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +1 -0
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/{chunk-c1z290wm.js → chunk-ynhcjhsx.js} +2 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +1 -0
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +1 -0
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +1 -0
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/{chunk-gaf9brzv.js → chunk-z1afsvbv.js} +2 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/{chunk-w60dxtyz.js → chunk-z1ka8jtd.js} +2 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +1 -0
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/{chunk-444xfger.js → chunk-zbwjj06m.js} +7 -7
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +1 -0
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +120 -0
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +1 -0
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +1 -0
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
- package/web/icon-1wgy7kzy.svg.br +0 -0
- package/web/icon-1wgy7kzy.svg.gz +0 -0
- package/web/icon.svg.br +0 -0
- package/web/icon.svg.gz +0 -0
- package/web/index.html +11 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +146 -27
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/web/chunk-0zb330w3.js +0 -89
- package/web/chunk-11byy7vm.js +0 -1
- package/web/chunk-160x5pv7.js +0 -1
- package/web/chunk-19g09ekr.js +0 -40
- package/web/chunk-1gzprnyd.js +0 -1
- package/web/chunk-1je4p601.js +0 -139
- package/web/chunk-1rjtqf8h.js +0 -2
- package/web/chunk-1y387f45.js +0 -1
- package/web/chunk-23258z1r.js +0 -1
- package/web/chunk-27592nd8.js +0 -36
- package/web/chunk-2hqmdqn3.js +0 -41
- package/web/chunk-2q79n966.js +0 -2
- package/web/chunk-2ws74tfa.js +0 -21
- package/web/chunk-2z8epr8f.js +0 -34
- package/web/chunk-4k62e61g.js +0 -291
- package/web/chunk-4z6wma3s.js +0 -78
- package/web/chunk-5wkqqa59.js +0 -1
- package/web/chunk-5yczs6sb.js +0 -1
- package/web/chunk-5yn7mwvt.js +0 -1
- package/web/chunk-705tkt2r.js +0 -1
- package/web/chunk-753qp8sa.js +0 -4
- package/web/chunk-76e3npmd.js +0 -2
- package/web/chunk-7p04dn0k.js +0 -1
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-7rb3v8gy.js +0 -1
- package/web/chunk-7yz88k97.js +0 -39
- package/web/chunk-85d7jkp0.js +0 -2
- package/web/chunk-90kgn35s.js +0 -1
- package/web/chunk-931y1g0h.js +0 -1
- package/web/chunk-at0xtfhy.js +0 -1
- package/web/chunk-bcp6na49.js +0 -1145
- package/web/chunk-bz1q7qdd.js +0 -8
- package/web/chunk-c0evk1xy.js +0 -1
- package/web/chunk-cge0cjfm.js +0 -2
- package/web/chunk-e9mmkrc3.js +0 -7
- package/web/chunk-f8nnrk6y.js +0 -292
- package/web/chunk-fcrswzgm.js +0 -106
- package/web/chunk-fw4fa7j6.js +0 -1
- package/web/chunk-fx8hheqz.js +0 -1
- package/web/chunk-gj16e7z0.js +0 -1
- package/web/chunk-h0c42zy3.js +0 -1
- package/web/chunk-h1y8y203.js +0 -1
- package/web/chunk-h6vy008x.js +0 -24
- package/web/chunk-h8mhnze5.js +0 -303
- package/web/chunk-j27mtdr2.js +0 -1
- package/web/chunk-jys02310.js +0 -1
- package/web/chunk-kew13yzg.js +0 -1
- package/web/chunk-kx5r8nf2.js +0 -1
- package/web/chunk-m7c0xk69.js +0 -1
- package/web/chunk-mrnx4f74.js +0 -70
- package/web/chunk-mtdsrtc5.js +0 -1
- package/web/chunk-n3spc397.js +0 -24
- package/web/chunk-nbcpbqq4.js +0 -1
- package/web/chunk-nhc280n0.js +0 -1
- package/web/chunk-nx1bcekh.js +0 -2
- package/web/chunk-p8t7s4z4.js +0 -1
- package/web/chunk-pgh1cx6w.js +0 -1
- package/web/chunk-qgzn0ha5.js +0 -89
- package/web/chunk-qtwxq6hj.js +0 -3
- package/web/chunk-qwp3dhmf.js +0 -1
- package/web/chunk-rjh54ygb.js +0 -120
- package/web/chunk-ryh8jdzy.js +0 -1
- package/web/chunk-s3t8dkkz.js +0 -1
- package/web/chunk-sk1w7f7h.js +0 -1
- package/web/chunk-smkrxjm5.js +0 -1
- package/web/chunk-sv5ph7fa.js +0 -1
- package/web/chunk-t9twxmsg.js +0 -1
- package/web/chunk-tfdchqn4.js +0 -62
- package/web/chunk-tvvggvjt.js +0 -169
- package/web/chunk-ty87gdvr.js +0 -1
- package/web/chunk-v16s0x7c.js +0 -1
- package/web/chunk-vgyp8wa2.js +0 -2
- package/web/chunk-vphzndz8.js +0 -2
- package/web/chunk-xtss82z2.js +0 -1
- package/web/chunk-y0mef85j.js +0 -1
- package/web/chunk-ym9qfsjs.js +0 -30
- package/web/chunk-ypdptddq.js +0 -1
- package/web/chunk-z08c63ph.js +0 -2
- package/web/chunk-z6x74qfh.js +0 -1
- package/web/chunk-z86pjpqp.js +0 -1
- package/web/chunk-zh0vjc6g.js +0 -1
- package/web/chunk-zns9wmab.js +0 -1
package/web/chunk-2ws74tfa.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{_,o,G,r,e,y}from"./chunk-bcp6na49.js";import{t,a,Yr,Re,qi,Vi,En,kr,Pa,go,se,Qt,N,Wi,sn,gt,Oa,yo,vo,bo,Gi,Hi,x,xo,Zr,ke,F,$a,wo,Xr,Fa,p,V,rt,at,Dn,dn,Pr,ea,li,Eo,ui,no,j,M,Ao,jt,di,oo}from"./chunk-h8mhnze5.js";import{oa}from"./chunk-1rjtqf8h.js";function ze(i){let n=i?.constructor;return i===(typeof n==="function"?n.prototype:Object.prototype)}function De(i){if(i==null)return!0;if(li(i)){if(typeof i.splice!=="function"&&typeof i!=="string"&&!Pr(i)&&!dn(i)&&!ea(i))return!1;return i.length===0}if(typeof i==="object"||typeof i==="function"){if(i instanceof Map||i instanceof Set)return i.size===0;let n=Object.keys(i);if(ze(i))return n.filter((s)=>s!=="constructor").length===0;return n.length===0}return!0}var Z="comm",le="rule",fe="decl";var Fe="@media",Oe="@import";var Be="@supports";var Pe="@namespace",oe="@keyframes";var me="@layer",Ne="@scope";var Ve=Math.abs,X=String.fromCharCode;function ue(i){return i.trim()}function ne(i,n,s){return i.replace(n,s)}function U(i,n){return i.charCodeAt(n)|0}function W(i,n,s){return i.slice(n,s)}function R(i){return i.length}function pe(i){return i.length}function J(i,n){return n.push(i),i}var ge=1,ee=1,Ge=0,O=0,T=0,te="";function ve(i,n,s,d,c,l,m,f){return{value:i,root:n,parent:s,type:d,props:c,children:l,line:ge,column:ee,length:m,return:"",siblings:f}}function He(){return T}function Ue(){if(T=O>0?U(te,--O):0,ee--,T===10)ee=1,ge--;return T}function B(){if(T=O<Ge?U(te,O++):0,ee++,T===10)ee=1,ge++;return T}function Y(){return U(te,O)}function de(){return O}function he(i,n){return W(te,i,n)}function re(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function We(i){return ge=ee=1,Ge=R(te=i),O=0,[]}function je(i){return te="",i}function ye(i){return ue(he(O-1,Me(i===91?i+2:i===40?i+1:i)))}function Ye(i){while(T=Y())if(T<33)B();else break;return re(i)>2||re(T)>3?"":" "}function qe(i,n){while(--n&&B())if(T<48||T>102||T>57&&T<65||T>70&&T<97)break;return he(i,de()+(n<6&&Y()==32&&B()==32))}function Me(i){while(B())switch(T){case i:return O;case 34:case 39:if(i!==34&&i!==39)Me(T);break;case 40:if(i===41)Me(i);break;case 92:B();break}return O}function Xe(i,n){while(B())if(i+T===57)break;else if(i+T===84&&Y()===47)break;return"/*"+he(n,O-1)+"*"+X(i===47?i:B())}function Ke(i){while(!re(Y()))B();return he(i,O)}function Je(i){return je(we("",null,null,null,[""],i=We(i),0,[0],i))}function we(i,n,s,d,c,l,m,f,u){var v=0,w=0,b=m,h=0,C=0,A=0,k=1,E=1,D=1,I=0,S=0,P="",Q=c,H=l,z=d,g=P;while(E)switch(A=S,S=B()){case 40:if(A!=108&&U(g,b-1)==58)I++,g+="(";else g+=ye(S);break;case 41:I--,g+=")";break;case 34:case 39:case 91:g+=ye(S);break;case 9:case 10:case 13:case 32:if(I>0){g+=X(S);break}g+=Ye(A);break;case 92:g+=qe(de()-1,7);continue;case 47:switch(Y()){case 42:case 47:if(J(xt(Xe(B(),de()),n,s,u),u),(re(A||1)==5||re(Y()||1)==5)&&R(g)&&W(g,-1,void 0)!==" ")g+=" ";break;default:g+="/"}break;case 123*k:f[v++]=R(g)*D;case 125*k:case 59:case 0:if(I>0&&S){g+=X(S);break}switch(S){case 0:case 125:E=0;case 59+w:if(D==-1)g=ne(g,/\f/g,"");if(C>0&&(R(g)-b||k===0))J(C>32?Ze(g+";",d,s,b-1,u):Ze(ne(g," ","")+";",d,s,b-2,u),u);break;case 59:g+=";";default:if(J(z=Qe(g,n,s,v,w,c,f,P,Q=[],H=[],b,l),l),S===123)if(w===0)we(g,n,z,z,Q,l,b,f,H);else{switch(h){case 99:if(U(g,3)===110)break;case 108:if(U(g,2)===97)break;default:w=0;case 100:case 109:case 115:}if(w)we(i,z,z,d&&J(Qe(i,z,z,0,0,c,f,P,c,Q=[],b,H),H),c,H,b,f,d?Q:H);else we(g,z,z,z,[""],H,0,f,H)}}v=w=C=0,k=D=1,P=g="",b=m;break;case 58:b=1+R(g),C=A;default:if(k<1){if(S==123)--k;else if(S==125&&k++==0&&Ue()==125)continue}switch(g+=X(S),S*k){case 38:D=w>0?1:(g+="\f",-1);break;case 44:if(I>0)break;f[v++]=(R(g)-1)*D,D=1;break;case 64:if(Y()===45)g+=ye(B());h=Y(),w=b=R(P=g+=Ke(de())),S++;break;case 45:if(A===45&&R(g)==2)k=0}}return l}function Qe(i,n,s,d,c,l,m,f,u,v,w,b){var h=c-1,C=c===0?l:[""],A=pe(C);for(var k=0,E=0,D=0;k<d;++k)for(var I=0,S=W(i,h+1,h=Ve(E=m[k])),P=i;I<A;++I)if(P=ue(E>0?C[I]+" "+S:ne(S,/&\f/g,C[I])))u[D++]=P;return ve(i,n,s,c===0?le:f,u,v,w,b)}function xt(i,n,s,d){return ve(i,n,s,Z,X(He()),W(i,2,-2),0,d)}function Ze(i,n,s,d,c){return ve(i,n,s,fe,W(i,0,d),W(i,d+1,-1),d,c)}function xe(i,n){var s="";for(var d=0;d<i.length;d++)s+=n(i[d],d,i,n)||"";return s}function er(i,n,s,d){switch(i.type){case me:if(i.children.length)break;case Oe:case Pe:case fe:return i.return=i.return||i.value;case Z:return"";case oe:return i.return=i.value+"{"+xe(i.children,d)+"}";case le:if(!R(i.value=i.props.join(",")))return""}return R(s=xe(i.children,d))?i.return=i.value+"{"+s+"}":""}function rr(i){var n=pe(i);return function(s,d,c,l){var m="";for(var f=0;f<n;f++)m+=i[f](s,d,c,l)||"";return m}}var nr="c4",bt=t((i)=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(i),"detector"),St=t(async()=>{let{diagram:i}=await (_("444xfger"),import("./chunk-444xfger.js"));return{id:nr,diagram:i}},"loader"),Et={id:nr,detector:bt,loader:St},Tt=Et,sr="flowchart-v2",Ct=t((i)=>/^\s*(graph|flowchart)/.test(i),"detector"),kt=t(async()=>{let{diagram:i}=await (_("c0evk1xy"),import("./chunk-c0evk1xy.js"));return{id:sr,diagram:i}},"loader"),Dt={id:sr,detector:Ct,loader:kt},Mt=Dt,dr="agentflow",_t=t((i)=>/^\s*agentflow-beta\b/.test(i),"detector"),Lt=t(async()=>{let{diagram:i}=await (_("chh8bg2h"),import("./chunk-chh8bg2h.js"));return{id:dr,diagram:i}},"loader"),At={id:dr,detector:_t,loader:Lt},It=At,cr="swimlane",Rt=t((i)=>/^\s*swimlane-beta\b/.test(i),"detector"),$t=t(async()=>{let{diagram:i}=await (_("bz1q7qdd"),import("./chunk-bz1q7qdd.js"));return{id:cr,diagram:i}},"loader"),zt={id:cr,detector:Rt,loader:$t},Ft=zt,lr="er",Ot=t((i)=>/^\s*erDiagram/.test(i),"detector"),Bt=t(async()=>{let{diagram:i}=await (_("t89tfrpj"),import("./chunk-t89tfrpj.js"));return{id:lr,diagram:i}},"loader"),Pt={id:lr,detector:Ot,loader:Bt},Nt=Pt,fr="gitGraph",Vt=t((i)=>/^\s*gitGraph/.test(i),"detector"),Gt=t(async()=>{let{diagram:i}=await (_("fcrswzgm"),import("./chunk-fcrswzgm.js"));return{id:fr,diagram:i}},"loader"),Ht={id:fr,detector:Vt,loader:Gt},Ut=Ht,mr="gantt",Wt=t((i)=>/^\s*gantt/.test(i),"detector"),Yt=t(async()=>{let{diagram:i}=await (_("f8nnrk6y"),import("./chunk-f8nnrk6y.js"));return{id:mr,diagram:i}},"loader"),qt={id:mr,detector:Wt,loader:Yt},Xt=qt,ur="info",Kt=t((i)=>/^\s*info/.test(i),"detector"),Zt=t(async()=>{let{diagram:i}=await (_("vphzndz8"),import("./chunk-vphzndz8.js"));return{id:ur,diagram:i}},"loader"),Jt={id:ur,detector:Kt,loader:Zt},pr="pie",ra=t((i)=>/^\s*pie/.test(i),"detector"),ta=t(async()=>{let{diagram:i}=await (_("7yz88k97"),import("./chunk-7yz88k97.js"));return{id:pr,diagram:i}},"loader"),aa={id:pr,detector:ra,loader:ta},gr="quadrantChart",ia=t((i)=>/^\s*quadrantChart/.test(i),"detector"),na=t(async()=>{let{diagram:i}=await (_("e9mmkrc3"),import("./chunk-e9mmkrc3.js"));return{id:gr,diagram:i}},"loader"),sa={id:gr,detector:ia,loader:na},da=sa,vr="xychart",ca=t((i)=>/^\s*xychart(-beta)?/.test(i),"detector"),la=t(async()=>{let{diagram:i}=await (_("ef03t1mb"),import("./chunk-ef03t1mb.js"));return{id:vr,diagram:i}},"loader"),fa={id:vr,detector:ca,loader:la},ma=fa,hr="requirement",ua=t((i)=>/^\s*requirement(Diagram)?/.test(i),"detector"),pa=t(async()=>{let{diagram:i}=await (_("vcnsvj49"),import("./chunk-vcnsvj49.js"));return{id:hr,diagram:i}},"loader"),ga={id:hr,detector:ua,loader:pa},va=ga,yr="sequence",ha=t((i)=>/^\s*sequenceDiagram/.test(i),"detector"),ya=t(async()=>{let{diagram:i}=await (_("tvvggvjt"),import("./chunk-tvvggvjt.js"));return{id:yr,diagram:i}},"loader"),wa={id:yr,detector:ha,loader:ya},xa=wa,wr="classDiagram",ba=t((i)=>/^\s*classDiagram/.test(i),"detector"),Sa=t(async()=>{let{diagram:i}=await (_("1np2aamb"),import("./chunk-1np2aamb.js"));return{id:wr,diagram:i}},"loader"),Ea={id:wr,detector:ba,loader:Sa},Ta=Ea,xr="stateDiagram",Ca=t((i)=>/^\s*stateDiagram/.test(i),"detector"),ka=t(async()=>{let{diagram:i}=await (_("4k62e61g"),import("./chunk-4k62e61g.js"));return{id:xr,diagram:i}},"loader"),Da={id:xr,detector:Ca,loader:ka},Ma=Da,br="journey",_a=t((i)=>/^\s*journey/.test(i),"detector"),La=t(async()=>{let{diagram:i}=await (_("1je4p601"),import("./chunk-1je4p601.js"));return{id:br,diagram:i}},"loader"),Aa={id:br,detector:_a,loader:La},Ia=Aa,be=4,ce=75,Ra=t((i)=>{let n=[];for(let c of i.split(/\s+/)){let l=[...c];while(l.length>ce)n.push(l.slice(0,ce).join("")),l=l.slice(ce);if(l.length>0)n.push(l.join(""))}let s=[],d="";for(let c of n){let l=d?`${d} ${c}`:c;if([...l].length>ce)s.push(d),d=c;else d=l}if(d)s.push(d);if(s.length>be){s.length=be;let c=s[be-1]??"";s[be-1]=`${[...c].slice(0,ce-3).join("")}...`}return s},"wrapErrorMessage"),za=t((i,n,s,d)=>{a.debug(`rendering svg for syntax error
|
|
2
|
-
`);let c=V(n),l=c.append("g"),m=Ra(d?.db.getErrorMessage?.()??""),f=m.length>0?500+m.length*56:512;c.attr("viewBox",`0 0 2412 ${f}`),F(c,100,f,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${s}`),m.forEach((u,v)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+v*56).attr("font-size","42px").style("text-anchor","middle").text(u)})},"draw"),Sr={draw:za},Ba=Sr,_e,Na={clear(){_e=void 0},setErrorMessage(i){_e=i},getErrorMessage(){return _e}},Va={db:Na,renderer:Sr,parser:{parse:t(()=>{return},"parse")}},Ga=Va,Er="flowchart-elk",Ha=t((i,n={})=>{if(/^\s*flowchart-elk/.test(i))return n.layout="elk",!0;return!1},"detector"),Ua=t(async()=>{let{diagram:i}=await (_("c0evk1xy"),import("./chunk-c0evk1xy.js"));return{id:Er,diagram:i}},"loader"),Wa={id:Er,detector:Ha,loader:Ua},ja=Wa,Tr="timeline",Ya=t((i)=>/^\s*timeline/.test(i),"detector"),qa=t(async()=>{let{diagram:i}=await (_("rjh54ygb"),import("./chunk-rjh54ygb.js"));return{id:Tr,diagram:i}},"loader"),Xa={id:Tr,detector:Ya,loader:qa},Ka=Xa,Cr="mindmap",Qa=t((i)=>/^\s*mindmap/.test(i),"detector"),Za=t(async()=>{let{diagram:i}=await (_("0qnetvsc"),import("./chunk-0qnetvsc.js"));return{id:Cr,diagram:i}},"loader"),Ja={id:Cr,detector:Qa,loader:Za},ei=Ja,Dr="kanban",ri=t((i)=>/^\s*kanban/.test(i),"detector"),ti=t(async()=>{let{diagram:i}=await (_("0zb330w3"),import("./chunk-0zb330w3.js"));return{id:Dr,diagram:i}},"loader"),ai={id:Dr,detector:ri,loader:ti},ii=ai,Mr="sankey",oi=t((i)=>/^\s*sankey(-beta)?/.test(i),"detector"),ni=t(async()=>{let{diagram:i}=await (_("19g09ekr"),import("./chunk-19g09ekr.js"));return{id:Mr,diagram:i}},"loader"),si={id:Mr,detector:oi,loader:ni},ci=si,_r="packet",fi=t((i)=>/^\s*packet(-beta)?/.test(i),"detector"),mi=t(async()=>{let{diagram:i}=await (_("h6vy008x"),import("./chunk-h6vy008x.js"));return{id:_r,diagram:i}},"loader"),pi={id:_r,detector:fi,loader:mi},Lr="radar",gi=t((i)=>/^\s*radar-beta/.test(i),"detector"),vi=t(async()=>{let{diagram:i}=await (_("2hqmdqn3"),import("./chunk-2hqmdqn3.js"));return{id:Lr,diagram:i}},"loader"),hi={id:Lr,detector:gi,loader:vi},Ar="block",yi=t((i)=>/^\s*block(-beta)?/.test(i),"detector"),wi=t(async()=>{let{diagram:i}=await (_("mv5axm2y"),import("./chunk-mv5axm2y.js"));return{id:Ar,diagram:i}},"loader"),xi={id:Ar,detector:yi,loader:wi},bi=xi,Ir="treeView",Si=t((i)=>/^\s*treeView-beta/.test(i),"detector"),Ei=t(async()=>{let{diagram:i}=await (_("ym9qfsjs"),import("./chunk-ym9qfsjs.js"));return{id:Ir,diagram:i}},"loader"),Ti={id:Ir,detector:Si,loader:Ei},Ci=Ti,Rr="architecture",ki=t((i)=>/^\s*architecture/.test(i),"detector"),Di=t(async()=>{let{diagram:i}=await (_("27592nd8"),import("./chunk-27592nd8.js"));return{id:Rr,diagram:i}},"loader"),Mi={id:Rr,detector:ki,loader:Di},_i=Mi,$r="eventmodeling",Li=t((i)=>/^\s*eventmodeling/.test(i),"detector"),Ai=t(async()=>{let{diagram:i}=await (_("qtwxq6hj"),import("./chunk-qtwxq6hj.js"));return{id:$r,diagram:i}},"loader"),Ii={id:$r,detector:Li,loader:Ai},Ri=Ii,zr="ishikawa",$i=t((i)=>/^\s*ishikawa(-beta)?\b/i.test(i),"detector"),zi=t(async()=>{let{diagram:i}=await (_("mrnx4f74"),import("./chunk-mrnx4f74.js"));return{id:zr,diagram:i}},"loader"),Fi={id:zr,detector:$i,loader:zi},Fr="venn",Oi=t((i)=>/^\s*venn-beta/.test(i),"detector"),Bi=t(async()=>{let{diagram:i}=await (_("2z8epr8f"),import("./chunk-2z8epr8f.js"));return{id:Fr,diagram:i}},"loader"),Pi={id:Fr,detector:Oi,loader:Bi},Ni=Pi,Or="treemap",Ui=t((i)=>/^\s*treemap/.test(i),"detector"),ji=t(async()=>{let{diagram:i}=await (_("n3spc397"),import("./chunk-n3spc397.js"));return{id:Or,diagram:i}},"loader"),Yi={id:Or,detector:Ui,loader:ji},Br="usecase",Xi=t((i)=>/^\s*usecase-beta(?:\s|$)/.test(i),"detector"),Ki=t(async()=>{let{diagram:i}=await (_("vb2z2azk"),import("./chunk-vb2z2azk.js"));return{id:Br,diagram:i}},"loader"),Qi={id:Br,detector:Xi,loader:Ki},Nr="wardley",Zi=t((i)=>/^\s*wardley-beta/i.test(i),"detector"),Ji=t(async()=>{let{diagram:i}=await (_("4z6wma3s"),import("./chunk-4z6wma3s.js"));return{id:Nr,diagram:i}},"loader"),eo={id:Nr,detector:Zi,loader:Ji},ro=eo,Vr="cynefin",to=t((i)=>/^\s*cynefin-beta(?:[\s:]|$)/.test(i),"detector"),ao=t(async()=>{let{diagram:i}=await (_("tfdchqn4"),import("./chunk-tfdchqn4.js"));return{id:Vr,diagram:i}},"loader"),io={id:Vr,detector:to,loader:ao},Gr="railroad",so=t((i)=>/^\s*railroad-beta/i.test(i),"detector"),co=t(async()=>{let{diagram:i}=await (_("m7c0xk69"),import("./chunk-m7c0xk69.js"));return{id:Gr,diagram:i}},"loader"),lo={id:Gr,detector:so,loader:co},Hr="railroadEbnf",fo=t((i)=>/^\s*railroad-ebnf-beta/i.test(i),"detector"),mo=t(async()=>{let{diagram:i}=await (_("23258z1r"),import("./chunk-23258z1r.js"));return{id:Hr,diagram:i}},"loader"),uo={id:Hr,detector:fo,loader:mo},Ur="railroadAbnf",po=t((i)=>/^\s*railroad-abnf-beta/i.test(i),"detector"),ho=t(async()=>{let{diagram:i}=await (_("kx5r8nf2"),import("./chunk-kx5r8nf2.js"));return{id:Ur,diagram:i}},"loader"),So={id:Ur,detector:po,loader:ho},Wr="railroadPeg",To=t((i)=>/^\s*railroad-peg-beta/i.test(i),"detector"),Co=t(async()=>{let{diagram:i}=await (_("z86pjpqp"),import("./chunk-z86pjpqp.js"));return{id:Wr,diagram:i}},"loader"),ko={id:Wr,detector:To,loader:Co},tr=!1,Te=t(()=>{if(tr)return;tr=!0,Xr("error",Ga,(i)=>i.toLowerCase().trim()==="error"),Xr("---",{db:{clear:t(()=>{},"clear")},styles:{},renderer:{draw:t(()=>{},"draw")},parser:{parse:t(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:t(()=>null,"init")},(i)=>i.toLowerCase().trimStart().startsWith("---")),Pa(ja,ei,_i),Pa(It,Tt,ii,Ta,Nt,Xt,Jt,aa,va,xa,Ft,Mt,Ka,Ut,Ma,Ia,da,ci,pi,ma,bi,Ri,Ci,hi,Fi,Yi,lo,uo,So,ko,Ni,ro,io,Qi)},"addDiagrams"),Do=t(async()=>{a.debug("Loading registered diagrams");let n=(await Promise.allSettled(Object.entries(En).map(async([s,{detector:d,loader:c}])=>{if(!c)return;try{Fa(s)}catch{try{let{diagram:l,id:m}=await c();Xr(m,l,d)}catch(l){throw a.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete En[s],l}}}))).filter((s)=>s.status==="rejected");if(n.length>0){a.error(`Failed to load ${n.length} external diagrams`);for(let s of n)a.error(s);throw Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),Mo="graphics-document document";function jr(i,n){if(i.attr("role",Mo),n!=="")i.attr("aria-roledescription",n)}t(jr,"setA11yDiagramInfo");function qr(i,n,s,d){if(i.insert===void 0)return;if(s){let c=`chart-desc-${d}`;i.attr("aria-describedby",c),i.insert("desc",":first-child").attr("id",c).text(s)}if(n){let c=`chart-title-${d}`;i.attr("aria-labelledby",c),i.insert("title",":first-child").attr("id",c).text(n)}}t(qr,"addSVGa11yTitleDescription");var Se=class i{constructor(n,s,d,c,l){this.type=n,this.text=s,this.db=d,this.parser=c,this.renderer=l}static{t(this,"Diagram")}static async fromText(n,s={}){let d=typeof n==="string"?{raw:n,cleaned:n}:n,c=x(),l=kr(d.cleaned,c);try{Fa(l)}catch{let h=go(l);if(!h)throw new Vi(`Diagram ${l} not found.`);let{id:C,diagram:A}=await h();Xr(C,A)}let{db:m,parser:f,renderer:u,init:v}=Fa(l);if(f.parser)f.parser.yy=m;if(m.clear?.(),v?.(c),s.title)m.setDiagramTitle?.(s.title);let w=d.cleaned;if(m.preserveCommentsWhenParsing&&d.withComments){let h=c.maxTextSize??N.maxTextSize;if(d.withComments.length>h)a.warn(`Comment-preserving source exceeds maxTextSize (${d.withComments.length} > ${h}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else w=d.withComments}let b=Ao(w)+`
|
|
3
|
-
`;if(d.frontmatterLineOffset)m.setFrontmatterLineOffset?.(d.frontmatterLineOffset);return await f.parse(b),new i(l,b,m,f,u)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}},ar=[],_o=t(()=>{ar.forEach((i)=>{i()}),ar=[]},"attachFunctions"),Lo=t((i)=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Kr(i){let n=qi(i);if(!n)return{text:i,metadata:{}};let s=n.indent,d=s?n.body.split(`
|
|
4
|
-
`).map((m)=>m.startsWith(s)?m.slice(s.length):m).join(`
|
|
5
|
-
`):n.body,c=at(d,{schema:rt})??{};c=typeof c==="object"&&!Array.isArray(c)?c:{};let l={};if(c.displayMode)l.displayMode=c.displayMode.toString();if(c.title)l.title=c.title.toString();if(c.config)l.config=c.config;return{text:i.slice(n.length),metadata:l}}t(Kr,"extractFrontMatter");var Io=t((i)=>i.replace(/\r\n?/g,`
|
|
6
|
-
`).replace(/<(\w+)([^>]*)>/g,(n,s,d)=>"<"+s+d.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Ro=t((i)=>{let{text:n,metadata:s}=Kr(i),{displayMode:d,title:c,config:l={}}=s;if(d){if(!l.gantt)l.gantt={};l.gantt.displayMode=d}return{title:c,config:l,text:n}},"processFrontmatter"),$o=t((i)=>{let n=M.detectInit(i)??{},s=M.detectDirective(i,"wrap");if(Array.isArray(s))n.wrap=s.some(({type:d})=>d==="wrap");else if(s?.type==="wrap")n.wrap=!0;return{text:Eo(i),directive:n}},"processDirectives");function Ie(i){let n=i,s=Io(i),d=Ro(s),c=$o(d.text),l=j(d.config,c.directive),m=c.text,f=Lo(m),u=s.length>d.text.length?(s.substring(0,s.length-d.text.length).match(/\n/g)??[]).length:0;return{code:{raw:n,cleaned:f,withComments:m,frontmatterLineOffset:u},title:d.title,config:l}}t(Ie,"preprocessDiagram");function Qr(i){let n=new TextEncoder().encode(i),s=Array.from(n,(d)=>String.fromCodePoint(d)).join("");return btoa(s)}t(Qr,"toBase64");var zo=50000,Fo="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Oo="sandbox",Bo="loose",Po="http://www.w3.org/2000/svg",No="http://www.w3.org/1999/xlink",Vo="http://www.w3.org/1999/xhtml",Go="100%",Ho="100%",Uo="border:0;margin:0;",Wo="margin:0",jo="allow-top-navigation-by-user-activation allow-popups",Yo='The "iframe" tag is not supported by your browser.',qo=["foreignobject"],Xo=["dominant-baseline"];function $e(i){let n=Ie(i);Zr();let s;try{s=kr(n.code.cleaned,x())}catch{s=void 0}return Oa(s),xo(n.config??{}),n}t($e,"processAndSetConfigs");async function Jr(i,n){Te();try{let{code:s,config:d}=$e(i);return{diagramType:(await Se.fromText(s)).type,config:d}}catch(s){if(n?.suppressErrors)return!1;throw s}finally{Oa(void 0)}}t(Jr,"parse");var ir=t((i,n,s=[])=>{let d=Wi(`{ ${s.join(" !important; ")} !important; }`);return`.${i} ${n} ${d}`},"cssImportantStyles"),Ko=t((i,n=new Map)=>{let s=new CSSStyleSheet;if(i.fontFamily!==void 0)s.insertRule(`:root { --mermaid-font-family: ${i.fontFamily}}`,s.cssRules.length);if(i.altFontFamily!==void 0)s.insertRule(`:root { --mermaid-alt-font-family: ${i.altFontFamily}}`,s.cssRules.length);if(n instanceof Map){let f=ke(i)?["> *","span"]:["rect","polygon","ellipse","circle","path"];n.forEach((u)=>{if(!De(u.styles))f.forEach((v)=>{s.insertRule(ir(u.id,v,u.styles),s.cssRules.length)});if(!De(u.textStyles))s.insertRule(ir(u.id,"tspan",(u?.textStyles||[]).map((v)=>v.replace("color","fill"))),s.cssRules.length)})}let d="";if(i.themeCSS!==void 0)if(typeof s.replaceSync==="function"){let c=new CSSStyleSheet;c.replaceSync(i.themeCSS),d=$a(c)+`
|
|
7
|
-
`}else d+=`${i.themeCSS}
|
|
8
|
-
`;return d+$a(s)},"createCssStyles"),Qo=t((i,n)=>xe(Je(`${i}{${n}}`),rr([t(function(d,c,l,m){if(d.type==="rule"&&Array.isArray(d.props)){if(d.parent&&d.parent.type===oe)return;d.props=d.props.map((f)=>{if(f===i&&Array.isArray(d.children)&&d.children.every((v)=>{if(v.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(v.props)}))return f;if(!((f.startsWith(`${i} `)||f.startsWith(`${i}>`))&&!f.startsWith(`${i} ||`)))return`${i} ${f}`;return f})}else if(d.type.startsWith("@")){if(![Fe,Be,me,Ne,"@container","@starting-style",oe].includes(d.type))a.warn(`Removing unsupported at-rule ${d.type} from CSS`),d.type=Z}},"addNamespace"),er])),"compileCSS"),Zo=t((i,n,s,d)=>{let c=Ko(i,s),l=wo(n,c,{...i.themeVariables,theme:i.theme,look:i.look},d);return Qo(d,l)},"createUserStyles"),Jo=t((i="",n,s)=>{let d=i;if(!s&&!n)d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#');return d=jt(d),d=d.replace(/<br>/g,"<br/>"),d},"cleanUpSvgCode"),en=t((i="",n)=>{let s=n?.viewBox?.baseVal?.height?n.viewBox.baseVal.height+"px":Ho,d=Qr(`<body style="${Wo}">${i}</body>`);return`<iframe style="width:${Go};height:${s};${Uo}" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="${jo}">
|
|
9
|
-
${Yo}
|
|
10
|
-
</iframe>`},"putIntoIFrame"),or=t((i,n,s,d,c)=>{let l=i.append("div");if(l.attr("id",s),d)l.attr("style",d);let m=l.append("svg").attr("id",n).attr("width","100%").attr("xmlns",Po);if(c)m.attr("xmlns:xlink",c);return m.append("g"),i},"appendDivSvgG");function Ae(i,n){return i.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t(Ae,"sandboxedIframe");var rn=t((i,n,s,d)=>{i.getElementById(n)?.remove(),i.getElementById(s)?.remove(),i.getElementById(d)?.remove()},"removeExistingElements"),tn=t(async function(i,n,s){Te();let d=$e(n),c=d.code;n=c.cleaned;let l=x();if(a.debug(l),n.length>(l?.maxTextSize??zo))n=Fo,c={raw:n,cleaned:n};let m=`#${i}`,f="i"+i,u="#"+f,v="d"+i,w="#"+v,b=t(()=>{let ie=p(C?u:w).node();if(ie&&"remove"in ie)ie.remove()},"removeTempElements"),h=p(document.body),C=l.securityLevel===Oo,A=l.securityLevel===Bo,k=l.fontFamily;if(s!==void 0){if(s)s.innerHTML="";if(C){let L=Ae(p(s),f);h=p(L.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=p(s);or(h,i,v,`font-family: ${k}`,No)}else{if(rn(document,i,v,f),C){let L=Ae(p(document.body),f);h=p(L.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=p("body");or(h,i,v)}let E,D;try{E=await Se.fromText(c,{title:d.title})}catch(L){if(l.suppressErrorRendering)throw b(),L;E=await Se.fromText("error"),D=L,E.db.setErrorMessage?.(no(L))}let I=h.select(w).node(),S=E.type,P=I.firstChild,Q=P.firstChild,H=E.renderer.getClasses?.(n,E),z=Zo(l,S,H,m),g=document.createElement("style");g.innerHTML=z,P.insertBefore(g,Q);try{await E.renderer.draw(n,i,"12.2.0",E)}catch(L){if(l.suppressErrorRendering)b();else Ba.draw(n,i,"12.2.0");throw L}let pt=h.select(`${w} svg`),vt=E.db.getAccTitle?.(),ht=E.db.getAccDescription?.();tt(S,pt,vt,ht);let yt=t(()=>{h.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",Vo);let L=h.select(w).node().innerHTML;if(a.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),L=Jo(L,C,gt(l.arrowMarkerAbsolute)),C){let ie=h.select(w+" svg").node();L=en(L,ie)}else if(!A)L=Re.sanitize(L,{ADD_TAGS:qo,ADD_ATTR:Xo,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return _o(),L},"serializeSvg")();if(D)throw D;return b(),{diagramType:S,svg:yt,bindFunctions:E.db.bindFunctions}},"renderDiagram"),an=t(async function(i,n,s){try{return await tn(i,n,s)}finally{Oa(void 0)}},"render");function et(i={}){let n=se({},i);if(n?.fontFamily&&!n.themeVariables?.fontFamily){if(!n.themeVariables)n.themeVariables={};n.themeVariables.fontFamily=n.fontFamily}vo(n);let s=sn.theme;if(n?.theme&&Object.hasOwn(Qt,n.theme))n.themeVariables=Qt[n.theme].getThemeVariables(n.themeVariables);else if(n){if(n.theme!=null&&n.theme!=="null")n.theme=s;n.themeVariables=Qt[s].getThemeVariables(n.themeVariables)}let d=typeof n==="object"?yo(n):Gi();Yr(d.logLevel),Te()}t(et,"initialize");var on=t((i,n={})=>{let{code:s}=Ie(i);return Se.fromText(s,n)},"getDiagramFromText");function tt(i,n,s,d){jr(n,i),qr(n,s,d,n.attr("id"))}t(tt,"addA11yInfo");var K=Object.freeze({render:an,parse:Jr,getDiagramFromText:on,initialize:et,getConfig:x,setConfig:Hi,getSiteConfig:Gi,updateSiteConfig:bo,reset:t(()=>{Zr()},"reset"),globalReset:t(()=>{Zr(sn)},"globalReset"),defaultConfig:sn});Yr(x().logLevel);Zr(x());var nn=t((i,n,s)=>{if(a.warn(i),ui(i)){if(s)s(i.str,i.hash);n.push({...i,message:i.str,error:i})}else{if(s)s(i);if(i instanceof Error)n.push({str:i.message,message:i.message,hash:i.name,error:i})}},"handleError"),it=t(async function(i={querySelector:".mermaid"}){try{await cn(i)}catch(n){if(ui(n))a.error(n.str);if(q.parseError)q.parseError(n);if(!i.suppressErrors)throw a.error("Use the suppressErrors option to suppress these errors"),n}},"run"),cn=t(async function({postRenderCallback:i,querySelector:n,nodes:s}={querySelector:".mermaid"}){let d=K.getConfig();a.debug(`${!i?"No ":""}Callback function found`);let c;if(s)c=s;else if(n)c=document.querySelectorAll(n);else throw Error("Nodes and querySelector are both undefined");if(a.debug(`Found ${c.length} diagrams`),d?.startOnLoad!==void 0)a.debug("Start On Load: "+d?.startOnLoad),K.updateSiteConfig({startOnLoad:d?.startOnLoad});let l=new M.InitIDGenerator(d.deterministicIds,d.deterministicIDSeed),m,f=[];for(let u of Array.from(c)){if(a.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let v=`mermaid-${l.next()}`;m=u.innerHTML,m=di(M.entityDecode(m)).trim().replace(/<br\s*\/?>/gi,"<br/>");let w=M.detectInit(m);if(w)a.debug("Detected early reinit: ",w);try{let{svg:b,bindFunctions:h}=await dt(v,m,u);if(u.innerHTML=b,i)await i(v);if(h)h(u)}catch(b){nn(b,f,q.parseError)}}if(f.length>0)throw f[0]},"runThrowsErrors"),ot=t(function(i){K.initialize(i)},"initialize"),ln=t(async function(i,n,s){if(a.warn("mermaid.init is deprecated. Please use run instead."),i)ot(i);let d={postRenderCallback:s,querySelector:".mermaid"};if(typeof n==="string")d.querySelector=n;else if(n)if(n instanceof HTMLElement)d.nodes=[n];else d.nodes=n;await it(d)},"init"),fn=t(async(i,{lazyLoad:n=!0}={})=>{if(Te(),Pa(...i),n===!1)await Do()},"registerExternalDiagrams"),nt=t(function(){if(q.startOnLoad){let{startOnLoad:i}=K.getConfig();if(i)q.run().catch((n)=>a.error("Mermaid failed to initialize",n))}},"contentLoaded");if(typeof document<"u")window.addEventListener("load",nt,!1);var mn=t(function(i){q.parseError=i},"setParseErrorHandler"),Ee=[],Le=!1,st=t(async()=>{if(Le)return;Le=!0;while(Ee.length>0){let i=Ee.shift();if(i)try{await i()}catch(n){a.error("Error executing queue",n)}}Le=!1},"executeQueue"),un=t(async(i,n)=>new Promise((s,d)=>{let c=t(()=>new Promise((l,m)=>{K.parse(i,n).then((f)=>{l(f),s(f)},(f)=>{a.error("Error parsing",f),q.parseError?.(f),m(f),d(f)})}),"performCall");Ee.push(c),st().catch(d)}),"parse"),dt=t((i,n,s)=>new Promise((d,c)=>{let l=t(()=>new Promise((m,f)=>{K.render(i,n,s).then((u)=>{m(u),d(u)},(u)=>{a.error("Error parsing",u),q.parseError?.(u),f(u),c(u)})}),"performCall");Ee.push(l),st().catch(c)}),"render"),pn=t(()=>Object.keys(En).map((i)=>({id:i})),"getRegisteredDiagramsMetadata"),q={startOnLoad:!0,mermaidAPI:K,parse:un,render:dt,init:ln,run:it,registerExternalDiagrams:fn,registerLayoutLoaders:oo,initialize:ot,parseError:void 0,contentLoaded:nt,setParseErrorHandler:mn,detectType:kr,registerIconPacks:Dn,getRegisteredDiagramsMetadata:pn},Ce=q;/*! Check if previously processed *//*!
|
|
11
|
-
* Wait for document loaded before starting the execution
|
|
12
|
-
*/function ct(i,n){if(!(n instanceof Error)||!("hash"in n))return;let s=n.hash;if(typeof s!=="object"||s===null)return;if(!("token"in s)||s.token!=="LINK_ID")return;if(!("text"in s)||typeof s.text!=="string"||!s.text.endsWith("@"))return;if(!("line"in s)||typeof s.line!=="number"||!Number.isInteger(s.line))return;let d=i.split(`
|
|
13
|
-
`),c=d[s.line];if(c===void 0)return;let l=c.lastIndexOf(s.text);if(l<0)return;let m=l+s.text.length-1;return d[s.line]=`${c.slice(0,m)}@${c.slice(m+1)}`,d.join(`
|
|
14
|
-
`)}function lt(i,n){let s=n?.colors?.hex,d=n?.fonts?.sans||"var(--font-sans)";if(i==="dark")return{darkMode:!0,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#1c2a3d",nodeBkg:"#1c2a3d",nodeBorder:"#2f5c94",nodeTextColor:"#eef1f5",primaryColor:"#1c2a3d",primaryBorderColor:"#2f5c94",primaryTextColor:"#eef1f5",secondaryColor:"#21252b",secondaryBorderColor:"#3e4552",secondaryTextColor:"#c2c8d2",tertiaryColor:"#1d2127",tertiaryBorderColor:"#333945",tertiaryTextColor:"#c2c8d2",lineColor:"#6d7887",arrowheadColor:"#8a95a5",defaultLinkColor:"#6d7887",edgeLabelBackground:s?.panel??"#1f2329",labelBoxBkgColor:s?.panel??"#1f2329",labelBoxBorderColor:s?.line??"#333945",labelTextColor:s?.dim??"#c2c8d2",textColor:s?.dim??"#c2c8d2",titleColor:s?.ink??"#eef1f5",clusterBkg:"#1b1e24",clusterBorder:"#353b47",radius:8,strokeWidth:"1.5px"};return{darkMode:!1,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#eef4fd",nodeBkg:"#eef4fd",nodeBorder:"#a9c8f1",nodeTextColor:"#181d24",primaryColor:"#eef4fd",primaryBorderColor:"#a9c8f1",primaryTextColor:"#181d24",secondaryColor:"#eef1f4",secondaryBorderColor:"#d0d5dd",secondaryTextColor:"#535e6e",tertiaryColor:"#e8ecf0",tertiaryBorderColor:"#cbd2dc",tertiaryTextColor:"#535e6e",lineColor:"#98a2b0",arrowheadColor:"#6b7787",defaultLinkColor:"#98a2b0",edgeLabelBackground:s?.panel??"#ffffff",labelBoxBkgColor:s?.panel??"#ffffff",labelBoxBorderColor:s?.line??"#e2e6eb",labelTextColor:s?.dim??"#535e6e",textColor:s?.dim??"#535e6e",titleColor:s?.ink??"#181d24",clusterBkg:"#f8fafc",clusterBorder:"#e2e6eb",radius:8,strokeWidth:"1.5px"}}function ft(i){let n=i==="dark"?{fill:"#3a2a17",stroke:"#a86b14"}:{fill:"#fff6e5",stroke:"#f0bf5c"};return`
|
|
15
|
-
.node rect, .node .basic.label-container { rx: 10px; ry: 10px; }
|
|
16
|
-
.node .label, .nodeLabel { font-weight: 500; }
|
|
17
|
-
.node polygon { fill: ${n.fill} !important; stroke: ${n.stroke} !important; }
|
|
18
|
-
.edgeLabel, .edgeLabel p, .edgeLabel rect { border-radius: 999px; font-size: 12px; }
|
|
19
|
-
.edgeLabel p { padding: 1px 6px; }
|
|
20
|
-
.cluster rect { rx: 12px; ry: 12px; stroke-dasharray: 4 3; }
|
|
21
|
-
`}var gn=60,ae=new Map;function mt(i,n,s=""){return`${n}:${s}:${i}`}function vn(i,n){if(ae.size>=gn){let s=ae.keys().next().value;if(s!==void 0)ae.delete(s)}ae.set(i,n)}var ut;function hn(i,n,s){let d=s??i;if(ut===d)return;Ce.initialize({startOnLoad:!1,suppressErrorRendering:!0,securityLevel:"strict",theme:"base",themeVariables:lt(i,n),themeCSS:ft(i),fontFamily:n?.fonts?.sans||"var(--font-sans)",flowchart:{useMaxWidth:!1,curve:"basis",padding:14,nodeSpacing:44,rankSpacing:56},sequence:{useMaxWidth:!1},state:{useMaxWidth:!1},class:{useMaxWidth:!1},er:{useMaxWidth:!1},gantt:{useMaxWidth:!1},mindmap:{useMaxWidth:!1},timeline:{useMaxWidth:!1}}),ut=d}var yn=0,wn=32;async function xn(i,n,s,d,c){hn(n,d,c);let l=`${s}-${++yn}`,m=i,f=0;try{while(!0)try{let{svg:u}=await Ce.render(l,m);return u.replace(/filter="url\(#[^"]+\)"/g,"").replace(/filter:\s*url\(#[^)]+\);?/g,"")}catch(u){let v=f<wn?ct(m,u):void 0;if(!v)throw u;m=v,f+=1}}finally{document.getElementById(`d${l}`)?.remove()}}var bn=(i)=>i instanceof Error?i.message:String(i);function Ts(i){let n=y(),s=n.useTheme?.(),d=n.useColorScheme?.(),c=s?.resolved??d??"light",l=s?.tokens,m=s?.themeID?`${s.themeID}-${c}`:c,f=`mermaid-${G().replace(/[^\w-]/g,"")}`,u=i.code.trim(),[v,w]=r(()=>ae.get(mt(u,c,m))),[b,h]=r(),[C,A]=r(!v);return o(()=>{let k=mt(u,c,m),E=ae.get(k);if(E){w(E),h(void 0),A(!1);return}let D=!0;A(!0);let I=setTimeout(async()=>{try{if(i.streaming&&!await Ce.parse(u,{suppressErrors:!0})){if(D)A(!1);return}let S=await xn(u,c,f,l,m);if(vn(k,S),!D)return;w(S),h(void 0)}catch(S){if(D)h(bn(S))}if(D)A(!1)},i.streaming?200:0);return()=>{D=!1,clearTimeout(I)}},[u,c,m,l,i.streaming,f]),e(oa,{title:"流程图",code:i.code,codeLang:"mermaid",rendered:Boolean(v),pending:C,streaming:i.streaming,error:b,children:e("div",{role:"img","aria-label":"Mermaid 流程图",className:"flex overflow-x-auto px-6 py-7 [background-image:radial-gradient(var(--color-line)_1px,transparent_1px)] [background-size:16px_16px] [&_svg]:mx-auto [&_svg]:h-auto [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:v??""}})})}export{Ts as MermaidBlock};
|
package/web/chunk-2z8epr8f.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{t,K,wr,u,d,N,x,F,C,S,E,T,A,I,R,p,V,j,f}from"./chunk-h8mhnze5.js";var fe=(e,s)=>wr(e,"a",-s),wt=fe;function It(e,s){let i=de(e),n=i.filter((c)=>he(c,e)),r=0,o=0,a=[];if(n.length>1){let c=Kt(n);for(let g=0;g<n.length;++g){let l=n[g];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((g,l)=>l.angle-g.angle);let y=n[n.length-1];for(let g=0;g<n.length;++g){let l=n[g];o+=(y.x+l.x)*(l.y-y.y);let M={x:(l.x+y.x)/2,y:(l.y+y.y)/2},b=null;for(let z=0;z<l.parentIndex.length;++z)if(y.parentIndex.includes(l.parentIndex[z])){let w=e[l.parentIndex[z]],P=Math.atan2(l.x-w.x,l.y-w.y),G=Math.atan2(y.x-w.x,y.y-w.y),q=G-P;if(q<0)q+=2*Math.PI;let B=G-q/2,v=at(M,{x:w.x+w.radius*Math.sin(B),y:w.y+w.radius*Math.cos(B)});if(v>w.radius*2)v=w.radius*2;if(b==null||b.width>v)b={circle:w,width:v,p1:l,p2:y,large:v>w.radius,sweep:!0}}if(b!=null)a.push(b),r+=Tt(b.circle.radius,b.width),y=l}}else{let c=e[0];for(let g=1;g<e.length;++g)if(e[g].radius<c.radius)c=e[g];let y=!1;for(let g=0;g<e.length;++g)if(at(e[g],c)>Math.abs(c.radius-e[g].radius)){y=!0;break}if(y)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function he(e,s){return s.every((i)=>at(e,i)<i.radius+0.0000000001)}function de(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Wt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function Tt(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function at(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function Nt(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return Tt(e,n)+Tt(s,r)}function Wt(e,s){let i=at(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,y=e.y+o*(s.y-e.y)/i,g=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+g,y:y-l},{x:c-g,y:y+l}]}function Kt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function ge(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),y=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let g=0;g<r;++g){y/=2;let l=s+y,M=e(l);if(M*a>=0)s=l;if(Math.abs(y)<o||M===0)return l}return s+y}function zt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function Ut(e,s){return zt(e).map(()=>zt(s))}function mt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function At(e){return Math.sqrt(mt(e,e))}function Ct(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function xt(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Ht(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,y=i.rho!==void 0?i.rho:1,g=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,M=i.sigma!==void 0?i.sigma:0.5,b,z=s.length,w=Array(z+1);w[0]=s,w[0].fx=e(s),w[0].id=0;for(let D=0;D<z;++D){let h=s.slice();h[D]=h[D]?h[D]*r:o,w[D+1]=h,w[D+1].fx=e(h),w[D+1].id=D+1}function P(D){for(let h=0;h<D.length;h++)w[z][h]=D[h];w[z].fx=D.fx}let G=(D,h)=>D.fx-h.fx,q=s.slice(),B=s.slice(),v=s.slice(),_=s.slice();for(let D=0;D<n;++D){if(w.sort(G),i.history){let k=w.map((m)=>{let Y=m.slice();return Y.fx=m.fx,Y.id=m.id,Y});k.sort((m,Y)=>m.id-Y.id),i.history.push({x:w[0].slice(),fx:w[0].fx,simplex:k})}b=0;for(let k=0;k<z;++k)b=Math.max(b,Math.abs(w[0][k]-w[1][k]));if(Math.abs(w[0].fx-w[z].fx)<a&&b<c)break;for(let k=0;k<z;++k){q[k]=0;for(let m=0;m<z;++m)q[k]+=w[m][k];q[k]/=z}let h=w[z];if(xt(B,1+y,q,-y,h),B.fx=e(B),B.fx<w[0].fx)if(xt(_,1+g,q,-g,h),_.fx=e(_),_.fx<B.fx)P(_);else P(B);else if(B.fx>=w[z-1].fx){let k=!1;if(B.fx>h.fx)if(xt(v,1+l,q,-l,h),v.fx=e(v),v.fx<h.fx)P(v);else k=!0;else if(xt(v,1-l*y,q,l*y,h),v.fx=e(v),v.fx<B.fx)P(v);else k=!0;if(k){if(M>=1)break;for(let m=1;m<w.length;++m)xt(w[m],1-M,w[0],M,w[m]),w[m].fx=e(w[m])}}else P(B)}return w.sort(G),{fx:w[0].fx,x:w[0]}}function xe(e,s,i,n,r,o,a){let c=i.fx,y=mt(i.fxprime,s),g=c,l=c,M=y,b=0;r=r||1,o=o||0.000001,a=a||0.1;function z(w,P,G){for(let q=0;q<16;++q)if(r=(w+P)/2,xt(n.x,1,i.x,r,s),g=n.fx=e(n.x,n.fxprime),M=mt(n.fxprime,s),g>c+o*r*y||g>=G)P=r;else{if(Math.abs(M)<=-a*y)return r;if(M*(P-w)>=0)P=w;w=r,G=g}return 0}for(let w=0;w<10;++w){if(xt(n.x,1,i.x,r,s),g=n.fx=e(n.x,n.fxprime),M=mt(n.fxprime,s),g>c+o*r*y||w&&g>=l)return z(b,r,l);if(Math.abs(M)<=-a*y)return r;if(M>=0)return z(r,b,g);l=g,b=r,r*=2}return r}function ye(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,y=1,g;i=i||{},g=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),Ct(a,n.fxprime,-1);for(let l=0;l<g;++l){if(y=xe(e,a,n,r,y),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:y});if(!y)Ct(a,n.fxprime,-1);else{xt(o,1,r.fxprime,-1,n.fxprime);let M=mt(n.fxprime,n.fxprime),b=Math.max(0,mt(o,r.fxprime)/M);xt(a,b,a,-1,r.fxprime),c=n,n=r,r=c}if(At(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:y});return n}function Yt(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||ve,n=s.lossFunction||bt,r=pe(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let g=Ht((l)=>{let M={};for(let b=0;b<a.length;++b){let z=a[b];M[z]={x:l[2*b],y:l[2*b+1],radius:o[z].radius}}return n(M,r)},c,s).x;for(let l=0;l<a.length;++l){let M=a[l];o[M].x=g[2*l],o[M].y=g[2*l+1]}return o}var Xt=0.0000000001;function Dt(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Xt)return Math.abs(e-s);return ge((n)=>Nt(e,s,n)-i,0,e+s)}function pe(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let y of n)for(let g=0;g<y.sets.length;g++){let l=String(y.sets[g]);c.set(l,y.size+(c.get(l)||0));for(let M=g+1;M<y.sets.length;M++){let b=String(y.sets[M]),z=`${l};${b}`,w=`${b};${l}`;c.set(z,y.size+(c.get(z)||0)),c.set(w,y.size+(c.get(w)||0))}}for(let y of n)if(y.sets.length<3)y.size=c.get(r(y.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let y=c.sets[0],g=c.sets[1];a.add(r(c.sets)),a.add(r([g,y]))}o.sort((c,y)=>c===y?0:c<y?-1:1);for(let c=0;c<o.length;++c){let y=o[c];for(let g=c+1;g<o.length;++g){let l=o[g];if(!a.has(r([y,l])))n.push({sets:[y,l],size:0})}}return n}function me(e,s,i){let n=Ut(s.length,s.length),r=Ut(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],y=Math.sqrt(s[a].size/Math.PI),g=Math.sqrt(s[c].size/Math.PI),l=Dt(y,g,o.size);n[a][c]=n[c][a]=l;let M=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))M=1;else if(o.size<=0.0000000001)M=-1;r[a][c]=r[c][a]=M}),{distances:n,constraints:r}}function be(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let y=o+1;y<i.length;++y){let g=e[2*y],l=e[2*y+1],M=i[o][y],b=n[o][y],z=(g-a)*(g-a)+(l-c)*(l-c),w=Math.sqrt(z),P=z-M*M;if(b>0&&w<=M||b<0&&w>=M)continue;r+=2*P*P,s[2*o]+=4*P*(a-g),s[2*o+1]+=4*P*(c-l),s[2*y]+=4*P*(g-a),s[2*y+1]+=4*P*(l-c)}}return r}function ve(e,s={}){let i=Ie(e,s),n=s.lossFunction||bt;if(e.length>=8){let r=ke(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ke(e,s={}){let i=s.restarts||10,n=[],r={};for(let b of e)if(b.sets.length===1)r[b.sets[0]]=n.length,n.push(b);let{distances:o,constraints:a}=me(e,n,r),c=At(o.map(At))/o.length;o=o.map((b)=>b.map((z)=>z/c));let y=(b,z)=>be(b,z,o,a),g=null;for(let b=0;b<i;++b){let z=zt(o.length*2).map(Math.random),w=ye(y,z,s);if(!g||w.fx<g.fx)g=w}let l=g.x,M={};for(let b=0;b<n.length;++b){let z=n[b];M[z.sets[0]]={x:l[2*b]*c,y:l[2*b+1]*c,radius:Math.sqrt(z.size/Math.PI)}}if(s.history)for(let b of s.history)Ct(b.x,c);return M}function Ie(e,s){let i=s&&s.lossFunction?s.lossFunction:bt,n={},r={};for(let M of e)if(M.sets.length===1){let b=M.sets[0];n[b]={x:10000000000,y:10000000000,rowid:n.length,size:M.size,radius:Math.sqrt(M.size/Math.PI)},r[b]=[]}e=e.filter((M)=>M.sets.length===2);for(let M of e){let b=M.weight!=null?M.weight:1,z=M.sets[0],w=M.sets[1];if(M.size+Xt>=Math.min(n[z].size,n[w].size))b=0;r[z].push({set:w,size:M.size,weight:b}),r[w].push({set:z,size:M.size,weight:b})}let o=[];Object.keys(r).forEach((M)=>{let b=0;for(let z=0;z<r[M].length;++z)b+=r[M][z].size*r[M][z].weight;o.push({set:M,size:b})});function a(M,b){return b.size-M.size}o.sort(a);let c={};function y(M){return M.set in c}function g(M,b){n[b].x=M.x,n[b].y=M.y,c[b]=!0}g({x:0,y:0},o[0].set);for(let M=1;M<o.length;++M){let b=o[M].set,z=r[b].filter(y),w=n[b];if(z.sort(a),z.length===0)throw"ERROR: missing pairwise overlap information";let P=[];for(var l=0;l<z.length;++l){let B=n[z[l].set],v=Dt(w.radius,B.radius,z[l].size);P.push({x:B.x+v,y:B.y}),P.push({x:B.x-v,y:B.y}),P.push({y:B.y+v,x:B.x}),P.push({y:B.y-v,x:B.x});for(let _=l+1;_<z.length;++_){let D=n[z[_].set],h=Dt(w.radius,D.radius,z[_].size),k=Wt({x:B.x,y:B.y,radius:v},{x:D.x,y:D.y,radius:h});P.push(...k)}}let G=100000000000000000000000000000000000000000000000000,q=P[0];for(let B of P){n[b].x=B.x,n[b].y=B.y;let v=i(n,e);if(v<G)G=v,q=B}g(q,b)}return n}function bt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=Nt(a.radius,c.radius,at(a,c))}else r=It(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Zt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],y=e[n.sets[1]];r=Nt(c.radius,y.radius,at(c,y))}else r=It(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Me(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(at(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x:y,y:g}=c;c.x=o*y-a*g,c.y=a*y+o*g}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Se(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(at(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function Rt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Jt(e,s,i){if(s==null)s=Math.PI/2;let n=te(e).map((g)=>Object.assign({},g)),r=Se(n);for(let g of r){Me(g,s,i);let l=Rt(g);g.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),g.bounds=l}r.sort((g,l)=>l.size-g.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(g,l,M){if(!g)return;let b=g.bounds,z,w;if(l)z=o.xRange.max-b.xRange.min+a;else{z=o.xRange.max-b.xRange.max;let P=(b.xRange.max-b.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(P<0)z+=P}if(M)w=o.yRange.max-b.yRange.min+a;else{w=o.yRange.max-b.yRange.max;let P=(b.yRange.max-b.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(P<0)w+=P}for(let P of g)P.x+=z,P.y+=w,n.push(P)}let y=1;while(y<r.length)c(r[y],!0,!1),c(r[y+1],!1,!0),c(r[y+2],!0,!0),y+=3,o=Rt(n);return $t(n)}function Qt(e,s,i,n,r){let o=te(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=Rt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let y,g;if(r){let z=Math.sqrt(r/Math.PI)*2;y=s/z,g=i/z}else y=s/(a.max-a.min),g=i/(c.max-c.min);let l=Math.min(g,y),M=(s-(a.max-a.min)*l)/2,b=(i-(c.max-c.min)*l)/2;return $t(o.map((z)=>({radius:l*z.radius,x:n+M+(z.x-a.min)*l,y:n+b+(z.y-c.min)*l,setid:z.setid})))}function $t(e){let s={};for(let i of e)s[i.setid]=i;return s}function te(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function ee(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,y=null,g=!0,l=!0,M=null,b=null,z=!1,w=null,P=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,G={},q=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],B=0,v=function(k){if(k in G)return G[k];var m=G[k]=q[B];if(B+=1,B>=q.length)B=0;return m},_=Yt,D=bt;function h(k){let m=k.datum(),Y=new Set;m.forEach((O)=>{if(O.size==0&&O.sets.length==1)Y.add(O.sets[0])}),m=m.filter((O)=>!O.sets.some((Q)=>Y.has(Q)));let L={},X={};if(m.length>0){let O=_(m,{lossFunction:D,distinct:z});if(c)O=Jt(O,a,b);L=Qt(O,i,n,r,y),X=se(L,m,P)}let lt={};m.forEach((O)=>{if(O.label)lt[O.sets]=O.label});function st(O){if(O.sets in lt)return lt[O.sets];if(O.sets.length==1)return""+O.sets[0]}k.selectAll("svg").data([L]).enter().append("svg");let J=k.select("svg");if(s)J.attr("viewBox",`0 0 ${i} ${n}`);else J.attr("width",i).attr("height",n);let H={},Z=!1;J.selectAll(".venn-area path").each(function(O){let Q=this.getAttribute("d");if(O.sets.length==1&&Q&&!z)Z=!0,H[O.sets[0]]=Ee(Q)});function U(O){return(Q)=>{let pt=O.sets.map((gt)=>{let dt=H[gt],ot=L[gt];if(!dt)dt={x:i/2,y:n/2,radius:1};if(!ot)ot={x:i/2,y:n/2,radius:1};return{x:dt.x*(1-Q)+ot.x*Q,y:dt.y*(1-Q)+ot.y*Q,radius:dt.radius*(1-Q)+ot.radius*Q}});return Gt(pt,w)}}let tt=J.selectAll(".venn-area").data(m,(O)=>O.sets),it=tt.enter().append("g").attr("class",(O)=>`venn-area venn-${O.sets.length==1?"circle":"intersection"}${O.colour||O.color?" venn-coloured":""}`).attr("data-venn-sets",(O)=>O.sets.join("_")),et=it.append("path"),ct=it.append("text").attr("class","label").text((O)=>st(O)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)et.style("fill-opacity","0").filter((O)=>O.sets.length==1).style("fill",(O)=>O.colour?O.colour:O.color?O.color:v(O.sets)).style("fill-opacity",".25"),ct.style("fill",(O)=>{if(O.colour||O.color)return"#FFF";if(e.textFill)return e.textFill;return O.sets.length==1?v(O.sets):"#444"});function rt(O){if(typeof O.transition==="function")return O.transition("venn").duration(o);return O}let nt=k;if(Z&&typeof nt.transition==="function")nt=rt(k),nt.selectAll("path").attrTween("d",U);else nt.selectAll("path").attr("d",(O)=>Gt(O.sets.map((Q)=>L[Q])),w);let W=nt.selectAll("text").filter((O)=>(O.sets in X)).text((O)=>st(O)).attr("x",(O)=>Math.floor(X[O.sets].x)).attr("y",(O)=>Math.floor(X[O.sets].y));if(g)if(Z)if("on"in W)W.on("end",_t(L,st));else W.each("end",_t(L,st));else W.each(_t(L,st));let ht=rt(tt.exit()).remove();if(typeof tt.transition==="function")ht.selectAll("path").attrTween("d",U);let ft=ht.selectAll("text").attr("x",i/2).attr("y",n/2);if(M!==null)ct.style("font-size","0px"),W.style("font-size",M),ft.style("font-size","0px");return{circles:L,textCentres:X,nodes:tt,enter:it,update:nt,exit:ht}}return h.wrap=function(k){if(!arguments.length)return g;return g=k,h},h.useViewBox=function(){return s=!0,h},h.width=function(k){if(!arguments.length)return i;return i=k,h},h.height=function(k){if(!arguments.length)return n;return n=k,h},h.padding=function(k){if(!arguments.length)return r;return r=k,h},h.distinct=function(k){if(!arguments.length)return z;return z=k,h},h.colours=function(k){if(!arguments.length)return v;return v=k,h},h.colors=function(k){if(!arguments.length)return v;return v=k,h},h.fontSize=function(k){if(!arguments.length)return M;return M=k,h},h.round=function(k){if(!arguments.length)return w;return w=k,h},h.duration=function(k){if(!arguments.length)return o;return o=k,h},h.layoutFunction=function(k){if(!arguments.length)return _;return _=k,h},h.normalize=function(k){if(!arguments.length)return c;return c=k,h},h.scaleToFit=function(k){if(!arguments.length)return y;return y=k,h},h.styled=function(k){if(!arguments.length)return l;return l=k,h},h.orientation=function(k){if(!arguments.length)return a;return a=k,h},h.orientationOrder=function(k){if(!arguments.length)return b;return b=k,h},h.lossFunction=function(k){if(!arguments.length)return D;return D=k==="default"?bt:k==="logRatio"?Zt:k,h},h}function _t(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,y=(o.length+a.length)/3,g=a.pop(),l=[g],M=0,b=1.1;n.textContent=null;let z=[];function w(v){let _=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return _.textContent=v,z.push(_),n.append(_),_}let P=w(g);while(!0){if(g=a.pop(),!g)break;l.push(g);let v=l.join(" ");if(P.textContent=v,v.length>y&&P.getComputedTextLength()>r)l.pop(),P.textContent=l.join(" "),l=[g],P=w(g),M++}let G=0.35-M*b/2,q=n.getAttribute("x"),B=n.getAttribute("y");z.forEach((v,_)=>{v.setAttribute("x",q),v.setAttribute("y",B),v.setAttribute("dy",`${G+_*b}em`)})}}function Et(e,s,i){let n=s[0].radius-at(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-at(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=at(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function ne(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Et(n[0],e,s);for(let l=1;l<n.length;++l){let M=Et(n[l],e,s);if(M>=o)r=n[l],o=M}let a=Ht((l)=>-1*Et({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},y=!0;for(let l of e)if(at(c,l)>l.radius){y=!1;break}for(let l of s)if(at(c,l)<l.radius){y=!1;break}if(y)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let g={};if(It(e,g),g.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(g.arcs.length==1)return{x:g.arcs[0].circle.x,y:g.arcs[0].circle.y};if(s.length)return ne(e,[]);return Kt(g.arcs.map((l)=>l.p1))}function we(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],y=e[c],g=at(o,y);if(g+y.radius<=o.radius+0.0000000001)s[c].push(r);else if(g+o.radius<=y.radius+0.0000000001)s[r].push(c)}}return s}function se(e,s,i){let n={},r=we(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},y={};for(let b=0;b<a.length;++b){c[a[b]]=!0;let z=r[a[b]];for(let w=0;w<z.length;++w)y[z[w]]=!0}let g=[],l=[];for(let b in e)if(b in c)g.push(e[b]);else if(!(b in y))l.push(e[b]);let M=ne(g,l,i);if(n[a]=M,M.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function _e(e,s,i){let n=[];return n.push(`
|
|
2
|
-
M`,e,s),n.push(`
|
|
3
|
-
m`,-i,0),n.push(`
|
|
4
|
-
a`,i,i,0,1,0,i*2,0),n.push(`
|
|
5
|
-
a`,i,i,0,1,0,-i*2,0),n.join(" ")}function Ee(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function ie(e){if(e.length===0)return[];let s={};return It(e,s),s.arcs}function re(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return _e(n(o.x),n(o.y),n(o.radius))}let r=[`
|
|
6
|
-
M`,n(e[0].p2.x),n(e[0].p2.y)];for(let o of e){let a=n(o.circle.radius);r.push(`
|
|
7
|
-
A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Gt(e,s){return re(ie(e),s)}function oe(e,s={}){let{lossFunction:i,layoutFunction:n=Yt,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:y=350,padding:g=15,scaleToFit:l=!1,symmetricalTextCentre:M=!1,distinct:b,round:z=2}=s,w=n(e,{lossFunction:i==="default"||!i?bt:i==="logRatio"?Zt:i,distinct:b});if(r)w=Jt(w,o,a);let P=Qt(w,c,y,g,l),G=se(P,e,M),q=new Map(Object.keys(P).map((_)=>[_,{set:_,x:P[_].x,y:P[_].y,radius:P[_].radius}])),B=e.map((_)=>{let D=_.sets.map((m)=>q.get(m)),h=ie(D),k=re(h,z);return{circles:D,arcs:h,path:k,area:_,has:new Set(_.sets)}});function v(_){let D="";for(let h of B)if(h.has.size>_.length&&_.every((k)=>h.has.has(k)))D+=" "+h.path;return D}return B.map(({circles:_,arcs:D,path:h,area:k})=>({data:k,text:G[k.sets],circles:_,arcs:D,path:h,distinctPath:h+v(k.sets)}))}var Ot=function(){var e=t(function(B,v,_,D){for(_=_||{},D=B.length;D--;_[B[D]]=v);return _},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],y=[7,8,11,12,17,19,22,24,27],g=[1,57],l=[1,56],M=[1,58],b=[1,59],z=[1,60],w=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],P={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(v,_,D,h,k,m,Y){var L=m.length-1;switch(k){case 1:return m[L-1];case 2:case 3:case 4:this.$=[];break;case 5:m[L-1].push(m[L]),this.$=m[L-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=m[L];break;case 8:h.setDiagramTitle(m[L].substr(6)),this.$=m[L].substr(6);break;case 9:if(h.addSubsetData([m[L]],void 0,void 0),h.setIndentMode)h.setIndentMode(!0);break;case 10:if(h.addSubsetData([m[L-1]],m[L],void 0),h.setIndentMode)h.setIndentMode(!0);break;case 11:if(h.addSubsetData([m[L-2]],void 0,parseFloat(m[L])),h.setIndentMode)h.setIndentMode(!0);break;case 12:if(h.addSubsetData([m[L-3]],m[L-2],parseFloat(m[L])),h.setIndentMode)h.setIndentMode(!0);break;case 13:if(m[L].length<2)throw Error("union requires multiple identifiers");if(h.validateUnionIdentifiers)h.validateUnionIdentifiers(m[L]);if(h.addSubsetData(m[L],void 0,void 0),h.setIndentMode)h.setIndentMode(!0);break;case 14:if(m[L-1].length<2)throw Error("union requires multiple identifiers");if(h.validateUnionIdentifiers)h.validateUnionIdentifiers(m[L-1]);if(h.addSubsetData(m[L-1],m[L],void 0),h.setIndentMode)h.setIndentMode(!0);break;case 15:if(m[L-2].length<2)throw Error("union requires multiple identifiers");if(h.validateUnionIdentifiers)h.validateUnionIdentifiers(m[L-2]);if(h.addSubsetData(m[L-2],void 0,parseFloat(m[L])),h.setIndentMode)h.setIndentMode(!0);break;case 16:if(m[L-3].length<2)throw Error("union requires multiple identifiers");if(h.validateUnionIdentifiers)h.validateUnionIdentifiers(m[L-3]);if(h.addSubsetData(m[L-3],m[L-2],parseFloat(m[L])),h.setIndentMode)h.setIndentMode(!0);break;case 17:case 18:case 19:h.addTextData(m[L-1],m[L],void 0);break;case 20:case 21:h.addTextData(m[L-2],m[L-1],m[L]);break;case 23:h.addStyleData(m[L-1],m[L]);break;case 24:case 25:case 26:var X=h.getCurrentSets();if(!X)throw Error("text requires set");h.addTextData(X,m[L],void 0);break;case 27:case 28:var X=h.getCurrentSets();if(!X)throw Error("text requires set");h.addTextData(X,m[L-1],m[L]);break;case 29:case 41:this.$=[m[L]];break;case 30:case 42:this.$=[...m[L-2],m[L]];break;case 31:this.$=[m[L-2],m[L]];break;case 33:this.$=m[L].join(" ");break;case 34:this.$=[m[L]];break;case 35:m[L-1].push(m[L]),this.$=m[L-1];break;case 43:case 44:this.$=m[L];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(y,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:g,20:l,21:[1,53],28:52,29:54,30:55,31:M,32:b,33:z},e(i,[2,12]),e(i,[2,16]),e(y,[2,30]),e(y,[2,31]),e(y,[2,32]),e(y,[2,33],{30:61,16:g,20:l,31:M,32:b,33:z}),e(w,[2,34]),e(w,[2,36]),e(w,[2,37]),e(w,[2,38]),e(w,[2,39]),e(w,[2,40]),e(w,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(v,_){if(_.recoverable)this.trace(v);else{var D=Error(v);throw D.hash=_,D}},"parseError"),parse:t(function(v){var _=this,D=[0],h=[],k=[null],m=[],Y=this.table,L="",X=0,lt=0,st=0,J=2,H=1,Z=m.slice.call(arguments,1),U=Object.create(this.lexer),tt={yy:{}};for(var it in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,it))tt.yy[it]=this.yy[it];if(U.setInput(v,tt.yy),tt.yy.lexer=U,tt.yy.parser=this,typeof U.yylloc>"u")U.yylloc={};var et=U.yylloc;m.push(et);var ct=U.options&&U.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function rt(ut){D.length=D.length-2*ut,k.length=k.length-ut,m.length=m.length-ut}t(rt,"popStack");function nt(){var ut=h.pop()||U.lex()||H;if(typeof ut!=="number"){if(ut instanceof Array)h=ut,ut=h.pop();ut=_.symbols_[ut]||ut}return ut}t(nt,"lex");var W,ht,ft,O,Q,pt,gt={},dt,ot,qt,kt;while(!0){if(ft=D[D.length-1],this.defaultActions[ft])O=this.defaultActions[ft];else{if(W===null||typeof W>"u")W=nt();O=Y[ft]&&Y[ft][W]}if(typeof O>"u"||!O.length||!O[0]){var St="";kt=[];for(dt in Y[ft])if(this.terminals_[dt]&&dt>J)kt.push("'"+this.terminals_[dt]+"'");if(U.showPosition)St="Parse error on line "+(X+1)+`:
|
|
8
|
-
`+U.showPosition()+`
|
|
9
|
-
Expecting `+kt.join(", ")+", got '"+(this.terminals_[W]||W)+"'";else St="Parse error on line "+(X+1)+": Unexpected "+(W==H?"end of input":"'"+(this.terminals_[W]||W)+"'");this.parseError(St,{text:U.match,token:this.terminals_[W]||W,line:U.yylineno,loc:et,expected:kt})}if(O[0]instanceof Array&&O.length>1)throw Error("Parse Error: multiple actions possible at state: "+ft+", token: "+W);switch(O[0]){case 1:if(D.push(W),k.push(U.yytext),m.push(U.yylloc),D.push(O[1]),W=null,!ht){if(lt=U.yyleng,L=U.yytext,X=U.yylineno,et=U.yylloc,st>0)st--}else W=ht,ht=null;break;case 2:if(ot=this.productions_[O[1]][1],gt.$=k[k.length-ot],gt._$={first_line:m[m.length-(ot||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(ot||1)].first_column,last_column:m[m.length-1].last_column},ct)gt._$.range=[m[m.length-(ot||1)].range[0],m[m.length-1].range[1]];if(pt=this.performAction.apply(gt,[L,lt,X,tt.yy,O[1],k,m].concat(Z)),typeof pt<"u")return pt;if(ot)D=D.slice(0,-1*ot*2),k=k.slice(0,-1*ot),m=m.slice(0,-1*ot);D.push(this.productions_[O[1]][0]),k.push(gt.$),m.push(gt._$),qt=Y[D[D.length-2]][D[D.length-1]],D.push(qt);break;case 3:return!0}}return!0},"parse")},G=function(){var B={EOF:1,parseError:t(function(_,D){if(this.yy.parser)this.yy.parser.parseError(_,D);else throw Error(_)},"parseError"),setInput:t(function(v,_){if(this.yy=_||this.yy||{},this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var _=v.match(/(?:\r\n?|\n).*/g);if(_)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),v},"input"),unput:t(function(v){var _=v.length,D=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var h=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1)this.yylineno-=D.length-1;var k=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===h.length?this.yylloc.first_column:0)+h[h.length-D.length].length-D[0].length:this.yylloc.first_column-_},this.options.ranges)this.yylloc.range=[k[0],k[0]+this.yyleng-_];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
10
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(v){this.unput(this.match.slice(v))},"less"),pastInput:t(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var v=this.match;if(v.length<20)v+=this._input.substr(0,20-v.length);return(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var v=this.pastInput(),_=Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
11
|
-
`+_+"^"},"showPosition"),test_match:t(function(v,_){var D,h,k;if(this.options.backtrack_lexer){if(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)k.yylloc.range=this.yylloc.range.slice(0)}if(h=v[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],D=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(D)return D;else if(this._backtrack){for(var m in k)this[m]=k[m];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var v,_,D,h;if(!this._more)this.yytext="",this.match="";var k=this._currentRules();for(var m=0;m<k.length;m++)if(D=this._input.match(this.rules[k[m]]),D&&(!_||D[0].length>_[0].length)){if(_=D,h=m,this.options.backtrack_lexer)if(v=this.test_match(D,k[m]),v!==!1)return v;else if(this._backtrack){_=!1;continue}else return!1;else if(!this.options.flex)break}if(_){if(v=this.test_match(_,k[h]),v!==!1)return v;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
12
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var _=this.next();if(_)return _;else return this.lex()},"lex"),begin:t(function(_){this.conditionStack.push(_)},"begin"),popState:t(function(){var _=this.conditionStack.length-1;if(_>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(_){if(_=this.conditionStack.length-1-Math.abs(_||0),_>=0)return this.conditionStack[_];else return"INITIAL"},"topState"),pushState:t(function(_){this.begin(_)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(_,D,h,k){var m=k;switch(h){case 0:break;case 1:break;case 2:break;case 3:if(_.getIndentMode&&_.getIndentMode())return _.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(_.setIndentMode)_.setIndentMode(!1);this.begin("INITIAL"),this.unput(D.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(_.consumeIndentText)_.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return D.yytext=D.yytext.slice(2,-2),14;break;case 17:return D.yytext=D.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return B}();P.lexer=G;function q(){this.yy={}}return t(q,"Parser"),q.prototype=P,P.Parser=q,new q}();Ot.parser=Ot;var ze=Ot,Lt=[],jt=[],Ft=[],Pt=new Set,Vt,Bt=!1,Ae=t((e,s,i)=>{let n=Mt(e).sort(),r=i??10/Math.pow(e.length,2);if(Vt=n,n.length===1)Pt.add(n[0]);Lt.push({sets:n,size:r,label:s?vt(s):void 0})},"addSubsetData"),Ce=t(()=>Lt,"getSubsetData"),vt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?vt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=vt(s);jt.push({sets:Mt(e).sort(),id:n,label:i?vt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=Mt(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;Ft.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>Ft,"getStyleData"),Mt=t((e)=>e.map((s)=>vt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=Mt(e).filter((n)=>!Pt.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>jt,"getTextData"),Fe=t(()=>Vt,"getCurrentSets"),Pe=t(()=>Bt,"getIndentMode"),Ve=t((e)=>{Bt=e},"setIndentMode"),Be=N.venn;function ae(){return j(Be,x().venn)}t(ae,"getConfig");var qe=t(()=>{C(),Lt.length=0,jt.length=0,Ft.length=0,Pt.clear(),Vt=void 0,Bt=!1},"customClear"),Ue={getConfig:ae,clear:qe,setAccTitle:S,getAccTitle:E,setDiagramTitle:I,getDiagramTitle:R,getAccDescription:A,setAccDescription:T,addSubsetData:Ae,getSubsetData:Ce,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
|
|
13
|
-
.venn-title {
|
|
14
|
-
font-size: 32px;
|
|
15
|
-
fill: ${e.vennTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.venn-circle text {
|
|
20
|
-
font-size: 48px;
|
|
21
|
-
font-family: ${e.fontFamily};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.venn-intersection text {
|
|
25
|
-
font-size: 48px;
|
|
26
|
-
fill: ${e.vennSetTextColor};
|
|
27
|
-
font-family: ${e.fontFamily};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.venn-text-node {
|
|
31
|
-
font-family: ${e.fontFamily};
|
|
32
|
-
color: ${e.vennSetTextColor};
|
|
33
|
-
}
|
|
34
|
-
`,"getStyles"),We=Ge;function le(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(le,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:y}=x(),g=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),M=r.getDiagramTitle?.(),b=r.getSubsetData(),z=r.getTextData(),w=le(r.getStyleData()),P=ue(b),G=o?.width??800,q=o?.height??450,B=1600,v=G/1600,_=M?48*v:0,D=a.primaryTextColor??a.textColor,h=V(s);if(h.attr("viewBox",`0 0 ${G} ${q}`),M)h.append("text").text(M).attr("class","venn-title").attr("font-size",`${32*v}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*v).style("fill",a.vennTitleTextColor||a.titleColor);let k=p(document.createElement("div")),m=ee().width(G).height(q-_);k.datum(P).call(m);let Y=g?f.svg(k.select("svg").node()):void 0,L=oe(P,{width:G,height:q-_,padding:o?.padding??15}),X=new Map;for(let H of L){let Z=yt([...H.data.sets].sort());X.set(Z,H)}if(z.length>0)ce(o,X,k,z,v,w);let lt=K(a.background||"#f4f4f4");if(k.selectAll(".venn-circle").each(function(H,Z){let U=p(this),it=yt([...H.sets].sort()),et=w.get(it),ct=l.length>0?l[Z%l.length]:void 0,rt=et?.fill||ct||a.primaryColor;U.classed(`venn-set-${Z%8}`,!0);let nt=et?.["fill-opacity"]??0.1,W=et?.stroke||rt,ht=et?.["stroke-width"]||`${5*v}`;if(g&&Y){let O=X.get(it);if(O&&O.circles.length>0){let Q=O.circles[0],pt=Y.circle(Q.x,Q.y,Q.radius*2,{roughness:0.7,seed:y,fill:wt(rt,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+Z*60,stroke:W,strokeWidth:parseFloat(String(ht))});U.select("path").remove(),U.node()?.insertBefore(pt,U.select("text").node())}}else U.select("path").style("fill",rt).style("fill-opacity",nt).style("stroke",W).style("stroke-width",ht).style("stroke-opacity",0.95);let ft=et?.color||(lt?u(rt,30):d(rt,30));U.select("text").style("font-size",`${48*v}px`).style("fill",ft)}),g&&Y)k.selectAll(".venn-intersection").each(function(H){let Z=p(this),tt=yt([...H.sets].sort()),it=w.get(tt),et=it?.fill;if(et){let ct=Z.select("path"),rt=ct.attr("d");if(rt){let nt=Y.path(rt,{roughness:0.7,seed:y,fill:wt(et,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),W=ct.node();W?.parentNode?.insertBefore(nt,W),ct.remove()}}else Z.select("path").style("fill-opacity",0);Z.select("text").style("font-size",`${48*v}px`).style("fill",it?.color??a.vennSetTextColor??D)});else k.selectAll(".venn-intersection text").style("font-size",`${48*v}px`).style("fill",(H)=>{let U=yt([...H.sets].sort());return w.get(U)?.color??a.vennSetTextColor??D}),k.selectAll(".venn-intersection path").style("fill-opacity",(H)=>{let U=yt([...H.sets].sort());return w.get(U)?.fill?1:0}).style("fill",(H)=>{let U=yt([...H.sets].sort());return w.get(U)?.fill??"transparent"});let st=h.append("g").attr("transform",`translate(0, ${_})`),J=k.select("svg").node();if(J&&"childNodes"in J)for(let H of[...J.childNodes])st.node()?.appendChild(H);F(h,q,G,o?.useMaxWidth??!0)},"draw");function yt(e){return e.join("|")}t(yt,"stableSetsKey");function ce(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,y=i.select("svg").append("g").attr("class","venn-text-nodes"),g=new Map;for(let l of n){let M=yt(l.sets),b=g.get(M);if(b)b.push(l);else g.set(M,[l])}for(let[l,M]of g.entries()){let b=s.get(l);if(!b?.text)continue;let z=b.text.x,w=b.text.y,P=Math.min(...b.circles.map((J)=>J.radius)),G=Math.min(...b.circles.map((J)=>J.radius-Math.hypot(z-J.x,w-J.y))),q=Number.isFinite(G)?Math.max(0,G):0;if(q===0&&Number.isFinite(P))q=P*0.6;let B=y.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)B.append("circle").attr("class","venn-text-debug-circle").attr("cx",z).attr("cy",w).attr("r",q).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let v=Math.max(80*r,q*2*0.95),_=Math.max(60*r,q*2*0.95),k=(b.data.label&&b.data.label.length>0?Math.min(32*r,q*0.25):0)+(M.length<=2?30*r:0),m=z-v/2,Y=w-_/2+k,L=Math.max(1,Math.ceil(Math.sqrt(M.length))),X=Math.max(1,Math.ceil(M.length/L)),lt=v/L,st=_/X;for(let[J,H]of M.entries()){let Z=J%L,U=Math.floor(J/L),tt=m+lt*(Z+0.5),it=Y+st*(U+0.5);if(a)B.append("rect").attr("class","venn-text-debug-cell").attr("x",m+lt*Z).attr("y",Y+st*U).attr("width",lt).attr("height",st).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let et=lt*0.9,ct=st*0.9,rt=B.append("foreignObject").attr("class","venn-text-node-fo").attr("width",et).attr("height",ct).attr("x",tt-et/2).attr("y",it-ct/2).attr("overflow","visible"),nt=o.get(H.id)?.color,W=rt.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(H.label??H.id);if(nt)W.style("color",nt)}}}t(ce,"renderTextNodes");function ue(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let y=[o[a],o[c]],g=y.join("|");if(!s.has(g)){s.add(g);let l=i.get(y[0]),M=i.get(y[1]),b=l!==void 0&&M!==void 0?Math.min(l,M)/4:2.5;n.push({sets:y,size:b,label:""})}}}return n.length>0?[...e,...n]:e}t(ue,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:ze,db:Ue,renderer:He,styles:We};export{rn as diagram};
|
package/web/chunk-4k62e61g.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import{t,a,Re,b,C,S,E,T,A,I,R,l,p,eo,M,pe,le,ce,vt,ge,ye}from"./chunk-h8mhnze5.js";import{Ft}from"./chunk-z2hvvkf5.js";import{he}from"./chunk-76e3npmd.js";import{ue}from"./chunk-wvt76598.js";var Bt=function(){var e=t(function(Q,h,g,n){for(g=g||{},n=Q.length;n--;g[Q[n]]=h);return g},"o"),s=[1,2],c=[1,3],r=[1,4],u=[2,4],f=[1,9],m=[1,11],k=[1,16],o=[1,17],D=[1,18],x=[1,19],G=[1,33],Y=[1,20],j=[1,21],O=[1,22],y=[1,23],V=[1,24],F=[1,26],z=[1,27],W=[1,28],K=[1,29],N=[1,30],st=[1,31],pt=[1,32],St=[1,35],gt=[1,36],yt=[1,37],mt=[1,38],rt=[1,34],_=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],bt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Mt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Lt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(h,g,n,v,L,i,it){var d=i.length-1;switch(L){case 3:return v.setRootDoc(i[d]),i[d];break;case 4:this.$=[];break;case 5:if(i[d]!="nl")i[d-1].push(i[d]),this.$=i[d-1];break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:let Tt=i[d-1];Tt.description=v.trimColon(i[d]),this.$=Tt;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:let Et=v.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Et};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var X=i[d],J=i[d-2].trim();if(i[d].match(":")){var lt=i[d].split(":");X=lt[0],J=[J,lt[1]]}this.$={stmt:"state",id:X,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:v.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),v.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),v.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:v.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:v.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:v.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:v.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:s,5:c,6:r},{1:[3]},{3:5,4:s,5:c,6:r},{3:6,4:s,5:c,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],u,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:f,5:m,8:8,9:10,10:12,11:13,12:14,13:15,16:k,17:o,19:D,22:x,24:G,25:Y,26:j,27:O,28:y,29:V,32:25,33:F,35:z,37:W,38:K,41:N,45:st,48:pt,51:St,52:gt,53:yt,54:mt,57:rt},e(_,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:k,17:o,19:D,22:x,24:G,25:Y,26:j,27:O,28:y,29:V,32:25,33:F,35:z,37:W,38:K,41:N,45:st,48:pt,51:St,52:gt,53:yt,54:mt,57:rt},e(_,[2,7]),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(_,[2,11]),e(_,[2,12],{14:[1,40],15:[1,41]}),e(_,[2,16]),{18:[1,42]},e(_,[2,18],{20:[1,43]}),{23:[1,44]},e(_,[2,22]),e(_,[2,23]),e(_,[2,24]),e(_,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(_,[2,28]),{34:[1,49]},{36:[1,50]},e(_,[2,31]),{13:51,24:G,57:rt},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(bt,[2,44],{58:[1,56]}),e(bt,[2,45],{58:[1,57]}),e(_,[2,38]),e(_,[2,39]),e(_,[2,40]),e(_,[2,41]),e(_,[2,6]),e(_,[2,13]),{13:58,24:G,57:rt},e(_,[2,17]),e(Mt,u,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(_,[2,29]),e(_,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(_,[2,14],{14:[1,71]}),{4:f,5:m,8:8,9:10,10:12,11:13,12:14,13:15,16:k,17:o,19:D,21:[1,72],22:x,24:G,25:Y,26:j,27:O,28:y,29:V,32:25,33:F,35:z,37:W,38:K,41:N,45:st,48:pt,51:St,52:gt,53:yt,54:mt,57:rt},e(_,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(_,[2,34]),e(_,[2,35]),e(_,[2,36]),e(_,[2,37]),e(bt,[2,46]),e(bt,[2,47]),e(_,[2,15]),e(_,[2,19]),e(Mt,u,{7:78}),e(_,[2,26]),e(_,[2,27]),{5:[1,79]},{5:[1,80]},{4:f,5:m,8:8,9:10,10:12,11:13,12:14,13:15,16:k,17:o,19:D,21:[1,81],22:x,24:G,25:Y,26:j,27:O,28:y,29:V,32:25,33:F,35:z,37:W,38:K,41:N,45:st,48:pt,51:St,52:gt,53:yt,54:mt,57:rt},e(_,[2,32]),e(_,[2,33]),e(_,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(h,g){if(g.recoverable)this.trace(h);else{var n=Error(h);throw n.hash=g,n}},"parseError"),parse:t(function(h){var g=this,n=[0],v=[],L=[null],i=[],it=this.table,d="",X=0,J=0,lt=0,Tt=2,Et=1,be=i.slice.call(arguments,1),w=Object.create(this.lexer),tt={yy:{}};for(var wt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,wt))tt.yy[wt]=this.yy[wt];if(w.setInput(h,tt.yy),tt.yy.lexer=w,tt.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var It=w.yylloc;i.push(It);var ke=w.options&&w.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Te(H){n.length=n.length-2*H,L.length=L.length-H,i.length=i.length-H}t(Te,"popStack");function Wt(){var H=v.pop()||w.lex()||Et;if(typeof H!=="number"){if(H instanceof Array)v=H,H=v.pop();H=g.symbols_[H]||H}return H}t(Wt,"lex");var P,Nt,et,U,ts,Ot,at={},_t,q,jt,Dt;while(!0){if(et=n[n.length-1],this.defaultActions[et])U=this.defaultActions[et];else{if(P===null||typeof P>"u")P=Wt();U=it[et]&&it[et][P]}if(typeof U>"u"||!U.length||!U[0]){var Rt="";Dt=[];for(_t in it[et])if(this.terminals_[_t]&&_t>Tt)Dt.push("'"+this.terminals_[_t]+"'");if(w.showPosition)Rt="Parse error on line "+(X+1)+`:
|
|
2
|
-
`+w.showPosition()+`
|
|
3
|
-
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[P]||P)+"'";else Rt="Parse error on line "+(X+1)+": Unexpected "+(P==Et?"end of input":"'"+(this.terminals_[P]||P)+"'");this.parseError(Rt,{text:w.match,token:this.terminals_[P]||P,line:w.yylineno,loc:It,expected:Dt})}if(U[0]instanceof Array&&U.length>1)throw Error("Parse Error: multiple actions possible at state: "+et+", token: "+P);switch(U[0]){case 1:if(n.push(P),L.push(w.yytext),i.push(w.yylloc),n.push(U[1]),P=null,!Nt){if(J=w.yyleng,d=w.yytext,X=w.yylineno,It=w.yylloc,lt>0)lt--}else P=Nt,Nt=null;break;case 2:if(q=this.productions_[U[1]][1],at.$=L[L.length-q],at._$={first_line:i[i.length-(q||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(q||1)].first_column,last_column:i[i.length-1].last_column},ke)at._$.range=[i[i.length-(q||1)].range[0],i[i.length-1].range[1]];if(Ot=this.performAction.apply(at,[d,J,X,tt.yy,U[1],L,i].concat(be)),typeof Ot<"u")return Ot;if(q)n=n.slice(0,-1*q*2),L=L.slice(0,-1*q),i=i.slice(0,-1*q);n.push(this.productions_[U[1]][0]),L.push(at.$),i.push(at._$),jt=it[n[n.length-2]][n[n.length-1]],n.push(jt);break;case 3:return!0}}return!0},"parse")},me=function(){var Q={EOF:1,parseError:t(function(g,n){if(this.yy.parser)this.yy.parser.parseError(g,n);else throw Error(g)},"parseError"),setInput:t(function(h,g){if(this.yy=g||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var g=h.match(/(?:\r\n?|\n).*/g);if(g)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),h},"input"),unput:t(function(h){var g=h.length,n=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var v=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1)this.yylineno-=n.length-1;var L=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===v.length?this.yylloc.first_column:0)+v[v.length-n.length].length-n[0].length:this.yylloc.first_column-g},this.options.ranges)this.yylloc.range=[L[0],L[0]+this.yyleng-g];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(h){this.unput(this.match.slice(h))},"less"),pastInput:t(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var h=this.match;if(h.length<20)h+=this._input.substr(0,20-h.length);return(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var h=this.pastInput(),g=Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
5
|
-
`+g+"^"},"showPosition"),test_match:t(function(h,g){var n,v,L;if(this.options.backtrack_lexer){if(L={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)L.yylloc.range=this.yylloc.range.slice(0)}if(v=h[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],n=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(n)return n;else if(this._backtrack){for(var i in L)this[i]=L[i];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var h,g,n,v;if(!this._more)this.yytext="",this.match="";var L=this._currentRules();for(var i=0;i<L.length;i++)if(n=this._input.match(this.rules[L[i]]),n&&(!g||n[0].length>g[0].length)){if(g=n,v=i,this.options.backtrack_lexer)if(h=this.test_match(n,L[i]),h!==!1)return h;else if(this._backtrack){g=!1;continue}else return!1;else if(!this.options.flex)break}if(g){if(h=this.test_match(g,L[v]),h!==!1)return h;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var g=this.next();if(g)return g;else return this.lex()},"lex"),begin:t(function(g){this.conditionStack.push(g)},"begin"),popState:t(function(){var g=this.conditionStack.length-1;if(g>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(g){if(g=this.conditionStack.length-1-Math.abs(g||0),g>=0)return this.conditionStack[g];else return"INITIAL"},"topState"),pushState:t(function(g){this.begin(g)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(g,n,v,L){function i(){let d=n.yytext.indexOf("%%");if(d===0)return!1;if(d>0){let X=n.yytext.slice(0,d),J=n.yytext.slice(d);if(J)g.lexer.unput(J);n.yytext=X}return!0}t(i,"processId");var it=L;switch(v){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!i())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+n.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!i())return;return this.popState(),"ID";break;case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;break;case 68:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!i())return;return 24;case 74:return n.yytext=n.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return Q}();Lt.lexer=me;function kt(){this.yy={}}return t(kt,"Parser"),kt.prototype=Lt,Lt.Parser=kt,new kt}();Bt.parser=Bt;var Ee=Bt,_e="TB",qt="TB",Ut="dir",ot="state",nt="root",Gt="relation",ve="classDef",De="style",Ce="applyClass",ut="default",Qt="divider",Zt="fill:none",te="fill: #333",ee="c",se="markdown",re="normal",$t="rect",Pt="rectWithTitle",Ae="stateStart",xe="stateEnd",Yt="divider",Ht="roundedWithTitle",Le="note",we="noteGroup",ft="statediagram",Ie="state",Ne=`${ft}-${Ie}`,ie="transition",Oe="note",$e="note-edge",Fe=`${ie} ${$e}`,Pe=`${ft}-${Oe}`,Be="cluster",Ge=`${ft}-${Be}`,Ye="cluster-alt",Ve=`${ft}-${Ye}`,ae="parent",ne="note",Me="state",Vt="----",We=`${Vt}${ne}`,zt=`${Vt}${ae}`,At=new Map,Z=0,oe=0,ct=new Map,je=t((e,s,c,r)=>{if(e===Yt&&c?.id!==void 0&&ct.has(c.id)){let m=ct.get(c.id);return ct.set(s,m),m}let u=oe++,f=r?void 0:u;return ct.set(s,f),f},"colorSlotFor");function xt(e="",s=0,c="",r=Vt){let u=c!==null&&c.length>0?`${r}${c}`:"";return`${Me}-${e}${u}-${s}`}t(xt,"stateDomId");var Ue=t((e,s,c,r,u,f,m,k)=>{a.trace("items",s),s.forEach((o)=>{switch(o.stmt){case ot:dt(e,o,c,r,u,f,m,k);break;case ut:dt(e,o,c,r,u,f,m,k);break;case Gt:{dt(e,o.state1,c,r,u,f,m,k),dt(e,o.state2,c,r,u,f,m,k);let D=m==="neo",x={id:"edge"+Z,start:o.state1.id,end:o.state2.id,arrowhead:"normal",arrowTypeEnd:D?"arrow_barb_neo":"arrow_barb",style:Zt,labelStyle:"",label:b.sanitizeText(o.description??"",l()),arrowheadStyle:te,labelpos:ee,labelType:se,thickness:re,classes:ie,look:m};u.push(x),Z++}break}})},"setupDoc"),Kt=t((e,s=qt)=>{let c=s;if(e.doc){for(let r of e.doc)if(r.stmt==="dir")c=r.value}return c},"getDir");function ht(e,s,c){if(!s.id||s.id==="</join></fork>"||s.id==="</choice>")return;if(s.cssClasses){if(!Array.isArray(s.cssCompiledStyles))s.cssCompiledStyles=[];s.cssClasses.split(" ").forEach((u)=>{let f=c.get(u);if(f)s.cssCompiledStyles=[...s.cssCompiledStyles??[],...f.styles]})}let r=e.find((u)=>u.id===s.id);if(r)Object.assign(r,s);else e.push(s)}t(ht,"insertOrUpdateNode");function de(e){return e?.classes?.join(" ")??""}t(de,"getClassesFromDbInfo");function fe(e){return e?.styles??[]}t(fe,"getStylesFromDbInfo");var dt=t((e,s,c,r,u,f,m,k)=>{let o=s.id,D=c.get(o),x=de(D),G=fe(D),Y=l(),j=x.trim()!==""||G.length>0;if(a.info("dataFetcher parsedItem",s,D,G),o!=="root"){let O=$t;if(s.start===!0)O=Ae;else if(s.start===!1)O=xe;if(s.type!==ut)O=s.type;if(!At.get(o))At.set(o,{id:o,shape:O,description:b.sanitizeText(o,Y),cssClasses:`${x} ${Ne}`,cssStyles:G});let y=At.get(o);if(s.description){if(Array.isArray(y.description))y.shape=Pt,y.description.push(s.description);else if(y.description?.length&&y.description.length>0)if(y.shape=Pt,y.description===o)y.description=[s.description];else y.description=[y.description,s.description];else y.shape=$t,y.description=s.description;y.description=b.sanitizeTextOrArray(y.description,Y)}if(y.description?.length===1&&y.shape===Pt)if(y.type==="group")y.shape=Ht;else y.shape=$t;if(!y.type&&s.doc)a.info("Setting cluster for XCX",o,Kt(s)),y.type="group",y.isGroup=!0,y.dir=Kt(s),y.shape=s.type===Qt?Yt:Ht,y.colorIndex=je(y.shape,o,e,j),y.cssClasses=`${y.cssClasses} ${Ge} ${f?Ve:""}`;let V={labelStyle:"",shape:y.shape,label:y.description,cssClasses:y.cssClasses,cssCompiledStyles:[],cssStyles:y.cssStyles,id:o,dir:y.dir,domId:xt(o,Z),type:y.type,isGroup:y.type==="group",colorIndex:y.colorIndex,padding:8,rx:10,ry:10,look:m,labelType:"markdown"};if(V.shape===Yt)V.label="";if(e&&e.id!=="root")a.trace("Setting node ",o," to be child of its parent ",e.id),V.parentId=e.id;if(V.centerLabel=!0,s.note){let F={labelStyle:"",shape:Le,label:s.note.text,labelType:"markdown",cssClasses:Pe,cssStyles:[],cssCompiledStyles:[],id:o+We+"-"+Z,domId:xt(o,Z,ne),type:"node",isGroup:!1,padding:Y.flowchart?.padding,look:m,position:s.note.position},z=o+zt,W={labelStyle:"",shape:we,label:s.note.text,cssClasses:y.cssClasses,cssStyles:[],id:o+zt,domId:xt(o,Z,ae),type:"group",isGroup:!0,padding:16,look:m,position:s.note.position};Z++,W.id=z,F.parentId=z,ht(r,W,k),ht(r,F,k),ht(r,V,k);let K=o,N=F.id;if(s.note.position==="left of")K=F.id,N=o;u.push({id:K+"-"+N,start:K,end:N,arrowhead:"none",arrowTypeEnd:"",style:Zt,labelStyle:"",classes:Fe,pattern:"dashed",arrowheadStyle:te,labelpos:ee,labelType:se,thickness:re,look:m})}else ht(r,V,k)}if(s.doc)a.trace("Adding nodes children "),Ue(s,s.doc,c,r,u,!f,m,k)},"dataFetcher"),He=t(()=>{At.clear(),Z=0,oe=0,ct.clear()},"reset"),Se=t((e,s=qt)=>{if(!e.doc)return s;let c=s;for(let r of e.doc)if(r.stmt==="dir")c=r.value;return c},"getDir"),ze=t(function(e,s){return s.db.getClasses()},"getClasses"),Ke=t(async function(e,s,c,r){a.info("REF0:"),a.info("Drawing state diagram (v2)",s);let{securityLevel:u,state:f,layout:m}=l();r.db.extract(r.db.getRootDocV2());let k=r.db.getData(),o=he(s,u);if(k.type=r.type,k.layoutAlgorithm=ye(m),k.nodeSpacing=f?.nodeSpacing||50,k.rankSpacing=f?.rankSpacing||50,l().look==="neo")k.markers=["barbNeo"];else k.markers=["barb"];k.diagramId=s,await ge(k,o);let x=8;try{(typeof r.db.getLinks==="function"?r.db.getLinks():new Map).forEach((Y,j)=>{let O=typeof j==="string"?j:typeof j?.id==="string"?j.id:"",y=k.nodes.find((N)=>N.id===O);if(!O){a.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(j));return}let V=o.node()?.querySelectorAll("g.node, g.rough-node"),F;if(V?.forEach((N)=>{let st=N.textContent?.trim();if(N.id===y?.domId||st===O)F=N}),!F){a.warn("⚠️ Could not find node matching text:",O);return}let z=F.parentNode;if(!z){a.warn("⚠️ Node has no parent, cannot wrap:",O);return}let W=document.createElementNS("http://www.w3.org/2000/svg","a"),K=Y.url.replace(/^"+|"+$/g,"");if(W.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",K),W.setAttribute("target","_blank"),Y.tooltip){let N=Y.tooltip.replace(/^"+|"+$/g,"");W.setAttribute("title",N),F.setAttribute("title",N)}z.replaceChild(W,F),W.appendChild(F),a.info("\uD83D\uDD17 Wrapped node in <a> tag for:",O,Y.url)})}catch(G){a.error("❌ Error injecting clickable links:",G)}M.insertTitle(o,"statediagramTitleText",f?.titleTopMargin??25,r.db.getDiagramTitle()),ue(o,x,ft,f?.useMaxWidth??!0)},"draw"),Xe={getClasses:ze,draw:Ke,getDir:Se},B={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Xt=t(()=>new Map,"newClassesList"),Jt=t(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Ct=t((e)=>JSON.parse(JSON.stringify(e)),"clone"),Je=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Xt(),this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=E,this.setAccTitle=S,this.getAccDescription=A,this.setAccDescription=T,this.setDiagramTitle=I,this.getDiagramTitle=R,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{t(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let r of Array.isArray(e)?e:e.doc)switch(r.stmt){case ot:this.addState(r.id.trim(),r.type,r.doc,r.description,r.note);break;case Gt:this.addRelation(r.state1,r.state2,r.description);break;case ve:this.addStyleClass(r.id.trim(),r.classes);break;case De:this.handleStyleDef(r);break;case Ce:this.setCssClass(r.id.trim(),r.styleClass);break;case"click":this.addLink(r.id,r.url,r.tooltip);break}let s=this.getStates(),c=l();He(),dt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,c.look,this.classes);for(let r of this.nodes){if(!Array.isArray(r.label))continue;if(r.description=r.label.slice(1),r.isGroup&&r.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);r.label=r.label[0]}}handleStyleDef(e){let s=e.id.trim().split(","),c=e.styleClass.split(",");for(let r of s){let u=this.getState(r);if(!u){let f=r.trim();this.addState(f),u=this.getState(f)}if(u)u.styles=c.map((f)=>f.replace(/;/g,"")?.trim())}}setRootDoc(e){if(a.info("Setting root doc",e),this.rootDoc=e,this.version===1)this.extract(e);else this.extract(this.getRootDocV2())}docTranslator(e,s,c){if(s.stmt===Gt){this.docTranslator(e,s.state1,!0),this.docTranslator(e,s.state2,!1);return}if(s.stmt===ot)if(s.id===B.START_NODE)s.id=e.id+(c?"_start":"_end"),s.start=c;else s.id=s.id.trim();if(s.stmt!==nt&&s.stmt!==ot||!s.doc)return;let r=[],u=[];for(let f of s.doc)if(f.type===Qt){let m=Ct(f);m.doc=Ct(u),r.push(m),u=[]}else u.push(f);if(r.length>0&&u.length>0){let f={stmt:ot,id:eo(),type:"divider",doc:Ct(u)};r.push(Ct(f)),s.doc=r}s.doc.forEach((f)=>this.docTranslator(s,f,!0))}getRootDocV2(){return this.docTranslator({id:nt,stmt:nt},{id:nt,stmt:nt,doc:this.rootDoc},!0),{id:nt,doc:this.rootDoc}}addState(e,s=ut,c=void 0,r=void 0,u=void 0,f=void 0,m=void 0,k=void 0){let o=e?.trim();if(!this.currentDocument.states.has(o))a.info("Adding state ",o,r),this.currentDocument.states.set(o,{stmt:ot,id:o,descriptions:[],type:s,doc:c,note:u,classes:[],styles:[],textStyles:[]});else{let D=this.currentDocument.states.get(o);if(!D)throw Error(`State not found: ${o}`);if(!D.doc)D.doc=c;if(!D.type)D.type=s}if(r)a.info("Setting state description",o,r),(Array.isArray(r)?r:[r]).forEach((x)=>this.addDescription(o,x.trim()));if(u){let D=this.currentDocument.states.get(o);if(!D)throw Error(`State not found: ${o}`);D.note=u,D.note.text=b.sanitizeText(D.note.text,l())}if(f)a.info("Setting state classes",o,f),(Array.isArray(f)?f:[f]).forEach((x)=>this.setCssClass(o,x.trim()));if(m)a.info("Setting state styles",o,m),(Array.isArray(m)?m:[m]).forEach((x)=>this.setStyle(o,x.trim()));if(k)a.info("Setting state styles",o,m),(Array.isArray(k)?k:[k]).forEach((x)=>this.setTextStyle(o,x.trim()))}clear(e){if(this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Xt(),!e)this.links=new Map,C()}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){a.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,s,c){this.links.set(e,{url:s,tooltip:c}),a.warn("Adding link",e,s,c)}getLinks(){return this.links}startIdIfNeeded(e=""){if(e===B.START_NODE)return this.startEndCount++,`${B.START_TYPE}${this.startEndCount}`;return e}startTypeIfNeeded(e="",s=ut){return e===B.START_NODE?B.START_TYPE:s}endIdIfNeeded(e=""){if(e===B.END_NODE)return this.startEndCount++,`${B.END_TYPE}${this.startEndCount}`;return e}endTypeIfNeeded(e="",s=ut){return e===B.END_NODE?B.END_TYPE:s}addRelationObjs(e,s,c=""){let r=this.startIdIfNeeded(e.id.trim()),u=this.startTypeIfNeeded(e.id.trim(),e.type),f=this.startIdIfNeeded(s.id.trim()),m=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(r,u,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(f,m,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:r,id2:f,relationTitle:b.sanitizeText(c,l())})}addRelation(e,s,c){if(typeof e==="object"&&typeof s==="object")this.addRelationObjs(e,s,c);else if(typeof e==="string"&&typeof s==="string"){let r=this.startIdIfNeeded(e.trim()),u=this.startTypeIfNeeded(e),f=this.endIdIfNeeded(s.trim()),m=this.endTypeIfNeeded(s);this.addState(r,u),this.addState(f,m),this.currentDocument.relations.push({id1:r,id2:f,relationTitle:c?b.sanitizeText(c,l()):void 0})}}addDescription(e,s){let c=this.currentDocument.states.get(e),r=s.startsWith(":")?s.replace(":","").trim():s;c?.descriptions?.push(b.sanitizeText(r,l()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,s=""){if(!this.classes.has(e))this.classes.set(e,{id:e,styles:[],textStyles:[]});let c=this.classes.get(e);if(s&&c)s.split(B.STYLECLASS_SEP).forEach((r)=>{let u=r.replace(/([^;]*);/,"$1").trim();if(RegExp(B.COLOR_KEYWORD).exec(r)){let m=u.replace(B.FILL_KEYWORD,B.BG_FILL).replace(B.COLOR_KEYWORD,B.FILL_KEYWORD);c.textStyles.push(m)}c.styles.push(u)})}getClasses(){return this.classes}setupToolTips(e){let s=Ft();p(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",(u)=>{let f=p(u.currentTarget),m=f.attr("title");if(m===null)return;let k=u.currentTarget?.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.bottom+"px"),s.html(Re.sanitize(m)),f.classed("hover",!0)}).on("mouseout",(u)=>{s.transition().duration(500).style("opacity",0),p(u.currentTarget).classed("hover",!1)})}setCssClass(e,s){e.split(",").forEach((c)=>{let r=this.getState(c);if(!r){let u=c.trim();this.addState(u),r=this.getState(u)}r?.classes?.push(s)})}setStyle(e,s){this.getState(e)?.styles?.push(s)}setTextStyle(e,s){this.getState(e)?.textStyles?.push(s)}bindFunctions(e){this.funs.forEach((s)=>{s(e)})}getDirectionStatement(){return this.rootDoc.find((e)=>e.stmt===Ut)}getDirection(){return this.getDirectionStatement()?.value??_e}setDirection(e){let s=this.getDirectionStatement();if(s)s.value=e;else this.rootDoc.unshift({stmt:Ut,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=l();for(let s of this.nodes)if(s.wrappingWidth??=e.state?.wrappingWidth,!s.isGroup)s.minWidth??=e.state?.minNodeWidth;return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Se(this.getRootDocV2())}}getConfig(){return l().state}},qe=t((e)=>{let{theme:s,bkgColorArray:c,borderColorArray:r}=e;if(!le(s,r))return"";let u=ce(e.look),f=pe(c),m="";for(let k=0;k<vt(r);k++){let o=r[k],D=f?`fill: ${c[k%c.length]};`:"",x=`[data-look="${u}"][data-color-id="color-${k}"]`;m+=`
|
|
7
|
-
|
|
8
|
-
/* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
|
|
9
|
-
the body, so what stays visible of \`outer\` is the band behind the label. */
|
|
10
|
-
${x}.statediagram-cluster rect.outer {
|
|
11
|
-
stroke: ${o};
|
|
12
|
-
${D}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
${x}.statediagram-cluster rect.inner {
|
|
16
|
-
stroke: ${o};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Concurrency regions. Siblings of one composite share a slot, so a divided composite
|
|
20
|
-
reads as one thing split into parts rather than as several composites. */
|
|
21
|
-
${x}.statediagram-cluster rect.divider {
|
|
22
|
-
stroke: ${o};
|
|
23
|
-
${D}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
|
|
27
|
-
needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
|
|
28
|
-
\`inner\` and \`divider\` to match the classic branch, which is what lets these
|
|
29
|
-
discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
|
|
30
|
-
tinted the whole composite, losing \`compositeBackground\` and diverging from what
|
|
31
|
-
classic and neo do.
|
|
32
|
-
|
|
33
|
-
roughjs emits two paths per shape and marks them: the filled shape carries
|
|
34
|
-
\`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
|
|
35
|
-
what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
|
|
36
|
-
region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
|
|
37
|
-
would otherwise gain an edge it was drawn without. */
|
|
38
|
-
${x}.statediagram-cluster .outer path[stroke='none'] {
|
|
39
|
-
${D}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
${x}.statediagram-cluster .outer path[fill='none'] {
|
|
43
|
-
stroke: ${o};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
|
|
47
|
-
where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
|
|
48
|
-
hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
|
|
49
|
-
the outline and no selector separates them. An \`.inner\` stroke rule therefore
|
|
50
|
-
repainted the hatching of every alt composite in the palette colour instead of
|
|
51
|
-
leaving it on \`altBackground\`. The container still reads as palette-coloured: the
|
|
52
|
-
\`outer\` shape spans the whole composite, so its outline already frames the body. */
|
|
53
|
-
|
|
54
|
-
/* Regions split the same way, which is why \`divider\` fills solid rather than taking
|
|
55
|
-
roughjs's default hachure -- see the note on that call. Hatched, both of its paths
|
|
56
|
-
carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
|
|
57
|
-
the border rule repainted the hatching. */
|
|
58
|
-
${x}.statediagram-cluster .divider path[stroke='none'] {
|
|
59
|
-
${D}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
${x}.statediagram-cluster .divider path[fill='none'] {
|
|
63
|
-
stroke: ${o};
|
|
64
|
-
}
|
|
65
|
-
`}return m},"genColor"),Qe=t((e)=>`
|
|
66
|
-
${qe(e)}
|
|
67
|
-
defs [id$="-barbEnd"] {
|
|
68
|
-
fill: ${e.transitionColor};
|
|
69
|
-
stroke: ${e.transitionColor};
|
|
70
|
-
}
|
|
71
|
-
g.stateGroup text {
|
|
72
|
-
fill: ${e.nodeBorder};
|
|
73
|
-
stroke: none;
|
|
74
|
-
font-size: 10px;
|
|
75
|
-
}
|
|
76
|
-
g.stateGroup text {
|
|
77
|
-
fill: ${e.textColor};
|
|
78
|
-
stroke: none;
|
|
79
|
-
font-size: 10px;
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
g.stateGroup .state-title {
|
|
83
|
-
font-weight: bolder;
|
|
84
|
-
fill: ${e.stateLabelColor};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
g.stateGroup rect {
|
|
88
|
-
fill: ${e.mainBkg};
|
|
89
|
-
stroke: ${e.nodeBorder};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
g.stateGroup line {
|
|
93
|
-
stroke: ${e.lineColor};
|
|
94
|
-
stroke-width: ${e.strokeWidth||1};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.transition {
|
|
98
|
-
stroke: ${e.transitionColor};
|
|
99
|
-
stroke-width: ${e.strokeWidth||1};
|
|
100
|
-
fill: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.stateGroup .composit {
|
|
104
|
-
fill: ${e.background};
|
|
105
|
-
border-bottom: 1px
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.stateGroup .alt-composit {
|
|
109
|
-
fill: #e0e0e0;
|
|
110
|
-
border-bottom: 1px
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.state-note {
|
|
114
|
-
stroke: ${e.noteBorderColor};
|
|
115
|
-
fill: ${e.noteBkgColor};
|
|
116
|
-
|
|
117
|
-
text {
|
|
118
|
-
fill: ${e.noteTextColor};
|
|
119
|
-
stroke: none;
|
|
120
|
-
font-size: 10px;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.stateLabel .box {
|
|
125
|
-
stroke: none;
|
|
126
|
-
stroke-width: 0;
|
|
127
|
-
fill: ${e.mainBkg};
|
|
128
|
-
opacity: 0.5;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.edgeLabel .label rect {
|
|
132
|
-
fill: ${e.labelBackgroundColor};
|
|
133
|
-
opacity: 0.5;
|
|
134
|
-
}
|
|
135
|
-
.edgeLabel {
|
|
136
|
-
background-color: ${e.edgeLabelBackground};
|
|
137
|
-
p {
|
|
138
|
-
background-color: ${e.edgeLabelBackground};
|
|
139
|
-
}
|
|
140
|
-
rect {
|
|
141
|
-
opacity: 0.5;
|
|
142
|
-
background-color: ${e.edgeLabelBackground};
|
|
143
|
-
fill: ${e.edgeLabelBackground};
|
|
144
|
-
}
|
|
145
|
-
text-align: center;
|
|
146
|
-
}
|
|
147
|
-
.edgeLabel .label text {
|
|
148
|
-
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
149
|
-
}
|
|
150
|
-
.label div .edgeLabel {
|
|
151
|
-
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.stateLabel text {
|
|
155
|
-
fill: ${e.stateLabelColor};
|
|
156
|
-
font-size: 10px;
|
|
157
|
-
font-weight: bold;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.node circle.state-start {
|
|
161
|
-
fill: ${e.specialStateColor};
|
|
162
|
-
stroke: ${e.specialStateColor};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.node .fork-join {
|
|
166
|
-
fill: ${e.specialStateColor};
|
|
167
|
-
stroke: ${e.specialStateColor};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.node circle.state-end {
|
|
171
|
-
fill: ${e.innerEndBackground};
|
|
172
|
-
stroke: ${e.background};
|
|
173
|
-
stroke-width: 1.5
|
|
174
|
-
}
|
|
175
|
-
.end-state-inner {
|
|
176
|
-
fill: ${e.compositeBackground||e.background};
|
|
177
|
-
// stroke: ${e.background};
|
|
178
|
-
stroke-width: 1.5
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.node rect {
|
|
182
|
-
fill: ${e.stateBkg||e.mainBkg};
|
|
183
|
-
stroke: ${e.stateBorder||e.nodeBorder};
|
|
184
|
-
stroke-width: ${e.strokeWidth||1}px;
|
|
185
|
-
}
|
|
186
|
-
.node polygon {
|
|
187
|
-
fill: ${e.mainBkg};
|
|
188
|
-
stroke: ${e.stateBorder||e.nodeBorder};;
|
|
189
|
-
stroke-width: ${e.strokeWidth||1}px;
|
|
190
|
-
}
|
|
191
|
-
[id$="-barbEnd"] {
|
|
192
|
-
fill: ${e.lineColor};
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.statediagram-cluster rect {
|
|
196
|
-
fill: ${e.compositeTitleBackground};
|
|
197
|
-
stroke: ${e.stateBorder||e.nodeBorder};
|
|
198
|
-
stroke-width: ${e.strokeWidth||1}px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.cluster-label, .nodeLabel {
|
|
202
|
-
color: ${e.stateLabelColor};
|
|
203
|
-
// line-height: 1;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.statediagram-cluster rect.outer {
|
|
207
|
-
rx: 5px;
|
|
208
|
-
ry: 5px;
|
|
209
|
-
}
|
|
210
|
-
.statediagram-state .divider {
|
|
211
|
-
stroke: ${e.stateBorder||e.nodeBorder};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.statediagram-state .title-state {
|
|
215
|
-
rx: 5px;
|
|
216
|
-
ry: 5px;
|
|
217
|
-
}
|
|
218
|
-
.statediagram-cluster.statediagram-cluster .inner {
|
|
219
|
-
fill: ${e.compositeBackground||e.background};
|
|
220
|
-
}
|
|
221
|
-
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
222
|
-
fill: ${e.altBackground?e.altBackground:"#efefef"};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.statediagram-cluster .inner {
|
|
226
|
-
rx:0;
|
|
227
|
-
ry:0;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.statediagram-state rect.basic {
|
|
231
|
-
rx: 5px;
|
|
232
|
-
ry: 5px;
|
|
233
|
-
}
|
|
234
|
-
.statediagram-state rect.divider {
|
|
235
|
-
stroke-dasharray: 10,10;
|
|
236
|
-
fill: ${e.altBackground?e.altBackground:"#efefef"};
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.note-edge {
|
|
240
|
-
stroke-dasharray: 5;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.statediagram-note rect {
|
|
244
|
-
fill: ${e.noteBkgColor};
|
|
245
|
-
stroke: ${e.noteBorderColor};
|
|
246
|
-
stroke-width: 1px;
|
|
247
|
-
rx: 0;
|
|
248
|
-
ry: 0;
|
|
249
|
-
}
|
|
250
|
-
.statediagram-note rect {
|
|
251
|
-
fill: ${e.noteBkgColor};
|
|
252
|
-
stroke: ${e.noteBorderColor};
|
|
253
|
-
stroke-width: 1px;
|
|
254
|
-
rx: 0;
|
|
255
|
-
ry: 0;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.statediagram-note text {
|
|
259
|
-
fill: ${e.noteTextColor};
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.statediagram-note .nodeLabel {
|
|
263
|
-
color: ${e.noteTextColor};
|
|
264
|
-
}
|
|
265
|
-
.statediagram .edgeLabel {
|
|
266
|
-
color: red; // ${e.noteTextColor};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
270
|
-
fill: ${e.lineColor};
|
|
271
|
-
stroke: ${e.lineColor};
|
|
272
|
-
stroke-width: ${e.strokeWidth||1};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.statediagramTitleText {
|
|
276
|
-
text-anchor: middle;
|
|
277
|
-
font-size: 18px;
|
|
278
|
-
fill: ${e.textColor};
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
[data-look="neo"].statediagram-cluster rect {
|
|
282
|
-
fill: ${e.mainBkg};
|
|
283
|
-
stroke: ${e.useGradient?"url("+e.svgId+"-gradient)":e.stateBorder||e.nodeBorder};
|
|
284
|
-
stroke-width: ${e.strokeWidth??1};
|
|
285
|
-
}
|
|
286
|
-
[data-look="neo"].statediagram-cluster rect.outer {
|
|
287
|
-
rx: ${e.radius}px;
|
|
288
|
-
ry: ${e.radius}px;
|
|
289
|
-
filter: ${e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${e.svgId}-drop-shadow)`):"none"}
|
|
290
|
-
}
|
|
291
|
-
`,"getStyles"),Ze=Qe,ks={parser:Ee,get db(){return new Je(2)},renderer:Xe,styles:Ze,init:t((e)=>{if(!e.state)e.state={};e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ks as diagram};
|