@readme/markdown 9.3.0 → 9.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/10.node.js +20064 -19229
  2. package/dist/10.node.js.map +1 -1
  3. package/dist/122.node.js +23 -0
  4. package/dist/122.node.js.map +1 -0
  5. package/dist/{17.node.js → 135.node.js} +109 -110
  6. package/dist/135.node.js.map +1 -0
  7. package/dist/136.node.js +23 -0
  8. package/dist/136.node.js.map +1 -0
  9. package/dist/{52.node.js → 188.node.js} +211 -196
  10. package/dist/188.node.js.map +1 -0
  11. package/dist/214.node.js +1280 -0
  12. package/dist/214.node.js.map +1 -0
  13. package/dist/23.node.js +2563 -0
  14. package/dist/23.node.js.map +1 -0
  15. package/dist/{867.node.js → 311.node.js} +95 -95
  16. package/dist/{867.node.js.map → 311.node.js.map} +1 -1
  17. package/dist/{940.node.js → 339.node.js} +3 -75
  18. package/dist/339.node.js.map +1 -0
  19. package/dist/354.node.js +23 -0
  20. package/dist/354.node.js.map +1 -0
  21. package/dist/359.node.js +2001 -0
  22. package/dist/359.node.js.map +1 -0
  23. package/dist/364.node.js +4435 -0
  24. package/dist/364.node.js.map +1 -0
  25. package/dist/{429.node.js → 371.node.js} +196 -139
  26. package/dist/371.node.js.map +1 -0
  27. package/dist/{687.node.js → 38.node.js} +761 -761
  28. package/dist/38.node.js.map +1 -0
  29. package/dist/391.node.js +522 -0
  30. package/dist/391.node.js.map +1 -0
  31. package/dist/462.node.js +23 -0
  32. package/dist/462.node.js.map +1 -0
  33. package/dist/48.node.js +57 -0
  34. package/dist/48.node.js.map +1 -0
  35. package/dist/486.node.js +16267 -14851
  36. package/dist/486.node.js.map +1 -1
  37. package/dist/537.node.js +59 -0
  38. package/dist/537.node.js.map +1 -0
  39. package/dist/550.node.js +201 -1408
  40. package/dist/550.node.js.map +1 -1
  41. package/dist/{403.node.js → 572.node.js} +118 -118
  42. package/dist/572.node.js.map +1 -0
  43. package/dist/580.node.js +1324 -0
  44. package/dist/580.node.js.map +1 -0
  45. package/dist/{952.node.js → 649.node.js} +39 -39
  46. package/dist/{952.node.js.map → 649.node.js.map} +1 -1
  47. package/dist/740.node.js +23 -0
  48. package/dist/740.node.js.map +1 -0
  49. package/dist/741.node.js +23 -0
  50. package/dist/741.node.js.map +1 -0
  51. package/dist/779.node.js +57 -0
  52. package/dist/779.node.js.map +1 -0
  53. package/dist/805.node.js +1355 -0
  54. package/dist/805.node.js.map +1 -0
  55. package/dist/{246.node.js → 855.node.js} +671 -495
  56. package/dist/855.node.js.map +1 -0
  57. package/dist/{11.node.js → 870.node.js} +70 -63
  58. package/dist/870.node.js.map +1 -0
  59. package/dist/874.node.js +57 -0
  60. package/dist/874.node.js.map +1 -0
  61. package/dist/881.node.js +1344 -720
  62. package/dist/881.node.js.map +1 -1
  63. package/dist/{906.node.js → 890.node.js} +147 -147
  64. package/dist/{906.node.js.map → 890.node.js.map} +1 -1
  65. package/dist/898.node.js +361 -0
  66. package/dist/898.node.js.map +1 -0
  67. package/dist/{551.node.js → 912.node.js} +133 -133
  68. package/dist/{551.node.js.map → 912.node.js.map} +1 -1
  69. package/dist/{745.node.js → 915.node.js} +86 -85
  70. package/dist/915.node.js.map +1 -0
  71. package/dist/982.node.js +1132 -0
  72. package/dist/982.node.js.map +1 -0
  73. package/dist/995.node.js +189 -159
  74. package/dist/995.node.js.map +1 -1
  75. package/dist/lib/plain.d.ts +1 -1
  76. package/dist/main.js +1883 -331
  77. package/dist/main.node.js +1874 -332
  78. package/dist/main.node.js.map +1 -1
  79. package/package.json +1 -2
  80. package/dist/11.node.js.map +0 -1
  81. package/dist/120.node.js +0 -23
  82. package/dist/120.node.js.map +0 -1
  83. package/dist/134.node.js +0 -23
  84. package/dist/134.node.js.map +0 -1
  85. package/dist/150.node.js +0 -1892
  86. package/dist/150.node.js.map +0 -1
  87. package/dist/17.node.js.map +0 -1
  88. package/dist/246.node.js.map +0 -1
  89. package/dist/351.node.js +0 -2404
  90. package/dist/351.node.js.map +0 -1
  91. package/dist/366.node.js +0 -1185
  92. package/dist/366.node.js.map +0 -1
  93. package/dist/403.node.js.map +0 -1
  94. package/dist/429.node.js.map +0 -1
  95. package/dist/485.node.js +0 -518
  96. package/dist/485.node.js.map +0 -1
  97. package/dist/488.node.js +0 -59
  98. package/dist/488.node.js.map +0 -1
  99. package/dist/510.node.js +0 -250
  100. package/dist/510.node.js.map +0 -1
  101. package/dist/52.node.js.map +0 -1
  102. package/dist/617.node.js +0 -23
  103. package/dist/617.node.js.map +0 -1
  104. package/dist/687.node.js.map +0 -1
  105. package/dist/745.node.js.map +0 -1
  106. package/dist/775.node.js +0 -1904
  107. package/dist/775.node.js.map +0 -1
  108. package/dist/788.node.js +0 -1025
  109. package/dist/788.node.js.map +0 -1
  110. package/dist/81.node.js +0 -386
  111. package/dist/81.node.js.map +0 -1
  112. package/dist/849.node.js +0 -2590
  113. package/dist/849.node.js.map +0 -1
  114. package/dist/863.node.js +0 -23
  115. package/dist/863.node.js.map +0 -1
  116. package/dist/885.node.js +0 -52
  117. package/dist/885.node.js.map +0 -1
  118. package/dist/896.node.js +0 -1617
  119. package/dist/896.node.js.map +0 -1
  120. package/dist/91.node.js +0 -23
  121. package/dist/91.node.js.map +0 -1
  122. package/dist/940.node.js.map +0 -1
@@ -0,0 +1,1280 @@
1
+ "use strict";
2
+ exports.id = 214;
3
+ exports.ids = [214];
4
+ exports.modules = {
5
+
6
+ /***/ 6214:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ diagram: () => (/* binding */ diagram)
11
+ /* harmony export */ });
12
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
13
+ /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8066);
14
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5099);
15
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7470);
16
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8750);
17
+
18
+
19
+ // src/diagrams/timeline/parser/timeline.jison
20
+ var parser = function() {
21
+ var o = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(k, v, o2, l) {
22
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
23
+ return o2;
24
+ }, "o"), $V0 = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], $V1 = [1, 9], $V2 = [1, 10], $V3 = [1, 11], $V4 = [1, 12], $V5 = [1, 13], $V6 = [1, 16], $V7 = [1, 17];
25
+ var parser2 = {
26
+ trace: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function trace() {
27
+ }, "trace"),
28
+ yy: {},
29
+ 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 },
30
+ 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" },
31
+ 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]],
32
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
33
+ var $0 = $$.length - 1;
34
+ switch (yystate) {
35
+ case 1:
36
+ return $$[$0 - 1];
37
+ break;
38
+ case 2:
39
+ this.$ = [];
40
+ break;
41
+ case 3:
42
+ $$[$0 - 1].push($$[$0]);
43
+ this.$ = $$[$0 - 1];
44
+ break;
45
+ case 4:
46
+ case 5:
47
+ this.$ = $$[$0];
48
+ break;
49
+ case 6:
50
+ case 7:
51
+ this.$ = [];
52
+ break;
53
+ case 8:
54
+ yy.getCommonDb().setDiagramTitle($$[$0].substr(6));
55
+ this.$ = $$[$0].substr(6);
56
+ break;
57
+ case 9:
58
+ this.$ = $$[$0].trim();
59
+ yy.getCommonDb().setAccTitle(this.$);
60
+ break;
61
+ case 10:
62
+ case 11:
63
+ this.$ = $$[$0].trim();
64
+ yy.getCommonDb().setAccDescription(this.$);
65
+ break;
66
+ case 12:
67
+ yy.addSection($$[$0].substr(8));
68
+ this.$ = $$[$0].substr(8);
69
+ break;
70
+ case 15:
71
+ yy.addTask($$[$0], 0, "");
72
+ this.$ = $$[$0];
73
+ break;
74
+ case 16:
75
+ yy.addEvent($$[$0].substr(2));
76
+ this.$ = $$[$0];
77
+ break;
78
+ }
79
+ }, "anonymous"),
80
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 18, 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, o($V0, [2, 11]), o($V0, [2, 12]), o($V0, [2, 13]), o($V0, [2, 14]), o($V0, [2, 15]), o($V0, [2, 16]), o($V0, [2, 4]), o($V0, [2, 9]), o($V0, [2, 10])],
81
+ defaultActions: {},
82
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function parseError(str, hash) {
83
+ if (hash.recoverable) {
84
+ this.trace(str);
85
+ } else {
86
+ var error = new Error(str);
87
+ error.hash = hash;
88
+ throw error;
89
+ }
90
+ }, "parseError"),
91
+ parse: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function parse(input) {
92
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
93
+ var args = lstack.slice.call(arguments, 1);
94
+ var lexer2 = Object.create(this.lexer);
95
+ var sharedState = { yy: {} };
96
+ for (var k in this.yy) {
97
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
98
+ sharedState.yy[k] = this.yy[k];
99
+ }
100
+ }
101
+ lexer2.setInput(input, sharedState.yy);
102
+ sharedState.yy.lexer = lexer2;
103
+ sharedState.yy.parser = this;
104
+ if (typeof lexer2.yylloc == "undefined") {
105
+ lexer2.yylloc = {};
106
+ }
107
+ var yyloc = lexer2.yylloc;
108
+ lstack.push(yyloc);
109
+ var ranges = lexer2.options && lexer2.options.ranges;
110
+ if (typeof sharedState.yy.parseError === "function") {
111
+ this.parseError = sharedState.yy.parseError;
112
+ } else {
113
+ this.parseError = Object.getPrototypeOf(this).parseError;
114
+ }
115
+ function popStack(n) {
116
+ stack.length = stack.length - 2 * n;
117
+ vstack.length = vstack.length - n;
118
+ lstack.length = lstack.length - n;
119
+ }
120
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(popStack, "popStack");
121
+ function lex() {
122
+ var token;
123
+ token = tstack.pop() || lexer2.lex() || EOF;
124
+ if (typeof token !== "number") {
125
+ if (token instanceof Array) {
126
+ tstack = token;
127
+ token = tstack.pop();
128
+ }
129
+ token = self.symbols_[token] || token;
130
+ }
131
+ return token;
132
+ }
133
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(lex, "lex");
134
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
135
+ while (true) {
136
+ state = stack[stack.length - 1];
137
+ if (this.defaultActions[state]) {
138
+ action = this.defaultActions[state];
139
+ } else {
140
+ if (symbol === null || typeof symbol == "undefined") {
141
+ symbol = lex();
142
+ }
143
+ action = table[state] && table[state][symbol];
144
+ }
145
+ if (typeof action === "undefined" || !action.length || !action[0]) {
146
+ var errStr = "";
147
+ expected = [];
148
+ for (p in table[state]) {
149
+ if (this.terminals_[p] && p > TERROR) {
150
+ expected.push("'" + this.terminals_[p] + "'");
151
+ }
152
+ }
153
+ if (lexer2.showPosition) {
154
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
155
+ } else {
156
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
157
+ }
158
+ this.parseError(errStr, {
159
+ text: lexer2.match,
160
+ token: this.terminals_[symbol] || symbol,
161
+ line: lexer2.yylineno,
162
+ loc: yyloc,
163
+ expected
164
+ });
165
+ }
166
+ if (action[0] instanceof Array && action.length > 1) {
167
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
168
+ }
169
+ switch (action[0]) {
170
+ case 1:
171
+ stack.push(symbol);
172
+ vstack.push(lexer2.yytext);
173
+ lstack.push(lexer2.yylloc);
174
+ stack.push(action[1]);
175
+ symbol = null;
176
+ if (!preErrorSymbol) {
177
+ yyleng = lexer2.yyleng;
178
+ yytext = lexer2.yytext;
179
+ yylineno = lexer2.yylineno;
180
+ yyloc = lexer2.yylloc;
181
+ if (recovering > 0) {
182
+ recovering--;
183
+ }
184
+ } else {
185
+ symbol = preErrorSymbol;
186
+ preErrorSymbol = null;
187
+ }
188
+ break;
189
+ case 2:
190
+ len = this.productions_[action[1]][1];
191
+ yyval.$ = vstack[vstack.length - len];
192
+ yyval._$ = {
193
+ first_line: lstack[lstack.length - (len || 1)].first_line,
194
+ last_line: lstack[lstack.length - 1].last_line,
195
+ first_column: lstack[lstack.length - (len || 1)].first_column,
196
+ last_column: lstack[lstack.length - 1].last_column
197
+ };
198
+ if (ranges) {
199
+ yyval._$.range = [
200
+ lstack[lstack.length - (len || 1)].range[0],
201
+ lstack[lstack.length - 1].range[1]
202
+ ];
203
+ }
204
+ r = this.performAction.apply(yyval, [
205
+ yytext,
206
+ yyleng,
207
+ yylineno,
208
+ sharedState.yy,
209
+ action[1],
210
+ vstack,
211
+ lstack
212
+ ].concat(args));
213
+ if (typeof r !== "undefined") {
214
+ return r;
215
+ }
216
+ if (len) {
217
+ stack = stack.slice(0, -1 * len * 2);
218
+ vstack = vstack.slice(0, -1 * len);
219
+ lstack = lstack.slice(0, -1 * len);
220
+ }
221
+ stack.push(this.productions_[action[1]][0]);
222
+ vstack.push(yyval.$);
223
+ lstack.push(yyval._$);
224
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
225
+ stack.push(newState);
226
+ break;
227
+ case 3:
228
+ return true;
229
+ }
230
+ }
231
+ return true;
232
+ }, "parse")
233
+ };
234
+ var lexer = /* @__PURE__ */ function() {
235
+ var lexer2 = {
236
+ EOF: 1,
237
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function parseError(str, hash) {
238
+ if (this.yy.parser) {
239
+ this.yy.parser.parseError(str, hash);
240
+ } else {
241
+ throw new Error(str);
242
+ }
243
+ }, "parseError"),
244
+ // resets the lexer, sets new input
245
+ setInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(input, yy) {
246
+ this.yy = yy || this.yy || {};
247
+ this._input = input;
248
+ this._more = this._backtrack = this.done = false;
249
+ this.yylineno = this.yyleng = 0;
250
+ this.yytext = this.matched = this.match = "";
251
+ this.conditionStack = ["INITIAL"];
252
+ this.yylloc = {
253
+ first_line: 1,
254
+ first_column: 0,
255
+ last_line: 1,
256
+ last_column: 0
257
+ };
258
+ if (this.options.ranges) {
259
+ this.yylloc.range = [0, 0];
260
+ }
261
+ this.offset = 0;
262
+ return this;
263
+ }, "setInput"),
264
+ // consumes and returns one char from the input
265
+ input: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
266
+ var ch = this._input[0];
267
+ this.yytext += ch;
268
+ this.yyleng++;
269
+ this.offset++;
270
+ this.match += ch;
271
+ this.matched += ch;
272
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
273
+ if (lines) {
274
+ this.yylineno++;
275
+ this.yylloc.last_line++;
276
+ } else {
277
+ this.yylloc.last_column++;
278
+ }
279
+ if (this.options.ranges) {
280
+ this.yylloc.range[1]++;
281
+ }
282
+ this._input = this._input.slice(1);
283
+ return ch;
284
+ }, "input"),
285
+ // unshifts one char (or a string) into the input
286
+ unput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(ch) {
287
+ var len = ch.length;
288
+ var lines = ch.split(/(?:\r\n?|\n)/g);
289
+ this._input = ch + this._input;
290
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
291
+ this.offset -= len;
292
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
293
+ this.match = this.match.substr(0, this.match.length - 1);
294
+ this.matched = this.matched.substr(0, this.matched.length - 1);
295
+ if (lines.length - 1) {
296
+ this.yylineno -= lines.length - 1;
297
+ }
298
+ var r = this.yylloc.range;
299
+ this.yylloc = {
300
+ first_line: this.yylloc.first_line,
301
+ last_line: this.yylineno + 1,
302
+ first_column: this.yylloc.first_column,
303
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
304
+ };
305
+ if (this.options.ranges) {
306
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
307
+ }
308
+ this.yyleng = this.yytext.length;
309
+ return this;
310
+ }, "unput"),
311
+ // When called from action, caches matched text and appends it on next action
312
+ more: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
313
+ this._more = true;
314
+ return this;
315
+ }, "more"),
316
+ // 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.
317
+ reject: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
318
+ if (this.options.backtrack_lexer) {
319
+ this._backtrack = true;
320
+ } else {
321
+ 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).\n" + this.showPosition(), {
322
+ text: "",
323
+ token: null,
324
+ line: this.yylineno
325
+ });
326
+ }
327
+ return this;
328
+ }, "reject"),
329
+ // retain first n characters of the match
330
+ less: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(n) {
331
+ this.unput(this.match.slice(n));
332
+ }, "less"),
333
+ // displays already matched input, i.e. for error messages
334
+ pastInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
335
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
336
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
337
+ }, "pastInput"),
338
+ // displays upcoming input, i.e. for error messages
339
+ upcomingInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
340
+ var next = this.match;
341
+ if (next.length < 20) {
342
+ next += this._input.substr(0, 20 - next.length);
343
+ }
344
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
345
+ }, "upcomingInput"),
346
+ // displays the character position where the lexing error occurred, i.e. for error messages
347
+ showPosition: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
348
+ var pre = this.pastInput();
349
+ var c = new Array(pre.length + 1).join("-");
350
+ return pre + this.upcomingInput() + "\n" + c + "^";
351
+ }, "showPosition"),
352
+ // test the lexed token: return FALSE when not a match, otherwise return token
353
+ test_match: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(match, indexed_rule) {
354
+ var token, lines, backup;
355
+ if (this.options.backtrack_lexer) {
356
+ backup = {
357
+ yylineno: this.yylineno,
358
+ yylloc: {
359
+ first_line: this.yylloc.first_line,
360
+ last_line: this.last_line,
361
+ first_column: this.yylloc.first_column,
362
+ last_column: this.yylloc.last_column
363
+ },
364
+ yytext: this.yytext,
365
+ match: this.match,
366
+ matches: this.matches,
367
+ matched: this.matched,
368
+ yyleng: this.yyleng,
369
+ offset: this.offset,
370
+ _more: this._more,
371
+ _input: this._input,
372
+ yy: this.yy,
373
+ conditionStack: this.conditionStack.slice(0),
374
+ done: this.done
375
+ };
376
+ if (this.options.ranges) {
377
+ backup.yylloc.range = this.yylloc.range.slice(0);
378
+ }
379
+ }
380
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
381
+ if (lines) {
382
+ this.yylineno += lines.length;
383
+ }
384
+ this.yylloc = {
385
+ first_line: this.yylloc.last_line,
386
+ last_line: this.yylineno + 1,
387
+ first_column: this.yylloc.last_column,
388
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
389
+ };
390
+ this.yytext += match[0];
391
+ this.match += match[0];
392
+ this.matches = match;
393
+ this.yyleng = this.yytext.length;
394
+ if (this.options.ranges) {
395
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
396
+ }
397
+ this._more = false;
398
+ this._backtrack = false;
399
+ this._input = this._input.slice(match[0].length);
400
+ this.matched += match[0];
401
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
402
+ if (this.done && this._input) {
403
+ this.done = false;
404
+ }
405
+ if (token) {
406
+ return token;
407
+ } else if (this._backtrack) {
408
+ for (var k in backup) {
409
+ this[k] = backup[k];
410
+ }
411
+ return false;
412
+ }
413
+ return false;
414
+ }, "test_match"),
415
+ // return next match in input
416
+ next: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
417
+ if (this.done) {
418
+ return this.EOF;
419
+ }
420
+ if (!this._input) {
421
+ this.done = true;
422
+ }
423
+ var token, match, tempMatch, index;
424
+ if (!this._more) {
425
+ this.yytext = "";
426
+ this.match = "";
427
+ }
428
+ var rules = this._currentRules();
429
+ for (var i = 0; i < rules.length; i++) {
430
+ tempMatch = this._input.match(this.rules[rules[i]]);
431
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
432
+ match = tempMatch;
433
+ index = i;
434
+ if (this.options.backtrack_lexer) {
435
+ token = this.test_match(tempMatch, rules[i]);
436
+ if (token !== false) {
437
+ return token;
438
+ } else if (this._backtrack) {
439
+ match = false;
440
+ continue;
441
+ } else {
442
+ return false;
443
+ }
444
+ } else if (!this.options.flex) {
445
+ break;
446
+ }
447
+ }
448
+ }
449
+ if (match) {
450
+ token = this.test_match(match, rules[index]);
451
+ if (token !== false) {
452
+ return token;
453
+ }
454
+ return false;
455
+ }
456
+ if (this._input === "") {
457
+ return this.EOF;
458
+ } else {
459
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
460
+ text: "",
461
+ token: null,
462
+ line: this.yylineno
463
+ });
464
+ }
465
+ }, "next"),
466
+ // return next match that has a token
467
+ lex: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function lex() {
468
+ var r = this.next();
469
+ if (r) {
470
+ return r;
471
+ } else {
472
+ return this.lex();
473
+ }
474
+ }, "lex"),
475
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
476
+ begin: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function begin(condition) {
477
+ this.conditionStack.push(condition);
478
+ }, "begin"),
479
+ // pop the previously active lexer condition state off the condition stack
480
+ popState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function popState() {
481
+ var n = this.conditionStack.length - 1;
482
+ if (n > 0) {
483
+ return this.conditionStack.pop();
484
+ } else {
485
+ return this.conditionStack[0];
486
+ }
487
+ }, "popState"),
488
+ // produce the lexer rule set which is active for the currently active lexer condition state
489
+ _currentRules: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function _currentRules() {
490
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
491
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
492
+ } else {
493
+ return this.conditions["INITIAL"].rules;
494
+ }
495
+ }, "_currentRules"),
496
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
497
+ topState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function topState(n) {
498
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
499
+ if (n >= 0) {
500
+ return this.conditionStack[n];
501
+ } else {
502
+ return "INITIAL";
503
+ }
504
+ }, "topState"),
505
+ // alias for begin(condition)
506
+ pushState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function pushState(condition) {
507
+ this.begin(condition);
508
+ }, "pushState"),
509
+ // return the number of states currently on the stack
510
+ stateStackSize: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function stateStackSize() {
511
+ return this.conditionStack.length;
512
+ }, "stateStackSize"),
513
+ options: { "case-insensitive": true },
514
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
515
+ var YYSTATE = YY_START;
516
+ switch ($avoiding_name_collisions) {
517
+ case 0:
518
+ break;
519
+ case 1:
520
+ break;
521
+ case 2:
522
+ return 10;
523
+ break;
524
+ case 3:
525
+ break;
526
+ case 4:
527
+ break;
528
+ case 5:
529
+ return 4;
530
+ break;
531
+ case 6:
532
+ return 11;
533
+ break;
534
+ case 7:
535
+ this.begin("acc_title");
536
+ return 12;
537
+ break;
538
+ case 8:
539
+ this.popState();
540
+ return "acc_title_value";
541
+ break;
542
+ case 9:
543
+ this.begin("acc_descr");
544
+ return 14;
545
+ break;
546
+ case 10:
547
+ this.popState();
548
+ return "acc_descr_value";
549
+ break;
550
+ case 11:
551
+ this.begin("acc_descr_multiline");
552
+ break;
553
+ case 12:
554
+ this.popState();
555
+ break;
556
+ case 13:
557
+ return "acc_descr_multiline_value";
558
+ break;
559
+ case 14:
560
+ return 17;
561
+ break;
562
+ case 15:
563
+ return 21;
564
+ break;
565
+ case 16:
566
+ return 20;
567
+ break;
568
+ case 17:
569
+ return 6;
570
+ break;
571
+ case 18:
572
+ return "INVALID";
573
+ break;
574
+ }
575
+ }, "anonymous"),
576
+ 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],
577
+ conditions: { "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], "inclusive": true } }
578
+ };
579
+ return lexer2;
580
+ }();
581
+ parser2.lexer = lexer;
582
+ function Parser() {
583
+ this.yy = {};
584
+ }
585
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(Parser, "Parser");
586
+ Parser.prototype = parser2;
587
+ parser2.Parser = Parser;
588
+ return new Parser();
589
+ }();
590
+ parser.parser = parser;
591
+ var timeline_default = parser;
592
+
593
+ // src/diagrams/timeline/timelineDb.js
594
+ var timelineDb_exports = {};
595
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__export */ .VA)(timelineDb_exports, {
596
+ addEvent: () => addEvent,
597
+ addSection: () => addSection,
598
+ addTask: () => addTask,
599
+ addTaskOrg: () => addTaskOrg,
600
+ clear: () => clear2,
601
+ default: () => timelineDb_default,
602
+ getCommonDb: () => getCommonDb,
603
+ getSections: () => getSections,
604
+ getTasks: () => getTasks
605
+ });
606
+ var currentSection = "";
607
+ var currentTaskId = 0;
608
+ var sections = [];
609
+ var tasks = [];
610
+ var rawTasks = [];
611
+ var getCommonDb = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .commonDb_exports */ .Wt, "getCommonDb");
612
+ var clear2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
613
+ sections.length = 0;
614
+ tasks.length = 0;
615
+ currentSection = "";
616
+ rawTasks.length = 0;
617
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .clear */ .IU)();
618
+ }, "clear");
619
+ var addSection = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(txt) {
620
+ currentSection = txt;
621
+ sections.push(txt);
622
+ }, "addSection");
623
+ var getSections = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
624
+ return sections;
625
+ }, "getSections");
626
+ var getTasks = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
627
+ let allItemsProcessed = compileTasks();
628
+ const maxDepth = 100;
629
+ let iterationCount = 0;
630
+ while (!allItemsProcessed && iterationCount < maxDepth) {
631
+ allItemsProcessed = compileTasks();
632
+ iterationCount++;
633
+ }
634
+ tasks.push(...rawTasks);
635
+ return tasks;
636
+ }, "getTasks");
637
+ var addTask = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(period, length, event) {
638
+ const rawTask = {
639
+ id: currentTaskId++,
640
+ section: currentSection,
641
+ type: currentSection,
642
+ task: period,
643
+ score: length ? length : 0,
644
+ //if event is defined, then add it the events array
645
+ events: event ? [event] : []
646
+ };
647
+ rawTasks.push(rawTask);
648
+ }, "addTask");
649
+ var addEvent = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(event) {
650
+ const currentTask = rawTasks.find((task) => task.id === currentTaskId - 1);
651
+ currentTask.events.push(event);
652
+ }, "addEvent");
653
+ var addTaskOrg = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(descr) {
654
+ const newTask = {
655
+ section: currentSection,
656
+ type: currentSection,
657
+ description: descr,
658
+ task: descr,
659
+ classes: []
660
+ };
661
+ tasks.push(newTask);
662
+ }, "addTaskOrg");
663
+ var compileTasks = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
664
+ const compileTask = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(pos) {
665
+ return rawTasks[pos].processed;
666
+ }, "compileTask");
667
+ let allProcessed = true;
668
+ for (const [i, rawTask] of rawTasks.entries()) {
669
+ compileTask(i);
670
+ allProcessed = allProcessed && rawTask.processed;
671
+ }
672
+ return allProcessed;
673
+ }, "compileTasks");
674
+ var timelineDb_default = {
675
+ clear: clear2,
676
+ getCommonDb,
677
+ addSection,
678
+ getSections,
679
+ getTasks,
680
+ addTask,
681
+ addTaskOrg,
682
+ addEvent
683
+ };
684
+
685
+ // src/diagrams/timeline/timelineRenderer.ts
686
+
687
+
688
+ // src/diagrams/timeline/svgDraw.js
689
+
690
+ var MAX_SECTIONS = 12;
691
+ var drawRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, rectData) {
692
+ const rectElem = elem.append("rect");
693
+ rectElem.attr("x", rectData.x);
694
+ rectElem.attr("y", rectData.y);
695
+ rectElem.attr("fill", rectData.fill);
696
+ rectElem.attr("stroke", rectData.stroke);
697
+ rectElem.attr("width", rectData.width);
698
+ rectElem.attr("height", rectData.height);
699
+ rectElem.attr("rx", rectData.rx);
700
+ rectElem.attr("ry", rectData.ry);
701
+ if (rectData.class !== void 0) {
702
+ rectElem.attr("class", rectData.class);
703
+ }
704
+ return rectElem;
705
+ }, "drawRect");
706
+ var drawFace = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(element, faceData) {
707
+ const radius = 15;
708
+ const circleElement = element.append("circle").attr("cx", faceData.cx).attr("cy", faceData.cy).attr("class", "face").attr("r", radius).attr("stroke-width", 2).attr("overflow", "visible");
709
+ const face = element.append("g");
710
+ face.append("circle").attr("cx", faceData.cx - radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
711
+ face.append("circle").attr("cx", faceData.cx + radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
712
+ function smile(face2) {
713
+ const arc = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .arc */ .JLW)().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
714
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 2) + ")");
715
+ }
716
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(smile, "smile");
717
+ function sad(face2) {
718
+ const arc = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .arc */ .JLW)().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
719
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 7) + ")");
720
+ }
721
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(sad, "sad");
722
+ function ambivalent(face2) {
723
+ face2.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", faceData.cx - 5).attr("y1", faceData.cy + 7).attr("x2", faceData.cx + 5).attr("y2", faceData.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
724
+ }
725
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(ambivalent, "ambivalent");
726
+ if (faceData.score > 3) {
727
+ smile(face);
728
+ } else if (faceData.score < 3) {
729
+ sad(face);
730
+ } else {
731
+ ambivalent(face);
732
+ }
733
+ return circleElement;
734
+ }, "drawFace");
735
+ var drawCircle = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(element, circleData) {
736
+ const circleElement = element.append("circle");
737
+ circleElement.attr("cx", circleData.cx);
738
+ circleElement.attr("cy", circleData.cy);
739
+ circleElement.attr("class", "actor-" + circleData.pos);
740
+ circleElement.attr("fill", circleData.fill);
741
+ circleElement.attr("stroke", circleData.stroke);
742
+ circleElement.attr("r", circleData.r);
743
+ if (circleElement.class !== void 0) {
744
+ circleElement.attr("class", circleElement.class);
745
+ }
746
+ if (circleData.title !== void 0) {
747
+ circleElement.append("title").text(circleData.title);
748
+ }
749
+ return circleElement;
750
+ }, "drawCircle");
751
+ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, textData) {
752
+ const nText = textData.text.replace(/<br\s*\/?>/gi, " ");
753
+ const textElem = elem.append("text");
754
+ textElem.attr("x", textData.x);
755
+ textElem.attr("y", textData.y);
756
+ textElem.attr("class", "legend");
757
+ textElem.style("text-anchor", textData.anchor);
758
+ if (textData.class !== void 0) {
759
+ textElem.attr("class", textData.class);
760
+ }
761
+ const span = textElem.append("tspan");
762
+ span.attr("x", textData.x + textData.textMargin * 2);
763
+ span.text(nText);
764
+ return textElem;
765
+ }, "drawText");
766
+ var drawLabel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, txtObject) {
767
+ function genPoints(x, y, width, height, cut) {
768
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
769
+ }
770
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(genPoints, "genPoints");
771
+ const polygon = elem.append("polygon");
772
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, 50, 20, 7));
773
+ polygon.attr("class", "labelBox");
774
+ txtObject.y = txtObject.y + txtObject.labelMargin;
775
+ txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
776
+ drawText(elem, txtObject);
777
+ }, "drawLabel");
778
+ var drawSection = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, section, conf) {
779
+ const g = elem.append("g");
780
+ const rect = getNoteRect();
781
+ rect.x = section.x;
782
+ rect.y = section.y;
783
+ rect.fill = section.fill;
784
+ rect.width = conf.width;
785
+ rect.height = conf.height;
786
+ rect.class = "journey-section section-type-" + section.num;
787
+ rect.rx = 3;
788
+ rect.ry = 3;
789
+ drawRect(g, rect);
790
+ _drawTextCandidateFunc(conf)(
791
+ section.text,
792
+ g,
793
+ rect.x,
794
+ rect.y,
795
+ rect.width,
796
+ rect.height,
797
+ { class: "journey-section section-type-" + section.num },
798
+ conf,
799
+ section.colour
800
+ );
801
+ }, "drawSection");
802
+ var taskCount = -1;
803
+ var drawTask = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, task, conf) {
804
+ const center = task.x + conf.width / 2;
805
+ const g = elem.append("g");
806
+ taskCount++;
807
+ const maxHeight = 300 + 5 * 30;
808
+ g.append("line").attr("id", "task" + taskCount).attr("x1", center).attr("y1", task.y).attr("x2", center).attr("y2", maxHeight).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666");
809
+ drawFace(g, {
810
+ cx: center,
811
+ cy: 300 + (5 - task.score) * 30,
812
+ score: task.score
813
+ });
814
+ const rect = getNoteRect();
815
+ rect.x = task.x;
816
+ rect.y = task.y;
817
+ rect.fill = task.fill;
818
+ rect.width = conf.width;
819
+ rect.height = conf.height;
820
+ rect.class = "task task-type-" + task.num;
821
+ rect.rx = 3;
822
+ rect.ry = 3;
823
+ drawRect(g, rect);
824
+ _drawTextCandidateFunc(conf)(
825
+ task.task,
826
+ g,
827
+ rect.x,
828
+ rect.y,
829
+ rect.width,
830
+ rect.height,
831
+ { class: "task" },
832
+ conf,
833
+ task.colour
834
+ );
835
+ }, "drawTask");
836
+ var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, bounds) {
837
+ const rectElem = drawRect(elem, {
838
+ x: bounds.startx,
839
+ y: bounds.starty,
840
+ width: bounds.stopx - bounds.startx,
841
+ height: bounds.stopy - bounds.starty,
842
+ fill: bounds.fill,
843
+ class: "rect"
844
+ });
845
+ rectElem.lower();
846
+ }, "drawBackgroundRect");
847
+ var getTextObj = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
848
+ return {
849
+ x: 0,
850
+ y: 0,
851
+ fill: void 0,
852
+ "text-anchor": "start",
853
+ width: 100,
854
+ height: 100,
855
+ textMargin: 0,
856
+ rx: 0,
857
+ ry: 0
858
+ };
859
+ }, "getTextObj");
860
+ var getNoteRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function() {
861
+ return {
862
+ x: 0,
863
+ y: 0,
864
+ width: 100,
865
+ anchor: "start",
866
+ height: 100,
867
+ rx: 0,
868
+ ry: 0
869
+ };
870
+ }, "getNoteRect");
871
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
872
+ function byText(content, g, x, y, width, height, textAttrs, colour) {
873
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("font-color", colour).style("text-anchor", "middle").text(content);
874
+ _setTextAttrs(text, textAttrs);
875
+ }
876
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(byText, "byText");
877
+ function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {
878
+ const { taskFontSize, taskFontFamily } = conf;
879
+ const lines = content.split(/<br\s*\/?>/gi);
880
+ for (let i = 0; i < lines.length; i++) {
881
+ const dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
882
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).attr("fill", colour).style("text-anchor", "middle").style("font-size", taskFontSize).style("font-family", taskFontFamily);
883
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
884
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
885
+ _setTextAttrs(text, textAttrs);
886
+ }
887
+ }
888
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(byTspan, "byTspan");
889
+ function byFo(content, g, x, y, width, height, textAttrs, conf) {
890
+ const body = g.append("switch");
891
+ const f = body.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).attr("position", "fixed");
892
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
893
+ text.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
894
+ byTspan(content, body, x, y, width, height, textAttrs, conf);
895
+ _setTextAttrs(text, textAttrs);
896
+ }
897
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(byFo, "byFo");
898
+ function _setTextAttrs(toText, fromTextAttrsDict) {
899
+ for (const key in fromTextAttrsDict) {
900
+ if (key in fromTextAttrsDict) {
901
+ toText.attr(key, fromTextAttrsDict[key]);
902
+ }
903
+ }
904
+ }
905
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
906
+ return function(conf) {
907
+ return conf.textPlacement === "fo" ? byFo : conf.textPlacement === "old" ? byText : byTspan;
908
+ };
909
+ }();
910
+ var initGraphics = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(graphics) {
911
+ graphics.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");
912
+ }, "initGraphics");
913
+ function wrap(text, width) {
914
+ text.each(function() {
915
+ var text2 = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)(this), words = text2.text().split(/(\s+|<br>)/).reverse(), word, line = [], lineHeight = 1.1, y = text2.attr("y"), dy = parseFloat(text2.attr("dy")), tspan = text2.text(null).append("tspan").attr("x", 0).attr("y", y).attr("dy", dy + "em");
916
+ for (let j = 0; j < words.length; j++) {
917
+ word = words[words.length - 1 - j];
918
+ line.push(word);
919
+ tspan.text(line.join(" ").trim());
920
+ if (tspan.node().getComputedTextLength() > width || word === "<br>") {
921
+ line.pop();
922
+ tspan.text(line.join(" ").trim());
923
+ if (word === "<br>") {
924
+ line = [""];
925
+ } else {
926
+ line = [word];
927
+ }
928
+ tspan = text2.append("tspan").attr("x", 0).attr("y", y).attr("dy", lineHeight + "em").text(word);
929
+ }
930
+ }
931
+ });
932
+ }
933
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(wrap, "wrap");
934
+ var drawNode = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, node, fullSection, conf) {
935
+ const section = fullSection % MAX_SECTIONS - 1;
936
+ const nodeElem = elem.append("g");
937
+ node.section = section;
938
+ nodeElem.attr(
939
+ "class",
940
+ (node.class ? node.class + " " : "") + "timeline-node " + ("section-" + section)
941
+ );
942
+ const bkgElem = nodeElem.append("g");
943
+ const textElem = nodeElem.append("g");
944
+ const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
945
+ const bbox = txt.node().getBBox();
946
+ const fontSize = conf.fontSize?.replace ? conf.fontSize.replace("px", "") : conf.fontSize;
947
+ node.height = bbox.height + fontSize * 1.1 * 0.5 + node.padding;
948
+ node.height = Math.max(node.height, node.maxHeight);
949
+ node.width = node.width + 2 * node.padding;
950
+ textElem.attr("transform", "translate(" + node.width / 2 + ", " + node.padding / 2 + ")");
951
+ defaultBkg(bkgElem, node, section, conf);
952
+ return node;
953
+ }, "drawNode");
954
+ var getVirtualNodeHeight = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, node, conf) {
955
+ const textElem = elem.append("g");
956
+ const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
957
+ const bbox = txt.node().getBBox();
958
+ const fontSize = conf.fontSize?.replace ? conf.fontSize.replace("px", "") : conf.fontSize;
959
+ textElem.remove();
960
+ return bbox.height + fontSize * 1.1 * 0.5 + node.padding;
961
+ }, "getVirtualNodeHeight");
962
+ var defaultBkg = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(elem, node, section) {
963
+ const rd = 5;
964
+ elem.append("path").attr("id", "node-" + node.id).attr("class", "node-bkg node-" + node.type).attr(
965
+ "d",
966
+ `M0 ${node.height - rd} v${-node.height + 2 * rd} q0,-5 5,-5 h${node.width - 2 * rd} q5,0 5,5 v${node.height - rd} H0 Z`
967
+ );
968
+ elem.append("line").attr("class", "node-line-" + section).attr("x1", 0).attr("y1", node.height).attr("x2", node.width).attr("y2", node.height);
969
+ }, "defaultBkg");
970
+ var svgDraw_default = {
971
+ drawRect,
972
+ drawCircle,
973
+ drawSection,
974
+ drawText,
975
+ drawLabel,
976
+ drawTask,
977
+ drawBackgroundRect,
978
+ getTextObj,
979
+ getNoteRect,
980
+ initGraphics,
981
+ drawNode,
982
+ getVirtualNodeHeight
983
+ };
984
+
985
+ // src/diagrams/timeline/timelineRenderer.ts
986
+ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(text, id, version, diagObj) {
987
+ const conf = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getConfig2 */ .D7)();
988
+ const LEFT_MARGIN = conf.leftMargin ?? 50;
989
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("timeline", diagObj.db);
990
+ const securityLevel = conf.securityLevel;
991
+ let sandboxElement;
992
+ if (securityLevel === "sandbox") {
993
+ sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("#i" + id);
994
+ }
995
+ const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("body");
996
+ const svg = root.select("#" + id);
997
+ svg.append("g");
998
+ const tasks2 = diagObj.db.getTasks();
999
+ const title = diagObj.db.getCommonDb().getDiagramTitle();
1000
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("task", tasks2);
1001
+ svgDraw_default.initGraphics(svg);
1002
+ const sections2 = diagObj.db.getSections();
1003
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("sections", sections2);
1004
+ let maxSectionHeight = 0;
1005
+ let maxTaskHeight = 0;
1006
+ let depthY = 0;
1007
+ let sectionBeginY = 0;
1008
+ let masterX = 50 + LEFT_MARGIN;
1009
+ let masterY = 50;
1010
+ sectionBeginY = 50;
1011
+ let sectionNumber = 0;
1012
+ let hasSections = true;
1013
+ sections2.forEach(function(section) {
1014
+ const sectionNode = {
1015
+ number: sectionNumber,
1016
+ descr: section,
1017
+ section: sectionNumber,
1018
+ width: 150,
1019
+ padding: 20,
1020
+ maxHeight: maxSectionHeight
1021
+ };
1022
+ const sectionHeight = svgDraw_default.getVirtualNodeHeight(svg, sectionNode, conf);
1023
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("sectionHeight before draw", sectionHeight);
1024
+ maxSectionHeight = Math.max(maxSectionHeight, sectionHeight + 20);
1025
+ });
1026
+ let maxEventCount = 0;
1027
+ let maxEventLineLength = 0;
1028
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("tasks.length", tasks2.length);
1029
+ for (const [i, task] of tasks2.entries()) {
1030
+ const taskNode = {
1031
+ number: i,
1032
+ descr: task,
1033
+ section: task.section,
1034
+ width: 150,
1035
+ padding: 20,
1036
+ maxHeight: maxTaskHeight
1037
+ };
1038
+ const taskHeight = svgDraw_default.getVirtualNodeHeight(svg, taskNode, conf);
1039
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("taskHeight before draw", taskHeight);
1040
+ maxTaskHeight = Math.max(maxTaskHeight, taskHeight + 20);
1041
+ maxEventCount = Math.max(maxEventCount, task.events.length);
1042
+ let maxEventLineLengthTemp = 0;
1043
+ for (const event of task.events) {
1044
+ const eventNode = {
1045
+ descr: event,
1046
+ section: task.section,
1047
+ number: task.section,
1048
+ width: 150,
1049
+ padding: 20,
1050
+ maxHeight: 50
1051
+ };
1052
+ maxEventLineLengthTemp += svgDraw_default.getVirtualNodeHeight(svg, eventNode, conf);
1053
+ }
1054
+ maxEventLineLength = Math.max(maxEventLineLength, maxEventLineLengthTemp);
1055
+ }
1056
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("maxSectionHeight before draw", maxSectionHeight);
1057
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("maxTaskHeight before draw", maxTaskHeight);
1058
+ if (sections2 && sections2.length > 0) {
1059
+ sections2.forEach((section) => {
1060
+ const tasksForSection = tasks2.filter((task) => task.section === section);
1061
+ const sectionNode = {
1062
+ number: sectionNumber,
1063
+ descr: section,
1064
+ section: sectionNumber,
1065
+ width: 200 * Math.max(tasksForSection.length, 1) - 50,
1066
+ padding: 20,
1067
+ maxHeight: maxSectionHeight
1068
+ };
1069
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("sectionNode", sectionNode);
1070
+ const sectionNodeWrapper = svg.append("g");
1071
+ const node = svgDraw_default.drawNode(sectionNodeWrapper, sectionNode, sectionNumber, conf);
1072
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("sectionNode output", node);
1073
+ sectionNodeWrapper.attr("transform", `translate(${masterX}, ${sectionBeginY})`);
1074
+ masterY += maxSectionHeight + 50;
1075
+ if (tasksForSection.length > 0) {
1076
+ drawTasks(
1077
+ svg,
1078
+ tasksForSection,
1079
+ sectionNumber,
1080
+ masterX,
1081
+ masterY,
1082
+ maxTaskHeight,
1083
+ conf,
1084
+ maxEventCount,
1085
+ maxEventLineLength,
1086
+ maxSectionHeight,
1087
+ false
1088
+ );
1089
+ }
1090
+ masterX += 200 * Math.max(tasksForSection.length, 1);
1091
+ masterY = sectionBeginY;
1092
+ sectionNumber++;
1093
+ });
1094
+ } else {
1095
+ hasSections = false;
1096
+ drawTasks(
1097
+ svg,
1098
+ tasks2,
1099
+ sectionNumber,
1100
+ masterX,
1101
+ masterY,
1102
+ maxTaskHeight,
1103
+ conf,
1104
+ maxEventCount,
1105
+ maxEventLineLength,
1106
+ maxSectionHeight,
1107
+ true
1108
+ );
1109
+ }
1110
+ const box = svg.node().getBBox();
1111
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("bounds", box);
1112
+ if (title) {
1113
+ svg.append("text").text(title).attr("x", box.width / 2 - LEFT_MARGIN).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20);
1114
+ }
1115
+ depthY = hasSections ? maxSectionHeight + maxTaskHeight + 150 : maxTaskHeight + 100;
1116
+ const lineWrapper = svg.append("g").attr("class", "lineWrapper");
1117
+ lineWrapper.append("line").attr("x1", LEFT_MARGIN).attr("y1", depthY).attr("x2", box.width + 3 * LEFT_MARGIN).attr("y2", depthY).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
1118
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .setupGraphViewbox */ .ot)(
1119
+ void 0,
1120
+ svg,
1121
+ conf.timeline?.padding ?? 50,
1122
+ conf.timeline?.useMaxWidth ?? false
1123
+ );
1124
+ }, "draw");
1125
+ var drawTasks = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(diagram2, tasks2, sectionColor, masterX, masterY, maxTaskHeight, conf, maxEventCount, maxEventLineLength, maxSectionHeight, isWithoutSections) {
1126
+ for (const task of tasks2) {
1127
+ const taskNode = {
1128
+ descr: task.task,
1129
+ section: sectionColor,
1130
+ number: sectionColor,
1131
+ width: 150,
1132
+ padding: 20,
1133
+ maxHeight: maxTaskHeight
1134
+ };
1135
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("taskNode", taskNode);
1136
+ const taskWrapper = diagram2.append("g").attr("class", "taskWrapper");
1137
+ const node = svgDraw_default.drawNode(taskWrapper, taskNode, sectionColor, conf);
1138
+ const taskHeight = node.height;
1139
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("taskHeight after draw", taskHeight);
1140
+ taskWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
1141
+ maxTaskHeight = Math.max(maxTaskHeight, taskHeight);
1142
+ if (task.events) {
1143
+ const lineWrapper = diagram2.append("g").attr("class", "lineWrapper");
1144
+ let lineLength = maxTaskHeight;
1145
+ masterY += 100;
1146
+ lineLength = lineLength + drawEvents(diagram2, task.events, sectionColor, masterX, masterY, conf);
1147
+ masterY -= 100;
1148
+ lineWrapper.append("line").attr("x1", masterX + 190 / 2).attr("y1", masterY + maxTaskHeight).attr("x2", masterX + 190 / 2).attr(
1149
+ "y2",
1150
+ masterY + maxTaskHeight + (isWithoutSections ? maxTaskHeight : maxSectionHeight) + maxEventLineLength + 120
1151
+ ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
1152
+ }
1153
+ masterX = masterX + 200;
1154
+ if (isWithoutSections && !conf.timeline?.disableMulticolor) {
1155
+ sectionColor++;
1156
+ }
1157
+ }
1158
+ masterY = masterY - 10;
1159
+ }, "drawTasks");
1160
+ var drawEvents = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(function(diagram2, events, sectionColor, masterX, masterY, conf) {
1161
+ let maxEventHeight = 0;
1162
+ const eventBeginY = masterY;
1163
+ masterY = masterY + 100;
1164
+ for (const event of events) {
1165
+ const eventNode = {
1166
+ descr: event,
1167
+ section: sectionColor,
1168
+ number: sectionColor,
1169
+ width: 150,
1170
+ padding: 20,
1171
+ maxHeight: 50
1172
+ };
1173
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug("eventNode", eventNode);
1174
+ const eventWrapper = diagram2.append("g").attr("class", "eventWrapper");
1175
+ const node = svgDraw_default.drawNode(eventWrapper, eventNode, sectionColor, conf);
1176
+ const eventHeight = node.height;
1177
+ maxEventHeight = maxEventHeight + eventHeight;
1178
+ eventWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
1179
+ masterY = masterY + 10 + eventHeight;
1180
+ }
1181
+ masterY = eventBeginY;
1182
+ return maxEventHeight;
1183
+ }, "drawEvents");
1184
+ var timelineRenderer_default = {
1185
+ setConf: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => {
1186
+ }, "setConf"),
1187
+ draw
1188
+ };
1189
+
1190
+ // src/diagrams/timeline/styles.js
1191
+
1192
+ var genSections = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((options) => {
1193
+ let sections2 = "";
1194
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1195
+ options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
1196
+ if ((0,khroma__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(options["lineColor" + i])) {
1197
+ options["lineColor" + i] = (0,khroma__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(options["lineColor" + i], 20);
1198
+ } else {
1199
+ options["lineColor" + i] = (0,khroma__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(options["lineColor" + i], 20);
1200
+ }
1201
+ }
1202
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1203
+ const sw = "" + (17 - 3 * i);
1204
+ sections2 += `
1205
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} path {
1206
+ fill: ${options["cScale" + i]};
1207
+ }
1208
+ .section-${i - 1} text {
1209
+ fill: ${options["cScaleLabel" + i]};
1210
+ }
1211
+ .node-icon-${i - 1} {
1212
+ font-size: 40px;
1213
+ color: ${options["cScaleLabel" + i]};
1214
+ }
1215
+ .section-edge-${i - 1}{
1216
+ stroke: ${options["cScale" + i]};
1217
+ }
1218
+ .edge-depth-${i - 1}{
1219
+ stroke-width: ${sw};
1220
+ }
1221
+ .section-${i - 1} line {
1222
+ stroke: ${options["cScaleInv" + i]} ;
1223
+ stroke-width: 3;
1224
+ }
1225
+
1226
+ .lineWrapper line{
1227
+ stroke: ${options["cScaleLabel" + i]} ;
1228
+ }
1229
+
1230
+ .disabled, .disabled circle, .disabled text {
1231
+ fill: lightgray;
1232
+ }
1233
+ .disabled text {
1234
+ fill: #efefef;
1235
+ }
1236
+ `;
1237
+ }
1238
+ return sections2;
1239
+ }, "genSections");
1240
+ var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((options) => `
1241
+ .edge {
1242
+ stroke-width: 3;
1243
+ }
1244
+ ${genSections(options)}
1245
+ .section-root rect, .section-root path, .section-root circle {
1246
+ fill: ${options.git0};
1247
+ }
1248
+ .section-root text {
1249
+ fill: ${options.gitBranchLabel0};
1250
+ }
1251
+ .icon-container {
1252
+ height:100%;
1253
+ display: flex;
1254
+ justify-content: center;
1255
+ align-items: center;
1256
+ }
1257
+ .edge {
1258
+ fill: none;
1259
+ }
1260
+ .eventWrapper {
1261
+ filter: brightness(120%);
1262
+ }
1263
+ `, "getStyles");
1264
+ var styles_default = getStyles;
1265
+
1266
+ // src/diagrams/timeline/timeline-definition.ts
1267
+ var diagram = {
1268
+ db: timelineDb_exports,
1269
+ renderer: timelineRenderer_default,
1270
+ parser: timeline_default,
1271
+ styles: styles_default
1272
+ };
1273
+
1274
+
1275
+
1276
+ /***/ })
1277
+
1278
+ };
1279
+ ;
1280
+ //# sourceMappingURL=214.node.js.map