@digipair/skill-web-chatbot 0.8.36 → 0.8.39
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/Tableau10-558cc280.cjs.js +9 -0
- package/Tableau10-558cc280.esm.js +7 -0
- package/arc-d1f6357e.cjs.js +88 -0
- package/arc-d1f6357e.esm.js +86 -0
- package/blockDiagram-5dc23a45.cjs.js +2921 -0
- package/blockDiagram-5dc23a45.esm.js +2919 -0
- package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
- package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
- package/channel-ebbc4130.cjs.js +9 -0
- package/channel-ebbc4130.esm.js +7 -0
- package/classDiagram-f52caa06.cjs.js +209 -0
- package/classDiagram-f52caa06.esm.js +207 -0
- package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
- package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
- package/clone-afc2f047.cjs.js +10 -0
- package/clone-afc2f047.esm.js +8 -0
- package/createText-03b82060.cjs.js +2936 -0
- package/createText-03b82060.esm.js +2933 -0
- package/edges-16357fde.cjs.js +1998 -0
- package/edges-16357fde.esm.js +1981 -0
- package/erDiagram-c7ff1bec.cjs.js +1807 -0
- package/erDiagram-c7ff1bec.esm.js +1805 -0
- package/flowDb-9a89ea33.cjs.js +5542 -0
- package/flowDb-9a89ea33.esm.js +5538 -0
- package/flowDiagram-aadb13b0.cjs.js +1351 -0
- package/flowDiagram-aadb13b0.esm.js +1349 -0
- package/flowDiagram-v2-f2119625.cjs.js +31 -0
- package/flowDiagram-v2-f2119625.esm.js +29 -0
- package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
- package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
- package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
- package/ganttDiagram-3c2fde2b.esm.js +3708 -0
- package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
- package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
- package/graph-0ee63739.cjs.js +961 -0
- package/graph-0ee63739.esm.js +938 -0
- package/index-bb6d8841.cjs.js +648 -0
- package/index-bb6d8841.esm.js +646 -0
- package/index.cjs2.js +5410 -4623
- package/index.esm.js +1 -1
- package/index.esm2.js +5291 -4527
- package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
- package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
- package/journeyDiagram-14fe341a.cjs.js +1061 -0
- package/journeyDiagram-14fe341a.esm.js +1059 -0
- package/katex-d90b6d29.cjs.js +25690 -0
- package/katex-d90b6d29.esm.js +25688 -0
- package/layout-fd473db2.cjs.js +1626 -0
- package/layout-fd473db2.esm.js +1619 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
- package/line-24d93f1b.cjs.js +34 -0
- package/line-24d93f1b.esm.js +32 -0
- package/linear-9bcf74c4.cjs.js +537 -0
- package/linear-9bcf74c4.esm.js +531 -0
- package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
- package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
- package/package.json +1 -1
- package/path-428ebac9.cjs.js +317 -0
- package/path-428ebac9.esm.js +314 -0
- package/pieDiagram-828dae43.cjs.js +951 -0
- package/pieDiagram-828dae43.esm.js +949 -0
- package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
- package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
- package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
- package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
- package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
- package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
- package/sequenceDiagram-b517d154.cjs.js +5949 -0
- package/sequenceDiagram-b517d154.esm.js +5947 -0
- package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
- package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
- package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
- package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
- package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
- package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
- package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
- package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
- package/styles-e75131e4.cjs.js +671 -0
- package/styles-e75131e4.esm.js +661 -0
- package/svgDrawCommon-ecc5f780.cjs.js +68 -0
- package/svgDrawCommon-ecc5f780.esm.js +60 -0
- package/timeline-definition-4ee9bff4.cjs.js +1161 -0
- package/timeline-definition-4ee9bff4.esm.js +1159 -0
- package/xychartDiagram-e5e6b652.cjs.js +3150 -0
- package/xychartDiagram-e5e6b652.esm.js +3148 -0
- package/arc-da8fd8d8.cjs.js +0 -88
- package/arc-da8fd8d8.esm.js +0 -86
- package/classDiagram-185c1a10.cjs.js +0 -96
- package/classDiagram-185c1a10.esm.js +0 -94
- package/constant-2fe7eae5.cjs.js +0 -58
- package/constant-2fe7eae5.esm.js +0 -55
- package/createText-94e3ebbf.cjs.js +0 -2775
- package/createText-94e3ebbf.esm.js +0 -2773
- package/edges-558884ee.cjs.js +0 -1450
- package/edges-558884ee.esm.js +0 -1436
- package/erDiagram-97139f44.cjs.js +0 -1949
- package/erDiagram-97139f44.esm.js +0 -1947
- package/flowDb-a4faf166.cjs.js +0 -6918
- package/flowDb-a4faf166.esm.js +0 -6914
- package/flowDiagram-ccbbb58d.cjs.js +0 -999
- package/flowDiagram-ccbbb58d.esm.js +0 -997
- package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
- package/flowDiagram-v2-79ccd6da.esm.js +0 -27
- package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
- package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
- package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
- package/ganttDiagram-3eff0dd8.esm.js +0 -3853
- package/index-d0b453e2.cjs.js +0 -609
- package/index-d0b453e2.esm.js +0 -607
- package/journeyDiagram-b6904cec.cjs.js +0 -1292
- package/journeyDiagram-b6904cec.esm.js +0 -1290
- package/layout-c5a37d74.cjs.js +0 -2808
- package/layout-c5a37d74.esm.js +0 -2795
- package/line-ce5d1152.cjs.js +0 -34
- package/line-ce5d1152.esm.js +0 -32
- package/linear-db016d0c.cjs.js +0 -485
- package/linear-db016d0c.esm.js +0 -479
- package/pieDiagram-fd367f1f.cjs.js +0 -1157
- package/pieDiagram-fd367f1f.esm.js +0 -1155
- package/sequenceDiagram-169f11ec.cjs.js +0 -4805
- package/sequenceDiagram-169f11ec.esm.js +0 -4803
- package/styles-3814544c.cjs.js +0 -534
- package/styles-3814544c.esm.js +0 -524
- package/svgDraw-af99a425.cjs.js +0 -144
- package/svgDraw-af99a425.esm.js +0 -141
- package/svgDrawCommon-ebe6c236.cjs.js +0 -70
- package/svgDrawCommon-ebe6c236.esm.js +0 -62
- package/timeline-definition-65183566.cjs.js +0 -1394
- package/timeline-definition-65183566.esm.js +0 -1392
|
@@ -1,1394 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index.cjs2.js');
|
|
4
|
-
var arcDa8fd8d8 = require('./arc-da8fd8d8.cjs.js');
|
|
5
|
-
require('./constant-2fe7eae5.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 Y = function() {
|
|
77
|
-
var n = function n(k, r, a, h) {
|
|
78
|
-
for(a = a || {}, h = k.length; h--; a[k[h]] = r);
|
|
79
|
-
return a;
|
|
80
|
-
}, t = [
|
|
81
|
-
1,
|
|
82
|
-
2
|
|
83
|
-
], e = [
|
|
84
|
-
1,
|
|
85
|
-
5
|
|
86
|
-
], s = [
|
|
87
|
-
6,
|
|
88
|
-
9,
|
|
89
|
-
11,
|
|
90
|
-
17,
|
|
91
|
-
18,
|
|
92
|
-
20,
|
|
93
|
-
22,
|
|
94
|
-
23,
|
|
95
|
-
26,
|
|
96
|
-
27,
|
|
97
|
-
28
|
|
98
|
-
], i = [
|
|
99
|
-
1,
|
|
100
|
-
15
|
|
101
|
-
], o = [
|
|
102
|
-
1,
|
|
103
|
-
16
|
|
104
|
-
], l = [
|
|
105
|
-
1,
|
|
106
|
-
17
|
|
107
|
-
], p = [
|
|
108
|
-
1,
|
|
109
|
-
18
|
|
110
|
-
], g = [
|
|
111
|
-
1,
|
|
112
|
-
19
|
|
113
|
-
], d = [
|
|
114
|
-
1,
|
|
115
|
-
23
|
|
116
|
-
], f = [
|
|
117
|
-
1,
|
|
118
|
-
24
|
|
119
|
-
], S = [
|
|
120
|
-
1,
|
|
121
|
-
27
|
|
122
|
-
], _ = [
|
|
123
|
-
4,
|
|
124
|
-
6,
|
|
125
|
-
9,
|
|
126
|
-
11,
|
|
127
|
-
17,
|
|
128
|
-
18,
|
|
129
|
-
20,
|
|
130
|
-
22,
|
|
131
|
-
23,
|
|
132
|
-
26,
|
|
133
|
-
27,
|
|
134
|
-
28
|
|
135
|
-
], b = {
|
|
136
|
-
trace: function trace() {},
|
|
137
|
-
yy: {},
|
|
138
|
-
symbols_: {
|
|
139
|
-
error: 2,
|
|
140
|
-
start: 3,
|
|
141
|
-
timeline: 4,
|
|
142
|
-
document: 5,
|
|
143
|
-
EOF: 6,
|
|
144
|
-
directive: 7,
|
|
145
|
-
line: 8,
|
|
146
|
-
SPACE: 9,
|
|
147
|
-
statement: 10,
|
|
148
|
-
NEWLINE: 11,
|
|
149
|
-
openDirective: 12,
|
|
150
|
-
typeDirective: 13,
|
|
151
|
-
closeDirective: 14,
|
|
152
|
-
":": 15,
|
|
153
|
-
argDirective: 16,
|
|
154
|
-
title: 17,
|
|
155
|
-
acc_title: 18,
|
|
156
|
-
acc_title_value: 19,
|
|
157
|
-
acc_descr: 20,
|
|
158
|
-
acc_descr_value: 21,
|
|
159
|
-
acc_descr_multiline_value: 22,
|
|
160
|
-
section: 23,
|
|
161
|
-
period_statement: 24,
|
|
162
|
-
event_statement: 25,
|
|
163
|
-
period: 26,
|
|
164
|
-
event: 27,
|
|
165
|
-
open_directive: 28,
|
|
166
|
-
type_directive: 29,
|
|
167
|
-
arg_directive: 30,
|
|
168
|
-
close_directive: 31,
|
|
169
|
-
$accept: 0,
|
|
170
|
-
$end: 1
|
|
171
|
-
},
|
|
172
|
-
terminals_: {
|
|
173
|
-
2: "error",
|
|
174
|
-
4: "timeline",
|
|
175
|
-
6: "EOF",
|
|
176
|
-
9: "SPACE",
|
|
177
|
-
11: "NEWLINE",
|
|
178
|
-
15: ":",
|
|
179
|
-
17: "title",
|
|
180
|
-
18: "acc_title",
|
|
181
|
-
19: "acc_title_value",
|
|
182
|
-
20: "acc_descr",
|
|
183
|
-
21: "acc_descr_value",
|
|
184
|
-
22: "acc_descr_multiline_value",
|
|
185
|
-
23: "section",
|
|
186
|
-
26: "period",
|
|
187
|
-
27: "event",
|
|
188
|
-
28: "open_directive",
|
|
189
|
-
29: "type_directive",
|
|
190
|
-
30: "arg_directive",
|
|
191
|
-
31: "close_directive"
|
|
192
|
-
},
|
|
193
|
-
productions_: [
|
|
194
|
-
0,
|
|
195
|
-
[
|
|
196
|
-
3,
|
|
197
|
-
3
|
|
198
|
-
],
|
|
199
|
-
[
|
|
200
|
-
3,
|
|
201
|
-
2
|
|
202
|
-
],
|
|
203
|
-
[
|
|
204
|
-
5,
|
|
205
|
-
0
|
|
206
|
-
],
|
|
207
|
-
[
|
|
208
|
-
5,
|
|
209
|
-
2
|
|
210
|
-
],
|
|
211
|
-
[
|
|
212
|
-
8,
|
|
213
|
-
2
|
|
214
|
-
],
|
|
215
|
-
[
|
|
216
|
-
8,
|
|
217
|
-
1
|
|
218
|
-
],
|
|
219
|
-
[
|
|
220
|
-
8,
|
|
221
|
-
1
|
|
222
|
-
],
|
|
223
|
-
[
|
|
224
|
-
8,
|
|
225
|
-
1
|
|
226
|
-
],
|
|
227
|
-
[
|
|
228
|
-
7,
|
|
229
|
-
4
|
|
230
|
-
],
|
|
231
|
-
[
|
|
232
|
-
7,
|
|
233
|
-
6
|
|
234
|
-
],
|
|
235
|
-
[
|
|
236
|
-
10,
|
|
237
|
-
1
|
|
238
|
-
],
|
|
239
|
-
[
|
|
240
|
-
10,
|
|
241
|
-
2
|
|
242
|
-
],
|
|
243
|
-
[
|
|
244
|
-
10,
|
|
245
|
-
2
|
|
246
|
-
],
|
|
247
|
-
[
|
|
248
|
-
10,
|
|
249
|
-
1
|
|
250
|
-
],
|
|
251
|
-
[
|
|
252
|
-
10,
|
|
253
|
-
1
|
|
254
|
-
],
|
|
255
|
-
[
|
|
256
|
-
10,
|
|
257
|
-
1
|
|
258
|
-
],
|
|
259
|
-
[
|
|
260
|
-
10,
|
|
261
|
-
1
|
|
262
|
-
],
|
|
263
|
-
[
|
|
264
|
-
10,
|
|
265
|
-
1
|
|
266
|
-
],
|
|
267
|
-
[
|
|
268
|
-
24,
|
|
269
|
-
1
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
25,
|
|
273
|
-
1
|
|
274
|
-
],
|
|
275
|
-
[
|
|
276
|
-
12,
|
|
277
|
-
1
|
|
278
|
-
],
|
|
279
|
-
[
|
|
280
|
-
13,
|
|
281
|
-
1
|
|
282
|
-
],
|
|
283
|
-
[
|
|
284
|
-
16,
|
|
285
|
-
1
|
|
286
|
-
],
|
|
287
|
-
[
|
|
288
|
-
14,
|
|
289
|
-
1
|
|
290
|
-
]
|
|
291
|
-
],
|
|
292
|
-
performAction: function performAction(r, a, h, u, y, c, L) {
|
|
293
|
-
var x = c.length - 1;
|
|
294
|
-
switch(y){
|
|
295
|
-
case 1:
|
|
296
|
-
return c[x - 1];
|
|
297
|
-
case 3:
|
|
298
|
-
this.$ = [];
|
|
299
|
-
break;
|
|
300
|
-
case 4:
|
|
301
|
-
c[x - 1].push(c[x]), this.$ = c[x - 1];
|
|
302
|
-
break;
|
|
303
|
-
case 5:
|
|
304
|
-
case 6:
|
|
305
|
-
this.$ = c[x];
|
|
306
|
-
break;
|
|
307
|
-
case 7:
|
|
308
|
-
case 8:
|
|
309
|
-
this.$ = [];
|
|
310
|
-
break;
|
|
311
|
-
case 11:
|
|
312
|
-
u.getCommonDb().setDiagramTitle(c[x].substr(6)), this.$ = c[x].substr(6);
|
|
313
|
-
break;
|
|
314
|
-
case 12:
|
|
315
|
-
this.$ = c[x].trim(), u.getCommonDb().setAccTitle(this.$);
|
|
316
|
-
break;
|
|
317
|
-
case 13:
|
|
318
|
-
case 14:
|
|
319
|
-
this.$ = c[x].trim(), u.getCommonDb().setAccDescription(this.$);
|
|
320
|
-
break;
|
|
321
|
-
case 15:
|
|
322
|
-
u.addSection(c[x].substr(8)), this.$ = c[x].substr(8);
|
|
323
|
-
break;
|
|
324
|
-
case 19:
|
|
325
|
-
u.addTask(c[x], 0, ""), this.$ = c[x];
|
|
326
|
-
break;
|
|
327
|
-
case 20:
|
|
328
|
-
u.addEvent(c[x].substr(2)), this.$ = c[x];
|
|
329
|
-
break;
|
|
330
|
-
case 21:
|
|
331
|
-
u.parseDirective("%%{", "open_directive");
|
|
332
|
-
break;
|
|
333
|
-
case 22:
|
|
334
|
-
u.parseDirective(c[x], "type_directive");
|
|
335
|
-
break;
|
|
336
|
-
case 23:
|
|
337
|
-
c[x] = c[x].trim().replace(/'/g, '"'), u.parseDirective(c[x], "arg_directive");
|
|
338
|
-
break;
|
|
339
|
-
case 24:
|
|
340
|
-
u.parseDirective("}%%", "close_directive", "timeline");
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
table: [
|
|
345
|
-
{
|
|
346
|
-
3: 1,
|
|
347
|
-
4: t,
|
|
348
|
-
7: 3,
|
|
349
|
-
12: 4,
|
|
350
|
-
28: e
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
1: [
|
|
354
|
-
3
|
|
355
|
-
]
|
|
356
|
-
},
|
|
357
|
-
n(s, [
|
|
358
|
-
2,
|
|
359
|
-
3
|
|
360
|
-
], {
|
|
361
|
-
5: 6
|
|
362
|
-
}),
|
|
363
|
-
{
|
|
364
|
-
3: 7,
|
|
365
|
-
4: t,
|
|
366
|
-
7: 3,
|
|
367
|
-
12: 4,
|
|
368
|
-
28: e
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
13: 8,
|
|
372
|
-
29: [
|
|
373
|
-
1,
|
|
374
|
-
9
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
29: [
|
|
379
|
-
2,
|
|
380
|
-
21
|
|
381
|
-
]
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
6: [
|
|
385
|
-
1,
|
|
386
|
-
10
|
|
387
|
-
],
|
|
388
|
-
7: 22,
|
|
389
|
-
8: 11,
|
|
390
|
-
9: [
|
|
391
|
-
1,
|
|
392
|
-
12
|
|
393
|
-
],
|
|
394
|
-
10: 13,
|
|
395
|
-
11: [
|
|
396
|
-
1,
|
|
397
|
-
14
|
|
398
|
-
],
|
|
399
|
-
12: 4,
|
|
400
|
-
17: i,
|
|
401
|
-
18: o,
|
|
402
|
-
20: l,
|
|
403
|
-
22: p,
|
|
404
|
-
23: g,
|
|
405
|
-
24: 20,
|
|
406
|
-
25: 21,
|
|
407
|
-
26: d,
|
|
408
|
-
27: f,
|
|
409
|
-
28: e
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
1: [
|
|
413
|
-
2,
|
|
414
|
-
2
|
|
415
|
-
]
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
14: 25,
|
|
419
|
-
15: [
|
|
420
|
-
1,
|
|
421
|
-
26
|
|
422
|
-
],
|
|
423
|
-
31: S
|
|
424
|
-
},
|
|
425
|
-
n([
|
|
426
|
-
15,
|
|
427
|
-
31
|
|
428
|
-
], [
|
|
429
|
-
2,
|
|
430
|
-
22
|
|
431
|
-
]),
|
|
432
|
-
n(s, [
|
|
433
|
-
2,
|
|
434
|
-
8
|
|
435
|
-
], {
|
|
436
|
-
1: [
|
|
437
|
-
2,
|
|
438
|
-
1
|
|
439
|
-
]
|
|
440
|
-
}),
|
|
441
|
-
n(s, [
|
|
442
|
-
2,
|
|
443
|
-
4
|
|
444
|
-
]),
|
|
445
|
-
{
|
|
446
|
-
7: 22,
|
|
447
|
-
10: 28,
|
|
448
|
-
12: 4,
|
|
449
|
-
17: i,
|
|
450
|
-
18: o,
|
|
451
|
-
20: l,
|
|
452
|
-
22: p,
|
|
453
|
-
23: g,
|
|
454
|
-
24: 20,
|
|
455
|
-
25: 21,
|
|
456
|
-
26: d,
|
|
457
|
-
27: f,
|
|
458
|
-
28: e
|
|
459
|
-
},
|
|
460
|
-
n(s, [
|
|
461
|
-
2,
|
|
462
|
-
6
|
|
463
|
-
]),
|
|
464
|
-
n(s, [
|
|
465
|
-
2,
|
|
466
|
-
7
|
|
467
|
-
]),
|
|
468
|
-
n(s, [
|
|
469
|
-
2,
|
|
470
|
-
11
|
|
471
|
-
]),
|
|
472
|
-
{
|
|
473
|
-
19: [
|
|
474
|
-
1,
|
|
475
|
-
29
|
|
476
|
-
]
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
21: [
|
|
480
|
-
1,
|
|
481
|
-
30
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
|
-
n(s, [
|
|
485
|
-
2,
|
|
486
|
-
14
|
|
487
|
-
]),
|
|
488
|
-
n(s, [
|
|
489
|
-
2,
|
|
490
|
-
15
|
|
491
|
-
]),
|
|
492
|
-
n(s, [
|
|
493
|
-
2,
|
|
494
|
-
16
|
|
495
|
-
]),
|
|
496
|
-
n(s, [
|
|
497
|
-
2,
|
|
498
|
-
17
|
|
499
|
-
]),
|
|
500
|
-
n(s, [
|
|
501
|
-
2,
|
|
502
|
-
18
|
|
503
|
-
]),
|
|
504
|
-
n(s, [
|
|
505
|
-
2,
|
|
506
|
-
19
|
|
507
|
-
]),
|
|
508
|
-
n(s, [
|
|
509
|
-
2,
|
|
510
|
-
20
|
|
511
|
-
]),
|
|
512
|
-
{
|
|
513
|
-
11: [
|
|
514
|
-
1,
|
|
515
|
-
31
|
|
516
|
-
]
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
16: 32,
|
|
520
|
-
30: [
|
|
521
|
-
1,
|
|
522
|
-
33
|
|
523
|
-
]
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
11: [
|
|
527
|
-
2,
|
|
528
|
-
24
|
|
529
|
-
]
|
|
530
|
-
},
|
|
531
|
-
n(s, [
|
|
532
|
-
2,
|
|
533
|
-
5
|
|
534
|
-
]),
|
|
535
|
-
n(s, [
|
|
536
|
-
2,
|
|
537
|
-
12
|
|
538
|
-
]),
|
|
539
|
-
n(s, [
|
|
540
|
-
2,
|
|
541
|
-
13
|
|
542
|
-
]),
|
|
543
|
-
n(_, [
|
|
544
|
-
2,
|
|
545
|
-
9
|
|
546
|
-
]),
|
|
547
|
-
{
|
|
548
|
-
14: 34,
|
|
549
|
-
31: S
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
31: [
|
|
553
|
-
2,
|
|
554
|
-
23
|
|
555
|
-
]
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
11: [
|
|
559
|
-
1,
|
|
560
|
-
35
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
n(_, [
|
|
564
|
-
2,
|
|
565
|
-
10
|
|
566
|
-
])
|
|
567
|
-
],
|
|
568
|
-
defaultActions: {
|
|
569
|
-
5: [
|
|
570
|
-
2,
|
|
571
|
-
21
|
|
572
|
-
],
|
|
573
|
-
7: [
|
|
574
|
-
2,
|
|
575
|
-
2
|
|
576
|
-
],
|
|
577
|
-
27: [
|
|
578
|
-
2,
|
|
579
|
-
24
|
|
580
|
-
],
|
|
581
|
-
33: [
|
|
582
|
-
2,
|
|
583
|
-
23
|
|
584
|
-
]
|
|
585
|
-
},
|
|
586
|
-
parseError: function parseError(r, a) {
|
|
587
|
-
if (a.recoverable) this.trace(r);
|
|
588
|
-
else {
|
|
589
|
-
var h = new Error(r);
|
|
590
|
-
throw h.hash = a, h;
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
parse: function parse(r) {
|
|
594
|
-
var a = this, h = [
|
|
595
|
-
0
|
|
596
|
-
], u = [], y = [
|
|
597
|
-
null
|
|
598
|
-
], c = [], L = this.table, x = "", z = 0, O = 0, C = 2, w = 1, $ = c.slice.call(arguments, 1), m = Object.create(this.lexer), N = {
|
|
599
|
-
yy: {}
|
|
600
|
-
};
|
|
601
|
-
for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy, A) && (N.yy[A] = this.yy[A]);
|
|
602
|
-
m.setInput(r, N.yy), N.yy.lexer = m, N.yy.parser = this, _type_of(m.yylloc) > "u" && (m.yylloc = {});
|
|
603
|
-
var j = m.yylloc;
|
|
604
|
-
c.push(j);
|
|
605
|
-
var K = m.options && m.options.ranges;
|
|
606
|
-
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
607
|
-
function _t() {
|
|
608
|
-
var H;
|
|
609
|
-
return H = u.pop() || m.lex() || w, typeof H != "number" && (_instanceof(H, Array) && (u = H, H = u.pop()), H = a.symbols_[H] || H), H;
|
|
610
|
-
}
|
|
611
|
-
for(var E, V, M, Q, F = {}, G, P, et, q;;){
|
|
612
|
-
if (V = h[h.length - 1], this.defaultActions[V] ? M = this.defaultActions[V] : ((E === null || (typeof E === "undefined" ? "undefined" : _type_of(E)) > "u") && (E = _t()), M = L[V] && L[V][E]), (typeof M === "undefined" ? "undefined" : _type_of(M)) > "u" || !M.length || !M[0]) {
|
|
613
|
-
var X = "";
|
|
614
|
-
q = [];
|
|
615
|
-
for(G in L[V])this.terminals_[G] && G > C && q.push("'" + this.terminals_[G] + "'");
|
|
616
|
-
m.showPosition ? X = "Parse error on line " + (z + 1) + ":\n" + m.showPosition() + "\nExpecting " + q.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : X = "Parse error on line " + (z + 1) + ": Unexpected " + (E == w ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(X, {
|
|
617
|
-
text: m.match,
|
|
618
|
-
token: this.terminals_[E] || E,
|
|
619
|
-
line: m.yylineno,
|
|
620
|
-
loc: j,
|
|
621
|
-
expected: q
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
if (_instanceof(M[0], Array) && M.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + E);
|
|
625
|
-
switch(M[0]){
|
|
626
|
-
case 1:
|
|
627
|
-
h.push(E), y.push(m.yytext), c.push(m.yylloc), h.push(M[1]), E = null, O = m.yyleng, x = m.yytext, z = m.yylineno, j = m.yylloc;
|
|
628
|
-
break;
|
|
629
|
-
case 2:
|
|
630
|
-
if (P = this.productions_[M[1]][1], F.$ = y[y.length - P], F._$ = {
|
|
631
|
-
first_line: c[c.length - (P || 1)].first_line,
|
|
632
|
-
last_line: c[c.length - 1].last_line,
|
|
633
|
-
first_column: c[c.length - (P || 1)].first_column,
|
|
634
|
-
last_column: c[c.length - 1].last_column
|
|
635
|
-
}, K && (F._$.range = [
|
|
636
|
-
c[c.length - (P || 1)].range[0],
|
|
637
|
-
c[c.length - 1].range[1]
|
|
638
|
-
]), Q = this.performAction.apply(F, [
|
|
639
|
-
x,
|
|
640
|
-
O,
|
|
641
|
-
z,
|
|
642
|
-
N.yy,
|
|
643
|
-
M[1],
|
|
644
|
-
y,
|
|
645
|
-
c
|
|
646
|
-
].concat($)), (typeof Q === "undefined" ? "undefined" : _type_of(Q)) < "u") return Q;
|
|
647
|
-
P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), c = c.slice(0, -1 * P)), h.push(this.productions_[M[1]][0]), y.push(F.$), c.push(F._$), et = L[h[h.length - 2]][h[h.length - 1]], h.push(et);
|
|
648
|
-
break;
|
|
649
|
-
case 3:
|
|
650
|
-
return !0;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
return !0;
|
|
654
|
-
}
|
|
655
|
-
}, v = function() {
|
|
656
|
-
var k = {
|
|
657
|
-
EOF: 1,
|
|
658
|
-
parseError: function parseError(a, h) {
|
|
659
|
-
if (this.yy.parser) this.yy.parser.parseError(a, h);
|
|
660
|
-
else throw new Error(a);
|
|
661
|
-
},
|
|
662
|
-
// resets the lexer, sets new input
|
|
663
|
-
setInput: function setInput(r, a) {
|
|
664
|
-
return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
665
|
-
"INITIAL"
|
|
666
|
-
], this.yylloc = {
|
|
667
|
-
first_line: 1,
|
|
668
|
-
first_column: 0,
|
|
669
|
-
last_line: 1,
|
|
670
|
-
last_column: 0
|
|
671
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
672
|
-
0,
|
|
673
|
-
0
|
|
674
|
-
]), this.offset = 0, this;
|
|
675
|
-
},
|
|
676
|
-
// consumes and returns one char from the input
|
|
677
|
-
input: function input() {
|
|
678
|
-
var r = this._input[0];
|
|
679
|
-
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
680
|
-
var a = r.match(/(?:\r\n?|\n).*/g);
|
|
681
|
-
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
682
|
-
},
|
|
683
|
-
// unshifts one char (or a string) into the input
|
|
684
|
-
unput: function unput(r) {
|
|
685
|
-
var a = r.length, h = r.split(/(?:\r\n?|\n)/g);
|
|
686
|
-
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
687
|
-
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
688
|
-
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);
|
|
689
|
-
var y = this.yylloc.range;
|
|
690
|
-
return this.yylloc = {
|
|
691
|
-
first_line: this.yylloc.first_line,
|
|
692
|
-
last_line: this.yylineno + 1,
|
|
693
|
-
first_column: this.yylloc.first_column,
|
|
694
|
-
last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
|
|
695
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
696
|
-
y[0],
|
|
697
|
-
y[0] + this.yyleng - a
|
|
698
|
-
]), this.yyleng = this.yytext.length, this;
|
|
699
|
-
},
|
|
700
|
-
// When called from action, caches matched text and appends it on next action
|
|
701
|
-
more: function more() {
|
|
702
|
-
return this._more = !0, this;
|
|
703
|
-
},
|
|
704
|
-
// 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.
|
|
705
|
-
reject: function reject() {
|
|
706
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
707
|
-
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(), {
|
|
708
|
-
text: "",
|
|
709
|
-
token: null,
|
|
710
|
-
line: this.yylineno
|
|
711
|
-
});
|
|
712
|
-
return this;
|
|
713
|
-
},
|
|
714
|
-
// retain first n characters of the match
|
|
715
|
-
less: function less(r) {
|
|
716
|
-
this.unput(this.match.slice(r));
|
|
717
|
-
},
|
|
718
|
-
// displays already matched input, i.e. for error messages
|
|
719
|
-
pastInput: function pastInput() {
|
|
720
|
-
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
721
|
-
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
722
|
-
},
|
|
723
|
-
// displays upcoming input, i.e. for error messages
|
|
724
|
-
upcomingInput: function upcomingInput() {
|
|
725
|
-
var r = this.match;
|
|
726
|
-
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
727
|
-
},
|
|
728
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
729
|
-
showPosition: function showPosition() {
|
|
730
|
-
var r = this.pastInput(), a = new Array(r.length + 1).join("-");
|
|
731
|
-
return r + this.upcomingInput() + "\n" + a + "^";
|
|
732
|
-
},
|
|
733
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
734
|
-
test_match: function test_match(r, a) {
|
|
735
|
-
var h, u, y;
|
|
736
|
-
if (this.options.backtrack_lexer && (y = {
|
|
737
|
-
yylineno: this.yylineno,
|
|
738
|
-
yylloc: {
|
|
739
|
-
first_line: this.yylloc.first_line,
|
|
740
|
-
last_line: this.last_line,
|
|
741
|
-
first_column: this.yylloc.first_column,
|
|
742
|
-
last_column: this.yylloc.last_column
|
|
743
|
-
},
|
|
744
|
-
yytext: this.yytext,
|
|
745
|
-
match: this.match,
|
|
746
|
-
matches: this.matches,
|
|
747
|
-
matched: this.matched,
|
|
748
|
-
yyleng: this.yyleng,
|
|
749
|
-
offset: this.offset,
|
|
750
|
-
_more: this._more,
|
|
751
|
-
_input: this._input,
|
|
752
|
-
yy: this.yy,
|
|
753
|
-
conditionStack: this.conditionStack.slice(0),
|
|
754
|
-
done: this.done
|
|
755
|
-
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = r[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
756
|
-
first_line: this.yylloc.last_line,
|
|
757
|
-
last_line: this.yylineno + 1,
|
|
758
|
-
first_column: this.yylloc.last_column,
|
|
759
|
-
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
760
|
-
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
761
|
-
this.offset,
|
|
762
|
-
this.offset += this.yyleng
|
|
763
|
-
]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h) return h;
|
|
764
|
-
if (this._backtrack) {
|
|
765
|
-
for(var c in y)this[c] = y[c];
|
|
766
|
-
return !1;
|
|
767
|
-
}
|
|
768
|
-
return !1;
|
|
769
|
-
},
|
|
770
|
-
// return next match in input
|
|
771
|
-
next: function next() {
|
|
772
|
-
if (this.done) return this.EOF;
|
|
773
|
-
this._input || (this.done = !0);
|
|
774
|
-
var r, a, h, u;
|
|
775
|
-
this._more || (this.yytext = "", this.match = "");
|
|
776
|
-
for(var y = this._currentRules(), c = 0; c < y.length; c++)if (h = this._input.match(this.rules[y[c]]), h && (!a || h[0].length > a[0].length)) {
|
|
777
|
-
if (a = h, u = c, this.options.backtrack_lexer) {
|
|
778
|
-
if (r = this.test_match(h, y[c]), r !== !1) return r;
|
|
779
|
-
if (this._backtrack) {
|
|
780
|
-
a = !1;
|
|
781
|
-
continue;
|
|
782
|
-
} else return !1;
|
|
783
|
-
} else if (!this.options.flex) break;
|
|
784
|
-
}
|
|
785
|
-
return a ? (r = this.test_match(a, y[u]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
786
|
-
text: "",
|
|
787
|
-
token: null,
|
|
788
|
-
line: this.yylineno
|
|
789
|
-
});
|
|
790
|
-
},
|
|
791
|
-
// return next match that has a token
|
|
792
|
-
lex: function lex() {
|
|
793
|
-
var a = this.next();
|
|
794
|
-
return a || this.lex();
|
|
795
|
-
},
|
|
796
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
797
|
-
begin: function begin(a) {
|
|
798
|
-
this.conditionStack.push(a);
|
|
799
|
-
},
|
|
800
|
-
// pop the previously active lexer condition state off the condition stack
|
|
801
|
-
popState: function popState() {
|
|
802
|
-
var a = this.conditionStack.length - 1;
|
|
803
|
-
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
804
|
-
},
|
|
805
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
806
|
-
_currentRules: function _currentRules() {
|
|
807
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
808
|
-
},
|
|
809
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
810
|
-
topState: function topState(a) {
|
|
811
|
-
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
812
|
-
},
|
|
813
|
-
// alias for begin(condition)
|
|
814
|
-
pushState: function pushState(a) {
|
|
815
|
-
this.begin(a);
|
|
816
|
-
},
|
|
817
|
-
// return the number of states currently on the stack
|
|
818
|
-
stateStackSize: function stateStackSize() {
|
|
819
|
-
return this.conditionStack.length;
|
|
820
|
-
},
|
|
821
|
-
options: {
|
|
822
|
-
"case-insensitive": !0
|
|
823
|
-
},
|
|
824
|
-
performAction: function performAction(a, h, u, y) {
|
|
825
|
-
switch(u){
|
|
826
|
-
case 0:
|
|
827
|
-
return this.begin("open_directive"), 28;
|
|
828
|
-
case 1:
|
|
829
|
-
return this.begin("type_directive"), 29;
|
|
830
|
-
case 2:
|
|
831
|
-
return this.popState(), this.begin("arg_directive"), 15;
|
|
832
|
-
case 3:
|
|
833
|
-
return this.popState(), this.popState(), 31;
|
|
834
|
-
case 4:
|
|
835
|
-
return 30;
|
|
836
|
-
case 5:
|
|
837
|
-
break;
|
|
838
|
-
case 6:
|
|
839
|
-
break;
|
|
840
|
-
case 7:
|
|
841
|
-
return 11;
|
|
842
|
-
case 8:
|
|
843
|
-
break;
|
|
844
|
-
case 9:
|
|
845
|
-
break;
|
|
846
|
-
case 10:
|
|
847
|
-
return 4;
|
|
848
|
-
case 11:
|
|
849
|
-
return 17;
|
|
850
|
-
case 12:
|
|
851
|
-
return this.begin("acc_title"), 18;
|
|
852
|
-
case 13:
|
|
853
|
-
return this.popState(), "acc_title_value";
|
|
854
|
-
case 14:
|
|
855
|
-
return this.begin("acc_descr"), 20;
|
|
856
|
-
case 15:
|
|
857
|
-
return this.popState(), "acc_descr_value";
|
|
858
|
-
case 16:
|
|
859
|
-
this.begin("acc_descr_multiline");
|
|
860
|
-
break;
|
|
861
|
-
case 17:
|
|
862
|
-
this.popState();
|
|
863
|
-
break;
|
|
864
|
-
case 18:
|
|
865
|
-
return "acc_descr_multiline_value";
|
|
866
|
-
case 19:
|
|
867
|
-
return 23;
|
|
868
|
-
case 20:
|
|
869
|
-
return 27;
|
|
870
|
-
case 21:
|
|
871
|
-
return 26;
|
|
872
|
-
case 22:
|
|
873
|
-
return 6;
|
|
874
|
-
case 23:
|
|
875
|
-
return "INVALID";
|
|
876
|
-
}
|
|
877
|
-
},
|
|
878
|
-
rules: [
|
|
879
|
-
/^(?:%%\{)/i,
|
|
880
|
-
/^(?:((?:(?!\}%%)[^:.])*))/i,
|
|
881
|
-
/^(?::)/i,
|
|
882
|
-
/^(?:\}%%)/i,
|
|
883
|
-
/^(?:((?:(?!\}%%).|\n)*))/i,
|
|
884
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
885
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
886
|
-
/^(?:[\n]+)/i,
|
|
887
|
-
/^(?:\s+)/i,
|
|
888
|
-
/^(?:#[^\n]*)/i,
|
|
889
|
-
/^(?:timeline\b)/i,
|
|
890
|
-
/^(?:title\s[^#\n;]+)/i,
|
|
891
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
892
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
893
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
894
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
895
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
896
|
-
/^(?:[\}])/i,
|
|
897
|
-
/^(?:[^\}]*)/i,
|
|
898
|
-
/^(?:section\s[^#:\n;]+)/i,
|
|
899
|
-
/^(?::\s[^#:\n;]+)/i,
|
|
900
|
-
/^(?:[^#:\n;]+)/i,
|
|
901
|
-
/^(?:$)/i,
|
|
902
|
-
/^(?:.)/i
|
|
903
|
-
],
|
|
904
|
-
conditions: {
|
|
905
|
-
open_directive: {
|
|
906
|
-
rules: [
|
|
907
|
-
1
|
|
908
|
-
],
|
|
909
|
-
inclusive: !1
|
|
910
|
-
},
|
|
911
|
-
type_directive: {
|
|
912
|
-
rules: [
|
|
913
|
-
2,
|
|
914
|
-
3
|
|
915
|
-
],
|
|
916
|
-
inclusive: !1
|
|
917
|
-
},
|
|
918
|
-
arg_directive: {
|
|
919
|
-
rules: [
|
|
920
|
-
3,
|
|
921
|
-
4
|
|
922
|
-
],
|
|
923
|
-
inclusive: !1
|
|
924
|
-
},
|
|
925
|
-
acc_descr_multiline: {
|
|
926
|
-
rules: [
|
|
927
|
-
17,
|
|
928
|
-
18
|
|
929
|
-
],
|
|
930
|
-
inclusive: !1
|
|
931
|
-
},
|
|
932
|
-
acc_descr: {
|
|
933
|
-
rules: [
|
|
934
|
-
15
|
|
935
|
-
],
|
|
936
|
-
inclusive: !1
|
|
937
|
-
},
|
|
938
|
-
acc_title: {
|
|
939
|
-
rules: [
|
|
940
|
-
13
|
|
941
|
-
],
|
|
942
|
-
inclusive: !1
|
|
943
|
-
},
|
|
944
|
-
INITIAL: {
|
|
945
|
-
rules: [
|
|
946
|
-
0,
|
|
947
|
-
5,
|
|
948
|
-
6,
|
|
949
|
-
7,
|
|
950
|
-
8,
|
|
951
|
-
9,
|
|
952
|
-
10,
|
|
953
|
-
11,
|
|
954
|
-
12,
|
|
955
|
-
14,
|
|
956
|
-
16,
|
|
957
|
-
19,
|
|
958
|
-
20,
|
|
959
|
-
21,
|
|
960
|
-
22,
|
|
961
|
-
23
|
|
962
|
-
],
|
|
963
|
-
inclusive: !0
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
return k;
|
|
968
|
-
}();
|
|
969
|
-
b.lexer = v;
|
|
970
|
-
function I() {
|
|
971
|
-
this.yy = {};
|
|
972
|
-
}
|
|
973
|
-
return I.prototype = b, b.Parser = I, new I();
|
|
974
|
-
}();
|
|
975
|
-
Y.parser = Y;
|
|
976
|
-
var Nt = Y;
|
|
977
|
-
var W = "", at = 0;
|
|
978
|
-
var D = [], Z = [], B = [], ct = function() {
|
|
979
|
-
return index.Jg;
|
|
980
|
-
}, lt = function(n, t, e) {
|
|
981
|
-
index.$a(globalThis, n, t, e);
|
|
982
|
-
}, ot = function ot() {
|
|
983
|
-
D.length = 0, Z.length = 0, W = "", B.length = 0, index.Fa();
|
|
984
|
-
}, ht = function ht(n) {
|
|
985
|
-
W = n, D.push(n);
|
|
986
|
-
}, dt = function dt() {
|
|
987
|
-
return D;
|
|
988
|
-
}, ut = function ut() {
|
|
989
|
-
var _Z;
|
|
990
|
-
var n = it();
|
|
991
|
-
var t = 100;
|
|
992
|
-
var e = 0;
|
|
993
|
-
for(; !n && e < t;)n = it(), e++;
|
|
994
|
-
return (_Z = Z).push.apply(_Z, _to_consumable_array(B)), Z;
|
|
995
|
-
}, pt = function pt(n, t, e) {
|
|
996
|
-
var s = {
|
|
997
|
-
id: at++,
|
|
998
|
-
section: W,
|
|
999
|
-
type: W,
|
|
1000
|
-
task: n,
|
|
1001
|
-
score: t || 0,
|
|
1002
|
-
//if event is defined, then add it the events array
|
|
1003
|
-
events: e ? [
|
|
1004
|
-
e
|
|
1005
|
-
] : []
|
|
1006
|
-
};
|
|
1007
|
-
B.push(s);
|
|
1008
|
-
}, yt = function yt(n) {
|
|
1009
|
-
B.find(function(e) {
|
|
1010
|
-
return e.id === at - 1;
|
|
1011
|
-
}).events.push(n);
|
|
1012
|
-
}, gt = function gt(n) {
|
|
1013
|
-
var t = {
|
|
1014
|
-
section: W,
|
|
1015
|
-
type: W,
|
|
1016
|
-
description: n,
|
|
1017
|
-
task: n,
|
|
1018
|
-
classes: []
|
|
1019
|
-
};
|
|
1020
|
-
Z.push(t);
|
|
1021
|
-
}, it = function it() {
|
|
1022
|
-
var n = function n(e) {
|
|
1023
|
-
return B[e].processed;
|
|
1024
|
-
};
|
|
1025
|
-
var t = !0;
|
|
1026
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1027
|
-
try {
|
|
1028
|
-
for(var _iterator = B.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1029
|
-
var _step_value = _sliced_to_array(_step.value, 2), e = _step_value[0], s = _step_value[1];
|
|
1030
|
-
n(e), t = t && s.processed;
|
|
1031
|
-
}
|
|
1032
|
-
} catch (err) {
|
|
1033
|
-
_didIteratorError = true;
|
|
1034
|
-
_iteratorError = err;
|
|
1035
|
-
} finally{
|
|
1036
|
-
try {
|
|
1037
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1038
|
-
_iterator.return();
|
|
1039
|
-
}
|
|
1040
|
-
} finally{
|
|
1041
|
-
if (_didIteratorError) {
|
|
1042
|
-
throw _iteratorError;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
return t;
|
|
1047
|
-
}, Mt = {
|
|
1048
|
-
clear: ot,
|
|
1049
|
-
getCommonDb: ct,
|
|
1050
|
-
addSection: ht,
|
|
1051
|
-
getSections: dt,
|
|
1052
|
-
getTasks: ut,
|
|
1053
|
-
addTask: pt,
|
|
1054
|
-
addTaskOrg: gt,
|
|
1055
|
-
addEvent: yt,
|
|
1056
|
-
parseDirective: lt
|
|
1057
|
-
}, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1058
|
-
__proto__: null,
|
|
1059
|
-
addEvent: yt,
|
|
1060
|
-
addSection: ht,
|
|
1061
|
-
addTask: pt,
|
|
1062
|
-
addTaskOrg: gt,
|
|
1063
|
-
clear: ot,
|
|
1064
|
-
default: Mt,
|
|
1065
|
-
getCommonDb: ct,
|
|
1066
|
-
getSections: dt,
|
|
1067
|
-
getTasks: ut,
|
|
1068
|
-
parseDirective: lt
|
|
1069
|
-
}, Symbol.toStringTag, {
|
|
1070
|
-
value: "Module"
|
|
1071
|
-
})), $t = 12, J = function J(n, t) {
|
|
1072
|
-
var e = n.append("rect");
|
|
1073
|
-
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;
|
|
1074
|
-
}, At = function At(n, t) {
|
|
1075
|
-
var s = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = n.append("g");
|
|
1076
|
-
i.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"), i.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");
|
|
1077
|
-
function o(g) {
|
|
1078
|
-
var d = arcDa8fd8d8.hn().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
1079
|
-
g.append("path").attr("class", "mouth").attr("d", d).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
1080
|
-
}
|
|
1081
|
-
function l(g) {
|
|
1082
|
-
var d = arcDa8fd8d8.hn().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
1083
|
-
g.append("path").attr("class", "mouth").attr("d", d).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
1084
|
-
}
|
|
1085
|
-
function p(g) {
|
|
1086
|
-
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");
|
|
1087
|
-
}
|
|
1088
|
-
return t.score > 3 ? o(i) : t.score < 3 ? l(i) : p(i), s;
|
|
1089
|
-
}, Pt = function Pt(n, t) {
|
|
1090
|
-
var e = n.append("circle");
|
|
1091
|
-
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;
|
|
1092
|
-
}, ft = function ft(n, t) {
|
|
1093
|
-
var e = t.text.replace(/<br\s*\/?>/gi, " "), s = n.append("text");
|
|
1094
|
-
s.attr("x", t.x), s.attr("y", t.y), s.attr("class", "legend"), s.style("text-anchor", t.anchor), t.class !== void 0 && s.attr("class", t.class);
|
|
1095
|
-
var i = s.append("tspan");
|
|
1096
|
-
return i.attr("x", t.x + t.textMargin * 2), i.text(e), s;
|
|
1097
|
-
}, Ht = function Ht(n, t) {
|
|
1098
|
-
function e(i, o, l, p, g) {
|
|
1099
|
-
return i + "," + o + " " + (i + l) + "," + o + " " + (i + l) + "," + (o + p - g) + " " + (i + l - g * 1.2) + "," + (o + p) + " " + i + "," + (o + p);
|
|
1100
|
-
}
|
|
1101
|
-
var s = n.append("polygon");
|
|
1102
|
-
s.attr("points", e(t.x, t.y, 50, 20, 7)), s.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
|
|
1103
|
-
}, Ct = function Ct(n, t, e) {
|
|
1104
|
-
var s = n.append("g"), i = tt();
|
|
1105
|
-
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, J(s, i), mt(e)(t.text, s, i.x, i.y, i.width, i.height, {
|
|
1106
|
-
class: "journey-section section-type-" + t.num
|
|
1107
|
-
}, e, t.colour);
|
|
1108
|
-
};
|
|
1109
|
-
var st = -1;
|
|
1110
|
-
var zt = function zt(n, t, e) {
|
|
1111
|
-
var s = t.x + e.width / 2, i = n.append("g");
|
|
1112
|
-
st++;
|
|
1113
|
-
var o = 300 + 5 * 30;
|
|
1114
|
-
i.append("line").attr("id", "task" + st).attr("x1", s).attr("y1", t.y).attr("x2", s).attr("y2", o).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), At(i, {
|
|
1115
|
-
cx: s,
|
|
1116
|
-
cy: 300 + (5 - t.score) * 30,
|
|
1117
|
-
score: t.score
|
|
1118
|
-
});
|
|
1119
|
-
var l = tt();
|
|
1120
|
-
l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, J(i, l), t.x + 14, mt(e)(t.task, i, l.x, l.y, l.width, l.height, {
|
|
1121
|
-
class: "task"
|
|
1122
|
-
}, e, t.colour);
|
|
1123
|
-
}, Vt = function Vt(n, t) {
|
|
1124
|
-
J(n, {
|
|
1125
|
-
x: t.startx,
|
|
1126
|
-
y: t.starty,
|
|
1127
|
-
width: t.stopx - t.startx,
|
|
1128
|
-
height: t.stopy - t.starty,
|
|
1129
|
-
fill: t.fill,
|
|
1130
|
-
class: "rect"
|
|
1131
|
-
}).lower();
|
|
1132
|
-
}, Rt = function Rt() {
|
|
1133
|
-
return {
|
|
1134
|
-
x: 0,
|
|
1135
|
-
y: 0,
|
|
1136
|
-
fill: void 0,
|
|
1137
|
-
"text-anchor": "start",
|
|
1138
|
-
width: 100,
|
|
1139
|
-
height: 100,
|
|
1140
|
-
textMargin: 0,
|
|
1141
|
-
rx: 0,
|
|
1142
|
-
ry: 0
|
|
1143
|
-
};
|
|
1144
|
-
}, tt = function tt() {
|
|
1145
|
-
return {
|
|
1146
|
-
x: 0,
|
|
1147
|
-
y: 0,
|
|
1148
|
-
width: 100,
|
|
1149
|
-
anchor: "start",
|
|
1150
|
-
height: 100,
|
|
1151
|
-
rx: 0,
|
|
1152
|
-
ry: 0
|
|
1153
|
-
};
|
|
1154
|
-
}, mt = function() {
|
|
1155
|
-
function n(i, o, l, p, g, d, f, S) {
|
|
1156
|
-
var _ = o.append("text").attr("x", l + g / 2).attr("y", p + d / 2 + 5).style("font-color", S).style("text-anchor", "middle").text(i);
|
|
1157
|
-
s(_, f);
|
|
1158
|
-
}
|
|
1159
|
-
function t(i, o, l, p, g, d, f, S, _) {
|
|
1160
|
-
var b = S.taskFontSize, v = S.taskFontFamily, I = i.split(/<br\s*\/?>/gi);
|
|
1161
|
-
for(var k = 0; k < I.length; k++){
|
|
1162
|
-
var r = k * b - b * (I.length - 1) / 2, a = o.append("text").attr("x", l + g / 2).attr("y", p).attr("fill", _).style("text-anchor", "middle").style("font-size", b).style("font-family", v);
|
|
1163
|
-
a.append("tspan").attr("x", l + g / 2).attr("dy", r).text(I[k]), a.attr("y", p + d / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(a, f);
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
function e(i, o, l, p, g, d, f, S) {
|
|
1167
|
-
var _ = o.append("switch"), v = _.append("foreignObject").attr("x", l).attr("y", p).attr("width", g).attr("height", d).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1168
|
-
v.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, _, l, p, g, d, f, S), s(v, f);
|
|
1169
|
-
}
|
|
1170
|
-
function s(i, o) {
|
|
1171
|
-
for(var l in o)l in o && i.attr(l, o[l]);
|
|
1172
|
-
}
|
|
1173
|
-
return function(i) {
|
|
1174
|
-
return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
|
|
1175
|
-
};
|
|
1176
|
-
}(), Ft = function Ft(n) {
|
|
1177
|
-
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");
|
|
1178
|
-
};
|
|
1179
|
-
function xt(n, t) {
|
|
1180
|
-
n.each(function() {
|
|
1181
|
-
var e = index.At(this), s = e.text().split(/(\s+|<br>)/).reverse(), i, o = [], l = 1.1, p = e.attr("y"), g = parseFloat(e.attr("dy")), d = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", g + "em");
|
|
1182
|
-
for(var f = 0; f < s.length; f++)i = s[s.length - 1 - f], o.push(i), d.text(o.join(" ").trim()), (d.node().getComputedTextLength() > t || i === "<br>") && (o.pop(), d.text(o.join(" ").trim()), i === "<br>" ? o = [
|
|
1183
|
-
""
|
|
1184
|
-
] : o = [
|
|
1185
|
-
i
|
|
1186
|
-
], d = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(i));
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
var Wt = function Wt(n, t, e, s) {
|
|
1190
|
-
var i = e % $t - 1, o = n.append("g");
|
|
1191
|
-
t.section = i, o.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i));
|
|
1192
|
-
var l = o.append("g"), p = o.append("g"), d = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(xt, t.width).node().getBBox(), f = s.fontSize && s.fontSize.replace ? s.fontSize.replace("px", "") : s.fontSize;
|
|
1193
|
-
return t.height = d.height + f * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Ot(l, t, i), t;
|
|
1194
|
-
}, Bt = function Bt(n, t, e) {
|
|
1195
|
-
var s = n.append("g"), o = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(xt, t.width).node().getBBox(), l = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
1196
|
-
return s.remove(), o.height + l * 1.1 * 0.5 + t.padding;
|
|
1197
|
-
}, Ot = function Ot(n, t, e) {
|
|
1198
|
-
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);
|
|
1199
|
-
}, R = {
|
|
1200
|
-
drawRect: J,
|
|
1201
|
-
drawCircle: Pt,
|
|
1202
|
-
drawSection: Ct,
|
|
1203
|
-
drawText: ft,
|
|
1204
|
-
drawLabel: Ht,
|
|
1205
|
-
drawTask: zt,
|
|
1206
|
-
drawBackgroundRect: Vt,
|
|
1207
|
-
getTextObj: Rt,
|
|
1208
|
-
getNoteRect: tt,
|
|
1209
|
-
initGraphics: Ft,
|
|
1210
|
-
drawNode: Wt,
|
|
1211
|
-
getVirtualNodeHeight: Bt
|
|
1212
|
-
}, jt = function jt(n, t, e, s) {
|
|
1213
|
-
var z, O;
|
|
1214
|
-
var _i_leftMargin;
|
|
1215
|
-
var i = index.Ut(), o = (_i_leftMargin = i.leftMargin) !== null && _i_leftMargin !== void 0 ? _i_leftMargin : 50;
|
|
1216
|
-
index.S.debug("timeline", s.db);
|
|
1217
|
-
var l = i.securityLevel;
|
|
1218
|
-
var p;
|
|
1219
|
-
l === "sandbox" && (p = index.At("#i" + t));
|
|
1220
|
-
var d = (l === "sandbox" ? index.At(p.nodes()[0].contentDocument.body) : index.At("body")).select("#" + t);
|
|
1221
|
-
d.append("g");
|
|
1222
|
-
var f = s.db.getTasks(), S = s.db.getCommonDb().getDiagramTitle();
|
|
1223
|
-
index.S.debug("task", f), R.initGraphics(d);
|
|
1224
|
-
var _ = s.db.getSections();
|
|
1225
|
-
index.S.debug("sections", _);
|
|
1226
|
-
var b = 0, v = 0, I = 0, k = 0, r = 50 + o, a = 50;
|
|
1227
|
-
k = 50;
|
|
1228
|
-
var h = 0, u = !0;
|
|
1229
|
-
_.forEach(function(C) {
|
|
1230
|
-
var w = {
|
|
1231
|
-
number: h,
|
|
1232
|
-
descr: C,
|
|
1233
|
-
section: h,
|
|
1234
|
-
width: 150,
|
|
1235
|
-
padding: 20,
|
|
1236
|
-
maxHeight: b
|
|
1237
|
-
}, $ = R.getVirtualNodeHeight(d, w, i);
|
|
1238
|
-
index.S.debug("sectionHeight before draw", $), b = Math.max(b, $ + 20);
|
|
1239
|
-
});
|
|
1240
|
-
var y = 0, c = 0;
|
|
1241
|
-
index.S.debug("tasks.length", f.length);
|
|
1242
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1243
|
-
try {
|
|
1244
|
-
for(var _iterator = f.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1245
|
-
var _step_value = _sliced_to_array(_step.value, 2), C = _step_value[0], w = _step_value[1];
|
|
1246
|
-
var $ = {
|
|
1247
|
-
number: C,
|
|
1248
|
-
descr: w,
|
|
1249
|
-
section: w.section,
|
|
1250
|
-
width: 150,
|
|
1251
|
-
padding: 20,
|
|
1252
|
-
maxHeight: v
|
|
1253
|
-
}, m = R.getVirtualNodeHeight(d, $, i);
|
|
1254
|
-
index.S.debug("taskHeight before draw", m), v = Math.max(v, m + 20), y = Math.max(y, w.events.length);
|
|
1255
|
-
var N = 0;
|
|
1256
|
-
for(var A = 0; A < w.events.length; A++){
|
|
1257
|
-
var K = {
|
|
1258
|
-
descr: w.events[A],
|
|
1259
|
-
section: w.section,
|
|
1260
|
-
number: w.section,
|
|
1261
|
-
width: 150,
|
|
1262
|
-
padding: 20,
|
|
1263
|
-
maxHeight: 50
|
|
1264
|
-
};
|
|
1265
|
-
N += R.getVirtualNodeHeight(d, K, i);
|
|
1266
|
-
}
|
|
1267
|
-
c = Math.max(c, N);
|
|
1268
|
-
}
|
|
1269
|
-
} catch (err) {
|
|
1270
|
-
_didIteratorError = true;
|
|
1271
|
-
_iteratorError = err;
|
|
1272
|
-
} finally{
|
|
1273
|
-
try {
|
|
1274
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1275
|
-
_iterator.return();
|
|
1276
|
-
}
|
|
1277
|
-
} finally{
|
|
1278
|
-
if (_didIteratorError) {
|
|
1279
|
-
throw _iteratorError;
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
index.S.debug("maxSectionHeight before draw", b), index.S.debug("maxTaskHeight before draw", v), _ && _.length > 0 ? _.forEach(function(C) {
|
|
1284
|
-
var w = f.filter(function(A) {
|
|
1285
|
-
return A.section === C;
|
|
1286
|
-
}), $ = {
|
|
1287
|
-
number: h,
|
|
1288
|
-
descr: C,
|
|
1289
|
-
section: h,
|
|
1290
|
-
width: 200 * Math.max(w.length, 1) - 50,
|
|
1291
|
-
padding: 20,
|
|
1292
|
-
maxHeight: b
|
|
1293
|
-
};
|
|
1294
|
-
index.S.debug("sectionNode", $);
|
|
1295
|
-
var m = d.append("g"), N = R.drawNode(m, $, h, i);
|
|
1296
|
-
index.S.debug("sectionNode output", N), m.attr("transform", "translate(".concat(r, ", ").concat(k, ")")), a += b + 50, w.length > 0 && rt(d, w, h, r, a, v, i, y, c, b, !1), r += 200 * Math.max(w.length, 1), a = k, h++;
|
|
1297
|
-
}) : (u = !1, rt(d, f, h, r, a, v, i, y, c, b, !0));
|
|
1298
|
-
var L = d.node().getBBox();
|
|
1299
|
-
var _ref, _ref1;
|
|
1300
|
-
index.S.debug("bounds", L), S && d.append("text").text(S).attr("x", L.width / 2 - o).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), I = u ? b + v + 150 : v + 100, d.append("g").attr("class", "lineWrapper").append("line").attr("x1", o).attr("y1", I).attr("x2", L.width + 3 * o).attr("y2", I).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), index.Gg(void 0, d, (_ref = (z = i.timeline) == null ? void 0 : z.padding) !== null && _ref !== void 0 ? _ref : 50, (_ref1 = (O = i.timeline) == null ? void 0 : O.useMaxWidth) !== null && _ref1 !== void 0 ? _ref1 : !1);
|
|
1301
|
-
}, rt = function rt(n, t, e, s, i, o, l, p, g, d, f) {
|
|
1302
|
-
var S;
|
|
1303
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1304
|
-
try {
|
|
1305
|
-
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1306
|
-
var _ = _step.value;
|
|
1307
|
-
var b = {
|
|
1308
|
-
descr: _.task,
|
|
1309
|
-
section: e,
|
|
1310
|
-
number: e,
|
|
1311
|
-
width: 150,
|
|
1312
|
-
padding: 20,
|
|
1313
|
-
maxHeight: o
|
|
1314
|
-
};
|
|
1315
|
-
index.S.debug("taskNode", b);
|
|
1316
|
-
var v = n.append("g").attr("class", "taskWrapper"), k = R.drawNode(v, b, e, l).height;
|
|
1317
|
-
if (index.S.debug("taskHeight after draw", k), v.attr("transform", "translate(".concat(s, ", ").concat(i, ")")), o = Math.max(o, k), _.events) {
|
|
1318
|
-
var r = n.append("g").attr("class", "lineWrapper");
|
|
1319
|
-
var a = o;
|
|
1320
|
-
i += 100, a = a + Gt(n, _.events, e, s, i, l), i -= 100, r.append("line").attr("x1", s + 190 / 2).attr("y1", i + o).attr("x2", s + 190 / 2).attr("y2", i + o + (f ? o : d) + g + 120).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
1321
|
-
}
|
|
1322
|
-
s = s + 200, f && !((S = l.timeline) != null && S.disableMulticolor) && e++;
|
|
1323
|
-
}
|
|
1324
|
-
} catch (err) {
|
|
1325
|
-
_didIteratorError = true;
|
|
1326
|
-
_iteratorError = err;
|
|
1327
|
-
} finally{
|
|
1328
|
-
try {
|
|
1329
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1330
|
-
_iterator.return();
|
|
1331
|
-
}
|
|
1332
|
-
} finally{
|
|
1333
|
-
if (_didIteratorError) {
|
|
1334
|
-
throw _iteratorError;
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
i = i - 10;
|
|
1339
|
-
}, Gt = function Gt(n, t, e, s, i, o) {
|
|
1340
|
-
var l = 0;
|
|
1341
|
-
var p = i;
|
|
1342
|
-
i = i + 100;
|
|
1343
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1344
|
-
try {
|
|
1345
|
-
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1346
|
-
var g = _step.value;
|
|
1347
|
-
var d = {
|
|
1348
|
-
descr: g,
|
|
1349
|
-
section: e,
|
|
1350
|
-
number: e,
|
|
1351
|
-
width: 150,
|
|
1352
|
-
padding: 20,
|
|
1353
|
-
maxHeight: 50
|
|
1354
|
-
};
|
|
1355
|
-
index.S.debug("eventNode", d);
|
|
1356
|
-
var f = n.append("g").attr("class", "eventWrapper"), _ = R.drawNode(f, d, e, o).height;
|
|
1357
|
-
l = l + _, f.attr("transform", "translate(".concat(s, ", ").concat(i, ")")), i = i + 10 + _;
|
|
1358
|
-
}
|
|
1359
|
-
} catch (err) {
|
|
1360
|
-
_didIteratorError = true;
|
|
1361
|
-
_iteratorError = err;
|
|
1362
|
-
} finally{
|
|
1363
|
-
try {
|
|
1364
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1365
|
-
_iterator.return();
|
|
1366
|
-
}
|
|
1367
|
-
} finally{
|
|
1368
|
-
if (_didIteratorError) {
|
|
1369
|
-
throw _iteratorError;
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
return i = p, l;
|
|
1374
|
-
}, qt = {
|
|
1375
|
-
setConf: function() {},
|
|
1376
|
-
draw: jt
|
|
1377
|
-
}, Ut = function(n) {
|
|
1378
|
-
var t = "";
|
|
1379
|
-
for(var e = 0; e < n.THEME_COLOR_LIMIT; e++)n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], index.si(n["lineColor" + e]) ? n["lineColor" + e] = index.F(n["lineColor" + e], 20) : n["lineColor" + e] = index.A(n["lineColor" + e], 20);
|
|
1380
|
-
for(var e1 = 0; e1 < n.THEME_COLOR_LIMIT; e1++){
|
|
1381
|
-
var s = "" + (17 - 3 * e1);
|
|
1382
|
-
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(s, ";\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 ");
|
|
1383
|
-
}
|
|
1384
|
-
return t;
|
|
1385
|
-
}, Zt = function(n) {
|
|
1386
|
-
return "\n .edge {\n stroke-width: 3;\n }\n ".concat(Ut(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");
|
|
1387
|
-
}, Jt = Zt, Yt = {
|
|
1388
|
-
db: Lt,
|
|
1389
|
-
renderer: qt,
|
|
1390
|
-
parser: Nt,
|
|
1391
|
-
styles: Jt
|
|
1392
|
-
};
|
|
1393
|
-
|
|
1394
|
-
exports.diagram = Yt;
|