@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.
Files changed (122) hide show
  1. package/dist/10.node.js +20064 -19229
  2. package/dist/10.node.js.map +1 -1
  3. package/dist/122.node.js +23 -0
  4. package/dist/122.node.js.map +1 -0
  5. package/dist/{17.node.js → 135.node.js} +109 -110
  6. package/dist/135.node.js.map +1 -0
  7. package/dist/136.node.js +23 -0
  8. package/dist/136.node.js.map +1 -0
  9. package/dist/{52.node.js → 188.node.js} +211 -196
  10. package/dist/188.node.js.map +1 -0
  11. package/dist/214.node.js +1280 -0
  12. package/dist/214.node.js.map +1 -0
  13. package/dist/23.node.js +2563 -0
  14. package/dist/23.node.js.map +1 -0
  15. package/dist/{867.node.js → 311.node.js} +95 -95
  16. package/dist/{867.node.js.map → 311.node.js.map} +1 -1
  17. package/dist/{940.node.js → 339.node.js} +3 -75
  18. package/dist/339.node.js.map +1 -0
  19. package/dist/354.node.js +23 -0
  20. package/dist/354.node.js.map +1 -0
  21. package/dist/359.node.js +2001 -0
  22. package/dist/359.node.js.map +1 -0
  23. package/dist/364.node.js +4435 -0
  24. package/dist/364.node.js.map +1 -0
  25. package/dist/{429.node.js → 371.node.js} +196 -139
  26. package/dist/371.node.js.map +1 -0
  27. package/dist/{687.node.js → 38.node.js} +761 -761
  28. package/dist/38.node.js.map +1 -0
  29. package/dist/391.node.js +522 -0
  30. package/dist/391.node.js.map +1 -0
  31. package/dist/462.node.js +23 -0
  32. package/dist/462.node.js.map +1 -0
  33. package/dist/48.node.js +57 -0
  34. package/dist/48.node.js.map +1 -0
  35. package/dist/486.node.js +16267 -14851
  36. package/dist/486.node.js.map +1 -1
  37. package/dist/537.node.js +59 -0
  38. package/dist/537.node.js.map +1 -0
  39. package/dist/550.node.js +201 -1408
  40. package/dist/550.node.js.map +1 -1
  41. package/dist/{403.node.js → 572.node.js} +118 -118
  42. package/dist/572.node.js.map +1 -0
  43. package/dist/580.node.js +1324 -0
  44. package/dist/580.node.js.map +1 -0
  45. package/dist/{952.node.js → 649.node.js} +39 -39
  46. package/dist/{952.node.js.map → 649.node.js.map} +1 -1
  47. package/dist/740.node.js +23 -0
  48. package/dist/740.node.js.map +1 -0
  49. package/dist/741.node.js +23 -0
  50. package/dist/741.node.js.map +1 -0
  51. package/dist/779.node.js +57 -0
  52. package/dist/779.node.js.map +1 -0
  53. package/dist/805.node.js +1355 -0
  54. package/dist/805.node.js.map +1 -0
  55. package/dist/{246.node.js → 855.node.js} +671 -495
  56. package/dist/855.node.js.map +1 -0
  57. package/dist/{11.node.js → 870.node.js} +70 -63
  58. package/dist/870.node.js.map +1 -0
  59. package/dist/874.node.js +57 -0
  60. package/dist/874.node.js.map +1 -0
  61. package/dist/881.node.js +1344 -720
  62. package/dist/881.node.js.map +1 -1
  63. package/dist/{906.node.js → 890.node.js} +147 -147
  64. package/dist/{906.node.js.map → 890.node.js.map} +1 -1
  65. package/dist/898.node.js +361 -0
  66. package/dist/898.node.js.map +1 -0
  67. package/dist/{551.node.js → 912.node.js} +133 -133
  68. package/dist/{551.node.js.map → 912.node.js.map} +1 -1
  69. package/dist/{745.node.js → 915.node.js} +86 -85
  70. package/dist/915.node.js.map +1 -0
  71. package/dist/982.node.js +1132 -0
  72. package/dist/982.node.js.map +1 -0
  73. package/dist/995.node.js +189 -159
  74. package/dist/995.node.js.map +1 -1
  75. package/dist/lib/plain.d.ts +1 -1
  76. package/dist/main.js +1881 -331
  77. package/dist/main.node.js +1872 -332
  78. package/dist/main.node.js.map +1 -1
  79. package/package.json +1 -2
  80. package/dist/11.node.js.map +0 -1
  81. package/dist/120.node.js +0 -23
  82. package/dist/120.node.js.map +0 -1
  83. package/dist/134.node.js +0 -23
  84. package/dist/134.node.js.map +0 -1
  85. package/dist/150.node.js +0 -1892
  86. package/dist/150.node.js.map +0 -1
  87. package/dist/17.node.js.map +0 -1
  88. package/dist/246.node.js.map +0 -1
  89. package/dist/351.node.js +0 -2404
  90. package/dist/351.node.js.map +0 -1
  91. package/dist/366.node.js +0 -1185
  92. package/dist/366.node.js.map +0 -1
  93. package/dist/403.node.js.map +0 -1
  94. package/dist/429.node.js.map +0 -1
  95. package/dist/485.node.js +0 -518
  96. package/dist/485.node.js.map +0 -1
  97. package/dist/488.node.js +0 -59
  98. package/dist/488.node.js.map +0 -1
  99. package/dist/510.node.js +0 -250
  100. package/dist/510.node.js.map +0 -1
  101. package/dist/52.node.js.map +0 -1
  102. package/dist/617.node.js +0 -23
  103. package/dist/617.node.js.map +0 -1
  104. package/dist/687.node.js.map +0 -1
  105. package/dist/745.node.js.map +0 -1
  106. package/dist/775.node.js +0 -1904
  107. package/dist/775.node.js.map +0 -1
  108. package/dist/788.node.js +0 -1025
  109. package/dist/788.node.js.map +0 -1
  110. package/dist/81.node.js +0 -386
  111. package/dist/81.node.js.map +0 -1
  112. package/dist/849.node.js +0 -2590
  113. package/dist/849.node.js.map +0 -1
  114. package/dist/863.node.js +0 -23
  115. package/dist/863.node.js.map +0 -1
  116. package/dist/885.node.js +0 -52
  117. package/dist/885.node.js.map +0 -1
  118. package/dist/896.node.js +0 -1617
  119. package/dist/896.node.js.map +0 -1
  120. package/dist/91.node.js +0 -23
  121. package/dist/91.node.js.map +0 -1
  122. package/dist/940.node.js.map +0 -1
@@ -0,0 +1,2563 @@
1
+ "use strict";
2
+ exports.id = 23;
3
+ exports.ids = [23];
4
+ exports.modules = {
5
+
6
+ /***/ 7574:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
11
+ /* harmony export */ });
12
+ /* harmony import */ var _utils_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1404);
13
+ /* harmony import */ var _color_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9569);
14
+ /* IMPORT */
15
+
16
+
17
+ /* MAIN */
18
+ const channel = (color, channel) => {
19
+ return _utils_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.lang.round(_color_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.parse(color)[channel]);
20
+ };
21
+ /* EXPORT */
22
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (channel);
23
+
24
+
25
+ /***/ }),
26
+
27
+ /***/ 5051:
28
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
29
+
30
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
31
+ /* harmony export */ A: () => (/* binding */ getDiagramElement),
32
+ /* harmony export */ P: () => (/* binding */ setupViewPortForSVG)
33
+ /* harmony export */ });
34
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
35
+ /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8066);
36
+
37
+
38
+ // src/rendering-util/insertElementsForSize.js
39
+
40
+ var getDiagramElement = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((id, securityLevel) => {
41
+ let sandboxElement;
42
+ if (securityLevel === "sandbox") {
43
+ sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("#i" + id);
44
+ }
45
+ const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("body");
46
+ const svg = root.select(`[id="${id}"]`);
47
+ return svg;
48
+ }, "getDiagramElement");
49
+
50
+ // src/rendering-util/setupViewPortForSVG.ts
51
+ var setupViewPortForSVG = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding, cssDiagram, useMaxWidth) => {
52
+ svg.attr("class", cssDiagram);
53
+ const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
54
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .configureSvgSize */ .a$)(svg, height, width, useMaxWidth);
55
+ const viewBox = createViewBox(x, y, width, height, padding);
56
+ svg.attr("viewBox", viewBox);
57
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
58
+ }, "setupViewPortForSVG");
59
+ var calculateDimensionsWithPadding = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding) => {
60
+ const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
61
+ return {
62
+ width: bounds.width + padding * 2,
63
+ height: bounds.height + padding * 2,
64
+ x: bounds.x,
65
+ y: bounds.y
66
+ };
67
+ }, "calculateDimensionsWithPadding");
68
+ var createViewBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((x, y, width, height, padding) => {
69
+ return `${x - padding} ${y - padding} ${width} ${height}`;
70
+ }, "createViewBox");
71
+
72
+
73
+
74
+
75
+ /***/ }),
76
+
77
+ /***/ 2023:
78
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
79
+
80
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
81
+ /* harmony export */ diagram: () => (/* binding */ diagram)
82
+ /* harmony export */ });
83
+ /* harmony import */ var _chunk_6JRP7KZX_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7366);
84
+ /* harmony import */ var _chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5051);
85
+ /* harmony import */ var _chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4065);
86
+ /* harmony import */ var _chunk_IIMUDSI4_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3416);
87
+ /* harmony import */ var _chunk_VV3M67IP_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4746);
88
+ /* harmony import */ var _chunk_HRU6DDCH_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(778);
89
+ /* harmony import */ var _chunk_K557N5IZ_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7590);
90
+ /* harmony import */ var _chunk_H2D2JQ3I_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4059);
91
+ /* harmony import */ var _chunk_C3MQ5ANM_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6499);
92
+ /* harmony import */ var _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8430);
93
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3804);
94
+ /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8066);
95
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7574);
96
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3635);
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ // src/diagrams/flowchart/flowDb.ts
110
+
111
+ var MERMAID_DOM_ID_PREFIX = "flowchart-";
112
+ var FlowDB = class {
113
+ // cspell:ignore funs
114
+ constructor() {
115
+ this.vertexCounter = 0;
116
+ this.config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)();
117
+ this.vertices = /* @__PURE__ */ new Map();
118
+ this.edges = [];
119
+ this.classes = /* @__PURE__ */ new Map();
120
+ this.subGraphs = [];
121
+ this.subGraphLookup = /* @__PURE__ */ new Map();
122
+ this.tooltips = /* @__PURE__ */ new Map();
123
+ this.subCount = 0;
124
+ this.firstGraphFlag = true;
125
+ // As in graph
126
+ this.secCount = -1;
127
+ this.posCrossRef = [];
128
+ // Functions to be run after graph rendering
129
+ this.funs = [];
130
+ this.setAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .setAccTitle */ .SV;
131
+ this.setAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .setAccDescription */ .EI;
132
+ this.setDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .setDiagramTitle */ .ke;
133
+ this.getAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getAccTitle */ .iN;
134
+ this.getAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getAccDescription */ .m7;
135
+ this.getDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getDiagramTitle */ .ab;
136
+ this.funs.push(this.setupToolTips.bind(this));
137
+ this.addVertex = this.addVertex.bind(this);
138
+ this.firstGraph = this.firstGraph.bind(this);
139
+ this.setDirection = this.setDirection.bind(this);
140
+ this.addSubGraph = this.addSubGraph.bind(this);
141
+ this.addLink = this.addLink.bind(this);
142
+ this.setLink = this.setLink.bind(this);
143
+ this.updateLink = this.updateLink.bind(this);
144
+ this.addClass = this.addClass.bind(this);
145
+ this.setClass = this.setClass.bind(this);
146
+ this.destructLink = this.destructLink.bind(this);
147
+ this.setClickEvent = this.setClickEvent.bind(this);
148
+ this.setTooltip = this.setTooltip.bind(this);
149
+ this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this);
150
+ this.setClickFun = this.setClickFun.bind(this);
151
+ this.bindFunctions = this.bindFunctions.bind(this);
152
+ this.lex = {
153
+ firstGraph: this.firstGraph.bind(this)
154
+ };
155
+ this.clear();
156
+ this.setGen("gen-2");
157
+ }
158
+ static {
159
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(this, "FlowDB");
160
+ }
161
+ sanitizeText(txt) {
162
+ return _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .common_default */ .Y2.sanitizeText(txt, this.config);
163
+ }
164
+ /**
165
+ * Function to lookup domId from id in the graph definition.
166
+ *
167
+ * @param id - id of the node
168
+ */
169
+ lookUpDomId(id) {
170
+ for (const vertex of this.vertices.values()) {
171
+ if (vertex.id === id) {
172
+ return vertex.domId;
173
+ }
174
+ }
175
+ return id;
176
+ }
177
+ /**
178
+ * Function called by parser when a node definition has been found
179
+ */
180
+ addVertex(id, textObj, type, style, classes, dir, props = {}, metadata) {
181
+ if (!id || id.trim().length === 0) {
182
+ return;
183
+ }
184
+ let doc;
185
+ if (metadata !== void 0) {
186
+ let yamlData;
187
+ if (!metadata.includes("\n")) {
188
+ yamlData = "{\n" + metadata + "\n}";
189
+ } else {
190
+ yamlData = metadata + "\n";
191
+ }
192
+ doc = (0,_chunk_6JRP7KZX_mjs__WEBPACK_IMPORTED_MODULE_0__/* .load */ .H)(yamlData, { schema: _chunk_6JRP7KZX_mjs__WEBPACK_IMPORTED_MODULE_0__/* .JSON_SCHEMA */ .r });
193
+ }
194
+ const edge = this.edges.find((e) => e.id === id);
195
+ if (edge) {
196
+ const edgeDoc = doc;
197
+ if (edgeDoc?.animate !== void 0) {
198
+ edge.animate = edgeDoc.animate;
199
+ }
200
+ if (edgeDoc?.animation !== void 0) {
201
+ edge.animation = edgeDoc.animation;
202
+ }
203
+ return;
204
+ }
205
+ let txt;
206
+ let vertex = this.vertices.get(id);
207
+ if (vertex === void 0) {
208
+ vertex = {
209
+ id,
210
+ labelType: "text",
211
+ domId: MERMAID_DOM_ID_PREFIX + id + "-" + this.vertexCounter,
212
+ styles: [],
213
+ classes: []
214
+ };
215
+ this.vertices.set(id, vertex);
216
+ }
217
+ this.vertexCounter++;
218
+ if (textObj !== void 0) {
219
+ this.config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)();
220
+ txt = this.sanitizeText(textObj.text.trim());
221
+ vertex.labelType = textObj.type;
222
+ if (txt.startsWith('"') && txt.endsWith('"')) {
223
+ txt = txt.substring(1, txt.length - 1);
224
+ }
225
+ vertex.text = txt;
226
+ } else {
227
+ if (vertex.text === void 0) {
228
+ vertex.text = id;
229
+ }
230
+ }
231
+ if (type !== void 0) {
232
+ vertex.type = type;
233
+ }
234
+ if (style !== void 0 && style !== null) {
235
+ style.forEach((s) => {
236
+ vertex.styles.push(s);
237
+ });
238
+ }
239
+ if (classes !== void 0 && classes !== null) {
240
+ classes.forEach((s) => {
241
+ vertex.classes.push(s);
242
+ });
243
+ }
244
+ if (dir !== void 0) {
245
+ vertex.dir = dir;
246
+ }
247
+ if (vertex.props === void 0) {
248
+ vertex.props = props;
249
+ } else if (props !== void 0) {
250
+ Object.assign(vertex.props, props);
251
+ }
252
+ if (doc !== void 0) {
253
+ if (doc.shape) {
254
+ if (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_")) {
255
+ throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
256
+ } else if (!(0,_chunk_HRU6DDCH_mjs__WEBPACK_IMPORTED_MODULE_5__/* .isValidShape */ .aP)(doc.shape)) {
257
+ throw new Error(`No such shape: ${doc.shape}.`);
258
+ }
259
+ vertex.type = doc?.shape;
260
+ }
261
+ if (doc?.label) {
262
+ vertex.text = doc?.label;
263
+ }
264
+ if (doc?.icon) {
265
+ vertex.icon = doc?.icon;
266
+ if (!doc.label?.trim() && vertex.text === id) {
267
+ vertex.text = "";
268
+ }
269
+ }
270
+ if (doc?.form) {
271
+ vertex.form = doc?.form;
272
+ }
273
+ if (doc?.pos) {
274
+ vertex.pos = doc?.pos;
275
+ }
276
+ if (doc?.img) {
277
+ vertex.img = doc?.img;
278
+ if (!doc.label?.trim() && vertex.text === id) {
279
+ vertex.text = "";
280
+ }
281
+ }
282
+ if (doc?.constraint) {
283
+ vertex.constraint = doc.constraint;
284
+ }
285
+ if (doc.w) {
286
+ vertex.assetWidth = Number(doc.w);
287
+ }
288
+ if (doc.h) {
289
+ vertex.assetHeight = Number(doc.h);
290
+ }
291
+ }
292
+ }
293
+ /**
294
+ * Function called by parser when a link/edge definition has been found
295
+ *
296
+ */
297
+ addSingleLink(_start, _end, type, id) {
298
+ const start = _start;
299
+ const end = _end;
300
+ const edge = {
301
+ start,
302
+ end,
303
+ type: void 0,
304
+ text: "",
305
+ labelType: "text",
306
+ classes: [],
307
+ isUserDefinedId: false,
308
+ interpolate: this.edges.defaultInterpolate
309
+ };
310
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("abc78 Got edge...", edge);
311
+ const linkTextObj = type.text;
312
+ if (linkTextObj !== void 0) {
313
+ edge.text = this.sanitizeText(linkTextObj.text.trim());
314
+ if (edge.text.startsWith('"') && edge.text.endsWith('"')) {
315
+ edge.text = edge.text.substring(1, edge.text.length - 1);
316
+ }
317
+ edge.labelType = linkTextObj.type;
318
+ }
319
+ if (type !== void 0) {
320
+ edge.type = type.type;
321
+ edge.stroke = type.stroke;
322
+ edge.length = type.length > 10 ? 10 : type.length;
323
+ }
324
+ if (id && !this.edges.some((e) => e.id === id)) {
325
+ edge.id = id;
326
+ edge.isUserDefinedId = true;
327
+ } else {
328
+ const existingLinks = this.edges.filter((e) => e.start === edge.start && e.end === edge.end);
329
+ if (existingLinks.length === 0) {
330
+ edge.id = (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getEdgeId */ .rY)(edge.start, edge.end, { counter: 0, prefix: "L" });
331
+ } else {
332
+ edge.id = (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getEdgeId */ .rY)(edge.start, edge.end, {
333
+ counter: existingLinks.length + 1,
334
+ prefix: "L"
335
+ });
336
+ }
337
+ }
338
+ if (this.edges.length < (this.config.maxEdges ?? 500)) {
339
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("Pushing edge...");
340
+ this.edges.push(edge);
341
+ } else {
342
+ throw new Error(
343
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
344
+
345
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
346
+ You cannot set this config via configuration inside the diagram as it is a secure config.
347
+ You have to call mermaid.initialize.`
348
+ );
349
+ }
350
+ }
351
+ isLinkData(value) {
352
+ return value !== null && typeof value === "object" && "id" in value && typeof value.id === "string";
353
+ }
354
+ addLink(_start, _end, linkData) {
355
+ const id = this.isLinkData(linkData) ? linkData.id.replace("@", "") : void 0;
356
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("addLink", _start, _end, id);
357
+ for (const start of _start) {
358
+ for (const end of _end) {
359
+ const isLastStart = start === _start[_start.length - 1];
360
+ const isFirstEnd = end === _end[0];
361
+ if (isLastStart && isFirstEnd) {
362
+ this.addSingleLink(start, end, linkData, id);
363
+ } else {
364
+ this.addSingleLink(start, end, linkData, void 0);
365
+ }
366
+ }
367
+ }
368
+ }
369
+ /**
370
+ * Updates a link's line interpolation algorithm
371
+ */
372
+ updateLinkInterpolate(positions, interpolate) {
373
+ positions.forEach((pos) => {
374
+ if (pos === "default") {
375
+ this.edges.defaultInterpolate = interpolate;
376
+ } else {
377
+ this.edges[pos].interpolate = interpolate;
378
+ }
379
+ });
380
+ }
381
+ /**
382
+ * Updates a link with a style
383
+ *
384
+ */
385
+ updateLink(positions, style) {
386
+ positions.forEach((pos) => {
387
+ if (typeof pos === "number" && pos >= this.edges.length) {
388
+ throw new Error(
389
+ `The index ${pos} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
390
+ );
391
+ }
392
+ if (pos === "default") {
393
+ this.edges.defaultStyle = style;
394
+ } else {
395
+ this.edges[pos].style = style;
396
+ if ((this.edges[pos]?.style?.length ?? 0) > 0 && !this.edges[pos]?.style?.some((s) => s?.startsWith("fill"))) {
397
+ this.edges[pos]?.style?.push("fill:none");
398
+ }
399
+ }
400
+ });
401
+ }
402
+ addClass(ids, _style) {
403
+ const style = _style.join().replace(/\\,/g, "\xA7\xA7\xA7").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
404
+ ids.split(",").forEach((id) => {
405
+ let classNode = this.classes.get(id);
406
+ if (classNode === void 0) {
407
+ classNode = { id, styles: [], textStyles: [] };
408
+ this.classes.set(id, classNode);
409
+ }
410
+ if (style !== void 0 && style !== null) {
411
+ style.forEach((s) => {
412
+ if (/color/.exec(s)) {
413
+ const newStyle = s.replace("fill", "bgFill");
414
+ classNode.textStyles.push(newStyle);
415
+ }
416
+ classNode.styles.push(s);
417
+ });
418
+ }
419
+ });
420
+ }
421
+ /**
422
+ * Called by parser when a graph definition is found, stores the direction of the chart.
423
+ *
424
+ */
425
+ setDirection(dir) {
426
+ this.direction = dir;
427
+ if (/.*</.exec(this.direction)) {
428
+ this.direction = "RL";
429
+ }
430
+ if (/.*\^/.exec(this.direction)) {
431
+ this.direction = "BT";
432
+ }
433
+ if (/.*>/.exec(this.direction)) {
434
+ this.direction = "LR";
435
+ }
436
+ if (/.*v/.exec(this.direction)) {
437
+ this.direction = "TB";
438
+ }
439
+ if (this.direction === "TD") {
440
+ this.direction = "TB";
441
+ }
442
+ }
443
+ /**
444
+ * Called by parser when a special node is found, e.g. a clickable element.
445
+ *
446
+ * @param ids - Comma separated list of ids
447
+ * @param className - Class to add
448
+ */
449
+ setClass(ids, className) {
450
+ for (const id of ids.split(",")) {
451
+ const vertex = this.vertices.get(id);
452
+ if (vertex) {
453
+ vertex.classes.push(className);
454
+ }
455
+ const edge = this.edges.find((e) => e.id === id);
456
+ if (edge) {
457
+ edge.classes.push(className);
458
+ }
459
+ const subGraph = this.subGraphLookup.get(id);
460
+ if (subGraph) {
461
+ subGraph.classes.push(className);
462
+ }
463
+ }
464
+ }
465
+ setTooltip(ids, tooltip) {
466
+ if (tooltip === void 0) {
467
+ return;
468
+ }
469
+ tooltip = this.sanitizeText(tooltip);
470
+ for (const id of ids.split(",")) {
471
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(id) : id, tooltip);
472
+ }
473
+ }
474
+ setClickFun(id, functionName, functionArgs) {
475
+ const domId = this.lookUpDomId(id);
476
+ if ((0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)().securityLevel !== "loose") {
477
+ return;
478
+ }
479
+ if (functionName === void 0) {
480
+ return;
481
+ }
482
+ let argList = [];
483
+ if (typeof functionArgs === "string") {
484
+ argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
485
+ for (let i = 0; i < argList.length; i++) {
486
+ let item = argList[i].trim();
487
+ if (item.startsWith('"') && item.endsWith('"')) {
488
+ item = item.substr(1, item.length - 2);
489
+ }
490
+ argList[i] = item;
491
+ }
492
+ }
493
+ if (argList.length === 0) {
494
+ argList.push(id);
495
+ }
496
+ const vertex = this.vertices.get(id);
497
+ if (vertex) {
498
+ vertex.haveCallback = true;
499
+ this.funs.push(() => {
500
+ const elem = document.querySelector(`[id="${domId}"]`);
501
+ if (elem !== null) {
502
+ elem.addEventListener(
503
+ "click",
504
+ () => {
505
+ _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .utils_default */ ._K.runFunc(functionName, ...argList);
506
+ },
507
+ false
508
+ );
509
+ }
510
+ });
511
+ }
512
+ }
513
+ /**
514
+ * Called by parser when a link is found. Adds the URL to the vertex data.
515
+ *
516
+ * @param ids - Comma separated list of ids
517
+ * @param linkStr - URL to create a link for
518
+ * @param target - Target attribute for the link
519
+ */
520
+ setLink(ids, linkStr, target) {
521
+ ids.split(",").forEach((id) => {
522
+ const vertex = this.vertices.get(id);
523
+ if (vertex !== void 0) {
524
+ vertex.link = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .utils_default */ ._K.formatUrl(linkStr, this.config);
525
+ vertex.linkTarget = target;
526
+ }
527
+ });
528
+ this.setClass(ids, "clickable");
529
+ }
530
+ getTooltip(id) {
531
+ return this.tooltips.get(id);
532
+ }
533
+ /**
534
+ * Called by parser when a click definition is found. Registers an event handler.
535
+ *
536
+ * @param ids - Comma separated list of ids
537
+ * @param functionName - Function to be called on click
538
+ * @param functionArgs - Arguments to be passed to the function
539
+ */
540
+ setClickEvent(ids, functionName, functionArgs) {
541
+ ids.split(",").forEach((id) => {
542
+ this.setClickFun(id, functionName, functionArgs);
543
+ });
544
+ this.setClass(ids, "clickable");
545
+ }
546
+ bindFunctions(element) {
547
+ this.funs.forEach((fun) => {
548
+ fun(element);
549
+ });
550
+ }
551
+ getDirection() {
552
+ return this.direction?.trim();
553
+ }
554
+ /**
555
+ * Retrieval function for fetching the found nodes after parsing has completed.
556
+ *
557
+ */
558
+ getVertices() {
559
+ return this.vertices;
560
+ }
561
+ /**
562
+ * Retrieval function for fetching the found links after parsing has completed.
563
+ *
564
+ */
565
+ getEdges() {
566
+ return this.edges;
567
+ }
568
+ /**
569
+ * Retrieval function for fetching the found class definitions after parsing has completed.
570
+ *
571
+ */
572
+ getClasses() {
573
+ return this.classes;
574
+ }
575
+ setupToolTips(element) {
576
+ let tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)(".mermaidTooltip");
577
+ if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
578
+ tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
579
+ }
580
+ const svg = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)(element).select("svg");
581
+ const nodes = svg.selectAll("g.node");
582
+ nodes.on("mouseover", (e) => {
583
+ const el = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)(e.currentTarget);
584
+ const title = el.attr("title");
585
+ if (title === null) {
586
+ return;
587
+ }
588
+ const rect = e.currentTarget?.getBoundingClientRect();
589
+ tooltipElem.transition().duration(200).style("opacity", ".9");
590
+ tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.bottom + "px");
591
+ tooltipElem.html(tooltipElem.html().replace(/&lt;br\/&gt;/g, "<br/>"));
592
+ el.classed("hover", true);
593
+ }).on("mouseout", (e) => {
594
+ tooltipElem.transition().duration(500).style("opacity", 0);
595
+ const el = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)(e.currentTarget);
596
+ el.classed("hover", false);
597
+ });
598
+ }
599
+ /**
600
+ * Clears the internal graph db so that a new graph can be parsed.
601
+ *
602
+ */
603
+ clear(ver = "gen-2") {
604
+ this.vertices = /* @__PURE__ */ new Map();
605
+ this.classes = /* @__PURE__ */ new Map();
606
+ this.edges = [];
607
+ this.funs = [this.setupToolTips.bind(this)];
608
+ this.subGraphs = [];
609
+ this.subGraphLookup = /* @__PURE__ */ new Map();
610
+ this.subCount = 0;
611
+ this.tooltips = /* @__PURE__ */ new Map();
612
+ this.firstGraphFlag = true;
613
+ this.version = ver;
614
+ this.config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)();
615
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .clear */ .IU)();
616
+ }
617
+ setGen(ver) {
618
+ this.version = ver || "gen-2";
619
+ }
620
+ defaultStyle() {
621
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
622
+ }
623
+ addSubGraph(_id, list, _title) {
624
+ let id = _id.text.trim();
625
+ let title = _title.text;
626
+ if (_id === _title && /\s/.exec(_title.text)) {
627
+ id = void 0;
628
+ }
629
+ const uniq = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)((a) => {
630
+ const prims = { boolean: {}, number: {}, string: {} };
631
+ const objs = [];
632
+ let dir2;
633
+ const nodeList2 = a.filter(function(item) {
634
+ const type = typeof item;
635
+ if (item.stmt && item.stmt === "dir") {
636
+ dir2 = item.value;
637
+ return false;
638
+ }
639
+ if (item.trim() === "") {
640
+ return false;
641
+ }
642
+ if (type in prims) {
643
+ return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
644
+ } else {
645
+ return objs.includes(item) ? false : objs.push(item);
646
+ }
647
+ });
648
+ return { nodeList: nodeList2, dir: dir2 };
649
+ }, "uniq");
650
+ const { nodeList, dir } = uniq(list.flat());
651
+ if (this.version === "gen-1") {
652
+ for (let i = 0; i < nodeList.length; i++) {
653
+ nodeList[i] = this.lookUpDomId(nodeList[i]);
654
+ }
655
+ }
656
+ id = id ?? "subGraph" + this.subCount;
657
+ title = title || "";
658
+ title = this.sanitizeText(title);
659
+ this.subCount = this.subCount + 1;
660
+ const subGraph = {
661
+ id,
662
+ nodes: nodeList,
663
+ title: title.trim(),
664
+ classes: [],
665
+ dir,
666
+ labelType: _title.type
667
+ };
668
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
669
+ subGraph.nodes = this.makeUniq(subGraph, this.subGraphs).nodes;
670
+ this.subGraphs.push(subGraph);
671
+ this.subGraphLookup.set(id, subGraph);
672
+ return id;
673
+ }
674
+ getPosForId(id) {
675
+ for (const [i, subGraph] of this.subGraphs.entries()) {
676
+ if (subGraph.id === id) {
677
+ return i;
678
+ }
679
+ }
680
+ return -1;
681
+ }
682
+ indexNodes2(id, pos) {
683
+ const nodes = this.subGraphs[pos].nodes;
684
+ this.secCount = this.secCount + 1;
685
+ if (this.secCount > 2e3) {
686
+ return {
687
+ result: false,
688
+ count: 0
689
+ };
690
+ }
691
+ this.posCrossRef[this.secCount] = pos;
692
+ if (this.subGraphs[pos].id === id) {
693
+ return {
694
+ result: true,
695
+ count: 0
696
+ };
697
+ }
698
+ let count = 0;
699
+ let posCount = 1;
700
+ while (count < nodes.length) {
701
+ const childPos = this.getPosForId(nodes[count]);
702
+ if (childPos >= 0) {
703
+ const res = this.indexNodes2(id, childPos);
704
+ if (res.result) {
705
+ return {
706
+ result: true,
707
+ count: posCount + res.count
708
+ };
709
+ } else {
710
+ posCount = posCount + res.count;
711
+ }
712
+ }
713
+ count = count + 1;
714
+ }
715
+ return {
716
+ result: false,
717
+ count: posCount
718
+ };
719
+ }
720
+ getDepthFirstPos(pos) {
721
+ return this.posCrossRef[pos];
722
+ }
723
+ indexNodes() {
724
+ this.secCount = -1;
725
+ if (this.subGraphs.length > 0) {
726
+ this.indexNodes2("none", this.subGraphs.length - 1);
727
+ }
728
+ }
729
+ getSubGraphs() {
730
+ return this.subGraphs;
731
+ }
732
+ firstGraph() {
733
+ if (this.firstGraphFlag) {
734
+ this.firstGraphFlag = false;
735
+ return true;
736
+ }
737
+ return false;
738
+ }
739
+ destructStartLink(_str) {
740
+ let str = _str.trim();
741
+ let type = "arrow_open";
742
+ switch (str[0]) {
743
+ case "<":
744
+ type = "arrow_point";
745
+ str = str.slice(1);
746
+ break;
747
+ case "x":
748
+ type = "arrow_cross";
749
+ str = str.slice(1);
750
+ break;
751
+ case "o":
752
+ type = "arrow_circle";
753
+ str = str.slice(1);
754
+ break;
755
+ }
756
+ let stroke = "normal";
757
+ if (str.includes("=")) {
758
+ stroke = "thick";
759
+ }
760
+ if (str.includes(".")) {
761
+ stroke = "dotted";
762
+ }
763
+ return { type, stroke };
764
+ }
765
+ countChar(char, str) {
766
+ const length = str.length;
767
+ let count = 0;
768
+ for (let i = 0; i < length; ++i) {
769
+ if (str[i] === char) {
770
+ ++count;
771
+ }
772
+ }
773
+ return count;
774
+ }
775
+ destructEndLink(_str) {
776
+ const str = _str.trim();
777
+ let line = str.slice(0, -1);
778
+ let type = "arrow_open";
779
+ switch (str.slice(-1)) {
780
+ case "x":
781
+ type = "arrow_cross";
782
+ if (str.startsWith("x")) {
783
+ type = "double_" + type;
784
+ line = line.slice(1);
785
+ }
786
+ break;
787
+ case ">":
788
+ type = "arrow_point";
789
+ if (str.startsWith("<")) {
790
+ type = "double_" + type;
791
+ line = line.slice(1);
792
+ }
793
+ break;
794
+ case "o":
795
+ type = "arrow_circle";
796
+ if (str.startsWith("o")) {
797
+ type = "double_" + type;
798
+ line = line.slice(1);
799
+ }
800
+ break;
801
+ }
802
+ let stroke = "normal";
803
+ let length = line.length - 1;
804
+ if (line.startsWith("=")) {
805
+ stroke = "thick";
806
+ }
807
+ if (line.startsWith("~")) {
808
+ stroke = "invisible";
809
+ }
810
+ const dots = this.countChar(".", line);
811
+ if (dots) {
812
+ stroke = "dotted";
813
+ length = dots;
814
+ }
815
+ return { type, stroke, length };
816
+ }
817
+ destructLink(_str, _startStr) {
818
+ const info = this.destructEndLink(_str);
819
+ let startInfo;
820
+ if (_startStr) {
821
+ startInfo = this.destructStartLink(_startStr);
822
+ if (startInfo.stroke !== info.stroke) {
823
+ return { type: "INVALID", stroke: "INVALID" };
824
+ }
825
+ if (startInfo.type === "arrow_open") {
826
+ startInfo.type = info.type;
827
+ } else {
828
+ if (startInfo.type !== info.type) {
829
+ return { type: "INVALID", stroke: "INVALID" };
830
+ }
831
+ startInfo.type = "double_" + startInfo.type;
832
+ }
833
+ if (startInfo.type === "double_arrow") {
834
+ startInfo.type = "double_arrow_point";
835
+ }
836
+ startInfo.length = info.length;
837
+ return startInfo;
838
+ }
839
+ return info;
840
+ }
841
+ // Todo optimizer this by caching existing nodes
842
+ exists(allSgs, _id) {
843
+ for (const sg of allSgs) {
844
+ if (sg.nodes.includes(_id)) {
845
+ return true;
846
+ }
847
+ }
848
+ return false;
849
+ }
850
+ /**
851
+ * Deletes an id from all subgraphs
852
+ *
853
+ */
854
+ makeUniq(sg, allSubgraphs) {
855
+ const res = [];
856
+ sg.nodes.forEach((_id, pos) => {
857
+ if (!this.exists(allSubgraphs, _id)) {
858
+ res.push(sg.nodes[pos]);
859
+ }
860
+ });
861
+ return { nodes: res };
862
+ }
863
+ getTypeFromVertex(vertex) {
864
+ if (vertex.img) {
865
+ return "imageSquare";
866
+ }
867
+ if (vertex.icon) {
868
+ if (vertex.form === "circle") {
869
+ return "iconCircle";
870
+ }
871
+ if (vertex.form === "square") {
872
+ return "iconSquare";
873
+ }
874
+ if (vertex.form === "rounded") {
875
+ return "iconRounded";
876
+ }
877
+ return "icon";
878
+ }
879
+ switch (vertex.type) {
880
+ case "square":
881
+ case void 0:
882
+ return "squareRect";
883
+ case "round":
884
+ return "roundedRect";
885
+ case "ellipse":
886
+ return "ellipse";
887
+ default:
888
+ return vertex.type;
889
+ }
890
+ }
891
+ findNode(nodes, id) {
892
+ return nodes.find((node) => node.id === id);
893
+ }
894
+ destructEdgeType(type) {
895
+ let arrowTypeStart = "none";
896
+ let arrowTypeEnd = "arrow_point";
897
+ switch (type) {
898
+ case "arrow_point":
899
+ case "arrow_circle":
900
+ case "arrow_cross":
901
+ arrowTypeEnd = type;
902
+ break;
903
+ case "double_arrow_point":
904
+ case "double_arrow_circle":
905
+ case "double_arrow_cross":
906
+ arrowTypeStart = type.replace("double_", "");
907
+ arrowTypeEnd = arrowTypeStart;
908
+ break;
909
+ }
910
+ return { arrowTypeStart, arrowTypeEnd };
911
+ }
912
+ addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, look) {
913
+ const parentId = parentDB.get(vertex.id);
914
+ const isGroup = subGraphDB.get(vertex.id) ?? false;
915
+ const node = this.findNode(nodes, vertex.id);
916
+ if (node) {
917
+ node.cssStyles = vertex.styles;
918
+ node.cssCompiledStyles = this.getCompiledStyles(vertex.classes);
919
+ node.cssClasses = vertex.classes.join(" ");
920
+ } else {
921
+ const baseNode = {
922
+ id: vertex.id,
923
+ label: vertex.text,
924
+ labelStyle: "",
925
+ parentId,
926
+ padding: config.flowchart?.padding || 8,
927
+ cssStyles: vertex.styles,
928
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...vertex.classes]),
929
+ cssClasses: "default " + vertex.classes.join(" "),
930
+ dir: vertex.dir,
931
+ domId: vertex.domId,
932
+ look,
933
+ link: vertex.link,
934
+ linkTarget: vertex.linkTarget,
935
+ tooltip: this.getTooltip(vertex.id),
936
+ icon: vertex.icon,
937
+ pos: vertex.pos,
938
+ img: vertex.img,
939
+ assetWidth: vertex.assetWidth,
940
+ assetHeight: vertex.assetHeight,
941
+ constraint: vertex.constraint
942
+ };
943
+ if (isGroup) {
944
+ nodes.push({
945
+ ...baseNode,
946
+ isGroup: true,
947
+ shape: "rect"
948
+ });
949
+ } else {
950
+ nodes.push({
951
+ ...baseNode,
952
+ isGroup: false,
953
+ shape: this.getTypeFromVertex(vertex)
954
+ });
955
+ }
956
+ }
957
+ }
958
+ getCompiledStyles(classDefs) {
959
+ let compiledStyles = [];
960
+ for (const customClass of classDefs) {
961
+ const cssClass = this.classes.get(customClass);
962
+ if (cssClass?.styles) {
963
+ compiledStyles = [...compiledStyles, ...cssClass.styles ?? []].map((s) => s.trim());
964
+ }
965
+ if (cssClass?.textStyles) {
966
+ compiledStyles = [...compiledStyles, ...cssClass.textStyles ?? []].map((s) => s.trim());
967
+ }
968
+ }
969
+ return compiledStyles;
970
+ }
971
+ getData() {
972
+ const config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)();
973
+ const nodes = [];
974
+ const edges = [];
975
+ const subGraphs = this.getSubGraphs();
976
+ const parentDB = /* @__PURE__ */ new Map();
977
+ const subGraphDB = /* @__PURE__ */ new Map();
978
+ for (let i = subGraphs.length - 1; i >= 0; i--) {
979
+ const subGraph = subGraphs[i];
980
+ if (subGraph.nodes.length > 0) {
981
+ subGraphDB.set(subGraph.id, true);
982
+ }
983
+ for (const id of subGraph.nodes) {
984
+ parentDB.set(id, subGraph.id);
985
+ }
986
+ }
987
+ for (let i = subGraphs.length - 1; i >= 0; i--) {
988
+ const subGraph = subGraphs[i];
989
+ nodes.push({
990
+ id: subGraph.id,
991
+ label: subGraph.title,
992
+ labelStyle: "",
993
+ parentId: parentDB.get(subGraph.id),
994
+ padding: 8,
995
+ cssCompiledStyles: this.getCompiledStyles(subGraph.classes),
996
+ cssClasses: subGraph.classes.join(" "),
997
+ shape: "rect",
998
+ dir: subGraph.dir,
999
+ isGroup: true,
1000
+ look: config.look
1001
+ });
1002
+ }
1003
+ const n = this.getVertices();
1004
+ n.forEach((vertex) => {
1005
+ this.addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, config.look || "classic");
1006
+ });
1007
+ const e = this.getEdges();
1008
+ e.forEach((rawEdge, index) => {
1009
+ const { arrowTypeStart, arrowTypeEnd } = this.destructEdgeType(rawEdge.type);
1010
+ const styles = [...e.defaultStyle ?? []];
1011
+ if (rawEdge.style) {
1012
+ styles.push(...rawEdge.style);
1013
+ }
1014
+ const edge = {
1015
+ id: (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getEdgeId */ .rY)(rawEdge.start, rawEdge.end, { counter: index, prefix: "L" }, rawEdge.id),
1016
+ isUserDefinedId: rawEdge.isUserDefinedId,
1017
+ start: rawEdge.start,
1018
+ end: rawEdge.end,
1019
+ type: rawEdge.type ?? "normal",
1020
+ label: rawEdge.text,
1021
+ labelpos: "c",
1022
+ thickness: rawEdge.stroke,
1023
+ minlen: rawEdge.length,
1024
+ classes: rawEdge?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
1025
+ arrowTypeStart: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeStart,
1026
+ arrowTypeEnd: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeEnd,
1027
+ arrowheadStyle: "fill: #333",
1028
+ cssCompiledStyles: this.getCompiledStyles(rawEdge.classes),
1029
+ labelStyle: styles,
1030
+ style: styles,
1031
+ pattern: rawEdge.stroke,
1032
+ look: config.look,
1033
+ animate: rawEdge.animate,
1034
+ animation: rawEdge.animation,
1035
+ curve: rawEdge.interpolate || this.edges.defaultInterpolate || config.flowchart?.curve
1036
+ };
1037
+ edges.push(edge);
1038
+ });
1039
+ return { nodes, edges, other: {}, config };
1040
+ }
1041
+ defaultConfig() {
1042
+ return _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .defaultConfig2 */ .ME.flowchart;
1043
+ }
1044
+ };
1045
+
1046
+ // src/diagrams/flowchart/flowRenderer-v3-unified.ts
1047
+
1048
+ var getClasses = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(text, diagramObj) {
1049
+ return diagramObj.db.getClasses();
1050
+ }, "getClasses");
1051
+ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(async function(text, id, _version, diag) {
1052
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("REF0:");
1053
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.info("Drawing state diagram (v2)", id);
1054
+ const { securityLevel, flowchart: conf, layout } = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .getConfig2 */ .D7)();
1055
+ let sandboxElement;
1056
+ if (securityLevel === "sandbox") {
1057
+ sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)("#i" + id);
1058
+ }
1059
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
1060
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.debug("Before getData: ");
1061
+ const data4Layout = diag.db.getData();
1062
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.debug("Data: ", data4Layout);
1063
+ const svg = (0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_1__/* .getDiagramElement */ .A)(id, securityLevel);
1064
+ const direction = diag.db.getDirection();
1065
+ data4Layout.type = diag.type;
1066
+ data4Layout.layoutAlgorithm = (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_2__/* .getRegisteredLayoutAlgorithm */ .q7)(layout);
1067
+ if (data4Layout.layoutAlgorithm === "dagre" && layout === "elk") {
1068
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.warn(
1069
+ "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
1070
+ );
1071
+ }
1072
+ data4Layout.direction = direction;
1073
+ data4Layout.nodeSpacing = conf?.nodeSpacing || 50;
1074
+ data4Layout.rankSpacing = conf?.rankSpacing || 50;
1075
+ data4Layout.markers = ["point", "circle", "cross"];
1076
+ data4Layout.diagramId = id;
1077
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .log */ .Rm.debug("REF1:", data4Layout);
1078
+ await (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)(data4Layout, svg);
1079
+ const padding = data4Layout.config.flowchart?.diagramPadding ?? 8;
1080
+ _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .utils_default */ ._K.insertTitle(
1081
+ svg,
1082
+ "flowchartTitleText",
1083
+ conf?.titleTopMargin || 0,
1084
+ diag.db.getDiagramTitle()
1085
+ );
1086
+ (0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_1__/* .setupViewPortForSVG */ .P)(svg, padding, "flowchart", conf?.useMaxWidth || false);
1087
+ for (const vertex of data4Layout.nodes) {
1088
+ const node = (0,d3__WEBPACK_IMPORTED_MODULE_11__/* .select */ .Ltv)(`#${id} [id="${vertex.id}"]`);
1089
+ if (!node || !vertex.link) {
1090
+ continue;
1091
+ }
1092
+ const link = doc.createElementNS("http://www.w3.org/2000/svg", "a");
1093
+ link.setAttributeNS("http://www.w3.org/2000/svg", "class", vertex.cssClasses);
1094
+ link.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener");
1095
+ if (securityLevel === "sandbox") {
1096
+ link.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top");
1097
+ } else if (vertex.linkTarget) {
1098
+ link.setAttributeNS("http://www.w3.org/2000/svg", "target", vertex.linkTarget);
1099
+ }
1100
+ const linkNode = node.insert(function() {
1101
+ return link;
1102
+ }, ":first-child");
1103
+ const shape = node.select(".label-container");
1104
+ if (shape) {
1105
+ linkNode.append(function() {
1106
+ return shape.node();
1107
+ });
1108
+ }
1109
+ const label = node.select(".label");
1110
+ if (label) {
1111
+ linkNode.append(function() {
1112
+ return label.node();
1113
+ });
1114
+ }
1115
+ }
1116
+ }, "draw");
1117
+ var flowRenderer_v3_unified_default = {
1118
+ getClasses,
1119
+ draw
1120
+ };
1121
+
1122
+ // src/diagrams/flowchart/parser/flow.jison
1123
+ var parser = function() {
1124
+ var o = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(k, v, o2, l) {
1125
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
1126
+ return o2;
1127
+ }, "o"), $V0 = [1, 4], $V1 = [1, 3], $V2 = [1, 5], $V3 = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], $V4 = [2, 2], $V5 = [1, 13], $V6 = [1, 14], $V7 = [1, 15], $V8 = [1, 16], $V9 = [1, 23], $Va = [1, 25], $Vb = [1, 26], $Vc = [1, 27], $Vd = [1, 49], $Ve = [1, 48], $Vf = [1, 29], $Vg = [1, 30], $Vh = [1, 31], $Vi = [1, 32], $Vj = [1, 33], $Vk = [1, 44], $Vl = [1, 46], $Vm = [1, 42], $Vn = [1, 47], $Vo = [1, 43], $Vp = [1, 50], $Vq = [1, 45], $Vr = [1, 51], $Vs = [1, 52], $Vt = [1, 34], $Vu = [1, 35], $Vv = [1, 36], $Vw = [1, 37], $Vx = [1, 57], $Vy = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], $Vz = [1, 61], $VA = [1, 60], $VB = [1, 62], $VC = [8, 9, 11, 75, 77, 78], $VD = [1, 78], $VE = [1, 91], $VF = [1, 96], $VG = [1, 95], $VH = [1, 92], $VI = [1, 88], $VJ = [1, 94], $VK = [1, 90], $VL = [1, 97], $VM = [1, 93], $VN = [1, 98], $VO = [1, 89], $VP = [8, 9, 10, 11, 40, 75, 77, 78], $VQ = [8, 9, 10, 11, 40, 46, 75, 77, 78], $VR = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VS = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VT = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VU = [1, 121], $VV = [1, 122], $VW = [1, 124], $VX = [1, 123], $VY = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VZ = [1, 133], $V_ = [1, 147], $V$ = [1, 148], $V01 = [1, 149], $V11 = [1, 150], $V21 = [1, 135], $V31 = [1, 137], $V41 = [1, 141], $V51 = [1, 142], $V61 = [1, 143], $V71 = [1, 144], $V81 = [1, 145], $V91 = [1, 146], $Va1 = [1, 151], $Vb1 = [1, 152], $Vc1 = [1, 131], $Vd1 = [1, 132], $Ve1 = [1, 139], $Vf1 = [1, 134], $Vg1 = [1, 138], $Vh1 = [1, 136], $Vi1 = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], $Vj1 = [1, 154], $Vk1 = [1, 156], $Vl1 = [8, 9, 11], $Vm1 = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], $Vn1 = [1, 176], $Vo1 = [1, 172], $Vp1 = [1, 173], $Vq1 = [1, 177], $Vr1 = [1, 174], $Vs1 = [1, 175], $Vt1 = [77, 116, 119], $Vu1 = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], $Vv1 = [10, 106], $Vw1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], $Vx1 = [1, 247], $Vy1 = [1, 245], $Vz1 = [1, 249], $VA1 = [1, 243], $VB1 = [1, 244], $VC1 = [1, 246], $VD1 = [1, 248], $VE1 = [1, 250], $VF1 = [1, 268], $VG1 = [8, 9, 11, 106], $VH1 = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112];
1128
+ var parser2 = {
1129
+ trace: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function trace() {
1130
+ }, "trace"),
1131
+ yy: {},
1132
+ symbols_: { "error": 2, "start": 3, "graphConfig": 4, "document": 5, "line": 6, "statement": 7, "SEMI": 8, "NEWLINE": 9, "SPACE": 10, "EOF": 11, "GRAPH": 12, "NODIR": 13, "DIR": 14, "FirstStmtSeparator": 15, "ending": 16, "endToken": 17, "spaceList": 18, "spaceListNewline": 19, "vertexStatement": 20, "separator": 21, "styleStatement": 22, "linkStyleStatement": 23, "classDefStatement": 24, "classStatement": 25, "clickStatement": 26, "subgraph": 27, "textNoTags": 28, "SQS": 29, "text": 30, "SQE": 31, "end": 32, "direction": 33, "acc_title": 34, "acc_title_value": 35, "acc_descr": 36, "acc_descr_value": 37, "acc_descr_multiline_value": 38, "shapeData": 39, "SHAPE_DATA": 40, "link": 41, "node": 42, "styledVertex": 43, "AMP": 44, "vertex": 45, "STYLE_SEPARATOR": 46, "idString": 47, "DOUBLECIRCLESTART": 48, "DOUBLECIRCLEEND": 49, "PS": 50, "PE": 51, "(-": 52, "-)": 53, "STADIUMSTART": 54, "STADIUMEND": 55, "SUBROUTINESTART": 56, "SUBROUTINEEND": 57, "VERTEX_WITH_PROPS_START": 58, "NODE_STRING[field]": 59, "COLON": 60, "NODE_STRING[value]": 61, "PIPE": 62, "CYLINDERSTART": 63, "CYLINDEREND": 64, "DIAMOND_START": 65, "DIAMOND_STOP": 66, "TAGEND": 67, "TRAPSTART": 68, "TRAPEND": 69, "INVTRAPSTART": 70, "INVTRAPEND": 71, "linkStatement": 72, "arrowText": 73, "TESTSTR": 74, "START_LINK": 75, "edgeText": 76, "LINK": 77, "LINK_ID": 78, "edgeTextToken": 79, "STR": 80, "MD_STR": 81, "textToken": 82, "keywords": 83, "STYLE": 84, "LINKSTYLE": 85, "CLASSDEF": 86, "CLASS": 87, "CLICK": 88, "DOWN": 89, "UP": 90, "textNoTagsToken": 91, "stylesOpt": 92, "idString[vertex]": 93, "idString[class]": 94, "CALLBACKNAME": 95, "CALLBACKARGS": 96, "HREF": 97, "LINK_TARGET": 98, "STR[link]": 99, "STR[tooltip]": 100, "alphaNum": 101, "DEFAULT": 102, "numList": 103, "INTERPOLATE": 104, "NUM": 105, "COMMA": 106, "style": 107, "styleComponent": 108, "NODE_STRING": 109, "UNIT": 110, "BRKT": 111, "PCT": 112, "idStringToken": 113, "MINUS": 114, "MULT": 115, "UNICODE_TEXT": 116, "TEXT": 117, "TAGSTART": 118, "EDGE_TEXT": 119, "alphaNumToken": 120, "direction_tb": 121, "direction_bt": 122, "direction_rl": 123, "direction_lr": 124, "$accept": 0, "$end": 1 },
1133
+ terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr" },
1134
+ productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
1135
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1136
+ var $0 = $$.length - 1;
1137
+ switch (yystate) {
1138
+ case 2:
1139
+ this.$ = [];
1140
+ break;
1141
+ case 3:
1142
+ if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
1143
+ $$[$0 - 1].push($$[$0]);
1144
+ }
1145
+ this.$ = $$[$0 - 1];
1146
+ break;
1147
+ case 4:
1148
+ case 183:
1149
+ this.$ = $$[$0];
1150
+ break;
1151
+ case 11:
1152
+ yy.setDirection("TB");
1153
+ this.$ = "TB";
1154
+ break;
1155
+ case 12:
1156
+ yy.setDirection($$[$0 - 1]);
1157
+ this.$ = $$[$0 - 1];
1158
+ break;
1159
+ case 27:
1160
+ this.$ = $$[$0 - 1].nodes;
1161
+ break;
1162
+ case 28:
1163
+ case 29:
1164
+ case 30:
1165
+ case 31:
1166
+ case 32:
1167
+ this.$ = [];
1168
+ break;
1169
+ case 33:
1170
+ this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
1171
+ break;
1172
+ case 34:
1173
+ this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
1174
+ break;
1175
+ case 35:
1176
+ this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
1177
+ break;
1178
+ case 37:
1179
+ this.$ = $$[$0].trim();
1180
+ yy.setAccTitle(this.$);
1181
+ break;
1182
+ case 38:
1183
+ case 39:
1184
+ this.$ = $$[$0].trim();
1185
+ yy.setAccDescription(this.$);
1186
+ break;
1187
+ case 43:
1188
+ this.$ = $$[$0 - 1] + $$[$0];
1189
+ break;
1190
+ case 44:
1191
+ this.$ = $$[$0];
1192
+ break;
1193
+ case 45:
1194
+ yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1195
+ yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1196
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1197
+ break;
1198
+ case 46:
1199
+ yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
1200
+ this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
1201
+ break;
1202
+ case 47:
1203
+ yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1204
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1205
+ break;
1206
+ case 48:
1207
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
1208
+ break;
1209
+ case 49:
1210
+ yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1211
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1], shapeData: $$[$0] };
1212
+ break;
1213
+ case 50:
1214
+ this.$ = { stmt: $$[$0], nodes: $$[$0] };
1215
+ break;
1216
+ case 51:
1217
+ this.$ = [$$[$0]];
1218
+ break;
1219
+ case 52:
1220
+ yy.addVertex($$[$0 - 5][$$[$0 - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0 - 4]);
1221
+ this.$ = $$[$0 - 5].concat($$[$0]);
1222
+ break;
1223
+ case 53:
1224
+ this.$ = $$[$0 - 4].concat($$[$0]);
1225
+ break;
1226
+ case 54:
1227
+ this.$ = $$[$0];
1228
+ break;
1229
+ case 55:
1230
+ this.$ = $$[$0 - 2];
1231
+ yy.setClass($$[$0 - 2], $$[$0]);
1232
+ break;
1233
+ case 56:
1234
+ this.$ = $$[$0 - 3];
1235
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
1236
+ break;
1237
+ case 57:
1238
+ this.$ = $$[$0 - 3];
1239
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
1240
+ break;
1241
+ case 58:
1242
+ this.$ = $$[$0 - 5];
1243
+ yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
1244
+ break;
1245
+ case 59:
1246
+ this.$ = $$[$0 - 3];
1247
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
1248
+ break;
1249
+ case 60:
1250
+ this.$ = $$[$0 - 3];
1251
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
1252
+ break;
1253
+ case 61:
1254
+ this.$ = $$[$0 - 3];
1255
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
1256
+ break;
1257
+ case 62:
1258
+ this.$ = $$[$0 - 7];
1259
+ yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
1260
+ break;
1261
+ case 63:
1262
+ this.$ = $$[$0 - 3];
1263
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
1264
+ break;
1265
+ case 64:
1266
+ this.$ = $$[$0 - 3];
1267
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
1268
+ break;
1269
+ case 65:
1270
+ this.$ = $$[$0 - 3];
1271
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
1272
+ break;
1273
+ case 66:
1274
+ this.$ = $$[$0 - 5];
1275
+ yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
1276
+ break;
1277
+ case 67:
1278
+ this.$ = $$[$0 - 3];
1279
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
1280
+ break;
1281
+ case 68:
1282
+ this.$ = $$[$0 - 3];
1283
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
1284
+ break;
1285
+ case 69:
1286
+ this.$ = $$[$0 - 3];
1287
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
1288
+ break;
1289
+ case 70:
1290
+ this.$ = $$[$0 - 3];
1291
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
1292
+ break;
1293
+ case 71:
1294
+ this.$ = $$[$0 - 3];
1295
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
1296
+ break;
1297
+ case 72:
1298
+ this.$ = $$[$0];
1299
+ yy.addVertex($$[$0]);
1300
+ break;
1301
+ case 73:
1302
+ $$[$0 - 1].text = $$[$0];
1303
+ this.$ = $$[$0 - 1];
1304
+ break;
1305
+ case 74:
1306
+ case 75:
1307
+ $$[$0 - 2].text = $$[$0 - 1];
1308
+ this.$ = $$[$0 - 2];
1309
+ break;
1310
+ case 76:
1311
+ this.$ = $$[$0];
1312
+ break;
1313
+ case 77:
1314
+ var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1315
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
1316
+ break;
1317
+ case 78:
1318
+ var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1319
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1], "id": $$[$0 - 3] };
1320
+ break;
1321
+ case 79:
1322
+ this.$ = { text: $$[$0], type: "text" };
1323
+ break;
1324
+ case 80:
1325
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1326
+ break;
1327
+ case 81:
1328
+ this.$ = { text: $$[$0], type: "string" };
1329
+ break;
1330
+ case 82:
1331
+ this.$ = { text: $$[$0], type: "markdown" };
1332
+ break;
1333
+ case 83:
1334
+ var inf = yy.destructLink($$[$0]);
1335
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
1336
+ break;
1337
+ case 84:
1338
+ var inf = yy.destructLink($$[$0]);
1339
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "id": $$[$0 - 1] };
1340
+ break;
1341
+ case 85:
1342
+ this.$ = $$[$0 - 1];
1343
+ break;
1344
+ case 86:
1345
+ this.$ = { text: $$[$0], type: "text" };
1346
+ break;
1347
+ case 87:
1348
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1349
+ break;
1350
+ case 88:
1351
+ this.$ = { text: $$[$0], type: "string" };
1352
+ break;
1353
+ case 89:
1354
+ case 104:
1355
+ this.$ = { text: $$[$0], type: "markdown" };
1356
+ break;
1357
+ case 101:
1358
+ this.$ = { text: $$[$0], type: "text" };
1359
+ break;
1360
+ case 102:
1361
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1362
+ break;
1363
+ case 103:
1364
+ this.$ = { text: $$[$0], type: "text" };
1365
+ break;
1366
+ case 105:
1367
+ this.$ = $$[$0 - 4];
1368
+ yy.addClass($$[$0 - 2], $$[$0]);
1369
+ break;
1370
+ case 106:
1371
+ this.$ = $$[$0 - 4];
1372
+ yy.setClass($$[$0 - 2], $$[$0]);
1373
+ break;
1374
+ case 107:
1375
+ case 115:
1376
+ this.$ = $$[$0 - 1];
1377
+ yy.setClickEvent($$[$0 - 1], $$[$0]);
1378
+ break;
1379
+ case 108:
1380
+ case 116:
1381
+ this.$ = $$[$0 - 3];
1382
+ yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
1383
+ yy.setTooltip($$[$0 - 3], $$[$0]);
1384
+ break;
1385
+ case 109:
1386
+ this.$ = $$[$0 - 2];
1387
+ yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1388
+ break;
1389
+ case 110:
1390
+ this.$ = $$[$0 - 4];
1391
+ yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
1392
+ yy.setTooltip($$[$0 - 4], $$[$0]);
1393
+ break;
1394
+ case 111:
1395
+ this.$ = $$[$0 - 2];
1396
+ yy.setLink($$[$0 - 2], $$[$0]);
1397
+ break;
1398
+ case 112:
1399
+ this.$ = $$[$0 - 4];
1400
+ yy.setLink($$[$0 - 4], $$[$0 - 2]);
1401
+ yy.setTooltip($$[$0 - 4], $$[$0]);
1402
+ break;
1403
+ case 113:
1404
+ this.$ = $$[$0 - 4];
1405
+ yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
1406
+ break;
1407
+ case 114:
1408
+ this.$ = $$[$0 - 6];
1409
+ yy.setLink($$[$0 - 6], $$[$0 - 4], $$[$0]);
1410
+ yy.setTooltip($$[$0 - 6], $$[$0 - 2]);
1411
+ break;
1412
+ case 117:
1413
+ this.$ = $$[$0 - 1];
1414
+ yy.setLink($$[$0 - 1], $$[$0]);
1415
+ break;
1416
+ case 118:
1417
+ this.$ = $$[$0 - 3];
1418
+ yy.setLink($$[$0 - 3], $$[$0 - 2]);
1419
+ yy.setTooltip($$[$0 - 3], $$[$0]);
1420
+ break;
1421
+ case 119:
1422
+ this.$ = $$[$0 - 3];
1423
+ yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
1424
+ break;
1425
+ case 120:
1426
+ this.$ = $$[$0 - 5];
1427
+ yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
1428
+ yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
1429
+ break;
1430
+ case 121:
1431
+ this.$ = $$[$0 - 4];
1432
+ yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
1433
+ break;
1434
+ case 122:
1435
+ this.$ = $$[$0 - 4];
1436
+ yy.updateLink([$$[$0 - 2]], $$[$0]);
1437
+ break;
1438
+ case 123:
1439
+ this.$ = $$[$0 - 4];
1440
+ yy.updateLink($$[$0 - 2], $$[$0]);
1441
+ break;
1442
+ case 124:
1443
+ this.$ = $$[$0 - 8];
1444
+ yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
1445
+ yy.updateLink([$$[$0 - 6]], $$[$0]);
1446
+ break;
1447
+ case 125:
1448
+ this.$ = $$[$0 - 8];
1449
+ yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
1450
+ yy.updateLink($$[$0 - 6], $$[$0]);
1451
+ break;
1452
+ case 126:
1453
+ this.$ = $$[$0 - 6];
1454
+ yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
1455
+ break;
1456
+ case 127:
1457
+ this.$ = $$[$0 - 6];
1458
+ yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
1459
+ break;
1460
+ case 128:
1461
+ case 130:
1462
+ this.$ = [$$[$0]];
1463
+ break;
1464
+ case 129:
1465
+ case 131:
1466
+ $$[$0 - 2].push($$[$0]);
1467
+ this.$ = $$[$0 - 2];
1468
+ break;
1469
+ case 133:
1470
+ this.$ = $$[$0 - 1] + $$[$0];
1471
+ break;
1472
+ case 181:
1473
+ this.$ = $$[$0];
1474
+ break;
1475
+ case 182:
1476
+ this.$ = $$[$0 - 1] + "" + $$[$0];
1477
+ break;
1478
+ case 184:
1479
+ this.$ = $$[$0 - 1] + "" + $$[$0];
1480
+ break;
1481
+ case 185:
1482
+ this.$ = { stmt: "dir", value: "TB" };
1483
+ break;
1484
+ case 186:
1485
+ this.$ = { stmt: "dir", value: "BT" };
1486
+ break;
1487
+ case 187:
1488
+ this.$ = { stmt: "dir", value: "RL" };
1489
+ break;
1490
+ case 188:
1491
+ this.$ = { stmt: "dir", value: "LR" };
1492
+ break;
1493
+ }
1494
+ }, "anonymous"),
1495
+ table: [{ 3: 1, 4: 2, 9: $V0, 10: $V1, 12: $V2 }, { 1: [3] }, o($V3, $V4, { 5: 6 }), { 4: 7, 9: $V0, 10: $V1, 12: $V2 }, { 4: 8, 9: $V0, 10: $V1, 12: $V2 }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($V3, [2, 9]), o($V3, [2, 10]), o($V3, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: $Vx, 15: 53, 18: 56 }, o($Vy, [2, 3]), o($Vy, [2, 4]), o($Vy, [2, 5]), o($Vy, [2, 6]), o($Vy, [2, 7]), o($Vy, [2, 8]), { 8: $Vz, 9: $VA, 11: $VB, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 67 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 68 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 69 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 70 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 71 }, { 8: $Vz, 9: $VA, 10: [1, 72], 11: $VB, 21: 73 }, o($Vy, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, o($Vy, [2, 39]), o($VC, [2, 50], { 18: 76, 39: 77, 10: $Vx, 40: $VD }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: $VE, 44: $VF, 60: $VG, 80: [1, 86], 89: $VH, 95: [1, 83], 97: [1, 84], 101: 85, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, o($Vy, [2, 185]), o($Vy, [2, 186]), o($Vy, [2, 187]), o($Vy, [2, 188]), o($VP, [2, 51]), o($VP, [2, 54], { 46: [1, 99] }), o($VQ, [2, 72], { 113: 112, 29: [1, 100], 44: $Vd, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: $Ve, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($VR, [2, 181]), o($VR, [2, 142]), o($VR, [2, 143]), o($VR, [2, 144]), o($VR, [2, 145]), o($VR, [2, 146]), o($VR, [2, 147]), o($VR, [2, 148]), o($VR, [2, 149]), o($VR, [2, 150]), o($VR, [2, 151]), o($VR, [2, 152]), o($V3, [2, 12]), o($V3, [2, 18]), o($V3, [2, 19]), { 9: [1, 113] }, o($VS, [2, 26], { 18: 114, 10: $Vx }), o($Vy, [2, 27]), { 42: 115, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vy, [2, 40]), o($Vy, [2, 41]), o($Vy, [2, 42]), o($VT, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, { 75: [1, 125], 77: [1, 126] }, o($VY, [2, 83]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 30]), o($Vy, [2, 31]), o($Vy, [2, 32]), { 10: $VZ, 12: $V_, 14: $V$, 27: $V01, 28: 127, 32: $V11, 44: $V21, 60: $V31, 75: $V41, 80: [1, 129], 81: [1, 130], 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 128, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vi1, $V4, { 5: 153 }), o($Vy, [2, 37]), o($Vy, [2, 38]), o($VC, [2, 48], { 44: $Vj1 }), o($VC, [2, 49], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VP, [2, 44]), { 44: $Vd, 47: 157, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: $Vd, 47: 161, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 44: $Vd, 47: 162, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, o($Vl1, [2, 115], { 120: 167, 10: [1, 166], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 117], { 10: [1, 168] }), o($Vm1, [2, 183]), o($Vm1, [2, 170]), o($Vm1, [2, 171]), o($Vm1, [2, 172]), o($Vm1, [2, 173]), o($Vm1, [2, 174]), o($Vm1, [2, 175]), o($Vm1, [2, 176]), o($Vm1, [2, 177]), o($Vm1, [2, 178]), o($Vm1, [2, 179]), o($Vm1, [2, 180]), { 44: $Vd, 47: 169, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 30: 170, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 178, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 180, 50: [1, 179], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 181, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 182, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 183, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 109: [1, 184] }, { 30: 185, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 186, 65: [1, 187], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 188, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 189, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 190, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VR, [2, 182]), o($V3, [2, 20]), o($VS, [2, 25]), o($VC, [2, 46], { 39: 191, 18: 192, 10: $Vx, 40: $VD }), o($VT, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 77: [1, 196], 79: 197, 116: $VW, 119: $VX }, o($Vt1, [2, 79]), o($Vt1, [2, 81]), o($Vt1, [2, 82]), o($Vt1, [2, 168]), o($Vt1, [2, 169]), { 76: 198, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, o($VY, [2, 84]), { 8: $Vz, 9: $VA, 10: $VZ, 11: $VB, 12: $V_, 14: $V$, 21: 200, 27: $V01, 29: [1, 199], 32: $V11, 44: $V21, 60: $V31, 75: $V41, 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 201, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vu1, [2, 101]), o($Vu1, [2, 103]), o($Vu1, [2, 104]), o($Vu1, [2, 157]), o($Vu1, [2, 158]), o($Vu1, [2, 159]), o($Vu1, [2, 160]), o($Vu1, [2, 161]), o($Vu1, [2, 162]), o($Vu1, [2, 163]), o($Vu1, [2, 164]), o($Vu1, [2, 165]), o($Vu1, [2, 166]), o($Vu1, [2, 167]), o($Vu1, [2, 90]), o($Vu1, [2, 91]), o($Vu1, [2, 92]), o($Vu1, [2, 93]), o($Vu1, [2, 94]), o($Vu1, [2, 95]), o($Vu1, [2, 96]), o($Vu1, [2, 97]), o($Vu1, [2, 98]), o($Vu1, [2, 99]), o($Vu1, [2, 100]), { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 202], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx, 18: 203 }, { 44: [1, 204] }, o($VP, [2, 43]), { 10: [1, 205], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, o($Vv1, [2, 128]), { 10: [1, 209], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 210], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 80: [1, 211] }, o($Vl1, [2, 109], { 10: [1, 212] }), o($Vl1, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, o($Vm1, [2, 184]), { 80: [1, 215], 98: [1, 216] }, o($VP, [2, 55], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), { 31: [1, 217], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vw1, [2, 86]), o($Vw1, [2, 88]), o($Vw1, [2, 89]), o($Vw1, [2, 153]), o($Vw1, [2, 154]), o($Vw1, [2, 155]), o($Vw1, [2, 156]), { 49: [1, 219], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 220, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 51: [1, 221], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 53: [1, 222], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 55: [1, 223], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 57: [1, 224], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 60: [1, 225] }, { 64: [1, 226], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 66: [1, 227], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 228, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 31: [1, 229], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 230], 71: [1, 231], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 233], 71: [1, 232], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VC, [2, 45], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VC, [2, 47], { 44: $Vj1 }), o($VT, [2, 75]), o($VT, [2, 74]), { 62: [1, 234], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VT, [2, 77]), o($Vt1, [2, 80]), { 77: [1, 235], 79: 197, 116: $VW, 119: $VX }, { 30: 236, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vi1, $V4, { 5: 237 }), o($Vu1, [2, 102]), o($Vy, [2, 35]), { 43: 238, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: $Vx, 18: 239 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 240, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 251, 104: [1, 252], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 253, 104: [1, 254], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 105: [1, 255] }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 256, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 44: $Vd, 47: 257, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, o($Vl1, [2, 116]), o($Vl1, [2, 118], { 10: [1, 261] }), o($Vl1, [2, 119]), o($VQ, [2, 56]), o($Vw1, [2, 87]), o($VQ, [2, 57]), { 51: [1, 262], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 64]), o($VQ, [2, 59]), o($VQ, [2, 60]), o($VQ, [2, 61]), { 109: [1, 263] }, o($VQ, [2, 63]), o($VQ, [2, 65]), { 66: [1, 264], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 67]), o($VQ, [2, 68]), o($VQ, [2, 70]), o($VQ, [2, 69]), o($VQ, [2, 71]), o([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), o($VT, [2, 78]), { 31: [1, 265], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 266], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($VP, [2, 53]), { 43: 267, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 121], { 106: $VF1 }), o($VG1, [2, 130], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($VH1, [2, 132]), o($VH1, [2, 134]), o($VH1, [2, 135]), o($VH1, [2, 136]), o($VH1, [2, 137]), o($VH1, [2, 138]), o($VH1, [2, 139]), o($VH1, [2, 140]), o($VH1, [2, 141]), o($Vl1, [2, 122], { 106: $VF1 }), { 10: [1, 270] }, o($Vl1, [2, 123], { 106: $VF1 }), { 10: [1, 271] }, o($Vv1, [2, 129]), o($Vl1, [2, 105], { 106: $VF1 }), o($Vl1, [2, 106], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($Vl1, [2, 110]), o($Vl1, [2, 112], { 10: [1, 272] }), o($Vl1, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 277 }, o($Vy, [2, 34]), o($VP, [2, 52]), { 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 107: 278, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VH1, [2, 133]), { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 279, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 280, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 98: [1, 281] }, o($Vl1, [2, 120]), o($VQ, [2, 58]), { 30: 282, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 66]), o($Vi1, $V4, { 5: 283 }), o($VG1, [2, 131], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($Vl1, [2, 126], { 120: 167, 10: [1, 284], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 127], { 120: 167, 10: [1, 285], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 114]), { 31: [1, 286], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 287], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 288, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 289, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VQ, [2, 62]), o($Vy, [2, 33]), o($Vl1, [2, 124], { 106: $VF1 }), o($Vl1, [2, 125], { 106: $VF1 })],
1496
+ defaultActions: {},
1497
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function parseError(str, hash) {
1498
+ if (hash.recoverable) {
1499
+ this.trace(str);
1500
+ } else {
1501
+ var error = new Error(str);
1502
+ error.hash = hash;
1503
+ throw error;
1504
+ }
1505
+ }, "parseError"),
1506
+ parse: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function parse(input) {
1507
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
1508
+ var args = lstack.slice.call(arguments, 1);
1509
+ var lexer2 = Object.create(this.lexer);
1510
+ var sharedState = { yy: {} };
1511
+ for (var k in this.yy) {
1512
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1513
+ sharedState.yy[k] = this.yy[k];
1514
+ }
1515
+ }
1516
+ lexer2.setInput(input, sharedState.yy);
1517
+ sharedState.yy.lexer = lexer2;
1518
+ sharedState.yy.parser = this;
1519
+ if (typeof lexer2.yylloc == "undefined") {
1520
+ lexer2.yylloc = {};
1521
+ }
1522
+ var yyloc = lexer2.yylloc;
1523
+ lstack.push(yyloc);
1524
+ var ranges = lexer2.options && lexer2.options.ranges;
1525
+ if (typeof sharedState.yy.parseError === "function") {
1526
+ this.parseError = sharedState.yy.parseError;
1527
+ } else {
1528
+ this.parseError = Object.getPrototypeOf(this).parseError;
1529
+ }
1530
+ function popStack(n) {
1531
+ stack.length = stack.length - 2 * n;
1532
+ vstack.length = vstack.length - n;
1533
+ lstack.length = lstack.length - n;
1534
+ }
1535
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(popStack, "popStack");
1536
+ function lex() {
1537
+ var token;
1538
+ token = tstack.pop() || lexer2.lex() || EOF;
1539
+ if (typeof token !== "number") {
1540
+ if (token instanceof Array) {
1541
+ tstack = token;
1542
+ token = tstack.pop();
1543
+ }
1544
+ token = self.symbols_[token] || token;
1545
+ }
1546
+ return token;
1547
+ }
1548
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(lex, "lex");
1549
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
1550
+ while (true) {
1551
+ state = stack[stack.length - 1];
1552
+ if (this.defaultActions[state]) {
1553
+ action = this.defaultActions[state];
1554
+ } else {
1555
+ if (symbol === null || typeof symbol == "undefined") {
1556
+ symbol = lex();
1557
+ }
1558
+ action = table[state] && table[state][symbol];
1559
+ }
1560
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1561
+ var errStr = "";
1562
+ expected = [];
1563
+ for (p in table[state]) {
1564
+ if (this.terminals_[p] && p > TERROR) {
1565
+ expected.push("'" + this.terminals_[p] + "'");
1566
+ }
1567
+ }
1568
+ if (lexer2.showPosition) {
1569
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1570
+ } else {
1571
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1572
+ }
1573
+ this.parseError(errStr, {
1574
+ text: lexer2.match,
1575
+ token: this.terminals_[symbol] || symbol,
1576
+ line: lexer2.yylineno,
1577
+ loc: yyloc,
1578
+ expected
1579
+ });
1580
+ }
1581
+ if (action[0] instanceof Array && action.length > 1) {
1582
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1583
+ }
1584
+ switch (action[0]) {
1585
+ case 1:
1586
+ stack.push(symbol);
1587
+ vstack.push(lexer2.yytext);
1588
+ lstack.push(lexer2.yylloc);
1589
+ stack.push(action[1]);
1590
+ symbol = null;
1591
+ if (!preErrorSymbol) {
1592
+ yyleng = lexer2.yyleng;
1593
+ yytext = lexer2.yytext;
1594
+ yylineno = lexer2.yylineno;
1595
+ yyloc = lexer2.yylloc;
1596
+ if (recovering > 0) {
1597
+ recovering--;
1598
+ }
1599
+ } else {
1600
+ symbol = preErrorSymbol;
1601
+ preErrorSymbol = null;
1602
+ }
1603
+ break;
1604
+ case 2:
1605
+ len = this.productions_[action[1]][1];
1606
+ yyval.$ = vstack[vstack.length - len];
1607
+ yyval._$ = {
1608
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1609
+ last_line: lstack[lstack.length - 1].last_line,
1610
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1611
+ last_column: lstack[lstack.length - 1].last_column
1612
+ };
1613
+ if (ranges) {
1614
+ yyval._$.range = [
1615
+ lstack[lstack.length - (len || 1)].range[0],
1616
+ lstack[lstack.length - 1].range[1]
1617
+ ];
1618
+ }
1619
+ r = this.performAction.apply(yyval, [
1620
+ yytext,
1621
+ yyleng,
1622
+ yylineno,
1623
+ sharedState.yy,
1624
+ action[1],
1625
+ vstack,
1626
+ lstack
1627
+ ].concat(args));
1628
+ if (typeof r !== "undefined") {
1629
+ return r;
1630
+ }
1631
+ if (len) {
1632
+ stack = stack.slice(0, -1 * len * 2);
1633
+ vstack = vstack.slice(0, -1 * len);
1634
+ lstack = lstack.slice(0, -1 * len);
1635
+ }
1636
+ stack.push(this.productions_[action[1]][0]);
1637
+ vstack.push(yyval.$);
1638
+ lstack.push(yyval._$);
1639
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1640
+ stack.push(newState);
1641
+ break;
1642
+ case 3:
1643
+ return true;
1644
+ }
1645
+ }
1646
+ return true;
1647
+ }, "parse")
1648
+ };
1649
+ var lexer = /* @__PURE__ */ function() {
1650
+ var lexer2 = {
1651
+ EOF: 1,
1652
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function parseError(str, hash) {
1653
+ if (this.yy.parser) {
1654
+ this.yy.parser.parseError(str, hash);
1655
+ } else {
1656
+ throw new Error(str);
1657
+ }
1658
+ }, "parseError"),
1659
+ // resets the lexer, sets new input
1660
+ setInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(input, yy) {
1661
+ this.yy = yy || this.yy || {};
1662
+ this._input = input;
1663
+ this._more = this._backtrack = this.done = false;
1664
+ this.yylineno = this.yyleng = 0;
1665
+ this.yytext = this.matched = this.match = "";
1666
+ this.conditionStack = ["INITIAL"];
1667
+ this.yylloc = {
1668
+ first_line: 1,
1669
+ first_column: 0,
1670
+ last_line: 1,
1671
+ last_column: 0
1672
+ };
1673
+ if (this.options.ranges) {
1674
+ this.yylloc.range = [0, 0];
1675
+ }
1676
+ this.offset = 0;
1677
+ return this;
1678
+ }, "setInput"),
1679
+ // consumes and returns one char from the input
1680
+ input: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1681
+ var ch = this._input[0];
1682
+ this.yytext += ch;
1683
+ this.yyleng++;
1684
+ this.offset++;
1685
+ this.match += ch;
1686
+ this.matched += ch;
1687
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
1688
+ if (lines) {
1689
+ this.yylineno++;
1690
+ this.yylloc.last_line++;
1691
+ } else {
1692
+ this.yylloc.last_column++;
1693
+ }
1694
+ if (this.options.ranges) {
1695
+ this.yylloc.range[1]++;
1696
+ }
1697
+ this._input = this._input.slice(1);
1698
+ return ch;
1699
+ }, "input"),
1700
+ // unshifts one char (or a string) into the input
1701
+ unput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(ch) {
1702
+ var len = ch.length;
1703
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1704
+ this._input = ch + this._input;
1705
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1706
+ this.offset -= len;
1707
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1708
+ this.match = this.match.substr(0, this.match.length - 1);
1709
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1710
+ if (lines.length - 1) {
1711
+ this.yylineno -= lines.length - 1;
1712
+ }
1713
+ var r = this.yylloc.range;
1714
+ this.yylloc = {
1715
+ first_line: this.yylloc.first_line,
1716
+ last_line: this.yylineno + 1,
1717
+ first_column: this.yylloc.first_column,
1718
+ 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
1719
+ };
1720
+ if (this.options.ranges) {
1721
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1722
+ }
1723
+ this.yyleng = this.yytext.length;
1724
+ return this;
1725
+ }, "unput"),
1726
+ // When called from action, caches matched text and appends it on next action
1727
+ more: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1728
+ this._more = true;
1729
+ return this;
1730
+ }, "more"),
1731
+ // 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.
1732
+ reject: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1733
+ if (this.options.backtrack_lexer) {
1734
+ this._backtrack = true;
1735
+ } else {
1736
+ 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(), {
1737
+ text: "",
1738
+ token: null,
1739
+ line: this.yylineno
1740
+ });
1741
+ }
1742
+ return this;
1743
+ }, "reject"),
1744
+ // retain first n characters of the match
1745
+ less: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(n) {
1746
+ this.unput(this.match.slice(n));
1747
+ }, "less"),
1748
+ // displays already matched input, i.e. for error messages
1749
+ pastInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1750
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1751
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1752
+ }, "pastInput"),
1753
+ // displays upcoming input, i.e. for error messages
1754
+ upcomingInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1755
+ var next = this.match;
1756
+ if (next.length < 20) {
1757
+ next += this._input.substr(0, 20 - next.length);
1758
+ }
1759
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1760
+ }, "upcomingInput"),
1761
+ // displays the character position where the lexing error occurred, i.e. for error messages
1762
+ showPosition: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1763
+ var pre = this.pastInput();
1764
+ var c = new Array(pre.length + 1).join("-");
1765
+ return pre + this.upcomingInput() + "\n" + c + "^";
1766
+ }, "showPosition"),
1767
+ // test the lexed token: return FALSE when not a match, otherwise return token
1768
+ test_match: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function(match, indexed_rule) {
1769
+ var token, lines, backup;
1770
+ if (this.options.backtrack_lexer) {
1771
+ backup = {
1772
+ yylineno: this.yylineno,
1773
+ yylloc: {
1774
+ first_line: this.yylloc.first_line,
1775
+ last_line: this.last_line,
1776
+ first_column: this.yylloc.first_column,
1777
+ last_column: this.yylloc.last_column
1778
+ },
1779
+ yytext: this.yytext,
1780
+ match: this.match,
1781
+ matches: this.matches,
1782
+ matched: this.matched,
1783
+ yyleng: this.yyleng,
1784
+ offset: this.offset,
1785
+ _more: this._more,
1786
+ _input: this._input,
1787
+ yy: this.yy,
1788
+ conditionStack: this.conditionStack.slice(0),
1789
+ done: this.done
1790
+ };
1791
+ if (this.options.ranges) {
1792
+ backup.yylloc.range = this.yylloc.range.slice(0);
1793
+ }
1794
+ }
1795
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1796
+ if (lines) {
1797
+ this.yylineno += lines.length;
1798
+ }
1799
+ this.yylloc = {
1800
+ first_line: this.yylloc.last_line,
1801
+ last_line: this.yylineno + 1,
1802
+ first_column: this.yylloc.last_column,
1803
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1804
+ };
1805
+ this.yytext += match[0];
1806
+ this.match += match[0];
1807
+ this.matches = match;
1808
+ this.yyleng = this.yytext.length;
1809
+ if (this.options.ranges) {
1810
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
1811
+ }
1812
+ this._more = false;
1813
+ this._backtrack = false;
1814
+ this._input = this._input.slice(match[0].length);
1815
+ this.matched += match[0];
1816
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1817
+ if (this.done && this._input) {
1818
+ this.done = false;
1819
+ }
1820
+ if (token) {
1821
+ return token;
1822
+ } else if (this._backtrack) {
1823
+ for (var k in backup) {
1824
+ this[k] = backup[k];
1825
+ }
1826
+ return false;
1827
+ }
1828
+ return false;
1829
+ }, "test_match"),
1830
+ // return next match in input
1831
+ next: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function() {
1832
+ if (this.done) {
1833
+ return this.EOF;
1834
+ }
1835
+ if (!this._input) {
1836
+ this.done = true;
1837
+ }
1838
+ var token, match, tempMatch, index;
1839
+ if (!this._more) {
1840
+ this.yytext = "";
1841
+ this.match = "";
1842
+ }
1843
+ var rules = this._currentRules();
1844
+ for (var i = 0; i < rules.length; i++) {
1845
+ tempMatch = this._input.match(this.rules[rules[i]]);
1846
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1847
+ match = tempMatch;
1848
+ index = i;
1849
+ if (this.options.backtrack_lexer) {
1850
+ token = this.test_match(tempMatch, rules[i]);
1851
+ if (token !== false) {
1852
+ return token;
1853
+ } else if (this._backtrack) {
1854
+ match = false;
1855
+ continue;
1856
+ } else {
1857
+ return false;
1858
+ }
1859
+ } else if (!this.options.flex) {
1860
+ break;
1861
+ }
1862
+ }
1863
+ }
1864
+ if (match) {
1865
+ token = this.test_match(match, rules[index]);
1866
+ if (token !== false) {
1867
+ return token;
1868
+ }
1869
+ return false;
1870
+ }
1871
+ if (this._input === "") {
1872
+ return this.EOF;
1873
+ } else {
1874
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1875
+ text: "",
1876
+ token: null,
1877
+ line: this.yylineno
1878
+ });
1879
+ }
1880
+ }, "next"),
1881
+ // return next match that has a token
1882
+ lex: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function lex() {
1883
+ var r = this.next();
1884
+ if (r) {
1885
+ return r;
1886
+ } else {
1887
+ return this.lex();
1888
+ }
1889
+ }, "lex"),
1890
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1891
+ begin: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function begin(condition) {
1892
+ this.conditionStack.push(condition);
1893
+ }, "begin"),
1894
+ // pop the previously active lexer condition state off the condition stack
1895
+ popState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function popState() {
1896
+ var n = this.conditionStack.length - 1;
1897
+ if (n > 0) {
1898
+ return this.conditionStack.pop();
1899
+ } else {
1900
+ return this.conditionStack[0];
1901
+ }
1902
+ }, "popState"),
1903
+ // produce the lexer rule set which is active for the currently active lexer condition state
1904
+ _currentRules: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function _currentRules() {
1905
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
1906
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1907
+ } else {
1908
+ return this.conditions["INITIAL"].rules;
1909
+ }
1910
+ }, "_currentRules"),
1911
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1912
+ topState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function topState(n) {
1913
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
1914
+ if (n >= 0) {
1915
+ return this.conditionStack[n];
1916
+ } else {
1917
+ return "INITIAL";
1918
+ }
1919
+ }, "topState"),
1920
+ // alias for begin(condition)
1921
+ pushState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function pushState(condition) {
1922
+ this.begin(condition);
1923
+ }, "pushState"),
1924
+ // return the number of states currently on the stack
1925
+ stateStackSize: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function stateStackSize() {
1926
+ return this.conditionStack.length;
1927
+ }, "stateStackSize"),
1928
+ options: {},
1929
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1930
+ var YYSTATE = YY_START;
1931
+ switch ($avoiding_name_collisions) {
1932
+ case 0:
1933
+ this.begin("acc_title");
1934
+ return 34;
1935
+ break;
1936
+ case 1:
1937
+ this.popState();
1938
+ return "acc_title_value";
1939
+ break;
1940
+ case 2:
1941
+ this.begin("acc_descr");
1942
+ return 36;
1943
+ break;
1944
+ case 3:
1945
+ this.popState();
1946
+ return "acc_descr_value";
1947
+ break;
1948
+ case 4:
1949
+ this.begin("acc_descr_multiline");
1950
+ break;
1951
+ case 5:
1952
+ this.popState();
1953
+ break;
1954
+ case 6:
1955
+ return "acc_descr_multiline_value";
1956
+ break;
1957
+ case 7:
1958
+ this.pushState("shapeData");
1959
+ yy_.yytext = "";
1960
+ return 40;
1961
+ break;
1962
+ case 8:
1963
+ this.pushState("shapeDataStr");
1964
+ return 40;
1965
+ break;
1966
+ case 9:
1967
+ this.popState();
1968
+ return 40;
1969
+ break;
1970
+ case 10:
1971
+ const re = /\n\s*/g;
1972
+ yy_.yytext = yy_.yytext.replace(re, "<br/>");
1973
+ return 40;
1974
+ break;
1975
+ case 11:
1976
+ return 40;
1977
+ break;
1978
+ case 12:
1979
+ this.popState();
1980
+ break;
1981
+ case 13:
1982
+ this.begin("callbackname");
1983
+ break;
1984
+ case 14:
1985
+ this.popState();
1986
+ break;
1987
+ case 15:
1988
+ this.popState();
1989
+ this.begin("callbackargs");
1990
+ break;
1991
+ case 16:
1992
+ return 95;
1993
+ break;
1994
+ case 17:
1995
+ this.popState();
1996
+ break;
1997
+ case 18:
1998
+ return 96;
1999
+ break;
2000
+ case 19:
2001
+ return "MD_STR";
2002
+ break;
2003
+ case 20:
2004
+ this.popState();
2005
+ break;
2006
+ case 21:
2007
+ this.begin("md_string");
2008
+ break;
2009
+ case 22:
2010
+ return "STR";
2011
+ break;
2012
+ case 23:
2013
+ this.popState();
2014
+ break;
2015
+ case 24:
2016
+ this.pushState("string");
2017
+ break;
2018
+ case 25:
2019
+ return 84;
2020
+ break;
2021
+ case 26:
2022
+ return 102;
2023
+ break;
2024
+ case 27:
2025
+ return 85;
2026
+ break;
2027
+ case 28:
2028
+ return 104;
2029
+ break;
2030
+ case 29:
2031
+ return 86;
2032
+ break;
2033
+ case 30:
2034
+ return 87;
2035
+ break;
2036
+ case 31:
2037
+ return 97;
2038
+ break;
2039
+ case 32:
2040
+ this.begin("click");
2041
+ break;
2042
+ case 33:
2043
+ this.popState();
2044
+ break;
2045
+ case 34:
2046
+ return 88;
2047
+ break;
2048
+ case 35:
2049
+ if (yy.lex.firstGraph()) {
2050
+ this.begin("dir");
2051
+ }
2052
+ return 12;
2053
+ break;
2054
+ case 36:
2055
+ if (yy.lex.firstGraph()) {
2056
+ this.begin("dir");
2057
+ }
2058
+ return 12;
2059
+ break;
2060
+ case 37:
2061
+ if (yy.lex.firstGraph()) {
2062
+ this.begin("dir");
2063
+ }
2064
+ return 12;
2065
+ break;
2066
+ case 38:
2067
+ return 27;
2068
+ break;
2069
+ case 39:
2070
+ return 32;
2071
+ break;
2072
+ case 40:
2073
+ return 98;
2074
+ break;
2075
+ case 41:
2076
+ return 98;
2077
+ break;
2078
+ case 42:
2079
+ return 98;
2080
+ break;
2081
+ case 43:
2082
+ return 98;
2083
+ break;
2084
+ case 44:
2085
+ this.popState();
2086
+ return 13;
2087
+ break;
2088
+ case 45:
2089
+ this.popState();
2090
+ return 14;
2091
+ break;
2092
+ case 46:
2093
+ this.popState();
2094
+ return 14;
2095
+ break;
2096
+ case 47:
2097
+ this.popState();
2098
+ return 14;
2099
+ break;
2100
+ case 48:
2101
+ this.popState();
2102
+ return 14;
2103
+ break;
2104
+ case 49:
2105
+ this.popState();
2106
+ return 14;
2107
+ break;
2108
+ case 50:
2109
+ this.popState();
2110
+ return 14;
2111
+ break;
2112
+ case 51:
2113
+ this.popState();
2114
+ return 14;
2115
+ break;
2116
+ case 52:
2117
+ this.popState();
2118
+ return 14;
2119
+ break;
2120
+ case 53:
2121
+ this.popState();
2122
+ return 14;
2123
+ break;
2124
+ case 54:
2125
+ this.popState();
2126
+ return 14;
2127
+ break;
2128
+ case 55:
2129
+ return 121;
2130
+ break;
2131
+ case 56:
2132
+ return 122;
2133
+ break;
2134
+ case 57:
2135
+ return 123;
2136
+ break;
2137
+ case 58:
2138
+ return 124;
2139
+ break;
2140
+ case 59:
2141
+ return 78;
2142
+ break;
2143
+ case 60:
2144
+ return 105;
2145
+ break;
2146
+ case 61:
2147
+ return 111;
2148
+ break;
2149
+ case 62:
2150
+ return 46;
2151
+ break;
2152
+ case 63:
2153
+ return 60;
2154
+ break;
2155
+ case 64:
2156
+ return 44;
2157
+ break;
2158
+ case 65:
2159
+ return 8;
2160
+ break;
2161
+ case 66:
2162
+ return 106;
2163
+ break;
2164
+ case 67:
2165
+ return 115;
2166
+ break;
2167
+ case 68:
2168
+ this.popState();
2169
+ return 77;
2170
+ break;
2171
+ case 69:
2172
+ this.pushState("edgeText");
2173
+ return 75;
2174
+ break;
2175
+ case 70:
2176
+ return 119;
2177
+ break;
2178
+ case 71:
2179
+ this.popState();
2180
+ return 77;
2181
+ break;
2182
+ case 72:
2183
+ this.pushState("thickEdgeText");
2184
+ return 75;
2185
+ break;
2186
+ case 73:
2187
+ return 119;
2188
+ break;
2189
+ case 74:
2190
+ this.popState();
2191
+ return 77;
2192
+ break;
2193
+ case 75:
2194
+ this.pushState("dottedEdgeText");
2195
+ return 75;
2196
+ break;
2197
+ case 76:
2198
+ return 119;
2199
+ break;
2200
+ case 77:
2201
+ return 77;
2202
+ break;
2203
+ case 78:
2204
+ this.popState();
2205
+ return 53;
2206
+ break;
2207
+ case 79:
2208
+ return "TEXT";
2209
+ break;
2210
+ case 80:
2211
+ this.pushState("ellipseText");
2212
+ return 52;
2213
+ break;
2214
+ case 81:
2215
+ this.popState();
2216
+ return 55;
2217
+ break;
2218
+ case 82:
2219
+ this.pushState("text");
2220
+ return 54;
2221
+ break;
2222
+ case 83:
2223
+ this.popState();
2224
+ return 57;
2225
+ break;
2226
+ case 84:
2227
+ this.pushState("text");
2228
+ return 56;
2229
+ break;
2230
+ case 85:
2231
+ return 58;
2232
+ break;
2233
+ case 86:
2234
+ this.pushState("text");
2235
+ return 67;
2236
+ break;
2237
+ case 87:
2238
+ this.popState();
2239
+ return 64;
2240
+ break;
2241
+ case 88:
2242
+ this.pushState("text");
2243
+ return 63;
2244
+ break;
2245
+ case 89:
2246
+ this.popState();
2247
+ return 49;
2248
+ break;
2249
+ case 90:
2250
+ this.pushState("text");
2251
+ return 48;
2252
+ break;
2253
+ case 91:
2254
+ this.popState();
2255
+ return 69;
2256
+ break;
2257
+ case 92:
2258
+ this.popState();
2259
+ return 71;
2260
+ break;
2261
+ case 93:
2262
+ return 117;
2263
+ break;
2264
+ case 94:
2265
+ this.pushState("trapText");
2266
+ return 68;
2267
+ break;
2268
+ case 95:
2269
+ this.pushState("trapText");
2270
+ return 70;
2271
+ break;
2272
+ case 96:
2273
+ return 118;
2274
+ break;
2275
+ case 97:
2276
+ return 67;
2277
+ break;
2278
+ case 98:
2279
+ return 90;
2280
+ break;
2281
+ case 99:
2282
+ return "SEP";
2283
+ break;
2284
+ case 100:
2285
+ return 89;
2286
+ break;
2287
+ case 101:
2288
+ return 115;
2289
+ break;
2290
+ case 102:
2291
+ return 111;
2292
+ break;
2293
+ case 103:
2294
+ return 44;
2295
+ break;
2296
+ case 104:
2297
+ return 109;
2298
+ break;
2299
+ case 105:
2300
+ return 114;
2301
+ break;
2302
+ case 106:
2303
+ return 116;
2304
+ break;
2305
+ case 107:
2306
+ this.popState();
2307
+ return 62;
2308
+ break;
2309
+ case 108:
2310
+ this.pushState("text");
2311
+ return 62;
2312
+ break;
2313
+ case 109:
2314
+ this.popState();
2315
+ return 51;
2316
+ break;
2317
+ case 110:
2318
+ this.pushState("text");
2319
+ return 50;
2320
+ break;
2321
+ case 111:
2322
+ this.popState();
2323
+ return 31;
2324
+ break;
2325
+ case 112:
2326
+ this.pushState("text");
2327
+ return 29;
2328
+ break;
2329
+ case 113:
2330
+ this.popState();
2331
+ return 66;
2332
+ break;
2333
+ case 114:
2334
+ this.pushState("text");
2335
+ return 65;
2336
+ break;
2337
+ case 115:
2338
+ return "TEXT";
2339
+ break;
2340
+ case 116:
2341
+ return "QUOTE";
2342
+ break;
2343
+ case 117:
2344
+ return 9;
2345
+ break;
2346
+ case 118:
2347
+ return 10;
2348
+ break;
2349
+ case 119:
2350
+ return 11;
2351
+ break;
2352
+ }
2353
+ }, "anonymous"),
2354
+ rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
2355
+ conditions: { "shapeDataEndBracket": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeDataStr": { "rules": [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeData": { "rules": [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackargs": { "rules": [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackname": { "rules": [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "href": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "click": { "rules": [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dottedEdgeText": { "rules": [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "thickEdgeText": { "rules": [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "edgeText": { "rules": [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "trapText": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], "inclusive": false }, "ellipseText": { "rules": [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "text": { "rules": [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], "inclusive": false }, "vertex": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dir": { "rules": [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr_multiline": { "rules": [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr": { "rules": [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_title": { "rules": [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "md_string": { "rules": [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "string": { "rules": [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "INITIAL": { "rules": [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], "inclusive": true } }
2356
+ };
2357
+ return lexer2;
2358
+ }();
2359
+ parser2.lexer = lexer;
2360
+ function Parser() {
2361
+ this.yy = {};
2362
+ }
2363
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)(Parser, "Parser");
2364
+ Parser.prototype = parser2;
2365
+ parser2.Parser = Parser;
2366
+ return new Parser();
2367
+ }();
2368
+ parser.parser = parser;
2369
+ var flow_default = parser;
2370
+
2371
+ // src/diagrams/flowchart/parser/flowParser.ts
2372
+ var newParser = Object.assign({}, flow_default);
2373
+ newParser.parse = (src) => {
2374
+ const newSrc = src.replace(/}\s*\n/g, "}\n");
2375
+ return flow_default.parse(newSrc);
2376
+ };
2377
+ var flowParser_default = newParser;
2378
+
2379
+ // src/diagrams/flowchart/styles.ts
2380
+
2381
+ var fade = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)((color, opacity) => {
2382
+ const channel2 = khroma__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A;
2383
+ const r = channel2(color, "r");
2384
+ const g = channel2(color, "g");
2385
+ const b = channel2(color, "b");
2386
+ return khroma__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A(r, g, b, opacity);
2387
+ }, "fade");
2388
+ var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)((options) => `.label {
2389
+ font-family: ${options.fontFamily};
2390
+ color: ${options.nodeTextColor || options.textColor};
2391
+ }
2392
+ .cluster-label text {
2393
+ fill: ${options.titleColor};
2394
+ }
2395
+ .cluster-label span {
2396
+ color: ${options.titleColor};
2397
+ }
2398
+ .cluster-label span p {
2399
+ background-color: transparent;
2400
+ }
2401
+
2402
+ .label text,span {
2403
+ fill: ${options.nodeTextColor || options.textColor};
2404
+ color: ${options.nodeTextColor || options.textColor};
2405
+ }
2406
+
2407
+ .node rect,
2408
+ .node circle,
2409
+ .node ellipse,
2410
+ .node polygon,
2411
+ .node path {
2412
+ fill: ${options.mainBkg};
2413
+ stroke: ${options.nodeBorder};
2414
+ stroke-width: 1px;
2415
+ }
2416
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
2417
+ text-anchor: middle;
2418
+ }
2419
+ // .flowchart-label .text-outer-tspan {
2420
+ // text-anchor: middle;
2421
+ // }
2422
+ // .flowchart-label .text-inner-tspan {
2423
+ // text-anchor: start;
2424
+ // }
2425
+
2426
+ .node .katex path {
2427
+ fill: #000;
2428
+ stroke: #000;
2429
+ stroke-width: 1px;
2430
+ }
2431
+
2432
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
2433
+ text-align: center;
2434
+ }
2435
+ .node.clickable {
2436
+ cursor: pointer;
2437
+ }
2438
+
2439
+
2440
+ .root .anchor path {
2441
+ fill: ${options.lineColor} !important;
2442
+ stroke-width: 0;
2443
+ stroke: ${options.lineColor};
2444
+ }
2445
+
2446
+ .arrowheadPath {
2447
+ fill: ${options.arrowheadColor};
2448
+ }
2449
+
2450
+ .edgePath .path {
2451
+ stroke: ${options.lineColor};
2452
+ stroke-width: 2.0px;
2453
+ }
2454
+
2455
+ .flowchart-link {
2456
+ stroke: ${options.lineColor};
2457
+ fill: none;
2458
+ }
2459
+
2460
+ .edgeLabel {
2461
+ background-color: ${options.edgeLabelBackground};
2462
+ p {
2463
+ background-color: ${options.edgeLabelBackground};
2464
+ }
2465
+ rect {
2466
+ opacity: 0.5;
2467
+ background-color: ${options.edgeLabelBackground};
2468
+ fill: ${options.edgeLabelBackground};
2469
+ }
2470
+ text-align: center;
2471
+ }
2472
+
2473
+ /* For html labels only */
2474
+ .labelBkg {
2475
+ background-color: ${fade(options.edgeLabelBackground, 0.5)};
2476
+ // background-color:
2477
+ }
2478
+
2479
+ .cluster rect {
2480
+ fill: ${options.clusterBkg};
2481
+ stroke: ${options.clusterBorder};
2482
+ stroke-width: 1px;
2483
+ }
2484
+
2485
+ .cluster text {
2486
+ fill: ${options.titleColor};
2487
+ }
2488
+
2489
+ .cluster span {
2490
+ color: ${options.titleColor};
2491
+ }
2492
+ /* .cluster div {
2493
+ color: ${options.titleColor};
2494
+ } */
2495
+
2496
+ div.mermaidTooltip {
2497
+ position: absolute;
2498
+ text-align: center;
2499
+ max-width: 200px;
2500
+ padding: 2px;
2501
+ font-family: ${options.fontFamily};
2502
+ font-size: 12px;
2503
+ background: ${options.tertiaryColor};
2504
+ border: 1px solid ${options.border2};
2505
+ border-radius: 2px;
2506
+ pointer-events: none;
2507
+ z-index: 100;
2508
+ }
2509
+
2510
+ .flowchartTitleText {
2511
+ text-anchor: middle;
2512
+ font-size: 18px;
2513
+ fill: ${options.textColor};
2514
+ }
2515
+
2516
+ rect.text {
2517
+ fill: none;
2518
+ stroke-width: 0;
2519
+ }
2520
+
2521
+ .icon-shape, .image-shape {
2522
+ background-color: ${options.edgeLabelBackground};
2523
+ p {
2524
+ background-color: ${options.edgeLabelBackground};
2525
+ padding: 2px;
2526
+ }
2527
+ rect {
2528
+ opacity: 0.5;
2529
+ background-color: ${options.edgeLabelBackground};
2530
+ fill: ${options.edgeLabelBackground};
2531
+ }
2532
+ text-align: center;
2533
+ }
2534
+ `, "getStyles");
2535
+ var styles_default = getStyles;
2536
+
2537
+ // src/diagrams/flowchart/flowDiagram.ts
2538
+ var diagram = {
2539
+ parser: flowParser_default,
2540
+ get db() {
2541
+ return new FlowDB();
2542
+ },
2543
+ renderer: flowRenderer_v3_unified_default,
2544
+ styles: styles_default,
2545
+ init: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .__name */ .K2)((cnf) => {
2546
+ if (!cnf.flowchart) {
2547
+ cnf.flowchart = {};
2548
+ }
2549
+ if (cnf.layout) {
2550
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .setConfig2 */ .XV)({ layout: cnf.layout });
2551
+ }
2552
+ cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
2553
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_10__/* .setConfig2 */ .XV)({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
2554
+ }, "init")
2555
+ };
2556
+
2557
+
2558
+
2559
+ /***/ })
2560
+
2561
+ };
2562
+ ;
2563
+ //# sourceMappingURL=23.node.js.map