@elmethis/core 1.0.0-alpha.134 → 1.0.0-alpha.136

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.
Files changed (66) hide show
  1. package/dist/{Bash-CH5FqaYP.js → Bash-BGUPOZp7.js} +1 -1
  2. package/dist/{Css-CIfznlc_.js → Css-BCZOJ9TO.js} +1 -1
  3. package/dist/{Rust-CZSAfuWF.js → Rust-BwvKtYCc.js} +1 -1
  4. package/dist/_basePickBy-BjVOtBbf.js +152 -0
  5. package/dist/_baseUniq-DBXEmOed.js +583 -0
  6. package/dist/arc-CpOtc53l.js +83 -0
  7. package/dist/architecture-I3QFYML2-B3piHlUx.js +5 -0
  8. package/dist/architectureDiagram-UYN6MBPD-CIvqBNYd.js +4595 -0
  9. package/dist/blockDiagram-ZHA2E4KO-BJHIBwi6.js +2247 -0
  10. package/dist/c4Diagram-6F5ED5ID-DxXqw6e0.js +1581 -0
  11. package/dist/channel-BgZSmjvA.js +5 -0
  12. package/dist/chunk-5HRBRIJM-CvhBPtHu.js +24 -0
  13. package/dist/chunk-7U56Z5CX-CaWvnXle.js +1215 -0
  14. package/dist/chunk-ASOPGD6M-CQjrO8hd.js +64 -0
  15. package/dist/chunk-KFBOBJHC-DWru5GNu.js +15 -0
  16. package/dist/chunk-T2TOU4HS-DqpYO7rW.js +1303 -0
  17. package/dist/chunk-TMUBEWPD-LmMMNIqt.js +9 -0
  18. package/dist/classDiagram-LNE6IOMH-D5GoOZTJ.js +14 -0
  19. package/dist/classDiagram-v2-MQ7JQ4JX-D5GoOZTJ.js +14 -0
  20. package/dist/clone-DMQ2a__4.js +8 -0
  21. package/dist/{cobol-DZ3yq6J9.js → cobol-DMssKNmC.js} +1 -1
  22. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  23. package/dist/components/code/ElmMermaid.vue.d.ts +8 -0
  24. package/dist/cytoscape.esm-CsRvAgYT.js +17639 -0
  25. package/dist/dagre-4EVJKHTY-C7YsHY3S.js +447 -0
  26. package/dist/diagram-QW4FP2JN-iDbrW_yI.js +126 -0
  27. package/dist/elmethis.js +36 -35
  28. package/dist/elmethis.umd.cjs +2272 -41
  29. package/dist/erDiagram-6RL3IURR-LYq0WEw3.js +937 -0
  30. package/dist/flowDiagram-7ASYPVHJ-DRPtjs2_.js +1484 -0
  31. package/dist/ganttDiagram-NTVNEXSI-C-hO_7Lp.js +2494 -0
  32. package/dist/gitGraph-YCYPL57B-BaVhg8eu.js +5 -0
  33. package/dist/gitGraphDiagram-NRZ2UAAF-u52k9qsq.js +712 -0
  34. package/dist/graph-CKV5wesZ.js +247 -0
  35. package/dist/{index-B_eGv85A.js → index-DQdUr-_f.js} +4349 -4241
  36. package/dist/index.d.ts +3 -2
  37. package/dist/info-46DW6VJ7-D5JUpHK_.js +5 -0
  38. package/dist/infoDiagram-A4XQUW5V-D5IcjWQu.js +22 -0
  39. package/dist/init-DjUOC4st.js +16 -0
  40. package/dist/journeyDiagram-G5WM74LC-XHcEaxXL.js +810 -0
  41. package/dist/kanban-definition-QRCXZQQD-BFgu8zXi.js +718 -0
  42. package/dist/layout-Cycesmdu.js +1324 -0
  43. package/dist/linear-CjRkwbhR.js +423 -0
  44. package/dist/mermaid-parser.core-CL_REaxY.js +12479 -0
  45. package/dist/mermaid.core-gtllNrzr.js +14852 -0
  46. package/dist/mindmap-definition-GWI6TPTV-yPOhYeCo.js +3220 -0
  47. package/dist/ordinal-DfAQgscy.js +61 -0
  48. package/dist/packet-W2GHVCYJ-D1drjM5q.js +5 -0
  49. package/dist/pie-BEWT4RHE-B2xFs62T.js +5 -0
  50. package/dist/pieDiagram-YF2LJOPJ-Cnvx0DvF.js +162 -0
  51. package/dist/quadrantDiagram-OS5C2QUG-DBWy6UVd.js +1024 -0
  52. package/dist/{razor-Dl6rcHmj.js → razor-CeqqNtyB.js} +1 -1
  53. package/dist/requirementDiagram-MIRIMTAZ-CfHcsBsO.js +768 -0
  54. package/dist/sankeyDiagram-Y46BX6SQ-C_60tCtv.js +805 -0
  55. package/dist/sass-eCUyDs9S.js +6 -0
  56. package/dist/scala-Cly-fENF.js +6 -0
  57. package/dist/sequenceDiagram-G6AWOVSC-XvgYpHvJ.js +2274 -0
  58. package/dist/stateDiagram-MAYHULR4-Bx48BKG3.js +268 -0
  59. package/dist/stateDiagram-v2-4JROLMXI-pDuBzVSZ.js +14 -0
  60. package/dist/swift-BAWqNR8A.js +6 -0
  61. package/dist/timeline-definition-U7ZMHBDA-EGhtku4S.js +804 -0
  62. package/dist/xychartDiagram-6QU3TZC5-B_OmutYz.js +1304 -0
  63. package/package.json +13 -12
  64. package/dist/sass-iCyS6eP9.js +0 -6
  65. package/dist/scala-BQHTnvwx.js +0 -6
  66. package/dist/swift-OL4r9IGP.js +0 -6
@@ -0,0 +1,804 @@
1
+ import { _ as s, aa as xt, ab as kt, x as _t, j as q, d as bt, l as T, ac as vt, ad as wt, ae as St, af as Et } from "./mermaid.core-gtllNrzr.js";
2
+ import { d as nt } from "./arc-CpOtc53l.js";
3
+ var X = function() {
4
+ var n = /* @__PURE__ */ s(function(f, i, a, d) {
5
+ for (a = a || {}, d = f.length; d--; a[f[d]] = i) ;
6
+ return a;
7
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], h = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
8
+ trace: /* @__PURE__ */ s(function() {
9
+ }, "trace"),
10
+ yy: {},
11
+ symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
12
+ terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
13
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
14
+ performAction: /* @__PURE__ */ s(function(i, a, d, u, y, o, S) {
15
+ var k = o.length - 1;
16
+ switch (y) {
17
+ case 1:
18
+ return o[k - 1];
19
+ case 2:
20
+ this.$ = [];
21
+ break;
22
+ case 3:
23
+ o[k - 1].push(o[k]), this.$ = o[k - 1];
24
+ break;
25
+ case 4:
26
+ case 5:
27
+ this.$ = o[k];
28
+ break;
29
+ case 6:
30
+ case 7:
31
+ this.$ = [];
32
+ break;
33
+ case 8:
34
+ u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
35
+ break;
36
+ case 9:
37
+ this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
38
+ break;
39
+ case 10:
40
+ case 11:
41
+ this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
42
+ break;
43
+ case 12:
44
+ u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
45
+ break;
46
+ case 15:
47
+ u.addTask(o[k], 0, ""), this.$ = o[k];
48
+ break;
49
+ case 16:
50
+ u.addEvent(o[k].substr(2)), this.$ = o[k];
51
+ break;
52
+ }
53
+ }, "anonymous"),
54
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
55
+ defaultActions: {},
56
+ parseError: /* @__PURE__ */ s(function(i, a) {
57
+ if (a.recoverable)
58
+ this.trace(i);
59
+ else {
60
+ var d = new Error(i);
61
+ throw d.hash = a, d;
62
+ }
63
+ }, "parseError"),
64
+ parse: /* @__PURE__ */ s(function(i) {
65
+ var a = this, d = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, P = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), _ = Object.create(this.lexer), E = { yy: {} };
66
+ for (var v in this.yy)
67
+ Object.prototype.hasOwnProperty.call(this.yy, v) && (E.yy[v] = this.yy[v]);
68
+ _.setInput(i, E.yy), E.yy.lexer = _, E.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
69
+ var L = _.yylloc;
70
+ o.push(L);
71
+ var A = _.options && _.options.ranges;
72
+ typeof E.yy.parseError == "function" ? this.parseError = E.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
+ function R(I) {
74
+ d.length = d.length - 2 * I, y.length = y.length - I, o.length = o.length - I;
75
+ }
76
+ s(R, "popStack");
77
+ function F() {
78
+ var I;
79
+ return I = u.pop() || _.lex() || J, typeof I != "number" && (I instanceof Array && (u = I, I = u.pop()), I = a.symbols_[I] || I), I;
80
+ }
81
+ s(F, "lex");
82
+ for (var w, C, N, K, z = {}, j, $, et, G; ; ) {
83
+ if (C = d[d.length - 1], this.defaultActions[C] ? N = this.defaultActions[C] : ((w === null || typeof w > "u") && (w = F()), N = S[C] && S[C][w]), typeof N > "u" || !N.length || !N[0]) {
84
+ var Q = "";
85
+ G = [];
86
+ for (j in S[C])
87
+ this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
88
+ _.showPosition ? Q = "Parse error on line " + (M + 1) + `:
89
+ ` + _.showPosition() + `
90
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
+ text: _.match,
92
+ token: this.terminals_[w] || w,
93
+ line: _.yylineno,
94
+ loc: L,
95
+ expected: G
96
+ });
97
+ }
98
+ if (N[0] instanceof Array && N.length > 1)
99
+ throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + w);
100
+ switch (N[0]) {
101
+ case 1:
102
+ d.push(w), y.push(_.yytext), o.push(_.yylloc), d.push(N[1]), w = null, P = _.yyleng, k = _.yytext, M = _.yylineno, L = _.yylloc;
103
+ break;
104
+ case 2:
105
+ if ($ = this.productions_[N[1]][1], z.$ = y[y.length - $], z._$ = {
106
+ first_line: o[o.length - ($ || 1)].first_line,
107
+ last_line: o[o.length - 1].last_line,
108
+ first_column: o[o.length - ($ || 1)].first_column,
109
+ last_column: o[o.length - 1].last_column
110
+ }, A && (z._$.range = [
111
+ o[o.length - ($ || 1)].range[0],
112
+ o[o.length - 1].range[1]
113
+ ]), K = this.performAction.apply(z, [
114
+ k,
115
+ P,
116
+ M,
117
+ E.yy,
118
+ N[1],
119
+ y,
120
+ o
121
+ ].concat(O)), typeof K < "u")
122
+ return K;
123
+ $ && (d = d.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), d.push(this.productions_[N[1]][0]), y.push(z.$), o.push(z._$), et = S[d[d.length - 2]][d[d.length - 1]], d.push(et);
124
+ break;
125
+ case 3:
126
+ return !0;
127
+ }
128
+ }
129
+ return !0;
130
+ }, "parse")
131
+ }, x = /* @__PURE__ */ function() {
132
+ var f = {
133
+ EOF: 1,
134
+ parseError: /* @__PURE__ */ s(function(a, d) {
135
+ if (this.yy.parser)
136
+ this.yy.parser.parseError(a, d);
137
+ else
138
+ throw new Error(a);
139
+ }, "parseError"),
140
+ // resets the lexer, sets new input
141
+ setInput: /* @__PURE__ */ s(function(i, a) {
142
+ return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
+ first_line: 1,
144
+ first_column: 0,
145
+ last_line: 1,
146
+ last_column: 0
147
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
+ }, "setInput"),
149
+ // consumes and returns one char from the input
150
+ input: /* @__PURE__ */ s(function() {
151
+ var i = this._input[0];
152
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
153
+ var a = i.match(/(?:\r\n?|\n).*/g);
154
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
155
+ }, "input"),
156
+ // unshifts one char (or a string) into the input
157
+ unput: /* @__PURE__ */ s(function(i) {
158
+ var a = i.length, d = i.split(/(?:\r\n?|\n)/g);
159
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
+ var u = this.match.split(/(?:\r\n?|\n)/g);
161
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
162
+ var y = this.yylloc.range;
163
+ return this.yylloc = {
164
+ first_line: this.yylloc.first_line,
165
+ last_line: this.yylineno + 1,
166
+ first_column: this.yylloc.first_column,
167
+ last_column: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - a
168
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
+ }, "unput"),
170
+ // When called from action, caches matched text and appends it on next action
171
+ more: /* @__PURE__ */ s(function() {
172
+ return this._more = !0, this;
173
+ }, "more"),
174
+ // 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.
175
+ reject: /* @__PURE__ */ s(function() {
176
+ if (this.options.backtrack_lexer)
177
+ this._backtrack = !0;
178
+ else
179
+ 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).
180
+ ` + this.showPosition(), {
181
+ text: "",
182
+ token: null,
183
+ line: this.yylineno
184
+ });
185
+ return this;
186
+ }, "reject"),
187
+ // retain first n characters of the match
188
+ less: /* @__PURE__ */ s(function(i) {
189
+ this.unput(this.match.slice(i));
190
+ }, "less"),
191
+ // displays already matched input, i.e. for error messages
192
+ pastInput: /* @__PURE__ */ s(function() {
193
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
194
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
195
+ }, "pastInput"),
196
+ // displays upcoming input, i.e. for error messages
197
+ upcomingInput: /* @__PURE__ */ s(function() {
198
+ var i = this.match;
199
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
200
+ }, "upcomingInput"),
201
+ // displays the character position where the lexing error occurred, i.e. for error messages
202
+ showPosition: /* @__PURE__ */ s(function() {
203
+ var i = this.pastInput(), a = new Array(i.length + 1).join("-");
204
+ return i + this.upcomingInput() + `
205
+ ` + a + "^";
206
+ }, "showPosition"),
207
+ // test the lexed token: return FALSE when not a match, otherwise return token
208
+ test_match: /* @__PURE__ */ s(function(i, a) {
209
+ var d, u, y;
210
+ if (this.options.backtrack_lexer && (y = {
211
+ yylineno: this.yylineno,
212
+ yylloc: {
213
+ first_line: this.yylloc.first_line,
214
+ last_line: this.last_line,
215
+ first_column: this.yylloc.first_column,
216
+ last_column: this.yylloc.last_column
217
+ },
218
+ yytext: this.yytext,
219
+ match: this.match,
220
+ matches: this.matches,
221
+ matched: this.matched,
222
+ yyleng: this.yyleng,
223
+ offset: this.offset,
224
+ _more: this._more,
225
+ _input: this._input,
226
+ yy: this.yy,
227
+ conditionStack: this.conditionStack.slice(0),
228
+ done: this.done
229
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
230
+ first_line: this.yylloc.last_line,
231
+ last_line: this.yylineno + 1,
232
+ first_column: this.yylloc.last_column,
233
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
234
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], d = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
235
+ return d;
236
+ if (this._backtrack) {
237
+ for (var o in y)
238
+ this[o] = y[o];
239
+ return !1;
240
+ }
241
+ return !1;
242
+ }, "test_match"),
243
+ // return next match in input
244
+ next: /* @__PURE__ */ s(function() {
245
+ if (this.done)
246
+ return this.EOF;
247
+ this._input || (this.done = !0);
248
+ var i, a, d, u;
249
+ this._more || (this.yytext = "", this.match = "");
250
+ for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
+ if (d = this._input.match(this.rules[y[o]]), d && (!a || d[0].length > a[0].length)) {
252
+ if (a = d, u = o, this.options.backtrack_lexer) {
253
+ if (i = this.test_match(d, y[o]), i !== !1)
254
+ return i;
255
+ if (this._backtrack) {
256
+ a = !1;
257
+ continue;
258
+ } else
259
+ return !1;
260
+ } else if (!this.options.flex)
261
+ break;
262
+ }
263
+ return a ? (i = this.test_match(a, y[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
+ ` + this.showPosition(), {
265
+ text: "",
266
+ token: null,
267
+ line: this.yylineno
268
+ });
269
+ }, "next"),
270
+ // return next match that has a token
271
+ lex: /* @__PURE__ */ s(function() {
272
+ var a = this.next();
273
+ return a || this.lex();
274
+ }, "lex"),
275
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
+ begin: /* @__PURE__ */ s(function(a) {
277
+ this.conditionStack.push(a);
278
+ }, "begin"),
279
+ // pop the previously active lexer condition state off the condition stack
280
+ popState: /* @__PURE__ */ s(function() {
281
+ var a = this.conditionStack.length - 1;
282
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
+ }, "popState"),
284
+ // produce the lexer rule set which is active for the currently active lexer condition state
285
+ _currentRules: /* @__PURE__ */ s(function() {
286
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
+ }, "_currentRules"),
288
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
+ topState: /* @__PURE__ */ s(function(a) {
290
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
+ }, "topState"),
292
+ // alias for begin(condition)
293
+ pushState: /* @__PURE__ */ s(function(a) {
294
+ this.begin(a);
295
+ }, "pushState"),
296
+ // return the number of states currently on the stack
297
+ stateStackSize: /* @__PURE__ */ s(function() {
298
+ return this.conditionStack.length;
299
+ }, "stateStackSize"),
300
+ options: { "case-insensitive": !0 },
301
+ performAction: /* @__PURE__ */ s(function(a, d, u, y) {
302
+ switch (u) {
303
+ case 0:
304
+ break;
305
+ case 1:
306
+ break;
307
+ case 2:
308
+ return 10;
309
+ case 3:
310
+ break;
311
+ case 4:
312
+ break;
313
+ case 5:
314
+ return 4;
315
+ case 6:
316
+ return 11;
317
+ case 7:
318
+ return this.begin("acc_title"), 12;
319
+ case 8:
320
+ return this.popState(), "acc_title_value";
321
+ case 9:
322
+ return this.begin("acc_descr"), 14;
323
+ case 10:
324
+ return this.popState(), "acc_descr_value";
325
+ case 11:
326
+ this.begin("acc_descr_multiline");
327
+ break;
328
+ case 12:
329
+ this.popState();
330
+ break;
331
+ case 13:
332
+ return "acc_descr_multiline_value";
333
+ case 14:
334
+ return 17;
335
+ case 15:
336
+ return 21;
337
+ case 16:
338
+ return 20;
339
+ case 17:
340
+ return 6;
341
+ case 18:
342
+ return "INVALID";
343
+ }
344
+ }, "anonymous"),
345
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s[^:\n]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
346
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
347
+ };
348
+ return f;
349
+ }();
350
+ p.lexer = x;
351
+ function b() {
352
+ this.yy = {};
353
+ }
354
+ return s(b, "Parser"), b.prototype = p, p.Parser = b, new b();
355
+ }();
356
+ X.parser = X;
357
+ var Tt = X, at = {};
358
+ xt(at, {
359
+ addEvent: () => yt,
360
+ addSection: () => ht,
361
+ addTask: () => pt,
362
+ addTaskOrg: () => gt,
363
+ clear: () => ct,
364
+ default: () => It,
365
+ getCommonDb: () => ot,
366
+ getSections: () => dt,
367
+ getTasks: () => ut
368
+ });
369
+ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
+ Y.length = 0, U.length = 0, V = "", W.length = 0, _t();
371
+ }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
+ V = n, Y.push(n);
373
+ }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
+ return Y;
375
+ }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
+ let n = rt();
377
+ const t = 100;
378
+ let e = 0;
379
+ for (; !n && e < t; )
380
+ n = rt(), e++;
381
+ return U.push(...W), U;
382
+ }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
+ const l = {
384
+ id: lt++,
385
+ section: V,
386
+ type: V,
387
+ task: n,
388
+ score: t || 0,
389
+ //if event is defined, then add it the events array
390
+ events: e ? [e] : []
391
+ };
392
+ W.push(l);
393
+ }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
+ W.find((e) => e.id === lt - 1).events.push(n);
395
+ }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
+ const t = {
397
+ section: V,
398
+ type: V,
399
+ description: n,
400
+ task: n,
401
+ classes: []
402
+ };
403
+ U.push(t);
404
+ }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
405
+ const n = /* @__PURE__ */ s(function(e) {
406
+ return W[e].processed;
407
+ }, "compileTask");
408
+ let t = !0;
409
+ for (const [e, l] of W.entries())
410
+ n(e), t = t && l.processed;
411
+ return t;
412
+ }, "compileTasks"), It = {
413
+ clear: ct,
414
+ getCommonDb: ot,
415
+ addSection: ht,
416
+ getSections: dt,
417
+ getTasks: ut,
418
+ addTask: pt,
419
+ addTaskOrg: gt,
420
+ addEvent: yt
421
+ }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
422
+ const e = n.append("rect");
423
+ return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
424
+ }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
425
+ const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
426
+ r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
427
+ function h(m) {
428
+ const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
+ }
431
+ s(h, "smile");
432
+ function c(m) {
433
+ const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
+ }
436
+ s(c, "sad");
437
+ function g(m) {
438
+ m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
439
+ }
440
+ return s(g, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : g(r), l;
441
+ }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
442
+ const e = n.append("circle");
443
+ return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
444
+ }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
445
+ const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
446
+ l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
447
+ const r = l.append("tspan");
448
+ return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
449
+ }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
+ function e(r, h, c, g, m) {
451
+ return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + g - m) + " " + (r + c - m * 1.2) + "," + (h + g) + " " + r + "," + (h + g);
452
+ }
453
+ s(e, "genPoints");
454
+ const l = n.append("polygon");
455
+ l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
456
+ }, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
457
+ const l = n.append("g"), r = D();
458
+ r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
459
+ t.text,
460
+ l,
461
+ r.x,
462
+ r.y,
463
+ r.width,
464
+ r.height,
465
+ { class: "journey-section section-type-" + t.num },
466
+ e,
467
+ t.colour
468
+ );
469
+ }, "drawSection"), it = -1, At = /* @__PURE__ */ s(function(n, t, e) {
470
+ const l = t.x + e.width / 2, r = n.append("g");
471
+ it++;
472
+ const h = 300 + 5 * 30;
473
+ r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
474
+ cx: l,
475
+ cy: 300 + (5 - t.score) * 30,
476
+ score: t.score
477
+ });
478
+ const c = D();
479
+ c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(r, c), mt(e)(
480
+ t.task,
481
+ r,
482
+ c.x,
483
+ c.y,
484
+ c.width,
485
+ c.height,
486
+ { class: "task" },
487
+ e,
488
+ t.colour
489
+ );
490
+ }, "drawTask"), Ct = /* @__PURE__ */ s(function(n, t) {
491
+ Z(n, {
492
+ x: t.startx,
493
+ y: t.starty,
494
+ width: t.stopx - t.startx,
495
+ height: t.stopy - t.starty,
496
+ fill: t.fill,
497
+ class: "rect"
498
+ }).lower();
499
+ }, "drawBackgroundRect"), Ht = /* @__PURE__ */ s(function() {
500
+ return {
501
+ x: 0,
502
+ y: 0,
503
+ fill: void 0,
504
+ "text-anchor": "start",
505
+ width: 100,
506
+ height: 100,
507
+ textMargin: 0,
508
+ rx: 0,
509
+ ry: 0
510
+ };
511
+ }, "getTextObj"), D = /* @__PURE__ */ s(function() {
512
+ return {
513
+ x: 0,
514
+ y: 0,
515
+ width: 100,
516
+ anchor: "start",
517
+ height: 100,
518
+ rx: 0,
519
+ ry: 0
520
+ };
521
+ }, "getNoteRect"), mt = /* @__PURE__ */ function() {
522
+ function n(r, h, c, g, m, p, x, b) {
523
+ const f = h.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", b).style("text-anchor", "middle").text(r);
524
+ l(f, x);
525
+ }
526
+ s(n, "byText");
527
+ function t(r, h, c, g, m, p, x, b, f) {
528
+ const { taskFontSize: i, taskFontFamily: a } = b, d = r.split(/<br\s*\/?>/gi);
529
+ for (let u = 0; u < d.length; u++) {
530
+ const y = u * i - i * (d.length - 1) / 2, o = h.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
531
+ o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(d[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
532
+ }
533
+ }
534
+ s(t, "byTspan");
535
+ function e(r, h, c, g, m, p, x, b) {
536
+ const f = h.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
+ a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, f, c, g, m, p, x, b), l(a, x);
538
+ }
539
+ s(e, "byFo");
540
+ function l(r, h) {
541
+ for (const c in h)
542
+ c in h && r.attr(c, h[c]);
543
+ }
544
+ return s(l, "_setTextAttrs"), function(r) {
545
+ return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
546
+ };
547
+ }(), Rt = /* @__PURE__ */ s(function(n) {
548
+ n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
549
+ }, "initGraphics");
550
+ function tt(n, t) {
551
+ n.each(function() {
552
+ var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
+ for (let x = 0; x < l.length; x++)
554
+ r = l[l.length - 1 - x], h.push(r), p.text(h.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), p.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
555
+ });
556
+ }
557
+ s(tt, "wrap");
558
+ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
559
+ var b;
560
+ const r = e % Nt - 1, h = n.append("g");
561
+ t.section = r, h.attr(
562
+ "class",
563
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
564
+ );
565
+ const c = h.append("g"), g = h.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (b = l.fontSize) != null && b.replace ? l.fontSize.replace("px", "") : l.fontSize;
566
+ return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, r, l), t;
567
+ }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
568
+ var g;
569
+ const l = n.append("g"), h = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
570
+ return l.remove(), h.height + c * 1.1 * 0.5 + t.padding;
571
+ }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
+ n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
573
+ "d",
574
+ `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
575
+ ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
576
+ }, "defaultBkg"), H = {
577
+ drawRect: Z,
578
+ drawCircle: Mt,
579
+ drawSection: Pt,
580
+ drawText: ft,
581
+ drawLabel: $t,
582
+ drawTask: At,
583
+ drawBackgroundRect: Ct,
584
+ getTextObj: Ht,
585
+ getNoteRect: D,
586
+ initGraphics: Rt,
587
+ drawNode: Ft,
588
+ getVirtualNodeHeight: zt
589
+ }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
590
+ var O, _;
591
+ const r = bt(), h = r.leftMargin ?? 50;
592
+ T.debug("timeline", l.db);
593
+ const c = r.securityLevel;
594
+ let g;
595
+ c === "sandbox" && (g = q("#i" + t));
596
+ const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
597
+ p.append("g");
598
+ const x = l.db.getTasks(), b = l.db.getCommonDb().getDiagramTitle();
599
+ T.debug("task", x), H.initGraphics(p);
600
+ const f = l.db.getSections();
601
+ T.debug("sections", f);
602
+ let i = 0, a = 0, d = 0, u = 0, y = 50 + h, o = 50;
603
+ u = 50;
604
+ let S = 0, k = !0;
605
+ f.forEach(function(E) {
606
+ const v = {
607
+ number: S,
608
+ descr: E,
609
+ section: S,
610
+ width: 150,
611
+ padding: 20,
612
+ maxHeight: i
613
+ }, L = H.getVirtualNodeHeight(p, v, r);
614
+ T.debug("sectionHeight before draw", L), i = Math.max(i, L + 20);
615
+ });
616
+ let M = 0, P = 0;
617
+ T.debug("tasks.length", x.length);
618
+ for (const [E, v] of x.entries()) {
619
+ const L = {
620
+ number: E,
621
+ descr: v,
622
+ section: v.section,
623
+ width: 150,
624
+ padding: 20,
625
+ maxHeight: a
626
+ }, A = H.getVirtualNodeHeight(p, L, r);
627
+ T.debug("taskHeight before draw", A), a = Math.max(a, A + 20), M = Math.max(M, v.events.length);
628
+ let R = 0;
629
+ for (const F of v.events) {
630
+ const w = {
631
+ descr: F,
632
+ section: v.section,
633
+ number: v.section,
634
+ width: 150,
635
+ padding: 20,
636
+ maxHeight: 50
637
+ };
638
+ R += H.getVirtualNodeHeight(p, w, r);
639
+ }
640
+ P = Math.max(P, R);
641
+ }
642
+ T.debug("maxSectionHeight before draw", i), T.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((E) => {
643
+ const v = x.filter((F) => F.section === E), L = {
644
+ number: S,
645
+ descr: E,
646
+ section: S,
647
+ width: 200 * Math.max(v.length, 1) - 50,
648
+ padding: 20,
649
+ maxHeight: i
650
+ };
651
+ T.debug("sectionNode", L);
652
+ const A = p.append("g"), R = H.drawNode(A, L, S, r);
653
+ T.debug("sectionNode output", R), A.attr("transform", `translate(${y}, ${u})`), o += i + 50, v.length > 0 && st(
654
+ p,
655
+ v,
656
+ S,
657
+ y,
658
+ o,
659
+ a,
660
+ r,
661
+ M,
662
+ P,
663
+ i,
664
+ !1
665
+ ), y += 200 * Math.max(v.length, 1), o = u, S++;
666
+ }) : (k = !1, st(
667
+ p,
668
+ x,
669
+ S,
670
+ y,
671
+ o,
672
+ a,
673
+ r,
674
+ M,
675
+ P,
676
+ i,
677
+ !0
678
+ ));
679
+ const B = p.node().getBBox();
680
+ T.debug("bounds", B), b && p.append("text").text(b).attr("x", B.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), d = k ? i + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", d).attr("x2", B.width + 3 * h).attr("y2", d).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), vt(
681
+ void 0,
682
+ p,
683
+ ((O = r.timeline) == null ? void 0 : O.padding) ?? 50,
684
+ ((_ = r.timeline) == null ? void 0 : _.useMaxWidth) ?? !1
685
+ );
686
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, h, c, g, m, p, x) {
687
+ var b;
688
+ for (const f of t) {
689
+ const i = {
690
+ descr: f.task,
691
+ section: e,
692
+ number: e,
693
+ width: 150,
694
+ padding: 20,
695
+ maxHeight: h
696
+ };
697
+ T.debug("taskNode", i);
698
+ const a = n.append("g").attr("class", "taskWrapper"), u = H.drawNode(a, i, e, c).height;
699
+ if (T.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), h = Math.max(h, u), f.events) {
700
+ const y = n.append("g").attr("class", "lineWrapper");
701
+ let o = h;
702
+ r += 100, o = o + Bt(n, f.events, e, l, r, c), r -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", r + h).attr("x2", l + 190 / 2).attr(
703
+ "y2",
704
+ r + h + (x ? h : p) + m + 120
705
+ ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
706
+ }
707
+ l = l + 200, x && !((b = c.timeline) != null && b.disableMulticolor) && e++;
708
+ }
709
+ r = r - 10;
710
+ }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, h) {
711
+ let c = 0;
712
+ const g = r;
713
+ r = r + 100;
714
+ for (const m of t) {
715
+ const p = {
716
+ descr: m,
717
+ section: e,
718
+ number: e,
719
+ width: 150,
720
+ padding: 20,
721
+ maxHeight: 50
722
+ };
723
+ T.debug("eventNode", p);
724
+ const x = n.append("g").attr("class", "eventWrapper"), f = H.drawNode(x, p, e, h).height;
725
+ c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
726
+ }
727
+ return r = g, c;
728
+ }, "drawEvents"), Ot = {
729
+ setConf: /* @__PURE__ */ s(() => {
730
+ }, "setConf"),
731
+ draw: Wt
732
+ }, jt = /* @__PURE__ */ s((n) => {
733
+ let t = "";
734
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
735
+ n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], wt(n["lineColor" + e]) ? n["lineColor" + e] = St(n["lineColor" + e], 20) : n["lineColor" + e] = Et(n["lineColor" + e], 20);
736
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
737
+ const l = "" + (17 - 3 * e);
738
+ t += `
739
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
740
+ fill: ${n["cScale" + e]};
741
+ }
742
+ .section-${e - 1} text {
743
+ fill: ${n["cScaleLabel" + e]};
744
+ }
745
+ .node-icon-${e - 1} {
746
+ font-size: 40px;
747
+ color: ${n["cScaleLabel" + e]};
748
+ }
749
+ .section-edge-${e - 1}{
750
+ stroke: ${n["cScale" + e]};
751
+ }
752
+ .edge-depth-${e - 1}{
753
+ stroke-width: ${l};
754
+ }
755
+ .section-${e - 1} line {
756
+ stroke: ${n["cScaleInv" + e]} ;
757
+ stroke-width: 3;
758
+ }
759
+
760
+ .lineWrapper line{
761
+ stroke: ${n["cScaleLabel" + e]} ;
762
+ }
763
+
764
+ .disabled, .disabled circle, .disabled text {
765
+ fill: lightgray;
766
+ }
767
+ .disabled text {
768
+ fill: #efefef;
769
+ }
770
+ `;
771
+ }
772
+ return t;
773
+ }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
774
+ .edge {
775
+ stroke-width: 3;
776
+ }
777
+ ${jt(n)}
778
+ .section-root rect, .section-root path, .section-root circle {
779
+ fill: ${n.git0};
780
+ }
781
+ .section-root text {
782
+ fill: ${n.gitBranchLabel0};
783
+ }
784
+ .icon-container {
785
+ height:100%;
786
+ display: flex;
787
+ justify-content: center;
788
+ align-items: center;
789
+ }
790
+ .edge {
791
+ fill: none;
792
+ }
793
+ .eventWrapper {
794
+ filter: brightness(120%);
795
+ }
796
+ `, "getStyles"), qt = Gt, Jt = {
797
+ db: at,
798
+ renderer: Ot,
799
+ parser: Tt,
800
+ styles: qt
801
+ };
802
+ export {
803
+ Jt as diagram
804
+ };