@digipair/skill-web-chatbot 0.114.1 → 0.114.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2118 -8
- package/dist/index.esm2.js +5 -5
- package/package.json +6 -2
- package/dist/SAP-icons.cjs.js +0 -2489
- package/dist/SAP-icons.cjs2.js +0 -2489
- package/dist/Tableau10-558cc280.cjs.js +0 -9
- package/dist/arc-d1f6357e.cjs.js +0 -88
- package/dist/array-2ff2c7a6.cjs.js +0 -11
- package/dist/blockDiagram-5dc23a45.cjs.js +0 -2916
- package/dist/c4Diagram-1e775db3.cjs.js +0 -4386
- package/dist/channel-ebbc4130.cjs.js +0 -9
- package/dist/classDiagram-f52caa06.cjs.js +0 -209
- package/dist/classDiagram-v2-640c694e.cjs.js +0 -401
- package/dist/clone-afc2f047.cjs.js +0 -10
- package/dist/createText-03b82060.cjs.js +0 -2940
- package/dist/edges-16357fde.cjs.js +0 -2002
- package/dist/erDiagram-c7ff1bec.cjs.js +0 -1807
- package/dist/flowDb-9a89ea33.cjs.js +0 -5542
- package/dist/flowDiagram-aadb13b0.cjs.js +0 -1351
- package/dist/flowDiagram-v2-f2119625.cjs.js +0 -31
- package/dist/flowchart-elk-definition-cf813a97.cjs.js +0 -50248
- package/dist/ganttDiagram-3c2fde2b.cjs.js +0 -3710
- package/dist/gitGraphDiagram-c3a0619c.cjs.js +0 -3815
- package/dist/graph-0ee63739.cjs.js +0 -954
- package/dist/index-bb6d8841.cjs.js +0 -648
- package/dist/index.cjs2.js +0 -76743
- package/dist/infoDiagram-2f5c50c0.cjs.js +0 -460
- package/dist/init-f9637058.cjs.js +0 -17
- package/dist/journeyDiagram-14fe341a.cjs.js +0 -1061
- package/dist/katex-d90b6d29.cjs.js +0 -25690
- package/dist/layout-fd473db2.cjs.js +0 -1613
- package/dist/line-24d93f1b.cjs.js +0 -34
- package/dist/linear-9bcf74c4.cjs.js +0 -537
- package/dist/mindmap-definition-9399c7e6.cjs.js +0 -20488
- package/dist/ordinal-5695958c.cjs.js +0 -330
- package/dist/path-428ebac9.cjs.js +0 -316
- package/dist/pieDiagram-828dae43.cjs.js +0 -949
- package/dist/quadrantDiagram-5fa00455.cjs.js +0 -2409
- package/dist/requirementDiagram-03163dc4.cjs.js +0 -2267
- package/dist/sankeyDiagram-52ec8976.cjs.js +0 -1848
- package/dist/sequenceDiagram-b517d154.cjs.js +0 -5948
- package/dist/stateDiagram-fca82b5b.cjs.js +0 -283
- package/dist/stateDiagram-v2-ed04200a.cjs.js +0 -373
- package/dist/styles-11e81fdd.cjs.js +0 -3943
- package/dist/styles-cacbff60.cjs.js +0 -2120
- package/dist/styles-e75131e4.cjs.js +0 -671
- package/dist/svgDrawCommon-ecc5f780.cjs.js +0 -68
- package/dist/timeline-definition-4ee9bff4.cjs.js +0 -1161
- package/dist/xychartDiagram-e5e6b652.cjs.js +0 -3150
|
@@ -1,1161 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index.cjs2.js');
|
|
4
|
-
var arcD1f6357e = require('./arc-d1f6357e.cjs.js');
|
|
5
|
-
require('./path-428ebac9.cjs.js');
|
|
6
|
-
|
|
7
|
-
function _array_like_to_array(arr, len) {
|
|
8
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
9
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10
|
-
return arr2;
|
|
11
|
-
}
|
|
12
|
-
function _array_with_holes(arr) {
|
|
13
|
-
if (Array.isArray(arr)) return arr;
|
|
14
|
-
}
|
|
15
|
-
function _array_without_holes(arr) {
|
|
16
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
17
|
-
}
|
|
18
|
-
function _instanceof(left, right) {
|
|
19
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
20
|
-
return !!right[Symbol.hasInstance](left);
|
|
21
|
-
} else {
|
|
22
|
-
return left instanceof right;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function _iterable_to_array(iter) {
|
|
26
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
27
|
-
}
|
|
28
|
-
function _iterable_to_array_limit(arr, i) {
|
|
29
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
30
|
-
if (_i == null) return;
|
|
31
|
-
var _arr = [];
|
|
32
|
-
var _n = true;
|
|
33
|
-
var _d = false;
|
|
34
|
-
var _s, _e;
|
|
35
|
-
try {
|
|
36
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
37
|
-
_arr.push(_s.value);
|
|
38
|
-
if (i && _arr.length === i) break;
|
|
39
|
-
}
|
|
40
|
-
} catch (err) {
|
|
41
|
-
_d = true;
|
|
42
|
-
_e = err;
|
|
43
|
-
} finally{
|
|
44
|
-
try {
|
|
45
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
46
|
-
} finally{
|
|
47
|
-
if (_d) throw _e;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return _arr;
|
|
51
|
-
}
|
|
52
|
-
function _non_iterable_rest() {
|
|
53
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54
|
-
}
|
|
55
|
-
function _non_iterable_spread() {
|
|
56
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
57
|
-
}
|
|
58
|
-
function _sliced_to_array(arr, i) {
|
|
59
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
60
|
-
}
|
|
61
|
-
function _to_consumable_array(arr) {
|
|
62
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
63
|
-
}
|
|
64
|
-
function _type_of(obj) {
|
|
65
|
-
"@swc/helpers - typeof";
|
|
66
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
67
|
-
}
|
|
68
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
69
|
-
if (!o) return;
|
|
70
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
71
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
72
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
73
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
74
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
75
|
-
}
|
|
76
|
-
var K = function() {
|
|
77
|
-
var n = function n(f, i, r, h) {
|
|
78
|
-
for(r = r || {}, h = f.length; h--; r[f[h]] = i);
|
|
79
|
-
return r;
|
|
80
|
-
}, t = [
|
|
81
|
-
6,
|
|
82
|
-
8,
|
|
83
|
-
10,
|
|
84
|
-
11,
|
|
85
|
-
12,
|
|
86
|
-
14,
|
|
87
|
-
16,
|
|
88
|
-
17,
|
|
89
|
-
20,
|
|
90
|
-
21
|
|
91
|
-
], e = [
|
|
92
|
-
1,
|
|
93
|
-
9
|
|
94
|
-
], a = [
|
|
95
|
-
1,
|
|
96
|
-
10
|
|
97
|
-
], s = [
|
|
98
|
-
1,
|
|
99
|
-
11
|
|
100
|
-
], c = [
|
|
101
|
-
1,
|
|
102
|
-
12
|
|
103
|
-
], o = [
|
|
104
|
-
1,
|
|
105
|
-
13
|
|
106
|
-
], y = [
|
|
107
|
-
1,
|
|
108
|
-
16
|
|
109
|
-
], g = [
|
|
110
|
-
1,
|
|
111
|
-
17
|
|
112
|
-
], u = {
|
|
113
|
-
trace: function trace() {},
|
|
114
|
-
yy: {},
|
|
115
|
-
symbols_: {
|
|
116
|
-
error: 2,
|
|
117
|
-
start: 3,
|
|
118
|
-
timeline: 4,
|
|
119
|
-
document: 5,
|
|
120
|
-
EOF: 6,
|
|
121
|
-
line: 7,
|
|
122
|
-
SPACE: 8,
|
|
123
|
-
statement: 9,
|
|
124
|
-
NEWLINE: 10,
|
|
125
|
-
title: 11,
|
|
126
|
-
acc_title: 12,
|
|
127
|
-
acc_title_value: 13,
|
|
128
|
-
acc_descr: 14,
|
|
129
|
-
acc_descr_value: 15,
|
|
130
|
-
acc_descr_multiline_value: 16,
|
|
131
|
-
section: 17,
|
|
132
|
-
period_statement: 18,
|
|
133
|
-
event_statement: 19,
|
|
134
|
-
period: 20,
|
|
135
|
-
event: 21,
|
|
136
|
-
$accept: 0,
|
|
137
|
-
$end: 1
|
|
138
|
-
},
|
|
139
|
-
terminals_: {
|
|
140
|
-
2: "error",
|
|
141
|
-
4: "timeline",
|
|
142
|
-
6: "EOF",
|
|
143
|
-
8: "SPACE",
|
|
144
|
-
10: "NEWLINE",
|
|
145
|
-
11: "title",
|
|
146
|
-
12: "acc_title",
|
|
147
|
-
13: "acc_title_value",
|
|
148
|
-
14: "acc_descr",
|
|
149
|
-
15: "acc_descr_value",
|
|
150
|
-
16: "acc_descr_multiline_value",
|
|
151
|
-
17: "section",
|
|
152
|
-
20: "period",
|
|
153
|
-
21: "event"
|
|
154
|
-
},
|
|
155
|
-
productions_: [
|
|
156
|
-
0,
|
|
157
|
-
[
|
|
158
|
-
3,
|
|
159
|
-
3
|
|
160
|
-
],
|
|
161
|
-
[
|
|
162
|
-
5,
|
|
163
|
-
0
|
|
164
|
-
],
|
|
165
|
-
[
|
|
166
|
-
5,
|
|
167
|
-
2
|
|
168
|
-
],
|
|
169
|
-
[
|
|
170
|
-
7,
|
|
171
|
-
2
|
|
172
|
-
],
|
|
173
|
-
[
|
|
174
|
-
7,
|
|
175
|
-
1
|
|
176
|
-
],
|
|
177
|
-
[
|
|
178
|
-
7,
|
|
179
|
-
1
|
|
180
|
-
],
|
|
181
|
-
[
|
|
182
|
-
7,
|
|
183
|
-
1
|
|
184
|
-
],
|
|
185
|
-
[
|
|
186
|
-
9,
|
|
187
|
-
1
|
|
188
|
-
],
|
|
189
|
-
[
|
|
190
|
-
9,
|
|
191
|
-
2
|
|
192
|
-
],
|
|
193
|
-
[
|
|
194
|
-
9,
|
|
195
|
-
2
|
|
196
|
-
],
|
|
197
|
-
[
|
|
198
|
-
9,
|
|
199
|
-
1
|
|
200
|
-
],
|
|
201
|
-
[
|
|
202
|
-
9,
|
|
203
|
-
1
|
|
204
|
-
],
|
|
205
|
-
[
|
|
206
|
-
9,
|
|
207
|
-
1
|
|
208
|
-
],
|
|
209
|
-
[
|
|
210
|
-
9,
|
|
211
|
-
1
|
|
212
|
-
],
|
|
213
|
-
[
|
|
214
|
-
18,
|
|
215
|
-
1
|
|
216
|
-
],
|
|
217
|
-
[
|
|
218
|
-
19,
|
|
219
|
-
1
|
|
220
|
-
]
|
|
221
|
-
],
|
|
222
|
-
performAction: function performAction(i, r, h, d, p, l, w) {
|
|
223
|
-
var x = l.length - 1;
|
|
224
|
-
switch(p){
|
|
225
|
-
case 1:
|
|
226
|
-
return l[x - 1];
|
|
227
|
-
case 2:
|
|
228
|
-
this.$ = [];
|
|
229
|
-
break;
|
|
230
|
-
case 3:
|
|
231
|
-
l[x - 1].push(l[x]), this.$ = l[x - 1];
|
|
232
|
-
break;
|
|
233
|
-
case 4:
|
|
234
|
-
case 5:
|
|
235
|
-
this.$ = l[x];
|
|
236
|
-
break;
|
|
237
|
-
case 6:
|
|
238
|
-
case 7:
|
|
239
|
-
this.$ = [];
|
|
240
|
-
break;
|
|
241
|
-
case 8:
|
|
242
|
-
d.getCommonDb().setDiagramTitle(l[x].substr(6)), this.$ = l[x].substr(6);
|
|
243
|
-
break;
|
|
244
|
-
case 9:
|
|
245
|
-
this.$ = l[x].trim(), d.getCommonDb().setAccTitle(this.$);
|
|
246
|
-
break;
|
|
247
|
-
case 10:
|
|
248
|
-
case 11:
|
|
249
|
-
this.$ = l[x].trim(), d.getCommonDb().setAccDescription(this.$);
|
|
250
|
-
break;
|
|
251
|
-
case 12:
|
|
252
|
-
d.addSection(l[x].substr(8)), this.$ = l[x].substr(8);
|
|
253
|
-
break;
|
|
254
|
-
case 15:
|
|
255
|
-
d.addTask(l[x], 0, ""), this.$ = l[x];
|
|
256
|
-
break;
|
|
257
|
-
case 16:
|
|
258
|
-
d.addEvent(l[x].substr(2)), this.$ = l[x];
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
table: [
|
|
263
|
-
{
|
|
264
|
-
3: 1,
|
|
265
|
-
4: [
|
|
266
|
-
1,
|
|
267
|
-
2
|
|
268
|
-
]
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
1: [
|
|
272
|
-
3
|
|
273
|
-
]
|
|
274
|
-
},
|
|
275
|
-
n(t, [
|
|
276
|
-
2,
|
|
277
|
-
2
|
|
278
|
-
], {
|
|
279
|
-
5: 3
|
|
280
|
-
}),
|
|
281
|
-
{
|
|
282
|
-
6: [
|
|
283
|
-
1,
|
|
284
|
-
4
|
|
285
|
-
],
|
|
286
|
-
7: 5,
|
|
287
|
-
8: [
|
|
288
|
-
1,
|
|
289
|
-
6
|
|
290
|
-
],
|
|
291
|
-
9: 7,
|
|
292
|
-
10: [
|
|
293
|
-
1,
|
|
294
|
-
8
|
|
295
|
-
],
|
|
296
|
-
11: e,
|
|
297
|
-
12: a,
|
|
298
|
-
14: s,
|
|
299
|
-
16: c,
|
|
300
|
-
17: o,
|
|
301
|
-
18: 14,
|
|
302
|
-
19: 15,
|
|
303
|
-
20: y,
|
|
304
|
-
21: g
|
|
305
|
-
},
|
|
306
|
-
n(t, [
|
|
307
|
-
2,
|
|
308
|
-
7
|
|
309
|
-
], {
|
|
310
|
-
1: [
|
|
311
|
-
2,
|
|
312
|
-
1
|
|
313
|
-
]
|
|
314
|
-
}),
|
|
315
|
-
n(t, [
|
|
316
|
-
2,
|
|
317
|
-
3
|
|
318
|
-
]),
|
|
319
|
-
{
|
|
320
|
-
9: 18,
|
|
321
|
-
11: e,
|
|
322
|
-
12: a,
|
|
323
|
-
14: s,
|
|
324
|
-
16: c,
|
|
325
|
-
17: o,
|
|
326
|
-
18: 14,
|
|
327
|
-
19: 15,
|
|
328
|
-
20: y,
|
|
329
|
-
21: g
|
|
330
|
-
},
|
|
331
|
-
n(t, [
|
|
332
|
-
2,
|
|
333
|
-
5
|
|
334
|
-
]),
|
|
335
|
-
n(t, [
|
|
336
|
-
2,
|
|
337
|
-
6
|
|
338
|
-
]),
|
|
339
|
-
n(t, [
|
|
340
|
-
2,
|
|
341
|
-
8
|
|
342
|
-
]),
|
|
343
|
-
{
|
|
344
|
-
13: [
|
|
345
|
-
1,
|
|
346
|
-
19
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
15: [
|
|
351
|
-
1,
|
|
352
|
-
20
|
|
353
|
-
]
|
|
354
|
-
},
|
|
355
|
-
n(t, [
|
|
356
|
-
2,
|
|
357
|
-
11
|
|
358
|
-
]),
|
|
359
|
-
n(t, [
|
|
360
|
-
2,
|
|
361
|
-
12
|
|
362
|
-
]),
|
|
363
|
-
n(t, [
|
|
364
|
-
2,
|
|
365
|
-
13
|
|
366
|
-
]),
|
|
367
|
-
n(t, [
|
|
368
|
-
2,
|
|
369
|
-
14
|
|
370
|
-
]),
|
|
371
|
-
n(t, [
|
|
372
|
-
2,
|
|
373
|
-
15
|
|
374
|
-
]),
|
|
375
|
-
n(t, [
|
|
376
|
-
2,
|
|
377
|
-
16
|
|
378
|
-
]),
|
|
379
|
-
n(t, [
|
|
380
|
-
2,
|
|
381
|
-
4
|
|
382
|
-
]),
|
|
383
|
-
n(t, [
|
|
384
|
-
2,
|
|
385
|
-
9
|
|
386
|
-
]),
|
|
387
|
-
n(t, [
|
|
388
|
-
2,
|
|
389
|
-
10
|
|
390
|
-
])
|
|
391
|
-
],
|
|
392
|
-
defaultActions: {},
|
|
393
|
-
parseError: function parseError(i, r) {
|
|
394
|
-
if (r.recoverable) this.trace(i);
|
|
395
|
-
else {
|
|
396
|
-
var h = new Error(i);
|
|
397
|
-
throw h.hash = r, h;
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
parse: function parse(i) {
|
|
401
|
-
var r = this, h = [
|
|
402
|
-
0
|
|
403
|
-
], d = [], p = [
|
|
404
|
-
null
|
|
405
|
-
], l = [], w = this.table, x = "", N = 0, A = 0, V = 2, U = 1, W = l.slice.call(arguments, 1), b = Object.create(this.lexer), S = {
|
|
406
|
-
yy: {}
|
|
407
|
-
};
|
|
408
|
-
for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy, _) && (S.yy[_] = this.yy[_]);
|
|
409
|
-
b.setInput(i, S.yy), S.yy.lexer = b, S.yy.parser = this, _type_of(b.yylloc) > "u" && (b.yylloc = {});
|
|
410
|
-
var I = b.yylloc;
|
|
411
|
-
l.push(I);
|
|
412
|
-
var P = b.options && b.options.ranges;
|
|
413
|
-
typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
414
|
-
function C() {
|
|
415
|
-
var M;
|
|
416
|
-
return M = d.pop() || b.lex() || U, typeof M != "number" && (_instanceof(M, Array) && (d = M, M = d.pop()), M = r.symbols_[M] || M), M;
|
|
417
|
-
}
|
|
418
|
-
for(var k, L, E, Z, z = {}, B, $, Y, O;;){
|
|
419
|
-
if (L = h[h.length - 1], this.defaultActions[L] ? E = this.defaultActions[L] : ((k === null || (typeof k === "undefined" ? "undefined" : _type_of(k)) > "u") && (k = C()), E = w[L] && w[L][k]), (typeof E === "undefined" ? "undefined" : _type_of(E)) > "u" || !E.length || !E[0]) {
|
|
420
|
-
var J = "";
|
|
421
|
-
O = [];
|
|
422
|
-
for(B in w[L])this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
|
|
423
|
-
b.showPosition ? J = "Parse error on line " + (N + 1) + ":\n" + b.showPosition() + "\nExpecting " + O.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : J = "Parse error on line " + (N + 1) + ": Unexpected " + (k == U ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(J, {
|
|
424
|
-
text: b.match,
|
|
425
|
-
token: this.terminals_[k] || k,
|
|
426
|
-
line: b.yylineno,
|
|
427
|
-
loc: I,
|
|
428
|
-
expected: O
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
if (_instanceof(E[0], Array) && E.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + k);
|
|
432
|
-
switch(E[0]){
|
|
433
|
-
case 1:
|
|
434
|
-
h.push(k), p.push(b.yytext), l.push(b.yylloc), h.push(E[1]), k = null, A = b.yyleng, x = b.yytext, N = b.yylineno, I = b.yylloc;
|
|
435
|
-
break;
|
|
436
|
-
case 2:
|
|
437
|
-
if ($ = this.productions_[E[1]][1], z.$ = p[p.length - $], z._$ = {
|
|
438
|
-
first_line: l[l.length - ($ || 1)].first_line,
|
|
439
|
-
last_line: l[l.length - 1].last_line,
|
|
440
|
-
first_column: l[l.length - ($ || 1)].first_column,
|
|
441
|
-
last_column: l[l.length - 1].last_column
|
|
442
|
-
}, P && (z._$.range = [
|
|
443
|
-
l[l.length - ($ || 1)].range[0],
|
|
444
|
-
l[l.length - 1].range[1]
|
|
445
|
-
]), Z = this.performAction.apply(z, [
|
|
446
|
-
x,
|
|
447
|
-
A,
|
|
448
|
-
N,
|
|
449
|
-
S.yy,
|
|
450
|
-
E[1],
|
|
451
|
-
p,
|
|
452
|
-
l
|
|
453
|
-
].concat(W)), (typeof Z === "undefined" ? "undefined" : _type_of(Z)) < "u") return Z;
|
|
454
|
-
$ && (h = h.slice(0, -1 * $ * 2), p = p.slice(0, -1 * $), l = l.slice(0, -1 * $)), h.push(this.productions_[E[1]][0]), p.push(z.$), l.push(z._$), Y = w[h[h.length - 2]][h[h.length - 1]], h.push(Y);
|
|
455
|
-
break;
|
|
456
|
-
case 3:
|
|
457
|
-
return true;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return true;
|
|
461
|
-
}
|
|
462
|
-
}, m = function() {
|
|
463
|
-
var f = {
|
|
464
|
-
EOF: 1,
|
|
465
|
-
parseError: function parseError(r, h) {
|
|
466
|
-
if (this.yy.parser) this.yy.parser.parseError(r, h);
|
|
467
|
-
else throw new Error(r);
|
|
468
|
-
},
|
|
469
|
-
// resets the lexer, sets new input
|
|
470
|
-
setInput: function setInput(i, r) {
|
|
471
|
-
return this.yy = r || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
472
|
-
"INITIAL"
|
|
473
|
-
], this.yylloc = {
|
|
474
|
-
first_line: 1,
|
|
475
|
-
first_column: 0,
|
|
476
|
-
last_line: 1,
|
|
477
|
-
last_column: 0
|
|
478
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
479
|
-
0,
|
|
480
|
-
0
|
|
481
|
-
]), this.offset = 0, this;
|
|
482
|
-
},
|
|
483
|
-
// consumes and returns one char from the input
|
|
484
|
-
input: function input() {
|
|
485
|
-
var i = this._input[0];
|
|
486
|
-
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
487
|
-
var r = i.match(/(?:\r\n?|\n).*/g);
|
|
488
|
-
return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
489
|
-
},
|
|
490
|
-
// unshifts one char (or a string) into the input
|
|
491
|
-
unput: function unput(i) {
|
|
492
|
-
var r = i.length, h = i.split(/(?:\r\n?|\n)/g);
|
|
493
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
|
|
494
|
-
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
495
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
|
|
496
|
-
var p = this.yylloc.range;
|
|
497
|
-
return this.yylloc = {
|
|
498
|
-
first_line: this.yylloc.first_line,
|
|
499
|
-
last_line: this.yylineno + 1,
|
|
500
|
-
first_column: this.yylloc.first_column,
|
|
501
|
-
last_column: h ? (h.length === d.length ? this.yylloc.first_column : 0) + d[d.length - h.length].length - h[0].length : this.yylloc.first_column - r
|
|
502
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
503
|
-
p[0],
|
|
504
|
-
p[0] + this.yyleng - r
|
|
505
|
-
]), this.yyleng = this.yytext.length, this;
|
|
506
|
-
},
|
|
507
|
-
// When called from action, caches matched text and appends it on next action
|
|
508
|
-
more: function more() {
|
|
509
|
-
return this._more = true, this;
|
|
510
|
-
},
|
|
511
|
-
// 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.
|
|
512
|
-
reject: function reject() {
|
|
513
|
-
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
514
|
-
else 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(), {
|
|
515
|
-
text: "",
|
|
516
|
-
token: null,
|
|
517
|
-
line: this.yylineno
|
|
518
|
-
});
|
|
519
|
-
return this;
|
|
520
|
-
},
|
|
521
|
-
// retain first n characters of the match
|
|
522
|
-
less: function less(i) {
|
|
523
|
-
this.unput(this.match.slice(i));
|
|
524
|
-
},
|
|
525
|
-
// displays already matched input, i.e. for error messages
|
|
526
|
-
pastInput: function pastInput() {
|
|
527
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
528
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
529
|
-
},
|
|
530
|
-
// displays upcoming input, i.e. for error messages
|
|
531
|
-
upcomingInput: function upcomingInput() {
|
|
532
|
-
var i = this.match;
|
|
533
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
534
|
-
},
|
|
535
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
536
|
-
showPosition: function showPosition() {
|
|
537
|
-
var i = this.pastInput(), r = new Array(i.length + 1).join("-");
|
|
538
|
-
return i + this.upcomingInput() + "\n" + r + "^";
|
|
539
|
-
},
|
|
540
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
541
|
-
test_match: function test_match(i, r) {
|
|
542
|
-
var h, d, p;
|
|
543
|
-
if (this.options.backtrack_lexer && (p = {
|
|
544
|
-
yylineno: this.yylineno,
|
|
545
|
-
yylloc: {
|
|
546
|
-
first_line: this.yylloc.first_line,
|
|
547
|
-
last_line: this.last_line,
|
|
548
|
-
first_column: this.yylloc.first_column,
|
|
549
|
-
last_column: this.yylloc.last_column
|
|
550
|
-
},
|
|
551
|
-
yytext: this.yytext,
|
|
552
|
-
match: this.match,
|
|
553
|
-
matches: this.matches,
|
|
554
|
-
matched: this.matched,
|
|
555
|
-
yyleng: this.yyleng,
|
|
556
|
-
offset: this.offset,
|
|
557
|
-
_more: this._more,
|
|
558
|
-
_input: this._input,
|
|
559
|
-
yy: this.yy,
|
|
560
|
-
conditionStack: this.conditionStack.slice(0),
|
|
561
|
-
done: this.done
|
|
562
|
-
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
563
|
-
first_line: this.yylloc.last_line,
|
|
564
|
-
last_line: this.yylineno + 1,
|
|
565
|
-
first_column: this.yylloc.last_column,
|
|
566
|
-
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
567
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
568
|
-
this.offset,
|
|
569
|
-
this.offset += this.yyleng
|
|
570
|
-
]), this._more = false, this._backtrack = false, this._input = this._input.slice(i[0].length), this.matched += i[0], h = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), h) return h;
|
|
571
|
-
if (this._backtrack) {
|
|
572
|
-
for(var l in p)this[l] = p[l];
|
|
573
|
-
return false;
|
|
574
|
-
}
|
|
575
|
-
return false;
|
|
576
|
-
},
|
|
577
|
-
// return next match in input
|
|
578
|
-
next: function next() {
|
|
579
|
-
if (this.done) return this.EOF;
|
|
580
|
-
this._input || (this.done = true);
|
|
581
|
-
var i, r, h, d;
|
|
582
|
-
this._more || (this.yytext = "", this.match = "");
|
|
583
|
-
for(var p = this._currentRules(), l = 0; l < p.length; l++)if (h = this._input.match(this.rules[p[l]]), h && (!r || h[0].length > r[0].length)) {
|
|
584
|
-
if (r = h, d = l, this.options.backtrack_lexer) {
|
|
585
|
-
if (i = this.test_match(h, p[l]), i !== false) return i;
|
|
586
|
-
if (this._backtrack) {
|
|
587
|
-
r = false;
|
|
588
|
-
continue;
|
|
589
|
-
} else return false;
|
|
590
|
-
} else if (!this.options.flex) break;
|
|
591
|
-
}
|
|
592
|
-
return r ? (i = this.test_match(r, p[d]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
593
|
-
text: "",
|
|
594
|
-
token: null,
|
|
595
|
-
line: this.yylineno
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
|
-
// return next match that has a token
|
|
599
|
-
lex: function lex() {
|
|
600
|
-
var r = this.next();
|
|
601
|
-
return r || this.lex();
|
|
602
|
-
},
|
|
603
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
604
|
-
begin: function begin(r) {
|
|
605
|
-
this.conditionStack.push(r);
|
|
606
|
-
},
|
|
607
|
-
// pop the previously active lexer condition state off the condition stack
|
|
608
|
-
popState: function popState() {
|
|
609
|
-
var r = this.conditionStack.length - 1;
|
|
610
|
-
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
611
|
-
},
|
|
612
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
613
|
-
_currentRules: function _currentRules() {
|
|
614
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
615
|
-
},
|
|
616
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
617
|
-
topState: function topState(r) {
|
|
618
|
-
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
619
|
-
},
|
|
620
|
-
// alias for begin(condition)
|
|
621
|
-
pushState: function pushState(r) {
|
|
622
|
-
this.begin(r);
|
|
623
|
-
},
|
|
624
|
-
// return the number of states currently on the stack
|
|
625
|
-
stateStackSize: function stateStackSize() {
|
|
626
|
-
return this.conditionStack.length;
|
|
627
|
-
},
|
|
628
|
-
options: {
|
|
629
|
-
"case-insensitive": true
|
|
630
|
-
},
|
|
631
|
-
performAction: function performAction(r, h, d, p) {
|
|
632
|
-
switch(d){
|
|
633
|
-
case 0:
|
|
634
|
-
break;
|
|
635
|
-
case 1:
|
|
636
|
-
break;
|
|
637
|
-
case 2:
|
|
638
|
-
return 10;
|
|
639
|
-
case 3:
|
|
640
|
-
break;
|
|
641
|
-
case 4:
|
|
642
|
-
break;
|
|
643
|
-
case 5:
|
|
644
|
-
return 4;
|
|
645
|
-
case 6:
|
|
646
|
-
return 11;
|
|
647
|
-
case 7:
|
|
648
|
-
return this.begin("acc_title"), 12;
|
|
649
|
-
case 8:
|
|
650
|
-
return this.popState(), "acc_title_value";
|
|
651
|
-
case 9:
|
|
652
|
-
return this.begin("acc_descr"), 14;
|
|
653
|
-
case 10:
|
|
654
|
-
return this.popState(), "acc_descr_value";
|
|
655
|
-
case 11:
|
|
656
|
-
this.begin("acc_descr_multiline");
|
|
657
|
-
break;
|
|
658
|
-
case 12:
|
|
659
|
-
this.popState();
|
|
660
|
-
break;
|
|
661
|
-
case 13:
|
|
662
|
-
return "acc_descr_multiline_value";
|
|
663
|
-
case 14:
|
|
664
|
-
return 17;
|
|
665
|
-
case 15:
|
|
666
|
-
return 21;
|
|
667
|
-
case 16:
|
|
668
|
-
return 20;
|
|
669
|
-
case 17:
|
|
670
|
-
return 6;
|
|
671
|
-
case 18:
|
|
672
|
-
return "INVALID";
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
rules: [
|
|
676
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
677
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
678
|
-
/^(?:[\n]+)/i,
|
|
679
|
-
/^(?:\s+)/i,
|
|
680
|
-
/^(?:#[^\n]*)/i,
|
|
681
|
-
/^(?:timeline\b)/i,
|
|
682
|
-
/^(?:title\s[^#\n;]+)/i,
|
|
683
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
684
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
685
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
686
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
687
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
688
|
-
/^(?:[\}])/i,
|
|
689
|
-
/^(?:[^\}]*)/i,
|
|
690
|
-
/^(?:section\s[^#:\n;]+)/i,
|
|
691
|
-
/^(?::\s[^#:\n;]+)/i,
|
|
692
|
-
/^(?:[^#:\n;]+)/i,
|
|
693
|
-
/^(?:$)/i,
|
|
694
|
-
/^(?:.)/i
|
|
695
|
-
],
|
|
696
|
-
conditions: {
|
|
697
|
-
acc_descr_multiline: {
|
|
698
|
-
rules: [
|
|
699
|
-
12,
|
|
700
|
-
13
|
|
701
|
-
],
|
|
702
|
-
inclusive: false
|
|
703
|
-
},
|
|
704
|
-
acc_descr: {
|
|
705
|
-
rules: [
|
|
706
|
-
10
|
|
707
|
-
],
|
|
708
|
-
inclusive: false
|
|
709
|
-
},
|
|
710
|
-
acc_title: {
|
|
711
|
-
rules: [
|
|
712
|
-
8
|
|
713
|
-
],
|
|
714
|
-
inclusive: false
|
|
715
|
-
},
|
|
716
|
-
INITIAL: {
|
|
717
|
-
rules: [
|
|
718
|
-
0,
|
|
719
|
-
1,
|
|
720
|
-
2,
|
|
721
|
-
3,
|
|
722
|
-
4,
|
|
723
|
-
5,
|
|
724
|
-
6,
|
|
725
|
-
7,
|
|
726
|
-
9,
|
|
727
|
-
11,
|
|
728
|
-
14,
|
|
729
|
-
15,
|
|
730
|
-
16,
|
|
731
|
-
17,
|
|
732
|
-
18
|
|
733
|
-
],
|
|
734
|
-
inclusive: true
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
return f;
|
|
739
|
-
}();
|
|
740
|
-
u.lexer = m;
|
|
741
|
-
function v() {
|
|
742
|
-
this.yy = {};
|
|
743
|
-
}
|
|
744
|
-
return v.prototype = u, u.Parser = v, new v();
|
|
745
|
-
}();
|
|
746
|
-
K.parser = K;
|
|
747
|
-
var vt = K;
|
|
748
|
-
var R = "", st = 0;
|
|
749
|
-
var Q = [], G = [], F = [], it = function() {
|
|
750
|
-
return index.$_;
|
|
751
|
-
}, rt = function rt() {
|
|
752
|
-
Q.length = 0, G.length = 0, R = "", F.length = 0, index.B_();
|
|
753
|
-
}, at = function at(n) {
|
|
754
|
-
R = n, Q.push(n);
|
|
755
|
-
}, lt = function lt() {
|
|
756
|
-
return Q;
|
|
757
|
-
}, ot = function ot() {
|
|
758
|
-
var _G;
|
|
759
|
-
var n = tt();
|
|
760
|
-
var t = 100;
|
|
761
|
-
var e = 0;
|
|
762
|
-
for(; !n && e < t;)n = tt(), e++;
|
|
763
|
-
return (_G = G).push.apply(_G, _to_consumable_array(F)), G;
|
|
764
|
-
}, ct = function ct(n, t, e) {
|
|
765
|
-
var a = {
|
|
766
|
-
id: st++,
|
|
767
|
-
section: R,
|
|
768
|
-
type: R,
|
|
769
|
-
task: n,
|
|
770
|
-
score: t || 0,
|
|
771
|
-
//if event is defined, then add it the events array
|
|
772
|
-
events: e ? [
|
|
773
|
-
e
|
|
774
|
-
] : []
|
|
775
|
-
};
|
|
776
|
-
F.push(a);
|
|
777
|
-
}, ht = function ht(n) {
|
|
778
|
-
F.find(function(e) {
|
|
779
|
-
return e.id === st - 1;
|
|
780
|
-
}).events.push(n);
|
|
781
|
-
}, dt = function dt(n) {
|
|
782
|
-
var t = {
|
|
783
|
-
section: R,
|
|
784
|
-
type: R,
|
|
785
|
-
description: n,
|
|
786
|
-
task: n,
|
|
787
|
-
classes: []
|
|
788
|
-
};
|
|
789
|
-
G.push(t);
|
|
790
|
-
}, tt = function tt() {
|
|
791
|
-
var n = function n(e) {
|
|
792
|
-
return F[e].processed;
|
|
793
|
-
};
|
|
794
|
-
var t = true;
|
|
795
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
796
|
-
try {
|
|
797
|
-
for(var _iterator = F.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
798
|
-
var _step_value = _sliced_to_array(_step.value, 2), e = _step_value[0], a = _step_value[1];
|
|
799
|
-
n(e), t = t && a.processed;
|
|
800
|
-
}
|
|
801
|
-
} catch (err) {
|
|
802
|
-
_didIteratorError = true;
|
|
803
|
-
_iteratorError = err;
|
|
804
|
-
} finally{
|
|
805
|
-
try {
|
|
806
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
807
|
-
_iterator.return();
|
|
808
|
-
}
|
|
809
|
-
} finally{
|
|
810
|
-
if (_didIteratorError) {
|
|
811
|
-
throw _iteratorError;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
return t;
|
|
816
|
-
}, wt = {
|
|
817
|
-
clear: rt,
|
|
818
|
-
getCommonDb: it,
|
|
819
|
-
addSection: at,
|
|
820
|
-
getSections: lt,
|
|
821
|
-
getTasks: ot,
|
|
822
|
-
addTask: ct,
|
|
823
|
-
addTaskOrg: dt,
|
|
824
|
-
addEvent: ht
|
|
825
|
-
}, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
826
|
-
__proto__: null,
|
|
827
|
-
addEvent: ht,
|
|
828
|
-
addSection: at,
|
|
829
|
-
addTask: ct,
|
|
830
|
-
addTaskOrg: dt,
|
|
831
|
-
clear: rt,
|
|
832
|
-
default: wt,
|
|
833
|
-
getCommonDb: it,
|
|
834
|
-
getSections: lt,
|
|
835
|
-
getTasks: ot
|
|
836
|
-
}, Symbol.toStringTag, {
|
|
837
|
-
value: "Module"
|
|
838
|
-
})), Et = 12, q = function q(n, t) {
|
|
839
|
-
var e = n.append("rect");
|
|
840
|
-
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;
|
|
841
|
-
}, Tt = function Tt(n, t) {
|
|
842
|
-
var a = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), s = n.append("g");
|
|
843
|
-
s.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"), s.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");
|
|
844
|
-
function c(g) {
|
|
845
|
-
var u = arcD1f6357e.vn().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
846
|
-
g.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
847
|
-
}
|
|
848
|
-
function o(g) {
|
|
849
|
-
var u = arcD1f6357e.vn().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
850
|
-
g.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
851
|
-
}
|
|
852
|
-
function y(g) {
|
|
853
|
-
g.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");
|
|
854
|
-
}
|
|
855
|
-
return t.score > 3 ? c(s) : t.score < 3 ? o(s) : y(s), a;
|
|
856
|
-
}, It = function It(n, t) {
|
|
857
|
-
var e = n.append("circle");
|
|
858
|
-
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;
|
|
859
|
-
}, ut = function ut(n, t) {
|
|
860
|
-
var e = t.text.replace(/<br\s*\/?>/gi, " "), a = n.append("text");
|
|
861
|
-
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
|
|
862
|
-
var s = a.append("tspan");
|
|
863
|
-
return s.attr("x", t.x + t.textMargin * 2), s.text(e), a;
|
|
864
|
-
}, Nt = function Nt(n, t) {
|
|
865
|
-
function e(s, c, o, y, g) {
|
|
866
|
-
return s + "," + c + " " + (s + o) + "," + c + " " + (s + o) + "," + (c + y - g) + " " + (s + o - g * 1.2) + "," + (c + y) + " " + s + "," + (c + y);
|
|
867
|
-
}
|
|
868
|
-
var a = n.append("polygon");
|
|
869
|
-
a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ut(n, t);
|
|
870
|
-
}, $t = function $t(n, t, e) {
|
|
871
|
-
var a = n.append("g"), s = X();
|
|
872
|
-
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, q(a, s), pt(e)(t.text, a, s.x, s.y, s.width, s.height, {
|
|
873
|
-
class: "journey-section section-type-" + t.num
|
|
874
|
-
}, e, t.colour);
|
|
875
|
-
};
|
|
876
|
-
var et = -1;
|
|
877
|
-
var Mt = function Mt(n, t, e) {
|
|
878
|
-
var a = t.x + e.width / 2, s = n.append("g");
|
|
879
|
-
et++;
|
|
880
|
-
var c = 300 + 5 * 30;
|
|
881
|
-
s.append("line").attr("id", "task" + et).attr("x1", a).attr("y1", t.y).attr("x2", a).attr("y2", c).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Tt(s, {
|
|
882
|
-
cx: a,
|
|
883
|
-
cy: 300 + (5 - t.score) * 30,
|
|
884
|
-
score: t.score
|
|
885
|
-
});
|
|
886
|
-
var o = X();
|
|
887
|
-
o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = e.width, o.height = e.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, q(s, o), t.x + 14, pt(e)(t.task, s, o.x, o.y, o.width, o.height, {
|
|
888
|
-
class: "task"
|
|
889
|
-
}, e, t.colour);
|
|
890
|
-
}, Lt = function Lt(n, t) {
|
|
891
|
-
q(n, {
|
|
892
|
-
x: t.startx,
|
|
893
|
-
y: t.starty,
|
|
894
|
-
width: t.stopx - t.startx,
|
|
895
|
-
height: t.stopy - t.starty,
|
|
896
|
-
fill: t.fill,
|
|
897
|
-
class: "rect"
|
|
898
|
-
}).lower();
|
|
899
|
-
}, At = function At() {
|
|
900
|
-
return {
|
|
901
|
-
x: 0,
|
|
902
|
-
y: 0,
|
|
903
|
-
fill: void 0,
|
|
904
|
-
"text-anchor": "start",
|
|
905
|
-
width: 100,
|
|
906
|
-
height: 100,
|
|
907
|
-
textMargin: 0,
|
|
908
|
-
rx: 0,
|
|
909
|
-
ry: 0
|
|
910
|
-
};
|
|
911
|
-
}, X = function X() {
|
|
912
|
-
return {
|
|
913
|
-
x: 0,
|
|
914
|
-
y: 0,
|
|
915
|
-
width: 100,
|
|
916
|
-
anchor: "start",
|
|
917
|
-
height: 100,
|
|
918
|
-
rx: 0,
|
|
919
|
-
ry: 0
|
|
920
|
-
};
|
|
921
|
-
}, pt = function() {
|
|
922
|
-
function n(s, c, o, y, g, u, m, v) {
|
|
923
|
-
var f = c.append("text").attr("x", o + g / 2).attr("y", y + u / 2 + 5).style("font-color", v).style("text-anchor", "middle").text(s);
|
|
924
|
-
a(f, m);
|
|
925
|
-
}
|
|
926
|
-
function t(s, c, o, y, g, u, m, v, f) {
|
|
927
|
-
var i = v.taskFontSize, r = v.taskFontFamily, h = s.split(/<br\s*\/?>/gi);
|
|
928
|
-
for(var d = 0; d < h.length; d++){
|
|
929
|
-
var p = d * i - i * (h.length - 1) / 2, l = c.append("text").attr("x", o + g / 2).attr("y", y).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", r);
|
|
930
|
-
l.append("tspan").attr("x", o + g / 2).attr("dy", p).text(h[d]), l.attr("y", y + u / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(l, m);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
function e(s, c, o, y, g, u, m, v) {
|
|
934
|
-
var f = c.append("switch"), r = f.append("foreignObject").attr("x", o).attr("y", y).attr("width", g).attr("height", u).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
935
|
-
r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, f, o, y, g, u, m, v), a(r, m);
|
|
936
|
-
}
|
|
937
|
-
function a(s, c) {
|
|
938
|
-
for(var o in c)o in c && s.attr(o, c[o]);
|
|
939
|
-
}
|
|
940
|
-
return function(s) {
|
|
941
|
-
return s.textPlacement === "fo" ? e : s.textPlacement === "old" ? n : t;
|
|
942
|
-
};
|
|
943
|
-
}(), Pt = function Pt(n) {
|
|
944
|
-
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");
|
|
945
|
-
};
|
|
946
|
-
function yt(n, t) {
|
|
947
|
-
n.each(function() {
|
|
948
|
-
var e = index.bt(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, c = [], o = 1.1, y = e.attr("y"), g = parseFloat(e.attr("dy")), u = e.text(null).append("tspan").attr("x", 0).attr("y", y).attr("dy", g + "em");
|
|
949
|
-
for(var m = 0; m < a.length; m++)s = a[a.length - 1 - m], c.push(s), u.text(c.join(" ").trim()), (u.node().getComputedTextLength() > t || s === "<br>") && (c.pop(), u.text(c.join(" ").trim()), s === "<br>" ? c = [
|
|
950
|
-
""
|
|
951
|
-
] : c = [
|
|
952
|
-
s
|
|
953
|
-
], u = e.append("tspan").attr("x", 0).attr("y", y).attr("dy", o + "em").text(s));
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
var Ht = function Ht(n, t, e, a) {
|
|
957
|
-
var s = e % Et - 1, c = n.append("g");
|
|
958
|
-
t.section = s, c.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + s));
|
|
959
|
-
var o = c.append("g"), y = c.append("g"), u = y.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), m = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
960
|
-
return t.height = u.height + m * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, y.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(o, t, s), t;
|
|
961
|
-
}, Ct = function Ct(n, t, e) {
|
|
962
|
-
var a = n.append("g"), c = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), o = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
963
|
-
return a.remove(), c.height + o * 1.1 * 0.5 + t.padding;
|
|
964
|
-
}, zt = function zt(n, t, e) {
|
|
965
|
-
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr("d", "M0 ".concat(t.height - 5, " v").concat(-t.height + 2 * 5, " q0,-5 5,-5 h").concat(t.width - 2 * 5, " q5,0 5,5 v").concat(t.height - 5, " H0 Z")), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
966
|
-
}, H = {
|
|
967
|
-
drawRect: q,
|
|
968
|
-
drawCircle: It,
|
|
969
|
-
drawSection: $t,
|
|
970
|
-
drawText: ut,
|
|
971
|
-
drawLabel: Nt,
|
|
972
|
-
drawTask: Mt,
|
|
973
|
-
drawBackgroundRect: Lt,
|
|
974
|
-
getTextObj: At,
|
|
975
|
-
getNoteRect: X,
|
|
976
|
-
initGraphics: Pt,
|
|
977
|
-
drawNode: Ht,
|
|
978
|
-
getVirtualNodeHeight: Ct
|
|
979
|
-
}, Rt = function Rt(n, t, e, a) {
|
|
980
|
-
var W, b;
|
|
981
|
-
var _s_leftMargin;
|
|
982
|
-
var s = index.Vn(), c = (_s_leftMargin = s.leftMargin) !== null && _s_leftMargin !== void 0 ? _s_leftMargin : 50;
|
|
983
|
-
index.L.debug("timeline", a.db);
|
|
984
|
-
var o = s.securityLevel;
|
|
985
|
-
var y;
|
|
986
|
-
o === "sandbox" && (y = index.bt("#i" + t));
|
|
987
|
-
var u = (o === "sandbox" ? index.bt(y.nodes()[0].contentDocument.body) : index.bt("body")).select("#" + t);
|
|
988
|
-
u.append("g");
|
|
989
|
-
var m = a.db.getTasks(), v = a.db.getCommonDb().getDiagramTitle();
|
|
990
|
-
index.L.debug("task", m), H.initGraphics(u);
|
|
991
|
-
var f = a.db.getSections();
|
|
992
|
-
index.L.debug("sections", f);
|
|
993
|
-
var i = 0, r = 0, h = 0, d = 0, p = 50 + c, l = 50;
|
|
994
|
-
d = 50;
|
|
995
|
-
var w = 0, x = true;
|
|
996
|
-
f.forEach(function(S) {
|
|
997
|
-
var _ = {
|
|
998
|
-
number: w,
|
|
999
|
-
descr: S,
|
|
1000
|
-
section: w,
|
|
1001
|
-
width: 150,
|
|
1002
|
-
padding: 20,
|
|
1003
|
-
maxHeight: i
|
|
1004
|
-
}, I = H.getVirtualNodeHeight(u, _, s);
|
|
1005
|
-
index.L.debug("sectionHeight before draw", I), i = Math.max(i, I + 20);
|
|
1006
|
-
});
|
|
1007
|
-
var N = 0, A = 0;
|
|
1008
|
-
index.L.debug("tasks.length", m.length);
|
|
1009
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1010
|
-
try {
|
|
1011
|
-
for(var _iterator = m.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1012
|
-
var _step_value = _sliced_to_array(_step.value, 2), S = _step_value[0], _ = _step_value[1];
|
|
1013
|
-
var I = {
|
|
1014
|
-
number: S,
|
|
1015
|
-
descr: _,
|
|
1016
|
-
section: _.section,
|
|
1017
|
-
width: 150,
|
|
1018
|
-
padding: 20,
|
|
1019
|
-
maxHeight: r
|
|
1020
|
-
}, P = H.getVirtualNodeHeight(u, I, s);
|
|
1021
|
-
index.L.debug("taskHeight before draw", P), r = Math.max(r, P + 20), N = Math.max(N, _.events.length);
|
|
1022
|
-
var C = 0;
|
|
1023
|
-
for(var k = 0; k < _.events.length; k++){
|
|
1024
|
-
var E = {
|
|
1025
|
-
descr: _.events[k],
|
|
1026
|
-
section: _.section,
|
|
1027
|
-
number: _.section,
|
|
1028
|
-
width: 150,
|
|
1029
|
-
padding: 20,
|
|
1030
|
-
maxHeight: 50
|
|
1031
|
-
};
|
|
1032
|
-
C += H.getVirtualNodeHeight(u, E, s);
|
|
1033
|
-
}
|
|
1034
|
-
A = Math.max(A, C);
|
|
1035
|
-
}
|
|
1036
|
-
} catch (err) {
|
|
1037
|
-
_didIteratorError = true;
|
|
1038
|
-
_iteratorError = err;
|
|
1039
|
-
} finally{
|
|
1040
|
-
try {
|
|
1041
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1042
|
-
_iterator.return();
|
|
1043
|
-
}
|
|
1044
|
-
} finally{
|
|
1045
|
-
if (_didIteratorError) {
|
|
1046
|
-
throw _iteratorError;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
index.L.debug("maxSectionHeight before draw", i), index.L.debug("maxTaskHeight before draw", r), f && f.length > 0 ? f.forEach(function(S) {
|
|
1051
|
-
var _ = m.filter(function(k) {
|
|
1052
|
-
return k.section === S;
|
|
1053
|
-
}), I = {
|
|
1054
|
-
number: w,
|
|
1055
|
-
descr: S,
|
|
1056
|
-
section: w,
|
|
1057
|
-
width: 200 * Math.max(_.length, 1) - 50,
|
|
1058
|
-
padding: 20,
|
|
1059
|
-
maxHeight: i
|
|
1060
|
-
};
|
|
1061
|
-
index.L.debug("sectionNode", I);
|
|
1062
|
-
var P = u.append("g"), C = H.drawNode(P, I, w, s);
|
|
1063
|
-
index.L.debug("sectionNode output", C), P.attr("transform", "translate(".concat(p, ", ").concat(d, ")")), l += i + 50, _.length > 0 && nt(u, _, w, p, l, r, s, N, A, i, false), p += 200 * Math.max(_.length, 1), l = d, w++;
|
|
1064
|
-
}) : (x = false, nt(u, m, w, p, l, r, s, N, A, i, true));
|
|
1065
|
-
var V = u.node().getBBox();
|
|
1066
|
-
var _ref, _ref1;
|
|
1067
|
-
index.L.debug("bounds", V), v && u.append("text").text(v).attr("x", V.width / 2 - c).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = x ? i + r + 150 : r + 100, u.append("g").attr("class", "lineWrapper").append("line").attr("x1", c).attr("y1", h).attr("x2", V.width + 3 * c).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), index.k_(void 0, u, (_ref = (W = s.timeline) == null ? void 0 : W.padding) !== null && _ref !== void 0 ? _ref : 50, (_ref1 = (b = s.timeline) == null ? void 0 : b.useMaxWidth) !== null && _ref1 !== void 0 ? _ref1 : false);
|
|
1068
|
-
}, nt = function nt(n, t, e, a, s, c, o, y, g, u, m) {
|
|
1069
|
-
var v;
|
|
1070
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1071
|
-
try {
|
|
1072
|
-
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1073
|
-
var f = _step.value;
|
|
1074
|
-
var i = {
|
|
1075
|
-
descr: f.task,
|
|
1076
|
-
section: e,
|
|
1077
|
-
number: e,
|
|
1078
|
-
width: 150,
|
|
1079
|
-
padding: 20,
|
|
1080
|
-
maxHeight: c
|
|
1081
|
-
};
|
|
1082
|
-
index.L.debug("taskNode", i);
|
|
1083
|
-
var r = n.append("g").attr("class", "taskWrapper"), d = H.drawNode(r, i, e, o).height;
|
|
1084
|
-
if (index.L.debug("taskHeight after draw", d), r.attr("transform", "translate(".concat(a, ", ").concat(s, ")")), c = Math.max(c, d), f.events) {
|
|
1085
|
-
var p = n.append("g").attr("class", "lineWrapper");
|
|
1086
|
-
var l = c;
|
|
1087
|
-
s += 100, l = l + Ft(n, f.events, e, a, s, o), s -= 100, p.append("line").attr("x1", a + 190 / 2).attr("y1", s + c).attr("x2", a + 190 / 2).attr("y2", s + c + (m ? c : u) + g + 120).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
1088
|
-
}
|
|
1089
|
-
a = a + 200, m && !((v = o.timeline) != null && v.disableMulticolor) && e++;
|
|
1090
|
-
}
|
|
1091
|
-
} catch (err) {
|
|
1092
|
-
_didIteratorError = true;
|
|
1093
|
-
_iteratorError = err;
|
|
1094
|
-
} finally{
|
|
1095
|
-
try {
|
|
1096
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1097
|
-
_iterator.return();
|
|
1098
|
-
}
|
|
1099
|
-
} finally{
|
|
1100
|
-
if (_didIteratorError) {
|
|
1101
|
-
throw _iteratorError;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
s = s - 10;
|
|
1106
|
-
}, Ft = function Ft(n, t, e, a, s, c) {
|
|
1107
|
-
var o = 0;
|
|
1108
|
-
var y = s;
|
|
1109
|
-
s = s + 100;
|
|
1110
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1111
|
-
try {
|
|
1112
|
-
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1113
|
-
var g = _step.value;
|
|
1114
|
-
var u = {
|
|
1115
|
-
descr: g,
|
|
1116
|
-
section: e,
|
|
1117
|
-
number: e,
|
|
1118
|
-
width: 150,
|
|
1119
|
-
padding: 20,
|
|
1120
|
-
maxHeight: 50
|
|
1121
|
-
};
|
|
1122
|
-
index.L.debug("eventNode", u);
|
|
1123
|
-
var m = n.append("g").attr("class", "eventWrapper"), f = H.drawNode(m, u, e, c).height;
|
|
1124
|
-
o = o + f, m.attr("transform", "translate(".concat(a, ", ").concat(s, ")")), s = s + 10 + f;
|
|
1125
|
-
}
|
|
1126
|
-
} catch (err) {
|
|
1127
|
-
_didIteratorError = true;
|
|
1128
|
-
_iteratorError = err;
|
|
1129
|
-
} finally{
|
|
1130
|
-
try {
|
|
1131
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1132
|
-
_iterator.return();
|
|
1133
|
-
}
|
|
1134
|
-
} finally{
|
|
1135
|
-
if (_didIteratorError) {
|
|
1136
|
-
throw _iteratorError;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
return s = y, o;
|
|
1141
|
-
}, Vt = {
|
|
1142
|
-
setConf: function() {},
|
|
1143
|
-
draw: Rt
|
|
1144
|
-
}, Wt = function(n) {
|
|
1145
|
-
var t = "";
|
|
1146
|
-
for(var e = 0; e < n.THEME_COLOR_LIMIT; e++)n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], index.mi(n["lineColor" + e]) ? n["lineColor" + e] = index.F(n["lineColor" + e], 20) : n["lineColor" + e] = index.E(n["lineColor" + e], 20);
|
|
1147
|
-
for(var e1 = 0; e1 < n.THEME_COLOR_LIMIT; e1++){
|
|
1148
|
-
var a = "" + (17 - 3 * e1);
|
|
1149
|
-
t += "\n .section-".concat(e1 - 1, " rect, .section-").concat(e1 - 1, " path, .section-").concat(e1 - 1, " circle, .section-").concat(e1 - 1, " path {\n fill: ").concat(n["cScale" + e1], ";\n }\n .section-").concat(e1 - 1, " text {\n fill: ").concat(n["cScaleLabel" + e1], ";\n }\n .node-icon-").concat(e1 - 1, " {\n font-size: 40px;\n color: ").concat(n["cScaleLabel" + e1], ";\n }\n .section-edge-").concat(e1 - 1, "{\n stroke: ").concat(n["cScale" + e1], ";\n }\n .edge-depth-").concat(e1 - 1, "{\n stroke-width: ").concat(a, ";\n }\n .section-").concat(e1 - 1, " line {\n stroke: ").concat(n["cScaleInv" + e1], " ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ").concat(n["cScaleLabel" + e1], " ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n ");
|
|
1150
|
-
}
|
|
1151
|
-
return t;
|
|
1152
|
-
}, Bt = function(n) {
|
|
1153
|
-
return "\n .edge {\n stroke-width: 3;\n }\n ".concat(Wt(n), "\n .section-root rect, .section-root path, .section-root circle {\n fill: ").concat(n.git0, ";\n }\n .section-root text {\n fill: ").concat(n.gitBranchLabel0, ";\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n");
|
|
1154
|
-
}, Ot = Bt, Ut = {
|
|
1155
|
-
db: St,
|
|
1156
|
-
renderer: Vt,
|
|
1157
|
-
parser: vt,
|
|
1158
|
-
styles: Ot
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
exports.diagram = Ut;
|