@layers-app/editor 0.0.23 → 0.0.25
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 +6 -44
- package/dist/index.js +1 -1
- package/dist/{layers.BdanmQPF.js → layers.07qQUlOx.js} +1 -1
- package/dist/{layers.CBXpUMze.js → layers.0Uws2RMI.js} +35 -35
- package/dist/{layers.BpXiFzvR.js → layers.2klZ3piU.js} +1 -1
- package/dist/{layers.p9hSNB6N.js → layers.3O2dWJo4.js} +1 -1
- package/dist/{layers.x6ioP3u0.js → layers.3VppN-FK.js} +1 -1
- package/dist/{layers.kY3ZYtED.js → layers.3cmQBPRD.js} +1 -1
- package/dist/{layers.C-G7-Jg3.js → layers.5U29QNMz.js} +1 -1
- package/dist/{layers.CEXVJbhn.js → layers.5s_bUFw7.js} +1 -1
- package/dist/{layers.BFLg4UGe.js → layers.8dwcxQd3.js} +1 -1
- package/dist/{layers.D2q8ZYi2.js → layers.9EMwI8Xs.js} +15 -15
- package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
- package/dist/{layers.BBwDvE6l.js → layers.B-eOoyQV.js} +1820 -1814
- package/dist/{layers.CPV5PaJ7.js → layers.B-hOwYRy.js} +1 -1
- package/dist/{layers.PO65UmTA.js → layers.B0LHiU6c.js} +1 -1
- package/dist/{layers.CnD3z0eZ.js → layers.B1psjxfg.js} +1 -1
- package/dist/{layers.BUSnd1Ro.js → layers.B1tTFwlU.js} +1 -1
- package/dist/{layers.B39TZ2WV.js → layers.B3NaBxHH.js} +1 -1
- package/dist/{layers.DIrkcLlA.js → layers.B43rvwKV.js} +63 -63
- package/dist/{layers.Dg8Wbn90.js → layers.B7wN1gyM.js} +1 -1
- package/dist/{layers.tbRLuldN.js → layers.B9ocXRVO.js} +1 -1
- package/dist/{layers.CZh7NZyl.js → layers.BAWbBe9N.js} +1 -1
- package/dist/{layers.Cl9Tl2nd.js → layers.BAaIrX5p.js} +1 -1
- package/dist/layers.BAnc8Y8B.js +118 -0
- package/dist/{layers.CiNAQOA-.js → layers.BB7ssac6.js} +2 -2
- package/dist/{layers.Bz0ApNUe.js → layers.BBm66jcD.js} +14 -14
- package/dist/layers.BGF0mJI-.js +10 -0
- package/dist/{layers.kthR742N.js → layers.BJ2qg5fe.js} +1 -1
- package/dist/{layers.C_dOgKfE.js → layers.BK4BzYSQ.js} +1 -1
- package/dist/{layers.BST6tR9a.js → layers.BKoRqbkc.js} +1 -1
- package/dist/{layers.Bbl6qitU.js → layers.BLvgQy3M.js} +1 -1
- package/dist/{layers.DEfJs03Z.js → layers.BNEX6ffl.js} +1 -1
- package/dist/layers.BOEB6DhN.js +202 -0
- package/dist/{layers.ClaqpFnu.js → layers.BOdIgbDK.js} +2 -2
- package/dist/{layers.DalYdEkL.js → layers.BPTiALoi.js} +4 -4
- package/dist/{layers.B64g6Zx2.js → layers.BQHgH0c0.js} +1 -1
- package/dist/{layers.BFOl7cA-.js → layers.BQUkW6Sr.js} +1 -1
- package/dist/{layers.CphCG076.js → layers.BQdiT-Gc.js} +1 -1
- package/dist/{layers.Cp82yltX.js → layers.BW8tNgnl.js} +1 -1
- package/dist/{layers.CHHqQlm1.js → layers.BWBOjwnD.js} +1 -1
- package/dist/{layers.N4wL2Xyj.js → layers.BWBqFzL5.js} +85 -85
- package/dist/{layers.c_QDfgff.js → layers.BY_Ddtf_.js} +4 -4
- package/dist/{layers.CqM3rL4-.js → layers.B_3SG9-n.js} +1 -1
- package/dist/layers.Bag9ck5N.js +1 -0
- package/dist/{layers.ChAMqLmE.js → layers.Bgs9DWaM.js} +1 -1
- package/dist/{layers.Bv0tGvGl.js → layers.BhjPgUp1.js} +1 -1
- package/dist/{layers.ClQj75nc.js → layers.Bjqq928v.js} +1 -1
- package/dist/{layers.Ch7C0MR9.js → layers.Bk3rEvTi.js} +1 -1
- package/dist/{layers.oFAtdeQ1.js → layers.BlRFAeMZ.js} +3 -3
- package/dist/layers.BlifjyLs.js +2 -0
- package/dist/{layers.BZcZF6Ct.js → layers.BlkvO94n.js} +1 -1
- package/dist/{layers.BPe9NQzP.js → layers.Bm4nXd83.js} +1 -1
- package/dist/{layers.Blho0qwc.js → layers.BmU3A8To.js} +1 -1
- package/dist/{layers.UbqG2dp_.js → layers.Bn8N2Stv.js} +1 -1
- package/dist/{layers.DwLw5o0M.js → layers.BqTvq1WO.js} +1 -1
- package/dist/{layers.CGX7Piy7.js → layers.BtP6vWIY.js} +1 -1
- package/dist/{layers.CDLdte-o.js → layers.Bu0Rv7u8.js} +1 -1
- package/dist/{layers.DAx0hT2g.js → layers.BuJozguU.js} +1 -1
- package/dist/{layers.Dol0x5Jd.js → layers.Bw3R-pSG.js} +1 -1
- package/dist/{layers.hkFN-BS0.js → layers.BwcyrXEu.js} +1 -1
- package/dist/{layers.BBB7YGK1.js → layers.Bwuu3jjm.js} +1 -1
- package/dist/{layers.B9zrmkst.js → layers.BymWa7M3.js} +1 -1
- package/dist/{layers.LOjND5R4.js → layers.BzRmHQQD.js} +2 -2
- package/dist/{layers.Dbuivk7d.js → layers.Bzc44mb4.js} +1 -1
- package/dist/{layers.CwPFdFUT.js → layers.C2b0BhoA.js} +1 -1
- package/dist/{layers.DARK07JA.js → layers.C3vT-_5E.js} +1 -1
- package/dist/{layers.D7HvMBb6.js → layers.C4L1zUgG.js} +1 -1
- package/dist/{layers.CcJ28sUd.js → layers.C6qRV0pD.js} +1 -1
- package/dist/{layers.CDzPpnhN.js → layers.C7_Otsyx.js} +5 -5
- package/dist/{layers.WsdOSV4y.js → layers.C8r5QjFY.js} +1 -1
- package/dist/{layers.5BbX0Xoz.js → layers.C9vJr9Fp.js} +57 -57
- package/dist/layers.CBAObrHU.js +1 -0
- package/dist/layers.CHd51QJn.js +8 -0
- package/dist/{layers.BJMMuP5r.js → layers.CI7Z-Sjj.js} +1 -1
- package/dist/{layers.D9A031XO.js → layers.CJudskXr.js} +2 -2
- package/dist/layers.CLPJWTr_.js +1 -0
- package/dist/{layers.OEP2K3db.js → layers.CM0RbG9c.js} +1 -1
- package/dist/{layers.BXGiOI1Z.js → layers.CNml1ojC.js} +1 -1
- package/dist/{layers.C5uR7AiN.js → layers.CPPtpAVe.js} +1 -1
- package/dist/{layers.Cn6OfRlw.js → layers.CPtjfATq.js} +1 -1
- package/dist/{layers.BYVHkqLR.js → layers.CRVVTbRr.js} +1 -1
- package/dist/{layers.Ym7pRGM7.js → layers.CRuKN3by.js} +3 -3
- package/dist/{layers.BuQ1nJmP.js → layers.CSAdHZgs.js} +1 -1
- package/dist/{layers.CMS1o_sE.js → layers.CSy8D72I.js} +1 -1
- package/dist/{layers.DdTLZZKb.js → layers.CV_r6tXx.js} +6 -6
- package/dist/layers.CVlRuvNG.js +122 -0
- package/dist/{layers.D68FZk66.js → layers.CWWJnwM1.js} +1 -1
- package/dist/{layers.Ck0iJfoW.js → layers.CYPKJ9D_.js} +1 -1
- package/dist/{layers.BO3dqWyO.js → layers.CZ9asRxp.js} +1 -1
- package/dist/{layers.CO4NHmK3.js → layers.CctQZdRR.js} +1 -1
- package/dist/{layers.BjZInKjA.js → layers.Cdw06C7D.js} +2 -2
- package/dist/{layers.DYx3Ot6h.js → layers.Ce8BBqO9.js} +1 -1
- package/dist/{layers.DQCPMqIN.js → layers.CfVH6j0d.js} +1 -1
- package/dist/{layers.lLRqycMO.js → layers.CfyH4z2e.js} +1 -1
- package/dist/{layers.BLSqqbWP.js → layers.CgdtQipl.js} +4 -4
- package/dist/{layers.DFd9A85i.js → layers.CgvOUVzr.js} +4 -4
- package/dist/{layers.gRKbOYG-.js → layers.ChkOb4tl.js} +26 -26
- package/dist/{layers.CR4riLSc.js → layers.Cj6cbW8i.js} +639 -639
- package/dist/{layers.DKPzrygv.js → layers.Cj7ITJ9c.js} +1 -1
- package/dist/{layers.rRMBW9ET.js → layers.CjRpPAKZ.js} +251 -251
- package/dist/{layers.Ba97nTEK.js → layers.CjfoYqS0.js} +1 -1
- package/dist/{layers.CTmkjIN6.js → layers.Ckd9L1ZQ.js} +1 -1
- package/dist/{layers.CQv0GMRl.js → layers.ClpTV2lw.js} +1 -1
- package/dist/{layers.D1cZq8tq.js → layers.CmEuIxO4.js} +3 -3
- package/dist/{layers.Bwpn7zKE.js → layers.CmOPFjvq.js} +1 -1
- package/dist/{layers.DCvUAfE1.js → layers.CnlX6j6i.js} +1 -1
- package/dist/{layers.B-6oGNjd.js → layers.CqEtGCpU.js} +1 -1
- package/dist/{layers.C51kZnWr.js → layers.CqMLQ0Dp.js} +1 -1
- package/dist/{layers.BhM2iCwB.js → layers.CuxIZWEP.js} +1 -1
- package/dist/{layers.PhLwHKUM.js → layers.CvLOVBUw.js} +1 -1
- package/dist/{layers.ChykDTOy.js → layers.Cx6FqSsI.js} +1 -1
- package/dist/{layers.CmHSmrZm.js → layers.CyUKOqQM.js} +1 -1
- package/dist/{layers.DeB3waPT.js → layers.CzsxLGGT.js} +1 -1
- package/dist/{layers.DXTPaWjN.js → layers.D0yiFcqY.js} +1 -1
- package/dist/layers.D1fmxxk7.js +1 -0
- package/dist/{layers.DO-G3uLL.js → layers.D39cRqm0.js} +1 -1
- package/dist/{layers.ChPHYv68.js → layers.D6ec9SRH.js} +1 -1
- package/dist/{layers.BDxQSquK.js → layers.D71p3EhU.js} +1 -1
- package/dist/{layers.-RxAm5pH.js → layers.D8G_zttU.js} +47 -47
- package/dist/{layers.x6Qk2Mwl.js → layers.D8NjLtRn.js} +1 -1
- package/dist/{layers.I-MG0ir4.js → layers.DAkVONDW.js} +6219 -6202
- package/dist/{layers.iw01AOuQ.js → layers.DDE-iai2.js} +96 -96
- package/dist/{layers.DDRgaMwu.js → layers.DDGV6wvn.js} +1 -1
- package/dist/{layers.cp645rbn.js → layers.DDPm1Phd.js} +1 -1
- package/dist/{layers.D3Hkinja.js → layers.DFdD8OE6.js} +1 -1
- package/dist/{layers.gzGcAwbO.js → layers.DGC-QZbD.js} +3 -3
- package/dist/{layers.B9NSFeaj.js → layers.DH6JhdxT.js} +1 -1
- package/dist/{layers.DrtkQKK7.js → layers.DHNgS4o3.js} +1 -1
- package/dist/{layers.k2UyvrHI.js → layers.DHYQaKXy.js} +1 -1
- package/dist/{layers.B0EkntbT.js → layers.DKTUd6cG.js} +1 -1
- package/dist/{layers.Cxmncz59.js → layers.DLShWbE3.js} +1 -1
- package/dist/{layers.C1KhBpGU.js → layers.DMnBSepD.js} +1 -1
- package/dist/{layers.BCFHxkpM.js → layers.DN2-RoYO.js} +1 -1
- package/dist/{layers.BLB-feoT.js → layers.DNvn8evO.js} +1 -1
- package/dist/{layers.DsAtBUs-.js → layers.DPpl1Lyy.js} +5 -5
- package/dist/{layers.paz6tc0L.js → layers.DQevQguw.js} +1 -1
- package/dist/{layers.DK_t52oS.js → layers.DRGcrPPV.js} +390 -390
- package/dist/{layers.Ckbp-T9r.js → layers.DS8xp3z6.js} +1 -1
- package/dist/{layers.D90-hSDT.js → layers.DT2vhESJ.js} +2 -2
- package/dist/{layers.B-ie1_cm.js → layers.DTSzGsqB.js} +1 -1
- package/dist/{layers.Dyqg_e4P.js → layers.DTX-m6B0.js} +1 -1
- package/dist/{layers.Lhl12ohc.js → layers.DUgI8Qm6.js} +1 -1
- package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
- package/dist/{layers.CZMy0ug4.js → layers.DX5uxco3.js} +1 -1
- package/dist/{layers.C6Rn8zoI.js → layers.DYoOWsyB.js} +1 -1
- package/dist/layers.DZVs6rl-.js +65 -0
- package/dist/{layers.Bfd5bOAD.js → layers.DZxo3Qo-.js} +1 -1
- package/dist/{layers.ChJyurjQ.js → layers.DaNHv_tD.js} +1 -1
- package/dist/{layers.Bk2PdkMX.js → layers.DbSjlXkz.js} +1 -1
- package/dist/{layers.D2vOkfMK.js → layers.Dc_OXuAO.js} +1 -1
- package/dist/{layers.BIVmclKv.js → layers.Dg4aFQbj.js} +1 -1
- package/dist/{layers.DHbdkCCU.js → layers.Dh8vVrkJ.js} +1 -1
- package/dist/{layers.gaT5_-NN.js → layers.DhaEWWE8.js} +1 -1
- package/dist/{layers.CH23k4XD.js → layers.DhiiM0nu.js} +1 -1
- package/dist/{layers.BEE5yqs5.js → layers.Dj1RvABZ.js} +1 -1
- package/dist/{layers.BBU3ik5q.js → layers.DnhB9nfo.js} +3 -3
- package/dist/{layers.DxGDxkXA.js → layers.Dp_lp9sc.js} +47 -47
- package/dist/{layers.CCRe_IA7.js → layers.DpoqH_qu.js} +1 -1
- package/dist/{layers.Y41CVpLS.js → layers.DtYpqqY0.js} +33 -33
- package/dist/{layers.CvJxfPxo.js → layers.Dtt8if_X.js} +1 -1
- package/dist/{layers.Dyor8Hot.js → layers.Du5-W3Rw.js} +28 -28
- package/dist/{layers.CeMe5scF.js → layers.Dv3wcPBB.js} +1 -1
- package/dist/{layers.CR10RAJi.js → layers.DvVe2_B8.js} +2 -2
- package/dist/{layers.BDhuxbhX.js → layers.Dw80oYJ5.js} +1 -1
- package/dist/{layers.-rS-aTo2.js → layers.Dx5bTjWn.js} +1 -1
- package/dist/{layers.HcI9cOEd.js → layers.DyUhnefH.js} +47 -47
- package/dist/{layers.DhiFm4jW.js → layers.EqE20WDv.js} +1 -1
- package/dist/{layers.L_XjkGw6.js → layers.GO-Mbd7I.js} +16 -16
- package/dist/{layers.CnloMtKN.js → layers.HRFT_ZjM.js} +14 -14
- package/dist/{layers.DhzTwBn5.js → layers.KCNY5y8z.js} +1 -1
- package/dist/{layers.Dklz2JqP.js → layers.KFKejNxr.js} +1 -1
- package/dist/{layers.D-ZYFolm.js → layers.LBCOqtdP.js} +1 -1
- package/dist/{layers.B_Hf0SF-.js → layers.MYNPCNPb.js} +517 -517
- package/dist/{layers.FstVqdQC.js → layers.Mz6hy1ns.js} +151 -151
- package/dist/{layers.Dxrm0nEM.js → layers.NnXYAx13.js} +140 -140
- package/dist/layers.O_QfH9Tw.js +55 -0
- package/dist/{layers.Cx14IKzN.js → layers.PrN0U_UM.js} +1 -1
- package/dist/{layers.Dzc83sE7.js → layers.Q4CIFfze.js} +1 -1
- package/dist/{layers.D_MU5WlI.js → layers.R44OAZRP.js} +1 -1
- package/dist/{layers.BvZFIFgz.js → layers.SP95Qof2.js} +1 -1
- package/dist/{layers.I5-pSyca.js → layers.SulLxOdh.js} +1 -1
- package/dist/{layers.C3K_Whht.js → layers.T0eE6tga.js} +1 -1
- package/dist/{layers.BHDiP2sq.js → layers.UHP1RD2c.js} +1482 -1482
- package/dist/{layers.BD5uUnI2.js → layers.UVNd1xGx.js} +279 -279
- package/dist/{layers.Ci0x4aAi.js → layers.WoRsWqkn.js} +5 -5
- package/dist/{layers.BPnpanwd.js → layers.Xe8jbEny.js} +1 -1
- package/dist/{layers.DMvWe0pJ.js → layers.ZN4JdEjx.js} +2 -2
- package/dist/layers.ZYL9xgWP.js +6 -0
- package/dist/{layers.B6UkAKu5.js → layers._hbnQs16.js} +78 -78
- package/dist/{layers.BkMfeJ9R.js → layers.dRKtVcxx.js} +1 -1
- package/dist/{layers.C0bumYdC.js → layers.eMCYstYw.js} +1 -1
- package/dist/{layers.BUkDq4ln.js → layers.eT0cgnuX.js} +1 -1
- package/dist/{layers.B0pdr1hX.js → layers.iE9hmQyV.js} +33 -33
- package/dist/{layers.B3odqoHb.js → layers.iRxcG0YN.js} +1 -1
- package/dist/{layers.D18RSmmQ.js → layers.kyTkLvwr.js} +1 -1
- package/dist/{layers.CClfR9Rs.js → layers.otSGVgrf.js} +10347 -11483
- package/dist/{layers.dqI-yLmM.js → layers.pAr6m-ST.js} +1 -1
- package/dist/{layers.2ODaB2Pd.js → layers.qxHQ5s48.js} +1 -1
- package/dist/{layers.B8i9d7Qz.js → layers.qzkyQd0J.js} +36 -30
- package/dist/{layers.BoabOlrX.js → layers.rB_UamkL.js} +1 -1
- package/dist/{layers.DElpVOY-.js → layers.vK-UofJJ.js} +1 -1
- package/dist/{layers.C5rttXXy.js → layers.vfmwTFt7.js} +4 -4
- package/dist/{layers.DXaSAlDN.js → layers.vrKjaGL3.js} +1 -1
- package/dist/{layers.Ci0QS82_.js → layers.wXI8z3zK.js} +1 -1
- package/dist/{layers.CGc04km7.js → layers.z_R2M9xA.js} +1 -1
- package/dist/{layers.DGZUGztZ.js → layers.zleGKGQR.js} +29 -29
- package/dist/{layers.CSjWzlk9.js → layers.zx6fFkwC.js} +1 -1
- package/package.json +1 -4
- package/dist/layers.BK01wvsE.js +0 -10
- package/dist/layers.BQLZhz6B.js +0 -6
- package/dist/layers.BUsBCyiL.js +0 -202
- package/dist/layers.BkjjkAwW.js +0 -2
- package/dist/layers.BwfB_nzW.js +0 -8
- package/dist/layers.CQXDzk5h.js +0 -1
- package/dist/layers.CeVpKhli.js +0 -122
- package/dist/layers.DTDpNGfk.js +0 -1
- package/dist/layers.Dk9dbz6F.js +0 -118
- package/dist/layers.DtoCH9Nn.js +0 -1
- package/dist/layers.DzaH7mDC.js +0 -65
- package/dist/layers.Tatx7z0m.js +0 -55
- package/dist/layers.h0tSRttU.js +0 -1
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ab as Me, ac as Ye, ad as We, ae as _e, af as Ee, ag as
|
|
2
|
-
import { i as
|
|
1
|
+
import { ab as Me, ac as Ye, ad as We, ae as _e, af as Ee, ag as ge, ah as Ue, ai as Ve, aj as we, ak as ne, al as ve, am as Q, an as Ge, ao as Xe, ap as He, aq as qe, ar as Ze, as as Je, at as Qe, W as ae, aa as $e, d as q, e as et, l as x, q as tt, j as st, g as De, _ as rt } from "./layers.B-eOoyQV.js";
|
|
2
|
+
import { i as it, c as nt, b as at, d as ot, a as Te, p as lt } from "./layers.BWBqFzL5.js";
|
|
3
3
|
import { G as ct } from "./layers.C7lIplJU.js";
|
|
4
|
-
import "./layers.
|
|
5
|
-
import { c as ut } from "./layers.
|
|
6
|
-
import { o as
|
|
7
|
-
import { s as
|
|
8
|
-
function ht(e,
|
|
9
|
-
for (var
|
|
4
|
+
import "./layers.DAkVONDW.js";
|
|
5
|
+
import { c as ut } from "./layers.B1tTFwlU.js";
|
|
6
|
+
import { o as gt } from "./layers.b0h5ZBmD.js";
|
|
7
|
+
import { s as dt } from "./layers.D7jGxypv.js";
|
|
8
|
+
function ht(e, r) {
|
|
9
|
+
for (var o = -1, c = e == null ? 0 : e.length; ++o < c && r(e[o], o, e) !== !1; )
|
|
10
10
|
;
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ne(e) {
|
|
14
14
|
return We(e) ? Me(e) : Ye(e);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return e && _e(
|
|
16
|
+
function pt(e, r) {
|
|
17
|
+
return e && _e(r, Ne(r), e);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
for (var
|
|
21
|
-
var
|
|
22
|
-
|
|
19
|
+
function ft(e, r) {
|
|
20
|
+
for (var o = -1, c = e == null ? 0 : e.length, i = 0, d = []; ++o < c; ) {
|
|
21
|
+
var l = e[o];
|
|
22
|
+
r(l, o, e) && (d[i++] = l);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return d;
|
|
25
25
|
}
|
|
26
26
|
function bt() {
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
|
-
var St = Object.prototype, xt = St.propertyIsEnumerable,
|
|
30
|
-
return e == null ? [] : (e = Object(e),
|
|
31
|
-
return xt.call(e,
|
|
29
|
+
var St = Object.prototype, xt = St.propertyIsEnumerable, de = Object.getOwnPropertySymbols, ke = de ? function(e) {
|
|
30
|
+
return e == null ? [] : (e = Object(e), ft(de(e), function(r) {
|
|
31
|
+
return xt.call(e, r);
|
|
32
32
|
}));
|
|
33
33
|
} : bt;
|
|
34
|
-
function Lt(e,
|
|
35
|
-
return _e(e,
|
|
34
|
+
function Lt(e, r) {
|
|
35
|
+
return _e(e, ke(e), r);
|
|
36
36
|
}
|
|
37
|
-
function yt(e,
|
|
38
|
-
for (var
|
|
39
|
-
e[
|
|
37
|
+
function yt(e, r) {
|
|
38
|
+
for (var o = -1, c = r.length, i = e.length; ++o < c; )
|
|
39
|
+
e[i + o] = r[o];
|
|
40
40
|
return e;
|
|
41
41
|
}
|
|
42
|
-
function mt(e,
|
|
43
|
-
var c =
|
|
44
|
-
return Ee(e) ? c : yt(c,
|
|
42
|
+
function mt(e, r, o) {
|
|
43
|
+
var c = r(e);
|
|
44
|
+
return Ee(e) ? c : yt(c, o(e));
|
|
45
45
|
}
|
|
46
46
|
function _t(e) {
|
|
47
|
-
return mt(e,
|
|
47
|
+
return mt(e, Ne, ke);
|
|
48
48
|
}
|
|
49
49
|
var Et = Object.prototype, wt = Et.hasOwnProperty;
|
|
50
|
-
function
|
|
51
|
-
var
|
|
52
|
-
return
|
|
50
|
+
function vt(e) {
|
|
51
|
+
var r = e.length, o = new e.constructor(r);
|
|
52
|
+
return r && typeof e[0] == "string" && wt.call(e, "index") && (o.index = e.index, o.input = e.input), o;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
var
|
|
56
|
-
return new e.constructor(
|
|
54
|
+
function Dt(e, r) {
|
|
55
|
+
var o = e.buffer;
|
|
56
|
+
return new e.constructor(o, e.byteOffset, e.byteLength);
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
var
|
|
61
|
-
return
|
|
58
|
+
var Tt = /\w*$/;
|
|
59
|
+
function Nt(e) {
|
|
60
|
+
var r = new e.constructor(e.source, Tt.exec(e));
|
|
61
|
+
return r.lastIndex = e.lastIndex, r;
|
|
62
62
|
}
|
|
63
|
-
var he =
|
|
64
|
-
function
|
|
65
|
-
return
|
|
63
|
+
var he = ge ? ge.prototype : void 0, pe = he ? he.valueOf : void 0;
|
|
64
|
+
function kt(e) {
|
|
65
|
+
return pe ? Object(pe.call(e)) : {};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function qt(e,
|
|
67
|
+
var Ot = "[object Boolean]", It = "[object Date]", At = "[object Map]", Ct = "[object Number]", zt = "[object RegExp]", Rt = "[object Set]", Bt = "[object String]", jt = "[object Symbol]", Ft = "[object ArrayBuffer]", Pt = "[object DataView]", Kt = "[object Float32Array]", Mt = "[object Float64Array]", Yt = "[object Int8Array]", Wt = "[object Int16Array]", Ut = "[object Int32Array]", Vt = "[object Uint8Array]", Gt = "[object Uint8ClampedArray]", Xt = "[object Uint16Array]", Ht = "[object Uint32Array]";
|
|
68
|
+
function qt(e, r, o) {
|
|
69
69
|
var c = e.constructor;
|
|
70
|
-
switch (
|
|
70
|
+
switch (r) {
|
|
71
71
|
case Ft:
|
|
72
72
|
return Ve(e);
|
|
73
|
+
case Ot:
|
|
73
74
|
case It:
|
|
74
|
-
case At:
|
|
75
75
|
return new c(+e);
|
|
76
76
|
case Pt:
|
|
77
|
-
return
|
|
77
|
+
return Dt(e);
|
|
78
78
|
case Kt:
|
|
79
79
|
case Mt:
|
|
80
80
|
case Yt:
|
|
@@ -84,163 +84,163 @@ function qt(e, s, l) {
|
|
|
84
84
|
case Gt:
|
|
85
85
|
case Xt:
|
|
86
86
|
case Ht:
|
|
87
|
-
return Ue(e,
|
|
88
|
-
case
|
|
87
|
+
return Ue(e, o);
|
|
88
|
+
case At:
|
|
89
89
|
return new c();
|
|
90
|
-
case
|
|
90
|
+
case Ct:
|
|
91
91
|
case Bt:
|
|
92
92
|
return new c(e);
|
|
93
|
-
case
|
|
94
|
-
return
|
|
93
|
+
case zt:
|
|
94
|
+
return Nt(e);
|
|
95
95
|
case Rt:
|
|
96
96
|
return new c();
|
|
97
97
|
case jt:
|
|
98
|
-
return
|
|
98
|
+
return kt(e);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
var Zt = "[object Map]";
|
|
102
102
|
function Jt(e) {
|
|
103
|
-
return we(e) &&
|
|
103
|
+
return we(e) && ne(e) == Zt;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
106
|
-
function
|
|
107
|
-
return we(e) &&
|
|
105
|
+
var fe = Q && Q.isMap, Qt = fe ? ve(fe) : Jt, $t = "[object Set]";
|
|
106
|
+
function es(e) {
|
|
107
|
+
return we(e) && ne(e) == $t;
|
|
108
108
|
}
|
|
109
|
-
var be = Q && Q.isSet,
|
|
110
|
-
y[
|
|
111
|
-
y[
|
|
112
|
-
function J(e,
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
115
|
-
return
|
|
109
|
+
var be = Q && Q.isSet, ts = be ? ve(be) : es, ss = 1, Oe = "[object Arguments]", rs = "[object Array]", is = "[object Boolean]", ns = "[object Date]", as = "[object Error]", Ie = "[object Function]", os = "[object GeneratorFunction]", ls = "[object Map]", cs = "[object Number]", Ae = "[object Object]", us = "[object RegExp]", gs = "[object Set]", ds = "[object String]", hs = "[object Symbol]", ps = "[object WeakMap]", fs = "[object ArrayBuffer]", bs = "[object DataView]", Ss = "[object Float32Array]", xs = "[object Float64Array]", Ls = "[object Int8Array]", ys = "[object Int16Array]", ms = "[object Int32Array]", _s = "[object Uint8Array]", Es = "[object Uint8ClampedArray]", ws = "[object Uint16Array]", vs = "[object Uint32Array]", y = {};
|
|
110
|
+
y[Oe] = y[rs] = y[fs] = y[bs] = y[is] = y[ns] = y[Ss] = y[xs] = y[Ls] = y[ys] = y[ms] = y[ls] = y[cs] = y[Ae] = y[us] = y[gs] = y[ds] = y[hs] = y[_s] = y[Es] = y[ws] = y[vs] = !0;
|
|
111
|
+
y[as] = y[Ie] = y[ps] = !1;
|
|
112
|
+
function J(e, r, o, c, i, d) {
|
|
113
|
+
var l, f = r & ss;
|
|
114
|
+
if (l !== void 0)
|
|
115
|
+
return l;
|
|
116
116
|
if (!Ge(e))
|
|
117
117
|
return e;
|
|
118
118
|
var b = Ee(e);
|
|
119
119
|
if (b)
|
|
120
|
-
return
|
|
121
|
-
var
|
|
120
|
+
return l = vt(e), Xe(e, l);
|
|
121
|
+
var p = ne(e), S = p == Ie || p == os;
|
|
122
122
|
if (He(e))
|
|
123
|
-
return qe(e,
|
|
124
|
-
if (
|
|
125
|
-
return
|
|
126
|
-
if (!y[
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
var w =
|
|
123
|
+
return qe(e, f);
|
|
124
|
+
if (p == Ae || p == Oe || S && !i)
|
|
125
|
+
return l = S ? {} : Ze(e), Lt(e, pt(l, e));
|
|
126
|
+
if (!y[p])
|
|
127
|
+
return i ? e : {};
|
|
128
|
+
l = qt(e, p, f), d || (d = new Je());
|
|
129
|
+
var w = d.get(e);
|
|
130
130
|
if (w)
|
|
131
131
|
return w;
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
d.set(e, l), ts(e) ? e.forEach(function(_) {
|
|
133
|
+
l.add(J(_, r, o, _, e, d));
|
|
134
134
|
}) : Qt(e) && e.forEach(function(_, L) {
|
|
135
|
-
|
|
135
|
+
l.set(L, J(_, r, o, L, e, d));
|
|
136
136
|
});
|
|
137
|
-
var
|
|
138
|
-
return ht(
|
|
139
|
-
|
|
140
|
-
}),
|
|
137
|
+
var O = _t, D = b ? void 0 : O(e);
|
|
138
|
+
return ht(D || e, function(_, L) {
|
|
139
|
+
D && (L = _, _ = e[L]), Qe(l, L, J(_, r, o, L, e, d));
|
|
140
|
+
}), l;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
143
|
-
function
|
|
144
|
-
return J(e,
|
|
142
|
+
var Ds = 4;
|
|
143
|
+
function Ts(e) {
|
|
144
|
+
return J(e, Ds);
|
|
145
145
|
}
|
|
146
|
-
var Se, xe,
|
|
147
|
-
var e = function(
|
|
148
|
-
for (
|
|
146
|
+
var Se, xe, re = function() {
|
|
147
|
+
var e = function(N, u, s, n) {
|
|
148
|
+
for (s = s || {}, n = N.length; n--; s[N[n]] = u)
|
|
149
149
|
;
|
|
150
|
-
return
|
|
151
|
-
},
|
|
150
|
+
return s;
|
|
151
|
+
}, r = [1, 7], o = [1, 13], c = [1, 14], i = [1, 15], d = [1, 19], l = [1, 16], f = [1, 17], b = [1, 18], p = [8, 30], S = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], w = [1, 23], O = [1, 24], D = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], _ = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], L = [1, 49], m = {
|
|
152
152
|
trace: function() {
|
|
153
153
|
},
|
|
154
154
|
yy: {},
|
|
155
155
|
symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
|
|
156
156
|
terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
|
|
157
157
|
productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
|
|
158
|
-
performAction: function(u,
|
|
158
|
+
performAction: function(u, s, n, g, h, t, E) {
|
|
159
159
|
var a = t.length - 1;
|
|
160
160
|
switch (h) {
|
|
161
161
|
case 4:
|
|
162
|
-
|
|
162
|
+
g.getLogger().debug("Rule: separator (NL) ");
|
|
163
163
|
break;
|
|
164
164
|
case 5:
|
|
165
|
-
|
|
165
|
+
g.getLogger().debug("Rule: separator (Space) ");
|
|
166
166
|
break;
|
|
167
167
|
case 6:
|
|
168
|
-
|
|
168
|
+
g.getLogger().debug("Rule: separator (EOF) ");
|
|
169
169
|
break;
|
|
170
170
|
case 7:
|
|
171
|
-
|
|
171
|
+
g.getLogger().debug("Rule: hierarchy: ", t[a - 1]), g.setHierarchy(t[a - 1]);
|
|
172
172
|
break;
|
|
173
173
|
case 8:
|
|
174
|
-
|
|
174
|
+
g.getLogger().debug("Stop NL ");
|
|
175
175
|
break;
|
|
176
176
|
case 9:
|
|
177
|
-
|
|
177
|
+
g.getLogger().debug("Stop EOF ");
|
|
178
178
|
break;
|
|
179
179
|
case 10:
|
|
180
|
-
|
|
180
|
+
g.getLogger().debug("Stop NL2 ");
|
|
181
181
|
break;
|
|
182
182
|
case 11:
|
|
183
|
-
|
|
183
|
+
g.getLogger().debug("Stop EOF2 ");
|
|
184
184
|
break;
|
|
185
185
|
case 12:
|
|
186
|
-
|
|
186
|
+
g.getLogger().debug("Rule: statement: ", t[a]), typeof t[a].length == "number" ? this.$ = t[a] : this.$ = [t[a]];
|
|
187
187
|
break;
|
|
188
188
|
case 13:
|
|
189
|
-
|
|
189
|
+
g.getLogger().debug("Rule: statement #2: ", t[a - 1]), this.$ = [t[a - 1]].concat(t[a]);
|
|
190
190
|
break;
|
|
191
191
|
case 14:
|
|
192
|
-
|
|
192
|
+
g.getLogger().debug("Rule: link: ", t[a], u), this.$ = { edgeTypeStr: t[a], label: "" };
|
|
193
193
|
break;
|
|
194
194
|
case 15:
|
|
195
|
-
|
|
195
|
+
g.getLogger().debug("Rule: LABEL link: ", t[a - 3], t[a - 1], t[a]), this.$ = { edgeTypeStr: t[a], label: t[a - 1] };
|
|
196
196
|
break;
|
|
197
197
|
case 18:
|
|
198
|
-
const B = parseInt(t[a]), Y =
|
|
198
|
+
const B = parseInt(t[a]), Y = g.generateId();
|
|
199
199
|
this.$ = { id: Y, type: "space", label: "", width: B, children: [] };
|
|
200
200
|
break;
|
|
201
201
|
case 23:
|
|
202
|
-
|
|
203
|
-
const P =
|
|
202
|
+
g.getLogger().debug("Rule: (nodeStatement link node) ", t[a - 2], t[a - 1], t[a], " typestr: ", t[a - 1].edgeTypeStr);
|
|
203
|
+
const P = g.edgeStrToEdgeData(t[a - 1].edgeTypeStr);
|
|
204
204
|
this.$ = [
|
|
205
205
|
{ id: t[a - 2].id, label: t[a - 2].label, type: t[a - 2].type, directions: t[a - 2].directions },
|
|
206
206
|
{ id: t[a - 2].id + "-" + t[a].id, start: t[a - 2].id, end: t[a].id, label: t[a - 1].label, type: "edge", directions: t[a].directions, arrowTypeEnd: P, arrowTypeStart: "arrow_open" },
|
|
207
|
-
{ id: t[a].id, label: t[a].label, type:
|
|
207
|
+
{ id: t[a].id, label: t[a].label, type: g.typeStr2Type(t[a].typeStr), directions: t[a].directions }
|
|
208
208
|
];
|
|
209
209
|
break;
|
|
210
210
|
case 24:
|
|
211
|
-
|
|
211
|
+
g.getLogger().debug("Rule: nodeStatement (abc88 node size) ", t[a - 1], t[a]), this.$ = { id: t[a - 1].id, label: t[a - 1].label, type: g.typeStr2Type(t[a - 1].typeStr), directions: t[a - 1].directions, widthInColumns: parseInt(t[a], 10) };
|
|
212
212
|
break;
|
|
213
213
|
case 25:
|
|
214
|
-
|
|
214
|
+
g.getLogger().debug("Rule: nodeStatement (node) ", t[a]), this.$ = { id: t[a].id, label: t[a].label, type: g.typeStr2Type(t[a].typeStr), directions: t[a].directions, widthInColumns: 1 };
|
|
215
215
|
break;
|
|
216
216
|
case 26:
|
|
217
|
-
|
|
217
|
+
g.getLogger().debug("APA123", this ? this : "na"), g.getLogger().debug("COLUMNS: ", t[a]), this.$ = { type: "column-setting", columns: t[a] === "auto" ? -1 : parseInt(t[a]) };
|
|
218
218
|
break;
|
|
219
219
|
case 27:
|
|
220
|
-
|
|
220
|
+
g.getLogger().debug("Rule: id-block statement : ", t[a - 2], t[a - 1]), g.generateId(), this.$ = { ...t[a - 2], type: "composite", children: t[a - 1] };
|
|
221
221
|
break;
|
|
222
222
|
case 28:
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
this.$ = { id:
|
|
223
|
+
g.getLogger().debug("Rule: blockStatement : ", t[a - 2], t[a - 1], t[a]);
|
|
224
|
+
const z = g.generateId();
|
|
225
|
+
this.$ = { id: z, type: "composite", label: "", children: t[a - 1] };
|
|
226
226
|
break;
|
|
227
227
|
case 29:
|
|
228
|
-
|
|
228
|
+
g.getLogger().debug("Rule: node (NODE_ID separator): ", t[a]), this.$ = { id: t[a] };
|
|
229
229
|
break;
|
|
230
230
|
case 30:
|
|
231
|
-
|
|
231
|
+
g.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[a - 1], t[a]), this.$ = { id: t[a - 1], label: t[a].label, typeStr: t[a].typeStr, directions: t[a].directions };
|
|
232
232
|
break;
|
|
233
233
|
case 31:
|
|
234
|
-
|
|
234
|
+
g.getLogger().debug("Rule: dirList: ", t[a]), this.$ = [t[a]];
|
|
235
235
|
break;
|
|
236
236
|
case 32:
|
|
237
|
-
|
|
237
|
+
g.getLogger().debug("Rule: dirList: ", t[a - 1], t[a]), this.$ = [t[a - 1]].concat(t[a]);
|
|
238
238
|
break;
|
|
239
239
|
case 33:
|
|
240
|
-
|
|
240
|
+
g.getLogger().debug("Rule: nodeShapeNLabel: ", t[a - 2], t[a - 1], t[a]), this.$ = { typeStr: t[a - 2] + t[a], label: t[a - 1] };
|
|
241
241
|
break;
|
|
242
242
|
case 34:
|
|
243
|
-
|
|
243
|
+
g.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", t[a - 3], t[a - 2], " #3:", t[a - 1], t[a]), this.$ = { typeStr: t[a - 3] + t[a], label: t[a - 2], directions: t[a - 1] };
|
|
244
244
|
break;
|
|
245
245
|
case 35:
|
|
246
246
|
case 36:
|
|
@@ -254,53 +254,53 @@ var Se, xe, se = function() {
|
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21:
|
|
257
|
+
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: r, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: o, 29: c, 31: i, 32: d, 40: l, 44: f, 47: b }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: r, 28: o, 29: c, 31: i, 32: d, 40: l, 44: f, 47: b }), e(S, [2, 16], { 14: 22, 15: w, 16: O }), e(S, [2, 17]), e(S, [2, 18]), e(S, [2, 19]), e(S, [2, 20]), e(S, [2, 21]), e(S, [2, 22]), e(D, [2, 25], { 27: [1, 25] }), e(S, [2, 26]), { 19: 26, 26: 12, 32: d }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: r, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: o, 29: c, 31: i, 32: d, 40: l, 44: f, 47: b }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(_, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(p, [2, 13]), { 26: 35, 32: d }, { 32: [2, 14] }, { 17: [1, 36] }, e(D, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: w, 16: O, 19: 5, 20: 6, 21: r, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: o, 29: c, 31: i, 32: d, 40: l, 44: f, 47: b }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(_, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(D, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(S, [2, 28]), e(S, [2, 35]), e(S, [2, 36]), e(S, [2, 37]), e(S, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: L }, { 15: [1, 50] }, e(S, [2, 27]), e(_, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: L, 39: [2, 31] }, { 32: [2, 15] }, e(_, [2, 34]), { 39: [2, 32] }],
|
|
258
258
|
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
259
|
-
parseError: function(u,
|
|
260
|
-
if (
|
|
259
|
+
parseError: function(u, s) {
|
|
260
|
+
if (s.recoverable)
|
|
261
261
|
this.trace(u);
|
|
262
262
|
else {
|
|
263
|
-
var
|
|
264
|
-
throw
|
|
263
|
+
var n = new Error(u);
|
|
264
|
+
throw n.hash = s, n;
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
parse: function(u) {
|
|
268
|
-
var
|
|
268
|
+
var s = this, n = [0], g = [], h = [null], t = [], E = this.table, a = "", B = 0, Y = 0, P = 2, z = 1, Fe = t.slice.call(arguments, 1), T = Object.create(this.lexer), K = { yy: {} };
|
|
269
269
|
for (var $ in this.yy)
|
|
270
270
|
Object.prototype.hasOwnProperty.call(this.yy, $) && (K.yy[$] = this.yy[$]);
|
|
271
|
-
|
|
272
|
-
var ee =
|
|
271
|
+
T.setInput(u, K.yy), K.yy.lexer = T, K.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
|
|
272
|
+
var ee = T.yylloc;
|
|
273
273
|
t.push(ee);
|
|
274
|
-
var Pe =
|
|
274
|
+
var Pe = T.options && T.options.ranges;
|
|
275
275
|
typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
276
276
|
function Ke() {
|
|
277
277
|
var F;
|
|
278
|
-
return F =
|
|
278
|
+
return F = g.pop() || T.lex() || z, typeof F != "number" && (F instanceof Array && (g = F, F = g.pop()), F = s.symbols_[F] || F), F;
|
|
279
279
|
}
|
|
280
|
-
for (var
|
|
281
|
-
if (M =
|
|
282
|
-
var
|
|
280
|
+
for (var I, M, C, te, W = {}, X, j, ue, H; ; ) {
|
|
281
|
+
if (M = n[n.length - 1], this.defaultActions[M] ? C = this.defaultActions[M] : ((I === null || typeof I > "u") && (I = Ke()), C = E[M] && E[M][I]), typeof C > "u" || !C.length || !C[0]) {
|
|
282
|
+
var se = "";
|
|
283
283
|
H = [];
|
|
284
284
|
for (X in E[M])
|
|
285
285
|
this.terminals_[X] && X > P && H.push("'" + this.terminals_[X] + "'");
|
|
286
|
-
|
|
287
|
-
` +
|
|
288
|
-
Expecting ` + H.join(", ") + ", got '" + (this.terminals_[
|
|
289
|
-
text:
|
|
290
|
-
token: this.terminals_[
|
|
291
|
-
line:
|
|
286
|
+
T.showPosition ? se = "Parse error on line " + (B + 1) + `:
|
|
287
|
+
` + T.showPosition() + `
|
|
288
|
+
Expecting ` + H.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : se = "Parse error on line " + (B + 1) + ": Unexpected " + (I == z ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(se, {
|
|
289
|
+
text: T.match,
|
|
290
|
+
token: this.terminals_[I] || I,
|
|
291
|
+
line: T.yylineno,
|
|
292
292
|
loc: ee,
|
|
293
293
|
expected: H
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
if (
|
|
297
|
-
throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " +
|
|
298
|
-
switch (
|
|
296
|
+
if (C[0] instanceof Array && C.length > 1)
|
|
297
|
+
throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + I);
|
|
298
|
+
switch (C[0]) {
|
|
299
299
|
case 1:
|
|
300
|
-
|
|
300
|
+
n.push(I), h.push(T.yytext), t.push(T.yylloc), n.push(C[1]), I = null, Y = T.yyleng, a = T.yytext, B = T.yylineno, ee = T.yylloc;
|
|
301
301
|
break;
|
|
302
302
|
case 2:
|
|
303
|
-
if (j = this.productions_[
|
|
303
|
+
if (j = this.productions_[C[1]][1], W.$ = h[h.length - j], W._$ = {
|
|
304
304
|
first_line: t[t.length - (j || 1)].first_line,
|
|
305
305
|
last_line: t[t.length - 1].last_line,
|
|
306
306
|
first_column: t[t.length - (j || 1)].first_column,
|
|
@@ -313,12 +313,12 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
313
313
|
Y,
|
|
314
314
|
B,
|
|
315
315
|
K.yy,
|
|
316
|
-
|
|
316
|
+
C[1],
|
|
317
317
|
h,
|
|
318
318
|
t
|
|
319
319
|
].concat(Fe)), typeof te < "u")
|
|
320
320
|
return te;
|
|
321
|
-
j && (
|
|
321
|
+
j && (n = n.slice(0, -1 * j * 2), h = h.slice(0, -1 * j), t = t.slice(0, -1 * j)), n.push(this.productions_[C[1]][0]), h.push(W.$), t.push(W._$), ue = E[n[n.length - 2]][n[n.length - 1]], n.push(ue);
|
|
322
322
|
break;
|
|
323
323
|
case 3:
|
|
324
324
|
return !0;
|
|
@@ -327,17 +327,17 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
327
327
|
return !0;
|
|
328
328
|
}
|
|
329
329
|
}, R = /* @__PURE__ */ function() {
|
|
330
|
-
var
|
|
330
|
+
var N = {
|
|
331
331
|
EOF: 1,
|
|
332
|
-
parseError: function(
|
|
332
|
+
parseError: function(s, n) {
|
|
333
333
|
if (this.yy.parser)
|
|
334
|
-
this.yy.parser.parseError(
|
|
334
|
+
this.yy.parser.parseError(s, n);
|
|
335
335
|
else
|
|
336
|
-
throw new Error(
|
|
336
|
+
throw new Error(s);
|
|
337
337
|
},
|
|
338
338
|
// resets the lexer, sets new input
|
|
339
|
-
setInput: function(u,
|
|
340
|
-
return this.yy =
|
|
339
|
+
setInput: function(u, s) {
|
|
340
|
+
return this.yy = s || this.yy || {}, this._input = u, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
341
341
|
first_line: 1,
|
|
342
342
|
first_column: 0,
|
|
343
343
|
last_line: 1,
|
|
@@ -348,22 +348,22 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
348
348
|
input: function() {
|
|
349
349
|
var u = this._input[0];
|
|
350
350
|
this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
|
|
351
|
-
var
|
|
352
|
-
return
|
|
351
|
+
var s = u.match(/(?:\r\n?|\n).*/g);
|
|
352
|
+
return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
|
|
353
353
|
},
|
|
354
354
|
// unshifts one char (or a string) into the input
|
|
355
355
|
unput: function(u) {
|
|
356
|
-
var
|
|
357
|
-
this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
358
|
-
var
|
|
359
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
356
|
+
var s = u.length, n = u.split(/(?:\r\n?|\n)/g);
|
|
357
|
+
this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
|
|
358
|
+
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
359
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
360
360
|
var h = this.yylloc.range;
|
|
361
361
|
return this.yylloc = {
|
|
362
362
|
first_line: this.yylloc.first_line,
|
|
363
363
|
last_line: this.yylineno + 1,
|
|
364
364
|
first_column: this.yylloc.first_column,
|
|
365
|
-
last_column:
|
|
366
|
-
}, this.options.ranges && (this.yylloc.range = [h[0], h[0] + this.yyleng -
|
|
365
|
+
last_column: n ? (n.length === g.length ? this.yylloc.first_column : 0) + g[g.length - n.length].length - n[0].length : this.yylloc.first_column - s
|
|
366
|
+
}, this.options.ranges && (this.yylloc.range = [h[0], h[0] + this.yyleng - s]), this.yyleng = this.yytext.length, this;
|
|
367
367
|
},
|
|
368
368
|
// When called from action, caches matched text and appends it on next action
|
|
369
369
|
more: function() {
|
|
@@ -398,13 +398,13 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
398
398
|
},
|
|
399
399
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
400
400
|
showPosition: function() {
|
|
401
|
-
var u = this.pastInput(),
|
|
401
|
+
var u = this.pastInput(), s = new Array(u.length + 1).join("-");
|
|
402
402
|
return u + this.upcomingInput() + `
|
|
403
|
-
` +
|
|
403
|
+
` + s + "^";
|
|
404
404
|
},
|
|
405
405
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
406
|
-
test_match: function(u,
|
|
407
|
-
var
|
|
406
|
+
test_match: function(u, s) {
|
|
407
|
+
var n, g, h;
|
|
408
408
|
if (this.options.backtrack_lexer && (h = {
|
|
409
409
|
yylineno: this.yylineno,
|
|
410
410
|
yylloc: {
|
|
@@ -424,13 +424,13 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
424
424
|
yy: this.yy,
|
|
425
425
|
conditionStack: this.conditionStack.slice(0),
|
|
426
426
|
done: this.done
|
|
427
|
-
}, this.options.ranges && (h.yylloc.range = this.yylloc.range.slice(0))),
|
|
427
|
+
}, this.options.ranges && (h.yylloc.range = this.yylloc.range.slice(0))), g = u[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
428
428
|
first_line: this.yylloc.last_line,
|
|
429
429
|
last_line: this.yylineno + 1,
|
|
430
430
|
first_column: this.yylloc.last_column,
|
|
431
|
-
last_column:
|
|
432
|
-
}, this.yytext += u[0], this.match += u[0], this.matches = u, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(u[0].length), this.matched += u[0],
|
|
433
|
-
return
|
|
431
|
+
last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
|
|
432
|
+
}, this.yytext += u[0], this.match += u[0], this.matches = u, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(u[0].length), this.matched += u[0], n = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
433
|
+
return n;
|
|
434
434
|
if (this._backtrack) {
|
|
435
435
|
for (var t in h)
|
|
436
436
|
this[t] = h[t];
|
|
@@ -443,22 +443,22 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
443
443
|
if (this.done)
|
|
444
444
|
return this.EOF;
|
|
445
445
|
this._input || (this.done = !0);
|
|
446
|
-
var u,
|
|
446
|
+
var u, s, n, g;
|
|
447
447
|
this._more || (this.yytext = "", this.match = "");
|
|
448
448
|
for (var h = this._currentRules(), t = 0; t < h.length; t++)
|
|
449
|
-
if (
|
|
450
|
-
if (
|
|
451
|
-
if (u = this.test_match(
|
|
449
|
+
if (n = this._input.match(this.rules[h[t]]), n && (!s || n[0].length > s[0].length)) {
|
|
450
|
+
if (s = n, g = t, this.options.backtrack_lexer) {
|
|
451
|
+
if (u = this.test_match(n, h[t]), u !== !1)
|
|
452
452
|
return u;
|
|
453
453
|
if (this._backtrack) {
|
|
454
|
-
|
|
454
|
+
s = !1;
|
|
455
455
|
continue;
|
|
456
456
|
} else
|
|
457
457
|
return !1;
|
|
458
458
|
} else if (!this.options.flex)
|
|
459
459
|
break;
|
|
460
460
|
}
|
|
461
|
-
return
|
|
461
|
+
return s ? (u = this.test_match(s, h[g]), u !== !1 ? u : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
462
462
|
` + this.showPosition(), {
|
|
463
463
|
text: "",
|
|
464
464
|
token: null,
|
|
@@ -467,57 +467,57 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
467
467
|
},
|
|
468
468
|
// return next match that has a token
|
|
469
469
|
lex: function() {
|
|
470
|
-
var
|
|
471
|
-
return
|
|
470
|
+
var s = this.next();
|
|
471
|
+
return s || this.lex();
|
|
472
472
|
},
|
|
473
473
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
474
|
-
begin: function(
|
|
475
|
-
this.conditionStack.push(
|
|
474
|
+
begin: function(s) {
|
|
475
|
+
this.conditionStack.push(s);
|
|
476
476
|
},
|
|
477
477
|
// pop the previously active lexer condition state off the condition stack
|
|
478
478
|
popState: function() {
|
|
479
|
-
var
|
|
480
|
-
return
|
|
479
|
+
var s = this.conditionStack.length - 1;
|
|
480
|
+
return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
481
481
|
},
|
|
482
482
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
483
483
|
_currentRules: function() {
|
|
484
484
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
485
485
|
},
|
|
486
486
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
487
|
-
topState: function(
|
|
488
|
-
return
|
|
487
|
+
topState: function(s) {
|
|
488
|
+
return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
|
|
489
489
|
},
|
|
490
490
|
// alias for begin(condition)
|
|
491
|
-
pushState: function(
|
|
492
|
-
this.begin(
|
|
491
|
+
pushState: function(s) {
|
|
492
|
+
this.begin(s);
|
|
493
493
|
},
|
|
494
494
|
// return the number of states currently on the stack
|
|
495
495
|
stateStackSize: function() {
|
|
496
496
|
return this.conditionStack.length;
|
|
497
497
|
},
|
|
498
498
|
options: {},
|
|
499
|
-
performAction: function(
|
|
500
|
-
switch (
|
|
499
|
+
performAction: function(s, n, g, h) {
|
|
500
|
+
switch (g) {
|
|
501
501
|
case 0:
|
|
502
502
|
return 10;
|
|
503
503
|
case 1:
|
|
504
|
-
return
|
|
504
|
+
return s.getLogger().debug("Found space-block"), 31;
|
|
505
505
|
case 2:
|
|
506
|
-
return
|
|
506
|
+
return s.getLogger().debug("Found nl-block"), 31;
|
|
507
507
|
case 3:
|
|
508
|
-
return
|
|
508
|
+
return s.getLogger().debug("Found space-block"), 29;
|
|
509
509
|
case 4:
|
|
510
|
-
|
|
510
|
+
s.getLogger().debug(".", n.yytext);
|
|
511
511
|
break;
|
|
512
512
|
case 5:
|
|
513
|
-
|
|
513
|
+
s.getLogger().debug("_", n.yytext);
|
|
514
514
|
break;
|
|
515
515
|
case 6:
|
|
516
516
|
return 5;
|
|
517
517
|
case 7:
|
|
518
|
-
return
|
|
518
|
+
return n.yytext = -1, 28;
|
|
519
519
|
case 8:
|
|
520
|
-
return
|
|
520
|
+
return n.yytext = n.yytext.replace(/columns\s+/, ""), s.getLogger().debug("COLUMNS (LEX)", n.yytext), 28;
|
|
521
521
|
case 9:
|
|
522
522
|
this.pushState("md_string");
|
|
523
523
|
break;
|
|
@@ -530,14 +530,14 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
530
530
|
this.pushState("string");
|
|
531
531
|
break;
|
|
532
532
|
case 13:
|
|
533
|
-
|
|
533
|
+
s.getLogger().debug("LEX: POPPING STR:", n.yytext), this.popState();
|
|
534
534
|
break;
|
|
535
535
|
case 14:
|
|
536
|
-
return
|
|
536
|
+
return s.getLogger().debug("LEX: STR end:", n.yytext), "STR";
|
|
537
537
|
case 15:
|
|
538
|
-
return
|
|
538
|
+
return n.yytext = n.yytext.replace(/space\:/, ""), s.getLogger().debug("SPACE NUM (LEX)", n.yytext), 21;
|
|
539
539
|
case 16:
|
|
540
|
-
return
|
|
540
|
+
return n.yytext = "1", s.getLogger().debug("COLUMNS (LEX)", n.yytext), 21;
|
|
541
541
|
case 17:
|
|
542
542
|
return 43;
|
|
543
543
|
case 18:
|
|
@@ -583,61 +583,61 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
583
583
|
case 37:
|
|
584
584
|
return 30;
|
|
585
585
|
case 38:
|
|
586
|
-
return this.popState(),
|
|
586
|
+
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
587
587
|
case 39:
|
|
588
|
-
return this.popState(),
|
|
588
|
+
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
589
589
|
case 40:
|
|
590
|
-
return this.popState(),
|
|
590
|
+
return this.popState(), s.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
591
591
|
case 41:
|
|
592
|
-
return this.popState(),
|
|
592
|
+
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
593
593
|
case 42:
|
|
594
|
-
return this.popState(),
|
|
594
|
+
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
595
595
|
case 43:
|
|
596
|
-
return this.popState(),
|
|
596
|
+
return this.popState(), s.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
597
597
|
case 44:
|
|
598
|
-
return this.popState(),
|
|
598
|
+
return this.popState(), s.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
599
599
|
case 45:
|
|
600
|
-
return this.popState(),
|
|
600
|
+
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
601
601
|
case 46:
|
|
602
|
-
return this.popState(),
|
|
602
|
+
return this.popState(), s.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
603
603
|
case 47:
|
|
604
|
-
return this.popState(),
|
|
604
|
+
return this.popState(), s.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
605
605
|
case 48:
|
|
606
|
-
return this.popState(),
|
|
606
|
+
return this.popState(), s.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
607
607
|
case 49:
|
|
608
|
-
return this.popState(),
|
|
608
|
+
return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
609
609
|
case 50:
|
|
610
|
-
return this.popState(),
|
|
610
|
+
return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
611
611
|
case 51:
|
|
612
|
-
return this.popState(),
|
|
612
|
+
return this.popState(), s.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
613
613
|
case 52:
|
|
614
|
-
return this.popState(),
|
|
614
|
+
return this.popState(), s.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
615
615
|
case 53:
|
|
616
|
-
return this.popState(),
|
|
616
|
+
return this.popState(), s.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
617
617
|
case 54:
|
|
618
|
-
return this.popState(),
|
|
618
|
+
return this.popState(), s.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
619
619
|
case 55:
|
|
620
|
-
return
|
|
620
|
+
return s.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 36;
|
|
621
621
|
case 56:
|
|
622
|
-
return
|
|
622
|
+
return s.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 36;
|
|
623
623
|
case 57:
|
|
624
|
-
return
|
|
624
|
+
return s.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 36;
|
|
625
625
|
case 58:
|
|
626
|
-
return
|
|
626
|
+
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
627
627
|
case 59:
|
|
628
|
-
return
|
|
628
|
+
return s.getLogger().debug("Lex: ((("), this.pushState("NODE"), 36;
|
|
629
629
|
case 60:
|
|
630
|
-
return
|
|
630
|
+
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
631
631
|
case 61:
|
|
632
|
-
return
|
|
632
|
+
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
633
633
|
case 62:
|
|
634
|
-
return
|
|
634
|
+
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
635
635
|
case 63:
|
|
636
|
-
return
|
|
636
|
+
return s.getLogger().debug("Lexc: >"), this.pushState("NODE"), 36;
|
|
637
637
|
case 64:
|
|
638
|
-
return
|
|
638
|
+
return s.getLogger().debug("Lexa: (["), this.pushState("NODE"), 36;
|
|
639
639
|
case 65:
|
|
640
|
-
return
|
|
640
|
+
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
641
641
|
case 66:
|
|
642
642
|
return this.pushState("NODE"), 36;
|
|
643
643
|
case 67:
|
|
@@ -653,13 +653,13 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
653
653
|
case 72:
|
|
654
654
|
return this.pushState("NODE"), 36;
|
|
655
655
|
case 73:
|
|
656
|
-
return
|
|
656
|
+
return s.getLogger().debug("Lexa: ["), this.pushState("NODE"), 36;
|
|
657
657
|
case 74:
|
|
658
|
-
return this.pushState("BLOCK_ARROW"),
|
|
658
|
+
return this.pushState("BLOCK_ARROW"), s.getLogger().debug("LEX ARR START"), 38;
|
|
659
659
|
case 75:
|
|
660
|
-
return
|
|
660
|
+
return s.getLogger().debug("Lex: NODE_ID", n.yytext), 32;
|
|
661
661
|
case 76:
|
|
662
|
-
return
|
|
662
|
+
return s.getLogger().debug("Lex: EOF", n.yytext), 8;
|
|
663
663
|
case 77:
|
|
664
664
|
this.pushState("md_string");
|
|
665
665
|
break;
|
|
@@ -672,139 +672,139 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : ne =
|
|
|
672
672
|
this.popState();
|
|
673
673
|
break;
|
|
674
674
|
case 81:
|
|
675
|
-
|
|
675
|
+
s.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
676
676
|
break;
|
|
677
677
|
case 82:
|
|
678
|
-
|
|
678
|
+
s.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
679
679
|
break;
|
|
680
680
|
case 83:
|
|
681
|
-
return
|
|
681
|
+
return s.getLogger().debug("LEX: NODE_DESCR:", n.yytext), "NODE_DESCR";
|
|
682
682
|
case 84:
|
|
683
|
-
|
|
683
|
+
s.getLogger().debug("LEX POPPING"), this.popState();
|
|
684
684
|
break;
|
|
685
685
|
case 85:
|
|
686
|
-
|
|
686
|
+
s.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
687
687
|
break;
|
|
688
688
|
case 86:
|
|
689
|
-
return
|
|
689
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (right): dir:", n.yytext), "DIR";
|
|
690
690
|
case 87:
|
|
691
|
-
return
|
|
691
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (left):", n.yytext), "DIR";
|
|
692
692
|
case 88:
|
|
693
|
-
return
|
|
693
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (x):", n.yytext), "DIR";
|
|
694
694
|
case 89:
|
|
695
|
-
return
|
|
695
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (y):", n.yytext), "DIR";
|
|
696
696
|
case 90:
|
|
697
|
-
return
|
|
697
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (up):", n.yytext), "DIR";
|
|
698
698
|
case 91:
|
|
699
|
-
return
|
|
699
|
+
return n.yytext = n.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (down):", n.yytext), "DIR";
|
|
700
700
|
case 92:
|
|
701
|
-
return
|
|
701
|
+
return n.yytext = "]>", s.getLogger().debug("Lex (ARROW_DIR end):", n.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
702
702
|
case 93:
|
|
703
|
-
return
|
|
703
|
+
return s.getLogger().debug("Lex: LINK", "#" + n.yytext + "#"), 15;
|
|
704
704
|
case 94:
|
|
705
|
-
return
|
|
705
|
+
return s.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
706
706
|
case 95:
|
|
707
|
-
return
|
|
707
|
+
return s.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
708
708
|
case 96:
|
|
709
|
-
return
|
|
709
|
+
return s.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
710
710
|
case 97:
|
|
711
|
-
return
|
|
711
|
+
return s.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
712
712
|
case 98:
|
|
713
|
-
return
|
|
713
|
+
return s.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
714
714
|
case 99:
|
|
715
|
-
return
|
|
715
|
+
return s.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
716
716
|
case 100:
|
|
717
717
|
this.pushState("md_string");
|
|
718
718
|
break;
|
|
719
719
|
case 101:
|
|
720
|
-
return
|
|
720
|
+
return s.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
721
721
|
case 102:
|
|
722
|
-
return this.popState(),
|
|
722
|
+
return this.popState(), s.getLogger().debug("Lex: LINK", "#" + n.yytext + "#"), 15;
|
|
723
723
|
case 103:
|
|
724
|
-
return this.popState(),
|
|
724
|
+
return this.popState(), s.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
725
725
|
case 104:
|
|
726
|
-
return this.popState(),
|
|
726
|
+
return this.popState(), s.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
727
727
|
case 105:
|
|
728
|
-
return
|
|
728
|
+
return s.getLogger().debug("Lex: COLON", n.yytext), n.yytext = n.yytext.slice(1), 27;
|
|
729
729
|
}
|
|
730
730
|
},
|
|
731
731
|
rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
|
|
732
732
|
conditions: { STYLE_DEFINITION: { rules: [29], inclusive: !1 }, STYLE_STMNT: { rules: [28], inclusive: !1 }, CLASSDEFID: { rules: [23], inclusive: !1 }, CLASSDEF: { rules: [21, 22], inclusive: !1 }, CLASS_STYLE: { rules: [26], inclusive: !1 }, CLASS: { rules: [25], inclusive: !1 }, LLABEL: { rules: [100, 101, 102, 103, 104], inclusive: !1 }, ARROW_DIR: { rules: [86, 87, 88, 89, 90, 91, 92], inclusive: !1 }, BLOCK_ARROW: { rules: [77, 82, 85], inclusive: !1 }, NODE: { rules: [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], inclusive: !1 }, md_string: { rules: [10, 11, 79, 80], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [13, 14, 83, 84], inclusive: !1 }, acc_descr_multiline: { rules: [35, 36], inclusive: !1 }, acc_descr: { rules: [33], inclusive: !1 }, acc_title: { rules: [31], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], inclusive: !0 } }
|
|
733
733
|
};
|
|
734
|
-
return
|
|
734
|
+
return N;
|
|
735
735
|
}();
|
|
736
736
|
m.lexer = R;
|
|
737
|
-
function
|
|
737
|
+
function k() {
|
|
738
738
|
this.yy = {};
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return k.prototype = m, m.Parser = k, new k();
|
|
741
741
|
}();
|
|
742
|
-
|
|
743
|
-
const
|
|
744
|
-
let
|
|
745
|
-
const Le = "color", ye = "fill",
|
|
742
|
+
re.parser = re;
|
|
743
|
+
const Ns = re;
|
|
744
|
+
let A = {}, oe = [], U = {};
|
|
745
|
+
const Le = "color", ye = "fill", ks = "bgFill", Ce = ",", Os = De();
|
|
746
746
|
let V = {};
|
|
747
|
-
const
|
|
747
|
+
const Is = (e) => st.sanitizeText(e, Os), As = function(e, r = "") {
|
|
748
748
|
V[e] === void 0 && (V[e] = { id: e, styles: [], textStyles: [] });
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
const
|
|
749
|
+
const o = V[e];
|
|
750
|
+
r != null && r.split(Ce).forEach((c) => {
|
|
751
|
+
const i = c.replace(/([^;]*);/, "$1").trim();
|
|
752
752
|
if (c.match(Le)) {
|
|
753
|
-
const
|
|
754
|
-
|
|
753
|
+
const l = i.replace(ye, ks).replace(Le, ye);
|
|
754
|
+
o.textStyles.push(l);
|
|
755
755
|
}
|
|
756
|
-
|
|
756
|
+
o.styles.push(i);
|
|
757
757
|
});
|
|
758
|
-
},
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
e.split(",").forEach(function(
|
|
763
|
-
let c =
|
|
758
|
+
}, Cs = function(e, r = "") {
|
|
759
|
+
const o = A[e];
|
|
760
|
+
r != null && (o.styles = r.split(Ce));
|
|
761
|
+
}, zs = function(e, r) {
|
|
762
|
+
e.split(",").forEach(function(o) {
|
|
763
|
+
let c = A[o];
|
|
764
764
|
if (c === void 0) {
|
|
765
|
-
const
|
|
766
|
-
|
|
765
|
+
const i = o.trim();
|
|
766
|
+
A[i] = { id: i, type: "na", children: [] }, c = A[i];
|
|
767
767
|
}
|
|
768
|
-
c.classes || (c.classes = []), c.classes.push(
|
|
768
|
+
c.classes || (c.classes = []), c.classes.push(r);
|
|
769
769
|
});
|
|
770
|
-
},
|
|
771
|
-
const
|
|
772
|
-
for (const
|
|
773
|
-
if (
|
|
774
|
-
|
|
770
|
+
}, ze = (e, r) => {
|
|
771
|
+
const o = e.flat(), c = [];
|
|
772
|
+
for (const i of o) {
|
|
773
|
+
if (i.label && (i.label = Is(i.label)), i.type === "classDef") {
|
|
774
|
+
As(i.id, i.css);
|
|
775
775
|
continue;
|
|
776
776
|
}
|
|
777
|
-
if (
|
|
778
|
-
|
|
777
|
+
if (i.type === "applyClass") {
|
|
778
|
+
zs(i.id, (i == null ? void 0 : i.styleClass) || "");
|
|
779
779
|
continue;
|
|
780
780
|
}
|
|
781
|
-
if (
|
|
782
|
-
|
|
781
|
+
if (i.type === "applyStyles") {
|
|
782
|
+
i != null && i.stylesStr && Cs(i.id, i == null ? void 0 : i.stylesStr);
|
|
783
783
|
continue;
|
|
784
784
|
}
|
|
785
|
-
if (
|
|
786
|
-
|
|
787
|
-
else if (
|
|
788
|
-
U[
|
|
785
|
+
if (i.type === "column-setting")
|
|
786
|
+
r.columns = i.columns || -1;
|
|
787
|
+
else if (i.type === "edge")
|
|
788
|
+
U[i.id] ? U[i.id]++ : U[i.id] = 1, i.id = U[i.id] + "-" + i.id, oe.push(i);
|
|
789
789
|
else {
|
|
790
|
-
|
|
791
|
-
const
|
|
792
|
-
if (
|
|
793
|
-
const
|
|
794
|
-
for (let
|
|
795
|
-
const b =
|
|
796
|
-
b.id = b.id + "-" +
|
|
790
|
+
i.label || (i.type === "composite" ? i.label = "" : i.label = i.id);
|
|
791
|
+
const d = !A[i.id];
|
|
792
|
+
if (d ? A[i.id] = i : (i.type !== "na" && (A[i.id].type = i.type), i.label !== i.id && (A[i.id].label = i.label)), i.children && ze(i.children, i), i.type === "space") {
|
|
793
|
+
const l = i.width || 1;
|
|
794
|
+
for (let f = 0; f < l; f++) {
|
|
795
|
+
const b = Ts(i);
|
|
796
|
+
b.id = b.id + "-" + f, A[b.id] = b, c.push(b);
|
|
797
797
|
}
|
|
798
|
-
} else
|
|
798
|
+
} else d && c.push(i);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
|
|
801
|
+
r.children = c;
|
|
802
802
|
};
|
|
803
|
-
let
|
|
804
|
-
const
|
|
805
|
-
x.debug("Clear called"), tt(), G = { id: "root", type: "composite", children: [], columns: -1 },
|
|
803
|
+
let le = [], G = { id: "root", type: "composite", children: [], columns: -1 };
|
|
804
|
+
const Rs = () => {
|
|
805
|
+
x.debug("Clear called"), tt(), G = { id: "root", type: "composite", children: [], columns: -1 }, A = { root: G }, le = [], V = {}, oe = [], U = {};
|
|
806
806
|
};
|
|
807
|
-
function
|
|
807
|
+
function Bs(e) {
|
|
808
808
|
switch (x.debug("typeStr2Type", e), e) {
|
|
809
809
|
case "[]":
|
|
810
810
|
return "square";
|
|
@@ -840,7 +840,7 @@ function jn(e) {
|
|
|
840
840
|
return "na";
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function js(e) {
|
|
844
844
|
switch (x.debug("typeStr2Type", e), e) {
|
|
845
845
|
case "==":
|
|
846
846
|
return "thick";
|
|
@@ -848,7 +848,7 @@ function Fn(e) {
|
|
|
848
848
|
return "normal";
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Fs(e) {
|
|
852
852
|
switch (e.trim()) {
|
|
853
853
|
case "--x":
|
|
854
854
|
return "arrow_cross";
|
|
@@ -859,35 +859,35 @@ function Pn(e) {
|
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
let me = 0;
|
|
862
|
-
const
|
|
863
|
-
G.children = e,
|
|
864
|
-
},
|
|
865
|
-
const
|
|
866
|
-
return
|
|
867
|
-
},
|
|
868
|
-
|
|
869
|
-
},
|
|
862
|
+
const Ps = () => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + me), Ks = (e) => {
|
|
863
|
+
G.children = e, ze(e, G), le = G.children;
|
|
864
|
+
}, Ms = (e) => {
|
|
865
|
+
const r = A[e];
|
|
866
|
+
return r ? r.columns ? r.columns : r.children ? r.children.length : -1 : -1;
|
|
867
|
+
}, Ys = () => [...Object.values(A)], Ws = () => le || [], Us = () => oe, Vs = (e) => A[e], Gs = (e) => {
|
|
868
|
+
A[e.id] = e;
|
|
869
|
+
}, Xs = () => console, Hs = function() {
|
|
870
870
|
return V;
|
|
871
|
-
},
|
|
871
|
+
}, qs = {
|
|
872
872
|
getConfig: () => ae().block,
|
|
873
|
-
typeStr2Type:
|
|
874
|
-
edgeTypeStr2Type:
|
|
875
|
-
edgeStrToEdgeData:
|
|
876
|
-
getLogger:
|
|
877
|
-
getBlocksFlat:
|
|
878
|
-
getBlocks:
|
|
879
|
-
getEdges:
|
|
880
|
-
setHierarchy:
|
|
881
|
-
getBlock:
|
|
882
|
-
setBlock:
|
|
883
|
-
getColumns:
|
|
884
|
-
getClasses:
|
|
885
|
-
clear:
|
|
886
|
-
generateId:
|
|
887
|
-
},
|
|
888
|
-
const
|
|
889
|
-
return $e(c,
|
|
890
|
-
},
|
|
873
|
+
typeStr2Type: Bs,
|
|
874
|
+
edgeTypeStr2Type: js,
|
|
875
|
+
edgeStrToEdgeData: Fs,
|
|
876
|
+
getLogger: Xs,
|
|
877
|
+
getBlocksFlat: Ys,
|
|
878
|
+
getBlocks: Ws,
|
|
879
|
+
getEdges: Us,
|
|
880
|
+
setHierarchy: Ks,
|
|
881
|
+
getBlock: Vs,
|
|
882
|
+
setBlock: Gs,
|
|
883
|
+
getColumns: Ms,
|
|
884
|
+
getClasses: Hs,
|
|
885
|
+
clear: Rs,
|
|
886
|
+
generateId: Ps
|
|
887
|
+
}, Zs = qs, Z = (e, r) => {
|
|
888
|
+
const o = ut, c = o(e, "r"), i = o(e, "g"), d = o(e, "b");
|
|
889
|
+
return $e(c, i, d, r);
|
|
890
|
+
}, Js = (e) => `.label {
|
|
891
891
|
font-family: ${e.fontFamily};
|
|
892
892
|
color: ${e.nodeTextColor || e.textColor};
|
|
893
893
|
}
|
|
@@ -999,165 +999,165 @@ const Kn = () => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
|
|
|
999
999
|
font-size: 18px;
|
|
1000
1000
|
fill: ${e.textColor};
|
|
1001
1001
|
}
|
|
1002
|
-
`,
|
|
1003
|
-
function Re(e,
|
|
1004
|
-
var c,
|
|
1005
|
-
const
|
|
1006
|
-
let
|
|
1007
|
-
(((c =
|
|
1008
|
-
let b = 0,
|
|
1009
|
-
switch (
|
|
1002
|
+
`, Qs = Js;
|
|
1003
|
+
function Re(e, r, o = !1) {
|
|
1004
|
+
var c, i, d;
|
|
1005
|
+
const l = e;
|
|
1006
|
+
let f = "default";
|
|
1007
|
+
(((c = l == null ? void 0 : l.classes) == null ? void 0 : c.length) || 0) > 0 && (f = ((l == null ? void 0 : l.classes) || []).join(" ")), f = f + " flowchart-label";
|
|
1008
|
+
let b = 0, p = "", S;
|
|
1009
|
+
switch (l.type) {
|
|
1010
1010
|
case "round":
|
|
1011
|
-
b = 5,
|
|
1011
|
+
b = 5, p = "rect";
|
|
1012
1012
|
break;
|
|
1013
1013
|
case "composite":
|
|
1014
|
-
b = 0,
|
|
1014
|
+
b = 0, p = "composite", S = 0;
|
|
1015
1015
|
break;
|
|
1016
1016
|
case "square":
|
|
1017
|
-
|
|
1017
|
+
p = "rect";
|
|
1018
1018
|
break;
|
|
1019
1019
|
case "diamond":
|
|
1020
|
-
|
|
1020
|
+
p = "question";
|
|
1021
1021
|
break;
|
|
1022
1022
|
case "hexagon":
|
|
1023
|
-
|
|
1023
|
+
p = "hexagon";
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "block_arrow":
|
|
1026
|
-
|
|
1026
|
+
p = "block_arrow";
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "odd":
|
|
1029
|
-
|
|
1029
|
+
p = "rect_left_inv_arrow";
|
|
1030
1030
|
break;
|
|
1031
1031
|
case "lean_right":
|
|
1032
|
-
|
|
1032
|
+
p = "lean_right";
|
|
1033
1033
|
break;
|
|
1034
1034
|
case "lean_left":
|
|
1035
|
-
|
|
1035
|
+
p = "lean_left";
|
|
1036
1036
|
break;
|
|
1037
1037
|
case "trapezoid":
|
|
1038
|
-
|
|
1038
|
+
p = "trapezoid";
|
|
1039
1039
|
break;
|
|
1040
1040
|
case "inv_trapezoid":
|
|
1041
|
-
|
|
1041
|
+
p = "inv_trapezoid";
|
|
1042
1042
|
break;
|
|
1043
1043
|
case "rect_left_inv_arrow":
|
|
1044
|
-
|
|
1044
|
+
p = "rect_left_inv_arrow";
|
|
1045
1045
|
break;
|
|
1046
1046
|
case "circle":
|
|
1047
|
-
|
|
1047
|
+
p = "circle";
|
|
1048
1048
|
break;
|
|
1049
1049
|
case "ellipse":
|
|
1050
|
-
|
|
1050
|
+
p = "ellipse";
|
|
1051
1051
|
break;
|
|
1052
1052
|
case "stadium":
|
|
1053
|
-
|
|
1053
|
+
p = "stadium";
|
|
1054
1054
|
break;
|
|
1055
1055
|
case "subroutine":
|
|
1056
|
-
|
|
1056
|
+
p = "subroutine";
|
|
1057
1057
|
break;
|
|
1058
1058
|
case "cylinder":
|
|
1059
|
-
|
|
1059
|
+
p = "cylinder";
|
|
1060
1060
|
break;
|
|
1061
1061
|
case "group":
|
|
1062
|
-
|
|
1062
|
+
p = "rect";
|
|
1063
1063
|
break;
|
|
1064
1064
|
case "doublecircle":
|
|
1065
|
-
|
|
1065
|
+
p = "doublecircle";
|
|
1066
1066
|
break;
|
|
1067
1067
|
default:
|
|
1068
|
-
|
|
1068
|
+
p = "rect";
|
|
1069
1069
|
}
|
|
1070
|
-
const w =
|
|
1070
|
+
const w = rt((l == null ? void 0 : l.styles) || []), O = l.label, D = l.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
1071
1071
|
return {
|
|
1072
1072
|
labelStyle: w.labelStyle,
|
|
1073
|
-
shape:
|
|
1074
|
-
labelText:
|
|
1073
|
+
shape: p,
|
|
1074
|
+
labelText: O,
|
|
1075
1075
|
rx: b,
|
|
1076
1076
|
ry: b,
|
|
1077
|
-
class:
|
|
1077
|
+
class: f,
|
|
1078
1078
|
style: w.style,
|
|
1079
|
-
id:
|
|
1080
|
-
directions:
|
|
1081
|
-
width:
|
|
1082
|
-
height:
|
|
1083
|
-
x:
|
|
1084
|
-
y:
|
|
1085
|
-
positioned:
|
|
1079
|
+
id: l.id,
|
|
1080
|
+
directions: l.directions,
|
|
1081
|
+
width: D.width,
|
|
1082
|
+
height: D.height,
|
|
1083
|
+
x: D.x,
|
|
1084
|
+
y: D.y,
|
|
1085
|
+
positioned: o,
|
|
1086
1086
|
intersect: void 0,
|
|
1087
|
-
type:
|
|
1088
|
-
padding: S ?? (((
|
|
1087
|
+
type: l.type,
|
|
1088
|
+
padding: S ?? (((d = (i = ae()) == null ? void 0 : i.block) == null ? void 0 : d.padding) || 0)
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
|
-
async function
|
|
1092
|
-
const c = Re(
|
|
1091
|
+
async function $s(e, r, o) {
|
|
1092
|
+
const c = Re(r, o, !1);
|
|
1093
1093
|
if (c.type === "group")
|
|
1094
1094
|
return;
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1095
|
+
const i = await Te(e, c), d = i.node().getBBox(), l = o.getBlock(c.id);
|
|
1096
|
+
l.size = { width: d.width, height: d.height, x: 0, y: 0, node: i }, o.setBlock(l), i.remove();
|
|
1097
1097
|
}
|
|
1098
|
-
async function
|
|
1099
|
-
const c = Re(
|
|
1100
|
-
|
|
1098
|
+
async function er(e, r, o) {
|
|
1099
|
+
const c = Re(r, o, !0);
|
|
1100
|
+
o.getBlock(c.id).type !== "space" && (await Te(e, c), r.intersect = c == null ? void 0 : c.intersect, lt(c));
|
|
1101
1101
|
}
|
|
1102
|
-
async function ce(e,
|
|
1103
|
-
for (const
|
|
1104
|
-
await c(e,
|
|
1102
|
+
async function ce(e, r, o, c) {
|
|
1103
|
+
for (const i of r)
|
|
1104
|
+
await c(e, i, o), i.children && await ce(e, i.children, o, c);
|
|
1105
1105
|
}
|
|
1106
|
-
async function
|
|
1107
|
-
await ce(e,
|
|
1106
|
+
async function tr(e, r, o) {
|
|
1107
|
+
await ce(e, r, o, $s);
|
|
1108
1108
|
}
|
|
1109
|
-
async function
|
|
1110
|
-
await ce(e,
|
|
1109
|
+
async function sr(e, r, o) {
|
|
1110
|
+
await ce(e, r, o, er);
|
|
1111
1111
|
}
|
|
1112
|
-
async function
|
|
1113
|
-
const
|
|
1112
|
+
async function rr(e, r, o, c, i) {
|
|
1113
|
+
const d = new ct({
|
|
1114
1114
|
multigraph: !0,
|
|
1115
1115
|
compound: !0
|
|
1116
1116
|
});
|
|
1117
|
-
|
|
1117
|
+
d.setGraph({
|
|
1118
1118
|
rankdir: "TB",
|
|
1119
1119
|
nodesep: 10,
|
|
1120
1120
|
ranksep: 10,
|
|
1121
1121
|
marginx: 8,
|
|
1122
1122
|
marginy: 8
|
|
1123
1123
|
});
|
|
1124
|
-
for (const
|
|
1125
|
-
|
|
1126
|
-
width:
|
|
1127
|
-
height:
|
|
1128
|
-
intersect:
|
|
1124
|
+
for (const l of o)
|
|
1125
|
+
l.size && d.setNode(l.id, {
|
|
1126
|
+
width: l.size.width,
|
|
1127
|
+
height: l.size.height,
|
|
1128
|
+
intersect: l.intersect
|
|
1129
1129
|
});
|
|
1130
|
-
for (const
|
|
1131
|
-
if (
|
|
1132
|
-
const
|
|
1133
|
-
if (
|
|
1134
|
-
const
|
|
1135
|
-
{ x:
|
|
1136
|
-
{ x:
|
|
1130
|
+
for (const l of r)
|
|
1131
|
+
if (l.start && l.end) {
|
|
1132
|
+
const f = c.getBlock(l.start), b = c.getBlock(l.end);
|
|
1133
|
+
if (f != null && f.size && (b != null && b.size)) {
|
|
1134
|
+
const p = f.size, S = b.size, w = [
|
|
1135
|
+
{ x: p.x, y: p.y },
|
|
1136
|
+
{ x: p.x + (S.x - p.x) / 2, y: p.y + (S.y - p.y) / 2 },
|
|
1137
1137
|
{ x: S.x, y: S.y }
|
|
1138
1138
|
];
|
|
1139
|
-
await
|
|
1139
|
+
await nt(
|
|
1140
1140
|
e,
|
|
1141
|
-
{ v:
|
|
1141
|
+
{ v: l.start, w: l.end, name: l.id },
|
|
1142
1142
|
{
|
|
1143
|
-
...
|
|
1144
|
-
arrowTypeEnd:
|
|
1145
|
-
arrowTypeStart:
|
|
1143
|
+
...l,
|
|
1144
|
+
arrowTypeEnd: l.arrowTypeEnd,
|
|
1145
|
+
arrowTypeStart: l.arrowTypeStart,
|
|
1146
1146
|
points: w,
|
|
1147
1147
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1148
1148
|
},
|
|
1149
1149
|
void 0,
|
|
1150
1150
|
"block",
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
),
|
|
1154
|
-
...
|
|
1155
|
-
label:
|
|
1151
|
+
d,
|
|
1152
|
+
i
|
|
1153
|
+
), l.label && (await at(e, {
|
|
1154
|
+
...l,
|
|
1155
|
+
label: l.label,
|
|
1156
1156
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
1157
|
-
arrowTypeEnd:
|
|
1158
|
-
arrowTypeStart:
|
|
1159
|
-
}), await
|
|
1160
|
-
{ ...
|
|
1157
|
+
arrowTypeEnd: l.arrowTypeEnd,
|
|
1158
|
+
arrowTypeStart: l.arrowTypeStart
|
|
1159
|
+
}), await ot(
|
|
1160
|
+
{ ...l, x: w[1].x, y: w[1].y },
|
|
1161
1161
|
{
|
|
1162
1162
|
originalPath: w
|
|
1163
1163
|
}
|
|
@@ -1165,101 +1165,101 @@ async function rs(e, s, l, c, r) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1168
|
+
const v = ((xe = (Se = De()) == null ? void 0 : Se.block) == null ? void 0 : xe.padding) || 8;
|
|
1169
|
+
function ir(e, r) {
|
|
1170
1170
|
if (e === 0 || !Number.isInteger(e))
|
|
1171
1171
|
throw new Error("Columns must be an integer !== 0.");
|
|
1172
|
-
if (
|
|
1173
|
-
throw new Error("Position must be a non-negative integer." +
|
|
1172
|
+
if (r < 0 || !Number.isInteger(r))
|
|
1173
|
+
throw new Error("Position must be a non-negative integer." + r);
|
|
1174
1174
|
if (e < 0)
|
|
1175
|
-
return { px:
|
|
1175
|
+
return { px: r, py: 0 };
|
|
1176
1176
|
if (e === 1)
|
|
1177
|
-
return { px: 0, py:
|
|
1178
|
-
const
|
|
1179
|
-
return { px:
|
|
1177
|
+
return { px: 0, py: r };
|
|
1178
|
+
const o = r % e, c = Math.floor(r / e);
|
|
1179
|
+
return { px: o, py: c };
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1182
|
-
let
|
|
1181
|
+
const nr = (e) => {
|
|
1182
|
+
let r = 0, o = 0;
|
|
1183
1183
|
for (const c of e.children) {
|
|
1184
|
-
const { width:
|
|
1184
|
+
const { width: i, height: d, x: l, y: f } = c.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
1185
1185
|
x.debug(
|
|
1186
1186
|
"getMaxChildSize abc95 child:",
|
|
1187
1187
|
c.id,
|
|
1188
1188
|
"width:",
|
|
1189
|
-
|
|
1189
|
+
i,
|
|
1190
1190
|
"height:",
|
|
1191
|
-
|
|
1191
|
+
d,
|
|
1192
1192
|
"x:",
|
|
1193
|
-
|
|
1193
|
+
l,
|
|
1194
1194
|
"y:",
|
|
1195
|
-
|
|
1195
|
+
f,
|
|
1196
1196
|
c.type
|
|
1197
|
-
), c.type !== "space" && (
|
|
1197
|
+
), c.type !== "space" && (i > r && (r = i / (e.widthInColumns || 1)), d > o && (o = d));
|
|
1198
1198
|
}
|
|
1199
|
-
return { width:
|
|
1199
|
+
return { width: r, height: o };
|
|
1200
1200
|
};
|
|
1201
|
-
function
|
|
1202
|
-
var
|
|
1201
|
+
function ie(e, r, o = 0, c = 0) {
|
|
1202
|
+
var i, d, l, f, b, p, S, w, O, D, _;
|
|
1203
1203
|
x.debug(
|
|
1204
1204
|
"setBlockSizes abc95 (start)",
|
|
1205
1205
|
e.id,
|
|
1206
|
-
(
|
|
1206
|
+
(i = e == null ? void 0 : e.size) == null ? void 0 : i.x,
|
|
1207
1207
|
"block width =",
|
|
1208
1208
|
e == null ? void 0 : e.size,
|
|
1209
1209
|
"sieblingWidth",
|
|
1210
|
-
|
|
1211
|
-
), (
|
|
1212
|
-
width:
|
|
1210
|
+
o
|
|
1211
|
+
), (d = e == null ? void 0 : e.size) != null && d.width || (e.size = {
|
|
1212
|
+
width: o,
|
|
1213
1213
|
height: c,
|
|
1214
1214
|
x: 0,
|
|
1215
1215
|
y: 0
|
|
1216
1216
|
});
|
|
1217
1217
|
let L = 0, m = 0;
|
|
1218
|
-
if (((
|
|
1218
|
+
if (((l = e.children) == null ? void 0 : l.length) > 0) {
|
|
1219
1219
|
for (const h of e.children)
|
|
1220
|
-
|
|
1221
|
-
const R =
|
|
1220
|
+
ie(h, r);
|
|
1221
|
+
const R = nr(e);
|
|
1222
1222
|
L = R.width, m = R.height, x.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", L, m);
|
|
1223
1223
|
for (const h of e.children)
|
|
1224
1224
|
h.size && (x.debug(
|
|
1225
1225
|
`abc95 Setting size of children of ${e.id} id=${h.id} ${L} ${m} ${h.size}`
|
|
1226
|
-
), h.size.width = L * (h.widthInColumns || 1) +
|
|
1226
|
+
), h.size.width = L * (h.widthInColumns || 1) + v * ((h.widthInColumns || 1) - 1), h.size.height = m, h.size.x = 0, h.size.y = 0, x.debug(
|
|
1227
1227
|
`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${L} maxHeight:${m}`
|
|
1228
1228
|
));
|
|
1229
1229
|
for (const h of e.children)
|
|
1230
|
-
|
|
1231
|
-
const
|
|
1232
|
-
let
|
|
1230
|
+
ie(h, r, L, m);
|
|
1231
|
+
const k = e.columns || -1;
|
|
1232
|
+
let N = 0;
|
|
1233
1233
|
for (const h of e.children)
|
|
1234
|
-
|
|
1234
|
+
N += h.widthInColumns || 1;
|
|
1235
1235
|
let u = e.children.length;
|
|
1236
|
-
|
|
1237
|
-
const
|
|
1238
|
-
let
|
|
1239
|
-
if (
|
|
1236
|
+
k > 0 && k < N && (u = k), e.widthInColumns;
|
|
1237
|
+
const s = Math.ceil(N / u);
|
|
1238
|
+
let n = u * (L + v) + v, g = s * (m + v) + v;
|
|
1239
|
+
if (n < o) {
|
|
1240
1240
|
x.debug(
|
|
1241
|
-
`Detected to small siebling: abc95 ${e.id} sieblingWidth ${
|
|
1242
|
-
),
|
|
1243
|
-
const h = (
|
|
1244
|
-
x.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth", L), x.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", m), x.debug("Size indata abc88 xSize", u, "padding",
|
|
1241
|
+
`Detected to small siebling: abc95 ${e.id} sieblingWidth ${o} sieblingHeight ${c} width ${n}`
|
|
1242
|
+
), n = o, g = c;
|
|
1243
|
+
const h = (o - u * v - v) / u, t = (c - s * v - v) / s;
|
|
1244
|
+
x.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth", L), x.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", m), x.debug("Size indata abc88 xSize", u, "padding", v);
|
|
1245
1245
|
for (const E of e.children)
|
|
1246
1246
|
E.size && (E.size.width = h, E.size.height = t, E.size.x = 0, E.size.y = 0);
|
|
1247
1247
|
}
|
|
1248
1248
|
if (x.debug(
|
|
1249
|
-
`abc95 (finale calc) ${e.id} xSize ${u} ySize ${
|
|
1250
|
-
),
|
|
1251
|
-
|
|
1252
|
-
const h =
|
|
1249
|
+
`abc95 (finale calc) ${e.id} xSize ${u} ySize ${s} columns ${k}${e.children.length} width=${Math.max(n, ((f = e.size) == null ? void 0 : f.width) || 0)}`
|
|
1250
|
+
), n < (((b = e == null ? void 0 : e.size) == null ? void 0 : b.width) || 0)) {
|
|
1251
|
+
n = ((p = e == null ? void 0 : e.size) == null ? void 0 : p.width) || 0;
|
|
1252
|
+
const h = k > 0 ? Math.min(e.children.length, k) : e.children.length;
|
|
1253
1253
|
if (h > 0) {
|
|
1254
|
-
const t = (
|
|
1255
|
-
x.debug("abc95 (growing to fit) width", e.id,
|
|
1254
|
+
const t = (n - h * v - v) / h;
|
|
1255
|
+
x.debug("abc95 (growing to fit) width", e.id, n, (S = e.size) == null ? void 0 : S.width, t);
|
|
1256
1256
|
for (const E of e.children)
|
|
1257
1257
|
E.size && (E.size.width = t);
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
e.size = {
|
|
1261
|
-
width:
|
|
1262
|
-
height:
|
|
1261
|
+
width: n,
|
|
1262
|
+
height: g,
|
|
1263
1263
|
x: 0,
|
|
1264
1264
|
y: 0
|
|
1265
1265
|
};
|
|
@@ -1268,92 +1268,92 @@ function re(e, s, l = 0, c = 0) {
|
|
|
1268
1268
|
"setBlockSizes abc94 (done)",
|
|
1269
1269
|
e.id,
|
|
1270
1270
|
(w = e == null ? void 0 : e.size) == null ? void 0 : w.x,
|
|
1271
|
-
(
|
|
1272
|
-
(
|
|
1271
|
+
(O = e == null ? void 0 : e.size) == null ? void 0 : O.width,
|
|
1272
|
+
(D = e == null ? void 0 : e.size) == null ? void 0 : D.y,
|
|
1273
1273
|
(_ = e == null ? void 0 : e.size) == null ? void 0 : _.height
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
|
-
function Be(e,
|
|
1277
|
-
var
|
|
1276
|
+
function Be(e, r) {
|
|
1277
|
+
var o, c, i, d, l, f, b, p, S, w, O, D, _, L, m, R, k;
|
|
1278
1278
|
x.debug(
|
|
1279
|
-
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(
|
|
1279
|
+
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(o = e == null ? void 0 : e.size) == null ? void 0 : o.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(i = e == null ? void 0 : e.size) == null ? void 0 : i.width}`
|
|
1280
1280
|
);
|
|
1281
|
-
const
|
|
1282
|
-
if (x.debug("layoutBlocks columns abc95", e.id, "=>",
|
|
1281
|
+
const N = e.columns || -1;
|
|
1282
|
+
if (x.debug("layoutBlocks columns abc95", e.id, "=>", N, e), e.children && // find max width of children
|
|
1283
1283
|
e.children.length > 0) {
|
|
1284
|
-
const u = ((
|
|
1285
|
-
x.debug("widthOfChildren 88",
|
|
1286
|
-
let
|
|
1287
|
-
x.debug("abc91 block?.size?.x", e.id, (
|
|
1288
|
-
let
|
|
1284
|
+
const u = ((l = (d = e == null ? void 0 : e.children[0]) == null ? void 0 : d.size) == null ? void 0 : l.width) || 0, s = e.children.length * u + (e.children.length - 1) * v;
|
|
1285
|
+
x.debug("widthOfChildren 88", s, "posX");
|
|
1286
|
+
let n = 0;
|
|
1287
|
+
x.debug("abc91 block?.size?.x", e.id, (f = e == null ? void 0 : e.size) == null ? void 0 : f.x);
|
|
1288
|
+
let g = (b = e == null ? void 0 : e.size) != null && b.x ? ((p = e == null ? void 0 : e.size) == null ? void 0 : p.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -v, h = 0;
|
|
1289
1289
|
for (const t of e.children) {
|
|
1290
1290
|
const E = e;
|
|
1291
1291
|
if (!t.size)
|
|
1292
1292
|
continue;
|
|
1293
|
-
const { width: a, height: B } = t.size, { px: Y, py: P } =
|
|
1294
|
-
if (P != h && (h = P,
|
|
1295
|
-
`abc89 layout blocks (child) id: ${t.id} Pos: ${
|
|
1293
|
+
const { width: a, height: B } = t.size, { px: Y, py: P } = ir(N, n);
|
|
1294
|
+
if (P != h && (h = P, g = (w = e == null ? void 0 : e.size) != null && w.x ? ((O = e == null ? void 0 : e.size) == null ? void 0 : O.x) + (-((D = e == null ? void 0 : e.size) == null ? void 0 : D.width) / 2 || 0) : -v, x.debug("New row in layout for block", e.id, " and child ", t.id, h)), x.debug(
|
|
1295
|
+
`abc89 layout blocks (child) id: ${t.id} Pos: ${n} (px, py) ${Y},${P} (${(_ = E == null ? void 0 : E.size) == null ? void 0 : _.x},${(L = E == null ? void 0 : E.size) == null ? void 0 : L.y}) parent: ${E.id} width: ${a}${v}`
|
|
1296
1296
|
), E.size) {
|
|
1297
|
-
const
|
|
1298
|
-
t.size.x =
|
|
1299
|
-
`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${
|
|
1300
|
-
),
|
|
1301
|
-
`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${
|
|
1297
|
+
const z = a / 2;
|
|
1298
|
+
t.size.x = g + v + z, x.debug(
|
|
1299
|
+
`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${g} new startingPosX${t.size.x} ${z} padding=${v} width=${a} halfWidth=${z} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${a * ((t == null ? void 0 : t.widthInColumns) || 1) / 2}`
|
|
1300
|
+
), g = t.size.x + z, t.size.y = E.size.y - E.size.height / 2 + P * (B + v) + B / 2 + v, x.debug(
|
|
1301
|
+
`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${g}${v}${z}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${a * ((t == null ? void 0 : t.widthInColumns) || 1) / 2}`
|
|
1302
1302
|
);
|
|
1303
1303
|
}
|
|
1304
|
-
t.children && Be(t),
|
|
1304
|
+
t.children && Be(t), n += (t == null ? void 0 : t.widthInColumns) || 1, x.debug("abc88 columnsPos", t, n);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
x.debug(
|
|
1308
|
-
`layout blocks (<==layoutBlocks) ${e.id} x: ${(m = e == null ? void 0 : e.size) == null ? void 0 : m.x} y: ${(R = e == null ? void 0 : e.size) == null ? void 0 : R.y} width: ${(
|
|
1308
|
+
`layout blocks (<==layoutBlocks) ${e.id} x: ${(m = e == null ? void 0 : e.size) == null ? void 0 : m.x} y: ${(R = e == null ? void 0 : e.size) == null ? void 0 : R.y} width: ${(k = e == null ? void 0 : e.size) == null ? void 0 : k.width}`
|
|
1309
1309
|
);
|
|
1310
1310
|
}
|
|
1311
|
-
function je(e, { minX:
|
|
1311
|
+
function je(e, { minX: r, minY: o, maxX: c, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
1312
1312
|
if (e.size && e.id !== "root") {
|
|
1313
|
-
const { x:
|
|
1314
|
-
|
|
1313
|
+
const { x: d, y: l, width: f, height: b } = e.size;
|
|
1314
|
+
d - f / 2 < r && (r = d - f / 2), l - b / 2 < o && (o = l - b / 2), d + f / 2 > c && (c = d + f / 2), l + b / 2 > i && (i = l + b / 2);
|
|
1315
1315
|
}
|
|
1316
1316
|
if (e.children)
|
|
1317
|
-
for (const
|
|
1318
|
-
({ minX:
|
|
1319
|
-
return { minX:
|
|
1317
|
+
for (const d of e.children)
|
|
1318
|
+
({ minX: r, minY: o, maxX: c, maxY: i } = je(d, { minX: r, minY: o, maxX: c, maxY: i }));
|
|
1319
|
+
return { minX: r, minY: o, maxX: c, maxY: i };
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1322
|
-
const
|
|
1323
|
-
if (!
|
|
1321
|
+
function ar(e) {
|
|
1322
|
+
const r = e.getBlock("root");
|
|
1323
|
+
if (!r)
|
|
1324
1324
|
return;
|
|
1325
|
-
|
|
1326
|
-
const { minX:
|
|
1327
|
-
return { x:
|
|
1325
|
+
ie(r, e, 0, 0), Be(r), x.debug("getBlocks", JSON.stringify(r, null, 2));
|
|
1326
|
+
const { minX: o, minY: c, maxX: i, maxY: d } = je(r), l = d - c, f = i - o;
|
|
1327
|
+
return { x: o, y: c, width: f, height: l };
|
|
1328
1328
|
}
|
|
1329
|
-
const
|
|
1330
|
-
return
|
|
1331
|
-
},
|
|
1332
|
-
const { securityLevel:
|
|
1333
|
-
let
|
|
1334
|
-
|
|
1335
|
-
const b =
|
|
1336
|
-
|
|
1337
|
-
const w =
|
|
1338
|
-
await
|
|
1339
|
-
const L =
|
|
1340
|
-
if (await
|
|
1341
|
-
const m = L, R = Math.max(1, Math.round(0.125 * (m.width / m.height))),
|
|
1342
|
-
et(
|
|
1329
|
+
const or = function(e, r) {
|
|
1330
|
+
return r.db.getClasses();
|
|
1331
|
+
}, lr = async function(e, r, o, c) {
|
|
1332
|
+
const { securityLevel: i, block: d } = ae(), l = c.db;
|
|
1333
|
+
let f;
|
|
1334
|
+
i === "sandbox" && (f = q("#i" + r));
|
|
1335
|
+
const b = i === "sandbox" ? q(f.nodes()[0].contentDocument.body) : q("body"), p = i === "sandbox" ? b.select(`[id="${r}"]`) : q(`[id="${r}"]`);
|
|
1336
|
+
it(p, ["point", "circle", "cross"], c.type, r);
|
|
1337
|
+
const w = l.getBlocks(), O = l.getBlocksFlat(), D = l.getEdges(), _ = p.insert("g").attr("class", "block");
|
|
1338
|
+
await tr(_, w, l);
|
|
1339
|
+
const L = ar(l);
|
|
1340
|
+
if (await sr(_, w, l), await rr(_, D, O, l, r), L) {
|
|
1341
|
+
const m = L, R = Math.max(1, Math.round(0.125 * (m.width / m.height))), k = m.height + R + 10, N = m.width + 10, { useMaxWidth: u } = d;
|
|
1342
|
+
et(p, k, N, !!u), x.debug("Here Bounds", L, m), p.attr(
|
|
1343
1343
|
"viewBox",
|
|
1344
1344
|
`${m.x - 5} ${m.y - 5} ${m.width + 10} ${m.height + 10}`
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
|
-
dt
|
|
1348
|
-
},
|
|
1349
|
-
draw:
|
|
1350
|
-
getClasses:
|
|
1351
|
-
},
|
|
1352
|
-
parser:
|
|
1353
|
-
db:
|
|
1354
|
-
renderer:
|
|
1355
|
-
styles:
|
|
1347
|
+
gt(dt);
|
|
1348
|
+
}, cr = {
|
|
1349
|
+
draw: lr,
|
|
1350
|
+
getClasses: or
|
|
1351
|
+
}, Sr = {
|
|
1352
|
+
parser: Ns,
|
|
1353
|
+
db: Zs,
|
|
1354
|
+
renderer: cr,
|
|
1355
|
+
styles: Qs
|
|
1356
1356
|
};
|
|
1357
1357
|
export {
|
|
1358
|
-
|
|
1358
|
+
Sr as diagram
|
|
1359
1359
|
};
|