@layers-app/editor 0.0.29 → 0.0.31
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{layers.BOibRrKY.js → layers.4tA4S1gU.js} +1 -1
- package/dist/{layers.y7XKfK2M.js → layers.5hE_6x_T.js} +1 -1
- package/dist/{layers.QQaJgK-3.js → layers.72Qh7liQ.js} +10 -10
- package/dist/{layers.D8naFy0w.js → layers.8iFrrVLR.js} +1 -1
- package/dist/{layers.DOC0Onpl.js → layers.9-LCou55.js} +1 -1
- package/dist/{layers.DlphdLPZ.js → layers.AaLcOghi.js} +1 -1
- package/dist/{layers.BaOqzZDo.js → layers.B3wJXher.js} +65 -65
- package/dist/{layers.CWRqqdLq.js → layers.B4lGD5Tc.js} +27 -27
- package/dist/{layers.CinkO13g.js → layers.B67XaOG0.js} +1 -1
- package/dist/{layers.DCAlvV-0.js → layers.B7gfszTe.js} +1 -1
- package/dist/{layers.BrFcTrkT.js → layers.B7ld-tK_.js} +5 -5
- package/dist/{layers.DOToiIFB.js → layers.B9T9gW6R.js} +1 -1
- package/dist/{layers.C6jbv5lL.js → layers.BA2hEd4v.js} +1 -1
- package/dist/{layers.FkWwK9pt.js → layers.BFP-9xZT.js} +1 -1
- package/dist/{layers.CAlgg2ba.js → layers.BGx0vXxo.js} +1 -1
- package/dist/{layers.DMb_rSqp.js → layers.BIjkaoAD.js} +1 -1
- package/dist/{layers.Bn7h0_PO.js → layers.BJy-OPeG.js} +1 -1
- package/dist/{layers.D4Huv7DR.js → layers.BO7ifTeL.js} +3 -3
- package/dist/{layers.CoYjsfZV.js → layers.BOIkZ9z5.js} +1 -1
- package/dist/layers.BOiyyA3c.js +1 -0
- package/dist/{layers.qOpzfyD3.js → layers.BOpQ9kXs.js} +1 -1
- package/dist/{layers.Dhq1eSF7.js → layers.BPKMCOUm.js} +1 -1
- package/dist/{layers.BCSaOuQ1.js → layers.BQMm4cvr.js} +1 -1
- package/dist/{layers.cX1NN4ZB.js → layers.BSaFaRiH.js} +1 -1
- package/dist/{layers.CvxxnOJk.js → layers.BT2RxL4L.js} +1 -1
- package/dist/{layers.D0ETVfjp.js → layers.BTl_vP7p.js} +1 -1
- package/dist/{layers.V-vdqPil.js → layers.BTtHESQd.js} +1 -1
- package/dist/{layers.DTrhwWOZ.js → layers.BUtGPMdX.js} +1041 -1041
- package/dist/{layers.C6y_KErF.js → layers.BZ_EeivL.js} +1 -1
- package/dist/{layers.V029Ul2p.js → layers.B_Armv20.js} +24 -24
- package/dist/{layers.B5lO7ma5.js → layers.BaFCivuV.js} +1 -1
- package/dist/{layers.DTB5qpIW.js → layers.BaK_eeZK.js} +1 -1
- package/dist/{layers.BaPJ377A.js → layers.Bbo3GO3l.js} +1 -1
- package/dist/{layers.D_w3Ag4t.js → layers.BdgLQVA1.js} +1 -1
- package/dist/{layers.XQUBdD95.js → layers.BdvJPuIO.js} +1 -1
- package/dist/{layers.pHZQrmSX.js → layers.BfkCsSm-.js} +1 -1
- package/dist/{layers.0x5kHZ9j.js → layers.BgbYbPZ5.js} +4 -4
- package/dist/{layers.B7XBlGlW.js → layers.Bgxs6G0G.js} +1 -1
- package/dist/{layers.B_qqQYX7.js → layers.BhhtkwfC.js} +1 -1
- package/dist/{layers.BPn87Y-P.js → layers.BhlnP3Lf.js} +1 -1
- package/dist/{layers.CM6kSWDJ.js → layers.BibBofY4.js} +1 -1
- package/dist/{layers.Z6OA1iTo.js → layers.BinzCGcg.js} +1 -1
- package/dist/{layers.D2lX4RIx.js → layers.BiugNkKv.js} +3 -3
- package/dist/{layers.CPNW73dw.js → layers.BkHGFa4R.js} +1 -1
- package/dist/{layers.BzUVZfrA.js → layers.BlwdnHiw.js} +1 -1
- package/dist/{layers.DD0FbLE_.js → layers.Bm6QZIGM.js} +1 -1
- package/dist/{layers.DsHueDi2.js → layers.BmQEoM1r.js} +1 -1
- package/dist/{layers.9IYRxPhZ.js → layers.BoEbKLww.js} +1 -1
- package/dist/{layers.CLL6UFgy.js → layers.BpBCR7vt.js} +1 -1
- package/dist/{layers.Cu69BtS3.js → layers.Bt8ng8GL.js} +1 -1
- package/dist/{layers.BD1xH803.js → layers.Bu0hpf70.js} +1 -1
- package/dist/{layers.D8biYzmQ.js → layers.BvAefLk0.js} +1 -1
- package/dist/{layers.BIjbMXbG.js → layers.BvCSkbVr.js} +1 -1
- package/dist/{layers.CKeMjhDd.js → layers.BvRxELk7.js} +13594 -12706
- package/dist/{layers.H0OmHWM2.js → layers.Bx4GvDzx.js} +1 -1
- package/dist/{layers.CQhp9eGu.js → layers.BxS7a2C4.js} +1 -1
- package/dist/{layers.6D4d6rRA.js → layers.By5Ft8dn.js} +1 -1
- package/dist/{layers.G9aUJ7P0.js → layers.C-7N5Ovs.js} +1 -1
- package/dist/{layers.CyayEro7.js → layers.C-XtaLlG.js} +2 -2
- package/dist/{layers.BsukaZWB.js → layers.C-eogt7L.js} +1 -1
- package/dist/{layers.27ul8mtz.js → layers.C-nomXat.js} +1 -1
- package/dist/{layers.CZwvWE0u.js → layers.C0mtxK2T.js} +1 -1
- package/dist/{layers.B2WF6t5X.js → layers.C11zHMgR.js} +1 -1
- package/dist/{layers.YdsALZmG.js → layers.C196izUk.js} +1 -1
- package/dist/{layers.DBXl5ck_.js → layers.C3rT0hRS.js} +1 -1
- package/dist/{layers.BZfpIslM.js → layers.C6Y4QBVA.js} +5 -5
- package/dist/{layers.B8AEniI_.js → layers.C7LN8uaH.js} +3 -3
- package/dist/{layers.BoM7zzQh.js → layers.C8WvNF6m.js} +1 -1
- package/dist/{layers.CToiKOqz.js → layers.C8iV5UXY.js} +1 -1
- package/dist/{layers.Dnbe3DHX.js → layers.C9lMc97I.js} +1 -1
- package/dist/layers.CA_B-6Oi.js +1 -0
- package/dist/{layers.Cct_kNIx.js → layers.CCUOTIZq.js} +1 -1
- package/dist/{layers.D6fVFq7D.js → layers.CE5r3ZCr.js} +1 -1
- package/dist/layers.CI94cE9s.js +4 -0
- package/dist/{layers.BgW_qdBy.js → layers.CJJ9hKwX.js} +1 -1
- package/dist/{layers.DcxU18i0.js → layers.CJsYZNgO.js} +1 -1
- package/dist/{layers.yx_3h5lO.js → layers.CKFgoECy.js} +1 -1
- package/dist/{layers.7Vivg-r0.js → layers.CMHWR8sH.js} +1 -1
- package/dist/{layers.BXdZJYB5.js → layers.CNAeDpou.js} +1 -1
- package/dist/{layers.D0fpd89R.js → layers.COPOsgR5.js} +1 -1
- package/dist/{layers.DD-m7zXa.js → layers.COm-03rs.js} +1 -1
- package/dist/{layers.Bbma2TS_.js → layers.CPjwdZxX.js} +3 -3
- package/dist/{layers.-SoYlGZ4.js → layers.CRWxaEl8.js} +2 -2
- package/dist/{layers.CkAtxxlT.js → layers.CS_C463x.js} +1 -1
- package/dist/{layers.CKILvYTL.js → layers.CUa7tpfl.js} +1 -1
- package/dist/{layers.Dh23O9xV.js → layers.CWXFuSp2.js} +1 -1
- package/dist/layers.CXBX2xI4.js +1 -0
- package/dist/{layers.BdhDkatQ.js → layers.CZQjy6jR.js} +1 -1
- package/dist/{layers.sk0aRHl-.js → layers.CZoXear6.js} +1 -1
- package/dist/{layers.D1k7cW3x.js → layers.CZzwVJoU.js} +1 -1
- package/dist/{layers.CQ5N9HVy.js → layers.Cb1b4TBC.js} +1 -1
- package/dist/{layers.CZvXq10g.js → layers.CdAuSZyb.js} +1 -1
- package/dist/{layers.GPEwHHqp.js → layers.CeNN25DI.js} +1 -1
- package/dist/layers.CfFbOnwF.js +1 -0
- package/dist/{layers.Bq-qzTVY.js → layers.CftzcJ8Y.js} +1 -1
- package/dist/{layers.DqdRd9i0.js → layers.CgvlFheA.js} +1 -1
- package/dist/{layers.rbYb_9bp.js → layers.Cin31Fld.js} +1 -1
- package/dist/{layers.B9C_ydJQ.js → layers.CjiY4CON.js} +4 -4
- package/dist/{layers.C7NVHlX3.js → layers.Cl7hUnJL.js} +1 -1
- package/dist/{layers.D30Czgu4.js → layers.CnAs3otR.js} +1 -1
- package/dist/{layers.B_C67uGt.js → layers.CorvjB_F.js} +9 -9
- package/dist/{layers.CkagAevp.js → layers.CphwArIG.js} +2 -2
- package/dist/{layers.DGcYEGT3.js → layers.CqEsxtjU.js} +1 -1
- package/dist/{layers.CfKxIk3q.js → layers.CrOSAMNP.js} +1 -1
- package/dist/{layers.UEG1bSm4.js → layers.CtMf9ZDf.js} +1 -1
- package/dist/{layers.B6xyTMaK.js → layers.Cujz_umi.js} +1 -1
- package/dist/{layers.DLLPqwb7.js → layers.CvsvUloh.js} +3 -3
- package/dist/layers.Cw85wULc.js +52 -0
- package/dist/{layers.DQ778Ve4.js → layers.CxHO6mtT.js} +1 -1
- package/dist/{layers.CI4I5LhI.js → layers.CxJdoaM3.js} +1 -1
- package/dist/layers.CxPRcyka.js +116 -0
- package/dist/{layers.C9uQS4gH.js → layers.CyCk-okF.js} +2 -2
- package/dist/{layers.BZ_QEbyO.js → layers.CyYSQgjj.js} +1 -1
- package/dist/{layers.B0tEq2s6.js → layers.D-2goMPG.js} +1 -1
- package/dist/{layers.Bm4YRsyc.js → layers.D0CQuWIK.js} +1 -1
- package/dist/{layers.uiYBVREy.js → layers.D0N_GkAK.js} +1 -1
- package/dist/{layers.XrKla-FL.js → layers.D0YUZhcx.js} +1 -1
- package/dist/{layers.By9vgCc0.js → layers.D2Rs6Xnb.js} +1 -1
- package/dist/{layers.D2JnATNe.js → layers.D41PlvBz.js} +2 -2
- package/dist/{layers.BHiivtGZ.js → layers.D4notXb0.js} +1 -1
- package/dist/{layers.UAO4_g8C.js → layers.D5w64jN3.js} +4 -4
- package/dist/{layers.CiV1e4MO.js → layers.D7TjT_B2.js} +1 -1
- package/dist/{layers.BJO1Euhs.js → layers.D7l5YJkE.js} +1 -1
- package/dist/{layers.CX2bDKWP.js → layers.D8BYcwdo.js} +1 -1
- package/dist/{layers.BShAEKRS.js → layers.D9M_5MAE.js} +1 -1
- package/dist/{layers.RQi4o0j5.js → layers.DBk3JSR6.js} +1 -1
- package/dist/{layers.D9ppEsRM.js → layers.DE6JsOOo.js} +1 -1
- package/dist/{layers.PjvaYTA1.js → layers.DEdWeNSt.js} +1 -1
- package/dist/{layers.DApRpkqG.js → layers.DGU51yDD.js} +1 -1
- package/dist/{layers.LQGtraSs.js → layers.DH0QVd9d.js} +4 -4
- package/dist/{layers.DyDL5yGh.js → layers.DJBaSZae.js} +1 -1
- package/dist/layers.DJdz7fHL.js +233 -0
- package/dist/{layers.DLimLy7k.js → layers.DLAGS2L0.js} +1 -1
- package/dist/{layers.DMnWrTAc.js → layers.DLIwLTJz.js} +1 -1
- package/dist/{layers.DjPPv1Er.js → layers.DLMh1q98.js} +1 -1
- package/dist/{layers.C3A8FMWV.js → layers.DMMza7mQ.js} +1 -1
- package/dist/{layers.DR78Ayid.js → layers.DPfnwOk_.js} +1 -1
- package/dist/layers.DQbEMpYQ.js +8 -0
- package/dist/{layers.C5UfV0AW.js → layers.DQlcfgl8.js} +1 -1
- package/dist/{layers.CW-PNnHn.js → layers.DReImtfr.js} +1 -1
- package/dist/{layers.GLhLUH5j.js → layers.DYmMGYt1.js} +3 -3
- package/dist/{layers.BIgwYIEr.js → layers.DYnOToyi.js} +1 -1
- package/dist/{layers.CNCaYY8I.js → layers.DYqjolVc.js} +1 -1
- package/dist/{layers.CQfX1ChO.js → layers.DZRxsvJK.js} +1 -1
- package/dist/{layers.BbkCkr5n.js → layers.DZt3kbFb.js} +1 -1
- package/dist/{layers.0Rb5RtgL.js → layers.DbD4Akok.js} +1 -1
- package/dist/{layers.D_I31YYn.js → layers.DePZfgXW.js} +3 -3
- package/dist/{layers.CimmUA4L.js → layers.DeuJFNVD.js} +1 -1
- package/dist/{layers.BJmYGJpQ.js → layers.DfDl7HVZ.js} +1 -1
- package/dist/{layers._hGJtiFF.js → layers.DgayhZ20.js} +4 -4
- package/dist/{layers.B8W0NJOR.js → layers.Dgx2hM96.js} +1 -1
- package/dist/{layers.CaUC2D92.js → layers.DhnkHVM7.js} +1 -1
- package/dist/{layers.BpF9jvwO.js → layers.Di-fuD8Y.js} +3 -3
- package/dist/layers.DiEJGHjs.js +348 -0
- package/dist/{layers.BANAWfdK.js → layers.DjE5b1JV.js} +1 -1
- package/dist/{layers.CnIKr3HC.js → layers.DjaOWhRR.js} +1 -1
- package/dist/{layers.C_msKxOz.js → layers.DjgZCMnz.js} +1 -1
- package/dist/{layers.BwO5_pmq.js → layers.DlTtUpQ8.js} +4 -4
- package/dist/{layers.BrznVoq-.js → layers.DlgFKXUI.js} +3 -3
- package/dist/{layers.BBoFnnN_.js → layers.DlyIKCpw.js} +1 -1
- package/dist/{layers.B3fYd_9D.js → layers.DnazhkhN.js} +1 -1
- package/dist/{layers.DvFRXt5t.js → layers.DpKz2McD.js} +1 -1
- package/dist/{layers.B45pZpRt.js → layers.DpWIvnS_.js} +1 -1
- package/dist/{layers.CN3_dM2I.js → layers.DpyFHCd9.js} +2 -2
- package/dist/{layers.DNI_NjEo.js → layers.DxiKP7eP.js} +1 -1
- package/dist/{layers.KjR3SHwr.js → layers.DxxVBrgd.js} +1 -1
- package/dist/layers.DzRi66hs.js +1 -0
- package/dist/{layers.DZZBGObz.js → layers.E6RW7YDy.js} +1 -1
- package/dist/{layers.DiR16JGR.js → layers.Eejl5r9i.js} +1 -1
- package/dist/{layers.Bh5qkD3w.js → layers.Gzwn4kQL.js} +1 -1
- package/dist/{layers.DdoahV7F.js → layers.J2c6Hp7H.js} +1 -1
- package/dist/{layers.VTGR7224.js → layers.JmeF7sJF.js} +4 -4
- package/dist/{layers.B3qykxUx.js → layers.KXev_2eS.js} +1 -1
- package/dist/{layers.04hul7Cl.js → layers.LLMDHDIv.js} +1 -1
- package/dist/{layers.BeKx-2pI.js → layers.M6NpGjSx.js} +2 -2
- package/dist/{layers.BZDS7hkL.js → layers.OIcSwfC8.js} +1 -1
- package/dist/{layers.BE_G1PBu.js → layers.OmYo2rYp.js} +1 -1
- package/dist/{layers.C78DgiuT.js → layers.T3HYKYVF.js} +1 -1
- package/dist/{layers.NIA62kKA.js → layers.Tv5ELCZD.js} +3 -3
- package/dist/{layers.b-Z1T3Qk.js → layers.WGKiswhG.js} +1 -1
- package/dist/{layers.DmzB8yYT.js → layers.WtumrbFc.js} +4 -4
- package/dist/{layers.MwcQPa9L.js → layers.ZChFWsyd.js} +1 -1
- package/dist/{layers.CxMy14VF.js → layers.aklcpbyN.js} +1 -1
- package/dist/{layers.BqpiS_hE.js → layers.cBsOfEPI.js} +59 -59
- package/dist/{layers.CG1owC1Y.js → layers.dCAkGIlL.js} +1 -1
- package/dist/{layers.CRy22r23.js → layers.eL2GXb_W.js} +1 -1
- package/dist/{layers.BBmTszje.js → layers.ep5Idhpt.js} +5 -5
- package/dist/{layers.ByOfMpn8.js → layers.gSGALHzV.js} +1 -1
- package/dist/{layers.DgpUZDyj.js → layers.gg9wK6a3.js} +1 -1
- package/dist/{layers.BwdVvXjR.js → layers.gzvYhrhX.js} +1 -1
- package/dist/{layers.DJc7dVG5.js → layers.k_tQsbx8.js} +1 -1
- package/dist/{layers.Cw61uzWb.js → layers.lBc_R3q_.js} +1 -1
- package/dist/layers.p4Orr7V9.js +164 -0
- package/dist/{layers.BRfZjBnJ.js → layers.phqHFhSa.js} +1 -1
- package/dist/layers.prcfYQ71.js +6 -0
- package/dist/{layers.Cv-WkeWI.js → layers.vCSXIx5x.js} +1 -1
- package/dist/{layers.DZP8Sltj.js → layers.w9gHF0OE.js} +1 -1
- package/dist/{layers.C22z_lEr.js → layers.wFR-LUZn.js} +1 -1
- package/dist/{layers.CVu6Qj2u.js → layers.z96tnZax.js} +1 -1
- package/dist/{layers.C2db1CP0.js → layers.zAj1PP3I.js} +1 -1
- package/dist/{layers.BbfBmSj-.js → layers.zCSywW5q.js} +1 -1
- package/dist/{layers.B2mVB3DA.js → layers.zoPhA96V.js} +1 -1
- package/package.json +5 -5
- package/dist/layers.B16cpHno.js +0 -1
- package/dist/layers.B8JPGn6r.js +0 -1
- package/dist/layers.BaqrGe4g.js +0 -6
- package/dist/layers.BcFk1Bpa.js +0 -50
- package/dist/layers.Bjq79IY_.js +0 -1
- package/dist/layers.BriP0h7v.js +0 -8
- package/dist/layers.Cm9X0X3T.js +0 -1
- package/dist/layers.Cn1jF2Gh.js +0 -164
- package/dist/layers.DW9YHURZ.js +0 -233
- package/dist/layers.DvkA4OgA.js +0 -116
- package/dist/layers.YyZAezbn.js +0 -343
- package/dist/layers._Eomtf_i.js +0 -1
- package/dist/layers.jO8In61o.js +0 -4
package/dist/layers.jO8In61o.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./layers.BrznVoq-.js"),K=require("./layers.CN3_dM2I.js"),it=require("./layers.CNCaYY8I.js"),nt=(e,t,a,i)=>{t.forEach(l=>{xt[l](e,a,i)})},lt=(e,t,a)=>{h.log$1.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ct=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ot=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ht=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},ft=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).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"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).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")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).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")},pt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).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")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-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 L9,13 L14,7 L9,1 Z")},xt={extension:lt,composition:ct,aggregation:ot,dependency:ht,lollipop:yt,point:ft,circle:gt,cross:pt,barb:dt},ut=nt;function bt(e,t){t&&e.attr("style",t)}function wt(e){const t=h.select(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),bt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const mt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),h.evaluate(h.getConfig().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),h.log$1.debug("vertexText"+l);const r={isNode:i,label:h.decodeEntities(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return wt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},B=mt,L=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||h.evaluate(h.getConfig().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const y=n.node();let o;t.labelType==="markdown"?o=K.createText(n,h.sanitizeText$2(h.decodeEntities(c),h.getConfig()),{useHtmlLabels:r,width:t.width||h.getConfig().flowchart.wrappingWidth,classes:"markdown-node-label"}):o=y.appendChild(B(h.sanitizeText$2(h.decodeEntities(c),h.getConfig()),t.labelStyle,!1,i));let f=o.getBBox();const p=t.padding/2;if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const g=o.children[0],x=h.select(o),m=g.getElementsByTagName("img");if(m){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(u=>new Promise(S=>{function C(){if(u.style.display="flex",u.style.flexDirection="column",d){const M=h.getConfig().fontSize?h.getConfig().fontSize:window.getComputedStyle(document.body).fontSize,W=parseInt(M,10)*5+"px";u.style.minWidth=W,u.style.maxWidth=W}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&C()}),u.addEventListener("error",C),u.addEventListener("load",C)})))}f=g.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}return r?n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):n.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:f,halfPadding:p,label:n}},w=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function _(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function kt(e,t){return e.intersect(t)}function P(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),y=Math.abs(t*a*s/c);i.x<l&&(y=-y);var o=Math.abs(t*a*n/c);return i.y<r&&(o=-o),{x:l+y,y:r+o}}function vt(e,t,a){return P(e,t,t,a)}function Lt(e,t,a,i){var l,r,s,n,c,y,o,f,p,g,x,m,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,p=l*a.x+s*a.y+c,g=l*i.x+s*i.y+c,!(p!==0&&g!==0&&G(p,g))&&(r=i.y-a.y,n=a.x-i.x,y=i.x*a.y-a.x*i.y,o=r*e.x+n*e.y+y,f=r*t.x+n*t.y+y,!(o!==0&&f!==0&&G(o,f))&&(x=l*n-r*s,x!==0)))return m=Math.abs(x/2),d=s*y-n*c,u=d<0?(d-m)/x:(d+m)/x,d=r*c-l*y,S=d<0?(d-m)/x:(d+m)/x,{x:u,y:S}}function G(e,t){return e*t>0}function St(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,y=l-e.height/2-n,o=0;o<t.length;o++){var f=t[o],p=t[o<t.length-1?o+1:0],g=Lt(e,a,{x:c+f.x,y:y+f.y},{x:c+p.x,y:y+p.y});g&&r.push(g)}return r.length?(r.length>1&&r.sort(function(x,m){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),C=m.x-a.x,M=m.y-a.y,I=Math.sqrt(C*C+M*M);return S<I?-1:S===I?0:1}),r[0]):e}const $t=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,y;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,y=n):(l<0&&(s=-s),c=s,y=l===0?0:s*r/l),{x:a+c,y:i+y}},tt=$t,b={node:kt,circle:vt,ellipse:P,polygon:St,rect:tt},Ct=async(e,t)=>{t.useHtmlLabels||h.getConfig().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await L(e,t,"node "+t.classes,!0);h.log$1.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),w(t,s),t.intersect=function(n){return b.rect(t,n)},i},Mt=Ct,Tt=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Bt=(e,t,a)=>{const i=Tt(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},Z=e=>e?" "+e:"",E=(e,t)=>`node default${Z(e.classes)} ${Z(e.class)}`,F=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];h.log$1.info("Question main (Circle)");const c=_(a,s,s,n);return c.attr("style",t.style),w(t,c),t.intersect=function(y){return h.log$1.warn("Intersect called"),b.polygon(t,n,y)},a},Et=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return b.circle(t,14,s)},a},_t=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],y=_(a,n,r,c);return y.attr("style",t.style),w(t,y),t.intersect=function(o){return b.polygon(t,c,o)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Bt(t.directions,i,t),y=_(a,n,r,c);return y.attr("style",t.style),w(t,y),t.intersect=function(o){return b.polygon(t,c,o)},a},Rt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return _(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return b.polygon(t,s,c)},a},Ht=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,y=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return w(t,y),t.intersect=function(o){const f=b.rect(t,o),p=f.x-t.x;if(r!=0&&(Math.abs(p)<t.width/2||Math.abs(p)==t.width/2&&Math.abs(f.y-t.y)>t.height/2-s)){let g=s*s*(1-p*p/(r*r));g!=0&&(g=Math.sqrt(g)),g=s-g,o.y-t.y>0&&(g=-g),f.y+=g}return f},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await L(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,y=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",y).attr("width",s).attr("height",n),t.props){const o=new Set(Object.keys(t.props));t.props.borders&&(z(r,t.props.borders,s,n),o.delete("borders")),o.forEach(f=>{h.log$1.warn(`Unknown node property ${f}`)})}return w(t,r),t.intersect=function(o){return b.rect(t,o)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await L(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,y=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",y).attr("width",s).attr("height",n),t.props){const o=new Set(Object.keys(t.props));t.props.borders&&(z(r,t.props.borders,s,n),o.delete("borders")),o.forEach(f=>{h.log$1.warn(`Unknown node property ${f}`)})}return w(t,r),t.intersect=function(o){return b.rect(t,o)},a},jt=async(e,t)=>{const{shapeSvg:a}=await L(e,t,"label",!0);h.log$1.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(z(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{h.log$1.warn(`Unknown node property ${n}`)})}return w(t,i),t.intersect=function(s){return b.rect(t,s)},a};function z(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(h.log$1.debug("add top border"),r(a)):s(a),t.includes("r")?(h.log$1.debug("add right border"),r(i)):s(i),t.includes("b")?(h.log$1.debug("add bottom border"),r(a)):s(a),t.includes("l")?(h.log$1.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ut=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,h.log$1.info("Label text abc79",c,n,typeof n=="object");const y=s.node().appendChild(B(c,t.labelStyle,!0,!0));let o={width:0,height:0};if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const m=y.children[0],d=h.select(y);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}h.log$1.info("Text 2",n);const f=n.slice(1,n.length);let p=y.getBBox();const g=s.node().appendChild(B(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0));if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const m=g.children[0],d=h.select(g);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}const x=t.padding/2;return h.select(g).attr("transform","translate( "+(o.width>p.width?0:(p.width-o.width)/2)+", "+(p.height+x+5)+")"),h.select(y).attr("transform","translate( "+(o.width<p.width?0:-(p.width-o.width)/2)+", 0)"),o=s.node().getBBox(),s.attr("transform","translate("+-o.width/2+", "+(-o.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-o.width/2-x).attr("y",-o.height/2-x).attr("width",o.width+t.padding).attr("height",o.height+t.padding),r.attr("class","divider").attr("x1",-o.width/2-x).attr("x2",o.width/2+x).attr("y1",-o.height/2-x+p.height+x).attr("y2",-o.height/2-x+p.height+x),w(t,l),t.intersect=function(m){return b.rect(t,m)},i},zt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return w(t,s),t.intersect=function(n){return b.rect(t,n)},a},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await L(e,t,E(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),h.log$1.info("Circle main"),w(t,r),t.intersect=function(s){return h.log$1.info("Circle intersect",t,i.width/2+l,s),b.circle(t,i.width/2+l,s)},a},Zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await L(e,t,E(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),h.log$1.info("DoubleCircle main"),w(t,n),t.intersect=function(y){return h.log$1.info("DoubleCircle intersect",t,i.width/2+l+r,y),b.circle(t,i.width/2+l+r,y)},a},Ft=async(e,t)=>{const{shapeSvg:a,bbox:i}=await L(e,t,E(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=_(a,l,r,s);return n.attr("style",t.style),w(t,n),t.intersect=function(c){return b.polygon(t,s,c)},a},qt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(t,i),t.intersect=function(l){return b.circle(t,7,l)},a},q=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return w(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return b.rect(t,n)},i},Qt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(t,l),t.intersect=function(r){return b.circle(t,7,r)},a},Vt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),y=s.insert("line");let o=0,f=i;const p=s.insert("g").attr("class","label");let g=0;const x=t.classData.annotations&&t.classData.annotations[0],m=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=p.node().appendChild(B(m,t.labelStyle,!0,!0));let u=d.getBBox();if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const k=d.children[0],v=h.select(d);u=k.getBoundingClientRect(),v.attr("width",u.width),v.attr("height",u.height)}t.classData.annotations[0]&&(f+=u.height+i,o+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(h.getConfig().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const C=p.node().appendChild(B(S,t.labelStyle,!0,!0));h.select(C).attr("class","classTitle");let M=C.getBBox();if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const k=C.children[0],v=h.select(C);M=k.getBoundingClientRect(),v.attr("width",M.width),v.attr("height",M.height)}f+=M.height+i,M.width>o&&(o=M.width);const I=[];t.classData.members.forEach(k=>{const v=k.getDisplayDetails();let H=v.displayText;h.getConfig().flowchart.htmlLabels&&(H=H.replace(/</g,"<").replace(/>/g,">"));const N=p.node().appendChild(B(H,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let T=N.getBBox();if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const U=N.children[0],X=h.select(N);T=U.getBoundingClientRect(),X.attr("width",T.width),X.attr("height",T.height)}T.width>o&&(o=T.width),f+=T.height+i,I.push(N)}),f+=l;const W=[];if(t.classData.methods.forEach(k=>{const v=k.getDisplayDetails();let H=v.displayText;h.getConfig().flowchart.htmlLabels&&(H=H.replace(/</g,"<").replace(/>/g,">"));const N=p.node().appendChild(B(H,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let T=N.getBBox();if(h.evaluate(h.getConfig().flowchart.htmlLabels)){const U=N.children[0],X=h.select(N);T=U.getBoundingClientRect(),X.attr("width",T.width),X.attr("height",T.height)}T.width>o&&(o=T.width),f+=T.height+i,W.push(N)}),f+=l,x){let k=(o-u.width)/2;h.select(d).attr("transform","translate( "+(-1*o/2+k)+", "+-1*f/2+")"),g=u.height+i}let st=(o-M.width)/2;return h.select(C).attr("transform","translate( "+(-1*o/2+st)+", "+(-1*f/2+g)+")"),g+=M.height+i,c.attr("class","divider").attr("x1",-o/2-a).attr("x2",o/2+a).attr("y1",-f/2-a+l+g).attr("y2",-f/2-a+l+g),g+=l,I.forEach(k=>{h.select(k).attr("transform","translate( "+-o/2+", "+(-1*f/2+g+l/2)+")");const v=k==null?void 0:k.getBBox();g+=((v==null?void 0:v.height)??0)+i}),g+=l,y.attr("class","divider").attr("x1",-o/2-a).attr("x2",o/2+a).attr("y1",-f/2-a+l+g).attr("y2",-f/2-a+l+g),g+=l,W.forEach(k=>{h.select(k).attr("transform","translate( "+-o/2+", "+(-1*f/2+g)+")");const v=k==null?void 0:k.getBBox();g+=((v==null?void 0:v.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-o/2-a).attr("y",-(f/2)-a).attr("width",o+t.padding).attr("height",f+t.padding),w(t,n),t.intersect=function(k){return b.rect(t,k)},s},Q={rhombus:F,composite:At,question:F,rect:Dt,labelRect:jt,rectWithTitle:Ut,choice:Et,circle:Gt,doublecircle:Zt,stadium:zt,hexagon:_t,block_arrow:Nt,rect_left_inv_arrow:Rt,lean_right:Ht,lean_left:It,trapezoid:Ot,inv_trapezoid:Wt,rect_right_inv_arrow:Xt,cylinder:Yt,start:qt,end:Qt,note:Mt,subroutine:Ft,fork:q,join:q,class_box:Vt};let O={};const Jt=async(e,t,a)=>{let i,l;if(t.link){let r;h.getConfig().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await Q[t.shape](i,t,a)}else l=await Q[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),O[t.id]=i,t.haveCallback&&O[t.id].attr("class",O[t.id].attr("class")+" clickable"),i},Kt=(e,t)=>{O[t.id]=e},Pt=()=>{O={}},tr=e=>{const t=O[e.id];h.log$1.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},rt=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},R={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function Y(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=A(e),t=A(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const A=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,at=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(R,e.arrowTypeStart)){const{angle:r,deltaX:s}=Y(i[0],i[1]);l=R[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(R,e.arrowTypeEnd)){const{angle:r,deltaX:s}=Y(i[i.length-1],i[i.length-2]);l=R[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return A(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(R,e.arrowTypeStart)){const{angle:r,deltaY:s}=Y(i[0],i[1]);l=R[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(R,e.arrowTypeEnd)){const{angle:r,deltaY:s}=Y(i[i.length-1],i[i.length-2]);l=R[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return A(t).y+l}}),et=(e,t,a,i,l)=>{t.arrowTypeStart&&V(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&V(e,"end",t.arrowTypeEnd,a,i,l)},rr={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},V=(e,t,a,i,l,r)=>{const s=rr[a];if(!s){h.log$1.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let j={},$={};const ar=()=>{j={},$={}},er=(e,t)=>{const a=h.evaluate(h.getConfig().flowchart.htmlLabels),i=t.labelType==="markdown"?K.createText(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):B(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],y=h.select(i);s=c.getBoundingClientRect(),y.attr("width",s.width),y.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),j[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=B(t.startLabelLeft,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),o=y.insert("g").attr("class","inner");n=o.node().appendChild(c);const f=c.getBBox();o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),$[t.id]||($[t.id]={}),$[t.id].startLeft=y,D(n,t.startLabelLeft)}if(t.startLabelRight){const c=B(t.startLabelRight,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),o=y.insert("g").attr("class","inner");n=y.node().appendChild(c),o.node().appendChild(c);const f=c.getBBox();o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),$[t.id]||($[t.id]={}),$[t.id].startRight=y,D(n,t.startLabelRight)}if(t.endLabelLeft){const c=B(t.endLabelLeft,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),o=y.insert("g").attr("class","inner");n=o.node().appendChild(c);const f=c.getBBox();o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),y.node().appendChild(c),$[t.id]||($[t.id]={}),$[t.id].endLeft=y,D(n,t.endLabelLeft)}if(t.endLabelRight){const c=B(t.endLabelRight,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),o=y.insert("g").attr("class","inner");n=o.node().appendChild(c);const f=c.getBBox();o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),y.node().appendChild(c),$[t.id]||($[t.id]={}),$[t.id].endRight=y,D(n,t.endLabelRight)}return i};function D(e,t){h.getConfig().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const sr=(e,t)=>{h.log$1.debug("Moving label abc88 ",e.id,e.label,j[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=h.getConfig(),{subGraphTitleTotalMargin:l}=rt(i);if(e.label){const r=j[e.id];let s=e.x,n=e.y;if(a){const c=h.utils.calcLabelPosition(a);h.log$1.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=$[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=h.utils.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=$[e.id].startRight;let s=e.x,n=e.y;if(a){const c=h.utils.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=$[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=h.utils.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=$[e.id].endRight;let s=e.x,n=e.y;if(a){const c=h.utils.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},ir=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},nr=(e,t,a)=>{h.log$1.debug(`intersection calc abc89:
|
|
2
|
-
outsidePoint: ${JSON.stringify(t)}
|
|
3
|
-
insidePoint : ${JSON.stringify(a)}
|
|
4
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.x<t.x?s-r:s+r;const c=e.height/2,y=Math.abs(t.y-a.y),o=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*s>Math.abs(i-t.x)*c){let f=a.y<t.y?t.y-c-l:l-c-t.y;n=o*f/y;const p={x:a.x<t.x?a.x+n:a.x-o+n,y:a.y<t.y?a.y+y-f:a.y-y+f};return n===0&&(p.x=t.x,p.y=t.y),o===0&&(p.x=t.x),y===0&&(p.y=t.y),h.log$1.debug(`abc89 topp/bott calc, Q ${y}, q ${f}, R ${o}, r ${n}`,p),p}else{a.x<t.x?n=t.x-s-i:n=i-s-t.x;let f=y*n/o,p=a.x<t.x?a.x+o-n:a.x-o+n,g=a.y<t.y?a.y+f:a.y-f;return h.log$1.debug(`sides calc abc89, Q ${y}, q ${f}, R ${o}, r ${n}`,{_x:p,_y:g}),n===0&&(p=t.x,g=t.y),o===0&&(p=t.x),y===0&&(g=t.y),{x:p,y:g}}},J=(e,t)=>{h.log$1.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!ir(t,r)&&!l){const s=nr(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},lr=function(e,t,a,i,l,r,s){let n=a.points;h.log$1.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const y=r.node(t.v);var o=r.node(t.w);o!=null&&o.intersect&&(y!=null&&y.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(y.intersect(n[0])),n.push(o.intersect(n[n.length-1]))),a.toCluster&&(h.log$1.debug("to cluster abc88",i[a.toCluster]),n=J(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(h.log$1.debug("from cluster abc88",i[a.fromCluster]),n=J(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const f=n.filter(M=>!Number.isNaN(M.y));let p=h.curveBasis;a.curve&&(l==="graph"||l==="flowchart")&&(p=a.curve);const{x:g,y:x}=at(a),m=it.line().x(g).y(x).curve(p);let d;switch(a.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-thick";break;default:d=""}switch(a.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",m(f)).attr("id",a.id).attr("class"," "+d+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(h.getConfig().flowchart.arrowMarkerAbsolute||h.getConfig().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),et(u,a,S,s,l);let C={};return c&&(C.updatedPath=n),C.originalPath=a.points,C};exports.addEdgeMarkers=et;exports.clear=ar;exports.clear$1=Pt;exports.createLabel$1=B;exports.getLineFunctionsWithOffset=at;exports.getSubGraphTitleMargins=rt;exports.insertEdge=lr;exports.insertEdgeLabel=er;exports.insertMarkers$1=ut;exports.insertNode=Jt;exports.intersectRect$1=tt;exports.labelHelper=L;exports.positionEdgeLabel=sr;exports.positionNode=tr;exports.setNodeElem=Kt;exports.updateNodeBounds=w;
|