@layers-app/editor 0.3.4 → 0.3.6
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 +2 -0
- package/dist/index.js +1 -1
- package/dist/{layers.BjI638wH.js → layers.-5Lgclnz.js} +1 -1
- package/dist/{layers.BBQw64jO.js → layers.0g5uO7I6.js} +1 -1
- package/dist/{layers.BgMWFN7W.js → layers.5ygE1JlC.js} +1 -1
- package/dist/{layers.BN6oaAcV.js → layers.69-vt3oR.js} +1 -1
- package/dist/{layers.B_eHeG-P.js → layers.7HJK2Y5U.js} +1 -1
- package/dist/{layers.ThFR00SD.js → layers.7mUOhrZY.js} +1 -1
- package/dist/{layers.Bsj1UPnB.js → layers.9I3HFrmI.js} +4 -4
- package/dist/{layers.54Tc1YxQ.js → layers.A3ZwZgRQ.js} +1 -1
- package/dist/{layers.9tX9hjoM.js → layers.B2AGu32C.js} +61 -61
- package/dist/{layers.CLyx8bbC.js → layers.B2feTekR.js} +1 -1
- package/dist/{layers.py3N1aT9.js → layers.B3Kvqzw-.js} +1 -1
- package/dist/layers.B3Zp-Is3.js +1 -0
- package/dist/{layers.wh0fvYii.js → layers.B52lyuur.js} +1 -1
- package/dist/{layers.CNmlFD-E.js → layers.B77VL9sx.js} +1 -1
- package/dist/{layers.DOm96wf_.js → layers.B8C13Ne1.js} +1 -1
- package/dist/{layers.BulZ9Hg5.js → layers.B8uKn2Dw.js} +1 -1
- package/dist/{layers.BJJ5XB-5.js → layers.B9R3eGyK.js} +1 -1
- package/dist/{layers.CKhk7uha.js → layers.BBXHTLj8.js} +1 -1
- package/dist/{layers.AnDKLrww.js → layers.BCd7w2yt.js} +1 -1
- package/dist/{layers.DuipK3Ob.js → layers.BF7ESV6n.js} +1 -1
- package/dist/{layers.CWp4CXzt.js → layers.BFAu9m8Q.js} +1 -1
- package/dist/{layers.xBfWKmSJ.js → layers.BHpJ2UOG.js} +1 -1
- package/dist/{layers.CFTyK_53.js → layers.BJxi0js0.js} +1 -1
- package/dist/{layers.pokjdt_3.js → layers.BKPQwMm-.js} +1 -1
- package/dist/{layers.CDE8Hsm9.js → layers.BKtNAtd_.js} +1 -1
- package/dist/{layers.Dsgl1vaz.js → layers.BOx7BRj4.js} +1 -1
- package/dist/{layers.CK6kfcWt.js → layers.BPxJmeST.js} +1 -1
- package/dist/{layers.4p8YmxDN.js → layers.BQkR8-LU.js} +1 -1
- package/dist/{layers.BYHCaf8U.js → layers.BSQ5l9NA.js} +1 -1
- package/dist/{layers.jwoHxdbD.js → layers.BSgo83_G.js} +1 -1
- package/dist/{layers.DO6cpPmP.js → layers.BTEUd5-p.js} +1 -1
- package/dist/{layers.B4FpUxDa.js → layers.BTJS2yG2.js} +5 -5
- package/dist/{layers.Dd9_MkvE.js → layers.BTya_-T3.js} +1 -1
- package/dist/{layers.ChNnfooY.js → layers.BULuTh-j.js} +1 -1
- package/dist/{layers.Cx-pu1yH.js → layers.BUdVoOcC.js} +1 -1
- package/dist/{layers.jioCPqo7.js → layers.BUpmcCIw.js} +1 -1
- package/dist/{layers.BXLHLHn_.js → layers.BWuMHnce.js} +1 -1
- package/dist/{layers.CJ7EyKJq.js → layers.BY1a3ViB.js} +2 -2
- package/dist/{layers.BcUJ1vkK.js → layers.BZX5VcOn.js} +1 -1
- package/dist/{layers.WQBy9a1J.js → layers.BbOkYmVx.js} +1 -1
- package/dist/{layers.gwM1wxEs.js → layers.BbU_xIau.js} +4 -4
- package/dist/{layers.BBPJiVt_.js → layers.Bcsxz2tt.js} +1 -1
- package/dist/{layers.D3DzFC8v.js → layers.Bdnzxj8_.js} +1 -1
- package/dist/{layers.CvUaR9Ss.js → layers.Ben2ZMRU.js} +1 -1
- package/dist/{layers.B6x0NWSf.js → layers.BfLb8PrM.js} +1 -1
- package/dist/{layers.D7O_sIxr.js → layers.BfnTfjck.js} +4 -4
- package/dist/{layers.HuHd79bM.js → layers.BhqRHV2T.js} +1 -1
- package/dist/{layers.Bmk3P1xT.js → layers.BhtPQriH.js} +1 -1
- package/dist/{layers.DORKw3TG.js → layers.Bi2yhH1u.js} +3 -3
- package/dist/{layers.a-io35hY.js → layers.BjZ4UDDE.js} +1 -1
- package/dist/{layers.QIvDpvVQ.js → layers.Bjars8Cx.js} +1 -1
- package/dist/{layers.NnudF1z1.js → layers.Bjh1G9wV.js} +1 -1
- package/dist/{layers.DREnsI7H.js → layers.Bl_IT9DR.js} +1 -1
- package/dist/{layers.BUHaVYsC.js → layers.BnJr2kCq.js} +5 -5
- package/dist/{layers.BeYv29mO.js → layers.BnRfAu3v.js} +1 -1
- package/dist/{layers.CRVR4YuW.js → layers.Bo7hyvnS.js} +1 -1
- package/dist/{layers.HarNpoUB.js → layers.Bo8fthgW.js} +1 -1
- package/dist/{layers.CcTBk9Ib.js → layers.BoDwUuQc.js} +1 -1
- package/dist/{layers.BzqPLHZT.js → layers.BoOSv3Vi.js} +1 -1
- package/dist/{layers.DCI0zSyG.js → layers.Br6bn7So.js} +1 -1
- package/dist/{layers.DoYDAiBT.js → layers.BrzjJAFH.js} +3 -3
- package/dist/{layers.DopcmQlb.js → layers.Btp0Yost.js} +3 -3
- package/dist/{layers.vCqxHI3z.js → layers.BvE7TiK1.js} +1 -1
- package/dist/{layers.KvpxP4O1.js → layers.ByIjh3sh.js} +1 -1
- package/dist/{layers.pFw8FP1s.js → layers.C15flB1q.js} +1 -1
- package/dist/{layers.Dg6j9YQp.js → layers.C2QulvSs.js} +1 -1
- package/dist/{layers.DeBvAdqq.js → layers.C2XV1h41.js} +3 -3
- package/dist/{layers.DhDloAc3.js → layers.C5_EKLgn.js} +1 -1
- package/dist/{layers.BibExETR.js → layers.C5dLt_-K.js} +1 -1
- package/dist/{layers.BUL_tJ_V.js → layers.C5gPMUPR.js} +1 -1
- package/dist/{layers.yYZmlguV.js → layers.C5o_gsY7.js} +1 -1
- package/dist/{layers.BPBHGe-Y.js → layers.C7D5zbGN.js} +1 -1
- package/dist/{layers.AgUsUEui.js → layers.C7xGgVlp.js} +1 -1
- package/dist/{layers.p9WHA7Q4.js → layers.C8NoujKy.js} +1 -1
- package/dist/{layers.Db4TMShZ.js → layers.CFv5izLy.js} +1 -1
- package/dist/{layers.HEy8-Sql.js → layers.CHu6tcpX.js} +1271 -1263
- package/dist/{layers.HLP_ehOT.js → layers.CI7rG8Pn.js} +1 -1
- package/dist/{layers.v-I87Jjd.js → layers.CJL1_Xcw.js} +1 -1
- package/dist/{layers.Prhzv4i_.js → layers.CLKb0-1V.js} +1 -1
- package/dist/{layers.rtAv7vHR.js → layers.CNEzboKv.js} +1 -1
- package/dist/{layers.TboQ6oBA.js → layers.CNLpufBG.js} +1 -1
- package/dist/{layers.vC6Sof4v.js → layers.CNYodF0g.js} +1 -1
- package/dist/{layers.DBaYkfd7.js → layers.COl0FFvb.js} +1 -1
- package/dist/{layers.gZNgK0A9.js → layers.CQLq20d8.js} +1 -1
- package/dist/{layers.h3NG2lgR.js → layers.CR8olQUJ.js} +8 -8
- package/dist/{layers.DWIHkevn.js → layers.CRf0n1f0.js} +1 -1
- package/dist/{layers.E_17qoVF.js → layers.CSnBgk6s.js} +1 -1
- package/dist/{layers.CHeNBIBF.js → layers.CTRLJqxG.js} +1 -1
- package/dist/{layers.B9jtZwqb.js → layers.CT_kcb0H.js} +1 -1
- package/dist/{layers.Bk-EEPK7.js → layers.CWH_fiy-.js} +1 -1
- package/dist/{layers.BKOdDL4i.js → layers.CWjh5K2k.js} +1 -1
- package/dist/{layers.Gn4z3Gy5.js → layers.CZxnvXXE.js} +1 -1
- package/dist/{layers.BR6FKcCi.js → layers.C_zFlE8t.js} +2 -2
- package/dist/{layers.B7dcvVUG.js → layers.Cc285eCr.js} +4 -4
- package/dist/{layers.C2dg4Ra5.js → layers.Ccy_X90r.js} +1 -1
- package/dist/{layers.BhChXVPM.js → layers.CfXc3qKg.js} +1 -1
- package/dist/{layers.BGzd1JuJ.js → layers.Cf_Vv8pR.js} +1 -1
- package/dist/{layers.Dxymg-Ks.js → layers.Cft4spLi.js} +1 -1
- package/dist/{layers.DJnVHiT2.js → layers.CkRRtY8y.js} +1 -1
- package/dist/{layers.CJICnJCV.js → layers.CmWz2p8R.js} +3 -3
- package/dist/{layers.C0iVcAVM.js → layers.CmwA-UWj.js} +1 -1
- package/dist/{layers.SODdZbOE.js → layers.CoOupyZi.js} +1 -1
- package/dist/{layers.BCBQxNtt.js → layers.CoYACQ51.js} +1 -1
- package/dist/{layers.pX7mvaZb.js → layers.CqW0WH8h.js} +1 -1
- package/dist/{layers.DUt_7Rf9.js → layers.Cs24L6er.js} +6 -6
- package/dist/{layers.CJoRvtjW.js → layers.CssrNTYY.js} +1 -1
- package/dist/{layers.DQ5a8XKW.js → layers.CvsUduRC.js} +2 -2
- package/dist/{layers.CyU10-QV.js → layers.CylMkEpz.js} +1 -1
- package/dist/{layers.DMK9EqPJ.js → layers.CzDpU9XP.js} +1 -1
- package/dist/{layers.C5mkNc-W.js → layers.D-jANxcz.js} +1 -1
- package/dist/{layers.BQt4kMbw.js → layers.D03V-o0Q.js} +3 -3
- package/dist/{layers.XJN2EecE.js → layers.D0caFr3k.js} +1 -1
- package/dist/{layers.COnFY5ca.js → layers.D1bYVxit.js} +1 -1
- package/dist/{layers.DQfdoJaq.js → layers.D2fuAtZe.js} +1 -1
- package/dist/{layers.6fz8mhIy.js → layers.D4iE_lkf.js} +3 -3
- package/dist/{layers.BM0oXiml.js → layers.D4yEvADR.js} +1 -1
- package/dist/{layers.EdrHmpzc.js → layers.D5brU7Lw.js} +1 -1
- package/dist/{layers.jn-whuI5.js → layers.D61aPtly.js} +1 -1
- package/dist/{layers.Dk11VbXd.js → layers.D6UMp7Cc.js} +4 -4
- package/dist/layers.D6l2gBA7.js +8 -0
- package/dist/layers.D7aK5FRQ.js +1 -0
- package/dist/{layers.CjN38zEr.js → layers.D9HiMTqt.js} +4 -4
- package/dist/{layers.BNxV94q8.js → layers.D9dUjuKM.js} +1 -1
- package/dist/{layers.DeewAwHX.js → layers.DBPElbyW.js} +30 -30
- package/dist/{layers.DTMOFBdi.js → layers.DDDYvCKp.js} +1 -1
- package/dist/{layers.BOSha48t.js → layers.DDqpHjPk.js} +1 -1
- package/dist/{layers.Daj7r1fx.js → layers.DFZwPqkp.js} +1 -1
- package/dist/{layers.rpk8I3Rs.js → layers.DFsVVjwM.js} +1 -1
- package/dist/{layers.DhvaBoMA.js → layers.DGTuPehg.js} +1 -1
- package/dist/{layers.BYI9AcLy.js → layers.DIgPhktH.js} +1 -1
- package/dist/{layers.BYgxhJ2H.js → layers.DJQYObhk.js} +2 -2
- package/dist/{layers.Z0ysOUsU.js → layers.DMO2Y-6o.js} +2 -2
- package/dist/{layers.BWQeLzFA.js → layers.DMpbYOvF.js} +1 -1
- package/dist/{layers.DtYTJii1.js → layers.DNWTLSIo.js} +1 -1
- package/dist/{layers.DqwBZwUA.js → layers.DOOralMp.js} +7711 -7719
- package/dist/{layers.BoV5Y_mD.js → layers.DSh6q60l.js} +1 -1
- package/dist/{layers.CPV8DYpm.js → layers.DT_RyX3d.js} +2 -2
- package/dist/{layers.Cu83gUax.js → layers.DTqJVEPr.js} +1 -1
- package/dist/{layers.URwK-HsQ.js → layers.DWJ44u5w.js} +1 -1
- package/dist/{layers.BjZEV6Aq.js → layers.DWY3TwTy.js} +1 -1
- package/dist/{layers.YCeFD2c8.js → layers.DX9U3IPB.js} +1 -1
- package/dist/{layers.OqW1R3ng.js → layers.DYeXS-QP.js} +1 -1
- package/dist/{layers.yNB323QO.js → layers.Da6d8nGX.js} +1 -1
- package/dist/{layers.DHJnmWxW.js → layers.Da_RFxgR.js} +1 -1
- package/dist/{layers.ByQMFKH-.js → layers.Dckz5wNw.js} +1 -1
- package/dist/{layers.C8EvMkeq.js → layers.Dct_E2bD.js} +1 -1
- package/dist/{layers.ZPwt0ARg.js → layers.Dd1wvnBt.js} +4 -4
- package/dist/{layers.DaffRyZr.js → layers.DdbqeOnV.js} +1 -1
- package/dist/{layers.By0VUYTt.js → layers.Dei31eCT.js} +1 -1
- package/dist/{layers.D37LQsFw.js → layers.DepmS99X.js} +1 -1
- package/dist/{layers.KmCp1M0J.js → layers.Dffum43a.js} +1 -1
- package/dist/layers.DfuykROG.js +6 -0
- package/dist/{layers.De9n7YOa.js → layers.DgETXCcq.js} +1 -1
- package/dist/{layers.BWA8I_x-.js → layers.DgEW0s-H.js} +1 -1
- package/dist/{layers.CluVRSFu.js → layers.Dk-4LLsv.js} +1 -1
- package/dist/{layers.Cn2OUOlA.js → layers.DlWF_FuW.js} +1 -1
- package/dist/{layers.D1-lZHlX.js → layers.DlpxmYw_.js} +1 -1
- package/dist/{layers.CqrTE-hY.js → layers.Do2-VgDh.js} +1 -1
- package/dist/{layers.CxxIg0J_.js → layers.Dokm132B.js} +3 -3
- package/dist/{layers.CTWosVVW.js → layers.DqhjH09U.js} +2 -2
- package/dist/{layers.B4x1xhoo.js → layers.Ds2D3ty8.js} +1 -1
- package/dist/{layers.Ccrp4CFW.js → layers.DsHU8tA8.js} +1 -1
- package/dist/{layers.ZeKAfHim.js → layers.DsnA2jLL.js} +1 -1
- package/dist/{layers.BVbRPXwe.js → layers.DsqzdOBW.js} +1 -1
- package/dist/{layers.iWVrH8Sx.js → layers.Du4Gnblm.js} +3 -3
- package/dist/{layers.BvbiqAtz.js → layers.DvACRSHS.js} +57 -57
- package/dist/{layers.8kahG6oJ.js → layers.DvSGOk-1.js} +1 -1
- package/dist/{layers.fh7OmQT5.js → layers.DxPWMjZU.js} +1 -1
- package/dist/{layers.B3UVztxO.js → layers.Dzb2PSmw.js} +1 -1
- package/dist/{layers.jXB4oB52.js → layers.DzleFxEN.js} +1 -1
- package/dist/{layers.Sa--wyKU.js → layers.GUSw4uEA.js} +1 -1
- package/dist/{layers.BeXhszpn.js → layers.HZJ6Cawq.js} +1 -1
- package/dist/{layers.B4cnEWMy.js → layers.HfjxV8B4.js} +4 -4
- package/dist/{layers.CSq1Iw0G.js → layers.KFrwBDhr.js} +1 -1
- package/dist/{layers.BmKVSmhm.js → layers.Ke4AoyXy.js} +1 -1
- package/dist/{layers.C0N351va.js → layers.PEe5xYey.js} +1 -1
- package/dist/{layers.H2vFWKGJ.js → layers.Qau2jjLW.js} +1 -1
- package/dist/{layers.B9XSsEaf.js → layers.Qn6rj2ot.js} +1 -1
- package/dist/{layers.BWBv335Y.js → layers.Tt2GcbtA.js} +1 -1
- package/dist/{layers.D1LBfKux.js → layers.V4QTGZbB.js} +1 -1
- package/dist/{layers.BLERm4JI.js → layers.WpHz0Xam.js} +1 -1
- package/dist/{layers.ENpPel-B.js → layers.X-eOT0WC.js} +1 -1
- package/dist/{layers.D7KJSMh5.js → layers.YB1th7fM.js} +1 -1
- package/dist/{layers.DIZ5X4_I.js → layers.Z4qUARQA.js} +1 -1
- package/dist/{layers.BxSS9Pvh.js → layers.Zy0PnGjh.js} +1 -1
- package/dist/{layers.DehcW_fP.js → layers._x3_Pk5g.js} +1 -1
- package/dist/{layers.xSDBYrUl.js → layers.b6sGEvIQ.js} +1 -1
- package/dist/{layers.DtHiAm2x.js → layers.c4PKeflp.js} +1 -1
- package/dist/{layers.C-rLUneL.js → layers.dGYaKjQH.js} +12 -12
- package/dist/{layers.BYLZH1LA.js → layers.emEs-NMs.js} +1 -1
- package/dist/{layers.CtAC81Yd.js → layers.enkF-CY_.js} +3 -3
- package/dist/{layers.7LP4sl4i.js → layers.f2fxMC-j.js} +1 -1
- package/dist/{layers.CWqX-6eZ.js → layers.fplzivY8.js} +1 -1
- package/dist/{layers.COaVNa3J.js → layers.jNI1nzCq.js} +1 -1
- package/dist/{layers.kbHUB2aY.js → layers.k8sPjLzr.js} +4 -4
- package/dist/{layers.Da5wd5fu.js → layers.mfLe_yN6.js} +6 -6
- package/dist/{layers.CXTbtDQV.js → layers.qHfl1H7e.js} +1 -1
- package/dist/{layers.BEVANzs8.js → layers.qXX7ynxp.js} +1 -1
- package/dist/{layers.ChuFem-X.js → layers.r7DIxmHh.js} +1 -1
- package/dist/{layers.Ca9Qs1aF.js → layers.uQ3-_A9Z.js} +1 -1
- package/dist/{layers.DTihJxDz.js → layers.ujqgKtGL.js} +1 -1
- package/dist/{layers.DbV2OQTU.js → layers.vAHmcXqT.js} +1 -1
- package/dist/{layers.D5PVaHQj.js → layers.vomzBr7w.js} +1 -1
- package/dist/{layers.DjGGx0oT.js → layers.xbdb26bz.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.BvPxpYYa.js +0 -8
- package/dist/layers.Ck0PqeB5.js +0 -1
- package/dist/layers.gv-EBYMN.js +0 -1
- package/dist/layers.lsVmjvoj.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class o0 {
|
|
2
2
|
// The + prefix indicates that these fields aren't writeable
|
|
3
3
|
// Lexer holding the input string.
|
|
4
4
|
// Start offset, zero-based inclusive.
|
|
@@ -15,10 +15,10 @@ class u0 {
|
|
|
15
15
|
* - Otherwise, returns null.
|
|
16
16
|
*/
|
|
17
17
|
static range(e, t) {
|
|
18
|
-
return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new
|
|
18
|
+
return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new o0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class m0 {
|
|
22
22
|
// don't expand the token
|
|
23
23
|
// used in \noexpand
|
|
24
24
|
constructor(e, t) {
|
|
@@ -29,7 +29,7 @@ class f0 {
|
|
|
29
29
|
* the whole input range enclosed by these two.
|
|
30
30
|
*/
|
|
31
31
|
range(e, t) {
|
|
32
|
-
return new
|
|
32
|
+
return new m0(t, o0.range(this, e));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
class M {
|
|
@@ -300,7 +300,7 @@ class O0 {
|
|
|
300
300
|
return this.size >= 2;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
var ft = 0, Te = 1, ee = 2, B0 = 3, le = 4,
|
|
303
|
+
var ft = 0, Te = 1, ee = 2, B0 = 3, le = 4, f0 = 5, te = 6, n0 = 7, y0 = [new O0(ft, 0, !1), new O0(Te, 0, !0), new O0(ee, 1, !1), new O0(B0, 1, !0), new O0(le, 2, !1), new O0(f0, 2, !0), new O0(te, 3, !1), new O0(n0, 3, !0)], za = [le, f0, le, f0, te, n0, te, n0], Aa = [f0, f0, f0, f0, n0, n0, n0, n0], Ta = [ee, B0, le, f0, te, n0, te, n0], Ba = [B0, B0, f0, f0, n0, n0, n0, n0], Da = [Te, Te, B0, B0, f0, f0, n0, n0], Ca = [ft, Te, ee, B0, ee, B0, ee, B0], R = {
|
|
304
304
|
DISPLAY: y0[ft],
|
|
305
305
|
TEXT: y0[ee],
|
|
306
306
|
SCRIPT: y0[le],
|
|
@@ -3582,7 +3582,7 @@ function i(r, e, t, a, n, s) {
|
|
|
3582
3582
|
replace: a
|
|
3583
3583
|
}, s && a && ($[r][a] = $[r][n]);
|
|
3584
3584
|
}
|
|
3585
|
-
var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token",
|
|
3585
|
+
var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", c0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
|
|
3586
3586
|
i(l, u, f, "≡", "\\equiv", !0);
|
|
3587
3587
|
i(l, u, f, "≺", "\\prec", !0);
|
|
3588
3588
|
i(l, u, f, "≻", "\\succ", !0);
|
|
@@ -3640,9 +3640,9 @@ i(l, u, v, "‡", "\\ddag");
|
|
|
3640
3640
|
i(k, u, v, "‡", "\\ddag");
|
|
3641
3641
|
i(k, u, v, "‡", "\\textdaggerdbl");
|
|
3642
3642
|
i(l, u, i0, "⎱", "\\rmoustache", !0);
|
|
3643
|
-
i(l, u,
|
|
3643
|
+
i(l, u, c0, "⎰", "\\lmoustache", !0);
|
|
3644
3644
|
i(l, u, i0, "⟯", "\\rgroup", !0);
|
|
3645
|
-
i(l, u,
|
|
3645
|
+
i(l, u, c0, "⟮", "\\lgroup", !0);
|
|
3646
3646
|
i(l, u, D, "∓", "\\mp", !0);
|
|
3647
3647
|
i(l, u, D, "⊖", "\\ominus", !0);
|
|
3648
3648
|
i(l, u, D, "⊎", "\\uplus", !0);
|
|
@@ -3772,9 +3772,9 @@ i(l, d, v, "ℸ", "\\daleth", !0);
|
|
|
3772
3772
|
i(l, d, v, "ℷ", "\\gimel", !0);
|
|
3773
3773
|
i(l, d, v, "ϝ", "\\digamma", !0);
|
|
3774
3774
|
i(l, d, v, "ϰ", "\\varkappa");
|
|
3775
|
-
i(l, d,
|
|
3775
|
+
i(l, d, c0, "┌", "\\@ulcorner", !0);
|
|
3776
3776
|
i(l, d, i0, "┐", "\\@urcorner", !0);
|
|
3777
|
-
i(l, d,
|
|
3777
|
+
i(l, d, c0, "└", "\\@llcorner", !0);
|
|
3778
3778
|
i(l, d, i0, "┘", "\\@lrcorner", !0);
|
|
3779
3779
|
i(l, d, f, "≦", "\\leqq", !0);
|
|
3780
3780
|
i(l, d, f, "⩽", "\\leqslant", !0);
|
|
@@ -3993,9 +3993,9 @@ i(l, u, D, "∨", "\\lor");
|
|
|
3993
3993
|
i(l, u, D, "∧", "\\wedge", !0);
|
|
3994
3994
|
i(l, u, D, "∨", "\\vee", !0);
|
|
3995
3995
|
i(l, u, v, "√", "\\surd");
|
|
3996
|
-
i(l, u,
|
|
3997
|
-
i(l, u,
|
|
3998
|
-
i(l, u,
|
|
3996
|
+
i(l, u, c0, "⟨", "\\langle", !0);
|
|
3997
|
+
i(l, u, c0, "∣", "\\lvert");
|
|
3998
|
+
i(l, u, c0, "∥", "\\lVert");
|
|
3999
3999
|
i(l, u, i0, "?", "?");
|
|
4000
4000
|
i(l, u, i0, "!", "!");
|
|
4001
4001
|
i(l, u, i0, "⟩", "\\rangle", !0);
|
|
@@ -4053,25 +4053,25 @@ i(l, u, D, "⋄", "\\diamond");
|
|
|
4053
4053
|
i(l, u, D, "⋆", "\\star");
|
|
4054
4054
|
i(l, u, D, "◃", "\\triangleleft");
|
|
4055
4055
|
i(l, u, D, "▹", "\\triangleright");
|
|
4056
|
-
i(l, u,
|
|
4056
|
+
i(l, u, c0, "{", "\\{");
|
|
4057
4057
|
i(k, u, v, "{", "\\{");
|
|
4058
4058
|
i(k, u, v, "{", "\\textbraceleft");
|
|
4059
4059
|
i(l, u, i0, "}", "\\}");
|
|
4060
4060
|
i(k, u, v, "}", "\\}");
|
|
4061
4061
|
i(k, u, v, "}", "\\textbraceright");
|
|
4062
|
-
i(l, u,
|
|
4062
|
+
i(l, u, c0, "{", "\\lbrace");
|
|
4063
4063
|
i(l, u, i0, "}", "\\rbrace");
|
|
4064
|
-
i(l, u,
|
|
4064
|
+
i(l, u, c0, "[", "\\lbrack", !0);
|
|
4065
4065
|
i(k, u, v, "[", "\\lbrack", !0);
|
|
4066
4066
|
i(l, u, i0, "]", "\\rbrack", !0);
|
|
4067
4067
|
i(k, u, v, "]", "\\rbrack", !0);
|
|
4068
|
-
i(l, u,
|
|
4068
|
+
i(l, u, c0, "(", "\\lparen", !0);
|
|
4069
4069
|
i(l, u, i0, ")", "\\rparen", !0);
|
|
4070
4070
|
i(k, u, v, "<", "\\textless", !0);
|
|
4071
4071
|
i(k, u, v, ">", "\\textgreater", !0);
|
|
4072
|
-
i(l, u,
|
|
4072
|
+
i(l, u, c0, "⌊", "\\lfloor", !0);
|
|
4073
4073
|
i(l, u, i0, "⌋", "\\rfloor", !0);
|
|
4074
|
-
i(l, u,
|
|
4074
|
+
i(l, u, c0, "⌈", "\\lceil", !0);
|
|
4075
4075
|
i(l, u, i0, "⌉", "\\rceil", !0);
|
|
4076
4076
|
i(l, u, v, "\\", "\\backslash");
|
|
4077
4077
|
i(l, u, v, "∣", "|");
|
|
@@ -5017,7 +5017,7 @@ function je(r) {
|
|
|
5017
5017
|
} else
|
|
5018
5018
|
return !1;
|
|
5019
5019
|
}
|
|
5020
|
-
var
|
|
5020
|
+
var u0 = function(e, t, a) {
|
|
5021
5021
|
if (e.length === 1) {
|
|
5022
5022
|
var n = X(e[0], t);
|
|
5023
5023
|
return a && n instanceof h0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
|
|
@@ -5051,7 +5051,7 @@ var o0 = function(e, t, a) {
|
|
|
5051
5051
|
}
|
|
5052
5052
|
return s;
|
|
5053
5053
|
}, V0 = function(e, t, a) {
|
|
5054
|
-
return bt(
|
|
5054
|
+
return bt(u0(e, t, a));
|
|
5055
5055
|
}, X = function(e, t) {
|
|
5056
5056
|
if (!e)
|
|
5057
5057
|
return new S.MathNode("mrow");
|
|
@@ -5062,7 +5062,7 @@ var o0 = function(e, t, a) {
|
|
|
5062
5062
|
throw new M("Got group of unknown type: '" + e.type + "'");
|
|
5063
5063
|
};
|
|
5064
5064
|
function Wt(r, e, t, a, n) {
|
|
5065
|
-
var s =
|
|
5065
|
+
var s = u0(r, t), o;
|
|
5066
5066
|
s.length === 1 && s[0] instanceof h0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
|
|
5067
5067
|
var h = new S.MathNode("annotation", [new S.TextNode(e)]);
|
|
5068
5068
|
h.setAttribute("encoding", "application/x-tex");
|
|
@@ -5565,7 +5565,7 @@ function Er(r, e) {
|
|
|
5565
5565
|
return B1([r.mclass], t, e);
|
|
5566
5566
|
}
|
|
5567
5567
|
function Rr(r, e) {
|
|
5568
|
-
var t, a =
|
|
5568
|
+
var t, a = u0(r.body, e);
|
|
5569
5569
|
return r.mclass === "minner" ? t = new S.MathNode("mpadded", a) : r.mclass === "mord" ? r.isCharacterBox ? (t = a[0], t.type = "mi") : t = new S.MathNode("mi", a) : (r.isCharacterBox ? (t = a[0], t.type = "mo") : t = new S.MathNode("mo", a), r.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : r.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : r.mclass === "mopen" || r.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : r.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
|
|
5570
5570
|
}
|
|
5571
5571
|
B({
|
|
@@ -5677,7 +5677,7 @@ B({
|
|
|
5677
5677
|
return a.style.textShadow = "0.02em 0.01em 0.04px", a;
|
|
5678
5678
|
},
|
|
5679
5679
|
mathmlBuilder(r, e) {
|
|
5680
|
-
var t =
|
|
5680
|
+
var t = u0(r.body, e), a = new S.MathNode("mstyle", t);
|
|
5681
5681
|
return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a;
|
|
5682
5682
|
}
|
|
5683
5683
|
});
|
|
@@ -5890,7 +5890,7 @@ var Ir = (r, e) => {
|
|
|
5890
5890
|
var t = t0(r.body, e.withColor(r.color), !1);
|
|
5891
5891
|
return b.makeFragment(t);
|
|
5892
5892
|
}, Fr = (r, e) => {
|
|
5893
|
-
var t =
|
|
5893
|
+
var t = u0(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
|
|
5894
5894
|
return a.setAttribute("mathcolor", r.color), a;
|
|
5895
5895
|
};
|
|
5896
5896
|
B({
|
|
@@ -6184,8 +6184,8 @@ var ie = function(e, t, a) {
|
|
|
6184
6184
|
var F0 = Y - T - O + 2 * mt;
|
|
6185
6185
|
e0.push(Ke(p, F0, n));
|
|
6186
6186
|
} else {
|
|
6187
|
-
var
|
|
6188
|
-
e0.push(Ke(p,
|
|
6187
|
+
var d0 = (Y - T - O - V) / 2 + 2 * mt;
|
|
6188
|
+
e0.push(Ke(p, d0, n)), e0.push(Se), e0.push(Ze(c, x, s)), e0.push(Se), e0.push(Ke(p, d0, n));
|
|
6189
6189
|
}
|
|
6190
6190
|
e0.push(Se), e0.push(Ze(h, x, s));
|
|
6191
6191
|
}
|
|
@@ -6489,7 +6489,7 @@ B({
|
|
|
6489
6489
|
},
|
|
6490
6490
|
mathmlBuilder: (r, e) => {
|
|
6491
6491
|
Jt(r);
|
|
6492
|
-
var t =
|
|
6492
|
+
var t = u0(r.body, e);
|
|
6493
6493
|
if (r.left !== ".") {
|
|
6494
6494
|
var a = new S.MathNode("mo", [v0(r.left, r.mode)]);
|
|
6495
6495
|
a.setAttribute("fence", "true"), t.unshift(a);
|
|
@@ -6823,7 +6823,7 @@ function U0(r, e, t) {
|
|
|
6823
6823
|
c && r.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
6824
6824
|
}
|
|
6825
6825
|
function V() {
|
|
6826
|
-
F && (r.gullet.macros.get("\\df@tag") ? (F.push(r.subparse([new
|
|
6826
|
+
F && (r.gullet.macros.get("\\df@tag") ? (F.push(r.subparse([new m0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : F.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
|
|
6827
6827
|
}
|
|
6828
6828
|
for (O(), N.push(Qt(r)); ; ) {
|
|
6829
6829
|
var L = r.parseExpression(!1, p ? "\\end" : "\\\\");
|
|
@@ -6923,19 +6923,19 @@ var S0 = function(e, t) {
|
|
|
6923
6923
|
n < h || R0 < Y0.length;
|
|
6924
6924
|
++n, ++R0
|
|
6925
6925
|
) {
|
|
6926
|
-
for (var
|
|
6927
|
-
if (ne || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)),
|
|
6928
|
-
var Pe =
|
|
6926
|
+
for (var d0 = Y0[R0] || {}, ne = !0; d0.type === "separator"; ) {
|
|
6927
|
+
if (ne || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), d0.separator === "|" || d0.separator === ":") {
|
|
6928
|
+
var Pe = d0.separator === "|" ? "solid" : "dashed", K0 = b.makeSpan(["vertical-separator"], [], t);
|
|
6929
6929
|
K0.style.height = A(O), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
|
|
6930
6930
|
var Et = O - e0;
|
|
6931
6931
|
Et && (K0.style.verticalAlign = A(-Et)), s0.push(K0);
|
|
6932
6932
|
} else
|
|
6933
|
-
throw new M("Invalid separator type: " +
|
|
6934
|
-
R0++,
|
|
6933
|
+
throw new M("Invalid separator type: " + d0.separator);
|
|
6934
|
+
R0++, d0 = Y0[R0] || {}, ne = !1;
|
|
6935
6935
|
}
|
|
6936
6936
|
if (!(n >= h)) {
|
|
6937
6937
|
var J0 = void 0;
|
|
6938
|
-
(n > 0 || e.hskipBeforeAndAfter) && (J0 = q.deflt(
|
|
6938
|
+
(n > 0 || e.hskipBeforeAndAfter) && (J0 = q.deflt(d0.pregap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
|
|
6939
6939
|
var Q0 = [];
|
|
6940
6940
|
for (a = 0; a < s; ++a) {
|
|
6941
6941
|
var ce = c[a], de = ce[n];
|
|
@@ -6951,7 +6951,7 @@ var S0 = function(e, t) {
|
|
|
6951
6951
|
Q0 = b.makeVList({
|
|
6952
6952
|
positionType: "individualShift",
|
|
6953
6953
|
children: Q0
|
|
6954
|
-
}, t), Q0 = b.makeSpan(["col-align-" + (
|
|
6954
|
+
}, t), Q0 = b.makeSpan(["col-align-" + (d0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = q.deflt(d0.postgap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
|
|
6955
6955
|
}
|
|
6956
6956
|
}
|
|
6957
6957
|
if (c = b.makeSpan(["mtable"], s0), p.length > 0) {
|
|
@@ -7960,7 +7960,7 @@ B({
|
|
|
7960
7960
|
return b.makeFragment(t);
|
|
7961
7961
|
},
|
|
7962
7962
|
mathmlBuilder(r, e) {
|
|
7963
|
-
return new S.MathNode("mrow",
|
|
7963
|
+
return new S.MathNode("mrow", u0(r.body, e));
|
|
7964
7964
|
}
|
|
7965
7965
|
});
|
|
7966
7966
|
B({
|
|
@@ -8434,7 +8434,7 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8434
8434
|
if (r.symbol)
|
|
8435
8435
|
t = new h0("mo", [v0(r.name, r.mode)]), q.contains(ta, r.name) && t.setAttribute("largeop", "false");
|
|
8436
8436
|
else if (r.body)
|
|
8437
|
-
t = new h0("mo",
|
|
8437
|
+
t = new h0("mo", u0(r.body, e));
|
|
8438
8438
|
else {
|
|
8439
8439
|
t = new h0("mi", [new w0(r.name.slice(1))]);
|
|
8440
8440
|
var a = new h0("mo", [v0("", "text")]);
|
|
@@ -8599,7 +8599,7 @@ var ra = (r, e) => {
|
|
|
8599
8599
|
o = b.makeSpan(["mop"], [], e);
|
|
8600
8600
|
return n ? ea(o, t, a, e, e.style, 0, 0) : o;
|
|
8601
8601
|
}, K1 = (r, e) => {
|
|
8602
|
-
for (var t =
|
|
8602
|
+
for (var t = u0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
|
|
8603
8603
|
var s = t[n];
|
|
8604
8604
|
if (!(s instanceof S.SpaceNode)) if (s instanceof S.MathNode)
|
|
8605
8605
|
switch (s.type) {
|
|
@@ -8727,7 +8727,7 @@ B({
|
|
|
8727
8727
|
return b.makeFragment(t);
|
|
8728
8728
|
},
|
|
8729
8729
|
mathmlBuilder: (r, e) => {
|
|
8730
|
-
var t =
|
|
8730
|
+
var t = u0(r.body, e);
|
|
8731
8731
|
return new S.MathNode("mphantom", t);
|
|
8732
8732
|
}
|
|
8733
8733
|
});
|
|
@@ -8762,7 +8762,7 @@ B({
|
|
|
8762
8762
|
}, e), b.makeSpan(["mord"], [t], e);
|
|
8763
8763
|
},
|
|
8764
8764
|
mathmlBuilder: (r, e) => {
|
|
8765
|
-
var t =
|
|
8765
|
+
var t = u0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
|
|
8766
8766
|
return n.setAttribute("height", "0px"), n.setAttribute("depth", "0px"), n;
|
|
8767
8767
|
}
|
|
8768
8768
|
});
|
|
@@ -8788,7 +8788,7 @@ B({
|
|
|
8788
8788
|
return b.makeSpan(["mord", "rlap"], [t, a], e);
|
|
8789
8789
|
},
|
|
8790
8790
|
mathmlBuilder: (r, e) => {
|
|
8791
|
-
var t =
|
|
8791
|
+
var t = u0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
|
|
8792
8792
|
return n.setAttribute("width", "0px"), n;
|
|
8793
8793
|
}
|
|
8794
8794
|
});
|
|
@@ -8912,7 +8912,7 @@ B({
|
|
|
8912
8912
|
},
|
|
8913
8913
|
htmlBuilder: J1,
|
|
8914
8914
|
mathmlBuilder: (r, e) => {
|
|
8915
|
-
var t = e.havingSize(r.size), a =
|
|
8915
|
+
var t = e.havingSize(r.size), a = u0(r.body, t), n = new S.MathNode("mstyle", a);
|
|
8916
8916
|
return n.setAttribute("mathsize", A(t.sizeMultiplier)), n;
|
|
8917
8917
|
}
|
|
8918
8918
|
});
|
|
@@ -9078,7 +9078,7 @@ B({
|
|
|
9078
9078
|
return aa(r.body, a, e);
|
|
9079
9079
|
},
|
|
9080
9080
|
mathmlBuilder(r, e) {
|
|
9081
|
-
var t = ir[r.style], a = e.havingStyle(t), n =
|
|
9081
|
+
var t = ir[r.style], a = e.havingStyle(t), n = u0(r.body, a), s = new S.MathNode("mstyle", n), o = {
|
|
9082
9082
|
display: ["0", "true"],
|
|
9083
9083
|
text: ["0", "false"],
|
|
9084
9084
|
script: ["1", "false"],
|
|
@@ -9501,17 +9501,17 @@ class mr {
|
|
|
9501
9501
|
lex() {
|
|
9502
9502
|
var e = this.input, t = this.tokenRegex.lastIndex;
|
|
9503
9503
|
if (t === e.length)
|
|
9504
|
-
return new
|
|
9504
|
+
return new m0("EOF", new o0(this, t, t));
|
|
9505
9505
|
var a = this.tokenRegex.exec(e);
|
|
9506
9506
|
if (a === null || a.index !== t)
|
|
9507
|
-
throw new M("Unexpected character: '" + e[t] + "'", new
|
|
9507
|
+
throw new M("Unexpected character: '" + e[t] + "'", new m0(e[t], new o0(this, t, t + 1)));
|
|
9508
9508
|
var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
|
|
9509
9509
|
if (this.catcodes[n] === 14) {
|
|
9510
9510
|
var s = e.indexOf(`
|
|
9511
9511
|
`, this.tokenRegex.lastIndex);
|
|
9512
9512
|
return s === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = s + 1, this.lex();
|
|
9513
9513
|
}
|
|
9514
|
-
return new
|
|
9514
|
+
return new m0(n, new o0(this, t, this.tokenRegex.lastIndex));
|
|
9515
9515
|
}
|
|
9516
9516
|
}
|
|
9517
9517
|
class s4 {
|
|
@@ -10257,7 +10257,7 @@ class o4 {
|
|
|
10257
10257
|
start: t,
|
|
10258
10258
|
end: a
|
|
10259
10259
|
} = this.consumeArg());
|
|
10260
|
-
return this.pushToken(new
|
|
10260
|
+
return this.pushToken(new m0("EOF", a.loc)), this.pushTokens(n), new m0("", o0.range(t, a));
|
|
10261
10261
|
}
|
|
10262
10262
|
/**
|
|
10263
10263
|
* Consume all following space tokens, without expansion.
|
|
@@ -10399,7 +10399,7 @@ class o4 {
|
|
|
10399
10399
|
* tokens, or return `undefined` if no such macro is defined.
|
|
10400
10400
|
*/
|
|
10401
10401
|
expandMacro(e) {
|
|
10402
|
-
return this.macros.has(e) ? this.expandTokens([new
|
|
10402
|
+
return this.macros.has(e) ? this.expandTokens([new m0(e)]) : void 0;
|
|
10403
10403
|
}
|
|
10404
10404
|
/**
|
|
10405
10405
|
* Fully expand the given token stream and return the resulting list of
|
|
@@ -11017,7 +11017,7 @@ class He {
|
|
|
11017
11017
|
*/
|
|
11018
11018
|
subparse(e) {
|
|
11019
11019
|
var t = this.nextToken;
|
|
11020
|
-
this.consume(), this.gullet.pushToken(new
|
|
11020
|
+
this.consume(), this.gullet.pushToken(new m0("}")), this.gullet.pushTokens(e);
|
|
11021
11021
|
var a = this.parseExpression(!1);
|
|
11022
11022
|
return this.expect("}"), this.nextToken = t, a;
|
|
11023
11023
|
}
|
|
@@ -11159,11 +11159,11 @@ class He {
|
|
|
11159
11159
|
};
|
|
11160
11160
|
} else if (Me[s.text]) {
|
|
11161
11161
|
var p = fr.test(s.text), g = [];
|
|
11162
|
-
for (g.push(new
|
|
11162
|
+
for (g.push(new m0(Me[s.text])), this.consume(); ; ) {
|
|
11163
11163
|
var y = this.fetch().text;
|
|
11164
11164
|
if (!Me[y] || fr.test(y) !== p)
|
|
11165
11165
|
break;
|
|
11166
|
-
g.unshift(new
|
|
11166
|
+
g.unshift(new m0(Me[y])), this.consume();
|
|
11167
11167
|
}
|
|
11168
11168
|
var w = this.subparse(g);
|
|
11169
11169
|
p ? n = {
|
|
@@ -11418,7 +11418,7 @@ class He {
|
|
|
11418
11418
|
this.expect(o), this.gullet.endGroup(), s = {
|
|
11419
11419
|
type: "ordgroup",
|
|
11420
11420
|
mode: this.mode,
|
|
11421
|
-
loc:
|
|
11421
|
+
loc: o0.range(a, c),
|
|
11422
11422
|
body: h,
|
|
11423
11423
|
// A group formed by \begingroup...\endgroup is a semi-simple group
|
|
11424
11424
|
// which doesn't affect spacing in math mode, i.e., is transparent.
|
|
@@ -11447,17 +11447,17 @@ class He {
|
|
|
11447
11447
|
s === "-" && e[a + 1].text === "-" && (a + 1 < t && e[a + 2].text === "-" ? (e.splice(a, 3, {
|
|
11448
11448
|
type: "textord",
|
|
11449
11449
|
mode: "text",
|
|
11450
|
-
loc:
|
|
11450
|
+
loc: o0.range(n, e[a + 2]),
|
|
11451
11451
|
text: "---"
|
|
11452
11452
|
}), t -= 2) : (e.splice(a, 2, {
|
|
11453
11453
|
type: "textord",
|
|
11454
11454
|
mode: "text",
|
|
11455
|
-
loc:
|
|
11455
|
+
loc: o0.range(n, e[a + 1]),
|
|
11456
11456
|
text: "--"
|
|
11457
11457
|
}), t -= 1)), (s === "'" || s === "`") && e[a + 1].text === s && (e.splice(a, 2, {
|
|
11458
11458
|
type: "textord",
|
|
11459
11459
|
mode: "text",
|
|
11460
|
-
loc:
|
|
11460
|
+
loc: o0.range(n, e[a + 1]),
|
|
11461
11461
|
text: s + s
|
|
11462
11462
|
}), t -= 1);
|
|
11463
11463
|
}
|
|
@@ -11487,7 +11487,7 @@ class He {
|
|
|
11487
11487
|
var o;
|
|
11488
11488
|
if ($[this.mode][t]) {
|
|
11489
11489
|
this.settings.strict && this.mode === "math" && lt.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
|
|
11490
|
-
var h = $[this.mode][t].group, c =
|
|
11490
|
+
var h = $[this.mode][t].group, c = o0.range(e), p;
|
|
11491
11491
|
if (Ka.hasOwnProperty(h)) {
|
|
11492
11492
|
var g = h;
|
|
11493
11493
|
p = {
|
|
@@ -11509,7 +11509,7 @@ class He {
|
|
|
11509
11509
|
this.settings.strict && (gr(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), o = {
|
|
11510
11510
|
type: "textord",
|
|
11511
11511
|
mode: "text",
|
|
11512
|
-
loc:
|
|
11512
|
+
loc: o0.range(e),
|
|
11513
11513
|
text: t
|
|
11514
11514
|
};
|
|
11515
11515
|
else
|
|
@@ -11525,7 +11525,7 @@ class He {
|
|
|
11525
11525
|
o = {
|
|
11526
11526
|
type: "accent",
|
|
11527
11527
|
mode: this.mode,
|
|
11528
|
-
loc:
|
|
11528
|
+
loc: o0.range(e),
|
|
11529
11529
|
label: x,
|
|
11530
11530
|
isStretchy: !1,
|
|
11531
11531
|
isShifty: !0,
|
|
@@ -11550,7 +11550,7 @@ var Nt = function(e, t) {
|
|
|
11550
11550
|
type: "tag",
|
|
11551
11551
|
mode: "text",
|
|
11552
11552
|
body: n,
|
|
11553
|
-
tag: a.subparse([new
|
|
11553
|
+
tag: a.subparse([new m0("\\df@tag")])
|
|
11554
11554
|
}];
|
|
11555
11555
|
}
|
|
11556
11556
|
return n;
|
|
@@ -11589,7 +11589,7 @@ var u4 = function(e, t) {
|
|
|
11589
11589
|
} catch (s) {
|
|
11590
11590
|
return ha(s, e, a);
|
|
11591
11591
|
}
|
|
11592
|
-
}, c4 = "0.16.
|
|
11592
|
+
}, c4 = "0.16.23", d4 = {
|
|
11593
11593
|
Span: he,
|
|
11594
11594
|
Anchor: vt,
|
|
11595
11595
|
SymbolNode: p0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./layers.
|
|
1
|
+
"use strict";const a=require("./layers.CR8olQUJ.js"),c=require("./layers.DBPElbyW.js"),o=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},l=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(s,e).lower()},d=(s,t)=>{const e=t.text.replace(c.lineBreakRegex," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},x=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const i=a.distExports.sanitizeUrl(r);n.attr("xlink:href",i)},g=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const i=a.distExports.sanitizeUrl(r);n.attr("xlink:href",`#${i}`)},h=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),y=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});exports.drawBackgroundRect=l;exports.drawEmbeddedImage=g;exports.drawImage=x;exports.drawRect=o;exports.drawText=d;exports.getNoteRect=h;exports.getTextObj=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("lodash-es"),J=require("./layers.COAF7f8g.js"),k=require("./layers.9QK1wiQj.js"),u=require("./layers.DO6cpPmP.js"),i=require("./layers.DeewAwHX.js"),j=require("./layers.CXTbtDQV.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),D=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)D(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},B=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...B(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=B(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),D(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
|
|
1
|
+
"use strict";const P=require("lodash-es"),J=require("./layers.COAF7f8g.js"),k=require("./layers.9QK1wiQj.js"),u=require("./layers.BTEUd5-p.js"),i=require("./layers.DBPElbyW.js"),j=require("./layers.qHfl1H7e.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),D=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)D(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},B=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...B(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=B(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),D(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./layers.DBPElbyW.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.dGYaKjQH.js";
|
|
2
2
|
var u = { paste: "បិទភ្ជាប់", pasteAsPlaintext: "បិទភ្ជាប់ជាអត្ថបទធម្មតា", pasteCharts: "បិទភ្ជាប់តារាង", selectAll: "ជ្រើសរើសទាំងអស់", multiSelect: "បន្ថែមធាតុទៅលើការជ្រើសរើស", moveCanvas: "ផ្លាស់ទីបាវ", cut: "កាត់", copy: "ចម្លង", copyAsPng: "ចម្លងទៅក្តារតម្បៀតខ្ទាស់ជា PNG", copyAsSvg: "ចម្លងទៅក្តារតម្បៀតខ្ទាស់ជា SVG", copyText: "ចម្លងទៅក្តារតម្បៀតខ្ទាស់ជាអត្ថបទ", copySource: "", convertToCode: "", bringForward: "នាំយកទៅលើ", sendToBack: "នាំយកទៅក្រោយបង្អស់", bringToFront: "នាំយកទៅលើបង្អស់", sendBackward: "នាំយកទៅក្រោយ", delete: "លុប", copyStyles: "ចម្លងរចនាប័ទ្ម", pasteStyles: "បិទភ្ជាប់រចនាប័ទ្ម", stroke: "ខ្វាច់", background: "ផ្ទៃខាងក្រោយ", fill: "បំពេញ", strokeWidth: "ទទឹងខ្វាច់", strokeStyle: "រចនាប័ទ្មរបស់ខ្វាច់", strokeStyle_solid: "តាន់", strokeStyle_dashed: "ដាច់ៗ", strokeStyle_dotted: "ចំណុចៗ", sloppiness: "រចនាប័ទ្មបន្ទាត់", opacity: "ភាពច្បាស់", textAlign: "តម្រឹមអត្ថបទ", edges: "គែម", sharp: "មុត", round: "រាងមូល", arrowheads: "ក្បាលព្រួញ", arrowhead_none: "គ្មាន", arrowhead_arrow: "ព្រួញ", arrowhead_bar: "របារ", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "ត្រីកោណ", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "ទំហំពុម្ពអក្សរ", fontFamily: "ក្រុមពុម្ពអក្សរ", addWatermark: 'បន្ថែមវ៉ាត់ធើម៉ាក "Made with Excalidraw"', handDrawn: "គូរដោយដៃ", normal: "ធម្មតា", code: "កូដ", small: "តូច", medium: "មធ្យម", large: "ធំ", veryLarge: "ធំខ្លាំង", solid: "តាន់", hachure: "Hachure", zigzag: "Zigzag", crossHatch: "បន្ទាត់ឆ្នូតៗ", thin: "ស្តើង", bold: "ដឹត", left: "ខាងឆ្វេង", center: "កណ្ដាល", right: "នៅខាងស្ដាំ", extraBold: "ដិតបន្ថែម", architect: "ស្ថាបត្យករ", artist: "សិល្បៈករ", cartoonist: "អ្នកគំនូរជីវចល", fileTitle: "ឈ្មោះឯកសារ", colorPicker: "ឧបករណ៍ជ្រើសពណ៌", canvasColors: "ប្រើលើបាវ", canvasBackground: "ផ្ទៃខាងក្រោយបាវ", drawingCanvas: "តំបន់គំនូរ", layers: "ស្រទាប់", actions: "សកម្មភាព", language: "ភាសា", liveCollaboration: "សហការគ្នាផ្ទាល់...", duplicateSelection: "ចម្លង", untitled: "គ្មានឈ្មោះ", name: "ឈ្មោះ", yourName: "ឈ្មោះរបស់អ្នក", madeWithExcalidraw: "បង្កើតជាមួយ Excalidraw", group: "ការជ្រើសរើសជាក្រុម", ungroup: "បំបែកក្រុមការជ្រើសរើសជាក្រុម", collaborators: "អ្នកសហការ", showGrid: "បង្ហាញក្រឡាចត្រង្គ", addToLibrary: "បន្ថែមទៅបណ្ណាល័យ", removeFromLibrary: "លុបចេញពីបណ្ណាល័យ", libraryLoadingMessage: "កំពុងផ្ទុកបណ្ណាល័យ...", libraries: "រកមើលបណ្ណាល័យ", loadingScene: "កំពុងផ្ទុកស៊ីន...", align: "តម្រឹម", alignTop: "តម្រឹមផ្នែកខាងលើ", alignBottom: "តម្រឹមផ្នែកខាងក្រោម", alignLeft: "តម្រឹមឆ្វេង", alignRight: "តម្រឹមស្តាំ", centerVertically: "កណ្តាលបញ្ឈរ", centerHorizontally: "កណ្តាលផ្ដេក", distributeHorizontally: "ចែកចាយផ្ដេក", distributeVertically: "ចែកចាយបញ្ឈរ", flipHorizontal: "ត្រឡប់ដោយផ្ដេក", flipVertical: "ត្រឡប់ដោយបញ្ឈរ", viewMode: "ម៉ូដបង្ហាញ", share: "ចែករំលែក", showStroke: "បង្ហាញឧបករណ៍ជ្រើសរើសពណ៌ខ្វាច់", showBackground: "បង្ហាញឧបករណ៍ជ្រើសរើសពណ៌ផ្ទៃខាងក្រោយ", toggleTheme: "បិទ/បើកប្រធានបទ", personalLib: "បណ្ណាល័យផ្ទាល់ខ្លួន", excalidrawLib: "បណ្ណាល័យ Excalidraw", decreaseFontSize: "បន្ថយទំហំពុម្ពអក្សរ", increaseFontSize: "បង្កើនទំហំពុម្ពអក្សរ", unbindText: "ស្រាយអត្ថបទ", bindText: "ភ្ជាប់អត្ថបទទៅប្រអប់", createContainerFromText: "រុំអត្ថបទក្នុងប្រអប់មួយ", link: { edit: "កែតំណភ្ជាប់", editEmbed: "", create: "បង្កើតតំណភ្ជាប់", createEmbed: "", label: "តំណ", labelEmbed: "", empty: "" }, lineEditor: { edit: "កែសម្រួលបន្ទាត់", exit: "ចាកចេញពីការកែសម្រួលបន្ទាត់" }, elementLock: { lock: "ចាក់សោ", unlock: "ដោះសោ", lockAll: "ចាក់សោទាំងអស់", unlockAll: "ដោះសោទាំងអស់" }, statusPublished: "ត្រូវបានបោះពុម្ពផ្សាយ", sidebarLock: "ទុករបារចំហៀងបើក", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, B = { noItems: "មិនទាន់មានធាតុបន្ថែមទេ...", hint_emptyLibrary: "ជ្រើសរើសធាតុនៅលើបាវដើម្បីបន្ថែមវានៅទីនេះ ឬដំឡើងបណ្ណាល័យពីឃ្លាំងសាធារណៈខាងក្រោម។", hint_emptyPrivateLibrary: "ជ្រើសរើសធាតុនៅលើបាវដើម្បីបន្ថែមវានៅទីនេះ" }, C = { clearReset: "កំណត់បាវឡើងវិញ", exportJSON: "នាំចេញជាឯកសារ", exportImage: "នាំរូបភាពចេញ", export: "រក្សាទុកនៅ...", copyToClipboard: "ចម្លងទៅក្តារតម្បៀតខ្ទាស់", save: "រក្សាទុកទៅឯកសារបច្ចុប្បន្ន", saveAs: "រក្សាទុកជា", load: "បើក", getShareableLink: "យកតំណដែលអាចចែករំលែកបាន", close: "បិទ", selectLanguage: "រើសភាសា", scrollBackToContent: "រំកិលត្រឡប់ទៅមាតិកាវិញ", zoomIn: "ពង្រីក", zoomOut: "បង្រួម", resetZoom: "កំណត់ការពង្រីកឡើងវិញ", menu: "ម៉ឺនុយ", done: "រួចរាល់", edit: "កែ", undo: "ត្រឡប់វិញ", redo: "ធ្វើវិញ", resetLibrary: "កំណត់បណ្ណាល័យឡើងវិញ", createNewRoom: "បង្កើតបន្ទប់ថ្មី", fullScreen: "ពេញអេក្រង់", darkMode: "ម៉ូដងងឹត", lightMode: "ម៉ូដភ្លឺ", zenMode: "ម៉ូត Zen", objectsSnapMode: "", exitZenMode: "ចេញពី zen ម៉ូត", cancel: "បោះបង់", clear: "សម្អាត", remove: "ដកចេញ", embed: "", publishLibrary: "បោះពុម្ពផ្សាយ", submit: "ដាក់ស្នើ", confirm: "បញ្ជាក់", embeddableInteractionButton: "" }, D = { clearReset: "វានឹងសម្អាតបាវទាំងមូល។ តើអ្នកប្រាកដឬអត់?", couldNotCreateShareableLink: "មិនអាចបង្កើតតំណដែលអាចចែករំលែកបានទេ។", couldNotCreateShareableLinkTooBig: "មិនអាចបង្កើតតំណដែលអាចចែករំលែកបាន៖ ស៊ីនធំពេក", couldNotLoadInvalidFile: "មិនអាចផ្ទុកឯកសារមិនត្រឹមត្រូវបានទេ។", importBackendFailed: "ការនាំចូលពីម៉ាស៊ីនមេបានបរាជ័យ។", cannotExportEmptyCanvas: "មិនអាចនាំចេញបាវទទេបានទេ។", couldNotCopyToClipboard: "មិនអាចចម្លងទៅក្ដារតម្បៀតខ្ទាស់បានទេ។", decryptFailed: "មិនអាចឌិគ្រីបទិន្នន័យបានទេ។", uploadedSecurly: "ការបង្ហោះត្រូវបានការពារដោយការអ៊ិនគ្រីបពីចុងដល់ចប់ មានន័យថា ទាំងម៉ាស៊ីនមេរបស់ Excalidraw ឬភាគីទីបីមិនអាចអានខ្លឹមសារបានទេ។", loadSceneOverridePrompt: "ការផ្ទុកគំនូរខាងក្រៅនឹងជំនួសមាតិកាដែលមានស្រាប់របស់អ្នក។ តើអ្នកចង់បន្តទេ?", collabStopOverridePrompt: `ការបញ្ឈប់សម័យនឹងសរសេរជាន់លើគំនូរដែលបានរក្សាទុកនៅលើកុំព្យូទ័ររបស់អ្នកពីមុន។ តើអ្នកប្រាកដឬអត់?
|
|
3
3
|
|
|
4
4
|
(ប្រសិនបើអ្នកចង់រក្សាគំនូរដែលនៅលើកុំព្យូទ័ររបស់អ្នក គ្រាន់តែបិទផ្ទាំងកម្មវិធីរុករក។)`, errorAddingToLibrary: "មិនអាចបន្ថែមធាតុទៅបណ្ណាល័យបានទេ", errorRemovingFromLibrary: "មិនអាចលុបធាតុចេញពីបណ្ណាល័យបានទេ", confirmAddLibrary: "វានឹងបន្ថែមរូបរាង {{numShapes}} ទៅបណ្ណាល័យរបស់អ្នក។ តើអ្នកប្រាកដឬអត់?", imageDoesNotContainScene: "រូបភាពនេះហាក់ដូចជាមិនមានទិន្នន័យស៊ីនណាមួយទេ។ តើអ្នកបានបើកការបង្កប់ស៊ីននៅពេលនាំចេញទេ?", cannotRestoreFromImage: "មិនអាចស្ដារស៊ីនពីឯកសាររូបភាពនេះបានទេ", invalidSceneUrl: "មិនអាចនាំចូលស៊ីនពី URL ដែលបានផ្តល់ឱ្យទេ។ វាមានទម្រង់ខុស ឬមិនមានទិន្នន័យ Excalidraw JSON ដែលត្រឹមត្រូវ។", resetLibrary: "វានឹងសម្អាតបាវទាំងមូល។ តើអ្នកប្រាកដឬអត់?", removeItemsFromsLibrary: "តើអ្នកប្រាកដថាចង់លុប {{count}} ធាតុចេញពីបណ្ណាល័យទេ?", invalidEncryptionKey: "សោអ៊ីនគ្រីបត្រូវតែមាន 22 តួអក្សរ។ ការសហការផ្ទាល់ត្រូវបានបិទ។", collabOfflineWarning: `គ្មានការតភ្ជាប់អ៊ីនធឺណិត។
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const X=require("./layers.
|
|
1
|
+
"use strict";const X=require("./layers.DvACRSHS.js"),T=require("./layers.DMkBISW1.js");function N(H,Y){for(var d=0;d<Y.length;d++){const I=Y[d];if(typeof I!="string"&&!Array.isArray(I)){for(const R in I)if(R!=="default"&&!(R in H)){const v=Object.getOwnPropertyDescriptor(I,R);v&&Object.defineProperty(H,R,v.get?v:{enumerable:!0,get:()=>I[R]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};/*!
|
|
2
2
|
|
|
3
3
|
pica
|
|
4
4
|
https://github.com/nodeca/pica
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.dGYaKjQH.js";
|
|
2
2
|
var u = { paste: "貼り付け", pasteAsPlaintext: "書式なしテキストとして貼り付け", pasteCharts: "チャートの貼り付け", selectAll: "すべて選択", multiSelect: "複数選択", moveCanvas: "キャンバスを移動", cut: "切り取り", copy: "コピー", copyAsPng: "PNGとしてクリップボードへコピー", copyAsSvg: "SVGとしてクリップボードへコピー", copyText: "テキストとしてクリップボードにコピー", copySource: "", convertToCode: "", bringForward: "前面に移動", sendToBack: "最背面に移動", bringToFront: "最前面に移動", sendBackward: "背面に移動", delete: "削除", copyStyles: "スタイルのコピー", pasteStyles: "スタイルの貼り付け", stroke: "線", background: "背景", fill: "塗りつぶし", strokeWidth: "線の太さ", strokeStyle: "線の種類", strokeStyle_solid: "実線", strokeStyle_dashed: "破線", strokeStyle_dotted: "点線", sloppiness: "ばらつき加減", opacity: "透明度", textAlign: "文字の配置", edges: "角", sharp: "四角", round: "丸", arrowheads: "線の終点", arrowhead_none: "なし", arrowhead_arrow: "矢印", arrowhead_bar: "バー", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "三角", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "フォントの大きさ", fontFamily: "フォントの種類", addWatermark: '"Made with Excalidraw"と表示', handDrawn: "手描き風", normal: "普通", code: "コード", small: "小", medium: "中", large: "大", veryLarge: "特大", solid: "ベタ塗り", hachure: "斜線", zigzag: "ジグザグ", crossHatch: "網掛け", thin: "細", bold: "太字", left: "左寄せ", center: "中央寄せ", right: "右寄せ", extraBold: "極太", architect: "正確", artist: "アート", cartoonist: "漫画風", fileTitle: "ファイル名", colorPicker: "色選択", canvasColors: "キャンバス上で使用", canvasBackground: "キャンバスの背景", drawingCanvas: "キャンバスの描画", layers: "レイヤー", actions: "操作", language: "言語", liveCollaboration: "共同編集...", duplicateSelection: "複製", untitled: "無題", name: "名前", yourName: "あなたの名前", madeWithExcalidraw: "Excalidrawで作成", group: "グループ化", ungroup: "グループ化を解除", collaborators: "共同編集者", showGrid: "グリッドを表示", addToLibrary: "ライブラリに追加", removeFromLibrary: "ライブラリから削除", libraryLoadingMessage: "ライブラリを読み込み中…", libraries: "ライブラリを参照する", loadingScene: "シーンを読み込み中…", align: "配置", alignTop: "上揃え", alignBottom: "下揃え", alignLeft: "左揃え", alignRight: "右揃え", centerVertically: "縦方向に中央揃え", centerHorizontally: "横方向に中央揃え", distributeHorizontally: "水平方向に分散配置", distributeVertically: "垂直方向に分散配置", flipHorizontal: "水平方向に反転", flipVertical: "垂直方向に反転", viewMode: "閲覧モード", share: "共有", showStroke: "ストロークカラーピッカーを表示", showBackground: "背景色ピッカーを表示", toggleTheme: "テーマの切り替え", personalLib: "個人ライブラリ", excalidrawLib: "Excalidrawライブラリ", decreaseFontSize: "フォントサイズを縮小", increaseFontSize: "フォントサイズを拡大", unbindText: "テキストのバインド解除", bindText: "テキストをコンテナにバインド", createContainerFromText: "コンテナ内でテキストを折り返す", link: { edit: "リンクを編集", editEmbed: "リンクの編集と埋め込み", create: "リンクを作成", createEmbed: "リンクの作成と埋め込み", label: "リンク", labelEmbed: "リンクと埋め込み", empty: "リンクが設定されていません" }, lineEditor: { edit: "行を編集", exit: "行エディタを終了" }, elementLock: { lock: "ロック", unlock: "ロック解除", lockAll: "すべてロック", unlockAll: "すべてのロックを解除" }, statusPublished: "公開済み", sidebarLock: "サイドバーを開いたままにする", selectAllElementsInFrame: "フレーム内のすべての要素を選択", removeAllElementsFromFrame: "フレーム内のすべての要素を削除", eyeDropper: "キャンバスから色を選択", textToDiagram: "", prompt: "" }, F = { noItems: "まだアイテムが追加されていません…", hint_emptyLibrary: "キャンバス上のアイテムを選択してここに追加するか、以下の公開リポジトリからライブラリをインストールしてください。", hint_emptyPrivateLibrary: "キャンバス上のアイテムを選択すると、ここに追加されます。" }, E = { clearReset: "キャンバスのリセット", exportJSON: "ファイルへエクスポート", exportImage: "画像のエクスポート...", export: "名前を付けて保存...", copyToClipboard: "クリップボードにコピー", save: "現在のファイルに保存", saveAs: "名前を付けて保存", load: "開く", getShareableLink: "共有URLの取得", close: "閉じる", selectLanguage: "言語の選択", scrollBackToContent: "コンテンツまでスクロールで戻る", zoomIn: "拡大", zoomOut: "縮小", resetZoom: "拡大/縮小をリセット", menu: "メニュー", done: "完了", edit: "編集", undo: "元に戻す", redo: "やり直し", resetLibrary: "ライブラリをリセット", createNewRoom: "新しい部屋を作成する", fullScreen: "フルスクリーン", darkMode: "ダークモード", lightMode: "ライトモード", zenMode: "Zenモード", objectsSnapMode: "", exitZenMode: "集中モードをやめる", cancel: "キャンセル", clear: "消去", remove: "削除", embed: "埋め込みの切り替え", publishLibrary: "公開", submit: "送信", confirm: "確認", embeddableInteractionButton: "" }, B = { clearReset: "この操作によってキャンバス全体が消えます。よろしいですか?", couldNotCreateShareableLink: "共有URLを作成できませんでした。", couldNotCreateShareableLinkTooBig: "共有可能なリンクを作成できませんでした: シーンが大きすぎます", couldNotLoadInvalidFile: "無効なファイルを読み込めませんでした。", importBackendFailed: "サーバーからの読み込みに失敗しました。", cannotExportEmptyCanvas: "空のキャンバスはエクスポートできません。", couldNotCopyToClipboard: "クリップボードにコピーできませんでした。", decryptFailed: "データを復号できませんでした。", uploadedSecurly: "データのアップロードはエンドツーエンド暗号化によって保護されています。Excalidrawサーバーと第三者はデータの内容を見ることができません。", loadSceneOverridePrompt: "外部図面を読み込むと、既存のコンテンツが置き換わります。続行しますか?", collabStopOverridePrompt: `セッションを停止すると、ローカルに保存されている図が上書きされます。 本当によろしいですか?
|
|
3
3
|
|
|
4
4
|
(ローカルの図を保持したい場合は、セッションを停止せずにブラウザタブを閉じてください。)`, errorAddingToLibrary: "アイテムをライブラリに追加できませんでした", errorRemovingFromLibrary: "ライブラリからアイテムを削除できませんでした", confirmAddLibrary: "{{numShapes}} 個の図形をライブラリに追加します。よろしいですか?", imageDoesNotContainScene: "この画像にはシーンデータが含まれていないようです。エクスポート時にシーンの埋め込みを有効にしましたか?", cannotRestoreFromImage: "このイメージファイルからシーンを復元できませんでした", invalidSceneUrl: "指定された URL からシーンをインポートできませんでした。不正な形式であるか、有効な Excalidraw JSON データが含まれていません。", resetLibrary: "ライブラリを消去します。本当によろしいですか?", removeItemsFromsLibrary: "{{count}} 個のアイテムをライブラリから削除しますか?", invalidEncryptionKey: "暗号化キーは22文字でなければなりません。ライブコラボレーションは無効化されています。", collabOfflineWarning: `インターネットに接続されていません。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as w, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as M, useContext as K, useMemo as W, useEffect as $, useState as y, useCallback as P, Suspense as z } from "react";
|
|
3
|
-
import { y as B, z as q, l as G, B as H, q as J, a as Q, F as L, N as R, c as j, G as V, h as F, r as X, O as Y, I, H as Z, s as ee, D as te, J as ne, v as ae, K as se, M as oe, P as re, Q as le, S as ie, T as ce } from "./layers.
|
|
3
|
+
import { y as B, z as q, l as G, B as H, q as J, a as Q, F as L, N as R, c as j, G as V, h as F, r as X, O as Y, I, H as Z, s as ee, D as te, J as ne, v as ae, K as se, M as oe, P as re, Q as le, S as ie, T as ce } from "./layers.DOOralMp.js";
|
|
4
4
|
import { Button as de, TextInput as ue } from "@mantine/core";
|
|
5
5
|
function O(e) {
|
|
6
6
|
const a = e.transform();
|