@versini/sassysaint 8.109.1 → 8.109.2
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/chunks/{AboutChangelog.CHx3bA8W.js → AboutChangelog.BSdcqHox.js} +2 -2
- package/dist/chunks/{AboutEntry.B7hjR8pi.js → AboutEntry.CAewlRU7.js} +7 -7
- package/dist/chunks/{App.CvQU6EGq.js → App.Ck18sHiX.js} +1926 -1910
- package/dist/chunks/{Bubble.B5Bk6utN.js → Bubble.B6v5eAOZ.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.C0IuterV.js → ButtonIconDelete.jqbd7Q9b.js} +2 -2
- package/dist/chunks/{Chart.Bhit-mtQ.js → Chart.BIy5YDm2.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BFdbFREH.js → ChatBubbleAssistant.CN-iqEkP.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BR5AqwE9.js → ChatBubbleUser.D4OLR3vD.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BJUF2mNs.js → ChatHistoryTable.ZOLprzfc.js} +4 -4
- package/dist/chunks/HistoryEntry.DY5WIpTu.js +373 -0
- package/dist/chunks/{LoginEntry.DKzVM9lq.js → LoginEntry.CC1V4TOR.js} +4 -4
- package/dist/chunks/{LogoEntry.Et0a-97_.js → LogoEntry.B1e2c-s0.js} +1 -1
- package/dist/chunks/{MemoriesEntry.yJKFVG54.js → MemoriesEntry.CVrI1Ter.js} +5 -5
- package/dist/chunks/ProfileEntry.VlRvWAq4.js +213 -0
- package/dist/chunks/{SettingsEntry.BP8H8gHu.js → SettingsEntry.BxF_ZqA5.js} +5 -5
- package/dist/chunks/{UsageEntry.CamC3XI3.js → UsageEntry.DHYx6GmN.js} +5 -5
- package/dist/chunks/_baseUniq.B6Gcl5nF.js +477 -0
- package/dist/chunks/{arc.ynrnfWOq.js → arc.w_BReByh.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DtWoTE88.js → architecture-U656AL7Q.BPCpLHAc.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CDFvIr0j.js → architectureDiagram-VXUJARFQ.D96Sa2WG.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.BLWWo36R.js → blockDiagram-VD42YOAC.fDjFSO1h.js} +5 -5
- package/dist/chunks/{browser.BvYD8dc4.js → browser.Cb_vr1PR.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.-whHC2cr.js → c4Diagram-YG6GDRKO.U8IWA3ML.js} +2 -2
- package/dist/chunks/{channel.CiPC9guK.js → channel.Dw9Rrvd2.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BOZN6uSe.js → chunk-4BX2VUAB.Cio3OsS-.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.wEa6Vrrn.js → chunk-55IACEB6.CFaFqBKt.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.sEhBCKvF.js → chunk-B4BG7PRW.DGkVxxTo.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DJ2ZY0Xk.js → chunk-DI55MBZ5.DsnidbDu.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.jo8ibE98.js → chunk-FMBD7UC4.DTxRjjKJ.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.FbSApAGi.js → chunk-QN33PNHL.CuRPKMac.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.B-GQnYi1.js → chunk-QZHKN3VN.CntLD_-Z.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.DeXLG4gm.js → chunk-TZMSLE5B.B7_0n6Dd.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BFI_M0Vv.js → classDiagram-2ON5EDUG.BJsNaiPY.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BFI_M0Vv.js → classDiagram-v2-WZHVMYZB.BJsNaiPY.js} +2 -2
- package/dist/chunks/{clone.CoM2ipCS.js → clone.BFX0o9-g.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.CW44zK-a.js → cose-bilkent-S5V4N54A.CJtHnhhQ.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.VaYbgRPs.js → dagre-6UL2VRFP.CuwjO6gV.js} +21 -22
- package/dist/chunks/{diagram-PSM6KHXK.CrrlGnPy.js → diagram-PSM6KHXK.CnNu5_LM.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.BSo_CGEX.js → diagram-QEK2KX5R.D74ae4xj.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.Rgo5A0oh.js → diagram-S2PKOQOG.C_JbSw1v.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.v7LUWRA_.js → erDiagram-Q2GNP2WA.Bu-foyWC.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CUK5d1OY.js → flowDiagram-NV44I4VS.YDgJ2OQY.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.DSpVGXrZ.js → ganttDiagram-JELNMOA3.ymNQ3Hoy.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.CR5ma9FN.js → gitGraph-F6HP7TQM.D-mPOTEU.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.ddzDD3PJ.js → gitGraphDiagram-NY62KEGX.jrbht_5k.js} +4 -4
- package/dist/chunks/graph.Dw24ucCU.js +381 -0
- package/dist/chunks/{index.D0bvjdAE.js → index.BGnEq9eh.js} +1 -1
- package/dist/chunks/{index.CNOm7KYJ.js → index.BzMdQGY-.js} +1 -1
- package/dist/chunks/{index.D1HS2InQ.js → index.CQg0p3pG.js} +1 -1
- package/dist/chunks/{index.Bo0ZyMS6.js → index.Ci301JK4.js} +1 -1
- package/dist/chunks/{index.DpqePp5S.js → index.CmK3RbmJ.js} +1 -1
- package/dist/chunks/{index.DZn5_zSr.js → index.CmWau6U1.js} +4 -4
- package/dist/chunks/{index.D3lm4Af9.js → index.Cn19xWGt.js} +3 -3
- package/dist/chunks/{index.BNY6p-fk.js → index.D5R76Qhp.js} +2 -2
- package/dist/chunks/{index.7QjsCYx3.js → index.KPs76GKZ.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.DUQkycDd.js → info-NVLQJR56.CzwKOAh7.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.NPaVwPcu.js → infoDiagram-WHAUD3N6.au7bTIRT.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.sLc-NUAF.js → journeyDiagram-XKPGCS4Q.C9l-1F8k.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.CJM-u6MS.js → kanban-definition-3W4ZIXB7.D6Vfi9gE.js} +2 -2
- package/dist/chunks/{katex.D0sQThIv.js → katex.6qoCFezb.js} +898 -896
- package/dist/chunks/layout.DPHpmMar.js +1438 -0
- package/dist/chunks/{mermaid-parser.core.3uaMP7ZS.js → mermaid-parser.core.DInxEyfY.js} +6567 -5346
- package/dist/chunks/min.MWawyr81.js +38 -0
- package/dist/chunks/{mindmap-definition-VGOIOE7T.Q2m6DBXW.js → mindmap-definition-VGOIOE7T.AmwLTujL.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.sN5Fa0Sr.js → packet-BFZMPI3H.CSmnVpE_.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.BScE_xM_.js → pie-7BOR55EZ.DJwvoEep.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.WKnsLjJ9.js → pieDiagram-ADFJNKIX.Ci_Ogfw5.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CF5uxytb.js → quadrantDiagram-AYHSOK5B.DenSBLBq.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.C3c_hhO0.js → radar-NHE76QYJ.Bs1Xji9w.js} +1 -1
- package/dist/chunks/{rehype-mermaid.9DNnJpsp.js → rehype-mermaid.DlMgdumz.js} +34 -36
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BgyWk-vG.js → requirementDiagram-UZGBJVZJ.CjMQhoO7.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DGhb8Q2q.js → sankeyDiagram-TZEHDZUN.B9hWlv5i.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BdgDMneu.js → sequenceDiagram-WL72ISMW.MHpp_BjQ.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.WvFhN-Y1.js → stateDiagram-FKZM4ZOC.C4fbHKw_.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.XGGE9T11.js → stateDiagram-v2-4FDKWEC3.ByhBnYKV.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BZ0pWBft.js → timeline-definition-IT6M3QCI.BVQ3wHwi.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DkuK4pnF.js → treemap-KMMF4GRG.DCYbqvVC.js} +1 -1
- package/dist/chunks/{useMarkdown.C-Fn6Ae-.js → useMarkdown.4iaTIP2g.js} +771 -771
- package/dist/chunks/{xychartDiagram-PRI3JC2R.D313uw2n.js → xychartDiagram-PRI3JC2R.Dp6iurqL.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/chunks/HistoryEntry.BiqgKjR3.js +0 -362
- package/dist/chunks/ProfileEntry.8zXuUXK_.js +0 -197
- package/dist/chunks/_basePickBy.DwmlU26x.js +0 -151
- package/dist/chunks/_baseUniq.BQsx-qln.js +0 -614
- package/dist/chunks/graph.Dw7qTm3Q.js +0 -247
- package/dist/chunks/layout.BGNrNalg.js +0 -1332
|
@@ -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 m0 {
|
|
@@ -29,7 +29,7 @@ class m0 {
|
|
|
29
29
|
* the whole input range enclosed by these two.
|
|
30
30
|
*/
|
|
31
31
|
range(e, t) {
|
|
32
|
-
return new m0(t,
|
|
32
|
+
return new m0(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, u = t && t.loc;
|
|
42
|
+
if (u && u.start <= u.end) {
|
|
43
|
+
var h = u.lexer.input;
|
|
44
|
+
n = u.start, s = u.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;
|
|
@@ -78,7 +78,7 @@ var vr = function r(e) {
|
|
|
78
78
|
}, ka = function(e) {
|
|
79
79
|
var t = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);
|
|
80
80
|
return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
|
|
81
|
-
},
|
|
81
|
+
}, V = {
|
|
82
82
|
deflt: fa,
|
|
83
83
|
escape: ya,
|
|
84
84
|
hyphenate: va,
|
|
@@ -238,7 +238,7 @@ class dt {
|
|
|
238
238
|
*/
|
|
239
239
|
isTrusted(e) {
|
|
240
240
|
if (e.url && !e.protocol) {
|
|
241
|
-
var t =
|
|
241
|
+
var t = V.protocolFromUrl(e.url);
|
|
242
242
|
if (t == null)
|
|
243
243
|
return !1;
|
|
244
244
|
e.protocol = t;
|
|
@@ -297,7 +297,7 @@ class O0 {
|
|
|
297
297
|
return this.size >= 2;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
var ft = 0, Te = 1, ee = 2, B0 = 3, le = 4, f0 = 5, te = 6, n0 = 7, y0 = [new O0(ft, 0, !1), new O0(Te, 0, !0), new O0(ee, 1, !1), new O0(B0, 1, !0), new O0(le, 2, !1), new O0(f0, 2, !0), new O0(te, 3, !1), new O0(n0, 3, !0)], Ma = [le, f0, le, f0, te, n0, te, n0], za = [f0, f0, f0, f0, n0, n0, n0, n0], Aa = [ee, B0, le, f0, te, n0, te, n0], Ta = [B0, B0, f0, f0, n0, n0, n0, n0], Ba = [Te, Te, B0, B0, f0, f0, n0, n0], Da = [ft, Te, ee, B0, ee, B0, ee, B0],
|
|
300
|
+
var ft = 0, Te = 1, ee = 2, B0 = 3, le = 4, f0 = 5, te = 6, n0 = 7, y0 = [new O0(ft, 0, !1), new O0(Te, 0, !0), new O0(ee, 1, !1), new O0(B0, 1, !0), new O0(le, 2, !1), new O0(f0, 2, !0), new O0(te, 3, !1), new O0(n0, 3, !0)], Ma = [le, f0, le, f0, te, n0, te, n0], za = [f0, f0, f0, f0, n0, n0, n0, n0], Aa = [ee, B0, le, f0, te, n0, te, n0], Ta = [B0, B0, f0, f0, n0, n0, n0, n0], Ba = [Te, Te, B0, B0, f0, f0, n0, n0], Da = [ft, Te, ee, B0, ee, B0, ee, B0], R = {
|
|
301
301
|
DISPLAY: y0[ft],
|
|
302
302
|
TEXT: y0[ee],
|
|
303
303
|
SCRIPT: y0[le],
|
|
@@ -403,7 +403,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
403
403
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
404
404
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
405
405
|
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
|
|
406
|
-
},
|
|
406
|
+
}, Ra = function(e, t) {
|
|
407
407
|
return "M983 " + (10 + e + t) + `
|
|
408
408
|
l` + e / 3.13 + " -" + e + `
|
|
409
409
|
c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
|
|
@@ -414,7 +414,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
414
414
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
415
415
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
416
416
|
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
|
|
417
|
-
},
|
|
417
|
+
}, Ea = function(e, t) {
|
|
418
418
|
return "M424," + (2398 + e + t) + `
|
|
419
419
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
420
420
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
@@ -456,10 +456,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
456
456
|
n = qa(t, _0);
|
|
457
457
|
break;
|
|
458
458
|
case "sqrtSize2":
|
|
459
|
-
n =
|
|
459
|
+
n = Ra(t, _0);
|
|
460
460
|
break;
|
|
461
461
|
case "sqrtSize3":
|
|
462
|
-
n =
|
|
462
|
+
n = Ea(t, _0);
|
|
463
463
|
break;
|
|
464
464
|
case "sqrtSize4":
|
|
465
465
|
n = Ia(t, _0);
|
|
@@ -797,7 +797,7 @@ l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
797
797
|
throw new Error("Unknown stretchy delimiter.");
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
|
-
class
|
|
800
|
+
class oe {
|
|
801
801
|
// Never used; needed for satisfying interface.
|
|
802
802
|
constructor(e) {
|
|
803
803
|
this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
|
|
@@ -3056,7 +3056,7 @@ var x0 = {
|
|
|
3056
3056
|
ю: "m",
|
|
3057
3057
|
я: "r"
|
|
3058
3058
|
};
|
|
3059
|
-
function
|
|
3059
|
+
function Va(r, e) {
|
|
3060
3060
|
x0[r] = e;
|
|
3061
3061
|
}
|
|
3062
3062
|
function pt(r, e, t) {
|
|
@@ -3073,7 +3073,7 @@ function pt(r, e, t) {
|
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
3075
|
var Ue = {};
|
|
3076
|
-
function
|
|
3076
|
+
function Ga(r) {
|
|
3077
3077
|
var e;
|
|
3078
3078
|
if (r >= 5 ? e = 0 : r >= 3 ? e = 1 : e = 2, !Ue[e]) {
|
|
3079
3079
|
var t = Ue[e] = {
|
|
@@ -3292,7 +3292,7 @@ class T0 {
|
|
|
3292
3292
|
* Return the font metrics for this size.
|
|
3293
3293
|
*/
|
|
3294
3294
|
fontMetrics() {
|
|
3295
|
-
return this._fontMetrics || (this._fontMetrics =
|
|
3295
|
+
return this._fontMetrics || (this._fontMetrics = Ga(this.size)), this._fontMetrics;
|
|
3296
3296
|
}
|
|
3297
3297
|
/**
|
|
3298
3298
|
* Gets the CSS color of the current options object
|
|
@@ -3375,20 +3375,20 @@ var it = {
|
|
|
3375
3375
|
return t;
|
|
3376
3376
|
}, Xa = /[\s"'>/=\x00-\x1f]/, wr = function(e) {
|
|
3377
3377
|
var t = "<" + e;
|
|
3378
|
-
this.classes.length && (t += ' class="' +
|
|
3378
|
+
this.classes.length && (t += ' class="' + V.escape(P0(this.classes)) + '"');
|
|
3379
3379
|
var a = "";
|
|
3380
3380
|
for (var n in this.style)
|
|
3381
|
-
this.style.hasOwnProperty(n) && (a +=
|
|
3382
|
-
a && (t += ' style="' +
|
|
3381
|
+
this.style.hasOwnProperty(n) && (a += V.hyphenate(n) + ":" + this.style[n] + ";");
|
|
3382
|
+
a && (t += ' style="' + V.escape(a) + '"');
|
|
3383
3383
|
for (var s in this.attributes)
|
|
3384
3384
|
if (this.attributes.hasOwnProperty(s)) {
|
|
3385
3385
|
if (Xa.test(s))
|
|
3386
3386
|
throw new M("Invalid attribute name '" + s + "'");
|
|
3387
|
-
t += " " + s + '="' +
|
|
3387
|
+
t += " " + s + '="' + V.escape(this.attributes[s]) + '"';
|
|
3388
3388
|
}
|
|
3389
3389
|
t += ">";
|
|
3390
|
-
for (var
|
|
3391
|
-
t += this.children[
|
|
3390
|
+
for (var u = 0; u < this.children.length; u++)
|
|
3391
|
+
t += this.children[u].toMarkup();
|
|
3392
3392
|
return t += "</" + e + ">", t;
|
|
3393
3393
|
};
|
|
3394
3394
|
class he {
|
|
@@ -3445,10 +3445,10 @@ class $a {
|
|
|
3445
3445
|
return e;
|
|
3446
3446
|
}
|
|
3447
3447
|
toMarkup() {
|
|
3448
|
-
var e = '<img src="' +
|
|
3448
|
+
var e = '<img src="' + V.escape(this.src) + '"' + (' alt="' + V.escape(this.alt) + '"'), t = "";
|
|
3449
3449
|
for (var a in this.style)
|
|
3450
|
-
this.style.hasOwnProperty(a) && (t +=
|
|
3451
|
-
return t && (e += ' style="' +
|
|
3450
|
+
this.style.hasOwnProperty(a) && (t += V.hyphenate(a) + ":" + this.style[a] + ";");
|
|
3451
|
+
return t && (e += ' style="' + V.escape(t) + '"'), e += "'/>", e;
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
3454
|
var Wa = {
|
|
@@ -3459,8 +3459,8 @@ var Wa = {
|
|
|
3459
3459
|
ì: "ı̀"
|
|
3460
3460
|
};
|
|
3461
3461
|
class p0 {
|
|
3462
|
-
constructor(e, t, a, n, s,
|
|
3463
|
-
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 =
|
|
3462
|
+
constructor(e, t, a, n, s, u, h, c) {
|
|
3463
|
+
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 = u || 0, this.classes = h || [], this.style = c || {}, this.maxFontSize = 0;
|
|
3464
3464
|
var p = Ca(this.text.charCodeAt(0));
|
|
3465
3465
|
p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Wa[this.text]);
|
|
3466
3466
|
}
|
|
@@ -3483,13 +3483,13 @@ class p0 {
|
|
|
3483
3483
|
*/
|
|
3484
3484
|
toMarkup() {
|
|
3485
3485
|
var e = !1, t = "<span";
|
|
3486
|
-
this.classes.length && (e = !0, t += ' class="', t +=
|
|
3486
|
+
this.classes.length && (e = !0, t += ' class="', t += V.escape(P0(this.classes)), t += '"');
|
|
3487
3487
|
var a = "";
|
|
3488
3488
|
this.italic > 0 && (a += "margin-right:" + this.italic + "em;");
|
|
3489
3489
|
for (var n in this.style)
|
|
3490
|
-
this.style.hasOwnProperty(n) && (a +=
|
|
3491
|
-
a && (e = !0, t += ' style="' +
|
|
3492
|
-
var s =
|
|
3490
|
+
this.style.hasOwnProperty(n) && (a += V.hyphenate(n) + ":" + this.style[n] + ";");
|
|
3491
|
+
a && (e = !0, t += ' style="' + V.escape(a) + '"');
|
|
3492
|
+
var s = V.escape(this.text);
|
|
3493
3493
|
return e ? (t += ">", t += s, t += "</span>", t) : s;
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
@@ -3508,14 +3508,14 @@ class C0 {
|
|
|
3508
3508
|
toMarkup() {
|
|
3509
3509
|
var e = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
3510
3510
|
for (var t in this.attributes)
|
|
3511
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' +
|
|
3511
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + V.escape(this.attributes[t]) + '"');
|
|
3512
3512
|
e += ">";
|
|
3513
3513
|
for (var a = 0; a < this.children.length; a++)
|
|
3514
3514
|
e += this.children[a].toMarkup();
|
|
3515
3515
|
return e += "</svg>", e;
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
|
-
class
|
|
3518
|
+
class V0 {
|
|
3519
3519
|
constructor(e, t) {
|
|
3520
3520
|
this.pathName = void 0, this.alternate = void 0, this.pathName = e, this.alternate = t;
|
|
3521
3521
|
}
|
|
@@ -3524,7 +3524,7 @@ class G0 {
|
|
|
3524
3524
|
return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", Ft[this.pathName]), t;
|
|
3525
3525
|
}
|
|
3526
3526
|
toMarkup() {
|
|
3527
|
-
return this.alternate ? '<path d="' +
|
|
3527
|
+
return this.alternate ? '<path d="' + V.escape(this.alternate) + '"/>' : '<path d="' + V.escape(Ft[this.pathName]) + '"/>';
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
3530
|
class st {
|
|
@@ -3540,7 +3540,7 @@ class st {
|
|
|
3540
3540
|
toMarkup() {
|
|
3541
3541
|
var e = "<line";
|
|
3542
3542
|
for (var t in this.attributes)
|
|
3543
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' +
|
|
3543
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + V.escape(this.attributes[t]) + '"');
|
|
3544
3544
|
return e += "/>", e;
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
@@ -3578,102 +3578,102 @@ function i(r, e, t, a, n, s) {
|
|
|
3578
3578
|
replace: a
|
|
3579
3579
|
}, s && a && ($[r][a] = $[r][n]);
|
|
3580
3580
|
}
|
|
3581
|
-
var l = "math", k = "text",
|
|
3582
|
-
i(l,
|
|
3583
|
-
i(l,
|
|
3584
|
-
i(l,
|
|
3585
|
-
i(l,
|
|
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(k,
|
|
3610
|
-
i(l,
|
|
3611
|
-
i(k,
|
|
3612
|
-
i(l,
|
|
3613
|
-
i(l,
|
|
3614
|
-
i(l,
|
|
3615
|
-
i(l,
|
|
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(k,
|
|
3630
|
-
i(l,
|
|
3631
|
-
i(k,
|
|
3632
|
-
i(l,
|
|
3633
|
-
i(k,
|
|
3634
|
-
i(k,
|
|
3635
|
-
i(l,
|
|
3636
|
-
i(k,
|
|
3637
|
-
i(k,
|
|
3638
|
-
i(l,
|
|
3639
|
-
i(l,
|
|
3640
|
-
i(l,
|
|
3641
|
-
i(l,
|
|
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,
|
|
3581
|
+
var l = "math", k = "text", o = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", q = "mathord", _ = "op-token", c0 = "open", qe = "punct", f = "rel", R0 = "spacing", v = "textord";
|
|
3582
|
+
i(l, o, f, "≡", "\\equiv", !0);
|
|
3583
|
+
i(l, o, f, "≺", "\\prec", !0);
|
|
3584
|
+
i(l, o, f, "≻", "\\succ", !0);
|
|
3585
|
+
i(l, o, f, "∼", "\\sim", !0);
|
|
3586
|
+
i(l, o, f, "⊥", "\\perp");
|
|
3587
|
+
i(l, o, f, "⪯", "\\preceq", !0);
|
|
3588
|
+
i(l, o, f, "⪰", "\\succeq", !0);
|
|
3589
|
+
i(l, o, f, "≃", "\\simeq", !0);
|
|
3590
|
+
i(l, o, f, "∣", "\\mid", !0);
|
|
3591
|
+
i(l, o, f, "≪", "\\ll", !0);
|
|
3592
|
+
i(l, o, f, "≫", "\\gg", !0);
|
|
3593
|
+
i(l, o, f, "≍", "\\asymp", !0);
|
|
3594
|
+
i(l, o, f, "∥", "\\parallel");
|
|
3595
|
+
i(l, o, f, "⋈", "\\bowtie", !0);
|
|
3596
|
+
i(l, o, f, "⌣", "\\smile", !0);
|
|
3597
|
+
i(l, o, f, "⊑", "\\sqsubseteq", !0);
|
|
3598
|
+
i(l, o, f, "⊒", "\\sqsupseteq", !0);
|
|
3599
|
+
i(l, o, f, "≐", "\\doteq", !0);
|
|
3600
|
+
i(l, o, f, "⌢", "\\frown", !0);
|
|
3601
|
+
i(l, o, f, "∋", "\\ni", !0);
|
|
3602
|
+
i(l, o, f, "∝", "\\propto", !0);
|
|
3603
|
+
i(l, o, f, "⊢", "\\vdash", !0);
|
|
3604
|
+
i(l, o, f, "⊣", "\\dashv", !0);
|
|
3605
|
+
i(l, o, f, "∋", "\\owns");
|
|
3606
|
+
i(l, o, qe, ".", "\\ldotp");
|
|
3607
|
+
i(l, o, qe, "⋅", "\\cdotp");
|
|
3608
|
+
i(l, o, v, "#", "\\#");
|
|
3609
|
+
i(k, o, v, "#", "\\#");
|
|
3610
|
+
i(l, o, v, "&", "\\&");
|
|
3611
|
+
i(k, o, v, "&", "\\&");
|
|
3612
|
+
i(l, o, v, "ℵ", "\\aleph", !0);
|
|
3613
|
+
i(l, o, v, "∀", "\\forall", !0);
|
|
3614
|
+
i(l, o, v, "ℏ", "\\hbar", !0);
|
|
3615
|
+
i(l, o, v, "∃", "\\exists", !0);
|
|
3616
|
+
i(l, o, v, "∇", "\\nabla", !0);
|
|
3617
|
+
i(l, o, v, "♭", "\\flat", !0);
|
|
3618
|
+
i(l, o, v, "ℓ", "\\ell", !0);
|
|
3619
|
+
i(l, o, v, "♮", "\\natural", !0);
|
|
3620
|
+
i(l, o, v, "♣", "\\clubsuit", !0);
|
|
3621
|
+
i(l, o, v, "℘", "\\wp", !0);
|
|
3622
|
+
i(l, o, v, "♯", "\\sharp", !0);
|
|
3623
|
+
i(l, o, v, "♢", "\\diamondsuit", !0);
|
|
3624
|
+
i(l, o, v, "ℜ", "\\Re", !0);
|
|
3625
|
+
i(l, o, v, "♡", "\\heartsuit", !0);
|
|
3626
|
+
i(l, o, v, "ℑ", "\\Im", !0);
|
|
3627
|
+
i(l, o, v, "♠", "\\spadesuit", !0);
|
|
3628
|
+
i(l, o, v, "§", "\\S", !0);
|
|
3629
|
+
i(k, o, v, "§", "\\S");
|
|
3630
|
+
i(l, o, v, "¶", "\\P", !0);
|
|
3631
|
+
i(k, o, v, "¶", "\\P");
|
|
3632
|
+
i(l, o, v, "†", "\\dag");
|
|
3633
|
+
i(k, o, v, "†", "\\dag");
|
|
3634
|
+
i(k, o, v, "†", "\\textdagger");
|
|
3635
|
+
i(l, o, v, "‡", "\\ddag");
|
|
3636
|
+
i(k, o, v, "‡", "\\ddag");
|
|
3637
|
+
i(k, o, v, "‡", "\\textdaggerdbl");
|
|
3638
|
+
i(l, o, i0, "⎱", "\\rmoustache", !0);
|
|
3639
|
+
i(l, o, c0, "⎰", "\\lmoustache", !0);
|
|
3640
|
+
i(l, o, i0, "⟯", "\\rgroup", !0);
|
|
3641
|
+
i(l, o, c0, "⟮", "\\lgroup", !0);
|
|
3642
|
+
i(l, o, D, "∓", "\\mp", !0);
|
|
3643
|
+
i(l, o, D, "⊖", "\\ominus", !0);
|
|
3644
|
+
i(l, o, D, "⊎", "\\uplus", !0);
|
|
3645
|
+
i(l, o, D, "⊓", "\\sqcap", !0);
|
|
3646
|
+
i(l, o, D, "∗", "\\ast");
|
|
3647
|
+
i(l, o, D, "⊔", "\\sqcup", !0);
|
|
3648
|
+
i(l, o, D, "◯", "\\bigcirc", !0);
|
|
3649
|
+
i(l, o, D, "∙", "\\bullet", !0);
|
|
3650
|
+
i(l, o, D, "‡", "\\ddagger");
|
|
3651
|
+
i(l, o, D, "≀", "\\wr", !0);
|
|
3652
|
+
i(l, o, D, "⨿", "\\amalg");
|
|
3653
|
+
i(l, o, D, "&", "\\And");
|
|
3654
|
+
i(l, o, f, "⟵", "\\longleftarrow", !0);
|
|
3655
|
+
i(l, o, f, "⇐", "\\Leftarrow", !0);
|
|
3656
|
+
i(l, o, f, "⟸", "\\Longleftarrow", !0);
|
|
3657
|
+
i(l, o, f, "⟶", "\\longrightarrow", !0);
|
|
3658
|
+
i(l, o, f, "⇒", "\\Rightarrow", !0);
|
|
3659
|
+
i(l, o, f, "⟹", "\\Longrightarrow", !0);
|
|
3660
|
+
i(l, o, f, "↔", "\\leftrightarrow", !0);
|
|
3661
|
+
i(l, o, f, "⟷", "\\longleftrightarrow", !0);
|
|
3662
|
+
i(l, o, f, "⇔", "\\Leftrightarrow", !0);
|
|
3663
|
+
i(l, o, f, "⟺", "\\Longleftrightarrow", !0);
|
|
3664
|
+
i(l, o, f, "↦", "\\mapsto", !0);
|
|
3665
|
+
i(l, o, f, "⟼", "\\longmapsto", !0);
|
|
3666
|
+
i(l, o, f, "↗", "\\nearrow", !0);
|
|
3667
|
+
i(l, o, f, "↩", "\\hookleftarrow", !0);
|
|
3668
|
+
i(l, o, f, "↪", "\\hookrightarrow", !0);
|
|
3669
|
+
i(l, o, f, "↘", "\\searrow", !0);
|
|
3670
|
+
i(l, o, f, "↼", "\\leftharpoonup", !0);
|
|
3671
|
+
i(l, o, f, "⇀", "\\rightharpoonup", !0);
|
|
3672
|
+
i(l, o, f, "↙", "\\swarrow", !0);
|
|
3673
|
+
i(l, o, f, "↽", "\\leftharpoondown", !0);
|
|
3674
|
+
i(l, o, f, "⇁", "\\rightharpoondown", !0);
|
|
3675
|
+
i(l, o, f, "↖", "\\nwarrow", !0);
|
|
3676
|
+
i(l, o, f, "⇌", "\\rightleftharpoons", !0);
|
|
3677
3677
|
i(l, d, f, "≮", "\\nless", !0);
|
|
3678
3678
|
i(l, d, f, "", "\\@nleqslant");
|
|
3679
3679
|
i(l, d, f, "", "\\@nleqq");
|
|
@@ -3753,7 +3753,7 @@ i(l, d, v, "★", "\\bigstar");
|
|
|
3753
3753
|
i(l, d, v, "∢", "\\sphericalangle", !0);
|
|
3754
3754
|
i(l, d, v, "∁", "\\complement", !0);
|
|
3755
3755
|
i(l, d, v, "ð", "\\eth", !0);
|
|
3756
|
-
i(k,
|
|
3756
|
+
i(k, o, v, "ð", "ð");
|
|
3757
3757
|
i(l, d, v, "╱", "\\diagup");
|
|
3758
3758
|
i(l, d, v, "╲", "\\diagdown");
|
|
3759
3759
|
i(l, d, v, "□", "\\square");
|
|
@@ -3843,7 +3843,7 @@ i(l, d, f, "⋙", "\\gggtr");
|
|
|
3843
3843
|
i(l, d, D, "⊲", "\\lhd");
|
|
3844
3844
|
i(l, d, D, "⊳", "\\rhd");
|
|
3845
3845
|
i(l, d, f, "≂", "\\eqsim", !0);
|
|
3846
|
-
i(l,
|
|
3846
|
+
i(l, o, f, "⋈", "\\Join");
|
|
3847
3847
|
i(l, d, f, "≑", "\\Doteq", !0);
|
|
3848
3848
|
i(l, d, D, "∔", "\\dotplus", !0);
|
|
3849
3849
|
i(l, d, D, "∖", "\\smallsetminus");
|
|
@@ -3881,8 +3881,8 @@ i(l, d, f, "↰", "\\Lsh", !0);
|
|
|
3881
3881
|
i(l, d, f, "⇈", "\\upuparrows", !0);
|
|
3882
3882
|
i(l, d, f, "↿", "\\upharpoonleft", !0);
|
|
3883
3883
|
i(l, d, f, "⇃", "\\downharpoonleft", !0);
|
|
3884
|
-
i(l,
|
|
3885
|
-
i(l,
|
|
3884
|
+
i(l, o, f, "⊶", "\\origof", !0);
|
|
3885
|
+
i(l, o, f, "⊷", "\\imageof", !0);
|
|
3886
3886
|
i(l, d, f, "⊸", "\\multimap", !0);
|
|
3887
3887
|
i(l, d, f, "↭", "\\leftrightsquigarrow", !0);
|
|
3888
3888
|
i(l, d, f, "⇉", "\\rightrightarrows", !0);
|
|
@@ -3900,297 +3900,297 @@ i(l, d, f, "⇝", "\\rightsquigarrow", !0);
|
|
|
3900
3900
|
i(l, d, f, "⇝", "\\leadsto");
|
|
3901
3901
|
i(l, d, f, "⇛", "\\Rrightarrow", !0);
|
|
3902
3902
|
i(l, d, f, "↾", "\\restriction");
|
|
3903
|
-
i(l,
|
|
3904
|
-
i(l,
|
|
3905
|
-
i(k,
|
|
3906
|
-
i(k,
|
|
3907
|
-
i(l,
|
|
3908
|
-
i(k,
|
|
3909
|
-
i(l,
|
|
3910
|
-
i(k,
|
|
3911
|
-
i(k,
|
|
3912
|
-
i(l,
|
|
3913
|
-
i(l,
|
|
3914
|
-
i(l,
|
|
3915
|
-
i(l,
|
|
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,
|
|
3903
|
+
i(l, o, v, "‘", "`");
|
|
3904
|
+
i(l, o, v, "$", "\\$");
|
|
3905
|
+
i(k, o, v, "$", "\\$");
|
|
3906
|
+
i(k, o, v, "$", "\\textdollar");
|
|
3907
|
+
i(l, o, v, "%", "\\%");
|
|
3908
|
+
i(k, o, v, "%", "\\%");
|
|
3909
|
+
i(l, o, v, "_", "\\_");
|
|
3910
|
+
i(k, o, v, "_", "\\_");
|
|
3911
|
+
i(k, o, v, "_", "\\textunderscore");
|
|
3912
|
+
i(l, o, v, "∠", "\\angle", !0);
|
|
3913
|
+
i(l, o, v, "∞", "\\infty", !0);
|
|
3914
|
+
i(l, o, v, "′", "\\prime");
|
|
3915
|
+
i(l, o, v, "△", "\\triangle");
|
|
3916
|
+
i(l, o, v, "Γ", "\\Gamma", !0);
|
|
3917
|
+
i(l, o, v, "Δ", "\\Delta", !0);
|
|
3918
|
+
i(l, o, v, "Θ", "\\Theta", !0);
|
|
3919
|
+
i(l, o, v, "Λ", "\\Lambda", !0);
|
|
3920
|
+
i(l, o, v, "Ξ", "\\Xi", !0);
|
|
3921
|
+
i(l, o, v, "Π", "\\Pi", !0);
|
|
3922
|
+
i(l, o, v, "Σ", "\\Sigma", !0);
|
|
3923
|
+
i(l, o, v, "Υ", "\\Upsilon", !0);
|
|
3924
|
+
i(l, o, v, "Φ", "\\Phi", !0);
|
|
3925
|
+
i(l, o, v, "Ψ", "\\Psi", !0);
|
|
3926
|
+
i(l, o, v, "Ω", "\\Omega", !0);
|
|
3927
|
+
i(l, o, v, "A", "Α");
|
|
3928
|
+
i(l, o, v, "B", "Β");
|
|
3929
|
+
i(l, o, v, "E", "Ε");
|
|
3930
|
+
i(l, o, v, "Z", "Ζ");
|
|
3931
|
+
i(l, o, v, "H", "Η");
|
|
3932
|
+
i(l, o, v, "I", "Ι");
|
|
3933
|
+
i(l, o, v, "K", "Κ");
|
|
3934
|
+
i(l, o, v, "M", "Μ");
|
|
3935
|
+
i(l, o, v, "N", "Ν");
|
|
3936
|
+
i(l, o, v, "O", "Ο");
|
|
3937
|
+
i(l, o, v, "P", "Ρ");
|
|
3938
|
+
i(l, o, v, "T", "Τ");
|
|
3939
|
+
i(l, o, v, "X", "Χ");
|
|
3940
|
+
i(l, o, v, "¬", "\\neg", !0);
|
|
3941
|
+
i(l, o, v, "¬", "\\lnot");
|
|
3942
|
+
i(l, o, v, "⊤", "\\top");
|
|
3943
|
+
i(l, o, v, "⊥", "\\bot");
|
|
3944
|
+
i(l, o, v, "∅", "\\emptyset");
|
|
3945
3945
|
i(l, d, v, "∅", "\\varnothing");
|
|
3946
|
-
i(l,
|
|
3947
|
-
i(l,
|
|
3948
|
-
i(l,
|
|
3949
|
-
i(l,
|
|
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,
|
|
3946
|
+
i(l, o, q, "α", "\\alpha", !0);
|
|
3947
|
+
i(l, o, q, "β", "\\beta", !0);
|
|
3948
|
+
i(l, o, q, "γ", "\\gamma", !0);
|
|
3949
|
+
i(l, o, q, "δ", "\\delta", !0);
|
|
3950
|
+
i(l, o, q, "ϵ", "\\epsilon", !0);
|
|
3951
|
+
i(l, o, q, "ζ", "\\zeta", !0);
|
|
3952
|
+
i(l, o, q, "η", "\\eta", !0);
|
|
3953
|
+
i(l, o, q, "θ", "\\theta", !0);
|
|
3954
|
+
i(l, o, q, "ι", "\\iota", !0);
|
|
3955
|
+
i(l, o, q, "κ", "\\kappa", !0);
|
|
3956
|
+
i(l, o, q, "λ", "\\lambda", !0);
|
|
3957
|
+
i(l, o, q, "μ", "\\mu", !0);
|
|
3958
|
+
i(l, o, q, "ν", "\\nu", !0);
|
|
3959
|
+
i(l, o, q, "ξ", "\\xi", !0);
|
|
3960
|
+
i(l, o, q, "ο", "\\omicron", !0);
|
|
3961
|
+
i(l, o, q, "π", "\\pi", !0);
|
|
3962
|
+
i(l, o, q, "ρ", "\\rho", !0);
|
|
3963
|
+
i(l, o, q, "σ", "\\sigma", !0);
|
|
3964
|
+
i(l, o, q, "τ", "\\tau", !0);
|
|
3965
|
+
i(l, o, q, "υ", "\\upsilon", !0);
|
|
3966
|
+
i(l, o, q, "ϕ", "\\phi", !0);
|
|
3967
|
+
i(l, o, q, "χ", "\\chi", !0);
|
|
3968
|
+
i(l, o, q, "ψ", "\\psi", !0);
|
|
3969
|
+
i(l, o, q, "ω", "\\omega", !0);
|
|
3970
|
+
i(l, o, q, "ε", "\\varepsilon", !0);
|
|
3971
|
+
i(l, o, q, "ϑ", "\\vartheta", !0);
|
|
3972
|
+
i(l, o, q, "ϖ", "\\varpi", !0);
|
|
3973
|
+
i(l, o, q, "ϱ", "\\varrho", !0);
|
|
3974
|
+
i(l, o, q, "ς", "\\varsigma", !0);
|
|
3975
|
+
i(l, o, q, "φ", "\\varphi", !0);
|
|
3976
|
+
i(l, o, D, "∗", "*", !0);
|
|
3977
|
+
i(l, o, D, "+", "+");
|
|
3978
|
+
i(l, o, D, "−", "-", !0);
|
|
3979
|
+
i(l, o, D, "⋅", "\\cdot", !0);
|
|
3980
|
+
i(l, o, D, "∘", "\\circ", !0);
|
|
3981
|
+
i(l, o, D, "÷", "\\div", !0);
|
|
3982
|
+
i(l, o, D, "±", "\\pm", !0);
|
|
3983
|
+
i(l, o, D, "×", "\\times", !0);
|
|
3984
|
+
i(l, o, D, "∩", "\\cap", !0);
|
|
3985
|
+
i(l, o, D, "∪", "\\cup", !0);
|
|
3986
|
+
i(l, o, D, "∖", "\\setminus", !0);
|
|
3987
|
+
i(l, o, D, "∧", "\\land");
|
|
3988
|
+
i(l, o, D, "∨", "\\lor");
|
|
3989
|
+
i(l, o, D, "∧", "\\wedge", !0);
|
|
3990
|
+
i(l, o, D, "∨", "\\vee", !0);
|
|
3991
|
+
i(l, o, v, "√", "\\surd");
|
|
3992
|
+
i(l, o, c0, "⟨", "\\langle", !0);
|
|
3993
|
+
i(l, o, c0, "∣", "\\lvert");
|
|
3994
|
+
i(l, o, c0, "∥", "\\lVert");
|
|
3995
|
+
i(l, o, i0, "?", "?");
|
|
3996
|
+
i(l, o, i0, "!", "!");
|
|
3997
|
+
i(l, o, i0, "⟩", "\\rangle", !0);
|
|
3998
|
+
i(l, o, i0, "∣", "\\rvert");
|
|
3999
|
+
i(l, o, i0, "∥", "\\rVert");
|
|
4000
|
+
i(l, o, f, "=", "=");
|
|
4001
|
+
i(l, o, f, ":", ":");
|
|
4002
|
+
i(l, o, f, "≈", "\\approx", !0);
|
|
4003
|
+
i(l, o, f, "≅", "\\cong", !0);
|
|
4004
|
+
i(l, o, f, "≥", "\\ge");
|
|
4005
|
+
i(l, o, f, "≥", "\\geq", !0);
|
|
4006
|
+
i(l, o, f, "←", "\\gets");
|
|
4007
|
+
i(l, o, f, ">", "\\gt", !0);
|
|
4008
|
+
i(l, o, f, "∈", "\\in", !0);
|
|
4009
|
+
i(l, o, f, "", "\\@not");
|
|
4010
|
+
i(l, o, f, "⊂", "\\subset", !0);
|
|
4011
|
+
i(l, o, f, "⊃", "\\supset", !0);
|
|
4012
|
+
i(l, o, f, "⊆", "\\subseteq", !0);
|
|
4013
|
+
i(l, o, f, "⊇", "\\supseteq", !0);
|
|
4014
4014
|
i(l, d, f, "⊈", "\\nsubseteq", !0);
|
|
4015
4015
|
i(l, d, f, "⊉", "\\nsupseteq", !0);
|
|
4016
|
-
i(l,
|
|
4017
|
-
i(l,
|
|
4018
|
-
i(l,
|
|
4019
|
-
i(l,
|
|
4020
|
-
i(l,
|
|
4021
|
-
i(l,
|
|
4022
|
-
i(l,
|
|
4016
|
+
i(l, o, f, "⊨", "\\models");
|
|
4017
|
+
i(l, o, f, "←", "\\leftarrow", !0);
|
|
4018
|
+
i(l, o, f, "≤", "\\le");
|
|
4019
|
+
i(l, o, f, "≤", "\\leq", !0);
|
|
4020
|
+
i(l, o, f, "<", "\\lt", !0);
|
|
4021
|
+
i(l, o, f, "→", "\\rightarrow", !0);
|
|
4022
|
+
i(l, o, f, "→", "\\to");
|
|
4023
4023
|
i(l, d, f, "≱", "\\ngeq", !0);
|
|
4024
4024
|
i(l, d, f, "≰", "\\nleq", !0);
|
|
4025
|
-
i(l,
|
|
4026
|
-
i(l,
|
|
4027
|
-
i(l,
|
|
4028
|
-
i(k,
|
|
4029
|
-
i(k,
|
|
4030
|
-
i(k,
|
|
4031
|
-
i(k,
|
|
4032
|
-
i(l,
|
|
4033
|
-
i(l,
|
|
4034
|
-
i(l,
|
|
4035
|
-
i(l,
|
|
4025
|
+
i(l, o, R0, " ", "\\ ");
|
|
4026
|
+
i(l, o, R0, " ", "\\space");
|
|
4027
|
+
i(l, o, R0, " ", "\\nobreakspace");
|
|
4028
|
+
i(k, o, R0, " ", "\\ ");
|
|
4029
|
+
i(k, o, R0, " ", " ");
|
|
4030
|
+
i(k, o, R0, " ", "\\space");
|
|
4031
|
+
i(k, o, R0, " ", "\\nobreakspace");
|
|
4032
|
+
i(l, o, R0, null, "\\nobreak");
|
|
4033
|
+
i(l, o, R0, null, "\\allowbreak");
|
|
4034
|
+
i(l, o, qe, ",", ",");
|
|
4035
|
+
i(l, o, qe, ";", ";");
|
|
4036
4036
|
i(l, d, D, "⊼", "\\barwedge", !0);
|
|
4037
4037
|
i(l, d, D, "⊻", "\\veebar", !0);
|
|
4038
|
-
i(l,
|
|
4039
|
-
i(l,
|
|
4040
|
-
i(l,
|
|
4041
|
-
i(l,
|
|
4042
|
-
i(l,
|
|
4038
|
+
i(l, o, D, "⊙", "\\odot", !0);
|
|
4039
|
+
i(l, o, D, "⊕", "\\oplus", !0);
|
|
4040
|
+
i(l, o, D, "⊗", "\\otimes", !0);
|
|
4041
|
+
i(l, o, v, "∂", "\\partial", !0);
|
|
4042
|
+
i(l, o, D, "⊘", "\\oslash", !0);
|
|
4043
4043
|
i(l, d, D, "⊚", "\\circledcirc", !0);
|
|
4044
4044
|
i(l, d, D, "⊡", "\\boxdot", !0);
|
|
4045
|
-
i(l,
|
|
4046
|
-
i(l,
|
|
4047
|
-
i(l,
|
|
4048
|
-
i(l,
|
|
4049
|
-
i(l,
|
|
4050
|
-
i(l,
|
|
4051
|
-
i(l,
|
|
4052
|
-
i(l,
|
|
4053
|
-
i(k,
|
|
4054
|
-
i(k,
|
|
4055
|
-
i(l,
|
|
4056
|
-
i(k,
|
|
4057
|
-
i(k,
|
|
4058
|
-
i(l,
|
|
4059
|
-
i(l,
|
|
4060
|
-
i(l,
|
|
4061
|
-
i(k,
|
|
4062
|
-
i(l,
|
|
4063
|
-
i(k,
|
|
4064
|
-
i(l,
|
|
4065
|
-
i(l,
|
|
4066
|
-
i(k,
|
|
4067
|
-
i(k,
|
|
4068
|
-
i(l,
|
|
4069
|
-
i(l,
|
|
4070
|
-
i(l,
|
|
4071
|
-
i(l,
|
|
4072
|
-
i(l,
|
|
4073
|
-
i(l,
|
|
4074
|
-
i(l,
|
|
4075
|
-
i(k,
|
|
4076
|
-
i(l,
|
|
4077
|
-
i(l,
|
|
4078
|
-
i(k,
|
|
4079
|
-
i(k,
|
|
4080
|
-
i(k,
|
|
4081
|
-
i(k,
|
|
4082
|
-
i(l,
|
|
4083
|
-
i(l,
|
|
4084
|
-
i(l,
|
|
4085
|
-
i(l,
|
|
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(k,
|
|
4109
|
-
i(l,
|
|
4110
|
-
i(k,
|
|
4111
|
-
i(l,
|
|
4112
|
-
i(l,
|
|
4113
|
-
i(l,
|
|
4114
|
-
i(l,
|
|
4115
|
-
i(k,
|
|
4116
|
-
i(l,
|
|
4117
|
-
i(l,
|
|
4118
|
-
i(l,
|
|
4119
|
-
i(l,
|
|
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(k,
|
|
4132
|
-
i(k,
|
|
4133
|
-
i(k,
|
|
4134
|
-
i(k,
|
|
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,
|
|
4045
|
+
i(l, o, D, "△", "\\bigtriangleup");
|
|
4046
|
+
i(l, o, D, "▽", "\\bigtriangledown");
|
|
4047
|
+
i(l, o, D, "†", "\\dagger");
|
|
4048
|
+
i(l, o, D, "⋄", "\\diamond");
|
|
4049
|
+
i(l, o, D, "⋆", "\\star");
|
|
4050
|
+
i(l, o, D, "◃", "\\triangleleft");
|
|
4051
|
+
i(l, o, D, "▹", "\\triangleright");
|
|
4052
|
+
i(l, o, c0, "{", "\\{");
|
|
4053
|
+
i(k, o, v, "{", "\\{");
|
|
4054
|
+
i(k, o, v, "{", "\\textbraceleft");
|
|
4055
|
+
i(l, o, i0, "}", "\\}");
|
|
4056
|
+
i(k, o, v, "}", "\\}");
|
|
4057
|
+
i(k, o, v, "}", "\\textbraceright");
|
|
4058
|
+
i(l, o, c0, "{", "\\lbrace");
|
|
4059
|
+
i(l, o, i0, "}", "\\rbrace");
|
|
4060
|
+
i(l, o, c0, "[", "\\lbrack", !0);
|
|
4061
|
+
i(k, o, v, "[", "\\lbrack", !0);
|
|
4062
|
+
i(l, o, i0, "]", "\\rbrack", !0);
|
|
4063
|
+
i(k, o, v, "]", "\\rbrack", !0);
|
|
4064
|
+
i(l, o, c0, "(", "\\lparen", !0);
|
|
4065
|
+
i(l, o, i0, ")", "\\rparen", !0);
|
|
4066
|
+
i(k, o, v, "<", "\\textless", !0);
|
|
4067
|
+
i(k, o, v, ">", "\\textgreater", !0);
|
|
4068
|
+
i(l, o, c0, "⌊", "\\lfloor", !0);
|
|
4069
|
+
i(l, o, i0, "⌋", "\\rfloor", !0);
|
|
4070
|
+
i(l, o, c0, "⌈", "\\lceil", !0);
|
|
4071
|
+
i(l, o, i0, "⌉", "\\rceil", !0);
|
|
4072
|
+
i(l, o, v, "\\", "\\backslash");
|
|
4073
|
+
i(l, o, v, "∣", "|");
|
|
4074
|
+
i(l, o, v, "∣", "\\vert");
|
|
4075
|
+
i(k, o, v, "|", "\\textbar", !0);
|
|
4076
|
+
i(l, o, v, "∥", "\\|");
|
|
4077
|
+
i(l, o, v, "∥", "\\Vert");
|
|
4078
|
+
i(k, o, v, "∥", "\\textbardbl");
|
|
4079
|
+
i(k, o, v, "~", "\\textasciitilde");
|
|
4080
|
+
i(k, o, v, "\\", "\\textbackslash");
|
|
4081
|
+
i(k, o, v, "^", "\\textasciicircum");
|
|
4082
|
+
i(l, o, f, "↑", "\\uparrow", !0);
|
|
4083
|
+
i(l, o, f, "⇑", "\\Uparrow", !0);
|
|
4084
|
+
i(l, o, f, "↓", "\\downarrow", !0);
|
|
4085
|
+
i(l, o, f, "⇓", "\\Downarrow", !0);
|
|
4086
|
+
i(l, o, f, "↕", "\\updownarrow", !0);
|
|
4087
|
+
i(l, o, f, "⇕", "\\Updownarrow", !0);
|
|
4088
|
+
i(l, o, _, "∐", "\\coprod");
|
|
4089
|
+
i(l, o, _, "⋁", "\\bigvee");
|
|
4090
|
+
i(l, o, _, "⋀", "\\bigwedge");
|
|
4091
|
+
i(l, o, _, "⨄", "\\biguplus");
|
|
4092
|
+
i(l, o, _, "⋂", "\\bigcap");
|
|
4093
|
+
i(l, o, _, "⋃", "\\bigcup");
|
|
4094
|
+
i(l, o, _, "∫", "\\int");
|
|
4095
|
+
i(l, o, _, "∫", "\\intop");
|
|
4096
|
+
i(l, o, _, "∬", "\\iint");
|
|
4097
|
+
i(l, o, _, "∭", "\\iiint");
|
|
4098
|
+
i(l, o, _, "∏", "\\prod");
|
|
4099
|
+
i(l, o, _, "∑", "\\sum");
|
|
4100
|
+
i(l, o, _, "⨂", "\\bigotimes");
|
|
4101
|
+
i(l, o, _, "⨁", "\\bigoplus");
|
|
4102
|
+
i(l, o, _, "⨀", "\\bigodot");
|
|
4103
|
+
i(l, o, _, "∮", "\\oint");
|
|
4104
|
+
i(l, o, _, "∯", "\\oiint");
|
|
4105
|
+
i(l, o, _, "∰", "\\oiiint");
|
|
4106
|
+
i(l, o, _, "⨆", "\\bigsqcup");
|
|
4107
|
+
i(l, o, _, "∫", "\\smallint");
|
|
4108
|
+
i(k, o, re, "…", "\\textellipsis");
|
|
4109
|
+
i(l, o, re, "…", "\\mathellipsis");
|
|
4110
|
+
i(k, o, re, "…", "\\ldots", !0);
|
|
4111
|
+
i(l, o, re, "…", "\\ldots", !0);
|
|
4112
|
+
i(l, o, re, "⋯", "\\@cdots", !0);
|
|
4113
|
+
i(l, o, re, "⋱", "\\ddots", !0);
|
|
4114
|
+
i(l, o, v, "⋮", "\\varvdots");
|
|
4115
|
+
i(k, o, v, "⋮", "\\varvdots");
|
|
4116
|
+
i(l, o, W, "ˊ", "\\acute");
|
|
4117
|
+
i(l, o, W, "ˋ", "\\grave");
|
|
4118
|
+
i(l, o, W, "¨", "\\ddot");
|
|
4119
|
+
i(l, o, W, "~", "\\tilde");
|
|
4120
|
+
i(l, o, W, "ˉ", "\\bar");
|
|
4121
|
+
i(l, o, W, "˘", "\\breve");
|
|
4122
|
+
i(l, o, W, "ˇ", "\\check");
|
|
4123
|
+
i(l, o, W, "^", "\\hat");
|
|
4124
|
+
i(l, o, W, "⃗", "\\vec");
|
|
4125
|
+
i(l, o, W, "˙", "\\dot");
|
|
4126
|
+
i(l, o, W, "˚", "\\mathring");
|
|
4127
|
+
i(l, o, q, "", "\\@imath");
|
|
4128
|
+
i(l, o, q, "", "\\@jmath");
|
|
4129
|
+
i(l, o, v, "ı", "ı");
|
|
4130
|
+
i(l, o, v, "ȷ", "ȷ");
|
|
4131
|
+
i(k, o, v, "ı", "\\i", !0);
|
|
4132
|
+
i(k, o, v, "ȷ", "\\j", !0);
|
|
4133
|
+
i(k, o, v, "ß", "\\ss", !0);
|
|
4134
|
+
i(k, o, v, "æ", "\\ae", !0);
|
|
4135
|
+
i(k, o, v, "œ", "\\oe", !0);
|
|
4136
|
+
i(k, o, v, "ø", "\\o", !0);
|
|
4137
|
+
i(k, o, v, "Æ", "\\AE", !0);
|
|
4138
|
+
i(k, o, v, "Œ", "\\OE", !0);
|
|
4139
|
+
i(k, o, v, "Ø", "\\O", !0);
|
|
4140
|
+
i(k, o, W, "ˊ", "\\'");
|
|
4141
|
+
i(k, o, W, "ˋ", "\\`");
|
|
4142
|
+
i(k, o, W, "ˆ", "\\^");
|
|
4143
|
+
i(k, o, W, "˜", "\\~");
|
|
4144
|
+
i(k, o, W, "ˉ", "\\=");
|
|
4145
|
+
i(k, o, W, "˘", "\\u");
|
|
4146
|
+
i(k, o, W, "˙", "\\.");
|
|
4147
|
+
i(k, o, W, "¸", "\\c");
|
|
4148
|
+
i(k, o, W, "˚", "\\r");
|
|
4149
|
+
i(k, o, W, "ˇ", "\\v");
|
|
4150
|
+
i(k, o, W, "¨", '\\"');
|
|
4151
|
+
i(k, o, W, "˝", "\\H");
|
|
4152
|
+
i(k, o, W, "◯", "\\textcircled");
|
|
4153
4153
|
var kr = {
|
|
4154
4154
|
"--": !0,
|
|
4155
4155
|
"---": !0,
|
|
4156
4156
|
"``": !0,
|
|
4157
4157
|
"''": !0
|
|
4158
4158
|
};
|
|
4159
|
-
i(k,
|
|
4160
|
-
i(k,
|
|
4161
|
-
i(k,
|
|
4162
|
-
i(k,
|
|
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(l,
|
|
4172
|
-
i(k,
|
|
4173
|
-
i(k,
|
|
4174
|
-
i(l,
|
|
4175
|
-
i(l,
|
|
4176
|
-
i(k,
|
|
4177
|
-
i(k,
|
|
4159
|
+
i(k, o, v, "–", "--", !0);
|
|
4160
|
+
i(k, o, v, "–", "\\textendash");
|
|
4161
|
+
i(k, o, v, "—", "---", !0);
|
|
4162
|
+
i(k, o, v, "—", "\\textemdash");
|
|
4163
|
+
i(k, o, v, "‘", "`", !0);
|
|
4164
|
+
i(k, o, v, "‘", "\\textquoteleft");
|
|
4165
|
+
i(k, o, v, "’", "'", !0);
|
|
4166
|
+
i(k, o, v, "’", "\\textquoteright");
|
|
4167
|
+
i(k, o, v, "“", "``", !0);
|
|
4168
|
+
i(k, o, v, "“", "\\textquotedblleft");
|
|
4169
|
+
i(k, o, v, "”", "''", !0);
|
|
4170
|
+
i(k, o, v, "”", "\\textquotedblright");
|
|
4171
|
+
i(l, o, v, "°", "\\degree", !0);
|
|
4172
|
+
i(k, o, v, "°", "\\degree");
|
|
4173
|
+
i(k, o, v, "°", "\\textdegree", !0);
|
|
4174
|
+
i(l, o, v, "£", "\\pounds");
|
|
4175
|
+
i(l, o, v, "£", "\\mathsterling", !0);
|
|
4176
|
+
i(k, o, v, "£", "\\pounds");
|
|
4177
|
+
i(k, o, v, "£", "\\textsterling", !0);
|
|
4178
4178
|
i(l, d, v, "✠", "\\maltese");
|
|
4179
4179
|
i(k, d, v, "✠", "\\maltese");
|
|
4180
|
-
var
|
|
4181
|
-
for (var Ye = 0; Ye <
|
|
4182
|
-
var
|
|
4183
|
-
i(l,
|
|
4180
|
+
var Vt = '0123456789/@."';
|
|
4181
|
+
for (var Ye = 0; Ye < Vt.length; Ye++) {
|
|
4182
|
+
var Gt = Vt.charAt(Ye);
|
|
4183
|
+
i(l, o, v, Gt, Gt);
|
|
4184
4184
|
}
|
|
4185
4185
|
var Ut = '0123456789!@*()-=+";:?/.,';
|
|
4186
4186
|
for (var Xe = 0; Xe < Ut.length; Xe++) {
|
|
4187
4187
|
var Yt = Ut.charAt(Xe);
|
|
4188
|
-
i(k,
|
|
4188
|
+
i(k, o, v, Yt, Yt);
|
|
4189
4189
|
}
|
|
4190
4190
|
var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
4191
4191
|
for (var $e = 0; $e < Be.length; $e++) {
|
|
4192
4192
|
var ge = Be.charAt($e);
|
|
4193
|
-
i(l,
|
|
4193
|
+
i(l, o, q, ge, ge), i(k, o, v, ge, ge);
|
|
4194
4194
|
}
|
|
4195
4195
|
i(l, d, v, "C", "ℂ");
|
|
4196
4196
|
i(k, d, v, "C", "ℂ");
|
|
@@ -4206,24 +4206,24 @@ i(l, d, v, "R", "ℝ");
|
|
|
4206
4206
|
i(k, d, v, "R", "ℝ");
|
|
4207
4207
|
i(l, d, v, "Z", "ℤ");
|
|
4208
4208
|
i(k, d, v, "Z", "ℤ");
|
|
4209
|
-
i(l,
|
|
4210
|
-
i(k,
|
|
4211
|
-
var
|
|
4209
|
+
i(l, o, q, "h", "ℎ");
|
|
4210
|
+
i(k, o, q, "h", "ℎ");
|
|
4211
|
+
var E = "";
|
|
4212
4212
|
for (var a0 = 0; a0 < Be.length; a0++) {
|
|
4213
4213
|
var J = Be.charAt(a0);
|
|
4214
|
-
|
|
4214
|
+
E = String.fromCharCode(55349, 56320 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56372 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56424 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56580 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56684 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56736 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56788 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56840 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56944 + a0), i(l, o, q, J, E), i(k, o, v, J, E), a0 < 26 && (E = String.fromCharCode(55349, 56632 + a0), i(l, o, q, J, E), i(k, o, v, J, E), E = String.fromCharCode(55349, 56476 + a0), i(l, o, q, J, E), i(k, o, v, J, E));
|
|
4215
4215
|
}
|
|
4216
|
-
|
|
4217
|
-
i(l,
|
|
4218
|
-
i(k,
|
|
4216
|
+
E = "𝕜";
|
|
4217
|
+
i(l, o, q, "k", E);
|
|
4218
|
+
i(k, o, v, "k", E);
|
|
4219
4219
|
for (var X0 = 0; X0 < 10; X0++) {
|
|
4220
4220
|
var H0 = X0.toString();
|
|
4221
|
-
|
|
4221
|
+
E = String.fromCharCode(55349, 57294 + X0), i(l, o, q, H0, E), i(k, o, v, H0, E), E = String.fromCharCode(55349, 57314 + X0), i(l, o, q, H0, E), i(k, o, v, H0, E), E = String.fromCharCode(55349, 57324 + X0), i(l, o, q, H0, E), i(k, o, v, H0, E), E = String.fromCharCode(55349, 57334 + X0), i(l, o, q, H0, E), i(k, o, v, H0, E);
|
|
4222
4222
|
}
|
|
4223
4223
|
var lt = "ÐÞþ";
|
|
4224
4224
|
for (var We = 0; We < lt.length; We++) {
|
|
4225
4225
|
var be = lt.charAt(We);
|
|
4226
|
-
i(l,
|
|
4226
|
+
i(l, o, q, be, be), i(k, o, v, be, be);
|
|
4227
4227
|
}
|
|
4228
4228
|
var ye = [
|
|
4229
4229
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -4293,28 +4293,28 @@ var ye = [
|
|
|
4293
4293
|
["mathtt", "texttt", "Typewriter-Regular"]
|
|
4294
4294
|
// 0-9 monospace
|
|
4295
4295
|
], Ja = function(e, t) {
|
|
4296
|
-
var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536,
|
|
4296
|
+
var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536, u = t === "math" ? 0 : 1;
|
|
4297
4297
|
if (119808 <= s && s < 120484) {
|
|
4298
4298
|
var h = Math.floor((s - 119808) / 26);
|
|
4299
|
-
return [ye[h][2], ye[h][
|
|
4299
|
+
return [ye[h][2], ye[h][u]];
|
|
4300
4300
|
} else if (120782 <= s && s <= 120831) {
|
|
4301
4301
|
var c = Math.floor((s - 120782) / 10);
|
|
4302
|
-
return [Xt[c][2], Xt[c][
|
|
4302
|
+
return [Xt[c][2], Xt[c][u]];
|
|
4303
4303
|
} else {
|
|
4304
4304
|
if (s === 120485 || s === 120486)
|
|
4305
|
-
return [ye[0][2], ye[0][
|
|
4305
|
+
return [ye[0][2], ye[0][u]];
|
|
4306
4306
|
if (120486 < s && s < 120782)
|
|
4307
4307
|
return ["", ""];
|
|
4308
4308
|
throw new M("Unsupported character: " + e);
|
|
4309
4309
|
}
|
|
4310
|
-
},
|
|
4310
|
+
}, Re = function(e, t, a) {
|
|
4311
4311
|
return $[a][e] && $[a][e].replace && (e = $[a][e].replace), {
|
|
4312
4312
|
value: e,
|
|
4313
4313
|
metrics: pt(e, t, a)
|
|
4314
4314
|
};
|
|
4315
4315
|
}, b0 = function(e, t, a, n, s) {
|
|
4316
|
-
var
|
|
4317
|
-
e =
|
|
4316
|
+
var u = Re(e, t, a), h = u.metrics;
|
|
4317
|
+
e = u.value;
|
|
4318
4318
|
var c;
|
|
4319
4319
|
if (h) {
|
|
4320
4320
|
var p = h.italic;
|
|
@@ -4328,9 +4328,9 @@ var ye = [
|
|
|
4328
4328
|
}
|
|
4329
4329
|
return c;
|
|
4330
4330
|
}, Qa = function(e, t, a, n) {
|
|
4331
|
-
return n === void 0 && (n = []), a.font === "boldsymbol" &&
|
|
4331
|
+
return n === void 0 && (n = []), a.font === "boldsymbol" && Re(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || $[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
|
|
4332
4332
|
}, _a = function(e, t, a, n, s) {
|
|
4333
|
-
return s !== "textord" &&
|
|
4333
|
+
return s !== "textord" && Re(e, "Math-BoldItalic", t).metrics ? {
|
|
4334
4334
|
fontName: "Math-BoldItalic",
|
|
4335
4335
|
fontClass: "boldsymbol"
|
|
4336
4336
|
} : {
|
|
@@ -4338,36 +4338,36 @@ var ye = [
|
|
|
4338
4338
|
fontClass: "mathbf"
|
|
4339
4339
|
};
|
|
4340
4340
|
}, e1 = function(e, t, a) {
|
|
4341
|
-
var n = e.mode, s = e.text,
|
|
4341
|
+
var n = e.mode, s = e.text, u = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, p = "", g = "";
|
|
4342
4342
|
if (s.charCodeAt(0) === 55349 && ([p, g] = Ja(s, n)), p.length > 0)
|
|
4343
|
-
return b0(s, p, n, t,
|
|
4343
|
+
return b0(s, p, n, t, u.concat(g));
|
|
4344
4344
|
if (c) {
|
|
4345
4345
|
var y, w;
|
|
4346
4346
|
if (c === "boldsymbol") {
|
|
4347
|
-
var x = _a(s, n, t,
|
|
4347
|
+
var x = _a(s, n, t, u, a);
|
|
4348
4348
|
y = x.fontName, w = [x.fontClass];
|
|
4349
4349
|
} else h ? (y = zr[c].fontName, w = [c]) : (y = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
|
|
4350
|
-
if (
|
|
4351
|
-
return b0(s, y, n, t,
|
|
4350
|
+
if (Re(s, y, n).metrics)
|
|
4351
|
+
return b0(s, y, n, t, u.concat(w));
|
|
4352
4352
|
if (kr.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
|
|
4353
4353
|
for (var z = [], T = 0; T < s.length; T++)
|
|
4354
|
-
z.push(b0(s[T], y, n, t,
|
|
4354
|
+
z.push(b0(s[T], y, n, t, u.concat(w)));
|
|
4355
4355
|
return Mr(z);
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
4358
4358
|
if (a === "mathord")
|
|
4359
|
-
return b0(s, "Math-Italic", n, t,
|
|
4359
|
+
return b0(s, "Math-Italic", n, t, u.concat(["mathnormal"]));
|
|
4360
4360
|
if (a === "textord") {
|
|
4361
4361
|
var C = $[n][s] && $[n][s].font;
|
|
4362
4362
|
if (C === "ams") {
|
|
4363
4363
|
var N = xe("amsrm", t.fontWeight, t.fontShape);
|
|
4364
|
-
return b0(s, N, n, t,
|
|
4364
|
+
return b0(s, N, n, t, u.concat("amsrm", t.fontWeight, t.fontShape));
|
|
4365
4365
|
} else if (C === "main" || !C) {
|
|
4366
4366
|
var I = xe("textrm", t.fontWeight, t.fontShape);
|
|
4367
|
-
return b0(s, I, n, t,
|
|
4367
|
+
return b0(s, I, n, t, u.concat(t.fontWeight, t.fontShape));
|
|
4368
4368
|
} else {
|
|
4369
4369
|
var F = xe(C, t.fontWeight, t.fontShape);
|
|
4370
|
-
return b0(s, F, n, t,
|
|
4370
|
+
return b0(s, F, n, t, u.concat(F, t.fontWeight, t.fontShape));
|
|
4371
4371
|
}
|
|
4372
4372
|
} else
|
|
4373
4373
|
throw new Error("unexpected type: " + a + " in makeOrd");
|
|
@@ -4394,8 +4394,8 @@ var ye = [
|
|
|
4394
4394
|
return r;
|
|
4395
4395
|
}, gt = function(e) {
|
|
4396
4396
|
for (var t = 0, a = 0, n = 0, s = 0; s < e.children.length; s++) {
|
|
4397
|
-
var
|
|
4398
|
-
|
|
4397
|
+
var u = e.children[s];
|
|
4398
|
+
u.height > t && (t = u.height), u.depth > a && (a = u.depth), u.maxFontSize > n && (n = u.maxFontSize);
|
|
4399
4399
|
}
|
|
4400
4400
|
e.height = t, e.depth = a, e.maxFontSize = n;
|
|
4401
4401
|
}, l0 = function(e, t, a, n) {
|
|
@@ -4408,18 +4408,18 @@ var ye = [
|
|
|
4408
4408
|
var s = new vt(e, t, a, n);
|
|
4409
4409
|
return gt(s), s;
|
|
4410
4410
|
}, Mr = function(e) {
|
|
4411
|
-
var t = new
|
|
4411
|
+
var t = new oe(e);
|
|
4412
4412
|
return gt(t), t;
|
|
4413
4413
|
}, i1 = function(e, t) {
|
|
4414
|
-
return e instanceof
|
|
4414
|
+
return e instanceof oe ? l0([], [e], t) : e;
|
|
4415
4415
|
}, s1 = function(e) {
|
|
4416
4416
|
if (e.positionType === "individualShift") {
|
|
4417
|
-
for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n,
|
|
4418
|
-
var h = -t[
|
|
4417
|
+
for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, u = 1; u < t.length; u++) {
|
|
4418
|
+
var h = -t[u].shift - s - t[u].elem.depth, c = h - (t[u - 1].elem.height + t[u - 1].elem.depth);
|
|
4419
4419
|
s = s + h, a.push({
|
|
4420
4420
|
type: "kern",
|
|
4421
4421
|
size: c
|
|
4422
|
-
}), a.push(t[
|
|
4422
|
+
}), a.push(t[u]);
|
|
4423
4423
|
}
|
|
4424
4424
|
return {
|
|
4425
4425
|
children: a,
|
|
@@ -4454,8 +4454,8 @@ var ye = [
|
|
|
4454
4454
|
for (var {
|
|
4455
4455
|
children: a,
|
|
4456
4456
|
depth: n
|
|
4457
|
-
} = s1(e), s = 0,
|
|
4458
|
-
var h = a[
|
|
4457
|
+
} = s1(e), s = 0, u = 0; u < a.length; u++) {
|
|
4458
|
+
var h = a[u];
|
|
4459
4459
|
if (h.type === "elem") {
|
|
4460
4460
|
var c = h.elem;
|
|
4461
4461
|
s = Math.max(s, c.maxFontSize, c.height);
|
|
@@ -4474,19 +4474,19 @@ var ye = [
|
|
|
4474
4474
|
}
|
|
4475
4475
|
y = Math.min(y, x), w = Math.max(w, x);
|
|
4476
4476
|
}
|
|
4477
|
-
var
|
|
4478
|
-
|
|
4477
|
+
var G = l0(["vlist"], g);
|
|
4478
|
+
G.style.height = A(w);
|
|
4479
4479
|
var H;
|
|
4480
4480
|
if (y < 0) {
|
|
4481
4481
|
var U = l0([], []), P = l0(["vlist"], [U]);
|
|
4482
4482
|
P.style.height = A(-y);
|
|
4483
4483
|
var j = l0(["vlist-s"], [new p0("")]);
|
|
4484
|
-
H = [l0(["vlist-r"], [
|
|
4484
|
+
H = [l0(["vlist-r"], [G, j]), l0(["vlist-r"], [P])];
|
|
4485
4485
|
} else
|
|
4486
|
-
H = [l0(["vlist-r"], [
|
|
4486
|
+
H = [l0(["vlist-r"], [G])];
|
|
4487
4487
|
var Y = l0(["vlist-t"], H);
|
|
4488
4488
|
return H.length === 2 && Y.classes.push("vlist-t2"), Y.height = w, Y.depth = -y, Y;
|
|
4489
|
-
},
|
|
4489
|
+
}, u1 = (r, e) => {
|
|
4490
4490
|
var t = l0(["mspace"], [], e), a = K(r, e);
|
|
4491
4491
|
return t.style.marginRight = A(a), t;
|
|
4492
4492
|
}, xe = function(e, t, a) {
|
|
@@ -4572,8 +4572,8 @@ var ye = [
|
|
|
4572
4572
|
oiintSize2: ["oiintSize2", 1.472, 0.659],
|
|
4573
4573
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
4574
4574
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
4575
|
-
},
|
|
4576
|
-
var [a, n, s] = Ar[e],
|
|
4575
|
+
}, o1 = function(e, t) {
|
|
4576
|
+
var [a, n, s] = Ar[e], u = new V0(a), h = new C0([u], {
|
|
4577
4577
|
width: A(n),
|
|
4578
4578
|
height: A(s),
|
|
4579
4579
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -4594,8 +4594,8 @@ var ye = [
|
|
|
4594
4594
|
wrapFragment: i1,
|
|
4595
4595
|
makeVList: l1,
|
|
4596
4596
|
makeOrd: e1,
|
|
4597
|
-
makeGlue:
|
|
4598
|
-
staticSvg:
|
|
4597
|
+
makeGlue: u1,
|
|
4598
|
+
staticSvg: o1,
|
|
4599
4599
|
svgData: Ar,
|
|
4600
4600
|
tryCombineChars: r1
|
|
4601
4601
|
}, Z = {
|
|
@@ -4683,7 +4683,7 @@ function B(r) {
|
|
|
4683
4683
|
props: a,
|
|
4684
4684
|
handler: n,
|
|
4685
4685
|
htmlBuilder: s,
|
|
4686
|
-
mathmlBuilder:
|
|
4686
|
+
mathmlBuilder: u
|
|
4687
4687
|
} = r, h = {
|
|
4688
4688
|
type: e,
|
|
4689
4689
|
numArgs: a.numArgs,
|
|
@@ -4697,7 +4697,7 @@ function B(r) {
|
|
|
4697
4697
|
handler: n
|
|
4698
4698
|
}, c = 0; c < t.length; ++c)
|
|
4699
4699
|
Tr[t[c]] = h;
|
|
4700
|
-
e && (s && (De[e] = s),
|
|
4700
|
+
e && (s && (De[e] = s), u && (Ce[e] = u));
|
|
4701
4701
|
}
|
|
4702
4702
|
function W0(r) {
|
|
4703
4703
|
var {
|
|
@@ -4723,10 +4723,10 @@ var Ne = function(e) {
|
|
|
4723
4723
|
}, Q = function(e) {
|
|
4724
4724
|
return e.type === "ordgroup" ? e.body : [e];
|
|
4725
4725
|
}, N0 = b.makeSpan, c1 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], d1 = ["rightmost", "mrel", "mclose", "mpunct"], f1 = {
|
|
4726
|
-
display:
|
|
4727
|
-
text:
|
|
4728
|
-
script:
|
|
4729
|
-
scriptscript:
|
|
4726
|
+
display: R.DISPLAY,
|
|
4727
|
+
text: R.TEXT,
|
|
4728
|
+
script: R.SCRIPT,
|
|
4729
|
+
scriptscript: R.SCRIPTSCRIPT
|
|
4730
4730
|
}, p1 = {
|
|
4731
4731
|
mord: "mord",
|
|
4732
4732
|
mop: "mop",
|
|
@@ -4738,9 +4738,9 @@ var Ne = function(e) {
|
|
|
4738
4738
|
minner: "minner"
|
|
4739
4739
|
}, t0 = function(e, t, a, n) {
|
|
4740
4740
|
n === void 0 && (n = [null, null]);
|
|
4741
|
-
for (var s = [],
|
|
4742
|
-
var h = L(e[
|
|
4743
|
-
if (h instanceof
|
|
4741
|
+
for (var s = [], u = 0; u < e.length; u++) {
|
|
4742
|
+
var h = L(e[u], t);
|
|
4743
|
+
if (h instanceof oe) {
|
|
4744
4744
|
var c = h.children;
|
|
4745
4745
|
s.push(...c);
|
|
4746
4746
|
} else
|
|
@@ -4760,7 +4760,7 @@ var Ne = function(e) {
|
|
|
4760
4760
|
}, {
|
|
4761
4761
|
node: y
|
|
4762
4762
|
}, w, x), $t(s, (z, T) => {
|
|
4763
|
-
var C =
|
|
4763
|
+
var C = ut(T), N = ut(z), I = C && N ? z.hasClass("mtight") ? m1[C][N] : h1[C][N] : null;
|
|
4764
4764
|
if (I)
|
|
4765
4765
|
return b.makeGlue(I, p);
|
|
4766
4766
|
}, {
|
|
@@ -4768,8 +4768,8 @@ var Ne = function(e) {
|
|
|
4768
4768
|
}, w, x), s;
|
|
4769
4769
|
}, $t = function r(e, t, a, n, s) {
|
|
4770
4770
|
n && e.push(n);
|
|
4771
|
-
for (var
|
|
4772
|
-
var h = e[
|
|
4771
|
+
for (var u = 0; u < e.length; u++) {
|
|
4772
|
+
var h = e[u], c = Br(h);
|
|
4773
4773
|
if (c) {
|
|
4774
4774
|
r(c.children, t, a, null, s);
|
|
4775
4775
|
continue;
|
|
@@ -4777,15 +4777,15 @@ var Ne = function(e) {
|
|
|
4777
4777
|
var p = !h.hasClass("mspace");
|
|
4778
4778
|
if (p) {
|
|
4779
4779
|
var g = t(h, a.node);
|
|
4780
|
-
g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g),
|
|
4780
|
+
g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g), u++));
|
|
4781
4781
|
}
|
|
4782
4782
|
p ? a.node = h : s && h.hasClass("newline") && (a.node = N0(["leftmost"])), a.insertAfter = /* @__PURE__ */ ((y) => (w) => {
|
|
4783
|
-
e.splice(y + 1, 0, w),
|
|
4784
|
-
})(
|
|
4783
|
+
e.splice(y + 1, 0, w), u++;
|
|
4784
|
+
})(u);
|
|
4785
4785
|
}
|
|
4786
4786
|
n && e.pop();
|
|
4787
4787
|
}, Br = function(e) {
|
|
4788
|
-
return e instanceof
|
|
4788
|
+
return e instanceof oe || e instanceof vt || e instanceof he && e.hasClass("enclosing") ? e : null;
|
|
4789
4789
|
}, v1 = function r(e, t) {
|
|
4790
4790
|
var a = Br(e);
|
|
4791
4791
|
if (a) {
|
|
@@ -4798,9 +4798,9 @@ var Ne = function(e) {
|
|
|
4798
4798
|
}
|
|
4799
4799
|
}
|
|
4800
4800
|
return e;
|
|
4801
|
-
},
|
|
4801
|
+
}, ut = function(e, t) {
|
|
4802
4802
|
return e ? (t && (e = v1(e, t)), p1[e.classes[0]] || null) : null;
|
|
4803
|
-
},
|
|
4803
|
+
}, ue = function(e, t) {
|
|
4804
4804
|
var a = ["nulldelimiter"].concat(e.baseSizingClasses());
|
|
4805
4805
|
return N0(t.concat(a));
|
|
4806
4806
|
}, L = function(e, t, a) {
|
|
@@ -4821,18 +4821,18 @@ function we(r, e) {
|
|
|
4821
4821
|
var t = N0(["base"], r, e), a = N0(["strut"]);
|
|
4822
4822
|
return a.style.height = A(t.height + t.depth), t.depth && (a.style.verticalAlign = A(-t.depth)), t.children.unshift(a), t;
|
|
4823
4823
|
}
|
|
4824
|
-
function
|
|
4824
|
+
function ot(r, e) {
|
|
4825
4825
|
var t = null;
|
|
4826
4826
|
r.length === 1 && r[0].type === "tag" && (t = r[0].tag, r = r[0].body);
|
|
4827
4827
|
var a = t0(r, e, "root"), n;
|
|
4828
4828
|
a.length === 2 && a[1].hasClass("tag") && (n = a.pop());
|
|
4829
|
-
for (var s = [],
|
|
4830
|
-
if (
|
|
4829
|
+
for (var s = [], u = [], h = 0; h < a.length; h++)
|
|
4830
|
+
if (u.push(a[h]), a[h].hasClass("mbin") || a[h].hasClass("mrel") || a[h].hasClass("allowbreak")) {
|
|
4831
4831
|
for (var c = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); )
|
|
4832
|
-
h++,
|
|
4833
|
-
c || (s.push(we(
|
|
4834
|
-
} else a[h].hasClass("newline") && (
|
|
4835
|
-
|
|
4832
|
+
h++, u.push(a[h]), a[h].hasClass("nobreak") && (c = !0);
|
|
4833
|
+
c || (s.push(we(u, e)), u = []);
|
|
4834
|
+
} else a[h].hasClass("newline") && (u.pop(), u.length > 0 && (s.push(we(u, e)), u = []), s.push(a[h]));
|
|
4835
|
+
u.length > 0 && s.push(we(u, e));
|
|
4836
4836
|
var p;
|
|
4837
4837
|
t ? (p = we(t0(t, e, !0)), p.classes = ["tag"], s.push(p)) : n && s.push(n);
|
|
4838
4838
|
var g = N0(["katex-html"], s);
|
|
@@ -4843,7 +4843,7 @@ function ut(r, e) {
|
|
|
4843
4843
|
return g;
|
|
4844
4844
|
}
|
|
4845
4845
|
function Dr(r) {
|
|
4846
|
-
return new
|
|
4846
|
+
return new oe(r);
|
|
4847
4847
|
}
|
|
4848
4848
|
class h0 {
|
|
4849
4849
|
constructor(e, t, a) {
|
|
@@ -4885,8 +4885,8 @@ class h0 {
|
|
|
4885
4885
|
toMarkup() {
|
|
4886
4886
|
var e = "<" + this.type;
|
|
4887
4887
|
for (var t in this.attributes)
|
|
4888
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e +=
|
|
4889
|
-
this.classes.length > 0 && (e += ' class ="' +
|
|
4888
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += V.escape(this.attributes[t]), e += '"');
|
|
4889
|
+
this.classes.length > 0 && (e += ' class ="' + V.escape(P0(this.classes)) + '"'), e += ">";
|
|
4890
4890
|
for (var a = 0; a < this.children.length; a++)
|
|
4891
4891
|
e += this.children[a].toMarkup();
|
|
4892
4892
|
return e += "</" + this.type + ">", e;
|
|
@@ -4913,7 +4913,7 @@ class w0 {
|
|
|
4913
4913
|
* (representing the text itself).
|
|
4914
4914
|
*/
|
|
4915
4915
|
toMarkup() {
|
|
4916
|
-
return
|
|
4916
|
+
return V.escape(this.toText());
|
|
4917
4917
|
}
|
|
4918
4918
|
/**
|
|
4919
4919
|
* Converts the text node into a string
|
|
@@ -4998,8 +4998,8 @@ var S = {
|
|
|
4998
4998
|
if (["\\imath", "\\jmath"].includes(s))
|
|
4999
4999
|
return null;
|
|
5000
5000
|
$[n][s] && $[n][s].replace && (s = $[n][s].replace);
|
|
5001
|
-
var
|
|
5002
|
-
return pt(s,
|
|
5001
|
+
var u = b.fontMap[a].fontName;
|
|
5002
|
+
return pt(s, u, n) ? b.fontMap[a].variant : null;
|
|
5003
5003
|
};
|
|
5004
5004
|
function je(r) {
|
|
5005
5005
|
if (!r)
|
|
@@ -5013,41 +5013,41 @@ function je(r) {
|
|
|
5013
5013
|
} else
|
|
5014
5014
|
return !1;
|
|
5015
5015
|
}
|
|
5016
|
-
var
|
|
5016
|
+
var o0 = function(e, t, a) {
|
|
5017
5017
|
if (e.length === 1) {
|
|
5018
5018
|
var n = X(e[0], t);
|
|
5019
5019
|
return a && n instanceof h0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
|
|
5020
5020
|
}
|
|
5021
|
-
for (var s = [],
|
|
5021
|
+
for (var s = [], u, h = 0; h < e.length; h++) {
|
|
5022
5022
|
var c = X(e[h], t);
|
|
5023
|
-
if (c instanceof h0 &&
|
|
5024
|
-
if (c.type === "mtext" &&
|
|
5025
|
-
|
|
5023
|
+
if (c instanceof h0 && u instanceof h0) {
|
|
5024
|
+
if (c.type === "mtext" && u.type === "mtext" && c.getAttribute("mathvariant") === u.getAttribute("mathvariant")) {
|
|
5025
|
+
u.children.push(...c.children);
|
|
5026
5026
|
continue;
|
|
5027
|
-
} else if (c.type === "mn" &&
|
|
5028
|
-
|
|
5027
|
+
} else if (c.type === "mn" && u.type === "mn") {
|
|
5028
|
+
u.children.push(...c.children);
|
|
5029
5029
|
continue;
|
|
5030
|
-
} else if (je(c) &&
|
|
5031
|
-
|
|
5030
|
+
} else if (je(c) && u.type === "mn") {
|
|
5031
|
+
u.children.push(...c.children);
|
|
5032
5032
|
continue;
|
|
5033
|
-
} else if (c.type === "mn" && je(
|
|
5034
|
-
c.children = [...
|
|
5035
|
-
else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (
|
|
5033
|
+
} else if (c.type === "mn" && je(u))
|
|
5034
|
+
c.children = [...u.children, ...c.children], s.pop();
|
|
5035
|
+
else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (u.type === "mn" || je(u))) {
|
|
5036
5036
|
var p = c.children[0];
|
|
5037
|
-
p instanceof h0 && p.type === "mn" && (p.children = [...
|
|
5038
|
-
} else if (
|
|
5039
|
-
var g =
|
|
5037
|
+
p instanceof h0 && p.type === "mn" && (p.children = [...u.children, ...p.children], s.pop());
|
|
5038
|
+
} else if (u.type === "mi" && u.children.length === 1) {
|
|
5039
|
+
var g = u.children[0];
|
|
5040
5040
|
if (g instanceof w0 && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) {
|
|
5041
5041
|
var y = c.children[0];
|
|
5042
5042
|
y instanceof w0 && y.text.length > 0 && (y.text = y.text.slice(0, 1) + "̸" + y.text.slice(1), s.pop());
|
|
5043
5043
|
}
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
|
-
s.push(c),
|
|
5046
|
+
s.push(c), u = c;
|
|
5047
5047
|
}
|
|
5048
5048
|
return s;
|
|
5049
|
-
},
|
|
5050
|
-
return bt(
|
|
5049
|
+
}, G0 = function(e, t, a) {
|
|
5050
|
+
return bt(o0(e, t, a));
|
|
5051
5051
|
}, X = function(e, t) {
|
|
5052
5052
|
if (!e)
|
|
5053
5053
|
return new S.MathNode("mrow");
|
|
@@ -5058,18 +5058,18 @@ var u0 = function(e, t, a) {
|
|
|
5058
5058
|
throw new M("Got group of unknown type: '" + e.type + "'");
|
|
5059
5059
|
};
|
|
5060
5060
|
function Wt(r, e, t, a, n) {
|
|
5061
|
-
var s =
|
|
5062
|
-
s.length === 1 && s[0] instanceof h0 && ["mrow", "mtable"].includes(s[0].type) ?
|
|
5061
|
+
var s = o0(r, t), u;
|
|
5062
|
+
s.length === 1 && s[0] instanceof h0 && ["mrow", "mtable"].includes(s[0].type) ? u = s[0] : u = new S.MathNode("mrow", s);
|
|
5063
5063
|
var h = new S.MathNode("annotation", [new S.TextNode(e)]);
|
|
5064
5064
|
h.setAttribute("encoding", "application/x-tex");
|
|
5065
|
-
var c = new S.MathNode("semantics", [
|
|
5065
|
+
var c = new S.MathNode("semantics", [u, h]), p = new S.MathNode("math", [c]);
|
|
5066
5066
|
p.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), a && p.setAttribute("display", "block");
|
|
5067
5067
|
var g = n ? "katex" : "katex-mathml";
|
|
5068
5068
|
return b.makeSpan([g], [p]);
|
|
5069
5069
|
}
|
|
5070
5070
|
var Cr = function(e) {
|
|
5071
5071
|
return new T0({
|
|
5072
|
-
style: e.displayMode ?
|
|
5072
|
+
style: e.displayMode ? R.DISPLAY : R.TEXT,
|
|
5073
5073
|
maxSize: e.maxSize,
|
|
5074
5074
|
minRuleThickness: e.minRuleThickness
|
|
5075
5075
|
});
|
|
@@ -5084,16 +5084,16 @@ var Cr = function(e) {
|
|
|
5084
5084
|
if (a.output === "mathml")
|
|
5085
5085
|
return Wt(e, t, n, a.displayMode, !0);
|
|
5086
5086
|
if (a.output === "html") {
|
|
5087
|
-
var
|
|
5088
|
-
s = b.makeSpan(["katex"], [
|
|
5087
|
+
var u = ot(e, n);
|
|
5088
|
+
s = b.makeSpan(["katex"], [u]);
|
|
5089
5089
|
} else {
|
|
5090
|
-
var h = Wt(e, t, n, a.displayMode, !1), c =
|
|
5090
|
+
var h = Wt(e, t, n, a.displayMode, !1), c = ot(e, n);
|
|
5091
5091
|
s = b.makeSpan(["katex"], [h, c]);
|
|
5092
5092
|
}
|
|
5093
5093
|
return Nr(s, a);
|
|
5094
5094
|
}, y1 = function(e, t, a) {
|
|
5095
|
-
var n = Cr(a), s =
|
|
5096
|
-
return Nr(
|
|
5095
|
+
var n = Cr(a), s = ot(e, n), u = b.makeSpan(["katex"], [s]);
|
|
5096
|
+
return Nr(u, a);
|
|
5097
5097
|
}, x1 = {
|
|
5098
5098
|
widehat: "^",
|
|
5099
5099
|
widecheck: "ˇ",
|
|
@@ -5202,7 +5202,7 @@ var Cr = function(e) {
|
|
|
5202
5202
|
var z = [1, 1, 2, 2, 3, 3][g];
|
|
5203
5203
|
c === "widehat" || c === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][z], y = [0, 239, 300, 360, 420][z], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][z], w = c + z) : (h = [0, 600, 1033, 2339, 2340][z], y = [0, 260, 286, 306, 312][z], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][z], w = "tilde" + z);
|
|
5204
5204
|
}
|
|
5205
|
-
var T = new
|
|
5205
|
+
var T = new V0(w), C = new C0([T], {
|
|
5206
5206
|
width: "100%",
|
|
5207
5207
|
height: A(x),
|
|
5208
5208
|
viewBox: "0 0 " + h + " " + y,
|
|
@@ -5214,7 +5214,7 @@ var Cr = function(e) {
|
|
|
5214
5214
|
height: x
|
|
5215
5215
|
};
|
|
5216
5216
|
} else {
|
|
5217
|
-
var N = [], I = k1[c], [F,
|
|
5217
|
+
var N = [], I = k1[c], [F, G, H] = I, U = H / 1e3, P = F.length, j, Y;
|
|
5218
5218
|
if (P === 1) {
|
|
5219
5219
|
var z0 = I[3];
|
|
5220
5220
|
j = ["hide-tail"], Y = [z0];
|
|
@@ -5226,7 +5226,7 @@ var Cr = function(e) {
|
|
|
5226
5226
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
5227
5227
|
` + P + " children.");
|
|
5228
5228
|
for (var r0 = 0; r0 < P; r0++) {
|
|
5229
|
-
var e0 = new
|
|
5229
|
+
var e0 = new V0(F[r0]), Y0 = new C0([e0], {
|
|
5230
5230
|
width: "400em",
|
|
5231
5231
|
height: A(U),
|
|
5232
5232
|
viewBox: "0 0 " + h + " " + H,
|
|
@@ -5235,14 +5235,14 @@ var Cr = function(e) {
|
|
|
5235
5235
|
if (P === 1)
|
|
5236
5236
|
return {
|
|
5237
5237
|
span: s0,
|
|
5238
|
-
minWidth:
|
|
5238
|
+
minWidth: G,
|
|
5239
5239
|
height: U
|
|
5240
5240
|
};
|
|
5241
5241
|
s0.style.height = A(U), N.push(s0);
|
|
5242
5242
|
}
|
|
5243
5243
|
return {
|
|
5244
5244
|
span: b.makeSpan(["stretchy"], N, t),
|
|
5245
|
-
minWidth:
|
|
5245
|
+
minWidth: G,
|
|
5246
5246
|
height: U
|
|
5247
5247
|
};
|
|
5248
5248
|
}
|
|
@@ -5250,15 +5250,15 @@ var Cr = function(e) {
|
|
|
5250
5250
|
var {
|
|
5251
5251
|
span: n,
|
|
5252
5252
|
minWidth: s,
|
|
5253
|
-
height:
|
|
5253
|
+
height: u
|
|
5254
5254
|
} = a();
|
|
5255
|
-
return n.height =
|
|
5255
|
+
return n.height = u, n.style.height = A(u), s > 0 && (n.style.minWidth = A(s)), n;
|
|
5256
5256
|
}, z1 = function(e, t, a, n, s) {
|
|
5257
|
-
var
|
|
5257
|
+
var u, h = e.height + e.depth + a + n;
|
|
5258
5258
|
if (/fbox|color|angl/.test(t)) {
|
|
5259
|
-
if (
|
|
5259
|
+
if (u = b.makeSpan(["stretchy", t], [], s), t === "fbox") {
|
|
5260
5260
|
var c = s.color && s.getColor();
|
|
5261
|
-
c && (
|
|
5261
|
+
c && (u.style.borderColor = c);
|
|
5262
5262
|
}
|
|
5263
5263
|
} else {
|
|
5264
5264
|
var p = [];
|
|
@@ -5279,9 +5279,9 @@ var Cr = function(e) {
|
|
|
5279
5279
|
width: "100%",
|
|
5280
5280
|
height: A(h)
|
|
5281
5281
|
});
|
|
5282
|
-
|
|
5282
|
+
u = b.makeSvgSpan([], [g], s);
|
|
5283
5283
|
}
|
|
5284
|
-
return
|
|
5284
|
+
return u.height = h, u.style.height = A(h), u;
|
|
5285
5285
|
}, q0 = {
|
|
5286
5286
|
encloseSpan: z1,
|
|
5287
5287
|
mathMLnode: w1,
|
|
@@ -5293,20 +5293,20 @@ function O(r, e) {
|
|
|
5293
5293
|
return r;
|
|
5294
5294
|
}
|
|
5295
5295
|
function xt(r) {
|
|
5296
|
-
var e =
|
|
5296
|
+
var e = Ee(r);
|
|
5297
5297
|
if (!e)
|
|
5298
5298
|
throw new Error("Expected node of symbol group type, but got " + (r ? "node of type " + r.type : String(r)));
|
|
5299
5299
|
return e;
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function Ee(r) {
|
|
5302
5302
|
return r && (r.type === "atom" || Ka.hasOwnProperty(r.type)) ? r : null;
|
|
5303
5303
|
}
|
|
5304
5304
|
var wt = (r, e) => {
|
|
5305
5305
|
var t, a, n;
|
|
5306
5306
|
r && r.type === "supsub" ? (a = O(r.base, "accent"), t = a.base, r.base = t, n = ja(L(r, e)), r.base = a) : (a = O(r, "accent"), t = a.base);
|
|
5307
|
-
var s = L(t, e.havingCrampedStyle()),
|
|
5308
|
-
if (
|
|
5309
|
-
var c =
|
|
5307
|
+
var s = L(t, e.havingCrampedStyle()), u = a.isShifty && V.isCharacterBox(t), h = 0;
|
|
5308
|
+
if (u) {
|
|
5309
|
+
var c = V.getBaseElem(t), p = L(c, e.havingCrampedStyle());
|
|
5310
5310
|
h = Pt(p).skew;
|
|
5311
5311
|
}
|
|
5312
5312
|
var g = a.label === "\\c", y = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), w;
|
|
@@ -5498,13 +5498,13 @@ B({
|
|
|
5498
5498
|
htmlBuilder(r, e) {
|
|
5499
5499
|
var t = e.style, a = e.havingStyle(t.sup()), n = b.wrapFragment(L(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
|
5500
5500
|
n.classes.push(s + "-arrow-pad");
|
|
5501
|
-
var
|
|
5502
|
-
r.below && (a = e.havingStyle(t.sub()),
|
|
5501
|
+
var u;
|
|
5502
|
+
r.below && (a = e.havingStyle(t.sub()), u = b.wrapFragment(L(r.below, a, e), e), u.classes.push(s + "-arrow-pad"));
|
|
5503
5503
|
var h = q0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
|
|
5504
5504
|
(n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
|
|
5505
5505
|
var g;
|
|
5506
|
-
if (
|
|
5507
|
-
var y = -e.fontMetrics().axisHeight +
|
|
5506
|
+
if (u) {
|
|
5507
|
+
var y = -e.fontMetrics().axisHeight + u.height + 0.5 * h.height + 0.111;
|
|
5508
5508
|
g = b.makeVList({
|
|
5509
5509
|
positionType: "individualShift",
|
|
5510
5510
|
children: [{
|
|
@@ -5517,7 +5517,7 @@ B({
|
|
|
5517
5517
|
shift: c
|
|
5518
5518
|
}, {
|
|
5519
5519
|
type: "elem",
|
|
5520
|
-
elem:
|
|
5520
|
+
elem: u,
|
|
5521
5521
|
shift: y
|
|
5522
5522
|
}]
|
|
5523
5523
|
}, e);
|
|
@@ -5548,20 +5548,20 @@ B({
|
|
|
5548
5548
|
} else
|
|
5549
5549
|
a = new S.MathNode("mover", [t, n]);
|
|
5550
5550
|
} else if (r.below) {
|
|
5551
|
-
var
|
|
5552
|
-
a = new S.MathNode("munder", [t,
|
|
5551
|
+
var u = ke(X(r.below, e));
|
|
5552
|
+
a = new S.MathNode("munder", [t, u]);
|
|
5553
5553
|
} else
|
|
5554
5554
|
a = ke(), a = new S.MathNode("mover", [t, a]);
|
|
5555
5555
|
return a;
|
|
5556
5556
|
}
|
|
5557
5557
|
});
|
|
5558
5558
|
var T1 = b.makeSpan;
|
|
5559
|
-
function
|
|
5559
|
+
function Rr(r, e) {
|
|
5560
5560
|
var t = t0(r.body, e, !0);
|
|
5561
5561
|
return T1([r.mclass], t, e);
|
|
5562
5562
|
}
|
|
5563
|
-
function
|
|
5564
|
-
var t, a =
|
|
5563
|
+
function Er(r, e) {
|
|
5564
|
+
var t, a = o0(r.body, e);
|
|
5565
5565
|
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;
|
|
5566
5566
|
}
|
|
5567
5567
|
B({
|
|
@@ -5582,11 +5582,11 @@ B({
|
|
|
5582
5582
|
mclass: "m" + a.slice(5),
|
|
5583
5583
|
// TODO(kevinb): don't prefix with 'm'
|
|
5584
5584
|
body: Q(n),
|
|
5585
|
-
isCharacterBox:
|
|
5585
|
+
isCharacterBox: V.isCharacterBox(n)
|
|
5586
5586
|
};
|
|
5587
5587
|
},
|
|
5588
|
-
htmlBuilder:
|
|
5589
|
-
mathmlBuilder:
|
|
5588
|
+
htmlBuilder: Rr,
|
|
5589
|
+
mathmlBuilder: Er
|
|
5590
5590
|
});
|
|
5591
5591
|
var Ie = (r) => {
|
|
5592
5592
|
var e = r.type === "ordgroup" && r.body.length ? r.body[0] : r;
|
|
@@ -5607,7 +5607,7 @@ B({
|
|
|
5607
5607
|
mode: t.mode,
|
|
5608
5608
|
mclass: Ie(e[0]),
|
|
5609
5609
|
body: Q(e[1]),
|
|
5610
|
-
isCharacterBox:
|
|
5610
|
+
isCharacterBox: V.isCharacterBox(e[1])
|
|
5611
5611
|
};
|
|
5612
5612
|
}
|
|
5613
5613
|
});
|
|
@@ -5621,8 +5621,8 @@ B({
|
|
|
5621
5621
|
var {
|
|
5622
5622
|
parser: t,
|
|
5623
5623
|
funcName: a
|
|
5624
|
-
} = r, n = e[1], s = e[0],
|
|
5625
|
-
a !== "\\stackrel" ?
|
|
5624
|
+
} = r, n = e[1], s = e[0], u;
|
|
5625
|
+
a !== "\\stackrel" ? u = Ie(n) : u = "mrel";
|
|
5626
5626
|
var h = {
|
|
5627
5627
|
type: "op",
|
|
5628
5628
|
mode: n.mode,
|
|
@@ -5642,13 +5642,13 @@ B({
|
|
|
5642
5642
|
return {
|
|
5643
5643
|
type: "mclass",
|
|
5644
5644
|
mode: t.mode,
|
|
5645
|
-
mclass:
|
|
5645
|
+
mclass: u,
|
|
5646
5646
|
body: [c],
|
|
5647
|
-
isCharacterBox:
|
|
5647
|
+
isCharacterBox: V.isCharacterBox(c)
|
|
5648
5648
|
};
|
|
5649
5649
|
},
|
|
5650
|
-
htmlBuilder:
|
|
5651
|
-
mathmlBuilder:
|
|
5650
|
+
htmlBuilder: Rr,
|
|
5651
|
+
mathmlBuilder: Er
|
|
5652
5652
|
});
|
|
5653
5653
|
B({
|
|
5654
5654
|
type: "pmb",
|
|
@@ -5673,7 +5673,7 @@ B({
|
|
|
5673
5673
|
return a.style.textShadow = "0.02em 0.01em 0.04px", a;
|
|
5674
5674
|
},
|
|
5675
5675
|
mathmlBuilder(r, e) {
|
|
5676
|
-
var t =
|
|
5676
|
+
var t = o0(r.body, e), a = new S.MathNode("mstyle", t);
|
|
5677
5677
|
return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a;
|
|
5678
5678
|
}
|
|
5679
5679
|
});
|
|
@@ -5704,10 +5704,10 @@ function C1(r, e, t) {
|
|
|
5704
5704
|
text: a,
|
|
5705
5705
|
mode: "math",
|
|
5706
5706
|
family: "rel"
|
|
5707
|
-
},
|
|
5707
|
+
}, u = t.callFunction("\\Big", [s], []), h = t.callFunction("\\\\cdright", [e[1]], []), c = {
|
|
5708
5708
|
type: "ordgroup",
|
|
5709
5709
|
mode: "math",
|
|
5710
|
-
body: [n,
|
|
5710
|
+
body: [n, u, h]
|
|
5711
5711
|
};
|
|
5712
5712
|
return t.callFunction("\\\\cdparent", [c], []);
|
|
5713
5713
|
}
|
|
@@ -5743,12 +5743,12 @@ function N1(r) {
|
|
|
5743
5743
|
throw new M("Expected \\\\ or \\cr or \\end", r.nextToken);
|
|
5744
5744
|
}
|
|
5745
5745
|
for (var a = [], n = [a], s = 0; s < e.length; s++) {
|
|
5746
|
-
for (var
|
|
5747
|
-
if (!Zt(
|
|
5748
|
-
h.body.push(
|
|
5746
|
+
for (var u = e[s], h = jt(), c = 0; c < u.length; c++)
|
|
5747
|
+
if (!Zt(u[c]))
|
|
5748
|
+
h.body.push(u[c]);
|
|
5749
5749
|
else {
|
|
5750
5750
|
a.push(h), c += 1;
|
|
5751
|
-
var p = xt(
|
|
5751
|
+
var p = xt(u[c]).text, g = new Array(2);
|
|
5752
5752
|
if (g[0] = {
|
|
5753
5753
|
type: "ordgroup",
|
|
5754
5754
|
mode: "math",
|
|
@@ -5759,20 +5759,20 @@ function N1(r) {
|
|
|
5759
5759
|
body: []
|
|
5760
5760
|
}, !("=|.".indexOf(p) > -1)) if ("<>AV".indexOf(p) > -1)
|
|
5761
5761
|
for (var y = 0; y < 2; y++) {
|
|
5762
|
-
for (var w = !0, x = c + 1; x <
|
|
5763
|
-
if (D1(
|
|
5762
|
+
for (var w = !0, x = c + 1; x < u.length; x++) {
|
|
5763
|
+
if (D1(u[x], p)) {
|
|
5764
5764
|
w = !1, c = x;
|
|
5765
5765
|
break;
|
|
5766
5766
|
}
|
|
5767
|
-
if (Zt(
|
|
5768
|
-
throw new M("Missing a " + p + " character to complete a CD arrow.",
|
|
5769
|
-
g[y].body.push(
|
|
5767
|
+
if (Zt(u[x]))
|
|
5768
|
+
throw new M("Missing a " + p + " character to complete a CD arrow.", u[x]);
|
|
5769
|
+
g[y].body.push(u[x]);
|
|
5770
5770
|
}
|
|
5771
5771
|
if (w)
|
|
5772
|
-
throw new M("Missing a " + p + " character to complete a CD arrow.",
|
|
5772
|
+
throw new M("Missing a " + p + " character to complete a CD arrow.", u[c]);
|
|
5773
5773
|
}
|
|
5774
5774
|
else
|
|
5775
|
-
throw new M('Expected one of "<>AV=|." after @',
|
|
5775
|
+
throw new M('Expected one of "<>AV=|." after @', u[c]);
|
|
5776
5776
|
var z = C1(p, g, r), T = {
|
|
5777
5777
|
type: "styling",
|
|
5778
5778
|
body: [z],
|
|
@@ -5866,8 +5866,8 @@ B({
|
|
|
5866
5866
|
handler(r, e) {
|
|
5867
5867
|
for (var {
|
|
5868
5868
|
parser: t
|
|
5869
|
-
} = r, a = O(e[0], "ordgroup"), n = a.body, s = "",
|
|
5870
|
-
var h = O(n[
|
|
5869
|
+
} = r, a = O(e[0], "ordgroup"), n = a.body, s = "", u = 0; u < n.length; u++) {
|
|
5870
|
+
var h = O(n[u], "textord");
|
|
5871
5871
|
s += h.text;
|
|
5872
5872
|
}
|
|
5873
5873
|
var c = parseInt(s), p;
|
|
@@ -5886,7 +5886,7 @@ var Ir = (r, e) => {
|
|
|
5886
5886
|
var t = t0(r.body, e.withColor(r.color), !1);
|
|
5887
5887
|
return b.makeFragment(t);
|
|
5888
5888
|
}, Fr = (r, e) => {
|
|
5889
|
-
var t =
|
|
5889
|
+
var t = o0(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
|
|
5890
5890
|
return a.setAttribute("mathcolor", r.color), a;
|
|
5891
5891
|
};
|
|
5892
5892
|
B({
|
|
@@ -6032,10 +6032,10 @@ B({
|
|
|
6032
6032
|
} = r, a = e.gullet.popToken(), n = a.text;
|
|
6033
6033
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(n))
|
|
6034
6034
|
throw new M("Expected a control sequence", a);
|
|
6035
|
-
for (var s = 0,
|
|
6035
|
+
for (var s = 0, u, h = [[]]; e.gullet.future().text !== "{"; )
|
|
6036
6036
|
if (a = e.gullet.popToken(), a.text === "#") {
|
|
6037
6037
|
if (e.gullet.future().text === "{") {
|
|
6038
|
-
|
|
6038
|
+
u = e.gullet.future(), h[s].push("{");
|
|
6039
6039
|
break;
|
|
6040
6040
|
}
|
|
6041
6041
|
if (a = e.gullet.popToken(), !/^[1-9]$/.test(a.text))
|
|
@@ -6051,7 +6051,7 @@ B({
|
|
|
6051
6051
|
var {
|
|
6052
6052
|
tokens: c
|
|
6053
6053
|
} = e.gullet.consumeArg();
|
|
6054
|
-
return
|
|
6054
|
+
return u && c.unshift(u), (t === "\\edef" || t === "\\xdef") && (c = e.gullet.expandTokens(c), c.reverse()), e.gullet.macros.set(n, {
|
|
6055
6055
|
tokens: c,
|
|
6056
6056
|
numArgs: s,
|
|
6057
6057
|
delimiters: h
|
|
@@ -6115,19 +6115,19 @@ var ie = function(e, t, a) {
|
|
|
6115
6115
|
throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
|
|
6116
6116
|
return s;
|
|
6117
6117
|
}, kt = function(e, t, a, n) {
|
|
6118
|
-
var s = a.havingBaseStyle(t),
|
|
6119
|
-
return
|
|
6118
|
+
var s = a.havingBaseStyle(t), u = b.makeSpan(n.concat(s.sizingClasses(a)), [e], a), h = s.sizeMultiplier / a.sizeMultiplier;
|
|
6119
|
+
return u.height *= h, u.depth *= h, u.maxFontSize = s.sizeMultiplier, u;
|
|
6120
6120
|
}, Lr = function(e, t, a) {
|
|
6121
6121
|
var n = t.havingBaseStyle(a), s = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
|
|
6122
6122
|
e.classes.push("delimcenter"), e.style.top = A(s), e.height -= s, e.depth += s;
|
|
6123
|
-
},
|
|
6124
|
-
var h = b.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n,
|
|
6123
|
+
}, R1 = function(e, t, a, n, s, u) {
|
|
6124
|
+
var h = b.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n, u);
|
|
6125
6125
|
return a && Lr(c, n, t), c;
|
|
6126
|
-
},
|
|
6126
|
+
}, E1 = function(e, t, a, n) {
|
|
6127
6127
|
return b.makeSymbol(e, "Size" + t + "-Regular", a, n);
|
|
6128
|
-
}, Pr = function(e, t, a, n, s,
|
|
6129
|
-
var h =
|
|
6130
|
-
return a && Lr(c, n,
|
|
6128
|
+
}, Pr = function(e, t, a, n, s, u) {
|
|
6129
|
+
var h = E1(e, t, s, n), c = kt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, u);
|
|
6130
|
+
return a && Lr(c, n, R.TEXT), c;
|
|
6131
6131
|
}, Ze = function(e, t, a) {
|
|
6132
6132
|
var n;
|
|
6133
6133
|
t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4";
|
|
@@ -6137,14 +6137,14 @@ var ie = function(e, t, a) {
|
|
|
6137
6137
|
elem: s
|
|
6138
6138
|
};
|
|
6139
6139
|
}, Ke = function(e, t, a) {
|
|
6140
|
-
var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new
|
|
6140
|
+
var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new V0("inner", La(e, Math.round(1e3 * t))), u = new C0([s], {
|
|
6141
6141
|
width: A(n),
|
|
6142
6142
|
height: A(t),
|
|
6143
6143
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
6144
6144
|
style: "width:" + A(n),
|
|
6145
6145
|
viewBox: "0 0 " + 1e3 * n + " " + Math.round(1e3 * t),
|
|
6146
6146
|
preserveAspectRatio: "xMinYMin"
|
|
6147
|
-
}), h = b.makeSvgSpan([], [
|
|
6147
|
+
}), h = b.makeSvgSpan([], [u], a);
|
|
6148
6148
|
return h.height = t, h.style.height = A(t), h.style.width = A(n), {
|
|
6149
6149
|
type: "elem",
|
|
6150
6150
|
elem: h
|
|
@@ -6152,21 +6152,21 @@ var ie = function(e, t, a) {
|
|
|
6152
6152
|
}, mt = 8e-3, Se = {
|
|
6153
6153
|
type: "kern",
|
|
6154
6154
|
size: -1 * mt
|
|
6155
|
-
}, I1 = ["|", "\\lvert", "\\rvert", "\\vert"], F1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"],
|
|
6155
|
+
}, I1 = ["|", "\\lvert", "\\rvert", "\\vert"], F1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Vr = function(e, t, a, n, s, u) {
|
|
6156
6156
|
var h, c, p, g, y = "", w = 0;
|
|
6157
6157
|
h = p = g = e, c = null;
|
|
6158
6158
|
var x = "Size1-Regular";
|
|
6159
6159
|
e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : I1.includes(e) ? (p = "∣", y = "vert", w = 333) : F1.includes(e) ? (p = "∥", y = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", y = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", y = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", y = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", y = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", y = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", y = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", y = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", y = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
|
|
6160
|
-
var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, I = ie(g, x, s), F = I.height + I.depth,
|
|
6160
|
+
var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, I = ie(g, x, s), F = I.height + I.depth, G = 0, H = 1;
|
|
6161
6161
|
if (c !== null) {
|
|
6162
6162
|
var U = ie(c, x, s);
|
|
6163
|
-
|
|
6163
|
+
G = U.height + U.depth, H = 2;
|
|
6164
6164
|
}
|
|
6165
|
-
var P = T + F +
|
|
6165
|
+
var P = T + F + G, j = Math.max(0, Math.ceil((t - P) / (H * N))), Y = P + j * H * N, z0 = n.fontMetrics().axisHeight;
|
|
6166
6166
|
a && (z0 *= n.sizeMultiplier);
|
|
6167
6167
|
var r0 = Y / 2 - z0, e0 = [];
|
|
6168
6168
|
if (y.length > 0) {
|
|
6169
|
-
var Y0 = Y - T - F, s0 = Math.round(Y * 1e3), g0 = Pa(y, Math.round(Y0 * 1e3)),
|
|
6169
|
+
var Y0 = Y - T - F, s0 = Math.round(Y * 1e3), g0 = Pa(y, Math.round(Y0 * 1e3)), E0 = new V0(y, g0), j0 = (w / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", Le = new C0([E0], {
|
|
6170
6170
|
width: j0,
|
|
6171
6171
|
height: Z0,
|
|
6172
6172
|
viewBox: "0 0 " + w + " " + s0
|
|
@@ -6180,19 +6180,19 @@ var ie = function(e, t, a) {
|
|
|
6180
6180
|
var F0 = Y - T - F + 2 * mt;
|
|
6181
6181
|
e0.push(Ke(p, F0, n));
|
|
6182
6182
|
} else {
|
|
6183
|
-
var d0 = (Y - T - F -
|
|
6183
|
+
var d0 = (Y - T - F - G) / 2 + 2 * mt;
|
|
6184
6184
|
e0.push(Ke(p, d0, n)), e0.push(Se), e0.push(Ze(c, x, s)), e0.push(Se), e0.push(Ke(p, d0, n));
|
|
6185
6185
|
}
|
|
6186
6186
|
e0.push(Se), e0.push(Ze(h, x, s));
|
|
6187
6187
|
}
|
|
6188
|
-
var ne = n.havingBaseStyle(
|
|
6188
|
+
var ne = n.havingBaseStyle(R.TEXT), Pe = b.makeVList({
|
|
6189
6189
|
positionType: "bottom",
|
|
6190
6190
|
positionData: r0,
|
|
6191
6191
|
children: e0
|
|
6192
6192
|
}, ne);
|
|
6193
|
-
return kt(b.makeSpan(["delimsizing", "mult"], [Pe], ne),
|
|
6193
|
+
return kt(b.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n, u);
|
|
6194
6194
|
}, Je = 80, Qe = 0.08, _e = function(e, t, a, n, s) {
|
|
6195
|
-
var
|
|
6195
|
+
var u = Ha(e, n, a), h = new V0(e, u), c = new C0([h], {
|
|
6196
6196
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
6197
6197
|
width: "400em",
|
|
6198
6198
|
height: A(t),
|
|
@@ -6201,31 +6201,31 @@ var ie = function(e, t, a) {
|
|
|
6201
6201
|
});
|
|
6202
6202
|
return b.makeSvgSpan(["hide-tail"], [c], s);
|
|
6203
6203
|
}, O1 = function(e, t) {
|
|
6204
|
-
var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier,
|
|
6205
|
-
return n.type === "small" ? (g = 1e3 + 1e3 *
|
|
6204
|
+
var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier, u = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, p = 0, g = 0, y;
|
|
6205
|
+
return n.type === "small" ? (g = 1e3 + 1e3 * u + Je, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + u + Qe) / s, p = (1 + u) / s, h = _e("sqrtMain", c, g, u, t), h.style.minWidth = "0.853em", y = 0.833 / s) : n.type === "large" ? (g = (1e3 + Je) * se[n.size], p = (se[n.size] + u) / s, c = (se[n.size] + u + Qe) / s, h = _e("sqrtSize" + n.size, c, g, u, t), h.style.minWidth = "1.02em", y = 1 / s) : (c = e + u + Qe, p = e + u, g = Math.floor(1e3 * e + u) + Je, h = _e("sqrtTall", c, g, u, t), h.style.minWidth = "0.742em", y = 1.056), h.height = p, h.style.height = A(c), {
|
|
6206
6206
|
span: h,
|
|
6207
6207
|
advanceWidth: y,
|
|
6208
6208
|
// Calculate the actual line width.
|
|
6209
6209
|
// This actually should depend on the chosen font -- e.g. \boldmath
|
|
6210
6210
|
// should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and
|
|
6211
6211
|
// have thicker rules.
|
|
6212
|
-
ruleWidth: (t.fontMetrics().sqrtRuleThickness +
|
|
6212
|
+
ruleWidth: (t.fontMetrics().sqrtRuleThickness + u) * s
|
|
6213
6213
|
};
|
|
6214
|
-
},
|
|
6215
|
-
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"),
|
|
6214
|
+
}, Gr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], H1 = ["\\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], L1 = function(e, t, a, n, s) {
|
|
6215
|
+
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), Gr.includes(e) || Ur.includes(e))
|
|
6216
6216
|
return Pr(e, t, !1, a, n, s);
|
|
6217
6217
|
if (H1.includes(e))
|
|
6218
|
-
return
|
|
6218
|
+
return Vr(e, se[t], !1, a, n, s);
|
|
6219
6219
|
throw new M("Illegal delimiter: '" + e + "'");
|
|
6220
6220
|
}, P1 = [{
|
|
6221
6221
|
type: "small",
|
|
6222
|
-
style:
|
|
6222
|
+
style: R.SCRIPTSCRIPT
|
|
6223
6223
|
}, {
|
|
6224
6224
|
type: "small",
|
|
6225
|
-
style:
|
|
6225
|
+
style: R.SCRIPT
|
|
6226
6226
|
}, {
|
|
6227
6227
|
type: "small",
|
|
6228
|
-
style:
|
|
6228
|
+
style: R.TEXT
|
|
6229
6229
|
}, {
|
|
6230
6230
|
type: "large",
|
|
6231
6231
|
size: 1
|
|
@@ -6238,26 +6238,26 @@ var ie = function(e, t, a) {
|
|
|
6238
6238
|
}, {
|
|
6239
6239
|
type: "large",
|
|
6240
6240
|
size: 4
|
|
6241
|
-
}],
|
|
6241
|
+
}], V1 = [{
|
|
6242
6242
|
type: "small",
|
|
6243
|
-
style:
|
|
6243
|
+
style: R.SCRIPTSCRIPT
|
|
6244
6244
|
}, {
|
|
6245
6245
|
type: "small",
|
|
6246
|
-
style:
|
|
6246
|
+
style: R.SCRIPT
|
|
6247
6247
|
}, {
|
|
6248
6248
|
type: "small",
|
|
6249
|
-
style:
|
|
6249
|
+
style: R.TEXT
|
|
6250
6250
|
}, {
|
|
6251
6251
|
type: "stack"
|
|
6252
6252
|
}], Yr = [{
|
|
6253
6253
|
type: "small",
|
|
6254
|
-
style:
|
|
6254
|
+
style: R.SCRIPTSCRIPT
|
|
6255
6255
|
}, {
|
|
6256
6256
|
type: "small",
|
|
6257
|
-
style:
|
|
6257
|
+
style: R.SCRIPT
|
|
6258
6258
|
}, {
|
|
6259
6259
|
type: "small",
|
|
6260
|
-
style:
|
|
6260
|
+
style: R.TEXT
|
|
6261
6261
|
}, {
|
|
6262
6262
|
type: "large",
|
|
6263
6263
|
size: 1
|
|
@@ -6272,7 +6272,7 @@ var ie = function(e, t, a) {
|
|
|
6272
6272
|
size: 4
|
|
6273
6273
|
}, {
|
|
6274
6274
|
type: "stack"
|
|
6275
|
-
}],
|
|
6275
|
+
}], G1 = function(e) {
|
|
6276
6276
|
if (e.type === "small")
|
|
6277
6277
|
return "Main-Regular";
|
|
6278
6278
|
if (e.type === "large")
|
|
@@ -6281,23 +6281,23 @@ var ie = function(e, t, a) {
|
|
|
6281
6281
|
return "Size4-Regular";
|
|
6282
6282
|
throw new Error("Add support for delim type '" + e.type + "' here.");
|
|
6283
6283
|
}, Xr = function(e, t, a, n) {
|
|
6284
|
-
for (var s = Math.min(2, 3 - n.style.size),
|
|
6285
|
-
var h = ie(e,
|
|
6286
|
-
if (a[
|
|
6287
|
-
var p = n.havingBaseStyle(a[
|
|
6284
|
+
for (var s = Math.min(2, 3 - n.style.size), u = s; u < a.length && a[u].type !== "stack"; u++) {
|
|
6285
|
+
var h = ie(e, G1(a[u]), "math"), c = h.height + h.depth;
|
|
6286
|
+
if (a[u].type === "small") {
|
|
6287
|
+
var p = n.havingBaseStyle(a[u].style);
|
|
6288
6288
|
c *= p.sizeMultiplier;
|
|
6289
6289
|
}
|
|
6290
6290
|
if (c > t)
|
|
6291
|
-
return a[
|
|
6291
|
+
return a[u];
|
|
6292
6292
|
}
|
|
6293
6293
|
return a[a.length - 1];
|
|
6294
|
-
}, $r = function(e, t, a, n, s,
|
|
6294
|
+
}, $r = function(e, t, a, n, s, u) {
|
|
6295
6295
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
6296
6296
|
var h;
|
|
6297
|
-
Ur.includes(e) ? h = P1 :
|
|
6297
|
+
Ur.includes(e) ? h = P1 : Gr.includes(e) ? h = Yr : h = V1;
|
|
6298
6298
|
var c = Xr(e, t, h, n);
|
|
6299
|
-
return c.type === "small" ?
|
|
6300
|
-
}, U1 = function(e, t, a, n, s,
|
|
6299
|
+
return c.type === "small" ? R1(e, c.style, a, n, s, u) : c.type === "large" ? Pr(e, c.size, a, n, s, u) : Vr(e, t, a, n, s, u);
|
|
6300
|
+
}, U1 = function(e, t, a, n, s, u) {
|
|
6301
6301
|
var h = n.fontMetrics().axisHeight * n.sizeMultiplier, c = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), y = Math.max(
|
|
6302
6302
|
// In real TeX, calculations are done using integral values which are
|
|
6303
6303
|
// 65536 per pt, or 655360 per em. So, the division here truncates in
|
|
@@ -6311,7 +6311,7 @@ var ie = function(e, t, a) {
|
|
|
6311
6311
|
g / 500 * c,
|
|
6312
6312
|
2 * g - p
|
|
6313
6313
|
);
|
|
6314
|
-
return $r(e, y, !0, n, s,
|
|
6314
|
+
return $r(e, y, !0, n, s, u);
|
|
6315
6315
|
}, D0 = {
|
|
6316
6316
|
sqrtImage: O1,
|
|
6317
6317
|
sizedDelim: L1,
|
|
@@ -6385,7 +6385,7 @@ var ie = function(e, t, a) {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
}, Y1 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
|
6387
6387
|
function Fe(r, e) {
|
|
6388
|
-
var t =
|
|
6388
|
+
var t = Ee(r);
|
|
6389
6389
|
if (t && Y1.includes(t.text))
|
|
6390
6390
|
return t;
|
|
6391
6391
|
throw t ? new M("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new M("Invalid delimiter type '" + r.type + "'", r);
|
|
@@ -6465,18 +6465,18 @@ B({
|
|
|
6465
6465
|
},
|
|
6466
6466
|
htmlBuilder: (r, e) => {
|
|
6467
6467
|
Jt(r);
|
|
6468
|
-
for (var t = t0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, s = !1,
|
|
6469
|
-
t[
|
|
6468
|
+
for (var t = t0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, s = !1, u = 0; u < t.length; u++)
|
|
6469
|
+
t[u].isMiddle ? s = !0 : (a = Math.max(t[u].height, a), n = Math.max(t[u].depth, n));
|
|
6470
6470
|
a *= e.sizeMultiplier, n *= e.sizeMultiplier;
|
|
6471
6471
|
var h;
|
|
6472
|
-
if (r.left === "." ? h =
|
|
6472
|
+
if (r.left === "." ? h = ue(e, ["mopen"]) : h = D0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), s)
|
|
6473
6473
|
for (var c = 1; c < t.length; c++) {
|
|
6474
6474
|
var p = t[c], g = p.isMiddle;
|
|
6475
6475
|
g && (t[c] = D0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
|
|
6476
6476
|
}
|
|
6477
6477
|
var y;
|
|
6478
6478
|
if (r.right === ".")
|
|
6479
|
-
y =
|
|
6479
|
+
y = ue(e, ["mclose"]);
|
|
6480
6480
|
else {
|
|
6481
6481
|
var w = r.rightColor ? e.withColor(r.rightColor) : e;
|
|
6482
6482
|
y = D0.leftRightDelim(r.right, a, n, w, r.mode, ["mclose"]);
|
|
@@ -6485,7 +6485,7 @@ B({
|
|
|
6485
6485
|
},
|
|
6486
6486
|
mathmlBuilder: (r, e) => {
|
|
6487
6487
|
Jt(r);
|
|
6488
|
-
var t =
|
|
6488
|
+
var t = o0(r.body, e);
|
|
6489
6489
|
if (r.left !== ".") {
|
|
6490
6490
|
var a = new S.MathNode("mo", [v0(r.left, r.mode)]);
|
|
6491
6491
|
a.setAttribute("fence", "true"), t.unshift(a);
|
|
@@ -6517,7 +6517,7 @@ B({
|
|
|
6517
6517
|
htmlBuilder: (r, e) => {
|
|
6518
6518
|
var t;
|
|
6519
6519
|
if (r.delim === ".")
|
|
6520
|
-
t =
|
|
6520
|
+
t = ue(e, []);
|
|
6521
6521
|
else {
|
|
6522
6522
|
t = D0.sizedDelim(r.delim, 1, e, r.mode, []);
|
|
6523
6523
|
var a = {
|
|
@@ -6534,9 +6534,9 @@ B({
|
|
|
6534
6534
|
}
|
|
6535
6535
|
});
|
|
6536
6536
|
var St = (r, e) => {
|
|
6537
|
-
var t = b.wrapFragment(L(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s,
|
|
6537
|
+
var t = b.wrapFragment(L(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, u = 0, h = V.isCharacterBox(r.body);
|
|
6538
6538
|
if (a === "sout")
|
|
6539
|
-
s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n,
|
|
6539
|
+
s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, u = -0.5 * e.fontMetrics().xHeight;
|
|
6540
6540
|
else if (a === "phase") {
|
|
6541
6541
|
var c = K({
|
|
6542
6542
|
number: 0.6,
|
|
@@ -6548,13 +6548,13 @@ var St = (r, e) => {
|
|
|
6548
6548
|
n = n / g.sizeMultiplier;
|
|
6549
6549
|
var y = t.height + t.depth + c + p;
|
|
6550
6550
|
t.style.paddingLeft = A(y / 2 + c);
|
|
6551
|
-
var w = Math.floor(1e3 * y * n), x = Fa(w), z = new C0([new
|
|
6551
|
+
var w = Math.floor(1e3 * y * n), x = Fa(w), z = new C0([new V0("phase", x)], {
|
|
6552
6552
|
width: "400em",
|
|
6553
6553
|
height: A(w / 1e3),
|
|
6554
6554
|
viewBox: "0 0 400000 " + w,
|
|
6555
6555
|
preserveAspectRatio: "xMinYMin slice"
|
|
6556
6556
|
});
|
|
6557
|
-
s = b.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(y),
|
|
6557
|
+
s = b.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(y), u = t.depth + c + p;
|
|
6558
6558
|
} else {
|
|
6559
6559
|
/cancel/.test(a) ? h || t.classes.push("cancel-pad") : a === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
|
|
6560
6560
|
var T = 0, C = 0, N = 0;
|
|
@@ -6563,7 +6563,7 @@ var St = (r, e) => {
|
|
|
6563
6563
|
// default
|
|
6564
6564
|
e.minRuleThickness
|
|
6565
6565
|
// User override.
|
|
6566
|
-
), 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)),
|
|
6566
|
+
), 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)), u = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
|
|
6567
6567
|
}
|
|
6568
6568
|
var I;
|
|
6569
6569
|
if (r.backgroundColor)
|
|
@@ -6574,7 +6574,7 @@ var St = (r, e) => {
|
|
|
6574
6574
|
{
|
|
6575
6575
|
type: "elem",
|
|
6576
6576
|
elem: s,
|
|
6577
|
-
shift:
|
|
6577
|
+
shift: u
|
|
6578
6578
|
},
|
|
6579
6579
|
{
|
|
6580
6580
|
type: "elem",
|
|
@@ -6597,7 +6597,7 @@ var St = (r, e) => {
|
|
|
6597
6597
|
{
|
|
6598
6598
|
type: "elem",
|
|
6599
6599
|
elem: s,
|
|
6600
|
-
shift:
|
|
6600
|
+
shift: u,
|
|
6601
6601
|
wrapperClasses: F
|
|
6602
6602
|
}
|
|
6603
6603
|
]
|
|
@@ -6655,13 +6655,13 @@ B({
|
|
|
6655
6655
|
var {
|
|
6656
6656
|
parser: a,
|
|
6657
6657
|
funcName: n
|
|
6658
|
-
} = r, s = O(e[0], "color-token").color,
|
|
6658
|
+
} = r, s = O(e[0], "color-token").color, u = e[1];
|
|
6659
6659
|
return {
|
|
6660
6660
|
type: "enclose",
|
|
6661
6661
|
mode: a.mode,
|
|
6662
6662
|
label: n,
|
|
6663
6663
|
backgroundColor: s,
|
|
6664
|
-
body:
|
|
6664
|
+
body: u
|
|
6665
6665
|
};
|
|
6666
6666
|
},
|
|
6667
6667
|
htmlBuilder: St,
|
|
@@ -6679,12 +6679,12 @@ B({
|
|
|
6679
6679
|
var {
|
|
6680
6680
|
parser: a,
|
|
6681
6681
|
funcName: n
|
|
6682
|
-
} = r, s = O(e[0], "color-token").color,
|
|
6682
|
+
} = r, s = O(e[0], "color-token").color, u = O(e[1], "color-token").color, h = e[2];
|
|
6683
6683
|
return {
|
|
6684
6684
|
type: "enclose",
|
|
6685
6685
|
mode: a.mode,
|
|
6686
6686
|
label: n,
|
|
6687
|
-
backgroundColor:
|
|
6687
|
+
backgroundColor: u,
|
|
6688
6688
|
borderColor: s,
|
|
6689
6689
|
body: h
|
|
6690
6690
|
};
|
|
@@ -6761,7 +6761,7 @@ function k0(r) {
|
|
|
6761
6761
|
props: a,
|
|
6762
6762
|
handler: n,
|
|
6763
6763
|
htmlBuilder: s,
|
|
6764
|
-
mathmlBuilder:
|
|
6764
|
+
mathmlBuilder: u
|
|
6765
6765
|
} = r, h = {
|
|
6766
6766
|
type: e,
|
|
6767
6767
|
numArgs: a.numArgs || 0,
|
|
@@ -6770,7 +6770,7 @@ function k0(r) {
|
|
|
6770
6770
|
handler: n
|
|
6771
6771
|
}, c = 0; c < t.length; ++c)
|
|
6772
6772
|
Wr[t[c]] = h;
|
|
6773
|
-
s && (De[e] = s),
|
|
6773
|
+
s && (De[e] = s), u && (Ce[e] = u);
|
|
6774
6774
|
}
|
|
6775
6775
|
var jr = {};
|
|
6776
6776
|
function m(r, e) {
|
|
@@ -6798,7 +6798,7 @@ function U0(r, e, t) {
|
|
|
6798
6798
|
hskipBeforeAndAfter: a,
|
|
6799
6799
|
addJot: n,
|
|
6800
6800
|
cols: s,
|
|
6801
|
-
arraystretch:
|
|
6801
|
+
arraystretch: u,
|
|
6802
6802
|
colSeparationType: h,
|
|
6803
6803
|
autoTag: c,
|
|
6804
6804
|
singleRow: p,
|
|
@@ -6806,11 +6806,11 @@ function U0(r, e, t) {
|
|
|
6806
6806
|
maxNumCols: y,
|
|
6807
6807
|
leqno: w
|
|
6808
6808
|
} = e;
|
|
6809
|
-
if (r.gullet.beginGroup(), p || r.gullet.macros.set("\\cr", "\\\\\\relax"), !
|
|
6809
|
+
if (r.gullet.beginGroup(), p || r.gullet.macros.set("\\cr", "\\\\\\relax"), !u) {
|
|
6810
6810
|
var x = r.gullet.expandMacroAsText("\\arraystretch");
|
|
6811
6811
|
if (x == null)
|
|
6812
|
-
|
|
6813
|
-
else if (
|
|
6812
|
+
u = 1;
|
|
6813
|
+
else if (u = parseFloat(x), !u || u < 0)
|
|
6814
6814
|
throw new M("Invalid \\arraystretch: " + x);
|
|
6815
6815
|
}
|
|
6816
6816
|
r.gullet.beginGroup();
|
|
@@ -6818,7 +6818,7 @@ function U0(r, e, t) {
|
|
|
6818
6818
|
function F() {
|
|
6819
6819
|
c && r.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
6820
6820
|
}
|
|
6821
|
-
function
|
|
6821
|
+
function G() {
|
|
6822
6822
|
I && (r.gullet.macros.get("\\df@tag") ? (I.push(r.subparse([new m0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
|
|
6823
6823
|
}
|
|
6824
6824
|
for (F(), N.push(Qt(r)); ; ) {
|
|
@@ -6842,12 +6842,12 @@ function U0(r, e, t) {
|
|
|
6842
6842
|
}
|
|
6843
6843
|
r.consume();
|
|
6844
6844
|
} else if (U === "\\end") {
|
|
6845
|
-
|
|
6845
|
+
G(), z.length === 1 && H.type === "styling" && H.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), N.length < T.length + 1 && N.push([]);
|
|
6846
6846
|
break;
|
|
6847
6847
|
} else if (U === "\\\\") {
|
|
6848
6848
|
r.consume();
|
|
6849
6849
|
var P = void 0;
|
|
6850
|
-
r.gullet.future().text !== " " && (P = r.parseSizeGroup(!0)), C.push(P ? P.value : null),
|
|
6850
|
+
r.gullet.future().text !== " " && (P = r.parseSizeGroup(!0)), C.push(P ? P.value : null), G(), N.push(Qt(r)), z = [], T.push(z), F();
|
|
6851
6851
|
} else
|
|
6852
6852
|
throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
|
|
6853
6853
|
}
|
|
@@ -6855,7 +6855,7 @@ function U0(r, e, t) {
|
|
|
6855
6855
|
type: "array",
|
|
6856
6856
|
mode: r.mode,
|
|
6857
6857
|
addJot: n,
|
|
6858
|
-
arraystretch:
|
|
6858
|
+
arraystretch: u,
|
|
6859
6859
|
body: T,
|
|
6860
6860
|
cols: s,
|
|
6861
6861
|
rowGaps: C,
|
|
@@ -6870,28 +6870,28 @@ function At(r) {
|
|
|
6870
6870
|
return r.slice(0, 1) === "d" ? "display" : "text";
|
|
6871
6871
|
}
|
|
6872
6872
|
var S0 = function(e, t) {
|
|
6873
|
-
var a, n, s = e.body.length,
|
|
6873
|
+
var a, n, s = e.body.length, u = e.hLinesBeforeRow, h = 0, c = new Array(s), p = [], g = Math.max(
|
|
6874
6874
|
// From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
|
|
6875
6875
|
t.fontMetrics().arrayRuleWidth,
|
|
6876
6876
|
t.minRuleThickness
|
|
6877
6877
|
// User override.
|
|
6878
6878
|
), y = 1 / t.fontMetrics().ptPerEm, w = 5 * y;
|
|
6879
6879
|
if (e.colSeparationType && e.colSeparationType === "small") {
|
|
6880
|
-
var x = t.havingStyle(
|
|
6880
|
+
var x = t.havingStyle(R.SCRIPT).sizeMultiplier;
|
|
6881
6881
|
w = 0.2778 * (x / t.sizeMultiplier);
|
|
6882
6882
|
}
|
|
6883
6883
|
var z = e.colSeparationType === "CD" ? K({
|
|
6884
6884
|
number: 3,
|
|
6885
6885
|
unit: "ex"
|
|
6886
6886
|
}, t) : 12 * y, T = 3 * y, C = e.arraystretch * z, N = 0.7 * C, I = 0.3 * C, F = 0;
|
|
6887
|
-
function
|
|
6887
|
+
function G(fe) {
|
|
6888
6888
|
for (var pe = 0; pe < fe.length; ++pe)
|
|
6889
6889
|
pe > 0 && (F += 0.25), p.push({
|
|
6890
6890
|
pos: F,
|
|
6891
6891
|
isDashed: fe[pe]
|
|
6892
6892
|
});
|
|
6893
6893
|
}
|
|
6894
|
-
for (
|
|
6894
|
+
for (G(u[0]), a = 0; a < e.body.length; ++a) {
|
|
6895
6895
|
var H = e.body[a], U = N, P = I;
|
|
6896
6896
|
h < H.length && (h = H.length);
|
|
6897
6897
|
var j = new Array(H.length);
|
|
@@ -6900,9 +6900,9 @@ var S0 = function(e, t) {
|
|
|
6900
6900
|
P < Y.depth && (P = Y.depth), U < Y.height && (U = Y.height), j[n] = Y;
|
|
6901
6901
|
}
|
|
6902
6902
|
var z0 = e.rowGaps[a], r0 = 0;
|
|
6903
|
-
z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, P < r0 && (P = r0), r0 = 0)), e.addJot && (P += T), j.height = U, j.depth = P, F += U, j.pos = F, F += P + r0, c[a] = j,
|
|
6903
|
+
z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, P < r0 && (P = r0), r0 = 0)), e.addJot && (P += T), j.height = U, j.depth = P, F += U, j.pos = F, F += P + r0, c[a] = j, G(u[a + 1]);
|
|
6904
6904
|
}
|
|
6905
|
-
var e0 = F / 2 + t.fontMetrics().axisHeight, Y0 = e.cols || [], s0 = [], g0,
|
|
6905
|
+
var e0 = F / 2 + t.fontMetrics().axisHeight, Y0 = e.cols || [], s0 = [], g0, E0, j0 = [];
|
|
6906
6906
|
if (e.tags && e.tags.some((fe) => fe))
|
|
6907
6907
|
for (a = 0; a < s; ++a) {
|
|
6908
6908
|
var Z0 = c[a], Le = Z0.pos - e0, I0 = e.tags[a], F0 = void 0;
|
|
@@ -6913,25 +6913,25 @@ var S0 = function(e, t) {
|
|
|
6913
6913
|
});
|
|
6914
6914
|
}
|
|
6915
6915
|
for (
|
|
6916
|
-
n = 0,
|
|
6916
|
+
n = 0, E0 = 0;
|
|
6917
6917
|
// Continue while either there are more columns or more column
|
|
6918
6918
|
// descriptions, so trailing separators don't get lost.
|
|
6919
|
-
n < h ||
|
|
6920
|
-
++n, ++
|
|
6919
|
+
n < h || E0 < Y0.length;
|
|
6920
|
+
++n, ++E0
|
|
6921
6921
|
) {
|
|
6922
|
-
for (var d0 = Y0[
|
|
6922
|
+
for (var d0 = Y0[E0] || {}, ne = !0; d0.type === "separator"; ) {
|
|
6923
6923
|
if (ne || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), d0.separator === "|" || d0.separator === ":") {
|
|
6924
6924
|
var Pe = d0.separator === "|" ? "solid" : "dashed", K0 = b.makeSpan(["vertical-separator"], [], t);
|
|
6925
6925
|
K0.style.height = A(F), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
|
|
6926
|
-
var
|
|
6927
|
-
|
|
6926
|
+
var Rt = F - e0;
|
|
6927
|
+
Rt && (K0.style.verticalAlign = A(-Rt)), s0.push(K0);
|
|
6928
6928
|
} else
|
|
6929
6929
|
throw new M("Invalid separator type: " + d0.separator);
|
|
6930
|
-
|
|
6930
|
+
E0++, d0 = Y0[E0] || {}, ne = !1;
|
|
6931
6931
|
}
|
|
6932
6932
|
if (!(n >= h)) {
|
|
6933
6933
|
var J0 = void 0;
|
|
6934
|
-
(n > 0 || e.hskipBeforeAndAfter) && (J0 =
|
|
6934
|
+
(n > 0 || e.hskipBeforeAndAfter) && (J0 = V.deflt(d0.pregap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
|
|
6935
6935
|
var Q0 = [];
|
|
6936
6936
|
for (a = 0; a < s; ++a) {
|
|
6937
6937
|
var ce = c[a], de = ce[n];
|
|
@@ -6947,21 +6947,21 @@ var S0 = function(e, t) {
|
|
|
6947
6947
|
Q0 = b.makeVList({
|
|
6948
6948
|
positionType: "individualShift",
|
|
6949
6949
|
children: Q0
|
|
6950
|
-
}, t), Q0 = b.makeSpan(["col-align-" + (d0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 =
|
|
6950
|
+
}, t), Q0 = b.makeSpan(["col-align-" + (d0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = V.deflt(d0.postgap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
6953
|
if (c = b.makeSpan(["mtable"], s0), p.length > 0) {
|
|
6954
|
-
for (var ca = b.makeLineSpan("hline", t, g), da = b.makeLineSpan("hdashline", t, g),
|
|
6954
|
+
for (var ca = b.makeLineSpan("hline", t, g), da = b.makeLineSpan("hdashline", t, g), Ve = [{
|
|
6955
6955
|
type: "elem",
|
|
6956
6956
|
elem: c,
|
|
6957
6957
|
shift: 0
|
|
6958
6958
|
}]; p.length > 0; ) {
|
|
6959
|
-
var
|
|
6960
|
-
|
|
6959
|
+
var Et = p.pop(), It = Et.pos - e0;
|
|
6960
|
+
Et.isDashed ? Ve.push({
|
|
6961
6961
|
type: "elem",
|
|
6962
6962
|
elem: da,
|
|
6963
6963
|
shift: It
|
|
6964
|
-
}) :
|
|
6964
|
+
}) : Ve.push({
|
|
6965
6965
|
type: "elem",
|
|
6966
6966
|
elem: ca,
|
|
6967
6967
|
shift: It
|
|
@@ -6969,25 +6969,25 @@ var S0 = function(e, t) {
|
|
|
6969
6969
|
}
|
|
6970
6970
|
c = b.makeVList({
|
|
6971
6971
|
positionType: "individualShift",
|
|
6972
|
-
children:
|
|
6972
|
+
children: Ve
|
|
6973
6973
|
}, t);
|
|
6974
6974
|
}
|
|
6975
6975
|
if (j0.length === 0)
|
|
6976
6976
|
return b.makeSpan(["mord"], [c], t);
|
|
6977
|
-
var
|
|
6977
|
+
var Ge = b.makeVList({
|
|
6978
6978
|
positionType: "individualShift",
|
|
6979
6979
|
children: j0
|
|
6980
6980
|
}, t);
|
|
6981
|
-
return
|
|
6981
|
+
return Ge = b.makeSpan(["tag"], [Ge], t), b.makeFragment([c, Ge]);
|
|
6982
6982
|
}, X1 = {
|
|
6983
6983
|
c: "center ",
|
|
6984
6984
|
l: "left ",
|
|
6985
6985
|
r: "right "
|
|
6986
6986
|
}, M0 = function(e, t) {
|
|
6987
|
-
for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]),
|
|
6988
|
-
for (var h = e.body[
|
|
6987
|
+
for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]), u = 0; u < e.body.length; u++) {
|
|
6988
|
+
for (var h = e.body[u], c = [], p = 0; p < h.length; p++)
|
|
6989
6989
|
c.push(new S.MathNode("mtd", [X(h[p], t)]));
|
|
6990
|
-
e.tags && e.tags[
|
|
6990
|
+
e.tags && e.tags[u] && (c.unshift(n), c.push(n), e.leqno ? c.unshift(s) : c.push(s)), a.push(new S.MathNode("mtr", c));
|
|
6991
6991
|
}
|
|
6992
6992
|
var g = new S.MathNode("mtable", a), y = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
|
|
6993
6993
|
g.setAttribute("rowspacing", A(y));
|
|
@@ -7000,7 +7000,7 @@ var S0 = function(e, t) {
|
|
|
7000
7000
|
g.setAttribute("columnalign", x.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
|
|
7001
7001
|
}
|
|
7002
7002
|
if (e.colSeparationType === "align") {
|
|
7003
|
-
for (var
|
|
7003
|
+
for (var G = e.cols || [], H = "", U = 1; U < G.length; U++)
|
|
7004
7004
|
H += U % 2 ? "0em " : "1em ";
|
|
7005
7005
|
g.setAttribute("columnspacing", H.trim());
|
|
7006
7006
|
} else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em");
|
|
@@ -7011,7 +7011,7 @@ var S0 = function(e, t) {
|
|
|
7011
7011
|
return /[sd]/.test(P) && g.setAttribute("rowlines", P.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;
|
|
7012
7012
|
}, Zr = function(e, t) {
|
|
7013
7013
|
e.envName.indexOf("ed") === -1 && Oe(e);
|
|
7014
|
-
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split",
|
|
7014
|
+
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", u = U0(e.parser, {
|
|
7015
7015
|
cols: a,
|
|
7016
7016
|
addJot: !0,
|
|
7017
7017
|
autoTag: s ? void 0 : zt(e.envName),
|
|
@@ -7032,10 +7032,10 @@ var S0 = function(e, t) {
|
|
|
7032
7032
|
h = Number(g), c = h * 2;
|
|
7033
7033
|
}
|
|
7034
7034
|
var x = !c;
|
|
7035
|
-
|
|
7035
|
+
u.body.forEach(function(N) {
|
|
7036
7036
|
for (var I = 1; I < N.length; I += 2) {
|
|
7037
|
-
var F = O(N[I], "styling"),
|
|
7038
|
-
|
|
7037
|
+
var F = O(N[I], "styling"), G = O(F.body[0], "ordgroup");
|
|
7038
|
+
G.body.unshift(p);
|
|
7039
7039
|
}
|
|
7040
7040
|
if (x)
|
|
7041
7041
|
c < N.length && (c = N.length);
|
|
@@ -7054,7 +7054,7 @@ var S0 = function(e, t) {
|
|
|
7054
7054
|
postgap: 0
|
|
7055
7055
|
};
|
|
7056
7056
|
}
|
|
7057
|
-
return
|
|
7057
|
+
return u.colSeparationType = x ? "align" : "alignat", u;
|
|
7058
7058
|
};
|
|
7059
7059
|
k0({
|
|
7060
7060
|
type: "array",
|
|
@@ -7063,8 +7063,8 @@ k0({
|
|
|
7063
7063
|
numArgs: 1
|
|
7064
7064
|
},
|
|
7065
7065
|
handler(r, e) {
|
|
7066
|
-
var t =
|
|
7067
|
-
var h = xt(
|
|
7066
|
+
var t = Ee(e[0]), a = t ? [e[0]] : O(e[0], "ordgroup").body, n = a.map(function(u) {
|
|
7067
|
+
var h = xt(u), c = h.text;
|
|
7068
7068
|
if ("lcr".indexOf(c) !== -1)
|
|
7069
7069
|
return {
|
|
7070
7070
|
type: "align",
|
|
@@ -7080,7 +7080,7 @@ k0({
|
|
|
7080
7080
|
type: "separator",
|
|
7081
7081
|
separator: ":"
|
|
7082
7082
|
};
|
|
7083
|
-
throw new M("Unknown column alignment: " + c,
|
|
7083
|
+
throw new M("Unknown column alignment: " + c, u);
|
|
7084
7084
|
}), s = {
|
|
7085
7085
|
cols: n,
|
|
7086
7086
|
hskipBeforeAndAfter: !0,
|
|
@@ -7124,8 +7124,8 @@ k0({
|
|
|
7124
7124
|
}];
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
|
-
var s = U0(r.parser, a, At(r.envName)),
|
|
7128
|
-
return s.cols = new Array(
|
|
7127
|
+
var s = U0(r.parser, a, At(r.envName)), u = Math.max(0, ...s.body.map((h) => h.length));
|
|
7128
|
+
return s.cols = new Array(u).fill({
|
|
7129
7129
|
type: "align",
|
|
7130
7130
|
align: t
|
|
7131
7131
|
}), e ? {
|
|
@@ -7163,14 +7163,14 @@ k0({
|
|
|
7163
7163
|
numArgs: 1
|
|
7164
7164
|
},
|
|
7165
7165
|
handler(r, e) {
|
|
7166
|
-
var t =
|
|
7167
|
-
var h = xt(
|
|
7166
|
+
var t = Ee(e[0]), a = t ? [e[0]] : O(e[0], "ordgroup").body, n = a.map(function(u) {
|
|
7167
|
+
var h = xt(u), c = h.text;
|
|
7168
7168
|
if ("lc".indexOf(c) !== -1)
|
|
7169
7169
|
return {
|
|
7170
7170
|
type: "align",
|
|
7171
7171
|
align: c
|
|
7172
7172
|
};
|
|
7173
|
-
throw new M("Unknown column alignment: " + c,
|
|
7173
|
+
throw new M("Unknown column alignment: " + c, u);
|
|
7174
7174
|
});
|
|
7175
7175
|
if (n.length > 1)
|
|
7176
7176
|
throw new M("{subarray} can contain only one column");
|
|
@@ -7330,8 +7330,8 @@ B({
|
|
|
7330
7330
|
} = r, n = e[0];
|
|
7331
7331
|
if (n.type !== "ordgroup")
|
|
7332
7332
|
throw new M("Invalid environment name", n);
|
|
7333
|
-
for (var s = "",
|
|
7334
|
-
s += O(n.body[
|
|
7333
|
+
for (var s = "", u = 0; u < n.body.length; ++u)
|
|
7334
|
+
s += O(n.body[u], "textord").text;
|
|
7335
7335
|
if (a === "\\begin") {
|
|
7336
7336
|
if (!_t.hasOwnProperty(s))
|
|
7337
7337
|
throw new M("No such environment: " + s, n);
|
|
@@ -7418,7 +7418,7 @@ B({
|
|
|
7418
7418
|
handler: (r, e) => {
|
|
7419
7419
|
var {
|
|
7420
7420
|
parser: t
|
|
7421
|
-
} = r, a = e[0], n =
|
|
7421
|
+
} = r, a = e[0], n = V.isCharacterBox(a);
|
|
7422
7422
|
return {
|
|
7423
7423
|
type: "mclass",
|
|
7424
7424
|
mode: t.mode,
|
|
@@ -7447,7 +7447,7 @@ B({
|
|
|
7447
7447
|
breakOnTokenText: n
|
|
7448
7448
|
} = r, {
|
|
7449
7449
|
mode: s
|
|
7450
|
-
} = t,
|
|
7450
|
+
} = t, u = t.parseExpression(!0, n), h = "math" + a.slice(1);
|
|
7451
7451
|
return {
|
|
7452
7452
|
type: "font",
|
|
7453
7453
|
mode: s,
|
|
@@ -7455,7 +7455,7 @@ B({
|
|
|
7455
7455
|
body: {
|
|
7456
7456
|
type: "ordgroup",
|
|
7457
7457
|
mode: t.mode,
|
|
7458
|
-
body:
|
|
7458
|
+
body: u
|
|
7459
7459
|
}
|
|
7460
7460
|
};
|
|
7461
7461
|
},
|
|
@@ -7464,24 +7464,24 @@ B({
|
|
|
7464
7464
|
});
|
|
7465
7465
|
var Qr = (r, e) => {
|
|
7466
7466
|
var t = e;
|
|
7467
|
-
return r === "display" ? t = t.id >=
|
|
7467
|
+
return r === "display" ? t = t.id >= R.SCRIPT.id ? t.text() : R.DISPLAY : r === "text" && t.size === R.DISPLAY.size ? t = R.TEXT : r === "script" ? t = R.SCRIPT : r === "scriptscript" && (t = R.SCRIPTSCRIPT), t;
|
|
7468
7468
|
}, Tt = (r, e) => {
|
|
7469
7469
|
var t = Qr(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
|
|
7470
7470
|
s = e.havingStyle(a);
|
|
7471
|
-
var
|
|
7471
|
+
var u = L(r.numer, s, e);
|
|
7472
7472
|
if (r.continued) {
|
|
7473
7473
|
var h = 8.5 / e.fontMetrics().ptPerEm, c = 3.5 / e.fontMetrics().ptPerEm;
|
|
7474
|
-
|
|
7474
|
+
u.height = u.height < h ? h : u.height, u.depth = u.depth < c ? c : u.depth;
|
|
7475
7475
|
}
|
|
7476
7476
|
s = e.havingStyle(n);
|
|
7477
7477
|
var p = L(r.denom, s, e), g, y, w;
|
|
7478
7478
|
r.hasBarLine ? (r.barSize ? (y = K(r.barSize, e), g = b.makeLineSpan("frac-line", e, y)) : g = b.makeLineSpan("frac-line", e), y = g.height, w = g.height) : (g = null, y = 0, w = e.fontMetrics().defaultRuleThickness);
|
|
7479
7479
|
var x, z, T;
|
|
7480
|
-
t.size ===
|
|
7480
|
+
t.size === R.DISPLAY.size || r.size === "display" ? (x = e.fontMetrics().num1, y > 0 ? z = 3 * w : z = 7 * w, T = e.fontMetrics().denom1) : (y > 0 ? (x = e.fontMetrics().num2, z = w) : (x = e.fontMetrics().num3, z = 3 * w), T = e.fontMetrics().denom2);
|
|
7481
7481
|
var C;
|
|
7482
7482
|
if (g) {
|
|
7483
7483
|
var I = e.fontMetrics().axisHeight;
|
|
7484
|
-
x -
|
|
7484
|
+
x - u.depth - (I + 0.5 * y) < z && (x += z - (x - u.depth - (I + 0.5 * y))), I - 0.5 * y - (p.height - T) < z && (T += z - (I - 0.5 * y - (p.height - T)));
|
|
7485
7485
|
var F = -(I - 0.5 * y);
|
|
7486
7486
|
C = b.makeVList({
|
|
7487
7487
|
positionType: "individualShift",
|
|
@@ -7495,12 +7495,12 @@ var Qr = (r, e) => {
|
|
|
7495
7495
|
shift: F
|
|
7496
7496
|
}, {
|
|
7497
7497
|
type: "elem",
|
|
7498
|
-
elem:
|
|
7498
|
+
elem: u,
|
|
7499
7499
|
shift: -x
|
|
7500
7500
|
}]
|
|
7501
7501
|
}, e);
|
|
7502
7502
|
} else {
|
|
7503
|
-
var N = x -
|
|
7503
|
+
var N = x - u.depth - (p.height - T);
|
|
7504
7504
|
N < z && (x += 0.5 * (z - N), T += 0.5 * (z - N)), C = b.makeVList({
|
|
7505
7505
|
positionType: "individualShift",
|
|
7506
7506
|
children: [{
|
|
@@ -7509,16 +7509,16 @@ var Qr = (r, e) => {
|
|
|
7509
7509
|
shift: T
|
|
7510
7510
|
}, {
|
|
7511
7511
|
type: "elem",
|
|
7512
|
-
elem:
|
|
7512
|
+
elem: u,
|
|
7513
7513
|
shift: -x
|
|
7514
7514
|
}]
|
|
7515
7515
|
}, e);
|
|
7516
7516
|
}
|
|
7517
7517
|
s = e.havingStyle(t), C.height *= s.sizeMultiplier / e.sizeMultiplier, C.depth *= s.sizeMultiplier / e.sizeMultiplier;
|
|
7518
|
-
var
|
|
7519
|
-
t.size ===
|
|
7518
|
+
var G;
|
|
7519
|
+
t.size === R.DISPLAY.size ? G = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? G = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : G = e.fontMetrics().delim2;
|
|
7520
7520
|
var H, U;
|
|
7521
|
-
return r.leftDelim == null ? H =
|
|
7521
|
+
return r.leftDelim == null ? H = ue(e, ["mopen"]) : H = D0.customSizedDelim(r.leftDelim, G, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = b.makeSpan([]) : r.rightDelim == null ? U = ue(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, G, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [H, b.makeSpan(["mfrac"], [C]), U], e);
|
|
7522
7522
|
}, Bt = (r, e) => {
|
|
7523
7523
|
var t = new S.MathNode("mfrac", [X(r.numer, e), X(r.denom, e)]);
|
|
7524
7524
|
if (!r.hasBarLine)
|
|
@@ -7530,20 +7530,20 @@ var Qr = (r, e) => {
|
|
|
7530
7530
|
var n = Qr(r.size, e.style);
|
|
7531
7531
|
if (n.size !== e.style.size) {
|
|
7532
7532
|
t = new S.MathNode("mstyle", [t]);
|
|
7533
|
-
var s = n.size ===
|
|
7533
|
+
var s = n.size === R.DISPLAY.size ? "true" : "false";
|
|
7534
7534
|
t.setAttribute("displaystyle", s), t.setAttribute("scriptlevel", "0");
|
|
7535
7535
|
}
|
|
7536
7536
|
if (r.leftDelim != null || r.rightDelim != null) {
|
|
7537
|
-
var
|
|
7537
|
+
var u = [];
|
|
7538
7538
|
if (r.leftDelim != null) {
|
|
7539
7539
|
var h = new S.MathNode("mo", [new S.TextNode(r.leftDelim.replace("\\", ""))]);
|
|
7540
|
-
h.setAttribute("fence", "true"),
|
|
7540
|
+
h.setAttribute("fence", "true"), u.push(h);
|
|
7541
7541
|
}
|
|
7542
|
-
if (
|
|
7542
|
+
if (u.push(t), r.rightDelim != null) {
|
|
7543
7543
|
var c = new S.MathNode("mo", [new S.TextNode(r.rightDelim.replace("\\", ""))]);
|
|
7544
|
-
c.setAttribute("fence", "true"),
|
|
7544
|
+
c.setAttribute("fence", "true"), u.push(c);
|
|
7545
7545
|
}
|
|
7546
|
-
return bt(
|
|
7546
|
+
return bt(u);
|
|
7547
7547
|
}
|
|
7548
7548
|
return t;
|
|
7549
7549
|
};
|
|
@@ -7570,26 +7570,26 @@ B({
|
|
|
7570
7570
|
var {
|
|
7571
7571
|
parser: t,
|
|
7572
7572
|
funcName: a
|
|
7573
|
-
} = r, n = e[0], s = e[1],
|
|
7573
|
+
} = r, n = e[0], s = e[1], u, h = null, c = null, p = "auto";
|
|
7574
7574
|
switch (a) {
|
|
7575
7575
|
case "\\dfrac":
|
|
7576
7576
|
case "\\frac":
|
|
7577
7577
|
case "\\tfrac":
|
|
7578
|
-
|
|
7578
|
+
u = !0;
|
|
7579
7579
|
break;
|
|
7580
7580
|
case "\\\\atopfrac":
|
|
7581
|
-
|
|
7581
|
+
u = !1;
|
|
7582
7582
|
break;
|
|
7583
7583
|
case "\\dbinom":
|
|
7584
7584
|
case "\\binom":
|
|
7585
7585
|
case "\\tbinom":
|
|
7586
|
-
|
|
7586
|
+
u = !1, h = "(", c = ")";
|
|
7587
7587
|
break;
|
|
7588
7588
|
case "\\\\bracefrac":
|
|
7589
|
-
|
|
7589
|
+
u = !1, h = "\\{", c = "\\}";
|
|
7590
7590
|
break;
|
|
7591
7591
|
case "\\\\brackfrac":
|
|
7592
|
-
|
|
7592
|
+
u = !1, h = "[", c = "]";
|
|
7593
7593
|
break;
|
|
7594
7594
|
default:
|
|
7595
7595
|
throw new Error("Unrecognized genfrac command");
|
|
@@ -7610,7 +7610,7 @@ B({
|
|
|
7610
7610
|
continued: !1,
|
|
7611
7611
|
numer: n,
|
|
7612
7612
|
denom: s,
|
|
7613
|
-
hasBarLine:
|
|
7613
|
+
hasBarLine: u,
|
|
7614
7614
|
leftDelim: h,
|
|
7615
7615
|
rightDelim: c,
|
|
7616
7616
|
size: p,
|
|
@@ -7699,7 +7699,7 @@ B({
|
|
|
7699
7699
|
handler(r, e) {
|
|
7700
7700
|
var {
|
|
7701
7701
|
parser: t
|
|
7702
|
-
} = r, a = e[4], n = e[5], s = Ne(e[0]),
|
|
7702
|
+
} = r, a = e[4], n = e[5], s = Ne(e[0]), u = 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 = O(e[2], "size"), g, y = null;
|
|
7703
7703
|
p.isBlank ? g = !0 : (y = p.value, g = y.number > 0);
|
|
7704
7704
|
var w = "auto", x = e[3];
|
|
7705
7705
|
if (x.type === "ordgroup") {
|
|
@@ -7717,7 +7717,7 @@ B({
|
|
|
7717
7717
|
continued: !1,
|
|
7718
7718
|
hasBarLine: g,
|
|
7719
7719
|
barSize: y,
|
|
7720
|
-
leftDelim:
|
|
7720
|
+
leftDelim: u,
|
|
7721
7721
|
rightDelim: c,
|
|
7722
7722
|
size: w
|
|
7723
7723
|
};
|
|
@@ -7757,14 +7757,14 @@ B({
|
|
|
7757
7757
|
handler: (r, e) => {
|
|
7758
7758
|
var {
|
|
7759
7759
|
parser: t
|
|
7760
|
-
} = r, a = e[0], n = wa(O(e[1], "infix").size), s = e[2],
|
|
7760
|
+
} = r, a = e[0], n = wa(O(e[1], "infix").size), s = e[2], u = n.number > 0;
|
|
7761
7761
|
return {
|
|
7762
7762
|
type: "genfrac",
|
|
7763
7763
|
mode: t.mode,
|
|
7764
7764
|
numer: a,
|
|
7765
7765
|
denom: s,
|
|
7766
7766
|
continued: !1,
|
|
7767
|
-
hasBarLine:
|
|
7767
|
+
hasBarLine: u,
|
|
7768
7768
|
barSize: n,
|
|
7769
7769
|
leftDelim: null,
|
|
7770
7770
|
rightDelim: null,
|
|
@@ -7777,7 +7777,7 @@ B({
|
|
|
7777
7777
|
var _r = (r, e) => {
|
|
7778
7778
|
var t = e.style, a, n;
|
|
7779
7779
|
r.type === "supsub" ? (a = r.sup ? L(r.sup, e.havingStyle(t.sup()), e) : L(r.sub, e.havingStyle(t.sub()), e), n = O(r.base, "horizBrace")) : n = O(r, "horizBrace");
|
|
7780
|
-
var s = L(n.base, e.havingBaseStyle(
|
|
7780
|
+
var s = L(n.base, e.havingBaseStyle(R.DISPLAY)), u = q0.svgSpan(n, e), h;
|
|
7781
7781
|
if (n.isOver ? (h = b.makeVList({
|
|
7782
7782
|
positionType: "firstBaseline",
|
|
7783
7783
|
children: [{
|
|
@@ -7788,14 +7788,14 @@ var _r = (r, e) => {
|
|
|
7788
7788
|
size: 0.1
|
|
7789
7789
|
}, {
|
|
7790
7790
|
type: "elem",
|
|
7791
|
-
elem:
|
|
7791
|
+
elem: u
|
|
7792
7792
|
}]
|
|
7793
7793
|
}, e), h.children[0].children[0].children[1].classes.push("svg-align")) : (h = b.makeVList({
|
|
7794
7794
|
positionType: "bottom",
|
|
7795
|
-
positionData: s.depth + 0.1 +
|
|
7795
|
+
positionData: s.depth + 0.1 + u.height,
|
|
7796
7796
|
children: [{
|
|
7797
7797
|
type: "elem",
|
|
7798
|
-
elem:
|
|
7798
|
+
elem: u
|
|
7799
7799
|
}, {
|
|
7800
7800
|
type: "kern",
|
|
7801
7801
|
size: 0.1
|
|
@@ -7886,7 +7886,7 @@ B({
|
|
|
7886
7886
|
return b.makeAnchor(r.href, [], t, e);
|
|
7887
7887
|
},
|
|
7888
7888
|
mathmlBuilder: (r, e) => {
|
|
7889
|
-
var t =
|
|
7889
|
+
var t = G0(r.body, e);
|
|
7890
7890
|
return t instanceof h0 || (t = new h0("mrow", [t])), t.setAttribute("href", r.href), t;
|
|
7891
7891
|
}
|
|
7892
7892
|
});
|
|
@@ -7908,11 +7908,11 @@ B({
|
|
|
7908
7908
|
}))
|
|
7909
7909
|
return t.formatUnsupportedCmd("\\url");
|
|
7910
7910
|
for (var n = [], s = 0; s < a.length; s++) {
|
|
7911
|
-
var
|
|
7912
|
-
|
|
7911
|
+
var u = a[s];
|
|
7912
|
+
u === "~" && (u = "\\textasciitilde"), n.push({
|
|
7913
7913
|
type: "textord",
|
|
7914
7914
|
mode: "text",
|
|
7915
|
-
text:
|
|
7915
|
+
text: u
|
|
7916
7916
|
});
|
|
7917
7917
|
}
|
|
7918
7918
|
var h = {
|
|
@@ -7953,7 +7953,7 @@ B({
|
|
|
7953
7953
|
return b.makeFragment(t);
|
|
7954
7954
|
},
|
|
7955
7955
|
mathmlBuilder(r, e) {
|
|
7956
|
-
return new S.MathNode("mrow",
|
|
7956
|
+
return new S.MathNode("mrow", o0(r.body, e));
|
|
7957
7957
|
}
|
|
7958
7958
|
});
|
|
7959
7959
|
B({
|
|
@@ -7970,34 +7970,35 @@ B({
|
|
|
7970
7970
|
funcName: a
|
|
7971
7971
|
} = r, n = O(e[0], "raw").string, s = e[1];
|
|
7972
7972
|
t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
|
|
7973
|
-
var
|
|
7973
|
+
var u, h = {};
|
|
7974
7974
|
switch (a) {
|
|
7975
7975
|
case "\\htmlClass":
|
|
7976
|
-
h.class = n,
|
|
7976
|
+
h.class = n, u = {
|
|
7977
7977
|
command: "\\htmlClass",
|
|
7978
7978
|
class: n
|
|
7979
7979
|
};
|
|
7980
7980
|
break;
|
|
7981
7981
|
case "\\htmlId":
|
|
7982
|
-
h.id = n,
|
|
7982
|
+
h.id = n, u = {
|
|
7983
7983
|
command: "\\htmlId",
|
|
7984
7984
|
id: n
|
|
7985
7985
|
};
|
|
7986
7986
|
break;
|
|
7987
7987
|
case "\\htmlStyle":
|
|
7988
|
-
h.style = n,
|
|
7988
|
+
h.style = n, u = {
|
|
7989
7989
|
command: "\\htmlStyle",
|
|
7990
7990
|
style: n
|
|
7991
7991
|
};
|
|
7992
7992
|
break;
|
|
7993
7993
|
case "\\htmlData": {
|
|
7994
7994
|
for (var c = n.split(","), p = 0; p < c.length; p++) {
|
|
7995
|
-
var g = c[p].
|
|
7996
|
-
if (
|
|
7997
|
-
throw new M("
|
|
7998
|
-
|
|
7995
|
+
var g = c[p], y = g.indexOf("=");
|
|
7996
|
+
if (y < 0)
|
|
7997
|
+
throw new M("\\htmlData key/value '" + g + "' missing equals sign");
|
|
7998
|
+
var w = g.slice(0, y), x = g.slice(y + 1);
|
|
7999
|
+
h["data-" + w.trim()] = x;
|
|
7999
8000
|
}
|
|
8000
|
-
|
|
8001
|
+
u = {
|
|
8001
8002
|
command: "\\htmlData",
|
|
8002
8003
|
attributes: h
|
|
8003
8004
|
};
|
|
@@ -8006,7 +8007,7 @@ B({
|
|
|
8006
8007
|
default:
|
|
8007
8008
|
throw new Error("Unrecognized html command");
|
|
8008
8009
|
}
|
|
8009
|
-
return t.settings.isTrusted(
|
|
8010
|
+
return t.settings.isTrusted(u) ? {
|
|
8010
8011
|
type: "html",
|
|
8011
8012
|
mode: t.mode,
|
|
8012
8013
|
attributes: h,
|
|
@@ -8021,7 +8022,7 @@ B({
|
|
|
8021
8022
|
s !== "class" && r.attributes.hasOwnProperty(s) && n.setAttribute(s, r.attributes[s]);
|
|
8022
8023
|
return n;
|
|
8023
8024
|
},
|
|
8024
|
-
mathmlBuilder: (r, e) =>
|
|
8025
|
+
mathmlBuilder: (r, e) => G0(r.body, e)
|
|
8025
8026
|
});
|
|
8026
8027
|
B({
|
|
8027
8028
|
type: "htmlmathml",
|
|
@@ -8045,7 +8046,7 @@ B({
|
|
|
8045
8046
|
var t = t0(r.html, e, !1);
|
|
8046
8047
|
return b.makeFragment(t);
|
|
8047
8048
|
},
|
|
8048
|
-
mathmlBuilder: (r, e) =>
|
|
8049
|
+
mathmlBuilder: (r, e) => G0(r.mathml, e)
|
|
8049
8050
|
});
|
|
8050
8051
|
var et = function(e) {
|
|
8051
8052
|
if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))
|
|
@@ -8083,7 +8084,7 @@ B({
|
|
|
8083
8084
|
}, s = {
|
|
8084
8085
|
number: 0.9,
|
|
8085
8086
|
unit: "em"
|
|
8086
|
-
},
|
|
8087
|
+
}, u = {
|
|
8087
8088
|
number: 0,
|
|
8088
8089
|
unit: "em"
|
|
8089
8090
|
}, h = "";
|
|
@@ -8103,7 +8104,7 @@ B({
|
|
|
8103
8104
|
s = et(w);
|
|
8104
8105
|
break;
|
|
8105
8106
|
case "totalheight":
|
|
8106
|
-
|
|
8107
|
+
u = et(w);
|
|
8107
8108
|
break;
|
|
8108
8109
|
default:
|
|
8109
8110
|
throw new M("Invalid key: '" + y[0] + "' in \\includegraphics.");
|
|
@@ -8120,7 +8121,7 @@ B({
|
|
|
8120
8121
|
alt: h,
|
|
8121
8122
|
width: n,
|
|
8122
8123
|
height: s,
|
|
8123
|
-
totalheight:
|
|
8124
|
+
totalheight: u,
|
|
8124
8125
|
src: x
|
|
8125
8126
|
} : a.formatUnsupportedCmd("\\includegraphics");
|
|
8126
8127
|
},
|
|
@@ -8133,8 +8134,8 @@ B({
|
|
|
8133
8134
|
height: A(t + a)
|
|
8134
8135
|
};
|
|
8135
8136
|
n > 0 && (s.width = A(n)), a > 0 && (s.verticalAlign = A(-a));
|
|
8136
|
-
var
|
|
8137
|
-
return
|
|
8137
|
+
var u = new $a(r.src, r.alt, s);
|
|
8138
|
+
return u.height = t, u.depth = a, u;
|
|
8138
8139
|
},
|
|
8139
8140
|
mathmlBuilder: (r, e) => {
|
|
8140
8141
|
var t = new S.MathNode("mglyph", []);
|
|
@@ -8162,8 +8163,8 @@ B({
|
|
|
8162
8163
|
funcName: a
|
|
8163
8164
|
} = r, n = O(e[0], "size");
|
|
8164
8165
|
if (t.settings.strict) {
|
|
8165
|
-
var s = a[1] === "m",
|
|
8166
|
-
s ? (
|
|
8166
|
+
var s = a[1] === "m", u = n.value.unit === "mu";
|
|
8167
|
+
s ? (u || 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")) : u && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " doesn't support mu units");
|
|
8167
8168
|
}
|
|
8168
8169
|
return {
|
|
8169
8170
|
type: "kern",
|
|
@@ -8227,12 +8228,12 @@ B({
|
|
|
8227
8228
|
parser: a
|
|
8228
8229
|
} = r, n = a.mode;
|
|
8229
8230
|
a.switchMode("math");
|
|
8230
|
-
var s = t === "\\(" ? "\\)" : "$",
|
|
8231
|
+
var s = t === "\\(" ? "\\)" : "$", u = a.parseExpression(!1, s);
|
|
8231
8232
|
return a.expect(s), a.switchMode(n), {
|
|
8232
8233
|
type: "styling",
|
|
8233
8234
|
mode: a.mode,
|
|
8234
8235
|
style: "text",
|
|
8235
|
-
body:
|
|
8236
|
+
body: u
|
|
8236
8237
|
};
|
|
8237
8238
|
}
|
|
8238
8239
|
});
|
|
@@ -8251,13 +8252,13 @@ B({
|
|
|
8251
8252
|
});
|
|
8252
8253
|
var ar = (r, e) => {
|
|
8253
8254
|
switch (e.style.size) {
|
|
8254
|
-
case
|
|
8255
|
+
case R.DISPLAY.size:
|
|
8255
8256
|
return r.display;
|
|
8256
|
-
case
|
|
8257
|
+
case R.TEXT.size:
|
|
8257
8258
|
return r.text;
|
|
8258
|
-
case
|
|
8259
|
+
case R.SCRIPT.size:
|
|
8259
8260
|
return r.script;
|
|
8260
|
-
case
|
|
8261
|
+
case R.SCRIPTSCRIPT.size:
|
|
8261
8262
|
return r.scriptscript;
|
|
8262
8263
|
default:
|
|
8263
8264
|
return r.text;
|
|
@@ -8289,12 +8290,12 @@ B({
|
|
|
8289
8290
|
},
|
|
8290
8291
|
mathmlBuilder: (r, e) => {
|
|
8291
8292
|
var t = ar(r, e);
|
|
8292
|
-
return
|
|
8293
|
+
return G0(t, e);
|
|
8293
8294
|
}
|
|
8294
8295
|
});
|
|
8295
|
-
var ea = (r, e, t, a, n, s,
|
|
8296
|
+
var ea = (r, e, t, a, n, s, u) => {
|
|
8296
8297
|
r = b.makeSpan([], [r]);
|
|
8297
|
-
var h = t &&
|
|
8298
|
+
var h = t && V.isCharacterBox(t), c, p;
|
|
8298
8299
|
if (e) {
|
|
8299
8300
|
var g = L(e, a.havingStyle(n.sup()), a);
|
|
8300
8301
|
p = {
|
|
@@ -8311,7 +8312,7 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8311
8312
|
}
|
|
8312
8313
|
var w;
|
|
8313
8314
|
if (p && c) {
|
|
8314
|
-
var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth +
|
|
8315
|
+
var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth + u;
|
|
8315
8316
|
w = b.makeVList({
|
|
8316
8317
|
positionType: "bottom",
|
|
8317
8318
|
positionData: x,
|
|
@@ -8341,7 +8342,7 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8341
8342
|
}]
|
|
8342
8343
|
}, a);
|
|
8343
8344
|
} else if (c) {
|
|
8344
|
-
var z = r.height -
|
|
8345
|
+
var z = r.height - u;
|
|
8345
8346
|
w = b.makeVList({
|
|
8346
8347
|
positionType: "top",
|
|
8347
8348
|
positionData: z,
|
|
@@ -8361,7 +8362,7 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8361
8362
|
}]
|
|
8362
8363
|
}, a);
|
|
8363
8364
|
} else if (p) {
|
|
8364
|
-
var T = r.depth +
|
|
8365
|
+
var T = r.depth + u;
|
|
8365
8366
|
w = b.makeVList({
|
|
8366
8367
|
positionType: "bottom",
|
|
8367
8368
|
positionData: T,
|
|
@@ -8391,8 +8392,8 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8391
8392
|
}, ta = ["\\smallint"], ae = (r, e) => {
|
|
8392
8393
|
var t, a, n = !1, s;
|
|
8393
8394
|
r.type === "supsub" ? (t = r.sup, a = r.sub, s = O(r.base, "op"), n = !0) : s = O(r, "op");
|
|
8394
|
-
var
|
|
8395
|
-
|
|
8395
|
+
var u = e.style, h = !1;
|
|
8396
|
+
u.size === R.DISPLAY.size && s.symbol && !ta.includes(s.name) && (h = !0);
|
|
8396
8397
|
var c;
|
|
8397
8398
|
if (s.symbol) {
|
|
8398
8399
|
var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
|
|
@@ -8420,13 +8421,13 @@ var ea = (r, e, t, a, n, s, o) => {
|
|
|
8420
8421
|
c = b.makeSpan(["mop"], z, e);
|
|
8421
8422
|
}
|
|
8422
8423
|
var C = 0, N = 0;
|
|
8423
|
-
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,
|
|
8424
|
+
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, u, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
|
|
8424
8425
|
}, me = (r, e) => {
|
|
8425
8426
|
var t;
|
|
8426
8427
|
if (r.symbol)
|
|
8427
8428
|
t = new h0("mo", [v0(r.name, r.mode)]), ta.includes(r.name) && t.setAttribute("largeop", "false");
|
|
8428
8429
|
else if (r.body)
|
|
8429
|
-
t = new h0("mo",
|
|
8430
|
+
t = new h0("mo", o0(r.body, e));
|
|
8430
8431
|
else {
|
|
8431
8432
|
t = new h0("mi", [new w0(r.name.slice(1))]);
|
|
8432
8433
|
var a = new h0("mo", [v0("", "text")]);
|
|
@@ -8551,7 +8552,8 @@ B({
|
|
|
8551
8552
|
type: "op",
|
|
8552
8553
|
names: ["\\int", "\\iint", "\\iiint", "\\oint", "\\oiint", "\\oiiint", "∫", "∬", "∭", "∮", "∯", "∰"],
|
|
8553
8554
|
props: {
|
|
8554
|
-
numArgs: 0
|
|
8555
|
+
numArgs: 0,
|
|
8556
|
+
allowedInArgument: !0
|
|
8555
8557
|
},
|
|
8556
8558
|
handler(r) {
|
|
8557
8559
|
var {
|
|
@@ -8573,7 +8575,7 @@ B({
|
|
|
8573
8575
|
var ra = (r, e) => {
|
|
8574
8576
|
var t, a, n = !1, s;
|
|
8575
8577
|
r.type === "supsub" ? (t = r.sup, a = r.sub, s = O(r.base, "operatorname"), n = !0) : s = O(r, "operatorname");
|
|
8576
|
-
var
|
|
8578
|
+
var u;
|
|
8577
8579
|
if (s.body.length > 0) {
|
|
8578
8580
|
for (var h = s.body.map((y) => {
|
|
8579
8581
|
var w = y.text;
|
|
@@ -8586,12 +8588,12 @@ var ra = (r, e) => {
|
|
|
8586
8588
|
var g = c[p];
|
|
8587
8589
|
g instanceof p0 && (g.text = g.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
8588
8590
|
}
|
|
8589
|
-
|
|
8591
|
+
u = b.makeSpan(["mop"], c, e);
|
|
8590
8592
|
} else
|
|
8591
|
-
|
|
8592
|
-
return n ? ea(
|
|
8593
|
+
u = b.makeSpan(["mop"], [], e);
|
|
8594
|
+
return n ? ea(u, t, a, e, e.style, 0, 0) : u;
|
|
8593
8595
|
}, Z1 = (r, e) => {
|
|
8594
|
-
for (var t =
|
|
8596
|
+
for (var t = o0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
|
|
8595
8597
|
var s = t[n];
|
|
8596
8598
|
if (!(s instanceof S.SpaceNode)) if (s instanceof S.MathNode)
|
|
8597
8599
|
switch (s.type) {
|
|
@@ -8603,8 +8605,8 @@ var ra = (r, e) => {
|
|
|
8603
8605
|
break;
|
|
8604
8606
|
// Do nothing yet.
|
|
8605
8607
|
case "mo": {
|
|
8606
|
-
var
|
|
8607
|
-
s.children.length === 1 &&
|
|
8608
|
+
var u = s.children[0];
|
|
8609
|
+
s.children.length === 1 && u instanceof S.TextNode ? u.text = u.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : a = !1;
|
|
8608
8610
|
break;
|
|
8609
8611
|
}
|
|
8610
8612
|
default:
|
|
@@ -8652,7 +8654,7 @@ W0({
|
|
|
8652
8654
|
return r.semisimple ? b.makeFragment(t0(r.body, e, !1)) : b.makeSpan(["mord"], t0(r.body, e, !0), e);
|
|
8653
8655
|
},
|
|
8654
8656
|
mathmlBuilder(r, e) {
|
|
8655
|
-
return
|
|
8657
|
+
return G0(r.body, e, !0);
|
|
8656
8658
|
}
|
|
8657
8659
|
});
|
|
8658
8660
|
B({
|
|
@@ -8719,7 +8721,7 @@ B({
|
|
|
8719
8721
|
return b.makeFragment(t);
|
|
8720
8722
|
},
|
|
8721
8723
|
mathmlBuilder: (r, e) => {
|
|
8722
|
-
var t =
|
|
8724
|
+
var t = o0(r.body, e);
|
|
8723
8725
|
return new S.MathNode("mphantom", t);
|
|
8724
8726
|
}
|
|
8725
8727
|
});
|
|
@@ -8754,7 +8756,7 @@ B({
|
|
|
8754
8756
|
}, e), b.makeSpan(["mord"], [t], e);
|
|
8755
8757
|
},
|
|
8756
8758
|
mathmlBuilder: (r, e) => {
|
|
8757
|
-
var t =
|
|
8759
|
+
var t = o0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
|
|
8758
8760
|
return n.setAttribute("height", "0px"), n.setAttribute("depth", "0px"), n;
|
|
8759
8761
|
}
|
|
8760
8762
|
});
|
|
@@ -8780,7 +8782,7 @@ B({
|
|
|
8780
8782
|
return b.makeSpan(["mord", "rlap"], [t, a], e);
|
|
8781
8783
|
},
|
|
8782
8784
|
mathmlBuilder: (r, e) => {
|
|
8783
|
-
var t =
|
|
8785
|
+
var t = o0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
|
|
8784
8786
|
return n.setAttribute("width", "0px"), n;
|
|
8785
8787
|
}
|
|
8786
8788
|
});
|
|
@@ -8850,13 +8852,13 @@ B({
|
|
|
8850
8852
|
handler(r, e, t) {
|
|
8851
8853
|
var {
|
|
8852
8854
|
parser: a
|
|
8853
|
-
} = r, n = t[0], s = O(e[0], "size"),
|
|
8855
|
+
} = r, n = t[0], s = O(e[0], "size"), u = O(e[1], "size");
|
|
8854
8856
|
return {
|
|
8855
8857
|
type: "rule",
|
|
8856
8858
|
mode: a.mode,
|
|
8857
8859
|
shift: n && O(n, "size").value,
|
|
8858
8860
|
width: s.value,
|
|
8859
|
-
height:
|
|
8861
|
+
height: u.value
|
|
8860
8862
|
};
|
|
8861
8863
|
},
|
|
8862
8864
|
htmlBuilder(r, e) {
|
|
@@ -8864,16 +8866,16 @@ B({
|
|
|
8864
8866
|
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;
|
|
8865
8867
|
},
|
|
8866
8868
|
mathmlBuilder(r, e) {
|
|
8867
|
-
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",
|
|
8868
|
-
|
|
8869
|
-
var h = new S.MathNode("mpadded", [
|
|
8869
|
+
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", u = new S.MathNode("mspace");
|
|
8870
|
+
u.setAttribute("mathbackground", s), u.setAttribute("width", A(t)), u.setAttribute("height", A(a));
|
|
8871
|
+
var h = new S.MathNode("mpadded", [u]);
|
|
8870
8872
|
return n >= 0 ? h.setAttribute("height", A(n)) : (h.setAttribute("height", A(n)), h.setAttribute("depth", A(-n))), h.setAttribute("voffset", A(n)), h;
|
|
8871
8873
|
}
|
|
8872
8874
|
});
|
|
8873
8875
|
function aa(r, e, t) {
|
|
8874
8876
|
for (var a = t0(r, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, s = 0; s < a.length; s++) {
|
|
8875
|
-
var
|
|
8876
|
-
|
|
8877
|
+
var u = a[s].classes.indexOf("sizing");
|
|
8878
|
+
u < 0 ? Array.prototype.push.apply(a[s].classes, e.sizingClasses(t)) : a[s].classes[u + 1] === "reset-size" + e.size && (a[s].classes[u + 1] = "reset-size" + t.size), a[s].height *= n, a[s].depth *= n;
|
|
8877
8879
|
}
|
|
8878
8880
|
return b.makeFragment(a);
|
|
8879
8881
|
}
|
|
@@ -8904,7 +8906,7 @@ B({
|
|
|
8904
8906
|
},
|
|
8905
8907
|
htmlBuilder: K1,
|
|
8906
8908
|
mathmlBuilder: (r, e) => {
|
|
8907
|
-
var t = e.havingSize(r.size), a =
|
|
8909
|
+
var t = e.havingSize(r.size), a = o0(r.body, t), n = new S.MathNode("mstyle", a);
|
|
8908
8910
|
return n.setAttribute("mathsize", A(t.sizeMultiplier)), n;
|
|
8909
8911
|
}
|
|
8910
8912
|
});
|
|
@@ -8919,10 +8921,10 @@ B({
|
|
|
8919
8921
|
handler: (r, e, t) => {
|
|
8920
8922
|
var {
|
|
8921
8923
|
parser: a
|
|
8922
|
-
} = r, n = !1, s = !1,
|
|
8923
|
-
if (
|
|
8924
|
-
for (var h = "", c = 0; c <
|
|
8925
|
-
var p =
|
|
8924
|
+
} = r, n = !1, s = !1, u = t[0] && O(t[0], "ordgroup");
|
|
8925
|
+
if (u)
|
|
8926
|
+
for (var h = "", c = 0; c < u.body.length; ++c) {
|
|
8927
|
+
var p = u.body[c];
|
|
8926
8928
|
if (h = p.text, h === "t")
|
|
8927
8929
|
n = !0;
|
|
8928
8930
|
else if (h === "b")
|
|
@@ -8989,14 +8991,14 @@ B({
|
|
|
8989
8991
|
var t = L(r.body, e.havingCrampedStyle());
|
|
8990
8992
|
t.height === 0 && (t.height = e.fontMetrics().xHeight), t = b.wrapFragment(t, e);
|
|
8991
8993
|
var a = e.fontMetrics(), n = a.defaultRuleThickness, s = n;
|
|
8992
|
-
e.style.id <
|
|
8993
|
-
var
|
|
8994
|
+
e.style.id < R.TEXT.id && (s = e.fontMetrics().xHeight);
|
|
8995
|
+
var u = n + s / 4, h = t.height + t.depth + u + n, {
|
|
8994
8996
|
span: c,
|
|
8995
8997
|
ruleWidth: p,
|
|
8996
8998
|
advanceWidth: g
|
|
8997
8999
|
} = D0.sqrtImage(h, e), y = c.height - p;
|
|
8998
|
-
y > t.height + t.depth +
|
|
8999
|
-
var w = c.height - t.height -
|
|
9000
|
+
y > t.height + t.depth + u && (u = (u + y - t.height - t.depth) / 2);
|
|
9001
|
+
var w = c.height - t.height - u - p;
|
|
9000
9002
|
t.style.paddingLeft = A(g);
|
|
9001
9003
|
var x = b.makeVList({
|
|
9002
9004
|
positionType: "firstBaseline",
|
|
@@ -9016,7 +9018,7 @@ B({
|
|
|
9016
9018
|
}]
|
|
9017
9019
|
}, e);
|
|
9018
9020
|
if (r.index) {
|
|
9019
|
-
var z = e.havingStyle(
|
|
9021
|
+
var z = e.havingStyle(R.SCRIPTSCRIPT), T = L(r.index, z, e), C = 0.6 * (x.height - x.depth), N = b.makeVList({
|
|
9020
9022
|
positionType: "shift",
|
|
9021
9023
|
positionData: -C,
|
|
9022
9024
|
children: [{
|
|
@@ -9037,10 +9039,10 @@ B({
|
|
|
9037
9039
|
}
|
|
9038
9040
|
});
|
|
9039
9041
|
var ir = {
|
|
9040
|
-
display:
|
|
9041
|
-
text:
|
|
9042
|
-
script:
|
|
9043
|
-
scriptscript:
|
|
9042
|
+
display: R.DISPLAY,
|
|
9043
|
+
text: R.TEXT,
|
|
9044
|
+
script: R.SCRIPT,
|
|
9045
|
+
scriptscript: R.SCRIPTSCRIPT
|
|
9044
9046
|
};
|
|
9045
9047
|
B({
|
|
9046
9048
|
type: "styling",
|
|
@@ -9055,13 +9057,13 @@ B({
|
|
|
9055
9057
|
breakOnTokenText: t,
|
|
9056
9058
|
funcName: a,
|
|
9057
9059
|
parser: n
|
|
9058
|
-
} = r, s = n.parseExpression(!0, t),
|
|
9060
|
+
} = r, s = n.parseExpression(!0, t), u = a.slice(1, a.length - 5);
|
|
9059
9061
|
return {
|
|
9060
9062
|
type: "styling",
|
|
9061
9063
|
mode: n.mode,
|
|
9062
9064
|
// Figure out what style to use by pulling out the style from
|
|
9063
9065
|
// the function name
|
|
9064
|
-
style:
|
|
9066
|
+
style: u,
|
|
9065
9067
|
body: s
|
|
9066
9068
|
};
|
|
9067
9069
|
},
|
|
@@ -9070,12 +9072,12 @@ B({
|
|
|
9070
9072
|
return aa(r.body, a, e);
|
|
9071
9073
|
},
|
|
9072
9074
|
mathmlBuilder(r, e) {
|
|
9073
|
-
var t = ir[r.style], a = e.havingStyle(t), n =
|
|
9075
|
+
var t = ir[r.style], a = e.havingStyle(t), n = o0(r.body, a), s = new S.MathNode("mstyle", n), u = {
|
|
9074
9076
|
display: ["0", "true"],
|
|
9075
9077
|
text: ["0", "false"],
|
|
9076
9078
|
script: ["1", "false"],
|
|
9077
9079
|
scriptscript: ["2", "false"]
|
|
9078
|
-
}, h =
|
|
9080
|
+
}, h = u[r.style];
|
|
9079
9081
|
return s.setAttribute("scriptlevel", h[0]), s.setAttribute("displaystyle", h[1]), s;
|
|
9080
9082
|
}
|
|
9081
9083
|
});
|
|
@@ -9083,17 +9085,17 @@ var J1 = function(e, t) {
|
|
|
9083
9085
|
var a = e.base;
|
|
9084
9086
|
if (a)
|
|
9085
9087
|
if (a.type === "op") {
|
|
9086
|
-
var n = a.limits && (t.style.size ===
|
|
9088
|
+
var n = a.limits && (t.style.size === R.DISPLAY.size || a.alwaysHandleSupSub);
|
|
9087
9089
|
return n ? ae : null;
|
|
9088
9090
|
} else if (a.type === "operatorname") {
|
|
9089
|
-
var s = a.alwaysHandleSupSub && (t.style.size ===
|
|
9091
|
+
var s = a.alwaysHandleSupSub && (t.style.size === R.DISPLAY.size || a.limits);
|
|
9090
9092
|
return s ? ra : null;
|
|
9091
9093
|
} else {
|
|
9092
9094
|
if (a.type === "accent")
|
|
9093
|
-
return
|
|
9095
|
+
return V.isCharacterBox(a.base) ? wt : null;
|
|
9094
9096
|
if (a.type === "horizBrace") {
|
|
9095
|
-
var
|
|
9096
|
-
return
|
|
9097
|
+
var u = !e.sub;
|
|
9098
|
+
return u === a.isOver ? _r : null;
|
|
9097
9099
|
} else
|
|
9098
9100
|
return null;
|
|
9099
9101
|
}
|
|
@@ -9109,23 +9111,23 @@ W0({
|
|
|
9109
9111
|
base: a,
|
|
9110
9112
|
sup: n,
|
|
9111
9113
|
sub: s
|
|
9112
|
-
} = r,
|
|
9114
|
+
} = r, u = L(a, e), h, c, p = e.fontMetrics(), g = 0, y = 0, w = a && V.isCharacterBox(a);
|
|
9113
9115
|
if (n) {
|
|
9114
9116
|
var x = e.havingStyle(e.style.sup());
|
|
9115
|
-
h = L(n, x, e), w || (g =
|
|
9117
|
+
h = L(n, x, e), w || (g = u.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
|
|
9116
9118
|
}
|
|
9117
9119
|
if (s) {
|
|
9118
9120
|
var z = e.havingStyle(e.style.sub());
|
|
9119
|
-
c = L(s, z, e), w || (y =
|
|
9121
|
+
c = L(s, z, e), w || (y = u.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
|
|
9120
9122
|
}
|
|
9121
9123
|
var T;
|
|
9122
|
-
e.style ===
|
|
9124
|
+
e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
|
|
9123
9125
|
var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), I = null;
|
|
9124
9126
|
if (c) {
|
|
9125
9127
|
var F = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
|
|
9126
|
-
(
|
|
9128
|
+
(u instanceof p0 || F) && (I = A(-u.italic));
|
|
9127
9129
|
}
|
|
9128
|
-
var
|
|
9130
|
+
var G;
|
|
9129
9131
|
if (h && c) {
|
|
9130
9132
|
g = Math.max(g, T, h.depth + 0.25 * p.xHeight), y = Math.max(y, p.sub2);
|
|
9131
9133
|
var H = p.defaultRuleThickness, U = 4 * H;
|
|
@@ -9146,7 +9148,7 @@ W0({
|
|
|
9146
9148
|
shift: -g,
|
|
9147
9149
|
marginRight: N
|
|
9148
9150
|
}];
|
|
9149
|
-
|
|
9151
|
+
G = b.makeVList({
|
|
9150
9152
|
positionType: "individualShift",
|
|
9151
9153
|
children: j
|
|
9152
9154
|
}, e);
|
|
@@ -9158,13 +9160,13 @@ W0({
|
|
|
9158
9160
|
marginLeft: I,
|
|
9159
9161
|
marginRight: N
|
|
9160
9162
|
}];
|
|
9161
|
-
|
|
9163
|
+
G = b.makeVList({
|
|
9162
9164
|
positionType: "shift",
|
|
9163
9165
|
positionData: y,
|
|
9164
9166
|
children: Y
|
|
9165
9167
|
}, e);
|
|
9166
9168
|
} else if (h)
|
|
9167
|
-
g = Math.max(g, T, h.depth + 0.25 * p.xHeight),
|
|
9169
|
+
g = Math.max(g, T, h.depth + 0.25 * p.xHeight), G = b.makeVList({
|
|
9168
9170
|
positionType: "shift",
|
|
9169
9171
|
positionData: -g,
|
|
9170
9172
|
children: [{
|
|
@@ -9175,30 +9177,30 @@ W0({
|
|
|
9175
9177
|
}, e);
|
|
9176
9178
|
else
|
|
9177
9179
|
throw new Error("supsub must have either sup or sub.");
|
|
9178
|
-
var z0 =
|
|
9179
|
-
return b.makeSpan([z0], [
|
|
9180
|
+
var z0 = ut(u, "right") || "mord";
|
|
9181
|
+
return b.makeSpan([z0], [u, b.makeSpan(["msupsub"], [G])], e);
|
|
9180
9182
|
},
|
|
9181
9183
|
mathmlBuilder(r, e) {
|
|
9182
9184
|
var t = !1, a, n;
|
|
9183
9185
|
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);
|
|
9184
9186
|
var s = [X(r.base, e)];
|
|
9185
9187
|
r.sub && s.push(X(r.sub, e)), r.sup && s.push(X(r.sup, e));
|
|
9186
|
-
var
|
|
9188
|
+
var u;
|
|
9187
9189
|
if (t)
|
|
9188
|
-
|
|
9190
|
+
u = a ? "mover" : "munder";
|
|
9189
9191
|
else if (r.sub)
|
|
9190
9192
|
if (r.sup) {
|
|
9191
9193
|
var p = r.base;
|
|
9192
|
-
p && p.type === "op" && p.limits && e.style ===
|
|
9194
|
+
p && p.type === "op" && p.limits && e.style === R.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === R.DISPLAY || p.limits) ? u = "munderover" : u = "msubsup";
|
|
9193
9195
|
} else {
|
|
9194
9196
|
var c = r.base;
|
|
9195
|
-
c && c.type === "op" && c.limits && (e.style ===
|
|
9197
|
+
c && c.type === "op" && c.limits && (e.style === R.DISPLAY || c.alwaysHandleSupSub) || c && c.type === "operatorname" && c.alwaysHandleSupSub && (c.limits || e.style === R.DISPLAY) ? u = "munder" : u = "msub";
|
|
9196
9198
|
}
|
|
9197
9199
|
else {
|
|
9198
9200
|
var h = r.base;
|
|
9199
|
-
h && h.type === "op" && h.limits && (e.style ===
|
|
9201
|
+
h && h.type === "op" && h.limits && (e.style === R.DISPLAY || h.alwaysHandleSupSub) || h && h.type === "operatorname" && h.alwaysHandleSupSub && (h.limits || e.style === R.DISPLAY) ? u = "mover" : u = "msup";
|
|
9200
9202
|
}
|
|
9201
|
-
return new S.MathNode(
|
|
9203
|
+
return new S.MathNode(u, s);
|
|
9202
9204
|
}
|
|
9203
9205
|
});
|
|
9204
9206
|
W0({
|
|
@@ -9289,7 +9291,7 @@ var sr = () => {
|
|
|
9289
9291
|
W0({
|
|
9290
9292
|
type: "tag",
|
|
9291
9293
|
mathmlBuilder(r, e) {
|
|
9292
|
-
var t = new S.MathNode("mtable", [new S.MathNode("mtr", [sr(), new S.MathNode("mtd", [
|
|
9294
|
+
var t = new S.MathNode("mtable", [new S.MathNode("mtr", [sr(), new S.MathNode("mtd", [G0(r.body, e)]), sr(), new S.MathNode("mtd", [G0(r.tag, e)])])]);
|
|
9293
9295
|
return t.setAttribute("width", "100%"), t;
|
|
9294
9296
|
}
|
|
9295
9297
|
});
|
|
@@ -9299,19 +9301,19 @@ var lr = {
|
|
|
9299
9301
|
"\\textsf": "textsf",
|
|
9300
9302
|
"\\texttt": "texttt",
|
|
9301
9303
|
"\\textnormal": "textrm"
|
|
9302
|
-
},
|
|
9304
|
+
}, ur = {
|
|
9303
9305
|
"\\textbf": "textbf",
|
|
9304
9306
|
"\\textmd": "textmd"
|
|
9305
9307
|
}, Q1 = {
|
|
9306
9308
|
"\\textit": "textit",
|
|
9307
9309
|
"\\textup": "textup"
|
|
9308
|
-
},
|
|
9310
|
+
}, or = (r, e) => {
|
|
9309
9311
|
var t = r.font;
|
|
9310
9312
|
if (t) {
|
|
9311
9313
|
if (lr[t])
|
|
9312
9314
|
return e.withTextFontFamily(lr[t]);
|
|
9313
|
-
if (
|
|
9314
|
-
return e.withTextFontWeight(
|
|
9315
|
+
if (ur[t])
|
|
9316
|
+
return e.withTextFontWeight(ur[t]);
|
|
9315
9317
|
if (t === "\\emph")
|
|
9316
9318
|
return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
|
|
9317
9319
|
} else return e;
|
|
@@ -9353,12 +9355,12 @@ B({
|
|
|
9353
9355
|
};
|
|
9354
9356
|
},
|
|
9355
9357
|
htmlBuilder(r, e) {
|
|
9356
|
-
var t =
|
|
9358
|
+
var t = or(r, e), a = t0(r.body, t, !0);
|
|
9357
9359
|
return b.makeSpan(["mord", "text"], a, t);
|
|
9358
9360
|
},
|
|
9359
9361
|
mathmlBuilder(r, e) {
|
|
9360
|
-
var t =
|
|
9361
|
-
return
|
|
9362
|
+
var t = or(r, e);
|
|
9363
|
+
return G0(r.body, t);
|
|
9362
9364
|
}
|
|
9363
9365
|
});
|
|
9364
9366
|
B({
|
|
@@ -9451,8 +9453,8 @@ B({
|
|
|
9451
9453
|
},
|
|
9452
9454
|
htmlBuilder(r, e) {
|
|
9453
9455
|
for (var t = hr(r), a = [], n = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) {
|
|
9454
|
-
var
|
|
9455
|
-
|
|
9456
|
+
var u = t[s];
|
|
9457
|
+
u === "~" && (u = "\\textasciitilde"), a.push(b.makeSymbol(u, "Typewriter-Regular", r.mode, n, ["mord", "texttt"]));
|
|
9456
9458
|
}
|
|
9457
9459
|
return b.makeSpan(["mord", "text"].concat(n.sizingClasses(e)), b.tryCombineChars(a), n);
|
|
9458
9460
|
},
|
|
@@ -9493,17 +9495,17 @@ class mr {
|
|
|
9493
9495
|
lex() {
|
|
9494
9496
|
var e = this.input, t = this.tokenRegex.lastIndex;
|
|
9495
9497
|
if (t === e.length)
|
|
9496
|
-
return new m0("EOF", new
|
|
9498
|
+
return new m0("EOF", new u0(this, t, t));
|
|
9497
9499
|
var a = this.tokenRegex.exec(e);
|
|
9498
9500
|
if (a === null || a.index !== t)
|
|
9499
|
-
throw new M("Unexpected character: '" + e[t] + "'", new m0(e[t], new
|
|
9501
|
+
throw new M("Unexpected character: '" + e[t] + "'", new m0(e[t], new u0(this, t, t + 1)));
|
|
9500
9502
|
var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
|
|
9501
9503
|
if (this.catcodes[n] === 14) {
|
|
9502
9504
|
var s = e.indexOf(`
|
|
9503
9505
|
`, this.tokenRegex.lastIndex);
|
|
9504
9506
|
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();
|
|
9505
9507
|
}
|
|
9506
|
-
return new m0(n, new
|
|
9508
|
+
return new m0(n, new u0(this, t, this.tokenRegex.lastIndex));
|
|
9507
9509
|
}
|
|
9508
9510
|
}
|
|
9509
9511
|
class i4 {
|
|
@@ -9681,10 +9683,10 @@ var Dt = (r, e, t, a) => {
|
|
|
9681
9683
|
var n = r.consumeArg().tokens;
|
|
9682
9684
|
if (n.length !== 1)
|
|
9683
9685
|
throw new M("\\newcommand's first argument must be a macro name");
|
|
9684
|
-
var s = n[0].text,
|
|
9685
|
-
if (
|
|
9686
|
+
var s = n[0].text, u = r.isDefined(s);
|
|
9687
|
+
if (u && !e)
|
|
9686
9688
|
throw new M("\\newcommand{" + s + "} attempting to redefine " + (s + "; use \\renewcommand"));
|
|
9687
|
-
if (!
|
|
9689
|
+
if (!u && !t)
|
|
9688
9690
|
throw new M("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand");
|
|
9689
9691
|
var h = 0;
|
|
9690
9692
|
if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") {
|
|
@@ -9694,7 +9696,7 @@ var Dt = (r, e, t, a) => {
|
|
|
9694
9696
|
throw new M("Invalid number of arguments: " + c);
|
|
9695
9697
|
h = parseInt(c), n = r.consumeArg().tokens;
|
|
9696
9698
|
}
|
|
9697
|
-
return
|
|
9699
|
+
return u && a || r.macros.set(s, {
|
|
9698
9700
|
tokens: n,
|
|
9699
9701
|
numArgs: h
|
|
9700
9702
|
}), "";
|
|
@@ -10070,10 +10072,10 @@ m("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
|
|
|
10070
10072
|
m("\\Bra", "\\left\\langle#1\\right|");
|
|
10071
10073
|
m("\\Ket", "\\left|#1\\right\\rangle");
|
|
10072
10074
|
var la = (r) => (e) => {
|
|
10073
|
-
var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens,
|
|
10075
|
+
var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens, u = e.macros.get("|"), h = e.macros.get("\\|");
|
|
10074
10076
|
e.macros.beginGroup();
|
|
10075
10077
|
var c = (y) => (w) => {
|
|
10076
|
-
r && (w.macros.set("|",
|
|
10078
|
+
r && (w.macros.set("|", u), n.length && w.macros.set("\\|", h));
|
|
10077
10079
|
var x = y;
|
|
10078
10080
|
if (!y && n.length) {
|
|
10079
10081
|
var z = w.future();
|
|
@@ -10158,7 +10160,7 @@ m("\\grayH", "\\textcolor{##3b3e40}{#1}");
|
|
|
10158
10160
|
m("\\grayI", "\\textcolor{##21242c}{#1}");
|
|
10159
10161
|
m("\\kaBlue", "\\textcolor{##314453}{#1}");
|
|
10160
10162
|
m("\\kaGreen", "\\textcolor{##71B307}{#1}");
|
|
10161
|
-
var
|
|
10163
|
+
var ua = {
|
|
10162
10164
|
"^": !0,
|
|
10163
10165
|
// Parser.js
|
|
10164
10166
|
_: !0,
|
|
@@ -10249,7 +10251,7 @@ class l4 {
|
|
|
10249
10251
|
start: t,
|
|
10250
10252
|
end: a
|
|
10251
10253
|
} = this.consumeArg());
|
|
10252
|
-
return this.pushToken(new m0("EOF", a.loc)), this.pushTokens(n), new m0("",
|
|
10254
|
+
return this.pushToken(new m0("EOF", a.loc)), this.pushTokens(n), new m0("", u0.range(t, a));
|
|
10253
10255
|
}
|
|
10254
10256
|
/**
|
|
10255
10257
|
* Consume all following space tokens, without expansion.
|
|
@@ -10270,24 +10272,24 @@ class l4 {
|
|
|
10270
10272
|
consumeArg(e) {
|
|
10271
10273
|
var t = [], a = e && e.length > 0;
|
|
10272
10274
|
a || this.consumeSpaces();
|
|
10273
|
-
var n = this.future(), s,
|
|
10275
|
+
var n = this.future(), s, u = 0, h = 0;
|
|
10274
10276
|
do {
|
|
10275
10277
|
if (s = this.popToken(), t.push(s), s.text === "{")
|
|
10276
|
-
++
|
|
10278
|
+
++u;
|
|
10277
10279
|
else if (s.text === "}") {
|
|
10278
|
-
if (--
|
|
10280
|
+
if (--u, u === -1)
|
|
10279
10281
|
throw new M("Extra }", s);
|
|
10280
10282
|
} else if (s.text === "EOF")
|
|
10281
10283
|
throw new M("Unexpected end of input in a macro argument, expected '" + (e && a ? e[h] : "}") + "'", s);
|
|
10282
10284
|
if (e && a)
|
|
10283
|
-
if ((
|
|
10285
|
+
if ((u === 0 || u === 1 && e[h] === "{") && s.text === e[h]) {
|
|
10284
10286
|
if (++h, h === e.length) {
|
|
10285
10287
|
t.splice(-h, h);
|
|
10286
10288
|
break;
|
|
10287
10289
|
}
|
|
10288
10290
|
} else
|
|
10289
10291
|
h = 0;
|
|
10290
|
-
} while (
|
|
10292
|
+
} while (u !== 0 || a);
|
|
10291
10293
|
return n.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), {
|
|
10292
10294
|
tokens: t,
|
|
10293
10295
|
start: n,
|
|
@@ -10308,9 +10310,9 @@ class l4 {
|
|
|
10308
10310
|
throw new M("Use of the macro doesn't match its definition", s);
|
|
10309
10311
|
}
|
|
10310
10312
|
}
|
|
10311
|
-
for (var
|
|
10312
|
-
|
|
10313
|
-
return
|
|
10313
|
+
for (var u = [], h = 0; h < e; h++)
|
|
10314
|
+
u.push(this.consumeArg(t && t[h + 1]).tokens);
|
|
10315
|
+
return u;
|
|
10314
10316
|
}
|
|
10315
10317
|
/**
|
|
10316
10318
|
* Increment `expansionCount` by the specified amount.
|
|
@@ -10347,7 +10349,7 @@ class l4 {
|
|
|
10347
10349
|
return this.pushToken(t), !1;
|
|
10348
10350
|
}
|
|
10349
10351
|
this.countExpansion(1);
|
|
10350
|
-
var s = n.tokens,
|
|
10352
|
+
var s = n.tokens, u = this.consumeArgs(n.numArgs, n.delimiters);
|
|
10351
10353
|
if (n.numArgs) {
|
|
10352
10354
|
s = s.slice();
|
|
10353
10355
|
for (var h = s.length - 1; h >= 0; --h) {
|
|
@@ -10358,7 +10360,7 @@ class l4 {
|
|
|
10358
10360
|
if (c = s[--h], c.text === "#")
|
|
10359
10361
|
s.splice(h + 1, 1);
|
|
10360
10362
|
else if (/^[1-9]$/.test(c.text))
|
|
10361
|
-
s.splice(h, 2, ...
|
|
10363
|
+
s.splice(h, 2, ...u[+c.text - 1]);
|
|
10362
10364
|
else
|
|
10363
10365
|
throw new M("Not a valid argument number", c);
|
|
10364
10366
|
}
|
|
@@ -10432,7 +10434,7 @@ class l4 {
|
|
|
10432
10434
|
if (typeof n == "string") {
|
|
10433
10435
|
var s = 0;
|
|
10434
10436
|
if (n.indexOf("#") !== -1)
|
|
10435
|
-
for (var
|
|
10437
|
+
for (var u = n.replace(/##/g, ""); u.indexOf("#" + (s + 1)) !== -1; )
|
|
10436
10438
|
++s;
|
|
10437
10439
|
for (var h = new mr(n, this.settings), c = [], p = h.lex(); p.text !== "EOF"; )
|
|
10438
10440
|
c.push(p), p = h.lex();
|
|
@@ -10452,7 +10454,7 @@ class l4 {
|
|
|
10452
10454
|
* `implicitCommands`.
|
|
10453
10455
|
*/
|
|
10454
10456
|
isDefined(e) {
|
|
10455
|
-
return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) ||
|
|
10457
|
+
return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || ua.hasOwnProperty(e);
|
|
10456
10458
|
}
|
|
10457
10459
|
/**
|
|
10458
10460
|
* Determine whether a command is expandable.
|
|
@@ -11054,18 +11056,18 @@ class He {
|
|
|
11054
11056
|
t = n, a = e[n].replaceWith;
|
|
11055
11057
|
}
|
|
11056
11058
|
if (t !== -1 && a) {
|
|
11057
|
-
var s,
|
|
11059
|
+
var s, u, h = e.slice(0, t), c = e.slice(t + 1);
|
|
11058
11060
|
h.length === 1 && h[0].type === "ordgroup" ? s = h[0] : s = {
|
|
11059
11061
|
type: "ordgroup",
|
|
11060
11062
|
mode: this.mode,
|
|
11061
11063
|
body: h
|
|
11062
|
-
}, c.length === 1 && c[0].type === "ordgroup" ?
|
|
11064
|
+
}, c.length === 1 && c[0].type === "ordgroup" ? u = c[0] : u = {
|
|
11063
11065
|
type: "ordgroup",
|
|
11064
11066
|
mode: this.mode,
|
|
11065
11067
|
body: c
|
|
11066
11068
|
};
|
|
11067
11069
|
var p;
|
|
11068
|
-
return a === "\\\\abovefrac" ? p = this.callFunction(a, [s, e[t],
|
|
11070
|
+
return a === "\\\\abovefrac" ? p = this.callFunction(a, [s, e[t], u], []) : p = this.callFunction(a, [s, u], []), [p];
|
|
11069
11071
|
} else
|
|
11070
11072
|
return e;
|
|
11071
11073
|
}
|
|
@@ -11119,8 +11121,8 @@ class He {
|
|
|
11119
11121
|
var s = this.fetch();
|
|
11120
11122
|
if (s.text === "\\limits" || s.text === "\\nolimits") {
|
|
11121
11123
|
if (t && t.type === "op") {
|
|
11122
|
-
var
|
|
11123
|
-
t.limits =
|
|
11124
|
+
var u = s.text === "\\limits";
|
|
11125
|
+
t.limits = u, t.alwaysHandleSupSub = !0;
|
|
11124
11126
|
} else if (t && t.type === "operatorname")
|
|
11125
11127
|
t.alwaysHandleSupSub && (t.limits = s.text === "\\limits");
|
|
11126
11128
|
else
|
|
@@ -11192,23 +11194,23 @@ class He {
|
|
|
11192
11194
|
if (this.mode === "math" && s.allowedInMath === !1)
|
|
11193
11195
|
throw new M("Can't use function '" + n + "' in math mode", a);
|
|
11194
11196
|
var {
|
|
11195
|
-
args:
|
|
11197
|
+
args: u,
|
|
11196
11198
|
optArgs: h
|
|
11197
11199
|
} = this.parseArguments(n, s);
|
|
11198
|
-
return this.callFunction(n,
|
|
11200
|
+
return this.callFunction(n, u, h, a, e);
|
|
11199
11201
|
}
|
|
11200
11202
|
/**
|
|
11201
11203
|
* Call a function handler with a suitable context and arguments.
|
|
11202
11204
|
*/
|
|
11203
11205
|
callFunction(e, t, a, n, s) {
|
|
11204
|
-
var
|
|
11206
|
+
var u = {
|
|
11205
11207
|
funcName: e,
|
|
11206
11208
|
parser: this,
|
|
11207
11209
|
token: n,
|
|
11208
11210
|
breakOnTokenText: s
|
|
11209
11211
|
}, h = L0[e];
|
|
11210
11212
|
if (h && h.handler)
|
|
11211
|
-
return h.handler(
|
|
11213
|
+
return h.handler(u, t, a);
|
|
11212
11214
|
throw new M("No function handler for " + e);
|
|
11213
11215
|
}
|
|
11214
11216
|
/**
|
|
@@ -11221,10 +11223,10 @@ class He {
|
|
|
11221
11223
|
args: [],
|
|
11222
11224
|
optArgs: []
|
|
11223
11225
|
};
|
|
11224
|
-
for (var n = [], s = [],
|
|
11225
|
-
var h = t.argTypes && t.argTypes[
|
|
11226
|
+
for (var n = [], s = [], u = 0; u < a; u++) {
|
|
11227
|
+
var h = t.argTypes && t.argTypes[u], c = u < t.numOptionalArgs;
|
|
11226
11228
|
(t.primitive && h == null || // \sqrt expands into primitive if optional argument doesn't exist
|
|
11227
|
-
t.type === "sqrt" &&
|
|
11229
|
+
t.type === "sqrt" && u === 1 && s[0] == null) && (h = "primitive");
|
|
11228
11230
|
var p = this.parseGroupOfType("argument to '" + e + "'", h, c);
|
|
11229
11231
|
if (c)
|
|
11230
11232
|
s.push(p);
|
|
@@ -11273,10 +11275,10 @@ class He {
|
|
|
11273
11275
|
case "primitive": {
|
|
11274
11276
|
if (a)
|
|
11275
11277
|
throw new M("A primitive argument cannot be optional");
|
|
11276
|
-
var
|
|
11277
|
-
if (
|
|
11278
|
+
var u = this.parseGroup(e);
|
|
11279
|
+
if (u == null)
|
|
11278
11280
|
throw new M("Expected group as " + e, this.fetch());
|
|
11279
|
-
return
|
|
11281
|
+
return u;
|
|
11280
11282
|
}
|
|
11281
11283
|
case "original":
|
|
11282
11284
|
case null:
|
|
@@ -11311,8 +11313,8 @@ class He {
|
|
|
11311
11313
|
* formed by the tokens plus some position information.
|
|
11312
11314
|
*/
|
|
11313
11315
|
parseRegexGroup(e, t) {
|
|
11314
|
-
for (var a = this.fetch(), n = a, s = "",
|
|
11315
|
-
n =
|
|
11316
|
+
for (var a = this.fetch(), n = a, s = "", u; (u = this.fetch()).text !== "EOF" && e.test(s + u.text); )
|
|
11317
|
+
n = u, s += n.text, this.consume();
|
|
11316
11318
|
if (s === "")
|
|
11317
11319
|
throw new M("Invalid " + t + ": '" + a.text + "'", a);
|
|
11318
11320
|
return a.range(n, s);
|
|
@@ -11386,13 +11388,13 @@ class He {
|
|
|
11386
11388
|
t && this.switchMode(t), this.gullet.beginGroup();
|
|
11387
11389
|
var s = this.parseExpression(!1, "EOF");
|
|
11388
11390
|
this.expect("EOF"), this.gullet.endGroup();
|
|
11389
|
-
var
|
|
11391
|
+
var u = {
|
|
11390
11392
|
type: "ordgroup",
|
|
11391
11393
|
mode: this.mode,
|
|
11392
11394
|
loc: a.loc,
|
|
11393
11395
|
body: s
|
|
11394
11396
|
};
|
|
11395
|
-
return t && this.switchMode(n),
|
|
11397
|
+
return t && this.switchMode(n), u;
|
|
11396
11398
|
}
|
|
11397
11399
|
/**
|
|
11398
11400
|
* Parses an ordinary group, which is either a single nucleus (like "x")
|
|
@@ -11404,13 +11406,13 @@ class He {
|
|
|
11404
11406
|
var a = this.fetch(), n = a.text, s;
|
|
11405
11407
|
if (n === "{" || n === "\\begingroup") {
|
|
11406
11408
|
this.consume();
|
|
11407
|
-
var
|
|
11409
|
+
var u = n === "{" ? "}" : "\\endgroup";
|
|
11408
11410
|
this.gullet.beginGroup();
|
|
11409
|
-
var h = this.parseExpression(!1,
|
|
11410
|
-
this.expect(
|
|
11411
|
+
var h = this.parseExpression(!1, u), c = this.fetch();
|
|
11412
|
+
this.expect(u), this.gullet.endGroup(), s = {
|
|
11411
11413
|
type: "ordgroup",
|
|
11412
11414
|
mode: this.mode,
|
|
11413
|
-
loc:
|
|
11415
|
+
loc: u0.range(a, c),
|
|
11414
11416
|
body: h,
|
|
11415
11417
|
// A group formed by \begingroup...\endgroup is a semi-simple group
|
|
11416
11418
|
// which doesn't affect spacing in math mode, i.e., is transparent.
|
|
@@ -11418,7 +11420,7 @@ class He {
|
|
|
11418
11420
|
// use-begingroup-instead-of-bgroup
|
|
11419
11421
|
semisimple: n === "\\begingroup" || void 0
|
|
11420
11422
|
};
|
|
11421
|
-
} else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !
|
|
11423
|
+
} else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !ua.hasOwnProperty(n)) {
|
|
11422
11424
|
if (this.settings.throwOnError)
|
|
11423
11425
|
throw new M("Undefined control sequence: " + n, a);
|
|
11424
11426
|
s = this.formatUnsupportedCmd(n), this.consume();
|
|
@@ -11439,17 +11441,17 @@ class He {
|
|
|
11439
11441
|
s === "-" && e[a + 1].text === "-" && (a + 1 < t && e[a + 2].text === "-" ? (e.splice(a, 3, {
|
|
11440
11442
|
type: "textord",
|
|
11441
11443
|
mode: "text",
|
|
11442
|
-
loc:
|
|
11444
|
+
loc: u0.range(n, e[a + 2]),
|
|
11443
11445
|
text: "---"
|
|
11444
11446
|
}), t -= 2) : (e.splice(a, 2, {
|
|
11445
11447
|
type: "textord",
|
|
11446
11448
|
mode: "text",
|
|
11447
|
-
loc:
|
|
11449
|
+
loc: u0.range(n, e[a + 1]),
|
|
11448
11450
|
text: "--"
|
|
11449
11451
|
}), t -= 1)), (s === "'" || s === "`") && e[a + 1].text === s && (e.splice(a, 2, {
|
|
11450
11452
|
type: "textord",
|
|
11451
11453
|
mode: "text",
|
|
11452
|
-
loc:
|
|
11454
|
+
loc: u0.range(n, e[a + 1]),
|
|
11453
11455
|
text: s + s
|
|
11454
11456
|
}), t -= 1);
|
|
11455
11457
|
}
|
|
@@ -11476,10 +11478,10 @@ class He {
|
|
|
11476
11478
|
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));
|
|
11477
11479
|
var s = a4.exec(t);
|
|
11478
11480
|
s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
|
|
11479
|
-
var
|
|
11481
|
+
var u;
|
|
11480
11482
|
if ($[this.mode][t]) {
|
|
11481
11483
|
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);
|
|
11482
|
-
var h = $[this.mode][t].group, c =
|
|
11484
|
+
var h = $[this.mode][t].group, c = u0.range(e), p;
|
|
11483
11485
|
if (Za.hasOwnProperty(h)) {
|
|
11484
11486
|
var g = h;
|
|
11485
11487
|
p = {
|
|
@@ -11496,12 +11498,12 @@ class He {
|
|
|
11496
11498
|
loc: c,
|
|
11497
11499
|
text: t
|
|
11498
11500
|
};
|
|
11499
|
-
|
|
11501
|
+
u = p;
|
|
11500
11502
|
} else if (t.charCodeAt(0) >= 128)
|
|
11501
|
-
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)),
|
|
11503
|
+
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)), u = {
|
|
11502
11504
|
type: "textord",
|
|
11503
11505
|
mode: "text",
|
|
11504
|
-
loc:
|
|
11506
|
+
loc: u0.range(e),
|
|
11505
11507
|
text: t
|
|
11506
11508
|
};
|
|
11507
11509
|
else
|
|
@@ -11514,18 +11516,18 @@ class He {
|
|
|
11514
11516
|
var x = at[w][this.mode] || at[w].text;
|
|
11515
11517
|
if (!x)
|
|
11516
11518
|
throw new M("Accent " + w + " unsupported in " + this.mode + " mode", e);
|
|
11517
|
-
|
|
11519
|
+
u = {
|
|
11518
11520
|
type: "accent",
|
|
11519
11521
|
mode: this.mode,
|
|
11520
|
-
loc:
|
|
11522
|
+
loc: u0.range(e),
|
|
11521
11523
|
label: x,
|
|
11522
11524
|
isStretchy: !1,
|
|
11523
11525
|
isShifty: !0,
|
|
11524
11526
|
// $FlowFixMe
|
|
11525
|
-
base:
|
|
11527
|
+
base: u
|
|
11526
11528
|
};
|
|
11527
11529
|
}
|
|
11528
|
-
return
|
|
11530
|
+
return u;
|
|
11529
11531
|
}
|
|
11530
11532
|
}
|
|
11531
11533
|
He.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
|
|
@@ -11546,18 +11548,18 @@ var Nt = function(e, t) {
|
|
|
11546
11548
|
}];
|
|
11547
11549
|
}
|
|
11548
11550
|
return n;
|
|
11549
|
-
},
|
|
11551
|
+
}, oa = function(e, t, a) {
|
|
11550
11552
|
t.textContent = "";
|
|
11551
11553
|
var n = qt(e, a).toNode();
|
|
11552
11554
|
t.appendChild(n);
|
|
11553
11555
|
};
|
|
11554
|
-
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."),
|
|
11556
|
+
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."), oa = function() {
|
|
11555
11557
|
throw new M("KaTeX doesn't work in quirks mode.");
|
|
11556
11558
|
});
|
|
11557
|
-
var
|
|
11559
|
+
var u4 = function(e, t) {
|
|
11558
11560
|
var a = qt(e, t).toMarkup();
|
|
11559
11561
|
return a;
|
|
11560
|
-
},
|
|
11562
|
+
}, o4 = function(e, t) {
|
|
11561
11563
|
var a = new dt(t);
|
|
11562
11564
|
return Nt(e, a);
|
|
11563
11565
|
}, ha = function(e, t, a) {
|
|
@@ -11581,12 +11583,12 @@ var o4 = function(e, t) {
|
|
|
11581
11583
|
} catch (s) {
|
|
11582
11584
|
return ha(s, e, a);
|
|
11583
11585
|
}
|
|
11584
|
-
}, m4 = "0.16.
|
|
11586
|
+
}, m4 = "0.16.27", c4 = {
|
|
11585
11587
|
Span: he,
|
|
11586
11588
|
Anchor: vt,
|
|
11587
11589
|
SymbolNode: p0,
|
|
11588
11590
|
SvgNode: C0,
|
|
11589
|
-
PathNode:
|
|
11591
|
+
PathNode: V0,
|
|
11590
11592
|
LineNode: st
|
|
11591
11593
|
}, d4 = {
|
|
11592
11594
|
/**
|
|
@@ -11597,12 +11599,12 @@ var o4 = function(e, t) {
|
|
|
11597
11599
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
|
11598
11600
|
* it as a child to the specified DOM node.
|
|
11599
11601
|
*/
|
|
11600
|
-
render:
|
|
11602
|
+
render: oa,
|
|
11601
11603
|
/**
|
|
11602
11604
|
* Renders the given LaTeX into an HTML+MathML combination string,
|
|
11603
11605
|
* for sending to the client.
|
|
11604
11606
|
*/
|
|
11605
|
-
renderToString:
|
|
11607
|
+
renderToString: u4,
|
|
11606
11608
|
/**
|
|
11607
11609
|
* KaTeX error, usually during parsing.
|
|
11608
11610
|
*/
|
|
@@ -11619,7 +11621,7 @@ var o4 = function(e, t) {
|
|
|
11619
11621
|
* The internal tree representation is unstable and is very likely
|
|
11620
11622
|
* to change. Use at your own risk.
|
|
11621
11623
|
*/
|
|
11622
|
-
__parse:
|
|
11624
|
+
__parse: o4,
|
|
11623
11625
|
/**
|
|
11624
11626
|
* Renders the given LaTeX into an HTML+MathML internal DOM tree
|
|
11625
11627
|
* representation, without flattening that representation to a string.
|
|
@@ -11642,7 +11644,7 @@ var o4 = function(e, t) {
|
|
|
11642
11644
|
* extends internal font metrics object with a new object
|
|
11643
11645
|
* each key in the new object represents a font name
|
|
11644
11646
|
*/
|
|
11645
|
-
__setFontMetrics:
|
|
11647
|
+
__setFontMetrics: Va,
|
|
11646
11648
|
/**
|
|
11647
11649
|
* adds a new symbol to builtin symbols table
|
|
11648
11650
|
*/
|
|
@@ -11673,12 +11675,12 @@ export {
|
|
|
11673
11675
|
m as __defineMacro,
|
|
11674
11676
|
i as __defineSymbol,
|
|
11675
11677
|
c4 as __domTree,
|
|
11676
|
-
|
|
11678
|
+
o4 as __parse,
|
|
11677
11679
|
qt as __renderToDomTree,
|
|
11678
11680
|
h4 as __renderToHTMLTree,
|
|
11679
|
-
|
|
11681
|
+
Va as __setFontMetrics,
|
|
11680
11682
|
d4 as default,
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
+
oa as render,
|
|
11684
|
+
u4 as renderToString,
|
|
11683
11685
|
m4 as version
|
|
11684
11686
|
};
|