@kong-ui-public/documentation 0.7.20 → 0.7.21
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/{Tableau10-GLA_9iAD-BMurskAd.js → Tableau10-D7jGxypv-D3w6FIcJ.js} +1 -2
- package/dist/arc-CJ96KFKf-ZAEyyrBI.js +84 -0
- package/dist/{blockDiagram-6b2b5046-ZGxr7RGf-D4pbh8vR.js → blockDiagram-9f4a6865-DOUkHJlG-BPuF5-tK.js} +107 -108
- package/dist/{c4Diagram-b947cdbb-Bo6xALld-D8DXBmHw.js → c4Diagram-ae766693-qW59_Cjl-BSBtINzy.js} +133 -132
- package/dist/{channel-BX3TjCqa-Cdtt6hB1.js → channel-BkEGjNbZ-CzBFLYvk.js} +1 -1
- package/dist/{classDiagram-35230388-C60SAKfJ-FQHXcc4J.js → classDiagram-fb54d2a0-DaEnSnV7-BgUSoTGU.js} +8 -7
- package/dist/{classDiagram-v2-412acd34-CHK1KDqU-CiKmarbv.js → classDiagram-v2-a2b738ad-DVF-sdZH-lL0m0fQD.js} +8 -8
- package/dist/{clone-BSWoNj0I-CW2QP79u.js → clone-Bz5840kP-D3Uvm_gp.js} +1 -1
- package/dist/{createText-423428c9-DeHbckoy-r2CCACGx.js → createText-ca0c5216-DGjoI7Oz-8Az9WSXK.js} +14 -20
- package/dist/documentation.es.js +3 -3
- package/dist/documentation.umd.js +993 -723
- package/dist/{edges-d417c7a0-D7e9Y4V--DVOSTCB5.js → edges-066a5561-ByMuMaff-ipHdGCa_.js} +28 -27
- package/dist/{erDiagram-0ea73325-E3jchkiK-CfTqZxm6.js → erDiagram-09d1c15f-Ctl-zT4O-B9E7LRcs.js} +71 -72
- package/dist/{flowDb-d35e309a-Dch1VW7i-Bk557s4E.js → flowDb-c1833063-nJUM9bYy-B5f_hjwI.js} +4 -4
- package/dist/{flowDiagram-d949d7c1-CxjmKfBF-CuFUEya4.js → flowDiagram-b222e15a-BlrP8xne-DJ_sATm6.js} +339 -333
- package/dist/{flowDiagram-v2-49332944-Duf6j7PN-DgsEJ4Bo.js → flowDiagram-v2-13329dc7-DlqVPxH6-CgXruRZr.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-M-lK4i48-Bs8Ix10e.js → flowchart-elk-definition-ae0efee6-B2FZpaI4-C8o8y5J1.js} +343 -590
- package/dist/{ganttDiagram-5c869e3b-CgjZsm2H-Bon0v47P.js → ganttDiagram-b62c793e-BUkrtLIU-roFbcEhP.js} +513 -534
- package/dist/gitGraphDiagram-942e62fe-BIndO562-dNVJJzzm.js +1264 -0
- package/dist/{graph-Ch18bQn5-BLEKw6WT.js → graph-BN58fiEq-CyCz6HB3.js} +3 -4
- package/dist/{index-8fae9850-kUIz8xNo-CDn9_qZB.js → index-01f381cb-DHHDXut0-C1FToHnX.js} +11 -11
- package/dist/{index-CVS7cBlb.js → index-Dz46e5bv.js} +2354 -2515
- package/dist/{infoDiagram-db7b18fc-BpBtHVy2-DuX4gmA7.js → infoDiagram-94cd232f-CSzv-wTE-Bnonj1Cb.js} +7 -7
- package/dist/{journeyDiagram-d5636530-CZUFMDTA-D5VAFQAG.js → journeyDiagram-6625b456-Ca9U8tWI-DoKEPckV.js} +16 -16
- package/dist/katex-BXNjbZo7-CF_fuFJb.js +11637 -0
- package/dist/{layout-BzV691RN-Br8Ir03a.js → layout-DU4VNk5y-DEbr0_Pk.js} +112 -114
- package/dist/{line-JCh8JM-V-T9MVIZIE.js → line-CwSAou3c-dgS2jcU_.js} +3 -4
- package/dist/{linear-cwTFOJBq-B6q6qtlZ.js → linear-CngEzq0a-B6fRdJQY.js} +70 -94
- package/dist/{mindmap-definition-377f8f1f-BzIPdpBG-DD8FIpST.js → mindmap-definition-307c710a-CvpxqRPj-AB15RcM6.js} +343 -378
- package/dist/{ordinal-MUacOSdK-B1MUT0BL.js → ordinal-DfAQgscy-BEJTu10r.js} +3 -7
- package/dist/{path-Crsf9Nsj-SiSjwXsf.js → path-DLwuMfdd-EbErTa4c.js} +12 -19
- package/dist/{pieDiagram-b0208e96-BQfpnZHG-E8AMqTd3.js → pieDiagram-bb1d19e5-LP-9WGAS-DwilsWxb.js} +61 -61
- package/dist/{quadrantDiagram-0332be45-CNL4JCrn-BYyiYlYH.js → quadrantDiagram-c759a472-B_TsLXO0-BviiuQRe.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-NBqqCuPF-CIHJhGNa.js → requirementDiagram-87253d64-o6jrBKBt-BDXpXGpQ.js} +30 -30
- package/dist/{sankeyDiagram-0acdec17-YE0ROy8d-CU1TmQZx.js → sankeyDiagram-707fac0f-BoEHDAJv-BBNylsjT.js} +44 -58
- package/dist/{sequenceDiagram-c18d009d-Yucxrjw7-D_cnXQcd.js → sequenceDiagram-6894f283-Dsj52Wsi-TDdIX1Wn.js} +845 -812
- package/dist/{stateDiagram-43596fc0-D9IY4Ssi-KJp_o1Vc.js → stateDiagram-5dee940d-COfohDXu-Dra8cHnR.js} +54 -54
- package/dist/{stateDiagram-v2-2ead4f9c-5IZQWbnV-Chm6qgaK.js → stateDiagram-v2-1992cada-v9z1blk7-b2WlcHGI.js} +12 -12
- package/dist/{styles-b2c874b6-pUAi9-OK-C7HwN-ih.js → styles-0784dbeb-DHDYpA72-BTX0XQJ5.js} +24 -24
- package/dist/{styles-7383a064-DLbSva3T-DWY6NPMf.js → styles-483fbfea-DUrqZeOP-BPfiLFkT.js} +140 -137
- package/dist/{styles-6860f46c-DHqkrPDU-JiuD19BB.js → styles-b83b31c9-R9NNyYA0-DnoGi25s.js} +29 -29
- package/dist/{svgDrawCommon-0ee1b4e9-rbw7BPwi-Boin581S.js → svgDrawCommon-5e1cfd1d-DeHC_PTd-44CTrnyq.js} +5 -5
- package/dist/{timeline-definition-d977decf-CtlVf6FF-BqqlH53Y.js → timeline-definition-bf702344-BzpRV6Z8-DHqazJ7N.js} +2 -2
- package/dist/{xychartDiagram-e50adddc-B9qgoJob-CqAKcFLo.js → xychartDiagram-f11f50a6-BMDfQSWf-CixUys_w.js} +40 -40
- package/package.json +6 -6
- package/dist/arc-TomPQHIy-B0wkvDWU.js +0 -86
- package/dist/gitGraphDiagram-b9d81de9-DhOfBQfl-BvCcUYjg.js +0 -1262
|
@@ -1,1262 +0,0 @@
|
|
|
1
|
-
import { c as v, s as Le, g as Me, a as Ie, b as ve, v as Ae, x as Ce, l as H, j as z, z as Oe, h as Se, y as Pe, ar as Be, as as Ge } from "./index-CVS7cBlb.js";
|
|
2
|
-
var he = function() {
|
|
3
|
-
var r = function(R, o, d, a) {
|
|
4
|
-
for (d = d || {}, a = R.length; a--; d[R[a]] = o)
|
|
5
|
-
;
|
|
6
|
-
return d;
|
|
7
|
-
}, c = [1, 3], l = [1, 6], m = [1, 4], s = [1, 5], n = [2, 5], g = [1, 12], h = [5, 7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40, 47], f = [7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], $ = [7, 12, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], i = [7, 13, 47], _ = [1, 42], u = [1, 41], k = [7, 13, 29, 32, 35, 38, 47], y = [1, 55], p = [1, 56], b = [1, 57], O = [7, 13, 32, 35, 42, 47], T = {
|
|
8
|
-
trace: function() {
|
|
9
|
-
},
|
|
10
|
-
yy: {},
|
|
11
|
-
symbols_: { error: 2, start: 3, eol: 4, GG: 5, document: 6, EOF: 7, ":": 8, DIR: 9, options: 10, body: 11, OPT: 12, NL: 13, line: 14, statement: 15, commitStatement: 16, mergeStatement: 17, cherryPickStatement: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, section: 24, branchStatement: 25, CHECKOUT: 26, ref: 27, BRANCH: 28, ORDER: 29, NUM: 30, CHERRY_PICK: 31, COMMIT_ID: 32, STR: 33, PARENT_COMMIT: 34, COMMIT_TAG: 35, EMPTYSTR: 36, MERGE: 37, COMMIT_TYPE: 38, commitType: 39, COMMIT: 40, commit_arg: 41, COMMIT_MSG: 42, NORMAL: 43, REVERSE: 44, HIGHLIGHT: 45, ID: 46, ";": 47, $accept: 0, $end: 1 },
|
|
12
|
-
terminals_: { 2: "error", 5: "GG", 7: "EOF", 8: ":", 9: "DIR", 12: "OPT", 13: "NL", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "section", 26: "CHECKOUT", 28: "BRANCH", 29: "ORDER", 30: "NUM", 31: "CHERRY_PICK", 32: "COMMIT_ID", 33: "STR", 34: "PARENT_COMMIT", 35: "COMMIT_TAG", 36: "EMPTYSTR", 37: "MERGE", 38: "COMMIT_TYPE", 40: "COMMIT", 42: "COMMIT_MSG", 43: "NORMAL", 44: "REVERSE", 45: "HIGHLIGHT", 46: "ID", 47: ";" },
|
|
13
|
-
productions_: [0, [3, 2], [3, 3], [3, 4], [3, 5], [6, 0], [6, 2], [10, 2], [10, 1], [11, 0], [11, 2], [14, 2], [14, 1], [15, 1], [15, 1], [15, 1], [15, 2], [15, 2], [15, 1], [15, 1], [15, 1], [15, 2], [25, 2], [25, 4], [18, 3], [18, 5], [18, 5], [18, 7], [18, 7], [18, 5], [18, 5], [18, 5], [18, 7], [18, 7], [18, 7], [18, 7], [17, 2], [17, 4], [17, 4], [17, 4], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [16, 2], [16, 3], [16, 3], [16, 5], [16, 5], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [41, 0], [41, 1], [39, 1], [39, 1], [39, 1], [27, 1], [27, 1], [4, 1], [4, 1], [4, 1]],
|
|
14
|
-
performAction: function(R, o, d, a, E, e, B) {
|
|
15
|
-
var t = e.length - 1;
|
|
16
|
-
switch (E) {
|
|
17
|
-
case 2:
|
|
18
|
-
return e[t];
|
|
19
|
-
case 3:
|
|
20
|
-
return e[t - 1];
|
|
21
|
-
case 4:
|
|
22
|
-
return a.setDirection(e[t - 3]), e[t - 1];
|
|
23
|
-
case 6:
|
|
24
|
-
a.setOptions(e[t - 1]), this.$ = e[t];
|
|
25
|
-
break;
|
|
26
|
-
case 7:
|
|
27
|
-
e[t - 1] += e[t], this.$ = e[t - 1];
|
|
28
|
-
break;
|
|
29
|
-
case 9:
|
|
30
|
-
this.$ = [];
|
|
31
|
-
break;
|
|
32
|
-
case 10:
|
|
33
|
-
e[t - 1].push(e[t]), this.$ = e[t - 1];
|
|
34
|
-
break;
|
|
35
|
-
case 11:
|
|
36
|
-
this.$ = e[t - 1];
|
|
37
|
-
break;
|
|
38
|
-
case 16:
|
|
39
|
-
this.$ = e[t].trim(), a.setAccTitle(this.$);
|
|
40
|
-
break;
|
|
41
|
-
case 17:
|
|
42
|
-
case 18:
|
|
43
|
-
this.$ = e[t].trim(), a.setAccDescription(this.$);
|
|
44
|
-
break;
|
|
45
|
-
case 19:
|
|
46
|
-
a.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
|
|
47
|
-
break;
|
|
48
|
-
case 21:
|
|
49
|
-
a.checkout(e[t]);
|
|
50
|
-
break;
|
|
51
|
-
case 22:
|
|
52
|
-
a.branch(e[t]);
|
|
53
|
-
break;
|
|
54
|
-
case 23:
|
|
55
|
-
a.branch(e[t - 2], e[t]);
|
|
56
|
-
break;
|
|
57
|
-
case 24:
|
|
58
|
-
a.cherryPick(e[t], "", void 0);
|
|
59
|
-
break;
|
|
60
|
-
case 25:
|
|
61
|
-
a.cherryPick(e[t - 2], "", void 0, e[t]);
|
|
62
|
-
break;
|
|
63
|
-
case 26:
|
|
64
|
-
a.cherryPick(e[t - 2], "", e[t]);
|
|
65
|
-
break;
|
|
66
|
-
case 27:
|
|
67
|
-
a.cherryPick(e[t - 4], "", e[t], e[t - 2]);
|
|
68
|
-
break;
|
|
69
|
-
case 28:
|
|
70
|
-
a.cherryPick(e[t - 4], "", e[t - 2], e[t]);
|
|
71
|
-
break;
|
|
72
|
-
case 29:
|
|
73
|
-
a.cherryPick(e[t], "", e[t - 2]);
|
|
74
|
-
break;
|
|
75
|
-
case 30:
|
|
76
|
-
a.cherryPick(e[t], "", "");
|
|
77
|
-
break;
|
|
78
|
-
case 31:
|
|
79
|
-
a.cherryPick(e[t - 2], "", "");
|
|
80
|
-
break;
|
|
81
|
-
case 32:
|
|
82
|
-
a.cherryPick(e[t - 4], "", "", e[t - 2]);
|
|
83
|
-
break;
|
|
84
|
-
case 33:
|
|
85
|
-
a.cherryPick(e[t - 4], "", "", e[t]);
|
|
86
|
-
break;
|
|
87
|
-
case 34:
|
|
88
|
-
a.cherryPick(e[t - 2], "", e[t - 4], e[t]);
|
|
89
|
-
break;
|
|
90
|
-
case 35:
|
|
91
|
-
a.cherryPick(e[t - 2], "", "", e[t]);
|
|
92
|
-
break;
|
|
93
|
-
case 36:
|
|
94
|
-
a.merge(e[t], "", "", "");
|
|
95
|
-
break;
|
|
96
|
-
case 37:
|
|
97
|
-
a.merge(e[t - 2], e[t], "", "");
|
|
98
|
-
break;
|
|
99
|
-
case 38:
|
|
100
|
-
a.merge(e[t - 2], "", e[t], "");
|
|
101
|
-
break;
|
|
102
|
-
case 39:
|
|
103
|
-
a.merge(e[t - 2], "", "", e[t]);
|
|
104
|
-
break;
|
|
105
|
-
case 40:
|
|
106
|
-
a.merge(e[t - 4], e[t], "", e[t - 2]);
|
|
107
|
-
break;
|
|
108
|
-
case 41:
|
|
109
|
-
a.merge(e[t - 4], "", e[t], e[t - 2]);
|
|
110
|
-
break;
|
|
111
|
-
case 42:
|
|
112
|
-
a.merge(e[t - 4], "", e[t - 2], e[t]);
|
|
113
|
-
break;
|
|
114
|
-
case 43:
|
|
115
|
-
a.merge(e[t - 4], e[t - 2], e[t], "");
|
|
116
|
-
break;
|
|
117
|
-
case 44:
|
|
118
|
-
a.merge(e[t - 4], e[t - 2], "", e[t]);
|
|
119
|
-
break;
|
|
120
|
-
case 45:
|
|
121
|
-
a.merge(e[t - 4], e[t], e[t - 2], "");
|
|
122
|
-
break;
|
|
123
|
-
case 46:
|
|
124
|
-
a.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
|
125
|
-
break;
|
|
126
|
-
case 47:
|
|
127
|
-
a.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
|
128
|
-
break;
|
|
129
|
-
case 48:
|
|
130
|
-
a.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
|
131
|
-
break;
|
|
132
|
-
case 49:
|
|
133
|
-
a.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
|
134
|
-
break;
|
|
135
|
-
case 50:
|
|
136
|
-
a.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
|
137
|
-
break;
|
|
138
|
-
case 51:
|
|
139
|
-
a.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
|
140
|
-
break;
|
|
141
|
-
case 52:
|
|
142
|
-
a.commit(e[t]);
|
|
143
|
-
break;
|
|
144
|
-
case 53:
|
|
145
|
-
a.commit("", "", a.commitType.NORMAL, e[t]);
|
|
146
|
-
break;
|
|
147
|
-
case 54:
|
|
148
|
-
a.commit("", "", e[t], "");
|
|
149
|
-
break;
|
|
150
|
-
case 55:
|
|
151
|
-
a.commit("", "", e[t], e[t - 2]);
|
|
152
|
-
break;
|
|
153
|
-
case 56:
|
|
154
|
-
a.commit("", "", e[t - 2], e[t]);
|
|
155
|
-
break;
|
|
156
|
-
case 57:
|
|
157
|
-
a.commit("", e[t], a.commitType.NORMAL, "");
|
|
158
|
-
break;
|
|
159
|
-
case 58:
|
|
160
|
-
a.commit("", e[t - 2], a.commitType.NORMAL, e[t]);
|
|
161
|
-
break;
|
|
162
|
-
case 59:
|
|
163
|
-
a.commit("", e[t], a.commitType.NORMAL, e[t - 2]);
|
|
164
|
-
break;
|
|
165
|
-
case 60:
|
|
166
|
-
a.commit("", e[t - 2], e[t], "");
|
|
167
|
-
break;
|
|
168
|
-
case 61:
|
|
169
|
-
a.commit("", e[t], e[t - 2], "");
|
|
170
|
-
break;
|
|
171
|
-
case 62:
|
|
172
|
-
a.commit("", e[t - 4], e[t - 2], e[t]);
|
|
173
|
-
break;
|
|
174
|
-
case 63:
|
|
175
|
-
a.commit("", e[t - 4], e[t], e[t - 2]);
|
|
176
|
-
break;
|
|
177
|
-
case 64:
|
|
178
|
-
a.commit("", e[t - 2], e[t - 4], e[t]);
|
|
179
|
-
break;
|
|
180
|
-
case 65:
|
|
181
|
-
a.commit("", e[t], e[t - 4], e[t - 2]);
|
|
182
|
-
break;
|
|
183
|
-
case 66:
|
|
184
|
-
a.commit("", e[t], e[t - 2], e[t - 4]);
|
|
185
|
-
break;
|
|
186
|
-
case 67:
|
|
187
|
-
a.commit("", e[t - 2], e[t], e[t - 4]);
|
|
188
|
-
break;
|
|
189
|
-
case 68:
|
|
190
|
-
a.commit(e[t], "", a.commitType.NORMAL, "");
|
|
191
|
-
break;
|
|
192
|
-
case 69:
|
|
193
|
-
a.commit(e[t], "", a.commitType.NORMAL, e[t - 2]);
|
|
194
|
-
break;
|
|
195
|
-
case 70:
|
|
196
|
-
a.commit(e[t - 2], "", a.commitType.NORMAL, e[t]);
|
|
197
|
-
break;
|
|
198
|
-
case 71:
|
|
199
|
-
a.commit(e[t - 2], "", e[t], "");
|
|
200
|
-
break;
|
|
201
|
-
case 72:
|
|
202
|
-
a.commit(e[t], "", e[t - 2], "");
|
|
203
|
-
break;
|
|
204
|
-
case 73:
|
|
205
|
-
a.commit(e[t], e[t - 2], a.commitType.NORMAL, "");
|
|
206
|
-
break;
|
|
207
|
-
case 74:
|
|
208
|
-
a.commit(e[t - 2], e[t], a.commitType.NORMAL, "");
|
|
209
|
-
break;
|
|
210
|
-
case 75:
|
|
211
|
-
a.commit(e[t - 4], "", e[t - 2], e[t]);
|
|
212
|
-
break;
|
|
213
|
-
case 76:
|
|
214
|
-
a.commit(e[t - 4], "", e[t], e[t - 2]);
|
|
215
|
-
break;
|
|
216
|
-
case 77:
|
|
217
|
-
a.commit(e[t - 2], "", e[t - 4], e[t]);
|
|
218
|
-
break;
|
|
219
|
-
case 78:
|
|
220
|
-
a.commit(e[t], "", e[t - 4], e[t - 2]);
|
|
221
|
-
break;
|
|
222
|
-
case 79:
|
|
223
|
-
a.commit(e[t], "", e[t - 2], e[t - 4]);
|
|
224
|
-
break;
|
|
225
|
-
case 80:
|
|
226
|
-
a.commit(e[t - 2], "", e[t], e[t - 4]);
|
|
227
|
-
break;
|
|
228
|
-
case 81:
|
|
229
|
-
a.commit(e[t - 4], e[t], e[t - 2], "");
|
|
230
|
-
break;
|
|
231
|
-
case 82:
|
|
232
|
-
a.commit(e[t - 4], e[t - 2], e[t], "");
|
|
233
|
-
break;
|
|
234
|
-
case 83:
|
|
235
|
-
a.commit(e[t - 2], e[t], e[t - 4], "");
|
|
236
|
-
break;
|
|
237
|
-
case 84:
|
|
238
|
-
a.commit(e[t], e[t - 2], e[t - 4], "");
|
|
239
|
-
break;
|
|
240
|
-
case 85:
|
|
241
|
-
a.commit(e[t], e[t - 4], e[t - 2], "");
|
|
242
|
-
break;
|
|
243
|
-
case 86:
|
|
244
|
-
a.commit(e[t - 2], e[t - 4], e[t], "");
|
|
245
|
-
break;
|
|
246
|
-
case 87:
|
|
247
|
-
a.commit(e[t - 4], e[t], a.commitType.NORMAL, e[t - 2]);
|
|
248
|
-
break;
|
|
249
|
-
case 88:
|
|
250
|
-
a.commit(e[t - 4], e[t - 2], a.commitType.NORMAL, e[t]);
|
|
251
|
-
break;
|
|
252
|
-
case 89:
|
|
253
|
-
a.commit(e[t - 2], e[t], a.commitType.NORMAL, e[t - 4]);
|
|
254
|
-
break;
|
|
255
|
-
case 90:
|
|
256
|
-
a.commit(e[t], e[t - 2], a.commitType.NORMAL, e[t - 4]);
|
|
257
|
-
break;
|
|
258
|
-
case 91:
|
|
259
|
-
a.commit(e[t], e[t - 4], a.commitType.NORMAL, e[t - 2]);
|
|
260
|
-
break;
|
|
261
|
-
case 92:
|
|
262
|
-
a.commit(e[t - 2], e[t - 4], a.commitType.NORMAL, e[t]);
|
|
263
|
-
break;
|
|
264
|
-
case 93:
|
|
265
|
-
a.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
|
266
|
-
break;
|
|
267
|
-
case 94:
|
|
268
|
-
a.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
|
269
|
-
break;
|
|
270
|
-
case 95:
|
|
271
|
-
a.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
|
272
|
-
break;
|
|
273
|
-
case 96:
|
|
274
|
-
a.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
|
275
|
-
break;
|
|
276
|
-
case 97:
|
|
277
|
-
a.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
|
278
|
-
break;
|
|
279
|
-
case 98:
|
|
280
|
-
a.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
|
281
|
-
break;
|
|
282
|
-
case 99:
|
|
283
|
-
a.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
|
|
284
|
-
break;
|
|
285
|
-
case 100:
|
|
286
|
-
a.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
|
|
287
|
-
break;
|
|
288
|
-
case 101:
|
|
289
|
-
a.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
|
|
290
|
-
break;
|
|
291
|
-
case 102:
|
|
292
|
-
a.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
|
|
293
|
-
break;
|
|
294
|
-
case 103:
|
|
295
|
-
a.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
|
|
296
|
-
break;
|
|
297
|
-
case 104:
|
|
298
|
-
a.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
|
|
299
|
-
break;
|
|
300
|
-
case 105:
|
|
301
|
-
a.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
|
|
302
|
-
break;
|
|
303
|
-
case 106:
|
|
304
|
-
a.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
|
|
305
|
-
break;
|
|
306
|
-
case 107:
|
|
307
|
-
a.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
|
|
308
|
-
break;
|
|
309
|
-
case 108:
|
|
310
|
-
a.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
|
|
311
|
-
break;
|
|
312
|
-
case 109:
|
|
313
|
-
a.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
|
|
314
|
-
break;
|
|
315
|
-
case 110:
|
|
316
|
-
a.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
|
|
317
|
-
break;
|
|
318
|
-
case 111:
|
|
319
|
-
a.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
|
|
320
|
-
break;
|
|
321
|
-
case 112:
|
|
322
|
-
a.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
|
|
323
|
-
break;
|
|
324
|
-
case 113:
|
|
325
|
-
a.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
|
|
326
|
-
break;
|
|
327
|
-
case 114:
|
|
328
|
-
a.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
|
|
329
|
-
break;
|
|
330
|
-
case 115:
|
|
331
|
-
a.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
|
|
332
|
-
break;
|
|
333
|
-
case 116:
|
|
334
|
-
a.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
|
|
335
|
-
break;
|
|
336
|
-
case 117:
|
|
337
|
-
this.$ = "";
|
|
338
|
-
break;
|
|
339
|
-
case 118:
|
|
340
|
-
this.$ = e[t];
|
|
341
|
-
break;
|
|
342
|
-
case 119:
|
|
343
|
-
this.$ = a.commitType.NORMAL;
|
|
344
|
-
break;
|
|
345
|
-
case 120:
|
|
346
|
-
this.$ = a.commitType.REVERSE;
|
|
347
|
-
break;
|
|
348
|
-
case 121:
|
|
349
|
-
this.$ = a.commitType.HIGHLIGHT;
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
table: [{ 3: 1, 4: 2, 5: c, 7: l, 13: m, 47: s }, { 1: [3] }, { 3: 7, 4: 2, 5: c, 7: l, 13: m, 47: s }, { 6: 8, 7: n, 8: [1, 9], 9: [1, 10], 10: 11, 13: g }, r(h, [2, 124]), r(h, [2, 125]), r(h, [2, 126]), { 1: [2, 1] }, { 7: [1, 13] }, { 6: 14, 7: n, 10: 11, 13: g }, { 8: [1, 15] }, r(f, [2, 9], { 11: 16, 12: [1, 17] }), r($, [2, 8]), { 1: [2, 2] }, { 7: [1, 18] }, { 6: 19, 7: n, 10: 11, 13: g }, { 7: [2, 6], 13: [1, 22], 14: 20, 15: 21, 16: 23, 17: 24, 18: 25, 19: [1, 26], 21: [1, 27], 23: [1, 28], 24: [1, 29], 25: 30, 26: [1, 31], 28: [1, 35], 31: [1, 34], 37: [1, 33], 40: [1, 32] }, r($, [2, 7]), { 1: [2, 3] }, { 7: [1, 36] }, r(f, [2, 10]), { 4: 37, 7: l, 13: m, 47: s }, r(f, [2, 12]), r(i, [2, 13]), r(i, [2, 14]), r(i, [2, 15]), { 20: [1, 38] }, { 22: [1, 39] }, r(i, [2, 18]), r(i, [2, 19]), r(i, [2, 20]), { 27: 40, 33: _, 46: u }, r(i, [2, 117], { 41: 43, 32: [1, 46], 33: [1, 48], 35: [1, 44], 38: [1, 45], 42: [1, 47] }), { 27: 49, 33: _, 46: u }, { 32: [1, 50], 35: [1, 51] }, { 27: 52, 33: _, 46: u }, { 1: [2, 4] }, r(f, [2, 11]), r(i, [2, 16]), r(i, [2, 17]), r(i, [2, 21]), r(k, [2, 122]), r(k, [2, 123]), r(i, [2, 52]), { 33: [1, 53] }, { 39: 54, 43: y, 44: p, 45: b }, { 33: [1, 58] }, { 33: [1, 59] }, r(i, [2, 118]), r(i, [2, 36], { 32: [1, 60], 35: [1, 62], 38: [1, 61] }), { 33: [1, 63] }, { 33: [1, 64], 36: [1, 65] }, r(i, [2, 22], { 29: [1, 66] }), r(i, [2, 53], { 32: [1, 68], 38: [1, 67], 42: [1, 69] }), r(i, [2, 54], { 32: [1, 71], 35: [1, 70], 42: [1, 72] }), r(O, [2, 119]), r(O, [2, 120]), r(O, [2, 121]), r(i, [2, 57], { 35: [1, 73], 38: [1, 74], 42: [1, 75] }), r(i, [2, 68], { 32: [1, 78], 35: [1, 76], 38: [1, 77] }), { 33: [1, 79] }, { 39: 80, 43: y, 44: p, 45: b }, { 33: [1, 81] }, r(i, [2, 24], { 34: [1, 82], 35: [1, 83] }), { 32: [1, 84] }, { 32: [1, 85] }, { 30: [1, 86] }, { 39: 87, 43: y, 44: p, 45: b }, { 33: [1, 88] }, { 33: [1, 89] }, { 33: [1, 90] }, { 33: [1, 91] }, { 33: [1, 92] }, { 33: [1, 93] }, { 39: 94, 43: y, 44: p, 45: b }, { 33: [1, 95] }, { 33: [1, 96] }, { 39: 97, 43: y, 44: p, 45: b }, { 33: [1, 98] }, r(i, [2, 37], { 35: [1, 100], 38: [1, 99] }), r(i, [2, 38], { 32: [1, 102], 35: [1, 101] }), r(i, [2, 39], { 32: [1, 103], 38: [1, 104] }), { 33: [1, 105] }, { 33: [1, 106], 36: [1, 107] }, { 33: [1, 108] }, { 33: [1, 109] }, r(i, [2, 23]), r(i, [2, 55], { 32: [1, 110], 42: [1, 111] }), r(i, [2, 59], { 38: [1, 112], 42: [1, 113] }), r(i, [2, 69], { 32: [1, 115], 38: [1, 114] }), r(i, [2, 56], { 32: [1, 116], 42: [1, 117] }), r(i, [2, 61], { 35: [1, 118], 42: [1, 119] }), r(i, [2, 72], { 32: [1, 121], 35: [1, 120] }), r(i, [2, 58], { 38: [1, 122], 42: [1, 123] }), r(i, [2, 60], { 35: [1, 124], 42: [1, 125] }), r(i, [2, 73], { 35: [1, 127], 38: [1, 126] }), r(i, [2, 70], { 32: [1, 129], 38: [1, 128] }), r(i, [2, 71], { 32: [1, 131], 35: [1, 130] }), r(i, [2, 74], { 35: [1, 133], 38: [1, 132] }), { 39: 134, 43: y, 44: p, 45: b }, { 33: [1, 135] }, { 33: [1, 136] }, { 33: [1, 137] }, { 33: [1, 138] }, { 39: 139, 43: y, 44: p, 45: b }, r(i, [2, 25], { 35: [1, 140] }), r(i, [2, 26], { 34: [1, 141] }), r(i, [2, 31], { 34: [1, 142] }), r(i, [2, 29], { 34: [1, 143] }), r(i, [2, 30], { 34: [1, 144] }), { 33: [1, 145] }, { 33: [1, 146] }, { 39: 147, 43: y, 44: p, 45: b }, { 33: [1, 148] }, { 39: 149, 43: y, 44: p, 45: b }, { 33: [1, 150] }, { 33: [1, 151] }, { 33: [1, 152] }, { 33: [1, 153] }, { 33: [1, 154] }, { 33: [1, 155] }, { 33: [1, 156] }, { 39: 157, 43: y, 44: p, 45: b }, { 33: [1, 158] }, { 33: [1, 159] }, { 33: [1, 160] }, { 39: 161, 43: y, 44: p, 45: b }, { 33: [1, 162] }, { 39: 163, 43: y, 44: p, 45: b }, { 33: [1, 164] }, { 33: [1, 165] }, { 33: [1, 166] }, { 39: 167, 43: y, 44: p, 45: b }, { 33: [1, 168] }, r(i, [2, 43], { 35: [1, 169] }), r(i, [2, 44], { 38: [1, 170] }), r(i, [2, 42], { 32: [1, 171] }), r(i, [2, 45], { 35: [1, 172] }), r(i, [2, 40], { 38: [1, 173] }), r(i, [2, 41], { 32: [1, 174] }), { 33: [1, 175], 36: [1, 176] }, { 33: [1, 177] }, { 33: [1, 178] }, { 33: [1, 179] }, { 33: [1, 180] }, r(i, [2, 66], { 42: [1, 181] }), r(i, [2, 79], { 32: [1, 182] }), r(i, [2, 67], { 42: [1, 183] }), r(i, [2, 90], { 38: [1, 184] }), r(i, [2, 80], { 32: [1, 185] }), r(i, [2, 89], { 38: [1, 186] }), r(i, [2, 65], { 42: [1, 187] }), r(i, [2, 78], { 32: [1, 188] }), r(i, [2, 64], { 42: [1, 189] }), r(i, [2, 84], { 35: [1, 190] }), r(i, [2, 77], { 32: [1, 191] }), r(i, [2, 83], { 35: [1, 192] }), r(i, [2, 63], { 42: [1, 193] }), r(i, [2, 91], { 38: [1, 194] }), r(i, [2, 62], { 42: [1, 195] }), r(i, [2, 85], { 35: [1, 196] }), r(i, [2, 86], { 35: [1, 197] }), r(i, [2, 92], { 38: [1, 198] }), r(i, [2, 76], { 32: [1, 199] }), r(i, [2, 87], { 38: [1, 200] }), r(i, [2, 75], { 32: [1, 201] }), r(i, [2, 81], { 35: [1, 202] }), r(i, [2, 82], { 35: [1, 203] }), r(i, [2, 88], { 38: [1, 204] }), { 33: [1, 205] }, { 39: 206, 43: y, 44: p, 45: b }, { 33: [1, 207] }, { 33: [1, 208] }, { 39: 209, 43: y, 44: p, 45: b }, { 33: [1, 210] }, r(i, [2, 27]), r(i, [2, 32]), r(i, [2, 28]), r(i, [2, 33]), r(i, [2, 34]), r(i, [2, 35]), { 33: [1, 211] }, { 33: [1, 212] }, { 33: [1, 213] }, { 39: 214, 43: y, 44: p, 45: b }, { 33: [1, 215] }, { 39: 216, 43: y, 44: p, 45: b }, { 33: [1, 217] }, { 33: [1, 218] }, { 33: [1, 219] }, { 33: [1, 220] }, { 33: [1, 221] }, { 33: [1, 222] }, { 33: [1, 223] }, { 39: 224, 43: y, 44: p, 45: b }, { 33: [1, 225] }, { 33: [1, 226] }, { 33: [1, 227] }, { 39: 228, 43: y, 44: p, 45: b }, { 33: [1, 229] }, { 39: 230, 43: y, 44: p, 45: b }, { 33: [1, 231] }, { 33: [1, 232] }, { 33: [1, 233] }, { 39: 234, 43: y, 44: p, 45: b }, r(i, [2, 46]), r(i, [2, 48]), r(i, [2, 47]), r(i, [2, 49]), r(i, [2, 51]), r(i, [2, 50]), r(i, [2, 107]), r(i, [2, 108]), r(i, [2, 105]), r(i, [2, 106]), r(i, [2, 110]), r(i, [2, 109]), r(i, [2, 114]), r(i, [2, 113]), r(i, [2, 112]), r(i, [2, 111]), r(i, [2, 116]), r(i, [2, 115]), r(i, [2, 104]), r(i, [2, 103]), r(i, [2, 102]), r(i, [2, 101]), r(i, [2, 99]), r(i, [2, 100]), r(i, [2, 98]), r(i, [2, 97]), r(i, [2, 96]), r(i, [2, 95]), r(i, [2, 93]), r(i, [2, 94])],
|
|
354
|
-
defaultActions: { 7: [2, 1], 13: [2, 2], 18: [2, 3], 36: [2, 4] },
|
|
355
|
-
parseError: function(R, o) {
|
|
356
|
-
if (o.recoverable)
|
|
357
|
-
this.trace(R);
|
|
358
|
-
else {
|
|
359
|
-
var d = new Error(R);
|
|
360
|
-
throw d.hash = o, d;
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
parse: function(R) {
|
|
364
|
-
var o = this, d = [0], a = [], E = [null], e = [], B = this.table, t = "", te = 0, ye = 0, Ee = 2, ue = 1, Te = e.slice.call(arguments, 1), A = Object.create(this.lexer), F = { yy: {} };
|
|
365
|
-
for (var ce in this.yy)
|
|
366
|
-
Object.prototype.hasOwnProperty.call(this.yy, ce) && (F.yy[ce] = this.yy[ce]);
|
|
367
|
-
A.setInput(R, F.yy), F.yy.lexer = A, F.yy.parser = this, typeof A.yylloc > "u" && (A.yylloc = {});
|
|
368
|
-
var ne = A.yylloc;
|
|
369
|
-
e.push(ne);
|
|
370
|
-
var we = A.options && A.options.ranges;
|
|
371
|
-
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
372
|
-
function Re() {
|
|
373
|
-
var Y;
|
|
374
|
-
return Y = a.pop() || A.lex() || ue, typeof Y != "number" && (Y instanceof Array && (a = Y, Y = a.pop()), Y = o.symbols_[Y] || Y), Y;
|
|
375
|
-
}
|
|
376
|
-
for (var G, U, D, oe, X = {}, re, q, pe, ae; ; ) {
|
|
377
|
-
if (U = d[d.length - 1], this.defaultActions[U] ? D = this.defaultActions[U] : ((G === null || typeof G > "u") && (G = Re()), D = B[U] && B[U][G]), typeof D > "u" || !D.length || !D[0]) {
|
|
378
|
-
var le = "";
|
|
379
|
-
ae = [];
|
|
380
|
-
for (re in B[U])
|
|
381
|
-
this.terminals_[re] && re > Ee && ae.push("'" + this.terminals_[re] + "'");
|
|
382
|
-
A.showPosition ? le = "Parse error on line " + (te + 1) + `:
|
|
383
|
-
` + A.showPosition() + `
|
|
384
|
-
Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[G] || G) + "'" : le = "Parse error on line " + (te + 1) + ": Unexpected " + (G == ue ? "end of input" : "'" + (this.terminals_[G] || G) + "'"), this.parseError(le, {
|
|
385
|
-
text: A.match,
|
|
386
|
-
token: this.terminals_[G] || G,
|
|
387
|
-
line: A.yylineno,
|
|
388
|
-
loc: ne,
|
|
389
|
-
expected: ae
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
if (D[0] instanceof Array && D.length > 1)
|
|
393
|
-
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + G);
|
|
394
|
-
switch (D[0]) {
|
|
395
|
-
case 1:
|
|
396
|
-
d.push(G), E.push(A.yytext), e.push(A.yylloc), d.push(D[1]), G = null, ye = A.yyleng, t = A.yytext, te = A.yylineno, ne = A.yylloc;
|
|
397
|
-
break;
|
|
398
|
-
case 2:
|
|
399
|
-
if (q = this.productions_[D[1]][1], X.$ = E[E.length - q], X._$ = {
|
|
400
|
-
first_line: e[e.length - (q || 1)].first_line,
|
|
401
|
-
last_line: e[e.length - 1].last_line,
|
|
402
|
-
first_column: e[e.length - (q || 1)].first_column,
|
|
403
|
-
last_column: e[e.length - 1].last_column
|
|
404
|
-
}, we && (X._$.range = [
|
|
405
|
-
e[e.length - (q || 1)].range[0],
|
|
406
|
-
e[e.length - 1].range[1]
|
|
407
|
-
]), oe = this.performAction.apply(X, [
|
|
408
|
-
t,
|
|
409
|
-
ye,
|
|
410
|
-
te,
|
|
411
|
-
F.yy,
|
|
412
|
-
D[1],
|
|
413
|
-
E,
|
|
414
|
-
e
|
|
415
|
-
].concat(Te)), typeof oe < "u")
|
|
416
|
-
return oe;
|
|
417
|
-
q && (d = d.slice(0, -1 * q * 2), E = E.slice(0, -1 * q), e = e.slice(0, -1 * q)), d.push(this.productions_[D[1]][0]), E.push(X.$), e.push(X._$), pe = B[d[d.length - 2]][d[d.length - 1]], d.push(pe);
|
|
418
|
-
break;
|
|
419
|
-
case 3:
|
|
420
|
-
return !0;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
return !0;
|
|
424
|
-
}
|
|
425
|
-
}, x = /* @__PURE__ */ function() {
|
|
426
|
-
var R = {
|
|
427
|
-
EOF: 1,
|
|
428
|
-
parseError: function(o, d) {
|
|
429
|
-
if (this.yy.parser)
|
|
430
|
-
this.yy.parser.parseError(o, d);
|
|
431
|
-
else
|
|
432
|
-
throw new Error(o);
|
|
433
|
-
},
|
|
434
|
-
// resets the lexer, sets new input
|
|
435
|
-
setInput: function(o, d) {
|
|
436
|
-
return this.yy = d || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
437
|
-
first_line: 1,
|
|
438
|
-
first_column: 0,
|
|
439
|
-
last_line: 1,
|
|
440
|
-
last_column: 0
|
|
441
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
442
|
-
},
|
|
443
|
-
// consumes and returns one char from the input
|
|
444
|
-
input: function() {
|
|
445
|
-
var o = this._input[0];
|
|
446
|
-
this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
|
|
447
|
-
var d = o.match(/(?:\r\n?|\n).*/g);
|
|
448
|
-
return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
|
|
449
|
-
},
|
|
450
|
-
// unshifts one char (or a string) into the input
|
|
451
|
-
unput: function(o) {
|
|
452
|
-
var d = o.length, a = o.split(/(?:\r\n?|\n)/g);
|
|
453
|
-
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
|
|
454
|
-
var E = this.match.split(/(?:\r\n?|\n)/g);
|
|
455
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
|
|
456
|
-
var e = this.yylloc.range;
|
|
457
|
-
return this.yylloc = {
|
|
458
|
-
first_line: this.yylloc.first_line,
|
|
459
|
-
last_line: this.yylineno + 1,
|
|
460
|
-
first_column: this.yylloc.first_column,
|
|
461
|
-
last_column: a ? (a.length === E.length ? this.yylloc.first_column : 0) + E[E.length - a.length].length - a[0].length : this.yylloc.first_column - d
|
|
462
|
-
}, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
|
|
463
|
-
},
|
|
464
|
-
// When called from action, caches matched text and appends it on next action
|
|
465
|
-
more: function() {
|
|
466
|
-
return this._more = !0, this;
|
|
467
|
-
},
|
|
468
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
469
|
-
reject: function() {
|
|
470
|
-
if (this.options.backtrack_lexer)
|
|
471
|
-
this._backtrack = !0;
|
|
472
|
-
else
|
|
473
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
474
|
-
` + this.showPosition(), {
|
|
475
|
-
text: "",
|
|
476
|
-
token: null,
|
|
477
|
-
line: this.yylineno
|
|
478
|
-
});
|
|
479
|
-
return this;
|
|
480
|
-
},
|
|
481
|
-
// retain first n characters of the match
|
|
482
|
-
less: function(o) {
|
|
483
|
-
this.unput(this.match.slice(o));
|
|
484
|
-
},
|
|
485
|
-
// displays already matched input, i.e. for error messages
|
|
486
|
-
pastInput: function() {
|
|
487
|
-
var o = this.matched.substr(0, this.matched.length - this.match.length);
|
|
488
|
-
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
|
|
489
|
-
},
|
|
490
|
-
// displays upcoming input, i.e. for error messages
|
|
491
|
-
upcomingInput: function() {
|
|
492
|
-
var o = this.match;
|
|
493
|
-
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
494
|
-
},
|
|
495
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
496
|
-
showPosition: function() {
|
|
497
|
-
var o = this.pastInput(), d = new Array(o.length + 1).join("-");
|
|
498
|
-
return o + this.upcomingInput() + `
|
|
499
|
-
` + d + "^";
|
|
500
|
-
},
|
|
501
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
502
|
-
test_match: function(o, d) {
|
|
503
|
-
var a, E, e;
|
|
504
|
-
if (this.options.backtrack_lexer && (e = {
|
|
505
|
-
yylineno: this.yylineno,
|
|
506
|
-
yylloc: {
|
|
507
|
-
first_line: this.yylloc.first_line,
|
|
508
|
-
last_line: this.last_line,
|
|
509
|
-
first_column: this.yylloc.first_column,
|
|
510
|
-
last_column: this.yylloc.last_column
|
|
511
|
-
},
|
|
512
|
-
yytext: this.yytext,
|
|
513
|
-
match: this.match,
|
|
514
|
-
matches: this.matches,
|
|
515
|
-
matched: this.matched,
|
|
516
|
-
yyleng: this.yyleng,
|
|
517
|
-
offset: this.offset,
|
|
518
|
-
_more: this._more,
|
|
519
|
-
_input: this._input,
|
|
520
|
-
yy: this.yy,
|
|
521
|
-
conditionStack: this.conditionStack.slice(0),
|
|
522
|
-
done: this.done
|
|
523
|
-
}, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), E = o[0].match(/(?:\r\n?|\n).*/g), E && (this.yylineno += E.length), this.yylloc = {
|
|
524
|
-
first_line: this.yylloc.last_line,
|
|
525
|
-
last_line: this.yylineno + 1,
|
|
526
|
-
first_column: this.yylloc.last_column,
|
|
527
|
-
last_column: E ? E[E.length - 1].length - E[E.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
|
528
|
-
}, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], a = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
|
|
529
|
-
return a;
|
|
530
|
-
if (this._backtrack) {
|
|
531
|
-
for (var B in e)
|
|
532
|
-
this[B] = e[B];
|
|
533
|
-
return !1;
|
|
534
|
-
}
|
|
535
|
-
return !1;
|
|
536
|
-
},
|
|
537
|
-
// return next match in input
|
|
538
|
-
next: function() {
|
|
539
|
-
if (this.done)
|
|
540
|
-
return this.EOF;
|
|
541
|
-
this._input || (this.done = !0);
|
|
542
|
-
var o, d, a, E;
|
|
543
|
-
this._more || (this.yytext = "", this.match = "");
|
|
544
|
-
for (var e = this._currentRules(), B = 0; B < e.length; B++)
|
|
545
|
-
if (a = this._input.match(this.rules[e[B]]), a && (!d || a[0].length > d[0].length)) {
|
|
546
|
-
if (d = a, E = B, this.options.backtrack_lexer) {
|
|
547
|
-
if (o = this.test_match(a, e[B]), o !== !1)
|
|
548
|
-
return o;
|
|
549
|
-
if (this._backtrack) {
|
|
550
|
-
d = !1;
|
|
551
|
-
continue;
|
|
552
|
-
} else
|
|
553
|
-
return !1;
|
|
554
|
-
} else if (!this.options.flex)
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
return d ? (o = this.test_match(d, e[E]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
558
|
-
` + this.showPosition(), {
|
|
559
|
-
text: "",
|
|
560
|
-
token: null,
|
|
561
|
-
line: this.yylineno
|
|
562
|
-
});
|
|
563
|
-
},
|
|
564
|
-
// return next match that has a token
|
|
565
|
-
lex: function() {
|
|
566
|
-
var o = this.next();
|
|
567
|
-
return o || this.lex();
|
|
568
|
-
},
|
|
569
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
570
|
-
begin: function(o) {
|
|
571
|
-
this.conditionStack.push(o);
|
|
572
|
-
},
|
|
573
|
-
// pop the previously active lexer condition state off the condition stack
|
|
574
|
-
popState: function() {
|
|
575
|
-
var o = this.conditionStack.length - 1;
|
|
576
|
-
return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
577
|
-
},
|
|
578
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
579
|
-
_currentRules: function() {
|
|
580
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
581
|
-
},
|
|
582
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
583
|
-
topState: function(o) {
|
|
584
|
-
return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
|
|
585
|
-
},
|
|
586
|
-
// alias for begin(condition)
|
|
587
|
-
pushState: function(o) {
|
|
588
|
-
this.begin(o);
|
|
589
|
-
},
|
|
590
|
-
// return the number of states currently on the stack
|
|
591
|
-
stateStackSize: function() {
|
|
592
|
-
return this.conditionStack.length;
|
|
593
|
-
},
|
|
594
|
-
options: { "case-insensitive": !0 },
|
|
595
|
-
performAction: function(o, d, a, E) {
|
|
596
|
-
switch (a) {
|
|
597
|
-
case 0:
|
|
598
|
-
return this.begin("acc_title"), 19;
|
|
599
|
-
case 1:
|
|
600
|
-
return this.popState(), "acc_title_value";
|
|
601
|
-
case 2:
|
|
602
|
-
return this.begin("acc_descr"), 21;
|
|
603
|
-
case 3:
|
|
604
|
-
return this.popState(), "acc_descr_value";
|
|
605
|
-
case 4:
|
|
606
|
-
this.begin("acc_descr_multiline");
|
|
607
|
-
break;
|
|
608
|
-
case 5:
|
|
609
|
-
this.popState();
|
|
610
|
-
break;
|
|
611
|
-
case 6:
|
|
612
|
-
return "acc_descr_multiline_value";
|
|
613
|
-
case 7:
|
|
614
|
-
return 13;
|
|
615
|
-
case 8:
|
|
616
|
-
break;
|
|
617
|
-
case 9:
|
|
618
|
-
break;
|
|
619
|
-
case 10:
|
|
620
|
-
return 5;
|
|
621
|
-
case 11:
|
|
622
|
-
return 40;
|
|
623
|
-
case 12:
|
|
624
|
-
return 32;
|
|
625
|
-
case 13:
|
|
626
|
-
return 38;
|
|
627
|
-
case 14:
|
|
628
|
-
return 42;
|
|
629
|
-
case 15:
|
|
630
|
-
return 43;
|
|
631
|
-
case 16:
|
|
632
|
-
return 44;
|
|
633
|
-
case 17:
|
|
634
|
-
return 45;
|
|
635
|
-
case 18:
|
|
636
|
-
return 35;
|
|
637
|
-
case 19:
|
|
638
|
-
return 28;
|
|
639
|
-
case 20:
|
|
640
|
-
return 29;
|
|
641
|
-
case 21:
|
|
642
|
-
return 37;
|
|
643
|
-
case 22:
|
|
644
|
-
return 31;
|
|
645
|
-
case 23:
|
|
646
|
-
return 34;
|
|
647
|
-
case 24:
|
|
648
|
-
return 26;
|
|
649
|
-
case 25:
|
|
650
|
-
return 9;
|
|
651
|
-
case 26:
|
|
652
|
-
return 9;
|
|
653
|
-
case 27:
|
|
654
|
-
return 8;
|
|
655
|
-
case 28:
|
|
656
|
-
return "CARET";
|
|
657
|
-
case 29:
|
|
658
|
-
this.begin("options");
|
|
659
|
-
break;
|
|
660
|
-
case 30:
|
|
661
|
-
this.popState();
|
|
662
|
-
break;
|
|
663
|
-
case 31:
|
|
664
|
-
return 12;
|
|
665
|
-
case 32:
|
|
666
|
-
return 36;
|
|
667
|
-
case 33:
|
|
668
|
-
this.begin("string");
|
|
669
|
-
break;
|
|
670
|
-
case 34:
|
|
671
|
-
this.popState();
|
|
672
|
-
break;
|
|
673
|
-
case 35:
|
|
674
|
-
return 33;
|
|
675
|
-
case 36:
|
|
676
|
-
return 30;
|
|
677
|
-
case 37:
|
|
678
|
-
return 46;
|
|
679
|
-
case 38:
|
|
680
|
-
return 7;
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:gitGraph\b)/i, /^(?:commit(?=\s|$))/i, /^(?:id:)/i, /^(?:type:)/i, /^(?:msg:)/i, /^(?:NORMAL\b)/i, /^(?:REVERSE\b)/i, /^(?:HIGHLIGHT\b)/i, /^(?:tag:)/i, /^(?:branch(?=\s|$))/i, /^(?:order:)/i, /^(?:merge(?=\s|$))/i, /^(?:cherry-pick(?=\s|$))/i, /^(?:parent:)/i, /^(?:checkout(?=\s|$))/i, /^(?:LR\b)/i, /^(?:TB\b)/i, /^(?::)/i, /^(?:\^)/i, /^(?:options\r?\n)/i, /^(?:[ \r\n\t]+end\b)/i, /^(?:[\s\S]+(?=[ \r\n\t]+end))/i, /^(?:["]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[0-9]+(?=\s|$))/i, /^(?:\w([-\./\w]*[-\w])?)/i, /^(?:$)/i, /^(?:\s+)/i],
|
|
684
|
-
conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, options: { rules: [30, 31], inclusive: !1 }, string: { rules: [34, 35], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 36, 37, 38, 39], inclusive: !0 } }
|
|
685
|
-
};
|
|
686
|
-
return R;
|
|
687
|
-
}();
|
|
688
|
-
T.lexer = x;
|
|
689
|
-
function P() {
|
|
690
|
-
this.yy = {};
|
|
691
|
-
}
|
|
692
|
-
return P.prototype = T, T.Parser = P, new P();
|
|
693
|
-
}();
|
|
694
|
-
he.parser = he;
|
|
695
|
-
const He = he;
|
|
696
|
-
let ie = v().gitGraph.mainBranchName, Ne = v().gitGraph.mainBranchOrder, I = {}, S = null, J = {};
|
|
697
|
-
J[ie] = { name: ie, order: Ne };
|
|
698
|
-
let M = {};
|
|
699
|
-
M[ie] = S;
|
|
700
|
-
let C = ie, de = "LR", W = 0;
|
|
701
|
-
function me() {
|
|
702
|
-
return Ge({ length: 7 });
|
|
703
|
-
}
|
|
704
|
-
function De(r, c) {
|
|
705
|
-
const l = /* @__PURE__ */ Object.create(null);
|
|
706
|
-
return r.reduce((m, s) => {
|
|
707
|
-
const n = c(s);
|
|
708
|
-
return l[n] || (l[n] = !0, m.push(s)), m;
|
|
709
|
-
}, []);
|
|
710
|
-
}
|
|
711
|
-
const ze = function(r) {
|
|
712
|
-
de = r;
|
|
713
|
-
};
|
|
714
|
-
let fe = {};
|
|
715
|
-
const qe = function(r) {
|
|
716
|
-
H.debug("options str", r), r = r && r.trim(), r = r || "{}";
|
|
717
|
-
try {
|
|
718
|
-
fe = JSON.parse(r);
|
|
719
|
-
} catch (c) {
|
|
720
|
-
H.error("error while parsing gitGraph options", c.message);
|
|
721
|
-
}
|
|
722
|
-
}, Ye = function() {
|
|
723
|
-
return fe;
|
|
724
|
-
}, je = function(r, c, l, m) {
|
|
725
|
-
H.debug("Entering commit:", r, c, l, m), c = z.sanitizeText(c, v()), r = z.sanitizeText(r, v()), m = z.sanitizeText(m, v());
|
|
726
|
-
const s = {
|
|
727
|
-
id: c || W + "-" + me(),
|
|
728
|
-
message: r,
|
|
729
|
-
seq: W++,
|
|
730
|
-
type: l || Q.NORMAL,
|
|
731
|
-
tag: m || "",
|
|
732
|
-
parents: S == null ? [] : [S.id],
|
|
733
|
-
branch: C
|
|
734
|
-
};
|
|
735
|
-
S = s, I[s.id] = s, M[C] = s.id, H.debug("in pushCommit " + s.id);
|
|
736
|
-
}, Fe = function(r, c) {
|
|
737
|
-
if (r = z.sanitizeText(r, v()), M[r] === void 0)
|
|
738
|
-
M[r] = S != null ? S.id : null, J[r] = { name: r, order: c ? parseInt(c, 10) : null }, ke(r), H.debug("in createBranch");
|
|
739
|
-
else {
|
|
740
|
-
let l = new Error(
|
|
741
|
-
'Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ' + r + '")'
|
|
742
|
-
);
|
|
743
|
-
throw l.hash = {
|
|
744
|
-
text: "branch " + r,
|
|
745
|
-
token: "branch " + r,
|
|
746
|
-
line: "1",
|
|
747
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
748
|
-
expected: ['"checkout ' + r + '"']
|
|
749
|
-
}, l;
|
|
750
|
-
}
|
|
751
|
-
}, Ue = function(r, c, l, m) {
|
|
752
|
-
r = z.sanitizeText(r, v()), c = z.sanitizeText(c, v());
|
|
753
|
-
const s = I[M[C]], n = I[M[r]];
|
|
754
|
-
if (C === r) {
|
|
755
|
-
let h = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
|
|
756
|
-
throw h.hash = {
|
|
757
|
-
text: "merge " + r,
|
|
758
|
-
token: "merge " + r,
|
|
759
|
-
line: "1",
|
|
760
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
761
|
-
expected: ["branch abc"]
|
|
762
|
-
}, h;
|
|
763
|
-
} else if (s === void 0 || !s) {
|
|
764
|
-
let h = new Error(
|
|
765
|
-
'Incorrect usage of "merge". Current branch (' + C + ")has no commits"
|
|
766
|
-
);
|
|
767
|
-
throw h.hash = {
|
|
768
|
-
text: "merge " + r,
|
|
769
|
-
token: "merge " + r,
|
|
770
|
-
line: "1",
|
|
771
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
772
|
-
expected: ["commit"]
|
|
773
|
-
}, h;
|
|
774
|
-
} else if (M[r] === void 0) {
|
|
775
|
-
let h = new Error(
|
|
776
|
-
'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
|
|
777
|
-
);
|
|
778
|
-
throw h.hash = {
|
|
779
|
-
text: "merge " + r,
|
|
780
|
-
token: "merge " + r,
|
|
781
|
-
line: "1",
|
|
782
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
783
|
-
expected: ["branch " + r]
|
|
784
|
-
}, h;
|
|
785
|
-
} else if (n === void 0 || !n) {
|
|
786
|
-
let h = new Error(
|
|
787
|
-
'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
|
|
788
|
-
);
|
|
789
|
-
throw h.hash = {
|
|
790
|
-
text: "merge " + r,
|
|
791
|
-
token: "merge " + r,
|
|
792
|
-
line: "1",
|
|
793
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
794
|
-
expected: ['"commit"']
|
|
795
|
-
}, h;
|
|
796
|
-
} else if (s === n) {
|
|
797
|
-
let h = new Error('Incorrect usage of "merge". Both branches have same head');
|
|
798
|
-
throw h.hash = {
|
|
799
|
-
text: "merge " + r,
|
|
800
|
-
token: "merge " + r,
|
|
801
|
-
line: "1",
|
|
802
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
803
|
-
expected: ["branch abc"]
|
|
804
|
-
}, h;
|
|
805
|
-
} else if (c && I[c] !== void 0) {
|
|
806
|
-
let h = new Error(
|
|
807
|
-
'Incorrect usage of "merge". Commit with id:' + c + " already exists, use different custom Id"
|
|
808
|
-
);
|
|
809
|
-
throw h.hash = {
|
|
810
|
-
text: "merge " + r + c + l + m,
|
|
811
|
-
token: "merge " + r + c + l + m,
|
|
812
|
-
line: "1",
|
|
813
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
814
|
-
expected: [
|
|
815
|
-
"merge " + r + " " + c + "_UNIQUE " + l + " " + m
|
|
816
|
-
]
|
|
817
|
-
}, h;
|
|
818
|
-
}
|
|
819
|
-
const g = {
|
|
820
|
-
id: c || W + "-" + me(),
|
|
821
|
-
message: "merged branch " + r + " into " + C,
|
|
822
|
-
seq: W++,
|
|
823
|
-
parents: [S == null ? null : S.id, M[r]],
|
|
824
|
-
branch: C,
|
|
825
|
-
type: Q.MERGE,
|
|
826
|
-
customType: l,
|
|
827
|
-
customId: !!c,
|
|
828
|
-
tag: m || ""
|
|
829
|
-
};
|
|
830
|
-
S = g, I[g.id] = g, M[C] = g.id, H.debug(M), H.debug("in mergeBranch");
|
|
831
|
-
}, Ke = function(r, c, l, m) {
|
|
832
|
-
if (H.debug("Entering cherryPick:", r, c, l), r = z.sanitizeText(r, v()), c = z.sanitizeText(c, v()), l = z.sanitizeText(l, v()), m = z.sanitizeText(m, v()), !r || I[r] === void 0) {
|
|
833
|
-
let g = new Error(
|
|
834
|
-
'Incorrect usage of "cherryPick". Source commit id should exist and provided'
|
|
835
|
-
);
|
|
836
|
-
throw g.hash = {
|
|
837
|
-
text: "cherryPick " + r + " " + c,
|
|
838
|
-
token: "cherryPick " + r + " " + c,
|
|
839
|
-
line: "1",
|
|
840
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
841
|
-
expected: ["cherry-pick abc"]
|
|
842
|
-
}, g;
|
|
843
|
-
}
|
|
844
|
-
let s = I[r], n = s.branch;
|
|
845
|
-
if (m && !(Array.isArray(s.parents) && s.parents.includes(m)))
|
|
846
|
-
throw new Error(
|
|
847
|
-
"Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
|
|
848
|
-
);
|
|
849
|
-
if (s.type === Q.MERGE && !m)
|
|
850
|
-
throw new Error(
|
|
851
|
-
"Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
|
|
852
|
-
);
|
|
853
|
-
if (!c || I[c] === void 0) {
|
|
854
|
-
if (n === C) {
|
|
855
|
-
let f = new Error(
|
|
856
|
-
'Incorrect usage of "cherryPick". Source commit is already on current branch'
|
|
857
|
-
);
|
|
858
|
-
throw f.hash = {
|
|
859
|
-
text: "cherryPick " + r + " " + c,
|
|
860
|
-
token: "cherryPick " + r + " " + c,
|
|
861
|
-
line: "1",
|
|
862
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
863
|
-
expected: ["cherry-pick abc"]
|
|
864
|
-
}, f;
|
|
865
|
-
}
|
|
866
|
-
const g = I[M[C]];
|
|
867
|
-
if (g === void 0 || !g) {
|
|
868
|
-
let f = new Error(
|
|
869
|
-
'Incorrect usage of "cherry-pick". Current branch (' + C + ")has no commits"
|
|
870
|
-
);
|
|
871
|
-
throw f.hash = {
|
|
872
|
-
text: "cherryPick " + r + " " + c,
|
|
873
|
-
token: "cherryPick " + r + " " + c,
|
|
874
|
-
line: "1",
|
|
875
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
876
|
-
expected: ["cherry-pick abc"]
|
|
877
|
-
}, f;
|
|
878
|
-
}
|
|
879
|
-
const h = {
|
|
880
|
-
id: W + "-" + me(),
|
|
881
|
-
message: "cherry-picked " + s + " into " + C,
|
|
882
|
-
seq: W++,
|
|
883
|
-
parents: [S == null ? null : S.id, s.id],
|
|
884
|
-
branch: C,
|
|
885
|
-
type: Q.CHERRY_PICK,
|
|
886
|
-
tag: l ?? `cherry-pick:${s.id}${s.type === Q.MERGE ? `|parent:${m}` : ""}`
|
|
887
|
-
};
|
|
888
|
-
S = h, I[h.id] = h, M[C] = h.id, H.debug(M), H.debug("in cherryPick");
|
|
889
|
-
}
|
|
890
|
-
}, ke = function(r) {
|
|
891
|
-
if (r = z.sanitizeText(r, v()), M[r] === void 0) {
|
|
892
|
-
let c = new Error(
|
|
893
|
-
'Trying to checkout branch which is not yet created. (Help try using "branch ' + r + '")'
|
|
894
|
-
);
|
|
895
|
-
throw c.hash = {
|
|
896
|
-
text: "checkout " + r,
|
|
897
|
-
token: "checkout " + r,
|
|
898
|
-
line: "1",
|
|
899
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
900
|
-
expected: ['"branch ' + r + '"']
|
|
901
|
-
}, c;
|
|
902
|
-
} else {
|
|
903
|
-
C = r;
|
|
904
|
-
const c = M[C];
|
|
905
|
-
S = I[c];
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
function ge(r, c, l) {
|
|
909
|
-
const m = r.indexOf(c);
|
|
910
|
-
m === -1 ? r.push(l) : r.splice(m, 1, l);
|
|
911
|
-
}
|
|
912
|
-
function $e(r) {
|
|
913
|
-
const c = r.reduce((s, n) => s.seq > n.seq ? s : n, r[0]);
|
|
914
|
-
let l = "";
|
|
915
|
-
r.forEach(function(s) {
|
|
916
|
-
s === c ? l += " *" : l += " |";
|
|
917
|
-
});
|
|
918
|
-
const m = [l, c.id, c.seq];
|
|
919
|
-
for (let s in M)
|
|
920
|
-
M[s] === c.id && m.push(s);
|
|
921
|
-
if (H.debug(m.join(" ")), c.parents && c.parents.length == 2) {
|
|
922
|
-
const s = I[c.parents[0]];
|
|
923
|
-
ge(r, c, s), r.push(I[c.parents[1]]);
|
|
924
|
-
} else {
|
|
925
|
-
if (c.parents.length == 0)
|
|
926
|
-
return;
|
|
927
|
-
{
|
|
928
|
-
const s = I[c.parents];
|
|
929
|
-
ge(r, c, s);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
r = De(r, (s) => s.id), $e(r);
|
|
933
|
-
}
|
|
934
|
-
const We = function() {
|
|
935
|
-
H.debug(I);
|
|
936
|
-
const r = xe()[0];
|
|
937
|
-
$e([r]);
|
|
938
|
-
}, Xe = function() {
|
|
939
|
-
I = {}, S = null;
|
|
940
|
-
let r = v().gitGraph.mainBranchName, c = v().gitGraph.mainBranchOrder;
|
|
941
|
-
M = {}, M[r] = null, J = {}, J[r] = { name: r, order: c }, C = r, W = 0, Oe();
|
|
942
|
-
}, Qe = function() {
|
|
943
|
-
return Object.values(J).map((r, c) => r.order !== null ? r : {
|
|
944
|
-
...r,
|
|
945
|
-
order: parseFloat(`0.${c}`, 10)
|
|
946
|
-
}).sort((r, c) => r.order - c.order).map(({ name: r }) => ({ name: r }));
|
|
947
|
-
}, Ze = function() {
|
|
948
|
-
return M;
|
|
949
|
-
}, Ve = function() {
|
|
950
|
-
return I;
|
|
951
|
-
}, xe = function() {
|
|
952
|
-
const r = Object.keys(I).map(function(c) {
|
|
953
|
-
return I[c];
|
|
954
|
-
});
|
|
955
|
-
return r.forEach(function(c) {
|
|
956
|
-
H.debug(c.id);
|
|
957
|
-
}), r.sort((c, l) => c.seq - l.seq), r;
|
|
958
|
-
}, Je = function() {
|
|
959
|
-
return C;
|
|
960
|
-
}, et = function() {
|
|
961
|
-
return de;
|
|
962
|
-
}, tt = function() {
|
|
963
|
-
return S;
|
|
964
|
-
}, Q = {
|
|
965
|
-
NORMAL: 0,
|
|
966
|
-
REVERSE: 1,
|
|
967
|
-
HIGHLIGHT: 2,
|
|
968
|
-
MERGE: 3,
|
|
969
|
-
CHERRY_PICK: 4
|
|
970
|
-
}, rt = {
|
|
971
|
-
getConfig: () => v().gitGraph,
|
|
972
|
-
setDirection: ze,
|
|
973
|
-
setOptions: qe,
|
|
974
|
-
getOptions: Ye,
|
|
975
|
-
commit: je,
|
|
976
|
-
branch: Fe,
|
|
977
|
-
merge: Ue,
|
|
978
|
-
cherryPick: Ke,
|
|
979
|
-
checkout: ke,
|
|
980
|
-
//reset,
|
|
981
|
-
prettyPrint: We,
|
|
982
|
-
clear: Xe,
|
|
983
|
-
getBranchesAsObjArray: Qe,
|
|
984
|
-
getBranches: Ze,
|
|
985
|
-
getCommits: Ve,
|
|
986
|
-
getCommitsArray: xe,
|
|
987
|
-
getCurrentBranch: Je,
|
|
988
|
-
getDirection: et,
|
|
989
|
-
getHead: tt,
|
|
990
|
-
setAccTitle: Le,
|
|
991
|
-
getAccTitle: Me,
|
|
992
|
-
getAccDescription: Ie,
|
|
993
|
-
setAccDescription: ve,
|
|
994
|
-
setDiagramTitle: Ae,
|
|
995
|
-
getDiagramTitle: Ce,
|
|
996
|
-
commitType: Q
|
|
997
|
-
};
|
|
998
|
-
let Z = {};
|
|
999
|
-
const N = {
|
|
1000
|
-
NORMAL: 0,
|
|
1001
|
-
REVERSE: 1,
|
|
1002
|
-
HIGHLIGHT: 2,
|
|
1003
|
-
MERGE: 3,
|
|
1004
|
-
CHERRY_PICK: 4
|
|
1005
|
-
}, K = 8;
|
|
1006
|
-
let w = {}, j = {}, se = [], ee = 0, L = "LR";
|
|
1007
|
-
const at = () => {
|
|
1008
|
-
w = {}, j = {}, Z = {}, ee = 0, se = [], L = "LR";
|
|
1009
|
-
}, _e = (r) => {
|
|
1010
|
-
const c = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1011
|
-
let l = [];
|
|
1012
|
-
typeof r == "string" ? l = r.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(r) ? l = r : l = [];
|
|
1013
|
-
for (const m of l) {
|
|
1014
|
-
const s = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1015
|
-
s.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), s.setAttribute("dy", "1em"), s.setAttribute("x", "0"), s.setAttribute("class", "row"), s.textContent = m.trim(), c.appendChild(s);
|
|
1016
|
-
}
|
|
1017
|
-
return c;
|
|
1018
|
-
}, it = (r) => {
|
|
1019
|
-
let c = "", l = 0;
|
|
1020
|
-
return r.forEach((m) => {
|
|
1021
|
-
const s = L === "TB" ? j[m].y : j[m].x;
|
|
1022
|
-
s >= l && (c = m, l = s);
|
|
1023
|
-
}), c || void 0;
|
|
1024
|
-
}, be = (r, c, l) => {
|
|
1025
|
-
const m = v().gitGraph, s = r.append("g").attr("class", "commit-bullets"), n = r.append("g").attr("class", "commit-labels");
|
|
1026
|
-
let g = 0;
|
|
1027
|
-
L === "TB" && (g = 30);
|
|
1028
|
-
const h = Object.keys(c).sort((_, u) => c[_].seq - c[u].seq), f = m.parallelCommits, $ = 10, i = 40;
|
|
1029
|
-
h.forEach((_) => {
|
|
1030
|
-
const u = c[_];
|
|
1031
|
-
if (f)
|
|
1032
|
-
if (u.parents.length) {
|
|
1033
|
-
const b = it(u.parents);
|
|
1034
|
-
g = L === "TB" ? j[b].y + i : j[b].x + i;
|
|
1035
|
-
} else
|
|
1036
|
-
g = 0, L === "TB" && (g = 30);
|
|
1037
|
-
const k = g + $, y = L === "TB" ? k : w[u.branch].pos, p = L === "TB" ? w[u.branch].pos : k;
|
|
1038
|
-
if (l) {
|
|
1039
|
-
let b, O = u.customType !== void 0 && u.customType !== "" ? u.customType : u.type;
|
|
1040
|
-
switch (O) {
|
|
1041
|
-
case N.NORMAL:
|
|
1042
|
-
b = "commit-normal";
|
|
1043
|
-
break;
|
|
1044
|
-
case N.REVERSE:
|
|
1045
|
-
b = "commit-reverse";
|
|
1046
|
-
break;
|
|
1047
|
-
case N.HIGHLIGHT:
|
|
1048
|
-
b = "commit-highlight";
|
|
1049
|
-
break;
|
|
1050
|
-
case N.MERGE:
|
|
1051
|
-
b = "commit-merge";
|
|
1052
|
-
break;
|
|
1053
|
-
case N.CHERRY_PICK:
|
|
1054
|
-
b = "commit-cherry-pick";
|
|
1055
|
-
break;
|
|
1056
|
-
default:
|
|
1057
|
-
b = "commit-normal";
|
|
1058
|
-
}
|
|
1059
|
-
if (O === N.HIGHLIGHT) {
|
|
1060
|
-
const T = s.append("rect");
|
|
1061
|
-
T.attr("x", p - 10), T.attr("y", y - 10), T.attr("height", 20), T.attr("width", 20), T.attr(
|
|
1062
|
-
"class",
|
|
1063
|
-
`commit ${u.id} commit-highlight${w[u.branch].index % K} ${b}-outer`
|
|
1064
|
-
), s.append("rect").attr("x", p - 6).attr("y", y - 6).attr("height", 12).attr("width", 12).attr(
|
|
1065
|
-
"class",
|
|
1066
|
-
`commit ${u.id} commit${w[u.branch].index % K} ${b}-inner`
|
|
1067
|
-
);
|
|
1068
|
-
} else if (O === N.CHERRY_PICK)
|
|
1069
|
-
s.append("circle").attr("cx", p).attr("cy", y).attr("r", 10).attr("class", `commit ${u.id} ${b}`), s.append("circle").attr("cx", p - 3).attr("cy", y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${u.id} ${b}`), s.append("circle").attr("cx", p + 3).attr("cy", y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${u.id} ${b}`), s.append("line").attr("x1", p + 3).attr("y1", y + 1).attr("x2", p).attr("y2", y - 5).attr("stroke", "#fff").attr("class", `commit ${u.id} ${b}`), s.append("line").attr("x1", p - 3).attr("y1", y + 1).attr("x2", p).attr("y2", y - 5).attr("stroke", "#fff").attr("class", `commit ${u.id} ${b}`);
|
|
1070
|
-
else {
|
|
1071
|
-
const T = s.append("circle");
|
|
1072
|
-
if (T.attr("cx", p), T.attr("cy", y), T.attr("r", u.type === N.MERGE ? 9 : 10), T.attr(
|
|
1073
|
-
"class",
|
|
1074
|
-
`commit ${u.id} commit${w[u.branch].index % K}`
|
|
1075
|
-
), O === N.MERGE) {
|
|
1076
|
-
const x = s.append("circle");
|
|
1077
|
-
x.attr("cx", p), x.attr("cy", y), x.attr("r", 6), x.attr(
|
|
1078
|
-
"class",
|
|
1079
|
-
`commit ${b} ${u.id} commit${w[u.branch].index % K}`
|
|
1080
|
-
);
|
|
1081
|
-
}
|
|
1082
|
-
O === N.REVERSE && s.append("path").attr("d", `M ${p - 5},${y - 5}L${p + 5},${y + 5}M${p - 5},${y + 5}L${p + 5},${y - 5}`).attr(
|
|
1083
|
-
"class",
|
|
1084
|
-
`commit ${b} ${u.id} commit${w[u.branch].index % K}`
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
if (L === "TB" ? j[u.id] = { x: p, y: k } : j[u.id] = { x: k, y }, l) {
|
|
1089
|
-
if (u.type !== N.CHERRY_PICK && (u.customId && u.type === N.MERGE || u.type !== N.MERGE) && m.showCommitLabel) {
|
|
1090
|
-
const b = n.append("g"), O = b.insert("rect").attr("class", "commit-label-bkg"), T = b.append("text").attr("x", g).attr("y", y + 25).attr("class", "commit-label").text(u.id);
|
|
1091
|
-
let x = T.node().getBBox();
|
|
1092
|
-
if (O.attr("x", k - x.width / 2 - 2).attr("y", y + 13.5).attr("width", x.width + 2 * 2).attr("height", x.height + 2 * 2), L === "TB" && (O.attr("x", p - (x.width + 4 * 4 + 5)).attr("y", y - 12), T.attr("x", p - (x.width + 4 * 4)).attr("y", y + x.height - 12)), L !== "TB" && T.attr("x", k - x.width / 2), m.rotateCommitLabel)
|
|
1093
|
-
if (L === "TB")
|
|
1094
|
-
T.attr("transform", "rotate(-45, " + p + ", " + y + ")"), O.attr("transform", "rotate(-45, " + p + ", " + y + ")");
|
|
1095
|
-
else {
|
|
1096
|
-
let P = -7.5 - (x.width + 10) / 25 * 9.5, R = 10 + x.width / 25 * 8.5;
|
|
1097
|
-
b.attr(
|
|
1098
|
-
"transform",
|
|
1099
|
-
"translate(" + P + ", " + R + ") rotate(-45, " + g + ", " + y + ")"
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
if (u.tag) {
|
|
1104
|
-
const b = n.insert("polygon"), O = n.append("circle"), T = n.append("text").attr("y", y - 16).attr("class", "tag-label").text(u.tag);
|
|
1105
|
-
let x = T.node().getBBox();
|
|
1106
|
-
T.attr("x", k - x.width / 2);
|
|
1107
|
-
const P = x.height / 2, R = y - 19.2;
|
|
1108
|
-
b.attr("class", "tag-label-bkg").attr(
|
|
1109
|
-
"points",
|
|
1110
|
-
`
|
|
1111
|
-
${g - x.width / 2 - 4 / 2},${R + 2}
|
|
1112
|
-
${g - x.width / 2 - 4 / 2},${R - 2}
|
|
1113
|
-
${k - x.width / 2 - 4},${R - P - 2}
|
|
1114
|
-
${k + x.width / 2 + 4},${R - P - 2}
|
|
1115
|
-
${k + x.width / 2 + 4},${R + P + 2}
|
|
1116
|
-
${k - x.width / 2 - 4},${R + P + 2}`
|
|
1117
|
-
), O.attr("cx", g - x.width / 2 + 4 / 2).attr("cy", R).attr("r", 1.5).attr("class", "tag-hole"), L === "TB" && (b.attr("class", "tag-label-bkg").attr(
|
|
1118
|
-
"points",
|
|
1119
|
-
`
|
|
1120
|
-
${p},${g + 2}
|
|
1121
|
-
${p},${g - 2}
|
|
1122
|
-
${p + $},${g - P - 2}
|
|
1123
|
-
${p + $ + x.width + 4},${g - P - 2}
|
|
1124
|
-
${p + $ + x.width + 4},${g + P + 2}
|
|
1125
|
-
${p + $},${g + P + 2}`
|
|
1126
|
-
).attr("transform", "translate(12,12) rotate(45, " + p + "," + g + ")"), O.attr("cx", p + 4 / 2).attr("cy", g).attr("transform", "translate(12,12) rotate(45, " + p + "," + g + ")"), T.attr("x", p + 5).attr("y", g + 3).attr("transform", "translate(14,14) rotate(45, " + p + "," + g + ")"));
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
g += i + $, g > ee && (ee = g);
|
|
1130
|
-
});
|
|
1131
|
-
}, st = (r, c, l, m, s) => {
|
|
1132
|
-
const n = (L === "TB" ? l.x < m.x : l.y < m.y) ? c.branch : r.branch, g = (f) => f.branch === n, h = (f) => f.seq > r.seq && f.seq < c.seq;
|
|
1133
|
-
return Object.values(s).some((f) => h(f) && g(f));
|
|
1134
|
-
}, V = (r, c, l = 0) => {
|
|
1135
|
-
const m = r + Math.abs(r - c) / 2;
|
|
1136
|
-
if (l > 5)
|
|
1137
|
-
return m;
|
|
1138
|
-
if (se.every((n) => Math.abs(n - m) >= 10))
|
|
1139
|
-
return se.push(m), m;
|
|
1140
|
-
const s = Math.abs(r - c);
|
|
1141
|
-
return V(r, c - s / 5, l + 1);
|
|
1142
|
-
}, ct = (r, c, l, m) => {
|
|
1143
|
-
const s = j[c.id], n = j[l.id], g = st(c, l, s, n, m);
|
|
1144
|
-
let h = "", f = "", $ = 0, i = 0, _ = w[l.branch].index, u;
|
|
1145
|
-
if (g) {
|
|
1146
|
-
h = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", $ = 10, i = 10;
|
|
1147
|
-
const k = s.y < n.y ? V(s.y, n.y) : V(n.y, s.y), y = s.x < n.x ? V(s.x, n.x) : V(n.x, s.x);
|
|
1148
|
-
L === "TB" ? s.x < n.x ? (_ = w[l.branch].index, u = `M ${s.x} ${s.y} L ${y - $} ${s.y} ${f} ${y} ${s.y + i} L ${y} ${n.y - $} ${h} ${y + i} ${n.y} L ${n.x} ${n.y}`) : (_ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${y + $} ${s.y} ${h} ${y} ${s.y + i} L ${y} ${n.y - $} ${f} ${y - i} ${n.y} L ${n.x} ${n.y}`) : s.y < n.y ? (_ = w[l.branch].index, u = `M ${s.x} ${s.y} L ${s.x} ${k - $} ${h} ${s.x + i} ${k} L ${n.x - $} ${k} ${f} ${n.x} ${k + i} L ${n.x} ${n.y}`) : (_ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${s.x} ${k + $} ${f} ${s.x + i} ${k} L ${n.x - $} ${k} ${h} ${n.x} ${k - i} L ${n.x} ${n.y}`);
|
|
1149
|
-
} else
|
|
1150
|
-
L === "TB" ? (s.x < n.x && (h = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", $ = 20, i = 20, _ = w[l.branch].index, u = `M ${s.x} ${s.y} L ${n.x - $} ${s.y} ${f} ${n.x} ${s.y + i} L ${n.x} ${n.y}`), s.x > n.x && (h = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", $ = 20, i = 20, _ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${s.x} ${n.y - $} ${f} ${s.x - i} ${n.y} L ${n.x} ${n.y}`), s.x === n.x && (_ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${s.x + $} ${s.y} ${h} ${s.x + i} ${n.y + $} L ${n.x} ${n.y}`)) : (s.y < n.y && (h = "A 20 20, 0, 0, 0,", $ = 20, i = 20, _ = w[l.branch].index, u = `M ${s.x} ${s.y} L ${s.x} ${n.y - $} ${h} ${s.x + i} ${n.y} L ${n.x} ${n.y}`), s.y > n.y && (h = "A 20 20, 0, 0, 0,", $ = 20, i = 20, _ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${n.x - $} ${s.y} ${h} ${n.x} ${s.y - i} L ${n.x} ${n.y}`), s.y === n.y && (_ = w[c.branch].index, u = `M ${s.x} ${s.y} L ${s.x} ${n.y - $} ${h} ${s.x + i} ${n.y} L ${n.x} ${n.y}`));
|
|
1151
|
-
r.append("path").attr("d", u).attr("class", "arrow arrow" + _ % K);
|
|
1152
|
-
}, nt = (r, c) => {
|
|
1153
|
-
const l = r.append("g").attr("class", "commit-arrows");
|
|
1154
|
-
Object.keys(c).forEach((m) => {
|
|
1155
|
-
const s = c[m];
|
|
1156
|
-
s.parents && s.parents.length > 0 && s.parents.forEach((n) => {
|
|
1157
|
-
ct(l, c[n], s, c);
|
|
1158
|
-
});
|
|
1159
|
-
});
|
|
1160
|
-
}, ot = (r, c) => {
|
|
1161
|
-
const l = v().gitGraph, m = r.append("g");
|
|
1162
|
-
c.forEach((s, n) => {
|
|
1163
|
-
const g = n % K, h = w[s.name].pos, f = m.append("line");
|
|
1164
|
-
f.attr("x1", 0), f.attr("y1", h), f.attr("x2", ee), f.attr("y2", h), f.attr("class", "branch branch" + g), L === "TB" && (f.attr("y1", 30), f.attr("x1", h), f.attr("y2", ee), f.attr("x2", h)), se.push(h);
|
|
1165
|
-
let $ = s.name;
|
|
1166
|
-
const i = _e($), _ = m.insert("rect"), u = m.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + g);
|
|
1167
|
-
u.node().appendChild(i);
|
|
1168
|
-
let k = i.getBBox();
|
|
1169
|
-
_.attr("class", "branchLabelBkg label" + g).attr("rx", 4).attr("ry", 4).attr("x", -k.width - 4 - (l.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -k.height / 2 + 8).attr("width", k.width + 18).attr("height", k.height + 4), u.attr(
|
|
1170
|
-
"transform",
|
|
1171
|
-
"translate(" + (-k.width - 14 - (l.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (h - k.height / 2 - 1) + ")"
|
|
1172
|
-
), L === "TB" && (_.attr("x", h - k.width / 2 - 10).attr("y", 0), u.attr("transform", "translate(" + (h - k.width / 2 - 5) + ", 0)")), L !== "TB" && _.attr("transform", "translate(-19, " + (h - k.height / 2) + ")");
|
|
1173
|
-
});
|
|
1174
|
-
}, lt = function(r, c, l, m) {
|
|
1175
|
-
at();
|
|
1176
|
-
const s = v(), n = s.gitGraph;
|
|
1177
|
-
H.debug("in gitgraph renderer", r + `
|
|
1178
|
-
`, "id:", c, l), Z = m.db.getCommits();
|
|
1179
|
-
const g = m.db.getBranchesAsObjArray();
|
|
1180
|
-
L = m.db.getDirection();
|
|
1181
|
-
const h = Se(`[id="${c}"]`);
|
|
1182
|
-
let f = 0;
|
|
1183
|
-
g.forEach(($, i) => {
|
|
1184
|
-
const _ = _e($.name), u = h.append("g"), k = u.insert("g").attr("class", "branchLabel"), y = k.insert("g").attr("class", "label branch-label");
|
|
1185
|
-
y.node().appendChild(_);
|
|
1186
|
-
let p = _.getBBox();
|
|
1187
|
-
w[$.name] = { pos: f, index: i }, f += 50 + (n.rotateCommitLabel ? 40 : 0) + (L === "TB" ? p.width / 2 : 0), y.remove(), k.remove(), u.remove();
|
|
1188
|
-
}), be(h, Z, !1), n.showBranches && ot(h, g), nt(h, Z), be(h, Z, !0), Pe.insertTitle(
|
|
1189
|
-
h,
|
|
1190
|
-
"gitTitleText",
|
|
1191
|
-
n.titleTopMargin,
|
|
1192
|
-
m.db.getDiagramTitle()
|
|
1193
|
-
), Be(
|
|
1194
|
-
void 0,
|
|
1195
|
-
h,
|
|
1196
|
-
n.diagramPadding,
|
|
1197
|
-
n.useMaxWidth ?? s.useMaxWidth
|
|
1198
|
-
);
|
|
1199
|
-
}, ht = {
|
|
1200
|
-
draw: lt
|
|
1201
|
-
}, mt = (r) => `
|
|
1202
|
-
.commit-id,
|
|
1203
|
-
.commit-msg,
|
|
1204
|
-
.branch-label {
|
|
1205
|
-
fill: lightgrey;
|
|
1206
|
-
color: lightgrey;
|
|
1207
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
1208
|
-
font-family: var(--mermaid-font-family);
|
|
1209
|
-
}
|
|
1210
|
-
${[0, 1, 2, 3, 4, 5, 6, 7].map(
|
|
1211
|
-
(c) => `
|
|
1212
|
-
.branch-label${c} { fill: ${r["gitBranchLabel" + c]}; }
|
|
1213
|
-
.commit${c} { stroke: ${r["git" + c]}; fill: ${r["git" + c]}; }
|
|
1214
|
-
.commit-highlight${c} { stroke: ${r["gitInv" + c]}; fill: ${r["gitInv" + c]}; }
|
|
1215
|
-
.label${c} { fill: ${r["git" + c]}; }
|
|
1216
|
-
.arrow${c} { stroke: ${r["git" + c]}; }
|
|
1217
|
-
`
|
|
1218
|
-
).join(`
|
|
1219
|
-
`)}
|
|
1220
|
-
|
|
1221
|
-
.branch {
|
|
1222
|
-
stroke-width: 1;
|
|
1223
|
-
stroke: ${r.lineColor};
|
|
1224
|
-
stroke-dasharray: 2;
|
|
1225
|
-
}
|
|
1226
|
-
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
|
|
1227
|
-
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
|
|
1228
|
-
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
|
1229
|
-
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
|
|
1230
|
-
.tag-hole { fill: ${r.textColor}; }
|
|
1231
|
-
|
|
1232
|
-
.commit-merge {
|
|
1233
|
-
stroke: ${r.primaryColor};
|
|
1234
|
-
fill: ${r.primaryColor};
|
|
1235
|
-
}
|
|
1236
|
-
.commit-reverse {
|
|
1237
|
-
stroke: ${r.primaryColor};
|
|
1238
|
-
fill: ${r.primaryColor};
|
|
1239
|
-
stroke-width: 3;
|
|
1240
|
-
}
|
|
1241
|
-
.commit-highlight-outer {
|
|
1242
|
-
}
|
|
1243
|
-
.commit-highlight-inner {
|
|
1244
|
-
stroke: ${r.primaryColor};
|
|
1245
|
-
fill: ${r.primaryColor};
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
1249
|
-
.gitTitleText {
|
|
1250
|
-
text-anchor: middle;
|
|
1251
|
-
font-size: 18px;
|
|
1252
|
-
fill: ${r.textColor};
|
|
1253
|
-
}
|
|
1254
|
-
`, yt = mt, pt = {
|
|
1255
|
-
parser: He,
|
|
1256
|
-
db: rt,
|
|
1257
|
-
renderer: ht,
|
|
1258
|
-
styles: yt
|
|
1259
|
-
};
|
|
1260
|
-
export {
|
|
1261
|
-
pt as diagram
|
|
1262
|
-
};
|