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