1 | import { c as A, s as Ae, g as Oe, a as Se, b as Ie, z as Ge, A as Pe, m as He, l as G, f as V, B as Ne, F as De, G as pe, j as Ve, x as ze, H as je } from "./mermaid-9357f3d0.js";
|
2 | var me = function() {
|
3 | var r = function(B, l, u, b) {
|
4 | for (u = u || {}, b = B.length; b--; u[B[b]] = l)
|
5 | ;
|
6 | return u;
|
7 | }, n = [1, 4], o = [1, 7], h = [1, 5], a = [1, 9], c = [1, 6], f = [2, 6], p = [1, 16], w = [6, 8, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40, 50, 55], y = [8, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40], m = [8, 13, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40], d = [1, 26], _ = [6, 8, 14, 50, 55], s = [8, 14, 55], C = [1, 53], v = [1, 52], N = [8, 14, 30, 33, 35, 38, 55], x = [1, 67], g = [1, 68], k = [1, 69], P = [8, 14, 33, 35, 42, 55], ne = {
|
8 | trace: function() {
|
9 | },
|
10 | yy: {},
|
11 | symbols_: { error: 2, start: 3, eol: 4, directive: 5, GG: 6, document: 7, EOF: 8, ":": 9, DIR: 10, options: 11, body: 12, OPT: 13, NL: 14, line: 15, statement: 16, commitStatement: 17, mergeStatement: 18, cherryPickStatement: 19, acc_title: 20, acc_title_value: 21, acc_descr: 22, acc_descr_value: 23, acc_descr_multiline_value: 24, section: 25, branchStatement: 26, CHECKOUT: 27, ref: 28, BRANCH: 29, ORDER: 30, NUM: 31, CHERRY_PICK: 32, COMMIT_ID: 33, STR: 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, openDirective: 46, typeDirective: 47, closeDirective: 48, argDirective: 49, open_directive: 50, type_directive: 51, arg_directive: 52, close_directive: 53, ID: 54, ";": 55, $accept: 0, $end: 1 },
|
12 | terminals_: { 2: "error", 6: "GG", 8: "EOF", 9: ":", 10: "DIR", 13: "OPT", 14: "NL", 20: "acc_title", 21: "acc_title_value", 22: "acc_descr", 23: "acc_descr_value", 24: "acc_descr_multiline_value", 25: "section", 27: "CHECKOUT", 29: "BRANCH", 30: "ORDER", 31: "NUM", 32: "CHERRY_PICK", 33: "COMMIT_ID", 34: "STR", 35: "COMMIT_TAG", 36: "EMPTYSTR", 37: "MERGE", 38: "COMMIT_TYPE", 40: "COMMIT", 42: "COMMIT_MSG", 43: "NORMAL", 44: "REVERSE", 45: "HIGHLIGHT", 50: "open_directive", 51: "type_directive", 52: "arg_directive", 53: "close_directive", 54: "ID", 55: ";" },
|
13 | productions_: [0, [3, 2], [3, 2], [3, 3], [3, 4], [3, 5], [7, 0], [7, 2], [11, 2], [11, 1], [12, 0], [12, 2], [15, 2], [15, 1], [16, 1], [16, 1], [16, 1], [16, 2], [16, 2], [16, 1], [16, 1], [16, 1], [16, 2], [26, 2], [26, 4], [19, 3], [19, 5], [19, 5], [19, 5], [19, 5], [18, 2], [18, 4], [18, 4], [18, 4], [18, 6], [18, 6], [18, 6], [18, 6], [18, 6], [18, 6], [18, 8], [18, 8], [18, 8], [18, 8], [18, 8], [18, 8], [17, 2], [17, 3], [17, 3], [17, 5], [17, 5], [17, 3], [17, 5], [17, 5], [17, 5], [17, 5], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 3], [17, 5], [17, 5], [17, 5], [17, 5], [17, 5], [17, 5], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [41, 0], [41, 1], [39, 1], [39, 1], [39, 1], [5, 3], [5, 5], [46, 1], [47, 1], [49, 1], [48, 1], [28, 1], [28, 1], [4, 1], [4, 1], [4, 1]],
|
14 | performAction: function(l, u, b, i, E, e, W) {
|
15 | var t = e.length - 1;
|
16 | switch (E) {
|
17 | case 3:
|
18 | return e[t];
|
19 | case 4:
|
20 | return e[t - 1];
|
21 | case 5:
|
22 | return i.setDirection(e[t - 3]), e[t - 1];
|
23 | case 7:
|
24 | i.setOptions(e[t - 1]), this.$ = e[t];
|
25 | break;
|
26 | case 8:
|
27 | e[t - 1] += e[t], this.$ = e[t - 1];
|
28 | break;
|
29 | case 10:
|
30 | this.$ = [];
|
31 | break;
|
32 | case 11:
|
33 | e[t - 1].push(e[t]), this.$ = e[t - 1];
|
34 | break;
|
35 | case 12:
|
36 | this.$ = e[t - 1];
|
37 | break;
|
38 | case 17:
|
39 | this.$ = e[t].trim(), i.setAccTitle(this.$);
|
40 | break;
|
41 | case 18:
|
42 | case 19:
|
43 | this.$ = e[t].trim(), i.setAccDescription(this.$);
|
44 | break;
|
45 | case 20:
|
46 | i.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
|
47 | break;
|
48 | case 22:
|
49 | i.checkout(e[t]);
|
50 | break;
|
51 | case 23:
|
52 | i.branch(e[t]);
|
53 | break;
|
54 | case 24:
|
55 | i.branch(e[t - 2], e[t]);
|
56 | break;
|
57 | case 25:
|
58 | i.cherryPick(e[t], "", void 0);
|
59 | break;
|
60 | case 26:
|
61 | i.cherryPick(e[t - 2], "", e[t]);
|
62 | break;
|
63 | case 27:
|
64 | case 29:
|
65 | i.cherryPick(e[t - 2], "", "");
|
66 | break;
|
67 | case 28:
|
68 | i.cherryPick(e[t], "", e[t - 2]);
|
69 | break;
|
70 | case 30:
|
71 | i.merge(e[t], "", "", "");
|
72 | break;
|
73 | case 31:
|
74 | i.merge(e[t - 2], e[t], "", "");
|
75 | break;
|
76 | case 32:
|
77 | i.merge(e[t - 2], "", e[t], "");
|
78 | break;
|
79 | case 33:
|
80 | i.merge(e[t - 2], "", "", e[t]);
|
81 | break;
|
82 | case 34:
|
83 | i.merge(e[t - 4], e[t], "", e[t - 2]);
|
84 | break;
|
85 | case 35:
|
86 | i.merge(e[t - 4], "", e[t], e[t - 2]);
|
87 | break;
|
88 | case 36:
|
89 | i.merge(e[t - 4], "", e[t - 2], e[t]);
|
90 | break;
|
91 | case 37:
|
92 | i.merge(e[t - 4], e[t - 2], e[t], "");
|
93 | break;
|
94 | case 38:
|
95 | i.merge(e[t - 4], e[t - 2], "", e[t]);
|
96 | break;
|
97 | case 39:
|
98 | i.merge(e[t - 4], e[t], e[t - 2], "");
|
99 | break;
|
100 | case 40:
|
101 | i.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
102 | break;
|
103 | case 41:
|
104 | i.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
105 | break;
|
106 | case 42:
|
107 | i.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
108 | break;
|
109 | case 43:
|
110 | i.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
111 | break;
|
112 | case 44:
|
113 | i.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
114 | break;
|
115 | case 45:
|
116 | i.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
117 | break;
|
118 | case 46:
|
119 | i.commit(e[t]);
|
120 | break;
|
121 | case 47:
|
122 | i.commit("", "", i.commitType.NORMAL, e[t]);
|
123 | break;
|
124 | case 48:
|
125 | i.commit("", "", e[t], "");
|
126 | break;
|
127 | case 49:
|
128 | i.commit("", "", e[t], e[t - 2]);
|
129 | break;
|
130 | case 50:
|
131 | i.commit("", "", e[t - 2], e[t]);
|
132 | break;
|
133 | case 51:
|
134 | i.commit("", e[t], i.commitType.NORMAL, "");
|
135 | break;
|
136 | case 52:
|
137 | i.commit("", e[t - 2], i.commitType.NORMAL, e[t]);
|
138 | break;
|
139 | case 53:
|
140 | i.commit("", e[t], i.commitType.NORMAL, e[t - 2]);
|
141 | break;
|
142 | case 54:
|
143 | i.commit("", e[t - 2], e[t], "");
|
144 | break;
|
145 | case 55:
|
146 | i.commit("", e[t], e[t - 2], "");
|
147 | break;
|
148 | case 56:
|
149 | i.commit("", e[t - 4], e[t - 2], e[t]);
|
150 | break;
|
151 | case 57:
|
152 | i.commit("", e[t - 4], e[t], e[t - 2]);
|
153 | break;
|
154 | case 58:
|
155 | i.commit("", e[t - 2], e[t - 4], e[t]);
|
156 | break;
|
157 | case 59:
|
158 | i.commit("", e[t], e[t - 4], e[t - 2]);
|
159 | break;
|
160 | case 60:
|
161 | i.commit("", e[t], e[t - 2], e[t - 4]);
|
162 | break;
|
163 | case 61:
|
164 | i.commit("", e[t - 2], e[t], e[t - 4]);
|
165 | break;
|
166 | case 62:
|
167 | i.commit(e[t], "", i.commitType.NORMAL, "");
|
168 | break;
|
169 | case 63:
|
170 | i.commit(e[t], "", i.commitType.NORMAL, e[t - 2]);
|
171 | break;
|
172 | case 64:
|
173 | i.commit(e[t - 2], "", i.commitType.NORMAL, e[t]);
|
174 | break;
|
175 | case 65:
|
176 | i.commit(e[t - 2], "", e[t], "");
|
177 | break;
|
178 | case 66:
|
179 | i.commit(e[t], "", e[t - 2], "");
|
180 | break;
|
181 | case 67:
|
182 | i.commit(e[t], e[t - 2], i.commitType.NORMAL, "");
|
183 | break;
|
184 | case 68:
|
185 | i.commit(e[t - 2], e[t], i.commitType.NORMAL, "");
|
186 | break;
|
187 | case 69:
|
188 | i.commit(e[t - 4], "", e[t - 2], e[t]);
|
189 | break;
|
190 | case 70:
|
191 | i.commit(e[t - 4], "", e[t], e[t - 2]);
|
192 | break;
|
193 | case 71:
|
194 | i.commit(e[t - 2], "", e[t - 4], e[t]);
|
195 | break;
|
196 | case 72:
|
197 | i.commit(e[t], "", e[t - 4], e[t - 2]);
|
198 | break;
|
199 | case 73:
|
200 | i.commit(e[t], "", e[t - 2], e[t - 4]);
|
201 | break;
|
202 | case 74:
|
203 | i.commit(e[t - 2], "", e[t], e[t - 4]);
|
204 | break;
|
205 | case 75:
|
206 | i.commit(e[t - 4], e[t], e[t - 2], "");
|
207 | break;
|
208 | case 76:
|
209 | i.commit(e[t - 4], e[t - 2], e[t], "");
|
210 | break;
|
211 | case 77:
|
212 | i.commit(e[t - 2], e[t], e[t - 4], "");
|
213 | break;
|
214 | case 78:
|
215 | i.commit(e[t], e[t - 2], e[t - 4], "");
|
216 | break;
|
217 | case 79:
|
218 | i.commit(e[t], e[t - 4], e[t - 2], "");
|
219 | break;
|
220 | case 80:
|
221 | i.commit(e[t - 2], e[t - 4], e[t], "");
|
222 | break;
|
223 | case 81:
|
224 | i.commit(e[t - 4], e[t], i.commitType.NORMAL, e[t - 2]);
|
225 | break;
|
226 | case 82:
|
227 | i.commit(e[t - 4], e[t - 2], i.commitType.NORMAL, e[t]);
|
228 | break;
|
229 | case 83:
|
230 | i.commit(e[t - 2], e[t], i.commitType.NORMAL, e[t - 4]);
|
231 | break;
|
232 | case 84:
|
233 | i.commit(e[t], e[t - 2], i.commitType.NORMAL, e[t - 4]);
|
234 | break;
|
235 | case 85:
|
236 | i.commit(e[t], e[t - 4], i.commitType.NORMAL, e[t - 2]);
|
237 | break;
|
238 | case 86:
|
239 | i.commit(e[t - 2], e[t - 4], i.commitType.NORMAL, e[t]);
|
240 | break;
|
241 | case 87:
|
242 | i.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
243 | break;
|
244 | case 88:
|
245 | i.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
246 | break;
|
247 | case 89:
|
248 | i.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
249 | break;
|
250 | case 90:
|
251 | i.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
252 | break;
|
253 | case 91:
|
254 | i.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
255 | break;
|
256 | case 92:
|
257 | i.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
258 | break;
|
259 | case 93:
|
260 | i.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
|
261 | break;
|
262 | case 94:
|
263 | i.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
|
264 | break;
|
265 | case 95:
|
266 | i.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
|
267 | break;
|
268 | case 96:
|
269 | i.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
|
270 | break;
|
271 | case 97:
|
272 | i.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
|
273 | break;
|
274 | case 98:
|
275 | i.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
|
276 | break;
|
277 | case 99:
|
278 | i.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
|
279 | break;
|
280 | case 100:
|
281 | i.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
|
282 | break;
|
283 | case 101:
|
284 | i.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
|
285 | break;
|
286 | case 102:
|
287 | i.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
|
288 | break;
|
289 | case 103:
|
290 | i.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
|
291 | break;
|
292 | case 104:
|
293 | i.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
|
294 | break;
|
295 | case 105:
|
296 | i.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
|
297 | break;
|
298 | case 106:
|
299 | i.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
|
300 | break;
|
301 | case 107:
|
302 | i.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
|
303 | break;
|
304 | case 108:
|
305 | i.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
|
306 | break;
|
307 | case 109:
|
308 | i.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
|
309 | break;
|
310 | case 110:
|
311 | i.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
|
312 | break;
|
313 | case 111:
|
314 | this.$ = "";
|
315 | break;
|
316 | case 112:
|
317 | this.$ = e[t];
|
318 | break;
|
319 | case 113:
|
320 | this.$ = i.commitType.NORMAL;
|
321 | break;
|
322 | case 114:
|
323 | this.$ = i.commitType.REVERSE;
|
324 | break;
|
325 | case 115:
|
326 | this.$ = i.commitType.HIGHLIGHT;
|
327 | break;
|
328 | case 118:
|
329 | i.parseDirective("%%{", "open_directive");
|
330 | break;
|
331 | case 119:
|
332 | i.parseDirective(e[t], "type_directive");
|
333 | break;
|
334 | case 120:
|
335 | e[t] = e[t].trim().replace(/'/g, '"'), i.parseDirective(e[t], "arg_directive");
|
336 | break;
|
337 | case 121:
|
338 | i.parseDirective("}%%", "close_directive", "gitGraph");
|
339 | break;
|
340 | }
|
341 | },
|
342 | table: [{ 3: 1, 4: 2, 5: 3, 6: n, 8: o, 14: h, 46: 8, 50: a, 55: c }, { 1: [3] }, { 3: 10, 4: 2, 5: 3, 6: n, 8: o, 14: h, 46: 8, 50: a, 55: c }, { 3: 11, 4: 2, 5: 3, 6: n, 8: o, 14: h, 46: 8, 50: a, 55: c }, { 7: 12, 8: f, 9: [1, 13], 10: [1, 14], 11: 15, 14: p }, r(w, [2, 124]), r(w, [2, 125]), r(w, [2, 126]), { 47: 17, 51: [1, 18] }, { 51: [2, 118] }, { 1: [2, 1] }, { 1: [2, 2] }, { 8: [1, 19] }, { 7: 20, 8: f, 11: 15, 14: p }, { 9: [1, 21] }, r(y, [2, 10], { 12: 22, 13: [1, 23] }), r(m, [2, 9]), { 9: [1, 25], 48: 24, 53: d }, r([9, 53], [2, 119]), { 1: [2, 3] }, { 8: [1, 27] }, { 7: 28, 8: f, 11: 15, 14: p }, { 8: [2, 7], 14: [1, 31], 15: 29, 16: 30, 17: 32, 18: 33, 19: 34, 20: [1, 35], 22: [1, 36], 24: [1, 37], 25: [1, 38], 26: 39, 27: [1, 40], 29: [1, 44], 32: [1, 43], 37: [1, 42], 40: [1, 41] }, r(m, [2, 8]), r(_, [2, 116]), { 49: 45, 52: [1, 46] }, r(_, [2, 121]), { 1: [2, 4] }, { 8: [1, 47] }, r(y, [2, 11]), { 4: 48, 8: o, 14: h, 55: c }, r(y, [2, 13]), r(s, [2, 14]), r(s, [2, 15]), r(s, [2, 16]), { 21: [1, 49] }, { 23: [1, 50] }, r(s, [2, 19]), r(s, [2, 20]), r(s, [2, 21]), { 28: 51, 34: C, 54: v }, r(s, [2, 111], { 41: 54, 33: [1, 57], 34: [1, 59], 35: [1, 55], 38: [1, 56], 42: [1, 58] }), { 28: 60, 34: C, 54: v }, { 33: [1, 61], 35: [1, 62] }, { 28: 63, 34: C, 54: v }, { 48: 64, 53: d }, { 53: [2, 120] }, { 1: [2, 5] }, r(y, [2, 12]), r(s, [2, 17]), r(s, [2, 18]), r(s, [2, 22]), r(N, [2, 122]), r(N, [2, 123]), r(s, [2, 46]), { 34: [1, 65] }, { 39: 66, 43: x, 44: g, 45: k }, { 34: [1, 70] }, { 34: [1, 71] }, r(s, [2, 112]), r(s, [2, 30], { 33: [1, 72], 35: [1, 74], 38: [1, 73] }), { 34: [1, 75] }, { 34: [1, 76], 36: [1, 77] }, r(s, [2, 23], { 30: [1, 78] }), r(_, [2, 117]), r(s, [2, 47], { 33: [1, 80], 38: [1, 79], 42: [1, 81] }), r(s, [2, 48], { 33: [1, 83], 35: [1, 82], 42: [1, 84] }), r(P, [2, 113]), r(P, [2, 114]), r(P, [2, 115]), r(s, [2, 51], { 35: [1, 85], 38: [1, 86], 42: [1, 87] }), r(s, [2, 62], { 33: [1, 90], 35: [1, 88], 38: [1, 89] }), { 34: [1, 91] }, { 39: 92, 43: x, 44: g, 45: k }, { 34: [1, 93] }, r(s, [2, 25], { 35: [1, 94] }), { 33: [1, 95] }, { 33: [1, 96] }, { 31: [1, 97] }, { 39: 98, 43: x, 44: g, 45: k }, { 34: [1, 99] }, { 34: [1, 100] }, { 34: [1, 101] }, { 34: [1, 102] }, { 34: [1, 103] }, { 34: [1, 104] }, { 39: 105, 43: x, 44: g, 45: k }, { 34: [1, 106] }, { 34: [1, 107] }, { 39: 108, 43: x, 44: g, 45: k }, { 34: [1, 109] }, r(s, [2, 31], { 35: [1, 111], 38: [1, 110] }), r(s, [2, 32], { 33: [1, 113], 35: [1, 112] }), r(s, [2, 33], { 33: [1, 114], 38: [1, 115] }), { 34: [1, 116], 36: [1, 117] }, { 34: [1, 118] }, { 34: [1, 119] }, r(s, [2, 24]), r(s, [2, 49], { 33: [1, 120], 42: [1, 121] }), r(s, [2, 53], { 38: [1, 122], 42: [1, 123] }), r(s, [2, 63], { 33: [1, 125], 38: [1, 124] }), r(s, [2, 50], { 33: [1, 126], 42: [1, 127] }), r(s, [2, 55], { 35: [1, 128], 42: [1, 129] }), r(s, [2, 66], { 33: [1, 131], 35: [1, 130] }), r(s, [2, 52], { 38: [1, 132], 42: [1, 133] }), r(s, [2, 54], { 35: [1, 134], 42: [1, 135] }), r(s, [2, 67], { 35: [1, 137], 38: [1, 136] }), r(s, [2, 64], { 33: [1, 139], 38: [1, 138] }), r(s, [2, 65], { 33: [1, 141], 35: [1, 140] }), r(s, [2, 68], { 35: [1, 143], 38: [1, 142] }), { 39: 144, 43: x, 44: g, 45: k }, { 34: [1, 145] }, { 34: [1, 146] }, { 34: [1, 147] }, { 34: [1, 148] }, { 39: 149, 43: x, 44: g, 45: k }, r(s, [2, 26]), r(s, [2, 27]), r(s, [2, 28]), r(s, [2, 29]), { 34: [1, 150] }, { 34: [1, 151] }, { 39: 152, 43: x, 44: g, 45: k }, { 34: [1, 153] }, { 39: 154, 43: x, 44: g, 45: k }, { 34: [1, 155] }, { 34: [1, 156] }, { 34: [1, 157] }, { 34: [1, 158] }, { 34: [1, 159] }, { 34: [1, 160] }, { 34: [1, 161] }, { 39: 162, 43: x, 44: g, 45: k }, { 34: [1, 163] }, { 34: [1, 164] }, { 34: [1, 165] }, { 39: 166, 43: x, 44: g, 45: k }, { 34: [1, 167] }, { 39: 168, 43: x, 44: g, 45: k }, { 34: [1, 169] }, { 34: [1, 170] }, { 34: [1, 171] }, { 39: 172, 43: x, 44: g, 45: k }, { 34: [1, 173] }, r(s, [2, 37], { 35: [1, 174] }), r(s, [2, 38], { 38: [1, 175] }), r(s, [2, 36], { 33: [1, 176] }), r(s, [2, 39], { 35: [1, 177] }), r(s, [2, 34], { 38: [1, 178] }), r(s, [2, 35], { 33: [1, 179] }), r(s, [2, 60], { 42: [1, 180] }), r(s, [2, 73], { 33: [1, 181] }), r(s, [2, 61], { 42: [1, 182] }), r(s, [2, 84], { 38: [1, 183] }), r(s, [2, 74], { 33: [1, 184] }), r(s, [2, 83], { 38: [1, 185] }), r(s, [2, 59], { 42: [1, 186] }), r(s, [2, 72], { 33: [1, 187] }), r(s, [2, 58], { 42: [1, 188] }), r(s, [2, 78], { 35: [1, 189] }), r(s, [2, 71], { 33: [1, 190] }), r(s, [2, 77], { 35: [1, 191] }), r(s, [2, 57], { 42: [1, 192] }), r(s, [2, 85], { 38: [1, 193] }), r(s, [2, 56], { 42: [1, 194] }), r(s, [2, 79], { 35: [1, 195] }), r(s, [2, 80], { 35: [1, 196] }), r(s, [2, 86], { 38: [1, 197] }), r(s, [2, 70], { 33: [1, 198] }), r(s, [2, 81], { 38: [1, 199] }), r(s, [2, 69], { 33: [1, 200] }), r(s, [2, 75], { 35: [1, 201] }), r(s, [2, 76], { 35: [1, 202] }), r(s, [2, 82], { 38: [1, 203] }), { 34: [1, 204] }, { 39: 205, 43: x, 44: g, 45: k }, { 34: [1, 206] }, { 34: [1, 207] }, { 39: 208, 43: x, 44: g, 45: k }, { 34: [1, 209] }, { 34: [1, 210] }, { 34: [1, 211] }, { 34: [1, 212] }, { 39: 213, 43: x, 44: g, 45: k }, { 34: [1, 214] }, { 39: 215, 43: x, 44: g, 45: k }, { 34: [1, 216] }, { 34: [1, 217] }, { 34: [1, 218] }, { 34: [1, 219] }, { 34: [1, 220] }, { 34: [1, 221] }, { 34: [1, 222] }, { 39: 223, 43: x, 44: g, 45: k }, { 34: [1, 224] }, { 34: [1, 225] }, { 34: [1, 226] }, { 39: 227, 43: x, 44: g, 45: k }, { 34: [1, 228] }, { 39: 229, 43: x, 44: g, 45: k }, { 34: [1, 230] }, { 34: [1, 231] }, { 34: [1, 232] }, { 39: 233, 43: x, 44: g, 45: k }, r(s, [2, 40]), r(s, [2, 42]), r(s, [2, 41]), r(s, [2, 43]), r(s, [2, 45]), r(s, [2, 44]), r(s, [2, 101]), r(s, [2, 102]), r(s, [2, 99]), r(s, [2, 100]), r(s, [2, 104]), r(s, [2, 103]), r(s, [2, 108]), r(s, [2, 107]), r(s, [2, 106]), r(s, [2, 105]), r(s, [2, 110]), r(s, [2, 109]), r(s, [2, 98]), r(s, [2, 97]), r(s, [2, 96]), r(s, [2, 95]), r(s, [2, 93]), r(s, [2, 94]), r(s, [2, 92]), r(s, [2, 91]), r(s, [2, 90]), r(s, [2, 89]), r(s, [2, 87]), r(s, [2, 88])],
|
343 | defaultActions: { 9: [2, 118], 10: [2, 1], 11: [2, 2], 19: [2, 3], 27: [2, 4], 46: [2, 120], 47: [2, 5] },
|
344 | parseError: function(l, u) {
|
345 | if (u.recoverable)
|
346 | this.trace(l);
|
347 | else {
|
348 | var b = new Error(l);
|
349 | throw b.hash = u, b;
|
350 | }
|
351 | },
|
352 | parse: function(l) {
|
353 | var u = this, b = [0], i = [], E = [null], e = [], W = this.table, t = "", Z = 0, be = 0, Re = 2, ge = 1, Ce = e.slice.call(arguments, 1), L = Object.create(this.lexer), q = { yy: {} };
|
354 | for (var ce in this.yy)
|
355 | Object.prototype.hasOwnProperty.call(this.yy, ce) && (q.yy[ce] = this.yy[ce]);
|
356 | L.setInput(l, q.yy), q.yy.lexer = L, q.yy.parser = this, typeof L.yylloc > "u" && (L.yylloc = {});
|
357 | var oe = L.yylloc;
|
358 | e.push(oe);
|
359 | var Le = L.options && L.options.ranges;
|
360 | typeof q.yy.parseError == "function" ? this.parseError = q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
361 | function Me() {
|
362 | var j;
|
363 | return j = i.pop() || L.lex() || ge, typeof j != "number" && (j instanceof Array && (i = j, j = i.pop()), j = u.symbols_[j] || j), j;
|
364 | }
|
365 | for (var S, Y, D, le, U = {}, $, z, de, ee; ; ) {
|
366 | if (Y = b[b.length - 1], this.defaultActions[Y] ? D = this.defaultActions[Y] : ((S === null || typeof S > "u") && (S = Me()), D = W[Y] && W[Y][S]), typeof D > "u" || !D.length || !D[0]) {
|
367 | var he = "";
|
368 | ee = [];
|
369 | for ($ in W[Y])
|
370 | this.terminals_[$] && $ > Re && ee.push("'" + this.terminals_[$] + "'");
|
371 | L.showPosition ? he = "Parse error on line " + (Z + 1) + `:
|
372 | ` + L.showPosition() + `
|
373 | Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : he = "Parse error on line " + (Z + 1) + ": Unexpected " + (S == ge ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(he, {
|
374 | text: L.match,
|
375 | token: this.terminals_[S] || S,
|
376 | line: L.yylineno,
|
377 | loc: oe,
|
378 | expected: ee
|
379 | });
|
380 | }
|
381 | if (D[0] instanceof Array && D.length > 1)
|
382 | throw new Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + S);
|
383 | switch (D[0]) {
|
384 | case 1:
|
385 | b.push(S), E.push(L.yytext), e.push(L.yylloc), b.push(D[1]), S = null, be = L.yyleng, t = L.yytext, Z = L.yylineno, oe = L.yylloc;
|
386 | break;
|
387 | case 2:
|
388 | if (z = this.productions_[D[1]][1], U.$ = E[E.length - z], U._$ = {
|
389 | first_line: e[e.length - (z || 1)].first_line,
|
390 | last_line: e[e.length - 1].last_line,
|
391 | first_column: e[e.length - (z || 1)].first_column,
|
392 | last_column: e[e.length - 1].last_column
|
393 | }, Le && (U._$.range = [
|
394 | e[e.length - (z || 1)].range[0],
|
395 | e[e.length - 1].range[1]
|
396 | ]), le = this.performAction.apply(U, [
|
397 | t,
|
398 | be,
|
399 | Z,
|
400 | q.yy,
|
401 | D[1],
|
402 | E,
|
403 | e
|
404 | ].concat(Ce)), typeof le < "u")
|
405 | return le;
|
406 | z && (b = b.slice(0, -1 * z * 2), E = E.slice(0, -1 * z), e = e.slice(0, -1 * z)), b.push(this.productions_[D[1]][0]), E.push(U.$), e.push(U._$), de = W[b[b.length - 2]][b[b.length - 1]], b.push(de);
|
407 | break;
|
408 | case 3:
|
409 | return !0;
|
410 | }
|
411 | }
|
412 | return !0;
|
413 | }
|
414 | }, Te = function() {
|
415 | var B = {
|
416 | EOF: 1,
|
417 | parseError: function(u, b) {
|
418 | if (this.yy.parser)
|
419 | this.yy.parser.parseError(u, b);
|
420 | else
|
421 | throw new Error(u);
|
422 | },
|
423 |
|
424 | setInput: function(l, u) {
|
425 | return this.yy = u || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
426 | first_line: 1,
|
427 | first_column: 0,
|
428 | last_line: 1,
|
429 | last_column: 0
|
430 | }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
431 | },
|
432 |
|
433 | input: function() {
|
434 | var l = this._input[0];
|
435 | this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
|
436 | var u = l.match(/(?:\r\n?|\n).*/g);
|
437 | return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
|
438 | },
|
439 |
|
440 | unput: function(l) {
|
441 | var u = l.length, b = l.split(/(?:\r\n?|\n)/g);
|
442 | this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
|
443 | var i = this.match.split(/(?:\r\n?|\n)/g);
|
444 | this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
|
445 | var E = this.yylloc.range;
|
446 | return this.yylloc = {
|
447 | first_line: this.yylloc.first_line,
|
448 | last_line: this.yylineno + 1,
|
449 | first_column: this.yylloc.first_column,
|
450 | last_column: b ? (b.length === i.length ? this.yylloc.first_column : 0) + i[i.length - b.length].length - b[0].length : this.yylloc.first_column - u
|
451 | }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
|
452 | },
|
453 |
|
454 | more: function() {
|
455 | return this._more = !0, this;
|
456 | },
|
457 |
|
458 | reject: function() {
|
459 | if (this.options.backtrack_lexer)
|
460 | this._backtrack = !0;
|
461 | else
|
462 | 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).
|
463 | ` + this.showPosition(), {
|
464 | text: "",
|
465 | token: null,
|
466 | line: this.yylineno
|
467 | });
|
468 | return this;
|
469 | },
|
470 |
|
471 | less: function(l) {
|
472 | this.unput(this.match.slice(l));
|
473 | },
|
474 |
|
475 | pastInput: function() {
|
476 | var l = this.matched.substr(0, this.matched.length - this.match.length);
|
477 | return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
|
478 | },
|
479 |
|
480 | upcomingInput: function() {
|
481 | var l = this.match;
|
482 | return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
|
483 | },
|
484 |
|
485 | showPosition: function() {
|
486 | var l = this.pastInput(), u = new Array(l.length + 1).join("-");
|
487 | return l + this.upcomingInput() + `
|
488 | ` + u + "^";
|
489 | },
|
490 |
|
491 | test_match: function(l, u) {
|
492 | var b, i, E;
|
493 | if (this.options.backtrack_lexer && (E = {
|
494 | yylineno: this.yylineno,
|
495 | yylloc: {
|
496 | first_line: this.yylloc.first_line,
|
497 | last_line: this.last_line,
|
498 | first_column: this.yylloc.first_column,
|
499 | last_column: this.yylloc.last_column
|
500 | },
|
501 | yytext: this.yytext,
|
502 | match: this.match,
|
503 | matches: this.matches,
|
504 | matched: this.matched,
|
505 | yyleng: this.yyleng,
|
506 | offset: this.offset,
|
507 | _more: this._more,
|
508 | _input: this._input,
|
509 | yy: this.yy,
|
510 | conditionStack: this.conditionStack.slice(0),
|
511 | done: this.done
|
512 | }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), i = l[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
|
513 | first_line: this.yylloc.last_line,
|
514 | last_line: this.yylineno + 1,
|
515 | first_column: this.yylloc.last_column,
|
516 | last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
|
517 | }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], b = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
|
518 | return b;
|
519 | if (this._backtrack) {
|
520 | for (var e in E)
|
521 | this[e] = E[e];
|
522 | return !1;
|
523 | }
|
524 | return !1;
|
525 | },
|
526 |
|
527 | next: function() {
|
528 | if (this.done)
|
529 | return this.EOF;
|
530 | this._input || (this.done = !0);
|
531 | var l, u, b, i;
|
532 | this._more || (this.yytext = "", this.match = "");
|
533 | for (var E = this._currentRules(), e = 0; e < E.length; e++)
|
534 | if (b = this._input.match(this.rules[E[e]]), b && (!u || b[0].length > u[0].length)) {
|
535 | if (u = b, i = e, this.options.backtrack_lexer) {
|
536 | if (l = this.test_match(b, E[e]), l !== !1)
|
537 | return l;
|
538 | if (this._backtrack) {
|
539 | u = !1;
|
540 | continue;
|
541 | } else
|
542 | return !1;
|
543 | } else if (!this.options.flex)
|
544 | break;
|
545 | }
|
546 | return u ? (l = this.test_match(u, E[i]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
547 | ` + this.showPosition(), {
|
548 | text: "",
|
549 | token: null,
|
550 | line: this.yylineno
|
551 | });
|
552 | },
|
553 |
|
554 | lex: function() {
|
555 | var u = this.next();
|
556 | return u || this.lex();
|
557 | },
|
558 |
|
559 | begin: function(u) {
|
560 | this.conditionStack.push(u);
|
561 | },
|
562 |
|
563 | popState: function() {
|
564 | var u = this.conditionStack.length - 1;
|
565 | return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
566 | },
|
567 |
|
568 | _currentRules: function() {
|
569 | return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
570 | },
|
571 |
|
572 | topState: function(u) {
|
573 | return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
|
574 | },
|
575 |
|
576 | pushState: function(u) {
|
577 | this.begin(u);
|
578 | },
|
579 |
|
580 | stateStackSize: function() {
|
581 | return this.conditionStack.length;
|
582 | },
|
583 | options: { "case-insensitive": !0 },
|
584 | performAction: function(u, b, i, E) {
|
585 | switch (i) {
|
586 | case 0:
|
587 | return this.begin("open_directive"), 50;
|
588 | case 1:
|
589 | return this.begin("type_directive"), 51;
|
590 | case 2:
|
591 | return this.popState(), this.begin("arg_directive"), 9;
|
592 | case 3:
|
593 | return this.popState(), this.popState(), 53;
|
594 | case 4:
|
595 | return 52;
|
596 | case 5:
|
597 | return this.begin("acc_title"), 20;
|
598 | case 6:
|
599 | return this.popState(), "acc_title_value";
|
600 | case 7:
|
601 | return this.begin("acc_descr"), 22;
|
602 | case 8:
|
603 | return this.popState(), "acc_descr_value";
|
604 | case 9:
|
605 | this.begin("acc_descr_multiline");
|
606 | break;
|
607 | case 10:
|
608 | this.popState();
|
609 | break;
|
610 | case 11:
|
611 | return "acc_descr_multiline_value";
|
612 | case 12:
|
613 | return 14;
|
614 | case 13:
|
615 | break;
|
616 | case 14:
|
617 | break;
|
618 | case 15:
|
619 | return 6;
|
620 | case 16:
|
621 | return 40;
|
622 | case 17:
|
623 | return 33;
|
624 | case 18:
|
625 | return 38;
|
626 | case 19:
|
627 | return 42;
|
628 | case 20:
|
629 | return 43;
|
630 | case 21:
|
631 | return 44;
|
632 | case 22:
|
633 | return 45;
|
634 | case 23:
|
635 | return 35;
|
636 | case 24:
|
637 | return 29;
|
638 | case 25:
|
639 | return 30;
|
640 | case 26:
|
641 | return 37;
|
642 | case 27:
|
643 | return 32;
|
644 | case 28:
|
645 | return 27;
|
646 | case 29:
|
647 | return 10;
|
648 | case 30:
|
649 | return 10;
|
650 | case 31:
|
651 | return 9;
|
652 | case 32:
|
653 | return "CARET";
|
654 | case 33:
|
655 | this.begin("options");
|
656 | break;
|
657 | case 34:
|
658 | this.popState();
|
659 | break;
|
660 | case 35:
|
661 | return 13;
|
662 | case 36:
|
663 | return 36;
|
664 | case 37:
|
665 | this.begin("string");
|
666 | break;
|
667 | case 38:
|
668 | this.popState();
|
669 | break;
|
670 | case 39:
|
671 | return 34;
|
672 | case 40:
|
673 | return 31;
|
674 | case 41:
|
675 | return 54;
|
676 | case 42:
|
677 | return 8;
|
678 | }
|
679 | },
|
680 | rules: [/^(?:%%\{)/i, /^(?:((?:(?!\}%%)[^:.])*))/i, /^(?::)/i, /^(?:\}%%)/i, /^(?:((?:(?!\}%%).|\n)*))/i, /^(?: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, /^(?:checkout(?=\s|$))/i, /^(?:LR\b)/i, /^(?:BT\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],
|
681 | conditions: { acc_descr_multiline: { rules: [10, 11], inclusive: !1 }, acc_descr: { rules: [8], inclusive: !1 }, acc_title: { rules: [6], inclusive: !1 }, close_directive: { rules: [], inclusive: !1 }, arg_directive: { rules: [3, 4], inclusive: !1 }, type_directive: { rules: [2, 3], inclusive: !1 }, open_directive: { rules: [1], inclusive: !1 }, options: { rules: [34, 35], inclusive: !1 }, string: { rules: [38, 39], inclusive: !1 }, INITIAL: { rules: [0, 5, 7, 9, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 36, 37, 40, 41, 42, 43], inclusive: !0 } }
|
682 | };
|
683 | return B;
|
684 | }();
|
685 | ne.lexer = Te;
|
686 | function ae() {
|
687 | this.yy = {};
|
688 | }
|
689 | return ae.prototype = ne, ne.Parser = ae, new ae();
|
690 | }();
|
691 | me.parser = me;
|
692 | const Be = me;
|
693 | let te = A().gitGraph.mainBranchName, qe = A().gitGraph.mainBranchOrder, R = {}, O = null, Q = {};
|
694 | Q[te] = { name: te, order: qe };
|
695 | let T = {};
|
696 | T[te] = O;
|
697 | let M = te, xe = "LR", K = 0;
|
698 | function fe() {
|
699 | return De({ length: 7 });
|
700 | }
|
701 | const Ye = function(r, n, o) {
|
702 | He.parseDirective(this, r, n, o);
|
703 | };
|
704 | function Fe(r, n) {
|
705 | const o = Object.create(null);
|
706 | return r.reduce((h, a) => {
|
707 | const c = n(a);
|
708 | return o[c] || (o[c] = !0, h.push(a)), h;
|
709 | }, []);
|
710 | }
|
711 | const Ke = function(r) {
|
712 | xe = r;
|
713 | };
|
714 | let ye = {};
|
715 | const Ue = function(r) {
|
716 | G.debug("options str", r), r = r && r.trim(), r = r || "{}";
|
717 | try {
|
718 | ye = JSON.parse(r);
|
719 | } catch (n) {
|
720 | G.error("error while parsing gitGraph options", n.message);
|
721 | }
|
722 | }, We = function() {
|
723 | return ye;
|
724 | }, Je = function(r, n, o, h) {
|
725 | G.debug("Entering commit:", r, n, o, h), n = V.sanitizeText(n, A()), r = V.sanitizeText(r, A()), h = V.sanitizeText(h, A());
|
726 | const a = {
|
727 | id: n || K + "-" + fe(),
|
728 | message: r,
|
729 | seq: K++,
|
730 | type: o || X.NORMAL,
|
731 | tag: h || "",
|
732 | parents: O == null ? [] : [O.id],
|
733 | branch: M
|
734 | };
|
735 | O = a, R[a.id] = a, T[M] = a.id, G.debug("in pushCommit " + a.id);
|
736 | }, Qe = function(r, n) {
|
737 | if (r = V.sanitizeText(r, A()), T[r] === void 0)
|
738 | T[r] = O != null ? O.id : null, Q[r] = { name: r, order: n ? parseInt(n, 10) : null }, Ee(r), G.debug("in createBranch");
|
739 | else {
|
740 | let o = 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 o.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 | }, o;
|
750 | }
|
751 | }, Xe = function(r, n, o, h) {
|
752 | r = V.sanitizeText(r, A()), n = V.sanitizeText(n, A());
|
753 | const a = R[T[M]], c = R[T[r]];
|
754 | if (M === r) {
|
755 | let p = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
|
756 | throw p.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 | }, p;
|
763 | } else if (a === void 0 || !a) {
|
764 | let p = new Error(
|
765 | 'Incorrect usage of "merge". Current branch (' + M + ")has no commits"
|
766 | );
|
767 | throw p.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 | }, p;
|
774 | } else if (T[r] === void 0) {
|
775 | let p = new Error(
|
776 | 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
|
777 | );
|
778 | throw p.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 | }, p;
|
785 | } else if (c === void 0 || !c) {
|
786 | let p = new Error(
|
787 | 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
|
788 | );
|
789 | throw p.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 | }, p;
|
796 | } else if (a === c) {
|
797 | let p = new Error('Incorrect usage of "merge". Both branches have same head');
|
798 | throw p.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 | }, p;
|
805 | } else if (n && R[n] !== void 0) {
|
806 | let p = new Error(
|
807 | 'Incorrect usage of "merge". Commit with id:' + n + " already exists, use different custom Id"
|
808 | );
|
809 | throw p.hash = {
|
810 | text: "merge " + r + n + o + h,
|
811 | token: "merge " + r + n + o + h,
|
812 | line: "1",
|
813 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
814 | expected: [
|
815 | "merge " + r + " " + n + "_UNIQUE " + o + " " + h
|
816 | ]
|
817 | }, p;
|
818 | }
|
819 | const f = {
|
820 | id: n || K + "-" + fe(),
|
821 | message: "merged branch " + r + " into " + M,
|
822 | seq: K++,
|
823 | parents: [O == null ? null : O.id, T[r]],
|
824 | branch: M,
|
825 | type: X.MERGE,
|
826 | customType: o,
|
827 | customId: !!n,
|
828 | tag: h || ""
|
829 | };
|
830 | O = f, R[f.id] = f, T[M] = f.id, G.debug(T), G.debug("in mergeBranch");
|
831 | }, Ze = function(r, n, o) {
|
832 | if (G.debug("Entering cherryPick:", r, n, o), r = V.sanitizeText(r, A()), n = V.sanitizeText(n, A()), o = V.sanitizeText(o, A()), !r || R[r] === void 0) {
|
833 | let c = new Error(
|
834 | 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
|
835 | );
|
836 | throw c.hash = {
|
837 | text: "cherryPick " + r + " " + n,
|
838 | token: "cherryPick " + r + " " + n,
|
839 | line: "1",
|
840 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
841 | expected: ["cherry-pick abc"]
|
842 | }, c;
|
843 | }
|
844 | let h = R[r], a = h.branch;
|
845 | if (h.type === X.MERGE) {
|
846 | let c = new Error(
|
847 | 'Incorrect usage of "cherryPick". Source commit should not be a merge commit'
|
848 | );
|
849 | throw c.hash = {
|
850 | text: "cherryPick " + r + " " + n,
|
851 | token: "cherryPick " + r + " " + n,
|
852 | line: "1",
|
853 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
854 | expected: ["cherry-pick abc"]
|
855 | }, c;
|
856 | }
|
857 | if (!n || R[n] === void 0) {
|
858 | if (a === M) {
|
859 | let p = new Error(
|
860 | 'Incorrect usage of "cherryPick". Source commit is already on current branch'
|
861 | );
|
862 | throw p.hash = {
|
863 | text: "cherryPick " + r + " " + n,
|
864 | token: "cherryPick " + r + " " + n,
|
865 | line: "1",
|
866 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
867 | expected: ["cherry-pick abc"]
|
868 | }, p;
|
869 | }
|
870 | const c = R[T[M]];
|
871 | if (c === void 0 || !c) {
|
872 | let p = new Error(
|
873 | 'Incorrect usage of "cherry-pick". Current branch (' + M + ")has no commits"
|
874 | );
|
875 | throw p.hash = {
|
876 | text: "cherryPick " + r + " " + n,
|
877 | token: "cherryPick " + r + " " + n,
|
878 | line: "1",
|
879 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
880 | expected: ["cherry-pick abc"]
|
881 | }, p;
|
882 | }
|
883 | const f = {
|
884 | id: K + "-" + fe(),
|
885 | message: "cherry-picked " + h + " into " + M,
|
886 | seq: K++,
|
887 | parents: [O == null ? null : O.id, h.id],
|
888 | branch: M,
|
889 | type: X.CHERRY_PICK,
|
890 | tag: o ?? "cherry-pick:" + h.id
|
891 | };
|
892 | O = f, R[f.id] = f, T[M] = f.id, G.debug(T), G.debug("in cherryPick");
|
893 | }
|
894 | }, Ee = function(r) {
|
895 | if (r = V.sanitizeText(r, A()), T[r] === void 0) {
|
896 | let n = new Error(
|
897 | 'Trying to checkout branch which is not yet created. (Help try using "branch ' + r + '")'
|
898 | );
|
899 | throw n.hash = {
|
900 | text: "checkout " + r,
|
901 | token: "checkout " + r,
|
902 | line: "1",
|
903 | loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
904 | expected: ['"branch ' + r + '"']
|
905 | }, n;
|
906 | } else {
|
907 | M = r;
|
908 | const n = T[M];
|
909 | O = R[n];
|
910 | }
|
911 | };
|
912 | function ke(r, n, o) {
|
913 | const h = r.indexOf(n);
|
914 | h === -1 ? r.push(o) : r.splice(h, 1, o);
|
915 | }
|
916 | function we(r) {
|
917 | const n = r.reduce((a, c) => a.seq > c.seq ? a : c, r[0]);
|
918 | let o = "";
|
919 | r.forEach(function(a) {
|
920 | a === n ? o += " *" : o += " |";
|
921 | });
|
922 | const h = [o, n.id, n.seq];
|
923 | for (let a in T)
|
924 | T[a] === n.id && h.push(a);
|
925 | if (G.debug(h.join(" ")), n.parents && n.parents.length == 2) {
|
926 | const a = R[n.parents[0]];
|
927 | ke(r, n, a), r.push(R[n.parents[1]]);
|
928 | } else {
|
929 | if (n.parents.length == 0)
|
930 | return;
|
931 | {
|
932 | const a = R[n.parents];
|
933 | ke(r, n, a);
|
934 | }
|
935 | }
|
936 | r = Fe(r, (a) => a.id), we(r);
|
937 | }
|
938 | const $e = function() {
|
939 | G.debug(R);
|
940 | const r = ve()[0];
|
941 | we([r]);
|
942 | }, et = function() {
|
943 | R = {}, O = null;
|
944 | let r = A().gitGraph.mainBranchName, n = A().gitGraph.mainBranchOrder;
|
945 | T = {}, T[r] = null, Q = {}, Q[r] = { name: r, order: n }, M = r, K = 0, Ne();
|
946 | }, tt = function() {
|
947 | return Object.values(Q).map((n, o) => n.order !== null ? n : {
|
948 | ...n,
|
949 | order: parseFloat(`0.${o}`, 10)
|
950 | }).sort((n, o) => n.order - o.order).map(({ name: n }) => ({ name: n }));
|
951 | }, rt = function() {
|
952 | return T;
|
953 | }, it = function() {
|
954 | return R;
|
955 | }, ve = function() {
|
956 | const r = Object.keys(R).map(function(n) {
|
957 | return R[n];
|
958 | });
|
959 | return r.forEach(function(n) {
|
960 | G.debug(n.id);
|
961 | }), r.sort((n, o) => n.seq - o.seq), r;
|
962 | }, st = function() {
|
963 | return M;
|
964 | }, nt = function() {
|
965 | return xe;
|
966 | }, at = function() {
|
967 | return O;
|
968 | }, X = {
|
969 | NORMAL: 0,
|
970 | REVERSE: 1,
|
971 | HIGHLIGHT: 2,
|
972 | MERGE: 3,
|
973 | CHERRY_PICK: 4
|
974 | }, ct = {
|
975 | parseDirective: Ye,
|
976 | getConfig: () => A().gitGraph,
|
977 | setDirection: Ke,
|
978 | setOptions: Ue,
|
979 | getOptions: We,
|
980 | commit: Je,
|
981 | branch: Qe,
|
982 | merge: Xe,
|
983 | cherryPick: Ze,
|
984 | checkout: Ee,
|
985 |
|
986 | prettyPrint: $e,
|
987 | clear: et,
|
988 | getBranchesAsObjArray: tt,
|
989 | getBranches: rt,
|
990 | getCommits: it,
|
991 | getCommitsArray: ve,
|
992 | getCurrentBranch: st,
|
993 | getDirection: nt,
|
994 | getHead: at,
|
995 | setAccTitle: Ae,
|
996 | getAccTitle: Oe,
|
997 | getAccDescription: Se,
|
998 | setAccDescription: Ie,
|
999 | setDiagramTitle: Ge,
|
1000 | getDiagramTitle: Pe,
|
1001 | commitType: X
|
1002 | };
|
1003 | let J = {};
|
1004 | const H = {
|
1005 | NORMAL: 0,
|
1006 | REVERSE: 1,
|
1007 | HIGHLIGHT: 2,
|
1008 | MERGE: 3,
|
1009 | CHERRY_PICK: 4
|
1010 | }, F = 8;
|
1011 | let I = {}, re = {}, ie = [], se = 0;
|
1012 | const ot = () => {
|
1013 | I = {}, re = {}, J = {}, se = 0, ie = [];
|
1014 | }, lt = (r) => {
|
1015 | const n = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
1016 | let o = [];
|
1017 | typeof r == "string" ? o = r.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(r) ? o = r : o = [];
|
1018 | for (const h of o) {
|
1019 | const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
1020 | a.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), a.setAttribute("dy", "1em"), a.setAttribute("x", "0"), a.setAttribute("class", "row"), a.textContent = h.trim(), n.appendChild(a);
|
1021 | }
|
1022 | return n;
|
1023 | }, _e = (r, n, o) => {
|
1024 | const h = pe().gitGraph, a = r.append("g").attr("class", "commit-bullets"), c = r.append("g").attr("class", "commit-labels");
|
1025 | let f = 0;
|
1026 | Object.keys(n).sort((y, m) => n[y].seq - n[m].seq).forEach((y) => {
|
1027 | const m = n[y], d = I[m.branch].pos, _ = f + 10;
|
1028 | if (o) {
|
1029 | let s, C = m.customType !== void 0 && m.customType !== "" ? m.customType : m.type;
|
1030 | switch (C) {
|
1031 | case H.NORMAL:
|
1032 | s = "commit-normal";
|
1033 | break;
|
1034 | case H.REVERSE:
|
1035 | s = "commit-reverse";
|
1036 | break;
|
1037 | case H.HIGHLIGHT:
|
1038 | s = "commit-highlight";
|
1039 | break;
|
1040 | case H.MERGE:
|
1041 | s = "commit-merge";
|
1042 | break;
|
1043 | case H.CHERRY_PICK:
|
1044 | s = "commit-cherry-pick";
|
1045 | break;
|
1046 | default:
|
1047 | s = "commit-normal";
|
1048 | }
|
1049 | if (C === H.HIGHLIGHT) {
|
1050 | const v = a.append("rect");
|
1051 | v.attr("x", _ - 10), v.attr("y", d - 10), v.attr("height", 20), v.attr("width", 20), v.attr(
|
1052 | "class",
|
1053 | `commit ${m.id} commit-highlight${I[m.branch].index % F} ${s}-outer`
|
1054 | ), a.append("rect").attr("x", _ - 6).attr("y", d - 6).attr("height", 12).attr("width", 12).attr(
|
1055 | "class",
|
1056 | `commit ${m.id} commit${I[m.branch].index % F} ${s}-inner`
|
1057 | );
|
1058 | } else if (C === H.CHERRY_PICK)
|
1059 | a.append("circle").attr("cx", _).attr("cy", d).attr("r", 10).attr("class", `commit ${m.id} ${s}`), a.append("circle").attr("cx", _ - 3).attr("cy", d + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${m.id} ${s}`), a.append("circle").attr("cx", _ + 3).attr("cy", d + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${m.id} ${s}`), a.append("line").attr("x1", _ + 3).attr("y1", d + 1).attr("x2", _).attr("y2", d - 5).attr("stroke", "#fff").attr("class", `commit ${m.id} ${s}`), a.append("line").attr("x1", _ - 3).attr("y1", d + 1).attr("x2", _).attr("y2", d - 5).attr("stroke", "#fff").attr("class", `commit ${m.id} ${s}`);
|
1060 | else {
|
1061 | const v = a.append("circle");
|
1062 | if (v.attr("cx", _), v.attr("cy", d), v.attr("r", m.type === H.MERGE ? 9 : 10), v.attr(
|
1063 | "class",
|
1064 | `commit ${m.id} commit${I[m.branch].index % F}`
|
1065 | ), C === H.MERGE) {
|
1066 | const N = a.append("circle");
|
1067 | N.attr("cx", _), N.attr("cy", d), N.attr("r", 6), N.attr(
|
1068 | "class",
|
1069 | `commit ${s} ${m.id} commit${I[m.branch].index % F}`
|
1070 | );
|
1071 | }
|
1072 | C === H.REVERSE && a.append("path").attr("d", `M ${_ - 5},${d - 5}L${_ + 5},${d + 5}M${_ - 5},${d + 5}L${_ + 5},${d - 5}`).attr(
|
1073 | "class",
|
1074 | `commit ${s} ${m.id} commit${I[m.branch].index % F}`
|
1075 | );
|
1076 | }
|
1077 | }
|
1078 | if (re[m.id] = { x: f + 10, y: d }, o) {
|
1079 | if (m.type !== H.CHERRY_PICK && (m.customId && m.type === H.MERGE || m.type !== H.MERGE) && h.showCommitLabel) {
|
1080 | const v = c.append("g"), N = v.insert("rect").attr("class", "commit-label-bkg"), x = v.append("text").attr("x", f).attr("y", d + 25).attr("class", "commit-label").text(m.id);
|
1081 | let g = x.node().getBBox();
|
1082 | if (N.attr("x", f + 10 - g.width / 2 - 2).attr("y", d + 13.5).attr("width", g.width + 2 * 2).attr("height", g.height + 2 * 2), x.attr("x", f + 10 - g.width / 2), h.rotateCommitLabel) {
|
1083 | let k = -7.5 - (g.width + 10) / 25 * 9.5, P = 10 + g.width / 25 * 8.5;
|
1084 | v.attr(
|
1085 | "transform",
|
1086 | "translate(" + k + ", " + P + ") rotate(-45, " + f + ", " + d + ")"
|
1087 | );
|
1088 | }
|
1089 | }
|
1090 | if (m.tag) {
|
1091 | const v = c.insert("polygon"), N = c.append("circle"), x = c.append("text").attr("y", d - 16).attr("class", "tag-label").text(m.tag);
|
1092 | let g = x.node().getBBox();
|
1093 | x.attr("x", f + 10 - g.width / 2);
|
1094 | const k = g.height / 2, P = d - 19.2;
|
1095 | v.attr("class", "tag-label-bkg").attr(
|
1096 | "points",
|
1097 | `
|
1098 | ${f - g.width / 2 - 4 / 2},${P + 2}
|
1099 | ${f - g.width / 2 - 4 / 2},${P - 2}
|
1100 | ${f + 10 - g.width / 2 - 4},${P - k - 2}
|
1101 | ${f + 10 + g.width / 2 + 4},${P - k - 2}
|
1102 | ${f + 10 + g.width / 2 + 4},${P + k + 2}
|
1103 | ${f + 10 - g.width / 2 - 4},${P + k + 2}`
|
1104 | ), N.attr("cx", f - g.width / 2 + 4 / 2).attr("cy", P).attr("r", 1.5).attr("class", "tag-hole");
|
1105 | }
|
1106 | }
|
1107 | f += 50, f > se && (se = f);
|
1108 | });
|
1109 | }, ht = (r, n, o) => Object.keys(o).filter((c) => o[c].branch === n.branch && o[c].seq > r.seq && o[c].seq < n.seq).length > 0, ue = (r, n, o = 0) => {
|
1110 | const h = r + Math.abs(r - n) / 2;
|
1111 | if (o > 5)
|
1112 | return h;
|
1113 | if (ie.every((f) => Math.abs(f - h) >= 10))
|
1114 | return ie.push(h), h;
|
1115 | const c = Math.abs(r - n);
|
1116 | return ue(r, n - c / 5, o + 1);
|
1117 | }, mt = (r, n, o, h) => {
|
1118 | const a = re[n.id], c = re[o.id], f = ht(n, o, h);
|
1119 | let p = "", w = "", y = 0, m = 0, d = I[o.branch].index, _;
|
1120 | if (f) {
|
1121 | p = "A 10 10, 0, 0, 0,", w = "A 10 10, 0, 0, 1,", y = 10, m = 10, d = I[o.branch].index;
|
1122 | const s = a.y < c.y ? ue(a.y, c.y) : ue(c.y, a.y);
|
1123 | a.y < c.y ? _ = `M ${a.x} ${a.y} L ${a.x} ${s - y} ${p} ${a.x + m} ${s} L ${c.x - y} ${s} ${w} ${c.x} ${s + m} L ${c.x} ${c.y}` : _ = `M ${a.x} ${a.y} L ${a.x} ${s + y} ${w} ${a.x + m} ${s} L ${c.x - y} ${s} ${p} ${c.x} ${s - m} L ${c.x} ${c.y}`;
|
1124 | } else
|
1125 | a.y < c.y && (p = "A 20 20, 0, 0, 0,", y = 20, m = 20, d = I[o.branch].index, _ = `M ${a.x} ${a.y} L ${a.x} ${c.y - y} ${p} ${a.x + m} ${c.y} L ${c.x} ${c.y}`), a.y > c.y && (p = "A 20 20, 0, 0, 0,", y = 20, m = 20, d = I[n.branch].index, _ = `M ${a.x} ${a.y} L ${c.x - y} ${a.y} ${p} ${c.x} ${a.y - m} L ${c.x} ${c.y}`), a.y === c.y && (d = I[n.branch].index, _ = `M ${a.x} ${a.y} L ${a.x} ${c.y - y} ${p} ${a.x + m} ${c.y} L ${c.x} ${c.y}`);
|
1126 | r.append("path").attr("d", _).attr("class", "arrow arrow" + d % F);
|
1127 | }, ut = (r, n) => {
|
1128 | const o = r.append("g").attr("class", "commit-arrows");
|
1129 | Object.keys(n).forEach((h) => {
|
1130 | const a = n[h];
|
1131 | a.parents && a.parents.length > 0 && a.parents.forEach((c) => {
|
1132 | mt(o, n[c], a, n);
|
1133 | });
|
1134 | });
|
1135 | }, pt = (r, n) => {
|
1136 | const o = pe().gitGraph, h = r.append("g");
|
1137 | n.forEach((a, c) => {
|
1138 | const f = c % F, p = I[a.name].pos, w = h.append("line");
|
1139 | w.attr("x1", 0), w.attr("y1", p), w.attr("x2", se), w.attr("y2", p), w.attr("class", "branch branch" + f), ie.push(p);
|
1140 | let y = a.name;
|
1141 | const m = lt(y), d = h.insert("rect"), s = h.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + f);
|
1142 | s.node().appendChild(m);
|
1143 | let C = m.getBBox();
|
1144 | d.attr("class", "branchLabelBkg label" + f).attr("rx", 4).attr("ry", 4).attr("x", -C.width - 4 - (o.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -C.height / 2 + 8).attr("width", C.width + 18).attr("height", C.height + 4), s.attr(
|
1145 | "transform",
|
1146 | "translate(" + (-C.width - 14 - (o.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (p - C.height / 2 - 1) + ")"
|
1147 | ), d.attr("transform", "translate(-19, " + (p - C.height / 2) + ")");
|
1148 | });
|
1149 | }, ft = function(r, n, o, h) {
|
1150 | ot();
|
1151 | const a = pe(), c = a.gitGraph;
|
1152 | G.debug("in gitgraph renderer", r + `
|
1153 | `, "id:", n, o), J = h.db.getCommits();
|
1154 | const f = h.db.getBranchesAsObjArray();
|
1155 | let p = 0;
|
1156 | f.forEach((y, m) => {
|
1157 | I[y.name] = { pos: p, index: m }, p += 50 + (c.rotateCommitLabel ? 40 : 0);
|
1158 | });
|
1159 | const w = Ve(`[id="${n}"]`);
|
1160 | _e(w, J, !1), c.showBranches && pt(w, f), ut(w, J), _e(w, J, !0), ze.insertTitle(
|
1161 | w,
|
1162 | "gitTitleText",
|
1163 | c.titleTopMargin,
|
1164 | h.db.getDiagramTitle()
|
1165 | ), je(
|
1166 | void 0,
|
1167 | w,
|
1168 | c.diagramPadding,
|
1169 | c.useMaxWidth ?? a.useMaxWidth
|
1170 | );
|
1171 | }, bt = {
|
1172 | draw: ft
|
1173 | }, gt = (r) => `
|
1174 | .commit-id,
|
1175 | .commit-msg,
|
1176 | .branch-label {
|
1177 | fill: lightgrey;
|
1178 | color: lightgrey;
|
1179 | font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
1180 | font-family: var(--mermaid-font-family);
|
1181 | }
|
1182 | ${[0, 1, 2, 3, 4, 5, 6, 7].map(
|
1183 | (n) => `
|
1184 | .branch-label${n} { fill: ${r["gitBranchLabel" + n]}; }
|
1185 | .commit${n} { stroke: ${r["git" + n]}; fill: ${r["git" + n]}; }
|
1186 | .commit-highlight${n} { stroke: ${r["gitInv" + n]}; fill: ${r["gitInv" + n]}; }
|
1187 | .label${n} { fill: ${r["git" + n]}; }
|
1188 | .arrow${n} { stroke: ${r["git" + n]}; }
|
1189 | `
|
1190 | ).join(`
|
1191 | `)}
|
1192 |
|
1193 | .branch {
|
1194 | stroke-width: 1;
|
1195 | stroke: ${r.lineColor};
|
1196 | stroke-dasharray: 2;
|
1197 | }
|
1198 | .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
|
1199 | .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
|
1200 | .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
1201 | .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
|
1202 | .tag-hole { fill: ${r.textColor}; }
|
1203 |
|
1204 | .commit-merge {
|
1205 | stroke: ${r.primaryColor};
|
1206 | fill: ${r.primaryColor};
|
1207 | }
|
1208 | .commit-reverse {
|
1209 | stroke: ${r.primaryColor};
|
1210 | fill: ${r.primaryColor};
|
1211 | stroke-width: 3;
|
1212 | }
|
1213 | .commit-highlight-outer {
|
1214 | }
|
1215 | .commit-highlight-inner {
|
1216 | stroke: ${r.primaryColor};
|
1217 | fill: ${r.primaryColor};
|
1218 | }
|
1219 |
|
1220 | .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
1221 | .gitTitleText {
|
1222 | text-anchor: middle;
|
1223 | font-size: 18px;
|
1224 | fill: ${r.textColor};
|
1225 | }
|
1226 | `, dt = gt, _t = {
|
1227 | parser: Be,
|
1228 | db: ct,
|
1229 | renderer: bt,
|
1230 | styles: dt
|
1231 | };
|
1232 | export {
|
1233 | _t as diagram
|
1234 | };
|
1235 |
|
\ | No newline at end of file |