@layers-app/editor 0.0.23 → 0.0.27
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 +2 -2
- package/dist/index.d.ts +6 -44
- package/dist/index.js +2 -2
- package/dist/{layers.CGX7Piy7.js → layers.-XqzPqyO.js} +1 -1
- package/dist/{layers.D_MU5WlI.js → layers.-pZJVtr2.js} +1 -1
- package/dist/{layers.DXTPaWjN.js → layers.3JS7Upj0.js} +1 -1
- package/dist/{layers.CQv0GMRl.js → layers.44ZDFWK7.js} +1 -1
- package/dist/{layers.BBwDvE6l.js → layers.4utgKYyK.js} +1820 -1814
- package/dist/{layers.Dyqg_e4P.js → layers.5Z-wFY6j.js} +1 -1
- package/dist/{layers.CcJ28sUd.js → layers.5xC3et_d.js} +1 -1
- package/dist/{layers.Bv0tGvGl.js → layers.6JCbFAj6.js} +1 -1
- package/dist/{layers.CClfR9Rs.js → layers.6h3bxK1a.js} +10346 -11483
- package/dist/{layers.BUSnd1Ro.js → layers.77-S3nTe.js} +1 -1
- package/dist/{layers.CDzPpnhN.js → layers.7M4UNyUU.js} +5 -5
- package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
- package/dist/{layers.Lhl12ohc.js → layers.B-9i7OJs.js} +1 -1
- package/dist/{layers.Dklz2JqP.js → layers.B0aPUUi4.js} +1 -1
- package/dist/{layers.N4wL2Xyj.js → layers.B2ffo7VT.js} +85 -85
- package/dist/{layers.DdTLZZKb.js → layers.B4b_0r0_.js} +6 -6
- package/dist/{layers.Ckbp-T9r.js → layers.B5W9KS-1.js} +1 -1
- package/dist/{layers.Cl9Tl2nd.js → layers.B8VoPWTl.js} +1 -1
- package/dist/{layers.B9zrmkst.js → layers.B8xcwXZK.js} +1 -1
- package/dist/{layers.gaT5_-NN.js → layers.B8z2WMpW.js} +1 -1
- package/dist/{layers.DHbdkCCU.js → layers.B9r2ZtSh.js} +1 -1
- package/dist/{layers.-rS-aTo2.js → layers.BF9fE7C8.js} +1 -1
- package/dist/{layers.ClQj75nc.js → layers.BFUqtCtE.js} +1 -1
- package/dist/{layers.D1cZq8tq.js → layers.BHT7hu0K.js} +3 -3
- package/dist/{layers.B-6oGNjd.js → layers.BJvR0g9w.js} +1 -1
- package/dist/{layers.Blho0qwc.js → layers.BKes9zCG.js} +1 -1
- package/dist/{layers.D3Hkinja.js → layers.BM9aR6Wc.js} +1 -1
- package/dist/{layers.D2q8ZYi2.js → layers.BNClpYmo.js} +15 -15
- package/dist/{layers.BO3dqWyO.js → layers.BPRzsxsG.js} +1 -1
- package/dist/{layers.C6Rn8zoI.js → layers.BPUdwzAa.js} +1 -1
- package/dist/{layers.DwLw5o0M.js → layers.BPku3sr2.js} +1 -1
- package/dist/{layers.gzGcAwbO.js → layers.BQZvK7Ld.js} +3 -3
- package/dist/{layers.C0bumYdC.js → layers.BSE8QsGw.js} +1 -1
- package/dist/{layers.lLRqycMO.js → layers.BSd-2_I0.js} +1 -1
- package/dist/{layers.Dbuivk7d.js → layers.BTI5U3cj.js} +1 -1
- package/dist/{layers.BYVHkqLR.js → layers.BTSxIBNW.js} +1 -1
- package/dist/{layers.CBXpUMze.js → layers.BTczMT9O.js} +35 -35
- package/dist/{layers.BEE5yqs5.js → layers.BWjXKJlb.js} +1 -1
- package/dist/{layers.BIVmclKv.js → layers.BXQIrASO.js} +1 -1
- package/dist/{layers.B9NSFeaj.js → layers.BXf1B1fk.js} +1 -1
- package/dist/{layers.D7HvMBb6.js → layers.BYlHLDae.js} +1 -1
- package/dist/{layers.2ODaB2Pd.js → layers.BZ2OjyG_.js} +1 -1
- package/dist/{layers.B_Hf0SF-.js → layers.BZGMS_YL.js} +517 -517
- package/dist/{layers.Ym7pRGM7.js → layers.B_Ifrq8A.js} +3 -3
- package/dist/{layers.DElpVOY-.js → layers.B_bguWvG.js} +1 -1
- package/dist/{layers.B39TZ2WV.js → layers.BaDLTNuw.js} +1 -1
- package/dist/{layers.B3odqoHb.js → layers.BbNPJK3G.js} +1 -1
- package/dist/{layers.BFLg4UGe.js → layers.BbX2Gt06.js} +1 -1
- package/dist/{layers.DCvUAfE1.js → layers.BcC4jCYQ.js} +1 -1
- package/dist/{layers.B64g6Zx2.js → layers.BcND7kmj.js} +1 -1
- package/dist/{layers.L_XjkGw6.js → layers.BcsSvL4N.js} +16 -16
- package/dist/layers.Bdma-bi1.js +1 -0
- package/dist/{layers.CPV5PaJ7.js → layers.BgH53BCx.js} +1 -1
- package/dist/{layers.C5rttXXy.js → layers.Bg_eB6d4.js} +4 -4
- package/dist/{layers.CvJxfPxo.js → layers.BhbIzB4V.js} +1 -1
- package/dist/{layers.k2UyvrHI.js → layers.BiFjyQe_.js} +1 -1
- package/dist/{layers.D9A031XO.js → layers.Bk2R9iWo.js} +2 -2
- package/dist/{layers.CTmkjIN6.js → layers.Bo8XWCDb.js} +1 -1
- package/dist/{layers.hkFN-BS0.js → layers.BoOJNRFl.js} +1 -1
- package/dist/{layers.CR10RAJi.js → layers.Bpk4Ctcr.js} +2 -2
- package/dist/{layers.UbqG2dp_.js → layers.BrNJ0Pz_.js} +1 -1
- package/dist/{layers.BUkDq4ln.js → layers.Brul_6T5.js} +1 -1
- package/dist/{layers.LOjND5R4.js → layers.Bsu1AT8z.js} +2 -2
- package/dist/{layers.CmHSmrZm.js → layers.BthCFGNg.js} +1 -1
- package/dist/{layers.CHHqQlm1.js → layers.Bti2UxbF.js} +1 -1
- package/dist/{layers.CMS1o_sE.js → layers.BuhxW9HQ.js} +1 -1
- package/dist/{layers.C3K_Whht.js → layers.BwnZ1xpT.js} +1 -1
- package/dist/{layers.C1KhBpGU.js → layers.C-B2iYxw.js} +1 -1
- package/dist/{layers.DMvWe0pJ.js → layers.C-PLaaW1.js} +2 -2
- package/dist/{layers.Bbl6qitU.js → layers.C1I8OftT.js} +1 -1
- package/dist/{layers.Cn6OfRlw.js → layers.C2Tygpbi.js} +1 -1
- package/dist/{layers.B8i9d7Qz.js → layers.C4DqDLg-.js} +38 -32
- package/dist/{layers.DrtkQKK7.js → layers.C5aZwGJ8.js} +1 -1
- package/dist/{layers.oFAtdeQ1.js → layers.C5htK5yR.js} +3 -3
- package/dist/{layers.D90-hSDT.js → layers.C6CCN2wS.js} +2 -2
- package/dist/{layers.CH23k4XD.js → layers.C76T9ib9.js} +1 -1
- package/dist/{layers.OEP2K3db.js → layers.C8KErGD4.js} +1 -1
- package/dist/{layers.BCFHxkpM.js → layers.C9-yhnQ_.js} +1 -1
- package/dist/{layers.Dol0x5Jd.js → layers.CA01MCW7.js} +1 -1
- package/dist/{layers.Ba97nTEK.js → layers.CBAr-ccc.js} +1 -1
- package/dist/{layers.BST6tR9a.js → layers.CBHnRD32.js} +1 -1
- package/dist/{layers.BDxQSquK.js → layers.CHRstlUi.js} +1 -1
- package/dist/{layers.DQCPMqIN.js → layers.CHyEShQb.js} +1 -1
- package/dist/layers.CHzF8aN-.js +118 -0
- package/dist/{layers.Y41CVpLS.js → layers.CL0btCq5.js} +33 -33
- package/dist/layers.CLPJWTr_.js +1 -0
- package/dist/{layers.DKPzrygv.js → layers.CNohXvTM.js} +1 -1
- package/dist/{layers.HcI9cOEd.js → layers.COVT50CF.js} +47 -47
- package/dist/{layers.B6UkAKu5.js → layers.CP74FqYL.js} +78 -78
- package/dist/{layers.CnD3z0eZ.js → layers.CPIGYQzV.js} +1 -1
- package/dist/{layers.DIrkcLlA.js → layers.CVJ3dtpa.js} +63 -63
- package/dist/{layers.CEXVJbhn.js → layers.CVJGf_dS.js} +1 -1
- package/dist/{layers.BZcZF6Ct.js → layers.CXyre7fi.js} +1 -1
- package/dist/{layers.CDLdte-o.js → layers.CYAKjsCY.js} +1 -1
- package/dist/{layers.BPnpanwd.js → layers.CZuNERKr.js} +1 -1
- package/dist/{layers.ClaqpFnu.js → layers.C_0V8gfT.js} +2 -2
- package/dist/layers.C_LpHycI.js +122 -0
- package/dist/{layers.C_dOgKfE.js → layers.CcUrvj1L.js} +1 -1
- package/dist/{layers.BD5uUnI2.js → layers.CewW7kYw.js} +279 -279
- package/dist/{layers.CnloMtKN.js → layers.CgEWPiYB.js} +14 -14
- package/dist/{layers.C-G7-Jg3.js → layers.Ch4JHkKx.js} +1 -1
- package/dist/{layers.CSjWzlk9.js → layers.Cj303CSV.js} +1 -1
- package/dist/{layers.Dg8Wbn90.js → layers.Cju8Sa_Q.js} +1 -1
- package/dist/{layers.DxGDxkXA.js → layers.Cjxt8nIg.js} +47 -47
- package/dist/{layers.D2vOkfMK.js → layers.Cllpx3ld.js} +1 -1
- package/dist/{layers.DDRgaMwu.js → layers.Cpo4EON4.js} +1 -1
- package/dist/layers.CrLpnenG.js +1 -0
- package/dist/{layers.BXGiOI1Z.js → layers.CruBr5KJ.js} +1 -1
- package/dist/{layers.FstVqdQC.js → layers.Cs3lCndw.js} +151 -151
- package/dist/{layers.Bfd5bOAD.js → layers.Csx06TKa.js} +1 -1
- package/dist/{layers.Cx14IKzN.js → layers.CtNxT4bX.js} +1 -1
- package/dist/{layers.BDhuxbhX.js → layers.Ctkab7zE.js} +1 -1
- package/dist/{layers.DARK07JA.js → layers.CtyUp91J.js} +1 -1
- package/dist/{layers.BjZInKjA.js → layers.CwbKR3tp.js} +2 -2
- package/dist/{layers.gRKbOYG-.js → layers.CxEkiqDR.js} +26 -26
- package/dist/{layers.DGZUGztZ.js → layers.D-pR7pmV.js} +29 -29
- package/dist/{layers.ChykDTOy.js → layers.D0tiOhqA.js} +1 -1
- package/dist/{layers.CGc04km7.js → layers.D3LfwBOp.js} +1 -1
- package/dist/{layers.cp645rbn.js → layers.D3Mywbyx.js} +1 -1
- package/dist/{layers.I5-pSyca.js → layers.D4qPD37W.js} +1 -1
- package/dist/{layers.BhM2iCwB.js → layers.D5_CFDU_.js} +1 -1
- package/dist/{layers.DhiFm4jW.js → layers.D63Vq18T.js} +1 -1
- package/dist/{layers.BdanmQPF.js → layers.D6IcbDJa.js} +1 -1
- package/dist/{layers.B0pdr1hX.js → layers.D6_cQf9O.js} +33 -33
- package/dist/{layers.kthR742N.js → layers.D6a6qxmr.js} +1 -1
- package/dist/layers.D7xAhxaO.js +6 -0
- package/dist/{layers.BuQ1nJmP.js → layers.D8qe0Siv.js} +1 -1
- package/dist/{layers.PO65UmTA.js → layers.DAUJf380.js} +1 -1
- package/dist/{layers.Bwpn7zKE.js → layers.DBBjhYox.js} +1 -1
- package/dist/{layers.5BbX0Xoz.js → layers.DBZ4nt4A.js} +57 -57
- package/dist/{layers.BJMMuP5r.js → layers.DBb6ZTQb.js} +1 -1
- package/dist/{layers.B0EkntbT.js → layers.DCZZx-_I.js} +1 -1
- package/dist/{layers.CphCG076.js → layers.DCpKUlgF.js} +1 -1
- package/dist/{layers.rRMBW9ET.js → layers.DDkR5Ts6.js} +251 -251
- package/dist/{layers.BPe9NQzP.js → layers.DEcSY6CT.js} +1 -1
- package/dist/{layers.DYx3Ot6h.js → layers.DFHjT2lH.js} +1 -1
- package/dist/{layers.DXaSAlDN.js → layers.DGECi3uy.js} +1 -1
- package/dist/{layers.PhLwHKUM.js → layers.DHeN0kJF.js} +1 -1
- package/dist/{layers.C5uR7AiN.js → layers.DIHGOC7q.js} +1 -1
- package/dist/{layers.ChPHYv68.js → layers.DIisKDqA.js} +1 -1
- package/dist/{layers.tbRLuldN.js → layers.DKAO_t2e.js} +1 -1
- package/dist/layers.DKDhSm3W.js +1 -0
- package/dist/{layers.CwPFdFUT.js → layers.DL7GcZkM.js} +1 -1
- package/dist/{layers.I-MG0ir4.js → layers.DLBoqOPY.js} +7051 -7014
- package/dist/{layers.iw01AOuQ.js → layers.DMKRtGOO.js} +96 -96
- package/dist/{layers.BLB-feoT.js → layers.DOxdGhXS.js} +1 -1
- package/dist/{layers.DeB3waPT.js → layers.DQ2Xcr60.js} +1 -1
- package/dist/layers.DRJbljY3.js +2 -0
- package/dist/{layers.Bk2PdkMX.js → layers.DSv_J9bL.js} +1 -1
- package/dist/{layers.DAx0hT2g.js → layers.DUrMIw9R.js} +1 -1
- package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
- package/dist/{layers.D18RSmmQ.js → layers.DV-7KP2x.js} +1 -1
- package/dist/layers.DWAHzpeJ.js +65 -0
- package/dist/{layers.Ck0iJfoW.js → layers.D_Wzp8Cn.js} +1 -1
- package/dist/{layers.BFOl7cA-.js → layers.DakFhu3n.js} +1 -1
- package/dist/{layers.BBU3ik5q.js → layers.DdfiL5kD.js} +3 -3
- package/dist/{layers.DEfJs03Z.js → layers.DeDtDGVu.js} +1 -1
- package/dist/{layers.DalYdEkL.js → layers.DfaL2q8R.js} +4 -4
- package/dist/{layers.D68FZk66.js → layers.DfnEKrUj.js} +1 -1
- package/dist/{layers.BkMfeJ9R.js → layers.DixGTGe2.js} +1 -1
- package/dist/{layers.Dyor8Hot.js → layers.Dj9C8dFr.js} +28 -28
- package/dist/{layers.Ci0x4aAi.js → layers.DlsG5gru.js} +5 -5
- package/dist/{layers.DFd9A85i.js → layers.Dp-Xbgxy.js} +4 -4
- package/dist/{layers.BLSqqbWP.js → layers.DpFjxIHM.js} +4 -4
- package/dist/{layers.x6Qk2Mwl.js → layers.DrLqWw04.js} +1 -1
- package/dist/{layers.Dxrm0nEM.js → layers.DsT1BxXu.js} +140 -140
- package/dist/{layers.Ci0QS82_.js → layers.Dt7NdfDn.js} +1 -1
- package/dist/{layers.BoabOlrX.js → layers.Duxds2E7.js} +1 -1
- package/dist/{layers.DsAtBUs-.js → layers.DxXZMHl1.js} +5 -5
- package/dist/{layers.BvZFIFgz.js → layers.Dz0pDzZ2.js} +1 -1
- package/dist/{layers.Cp82yltX.js → layers.DzSwrBkm.js} +1 -1
- package/dist/{layers.DO-G3uLL.js → layers.DzXwulE9.js} +1 -1
- package/dist/layers.E0TqyNY6.js +202 -0
- package/dist/{layers.CiNAQOA-.js → layers.EdniTKSB.js} +2 -2
- package/dist/{layers.Bz0ApNUe.js → layers.IYUvfd4q.js} +14 -14
- package/dist/{layers.ChAMqLmE.js → layers.JIqu3EuS.js} +1 -1
- package/dist/{layers.CCRe_IA7.js → layers.JoXvoQtK.js} +1 -1
- package/dist/{layers.CeMe5scF.js → layers.LKsuEHeo.js} +1 -1
- package/dist/{layers.Cxmncz59.js → layers.LW-EdoNU.js} +1 -1
- package/dist/{layers.p9hSNB6N.js → layers.NLUe-Zd7.js} +1 -1
- package/dist/{layers.x6ioP3u0.js → layers.OG2GCG5d.js} +1 -1
- package/dist/layers.O_QfH9Tw.js +55 -0
- package/dist/{layers.B-ie1_cm.js → layers.Q61rVzjQ.js} +1 -1
- package/dist/{layers.ChJyurjQ.js → layers.QMSF2I3x.js} +1 -1
- package/dist/{layers.C51kZnWr.js → layers.RC04NTdF.js} +1 -1
- package/dist/{layers.D-ZYFolm.js → layers.X2Q_jYIN.js} +1 -1
- package/dist/{layers.CZh7NZyl.js → layers.Y9024OPf.js} +1 -1
- package/dist/{layers.-RxAm5pH.js → layers.Zcvgtj43.js} +47 -47
- package/dist/{layers.DK_t52oS.js → layers.dE10rGCq.js} +390 -390
- package/dist/{layers.c_QDfgff.js → layers.dJ7Y_uj4.js} +4 -4
- package/dist/layers.dbGRsALw.js +10 -0
- package/dist/{layers.kY3ZYtED.js → layers.gQj2seW8.js} +1 -1
- package/dist/{layers.BpXiFzvR.js → layers.gnhLHWor.js} +1 -1
- package/dist/{layers.CO4NHmK3.js → layers.iZHGKF34.js} +1 -1
- package/dist/{layers.CZMy0ug4.js → layers.k9xSs9fH.js} +1 -1
- package/dist/{layers.BBB7YGK1.js → layers.kuAa_osE.js} +1 -1
- package/dist/{layers.CR4riLSc.js → layers.nK8yMUfw.js} +639 -639
- package/dist/{layers.BHDiP2sq.js → layers.oeHNlcSJ.js} +1482 -1482
- package/dist/{layers.WsdOSV4y.js → layers.oyFM1DlU.js} +1 -1
- package/dist/{layers.DhzTwBn5.js → layers.sctyB8h-.js} +1 -1
- package/dist/{layers.Ch7C0MR9.js → layers.uim2_WMD.js} +1 -1
- package/dist/layers.wKm27PFc.js +8 -0
- package/dist/{layers.dqI-yLmM.js → layers.wQvpu0z-.js} +1 -1
- package/dist/{layers.paz6tc0L.js → layers.wpRKShXC.js} +1 -1
- package/dist/{layers.Dzc83sE7.js → layers.y6ChlfJ8.js} +1 -1
- package/dist/{layers.CqM3rL4-.js → layers.zOav7lS3.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,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class u0 {
|
|
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,7 +15,7 @@ class o0 {
|
|
|
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 u0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
class f0 {
|
|
@@ -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 f0(t,
|
|
32
|
+
return new f0(t, u0.range(this, e));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
class M {
|
|
@@ -38,10 +38,10 @@ class M {
|
|
|
38
38
|
// The underlying error message without any context added.
|
|
39
39
|
constructor(e, t) {
|
|
40
40
|
this.name = void 0, this.position = void 0, this.length = void 0, this.rawMessage = void 0;
|
|
41
|
-
var a = "KaTeX parse error: " + e, n, s,
|
|
42
|
-
if (
|
|
43
|
-
var h =
|
|
44
|
-
n =
|
|
41
|
+
var a = "KaTeX parse error: " + e, n, s, o = t && t.loc;
|
|
42
|
+
if (o && o.start <= o.end) {
|
|
43
|
+
var h = o.lexer.input;
|
|
44
|
+
n = o.start, s = o.end, n === h.length ? a += " at end of input: " : a += " at position " + (n + 1) + ": ";
|
|
45
45
|
var c = h.slice(n, s).replace(/[^]/g, "$&̲"), p;
|
|
46
46
|
n > 15 ? p = "…" + h.slice(n - 15, n) : p = h.slice(0, n);
|
|
47
47
|
var g;
|
|
@@ -800,7 +800,7 @@ l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
800
800
|
throw new Error("Unknown stretchy delimiter.");
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
class
|
|
803
|
+
class ue {
|
|
804
804
|
// HtmlDomNode
|
|
805
805
|
// Never used; needed for satisfying interface.
|
|
806
806
|
constructor(e) {
|
|
@@ -3391,8 +3391,8 @@ var it = {
|
|
|
3391
3391
|
t += " " + s + '="' + q.escape(this.attributes[s]) + '"';
|
|
3392
3392
|
}
|
|
3393
3393
|
t += ">";
|
|
3394
|
-
for (var
|
|
3395
|
-
t += this.children[
|
|
3394
|
+
for (var o = 0; o < this.children.length; o++)
|
|
3395
|
+
t += this.children[o].toMarkup();
|
|
3396
3396
|
return t += "</" + e + ">", t;
|
|
3397
3397
|
};
|
|
3398
3398
|
class he {
|
|
@@ -3463,8 +3463,8 @@ var ja = {
|
|
|
3463
3463
|
ì: "ı̀"
|
|
3464
3464
|
};
|
|
3465
3465
|
class p0 {
|
|
3466
|
-
constructor(e, t, a, n, s,
|
|
3467
|
-
this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width =
|
|
3466
|
+
constructor(e, t, a, n, s, o, h, c) {
|
|
3467
|
+
this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = c || {}, this.maxFontSize = 0;
|
|
3468
3468
|
var p = Na(this.text.charCodeAt(0));
|
|
3469
3469
|
p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = ja[this.text]);
|
|
3470
3470
|
}
|
|
@@ -3582,102 +3582,102 @@ 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",
|
|
3586
|
-
i(l,
|
|
3587
|
-
i(l,
|
|
3588
|
-
i(l,
|
|
3589
|
-
i(l,
|
|
3590
|
-
i(l,
|
|
3591
|
-
i(l,
|
|
3592
|
-
i(l,
|
|
3593
|
-
i(l,
|
|
3594
|
-
i(l,
|
|
3595
|
-
i(l,
|
|
3596
|
-
i(l,
|
|
3597
|
-
i(l,
|
|
3598
|
-
i(l,
|
|
3599
|
-
i(l,
|
|
3600
|
-
i(l,
|
|
3601
|
-
i(l,
|
|
3602
|
-
i(l,
|
|
3603
|
-
i(l,
|
|
3604
|
-
i(l,
|
|
3605
|
-
i(l,
|
|
3606
|
-
i(l,
|
|
3607
|
-
i(l,
|
|
3608
|
-
i(l,
|
|
3609
|
-
i(l,
|
|
3610
|
-
i(l,
|
|
3611
|
-
i(l,
|
|
3612
|
-
i(l,
|
|
3613
|
-
i(k,
|
|
3614
|
-
i(l,
|
|
3615
|
-
i(k,
|
|
3616
|
-
i(l,
|
|
3617
|
-
i(l,
|
|
3618
|
-
i(l,
|
|
3619
|
-
i(l,
|
|
3620
|
-
i(l,
|
|
3621
|
-
i(l,
|
|
3622
|
-
i(l,
|
|
3623
|
-
i(l,
|
|
3624
|
-
i(l,
|
|
3625
|
-
i(l,
|
|
3626
|
-
i(l,
|
|
3627
|
-
i(l,
|
|
3628
|
-
i(l,
|
|
3629
|
-
i(l,
|
|
3630
|
-
i(l,
|
|
3631
|
-
i(l,
|
|
3632
|
-
i(l,
|
|
3633
|
-
i(k,
|
|
3634
|
-
i(l,
|
|
3635
|
-
i(k,
|
|
3636
|
-
i(l,
|
|
3637
|
-
i(k,
|
|
3638
|
-
i(k,
|
|
3639
|
-
i(l,
|
|
3640
|
-
i(k,
|
|
3641
|
-
i(k,
|
|
3642
|
-
i(l,
|
|
3643
|
-
i(l,
|
|
3644
|
-
i(l,
|
|
3645
|
-
i(l,
|
|
3646
|
-
i(l,
|
|
3647
|
-
i(l,
|
|
3648
|
-
i(l,
|
|
3649
|
-
i(l,
|
|
3650
|
-
i(l,
|
|
3651
|
-
i(l,
|
|
3652
|
-
i(l,
|
|
3653
|
-
i(l,
|
|
3654
|
-
i(l,
|
|
3655
|
-
i(l,
|
|
3656
|
-
i(l,
|
|
3657
|
-
i(l,
|
|
3658
|
-
i(l,
|
|
3659
|
-
i(l,
|
|
3660
|
-
i(l,
|
|
3661
|
-
i(l,
|
|
3662
|
-
i(l,
|
|
3663
|
-
i(l,
|
|
3664
|
-
i(l,
|
|
3665
|
-
i(l,
|
|
3666
|
-
i(l,
|
|
3667
|
-
i(l,
|
|
3668
|
-
i(l,
|
|
3669
|
-
i(l,
|
|
3670
|
-
i(l,
|
|
3671
|
-
i(l,
|
|
3672
|
-
i(l,
|
|
3673
|
-
i(l,
|
|
3674
|
-
i(l,
|
|
3675
|
-
i(l,
|
|
3676
|
-
i(l,
|
|
3677
|
-
i(l,
|
|
3678
|
-
i(l,
|
|
3679
|
-
i(l,
|
|
3680
|
-
i(l,
|
|
3585
|
+
var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
|
|
3586
|
+
i(l, u, f, "≡", "\\equiv", !0);
|
|
3587
|
+
i(l, u, f, "≺", "\\prec", !0);
|
|
3588
|
+
i(l, u, f, "≻", "\\succ", !0);
|
|
3589
|
+
i(l, u, f, "∼", "\\sim", !0);
|
|
3590
|
+
i(l, u, f, "⊥", "\\perp");
|
|
3591
|
+
i(l, u, f, "⪯", "\\preceq", !0);
|
|
3592
|
+
i(l, u, f, "⪰", "\\succeq", !0);
|
|
3593
|
+
i(l, u, f, "≃", "\\simeq", !0);
|
|
3594
|
+
i(l, u, f, "∣", "\\mid", !0);
|
|
3595
|
+
i(l, u, f, "≪", "\\ll", !0);
|
|
3596
|
+
i(l, u, f, "≫", "\\gg", !0);
|
|
3597
|
+
i(l, u, f, "≍", "\\asymp", !0);
|
|
3598
|
+
i(l, u, f, "∥", "\\parallel");
|
|
3599
|
+
i(l, u, f, "⋈", "\\bowtie", !0);
|
|
3600
|
+
i(l, u, f, "⌣", "\\smile", !0);
|
|
3601
|
+
i(l, u, f, "⊑", "\\sqsubseteq", !0);
|
|
3602
|
+
i(l, u, f, "⊒", "\\sqsupseteq", !0);
|
|
3603
|
+
i(l, u, f, "≐", "\\doteq", !0);
|
|
3604
|
+
i(l, u, f, "⌢", "\\frown", !0);
|
|
3605
|
+
i(l, u, f, "∋", "\\ni", !0);
|
|
3606
|
+
i(l, u, f, "∝", "\\propto", !0);
|
|
3607
|
+
i(l, u, f, "⊢", "\\vdash", !0);
|
|
3608
|
+
i(l, u, f, "⊣", "\\dashv", !0);
|
|
3609
|
+
i(l, u, f, "∋", "\\owns");
|
|
3610
|
+
i(l, u, qe, ".", "\\ldotp");
|
|
3611
|
+
i(l, u, qe, "⋅", "\\cdotp");
|
|
3612
|
+
i(l, u, v, "#", "\\#");
|
|
3613
|
+
i(k, u, v, "#", "\\#");
|
|
3614
|
+
i(l, u, v, "&", "\\&");
|
|
3615
|
+
i(k, u, v, "&", "\\&");
|
|
3616
|
+
i(l, u, v, "ℵ", "\\aleph", !0);
|
|
3617
|
+
i(l, u, v, "∀", "\\forall", !0);
|
|
3618
|
+
i(l, u, v, "ℏ", "\\hbar", !0);
|
|
3619
|
+
i(l, u, v, "∃", "\\exists", !0);
|
|
3620
|
+
i(l, u, v, "∇", "\\nabla", !0);
|
|
3621
|
+
i(l, u, v, "♭", "\\flat", !0);
|
|
3622
|
+
i(l, u, v, "ℓ", "\\ell", !0);
|
|
3623
|
+
i(l, u, v, "♮", "\\natural", !0);
|
|
3624
|
+
i(l, u, v, "♣", "\\clubsuit", !0);
|
|
3625
|
+
i(l, u, v, "℘", "\\wp", !0);
|
|
3626
|
+
i(l, u, v, "♯", "\\sharp", !0);
|
|
3627
|
+
i(l, u, v, "♢", "\\diamondsuit", !0);
|
|
3628
|
+
i(l, u, v, "ℜ", "\\Re", !0);
|
|
3629
|
+
i(l, u, v, "♡", "\\heartsuit", !0);
|
|
3630
|
+
i(l, u, v, "ℑ", "\\Im", !0);
|
|
3631
|
+
i(l, u, v, "♠", "\\spadesuit", !0);
|
|
3632
|
+
i(l, u, v, "§", "\\S", !0);
|
|
3633
|
+
i(k, u, v, "§", "\\S");
|
|
3634
|
+
i(l, u, v, "¶", "\\P", !0);
|
|
3635
|
+
i(k, u, v, "¶", "\\P");
|
|
3636
|
+
i(l, u, v, "†", "\\dag");
|
|
3637
|
+
i(k, u, v, "†", "\\dag");
|
|
3638
|
+
i(k, u, v, "†", "\\textdagger");
|
|
3639
|
+
i(l, u, v, "‡", "\\ddag");
|
|
3640
|
+
i(k, u, v, "‡", "\\ddag");
|
|
3641
|
+
i(k, u, v, "‡", "\\textdaggerdbl");
|
|
3642
|
+
i(l, u, i0, "⎱", "\\rmoustache", !0);
|
|
3643
|
+
i(l, u, m0, "⎰", "\\lmoustache", !0);
|
|
3644
|
+
i(l, u, i0, "⟯", "\\rgroup", !0);
|
|
3645
|
+
i(l, u, m0, "⟮", "\\lgroup", !0);
|
|
3646
|
+
i(l, u, D, "∓", "\\mp", !0);
|
|
3647
|
+
i(l, u, D, "⊖", "\\ominus", !0);
|
|
3648
|
+
i(l, u, D, "⊎", "\\uplus", !0);
|
|
3649
|
+
i(l, u, D, "⊓", "\\sqcap", !0);
|
|
3650
|
+
i(l, u, D, "∗", "\\ast");
|
|
3651
|
+
i(l, u, D, "⊔", "\\sqcup", !0);
|
|
3652
|
+
i(l, u, D, "◯", "\\bigcirc", !0);
|
|
3653
|
+
i(l, u, D, "∙", "\\bullet", !0);
|
|
3654
|
+
i(l, u, D, "‡", "\\ddagger");
|
|
3655
|
+
i(l, u, D, "≀", "\\wr", !0);
|
|
3656
|
+
i(l, u, D, "⨿", "\\amalg");
|
|
3657
|
+
i(l, u, D, "&", "\\And");
|
|
3658
|
+
i(l, u, f, "⟵", "\\longleftarrow", !0);
|
|
3659
|
+
i(l, u, f, "⇐", "\\Leftarrow", !0);
|
|
3660
|
+
i(l, u, f, "⟸", "\\Longleftarrow", !0);
|
|
3661
|
+
i(l, u, f, "⟶", "\\longrightarrow", !0);
|
|
3662
|
+
i(l, u, f, "⇒", "\\Rightarrow", !0);
|
|
3663
|
+
i(l, u, f, "⟹", "\\Longrightarrow", !0);
|
|
3664
|
+
i(l, u, f, "↔", "\\leftrightarrow", !0);
|
|
3665
|
+
i(l, u, f, "⟷", "\\longleftrightarrow", !0);
|
|
3666
|
+
i(l, u, f, "⇔", "\\Leftrightarrow", !0);
|
|
3667
|
+
i(l, u, f, "⟺", "\\Longleftrightarrow", !0);
|
|
3668
|
+
i(l, u, f, "↦", "\\mapsto", !0);
|
|
3669
|
+
i(l, u, f, "⟼", "\\longmapsto", !0);
|
|
3670
|
+
i(l, u, f, "↗", "\\nearrow", !0);
|
|
3671
|
+
i(l, u, f, "↩", "\\hookleftarrow", !0);
|
|
3672
|
+
i(l, u, f, "↪", "\\hookrightarrow", !0);
|
|
3673
|
+
i(l, u, f, "↘", "\\searrow", !0);
|
|
3674
|
+
i(l, u, f, "↼", "\\leftharpoonup", !0);
|
|
3675
|
+
i(l, u, f, "⇀", "\\rightharpoonup", !0);
|
|
3676
|
+
i(l, u, f, "↙", "\\swarrow", !0);
|
|
3677
|
+
i(l, u, f, "↽", "\\leftharpoondown", !0);
|
|
3678
|
+
i(l, u, f, "⇁", "\\rightharpoondown", !0);
|
|
3679
|
+
i(l, u, f, "↖", "\\nwarrow", !0);
|
|
3680
|
+
i(l, u, f, "⇌", "\\rightleftharpoons", !0);
|
|
3681
3681
|
i(l, d, f, "≮", "\\nless", !0);
|
|
3682
3682
|
i(l, d, f, "", "\\@nleqslant");
|
|
3683
3683
|
i(l, d, f, "", "\\@nleqq");
|
|
@@ -3757,7 +3757,7 @@ i(l, d, v, "★", "\\bigstar");
|
|
|
3757
3757
|
i(l, d, v, "∢", "\\sphericalangle", !0);
|
|
3758
3758
|
i(l, d, v, "∁", "\\complement", !0);
|
|
3759
3759
|
i(l, d, v, "ð", "\\eth", !0);
|
|
3760
|
-
i(k,
|
|
3760
|
+
i(k, u, v, "ð", "ð");
|
|
3761
3761
|
i(l, d, v, "╱", "\\diagup");
|
|
3762
3762
|
i(l, d, v, "╲", "\\diagdown");
|
|
3763
3763
|
i(l, d, v, "□", "\\square");
|
|
@@ -3847,7 +3847,7 @@ i(l, d, f, "⋙", "\\gggtr");
|
|
|
3847
3847
|
i(l, d, D, "⊲", "\\lhd");
|
|
3848
3848
|
i(l, d, D, "⊳", "\\rhd");
|
|
3849
3849
|
i(l, d, f, "≂", "\\eqsim", !0);
|
|
3850
|
-
i(l,
|
|
3850
|
+
i(l, u, f, "⋈", "\\Join");
|
|
3851
3851
|
i(l, d, f, "≑", "\\Doteq", !0);
|
|
3852
3852
|
i(l, d, D, "∔", "\\dotplus", !0);
|
|
3853
3853
|
i(l, d, D, "∖", "\\smallsetminus");
|
|
@@ -3885,8 +3885,8 @@ i(l, d, f, "↰", "\\Lsh", !0);
|
|
|
3885
3885
|
i(l, d, f, "⇈", "\\upuparrows", !0);
|
|
3886
3886
|
i(l, d, f, "↿", "\\upharpoonleft", !0);
|
|
3887
3887
|
i(l, d, f, "⇃", "\\downharpoonleft", !0);
|
|
3888
|
-
i(l,
|
|
3889
|
-
i(l,
|
|
3888
|
+
i(l, u, f, "⊶", "\\origof", !0);
|
|
3889
|
+
i(l, u, f, "⊷", "\\imageof", !0);
|
|
3890
3890
|
i(l, d, f, "⊸", "\\multimap", !0);
|
|
3891
3891
|
i(l, d, f, "↭", "\\leftrightsquigarrow", !0);
|
|
3892
3892
|
i(l, d, f, "⇉", "\\rightrightarrows", !0);
|
|
@@ -3904,297 +3904,297 @@ i(l, d, f, "⇝", "\\rightsquigarrow", !0);
|
|
|
3904
3904
|
i(l, d, f, "⇝", "\\leadsto");
|
|
3905
3905
|
i(l, d, f, "⇛", "\\Rrightarrow", !0);
|
|
3906
3906
|
i(l, d, f, "↾", "\\restriction");
|
|
3907
|
-
i(l,
|
|
3908
|
-
i(l,
|
|
3909
|
-
i(k,
|
|
3910
|
-
i(k,
|
|
3911
|
-
i(l,
|
|
3912
|
-
i(k,
|
|
3913
|
-
i(l,
|
|
3914
|
-
i(k,
|
|
3915
|
-
i(k,
|
|
3916
|
-
i(l,
|
|
3917
|
-
i(l,
|
|
3918
|
-
i(l,
|
|
3919
|
-
i(l,
|
|
3920
|
-
i(l,
|
|
3921
|
-
i(l,
|
|
3922
|
-
i(l,
|
|
3923
|
-
i(l,
|
|
3924
|
-
i(l,
|
|
3925
|
-
i(l,
|
|
3926
|
-
i(l,
|
|
3927
|
-
i(l,
|
|
3928
|
-
i(l,
|
|
3929
|
-
i(l,
|
|
3930
|
-
i(l,
|
|
3931
|
-
i(l,
|
|
3932
|
-
i(l,
|
|
3933
|
-
i(l,
|
|
3934
|
-
i(l,
|
|
3935
|
-
i(l,
|
|
3936
|
-
i(l,
|
|
3937
|
-
i(l,
|
|
3938
|
-
i(l,
|
|
3939
|
-
i(l,
|
|
3940
|
-
i(l,
|
|
3941
|
-
i(l,
|
|
3942
|
-
i(l,
|
|
3943
|
-
i(l,
|
|
3944
|
-
i(l,
|
|
3945
|
-
i(l,
|
|
3946
|
-
i(l,
|
|
3947
|
-
i(l,
|
|
3948
|
-
i(l,
|
|
3907
|
+
i(l, u, v, "‘", "`");
|
|
3908
|
+
i(l, u, v, "$", "\\$");
|
|
3909
|
+
i(k, u, v, "$", "\\$");
|
|
3910
|
+
i(k, u, v, "$", "\\textdollar");
|
|
3911
|
+
i(l, u, v, "%", "\\%");
|
|
3912
|
+
i(k, u, v, "%", "\\%");
|
|
3913
|
+
i(l, u, v, "_", "\\_");
|
|
3914
|
+
i(k, u, v, "_", "\\_");
|
|
3915
|
+
i(k, u, v, "_", "\\textunderscore");
|
|
3916
|
+
i(l, u, v, "∠", "\\angle", !0);
|
|
3917
|
+
i(l, u, v, "∞", "\\infty", !0);
|
|
3918
|
+
i(l, u, v, "′", "\\prime");
|
|
3919
|
+
i(l, u, v, "△", "\\triangle");
|
|
3920
|
+
i(l, u, v, "Γ", "\\Gamma", !0);
|
|
3921
|
+
i(l, u, v, "Δ", "\\Delta", !0);
|
|
3922
|
+
i(l, u, v, "Θ", "\\Theta", !0);
|
|
3923
|
+
i(l, u, v, "Λ", "\\Lambda", !0);
|
|
3924
|
+
i(l, u, v, "Ξ", "\\Xi", !0);
|
|
3925
|
+
i(l, u, v, "Π", "\\Pi", !0);
|
|
3926
|
+
i(l, u, v, "Σ", "\\Sigma", !0);
|
|
3927
|
+
i(l, u, v, "Υ", "\\Upsilon", !0);
|
|
3928
|
+
i(l, u, v, "Φ", "\\Phi", !0);
|
|
3929
|
+
i(l, u, v, "Ψ", "\\Psi", !0);
|
|
3930
|
+
i(l, u, v, "Ω", "\\Omega", !0);
|
|
3931
|
+
i(l, u, v, "A", "Α");
|
|
3932
|
+
i(l, u, v, "B", "Β");
|
|
3933
|
+
i(l, u, v, "E", "Ε");
|
|
3934
|
+
i(l, u, v, "Z", "Ζ");
|
|
3935
|
+
i(l, u, v, "H", "Η");
|
|
3936
|
+
i(l, u, v, "I", "Ι");
|
|
3937
|
+
i(l, u, v, "K", "Κ");
|
|
3938
|
+
i(l, u, v, "M", "Μ");
|
|
3939
|
+
i(l, u, v, "N", "Ν");
|
|
3940
|
+
i(l, u, v, "O", "Ο");
|
|
3941
|
+
i(l, u, v, "P", "Ρ");
|
|
3942
|
+
i(l, u, v, "T", "Τ");
|
|
3943
|
+
i(l, u, v, "X", "Χ");
|
|
3944
|
+
i(l, u, v, "¬", "\\neg", !0);
|
|
3945
|
+
i(l, u, v, "¬", "\\lnot");
|
|
3946
|
+
i(l, u, v, "⊤", "\\top");
|
|
3947
|
+
i(l, u, v, "⊥", "\\bot");
|
|
3948
|
+
i(l, u, v, "∅", "\\emptyset");
|
|
3949
3949
|
i(l, d, v, "∅", "\\varnothing");
|
|
3950
|
-
i(l,
|
|
3951
|
-
i(l,
|
|
3952
|
-
i(l,
|
|
3953
|
-
i(l,
|
|
3954
|
-
i(l,
|
|
3955
|
-
i(l,
|
|
3956
|
-
i(l,
|
|
3957
|
-
i(l,
|
|
3958
|
-
i(l,
|
|
3959
|
-
i(l,
|
|
3960
|
-
i(l,
|
|
3961
|
-
i(l,
|
|
3962
|
-
i(l,
|
|
3963
|
-
i(l,
|
|
3964
|
-
i(l,
|
|
3965
|
-
i(l,
|
|
3966
|
-
i(l,
|
|
3967
|
-
i(l,
|
|
3968
|
-
i(l,
|
|
3969
|
-
i(l,
|
|
3970
|
-
i(l,
|
|
3971
|
-
i(l,
|
|
3972
|
-
i(l,
|
|
3973
|
-
i(l,
|
|
3974
|
-
i(l,
|
|
3975
|
-
i(l,
|
|
3976
|
-
i(l,
|
|
3977
|
-
i(l,
|
|
3978
|
-
i(l,
|
|
3979
|
-
i(l,
|
|
3980
|
-
i(l,
|
|
3981
|
-
i(l,
|
|
3982
|
-
i(l,
|
|
3983
|
-
i(l,
|
|
3984
|
-
i(l,
|
|
3985
|
-
i(l,
|
|
3986
|
-
i(l,
|
|
3987
|
-
i(l,
|
|
3988
|
-
i(l,
|
|
3989
|
-
i(l,
|
|
3990
|
-
i(l,
|
|
3991
|
-
i(l,
|
|
3992
|
-
i(l,
|
|
3993
|
-
i(l,
|
|
3994
|
-
i(l,
|
|
3995
|
-
i(l,
|
|
3996
|
-
i(l,
|
|
3997
|
-
i(l,
|
|
3998
|
-
i(l,
|
|
3999
|
-
i(l,
|
|
4000
|
-
i(l,
|
|
4001
|
-
i(l,
|
|
4002
|
-
i(l,
|
|
4003
|
-
i(l,
|
|
4004
|
-
i(l,
|
|
4005
|
-
i(l,
|
|
4006
|
-
i(l,
|
|
4007
|
-
i(l,
|
|
4008
|
-
i(l,
|
|
4009
|
-
i(l,
|
|
4010
|
-
i(l,
|
|
4011
|
-
i(l,
|
|
4012
|
-
i(l,
|
|
4013
|
-
i(l,
|
|
4014
|
-
i(l,
|
|
4015
|
-
i(l,
|
|
4016
|
-
i(l,
|
|
4017
|
-
i(l,
|
|
3950
|
+
i(l, u, E, "α", "\\alpha", !0);
|
|
3951
|
+
i(l, u, E, "β", "\\beta", !0);
|
|
3952
|
+
i(l, u, E, "γ", "\\gamma", !0);
|
|
3953
|
+
i(l, u, E, "δ", "\\delta", !0);
|
|
3954
|
+
i(l, u, E, "ϵ", "\\epsilon", !0);
|
|
3955
|
+
i(l, u, E, "ζ", "\\zeta", !0);
|
|
3956
|
+
i(l, u, E, "η", "\\eta", !0);
|
|
3957
|
+
i(l, u, E, "θ", "\\theta", !0);
|
|
3958
|
+
i(l, u, E, "ι", "\\iota", !0);
|
|
3959
|
+
i(l, u, E, "κ", "\\kappa", !0);
|
|
3960
|
+
i(l, u, E, "λ", "\\lambda", !0);
|
|
3961
|
+
i(l, u, E, "μ", "\\mu", !0);
|
|
3962
|
+
i(l, u, E, "ν", "\\nu", !0);
|
|
3963
|
+
i(l, u, E, "ξ", "\\xi", !0);
|
|
3964
|
+
i(l, u, E, "ο", "\\omicron", !0);
|
|
3965
|
+
i(l, u, E, "π", "\\pi", !0);
|
|
3966
|
+
i(l, u, E, "ρ", "\\rho", !0);
|
|
3967
|
+
i(l, u, E, "σ", "\\sigma", !0);
|
|
3968
|
+
i(l, u, E, "τ", "\\tau", !0);
|
|
3969
|
+
i(l, u, E, "υ", "\\upsilon", !0);
|
|
3970
|
+
i(l, u, E, "ϕ", "\\phi", !0);
|
|
3971
|
+
i(l, u, E, "χ", "\\chi", !0);
|
|
3972
|
+
i(l, u, E, "ψ", "\\psi", !0);
|
|
3973
|
+
i(l, u, E, "ω", "\\omega", !0);
|
|
3974
|
+
i(l, u, E, "ε", "\\varepsilon", !0);
|
|
3975
|
+
i(l, u, E, "ϑ", "\\vartheta", !0);
|
|
3976
|
+
i(l, u, E, "ϖ", "\\varpi", !0);
|
|
3977
|
+
i(l, u, E, "ϱ", "\\varrho", !0);
|
|
3978
|
+
i(l, u, E, "ς", "\\varsigma", !0);
|
|
3979
|
+
i(l, u, E, "φ", "\\varphi", !0);
|
|
3980
|
+
i(l, u, D, "∗", "*", !0);
|
|
3981
|
+
i(l, u, D, "+", "+");
|
|
3982
|
+
i(l, u, D, "−", "-", !0);
|
|
3983
|
+
i(l, u, D, "⋅", "\\cdot", !0);
|
|
3984
|
+
i(l, u, D, "∘", "\\circ", !0);
|
|
3985
|
+
i(l, u, D, "÷", "\\div", !0);
|
|
3986
|
+
i(l, u, D, "±", "\\pm", !0);
|
|
3987
|
+
i(l, u, D, "×", "\\times", !0);
|
|
3988
|
+
i(l, u, D, "∩", "\\cap", !0);
|
|
3989
|
+
i(l, u, D, "∪", "\\cup", !0);
|
|
3990
|
+
i(l, u, D, "∖", "\\setminus", !0);
|
|
3991
|
+
i(l, u, D, "∧", "\\land");
|
|
3992
|
+
i(l, u, D, "∨", "\\lor");
|
|
3993
|
+
i(l, u, D, "∧", "\\wedge", !0);
|
|
3994
|
+
i(l, u, D, "∨", "\\vee", !0);
|
|
3995
|
+
i(l, u, v, "√", "\\surd");
|
|
3996
|
+
i(l, u, m0, "⟨", "\\langle", !0);
|
|
3997
|
+
i(l, u, m0, "∣", "\\lvert");
|
|
3998
|
+
i(l, u, m0, "∥", "\\lVert");
|
|
3999
|
+
i(l, u, i0, "?", "?");
|
|
4000
|
+
i(l, u, i0, "!", "!");
|
|
4001
|
+
i(l, u, i0, "⟩", "\\rangle", !0);
|
|
4002
|
+
i(l, u, i0, "∣", "\\rvert");
|
|
4003
|
+
i(l, u, i0, "∥", "\\rVert");
|
|
4004
|
+
i(l, u, f, "=", "=");
|
|
4005
|
+
i(l, u, f, ":", ":");
|
|
4006
|
+
i(l, u, f, "≈", "\\approx", !0);
|
|
4007
|
+
i(l, u, f, "≅", "\\cong", !0);
|
|
4008
|
+
i(l, u, f, "≥", "\\ge");
|
|
4009
|
+
i(l, u, f, "≥", "\\geq", !0);
|
|
4010
|
+
i(l, u, f, "←", "\\gets");
|
|
4011
|
+
i(l, u, f, ">", "\\gt", !0);
|
|
4012
|
+
i(l, u, f, "∈", "\\in", !0);
|
|
4013
|
+
i(l, u, f, "", "\\@not");
|
|
4014
|
+
i(l, u, f, "⊂", "\\subset", !0);
|
|
4015
|
+
i(l, u, f, "⊃", "\\supset", !0);
|
|
4016
|
+
i(l, u, f, "⊆", "\\subseteq", !0);
|
|
4017
|
+
i(l, u, f, "⊇", "\\supseteq", !0);
|
|
4018
4018
|
i(l, d, f, "⊈", "\\nsubseteq", !0);
|
|
4019
4019
|
i(l, d, f, "⊉", "\\nsupseteq", !0);
|
|
4020
|
-
i(l,
|
|
4021
|
-
i(l,
|
|
4022
|
-
i(l,
|
|
4023
|
-
i(l,
|
|
4024
|
-
i(l,
|
|
4025
|
-
i(l,
|
|
4026
|
-
i(l,
|
|
4020
|
+
i(l, u, f, "⊨", "\\models");
|
|
4021
|
+
i(l, u, f, "←", "\\leftarrow", !0);
|
|
4022
|
+
i(l, u, f, "≤", "\\le");
|
|
4023
|
+
i(l, u, f, "≤", "\\leq", !0);
|
|
4024
|
+
i(l, u, f, "<", "\\lt", !0);
|
|
4025
|
+
i(l, u, f, "→", "\\rightarrow", !0);
|
|
4026
|
+
i(l, u, f, "→", "\\to");
|
|
4027
4027
|
i(l, d, f, "≱", "\\ngeq", !0);
|
|
4028
4028
|
i(l, d, f, "≰", "\\nleq", !0);
|
|
4029
|
-
i(l,
|
|
4030
|
-
i(l,
|
|
4031
|
-
i(l,
|
|
4032
|
-
i(k,
|
|
4033
|
-
i(k,
|
|
4034
|
-
i(k,
|
|
4035
|
-
i(k,
|
|
4036
|
-
i(l,
|
|
4037
|
-
i(l,
|
|
4038
|
-
i(l,
|
|
4039
|
-
i(l,
|
|
4029
|
+
i(l, u, E0, " ", "\\ ");
|
|
4030
|
+
i(l, u, E0, " ", "\\space");
|
|
4031
|
+
i(l, u, E0, " ", "\\nobreakspace");
|
|
4032
|
+
i(k, u, E0, " ", "\\ ");
|
|
4033
|
+
i(k, u, E0, " ", " ");
|
|
4034
|
+
i(k, u, E0, " ", "\\space");
|
|
4035
|
+
i(k, u, E0, " ", "\\nobreakspace");
|
|
4036
|
+
i(l, u, E0, null, "\\nobreak");
|
|
4037
|
+
i(l, u, E0, null, "\\allowbreak");
|
|
4038
|
+
i(l, u, qe, ",", ",");
|
|
4039
|
+
i(l, u, qe, ";", ";");
|
|
4040
4040
|
i(l, d, D, "⊼", "\\barwedge", !0);
|
|
4041
4041
|
i(l, d, D, "⊻", "\\veebar", !0);
|
|
4042
|
-
i(l,
|
|
4043
|
-
i(l,
|
|
4044
|
-
i(l,
|
|
4045
|
-
i(l,
|
|
4046
|
-
i(l,
|
|
4042
|
+
i(l, u, D, "⊙", "\\odot", !0);
|
|
4043
|
+
i(l, u, D, "⊕", "\\oplus", !0);
|
|
4044
|
+
i(l, u, D, "⊗", "\\otimes", !0);
|
|
4045
|
+
i(l, u, v, "∂", "\\partial", !0);
|
|
4046
|
+
i(l, u, D, "⊘", "\\oslash", !0);
|
|
4047
4047
|
i(l, d, D, "⊚", "\\circledcirc", !0);
|
|
4048
4048
|
i(l, d, D, "⊡", "\\boxdot", !0);
|
|
4049
|
-
i(l,
|
|
4050
|
-
i(l,
|
|
4051
|
-
i(l,
|
|
4052
|
-
i(l,
|
|
4053
|
-
i(l,
|
|
4054
|
-
i(l,
|
|
4055
|
-
i(l,
|
|
4056
|
-
i(l,
|
|
4057
|
-
i(k,
|
|
4058
|
-
i(k,
|
|
4059
|
-
i(l,
|
|
4060
|
-
i(k,
|
|
4061
|
-
i(k,
|
|
4062
|
-
i(l,
|
|
4063
|
-
i(l,
|
|
4064
|
-
i(l,
|
|
4065
|
-
i(k,
|
|
4066
|
-
i(l,
|
|
4067
|
-
i(k,
|
|
4068
|
-
i(l,
|
|
4069
|
-
i(l,
|
|
4070
|
-
i(k,
|
|
4071
|
-
i(k,
|
|
4072
|
-
i(l,
|
|
4073
|
-
i(l,
|
|
4074
|
-
i(l,
|
|
4075
|
-
i(l,
|
|
4076
|
-
i(l,
|
|
4077
|
-
i(l,
|
|
4078
|
-
i(l,
|
|
4079
|
-
i(k,
|
|
4080
|
-
i(l,
|
|
4081
|
-
i(l,
|
|
4082
|
-
i(k,
|
|
4083
|
-
i(k,
|
|
4084
|
-
i(k,
|
|
4085
|
-
i(k,
|
|
4086
|
-
i(l,
|
|
4087
|
-
i(l,
|
|
4088
|
-
i(l,
|
|
4089
|
-
i(l,
|
|
4090
|
-
i(l,
|
|
4091
|
-
i(l,
|
|
4092
|
-
i(l,
|
|
4093
|
-
i(l,
|
|
4094
|
-
i(l,
|
|
4095
|
-
i(l,
|
|
4096
|
-
i(l,
|
|
4097
|
-
i(l,
|
|
4098
|
-
i(l,
|
|
4099
|
-
i(l,
|
|
4100
|
-
i(l,
|
|
4101
|
-
i(l,
|
|
4102
|
-
i(l,
|
|
4103
|
-
i(l,
|
|
4104
|
-
i(l,
|
|
4105
|
-
i(l,
|
|
4106
|
-
i(l,
|
|
4107
|
-
i(l,
|
|
4108
|
-
i(l,
|
|
4109
|
-
i(l,
|
|
4110
|
-
i(l,
|
|
4111
|
-
i(l,
|
|
4112
|
-
i(k,
|
|
4113
|
-
i(l,
|
|
4114
|
-
i(k,
|
|
4115
|
-
i(l,
|
|
4116
|
-
i(l,
|
|
4117
|
-
i(l,
|
|
4118
|
-
i(l,
|
|
4119
|
-
i(k,
|
|
4120
|
-
i(l,
|
|
4121
|
-
i(l,
|
|
4122
|
-
i(l,
|
|
4123
|
-
i(l,
|
|
4124
|
-
i(l,
|
|
4125
|
-
i(l,
|
|
4126
|
-
i(l,
|
|
4127
|
-
i(l,
|
|
4128
|
-
i(l,
|
|
4129
|
-
i(l,
|
|
4130
|
-
i(l,
|
|
4131
|
-
i(l,
|
|
4132
|
-
i(l,
|
|
4133
|
-
i(l,
|
|
4134
|
-
i(l,
|
|
4135
|
-
i(k,
|
|
4136
|
-
i(k,
|
|
4137
|
-
i(k,
|
|
4138
|
-
i(k,
|
|
4139
|
-
i(k,
|
|
4140
|
-
i(k,
|
|
4141
|
-
i(k,
|
|
4142
|
-
i(k,
|
|
4143
|
-
i(k,
|
|
4144
|
-
i(k,
|
|
4145
|
-
i(k,
|
|
4146
|
-
i(k,
|
|
4147
|
-
i(k,
|
|
4148
|
-
i(k,
|
|
4149
|
-
i(k,
|
|
4150
|
-
i(k,
|
|
4151
|
-
i(k,
|
|
4152
|
-
i(k,
|
|
4153
|
-
i(k,
|
|
4154
|
-
i(k,
|
|
4155
|
-
i(k,
|
|
4156
|
-
i(k,
|
|
4049
|
+
i(l, u, D, "△", "\\bigtriangleup");
|
|
4050
|
+
i(l, u, D, "▽", "\\bigtriangledown");
|
|
4051
|
+
i(l, u, D, "†", "\\dagger");
|
|
4052
|
+
i(l, u, D, "⋄", "\\diamond");
|
|
4053
|
+
i(l, u, D, "⋆", "\\star");
|
|
4054
|
+
i(l, u, D, "◃", "\\triangleleft");
|
|
4055
|
+
i(l, u, D, "▹", "\\triangleright");
|
|
4056
|
+
i(l, u, m0, "{", "\\{");
|
|
4057
|
+
i(k, u, v, "{", "\\{");
|
|
4058
|
+
i(k, u, v, "{", "\\textbraceleft");
|
|
4059
|
+
i(l, u, i0, "}", "\\}");
|
|
4060
|
+
i(k, u, v, "}", "\\}");
|
|
4061
|
+
i(k, u, v, "}", "\\textbraceright");
|
|
4062
|
+
i(l, u, m0, "{", "\\lbrace");
|
|
4063
|
+
i(l, u, i0, "}", "\\rbrace");
|
|
4064
|
+
i(l, u, m0, "[", "\\lbrack", !0);
|
|
4065
|
+
i(k, u, v, "[", "\\lbrack", !0);
|
|
4066
|
+
i(l, u, i0, "]", "\\rbrack", !0);
|
|
4067
|
+
i(k, u, v, "]", "\\rbrack", !0);
|
|
4068
|
+
i(l, u, m0, "(", "\\lparen", !0);
|
|
4069
|
+
i(l, u, i0, ")", "\\rparen", !0);
|
|
4070
|
+
i(k, u, v, "<", "\\textless", !0);
|
|
4071
|
+
i(k, u, v, ">", "\\textgreater", !0);
|
|
4072
|
+
i(l, u, m0, "⌊", "\\lfloor", !0);
|
|
4073
|
+
i(l, u, i0, "⌋", "\\rfloor", !0);
|
|
4074
|
+
i(l, u, m0, "⌈", "\\lceil", !0);
|
|
4075
|
+
i(l, u, i0, "⌉", "\\rceil", !0);
|
|
4076
|
+
i(l, u, v, "\\", "\\backslash");
|
|
4077
|
+
i(l, u, v, "∣", "|");
|
|
4078
|
+
i(l, u, v, "∣", "\\vert");
|
|
4079
|
+
i(k, u, v, "|", "\\textbar", !0);
|
|
4080
|
+
i(l, u, v, "∥", "\\|");
|
|
4081
|
+
i(l, u, v, "∥", "\\Vert");
|
|
4082
|
+
i(k, u, v, "∥", "\\textbardbl");
|
|
4083
|
+
i(k, u, v, "~", "\\textasciitilde");
|
|
4084
|
+
i(k, u, v, "\\", "\\textbackslash");
|
|
4085
|
+
i(k, u, v, "^", "\\textasciicircum");
|
|
4086
|
+
i(l, u, f, "↑", "\\uparrow", !0);
|
|
4087
|
+
i(l, u, f, "⇑", "\\Uparrow", !0);
|
|
4088
|
+
i(l, u, f, "↓", "\\downarrow", !0);
|
|
4089
|
+
i(l, u, f, "⇓", "\\Downarrow", !0);
|
|
4090
|
+
i(l, u, f, "↕", "\\updownarrow", !0);
|
|
4091
|
+
i(l, u, f, "⇕", "\\Updownarrow", !0);
|
|
4092
|
+
i(l, u, _, "∐", "\\coprod");
|
|
4093
|
+
i(l, u, _, "⋁", "\\bigvee");
|
|
4094
|
+
i(l, u, _, "⋀", "\\bigwedge");
|
|
4095
|
+
i(l, u, _, "⨄", "\\biguplus");
|
|
4096
|
+
i(l, u, _, "⋂", "\\bigcap");
|
|
4097
|
+
i(l, u, _, "⋃", "\\bigcup");
|
|
4098
|
+
i(l, u, _, "∫", "\\int");
|
|
4099
|
+
i(l, u, _, "∫", "\\intop");
|
|
4100
|
+
i(l, u, _, "∬", "\\iint");
|
|
4101
|
+
i(l, u, _, "∭", "\\iiint");
|
|
4102
|
+
i(l, u, _, "∏", "\\prod");
|
|
4103
|
+
i(l, u, _, "∑", "\\sum");
|
|
4104
|
+
i(l, u, _, "⨂", "\\bigotimes");
|
|
4105
|
+
i(l, u, _, "⨁", "\\bigoplus");
|
|
4106
|
+
i(l, u, _, "⨀", "\\bigodot");
|
|
4107
|
+
i(l, u, _, "∮", "\\oint");
|
|
4108
|
+
i(l, u, _, "∯", "\\oiint");
|
|
4109
|
+
i(l, u, _, "∰", "\\oiiint");
|
|
4110
|
+
i(l, u, _, "⨆", "\\bigsqcup");
|
|
4111
|
+
i(l, u, _, "∫", "\\smallint");
|
|
4112
|
+
i(k, u, re, "…", "\\textellipsis");
|
|
4113
|
+
i(l, u, re, "…", "\\mathellipsis");
|
|
4114
|
+
i(k, u, re, "…", "\\ldots", !0);
|
|
4115
|
+
i(l, u, re, "…", "\\ldots", !0);
|
|
4116
|
+
i(l, u, re, "⋯", "\\@cdots", !0);
|
|
4117
|
+
i(l, u, re, "⋱", "\\ddots", !0);
|
|
4118
|
+
i(l, u, v, "⋮", "\\varvdots");
|
|
4119
|
+
i(k, u, v, "⋮", "\\varvdots");
|
|
4120
|
+
i(l, u, W, "ˊ", "\\acute");
|
|
4121
|
+
i(l, u, W, "ˋ", "\\grave");
|
|
4122
|
+
i(l, u, W, "¨", "\\ddot");
|
|
4123
|
+
i(l, u, W, "~", "\\tilde");
|
|
4124
|
+
i(l, u, W, "ˉ", "\\bar");
|
|
4125
|
+
i(l, u, W, "˘", "\\breve");
|
|
4126
|
+
i(l, u, W, "ˇ", "\\check");
|
|
4127
|
+
i(l, u, W, "^", "\\hat");
|
|
4128
|
+
i(l, u, W, "⃗", "\\vec");
|
|
4129
|
+
i(l, u, W, "˙", "\\dot");
|
|
4130
|
+
i(l, u, W, "˚", "\\mathring");
|
|
4131
|
+
i(l, u, E, "", "\\@imath");
|
|
4132
|
+
i(l, u, E, "", "\\@jmath");
|
|
4133
|
+
i(l, u, v, "ı", "ı");
|
|
4134
|
+
i(l, u, v, "ȷ", "ȷ");
|
|
4135
|
+
i(k, u, v, "ı", "\\i", !0);
|
|
4136
|
+
i(k, u, v, "ȷ", "\\j", !0);
|
|
4137
|
+
i(k, u, v, "ß", "\\ss", !0);
|
|
4138
|
+
i(k, u, v, "æ", "\\ae", !0);
|
|
4139
|
+
i(k, u, v, "œ", "\\oe", !0);
|
|
4140
|
+
i(k, u, v, "ø", "\\o", !0);
|
|
4141
|
+
i(k, u, v, "Æ", "\\AE", !0);
|
|
4142
|
+
i(k, u, v, "Œ", "\\OE", !0);
|
|
4143
|
+
i(k, u, v, "Ø", "\\O", !0);
|
|
4144
|
+
i(k, u, W, "ˊ", "\\'");
|
|
4145
|
+
i(k, u, W, "ˋ", "\\`");
|
|
4146
|
+
i(k, u, W, "ˆ", "\\^");
|
|
4147
|
+
i(k, u, W, "˜", "\\~");
|
|
4148
|
+
i(k, u, W, "ˉ", "\\=");
|
|
4149
|
+
i(k, u, W, "˘", "\\u");
|
|
4150
|
+
i(k, u, W, "˙", "\\.");
|
|
4151
|
+
i(k, u, W, "¸", "\\c");
|
|
4152
|
+
i(k, u, W, "˚", "\\r");
|
|
4153
|
+
i(k, u, W, "ˇ", "\\v");
|
|
4154
|
+
i(k, u, W, "¨", '\\"');
|
|
4155
|
+
i(k, u, W, "˝", "\\H");
|
|
4156
|
+
i(k, u, W, "◯", "\\textcircled");
|
|
4157
4157
|
var kr = {
|
|
4158
4158
|
"--": !0,
|
|
4159
4159
|
"---": !0,
|
|
4160
4160
|
"``": !0,
|
|
4161
4161
|
"''": !0
|
|
4162
4162
|
};
|
|
4163
|
-
i(k,
|
|
4164
|
-
i(k,
|
|
4165
|
-
i(k,
|
|
4166
|
-
i(k,
|
|
4167
|
-
i(k,
|
|
4168
|
-
i(k,
|
|
4169
|
-
i(k,
|
|
4170
|
-
i(k,
|
|
4171
|
-
i(k,
|
|
4172
|
-
i(k,
|
|
4173
|
-
i(k,
|
|
4174
|
-
i(k,
|
|
4175
|
-
i(l,
|
|
4176
|
-
i(k,
|
|
4177
|
-
i(k,
|
|
4178
|
-
i(l,
|
|
4179
|
-
i(l,
|
|
4180
|
-
i(k,
|
|
4181
|
-
i(k,
|
|
4163
|
+
i(k, u, v, "–", "--", !0);
|
|
4164
|
+
i(k, u, v, "–", "\\textendash");
|
|
4165
|
+
i(k, u, v, "—", "---", !0);
|
|
4166
|
+
i(k, u, v, "—", "\\textemdash");
|
|
4167
|
+
i(k, u, v, "‘", "`", !0);
|
|
4168
|
+
i(k, u, v, "‘", "\\textquoteleft");
|
|
4169
|
+
i(k, u, v, "’", "'", !0);
|
|
4170
|
+
i(k, u, v, "’", "\\textquoteright");
|
|
4171
|
+
i(k, u, v, "“", "``", !0);
|
|
4172
|
+
i(k, u, v, "“", "\\textquotedblleft");
|
|
4173
|
+
i(k, u, v, "”", "''", !0);
|
|
4174
|
+
i(k, u, v, "”", "\\textquotedblright");
|
|
4175
|
+
i(l, u, v, "°", "\\degree", !0);
|
|
4176
|
+
i(k, u, v, "°", "\\degree");
|
|
4177
|
+
i(k, u, v, "°", "\\textdegree", !0);
|
|
4178
|
+
i(l, u, v, "£", "\\pounds");
|
|
4179
|
+
i(l, u, v, "£", "\\mathsterling", !0);
|
|
4180
|
+
i(k, u, v, "£", "\\pounds");
|
|
4181
|
+
i(k, u, v, "£", "\\textsterling", !0);
|
|
4182
4182
|
i(l, d, v, "✠", "\\maltese");
|
|
4183
4183
|
i(k, d, v, "✠", "\\maltese");
|
|
4184
4184
|
var Gt = '0123456789/@."';
|
|
4185
4185
|
for (var Ye = 0; Ye < Gt.length; Ye++) {
|
|
4186
4186
|
var Vt = Gt.charAt(Ye);
|
|
4187
|
-
i(l,
|
|
4187
|
+
i(l, u, v, Vt, Vt);
|
|
4188
4188
|
}
|
|
4189
4189
|
var Ut = '0123456789!@*()-=+";:?/.,';
|
|
4190
4190
|
for (var Xe = 0; Xe < Ut.length; Xe++) {
|
|
4191
4191
|
var Yt = Ut.charAt(Xe);
|
|
4192
|
-
i(k,
|
|
4192
|
+
i(k, u, v, Yt, Yt);
|
|
4193
4193
|
}
|
|
4194
4194
|
var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
4195
4195
|
for (var $e = 0; $e < Be.length; $e++) {
|
|
4196
4196
|
var ge = Be.charAt($e);
|
|
4197
|
-
i(l,
|
|
4197
|
+
i(l, u, E, ge, ge), i(k, u, v, ge, ge);
|
|
4198
4198
|
}
|
|
4199
4199
|
i(l, d, v, "C", "ℂ");
|
|
4200
4200
|
i(k, d, v, "C", "ℂ");
|
|
@@ -4210,24 +4210,24 @@ i(l, d, v, "R", "ℝ");
|
|
|
4210
4210
|
i(k, d, v, "R", "ℝ");
|
|
4211
4211
|
i(l, d, v, "Z", "ℤ");
|
|
4212
4212
|
i(k, d, v, "Z", "ℤ");
|
|
4213
|
-
i(l,
|
|
4214
|
-
i(k,
|
|
4213
|
+
i(l, u, E, "h", "ℎ");
|
|
4214
|
+
i(k, u, E, "h", "ℎ");
|
|
4215
4215
|
var I = "";
|
|
4216
4216
|
for (var a0 = 0; a0 < Be.length; a0++) {
|
|
4217
4217
|
var J = Be.charAt(a0);
|
|
4218
|
-
I = String.fromCharCode(55349, 56320 + a0), i(l,
|
|
4218
|
+
I = String.fromCharCode(55349, 56320 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56372 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56424 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56580 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56684 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56736 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56788 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56840 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56944 + a0), i(l, u, E, J, I), i(k, u, v, J, I), a0 < 26 && (I = String.fromCharCode(55349, 56632 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56476 + a0), i(l, u, E, J, I), i(k, u, v, J, I));
|
|
4219
4219
|
}
|
|
4220
4220
|
I = "𝕜";
|
|
4221
|
-
i(l,
|
|
4222
|
-
i(k,
|
|
4221
|
+
i(l, u, E, "k", I);
|
|
4222
|
+
i(k, u, v, "k", I);
|
|
4223
4223
|
for (var X0 = 0; X0 < 10; X0++) {
|
|
4224
4224
|
var H0 = X0.toString();
|
|
4225
|
-
I = String.fromCharCode(55349, 57294 + X0), i(l,
|
|
4225
|
+
I = String.fromCharCode(55349, 57294 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57314 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57324 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57334 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I);
|
|
4226
4226
|
}
|
|
4227
4227
|
var lt = "ÐÞþ";
|
|
4228
4228
|
for (var We = 0; We < lt.length; We++) {
|
|
4229
4229
|
var be = lt.charAt(We);
|
|
4230
|
-
i(l,
|
|
4230
|
+
i(l, u, E, be, be), i(k, u, v, be, be);
|
|
4231
4231
|
}
|
|
4232
4232
|
var ye = [
|
|
4233
4233
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -4297,16 +4297,16 @@ var ye = [
|
|
|
4297
4297
|
["mathtt", "texttt", "Typewriter-Regular"]
|
|
4298
4298
|
// 0-9 monospace
|
|
4299
4299
|
], Qa = function(e, t) {
|
|
4300
|
-
var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536,
|
|
4300
|
+
var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536, o = t === "math" ? 0 : 1;
|
|
4301
4301
|
if (119808 <= s && s < 120484) {
|
|
4302
4302
|
var h = Math.floor((s - 119808) / 26);
|
|
4303
|
-
return [ye[h][2], ye[h][
|
|
4303
|
+
return [ye[h][2], ye[h][o]];
|
|
4304
4304
|
} else if (120782 <= s && s <= 120831) {
|
|
4305
4305
|
var c = Math.floor((s - 120782) / 10);
|
|
4306
|
-
return [Xt[c][2], Xt[c][
|
|
4306
|
+
return [Xt[c][2], Xt[c][o]];
|
|
4307
4307
|
} else {
|
|
4308
4308
|
if (s === 120485 || s === 120486)
|
|
4309
|
-
return [ye[0][2], ye[0][
|
|
4309
|
+
return [ye[0][2], ye[0][o]];
|
|
4310
4310
|
if (120486 < s && s < 120782)
|
|
4311
4311
|
return ["", ""];
|
|
4312
4312
|
throw new M("Unsupported character: " + e);
|
|
@@ -4317,8 +4317,8 @@ var ye = [
|
|
|
4317
4317
|
metrics: pt(e, t, a)
|
|
4318
4318
|
};
|
|
4319
4319
|
}, b0 = function(e, t, a, n, s) {
|
|
4320
|
-
var
|
|
4321
|
-
e =
|
|
4320
|
+
var o = Ee(e, t, a), h = o.metrics;
|
|
4321
|
+
e = o.value;
|
|
4322
4322
|
var c;
|
|
4323
4323
|
if (h) {
|
|
4324
4324
|
var p = h.italic;
|
|
@@ -4342,36 +4342,36 @@ var ye = [
|
|
|
4342
4342
|
fontClass: "mathbf"
|
|
4343
4343
|
};
|
|
4344
4344
|
}, t1 = function(e, t, a) {
|
|
4345
|
-
var n = e.mode, s = e.text,
|
|
4345
|
+
var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, p = "", g = "";
|
|
4346
4346
|
if (s.charCodeAt(0) === 55349 && ([p, g] = Qa(s, n)), p.length > 0)
|
|
4347
|
-
return b0(s, p, n, t,
|
|
4347
|
+
return b0(s, p, n, t, o.concat(g));
|
|
4348
4348
|
if (c) {
|
|
4349
4349
|
var y, w;
|
|
4350
4350
|
if (c === "boldsymbol") {
|
|
4351
|
-
var x = e1(s, n, t,
|
|
4351
|
+
var x = e1(s, n, t, o, a);
|
|
4352
4352
|
y = x.fontName, w = [x.fontClass];
|
|
4353
4353
|
} else h ? (y = zr[c].fontName, w = [c]) : (y = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
|
|
4354
4354
|
if (Ee(s, y, n).metrics)
|
|
4355
|
-
return b0(s, y, n, t,
|
|
4355
|
+
return b0(s, y, n, t, o.concat(w));
|
|
4356
4356
|
if (kr.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
|
|
4357
4357
|
for (var z = [], T = 0; T < s.length; T++)
|
|
4358
|
-
z.push(b0(s[T], y, n, t,
|
|
4358
|
+
z.push(b0(s[T], y, n, t, o.concat(w)));
|
|
4359
4359
|
return Mr(z);
|
|
4360
4360
|
}
|
|
4361
4361
|
}
|
|
4362
4362
|
if (a === "mathord")
|
|
4363
|
-
return b0(s, "Math-Italic", n, t,
|
|
4363
|
+
return b0(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
|
|
4364
4364
|
if (a === "textord") {
|
|
4365
4365
|
var C = $[n][s] && $[n][s].font;
|
|
4366
4366
|
if (C === "ams") {
|
|
4367
4367
|
var N = xe("amsrm", t.fontWeight, t.fontShape);
|
|
4368
|
-
return b0(s, N, n, t,
|
|
4368
|
+
return b0(s, N, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
|
|
4369
4369
|
} else if (C === "main" || !C) {
|
|
4370
4370
|
var F = xe("textrm", t.fontWeight, t.fontShape);
|
|
4371
|
-
return b0(s, F, n, t,
|
|
4371
|
+
return b0(s, F, n, t, o.concat(t.fontWeight, t.fontShape));
|
|
4372
4372
|
} else {
|
|
4373
4373
|
var O = xe(C, t.fontWeight, t.fontShape);
|
|
4374
|
-
return b0(s, O, n, t,
|
|
4374
|
+
return b0(s, O, n, t, o.concat(O, t.fontWeight, t.fontShape));
|
|
4375
4375
|
}
|
|
4376
4376
|
} else
|
|
4377
4377
|
throw new Error("unexpected type: " + a + " in makeOrd");
|
|
@@ -4398,8 +4398,8 @@ var ye = [
|
|
|
4398
4398
|
return r;
|
|
4399
4399
|
}, gt = function(e) {
|
|
4400
4400
|
for (var t = 0, a = 0, n = 0, s = 0; s < e.children.length; s++) {
|
|
4401
|
-
var
|
|
4402
|
-
|
|
4401
|
+
var o = e.children[s];
|
|
4402
|
+
o.height > t && (t = o.height), o.depth > a && (a = o.depth), o.maxFontSize > n && (n = o.maxFontSize);
|
|
4403
4403
|
}
|
|
4404
4404
|
e.height = t, e.depth = a, e.maxFontSize = n;
|
|
4405
4405
|
}, l0 = function(e, t, a, n) {
|
|
@@ -4412,18 +4412,18 @@ var ye = [
|
|
|
4412
4412
|
var s = new vt(e, t, a, n);
|
|
4413
4413
|
return gt(s), s;
|
|
4414
4414
|
}, Mr = function(e) {
|
|
4415
|
-
var t = new
|
|
4415
|
+
var t = new ue(e);
|
|
4416
4416
|
return gt(t), t;
|
|
4417
4417
|
}, s1 = function(e, t) {
|
|
4418
|
-
return e instanceof
|
|
4418
|
+
return e instanceof ue ? l0([], [e], t) : e;
|
|
4419
4419
|
}, l1 = function(e) {
|
|
4420
4420
|
if (e.positionType === "individualShift") {
|
|
4421
|
-
for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n,
|
|
4422
|
-
var h = -t[
|
|
4421
|
+
for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
|
|
4422
|
+
var h = -t[o].shift - s - t[o].elem.depth, c = h - (t[o - 1].elem.height + t[o - 1].elem.depth);
|
|
4423
4423
|
s = s + h, a.push({
|
|
4424
4424
|
type: "kern",
|
|
4425
4425
|
size: c
|
|
4426
|
-
}), a.push(t[
|
|
4426
|
+
}), a.push(t[o]);
|
|
4427
4427
|
}
|
|
4428
4428
|
return {
|
|
4429
4429
|
children: a,
|
|
@@ -4454,12 +4454,12 @@ var ye = [
|
|
|
4454
4454
|
children: e.children,
|
|
4455
4455
|
depth: p
|
|
4456
4456
|
};
|
|
4457
|
-
},
|
|
4457
|
+
}, o1 = function(e, t) {
|
|
4458
4458
|
for (var {
|
|
4459
4459
|
children: a,
|
|
4460
4460
|
depth: n
|
|
4461
|
-
} = l1(e), s = 0,
|
|
4462
|
-
var h = a[
|
|
4461
|
+
} = l1(e), s = 0, o = 0; o < a.length; o++) {
|
|
4462
|
+
var h = a[o];
|
|
4463
4463
|
if (h.type === "elem") {
|
|
4464
4464
|
var c = h.elem;
|
|
4465
4465
|
s = Math.max(s, c.maxFontSize, c.height);
|
|
@@ -4490,7 +4490,7 @@ var ye = [
|
|
|
4490
4490
|
L = [l0(["vlist-r"], [V])];
|
|
4491
4491
|
var Y = l0(["vlist-t"], L);
|
|
4492
4492
|
return L.length === 2 && Y.classes.push("vlist-t2"), Y.height = w, Y.depth = -y, Y;
|
|
4493
|
-
},
|
|
4493
|
+
}, u1 = (r, e) => {
|
|
4494
4494
|
var t = l0(["mspace"], [], e), a = K(r, e);
|
|
4495
4495
|
return t.style.marginRight = A(a), t;
|
|
4496
4496
|
}, xe = function(e, t, a) {
|
|
@@ -4577,7 +4577,7 @@ var ye = [
|
|
|
4577
4577
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
4578
4578
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
4579
4579
|
}, h1 = function(e, t) {
|
|
4580
|
-
var [a, n, s] = Ar[e],
|
|
4580
|
+
var [a, n, s] = Ar[e], o = new G0(a), h = new C0([o], {
|
|
4581
4581
|
width: A(n),
|
|
4582
4582
|
height: A(s),
|
|
4583
4583
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -4596,9 +4596,9 @@ var ye = [
|
|
|
4596
4596
|
makeAnchor: i1,
|
|
4597
4597
|
makeFragment: Mr,
|
|
4598
4598
|
wrapFragment: s1,
|
|
4599
|
-
makeVList:
|
|
4599
|
+
makeVList: o1,
|
|
4600
4600
|
makeOrd: t1,
|
|
4601
|
-
makeGlue:
|
|
4601
|
+
makeGlue: u1,
|
|
4602
4602
|
staticSvg: h1,
|
|
4603
4603
|
svgData: Ar,
|
|
4604
4604
|
tryCombineChars: a1
|
|
@@ -4687,7 +4687,7 @@ function B(r) {
|
|
|
4687
4687
|
props: a,
|
|
4688
4688
|
handler: n,
|
|
4689
4689
|
htmlBuilder: s,
|
|
4690
|
-
mathmlBuilder:
|
|
4690
|
+
mathmlBuilder: o
|
|
4691
4691
|
} = r, h = {
|
|
4692
4692
|
type: e,
|
|
4693
4693
|
numArgs: a.numArgs,
|
|
@@ -4701,7 +4701,7 @@ function B(r) {
|
|
|
4701
4701
|
handler: n
|
|
4702
4702
|
}, c = 0; c < t.length; ++c)
|
|
4703
4703
|
Tr[t[c]] = h;
|
|
4704
|
-
e && (s && (De[e] = s),
|
|
4704
|
+
e && (s && (De[e] = s), o && (Ce[e] = o));
|
|
4705
4705
|
}
|
|
4706
4706
|
function W0(r) {
|
|
4707
4707
|
var {
|
|
@@ -4742,9 +4742,9 @@ var Ne = function(e) {
|
|
|
4742
4742
|
minner: "minner"
|
|
4743
4743
|
}, t0 = function(e, t, a, n) {
|
|
4744
4744
|
n === void 0 && (n = [null, null]);
|
|
4745
|
-
for (var s = [],
|
|
4746
|
-
var h = P(e[
|
|
4747
|
-
if (h instanceof
|
|
4745
|
+
for (var s = [], o = 0; o < e.length; o++) {
|
|
4746
|
+
var h = P(e[o], t);
|
|
4747
|
+
if (h instanceof ue) {
|
|
4748
4748
|
var c = h.children;
|
|
4749
4749
|
s.push(...c);
|
|
4750
4750
|
} else
|
|
@@ -4764,7 +4764,7 @@ var Ne = function(e) {
|
|
|
4764
4764
|
}, {
|
|
4765
4765
|
node: y
|
|
4766
4766
|
}, w, x), $t(s, (z, T) => {
|
|
4767
|
-
var C =
|
|
4767
|
+
var C = ot(T), N = ot(z), F = C && N ? z.hasClass("mtight") ? c1[C][N] : m1[C][N] : null;
|
|
4768
4768
|
if (F)
|
|
4769
4769
|
return b.makeGlue(F, p);
|
|
4770
4770
|
}, {
|
|
@@ -4772,8 +4772,8 @@ var Ne = function(e) {
|
|
|
4772
4772
|
}, w, x), s;
|
|
4773
4773
|
}, $t = function r(e, t, a, n, s) {
|
|
4774
4774
|
n && e.push(n);
|
|
4775
|
-
for (var
|
|
4776
|
-
var h = e[
|
|
4775
|
+
for (var o = 0; o < e.length; o++) {
|
|
4776
|
+
var h = e[o], c = Br(h);
|
|
4777
4777
|
if (c) {
|
|
4778
4778
|
r(c.children, t, a, null, s);
|
|
4779
4779
|
continue;
|
|
@@ -4781,15 +4781,15 @@ var Ne = function(e) {
|
|
|
4781
4781
|
var p = !h.hasClass("mspace");
|
|
4782
4782
|
if (p) {
|
|
4783
4783
|
var g = t(h, a.node);
|
|
4784
|
-
g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g),
|
|
4784
|
+
g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g), o++));
|
|
4785
4785
|
}
|
|
4786
4786
|
p ? a.node = h : s && h.hasClass("newline") && (a.node = N0(["leftmost"])), a.insertAfter = /* @__PURE__ */ ((y) => (w) => {
|
|
4787
|
-
e.splice(y + 1, 0, w),
|
|
4788
|
-
})(
|
|
4787
|
+
e.splice(y + 1, 0, w), o++;
|
|
4788
|
+
})(o);
|
|
4789
4789
|
}
|
|
4790
4790
|
n && e.pop();
|
|
4791
4791
|
}, Br = function(e) {
|
|
4792
|
-
return e instanceof
|
|
4792
|
+
return e instanceof ue || e instanceof vt || e instanceof he && e.hasClass("enclosing") ? e : null;
|
|
4793
4793
|
}, g1 = function r(e, t) {
|
|
4794
4794
|
var a = Br(e);
|
|
4795
4795
|
if (a) {
|
|
@@ -4802,9 +4802,9 @@ var Ne = function(e) {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
4804
|
return e;
|
|
4805
|
-
},
|
|
4805
|
+
}, ot = function(e, t) {
|
|
4806
4806
|
return e ? (t && (e = g1(e, t)), v1[e.classes[0]] || null) : null;
|
|
4807
|
-
},
|
|
4807
|
+
}, oe = function(e, t) {
|
|
4808
4808
|
var a = ["nulldelimiter"].concat(e.baseSizingClasses());
|
|
4809
4809
|
return N0(t.concat(a));
|
|
4810
4810
|
}, P = function(e, t, a) {
|
|
@@ -4825,18 +4825,18 @@ function we(r, e) {
|
|
|
4825
4825
|
var t = N0(["base"], r, e), a = N0(["strut"]);
|
|
4826
4826
|
return a.style.height = A(t.height + t.depth), t.depth && (a.style.verticalAlign = A(-t.depth)), t.children.unshift(a), t;
|
|
4827
4827
|
}
|
|
4828
|
-
function
|
|
4828
|
+
function ut(r, e) {
|
|
4829
4829
|
var t = null;
|
|
4830
4830
|
r.length === 1 && r[0].type === "tag" && (t = r[0].tag, r = r[0].body);
|
|
4831
4831
|
var a = t0(r, e, "root"), n;
|
|
4832
4832
|
a.length === 2 && a[1].hasClass("tag") && (n = a.pop());
|
|
4833
|
-
for (var s = [],
|
|
4834
|
-
if (
|
|
4833
|
+
for (var s = [], o = [], h = 0; h < a.length; h++)
|
|
4834
|
+
if (o.push(a[h]), a[h].hasClass("mbin") || a[h].hasClass("mrel") || a[h].hasClass("allowbreak")) {
|
|
4835
4835
|
for (var c = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); )
|
|
4836
|
-
h++,
|
|
4837
|
-
c || (s.push(we(
|
|
4838
|
-
} else a[h].hasClass("newline") && (
|
|
4839
|
-
|
|
4836
|
+
h++, o.push(a[h]), a[h].hasClass("nobreak") && (c = !0);
|
|
4837
|
+
c || (s.push(we(o, e)), o = []);
|
|
4838
|
+
} else a[h].hasClass("newline") && (o.pop(), o.length > 0 && (s.push(we(o, e)), o = []), s.push(a[h]));
|
|
4839
|
+
o.length > 0 && s.push(we(o, e));
|
|
4840
4840
|
var p;
|
|
4841
4841
|
t ? (p = we(t0(t, e, !0)), p.classes = ["tag"], s.push(p)) : n && s.push(n);
|
|
4842
4842
|
var g = N0(["katex-html"], s);
|
|
@@ -4847,7 +4847,7 @@ function ot(r, e) {
|
|
|
4847
4847
|
return g;
|
|
4848
4848
|
}
|
|
4849
4849
|
function Dr(r) {
|
|
4850
|
-
return new
|
|
4850
|
+
return new ue(r);
|
|
4851
4851
|
}
|
|
4852
4852
|
class h0 {
|
|
4853
4853
|
constructor(e, t, a) {
|
|
@@ -5002,8 +5002,8 @@ var S = {
|
|
|
5002
5002
|
if (q.contains(["\\imath", "\\jmath"], s))
|
|
5003
5003
|
return null;
|
|
5004
5004
|
$[n][s] && $[n][s].replace && (s = $[n][s].replace);
|
|
5005
|
-
var
|
|
5006
|
-
return pt(s,
|
|
5005
|
+
var o = b.fontMap[a].fontName;
|
|
5006
|
+
return pt(s, o, n) ? b.fontMap[a].variant : null;
|
|
5007
5007
|
};
|
|
5008
5008
|
function je(r) {
|
|
5009
5009
|
if (!r)
|
|
@@ -5017,41 +5017,41 @@ function je(r) {
|
|
|
5017
5017
|
} else
|
|
5018
5018
|
return !1;
|
|
5019
5019
|
}
|
|
5020
|
-
var
|
|
5020
|
+
var o0 = 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];
|
|
5024
5024
|
}
|
|
5025
|
-
for (var s = [],
|
|
5025
|
+
for (var s = [], o, h = 0; h < e.length; h++) {
|
|
5026
5026
|
var c = X(e[h], t);
|
|
5027
|
-
if (c instanceof h0 &&
|
|
5028
|
-
if (c.type === "mtext" &&
|
|
5029
|
-
|
|
5027
|
+
if (c instanceof h0 && o instanceof h0) {
|
|
5028
|
+
if (c.type === "mtext" && o.type === "mtext" && c.getAttribute("mathvariant") === o.getAttribute("mathvariant")) {
|
|
5029
|
+
o.children.push(...c.children);
|
|
5030
5030
|
continue;
|
|
5031
|
-
} else if (c.type === "mn" &&
|
|
5032
|
-
|
|
5031
|
+
} else if (c.type === "mn" && o.type === "mn") {
|
|
5032
|
+
o.children.push(...c.children);
|
|
5033
5033
|
continue;
|
|
5034
|
-
} else if (je(c) &&
|
|
5035
|
-
|
|
5034
|
+
} else if (je(c) && o.type === "mn") {
|
|
5035
|
+
o.children.push(...c.children);
|
|
5036
5036
|
continue;
|
|
5037
|
-
} else if (c.type === "mn" && je(
|
|
5038
|
-
c.children = [...
|
|
5039
|
-
else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (
|
|
5037
|
+
} else if (c.type === "mn" && je(o))
|
|
5038
|
+
c.children = [...o.children, ...c.children], s.pop();
|
|
5039
|
+
else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (o.type === "mn" || je(o))) {
|
|
5040
5040
|
var p = c.children[0];
|
|
5041
|
-
p instanceof h0 && p.type === "mn" && (p.children = [...
|
|
5042
|
-
} else if (
|
|
5043
|
-
var g =
|
|
5041
|
+
p instanceof h0 && p.type === "mn" && (p.children = [...o.children, ...p.children], s.pop());
|
|
5042
|
+
} else if (o.type === "mi" && o.children.length === 1) {
|
|
5043
|
+
var g = o.children[0];
|
|
5044
5044
|
if (g instanceof w0 && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) {
|
|
5045
5045
|
var y = c.children[0];
|
|
5046
5046
|
y instanceof w0 && y.text.length > 0 && (y.text = y.text.slice(0, 1) + "̸" + y.text.slice(1), s.pop());
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
|
-
s.push(c),
|
|
5050
|
+
s.push(c), o = c;
|
|
5051
5051
|
}
|
|
5052
5052
|
return s;
|
|
5053
5053
|
}, V0 = function(e, t, a) {
|
|
5054
|
-
return bt(
|
|
5054
|
+
return bt(o0(e, t, a));
|
|
5055
5055
|
}, X = function(e, t) {
|
|
5056
5056
|
if (!e)
|
|
5057
5057
|
return new S.MathNode("mrow");
|
|
@@ -5062,11 +5062,11 @@ var u0 = 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 =
|
|
5066
|
-
s.length === 1 && s[0] instanceof h0 && q.contains(["mrow", "mtable"], s[0].type) ?
|
|
5065
|
+
var s = o0(r, t), o;
|
|
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");
|
|
5069
|
-
var c = new S.MathNode("semantics", [
|
|
5069
|
+
var c = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [c]);
|
|
5070
5070
|
p.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), a && p.setAttribute("display", "block");
|
|
5071
5071
|
var g = n ? "katex" : "katex-mathml";
|
|
5072
5072
|
return b.makeSpan([g], [p]);
|
|
@@ -5088,16 +5088,16 @@ var Cr = function(e) {
|
|
|
5088
5088
|
if (a.output === "mathml")
|
|
5089
5089
|
return Wt(e, t, n, a.displayMode, !0);
|
|
5090
5090
|
if (a.output === "html") {
|
|
5091
|
-
var
|
|
5092
|
-
s = b.makeSpan(["katex"], [
|
|
5091
|
+
var o = ut(e, n);
|
|
5092
|
+
s = b.makeSpan(["katex"], [o]);
|
|
5093
5093
|
} else {
|
|
5094
|
-
var h = Wt(e, t, n, a.displayMode, !1), c =
|
|
5094
|
+
var h = Wt(e, t, n, a.displayMode, !1), c = ut(e, n);
|
|
5095
5095
|
s = b.makeSpan(["katex"], [h, c]);
|
|
5096
5096
|
}
|
|
5097
5097
|
return Nr(s, a);
|
|
5098
5098
|
}, x1 = function(e, t, a) {
|
|
5099
|
-
var n = Cr(a), s =
|
|
5100
|
-
return Nr(
|
|
5099
|
+
var n = Cr(a), s = ut(e, n), o = b.makeSpan(["katex"], [s]);
|
|
5100
|
+
return Nr(o, a);
|
|
5101
5101
|
}, w1 = {
|
|
5102
5102
|
widehat: "^",
|
|
5103
5103
|
widecheck: "ˇ",
|
|
@@ -5254,15 +5254,15 @@ var Cr = function(e) {
|
|
|
5254
5254
|
var {
|
|
5255
5255
|
span: n,
|
|
5256
5256
|
minWidth: s,
|
|
5257
|
-
height:
|
|
5257
|
+
height: o
|
|
5258
5258
|
} = a();
|
|
5259
|
-
return n.height =
|
|
5259
|
+
return n.height = o, n.style.height = A(o), s > 0 && (n.style.minWidth = A(s)), n;
|
|
5260
5260
|
}, A1 = function(e, t, a, n, s) {
|
|
5261
|
-
var
|
|
5261
|
+
var o, h = e.height + e.depth + a + n;
|
|
5262
5262
|
if (/fbox|color|angl/.test(t)) {
|
|
5263
|
-
if (
|
|
5263
|
+
if (o = b.makeSpan(["stretchy", t], [], s), t === "fbox") {
|
|
5264
5264
|
var c = s.color && s.getColor();
|
|
5265
|
-
c && (
|
|
5265
|
+
c && (o.style.borderColor = c);
|
|
5266
5266
|
}
|
|
5267
5267
|
} else {
|
|
5268
5268
|
var p = [];
|
|
@@ -5283,9 +5283,9 @@ var Cr = function(e) {
|
|
|
5283
5283
|
width: "100%",
|
|
5284
5284
|
height: A(h)
|
|
5285
5285
|
});
|
|
5286
|
-
|
|
5286
|
+
o = b.makeSvgSpan([], [g], s);
|
|
5287
5287
|
}
|
|
5288
|
-
return
|
|
5288
|
+
return o.height = h, o.style.height = A(h), o;
|
|
5289
5289
|
}, q0 = {
|
|
5290
5290
|
encloseSpan: A1,
|
|
5291
5291
|
mathMLnode: k1,
|
|
@@ -5308,8 +5308,8 @@ function Re(r) {
|
|
|
5308
5308
|
var wt = (r, e) => {
|
|
5309
5309
|
var t, a, n;
|
|
5310
5310
|
r && r.type === "supsub" ? (a = H(r.base, "accent"), t = a.base, r.base = t, n = Za(P(r, e)), r.base = a) : (a = H(r, "accent"), t = a.base);
|
|
5311
|
-
var s = P(t, e.havingCrampedStyle()),
|
|
5312
|
-
if (
|
|
5311
|
+
var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
|
|
5312
|
+
if (o) {
|
|
5313
5313
|
var c = q.getBaseElem(t), p = P(c, e.havingCrampedStyle());
|
|
5314
5314
|
h = Pt(p).skew;
|
|
5315
5315
|
}
|
|
@@ -5502,13 +5502,13 @@ B({
|
|
|
5502
5502
|
htmlBuilder(r, e) {
|
|
5503
5503
|
var t = e.style, a = e.havingStyle(t.sup()), n = b.wrapFragment(P(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
|
5504
5504
|
n.classes.push(s + "-arrow-pad");
|
|
5505
|
-
var
|
|
5506
|
-
r.below && (a = e.havingStyle(t.sub()),
|
|
5505
|
+
var o;
|
|
5506
|
+
r.below && (a = e.havingStyle(t.sub()), o = b.wrapFragment(P(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
|
|
5507
5507
|
var h = q0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
|
|
5508
5508
|
(n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
|
|
5509
5509
|
var g;
|
|
5510
|
-
if (
|
|
5511
|
-
var y = -e.fontMetrics().axisHeight +
|
|
5510
|
+
if (o) {
|
|
5511
|
+
var y = -e.fontMetrics().axisHeight + o.height + 0.5 * h.height + 0.111;
|
|
5512
5512
|
g = b.makeVList({
|
|
5513
5513
|
positionType: "individualShift",
|
|
5514
5514
|
children: [{
|
|
@@ -5521,7 +5521,7 @@ B({
|
|
|
5521
5521
|
shift: c
|
|
5522
5522
|
}, {
|
|
5523
5523
|
type: "elem",
|
|
5524
|
-
elem:
|
|
5524
|
+
elem: o,
|
|
5525
5525
|
shift: y
|
|
5526
5526
|
}]
|
|
5527
5527
|
}, e);
|
|
@@ -5552,8 +5552,8 @@ B({
|
|
|
5552
5552
|
} else
|
|
5553
5553
|
a = new S.MathNode("mover", [t, n]);
|
|
5554
5554
|
} else if (r.below) {
|
|
5555
|
-
var
|
|
5556
|
-
a = new S.MathNode("munder", [t,
|
|
5555
|
+
var o = ke(X(r.below, e));
|
|
5556
|
+
a = new S.MathNode("munder", [t, o]);
|
|
5557
5557
|
} else
|
|
5558
5558
|
a = ke(), a = new S.MathNode("mover", [t, a]);
|
|
5559
5559
|
return a;
|
|
@@ -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 = o0(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({
|
|
@@ -5625,8 +5625,8 @@ B({
|
|
|
5625
5625
|
var {
|
|
5626
5626
|
parser: t,
|
|
5627
5627
|
funcName: a
|
|
5628
|
-
} = r, n = e[1], s = e[0],
|
|
5629
|
-
a !== "\\stackrel" ?
|
|
5628
|
+
} = r, n = e[1], s = e[0], o;
|
|
5629
|
+
a !== "\\stackrel" ? o = Ie(n) : o = "mrel";
|
|
5630
5630
|
var h = {
|
|
5631
5631
|
type: "op",
|
|
5632
5632
|
mode: n.mode,
|
|
@@ -5646,7 +5646,7 @@ B({
|
|
|
5646
5646
|
return {
|
|
5647
5647
|
type: "mclass",
|
|
5648
5648
|
mode: t.mode,
|
|
5649
|
-
mclass:
|
|
5649
|
+
mclass: o,
|
|
5650
5650
|
body: [c],
|
|
5651
5651
|
isCharacterBox: q.isCharacterBox(c)
|
|
5652
5652
|
};
|
|
@@ -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 = o0(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
|
});
|
|
@@ -5708,10 +5708,10 @@ function N1(r, e, t) {
|
|
|
5708
5708
|
text: a,
|
|
5709
5709
|
mode: "math",
|
|
5710
5710
|
family: "rel"
|
|
5711
|
-
},
|
|
5711
|
+
}, o = t.callFunction("\\Big", [s], []), h = t.callFunction("\\\\cdright", [e[1]], []), c = {
|
|
5712
5712
|
type: "ordgroup",
|
|
5713
5713
|
mode: "math",
|
|
5714
|
-
body: [n,
|
|
5714
|
+
body: [n, o, h]
|
|
5715
5715
|
};
|
|
5716
5716
|
return t.callFunction("\\\\cdparent", [c], []);
|
|
5717
5717
|
}
|
|
@@ -5747,12 +5747,12 @@ function q1(r) {
|
|
|
5747
5747
|
throw new M("Expected \\\\ or \\cr or \\end", r.nextToken);
|
|
5748
5748
|
}
|
|
5749
5749
|
for (var a = [], n = [a], s = 0; s < e.length; s++) {
|
|
5750
|
-
for (var
|
|
5751
|
-
if (!Zt(
|
|
5752
|
-
h.body.push(
|
|
5750
|
+
for (var o = e[s], h = jt(), c = 0; c < o.length; c++)
|
|
5751
|
+
if (!Zt(o[c]))
|
|
5752
|
+
h.body.push(o[c]);
|
|
5753
5753
|
else {
|
|
5754
5754
|
a.push(h), c += 1;
|
|
5755
|
-
var p = xt(
|
|
5755
|
+
var p = xt(o[c]).text, g = new Array(2);
|
|
5756
5756
|
if (g[0] = {
|
|
5757
5757
|
type: "ordgroup",
|
|
5758
5758
|
mode: "math",
|
|
@@ -5763,20 +5763,20 @@ function q1(r) {
|
|
|
5763
5763
|
body: []
|
|
5764
5764
|
}, !("=|.".indexOf(p) > -1)) if ("<>AV".indexOf(p) > -1)
|
|
5765
5765
|
for (var y = 0; y < 2; y++) {
|
|
5766
|
-
for (var w = !0, x = c + 1; x <
|
|
5767
|
-
if (C1(
|
|
5766
|
+
for (var w = !0, x = c + 1; x < o.length; x++) {
|
|
5767
|
+
if (C1(o[x], p)) {
|
|
5768
5768
|
w = !1, c = x;
|
|
5769
5769
|
break;
|
|
5770
5770
|
}
|
|
5771
|
-
if (Zt(
|
|
5772
|
-
throw new M("Missing a " + p + " character to complete a CD arrow.",
|
|
5773
|
-
g[y].body.push(
|
|
5771
|
+
if (Zt(o[x]))
|
|
5772
|
+
throw new M("Missing a " + p + " character to complete a CD arrow.", o[x]);
|
|
5773
|
+
g[y].body.push(o[x]);
|
|
5774
5774
|
}
|
|
5775
5775
|
if (w)
|
|
5776
|
-
throw new M("Missing a " + p + " character to complete a CD arrow.",
|
|
5776
|
+
throw new M("Missing a " + p + " character to complete a CD arrow.", o[c]);
|
|
5777
5777
|
}
|
|
5778
5778
|
else
|
|
5779
|
-
throw new M('Expected one of "<>AV=|." after @',
|
|
5779
|
+
throw new M('Expected one of "<>AV=|." after @', o[c]);
|
|
5780
5780
|
var z = N1(p, g, r), T = {
|
|
5781
5781
|
type: "styling",
|
|
5782
5782
|
body: [z],
|
|
@@ -5870,8 +5870,8 @@ B({
|
|
|
5870
5870
|
handler(r, e) {
|
|
5871
5871
|
for (var {
|
|
5872
5872
|
parser: t
|
|
5873
|
-
} = r, a = H(e[0], "ordgroup"), n = a.body, s = "",
|
|
5874
|
-
var h = H(n[
|
|
5873
|
+
} = r, a = H(e[0], "ordgroup"), n = a.body, s = "", o = 0; o < n.length; o++) {
|
|
5874
|
+
var h = H(n[o], "textord");
|
|
5875
5875
|
s += h.text;
|
|
5876
5876
|
}
|
|
5877
5877
|
var c = parseInt(s), p;
|
|
@@ -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 = o0(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({
|
|
@@ -6036,10 +6036,10 @@ B({
|
|
|
6036
6036
|
} = r, a = e.gullet.popToken(), n = a.text;
|
|
6037
6037
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(n))
|
|
6038
6038
|
throw new M("Expected a control sequence", a);
|
|
6039
|
-
for (var s = 0,
|
|
6039
|
+
for (var s = 0, o, h = [[]]; e.gullet.future().text !== "{"; )
|
|
6040
6040
|
if (a = e.gullet.popToken(), a.text === "#") {
|
|
6041
6041
|
if (e.gullet.future().text === "{") {
|
|
6042
|
-
|
|
6042
|
+
o = e.gullet.future(), h[s].push("{");
|
|
6043
6043
|
break;
|
|
6044
6044
|
}
|
|
6045
6045
|
if (a = e.gullet.popToken(), !/^[1-9]$/.test(a.text))
|
|
@@ -6055,7 +6055,7 @@ B({
|
|
|
6055
6055
|
var {
|
|
6056
6056
|
tokens: c
|
|
6057
6057
|
} = e.gullet.consumeArg();
|
|
6058
|
-
return
|
|
6058
|
+
return o && c.unshift(o), (t === "\\edef" || t === "\\xdef") && (c = e.gullet.expandTokens(c), c.reverse()), e.gullet.macros.set(n, {
|
|
6059
6059
|
tokens: c,
|
|
6060
6060
|
numArgs: s,
|
|
6061
6061
|
delimiters: h
|
|
@@ -6119,18 +6119,18 @@ var ie = function(e, t, a) {
|
|
|
6119
6119
|
throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
|
|
6120
6120
|
return s;
|
|
6121
6121
|
}, kt = function(e, t, a, n) {
|
|
6122
|
-
var s = a.havingBaseStyle(t),
|
|
6123
|
-
return
|
|
6122
|
+
var s = a.havingBaseStyle(t), o = b.makeSpan(n.concat(s.sizingClasses(a)), [e], a), h = s.sizeMultiplier / a.sizeMultiplier;
|
|
6123
|
+
return o.height *= h, o.depth *= h, o.maxFontSize = s.sizeMultiplier, o;
|
|
6124
6124
|
}, Lr = function(e, t, a) {
|
|
6125
6125
|
var n = t.havingBaseStyle(a), s = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
|
|
6126
6126
|
e.classes.push("delimcenter"), e.style.top = A(s), e.height -= s, e.depth += s;
|
|
6127
|
-
}, R1 = function(e, t, a, n, s,
|
|
6128
|
-
var h = b.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n,
|
|
6127
|
+
}, R1 = function(e, t, a, n, s, o) {
|
|
6128
|
+
var h = b.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n, o);
|
|
6129
6129
|
return a && Lr(c, n, t), c;
|
|
6130
6130
|
}, I1 = function(e, t, a, n) {
|
|
6131
6131
|
return b.makeSymbol(e, "Size" + t + "-Regular", a, n);
|
|
6132
|
-
}, Pr = function(e, t, a, n, s,
|
|
6133
|
-
var h = I1(e, t, s, n), c = kt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n,
|
|
6132
|
+
}, Pr = function(e, t, a, n, s, o) {
|
|
6133
|
+
var h = I1(e, t, s, n), c = kt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
|
|
6134
6134
|
return a && Lr(c, n, R.TEXT), c;
|
|
6135
6135
|
}, Ze = function(e, t, a) {
|
|
6136
6136
|
var n;
|
|
@@ -6141,14 +6141,14 @@ var ie = function(e, t, a) {
|
|
|
6141
6141
|
elem: s
|
|
6142
6142
|
};
|
|
6143
6143
|
}, Ke = function(e, t, a) {
|
|
6144
|
-
var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", Pa(e, Math.round(1e3 * t))),
|
|
6144
|
+
var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", Pa(e, Math.round(1e3 * t))), o = new C0([s], {
|
|
6145
6145
|
width: A(n),
|
|
6146
6146
|
height: A(t),
|
|
6147
6147
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
6148
6148
|
style: "width:" + A(n),
|
|
6149
6149
|
viewBox: "0 0 " + 1e3 * n + " " + Math.round(1e3 * t),
|
|
6150
6150
|
preserveAspectRatio: "xMinYMin"
|
|
6151
|
-
}), h = b.makeSvgSpan([], [
|
|
6151
|
+
}), h = b.makeSvgSpan([], [o], a);
|
|
6152
6152
|
return h.height = t, h.style.height = A(t), h.style.width = A(n), {
|
|
6153
6153
|
type: "elem",
|
|
6154
6154
|
elem: h
|
|
@@ -6156,7 +6156,7 @@ var ie = function(e, t, a) {
|
|
|
6156
6156
|
}, mt = 8e-3, Se = {
|
|
6157
6157
|
type: "kern",
|
|
6158
6158
|
size: -1 * mt
|
|
6159
|
-
}, F1 = ["|", "\\lvert", "\\rvert", "\\vert"], O1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Gr = function(e, t, a, n, s,
|
|
6159
|
+
}, F1 = ["|", "\\lvert", "\\rvert", "\\vert"], O1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Gr = function(e, t, a, n, s, o) {
|
|
6160
6160
|
var h, c, p, g, y = "", w = 0;
|
|
6161
6161
|
h = p = g = e, c = null;
|
|
6162
6162
|
var x = "Size1-Regular";
|
|
@@ -6194,9 +6194,9 @@ var ie = function(e, t, a) {
|
|
|
6194
6194
|
positionData: r0,
|
|
6195
6195
|
children: e0
|
|
6196
6196
|
}, ne);
|
|
6197
|
-
return kt(b.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n,
|
|
6197
|
+
return kt(b.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n, o);
|
|
6198
6198
|
}, Je = 80, Qe = 0.08, _e = function(e, t, a, n, s) {
|
|
6199
|
-
var
|
|
6199
|
+
var o = La(e, n, a), h = new G0(e, o), c = new C0([h], {
|
|
6200
6200
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
6201
6201
|
width: "400em",
|
|
6202
6202
|
height: A(t),
|
|
@@ -6205,15 +6205,15 @@ var ie = function(e, t, a) {
|
|
|
6205
6205
|
});
|
|
6206
6206
|
return b.makeSvgSpan(["hide-tail"], [c], s);
|
|
6207
6207
|
}, H1 = function(e, t) {
|
|
6208
|
-
var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier,
|
|
6209
|
-
return n.type === "small" ? (g = 1e3 + 1e3 *
|
|
6208
|
+
var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, p = 0, g = 0, y;
|
|
6209
|
+
return n.type === "small" ? (g = 1e3 + 1e3 * o + Je, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + o + Qe) / s, p = (1 + o) / s, h = _e("sqrtMain", c, g, o, t), h.style.minWidth = "0.853em", y = 0.833 / s) : n.type === "large" ? (g = (1e3 + Je) * se[n.size], p = (se[n.size] + o) / s, c = (se[n.size] + o + Qe) / s, h = _e("sqrtSize" + n.size, c, g, o, t), h.style.minWidth = "1.02em", y = 1 / s) : (c = e + o + Qe, p = e + o, g = Math.floor(1e3 * e + o) + Je, h = _e("sqrtTall", c, g, o, t), h.style.minWidth = "0.742em", y = 1.056), h.height = p, h.style.height = A(c), {
|
|
6210
6210
|
span: h,
|
|
6211
6211
|
advanceWidth: y,
|
|
6212
6212
|
// Calculate the actual line width.
|
|
6213
6213
|
// This actually should depend on the chosen font -- e.g. \boldmath
|
|
6214
6214
|
// should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and
|
|
6215
6215
|
// have thicker rules.
|
|
6216
|
-
ruleWidth: (t.fontMetrics().sqrtRuleThickness +
|
|
6216
|
+
ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s
|
|
6217
6217
|
};
|
|
6218
6218
|
}, Vr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], L1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ur = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], P1 = function(e, t, a, n, s) {
|
|
6219
6219
|
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(Vr, e) || q.contains(Ur, e))
|
|
@@ -6285,23 +6285,23 @@ var ie = function(e, t, a) {
|
|
|
6285
6285
|
return "Size4-Regular";
|
|
6286
6286
|
throw new Error("Add support for delim type '" + e.type + "' here.");
|
|
6287
6287
|
}, Xr = function(e, t, a, n) {
|
|
6288
|
-
for (var s = Math.min(2, 3 - n.style.size),
|
|
6289
|
-
var h = ie(e, U1(a[
|
|
6290
|
-
if (a[
|
|
6291
|
-
var p = n.havingBaseStyle(a[
|
|
6288
|
+
for (var s = Math.min(2, 3 - n.style.size), o = s; o < a.length && a[o].type !== "stack"; o++) {
|
|
6289
|
+
var h = ie(e, U1(a[o]), "math"), c = h.height + h.depth;
|
|
6290
|
+
if (a[o].type === "small") {
|
|
6291
|
+
var p = n.havingBaseStyle(a[o].style);
|
|
6292
6292
|
c *= p.sizeMultiplier;
|
|
6293
6293
|
}
|
|
6294
6294
|
if (c > t)
|
|
6295
|
-
return a[
|
|
6295
|
+
return a[o];
|
|
6296
6296
|
}
|
|
6297
6297
|
return a[a.length - 1];
|
|
6298
|
-
}, $r = function(e, t, a, n, s,
|
|
6298
|
+
}, $r = function(e, t, a, n, s, o) {
|
|
6299
6299
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
6300
6300
|
var h;
|
|
6301
6301
|
q.contains(Ur, e) ? h = G1 : q.contains(Vr, e) ? h = Yr : h = V1;
|
|
6302
6302
|
var c = Xr(e, t, h, n);
|
|
6303
|
-
return c.type === "small" ? R1(e, c.style, a, n, s,
|
|
6304
|
-
}, Y1 = function(e, t, a, n, s,
|
|
6303
|
+
return c.type === "small" ? R1(e, c.style, a, n, s, o) : c.type === "large" ? Pr(e, c.size, a, n, s, o) : Gr(e, t, a, n, s, o);
|
|
6304
|
+
}, Y1 = function(e, t, a, n, s, o) {
|
|
6305
6305
|
var h = n.fontMetrics().axisHeight * n.sizeMultiplier, c = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), y = Math.max(
|
|
6306
6306
|
// In real TeX, calculations are done using integral values which are
|
|
6307
6307
|
// 65536 per pt, or 655360 per em. So, the division here truncates in
|
|
@@ -6315,7 +6315,7 @@ var ie = function(e, t, a) {
|
|
|
6315
6315
|
g / 500 * c,
|
|
6316
6316
|
2 * g - p
|
|
6317
6317
|
);
|
|
6318
|
-
return $r(e, y, !0, n, s,
|
|
6318
|
+
return $r(e, y, !0, n, s, o);
|
|
6319
6319
|
}, D0 = {
|
|
6320
6320
|
sqrtImage: H1,
|
|
6321
6321
|
sizedDelim: P1,
|
|
@@ -6469,18 +6469,18 @@ B({
|
|
|
6469
6469
|
},
|
|
6470
6470
|
htmlBuilder: (r, e) => {
|
|
6471
6471
|
Jt(r);
|
|
6472
|
-
for (var t = t0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, s = !1,
|
|
6473
|
-
t[
|
|
6472
|
+
for (var t = t0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, s = !1, o = 0; o < t.length; o++)
|
|
6473
|
+
t[o].isMiddle ? s = !0 : (a = Math.max(t[o].height, a), n = Math.max(t[o].depth, n));
|
|
6474
6474
|
a *= e.sizeMultiplier, n *= e.sizeMultiplier;
|
|
6475
6475
|
var h;
|
|
6476
|
-
if (r.left === "." ? h =
|
|
6476
|
+
if (r.left === "." ? h = oe(e, ["mopen"]) : h = D0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), s)
|
|
6477
6477
|
for (var c = 1; c < t.length; c++) {
|
|
6478
6478
|
var p = t[c], g = p.isMiddle;
|
|
6479
6479
|
g && (t[c] = D0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
|
|
6480
6480
|
}
|
|
6481
6481
|
var y;
|
|
6482
6482
|
if (r.right === ".")
|
|
6483
|
-
y =
|
|
6483
|
+
y = oe(e, ["mclose"]);
|
|
6484
6484
|
else {
|
|
6485
6485
|
var w = r.rightColor ? e.withColor(r.rightColor) : e;
|
|
6486
6486
|
y = D0.leftRightDelim(r.right, a, n, w, r.mode, ["mclose"]);
|
|
@@ -6489,7 +6489,7 @@ B({
|
|
|
6489
6489
|
},
|
|
6490
6490
|
mathmlBuilder: (r, e) => {
|
|
6491
6491
|
Jt(r);
|
|
6492
|
-
var t =
|
|
6492
|
+
var t = o0(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);
|
|
@@ -6521,7 +6521,7 @@ B({
|
|
|
6521
6521
|
htmlBuilder: (r, e) => {
|
|
6522
6522
|
var t;
|
|
6523
6523
|
if (r.delim === ".")
|
|
6524
|
-
t =
|
|
6524
|
+
t = oe(e, []);
|
|
6525
6525
|
else {
|
|
6526
6526
|
t = D0.sizedDelim(r.delim, 1, e, r.mode, []);
|
|
6527
6527
|
var a = {
|
|
@@ -6538,9 +6538,9 @@ B({
|
|
|
6538
6538
|
}
|
|
6539
6539
|
});
|
|
6540
6540
|
var St = (r, e) => {
|
|
6541
|
-
var t = b.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s,
|
|
6541
|
+
var t = b.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
|
|
6542
6542
|
if (a === "sout")
|
|
6543
|
-
s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n,
|
|
6543
|
+
s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
|
|
6544
6544
|
else if (a === "phase") {
|
|
6545
6545
|
var c = K({
|
|
6546
6546
|
number: 0.6,
|
|
@@ -6558,7 +6558,7 @@ var St = (r, e) => {
|
|
|
6558
6558
|
viewBox: "0 0 400000 " + w,
|
|
6559
6559
|
preserveAspectRatio: "xMinYMin slice"
|
|
6560
6560
|
});
|
|
6561
|
-
s = b.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(y),
|
|
6561
|
+
s = b.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(y), o = t.depth + c + p;
|
|
6562
6562
|
} else {
|
|
6563
6563
|
/cancel/.test(a) ? h || t.classes.push("cancel-pad") : a === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
|
|
6564
6564
|
var T = 0, C = 0, N = 0;
|
|
@@ -6567,7 +6567,7 @@ var St = (r, e) => {
|
|
|
6567
6567
|
// default
|
|
6568
6568
|
e.minRuleThickness
|
|
6569
6569
|
// User override.
|
|
6570
|
-
), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = q0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)),
|
|
6570
|
+
), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = q0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)), o = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
|
|
6571
6571
|
}
|
|
6572
6572
|
var F;
|
|
6573
6573
|
if (r.backgroundColor)
|
|
@@ -6578,7 +6578,7 @@ var St = (r, e) => {
|
|
|
6578
6578
|
{
|
|
6579
6579
|
type: "elem",
|
|
6580
6580
|
elem: s,
|
|
6581
|
-
shift:
|
|
6581
|
+
shift: o
|
|
6582
6582
|
},
|
|
6583
6583
|
{
|
|
6584
6584
|
type: "elem",
|
|
@@ -6601,7 +6601,7 @@ var St = (r, e) => {
|
|
|
6601
6601
|
{
|
|
6602
6602
|
type: "elem",
|
|
6603
6603
|
elem: s,
|
|
6604
|
-
shift:
|
|
6604
|
+
shift: o,
|
|
6605
6605
|
wrapperClasses: O
|
|
6606
6606
|
}
|
|
6607
6607
|
]
|
|
@@ -6659,13 +6659,13 @@ B({
|
|
|
6659
6659
|
var {
|
|
6660
6660
|
parser: a,
|
|
6661
6661
|
funcName: n
|
|
6662
|
-
} = r, s = H(e[0], "color-token").color,
|
|
6662
|
+
} = r, s = H(e[0], "color-token").color, o = e[1];
|
|
6663
6663
|
return {
|
|
6664
6664
|
type: "enclose",
|
|
6665
6665
|
mode: a.mode,
|
|
6666
6666
|
label: n,
|
|
6667
6667
|
backgroundColor: s,
|
|
6668
|
-
body:
|
|
6668
|
+
body: o
|
|
6669
6669
|
};
|
|
6670
6670
|
},
|
|
6671
6671
|
htmlBuilder: St,
|
|
@@ -6683,12 +6683,12 @@ B({
|
|
|
6683
6683
|
var {
|
|
6684
6684
|
parser: a,
|
|
6685
6685
|
funcName: n
|
|
6686
|
-
} = r, s = H(e[0], "color-token").color,
|
|
6686
|
+
} = r, s = H(e[0], "color-token").color, o = H(e[1], "color-token").color, h = e[2];
|
|
6687
6687
|
return {
|
|
6688
6688
|
type: "enclose",
|
|
6689
6689
|
mode: a.mode,
|
|
6690
6690
|
label: n,
|
|
6691
|
-
backgroundColor:
|
|
6691
|
+
backgroundColor: o,
|
|
6692
6692
|
borderColor: s,
|
|
6693
6693
|
body: h
|
|
6694
6694
|
};
|
|
@@ -6765,7 +6765,7 @@ function k0(r) {
|
|
|
6765
6765
|
props: a,
|
|
6766
6766
|
handler: n,
|
|
6767
6767
|
htmlBuilder: s,
|
|
6768
|
-
mathmlBuilder:
|
|
6768
|
+
mathmlBuilder: o
|
|
6769
6769
|
} = r, h = {
|
|
6770
6770
|
type: e,
|
|
6771
6771
|
numArgs: a.numArgs || 0,
|
|
@@ -6774,7 +6774,7 @@ function k0(r) {
|
|
|
6774
6774
|
handler: n
|
|
6775
6775
|
}, c = 0; c < t.length; ++c)
|
|
6776
6776
|
Wr[t[c]] = h;
|
|
6777
|
-
s && (De[e] = s),
|
|
6777
|
+
s && (De[e] = s), o && (Ce[e] = o);
|
|
6778
6778
|
}
|
|
6779
6779
|
var jr = {};
|
|
6780
6780
|
function m(r, e) {
|
|
@@ -6802,7 +6802,7 @@ function U0(r, e, t) {
|
|
|
6802
6802
|
hskipBeforeAndAfter: a,
|
|
6803
6803
|
addJot: n,
|
|
6804
6804
|
cols: s,
|
|
6805
|
-
arraystretch:
|
|
6805
|
+
arraystretch: o,
|
|
6806
6806
|
colSeparationType: h,
|
|
6807
6807
|
autoTag: c,
|
|
6808
6808
|
singleRow: p,
|
|
@@ -6810,11 +6810,11 @@ function U0(r, e, t) {
|
|
|
6810
6810
|
maxNumCols: y,
|
|
6811
6811
|
leqno: w
|
|
6812
6812
|
} = e;
|
|
6813
|
-
if (r.gullet.beginGroup(), p || r.gullet.macros.set("\\cr", "\\\\\\relax"), !
|
|
6813
|
+
if (r.gullet.beginGroup(), p || r.gullet.macros.set("\\cr", "\\\\\\relax"), !o) {
|
|
6814
6814
|
var x = r.gullet.expandMacroAsText("\\arraystretch");
|
|
6815
6815
|
if (x == null)
|
|
6816
|
-
|
|
6817
|
-
else if (
|
|
6816
|
+
o = 1;
|
|
6817
|
+
else if (o = parseFloat(x), !o || o < 0)
|
|
6818
6818
|
throw new M("Invalid \\arraystretch: " + x);
|
|
6819
6819
|
}
|
|
6820
6820
|
r.gullet.beginGroup();
|
|
@@ -6859,7 +6859,7 @@ function U0(r, e, t) {
|
|
|
6859
6859
|
type: "array",
|
|
6860
6860
|
mode: r.mode,
|
|
6861
6861
|
addJot: n,
|
|
6862
|
-
arraystretch:
|
|
6862
|
+
arraystretch: o,
|
|
6863
6863
|
body: T,
|
|
6864
6864
|
cols: s,
|
|
6865
6865
|
rowGaps: C,
|
|
@@ -6874,7 +6874,7 @@ function At(r) {
|
|
|
6874
6874
|
return r.slice(0, 1) === "d" ? "display" : "text";
|
|
6875
6875
|
}
|
|
6876
6876
|
var S0 = function(e, t) {
|
|
6877
|
-
var a, n, s = e.body.length,
|
|
6877
|
+
var a, n, s = e.body.length, o = e.hLinesBeforeRow, h = 0, c = new Array(s), p = [], g = Math.max(
|
|
6878
6878
|
// From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
|
|
6879
6879
|
t.fontMetrics().arrayRuleWidth,
|
|
6880
6880
|
t.minRuleThickness
|
|
@@ -6895,7 +6895,7 @@ var S0 = function(e, t) {
|
|
|
6895
6895
|
isDashed: fe[pe]
|
|
6896
6896
|
});
|
|
6897
6897
|
}
|
|
6898
|
-
for (V(
|
|
6898
|
+
for (V(o[0]), a = 0; a < e.body.length; ++a) {
|
|
6899
6899
|
var L = e.body[a], U = N, G = F;
|
|
6900
6900
|
h < L.length && (h = L.length);
|
|
6901
6901
|
var j = new Array(L.length);
|
|
@@ -6904,7 +6904,7 @@ var S0 = function(e, t) {
|
|
|
6904
6904
|
G < Y.depth && (G = Y.depth), U < Y.height && (U = Y.height), j[n] = Y;
|
|
6905
6905
|
}
|
|
6906
6906
|
var z0 = e.rowGaps[a], r0 = 0;
|
|
6907
|
-
z0 && (r0 = K(z0, t), r0 > 0 && (r0 += F, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, O += U, j.pos = O, O += G + r0, c[a] = j, V(
|
|
6907
|
+
z0 && (r0 = K(z0, t), r0 > 0 && (r0 += F, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, O += U, j.pos = O, O += G + r0, c[a] = j, V(o[a + 1]);
|
|
6908
6908
|
}
|
|
6909
6909
|
var e0 = O / 2 + t.fontMetrics().axisHeight, Y0 = e.cols || [], s0 = [], g0, R0, j0 = [];
|
|
6910
6910
|
if (e.tags && e.tags.some((fe) => fe))
|
|
@@ -6988,10 +6988,10 @@ var S0 = function(e, t) {
|
|
|
6988
6988
|
l: "left ",
|
|
6989
6989
|
r: "right "
|
|
6990
6990
|
}, M0 = function(e, t) {
|
|
6991
|
-
for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]),
|
|
6992
|
-
for (var h = e.body[
|
|
6991
|
+
for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]), o = 0; o < e.body.length; o++) {
|
|
6992
|
+
for (var h = e.body[o], c = [], p = 0; p < h.length; p++)
|
|
6993
6993
|
c.push(new S.MathNode("mtd", [X(h[p], t)]));
|
|
6994
|
-
e.tags && e.tags[
|
|
6994
|
+
e.tags && e.tags[o] && (c.unshift(n), c.push(n), e.leqno ? c.unshift(s) : c.push(s)), a.push(new S.MathNode("mtr", c));
|
|
6995
6995
|
}
|
|
6996
6996
|
var g = new S.MathNode("mtable", a), y = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
|
|
6997
6997
|
g.setAttribute("rowspacing", A(y));
|
|
@@ -7015,7 +7015,7 @@ var S0 = function(e, t) {
|
|
|
7015
7015
|
return /[sd]/.test(G) && g.setAttribute("rowlines", G.trim()), w !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", w.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
|
|
7016
7016
|
}, Zr = function(e, t) {
|
|
7017
7017
|
e.envName.indexOf("ed") === -1 && Oe(e);
|
|
7018
|
-
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split",
|
|
7018
|
+
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = U0(e.parser, {
|
|
7019
7019
|
cols: a,
|
|
7020
7020
|
addJot: !0,
|
|
7021
7021
|
autoTag: s ? void 0 : zt(e.envName),
|
|
@@ -7036,7 +7036,7 @@ var S0 = function(e, t) {
|
|
|
7036
7036
|
h = Number(g), c = h * 2;
|
|
7037
7037
|
}
|
|
7038
7038
|
var x = !c;
|
|
7039
|
-
|
|
7039
|
+
o.body.forEach(function(N) {
|
|
7040
7040
|
for (var F = 1; F < N.length; F += 2) {
|
|
7041
7041
|
var O = H(N[F], "styling"), V = H(O.body[0], "ordgroup");
|
|
7042
7042
|
V.body.unshift(p);
|
|
@@ -7058,7 +7058,7 @@ var S0 = function(e, t) {
|
|
|
7058
7058
|
postgap: 0
|
|
7059
7059
|
};
|
|
7060
7060
|
}
|
|
7061
|
-
return
|
|
7061
|
+
return o.colSeparationType = x ? "align" : "alignat", o;
|
|
7062
7062
|
};
|
|
7063
7063
|
k0({
|
|
7064
7064
|
type: "array",
|
|
@@ -7067,8 +7067,8 @@ k0({
|
|
|
7067
7067
|
numArgs: 1
|
|
7068
7068
|
},
|
|
7069
7069
|
handler(r, e) {
|
|
7070
|
-
var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(
|
|
7071
|
-
var h = xt(
|
|
7070
|
+
var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(o) {
|
|
7071
|
+
var h = xt(o), c = h.text;
|
|
7072
7072
|
if ("lcr".indexOf(c) !== -1)
|
|
7073
7073
|
return {
|
|
7074
7074
|
type: "align",
|
|
@@ -7084,7 +7084,7 @@ k0({
|
|
|
7084
7084
|
type: "separator",
|
|
7085
7085
|
separator: ":"
|
|
7086
7086
|
};
|
|
7087
|
-
throw new M("Unknown column alignment: " + c,
|
|
7087
|
+
throw new M("Unknown column alignment: " + c, o);
|
|
7088
7088
|
}), s = {
|
|
7089
7089
|
cols: n,
|
|
7090
7090
|
hskipBeforeAndAfter: !0,
|
|
@@ -7128,8 +7128,8 @@ k0({
|
|
|
7128
7128
|
}];
|
|
7129
7129
|
}
|
|
7130
7130
|
}
|
|
7131
|
-
var s = U0(r.parser, a, At(r.envName)),
|
|
7132
|
-
return s.cols = new Array(
|
|
7131
|
+
var s = U0(r.parser, a, At(r.envName)), o = Math.max(0, ...s.body.map((h) => h.length));
|
|
7132
|
+
return s.cols = new Array(o).fill({
|
|
7133
7133
|
type: "align",
|
|
7134
7134
|
align: t
|
|
7135
7135
|
}), e ? {
|
|
@@ -7167,14 +7167,14 @@ k0({
|
|
|
7167
7167
|
numArgs: 1
|
|
7168
7168
|
},
|
|
7169
7169
|
handler(r, e) {
|
|
7170
|
-
var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(
|
|
7171
|
-
var h = xt(
|
|
7170
|
+
var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(o) {
|
|
7171
|
+
var h = xt(o), c = h.text;
|
|
7172
7172
|
if ("lc".indexOf(c) !== -1)
|
|
7173
7173
|
return {
|
|
7174
7174
|
type: "align",
|
|
7175
7175
|
align: c
|
|
7176
7176
|
};
|
|
7177
|
-
throw new M("Unknown column alignment: " + c,
|
|
7177
|
+
throw new M("Unknown column alignment: " + c, o);
|
|
7178
7178
|
});
|
|
7179
7179
|
if (n.length > 1)
|
|
7180
7180
|
throw new M("{subarray} can contain only one column");
|
|
@@ -7334,8 +7334,8 @@ B({
|
|
|
7334
7334
|
} = r, n = e[0];
|
|
7335
7335
|
if (n.type !== "ordgroup")
|
|
7336
7336
|
throw new M("Invalid environment name", n);
|
|
7337
|
-
for (var s = "",
|
|
7338
|
-
s += H(n.body[
|
|
7337
|
+
for (var s = "", o = 0; o < n.body.length; ++o)
|
|
7338
|
+
s += H(n.body[o], "textord").text;
|
|
7339
7339
|
if (a === "\\begin") {
|
|
7340
7340
|
if (!_t.hasOwnProperty(s))
|
|
7341
7341
|
throw new M("No such environment: " + s, n);
|
|
@@ -7451,7 +7451,7 @@ B({
|
|
|
7451
7451
|
breakOnTokenText: n
|
|
7452
7452
|
} = r, {
|
|
7453
7453
|
mode: s
|
|
7454
|
-
} = t,
|
|
7454
|
+
} = t, o = t.parseExpression(!0, n), h = "math" + a.slice(1);
|
|
7455
7455
|
return {
|
|
7456
7456
|
type: "font",
|
|
7457
7457
|
mode: s,
|
|
@@ -7459,7 +7459,7 @@ B({
|
|
|
7459
7459
|
body: {
|
|
7460
7460
|
type: "ordgroup",
|
|
7461
7461
|
mode: t.mode,
|
|
7462
|
-
body:
|
|
7462
|
+
body: o
|
|
7463
7463
|
}
|
|
7464
7464
|
};
|
|
7465
7465
|
},
|
|
@@ -7472,10 +7472,10 @@ var Qr = (r, e) => {
|
|
|
7472
7472
|
}, Tt = (r, e) => {
|
|
7473
7473
|
var t = Qr(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
|
|
7474
7474
|
s = e.havingStyle(a);
|
|
7475
|
-
var
|
|
7475
|
+
var o = P(r.numer, s, e);
|
|
7476
7476
|
if (r.continued) {
|
|
7477
7477
|
var h = 8.5 / e.fontMetrics().ptPerEm, c = 3.5 / e.fontMetrics().ptPerEm;
|
|
7478
|
-
|
|
7478
|
+
o.height = o.height < h ? h : o.height, o.depth = o.depth < c ? c : o.depth;
|
|
7479
7479
|
}
|
|
7480
7480
|
s = e.havingStyle(n);
|
|
7481
7481
|
var p = P(r.denom, s, e), g, y, w;
|
|
@@ -7485,7 +7485,7 @@ var Qr = (r, e) => {
|
|
|
7485
7485
|
var C;
|
|
7486
7486
|
if (g) {
|
|
7487
7487
|
var F = e.fontMetrics().axisHeight;
|
|
7488
|
-
x -
|
|
7488
|
+
x - o.depth - (F + 0.5 * y) < z && (x += z - (x - o.depth - (F + 0.5 * y))), F - 0.5 * y - (p.height - T) < z && (T += z - (F - 0.5 * y - (p.height - T)));
|
|
7489
7489
|
var O = -(F - 0.5 * y);
|
|
7490
7490
|
C = b.makeVList({
|
|
7491
7491
|
positionType: "individualShift",
|
|
@@ -7499,12 +7499,12 @@ var Qr = (r, e) => {
|
|
|
7499
7499
|
shift: O
|
|
7500
7500
|
}, {
|
|
7501
7501
|
type: "elem",
|
|
7502
|
-
elem:
|
|
7502
|
+
elem: o,
|
|
7503
7503
|
shift: -x
|
|
7504
7504
|
}]
|
|
7505
7505
|
}, e);
|
|
7506
7506
|
} else {
|
|
7507
|
-
var N = x -
|
|
7507
|
+
var N = x - o.depth - (p.height - T);
|
|
7508
7508
|
N < z && (x += 0.5 * (z - N), T += 0.5 * (z - N)), C = b.makeVList({
|
|
7509
7509
|
positionType: "individualShift",
|
|
7510
7510
|
children: [{
|
|
@@ -7513,7 +7513,7 @@ var Qr = (r, e) => {
|
|
|
7513
7513
|
shift: T
|
|
7514
7514
|
}, {
|
|
7515
7515
|
type: "elem",
|
|
7516
|
-
elem:
|
|
7516
|
+
elem: o,
|
|
7517
7517
|
shift: -x
|
|
7518
7518
|
}]
|
|
7519
7519
|
}, e);
|
|
@@ -7522,7 +7522,7 @@ var Qr = (r, e) => {
|
|
|
7522
7522
|
var V;
|
|
7523
7523
|
t.size === R.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? V = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
|
|
7524
7524
|
var L, U;
|
|
7525
|
-
return r.leftDelim == null ? L =
|
|
7525
|
+
return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = b.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, b.makeSpan(["mfrac"], [C]), U], e);
|
|
7526
7526
|
}, Bt = (r, e) => {
|
|
7527
7527
|
var t = new S.MathNode("mfrac", [X(r.numer, e), X(r.denom, e)]);
|
|
7528
7528
|
if (!r.hasBarLine)
|
|
@@ -7538,16 +7538,16 @@ var Qr = (r, e) => {
|
|
|
7538
7538
|
t.setAttribute("displaystyle", s), t.setAttribute("scriptlevel", "0");
|
|
7539
7539
|
}
|
|
7540
7540
|
if (r.leftDelim != null || r.rightDelim != null) {
|
|
7541
|
-
var
|
|
7541
|
+
var o = [];
|
|
7542
7542
|
if (r.leftDelim != null) {
|
|
7543
7543
|
var h = new S.MathNode("mo", [new S.TextNode(r.leftDelim.replace("\\", ""))]);
|
|
7544
|
-
h.setAttribute("fence", "true"),
|
|
7544
|
+
h.setAttribute("fence", "true"), o.push(h);
|
|
7545
7545
|
}
|
|
7546
|
-
if (
|
|
7546
|
+
if (o.push(t), r.rightDelim != null) {
|
|
7547
7547
|
var c = new S.MathNode("mo", [new S.TextNode(r.rightDelim.replace("\\", ""))]);
|
|
7548
|
-
c.setAttribute("fence", "true"),
|
|
7548
|
+
c.setAttribute("fence", "true"), o.push(c);
|
|
7549
7549
|
}
|
|
7550
|
-
return bt(
|
|
7550
|
+
return bt(o);
|
|
7551
7551
|
}
|
|
7552
7552
|
return t;
|
|
7553
7553
|
};
|
|
@@ -7574,26 +7574,26 @@ B({
|
|
|
7574
7574
|
var {
|
|
7575
7575
|
parser: t,
|
|
7576
7576
|
funcName: a
|
|
7577
|
-
} = r, n = e[0], s = e[1],
|
|
7577
|
+
} = r, n = e[0], s = e[1], o, h = null, c = null, p = "auto";
|
|
7578
7578
|
switch (a) {
|
|
7579
7579
|
case "\\dfrac":
|
|
7580
7580
|
case "\\frac":
|
|
7581
7581
|
case "\\tfrac":
|
|
7582
|
-
|
|
7582
|
+
o = !0;
|
|
7583
7583
|
break;
|
|
7584
7584
|
case "\\\\atopfrac":
|
|
7585
|
-
|
|
7585
|
+
o = !1;
|
|
7586
7586
|
break;
|
|
7587
7587
|
case "\\dbinom":
|
|
7588
7588
|
case "\\binom":
|
|
7589
7589
|
case "\\tbinom":
|
|
7590
|
-
|
|
7590
|
+
o = !1, h = "(", c = ")";
|
|
7591
7591
|
break;
|
|
7592
7592
|
case "\\\\bracefrac":
|
|
7593
|
-
|
|
7593
|
+
o = !1, h = "\\{", c = "\\}";
|
|
7594
7594
|
break;
|
|
7595
7595
|
case "\\\\brackfrac":
|
|
7596
|
-
|
|
7596
|
+
o = !1, h = "[", c = "]";
|
|
7597
7597
|
break;
|
|
7598
7598
|
default:
|
|
7599
7599
|
throw new Error("Unrecognized genfrac command");
|
|
@@ -7614,7 +7614,7 @@ B({
|
|
|
7614
7614
|
continued: !1,
|
|
7615
7615
|
numer: n,
|
|
7616
7616
|
denom: s,
|
|
7617
|
-
hasBarLine:
|
|
7617
|
+
hasBarLine: o,
|
|
7618
7618
|
leftDelim: h,
|
|
7619
7619
|
rightDelim: c,
|
|
7620
7620
|
size: p,
|
|
@@ -7704,7 +7704,7 @@ B({
|
|
|
7704
7704
|
handler(r, e) {
|
|
7705
7705
|
var {
|
|
7706
7706
|
parser: t
|
|
7707
|
-
} = r, a = e[4], n = e[5], s = Ne(e[0]),
|
|
7707
|
+
} = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? rr(h.text) : null, p = H(e[2], "size"), g, y = null;
|
|
7708
7708
|
p.isBlank ? g = !0 : (y = p.value, g = y.number > 0);
|
|
7709
7709
|
var w = "auto", x = e[3];
|
|
7710
7710
|
if (x.type === "ordgroup") {
|
|
@@ -7722,7 +7722,7 @@ B({
|
|
|
7722
7722
|
continued: !1,
|
|
7723
7723
|
hasBarLine: g,
|
|
7724
7724
|
barSize: y,
|
|
7725
|
-
leftDelim:
|
|
7725
|
+
leftDelim: o,
|
|
7726
7726
|
rightDelim: c,
|
|
7727
7727
|
size: w
|
|
7728
7728
|
};
|
|
@@ -7764,12 +7764,12 @@ B({
|
|
|
7764
7764
|
var {
|
|
7765
7765
|
parser: t,
|
|
7766
7766
|
funcName: a
|
|
7767
|
-
} = r, n = e[0], s = ka(H(e[1], "infix").size),
|
|
7767
|
+
} = r, n = e[0], s = ka(H(e[1], "infix").size), o = e[2], h = s.number > 0;
|
|
7768
7768
|
return {
|
|
7769
7769
|
type: "genfrac",
|
|
7770
7770
|
mode: t.mode,
|
|
7771
7771
|
numer: n,
|
|
7772
|
-
denom:
|
|
7772
|
+
denom: o,
|
|
7773
7773
|
continued: !1,
|
|
7774
7774
|
hasBarLine: h,
|
|
7775
7775
|
barSize: s,
|
|
@@ -7784,7 +7784,7 @@ B({
|
|
|
7784
7784
|
var _r = (r, e) => {
|
|
7785
7785
|
var t = e.style, a, n;
|
|
7786
7786
|
r.type === "supsub" ? (a = r.sup ? P(r.sup, e.havingStyle(t.sup()), e) : P(r.sub, e.havingStyle(t.sub()), e), n = H(r.base, "horizBrace")) : n = H(r, "horizBrace");
|
|
7787
|
-
var s = P(n.base, e.havingBaseStyle(R.DISPLAY)),
|
|
7787
|
+
var s = P(n.base, e.havingBaseStyle(R.DISPLAY)), o = q0.svgSpan(n, e), h;
|
|
7788
7788
|
if (n.isOver ? (h = b.makeVList({
|
|
7789
7789
|
positionType: "firstBaseline",
|
|
7790
7790
|
children: [{
|
|
@@ -7795,14 +7795,14 @@ var _r = (r, e) => {
|
|
|
7795
7795
|
size: 0.1
|
|
7796
7796
|
}, {
|
|
7797
7797
|
type: "elem",
|
|
7798
|
-
elem:
|
|
7798
|
+
elem: o
|
|
7799
7799
|
}]
|
|
7800
7800
|
}, e), h.children[0].children[0].children[1].classes.push("svg-align")) : (h = b.makeVList({
|
|
7801
7801
|
positionType: "bottom",
|
|
7802
|
-
positionData: s.depth + 0.1 +
|
|
7802
|
+
positionData: s.depth + 0.1 + o.height,
|
|
7803
7803
|
children: [{
|
|
7804
7804
|
type: "elem",
|
|
7805
|
-
elem:
|
|
7805
|
+
elem: o
|
|
7806
7806
|
}, {
|
|
7807
7807
|
type: "kern",
|
|
7808
7808
|
size: 0.1
|
|
@@ -7915,11 +7915,11 @@ B({
|
|
|
7915
7915
|
}))
|
|
7916
7916
|
return t.formatUnsupportedCmd("\\url");
|
|
7917
7917
|
for (var n = [], s = 0; s < a.length; s++) {
|
|
7918
|
-
var
|
|
7919
|
-
|
|
7918
|
+
var o = a[s];
|
|
7919
|
+
o === "~" && (o = "\\textasciitilde"), n.push({
|
|
7920
7920
|
type: "textord",
|
|
7921
7921
|
mode: "text",
|
|
7922
|
-
text:
|
|
7922
|
+
text: o
|
|
7923
7923
|
});
|
|
7924
7924
|
}
|
|
7925
7925
|
var h = {
|
|
@@ -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", o0(r.body, e));
|
|
7964
7964
|
}
|
|
7965
7965
|
});
|
|
7966
7966
|
B({
|
|
@@ -7976,7 +7976,7 @@ B({
|
|
|
7976
7976
|
parser: t,
|
|
7977
7977
|
funcName: a,
|
|
7978
7978
|
token: n
|
|
7979
|
-
} = r, s = H(e[0], "raw").string,
|
|
7979
|
+
} = r, s = H(e[0], "raw").string, o = e[1];
|
|
7980
7980
|
t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
|
|
7981
7981
|
var h, c = {};
|
|
7982
7982
|
switch (a) {
|
|
@@ -8018,7 +8018,7 @@ B({
|
|
|
8018
8018
|
type: "html",
|
|
8019
8019
|
mode: t.mode,
|
|
8020
8020
|
attributes: c,
|
|
8021
|
-
body: Q(
|
|
8021
|
+
body: Q(o)
|
|
8022
8022
|
} : t.formatUnsupportedCmd(a);
|
|
8023
8023
|
},
|
|
8024
8024
|
htmlBuilder: (r, e) => {
|
|
@@ -8091,7 +8091,7 @@ B({
|
|
|
8091
8091
|
}, s = {
|
|
8092
8092
|
number: 0.9,
|
|
8093
8093
|
unit: "em"
|
|
8094
|
-
},
|
|
8094
|
+
}, o = {
|
|
8095
8095
|
number: 0,
|
|
8096
8096
|
unit: "em"
|
|
8097
8097
|
}, h = "";
|
|
@@ -8111,7 +8111,7 @@ B({
|
|
|
8111
8111
|
s = et(w);
|
|
8112
8112
|
break;
|
|
8113
8113
|
case "totalheight":
|
|
8114
|
-
|
|
8114
|
+
o = et(w);
|
|
8115
8115
|
break;
|
|
8116
8116
|
default:
|
|
8117
8117
|
throw new M("Invalid key: '" + y[0] + "' in \\includegraphics.");
|
|
@@ -8128,7 +8128,7 @@ B({
|
|
|
8128
8128
|
alt: h,
|
|
8129
8129
|
width: n,
|
|
8130
8130
|
height: s,
|
|
8131
|
-
totalheight:
|
|
8131
|
+
totalheight: o,
|
|
8132
8132
|
src: x
|
|
8133
8133
|
} : a.formatUnsupportedCmd("\\includegraphics");
|
|
8134
8134
|
},
|
|
@@ -8141,8 +8141,8 @@ B({
|
|
|
8141
8141
|
height: A(t + a)
|
|
8142
8142
|
};
|
|
8143
8143
|
n > 0 && (s.width = A(n)), a > 0 && (s.verticalAlign = A(-a));
|
|
8144
|
-
var
|
|
8145
|
-
return
|
|
8144
|
+
var o = new Wa(r.src, r.alt, s);
|
|
8145
|
+
return o.height = t, o.depth = a, o;
|
|
8146
8146
|
},
|
|
8147
8147
|
mathmlBuilder: (r, e) => {
|
|
8148
8148
|
var t = new S.MathNode("mglyph", []);
|
|
@@ -8170,8 +8170,8 @@ B({
|
|
|
8170
8170
|
funcName: a
|
|
8171
8171
|
} = r, n = H(e[0], "size");
|
|
8172
8172
|
if (t.settings.strict) {
|
|
8173
|
-
var s = a[1] === "m",
|
|
8174
|
-
s ? (
|
|
8173
|
+
var s = a[1] === "m", o = n.value.unit === "mu";
|
|
8174
|
+
s ? (o || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " supports only mu units, " + ("not " + n.value.unit + " units")), t.mode !== "math" && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " works only in math mode")) : o && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " doesn't support mu units");
|
|
8175
8175
|
}
|
|
8176
8176
|
return {
|
|
8177
8177
|
type: "kern",
|
|
@@ -8235,12 +8235,12 @@ B({
|
|
|
8235
8235
|
parser: a
|
|
8236
8236
|
} = r, n = a.mode;
|
|
8237
8237
|
a.switchMode("math");
|
|
8238
|
-
var s = t === "\\(" ? "\\)" : "$",
|
|
8238
|
+
var s = t === "\\(" ? "\\)" : "$", o = a.parseExpression(!1, s);
|
|
8239
8239
|
return a.expect(s), a.switchMode(n), {
|
|
8240
8240
|
type: "styling",
|
|
8241
8241
|
mode: a.mode,
|
|
8242
8242
|
style: "text",
|
|
8243
|
-
body:
|
|
8243
|
+
body: o
|
|
8244
8244
|
};
|
|
8245
8245
|
}
|
|
8246
8246
|
});
|
|
@@ -8300,7 +8300,7 @@ B({
|
|
|
8300
8300
|
return V0(t, e);
|
|
8301
8301
|
}
|
|
8302
8302
|
});
|
|
8303
|
-
var ea = (r, e, t, a, n, s,
|
|
8303
|
+
var ea = (r, e, t, a, n, s, o) => {
|
|
8304
8304
|
r = b.makeSpan([], [r]);
|
|
8305
8305
|
var h = t && q.isCharacterBox(t), c, p;
|
|
8306
8306
|
if (e) {
|
|
@@ -8319,7 +8319,7 @@ var ea = (r, e, t, a, n, s, u) => {
|
|
|
8319
8319
|
}
|
|
8320
8320
|
var w;
|
|
8321
8321
|
if (p && c) {
|
|
8322
|
-
var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth +
|
|
8322
|
+
var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth + o;
|
|
8323
8323
|
w = b.makeVList({
|
|
8324
8324
|
positionType: "bottom",
|
|
8325
8325
|
positionData: x,
|
|
@@ -8349,7 +8349,7 @@ var ea = (r, e, t, a, n, s, u) => {
|
|
|
8349
8349
|
}]
|
|
8350
8350
|
}, a);
|
|
8351
8351
|
} else if (c) {
|
|
8352
|
-
var z = r.height -
|
|
8352
|
+
var z = r.height - o;
|
|
8353
8353
|
w = b.makeVList({
|
|
8354
8354
|
positionType: "top",
|
|
8355
8355
|
positionData: z,
|
|
@@ -8369,7 +8369,7 @@ var ea = (r, e, t, a, n, s, u) => {
|
|
|
8369
8369
|
}]
|
|
8370
8370
|
}, a);
|
|
8371
8371
|
} else if (p) {
|
|
8372
|
-
var T = r.depth +
|
|
8372
|
+
var T = r.depth + o;
|
|
8373
8373
|
w = b.makeVList({
|
|
8374
8374
|
positionType: "bottom",
|
|
8375
8375
|
positionData: T,
|
|
@@ -8399,8 +8399,8 @@ var ea = (r, e, t, a, n, s, u) => {
|
|
|
8399
8399
|
}, ta = ["\\smallint"], ae = (r, e) => {
|
|
8400
8400
|
var t, a, n = !1, s;
|
|
8401
8401
|
r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "op"), n = !0) : s = H(r, "op");
|
|
8402
|
-
var
|
|
8403
|
-
|
|
8402
|
+
var o = e.style, h = !1;
|
|
8403
|
+
o.size === R.DISPLAY.size && s.symbol && !q.contains(ta, s.name) && (h = !0);
|
|
8404
8404
|
var c;
|
|
8405
8405
|
if (s.symbol) {
|
|
8406
8406
|
var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
|
|
@@ -8428,13 +8428,13 @@ var ea = (r, e, t, a, n, s, u) => {
|
|
|
8428
8428
|
c = b.makeSpan(["mop"], z, e);
|
|
8429
8429
|
}
|
|
8430
8430
|
var C = 0, N = 0;
|
|
8431
|
-
return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? ea(c, t, a, e,
|
|
8431
|
+
return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? ea(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
|
|
8432
8432
|
}, me = (r, e) => {
|
|
8433
8433
|
var t;
|
|
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", o0(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")]);
|
|
@@ -8581,7 +8581,7 @@ B({
|
|
|
8581
8581
|
var ra = (r, e) => {
|
|
8582
8582
|
var t, a, n = !1, s;
|
|
8583
8583
|
r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "operatorname"), n = !0) : s = H(r, "operatorname");
|
|
8584
|
-
var
|
|
8584
|
+
var o;
|
|
8585
8585
|
if (s.body.length > 0) {
|
|
8586
8586
|
for (var h = s.body.map((y) => {
|
|
8587
8587
|
var w = y.text;
|
|
@@ -8594,12 +8594,12 @@ var ra = (r, e) => {
|
|
|
8594
8594
|
var g = c[p];
|
|
8595
8595
|
g instanceof p0 && (g.text = g.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
8596
8596
|
}
|
|
8597
|
-
|
|
8597
|
+
o = b.makeSpan(["mop"], c, e);
|
|
8598
8598
|
} else
|
|
8599
|
-
|
|
8600
|
-
return n ? ea(
|
|
8599
|
+
o = b.makeSpan(["mop"], [], e);
|
|
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 = o0(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) {
|
|
@@ -8611,8 +8611,8 @@ var ra = (r, e) => {
|
|
|
8611
8611
|
break;
|
|
8612
8612
|
// Do nothing yet.
|
|
8613
8613
|
case "mo": {
|
|
8614
|
-
var
|
|
8615
|
-
s.children.length === 1 &&
|
|
8614
|
+
var o = s.children[0];
|
|
8615
|
+
s.children.length === 1 && o instanceof S.TextNode ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : a = !1;
|
|
8616
8616
|
break;
|
|
8617
8617
|
}
|
|
8618
8618
|
default:
|
|
@@ -8727,7 +8727,7 @@ B({
|
|
|
8727
8727
|
return b.makeFragment(t);
|
|
8728
8728
|
},
|
|
8729
8729
|
mathmlBuilder: (r, e) => {
|
|
8730
|
-
var t =
|
|
8730
|
+
var t = o0(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 = o0(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 = o0(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
|
});
|
|
@@ -8858,13 +8858,13 @@ B({
|
|
|
8858
8858
|
handler(r, e, t) {
|
|
8859
8859
|
var {
|
|
8860
8860
|
parser: a
|
|
8861
|
-
} = r, n = t[0], s = H(e[0], "size"),
|
|
8861
|
+
} = r, n = t[0], s = H(e[0], "size"), o = H(e[1], "size");
|
|
8862
8862
|
return {
|
|
8863
8863
|
type: "rule",
|
|
8864
8864
|
mode: a.mode,
|
|
8865
8865
|
shift: n && H(n, "size").value,
|
|
8866
8866
|
width: s.value,
|
|
8867
|
-
height:
|
|
8867
|
+
height: o.value
|
|
8868
8868
|
};
|
|
8869
8869
|
},
|
|
8870
8870
|
htmlBuilder(r, e) {
|
|
@@ -8872,16 +8872,16 @@ B({
|
|
|
8872
8872
|
return t.style.borderRightWidth = A(a), t.style.borderTopWidth = A(n), t.style.bottom = A(s), t.width = a, t.height = n + s, t.depth = -s, t.maxFontSize = n * 1.125 * e.sizeMultiplier, t;
|
|
8873
8873
|
},
|
|
8874
8874
|
mathmlBuilder(r, e) {
|
|
8875
|
-
var t = K(r.width, e), a = K(r.height, e), n = r.shift ? K(r.shift, e) : 0, s = e.color && e.getColor() || "black",
|
|
8876
|
-
|
|
8877
|
-
var h = new S.MathNode("mpadded", [
|
|
8875
|
+
var t = K(r.width, e), a = K(r.height, e), n = r.shift ? K(r.shift, e) : 0, s = e.color && e.getColor() || "black", o = new S.MathNode("mspace");
|
|
8876
|
+
o.setAttribute("mathbackground", s), o.setAttribute("width", A(t)), o.setAttribute("height", A(a));
|
|
8877
|
+
var h = new S.MathNode("mpadded", [o]);
|
|
8878
8878
|
return n >= 0 ? h.setAttribute("height", A(n)) : (h.setAttribute("height", A(n)), h.setAttribute("depth", A(-n))), h.setAttribute("voffset", A(n)), h;
|
|
8879
8879
|
}
|
|
8880
8880
|
});
|
|
8881
8881
|
function aa(r, e, t) {
|
|
8882
8882
|
for (var a = t0(r, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, s = 0; s < a.length; s++) {
|
|
8883
|
-
var
|
|
8884
|
-
|
|
8883
|
+
var o = a[s].classes.indexOf("sizing");
|
|
8884
|
+
o < 0 ? Array.prototype.push.apply(a[s].classes, e.sizingClasses(t)) : a[s].classes[o + 1] === "reset-size" + e.size && (a[s].classes[o + 1] = "reset-size" + t.size), a[s].height *= n, a[s].depth *= n;
|
|
8885
8885
|
}
|
|
8886
8886
|
return b.makeFragment(a);
|
|
8887
8887
|
}
|
|
@@ -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 = o0(r.body, t), n = new S.MathNode("mstyle", a);
|
|
8916
8916
|
return n.setAttribute("mathsize", A(t.sizeMultiplier)), n;
|
|
8917
8917
|
}
|
|
8918
8918
|
});
|
|
@@ -8927,10 +8927,10 @@ B({
|
|
|
8927
8927
|
handler: (r, e, t) => {
|
|
8928
8928
|
var {
|
|
8929
8929
|
parser: a
|
|
8930
|
-
} = r, n = !1, s = !1,
|
|
8931
|
-
if (
|
|
8932
|
-
for (var h = "", c = 0; c <
|
|
8933
|
-
var p =
|
|
8930
|
+
} = r, n = !1, s = !1, o = t[0] && H(t[0], "ordgroup");
|
|
8931
|
+
if (o)
|
|
8932
|
+
for (var h = "", c = 0; c < o.body.length; ++c) {
|
|
8933
|
+
var p = o.body[c];
|
|
8934
8934
|
if (h = p.text, h === "t")
|
|
8935
8935
|
n = !0;
|
|
8936
8936
|
else if (h === "b")
|
|
@@ -8998,13 +8998,13 @@ B({
|
|
|
8998
8998
|
t.height === 0 && (t.height = e.fontMetrics().xHeight), t = b.wrapFragment(t, e);
|
|
8999
8999
|
var a = e.fontMetrics(), n = a.defaultRuleThickness, s = n;
|
|
9000
9000
|
e.style.id < R.TEXT.id && (s = e.fontMetrics().xHeight);
|
|
9001
|
-
var
|
|
9001
|
+
var o = n + s / 4, h = t.height + t.depth + o + n, {
|
|
9002
9002
|
span: c,
|
|
9003
9003
|
ruleWidth: p,
|
|
9004
9004
|
advanceWidth: g
|
|
9005
9005
|
} = D0.sqrtImage(h, e), y = c.height - p;
|
|
9006
|
-
y > t.height + t.depth +
|
|
9007
|
-
var w = c.height - t.height -
|
|
9006
|
+
y > t.height + t.depth + o && (o = (o + y - t.height - t.depth) / 2);
|
|
9007
|
+
var w = c.height - t.height - o - p;
|
|
9008
9008
|
t.style.paddingLeft = A(g);
|
|
9009
9009
|
var x = b.makeVList({
|
|
9010
9010
|
positionType: "firstBaseline",
|
|
@@ -9063,13 +9063,13 @@ B({
|
|
|
9063
9063
|
breakOnTokenText: t,
|
|
9064
9064
|
funcName: a,
|
|
9065
9065
|
parser: n
|
|
9066
|
-
} = r, s = n.parseExpression(!0, t),
|
|
9066
|
+
} = r, s = n.parseExpression(!0, t), o = a.slice(1, a.length - 5);
|
|
9067
9067
|
return {
|
|
9068
9068
|
type: "styling",
|
|
9069
9069
|
mode: n.mode,
|
|
9070
9070
|
// Figure out what style to use by pulling out the style from
|
|
9071
9071
|
// the function name
|
|
9072
|
-
style:
|
|
9072
|
+
style: o,
|
|
9073
9073
|
body: s
|
|
9074
9074
|
};
|
|
9075
9075
|
},
|
|
@@ -9078,12 +9078,12 @@ 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 = o0(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"],
|
|
9085
9085
|
scriptscript: ["2", "false"]
|
|
9086
|
-
}, h =
|
|
9086
|
+
}, h = o[r.style];
|
|
9087
9087
|
return s.setAttribute("scriptlevel", h[0]), s.setAttribute("displaystyle", h[1]), s;
|
|
9088
9088
|
}
|
|
9089
9089
|
});
|
|
@@ -9100,8 +9100,8 @@ var Q1 = function(e, t) {
|
|
|
9100
9100
|
if (a.type === "accent")
|
|
9101
9101
|
return q.isCharacterBox(a.base) ? wt : null;
|
|
9102
9102
|
if (a.type === "horizBrace") {
|
|
9103
|
-
var
|
|
9104
|
-
return
|
|
9103
|
+
var o = !e.sub;
|
|
9104
|
+
return o === a.isOver ? _r : null;
|
|
9105
9105
|
} else
|
|
9106
9106
|
return null;
|
|
9107
9107
|
}
|
|
@@ -9117,21 +9117,21 @@ W0({
|
|
|
9117
9117
|
base: a,
|
|
9118
9118
|
sup: n,
|
|
9119
9119
|
sub: s
|
|
9120
|
-
} = r,
|
|
9120
|
+
} = r, o = P(a, e), h, c, p = e.fontMetrics(), g = 0, y = 0, w = a && q.isCharacterBox(a);
|
|
9121
9121
|
if (n) {
|
|
9122
9122
|
var x = e.havingStyle(e.style.sup());
|
|
9123
|
-
h = P(n, x, e), w || (g =
|
|
9123
|
+
h = P(n, x, e), w || (g = o.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
|
|
9124
9124
|
}
|
|
9125
9125
|
if (s) {
|
|
9126
9126
|
var z = e.havingStyle(e.style.sub());
|
|
9127
|
-
c = P(s, z, e), w || (y =
|
|
9127
|
+
c = P(s, z, e), w || (y = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
|
|
9128
9128
|
}
|
|
9129
9129
|
var T;
|
|
9130
9130
|
e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
|
|
9131
9131
|
var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), F = null;
|
|
9132
9132
|
if (c) {
|
|
9133
9133
|
var O = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
|
|
9134
|
-
(
|
|
9134
|
+
(o instanceof p0 || O) && (F = A(-o.italic));
|
|
9135
9135
|
}
|
|
9136
9136
|
var V;
|
|
9137
9137
|
if (h && c) {
|
|
@@ -9183,30 +9183,30 @@ W0({
|
|
|
9183
9183
|
}, e);
|
|
9184
9184
|
else
|
|
9185
9185
|
throw new Error("supsub must have either sup or sub.");
|
|
9186
|
-
var z0 =
|
|
9187
|
-
return b.makeSpan([z0], [
|
|
9186
|
+
var z0 = ot(o, "right") || "mord";
|
|
9187
|
+
return b.makeSpan([z0], [o, b.makeSpan(["msupsub"], [V])], e);
|
|
9188
9188
|
},
|
|
9189
9189
|
mathmlBuilder(r, e) {
|
|
9190
9190
|
var t = !1, a, n;
|
|
9191
9191
|
r.base && r.base.type === "horizBrace" && (n = !!r.sup, n === r.base.isOver && (t = !0, a = r.base.isOver)), r.base && (r.base.type === "op" || r.base.type === "operatorname") && (r.base.parentIsSupSub = !0);
|
|
9192
9192
|
var s = [X(r.base, e)];
|
|
9193
9193
|
r.sub && s.push(X(r.sub, e)), r.sup && s.push(X(r.sup, e));
|
|
9194
|
-
var
|
|
9194
|
+
var o;
|
|
9195
9195
|
if (t)
|
|
9196
|
-
|
|
9196
|
+
o = a ? "mover" : "munder";
|
|
9197
9197
|
else if (r.sub)
|
|
9198
9198
|
if (r.sup) {
|
|
9199
9199
|
var p = r.base;
|
|
9200
|
-
p && p.type === "op" && p.limits && e.style === R.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === R.DISPLAY || p.limits) ?
|
|
9200
|
+
p && p.type === "op" && p.limits && e.style === R.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === R.DISPLAY || p.limits) ? o = "munderover" : o = "msubsup";
|
|
9201
9201
|
} else {
|
|
9202
9202
|
var c = r.base;
|
|
9203
|
-
c && c.type === "op" && c.limits && (e.style === R.DISPLAY || c.alwaysHandleSupSub) || c && c.type === "operatorname" && c.alwaysHandleSupSub && (c.limits || e.style === R.DISPLAY) ?
|
|
9203
|
+
c && c.type === "op" && c.limits && (e.style === R.DISPLAY || c.alwaysHandleSupSub) || c && c.type === "operatorname" && c.alwaysHandleSupSub && (c.limits || e.style === R.DISPLAY) ? o = "munder" : o = "msub";
|
|
9204
9204
|
}
|
|
9205
9205
|
else {
|
|
9206
9206
|
var h = r.base;
|
|
9207
|
-
h && h.type === "op" && h.limits && (e.style === R.DISPLAY || h.alwaysHandleSupSub) || h && h.type === "operatorname" && h.alwaysHandleSupSub && (h.limits || e.style === R.DISPLAY) ?
|
|
9207
|
+
h && h.type === "op" && h.limits && (e.style === R.DISPLAY || h.alwaysHandleSupSub) || h && h.type === "operatorname" && h.alwaysHandleSupSub && (h.limits || e.style === R.DISPLAY) ? o = "mover" : o = "msup";
|
|
9208
9208
|
}
|
|
9209
|
-
return new S.MathNode(
|
|
9209
|
+
return new S.MathNode(o, s);
|
|
9210
9210
|
}
|
|
9211
9211
|
});
|
|
9212
9212
|
W0({
|
|
@@ -9307,19 +9307,19 @@ var lr = {
|
|
|
9307
9307
|
"\\textsf": "textsf",
|
|
9308
9308
|
"\\texttt": "texttt",
|
|
9309
9309
|
"\\textnormal": "textrm"
|
|
9310
|
-
},
|
|
9310
|
+
}, or = {
|
|
9311
9311
|
"\\textbf": "textbf",
|
|
9312
9312
|
"\\textmd": "textmd"
|
|
9313
9313
|
}, _1 = {
|
|
9314
9314
|
"\\textit": "textit",
|
|
9315
9315
|
"\\textup": "textup"
|
|
9316
|
-
},
|
|
9316
|
+
}, ur = (r, e) => {
|
|
9317
9317
|
var t = r.font;
|
|
9318
9318
|
if (t) {
|
|
9319
9319
|
if (lr[t])
|
|
9320
9320
|
return e.withTextFontFamily(lr[t]);
|
|
9321
|
-
if (
|
|
9322
|
-
return e.withTextFontWeight(
|
|
9321
|
+
if (or[t])
|
|
9322
|
+
return e.withTextFontWeight(or[t]);
|
|
9323
9323
|
if (t === "\\emph")
|
|
9324
9324
|
return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
|
|
9325
9325
|
} else return e;
|
|
@@ -9361,11 +9361,11 @@ B({
|
|
|
9361
9361
|
};
|
|
9362
9362
|
},
|
|
9363
9363
|
htmlBuilder(r, e) {
|
|
9364
|
-
var t =
|
|
9364
|
+
var t = ur(r, e), a = t0(r.body, t, !0);
|
|
9365
9365
|
return b.makeSpan(["mord", "text"], a, t);
|
|
9366
9366
|
},
|
|
9367
9367
|
mathmlBuilder(r, e) {
|
|
9368
|
-
var t =
|
|
9368
|
+
var t = ur(r, e);
|
|
9369
9369
|
return V0(r.body, t);
|
|
9370
9370
|
}
|
|
9371
9371
|
});
|
|
@@ -9459,8 +9459,8 @@ B({
|
|
|
9459
9459
|
},
|
|
9460
9460
|
htmlBuilder(r, e) {
|
|
9461
9461
|
for (var t = hr(r), a = [], n = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) {
|
|
9462
|
-
var
|
|
9463
|
-
|
|
9462
|
+
var o = t[s];
|
|
9463
|
+
o === "~" && (o = "\\textasciitilde"), a.push(b.makeSymbol(o, "Typewriter-Regular", r.mode, n, ["mord", "texttt"]));
|
|
9464
9464
|
}
|
|
9465
9465
|
return b.makeSpan(["mord", "text"].concat(n.sizingClasses(e)), b.tryCombineChars(a), n);
|
|
9466
9466
|
},
|
|
@@ -9470,22 +9470,22 @@ B({
|
|
|
9470
9470
|
}
|
|
9471
9471
|
});
|
|
9472
9472
|
var hr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), L0 = Tr, ia = `[ \r
|
|
9473
|
-
]`,
|
|
9473
|
+
]`, e4 = "\\\\[a-zA-Z@]+", t4 = "\\\\[^\uD800-\uDFFF]", r4 = "(" + e4 + ")" + ia + "*", a4 = `\\\\(
|
|
9474
9474
|
|[ \r ]+
|
|
9475
|
-
?)[ \r ]*`, ct = "[̀-ͯ]",
|
|
9476
|
-
(
|
|
9475
|
+
?)[ \r ]*`, ct = "[̀-ͯ]", n4 = new RegExp(ct + "+$"), i4 = "(" + ia + "+)|" + // whitespace
|
|
9476
|
+
(a4 + "|") + // \whitespace
|
|
9477
9477
|
"([!-\\[\\]-‧-豈-]" + // single codepoint
|
|
9478
9478
|
(ct + "*") + // ...plus accents
|
|
9479
9479
|
"|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
|
|
9480
9480
|
(ct + "*") + // ...plus accents
|
|
9481
9481
|
"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
|
|
9482
|
-
("|" +
|
|
9483
|
-
("|" +
|
|
9482
|
+
("|" + r4) + // \macroName + spaces
|
|
9483
|
+
("|" + t4 + ")");
|
|
9484
9484
|
class mr {
|
|
9485
9485
|
// Category codes. The lexer only supports comment characters (14) for now.
|
|
9486
9486
|
// MacroExpander additionally distinguishes active (13).
|
|
9487
9487
|
constructor(e, t) {
|
|
9488
|
-
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(
|
|
9488
|
+
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(i4, "g"), this.catcodes = {
|
|
9489
9489
|
"%": 14,
|
|
9490
9490
|
// comment character
|
|
9491
9491
|
"~": 13
|
|
@@ -9501,20 +9501,20 @@ class mr {
|
|
|
9501
9501
|
lex() {
|
|
9502
9502
|
var e = this.input, t = this.tokenRegex.lastIndex;
|
|
9503
9503
|
if (t === e.length)
|
|
9504
|
-
return new f0("EOF", new
|
|
9504
|
+
return new f0("EOF", new u0(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 f0(e[t], new
|
|
9507
|
+
throw new M("Unexpected character: '" + e[t] + "'", new f0(e[t], new u0(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 f0(n, new
|
|
9514
|
+
return new f0(n, new u0(this, t, this.tokenRegex.lastIndex));
|
|
9515
9515
|
}
|
|
9516
9516
|
}
|
|
9517
|
-
class
|
|
9517
|
+
class s4 {
|
|
9518
9518
|
/**
|
|
9519
9519
|
* Both arguments are optional. The first argument is an object of
|
|
9520
9520
|
* built-in mappings which never change. The second argument is an object
|
|
@@ -9585,7 +9585,7 @@ class ln {
|
|
|
9585
9585
|
t == null ? delete this.current[e] : this.current[e] = t;
|
|
9586
9586
|
}
|
|
9587
9587
|
}
|
|
9588
|
-
var
|
|
9588
|
+
var l4 = jr;
|
|
9589
9589
|
m("\\noexpand", function(r) {
|
|
9590
9590
|
var e = r.popToken();
|
|
9591
9591
|
return r.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
|
|
@@ -9689,10 +9689,10 @@ var Dt = (r, e, t, a) => {
|
|
|
9689
9689
|
var n = r.consumeArg().tokens;
|
|
9690
9690
|
if (n.length !== 1)
|
|
9691
9691
|
throw new M("\\newcommand's first argument must be a macro name");
|
|
9692
|
-
var s = n[0].text,
|
|
9693
|
-
if (
|
|
9692
|
+
var s = n[0].text, o = r.isDefined(s);
|
|
9693
|
+
if (o && !e)
|
|
9694
9694
|
throw new M("\\newcommand{" + s + "} attempting to redefine " + (s + "; use \\renewcommand"));
|
|
9695
|
-
if (!
|
|
9695
|
+
if (!o && !t)
|
|
9696
9696
|
throw new M("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand");
|
|
9697
9697
|
var h = 0;
|
|
9698
9698
|
if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") {
|
|
@@ -9702,7 +9702,7 @@ var Dt = (r, e, t, a) => {
|
|
|
9702
9702
|
throw new M("Invalid number of arguments: " + c);
|
|
9703
9703
|
h = parseInt(c), n = r.consumeArg().tokens;
|
|
9704
9704
|
}
|
|
9705
|
-
return
|
|
9705
|
+
return o && a || r.macros.set(s, {
|
|
9706
9706
|
tokens: n,
|
|
9707
9707
|
numArgs: h
|
|
9708
9708
|
}), "";
|
|
@@ -10078,10 +10078,10 @@ m("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
|
|
|
10078
10078
|
m("\\Bra", "\\left\\langle#1\\right|");
|
|
10079
10079
|
m("\\Ket", "\\left|#1\\right\\rangle");
|
|
10080
10080
|
var la = (r) => (e) => {
|
|
10081
|
-
var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens,
|
|
10081
|
+
var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens, o = e.macros.get("|"), h = e.macros.get("\\|");
|
|
10082
10082
|
e.macros.beginGroup();
|
|
10083
10083
|
var c = (y) => (w) => {
|
|
10084
|
-
r && (w.macros.set("|",
|
|
10084
|
+
r && (w.macros.set("|", o), n.length && w.macros.set("\\|", h));
|
|
10085
10085
|
var x = y;
|
|
10086
10086
|
if (!y && n.length) {
|
|
10087
10087
|
var z = w.future();
|
|
@@ -10166,7 +10166,7 @@ m("\\grayH", "\\textcolor{##3b3e40}{#1}");
|
|
|
10166
10166
|
m("\\grayI", "\\textcolor{##21242c}{#1}");
|
|
10167
10167
|
m("\\kaBlue", "\\textcolor{##314453}{#1}");
|
|
10168
10168
|
m("\\kaGreen", "\\textcolor{##71B307}{#1}");
|
|
10169
|
-
var
|
|
10169
|
+
var oa = {
|
|
10170
10170
|
"^": !0,
|
|
10171
10171
|
// Parser.js
|
|
10172
10172
|
_: !0,
|
|
@@ -10176,9 +10176,9 @@ var ua = {
|
|
|
10176
10176
|
"\\nolimits": !0
|
|
10177
10177
|
// Parser.js
|
|
10178
10178
|
};
|
|
10179
|
-
class
|
|
10179
|
+
class o4 {
|
|
10180
10180
|
constructor(e, t, a) {
|
|
10181
|
-
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new
|
|
10181
|
+
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new s4(l4, t.macros), this.mode = a, this.stack = [];
|
|
10182
10182
|
}
|
|
10183
10183
|
/**
|
|
10184
10184
|
* Feed a new input string to the same MacroExpander
|
|
@@ -10278,24 +10278,24 @@ class on {
|
|
|
10278
10278
|
consumeArg(e) {
|
|
10279
10279
|
var t = [], a = e && e.length > 0;
|
|
10280
10280
|
a || this.consumeSpaces();
|
|
10281
|
-
var n = this.future(), s,
|
|
10281
|
+
var n = this.future(), s, o = 0, h = 0;
|
|
10282
10282
|
do {
|
|
10283
10283
|
if (s = this.popToken(), t.push(s), s.text === "{")
|
|
10284
|
-
++
|
|
10284
|
+
++o;
|
|
10285
10285
|
else if (s.text === "}") {
|
|
10286
|
-
if (--
|
|
10286
|
+
if (--o, o === -1)
|
|
10287
10287
|
throw new M("Extra }", s);
|
|
10288
10288
|
} else if (s.text === "EOF")
|
|
10289
10289
|
throw new M("Unexpected end of input in a macro argument, expected '" + (e && a ? e[h] : "}") + "'", s);
|
|
10290
10290
|
if (e && a)
|
|
10291
|
-
if ((
|
|
10291
|
+
if ((o === 0 || o === 1 && e[h] === "{") && s.text === e[h]) {
|
|
10292
10292
|
if (++h, h === e.length) {
|
|
10293
10293
|
t.splice(-h, h);
|
|
10294
10294
|
break;
|
|
10295
10295
|
}
|
|
10296
10296
|
} else
|
|
10297
10297
|
h = 0;
|
|
10298
|
-
} while (
|
|
10298
|
+
} while (o !== 0 || a);
|
|
10299
10299
|
return n.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), {
|
|
10300
10300
|
tokens: t,
|
|
10301
10301
|
start: n,
|
|
@@ -10316,9 +10316,9 @@ class on {
|
|
|
10316
10316
|
throw new M("Use of the macro doesn't match its definition", s);
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
10319
|
-
for (var
|
|
10320
|
-
|
|
10321
|
-
return
|
|
10319
|
+
for (var o = [], h = 0; h < e; h++)
|
|
10320
|
+
o.push(this.consumeArg(t && t[h + 1]).tokens);
|
|
10321
|
+
return o;
|
|
10322
10322
|
}
|
|
10323
10323
|
/**
|
|
10324
10324
|
* Increment `expansionCount` by the specified amount.
|
|
@@ -10355,7 +10355,7 @@ class on {
|
|
|
10355
10355
|
return this.pushToken(t), !1;
|
|
10356
10356
|
}
|
|
10357
10357
|
this.countExpansion(1);
|
|
10358
|
-
var s = n.tokens,
|
|
10358
|
+
var s = n.tokens, o = this.consumeArgs(n.numArgs, n.delimiters);
|
|
10359
10359
|
if (n.numArgs) {
|
|
10360
10360
|
s = s.slice();
|
|
10361
10361
|
for (var h = s.length - 1; h >= 0; --h) {
|
|
@@ -10366,7 +10366,7 @@ class on {
|
|
|
10366
10366
|
if (c = s[--h], c.text === "#")
|
|
10367
10367
|
s.splice(h + 1, 1);
|
|
10368
10368
|
else if (/^[1-9]$/.test(c.text))
|
|
10369
|
-
s.splice(h, 2, ...
|
|
10369
|
+
s.splice(h, 2, ...o[+c.text - 1]);
|
|
10370
10370
|
else
|
|
10371
10371
|
throw new M("Not a valid argument number", c);
|
|
10372
10372
|
}
|
|
@@ -10440,7 +10440,7 @@ class on {
|
|
|
10440
10440
|
if (typeof n == "string") {
|
|
10441
10441
|
var s = 0;
|
|
10442
10442
|
if (n.indexOf("#") !== -1)
|
|
10443
|
-
for (var
|
|
10443
|
+
for (var o = n.replace(/##/g, ""); o.indexOf("#" + (s + 1)) !== -1; )
|
|
10444
10444
|
++s;
|
|
10445
10445
|
for (var h = new mr(n, this.settings), c = [], p = h.lex(); p.text !== "EOF"; )
|
|
10446
10446
|
c.push(p), p = h.lex();
|
|
@@ -10460,7 +10460,7 @@ class on {
|
|
|
10460
10460
|
* `implicitCommands`.
|
|
10461
10461
|
*/
|
|
10462
10462
|
isDefined(e) {
|
|
10463
|
-
return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) ||
|
|
10463
|
+
return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || oa.hasOwnProperty(e);
|
|
10464
10464
|
}
|
|
10465
10465
|
/**
|
|
10466
10466
|
* Determine whether a command is expandable.
|
|
@@ -10968,7 +10968,7 @@ var fr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
|
|
|
10968
10968
|
};
|
|
10969
10969
|
class He {
|
|
10970
10970
|
constructor(e, t) {
|
|
10971
|
-
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new
|
|
10971
|
+
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new o4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
|
|
10972
10972
|
}
|
|
10973
10973
|
/**
|
|
10974
10974
|
* Checks a result to make sure it has the right type, and throws an
|
|
@@ -11062,18 +11062,18 @@ class He {
|
|
|
11062
11062
|
t = n, a = e[n].replaceWith;
|
|
11063
11063
|
}
|
|
11064
11064
|
if (t !== -1 && a) {
|
|
11065
|
-
var s,
|
|
11065
|
+
var s, o, h = e.slice(0, t), c = e.slice(t + 1);
|
|
11066
11066
|
h.length === 1 && h[0].type === "ordgroup" ? s = h[0] : s = {
|
|
11067
11067
|
type: "ordgroup",
|
|
11068
11068
|
mode: this.mode,
|
|
11069
11069
|
body: h
|
|
11070
|
-
}, c.length === 1 && c[0].type === "ordgroup" ?
|
|
11070
|
+
}, c.length === 1 && c[0].type === "ordgroup" ? o = c[0] : o = {
|
|
11071
11071
|
type: "ordgroup",
|
|
11072
11072
|
mode: this.mode,
|
|
11073
11073
|
body: c
|
|
11074
11074
|
};
|
|
11075
11075
|
var p;
|
|
11076
|
-
return a === "\\\\abovefrac" ? p = this.callFunction(a, [s, e[t],
|
|
11076
|
+
return a === "\\\\abovefrac" ? p = this.callFunction(a, [s, e[t], o], []) : p = this.callFunction(a, [s, o], []), [p];
|
|
11077
11077
|
} else
|
|
11078
11078
|
return e;
|
|
11079
11079
|
}
|
|
@@ -11127,8 +11127,8 @@ class He {
|
|
|
11127
11127
|
var s = this.fetch();
|
|
11128
11128
|
if (s.text === "\\limits" || s.text === "\\nolimits") {
|
|
11129
11129
|
if (t && t.type === "op") {
|
|
11130
|
-
var
|
|
11131
|
-
t.limits =
|
|
11130
|
+
var o = s.text === "\\limits";
|
|
11131
|
+
t.limits = o, t.alwaysHandleSupSub = !0;
|
|
11132
11132
|
} else if (t && t.type === "operatorname")
|
|
11133
11133
|
t.alwaysHandleSupSub && (t.limits = s.text === "\\limits");
|
|
11134
11134
|
else
|
|
@@ -11200,23 +11200,23 @@ class He {
|
|
|
11200
11200
|
if (this.mode === "math" && s.allowedInMath === !1)
|
|
11201
11201
|
throw new M("Can't use function '" + n + "' in math mode", a);
|
|
11202
11202
|
var {
|
|
11203
|
-
args:
|
|
11203
|
+
args: o,
|
|
11204
11204
|
optArgs: h
|
|
11205
11205
|
} = this.parseArguments(n, s);
|
|
11206
|
-
return this.callFunction(n,
|
|
11206
|
+
return this.callFunction(n, o, h, a, e);
|
|
11207
11207
|
}
|
|
11208
11208
|
/**
|
|
11209
11209
|
* Call a function handler with a suitable context and arguments.
|
|
11210
11210
|
*/
|
|
11211
11211
|
callFunction(e, t, a, n, s) {
|
|
11212
|
-
var
|
|
11212
|
+
var o = {
|
|
11213
11213
|
funcName: e,
|
|
11214
11214
|
parser: this,
|
|
11215
11215
|
token: n,
|
|
11216
11216
|
breakOnTokenText: s
|
|
11217
11217
|
}, h = L0[e];
|
|
11218
11218
|
if (h && h.handler)
|
|
11219
|
-
return h.handler(
|
|
11219
|
+
return h.handler(o, t, a);
|
|
11220
11220
|
throw new M("No function handler for " + e);
|
|
11221
11221
|
}
|
|
11222
11222
|
/**
|
|
@@ -11229,10 +11229,10 @@ class He {
|
|
|
11229
11229
|
args: [],
|
|
11230
11230
|
optArgs: []
|
|
11231
11231
|
};
|
|
11232
|
-
for (var n = [], s = [],
|
|
11233
|
-
var h = t.argTypes && t.argTypes[
|
|
11232
|
+
for (var n = [], s = [], o = 0; o < a; o++) {
|
|
11233
|
+
var h = t.argTypes && t.argTypes[o], c = o < t.numOptionalArgs;
|
|
11234
11234
|
(t.primitive && h == null || // \sqrt expands into primitive if optional argument doesn't exist
|
|
11235
|
-
t.type === "sqrt" &&
|
|
11235
|
+
t.type === "sqrt" && o === 1 && s[0] == null) && (h = "primitive");
|
|
11236
11236
|
var p = this.parseGroupOfType("argument to '" + e + "'", h, c);
|
|
11237
11237
|
if (c)
|
|
11238
11238
|
s.push(p);
|
|
@@ -11281,10 +11281,10 @@ class He {
|
|
|
11281
11281
|
case "primitive": {
|
|
11282
11282
|
if (a)
|
|
11283
11283
|
throw new M("A primitive argument cannot be optional");
|
|
11284
|
-
var
|
|
11285
|
-
if (
|
|
11284
|
+
var o = this.parseGroup(e);
|
|
11285
|
+
if (o == null)
|
|
11286
11286
|
throw new M("Expected group as " + e, this.fetch());
|
|
11287
|
-
return
|
|
11287
|
+
return o;
|
|
11288
11288
|
}
|
|
11289
11289
|
case "original":
|
|
11290
11290
|
case null:
|
|
@@ -11319,8 +11319,8 @@ class He {
|
|
|
11319
11319
|
* formed by the tokens plus some position information.
|
|
11320
11320
|
*/
|
|
11321
11321
|
parseRegexGroup(e, t) {
|
|
11322
|
-
for (var a = this.fetch(), n = a, s = "",
|
|
11323
|
-
n =
|
|
11322
|
+
for (var a = this.fetch(), n = a, s = "", o; (o = this.fetch()).text !== "EOF" && e.test(s + o.text); )
|
|
11323
|
+
n = o, s += n.text, this.consume();
|
|
11324
11324
|
if (s === "")
|
|
11325
11325
|
throw new M("Invalid " + t + ": '" + a.text + "'", a);
|
|
11326
11326
|
return a.range(n, s);
|
|
@@ -11394,13 +11394,13 @@ class He {
|
|
|
11394
11394
|
t && this.switchMode(t), this.gullet.beginGroup();
|
|
11395
11395
|
var s = this.parseExpression(!1, "EOF");
|
|
11396
11396
|
this.expect("EOF"), this.gullet.endGroup();
|
|
11397
|
-
var
|
|
11397
|
+
var o = {
|
|
11398
11398
|
type: "ordgroup",
|
|
11399
11399
|
mode: this.mode,
|
|
11400
11400
|
loc: a.loc,
|
|
11401
11401
|
body: s
|
|
11402
11402
|
};
|
|
11403
|
-
return t && this.switchMode(n),
|
|
11403
|
+
return t && this.switchMode(n), o;
|
|
11404
11404
|
}
|
|
11405
11405
|
/**
|
|
11406
11406
|
* Parses an ordinary group, which is either a single nucleus (like "x")
|
|
@@ -11412,13 +11412,13 @@ class He {
|
|
|
11412
11412
|
var a = this.fetch(), n = a.text, s;
|
|
11413
11413
|
if (n === "{" || n === "\\begingroup") {
|
|
11414
11414
|
this.consume();
|
|
11415
|
-
var
|
|
11415
|
+
var o = n === "{" ? "}" : "\\endgroup";
|
|
11416
11416
|
this.gullet.beginGroup();
|
|
11417
|
-
var h = this.parseExpression(!1,
|
|
11418
|
-
this.expect(
|
|
11417
|
+
var h = this.parseExpression(!1, o), c = this.fetch();
|
|
11418
|
+
this.expect(o), this.gullet.endGroup(), s = {
|
|
11419
11419
|
type: "ordgroup",
|
|
11420
11420
|
mode: this.mode,
|
|
11421
|
-
loc:
|
|
11421
|
+
loc: u0.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.
|
|
@@ -11426,7 +11426,7 @@ class He {
|
|
|
11426
11426
|
// use-begingroup-instead-of-bgroup
|
|
11427
11427
|
semisimple: n === "\\begingroup" || void 0
|
|
11428
11428
|
};
|
|
11429
|
-
} else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !
|
|
11429
|
+
} else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !oa.hasOwnProperty(n)) {
|
|
11430
11430
|
if (this.settings.throwOnError)
|
|
11431
11431
|
throw new M("Undefined control sequence: " + n, a);
|
|
11432
11432
|
s = this.formatUnsupportedCmd(n), this.consume();
|
|
@@ -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: u0.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: u0.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: u0.range(n, e[a + 1]),
|
|
11461
11461
|
text: s + s
|
|
11462
11462
|
}), t -= 1);
|
|
11463
11463
|
}
|
|
@@ -11482,12 +11482,12 @@ class He {
|
|
|
11482
11482
|
};
|
|
11483
11483
|
}
|
|
11484
11484
|
pr.hasOwnProperty(t[0]) && !$[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = pr[t[0]] + t.slice(1));
|
|
11485
|
-
var s =
|
|
11485
|
+
var s = n4.exec(t);
|
|
11486
11486
|
s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
|
|
11487
|
-
var
|
|
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 = u0.range(e), p;
|
|
11491
11491
|
if (Ka.hasOwnProperty(h)) {
|
|
11492
11492
|
var g = h;
|
|
11493
11493
|
p = {
|
|
@@ -11504,12 +11504,12 @@ class He {
|
|
|
11504
11504
|
loc: c,
|
|
11505
11505
|
text: t
|
|
11506
11506
|
};
|
|
11507
|
-
|
|
11507
|
+
o = p;
|
|
11508
11508
|
} else if (t.charCodeAt(0) >= 128)
|
|
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)),
|
|
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: u0.range(e),
|
|
11513
11513
|
text: t
|
|
11514
11514
|
};
|
|
11515
11515
|
else
|
|
@@ -11522,18 +11522,18 @@ class He {
|
|
|
11522
11522
|
var x = at[w][this.mode] || at[w].text;
|
|
11523
11523
|
if (!x)
|
|
11524
11524
|
throw new M("Accent " + w + " unsupported in " + this.mode + " mode", e);
|
|
11525
|
-
|
|
11525
|
+
o = {
|
|
11526
11526
|
type: "accent",
|
|
11527
11527
|
mode: this.mode,
|
|
11528
|
-
loc:
|
|
11528
|
+
loc: u0.range(e),
|
|
11529
11529
|
label: x,
|
|
11530
11530
|
isStretchy: !1,
|
|
11531
11531
|
isShifty: !0,
|
|
11532
11532
|
// $FlowFixMe
|
|
11533
|
-
base:
|
|
11533
|
+
base: o
|
|
11534
11534
|
};
|
|
11535
11535
|
}
|
|
11536
|
-
return
|
|
11536
|
+
return o;
|
|
11537
11537
|
}
|
|
11538
11538
|
}
|
|
11539
11539
|
He.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
|
|
@@ -11554,18 +11554,18 @@ var Nt = function(e, t) {
|
|
|
11554
11554
|
}];
|
|
11555
11555
|
}
|
|
11556
11556
|
return n;
|
|
11557
|
-
},
|
|
11557
|
+
}, ua = function(e, t, a) {
|
|
11558
11558
|
t.textContent = "";
|
|
11559
11559
|
var n = qt(e, a).toNode();
|
|
11560
11560
|
t.appendChild(n);
|
|
11561
11561
|
};
|
|
11562
|
-
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),
|
|
11562
|
+
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ua = function() {
|
|
11563
11563
|
throw new M("KaTeX doesn't work in quirks mode.");
|
|
11564
11564
|
});
|
|
11565
|
-
var
|
|
11565
|
+
var u4 = function(e, t) {
|
|
11566
11566
|
var a = qt(e, t).toMarkup();
|
|
11567
11567
|
return a;
|
|
11568
|
-
},
|
|
11568
|
+
}, h4 = function(e, t) {
|
|
11569
11569
|
var a = new dt(t);
|
|
11570
11570
|
return Nt(e, a);
|
|
11571
11571
|
}, ha = function(e, t, a) {
|
|
@@ -11581,7 +11581,7 @@ var hn = function(e, t) {
|
|
|
11581
11581
|
} catch (s) {
|
|
11582
11582
|
return ha(s, e, a);
|
|
11583
11583
|
}
|
|
11584
|
-
},
|
|
11584
|
+
}, m4 = function(e, t) {
|
|
11585
11585
|
var a = new dt(t);
|
|
11586
11586
|
try {
|
|
11587
11587
|
var n = Nt(e, a);
|
|
@@ -11589,28 +11589,28 @@ var hn = function(e, t) {
|
|
|
11589
11589
|
} catch (s) {
|
|
11590
11590
|
return ha(s, e, a);
|
|
11591
11591
|
}
|
|
11592
|
-
},
|
|
11592
|
+
}, c4 = "0.16.22", d4 = {
|
|
11593
11593
|
Span: he,
|
|
11594
11594
|
Anchor: vt,
|
|
11595
11595
|
SymbolNode: p0,
|
|
11596
11596
|
SvgNode: C0,
|
|
11597
11597
|
PathNode: G0,
|
|
11598
11598
|
LineNode: st
|
|
11599
|
-
},
|
|
11599
|
+
}, f4 = {
|
|
11600
11600
|
/**
|
|
11601
11601
|
* Current KaTeX version
|
|
11602
11602
|
*/
|
|
11603
|
-
version:
|
|
11603
|
+
version: c4,
|
|
11604
11604
|
/**
|
|
11605
11605
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
|
11606
11606
|
* it as a child to the specified DOM node.
|
|
11607
11607
|
*/
|
|
11608
|
-
render:
|
|
11608
|
+
render: ua,
|
|
11609
11609
|
/**
|
|
11610
11610
|
* Renders the given LaTeX into an HTML+MathML combination string,
|
|
11611
11611
|
* for sending to the client.
|
|
11612
11612
|
*/
|
|
11613
|
-
renderToString:
|
|
11613
|
+
renderToString: u4,
|
|
11614
11614
|
/**
|
|
11615
11615
|
* KaTeX error, usually during parsing.
|
|
11616
11616
|
*/
|
|
@@ -11627,7 +11627,7 @@ var hn = function(e, t) {
|
|
|
11627
11627
|
* The internal tree representation is unstable and is very likely
|
|
11628
11628
|
* to change. Use at your own risk.
|
|
11629
11629
|
*/
|
|
11630
|
-
__parse:
|
|
11630
|
+
__parse: h4,
|
|
11631
11631
|
/**
|
|
11632
11632
|
* Renders the given LaTeX into an HTML+MathML internal DOM tree
|
|
11633
11633
|
* representation, without flattening that representation to a string.
|
|
@@ -11645,7 +11645,7 @@ var hn = function(e, t) {
|
|
|
11645
11645
|
* The internal tree representation is unstable and is very likely
|
|
11646
11646
|
* to change. Use at your own risk.
|
|
11647
11647
|
*/
|
|
11648
|
-
__renderToHTMLTree:
|
|
11648
|
+
__renderToHTMLTree: m4,
|
|
11649
11649
|
/**
|
|
11650
11650
|
* extends internal font metrics object with a new object
|
|
11651
11651
|
* each key in the new object represents a font name
|
|
@@ -11672,7 +11672,7 @@ var hn = function(e, t) {
|
|
|
11672
11672
|
* The internal tree representation is unstable and is very likely
|
|
11673
11673
|
* to change. Use at your own risk.
|
|
11674
11674
|
*/
|
|
11675
|
-
__domTree:
|
|
11675
|
+
__domTree: d4
|
|
11676
11676
|
};
|
|
11677
11677
|
export {
|
|
11678
11678
|
M as ParseError,
|
|
@@ -11680,13 +11680,13 @@ export {
|
|
|
11680
11680
|
B as __defineFunction,
|
|
11681
11681
|
m as __defineMacro,
|
|
11682
11682
|
i as __defineSymbol,
|
|
11683
|
-
|
|
11684
|
-
|
|
11683
|
+
d4 as __domTree,
|
|
11684
|
+
h4 as __parse,
|
|
11685
11685
|
qt as __renderToDomTree,
|
|
11686
|
-
|
|
11686
|
+
m4 as __renderToHTMLTree,
|
|
11687
11687
|
Va as __setFontMetrics,
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11688
|
+
f4 as default,
|
|
11689
|
+
ua as render,
|
|
11690
|
+
u4 as renderToString,
|
|
11691
|
+
c4 as version
|
|
11692
11692
|
};
|