@infinilabs/ai-chat 0.0.0 → 0.0.2

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