@bkm016/basalt 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/chunk-10y5hvt2.js +2 -0
- package/chunk-22k2be3e.js +13 -0
- package/chunk-28hye007.js +2 -0
- package/chunk-2fmsw1c6.js +5 -0
- package/chunk-2xj51v3m.js +3 -0
- package/chunk-3x0wm92n.js +3 -0
- package/chunk-4fgsqb1e.js +2 -0
- package/chunk-519eek65.js +39 -0
- package/chunk-5qa4dean.js +2 -0
- package/chunk-5x256mz8.js +2 -0
- package/chunk-6n01sefp.js +8 -0
- package/chunk-74xtmwpw.js +2 -0
- package/chunk-7mafj833.js +3 -0
- package/chunk-7v1sqn9k.js +59 -0
- package/chunk-8my52htr.js +3 -0
- package/chunk-8vh98e46.js +2 -0
- package/chunk-92mpgche.js +2 -0
- package/chunk-9vacevyf.js +3 -0
- package/chunk-9y44m27k.js +5 -0
- package/chunk-a5wv2shs.js +3 -0
- package/chunk-a78qhb4t.js +5 -0
- package/chunk-axsxx67j.js +3 -0
- package/chunk-b49fzzzn.js +2 -0
- package/chunk-bc8awbnt.js +2 -0
- package/chunk-crxs0n0r.js +3 -0
- package/chunk-csed8fsv.js +3 -0
- package/chunk-cspx3bz9.js +2 -0
- package/chunk-ctdtmwmd.js +63 -0
- package/chunk-d3xsmwbh.js +25 -0
- package/chunk-dvwgpsfz.js +3 -0
- package/chunk-dzd8k6bw.js +3 -0
- package/chunk-e2xqa46t.js +2 -0
- package/chunk-e41mpwx9.js +9 -0
- package/chunk-e5ccfgsk.js +3 -0
- package/chunk-e67wqhzh.js +12 -0
- package/chunk-emeb13nd.js +25 -0
- package/chunk-ers9s2c4.js +31 -0
- package/chunk-ezq0fnz6.js +3 -0
- package/chunk-ezqvx0hm.js +2 -0
- package/chunk-f10ca9ma.js +12 -0
- package/chunk-f72jhcp8.js +2 -0
- package/chunk-fjv41a8r.js +4155 -0
- package/chunk-gj0dhgbg.js +3 -0
- package/chunk-h0ggc6pv.js +60 -0
- package/chunk-hrt42rkh.js +4 -0
- package/chunk-j7m36g5w.js +3 -0
- package/chunk-jhn30hjp.js +2 -0
- package/chunk-ka41gq1g.js +16 -0
- package/chunk-kcp9byws.js +2 -0
- package/chunk-me72k64f.js +7 -0
- package/chunk-n4jemqf1.js +2 -0
- package/chunk-ndt4jvh1.js +3 -0
- package/chunk-pyxn4wqj.js +3 -0
- package/chunk-rajb3566.js +2 -0
- package/chunk-rbq2gsar.js +3 -0
- package/chunk-rd98e7kg.js +10 -0
- package/chunk-rm5dbbsg.js +3 -0
- package/chunk-rztw3tgx.js +3 -0
- package/chunk-s4mn41eh.js +8 -0
- package/chunk-s9p624fq.js +44 -0
- package/chunk-sawrte7v.js +3 -0
- package/chunk-sd8d792h.js +51 -0
- package/chunk-sgvmxx0d.js +2 -0
- package/chunk-sqbnt2t1.js +3 -0
- package/chunk-t2bvj735.js +2 -0
- package/chunk-t8tkamx6.js +2 -0
- package/chunk-tbehe5ky.js +18 -0
- package/chunk-tnay319j.js +3 -0
- package/chunk-tsha69rv.js +7 -0
- package/chunk-twqwer9t.js +5 -0
- package/chunk-vr2rtqeh.js +2 -0
- package/chunk-vr6eej6b.js +3 -0
- package/chunk-w41gswj8.js +3 -0
- package/chunk-x7tras0x.js +498 -0
- package/chunk-xakmebnm.js +10 -0
- package/chunk-xj453mny.js +286 -0
- package/chunk-xmrw19xj.js +2 -0
- package/chunk-xpj8fcjp.js +20 -0
- package/chunk-y218jsvc.js +3 -0
- package/chunk-y33fkh8m.js +2 -0
- package/chunk-z3h9ydyr.js +11 -0
- package/chunk-zc51vfhr.js +2 -0
- package/chunk-zm88mnds.js +7 -0
- package/chunk-zz9rj82y.js +3 -0
- package/compiled.js +10 -10
- package/package.json +1 -1
- package/ui-test-worker.js +41 -41
- package/web/chunk-0b5vh2pt.js +2 -0
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +1 -0
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +2 -0
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +1 -0
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +2 -0
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +89 -0
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +1 -0
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +1 -0
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +2 -0
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +1 -0
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +1 -0
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +139 -0
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +1 -0
- package/web/chunk-1c9khgyt.js.br +2 -0
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +1 -0
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +7 -0
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +1 -0
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +1142 -0
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +24 -0
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +1 -0
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +2 -0
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +1 -0
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +1 -0
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +2 -0
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +84 -0
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +142 -0
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +21 -0
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +1 -0
- package/web/chunk-5f5zcfga.js.br +2 -0
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +36 -0
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +2 -0
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +30 -0
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +2 -0
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +200 -0
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +70 -0
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +2 -0
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +2 -0
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +2 -0
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +1 -0
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +120 -0
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +2 -0
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +1 -0
- package/web/chunk-8x4s1c9g.js.br +2 -0
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +1 -0
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +2 -0
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +1 -0
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +34 -0
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +370 -0
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +1 -0
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +1 -0
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +106 -0
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-c97th1x0.js +1 -0
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +1 -0
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +140 -0
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +1 -0
- package/web/chunk-d33n9fsr.js.br +1 -0
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +1 -0
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +303 -0
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +2 -0
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +12 -0
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +2 -0
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +7 -0
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +214 -0
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +1 -0
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +2 -0
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +99 -0
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +1 -0
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +16 -0
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +2 -0
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +1 -0
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +2 -0
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +1 -0
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +2 -0
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +1 -0
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +38 -0
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +169 -0
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +2 -0
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +1 -0
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +324 -0
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +41 -0
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +78 -0
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +3 -0
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +1 -0
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +4 -0
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +7 -0
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +62 -0
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +2 -0
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +1 -0
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +2 -0
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +1 -0
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +2 -0
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +2 -0
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +2 -0
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +1 -0
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +1 -0
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +1 -0
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +1 -0
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +1 -0
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +1 -0
- package/web/chunk-pdvm4n6f.js.br +2 -0
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +1 -0
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +98 -0
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +1 -0
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +1 -0
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +1 -0
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +1 -0
- package/web/chunk-px68tdjm.js.br +2 -0
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +24 -0
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +292 -0
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +55 -0
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +1 -0
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +1 -0
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +1 -0
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +2 -0
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +1 -0
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +1 -0
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +40 -0
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +2 -0
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +2 -0
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +1 -0
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +1 -0
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +2 -0
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +1 -0
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +2 -0
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +217 -0
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +2 -0
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +2 -0
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +39 -0
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +1 -0
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +1 -0
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +1 -0
- package/web/chunk-w1xjqhwy.js.br +2 -0
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +1 -0
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +1 -0
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +8 -0
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +1 -0
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +89 -0
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +1 -0
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +1 -0
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +4 -0
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +2 -0
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +1 -0
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +291 -0
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +332 -0
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +2 -0
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +2 -0
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-0tr0cc6f.js +0 -3
- package/chunk-1f0mnggp.js +0 -3
- package/chunk-1ntcq7ed.js +0 -2
- package/chunk-1xkxfddg.js +0 -286
- package/chunk-1zz6akcm.js +0 -3
- package/chunk-2cd3qzny.js +0 -3
- package/chunk-2sbmy31t.js +0 -2
- package/chunk-32s6agaj.js +0 -2
- package/chunk-37n62c4c.js +0 -3
- package/chunk-3w2902kg.js +0 -9
- package/chunk-43q7hq53.js +0 -2
- package/chunk-4ewh67qf.js +0 -25
- package/chunk-5277mfp2.js +0 -44
- package/chunk-54zpktrq.js +0 -3
- package/chunk-6f1zc4g6.js +0 -2
- package/chunk-6r4kw9x9.js +0 -60
- package/chunk-7qaavsga.js +0 -2
- package/chunk-88s6d1bz.js +0 -3
- package/chunk-9jw0km9r.js +0 -13
- package/chunk-a3h0mng1.js +0 -8
- package/chunk-acmtkg1q.js +0 -20
- package/chunk-adn9jbzj.js +0 -2
- package/chunk-anfhjdgv.js +0 -2
- package/chunk-apn5amfe.js +0 -498
- package/chunk-bsp6e8cv.js +0 -2
- package/chunk-bw2h35jd.js +0 -2
- package/chunk-bwx9m3ex.js +0 -51
- package/chunk-cezgvpja.js +0 -3
- package/chunk-cfhtmr6g.js +0 -31
- package/chunk-d5w3ntc3.js +0 -7
- package/chunk-dtks8c7v.js +0 -2
- package/chunk-e01g2yf9.js +0 -3
- package/chunk-e1rfd7jn.js +0 -3
- package/chunk-e8ehznx7.js +0 -2
- package/chunk-edp0svhf.js +0 -3
- package/chunk-evaew46c.js +0 -2
- package/chunk-ewhpfrgj.js +0 -3
- package/chunk-f7q6p7tp.js +0 -7
- package/chunk-fgpzy3fe.js +0 -3
- package/chunk-fm482h25.js +0 -3
- package/chunk-g3j6jdht.js +0 -39
- package/chunk-gejre6z5.js +0 -7
- package/chunk-gz5ssvjh.js +0 -3
- package/chunk-h32ca6cs.js +0 -11
- package/chunk-hab25nd9.js +0 -3
- package/chunk-jbfkv490.js +0 -8
- package/chunk-jem2kqdt.js +0 -3
- package/chunk-jrwezx0r.js +0 -16
- package/chunk-ka5dtn3w.js +0 -3
- package/chunk-kxmws6zx.js +0 -4068
- package/chunk-m0gk2b1f.js +0 -3
- package/chunk-mekgrca0.js +0 -25
- package/chunk-mkp20bwr.js +0 -2
- package/chunk-n4qxf40m.js +0 -2
- package/chunk-n9r9zzr4.js +0 -59
- package/chunk-ndca35jt.js +0 -5
- package/chunk-ng9vq9hy.js +0 -2
- package/chunk-nx1997s8.js +0 -2
- package/chunk-p99dt6kf.js +0 -12
- package/chunk-pnctvz58.js +0 -3
- package/chunk-ppgn9exm.js +0 -2
- package/chunk-pqq5znyp.js +0 -2
- package/chunk-q2429jd1.js +0 -3
- package/chunk-q3nmdtk4.js +0 -3
- package/chunk-q4r4nger.js +0 -3
- package/chunk-q6gq7g7m.js +0 -4
- package/chunk-qnejy3qp.js +0 -2
- package/chunk-sj0fqgjf.js +0 -10
- package/chunk-t5y3dqv3.js +0 -3
- package/chunk-t6vw73nv.js +0 -2
- package/chunk-t9zpdekw.js +0 -5
- package/chunk-v0xs5sy0.js +0 -2
- package/chunk-v8v2exqg.js +0 -2
- package/chunk-wgff8n0r.js +0 -2
- package/chunk-wpv679r1.js +0 -3
- package/chunk-wrw806wb.js +0 -3
- package/chunk-wsby70ce.js +0 -12
- package/chunk-xdbgpht7.js +0 -2
- package/chunk-y1b98tfk.js +0 -5
- package/chunk-y3m3w19s.js +0 -3
- package/chunk-y5p5jq48.js +0 -63
- package/chunk-ynf5sz68.js +0 -10
- package/chunk-zfk9az7y.js +0 -5
- package/chunk-zwse6b6t.js +0 -18
- package/web/chunk-016nkjwe.js +0 -2
- package/web/chunk-016nkjwe.js.br +0 -0
- package/web/chunk-016nkjwe.js.gz +0 -0
- package/web/chunk-0er8vdaw.js +0 -2
- package/web/chunk-0er8vdaw.js.br +0 -0
- package/web/chunk-0er8vdaw.js.gz +0 -0
- package/web/chunk-0sq0ed2h.js +0 -12
- package/web/chunk-0sq0ed2h.js.br +0 -0
- package/web/chunk-0sq0ed2h.js.gz +0 -0
- package/web/chunk-0w8swe64.js +0 -2
- package/web/chunk-0w8swe64.js.br +0 -0
- package/web/chunk-0w8swe64.js.gz +0 -0
- package/web/chunk-15pxdcz7.js +0 -1
- package/web/chunk-15pxdcz7.js.br +0 -0
- package/web/chunk-15pxdcz7.js.gz +0 -0
- package/web/chunk-1a1w9rth.js +0 -4
- package/web/chunk-1a1w9rth.js.br +0 -0
- package/web/chunk-1a1w9rth.js.gz +0 -0
- package/web/chunk-1e8tsn4c.js +0 -1
- package/web/chunk-1e8tsn4c.js.br +0 -0
- package/web/chunk-1e8tsn4c.js.gz +0 -0
- package/web/chunk-1jwp193e.js +0 -78
- package/web/chunk-1jwp193e.js.br +0 -0
- package/web/chunk-1jwp193e.js.gz +0 -0
- package/web/chunk-1wz0tepc.js +0 -106
- package/web/chunk-1wz0tepc.js.br +0 -0
- package/web/chunk-1wz0tepc.js.gz +0 -0
- package/web/chunk-20gcnbgn.js +0 -2
- package/web/chunk-20gcnbgn.js.br +0 -0
- package/web/chunk-20gcnbgn.js.gz +0 -0
- package/web/chunk-213m58wn.js +0 -1
- package/web/chunk-213m58wn.js.br +0 -0
- package/web/chunk-213m58wn.js.gz +0 -0
- package/web/chunk-2hat8cth.js +0 -1
- package/web/chunk-2hat8cth.js.br +0 -0
- package/web/chunk-2hat8cth.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +0 -1
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-3dj31vfh.js +0 -292
- package/web/chunk-3dj31vfh.js.br +0 -0
- package/web/chunk-3dj31vfh.js.gz +0 -0
- package/web/chunk-3g7waf75.js +0 -70
- package/web/chunk-3g7waf75.js.br +0 -0
- package/web/chunk-3g7waf75.js.gz +0 -0
- package/web/chunk-3x1zg1hk.js +0 -1
- package/web/chunk-3x1zg1hk.js.br +0 -0
- package/web/chunk-3x1zg1hk.js.gz +0 -0
- package/web/chunk-414npx47.js +0 -1
- package/web/chunk-414npx47.js.br +0 -0
- package/web/chunk-414npx47.js.gz +0 -0
- package/web/chunk-416ts17x.js +0 -2
- package/web/chunk-416ts17x.js.br +0 -0
- package/web/chunk-416ts17x.js.gz +0 -0
- package/web/chunk-47qwqp4f.js +0 -7
- package/web/chunk-47qwqp4f.js.br +0 -0
- package/web/chunk-47qwqp4f.js.gz +0 -0
- package/web/chunk-4k4c2se1.js +0 -2
- package/web/chunk-4k4c2se1.js.br +0 -0
- package/web/chunk-4k4c2se1.js.gz +0 -0
- package/web/chunk-4vsg8d4c.js +0 -4
- package/web/chunk-4vsg8d4c.js.br +0 -0
- package/web/chunk-4vsg8d4c.js.gz +0 -0
- package/web/chunk-53ag9hyw.js +0 -40
- package/web/chunk-53ag9hyw.js.br +0 -0
- package/web/chunk-53ag9hyw.js.gz +0 -0
- package/web/chunk-545zx869.js +0 -2
- package/web/chunk-545zx869.js.br +0 -0
- package/web/chunk-545zx869.js.gz +0 -0
- package/web/chunk-55mx05jg.js +0 -2
- package/web/chunk-55mx05jg.js.br +0 -0
- package/web/chunk-55mx05jg.js.gz +0 -0
- package/web/chunk-55phnzd7.js +0 -1
- package/web/chunk-55phnzd7.js.br +0 -0
- package/web/chunk-55phnzd7.js.gz +0 -0
- package/web/chunk-56a6njsk.js +0 -1
- package/web/chunk-56a6njsk.js.br +0 -0
- package/web/chunk-56a6njsk.js.gz +0 -0
- package/web/chunk-5hvs5kyx.js +0 -1
- package/web/chunk-5hvs5kyx.js.br +0 -0
- package/web/chunk-5hvs5kyx.js.gz +0 -0
- package/web/chunk-5nbyvd4t.js +0 -1
- package/web/chunk-5nbyvd4t.js.br +0 -0
- package/web/chunk-5nbyvd4t.js.gz +0 -0
- package/web/chunk-690qxds4.js +0 -1
- package/web/chunk-690qxds4.js.br +0 -0
- package/web/chunk-690qxds4.js.gz +0 -0
- package/web/chunk-6dr6eazd.js +0 -2
- package/web/chunk-6dr6eazd.js.br +0 -0
- package/web/chunk-6dr6eazd.js.gz +0 -0
- package/web/chunk-6nkegqxk.js +0 -139
- package/web/chunk-6nkegqxk.js.br +0 -0
- package/web/chunk-6nkegqxk.js.gz +0 -0
- package/web/chunk-6ypf5nq6.js +0 -140
- package/web/chunk-6ypf5nq6.js.br +0 -0
- package/web/chunk-6ypf5nq6.js.gz +0 -0
- package/web/chunk-70kws32b.js +0 -2
- package/web/chunk-70kws32b.js.br +0 -0
- package/web/chunk-70kws32b.js.gz +0 -0
- package/web/chunk-71tshjjr.js +0 -16
- package/web/chunk-71tshjjr.js.br +0 -0
- package/web/chunk-71tshjjr.js.gz +0 -0
- package/web/chunk-7fh9k75p.js +0 -1
- package/web/chunk-7fh9k75p.js.br +0 -0
- package/web/chunk-7fh9k75p.js.gz +0 -0
- package/web/chunk-7k8azd8z.js +0 -1
- package/web/chunk-7k8azd8z.js.br +0 -0
- package/web/chunk-7k8azd8z.js.gz +0 -0
- package/web/chunk-7mmebce4.js +0 -1
- package/web/chunk-7mmebce4.js.br +0 -0
- package/web/chunk-7mmebce4.js.gz +0 -0
- package/web/chunk-7mwghj09.js +0 -89
- package/web/chunk-7mwghj09.js.br +0 -0
- package/web/chunk-7mwghj09.js.gz +0 -0
- package/web/chunk-7y5kr56m.js +0 -1
- package/web/chunk-7y5kr56m.js.br +0 -0
- package/web/chunk-7y5kr56m.js.gz +0 -0
- package/web/chunk-8esqhp64.js +0 -1
- package/web/chunk-8esqhp64.js.br +0 -0
- package/web/chunk-8esqhp64.js.gz +0 -0
- package/web/chunk-8gxgpr3n.js +0 -214
- package/web/chunk-8gxgpr3n.js.br +0 -0
- package/web/chunk-8gxgpr3n.js.gz +0 -0
- package/web/chunk-8vnmk3y7.js +0 -1
- package/web/chunk-8vnmk3y7.js.br +0 -0
- package/web/chunk-8vnmk3y7.js.gz +0 -0
- package/web/chunk-99r862t8.js +0 -30
- package/web/chunk-99r862t8.js.br +0 -0
- package/web/chunk-99r862t8.js.gz +0 -0
- package/web/chunk-9cznsyf4.js +0 -7
- package/web/chunk-9cznsyf4.js.br +0 -0
- package/web/chunk-9cznsyf4.js.gz +0 -0
- package/web/chunk-9hmw91e9.js +0 -1
- package/web/chunk-9hmw91e9.js.br +0 -0
- package/web/chunk-9hmw91e9.js.gz +0 -0
- package/web/chunk-9j7v0e4v.js +0 -2
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9pyad3tv.js +0 -1
- package/web/chunk-9pyad3tv.js.br +0 -0
- package/web/chunk-9pyad3tv.js.gz +0 -0
- package/web/chunk-9rf2smk2.js +0 -1142
- package/web/chunk-9rf2smk2.js.br +0 -0
- package/web/chunk-9rf2smk2.js.gz +0 -0
- package/web/chunk-aan5qk6x.js +0 -1
- package/web/chunk-aan5qk6x.js.br +0 -0
- package/web/chunk-aan5qk6x.js.gz +0 -0
- package/web/chunk-aaz4msca.js +0 -89
- package/web/chunk-aaz4msca.js.br +0 -0
- package/web/chunk-aaz4msca.js.gz +0 -0
- package/web/chunk-ag0ng2nt.js +0 -24
- package/web/chunk-ag0ng2nt.js.br +0 -0
- package/web/chunk-ag0ng2nt.js.gz +0 -0
- package/web/chunk-an9b0mhe.js +0 -55
- package/web/chunk-an9b0mhe.js.br +0 -0
- package/web/chunk-an9b0mhe.js.gz +0 -0
- package/web/chunk-apgvrfc2.js +0 -41
- package/web/chunk-apgvrfc2.js.br +0 -0
- package/web/chunk-apgvrfc2.js.gz +0 -0
- package/web/chunk-aq09zt1h.js +0 -332
- package/web/chunk-aq09zt1h.js.br +0 -0
- package/web/chunk-aq09zt1h.js.gz +0 -0
- package/web/chunk-ayy6rwm5.js +0 -1
- package/web/chunk-ayy6rwm5.js.br +0 -0
- package/web/chunk-ayy6rwm5.js.gz +0 -0
- package/web/chunk-azhw80d1.js +0 -1
- package/web/chunk-azhw80d1.js.br +0 -0
- package/web/chunk-azhw80d1.js.gz +0 -0
- package/web/chunk-b4bty1ns.js +0 -8
- package/web/chunk-b4bty1ns.js.br +0 -1
- package/web/chunk-b4bty1ns.js.gz +0 -0
- package/web/chunk-bs9934z7.js +0 -200
- package/web/chunk-bs9934z7.js.br +0 -0
- package/web/chunk-bs9934z7.js.gz +0 -0
- package/web/chunk-c9nwfxrp.js +0 -1
- package/web/chunk-c9nwfxrp.js.br +0 -0
- package/web/chunk-c9nwfxrp.js.gz +0 -0
- package/web/chunk-capfyqch.js +0 -1
- package/web/chunk-capfyqch.js.br +0 -0
- package/web/chunk-capfyqch.js.gz +0 -0
- package/web/chunk-ckev38zc.js +0 -36
- package/web/chunk-ckev38zc.js.br +0 -0
- package/web/chunk-ckev38zc.js.gz +0 -0
- package/web/chunk-cnkerjp4.js +0 -370
- package/web/chunk-cnkerjp4.js.br +0 -0
- package/web/chunk-cnkerjp4.js.gz +0 -0
- package/web/chunk-d3bgcz6q.js +0 -1
- package/web/chunk-d3bgcz6q.js.br +0 -0
- package/web/chunk-d3bgcz6q.js.gz +0 -0
- package/web/chunk-d5n2yz4e.js +0 -2
- package/web/chunk-d5n2yz4e.js.br +0 -0
- package/web/chunk-d5n2yz4e.js.gz +0 -0
- package/web/chunk-d5xqtvb1.js +0 -2
- package/web/chunk-d5xqtvb1.js.br +0 -0
- package/web/chunk-d5xqtvb1.js.gz +0 -0
- package/web/chunk-daqfnvaw.js +0 -1
- package/web/chunk-daqfnvaw.js.br +0 -0
- package/web/chunk-daqfnvaw.js.gz +0 -0
- package/web/chunk-dqz580pg.js +0 -1
- package/web/chunk-dqz580pg.js.br +0 -0
- package/web/chunk-dqz580pg.js.gz +0 -0
- package/web/chunk-e54b48p5.js +0 -2
- package/web/chunk-e54b48p5.js.br +0 -0
- package/web/chunk-e54b48p5.js.gz +0 -0
- package/web/chunk-e8bgrjps.js +0 -2
- package/web/chunk-e8bgrjps.js.br +0 -0
- package/web/chunk-e8bgrjps.js.gz +0 -0
- package/web/chunk-efdg5mjf.js +0 -217
- package/web/chunk-efdg5mjf.js.br +0 -0
- package/web/chunk-efdg5mjf.js.gz +0 -0
- package/web/chunk-efhyygba.js +0 -7
- package/web/chunk-efhyygba.js.br +0 -0
- package/web/chunk-efhyygba.js.gz +0 -0
- package/web/chunk-en5n60qw.js +0 -2
- package/web/chunk-en5n60qw.js.br +0 -0
- package/web/chunk-en5n60qw.js.gz +0 -0
- package/web/chunk-eq0vm9vw.js +0 -2
- package/web/chunk-eq0vm9vw.js.br +0 -0
- package/web/chunk-eq0vm9vw.js.gz +0 -0
- package/web/chunk-eznkbqms.js +0 -1
- package/web/chunk-eznkbqms.js.br +0 -0
- package/web/chunk-eznkbqms.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +0 -2
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-f9rv8b13.js +0 -1
- package/web/chunk-f9rv8b13.js.br +0 -0
- package/web/chunk-f9rv8b13.js.gz +0 -0
- package/web/chunk-fnzyprme.js +0 -142
- package/web/chunk-fnzyprme.js.br +0 -0
- package/web/chunk-fnzyprme.js.gz +0 -0
- package/web/chunk-g63m3g5y.js +0 -1
- package/web/chunk-g63m3g5y.js.br +0 -2
- package/web/chunk-g63m3g5y.js.gz +0 -0
- package/web/chunk-g6gb3wz7.js +0 -1
- package/web/chunk-g6gb3wz7.js.br +0 -2
- package/web/chunk-g6gb3wz7.js.gz +0 -0
- package/web/chunk-g7ec62te.js +0 -2
- package/web/chunk-g7ec62te.js.br +0 -0
- package/web/chunk-g7ec62te.js.gz +0 -0
- package/web/chunk-gkj2bbdx.js +0 -1
- package/web/chunk-gkj2bbdx.js.br +0 -0
- package/web/chunk-gkj2bbdx.js.gz +0 -0
- package/web/chunk-gnx30bed.css +0 -1
- package/web/chunk-gnx30bed.css.br +0 -0
- package/web/chunk-gnx30bed.css.gz +0 -0
- package/web/chunk-gvndjaan.js +0 -2
- package/web/chunk-gvndjaan.js.br +0 -0
- package/web/chunk-gvndjaan.js.gz +0 -0
- package/web/chunk-h391pq6j.js +0 -1
- package/web/chunk-h391pq6j.js.br +0 -0
- package/web/chunk-h391pq6j.js.gz +0 -0
- package/web/chunk-h3kdr5mz.js +0 -21
- package/web/chunk-h3kdr5mz.js.br +0 -0
- package/web/chunk-h3kdr5mz.js.gz +0 -0
- package/web/chunk-hjs5pyye.js +0 -1
- package/web/chunk-hjs5pyye.js.br +0 -0
- package/web/chunk-hjs5pyye.js.gz +0 -0
- package/web/chunk-hxgtek0e.js +0 -2
- package/web/chunk-hxgtek0e.js.br +0 -0
- package/web/chunk-hxgtek0e.js.gz +0 -0
- package/web/chunk-j5a3jhp0.js +0 -120
- package/web/chunk-j5a3jhp0.js.br +0 -0
- package/web/chunk-j5a3jhp0.js.gz +0 -0
- package/web/chunk-jgdways6.js +0 -39
- package/web/chunk-jgdways6.js.br +0 -0
- package/web/chunk-jgdways6.js.gz +0 -0
- package/web/chunk-jybmjakj.js +0 -1
- package/web/chunk-jybmjakj.js.br +0 -2
- package/web/chunk-jybmjakj.js.gz +0 -0
- package/web/chunk-kasv56qe.js +0 -303
- package/web/chunk-kasv56qe.js.br +0 -0
- package/web/chunk-kasv56qe.js.gz +0 -0
- package/web/chunk-kmhbkjqx.js +0 -2
- package/web/chunk-kmhbkjqx.js.br +0 -0
- package/web/chunk-kmhbkjqx.js.gz +0 -0
- package/web/chunk-m06zdhdz.js +0 -1
- package/web/chunk-m06zdhdz.js.br +0 -0
- package/web/chunk-m06zdhdz.js.gz +0 -0
- package/web/chunk-mrnnq8dv.js +0 -1
- package/web/chunk-mrnnq8dv.js.br +0 -0
- package/web/chunk-mrnnq8dv.js.gz +0 -0
- package/web/chunk-mx1e3jgh.js +0 -1
- package/web/chunk-mx1e3jgh.js.br +0 -0
- package/web/chunk-mx1e3jgh.js.gz +0 -0
- package/web/chunk-n0tehchs.js +0 -3
- package/web/chunk-n0tehchs.js.br +0 -0
- package/web/chunk-n0tehchs.js.gz +0 -0
- package/web/chunk-n449ebhn.js +0 -38
- package/web/chunk-n449ebhn.js.br +0 -0
- package/web/chunk-n449ebhn.js.gz +0 -0
- package/web/chunk-ngsv0xfb.js +0 -1
- package/web/chunk-ngsv0xfb.js.br +0 -0
- package/web/chunk-ngsv0xfb.js.gz +0 -0
- package/web/chunk-ngy730n0.js +0 -1
- package/web/chunk-ngy730n0.js.br +0 -0
- package/web/chunk-ngy730n0.js.gz +0 -0
- package/web/chunk-nj9dtqyd.js +0 -2
- package/web/chunk-nj9dtqyd.js.br +0 -0
- package/web/chunk-nj9dtqyd.js.gz +0 -0
- package/web/chunk-nzaq0yae.js +0 -2
- package/web/chunk-nzaq0yae.js.br +0 -0
- package/web/chunk-nzaq0yae.js.gz +0 -0
- package/web/chunk-pgnfj8ea.js +0 -2
- package/web/chunk-pgnfj8ea.js.br +0 -0
- package/web/chunk-pgnfj8ea.js.gz +0 -0
- package/web/chunk-qtgen5c5.js +0 -24
- package/web/chunk-qtgen5c5.js.br +0 -0
- package/web/chunk-qtgen5c5.js.gz +0 -0
- package/web/chunk-qzn05afn.js +0 -169
- package/web/chunk-qzn05afn.js.br +0 -0
- package/web/chunk-qzn05afn.js.gz +0 -0
- package/web/chunk-r76we294.js +0 -1
- package/web/chunk-r76we294.js.br +0 -0
- package/web/chunk-r76we294.js.gz +0 -0
- package/web/chunk-r7st369j.js +0 -1
- package/web/chunk-r7st369j.js.br +0 -0
- package/web/chunk-r7st369j.js.gz +0 -0
- package/web/chunk-rj1rp0tc.js +0 -1
- package/web/chunk-rj1rp0tc.js.br +0 -0
- package/web/chunk-rj1rp0tc.js.gz +0 -0
- package/web/chunk-sgy3c5m7.js +0 -62
- package/web/chunk-sgy3c5m7.js.br +0 -0
- package/web/chunk-sgy3c5m7.js.gz +0 -0
- package/web/chunk-t7s9xrxt.js +0 -34
- package/web/chunk-t7s9xrxt.js.br +0 -0
- package/web/chunk-t7s9xrxt.js.gz +0 -0
- package/web/chunk-tmf1jnqz.js +0 -2
- package/web/chunk-tmf1jnqz.js.br +0 -0
- package/web/chunk-tmf1jnqz.js.gz +0 -0
- package/web/chunk-tn39vbcz.js +0 -2
- package/web/chunk-tn39vbcz.js.br +0 -0
- package/web/chunk-tn39vbcz.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +0 -2
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tpzyyc2z.js +0 -2
- package/web/chunk-tpzyyc2z.js.br +0 -0
- package/web/chunk-tpzyyc2z.js.gz +0 -0
- package/web/chunk-v95eqx92.js +0 -84
- package/web/chunk-v95eqx92.js.br +0 -0
- package/web/chunk-v95eqx92.js.gz +0 -0
- package/web/chunk-vcj5m1xb.js +0 -1
- package/web/chunk-vcj5m1xb.js.br +0 -0
- package/web/chunk-vcj5m1xb.js.gz +0 -0
- package/web/chunk-vndrjeyr.js +0 -2
- package/web/chunk-vndrjeyr.js.br +0 -0
- package/web/chunk-vndrjeyr.js.gz +0 -0
- package/web/chunk-vq0zf16h.js +0 -1
- package/web/chunk-vq0zf16h.js.br +0 -0
- package/web/chunk-vq0zf16h.js.gz +0 -0
- package/web/chunk-vqhtph6r.js +0 -1
- package/web/chunk-vqhtph6r.js.br +0 -0
- package/web/chunk-vqhtph6r.js.gz +0 -0
- package/web/chunk-vvsfwjrg.js +0 -1
- package/web/chunk-vvsfwjrg.js.br +0 -0
- package/web/chunk-vvsfwjrg.js.gz +0 -0
- package/web/chunk-vz2mgxs7.js +0 -1
- package/web/chunk-vz2mgxs7.js.br +0 -0
- package/web/chunk-vz2mgxs7.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +0 -1
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-wry3q68j.js +0 -1
- package/web/chunk-wry3q68j.js.br +0 -2
- package/web/chunk-wry3q68j.js.gz +0 -0
- package/web/chunk-wrz0gqnv.js +0 -1
- package/web/chunk-wrz0gqnv.js.br +0 -0
- package/web/chunk-wrz0gqnv.js.gz +0 -0
- package/web/chunk-wvapb3r6.js +0 -98
- package/web/chunk-wvapb3r6.js.br +0 -0
- package/web/chunk-wvapb3r6.js.gz +0 -0
- package/web/chunk-x6qva9zc.js +0 -324
- package/web/chunk-x6qva9zc.js.br +0 -0
- package/web/chunk-x6qva9zc.js.gz +0 -0
- package/web/chunk-xa2ngtyg.js +0 -2
- package/web/chunk-xa2ngtyg.js.br +0 -0
- package/web/chunk-xa2ngtyg.js.gz +0 -0
- package/web/chunk-xhjf5ye0.js +0 -1
- package/web/chunk-xhjf5ye0.js.br +0 -0
- package/web/chunk-xhjf5ye0.js.gz +0 -0
- package/web/chunk-xkqekh81.js +0 -2
- package/web/chunk-xkqekh81.js.br +0 -0
- package/web/chunk-xkqekh81.js.gz +0 -0
- package/web/chunk-xsjvamcy.js +0 -1
- package/web/chunk-xsjvamcy.js.br +0 -0
- package/web/chunk-xsjvamcy.js.gz +0 -0
- package/web/chunk-xyfnr395.js +0 -1
- package/web/chunk-xyfnr395.js.br +0 -0
- package/web/chunk-xyfnr395.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +0 -1
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-y4x1g94q.js +0 -1
- package/web/chunk-y4x1g94q.js.br +0 -0
- package/web/chunk-y4x1g94q.js.gz +0 -0
- package/web/chunk-yzbp4vpe.js +0 -1
- package/web/chunk-yzbp4vpe.js.br +0 -0
- package/web/chunk-yzbp4vpe.js.gz +0 -0
- package/web/chunk-z601k790.js +0 -291
- package/web/chunk-z601k790.js.br +0 -0
- package/web/chunk-z601k790.js.gz +0 -0
- package/web/chunk-zc9mxd01.js +0 -99
- package/web/chunk-zc9mxd01.js.br +0 -0
- package/web/chunk-zc9mxd01.js.gz +0 -0
- package/web/chunk-zm1jfkcz.js +0 -2
- package/web/chunk-zm1jfkcz.js.br +0 -0
- package/web/chunk-zm1jfkcz.js.gz +0 -0
- package/web/chunk-zz0d7377.js +0 -2
- package/web/chunk-zz0d7377.js.br +0 -0
- package/web/chunk-zz0d7377.js.gz +0 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import{nt,rt,S}from"./chunk-29fpfs5q.js";var No=rt(function(Hl,Yl){(function(r,e){typeof Hl=="object"&&typeof Yl<"u"?Yl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Hl,function(){var r=1000,e=60000,o=3600000,a="millisecond",s="second",n="minute",h="hour",l="day",u="week",p="month",c="quarter",m="year",x="date",w="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(kt){var ot=["th","st","nd","rd"],st=kt%100;return"["+kt+(ot[(st-20)%10]||ot[st]||ot[0])+"]"}},W=function(kt,ot,st){var xt=String(kt);return!xt||xt.length>=ot?kt:""+Array(ot+1-xt.length).join(st)+kt},U={s:W,z:function(kt){var ot=-kt.utcOffset(),st=Math.abs(ot),xt=Math.floor(st/60),it=st%60;return(ot<=0?"+":"-")+W(xt,2,"0")+":"+W(it,2,"0")},m:function kt(ot,st){if(ot.date()<st.date())return-kt(st,ot);var xt=12*(st.year()-ot.year())+(st.month()-ot.month()),it=ot.clone().add(xt,p),_t=st-it<0,Et=ot.clone().add(xt+(_t?-1:1),p);return+(-(xt+(st-it)/(_t?it-Et:Et-it))||0)},a:function(kt){return kt<0?Math.ceil(kt)||0:Math.floor(kt)},p:function(kt){return{M:p,y:m,w:u,d:l,D:x,h,m:n,s,ms:a,Q:c}[kt]||String(kt||"").toLowerCase().replace(/s$/,"")},u:function(kt){return kt===void 0}},V="en",Z={};Z[V]=E;var J="$isDayjsObject",ut=function(kt){return kt instanceof Lt||!(!kt||!kt[J])},at=function kt(ot,st,xt){var it;if(!ot)return V;if(typeof ot=="string"){var _t=ot.toLowerCase();Z[_t]&&(it=_t),st&&(Z[_t]=st,it=_t);var Et=ot.split("-");if(!it&&Et.length>1)return kt(Et[0])}else{var Vt=ot.name;Z[Vt]=ot,it=Vt}return!xt&&it&&(V=it),it||!xt&&V},mt=function(kt,ot){if(ut(kt))return kt.clone();var st=typeof ot=="object"?ot:{};return st.date=kt,st.args=arguments,new Lt(st)},bt=U;bt.l=at,bt.i=ut,bt.w=function(kt,ot){return mt(kt,{locale:ot.$L,utc:ot.$u,x:ot.$x,$offset:ot.$offset})};var Lt=function(){function kt(st){this.$L=at(st.locale,null,!0),this.parse(st),this.$x=this.$x||st.x||{},this[J]=!0}var ot=kt.prototype;return ot.parse=function(st){this.$d=function(xt){var{date:it,utc:_t}=xt;if(it===null)return new Date(NaN);if(bt.u(it))return new Date;if(it instanceof Date)return new Date(it);if(typeof it=="string"&&!/Z$/i.test(it)){var Et=it.match(_);if(Et){var Vt=Et[2]-1||0,Xt=(Et[7]||"0").substring(0,3);return _t?new Date(Date.UTC(Et[1],Vt,Et[3]||1,Et[4]||0,Et[5]||0,Et[6]||0,Xt)):new Date(Et[1],Vt,Et[3]||1,Et[4]||0,Et[5]||0,Et[6]||0,Xt)}}return new Date(it)}(st),this.init()},ot.init=function(){var st=this.$d;this.$y=st.getFullYear(),this.$M=st.getMonth(),this.$D=st.getDate(),this.$W=st.getDay(),this.$H=st.getHours(),this.$m=st.getMinutes(),this.$s=st.getSeconds(),this.$ms=st.getMilliseconds()},ot.$utils=function(){return bt},ot.isValid=function(){return this.$d.toString()!==w},ot.isSame=function(st,xt){var it=mt(st);return this.startOf(xt)<=it&&it<=this.endOf(xt)},ot.isAfter=function(st,xt){return mt(st)<this.startOf(xt)},ot.isBefore=function(st,xt){return this.endOf(xt)<mt(st)},ot.$g=function(st,xt,it){return bt.u(st)?this[xt]:this.set(it,st)},ot.unix=function(){return Math.floor(this.valueOf()/1000)},ot.valueOf=function(){return this.$d.getTime()},ot.startOf=function(st,xt){var it=this,_t=!!bt.u(xt)||xt,Et=bt.p(st),Vt=function(se,he){var ce=bt.w(it.$u?Date.UTC(it.$y,he,se):new Date(it.$y,he,se),it);return _t?ce:ce.endOf(l)},Xt=function(se,he){return bt.w(it.toDate()[se].apply(it.toDate("s"),(_t?[0,0,0,0]:[23,59,59,999]).slice(he)),it)},le=this.$W,ne=this.$M,me=this.$D,xe="set"+(this.$u?"UTC":"");switch(Et){case m:return _t?Vt(1,0):Vt(31,11);case p:return _t?Vt(1,ne):Vt(0,ne+1);case u:var de=this.$locale().weekStart||0,Gt=(le<de?le+7:le)-de;return Vt(_t?me-Gt:me+(6-Gt),ne);case l:case x:return Xt(xe+"Hours",0);case h:return Xt(xe+"Minutes",1);case n:return Xt(xe+"Seconds",2);case s:return Xt(xe+"Milliseconds",3);default:return this.clone()}},ot.endOf=function(st){return this.startOf(st,!1)},ot.$set=function(st,xt){var it,_t=bt.p(st),Et="set"+(this.$u?"UTC":""),Vt=(it={},it[l]=Et+"Date",it[x]=Et+"Date",it[p]=Et+"Month",it[m]=Et+"FullYear",it[h]=Et+"Hours",it[n]=Et+"Minutes",it[s]=Et+"Seconds",it[a]=Et+"Milliseconds",it)[_t],Xt=_t===l?this.$D+(xt-this.$W):xt;if(_t===p||_t===m){var le=this.clone().set(x,1);le.$d[Vt](Xt),le.init(),this.$d=le.set(x,Math.min(this.$D,le.daysInMonth())).$d}else Vt&&this.$d[Vt](Xt);return this.init(),this},ot.set=function(st,xt){return this.clone().$set(st,xt)},ot.get=function(st){return this[bt.p(st)]()},ot.add=function(st,xt){var it,_t=this;st=Number(st);var Et=bt.p(xt),Vt=function(ne){var me=mt(_t);return bt.w(me.date(me.date()+Math.round(ne*st)),_t)};if(Et===p)return this.set(p,this.$M+st);if(Et===m)return this.set(m,this.$y+st);if(Et===l)return Vt(1);if(Et===u)return Vt(7);var Xt=(it={},it[n]=e,it[h]=o,it[s]=r,it)[Et]||1,le=this.$d.getTime()+st*Xt;return bt.w(le,this)},ot.subtract=function(st,xt){return this.add(-1*st,xt)},ot.format=function(st){var xt=this,it=this.$locale();if(!this.isValid())return it.invalidDate||w;var _t=st||"YYYY-MM-DDTHH:mm:ssZ",Et=bt.z(this),Vt=this.$H,Xt=this.$m,le=this.$M,{weekdays:ne,months:me,meridiem:xe}=it,de=function(he,ce,Ae,Fe){return he&&(he[ce]||he(xt,_t))||Ae[ce].slice(0,Fe)},Gt=function(he){return bt.s(Vt%12||12,he,"0")},se=xe||function(he,ce,Ae){var Fe=he<12?"AM":"PM";return Ae?Fe.toLowerCase():Fe};return _t.replace(v,function(he,ce){return ce||function(Ae){switch(Ae){case"YY":return String(xt.$y).slice(-2);case"YYYY":return bt.s(xt.$y,4,"0");case"M":return le+1;case"MM":return bt.s(le+1,2,"0");case"MMM":return de(it.monthsShort,le,me,3);case"MMMM":return de(me,le);case"D":return xt.$D;case"DD":return bt.s(xt.$D,2,"0");case"d":return String(xt.$W);case"dd":return de(it.weekdaysMin,xt.$W,ne,2);case"ddd":return de(it.weekdaysShort,xt.$W,ne,3);case"dddd":return ne[xt.$W];case"H":return String(Vt);case"HH":return bt.s(Vt,2,"0");case"h":return Gt(1);case"hh":return Gt(2);case"a":return se(Vt,Xt,!0);case"A":return se(Vt,Xt,!1);case"m":return String(Xt);case"mm":return bt.s(Xt,2,"0");case"s":return String(xt.$s);case"ss":return bt.s(xt.$s,2,"0");case"SSS":return bt.s(xt.$ms,3,"0");case"Z":return Et}return null}(he)||Et.replace(":","")})},ot.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ot.diff=function(st,xt,it){var _t,Et=this,Vt=bt.p(xt),Xt=mt(st),le=(Xt.utcOffset()-this.utcOffset())*e,ne=this-Xt,me=function(){return bt.m(Et,Xt)};switch(Vt){case m:_t=me()/12;break;case p:_t=me();break;case c:_t=me()/3;break;case u:_t=(ne-le)/604800000;break;case l:_t=(ne-le)/86400000;break;case h:_t=ne/o;break;case n:_t=ne/e;break;case s:_t=ne/r;break;default:_t=ne}return it?_t:bt.a(_t)},ot.daysInMonth=function(){return this.endOf(p).$D},ot.$locale=function(){return Z[this.$L]},ot.locale=function(st,xt){if(!st)return this.$L;var it=this.clone(),_t=at(st,xt,!0);return _t&&(it.$L=_t),it},ot.clone=function(){return bt.w(this.$d,this)},ot.toDate=function(){return new Date(this.valueOf())},ot.toJSON=function(){return this.isValid()?this.toISOString():null},ot.toISOString=function(){return this.$d.toISOString()},ot.toString=function(){return this.$d.toUTCString()},kt}(),wt=Lt.prototype;return mt.prototype=wt,[["$ms",a],["$s",s],["$m",n],["$H",h],["$W",l],["$M",p],["$y",m],["$D",x]].forEach(function(kt){wt[kt[1]]=function(ot){return this.$g(ot,kt[0],kt[1])}}),mt.extend=function(kt,ot){return kt.$i||(kt(ot,Lt,mt),kt.$i=!0),mt},mt.locale=at,mt.isDayjs=ut,mt.unix=function(kt){return mt(1000*kt)},mt.en=Z[V],mt.Ls=Z,mt.p={},mt})});var sm=rt(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|:)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var wa=rt(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var or=sm();function k2(r){return or.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(or.ctrlCharactersRegex,"");return e.replace(or.htmlEntitiesRegex,function(o,a){return String.fromCharCode(a)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return or.BLANK_URL;var e,o=am(r.trim());do o=w2(o).replace(or.htmlCtrlEntityRegex,"").replace(or.ctrlCharactersRegex,"").replace(or.whitespaceEscapeCharsRegex,"").trim(),o=am(o),e=o.match(or.ctrlCharactersRegex)||o.match(or.htmlEntitiesRegex)||o.match(or.htmlCtrlEntityRegex)||o.match(or.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=o;if(!a)return or.BLANK_URL;if(k2(a))return a;var s=a.trimStart(),n=s.match(or.urlSchemeRegex);if(!n)return a;var h=n[0].toLowerCase().trim();if(or.invalidProtocolRegex.test(h))return or.BLANK_URL;var l=s.replace(/\\/g,"/");if(h==="mailto:"||h.includes("://"))return l;if(h==="http:"||h==="https:"){if(!S2(l))return or.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),lr=(r,e)=>{for(var o in e)_d(r,o,{get:e[o],enumerable:!0})};var Bd=nt(No(),1),wi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},i={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},zi=t(function(r="fatal"){let e=wi.fatal;if(typeof r==="string"){if(r.toLowerCase()in wi)e=wi[r]}else if(typeof r==="number")e=r;if(i.trace=()=>{},i.debug=()=>{},i.info=()=>{},i.warn=()=>{},i.error=()=>{},i.fatal=()=>{},e<=wi.fatal)i.fatal=console.error?console.error.bind(console,Fr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Fr("FATAL"));if(e<=wi.error)i.error=console.error?console.error.bind(console,Fr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Fr("ERROR"));if(e<=wi.warn)i.warn=console.warn?console.warn.bind(console,Fr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Fr("WARN"));if(e<=wi.info)i.info=console.info?console.info.bind(console,Fr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Fr("INFO"));if(e<=wi.debug)i.debug=console.debug?console.debug.bind(console,Fr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Fr("DEBUG"));if(e<=wi.trace)i.trace=console.debug?console.debug.bind(console,Fr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Fr("TRACE"))},"setLogLevel"),Fr=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var tn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,o)=>{if(o<0)o+=1;if(o>1)o-=1;if(o<0.16666666666666666)return r+(e-r)*6*o;if(o<0.5)return e;if(o<0.6666666666666666)return r+(e-r)*(0.6666666666666666-o)*6;return r},hsl2rgb:({h:r,s:e,l:o},a)=>{if(!e)return o*2.55;r/=360,e/=100,o/=100;let s=o<0.5?o*(1+e):o+e-o*e,n=2*o-s;switch(a){case"r":return tn.hue2rgb(n,s,r+0.3333333333333333)*255;case"g":return tn.hue2rgb(n,s,r)*255;case"b":return tn.hue2rgb(n,s,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:o},a)=>{r/=255,e/=255,o/=255;let s=Math.max(r,e,o),n=Math.min(r,e,o),h=(s+n)/2;if(a==="l")return h*100;if(s===n)return 0;let l=s-n,u=h>0.5?l/(2-s-n):l/(s+n);if(a==="s")return u*100;switch(s){case r:return((e-o)/l+(e<o?6:0))*60;case e:return((o-r)/l+2)*60;case o:return((r-e)/l+4)*60;default:return-1}}},vd=tn;var rC={clamp:(r,e,o)=>{if(e>o)return Math.min(e,Math.max(o,r));return Math.min(o,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},X=oC;var Si={};for(let r=0;r<=255;r++)Si[r]=X.unit.dec2hex(r);var Xe={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=Xe.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Xe.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=Xe.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:o,l:a}=r;if(e===void 0)r.h=X.channel.rgb2hsl(r,"h");if(o===void 0)r.s=X.channel.rgb2hsl(r,"s");if(a===void 0)r.l=X.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:o,b:a}=r;if(e===void 0)r.r=X.channel.hsl2rgb(r,"r");if(o===void 0)r.g=X.channel.hsl2rgb(r,"g");if(a===void 0)r.b=X.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(Xe.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Xe.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Xe.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Xe.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Xe.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Xe.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),Zi=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let o=e[1],a=parseInt(o,16),s=o.length,n=s%4===0,h=s>4,l=h?1:17,u=h?8:4,p=n?0:-1,c=h?255:15;return Zi.set({r:(a>>u*(p+3)&c)*l,g:(a>>u*(p+2)&c)*l,b:(a>>u*(p+1)&c)*l,a:n?(a&c)*l/255:1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`#${Si[Math.round(e)]}${Si[Math.round(o)]}${Si[Math.round(a)]}${Si[Math.round(s*255)]}`;else return`#${Si[Math.round(e)]}${Si[Math.round(o)]}${Si[Math.round(a)]}`}},so=Id;var rn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(rn.hueRe);if(e){let[,o,a]=e;switch(a){case"grad":return X.channel.clamp.h(parseFloat(o)*0.9);case"rad":return X.channel.clamp.h(parseFloat(o)*180/Math.PI);case"turn":return X.channel.clamp.h(parseFloat(o)*360)}}return X.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let o=r.match(rn.re);if(!o)return;let[,a,s,n,h,l]=o;return Zi.set({h:rn._hue2deg(a),s:X.channel.clamp.s(parseFloat(s)),l:X.channel.clamp.l(parseFloat(n)),a:h?X.channel.clamp.a(l?parseFloat(h)/100:parseFloat(h)):1},r)},stringify:(r)=>{let{h:e,s:o,l:a,a:s}=r;if(s<1)return`hsla(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%, ${s})`;else return`hsl(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%)`}},Os=rn;var on={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=on.colors[r];if(!e)return;return so.parse(e)},stringify:(r)=>{let e=so.stringify(r);for(let o in on.colors)if(on.colors[o]===e)return o;return}},Ul=on;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let o=r.match($d.re);if(!o)return;let[,a,s,n,h,l,u,p,c]=o;return Zi.set({r:X.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:X.channel.clamp.g(h?parseFloat(n)*2.55:parseFloat(n)),b:X.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:p?X.channel.clamp.a(c?parseFloat(p)/100:parseFloat(p)):1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`rgba(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)}, ${X.lang.round(s)})`;else return`rgb(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)})`}},Is=$d;var aC={format:{keyword:Ul,hex:so,rgb:Is,rgba:Is,hsl:Os,hsla:Os},parse:(r)=>{if(typeof r!=="string")return r;let e=so.parse(r)||Is.parse(r)||Os.parse(r)||Ul.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(Xe.HSL)||r.data.r===void 0)return Os.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return Is.stringify(r);else return so.stringify(r)}},ft=aC;var nC=(r,e)=>{let o=ft.parse(r);for(let a in e)o[a]=X.channel.clamp[a](e[a]);return ft.stringify(o)},sn=nC;var lC=(r,e,o=0,a=1)=>{if(typeof r!=="number")return sn(r,{a:e});let s=Zi.set({r:X.channel.clamp.r(r),g:X.channel.clamp.g(e),b:X.channel.clamp.b(o),a:X.channel.clamp.a(a)});return ft.stringify(s)},De=lC;var hC=(r)=>{let{r:e,g:o,b:a}=ft.parse(r),s=0.2126*X.channel.toLinear(e)+0.7152*X.channel.toLinear(o)+0.0722*X.channel.toLinear(a);return X.lang.round(s)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),fe=uC;var fC=(r,e,o)=>{let a=ft.parse(r),s=a[e],n=X.channel.clamp[e](s+o);if(s!==n)a[e]=n;return ft.stringify(a)},ti=fC;var dC=(r,e)=>ti(r,"l",e),f=dC;var pC=(r,e)=>ti(r,"l",-e),g=pC;var gC=(r,e)=>{let o=ft.parse(r),a={};for(let s in e){if(!e[s])continue;a[s]=o[s]+e[s]}return sn(r,a)},z=gC;var mC=(r,e,o=50)=>{let{r:a,g:s,b:n,a:h}=ft.parse(r),{r:l,g:u,b:p,a:c}=ft.parse(e),m=o/100,x=m*2-1,w=h-c,v=((x*w===-1?x:(x+w)/(1+x*w))+1)/2,E=1-v,W=a*v+l*E,U=s*v+u*E,V=n*v+p*E,Z=h*m+c*(1-m);return De(W,U,V,Z)},Rd=mC;var yC=(r,e=100)=>{let o=ft.parse(r);return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,Rd(o,r,e)},dt=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var o=0,a=Array(e);o<e;o++)a[o]=r[o];return a}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,s,n,h,l=[],u=!0,p=!1;try{if(n=(o=o.call(r)).next,e===0){if(Object(o)!==o)return;u=!1}else for(;!(u=(a=n.call(o)).done)&&(l.push(a.value),l.length!==e);u=!0);}catch(c){p=!0,s=c}finally{try{if(!u&&o.return!=null&&(h=o.return(),Object(h)!==h))return}finally{if(p)throw s}}return l}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function wC(r,e){return CC(r)||bC(r,e)||SC(r,e)||kC()}function SC(r,e){if(r){if(typeof r=="string")return qd(r,e);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qd(r,e):void 0}}function an(r){var e,o;function a(n,h){try{var l=r[n](h),u=l.value,p=u instanceof xC;Promise.resolve(p?u.v:u).then(function(c){if(p){var m=n==="return"&&u.k?n:"next";if(!u.k||c.done)return a(m,c);c=r[m](c).value}s(!!l.done,c)},function(c){a("throw",c)})}catch(c){s(2,c)}}function s(n,h){n===2?e.reject(h):e.resolve({value:h,done:n}),(e=e.next)?a(e.key,e.arg):o=null}this._invoke=function(n,h){return new Promise(function(l,u){var p={key:n,arg:h,resolve:l,reject:u,next:null};o?o=o.next=p:(e=o=p,a(n,h))})},typeof r.return!="function"&&(this.return=void 0)}an.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},an.prototype.next=function(r){return this._invoke("next",r)},an.prototype.throw=function(r){return this._invoke("throw",r)},an.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:Ke,seal:Je,create:So}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:eh,construct:rh}=ip;if(!Ke)Ke=function(e){return e};if(!Je)Je=function(e){return e};if(!eh)eh=function(e,o){for(var a=arguments.length,s=Array(a>2?a-2:0),n=2;n<a;n++)s[n-2]=arguments[n];return e.apply(o,s)};if(!rh)rh=function(e){for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return new e(...a)};var Ti=Ee(Array.prototype.forEach);Array.prototype.indexOf;var _C=Ee(Array.prototype.lastIndexOf),Wd=Ee(Array.prototype.pop),$s=Ee(Array.prototype.push),BC=Ee(Array.prototype.slice),vC=Ee(Array.prototype.splice),To=Array.isArray,jl=op(Set),Gl=Ee(Set.prototype.add),Ds=Ee(Set.prototype.has),ao=Ee(String.prototype.toLowerCase),Xl=Ee(String.prototype.toString),zd=Ee(String.prototype.match),Ps=Ee(String.prototype.replace),Hd=Ee(String.prototype.indexOf),LC=Ee(String.prototype.trim),FC=Ee(Number.prototype.toString),AC=Ee(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),yr=Ee(Object.prototype.hasOwnProperty),Rs=Ee(Object.prototype.toString),Qe=Ee(RegExp.prototype.test),_i=op(TypeError);function Ee(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return eh(r,e,a)}}function op(r){return function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return rh(r,o)}}function ke(r,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ao;if(Nd)Nd(r,null);if(!To(e))return r;let a=e.length;while(a--){let s=e[a];if(typeof s==="string"){let n=o(s);if(n!==s){if(!TC(e))e[a]=n;s=n}}r[s]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!yr(r,e))r[e]=null;return r}function wr(r){let e=So(null);for(let a of tp(r)){var o=wC(a,2);let s=o[0],n=o[1];if(yr(r,s))if(To(n))e[s]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[s]=wr(n);else e[s]=n}return e}function EC(r){switch(typeof r){case"string":return r;case"number":return FC(r);case"boolean":return AC(r);case"bigint":return Yd?Yd(r):"0";case"symbol":return Ud?Ud(r):"Symbol()";case"undefined":return Rs(r);case"function":case"object":{if(r===null)return Rs(r);let e=r,o=Mr(e,"toString");if(typeof o==="function"){let a=o(e);return typeof a==="string"?a:Rs(a)}return Rs(r)}default:return Rs(r)}}function Mr(r,e){while(r!==null){let a=rp(r,e);if(a){if(a.get)return Ee(a.get);if(typeof a.value==="function")return Ee(a.value)}r=ep(r)}function o(){return null}return o}function OC(r,e){while(r!==null){let o=rp(r,e);if(o)return o.get?Ee(o.get):null;r=ep(r)}return null}function IC(r){try{return Qe(r,""),!0}catch(e){return!1}}var jd=Ke(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Vl=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Kl=Ke(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$C=Ke(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zl=Ke(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DC=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=Ke(["#text"]),Xd=Ke(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ql=Ke(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=Ke(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nn=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PC=Je(/{{[\w\W]*|^[\w\W]*}}/g),RC=Je(/<%[\w\W]*|^[\w\W]*%>/g),qC=Je(/\${[\w\W]*/g),NC=Je(/^data-[\-\w.\u00B7-\uFFFF]+$/),WC=Je(/^aria-[\-\w]+$/),Kd=Je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zC=Je(/^(?:\w+script|data):/i),HC=Je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=Je(/^html$/i),UC=Je(/^[a-z][.\w]*(-[.\w]+)+$/i),Jl=Je(/<[/\w!]/g),Zd=Je(/<[/\w]/g),jC=Je(/<\/no(script|embed|frames)/i),Qd=Je(/\/>/i),Ue={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GC=Ke(ke({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,o){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let a=null,s="data-tt-policy-suffix";if(o&&o.hasAttribute(s))a=o.getAttribute(s);let n="dompurify"+(a?"#"+a:"");try{return e.createPolicy(n,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qi=function(e,o,a,s){return yr(e,o)&&To(e[o])?ke(s.base?wr(s.base):{},e[o],s.transform):a},th=function(e,o,a){let s=yr(e,o)?e[o]:void 0;return s&&typeof s==="object"?wr(s):a()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(Yt)=>sp(Yt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==Ue.document||!r.Element)return e.isSupported=!1,e;let o=r.document,a=o,s=a.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:h,Element:l,NodeFilter:u}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:p,trustedTypes:c}=r,m=l.prototype,x=Mr(m,"cloneNode"),w=Mr(m,"remove"),_=Mr(m,"removeAttributeNode"),v=Mr(m,"nextSibling"),E=Mr(m,"childNodes"),W=Mr(m,"parentNode"),U=Mr(m,"shadowRoot"),V=Mr(m,"attributes"),Z=h&&h.prototype?Mr(h.prototype,"nodeType"):null,J=h&&h.prototype?Mr(h.prototype,"nodeName"):null,ut=h&&h.prototype?Mr(h.prototype,"ownerDocument"):null,at=function(K){return Z?Z(K):K.nodeType},mt=function(K){return J?J(K):K.nodeName},bt=OC(m,"namespaceURI"),Lt=function(K){return bt?bt(K):K.namespaceURI};if(typeof n==="function"){let Yt=o.createElement("template");if(Yt.content&&Yt.content.ownerDocument)o=Yt.content.ownerDocument}let wt,kt="",ot,st=!1,xt=0,it=function(){if(xt>0)throw _i('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_t=function(K){it(),xt++;try{return wt.createHTML(K)}finally{xt--}},Et=function(K){it(),xt++;try{return wt.createScriptURL(K)}finally{xt--}},Vt=function(){if(!st)ot=VC(c,s),st=!0;return ot},Xt=o,{implementation:le,createNodeIterator:ne,createDocumentFragment:me,getElementsByTagName:xe}=Xt,de=a.importNode,Gt=Jd();e.isSupported=typeof tp==="function"&&typeof W==="function"&&le&&le.createHTMLDocument!==void 0;let se=PC,he=RC,ce=qC,Ae=NC,Fe=WC,Or=zC,xi=HC,vr=UC,Oi=Kd,ve=null,cr=ke({},[...jd,...Vl,...Kl,...Zl,...Gd]),_e=null,Ci=ke({},[...Xd,...Ql,...Vd,...nn]),Ze=Object.seal(So(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Lr=null,Ii=null,Ye=Object.seal(So(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),$i=!0,Nr=!0,bi=!1,ki=!0,k=!1,yt=!0,vt=!1,It=!1,Bt=null,jt=null,j=!1,Ct=!1,Nt=!1,Ot=!1,$t=!0,Ut=!1,Wt="user-content-",ee=!0,Zt=!1,re=null,oe={},ye=null,Le=ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Fs=null,Di=ke({},["audio","video","img","source","image","track"]),Pi=null,ld=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",Ka="http://www.w3.org/2000/svg",Wr="http://www.w3.org/1999/xhtml",xo=Wr,Fl=!1,Al=null,D0=ke({},[Va,Ka,Wr],Xl),hd=Ke(["mi","mo","mn","ms","mtext"]),Ml=ke({},hd),cd=Ke(["annotation-xml"]),El=ke({},cd),P0=ke({},["title","style","font","a","script"]),As=null,R0=["application/xhtml+xml","text/html"],q0="text/html",We=null,Co=null,N0=o.createElement("form"),ud=function(K){return K instanceof RegExp||K instanceof Function},Ol=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Co&&Co===K)return;if(!K||typeof K!=="object")K={};K=wr(K),As=R0.indexOf(K.PARSER_MEDIA_TYPE)===-1?q0:K.PARSER_MEDIA_TYPE,We=As==="application/xhtml+xml"?Xl:ao,ve=Qi(K,"ALLOWED_TAGS",cr,{transform:We}),_e=Qi(K,"ALLOWED_ATTR",Ci,{transform:We}),Al=Qi(K,"ALLOWED_NAMESPACES",D0,{transform:Xl}),Pi=Qi(K,"ADD_URI_SAFE_ATTR",ld,{transform:We,base:ld}),Fs=Qi(K,"ADD_DATA_URI_TAGS",Di,{transform:We,base:Di}),ye=Qi(K,"FORBID_CONTENTS",Le,{transform:We}),Lr=Qi(K,"FORBID_TAGS",wr({}),{transform:We}),Ii=Qi(K,"FORBID_ATTR",wr({}),{transform:We}),oe=yr(K,"USE_PROFILES")?K.USE_PROFILES&&typeof K.USE_PROFILES==="object"?wr(K.USE_PROFILES):K.USE_PROFILES:!1,$i=K.ALLOW_ARIA_ATTR!==!1,Nr=K.ALLOW_DATA_ATTR!==!1,bi=K.ALLOW_UNKNOWN_PROTOCOLS||!1,ki=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=K.SAFE_FOR_TEMPLATES||!1,yt=K.SAFE_FOR_XML!==!1,vt=K.WHOLE_DOCUMENT||!1,Ct=K.RETURN_DOM||!1,Nt=K.RETURN_DOM_FRAGMENT||!1,Ot=K.RETURN_TRUSTED_TYPE||!1,j=K.FORCE_BODY||!1,$t=K.SANITIZE_DOM!==!1,Ut=K.SANITIZE_NAMED_PROPS||!1,ee=K.KEEP_CONTENT!==!1,Zt=K.IN_PLACE||!1,Oi=IC(K.ALLOWED_URI_REGEXP)?K.ALLOWED_URI_REGEXP:Kd,xo=typeof K.NAMESPACE==="string"?K.NAMESPACE:Wr,Ml=th(K,"MATHML_TEXT_INTEGRATION_POINTS",()=>ke({},hd)),El=th(K,"HTML_INTEGRATION_POINTS",()=>ke({},cd));let pt=th(K,"CUSTOM_ELEMENT_HANDLING",()=>So(null));if(Ze=So(null),yr(pt,"tagNameCheck")&&ud(pt.tagNameCheck))Ze.tagNameCheck=pt.tagNameCheck;if(yr(pt,"attributeNameCheck")&&ud(pt.attributeNameCheck))Ze.attributeNameCheck=pt.attributeNameCheck;if(yr(pt,"allowCustomizedBuiltInElements")&&typeof pt.allowCustomizedBuiltInElements==="boolean")Ze.allowCustomizedBuiltInElements=pt.allowCustomizedBuiltInElements;if(Je(Ze),k)Nr=!1;if(Nt)Ct=!0;if(oe){if(ve=ke({},Gd),_e=So(null),oe.html===!0)ke(ve,jd),ke(_e,Xd);if(oe.svg===!0)ke(ve,Vl),ke(_e,Ql),ke(_e,nn);if(oe.svgFilters===!0)ke(ve,Kl),ke(_e,Ql),ke(_e,nn);if(oe.mathMl===!0)ke(ve,Zl),ke(_e,Vd),ke(_e,nn)}if(Ye.tagCheck=null,Ye.attributeCheck=null,yr(K,"ADD_TAGS")){if(typeof K.ADD_TAGS==="function")Ye.tagCheck=K.ADD_TAGS;else if(To(K.ADD_TAGS)){if(ve===cr)ve=wr(ve);ke(ve,K.ADD_TAGS,We)}}if(yr(K,"ADD_ATTR")){if(typeof K.ADD_ATTR==="function")Ye.attributeCheck=K.ADD_ATTR;else if(To(K.ADD_ATTR)){if(_e===Ci)_e=wr(_e);ke(_e,K.ADD_ATTR,We)}}if(yr(K,"ADD_FORBID_CONTENTS")&&To(K.ADD_FORBID_CONTENTS)){if(ye===Le)ye=wr(ye);ke(ye,K.ADD_FORBID_CONTENTS,We)}if(ee)ve["#text"]=!0;if(vt)ke(ve,["html","head","body"]);if(ve.table)ke(ve,["tbody"]),delete Lr.tbody;if(K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!=="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Dt=wt;wt=K.TRUSTED_TYPES_POLICY;try{kt=_t("")}catch(qt){throw wt=Dt,qt}}else if(K.TRUSTED_TYPES_POLICY===null)wt=void 0,kt="";else{if(wt===void 0)wt=Vt();if(wt&&typeof kt==="string")kt=_t("")}if(Ke)Ke(K);Co=K},fd=ke({},[...Vl,...Kl,...$C]),dd=ke({},[...Zl,...DC]),W0=function(K,pt,Dt){if(pt.namespaceURI===Wr)return K==="svg";if(pt.namespaceURI===Va)return K==="svg"&&(Dt==="annotation-xml"||Ml[Dt]);return Boolean(fd[K])},z0=function(K,pt,Dt){if(pt.namespaceURI===Wr)return K==="math";if(pt.namespaceURI===Ka)return K==="math"&&El[Dt];return Boolean(dd[K])},H0=function(K,pt,Dt){if(pt.namespaceURI===Ka&&!El[Dt])return!1;if(pt.namespaceURI===Va&&!Ml[Dt])return!1;return!dd[K]&&(P0[K]||!fd[K])},Y0=function(K){let pt=Lt(K),Dt=ao(mt(K)),qt=W(K),ae,ge;if(qt&&at(qt)===Ue.element)ae={namespaceURI:Lt(qt)},ge=ao(mt(qt));else ae={namespaceURI:xo},ge="template";if(!Al[pt])return!1;if(pt===Ka)return W0(Dt,ae,ge);if(pt===Va)return z0(Dt,ae,ge);if(pt===Wr)return H0(Dt,ae,ge);if(As==="application/xhtml+xml"&&Al[pt])return!0;return!1},Ri=function(K){$s(e.removed,{element:K});try{W(K).removeChild(K)}catch(pt){if(w(K),!W(K))throw _i("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(K,pt,Dt){try{_(K,pt)}catch(qt){try{K.removeAttribute(Dt)}catch(ae){}}},Il=function(K){Dl(K);let pt=E(K);if(pt)Ti(BC(pt),(qt)=>{try{w(qt)}catch(ae){}});let Dt=at(K)===Ue.element?V(K):null;if(Dt)for(let qt=Dt.length-1;qt>=0;--qt){let ae=Dt[qt],ge=ae&&ae.name;if(typeof ge==="string")pd(K,ae,ge)}},bo=function(K,pt,Dt){if(!Dt)try{Dt=pt.getAttributeNode(K)}catch(qt){Dt=null}$s(e.removed,{attribute:Dt||null,from:pt});try{if(Dt)_(pt,Dt);else pt.removeAttribute(K)}catch(qt){try{pt.removeAttribute(K)}catch(ae){}}if(K==="is")if(Ct||Nt)try{Ri(pt)}catch(qt){}else try{pt.setAttribute(K,"")}catch(qt){}},gd=function(K){let pt=V(K);if(!pt)return;for(let Dt=pt.length-1;Dt>=0;--Dt){let qt=pt[Dt],ae=qt&&qt.name;if(typeof ae!=="string"||_e[We(ae)])continue;pd(K,qt,ae)}},$l=function(K,pt){let Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qt=[K];while(qt.length>0){let ae=qt.pop();if(pt(ae)===!1)continue;if(Dt&&at(ae)===Ue.element){let Ce=U(ae);if(Ni(Ce))qt.push(Ce)}let ge=E(ae);if(ge)for(let Ce=ge.length-1;Ce>=0;--Ce)qt.push(ge[Ce])}},Dl=function(K){$l(K,(pt)=>{if(at(pt)===Ue.element)gd(pt)})},Pl=function(K){let pt=[];return $l(K,(Dt)=>{pt.push(Dt)},!0),pt},U0=function(K,pt){let Dt=jl();Ti(Pl(K),(qt)=>{if(at(qt)===Ue.element)Gl(Dt,qt)}),Ti(pt,(qt)=>{if(at(qt)===Ue.element&&!Ds(Dt,qt))gd(qt)})},md=function(K,pt){let Dt=!1;return Ti(e.removed,(qt)=>{if(qt.element)Dt=Dt||qt.element===K,Dl(qt.element)}),U0(K,pt),Dt},j0=8,G0=function(K,pt){let Dt=re,qt=null,ae=()=>{if(!qt)qt=jl(),Ti(pt,(ge)=>{Gl(qt,ge)});return qt};for(let ge=0;;ge++){let Ce=Pl(K),Ge=[K],zr=!1;if(Ti(Ce,(sr)=>{if(at(sr)===Ue.documentFragment)$s(Ge,sr);else if(!zr&&!Ds(Dt,sr))zr=Ds(ae(),sr)}),!zr)return;if(ge>=j0)throw _i("the tree kept changing during in-place sanitization; refusing to return it");Ti(Ge,(sr,fr)=>{X0(sr,fr>0,K,ae())})}},X0=function(K,pt,Dt,qt){let ae=Rl(K),ge;while(ge=ae.nextNode()){if(!Ds(qt,ge)||Ds(re,ge))continue;if(pt)Ir(Gt.uponSanitizeShadowNode,ge,null);if(Nl(ge,Dt),Wl(ge,Dt),Ni(ge.content))Es(ge.content)}},V0=function(K){if(re)Gl(re,K)},yd=function(K,pt){if(!yt)return!1;if(K==="patchsrc")return!0;return K==="for"&&pt!=="label"&&pt!=="output"},K0=function(K){if(!yt)return;$l(K,(pt)=>{let Dt=at(pt);if(Dt===Ue.processingInstruction||Dt===Ue.comment&&Qe(Zd,pt.data)){try{w(pt)}catch(qt){}return!1}if(Dt===Ue.element){let qt=pt,ae=We(mt(pt));try{if(qt.hasAttribute&&qt.hasAttribute("patchsrc"))qt.removeAttribute("patchsrc");if(qt.hasAttribute&&qt.hasAttribute("for")&&yd("for",ae))qt.removeAttribute("for")}catch(ge){}}return!0})},xd=function(K){let pt=null,Dt=null;if(j)K="<remove></remove>"+K;else{let ge=zd(K,/^[\r\n\t ]+/);Dt=ge&&ge[0]}if(As==="application/xhtml+xml"&&xo===Wr)K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>";let qt=wt?_t(K):K;if(xo===Wr)try{pt=new p().parseFromString(qt,As)}catch(ge){}if(!pt||!pt.documentElement){pt=le.createDocument(xo,"template",null);try{pt.documentElement.innerHTML=Fl?kt:qt}catch(ge){}}let ae=pt.body||pt.documentElement;if(K&&Dt)ae.insertBefore(o.createTextNode(Dt),ae.childNodes[0]||null);if(xo===Wr)return xe.call(pt,vt?"html":"body")[0];return vt?pt.documentElement:ae},Rl=function(K){let pt=ut?ut(K):K.ownerDocument;return ne.call(pt||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Za=function(K){return K=Ps(K,se," "),K=Ps(K,he," "),K=Ps(K,ce," "),K},ql=function(K){var pt;Cd(K);let Dt=(pt=K.querySelectorAll)===null||pt===void 0?void 0:pt.call(K,"template");if(Dt)Ti(Dt,(qt)=>{if(Ni(qt.content))ql(qt.content)})},Cd=function(K){K.normalize();let pt=ut?ut(K):K.ownerDocument,Dt=ne.call(pt||K,K,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null),qt=Dt.nextNode();while(qt)qt.data=Za(qt.data),qt=Dt.nextNode()},Qa=function(K){let pt=J?J(K):null;if(typeof pt!=="string")return!1;if(We(pt)!=="form")return!1;return typeof K.nodeName!=="string"||typeof K.textContent!=="string"||typeof K.removeChild!=="function"||K.attributes!==V(K)||typeof K.removeAttribute!=="function"||typeof K.removeAttributeNode!=="function"||typeof K.getAttributeNode!=="function"||typeof K.setAttribute!=="function"||typeof K.namespaceURI!=="string"||typeof K.insertBefore!=="function"||typeof K.hasChildNodes!=="function"||K.nodeType!==Z(K)||K.childNodes!==E(K)},Ni=function(K){if(!Z||typeof K!=="object"||K===null)return!1;try{return Z(K)===Ue.documentFragment}catch(pt){return!1}},Ms=function(K){if(!Z||typeof K!=="object"||K===null)return!1;try{return typeof Z(K)==="number"}catch(pt){return!1}};function Ir(Yt,K,pt){if(Yt.length===0)return;Ti(Yt,(Dt)=>{Dt.call(e,K,pt,Co)})}let Z0=function(K,pt){if(yt&&K.hasChildNodes()&&!Ms(K.firstElementChild)&&Qe(Jl,K.textContent)&&Qe(Jl,K.innerHTML))return!0;if(yt&&GC[pt]&&at(K)===Ue.element&&Lt(K)===Wr&&(Ms(K.firstElementChild)||typeof K.textContent==="string"&&Qe(Jl,K.textContent)))return!0;if(K.nodeType===Ue.processingInstruction)return!0;if(yt&&K.nodeType===Ue.comment&&Qe(Zd,K.data))return!0;return!1},Ja=function(K,pt){if(K instanceof RegExp)return Qe(K,pt);if(K instanceof Function){for(var Dt=arguments.length,qt=Array(Dt>2?Dt-2:0),ae=2;ae<Dt;ae++)qt[ae-2]=arguments[ae];return Boolean(K(pt,...qt))}return!1},Q0=function(K,pt,Dt){if(!Lr[pt]&&wd(pt)&&Ja(Ze.tagNameCheck,pt))return!1;if(ee&&!ye[pt]&&!ye[ao(pt)]){let qt=W(K),ae=E(K);if(ae&&qt){let ge=ae.length;for(let Ce=ge-1;Ce>=0;--Ce){let Ge=K===Dt?x(ae[Ce],!0):ae[Ce];qt.insertBefore(Ge,v(K))}}}return Ri(K),!0},bd=function(K,pt,Dt,qt){if(K.length===0)return pt;return pt===Dt||pt===qt?wr(pt):pt},ko=function(K,pt){if(K===pt||W(K)!==null)return!1;if(Zt)Dl(K);return!0},Nl=function(K,pt){if(V0(K),Ir(Gt.beforeSanitizeElements,K,null),ko(K,pt))return!0;if(Qa(K))return Ri(K),!0;let Dt=We(mt(K));if(ve=bd(Gt.uponSanitizeElement,ve,cr,Bt),Ir(Gt.uponSanitizeElement,K,{tagName:Dt,allowedTags:ve}),ko(K,pt))return!0;if(Z0(K,Dt))return Ri(K),!0;if(Lr[Dt]||!(Ye.tagCheck instanceof Function&&Ye.tagCheck(Dt))&&!ve[Dt]){let qt=Q0(K,Dt,pt);if(qt===!1){if(Ir(Gt.afterSanitizeElements,K,null),ko(K,pt))return!0}return qt}if(at(K)===Ue.element&&!Y0(K))return Ri(K),!0;if((Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Qe(jC,K.innerHTML))return Ri(K),!0;if(k&&K.nodeType===Ue.text){let qt=Za(K.textContent);if(K.textContent!==qt)$s(e.removed,{element:K.cloneNode()}),K.textContent=qt}return Ir(Gt.afterSanitizeElements,K,null),ko(K,pt)},kd=function(K,pt,Dt){if(Ii[pt])return!1;if(yd(pt,K))return!1;if($t&&(pt==="id"||pt==="name")&&((Dt in o)||(Dt in N0)))return!1;let qt=_e[pt]||Ye.attributeCheck instanceof Function&&Ye.attributeCheck(pt,K);if(Nr&&Qe(Ae,pt))return!0;if($i&&Qe(Fe,pt))return!0;if(!qt)return wd(K)&&Ja(Ze.tagNameCheck,K)&&Ja(Ze.attributeNameCheck,pt,K)||pt==="is"&&Ze.allowCustomizedBuiltInElements&&Ja(Ze.tagNameCheck,Dt);if(Pi[pt])return!0;if(Qe(Oi,Ps(Dt,xi,"")))return!0;if((pt==="src"||pt==="xlink:href"||pt==="href")&&K!=="script"&&Hd(Dt,"data:")===0&&Fs[K])return!0;if(bi&&!Qe(Or,Ps(Dt,xi,"")))return!0;return!Dt},J0=ke({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(K){return!J0[ao(K)]&&Qe(vr,K)},tC=function(K,pt,Dt,qt){if(wt&&typeof c==="object"&&typeof c.getAttributeType==="function"&&!Dt)switch(c.getAttributeType(K,pt)){case"TrustedHTML":return _t(qt);case"TrustedScriptURL":return Et(qt)}return qt},eC=function(K,pt,Dt,qt){try{if(Dt)K.setAttributeNS(Dt,pt,qt);else K.setAttribute(pt,qt);if(Qa(K))return Ri(K),!1;return!0}catch(ae){return bo(pt,K),!1}},Sd=function(K,pt){if(yt&&Qe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pt))return!0;return ao(K)==="attributename"&&zd(pt,"href")!==null},Wl=function(K,pt){if(Ir(Gt.beforeSanitizeAttributes,K,null),ko(K,pt))return;let Dt=K.attributes;if(!Dt||Qa(K))return;_e=bd(Gt.uponSanitizeAttribute,_e,Ci,jt);let qt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0},ae=Dt.length,ge=We(K.nodeName);while(ae--){let Ce=Dt[ae],{name:Ge,namespaceURI:zr,value:sr}=Ce,fr=We(Ge),wo=sr,gr=Ge==="value"?wo:LC(wo),Td=!1;if(qt.attrName=fr,qt.attrValue=gr,qt.keepAttr=!0,qt.forceKeepAttr=void 0,Ir(Gt.uponSanitizeAttribute,K,qt),gr=qt.attrValue,Ut&&(fr==="id"||fr==="name")&&Hd(gr,Wt)!==0)bo(Ge,K,Ce),gr=Wt+gr,Td=!0;if(Sd(Ge,gr)){bo(Ge,K,Ce);continue}if(qt.forceKeepAttr)continue;if(!qt.keepAttr){bo(Ge,K,Ce);continue}if(!ki&&Qe(Qd,gr)){bo(Ge,K,Ce);continue}if(k)gr=Za(gr);if(!kd(ge,fr,gr)){bo(Ge,K,Ce);continue}if(gr=tC(ge,fr,zr,gr),gr!==wo){if(eC(K,Ge,zr,gr)&&Td)Wd(e.removed)}}Ir(Gt.afterSanitizeAttributes,K,null),ko(K,pt)},Es=function(K){let pt=null,Dt=Rl(K);Ir(Gt.beforeSanitizeShadowDOM,K,null);while(pt=Dt.nextNode()){if(Ir(Gt.uponSanitizeShadowNode,pt,null),Nl(pt,K),Wl(pt,K),Ni(pt.content))Es(pt.content);if(at(pt)===Ue.element){let qt=U(pt);if(Ni(qt))zl(qt),Es(qt)}}if(k)Cd(K);Ir(Gt.afterSanitizeShadowDOM,K,null)},zl=function(K){let pt=[{node:K,shadow:null}];while(pt.length>0){let Dt=pt.pop();if(Dt.shadow){Es(Dt.shadow);continue}let qt=Dt.node,ae=at(qt)===Ue.element,ge=E(qt);if(ge)for(let Ce=ge.length-1;Ce>=0;--Ce)pt.push({node:ge[Ce],shadow:null});if(ae){let Ce=J?J(qt):null;if(typeof Ce==="string"&&We(Ce)==="template"){let Ge=qt.content;if(Ni(Ge))pt.push({node:Ge,shadow:null})}}if(ae){let Ce=U(qt);if(Ni(Ce))pt.push({node:null,shadow:Ce},{node:Ce,shadow:null})}}};return e.sanitize=function(Yt){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,qt=null,ae=null;if(Fl=!Yt,Fl)Yt="<!-->";if(typeof Yt!=="string"&&!Ms(Yt)){if(Yt=EC(Yt),typeof Yt!=="string")throw _i("dirty is not a string, aborting")}if(!e.isSupported)return Yt;if(It)ve=Bt,_e=jt;else Ol(K);if(Gt.uponSanitizeElement.length>0||Gt.uponSanitizeAttribute.length>0)ve=wr(ve);if(Gt.uponSanitizeAttribute.length>0)_e=wr(_e);e.removed=[];let ge=Zt&&typeof Yt!=="string"&&Ms(Yt),Ce=[],Ge=re;if(ge){K0(Yt);let fr=mt(Yt);if(typeof fr==="string"){let wo=We(fr);if(!ve[wo]||Lr[wo])throw Il(Yt),_i("root node is forbidden and cannot be sanitized in-place")}if(Qa(Yt))throw Il(Yt),_i("root node is clobbered and cannot be sanitized in-place");Ce=Pl(Yt),re=jl()}else if(Ms(Yt)){if(pt=xd("<!---->"),Dt=pt.ownerDocument.importNode(Yt,!0),Dt.nodeType===Ue.element&&Dt.nodeName==="BODY")pt=Dt;else if(Dt.nodeName==="HTML")pt=Dt;else pt.appendChild(Dt);zl(pt)}else{if(!Ct&&!k&&!vt&&Yt.indexOf("<")===-1)return wt&&Ot?_t(Yt):Yt;if(pt=xd(Yt),!pt)return Ct?null:Ot?kt:""}if(pt&&j)Ri(pt.firstChild);let zr=ge?Yt:pt;try{if(ge)zl(Yt);let fr=Rl(zr);while(qt=fr.nextNode())if(Nl(qt,zr),Wl(qt,zr),Ni(qt.content))Es(qt.content);if(ge)G0(Yt,Ce)}catch(fr){if(ge)Il(Yt),md(Yt,Ce);throw fr}finally{re=Ge}if(ge){if(md(Yt,Ce))throw _i("a node selected for removal could not be safely returned; refusing to sanitize in place");if(k)ql(Yt);return Yt}if(Ct){if(k)ql(pt);if(Nt){ae=me.call(pt.ownerDocument);while(pt.firstChild)ae.appendChild(pt.firstChild)}else ae=pt;if(_e.shadowroot||_e.shadowrootmode)ae=de.call(a,ae,!0);return ae}let sr=vt?pt.outerHTML:pt.innerHTML;if(vt&&ve["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&Qe(YC,pt.ownerDocument.doctype.name))sr="<!DOCTYPE "+pt.ownerDocument.doctype.name+`>
|
|
3
|
+
`+sr;if(k)sr=Za(sr);return wt&&Ot?_t(sr):sr},e.setConfig=function(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ol(Yt),It=!0,Bt=ve,jt=_e},e.clearConfig=function(){Co=null,It=!1,Bt=null,jt=null,wt=ot,kt=""},e.isValidAttribute=function(Yt,K,pt){if(!Co)Ol({});let Dt=We(Yt),qt=We(K);if(typeof pt==="string"&&(Sd(K,pt)||!ki&&Qe(Qd,pt)))return!1;return kd(Dt,qt,pt)},e.addHook=function(Yt,K){if(typeof K!=="function")return;if(!yr(Gt,Yt))return;$s(Gt[Yt],K)},e.removeHook=function(Yt,K){if(!yr(Gt,Yt))return;if(K!==void 0){let pt=_C(Gt[Yt],K);return pt===-1?void 0:vC(Gt[Yt],pt,1)[0]}return Wd(Gt[Yt])},e.removeHooks=function(Yt){if(!yr(Gt,Yt))return;Gt[Yt]=[]},e.removeAllHooks=function(){Gt=Jd()},e}var ct=sp();var _o=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fn=/\s/,KC=t((r)=>{let e="",o=0,a=0;while(a<r.length){let s=r.indexOf("%%",a);if(s===-1)break;let n=r.indexOf(`
|
|
4
|
+
`,s);if(n===-1)break;let h=s;while(h>o&&fn.test(r[h-1]))h--;e+=r.slice(o,h)+`
|
|
5
|
+
`,o=n+1,a=o}return e+r.slice(o)},"stripAnyComments"),ln=t((r)=>r===`
|
|
6
|
+
`||r==="\r","isLineBreak"),ZC=t((r,e)=>{let o=-1;for(let a=e;a<r.length&&fn.test(r[a]);a++)if(ln(r[a]))o=a;return o},"lastLineBreakInWhitespaceRun"),Js=t((r)=>{let e=0;while(e<r.length&&fn.test(r[e])&&!ln(r[e]))e++;let o=r.slice(0,e);if(!r.startsWith("---",e))return;let a=[];for(let c=e+3;c<r.length&&fn.test(r[c]);c++)if(ln(r[c]))a.push(c);if(a.length===0)return;let s=`${o}---`,n=t((c)=>ln(r[c])&&r.startsWith(s,c+1)?ZC(r,c+1+s.length):-1,"closingEnd"),h=a[0]+1,l=-1;for(let c=h;c<r.length;c++)if(n(c)!==-1)l=c;if(l===-1)return;let u=a[0];for(let c of a)if(c<l)u=c;let p=u+1;for(let c=p;c<=l;c++){let m=n(c);if(m!==-1)return{indent:o,body:r.slice(p,c),length:m+1}}return},"matchFrontMatter"),ec=class extends Error{static{t(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Zr={},ni=t(function(r,e){let o=Js(r);r=KC((o?r.slice(o.length):r).replace(_o,""));for(let[a,{detector:s}]of Object.entries(Zr))if(s(r,e))return a;throw new ec(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),Mo=t((...r)=>{for(let{id:e,detector:o,loader:a}of r)up(e,o,a)},"registerLazyLoadedDiagrams"),up=t((r,e,o)=>{if(Zr[r])i.warn(`Detector with key ${r} already exists. Overwriting.`);Zr[r]={detector:e,loader:o},i.debug(`Detector with key ${r} added${o?" with loader":""}`)},"addDetector"),Lc=t((r)=>Zr[r].loader,"getDiagramLoader"),ih=t((r,e,{depth:o=2}={})=>{let a={depth:o};if(Array.isArray(e)&&!Array.isArray(r))return e.forEach((s)=>ih(r,s,a)),r;else if(Array.isArray(e)&&Array.isArray(r))return e.forEach((s)=>{if(!r.includes(s))r.push(s)}),r;if(r===void 0||r===null||o<=0)if(r!==void 0&&r!==null&&typeof r==="object"&&typeof e==="object")return Object.assign(r,e);else return e;if(e!==void 0&&e!==null&&typeof r==="object"&&typeof e==="object"){let s=r;Object.entries(e).forEach(([n,h])=>{if(typeof h==="object"){if(h===null)return;if(!Object.hasOwn(r,n))Object.defineProperty(r,n,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(s[n]===void 0)s[n]=Array.isArray(h)?[]:{};if(typeof s[n]==="object")s[n]=ih(s[n],h,{depth:o-1})}else if(typeof s[n]!=="object")if(Object.hasOwn(r,n))s[n]=h;else Object.defineProperty(r,n,{value:h,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),Te=ih,Hr="#ffffff",Yr="#f2f2f2",pe=t((r,e)=>e?z(r,{s:-40,l:10}):z(r,{s:-40,l:-10}),"mkBorder"),ap=t((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),$r=t((r,e)=>ap(r)&&ap(e)?{...r,...e}:e,"applyOverride"),QC=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||f(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode)this.rowOdd=this.rowOdd||g(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10);else this.rowOdd=this.rowOdd||f(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||f(this.mainBkg,5);if(this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);if(e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])}),Object.hasOwn(r,"nodeBorder")&&!Object.hasOwn(r,"useGradient"))this.useGradient=!1}},JC=t((r)=>{let e=new QC;return e.calculate(r),e},"getThemeVariables"),tb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=f(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=f(dt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=De(255,255,255,0.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=g("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=g(this.sectionBkgColor,10),this.taskBorderColor=De(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=De(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||f(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=f(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=f(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=f(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=dt(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||dt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||f(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,s:-30,l:-(-7+r*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??f(this["cScale"+r],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=f(this.secondaryColor,20),this.git1=f(this.pie2||this.secondaryColor,20),this.git2=f(this.pie3||this.tertiaryColor,20),this.git3=f(this.pie4||z(this.primaryColor,{h:-30}),20),this.git4=f(this.pie5||z(this.primaryColor,{h:-60}),20),this.git5=f(this.pie6||z(this.primaryColor,{h:-90}),10),this.git6=f(this.pie7||z(this.primaryColor,{h:60}),10),this.git7=f(this.pie8||z(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||f("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||f("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||f("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||f("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||f(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||f(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||f(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||f(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},eb=t((r)=>{let e=new tb;return e.calculate(r),e},"getThemeVariables"),rb=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=z(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=pe(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=De(102,102,255,0.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||z(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,l:-(7+r*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||dt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||dt(this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.labelTextColor}if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||f(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||f(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||z(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||z(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||g(dt(this.git0),25),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(Object.keys(this).forEach((o)=>{if(this[o]==="calculated")this[o]=void 0}),typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},et=t((r)=>{let e=new rb;return e.calculate(r),e},"getThemeVariables"),ib=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=f("#cde498",10),this.primaryBorderColor=pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.primaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=g(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||z(this["cScale"+r],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{h:30,s:-30,l:-(8+r*5)});if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||f(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||f(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-30}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??z(this.primaryColor,{l:-30}),this.venn2=this.venn2??z(this.secondaryColor,{l:-30}),this.venn3=this.venn3??z(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??z(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??z(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??z(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??z(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??z(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},ob=t((r)=>{let e=new ib;return e.calculate(r),e},"getThemeVariables"),sb=class{static{t(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=f(this.contrast,55),this.background="#ffffff",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||f(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=f(this.contrast,55),this.border2=this.contrast,this.actorBorder=f(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||dt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||f(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||z(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||z(this.mainBkg,{l:-(8+r*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=f(this.contrast,30),this.sectionBkgColor2=f(this.contrast,30),this.taskBorderColor=g(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=f(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=g(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??this["cScale"+r];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=g(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||z(this.primaryColor,{h:-30}),this.git4=this.pie5||z(this.primaryColor,{h:-60}),this.git5=this.pie6||z(this.primaryColor,{h:-90}),this.git6=this.pie7||z(this.primaryColor,{h:60}),this.git7=this.pie8||z(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},ab=t((r)=>{let e=new sb;return e.calculate(r),e},"getThemeVariables"),nb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=pe(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(fe(this.background)?f(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=z(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||f(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||r,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||o,this.cScale3=this.cScale3||z(r,{h:30}),this.cScale4=this.cScale4||z(r,{h:60}),this.cScale5=this.cScale5||z(r,{h:90}),this.cScale6=this.cScale6||z(r,{h:120}),this.cScale7=this.cScale7||z(r,{h:150}),this.cScale8=this.cScale8||z(r,{h:210,l:150}),this.cScale9=this.cScale9||z(r,{h:270}),this.cScale10=this.cScale10||z(r,{h:300}),this.cScale11=this.cScale11||z(r,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||f(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||z(r,{h:64}),this.fillType3=this.fillType3||z(e,{h:64}),this.fillType4=this.fillType4||z(r,{h:-64}),this.fillType5=this.fillType5||z(e,{h:-64}),this.fillType6=this.fillType6||z(r,{h:128}),this.fillType7=this.fillType7||z(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||z(r,{l:-10}),this.pie5=this.pie5||z(e,{l:-10}),this.pie6=this.pie6||z(o,{l:-10}),this.pie7=this.pie7||z(r,{h:60,l:-10}),this.pie8=this.pie8||z(r,{h:-60,l:-10}),this.pie9=this.pie9||z(r,{h:120,l:0}),this.pie10=this.pie10||z(r,{h:60,l:-20}),this.pie11=this.pie11||z(r,{h:-60,l:-20}),this.pie12=this.pie12||z(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},lb=t((r)=>{let e=new nb;return e.calculate(r),e},"getThemeVariables"),hb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=f(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=f(dt("#323D47"),10),this.border1="#ccc",this.border2=De(255,255,255,0.25),this.arrowheadColor=dt(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?f(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||f(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}};var cb=t((r)=>{let e=new hb;return e.calculate(r),e},"getThemeVariables"),ub=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=pe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(fe(this.background)?f(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=z(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||f(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=this.mainBkg;if(this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||f(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||z(r,{h:64}),this.fillType3=this.fillType3||z(e,{h:64}),this.fillType4=this.fillType4||z(r,{h:-64}),this.fillType5=this.fillType5||z(e,{h:-64}),this.fillType6=this.fillType6||z(r,{h:128}),this.fillType7=this.fillType7||z(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||z(r,{l:-10}),this.pie5=this.pie5||z(e,{l:-10}),this.pie6=this.pie6||z(o,{l:-10}),this.pie7=this.pie7||z(r,{h:60,l:-10}),this.pie8=this.pie8||z(r,{h:-60,l:-10}),this.pie9=this.pie9||z(r,{h:120,l:0}),this.pie10=this.pie10||z(r,{h:60,l:-20}),this.pie11=this.pie11||z(r,{h:-60,l:-20}),this.pie12=this.pie12||z(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},fb=t((r)=>{let e=new ub;return e.calculate(r),e},"getThemeVariables"),db=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=f(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=f(dt("#323D47"),10),this.border1="#ccc",this.border2=De(255,255,255,0.25),this.arrowheadColor=dt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?f(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||f(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||f(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||z(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},pb=t((r)=>{let e=new db;return e.calculate(r),e},"getThemeVariables"),gb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=pe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(fe(this.background)?f(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=z(r,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||f(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||f(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||z(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});this.classText=this.classText||this.textColor;for(let s=0;s<8;s++)this["fillType"+s]=this["fillType"+s]||this.bkgColorArray[s];for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["pie"+(s+1)]=this["pie"+(s+1)]||this["cScale"+s];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let s=0;s<8;s++)this["venn"+(s+1)]=this["venn"+(s+1)]??this.borderColorArray[s%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||z(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||z(r,{h:-30}),this.git4=this.git4||z(r,{h:-60}),this.git5=this.git5||z(r,{h:-90}),this.git6=this.git6||z(r,{h:60}),this.git7=this.git7||z(r,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},mb=t((r)=>{let e=new gb;return e.calculate(r),e},"getThemeVariables"),yb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=f(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pe(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=f(dt("#323D47"),10),this.border1="#ccc",this.border2=De(255,255,255,0.25),this.arrowheadColor=dt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?f(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||f(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||dt(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||f(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||g(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=g(this["cScale"+o],75);let r=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||z(this.mainBkg,{h:180,s:-15,l:r*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||z(this.mainBkg,{h:180,s:-15,l:r*(8+o*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((o,a)=>{this["fillType"+a]=this["fillType"+a]||o});for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["pie"+(o+1)]=this["pie"+(o+1)]||this["cScale"+o];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let o=0;o<8;o++)this["venn"+(o+1)]=this["venn"+(o+1)]??this.borderColorArray[o%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fe(this.quadrant1Fill)?f(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode)this.git0=f(this.git0,25),this.git1=f(this.git1,25),this.git2=f(this.git2,25),this.git3=f(this.git3,25),this.git4=f(this.git4,25),this.git5=f(this.git5,25),this.git6=f(this.git6,25),this.git7=f(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Yr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=$r(this[o],r[o])})}},xb=t((r)=>{let e=new yb;return e.calculate(r),e},"getThemeVariables"),pr={base:{getThemeVariables:JC},dark:{getThemeVariables:eb},default:{getThemeVariables:et},forest:{getThemeVariables:ob},neutral:{getThemeVariables:ab},neo:{getThemeVariables:lb},"neo-dark":{getThemeVariables:cb},redux:{getThemeVariables:fb},"redux-dark":{getThemeVariables:pb},"redux-color":{getThemeVariables:mb},"redux-dark-color":{getThemeVariables:xb}},He={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},fp={...He,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:pr.default.getThemeVariables(),sequence:{...He.sequence,messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:t(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:t(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:He.class?.theme,look:He.class?.look,layout:He.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...He.gantt,tickInterval:void 0,useWidth:void 0},c4:{...He.c4,useWidth:void 0,personFont:t(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...He.flowchart,inheritDir:!1},external_personFont:t(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:t(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:t(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:t(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:t(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:t(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:t(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:t(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:t(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:t(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:t(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:t(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:t(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:t(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:t(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:t(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:t(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:t(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:t(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:t(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...He.pie,useWidth:984},xyChart:{...He.xyChart,useWidth:void 0},requirement:{...He.requirement,useWidth:void 0},packet:{...He.packet},eventmodeling:{...He.eventmodeling},treeView:{...He.treeView,useWidth:void 0},radar:{...He.radar},usecase:{...He.usecase},railroad:{...He.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...He.ishikawa},sankey:{...He.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...He.venn},cynefin:{...He.cynefin}},dp=t((r,e="")=>Object.keys(r).reduce((o,a)=>{if(Array.isArray(r[a]))return o;else if(typeof r[a]==="object"&&r[a]!==null)return[...o,e+a,...dp(r[a],"")];return[...o,e+a]},[]),"keyify"),Cb=new Set(dp(fp,"")),F=fp,bb={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},kb=t((r)=>bb[r]??r,"getDiagramConfigKey"),wb={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Sb=t((r,e)=>{for(let o of Object.keys(r)){let a=r[o];if(o.startsWith("__")||o.includes("proto")||o.includes("constr")||typeof a!=="string"||!e.test(a))i.debug("sanitize deleting dictionary entry:",o,a),delete r[o]}},"sanitizeDictionaryConfig"),Ws=t((r)=>{if(i.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((e)=>Ws(e));return}for(let e of Object.keys(r)){if(i.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cb.has(e)||r[e]==null){i.debug("sanitize deleting key: ",e),delete r[e];continue}if(typeof r[e]==="object"){let a=wb[e];if(a)Sb(r[e],a);else i.debug("sanitizing object",e),Ws(r[e]);continue}let o=["themeCSS","fontFamily","altFontFamily"];for(let a of o)if(e.includes(a))i.debug("sanitizing css option",e),r[e]=tc(r[e])}if(r.themeVariables)for(let e of Object.keys(r.themeVariables)){let o=r.themeVariables[e];if(o?.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[e]=""}i.debug("After sanitization",r)},"sanitizeDirective"),tc=t((r)=>{let e=0,o=0;for(let a of r){if(e<o)return"{ /* ERROR: Unbalanced CSS */ }";if(a==="{")e++;else if(a==="}")o++}if(e!==o)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),kr=Object.freeze(F),Tb=["theme","look","layout"],_b=new Set(["classic","handDrawn","neo"]),Bb=t((r,e)=>{if(r==="theme")return e==="null"||Object.hasOwn(pr,e);return r!=="look"||_b.has(e)},"isUsableAppearance"),vb=t((r,e,o)=>{if(!r)return;return[r[e]?.[o],r[o]].find((s)=>s!==void 0&&Bb(o,s))},"readAppearance"),hn=t((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),ar=Te({},kr),dn,pn={},Bi=[],qs=Te({},kr),Ns,Lb=t((r,e)=>{if(!Ns)return;let o=[e,...[...Bi].reverse(),pn,kr],a=r[Ns];for(let s of Tb)for(let n of o){let h=vb(n,Ns,s);if(h===void 0)continue;if(r[s]=h,a?.[s]!==void 0)a[s]=h;break}},"resolveAppearance"),vo=t((r,e)=>{let o=Te({},r),a={};for(let n of e)pp(n),a=Te(a,n);if(o=Te(o,a),Lb(o,a),(Boolean(a.theme)||o.theme!==r.theme)&&o.theme&&Object.hasOwn(pr,o.theme)){let n=Te({},dn),h=Te(n.themeVariables||{},a.themeVariables);o.themeVariables=pr[o.theme].getThemeVariables(h)}return qs=o,Ab(qs),qs},"updateCurrentConfig"),Ro=t((r)=>{Ns=r===void 0?void 0:kb(r),vo(ar,Bi)},"setDiagramConfigScope"),Nc=t((r)=>{if(ar=Te({},kr),ar=Te(ar,r),pn=Te({},r),r.theme&&Object.hasOwn(pr,r.theme))ar.themeVariables=pr[r.theme].getThemeVariables(r.themeVariables);return vo(ar,Bi),ar},"setSiteConfig"),Mc=t((r)=>{dn=Te({},r)},"saveConfigFromInitialize"),Rc=t((r)=>(ar=Te(ar,r),pn=Te(pn,r),vo(ar,Bi),ar),"updateSiteConfig"),nc=t(()=>Te({},ar),"getSiteConfig"),rc=t((r)=>(vo(qs,[r]),A()),"setConfig"),A=t(()=>Te({},qs),"getConfig"),pp=t((r)=>{if(!r)return;["secure",...ar.secure??[]].forEach((e)=>{if(Object.hasOwn(r,e))i.debug(`Denied attempt to modify a secure key ${e}`,r[e]),delete r[e]}),Object.keys(r).forEach((e)=>{if(e.startsWith("__"))delete r[e]}),Object.keys(r).forEach((e)=>{if(typeof r[e]==="string"&&(r[e].includes("<")||r[e].includes(">")||r[e].includes("url(data:")))delete r[e];if(typeof r[e]==="object")pp(r[e])})},"sanitize"),Pc=t((r)=>{if(Ws(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};Bi.push(r),vo(ar,Bi)},"addDirective"),Hi=t((r=ar)=>{Bi=[],Ns=void 0,vo(r,Bi)},"reset"),Fb={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},np={},gp=t((r)=>{if(np[r])return;i.warn(Fb[r]),np[r]=!0},"issueWarning"),Ab=t((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)gp("LAZY_LOAD_DEPRECATED")},"checkConfig"),Ic=t(()=>{let r={};if(dn)r=Te(r,dn);for(let e of Bi)r=Te(r,e);return r},"getUserDefinedConfig"),tt=t((r)=>{if(r.flowchart?.htmlLabels!=null)gp("FLOWCHART_HTML_LABELS_DEPRECATED");return hn(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),ha=/<\/?br\s*\/?>/gi,Mb=new RegExp(ha.source,"i"),Eb=t((r)=>{if(!r)return[""];return xp(r).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Ob=(()=>{let r=!1;return()=>{if(!r)mp(),r=!0}})();function mp(){ct.addHook("beforeSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("target"))e.setAttribute("data-temp-href-target",e.getAttribute("target")??"")}),ct.addHook("afterSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("data-temp-href-target")){if(e.setAttribute("target",e.getAttribute("data-temp-href-target")??""),e.removeAttribute("data-temp-href-target"),e.getAttribute("target")==="_blank")e.setAttribute("rel","noopener")}})}t(mp,"setupDompurifyHooks");var yp=t((r)=>(Ob(),ct.sanitize(r)),"removeScript"),lp=t((r,e)=>{if(tt(e)){let o=e.securityLevel;if(o==="antiscript"||o==="strict"||o==="sandbox")r=yp(r);else if(o!=="loose")r=xp(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=Pb(r)}return r},"sanitizeMore"),G=t((r,e)=>{if(!r)return r;if(e.dompurifyConfig)r=ct.sanitize(lp(r,e),e.dompurifyConfig).toString();else r=ct.sanitize(lp(r,e),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),Ib=t((r,e)=>{if(typeof r==="string")return G(r,e);return r.flat().map((o)=>G(o,e))},"sanitizeTextOrArray"),$b=t((r)=>Mb.test(r),"hasBreaks"),Db=t((r)=>r.split(ha),"splitBreaks"),Pb=t((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xp=t((r)=>r.replace(ha,"#br#"),"breakToPlaceholder"),ac=t((r)=>{let e="";if(r)e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e);return e},"getUrl"),Rb=t(function(...r){let e=r.filter((o)=>!isNaN(o));return Math.max(...e)},"getMax"),qb=t(function(...r){let e=r.filter((o)=>!isNaN(o));return Math.min(...e)},"getMin"),ur=t(function(r){let e=r.split(/(,)/),o=[];for(let a=0;a<e.length;a++){let s=e[a];if(s===","&&a>0&&a+1<e.length){let n=e[a-1],h=e[a+1];if(Nb(n,h))s=n+","+h,a++,o.pop()}o.push(Wb(s))}return o.join("")},"parseGenericTypes"),oh=t((r,e)=>Math.max(0,r.split(e).length-1),"countOccurrence"),Nb=t((r,e)=>{let o=oh(r,"~"),a=oh(e,"~");return o===1&&a===1},"shouldCombineSets"),Wb=t((r)=>{let e=oh(r,"~"),o=!1;if(e<=1)return r;if(e%2!==0&&r.startsWith("~"))r=r.substring(1),o=!0;let a=[...r],s=a.indexOf("~"),n=a.lastIndexOf("~");while(s!==-1&&n!==-1&&s!==n)a[s]="<",a[n]=">",s=a.indexOf("~"),n=a.lastIndexOf("~");if(o)a.unshift("~");return a.join("")},"processSet"),hp=t(()=>window.MathMLElement!==void 0,"isMathMLSupported"),cn=/\$\$(.*?)\$\$/g,ze=t((r)=>(r.match(cn)?.length??0)>0,"hasKatex"),ri=t(async(r,e)=>{let o=document.createElement("div");o.innerHTML=await ai(r,e),o.id="katex-temp",o.style.visibility="hidden",o.style.position="absolute",o.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",o);let s={width:o.clientWidth,height:o.clientHeight};return o.remove(),s},"calculateMathMLDimensions"),zb=t(async(r,e)=>{if(!ze(r))return r;if(!(hp()||e.legacyMathML||e.forceLegacyMathML))return r.replace(cn,"MathML is unsupported in this environment.");{let{default:o}=await (S("nj0cv1cq"),import("./chunk-nj0cv1cq.js")),a=e.forceLegacyMathML||!hp()&&e.legacyMathML?"htmlAndMathml":"mathml";return r.split(ha).map((s)=>ze(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(cn,(s,n)=>o.renderToString(n,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(cn,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ai=t(async(r,e)=>G(await zb(r,e),e),"renderKatexSanitized"),C={getRows:Eb,sanitizeText:G,sanitizeTextOrArray:Ib,hasBreaks:$b,splitBreaks:Db,lineBreakRegex:ha,removeScript:yp,getUrl:ac,evaluate:hn,getMax:Rb,getMin:qb},Hb=t(function(r,e){for(let o of e)r.attr(o[0],o[1])},"d3Attrs"),Yb=t(function(r,e,o){let a=new Map;if(o)a.set("width","100%"),a.set("style",`max-width: ${e}px;`);else a.set("height",r),a.set("width",e);return a},"calculateSvgSizeAttrs"),Y=t(function(r,e,o,a){let s=Yb(e,o,a);Hb(r,s)},"configureSvgSize"),gn=t(function(r,e,o,a){let s=e.node().getBBox(),{width:n,height:h}=s;i.info(`SVG bounds: ${n}x${h}`,s);let l=0,u=0;i.info(`Graph bounds: ${l}x${u}`,r),l=n+o*2,u=h+o*2,i.info(`Calculated bounds: ${l}x${u}`),Y(e,u,l,a);let p=`${s.x-o} ${s.y-o} ${s.width+2*o} ${s.height+2*o}`;e.attr("viewBox",p)},"setupGraphViewbox"),un={};function Po(r){return[...r.cssRules].map((e)=>e.cssText).join(`
|
|
7
|
+
`)}t(Po,"cssStyleSheetToString");var Ub=t((r,e,o,a)=>{let s="";if(r in un&&un[r])s=un[r]({...o,svgId:a});else i.warn(`No theme found for ${r}`);return`& {
|
|
8
|
+
font-family: ${o.fontFamily};
|
|
9
|
+
font-size: ${o.fontSize};
|
|
10
|
+
fill: ${o.textColor}
|
|
11
|
+
}
|
|
12
|
+
@keyframes edge-animation-frame {
|
|
13
|
+
from {
|
|
14
|
+
stroke-dashoffset: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes dash {
|
|
18
|
+
to {
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& .edge-animation-slow {
|
|
23
|
+
stroke-dasharray: 9,5 !important;
|
|
24
|
+
stroke-dashoffset: 900;
|
|
25
|
+
animation: dash 50s linear infinite;
|
|
26
|
+
stroke-linecap: round;
|
|
27
|
+
}
|
|
28
|
+
& .edge-animation-fast {
|
|
29
|
+
stroke-dasharray: 9,5 !important;
|
|
30
|
+
stroke-dashoffset: 900;
|
|
31
|
+
animation: dash 20s linear infinite;
|
|
32
|
+
stroke-linecap: round;
|
|
33
|
+
}
|
|
34
|
+
/* Classes common for multiple diagrams */
|
|
35
|
+
|
|
36
|
+
& .error-icon {
|
|
37
|
+
fill: ${o.errorBkgColor};
|
|
38
|
+
}
|
|
39
|
+
& .error-text {
|
|
40
|
+
fill: ${o.errorTextColor};
|
|
41
|
+
stroke: ${o.errorTextColor};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .edge-thickness-normal {
|
|
45
|
+
stroke-width: ${o.strokeWidth??1}px;
|
|
46
|
+
}
|
|
47
|
+
& .edge-thickness-thick {
|
|
48
|
+
stroke-width: 3.5px
|
|
49
|
+
}
|
|
50
|
+
& .edge-pattern-solid {
|
|
51
|
+
stroke-dasharray: 0;
|
|
52
|
+
}
|
|
53
|
+
& .edge-thickness-invisible {
|
|
54
|
+
stroke-width: 0;
|
|
55
|
+
fill: none;
|
|
56
|
+
}
|
|
57
|
+
& .edge-pattern-dashed{
|
|
58
|
+
stroke-dasharray: 3;
|
|
59
|
+
}
|
|
60
|
+
.edge-pattern-dotted {
|
|
61
|
+
stroke-dasharray: 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .marker {
|
|
65
|
+
fill: ${o.lineColor};
|
|
66
|
+
stroke: ${o.lineColor};
|
|
67
|
+
}
|
|
68
|
+
& .marker.cross {
|
|
69
|
+
stroke: ${o.lineColor};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& svg {
|
|
73
|
+
font-family: ${o.fontFamily};
|
|
74
|
+
font-size: ${o.fontSize};
|
|
75
|
+
}
|
|
76
|
+
& p {
|
|
77
|
+
margin: 0
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${s}
|
|
81
|
+
.node .neo-node {
|
|
82
|
+
stroke: ${o.nodeBorder};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
86
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
87
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
90
|
+
filter: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[data-look="neo"].node path {
|
|
95
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
96
|
+
stroke-width: ${o.strokeWidth??1}px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-look="neo"].node .outer-path {
|
|
100
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-look="neo"].node .neo-line path {
|
|
104
|
+
stroke: ${o.nodeBorder};
|
|
105
|
+
filter: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-look="neo"].node circle{
|
|
109
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
110
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-look="neo"].node circle .state-start{
|
|
114
|
+
fill: #000000;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-look="neo"].icon-shape .icon {
|
|
118
|
+
fill: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
119
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
123
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
124
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${e}
|
|
128
|
+
`},"getStyles"),jb=t((r,e)=>{if(e!==void 0)un[r]=e},"addStylesForDiagram"),Dc=Ub,Io={};lr(Io,{clear:()=>N,getAccDescription:()=>I,getAccTitle:()=>P,getDiagramTitle:()=>D,setAccDescription:()=>R,setAccTitle:()=>M,setDiagramTitle:()=>O});var sh="",ah="",nh="",lh=t((r)=>G(r,A()),"sanitizeText"),N=t(()=>{sh="",nh="",ah=""},"clear"),M=t((r)=>{sh=lh(r).replace(/^\s+/g,"")},"setAccTitle"),P=t(()=>sh,"getAccTitle"),R=t((r)=>{nh=lh(r).replace(/\n\s+/g,`
|
|
129
|
+
`)},"setAccDescription"),I=t(()=>nh,"getAccDescription"),O=t((r)=>{ah=lh(r)},"setDiagramTitle"),D=t(()=>ah,"getDiagramTitle"),cp=i,Gb=zi,d=A,Cr=rc,Qr=kr,xn=t((r)=>G(r,d()),"sanitizeText"),ii=gn,Xb=t(()=>Io,"getCommonDb"),mn={},Ui=t((r,e,o)=>{if(mn[r])cp.warn(`Diagram with id ${r} already registered. Overwriting.`);if(mn[r]=e,o)up(r,o);jb(r,e.styles),e.injectUtils?.(cp,Gb,d,xn,ii,Xb(),()=>{})},"registerDiagram"),Do=t((r)=>{if(r in mn)return mn[r];throw new Vb(r)},"getDiagram"),Vb=class extends Error{static{t(this,"DiagramNotFoundError")}constructor(r){super(`Diagram ${r} not found.`)}};var Kb={value:()=>{}};function bp(){for(var r=0,e=arguments.length,o={},a;r<e;++r){if(!(a=arguments[r]+"")||a in o||/[\s.]/.test(a))throw Error("illegal type: "+a);o[a]=[]}return new Cn(o)}function Cn(r){this._=r}function Zb(r,e){return r.trim().split(/^|\s+/).map(function(o){var a="",s=o.indexOf(".");if(s>=0)a=o.slice(s+1),o=o.slice(0,s);if(o&&!e.hasOwnProperty(o))throw Error("unknown type: "+o);return{type:o,name:a}})}Cn.prototype=bp.prototype={constructor:Cn,on:function(r,e){var o=this._,a=Zb(r+"",o),s,n=-1,h=a.length;if(arguments.length<2){while(++n<h)if((s=(r=a[n]).type)&&(s=Qb(o[s],r.name)))return s;return}if(e!=null&&typeof e!=="function")throw Error("invalid callback: "+e);while(++n<h)if(s=(r=a[n]).type)o[s]=Cp(o[s],r.name,e);else if(e==null)for(s in o)o[s]=Cp(o[s],r.name,null);return this},copy:function(){var r={},e=this._;for(var o in e)r[o]=e[o].slice();return new Cn(r)},call:function(r,e){if((s=arguments.length-2)>0)for(var o=Array(s),a=0,s,n;a<s;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(n=this._[r],a=0,s=n.length;a<s;++a)n[a].value.apply(e,o)},apply:function(r,e,o){if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(var a=this._[r],s=0,n=a.length;s<n;++s)a[s].value.apply(e,o)}};function Qb(r,e){for(var o=0,a=r.length,s;o<a;++o)if((s=r[o]).name===e)return s.value}function Cp(r,e,o){for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r[a]=Kb,r=r.slice(0,a).concat(r.slice(a+1));break}if(o!=null)r.push({name:e,value:o});return r}var hh=bp;var bn="http://www.w3.org/1999/xhtml",ch={svg:"http://www.w3.org/2000/svg",xhtml:bn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ur(r){var e=r+="",o=e.indexOf(":");if(o>=0&&(e=r.slice(0,o))!=="xmlns")r=r.slice(o+1);return ch.hasOwnProperty(e)?{space:ch[e],local:r}:r}function Jb(r){return function(){var e=this.ownerDocument,o=this.namespaceURI;return o===bn&&e.documentElement.namespaceURI===bn?e.createElement(r):e.createElementNS(o,r)}}function tk(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function zs(r){var e=Ur(r);return(e.local?tk:Jb)(e)}function ek(){}function Ji(r){return r==null?ek:function(){return this.querySelector(r)}}function uh(r){if(typeof r!=="function")r=Ji(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],h=n.length,l=a[s]=Array(h),u,p,c=0;c<h;++c)if((u=n[c])&&(p=r.call(u,u.__data__,c,n))){if("__data__"in u)p.__data__=u.__data__;l[c]=p}return new Pe(a,this._parents)}function fh(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function rk(){return[]}function Lo(r){return r==null?rk:function(){return this.querySelectorAll(r)}}function ik(r){return function(){return fh(r.apply(this,arguments))}}function dh(r){if(typeof r==="function")r=ik(r);else r=Lo(r);for(var e=this._groups,o=e.length,a=[],s=[],n=0;n<o;++n)for(var h=e[n],l=h.length,u,p=0;p<l;++p)if(u=h[p])a.push(r.call(u,u.__data__,p,h)),s.push(u);return new Pe(a,s)}function Ao(r){return function(){return this.matches(r)}}function kn(r){return function(e){return e.matches(r)}}var ok=Array.prototype.find;function sk(r){return function(){return ok.call(this.children,r)}}function ak(){return this.firstElementChild}function ph(r){return this.select(r==null?ak:sk(typeof r==="function"?r:kn(r)))}var nk=Array.prototype.filter;function lk(){return Array.from(this.children)}function hk(r){return function(){return nk.call(this.children,r)}}function gh(r){return this.selectAll(r==null?lk:hk(typeof r==="function"?r:kn(r)))}function mh(r){if(typeof r!=="function")r=Ao(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],h=n.length,l=a[s]=[],u,p=0;p<h;++p)if((u=n[p])&&r.call(u,u.__data__,p,n))l.push(u);return new Pe(a,this._parents)}function Hs(r){return Array(r.length)}function yh(){return new Pe(this._enter||this._groups.map(Hs),this._parents)}function Ys(r,e){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=e}Ys.prototype={constructor:Ys,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function xh(r){return function(){return r}}function ck(r,e,o,a,s,n){var h=0,l,u=e.length,p=n.length;for(;h<p;++h)if(l=e[h])l.__data__=n[h],a[h]=l;else o[h]=new Ys(r,n[h]);for(;h<u;++h)if(l=e[h])s[h]=l}function uk(r,e,o,a,s,n,h){var l,u,p=new Map,c=e.length,m=n.length,x=Array(c),w;for(l=0;l<c;++l)if(u=e[l])if(x[l]=w=h.call(u,u.__data__,l,e)+"",p.has(w))s[l]=u;else p.set(w,u);for(l=0;l<m;++l)if(w=h.call(r,n[l],l,n)+"",u=p.get(w))a[l]=u,u.__data__=n[l],p.delete(w);else o[l]=new Ys(r,n[l]);for(l=0;l<c;++l)if((u=e[l])&&p.get(x[l])===u)s[l]=u}function fk(r){return r.__data__}function Ch(r,e){if(!arguments.length)return Array.from(this,fk);var o=e?uk:ck,a=this._parents,s=this._groups;if(typeof r!=="function")r=xh(r);for(var n=s.length,h=Array(n),l=Array(n),u=Array(n),p=0;p<n;++p){var c=a[p],m=s[p],x=m.length,w=dk(r.call(c,c&&c.__data__,p,a)),_=w.length,v=l[p]=Array(_),E=h[p]=Array(_),W=u[p]=Array(x);o(c,m,v,E,W,w,e);for(var U=0,V=0,Z,J;U<_;++U)if(Z=v[U]){if(U>=V)V=U+1;while(!(J=E[V])&&++V<_);Z._next=J||null}}return h=new Pe(h,a),h._enter=l,h._exit=u,h}function dk(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function bh(){return new Pe(this._exit||this._groups.map(Hs),this._parents)}function kh(r,e,o){var a=this.enter(),s=this,n=this.exit();if(typeof r==="function"){if(a=r(a),a)a=a.selection()}else a=a.append(r+"");if(e!=null){if(s=e(s),s)s=s.selection()}if(o==null)n.remove();else o(n);return a&&s?a.merge(s).order():s}function wh(r){var e=r.selection?r.selection():r;for(var o=this._groups,a=e._groups,s=o.length,n=a.length,h=Math.min(s,n),l=Array(s),u=0;u<h;++u)for(var p=o[u],c=a[u],m=p.length,x=l[u]=Array(m),w,_=0;_<m;++_)if(w=p[_]||c[_])x[_]=w;for(;u<s;++u)l[u]=o[u];return new Pe(l,this._parents)}function Sh(){for(var r=this._groups,e=-1,o=r.length;++e<o;)for(var a=r[e],s=a.length-1,n=a[s],h;--s>=0;)if(h=a[s]){if(n&&h.compareDocumentPosition(n)^4)n.parentNode.insertBefore(h,n);n=h}return this}function Th(r){if(!r)r=pk;function e(m,x){return m&&x?r(m.__data__,x.__data__):!m-!x}for(var o=this._groups,a=o.length,s=Array(a),n=0;n<a;++n){for(var h=o[n],l=h.length,u=s[n]=Array(l),p,c=0;c<l;++c)if(p=h[c])u[c]=p;u.sort(e)}return new Pe(s,this._parents).order()}function pk(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}function _h(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Bh(){return Array.from(this)}function vh(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length;s<n;++s){var h=a[s];if(h)return h}return null}function Lh(){let r=0;for(let e of this)++r;return r}function Fh(){return!this.node()}function Ah(r){for(var e=this._groups,o=0,a=e.length;o<a;++o)for(var s=e[o],n=0,h=s.length,l;n<h;++n)if(l=s[n])r.call(l,l.__data__,n,s);return this}function gk(r){return function(){this.removeAttribute(r)}}function mk(r){return function(){this.removeAttributeNS(r.space,r.local)}}function yk(r,e){return function(){this.setAttribute(r,e)}}function xk(r,e){return function(){this.setAttributeNS(r.space,r.local,e)}}function Ck(r,e){return function(){var o=e.apply(this,arguments);if(o==null)this.removeAttribute(r);else this.setAttribute(r,o)}}function bk(r,e){return function(){var o=e.apply(this,arguments);if(o==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,o)}}function Mh(r,e){var o=Ur(r);if(arguments.length<2){var a=this.node();return o.local?a.getAttributeNS(o.space,o.local):a.getAttribute(o)}return this.each((e==null?o.local?mk:gk:typeof e==="function"?o.local?bk:Ck:o.local?xk:yk)(o,e))}function Us(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function kk(r){return function(){this.style.removeProperty(r)}}function wk(r,e,o){return function(){this.style.setProperty(r,e,o)}}function Sk(r,e,o){return function(){var a=e.apply(this,arguments);if(a==null)this.style.removeProperty(r);else this.style.setProperty(r,a,o)}}function Eh(r,e,o){return arguments.length>1?this.each((e==null?kk:typeof e==="function"?Sk:wk)(r,e,o==null?"":o)):to(this.node(),r)}function to(r,e){return r.style.getPropertyValue(e)||Us(r).getComputedStyle(r,null).getPropertyValue(e)}function Tk(r){return function(){delete this[r]}}function _k(r,e){return function(){this[r]=e}}function Bk(r,e){return function(){var o=e.apply(this,arguments);if(o==null)delete this[r];else this[r]=o}}function Oh(r,e){return arguments.length>1?this.each((e==null?Tk:typeof e==="function"?Bk:_k)(r,e)):this.node()[r]}function kp(r){return r.trim().split(/^|\s+/)}function Ih(r){return r.classList||new wp(r)}function wp(r){this._node=r,this._names=kp(r.getAttribute("class")||"")}wp.prototype={add:function(r){var e=this._names.indexOf(r);if(e<0)this._names.push(r),this._node.setAttribute("class",this._names.join(" "))},remove:function(r){var e=this._names.indexOf(r);if(e>=0)this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(r){return this._names.indexOf(r)>=0}};function Sp(r,e){var o=Ih(r),a=-1,s=e.length;while(++a<s)o.add(e[a])}function Tp(r,e){var o=Ih(r),a=-1,s=e.length;while(++a<s)o.remove(e[a])}function vk(r){return function(){Sp(this,r)}}function Lk(r){return function(){Tp(this,r)}}function Fk(r,e){return function(){(e.apply(this,arguments)?Sp:Tp)(this,r)}}function $h(r,e){var o=kp(r+"");if(arguments.length<2){var a=Ih(this.node()),s=-1,n=o.length;while(++s<n)if(!a.contains(o[s]))return!1;return!0}return this.each((typeof e==="function"?Fk:e?vk:Lk)(o,e))}function Ak(){this.textContent=""}function Mk(r){return function(){this.textContent=r}}function Ek(r){return function(){var e=r.apply(this,arguments);this.textContent=e==null?"":e}}function Dh(r){return arguments.length?this.each(r==null?Ak:(typeof r==="function"?Ek:Mk)(r)):this.node().textContent}function Ok(){this.innerHTML=""}function Ik(r){return function(){this.innerHTML=r}}function $k(r){return function(){var e=r.apply(this,arguments);this.innerHTML=e==null?"":e}}function Ph(r){return arguments.length?this.each(r==null?Ok:(typeof r==="function"?$k:Ik)(r)):this.node().innerHTML}function Dk(){if(this.nextSibling)this.parentNode.appendChild(this)}function Rh(){return this.each(Dk)}function Pk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qh(){return this.each(Pk)}function Nh(r){var e=typeof r==="function"?r:zs(r);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Rk(){return null}function Wh(r,e){var o=typeof r==="function"?r:zs(r),a=e==null?Rk:typeof e==="function"?e:Ji(e);return this.select(function(){return this.insertBefore(o.apply(this,arguments),a.apply(this,arguments)||null)})}function qk(){var r=this.parentNode;if(r)r.removeChild(this)}function zh(){return this.each(qk)}function Nk(){var r=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Wk(){var r=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Hh(r){return this.select(r?Wk:Nk)}function Yh(r){return arguments.length?this.property("__data__",r):this.node().__data__}function zk(r){return function(e){r.call(this,e,this.__data__)}}function Hk(r){return r.trim().split(/^|\s+/).map(function(e){var o="",a=e.indexOf(".");if(a>=0)o=e.slice(a+1),e=e.slice(0,a);return{type:e,name:o}})}function Yk(r){return function(){var e=this.__on;if(!e)return;for(var o=0,a=-1,s=e.length,n;o<s;++o)if(n=e[o],(!r.type||n.type===r.type)&&n.name===r.name)this.removeEventListener(n.type,n.listener,n.options);else e[++a]=n;if(++a)e.length=a;else delete this.__on}}function Uk(r,e,o){return function(){var a=this.__on,s,n=zk(e);if(a){for(var h=0,l=a.length;h<l;++h)if((s=a[h]).type===r.type&&s.name===r.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=n,s.options=o),s.value=e;return}}if(this.addEventListener(r.type,n,o),s={type:r.type,name:r.name,value:e,listener:n,options:o},!a)this.__on=[s];else a.push(s)}}function Uh(r,e,o){var a=Hk(r+""),s,n=a.length,h;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,p=l.length,c;u<p;++u)for(s=0,c=l[u];s<n;++s)if((h=a[s]).type===c.type&&h.name===c.name)return c.value}return}l=e?Uk:Yk;for(s=0;s<n;++s)this.each(l(a[s],e,o));return this}function _p(r,e,o){var a=Us(r),s=a.CustomEvent;if(typeof s==="function")s=new s(e,o);else if(s=a.document.createEvent("Event"),o)s.initEvent(e,o.bubbles,o.cancelable),s.detail=o.detail;else s.initEvent(e,!1,!1);r.dispatchEvent(s)}function jk(r,e){return function(){return _p(this,r,e)}}function Gk(r,e){return function(){return _p(this,r,e.apply(this,arguments))}}function jh(r,e){return this.each((typeof e==="function"?Gk:jk)(r,e))}function*Gh(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length,h;s<n;++s)if(h=a[s])yield h}var Xh=[null];function Pe(r,e){this._groups=r,this._parents=e}function Bp(){return new Pe([[document.documentElement]],Xh)}function Xk(){return this}Pe.prototype=Bp.prototype={constructor:Pe,select:uh,selectAll:dh,selectChild:ph,selectChildren:gh,filter:mh,data:Ch,enter:yh,exit:bh,join:kh,merge:wh,selection:Xk,order:Sh,sort:Th,call:_h,nodes:Bh,node:vh,size:Lh,empty:Fh,each:Ah,attr:Mh,style:Eh,property:Oh,classed:$h,text:Dh,html:Ph,raise:Rh,lower:qh,append:Nh,insert:Wh,remove:zh,clone:Hh,datum:Yh,on:Uh,dispatch:jh,[Symbol.iterator]:Gh};var vi=Bp;function y(r){return typeof r==="string"?new Pe([[document.querySelector(r)]],[document.documentElement]):new Pe([[r]],Xh)}function Jr(r,e,o){r.prototype=e.prototype=o,o.constructor=r}function oi(r,e){var o=Object.create(r.prototype);for(var a in e)o[a]=e[a];return o}function ea(){}var js=0.7,Tn=1/js,Eo="\\s*([+-]?\\d+)\\s*",Gs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${Eo},${Eo},${Eo}\\)$`),Zk=new RegExp(`^rgb\\(${jr},${jr},${jr}\\)$`),Qk=new RegExp(`^rgba\\(${Eo},${Eo},${Eo},${Gs}\\)$`),Jk=new RegExp(`^rgba\\(${jr},${jr},${jr},${Gs}\\)$`),t1=new RegExp(`^hsl\\(${Gs},${jr},${jr}\\)$`),e1=new RegExp(`^hsla\\(${Gs},${jr},${jr},${Gs}\\)$`),vp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Jr(ea,Vn,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Lp,formatHex:Lp,formatHex8:r1,formatHsl:i1,formatRgb:Fp,toString:Fp});function Lp(){return this.rgb().formatHex()}function r1(){return this.rgb().formatHex8()}function i1(){return $p(this).formatHsl()}function Fp(){return this.rgb().formatRgb()}function Vn(r){var e,o;return r=(r+"").trim().toLowerCase(),(e=Vk.exec(r))?(o=e[1].length,e=parseInt(e[1],16),o===6?Ap(e):o===3?new Mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):o===8?wn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):o===4?wn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Kk.exec(r))?new Mt(e[1],e[2],e[3],1):(e=Zk.exec(r))?new Mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qk.exec(r))?wn(e[1],e[2],e[3],e[4]):(e=Jk.exec(r))?wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=t1.exec(r))?Op(e[1],e[2]/100,e[3]/100,1):(e=e1.exec(r))?Op(e[1],e[2]/100,e[3]/100,e[4]):vp.hasOwnProperty(r)?Ap(vp[r]):r==="transparent"?new Mt(NaN,NaN,NaN,0):null}function Ap(r){return new Mt(r>>16&255,r>>8&255,r&255,1)}function wn(r,e,o,a){if(a<=0)r=e=o=NaN;return new Mt(r,e,o,a)}function ic(r){if(!(r instanceof ea))r=Vn(r);if(!r)return new Mt;return r=r.rgb(),new Mt(r.r,r.g,r.b,r.opacity)}function ls(r,e,o,a){return arguments.length===1?ic(r):new Mt(r,e,o,a==null?1:a)}function Mt(r,e,o,a){this.r=+r,this.g=+e,this.b=+o,this.opacity=+a}Jr(Mt,ls,oi(ea,{brighter(r){return r=r==null?Tn:Math.pow(Tn,r),new Mt(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?js:Math.pow(js,r),new Mt(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Mt(lo(this.r),lo(this.g),lo(this.b),_n(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Mp,formatHex:Mp,formatHex8:o1,formatRgb:Ep,toString:Ep}));function Mp(){return`#${no(this.r)}${no(this.g)}${no(this.b)}`}function o1(){return`#${no(this.r)}${no(this.g)}${no(this.b)}${no((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ep(){let r=_n(this.opacity);return`${r===1?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${r===1?")":`, ${r})`}`}function _n(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function lo(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function no(r){return r=lo(r),(r<16?"0":"")+r.toString(16)}function Op(r,e,o,a){if(a<=0)r=e=o=NaN;else if(o<=0||o>=1)r=e=NaN;else if(e<=0)r=NaN;return new Dr(r,e,o,a)}function $p(r){if(r instanceof Dr)return new Dr(r.h,r.s,r.l,r.opacity);if(!(r instanceof ea))r=Vn(r);if(!r)return new Dr;if(r instanceof Dr)return r;r=r.rgb();var e=r.r/255,o=r.g/255,a=r.b/255,s=Math.min(e,o,a),n=Math.max(e,o,a),h=NaN,l=n-s,u=(n+s)/2;if(l){if(e===n)h=(o-a)/l+(o<a)*6;else if(o===n)h=(a-e)/l+2;else h=(e-o)/l+4;l/=u<0.5?n+s:2-n-s,h*=60}else l=u>0&&u<1?0:h;return new Dr(h,l,u,r.opacity)}function Dp(r,e,o,a){return arguments.length===1?$p(r):new Dr(r,e,o,a==null?1:a)}function Dr(r,e,o,a){this.h=+r,this.s=+e,this.l=+o,this.opacity=+a}Jr(Dr,Dp,oi(ea,{brighter(r){return r=r==null?Tn:Math.pow(Tn,r),new Dr(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?js:Math.pow(js,r),new Dr(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,o=this.l,a=o+(o<0.5?o:1-o)*e,s=2*o-a;return new Mt(Vh(r>=240?r-240:r+120,s,a),Vh(r,s,a),Vh(r<120?r+240:r-120,s,a),this.opacity)},clamp(){return new Dr(Ip(this.h),Sn(this.s),Sn(this.l),_n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let r=_n(this.opacity);return`${r===1?"hsl(":"hsla("}${Ip(this.h)}, ${Sn(this.s)*100}%, ${Sn(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Ip(r){return r=(r||0)%360,r<0?r+360:r}function Sn(r){return Math.max(0,Math.min(1,r||0))}function Vh(r,e,o){return(r<60?e+(o-e)*r/60:r<180?o:r<240?e+(o-e)*(240-r)/60:e)*255}function Kh(r,e,o,a,s){var n=r*r,h=n*r;return((1-3*r+3*n-h)*e+(4-6*n+3*h)*o+(1+3*r+3*n-3*h)*a+h*s)/6}function Zh(r){var e=r.length-1;return function(o){var a=o<=0?o=0:o>=1?(o=1,e-1):Math.floor(o*e),s=r[a],n=r[a+1],h=a>0?r[a-1]:2*s-n,l=a<e-1?r[a+2]:2*n-s;return Kh((o-a/e)*e,h,s,n,l)}}function Qh(r){var e=r.length;return function(o){var a=Math.floor(((o%=1)<0?++o:o)*e),s=r[(a+e-1)%e],n=r[a%e],h=r[(a+1)%e],l=r[(a+2)%e];return Kh((o-a/e)*e,s,n,h,l)}}var si=(r)=>()=>r;function Pp(r,e){return function(o){return r+o*e}}function s1(r,e,o){return r=Math.pow(r,o),e=Math.pow(e,o)-r,o=1/o,function(a){return Math.pow(r+a*e,o)}}function Oc(r,e){var o=e-r;return o?Pp(r,o>180||o<-180?o-360*Math.round(o/360):o):si(isNaN(r)?e:r)}function Rp(r){return(r=+r)===1?Sr:function(e,o){return o-e?s1(e,o,r):si(isNaN(e)?o:e)}}function Sr(r,e){var o=e-r;return o?Pp(r,o):si(isNaN(r)?e:r)}var ga=function r(e){var o=Rp(e);function a(s,n){var h=o((s=ls(s)).r,(n=ls(n)).r),l=o(s.g,n.g),u=o(s.b,n.b),p=Sr(s.opacity,n.opacity);return function(c){return s.r=h(c),s.g=l(c),s.b=u(c),s.opacity=p(c),s+""}}return a.gamma=r,a}(1);function qp(r){return function(e){var o=e.length,a=Array(o),s=Array(o),n=Array(o),h,l;for(h=0;h<o;++h)l=ls(e[h]),a[h]=l.r||0,s[h]=l.g||0,n[h]=l.b||0;return a=r(a),s=r(s),n=r(n),l.opacity=1,function(u){return l.r=a(u),l.g=s(u),l.b=n(u),l+""}}}var a1=qp(Zh),n1=qp(Qh);function St(r,e){return r=+r,e=+e,function(o){return r*(1-o)+e*o}}var yc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jh=new RegExp(yc.source,"g");function l1(r){return function(){return r}}function h1(r){return function(e){return r(e)+""}}function ci(r,e){var o=yc.lastIndex=Jh.lastIndex=0,a,s,n,h=-1,l=[],u=[];r=r+"",e=e+"";while((a=yc.exec(r))&&(s=Jh.exec(e))){if((n=s.index)>o)if(n=e.slice(o,n),l[h])l[h]+=n;else l[++h]=n;if((a=a[0])===(s=s[0]))if(l[h])l[h]+=s;else l[++h]=s;else l[++h]=null,u.push({i:h,x:St(a,s)});o=Jh.lastIndex}if(o<e.length)if(n=e.slice(o),l[h])l[h]+=n;else l[++h]=n;return l.length<2?u[0]?h1(u[0].x):l1(e):(e=u.length,function(p){for(var c=0,m;c<e;++c)l[(m=u[c]).i]=m.x(p);return l.join("")})}var Np=180/Math.PI,Bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fn(r,e,o,a,s,n){var h,l,u;if(h=Math.sqrt(r*r+e*e))r/=h,e/=h;if(u=r*o+e*a)o-=r*u,a-=e*u;if(l=Math.sqrt(o*o+a*a))o/=l,a/=l,u/=l;if(r*a<e*o)r=-r,e=-e,u=-u,h=-h;return{translateX:s,translateY:n,rotate:Math.atan2(e,r)*Np,skewX:Math.atan(u)*Np,scaleX:h,scaleY:l}}var An;function Wp(r){let e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return e.isIdentity?Bn:Fn(e.a,e.b,e.c,e.d,e.e,e.f)}function zp(r){if(r==null)return Bn;if(!An)An=document.createElementNS("http://www.w3.org/2000/svg","g");if(An.setAttribute("transform",r),!(r=An.transform.baseVal.consolidate()))return Bn;return r=r.matrix,Fn(r.a,r.b,r.c,r.d,r.e,r.f)}function Hp(r,e,o,a){function s(p){return p.length?p.pop()+" ":""}function n(p,c,m,x,w,_){if(p!==m||c!==x){var v=w.push("translate(",null,e,null,o);_.push({i:v-4,x:St(p,m)},{i:v-2,x:St(c,x)})}else if(m||x)w.push("translate("+m+e+x+o)}function h(p,c,m,x){if(p!==c){if(p-c>180)c+=360;else if(c-p>180)p+=360;x.push({i:m.push(s(m)+"rotate(",null,a)-2,x:St(p,c)})}else if(c)m.push(s(m)+"rotate("+c+a)}function l(p,c,m,x){if(p!==c)x.push({i:m.push(s(m)+"skewX(",null,a)-2,x:St(p,c)});else if(c)m.push(s(m)+"skewX("+c+a)}function u(p,c,m,x,w,_){if(p!==m||c!==x){var v=w.push(s(w)+"scale(",null,",",null,")");_.push({i:v-4,x:St(p,m)},{i:v-2,x:St(c,x)})}else if(m!==1||x!==1)w.push(s(w)+"scale("+m+","+x+")")}return function(p,c){var m=[],x=[];return p=r(p),c=r(c),n(p.translateX,p.translateY,c.translateX,c.translateY,m,x),h(p.rotate,c.rotate,m,x),l(p.skewX,c.skewX,m,x),u(p.scaleX,p.scaleY,c.scaleX,c.scaleY,m,x),p=c=null,function(w){var _=-1,v=x.length,E;while(++_<v)m[(E=x[_]).i]=E.x(w);return m.join("")}}}var xc=Hp(Wp,"px, ","px)","deg)"),Cc=Hp(zp,", ",")",")");var hs=0,Vs=0,Xs=0,Up=1000,En,Ks,On=0,ho=0,In=0,Zs=typeof performance==="object"&&performance.now?performance:Date,jp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function ia(){return ho||(jp(c1),ho=Zs.now()+In)}function c1(){ho=0}function Qs(){this._call=this._time=this._next=null}Qs.prototype=$n.prototype={constructor:Qs,restart:function(r,e,o){if(typeof r!=="function")throw TypeError("callback is not a function");if(o=(o==null?ia():+o)+(e==null?0:+e),!this._next&&Ks!==this){if(Ks)Ks._next=this;else En=this;Ks=this}this._call=r,this._time=o,bc()},stop:function(){if(this._call)this._call=null,this._time=1/0,bc()}};function $n(r,e,o){var a=new Qs;return a.restart(r,e,o),a}function Gp(){ia(),++hs;var r=En,e;while(r){if((e=ho-r._time)>=0)r._call.call(void 0,e);r=r._next}--hs}function Yp(){ho=(On=Zs.now())+In,hs=Vs=0;try{Gp()}finally{hs=0,f1(),ho=0}}function u1(){var r=Zs.now(),e=r-On;if(e>Up)In-=e,On=r}function f1(){var r,e=En,o,a=1/0;while(e)if(e._call){if(a>e._time)a=e._time;r=e,e=e._next}else o=e._next,e._next=null,e=r?r._next=o:En=o;Ks=r,bc(a)}function bc(r){if(hs)return;if(Vs)Vs=clearTimeout(Vs);var e=r-ho;if(e>24){if(r<1/0)Vs=setTimeout(Yp,r-Zs.now()-In);if(Xs)Xs=clearInterval(Xs)}else{if(!Xs)On=Zs.now(),Xs=setInterval(u1,Up);hs=1,jp(Yp)}}function oa(r,e,o){var a=new Qs;return e=e==null?0:+e,a.restart((s)=>{a.stop(),r(s+e)},e,o),a}var d1=hh("start","end","cancel","interrupt"),p1=[],Kp=0,Xp=1,Pn=2,Dn=3,Vp=4,Rn=5,sa=6;function Li(r,e,o,a,s,n){var h=r.__transition;if(!h)r.__transition={};else if(o in h)return;g1(r,o,{name:e,index:a,group:s,on:d1,tween:p1,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Kp})}function la(r,e){var o=Ve(r,e);if(o.state>Kp)throw Error("too late; already scheduled");return o}function tr(r,e){var o=Ve(r,e);if(o.state>Dn)throw Error("too late; already running");return o}function Ve(r,e){var o=r.__transition;if(!o||!(o=o[e]))throw Error("transition not found");return o}function g1(r,e,o){var a=r.__transition,s;a[e]=o,o.timer=$n(n,0,o.time);function n(p){if(o.state=Xp,o.timer.restart(h,o.delay,o.time),o.delay<=p)h(p-o.delay)}function h(p){var c,m,x,w;if(o.state!==Xp)return u();for(c in a){if(w=a[c],w.name!==o.name)continue;if(w.state===Dn)return oa(h);if(w.state===Vp)w.state=sa,w.timer.stop(),w.on.call("interrupt",r,r.__data__,w.index,w.group),delete a[c];else if(+c<e)w.state=sa,w.timer.stop(),w.on.call("cancel",r,r.__data__,w.index,w.group),delete a[c]}if(oa(function(){if(o.state===Dn)o.state=Vp,o.timer.restart(l,o.delay,o.time),l(p)}),o.state=Pn,o.on.call("start",r,r.__data__,o.index,o.group),o.state!==Pn)return;o.state=Dn,s=Array(x=o.tween.length);for(c=0,m=-1;c<x;++c)if(w=o.tween[c].value.call(r,r.__data__,o.index,o.group))s[++m]=w;s.length=m+1}function l(p){var c=p<o.duration?o.ease.call(null,p/o.duration):(o.timer.restart(u),o.state=Rn,1),m=-1,x=s.length;while(++m<x)s[m].call(r,c);if(o.state===Rn)o.on.call("end",r,r.__data__,o.index,o.group),u()}function u(){o.state=sa,o.timer.stop(),delete a[e];for(var p in a)return;delete r.__transition}}function ca(r,e){var o=r.__transition,a,s,n=!0,h;if(!o)return;e=e==null?null:e+"";for(h in o){if((a=o[h]).name!==e){n=!1;continue}s=a.state>Pn&&a.state<Rn,a.state=sa,a.timer.stop(),a.on.call(s?"interrupt":"cancel",r,r.__data__,a.index,a.group),delete o[h]}if(n)delete r.__transition}function kc(r){return this.each(function(){ca(this,r)})}function m1(r,e){var o,a;return function(){var s=tr(this,r),n=s.tween;if(n!==o){a=o=n;for(var h=0,l=a.length;h<l;++h)if(a[h].name===e){a=a.slice(),a.splice(h,1);break}}s.tween=a}}function y1(r,e,o){var a,s;if(typeof o!=="function")throw Error();return function(){var n=tr(this,r),h=n.tween;if(h!==a){s=(a=h).slice();for(var l={name:e,value:o},u=0,p=s.length;u<p;++u)if(s[u].name===e){s[u]=l;break}if(u===p)s.push(l)}n.tween=s}}function wc(r,e){var o=this._id;if(r+="",arguments.length<2){var a=Ve(this.node(),o).tween;for(var s=0,n=a.length,h;s<n;++s)if((h=a[s]).name===r)return h.value;return null}return this.each((e==null?m1:y1)(o,r,e))}function us(r,e,o){var a=r._id;return r.each(function(){var s=tr(this,a);(s.value||(s.value={}))[e]=o.apply(this,arguments)}),function(s){return Ve(s,a).value[e]}}function ua(r,e){var o;return(typeof e==="number"?St:e instanceof Vn?ga:(o=Vn(e))?(e=o,ga):ci)(r,e)}function x1(r){return function(){this.removeAttribute(r)}}function C1(r){return function(){this.removeAttributeNS(r.space,r.local)}}function b1(r,e,o){var a,s=o+"",n;return function(){var h=this.getAttribute(r);return h===s?null:h===a?n:n=e(a=h,o)}}function k1(r,e,o){var a,s=o+"",n;return function(){var h=this.getAttributeNS(r.space,r.local);return h===s?null:h===a?n:n=e(a=h,o)}}function w1(r,e,o){var a,s,n;return function(){var h,l=o(this),u;if(l==null)return void this.removeAttribute(r);return h=this.getAttribute(r),u=l+"",h===u?null:h===a&&u===s?n:(s=u,n=e(a=h,l))}}function S1(r,e,o){var a,s,n;return function(){var h,l=o(this),u;if(l==null)return void this.removeAttributeNS(r.space,r.local);return h=this.getAttributeNS(r.space,r.local),u=l+"",h===u?null:h===a&&u===s?n:(s=u,n=e(a=h,l))}}function Sc(r,e){var o=Ur(r),a=o==="transform"?Cc:ua;return this.attrTween(r,typeof e==="function"?(o.local?S1:w1)(o,a,us(this,"attr."+r,e)):e==null?(o.local?C1:x1)(o):(o.local?k1:b1)(o,a,e))}function T1(r,e){return function(o){this.setAttribute(r,e.call(this,o))}}function _1(r,e){return function(o){this.setAttributeNS(r.space,r.local,e.call(this,o))}}function B1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&_1(r,n);return o}return s._value=e,s}function v1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&T1(r,n);return o}return s._value=e,s}function Tc(r,e){var o="attr."+r;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!=="function")throw Error();var a=Ur(r);return this.tween(o,(a.local?B1:v1)(a,e))}function L1(r,e){return function(){la(this,r).delay=+e.apply(this,arguments)}}function F1(r,e){return e=+e,function(){la(this,r).delay=e}}function _c(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?L1:F1)(e,r)):Ve(this.node(),e).delay}function A1(r,e){return function(){tr(this,r).duration=+e.apply(this,arguments)}}function M1(r,e){return e=+e,function(){tr(this,r).duration=e}}function vc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?A1:M1)(e,r)):Ve(this.node(),e).duration}function E1(r,e){if(typeof e!=="function")throw Error();return function(){tr(this,r).ease=e}}function Ac(r){var e=this._id;return arguments.length?this.each(E1(e,r)):Ve(this.node(),e).ease}function O1(r,e){return function(){var o=e.apply(this,arguments);if(typeof o!=="function")throw Error();tr(this,r).ease=o}}function Ec(r){if(typeof r!=="function")throw Error();return this.each(O1(this._id,r))}function Wc(r){if(typeof r!=="function")r=Ao(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],h=n.length,l=a[s]=[],u,p=0;p<h;++p)if((u=n[p])&&r.call(u,u.__data__,p,n))l.push(u);return new nr(a,this._parents,this._name,this._id)}function Yc(r){if(r._id!==this._id)throw Error();for(var e=this._groups,o=r._groups,a=e.length,s=o.length,n=Math.min(a,s),h=Array(a),l=0;l<n;++l)for(var u=e[l],p=o[l],c=u.length,m=h[l]=Array(c),x,w=0;w<c;++w)if(x=u[w]||p[w])m[w]=x;for(;l<a;++l)h[l]=e[l];return new nr(h,this._parents,this._name,this._id)}function I1(r){return(r+"").trim().split(/^|\s+/).every(function(e){var o=e.indexOf(".");if(o>=0)e=e.slice(0,o);return!e||e==="start"})}function $1(r,e,o){var a,s,n=I1(e)?la:tr;return function(){var h=n(this,r),l=h.on;if(l!==a)(s=(a=l).copy()).on(e,o);h.on=s}}function Gc(r,e){var o=this._id;return arguments.length<2?Ve(this.node(),o).on.on(r):this.each($1(o,r,e))}function D1(r){return function(){var e=this.parentNode;for(var o in this.__transition)if(+o!==r)return;if(e)e.removeChild(this)}}function Xc(){return this.on("end.remove",D1(this._id))}function Kc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=Ji(r);for(var a=this._groups,s=a.length,n=Array(s),h=0;h<s;++h)for(var l=a[h],u=l.length,p=n[h]=Array(u),c,m,x=0;x<u;++x)if((c=l[x])&&(m=r.call(c,c.__data__,x,l))){if("__data__"in c)m.__data__=c.__data__;p[x]=m,Li(p[x],e,o,x,p,Ve(c,o))}return new nr(n,this._parents,e,o)}function Zc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=Lo(r);for(var a=this._groups,s=a.length,n=[],h=[],l=0;l<s;++l)for(var u=a[l],p=u.length,c,m=0;m<p;++m)if(c=u[m]){for(var x=r.call(c,c.__data__,m,u),w,_=Ve(c,o),v=0,E=x.length;v<E;++v)if(w=x[v])Li(w,e,o,v,x,_);n.push(x),h.push(c)}return new nr(n,h,e,o)}var P1=vi.prototype.constructor;function Qc(){return new P1(this._groups,this._parents)}function R1(r,e){var o,a,s;return function(){var n=to(this,r),h=(this.style.removeProperty(r),to(this,r));return n===h?null:n===o&&h===a?s:s=e(o=n,a=h)}}function Zp(r){return function(){this.style.removeProperty(r)}}function q1(r,e,o){var a,s=o+"",n;return function(){var h=to(this,r);return h===s?null:h===a?n:n=e(a=h,o)}}function N1(r,e,o){var a,s,n;return function(){var h=to(this,r),l=o(this),u=l+"";if(l==null)u=l=(this.style.removeProperty(r),to(this,r));return h===u?null:h===a&&u===s?n:(s=u,n=e(a=h,l))}}function W1(r,e){var o,a,s,n="style."+e,h="end."+n,l;return function(){var u=tr(this,r),p=u.on,c=u.value[n]==null?l||(l=Zp(e)):void 0;if(p!==o||s!==c)(a=(o=p).copy()).on(h,s=c);u.on=a}}function Jc(r,e,o){var a=(r+="")==="transform"?xc:ua;return e==null?this.styleTween(r,R1(r,a)).on("end.style."+r,Zp(r)):typeof e==="function"?this.styleTween(r,N1(r,a,us(this,"style."+r,e))).each(W1(this._id,r)):this.styleTween(r,q1(r,a,e),o).on("end.style."+r,null)}function z1(r,e,o){return function(a){this.style.setProperty(r,e.call(this,a),o)}}function H1(r,e,o){var a,s;function n(){var h=e.apply(this,arguments);if(h!==s)a=(s=h)&&z1(r,h,o);return a}return n._value=e,n}function tu(r,e,o){var a="style."+(r+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!=="function")throw Error();return this.tween(a,H1(r,e,o==null?"":o))}function Y1(r){return function(){this.textContent=r}}function U1(r){return function(){var e=r(this);this.textContent=e==null?"":e}}function eu(r){return this.tween("text",typeof r==="function"?U1(us(this,"text",r)):Y1(r==null?"":r+""))}function j1(r){return function(e){this.textContent=r.call(this,e)}}function G1(r){var e,o;function a(){var s=r.apply(this,arguments);if(s!==o)e=(o=s)&&j1(s);return e}return a._value=r,a}function ru(r){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!=="function")throw Error();return this.tween(e,G1(r))}function iu(){var r=this._name,e=this._id,o=qn();for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var h=a[n],l=h.length,u,p=0;p<l;++p)if(u=h[p]){var c=Ve(u,e);Li(u,r,o,p,h,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new nr(a,this._parents,r,o)}function ou(){var r,e,o=this,a=o._id,s=o.size();return new Promise(function(n,h){var l={value:h},u={value:function(){if(--s===0)n()}};if(o.each(function(){var p=tr(this,a),c=p.on;if(c!==r)e=(r=c).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(u);p.on=e}),s===0)n()})}var X1=0;function nr(r,e,o,a){this._groups=r,this._parents=e,this._name=o,this._id=a}function Qp(r){return vi().transition(r)}function qn(){return++X1}var Fi=vi.prototype;nr.prototype=Qp.prototype={constructor:nr,select:Kc,selectAll:Zc,selectChild:Fi.selectChild,selectChildren:Fi.selectChildren,filter:Wc,merge:Yc,selection:Qc,transition:iu,call:Fi.call,nodes:Fi.nodes,node:Fi.node,size:Fi.size,empty:Fi.empty,each:Fi.each,on:Gc,attr:Sc,attrTween:Tc,style:Jc,styleTween:tu,text:eu,textTween:ru,remove:Xc,tween:wc,delay:_c,duration:vc,ease:Ac,easeVarying:Ec,end:ou,[Symbol.iterator]:Fi[Symbol.iterator]};function zn(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var V1={time:null,delay:0,duration:250,ease:zn};function K1(r,e){var o;while(!(o=r.__transition)||!(o=o[e]))if(!(r=r.parentNode))throw Error(`transition ${e} not found`);return o}function su(r){var e,o;if(r instanceof nr)e=r._id,r=r._name;else e=qn(),(o=V1).time=ia(),r=r==null?null:r+"";for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var h=a[n],l=h.length,u,p=0;p<l;++p)if(u=h[p])Li(u,r,e,p,h,o||K1(u,e));return new nr(a,this._parents,r,e)}vi.prototype.interrupt=kc;vi.prototype.transition=su;var{abs:tE,max:eE,min:rE}=Math;function Jp(r){return[+r[0],+r[1]]}function Z1(r){return[Jp(r[0]),Jp(r[1])]}var iE={name:"x",handles:["w","e"].map(au),input:function(r,e){return r==null?null:[[+r[0],e[0][1]],[+r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},oE={name:"y",handles:["n","s"].map(au),input:function(r,e){return r==null?null:[[e[0][0],+r[0]],[e[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},sE={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(au),input:function(r){return r==null?null:Z1(r)},output:function(r){return r}};function au(r){return{type:r}}var nu=Math.PI,lu=2*nu;var Q1=lu-0.000001;function tg(r){this._+=r[0];for(let e=1,o=r.length;e<o;++e)this._+=arguments[e]+r[e]}function J1(r){let e=Math.floor(r);if(!(e>=0))throw Error(`invalid digits: ${r}`);if(e>15)return tg;let o=10**e;return function(a){this._+=a[0];for(let s=1,n=a.length;s<n;++s)this._+=Math.round(arguments[s]*o)/o+a[s]}}class fs{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?tg:J1(r)}moveTo(r,e){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._append`Z`}lineTo(r,e){this._append`L${this._x1=+r},${this._y1=+e}`}quadraticCurveTo(r,e,o,a){this._append`Q${+r},${+e},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(r,e,o,a,s,n){this._append`C${+r},${+e},${+o},${+a},${this._x1=+s},${this._y1=+n}`}arcTo(r,e,o,a,s){if(r=+r,e=+e,o=+o,a=+a,s=+s,s<0)throw Error(`negative radius: ${s}`);let n=this._x1,h=this._y1,l=o-r,u=a-e,p=n-r,c=h-e,m=p*p+c*c;if(this._x1===null)this._append`M${this._x1=r},${this._y1=e}`;else if(!(m>0.000001));else if(!(Math.abs(c*l-u*p)>0.000001)||!s)this._append`L${this._x1=r},${this._y1=e}`;else{let x=o-n,w=a-h,_=l*l+u*u,v=x*x+w*w,E=Math.sqrt(_),W=Math.sqrt(m),U=s*Math.tan((nu-Math.acos((_+m-v)/(2*E*W)))/2),V=U/W,Z=U/E;if(Math.abs(V-1)>0.000001)this._append`L${r+V*p},${e+V*c}`;this._append`A${s},${s},0,0,${+(c*x>p*w)},${this._x1=r+Z*l},${this._y1=e+Z*u}`}}arc(r,e,o,a,s,n){if(r=+r,e=+e,o=+o,n=!!n,o<0)throw Error(`negative radius: ${o}`);let h=o*Math.cos(a),l=o*Math.sin(a),u=r+h,p=e+l,c=1^n,m=n?a-s:s-a;if(this._x1===null)this._append`M${u},${p}`;else if(Math.abs(this._x1-u)>0.000001||Math.abs(this._y1-p)>0.000001)this._append`L${u},${p}`;if(!o)return;if(m<0)m=m%lu+lu;if(m>Q1)this._append`A${o},${o},0,1,${c},${r-h},${e-l}A${o},${o},0,1,${c},${this._x1=u},${this._y1=p}`;else if(m>0.000001)this._append`A${o},${o},0,${+(m>=nu)},${c},${this._x1=r+o*Math.cos(s)},${this._y1=e+o*Math.sin(s)}`}rect(r,e,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function eg(){return new fs}eg.prototype=fs.prototype;function we(r){return function(){return r}}var{abs:oc,atan2:Rt,cos:ta,max:$c,min:Oo,sin:Gn,sqrt:va}=Math,At=0.000000000001,li=Math.PI,ji=li/2,ya=2*li;function Bc(r){return r>1?0:r<-1?li:Math.acos(r)}function sc(r){return r>=1?ji:r<=-1?-ji:Math.asin(r)}function ba(r){let e=3;return r.digits=function(o){if(!arguments.length)return e;if(o==null)e=null;else{let a=Math.floor(o);if(!(a>=0))throw RangeError(`invalid digits: ${o}`);e=a}return r},()=>new fs(e)}var Fc=Array.prototype.slice;function qi(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function rg(r){this._context=r}rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e);break}}};function Gr(r){return new rg(r)}function $o(r){return r[0]}function Bo(r){return r[1]}function xa(r,e){var o=we(!0),a=null,s=Gr,n=null,h=ba(l);r=typeof r==="function"?r:r===void 0?$o:we(r),e=typeof e==="function"?e:e===void 0?Bo:we(e);function l(u){var p,c=(u=qi(u)).length,m,x=!1,w;if(a==null)n=s(w=h());for(p=0;p<=c;++p){if(!(p<c&&o(m=u[p],p,u))===x)if(x=!x)n.lineStart();else n.lineEnd();if(x)n.point(+r(m,p,u),+e(m,p,u))}if(w)return n=null,w+""||null}return l.x=function(u){return arguments.length?(r=typeof u==="function"?u:we(+u),l):r},l.y=function(u){return arguments.length?(e=typeof u==="function"?u:we(+u),l):e},l.defined=function(u){return arguments.length?(o=typeof u==="function"?u:we(!!u),l):o},l.curve=function(u){return arguments.length?(s=u,a!=null&&(n=s(a)),l):s},l.context=function(u){return arguments.length?(u==null?a=n=null:n=s(a=u),l):a},l}class hu{constructor(r,e){this._context=r,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(r,e){switch(r=+r,e=+e,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(r,e);else this._context.moveTo(r,e);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,e,r,e);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,r,this._y0,r,e);break}}this._x0=r,this._y0=e}}function _a(r){return new hu(r,!0)}function fa(r){return new hu(r,!1)}function _r(){}function ds(r,e,o){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+e)/6,(r._y0+4*r._y1+o)/6)}function da(r){this._context=r}da.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ds(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function co(r){return new da(r)}function ig(r){this._context=r}ig.prototype={areaStart:_r,areaEnd:_r,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Hn(r){return new ig(r)}function og(r){this._context=r}og.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+r)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(o,a):this._context.moveTo(o,a);break;case 3:this._point=4;default:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Yn(r){return new og(r)}function sg(r,e){this._basis=new da(r),this._beta=e}sg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,o=r.length-1;if(o>0){var a=r[0],s=e[0],n=r[o]-a,h=e[o]-s,l=-1,u;while(++l<=o)u=l/o,this._basis.point(this._beta*r[l]+(1-this._beta)*(a+u*n),this._beta*e[l]+(1-this._beta)*(s+u*h))}this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var cu=function r(e){function o(a){return e===1?new da(a):new sg(a,e)}return o.beta=function(a){return r(+a)},o}(0.85);function ps(r,e,o){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-e),r._y2+r._k*(r._y1-o),r._x2,r._y2)}function Un(r,e){this._context=r,this._k=(1-e)/6}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ps(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:ps(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pa=function r(e){function o(a){return new Un(a,e)}return o.tension=function(a){return r(+a)},o}(0);function jn(r,e){this._context=r,this._k=(1-e)/6}jn.prototype={areaStart:_r,areaEnd:_r,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:ps(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uu=function r(e){function o(a){return new jn(a,e)}return o.tension=function(a){return r(+a)},o}(0);function Xn(r,e){this._context=r,this._k=(1-e)/6}Xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ps(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fu=function r(e){function o(a){return new Xn(a,e)}return o.tension=function(a){return r(+a)},o}(0);function ma(r,e,o){var{_x1:a,_y1:s,_x2:n,_y2:h}=r;if(r._l01_a>At){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,u=3*r._l01_a*(r._l01_a+r._l12_a);a=(a*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/u,s=(s*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/u}if(r._l23_a>At){var p=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,c=3*r._l23_a*(r._l23_a+r._l12_a);n=(n*p+r._x1*r._l23_2a-e*r._l12_2a)/c,h=(h*p+r._y1*r._l23_2a-o*r._l12_2a)/c}r._context.bezierCurveTo(a,s,n,h,r._x2,r._y2)}function ag(r,e){this._context=r,this._alpha=e}ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ma(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ta=function r(e){function o(a){return e?new ag(a,e):new Un(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function ng(r,e){this._context=r,this._alpha=e}ng.prototype={areaStart:_r,areaEnd:_r,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:ma(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var du=function r(e){function o(a){return e?new ng(a,e):new jn(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function lg(r,e){this._context=r,this._alpha=e}lg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ma(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pu=function r(e){function o(a){return e?new lg(a,e):new Xn(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function hg(r){this._context=r}hg.prototype={areaStart:_r,areaEnd:_r,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(r,e){if(r=+r,e=+e,this._point)this._context.lineTo(r,e);else this._point=1,this._context.moveTo(r,e)}};function Kn(r){return new hg(r)}function cg(r){return r<0?-1:1}function ug(r,e,o){var a=r._x1-r._x0,s=e-r._x1,n=(r._y1-r._y0)/(a||s<0&&-0),h=(o-r._y1)/(s||a<0&&-0),l=(n*s+h*a)/(a+s);return(cg(n)+cg(h))*Math.min(Math.abs(n),Math.abs(h),0.5*Math.abs(l))||0}function fg(r,e){var o=r._x1-r._x0;return o?(3*(r._y1-r._y0)/o-e)/2:e}function gu(r,e,o){var{_x0:a,_y0:s,_x1:n,_y1:h}=r,l=(n-a)/3;r._context.bezierCurveTo(a+l,s+l*e,n-l,h-l*o,n,h)}function Zn(r){this._context=r}Zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gu(this,this._t0,fg(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){var o=NaN;if(r=+r,e=+e,r===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,gu(this,fg(this,o=ug(this,r,e)),o);break;default:gu(this,this._t0,o=ug(this,r,e));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=o}};function dg(r){this._context=new pg(r)}(dg.prototype=Object.create(Zn.prototype)).point=function(r,e){Zn.prototype.point.call(this,e,r)};function pg(r){this._context=r}pg.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,o,a,s,n){this._context.bezierCurveTo(e,r,a,o,n,s)}};function Ba(r){return new Zn(r)}function La(r){return new dg(r)}function mg(r){this._context=r}mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,o=r.length;if(o)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),o===2)this._context.lineTo(r[1],e[1]);else{var a=gg(r),s=gg(e);for(var n=0,h=1;h<o;++n,++h)this._context.bezierCurveTo(a[0][n],s[0][n],a[1][n],s[1][n],r[h],e[h])}if(this._line||this._line!==0&&o===1)this._context.closePath();this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}};function gg(r){var e,o=r.length-1,a,s=Array(o),n=Array(o),h=Array(o);s[0]=0,n[0]=2,h[0]=r[0]+2*r[1];for(e=1;e<o-1;++e)s[e]=1,n[e]=4,h[e]=4*r[e]+2*r[e+1];s[o-1]=2,n[o-1]=7,h[o-1]=8*r[o-1]+r[o];for(e=1;e<o;++e)a=s[e]/n[e-1],n[e]-=a,h[e]-=a*h[e-1];s[o-1]=h[o-1]/n[o-1];for(e=o-2;e>=0;--e)s[e]=(h[e]-s[e+1])/n[e];n[o-1]=(r[o]+s[o-1])/2;for(e=0;e<o-1;++e)n[e]=2*r[e+1]-s[e+1];return[s,n]}function gs(r){return new mg(r)}function Qn(r,e){this._context=r,this._t=e}Qn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var o=this._x*(1-this._t)+r*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,e)}break}}this._x=r,this._y=e}};function ms(r){return new Qn(r,0.5)}function Fa(r){return new Qn(r,0)}function Aa(r){return new Qn(r,1)}function eo(r,e,o){this.k=r,this.x=e,this.y=o}eo.prototype={constructor:eo,scale:function(r){return r===1?this:new eo(this.k*r,this.x,this.y)},translate:function(r,e){return r===0&e===0?this:new eo(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mu=new eo(1,0,0);yu.prototype=eo.prototype;function yu(r){while(!r.__zoom)if(!(r=r.parentNode))return mu;return r.__zoom}var te=t((r)=>{let{securityLevel:e}=d(),o=y("body");if(e==="sandbox"){let n=y(`#i${r}`).node()?.contentDocument??document;o=y(n.body)}return o.select(`#${r}`)},"selectSvgElement");function zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}t(zg,"getDefaultExportFromCjs");var rr={},Jn={},ro={},yg;function ys(){if(yg)return ro;yg=1;function r(h){return typeof h>"u"||h===null}t(r,"isNothing");function e(h){return typeof h==="object"&&h!==null}t(e,"isObject");function o(h){if(Array.isArray(h))return h;else if(r(h))return[];return[h]}t(o,"toArray");function a(h,l){if(l){let u=Object.keys(l);for(let p=0,c=u.length;p<c;p+=1){let m=u[p];h[m]=l[m]}}return h}t(a,"extend");function s(h,l){let u="";for(let p=0;p<l;p+=1)u+=h;return u}t(s,"repeat");function n(h){return h===0&&Number.NEGATIVE_INFINITY===1/h}return t(n,"isNegativeZero"),ro.isNothing=r,ro.isObject=e,ro.toArray=o,ro.repeat=s,ro.isNegativeZero=n,ro.extend=a,ro}t(ys,"requireCommon");var xu,xg;function xs(){if(xg)return xu;xg=1;function r(o,a){let s="",n=o.reason||"(unknown reason)";if(!o.mark)return n;if(o.mark.name)s+='in "'+o.mark.name+'" ';if(s+="("+(o.mark.line+1)+":"+(o.mark.column+1)+")",!a&&o.mark.snippet)s+=`
|
|
130
|
+
|
|
131
|
+
`+o.mark.snippet;return n+" "+s}t(r,"formatError");function e(o,a){if(Error.call(this),this.name="YAMLException",this.reason=o,this.mark=a,this.message=r(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}return t(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=t(function(a){return this.name+": "+r(this,a)},"toString"),xu=e,xu}t(xs,"requireException");var Cu,Cg;function Hg(){if(Cg)return Cu;Cg=1;let r=ys();function e(s,n,h,l,u){let p="",c="",m=Math.floor(u/2)-1;if(l-n>m)p=" ... ",n=l-m+p.length;if(h-l>m)c=" ...",h=l+m-c.length;return{str:p+s.slice(n,h).replace(/\t/g,"→")+c,pos:l-n+p.length}}t(e,"getLine");function o(s,n){return r.repeat(" ",n-s.length)+s}t(o,"padStart");function a(s,n){if(n=Object.create(n||null),!s.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;let h=/\r?\n|\r|\0/g,l=[0],u=[],p,c=-1;while(p=h.exec(s.buffer))if(u.push(p.index),l.push(p.index+p[0].length),s.position<=p.index&&c<0)c=l.length-2;if(c<0)c=l.length-1;let m="",x=Math.min(s.line+n.linesAfter,u.length).toString().length,w=n.maxLength-(n.indent+x+3);for(let v=1;v<=n.linesBefore;v++){if(c-v<0)break;let E=e(s.buffer,l[c-v],u[c-v],s.position-(l[c]-l[c-v]),w);m=r.repeat(" ",n.indent)+o((s.line-v+1).toString(),x)+" | "+E.str+`
|
|
132
|
+
`+m}let _=e(s.buffer,l[c],u[c],s.position,w);m+=r.repeat(" ",n.indent)+o((s.line+1).toString(),x)+" | "+_.str+`
|
|
133
|
+
`,m+=r.repeat("-",n.indent+x+3+_.pos)+`^
|
|
134
|
+
`;for(let v=1;v<=n.linesAfter;v++){if(c+v>=u.length)break;let E=e(s.buffer,l[c+v],u[c+v],s.position-(l[c]-l[c+v]),w);m+=r.repeat(" ",n.indent)+o((s.line+v+1).toString(),x)+" | "+E.str+`
|
|
135
|
+
`}return m.replace(/\n$/,"")}return t(a,"makeSnippet"),Cu=a,Cu}t(Hg,"requireSnippet");var bu,bg;function ir(){if(bg)return bu;bg=1;let r=xs(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];function a(n){let h={};if(n!==null)Object.keys(n).forEach(function(l){n[l].forEach(function(u){h[String(u)]=l})});return h}t(a,"compileStyleAliases");function s(n,h){if(h=h||{},Object.keys(h).forEach(function(l){if(e.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+n+'" YAML type.')}),this.options=h,this.tag=n,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(l){return l},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=a(h.styleAliases||null),o.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}return t(s,"Type2"),bu=s,bu}t(ir,"requireType");var ku,kg;function Nu(){if(kg)return ku;kg=1;let r=xs(),e=ir();function o(n,h){let l=[];return n[h].forEach(function(u){let p=l.length;l.forEach(function(c,m){if(c.tag===u.tag&&c.kind===u.kind&&c.multi===u.multi)p=m}),l[p]=u}),l}t(o,"compileList");function a(){let n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(l){if(l.multi)n.multi[l.kind].push(l),n.multi.fallback.push(l);else n[l.kind][l.tag]=n.fallback[l.tag]=l}t(h,"collectType");for(let l=0,u=arguments.length;l<u;l+=1)arguments[l].forEach(h);return n}t(a,"compileMap");function s(n){return this.extend(n)}return t(s,"Schema2"),s.prototype.extend=t(function(h){let l=[],u=[];if(h instanceof e)u.push(h);else if(Array.isArray(h))u=u.concat(h);else if(h&&(Array.isArray(h.implicit)||Array.isArray(h.explicit))){if(h.implicit)l=l.concat(h.implicit);if(h.explicit)u=u.concat(h.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(c){if(!(c instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(c){if(!(c instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let p=Object.create(s.prototype);return p.implicit=(this.implicit||[]).concat(l),p.explicit=(this.explicit||[]).concat(u),p.compiledImplicit=o(p,"implicit"),p.compiledExplicit=o(p,"explicit"),p.compiledTypeMap=a(p.compiledImplicit,p.compiledExplicit),p},"extend"),ku=s,ku}t(Nu,"requireSchema");var wu,wg;function Wu(){if(wg)return wu;return wg=1,wu=new(ir())("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(e){return e!==null?e:""},"construct")}),wu}t(Wu,"requireStr");var Su,Sg;function zu(){if(Sg)return Su;return Sg=1,Su=new(ir())("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(e){return e!==null?e:[]},"construct")}),Su}t(zu,"requireSeq");var Tu,Tg;function Hu(){if(Tg)return Tu;return Tg=1,Tu=new(ir())("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(e){return e!==null?e:{}},"construct")}),Tu}t(Hu,"requireMap");var _u,_g;function Yu(){if(_g)return _u;return _g=1,_u=new(Nu())({explicit:[Wu(),zu(),Hu()]}),_u}t(Yu,"requireFailsafe");var Bu,Bg;function Uu(){if(Bg)return Bu;Bg=1;let r=ir();function e(s){if(s===null)return!0;let n=s.length;return n===1&&s==="~"||n===4&&(s==="null"||s==="Null"||s==="NULL")}t(e,"resolveYamlNull");function o(){return null}t(o,"constructYamlNull");function a(s){return s===null}return t(a,"isNull"),Bu=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:o,predicate:a,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"}),Bu}t(Uu,"require_null");var vu,vg;function ju(){if(vg)return vu;vg=1;let r=ir();function e(s){if(s===null)return!1;let n=s.length;return n===4&&(s==="true"||s==="True"||s==="TRUE")||n===5&&(s==="false"||s==="False"||s==="FALSE")}t(e,"resolveYamlBoolean");function o(s){return s==="true"||s==="True"||s==="TRUE"}t(o,"constructYamlBoolean");function a(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return t(a,"isBoolean"),vu=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:o,predicate:a,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vu}t(ju,"requireBool");var Lu,Lg;function Gu(){if(Lg)return Lu;Lg=1;let r=ys(),e=ir();function o(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}t(o,"isHexCode");function a(p){return p>=48&&p<=55}t(a,"isOctCode");function s(p){return p>=48&&p<=57}t(s,"isDecCode");function n(p){if(p===null)return!1;let c=p.length,m=0,x=!1;if(!c)return!1;let w=p[m];if(w==="-"||w==="+")w=p[++m];if(w==="0"){if(m+1===c)return!0;if(w=p[++m],w==="b"){m++;for(;m<c;m++){if(w=p[m],w!=="0"&&w!=="1")return!1;x=!0}return x&&isFinite(h(p))}if(w==="x"){m++;for(;m<c;m++){if(!o(p.charCodeAt(m)))return!1;x=!0}return x&&isFinite(h(p))}if(w==="o"){m++;for(;m<c;m++){if(!a(p.charCodeAt(m)))return!1;x=!0}return x&&isFinite(h(p))}}for(;m<c;m++){if(!s(p.charCodeAt(m)))return!1;x=!0}if(!x)return!1;return isFinite(h(p))}t(n,"resolveYamlInteger");function h(p){let c=p,m=1,x=c[0];if(x==="-"||x==="+"){if(x==="-")m=-1;c=c.slice(1),x=c[0]}if(c==="0")return 0;if(x==="0"){if(c[1]==="b")return m*parseInt(c.slice(2),2);if(c[1]==="x")return m*parseInt(c.slice(2),16);if(c[1]==="o")return m*parseInt(c.slice(2),8)}return m*parseInt(c,10)}t(h,"parseYamlInteger");function l(p){return h(p)}t(l,"constructYamlInteger");function u(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1===0&&!r.isNegativeZero(p))}return t(u,"isInteger"),Lu=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:n,construct:l,predicate:u,represent:{binary:t(function(p){return p>=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},"binary"),octal:t(function(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)},"octal"),decimal:t(function(p){return p.toString(10)},"decimal"),hexadecimal:t(function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lu}t(Gu,"requireInt");var Fu,Fg;function Xu(){if(Fg)return Fu;Fg=1;let r=ys(),e=ir(),o=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(p){if(p===null)return!1;if(!o.test(p))return!1;if(isFinite(parseFloat(p,10)))return!0;return a.test(p)}t(s,"resolveYamlFloat");function n(p){let c=p.toLowerCase(),m=c[0]==="-"?-1:1;if("+-".indexOf(c[0])>=0)c=c.slice(1);if(c===".inf")return m===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(c===".nan")return NaN;return m*parseFloat(c,10)}t(n,"constructYamlFloat");let h=/^[-+]?[0-9]+e/;function l(p,c){if(isNaN(p))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(p))return"-0.0";let m=p.toString(10);return h.test(m)?m.replace("e",".e"):m}t(l,"representYamlFloat");function u(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||r.isNegativeZero(p))}return t(u,"isFloat"),Fu=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:n,predicate:u,represent:l,defaultStyle:"lowercase"}),Fu}t(Xu,"requireFloat");var Au,Ag;function Vu(){if(Ag)return Au;return Ag=1,Au=Yu().extend({implicit:[Uu(),ju(),Gu(),Xu()]}),Au}t(Vu,"requireJson");var Mu,Mg;function Ku(){if(Mg)return Mu;return Mg=1,Mu=Vu(),Mu}t(Ku,"requireCore");var Eu,Eg;function Zu(){if(Eg)return Eu;Eg=1;let r=ir(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(h){if(h===null)return!1;if(e.exec(h)!==null)return!0;if(o.exec(h)!==null)return!0;return!1}t(a,"resolveYamlTimestamp");function s(h){let l=0,u=null,p=e.exec(h);if(p===null)p=o.exec(h);if(p===null)throw Error("Date resolve error");let c=+p[1],m=+p[2]-1,x=+p[3];if(!p[4])return new Date(Date.UTC(c,m,x));let w=+p[4],_=+p[5],v=+p[6];if(p[7]){l=p[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(p[9]){let W=+p[10],U=+(p[11]||0);if(u=(W*60+U)*60000,p[9]==="-")u=-u}let E=new Date(Date.UTC(c,m,x,w,_,v,l));if(u)E.setTime(E.getTime()-u);return E}t(s,"constructYamlTimestamp");function n(h){return h.toISOString()}return t(n,"representYamlTimestamp"),Eu=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:s,instanceOf:Date,represent:n}),Eu}t(Zu,"requireTimestamp");var Ou,Og;function Qu(){if(Og)return Ou;Og=1;let r=ir();function e(o){return o==="<<"||o===null}return t(e,"resolveYamlMerge"),Ou=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e}),Ou}t(Qu,"requireMerge");var Iu,Ig;function Ju(){if(Ig)return Iu;Ig=1;let r=ir(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
136
|
+
\r`;function o(h){if(h===null)return!1;let l=0,u=h.length,p=e;for(let c=0;c<u;c++){let m=p.indexOf(h.charAt(c));if(m>64)continue;if(m<0)return!1;l+=6}return l%8===0}t(o,"resolveYamlBinary");function a(h){let l=h.replace(/[\r\n=]/g,""),u=l.length,p=e,c=0,m=[];for(let w=0;w<u;w++){if(w%4===0&&w)m.push(c>>16&255),m.push(c>>8&255),m.push(c&255);c=c<<6|p.indexOf(l.charAt(w))}let x=u%4*6;if(x===0)m.push(c>>16&255),m.push(c>>8&255),m.push(c&255);else if(x===18)m.push(c>>10&255),m.push(c>>2&255);else if(x===12)m.push(c>>4&255);return new Uint8Array(m)}t(a,"constructYamlBinary");function s(h){let l="",u=0,p=h.length,c=e;for(let x=0;x<p;x++){if(x%3===0&&x)l+=c[u>>18&63],l+=c[u>>12&63],l+=c[u>>6&63],l+=c[u&63];u=(u<<8)+h[x]}let m=p%3;if(m===0)l+=c[u>>18&63],l+=c[u>>12&63],l+=c[u>>6&63],l+=c[u&63];else if(m===2)l+=c[u>>10&63],l+=c[u>>4&63],l+=c[u<<2&63],l+=c[64];else if(m===1)l+=c[u>>2&63],l+=c[u<<4&63],l+=c[64],l+=c[64];return l}t(s,"representYamlBinary");function n(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return t(n,"isBinary"),Iu=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:a,predicate:n,represent:s}),Iu}t(Ju,"requireBinary");var $u,$g;function tf(){if($g)return $u;$g=1;let r=ir(),e=Object.prototype.hasOwnProperty,o=Object.prototype.toString;function a(n){if(n===null)return!0;let h=[],l=n;for(let u=0,p=l.length;u<p;u+=1){let c=l[u],m=!1;if(o.call(c)!=="[object Object]")return!1;let x;for(x in c)if(e.call(c,x))if(!m)m=!0;else return!1;if(!m)return!1;if(h.indexOf(x)===-1)h.push(x);else return!1}return!0}t(a,"resolveYamlOmap");function s(n){return n!==null?n:[]}return t(s,"constructYamlOmap"),$u=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:a,construct:s}),$u}t(tf,"requireOmap");var Du,Dg;function ef(){if(Dg)return Du;Dg=1;let r=ir(),e=Object.prototype.toString;function o(s){if(s===null)return!0;let n=s,h=Array(n.length);for(let l=0,u=n.length;l<u;l+=1){let p=n[l];if(e.call(p)!=="[object Object]")return!1;let c=Object.keys(p);if(c.length!==1)return!1;h[l]=[c[0],p[c[0]]]}return!0}t(o,"resolveYamlPairs");function a(s){if(s===null)return[];let n=s,h=Array(n.length);for(let l=0,u=n.length;l<u;l+=1){let p=n[l],c=Object.keys(p);h[l]=[c[0],p[c[0]]]}return h}return t(a,"constructYamlPairs"),Du=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:o,construct:a}),Du}t(ef,"requirePairs");var Pu,Pg;function rf(){if(Pg)return Pu;Pg=1;let r=ir(),e=Object.prototype.hasOwnProperty;function o(s){if(s===null)return!0;let n=s;for(let h in n)if(e.call(n,h)){if(n[h]!==null)return!1}return!0}t(o,"resolveYamlSet");function a(s){return s!==null?s:{}}return t(a,"constructYamlSet"),Pu=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:o,construct:a}),Pu}t(rf,"requireSet");var Ru,Rg;function tl(){if(Rg)return Ru;return Rg=1,Ru=Ku().extend({implicit:[Zu(),Qu()],explicit:[Ju(),tf(),ef(),rf()]}),Ru}t(tl,"require_default");var qg;function Yg(){if(qg)return Jn;qg=1;let r=ys(),e=xs(),o=Hg(),a=tl(),s=Object.prototype.hasOwnProperty,n=1,h=2,l=3,u=4,p=1,c=2,m=3,x=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,_=/[,\[\]{}]/,v=/^(?:!|!!|![0-9A-Za-z-]+!)$/,E=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function W(k){return Object.prototype.toString.call(k)}t(W,"_class");function U(k){return k===10||k===13}t(U,"isEol");function V(k){return k===9||k===32}t(V,"isWhiteSpace");function Z(k){return k===9||k===32||k===10||k===13}t(Z,"isWsOrEol");function J(k){return k===44||k===91||k===93||k===123||k===125}t(J,"isFlowIndicator");function ut(k){if(k>=48&&k<=57)return k-48;let yt=k|32;if(yt>=97&&yt<=102)return yt-97+10;return-1}t(ut,"fromHexCode");function at(k){if(k===120)return 2;if(k===117)return 4;if(k===85)return 8;return 0}t(at,"escapedHexLen");function mt(k){if(k>=48&&k<=57)return k-48;return-1}t(mt,"fromDecimalCode");function bt(k){switch(k){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
|
|
137
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(bt,"simpleEscapeSequence");function Lt(k){if(k<=65535)return String.fromCharCode(k);return String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}t(Lt,"charFromCodepoint");function wt(k,yt,vt){if(yt==="__proto__")Object.defineProperty(k,yt,{configurable:!0,enumerable:!0,writable:!0,value:vt});else k[yt]=vt}t(wt,"setProperty");let kt=Array(256),ot=Array(256);for(let k=0;k<256;k++)kt[k]=bt(k)?1:0,ot[k]=bt(k);function st(k,yt){this.input=k,this.filename=yt.filename||null,this.schema=yt.schema||a,this.onWarning=yt.onWarning||null,this.legacy=yt.legacy||!1,this.json=yt.json||!1,this.listener=yt.listener||null,this.maxDepth=typeof yt.maxDepth==="number"?yt.maxDepth:100,this.maxTotalMergeKeys=typeof yt.maxTotalMergeKeys==="number"?yt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=k.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(st,"State");function xt(k,yt){let vt={name:k.filename,buffer:k.input.slice(0,-1),position:k.position,line:k.line,column:k.position-k.lineStart};return vt.snippet=o(vt),new e(yt,vt)}t(xt,"generateError");function it(k,yt){throw xt(k,yt)}t(it,"throwError");function _t(k,yt){if(k.onWarning)k.onWarning.call(null,xt(k,yt))}t(_t,"throwWarning");function Et(k,yt,vt){let It=k.anchorMapTransactions;if(It.length!==0){let Bt=It[It.length-1];if(!s.call(Bt,yt))Bt[yt]={existed:s.call(k.anchorMap,yt),value:k.anchorMap[yt]}}k.anchorMap[yt]=vt}t(Et,"storeAnchor");function Vt(k){k.anchorMapTransactions.push(Object.create(null))}t(Vt,"beginAnchorTransaction");function Xt(k){let yt=k.anchorMapTransactions.pop(),vt=k.anchorMapTransactions;if(vt.length===0)return;let It=vt[vt.length-1],Bt=Object.keys(yt);for(let jt=0,j=Bt.length;jt<j;jt+=1){let Ct=Bt[jt];if(!s.call(It,Ct))It[Ct]=yt[Ct]}}t(Xt,"commitAnchorTransaction");function le(k){let yt=k.anchorMapTransactions.pop(),vt=Object.keys(yt);for(let It=vt.length-1;It>=0;It-=1){let Bt=yt[vt[It]];if(Bt.existed)k.anchorMap[vt[It]]=Bt.value;else delete k.anchorMap[vt[It]]}}t(le,"rollbackAnchorTransaction");function ne(k){return{position:k.position,line:k.line,lineStart:k.lineStart,lineIndent:k.lineIndent,firstTabInLine:k.firstTabInLine,tag:k.tag,anchor:k.anchor,kind:k.kind,result:k.result}}t(ne,"snapshotState");function me(k,yt){k.position=yt.position,k.line=yt.line,k.lineStart=yt.lineStart,k.lineIndent=yt.lineIndent,k.firstTabInLine=yt.firstTabInLine,k.tag=yt.tag,k.anchor=yt.anchor,k.kind=yt.kind,k.result=yt.result}t(me,"restoreState");let xe={YAML:t(function(yt,vt,It){if(yt.version!==null)it(yt,"duplication of %YAML directive");if(It.length!==1)it(yt,"YAML directive accepts exactly one argument");let Bt=/^([0-9]+)\.([0-9]+)$/.exec(It[0]);if(Bt===null)it(yt,"ill-formed argument of the YAML directive");let jt=parseInt(Bt[1],10),j=parseInt(Bt[2],10);if(jt!==1)it(yt,"unacceptable YAML version of the document");if(yt.version=It[0],yt.checkLineBreaks=j<2,j!==1&&j!==2)_t(yt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(yt,vt,It){let Bt;if(It.length!==2)it(yt,"TAG directive accepts exactly two arguments");let jt=It[0];if(Bt=It[1],!v.test(jt))it(yt,"ill-formed tag handle (first argument) of the TAG directive");if(s.call(yt.tagMap,jt))it(yt,'there is a previously declared suffix for "'+jt+'" tag handle');if(!E.test(Bt))it(yt,"ill-formed tag prefix (second argument) of the TAG directive");try{Bt=decodeURIComponent(Bt)}catch(j){it(yt,"tag prefix is malformed: "+Bt)}yt.tagMap[jt]=Bt},"handleTagDirective")};function de(k,yt,vt,It){if(yt<vt){let Bt=k.input.slice(yt,vt);if(It)for(let jt=0,j=Bt.length;jt<j;jt+=1){let Ct=Bt.charCodeAt(jt);if(!(Ct===9||Ct>=32&&Ct<=1114111))it(k,"expected valid JSON character")}else if(x.test(Bt))it(k,"the stream contains non-printable characters");k.result+=Bt}}t(de,"captureSegment");function Gt(k,yt,vt,It){if(!r.isObject(vt))it(k,"cannot merge mappings; the provided source object is unacceptable");let Bt=Object.keys(vt);for(let jt=0,j=Bt.length;jt<j;jt+=1){let Ct=Bt[jt];if(k.maxTotalMergeKeys!==-1&&++k.totalMergeKeys>k.maxTotalMergeKeys)it(k,"merge keys exceeded maxTotalMergeKeys ("+k.maxTotalMergeKeys+")");if(!s.call(yt,Ct))wt(yt,Ct,vt[Ct]),It[Ct]=!0}}t(Gt,"mergeMappings");function se(k,yt,vt,It,Bt,jt,j,Ct,Nt){if(Array.isArray(Bt)){Bt=Array.prototype.slice.call(Bt);for(let Ot=0,$t=Bt.length;Ot<$t;Ot+=1){if(Array.isArray(Bt[Ot]))it(k,"nested arrays are not supported inside keys");if(typeof Bt==="object"&&W(Bt[Ot])==="[object Object]")Bt[Ot]="[object Object]"}}if(typeof Bt==="object"&&W(Bt)==="[object Object]")Bt="[object Object]";if(Bt=String(Bt),yt===null)yt={};if(It==="tag:yaml.org,2002:merge")if(Array.isArray(jt))for(let Ot=0,$t=jt.length;Ot<$t;Ot+=1)Gt(k,yt,jt[Ot],vt);else Gt(k,yt,jt,vt);else{if(!k.json&&!s.call(vt,Bt)&&s.call(yt,Bt))k.line=j||k.line,k.lineStart=Ct||k.lineStart,k.position=Nt||k.position,it(k,"duplicated mapping key");wt(yt,Bt,jt),delete vt[Bt]}return yt}t(se,"storeMappingPair");function he(k){let yt=k.input.charCodeAt(k.position);if(yt===10)k.position++;else if(yt===13){if(k.position++,k.input.charCodeAt(k.position)===10)k.position++}else it(k,"a line break is expected");k.line+=1,k.lineStart=k.position,k.firstTabInLine=-1}t(he,"readLineBreak");function ce(k,yt,vt){let It=0,Bt=k.input.charCodeAt(k.position);while(Bt!==0){while(V(Bt)){if(Bt===9&&k.firstTabInLine===-1)k.firstTabInLine=k.position;Bt=k.input.charCodeAt(++k.position)}if(yt&&Bt===35)do Bt=k.input.charCodeAt(++k.position);while(Bt!==10&&Bt!==13&&Bt!==0);if(U(Bt)){he(k),Bt=k.input.charCodeAt(k.position),It++,k.lineIndent=0;while(Bt===32)k.lineIndent++,Bt=k.input.charCodeAt(++k.position)}else break}if(vt!==-1&&It!==0&&k.lineIndent<vt)_t(k,"deficient indentation");return It}t(ce,"skipSeparationSpace");function Ae(k){let yt=k.position,vt=k.input.charCodeAt(yt);if((vt===45||vt===46)&&vt===k.input.charCodeAt(yt+1)&&vt===k.input.charCodeAt(yt+2)){if(yt+=3,vt=k.input.charCodeAt(yt),vt===0||Z(vt))return!0}return!1}t(Ae,"testDocumentSeparator");function Fe(k,yt){if(yt===1)k.result+=" ";else if(yt>1)k.result+=r.repeat(`
|
|
138
|
+
`,yt-1)}t(Fe,"writeFoldedLines");function Or(k,yt,vt){let It,Bt,jt,j,Ct,Nt,{kind:Ot,result:$t}=k,Ut=k.input.charCodeAt(k.position);if(Z(Ut)||J(Ut)||Ut===35||Ut===38||Ut===42||Ut===33||Ut===124||Ut===62||Ut===39||Ut===34||Ut===37||Ut===64||Ut===96)return!1;if(Ut===63||Ut===45){let Wt=k.input.charCodeAt(k.position+1);if(Z(Wt)||vt&&J(Wt))return!1}k.kind="scalar",k.result="",It=Bt=k.position,jt=!1;while(Ut!==0){if(Ut===58){let Wt=k.input.charCodeAt(k.position+1);if(Z(Wt)||vt&&J(Wt))break}else if(Ut===35){let Wt=k.input.charCodeAt(k.position-1);if(Z(Wt))break}else if(k.position===k.lineStart&&Ae(k)||vt&&J(Ut))break;else if(U(Ut))if(j=k.line,Ct=k.lineStart,Nt=k.lineIndent,ce(k,!1,-1),k.lineIndent>=yt){jt=!0,Ut=k.input.charCodeAt(k.position);continue}else{k.position=Bt,k.line=j,k.lineStart=Ct,k.lineIndent=Nt;break}if(jt)de(k,It,Bt,!1),Fe(k,k.line-j),It=Bt=k.position,jt=!1;if(!V(Ut))Bt=k.position+1;Ut=k.input.charCodeAt(++k.position)}if(de(k,It,Bt,!1),k.result)return!0;return k.kind=Ot,k.result=$t,!1}t(Or,"readPlainScalar");function xi(k,yt){let vt,It,Bt=k.input.charCodeAt(k.position);if(Bt!==39)return!1;k.kind="scalar",k.result="",k.position++,vt=It=k.position;while((Bt=k.input.charCodeAt(k.position))!==0)if(Bt===39)if(de(k,vt,k.position,!0),Bt=k.input.charCodeAt(++k.position),Bt===39)vt=k.position,k.position++,It=k.position;else return!0;else if(U(Bt))de(k,vt,It,!0),Fe(k,ce(k,!1,yt)),vt=It=k.position;else if(k.position===k.lineStart&&Ae(k))it(k,"unexpected end of the document within a single quoted scalar");else if(k.position++,!V(Bt))It=k.position;it(k,"unexpected end of the stream within a single quoted scalar")}t(xi,"readSingleQuotedScalar");function vr(k,yt){let vt,It,Bt,jt=k.input.charCodeAt(k.position);if(jt!==34)return!1;k.kind="scalar",k.result="",k.position++,vt=It=k.position;while((jt=k.input.charCodeAt(k.position))!==0)if(jt===34)return de(k,vt,k.position,!0),k.position++,!0;else if(jt===92){if(de(k,vt,k.position,!0),jt=k.input.charCodeAt(++k.position),U(jt))ce(k,!1,yt);else if(jt<256&&kt[jt])k.result+=ot[jt],k.position++;else if((Bt=at(jt))>0){let j=Bt,Ct=0;for(;j>0;j--)if(jt=k.input.charCodeAt(++k.position),(Bt=ut(jt))>=0)Ct=(Ct<<4)+Bt;else it(k,"expected hexadecimal character");k.result+=Lt(Ct),k.position++}else it(k,"unknown escape sequence");vt=It=k.position}else if(U(jt))de(k,vt,It,!0),Fe(k,ce(k,!1,yt)),vt=It=k.position;else if(k.position===k.lineStart&&Ae(k))it(k,"unexpected end of the document within a double quoted scalar");else if(k.position++,!V(jt))It=k.position;it(k,"unexpected end of the stream within a double quoted scalar")}t(vr,"readDoubleQuotedScalar");function Oi(k,yt){let vt=!0,It,Bt,jt,j=k.tag,Ct,Nt=k.anchor,Ot,$t,Ut,Wt,ee=Object.create(null),Zt,re,oe,ye=k.input.charCodeAt(k.position);if(ye===91)Ot=93,Wt=!1,Ct=[];else if(ye===123)Ot=125,Wt=!0,Ct={};else return!1;if(k.anchor!==null)Et(k,k.anchor,Ct);ye=k.input.charCodeAt(++k.position);while(ye!==0){if(ce(k,!0,yt),ye=k.input.charCodeAt(k.position),ye===Ot)return k.position++,k.tag=j,k.anchor=Nt,k.kind=Wt?"mapping":"sequence",k.result=Ct,!0;else if(!vt)it(k,"missed comma between flow collection entries");else if(ye===44)it(k,"expected the node content, but found ','");if(re=Zt=oe=null,$t=Ut=!1,ye===63){let Le=k.input.charCodeAt(k.position+1);if(Z(Le))$t=Ut=!0,k.position++,ce(k,!0,yt)}if(It=k.line,Bt=k.lineStart,jt=k.position,Ye(k,yt,n,!1,!0),re=k.tag,Zt=k.result,ce(k,!0,yt),ye=k.input.charCodeAt(k.position),(Ut||k.line===It)&&ye===58)$t=!0,ye=k.input.charCodeAt(++k.position),ce(k,!0,yt),Ye(k,yt,n,!1,!0),oe=k.result;if(Wt)se(k,Ct,ee,re,Zt,oe,It,Bt,jt);else if($t)Ct.push(se(k,null,ee,re,Zt,oe,It,Bt,jt));else Ct.push(Zt);if(ce(k,!0,yt),ye=k.input.charCodeAt(k.position),ye===44)vt=!0,ye=k.input.charCodeAt(++k.position);else vt=!1}it(k,"unexpected end of the stream within a flow collection")}t(Oi,"readFlowCollection");function ve(k,yt){let vt,It=p,Bt=!1,jt=!1,j=yt,Ct=0,Nt=!1,Ot,$t=k.input.charCodeAt(k.position);if($t===124)vt=!1;else if($t===62)vt=!0;else return!1;k.kind="scalar",k.result="";while($t!==0)if($t=k.input.charCodeAt(++k.position),$t===43||$t===45)if(p===It)It=$t===43?m:c;else it(k,"repeat of a chomping mode identifier");else if((Ot=mt($t))>=0)if(Ot===0)it(k,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!jt)j=yt+Ot-1,jt=!0;else it(k,"repeat of an indentation width identifier");else break;if(V($t)){do $t=k.input.charCodeAt(++k.position);while(V($t));if($t===35)do $t=k.input.charCodeAt(++k.position);while(!U($t)&&$t!==0)}while($t!==0){he(k),k.lineIndent=0,$t=k.input.charCodeAt(k.position);while((!jt||k.lineIndent<j)&&$t===32)k.lineIndent++,$t=k.input.charCodeAt(++k.position);if(!jt&&k.lineIndent>j)j=k.lineIndent;if(U($t)){Ct++;continue}if(!jt&&j===0)it(k,"missing indentation for block scalar");if(k.lineIndent<j){if(It===m)k.result+=r.repeat(`
|
|
139
|
+
`,Bt?1+Ct:Ct);else if(It===p){if(Bt)k.result+=`
|
|
140
|
+
`}break}if(vt)if(V($t))Nt=!0,k.result+=r.repeat(`
|
|
141
|
+
`,Bt?1+Ct:Ct);else if(Nt)Nt=!1,k.result+=r.repeat(`
|
|
142
|
+
`,Ct+1);else if(Ct===0){if(Bt)k.result+=" "}else k.result+=r.repeat(`
|
|
143
|
+
`,Ct);else k.result+=r.repeat(`
|
|
144
|
+
`,Bt?1+Ct:Ct);Bt=!0,jt=!0,Ct=0;let Ut=k.position;while(!U($t)&&$t!==0)$t=k.input.charCodeAt(++k.position);de(k,Ut,k.position,!1)}return!0}t(ve,"readBlockScalar");function cr(k,yt){let{tag:vt,anchor:It}=k,Bt=[],jt=!1;if(k.firstTabInLine!==-1)return!1;if(k.anchor!==null)Et(k,k.anchor,Bt);let j=k.input.charCodeAt(k.position);while(j!==0){if(k.firstTabInLine!==-1)k.position=k.firstTabInLine,it(k,"tab characters must not be used in indentation");if(j!==45)break;let Ct=k.input.charCodeAt(k.position+1);if(!Z(Ct))break;if(jt=!0,k.position++,ce(k,!0,-1)){if(k.lineIndent<=yt){Bt.push(null),j=k.input.charCodeAt(k.position);continue}}let Nt=k.line;if(Ye(k,yt,l,!1,!0),Bt.push(k.result),ce(k,!0,-1),j=k.input.charCodeAt(k.position),(k.line===Nt||k.lineIndent>yt)&&j!==0)it(k,"bad indentation of a sequence entry");else if(k.lineIndent<yt)break}if(jt)return k.tag=vt,k.anchor=It,k.kind="sequence",k.result=Bt,!0;return!1}t(cr,"readBlockSequence");function _e(k,yt,vt){let It,Bt,jt,j,{tag:Ct,anchor:Nt}=k,Ot={},$t=Object.create(null),Ut=null,Wt=null,ee=null,Zt=!1,re=!1;if(k.firstTabInLine!==-1)return!1;if(k.anchor!==null)Et(k,k.anchor,Ot);let oe=k.input.charCodeAt(k.position);while(oe!==0){if(!Zt&&k.firstTabInLine!==-1)k.position=k.firstTabInLine,it(k,"tab characters must not be used in indentation");let ye=k.input.charCodeAt(k.position+1),Le=k.line;if((oe===63||oe===58)&&Z(ye)){if(oe===63){if(Zt)se(k,Ot,$t,Ut,Wt,null,Bt,jt,j),Ut=Wt=ee=null;re=!0,Zt=!0,It=!0}else if(Zt)Zt=!1,It=!0;else it(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");k.position+=1,oe=ye}else{if(Bt=k.line,jt=k.lineStart,j=k.position,!Ye(k,vt,h,!1,!0))break;if(k.line===Le){oe=k.input.charCodeAt(k.position);while(V(oe))oe=k.input.charCodeAt(++k.position);if(oe===58){if(oe=k.input.charCodeAt(++k.position),!Z(oe))it(k,"a whitespace character is expected after the key-value separator within a block mapping");if(Zt)se(k,Ot,$t,Ut,Wt,null,Bt,jt,j),Ut=Wt=ee=null;re=!0,Zt=!1,It=!1,Ut=k.tag,Wt=k.result}else if(re)it(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=Ct,k.anchor=Nt,!0}else if(re)it(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=Ct,k.anchor=Nt,!0}if(k.line===Le||k.lineIndent>yt){if(Zt)Bt=k.line,jt=k.lineStart,j=k.position;if(Ye(k,yt,u,!0,It))if(Zt)Wt=k.result;else ee=k.result;if(!Zt)se(k,Ot,$t,Ut,Wt,ee,Bt,jt,j),Ut=Wt=ee=null;ce(k,!0,-1),oe=k.input.charCodeAt(k.position)}if((k.line===Le||k.lineIndent>yt)&&oe!==0)it(k,"bad indentation of a mapping entry");else if(k.lineIndent<yt)break}if(Zt)se(k,Ot,$t,Ut,Wt,null,Bt,jt,j);if(re)k.tag=Ct,k.anchor=Nt,k.kind="mapping",k.result=Ot;return re}t(_e,"readBlockMapping");function Ci(k){let yt=!1,vt=!1,It,Bt,jt=k.input.charCodeAt(k.position);if(jt!==33)return!1;if(k.tag!==null)it(k,"duplication of a tag property");if(jt=k.input.charCodeAt(++k.position),jt===60)yt=!0,jt=k.input.charCodeAt(++k.position);else if(jt===33)vt=!0,It="!!",jt=k.input.charCodeAt(++k.position);else It="!";let j=k.position;if(yt){do jt=k.input.charCodeAt(++k.position);while(jt!==0&&jt!==62);if(k.position<k.length)Bt=k.input.slice(j,k.position),jt=k.input.charCodeAt(++k.position);else it(k,"unexpected end of the stream within a verbatim tag")}else{while(jt!==0&&!Z(jt)){if(jt===33)if(!vt){if(It=k.input.slice(j-1,k.position+1),!v.test(It))it(k,"named tag handle cannot contain such characters");vt=!0,j=k.position+1}else it(k,"tag suffix cannot contain exclamation marks");jt=k.input.charCodeAt(++k.position)}if(Bt=k.input.slice(j,k.position),_.test(Bt))it(k,"tag suffix cannot contain flow indicator characters")}if(Bt&&!E.test(Bt))it(k,"tag name cannot contain such characters: "+Bt);try{Bt=decodeURIComponent(Bt)}catch(Ct){it(k,"tag name is malformed: "+Bt)}if(yt)k.tag=Bt;else if(s.call(k.tagMap,It))k.tag=k.tagMap[It]+Bt;else if(It==="!")k.tag="!"+Bt;else if(It==="!!")k.tag="tag:yaml.org,2002:"+Bt;else it(k,'undeclared tag handle "'+It+'"');return!0}t(Ci,"readTagProperty");function Ze(k){let yt=k.input.charCodeAt(k.position);if(yt!==38)return!1;if(k.anchor!==null)it(k,"duplication of an anchor property");yt=k.input.charCodeAt(++k.position);let vt=k.position;while(yt!==0&&!Z(yt)&&!J(yt))yt=k.input.charCodeAt(++k.position);if(k.position===vt)it(k,"name of an anchor node must contain at least one character");return k.anchor=k.input.slice(vt,k.position),!0}t(Ze,"readAnchorProperty");function Lr(k){let yt=k.input.charCodeAt(k.position);if(yt!==42)return!1;yt=k.input.charCodeAt(++k.position);let vt=k.position;while(yt!==0&&!Z(yt)&&!J(yt))yt=k.input.charCodeAt(++k.position);if(k.position===vt)it(k,"name of an alias node must contain at least one character");let It=k.input.slice(vt,k.position);if(!s.call(k.anchorMap,It))it(k,'unidentified alias "'+It+'"');return k.result=k.anchorMap[It],ce(k,!0,-1),!0}t(Lr,"readAlias");function Ii(k,yt,vt,It){let Bt=ne(k);if(Vt(k),me(k,yt),k.tag=null,k.anchor=null,k.kind=null,k.result=null,_e(k,vt,It)&&k.kind==="mapping")return Xt(k),!0;return le(k),me(k,Bt),!1}t(Ii,"tryReadBlockMappingFromProperty");function Ye(k,yt,vt,It,Bt){let jt,j,Ct=1,Nt=!1,Ot=!1,$t=null,Ut,Wt,ee;if(k.depth>=k.maxDepth)it(k,"nesting exceeded maxDepth ("+k.maxDepth+")");if(k.depth+=1,k.listener!==null)k.listener("open",k);k.tag=null,k.anchor=null,k.kind=null,k.result=null;let Zt=jt=j=u===vt||l===vt;if(It){if(ce(k,!0,-1)){if(Nt=!0,k.lineIndent>yt)Ct=1;else if(k.lineIndent===yt)Ct=0;else if(k.lineIndent<yt)Ct=-1}}if(Ct===1)while(!0){let re=k.input.charCodeAt(k.position),oe=ne(k);if(Nt&&(re===33&&k.tag!==null||re===38&&k.anchor!==null))break;if(!Ci(k)&&!Ze(k))break;if($t===null)$t=oe;if(ce(k,!0,-1)){if(Nt=!0,j=Zt,k.lineIndent>yt)Ct=1;else if(k.lineIndent===yt)Ct=0;else if(k.lineIndent<yt)Ct=-1}else j=!1}if(j)j=Nt||Bt;if(Ct===1||u===vt){if(n===vt||h===vt)Wt=yt;else Wt=yt+1;if(ee=k.position-k.lineStart,Ct===1)if(j&&(cr(k,ee)||_e(k,ee,Wt))||Oi(k,Wt))Ot=!0;else{let re=k.input.charCodeAt(k.position);if($t!==null&&Zt&&!j&&re!==124&&re!==62&&Ii(k,$t,$t.position-$t.lineStart,Wt))Ot=!0;else if(jt&&ve(k,Wt)||xi(k,Wt)||vr(k,Wt))Ot=!0;else if(Lr(k)){if(Ot=!0,k.tag!==null||k.anchor!==null)it(k,"alias node should not have any properties")}else if(Or(k,Wt,n===vt)){if(Ot=!0,k.tag===null)k.tag="?"}if(k.anchor!==null)Et(k,k.anchor,k.result)}else if(Ct===0)Ot=j&&cr(k,ee)}if(k.tag===null){if(k.anchor!==null)Et(k,k.anchor,k.result)}else if(k.tag==="?"){if(k.result!==null&&k.kind!=="scalar")it(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"');for(let re=0,oe=k.implicitTypes.length;re<oe;re+=1)if(Ut=k.implicitTypes[re],Ut.resolve(k.result)){if(k.result=Ut.construct(k.result),k.tag=Ut.tag,k.anchor!==null)Et(k,k.anchor,k.result);break}}else if(k.tag!=="!"){if(s.call(k.typeMap[k.kind||"fallback"],k.tag))Ut=k.typeMap[k.kind||"fallback"][k.tag];else{Ut=null;let re=k.typeMap.multi[k.kind||"fallback"];for(let oe=0,ye=re.length;oe<ye;oe+=1)if(k.tag.slice(0,re[oe].tag.length)===re[oe].tag){Ut=re[oe];break}}if(!Ut)it(k,"unknown tag !<"+k.tag+">");if(k.result!==null&&Ut.kind!==k.kind)it(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+Ut.kind+'", not "'+k.kind+'"');if(!Ut.resolve(k.result,k.tag))it(k,"cannot resolve a node with !<"+k.tag+"> explicit tag");else if(k.result=Ut.construct(k.result,k.tag),k.anchor!==null)Et(k,k.anchor,k.result)}if(k.listener!==null)k.listener("close",k);return k.depth-=1,k.tag!==null||k.anchor!==null||Ot}t(Ye,"composeNode");function $i(k){let yt=k.position,vt=!1,It;k.version=null,k.checkLineBreaks=k.legacy,k.tagMap=Object.create(null),k.anchorMap=Object.create(null);while((It=k.input.charCodeAt(k.position))!==0){if(ce(k,!0,-1),It=k.input.charCodeAt(k.position),k.lineIndent>0||It!==37)break;vt=!0,It=k.input.charCodeAt(++k.position);let Bt=k.position;while(It!==0&&!Z(It))It=k.input.charCodeAt(++k.position);let jt=k.input.slice(Bt,k.position),j=[];if(jt.length<1)it(k,"directive name must not be less than one character in length");while(It!==0){while(V(It))It=k.input.charCodeAt(++k.position);if(It===35){do It=k.input.charCodeAt(++k.position);while(It!==0&&!U(It));break}if(U(It))break;Bt=k.position;while(It!==0&&!Z(It))It=k.input.charCodeAt(++k.position);j.push(k.input.slice(Bt,k.position))}if(It!==0)he(k);if(s.call(xe,jt))xe[jt](k,jt,j);else _t(k,'unknown document directive "'+jt+'"')}if(ce(k,!0,-1),k.lineIndent===0&&k.input.charCodeAt(k.position)===45&&k.input.charCodeAt(k.position+1)===45&&k.input.charCodeAt(k.position+2)===45)k.position+=3,ce(k,!0,-1);else if(vt)it(k,"directives end mark is expected");if(Ye(k,k.lineIndent-1,u,!1,!0),ce(k,!0,-1),k.checkLineBreaks&&w.test(k.input.slice(yt,k.position)))_t(k,"non-ASCII line breaks are interpreted as content");if(k.documents.push(k.result),k.position===k.lineStart&&Ae(k)){if(k.input.charCodeAt(k.position)===46)k.position+=3,ce(k,!0,-1);return}if(k.position<k.length-1)it(k,"end of the stream or a document separator is expected")}t($i,"readDocument");function Nr(k,yt){if(k=String(k),yt=yt||{},k.length!==0){if(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13)k+=`
|
|
145
|
+
`;if(k.charCodeAt(0)===65279)k=k.slice(1)}let vt=new st(k,yt),It=k.indexOf("\x00");if(It!==-1)vt.position=It,it(vt,"null byte is not allowed in input");vt.input+="\x00";while(vt.input.charCodeAt(vt.position)===32)vt.lineIndent+=1,vt.position+=1;while(vt.position<vt.length-1)$i(vt);return vt.documents}t(Nr,"loadDocuments");function bi(k,yt,vt){if(yt!==null&&typeof yt==="object"&&typeof vt>"u")vt=yt,yt=null;let It=Nr(k,vt);if(typeof yt!=="function")return It;for(let Bt=0,jt=It.length;Bt<jt;Bt+=1)yt(It[Bt])}t(bi,"loadAll2");function ki(k,yt){let vt=Nr(k,yt);if(vt.length===0)return;else if(vt.length===1)return vt[0];throw new e("expected a single document in the stream, but found more")}return t(ki,"load2"),Jn.loadAll=bi,Jn.load=ki,Jn}t(Yg,"requireLoader");var qu={},Ng;function Ug(){if(Ng)return qu;Ng=1;let r=ys(),e=xs(),o=tl(),a=Object.prototype.toString,s=Object.prototype.hasOwnProperty,n=65279,h=9,l=10,u=13,p=32,c=33,m=34,x=35,w=37,_=38,v=39,E=42,W=44,U=45,V=58,Z=61,J=62,ut=63,at=64,mt=91,bt=93,Lt=96,wt=123,kt=124,ot=125,st={};st[0]="\\0",st[7]="\\a",st[8]="\\b",st[9]="\\t",st[10]="\\n",st[11]="\\v",st[12]="\\f",st[13]="\\r",st[27]="\\e",st[34]="\\\"",st[92]="\\\\",st[133]="\\N",st[160]="\\_",st[8232]="\\L",st[8233]="\\P";let xt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],it=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _t(j,Ct){if(Ct===null)return{};let Nt={},Ot=Object.keys(Ct);for(let $t=0,Ut=Ot.length;$t<Ut;$t+=1){let Wt=Ot[$t],ee=String(Ct[Wt]);if(Wt.slice(0,2)==="!!")Wt="tag:yaml.org,2002:"+Wt.slice(2);let Zt=j.compiledTypeMap.fallback[Wt];if(Zt&&s.call(Zt.styleAliases,ee))ee=Zt.styleAliases[ee];Nt[Wt]=ee}return Nt}t(_t,"compileStyleMap");function Et(j){let Ct,Nt,Ot=j.toString(16).toUpperCase();if(j<=255)Ct="x",Nt=2;else if(j<=65535)Ct="u",Nt=4;else if(j<=4294967295)Ct="U",Nt=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+Ct+r.repeat("0",Nt-Ot.length)+Ot}t(Et,"encodeHex");let Vt=1,Xt=2;function le(j){this.schema=j.schema||o,this.indent=Math.max(1,j.indent||2),this.noArrayIndent=j.noArrayIndent||!1,this.skipInvalid=j.skipInvalid||!1,this.flowLevel=r.isNothing(j.flowLevel)?-1:j.flowLevel,this.styleMap=_t(this.schema,j.styles||null),this.sortKeys=j.sortKeys||!1,this.lineWidth=j.lineWidth||80,this.noRefs=j.noRefs||!1,this.noCompatMode=j.noCompatMode||!1,this.condenseFlow=j.condenseFlow||!1,this.quotingType=j.quotingType==='"'?Xt:Vt,this.forceQuotes=j.forceQuotes||!1,this.replacer=typeof j.replacer==="function"?j.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(le,"State");function ne(j,Ct){let Nt=r.repeat(" ",Ct),Ot=0,$t="",Ut=j.length;while(Ot<Ut){let Wt,ee=j.indexOf(`
|
|
146
|
+
`,Ot);if(ee===-1)Wt=j.slice(Ot),Ot=Ut;else Wt=j.slice(Ot,ee+1),Ot=ee+1;if(Wt.length&&Wt!==`
|
|
147
|
+
`)$t+=Nt;$t+=Wt}return $t}t(ne,"indentString");function me(j,Ct){return`
|
|
148
|
+
`+r.repeat(" ",j.indent*Ct)}t(me,"generateNextLine");function xe(j,Ct){for(let Nt=0,Ot=j.implicitTypes.length;Nt<Ot;Nt+=1)if(j.implicitTypes[Nt].resolve(Ct))return!0;return!1}t(xe,"testImplicitResolving");function de(j){return j===p||j===h}t(de,"isWhitespace");function Gt(j){return j>=32&&j<=126||j>=161&&j<=55295&&j!==8232&&j!==8233||j>=57344&&j<=65533&&j!==n||j>=65536&&j<=1114111}t(Gt,"isPrintable");function se(j){return Gt(j)&&j!==n&&j!==u&&j!==l}t(se,"isNsCharOrWhitespace");function he(j,Ct,Nt){let Ot=se(j),$t=Ot&&!de(j);return(Nt?Ot:Ot&&j!==W&&j!==mt&&j!==bt&&j!==wt&&j!==ot)&&j!==x&&!(Ct===V&&!$t)||se(Ct)&&!de(Ct)&&j===x||Ct===V&&$t}t(he,"isPlainSafe");function ce(j){return Gt(j)&&j!==n&&!de(j)&&j!==U&&j!==ut&&j!==V&&j!==W&&j!==mt&&j!==bt&&j!==wt&&j!==ot&&j!==x&&j!==_&&j!==E&&j!==c&&j!==kt&&j!==Z&&j!==J&&j!==v&&j!==m&&j!==w&&j!==at&&j!==Lt}t(ce,"isPlainSafeFirst");function Ae(j){return!de(j)&&j!==V}t(Ae,"isPlainSafeLast");function Fe(j,Ct){let Nt=j.charCodeAt(Ct),Ot;if(Nt>=55296&&Nt<=56319&&Ct+1<j.length){if(Ot=j.charCodeAt(Ct+1),Ot>=56320&&Ot<=57343)return(Nt-55296)*1024+Ot-56320+65536}return Nt}t(Fe,"codePointAt");function Or(j){return/^\n* /.test(j)}t(Or,"needIndentIndicator");let xi=1,vr=2,Oi=3,ve=4,cr=5;function _e(j,Ct,Nt,Ot,$t,Ut,Wt,ee){let Zt,re=0,oe=null,ye=!1,Le=!1,Fs=Ot!==-1,Di=-1,Pi=ce(Fe(j,0))&&Ae(Fe(j,j.length-1));if(Ct||Wt)for(Zt=0;Zt<j.length;re>=65536?Zt+=2:Zt++){if(re=Fe(j,Zt),!Gt(re))return cr;Pi=Pi&&he(re,oe,ee),oe=re}else{for(Zt=0;Zt<j.length;re>=65536?Zt+=2:Zt++){if(re=Fe(j,Zt),re===l){if(ye=!0,Fs)Le=Le||Zt-Di-1>Ot&&j[Di+1]!==" ",Di=Zt}else if(!Gt(re))return cr;Pi=Pi&&he(re,oe,ee),oe=re}Le=Le||Fs&&(Zt-Di-1>Ot&&j[Di+1]!==" ")}if(!ye&&!Le){if(Pi&&!Wt&&!$t(j))return xi;return Ut===Xt?cr:vr}if(Nt>9&&Or(j))return cr;if(!Wt)return Le?ve:Oi;return Ut===Xt?cr:vr}t(_e,"chooseScalarStyle");function Ci(j,Ct,Nt,Ot,$t){j.dump=function(){if(Ct.length===0)return j.quotingType===Xt?'""':"''";if(!j.noCompatMode){if(xt.indexOf(Ct)!==-1||it.test(Ct))return j.quotingType===Xt?'"'+Ct+'"':"'"+Ct+"'"}let Ut=j.indent*Math.max(1,Nt),Wt=j.lineWidth===-1?-1:Math.max(Math.min(j.lineWidth,40),j.lineWidth-Ut),ee=Ot||j.flowLevel>-1&&Nt>=j.flowLevel;function Zt(re){return xe(j,re)}switch(t(Zt,"testAmbiguity"),_e(Ct,ee,j.indent,Wt,Zt,j.quotingType,j.forceQuotes&&!Ot,$t)){case xi:return Ct;case vr:return"'"+Ct.replace(/'/g,"''")+"'";case Oi:return"|"+Ze(Ct,j.indent)+Lr(ne(Ct,Ut));case ve:return">"+Ze(Ct,j.indent)+Lr(ne(Ii(Ct,Wt),Ut));case cr:return'"'+$i(Ct)+'"';default:throw new e("impossible error: invalid scalar style")}}()}t(Ci,"writeScalar");function Ze(j,Ct){let Nt=Or(j)?String(Ct):"",Ot=j[j.length-1]===`
|
|
149
|
+
`,Ut=Ot&&(j[j.length-2]===`
|
|
150
|
+
`||j===`
|
|
151
|
+
`)?"+":Ot?"":"-";return Nt+Ut+`
|
|
152
|
+
`}t(Ze,"blockHeader");function Lr(j){return j[j.length-1]===`
|
|
153
|
+
`?j.slice(0,-1):j}t(Lr,"dropEndingNewline");function Ii(j,Ct){let Nt=/(\n+)([^\n]*)/g,Ot=function(){let ee=j.indexOf(`
|
|
154
|
+
`);return ee=ee!==-1?ee:j.length,Nt.lastIndex=ee,Ye(j.slice(0,ee),Ct)}(),$t=j[0]===`
|
|
155
|
+
`||j[0]===" ",Ut,Wt;while(Wt=Nt.exec(j)){let ee=Wt[1],Zt=Wt[2];Ut=Zt[0]===" ",Ot+=ee+(!$t&&!Ut&&Zt!==""?`
|
|
156
|
+
`:"")+Ye(Zt,Ct),$t=Ut}return Ot}t(Ii,"foldString");function Ye(j,Ct){if(j===""||j[0]===" ")return j;let Nt=/ [^ ]/g,Ot,$t=0,Ut,Wt=0,ee=0,Zt="";while(Ot=Nt.exec(j)){if(ee=Ot.index,ee-$t>Ct)Ut=Wt>$t?Wt:ee,Zt+=`
|
|
157
|
+
`+j.slice($t,Ut),$t=Ut+1;Wt=ee}if(Zt+=`
|
|
158
|
+
`,j.length-$t>Ct&&Wt>$t)Zt+=j.slice($t,Wt)+`
|
|
159
|
+
`+j.slice(Wt+1);else Zt+=j.slice($t);return Zt.slice(1)}t(Ye,"foldLine");function $i(j){let Ct="",Nt=0;for(let Ot=0;Ot<j.length;Nt>=65536?Ot+=2:Ot++){Nt=Fe(j,Ot);let $t=st[Nt];if(!$t&&Gt(Nt)){if(Ct+=j[Ot],Nt>=65536)Ct+=j[Ot+1]}else Ct+=$t||Et(Nt)}return Ct}t($i,"escapeString");function Nr(j,Ct,Nt){let Ot="",$t=j.tag;for(let Ut=0,Wt=Nt.length;Ut<Wt;Ut+=1){let ee=Nt[Ut];if(j.replacer)ee=j.replacer.call(Nt,String(Ut),ee);if(vt(j,Ct,ee,!1,!1)||typeof ee>"u"&&vt(j,Ct,null,!1,!1)){if(Ot!=="")Ot+=","+(!j.condenseFlow?" ":"");Ot+=j.dump}}j.tag=$t,j.dump="["+Ot+"]"}t(Nr,"writeFlowSequence");function bi(j,Ct,Nt,Ot){let $t="",Ut=j.tag;for(let Wt=0,ee=Nt.length;Wt<ee;Wt+=1){let Zt=Nt[Wt];if(j.replacer)Zt=j.replacer.call(Nt,String(Wt),Zt);if(vt(j,Ct+1,Zt,!0,!0,!1,!0)||typeof Zt>"u"&&vt(j,Ct+1,null,!0,!0,!1,!0)){if(!Ot||$t!=="")$t+=me(j,Ct);if(j.dump&&l===j.dump.charCodeAt(0))$t+="-";else $t+="- ";$t+=j.dump}}j.tag=Ut,j.dump=$t||"[]"}t(bi,"writeBlockSequence");function ki(j,Ct,Nt){let Ot="",$t=j.tag,Ut=Object.keys(Nt);for(let Wt=0,ee=Ut.length;Wt<ee;Wt+=1){let Zt="";if(Ot!=="")Zt+=", ";if(j.condenseFlow)Zt+='"';let re=Ut[Wt],oe=Nt[re];if(j.replacer)oe=j.replacer.call(Nt,re,oe);if(!vt(j,Ct,re,!1,!1))continue;if(j.dump.length>1024)Zt+="? ";if(Zt+=j.dump+(j.condenseFlow?'"':"")+":"+(j.condenseFlow?"":" "),!vt(j,Ct,oe,!1,!1))continue;Zt+=j.dump,Ot+=Zt}j.tag=$t,j.dump="{"+Ot+"}"}t(ki,"writeFlowMapping");function k(j,Ct,Nt,Ot){let $t="",Ut=j.tag,Wt=Object.keys(Nt);if(j.sortKeys===!0)Wt.sort();else if(typeof j.sortKeys==="function")Wt.sort(j.sortKeys);else if(j.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let ee=0,Zt=Wt.length;ee<Zt;ee+=1){let re="";if(!Ot||$t!=="")re+=me(j,Ct);let oe=Wt[ee],ye=Nt[oe];if(j.replacer)ye=j.replacer.call(Nt,oe,ye);if(!vt(j,Ct+1,oe,!0,!0,!0))continue;let Le=j.tag!==null&&j.tag!=="?"||j.dump&&j.dump.length>1024;if(Le)if(j.dump&&l===j.dump.charCodeAt(0))re+="?";else re+="? ";if(re+=j.dump,Le)re+=me(j,Ct);if(!vt(j,Ct+1,ye,!0,Le))continue;if(j.dump&&l===j.dump.charCodeAt(0))re+=":";else re+=": ";re+=j.dump,$t+=re}j.tag=Ut,j.dump=$t||"{}"}t(k,"writeBlockMapping");function yt(j,Ct,Nt){let Ot=Nt?j.explicitTypes:j.implicitTypes;for(let $t=0,Ut=Ot.length;$t<Ut;$t+=1){let Wt=Ot[$t];if((Wt.instanceOf||Wt.predicate)&&(!Wt.instanceOf||typeof Ct==="object"&&Ct instanceof Wt.instanceOf)&&(!Wt.predicate||Wt.predicate(Ct))){if(Nt)if(Wt.multi&&Wt.representName)j.tag=Wt.representName(Ct);else j.tag=Wt.tag;else j.tag="?";if(Wt.represent){let ee=j.styleMap[Wt.tag]||Wt.defaultStyle,Zt;if(a.call(Wt.represent)==="[object Function]")Zt=Wt.represent(Ct,ee);else if(s.call(Wt.represent,ee))Zt=Wt.represent[ee](Ct,ee);else throw new e("!<"+Wt.tag+'> tag resolver accepts not "'+ee+'" style');j.dump=Zt}return!0}}return!1}t(yt,"detectType");function vt(j,Ct,Nt,Ot,$t,Ut,Wt){if(j.tag=null,j.dump=Nt,!yt(j,Nt,!1))yt(j,Nt,!0);let ee=a.call(j.dump),Zt=Ot;if(Ot)Ot=j.flowLevel<0||j.flowLevel>Ct;let re=ee==="[object Object]"||ee==="[object Array]",oe,ye;if(re)oe=j.duplicates.indexOf(Nt),ye=oe!==-1;if(j.tag!==null&&j.tag!=="?"||ye||j.indent!==2&&Ct>0)$t=!1;if(ye&&j.usedDuplicates[oe])j.dump="*ref_"+oe;else{if(re&&ye&&!j.usedDuplicates[oe])j.usedDuplicates[oe]=!0;if(ee==="[object Object]"){if(Ot&&Object.keys(j.dump).length!==0){if(k(j,Ct,j.dump,$t),ye)j.dump="&ref_"+oe+j.dump}else if(ki(j,Ct,j.dump),ye)j.dump="&ref_"+oe+" "+j.dump}else if(ee==="[object Array]"){if(Ot&&j.dump.length!==0){if(j.noArrayIndent&&!Wt&&Ct>0)bi(j,Ct-1,j.dump,$t);else bi(j,Ct,j.dump,$t);if(ye)j.dump="&ref_"+oe+j.dump}else if(Nr(j,Ct,j.dump),ye)j.dump="&ref_"+oe+" "+j.dump}else if(ee==="[object String]"){if(j.tag!=="?")Ci(j,j.dump,Ct,Ut,Zt)}else if(ee==="[object Undefined]")return!1;else{if(j.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+ee)}if(j.tag!==null&&j.tag!=="?"){let Le=encodeURI(j.tag[0]==="!"?j.tag.slice(1):j.tag).replace(/!/g,"%21");if(j.tag[0]==="!")Le="!"+Le;else if(Le.slice(0,18)==="tag:yaml.org,2002:")Le="!!"+Le.slice(18);else Le="!<"+Le+">";j.dump=Le+" "+j.dump}}return!0}t(vt,"writeNode");function It(j,Ct){let Nt=[],Ot=[];Bt(j,Nt,Ot);let $t=Ot.length;for(let Ut=0;Ut<$t;Ut+=1)Ct.duplicates.push(Nt[Ot[Ut]]);Ct.usedDuplicates=Array($t)}t(It,"getDuplicateReferences");function Bt(j,Ct,Nt){if(j!==null&&typeof j==="object"){let Ot=Ct.indexOf(j);if(Ot!==-1){if(Nt.indexOf(Ot)===-1)Nt.push(Ot)}else if(Ct.push(j),Array.isArray(j))for(let $t=0,Ut=j.length;$t<Ut;$t+=1)Bt(j[$t],Ct,Nt);else{let $t=Object.keys(j);for(let Ut=0,Wt=$t.length;Ut<Wt;Ut+=1)Bt(j[$t[Ut]],Ct,Nt)}}}t(Bt,"inspectNode");function jt(j,Ct){Ct=Ct||{};let Nt=new le(Ct);if(!Nt.noRefs)It(j,Nt);let Ot=j;if(Nt.replacer)Ot=Nt.replacer.call({"":Ot},"",Ot);if(vt(Nt,0,Ot,!0,!0))return Nt.dump+`
|
|
160
|
+
`;return""}return t(jt,"dump2"),qu.dump=jt,qu}t(Ug,"requireDumper");var Wg;function jg(){if(Wg)return rr;Wg=1;let r=Yg(),e=Ug();function o(a,s){return function(){throw Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return t(o,"renamed"),rr.Type=ir(),rr.Schema=Nu(),rr.FAILSAFE_SCHEMA=Yu(),rr.JSON_SCHEMA=Vu(),rr.CORE_SCHEMA=Ku(),rr.DEFAULT_SCHEMA=tl(),rr.load=r.load,rr.loadAll=r.loadAll,rr.dump=e.dump,rr.YAMLException=xs(),rr.types={binary:Ju(),float:Xu(),map:Hu(),null:Uu(),pairs:ef(),set:rf(),timestamp:Zu(),bool:ju(),int:Gu(),merge:Qu(),omap:tf(),seq:zu(),str:Wu()},rr.safeLoad=o("safeLoad","load"),rr.safeLoadAll=o("safeLoadAll","loadAll"),rr.safeDump=o("safeDump","dump"),rr}t(jg,"requireJsYaml");var t2=jg(),e2=zg(t2),{Type:I3,Schema:$3,FAILSAFE_SCHEMA:D3,JSON_SCHEMA:Qt,CORE_SCHEMA:P3,DEFAULT_SCHEMA:R3,load:Jt,loadAll:q3,dump:N3,YAMLException:W3,types:z3,safeLoad:H3,safeLoadAll:Y3,safeDump:U3}=e2;var Fo=t((r,e)=>{let{theme:o,themeVariables:a}=e,{useGradient:s,gradientStart:n,gradientStop:h}=a??{},l=r.attr("id"),u=o?.includes("dark")?"#FFFFFF":"#000000",p=t((m,x,w)=>r.append("defs").append("filter").attr("id",m).attr("height",x).attr("width",x).append("feDropShadow").attr("dx",w).attr("dy",w).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",u),"dropShadow");if(p(`${l}-drop-shadow`,"130%","4"),p(`${l}-drop-shadow-small`,"150%","2"),!s)return;let c=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)},"insertLookDefs");var Gg=t((r)=>{let{handDrawnSeed:e}=d();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:r,seed:e}},"solidStateFill"),r2=t((r)=>{if(Array.isArray(r))return r;if(!r)return[];return r.split(";").map((e)=>e.trim()).filter(Boolean)},"normalizeStyleList"),Xr=t((r)=>{let e=i2([...r.cssCompiledStyles||[],...r.cssStyles||[],...r2(r.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),i2=t((r)=>{let e=new Map;return r.forEach((o)=>{let[a,s]=o.split(":");e.set(a.trim(),s?.trim())}),e},"styles2Map"),Vi=t((r)=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),L=t((r)=>{let{stylesArray:e}=Xr(r),o=[],a=[],s=[],n=[];return e.forEach((h)=>{let l=h[0];if(Vi(l))o.push(h.join(":")+" !important");else{if(a.push(h.join(":")+" !important"),l.includes("stroke"))s.push(h.join(":")+" !important");if(l==="fill")n.push(h.join(":")+" !important")}}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:s,backgroundStyles:n}},"styles2String"),Kt=t((r,e)=>{let{themeVariables:o,handDrawnSeed:a}=d(),{nodeBorder:s,mainBkg:n}=o,{stylesMap:h}=Xr(r);return Object.assign({roughness:0.7,fill:h.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:h.get("stroke")||s,seed:a,strokeWidth:h.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o2(h.get("stroke-dasharray"))},e)},"userNodeOverrides"),o2=t((r)=>{if(!r)return[0,0];let e=r.trim().split(/\s+/).map(Number);if(e.length===1){let s=isNaN(e[0])?0:e[0];return[s,s]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");var of=(r,e,o,a="")=>{let s=r.split(":");if(r.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;a=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){let l=s.pop(),u=s.pop(),p={provider:s.length>0?s[0]:a,prefix:u,name:l};return e&&!el(p)?null:p}let n=s[0],h=n.split("-");if(h.length>1){let l={provider:a,prefix:h.shift(),name:h.join("-")};return e&&!el(l)?null:l}if(o&&a===""){let l={provider:a,prefix:"",name:n};return e&&!el(l,o)?null:l}return null},el=(r,e)=>{if(!r)return!1;return!!((e&&r.prefix===""||!!r.prefix)&&!!r.name)};var s2=Object.freeze({left:0,top:0,width:16,height:16}),Cs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),sf=Object.freeze({...s2,...Cs}),Xg=Object.freeze({...sf,body:"",hidden:!1});function Vg(r,e){let o={};if(!r.hFlip!==!e.hFlip)o.hFlip=!0;if(!r.vFlip!==!e.vFlip)o.vFlip=!0;let a=((r.rotate||0)+(e.rotate||0))%4;if(a)o.rotate=a;return o}function af(r,e){let o=Vg(r,e);for(let a in Xg)if(a in Cs){if(a in r&&!(a in o))o[a]=Cs[a]}else if(a in e)o[a]=e[a];else if(a in r)o[a]=r[a];return o}function Kg(r,e){let o=r.icons,a=r.aliases||Object.create(null),s=Object.create(null);function n(h){if(o[h])return s[h]=[];if(!(h in s)){s[h]=null;let l=a[h]&&a[h].parent,u=l&&n(l);if(u)s[h]=[l].concat(u)}return s[h]}return(e||Object.keys(o).concat(Object.keys(a))).forEach(n),s}function Zg(r,e,o){let a=r.icons,s=r.aliases||Object.create(null),n={};function h(l){n=af(a[l]||s[l],n)}return h(e),o.forEach(h),af(r,n)}function nf(r,e){if(r.icons[e])return Zg(r,e,[]);let o=Kg(r,[e])[e];return o?Zg(r,e,o):null}var a2=Object.freeze({width:null,height:null}),Qg=Object.freeze({...a2,...Cs});var n2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lf(r,e,o){if(e===1)return r;if(o=o||100,typeof r==="number")return Math.ceil(r*e*o)/o;if(typeof r!=="string")return r;let a=r.split(n2);if(a===null||!a.length)return r;let s=[],n=a.shift(),h=l2.test(n);while(!0){if(h){let l=parseFloat(n);if(isNaN(l))s.push(n);else s.push(Math.ceil(l*e*o)/o)}else s.push(n);if(n=a.shift(),n===void 0)return s.join("");h=!h}}function h2(r,e="defs"){let o="",a=r.indexOf("<"+e);while(a>=0){let s=r.indexOf(">",a),n=r.indexOf("</"+e);if(s===-1||n===-1)break;let h=r.indexOf(">",n);if(h===-1)break;o+=r.slice(s+1,n).trim(),r=r.slice(0,a).trim()+r.slice(h+1)}return{defs:o,content:r}}function c2(r,e){return r?"<defs>"+r+"</defs>"+e:e}function Jg(r,e,o){let a=h2(r);return c2(a.defs,e+a.content+o)}var u2=(r)=>r==="unset"||r==="undefined"||r==="none";function hf(r,e){let o={...sf,...r},a={...Qg,...e},s={left:o.left,top:o.top,width:o.width,height:o.height},n=o.body;[o,a].forEach((v)=>{let E=[],{hFlip:W,vFlip:U,rotate:V}=v;if(W)if(U)V+=2;else E.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),E.push("scale(-1 1)"),s.top=s.left=0;else if(U)E.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),E.push("scale(1 -1)"),s.top=s.left=0;let Z;if(V<0)V-=Math.floor(V/4)*4;switch(V=V%4,V){case 1:Z=s.height/2+s.top,E.unshift("rotate(90 "+Z.toString()+" "+Z.toString()+")");break;case 2:E.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:Z=s.width/2+s.left,E.unshift("rotate(-90 "+Z.toString()+" "+Z.toString()+")")}if(V%2===1){if(s.left!==s.top)Z=s.left,s.left=s.top,s.top=Z;if(s.width!==s.height)Z=s.width,s.width=s.height,s.height=Z}if(E.length)n=Jg(n,'<g transform="'+E.join(" ")+'">',"</g>")});let{width:h,height:l}=a,{width:u,height:p}=s,c,m;if(h===null)m=l===null?"1em":l==="auto"?p:l,c=lf(m,u/p);else c=h==="auto"?u:h,m=l===null?lf(c,p/u):l==="auto"?p:l;let x={},w=(v,E)=>{if(!u2(E))x[v]=E.toString()};w("width",c),w("height",m);let _=[s.left,s.top,u,p];return x.viewBox=_.join(" "),{attributes:x,viewBox:_,body:n}}var f2=/\sid="(\S+)"/g,tm=new Map;function d2(r){r=r.replace(/[0-9]+$/,"")||"a";let e=tm.get(r)||0;return tm.set(r,e+1),e?`${r}${e}`:r}function cf(r){let e=[],o;while(o=f2.exec(r))e.push(o[1]);if(!e.length)return r;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach((s)=>{let n=d2(s),h=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+n+a+"$3")}),r=r.replace(new RegExp(a,"g"),""),r}function uf(r,e){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let a in e)o+=" "+a+'="'+e[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}var cc={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},ff=new Map,em=new Map,na=t((r)=>{for(let e of r){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.debug("Registering icon pack:",e.name),"loader"in e)em.set(e.name,e.loader);else if("icons"in e)ff.set(e.name,e.icons);else throw i.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),rm=t(async(r,e)=>{let o=of(r,!0,e!==void 0);if(!o)throw Error(`Invalid icon name: ${r}`);let a=o.prefix||e;if(!a)throw Error(`Icon name must contain a prefix: ${r}`);let s=ff.get(a);if(!s){let h=em.get(a);if(!h)throw Error(`Icon set not found: ${o.prefix}`);try{s={...await h(),prefix:a},ff.set(a,s)}catch(l){throw i.error(l),Error(`Failed to load icon set: ${o.prefix}`)}}let n=nf(s,o.name);if(!n)throw Error(`Icon not found: ${r}`);return n},"getRegisteredIconData"),rl=t(async(r)=>{try{return await rm(r),!0}catch{return!1}},"isIconAvailable"),en=t(async(r,e,o)=>{let a;try{a=await rm(r,e?.fallbackPrefix)}catch(h){i.error(h),a=cc}let s=hf(a,e),n=uf(cf(s.body),{...s.attributes,...o});return G(n,A())},"getIconSVG");var xm=nt(wa(),1);function uo(r,e){if(typeof r!=="function"||e!=null&&typeof e!=="function")throw TypeError("Expected a function");let o=function(...a){let s=e?e.apply(this,a):a[0],n=o.cache;if(n.has(s))return n.get(s);let h=r.apply(this,a);return o.cache=n.set(s,h)||n,h};return o.cache=new(uo.Cache||Map),o}uo.Cache=Map;function ra(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function Ar(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var zo="[object RegExp]",pi="[object String]",ui="[object Number]",di="[object Boolean]",mi="[object Arguments]",Ho="[object Symbol]",Uo="[object Date]",jo="[object Map]",qo="[object Set]",Vo="[object Array]";var Go="[object ArrayBuffer]",Wo="[object Object]";var Yo="[object DataView]",Xo="[object Uint8Array]",Ko="[object Uint8ClampedArray]",Zo="[object Uint16Array]",Qo="[object Uint32Array]";var Jo="[object Int8Array]",es="[object Int16Array]",ts="[object Int32Array]";var ns="[object Float32Array]",rs="[object Float64Array]";function bs(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function Tr(r){return bs(r)}function lm(){}function hm(r){if(ra(r))return r;if(Array.isArray(r)||bs(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let e=Object.getPrototypeOf(r);if(e==null)return Object.assign(Object.create(e),r);let o=e.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let a=new o(r);return a.lastIndex=r.lastIndex,a}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let a;if(r instanceof AggregateError)a=new o(r.errors,r.message,{cause:r.cause});else a=new o(r.message,{cause:r.cause});return a.stack=r.stack,Object.assign(a,r),a}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object")return Object.assign(Object.create(e),r);return r}function il(r){return Object.getOwnPropertySymbols(r).filter((e)=>Object.prototype.propertyIsEnumerable.call(r,e))}var df=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}();function fi(r){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(r)}function cm(r){return r==="__proto__"}function ol(r){if(typeof r!=="object")return!1;if(r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let o=r[Symbol.toStringTag];if(o==null)return!1;if(!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable)return!1;return r.toString()===`[object ${o}]`}let e=r;while(Object.getPrototypeOf(e)!==null)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function um(r,e){return ks(r,void 0,r,new Map,e)}function ks(r,e,o,a=new Map,s=void 0){let n=s?.(r,e,o,a);if(n!==void 0)return n;if(ra(r))return r;if(a.has(r))return a.get(r);if(Array.isArray(r)){let h=Array(r.length);a.set(r,h);for(let l=0;l<r.length;l++)h[l]=ks(r[l],l,o,a,s);if(Object.hasOwn(r,"index"))h.index=r.index;if(Object.hasOwn(r,"input"))h.input=r.input;return h}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let h=new RegExp(r.source,r.flags);return h.lastIndex=r.lastIndex,h}if(r instanceof Map){let h=new Map;a.set(r,h);for(let[l,u]of r)h.set(l,ks(u,l,o,a,s));return h}if(r instanceof Set){let h=new Set;a.set(r,h);for(let l of r)h.add(ks(l,void 0,o,a,s));return h}if(fi(r))return r.subarray();if(bs(r)){let h=new(Object.getPrototypeOf(r)).constructor(r.length);a.set(r,h);for(let l=0;l<r.length;l++)h[l]=ks(r[l],l,o,a,s);return h}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let h=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return a.set(r,h),Er(h,r,o,a,s),h}if(typeof File<"u"&&r instanceof File){let h=new File([r],r.name,{type:r.type});return a.set(r,h),Er(h,r,o,a,s),h}if(typeof Blob<"u"&&r instanceof Blob){let h=new Blob([r],{type:r.type});return a.set(r,h),Er(h,r,o,a,s),h}if(r instanceof Error){let h=structuredClone(r);return a.set(r,h),h.message=r.message,h.name=r.name,h.stack=r.stack,h.cause=r.cause,h.constructor=r.constructor,Er(h,r,o,a,s),h}if(r instanceof Boolean){let h=new Boolean(r.valueOf());return a.set(r,h),Er(h,r,o,a,s),h}if(r instanceof Number){let h=new Number(r.valueOf());return a.set(r,h),Er(h,r,o,a,s),h}if(r instanceof String){let h=new String(r.valueOf());return a.set(r,h),Er(h,r,o,a,s),h}if(typeof r==="object"&&B2(r)){let h=Object.create(Object.getPrototypeOf(r));return a.set(r,h),Er(h,r,o,a,s),h}return r}function Er(r,e,o=r,a,s){let n=[...Object.keys(e),...il(e)];for(let h=0;h<n.length;h++){let l=n[h],u=Object.getOwnPropertyDescriptor(r,l);if(u==null||u.writable)r[l]=ks(e[l],l,o,a,s)}}function B2(r){switch(Ar(r)){case mi:case Vo:case Go:case Yo:case di:case Uo:case ns:case rs:case Jo:case es:case ts:case jo:case ui:case Wo:case zo:case qo:case pi:case Ho:case Xo:case Ko:case Zo:case Qo:return!0;default:return!1}}function fm(r,e){return um(r,(o,a,s,n)=>{let h=e?.(o,a,s,n);if(h!==void 0)return h;if(typeof r!=="object")return;if(Ar(r)==="[object Object]"&&typeof r.constructor!=="function"){let l={};return n.set(r,l),Er(l,r,s,n),l}switch(Object.prototype.toString.call(r)){case ui:case pi:case di:{let l=new r.constructor(r?.valueOf());return Er(l,r),l}case mi:{let l={};return Er(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}default:return}})}function pf(r){return fm(r)}function Gi(r){return r!==null&&typeof r==="object"&&Ar(r)==="[object Arguments]"}function Ma(r){return typeof r==="object"&&r!==null}function dm(r){return Number.isSafeInteger(r)&&r>=0}function as(r){return r!=null&&typeof r!=="function"&&dm(r.length)}function pm(r){return Ma(r)&&as(r)}function gm(r,...e){let o=e.slice(0,-1),a=e[e.length-1],s=r;for(let n=0;n<o.length;n++){let h=o[n];s=sl(s,h,a,new Map)}return s}function sl(r,e,o,a){if(ra(r))r=Object(r);if(e==null||typeof e!=="object")return r;if(a.has(e))return hm(a.get(e));if(a.set(e,r),Array.isArray(e)){e=e.slice();for(let n=0;n<e.length;n++)if(!(n in e))e[n]=void 0}let s=[...Object.keys(e),...il(e)];for(let n=0;n<s.length;n++){let h=s[n];if(cm(h))continue;let l=e[h],u=r[h];if(Gi(l))l={...l};if(Gi(u))u={...u};if(fi(l))l=pf(l);if(Array.isArray(l))if(Array.isArray(u)){let c=[],m=Reflect.ownKeys(u);for(let x=0;x<m.length;x++){let w=m[x];c[w]=u[w]}u=c}else if(pm(u)){let c=[];for(let m=0;m<u.length;m++)c[m]=u[m];u=c}else u=[];let p=o(u,l,h,r,e,a);if(p!==void 0)r[h]=p;else if(Array.isArray(l))r[h]=sl(u,l,o,a);else if(Ma(u)&&Ma(l)&&(ol(u)||ol(l)||Tr(u)||Tr(l)))r[h]=sl(u,l,o,a);else if(u==null&&ol(l))r[h]=sl({},l,o,a);else if(u==null&&Tr(l))r[h]=pf(l);else if(u===void 0||l!==void 0)r[h]=l}return r}function gf(r,...e){return gm(r,...e,lm)}var lc="",v2={curveBasis:co,curveBasisClosed:Hn,curveBasisOpen:Yn,curveBumpX:_a,curveBumpY:fa,curveBundle:cu,curveCardinalClosed:uu,curveCardinalOpen:fu,curveCardinal:pa,curveCatmullRomClosed:du,curveCatmullRomOpen:pu,curveCatmullRom:Ta,curveLinear:Gr,curveLinearClosed:Kn,curveMonotoneX:Ba,curveMonotoneY:La,curveNatural:gs,curveStep:ms,curveStepAfter:Aa,curveStepBefore:Fa},L2=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F2=t(function(r,e){let o=Cm(r,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(o)){let h=o.map((l)=>l.args);Ws(h),a=Te(a,[...h])}else a=o.args;if(!a)return;let s=ni(r,e),n="config";if(a[n]!==void 0){if(s==="flowchart-v2")s="flowchart";a[s]=a[n],delete a[n]}return a},"detectInit"),Cm=t(function(r,e=null){try{let o=new RegExp(`[%]{2}(?![{]${L2.source})(?=[}][%]{2}).*
|
|
161
|
+
`,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),i.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${r}`);let a,s=[];while((a=_o.exec(r))!==null){if(a.index===_o.lastIndex)_o.lastIndex++;if(a&&!e||e&&a[1]?.match(e)||e&&a[2]?.match(e)){let n=a[1]?a[1]:a[2],h=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:n,args:h})}}if(s.length===0)return{type:r,args:null};return s.length===1?s[0]:s}catch(o){return i.error(`ERROR: ${o.message} - Unable to parse directive type: '${e}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),zc=t(function(r){return r.replace(_o,"")},"removeDirectives"),A2=t(function(r,e){for(let[o,a]of e.entries())if(a.match(r))return o;return-1},"isSubstringInArray");function nl(r,e){if(!r)return e;let o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return v2[o]??e}t(nl,"interpolateToCurve");function bm(r,e){let o=r.trim();if(!o)return;if(e.securityLevel!=="loose")return xm.sanitizeUrl(o);return o}t(bm,"formatUrl");var M2=t((r,...e)=>{let o=r.split("."),a=o.length-1,s=o[a],n=window;for(let h=0;h<a;h++)if(n=n[o[h]],!n){i.error(`Function name: ${r} not found in window`);return}n[s](...e)},"runFunc");function mf(r,e){if(!r||!e)return 0;return Math.sqrt(Math.pow(e.x-r.x,2)+Math.pow(e.y-r.y,2))}t(mf,"distance");function km(r){let e,o=0;r.forEach((s)=>{o+=mf(s,e),e=s});let a=o/2;return yf(r,a)}t(km,"traverseEdge");function wm(r){if(r.length===1)return r[0];return km(r)}t(wm,"calcLabelPosition");var mm=t((r,e=2)=>{let o=Math.pow(10,e);return Math.round(r*o)/o},"roundNumber"),yf=t((r,e)=>{let o=void 0,a=e;for(let s of r){if(o){let n=mf(s,o);if(n===0)return o;if(n<a)a-=n;else{let h=a/n;if(h<=0)return o;if(h>=1)return{x:s.x,y:s.y};if(h>0&&h<1)return{x:mm((1-h)*o.x+h*s.x,5),y:mm((1-h)*o.y+h*s.y,5)}}}o=s}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),E2=t((r,e,o)=>{if(i.info(`our points ${JSON.stringify(e)}`),e[0]!==o)e=e.reverse();let s=yf(e,25),n=r?10:5,h=Math.atan2(e[0].y-s.y,e[0].x-s.x),l={x:0,y:0};return l.x=Math.sin(h)*n+(e[0].x+s.x)/2,l.y=-Math.cos(h)*n+(e[0].y+s.y)/2,l},"calcCardinalityPosition");function Sm(r,e,o){let a=structuredClone(o);if(i.info("our points",a),e!=="start_left"&&e!=="start_right")a.reverse();let s=25+r,n=yf(a,s),h=10+r*0.5,l=Math.atan2(a[0].y-n.y,a[0].x-n.x),u={x:0,y:0};if(e==="start_left")u.x=Math.sin(l+Math.PI)*h+(a[0].x+n.x)/2,u.y=-Math.cos(l+Math.PI)*h+(a[0].y+n.y)/2;else if(e==="end_right")u.x=Math.sin(l-Math.PI)*h+(a[0].x+n.x)/2,u.y=-Math.cos(l-Math.PI)*h+(a[0].y+n.y)/2;else if(e==="end_left")u.x=Math.sin(l)*h+(a[0].x+n.x)/2,u.y=-Math.cos(l)*h+(a[0].y+n.y)/2;else u.x=Math.sin(l)*h+(a[0].x+n.x)/2,u.y=-Math.cos(l)*h+(a[0].y+n.y)/2;return u}t(Sm,"calcTerminalLabelPosition");function is(r){let e="",o="";for(let a of r)if(a!==void 0)if(a.startsWith("color:")||a.startsWith("text-align:"))o=o+a+";";else e=e+a+";";return{style:e,labelStyle:o}}t(is,"getStylesFromArray");var ym=0,pc=t(()=>(ym++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ym),"generateId");function Tm(r){let e="",o="0123456789abcdef",a=o.length;for(let s=0;s<r;s++)e+=o.charAt(Math.floor(Math.random()*a));return e}t(Tm,"makeRandomHex");var uc=t((r)=>Tm(r.length),"random"),O2=t(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),I2=t(function(r,e){let o=e.text.replace(C.lineBreakRegex," "),[,a]=Pt(e.fontSize),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.style("text-anchor",e.anchor),s.style("font-family",e.fontFamily),s.style("font-size",a),s.style("font-weight",e.fontWeight),s.attr("fill",e.fill),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(o),s},"drawSimpleText"),aa=uo((r,e,o)=>{if(!r)return r;if(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),C.hasBreaks(r))return r;let a=r.split(" ").filter(Boolean),s=[],n="";return a.forEach((h,l)=>{let u=Ft(`${h} `,o),p=Ft(n,o);if(u>e){let{hyphenatedStrings:x,remainingWord:w}=$2(h,e,"-",o);s.push(n,...x),n=w}else if(p+u>=e)s.push(n),n=h;else n=[n,h].filter(Boolean).join(" ");if(l+1===a.length)s.push(n)}),s.filter((h)=>h!=="").join(o.joinWith)},(r,e,o)=>`${r}${e}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),$2=uo((r,e,o="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...r],n=[],h="";return s.forEach((l,u)=>{let p=`${h}${l}`;if(Ft(p,a)>=e){let m=u+1,x=s.length===m,w=`${p}${o}`;n.push(x?p:w),h=""}else h=p}),{hyphenatedStrings:n,remainingWord:h}},(r,e,o="-",a)=>`${r}${e}${o}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function Wi(r,e){return Yi(r,e).height}t(Wi,"calculateTextHeight");function Ft(r,e){return Yi(r,e).width}t(Ft,"calculateTextWidth");var Yi=uo((r,e)=>{let{fontSize:o=12,fontFamily:a="Arial",fontWeight:s=400}=e;if(!r)return{width:0,height:0};let[,n]=Pt(o),h=["sans-serif",a],l=r.split(C.lineBreakRegex),u=[],p=y("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let c=p.append("svg");for(let x of h){let w=0,_={width:0,height:0,lineHeight:0};for(let v of l){let E=O2();E.text=v||lc;let W=I2(c,E).style("font-size",n).style("font-weight",s).style("font-family",x),U=(W._groups||W)[0][0].getBBox();if(U.width===0&&U.height===0)throw Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,U.width)),w=Math.round(U.height),_.height+=w,_.lineHeight=Math.round(Math.max(_.lineHeight,w))}u.push(_)}c.remove();let m=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[m]},(r,e)=>`${r}${e.fontSize}${e.fontWeight}${e.fontFamily}`),D2=class{constructor(r=!1,e){this.count=0,this.count=e?e.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{t(this,"InitIDGenerator")}},al,P2=t(function(r){return al=al||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),al.innerHTML=r,unescape(al.textContent)},"entityDecode");function os(r){return"str"in r}t(os,"isDetailedError");function dc(r){if(r instanceof Error)return r.message;return String(r)}t(dc,"getErrorMessage");var R2=t((r,e,o,a)=>{if(!a)return;let s=r.node()?.getBBox();if(!s)return;r.append("text").text(a).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-o).attr("class",e)},"insertTitle"),Pt=t((r)=>{if(typeof r==="number")return[r,r+"px"];let e=parseInt(r??"",10);if(Number.isNaN(e))return[void 0,void 0];else if(r===String(e))return[e,r+"px"];else return[e,r]},"parseFontSize");function Q(r,e){return gf({},r,e)}t(Q,"cleanAndMerge");var H={assignWithDepth:Te,wrapLabel:aa,calculateTextHeight:Wi,calculateTextWidth:Ft,calculateTextDimensions:Yi,cleanAndMerge:Q,detectInit:F2,detectDirective:Cm,isSubstringInArray:A2,interpolateToCurve:nl,calcLabelPosition:wm,calcCardinalityPosition:E2,calcTerminalLabelPosition:Sm,formatUrl:bm,getStylesFromArray:is,generateId:pc,random:uc,runFunc:M2,entityDecode:P2,insertTitle:R2,isLabelCoordinateInPath:_m,parseFontSize:Pt,InitIDGenerator:D2},Hc=t(function(r){let e=r;return e=e.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/#\w+;/g,function(o){let a=o.substring(1,o.length-1);if(/^\+?\d+$/.test(a))return"fl°°"+a+"¶ß";else return"fl°"+a+"¶ß"}),e},"encodeEntities"),Wn=t(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Tt=t((r,e,{counter:o=0,prefix:a,suffix:s},n)=>{if(n)return n;return`${a?`${a}_`:""}${r}_${e}_${o}${s?`_${s}`:""}`},"getEdgeId");function $e(r){return r??null}t($e,"handleUndefinedAttr");function _m(r,e){let o=Math.round(r.x),a=Math.round(r.y),s=e.replace(/(\d+\.\d+)/g,(n)=>Math.round(parseFloat(n)).toString());return s.includes(o.toString())||s.includes(a.toString())}t(_m,"isLabelCoordinateInPath");function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var po=Cf();function Em(r){po=r}var $a={exec:()=>null};function Se(r,e=""){let o=typeof r=="string"?r:r.source,a={replace:(s,n)=>{let h=typeof n=="string"?n:n.source;return h=h.replace(hr.caret,"$1"),o=o.replace(s,h),a},getRegex:()=>new RegExp(o,e)};return a}var q2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),hr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(r)=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},N2=/^(?:[ \t]*(?:\n|$))+/,W2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,z2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Da=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bf=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Im=Se(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Y2=Se(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U2=/^[^\n]+/,wf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j2=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),fl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,X2=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Sf).replace("tag",fl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$m=Se(kf).replace("hr",Da).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fl).getRegex(),V2=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$m).getRegex(),Tf={blockquote:V2,code:W2,def:j2,fences:z2,heading:H2,hr:Da,html:X2,lheading:Im,list:G2,newline:N2,paragraph:$m,table:$a,text:U2},Bm=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Da).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fl).getRegex(),K2={...Tf,lheading:Y2,table:Bm,paragraph:Se(kf).replace("hr",Da).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fl).getRegex()},Z2={...Tf,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(kf).replace("hr",Da).replace("heading",` *#{1,6} *[^
|
|
162
|
+
]`).replace("lheading",Im).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,J2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dm=/^( {2,}|\\)\n(?!\s*$)/,tw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dl=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Pm=/[^\s\p{P}\p{S}]/u,ew=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_f).getRegex(),Rm=/(?!~)[\p{P}\p{S}]/u,rw=/(?!~)[\s\p{P}\p{S}]/u,iw=/(?:[^\s\p{P}\p{S}]|~)/u,ow=Se(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",q2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,sw=Se(qm,"u").replace(/punct/g,dl).getRegex(),aw=Se(qm,"u").replace(/punct/g,Rm).getRegex(),Nm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nw=Se(Nm,"gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,dl).getRegex(),lw=Se(Nm,"gu").replace(/notPunctSpace/g,iw).replace(/punctSpace/g,rw).replace(/punct/g,Rm).getRegex(),hw=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,dl).getRegex(),cw=Se(/\\(punct)/,"gu").replace(/punct/g,dl).getRegex(),uw=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fw=Se(Sf).replace("(?:-->|$)","-->").getRegex(),dw=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pw=Se(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",hl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wm=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",hl).replace("ref",wf).getRegex(),zm=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",wf).getRegex(),gw=Se("reflink|nolink(?!\\()","g").replace("reflink",Wm).replace("nolink",zm).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bf={_backpedal:$a,anyPunctuation:cw,autolink:uw,blockSkip:ow,br:Dm,code:J2,del:$a,emStrongLDelim:sw,emStrongRDelimAst:nw,emStrongRDelimUnd:hw,escape:Q2,link:pw,nolink:zm,punctuation:ew,reflink:Wm,reflinkSearch:gw,tag:dw,text:tw,url:$a},mw={...Bf,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",hl).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hl).getRegex()},xf={...Bf,emStrongRDelimAst:lw,emStrongLDelim:aw,url:Se(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Se(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},yw={...xf,br:Se(Dm).replace("{2,}","*").getRegex(),text:Se(xf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ll={normal:Tf,gfm:K2,pedantic:Z2},Ea={normal:Bf,gfm:xf,breaks:yw,pedantic:mw},xw={"&":"&","<":"<",">":">",'"':""","'":"'"},Lm=(r)=>xw[r];function Vr(r,e){if(e){if(hr.escapeTest.test(r))return r.replace(hr.escapeReplace,Lm)}else if(hr.escapeTestNoEncode.test(r))return r.replace(hr.escapeReplaceNoEncode,Lm);return r}function Fm(r){try{r=encodeURI(r).replace(hr.percentDecode,"%")}catch{return null}return r}function Am(r,e){let o=r.replace(hr.findPipe,(n,h,l)=>{let u=!1,p=h;for(;--p>=0&&l[p]==="\\";)u=!u;return u?"|":" |"}),a=o.split(hr.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(hr.slashPipe,"|");return a}function Oa(r,e,o){let a=r.length;if(a===0)return"";let s=0;for(;s<a;){let n=r.charAt(a-s-1);if(n===e&&!o)s++;else if(n!==e&&o)s++;else break}return r.slice(0,a-s)}function Cw(r,e){if(r.indexOf(e[1])===-1)return-1;let o=0;for(let a=0;a<r.length;a++)if(r[a]==="\\")a++;else if(r[a]===e[0])o++;else if(r[a]===e[1]&&(o--,o<0))return a;return o>0?-2:-1}function Mm(r,e,o,a,s){let n=e.href,h=e.title||null,l=r[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let u={type:r[0].charAt(0)==="!"?"image":"link",raw:o,href:n,title:h,text:l,tokens:a.inlineTokens(l)};return a.state.inLink=!1,u}function bw(r,e,o){let a=r.match(o.other.indentCodeCompensation);if(a===null)return e;let s=a[1];return e.split(`
|
|
163
|
+
`).map((n)=>{let h=n.match(o.other.beginningSpace);if(h===null)return n;let[l]=h;return l.length>=s.length?n.slice(s.length):n}).join(`
|
|
164
|
+
`)}var cl=class{options;rules;lexer;constructor(r){this.options=r||po}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let o=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Oa(o,`
|
|
165
|
+
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let o=e[0],a=bw(o,e[3]||"",this.rules);return{type:"code",raw:o,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let o=e[2].trim();if(this.rules.other.endingHash.test(o)){let a=Oa(o,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(o=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:Oa(e[0],`
|
|
166
|
+
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let o=Oa(e[0],`
|
|
167
|
+
`).split(`
|
|
168
|
+
`),a="",s="",n=[];for(;o.length>0;){let h=!1,l=[],u;for(u=0;u<o.length;u++)if(this.rules.other.blockquoteStart.test(o[u]))l.push(o[u]),h=!0;else if(!h)l.push(o[u]);else break;o=o.slice(u);let p=l.join(`
|
|
169
|
+
`),c=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
170
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
171
|
+
${p}`:p,s=s?`${s}
|
|
172
|
+
${c}`:c;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=m,o.length===0)break;let x=n.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let w=x,_=w.raw+`
|
|
173
|
+
`+o.join(`
|
|
174
|
+
`),v=this.blockquote(_);n[n.length-1]=v,a=a.substring(0,a.length-w.raw.length)+v.raw,s=s.substring(0,s.length-w.text.length)+v.text;break}else if(x?.type==="list"){let w=x,_=w.raw+`
|
|
175
|
+
`+o.join(`
|
|
176
|
+
`),v=this.list(_);n[n.length-1]=v,a=a.substring(0,a.length-x.raw.length)+v.raw,s=s.substring(0,s.length-w.raw.length)+v.raw,o=_.substring(n.at(-1).raw.length).split(`
|
|
177
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:n,text:s}}}list(r){let e=this.rules.block.list.exec(r);if(e){let o=e[1].trim(),a=o.length>1,s={type:"list",raw:"",ordered:a,start:a?+o.slice(0,-1):"",loose:!1,items:[]};o=a?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=a?o:"[*+-]");let n=this.rules.other.listItemRegex(o),h=!1;for(;r;){let u=!1,p="",c="";if(!(e=n.exec(r))||this.rules.block.hr.test(r))break;p=e[0],r=r.substring(p.length);let m=e[2].split(`
|
|
178
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,(W)=>" ".repeat(3*W.length)),x=r.split(`
|
|
179
|
+
`,1)[0],w=!m.trim(),_=0;if(this.options.pedantic?(_=2,c=m.trimStart()):w?_=e[1].length+1:(_=e[2].search(this.rules.other.nonSpaceChar),_=_>4?1:_,c=m.slice(_),_+=e[1].length),w&&this.rules.other.blankLine.test(x)&&(p+=x+`
|
|
180
|
+
`,r=r.substring(x.length+1),u=!0),!u){let W=this.rules.other.nextBulletRegex(_),U=this.rules.other.hrRegex(_),V=this.rules.other.fencesBeginRegex(_),Z=this.rules.other.headingBeginRegex(_),J=this.rules.other.htmlBeginRegex(_);for(;r;){let ut=r.split(`
|
|
181
|
+
`,1)[0],at;if(x=ut,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),at=x):at=x.replace(this.rules.other.tabCharGlobal," "),V.test(x)||Z.test(x)||J.test(x)||W.test(x)||U.test(x))break;if(at.search(this.rules.other.nonSpaceChar)>=_||!x.trim())c+=`
|
|
182
|
+
`+at.slice(_);else{if(w||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||V.test(m)||Z.test(m)||U.test(m))break;c+=`
|
|
183
|
+
`+x}!w&&!x.trim()&&(w=!0),p+=ut+`
|
|
184
|
+
`,r=r.substring(ut.length+1),m=at.slice(_)}}s.loose||(h?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(h=!0));let v=null,E;this.options.gfm&&(v=this.rules.other.listIsTask.exec(c),v&&(E=v[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!v,checked:E,loose:!1,text:c,tokens:[]}),s.raw+=p}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let u=0;u<s.items.length;u++)if(this.lexer.state.top=!1,s.items[u].tokens=this.lexer.blockTokens(s.items[u].text,[]),!s.loose){let p=s.items[u].tokens.filter((m)=>m.type==="space"),c=p.length>0&&p.some((m)=>this.rules.other.anyLine.test(m.raw));s.loose=c}if(s.loose)for(let u=0;u<s.items.length;u++)s.items[u].loose=!0;return s}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let o=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:o,raw:e[0],href:a,title:s}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let o=Am(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
185
|
+
`):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(o.length===a.length){for(let h of a)this.rules.other.tableAlignRight.test(h)?n.align.push("right"):this.rules.other.tableAlignCenter.test(h)?n.align.push("center"):this.rules.other.tableAlignLeft.test(h)?n.align.push("left"):n.align.push(null);for(let h=0;h<o.length;h++)n.header.push({text:o[h],tokens:this.lexer.inline(o[h]),header:!0,align:n.align[h]});for(let h of s)n.rows.push(Am(h,n.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[u]})));return n}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let o=e[1].charAt(e[1].length-1)===`
|
|
186
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let n=Oa(o.slice(0,-1),"\\");if((o.length-n.length)%2===0)return}else{let n=Cw(e[2],"()");if(n===-2)return;if(n>-1){let h=(e[0].indexOf("!")===0?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,h).trim(),e[3]=""}}let a=e[2],s="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(a);n&&(a=n[1],s=n[3])}else s=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?a=a.slice(1):a=a.slice(1,-1)),Mm(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let o;if((o=this.rules.inline.reflink.exec(r))||(o=this.rules.inline.nolink.exec(r))){let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[a.toLowerCase()];if(!s){let n=o[0].charAt(0);return{type:"text",raw:n,text:n}}return Mm(o,s,o[0],this.lexer,this.rules)}}emStrong(r,e,o=""){let a=this.rules.inline.emStrongLDelim.exec(r);if(!a||a[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2])||!o||this.rules.inline.punctuation.exec(o)){let s=[...a[0]].length-1,n,h,l=s,u=0,p=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,e=e.slice(-1*r.length+s);(a=p.exec(e))!=null;){if(n=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!n)continue;if(h=[...n].length,a[3]||a[4]){l+=h;continue}else if((a[5]||a[6])&&s%3&&!((s+h)%3)){u+=h;continue}if(l-=h,l>0)continue;h=Math.min(h,h+l+u);let c=[...a[0]][0].length,m=r.slice(0,s+a.index+c+h);if(Math.min(s,h)%2){let w=m.slice(1,-1);return{type:"em",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}let x=m.slice(2,-2);return{type:"strong",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let o=e[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(o),s=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return a&&s&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:e[0],text:o}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let o,a;return e[2]==="@"?(o=e[1],a="mailto:"+o):(o=e[1],a=o),{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let o,a;if(e[2]==="@")o=e[0],a="mailto:"+o;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);o=e[0],e[1]==="www."?a="http://"+e[0]:a=e[0]}return{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let o=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:o}}}},Pr=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||po,this.options.tokenizer=this.options.tokenizer||new cl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:hr,block:ll.normal,inline:Ea.normal};this.options.pedantic?(o.block=ll.pedantic,o.inline=Ea.pedantic):this.options.gfm&&(o.block=ll.gfm,this.options.breaks?o.inline=Ea.breaks:o.inline=Ea.gfm),this.tokenizer.rules=o}static get rules(){return{block:ll,inline:Ea}}static lex(e,o){return new r(o).lex(e)}static lexInline(e,o){return new r(o).inlineTokens(e)}lex(e){e=e.replace(hr.carriageReturn,`
|
|
187
|
+
`),this.blockTokens(e,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let a=this.inlineQueue[o];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,o=[],a=!1){for(this.options.pedantic&&(e=e.replace(hr.tabCharGlobal," ").replace(hr.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some((h)=>(s=h.call({lexer:this},e,o))?(e=e.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let h=o.at(-1);s.raw.length===1&&h!==void 0?h.raw+=`
|
|
188
|
+
`:o.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let h=o.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
189
|
+
`)?"":`
|
|
190
|
+
`)+s.raw,h.text+=`
|
|
191
|
+
`+s.text,this.inlineQueue.at(-1).src=h.text):o.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let h=o.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
192
|
+
`)?"":`
|
|
193
|
+
`)+s.raw,h.text+=`
|
|
194
|
+
`+s.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},o.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),o.push(s);continue}let n=e;if(this.options.extensions?.startBlock){let h=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach((p)=>{u=p.call({lexer:this},l),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(n=e.substring(0,h+1))}if(this.state.top&&(s=this.tokenizer.paragraph(n))){let h=o.at(-1);a&&h?.type==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
195
|
+
`)?"":`
|
|
196
|
+
`)+s.raw,h.text+=`
|
|
197
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):o.push(s),a=n.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let h=o.at(-1);h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
198
|
+
`)?"":`
|
|
199
|
+
`)+s.raw,h.text+=`
|
|
200
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):o.push(s);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw Error(h)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let a=e,s=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let n;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)n=s[2]?s[2].length:0,a=a.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let h=!1,l="";for(;e;){h||(l=""),h=!1;let u;if(this.options.extensions?.inline?.some((c)=>(u=c.call({lexer:this},e,o))?(e=e.substring(u.raw.length),o.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let c=o.at(-1);u.type==="text"&&c?.type==="text"?(c.raw+=u.raw,c.text+=u.text):o.push(u);continue}if(u=this.tokenizer.emStrong(e,a,l)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.del(e)){e=e.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),o.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),o.push(u);continue}let p=e;if(this.options.extensions?.startInline){let c=1/0,m=e.slice(1),x;this.options.extensions.startInline.forEach((w)=>{x=w.call({lexer:this},m),typeof x=="number"&&x>=0&&(c=Math.min(c,x))}),c<1/0&&c>=0&&(p=e.substring(0,c+1))}if(u=this.tokenizer.inlineText(p)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),h=!0;let c=o.at(-1);c?.type==="text"?(c.raw+=u.raw,c.text+=u.text):o.push(u);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return o}},ul=class{options;parser;constructor(r){this.options=r||po}space(r){return""}code({text:r,lang:e,escaped:o}){let a=(e||"").match(hr.notSpaceStart)?.[0],s=r.replace(hr.endingNewline,"")+`
|
|
201
|
+
`;return a?'<pre><code class="language-'+Vr(a)+'">'+(o?s:Vr(s,!0))+`</code></pre>
|
|
202
|
+
`:"<pre><code>"+(o?s:Vr(s,!0))+`</code></pre>
|
|
203
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
204
|
+
${this.parser.parse(r)}</blockquote>
|
|
205
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
|
|
206
|
+
`}hr(r){return`<hr>
|
|
207
|
+
`}list(r){let{ordered:e,start:o}=r,a="";for(let h=0;h<r.items.length;h++){let l=r.items[h];a+=this.listitem(l)}let s=e?"ol":"ul",n=e&&o!==1?' start="'+o+'"':"";return"<"+s+n+`>
|
|
208
|
+
`+a+"</"+s+`>
|
|
209
|
+
`}listitem(r){let e="";if(r.task){let o=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=o+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=o+" "+Vr(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):e+=o+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
|
|
210
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
211
|
+
`}table(r){let e="",o="";for(let s=0;s<r.header.length;s++)o+=this.tablecell(r.header[s]);e+=this.tablerow({text:o});let a="";for(let s=0;s<r.rows.length;s++){let n=r.rows[s];o="";for(let h=0;h<n.length;h++)o+=this.tablecell(n[h]);a+=this.tablerow({text:o})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
212
|
+
<thead>
|
|
213
|
+
`+e+`</thead>
|
|
214
|
+
`+a+`</table>
|
|
215
|
+
`}tablerow({text:r}){return`<tr>
|
|
216
|
+
${r}</tr>
|
|
217
|
+
`}tablecell(r){let e=this.parser.parseInline(r.tokens),o=r.header?"th":"td";return(r.align?`<${o} align="${r.align}">`:`<${o}>`)+e+`</${o}>
|
|
218
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Vr(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:o}){let a=this.parser.parseInline(o),s=Fm(r);if(s===null)return a;r=s;let n='<a href="'+r+'"';return e&&(n+=' title="'+Vr(e)+'"'),n+=">"+a+"</a>",n}image({href:r,title:e,text:o,tokens:a}){a&&(o=this.parser.parseInline(a,this.parser.textRenderer));let s=Fm(r);if(s===null)return Vr(o);r=s;let n=`<img src="${r}" alt="${o}"`;return e&&(n+=` title="${Vr(e)}"`),n+=">",n}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:Vr(r.text)}},vf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},Rr=class r{options;renderer;textRenderer;constructor(e){this.options=e||po,this.options.renderer=this.options.renderer||new ul,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vf}static parse(e,o){return new r(o).parse(e)}static parseInline(e,o){return new r(o).parseInline(e)}parse(e,o=!0){let a="";for(let s=0;s<e.length;s++){let n=e[s];if(this.options.extensions?.renderers?.[n.type]){let l=n,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){a+=u||"";continue}}let h=n;switch(h.type){case"space":{a+=this.renderer.space(h);continue}case"hr":{a+=this.renderer.hr(h);continue}case"heading":{a+=this.renderer.heading(h);continue}case"code":{a+=this.renderer.code(h);continue}case"table":{a+=this.renderer.table(h);continue}case"blockquote":{a+=this.renderer.blockquote(h);continue}case"list":{a+=this.renderer.list(h);continue}case"html":{a+=this.renderer.html(h);continue}case"def":{a+=this.renderer.def(h);continue}case"paragraph":{a+=this.renderer.paragraph(h);continue}case"text":{let l=h,u=this.renderer.text(l);for(;s+1<e.length&&e[s+1].type==="text";)l=e[++s],u+=`
|
|
219
|
+
`+this.renderer.text(l);o?a+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):a+=u;continue}default:{let l='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}parseInline(e,o=this.renderer){let a="";for(let s=0;s<e.length;s++){let n=e[s];if(this.options.extensions?.renderers?.[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){a+=l||"";continue}}let h=n;switch(h.type){case"escape":{a+=o.text(h);break}case"html":{a+=o.html(h);break}case"link":{a+=o.link(h);break}case"image":{a+=o.image(h);break}case"strong":{a+=o.strong(h);break}case"em":{a+=o.em(h);break}case"codespan":{a+=o.codespan(h);break}case"br":{a+=o.br(h);break}case"del":{a+=o.del(h);break}case"text":{a+=o.text(h);break}default:{let l='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}},Ia=class{options;block;constructor(r){this.options=r||po}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?Pr.lex:Pr.lexInline}provideParser(){return this.block?Rr.parse:Rr.parseInline}},kw=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Rr;Renderer=ul;TextRenderer=vf;Lexer=Pr;Tokenizer=cl;Hooks=Ia;constructor(...r){this.use(...r)}walkTokens(r,e){let o=[];for(let a of r)switch(o=o.concat(e.call(this,a)),a.type){case"table":{let s=a;for(let n of s.header)o=o.concat(this.walkTokens(n.tokens,e));for(let n of s.rows)for(let h of n)o=o.concat(this.walkTokens(h.tokens,e));break}case"list":{let s=a;o=o.concat(this.walkTokens(s.items,e));break}default:{let s=a;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach((n)=>{let h=s[n].flat(1/0);o=o.concat(this.walkTokens(h,e))}):s.tokens&&(o=o.concat(this.walkTokens(s.tokens,e)))}}return o}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((o)=>{let a={...o};if(a.async=this.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach((s)=>{if(!s.name)throw Error("extension name required");if("renderer"in s){let n=e.renderers[s.name];n?e.renderers[s.name]=function(...h){let l=s.renderer.apply(this,h);return l===!1&&(l=n.apply(this,h)),l}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let n=e[s.level];n?n.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),a.extensions=e),o.renderer){let s=this.defaults.renderer||new ul(this.defaults);for(let n in o.renderer){if(!(n in s))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let h=n,l=o.renderer[h],u=s[h];s[h]=(...p)=>{let c=l.apply(s,p);return c===!1&&(c=u.apply(s,p)),c||""}}a.renderer=s}if(o.tokenizer){let s=this.defaults.tokenizer||new cl(this.defaults);for(let n in o.tokenizer){if(!(n in s))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let h=n,l=o.tokenizer[h],u=s[h];s[h]=(...p)=>{let c=l.apply(s,p);return c===!1&&(c=u.apply(s,p)),c}}a.tokenizer=s}if(o.hooks){let s=this.defaults.hooks||new Ia;for(let n in o.hooks){if(!(n in s))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let h=n,l=o.hooks[h],u=s[h];Ia.passThroughHooks.has(n)?s[h]=(p)=>{if(this.defaults.async&&Ia.passThroughHooksRespectAsync.has(n))return(async()=>{let m=await l.call(s,p);return u.call(s,m)})();let c=l.call(s,p);return u.call(s,c)}:s[h]=(...p)=>{if(this.defaults.async)return(async()=>{let m=await l.apply(s,p);return m===!1&&(m=await u.apply(s,p)),m})();let c=l.apply(s,p);return c===!1&&(c=u.apply(s,p)),c}}a.hooks=s}if(o.walkTokens){let s=this.defaults.walkTokens,n=o.walkTokens;a.walkTokens=function(h){let l=[];return l.push(n.call(this,h)),s&&(l=l.concat(s.call(this,h))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Pr.lex(r,e??this.defaults)}parser(r,e){return Rr.parse(r,e??this.defaults)}parseMarkdown(r){return(e,o)=>{let a={...o},s={...this.defaults,...a},n=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return n(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=r),s.async)return(async()=>{let h=s.hooks?await s.hooks.preprocess(e):e,l=await(s.hooks?await s.hooks.provideLexer():r?Pr.lex:Pr.lexInline)(h,s),u=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(u,s.walkTokens));let p=await(s.hooks?await s.hooks.provideParser():r?Rr.parse:Rr.parseInline)(u,s);return s.hooks?await s.hooks.postprocess(p):p})().catch(n);try{s.hooks&&(e=s.hooks.preprocess(e));let h=(s.hooks?s.hooks.provideLexer():r?Pr.lex:Pr.lexInline)(e,s);s.hooks&&(h=s.hooks.processAllTokens(h)),s.walkTokens&&this.walkTokens(h,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():r?Rr.parse:Rr.parseInline)(h,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(h){return n(h)}}}onError(r,e){return(o)=>{if(o.message+=`
|
|
220
|
+
Please report this to https://github.com/markedjs/marked.`,r){let a="<p>An error occurred:</p><pre>"+Vr(o.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(o);throw o}}},fo=new kw;function Be(r,e){return fo.parse(r,e)}Be.options=Be.setOptions=function(r){return fo.setOptions(r),Be.defaults=fo.defaults,Em(Be.defaults),Be};Be.getDefaults=Cf;Be.defaults=po;Be.use=function(...r){return fo.use(...r),Be.defaults=fo.defaults,Em(Be.defaults),Be};Be.walkTokens=function(r,e){return fo.walkTokens(r,e)};Be.parseInline=fo.parseInline;Be.Parser=Rr;Be.parser=Rr.parse;Be.Renderer=ul;Be.TextRenderer=vf;Be.Lexer=Pr;Be.lexer=Pr.lex;Be.Tokenizer=cl;Be.Hooks=Ia;Be.parse=Be;var{options:jH,setOptions:GH,use:XH,walkTokens:VH,parseInline:KH}=Be;var ZH=Rr.parse,QH=Pr.lex;function ss(r){var e=[];for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];var a=Array.from(typeof r==="string"?[r]:r);a[a.length-1]=a[a.length-1].replace(/\r?\n([\t ]*)$/,"");var s=a.reduce(function(l,u){var p=u.match(/\n([\t ]+|(?!\s).)/g);if(p)return l.concat(p.map(function(c){var m,x;return(x=(m=c.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&x!==void 0?x:0}));return l},[]);if(s.length){var n=new RegExp(`
|
|
221
|
+
[ ]{`.concat(Math.min.apply(Math,s),"}"),"g");a=a.map(function(l){return l.replace(n,`
|
|
222
|
+
`)})}a[0]=a[0].replace(/^\r?\n/,"");var h=a[0];return e.forEach(function(l,u){var p=h.match(/(?:^|\n)( *)$/),c=p?p[1]:"",m=l;if(typeof l==="string"&&l.includes(`
|
|
223
|
+
`))m=String(l).split(`
|
|
224
|
+
`).map(function(x,w){return w===0?x:"".concat(c).concat(x)}).join(`
|
|
225
|
+
`);h+=m+a[u+1]}),h}var Ff=typeof performance<"u"&&typeof performance.now==="function",ws=t(()=>Ff?performance.now():0,"now"),Lf="\uD83E\uDDDC ",ww="Mermaid render",Sw="Mermaid",Tw={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},u9=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{t(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(r)}tickSync(r,e){if(!this.enabled)return e();let o=ws();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ws()-o)}}async tick(r,e){if(!this.enabled)return e();let o=ws();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ws()-o)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let r=this.roots.at(-1),e=this.runLabel??r?.name;if(r){if(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(r,e)}return this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let e={name:r,start:ws(),duration:-1,children:[]},o=this.stack.at(-1);if(o)o.children.push(e);else this.roots.push(e);if(this.stack.push(e),Ff&&typeof performance.mark==="function")try{performance.mark(`${Lf}${r} ▶`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let e=ws();if(r.duration=e-r.start,Ff&&typeof performance.measure==="function")try{performance.measure(`${Lf}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:ww,trackGroup:Sw,color:Tw[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;let o=r.duration,a=e&&e!==r.name?`${r.name} [${e}]`:r.name,s=["ms % phase"],n=t((l,u)=>{let p=" ".repeat(u),c=l.duration.toFixed(1).padStart(8),m=o>0?`${(l.duration/o*100).toFixed(0).padStart(3)}%`:" -";s.push(`${c} ${m} ${p}${l.name}`);for(let x of l.children)n(x,u+1);if(l.children.length>0){let x=l.children.reduce((_,v)=>_+v.duration,0),w=l.duration-x;if(w>0.5){let _=w.toFixed(1).padStart(8);s.push(`${_} ${p} (self)`)}}},"walk");n(r,0);let h=Object.keys(this.buckets);if(h.length>0){s.push("—— buckets (summed) ——");for(let l of h)s.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Lf}mermaid render profile · ${a}
|
|
226
|
+
${s.join(`
|
|
227
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function Ym(r,{markdownAutoWrap:e}){let a=r.replace(/<br\/>/g,`
|
|
228
|
+
`).replace(/\n{2,}/g,`
|
|
229
|
+
`);return ss(a)}t(Ym,"preprocessMarkdown");function Um(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((e)=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((o)=>({content:o,type:"normal"}))??[])}t(Um,"nonMarkdownToLines");function cs(r,e={}){let o=Ym(r,e),a=Be.lexer(o),s=[[]],n=0;function h(l,u="normal"){if(l.type==="text")l.text.split(`
|
|
230
|
+
`).forEach((c,m)=>{if(m!==0)n++,s.push([]);c.split(" ").forEach((x)=>{if(x=x.replace(/'/g,"'"),x)s[n].push({content:x,type:u})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((p)=>{h(p,l.type)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"})}return t(h,"processNode"),a.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((u)=>{h(u)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"});else s[n].push({content:l.raw,type:"normal"})}),s}t(cs,"markdownToLines");function jm(r){if(!r)return"";return`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`}t(jm,"nonMarkdownToHTML");function Gm(r,{markdownAutoWrap:e}={}){let o=Be.lexer(r);function a(s){if(s.type==="text"){if(e===!1)return s.text.replace(/\n */g,"<br/>").replace(/ /g," ");return s.text.replace(/\n */g,"<br/>")}else if(s.type==="strong")return`<strong>${s.tokens?.map(a).join("")}</strong>`;else if(s.type==="em")return`<em>${s.tokens?.map(a).join("")}</em>`;else if(s.type==="paragraph")return`<p>${s.tokens?.map(a).join("")}</p>`;else if(s.type==="space")return"";else if(s.type==="html")return`${s.text}`;else if(s.type==="escape")return s.text;return i.warn(`Unsupported markdown: ${s.type}`),s.raw}return t(a,"output"),o.map(a).join("")}t(Gm,"markdownToHTML");var _w=function(r){var e=function(){},o=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(p){return setTimeout(p,16)};function a(){var p=this;p.reads=[],p.writes=[],p.raf=o.bind(r),e("initialized",p)}t(a,"FastDom"),a.prototype={constructor:a,runTasks:t(function(p){e("run tasks");var c;while(c=p.shift())c()},"runTasks"),measure:t(function(p,c){e("measure");var m=!c?p:p.bind(c);return this.reads.push(m),s(this),m},"measure"),mutate:t(function(p,c){e("mutate");var m=!c?p:p.bind(c);return this.writes.push(m),s(this),m},"mutate"),clear:t(function(p){return e("clear",p),h(this.reads,p)||h(this.writes,p)},"clear"),extend:t(function(p){if(e("extend",p),typeof p!="object")throw Error("expected object");var c=Object.create(this);if(l(c,p),c.fastdom=this,c.initialize)c.initialize();return c},"extend"),catch:null};function s(p){if(!p.scheduled)p.scheduled=!0,p.raf(n.bind(null,p)),e("flush scheduled")}t(s,"scheduleFlush");function n(p){e("flush");var{writes:c,reads:m}=p,x;try{e("flushing reads",m.length),p.runTasks(m),e("flushing writes",c.length),p.runTasks(c)}catch(w){x=w}if(p.scheduled=!1,m.length||c.length)s(p);if(x)if(e("task errored",x.message),p.catch)p.catch(x);else throw x}t(n,"flush");function h(p,c){var m=p.indexOf(c);return!!~m&&!!p.splice(m,1)}t(h,"remove");function l(p,c){for(var m in c)if(c.hasOwnProperty(m))p[m]=c[m]}t(l,"mixin");var u=r.fastdom=r.fastdom||new a;return u}(typeof window<"u"?window:globalThis),Xm={initialize:t(function(){this._tasks=new Map},"initialize"),mutate:t(function(r,e){return Af(this,"mutate",r,e)},"mutate"),measure:t(function(r,e){return Af(this,"measure",r,e)},"measure"),clear:t(function(r){var e=this._tasks,o=e.get(r);this.fastdom.clear(o),e.delete(r)},"clear")};function Af(r,e,o,a){var{_tasks:s,fastdom:n}=r,h,l=new Promise(function(u,p){h=n[e](function(){s.delete(l);try{u(a?o.call(a):o())}catch(c){p(c)}},a)});return s.set(l,h),l}t(Af,"create");var{initialize:p9,mutate:g9,measure:m9,clear:y9}=Xm,Bw=Xm,vw=_w.extend({raf(r){if(typeof queueMicrotask==="function")queueMicrotask(r);else setTimeout(r,0)}}).extend(Bw),Ai=vw;function Vm(r){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(r)].map((e)=>e.segment);return[...r]}t(Vm,"splitTextToChars");function Km(r,e){let o=Vm(e.content);return Of(r,[],o,e.type)}t(Km,"splitWordToFitWidth");function Of(r,e,o,a){if(o.length===0)return[{content:e.join(""),type:a},{content:"",type:a}];let[s,...n]=o,h=[...e,s];if(r([{content:h.join(""),type:a}]))return Of(r,h,n,a);if(e.length===0&&s)e.push(s),o.shift();return[{content:e.join(""),type:a},{content:o.join(""),type:a}]}t(Of,"splitWordToFitWidthRecursion");function Zm(r,e){if(r.some(({content:o})=>o.includes(`
|
|
231
|
+
`)))throw Error("splitLineToFitWidth does not support newlines in the line");return pl(r,e)}t(Zm,"splitLineToFitWidth");function pl(r,e,o=[],a=[]){if(r.length===0){if(a.length>0)o.push(a);return o.length>0?o:[]}let s="";if(r[0].content===" ")s=" ",r.shift();let n=r.shift()??{content:" ",type:"normal"},h=[...a];if(s!=="")h.push({content:s,type:"normal"});if(h.push(n),e(h))return pl(r,e,o,h);if(a.length>0)o.push(a),r.unshift(n);else if(n.content){let[l,u]=Km(e,n);if(o.push([l]),u.content)r.unshift(u)}return pl(r,e,o)}t(pl,"splitLineToFitWidthRecursion");function Mf(r,e){if(e)r.attr("style",e)}t(Mf,"applyStyle");var Hm=16384;async function Qm(r,e,o,a,s=!1,n=A(),h=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*o,Hm)}px`),l.attr("height",`${Math.min(10*o,Hm)}px`);let u=l.append("xhtml:div"),p=ze(e.label)?await ai(e.label.replace(C.lineBreakRegex,`
|
|
232
|
+
`),n):G(e.label,n),c=e.isNode?"nodeLabel":"edgeLabel",m=u.append("span");if(m.html(p),Mf(m,e.labelStyle),m.attr("class",`${c} ${a}`),Mf(u,e.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("line-height","1.5"),o!==Number.POSITIVE_INFINITY)u.style("max-width",o+"px"),u.style("text-align","center");if(u.attr("xmlns","http://www.w3.org/1999/xhtml"),s)u.attr("class","labelBkg");let x=await Ai.measure(()=>u.node().getBoundingClientRect());if(x.width===o)u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",o+"px");else if(x.width<h)u.style("display","table"),u.style("width",h+"px"),u.style("text-align","center");return l.node()}t(Qm,"addHtmlSpan");function gl(r,e,o,a=!1){let s=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*o-0.1+"em").attr("dy",o+"em");if(a)s.attr("text-anchor","middle");return s}t(gl,"createTspan");function Jm(r,e,o){let a=r.append("text"),s=gl(a,1,e);ml(s,o);let n=s.node().getComputedTextLength();return a.remove(),n}t(Jm,"computeWidthOfText");function mc(r,e,o){let a=r.append("text"),s=gl(a,1,e);ml(s,[{content:o,type:"normal"}]);let n=s.node()?.getBoundingClientRect();if(n)a.remove();return n}t(mc,"computeDimensionOfText");function ty(r,e,o,a=!1,s=!1){let h=e.append("g"),l=h.insert("rect").attr("class","background").attr("style","stroke: none"),u=h.append("text").attr("y","-10.1");if(s)u.attr("text-anchor","middle");let p=0;for(let c of o){let m=t((w)=>Jm(h,1.1,w)<=r,"checkWidth"),x=m(c)?[c]:Zm(c,m);for(let w of x){let _=gl(u,p,1.1,s);ml(_,w),p++}}if(a){let c=u.node().getBBox(),m=2;return l.attr("x",c.x-2).attr("y",c.y-2).attr("width",c.width+4).attr("height",c.height+4),h.node()}else return u.node()}t(ty,"createFormattedText");function Ef(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(o,a)=>{switch(a){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return o}})}t(Ef,"decodeHTMLEntities");function ml(r,e){r.text(""),e.forEach((o,a)=>{let s=r.append("tspan").attr("font-style",o.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",o.type==="strong"?"bold":"normal");if(a===0)s.text(Ef(o.content));else s.text(" "+Ef(o.content))})}t(ml,"updateTextContentAndStyles");async function ey(r,e={}){let o=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,n,h)=>(o.push((async()=>{let l=`${n}:${h}`;if(await rl(l))return await en(l,void 0,{class:"label-icon"});else return`<i class='${G(s,e).replace(":"," ")}'></i>`})()),s));let a=await Promise.all(o);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}t(ey,"replaceIconSubstring");var lt=t(async(r,e="",{style:o="",isTitle:a=!1,classes:s="",useHtmlLabels:n=!0,markdown:h=!0,isNode:l=!0,width:u=200,minWidth:p=0,addSvgBackground:c=!1}={},m)=>{if(i.debug("XYZ createText",e,o,a,s,n,l,"addSvgBackground: ",c),n){let x=h?Gm(e,m):jm(e),w=await ey(Wn(x),m),_=e.replace(/\\\\/g,"\\"),v={isNode:l,label:ze(e)?_:w,labelStyle:o.replace("fill:","color:")};return await Qm(r,v,u,s,c,m,p)}else{let x=Wn(e.replace(/<br\s*\/?>/g,"<br/>")),w=h?cs(x.replace("<br>","<br/>"),m):Um(x),_=ty(u,r,w,e?c:!1,!l);if(l){if(/stroke:/.exec(o))o=o.replace("stroke:","lineColor:");let v=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");y(_).attr("style",v)}else{let v=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");y(_).select("rect").attr("style",v.replace(/background:/g,"fill:"));let E=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");y(_).select("text").attr("style",E)}if(a)y(_).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else y(_).selectAll("tspan.text-outer-tspan").classed("row",!0);return _}},"createText");var Xi=new Set(["redux-color","redux-dark-color"]),Lw=12,Fw=64,Oe=t((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),Me=t((r,e)=>r!=null&&Xi.has(r)&&Oe(e),"isColorTheme"),Aw=/^[\w-]+$/,Re=t((r)=>{let e=typeof r==="string"||typeof r==="number"?String(r):"";return Aw.test(e)?e:"classic"},"safeLook"),vn=t((r)=>Oe(r)?r.length:0,"paletteSlotCount"),zt=t((r,e)=>{if(Oe(e))return vn(e);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Fw?r:Lw},"colorSlotCount"),Ht=t((r,e,o,a)=>{if(e===void 0||!Me(o,a))return;let s=e%vn(a);r.attr("data-color-id",`color-${s}`)},"stampColorSlot");function If(r,e,o){if(r&&r.length){let[a,s]=e,n=Math.PI/180*o,h=Math.cos(n),l=Math.sin(n);for(let u of r){let[p,c]=u;u[0]=(p-a)*h-(c-s)*l+a,u[1]=(p-a)*l+(c-s)*h+s}}}function Mw(r,e){return r[0]===e[0]&&r[1]===e[1]}function Ew(r,e,o,a=1){let s=o,n=Math.max(e,0.1),h=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(s)for(let p of h)If(p,l,s);let u=function(p,c,m){let x=[];for(let U of p){let V=[...U];Mw(V[0],V[V.length-1])||V.push([V[0][0],V[0][1]]),V.length>2&&x.push(V)}let w=[];c=Math.max(c,0.1);let _=[];for(let U of x)for(let V=0;V<U.length-1;V++){let Z=U[V],J=U[V+1];if(Z[1]!==J[1]){let ut=Math.min(Z[1],J[1]);_.push({ymin:ut,ymax:Math.max(Z[1],J[1]),x:ut===Z[1]?Z[0]:J[0],islope:(J[0]-Z[0])/(J[1]-Z[1])})}}if(_.sort((U,V)=>U.ymin<V.ymin?-1:U.ymin>V.ymin?1:U.x<V.x?-1:U.x>V.x?1:U.ymax===V.ymax?0:(U.ymax-V.ymax)/Math.abs(U.ymax-V.ymax)),!_.length)return w;let v=[],E=_[0].ymin,W=0;for(;v.length||_.length;){if(_.length){let U=-1;for(let V=0;V<_.length&&!(_[V].ymin>E);V++)U=V;_.splice(0,U+1).forEach((V)=>{v.push({s:E,edge:V})})}if(v=v.filter((U)=>!(U.edge.ymax<=E)),v.sort((U,V)=>U.edge.x===V.edge.x?0:(U.edge.x-V.edge.x)/Math.abs(U.edge.x-V.edge.x)),(m!==1||W%c==0)&&v.length>1)for(let U=0;U<v.length;U+=2){let V=U+1;if(V>=v.length)break;let Z=v[U].edge,J=v[V].edge;w.push([[Math.round(Z.x),E],[Math.round(J.x),E]])}E+=m,v.forEach((U)=>{U.edge.x=U.edge.x+m*U.edge.islope}),W++}return w}(h,n,a);if(s){for(let p of h)If(p,l,-s);(function(p,c,m){let x=[];p.forEach((w)=>x.push(...w)),If(x,c,m)})(u,l,-s)}return u}function Na(r,e){var o;let a=e.hachureAngle+90,s=e.hachureGap;s<0&&(s=4*e.strokeWidth),s=Math.round(Math.max(s,0.1));let n=1;return e.roughness>=1&&(((o=e.randomizer)===null||o===void 0?void 0:o.next())||Math.random())>0.7&&(n=s),Ew(r,s,a,n||1)}class _l{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let o=Na(r,e);return{type:"fillSketch",ops:this.renderLines(o,e)}}renderLines(r,e){let o=[];for(let a of r)o.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],e));return o}}function Bl(r){let e=r[0],o=r[1];return Math.sqrt(Math.pow(e[0]-o[0],2)+Math.pow(e[1]-o[1],2))}class cy extends _l{fillPolygons(r,e){let o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.max(o,0.1);let a=Na(r,Object.assign({},e,{hachureGap:o})),s=Math.PI/180*e.hachureAngle,n=[],h=0.5*o*Math.cos(s),l=0.5*o*Math.sin(s);for(let[u,p]of a)Bl([u,p])&&n.push([[u[0]-h,u[1]+l],[...p]],[[u[0]+h,u[1]-l],[...p]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class uy extends _l{fillPolygons(r,e){let o=this._fillPolygons(r,e),a=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),s=this._fillPolygons(r,a);return o.ops=o.ops.concat(s.ops),o}}class fy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Na(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(o,e)}dotsOnLines(r,e){let o=[],a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.max(a,0.1);let s=e.fillWeight;s<0&&(s=e.strokeWidth/2);let n=a/4;for(let h of r){let l=Bl(h),u=l/a,p=Math.ceil(u)-1,c=l-p*a,m=(h[0][0]+h[1][0])/2-a/4,x=Math.min(h[0][1],h[1][1]);for(let w=0;w<p;w++){let _=x+c+w*a,v=m-n+2*Math.random()*n,E=_-n+2*Math.random()*n,W=this.helper.ellipse(v,E,s,s,e);o.push(...W.ops)}}return{type:"fillSketch",ops:o}}}class dy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Na(r,e);return{type:"fillSketch",ops:this.dashedLine(o,e)}}dashedLine(r,e){let o=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,a=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,s=[];return r.forEach((n)=>{let h=Bl(n),l=Math.floor(h/(o+a)),u=(h+a-l*(o+a))/2,p=n[0],c=n[1];p[0]>c[0]&&(p=n[1],c=n[0]);let m=Math.atan((c[1]-p[1])/(c[0]-p[0]));for(let x=0;x<l;x++){let w=x*(o+a),_=w+o,v=[p[0]+w*Math.cos(m)+u*Math.cos(m),p[1]+w*Math.sin(m)+u*Math.sin(m)],E=[p[0]+_*Math.cos(m)+u*Math.cos(m),p[1]+_*Math.sin(m)+u*Math.sin(m)];s.push(...this.helper.doubleLineOps(v[0],v[1],E[0],E[1],e))}}),s}}class py{constructor(r){this.helper=r}fillPolygons(r,e){let o=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,a=e.zigzagOffset<0?o:e.zigzagOffset,s=Na(r,e=Object.assign({},e,{hachureGap:o+a}));return{type:"fillSketch",ops:this.zigzagLines(s,a,e)}}zigzagLines(r,e,o){let a=[];return r.forEach((s)=>{let n=Bl(s),h=Math.round(n/(2*e)),l=s[0],u=s[1];l[0]>u[0]&&(l=s[1],u=s[0]);let p=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let c=0;c<h;c++){let m=2*c*e,x=2*(c+1)*e,w=Math.sqrt(2*Math.pow(e,2)),_=[l[0]+m*Math.cos(p),l[1]+m*Math.sin(p)],v=[l[0]+x*Math.cos(p),l[1]+x*Math.sin(p)],E=[_[0]+w*Math.cos(p+Math.PI/4),_[1]+w*Math.sin(p+Math.PI/4)];a.push(...this.helper.doubleLineOps(_[0],_[1],E[0],E[1],o),...this.helper.doubleLineOps(E[0],E[1],v[0],v[1],o))}}),a}}var xr={};class gy{constructor(r){this.seed=r}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}var Ow=0,$f=1,ry=2,yl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Df(r,e){return r.type===e}function zf(r){let e=[],o=function(h){let l=[];for(;h!=="";)if(h.match(/^([ \t\r\n,]+)/))h=h.substr(RegExp.$1.length);else if(h.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Ow,text:RegExp.$1},h=h.substr(RegExp.$1.length);else{if(!h.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:$f,text:`${parseFloat(RegExp.$1)}`},h=h.substr(RegExp.$1.length)}return l[l.length]={type:ry,text:""},l}(r),a="BOD",s=0,n=o[s];for(;!Df(n,ry);){let h=0,l=[];if(a==="BOD"){if(n.text!=="M"&&n.text!=="m")return zf("M0,0"+r);s++,h=yl[n.text],a=n.text}else Df(n,$f)?h=yl[a]:(s++,h=yl[n.text],a=n.text);if(!(s+h<o.length))throw Error("Path data ended short");for(let u=s;u<s+h;u++){let p=o[u];if(!Df(p,$f))throw Error("Param not a number: "+a+","+p.text);l[l.length]=+p.text}if(typeof yl[a]!="number")throw Error("Bad segment: "+a);{let u={key:a,data:l};e.push(u),s+=h,n=o[s],a==="M"&&(a="L"),a==="m"&&(a="l")}}return e}function my(r){let e=0,o=0,a=0,s=0,n=[];for(let{key:h,data:l}of r)switch(h){case"M":n.push({key:"M",data:[...l]}),[e,o]=l,[a,s]=l;break;case"m":e+=l[0],o+=l[1],n.push({key:"M",data:[e,o]}),a=e,s=o;break;case"L":n.push({key:"L",data:[...l]}),[e,o]=l;break;case"l":e+=l[0],o+=l[1],n.push({key:"L",data:[e,o]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],o=l[5];break;case"c":{let u=l.map((p,c)=>c%2?p+o:p+e);n.push({key:"C",data:u}),e=u[4],o=u[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],o=l[3];break;case"q":{let u=l.map((p,c)=>c%2?p+o:p+e);n.push({key:"Q",data:u}),e=u[2],o=u[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],o=l[6];break;case"a":e+=l[5],o+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,o]});break;case"H":n.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...l]}),o=l[0];break;case"v":o+=l[0],n.push({key:"V",data:[o]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],o=l[3];break;case"s":{let u=l.map((p,c)=>c%2?p+o:p+e);n.push({key:"S",data:u}),e=u[2],o=u[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],o=l[1];break;case"t":e+=l[0],o+=l[1],n.push({key:"T",data:[e,o]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=a,o=s}return n}function yy(r){let e=[],o="",a=0,s=0,n=0,h=0,l=0,u=0;for(let{key:p,data:c}of r){switch(p){case"M":e.push({key:"M",data:[...c]}),[a,s]=c,[n,h]=c;break;case"C":e.push({key:"C",data:[...c]}),a=c[4],s=c[5],l=c[2],u=c[3];break;case"L":e.push({key:"L",data:[...c]}),[a,s]=c;break;case"H":a=c[0],e.push({key:"L",data:[a,s]});break;case"V":s=c[0],e.push({key:"L",data:[a,s]});break;case"S":{let m=0,x=0;o==="C"||o==="S"?(m=a+(a-l),x=s+(s-u)):(m=a,x=s),e.push({key:"C",data:[m,x,...c]}),l=c[0],u=c[1],a=c[2],s=c[3];break}case"T":{let[m,x]=c,w=0,_=0;o==="Q"||o==="T"?(w=a+(a-l),_=s+(s-u)):(w=a,_=s);let v=a+2*(w-a)/3,E=s+2*(_-s)/3,W=m+2*(w-m)/3,U=x+2*(_-x)/3;e.push({key:"C",data:[v,E,W,U,m,x]}),l=w,u=_,a=m,s=x;break}case"Q":{let[m,x,w,_]=c,v=a+2*(m-a)/3,E=s+2*(x-s)/3,W=w+2*(m-w)/3,U=_+2*(x-_)/3;e.push({key:"C",data:[v,E,W,U,w,_]}),l=m,u=x,a=w,s=_;break}case"A":{let m=Math.abs(c[0]),x=Math.abs(c[1]),w=c[2],_=c[3],v=c[4],E=c[5],W=c[6];if(m===0||x===0)e.push({key:"C",data:[a,s,E,W,E,W]}),a=E,s=W;else if(a!==E||s!==W)xy(a,s,E,W,m,x,w,_,v).forEach(function(U){e.push({key:"C",data:U})}),a=E,s=W;break}case"Z":e.push({key:"Z",data:[]}),a=n,s=h}o=p}return e}function Pa(r,e,o){return[r*Math.cos(o)-e*Math.sin(o),r*Math.sin(o)+e*Math.cos(o)]}function xy(r,e,o,a,s,n,h,l,u,p){let c=(m=h,Math.PI*m/180);var m;let x=[],w=0,_=0,v=0,E=0;if(p)[w,_,v,E]=p;else{[r,e]=Pa(r,e,-c),[o,a]=Pa(o,a,-c);let ot=(r-o)/2,st=(e-a)/2,xt=ot*ot/(s*s)+st*st/(n*n);xt>1&&(xt=Math.sqrt(xt),s*=xt,n*=xt);let it=s*s,_t=n*n,Et=it*_t-it*st*st-_t*ot*ot,Vt=it*st*st+_t*ot*ot,Xt=(l===u?-1:1)*Math.sqrt(Math.abs(Et/Vt));v=Xt*s*st/n+(r+o)/2,E=Xt*-n*ot/s+(e+a)/2,w=Math.asin(parseFloat(((e-E)/n).toFixed(9))),_=Math.asin(parseFloat(((a-E)/n).toFixed(9))),r<v&&(w=Math.PI-w),o<v&&(_=Math.PI-_),w<0&&(w=2*Math.PI+w),_<0&&(_=2*Math.PI+_),u&&w>_&&(w-=2*Math.PI),!u&&_>w&&(_-=2*Math.PI)}let W=_-w;if(Math.abs(W)>120*Math.PI/180){let ot=_,st=o,xt=a;_=u&&_>w?w+120*Math.PI/180*1:w+120*Math.PI/180*-1,x=xy(o=v+s*Math.cos(_),a=E+n*Math.sin(_),st,xt,s,n,h,0,u,[_,ot,v,E])}W=_-w;let U=Math.cos(w),V=Math.sin(w),Z=Math.cos(_),J=Math.sin(_),ut=Math.tan(W/4),at=1.3333333333333333*s*ut,mt=1.3333333333333333*n*ut,bt=[r,e],Lt=[r+at*V,e-mt*U],wt=[o+at*J,a-mt*Z],kt=[o,a];if(Lt[0]=2*bt[0]-Lt[0],Lt[1]=2*bt[1]-Lt[1],p)return[Lt,wt,kt].concat(x);{x=[Lt,wt,kt].concat(x);let ot=[];for(let st=0;st<x.length;st+=3){let xt=Pa(x[st][0],x[st][1],c),it=Pa(x[st+1][0],x[st+1][1],c),_t=Pa(x[st+2][0],x[st+2][1],c);ot.push([xt[0],xt[1],it[0],it[1],_t[0],_t[1]])}return ot}}var Iw={randOffset:function(r,e){return ue(r,e)},randOffsetWithRange:function(r,e,o){return wl(r,e,o)},ellipse:function(r,e,o,a,s){let n=by(o,a,s);return qf(r,e,s,n).opset},doubleLineOps:function(r,e,o,a,s){return io(r,e,o,a,s,!0)}};function Cy(r,e,o,a,s){return{type:"path",ops:io(r,e,o,a,s)}}function bl(r,e,o){let a=(r||[]).length;if(a>2){let s=[];for(let n=0;n<a-1;n++)s.push(...io(r[n][0],r[n][1],r[n+1][0],r[n+1][1],o));return e&&s.push(...io(r[a-1][0],r[a-1][1],r[0][0],r[0][1],o)),{type:"path",ops:s}}return a===2?Cy(r[0][0],r[0][1],r[1][0],r[1][1],o):{type:"path",ops:[]}}function $w(r,e,o,a,s){return function(n,h){return bl(n,!0,h)}([[r,e],[r+o,e],[r+o,e+a],[r,e+a]],s)}function iy(r,e){if(r.length){let o=typeof r[0][0]=="number"?[r]:r,a=xl(o[0],1*(1+0.2*e.roughness),e),s=e.disableMultiStroke?[]:xl(o[0],1.5*(1+0.22*e.roughness),ay(e));for(let n=1;n<o.length;n++){let h=o[n];if(h.length){let l=xl(h,1*(1+0.2*e.roughness),e),u=e.disableMultiStroke?[]:xl(h,1.5*(1+0.22*e.roughness),ay(e));for(let p of l)p.op!=="move"&&a.push(p);for(let p of u)p.op!=="move"&&s.push(p)}}return{type:"path",ops:a.concat(s)}}return{type:"path",ops:[]}}function by(r,e,o){let a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(e/2,2))/2)),s=Math.ceil(Math.max(o.curveStepCount,o.curveStepCount/Math.sqrt(200)*a)),n=2*Math.PI/s,h=Math.abs(r/2),l=Math.abs(e/2),u=1-o.curveFitting;return h+=ue(h*u,o),l+=ue(l*u,o),{increment:n,rx:h,ry:l}}function qf(r,e,o,a){let[s,n]=ny(a.increment,r,e,a.rx,a.ry,1,a.increment*wl(0.1,wl(0.4,1,o),o),o),h=Sl(s,null,o);if(!o.disableMultiStroke&&o.roughness!==0){let[l]=ny(a.increment,r,e,a.rx,a.ry,1.5,0,o),u=Sl(l,null,o);h=h.concat(u)}return{estimatedPoints:n,opset:{type:"path",ops:h}}}function oy(r,e,o,a,s,n,h,l,u){let p=r,c=e,m=Math.abs(o/2),x=Math.abs(a/2);m+=ue(0.01*m,u),x+=ue(0.01*x,u);let w=s,_=n;for(;w<0;)w+=2*Math.PI,_+=2*Math.PI;_-w>2*Math.PI&&(w=0,_=2*Math.PI);let v=2*Math.PI/u.curveStepCount,E=Math.min(v/2,(_-w)/2),W=ly(E,p,c,m,x,w,_,1,u);if(!u.disableMultiStroke){let U=ly(E,p,c,m,x,w,_,1.5,u);W.push(...U)}return h&&(l?W.push(...io(p,c,p+m*Math.cos(w),c+x*Math.sin(w),u),...io(p,c,p+m*Math.cos(_),c+x*Math.sin(_),u)):W.push({op:"lineTo",data:[p,c]},{op:"lineTo",data:[p+m*Math.cos(w),c+x*Math.sin(w)]})),{type:"path",ops:W}}function sy(r,e){let o=yy(my(zf(r))),a=[],s=[0,0],n=[0,0];for(let{key:h,data:l}of o)switch(h){case"M":n=[l[0],l[1]],s=[l[0],l[1]];break;case"L":a.push(...io(n[0],n[1],l[0],l[1],e)),n=[l[0],l[1]];break;case"C":{let[u,p,c,m,x,w]=l;a.push(...Dw(u,p,c,m,x,w,n,e)),n=[x,w];break}case"Z":a.push(...io(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]]}return{type:"path",ops:a}}function Pf(r,e){let o=[];for(let a of r)if(a.length){let s=e.maxRandomnessOffset||0,n=a.length;if(n>2){o.push({op:"move",data:[a[0][0]+ue(s,e),a[0][1]+ue(s,e)]});for(let h=1;h<n;h++)o.push({op:"lineTo",data:[a[h][0]+ue(s,e),a[h][1]+ue(s,e)]})}}return{type:"fillPath",ops:o}}function Ss(r,e){return function(o,a){let s=o.fillStyle||"hachure";if(!xr[s])switch(s){case"zigzag":xr[s]||(xr[s]=new cy(a));break;case"cross-hatch":xr[s]||(xr[s]=new uy(a));break;case"dots":xr[s]||(xr[s]=new fy(a));break;case"dashed":xr[s]||(xr[s]=new dy(a));break;case"zigzag-line":xr[s]||(xr[s]=new py(a));break;default:s="hachure",xr[s]||(xr[s]=new _l(a))}return xr[s]}(e,Iw).fillPolygons(r,e)}function ay(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function ky(r){return r.randomizer||(r.randomizer=new gy(r.seed||0)),r.randomizer.next()}function wl(r,e,o,a=1){return o.roughness*a*(ky(o)*(e-r)+r)}function ue(r,e,o=1){return wl(-r,r,e,o)}function io(r,e,o,a,s,n=!1){let h=n?s.disableMultiStrokeFill:s.disableMultiStroke,l=Nf(r,e,o,a,s,!0,!1);if(h)return l;let u=Nf(r,e,o,a,s,!0,!0);return l.concat(u)}function Nf(r,e,o,a,s,n,h){let l=Math.pow(r-o,2)+Math.pow(e-a,2),u=Math.sqrt(l),p=1;p=u<200?1:u>500?0.4:-0.0016668*u+1.233334;let c=s.maxRandomnessOffset||0;c*c*100>l&&(c=u/10);let m=c/2,x=0.2+0.2*ky(s),w=s.bowing*s.maxRandomnessOffset*(a-e)/200,_=s.bowing*s.maxRandomnessOffset*(r-o)/200;w=ue(w,s,p),_=ue(_,s,p);let v=[],E=()=>ue(m,s,p),W=()=>ue(c,s,p),U=s.preserveVertices;return n&&(h?v.push({op:"move",data:[r+(U?0:E()),e+(U?0:E())]}):v.push({op:"move",data:[r+(U?0:ue(c,s,p)),e+(U?0:ue(c,s,p))]})),h?v.push({op:"bcurveTo",data:[w+r+(o-r)*x+E(),_+e+(a-e)*x+E(),w+r+2*(o-r)*x+E(),_+e+2*(a-e)*x+E(),o+(U?0:E()),a+(U?0:E())]}):v.push({op:"bcurveTo",data:[w+r+(o-r)*x+W(),_+e+(a-e)*x+W(),w+r+2*(o-r)*x+W(),_+e+2*(a-e)*x+W(),o+(U?0:W()),a+(U?0:W())]}),v}function xl(r,e,o){if(!r.length)return[];let a=[];a.push([r[0][0]+ue(e,o),r[0][1]+ue(e,o)]),a.push([r[0][0]+ue(e,o),r[0][1]+ue(e,o)]);for(let s=1;s<r.length;s++)a.push([r[s][0]+ue(e,o),r[s][1]+ue(e,o)]),s===r.length-1&&a.push([r[s][0]+ue(e,o),r[s][1]+ue(e,o)]);return Sl(a,null,o)}function Sl(r,e,o){let a=r.length,s=[];if(a>3){let n=[],h=1-o.curveTightness;s.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<a;l++){let u=r[l];n[0]=[u[0],u[1]],n[1]=[u[0]+(h*r[l+1][0]-h*r[l-1][0])/6,u[1]+(h*r[l+1][1]-h*r[l-1][1])/6],n[2]=[r[l+1][0]+(h*r[l][0]-h*r[l+2][0])/6,r[l+1][1]+(h*r[l][1]-h*r[l+2][1])/6],n[3]=[r[l+1][0],r[l+1][1]],s.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&e.length===2){let l=o.maxRandomnessOffset;s.push({op:"lineTo",data:[e[0]+ue(l,o),e[1]+ue(l,o)]})}}else a===3?(s.push({op:"move",data:[r[1][0],r[1][1]]}),s.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):a===2&&s.push(...Nf(r[0][0],r[0][1],r[1][0],r[1][1],o,!0,!0));return s}function ny(r,e,o,a,s,n,h,l){let u=[],p=[];if(l.roughness===0){r/=4,p.push([e+a*Math.cos(-r),o+s*Math.sin(-r)]);for(let c=0;c<=2*Math.PI;c+=r){let m=[e+a*Math.cos(c),o+s*Math.sin(c)];u.push(m),p.push(m)}p.push([e+a*Math.cos(0),o+s*Math.sin(0)]),p.push([e+a*Math.cos(r),o+s*Math.sin(r)])}else{let c=ue(0.5,l)-Math.PI/2;p.push([ue(n,l)+e+0.9*a*Math.cos(c-r),ue(n,l)+o+0.9*s*Math.sin(c-r)]);let m=2*Math.PI+c-0.01;for(let x=c;x<m;x+=r){let w=[ue(n,l)+e+a*Math.cos(x),ue(n,l)+o+s*Math.sin(x)];u.push(w),p.push(w)}p.push([ue(n,l)+e+a*Math.cos(c+2*Math.PI+0.5*h),ue(n,l)+o+s*Math.sin(c+2*Math.PI+0.5*h)]),p.push([ue(n,l)+e+0.98*a*Math.cos(c+h),ue(n,l)+o+0.98*s*Math.sin(c+h)]),p.push([ue(n,l)+e+0.9*a*Math.cos(c+0.5*h),ue(n,l)+o+0.9*s*Math.sin(c+0.5*h)])}return[p,u]}function ly(r,e,o,a,s,n,h,l,u){let p=n+ue(0.1,u),c=[];c.push([ue(l,u)+e+0.9*a*Math.cos(p-r),ue(l,u)+o+0.9*s*Math.sin(p-r)]);for(let m=p;m<=h;m+=r)c.push([ue(l,u)+e+a*Math.cos(m),ue(l,u)+o+s*Math.sin(m)]);return c.push([e+a*Math.cos(h),o+s*Math.sin(h)]),c.push([e+a*Math.cos(h),o+s*Math.sin(h)]),Sl(c,null,u)}function Dw(r,e,o,a,s,n,h,l){let u=[],p=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],c=[0,0],m=l.disableMultiStroke?1:2,x=l.preserveVertices;for(let w=0;w<m;w++)w===0?u.push({op:"move",data:[h[0],h[1]]}):u.push({op:"move",data:[h[0]+(x?0:ue(p[0],l)),h[1]+(x?0:ue(p[0],l))]}),c=x?[s,n]:[s+ue(p[w],l),n+ue(p[w],l)],u.push({op:"bcurveTo",data:[r+ue(p[w],l),e+ue(p[w],l),o+ue(p[w],l),a+ue(p[w],l),c[0],c[1]]});return u}function Ra(r){return[...r]}function hy(r,e=0){let o=r.length;if(o<3)throw Error("A curve must have at least three points.");let a=[];if(o===3)a.push(Ra(r[0]),Ra(r[1]),Ra(r[2]),Ra(r[2]));else{let s=[];s.push(r[0],r[0]);for(let l=1;l<r.length;l++)s.push(r[l]),l===r.length-1&&s.push(r[l]);let n=[],h=1-e;a.push(Ra(s[0]));for(let l=1;l+2<s.length;l++){let u=s[l];n[0]=[u[0],u[1]],n[1]=[u[0]+(h*s[l+1][0]-h*s[l-1][0])/6,u[1]+(h*s[l+1][1]-h*s[l-1][1])/6],n[2]=[s[l+1][0]+(h*s[l][0]-h*s[l+2][0])/6,s[l+1][1]+(h*s[l][1]-h*s[l+2][1])/6],n[3]=[s[l+1][0],s[l+1][1]],a.push(n[1],n[2],n[3])}}return a}function kl(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)}function Pw(r,e,o){let a=kl(e,o);if(a===0)return kl(r,e);let s=((r[0]-e[0])*(o[0]-e[0])+(r[1]-e[1])*(o[1]-e[1]))/a;return s=Math.max(0,Math.min(1,s)),kl(r,go(e,o,s))}function go(r,e,o){return[r[0]+(e[0]-r[0])*o,r[1]+(e[1]-r[1])*o]}function Wf(r,e,o,a){let s=a||[];if(function(l,u){let p=l[u+0],c=l[u+1],m=l[u+2],x=l[u+3],w=3*c[0]-2*p[0]-x[0];w*=w;let _=3*c[1]-2*p[1]-x[1];_*=_;let v=3*m[0]-2*x[0]-p[0];v*=v;let E=3*m[1]-2*x[1]-p[1];return E*=E,w<v&&(w=v),_<E&&(_=E),w+_}(r,e)<o){let l=r[e+0];if(s.length)(n=s[s.length-1],h=l,Math.sqrt(kl(n,h)))>1&&s.push(l);else s.push(l);s.push(r[e+3])}else{let u=r[e+0],p=r[e+1],c=r[e+2],m=r[e+3],x=go(u,p,0.5),w=go(p,c,0.5),_=go(c,m,0.5),v=go(x,w,0.5),E=go(w,_,0.5),W=go(v,E,0.5);Wf([u,x,v,W],0,o,s),Wf([W,E,_,m],0,o,s)}var n,h;return s}function Rw(r,e){return Tl(r,0,r.length,e)}function Tl(r,e,o,a,s){let n=s||[],h=r[e],l=r[o-1],u=0,p=1;for(let c=e+1;c<o-1;++c){let m=Pw(r[c],h,l);m>u&&(u=m,p=c)}return Math.sqrt(u)>a?(Tl(r,e,p+1,a,n),Tl(r,p,o,a,n)):(n.length||n.push(h),n.push(l)),n}function Rf(r,e=0.15,o){let a=[],s=(r.length-1)/3;for(let n=0;n<s;n++)Wf(r,3*n,e,a);return o&&o>0?Tl(a,0,a.length,o):a}var Br="none";class qa{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,o){return{shape:r,sets:e||[],options:o||this.defaultOptions}}line(r,e,o,a,s){let n=this._o(s);return this._d("line",[Cy(r,e,o,a,n)],n)}rectangle(r,e,o,a,s){let n=this._o(s),h=[],l=$w(r,e,o,a,n);if(n.fill){let u=[[r,e],[r+o,e],[r+o,e+a],[r,e+a]];n.fillStyle==="solid"?h.push(Pf([u],n)):h.push(Ss([u],n))}return n.stroke!==Br&&h.push(l),this._d("rectangle",h,n)}ellipse(r,e,o,a,s){let n=this._o(s),h=[],l=by(o,a,n),u=qf(r,e,n,l);if(n.fill)if(n.fillStyle==="solid"){let p=qf(r,e,n,l).opset;p.type="fillPath",h.push(p)}else h.push(Ss([u.estimatedPoints],n));return n.stroke!==Br&&h.push(u.opset),this._d("ellipse",h,n)}circle(r,e,o,a){let s=this.ellipse(r,e,o,o,a);return s.shape="circle",s}linearPath(r,e){let o=this._o(e);return this._d("linearPath",[bl(r,!1,o)],o)}arc(r,e,o,a,s,n,h=!1,l){let u=this._o(l),p=[],c=oy(r,e,o,a,s,n,h,!0,u);if(h&&u.fill)if(u.fillStyle==="solid"){let m=Object.assign({},u);m.disableMultiStroke=!0;let x=oy(r,e,o,a,s,n,!0,!1,m);x.type="fillPath",p.push(x)}else p.push(function(m,x,w,_,v,E,W){let U=m,V=x,Z=Math.abs(w/2),J=Math.abs(_/2);Z+=ue(0.01*Z,W),J+=ue(0.01*J,W);let ut=v,at=E;for(;ut<0;)ut+=2*Math.PI,at+=2*Math.PI;at-ut>2*Math.PI&&(ut=0,at=2*Math.PI);let mt=(at-ut)/W.curveStepCount,bt=[];for(let Lt=ut;Lt<=at;Lt+=mt)bt.push([U+Z*Math.cos(Lt),V+J*Math.sin(Lt)]);return bt.push([U+Z*Math.cos(at),V+J*Math.sin(at)]),bt.push([U,V]),Ss([bt],W)}(r,e,o,a,s,n,u));return u.stroke!==Br&&p.push(c),this._d("arc",p,u)}curve(r,e){let o=this._o(e),a=[],s=iy(r,o);if(o.fill&&o.fill!==Br)if(o.fillStyle==="solid"){let n=iy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(n.ops)})}else{let n=[],h=r;if(h.length){let l=typeof h[0][0]=="number"?[h]:h;for(let u of l)u.length<3?n.push(...u):u.length===3?n.push(...Rf(hy([u[0],u[0],u[1],u[2]]),10,(1+o.roughness)/2)):n.push(...Rf(hy(u),10,(1+o.roughness)/2))}n.length&&a.push(Ss([n],o))}return o.stroke!==Br&&a.push(s),this._d("curve",a,o)}polygon(r,e){let o=this._o(e),a=[],s=bl(r,!0,o);return o.fill&&(o.fillStyle==="solid"?a.push(Pf([r],o)):a.push(Ss([r],o))),o.stroke!==Br&&a.push(s),this._d("polygon",a,o)}path(r,e){let o=this._o(e),a=[];if(!r)return this._d("path",a,o);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=o.fill&&o.fill!=="transparent"&&o.fill!==Br,n=o.stroke!==Br,h=!!(o.simplification&&o.simplification<1),l=function(p,c,m){let x=yy(my(zf(p))),w=[],_=[],v=[0,0],E=[],W=()=>{E.length>=4&&_.push(...Rf(E,c)),E=[]},U=()=>{W(),_.length&&(w.push(_),_=[])};for(let{key:Z,data:J}of x)switch(Z){case"M":U(),v=[J[0],J[1]],_.push(v);break;case"L":W(),_.push([J[0],J[1]]);break;case"C":if(!E.length){let ut=_.length?_[_.length-1]:v;E.push([ut[0],ut[1]])}E.push([J[0],J[1]]),E.push([J[2],J[3]]),E.push([J[4],J[5]]);break;case"Z":W(),_.push([v[0],v[1]])}if(U(),!m)return w;let V=[];for(let Z of w){let J=Rw(Z,m);J.length&&V.push(J)}return V}(r,1,h?4-4*(o.simplification||1):(1+o.roughness)/2),u=sy(r,o);if(s)if(o.fillStyle==="solid")if(l.length===1){let p=sy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(p.ops)})}else a.push(Pf(l,o));else a.push(Ss(l,o));return n&&(h?l.forEach((p)=>{a.push(bl(p,!1,o))}):a.push(u)),this._d("path",a,o)}opsToPath(r,e){let o="";for(let a of r.ops){let s=typeof e=="number"&&e>=0?a.data.map((n)=>+n.toFixed(e)):a.data;switch(a.op){case"move":o+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":o+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":o+=`L${s[0]} ${s[1]} `}}return o.trim()}toPaths(r){let e=r.sets||[],o=r.options||this.defaultOptions,a=[];for(let s of e){let n=null;switch(s.type){case"path":n={d:this.opsToPath(s),stroke:o.stroke,strokeWidth:o.strokeWidth,fill:Br};break;case"fillPath":n={d:this.opsToPath(s),stroke:Br,strokeWidth:0,fill:o.fill||Br};break;case"fillSketch":n=this.fillSketch(s,o)}n&&a.push(n)}return a}fillSketch(r,e){let o=e.fillWeight;return o<0&&(o=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||Br,strokeWidth:o,fill:Br}}_mergedShape(r){return r.filter((e,o)=>o===0||e.op!=="move")}}class wy{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new qa(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.ctx,s=r.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":a.save(),a.strokeStyle=o.stroke==="none"?"transparent":o.stroke,a.lineWidth=o.strokeWidth,o.strokeLineDash&&a.setLineDash(o.strokeLineDash),o.strokeLineDashOffset&&(a.lineDashOffset=o.strokeLineDashOffset),this._drawToContext(a,n,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=o.fill||"";let h=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,n,s,h),a.restore();break}case"fillSketch":this.fillSketch(a,n,o)}}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2),r.save(),o.fillLineDash&&r.setLineDash(o.fillLineDash),o.fillLineDashOffset&&(r.lineDashOffset=o.fillLineDashOffset),r.strokeStyle=o.fill||"",r.lineWidth=a,this._drawToContext(r,e,o.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,o,a="nonzero"){r.beginPath();for(let s of e.ops){let n=typeof o=="number"&&o>=0?s.data.map((h)=>+h.toFixed(o)):s.data;switch(s.op){case"move":r.moveTo(n[0],n[1]);break;case"bcurveTo":r.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"lineTo":r.lineTo(n[0],n[1])}}e.type==="fillPath"?r.fill(a):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n),n}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n),n}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n),n}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s),s}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o),o}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o),o}arc(r,e,o,a,s,n,h=!1,l){let u=this.gen.arc(r,e,o,a,s,n,h,l);return this.draw(u),u}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o),o}path(r,e){let o=this.gen.path(r,e);return this.draw(o),o}}var Cl="http://www.w3.org/2000/svg";class Sy{constructor(r,e){this.svg=r,this.gen=new qa(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(Cl,"g"),n=r.options.fixedDecimalPlaceDigits;for(let h of e){let l=null;switch(h.type){case"path":l=a.createElementNS(Cl,"path"),l.setAttribute("d",this.opsToPath(h,n)),l.setAttribute("stroke",o.stroke),l.setAttribute("stroke-width",o.strokeWidth+""),l.setAttribute("fill","none"),o.strokeLineDash&&l.setAttribute("stroke-dasharray",o.strokeLineDash.join(" ").trim()),o.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${o.strokeLineDashOffset}`);break;case"fillPath":l=a.createElementNS(Cl,"path"),l.setAttribute("d",this.opsToPath(h,n)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",o.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(a,h,o)}l&&s.appendChild(l)}return s}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2);let s=r.createElementNS(Cl,"path");return s.setAttribute("d",this.opsToPath(e,o.fixedDecimalPlaceDigits)),s.setAttribute("stroke",o.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),o.fillLineDash&&s.setAttribute("stroke-dasharray",o.fillLineDash.join(" ").trim()),o.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${o.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n)}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n)}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n)}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s)}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o)}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o)}arc(r,e,o,a,s,n,h=!1,l){let u=this.gen.arc(r,e,o,a,s,n,h,l);return this.draw(u)}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o)}path(r,e){let o=this.gen.path(r,e);return this.draw(o)}}var b={canvas:(r,e)=>new wy(r,e),svg:(r,e)=>new Sy(r,e),generator:(r)=>new qa(r),newSeed:()=>qa.newSeed()};var qw=1,Nw=3;async function td(r){let e=r.getElementsByTagName("img");if(!e||e.length===0)return;let o=!ed(r);await Promise.all([...e].map((a)=>new Promise((s)=>{function n(){if(a.style.display="flex",a.style.flexDirection="column",o){let h=d().fontSize?d().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=F.fontSize]=Pt(h),p=u*5+"px";a.style.minWidth=p,a.style.maxWidth=p}else a.style.width="100%";s(a)}t(n,"setupImage"),setTimeout(()=>{if(a.complete)n()}),a.addEventListener("error",n),a.addEventListener("load",n)})))}t(td,"configureLabelImages");function ed(r){if(r.nodeType===Nw)return r.textContent?.trim()!=="";if(r.nodeType!==qw)return!1;if(r.tagName.toLowerCase()==="img")return!1;return[...r.childNodes].some(ed)}t(ed,"hasTextBesidesImages");var Ty=3,Ww=32,zw=t(async(r,e,o)=>{let a=d(),s=r.insert("g").attr("class",o??"node default").attr("id",e.domId||e.id),n=s.insert("g").attr("class","label").attr("style",$e(e.labelStyle)),l=[{text:typeof e.label==="string"?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map((W)=>({text:W,cssClass:"c4-descr"}))].filter((W)=>W.text),u=e.width?Math.max(e.width-2*(e.padding??0),Ww):d().flowchart?.wrappingWidth??200,c=a.c4?.wrap??!0?u:Number.POSITIVE_INFINITY,m=await Promise.all(l.map(async(W)=>{let U=n.append("g").attr("class",W.cssClass),V=await lt(U,G(Wn(W.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:c,style:e.labelStyle},a);return y(V).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),y(V).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:U,box:U.node().getBBox()}})),x=Math.max(...m.map(({box:W})=>W.width),0),w=0;for(let{el:W,box:U}of m)W.attr("transform",`translate(${x/2-U.x-U.width/2}, ${w-U.y})`),w+=U.height+Ty;let _=m.length>0?w-Ty:0;n.insert("rect",":first-child"),n.attr("transform",`translate(${-x/2}, ${-_/2})`);let v=n.node().getBBox(),E=(e.padding??0)/2;return{shapeSvg:s,bbox:v,halfPadding:E,label:n}},"c4LabelHelper"),_y=t((r,e)=>{let{x:o,y:a,width:s,height:n}=r;if(s>=e)return r;if(!("left"in r))return{x:o-(e-s)/2,y:a,width:e,height:n};return{x:o,y:a,width:e,height:n,top:a,left:o,bottom:a+n,right:o+e,toJSON:t(()=>({}),"toJSON")}},"withMinWidth"),q=t(async(r,e,o,{ignoreMinWidth:a=!1}={})=>{if(e.stereotype!==void 0)return zw(r,e,o);let s,n=e.useHtmlLabels||hn(d()?.htmlLabels);if(!o)s="node default";else s=o;let h=r.insert("g").attr("class",s).attr("id",e.domId||e.id),l=h.insert("g").attr("class","label").attr("style",$e(e.labelStyle)),u;if(e.label===void 0)u="";else u=typeof e.label==="string"?e.label:e.label[0];let p=!!e.icon||!!e.img,c=e.labelType==="markdown",m=u&&!e.width&&!a?e.minWidth??0:0,x=await lt(l,G(Wn(u),d()),{useHtmlLabels:n,width:e.width||e.wrappingWidth||d().flowchart?.wrappingWidth,minWidth:m,classes:c?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:p,markdown:c},d()),w=(e?.padding??0)/2,_;if(n){let v=x.children[0],E=y(x);await td(v),_=await Ai.measure(()=>v.getBoundingClientRect()),_=_y(_,m),E.attr("width",_.width),E.attr("height",_.height)}else _=await Ai.measure(()=>x.getBBox()),_=_y(_,m);if(n)l.attr("transform","translate("+-_.width/2+", "+-_.height/2+")");else l.attr("transform","translate(0, "+-_.height/2+")");if(e.centerLabel)l.attr("transform","translate("+-_.width/2+", "+-_.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:h,bbox:_,halfPadding:w,label:l}},"labelHelper"),yo=t(async(r,e,o)=>{let a=o.useHtmlLabels??tt(d()),s=r.insert("g").attr("class","label").attr("style",o.labelStyle||""),n=await lt(s,G(Wn(e),d()),{useHtmlLabels:a,width:o.width||d()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),h=o.padding/2,l;if(tt(d())){let u=n.children[0],p=y(n);l=await Ai.measure(()=>u.getBoundingClientRect()),p.attr("width",l.width),p.attr("height",l.height)}else l=await Ai.measure(()=>n.getBBox());if(a)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else s.attr("transform","translate(0, "+-l.height/2+")");if(o.centerLabel)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return s.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:h,label:s}},"insertLabel"),B=t((r,e,o)=>{if(o){r.width=o.width,r.height=o.height;return}let a=e.node().getBBox();r.width=a.width,r.height=a.height},"updateNodeBounds"),ie=t((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function be(r){let e=r.map((o,a)=>`${a===0?"M":"L"}${o.x},${o.y}`);return e.push("Z"),e.join(" ")}t(be,"createPathFromPoints");function oo(r,e,o,a,s,n){let h=[],l=50,u=o-r,p=a-e,c=u/n,m=2*Math.PI/c,x=e+p/2;for(let w=0;w<=50;w++){let _=w/50,v=r+_*u,E=x+s*Math.sin(m*(v-r));h.push({x:v,y:E})}return h}t(oo,"generateFullSineWavePoints");function ei(r,e,o,a,s,n){let h=[],l=s*Math.PI/180,c=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*c,w=r+o*Math.cos(x),_=e+o*Math.sin(x);h.push({x:-w,y:-_})}return h}t(ei,"generateCirclePoints");function Kf(r){let e=Array.from(r.childNodes).filter((u)=>u.tagName==="path"),o=document.createElementNS("http://www.w3.org/2000/svg","path"),a=e.map((u)=>u.getAttribute("d")).filter((u)=>u!==null).join(" ");o.setAttribute("d",a);let s=e.find((u)=>u.getAttribute("fill")!=="none"),n=e.find((u)=>u.getAttribute("stroke")!=="none"),h=t((u,p)=>u?.getAttribute(p)??void 0,"getAttr");if(s){let u={fill:h(s,"fill"),"fill-opacity":h(s,"fill-opacity")??"1"};Object.entries(u).forEach(([p,c])=>{if(c)o.setAttribute(p,c)})}if(n){let u={stroke:h(n,"stroke"),"stroke-width":h(n,"stroke-width")??"1","stroke-opacity":h(n,"stroke-opacity")??"1"};Object.entries(u).forEach(([p,c])=>{if(c)o.setAttribute(p,c)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(o),l}t(Kf,"mergePaths");var Hw=t((r,e)=>{var{x:o,y:a}=r,s=e.x-o,n=e.y-a,h=r.width/2,l=r.height/2,u,p;if(Math.abs(n)*h>Math.abs(s)*l){if(n<0)l=-l;u=n===0?0:l*s/n,p=l}else{if(s<0)h=-h;u=h,p=s===0?0:h*n/s}return{x:o+u,y:a+p}},"intersectRect"),gi=Hw;function Gy(r,e){return r.intersect(e)}t(Gy,"intersectNode");var Yw=Gy;function Xy(r,e,o,a){var{x:s,y:n}=r,h=s-a.x,l=n-a.y,u=Math.sqrt(e*e*l*l+o*o*h*h),p=Math.abs(e*o*h/u);if(a.x<s)p=-p;var c=Math.abs(e*o*l/u);if(a.y<n)c=-c;return{x:s+p,y:n+c}}t(Xy,"intersectEllipse");var Vy=Xy;function Ky(r,e,o){return Vy(r,e,e,o)}t(Ky,"intersectCircle");var Uw=Ky;function Zy(r,e,o,a){{let s=e.y-r.y,n=r.x-e.x,h=e.x*r.y-r.x*e.y,l=s*o.x+n*o.y+h,u=s*a.x+n*a.y+h,p=0.000001;if(l!==0&&u!==0&&Zf(l,u))return;let c=a.y-o.y,m=o.x-a.x,x=a.x*o.y-o.x*a.y,w=c*r.x+m*r.y+x,_=c*e.x+m*e.y+x;if(Math.abs(w)<0.000001&&Math.abs(_)<0.000001&&Zf(w,_))return;let v=s*m-c*n;if(v===0)return;let E=(n*x-m*h)/v,W=(c*h-s*x)/v;return{x:E,y:W}}}t(Zy,"intersectLine");function Zf(r,e){return r*e>0}t(Zf,"sameSign");var jw=Zy;function Qy(r,e,o){let{x:a,y:s}=r,n=[],{POSITIVE_INFINITY:h,POSITIVE_INFINITY:l}=Number;if(typeof e.forEach==="function")e.forEach(function(c){h=Math.min(h,c.x),l=Math.min(l,c.y)});else h=Math.min(h,e.x),l=Math.min(l,e.y);let u=a-r.width/2-h,p=s-r.height/2-l;for(let c=0;c<e.length;c++){let m=e[c],x=e[c<e.length-1?c+1:0],w=jw(r,o,{x:u+m.x,y:p+m.y},{x:u+x.x,y:p+x.y});if(w)n.push(w)}if(!n.length)return r;if(n.length>1)n.sort(function(c,m){let x=c.x-o.x,w=c.y-o.y,_=Math.sqrt(x*x+w*w),v=m.x-o.x,E=m.y-o.y,W=Math.sqrt(v*v+E*E);return _<W?-1:_===W?0:1});return n[0]}t(Qy,"intersectPolygon");var Gw=Qy,T={node:Yw,circle:Uw,ellipse:Vy,polygon:Gw,rect:gi},br=t((r,e,o,a,s)=>["M",r+s,e,"H",r+o-s,"A",s,s,0,0,1,r+o,e+s,"V",e+a-s,"A",s,s,0,0,1,r+o-s,e+a,"H",r+s,"A",s,s,0,0,1,r,e+a-s,"V",e+s,"A",s,s,0,0,1,r+s,e,"Z"].join(" "),"createRoundedRectPathD"),Xw=t(async(r,e,o,a=!1,s=!1)=>{let n=e||"";if(typeof n==="object")n=n[0];let h=d(),l=tt(h);return await lt(r,n,{style:o,isTitle:a,useHtmlLabels:l,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},h)},"createLabel"),qr=Xw;function Jy(r,e){let{labelStyles:o}=L(e);e.labelStyle=o;let a=ie(e),s=a;if(!a)s="anchor";let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),h=1,{cssStyles:l}=e,u=b.svg(n),p=Kt(e,{fill:"black",stroke:"none",fillStyle:"solid"});if(e.look!=="handDrawn")p.roughness=0;let c=u.circle(0,0,h*2,p),m=n.insert(()=>c,":first-child");return m.attr("class","anchor").attr("style",$e(l)),B(e,m),e.intersect=function(x){return i.info("Circle intersect",e,h,x),T.circle(e,h,x)},n}t(Jy,"anchor");function Qf(r,e,o,a,s,n,h){let u=(r+o)/2,p=(e+a)/2,c=Math.atan2(a-e,o-r),m=(o-r)/2,x=(a-e)/2,w=m/s,_=x/n,v=Math.sqrt(w**2+_**2);if(v>1)throw Error("The given radii are too small to create an arc between the points.");let E=Math.sqrt(1-v**2),W=u+E*n*Math.sin(c)*(h?-1:1),U=p-E*s*Math.cos(c)*(h?-1:1),V=Math.atan2((e-U)/n,(r-W)/s),J=Math.atan2((a-U)/n,(o-W)/s)-V;if(h&&J<0)J+=2*Math.PI;if(!h&&J>0)J-=2*Math.PI;let ut=[];for(let at=0;at<20;at++){let mt=at/19,bt=V+mt*J,Lt=W+s*Math.cos(bt),wt=U+n*Math.sin(bt);ut.push({x:Lt,y:wt})}return ut}t(Qf,"generateArcPoints");function tx(r,e,o){let[a,s]=[e,o].sort((n,h)=>h-n);return s*(1-Math.sqrt(1-(r/a/2)**2))}t(tx,"calculateArcSagitta");async function ex(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s,l=t((bt)=>bt+h,"calcTotalHeight"),u=t((bt)=>{let Lt=bt/2;return[Lt/(2.5+bt/50),Lt]},"calcEllipseRadius"),{shapeSvg:p,bbox:c}=await q(r,e,ie(e)),m=l(e?.height?e?.height:c.height),[x,w]=u(m),_=tx(m,x,w),E=(e?.width?e?.width:c.width)+n*2+_-_,W=m,{cssStyles:U}=e,V=[{x:E/2,y:-W/2},{x:-E/2,y:-W/2},...Qf(-E/2,-W/2,-E/2,W/2,x,w,!1),{x:E/2,y:W/2},...Qf(E/2,W/2,E/2,-W/2,x,w,!0)],Z=b.svg(p),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let ut=be(V),at=Z.path(ut,J),mt=p.insert(()=>at,":first-child");if(mt.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")mt.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")mt.selectAll("path").attr("style",a);return mt.attr("transform",`translate(${x/2}, 0)`),B(e,mt),e.intersect=function(bt){return T.polygon(e,V,bt)},p}t(ex,"bowTieRect");async function rx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:h,label:l}=await q(r,e,ie(e)),u=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,c=Math.max(h.width+p*2,e.width??0,80),m=Math.max(Math.min(c*0.08,12),5),x=Math.max(h.height+p*2+m,e.height??0),w=-x/2+m,_=x/2,v=c*0.72,E=[`M${-c/2},${w}`,`L${-v/2},${_}`,`A${v/2},${m} 0 0 0 ${v/2},${_}`,`L${c/2},${w}`,`A${c/2},${m} 0 0 0 ${-c/2},${w}`,"Z"].join(" "),{cssStyles:W}=e,U=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let mt=b.svg(n).path(E,Kt(e,{}));if(U.node()?.appendChild(mt),W)U.attr("style",W)}else U.append("path").attr("d",E).attr("style",s);U.append("ellipse").attr("cx",0).attr("cy",w).attr("rx",c/2).attr("ry",m).attr("style",`fill:none;stroke:${u};stroke-width:1px`),B(e,U);let V=w+(_-w)/2;l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${V-h.height/2-(h.y-(h.top??0))})`);let Z=12,J=t((at,mt,bt)=>Array.from({length:Z+1},(Lt,wt)=>{let kt=Math.PI-wt*Math.PI/Z;return{x:at*Math.cos(kt),y:mt+bt*m*Math.sin(kt)}}),"arc"),ut=[...J(c/2,w,-1),...J(v/2,_,1).reverse()];return e.intersect=function(at){return T.polygon(e,ut,at)},n}t(rx,"bucket");var Hf=20,Yf=8,Vw=80,Kw=8;function ix(r){let{themeVariables:e}=d(),{clusterBkg:o,clusterBorder:a}=e;switch(r){case"flow":return{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:Kw,fill:o,stroke:a,cssClass:"collapsed-group"}}}t(ix,"getCollapsedStyle");async function ox(r,e){let o=ix(e.metadata?.containerType),{fill:a,stroke:s}=o,{nodeStyles:n}=L(e),{shapeSvg:h,bbox:l}=await q(r,e,ie(e)),{theme:u,themeVariables:p}=d();Ht(h,e.colorIndex,u,p.borderColorArray);let c=e.padding??8,m=l.height,x=Math.max(l.width+c*2,Vw,e?.width??0),w=Math.max(m+Yf+Hf+c*2,e?.height??0),_=-x/2,v=-w/2,E=-(Yf+Hf)/2,W=h.select(".label");if(W)if(e.useHtmlLabels??tt(d()))W.attr("transform",`translate(${-l.width/2}, ${-l.height/2+E})`);else W.attr("transform",`translate(0, ${-l.height/2+E})`);let U;if(e.look==="handDrawn"){let at=b.svg(h),mt=Kt(e,{fill:a,stroke:s,...o.strokeWidth===void 0?{}:{strokeWidth:o.strokeWidth},...a==="none"?{fillWeight:0}:{fillStyle:"solid"}}),bt=at.path(br(_,v,x,w,o.rx),mt);U=h.insert(()=>bt,":first-child"),U.attr("class","basic label-container "+o.cssClass).attr("style",$e(e.cssStyles))}else if(U=h.insert("rect",":first-child"),U.attr("class","basic label-container "+o.cssClass).attr("style",n).attr("rx",o.rx).attr("ry",o.rx).attr("x",_).attr("y",v).attr("width",x).attr("height",w).attr("fill",a).attr("stroke",s),o.strokeWidth!==void 0)U.attr("stroke-width",o.strokeWidth+"px");let V=v+c+m+Yf;h.append("line").attr("class","collapsed-separator").attr("x1",_+8).attr("y1",V).attr("x2",_+x-8).attr("y2",V).attr("stroke",s).attr("stroke-dasharray","3, 3");let Z=V+Hf/2,J=2.5,ut=10;for(let at=-1;at<=1;at++)h.append("circle").attr("class","collapsed-indicator").attr("cx",at*ut).attr("cy",Z).attr("r",J).attr("fill",s);return B(e,U),e.calcIntersect=function(at,mt){return T.rect(at,mt)},e.intersect=function(at){return T.rect(e,at)},h}t(ox,"collapsedGroup");function yi(r,e,o,a){return r.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+o/2+")")}t(yi,"insertPolygonShape");var Zw=["right","left","up","down"],rd="point",Qw=t((r)=>{let e=new Set;for(let o of r)switch(o){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(o);break}return e},"expandAndDeduplicateDirections"),Jw=t((r)=>Zw.filter((e)=>r.has(e)).join("|")||rd,"getDirectionKey"),By={"right|left|up|down":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:0,y:0},{x:e,y:0},{x:a/2,y:2*o},{x:a-e,y:0},{x:a,y:0},{x:a,y:-r/3},{x:a+2*o,y:-r/2},{x:a,y:-2*r/3},{x:a,y:-r},{x:a-e,y:-r},{x:a/2,y:-r-2*o},{x:e,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*o,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":t(({height:r,midpoint:e,width:o})=>[{x:e,y:0},{x:o-e,y:0},{x:o,y:-r/2},{x:o-e,y:-r},{x:e,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:e,y:-r},{x:o-e,y:-r},{x:o,y:0}],"right|left|down"),"right|up|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,y:-e},{x:o,y:-r+e},{x:0,y:-r}],"right|up|down"),"left|up|down":t(({height:r,midpoint:e,width:o})=>[{x:o,y:0},{x:0,y:-e},{x:0,y:-r+e},{x:o,y:-r}],"left|up|down"),"right|left":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"up|down"),"right|up":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,y:-e},{x:0,y:-r}],"right|up"),"right|down":t(({height:r,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-r}],"right|down"),"left|up":t(({height:r,midpoint:e,width:o})=>[{x:o,y:0},{x:0,y:-e},{x:o,y:-r}],"left|up"),"left|down":t(({height:r,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-r}],"left|down"),right:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:-o},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r+o}],"right"),left:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"left"),up:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o}],"up"),down:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"down"),[rd]:()=>[{x:0,y:0}]},tS=t((r,e,o,a)=>{let s=Qw(r),n=(o.padding??0)/2,h=e.height+4*n,l=h/2,u=a??e.width+2*l+2*n,p=Jw(s);return(By[p]??By[rd])({height:h,midpoint:l,padding:n,width:u})},"getArrowPoints");async function sx(r,e){let o=e,{shapeSvg:a,bbox:s}=await q(r,o,ie(o)),n=o.padding??0,h=s.height+2*n,l=h/2,u=s.width+2*l+n,p=o.width??0,m=o.positioned&&(o.widthInColumns??1)>1&&p>u?p:u,x=tS(o.directions??[],s,o,m),w=yi(a,m,h,x);return w.attr("style",o.style??null),B(o,w),o.intersect=function(_){return T.polygon(o,x,_)},a}t(sx,"block_arrow");async function ax(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:h,label:l}=await q(r,e,ie(e)),u=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,c=18,m=12,x=Math.max(h.width+p*2,e.width??0,90),w=Math.max(h.height+p*2+c,e.height??0),_=-w/2,{cssStyles:v}=e,E=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let V=b.svg(n).path(br(-x/2,_,x,w,m),Kt(e,{}));if(E.node()?.appendChild(V),v)E.attr("style",v)}else E.append("rect").attr("x",-x/2).attr("y",_).attr("width",x).attr("height",w).attr("rx",m).attr("ry",m).attr("style",s);E.append("line").attr("x1",-x/2).attr("y1",_+c).attr("x2",x/2).attr("y2",_+c).attr("style",`stroke:${u};stroke-width:1px`);for(let U=0;U<3;U++)E.append("circle").attr("cx",-x/2+12+U*9).attr("cy",_+c/2).attr("r",2.5).attr("style",`fill:${u};stroke:none`);E.append("rect").attr("class","browser-address-bar").attr("x",-x/2+44).attr("y",_+4).attr("width",Math.max(x-56,10)).attr("height",c-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${u};stroke-width:1px;opacity:0.6`),B(e,E);let W=_+c+(w-c)/2;return l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${W-h.height/2-(h.y-(h.top??0))})`),e.intersect=function(U){return T.rect(e,U)},n}t(ax,"browser");var vl=12;async function nx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?28:s,h=e.look==="neo"?24:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=(e?.width??u.width)+(e.look==="neo"?n*2:n+vl),c=(e?.height??u.height)+(e.look==="neo"?h*2:h),m=0,x=p,w=-c,_=0,v=[{x:m+vl,y:w},{x,y:w},{x,y:_},{x:m,y:_},{x:m,y:w+vl},{x:m+vl,y:w}],E,{cssStyles:W}=e;if(e.look==="handDrawn"){let U=b.svg(l),V=Kt(e,{}),Z=be(v),J=U.path(Z,V);if(E=l.insert(()=>J,":first-child").attr("transform",`translate(${-p/2}, ${c/2})`),W)E.attr("style",W)}else E=yi(l,p,c,v);if(a)E.attr("style",a);return B(e,E),e.intersect=function(U){return T.polygon(e,v,U)},l}t(nx,"card");function lx(r,e){let{nodeStyles:o}=L(e);e.label="";let a=r.insert("g").attr("class",ie(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=Math.max(28,e.width??0),h=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=b.svg(a),u=Kt(e,{});if(e.look!=="handDrawn")u.roughness=0,u.fillStyle="solid";let p=be(h),c=l.path(p,u),m=a.insert(()=>c,":first-child");if(s&&e.look!=="handDrawn")m.selectAll("path").attr("style",s);if(o&&e.look!=="handDrawn")m.selectAll("path").attr("style",o);return e.width=28,e.height=28,e.intersect=function(x){return T.polygon(e,h,x)},a}t(lx,"choice");async function id(r,e,o){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:h,halfPadding:l}=await q(r,e,ie(e),{ignoreMinWidth:!0}),u=16,p=o?.padding??l,c=Math.sqrt(h.width**2+h.height**2)/2,m=e.look==="neo"?c+u:c+p,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(n),v=Kt(e,{}),E=_.circle(0,0,m*2,v);x=n.insert(()=>E,":first-child"),x.attr("class","basic label-container").attr("style",$e(w))}else x=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0);return B(e,x),e.calcIntersect=function(_,v){let E=_.width/2;return T.circle(_,E,v)},e.intersect=function(_){return i.info("Circle intersect",e,m,_),T.circle(e,m,_)},n}t(id,"circle");async function hx(r,e){let o=e,a=["node",o.cssClasses,o.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:n,halfPadding:h}=await q(r,o,a),l=s.insert("rect",":first-child"),u=o.padding??0,p=o.positioned?o.width??0:n.width+u,c=o.positioned?o.height??0:n.height+u,m=o.positioned?-p/2:-n.width/2-h,x=o.positioned?-c/2:-n.height/2-h;return l.attr("class","basic cluster composite label-container").attr("style",o.style??null).attr("rx",o.rx??null).attr("ry",o.ry??null).attr("x",m).attr("y",x).attr("width",p).attr("height",c),B(o,l),o.intersect=function(w){return T.rect(o,w)},s}t(hx,"composite");async function cx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:h,label:l}=await q(r,e,ie(e)),u=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,c=20,m=12,x=Math.max(h.width+p*2,e.width??0,90),w=Math.max(h.height+p*2+c,e.height??0),_=-w/2,{cssStyles:v}=e,E=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let V=b.svg(n).path(br(-x/2,_,x,w,m),Kt(e,{}));if(E.node()?.appendChild(V),v)E.attr("style",v)}else E.append("rect").attr("x",-x/2).attr("y",_).attr("width",x).attr("height",w).attr("rx",m).attr("ry",m).attr("style",s);E.append("text").attr("x",-x/2+12).attr("y",_+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${u}`).text(">_"),B(e,E);let W=_+c+(w-c)/2;return l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${W-h.height/2-(h.y-(h.top??0))})`),e.intersect=function(U){return T.rect(e,U)},n}t(cx,"consoleWindow");function ux(r){let e=Math.cos(Math.PI/4),o=Math.sin(Math.PI/4),a=r*2,s={x:a/2*e,y:a/2*o},n={x:-(a/2)*e,y:a/2*o},h={x:-(a/2)*e,y:-(a/2)*o},l={x:a/2*e,y:-(a/2)*o};return`M ${n.x},${n.y} L ${l.x},${l.y}
|
|
233
|
+
M ${s.x},${s.y} L ${h.x},${h.y}`}t(ux,"createLine");function fx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o,e.label="";let s=r.insert("g").attr("class",ie(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:h}=e,l=b.svg(s),u=Kt(e,{});if(e.look!=="handDrawn")u.roughness=0,u.fillStyle="solid";let p=l.circle(0,0,n*2,u),c=ux(n),m=l.path(c,u),x=s.insert(()=>p,":first-child");if(x.insert(()=>m),x.attr("class","outer-path"),h&&e.look!=="handDrawn")x.selectAll("path").attr("style",h);if(a&&e.look!=="handDrawn")x.selectAll("path").attr("style",a);return B(e,x),e.intersect=function(w){return i.info("crossedCircle intersect",e,{radius:n,point:w}),T.circle(e,n,w)},s}t(fx,"crossedCircle");function Mi(r,e,o,a=100,s=0,n=180){let h=[],l=s*Math.PI/180,c=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*c,w=r+o*Math.cos(x),_=e+o*Math.sin(x);h.push({x:-w,y:-_})}return h}t(Mi,"generateCirclePoints");async function dx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,p=n.width+l,c=n.height+u,m=Math.max(5,c*0.1),{cssStyles:x}=e,w=[...Mi(p/2,-c/2,m,30,-90,0),{x:-p/2-m,y:m},...Mi(p/2+m*2,-m,m,20,-180,-270),...Mi(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-c/2},...Mi(p/2,c/2,m,20,0,90)],_=[{x:p/2,y:-c/2-m},{x:-p/2,y:-c/2-m},...Mi(p/2,-c/2,m,20,-90,0),{x:-p/2-m,y:-m},...Mi(p/2+p*0.1,-m,m,20,-180,-270),...Mi(p/2+p*0.1,m,m,20,-90,-180),{x:-p/2-m,y:c/2},...Mi(p/2,c/2,m,20,0,90),{x:-p/2,y:c/2+m},{x:p/2,y:c/2+m}],v=b.svg(s),E=Kt(e,{fill:"none"});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let U=be(w).replace("Z",""),V=v.path(U,E),Z=be(_),J=v.path(Z,{...E}),ut=s.insert("g",":first-child");if(ut.insert(()=>J,":first-child").attr("stroke-opacity",0),ut.insert(()=>V,":first-child"),ut.attr("class","text"),x&&e.look!=="handDrawn")ut.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")ut.selectAll("path").attr("style",a);return ut.attr("transform",`translate(${m}, 0)`),h.attr("transform",`translate(${-p/2+m-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,ut),e.intersect=function(at){return T.polygon(e,_,at)},s}t(dx,"curlyBraceLeft");function Ei(r,e,o,a=100,s=0,n=180){let h=[],l=s*Math.PI/180,c=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*c,w=r+o*Math.cos(x),_=e+o*Math.sin(x);h.push({x:w,y:_})}return h}t(Ei,"generateCirclePoints");async function px(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),c=n.height+(e.look==="neo"?u*2:u),m=Math.max(5,c*0.1),{cssStyles:x}=e,w=[...Ei(p/2,-c/2,m,20,-90,0),{x:p/2+m,y:-m},...Ei(p/2+m*2,-m,m,20,-180,-270),...Ei(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:c/2},...Ei(p/2,c/2,m,20,0,90)],_=[{x:-p/2,y:-c/2-m},{x:p/2,y:-c/2-m},...Ei(p/2,-c/2,m,20,-90,0),{x:p/2+m,y:-m},...Ei(p/2+m*2,-m,m,20,-180,-270),...Ei(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:c/2},...Ei(p/2,c/2,m,20,0,90),{x:p/2,y:c/2+m},{x:-p/2,y:c/2+m}],v=b.svg(s),E=Kt(e,{fill:"none"});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let U=be(w).replace("Z",""),V=v.path(U,E),Z=be(_),J=v.path(Z,{...E}),ut=s.insert("g",":first-child");if(ut.insert(()=>J,":first-child").attr("stroke-opacity",0),ut.insert(()=>V,":first-child"),ut.attr("class","text"),x&&e.look!=="handDrawn")ut.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")ut.selectAll("path").attr("style",a);return ut.attr("transform",`translate(${-m}, 0)`),h.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,ut),e.intersect=function(at){return T.polygon(e,_,at)},s}t(px,"curlyBraceRight");function er(r,e,o,a=100,s=0,n=180){let h=[],l=s*Math.PI/180,c=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*c,w=r+o*Math.cos(x),_=e+o*Math.sin(x);h.push({x:-w,y:-_})}return h}t(er,"generateCirclePoints");async function gx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),c=n.height+(e.look==="neo"?u*2:u),m=Math.max(5,c*0.1),{cssStyles:x}=e,w=[...er(p/2,-c/2,m,30,-90,0),{x:-p/2-m,y:m},...er(p/2+m*2,-m,m,20,-180,-270),...er(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-c/2},...er(p/2,c/2,m,20,0,90)],_=[...er(-p/2+m+m/2,-c/2,m,20,-90,-180),{x:p/2-m/2,y:m},...er(-p/2-m/2,-m,m,20,0,90),...er(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...er(-p/2+m+m/2,c/2,m,30,-180,-270)],v=[{x:p/2,y:-c/2-m},{x:-p/2,y:-c/2-m},...er(p/2,-c/2,m,20,-90,0),{x:-p/2-m,y:-m},...er(p/2+m*2,-m,m,20,-180,-270),...er(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:c/2},...er(p/2,c/2,m,20,0,90),{x:-p/2,y:c/2+m},{x:p/2-m-m/2,y:c/2+m},...er(-p/2+m+m/2,-c/2,m,20,-90,-180),{x:p/2-m/2,y:m},...er(-p/2-m/2,-m,m,20,0,90),...er(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...er(-p/2+m+m/2,c/2,m,30,-180,-270)],E=b.svg(s),W=Kt(e,{fill:"none"});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let V=be(w).replace("Z",""),Z=E.path(V,W),ut=be(_).replace("Z",""),at=E.path(ut,W),mt=be(v),bt=E.path(mt,{...W}),Lt=s.insert("g",":first-child");if(Lt.insert(()=>bt,":first-child").attr("stroke-opacity",0),Lt.insert(()=>Z,":first-child"),Lt.insert(()=>at,":first-child"),Lt.attr("class","text"),x&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",a);return Lt.attr("transform",`translate(${m-m/4}, 0)`),h.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,Lt),e.intersect=function(wt){return T.polygon(e,v,wt)},s}t(gx,"curlyBraces");async function mx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s,l=20,u=5,{shapeSvg:p,bbox:c}=await q(r,e,ie(e)),m=Math.max(u,c.height+h*2,e?.height??0),x=m/2,w=x-Math.sqrt(Math.max(0,x**2-(c.height/2)**2)),_=Math.max(m/4,w),v=Math.max(l,c.width+n*2+_*2,(c.width+n*2)*1.25,e?.width??0),{cssStyles:E}=e,W=b.svg(p),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=v,Z=m,J=V-x,ut=Z/4,at=[{x:J,y:0},{x:ut,y:0},{x:0,y:Z/2},{x:ut,y:Z},{x:J,y:Z},...ei(-J,-Z/2,x,50,270,90)],mt=be(at),bt=W.path(mt,U),Lt=p.insert(()=>bt,":first-child");if(Lt.attr("class","basic label-container outer-path"),E&&e.look!=="handDrawn")Lt.selectChildren("path").attr("style",E);if(a&&e.look!=="handDrawn")Lt.selectChildren("path").attr("style",a);return Lt.attr("transform",`translate(${-v/2}, ${-m/2})`),B(e,Lt),e.intersect=function(wt){return T.polygon(e,at,wt)},p}t(mx,"curvedTrapezoid");async function yx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.padding??20,u=Math.max(n.width+l*2,e.width??0,100),p=Math.min(Math.max(u*0.23,16),56),c=p*0.27,m=Math.max(n.height+l*2,e.height?e.height-(2*p-c):0),x=Math.min(u*0.177,m*0.45),w=m+2*p-c,_=-w/2,v=_+2*p-c,E=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:W}=e;if(e.look==="handDrawn"){let mt=b.svg(s),bt=Kt(e,{}),Lt=mt.path(br(-u/2,v,u,m,x),bt),wt=mt.circle(0,_+p,p*2,bt);if(E.insert(()=>wt,":first-child"),E.insert(()=>Lt,":first-child"),W)E.attr("style",W)}else E.append("rect").attr("x",-u/2).attr("y",v).attr("width",u).attr("height",m).attr("rx",x).attr("ry",x).attr("style",a),E.append("circle").attr("cx",0).attr("cy",_+p).attr("r",p).attr("style",a);B(e,E);let U=v+m/2;h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${U-n.height/2-(n.y-(n.top??0))})`);let V=_+p,Z=Math.asin(Math.min(1,(v-V)/p))*180/Math.PI,J=24,at=[...ei(0,-V,p,J,180+Z,-Z),...ei(-(-u/2+x),-(v+x),x,12,90,0),...ei(-(-u/2+x),-(w/2-x),x,12,360,270),...ei(-(u/2-x),-(w/2-x),x,12,270,180),...ei(-(u/2-x),-(v+x),x,12,180,90)];return e.intersect=function(mt){return T.polygon(e,at,mt)},s}t(yx,"person");var eS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),rS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),iS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),vy=8,Ly=8;async function xx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?24:s,h=e.look==="neo"?24:s,l=e.width??0;if(e.width){if(e.width=e.width-h,e.width<Ly)e.width=Ly}if(e.height){let U=l/2/(2.5+l/50);if(e.height=e.height-n-U*3,e.height<vy)e.height=vy}let{shapeSvg:u,bbox:p,label:c}=await q(r,e,ie(e)),m=Math.max(e.width??0,p.width)+h,x=m/2,w=x/(2.5+m/50),_=Math.max(e.height??0,p.height)+n+w,v,{cssStyles:E}=e;if(e.look==="handDrawn"){let W=b.svg(u),U=rS(0,0,m,_,x,w),V=iS(0,w,m,_,x,w),Z=Kt(e,{}),J=W.path(U,Z),ut=W.path(V,Kt(e,{fill:"none"}));if(v=u.insert(()=>ut,":first-child"),v=u.insert(()=>J,":first-child"),v.attr("class","basic label-container"),E)v.attr("style",E)}else{let W=eS(0,0,m,_,x,w);v=u.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",$e(E)).attr("style",a)}return v.attr("label-offset-y",w),v.attr("transform",`translate(${-m/2}, ${-(_/2+w)})`),B(e,v),c.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+(e.padding??0)/1.5-(p.y-(p.top??0))})`),e.intersect=function(W){let U=T.rect(e,W),V=U.x-(e.x??0);if(x!=0&&(Math.abs(V)<(e.width??0)/2||Math.abs(V)==(e.width??0)/2&&Math.abs(U.y-(e.y??0))>(e.height??0)/2-w)){let Z=w*w*(1-V*V/(x*x));if(Z>0)Z=Math.sqrt(Z);if(Z=w-Z,W.y-(e.y??0)>0)Z=-Z;U.y+=Z}return U},u}t(xx,"cylinder");async function Ls(r,e,o){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:h}=await q(r,e,ie(e)),l=Math.max(h.width+o.labelPaddingX*2,e?.width||0),u=Math.max(h.height+o.labelPaddingY*2,e?.height||0),p=-l/2,c=-u/2,m,{rx:x,ry:w}=e,{cssStyles:_}=e;if(o?.rx&&o.ry)x=o.rx,w=o.ry;if(e.look==="handDrawn"){let v=b.svg(n),E=Kt(e,{}),W=x||w?v.path(br(p,c,l,u,x||0),E):v.rectangle(p,c,l,u,E);m=n.insert(()=>W,":first-child"),m.attr("class","basic label-container").attr("style",$e(_))}else m=n.insert("rect",":first-child"),m.attr("class","basic label-container").attr("style",s).attr("rx",$e(x)).attr("ry",$e(w)).attr("x",p).attr("y",c).attr("width",l).attr("height",u);return B(e,m,e.look==="handDrawn"?void 0:{width:l,height:u}),e.calcIntersect=function(v,E){return T.rect(v,E)},e.intersect=function(v){return T.rect(e,v)},n}t(Ls,"drawRect");async function Cx(r,e){let{cssClasses:o,labelPaddingX:a,labelPaddingY:s,padding:n,width:h,height:l}=e,u={rx:0,ry:0,classes:o??"",labelPaddingX:a??(n??0)*2,labelPaddingY:s??n??0},p=await Ls(r,e,u);if(e.look==="handDrawn"){let w=b.svg(p),_=Kt(e,{}),v=p.select(".basic.label-container > path:nth-child(2)"),E=v.node();if(!E)return p;let W=null;if(E instanceof SVGGraphicsElement)W=E.getBBox();else return p;return p.insert(()=>w.line(W.x,W.y,W.x+W.width,W.y,_),".basic.label-container g.label"),p.insert(()=>w.line(W.x,W.y+W.height,W.x+W.width,W.y+W.height,_),".basic.label-container g.label"),v.remove(),p}let c=p.select(".basic.label-container"),m=(Number(c.attr("width"))||h)??0,x=(Number(c.attr("height"))||l)??0;if(m>0&&x>0)c.attr("stroke-dasharray",`${m} ${x}`);return p}t(Cx,"datastore");async function bx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?16:e.padding??0,{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=l.width+s,c=l.height+n,m=c*0.2,x=-p/2,w=-c/2-m/2,{cssStyles:_}=e,v=b.svg(h),E=Kt(e,{});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let W=[{x,y:w+m},{x:-x,y:w+m},{x:-x,y:-w},{x,y:-w},{x,y:w},{x:-x,y:w},{x:-x,y:w+m}],U=v.polygon(W.map((Z)=>[Z.x,Z.y]),E),V=h.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")V.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return u.attr("transform",`translate(${x+(e.padding??0)/2-(l.x-(l.left??0))}, ${w+m+(e.padding??0)/2-(l.y-(l.top??0))})`),B(e,V),e.intersect=function(Z){return T.rect(e,Z)},h}t(bx,"dividedRectangle");async function kx(r,e){let{labelStyles:o,nodeStyles:a}=L(e),s=e.look==="neo"?12:5;e.labelStyle=o;let n=e.padding??0,h=e.look==="neo"?16:n,{shapeSvg:l,bbox:u}=await q(r,e,ie(e),{ignoreMinWidth:!0}),p=Math.sqrt(u.width**2+u.height**2)/2,c=(e?.width?e?.width/2:p)+(h??0),m=c+s,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(l),v=Kt(e,{roughness:0.2,strokeWidth:2.5}),E=Kt(e,{roughness:0.2,strokeWidth:1.5}),W=_.circle(0,0,m*2,v),U=_.circle(0,0,c*2,E);x=l.insert("g",":first-child"),x.attr("class",$e(e.cssClasses)).attr("style",$e(w)),x.node()?.appendChild(W),x.node()?.appendChild(U)}else{x=l.insert("g",":first-child");let _=x.insert("circle",":first-child"),v=x.insert("circle");x.attr("class","basic label-container").attr("style",a),_.attr("class","outer-circle").attr("style",a).attr("r",m).attr("cx",0).attr("cy",0),v.attr("class","inner-circle").attr("style",a).attr("r",c).attr("cx",0).attr("cy",0)}return B(e,x),e.intersect=function(_){return i.info("DoubleCircle intersect",e,m,_),T.circle(e,m,_)},l}t(kx,"doublecircle");async function wx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:h}=await q(r,e,ie(e)),{theme:l,themeVariables:u}=d();Ht(s,e.colorIndex,l,u.borderColorArray);let p=h??10,c=n.width/2+p*2,m=n.height/2+p*2,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(s),v=Kt(e,{}),E=_.ellipse(0,0,c*2,m*2,v);if(x=s.insert(()=>E,":first-child"),x.attr("class","basic label-container"),w)x.attr("style",w)}else x=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",a).attr("rx",c).attr("ry",m).attr("cx",0).attr("cy",0);return e.width=c*2,e.height=m*2,B(e,x),e.calcIntersect=function(_,v){let E=_.width/2,W=_.height/2;return T.ellipse(_,E,W,v)},e.intersect=function(_){return T.ellipse(e,c,m,_)},s}t(wx,"usecaseEllipse");function Sx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.label="",e.labelStyle=a;let n=r.insert("g").attr("class",ie(e)).attr("id",e.domId??e.id),h=7,{cssStyles:l}=e,u=b.svg(n),{nodeBorder:p}=o,c=Kt(e,{fillStyle:"solid"});if(e.look!=="handDrawn")c.roughness=0;let m=u.circle(0,0,h*2,c),x=n.insert(()=>m,":first-child");if(x.selectAll("path").attr("style",`fill: ${p} !important;`),l&&l.length>0&&e.look!=="handDrawn")x.selectAll("path").attr("style",l);if(s&&e.look!=="handDrawn")x.selectAll("path").attr("style",s);return B(e,x),e.intersect=function(w){return i.info("filledCircle intersect",e,{radius:h,point:w}),T.circle(e,h,w)},n}t(Sx,"filledCircle");var Fy=10,Ay=10;async function Tx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;if(e.width||e.height){if(e.height=e?.height??0,e.height<Fy)e.height=Fy;if(e.width=(e?.width??0)-n-n/2,e.width<Ay)e.width=Ay}let{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=(e?.width?e?.width:l.width)+(n??0),c=e?.height?e?.height:p+l.height,m=c,x=[{x:0,y:-c},{x:m,y:-c},{x:m/2,y:0}],{cssStyles:w}=e,_=b.svg(h),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=be(x),W=_.path(E,v),U=h.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");if(w&&e.look!=="handDrawn")U.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")U.selectChildren("path").attr("style",a);return e.width=p,e.height=c,B(e,U),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-c/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(V){return i.info("Triangle intersect",e,x,V),T.polygon(e,x,V)},h}t(Tx,"flippedTriangle");async function _x(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.padding??12,u=Math.max(n.width+l*2,e.width??0,90),p=n.height+l*2,c=Math.max(Math.min(p*0.16,14),8),m=Math.max(p+c,e.height??0),x=m-c,w=Math.max(u*0.38,28),_=-m/2,v=[{x:-u/2,y:_},{x:-u/2+w,y:_},{x:-u/2+w,y:_+c},{x:u/2,y:_+c},{x:u/2,y:m/2},{x:-u/2,y:m/2}],E=[`M${v[0].x},${v[0].y}`,...v.slice(1).map((Z)=>`L${Z.x},${Z.y}`),"Z"].join(" "),{cssStyles:W}=e,U;if(e.look==="handDrawn"){let J=b.svg(s).path(E,Kt(e,{}));if(U=s.insert(()=>J,":first-child").attr("class","basic label-container"),W)U.attr("style",W)}else U=s.insert("path",":first-child").attr("d",E).attr("class","basic label-container").attr("style",a);if(e.look==="handDrawn")B(e,U);else B(e,U,{width:u,height:m});let V=_+c+x/2;return h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${V-n.height/2-(n.y-(n.top??0))})`),e.intersect=function(Z){return T.polygon(e,v,Z)},s}t(_x,"folder");function Bx(r,e,{dir:o,config:{state:a,themeVariables:s}}){let{nodeStyles:n}=L(e);e.label="";let h=r.insert("g").attr("class",ie(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,u=Math.max(70,e?.width??0),p=Math.max(10,e?.height??0);if(o==="LR"||o==="RL")u=Math.max(10,e?.width??0),p=Math.max(70,e?.height??0);let c=-1*u/2,m=-1*p/2,x=b.svg(h),w=Kt(e,{stroke:s.lineColor,fill:s.lineColor});if(e.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let _=x.rectangle(c,m,u,p,w),v=h.insert(()=>_,":first-child");if(l&&e.look!=="handDrawn")v.selectAll("path").attr("style",l);if(n&&e.look!=="handDrawn")v.selectAll("path").attr("style",n);B(e,v);let E=a?.padding??0;if(e.width&&e.height)e.width+=E/2||0,e.height+=E/2||0;return e.intersect=function(W){return T.rect(e,W)},h}t(Bx,"forkJoin");async function vx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=15,n=10,h=e.look==="neo"?16:e.padding??0,l=e.look==="neo"?12:e.padding??0;if(e.width||e.height){if(e.height=(e?.height??0)-l*2,e.height<n)e.height=n;if(e.width=(e?.width??0)-h*2,e.width<s)e.width=s}let{shapeSvg:u,bbox:p}=await q(r,e,ie(e)),c=(e?.height?e?.height:Math.max(n,p.height))+l*2,m=c/2,x=m-Math.sqrt(Math.max(0,m**2-(p.height/2)**2)),w=(e?.width?e?.width:Math.max(s,p.width)+x*2)+h*2,{cssStyles:_}=e,v=b.svg(u),E=Kt(e,{});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let W=[{x:-w/2,y:-c/2},{x:w/2-m,y:-c/2},...ei(-w/2+m,0,m,50,90,270),{x:w/2-m,y:c/2},{x:-w/2,y:c/2}],U=be(W),V=v.path(U,E),Z=u.insert(()=>V,":first-child");if(Z.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")Z.selectChildren("path").attr("style",_);if(a&&e.look!=="handDrawn")Z.selectChildren("path").attr("style",a);return B(e,Z),e.intersect=function(J){return i.info("Pill intersect",e,{radius:m,point:J}),T.polygon(e,W,J)},u}t(vx,"halfRoundedRectangle");var oS=t((r,e,o,a,s)=>[`M${r+s},${e}`,`L${r+o-s},${e}`,`L${r+o},${e-a/2}`,`L${r+o-s},${e-a}`,`L${r+s},${e-a}`,`L${r},${e-a/2}`,"Z"].join(" "),"createHexagonPathD");async function Lx(r,e){let{labelStyles:o,nodeStyles:a}=L(e),s=e.look==="neo"?3.5:4;e.labelStyle=o;let n=e.padding??0,h=70,l=32,u=e.look==="neo"?h:n,p=e.look==="neo"?l:n;if(e.width||e.height){let V=(e.height??0)/s;e.width=(e?.width??0)-2*V-p,e.height=(e.height??0)-u}let{shapeSvg:c,bbox:m}=await q(r,e,ie(e)),x=(e?.height?e?.height:m.height)+u,w=x/s,_=(e?.width?e?.width:m.width)+2*w+p,v=[{x:w,y:0},{x:_-w,y:0},{x:_,y:-x/2},{x:_-w,y:-x},{x:w,y:-x},{x:0,y:-x/2}],E,{cssStyles:W}=e;if(e.look==="handDrawn"){let U=b.svg(c),V=Kt(e,{}),Z=oS(0,0,_,x,w),J=U.path(Z,V);if(E=c.insert(()=>J,":first-child").attr("transform",`translate(${-_/2}, ${x/2})`),W)E.attr("style",W)}else E=yi(c,_,x,v);if(a)E.attr("style",a);return e.width=_,e.height=x,B(e,E),e.intersect=function(U){return T.polygon(e,v,U)},c}t(Lx,"hexagon");async function Fx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.label="",e.labelStyle=o;let{shapeSvg:s}=await q(r,e,ie(e)),n=Math.max(30,e?.width??0),h=Math.max(30,e?.height??0),{cssStyles:l}=e,u=b.svg(s),p=Kt(e,{});if(e.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let c=[{x:0,y:0},{x:n,y:0},{x:0,y:h},{x:n,y:h}],m=be(c),x=u.path(m,p),w=s.insert(()=>x,":first-child");if(w.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn")w.selectChildren("path").attr("style",l);if(a&&e.look!=="handDrawn")w.selectChildren("path").attr("style",a);return w.attr("transform",`translate(${-n/2}, ${-h/2})`),B(e,w),e.intersect=function(_){return i.info("Pill intersect",e,{points:c}),T.polygon(e,c,_)},s}t(Fx,"hourglass");async function Ax(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),u=a?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:p,bbox:c,label:m}=await q(r,e,"icon-shape default"),x=e.pos==="t",w=l,_=l,{nodeBorder:v}=o,{stylesMap:E}=Xr(e),W=-_/2,U=-w/2,V=e.label?8:0,Z=b.svg(p),J=Kt(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let ut=Z.rectangle(W,U,_,w,J),at=Math.max(_,c.width),mt=w+c.height+V,bt=Z.rectangle(-at/2,-mt/2,at,mt,{...J,fill:"transparent",stroke:"none"}),Lt=p.insert(()=>ut,":first-child"),wt=p.insert(()=>bt);if(e.icon){let kt=p.append("g");kt.html(`<g>${await en(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let ot=kt.node().getBBox(),{width:st,height:xt,x:it,y:_t}=ot;kt.attr("transform",`translate(${-st/2-it},${x?c.height/2+V/2-xt/2-_t:-c.height/2-V/2-xt/2-_t})`),kt.attr("style",`color: ${E.get("stroke")??v};`)}return m.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${x?-mt/2:mt/2-c.height})`),Lt.attr("transform",`translate(0,${x?c.height/2+V/2:-c.height/2-V/2})`),B(e,wt),e.intersect=function(kt){if(i.info("iconSquare intersect",e,kt),!e.label)return T.rect(e,kt);let ot=e.x??0,st=e.y??0,xt=e.height??0,it=[];if(x)it=[{x:ot-c.width/2,y:st-xt/2},{x:ot+c.width/2,y:st-xt/2},{x:ot+c.width/2,y:st-xt/2+c.height+V},{x:ot+_/2,y:st-xt/2+c.height+V},{x:ot+_/2,y:st+xt/2},{x:ot-_/2,y:st+xt/2},{x:ot-_/2,y:st-xt/2+c.height+V},{x:ot-c.width/2,y:st-xt/2+c.height+V}];else it=[{x:ot-_/2,y:st-xt/2},{x:ot+_/2,y:st-xt/2},{x:ot+_/2,y:st-xt/2+w},{x:ot+c.width/2,y:st-xt/2+w},{x:ot+c.width/2/2,y:st+xt/2},{x:ot-c.width/2,y:st+xt/2},{x:ot-c.width/2,y:st-xt/2+w},{x:ot-_/2,y:st-xt/2+w}];return T.polygon(e,it,kt)},p}t(Ax,"icon");async function Mx(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),u=a?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:p,bbox:c,label:m}=await q(r,e,"icon-shape default"),x=20,w=e.label?8:0,_=e.pos==="t",{nodeBorder:v,mainBkg:E}=o,{stylesMap:W}=Xr(e),U=b.svg(p),V=Kt(e,{});if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Z=W.get("fill");V.stroke=Z??E;let J=p.append("g");if(e.icon)J.html(`<g>${await en(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let ut=J.node().getBBox(),{width:at,height:mt,x:bt,y:Lt}=ut,wt=Math.max(at,mt)*Math.SQRT2+x*2,kt=U.circle(0,0,wt,V),ot=Math.max(wt,c.width),st=wt+c.height+w,xt=U.rectangle(-ot/2,-st/2,ot,st,{...V,fill:"transparent",stroke:"none"}),it=p.insert(()=>kt,":first-child"),_t=p.insert(()=>xt);return J.attr("transform",`translate(${-at/2-bt},${_?c.height/2+w/2-mt/2-Lt:-c.height/2-w/2-mt/2-Lt})`),J.attr("style",`color: ${W.get("stroke")??v};`),m.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${_?-st/2:st/2-c.height})`),it.attr("transform",`translate(0,${_?c.height/2+w/2:-c.height/2-w/2})`),B(e,_t),e.intersect=function(Et){return i.info("iconSquare intersect",e,Et),T.rect(e,Et)},p}t(Mx,"iconCircle");async function Ex(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),u=a?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:p,bbox:c,halfPadding:m,label:x}=await q(r,e,"icon-shape default"),w=e.pos==="t",_=l+m*2,v=l+m*2,{nodeBorder:E,mainBkg:W}=o,{stylesMap:U}=Xr(e),V=-v/2,Z=-_/2,J=e.label?8:0,ut=b.svg(p),at=Kt(e,{});if(e.look!=="handDrawn")at.roughness=0,at.fillStyle="solid";let mt=U.get("fill");at.stroke=mt??W;let bt=ut.path(br(V,Z,v,_,5),at),Lt=Math.max(v,c.width),wt=_+c.height+J,kt=ut.rectangle(-Lt/2,-wt/2,Lt,wt,{...at,fill:"transparent",stroke:"none"}),ot=p.insert(()=>bt,":first-child").attr("class","icon-shape2"),st=p.insert(()=>kt);if(e.icon){let xt=p.append("g");xt.html(`<g>${await en(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=xt.node().getBBox(),{width:_t,height:Et,x:Vt,y:Xt}=it;xt.attr("transform",`translate(${-_t/2-Vt},${w?c.height/2+J/2-Et/2-Xt:-c.height/2-J/2-Et/2-Xt})`),xt.attr("style",`color: ${U.get("stroke")??E};`)}return x.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${w?-wt/2:wt/2-c.height})`),ot.attr("transform",`translate(0,${w?c.height/2+J/2:-c.height/2-J/2})`),B(e,st),e.intersect=function(xt){if(i.info("iconSquare intersect",e,xt),!e.label)return T.rect(e,xt);let it=e.x??0,_t=e.y??0,Et=e.height??0,Vt=[];if(w)Vt=[{x:it-c.width/2,y:_t-Et/2},{x:it+c.width/2,y:_t-Et/2},{x:it+c.width/2,y:_t-Et/2+c.height+J},{x:it+v/2,y:_t-Et/2+c.height+J},{x:it+v/2,y:_t+Et/2},{x:it-v/2,y:_t+Et/2},{x:it-v/2,y:_t-Et/2+c.height+J},{x:it-c.width/2,y:_t-Et/2+c.height+J}];else Vt=[{x:it-v/2,y:_t-Et/2},{x:it+v/2,y:_t-Et/2},{x:it+v/2,y:_t-Et/2+_},{x:it+c.width/2,y:_t-Et/2+_},{x:it+c.width/2/2,y:_t+Et/2},{x:it-c.width/2,y:_t+Et/2},{x:it-c.width/2,y:_t-Et/2+_},{x:it-v/2,y:_t-Et/2+_}];return T.polygon(e,Vt,xt)},p}t(Ex,"iconRounded");async function Ox(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),u=a?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:p,bbox:c,halfPadding:m,label:x}=await q(r,e,"icon-shape default"),w=e.pos==="t",_=l+m*2,v=l+m*2,{nodeBorder:E,mainBkg:W}=o,{stylesMap:U}=Xr(e),V=-v/2,Z=-_/2,J=e.label?8:0,ut=b.svg(p),at=Kt(e,{});if(e.look!=="handDrawn")at.roughness=0,at.fillStyle="solid";let mt=U.get("fill");at.stroke=mt??W;let bt=ut.path(br(V,Z,v,_,0.1),at),Lt=Math.max(v,c.width),wt=_+c.height+J,kt=ut.rectangle(-Lt/2,-wt/2,Lt,wt,{...at,fill:"transparent",stroke:"none"}),ot=p.insert(()=>bt,":first-child"),st=p.insert(()=>kt);if(e.icon){let xt=p.append("g");xt.html(`<g>${await en(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=xt.node().getBBox(),{width:_t,height:Et,x:Vt,y:Xt}=it;xt.attr("transform",`translate(${-_t/2-Vt},${w?c.height/2+J/2-Et/2-Xt:-c.height/2-J/2-Et/2-Xt})`),xt.attr("style",`color: ${U.get("stroke")??E};`)}return x.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${w?-wt/2:wt/2-c.height})`),ot.attr("transform",`translate(0,${w?c.height/2+J/2:-c.height/2-J/2})`),B(e,st),e.intersect=function(xt){if(i.info("iconSquare intersect",e,xt),!e.label)return T.rect(e,xt);let it=e.x??0,_t=e.y??0,Et=e.height??0,Vt=[];if(w)Vt=[{x:it-c.width/2,y:_t-Et/2},{x:it+c.width/2,y:_t-Et/2},{x:it+c.width/2,y:_t-Et/2+c.height+J},{x:it+v/2,y:_t-Et/2+c.height+J},{x:it+v/2,y:_t+Et/2},{x:it-v/2,y:_t+Et/2},{x:it-v/2,y:_t-Et/2+c.height+J},{x:it-c.width/2,y:_t-Et/2+c.height+J}];else Vt=[{x:it-v/2,y:_t-Et/2},{x:it+v/2,y:_t-Et/2},{x:it+v/2,y:_t-Et/2+_},{x:it+c.width/2,y:_t-Et/2+_},{x:it+c.width/2/2,y:_t+Et/2},{x:it-c.width/2,y:_t+Et/2},{x:it-c.width/2,y:_t-Et/2+_},{x:it-v/2,y:_t-Et/2+_}];return T.polygon(e,Vt,xt)},p}t(Ox,"iconSquare");async function Ix(r,e,{config:{flowchart:o}}){let a=new Image;a.src=e?.img??"",await a.decode();let s=Number(a.naturalWidth.toString().replace("px","")),n=Number(a.naturalHeight.toString().replace("px",""));e.imageAspectRatio=s/n;let{labelStyles:h}=L(e);e.labelStyle=h;let l=o?.wrappingWidth;e.defaultWidth=o?.wrappingWidth;let u=Math.max(e.label?l??0:0,e?.assetWidth??s),p=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:u:u,c=e.constraint==="on"?p/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(p,l??0);let{shapeSvg:m,bbox:x,label:w}=await q(r,e,"image-shape default"),_=e.pos==="t",v=-p/2,E=-c/2,W=e.label?8:0,U=b.svg(m),V=Kt(e,{});if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Z=U.rectangle(v,E,p,c,V),J=Math.max(p,x.width),ut=c+x.height+W,at=U.rectangle(-J/2,-ut/2,J,ut,{...V,fill:"none",stroke:"none"}),mt=m.insert(()=>Z,":first-child"),bt=m.insert(()=>at);if(e.img){let Lt=m.append("image");Lt.attr("href",e.img),Lt.attr("width",p),Lt.attr("height",c),Lt.attr("preserveAspectRatio","none"),Lt.attr("transform",`translate(${-p/2},${_?ut/2-c:-ut/2})`)}return w.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${_?-c/2-x.height/2-W/2:c/2-x.height/2+W/2})`),mt.attr("transform",`translate(0,${_?x.height/2+W/2:-x.height/2-W/2})`),B(e,bt),e.intersect=function(Lt){if(i.info("iconSquare intersect",e,Lt),!e.label)return T.rect(e,Lt);let wt=e.x??0,kt=e.y??0,ot=e.height??0,st=[];if(_)st=[{x:wt-x.width/2,y:kt-ot/2},{x:wt+x.width/2,y:kt-ot/2},{x:wt+x.width/2,y:kt-ot/2+x.height+W},{x:wt+p/2,y:kt-ot/2+x.height+W},{x:wt+p/2,y:kt+ot/2},{x:wt-p/2,y:kt+ot/2},{x:wt-p/2,y:kt-ot/2+x.height+W},{x:wt-x.width/2,y:kt-ot/2+x.height+W}];else st=[{x:wt-p/2,y:kt-ot/2},{x:wt+p/2,y:kt-ot/2},{x:wt+p/2,y:kt-ot/2+c},{x:wt+x.width/2,y:kt-ot/2+c},{x:wt+x.width/2/2,y:kt+ot/2},{x:wt-x.width/2,y:kt+ot/2},{x:wt-x.width/2,y:kt-ot/2+c},{x:wt-p/2,y:kt-ot/2+c}];return T.polygon(e,st,Lt)},m}t(Ix,"imageSquare");async function $x(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,h=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=Math.max(u.height+n*2,e.height??0),c=Math.max(u.width+h*2,(e.width??0)-p),m=[{x:0,y:0},{x:c,y:0},{x:c+3*p/6,y:-p},{x:-3*p/6,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(l),v=Kt(e,{}),E=be(m),W=_.path(E,v);if(x=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${p/2})`),w)x.attr("style",w)}else x=yi(l,c,p,m);if(a)x.attr("style",a);return e.width=c,e.height=p,B(e,x),e.intersect=function(_){return T.polygon(e,m,_)},l}t($x,"inv_trapezoid");async function Dx(r,e){let{shapeSvg:o,bbox:a,label:s}=await q(r,e,"label"),n=o.insert("rect",":first-child"),h=0.1,l=0.1;return n.attr("width",0.1).attr("height",0.1),o.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),B(e,n),e.intersect=function(u){return T.rect(e,u)},o}t(Dx,"labelRect");async function Px(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,h=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=Math.max(u.height+n,e.height??0),c=Math.max(u.width+h,(e.width??0)-p),m=[{x:0,y:0},{x:c+3*p/6,y:0},{x:c,y:-p},{x:-(3*p)/6,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(l),v=Kt(e,{}),E=be(m),W=_.path(E,v);if(x=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${p/2})`),w)x.attr("style",w)}else x=yi(l,c,p,m);if(a)x.attr("style",a);return e.width=c,e.height=p,B(e,x),e.intersect=function(_){return T.polygon(e,m,_)},l}t(Px,"lean_left");async function Rx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,h=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=Math.max(u.height+n,e.height??0),c=Math.max(u.width+h,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:c,y:0},{x:c+3*p/6,y:-p},{x:0,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(l),v=Kt(e,{}),E=be(m),W=_.path(E,v);if(x=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${p/2})`),w)x.attr("style",w)}else x=yi(l,c,p,m);if(a)x.attr("style",a);return e.width=c,e.height=p,B(e,x),e.intersect=function(_){return T.polygon(e,m,_)},l}t(Rx,"lean_right");function qx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.label="",e.labelStyle=o;let s=r.insert("g").attr("class",ie(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,h=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),u=7,p=[{x:h,y:0},{x:0,y:l+u/2},{x:h-2*u,y:l+u/2},{x:0,y:2*l},{x:h,y:l-u/2},{x:2*u,y:l-u/2}],c=b.svg(s),m=Kt(e,{});if(e.look!=="handDrawn")m.roughness=0,m.fillStyle="solid";let x=be(p),w=c.path(x,m),_=s.insert(()=>w,":first-child");if(_.attr("class","outer-path"),n&&e.look!=="handDrawn")_.selectAll("path").attr("style",n);if(a&&e.look!=="handDrawn")_.selectAll("path").attr("style",a);return _.attr("transform",`translate(-${h/2},${-l})`),B(e,_),e.intersect=function(v){return i.info("lightningBolt intersect",e,v),T.polygon(e,p,v)},s}t(qx,"lightningBolt");var sS=t((r,e,o,a,s,n,h)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+h}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createCylinderPathD"),aS=t((r,e,o,a,s,n,h)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+h}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createOuterCylinderPathD"),nS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),My=10,Ey=10;async function Nx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?24:s;if(e.width||e.height){let W=e.width??0;if(e.width=(e.width??0)-n,e.width<Ey)e.width=Ey;let V=W/2/(2.5+W/50);if(e.height=(e.height??0)-h-V*3,e.height<My)e.height=My}let{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=(e?.width?e?.width:u.width)+n*2,m=c/2,x=m/(2.5+c/50),w=(e?.height?e?.height:u.height)+x+h*2,_=w*0.1,v,{cssStyles:E}=e;if(e.look==="handDrawn"){let W=b.svg(l),U=aS(0,0,c,w,m,x,_),V=nS(0,x,c,w,m,x),Z=Kt(e,{}),J=W.path(U,Z),ut=W.path(V,Z);if(l.insert(()=>ut,":first-child").attr("class","line"),v=l.insert(()=>J,":first-child"),v.attr("class","basic label-container"),E)v.attr("style",E)}else{let W=sS(0,0,c,w,m,x,_);v=l.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",$e(E)).attr("style",a)}return v.attr("label-offset-y",x),v.attr("transform",`translate(${-c/2}, ${-(w/2+x)})`),B(e,v),p.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+x-(u.y-(u.top??0))})`),e.intersect=function(W){let U=T.rect(e,W),V=U.x-(e.x??0);if(m!=0&&(Math.abs(V)<(e.width??0)/2||Math.abs(V)==(e.width??0)/2&&Math.abs(U.y-(e.y??0))>(e.height??0)/2-x)){let Z=x*x*(1-V*V/(m*m));if(Z>0)Z=Math.sqrt(Z);if(Z=x-Z,W.y-(e.y??0)>0)Z=-Z;U.y+=Z}return U},l}t(Nx,"linedCylinder");async function Wx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s;if(e.width||e.height){let Z=e.width;if(e.width=(Z??0)*10/11-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-h*2,e.height<10)e.height=10}let{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=(e?.width?e?.width:u.width)+(n??0)*2,m=(e?.height?e?.height:u.height)+(h??0)*2,x=e.look==="neo"?m/4:m/8,w=m+x,{cssStyles:_}=e,v=b.svg(l),E=Kt(e,{});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let W=[{x:-c/2-c/2*0.1,y:-w/2},{x:-c/2-c/2*0.1,y:w/2},...oo(-c/2-c/2*0.1,w/2,c/2+c/2*0.1,w/2,x,0.8),{x:c/2+c/2*0.1,y:-w/2},{x:-c/2-c/2*0.1,y:-w/2},{x:-c/2,y:-w/2},{x:-c/2,y:w/2*1.1},{x:-c/2,y:-w/2}],U=v.polygon(W.map((Z)=>[Z.x,Z.y]),E),V=l.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")V.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return V.attr("transform",`translate(0,${-x/2})`),p.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*0.1/2-(u.x-(u.left??0))},${-m/2+(e.padding??0)-x-(u.y-(u.top??0))})`),B(e,V),e.intersect=function(Z){return T.polygon(e,W,Z)},l}t(Wx,"linedWaveEdgedRect");var lS=56,Uf=72,Oy=8,Iy=2,hS=8,cS={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},$y=Math.PI/3,Dy=0.6,jf=t((r,e)=>{let o=e*Dy,a=e*Math.sqrt(1-Dy**2),s=Math.cos($y),n=-Math.sin($y),h=o*-n,l=r+o*s,u=a*s,p=a*n;return`M ${h-u} ${l-p} L ${h+u} ${l+p}`},"businessMarkerPathForCircle"),uS={normal:jf(-24,12),hollow:jf(-23,9),awesome:jf(-21,13),icon:"M 12 -8 L 26 -26"},Py=t((r,e,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel"),od=t((r,e,o,a,s=!1)=>{if(e.look==="handDrawn"){let l=b.svg(r).path(o,Kt(e,s?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",a)}let n=r.append("path").attr("class",a).attr("d",o);if(s)n.attr("fill","none");return n},"appendActorPath"),fS=t((r,e,o,a,s,n,h=!1)=>{if(e.look==="handDrawn"){let p=b.svg(r).circle(o,a,s*2,Kt(e,h?{fill:"none"}:{}));return r.insert(()=>p,":first-child").attr("class",n)}let l=r.append("circle").attr("class",n).attr("cx",o).attr("cy",a).attr("r",s);if(h)l.attr("fill","none");return l},"appendActorCircle");var dS=t((r,e,o)=>{if(!e.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",uS[o]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function za(r,e,o,a){let{labelStyles:s,nodeStyles:n}=L(e);e.labelStyle=s;let h=o==="icon"||e.stereotype!==void 0?{...e,icon:o==="icon"?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:l,bbox:u,label:p}=await q(r,h,ie(e,`usecase-actor-variant usecase-actor-${o}`)),c=e.accessibleName??e.label;if(c)l.attr("role","img").attr("aria-label",c);p.attr("class","label actor-label usecase-actor-label");let{theme:m,themeVariables:x}=d();Ht(l,e.colorIndex,m,x.borderColorArray);let w,_;if(e.stereotype){let mt=await yo(l,`«${e.stereotype}»`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});w=mt.label.attr("class","label usecase-stereotype"),_=mt.bbox}let v=l.append("g").attr("class",`usecase-actor-glyph ${cS[o]}`).attr("style",n||null);await a(v,e),dS(v,e,o);let E=e.padding??hS,W=_?.height??0,U=Uf+Oy+u.height+(_?W+Iy:0),V=Math.max(lS,u.width,_?.width??0)+E*2,Z=U+E*2,J=-U/2;v.attr("transform",`translate(0,${J+Uf/2})`);let ut=J+Uf+Oy;if(w&&_)ut+=W/2,Py(w,_,ut),ut+=W/2+Iy;Py(p,u,ut+u.height/2);let at=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-V/2).attr("y",-Z/2).attr("width",V).attr("height",Z).attr("opacity",0).attr("aria-hidden","true");return B(e,at),e.intersect=(mt)=>T.rect(e,mt),l}t(za,"renderUsecaseActor");var pS=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function zx(r,e){return za(r,e,"normal",(o,a)=>{od(o,a,pS,"usecase-actor-stick")})}t(zx,"usecaseActor");var gS=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Hx(r,e){return za(r,e,"awesome",(o,a)=>{od(o,a,gS,"usecase-actor-awesome-silhouette")})}t(Hx,"usecaseActorAwesome");var mS=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Yx(r,e){return za(r,e,"hollow",(o,a)=>{fS(o,a,0,-23,9,"usecase-actor-hollow-head",!0),od(o,a,mS,"usecase-actor-hollow-body",!0)})}t(Yx,"usecaseActorHollow");var Ts=52,Ry=42,qy=-2,yS=t(async(r,e)=>{let o=-Ts/2,a=qy-Ts/2;if(e.look==="handDrawn"){let c=b.svg(r).rectangle(o,a,Ts,Ts,Kt(e,{}));r.insert(()=>c,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",o).attr("y",a).attr("width",Ts).attr("height",Ts).attr("rx",4).attr("ry",4);let s=e.icon??"",n=await rl(s.includes(":")?s:`fa:${s}`),h=await en(s,{height:Ry,width:Ry,fallbackPrefix:"fa"}),l=r.append("g").attr("class",`usecase-actor-icon-symbol${n?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${h}</g>`),u=l.node()?.getBBox();if(u)l.attr("transform",`translate(${-u.width/2-u.x},${qy-u.height/2-u.y})`)},"drawIconActor");async function Ux(r,e){return za(r,e,"icon",yS)}t(Ux,"usecaseActorIcon");var Ny=t((r,e,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel");async function jx(r,e){let o=e,{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let n=o.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:h,bbox:l,halfPadding:u,label:p}=await q(r,n,ie(e,"usecase-business-shape"));p.attr("class","label usecase-label");let{theme:c,themeVariables:m}=d();Ht(h,e.colorIndex,c,m.borderColorArray);let x,w;if(o.stereotype){let ot=await yo(h,`«${o.stereotype}»`,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});x=ot.label.attr("class","label usecase-stereotype"),w=ot.bbox}let _=w?2:0,v=l.height+(w?.height??0)+_,E=Math.max(l.width,w?.width??0),W=u??10,U=E/2+W*2,V=v/2+W*2,Z=Math.min(Math.max(W/5,1),W/2),J=E/2+Z,ut=U-Z,at=J/U,mt=ut/U,bt=V*Math.sqrt(Math.max(0,1-at*at)),Lt=-V*Math.sqrt(Math.max(0,1-mt*mt));if(x&&w)Ny(x,w,-v/2+w.height/2);Ny(p,l,v/2-l.height/2);let wt;if(e.look==="handDrawn"){let st=b.svg(h).ellipse(0,0,U*2,V*2,Kt(e,{}));wt=h.insert(()=>st,":first-child").attr("class","basic label-container usecase-business-ellipse")}else wt=h.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",s).attr("rx",U).attr("ry",V).attr("cx",0).attr("cy",0);h.append("path").attr("class","usecase-business-marker").attr("d",`M ${J} ${bt} L ${ut} ${Lt}`).attr("fill","none").attr("style",s||null);let kt=o.accessibleName??o.label;if(kt)h.attr("role","img").attr("aria-label",kt);return B(e,wt),e.calcIntersect=(ot,st)=>T.ellipse(ot,ot.width/2,ot.height/2,st),e.intersect=(ot)=>T.ellipse(e,U,V,ot),h}t(jx,"usecaseBusiness");var Gf=8,Wy=4,xS=1,Xf=t((r,e,o,a)=>{let s=(e.x??0)-(e.left??0),n=(e.y??0)-(e.top??0);r.attr("transform",`translate(${o-e.width/2-s},${a-e.height/2-n})`)},"positionLabel"),CS=t((r)=>{let e=Number.parseFloat(r??"");return Number.isFinite(e)&&e>=0?e:xS},"numericStrokeWidth");async function Gx(r,e){let o=e,{labelStyles:a,nodeStyles:s}=L(e),{stylesMap:n}=Xr(e);e.labelStyle=a;let{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e,"usecase-json-table"));if(h.attr("role","img"),o.accessibleName)h.attr("aria-label",o.accessibleName);u.attr("class","label usecase-json-title");let p=h.append("g").attr("class","usecase-json-table-grid"),c=[];for(let ot of o.jsonRows??[]){let st=await yo(p,ot.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),xt=await yo(p,ot.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});c.push({key:{label:st.label.attr("class","label usecase-json-key"),bbox:st.bbox},value:{label:xt.label.attr("class","label usecase-json-value"),bbox:xt.bbox}})}let m=Math.max(0,...c.map(({key:ot})=>ot.bbox.width))+Gf*2,x=Math.max(0,...c.map(({value:ot})=>ot.bbox.width))+Gf*2,w=l.width+Gf*2,_=Math.max(w,m+x),v=x+Math.max(0,_-m-x),E=l.height+Wy*2,W=c.map(({key:ot,value:st})=>Math.max(ot.bbox.height,st.bbox.height)+Wy*2),U=E+W.reduce((ot,st)=>ot+st,0),V=CS(n.get("stroke-width")),Z=_+V*2,J=U+V*2,ut=-_/2,at=-U/2,mt=e.look==="handDrawn"?b.svg(h):void 0,bt=mt?Kt(e,{}):void 0,Lt=t((ot,st,xt,it,_t,Et)=>{if(mt&&bt){let Vt=mt.rectangle(xt,it,_t,Et,bt);return ot.insert(()=>Vt,":first-child").attr("class",st)}return ot.insert("rect",":first-child").attr("class",st).attr("x",xt).attr("y",it).attr("width",_t).attr("height",Et).attr("style",s)},"insertCell"),wt=Lt(h,"label-container usecase-json-border",-Z/2,-J/2,Z,J);Lt(p,"usecase-json-cell usecase-json-title-cell",ut,at,_,E),p.node()?.append(u.node()),Xf(u,l,0,at+E/2);let kt=at+E;return c.forEach(({key:ot,value:st},xt)=>{let it=W[xt],_t=p.append("g").attr("class","usecase-json-row").attr("data-row-index",xt).attr("transform",`translate(0,${kt})`);Lt(_t,"usecase-json-cell usecase-json-key-cell",ut,0,m,it),Lt(_t,"usecase-json-cell usecase-json-value-cell",ut+m,0,v,it),_t.node()?.append(ot.label.node(),st.label.node()),Xf(ot.label,ot.bbox,ut+m/2,it/2),Xf(st.label,st.bbox,ut+m+v/2,it/2),kt+=it}),B(e,wt),e.intersect=(ot)=>T.rect(e,ot),h}t(Gx,"usecaseJsonTable");async function Xx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s,l=e.look==="neo"?10:5;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2-2*l,10),e.height=Math.max((e?.height??0)-h*2-2*l,10);let{shapeSvg:u,bbox:p,label:c}=await q(r,e,ie(e)),m=(e?.width?e?.width:p.width)+n*2+2*l,x=(e?.height?e?.height:p.height)+h*2+2*l,w=m-2*l,_=x-2*l,v=-w/2,E=-_/2,{cssStyles:W}=e,U=b.svg(u),V=Kt(e,{}),Z=[{x:v-l,y:E+l},{x:v-l,y:E+_+l},{x:v+w-l,y:E+_+l},{x:v+w-l,y:E+_},{x:v+w,y:E+_},{x:v+w,y:E+_-l},{x:v+w+l,y:E+_-l},{x:v+w+l,y:E-l},{x:v+l,y:E-l},{x:v+l,y:E},{x:v,y:E},{x:v,y:E+l}],J=[{x:v,y:E+l},{x:v+w-l,y:E+l},{x:v+w-l,y:E+_},{x:v+w,y:E+_},{x:v+w,y:E},{x:v,y:E}];if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let ut=be(Z),at=U.path(ut,V),mt=be(J),bt=U.path(mt,V);if(e.look!=="handDrawn")at=Kf(at),bt=Kf(bt);let Lt=u.insert("g",":first-child");if(Lt.insert(()=>at),Lt.insert(()=>bt),Lt.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",W);if(a&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",a);return c.attr("transform",`translate(${-(p.width/2)-l-(p.x-(p.left??0))}, ${-(p.height/2)+l-(p.y-(p.top??0))})`),B(e,Lt),e.intersect=function(wt){return T.polygon(e,Z,wt)},u}t(Xx,"multiRect");async function Vx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=e.padding??0,u=e.look==="neo"?16:l,p=e.look==="neo"?12:l,c=!0;if(e.width||e.height)c=!1,e.width=(e?.width??0)-u*2,e.height=(e?.height??0)-p*3;let m=Math.max(n.width,e?.width??0)+u*2,x=Math.max(n.height,e?.height??0)+p*3,w=e.look==="neo"?x/4:x/8,_=x+(c?w/2:-w/2),v=-m/2,E=-_/2,W=10,{cssStyles:U}=e,V=oo(v-W,E+_+W,v+m-W,E+_+W,w,0.8),Z=V?.[V.length-1],J=[{x:v-W,y:E+W},{x:v-W,y:E+_+W},...V,{x:v+m-W,y:Z.y-W},{x:v+m,y:Z.y-W},{x:v+m,y:Z.y-2*W},{x:v+m+W,y:Z.y-2*W},{x:v+m+W,y:E-W},{x:v+W,y:E-W},{x:v+W,y:E},{x:v,y:E},{x:v,y:E+W}],ut=[{x:v,y:E+W},{x:v+m-W,y:E+W},{x:v+m-W,y:Z.y-W},{x:v+m,y:Z.y-W},{x:v+m,y:E},{x:v,y:E}],at=b.svg(s),mt=Kt(e,{});if(e.look!=="handDrawn")mt.roughness=0,mt.fillStyle="solid";let bt=be(J),Lt=at.path(bt,mt),wt=be(ut),kt=at.path(wt,mt),ot=s.insert(()=>Lt,":first-child");if(ot.insert(()=>kt),ot.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")ot.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")ot.selectAll("path").attr("style",a);return ot.attr("transform",`translate(0,${-w/2})`),h.attr("transform",`translate(${-(n.width/2)-W-(n.x-(n.left??0))}, ${-(n.height/2)+W-w-(n.y-(n.top??0))})`),B(e,ot),e.intersect=function(st){return T.polygon(e,J,st)},s}t(Vx,"multiWaveEdgedRectangle");async function Kx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);if(e.labelStyle=a,!(e.useHtmlLabels||tt(A())))e.centerLabel=!0;let{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=Math.max(l.width+(e.padding??0)*2,e?.width??0),c=Math.max(l.height+(e.padding??0)*2,e?.height??0),m=-p/2,x=-c/2,{cssStyles:w}=e,_=b.svg(h),v=Kt(e,{fill:o.noteBkgColor,stroke:o.noteBorderColor});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=_.rectangle(m,x,p,c,v),W=h.insert(()=>E,":first-child");if(W.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),w&&e.look!=="handDrawn")W.selectAll("path").attr("style",w);if(s&&e.look!=="handDrawn")W.selectAll("path").attr("style",s);return u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),B(e,W),e.intersect=function(U){return T.rect(e,U)},h}t(Kx,"note");var bS=t((r,e,o)=>[`M${r+o/2},${e}`,`L${r+o},${e-o/2}`,`L${r+o/2},${e-o}`,`L${r},${e-o/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Zx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await q(r,e,ie(e)),h=n.width+(e.padding??0),l=n.height+(e.padding??0),u=h+l,p=0.5,c=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],m,{cssStyles:x}=e;if(e.look==="handDrawn"){let w=b.svg(s),_=Kt(e,{}),v=bS(0,0,u),E=w.path(v,_);if(m=s.insert(()=>E,":first-child").attr("transform",`translate(${-u/2+p}, ${u/2})`),x)m.attr("style",x)}else m=yi(s,u,u,c),m.attr("transform",`translate(${-u/2+p}, ${u/2})`);if(a)m.attr("style",a);return B(e,m),e.calcIntersect=function(w,_){let v=w.width,E=[{x:v/2,y:0},{x:v,y:-v/2},{x:v/2,y:-v},{x:0,y:-v/2}];return T.polygon(w,E,_)},e.intersect=function(w){return this.calcIntersect(e,w)},s}t(Zx,"question");async function Qx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?21:s??0,h=e.look==="neo"?12:s??0,{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=u.width+(e.look==="neo"?n*2:n),m=Math.max(u.height+(e.look==="neo"?h*2:h),e.height??0),x=m/4,_=-Math.max(c,(e.width??0)-x)/2,v=-m/2,E=v/2,W=[{x:_+E,y:v},{x:_,y:0},{x:_+E,y:-v},{x:-_,y:-v},{x:-_,y:v}],{cssStyles:U}=e,V=b.svg(l),Z=Kt(e,{});if(e.look!=="handDrawn")Z.roughness=0,Z.fillStyle="solid";let J=be(W),ut=V.path(J,Z),at=l.insert(()=>ut,":first-child");if(at.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")at.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")at.selectAll("path").attr("style",a);return at.attr("transform",`translate(${-E/2},0)`),p.attr("transform",`translate(${-E/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),B(e,at),e.intersect=function(mt){return T.polygon(e,W,mt)},l}t(Qx,"rect_left_inv_arrow");async function Jx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s;if(!e.cssClasses)s="node default";else s="node "+e.cssClasses;let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),h=n.insert("g"),l=n.insert("g").attr("class","label").attr("style",a),{description:u,label:p}=e,c=await qr(l,p,e.labelStyle,!0,!0),m={width:0,height:0};if(tt(d())){let mt=c.children[0],bt=y(c);m=mt.getBoundingClientRect(),bt.attr("width",m.width),bt.attr("height",m.height)}i.info("Text 2",u);let x=u||[],w=c.getBBox(),_=await qr(l,Array.isArray(x)?x.join("<br/>"):x,e.labelStyle,!0,!0),v=_.children[0],E=y(_);m=v.getBoundingClientRect(),E.attr("width",m.width),E.attr("height",m.height);let W=(e.padding||0)/2;y(_).attr("transform","translate( "+(m.width>w.width?0:(w.width-m.width)/2)+", "+(w.height+W+5)+")"),y(c).attr("transform","translate( "+(m.width<w.width?0:-(w.width-m.width)/2)+", 0)"),m=l.node().getBBox(),l.attr("transform","translate("+-m.width/2+", "+(-m.height/2-W+3)+")");let U=m.width+(e.padding||0),V=m.height+(e.padding||0),Z=-m.width/2-W,J=-m.height/2-W,ut,at;if(e.look==="handDrawn"){let mt=b.svg(n),bt=Kt(e,{}),Lt=mt.path(br(Z,J,U,V,e.rx||0),bt),wt=mt.line(-m.width/2-W,-m.height/2-W+w.height+W,m.width/2+W,-m.height/2-W+w.height+W,bt);at=n.insert(()=>(i.debug("Rough node insert CXC",Lt),wt),":first-child"),ut=n.insert(()=>(i.debug("Rough node insert CXC",Lt),Lt),":first-child")}else ut=h.insert("rect",":first-child"),at=h.insert("line"),ut.attr("class","outer title-state").attr("style",a).attr("x",-m.width/2-W).attr("y",-m.height/2-W).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),at.attr("class","divider").attr("x1",-m.width/2-W).attr("x2",m.width/2+W).attr("y1",-m.height/2-W+w.height+W).attr("y2",-m.height/2-W+w.height+W);return B(e,ut),e.intersect=function(mt){return T.rect(e,mt)},n}t(Jx,"rectWithTitle");async function t0(r,e,{config:{themeVariables:o}}){let a=o?.radius??5,s={rx:a,ry:a,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return Ls(r,e,s)}t(t0,"roundedRect");var mo=8;async function e0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0,{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=(e?.width??l.width)+s*2+(e.look==="neo"?mo:mo*2),c=(e?.height??l.height)+n*2,m=p-mo,x=c,w=mo-p/2,_=-c/2,{cssStyles:v}=e,E=b.svg(h),W=Kt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let U=[{x:w,y:_},{x:w+m,y:_},{x:w+m,y:_+x},{x:w-mo,y:_+x},{x:w-mo,y:_},{x:w,y:_},{x:w,y:_+x}],V=E.polygon(U.map((J)=>[J.x,J.y]),W),Z=h.insert(()=>V,":first-child");if(Z.attr("class","basic label-container outer-path").attr("style",$e(v)),a&&e.look!=="handDrawn")Z.selectAll("path").attr("style",a);if(v&&e.look!=="handDrawn")Z.selectAll("path").attr("style",a);return u.attr("transform",`translate(${mo/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),B(e,Z),e.intersect=function(J){return T.rect(e,J)},h}t(e0,"shadedProcess");async function r0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2,10),e.height=Math.max((e?.height??0)/1.5-h*2,10);let{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=(e?.width?e?.width:u.width)+n*2,m=((e?.height?e?.height:u.height)+h*2)*1.5,x=c,w=m/1.5,_=-x/2,v=-w/2,{cssStyles:E}=e,W=b.svg(l),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=[{x:_,y:v},{x:_,y:v+w},{x:_+x,y:v+w},{x:_+x,y:v-w/2}],Z=be(V),J=W.path(Z,U),ut=l.insert(()=>J,":first-child");if(ut.attr("class","basic label-container outer-path"),E&&e.look!=="handDrawn")ut.selectChildren("path").attr("style",E);if(a&&e.look!=="handDrawn")ut.selectChildren("path").attr("style",a);return ut.attr("transform",`translate(0, ${w/4})`),p.attr("transform",`translate(${-x/2+(e.padding??0)-(u.x-(u.left??0))}, ${-w/4+(e.padding??0)-(u.y-(u.top??0))})`),B(e,ut),e.intersect=function(at){return T.polygon(e,V,at)},l}t(r0,"slopedRect");async function i0(r,e){let o=e.padding??0,a=e.look==="neo"?16:o*2,s=e.look==="neo"?12:o,n={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??a,labelPaddingY:s},h=await Ls(r,e,n);if(e.colorIndex!==void 0){let{theme:l,themeVariables:u}=d();Ht(h,e.colorIndex,l,u.borderColorArray)}return h}t(i0,"squareRect");var Jf=50,kS=t((r,e,o)=>{let a=r.height+o,s=a*Math.cos(Math.PI/(2*(Jf-1))),n=Math.sqrt(Math.max(0,s**2-r.height**2));return{w:Math.max(r.width+a/4+e,1.5*a+(a-s),r.width+e+a-n),h:a}},"stadiumDimensions");async function o0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?40:s,h=e.look==="neo"?24:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),{w:p,h:c}=kS(u,n,h),m=c/2,{cssStyles:x}=e,w=b.svg(l),_=Kt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=[{x:-p/2+m,y:-c/2},{x:p/2-m,y:-c/2},...ei(-p/2+m,0,m,Jf,90,270),{x:p/2-m,y:c/2},...ei(p/2-m,0,m,Jf,270,450)],E=be(v),W=w.path(E,_),U=l.insert(()=>W,":first-child");if(U.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn")U.selectChildren("path").attr("style",x);if(a&&e.look!=="handDrawn")U.selectChildren("path").attr("style",a);return B(e,U),e.intersect=function(V){return T.polygon(e,v,V)},l}t(o0,"stadium");async function s0(r,e){let o={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return Ls(r,e,o)}t(s0,"state");function a0(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{cssStyles:n}=e,{lineColor:h,stateBorder:l,nodeBorder:u,nodeShadow:p}=o;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let c=r.insert("g").attr("class","node default").attr("id",e.domId??e.id),m=b.svg(c),x=Kt(e,{});if(e.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let w=m.circle(0,0,e.width,{...x,stroke:h,strokeWidth:2}),_=l??u,v=(e.width??0)*5/14,E=m.circle(0,0,v,{...x,fill:_,stroke:_,strokeWidth:2,fillStyle:"solid"}),W=c.insert(()=>w,":first-child");if(W.insert(()=>E),e.look!=="handDrawn")W.attr("class","outer-path");if(n)W.selectAll("path").attr("style",n);if(s)W.selectAll("path").attr("style",s);if(e.width<25&&p&&e.look!=="handDrawn"){let U=r.node()?.ownerSVGElement?.id??"",V=U?`${U}-drop-shadow-small`:"drop-shadow-small";W.attr("style",`filter:url(#${V})`)}return B(e,W),e.intersect=function(U){return T.circle(e,(e.width??0)/2,U)},c}t(a0,"stateEnd");function n0(r,e,{config:{themeVariables:o}}){let{lineColor:a,nodeShadow:s}=o;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let n=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),h;if(e.look==="handDrawn"){let u=b.svg(n).circle(0,0,e.width,Gg(a));h=n.insert(()=>u),h.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else h=n.insert("circle",":first-child"),h.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&s&&e.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",u=l?`${l}-drop-shadow-small`:"drop-shadow-small";h.attr("style",`filter:url(#${u})`)}return B(e,h),e.intersect=function(l){return T.circle(e,(e.width??7)/2,l)},n}t(n0,"stateStart");var _s=8;async function l0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e?.padding??8,n=e.look==="neo"?28:s,h=e.look==="neo"?12:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=Math.max(u.width+2*_s+n,e.width??0),c=Math.max(u.height+h,e.height??0),m=p-2*_s,x=c,w=-p/2,_=-c/2,v=[{x:0,y:0},{x:m,y:0},{x:m,y:-x},{x:0,y:-x},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-x},{x:-8,y:-x},{x:-8,y:0}];if(e.look==="handDrawn"){let E=b.svg(l),W=Kt(e,{}),U=E.rectangle(w,_,m+16,x,W),V=E.line(w+_s,_,w+_s,_+x,W),Z=E.line(w+_s+m,_,w+_s+m,_+x,W);l.insert(()=>V,":first-child"),l.insert(()=>Z,":first-child");let J=l.insert(()=>U,":first-child"),{cssStyles:ut}=e;J.attr("class","basic label-container").attr("style",$e(ut)),B(e,J)}else{let E=yi(l,m,x,v);if(a)E.attr("style",a);B(e,E)}return e.intersect=function(E){return T.polygon(e,v,E)},l}t(l0,"subroutine");var Vf=0.2;async function h0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s;if(e.width||e.height)e.height=Math.max((e?.height??0)-h*2,10),e.width=Math.max((e?.width??0)-n*2-Vf*(e.height+h*2),10);let{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=(e?.height?e?.height:u.height)+h*2,c=Vf*p,m=Vf*p,w=(e?.width?e?.width:u.width)+n*2+c-c,_=p,v=-w/2,E=-_/2,{cssStyles:W}=e,U=b.svg(l),V=Kt(e,{}),Z=[{x:v-c/2,y:E},{x:v+w+c/2,y:E},{x:v+w+c/2,y:E+_},{x:v-c/2,y:E+_}],J=[{x:v+w-c/2,y:E+_},{x:v+w+c/2,y:E+_},{x:v+w+c/2,y:E+_-m}];if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let ut=be(Z),at=U.path(ut,V),mt=be(J),bt=U.path(mt,{...V,fillStyle:"solid"}),Lt=l.insert(()=>bt,":first-child");if(Lt.insert(()=>at,":first-child"),Lt.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",W);if(a&&e.look!=="handDrawn")Lt.selectAll("path").attr("style",a);return B(e,Lt),e.intersect=function(wt){return T.polygon(e,Z,wt)},l}t(h0,"taggedRect");async function c0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:h}=await q(r,e,ie(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),u=Math.max(n.height+(e.padding??0)*2,e?.height??0),p=u/8,c=0.2*l,m=0.2*u,x=u+p,{cssStyles:w}=e,_=b.svg(s),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=[{x:-l/2-l/2*0.1,y:x/2},...oo(-l/2-l/2*0.1,x/2,l/2+l/2*0.1,x/2,p,0.8),{x:l/2+l/2*0.1,y:-x/2},{x:-l/2-l/2*0.1,y:-x/2}],W=-l/2+l/2*0.1,U=-x/2-m*0.4,V=[{x:W+l-c,y:(U+u)*1.3},{x:W+l,y:U+u-m},{x:W+l,y:(U+u)*0.9},...oo(W+l,(U+u)*1.25,W+l-c,(U+u)*1.3,-u*0.02,0.5)],Z=be(E),J=_.path(Z,v),ut=be(V),at=_.path(ut,{...v,fillStyle:"solid"}),mt=s.insert(()=>at,":first-child");if(mt.insert(()=>J,":first-child"),mt.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")mt.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")mt.selectAll("path").attr("style",a);return mt.attr("transform",`translate(0,${-p/2})`),h.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-u/2+(e.padding??0)-p/2-(n.y-(n.top??0))})`),B(e,mt),e.intersect=function(bt){return T.polygon(e,E,bt)},s}t(c0,"taggedWaveEdgedRectangle");async function u0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await q(r,e,ie(e)),h=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),u=-h/2,p=-l/2,c=s.insert("rect",":first-child");return c.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",u).attr("y",p).attr("width",h).attr("height",l),B(e,c),e.intersect=function(m){return T.rect(e,m)},s}t(u0,"text");var wS=t((r,e,o,a,s,n)=>`M${r},${e}
|
|
234
|
+
a${s},${n} 0,0,1 0,${-a}
|
|
235
|
+
l${o},0
|
|
236
|
+
a${s},${n} 0,0,1 0,${a}
|
|
237
|
+
M${o},${-a}
|
|
238
|
+
a${s},${n} 0,0,0 0,${a}
|
|
239
|
+
l${-o},0`,"createCylinderPathD"),SS=t((r,e,o,a,s,n)=>[`M${r},${e}`,`M${r+o},${e}`,`a${s},${n} 0,0,0 0,${-a}`,`l${-o},0`,`a${s},${n} 0,0,0 0,${a}`,`l${o},0`].join(" "),"createOuterCylinderPathD"),TS=t((r,e,o,a,s,n)=>[`M${r+o/2},${-a/2}`,`a${s},${n} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD"),zy=5,Hy=10;async function f0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?12:s/2,h=e.height??0;if(e.height){if(e.height=e.height-n,e.height<zy)e.height=zy}if(e.width){let W=h/2/(2.5+h/50);if(e.width=e.width-n-W*3,e.width<Hy)e.width=Hy}let{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=Math.max(e.height??0,u.height)+n,m=c/2,x=m/(2.5+c/50),w=Math.max(e.width??0,u.width)+x+n,{cssStyles:_}=e,v;if(e.look==="handDrawn"){let E=b.svg(l),W=SS(0,0,w,c,x,m),U=TS(0,0,w,c,x,m),V=E.path(W,Kt(e,{})),Z=E.path(U,Kt(e,{fill:"none"}));if(v=l.insert(()=>Z,":first-child"),v=l.insert(()=>V,":first-child"),v.attr("class","basic label-container"),_)v.attr("style",_)}else{let E=wS(0,0,w,c,x,m);if(v=l.insert("path",":first-child").attr("d",E).attr("class","basic label-container").attr("style",$e(_)).attr("style",a),v.attr("class","basic label-container outer-path"),_)v.selectAll("path").attr("style",_);if(a)v.selectAll("path").attr("style",a)}return v.attr("label-offset-x",x),v.attr("transform",`translate(${-w/2}, ${c/2} )`),p.attr("transform",`translate(${-(u.width/2)-x-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),B(e,v),e.intersect=function(E){let W=T.rect(e,E),U=W.y-(e.y??0);if(m!=0&&(Math.abs(U)<(e.height??0)/2||Math.abs(U)==(e.height??0)/2&&Math.abs(W.x-(e.x??0))>(e.width??0)/2-x)){let V=x*x*(1-U*U/(m*m));if(V!=0)V=Math.sqrt(Math.abs(V));if(V=x-V,E.x-(e.x??0)>0)V=-V;W.x+=V}return W},l}t(f0,"tiltedCylinder");async function d0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s:s,h=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=Math.max(u.height+n,e.height??0),c=Math.max(u.width+h,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:c+3*p/6,y:0},{x:c,y:-p},{x:0,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let _=b.svg(l),v=Kt(e,{}),E=be(m),W=_.path(E,v);if(x=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${p/2})`),w)x.attr("style",w)}else x=yi(l,c,p,m);if(a)x.attr("style",a);return e.width=c,e.height=p,B(e,x),e.intersect=function(_){return T.polygon(e,m,_)},l}t(d0,"trapezoid");async function p0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s,l=15,u=5;if(e.width||e.height){if(e.height=(e.height??0)-h*2,e.height<u)e.height=u;if(e.width=(e.width??0)-n*2,e.width<l)e.width=l}let{shapeSvg:p,bbox:c}=await q(r,e,ie(e)),m=(e?.width?e?.width:c.width)+n*2,x=(e?.height?e?.height:c.height)+h*2,{cssStyles:w}=e,_=b.svg(p),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=[{x:-m/2*0.8,y:-x/2},{x:m/2*0.8,y:-x/2},{x:m/2,y:-x/2*0.6},{x:m/2,y:x/2},{x:-m/2,y:x/2},{x:-m/2,y:-x/2*0.6}],W=be(E),U=_.path(W,v),V=p.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")V.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")V.selectChildren("path").attr("style",a);return B(e,V),e.intersect=function(Z){return T.polygon(e,E,Z)},p}t(p0,"trapezoidalPentagon");var Yy=10,Uy=10;async function g0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;if(e.width||e.height){if(e.width=((e?.width??0)-n)/2,e.width<Uy)e.width=Uy;if(e.height=e?.height??0,e.height<Yy)e.height=Yy}let{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=hn(d().flowchart?.htmlLabels),c=(e?.width?e?.width:l.width)+n,m=e?.height?e?.height:c+l.height,x=m,w=[{x:0,y:0},{x,y:0},{x:x/2,y:-m}],{cssStyles:_}=e,v=b.svg(h),E=Kt(e,{});if(e.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let W=be(w),U=v.path(W,E),V=h.insert(()=>U,":first-child").attr("transform",`translate(${-m/2}, ${m/2})`).attr("class","outer-path");if(_&&e.look!=="handDrawn")V.selectChildren("path").attr("style",_);if(a&&e.look!=="handDrawn")V.selectChildren("path").attr("style",a);return e.width=c,e.height=m,B(e,V),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${m/2-(l.height+(e.padding??0)/(p?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(Z){return i.info("Triangle intersect",e,w,Z),T.polygon(e,w,Z)},h}t(g0,"triangle");async function m0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?12:s,l=!0;if(e.width||e.height){if(l=!1,e.width=(e?.width??0)-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-h*2,e.height<10)e.height=10}let{shapeSvg:u,bbox:p,label:c}=await q(r,e,ie(e)),m=(e?.width?e?.width:p.width)+(n??0)*2,x=(e?.height?e?.height:p.height)+(h??0)*2,w=e.look==="neo"?x/4:x/8,_=x+(l?w:-w),{cssStyles:v}=e,W=14-m,U=W>0?W/2:0,V=b.svg(u),Z=Kt(e,{});if(e.look!=="handDrawn")Z.roughness=0,Z.fillStyle="solid";let J=[{x:-m/2-U,y:_/2},...oo(-m/2-U,_/2,m/2+U,_/2,w,0.8),{x:m/2+U,y:-_/2},{x:-m/2-U,y:-_/2}],ut=be(J),at=V.path(ut,Z),mt=u.insert(()=>at,":first-child");if(mt.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")mt.selectAll("path").attr("style",v);if(a&&e.look!=="handDrawn")mt.selectAll("path").attr("style",a);return mt.attr("transform",`translate(0,${-w/2})`),c.attr("transform",`translate(${-m/2+(e.padding??0)-(p.x-(p.left??0))},${-x/2+(e.padding??0)-w-(p.y-(p.top??0))})`),B(e,mt),e.intersect=function(bt){return T.polygon(e,J,bt)},u}t(m0,"waveEdgedRectangle");async function y0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,h=e.look==="neo"?20:s;if(e.width||e.height){if(e.width=e?.width??0,e.width<20)e.width=20;if(e.height=e?.height??0,e.height<10)e.height=10;let Z=Math.min(e.height*0.2,e.height/4);e.height=Math.ceil(e.height-h-Z*2.2222222222222223),e.width=e.width-n*2}let{shapeSvg:l,bbox:u}=await q(r,e,ie(e)),p=(e?.width?e?.width:u.width)+n*2,c=(e?.height?e?.height:u.height)+h,m=c/8,x=c+m*2,{cssStyles:w}=e,_=b.svg(l),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=[{x:-p/2,y:x/2},...oo(-p/2,x/2,p/2,x/2,m,1),{x:p/2,y:-x/2},...oo(p/2,-x/2,-p/2,-x/2,m,-1)],W=be(E),U=_.path(W,v),V=l.insert(()=>U,":first-child");if(V.attr("class","basic label-container"),w&&e.look!=="handDrawn")V.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return B(e,V),e.intersect=function(Z){return T.polygon(e,E,Z)},l}t(y0,"waveRectangle");var Ne=10;async function x0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0;if(e.width||e.height)e.width=Math.max((e?.width??0)-s*2-Ne,10),e.height=Math.max((e?.height??0)-n*2-Ne,10);let{shapeSvg:h,bbox:l,label:u}=await q(r,e,ie(e)),p=(e?.width?e?.width:l.width)+s*2+Ne,c=(e?.height?e?.height:l.height)+n*2+Ne,m=p-Ne,x=c-Ne,w=-m/2,_=-x/2,{cssStyles:v}=e,E=b.svg(h),W=Kt(e,{}),U=[{x:w-Ne,y:_-Ne},{x:w-Ne,y:_+x},{x:w+m,y:_+x},{x:w+m,y:_-Ne}],V=`M${w-Ne},${_-Ne} L${w+m},${_-Ne} L${w+m},${_+x} L${w-Ne},${_+x} L${w-Ne},${_-Ne}
|
|
240
|
+
M${w-Ne},${_} L${w+m},${_}
|
|
241
|
+
M${w},${_-Ne} L${w},${_+x}`;if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let Z=E.path(V,W),J=h.insert(()=>Z,":first-child");if(J.attr("transform",`translate(${Ne/2}, ${Ne/2})`),J.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")J.selectAll("path").attr("style",v);if(a&&e.look!=="handDrawn")J.selectAll("path").attr("style",a);return u.attr("transform",`translate(${-(l.width/2)+Ne/2-(l.x-(l.left??0))}, ${-(l.height/2)+Ne/2-(l.y-(l.top??0))})`),B(e,J),e.intersect=function(ut){return T.polygon(e,U,ut)},h}t(x0,"windowPane");var jy=new Set(["redux-color","redux-dark-color"]),_S=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function sd(r,e){let o=e;if(o.alias)e.label=o.alias;let{theme:a,themeVariables:s}=A(),{rowEven:n,rowOdd:h,nodeBorder:l,borderColorArray:u}=s;if(e.look==="handDrawn"){let{themeVariables:Gt}=A(),{background:se}=Gt,he={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${se}`]};await sd(r,he)}let p=A();e.useHtmlLabels=p.htmlLabels;let c=p.er?.diagramPadding??10,m=p.er?.entityPadding??6,{cssStyles:x}=e,{labelStyles:w,nodeStyles:_}=L(e);if(o.attributes.length===0&&e.label){let Gt={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5,classes:""};if(Ft(e.label,p)+Gt.labelPaddingX*2<p.er.minEntityWidth)e.width=p.er.minEntityWidth;let se=await Ls(r,e,Gt);if(a!=null&&jy.has(a)){let he=o.colorIndex??0;se.attr("data-color-id",`color-${he%u.length}`)}if(!hn(p.htmlLabels)){let he=se.select("text"),ce=he.node()?.getBBox();he.attr("transform",`translate(${-ce.width/2}, 0)`)}return se}if(!p.htmlLabels)c*=1.25,m*=1.25;let v=ie(e);if(!v)v="node default";let E=r.insert("g").attr("class",v).attr("id",e.domId||e.id),W=await Bs(E,e.label??"",p,0,0,["name"],w);W.height+=m;let U=0,V=[],Z=[],J=0,ut=0,at=0,mt=0,bt=!0,Lt=!0;for(let Gt of o.attributes){let se=await Bs(E,Gt.type,p,0,U,["attribute-type"],w);J=Math.max(J,se.width+c);let he=await Bs(E,Gt.name,p,0,U,["attribute-name"],w);ut=Math.max(ut,he.width+c);let ce=await Bs(E,Gt.keys.join(),p,0,U,["attribute-keys"],w);at=Math.max(at,ce.width+c);let Ae=await Bs(E,Gt.comment,p,0,U,["attribute-comment"],w);mt=Math.max(mt,Ae.width+c);let Fe=Math.max(se.height,he.height,ce.height,Ae.height)+m;Z.push({yOffset:U,rowHeight:Fe}),U+=Fe}let wt=4;if(at<=c)bt=!1,at=0,wt--;if(mt<=c)Lt=!1,mt=0,wt--;let kt=E.node().getBBox();if(W.width+c*2-(J+ut+at+mt)>0){let Gt=W.width+c*2-(J+ut+at+mt);if(J+=Gt/wt,ut+=Gt/wt,at>0)at+=Gt/wt;if(mt>0)mt+=Gt/wt}let ot=J+ut+at+mt,st=b.svg(E),xt=Kt(e,{});if(e.look!=="handDrawn")xt.roughness=0,xt.fillStyle="solid";let it=0;if(Z.length>0)it=Z.reduce((Gt,se)=>Gt+(se?.rowHeight??0),0);let _t=Math.max(kt.width+c*2,e?.width||0,ot),Et=Math.max((it??0)+W.height,e?.height||0),Vt=-_t/2,Xt=-Et/2;if(E.selectAll("g:not(:first-child)").each((Gt,se,he)=>{let ce=y(he[se]),Ae=ce.attr("transform"),Fe=0,Or=0;if(Ae){let vr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ae);if(vr){if(Fe=parseFloat(vr[1]),Or=parseFloat(vr[2]),ce.attr("class").includes("attribute-name"))Fe+=J;else if(ce.attr("class").includes("attribute-keys"))Fe+=J+ut;else if(ce.attr("class").includes("attribute-comment"))Fe+=J+ut+at}}ce.attr("transform",`translate(${Vt+c/2+Fe}, ${Or+Xt+W.height+m/2})`)}),E.select(".name").attr("transform","translate("+-W.width/2+", "+(Xt+m/2)+")"),a!=null&&jy.has(a)){let Gt=o.colorIndex??0;E.attr("data-color-id",`color-${Gt%u.length}`)}let le=st.rectangle(Vt,Xt,_t,Et,xt),ne=E.insert(()=>le,":first-child").attr("class","outer-path").attr("style",x.join(""));V.push(0);for(let[Gt,se]of Z.entries()){let ce=(Gt+1)%2===0&&se.yOffset!==0,Ae=st.rectangle(Vt,W.height+Xt+se?.yOffset,_t,se?.rowHeight,{...xt,fill:ce?n:h,stroke:l});E.insert(()=>Ae,"g.label").attr("style",x.join("")).attr("class",`row-rect-${ce?"even":"odd"}`)}let me=0.0001,xe=vs(Vt,W.height+Xt,_t+Vt,W.height+Xt,me),de=st.polygon(xe.map((Gt)=>[Gt.x,Gt.y]),xt);if(E.insert(()=>de).attr("class","divider"),xe=vs(J+Vt,W.height+Xt,J+Vt,Et+Xt,me),de=st.polygon(xe.map((Gt)=>[Gt.x,Gt.y]),xt),E.insert(()=>de).attr("class","divider"),bt){let Gt=J+ut+Vt;xe=vs(Gt,W.height+Xt,Gt,Et+Xt,me),de=st.polygon(xe.map((se)=>[se.x,se.y]),xt),E.insert(()=>de).attr("class","divider")}if(Lt){let Gt=J+ut+at+Vt;xe=vs(Gt,W.height+Xt,Gt,Et+Xt,me),de=st.polygon(xe.map((se)=>[se.x,se.y]),xt),E.insert(()=>de).attr("class","divider")}for(let Gt of V){let se=W.height+Xt+Gt;xe=vs(Vt,se,_t+Vt,se,me),de=st.polygon(xe.map((he)=>[he.x,he.y]),xt),E.insert(()=>de).attr("class","divider")}if(B(e,ne),_&&e.look!=="handDrawn")if(a!=null&&_S.has(a))E.selectAll("path").attr("style",_);else{let se=_.split(";")?.filter((he)=>he.includes("stroke"))?.map((he)=>`${he}`).join("; ");E.selectAll("path").attr("style",se??""),E.selectAll(".row-rect-even path").attr("style",_)}return e.intersect=function(Gt){return T.rect(e,Gt)},E}t(sd,"erBox");async function Bs(r,e,o,a=0,s=0,n=[],h=""){let l=r.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${a}, ${s})`).attr("style",h);if(e!==ur(e))e=ur(e),e=e.replaceAll("<","<").replaceAll(">",">");let u=l.node().appendChild(await lt(l,e,{width:Ft(e,o)+100,style:h,useHtmlLabels:o.htmlLabels},o));if(e.includes("<")||e.includes(">")){let c=u.children[0];c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");while(c.childNodes[0])c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let p=u.getBBox();if(hn(o.htmlLabels)){let c=u.children[0];c.style.textAlign="start";let m=y(u);p=c.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return p}t(Bs,"addText");function vs(r,e,o,a,s){if(r===o)return[{x:r-s/2,y:e},{x:r+s/2,y:e},{x:o+s/2,y:a},{x:o-s/2,y:a}];return[{x:r,y:e-s/2},{x:r,y:e+s/2},{x:o,y:a+s/2},{x:o,y:a-s/2}]}t(vs,"lineToPolygon");async function C0(r,e,o,a,s=o.class.padding??12){let n=!a?3:0,h=r.insert("g").attr("class",ie(e)).attr("id",e.domId||e.id),l=null,u=null,p=null,c=null,m=0,x=0,w=0;if(l=h.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let U=e.annotations[0];await Wa(l,{text:`«${U}»`},0),m=l.node().getBBox().height}u=h.insert("g").attr("class","label-group text"),await Wa(u,e,0,["font-weight: bolder"]);let _=u.node().getBBox();x=_.height,p=h.insert("g").attr("class","members-group text");let v=0;for(let U of e.members){let V=await Wa(p,U,v,[U.parseClassifier()]);v+=V+n}if(w=p.node().getBBox().height,w<=0)w=s/2;c=h.insert("g").attr("class","methods-group text");let E=0;for(let U of e.methods){let V=await Wa(c,U,E,[U.parseClassifier()]);E+=V+n}let W=h.node().getBBox();if(l!==null){let U=l.node().getBBox();l.attr("transform",`translate(${-U.width/2})`)}return u.attr("transform",`translate(${-_.width/2}, ${m})`),W=h.node().getBBox(),p.attr("transform",`translate(0, ${m+x+s*2})`),W=h.node().getBBox(),c.attr("transform",`translate(0, ${m+x+(w?w+s*4:s*2)})`),W=h.node().getBBox(),{shapeSvg:h,bbox:W}}t(C0,"textHelper");async function Wa(r,e,o,a=[]){let s=r.insert("g").attr("class","label").attr("style",a.join("; ")),n=A(),h="useHtmlLabels"in e?e.useHtmlLabels:hn(n.htmlLabels)??!0,l="";if("text"in e)l=e.text;else l=e.label;if(!h&&l.startsWith("\\"))l=l.substring(1);if(ze(l))h=!0;let u=await lt(s,xn(Wn(l)),{width:Ft(l,n)+50,classes:"markdown-node-label",useHtmlLabels:h},n),p,c=1;if(!h){if(a.includes("font-weight: bolder"))y(u).selectAll("tspan").attr("font-weight","");c=u.children.length;let m=u.children[0];if(u.textContent===""||u.textContent.includes(">")){if(m.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" ")m.textContent=m.textContent[0]+" "+m.textContent.substring(1)}if(m.textContent==="undefined")m.textContent="";p=u.getBBox()}else{let m=u.children[0],x=y(u);if(c=m.innerHTML.split("<br>").length,m.innerHTML.includes("</math>"))c+=m.innerHTML.split("<mrow>").length-1;await td(m),p=m.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height)}return s.attr("transform","translate(0,"+(-p.height/(2*c)+o)+")"),p.height}t(Wa,"addText");async function b0(r,e){let o=d(),{theme:a,themeVariables:s}=o,{useGradient:n,borderColorArray:h}=s,l=o.class.padding??12,u=l,p=e.useHtmlLabels??hn(o.htmlLabels)??!0,c=e;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];let{shapeSvg:m,bbox:x}=await C0(r,e,o,p,u);Ht(m,e.colorIndex,a,h);let{labelStyles:w,nodeStyles:_}=L(e);e.labelStyle=w,e.cssStyles=c.styles||"";let v=c.styles?.join(";")||_||"";if(!e.cssStyles)e.cssStyles=v.replaceAll("!important","").split(";");let E=c.members.length===0&&c.methods.length===0&&!o.class?.hideEmptyMembersBox,W=b.svg(m),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=Math.max(e.width??0,x.width),Z=Math.max(e.height??0,x.height),J=(e.height??0)>x.height;if(c.members.length===0&&c.methods.length===0)Z+=u;else if(c.members.length>0&&c.methods.length===0)Z+=u*2;let ut=-V/2,at=-Z/2,mt=E?l*2:c.members.length===0&&c.methods.length===0?-l:0;if(J)mt=l*2;let bt=W.rectangle(ut-l,at-l-(E?l:c.members.length===0&&c.methods.length===0?-l/2:0),V+2*l,Z+2*l+mt,U),Lt=m.insert(()=>bt,":first-child");Lt.attr("class","basic label-container outer-path");let wt=Lt.node().getBBox(),kt=m.select(".annotation-group").node().getBBox().height-(E?l/2:0)||0,ot=m.select(".label-group").node().getBBox().height-(E?l/2:0)||0,st=m.select(".members-group").node().getBBox().height-(E?l/2:0)||0,xt=(kt+ot+at+l-(at-l-(E?l:c.members.length===0&&c.methods.length===0?-l/2:0)))/2;if(m.selectAll(".text").each((it,_t,Et)=>{let Vt=y(Et[_t]),Xt=Vt.attr("transform"),le=0;if(Xt){let de=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xt);if(de)le=parseFloat(de[2])}let ne=le+at+l-(E?l:c.members.length===0&&c.methods.length===0?-l/2:0);if(Vt.attr("class").includes("methods-group")){let xe=Math.max(st,u/2);if(J)ne=Math.max(xt,kt+ot+xe+at+u*2+l)+u*2;else ne=kt+ot+xe+at+u*4+l}if(c.members.length===0&&c.methods.length===0&&o.class?.hideEmptyMembersBox)if(c.annotations.length>0)ne=le-u;else ne=le;if(!p)ne-=4;let me=ut;if(Vt.attr("class").includes("label-group")||Vt.attr("class").includes("annotation-group"))me=-Vt.node()?.getBBox().width/2||0,m.selectAll("text").each(function(xe,de,Gt){if(window.getComputedStyle(Gt[de]).textAnchor==="middle")me=0});Vt.attr("transform",`translate(${me}, ${ne})`)}),c.members.length>0||c.methods.length>0||E){let it=kt+ot+at+l,_t=W.line(wt.x,it,wt.x+wt.width,it+0.001,U);m.insert(()=>_t).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",v)}if(E||c.members.length>0||c.methods.length>0){let it=kt+ot+st+at+u*2+l,_t=W.line(wt.x,J?Math.max(xt,it):it,wt.x+wt.width,(J?Math.max(xt,it):it)+0.001,U);m.insert(()=>_t).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",v)}if(c.look!=="handDrawn")m.selectAll("path").attr("style",v);if(Lt.select(":nth-child(2)").attr("style",v),m.selectAll(".divider").select("path").attr("style",v),e.labelStyle)m.selectAll("span").attr("style",e.labelStyle);else m.selectAll("span").attr("style",v);if(!p){let it=RegExp(/color\s*:\s*([^;]*)/),_t=it.exec(v);if(_t){let Et=_t[0].replace("color","fill");m.selectAll("tspan").attr("style",Et)}else if(w){let Et=it.exec(w);if(Et){let Vt=Et[0].replace("color","fill");m.selectAll("tspan").attr("style",Vt)}}}return B(e,Lt),e.intersect=function(it){return T.rect(e,it)},m}t(b0,"classBox");async function k0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e,n=e,h=20,l=20,u="verifyMethod"in e,p=ie(e),c=d(),{themeVariables:m}=c,{borderColorArray:x,requirementEdgeLabelBackground:w}=m,_=c.layout==="elk"?"start":"center",v=r.insert("g").attr("class",p).attr("id",e.domId??e.id),E;if(u)E=await Kr(v,`<<${s.type}>>`,0,e.labelStyle);else E=await Kr(v,"<<Element>>",0,e.labelStyle);let W=E,U=await Kr(v,s.name,W,e.labelStyle+"; font-weight: bold;");if(W+=U+l,u){let wt=await Kr(v,`${s.requirementId?`ID: ${s.requirementId}`:""}`,W,e.labelStyle,_);W+=wt;let kt=await Kr(v,`${s.text?`Text: ${s.text}`:""}`,W,e.labelStyle,_);W+=kt;let ot=await Kr(v,`${s.risk?`Risk: ${s.risk}`:""}`,W,e.labelStyle,_);W+=ot,await Kr(v,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,W,e.labelStyle,_)}else{let wt=await Kr(v,`${n.type?`Type: ${n.type}`:""}`,W,e.labelStyle,_);W+=wt,await Kr(v,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,W,e.labelStyle,_)}let V=(v.node()?.getBBox().width??200)+h,Z=(v.node()?.getBBox().height??200)+h,J=-V/2,ut=-Z/2,at=b.svg(v),mt=Kt(e,{});if(e.look!=="handDrawn")mt.roughness=0,mt.fillStyle="solid";let bt=at.rectangle(J,ut,V,Z,mt),Lt=v.insert(()=>bt,":first-child");if(Lt.attr("class","basic label-container outer-path").attr("style",a),x?.length){let wt=e.colorIndex??0;v.attr("data-color-id",`color-${wt%x.length}`)}if(v.selectAll(".label").each((wt,kt,ot)=>{let st=y(ot[kt]),xt=st.attr("transform"),it=0,_t=0;if(xt){let le=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(xt);if(le)it=parseFloat(le[1]),_t=parseFloat(le[2])}let Et=_t-Z/2,Vt=J+h/2;if(kt===0||kt===1)Vt=it;st.attr("transform",`translate(${Vt}, ${Et+h})`)}),W>E+U+l){let wt=ut+E+U+l,kt;if(e.look==="neo"){let xt=[[J,wt],[J+V,wt],[J+V,wt+0.001],[J,wt+0.001]];kt=at.polygon(xt,mt)}else kt=at.line(J,wt,J+V,wt,mt);v.insert(()=>kt).attr("class","divider")}if(B(e,Lt),e.intersect=function(wt){return T.rect(e,wt)},a&&e.look!=="handDrawn"&&(w||x?.length))v.selectAll("path").attr("style",a);return v}t(k0,"requirementBox");async function Kr(r,e,o,a="",s="center"){if(e==="")return 0;let n=r.insert("g").attr("class","label").attr("style",a),h=d(),l=h.htmlLabels??!0,u=await lt(n,xn(Wn(e)),{width:Ft(e,h)+50,classes:"markdown-node-label",useHtmlLabels:l,style:a},h),p;if(!l){let c=u.children[0];for(let m of c.children)if(a)m.setAttribute("style",a);if(s==="start"){c.setAttribute("text-anchor","start");for(let m of c.children)m.setAttribute("text-anchor","start")}p=u.getBBox(),p.height+=6}else{let c=u.children[0],m=y(u);if(s==="start")y(c).style("text-align","left");p=c.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return n.attr("transform",`translate(${-p.width/2},${-p.height/2+o})`),p.height}t(Kr,"addText");var BS=t((r)=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function w0(r,e,{config:o}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a||"";let n=10,h=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:u,label:p}=await q(r,e,ie(e)),c=e.padding||10,m="",x;if("ticket"in e&&e.ticket&&o?.kanban?.ticketBaseUrl)m=o?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),x=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank");let w={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},_,v;if(x)({label:_,bbox:v}=await yo(x,"ticket"in e&&e.ticket||"",w));else({label:_,bbox:v}=await yo(l,"ticket"in e&&e.ticket||"",w));let{label:E,bbox:W}=await yo(l,"assigned"in e&&e.assigned||"",w);e.width=h;let U=10,V=e?.width||0,Z=Math.max(v.height,W.height)/2,J=Math.max(u.height+U*2,e?.height||0)+Z,ut=-V/2,at=-J/2;p.attr("transform","translate("+(c-V/2)+", "+(-Z-u.height/2)+")"),_.attr("transform","translate("+(c-V/2)+", "+(-Z+u.height/2)+")"),E.attr("transform","translate("+(c+V/2-W.width-2*n)+", "+(-Z+u.height/2)+")");let mt,{rx:bt,ry:Lt}=e,{cssStyles:wt}=e;if(e.look==="handDrawn"){let kt=b.svg(l),ot=Kt(e,{}),st=bt||Lt?kt.path(br(ut,at,V,J,bt||0),ot):kt.rectangle(ut,at,V,J,ot);mt=l.insert(()=>st,":first-child"),mt.attr("class","basic label-container").attr("style",wt?wt:null)}else{mt=l.insert("rect",":first-child"),mt.attr("class","basic label-container __APA__").attr("style",s).attr("rx",bt??5).attr("ry",Lt??5).attr("x",ut).attr("y",at).attr("width",V).attr("height",J);let kt="priority"in e&&e.priority;if(kt){let ot=l.append("line"),st=ut+2,xt=at+Math.floor((bt??0)/2),it=at+J-Math.floor((bt??0)/2);ot.attr("x1",st).attr("y1",xt).attr("x2",st).attr("y2",it).attr("stroke-width","4").attr("stroke",BS(kt))}}return B(e,mt),e.height=J,e.intersect=function(kt){return T.rect(e,kt)},l}t(w0,"kanbanItem");async function S0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:h,label:l}=await q(r,e,ie(e)),u=n.width+10*h,p=n.height+8*h,c=0.15*u,{cssStyles:m}=e,x=n.width+20,w=n.height+20,_=Math.max(u,x),v=Math.max(p,w);l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let E,W=`M0 0
|
|
242
|
+
a${c},${c} 1 0,0 ${_*0.25},${-1*v*0.1}
|
|
243
|
+
a${c},${c} 1 0,0 ${_*0.25},0
|
|
244
|
+
a${c},${c} 1 0,0 ${_*0.25},0
|
|
245
|
+
a${c},${c} 1 0,0 ${_*0.25},${v*0.1}
|
|
246
|
+
|
|
247
|
+
a${c},${c} 1 0,0 ${_*0.15},${v*0.33}
|
|
248
|
+
a${c*0.8},${c*0.8} 1 0,0 0,${v*0.34}
|
|
249
|
+
a${c},${c} 1 0,0 ${-1*_*0.15},${v*0.33}
|
|
250
|
+
|
|
251
|
+
a${c},${c} 1 0,0 ${-1*_*0.25},${v*0.15}
|
|
252
|
+
a${c},${c} 1 0,0 ${-1*_*0.25},0
|
|
253
|
+
a${c},${c} 1 0,0 ${-1*_*0.25},0
|
|
254
|
+
a${c},${c} 1 0,0 ${-1*_*0.25},${-1*v*0.15}
|
|
255
|
+
|
|
256
|
+
a${c},${c} 1 0,0 ${-1*_*0.1},${-1*v*0.33}
|
|
257
|
+
a${c*0.8},${c*0.8} 1 0,0 0,${-1*v*0.34}
|
|
258
|
+
a${c},${c} 1 0,0 ${_*0.1},${-1*v*0.33}
|
|
259
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let U=b.svg(s),V=Kt(e,{}),Z=U.path(W,V);E=s.insert(()=>Z,":first-child"),E.attr("class","basic label-container").attr("style",$e(m))}else E=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",W);return E.attr("transform",`translate(${-_/2}, ${-v/2})`),B(e,E),e.calcIntersect=function(U,V){return T.rect(U,V)},e.intersect=function(U){return i.info("Bang intersect",e,U),T.rect(e,U)},s}t(S0,"bang");async function T0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:h,label:l}=await q(r,e,ie(e)),u=n.width+2*h,p=n.height+2*h,c=0.15*u,m=0.25*u,x=0.35*u,w=0.2*u,{cssStyles:_}=e,v,E=`M0 0
|
|
260
|
+
a${c},${c} 0 0,1 ${u*0.25},${-1*u*0.1}
|
|
261
|
+
a${x},${x} 1 0,1 ${u*0.4},${-1*u*0.1}
|
|
262
|
+
a${m},${m} 1 0,1 ${u*0.35},${u*0.2}
|
|
263
|
+
|
|
264
|
+
a${c},${c} 1 0,1 ${u*0.15},${p*0.35}
|
|
265
|
+
a${w},${w} 1 0,1 ${-1*u*0.15},${p*0.65}
|
|
266
|
+
|
|
267
|
+
a${m},${c} 1 0,1 ${-1*u*0.25},${u*0.15}
|
|
268
|
+
a${x},${x} 1 0,1 ${-1*u*0.5},0
|
|
269
|
+
a${c},${c} 1 0,1 ${-1*u*0.25},${-1*u*0.15}
|
|
270
|
+
|
|
271
|
+
a${c},${c} 1 0,1 ${-1*u*0.1},${-1*p*0.35}
|
|
272
|
+
a${w},${w} 1 0,1 ${u*0.1},${-1*p*0.65}
|
|
273
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let W=b.svg(s),U=Kt(e,{}),V=W.path(E,U);v=s.insert(()=>V,":first-child"),v.attr("class","basic label-container").attr("style",$e(_))}else v=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",E);return l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),v.attr("transform",`translate(${-u/2}, ${-p/2})`),B(e,v),e.calcIntersect=function(W,U){return T.rect(W,U)},e.intersect=function(W){return i.info("Cloud intersect",e,W),T.rect(e,W)},s}t(T0,"cloud");async function _0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:h,label:l}=await q(r,e,ie(e)),u=n.width+8*h,p=n.height+2*h,c=5,m=e.look==="neo"?`
|
|
274
|
+
M${-u/2} ${p/2-c}
|
|
275
|
+
v${-p+2*c}
|
|
276
|
+
q0,-${c} ${c},-${c}
|
|
277
|
+
h${u-2*c}
|
|
278
|
+
q${c},0 ${c},${c}
|
|
279
|
+
v${p-c}
|
|
280
|
+
H${-u/2}
|
|
281
|
+
Z
|
|
282
|
+
`:`
|
|
283
|
+
M${-u/2} ${p/2-c}
|
|
284
|
+
v${-p+2*c}
|
|
285
|
+
q0,-${c} ${c},-${c}
|
|
286
|
+
h${u-2*c}
|
|
287
|
+
q${c},0 ${c},${c}
|
|
288
|
+
v${p-2*c}
|
|
289
|
+
q0,${c} ${-c},${c}
|
|
290
|
+
h${-(u-2*c)}
|
|
291
|
+
q${-c},0 ${-c},${-c}
|
|
292
|
+
Z
|
|
293
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let x=s.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",a).attr("d",m);return s.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",p/2).attr("x2",u/2).attr("y2",p/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),s.append(()=>l.node()),B(e,x),e.calcIntersect=function(w,_){return T.rect(w,_)},e.intersect=function(w){return T.rect(e,w)},s}t(_0,"defaultMindmapNode");async function B0(r,e){let o={padding:e.padding??0};return id(r,e,o)}t(B0,"mindmapCircle");var vS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:i0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:t0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:o0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:l0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:xx},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Cx},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:_x},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:rx},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:cx},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:ax},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:yx},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:S0},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:T0},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Zx},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Lx},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Rx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Px},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:d0},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:$x},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:kx},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:u0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:nx},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:e0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:n0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:a0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bx},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Fx},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:dx},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:px},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:gx},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qx},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:m0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:vx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:f0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Nx},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:mx},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:bx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:g0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:x0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Sx},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:p0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:r0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Vx},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Xx},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:ex},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:fx},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:c0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:h0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:y0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Qx},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Wx}],LS=t(()=>{let e=[...Object.entries({state:s0,choice:lx,note:Kx,composite:hx,rectWithTitle:Jx,labelRect:Dx,block_arrow:sx,collapsedGroup:ox,iconSquare:Ox,iconCircle:Mx,icon:Ax,iconRounded:Ex,imageSquare:Ix,anchor:Jy,kanbanItem:w0,mindmapCircle:B0,defaultMindmapNode:_0,classBox:b0,erBox:sd,requirementBox:k0,usecaseActor:zx,usecaseActorHollow:Yx,usecaseActorAwesome:Hx,usecaseActorIcon:Ux,usecaseBusiness:jx,usecaseEllipse:wx,usecaseJsonTable:Gx}),...vS.flatMap((o)=>[o.shortName,..."aliases"in o?o.aliases:[],..."internalAliases"in o?o.internalAliases:[]].map((s)=>[s,o.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Ki=LS();function hi(r){return r in Ki}t(hi,"isValidShape");var Ln=t(({flowchart:r})=>{let e=r?.subGraphTitleMargin?.top??0,o=r?.subGraphTitleMargin?.bottom??0,a=e+o;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:o,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),Ll=new Map;async function Nn(r,e,o){let a,s;if(e.shape==="rect")if(e.rx&&e.ry)e.shape="roundedRect";else e.shape="squareRect";let n=e.shape?Ki[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let h;if(o.config.securityLevel==="sandbox")h="_top";else if(e.linkTarget)h=e.linkTarget||"_blank";a=r.insert("svg:a").attr("xlink:href",e.link).attr("target",h??null),s=await n(a,e,o)}else s=await n(r,e,o),a=s;if(a.attr("data-look",$e(e.look)),e.tooltip)s.attr("title",e.tooltip);if(Ll.set(e.id,a),e.haveCallback)a.attr("class",a.attr("class")+" clickable");return a}t(Nn,"insertNode");var Uc=t((r,e)=>{Ll.set(e.id,r)},"setNodeElem"),jc=t(()=>{Ll.clear()},"clear"),yn=t((r)=>{let e=Ll.get(r.id);i.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let o=8,a=r.diff||0;if(r.clusterNode)e.attr("transform","translate("+(r.x+a-r.width/2)+", "+(r.y-r.height/2-o)+")");else e.attr("transform","translate("+r.x+", "+r.y+")");return a},"positionNode");var FS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:h,clusterBorder:l,borderColorArray:u}=s,p=l,{labelStyles:c,nodeStyles:m,borderStyles:x,backgroundStyles:w}=L(e),_=r.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);Ht(_,e.colorIndex,a,u);let v=hn(o.flowchart.htmlLabels),E=e.direction==="LR",W=_.insert("g").attr("class","cluster-label swimlane-label"),U=await lt(W,e.label,{style:e.labelStyle,useHtmlLabels:v,isNode:!0,width:e.width}),V=U.getBBox();if(v){let xt=U.children[0],it=y(U);V=xt.getBoundingClientRect(),it.attr("width",V.width),it.attr("height",V.height)}let Z=e.padding??0,J=e.width<=V.width+Z?V.width+Z:e.width;if(e.width<=V.width+Z)e.diff=(J-e.width)/2-Z;else e.diff=-Z;let ut=e.height,at=e.y-ut/2,mt=e.y+ut/2,bt=e.x-J/2,Lt=e.swimlaneContentTop!==void 0?e.swimlaneContentTop:at+ut/3,wt=E?4:0,kt=V.height+2*wt,ot,st;if(E){let xt=Math.max(kt,V.height+2*wt),it=bt+xt,_t=Math.max(0,J-xt);if(e.look==="handDrawn"){let Xt=b.svg(_),le=Kt(e,{roughness:0.7,fill:h,stroke:p,seed:n}),ne=Kt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),me=Xt.rectangle(bt,at,xt,ut,le);ot=_.insert(()=>me,":first-child").attr("class","swimlane-title");let xe=Xt.rectangle(it,at,_t,ut,ne);st=_.insert(()=>xe,":first-child").attr("class","swimlane-body"),ot.select("path:nth-child(2)").attr("style",x.join(";")),ot.select("path").attr("style",w.join(";").replace("fill","stroke"))}else ot=_.insert("rect",":first-child"),st=_.insert("rect",":first-child"),ot.attr("class","swimlane-title").attr("style",m).attr("x",bt).attr("y",at).attr("width",xt).attr("height",ut).attr("fill",h).attr("stroke",p),st.attr("class","swimlane-body").attr("style",m).attr("x",it).attr("y",at).attr("width",_t).attr("height",ut).attr("fill","none").attr("stroke",p);let Et=bt+xt/2,Vt=e.y;W.attr("transform",`translate(${Et}, ${Vt}) rotate(-90) translate(${-V.width/2}, ${-V.height/2})`)}else{let xt=Math.max(0,Lt-at),it=Math.min(kt,xt),_t=at+it,Et=Math.max(0,mt-_t),Vt=e.x-J/2;if(e.look==="handDrawn"){let ne=b.svg(_),me=Kt(e,{roughness:0.7,fill:h,stroke:p,fillWeight:3,seed:n}),xe=Kt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),de=ne.rectangle(Vt,at,J,it,me);ot=_.insert(()=>de,":first-child").attr("class","swimlane-title");let Gt=ne.rectangle(Vt,_t,J,Et,xe);st=_.insert(()=>Gt,":first-child").attr("class","swimlane-body"),ot.select("path:nth-child(2)").attr("style",x.join(";")),ot.select("path").attr("style",w.join(";").replace("fill","stroke"))}else ot=_.insert("rect",":first-child"),st=_.insert("rect",":first-child"),ot.attr("class","swimlane-title").attr("style",m).attr("x",Vt).attr("y",at).attr("width",J).attr("height",it).attr("fill",h).attr("stroke",p),st.attr("class","swimlane-body").attr("style",m).attr("x",Vt).attr("y",_t).attr("width",J).attr("height",Et).attr("fill","none").attr("stroke",p);let Xt=e.x-V.width/2,le=at+(it-V.height)/2;W.attr("transform",`translate(${Xt}, ${le})`)}if(i.trace("Swimlane data ",e,JSON.stringify(e)),c){let xt=W.select("span");if(xt)xt.attr("style",c)}return e.offsetX=0,e.width=J,e.height=ut,e.offsetY=V.height-Z/2,e.intersect=function(xt){return gi(e,xt)},{cluster:_,labelBBox:V}},"swimlane"),v0=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:h,clusterBorder:l,borderColorArray:u}=s,{labelStyles:p,nodeStyles:c,borderStyles:m,backgroundStyles:x}=L(e),w=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);Ht(w,e.colorIndex,a,u);let _=tt(o),v=w.insert("g").attr("class","cluster-label "),E;if(e.labelType==="markdown")E=await lt(v,e.label,{style:e.labelStyle,useHtmlLabels:_,isNode:!0,width:e.width});else E=await qr(v,e.label,e.labelStyle||"",!1,!0);let W=E.getBBox();if(tt(o)){let bt=E.children[0],Lt=y(E);W=bt.getBoundingClientRect(),Lt.attr("width",W.width),Lt.attr("height",W.height)}let U=e.width<=W.width+e.padding?W.width+e.padding:e.width;if(e.width<=W.width+e.padding)e.diff=(U-e.width)/2-e.padding;else e.diff=-e.padding;let V=e.height,Z=e.x-U/2,J=e.y-V/2;i.trace("Data ",e,JSON.stringify(e));let ut;if(e.look==="handDrawn"){let bt=b.svg(w),Lt=Kt(e,{roughness:0.7,fill:h,stroke:l,fillWeight:3,seed:n}),wt=bt.path(br(Z,J,U,V,0),Lt);ut=w.insert(()=>(i.debug("Rough node insert CXC",wt),wt),":first-child"),ut.select("path:nth-child(2)").attr("style",m.join(";")),ut.select("path").attr("style",x.join(";").replace("fill","stroke"))}else ut=w.insert("rect",":first-child"),ut.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",Z).attr("y",J).attr("width",U).attr("height",V);let{subGraphTitleTopMargin:at}=Ln(o);if(v.attr("transform",`translate(${e.x-W.width/2}, ${e.y-e.height/2+at})`),p){let bt=v.select("span");if(bt)bt.attr("style",p)}let mt=ut.node().getBBox();return e.offsetX=0,e.width=mt.width,e.height=mt.height,e.offsetY=W.height-e.padding/2,e.intersect=function(bt){return gi(e,bt)},{cluster:w,labelBBox:W}},"rect"),AS=t((r,e)=>{let o=r.insert("g").attr("class","note-cluster").attr("id",e.domId),a=o.insert("rect",":first-child"),s=0*e.padding,n=s/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+s).attr("height",e.height+s).attr("fill","none");let h=a.node().getBBox();return e.width=h.width,e.height=h.height,e.intersect=function(l){return gi(e,l)},{cluster:o,labelBBox:{width:0,height:0}}},"noteGroup"),MS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:h,borderColorArray:l,compositeBackground:u,compositeTitleBackground:p,nodeBorder:c}=s,m=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);Ht(m,e.colorIndex,a,l);let x=m.insert("g",":first-child"),w=m.insert("g").attr("class","cluster-label"),_=m.append("rect"),v=await qr(w,e.label,e.labelStyle,void 0,!0),E=v.getBBox();if(tt(o)){let wt=v.children[0],kt=y(v);E=wt.getBoundingClientRect(),kt.attr("width",E.width),kt.attr("height",E.height)}let W=0*e.padding,U=W/2,V=(e.width<=E.width+e.padding?E.width+e.padding:e.width)+W;if(e.width<=E.width+e.padding)e.diff=(V-e.width)/2-e.padding;else e.diff=-e.padding;let Z=e.height+W,J=e.height+W-E.height-6,ut=e.x-V/2,at=e.y-Z/2;e.width=V;let mt=e.y-e.height/2-U+E.height+2,bt;if(e.look==="handDrawn"){let wt=e.cssClasses.includes("statediagram-cluster-alt"),kt=b.svg(m),ot=e.rx||e.ry?kt.path(br(ut,at,V,Z,10),{roughness:0.7,fill:p,fillStyle:"solid",stroke:c,seed:n}):kt.rectangle(ut,at,V,Z,{seed:n});bt=m.insert(()=>ot,":first-child");let st=kt.rectangle(ut,mt,V,J,{fill:wt?h:u,fillStyle:wt?"hachure":"solid",stroke:c,seed:n});bt=m.insert(()=>ot,":first-child"),_=m.insert(()=>st),bt.attr("class","outer"),_.attr("class","inner")}else{bt=x.insert("rect",":first-child");let wt="outer";bt.attr("class",wt).attr("x",ut).attr("y",at).attr("width",V).attr("height",Z).attr("data-look",e.look),_.attr("class","inner").attr("x",ut).attr("y",mt).attr("width",V).attr("height",J)}w.attr("transform",`translate(${e.x-E.width/2}, ${at+1-(tt(o)?0:3)})`);let Lt=bt.node().getBBox();return e.height=Lt.height,e.offsetX=0,e.offsetY=E.height-e.padding/2,e.labelBBox=E,e.intersect=function(wt){return gi(e,wt)},{cluster:m,labelBBox:E}},"roundedWithTitle"),ES=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{themeVariables:a,handDrawnSeed:s}=o,{clusterBkg:n,clusterBorder:h}=a,{labelStyles:l,nodeStyles:u,borderStyles:p,backgroundStyles:c}=L(e),m=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),x=tt(o),w=m.insert("g").attr("class","cluster-label "),_=await lt(w,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width}),v=_.getBBox();if(tt(o)){let at=_.children[0],mt=y(_);v=at.getBoundingClientRect(),mt.attr("width",v.width),mt.attr("height",v.height)}let E=e.width<=v.width+e.padding?v.width+e.padding:e.width;if(e.width<=v.width+e.padding)e.diff=(E-e.width)/2-e.padding;else e.diff=-e.padding;let W=e.height,U=e.x-E/2,V=e.y-W/2;i.trace("Data ",e,JSON.stringify(e));let Z;if(e.look==="handDrawn"){let at=b.svg(m),mt=Kt(e,{roughness:0.7,fill:n,stroke:h,fillWeight:4,seed:s}),bt=at.path(br(U,V,E,W,e.rx),mt);Z=m.insert(()=>(i.debug("Rough node insert CXC",bt),bt),":first-child"),Z.select("path:nth-child(2)").attr("style",p.join(";")),Z.select("path").attr("style",c.join(";").replace("fill","stroke"))}else Z=m.insert("rect",":first-child"),Z.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",U).attr("y",V).attr("width",E).attr("height",W);let{subGraphTitleTopMargin:J}=Ln(o);if(w.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+J})`),l){let at=w.select("span");if(at)at.attr("style",l)}let ut=Z.node().getBBox();return e.offsetX=0,e.width=ut.width,e.height=ut.height,e.offsetY=v.height-e.padding/2,e.intersect=function(at){return gi(e,at)},{cluster:m,labelBBox:v}},"kanbanSection"),OS=t((r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:h,nodeBorder:l,borderColorArray:u}=s,p=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);Ht(p,e.colorIndex,a,u);let c=p.insert("g",":first-child"),m=0*e.padding,x=e.width+m;e.diff=-e.padding;let w=e.height+m,_=e.x-x/2,v=e.y-w/2;e.width=x;let E;if(e.look==="handDrawn"){let V=b.svg(p).rectangle(_,v,x,w,{fill:h??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:n});E=p.insert(()=>V,":first-child").attr("class","divider")}else{E=c.insert("rect",":first-child");let U="outer";if(e.look==="neo")U="divider";else U="divider";E.attr("class",U).attr("x",_).attr("y",v).attr("width",x).attr("height",w).attr("data-look",e.look)}let W=E.node().getBBox();return e.height=W.height,e.offsetX=0,e.offsetY=0,e.intersect=function(U){return gi(e,U)},{cluster:p,labelBBox:{}}},"divider"),IS=t(async(r,e,o)=>{i.info(`Creating ${o.cssClass} for `,e.id,e);let a=d(),{theme:s,themeVariables:n,handDrawnSeed:h}=a,{borderColorArray:l}=n,{labelStyles:u,borderStyles:p}=L(e),c=r.insert("g").attr("class","cluster "+o.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);Ht(c,e.colorIndex,s,l);let m=tt(a),x=c.insert("g").attr("class","cluster-label"),w={width:0,height:0},_=e.label?.trim();if(_){let J;if(e.labelType==="markdown")J=await lt(x,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width});else J=await qr(x,e.label,e.labelStyle||"",!1,!0);if(w=J.getBBox(),m){let ut=J.children[0],at=y(J);w=ut.getBoundingClientRect(),at.attr("width",w.width),at.attr("height",w.height)}}let v=e.width<=w.width+e.padding?w.width+e.padding:e.width;if(e.width<=w.width+e.padding)e.diff=(v-e.width)/2-e.padding;else e.diff=-e.padding;let E=e.height,W=e.x-v/2,U=e.y-E/2,V;if(e.look==="handDrawn"){let J=b.svg(c),ut=Kt(e,{roughness:o.roughness,fill:o.fill,stroke:o.stroke,strokeWidth:o.strokeWidth,seed:h,...o.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...o.strokeDash?{strokeLineDash:o.strokeDash}:{}}),at=J.path(br(W,U,v,E,o.rx),ut);V=c.insert(()=>at,":first-child"),V.select("path:nth-child(2)").attr("style",p.join(";"))}else if(V=c.insert("rect",":first-child"),V.attr("rx",o.rx).attr("ry",o.rx).attr("x",W).attr("y",U).attr("width",v).attr("height",E).attr("fill",o.fill).attr("stroke",o.stroke).attr("stroke-width",o.strokeWidth+"px"),o.strokeDash)V.attr("stroke-dasharray",o.strokeDash.join(", "));if(_){let{subGraphTitleTopMargin:J}=Ln(a);if(x.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+J})`),u){let ut=x.select("span");if(ut)ut.attr("style",u)}}let Z=V.node().getBBox();return e.offsetX=0,e.width=Z.width,e.height=Z.height,e.offsetY=w.height-e.padding/2,e.intersect=function(J){return gi(e,J)},{cluster:c,labelBBox:w}},"createContainerGroup"),$S=t(async(r,e)=>{let{themeVariables:o}=d(),a=o.flowContainerStroke||o.secondaryBorderColor;return IS(r,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:a,strokeWidth:0.75,roughness:0.7})},"flowGroup"),DS=t((r,e)=>{let o=r.boundaryType||"rect",a=o==="package"?20:r.padding,s=o==="package"?e.height+10:0,n=Math.max(r.width,e.width+a),h=o==="package"?Math.max(r.height,s+r.padding*2):r.height,l=r.x-n/2,u=r.y-h/2;return{boundaryType:o,width:n,height:h,x:l,y:u,bodyY:u+s,bodyHeight:h-s,tabHeight:s,tabWidth:o==="package"?Math.min(n,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),PS=t(async(r,e)=>{i.info("Creating usecase system boundary for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:h,clusterBorder:l,borderColorArray:u}=s,{labelStyles:p,nodeStyles:c}=L(e),{stylesMap:m}=Xr(e),x=e.boundaryType||"rect",w=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${x} ${e.cssClasses}`).attr("id",typeof e.domId==="string"?e.domId:e.id).attr("data-boundary-type",x).attr("data-look",e.look);Ht(w,e.colorIndex,a,u);let _=tt(o),v=w.insert("g").attr("class","cluster-label system-boundary-title"),E=await lt(v,e.label,{style:p,useHtmlLabels:_,isNode:!0}),W=E.getBBox();if(_){let ot=E.children[0],st=y(E);W=ot.getBoundingClientRect(),st.attr("width",W.width),st.attr("height",W.height)}let U=DS(e,W),{width:V,height:Z,x:J,y:ut,bodyY:at,bodyHeight:mt,tabHeight:bt,tabWidth:Lt}=U;e.diff=e.width<=W.width+e.padding?(V-e.width)/2-e.padding:-e.padding;let wt=Kt(e,{fill:m.get("fill")||h,stroke:m.get("stroke")||l,strokeWidth:m.get("stroke-width")?.replace("px","")||1,seed:n});if(e.look==="handDrawn"){let ot=b.svg(w),st=ot.rectangle(J,at,V,mt,wt);if(w.insert(()=>st,":first-child").attr("class","boundary-body label-container"),x==="package"){let xt=ot.rectangle(J,ut,Lt,bt,wt);w.insert(()=>xt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(w.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",c).attr("x",J).attr("y",at).attr("width",V).attr("height",mt),x==="package")w.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",c).attr("x",J).attr("y",ut).attr("width",Lt).attr("height",bt);let{subGraphTitleTopMargin:kt}=Ln(o);if(x==="package")v.attr("transform",`translate(${J+(Lt-W.width)/2}, ${ut+(bt-W.height)/2})`);else v.attr("transform",`translate(${e.x-W.width/2}, ${ut+kt})`);if(p)v.attr("style",p),v.select("span").attr("style",p);return e.offsetX=0,e.width=V,e.height=Z,e.offsetY=W.height-e.padding/2,e.labelBBox=W,e.intersect=function(ot){return gi(e,ot)},{cluster:w,labelBBox:W}},"usecaseSystemBoundary"),RS=v0,qS={rect:v0,squareRect:RS,roundedWithTitle:MS,noteGroup:AS,divider:OS,kanbanSection:ES,flowGroup:$S,usecaseSystemBoundary:PS,swimlane:FS};var L0=new Map,dr=t(async(r,e)=>{let o=e.shape||"rect",a=await qS[o](r,e);return L0.set(e.id,a),a},"insertCluster"),qc=t(()=>{L0=new Map},"clear");var Ha=t((r,e)=>{if(e)return"translate("+-r.width/2+", "+-r.height/2+")";let o=r.x??0,a=r.y??0;return"translate("+-(o+r.width/2)+", "+-(a+r.height/2)+")"},"computeLabelTransform"),ht={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},F0={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Ua(r,e){if(r===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};r=Ie(r),e=Ie(e);let[o,a]=[r.x,r.y],[s,n]=[e.x,e.y],h=s-o,l=n-a;return{angle:Math.atan(l/h),deltaX:h,deltaY:l}}t(Ua,"calculateDeltaAndAngle");var Ie=t((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),NS=t((r)=>({x:t(function(e,o,a){let s=0,n=Ie(a[0]).x<Ie(a[a.length-1]).x?"left":"right";if(o===0&&Object.hasOwn(ht,r.arrowTypeStart)){let{angle:w,deltaX:_}=Ua(a[0],a[1]);s=ht[r.arrowTypeStart]*Math.cos(w)*(_>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(ht,r.arrowTypeEnd)){let{angle:w,deltaX:_}=Ua(a[a.length-1],a[a.length-2]);s=ht[r.arrowTypeEnd]*Math.cos(w)*(_>=0?1:-1)}let h=Math.abs(Ie(e).x-Ie(a[a.length-1]).x),l=Math.abs(Ie(e).y-Ie(a[a.length-1]).y),u=Math.abs(Ie(e).x-Ie(a[0]).x),p=Math.abs(Ie(e).y-Ie(a[0]).y),c=ht[r.arrowTypeStart],m=ht[r.arrowTypeEnd],x=1;if(h<m&&h>0&&l<m){let w=m+x-h;w*=n==="right"?-1:1,s-=w}if(u<c&&u>0&&p<c){let w=c+x-u;w*=n==="right"?-1:1,s+=w}return Ie(e).x+s},"x"),y:t(function(e,o,a){let s=0,n=Ie(a[0]).y<Ie(a[a.length-1]).y?"down":"up";if(o===0&&Object.hasOwn(ht,r.arrowTypeStart)){let{angle:w,deltaY:_}=Ua(a[0],a[1]);s=ht[r.arrowTypeStart]*Math.abs(Math.sin(w))*(_>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(ht,r.arrowTypeEnd)){let{angle:w,deltaY:_}=Ua(a[a.length-1],a[a.length-2]);s=ht[r.arrowTypeEnd]*Math.abs(Math.sin(w))*(_>=0?1:-1)}let h=Math.abs(Ie(e).y-Ie(a[a.length-1]).y),l=Math.abs(Ie(e).x-Ie(a[a.length-1]).x),u=Math.abs(Ie(e).y-Ie(a[0]).y),p=Math.abs(Ie(e).x-Ie(a[0]).x),c=ht[r.arrowTypeStart],m=ht[r.arrowTypeEnd],x=1;if(h<m&&h>0&&l<m){let w=m+x-h;w*=n==="up"?-1:1,s-=w}if(u<c&&u>0&&p<c){let w=c+x-u;w*=n==="up"?-1:1,s+=w}return Ie(e).y+s},"y")}),"getLineFunctionsWithOffset"),WS=t((r,e,o,a,s,n=!1,h)=>{if(e.arrowTypeStart)A0(r,"start",e.arrowTypeStart,o,a,s,n,h);if(e.arrowTypeEnd)A0(r,"end",e.arrowTypeEnd,o,a,s,n,h)},"addEdgeMarkers"),zS={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},HS=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],A0=t((r,e,o,a,s,n,h=!1,l)=>{if(!o||o==="none")return;let u=zS[o],p=u&&HS.includes(u.type);if(!u){i.warn(`Unknown arrow type: ${o}`);return}let c=u.type,w=`${s}_${n}-${c}${e==="start"?"Start":"End"}${h&&p?"-margin":""}`;if(l&&l.trim()!==""){let _=l.replace(/[^\dA-Za-z]/g,"_"),v=`${w}_${_}`;if(!document.getElementById(v)){let E=document.getElementById(w);if(E){let W=E.cloneNode(!0);W.id=v,W.querySelectorAll("path, circle, line").forEach((V)=>{if(V.setAttribute("stroke",l),u.fill)V.setAttribute("fill",l)}),E.parentNode?.appendChild(W)}}r.attr(`marker-${e}`,`url(${a}#${v})`)}else r.attr(`marker-${e}`,`url(${a}#${w})`)},"addEdgeMarker"),YS=t((r)=>typeof r==="string"?r:d()?.flowchart?.curve,"resolveEdgeCurveType"),ka=new Map,gt=new Map,Vc=t(()=>{ka.clear(),gt.clear()},"clear"),fc=t((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),Ya=t((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((e,o)=>e+";"+o,"")},"getLabelStyles"),Mn=t(async(r,e)=>{let o=d(),a=tt(o),{labelStyles:s}=L(e);e.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),h=n.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",u=void 0,p=await lt(r,e.label,{style:Ya(e.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:l,width:l?u:void 0},o);h.node().appendChild(p),i.info("abc82",e,e.labelType);let c,m;if(a){let w=p.children[0],_=y(p);c=await Ai.measure(()=>w.getBoundingClientRect()),m=c,_.attr("width",c.width),_.attr("height",c.height)}else{let w=y(p).select("text").node();await Ai.measure(()=>{if(c=p.getBBox(),w&&typeof w.getBBox==="function")m=w.getBBox();else m=c})}h.attr("transform",Ha(m,a)),ka.set(e.id,n),e.width=c.width,e.height=c.height;let x;if(e.startLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),_=w.insert("g").attr("class","inner"),v=await qr(_,e.startLabelLeft,Ya(e.labelStyle)||"",!1,!1);x=v;let E=v.getBBox();if(a){let W=v.children[0],U=y(v);E=W.getBoundingClientRect(),U.attr("width",E.width),U.attr("height",E.height)}if(_.attr("transform",Ha(E,a)),!gt.get(e.id))gt.set(e.id,{});gt.get(e.id).startLeft=w,Ga(x,e.startLabelLeft,E),ja(e,"startLeft",E)}if(e.startLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),_=w.insert("g").attr("class","inner"),v=await qr(_,e.startLabelRight,Ya(e.labelStyle)||"",!1,!1);x=v;let E=v.getBBox();if(a){let W=v.children[0],U=y(v);E=W.getBoundingClientRect(),U.attr("width",E.width),U.attr("height",E.height)}if(_.attr("transform",Ha(E,a)),!gt.get(e.id))gt.set(e.id,{});gt.get(e.id).startRight=w,Ga(x,e.startLabelRight,E),ja(e,"startRight",E)}if(e.endLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),_=w.insert("g").attr("class","inner"),v=await qr(_,e.endLabelLeft,Ya(e.labelStyle)||"",!1,!1);x=v;let E=v.getBBox();if(a){let W=v.children[0],U=y(v);E=W.getBoundingClientRect(),U.attr("width",E.width),U.attr("height",E.height)}if(_.attr("transform",Ha(E,a)),!gt.get(e.id))gt.set(e.id,{});gt.get(e.id).endLeft=w,Ga(x,e.endLabelLeft,E),ja(e,"endLeft",E)}if(e.endLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),_=w.insert("g").attr("class","inner"),v=await qr(_,e.endLabelRight,Ya(e.labelStyle)||"",!1,!1);x=v;let E=v.getBBox();if(a){let W=v.children[0],U=y(v);E=W.getBoundingClientRect(),U.attr("width",E.width),U.attr("height",E.height)}if(_.attr("transform",Ha(E,a)),!gt.get(e.id))gt.set(e.id,{});gt.get(e.id).endRight=w,Ga(x,e.endLabelRight,E),ja(e,"endRight",E)}return p},"insertEdgeLabel");function ja(r,e,o){r.terminalLabelSizes??={},r.terminalLabelSizes[e]={width:o.width,height:o.height}}t(ja,"recordTerminalLabelSize");function Ga(r,e,o){if(tt(d())&&r)r.style.width=Math.max(e.length*9,o.width)+"px",r.style.height=o.height+"px"}t(Ga,"setTerminalWidth");var hc=t((r,e)=>{let{x:o,y:a}=r;if(e?.updatedPath){let s=H.calcLabelPosition(e.updatedPath);if(e.originalPath){let n=H.calcLabelPosition(e.originalPath);o=r.x+(s.x-n.x),a=r.y+(s.y-n.y)}else o=s.x,a=s.y}return{x:o,y:a}},"resolveEdgeLabelPosition"),Ca=t((r,e)=>{i.debug("Moving label abc88 ",r.id,r.label,ka.get(r.id),e);let o=d(),{subGraphTitleTotalMargin:a}=Ln(o);if(r.label){let n=ka.get(r.id),{x:h,y:l}=hc(r,e);i.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",h,",",l,") abc88"),n.attr("transform",`translate(${h}, ${l+a/2})`)}let s=e.updatedPath?e.updatedPath:e.originalPath;if(r.startLabelLeft){let n=gt.get(r.id).startLeft,{x:h,y:l}=r;if(s){let u=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);h=u.x,l=u.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.startLabelRight){let n=gt.get(r.id).startRight,{x:h,y:l}=r;if(s){let u=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);h=u.x,l=u.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.endLabelLeft){let n=gt.get(r.id).endLeft,{x:h,y:l}=r;if(s){let u=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);h=u.x,l=u.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.endLabelRight){let n=gt.get(r.id).endRight,{x:h,y:l}=r;if(s){let u=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);h=u.x,l=u.y}n.attr("transform",`translate(${h}, ${l})`)}},"positionEdgeLabel"),US=t((r,e)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(e))return e;if(e.length!==2)return e;let[o,a]=e,s=Math.abs(a.x-o.x),n=Math.abs(a.y-o.y);if(s<0.001||n<0.001)return e;if(n>=s)return[o,{x:o.x,y:a.y},a];return[o,{x:a.x,y:o.y},a]},"orthogonalizeToLabelClippedPoints"),jS=t((r,e)=>{let{x:o,y:a}=r,s=Math.abs(e.x-o),n=Math.abs(e.y-a),h=r.width/2,l=r.height/2;return s>=h||n>=l},"outsideNode"),GS=t((r,e,o)=>{i.debug(`intersection calc abc89:
|
|
294
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
295
|
+
insidePoint : ${JSON.stringify(o)}
|
|
296
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:a,y:s}=r,n=Math.abs(a-o.x),h=r.width/2,l=o.x<e.x?h-n:h+n,u=r.height/2,p=Math.abs(e.y-o.y),c=Math.abs(e.x-o.x);if(Math.abs(s-e.y)*h>Math.abs(a-e.x)*u){let m=o.y<e.y?e.y-u-s:s-u-e.y;l=c*m/p;let x={x:o.x<e.x?o.x+l:o.x-c+l,y:o.y<e.y?o.y+p-m:o.y-p+m};if(l===0)x.x=e.x,x.y=e.y;if(c===0)x.x=e.x;if(p===0)x.y=e.y;return i.debug(`abc89 top/bottom calc, Q ${p}, q ${m}, R ${c}, r ${l}`,x),x}else{if(o.x<e.x)l=e.x-h-a;else l=a-h-e.x;let m=p*l/c,x=o.x<e.x?o.x+c-l:o.x-c+l,w=o.y<e.y?o.y+m:o.y-m;if(i.debug(`sides calc abc89, Q ${p}, q ${m}, R ${c}, r ${l}`,{_x:x,_y:w}),l===0)x=e.x,w=e.y;if(c===0)x=e.x;if(p===0)w=e.y;return{x,y:w}}},"intersection"),M0=t((r,e)=>{i.warn("abc88 cutPathAtIntersect",r,e);let o=[],a=r[0],s=!1;return r.forEach((n)=>{if(i.info("abc88 checking point",n,e),!jS(e,n)&&!s){let h=GS(e,a,n);i.debug("abc88 inside",n,a,h),i.debug("abc88 intersection",h,e);let l=!1;if(o.forEach((u)=>{l=l||u.x===h.x&&u.y===h.y}),!o.some((u)=>u.x===h.x&&u.y===h.y))o.push(h);else i.warn("abc88 no intersect",h,o);s=!0}else if(i.warn("abc88 outside",n,a),a=n,!s)o.push(n)}),i.debug("returning points",o),o},"cutPathAtIntersect");function O0(r){let e=[],o=[];for(let a=1;a<r.length-1;a++){let s=r[a-1],n=r[a],h=r[a+1];if(s.x===n.x&&n.y===h.y&&Math.abs(n.x-h.x)>5&&Math.abs(n.y-s.y)>5)e.push(n),o.push(a);else if(s.y===n.y&&n.x===h.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-h.y)>5)e.push(n),o.push(a)}return{cornerPoints:e,cornerPointPositions:o}}t(O0,"extractCornerPoints");var E0=t(function(r,e,o){let a=e.x-r.x,s=e.y-r.y,n=Math.sqrt(a*a+s*s),h=o/n;return{x:e.x-h*a,y:e.y-h*s}},"findAdjacentPoint"),XS=t(function(r){let{cornerPointPositions:e}=O0(r),o=[];for(let a=0;a<r.length;a++)if(e.includes(a)){let s=r[a-1],n=r[a+1],h=r[a],l=E0(s,h,5),u=E0(n,h,5),p=u.x-l.x,c=u.y-l.y;o.push(l);let m=Math.sqrt(2)*2,x={x:h.x,y:h.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){i.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let w=5;if(h.x===l.x)x={x:p<0?l.x-w+m:l.x+w-m,y:c<0?l.y-m:l.y+m};else x={x:p<0?l.x-m:l.x+m,y:c<0?l.y-w+m:l.y+w-m}}else i.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));o.push(x,u)}else o.push(r[a]);return o},"fixCorners"),VS=t((r,e,o)=>{let a=r-e-o,s=2,n=2,h=4,l=Math.floor(a/4),u=Number.isFinite(l)?Math.max(0,l):0,p=Array(u).fill("2 2").join(" ");return`0 ${e} ${p} ${o}`},"generateDashArray"),mr=t(function(r,e,o,a,s,n,h,l=!1,u=void 0){if(!h)throw Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:p,layout:c}=d(),m=u??c,x=e.points,w=!1,_=s;var v=n;let E=[];for(let Xt in e.cssCompiledStyles){if(Vi(Xt))continue;E.push(e.cssCompiledStyles[Xt])}if(m==="swimlane"){if(!l&&v.intersect&&_.intersect&&Array.isArray(x)&&x.length>=2)if(x.length===2)x=[_.intersect(x[0]),v.intersect(x[1])];else{let Xt=x.slice(1,-1),le=Xt[0],ne=Xt[Xt.length-1],me=0.5,xe=Math.abs(x[x.length-1].x-ne.x)<0.5&&Math.abs(x[x.length-1].y-ne.y)<0.5,de=_.intersect(le),Gt=xe?ne:v.intersect(ne),se=Math.abs(Gt.x-ne.x)<0.5&&Math.abs(Gt.y-ne.y)<0.5,ce=Math.abs(de.x-le.x)<0.5&&Math.abs(de.y-le.y)<0.5?[]:[de],Ae=se?[]:[Gt];x=[...ce,...Xt,...Ae]}x=US(e,x)}else if(v.intersect&&_.intersect&&!l)x=x.slice(1,e.points.length-1),x.unshift(_.intersect(x[0])),x.push(v.intersect(x[x.length-1]));let W=btoa(JSON.stringify(x));if(e.toCluster)i.info("to cluster abc88",o.get(e.toCluster)),x=M0(e.points,o.get(e.toCluster).node),w=!0;if(e.fromCluster)i.debug("from cluster abc88",o.get(e.fromCluster),JSON.stringify(x,null,2)),x=M0(x.reverse(),o.get(e.fromCluster).node).reverse(),w=!0;let U=x.filter((Xt)=>!Number.isNaN(Xt.y)),V=YS(e.curve);if(V!=="rounded")U=XS(U);let Z=Gr;switch(V){case"linear":Z=Gr;break;case"basis":Z=co;break;case"cardinal":Z=pa;break;case"bumpX":Z=_a;break;case"bumpY":Z=fa;break;case"catmullRom":Z=Ta;break;case"monotoneX":Z=Ba;break;case"monotoneY":Z=La;break;case"natural":Z=gs;break;case"step":Z=ms;break;case"stepAfter":Z=Aa;break;case"stepBefore":Z=Fa;break;case"rounded":Z=Gr;break;default:Z=co}let{x:J,y:ut}=NS(e),at=xa().x(J).y(ut).curve(Z),mt;switch(e.thickness){case"normal":mt="edge-thickness-normal";break;case"thick":mt="edge-thickness-thick";break;case"invisible":mt="edge-thickness-invisible";break;default:mt="edge-thickness-normal"}switch(e.pattern){case"solid":mt+=" edge-pattern-solid";break;case"dotted":mt+=" edge-pattern-dotted";break;case"dashed":mt+=" edge-pattern-dashed";break;default:mt+=" edge-pattern-solid"}let bt,Lt=V==="rounded"?I0($0(U,e),5):at(U),wt=Array.isArray(e.style)?e.style:[e.style],kt=wt.find((Xt)=>Xt?.startsWith("stroke:")),ot="";if(e.animate)ot="edge-animation-fast";if(e.animation)ot="edge-animation-"+e.animation;let st=!1;if(e.look==="handDrawn"){let Xt=b.svg(r);Object.assign([],U);let le=Xt.path(Lt,{roughness:0.3,seed:p});mt+=" transition",bt=y(le).select("path").attr("id",`${h}-${e.id}`).attr("class"," "+mt+(e.classes?" "+e.classes:"")+(ot?" "+ot:"")).attr("style",wt?wt.reduce((me,xe)=>me+";"+xe,""):"");let ne=bt.attr("d");bt.attr("d",ne),r.node().appendChild(bt.node())}else{let Xt=E.join(";"),le=wt?wt.reduce((se,he)=>se+he+";",""):"",ne=(Xt?Xt+";"+le+";":le)+";"+(wt?wt.reduce((se,he)=>se+";"+he,""):"");bt=r.append("path").attr("d",Lt).attr("id",`${h}-${e.id}`).attr("class"," "+mt+(e.classes?" "+e.classes:"")+(ot?" "+ot:"")).attr("style",ne),kt=ne.match(/stroke:([^;]+)/)?.[1],st=e.animate===!0||!!e.animation||Xt.includes("animation");let me=bt.node(),xe=typeof me.getTotalLength==="function"?me.getTotalLength():0,de=F0[e.arrowTypeStart]||0,Gt=F0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!st){let he=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?VS(xe,de,Gt):`0 ${de} ${xe-de-Gt} ${Gt}`}; stroke-dashoffset: 0;`;bt.attr("style",he+bt.attr("style"))}}if(bt.attr("data-edge",!0),bt.attr("data-et","edge"),bt.attr("data-id",e.id),bt.attr("data-points",W),bt.attr("data-look",$e(e.look)),e.showPoints)U.forEach((Xt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Xt.x).attr("cy",Xt.y)});let xt="";if(d().flowchart.arrowMarkerAbsolute||d().state.arrowMarkerAbsolute)xt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,xt=xt.replace(/\(/g,"\\(").replace(/\)/g,"\\)");i.info("arrowTypeStart",e.arrowTypeStart),i.info("arrowTypeEnd",e.arrowTypeEnd);let it=!st&&e?.look==="neo";WS(bt,e,xt,h,a,it,kt);let _t=Math.floor(x.length/2),Et=x[_t];if(!H.isLabelCoordinateInPath(Et,bt.attr("d")))w=!0;let Vt={};if(w)Vt.updatedPath=x;return Vt.originalPath=e.points,Vt},"insertEdge");function I0(r,e){if(r.length<2)return"";let o="",a=r.length,s=0.00001;for(let n=0;n<a;n++){let h=r[n],l=r[n-1],u=r[n+1];if(n===0)o+=`M${h.x},${h.y}`;else if(n===a-1)o+=`L${h.x},${h.y}`;else{let p=h.x-l.x,c=h.y-l.y,m=u.x-h.x,x=u.y-h.y,w=Math.hypot(p,c),_=Math.hypot(m,x);if(w<s||_<s){o+=`L${h.x},${h.y}`;continue}let v=p/w,E=c/w,W=m/_,U=x/_,V=v*W+E*U,Z=Math.max(-1,Math.min(1,V)),J=Math.acos(Z);if(J<s||Math.abs(Math.PI-J)<s){o+=`L${h.x},${h.y}`;continue}let ut=Math.min(e/Math.sin(J/2),w/2,_/2),at=h.x-v*ut,mt=h.y-E*ut,bt=h.x+W*ut,Lt=h.y+U*ut;o+=`L${at},${mt}`,o+=`Q${h.x},${h.y} ${bt},${Lt}`}}return o}t(I0,"generateRoundedPath");function ad(r,e){if(!r||!e)return{angle:0,deltaX:0,deltaY:0};let o=e.x-r.x,a=e.y-r.y;return{angle:Math.atan2(a,o),deltaX:o,deltaY:a}}t(ad,"calculateDeltaAndAngle");function $0(r,e){let o=r.map((s)=>({...s}));if(r.length>=2&&ht[e.arrowTypeStart]){let s=ht[e.arrowTypeStart],n=r[0],h=r[1],{angle:l}=ad(n,h),u=s*Math.cos(l),p=s*Math.sin(l);o[0].x=n.x+u,o[0].y=n.y+p}let a=r.length;if(a>=2&&ht[e.arrowTypeEnd]){let s=ht[e.arrowTypeEnd],n=r[a-1],h=r[a-2],{angle:l}=ad(h,n),u=s*Math.cos(l),p=s*Math.sin(l);o[a-1].x=n.x-u,o[a-1].y=n.y-p}return o}t($0,"applyMarkerOffsetsToPoints");var KS=t((r,e,o,a)=>{e.forEach((s)=>{bT[s](r,o,a)})},"insertMarkers"),ZS=t((r,e,o)=>{i.trace("Making markers for ",o),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",o+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),QS=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),JS=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),tT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),eT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),rT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),iT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),oT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",o+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),sT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),aT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),nT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),lT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),cT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),fT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:h}=s,l=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",h??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let u=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");u.append("circle").attr("fill",h??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),u.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),dT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),pT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:h}=s,l=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",h??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let u=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");u.append("circle").attr("fill",h??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),u.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),gT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
297
|
+
L20,10
|
|
298
|
+
M20,10
|
|
299
|
+
L0,20`)},"requirement_arrow"),mT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
300
|
+
L20,10
|
|
301
|
+
M20,10
|
|
302
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s,h=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");h.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),h.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),h.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),h.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",o+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},Sa=KS;var kT={common:C,getConfig:A,insertCluster:dr,insertEdge:mr,insertEdgeLabel:Mn,insertMarkers:Sa,insertNode:Nn,interpolateToCurve:nl,labelHelper:q,log:i,positionEdgeLabel:Ca},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],Xa=Object.create(null),gc=t((r)=>{for(let e of r)Xa[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (S("prk9ks5j"),import("./chunk-prk9ks5j.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{gc([{name:"dagre",loader:t(async()=>await (S("d33n9fsr"),import("./chunk-d33n9fsr.js")),"loader")},{name:"swimlane",loader:t(async()=>await (S("q9rpxfmm"),import("./chunk-q9rpxfmm.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (S("8zf4cywy"),import("./chunk-8zf4cywy.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var je=t(async(r,e)=>{if(!Object.hasOwn(Xa,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let s of r.nodes){let n=s.domId||s.id;s.domId=`${r.diagramId}-${n}`}let o=Xa[r.layoutAlgorithm],a=await o.loader();return Fo(e,r.config),a.render(r,e,kT,{algorithm:o.algorithm})},"render"),nd="dagre",qe=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(Xa,r))return r;for(let o of[e,nd])if(Object.hasOwn(Xa,o))return i.warn(`Layout algorithm ${r} is not registered. Using ${o} as fallback.`),o;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
|
|
303
|
+
export{t,lr,No,i,zi,X,ft,De,fe,ti,f,g,ct,Js,ec,Zr,ni,Mo,Lc,Te,et,pr,F,tc,kr,hn,Ro,Nc,Mc,Rc,nc,rc,A,Pc,Hi,Ic,tt,ha,G,ac,ur,ze,ri,ai,C,Y,gn,Po,Dc,Io,N,M,P,R,I,O,D,d,Cr,Qr,ii,Ui,Do,y,Jr,oi,ea,Vn,ic,Mt,si,Oc,Sr,ga,St,ci,we,oc,Rt,ta,$c,Oo,Gn,va,At,li,ji,ya,Bc,sc,ba,Fc,qi,$o,Bo,xa,_a,te,Qt,Jt,Fo,Vi,L,cc,na,en,wa,ra,Ar,zo,pi,ui,di,mi,Ho,Uo,jo,qo,Vo,Go,Wo,Yo,Xo,Ko,Zo,Qo,Jo,es,ts,ns,rs,Tr,fi,Gi,as,lc,zc,is,pc,uc,aa,Wi,Ft,Yi,os,dc,Pt,Q,H,Hc,Wn,Tt,ss,cs,mc,lt,Xi,Oe,Me,Re,vn,zt,Ht,b,q,B,T,Ki,hi,Ln,Nn,Uc,jc,yn,dr,qc,ht,ka,gt,Vc,fc,Mn,hc,Ca,mr,Sa,gc,je,qe};
|