@readme/markdown 9.3.0 → 9.3.1
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/10.node.js +20064 -19229
- package/dist/10.node.js.map +1 -1
- package/dist/122.node.js +23 -0
- package/dist/122.node.js.map +1 -0
- package/dist/{17.node.js → 135.node.js} +109 -110
- package/dist/135.node.js.map +1 -0
- package/dist/136.node.js +23 -0
- package/dist/136.node.js.map +1 -0
- package/dist/{52.node.js → 188.node.js} +211 -196
- package/dist/188.node.js.map +1 -0
- package/dist/214.node.js +1280 -0
- package/dist/214.node.js.map +1 -0
- package/dist/23.node.js +2563 -0
- package/dist/23.node.js.map +1 -0
- package/dist/{867.node.js → 311.node.js} +95 -95
- package/dist/{867.node.js.map → 311.node.js.map} +1 -1
- package/dist/{940.node.js → 339.node.js} +3 -75
- package/dist/339.node.js.map +1 -0
- package/dist/354.node.js +23 -0
- package/dist/354.node.js.map +1 -0
- package/dist/359.node.js +2001 -0
- package/dist/359.node.js.map +1 -0
- package/dist/364.node.js +4435 -0
- package/dist/364.node.js.map +1 -0
- package/dist/{429.node.js → 371.node.js} +196 -139
- package/dist/371.node.js.map +1 -0
- package/dist/{687.node.js → 38.node.js} +761 -761
- package/dist/38.node.js.map +1 -0
- package/dist/391.node.js +522 -0
- package/dist/391.node.js.map +1 -0
- package/dist/462.node.js +23 -0
- package/dist/462.node.js.map +1 -0
- package/dist/48.node.js +57 -0
- package/dist/48.node.js.map +1 -0
- package/dist/486.node.js +16267 -14851
- package/dist/486.node.js.map +1 -1
- package/dist/537.node.js +59 -0
- package/dist/537.node.js.map +1 -0
- package/dist/550.node.js +201 -1408
- package/dist/550.node.js.map +1 -1
- package/dist/{403.node.js → 572.node.js} +118 -118
- package/dist/572.node.js.map +1 -0
- package/dist/580.node.js +1324 -0
- package/dist/580.node.js.map +1 -0
- package/dist/{952.node.js → 649.node.js} +39 -39
- package/dist/{952.node.js.map → 649.node.js.map} +1 -1
- package/dist/740.node.js +23 -0
- package/dist/740.node.js.map +1 -0
- package/dist/741.node.js +23 -0
- package/dist/741.node.js.map +1 -0
- package/dist/779.node.js +57 -0
- package/dist/779.node.js.map +1 -0
- package/dist/805.node.js +1355 -0
- package/dist/805.node.js.map +1 -0
- package/dist/{246.node.js → 855.node.js} +671 -495
- package/dist/855.node.js.map +1 -0
- package/dist/{11.node.js → 870.node.js} +70 -63
- package/dist/870.node.js.map +1 -0
- package/dist/874.node.js +57 -0
- package/dist/874.node.js.map +1 -0
- package/dist/881.node.js +1344 -720
- package/dist/881.node.js.map +1 -1
- package/dist/{906.node.js → 890.node.js} +147 -147
- package/dist/{906.node.js.map → 890.node.js.map} +1 -1
- package/dist/898.node.js +361 -0
- package/dist/898.node.js.map +1 -0
- package/dist/{551.node.js → 912.node.js} +133 -133
- package/dist/{551.node.js.map → 912.node.js.map} +1 -1
- package/dist/{745.node.js → 915.node.js} +86 -85
- package/dist/915.node.js.map +1 -0
- package/dist/982.node.js +1132 -0
- package/dist/982.node.js.map +1 -0
- package/dist/995.node.js +189 -159
- package/dist/995.node.js.map +1 -1
- package/dist/lib/plain.d.ts +1 -1
- package/dist/main.js +1881 -331
- package/dist/main.node.js +1872 -332
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -2
- package/dist/11.node.js.map +0 -1
- package/dist/120.node.js +0 -23
- package/dist/120.node.js.map +0 -1
- package/dist/134.node.js +0 -23
- package/dist/134.node.js.map +0 -1
- package/dist/150.node.js +0 -1892
- package/dist/150.node.js.map +0 -1
- package/dist/17.node.js.map +0 -1
- package/dist/246.node.js.map +0 -1
- package/dist/351.node.js +0 -2404
- package/dist/351.node.js.map +0 -1
- package/dist/366.node.js +0 -1185
- package/dist/366.node.js.map +0 -1
- package/dist/403.node.js.map +0 -1
- package/dist/429.node.js.map +0 -1
- package/dist/485.node.js +0 -518
- package/dist/485.node.js.map +0 -1
- package/dist/488.node.js +0 -59
- package/dist/488.node.js.map +0 -1
- package/dist/510.node.js +0 -250
- package/dist/510.node.js.map +0 -1
- package/dist/52.node.js.map +0 -1
- package/dist/617.node.js +0 -23
- package/dist/617.node.js.map +0 -1
- package/dist/687.node.js.map +0 -1
- package/dist/745.node.js.map +0 -1
- package/dist/775.node.js +0 -1904
- package/dist/775.node.js.map +0 -1
- package/dist/788.node.js +0 -1025
- package/dist/788.node.js.map +0 -1
- package/dist/81.node.js +0 -386
- package/dist/81.node.js.map +0 -1
- package/dist/849.node.js +0 -2590
- package/dist/849.node.js.map +0 -1
- package/dist/863.node.js +0 -23
- package/dist/863.node.js.map +0 -1
- package/dist/885.node.js +0 -52
- package/dist/885.node.js.map +0 -1
- package/dist/896.node.js +0 -1617
- package/dist/896.node.js.map +0 -1
- package/dist/91.node.js +0 -23
- package/dist/91.node.js.map +0 -1
- package/dist/940.node.js.map +0 -1
package/dist/849.node.js
DELETED
|
@@ -1,2590 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.id = 849;
|
|
3
|
-
exports.ids = [849];
|
|
4
|
-
exports.modules = {
|
|
5
|
-
|
|
6
|
-
/***/ 8448:
|
|
7
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// EXPORTS
|
|
11
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
T: () => (/* binding */ Graph)
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/has.js + 1 modules
|
|
16
|
-
var has = __webpack_require__(796);
|
|
17
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/constant.js
|
|
18
|
-
var constant = __webpack_require__(3659);
|
|
19
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/isFunction.js
|
|
20
|
-
var isFunction = __webpack_require__(8807);
|
|
21
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/keys.js
|
|
22
|
-
var keys = __webpack_require__(7947);
|
|
23
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/filter.js
|
|
24
|
-
var filter = __webpack_require__(7133);
|
|
25
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/isEmpty.js
|
|
26
|
-
var isEmpty = __webpack_require__(4650);
|
|
27
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/forEach.js
|
|
28
|
-
var forEach = __webpack_require__(9769);
|
|
29
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/isUndefined.js
|
|
30
|
-
var isUndefined = __webpack_require__(9523);
|
|
31
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseFlatten.js + 1 modules
|
|
32
|
-
var _baseFlatten = __webpack_require__(3684);
|
|
33
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseRest.js
|
|
34
|
-
var _baseRest = __webpack_require__(5881);
|
|
35
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUniq.js + 1 modules
|
|
36
|
-
var _baseUniq = __webpack_require__(8170);
|
|
37
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLikeObject.js
|
|
38
|
-
var isArrayLikeObject = __webpack_require__(654);
|
|
39
|
-
;// ./node_modules/lodash-es/union.js
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Creates an array of unique values, in order, from all given arrays using
|
|
47
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
48
|
-
* for equality comparisons.
|
|
49
|
-
*
|
|
50
|
-
* @static
|
|
51
|
-
* @memberOf _
|
|
52
|
-
* @since 0.1.0
|
|
53
|
-
* @category Array
|
|
54
|
-
* @param {...Array} [arrays] The arrays to inspect.
|
|
55
|
-
* @returns {Array} Returns the new array of combined values.
|
|
56
|
-
* @example
|
|
57
|
-
*
|
|
58
|
-
* _.union([2], [1, 2]);
|
|
59
|
-
* // => [2, 1]
|
|
60
|
-
*/
|
|
61
|
-
var union = (0,_baseRest/* default */.A)(function(arrays) {
|
|
62
|
-
return (0,_baseUniq/* default */.A)((0,_baseFlatten/* default */.A)(arrays, 1, isArrayLikeObject/* default */.A, true));
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
/* harmony default export */ const lodash_es_union = (union);
|
|
66
|
-
|
|
67
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/values.js + 1 modules
|
|
68
|
-
var values = __webpack_require__(7888);
|
|
69
|
-
// EXTERNAL MODULE: ./node_modules/lodash-es/reduce.js + 2 modules
|
|
70
|
-
var reduce = __webpack_require__(9027);
|
|
71
|
-
;// ./node_modules/dagre-d3-es/src/graphlib/graph.js
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var DEFAULT_EDGE_NAME = '\x00';
|
|
75
|
-
var GRAPH_NODE = '\x00';
|
|
76
|
-
var EDGE_KEY_DELIM = '\x01';
|
|
77
|
-
|
|
78
|
-
// Implementation notes:
|
|
79
|
-
//
|
|
80
|
-
// * Node id query functions should return string ids for the nodes
|
|
81
|
-
// * Edge id query functions should return an "edgeObj", edge object, that is
|
|
82
|
-
// composed of enough information to uniquely identify an edge: {v, w, name}.
|
|
83
|
-
// * Internally we use an "edgeId", a stringified form of the edgeObj, to
|
|
84
|
-
// reference edges. This is because we need a performant way to look these
|
|
85
|
-
// edges up and, object properties, which have string keys, are the closest
|
|
86
|
-
// we're going to get to a performant hashtable in JavaScript.
|
|
87
|
-
|
|
88
|
-
// Implementation notes:
|
|
89
|
-
//
|
|
90
|
-
// * Node id query functions should return string ids for the nodes
|
|
91
|
-
// * Edge id query functions should return an "edgeObj", edge object, that is
|
|
92
|
-
// composed of enough information to uniquely identify an edge: {v, w, name}.
|
|
93
|
-
// * Internally we use an "edgeId", a stringified form of the edgeObj, to
|
|
94
|
-
// reference edges. This is because we need a performant way to look these
|
|
95
|
-
// edges up and, object properties, which have string keys, are the closest
|
|
96
|
-
// we're going to get to a performant hashtable in JavaScript.
|
|
97
|
-
class Graph {
|
|
98
|
-
constructor(opts = {}) {
|
|
99
|
-
this._isDirected = has/* default */.A(opts, 'directed') ? opts.directed : true;
|
|
100
|
-
this._isMultigraph = has/* default */.A(opts, 'multigraph') ? opts.multigraph : false;
|
|
101
|
-
this._isCompound = has/* default */.A(opts, 'compound') ? opts.compound : false;
|
|
102
|
-
|
|
103
|
-
// Label for the graph itself
|
|
104
|
-
this._label = undefined;
|
|
105
|
-
|
|
106
|
-
// Defaults to be set when creating a new node
|
|
107
|
-
this._defaultNodeLabelFn = constant/* default */.A(undefined);
|
|
108
|
-
|
|
109
|
-
// Defaults to be set when creating a new edge
|
|
110
|
-
this._defaultEdgeLabelFn = constant/* default */.A(undefined);
|
|
111
|
-
|
|
112
|
-
// v -> label
|
|
113
|
-
this._nodes = {};
|
|
114
|
-
|
|
115
|
-
if (this._isCompound) {
|
|
116
|
-
// v -> parent
|
|
117
|
-
this._parent = {};
|
|
118
|
-
|
|
119
|
-
// v -> children
|
|
120
|
-
this._children = {};
|
|
121
|
-
this._children[GRAPH_NODE] = {};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// v -> edgeObj
|
|
125
|
-
this._in = {};
|
|
126
|
-
|
|
127
|
-
// u -> v -> Number
|
|
128
|
-
this._preds = {};
|
|
129
|
-
|
|
130
|
-
// v -> edgeObj
|
|
131
|
-
this._out = {};
|
|
132
|
-
|
|
133
|
-
// v -> w -> Number
|
|
134
|
-
this._sucs = {};
|
|
135
|
-
|
|
136
|
-
// e -> edgeObj
|
|
137
|
-
this._edgeObjs = {};
|
|
138
|
-
|
|
139
|
-
// e -> label
|
|
140
|
-
this._edgeLabels = {};
|
|
141
|
-
}
|
|
142
|
-
/* === Graph functions ========= */
|
|
143
|
-
isDirected() {
|
|
144
|
-
return this._isDirected;
|
|
145
|
-
}
|
|
146
|
-
isMultigraph() {
|
|
147
|
-
return this._isMultigraph;
|
|
148
|
-
}
|
|
149
|
-
isCompound() {
|
|
150
|
-
return this._isCompound;
|
|
151
|
-
}
|
|
152
|
-
setGraph(label) {
|
|
153
|
-
this._label = label;
|
|
154
|
-
return this;
|
|
155
|
-
}
|
|
156
|
-
graph() {
|
|
157
|
-
return this._label;
|
|
158
|
-
}
|
|
159
|
-
/* === Node functions ========== */
|
|
160
|
-
setDefaultNodeLabel(newDefault) {
|
|
161
|
-
if (!isFunction/* default */.A(newDefault)) {
|
|
162
|
-
newDefault = constant/* default */.A(newDefault);
|
|
163
|
-
}
|
|
164
|
-
this._defaultNodeLabelFn = newDefault;
|
|
165
|
-
return this;
|
|
166
|
-
}
|
|
167
|
-
nodeCount() {
|
|
168
|
-
return this._nodeCount;
|
|
169
|
-
}
|
|
170
|
-
nodes() {
|
|
171
|
-
return keys/* default */.A(this._nodes);
|
|
172
|
-
}
|
|
173
|
-
sources() {
|
|
174
|
-
var self = this;
|
|
175
|
-
return filter/* default */.A(this.nodes(), function (v) {
|
|
176
|
-
return isEmpty/* default */.A(self._in[v]);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
sinks() {
|
|
180
|
-
var self = this;
|
|
181
|
-
return filter/* default */.A(this.nodes(), function (v) {
|
|
182
|
-
return isEmpty/* default */.A(self._out[v]);
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
setNodes(vs, value) {
|
|
186
|
-
var args = arguments;
|
|
187
|
-
var self = this;
|
|
188
|
-
forEach/* default */.A(vs, function (v) {
|
|
189
|
-
if (args.length > 1) {
|
|
190
|
-
self.setNode(v, value);
|
|
191
|
-
} else {
|
|
192
|
-
self.setNode(v);
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
return this;
|
|
196
|
-
}
|
|
197
|
-
setNode(v, value) {
|
|
198
|
-
if (has/* default */.A(this._nodes, v)) {
|
|
199
|
-
if (arguments.length > 1) {
|
|
200
|
-
this._nodes[v] = value;
|
|
201
|
-
}
|
|
202
|
-
return this;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// @ts-expect-error
|
|
206
|
-
this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
|
|
207
|
-
if (this._isCompound) {
|
|
208
|
-
this._parent[v] = GRAPH_NODE;
|
|
209
|
-
this._children[v] = {};
|
|
210
|
-
this._children[GRAPH_NODE][v] = true;
|
|
211
|
-
}
|
|
212
|
-
this._in[v] = {};
|
|
213
|
-
this._preds[v] = {};
|
|
214
|
-
this._out[v] = {};
|
|
215
|
-
this._sucs[v] = {};
|
|
216
|
-
++this._nodeCount;
|
|
217
|
-
return this;
|
|
218
|
-
}
|
|
219
|
-
node(v) {
|
|
220
|
-
return this._nodes[v];
|
|
221
|
-
}
|
|
222
|
-
hasNode(v) {
|
|
223
|
-
return has/* default */.A(this._nodes, v);
|
|
224
|
-
}
|
|
225
|
-
removeNode(v) {
|
|
226
|
-
var self = this;
|
|
227
|
-
if (has/* default */.A(this._nodes, v)) {
|
|
228
|
-
var removeEdge = function (e) {
|
|
229
|
-
self.removeEdge(self._edgeObjs[e]);
|
|
230
|
-
};
|
|
231
|
-
delete this._nodes[v];
|
|
232
|
-
if (this._isCompound) {
|
|
233
|
-
this._removeFromParentsChildList(v);
|
|
234
|
-
delete this._parent[v];
|
|
235
|
-
forEach/* default */.A(this.children(v), function (child) {
|
|
236
|
-
self.setParent(child);
|
|
237
|
-
});
|
|
238
|
-
delete this._children[v];
|
|
239
|
-
}
|
|
240
|
-
forEach/* default */.A(keys/* default */.A(this._in[v]), removeEdge);
|
|
241
|
-
delete this._in[v];
|
|
242
|
-
delete this._preds[v];
|
|
243
|
-
forEach/* default */.A(keys/* default */.A(this._out[v]), removeEdge);
|
|
244
|
-
delete this._out[v];
|
|
245
|
-
delete this._sucs[v];
|
|
246
|
-
--this._nodeCount;
|
|
247
|
-
}
|
|
248
|
-
return this;
|
|
249
|
-
}
|
|
250
|
-
setParent(v, parent) {
|
|
251
|
-
if (!this._isCompound) {
|
|
252
|
-
throw new Error('Cannot set parent in a non-compound graph');
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
if (isUndefined/* default */.A(parent)) {
|
|
256
|
-
parent = GRAPH_NODE;
|
|
257
|
-
} else {
|
|
258
|
-
// Coerce parent to string
|
|
259
|
-
parent += '';
|
|
260
|
-
for (var ancestor = parent; !isUndefined/* default */.A(ancestor); ancestor = this.parent(ancestor)) {
|
|
261
|
-
if (ancestor === v) {
|
|
262
|
-
throw new Error('Setting ' + parent + ' as parent of ' + v + ' would create a cycle');
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
this.setNode(parent);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
this.setNode(v);
|
|
270
|
-
this._removeFromParentsChildList(v);
|
|
271
|
-
this._parent[v] = parent;
|
|
272
|
-
this._children[parent][v] = true;
|
|
273
|
-
return this;
|
|
274
|
-
}
|
|
275
|
-
_removeFromParentsChildList(v) {
|
|
276
|
-
delete this._children[this._parent[v]][v];
|
|
277
|
-
}
|
|
278
|
-
parent(v) {
|
|
279
|
-
if (this._isCompound) {
|
|
280
|
-
var parent = this._parent[v];
|
|
281
|
-
if (parent !== GRAPH_NODE) {
|
|
282
|
-
return parent;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
children(v) {
|
|
287
|
-
if (isUndefined/* default */.A(v)) {
|
|
288
|
-
v = GRAPH_NODE;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (this._isCompound) {
|
|
292
|
-
var children = this._children[v];
|
|
293
|
-
if (children) {
|
|
294
|
-
return keys/* default */.A(children);
|
|
295
|
-
}
|
|
296
|
-
} else if (v === GRAPH_NODE) {
|
|
297
|
-
return this.nodes();
|
|
298
|
-
} else if (this.hasNode(v)) {
|
|
299
|
-
return [];
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
predecessors(v) {
|
|
303
|
-
var predsV = this._preds[v];
|
|
304
|
-
if (predsV) {
|
|
305
|
-
return keys/* default */.A(predsV);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
successors(v) {
|
|
309
|
-
var sucsV = this._sucs[v];
|
|
310
|
-
if (sucsV) {
|
|
311
|
-
return keys/* default */.A(sucsV);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
neighbors(v) {
|
|
315
|
-
var preds = this.predecessors(v);
|
|
316
|
-
if (preds) {
|
|
317
|
-
return lodash_es_union(preds, this.successors(v));
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
isLeaf(v) {
|
|
321
|
-
var neighbors;
|
|
322
|
-
if (this.isDirected()) {
|
|
323
|
-
neighbors = this.successors(v);
|
|
324
|
-
} else {
|
|
325
|
-
neighbors = this.neighbors(v);
|
|
326
|
-
}
|
|
327
|
-
return neighbors.length === 0;
|
|
328
|
-
}
|
|
329
|
-
filterNodes(filter) {
|
|
330
|
-
// @ts-expect-error
|
|
331
|
-
var copy = new this.constructor({
|
|
332
|
-
directed: this._isDirected,
|
|
333
|
-
multigraph: this._isMultigraph,
|
|
334
|
-
compound: this._isCompound,
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
copy.setGraph(this.graph());
|
|
338
|
-
|
|
339
|
-
var self = this;
|
|
340
|
-
forEach/* default */.A(this._nodes, function (value, v) {
|
|
341
|
-
if (filter(v)) {
|
|
342
|
-
copy.setNode(v, value);
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
forEach/* default */.A(this._edgeObjs, function (e) {
|
|
347
|
-
// @ts-expect-error
|
|
348
|
-
if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
|
|
349
|
-
copy.setEdge(e, self.edge(e));
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
var parents = {};
|
|
354
|
-
function findParent(v) {
|
|
355
|
-
var parent = self.parent(v);
|
|
356
|
-
if (parent === undefined || copy.hasNode(parent)) {
|
|
357
|
-
parents[v] = parent;
|
|
358
|
-
return parent;
|
|
359
|
-
} else if (parent in parents) {
|
|
360
|
-
return parents[parent];
|
|
361
|
-
} else {
|
|
362
|
-
return findParent(parent);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
if (this._isCompound) {
|
|
367
|
-
forEach/* default */.A(copy.nodes(), function (v) {
|
|
368
|
-
copy.setParent(v, findParent(v));
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
return copy;
|
|
373
|
-
}
|
|
374
|
-
/* === Edge functions ========== */
|
|
375
|
-
setDefaultEdgeLabel(newDefault) {
|
|
376
|
-
if (!isFunction/* default */.A(newDefault)) {
|
|
377
|
-
newDefault = constant/* default */.A(newDefault);
|
|
378
|
-
}
|
|
379
|
-
this._defaultEdgeLabelFn = newDefault;
|
|
380
|
-
return this;
|
|
381
|
-
}
|
|
382
|
-
edgeCount() {
|
|
383
|
-
return this._edgeCount;
|
|
384
|
-
}
|
|
385
|
-
edges() {
|
|
386
|
-
return values/* default */.A(this._edgeObjs);
|
|
387
|
-
}
|
|
388
|
-
setPath(vs, value) {
|
|
389
|
-
var self = this;
|
|
390
|
-
var args = arguments;
|
|
391
|
-
reduce/* default */.A(vs, function (v, w) {
|
|
392
|
-
if (args.length > 1) {
|
|
393
|
-
self.setEdge(v, w, value);
|
|
394
|
-
} else {
|
|
395
|
-
self.setEdge(v, w);
|
|
396
|
-
}
|
|
397
|
-
return w;
|
|
398
|
-
});
|
|
399
|
-
return this;
|
|
400
|
-
}
|
|
401
|
-
/*
|
|
402
|
-
* setEdge(v, w, [value, [name]])
|
|
403
|
-
* setEdge({ v, w, [name] }, [value])
|
|
404
|
-
*/
|
|
405
|
-
setEdge() {
|
|
406
|
-
var v, w, name, value;
|
|
407
|
-
var valueSpecified = false;
|
|
408
|
-
var arg0 = arguments[0];
|
|
409
|
-
|
|
410
|
-
if (typeof arg0 === 'object' && arg0 !== null && 'v' in arg0) {
|
|
411
|
-
v = arg0.v;
|
|
412
|
-
w = arg0.w;
|
|
413
|
-
name = arg0.name;
|
|
414
|
-
if (arguments.length === 2) {
|
|
415
|
-
value = arguments[1];
|
|
416
|
-
valueSpecified = true;
|
|
417
|
-
}
|
|
418
|
-
} else {
|
|
419
|
-
v = arg0;
|
|
420
|
-
w = arguments[1];
|
|
421
|
-
name = arguments[3];
|
|
422
|
-
if (arguments.length > 2) {
|
|
423
|
-
value = arguments[2];
|
|
424
|
-
valueSpecified = true;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
v = '' + v;
|
|
429
|
-
w = '' + w;
|
|
430
|
-
if (!isUndefined/* default */.A(name)) {
|
|
431
|
-
name = '' + name;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
var e = edgeArgsToId(this._isDirected, v, w, name);
|
|
435
|
-
if (has/* default */.A(this._edgeLabels, e)) {
|
|
436
|
-
if (valueSpecified) {
|
|
437
|
-
this._edgeLabels[e] = value;
|
|
438
|
-
}
|
|
439
|
-
return this;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (!isUndefined/* default */.A(name) && !this._isMultigraph) {
|
|
443
|
-
throw new Error('Cannot set a named edge when isMultigraph = false');
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
// It didn't exist, so we need to create it.
|
|
447
|
-
// First ensure the nodes exist.
|
|
448
|
-
this.setNode(v);
|
|
449
|
-
this.setNode(w);
|
|
450
|
-
|
|
451
|
-
// @ts-expect-error
|
|
452
|
-
this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
|
|
453
|
-
|
|
454
|
-
var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
|
|
455
|
-
// Ensure we add undirected edges in a consistent way.
|
|
456
|
-
v = edgeObj.v;
|
|
457
|
-
w = edgeObj.w;
|
|
458
|
-
|
|
459
|
-
Object.freeze(edgeObj);
|
|
460
|
-
this._edgeObjs[e] = edgeObj;
|
|
461
|
-
incrementOrInitEntry(this._preds[w], v);
|
|
462
|
-
incrementOrInitEntry(this._sucs[v], w);
|
|
463
|
-
this._in[w][e] = edgeObj;
|
|
464
|
-
this._out[v][e] = edgeObj;
|
|
465
|
-
this._edgeCount++;
|
|
466
|
-
return this;
|
|
467
|
-
}
|
|
468
|
-
edge(v, w, name) {
|
|
469
|
-
var e =
|
|
470
|
-
arguments.length === 1
|
|
471
|
-
? edgeObjToId(this._isDirected, arguments[0])
|
|
472
|
-
: edgeArgsToId(this._isDirected, v, w, name);
|
|
473
|
-
return this._edgeLabels[e];
|
|
474
|
-
}
|
|
475
|
-
hasEdge(v, w, name) {
|
|
476
|
-
var e =
|
|
477
|
-
arguments.length === 1
|
|
478
|
-
? edgeObjToId(this._isDirected, arguments[0])
|
|
479
|
-
: edgeArgsToId(this._isDirected, v, w, name);
|
|
480
|
-
return has/* default */.A(this._edgeLabels, e);
|
|
481
|
-
}
|
|
482
|
-
removeEdge(v, w, name) {
|
|
483
|
-
var e =
|
|
484
|
-
arguments.length === 1
|
|
485
|
-
? edgeObjToId(this._isDirected, arguments[0])
|
|
486
|
-
: edgeArgsToId(this._isDirected, v, w, name);
|
|
487
|
-
var edge = this._edgeObjs[e];
|
|
488
|
-
if (edge) {
|
|
489
|
-
v = edge.v;
|
|
490
|
-
w = edge.w;
|
|
491
|
-
delete this._edgeLabels[e];
|
|
492
|
-
delete this._edgeObjs[e];
|
|
493
|
-
decrementOrRemoveEntry(this._preds[w], v);
|
|
494
|
-
decrementOrRemoveEntry(this._sucs[v], w);
|
|
495
|
-
delete this._in[w][e];
|
|
496
|
-
delete this._out[v][e];
|
|
497
|
-
this._edgeCount--;
|
|
498
|
-
}
|
|
499
|
-
return this;
|
|
500
|
-
}
|
|
501
|
-
inEdges(v, u) {
|
|
502
|
-
var inV = this._in[v];
|
|
503
|
-
if (inV) {
|
|
504
|
-
var edges = values/* default */.A(inV);
|
|
505
|
-
if (!u) {
|
|
506
|
-
return edges;
|
|
507
|
-
}
|
|
508
|
-
return filter/* default */.A(edges, function (edge) {
|
|
509
|
-
return edge.v === u;
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
outEdges(v, w) {
|
|
514
|
-
var outV = this._out[v];
|
|
515
|
-
if (outV) {
|
|
516
|
-
var edges = values/* default */.A(outV);
|
|
517
|
-
if (!w) {
|
|
518
|
-
return edges;
|
|
519
|
-
}
|
|
520
|
-
return filter/* default */.A(edges, function (edge) {
|
|
521
|
-
return edge.w === w;
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
nodeEdges(v, w) {
|
|
526
|
-
var inEdges = this.inEdges(v, w);
|
|
527
|
-
if (inEdges) {
|
|
528
|
-
return inEdges.concat(this.outEdges(v, w));
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
/* Number of nodes in the graph. Should only be changed by the implementation. */
|
|
534
|
-
Graph.prototype._nodeCount = 0;
|
|
535
|
-
|
|
536
|
-
/* Number of edges in the graph. Should only be changed by the implementation. */
|
|
537
|
-
Graph.prototype._edgeCount = 0;
|
|
538
|
-
|
|
539
|
-
function incrementOrInitEntry(map, k) {
|
|
540
|
-
if (map[k]) {
|
|
541
|
-
map[k]++;
|
|
542
|
-
} else {
|
|
543
|
-
map[k] = 1;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
function decrementOrRemoveEntry(map, k) {
|
|
548
|
-
if (!--map[k]) {
|
|
549
|
-
delete map[k];
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
function edgeArgsToId(isDirected, v_, w_, name) {
|
|
554
|
-
var v = '' + v_;
|
|
555
|
-
var w = '' + w_;
|
|
556
|
-
if (!isDirected && v > w) {
|
|
557
|
-
var tmp = v;
|
|
558
|
-
v = w;
|
|
559
|
-
w = tmp;
|
|
560
|
-
}
|
|
561
|
-
return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (isUndefined/* default */.A(name) ? DEFAULT_EDGE_NAME : name);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
function edgeArgsToObj(isDirected, v_, w_, name) {
|
|
565
|
-
var v = '' + v_;
|
|
566
|
-
var w = '' + w_;
|
|
567
|
-
if (!isDirected && v > w) {
|
|
568
|
-
var tmp = v;
|
|
569
|
-
v = w;
|
|
570
|
-
w = tmp;
|
|
571
|
-
}
|
|
572
|
-
var edgeObj = { v: v, w: w };
|
|
573
|
-
if (name) {
|
|
574
|
-
edgeObj.name = name;
|
|
575
|
-
}
|
|
576
|
-
return edgeObj;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
function edgeObjToId(isDirected, edgeObj) {
|
|
580
|
-
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
/***/ }),
|
|
585
|
-
|
|
586
|
-
/***/ 4416:
|
|
587
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
588
|
-
|
|
589
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
590
|
-
/* harmony export */ T: () => (/* reexport safe */ _graph_js__WEBPACK_IMPORTED_MODULE_0__.T)
|
|
591
|
-
/* harmony export */ });
|
|
592
|
-
/* unused harmony export version */
|
|
593
|
-
/* harmony import */ var _graph_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8448);
|
|
594
|
-
// Includes only the "core" of graphlib
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
const version = '2.1.9-pre';
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
/***/ }),
|
|
604
|
-
|
|
605
|
-
/***/ 7574:
|
|
606
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
607
|
-
|
|
608
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
609
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
610
|
-
/* harmony export */ });
|
|
611
|
-
/* harmony import */ var _utils_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1404);
|
|
612
|
-
/* harmony import */ var _color_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9569);
|
|
613
|
-
/* IMPORT */
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
/* MAIN */
|
|
617
|
-
const channel = (color, channel) => {
|
|
618
|
-
return _utils_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.lang.round(_color_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.parse(color)[channel]);
|
|
619
|
-
};
|
|
620
|
-
/* EXPORT */
|
|
621
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (channel);
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
/***/ }),
|
|
625
|
-
|
|
626
|
-
/***/ 6849:
|
|
627
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
628
|
-
|
|
629
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
630
|
-
/* harmony export */ diagram: () => (/* binding */ diagram)
|
|
631
|
-
/* harmony export */ });
|
|
632
|
-
/* harmony import */ var _chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2927);
|
|
633
|
-
/* harmony import */ var _chunk_I3FGKTZ5_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6971);
|
|
634
|
-
/* harmony import */ var _chunk_U7L4IQIU_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5449);
|
|
635
|
-
/* harmony import */ var _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2843);
|
|
636
|
-
/* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6322);
|
|
637
|
-
/* harmony import */ var lodash_es_clone_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7134);
|
|
638
|
-
/* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7574);
|
|
639
|
-
/* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3635);
|
|
640
|
-
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8066);
|
|
641
|
-
/* harmony import */ var dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4416);
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
// src/diagrams/block/parser/block.jison
|
|
649
|
-
var parser = function() {
|
|
650
|
-
var o = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(k, v, o2, l) {
|
|
651
|
-
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
652
|
-
return o2;
|
|
653
|
-
}, "o"), $V0 = [1, 7], $V1 = [1, 13], $V2 = [1, 14], $V3 = [1, 15], $V4 = [1, 19], $V5 = [1, 16], $V6 = [1, 17], $V7 = [1, 18], $V8 = [8, 30], $V9 = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Va = [1, 23], $Vb = [1, 24], $Vc = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Vd = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], $Ve = [1, 49];
|
|
654
|
-
var parser2 = {
|
|
655
|
-
trace: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function trace() {
|
|
656
|
-
}, "trace"),
|
|
657
|
-
yy: {},
|
|
658
|
-
symbols_: { "error": 2, "spaceLines": 3, "SPACELINE": 4, "NL": 5, "separator": 6, "SPACE": 7, "EOF": 8, "start": 9, "BLOCK_DIAGRAM_KEY": 10, "document": 11, "stop": 12, "statement": 13, "link": 14, "LINK": 15, "START_LINK": 16, "LINK_LABEL": 17, "STR": 18, "nodeStatement": 19, "columnsStatement": 20, "SPACE_BLOCK": 21, "blockStatement": 22, "classDefStatement": 23, "cssClassStatement": 24, "styleStatement": 25, "node": 26, "SIZE": 27, "COLUMNS": 28, "id-block": 29, "end": 30, "block": 31, "NODE_ID": 32, "nodeShapeNLabel": 33, "dirList": 34, "DIR": 35, "NODE_DSTART": 36, "NODE_DEND": 37, "BLOCK_ARROW_START": 38, "BLOCK_ARROW_END": 39, "classDef": 40, "CLASSDEF_ID": 41, "CLASSDEF_STYLEOPTS": 42, "DEFAULT": 43, "class": 44, "CLASSENTITY_IDS": 45, "STYLECLASS": 46, "style": 47, "STYLE_ENTITY_IDS": 48, "STYLE_DEFINITION_DATA": 49, "$accept": 0, "$end": 1 },
|
|
659
|
-
terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
|
|
660
|
-
productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
|
|
661
|
-
performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
662
|
-
var $0 = $$.length - 1;
|
|
663
|
-
switch (yystate) {
|
|
664
|
-
case 4:
|
|
665
|
-
yy.getLogger().debug("Rule: separator (NL) ");
|
|
666
|
-
break;
|
|
667
|
-
case 5:
|
|
668
|
-
yy.getLogger().debug("Rule: separator (Space) ");
|
|
669
|
-
break;
|
|
670
|
-
case 6:
|
|
671
|
-
yy.getLogger().debug("Rule: separator (EOF) ");
|
|
672
|
-
break;
|
|
673
|
-
case 7:
|
|
674
|
-
yy.getLogger().debug("Rule: hierarchy: ", $$[$0 - 1]);
|
|
675
|
-
yy.setHierarchy($$[$0 - 1]);
|
|
676
|
-
break;
|
|
677
|
-
case 8:
|
|
678
|
-
yy.getLogger().debug("Stop NL ");
|
|
679
|
-
break;
|
|
680
|
-
case 9:
|
|
681
|
-
yy.getLogger().debug("Stop EOF ");
|
|
682
|
-
break;
|
|
683
|
-
case 10:
|
|
684
|
-
yy.getLogger().debug("Stop NL2 ");
|
|
685
|
-
break;
|
|
686
|
-
case 11:
|
|
687
|
-
yy.getLogger().debug("Stop EOF2 ");
|
|
688
|
-
break;
|
|
689
|
-
case 12:
|
|
690
|
-
yy.getLogger().debug("Rule: statement: ", $$[$0]);
|
|
691
|
-
typeof $$[$0].length === "number" ? this.$ = $$[$0] : this.$ = [$$[$0]];
|
|
692
|
-
break;
|
|
693
|
-
case 13:
|
|
694
|
-
yy.getLogger().debug("Rule: statement #2: ", $$[$0 - 1]);
|
|
695
|
-
this.$ = [$$[$0 - 1]].concat($$[$0]);
|
|
696
|
-
break;
|
|
697
|
-
case 14:
|
|
698
|
-
yy.getLogger().debug("Rule: link: ", $$[$0], yytext);
|
|
699
|
-
this.$ = { edgeTypeStr: $$[$0], label: "" };
|
|
700
|
-
break;
|
|
701
|
-
case 15:
|
|
702
|
-
yy.getLogger().debug("Rule: LABEL link: ", $$[$0 - 3], $$[$0 - 1], $$[$0]);
|
|
703
|
-
this.$ = { edgeTypeStr: $$[$0], label: $$[$0 - 1] };
|
|
704
|
-
break;
|
|
705
|
-
case 18:
|
|
706
|
-
const num = parseInt($$[$0]);
|
|
707
|
-
const spaceId = yy.generateId();
|
|
708
|
-
this.$ = { id: spaceId, type: "space", label: "", width: num, children: [] };
|
|
709
|
-
break;
|
|
710
|
-
case 23:
|
|
711
|
-
yy.getLogger().debug("Rule: (nodeStatement link node) ", $$[$0 - 2], $$[$0 - 1], $$[$0], " typestr: ", $$[$0 - 1].edgeTypeStr);
|
|
712
|
-
const edgeData = yy.edgeStrToEdgeData($$[$0 - 1].edgeTypeStr);
|
|
713
|
-
this.$ = [
|
|
714
|
-
{ id: $$[$0 - 2].id, label: $$[$0 - 2].label, type: $$[$0 - 2].type, directions: $$[$0 - 2].directions },
|
|
715
|
-
{ id: $$[$0 - 2].id + "-" + $$[$0].id, start: $$[$0 - 2].id, end: $$[$0].id, label: $$[$0 - 1].label, type: "edge", directions: $$[$0].directions, arrowTypeEnd: edgeData, arrowTypeStart: "arrow_open" },
|
|
716
|
-
{ id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions }
|
|
717
|
-
];
|
|
718
|
-
break;
|
|
719
|
-
case 24:
|
|
720
|
-
yy.getLogger().debug("Rule: nodeStatement (abc88 node size) ", $$[$0 - 1], $$[$0]);
|
|
721
|
-
this.$ = { id: $$[$0 - 1].id, label: $$[$0 - 1].label, type: yy.typeStr2Type($$[$0 - 1].typeStr), directions: $$[$0 - 1].directions, widthInColumns: parseInt($$[$0], 10) };
|
|
722
|
-
break;
|
|
723
|
-
case 25:
|
|
724
|
-
yy.getLogger().debug("Rule: nodeStatement (node) ", $$[$0]);
|
|
725
|
-
this.$ = { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions, widthInColumns: 1 };
|
|
726
|
-
break;
|
|
727
|
-
case 26:
|
|
728
|
-
yy.getLogger().debug("APA123", this ? this : "na");
|
|
729
|
-
yy.getLogger().debug("COLUMNS: ", $$[$0]);
|
|
730
|
-
this.$ = { type: "column-setting", columns: $$[$0] === "auto" ? -1 : parseInt($$[$0]) };
|
|
731
|
-
break;
|
|
732
|
-
case 27:
|
|
733
|
-
yy.getLogger().debug("Rule: id-block statement : ", $$[$0 - 2], $$[$0 - 1]);
|
|
734
|
-
const id2 = yy.generateId();
|
|
735
|
-
this.$ = { ...$$[$0 - 2], type: "composite", children: $$[$0 - 1] };
|
|
736
|
-
break;
|
|
737
|
-
case 28:
|
|
738
|
-
yy.getLogger().debug("Rule: blockStatement : ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
|
|
739
|
-
const id = yy.generateId();
|
|
740
|
-
this.$ = { id, type: "composite", label: "", children: $$[$0 - 1] };
|
|
741
|
-
break;
|
|
742
|
-
case 29:
|
|
743
|
-
yy.getLogger().debug("Rule: node (NODE_ID separator): ", $$[$0]);
|
|
744
|
-
this.$ = { id: $$[$0] };
|
|
745
|
-
break;
|
|
746
|
-
case 30:
|
|
747
|
-
yy.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", $$[$0 - 1], $$[$0]);
|
|
748
|
-
this.$ = { id: $$[$0 - 1], label: $$[$0].label, typeStr: $$[$0].typeStr, directions: $$[$0].directions };
|
|
749
|
-
break;
|
|
750
|
-
case 31:
|
|
751
|
-
yy.getLogger().debug("Rule: dirList: ", $$[$0]);
|
|
752
|
-
this.$ = [$$[$0]];
|
|
753
|
-
break;
|
|
754
|
-
case 32:
|
|
755
|
-
yy.getLogger().debug("Rule: dirList: ", $$[$0 - 1], $$[$0]);
|
|
756
|
-
this.$ = [$$[$0 - 1]].concat($$[$0]);
|
|
757
|
-
break;
|
|
758
|
-
case 33:
|
|
759
|
-
yy.getLogger().debug("Rule: nodeShapeNLabel: ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
|
|
760
|
-
this.$ = { typeStr: $$[$0 - 2] + $$[$0], label: $$[$0 - 1] };
|
|
761
|
-
break;
|
|
762
|
-
case 34:
|
|
763
|
-
yy.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", $$[$0 - 3], $$[$0 - 2], " #3:", $$[$0 - 1], $$[$0]);
|
|
764
|
-
this.$ = { typeStr: $$[$0 - 3] + $$[$0], label: $$[$0 - 2], directions: $$[$0 - 1] };
|
|
765
|
-
break;
|
|
766
|
-
case 35:
|
|
767
|
-
case 36:
|
|
768
|
-
this.$ = { type: "classDef", id: $$[$0 - 1].trim(), css: $$[$0].trim() };
|
|
769
|
-
break;
|
|
770
|
-
case 37:
|
|
771
|
-
this.$ = { type: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
|
|
772
|
-
break;
|
|
773
|
-
case 38:
|
|
774
|
-
this.$ = { type: "applyStyles", id: $$[$0 - 1].trim(), stylesStr: $$[$0].trim() };
|
|
775
|
-
break;
|
|
776
|
-
}
|
|
777
|
-
}, "anonymous"),
|
|
778
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 8: [1, 20] }, o($V8, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: $V0, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }), o($V9, [2, 16], { 14: 22, 15: $Va, 16: $Vb }), o($V9, [2, 17]), o($V9, [2, 18]), o($V9, [2, 19]), o($V9, [2, 20]), o($V9, [2, 21]), o($V9, [2, 22]), o($Vc, [2, 25], { 27: [1, 25] }), o($V9, [2, 26]), { 19: 26, 26: 12, 32: $V4 }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, o($Vd, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, o($V8, [2, 13]), { 26: 35, 32: $V4 }, { 32: [2, 14] }, { 17: [1, 36] }, o($Vc, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: $Va, 16: $Vb, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, o($Vd, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, o($Vc, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, o($V9, [2, 28]), o($V9, [2, 35]), o($V9, [2, 36]), o($V9, [2, 37]), o($V9, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: $Ve }, { 15: [1, 50] }, o($V9, [2, 27]), o($Vd, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: $Ve, 39: [2, 31] }, { 32: [2, 15] }, o($Vd, [2, 34]), { 39: [2, 32] }],
|
|
779
|
-
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
780
|
-
parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function parseError(str, hash) {
|
|
781
|
-
if (hash.recoverable) {
|
|
782
|
-
this.trace(str);
|
|
783
|
-
} else {
|
|
784
|
-
var error = new Error(str);
|
|
785
|
-
error.hash = hash;
|
|
786
|
-
throw error;
|
|
787
|
-
}
|
|
788
|
-
}, "parseError"),
|
|
789
|
-
parse: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function parse(input) {
|
|
790
|
-
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
791
|
-
var args = lstack.slice.call(arguments, 1);
|
|
792
|
-
var lexer2 = Object.create(this.lexer);
|
|
793
|
-
var sharedState = { yy: {} };
|
|
794
|
-
for (var k in this.yy) {
|
|
795
|
-
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
796
|
-
sharedState.yy[k] = this.yy[k];
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
lexer2.setInput(input, sharedState.yy);
|
|
800
|
-
sharedState.yy.lexer = lexer2;
|
|
801
|
-
sharedState.yy.parser = this;
|
|
802
|
-
if (typeof lexer2.yylloc == "undefined") {
|
|
803
|
-
lexer2.yylloc = {};
|
|
804
|
-
}
|
|
805
|
-
var yyloc = lexer2.yylloc;
|
|
806
|
-
lstack.push(yyloc);
|
|
807
|
-
var ranges = lexer2.options && lexer2.options.ranges;
|
|
808
|
-
if (typeof sharedState.yy.parseError === "function") {
|
|
809
|
-
this.parseError = sharedState.yy.parseError;
|
|
810
|
-
} else {
|
|
811
|
-
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
812
|
-
}
|
|
813
|
-
function popStack(n) {
|
|
814
|
-
stack.length = stack.length - 2 * n;
|
|
815
|
-
vstack.length = vstack.length - n;
|
|
816
|
-
lstack.length = lstack.length - n;
|
|
817
|
-
}
|
|
818
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(popStack, "popStack");
|
|
819
|
-
function lex() {
|
|
820
|
-
var token;
|
|
821
|
-
token = tstack.pop() || lexer2.lex() || EOF;
|
|
822
|
-
if (typeof token !== "number") {
|
|
823
|
-
if (token instanceof Array) {
|
|
824
|
-
tstack = token;
|
|
825
|
-
token = tstack.pop();
|
|
826
|
-
}
|
|
827
|
-
token = self.symbols_[token] || token;
|
|
828
|
-
}
|
|
829
|
-
return token;
|
|
830
|
-
}
|
|
831
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(lex, "lex");
|
|
832
|
-
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
|
833
|
-
while (true) {
|
|
834
|
-
state = stack[stack.length - 1];
|
|
835
|
-
if (this.defaultActions[state]) {
|
|
836
|
-
action = this.defaultActions[state];
|
|
837
|
-
} else {
|
|
838
|
-
if (symbol === null || typeof symbol == "undefined") {
|
|
839
|
-
symbol = lex();
|
|
840
|
-
}
|
|
841
|
-
action = table[state] && table[state][symbol];
|
|
842
|
-
}
|
|
843
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
844
|
-
var errStr = "";
|
|
845
|
-
expected = [];
|
|
846
|
-
for (p in table[state]) {
|
|
847
|
-
if (this.terminals_[p] && p > TERROR) {
|
|
848
|
-
expected.push("'" + this.terminals_[p] + "'");
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
if (lexer2.showPosition) {
|
|
852
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
853
|
-
} else {
|
|
854
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
855
|
-
}
|
|
856
|
-
this.parseError(errStr, {
|
|
857
|
-
text: lexer2.match,
|
|
858
|
-
token: this.terminals_[symbol] || symbol,
|
|
859
|
-
line: lexer2.yylineno,
|
|
860
|
-
loc: yyloc,
|
|
861
|
-
expected
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
865
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
866
|
-
}
|
|
867
|
-
switch (action[0]) {
|
|
868
|
-
case 1:
|
|
869
|
-
stack.push(symbol);
|
|
870
|
-
vstack.push(lexer2.yytext);
|
|
871
|
-
lstack.push(lexer2.yylloc);
|
|
872
|
-
stack.push(action[1]);
|
|
873
|
-
symbol = null;
|
|
874
|
-
if (!preErrorSymbol) {
|
|
875
|
-
yyleng = lexer2.yyleng;
|
|
876
|
-
yytext = lexer2.yytext;
|
|
877
|
-
yylineno = lexer2.yylineno;
|
|
878
|
-
yyloc = lexer2.yylloc;
|
|
879
|
-
if (recovering > 0) {
|
|
880
|
-
recovering--;
|
|
881
|
-
}
|
|
882
|
-
} else {
|
|
883
|
-
symbol = preErrorSymbol;
|
|
884
|
-
preErrorSymbol = null;
|
|
885
|
-
}
|
|
886
|
-
break;
|
|
887
|
-
case 2:
|
|
888
|
-
len = this.productions_[action[1]][1];
|
|
889
|
-
yyval.$ = vstack[vstack.length - len];
|
|
890
|
-
yyval._$ = {
|
|
891
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
892
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
893
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
894
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
895
|
-
};
|
|
896
|
-
if (ranges) {
|
|
897
|
-
yyval._$.range = [
|
|
898
|
-
lstack[lstack.length - (len || 1)].range[0],
|
|
899
|
-
lstack[lstack.length - 1].range[1]
|
|
900
|
-
];
|
|
901
|
-
}
|
|
902
|
-
r = this.performAction.apply(yyval, [
|
|
903
|
-
yytext,
|
|
904
|
-
yyleng,
|
|
905
|
-
yylineno,
|
|
906
|
-
sharedState.yy,
|
|
907
|
-
action[1],
|
|
908
|
-
vstack,
|
|
909
|
-
lstack
|
|
910
|
-
].concat(args));
|
|
911
|
-
if (typeof r !== "undefined") {
|
|
912
|
-
return r;
|
|
913
|
-
}
|
|
914
|
-
if (len) {
|
|
915
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
916
|
-
vstack = vstack.slice(0, -1 * len);
|
|
917
|
-
lstack = lstack.slice(0, -1 * len);
|
|
918
|
-
}
|
|
919
|
-
stack.push(this.productions_[action[1]][0]);
|
|
920
|
-
vstack.push(yyval.$);
|
|
921
|
-
lstack.push(yyval._$);
|
|
922
|
-
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
923
|
-
stack.push(newState);
|
|
924
|
-
break;
|
|
925
|
-
case 3:
|
|
926
|
-
return true;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
return true;
|
|
930
|
-
}, "parse")
|
|
931
|
-
};
|
|
932
|
-
var lexer = /* @__PURE__ */ function() {
|
|
933
|
-
var lexer2 = {
|
|
934
|
-
EOF: 1,
|
|
935
|
-
parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function parseError(str, hash) {
|
|
936
|
-
if (this.yy.parser) {
|
|
937
|
-
this.yy.parser.parseError(str, hash);
|
|
938
|
-
} else {
|
|
939
|
-
throw new Error(str);
|
|
940
|
-
}
|
|
941
|
-
}, "parseError"),
|
|
942
|
-
// resets the lexer, sets new input
|
|
943
|
-
setInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(input, yy) {
|
|
944
|
-
this.yy = yy || this.yy || {};
|
|
945
|
-
this._input = input;
|
|
946
|
-
this._more = this._backtrack = this.done = false;
|
|
947
|
-
this.yylineno = this.yyleng = 0;
|
|
948
|
-
this.yytext = this.matched = this.match = "";
|
|
949
|
-
this.conditionStack = ["INITIAL"];
|
|
950
|
-
this.yylloc = {
|
|
951
|
-
first_line: 1,
|
|
952
|
-
first_column: 0,
|
|
953
|
-
last_line: 1,
|
|
954
|
-
last_column: 0
|
|
955
|
-
};
|
|
956
|
-
if (this.options.ranges) {
|
|
957
|
-
this.yylloc.range = [0, 0];
|
|
958
|
-
}
|
|
959
|
-
this.offset = 0;
|
|
960
|
-
return this;
|
|
961
|
-
}, "setInput"),
|
|
962
|
-
// consumes and returns one char from the input
|
|
963
|
-
input: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
964
|
-
var ch = this._input[0];
|
|
965
|
-
this.yytext += ch;
|
|
966
|
-
this.yyleng++;
|
|
967
|
-
this.offset++;
|
|
968
|
-
this.match += ch;
|
|
969
|
-
this.matched += ch;
|
|
970
|
-
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
971
|
-
if (lines) {
|
|
972
|
-
this.yylineno++;
|
|
973
|
-
this.yylloc.last_line++;
|
|
974
|
-
} else {
|
|
975
|
-
this.yylloc.last_column++;
|
|
976
|
-
}
|
|
977
|
-
if (this.options.ranges) {
|
|
978
|
-
this.yylloc.range[1]++;
|
|
979
|
-
}
|
|
980
|
-
this._input = this._input.slice(1);
|
|
981
|
-
return ch;
|
|
982
|
-
}, "input"),
|
|
983
|
-
// unshifts one char (or a string) into the input
|
|
984
|
-
unput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(ch) {
|
|
985
|
-
var len = ch.length;
|
|
986
|
-
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
987
|
-
this._input = ch + this._input;
|
|
988
|
-
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
989
|
-
this.offset -= len;
|
|
990
|
-
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
991
|
-
this.match = this.match.substr(0, this.match.length - 1);
|
|
992
|
-
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
993
|
-
if (lines.length - 1) {
|
|
994
|
-
this.yylineno -= lines.length - 1;
|
|
995
|
-
}
|
|
996
|
-
var r = this.yylloc.range;
|
|
997
|
-
this.yylloc = {
|
|
998
|
-
first_line: this.yylloc.first_line,
|
|
999
|
-
last_line: this.yylineno + 1,
|
|
1000
|
-
first_column: this.yylloc.first_column,
|
|
1001
|
-
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
1002
|
-
};
|
|
1003
|
-
if (this.options.ranges) {
|
|
1004
|
-
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
1005
|
-
}
|
|
1006
|
-
this.yyleng = this.yytext.length;
|
|
1007
|
-
return this;
|
|
1008
|
-
}, "unput"),
|
|
1009
|
-
// When called from action, caches matched text and appends it on next action
|
|
1010
|
-
more: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1011
|
-
this._more = true;
|
|
1012
|
-
return this;
|
|
1013
|
-
}, "more"),
|
|
1014
|
-
// 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.
|
|
1015
|
-
reject: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1016
|
-
if (this.options.backtrack_lexer) {
|
|
1017
|
-
this._backtrack = true;
|
|
1018
|
-
} else {
|
|
1019
|
-
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(), {
|
|
1020
|
-
text: "",
|
|
1021
|
-
token: null,
|
|
1022
|
-
line: this.yylineno
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
return this;
|
|
1026
|
-
}, "reject"),
|
|
1027
|
-
// retain first n characters of the match
|
|
1028
|
-
less: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(n) {
|
|
1029
|
-
this.unput(this.match.slice(n));
|
|
1030
|
-
}, "less"),
|
|
1031
|
-
// displays already matched input, i.e. for error messages
|
|
1032
|
-
pastInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1033
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1034
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
1035
|
-
}, "pastInput"),
|
|
1036
|
-
// displays upcoming input, i.e. for error messages
|
|
1037
|
-
upcomingInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1038
|
-
var next = this.match;
|
|
1039
|
-
if (next.length < 20) {
|
|
1040
|
-
next += this._input.substr(0, 20 - next.length);
|
|
1041
|
-
}
|
|
1042
|
-
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1043
|
-
}, "upcomingInput"),
|
|
1044
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
1045
|
-
showPosition: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1046
|
-
var pre = this.pastInput();
|
|
1047
|
-
var c = new Array(pre.length + 1).join("-");
|
|
1048
|
-
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
1049
|
-
}, "showPosition"),
|
|
1050
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
1051
|
-
test_match: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(match, indexed_rule) {
|
|
1052
|
-
var token, lines, backup;
|
|
1053
|
-
if (this.options.backtrack_lexer) {
|
|
1054
|
-
backup = {
|
|
1055
|
-
yylineno: this.yylineno,
|
|
1056
|
-
yylloc: {
|
|
1057
|
-
first_line: this.yylloc.first_line,
|
|
1058
|
-
last_line: this.last_line,
|
|
1059
|
-
first_column: this.yylloc.first_column,
|
|
1060
|
-
last_column: this.yylloc.last_column
|
|
1061
|
-
},
|
|
1062
|
-
yytext: this.yytext,
|
|
1063
|
-
match: this.match,
|
|
1064
|
-
matches: this.matches,
|
|
1065
|
-
matched: this.matched,
|
|
1066
|
-
yyleng: this.yyleng,
|
|
1067
|
-
offset: this.offset,
|
|
1068
|
-
_more: this._more,
|
|
1069
|
-
_input: this._input,
|
|
1070
|
-
yy: this.yy,
|
|
1071
|
-
conditionStack: this.conditionStack.slice(0),
|
|
1072
|
-
done: this.done
|
|
1073
|
-
};
|
|
1074
|
-
if (this.options.ranges) {
|
|
1075
|
-
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
1079
|
-
if (lines) {
|
|
1080
|
-
this.yylineno += lines.length;
|
|
1081
|
-
}
|
|
1082
|
-
this.yylloc = {
|
|
1083
|
-
first_line: this.yylloc.last_line,
|
|
1084
|
-
last_line: this.yylineno + 1,
|
|
1085
|
-
first_column: this.yylloc.last_column,
|
|
1086
|
-
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
1087
|
-
};
|
|
1088
|
-
this.yytext += match[0];
|
|
1089
|
-
this.match += match[0];
|
|
1090
|
-
this.matches = match;
|
|
1091
|
-
this.yyleng = this.yytext.length;
|
|
1092
|
-
if (this.options.ranges) {
|
|
1093
|
-
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
1094
|
-
}
|
|
1095
|
-
this._more = false;
|
|
1096
|
-
this._backtrack = false;
|
|
1097
|
-
this._input = this._input.slice(match[0].length);
|
|
1098
|
-
this.matched += match[0];
|
|
1099
|
-
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
1100
|
-
if (this.done && this._input) {
|
|
1101
|
-
this.done = false;
|
|
1102
|
-
}
|
|
1103
|
-
if (token) {
|
|
1104
|
-
return token;
|
|
1105
|
-
} else if (this._backtrack) {
|
|
1106
|
-
for (var k in backup) {
|
|
1107
|
-
this[k] = backup[k];
|
|
1108
|
-
}
|
|
1109
|
-
return false;
|
|
1110
|
-
}
|
|
1111
|
-
return false;
|
|
1112
|
-
}, "test_match"),
|
|
1113
|
-
// return next match in input
|
|
1114
|
-
next: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1115
|
-
if (this.done) {
|
|
1116
|
-
return this.EOF;
|
|
1117
|
-
}
|
|
1118
|
-
if (!this._input) {
|
|
1119
|
-
this.done = true;
|
|
1120
|
-
}
|
|
1121
|
-
var token, match, tempMatch, index;
|
|
1122
|
-
if (!this._more) {
|
|
1123
|
-
this.yytext = "";
|
|
1124
|
-
this.match = "";
|
|
1125
|
-
}
|
|
1126
|
-
var rules = this._currentRules();
|
|
1127
|
-
for (var i = 0; i < rules.length; i++) {
|
|
1128
|
-
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
1129
|
-
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
1130
|
-
match = tempMatch;
|
|
1131
|
-
index = i;
|
|
1132
|
-
if (this.options.backtrack_lexer) {
|
|
1133
|
-
token = this.test_match(tempMatch, rules[i]);
|
|
1134
|
-
if (token !== false) {
|
|
1135
|
-
return token;
|
|
1136
|
-
} else if (this._backtrack) {
|
|
1137
|
-
match = false;
|
|
1138
|
-
continue;
|
|
1139
|
-
} else {
|
|
1140
|
-
return false;
|
|
1141
|
-
}
|
|
1142
|
-
} else if (!this.options.flex) {
|
|
1143
|
-
break;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
if (match) {
|
|
1148
|
-
token = this.test_match(match, rules[index]);
|
|
1149
|
-
if (token !== false) {
|
|
1150
|
-
return token;
|
|
1151
|
-
}
|
|
1152
|
-
return false;
|
|
1153
|
-
}
|
|
1154
|
-
if (this._input === "") {
|
|
1155
|
-
return this.EOF;
|
|
1156
|
-
} else {
|
|
1157
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1158
|
-
text: "",
|
|
1159
|
-
token: null,
|
|
1160
|
-
line: this.yylineno
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
}, "next"),
|
|
1164
|
-
// return next match that has a token
|
|
1165
|
-
lex: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function lex() {
|
|
1166
|
-
var r = this.next();
|
|
1167
|
-
if (r) {
|
|
1168
|
-
return r;
|
|
1169
|
-
} else {
|
|
1170
|
-
return this.lex();
|
|
1171
|
-
}
|
|
1172
|
-
}, "lex"),
|
|
1173
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
1174
|
-
begin: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function begin(condition) {
|
|
1175
|
-
this.conditionStack.push(condition);
|
|
1176
|
-
}, "begin"),
|
|
1177
|
-
// pop the previously active lexer condition state off the condition stack
|
|
1178
|
-
popState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function popState() {
|
|
1179
|
-
var n = this.conditionStack.length - 1;
|
|
1180
|
-
if (n > 0) {
|
|
1181
|
-
return this.conditionStack.pop();
|
|
1182
|
-
} else {
|
|
1183
|
-
return this.conditionStack[0];
|
|
1184
|
-
}
|
|
1185
|
-
}, "popState"),
|
|
1186
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
1187
|
-
_currentRules: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function _currentRules() {
|
|
1188
|
-
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
1189
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
1190
|
-
} else {
|
|
1191
|
-
return this.conditions["INITIAL"].rules;
|
|
1192
|
-
}
|
|
1193
|
-
}, "_currentRules"),
|
|
1194
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
1195
|
-
topState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function topState(n) {
|
|
1196
|
-
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
1197
|
-
if (n >= 0) {
|
|
1198
|
-
return this.conditionStack[n];
|
|
1199
|
-
} else {
|
|
1200
|
-
return "INITIAL";
|
|
1201
|
-
}
|
|
1202
|
-
}, "topState"),
|
|
1203
|
-
// alias for begin(condition)
|
|
1204
|
-
pushState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function pushState(condition) {
|
|
1205
|
-
this.begin(condition);
|
|
1206
|
-
}, "pushState"),
|
|
1207
|
-
// return the number of states currently on the stack
|
|
1208
|
-
stateStackSize: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function stateStackSize() {
|
|
1209
|
-
return this.conditionStack.length;
|
|
1210
|
-
}, "stateStackSize"),
|
|
1211
|
-
options: {},
|
|
1212
|
-
performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
1213
|
-
var YYSTATE = YY_START;
|
|
1214
|
-
switch ($avoiding_name_collisions) {
|
|
1215
|
-
case 0:
|
|
1216
|
-
return 10;
|
|
1217
|
-
break;
|
|
1218
|
-
case 1:
|
|
1219
|
-
yy.getLogger().debug("Found space-block");
|
|
1220
|
-
return 31;
|
|
1221
|
-
break;
|
|
1222
|
-
case 2:
|
|
1223
|
-
yy.getLogger().debug("Found nl-block");
|
|
1224
|
-
return 31;
|
|
1225
|
-
break;
|
|
1226
|
-
case 3:
|
|
1227
|
-
yy.getLogger().debug("Found space-block");
|
|
1228
|
-
return 29;
|
|
1229
|
-
break;
|
|
1230
|
-
case 4:
|
|
1231
|
-
yy.getLogger().debug(".", yy_.yytext);
|
|
1232
|
-
break;
|
|
1233
|
-
case 5:
|
|
1234
|
-
yy.getLogger().debug("_", yy_.yytext);
|
|
1235
|
-
break;
|
|
1236
|
-
case 6:
|
|
1237
|
-
return 5;
|
|
1238
|
-
break;
|
|
1239
|
-
case 7:
|
|
1240
|
-
yy_.yytext = -1;
|
|
1241
|
-
return 28;
|
|
1242
|
-
break;
|
|
1243
|
-
case 8:
|
|
1244
|
-
yy_.yytext = yy_.yytext.replace(/columns\s+/, "");
|
|
1245
|
-
yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
|
|
1246
|
-
return 28;
|
|
1247
|
-
break;
|
|
1248
|
-
case 9:
|
|
1249
|
-
this.pushState("md_string");
|
|
1250
|
-
break;
|
|
1251
|
-
case 10:
|
|
1252
|
-
return "MD_STR";
|
|
1253
|
-
break;
|
|
1254
|
-
case 11:
|
|
1255
|
-
this.popState();
|
|
1256
|
-
break;
|
|
1257
|
-
case 12:
|
|
1258
|
-
this.pushState("string");
|
|
1259
|
-
break;
|
|
1260
|
-
case 13:
|
|
1261
|
-
yy.getLogger().debug("LEX: POPPING STR:", yy_.yytext);
|
|
1262
|
-
this.popState();
|
|
1263
|
-
break;
|
|
1264
|
-
case 14:
|
|
1265
|
-
yy.getLogger().debug("LEX: STR end:", yy_.yytext);
|
|
1266
|
-
return "STR";
|
|
1267
|
-
break;
|
|
1268
|
-
case 15:
|
|
1269
|
-
yy_.yytext = yy_.yytext.replace(/space\:/, "");
|
|
1270
|
-
yy.getLogger().debug("SPACE NUM (LEX)", yy_.yytext);
|
|
1271
|
-
return 21;
|
|
1272
|
-
break;
|
|
1273
|
-
case 16:
|
|
1274
|
-
yy_.yytext = "1";
|
|
1275
|
-
yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
|
|
1276
|
-
return 21;
|
|
1277
|
-
break;
|
|
1278
|
-
case 17:
|
|
1279
|
-
return 43;
|
|
1280
|
-
break;
|
|
1281
|
-
case 18:
|
|
1282
|
-
return "LINKSTYLE";
|
|
1283
|
-
break;
|
|
1284
|
-
case 19:
|
|
1285
|
-
return "INTERPOLATE";
|
|
1286
|
-
break;
|
|
1287
|
-
case 20:
|
|
1288
|
-
this.pushState("CLASSDEF");
|
|
1289
|
-
return 40;
|
|
1290
|
-
break;
|
|
1291
|
-
case 21:
|
|
1292
|
-
this.popState();
|
|
1293
|
-
this.pushState("CLASSDEFID");
|
|
1294
|
-
return "DEFAULT_CLASSDEF_ID";
|
|
1295
|
-
break;
|
|
1296
|
-
case 22:
|
|
1297
|
-
this.popState();
|
|
1298
|
-
this.pushState("CLASSDEFID");
|
|
1299
|
-
return 41;
|
|
1300
|
-
break;
|
|
1301
|
-
case 23:
|
|
1302
|
-
this.popState();
|
|
1303
|
-
return 42;
|
|
1304
|
-
break;
|
|
1305
|
-
case 24:
|
|
1306
|
-
this.pushState("CLASS");
|
|
1307
|
-
return 44;
|
|
1308
|
-
break;
|
|
1309
|
-
case 25:
|
|
1310
|
-
this.popState();
|
|
1311
|
-
this.pushState("CLASS_STYLE");
|
|
1312
|
-
return 45;
|
|
1313
|
-
break;
|
|
1314
|
-
case 26:
|
|
1315
|
-
this.popState();
|
|
1316
|
-
return 46;
|
|
1317
|
-
break;
|
|
1318
|
-
case 27:
|
|
1319
|
-
this.pushState("STYLE_STMNT");
|
|
1320
|
-
return 47;
|
|
1321
|
-
break;
|
|
1322
|
-
case 28:
|
|
1323
|
-
this.popState();
|
|
1324
|
-
this.pushState("STYLE_DEFINITION");
|
|
1325
|
-
return 48;
|
|
1326
|
-
break;
|
|
1327
|
-
case 29:
|
|
1328
|
-
this.popState();
|
|
1329
|
-
return 49;
|
|
1330
|
-
break;
|
|
1331
|
-
case 30:
|
|
1332
|
-
this.pushState("acc_title");
|
|
1333
|
-
return "acc_title";
|
|
1334
|
-
break;
|
|
1335
|
-
case 31:
|
|
1336
|
-
this.popState();
|
|
1337
|
-
return "acc_title_value";
|
|
1338
|
-
break;
|
|
1339
|
-
case 32:
|
|
1340
|
-
this.pushState("acc_descr");
|
|
1341
|
-
return "acc_descr";
|
|
1342
|
-
break;
|
|
1343
|
-
case 33:
|
|
1344
|
-
this.popState();
|
|
1345
|
-
return "acc_descr_value";
|
|
1346
|
-
break;
|
|
1347
|
-
case 34:
|
|
1348
|
-
this.pushState("acc_descr_multiline");
|
|
1349
|
-
break;
|
|
1350
|
-
case 35:
|
|
1351
|
-
this.popState();
|
|
1352
|
-
break;
|
|
1353
|
-
case 36:
|
|
1354
|
-
return "acc_descr_multiline_value";
|
|
1355
|
-
break;
|
|
1356
|
-
case 37:
|
|
1357
|
-
return 30;
|
|
1358
|
-
break;
|
|
1359
|
-
case 38:
|
|
1360
|
-
this.popState();
|
|
1361
|
-
yy.getLogger().debug("Lex: ((");
|
|
1362
|
-
return "NODE_DEND";
|
|
1363
|
-
break;
|
|
1364
|
-
case 39:
|
|
1365
|
-
this.popState();
|
|
1366
|
-
yy.getLogger().debug("Lex: ((");
|
|
1367
|
-
return "NODE_DEND";
|
|
1368
|
-
break;
|
|
1369
|
-
case 40:
|
|
1370
|
-
this.popState();
|
|
1371
|
-
yy.getLogger().debug("Lex: ))");
|
|
1372
|
-
return "NODE_DEND";
|
|
1373
|
-
break;
|
|
1374
|
-
case 41:
|
|
1375
|
-
this.popState();
|
|
1376
|
-
yy.getLogger().debug("Lex: ((");
|
|
1377
|
-
return "NODE_DEND";
|
|
1378
|
-
break;
|
|
1379
|
-
case 42:
|
|
1380
|
-
this.popState();
|
|
1381
|
-
yy.getLogger().debug("Lex: ((");
|
|
1382
|
-
return "NODE_DEND";
|
|
1383
|
-
break;
|
|
1384
|
-
case 43:
|
|
1385
|
-
this.popState();
|
|
1386
|
-
yy.getLogger().debug("Lex: (-");
|
|
1387
|
-
return "NODE_DEND";
|
|
1388
|
-
break;
|
|
1389
|
-
case 44:
|
|
1390
|
-
this.popState();
|
|
1391
|
-
yy.getLogger().debug("Lex: -)");
|
|
1392
|
-
return "NODE_DEND";
|
|
1393
|
-
break;
|
|
1394
|
-
case 45:
|
|
1395
|
-
this.popState();
|
|
1396
|
-
yy.getLogger().debug("Lex: ((");
|
|
1397
|
-
return "NODE_DEND";
|
|
1398
|
-
break;
|
|
1399
|
-
case 46:
|
|
1400
|
-
this.popState();
|
|
1401
|
-
yy.getLogger().debug("Lex: ]]");
|
|
1402
|
-
return "NODE_DEND";
|
|
1403
|
-
break;
|
|
1404
|
-
case 47:
|
|
1405
|
-
this.popState();
|
|
1406
|
-
yy.getLogger().debug("Lex: (");
|
|
1407
|
-
return "NODE_DEND";
|
|
1408
|
-
break;
|
|
1409
|
-
case 48:
|
|
1410
|
-
this.popState();
|
|
1411
|
-
yy.getLogger().debug("Lex: ])");
|
|
1412
|
-
return "NODE_DEND";
|
|
1413
|
-
break;
|
|
1414
|
-
case 49:
|
|
1415
|
-
this.popState();
|
|
1416
|
-
yy.getLogger().debug("Lex: /]");
|
|
1417
|
-
return "NODE_DEND";
|
|
1418
|
-
break;
|
|
1419
|
-
case 50:
|
|
1420
|
-
this.popState();
|
|
1421
|
-
yy.getLogger().debug("Lex: /]");
|
|
1422
|
-
return "NODE_DEND";
|
|
1423
|
-
break;
|
|
1424
|
-
case 51:
|
|
1425
|
-
this.popState();
|
|
1426
|
-
yy.getLogger().debug("Lex: )]");
|
|
1427
|
-
return "NODE_DEND";
|
|
1428
|
-
break;
|
|
1429
|
-
case 52:
|
|
1430
|
-
this.popState();
|
|
1431
|
-
yy.getLogger().debug("Lex: )");
|
|
1432
|
-
return "NODE_DEND";
|
|
1433
|
-
break;
|
|
1434
|
-
case 53:
|
|
1435
|
-
this.popState();
|
|
1436
|
-
yy.getLogger().debug("Lex: ]>");
|
|
1437
|
-
return "NODE_DEND";
|
|
1438
|
-
break;
|
|
1439
|
-
case 54:
|
|
1440
|
-
this.popState();
|
|
1441
|
-
yy.getLogger().debug("Lex: ]");
|
|
1442
|
-
return "NODE_DEND";
|
|
1443
|
-
break;
|
|
1444
|
-
case 55:
|
|
1445
|
-
yy.getLogger().debug("Lexa: -)");
|
|
1446
|
-
this.pushState("NODE");
|
|
1447
|
-
return 36;
|
|
1448
|
-
break;
|
|
1449
|
-
case 56:
|
|
1450
|
-
yy.getLogger().debug("Lexa: (-");
|
|
1451
|
-
this.pushState("NODE");
|
|
1452
|
-
return 36;
|
|
1453
|
-
break;
|
|
1454
|
-
case 57:
|
|
1455
|
-
yy.getLogger().debug("Lexa: ))");
|
|
1456
|
-
this.pushState("NODE");
|
|
1457
|
-
return 36;
|
|
1458
|
-
break;
|
|
1459
|
-
case 58:
|
|
1460
|
-
yy.getLogger().debug("Lexa: )");
|
|
1461
|
-
this.pushState("NODE");
|
|
1462
|
-
return 36;
|
|
1463
|
-
break;
|
|
1464
|
-
case 59:
|
|
1465
|
-
yy.getLogger().debug("Lex: (((");
|
|
1466
|
-
this.pushState("NODE");
|
|
1467
|
-
return 36;
|
|
1468
|
-
break;
|
|
1469
|
-
case 60:
|
|
1470
|
-
yy.getLogger().debug("Lexa: )");
|
|
1471
|
-
this.pushState("NODE");
|
|
1472
|
-
return 36;
|
|
1473
|
-
break;
|
|
1474
|
-
case 61:
|
|
1475
|
-
yy.getLogger().debug("Lexa: )");
|
|
1476
|
-
this.pushState("NODE");
|
|
1477
|
-
return 36;
|
|
1478
|
-
break;
|
|
1479
|
-
case 62:
|
|
1480
|
-
yy.getLogger().debug("Lexa: )");
|
|
1481
|
-
this.pushState("NODE");
|
|
1482
|
-
return 36;
|
|
1483
|
-
break;
|
|
1484
|
-
case 63:
|
|
1485
|
-
yy.getLogger().debug("Lexc: >");
|
|
1486
|
-
this.pushState("NODE");
|
|
1487
|
-
return 36;
|
|
1488
|
-
break;
|
|
1489
|
-
case 64:
|
|
1490
|
-
yy.getLogger().debug("Lexa: ([");
|
|
1491
|
-
this.pushState("NODE");
|
|
1492
|
-
return 36;
|
|
1493
|
-
break;
|
|
1494
|
-
case 65:
|
|
1495
|
-
yy.getLogger().debug("Lexa: )");
|
|
1496
|
-
this.pushState("NODE");
|
|
1497
|
-
return 36;
|
|
1498
|
-
break;
|
|
1499
|
-
case 66:
|
|
1500
|
-
this.pushState("NODE");
|
|
1501
|
-
return 36;
|
|
1502
|
-
break;
|
|
1503
|
-
case 67:
|
|
1504
|
-
this.pushState("NODE");
|
|
1505
|
-
return 36;
|
|
1506
|
-
break;
|
|
1507
|
-
case 68:
|
|
1508
|
-
this.pushState("NODE");
|
|
1509
|
-
return 36;
|
|
1510
|
-
break;
|
|
1511
|
-
case 69:
|
|
1512
|
-
this.pushState("NODE");
|
|
1513
|
-
return 36;
|
|
1514
|
-
break;
|
|
1515
|
-
case 70:
|
|
1516
|
-
this.pushState("NODE");
|
|
1517
|
-
return 36;
|
|
1518
|
-
break;
|
|
1519
|
-
case 71:
|
|
1520
|
-
this.pushState("NODE");
|
|
1521
|
-
return 36;
|
|
1522
|
-
break;
|
|
1523
|
-
case 72:
|
|
1524
|
-
this.pushState("NODE");
|
|
1525
|
-
return 36;
|
|
1526
|
-
break;
|
|
1527
|
-
case 73:
|
|
1528
|
-
yy.getLogger().debug("Lexa: [");
|
|
1529
|
-
this.pushState("NODE");
|
|
1530
|
-
return 36;
|
|
1531
|
-
break;
|
|
1532
|
-
case 74:
|
|
1533
|
-
this.pushState("BLOCK_ARROW");
|
|
1534
|
-
yy.getLogger().debug("LEX ARR START");
|
|
1535
|
-
return 38;
|
|
1536
|
-
break;
|
|
1537
|
-
case 75:
|
|
1538
|
-
yy.getLogger().debug("Lex: NODE_ID", yy_.yytext);
|
|
1539
|
-
return 32;
|
|
1540
|
-
break;
|
|
1541
|
-
case 76:
|
|
1542
|
-
yy.getLogger().debug("Lex: EOF", yy_.yytext);
|
|
1543
|
-
return 8;
|
|
1544
|
-
break;
|
|
1545
|
-
case 77:
|
|
1546
|
-
this.pushState("md_string");
|
|
1547
|
-
break;
|
|
1548
|
-
case 78:
|
|
1549
|
-
this.pushState("md_string");
|
|
1550
|
-
break;
|
|
1551
|
-
case 79:
|
|
1552
|
-
return "NODE_DESCR";
|
|
1553
|
-
break;
|
|
1554
|
-
case 80:
|
|
1555
|
-
this.popState();
|
|
1556
|
-
break;
|
|
1557
|
-
case 81:
|
|
1558
|
-
yy.getLogger().debug("Lex: Starting string");
|
|
1559
|
-
this.pushState("string");
|
|
1560
|
-
break;
|
|
1561
|
-
case 82:
|
|
1562
|
-
yy.getLogger().debug("LEX ARR: Starting string");
|
|
1563
|
-
this.pushState("string");
|
|
1564
|
-
break;
|
|
1565
|
-
case 83:
|
|
1566
|
-
yy.getLogger().debug("LEX: NODE_DESCR:", yy_.yytext);
|
|
1567
|
-
return "NODE_DESCR";
|
|
1568
|
-
break;
|
|
1569
|
-
case 84:
|
|
1570
|
-
yy.getLogger().debug("LEX POPPING");
|
|
1571
|
-
this.popState();
|
|
1572
|
-
break;
|
|
1573
|
-
case 85:
|
|
1574
|
-
yy.getLogger().debug("Lex: =>BAE");
|
|
1575
|
-
this.pushState("ARROW_DIR");
|
|
1576
|
-
break;
|
|
1577
|
-
case 86:
|
|
1578
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1579
|
-
yy.getLogger().debug("Lex (right): dir:", yy_.yytext);
|
|
1580
|
-
return "DIR";
|
|
1581
|
-
break;
|
|
1582
|
-
case 87:
|
|
1583
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1584
|
-
yy.getLogger().debug("Lex (left):", yy_.yytext);
|
|
1585
|
-
return "DIR";
|
|
1586
|
-
break;
|
|
1587
|
-
case 88:
|
|
1588
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1589
|
-
yy.getLogger().debug("Lex (x):", yy_.yytext);
|
|
1590
|
-
return "DIR";
|
|
1591
|
-
break;
|
|
1592
|
-
case 89:
|
|
1593
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1594
|
-
yy.getLogger().debug("Lex (y):", yy_.yytext);
|
|
1595
|
-
return "DIR";
|
|
1596
|
-
break;
|
|
1597
|
-
case 90:
|
|
1598
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1599
|
-
yy.getLogger().debug("Lex (up):", yy_.yytext);
|
|
1600
|
-
return "DIR";
|
|
1601
|
-
break;
|
|
1602
|
-
case 91:
|
|
1603
|
-
yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
|
|
1604
|
-
yy.getLogger().debug("Lex (down):", yy_.yytext);
|
|
1605
|
-
return "DIR";
|
|
1606
|
-
break;
|
|
1607
|
-
case 92:
|
|
1608
|
-
yy_.yytext = "]>";
|
|
1609
|
-
yy.getLogger().debug("Lex (ARROW_DIR end):", yy_.yytext);
|
|
1610
|
-
this.popState();
|
|
1611
|
-
this.popState();
|
|
1612
|
-
return "BLOCK_ARROW_END";
|
|
1613
|
-
break;
|
|
1614
|
-
case 93:
|
|
1615
|
-
yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
|
|
1616
|
-
return 15;
|
|
1617
|
-
break;
|
|
1618
|
-
case 94:
|
|
1619
|
-
yy.getLogger().debug("Lex: LINK", yy_.yytext);
|
|
1620
|
-
return 15;
|
|
1621
|
-
break;
|
|
1622
|
-
case 95:
|
|
1623
|
-
yy.getLogger().debug("Lex: LINK", yy_.yytext);
|
|
1624
|
-
return 15;
|
|
1625
|
-
break;
|
|
1626
|
-
case 96:
|
|
1627
|
-
yy.getLogger().debug("Lex: LINK", yy_.yytext);
|
|
1628
|
-
return 15;
|
|
1629
|
-
break;
|
|
1630
|
-
case 97:
|
|
1631
|
-
yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
|
|
1632
|
-
this.pushState("LLABEL");
|
|
1633
|
-
return 16;
|
|
1634
|
-
break;
|
|
1635
|
-
case 98:
|
|
1636
|
-
yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
|
|
1637
|
-
this.pushState("LLABEL");
|
|
1638
|
-
return 16;
|
|
1639
|
-
break;
|
|
1640
|
-
case 99:
|
|
1641
|
-
yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
|
|
1642
|
-
this.pushState("LLABEL");
|
|
1643
|
-
return 16;
|
|
1644
|
-
break;
|
|
1645
|
-
case 100:
|
|
1646
|
-
this.pushState("md_string");
|
|
1647
|
-
break;
|
|
1648
|
-
case 101:
|
|
1649
|
-
yy.getLogger().debug("Lex: Starting string");
|
|
1650
|
-
this.pushState("string");
|
|
1651
|
-
return "LINK_LABEL";
|
|
1652
|
-
break;
|
|
1653
|
-
case 102:
|
|
1654
|
-
this.popState();
|
|
1655
|
-
yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
|
|
1656
|
-
return 15;
|
|
1657
|
-
break;
|
|
1658
|
-
case 103:
|
|
1659
|
-
this.popState();
|
|
1660
|
-
yy.getLogger().debug("Lex: LINK", yy_.yytext);
|
|
1661
|
-
return 15;
|
|
1662
|
-
break;
|
|
1663
|
-
case 104:
|
|
1664
|
-
this.popState();
|
|
1665
|
-
yy.getLogger().debug("Lex: LINK", yy_.yytext);
|
|
1666
|
-
return 15;
|
|
1667
|
-
break;
|
|
1668
|
-
case 105:
|
|
1669
|
-
yy.getLogger().debug("Lex: COLON", yy_.yytext);
|
|
1670
|
-
yy_.yytext = yy_.yytext.slice(1);
|
|
1671
|
-
return 27;
|
|
1672
|
-
break;
|
|
1673
|
-
}
|
|
1674
|
-
}, "anonymous"),
|
|
1675
|
-
rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
|
|
1676
|
-
conditions: { "STYLE_DEFINITION": { "rules": [29], "inclusive": false }, "STYLE_STMNT": { "rules": [28], "inclusive": false }, "CLASSDEFID": { "rules": [23], "inclusive": false }, "CLASSDEF": { "rules": [21, 22], "inclusive": false }, "CLASS_STYLE": { "rules": [26], "inclusive": false }, "CLASS": { "rules": [25], "inclusive": false }, "LLABEL": { "rules": [100, 101, 102, 103, 104], "inclusive": false }, "ARROW_DIR": { "rules": [86, 87, 88, 89, 90, 91, 92], "inclusive": false }, "BLOCK_ARROW": { "rules": [77, 82, 85], "inclusive": false }, "NODE": { "rules": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], "inclusive": false }, "md_string": { "rules": [10, 11, 79, 80], "inclusive": false }, "space": { "rules": [], "inclusive": false }, "string": { "rules": [13, 14, 83, 84], "inclusive": false }, "acc_descr_multiline": { "rules": [35, 36], "inclusive": false }, "acc_descr": { "rules": [33], "inclusive": false }, "acc_title": { "rules": [31], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], "inclusive": true } }
|
|
1677
|
-
};
|
|
1678
|
-
return lexer2;
|
|
1679
|
-
}();
|
|
1680
|
-
parser2.lexer = lexer;
|
|
1681
|
-
function Parser() {
|
|
1682
|
-
this.yy = {};
|
|
1683
|
-
}
|
|
1684
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(Parser, "Parser");
|
|
1685
|
-
Parser.prototype = parser2;
|
|
1686
|
-
parser2.Parser = Parser;
|
|
1687
|
-
return new Parser();
|
|
1688
|
-
}();
|
|
1689
|
-
parser.parser = parser;
|
|
1690
|
-
var block_default = parser;
|
|
1691
|
-
|
|
1692
|
-
// src/diagrams/block/blockDB.ts
|
|
1693
|
-
|
|
1694
|
-
var blockDatabase = /* @__PURE__ */ new Map();
|
|
1695
|
-
var edgeList = [];
|
|
1696
|
-
var edgeCount = /* @__PURE__ */ new Map();
|
|
1697
|
-
var COLOR_KEYWORD = "color";
|
|
1698
|
-
var FILL_KEYWORD = "fill";
|
|
1699
|
-
var BG_FILL = "bgFill";
|
|
1700
|
-
var STYLECLASS_SEP = ",";
|
|
1701
|
-
var config = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)();
|
|
1702
|
-
var classes = /* @__PURE__ */ new Map();
|
|
1703
|
-
var sanitizeText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((txt) => _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.sanitizeText(txt, config), "sanitizeText");
|
|
1704
|
-
var addStyleClass = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(id, styleAttributes = "") {
|
|
1705
|
-
let foundClass = classes.get(id);
|
|
1706
|
-
if (!foundClass) {
|
|
1707
|
-
foundClass = { id, styles: [], textStyles: [] };
|
|
1708
|
-
classes.set(id, foundClass);
|
|
1709
|
-
}
|
|
1710
|
-
if (styleAttributes !== void 0 && styleAttributes !== null) {
|
|
1711
|
-
styleAttributes.split(STYLECLASS_SEP).forEach((attrib) => {
|
|
1712
|
-
const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
|
|
1713
|
-
if (RegExp(COLOR_KEYWORD).exec(attrib)) {
|
|
1714
|
-
const newStyle1 = fixedAttrib.replace(FILL_KEYWORD, BG_FILL);
|
|
1715
|
-
const newStyle2 = newStyle1.replace(COLOR_KEYWORD, FILL_KEYWORD);
|
|
1716
|
-
foundClass.textStyles.push(newStyle2);
|
|
1717
|
-
}
|
|
1718
|
-
foundClass.styles.push(fixedAttrib);
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
}, "addStyleClass");
|
|
1722
|
-
var addStyle2Node = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(id, styles = "") {
|
|
1723
|
-
const foundBlock = blockDatabase.get(id);
|
|
1724
|
-
if (styles !== void 0 && styles !== null) {
|
|
1725
|
-
foundBlock.styles = styles.split(STYLECLASS_SEP);
|
|
1726
|
-
}
|
|
1727
|
-
}, "addStyle2Node");
|
|
1728
|
-
var setCssClass = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(itemIds, cssClassName) {
|
|
1729
|
-
itemIds.split(",").forEach(function(id) {
|
|
1730
|
-
let foundBlock = blockDatabase.get(id);
|
|
1731
|
-
if (foundBlock === void 0) {
|
|
1732
|
-
const trimmedId = id.trim();
|
|
1733
|
-
foundBlock = { id: trimmedId, type: "na", children: [] };
|
|
1734
|
-
blockDatabase.set(trimmedId, foundBlock);
|
|
1735
|
-
}
|
|
1736
|
-
if (!foundBlock.classes) {
|
|
1737
|
-
foundBlock.classes = [];
|
|
1738
|
-
}
|
|
1739
|
-
foundBlock.classes.push(cssClassName);
|
|
1740
|
-
});
|
|
1741
|
-
}, "setCssClass");
|
|
1742
|
-
var populateBlockDatabase = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((_blockList, parent) => {
|
|
1743
|
-
const blockList = _blockList.flat();
|
|
1744
|
-
const children = [];
|
|
1745
|
-
for (const block of blockList) {
|
|
1746
|
-
if (block.label) {
|
|
1747
|
-
block.label = sanitizeText(block.label);
|
|
1748
|
-
}
|
|
1749
|
-
if (block.type === "classDef") {
|
|
1750
|
-
addStyleClass(block.id, block.css);
|
|
1751
|
-
continue;
|
|
1752
|
-
}
|
|
1753
|
-
if (block.type === "applyClass") {
|
|
1754
|
-
setCssClass(block.id, block?.styleClass ?? "");
|
|
1755
|
-
continue;
|
|
1756
|
-
}
|
|
1757
|
-
if (block.type === "applyStyles") {
|
|
1758
|
-
if (block?.stylesStr) {
|
|
1759
|
-
addStyle2Node(block.id, block?.stylesStr);
|
|
1760
|
-
}
|
|
1761
|
-
continue;
|
|
1762
|
-
}
|
|
1763
|
-
if (block.type === "column-setting") {
|
|
1764
|
-
parent.columns = block.columns ?? -1;
|
|
1765
|
-
} else if (block.type === "edge") {
|
|
1766
|
-
const count = (edgeCount.get(block.id) ?? 0) + 1;
|
|
1767
|
-
edgeCount.set(block.id, count);
|
|
1768
|
-
block.id = count + "-" + block.id;
|
|
1769
|
-
edgeList.push(block);
|
|
1770
|
-
} else {
|
|
1771
|
-
if (!block.label) {
|
|
1772
|
-
if (block.type === "composite") {
|
|
1773
|
-
block.label = "";
|
|
1774
|
-
} else {
|
|
1775
|
-
block.label = block.id;
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
const existingBlock = blockDatabase.get(block.id);
|
|
1779
|
-
if (existingBlock === void 0) {
|
|
1780
|
-
blockDatabase.set(block.id, block);
|
|
1781
|
-
} else {
|
|
1782
|
-
if (block.type !== "na") {
|
|
1783
|
-
existingBlock.type = block.type;
|
|
1784
|
-
}
|
|
1785
|
-
if (block.label !== block.id) {
|
|
1786
|
-
existingBlock.label = block.label;
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
if (block.children) {
|
|
1790
|
-
populateBlockDatabase(block.children, block);
|
|
1791
|
-
}
|
|
1792
|
-
if (block.type === "space") {
|
|
1793
|
-
const w = block.width ?? 1;
|
|
1794
|
-
for (let j = 0; j < w; j++) {
|
|
1795
|
-
const newBlock = (0,lodash_es_clone_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(block);
|
|
1796
|
-
newBlock.id = newBlock.id + "-" + j;
|
|
1797
|
-
blockDatabase.set(newBlock.id, newBlock);
|
|
1798
|
-
children.push(newBlock);
|
|
1799
|
-
}
|
|
1800
|
-
} else if (existingBlock === void 0) {
|
|
1801
|
-
children.push(block);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
parent.children = children;
|
|
1806
|
-
}, "populateBlockDatabase");
|
|
1807
|
-
var blocks = [];
|
|
1808
|
-
var rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
|
|
1809
|
-
var clear2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => {
|
|
1810
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("Clear called");
|
|
1811
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .clear */ .IU)();
|
|
1812
|
-
rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
|
|
1813
|
-
blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]);
|
|
1814
|
-
blocks = [];
|
|
1815
|
-
classes = /* @__PURE__ */ new Map();
|
|
1816
|
-
edgeList = [];
|
|
1817
|
-
edgeCount = /* @__PURE__ */ new Map();
|
|
1818
|
-
}, "clear");
|
|
1819
|
-
function typeStr2Type(typeStr) {
|
|
1820
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("typeStr2Type", typeStr);
|
|
1821
|
-
switch (typeStr) {
|
|
1822
|
-
case "[]":
|
|
1823
|
-
return "square";
|
|
1824
|
-
case "()":
|
|
1825
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("we have a round");
|
|
1826
|
-
return "round";
|
|
1827
|
-
case "(())":
|
|
1828
|
-
return "circle";
|
|
1829
|
-
case ">]":
|
|
1830
|
-
return "rect_left_inv_arrow";
|
|
1831
|
-
case "{}":
|
|
1832
|
-
return "diamond";
|
|
1833
|
-
case "{{}}":
|
|
1834
|
-
return "hexagon";
|
|
1835
|
-
case "([])":
|
|
1836
|
-
return "stadium";
|
|
1837
|
-
case "[[]]":
|
|
1838
|
-
return "subroutine";
|
|
1839
|
-
case "[()]":
|
|
1840
|
-
return "cylinder";
|
|
1841
|
-
case "((()))":
|
|
1842
|
-
return "doublecircle";
|
|
1843
|
-
case "[//]":
|
|
1844
|
-
return "lean_right";
|
|
1845
|
-
case "[\\\\]":
|
|
1846
|
-
return "lean_left";
|
|
1847
|
-
case "[/\\]":
|
|
1848
|
-
return "trapezoid";
|
|
1849
|
-
case "[\\/]":
|
|
1850
|
-
return "inv_trapezoid";
|
|
1851
|
-
case "<[]>":
|
|
1852
|
-
return "block_arrow";
|
|
1853
|
-
default:
|
|
1854
|
-
return "na";
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(typeStr2Type, "typeStr2Type");
|
|
1858
|
-
function edgeTypeStr2Type(typeStr) {
|
|
1859
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("typeStr2Type", typeStr);
|
|
1860
|
-
switch (typeStr) {
|
|
1861
|
-
case "==":
|
|
1862
|
-
return "thick";
|
|
1863
|
-
default:
|
|
1864
|
-
return "normal";
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(edgeTypeStr2Type, "edgeTypeStr2Type");
|
|
1868
|
-
function edgeStrToEdgeData(typeStr) {
|
|
1869
|
-
switch (typeStr.trim()) {
|
|
1870
|
-
case "--x":
|
|
1871
|
-
return "arrow_cross";
|
|
1872
|
-
case "--o":
|
|
1873
|
-
return "arrow_circle";
|
|
1874
|
-
default:
|
|
1875
|
-
return "arrow_point";
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(edgeStrToEdgeData, "edgeStrToEdgeData");
|
|
1879
|
-
var cnt = 0;
|
|
1880
|
-
var generateId = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => {
|
|
1881
|
-
cnt++;
|
|
1882
|
-
return "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt;
|
|
1883
|
-
}, "generateId");
|
|
1884
|
-
var setHierarchy = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((block) => {
|
|
1885
|
-
rootBlock.children = block;
|
|
1886
|
-
populateBlockDatabase(block, rootBlock);
|
|
1887
|
-
blocks = rootBlock.children;
|
|
1888
|
-
}, "setHierarchy");
|
|
1889
|
-
var getColumns = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((blockId) => {
|
|
1890
|
-
const block = blockDatabase.get(blockId);
|
|
1891
|
-
if (!block) {
|
|
1892
|
-
return -1;
|
|
1893
|
-
}
|
|
1894
|
-
if (block.columns) {
|
|
1895
|
-
return block.columns;
|
|
1896
|
-
}
|
|
1897
|
-
if (!block.children) {
|
|
1898
|
-
return -1;
|
|
1899
|
-
}
|
|
1900
|
-
return block.children.length;
|
|
1901
|
-
}, "getColumns");
|
|
1902
|
-
var getBlocksFlat = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => {
|
|
1903
|
-
return [...blockDatabase.values()];
|
|
1904
|
-
}, "getBlocksFlat");
|
|
1905
|
-
var getBlocks = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => {
|
|
1906
|
-
return blocks || [];
|
|
1907
|
-
}, "getBlocks");
|
|
1908
|
-
var getEdges = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => {
|
|
1909
|
-
return edgeList;
|
|
1910
|
-
}, "getEdges");
|
|
1911
|
-
var getBlock = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((id) => {
|
|
1912
|
-
return blockDatabase.get(id);
|
|
1913
|
-
}, "getBlock");
|
|
1914
|
-
var setBlock = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((block) => {
|
|
1915
|
-
blockDatabase.set(block.id, block);
|
|
1916
|
-
}, "setBlock");
|
|
1917
|
-
var getLogger = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => console, "getLogger");
|
|
1918
|
-
var getClasses = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function() {
|
|
1919
|
-
return classes;
|
|
1920
|
-
}, "getClasses");
|
|
1921
|
-
var db = {
|
|
1922
|
-
getConfig: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(() => (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)().block, "getConfig"),
|
|
1923
|
-
typeStr2Type,
|
|
1924
|
-
edgeTypeStr2Type,
|
|
1925
|
-
edgeStrToEdgeData,
|
|
1926
|
-
getLogger,
|
|
1927
|
-
getBlocksFlat,
|
|
1928
|
-
getBlocks,
|
|
1929
|
-
getEdges,
|
|
1930
|
-
setHierarchy,
|
|
1931
|
-
getBlock,
|
|
1932
|
-
setBlock,
|
|
1933
|
-
getColumns,
|
|
1934
|
-
getClasses,
|
|
1935
|
-
clear: clear2,
|
|
1936
|
-
generateId
|
|
1937
|
-
};
|
|
1938
|
-
var blockDB_default = db;
|
|
1939
|
-
|
|
1940
|
-
// src/diagrams/block/styles.ts
|
|
1941
|
-
|
|
1942
|
-
var fade = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((color, opacity) => {
|
|
1943
|
-
const channel2 = khroma__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A;
|
|
1944
|
-
const r = channel2(color, "r");
|
|
1945
|
-
const g = channel2(color, "g");
|
|
1946
|
-
const b = channel2(color, "b");
|
|
1947
|
-
return khroma__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A(r, g, b, opacity);
|
|
1948
|
-
}, "fade");
|
|
1949
|
-
var getStyles = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((options) => `.label {
|
|
1950
|
-
font-family: ${options.fontFamily};
|
|
1951
|
-
color: ${options.nodeTextColor || options.textColor};
|
|
1952
|
-
}
|
|
1953
|
-
.cluster-label text {
|
|
1954
|
-
fill: ${options.titleColor};
|
|
1955
|
-
}
|
|
1956
|
-
.cluster-label span,p {
|
|
1957
|
-
color: ${options.titleColor};
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
.label text,span,p {
|
|
1963
|
-
fill: ${options.nodeTextColor || options.textColor};
|
|
1964
|
-
color: ${options.nodeTextColor || options.textColor};
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.node rect,
|
|
1968
|
-
.node circle,
|
|
1969
|
-
.node ellipse,
|
|
1970
|
-
.node polygon,
|
|
1971
|
-
.node path {
|
|
1972
|
-
fill: ${options.mainBkg};
|
|
1973
|
-
stroke: ${options.nodeBorder};
|
|
1974
|
-
stroke-width: 1px;
|
|
1975
|
-
}
|
|
1976
|
-
.flowchart-label text {
|
|
1977
|
-
text-anchor: middle;
|
|
1978
|
-
}
|
|
1979
|
-
// .flowchart-label .text-outer-tspan {
|
|
1980
|
-
// text-anchor: middle;
|
|
1981
|
-
// }
|
|
1982
|
-
// .flowchart-label .text-inner-tspan {
|
|
1983
|
-
// text-anchor: start;
|
|
1984
|
-
// }
|
|
1985
|
-
|
|
1986
|
-
.node .label {
|
|
1987
|
-
text-align: center;
|
|
1988
|
-
}
|
|
1989
|
-
.node.clickable {
|
|
1990
|
-
cursor: pointer;
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
.arrowheadPath {
|
|
1994
|
-
fill: ${options.arrowheadColor};
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
.edgePath .path {
|
|
1998
|
-
stroke: ${options.lineColor};
|
|
1999
|
-
stroke-width: 2.0px;
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
.flowchart-link {
|
|
2003
|
-
stroke: ${options.lineColor};
|
|
2004
|
-
fill: none;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
.edgeLabel {
|
|
2008
|
-
background-color: ${options.edgeLabelBackground};
|
|
2009
|
-
rect {
|
|
2010
|
-
opacity: 0.5;
|
|
2011
|
-
background-color: ${options.edgeLabelBackground};
|
|
2012
|
-
fill: ${options.edgeLabelBackground};
|
|
2013
|
-
}
|
|
2014
|
-
text-align: center;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
/* For html labels only */
|
|
2018
|
-
.labelBkg {
|
|
2019
|
-
background-color: ${fade(options.edgeLabelBackground, 0.5)};
|
|
2020
|
-
// background-color:
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
.node .cluster {
|
|
2024
|
-
// fill: ${fade(options.mainBkg, 0.5)};
|
|
2025
|
-
fill: ${fade(options.clusterBkg, 0.5)};
|
|
2026
|
-
stroke: ${fade(options.clusterBorder, 0.2)};
|
|
2027
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
2028
|
-
stroke-width: 1px;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
.cluster text {
|
|
2032
|
-
fill: ${options.titleColor};
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
.cluster span,p {
|
|
2036
|
-
color: ${options.titleColor};
|
|
2037
|
-
}
|
|
2038
|
-
/* .cluster div {
|
|
2039
|
-
color: ${options.titleColor};
|
|
2040
|
-
} */
|
|
2041
|
-
|
|
2042
|
-
div.mermaidTooltip {
|
|
2043
|
-
position: absolute;
|
|
2044
|
-
text-align: center;
|
|
2045
|
-
max-width: 200px;
|
|
2046
|
-
padding: 2px;
|
|
2047
|
-
font-family: ${options.fontFamily};
|
|
2048
|
-
font-size: 12px;
|
|
2049
|
-
background: ${options.tertiaryColor};
|
|
2050
|
-
border: 1px solid ${options.border2};
|
|
2051
|
-
border-radius: 2px;
|
|
2052
|
-
pointer-events: none;
|
|
2053
|
-
z-index: 100;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
.flowchartTitleText {
|
|
2057
|
-
text-anchor: middle;
|
|
2058
|
-
font-size: 18px;
|
|
2059
|
-
fill: ${options.textColor};
|
|
2060
|
-
}
|
|
2061
|
-
`, "getStyles");
|
|
2062
|
-
var styles_default = getStyles;
|
|
2063
|
-
|
|
2064
|
-
// src/diagrams/block/blockRenderer.ts
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
// src/diagrams/block/layout.ts
|
|
2068
|
-
var padding = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()?.block?.padding ?? 8;
|
|
2069
|
-
function calculateBlockPosition(columns, position) {
|
|
2070
|
-
if (columns === 0 || !Number.isInteger(columns)) {
|
|
2071
|
-
throw new Error("Columns must be an integer !== 0.");
|
|
2072
|
-
}
|
|
2073
|
-
if (position < 0 || !Number.isInteger(position)) {
|
|
2074
|
-
throw new Error("Position must be a non-negative integer." + position);
|
|
2075
|
-
}
|
|
2076
|
-
if (columns < 0) {
|
|
2077
|
-
return { px: position, py: 0 };
|
|
2078
|
-
}
|
|
2079
|
-
if (columns === 1) {
|
|
2080
|
-
return { px: 0, py: position };
|
|
2081
|
-
}
|
|
2082
|
-
const px = position % columns;
|
|
2083
|
-
const py = Math.floor(position / columns);
|
|
2084
|
-
return { px, py };
|
|
2085
|
-
}
|
|
2086
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(calculateBlockPosition, "calculateBlockPosition");
|
|
2087
|
-
var getMaxChildSize = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)((block) => {
|
|
2088
|
-
let maxWidth = 0;
|
|
2089
|
-
let maxHeight = 0;
|
|
2090
|
-
for (const child of block.children) {
|
|
2091
|
-
const { width, height, x, y } = child.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
2092
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2093
|
-
"getMaxChildSize abc95 child:",
|
|
2094
|
-
child.id,
|
|
2095
|
-
"width:",
|
|
2096
|
-
width,
|
|
2097
|
-
"height:",
|
|
2098
|
-
height,
|
|
2099
|
-
"x:",
|
|
2100
|
-
x,
|
|
2101
|
-
"y:",
|
|
2102
|
-
y,
|
|
2103
|
-
child.type
|
|
2104
|
-
);
|
|
2105
|
-
if (child.type === "space") {
|
|
2106
|
-
continue;
|
|
2107
|
-
}
|
|
2108
|
-
if (width > maxWidth) {
|
|
2109
|
-
maxWidth = width / (block.widthInColumns ?? 1);
|
|
2110
|
-
}
|
|
2111
|
-
if (height > maxHeight) {
|
|
2112
|
-
maxHeight = height;
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
return { width: maxWidth, height: maxHeight };
|
|
2116
|
-
}, "getMaxChildSize");
|
|
2117
|
-
function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
|
|
2118
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2119
|
-
"setBlockSizes abc95 (start)",
|
|
2120
|
-
block.id,
|
|
2121
|
-
block?.size?.x,
|
|
2122
|
-
"block width =",
|
|
2123
|
-
block?.size,
|
|
2124
|
-
"sieblingWidth",
|
|
2125
|
-
siblingWidth
|
|
2126
|
-
);
|
|
2127
|
-
if (!block?.size?.width) {
|
|
2128
|
-
block.size = {
|
|
2129
|
-
width: siblingWidth,
|
|
2130
|
-
height: siblingHeight,
|
|
2131
|
-
x: 0,
|
|
2132
|
-
y: 0
|
|
2133
|
-
};
|
|
2134
|
-
}
|
|
2135
|
-
let maxWidth = 0;
|
|
2136
|
-
let maxHeight = 0;
|
|
2137
|
-
if (block.children?.length > 0) {
|
|
2138
|
-
for (const child of block.children) {
|
|
2139
|
-
setBlockSizes(child, db2);
|
|
2140
|
-
}
|
|
2141
|
-
const childSize = getMaxChildSize(block);
|
|
2142
|
-
maxWidth = childSize.width;
|
|
2143
|
-
maxHeight = childSize.height;
|
|
2144
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("setBlockSizes abc95 maxWidth of", block.id, ":s children is ", maxWidth, maxHeight);
|
|
2145
|
-
for (const child of block.children) {
|
|
2146
|
-
if (child.size) {
|
|
2147
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2148
|
-
`abc95 Setting size of children of ${block.id} id=${child.id} ${maxWidth} ${maxHeight} ${JSON.stringify(child.size)}`
|
|
2149
|
-
);
|
|
2150
|
-
child.size.width = maxWidth * (child.widthInColumns ?? 1) + padding * ((child.widthInColumns ?? 1) - 1);
|
|
2151
|
-
child.size.height = maxHeight;
|
|
2152
|
-
child.size.x = 0;
|
|
2153
|
-
child.size.y = 0;
|
|
2154
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2155
|
-
`abc95 updating size of ${block.id} children child:${child.id} maxWidth:${maxWidth} maxHeight:${maxHeight}`
|
|
2156
|
-
);
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
for (const child of block.children) {
|
|
2160
|
-
setBlockSizes(child, db2, maxWidth, maxHeight);
|
|
2161
|
-
}
|
|
2162
|
-
const columns = block.columns ?? -1;
|
|
2163
|
-
let numItems = 0;
|
|
2164
|
-
for (const child of block.children) {
|
|
2165
|
-
numItems += child.widthInColumns ?? 1;
|
|
2166
|
-
}
|
|
2167
|
-
let xSize = block.children.length;
|
|
2168
|
-
if (columns > 0 && columns < numItems) {
|
|
2169
|
-
xSize = columns;
|
|
2170
|
-
}
|
|
2171
|
-
const ySize = Math.ceil(numItems / xSize);
|
|
2172
|
-
let width = xSize * (maxWidth + padding) + padding;
|
|
2173
|
-
let height = ySize * (maxHeight + padding) + padding;
|
|
2174
|
-
if (width < siblingWidth) {
|
|
2175
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2176
|
-
`Detected to small siebling: abc95 ${block.id} sieblingWidth ${siblingWidth} sieblingHeight ${siblingHeight} width ${width}`
|
|
2177
|
-
);
|
|
2178
|
-
width = siblingWidth;
|
|
2179
|
-
height = siblingHeight;
|
|
2180
|
-
const childWidth = (siblingWidth - xSize * padding - padding) / xSize;
|
|
2181
|
-
const childHeight = (siblingHeight - ySize * padding - padding) / ySize;
|
|
2182
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("Size indata abc88", block.id, "childWidth", childWidth, "maxWidth", maxWidth);
|
|
2183
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("Size indata abc88", block.id, "childHeight", childHeight, "maxHeight", maxHeight);
|
|
2184
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("Size indata abc88 xSize", xSize, "padding", padding);
|
|
2185
|
-
for (const child of block.children) {
|
|
2186
|
-
if (child.size) {
|
|
2187
|
-
child.size.width = childWidth;
|
|
2188
|
-
child.size.height = childHeight;
|
|
2189
|
-
child.size.x = 0;
|
|
2190
|
-
child.size.y = 0;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2195
|
-
`abc95 (finale calc) ${block.id} xSize ${xSize} ySize ${ySize} columns ${columns}${block.children.length} width=${Math.max(width, block.size?.width || 0)}`
|
|
2196
|
-
);
|
|
2197
|
-
if (width < (block?.size?.width || 0)) {
|
|
2198
|
-
width = block?.size?.width || 0;
|
|
2199
|
-
const num = columns > 0 ? Math.min(block.children.length, columns) : block.children.length;
|
|
2200
|
-
if (num > 0) {
|
|
2201
|
-
const childWidth = (width - num * padding - padding) / num;
|
|
2202
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("abc95 (growing to fit) width", block.id, width, block.size?.width, childWidth);
|
|
2203
|
-
for (const child of block.children) {
|
|
2204
|
-
if (child.size) {
|
|
2205
|
-
child.size.width = childWidth;
|
|
2206
|
-
}
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
block.size = {
|
|
2211
|
-
width,
|
|
2212
|
-
height,
|
|
2213
|
-
x: 0,
|
|
2214
|
-
y: 0
|
|
2215
|
-
};
|
|
2216
|
-
}
|
|
2217
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2218
|
-
"setBlockSizes abc94 (done)",
|
|
2219
|
-
block.id,
|
|
2220
|
-
block?.size?.x,
|
|
2221
|
-
block?.size?.width,
|
|
2222
|
-
block?.size?.y,
|
|
2223
|
-
block?.size?.height
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(setBlockSizes, "setBlockSizes");
|
|
2227
|
-
function layoutBlocks(block, db2) {
|
|
2228
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2229
|
-
`abc85 layout blocks (=>layoutBlocks) ${block.id} x: ${block?.size?.x} y: ${block?.size?.y} width: ${block?.size?.width}`
|
|
2230
|
-
);
|
|
2231
|
-
const columns = block.columns ?? -1;
|
|
2232
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("layoutBlocks columns abc95", block.id, "=>", columns, block);
|
|
2233
|
-
if (block.children && // find max width of children
|
|
2234
|
-
block.children.length > 0) {
|
|
2235
|
-
const width = block?.children[0]?.size?.width ?? 0;
|
|
2236
|
-
const widthOfChildren = block.children.length * width + (block.children.length - 1) * padding;
|
|
2237
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("widthOfChildren 88", widthOfChildren, "posX");
|
|
2238
|
-
let columnPos = 0;
|
|
2239
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("abc91 block?.size?.x", block.id, block?.size?.x);
|
|
2240
|
-
let startingPosX = block?.size?.x ? block?.size?.x + (-block?.size?.width / 2 || 0) : -padding;
|
|
2241
|
-
let rowPos = 0;
|
|
2242
|
-
for (const child of block.children) {
|
|
2243
|
-
const parent = block;
|
|
2244
|
-
if (!child.size) {
|
|
2245
|
-
continue;
|
|
2246
|
-
}
|
|
2247
|
-
const { width: width2, height } = child.size;
|
|
2248
|
-
const { px, py } = calculateBlockPosition(columns, columnPos);
|
|
2249
|
-
if (py != rowPos) {
|
|
2250
|
-
rowPos = py;
|
|
2251
|
-
startingPosX = block?.size?.x ? block?.size?.x + (-block?.size?.width / 2 || 0) : -padding;
|
|
2252
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("New row in layout for block", block.id, " and child ", child.id, rowPos);
|
|
2253
|
-
}
|
|
2254
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2255
|
-
`abc89 layout blocks (child) id: ${child.id} Pos: ${columnPos} (px, py) ${px},${py} (${parent?.size?.x},${parent?.size?.y}) parent: ${parent.id} width: ${width2}${padding}`
|
|
2256
|
-
);
|
|
2257
|
-
if (parent.size) {
|
|
2258
|
-
const halfWidth = width2 / 2;
|
|
2259
|
-
child.size.x = startingPosX + padding + halfWidth;
|
|
2260
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2261
|
-
`abc91 layout blocks (calc) px, pyid:${child.id} startingPos=X${startingPosX} new startingPosX${child.size.x} ${halfWidth} padding=${padding} width=${width2} halfWidth=${halfWidth} => x:${child.size.x} y:${child.size.y} ${child.widthInColumns} (width * (child?.w || 1)) / 2 ${width2 * (child?.widthInColumns ?? 1) / 2}`
|
|
2262
|
-
);
|
|
2263
|
-
startingPosX = child.size.x + halfWidth;
|
|
2264
|
-
child.size.y = parent.size.y - parent.size.height / 2 + py * (height + padding) + height / 2 + padding;
|
|
2265
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2266
|
-
`abc88 layout blocks (calc) px, pyid:${child.id}startingPosX${startingPosX}${padding}${halfWidth}=>x:${child.size.x}y:${child.size.y}${child.widthInColumns}(width * (child?.w || 1)) / 2${width2 * (child?.widthInColumns ?? 1) / 2}`
|
|
2267
|
-
);
|
|
2268
|
-
}
|
|
2269
|
-
if (child.children) {
|
|
2270
|
-
layoutBlocks(child, db2);
|
|
2271
|
-
}
|
|
2272
|
-
columnPos += child?.widthInColumns ?? 1;
|
|
2273
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("abc88 columnsPos", child, columnPos);
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug(
|
|
2277
|
-
`layout blocks (<==layoutBlocks) ${block.id} x: ${block?.size?.x} y: ${block?.size?.y} width: ${block?.size?.width}`
|
|
2278
|
-
);
|
|
2279
|
-
}
|
|
2280
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(layoutBlocks, "layoutBlocks");
|
|
2281
|
-
function findBounds(block, { minX, minY, maxX, maxY } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
2282
|
-
if (block.size && block.id !== "root") {
|
|
2283
|
-
const { x, y, width, height } = block.size;
|
|
2284
|
-
if (x - width / 2 < minX) {
|
|
2285
|
-
minX = x - width / 2;
|
|
2286
|
-
}
|
|
2287
|
-
if (y - height / 2 < minY) {
|
|
2288
|
-
minY = y - height / 2;
|
|
2289
|
-
}
|
|
2290
|
-
if (x + width / 2 > maxX) {
|
|
2291
|
-
maxX = x + width / 2;
|
|
2292
|
-
}
|
|
2293
|
-
if (y + height / 2 > maxY) {
|
|
2294
|
-
maxY = y + height / 2;
|
|
2295
|
-
}
|
|
2296
|
-
}
|
|
2297
|
-
if (block.children) {
|
|
2298
|
-
for (const child of block.children) {
|
|
2299
|
-
({ minX, minY, maxX, maxY } = findBounds(child, { minX, minY, maxX, maxY }));
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
return { minX, minY, maxX, maxY };
|
|
2303
|
-
}
|
|
2304
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(findBounds, "findBounds");
|
|
2305
|
-
function layout(db2) {
|
|
2306
|
-
const root = db2.getBlock("root");
|
|
2307
|
-
if (!root) {
|
|
2308
|
-
return;
|
|
2309
|
-
}
|
|
2310
|
-
setBlockSizes(root, db2, 0, 0);
|
|
2311
|
-
layoutBlocks(root, db2);
|
|
2312
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("getBlocks", JSON.stringify(root, null, 2));
|
|
2313
|
-
const { minX, minY, maxX, maxY } = findBounds(root);
|
|
2314
|
-
const height = maxY - minY;
|
|
2315
|
-
const width = maxX - minX;
|
|
2316
|
-
return { x: minX, y: minY, width, height };
|
|
2317
|
-
}
|
|
2318
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(layout, "layout");
|
|
2319
|
-
|
|
2320
|
-
// src/diagrams/block/renderHelpers.ts
|
|
2321
|
-
|
|
2322
|
-
function getNodeFromBlock(block, db2, positioned = false) {
|
|
2323
|
-
const vertex = block;
|
|
2324
|
-
let classStr = "default";
|
|
2325
|
-
if ((vertex?.classes?.length || 0) > 0) {
|
|
2326
|
-
classStr = (vertex?.classes ?? []).join(" ");
|
|
2327
|
-
}
|
|
2328
|
-
classStr = classStr + " flowchart-label";
|
|
2329
|
-
let radius = 0;
|
|
2330
|
-
let shape = "";
|
|
2331
|
-
let padding2;
|
|
2332
|
-
switch (vertex.type) {
|
|
2333
|
-
case "round":
|
|
2334
|
-
radius = 5;
|
|
2335
|
-
shape = "rect";
|
|
2336
|
-
break;
|
|
2337
|
-
case "composite":
|
|
2338
|
-
radius = 0;
|
|
2339
|
-
shape = "composite";
|
|
2340
|
-
padding2 = 0;
|
|
2341
|
-
break;
|
|
2342
|
-
case "square":
|
|
2343
|
-
shape = "rect";
|
|
2344
|
-
break;
|
|
2345
|
-
case "diamond":
|
|
2346
|
-
shape = "question";
|
|
2347
|
-
break;
|
|
2348
|
-
case "hexagon":
|
|
2349
|
-
shape = "hexagon";
|
|
2350
|
-
break;
|
|
2351
|
-
case "block_arrow":
|
|
2352
|
-
shape = "block_arrow";
|
|
2353
|
-
break;
|
|
2354
|
-
case "odd":
|
|
2355
|
-
shape = "rect_left_inv_arrow";
|
|
2356
|
-
break;
|
|
2357
|
-
case "lean_right":
|
|
2358
|
-
shape = "lean_right";
|
|
2359
|
-
break;
|
|
2360
|
-
case "lean_left":
|
|
2361
|
-
shape = "lean_left";
|
|
2362
|
-
break;
|
|
2363
|
-
case "trapezoid":
|
|
2364
|
-
shape = "trapezoid";
|
|
2365
|
-
break;
|
|
2366
|
-
case "inv_trapezoid":
|
|
2367
|
-
shape = "inv_trapezoid";
|
|
2368
|
-
break;
|
|
2369
|
-
case "rect_left_inv_arrow":
|
|
2370
|
-
shape = "rect_left_inv_arrow";
|
|
2371
|
-
break;
|
|
2372
|
-
case "circle":
|
|
2373
|
-
shape = "circle";
|
|
2374
|
-
break;
|
|
2375
|
-
case "ellipse":
|
|
2376
|
-
shape = "ellipse";
|
|
2377
|
-
break;
|
|
2378
|
-
case "stadium":
|
|
2379
|
-
shape = "stadium";
|
|
2380
|
-
break;
|
|
2381
|
-
case "subroutine":
|
|
2382
|
-
shape = "subroutine";
|
|
2383
|
-
break;
|
|
2384
|
-
case "cylinder":
|
|
2385
|
-
shape = "cylinder";
|
|
2386
|
-
break;
|
|
2387
|
-
case "group":
|
|
2388
|
-
shape = "rect";
|
|
2389
|
-
break;
|
|
2390
|
-
case "doublecircle":
|
|
2391
|
-
shape = "doublecircle";
|
|
2392
|
-
break;
|
|
2393
|
-
default:
|
|
2394
|
-
shape = "rect";
|
|
2395
|
-
}
|
|
2396
|
-
const styles = (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getStylesFromArray */ .sM)(vertex?.styles ?? []);
|
|
2397
|
-
const vertexText = vertex.label;
|
|
2398
|
-
const bounds = vertex.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
2399
|
-
const node = {
|
|
2400
|
-
labelStyle: styles.labelStyle,
|
|
2401
|
-
shape,
|
|
2402
|
-
labelText: vertexText,
|
|
2403
|
-
rx: radius,
|
|
2404
|
-
ry: radius,
|
|
2405
|
-
class: classStr,
|
|
2406
|
-
style: styles.style,
|
|
2407
|
-
id: vertex.id,
|
|
2408
|
-
directions: vertex.directions,
|
|
2409
|
-
width: bounds.width,
|
|
2410
|
-
height: bounds.height,
|
|
2411
|
-
x: bounds.x,
|
|
2412
|
-
y: bounds.y,
|
|
2413
|
-
positioned,
|
|
2414
|
-
intersect: void 0,
|
|
2415
|
-
type: vertex.type,
|
|
2416
|
-
padding: padding2 ?? (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)()?.block?.padding ?? 0
|
|
2417
|
-
};
|
|
2418
|
-
return node;
|
|
2419
|
-
}
|
|
2420
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(getNodeFromBlock, "getNodeFromBlock");
|
|
2421
|
-
async function calculateBlockSize(elem, block, db2) {
|
|
2422
|
-
const node = getNodeFromBlock(block, db2, false);
|
|
2423
|
-
if (node.type === "group") {
|
|
2424
|
-
return;
|
|
2425
|
-
}
|
|
2426
|
-
const config2 = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)();
|
|
2427
|
-
const nodeEl = await (0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .insertNode */ .on)(elem, node, { config: config2 });
|
|
2428
|
-
const boundingBox = nodeEl.node().getBBox();
|
|
2429
|
-
const obj = db2.getBlock(node.id);
|
|
2430
|
-
obj.size = { width: boundingBox.width, height: boundingBox.height, x: 0, y: 0, node: nodeEl };
|
|
2431
|
-
db2.setBlock(obj);
|
|
2432
|
-
nodeEl.remove();
|
|
2433
|
-
}
|
|
2434
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(calculateBlockSize, "calculateBlockSize");
|
|
2435
|
-
async function insertBlockPositioned(elem, block, db2) {
|
|
2436
|
-
const node = getNodeFromBlock(block, db2, true);
|
|
2437
|
-
const obj = db2.getBlock(node.id);
|
|
2438
|
-
if (obj.type !== "space") {
|
|
2439
|
-
const config2 = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)();
|
|
2440
|
-
await (0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .insertNode */ .on)(elem, node, { config: config2 });
|
|
2441
|
-
block.intersect = node?.intersect;
|
|
2442
|
-
(0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .positionNode */ .U_)(node);
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(insertBlockPositioned, "insertBlockPositioned");
|
|
2446
|
-
async function performOperations(elem, blocks2, db2, operation) {
|
|
2447
|
-
for (const block of blocks2) {
|
|
2448
|
-
await operation(elem, block, db2);
|
|
2449
|
-
if (block.children) {
|
|
2450
|
-
await performOperations(elem, block.children, db2, operation);
|
|
2451
|
-
}
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(performOperations, "performOperations");
|
|
2455
|
-
async function calculateBlockSizes(elem, blocks2, db2) {
|
|
2456
|
-
await performOperations(elem, blocks2, db2, calculateBlockSize);
|
|
2457
|
-
}
|
|
2458
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(calculateBlockSizes, "calculateBlockSizes");
|
|
2459
|
-
async function insertBlocks(elem, blocks2, db2) {
|
|
2460
|
-
await performOperations(elem, blocks2, db2, insertBlockPositioned);
|
|
2461
|
-
}
|
|
2462
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(insertBlocks, "insertBlocks");
|
|
2463
|
-
async function insertEdges(elem, edges, blocks2, db2, id) {
|
|
2464
|
-
const g = new dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_9__/* .Graph */ .T({
|
|
2465
|
-
multigraph: true,
|
|
2466
|
-
compound: true
|
|
2467
|
-
});
|
|
2468
|
-
g.setGraph({
|
|
2469
|
-
rankdir: "TB",
|
|
2470
|
-
nodesep: 10,
|
|
2471
|
-
ranksep: 10,
|
|
2472
|
-
marginx: 8,
|
|
2473
|
-
marginy: 8
|
|
2474
|
-
});
|
|
2475
|
-
for (const block of blocks2) {
|
|
2476
|
-
if (block.size) {
|
|
2477
|
-
g.setNode(block.id, {
|
|
2478
|
-
width: block.size.width,
|
|
2479
|
-
height: block.size.height,
|
|
2480
|
-
intersect: block.intersect
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
for (const edge of edges) {
|
|
2485
|
-
if (edge.start && edge.end) {
|
|
2486
|
-
const startBlock = db2.getBlock(edge.start);
|
|
2487
|
-
const endBlock = db2.getBlock(edge.end);
|
|
2488
|
-
if (startBlock?.size && endBlock?.size) {
|
|
2489
|
-
const start = startBlock.size;
|
|
2490
|
-
const end = endBlock.size;
|
|
2491
|
-
const points = [
|
|
2492
|
-
{ x: start.x, y: start.y },
|
|
2493
|
-
{ x: start.x + (end.x - start.x) / 2, y: start.y + (end.y - start.y) / 2 },
|
|
2494
|
-
{ x: end.x, y: end.y }
|
|
2495
|
-
];
|
|
2496
|
-
(0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .insertEdge */ .Jo)(
|
|
2497
|
-
elem,
|
|
2498
|
-
{ v: edge.start, w: edge.end, name: edge.id },
|
|
2499
|
-
{
|
|
2500
|
-
...edge,
|
|
2501
|
-
arrowTypeEnd: edge.arrowTypeEnd,
|
|
2502
|
-
arrowTypeStart: edge.arrowTypeStart,
|
|
2503
|
-
points,
|
|
2504
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2505
|
-
},
|
|
2506
|
-
void 0,
|
|
2507
|
-
"block",
|
|
2508
|
-
g,
|
|
2509
|
-
id
|
|
2510
|
-
);
|
|
2511
|
-
if (edge.label) {
|
|
2512
|
-
await (0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .insertEdgeLabel */ .jP)(elem, {
|
|
2513
|
-
...edge,
|
|
2514
|
-
label: edge.label,
|
|
2515
|
-
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
2516
|
-
arrowTypeEnd: edge.arrowTypeEnd,
|
|
2517
|
-
arrowTypeStart: edge.arrowTypeStart,
|
|
2518
|
-
points,
|
|
2519
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2520
|
-
});
|
|
2521
|
-
(0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .positionEdgeLabel */ .T_)(
|
|
2522
|
-
{ ...edge, x: points[1].x, y: points[1].y },
|
|
2523
|
-
{
|
|
2524
|
-
originalPath: points
|
|
2525
|
-
}
|
|
2526
|
-
);
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
}
|
|
2531
|
-
}
|
|
2532
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(insertEdges, "insertEdges");
|
|
2533
|
-
|
|
2534
|
-
// src/diagrams/block/blockRenderer.ts
|
|
2535
|
-
var getClasses2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(function(text, diagObj) {
|
|
2536
|
-
return diagObj.db.getClasses();
|
|
2537
|
-
}, "getClasses");
|
|
2538
|
-
var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__name */ .K2)(async function(text, id, _version, diagObj) {
|
|
2539
|
-
const { securityLevel, block: conf } = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)();
|
|
2540
|
-
const db2 = diagObj.db;
|
|
2541
|
-
let sandboxElement;
|
|
2542
|
-
if (securityLevel === "sandbox") {
|
|
2543
|
-
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_8__/* .select */ .Ltv)("#i" + id);
|
|
2544
|
-
}
|
|
2545
|
-
const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_8__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_8__/* .select */ .Ltv)("body");
|
|
2546
|
-
const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : (0,d3__WEBPACK_IMPORTED_MODULE_8__/* .select */ .Ltv)(`[id="${id}"]`);
|
|
2547
|
-
const markers = ["point", "circle", "cross"];
|
|
2548
|
-
(0,_chunk_REEJFE46_mjs__WEBPACK_IMPORTED_MODULE_0__/* .markers_default */ .g0)(svg, markers, diagObj.type, id);
|
|
2549
|
-
const bl = db2.getBlocks();
|
|
2550
|
-
const blArr = db2.getBlocksFlat();
|
|
2551
|
-
const edges = db2.getEdges();
|
|
2552
|
-
const nodes = svg.insert("g").attr("class", "block");
|
|
2553
|
-
await calculateBlockSizes(nodes, bl, db2);
|
|
2554
|
-
const bounds = layout(db2);
|
|
2555
|
-
await insertBlocks(nodes, bl, db2);
|
|
2556
|
-
await insertEdges(nodes, edges, blArr, db2, id);
|
|
2557
|
-
if (bounds) {
|
|
2558
|
-
const bounds2 = bounds;
|
|
2559
|
-
const magicFactor = Math.max(1, Math.round(0.125 * (bounds2.width / bounds2.height)));
|
|
2560
|
-
const height = bounds2.height + magicFactor + 10;
|
|
2561
|
-
const width = bounds2.width + 10;
|
|
2562
|
-
const { useMaxWidth } = conf;
|
|
2563
|
-
(0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .configureSvgSize */ .a$)(svg, height, width, !!useMaxWidth);
|
|
2564
|
-
_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_4__/* .log */ .Rm.debug("Here Bounds", bounds, bounds2);
|
|
2565
|
-
svg.attr(
|
|
2566
|
-
"viewBox",
|
|
2567
|
-
`${bounds2.x - 5} ${bounds2.y - 5} ${bounds2.width + 10} ${bounds2.height + 10}`
|
|
2568
|
-
);
|
|
2569
|
-
}
|
|
2570
|
-
}, "draw");
|
|
2571
|
-
var blockRenderer_default = {
|
|
2572
|
-
draw,
|
|
2573
|
-
getClasses: getClasses2
|
|
2574
|
-
};
|
|
2575
|
-
|
|
2576
|
-
// src/diagrams/block/blockDiagram.ts
|
|
2577
|
-
var diagram = {
|
|
2578
|
-
parser: block_default,
|
|
2579
|
-
db: blockDB_default,
|
|
2580
|
-
renderer: blockRenderer_default,
|
|
2581
|
-
styles: styles_default
|
|
2582
|
-
};
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
/***/ })
|
|
2587
|
-
|
|
2588
|
-
};
|
|
2589
|
-
;
|
|
2590
|
-
//# sourceMappingURL=849.node.js.map
|