@readme/markdown 7.6.6 → 7.7.0

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 (86) hide show
  1. package/README.md +60 -79
  2. package/components/Code/index.tsx +7 -3
  3. package/components/Code/style.scss +6 -0
  4. package/components/CodeTabs/index.tsx +25 -2
  5. package/components/Image/style.scss +7 -4
  6. package/dist/10.js +22718 -0
  7. package/dist/10.node.js +22721 -0
  8. package/dist/11.js +1440 -0
  9. package/dist/11.node.js +1443 -0
  10. package/dist/120.js +19 -0
  11. package/dist/120.node.js +22 -0
  12. package/dist/134.js +19 -0
  13. package/dist/134.node.js +22 -0
  14. package/dist/150.js +1888 -0
  15. package/dist/150.node.js +1891 -0
  16. package/dist/17.js +1373 -0
  17. package/dist/17.node.js +1376 -0
  18. package/dist/246.js +1929 -0
  19. package/dist/246.node.js +1932 -0
  20. package/dist/351.js +2400 -0
  21. package/dist/351.node.js +2403 -0
  22. package/dist/366.js +1181 -0
  23. package/dist/366.node.js +1184 -0
  24. package/dist/403.js +2192 -0
  25. package/dist/403.node.js +2195 -0
  26. package/dist/429.js +11130 -0
  27. package/dist/429.node.js +11133 -0
  28. package/dist/485.js +514 -0
  29. package/dist/485.node.js +517 -0
  30. package/dist/488.js +55 -0
  31. package/dist/488.node.js +58 -0
  32. package/dist/489.js +18472 -0
  33. package/dist/489.node.js +18475 -0
  34. package/dist/510.js +246 -0
  35. package/dist/510.node.js +249 -0
  36. package/dist/52.js +808 -0
  37. package/dist/52.node.js +811 -0
  38. package/dist/550.node.js +1456 -0
  39. package/dist/551.js +2722 -0
  40. package/dist/551.node.js +2725 -0
  41. package/dist/617.js +19 -0
  42. package/dist/617.node.js +22 -0
  43. package/dist/687.js +3671 -0
  44. package/dist/687.node.js +3674 -0
  45. package/dist/745.js +7504 -0
  46. package/dist/745.node.js +7507 -0
  47. package/dist/775.js +1900 -0
  48. package/dist/775.node.js +1903 -0
  49. package/dist/786.js +31378 -0
  50. package/dist/786.node.js +31381 -0
  51. package/dist/788.js +1021 -0
  52. package/dist/788.node.js +1024 -0
  53. package/dist/81.js +382 -0
  54. package/dist/81.node.js +385 -0
  55. package/dist/849.js +2586 -0
  56. package/dist/849.node.js +2589 -0
  57. package/dist/863.js +19 -0
  58. package/dist/863.node.js +22 -0
  59. package/dist/867.js +1414 -0
  60. package/dist/867.node.js +1417 -0
  61. package/dist/871.js +1533 -0
  62. package/dist/881.js +1276 -0
  63. package/dist/881.node.js +1279 -0
  64. package/dist/885.js +48 -0
  65. package/dist/885.node.js +51 -0
  66. package/dist/896.js +1613 -0
  67. package/dist/896.node.js +1616 -0
  68. package/dist/906.js +1815 -0
  69. package/dist/906.node.js +1818 -0
  70. package/dist/91.js +19 -0
  71. package/dist/91.node.js +22 -0
  72. package/dist/940.js +3359 -0
  73. package/dist/940.node.js +3362 -0
  74. package/dist/952.js +243 -0
  75. package/dist/952.node.js +246 -0
  76. package/dist/995.js +5734 -0
  77. package/dist/995.node.js +5737 -0
  78. package/dist/components/Code/index.d.ts +1 -1
  79. package/dist/lib/ast-processor.d.ts +3 -1
  80. package/dist/lib/compile.d.ts +2 -1
  81. package/dist/main.css +1 -1
  82. package/dist/main.js +94787 -73737
  83. package/dist/main.node.js +103724 -82783
  84. package/dist/processor/transform/code-tabs.d.ts +3 -1
  85. package/dist/processor/transform/index.d.ts +12 -1
  86. package/package.json +3 -3
package/dist/351.js ADDED
@@ -0,0 +1,2400 @@
1
+ "use strict";
2
+ (self["webpackChunk_readme_markdown"] = self["webpackChunk_readme_markdown"] || []).push([[351],{
3
+
4
+ /***/ 7574:
5
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
+
7
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
9
+ /* harmony export */ });
10
+ /* harmony import */ var _utils_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1404);
11
+ /* harmony import */ var _color_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9569);
12
+ /* IMPORT */
13
+
14
+
15
+ /* MAIN */
16
+ const channel = (color, channel) => {
17
+ return _utils_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.lang.round(_color_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.parse(color)[channel]);
18
+ };
19
+ /* EXPORT */
20
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (channel);
21
+
22
+
23
+ /***/ }),
24
+
25
+ /***/ 4265:
26
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27
+
28
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29
+ /* harmony export */ A: () => (/* binding */ getDiagramElement),
30
+ /* harmony export */ P: () => (/* binding */ setupViewPortForSVG)
31
+ /* harmony export */ });
32
+ /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6322);
33
+ /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8066);
34
+
35
+
36
+ // src/rendering-util/insertElementsForSize.js
37
+
38
+ var getDiagramElement = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((id, securityLevel) => {
39
+ let sandboxElement;
40
+ if (securityLevel === "sandbox") {
41
+ sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("#i" + id);
42
+ }
43
+ 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");
44
+ const svg = root.select(`[id="${id}"]`);
45
+ return svg;
46
+ }, "getDiagramElement");
47
+
48
+ // src/rendering-util/setupViewPortForSVG.ts
49
+ var setupViewPortForSVG = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding, cssDiagram, useMaxWidth) => {
50
+ svg.attr("class", cssDiagram);
51
+ const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
52
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .configureSvgSize */ .a$)(svg, height, width, useMaxWidth);
53
+ const viewBox = createViewBox(x, y, width, height, padding);
54
+ svg.attr("viewBox", viewBox);
55
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
56
+ }, "setupViewPortForSVG");
57
+ var calculateDimensionsWithPadding = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding) => {
58
+ const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
59
+ return {
60
+ width: bounds.width + padding * 2,
61
+ height: bounds.height + padding * 2,
62
+ x: bounds.x,
63
+ y: bounds.y
64
+ };
65
+ }, "calculateDimensionsWithPadding");
66
+ var createViewBox = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((x, y, width, height, padding) => {
67
+ return `${x - padding} ${y - padding} ${width} ${height}`;
68
+ }, "createViewBox");
69
+
70
+
71
+
72
+
73
+ /***/ }),
74
+
75
+ /***/ 4351:
76
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
77
+
78
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
79
+ /* harmony export */ diagram: () => (/* binding */ diagram)
80
+ /* harmony export */ });
81
+ /* harmony import */ var _chunk_4LC2V6XN_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4265);
82
+ /* harmony import */ var _chunk_LSPXGDWS_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(656);
83
+ /* harmony import */ var _chunk_U2OMI7UW_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2385);
84
+ /* harmony import */ var _chunk_O5FTX4FK_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1285);
85
+ /* harmony import */ var _chunk_CTJGIJSU_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4875);
86
+ /* harmony import */ var _chunk_I3FGKTZ5_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6971);
87
+ /* harmony import */ var _chunk_U7L4IQIU_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5449);
88
+ /* harmony import */ var _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2843);
89
+ /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6322);
90
+ /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8066);
91
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7574);
92
+ /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3635);
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ // src/diagrams/flowchart/flowDb.ts
104
+
105
+ var MERMAID_DOM_ID_PREFIX = "flowchart-";
106
+ var vertexCounter = 0;
107
+ var config = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)();
108
+ var vertices = /* @__PURE__ */ new Map();
109
+ var edges = [];
110
+ var classes = /* @__PURE__ */ new Map();
111
+ var subGraphs = [];
112
+ var subGraphLookup = /* @__PURE__ */ new Map();
113
+ var tooltips = /* @__PURE__ */ new Map();
114
+ var subCount = 0;
115
+ var firstGraphFlag = true;
116
+ var direction;
117
+ var version;
118
+ var funs = [];
119
+ var sanitizeText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((txt) => _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .common_default */ .Y2.sanitizeText(txt, config), "sanitizeText");
120
+ var lookUpDomId = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id) {
121
+ for (const vertex of vertices.values()) {
122
+ if (vertex.id === id) {
123
+ return vertex.domId;
124
+ }
125
+ }
126
+ return id;
127
+ }, "lookUpDomId");
128
+ var addVertex = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id, textObj, type, style, classes2, dir, props = {}, shapeData) {
129
+ if (!id || id.trim().length === 0) {
130
+ return;
131
+ }
132
+ let txt;
133
+ let vertex = vertices.get(id);
134
+ if (vertex === void 0) {
135
+ vertex = {
136
+ id,
137
+ labelType: "text",
138
+ domId: MERMAID_DOM_ID_PREFIX + id + "-" + vertexCounter,
139
+ styles: [],
140
+ classes: []
141
+ };
142
+ vertices.set(id, vertex);
143
+ }
144
+ vertexCounter++;
145
+ if (textObj !== void 0) {
146
+ config = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)();
147
+ txt = sanitizeText(textObj.text.trim());
148
+ vertex.labelType = textObj.type;
149
+ if (txt.startsWith('"') && txt.endsWith('"')) {
150
+ txt = txt.substring(1, txt.length - 1);
151
+ }
152
+ vertex.text = txt;
153
+ } else {
154
+ if (vertex.text === void 0) {
155
+ vertex.text = id;
156
+ }
157
+ }
158
+ if (type !== void 0) {
159
+ vertex.type = type;
160
+ }
161
+ if (style !== void 0 && style !== null) {
162
+ style.forEach(function(s) {
163
+ vertex.styles.push(s);
164
+ });
165
+ }
166
+ if (classes2 !== void 0 && classes2 !== null) {
167
+ classes2.forEach(function(s) {
168
+ vertex.classes.push(s);
169
+ });
170
+ }
171
+ if (dir !== void 0) {
172
+ vertex.dir = dir;
173
+ }
174
+ if (vertex.props === void 0) {
175
+ vertex.props = props;
176
+ } else if (props !== void 0) {
177
+ Object.assign(vertex.props, props);
178
+ }
179
+ if (shapeData !== void 0) {
180
+ let yamlData;
181
+ if (!shapeData.includes("\n")) {
182
+ yamlData = "{\n" + shapeData + "\n}";
183
+ } else {
184
+ yamlData = shapeData + "\n";
185
+ }
186
+ const doc = (0,_chunk_LSPXGDWS_mjs__WEBPACK_IMPORTED_MODULE_1__/* .load */ .H)(yamlData, { schema: _chunk_LSPXGDWS_mjs__WEBPACK_IMPORTED_MODULE_1__/* .JSON_SCHEMA */ .r });
187
+ if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_"))) {
188
+ throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
189
+ }
190
+ if (doc?.shape) {
191
+ vertex.type = doc?.shape;
192
+ }
193
+ if (doc?.label) {
194
+ vertex.text = doc?.label;
195
+ }
196
+ if (doc?.icon) {
197
+ vertex.icon = doc?.icon;
198
+ if (!doc.label?.trim() && vertex.text === id) {
199
+ vertex.text = "";
200
+ }
201
+ }
202
+ if (doc?.form) {
203
+ vertex.form = doc?.form;
204
+ }
205
+ if (doc?.pos) {
206
+ vertex.pos = doc?.pos;
207
+ }
208
+ if (doc?.img) {
209
+ vertex.img = doc?.img;
210
+ if (!doc.label?.trim() && vertex.text === id) {
211
+ vertex.text = "";
212
+ }
213
+ }
214
+ if (doc?.constraint) {
215
+ vertex.constraint = doc.constraint;
216
+ }
217
+ if (doc.w) {
218
+ vertex.assetWidth = Number(doc.w);
219
+ }
220
+ if (doc.h) {
221
+ vertex.assetHeight = Number(doc.h);
222
+ }
223
+ }
224
+ }, "addVertex");
225
+ var addSingleLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(_start, _end, type) {
226
+ const start = _start;
227
+ const end = _end;
228
+ const edge = { start, end, type: void 0, text: "", labelType: "text" };
229
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("abc78 Got edge...", edge);
230
+ const linkTextObj = type.text;
231
+ if (linkTextObj !== void 0) {
232
+ edge.text = sanitizeText(linkTextObj.text.trim());
233
+ if (edge.text.startsWith('"') && edge.text.endsWith('"')) {
234
+ edge.text = edge.text.substring(1, edge.text.length - 1);
235
+ }
236
+ edge.labelType = linkTextObj.type;
237
+ }
238
+ if (type !== void 0) {
239
+ edge.type = type.type;
240
+ edge.stroke = type.stroke;
241
+ edge.length = type.length > 10 ? 10 : type.length;
242
+ }
243
+ if (edges.length < (config.maxEdges ?? 500)) {
244
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("Pushing edge...");
245
+ edges.push(edge);
246
+ } else {
247
+ throw new Error(
248
+ `Edge limit exceeded. ${edges.length} edges found, but the limit is ${config.maxEdges}.
249
+
250
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
251
+ You cannot set this config via configuration inside the diagram as it is a secure config.
252
+ You have to call mermaid.initialize.`
253
+ );
254
+ }
255
+ }, "addSingleLink");
256
+ var addLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(_start, _end, type) {
257
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("addLink", _start, _end, type);
258
+ for (const start of _start) {
259
+ for (const end of _end) {
260
+ addSingleLink(start, end, type);
261
+ }
262
+ }
263
+ }, "addLink");
264
+ var updateLinkInterpolate = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(positions, interpolate) {
265
+ positions.forEach(function(pos) {
266
+ if (pos === "default") {
267
+ edges.defaultInterpolate = interpolate;
268
+ } else {
269
+ edges[pos].interpolate = interpolate;
270
+ }
271
+ });
272
+ }, "updateLinkInterpolate");
273
+ var updateLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(positions, style) {
274
+ positions.forEach(function(pos) {
275
+ if (typeof pos === "number" && pos >= edges.length) {
276
+ throw new Error(
277
+ `The index ${pos} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
278
+ );
279
+ }
280
+ if (pos === "default") {
281
+ edges.defaultStyle = style;
282
+ } else {
283
+ edges[pos].style = style;
284
+ if ((edges[pos]?.style?.length ?? 0) > 0 && !edges[pos]?.style?.some((s) => s?.startsWith("fill"))) {
285
+ edges[pos]?.style?.push("fill:none");
286
+ }
287
+ }
288
+ });
289
+ }, "updateLink");
290
+ var addClass = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ids, style) {
291
+ ids.split(",").forEach(function(id) {
292
+ let classNode = classes.get(id);
293
+ if (classNode === void 0) {
294
+ classNode = { id, styles: [], textStyles: [] };
295
+ classes.set(id, classNode);
296
+ }
297
+ if (style !== void 0 && style !== null) {
298
+ style.forEach(function(s) {
299
+ if (/color/.exec(s)) {
300
+ const newStyle = s.replace("fill", "bgFill");
301
+ classNode.textStyles.push(newStyle);
302
+ }
303
+ classNode.styles.push(s);
304
+ });
305
+ }
306
+ });
307
+ }, "addClass");
308
+ var setDirection = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(dir) {
309
+ direction = dir;
310
+ if (/.*</.exec(direction)) {
311
+ direction = "RL";
312
+ }
313
+ if (/.*\^/.exec(direction)) {
314
+ direction = "BT";
315
+ }
316
+ if (/.*>/.exec(direction)) {
317
+ direction = "LR";
318
+ }
319
+ if (/.*v/.exec(direction)) {
320
+ direction = "TB";
321
+ }
322
+ if (direction === "TD") {
323
+ direction = "TB";
324
+ }
325
+ }, "setDirection");
326
+ var setClass = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ids, className) {
327
+ for (const id of ids.split(",")) {
328
+ const vertex = vertices.get(id);
329
+ if (vertex) {
330
+ vertex.classes.push(className);
331
+ }
332
+ const subGraph = subGraphLookup.get(id);
333
+ if (subGraph) {
334
+ subGraph.classes.push(className);
335
+ }
336
+ }
337
+ }, "setClass");
338
+ var setTooltip = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ids, tooltip) {
339
+ if (tooltip === void 0) {
340
+ return;
341
+ }
342
+ tooltip = sanitizeText(tooltip);
343
+ for (const id of ids.split(",")) {
344
+ tooltips.set(version === "gen-1" ? lookUpDomId(id) : id, tooltip);
345
+ }
346
+ }, "setTooltip");
347
+ var setClickFun = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id, functionName, functionArgs) {
348
+ const domId = lookUpDomId(id);
349
+ if ((0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)().securityLevel !== "loose") {
350
+ return;
351
+ }
352
+ if (functionName === void 0) {
353
+ return;
354
+ }
355
+ let argList = [];
356
+ if (typeof functionArgs === "string") {
357
+ argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
358
+ for (let i = 0; i < argList.length; i++) {
359
+ let item = argList[i].trim();
360
+ if (item.startsWith('"') && item.endsWith('"')) {
361
+ item = item.substr(1, item.length - 2);
362
+ }
363
+ argList[i] = item;
364
+ }
365
+ }
366
+ if (argList.length === 0) {
367
+ argList.push(id);
368
+ }
369
+ const vertex = vertices.get(id);
370
+ if (vertex) {
371
+ vertex.haveCallback = true;
372
+ funs.push(function() {
373
+ const elem = document.querySelector(`[id="${domId}"]`);
374
+ if (elem !== null) {
375
+ elem.addEventListener(
376
+ "click",
377
+ function() {
378
+ _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_7__/* .utils_default */ ._K.runFunc(functionName, ...argList);
379
+ },
380
+ false
381
+ );
382
+ }
383
+ });
384
+ }
385
+ }, "setClickFun");
386
+ var setLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ids, linkStr, target) {
387
+ ids.split(",").forEach(function(id) {
388
+ const vertex = vertices.get(id);
389
+ if (vertex !== void 0) {
390
+ vertex.link = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_7__/* .utils_default */ ._K.formatUrl(linkStr, config);
391
+ vertex.linkTarget = target;
392
+ }
393
+ });
394
+ setClass(ids, "clickable");
395
+ }, "setLink");
396
+ var getTooltip = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id) {
397
+ return tooltips.get(id);
398
+ }, "getTooltip");
399
+ var setClickEvent = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ids, functionName, functionArgs) {
400
+ ids.split(",").forEach(function(id) {
401
+ setClickFun(id, functionName, functionArgs);
402
+ });
403
+ setClass(ids, "clickable");
404
+ }, "setClickEvent");
405
+ var bindFunctions = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(element) {
406
+ funs.forEach(function(fun) {
407
+ fun(element);
408
+ });
409
+ }, "bindFunctions");
410
+ var getDirection = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
411
+ return direction.trim();
412
+ }, "getDirection");
413
+ var getVertices = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
414
+ return vertices;
415
+ }, "getVertices");
416
+ var getEdges = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
417
+ return edges;
418
+ }, "getEdges");
419
+ var getClasses = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
420
+ return classes;
421
+ }, "getClasses");
422
+ var setupToolTips = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(element) {
423
+ let tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)(".mermaidTooltip");
424
+ if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
425
+ tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
426
+ }
427
+ const svg = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)(element).select("svg");
428
+ const nodes = svg.selectAll("g.node");
429
+ nodes.on("mouseover", function() {
430
+ const el = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)(this);
431
+ const title = el.attr("title");
432
+ if (title === null) {
433
+ return;
434
+ }
435
+ const rect = this?.getBoundingClientRect();
436
+ tooltipElem.transition().duration(200).style("opacity", ".9");
437
+ tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.bottom + "px");
438
+ tooltipElem.html(tooltipElem.html().replace(/&lt;br\/&gt;/g, "<br/>"));
439
+ el.classed("hover", true);
440
+ }).on("mouseout", function() {
441
+ tooltipElem.transition().duration(500).style("opacity", 0);
442
+ const el = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)(this);
443
+ el.classed("hover", false);
444
+ });
445
+ }, "setupToolTips");
446
+ funs.push(setupToolTips);
447
+ var clear2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ver = "gen-1") {
448
+ vertices = /* @__PURE__ */ new Map();
449
+ classes = /* @__PURE__ */ new Map();
450
+ edges = [];
451
+ funs = [setupToolTips];
452
+ subGraphs = [];
453
+ subGraphLookup = /* @__PURE__ */ new Map();
454
+ subCount = 0;
455
+ tooltips = /* @__PURE__ */ new Map();
456
+ firstGraphFlag = true;
457
+ version = ver;
458
+ config = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)();
459
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .clear */ .IU)();
460
+ }, "clear");
461
+ var setGen = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((ver) => {
462
+ version = ver || "gen-2";
463
+ }, "setGen");
464
+ var defaultStyle = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
465
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
466
+ }, "defaultStyle");
467
+ var addSubGraph = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(_id, list, _title) {
468
+ let id = _id.text.trim();
469
+ let title = _title.text;
470
+ if (_id === _title && /\s/.exec(_title.text)) {
471
+ id = void 0;
472
+ }
473
+ function uniq(a) {
474
+ const prims = { boolean: {}, number: {}, string: {} };
475
+ const objs = [];
476
+ let dir2;
477
+ const nodeList2 = a.filter(function(item) {
478
+ const type = typeof item;
479
+ if (item.stmt && item.stmt === "dir") {
480
+ dir2 = item.value;
481
+ return false;
482
+ }
483
+ if (item.trim() === "") {
484
+ return false;
485
+ }
486
+ if (type in prims) {
487
+ return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
488
+ } else {
489
+ return objs.includes(item) ? false : objs.push(item);
490
+ }
491
+ });
492
+ return { nodeList: nodeList2, dir: dir2 };
493
+ }
494
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(uniq, "uniq");
495
+ const { nodeList, dir } = uniq(list.flat());
496
+ if (version === "gen-1") {
497
+ for (let i = 0; i < nodeList.length; i++) {
498
+ nodeList[i] = lookUpDomId(nodeList[i]);
499
+ }
500
+ }
501
+ id = id ?? "subGraph" + subCount;
502
+ title = title || "";
503
+ title = sanitizeText(title);
504
+ subCount = subCount + 1;
505
+ const subGraph = {
506
+ id,
507
+ nodes: nodeList,
508
+ title: title.trim(),
509
+ classes: [],
510
+ dir,
511
+ labelType: _title.type
512
+ };
513
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
514
+ subGraph.nodes = makeUniq(subGraph, subGraphs).nodes;
515
+ subGraphs.push(subGraph);
516
+ subGraphLookup.set(id, subGraph);
517
+ return id;
518
+ }, "addSubGraph");
519
+ var getPosForId = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id) {
520
+ for (const [i, subGraph] of subGraphs.entries()) {
521
+ if (subGraph.id === id) {
522
+ return i;
523
+ }
524
+ }
525
+ return -1;
526
+ }, "getPosForId");
527
+ var secCount = -1;
528
+ var posCrossRef = [];
529
+ var indexNodes2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(id, pos) {
530
+ const nodes = subGraphs[pos].nodes;
531
+ secCount = secCount + 1;
532
+ if (secCount > 2e3) {
533
+ return {
534
+ result: false,
535
+ count: 0
536
+ };
537
+ }
538
+ posCrossRef[secCount] = pos;
539
+ if (subGraphs[pos].id === id) {
540
+ return {
541
+ result: true,
542
+ count: 0
543
+ };
544
+ }
545
+ let count = 0;
546
+ let posCount = 1;
547
+ while (count < nodes.length) {
548
+ const childPos = getPosForId(nodes[count]);
549
+ if (childPos >= 0) {
550
+ const res = indexNodes2(id, childPos);
551
+ if (res.result) {
552
+ return {
553
+ result: true,
554
+ count: posCount + res.count
555
+ };
556
+ } else {
557
+ posCount = posCount + res.count;
558
+ }
559
+ }
560
+ count = count + 1;
561
+ }
562
+ return {
563
+ result: false,
564
+ count: posCount
565
+ };
566
+ }, "indexNodes2");
567
+ var getDepthFirstPos = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(pos) {
568
+ return posCrossRef[pos];
569
+ }, "getDepthFirstPos");
570
+ var indexNodes = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
571
+ secCount = -1;
572
+ if (subGraphs.length > 0) {
573
+ indexNodes2("none", subGraphs.length - 1);
574
+ }
575
+ }, "indexNodes");
576
+ var getSubGraphs = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
577
+ return subGraphs;
578
+ }, "getSubGraphs");
579
+ var firstGraph = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(() => {
580
+ if (firstGraphFlag) {
581
+ firstGraphFlag = false;
582
+ return true;
583
+ }
584
+ return false;
585
+ }, "firstGraph");
586
+ var destructStartLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((_str) => {
587
+ let str = _str.trim();
588
+ let type = "arrow_open";
589
+ switch (str[0]) {
590
+ case "<":
591
+ type = "arrow_point";
592
+ str = str.slice(1);
593
+ break;
594
+ case "x":
595
+ type = "arrow_cross";
596
+ str = str.slice(1);
597
+ break;
598
+ case "o":
599
+ type = "arrow_circle";
600
+ str = str.slice(1);
601
+ break;
602
+ }
603
+ let stroke = "normal";
604
+ if (str.includes("=")) {
605
+ stroke = "thick";
606
+ }
607
+ if (str.includes(".")) {
608
+ stroke = "dotted";
609
+ }
610
+ return { type, stroke };
611
+ }, "destructStartLink");
612
+ var countChar = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((char, str) => {
613
+ const length = str.length;
614
+ let count = 0;
615
+ for (let i = 0; i < length; ++i) {
616
+ if (str[i] === char) {
617
+ ++count;
618
+ }
619
+ }
620
+ return count;
621
+ }, "countChar");
622
+ var destructEndLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((_str) => {
623
+ const str = _str.trim();
624
+ let line = str.slice(0, -1);
625
+ let type = "arrow_open";
626
+ switch (str.slice(-1)) {
627
+ case "x":
628
+ type = "arrow_cross";
629
+ if (str.startsWith("x")) {
630
+ type = "double_" + type;
631
+ line = line.slice(1);
632
+ }
633
+ break;
634
+ case ">":
635
+ type = "arrow_point";
636
+ if (str.startsWith("<")) {
637
+ type = "double_" + type;
638
+ line = line.slice(1);
639
+ }
640
+ break;
641
+ case "o":
642
+ type = "arrow_circle";
643
+ if (str.startsWith("o")) {
644
+ type = "double_" + type;
645
+ line = line.slice(1);
646
+ }
647
+ break;
648
+ }
649
+ let stroke = "normal";
650
+ let length = line.length - 1;
651
+ if (line.startsWith("=")) {
652
+ stroke = "thick";
653
+ }
654
+ if (line.startsWith("~")) {
655
+ stroke = "invisible";
656
+ }
657
+ const dots = countChar(".", line);
658
+ if (dots) {
659
+ stroke = "dotted";
660
+ length = dots;
661
+ }
662
+ return { type, stroke, length };
663
+ }, "destructEndLink");
664
+ var destructLink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((_str, _startStr) => {
665
+ const info = destructEndLink(_str);
666
+ let startInfo;
667
+ if (_startStr) {
668
+ startInfo = destructStartLink(_startStr);
669
+ if (startInfo.stroke !== info.stroke) {
670
+ return { type: "INVALID", stroke: "INVALID" };
671
+ }
672
+ if (startInfo.type === "arrow_open") {
673
+ startInfo.type = info.type;
674
+ } else {
675
+ if (startInfo.type !== info.type) {
676
+ return { type: "INVALID", stroke: "INVALID" };
677
+ }
678
+ startInfo.type = "double_" + startInfo.type;
679
+ }
680
+ if (startInfo.type === "double_arrow") {
681
+ startInfo.type = "double_arrow_point";
682
+ }
683
+ startInfo.length = info.length;
684
+ return startInfo;
685
+ }
686
+ return info;
687
+ }, "destructLink");
688
+ var exists = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((allSgs, _id) => {
689
+ for (const sg of allSgs) {
690
+ if (sg.nodes.includes(_id)) {
691
+ return true;
692
+ }
693
+ }
694
+ return false;
695
+ }, "exists");
696
+ var makeUniq = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((sg, allSubgraphs) => {
697
+ const res = [];
698
+ sg.nodes.forEach((_id, pos) => {
699
+ if (!exists(allSubgraphs, _id)) {
700
+ res.push(sg.nodes[pos]);
701
+ }
702
+ });
703
+ return { nodes: res };
704
+ }, "makeUniq");
705
+ var lex = {
706
+ firstGraph
707
+ };
708
+ var getTypeFromVertex = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((vertex) => {
709
+ if (vertex.img) {
710
+ return "imageSquare";
711
+ }
712
+ if (vertex.icon) {
713
+ if (vertex.form === "circle") {
714
+ return "iconCircle";
715
+ }
716
+ if (vertex.form === "square") {
717
+ return "iconSquare";
718
+ }
719
+ if (vertex.form === "rounded") {
720
+ return "iconRounded";
721
+ }
722
+ return "icon";
723
+ }
724
+ if (vertex.type === "square") {
725
+ return "squareRect";
726
+ }
727
+ if (vertex.type === "round") {
728
+ return "roundedRect";
729
+ }
730
+ return vertex.type ?? "squareRect";
731
+ }, "getTypeFromVertex");
732
+ var findNode = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((nodes, id) => nodes.find((node) => node.id === id), "findNode");
733
+ var destructEdgeType = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((type) => {
734
+ let arrowTypeStart = "none";
735
+ let arrowTypeEnd = "arrow_point";
736
+ switch (type) {
737
+ case "arrow_point":
738
+ case "arrow_circle":
739
+ case "arrow_cross":
740
+ arrowTypeEnd = type;
741
+ break;
742
+ case "double_arrow_point":
743
+ case "double_arrow_circle":
744
+ case "double_arrow_cross":
745
+ arrowTypeStart = type.replace("double_", "");
746
+ arrowTypeEnd = arrowTypeStart;
747
+ break;
748
+ }
749
+ return { arrowTypeStart, arrowTypeEnd };
750
+ }, "destructEdgeType");
751
+ var addNodeFromVertex = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((vertex, nodes, parentDB, subGraphDB, config2, look) => {
752
+ const parentId = parentDB.get(vertex.id);
753
+ const isGroup = subGraphDB.get(vertex.id) ?? false;
754
+ const node = findNode(nodes, vertex.id);
755
+ if (node) {
756
+ node.cssStyles = vertex.styles;
757
+ node.cssCompiledStyles = getCompiledStyles(vertex.classes);
758
+ node.cssClasses = vertex.classes.join(" ");
759
+ } else {
760
+ nodes.push({
761
+ id: vertex.id,
762
+ label: vertex.text,
763
+ labelStyle: "",
764
+ parentId,
765
+ padding: config2.flowchart?.padding || 8,
766
+ cssStyles: vertex.styles,
767
+ cssCompiledStyles: getCompiledStyles(["default", "node", ...vertex.classes]),
768
+ cssClasses: "default " + vertex.classes.join(" "),
769
+ shape: getTypeFromVertex(vertex),
770
+ dir: vertex.dir,
771
+ domId: vertex.domId,
772
+ isGroup,
773
+ look,
774
+ link: vertex.link,
775
+ linkTarget: vertex.linkTarget,
776
+ tooltip: getTooltip(vertex.id),
777
+ icon: vertex.icon,
778
+ pos: vertex.pos,
779
+ img: vertex.img,
780
+ assetWidth: vertex.assetWidth,
781
+ assetHeight: vertex.assetHeight,
782
+ constraint: vertex.constraint
783
+ });
784
+ }
785
+ }, "addNodeFromVertex");
786
+ function getCompiledStyles(classDefs) {
787
+ let compiledStyles = [];
788
+ for (const customClass of classDefs) {
789
+ const cssClass = classes.get(customClass);
790
+ if (cssClass?.styles) {
791
+ compiledStyles = [...compiledStyles, ...cssClass.styles ?? []].map((s) => s.trim());
792
+ }
793
+ if (cssClass?.textStyles) {
794
+ compiledStyles = [...compiledStyles, ...cssClass.textStyles ?? []].map((s) => s.trim());
795
+ }
796
+ }
797
+ return compiledStyles;
798
+ }
799
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(getCompiledStyles, "getCompiledStyles");
800
+ var getData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(() => {
801
+ const config2 = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)();
802
+ const nodes = [];
803
+ const edges2 = [];
804
+ const subGraphs2 = getSubGraphs();
805
+ const parentDB = /* @__PURE__ */ new Map();
806
+ const subGraphDB = /* @__PURE__ */ new Map();
807
+ for (let i = subGraphs2.length - 1; i >= 0; i--) {
808
+ const subGraph = subGraphs2[i];
809
+ if (subGraph.nodes.length > 0) {
810
+ subGraphDB.set(subGraph.id, true);
811
+ }
812
+ for (const id of subGraph.nodes) {
813
+ parentDB.set(id, subGraph.id);
814
+ }
815
+ }
816
+ for (let i = subGraphs2.length - 1; i >= 0; i--) {
817
+ const subGraph = subGraphs2[i];
818
+ nodes.push({
819
+ id: subGraph.id,
820
+ label: subGraph.title,
821
+ labelStyle: "",
822
+ parentId: parentDB.get(subGraph.id),
823
+ padding: 8,
824
+ cssCompiledStyles: getCompiledStyles(subGraph.classes),
825
+ cssClasses: subGraph.classes.join(" "),
826
+ shape: "rect",
827
+ dir: subGraph.dir,
828
+ isGroup: true,
829
+ look: config2.look
830
+ });
831
+ }
832
+ const n = getVertices();
833
+ n.forEach((vertex) => {
834
+ addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config2, config2.look || "classic");
835
+ });
836
+ const e = getEdges();
837
+ e.forEach((rawEdge, index) => {
838
+ const { arrowTypeStart, arrowTypeEnd } = destructEdgeType(rawEdge.type);
839
+ const styles = [...e.defaultStyle ?? []];
840
+ if (rawEdge.style) {
841
+ styles.push(...rawEdge.style);
842
+ }
843
+ const edge = {
844
+ id: (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_7__/* .getEdgeId */ .rY)(rawEdge.start, rawEdge.end, { counter: index, prefix: "L" }),
845
+ start: rawEdge.start,
846
+ end: rawEdge.end,
847
+ type: rawEdge.type ?? "normal",
848
+ label: rawEdge.text,
849
+ labelpos: "c",
850
+ thickness: rawEdge.stroke,
851
+ minlen: rawEdge.length,
852
+ classes: rawEdge?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
853
+ arrowTypeStart: rawEdge?.stroke === "invisible" ? "none" : arrowTypeStart,
854
+ arrowTypeEnd: rawEdge?.stroke === "invisible" ? "none" : arrowTypeEnd,
855
+ arrowheadStyle: "fill: #333",
856
+ labelStyle: styles,
857
+ style: styles,
858
+ pattern: rawEdge.stroke,
859
+ look: config2.look
860
+ };
861
+ edges2.push(edge);
862
+ });
863
+ return { nodes, edges: edges2, other: {}, config: config2 };
864
+ }, "getData");
865
+ var flowDb_default = {
866
+ defaultConfig: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(() => _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .defaultConfig2 */ .ME.flowchart, "defaultConfig"),
867
+ setAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .setAccTitle */ .SV,
868
+ getAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getAccTitle */ .iN,
869
+ getAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getAccDescription */ .m7,
870
+ getData,
871
+ setAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .setAccDescription */ .EI,
872
+ addVertex,
873
+ lookUpDomId,
874
+ addLink,
875
+ updateLinkInterpolate,
876
+ updateLink,
877
+ addClass,
878
+ setDirection,
879
+ setClass,
880
+ setTooltip,
881
+ getTooltip,
882
+ setClickEvent,
883
+ setLink,
884
+ bindFunctions,
885
+ getDirection,
886
+ getVertices,
887
+ getEdges,
888
+ getClasses,
889
+ clear: clear2,
890
+ setGen,
891
+ defaultStyle,
892
+ addSubGraph,
893
+ getDepthFirstPos,
894
+ indexNodes,
895
+ getSubGraphs,
896
+ destructLink,
897
+ lex,
898
+ exists,
899
+ makeUniq,
900
+ setDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .setDiagramTitle */ .ke,
901
+ getDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getDiagramTitle */ .ab
902
+ };
903
+
904
+ // src/diagrams/flowchart/flowRenderer-v3-unified.ts
905
+
906
+ var getClasses2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(text, diagramObj) {
907
+ return diagramObj.db.getClasses();
908
+ }, "getClasses");
909
+ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(async function(text, id, _version, diag) {
910
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("REF0:");
911
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.info("Drawing state diagram (v2)", id);
912
+ const { securityLevel, flowchart: conf, layout } = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .getConfig2 */ .D7)();
913
+ let sandboxElement;
914
+ if (securityLevel === "sandbox") {
915
+ sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)("#i" + id);
916
+ }
917
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
918
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.debug("Before getData: ");
919
+ const data4Layout = diag.db.getData();
920
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.debug("Data: ", data4Layout);
921
+ const svg = (0,_chunk_4LC2V6XN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getDiagramElement */ .A)(id, securityLevel);
922
+ const direction2 = getDirection();
923
+ data4Layout.type = diag.type;
924
+ data4Layout.layoutAlgorithm = (0,_chunk_U2OMI7UW_mjs__WEBPACK_IMPORTED_MODULE_2__/* .getRegisteredLayoutAlgorithm */ .q7)(layout);
925
+ if (data4Layout.layoutAlgorithm === "dagre" && layout === "elk") {
926
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.warn(
927
+ "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."
928
+ );
929
+ }
930
+ data4Layout.direction = direction2;
931
+ data4Layout.nodeSpacing = conf?.nodeSpacing || 50;
932
+ data4Layout.rankSpacing = conf?.rankSpacing || 50;
933
+ data4Layout.markers = ["point", "circle", "cross"];
934
+ data4Layout.diagramId = id;
935
+ _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .log */ .Rm.debug("REF1:", data4Layout);
936
+ await (0,_chunk_U2OMI7UW_mjs__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)(data4Layout, svg);
937
+ const padding = data4Layout.config.flowchart?.diagramPadding ?? 8;
938
+ _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_7__/* .utils_default */ ._K.insertTitle(
939
+ svg,
940
+ "flowchartTitleText",
941
+ conf?.titleTopMargin || 0,
942
+ diag.db.getDiagramTitle()
943
+ );
944
+ (0,_chunk_4LC2V6XN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .setupViewPortForSVG */ .P)(svg, padding, "flowchart", conf?.useMaxWidth || false);
945
+ for (const vertex of data4Layout.nodes) {
946
+ const node = (0,d3__WEBPACK_IMPORTED_MODULE_9__/* .select */ .Ltv)(`#${id} [id="${vertex.id}"]`);
947
+ if (!node || !vertex.link) {
948
+ continue;
949
+ }
950
+ const link = doc.createElementNS("http://www.w3.org/2000/svg", "a");
951
+ link.setAttributeNS("http://www.w3.org/2000/svg", "class", vertex.cssClasses);
952
+ link.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener");
953
+ if (securityLevel === "sandbox") {
954
+ link.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top");
955
+ } else if (vertex.linkTarget) {
956
+ link.setAttributeNS("http://www.w3.org/2000/svg", "target", vertex.linkTarget);
957
+ }
958
+ const linkNode = node.insert(function() {
959
+ return link;
960
+ }, ":first-child");
961
+ const shape = node.select(".label-container");
962
+ if (shape) {
963
+ linkNode.append(function() {
964
+ return shape.node();
965
+ });
966
+ }
967
+ const label = node.select(".label");
968
+ if (label) {
969
+ linkNode.append(function() {
970
+ return label.node();
971
+ });
972
+ }
973
+ }
974
+ }, "draw");
975
+ var flowRenderer_v3_unified_default = {
976
+ getClasses: getClasses2,
977
+ draw
978
+ };
979
+
980
+ // src/diagrams/flowchart/parser/flow.jison
981
+ var parser = function() {
982
+ var o = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(k, v, o2, l) {
983
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
984
+ return o2;
985
+ }, "o"), $V0 = [1, 4], $V1 = [1, 3], $V2 = [1, 5], $V3 = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 83, 84, 85, 86, 87, 88, 101, 104, 105, 108, 110, 113, 114, 115, 120, 121, 122, 123], $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, 83, 84, 85, 86, 87, 88, 101, 104, 105, 108, 110, 113, 114, 115, 120, 121, 122, 123], $Vz = [1, 61], $VA = [1, 60], $VB = [1, 62], $VC = [8, 9, 11, 75, 77], $VD = [1, 77], $VE = [1, 90], $VF = [1, 95], $VG = [1, 94], $VH = [1, 91], $VI = [1, 87], $VJ = [1, 93], $VK = [1, 89], $VL = [1, 96], $VM = [1, 92], $VN = [1, 97], $VO = [1, 88], $VP = [8, 9, 10, 11, 40, 75, 77], $VQ = [8, 9, 10, 11, 40, 46, 75, 77], $VR = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 88, 101, 104, 105, 108, 110, 113, 114, 115], $VS = [8, 9, 11, 44, 60, 75, 77, 88, 101, 104, 105, 108, 110, 113, 114, 115], $VT = [44, 60, 88, 101, 104, 105, 108, 110, 113, 114, 115], $VU = [1, 123], $VV = [1, 122], $VW = [1, 130], $VX = [1, 144], $VY = [1, 145], $VZ = [1, 146], $V_ = [1, 147], $V$ = [1, 132], $V01 = [1, 134], $V11 = [1, 138], $V21 = [1, 139], $V31 = [1, 140], $V41 = [1, 141], $V51 = [1, 142], $V61 = [1, 143], $V71 = [1, 148], $V81 = [1, 149], $V91 = [1, 128], $Va1 = [1, 129], $Vb1 = [1, 136], $Vc1 = [1, 131], $Vd1 = [1, 135], $Ve1 = [1, 133], $Vf1 = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 83, 84, 85, 86, 87, 88, 101, 104, 105, 108, 110, 113, 114, 115, 120, 121, 122, 123], $Vg1 = [1, 151], $Vh1 = [1, 153], $Vi1 = [8, 9, 11], $Vj1 = [8, 9, 10, 11, 14, 44, 60, 88, 104, 105, 108, 110, 113, 114, 115], $Vk1 = [1, 173], $Vl1 = [1, 169], $Vm1 = [1, 170], $Vn1 = [1, 174], $Vo1 = [1, 171], $Vp1 = [1, 172], $Vq1 = [77, 115, 118], $Vr1 = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 83, 84, 85, 86, 87, 88, 89, 104, 108, 110, 113, 114, 115], $Vs1 = [10, 105], $Vt1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 115, 116, 117], $Vu1 = [1, 242], $Vv1 = [1, 240], $Vw1 = [1, 244], $Vx1 = [1, 238], $Vy1 = [1, 239], $Vz1 = [1, 241], $VA1 = [1, 243], $VB1 = [1, 245], $VC1 = [1, 263], $VD1 = [8, 9, 11, 105], $VE1 = [8, 9, 10, 11, 60, 83, 104, 105, 108, 109, 110, 111];
986
+ var parser2 = {
987
+ trace: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function trace() {
988
+ }, "trace"),
989
+ yy: {},
990
+ 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, "edgeTextToken": 78, "STR": 79, "MD_STR": 80, "textToken": 81, "keywords": 82, "STYLE": 83, "LINKSTYLE": 84, "CLASSDEF": 85, "CLASS": 86, "CLICK": 87, "DOWN": 88, "UP": 89, "textNoTagsToken": 90, "stylesOpt": 91, "idString[vertex]": 92, "idString[class]": 93, "CALLBACKNAME": 94, "CALLBACKARGS": 95, "HREF": 96, "LINK_TARGET": 97, "STR[link]": 98, "STR[tooltip]": 99, "alphaNum": 100, "DEFAULT": 101, "numList": 102, "INTERPOLATE": 103, "NUM": 104, "COMMA": 105, "style": 106, "styleComponent": 107, "NODE_STRING": 108, "UNIT": 109, "BRKT": 110, "PCT": 111, "idStringToken": 112, "MINUS": 113, "MULT": 114, "UNICODE_TEXT": 115, "TEXT": 116, "TAGSTART": 117, "EDGE_TEXT": 118, "alphaNumToken": 119, "direction_tb": 120, "direction_bt": 121, "direction_rl": 122, "direction_lr": 123, "$accept": 0, "$end": 1 },
991
+ 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", 79: "STR", 80: "MD_STR", 83: "STYLE", 84: "LINKSTYLE", 85: "CLASSDEF", 86: "CLASS", 87: "CLICK", 88: "DOWN", 89: "UP", 92: "idString[vertex]", 93: "idString[class]", 94: "CALLBACKNAME", 95: "CALLBACKARGS", 96: "HREF", 97: "LINK_TARGET", 98: "STR[link]", 99: "STR[tooltip]", 101: "DEFAULT", 103: "INTERPOLATE", 104: "NUM", 105: "COMMA", 108: "NODE_STRING", 109: "UNIT", 110: "BRKT", 111: "PCT", 113: "MINUS", 114: "MULT", 115: "UNICODE_TEXT", 116: "TEXT", 117: "TAGSTART", 118: "EDGE_TEXT", 120: "direction_tb", 121: "direction_bt", 122: "direction_rl", 123: "direction_lr" },
992
+ 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], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 1], [82, 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], [102, 1], [102, 3], [91, 1], [91, 3], [106, 1], [106, 2], [107, 1], [107, 1], [107, 1], [107, 1], [107, 1], [107, 1], [107, 1], [107, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [112, 1], [81, 1], [81, 1], [81, 1], [81, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [90, 1], [78, 1], [78, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [119, 1], [47, 1], [47, 2], [100, 1], [100, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
993
+ performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
994
+ var $0 = $$.length - 1;
995
+ switch (yystate) {
996
+ case 2:
997
+ this.$ = [];
998
+ break;
999
+ case 3:
1000
+ if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
1001
+ $$[$0 - 1].push($$[$0]);
1002
+ }
1003
+ this.$ = $$[$0 - 1];
1004
+ break;
1005
+ case 4:
1006
+ case 181:
1007
+ this.$ = $$[$0];
1008
+ break;
1009
+ case 11:
1010
+ yy.setDirection("TB");
1011
+ this.$ = "TB";
1012
+ break;
1013
+ case 12:
1014
+ yy.setDirection($$[$0 - 1]);
1015
+ this.$ = $$[$0 - 1];
1016
+ break;
1017
+ case 27:
1018
+ this.$ = $$[$0 - 1].nodes;
1019
+ break;
1020
+ case 28:
1021
+ case 29:
1022
+ case 30:
1023
+ case 31:
1024
+ case 32:
1025
+ this.$ = [];
1026
+ break;
1027
+ case 33:
1028
+ this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
1029
+ break;
1030
+ case 34:
1031
+ this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
1032
+ break;
1033
+ case 35:
1034
+ this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
1035
+ break;
1036
+ case 37:
1037
+ this.$ = $$[$0].trim();
1038
+ yy.setAccTitle(this.$);
1039
+ break;
1040
+ case 38:
1041
+ case 39:
1042
+ this.$ = $$[$0].trim();
1043
+ yy.setAccDescription(this.$);
1044
+ break;
1045
+ case 43:
1046
+ this.$ = $$[$0 - 1] + $$[$0];
1047
+ break;
1048
+ case 44:
1049
+ this.$ = $$[$0];
1050
+ break;
1051
+ case 45:
1052
+ yy.addVertex($$[$0 - 1][0], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1053
+ yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1054
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1055
+ break;
1056
+ case 46:
1057
+ yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
1058
+ this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
1059
+ break;
1060
+ case 47:
1061
+ yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1062
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1063
+ break;
1064
+ case 48:
1065
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
1066
+ break;
1067
+ case 49:
1068
+ yy.addVertex($$[$0 - 1][0], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1069
+ this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1], shapeData: $$[$0] };
1070
+ break;
1071
+ case 50:
1072
+ this.$ = { stmt: $$[$0], nodes: $$[$0] };
1073
+ break;
1074
+ case 51:
1075
+ this.$ = [$$[$0]];
1076
+ break;
1077
+ case 52:
1078
+ yy.addVertex($$[$0 - 5][0], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0 - 4]);
1079
+ this.$ = $$[$0 - 5].concat($$[$0]);
1080
+ break;
1081
+ case 53:
1082
+ this.$ = $$[$0 - 4].concat($$[$0]);
1083
+ break;
1084
+ case 54:
1085
+ this.$ = $$[$0];
1086
+ break;
1087
+ case 55:
1088
+ this.$ = $$[$0 - 2];
1089
+ yy.setClass($$[$0 - 2], $$[$0]);
1090
+ break;
1091
+ case 56:
1092
+ this.$ = $$[$0 - 3];
1093
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
1094
+ break;
1095
+ case 57:
1096
+ this.$ = $$[$0 - 3];
1097
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
1098
+ break;
1099
+ case 58:
1100
+ this.$ = $$[$0 - 5];
1101
+ yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
1102
+ break;
1103
+ case 59:
1104
+ this.$ = $$[$0 - 3];
1105
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
1106
+ break;
1107
+ case 60:
1108
+ this.$ = $$[$0 - 3];
1109
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
1110
+ break;
1111
+ case 61:
1112
+ this.$ = $$[$0 - 3];
1113
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
1114
+ break;
1115
+ case 62:
1116
+ this.$ = $$[$0 - 7];
1117
+ yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
1118
+ break;
1119
+ case 63:
1120
+ this.$ = $$[$0 - 3];
1121
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
1122
+ break;
1123
+ case 64:
1124
+ this.$ = $$[$0 - 3];
1125
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
1126
+ break;
1127
+ case 65:
1128
+ this.$ = $$[$0 - 3];
1129
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
1130
+ break;
1131
+ case 66:
1132
+ this.$ = $$[$0 - 5];
1133
+ yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
1134
+ break;
1135
+ case 67:
1136
+ this.$ = $$[$0 - 3];
1137
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
1138
+ break;
1139
+ case 68:
1140
+ this.$ = $$[$0 - 3];
1141
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
1142
+ break;
1143
+ case 69:
1144
+ this.$ = $$[$0 - 3];
1145
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
1146
+ break;
1147
+ case 70:
1148
+ this.$ = $$[$0 - 3];
1149
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
1150
+ break;
1151
+ case 71:
1152
+ this.$ = $$[$0 - 3];
1153
+ yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
1154
+ break;
1155
+ case 72:
1156
+ this.$ = $$[$0];
1157
+ yy.addVertex($$[$0]);
1158
+ break;
1159
+ case 73:
1160
+ $$[$0 - 1].text = $$[$0];
1161
+ this.$ = $$[$0 - 1];
1162
+ break;
1163
+ case 74:
1164
+ case 75:
1165
+ $$[$0 - 2].text = $$[$0 - 1];
1166
+ this.$ = $$[$0 - 2];
1167
+ break;
1168
+ case 76:
1169
+ this.$ = $$[$0];
1170
+ break;
1171
+ case 77:
1172
+ var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1173
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
1174
+ break;
1175
+ case 78:
1176
+ this.$ = { text: $$[$0], type: "text" };
1177
+ break;
1178
+ case 79:
1179
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1180
+ break;
1181
+ case 80:
1182
+ this.$ = { text: $$[$0], type: "string" };
1183
+ break;
1184
+ case 81:
1185
+ this.$ = { text: $$[$0], type: "markdown" };
1186
+ break;
1187
+ case 82:
1188
+ var inf = yy.destructLink($$[$0]);
1189
+ this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
1190
+ break;
1191
+ case 83:
1192
+ this.$ = $$[$0 - 1];
1193
+ break;
1194
+ case 84:
1195
+ this.$ = { text: $$[$0], type: "text" };
1196
+ break;
1197
+ case 85:
1198
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1199
+ break;
1200
+ case 86:
1201
+ this.$ = { text: $$[$0], type: "string" };
1202
+ break;
1203
+ case 87:
1204
+ case 102:
1205
+ this.$ = { text: $$[$0], type: "markdown" };
1206
+ break;
1207
+ case 99:
1208
+ this.$ = { text: $$[$0], type: "text" };
1209
+ break;
1210
+ case 100:
1211
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1212
+ break;
1213
+ case 101:
1214
+ this.$ = { text: $$[$0], type: "text" };
1215
+ break;
1216
+ case 103:
1217
+ this.$ = $$[$0 - 4];
1218
+ yy.addClass($$[$0 - 2], $$[$0]);
1219
+ break;
1220
+ case 104:
1221
+ this.$ = $$[$0 - 4];
1222
+ yy.setClass($$[$0 - 2], $$[$0]);
1223
+ break;
1224
+ case 105:
1225
+ case 113:
1226
+ this.$ = $$[$0 - 1];
1227
+ yy.setClickEvent($$[$0 - 1], $$[$0]);
1228
+ break;
1229
+ case 106:
1230
+ case 114:
1231
+ this.$ = $$[$0 - 3];
1232
+ yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
1233
+ yy.setTooltip($$[$0 - 3], $$[$0]);
1234
+ break;
1235
+ case 107:
1236
+ this.$ = $$[$0 - 2];
1237
+ yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1238
+ break;
1239
+ case 108:
1240
+ this.$ = $$[$0 - 4];
1241
+ yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
1242
+ yy.setTooltip($$[$0 - 4], $$[$0]);
1243
+ break;
1244
+ case 109:
1245
+ this.$ = $$[$0 - 2];
1246
+ yy.setLink($$[$0 - 2], $$[$0]);
1247
+ break;
1248
+ case 110:
1249
+ this.$ = $$[$0 - 4];
1250
+ yy.setLink($$[$0 - 4], $$[$0 - 2]);
1251
+ yy.setTooltip($$[$0 - 4], $$[$0]);
1252
+ break;
1253
+ case 111:
1254
+ this.$ = $$[$0 - 4];
1255
+ yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
1256
+ break;
1257
+ case 112:
1258
+ this.$ = $$[$0 - 6];
1259
+ yy.setLink($$[$0 - 6], $$[$0 - 4], $$[$0]);
1260
+ yy.setTooltip($$[$0 - 6], $$[$0 - 2]);
1261
+ break;
1262
+ case 115:
1263
+ this.$ = $$[$0 - 1];
1264
+ yy.setLink($$[$0 - 1], $$[$0]);
1265
+ break;
1266
+ case 116:
1267
+ this.$ = $$[$0 - 3];
1268
+ yy.setLink($$[$0 - 3], $$[$0 - 2]);
1269
+ yy.setTooltip($$[$0 - 3], $$[$0]);
1270
+ break;
1271
+ case 117:
1272
+ this.$ = $$[$0 - 3];
1273
+ yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
1274
+ break;
1275
+ case 118:
1276
+ this.$ = $$[$0 - 5];
1277
+ yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
1278
+ yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
1279
+ break;
1280
+ case 119:
1281
+ this.$ = $$[$0 - 4];
1282
+ yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
1283
+ break;
1284
+ case 120:
1285
+ this.$ = $$[$0 - 4];
1286
+ yy.updateLink([$$[$0 - 2]], $$[$0]);
1287
+ break;
1288
+ case 121:
1289
+ this.$ = $$[$0 - 4];
1290
+ yy.updateLink($$[$0 - 2], $$[$0]);
1291
+ break;
1292
+ case 122:
1293
+ this.$ = $$[$0 - 8];
1294
+ yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
1295
+ yy.updateLink([$$[$0 - 6]], $$[$0]);
1296
+ break;
1297
+ case 123:
1298
+ this.$ = $$[$0 - 8];
1299
+ yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
1300
+ yy.updateLink($$[$0 - 6], $$[$0]);
1301
+ break;
1302
+ case 124:
1303
+ this.$ = $$[$0 - 6];
1304
+ yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
1305
+ break;
1306
+ case 125:
1307
+ this.$ = $$[$0 - 6];
1308
+ yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
1309
+ break;
1310
+ case 126:
1311
+ case 128:
1312
+ this.$ = [$$[$0]];
1313
+ break;
1314
+ case 127:
1315
+ case 129:
1316
+ $$[$0 - 2].push($$[$0]);
1317
+ this.$ = $$[$0 - 2];
1318
+ break;
1319
+ case 131:
1320
+ this.$ = $$[$0 - 1] + $$[$0];
1321
+ break;
1322
+ case 179:
1323
+ this.$ = $$[$0];
1324
+ break;
1325
+ case 180:
1326
+ this.$ = $$[$0 - 1] + "" + $$[$0];
1327
+ break;
1328
+ case 182:
1329
+ this.$ = $$[$0 - 1] + "" + $$[$0];
1330
+ break;
1331
+ case 183:
1332
+ this.$ = { stmt: "dir", value: "TB" };
1333
+ break;
1334
+ case 184:
1335
+ this.$ = { stmt: "dir", value: "BT" };
1336
+ break;
1337
+ case 185:
1338
+ this.$ = { stmt: "dir", value: "RL" };
1339
+ break;
1340
+ case 186:
1341
+ this.$ = { stmt: "dir", value: "LR" };
1342
+ break;
1343
+ }
1344
+ }, "anonymous"),
1345
+ 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, 83: $Vf, 84: $Vg, 85: $Vh, 86: $Vi, 87: $Vj, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs, 120: $Vt, 121: $Vu, 122: $Vv, 123: $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, 65] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 66 }, { 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, 10: [1, 71], 11: $VB, 21: 72 }, o($Vy, [2, 36]), { 35: [1, 73] }, { 37: [1, 74] }, o($Vy, [2, 39]), o($VC, [2, 50], { 18: 75, 39: 76, 10: $Vx, 40: $VD }), { 10: [1, 78] }, { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 14: $VE, 44: $VF, 60: $VG, 79: [1, 85], 88: $VH, 94: [1, 82], 96: [1, 83], 100: 84, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO, 119: 86 }, o($Vy, [2, 183]), o($Vy, [2, 184]), o($Vy, [2, 185]), o($Vy, [2, 186]), o($VP, [2, 51]), o($VP, [2, 54], { 46: [1, 98] }), o($VQ, [2, 72], { 112: 111, 29: [1, 99], 44: $Vd, 48: [1, 100], 50: [1, 101], 52: [1, 102], 54: [1, 103], 56: [1, 104], 58: [1, 105], 60: $Ve, 63: [1, 106], 65: [1, 107], 67: [1, 108], 68: [1, 109], 70: [1, 110], 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 113: $Vq, 114: $Vr, 115: $Vs }), o($VR, [2, 179]), o($VR, [2, 140]), o($VR, [2, 141]), 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($V3, [2, 12]), o($V3, [2, 18]), o($V3, [2, 19]), { 9: [1, 112] }, o($VS, [2, 26], { 18: 113, 10: $Vx }), o($Vy, [2, 27]), { 42: 114, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, o($Vy, [2, 40]), o($Vy, [2, 41]), o($Vy, [2, 42]), o($VT, [2, 76], { 73: 115, 62: [1, 117], 74: [1, 116] }), { 76: 118, 78: 119, 79: [1, 120], 80: [1, 121], 115: $VU, 118: $VV }, o([44, 60, 62, 74, 88, 101, 104, 105, 108, 110, 113, 114, 115], [2, 82]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 30]), o($Vy, [2, 31]), o($Vy, [2, 32]), { 10: $VW, 12: $VX, 14: $VY, 27: $VZ, 28: 124, 32: $V_, 44: $V$, 60: $V01, 75: $V11, 79: [1, 126], 80: [1, 127], 82: 137, 83: $V21, 84: $V31, 85: $V41, 86: $V51, 87: $V61, 88: $V71, 89: $V81, 90: 125, 104: $V91, 108: $Va1, 110: $Vb1, 113: $Vc1, 114: $Vd1, 115: $Ve1 }, o($Vf1, $V4, { 5: 150 }), o($Vy, [2, 37]), o($Vy, [2, 38]), o($VC, [2, 48], { 44: $Vg1 }), o($VC, [2, 49], { 18: 152, 10: $Vx, 40: $Vh1 }), o($VP, [2, 44]), { 44: $Vd, 47: 154, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, { 101: [1, 155], 102: 156, 104: [1, 157] }, { 44: $Vd, 47: 158, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, { 44: $Vd, 47: 159, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, o($Vi1, [2, 105], { 10: [1, 160], 95: [1, 161] }), { 79: [1, 162] }, o($Vi1, [2, 113], { 119: 164, 10: [1, 163], 14: $VE, 44: $VF, 60: $VG, 88: $VH, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO }), o($Vi1, [2, 115], { 10: [1, 165] }), o($Vj1, [2, 181]), o($Vj1, [2, 168]), o($Vj1, [2, 169]), o($Vj1, [2, 170]), o($Vj1, [2, 171]), o($Vj1, [2, 172]), o($Vj1, [2, 173]), o($Vj1, [2, 174]), o($Vj1, [2, 175]), o($Vj1, [2, 176]), o($Vj1, [2, 177]), o($Vj1, [2, 178]), { 44: $Vd, 47: 166, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, { 30: 167, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 175, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 177, 50: [1, 176], 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 178, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 179, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 180, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 108: [1, 181] }, { 30: 182, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 183, 65: [1, 184], 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 185, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 186, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 187, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VR, [2, 180]), o($V3, [2, 20]), o($VS, [2, 25]), o($VC, [2, 46], { 39: 188, 18: 189, 10: $Vx, 40: $VD }), o($VT, [2, 73], { 10: [1, 190] }), { 10: [1, 191] }, { 30: 192, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 77: [1, 193], 78: 194, 115: $VU, 118: $VV }, o($Vq1, [2, 78]), o($Vq1, [2, 80]), o($Vq1, [2, 81]), o($Vq1, [2, 166]), o($Vq1, [2, 167]), { 8: $Vz, 9: $VA, 10: $VW, 11: $VB, 12: $VX, 14: $VY, 21: 196, 27: $VZ, 29: [1, 195], 32: $V_, 44: $V$, 60: $V01, 75: $V11, 82: 137, 83: $V21, 84: $V31, 85: $V41, 86: $V51, 87: $V61, 88: $V71, 89: $V81, 90: 197, 104: $V91, 108: $Va1, 110: $Vb1, 113: $Vc1, 114: $Vd1, 115: $Ve1 }, o($Vr1, [2, 99]), o($Vr1, [2, 101]), o($Vr1, [2, 102]), o($Vr1, [2, 155]), o($Vr1, [2, 156]), o($Vr1, [2, 157]), o($Vr1, [2, 158]), o($Vr1, [2, 159]), o($Vr1, [2, 160]), o($Vr1, [2, 161]), o($Vr1, [2, 162]), o($Vr1, [2, 163]), o($Vr1, [2, 164]), o($Vr1, [2, 165]), o($Vr1, [2, 88]), o($Vr1, [2, 89]), o($Vr1, [2, 90]), o($Vr1, [2, 91]), o($Vr1, [2, 92]), o($Vr1, [2, 93]), o($Vr1, [2, 94]), o($Vr1, [2, 95]), o($Vr1, [2, 96]), o($Vr1, [2, 97]), o($Vr1, [2, 98]), { 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, 198], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 83: $Vf, 84: $Vg, 85: $Vh, 86: $Vi, 87: $Vj, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs, 120: $Vt, 121: $Vu, 122: $Vv, 123: $Vw }, { 10: $Vx, 18: 199 }, { 44: [1, 200] }, o($VP, [2, 43]), { 10: [1, 201], 44: $Vd, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 111, 113: $Vq, 114: $Vr, 115: $Vs }, { 10: [1, 202] }, { 10: [1, 203], 105: [1, 204] }, o($Vs1, [2, 126]), { 10: [1, 205], 44: $Vd, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 111, 113: $Vq, 114: $Vr, 115: $Vs }, { 10: [1, 206], 44: $Vd, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 111, 113: $Vq, 114: $Vr, 115: $Vs }, { 79: [1, 207] }, o($Vi1, [2, 107], { 10: [1, 208] }), o($Vi1, [2, 109], { 10: [1, 209] }), { 79: [1, 210] }, o($Vj1, [2, 182]), { 79: [1, 211], 97: [1, 212] }, o($VP, [2, 55], { 112: 111, 44: $Vd, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 113: $Vq, 114: $Vr, 115: $Vs }), { 31: [1, 213], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($Vt1, [2, 84]), o($Vt1, [2, 86]), o($Vt1, [2, 87]), o($Vt1, [2, 151]), o($Vt1, [2, 152]), o($Vt1, [2, 153]), o($Vt1, [2, 154]), { 49: [1, 215], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 216, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 51: [1, 217], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 53: [1, 218], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 55: [1, 219], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 57: [1, 220], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 60: [1, 221] }, { 64: [1, 222], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 66: [1, 223], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 30: 224, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 31: [1, 225], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 67: $Vk1, 69: [1, 226], 71: [1, 227], 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 67: $Vk1, 69: [1, 229], 71: [1, 228], 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VC, [2, 45], { 18: 152, 10: $Vx, 40: $Vh1 }), o($VC, [2, 47], { 44: $Vg1 }), o($VT, [2, 75]), o($VT, [2, 74]), { 62: [1, 230], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VT, [2, 77]), o($Vq1, [2, 79]), { 30: 231, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($Vf1, $V4, { 5: 232 }), o($Vr1, [2, 100]), o($Vy, [2, 35]), { 43: 233, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, { 10: $Vx, 18: 234 }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 235, 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 246, 103: [1, 247], 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 248, 103: [1, 249], 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, { 104: [1, 250] }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 251, 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, { 44: $Vd, 47: 252, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, o($Vi1, [2, 106]), { 79: [1, 253] }, { 79: [1, 254], 97: [1, 255] }, o($Vi1, [2, 114]), o($Vi1, [2, 116], { 10: [1, 256] }), o($Vi1, [2, 117]), o($VQ, [2, 56]), o($Vt1, [2, 85]), o($VQ, [2, 57]), { 51: [1, 257], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VQ, [2, 64]), o($VQ, [2, 59]), o($VQ, [2, 60]), o($VQ, [2, 61]), { 108: [1, 258] }, o($VQ, [2, 63]), o($VQ, [2, 65]), { 66: [1, 259], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VQ, [2, 67]), o($VQ, [2, 68]), o($VQ, [2, 70]), o($VQ, [2, 69]), o($VQ, [2, 71]), o([10, 44, 60, 88, 101, 104, 105, 108, 110, 113, 114, 115], [2, 83]), { 31: [1, 260], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 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, 261], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 83: $Vf, 84: $Vg, 85: $Vh, 86: $Vi, 87: $Vj, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs, 120: $Vt, 121: $Vu, 122: $Vv, 123: $Vw }, o($VP, [2, 53]), { 43: 262, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs }, o($Vi1, [2, 119], { 105: $VC1 }), o($VD1, [2, 128], { 107: 264, 10: $Vu1, 60: $Vv1, 83: $Vw1, 104: $Vx1, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }), o($VE1, [2, 130]), o($VE1, [2, 132]), o($VE1, [2, 133]), o($VE1, [2, 134]), o($VE1, [2, 135]), o($VE1, [2, 136]), o($VE1, [2, 137]), o($VE1, [2, 138]), o($VE1, [2, 139]), o($Vi1, [2, 120], { 105: $VC1 }), { 10: [1, 265] }, o($Vi1, [2, 121], { 105: $VC1 }), { 10: [1, 266] }, o($Vs1, [2, 127]), o($Vi1, [2, 103], { 105: $VC1 }), o($Vi1, [2, 104], { 112: 111, 44: $Vd, 60: $Ve, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 113: $Vq, 114: $Vr, 115: $Vs }), o($Vi1, [2, 108]), o($Vi1, [2, 110], { 10: [1, 267] }), o($Vi1, [2, 111]), { 97: [1, 268] }, { 51: [1, 269] }, { 62: [1, 270] }, { 66: [1, 271] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 272 }, o($Vy, [2, 34]), o($VP, [2, 52]), { 10: $Vu1, 60: $Vv1, 83: $Vw1, 104: $Vx1, 106: 273, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, o($VE1, [2, 131]), { 14: $VE, 44: $VF, 60: $VG, 88: $VH, 100: 274, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO, 119: 86 }, { 14: $VE, 44: $VF, 60: $VG, 88: $VH, 100: 275, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO, 119: 86 }, { 97: [1, 276] }, o($Vi1, [2, 118]), o($VQ, [2, 58]), { 30: 277, 67: $Vk1, 79: $Vl1, 80: $Vm1, 81: 168, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, o($VQ, [2, 66]), o($Vf1, $V4, { 5: 278 }), o($VD1, [2, 129], { 107: 264, 10: $Vu1, 60: $Vv1, 83: $Vw1, 104: $Vx1, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }), o($Vi1, [2, 124], { 119: 164, 10: [1, 279], 14: $VE, 44: $VF, 60: $VG, 88: $VH, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO }), o($Vi1, [2, 125], { 119: 164, 10: [1, 280], 14: $VE, 44: $VF, 60: $VG, 88: $VH, 104: $VI, 105: $VJ, 108: $VK, 110: $VL, 113: $VM, 114: $VN, 115: $VO }), o($Vi1, [2, 112]), { 31: [1, 281], 67: $Vk1, 81: 214, 115: $Vn1, 116: $Vo1, 117: $Vp1 }, { 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, 282], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 83: $Vf, 84: $Vg, 85: $Vh, 86: $Vi, 87: $Vj, 88: $Vk, 101: $Vl, 104: $Vm, 105: $Vn, 108: $Vo, 110: $Vp, 112: 41, 113: $Vq, 114: $Vr, 115: $Vs, 120: $Vt, 121: $Vu, 122: $Vv, 123: $Vw }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 283, 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, { 10: $Vu1, 60: $Vv1, 83: $Vw1, 91: 284, 104: $Vx1, 106: 236, 107: 237, 108: $Vy1, 109: $Vz1, 110: $VA1, 111: $VB1 }, o($VQ, [2, 62]), o($Vy, [2, 33]), o($Vi1, [2, 122], { 105: $VC1 }), o($Vi1, [2, 123], { 105: $VC1 })],
1346
+ defaultActions: {},
1347
+ parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function parseError(str, hash) {
1348
+ if (hash.recoverable) {
1349
+ this.trace(str);
1350
+ } else {
1351
+ var error = new Error(str);
1352
+ error.hash = hash;
1353
+ throw error;
1354
+ }
1355
+ }, "parseError"),
1356
+ parse: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function parse(input) {
1357
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
1358
+ var args = lstack.slice.call(arguments, 1);
1359
+ var lexer2 = Object.create(this.lexer);
1360
+ var sharedState = { yy: {} };
1361
+ for (var k in this.yy) {
1362
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1363
+ sharedState.yy[k] = this.yy[k];
1364
+ }
1365
+ }
1366
+ lexer2.setInput(input, sharedState.yy);
1367
+ sharedState.yy.lexer = lexer2;
1368
+ sharedState.yy.parser = this;
1369
+ if (typeof lexer2.yylloc == "undefined") {
1370
+ lexer2.yylloc = {};
1371
+ }
1372
+ var yyloc = lexer2.yylloc;
1373
+ lstack.push(yyloc);
1374
+ var ranges = lexer2.options && lexer2.options.ranges;
1375
+ if (typeof sharedState.yy.parseError === "function") {
1376
+ this.parseError = sharedState.yy.parseError;
1377
+ } else {
1378
+ this.parseError = Object.getPrototypeOf(this).parseError;
1379
+ }
1380
+ function popStack(n) {
1381
+ stack.length = stack.length - 2 * n;
1382
+ vstack.length = vstack.length - n;
1383
+ lstack.length = lstack.length - n;
1384
+ }
1385
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(popStack, "popStack");
1386
+ function lex2() {
1387
+ var token;
1388
+ token = tstack.pop() || lexer2.lex() || EOF;
1389
+ if (typeof token !== "number") {
1390
+ if (token instanceof Array) {
1391
+ tstack = token;
1392
+ token = tstack.pop();
1393
+ }
1394
+ token = self.symbols_[token] || token;
1395
+ }
1396
+ return token;
1397
+ }
1398
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(lex2, "lex");
1399
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
1400
+ while (true) {
1401
+ state = stack[stack.length - 1];
1402
+ if (this.defaultActions[state]) {
1403
+ action = this.defaultActions[state];
1404
+ } else {
1405
+ if (symbol === null || typeof symbol == "undefined") {
1406
+ symbol = lex2();
1407
+ }
1408
+ action = table[state] && table[state][symbol];
1409
+ }
1410
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1411
+ var errStr = "";
1412
+ expected = [];
1413
+ for (p in table[state]) {
1414
+ if (this.terminals_[p] && p > TERROR) {
1415
+ expected.push("'" + this.terminals_[p] + "'");
1416
+ }
1417
+ }
1418
+ if (lexer2.showPosition) {
1419
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1420
+ } else {
1421
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1422
+ }
1423
+ this.parseError(errStr, {
1424
+ text: lexer2.match,
1425
+ token: this.terminals_[symbol] || symbol,
1426
+ line: lexer2.yylineno,
1427
+ loc: yyloc,
1428
+ expected
1429
+ });
1430
+ }
1431
+ if (action[0] instanceof Array && action.length > 1) {
1432
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1433
+ }
1434
+ switch (action[0]) {
1435
+ case 1:
1436
+ stack.push(symbol);
1437
+ vstack.push(lexer2.yytext);
1438
+ lstack.push(lexer2.yylloc);
1439
+ stack.push(action[1]);
1440
+ symbol = null;
1441
+ if (!preErrorSymbol) {
1442
+ yyleng = lexer2.yyleng;
1443
+ yytext = lexer2.yytext;
1444
+ yylineno = lexer2.yylineno;
1445
+ yyloc = lexer2.yylloc;
1446
+ if (recovering > 0) {
1447
+ recovering--;
1448
+ }
1449
+ } else {
1450
+ symbol = preErrorSymbol;
1451
+ preErrorSymbol = null;
1452
+ }
1453
+ break;
1454
+ case 2:
1455
+ len = this.productions_[action[1]][1];
1456
+ yyval.$ = vstack[vstack.length - len];
1457
+ yyval._$ = {
1458
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1459
+ last_line: lstack[lstack.length - 1].last_line,
1460
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1461
+ last_column: lstack[lstack.length - 1].last_column
1462
+ };
1463
+ if (ranges) {
1464
+ yyval._$.range = [
1465
+ lstack[lstack.length - (len || 1)].range[0],
1466
+ lstack[lstack.length - 1].range[1]
1467
+ ];
1468
+ }
1469
+ r = this.performAction.apply(yyval, [
1470
+ yytext,
1471
+ yyleng,
1472
+ yylineno,
1473
+ sharedState.yy,
1474
+ action[1],
1475
+ vstack,
1476
+ lstack
1477
+ ].concat(args));
1478
+ if (typeof r !== "undefined") {
1479
+ return r;
1480
+ }
1481
+ if (len) {
1482
+ stack = stack.slice(0, -1 * len * 2);
1483
+ vstack = vstack.slice(0, -1 * len);
1484
+ lstack = lstack.slice(0, -1 * len);
1485
+ }
1486
+ stack.push(this.productions_[action[1]][0]);
1487
+ vstack.push(yyval.$);
1488
+ lstack.push(yyval._$);
1489
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1490
+ stack.push(newState);
1491
+ break;
1492
+ case 3:
1493
+ return true;
1494
+ }
1495
+ }
1496
+ return true;
1497
+ }, "parse")
1498
+ };
1499
+ var lexer = /* @__PURE__ */ function() {
1500
+ var lexer2 = {
1501
+ EOF: 1,
1502
+ parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function parseError(str, hash) {
1503
+ if (this.yy.parser) {
1504
+ this.yy.parser.parseError(str, hash);
1505
+ } else {
1506
+ throw new Error(str);
1507
+ }
1508
+ }, "parseError"),
1509
+ // resets the lexer, sets new input
1510
+ setInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(input, yy) {
1511
+ this.yy = yy || this.yy || {};
1512
+ this._input = input;
1513
+ this._more = this._backtrack = this.done = false;
1514
+ this.yylineno = this.yyleng = 0;
1515
+ this.yytext = this.matched = this.match = "";
1516
+ this.conditionStack = ["INITIAL"];
1517
+ this.yylloc = {
1518
+ first_line: 1,
1519
+ first_column: 0,
1520
+ last_line: 1,
1521
+ last_column: 0
1522
+ };
1523
+ if (this.options.ranges) {
1524
+ this.yylloc.range = [0, 0];
1525
+ }
1526
+ this.offset = 0;
1527
+ return this;
1528
+ }, "setInput"),
1529
+ // consumes and returns one char from the input
1530
+ input: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1531
+ var ch = this._input[0];
1532
+ this.yytext += ch;
1533
+ this.yyleng++;
1534
+ this.offset++;
1535
+ this.match += ch;
1536
+ this.matched += ch;
1537
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
1538
+ if (lines) {
1539
+ this.yylineno++;
1540
+ this.yylloc.last_line++;
1541
+ } else {
1542
+ this.yylloc.last_column++;
1543
+ }
1544
+ if (this.options.ranges) {
1545
+ this.yylloc.range[1]++;
1546
+ }
1547
+ this._input = this._input.slice(1);
1548
+ return ch;
1549
+ }, "input"),
1550
+ // unshifts one char (or a string) into the input
1551
+ unput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(ch) {
1552
+ var len = ch.length;
1553
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1554
+ this._input = ch + this._input;
1555
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1556
+ this.offset -= len;
1557
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1558
+ this.match = this.match.substr(0, this.match.length - 1);
1559
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1560
+ if (lines.length - 1) {
1561
+ this.yylineno -= lines.length - 1;
1562
+ }
1563
+ var r = this.yylloc.range;
1564
+ this.yylloc = {
1565
+ first_line: this.yylloc.first_line,
1566
+ last_line: this.yylineno + 1,
1567
+ first_column: this.yylloc.first_column,
1568
+ 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
1569
+ };
1570
+ if (this.options.ranges) {
1571
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1572
+ }
1573
+ this.yyleng = this.yytext.length;
1574
+ return this;
1575
+ }, "unput"),
1576
+ // When called from action, caches matched text and appends it on next action
1577
+ more: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1578
+ this._more = true;
1579
+ return this;
1580
+ }, "more"),
1581
+ // 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.
1582
+ reject: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1583
+ if (this.options.backtrack_lexer) {
1584
+ this._backtrack = true;
1585
+ } else {
1586
+ 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(), {
1587
+ text: "",
1588
+ token: null,
1589
+ line: this.yylineno
1590
+ });
1591
+ }
1592
+ return this;
1593
+ }, "reject"),
1594
+ // retain first n characters of the match
1595
+ less: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(n) {
1596
+ this.unput(this.match.slice(n));
1597
+ }, "less"),
1598
+ // displays already matched input, i.e. for error messages
1599
+ pastInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1600
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1601
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1602
+ }, "pastInput"),
1603
+ // displays upcoming input, i.e. for error messages
1604
+ upcomingInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1605
+ var next = this.match;
1606
+ if (next.length < 20) {
1607
+ next += this._input.substr(0, 20 - next.length);
1608
+ }
1609
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1610
+ }, "upcomingInput"),
1611
+ // displays the character position where the lexing error occurred, i.e. for error messages
1612
+ showPosition: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1613
+ var pre = this.pastInput();
1614
+ var c = new Array(pre.length + 1).join("-");
1615
+ return pre + this.upcomingInput() + "\n" + c + "^";
1616
+ }, "showPosition"),
1617
+ // test the lexed token: return FALSE when not a match, otherwise return token
1618
+ test_match: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function(match, indexed_rule) {
1619
+ var token, lines, backup;
1620
+ if (this.options.backtrack_lexer) {
1621
+ backup = {
1622
+ yylineno: this.yylineno,
1623
+ yylloc: {
1624
+ first_line: this.yylloc.first_line,
1625
+ last_line: this.last_line,
1626
+ first_column: this.yylloc.first_column,
1627
+ last_column: this.yylloc.last_column
1628
+ },
1629
+ yytext: this.yytext,
1630
+ match: this.match,
1631
+ matches: this.matches,
1632
+ matched: this.matched,
1633
+ yyleng: this.yyleng,
1634
+ offset: this.offset,
1635
+ _more: this._more,
1636
+ _input: this._input,
1637
+ yy: this.yy,
1638
+ conditionStack: this.conditionStack.slice(0),
1639
+ done: this.done
1640
+ };
1641
+ if (this.options.ranges) {
1642
+ backup.yylloc.range = this.yylloc.range.slice(0);
1643
+ }
1644
+ }
1645
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1646
+ if (lines) {
1647
+ this.yylineno += lines.length;
1648
+ }
1649
+ this.yylloc = {
1650
+ first_line: this.yylloc.last_line,
1651
+ last_line: this.yylineno + 1,
1652
+ first_column: this.yylloc.last_column,
1653
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1654
+ };
1655
+ this.yytext += match[0];
1656
+ this.match += match[0];
1657
+ this.matches = match;
1658
+ this.yyleng = this.yytext.length;
1659
+ if (this.options.ranges) {
1660
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
1661
+ }
1662
+ this._more = false;
1663
+ this._backtrack = false;
1664
+ this._input = this._input.slice(match[0].length);
1665
+ this.matched += match[0];
1666
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1667
+ if (this.done && this._input) {
1668
+ this.done = false;
1669
+ }
1670
+ if (token) {
1671
+ return token;
1672
+ } else if (this._backtrack) {
1673
+ for (var k in backup) {
1674
+ this[k] = backup[k];
1675
+ }
1676
+ return false;
1677
+ }
1678
+ return false;
1679
+ }, "test_match"),
1680
+ // return next match in input
1681
+ next: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function() {
1682
+ if (this.done) {
1683
+ return this.EOF;
1684
+ }
1685
+ if (!this._input) {
1686
+ this.done = true;
1687
+ }
1688
+ var token, match, tempMatch, index;
1689
+ if (!this._more) {
1690
+ this.yytext = "";
1691
+ this.match = "";
1692
+ }
1693
+ var rules = this._currentRules();
1694
+ for (var i = 0; i < rules.length; i++) {
1695
+ tempMatch = this._input.match(this.rules[rules[i]]);
1696
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1697
+ match = tempMatch;
1698
+ index = i;
1699
+ if (this.options.backtrack_lexer) {
1700
+ token = this.test_match(tempMatch, rules[i]);
1701
+ if (token !== false) {
1702
+ return token;
1703
+ } else if (this._backtrack) {
1704
+ match = false;
1705
+ continue;
1706
+ } else {
1707
+ return false;
1708
+ }
1709
+ } else if (!this.options.flex) {
1710
+ break;
1711
+ }
1712
+ }
1713
+ }
1714
+ if (match) {
1715
+ token = this.test_match(match, rules[index]);
1716
+ if (token !== false) {
1717
+ return token;
1718
+ }
1719
+ return false;
1720
+ }
1721
+ if (this._input === "") {
1722
+ return this.EOF;
1723
+ } else {
1724
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1725
+ text: "",
1726
+ token: null,
1727
+ line: this.yylineno
1728
+ });
1729
+ }
1730
+ }, "next"),
1731
+ // return next match that has a token
1732
+ lex: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function lex2() {
1733
+ var r = this.next();
1734
+ if (r) {
1735
+ return r;
1736
+ } else {
1737
+ return this.lex();
1738
+ }
1739
+ }, "lex"),
1740
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1741
+ begin: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function begin(condition) {
1742
+ this.conditionStack.push(condition);
1743
+ }, "begin"),
1744
+ // pop the previously active lexer condition state off the condition stack
1745
+ popState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function popState() {
1746
+ var n = this.conditionStack.length - 1;
1747
+ if (n > 0) {
1748
+ return this.conditionStack.pop();
1749
+ } else {
1750
+ return this.conditionStack[0];
1751
+ }
1752
+ }, "popState"),
1753
+ // produce the lexer rule set which is active for the currently active lexer condition state
1754
+ _currentRules: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function _currentRules() {
1755
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
1756
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1757
+ } else {
1758
+ return this.conditions["INITIAL"].rules;
1759
+ }
1760
+ }, "_currentRules"),
1761
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1762
+ topState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function topState(n) {
1763
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
1764
+ if (n >= 0) {
1765
+ return this.conditionStack[n];
1766
+ } else {
1767
+ return "INITIAL";
1768
+ }
1769
+ }, "topState"),
1770
+ // alias for begin(condition)
1771
+ pushState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function pushState(condition) {
1772
+ this.begin(condition);
1773
+ }, "pushState"),
1774
+ // return the number of states currently on the stack
1775
+ stateStackSize: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function stateStackSize() {
1776
+ return this.conditionStack.length;
1777
+ }, "stateStackSize"),
1778
+ options: {},
1779
+ performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1780
+ var YYSTATE = YY_START;
1781
+ switch ($avoiding_name_collisions) {
1782
+ case 0:
1783
+ this.begin("acc_title");
1784
+ return 34;
1785
+ break;
1786
+ case 1:
1787
+ this.popState();
1788
+ return "acc_title_value";
1789
+ break;
1790
+ case 2:
1791
+ this.begin("acc_descr");
1792
+ return 36;
1793
+ break;
1794
+ case 3:
1795
+ this.popState();
1796
+ return "acc_descr_value";
1797
+ break;
1798
+ case 4:
1799
+ this.begin("acc_descr_multiline");
1800
+ break;
1801
+ case 5:
1802
+ this.popState();
1803
+ break;
1804
+ case 6:
1805
+ return "acc_descr_multiline_value";
1806
+ break;
1807
+ case 7:
1808
+ this.pushState("shapeData");
1809
+ yy_.yytext = "";
1810
+ return 40;
1811
+ break;
1812
+ case 8:
1813
+ this.pushState("shapeDataStr");
1814
+ return 40;
1815
+ break;
1816
+ case 9:
1817
+ this.popState();
1818
+ return 40;
1819
+ break;
1820
+ case 10:
1821
+ const re = /\n\s*/g;
1822
+ yy_.yytext = yy_.yytext.replace(re, "<br/>");
1823
+ return 40;
1824
+ break;
1825
+ case 11:
1826
+ return 40;
1827
+ break;
1828
+ case 12:
1829
+ this.popState();
1830
+ break;
1831
+ case 13:
1832
+ this.begin("callbackname");
1833
+ break;
1834
+ case 14:
1835
+ this.popState();
1836
+ break;
1837
+ case 15:
1838
+ this.popState();
1839
+ this.begin("callbackargs");
1840
+ break;
1841
+ case 16:
1842
+ return 94;
1843
+ break;
1844
+ case 17:
1845
+ this.popState();
1846
+ break;
1847
+ case 18:
1848
+ return 95;
1849
+ break;
1850
+ case 19:
1851
+ return "MD_STR";
1852
+ break;
1853
+ case 20:
1854
+ this.popState();
1855
+ break;
1856
+ case 21:
1857
+ this.begin("md_string");
1858
+ break;
1859
+ case 22:
1860
+ return "STR";
1861
+ break;
1862
+ case 23:
1863
+ this.popState();
1864
+ break;
1865
+ case 24:
1866
+ this.pushState("string");
1867
+ break;
1868
+ case 25:
1869
+ return 83;
1870
+ break;
1871
+ case 26:
1872
+ return 101;
1873
+ break;
1874
+ case 27:
1875
+ return 84;
1876
+ break;
1877
+ case 28:
1878
+ return 103;
1879
+ break;
1880
+ case 29:
1881
+ return 85;
1882
+ break;
1883
+ case 30:
1884
+ return 86;
1885
+ break;
1886
+ case 31:
1887
+ return 96;
1888
+ break;
1889
+ case 32:
1890
+ this.begin("click");
1891
+ break;
1892
+ case 33:
1893
+ this.popState();
1894
+ break;
1895
+ case 34:
1896
+ return 87;
1897
+ break;
1898
+ case 35:
1899
+ if (yy.lex.firstGraph()) {
1900
+ this.begin("dir");
1901
+ }
1902
+ return 12;
1903
+ break;
1904
+ case 36:
1905
+ if (yy.lex.firstGraph()) {
1906
+ this.begin("dir");
1907
+ }
1908
+ return 12;
1909
+ break;
1910
+ case 37:
1911
+ if (yy.lex.firstGraph()) {
1912
+ this.begin("dir");
1913
+ }
1914
+ return 12;
1915
+ break;
1916
+ case 38:
1917
+ return 27;
1918
+ break;
1919
+ case 39:
1920
+ return 32;
1921
+ break;
1922
+ case 40:
1923
+ return 97;
1924
+ break;
1925
+ case 41:
1926
+ return 97;
1927
+ break;
1928
+ case 42:
1929
+ return 97;
1930
+ break;
1931
+ case 43:
1932
+ return 97;
1933
+ break;
1934
+ case 44:
1935
+ this.popState();
1936
+ return 13;
1937
+ break;
1938
+ case 45:
1939
+ this.popState();
1940
+ return 14;
1941
+ break;
1942
+ case 46:
1943
+ this.popState();
1944
+ return 14;
1945
+ break;
1946
+ case 47:
1947
+ this.popState();
1948
+ return 14;
1949
+ break;
1950
+ case 48:
1951
+ this.popState();
1952
+ return 14;
1953
+ break;
1954
+ case 49:
1955
+ this.popState();
1956
+ return 14;
1957
+ break;
1958
+ case 50:
1959
+ this.popState();
1960
+ return 14;
1961
+ break;
1962
+ case 51:
1963
+ this.popState();
1964
+ return 14;
1965
+ break;
1966
+ case 52:
1967
+ this.popState();
1968
+ return 14;
1969
+ break;
1970
+ case 53:
1971
+ this.popState();
1972
+ return 14;
1973
+ break;
1974
+ case 54:
1975
+ this.popState();
1976
+ return 14;
1977
+ break;
1978
+ case 55:
1979
+ return 120;
1980
+ break;
1981
+ case 56:
1982
+ return 121;
1983
+ break;
1984
+ case 57:
1985
+ return 122;
1986
+ break;
1987
+ case 58:
1988
+ return 123;
1989
+ break;
1990
+ case 59:
1991
+ return 104;
1992
+ break;
1993
+ case 60:
1994
+ return 110;
1995
+ break;
1996
+ case 61:
1997
+ return 46;
1998
+ break;
1999
+ case 62:
2000
+ return 60;
2001
+ break;
2002
+ case 63:
2003
+ return 44;
2004
+ break;
2005
+ case 64:
2006
+ return 8;
2007
+ break;
2008
+ case 65:
2009
+ return 105;
2010
+ break;
2011
+ case 66:
2012
+ return 114;
2013
+ break;
2014
+ case 67:
2015
+ this.popState();
2016
+ return 77;
2017
+ break;
2018
+ case 68:
2019
+ this.pushState("edgeText");
2020
+ return 75;
2021
+ break;
2022
+ case 69:
2023
+ return 118;
2024
+ break;
2025
+ case 70:
2026
+ this.popState();
2027
+ return 77;
2028
+ break;
2029
+ case 71:
2030
+ this.pushState("thickEdgeText");
2031
+ return 75;
2032
+ break;
2033
+ case 72:
2034
+ return 118;
2035
+ break;
2036
+ case 73:
2037
+ this.popState();
2038
+ return 77;
2039
+ break;
2040
+ case 74:
2041
+ this.pushState("dottedEdgeText");
2042
+ return 75;
2043
+ break;
2044
+ case 75:
2045
+ return 118;
2046
+ break;
2047
+ case 76:
2048
+ return 77;
2049
+ break;
2050
+ case 77:
2051
+ this.popState();
2052
+ return 53;
2053
+ break;
2054
+ case 78:
2055
+ return "TEXT";
2056
+ break;
2057
+ case 79:
2058
+ this.pushState("ellipseText");
2059
+ return 52;
2060
+ break;
2061
+ case 80:
2062
+ this.popState();
2063
+ return 55;
2064
+ break;
2065
+ case 81:
2066
+ this.pushState("text");
2067
+ return 54;
2068
+ break;
2069
+ case 82:
2070
+ this.popState();
2071
+ return 57;
2072
+ break;
2073
+ case 83:
2074
+ this.pushState("text");
2075
+ return 56;
2076
+ break;
2077
+ case 84:
2078
+ return 58;
2079
+ break;
2080
+ case 85:
2081
+ this.pushState("text");
2082
+ return 67;
2083
+ break;
2084
+ case 86:
2085
+ this.popState();
2086
+ return 64;
2087
+ break;
2088
+ case 87:
2089
+ this.pushState("text");
2090
+ return 63;
2091
+ break;
2092
+ case 88:
2093
+ this.popState();
2094
+ return 49;
2095
+ break;
2096
+ case 89:
2097
+ this.pushState("text");
2098
+ return 48;
2099
+ break;
2100
+ case 90:
2101
+ this.popState();
2102
+ return 69;
2103
+ break;
2104
+ case 91:
2105
+ this.popState();
2106
+ return 71;
2107
+ break;
2108
+ case 92:
2109
+ return 116;
2110
+ break;
2111
+ case 93:
2112
+ this.pushState("trapText");
2113
+ return 68;
2114
+ break;
2115
+ case 94:
2116
+ this.pushState("trapText");
2117
+ return 70;
2118
+ break;
2119
+ case 95:
2120
+ return 117;
2121
+ break;
2122
+ case 96:
2123
+ return 67;
2124
+ break;
2125
+ case 97:
2126
+ return 89;
2127
+ break;
2128
+ case 98:
2129
+ return "SEP";
2130
+ break;
2131
+ case 99:
2132
+ return 88;
2133
+ break;
2134
+ case 100:
2135
+ return 114;
2136
+ break;
2137
+ case 101:
2138
+ return 110;
2139
+ break;
2140
+ case 102:
2141
+ return 44;
2142
+ break;
2143
+ case 103:
2144
+ return 108;
2145
+ break;
2146
+ case 104:
2147
+ return 113;
2148
+ break;
2149
+ case 105:
2150
+ return 115;
2151
+ break;
2152
+ case 106:
2153
+ this.popState();
2154
+ return 62;
2155
+ break;
2156
+ case 107:
2157
+ this.pushState("text");
2158
+ return 62;
2159
+ break;
2160
+ case 108:
2161
+ this.popState();
2162
+ return 51;
2163
+ break;
2164
+ case 109:
2165
+ this.pushState("text");
2166
+ return 50;
2167
+ break;
2168
+ case 110:
2169
+ this.popState();
2170
+ return 31;
2171
+ break;
2172
+ case 111:
2173
+ this.pushState("text");
2174
+ return 29;
2175
+ break;
2176
+ case 112:
2177
+ this.popState();
2178
+ return 66;
2179
+ break;
2180
+ case 113:
2181
+ this.pushState("text");
2182
+ return 65;
2183
+ break;
2184
+ case 114:
2185
+ return "TEXT";
2186
+ break;
2187
+ case 115:
2188
+ return "QUOTE";
2189
+ break;
2190
+ case 116:
2191
+ return 9;
2192
+ break;
2193
+ case 117:
2194
+ return 10;
2195
+ break;
2196
+ case 118:
2197
+ return 11;
2198
+ break;
2199
+ }
2200
+ }, "anonymous"),
2201
+ 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]*)/, /^(?:[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)/, /^(?:$)/],
2202
+ conditions: { "shapeDataEndBracket": { "rules": [21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "shapeDataStr": { "rules": [9, 10, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "shapeData": { "rules": [8, 11, 12, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "callbackargs": { "rules": [17, 18, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "callbackname": { "rules": [14, 15, 16, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "href": { "rules": [21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "click": { "rules": [21, 24, 33, 34, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "dottedEdgeText": { "rules": [21, 24, 73, 75, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "thickEdgeText": { "rules": [21, 24, 70, 72, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "edgeText": { "rules": [21, 24, 67, 69, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "trapText": { "rules": [21, 24, 76, 79, 81, 83, 87, 89, 90, 91, 92, 93, 94, 107, 109, 111, 113], "inclusive": false }, "ellipseText": { "rules": [21, 24, 76, 77, 78, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "text": { "rules": [21, 24, 76, 79, 80, 81, 82, 83, 86, 87, 88, 89, 93, 94, 106, 107, 108, 109, 110, 111, 112, 113, 114], "inclusive": false }, "vertex": { "rules": [21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "dir": { "rules": [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "acc_descr_multiline": { "rules": [5, 6, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "acc_descr": { "rules": [3, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "acc_title": { "rules": [1, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "md_string": { "rules": [19, 20, 21, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "inclusive": false }, "string": { "rules": [21, 22, 23, 24, 76, 79, 81, 83, 87, 89, 93, 94, 107, 109, 111, 113], "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, 70, 71, 73, 74, 76, 79, 81, 83, 84, 85, 87, 89, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 109, 111, 113, 115, 116, 117, 118], "inclusive": true } }
2203
+ };
2204
+ return lexer2;
2205
+ }();
2206
+ parser2.lexer = lexer;
2207
+ function Parser() {
2208
+ this.yy = {};
2209
+ }
2210
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)(Parser, "Parser");
2211
+ Parser.prototype = parser2;
2212
+ parser2.Parser = Parser;
2213
+ return new Parser();
2214
+ }();
2215
+ parser.parser = parser;
2216
+ var flow_default = parser;
2217
+
2218
+ // src/diagrams/flowchart/styles.ts
2219
+
2220
+ var fade = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((color, opacity) => {
2221
+ const channel2 = khroma__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A;
2222
+ const r = channel2(color, "r");
2223
+ const g = channel2(color, "g");
2224
+ const b = channel2(color, "b");
2225
+ return khroma__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A(r, g, b, opacity);
2226
+ }, "fade");
2227
+ var getStyles = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((options) => `.label {
2228
+ font-family: ${options.fontFamily};
2229
+ color: ${options.nodeTextColor || options.textColor};
2230
+ }
2231
+ .cluster-label text {
2232
+ fill: ${options.titleColor};
2233
+ }
2234
+ .cluster-label span {
2235
+ color: ${options.titleColor};
2236
+ }
2237
+ .cluster-label span p {
2238
+ background-color: transparent;
2239
+ }
2240
+
2241
+ .label text,span {
2242
+ fill: ${options.nodeTextColor || options.textColor};
2243
+ color: ${options.nodeTextColor || options.textColor};
2244
+ }
2245
+
2246
+ .node rect,
2247
+ .node circle,
2248
+ .node ellipse,
2249
+ .node polygon,
2250
+ .node path {
2251
+ fill: ${options.mainBkg};
2252
+ stroke: ${options.nodeBorder};
2253
+ stroke-width: 1px;
2254
+ }
2255
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
2256
+ text-anchor: middle;
2257
+ }
2258
+ // .flowchart-label .text-outer-tspan {
2259
+ // text-anchor: middle;
2260
+ // }
2261
+ // .flowchart-label .text-inner-tspan {
2262
+ // text-anchor: start;
2263
+ // }
2264
+
2265
+ .node .katex path {
2266
+ fill: #000;
2267
+ stroke: #000;
2268
+ stroke-width: 1px;
2269
+ }
2270
+
2271
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
2272
+ text-align: center;
2273
+ }
2274
+ .node.clickable {
2275
+ cursor: pointer;
2276
+ }
2277
+
2278
+
2279
+ .root .anchor path {
2280
+ fill: ${options.lineColor} !important;
2281
+ stroke-width: 0;
2282
+ stroke: ${options.lineColor};
2283
+ }
2284
+
2285
+ .arrowheadPath {
2286
+ fill: ${options.arrowheadColor};
2287
+ }
2288
+
2289
+ .edgePath .path {
2290
+ stroke: ${options.lineColor};
2291
+ stroke-width: 2.0px;
2292
+ }
2293
+
2294
+ .flowchart-link {
2295
+ stroke: ${options.lineColor};
2296
+ fill: none;
2297
+ }
2298
+
2299
+ .edgeLabel {
2300
+ background-color: ${options.edgeLabelBackground};
2301
+ p {
2302
+ background-color: ${options.edgeLabelBackground};
2303
+ }
2304
+ rect {
2305
+ opacity: 0.5;
2306
+ background-color: ${options.edgeLabelBackground};
2307
+ fill: ${options.edgeLabelBackground};
2308
+ }
2309
+ text-align: center;
2310
+ }
2311
+
2312
+ /* For html labels only */
2313
+ .labelBkg {
2314
+ background-color: ${fade(options.edgeLabelBackground, 0.5)};
2315
+ // background-color:
2316
+ }
2317
+
2318
+ .cluster rect {
2319
+ fill: ${options.clusterBkg};
2320
+ stroke: ${options.clusterBorder};
2321
+ stroke-width: 1px;
2322
+ }
2323
+
2324
+ .cluster text {
2325
+ fill: ${options.titleColor};
2326
+ }
2327
+
2328
+ .cluster span {
2329
+ color: ${options.titleColor};
2330
+ }
2331
+ /* .cluster div {
2332
+ color: ${options.titleColor};
2333
+ } */
2334
+
2335
+ div.mermaidTooltip {
2336
+ position: absolute;
2337
+ text-align: center;
2338
+ max-width: 200px;
2339
+ padding: 2px;
2340
+ font-family: ${options.fontFamily};
2341
+ font-size: 12px;
2342
+ background: ${options.tertiaryColor};
2343
+ border: 1px solid ${options.border2};
2344
+ border-radius: 2px;
2345
+ pointer-events: none;
2346
+ z-index: 100;
2347
+ }
2348
+
2349
+ .flowchartTitleText {
2350
+ text-anchor: middle;
2351
+ font-size: 18px;
2352
+ fill: ${options.textColor};
2353
+ }
2354
+
2355
+ rect.text {
2356
+ fill: none;
2357
+ stroke-width: 0;
2358
+ }
2359
+
2360
+ .icon-shape, .image-shape {
2361
+ background-color: ${options.edgeLabelBackground};
2362
+ p {
2363
+ background-color: ${options.edgeLabelBackground};
2364
+ padding: 2px;
2365
+ }
2366
+ rect {
2367
+ opacity: 0.5;
2368
+ background-color: ${options.edgeLabelBackground};
2369
+ fill: ${options.edgeLabelBackground};
2370
+ }
2371
+ text-align: center;
2372
+ }
2373
+ `, "getStyles");
2374
+ var styles_default = getStyles;
2375
+
2376
+ // src/diagrams/flowchart/flowDiagram.ts
2377
+ var diagram = {
2378
+ parser: flow_default,
2379
+ db: flowDb_default,
2380
+ renderer: flowRenderer_v3_unified_default,
2381
+ styles: styles_default,
2382
+ init: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .__name */ .K2)((cnf) => {
2383
+ if (!cnf.flowchart) {
2384
+ cnf.flowchart = {};
2385
+ }
2386
+ if (cnf.layout) {
2387
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .setConfig2 */ .XV)({ layout: cnf.layout });
2388
+ }
2389
+ cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
2390
+ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_8__/* .setConfig2 */ .XV)({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
2391
+ flowDb_default.clear();
2392
+ flowDb_default.setGen("gen-2");
2393
+ }, "init")
2394
+ };
2395
+
2396
+
2397
+
2398
+ /***/ })
2399
+
2400
+ }]);